@lovrabet/lovrabet-cli 2.3.10-beta.1 → 2.3.10-beta.3

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 (195) 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.d.ts +1 -1
  26. package/lib/commands/config/init.js +1 -1
  27. package/lib/commands/config/shared.js +1 -1
  28. package/lib/commands/data/import-excel.js +1 -1
  29. package/lib/commands/data/index.js +1 -1
  30. package/lib/commands/dataset/detail.js +1 -1
  31. package/lib/commands/dataset/index.js +1 -1
  32. package/lib/commands/dataset/list.js +1 -1
  33. package/lib/commands/dataset/sdk-doc.js +1 -1
  34. package/lib/commands/doctor.js +1 -1
  35. package/lib/commands/file/index.js +1 -1
  36. package/lib/commands/init.js +1 -1
  37. package/lib/commands/issue/context.js +1 -1
  38. package/lib/commands/issue/index.js +1 -1
  39. package/lib/commands/issue/report.js +1 -1
  40. package/lib/commands/kb/index.js +1 -1
  41. package/lib/commands/logs/index.js +1 -1
  42. package/lib/commands/notification/config-list.js +1 -1
  43. package/lib/commands/notification/index.js +1 -1
  44. package/lib/commands/notification/shared.js +1 -1
  45. package/lib/commands/ocr/index.js +1 -1
  46. package/lib/commands/permit/dataset-get.js +1 -1
  47. package/lib/commands/permit/dataset-set.js +1 -1
  48. package/lib/commands/permit/index.js +1 -1
  49. package/lib/commands/permit/page-get.js +1 -1
  50. package/lib/commands/permit/page-set.js +1 -1
  51. package/lib/commands/permit/role-menus-set.js +1 -1
  52. package/lib/commands/permit/role-menus.js +1 -1
  53. package/lib/commands/permit/shared.js +1 -1
  54. package/lib/commands/personal-bff/index.js +1 -1
  55. package/lib/commands/registry.js +1 -1
  56. package/lib/commands/role/create.js +1 -1
  57. package/lib/commands/role/delete.js +1 -1
  58. package/lib/commands/role/detail.js +1 -1
  59. package/lib/commands/role/index.js +1 -1
  60. package/lib/commands/role/list.js +1 -1
  61. package/lib/commands/role/shared.js +1 -1
  62. package/lib/commands/role/update.js +1 -1
  63. package/lib/commands/role/user-add.js +1 -1
  64. package/lib/commands/role/user-remove.js +1 -1
  65. package/lib/commands/schedule/index.js +1 -1
  66. package/lib/commands/schema.js +1 -1
  67. package/lib/commands/service/dynamic.js +1 -1
  68. package/lib/commands/service/function-name-adapter.js +1 -1
  69. package/lib/commands/service/index.js +1 -1
  70. package/lib/commands/service/registry.js +1 -1
  71. package/lib/commands/skill/commands/create.js +1 -1
  72. package/lib/commands/skill/commands/diagram.js +1 -1
  73. package/lib/commands/skill/commands/install.js +1 -1
  74. package/lib/commands/skill/commands/list.js +1 -1
  75. package/lib/commands/skill/commands/push.js +1 -1
  76. package/lib/commands/skill/commands/validate.js +1 -1
  77. package/lib/commands/skill/diagram.js +1 -1
  78. package/lib/commands/skill/flags.js +1 -1
  79. package/lib/commands/skill/index.js +1 -1
  80. package/lib/commands/skill/manifest-helpers.js +1 -1
  81. package/lib/commands/skill/push-execute.js +1 -1
  82. package/lib/commands/skill/push-flow-helpers.js +1 -1
  83. package/lib/commands/skill/push-retarget.js +1 -1
  84. package/lib/commands/skill/scopes.js +1 -1
  85. package/lib/commands/skill/summary.js +1 -1
  86. package/lib/commands/skill/templates.js +1 -1
  87. package/lib/commands/skill/validate.js +1 -1
  88. package/lib/commands/sql/detail.js +1 -1
  89. package/lib/commands/sql/exec.js +1 -1
  90. package/lib/commands/sql/index.js +1 -1
  91. package/lib/commands/update.js +1 -1
  92. package/lib/commands/user-account/bind.js +1 -1
  93. package/lib/commands/user-account/index.js +1 -1
  94. package/lib/commands/workspace/index.js +1 -1
  95. package/lib/config/domain-config.d.ts +1 -1
  96. package/lib/config/domain-config.js +1 -1
  97. package/lib/config/schema.d.ts +1 -1
  98. package/lib/config/schema.js +1 -1
  99. package/lib/constant/app.js +1 -1
  100. package/lib/constant/auth-mode.js +1 -1
  101. package/lib/constant/cli.js +1 -1
  102. package/lib/constant/defaults.js +1 -1
  103. package/lib/constant/distribution.js +1 -1
  104. package/lib/constant/domain.d.ts +5 -1
  105. package/lib/constant/domain.js +1 -1
  106. package/lib/constant/env.js +1 -1
  107. package/lib/constant/output.js +1 -1
  108. package/lib/constant/product.js +1 -1
  109. package/lib/constant/region.js +1 -1
  110. package/lib/constant/risk.js +1 -1
  111. package/lib/constant/url.js +1 -1
  112. package/lib/context.js +1 -1
  113. package/lib/core/api-client.js +1 -1
  114. package/lib/core/db-resolver.js +1 -1
  115. package/lib/core/kb-management-client.js +1 -1
  116. package/lib/core/kb-sdk-errors.js +1 -1
  117. package/lib/core/kb-search-client.js +1 -1
  118. package/lib/core/sdk-client.js +1 -1
  119. package/lib/errors.js +1 -1
  120. package/lib/framework/access-error.js +1 -1
  121. package/lib/framework/build-all-flags.js +1 -1
  122. package/lib/framework/dryrun.js +1 -1
  123. package/lib/framework/flags.js +1 -1
  124. package/lib/framework/help.js +1 -1
  125. package/lib/framework/index.js +1 -1
  126. package/lib/framework/output.js +1 -1
  127. package/lib/framework/preparse.js +1 -1
  128. package/lib/framework/rate-limit.js +1 -1
  129. package/lib/framework/raw-flags.js +1 -1
  130. package/lib/framework/response.js +1 -1
  131. package/lib/framework/runner-confirmation.js +1 -1
  132. package/lib/framework/runner-error.js +1 -1
  133. package/lib/framework/runner.js +1 -1
  134. package/lib/framework/schema-export.js +1 -1
  135. package/lib/framework/service-order.js +1 -1
  136. package/lib/framework/types.js +1 -1
  137. package/lib/generated/build-info.d.ts +4 -4
  138. package/lib/generated/build-info.js +1 -1
  139. package/lib/generated/official-routing.d.ts +6 -1
  140. package/lib/generated/official-routing.js +1 -1
  141. package/lib/generated/routing-contract.d.ts +3 -3
  142. package/lib/generated/routing-contract.js +1 -1
  143. package/lib/help.js +1 -1
  144. package/lib/postinstall.js +1 -1
  145. package/lib/runtime/confirmation.js +1 -1
  146. package/lib/runtime/event.js +1 -1
  147. package/lib/runtime/index.js +1 -1
  148. package/lib/runtime/queue.js +1 -1
  149. package/lib/runtime/resolve.js +1 -1
  150. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  151. package/lib/services/dataset-import/excel-reader.js +1 -1
  152. package/lib/services/dataset-import/image-bytes.js +1 -1
  153. package/lib/services/dataset-import/image-ooxml.js +1 -1
  154. package/lib/services/dataset-import/image-runner.js +1 -1
  155. package/lib/services/dataset-import/metadata.js +1 -1
  156. package/lib/services/dataset-import/preview.js +1 -1
  157. package/lib/services/dataset-import/runner.js +1 -1
  158. package/lib/skills/builtin-skill.js +1 -1
  159. package/lib/skills/npx-skills-add.js +1 -1
  160. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  161. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  162. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  163. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  164. package/lib/skills/runtime-skill-sync/links.js +1 -1
  165. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  166. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  167. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  168. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  169. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  170. package/lib/skills/runtime-skill-sync/push.js +1 -1
  171. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  172. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  173. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  174. package/lib/skills/runtime-skill-sync.js +1 -1
  175. package/lib/skills/skill-presence.js +1 -1
  176. package/lib/utils/access-key-redaction.js +1 -1
  177. package/lib/utils/apply-jq-filter.js +1 -1
  178. package/lib/utils/cli-version-check.js +1 -1
  179. package/lib/utils/cli-version-policy.js +1 -1
  180. package/lib/utils/logger.js +1 -1
  181. package/lib/utils/lossless-json.js +1 -1
  182. package/lib/utils/params.js +1 -1
  183. package/lib/utils/positive-safe-integer.js +1 -1
  184. package/lib/utils/redaction.js +1 -1
  185. package/lib/utils/runtime-user-id.js +1 -1
  186. package/lib/utils/update-notice.js +1 -1
  187. package/lib/utils/version.js +1 -1
  188. package/lib/utils/write-cli-side-channel.js +1 -1
  189. package/package.json +1 -1
  190. package/skills/lovrabet/SKILL.md +1 -1
  191. package/skills/lovrabet/references/lovrabet-config-commands.md +17 -33
  192. package/skills/lovrabet/references/lovrabet-config.md +11 -3
  193. package/skills/lovrabet/references/lovrabet-doctor.md +1 -1
  194. package/skills/lovrabet/references/lovrabet-kb-workflow.md +4 -4
  195. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a13_0x5345ea=a13_0x1cf6;(function(_0x1c1efc,_0xa81ad1){const _0x256af2=a13_0x1cf6,_0x59d7e5=_0x1c1efc();while(!![]){try{const _0x17e573=parseInt(_0x256af2(0x101))/0x1+-parseInt(_0x256af2(0x129))/0x2+-parseInt(_0x256af2(0xd2))/0x3+-parseInt(_0x256af2(0xfa))/0x4+parseInt(_0x256af2(0xe5))/0x5+parseInt(_0x256af2(0x104))/0x6+parseInt(_0x256af2(0x120))/0x7*(-parseInt(_0x256af2(0xdf))/0x8);if(_0x17e573===_0xa81ad1)break;else _0x59d7e5['push'](_0x59d7e5['shift']());}catch(_0x1e9643){_0x59d7e5['push'](_0x59d7e5['shift']());}}}(a13_0x2ce6,0xda8dc));function a13_0x1cf6(_0x163af4,_0x711f56){_0x163af4=_0x163af4-0xd2;const _0x2ce68f=a13_0x2ce6();let _0x1cf696=_0x2ce68f[_0x163af4];return _0x1cf696;}function a13_0x2ce6(){const _0x421d1e=['userCenterDisplayName','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','Option\x20B:\x20apps\x20config\x20(','Auth\x20mode:\x20','506356FjdTiJ','\x20\x20export\x20','Saves\x20a\x20user\x20AccessKey\x20to\x20the\x20selected\x20Lovrabet\x20config.\x20An\x20existing\x20key\x20in\x20that\x20scope\x20is\x20overwritten.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20secret.','4235304GDEhPo','Option\x20C:\x20environment\x20variable','push','validation','production','string','trim','\x20Verify:\x20','nonInteractive','str','global\x20config','Missing\x20accessKey.','\x20config.','check','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','accessKeyCreatePath','Clear\x20the\x20user\x20AccessKey\x20from\x20config','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','Invalid\x20accessKey\x20format.','ClientAk','code','Save\x20the\x20user\x20AccessKey\x20(global\x20by\x20default;\x20--project\x20for\x20project\x20config)','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','AccessKey:\x20','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','info','access_key','4319UEphze','Use\x20`','\x20config.\x20Nothing\x20to\x20clear.','Stored\x20AccessKey\x20(','isTTY','bool','auth','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','development','285994WGGTmG','logout','ACCESS_KEY','status','AccessKey\x20saved\x20to\x20','read','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','1221636aWJqPN','\x20doctor','global','project','Shorthand\x20for\x20--access-key','project\x20config','authRequired','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','env','AccessKey\x20cleared\x20from\x20','accessKey','envName','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','5200ZxXete','newConfigFileName','expired','\x20auth\x20status','login','\x20Current\x20env:\x20','7337090gQWZxw','accessKeySource','scope','cancelled','\x20config):\x20','daily','Device\x20authorization\x20completed.','success','Option\x20A:\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>','boolean','join','test','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','AccessKey\x20(ak_xxx...)','=ak_xxx','Status:\x20configured\x20(not\x20remotely\x20verified)','access-key','Environment:\x20','stdin','3332812hlMlmo','\x20(via\x20','Write\x20to\x20global\x20config\x20(default)'];a13_0x2ce6=function(){return _0x421d1e;};return a13_0x2ce6();}import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev,isProduction}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';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(_0x1bc855=USER_ACCESS_KEY_CREATE_URL){const _0x2008eb=a13_0x1cf6;writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG['userCenterDisplayName']+':'),writeCliSideChannelLine('\x0a'+_0x1bc855+'\x0a'),writeCliSideChannelLine('Tip:\x20you\x20can\x20also\x20run:'),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x2008eb(0xee));}function buildAccessKeySetupGuide(_0x3403f1=USER_ACCESS_KEY_CREATE_URL){const _0x23e772=a13_0x1cf6;return['AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x23e772(0xfd)]+':',_0x3403f1,_0x23e772(0xde)+CLI_BIN_NAME+_0x23e772(0x116)][_0x23e772(0xf0)]('\x0a');}function canPromptForAccessKey(_0x449804){const _0x30f4da=a13_0x1cf6;return!_0x449804[_0x30f4da(0x10c)]&&process[_0x30f4da(0xf9)][_0x30f4da(0x124)]!==![]&&process['stdout']['isTTY']!==![];}function resolveAuthScopeFlags(_0x2213e2){const _0x30bf4c=a13_0x1cf6;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x2213e2[_0x30bf4c(0x125)]('global'),'explicitProject':_0x2213e2[_0x30bf4c(0x125)]('project'),'policy':'global-default'}));}async function resolveAuthWriteInput(_0x38f783){const _0x28f7b6=a13_0x1cf6;let _0xa630df=(_0x38f783[_0x28f7b6(0x10d)](_0x28f7b6(0xf7))||_0x38f783['str']('ak')||'')[_0x28f7b6(0x10a)]();const _0x1c668f=(_0x38f783[_0x28f7b6(0x10d)](_0x28f7b6(0xda))||'')[_0x28f7b6(0x10a)](),_0x2ceba4=''+getUserDomain()+PRODUCT_CONFIG[_0x28f7b6(0x113)];if(!_0xa630df&&canPromptForAccessKey(_0x38f783))try{showAccessKeyCreateHint(_0x2ceba4),_0xa630df=await promptAccessKey('');}catch(_0x65d030){if(isAbortPrompt(_0x65d030))throw CliErrors[_0x28f7b6(0xe8)]();throw _0x65d030;}if(!_0xa630df)throw CliErrors[_0x28f7b6(0x107)](_0x28f7b6(0x10f),buildAccessKeySetupGuide(_0x2ceba4));if(!ACCESS_KEY_PATTERN[_0x28f7b6(0xf1)](_0xa630df))throw CliErrors['validation'](_0x28f7b6(0x117),_0x28f7b6(0xf2));if(!_0x1c668f)return{'accessKey':_0xa630df};const _0x9b879d=normalizeEnv(_0x1c668f);return{'accessKey':_0xa630df,'env':isDaily(_0x9b879d)?_0x28f7b6(0xea):isDev(_0x9b879d)?_0x28f7b6(0x128):_0x28f7b6(0x108)};}export const authDefinitions=[{'service':'auth','command':a13_0x5345ea(0xe3),'description':a13_0x5345ea(0x11a),'risk':'write','confirmationDescription':a13_0x5345ea(0x103),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x5345ea(0xf7),'type':a13_0x5345ea(0x109),'description':a13_0x5345ea(0xf4)},{'name':'ak','type':a13_0x5345ea(0x109),'description':a13_0x5345ea(0xd6)},{'name':a13_0x5345ea(0xd4),'type':'boolean','description':a13_0x5345ea(0xfc),'default':!![]},{'name':a13_0x5345ea(0xd5),'type':'boolean','description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x3ab043){const _0x1857f3=a13_0x5345ea;if(_0x3ab043['bool']('yes'))throw CliErrors[_0x1857f3(0x107)]('`auth\x20login`\x20does\x20not\x20support\x20--yes.',_0x1857f3(0x121)+CLI_BIN_NAME+_0x1857f3(0x112)+CLI_BIN_NAME+_0x1857f3(0x127));const _0x5be4dd=(_0x3ab043['str'](_0x1857f3(0xf7))||_0x3ab043[_0x1857f3(0x10d)]('ak')||'')[_0x1857f3(0x10a)]();if(!_0x5be4dd&&_0x3ab043[_0x1857f3(0x10c)])return{'ok':!![],'message':buildAccessKeySetupGuide(''+getUserDomain()+PRODUCT_CONFIG['accessKeyCreatePath'])};const _0x48e8cd=await resolveAuthWriteInput(_0x3ab043),_0x364598=resolveAuthScopeFlags(_0x3ab043),_0xcafcba=readScopedConfig(_0x364598);_0xcafcba[_0x1857f3(0xdc)]=_0x48e8cd[_0x1857f3(0xdc)];_0x48e8cd['env']&&(_0xcafcba[_0x1857f3(0xda)]=_0x48e8cd['env']);writeScopedConfig(_0xcafcba,_0x364598);const _0x3f31d9=_0x364598[_0x1857f3(0xd4)]?_0x1857f3(0xd4):_0x1857f3(0xd5),_0x3fa5bc=_0xcafcba[_0x1857f3(0xda)]?_0x1857f3(0xe4)+_0xcafcba[_0x1857f3(0xda)]+'.':'';return{'ok':!![],'message':_0x1857f3(0x12d)+_0x3f31d9+_0x1857f3(0x110)+_0x3fa5bc+_0x1857f3(0x10b)+CLI_BIN_NAME+_0x1857f3(0xe2)};}},{'service':'auth','command':a13_0x5345ea(0x12a),'description':a13_0x5345ea(0x114),'risk':'write','confirmationDescription':'Removes\x20the\x20user\x20AccessKey\x20from\x20the\x20selected\x20Lovrabet\x20config.\x20Credentials\x20in\x20another\x20scope\x20or\x20environment\x20variables\x20are\x20unchanged.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a13_0x5345ea(0xef),'description':'Clear\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a13_0x5345ea(0xd5),'type':a13_0x5345ea(0xef),'description':a13_0x5345ea(0x11d),'default':![]}],async 'execute'(_0x5b8c70){const _0x58f93d=a13_0x5345ea,_0xb6a868=resolveAuthScopeFlags(_0x5b8c70),_0x3ed1ef=readScopedConfig(_0xb6a868),_0x224ad8=!!_0x3ed1ef[_0x58f93d(0xdc)];delete _0x3ed1ef['accessKey'],writeScopedConfig(_0x3ed1ef,_0xb6a868);const _0x4c972d=_0xb6a868[_0x58f93d(0xd4)]?_0x58f93d(0xd4):'project';if(_0x224ad8)return{'ok':!![],'message':_0x58f93d(0xdb)+_0x4c972d+_0x58f93d(0x110)};return{'ok':!![],'message':'No\x20AccessKey\x20found\x20in\x20'+_0x4c972d+_0x58f93d(0x122)};}},{'service':a13_0x5345ea(0x126),'command':a13_0x5345ea(0x12c),'description':'Show\x20current\x20authentication\x20status','risk':a13_0x5345ea(0x12e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a13_0x5345ea(0xef),'description':'Read\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a13_0x5345ea(0xd5),'type':'boolean','description':a13_0x5345ea(0x12f),'default':![]},{'name':a13_0x5345ea(0x111),'type':a13_0x5345ea(0xef),'description':'Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','default':![]}],async 'execute'(_0x536bbf){const _0x2ac030=a13_0x5345ea,_0x156db9=resolveAuthScopeFlags(_0x536bbf),_0x1a3767=readScopedConfig(_0x156db9),_0x1b1b3b=productEnvName(_0x2ac030(0x12b)),_0xa1e8ce=_0x536bbf[_0x2ac030(0xdc)],_0x2db21c=_0x536bbf[_0x2ac030(0xe6)],_0x4077d8=[_0x2ac030(0x100)+AUTH_MODE[_0x2ac030(0x118)]];if(_0x536bbf[_0x2ac030(0xdd)]&&!isProduction(_0x536bbf[_0x2ac030(0xdd)]))_0x4077d8[_0x2ac030(0x106)](_0x2ac030(0xf8)+_0x536bbf['envName']);_0x4077d8[_0x2ac030(0x106)](_0x2ac030(0x123)+(_0x156db9[_0x2ac030(0xd4)]?_0x2ac030(0xd4):_0x2ac030(0xd5))+_0x2ac030(0xe9)+(_0x1a3767['accessKey']?maskCliAccessKey(_0x1a3767[_0x2ac030(0xdc)]):'(not\x20set)'));if(_0xa1e8ce){const _0x5504a0=maskCliAccessKey(_0xa1e8ce);_0x4077d8[_0x2ac030(0x106)](_0x2ac030(0x11c)+_0x5504a0+(_0x2db21c?_0x2ac030(0xfb)+_0x2db21c+')':'')),_0x4077d8['push']('Status:\x20configured\x20(not\x20remotely\x20verified)');}if(!_0xa1e8ce){_0x4077d8[_0x2ac030(0x106)](''),_0x4077d8['push'](_0x2ac030(0xd9)),_0x4077d8[_0x2ac030(0x106)](''),_0x4077d8[_0x2ac030(0x106)](_0x2ac030(0xed)+CLI_BIN_NAME+_0x2ac030(0xf3)),_0x4077d8['push'](''),_0x4077d8[_0x2ac030(0x106)](_0x2ac030(0xff)+PRODUCT_CONFIG[_0x2ac030(0xe0)]+')'),_0x4077d8[_0x2ac030(0x106)](_0x2ac030(0x11b)),_0x4077d8[_0x2ac030(0x106)](''),_0x4077d8['push'](_0x2ac030(0x105)),_0x4077d8['push'](_0x2ac030(0x102)+_0x1b1b3b+_0x2ac030(0xf5)),_0x4077d8[_0x2ac030(0x106)](''),_0x4077d8['push']('Then\x20verify\x20with:\x20'+CLI_BIN_NAME+_0x2ac030(0xe2)),_0x4077d8[_0x2ac030(0x106)]('If\x20command\x20execution\x20still\x20fails,\x20run:\x20'+CLI_BIN_NAME+_0x2ac030(0xd3));if(_0x536bbf[_0x2ac030(0x125)](_0x2ac030(0x111))){const _0x3d3623=readStoredDeviceCode();if(_0x3d3623&&!isStoredDeviceCodeExpired(_0x3d3623)){const _0x1109f0=getUserDomain(),_0x204c3f=await fetchDeviceToken(_0x1109f0,_0x3d3623[_0x2ac030(0x119)]);if(_0x204c3f[_0x2ac030(0x12c)]===_0x2ac030(0xec)&&_0x204c3f[_0x2ac030(0x11f)]){const _0x4c1910={'global':_0x3d3623[_0x2ac030(0xe7)]===_0x2ac030(0xd4)},_0x3bb47e=readScopedConfig(_0x4c1910);_0x3bb47e[_0x2ac030(0xdc)]=_0x204c3f[_0x2ac030(0x11f)],writeScopedConfig(_0x3bb47e,_0x4c1910),deleteStoredDeviceCode();const _0x54a74b=_0x204c3f[_0x2ac030(0x11f)],_0x3cd8e9=maskCliAccessKey(_0x54a74b),_0x2a5a8d=_0x3d3623[_0x2ac030(0xe7)]==='global'?_0x2ac030(0x10e):_0x2ac030(0xd7);return{'ok':!![],'message':['Auth\x20mode:\x20'+AUTH_MODE['ClientAk'],..._0x536bbf['envName']&&!isProduction(_0x536bbf[_0x2ac030(0xdd)])?['Environment:\x20'+_0x536bbf[_0x2ac030(0xdd)]]:[],_0x2ac030(0x11c)+_0x3cd8e9+_0x2ac030(0xfb)+_0x2a5a8d+')',_0x2ac030(0xf6),_0x2ac030(0xeb)][_0x2ac030(0xf0)]('\x0a')};}_0x204c3f['status']===_0x2ac030(0xe1)&&deleteStoredDeviceCode();throw CliErrors['authRequired'](_0x2ac030(0xfe));}throw CliErrors[_0x2ac030(0xd8)](_0x4077d8['join']('\x0a'));}}return{'ok':!![],'message':_0x4077d8[_0x2ac030(0xf0)]('\x0a')};}},{'service':a13_0x5345ea(0x126),'command':a13_0x5345ea(0x11e),'description':a13_0x5345ea(0x115),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x5e149e){const _0x281880=a13_0x5345ea,_0x5a34ae=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x5a34ae,'meta':{'env':_0x5e149e[_0x281880(0xdd)]??_0x281880(0x108)}}};}},authDeviceDefinition];
1
+ function a13_0x13f0(_0x217c68,_0x2643ed){_0x217c68=_0x217c68-0xc4;const _0xb41b5f=a13_0xb41b();let _0x13f0d5=_0xb41b5f[_0x217c68];return _0x13f0d5;}const a13_0xecc359=a13_0x13f0;(function(_0x43752,_0x382472){const _0x309c86=a13_0x13f0,_0x1f4cf7=_0x43752();while(!![]){try{const _0x55e408=parseInt(_0x309c86(0xec))/0x1*(parseInt(_0x309c86(0xcc))/0x2)+-parseInt(_0x309c86(0x111))/0x3+-parseInt(_0x309c86(0xd3))/0x4+-parseInt(_0x309c86(0xf9))/0x5*(-parseInt(_0x309c86(0xe3))/0x6)+-parseInt(_0x309c86(0x107))/0x7*(parseInt(_0x309c86(0xfc))/0x8)+-parseInt(_0x309c86(0x121))/0x9*(parseInt(_0x309c86(0xf3))/0xa)+parseInt(_0x309c86(0xe2))/0xb;if(_0x55e408===_0x382472)break;else _0x1f4cf7['push'](_0x1f4cf7['shift']());}catch(_0x31aefa){_0x1f4cf7['push'](_0x1f4cf7['shift']());}}}(a13_0xb41b,0x785ee));import{readScopedConfig,writeScopedConfig}from'../../context.js';function a13_0xb41b(){const _0x54f785=['stdin','read','stdout','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','No\x20AccessKey\x20found\x20in\x20','(not\x20set)','Shorthand\x20for\x20--access-key','\x20config):\x20','30752rhwgrt','Use\x20`','AccessKey\x20saved\x20to\x20','string','boolean','envName','newConfigFileName','2851788nRiASG','Removes\x20the\x20user\x20AccessKey\x20from\x20the\x20selected\x20Lovrabet\x20config.\x20Credentials\x20in\x20another\x20scope\x20or\x20environment\x20variables\x20are\x20unchanged.','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','test','Save\x20the\x20user\x20AccessKey\x20(global\x20by\x20default;\x20--project\x20for\x20project\x20config)','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','Option\x20A:\x20','accessKeySource','AccessKey\x20cleared\x20from\x20','success','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','authRequired','global-default','validation','Clear\x20from\x20global\x20config\x20(default)','16872658sXouZz','534UqyPdo','accessKeyCreatePath','expired','push','join','ACCESS_KEY','accessKey','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','Saves\x20a\x20user\x20AccessKey\x20to\x20the\x20selected\x20Lovrabet\x20config.\x20An\x20existing\x20key\x20in\x20that\x20scope\x20is\x20overwritten.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20secret.','13MfEDiG','\x20Verify:\x20','\x20doctor','production','cancelled','Tip:\x20you\x20can\x20also\x20run:','\x20Current\x20env:\x20','24350MemybR','development','status','project\x20config','Option\x20C:\x20environment\x20variable','isTTY','52950EBfsPP','nonInteractive','access_key','64gpmKnr','Device\x20authorization\x20completed.','info','daily','Read\x20from\x20global\x20config\x20(default)','`auth\x20login`\x20does\x20not\x20support\x20--yes.','\x20config.','Option\x20B:\x20apps\x20config\x20(','scope','trim','\x20auth\x20login\x20--access-key\x20<ak_xxx>','186109PBhBmx','Clear\x20the\x20user\x20AccessKey\x20from\x20config','global','Auth\x20mode:\x20','code','Status:\x20configured\x20(not\x20remotely\x20verified)','write','env','\x20(via\x20','userCenterDisplayName','1712775SunrQV','Stored\x20AccessKey\x20(','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','AccessKey\x20(ak_xxx...)','check','ClientAk','login','project','auth','Missing\x20accessKey.','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','bool','Then\x20verify\x20with:\x20','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','access-key','\x20config.\x20Nothing\x20to\x20clear.','2538MCnXaf','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','\x20auth\x20status','\x20\x20export\x20','AccessKey:\x20','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','str','Environment:\x20'];a13_0xb41b=function(){return _0x54f785;};return a13_0xb41b();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev,isProduction}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';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(_0x30f770=USER_ACCESS_KEY_CREATE_URL){const _0x189427=a13_0x13f0;writeCliSideChannelLine(_0x189427(0x11b)+PRODUCT_CONFIG[_0x189427(0x110)]+':'),writeCliSideChannelLine('\x0a'+_0x30f770+'\x0a'),writeCliSideChannelLine(_0x189427(0xf1)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x189427(0x106));}function buildAccessKeySetupGuide(_0x1c7c24=USER_ACCESS_KEY_CREATE_URL){const _0x29c893=a13_0x13f0;return[_0x29c893(0x11b)+PRODUCT_CONFIG[_0x29c893(0x110)]+':',_0x1c7c24,_0x29c893(0x127)+CLI_BIN_NAME+_0x29c893(0xc7)][_0x29c893(0xe7)]('\x0a');}function canPromptForAccessKey(_0x1ee646){const _0x24d9bc=a13_0x13f0;return!_0x1ee646[_0x24d9bc(0xfa)]&&process[_0x24d9bc(0xc4)][_0x24d9bc(0xf8)]!==![]&&process[_0x24d9bc(0xc6)]['isTTY']!==![];}function resolveAuthScopeFlags(_0xd08a33){const _0x296b01=a13_0x13f0;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0xd08a33['bool'](_0x296b01(0x109)),'explicitProject':_0xd08a33[_0x296b01(0x11c)](_0x296b01(0x118)),'policy':_0x296b01(0xdf)}));}async function resolveAuthWriteInput(_0x24d8ec){const _0x1633ba=a13_0x13f0;let _0x12ca92=(_0x24d8ec['str'](_0x1633ba(0x11f))||_0x24d8ec[_0x1633ba(0x128)]('ak')||'')[_0x1633ba(0x105)]();const _0x554a12=(_0x24d8ec[_0x1633ba(0x128)]('env')||'')[_0x1633ba(0x105)](),_0x57e903=''+getUserDomain()+PRODUCT_CONFIG['accessKeyCreatePath'];if(!_0x12ca92&&canPromptForAccessKey(_0x24d8ec))try{showAccessKeyCreateHint(_0x57e903),_0x12ca92=await promptAccessKey('');}catch(_0x2af743){if(isAbortPrompt(_0x2af743))throw CliErrors[_0x1633ba(0xf0)]();throw _0x2af743;}if(!_0x12ca92)throw CliErrors[_0x1633ba(0xe0)](_0x1633ba(0x11a),buildAccessKeySetupGuide(_0x57e903));if(!ACCESS_KEY_PATTERN[_0x1633ba(0xd6)](_0x12ca92))throw CliErrors[_0x1633ba(0xe0)]('Invalid\x20accessKey\x20format.','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars');if(!_0x554a12)return{'accessKey':_0x12ca92};const _0x2e7d09=normalizeEnv(_0x554a12);return{'accessKey':_0x12ca92,'env':isDaily(_0x2e7d09)?_0x1633ba(0xff):isDev(_0x2e7d09)?_0x1633ba(0xf4):_0x1633ba(0xef)};}export const authDefinitions=[{'service':'auth','command':a13_0xecc359(0x117),'description':a13_0xecc359(0xd7),'risk':a13_0xecc359(0x10d),'confirmationDescription':a13_0xecc359(0xeb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a13_0xecc359(0xcf),'description':a13_0xecc359(0x114)},{'name':'ak','type':a13_0xecc359(0xcf),'description':a13_0xecc359(0xca)},{'name':'global','type':'boolean','description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':'project','type':a13_0xecc359(0xd0),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x758894){const _0x390938=a13_0xecc359;if(_0x758894[_0x390938(0x11c)]('yes'))throw CliErrors['validation'](_0x390938(0x101),_0x390938(0xcd)+CLI_BIN_NAME+'\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`'+CLI_BIN_NAME+_0x390938(0xea));const _0x2e6d39=(_0x758894['str'](_0x390938(0x11f))||_0x758894[_0x390938(0x128)]('ak')||'')[_0x390938(0x105)]();if(!_0x2e6d39&&_0x758894[_0x390938(0xfa)])return{'ok':!![],'message':buildAccessKeySetupGuide(''+getUserDomain()+PRODUCT_CONFIG[_0x390938(0xe4)])};const _0x58964a=await resolveAuthWriteInput(_0x758894),_0x5f1068=resolveAuthScopeFlags(_0x758894),_0x2f16f5=readScopedConfig(_0x5f1068);_0x2f16f5[_0x390938(0xe9)]=_0x58964a[_0x390938(0xe9)];_0x58964a[_0x390938(0x10e)]&&(_0x2f16f5[_0x390938(0x10e)]=_0x58964a[_0x390938(0x10e)]);writeScopedConfig(_0x2f16f5,_0x5f1068);const _0xf2f54e=_0x5f1068[_0x390938(0x109)]?'global':_0x390938(0x118),_0x293a3d=_0x2f16f5[_0x390938(0x10e)]?_0x390938(0xf2)+_0x2f16f5[_0x390938(0x10e)]+'.':'';return{'ok':!![],'message':_0x390938(0xce)+_0xf2f54e+_0x390938(0x102)+_0x293a3d+_0x390938(0xed)+CLI_BIN_NAME+_0x390938(0x124)};}},{'service':a13_0xecc359(0x119),'command':'logout','description':a13_0xecc359(0x108),'risk':'write','confirmationDescription':a13_0xecc359(0xd4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0xecc359(0x109),'type':'boolean','description':a13_0xecc359(0xe1),'default':!![]},{'name':a13_0xecc359(0x118),'type':'boolean','description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x2a9d8d){const _0x32b4de=a13_0xecc359,_0x1d7603=resolveAuthScopeFlags(_0x2a9d8d),_0x560deb=readScopedConfig(_0x1d7603),_0xf221e6=!!_0x560deb[_0x32b4de(0xe9)];delete _0x560deb[_0x32b4de(0xe9)],writeScopedConfig(_0x560deb,_0x1d7603);const _0x6b7bdf=_0x1d7603[_0x32b4de(0x109)]?_0x32b4de(0x109):'project';if(_0xf221e6)return{'ok':!![],'message':_0x32b4de(0xdb)+_0x6b7bdf+'\x20config.'};return{'ok':!![],'message':_0x32b4de(0xc8)+_0x6b7bdf+_0x32b4de(0x120)};}},{'service':a13_0xecc359(0x119),'command':a13_0xecc359(0xf5),'description':'Show\x20current\x20authentication\x20status','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a13_0xecc359(0xd0),'description':a13_0xecc359(0x100),'default':!![]},{'name':a13_0xecc359(0x118),'type':a13_0xecc359(0xd0),'description':a13_0xecc359(0xd5),'default':![]},{'name':'check','type':a13_0xecc359(0xd0),'description':a13_0xecc359(0x123),'default':![]}],async 'execute'(_0x549a34){const _0x4e1af8=a13_0xecc359,_0x4d4c7c=resolveAuthScopeFlags(_0x549a34),_0x1e4f13=readScopedConfig(_0x4d4c7c),_0x25bea9=productEnvName(_0x4e1af8(0xe8)),_0x571875=_0x549a34[_0x4e1af8(0xe9)],_0x34eae2=_0x549a34[_0x4e1af8(0xda)],_0x5b6a46=[_0x4e1af8(0x10a)+AUTH_MODE[_0x4e1af8(0x116)]];if(_0x549a34['envName']&&!isProduction(_0x549a34[_0x4e1af8(0xd1)]))_0x5b6a46[_0x4e1af8(0xe6)](_0x4e1af8(0x129)+_0x549a34[_0x4e1af8(0xd1)]);_0x5b6a46[_0x4e1af8(0xe6)](_0x4e1af8(0x112)+(_0x4d4c7c[_0x4e1af8(0x109)]?_0x4e1af8(0x109):_0x4e1af8(0x118))+_0x4e1af8(0xcb)+(_0x1e4f13['accessKey']?maskCliAccessKey(_0x1e4f13[_0x4e1af8(0xe9)]):_0x4e1af8(0xc9)));if(_0x571875){const _0x3bdd21=maskCliAccessKey(_0x571875);_0x5b6a46[_0x4e1af8(0xe6)](_0x4e1af8(0x126)+_0x3bdd21+(_0x34eae2?_0x4e1af8(0x10f)+_0x34eae2+')':'')),_0x5b6a46['push'](_0x4e1af8(0x10c));}if(!_0x571875){_0x5b6a46[_0x4e1af8(0xe6)](''),_0x5b6a46['push'](_0x4e1af8(0xdd)),_0x5b6a46[_0x4e1af8(0xe6)](''),_0x5b6a46['push'](_0x4e1af8(0xd9)+CLI_BIN_NAME+_0x4e1af8(0x122)),_0x5b6a46[_0x4e1af8(0xe6)](''),_0x5b6a46[_0x4e1af8(0xe6)](_0x4e1af8(0x103)+PRODUCT_CONFIG[_0x4e1af8(0xd2)]+')'),_0x5b6a46[_0x4e1af8(0xe6)](_0x4e1af8(0x113)),_0x5b6a46['push'](''),_0x5b6a46[_0x4e1af8(0xe6)](_0x4e1af8(0xf7)),_0x5b6a46[_0x4e1af8(0xe6)](_0x4e1af8(0x125)+_0x25bea9+'=ak_xxx'),_0x5b6a46[_0x4e1af8(0xe6)](''),_0x5b6a46[_0x4e1af8(0xe6)](_0x4e1af8(0x11d)+CLI_BIN_NAME+_0x4e1af8(0x124)),_0x5b6a46['push'](_0x4e1af8(0xd8)+CLI_BIN_NAME+_0x4e1af8(0xee));if(_0x549a34[_0x4e1af8(0x11c)](_0x4e1af8(0x115))){const _0x29daf9=readStoredDeviceCode();if(_0x29daf9&&!isStoredDeviceCodeExpired(_0x29daf9)){const _0xf0b1f6=getUserDomain(),_0x4ee59f=await fetchDeviceToken(_0xf0b1f6,_0x29daf9[_0x4e1af8(0x10b)]);if(_0x4ee59f[_0x4e1af8(0xf5)]===_0x4e1af8(0xdc)&&_0x4ee59f[_0x4e1af8(0xfb)]){const _0x233204={'global':_0x29daf9[_0x4e1af8(0x104)]===_0x4e1af8(0x109)},_0x53a3e9=readScopedConfig(_0x233204);_0x53a3e9[_0x4e1af8(0xe9)]=_0x4ee59f[_0x4e1af8(0xfb)],writeScopedConfig(_0x53a3e9,_0x233204),deleteStoredDeviceCode();const _0x91ffcb=_0x4ee59f['access_key'],_0x197fa8=maskCliAccessKey(_0x91ffcb),_0xebf267=_0x29daf9['scope']===_0x4e1af8(0x109)?'global\x20config':_0x4e1af8(0xf6);return{'ok':!![],'message':[_0x4e1af8(0x10a)+AUTH_MODE[_0x4e1af8(0x116)],..._0x549a34[_0x4e1af8(0xd1)]&&!isProduction(_0x549a34[_0x4e1af8(0xd1)])?[_0x4e1af8(0x129)+_0x549a34[_0x4e1af8(0xd1)]]:[],'AccessKey:\x20'+_0x197fa8+_0x4e1af8(0x10f)+_0xebf267+')',_0x4e1af8(0x10c),_0x4e1af8(0xfd)][_0x4e1af8(0xe7)]('\x0a')};}_0x4ee59f[_0x4e1af8(0xf5)]===_0x4e1af8(0xe5)&&deleteStoredDeviceCode();throw CliErrors['authRequired'](_0x4e1af8(0x11e));}throw CliErrors[_0x4e1af8(0xde)](_0x5b6a46[_0x4e1af8(0xe7)]('\x0a'));}}return{'ok':!![],'message':_0x5b6a46['join']('\x0a')};}},{'service':a13_0xecc359(0x119),'command':a13_0xecc359(0xfe),'description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':a13_0xecc359(0xc5),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x3a585a){const _0x196508=a13_0xecc359,_0x297a48=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x297a48,'meta':{'env':_0x3a585a['envName']??_0x196508(0xef)}}};}},authDeviceDefinition];
@@ -1 +1 @@
1
- function a14_0x5e07(){const _0x178445=['4696104IaXbvk','AccessKey\x20(','name','11HCiWwr','race','stdin','1499800sMneJl','1449gLewJa','question','AbortPrompt','):\x20','4RkOAYg','SIGINT','3336kZFAtp','1106220hydylU','139197NVQYfb','7coUEVn','removeListener','AccessKey\x20(paste\x20ak_...):\x20','trim','User\x20aborted\x20prompt','4lxDAch','1570515oXgwqI','once','close','380411Oborjy'];a14_0x5e07=function(){return _0x178445;};return a14_0x5e07();}(function(_0x2aa23d,_0x1ee714){const _0x52aa27=a14_0x21c8,_0x334ec5=_0x2aa23d();while(!![]){try{const _0x2965ff=-parseInt(_0x52aa27(0x9d))/0x1+parseInt(_0x52aa27(0xb3))/0x2*(parseInt(_0x52aa27(0xad))/0x3)+parseInt(_0x52aa27(0xa9))/0x4*(-parseInt(_0x52aa27(0xb4))/0x5)+-parseInt(_0x52aa27(0xac))/0x6*(-parseInt(_0x52aa27(0xae))/0x7)+-parseInt(_0x52aa27(0xab))/0x8*(-parseInt(_0x52aa27(0xa5))/0x9)+parseInt(_0x52aa27(0xa4))/0xa+parseInt(_0x52aa27(0xa1))/0xb*(parseInt(_0x52aa27(0x9e))/0xc);if(_0x2965ff===_0x1ee714)break;else _0x334ec5['push'](_0x334ec5['shift']());}catch(_0x2d3b54){_0x334ec5['push'](_0x334ec5['shift']());}}}(a14_0x5e07,0x2ea89));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0xcd4102=a14_0x21c8;super(_0xcd4102(0xb2)),this[_0xcd4102(0xa0)]=_0xcd4102(0xa7);}}function createSafeRl(){const _0xf281d4=a14_0x21c8,_0x5ecdf1=createInterface({'input':process[_0xf281d4(0xa3)],'output':process['stdout']});let _0x1fb6ec;const _0xcb3dba=new Promise((_0x29e628,_0x59e8db)=>{const _0x4f905c=_0xf281d4;_0x1fb6ec=()=>{const _0x329edf=a14_0x21c8;_0x1fb6ec&&(_0x5ecdf1[_0x329edf(0xaf)]('SIGINT',_0x1fb6ec),_0x1fb6ec=undefined);try{_0x5ecdf1[_0x329edf(0xb6)]();}catch{}_0x59e8db(new AbortPrompt());},_0x5ecdf1[_0x4f905c(0xb5)](_0x4f905c(0xaa),_0x1fb6ec);}),_0x3e0f3c=()=>{const _0x318eec=_0xf281d4;_0x1fb6ec&&(_0x5ecdf1['removeListener'](_0x318eec(0xaa),_0x1fb6ec),_0x1fb6ec=undefined);try{_0x5ecdf1[_0x318eec(0xb6)]();}catch{}};return{'rl':_0x5ecdf1,'abortPromise':_0xcb3dba,'disposeSuccess':_0x3e0f3c};}function a14_0x21c8(_0x11dbd2,_0x491015){_0x11dbd2=_0x11dbd2-0x9d;const _0x5e0738=a14_0x5e07();let _0x21c8a8=_0x5e0738[_0x11dbd2];return _0x21c8a8;}export async function promptAccessKey(_0x4c7310=''){const _0x517e39=a14_0x21c8,{rl:_0x2e8f38,abortPromise:_0x1608f,disposeSuccess:_0x150138}=createSafeRl(),_0x5e7ed7=new Promise(_0x40123b=>{const _0x3efb17=a14_0x21c8,_0x961a84=_0x4c7310?_0x3efb17(0x9f)+_0x4c7310+_0x3efb17(0xa8):_0x3efb17(0xb0);_0x2e8f38[_0x3efb17(0xa6)](_0x961a84,_0x455fb0=>{const _0x157bdf=_0x3efb17;_0x150138(),_0x40123b(_0x455fb0[_0x157bdf(0xb1)]()||_0x4c7310);});});return Promise[_0x517e39(0xa2)]([_0x5e7ed7,_0x1608f]);}export function isAbortPrompt(_0xc48378){const _0x4a9ab3=a14_0x21c8;return _0xc48378 instanceof Error&&_0xc48378[_0x4a9ab3(0xa0)]===_0x4a9ab3(0xa7);}
1
+ (function(_0x42d74e,_0x5265f9){const _0x7a36a9=a14_0x1884,_0x10b6c6=_0x42d74e();while(!![]){try{const _0x312a87=parseInt(_0x7a36a9(0x1e8))/0x1+parseInt(_0x7a36a9(0x1e9))/0x2+parseInt(_0x7a36a9(0x1e4))/0x3*(-parseInt(_0x7a36a9(0x1e6))/0x4)+parseInt(_0x7a36a9(0x1ea))/0x5*(parseInt(_0x7a36a9(0x1da))/0x6)+parseInt(_0x7a36a9(0x1d9))/0x7*(-parseInt(_0x7a36a9(0x1e3))/0x8)+-parseInt(_0x7a36a9(0x1eb))/0x9+-parseInt(_0x7a36a9(0x1dc))/0xa;if(_0x312a87===_0x5265f9)break;else _0x10b6c6['push'](_0x10b6c6['shift']());}catch(_0xca8a90){_0x10b6c6['push'](_0x10b6c6['shift']());}}}(a14_0x259f,0x53529));import{createInterface}from'node:readline';function a14_0x1884(_0x1dfe2d,_0x53beaf){_0x1dfe2d=_0x1dfe2d-0x1d4;const _0x259f18=a14_0x259f();let _0x188475=_0x259f18[_0x1dfe2d];return _0x188475;}class AbortPrompt extends Error{constructor(){const _0x52ec69=a14_0x1884;super(_0x52ec69(0x1e2)),this[_0x52ec69(0x1d6)]=_0x52ec69(0x1d7);}}function createSafeRl(){const _0x5ab8fb=a14_0x1884,_0x4dbacd=createInterface({'input':process[_0x5ab8fb(0x1e5)],'output':process[_0x5ab8fb(0x1db)]});let _0x5b8dd0;const _0x3a0ab8=new Promise((_0x5f4271,_0xe731e3)=>{const _0x38af70=_0x5ab8fb;_0x5b8dd0=()=>{const _0x5d538d=a14_0x1884;_0x5b8dd0&&(_0x4dbacd[_0x5d538d(0x1d8)](_0x5d538d(0x1df),_0x5b8dd0),_0x5b8dd0=undefined);try{_0x4dbacd[_0x5d538d(0x1e1)]();}catch{}_0xe731e3(new AbortPrompt());},_0x4dbacd[_0x38af70(0x1de)](_0x38af70(0x1df),_0x5b8dd0);}),_0x4701f3=()=>{const _0x543403=_0x5ab8fb;_0x5b8dd0&&(_0x4dbacd['removeListener'](_0x543403(0x1df),_0x5b8dd0),_0x5b8dd0=undefined);try{_0x4dbacd['close']();}catch{}};return{'rl':_0x4dbacd,'abortPromise':_0x3a0ab8,'disposeSuccess':_0x4701f3};}export async function promptAccessKey(_0x3faf8f=''){const _0x263176=a14_0x1884,{rl:_0x16d669,abortPromise:_0x37df7c,disposeSuccess:_0x3a0791}=createSafeRl(),_0x431963=new Promise(_0x5c7bab=>{const _0x356507=a14_0x1884,_0x1d8dd9=_0x3faf8f?_0x356507(0x1d4)+_0x3faf8f+_0x356507(0x1e0):_0x356507(0x1e7);_0x16d669['question'](_0x1d8dd9,_0x192046=>{const _0x185203=_0x356507;_0x3a0791(),_0x5c7bab(_0x192046[_0x185203(0x1d5)]()||_0x3faf8f);});});return Promise[_0x263176(0x1dd)]([_0x431963,_0x37df7c]);}function a14_0x259f(){const _0x30920e=['once','SIGINT','):\x20','close','User\x20aborted\x20prompt','298184vuLfOB','3VsmDxJ','stdin','1585616HRdgLM','AccessKey\x20(paste\x20ak_...):\x20','33263ffusBr','1018778INUstq','5zvCALa','1217700EiYcUv','AccessKey\x20(','trim','name','AbortPrompt','removeListener','21HhLlTC','4021482YADeAQ','stdout','2280870qRmXGW','race'];a14_0x259f=function(){return _0x30920e;};return a14_0x259f();}export function isAbortPrompt(_0x2358a7){const _0x331953=a14_0x1884;return _0x2358a7 instanceof Error&&_0x2358a7[_0x331953(0x1d6)]===_0x331953(0x1d7);}
@@ -1 +1 @@
1
- const a15_0x4d25d8=a15_0x1d42;function a15_0x3ee2(){const _0x2b5588=['gmtModified','26836TuBtsG','1083792xjNudn','str','92ywGziA','Get\x20a\x20Backend\x20Function\x20endpoint\x20contract\x20by\x20function\x20name','appCode','70cpxNTK','detail','version','Backend\x20Function\x20name','146312tQiciv','285WqXgfr','1280330OTsUEf','read','bff','511LvczgX','16324649uDmcVq','description','name','functionName','5745474QgGAJh','9MhpWtv'];a15_0x3ee2=function(){return _0x2b5588;};return a15_0x3ee2();}(function(_0x2270e2,_0x59ae26){const _0x24c907=a15_0x1d42,_0x23ce59=_0x2270e2();while(!![]){try{const _0x26992a=-parseInt(_0x24c907(0x132))/0x1*(-parseInt(_0x24c907(0x13d))/0x2)+parseInt(_0x24c907(0x13b))/0x3+parseInt(_0x24c907(0x13a))/0x4*(-parseInt(_0x24c907(0x12e))/0x5)+-parseInt(_0x24c907(0x137))/0x6+-parseInt(_0x24c907(0x129))/0x7*(-parseInt(_0x24c907(0x12d))/0x8)+parseInt(_0x24c907(0x138))/0x9*(-parseInt(_0x24c907(0x12f))/0xa)+parseInt(_0x24c907(0x133))/0xb;if(_0x26992a===_0x59ae26)break;else _0x23ce59['push'](_0x23ce59['shift']());}catch(_0x34997c){_0x23ce59['push'](_0x23ce59['shift']());}}}(a15_0x3ee2,0x8e80e));import{getBffEndpointContract}from'../../core/api-client.js';function a15_0x1d42(_0x3c6463,_0x170b38){_0x3c6463=_0x3c6463-0x127;const _0x3ee21c=a15_0x3ee2();let _0x1d4245=_0x3ee21c[_0x3c6463];return _0x1d4245;}import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a15_0x4d25d8(0x131),'command':a15_0x4d25d8(0x12a),'description':a15_0x4d25d8(0x127),'risk':a15_0x4d25d8(0x130),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x4d25d8(0x12c)}],async 'execute'(_0x11fc87){const _0xc6f78e=a15_0x4d25d8,_0x39a612=await getBffEndpointContract(_0x11fc87[_0xc6f78e(0x128)],_0x11fc87[_0xc6f78e(0x13c)](_0xc6f78e(0x135)));return{'ok':!![],'data':{'appCode':_0x39a612['appCode'],'functionName':_0x39a612[_0xc6f78e(0x136)],'description':_0x39a612[_0xc6f78e(0x134)]||'(none)','version':_0x39a612[_0xc6f78e(0x12b)],'gmtModified':_0x39a612[_0xc6f78e(0x139)]}};}};
1
+ function a15_0x117b(){const _0x2c5d56=['Backend\x20Function\x20name','gmtModified','functionName','5pLjzrC','22215240fsloUN','str','(none)','31307jEskxU','4888048zjxNJF','9EUnjge','3688518ystPtV','detail','name','2578125IiQyoB','description','4410980cqdCLW','appCode','3382204GQFzJi','bff','read','82GqppJG'];a15_0x117b=function(){return _0x2c5d56;};return a15_0x117b();}const a15_0x346a23=a15_0x39ce;(function(_0x7c8d43,_0x3875ae){const _0x17f64e=a15_0x39ce,_0xb407c7=_0x7c8d43();while(!![]){try{const _0x3d5454=parseInt(_0x17f64e(0x1ca))/0x1*(-parseInt(_0x17f64e(0x1d7))/0x2)+-parseInt(_0x17f64e(0x1d0))/0x3+parseInt(_0x17f64e(0x1d2))/0x4+-parseInt(_0x17f64e(0x1db))/0x5*(parseInt(_0x17f64e(0x1cd))/0x6)+-parseInt(_0x17f64e(0x1d4))/0x7+parseInt(_0x17f64e(0x1cb))/0x8*(parseInt(_0x17f64e(0x1cc))/0x9)+parseInt(_0x17f64e(0x1dc))/0xa;if(_0x3d5454===_0x3875ae)break;else _0xb407c7['push'](_0xb407c7['shift']());}catch(_0x3aff43){_0xb407c7['push'](_0xb407c7['shift']());}}}(a15_0x117b,0xa9874));import{getBffEndpointContract}from'../../core/api-client.js';function a15_0x39ce(_0x27fd5f,_0x49d918){_0x27fd5f=_0x27fd5f-0x1ca;const _0x117b02=a15_0x117b();let _0x39ce69=_0x117b02[_0x27fd5f];return _0x39ce69;}import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a15_0x346a23(0x1d5),'command':a15_0x346a23(0x1ce),'description':'Get\x20a\x20Backend\x20Function\x20endpoint\x20contract\x20by\x20function\x20name','risk':a15_0x346a23(0x1d6),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x346a23(0x1d8)}],async 'execute'(_0x28dfd1){const _0x5684c1=a15_0x346a23,_0x20c5e5=await getBffEndpointContract(_0x28dfd1[_0x5684c1(0x1d3)],_0x28dfd1[_0x5684c1(0x1dd)](_0x5684c1(0x1cf)));return{'ok':!![],'data':{'appCode':_0x20c5e5['appCode'],'functionName':_0x20c5e5[_0x5684c1(0x1da)],'description':_0x20c5e5[_0x5684c1(0x1d1)]||_0x5684c1(0x1de),'version':_0x20c5e5['version'],'gmtModified':_0x20c5e5[_0x5684c1(0x1d9)]}};}};
@@ -1 +1 @@
1
- const a16_0x883b2e=a16_0x4764;function a16_0x4764(_0xf2d70b,_0x28ba36){_0xf2d70b=_0xf2d70b-0xfb;const _0x2c392f=a16_0x2c39();let _0x47643d=_0x2c392f[_0xf2d70b];return _0x47643d;}(function(_0x9c46e4,_0xaae603){const _0x593a99=a16_0x4764,_0x589721=_0x9c46e4();while(!![]){try{const _0x380806=-parseInt(_0x593a99(0x103))/0x1+-parseInt(_0x593a99(0x104))/0x2*(-parseInt(_0x593a99(0x106))/0x3)+-parseInt(_0x593a99(0x10c))/0x4*(parseInt(_0x593a99(0x10a))/0x5)+parseInt(_0x593a99(0x108))/0x6*(parseInt(_0x593a99(0x107))/0x7)+-parseInt(_0x593a99(0x105))/0x8*(-parseInt(_0x593a99(0x10e))/0x9)+parseInt(_0x593a99(0x10b))/0xa*(-parseInt(_0x593a99(0x109))/0xb)+parseInt(_0x593a99(0xff))/0xc;if(_0x380806===_0xaae603)break;else _0x589721['push'](_0x589721['shift']());}catch(_0x5cc9a2){_0x589721['push'](_0x589721['shift']());}}}(a16_0x2c39,0x8b54c));import{executeSdkBff}from'../../core/sdk-client.js';function a16_0x2c39(){const _0x1dc528=['12635OqyScw','3534MgrzlG','2074006cbSofB','3885890wdmlQa','20OIPOwM','4fAITlb','Backend\x20Function\x20name\x20to\x20execute','9GmgnAj','str','name','Backend\x20Function\x20executed\x20in\x20','Execute\x20a\x20Backend\x20Function\x20script\x20by\x20function\x20name','12501984OBSDXF','now','read','exec','614206zBaEvz','32668MANbpG','958888aGApJT','21dyoshz'];a16_0x2c39=function(){return _0x1dc528;};return a16_0x2c39();}import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':'bff','command':a16_0x883b2e(0x102),'description':a16_0x883b2e(0xfe),'risk':a16_0x883b2e(0x101),'flags':[{...NAME_FLAG,'required':!![],'description':a16_0x883b2e(0x10d)},PARAMS_FLAG],async 'execute'(_0x42299b){const _0x48bb36=a16_0x883b2e,_0x38aecc=parseJsonParams(_0x42299b['str']('params')),_0x23ecb9=Date[_0x48bb36(0x100)](),_0x35fc19=await executeSdkBff(_0x42299b[_0x48bb36(0xfb)](_0x48bb36(0xfc)),_0x38aecc),_0x3e8aba=Date[_0x48bb36(0x100)]()-_0x23ecb9;return{'ok':!![],'data':{'result':_0x35fc19,'elapsed':_0x3e8aba},'message':_0x48bb36(0xfd)+_0x3e8aba+'ms'};}};
1
+ const a16_0xb24d83=a16_0x26a6;function a16_0x26a6(_0x4f0417,_0x4d46aa){_0x4f0417=_0x4f0417-0x163;const _0x447a30=a16_0x447a();let _0x26a668=_0x447a30[_0x4f0417];return _0x26a668;}function a16_0x447a(){const _0x228ed1=['exec','13sKEsGV','Backend\x20Function\x20executed\x20in\x20','43311ouNChy','336244qjTFxm','now','1780764JHuERs','name','Backend\x20Function\x20name\x20to\x20execute','str','50ovaUTH','12zbObnZ','3023713smPhPl','1161312onfQVd','1521933uLumcy','2688920fDaNSJ','27JBqsVb','params','16yNPrcn','Execute\x20a\x20Backend\x20Function\x20script\x20by\x20function\x20name','bff','20NjfQts'];a16_0x447a=function(){return _0x228ed1;};return a16_0x447a();}(function(_0x2db94d,_0x51aef6){const _0x567adf=a16_0x26a6,_0x579ff2=_0x2db94d();while(!![]){try{const _0x4d6d88=-parseInt(_0x567adf(0x170))/0x1*(-parseInt(_0x567adf(0x169))/0x2)+parseInt(_0x567adf(0x173))/0x3+parseInt(_0x567adf(0x171))/0x4*(parseInt(_0x567adf(0x177))/0x5)+-parseInt(_0x567adf(0x178))/0x6*(-parseInt(_0x567adf(0x165))/0x7)+parseInt(_0x567adf(0x166))/0x8*(-parseInt(_0x567adf(0x167))/0x9)+parseInt(_0x567adf(0x16c))/0xa*(-parseInt(_0x567adf(0x163))/0xb)+-parseInt(_0x567adf(0x164))/0xc*(parseInt(_0x567adf(0x16e))/0xd);if(_0x4d6d88===_0x51aef6)break;else _0x579ff2['push'](_0x579ff2['shift']());}catch(_0x249113){_0x579ff2['push'](_0x579ff2['shift']());}}}(a16_0x447a,0x88dfd));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_0xb24d83(0x16b),'command':a16_0xb24d83(0x16d),'description':a16_0xb24d83(0x16a),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':a16_0xb24d83(0x175)},PARAMS_FLAG],async 'execute'(_0x41ed38){const _0x19333d=a16_0xb24d83,_0x349103=parseJsonParams(_0x41ed38[_0x19333d(0x176)](_0x19333d(0x168))),_0x5178fd=Date['now'](),_0x255eb6=await executeSdkBff(_0x41ed38[_0x19333d(0x176)](_0x19333d(0x174)),_0x349103),_0x363757=Date[_0x19333d(0x172)]()-_0x5178fd;return{'ok':!![],'data':{'result':_0x255eb6,'elapsed':_0x363757},'message':_0x19333d(0x16f)+_0x363757+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x562e22,_0x567c7a){const _0x2303e3=a17_0x4d1e,_0x1df439=_0x562e22();while(!![]){try{const _0x7fe508=parseInt(_0x2303e3(0x151))/0x1+-parseInt(_0x2303e3(0x156))/0x2*(-parseInt(_0x2303e3(0x150))/0x3)+parseInt(_0x2303e3(0x14f))/0x4*(-parseInt(_0x2303e3(0x154))/0x5)+-parseInt(_0x2303e3(0x14d))/0x6+-parseInt(_0x2303e3(0x153))/0x7+parseInt(_0x2303e3(0x14e))/0x8*(parseInt(_0x2303e3(0x157))/0x9)+-parseInt(_0x2303e3(0x155))/0xa*(parseInt(_0x2303e3(0x152))/0xb);if(_0x7fe508===_0x567c7a)break;else _0x1df439['push'](_0x1df439['shift']());}catch(_0x1b4f7c){_0x1df439['push'](_0x1df439['shift']());}}}(a17_0x1fb5,0xb134c));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];function a17_0x4d1e(_0x1c27b8,_0x329f51){_0x1c27b8=_0x1c27b8-0x14d;const _0x1fb56b=a17_0x1fb5();let _0x4d1e57=_0x1fb56b[_0x1c27b8];return _0x4d1e57;}function a17_0x1fb5(){const _0x1e4c39=['6276895cCvjzS','138280NdXKun','6vTkVIe','9PLdmIO','772572pAEUEq','5962368TfYcHa','4CqHJwP','1428807AIQjON','1298361ekkISd','638jsqqtn','3923241zmMNfj'];a17_0x1fb5=function(){return _0x1e4c39;};return a17_0x1fb5();}
1
+ (function(_0x55b2c0,_0x1c41d2){const _0xf9acae=a17_0x56dc,_0x5dd76e=_0x55b2c0();while(!![]){try{const _0x14ba96=parseInt(_0xf9acae(0x16f))/0x1+parseInt(_0xf9acae(0x175))/0x2*(parseInt(_0xf9acae(0x171))/0x3)+-parseInt(_0xf9acae(0x176))/0x4*(-parseInt(_0xf9acae(0x173))/0x5)+parseInt(_0xf9acae(0x172))/0x6+-parseInt(_0xf9acae(0x170))/0x7+-parseInt(_0xf9acae(0x174))/0x8+-parseInt(_0xf9acae(0x16e))/0x9*(parseInt(_0xf9acae(0x177))/0xa);if(_0x14ba96===_0x1c41d2)break;else _0x5dd76e['push'](_0x5dd76e['shift']());}catch(_0x3bf88d){_0x5dd76e['push'](_0x5dd76e['shift']());}}}(a17_0x1daf,0x4b412));function a17_0x56dc(_0x404a8a,_0x4bd4aa){_0x404a8a=_0x404a8a-0x16e;const _0x1daf36=a17_0x1daf();let _0x56dcdb=_0x1daf36[_0x404a8a];return _0x56dcdb;}function a17_0x1daf(){const _0xd70a8c=['9490257BabOZg','422844fEpXFP','89096pXUHGP','2361BYCSLq','3634356bYxuBj','10pFyXez','2705024AcyPhx','638MrIBEj','867896DwtqBR','10gTKmpl'];a17_0x1daf=function(){return _0xd70a8c;};return a17_0x1daf();}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- const a18_0x311cd8=a18_0x41bd;(function(_0x53a0ed,_0x5a4f40){const _0x5ef853=a18_0x41bd,_0x54a761=_0x53a0ed();while(!![]){try{const _0x4c5485=parseInt(_0x5ef853(0x1c1))/0x1*(-parseInt(_0x5ef853(0x1b0))/0x2)+parseInt(_0x5ef853(0x1c3))/0x3+-parseInt(_0x5ef853(0x1a7))/0x4+-parseInt(_0x5ef853(0x1b1))/0x5+-parseInt(_0x5ef853(0x1b2))/0x6*(parseInt(_0x5ef853(0x1b6))/0x7)+-parseInt(_0x5ef853(0x1c5))/0x8+-parseInt(_0x5ef853(0x1b3))/0x9*(-parseInt(_0x5ef853(0x1a9))/0xa);if(_0x4c5485===_0x5a4f40)break;else _0x54a761['push'](_0x54a761['shift']());}catch(_0x19b498){_0x54a761['push'](_0x54a761['shift']());}}}(a18_0x922d,0x795b3));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';import{logger}from'../../utils/logger.js';function a18_0x41bd(_0xd61b79,_0x5b06e0){_0xd61b79=_0xd61b79-0x1a6;const _0x922d83=a18_0x922d();let _0x41bd84=_0x922d83[_0xd61b79];return _0x41bd84;}function a18_0x922d(){const _0x16ef9e=['6501216CmbkBy','skillVersion','error','3939020dpbAiC','nonInteractive','41941370amUbcZ','code','setLogPath','\x20installed','inherit','pipe','cli-skill-install','991082SzkAzW','3003320bQjUVf','6vcFlPh','9nQCcuu','installedPath','repairCommand','6245701JAXEVh','log','CLI\x20Built-in\x20Skill\x20','changed','\x20at\x20','apiError','info','Built-in\x20Skill\x20install\x20failed\x20[','\x20is\x20already\x20current','install','INSTALL_FAILED','1RJgiuS','cwd','266379ydPMSF','Install\x20the\x20built-in\x20CLI\x20Skill\x20required\x20by\x20Lovrabet\x20runtime'];a18_0x922d=function(){return _0x16ef9e;};return a18_0x922d();}export const cliSkillDefinitions=[{'service':'cli-skill','command':a18_0x311cd8(0x1bf),'description':a18_0x311cd8(0x1c4),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3f48d4){const _0xd6420e=a18_0x311cd8;logger[_0xd6420e(0x1ab)](process[_0xd6420e(0x1c2)]()),logger[_0xd6420e(0x1bc)](_0xd6420e(0x1af),'Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20npm\x20package.');const _0x152210=installBuiltinSkill({'stdio':_0x3f48d4[_0xd6420e(0x1a8)]?_0xd6420e(0x1ae):_0xd6420e(0x1ad)});if(!_0x152210['ok'])throw CliErrors[_0xd6420e(0x1bb)](_0xd6420e(0x1bd)+(_0x152210[_0xd6420e(0x1aa)]||_0xd6420e(0x1c0))+']:\x20'+(_0x152210[_0xd6420e(0x1a6)]||'unknown'),'Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20'+_0x152210[_0xd6420e(0x1b5)]);const _0x4fc1e7=_0x152210['installedPath']?_0xd6420e(0x1ba)+_0x152210[_0xd6420e(0x1b4)]:'';return console[_0xd6420e(0x1b7)](_0x152210[_0xd6420e(0x1b9)]?_0xd6420e(0x1b8)+_0x152210['skillVersion']+_0xd6420e(0x1ac)+_0x4fc1e7:_0xd6420e(0x1b8)+_0x152210[_0xd6420e(0x1c6)]+_0xd6420e(0x1be)+_0x4fc1e7),{'ok':!![]};}}];
1
+ const a18_0x66f12a=a18_0x222b;function a18_0x2bfd(){const _0x9cfe3e=['3443APOnDU','inherit','9770tuvgmy','CLI\x20Built-in\x20Skill\x20','setLogPath','23848NGElMI','installedPath','changed','38952QPPdHJ','repairCommand','99AWnjoq','Install\x20the\x20built-in\x20CLI\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','apiError','skillVersion','1188930VAXplx','345834PovqFh','1rJtlMP','27VQffXI','990685FiFvEF',']:\x20','info','log','install','Built-in\x20Skill\x20install\x20failed\x20[','\x20installed','pipe','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20npm\x20package.','error','INSTALL_FAILED','cwd','\x20at\x20','cli-skill','\x20is\x20already\x20current','109634yNoXRV'];a18_0x2bfd=function(){return _0x9cfe3e;};return a18_0x2bfd();}(function(_0x5e30b0,_0x16544c){const _0x536623=a18_0x222b,_0x5818eb=_0x5e30b0();while(!![]){try{const _0x5b38b4=-parseInt(_0x536623(0xbf))/0x1*(-parseInt(_0x536623(0xbe))/0x2)+-parseInt(_0x536623(0xc0))/0x3*(-parseInt(_0x536623(0xb7))/0x4)+-parseInt(_0x536623(0xc1))/0x5+-parseInt(_0x536623(0xbd))/0x6+-parseInt(_0x536623(0xd0))/0x7+-parseInt(_0x536623(0xd6))/0x8*(parseInt(_0x536623(0xb9))/0x9)+parseInt(_0x536623(0xd3))/0xa*(parseInt(_0x536623(0xd1))/0xb);if(_0x5b38b4===_0x16544c)break;else _0x5818eb['push'](_0x5818eb['shift']());}catch(_0x84f019){_0x5818eb['push'](_0x5818eb['shift']());}}}(a18_0x2bfd,0x1db0f));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';import{logger}from'../../utils/logger.js';function a18_0x222b(_0x2552ba,_0x222c53){_0x2552ba=_0x2552ba-0xb7;const _0x2bfdd9=a18_0x2bfd();let _0x222bfc=_0x2bfdd9[_0x2552ba];return _0x222bfc;}export const cliSkillDefinitions=[{'service':a18_0x66f12a(0xce),'command':a18_0x66f12a(0xc5),'description':a18_0x66f12a(0xba),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xffb9cc){const _0x1d84d3=a18_0x66f12a;logger[_0x1d84d3(0xd5)](process[_0x1d84d3(0xcc)]()),logger[_0x1d84d3(0xc3)]('cli-skill-install',_0x1d84d3(0xc9));const _0x2fd7c0=installBuiltinSkill({'stdio':_0xffb9cc['nonInteractive']?_0x1d84d3(0xc8):_0x1d84d3(0xd2)});if(!_0x2fd7c0['ok'])throw CliErrors[_0x1d84d3(0xbb)](_0x1d84d3(0xc6)+(_0x2fd7c0['code']||_0x1d84d3(0xcb))+_0x1d84d3(0xc2)+(_0x2fd7c0[_0x1d84d3(0xca)]||'unknown'),'Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20'+_0x2fd7c0[_0x1d84d3(0xb8)]);const _0x1bd30f=_0x2fd7c0['installedPath']?_0x1d84d3(0xcd)+_0x2fd7c0[_0x1d84d3(0xd7)]:'';return console[_0x1d84d3(0xc4)](_0x2fd7c0[_0x1d84d3(0xd8)]?_0x1d84d3(0xd4)+_0x2fd7c0[_0x1d84d3(0xbc)]+_0x1d84d3(0xc7)+_0x1bd30f:_0x1d84d3(0xd4)+_0x2fd7c0['skillVersion']+_0x1d84d3(0xcf)+_0x1bd30f),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x1b2304,_0xf83a4b){const _0x35ded2=a19_0x42c4,_0x1b613a=_0x1b2304();while(!![]){try{const _0xe4ef66=parseInt(_0x35ded2(0x128))/0x1+-parseInt(_0x35ded2(0x12b))/0x2*(parseInt(_0x35ded2(0x138))/0x3)+-parseInt(_0x35ded2(0x131))/0x4+-parseInt(_0x35ded2(0x12e))/0x5*(-parseInt(_0x35ded2(0x123))/0x6)+parseInt(_0x35ded2(0x13b))/0x7*(-parseInt(_0x35ded2(0x133))/0x8)+parseInt(_0x35ded2(0x127))/0x9*(-parseInt(_0x35ded2(0x12f))/0xa)+-parseInt(_0x35ded2(0x12a))/0xb*(-parseInt(_0x35ded2(0x134))/0xc);if(_0xe4ef66===_0xf83a4b)break;else _0x1b613a['push'](_0x1b613a['shift']());}catch(_0x480cbe){_0x1b613a['push'](_0x1b613a['shift']());}}}(a19_0x20ff,0xed02d));import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';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';function a19_0x42c4(_0x1f2dcf,_0x3c6d8f){_0x1f2dcf=_0x1f2dcf-0x123;const _0x20ff6d=a19_0x20ff();let _0x42c4ce=_0x20ff6d[_0x1f2dcf];return _0x42c4ce;}export function resolveConfigScope(_0x306dd3){const _0x447963=a19_0x42c4,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x39158f}=_0x306dd3;if(explicitGlobal&&explicitProject)throw CliErrors[_0x447963(0x136)]('Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.',_0x447963(0x125));if(explicitGlobal)return _0x447963(0x129);if(explicitProject)return _0x447963(0x135);switch(_0x39158f){case _0x447963(0x132):return _0x447963(0x129);case _0x447963(0x139):if(!(_0x306dd3[_0x447963(0x12c)]??isInProject()))throw CliErrors[_0x447963(0x136)](_0x447963(0x130)+PRODUCT_CONFIG[_0x447963(0x126)]+_0x447963(0x137),'Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG[_0x447963(0x126)]+_0x447963(0x12d)+PRODUCT_CONFIG[_0x447963(0x126)]+_0x447963(0x13a));return _0x447963(0x135);}}function a19_0x20ff(){const _0x585d7e=['Not\x20inside\x20a\x20project\x20(no\x20','3854620sDAqVq','global-default','151480PaFFca','351096pHJWGm','project','validation','\x20found).','4549971QTnQyI','project-or-global-explicit','\x20first.','161MzDDgK','6XgrwgX','\x20(global)','Use\x20only\x20one\x20config\x20scope\x20flag.','newConfigFileName','4729887FYYtIg','191814dhidIa','global','1067fHukbr','2vGknTt','inProject',',\x20or\x20create\x20a\x20project-local\x20','6911585lLlTvM','10aNwfEl'];a19_0x20ff=function(){return _0x585d7e;};return a19_0x20ff();}export function toScopeFlags(_0x5a87ad){const _0x3b772b=a19_0x42c4;return{'global':_0x5a87ad===_0x3b772b(0x129)};}export function formatScopeLabel(_0x311923){const _0xda4e4b=a19_0x42c4;return _0x311923===_0xda4e4b(0x129)?_0xda4e4b(0x124):'';}
1
+ (function(_0x280702,_0x128111){const _0xee05b2=a19_0x99b1,_0x2dd6f3=_0x280702();while(!![]){try{const _0x1c0ba8=parseInt(_0xee05b2(0x144))/0x1+parseInt(_0xee05b2(0x13c))/0x2*(-parseInt(_0xee05b2(0x142))/0x3)+parseInt(_0xee05b2(0x135))/0x4+parseInt(_0xee05b2(0x13f))/0x5*(parseInt(_0xee05b2(0x12f))/0x6)+parseInt(_0xee05b2(0x137))/0x7+-parseInt(_0xee05b2(0x131))/0x8*(parseInt(_0xee05b2(0x147))/0x9)+-parseInt(_0xee05b2(0x141))/0xa;if(_0x1c0ba8===_0x128111)break;else _0x2dd6f3['push'](_0x2dd6f3['shift']());}catch(_0x5f4728){_0x2dd6f3['push'](_0x2dd6f3['shift']());}}}(a19_0x7345,0x7690e));import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';function a19_0x99b1(_0x5a0e44,_0x3eb834){_0x5a0e44=_0x5a0e44-0x12f;const _0x734509=a19_0x7345();let _0x99b191=_0x734509[_0x5a0e44];return _0x99b191;}export{RUNTIME_ENV_VALUES}from'../../constant/env.js';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(_0x1e771e){const _0x51c587=a19_0x99b1,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x2dc6e4}=_0x1e771e;if(explicitGlobal&&explicitProject)throw CliErrors['validation'](_0x51c587(0x136),_0x51c587(0x13e));if(explicitGlobal)return _0x51c587(0x138);if(explicitProject)return _0x51c587(0x140);switch(_0x2dc6e4){case _0x51c587(0x139):return'global';case _0x51c587(0x132):if(!(_0x1e771e[_0x51c587(0x146)]??isInProject()))throw CliErrors[_0x51c587(0x13d)](_0x51c587(0x130)+PRODUCT_CONFIG[_0x51c587(0x134)]+_0x51c587(0x145),_0x51c587(0x13b)+PRODUCT_CONFIG[_0x51c587(0x134)]+_0x51c587(0x133)+PRODUCT_CONFIG[_0x51c587(0x134)]+_0x51c587(0x13a));return _0x51c587(0x140);}}export function toScopeFlags(_0x1dc5bb){return{'global':_0x1dc5bb==='global'};}export function formatScopeLabel(_0x328256){const _0x489b4a=a19_0x99b1;return _0x328256===_0x489b4a(0x138)?_0x489b4a(0x143):'';}function a19_0x7345(){const _0x556a1f=['Use\x20only\x20one\x20config\x20scope\x20flag.','5DAYgFs','project','11605020rchtBF','18429IDAIMr','\x20(global)','751461IYMYdV','\x20found).','inProject','1796166bBNknf','4058634oYxnqq','Not\x20inside\x20a\x20project\x20(no\x20','8YNQPXq','project-or-global-explicit',',\x20or\x20create\x20a\x20project-local\x20','newConfigFileName','1892196XEsvGz','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','6364568ccYzma','global','global-default','\x20first.','Add\x20--global\x20to\x20write\x20to\x20~/','314hbwVMG','validation'];a19_0x7345=function(){return _0x556a1f;};return a19_0x7345();}
@@ -1 +1 @@
1
- (function(_0x3b1cbb,_0x4c8f9b){const _0x40f05f=a20_0x12ac,_0x584e8b=_0x3b1cbb();while(!![]){try{const _0x137057=-parseInt(_0x40f05f(0x1f2))/0x1+parseInt(_0x40f05f(0x1e8))/0x2+parseInt(_0x40f05f(0x1da))/0x3+parseInt(_0x40f05f(0x1ec))/0x4*(-parseInt(_0x40f05f(0x1dd))/0x5)+parseInt(_0x40f05f(0x1f3))/0x6*(-parseInt(_0x40f05f(0x1ee))/0x7)+parseInt(_0x40f05f(0x1dc))/0x8*(parseInt(_0x40f05f(0x1ef))/0x9)+parseInt(_0x40f05f(0x1e4))/0xa;if(_0x137057===_0x4c8f9b)break;else _0x584e8b['push'](_0x584e8b['shift']());}catch(_0x37fc82){_0x584e8b['push'](_0x584e8b['shift']());}}}(a20_0x57fd,0x377b9));function a20_0x12ac(_0x52327c,_0x4cd524){_0x52327c=_0x52327c-0x1d9;const _0x57fded=a20_0x57fd();let _0x12ace6=_0x57fded[_0x52327c];return _0x12ace6;}import{CliErrors}from'../../errors.js';function a20_0x57fd(){const _0x14fbe5=['84940WLBWBC','\x20is\x20allowed,\x20found:\x20','14mfCUbp','228087fNuoZa','Exactly\x20one\x20of\x20','Flags\x20','109894FMlMYH','1026396hgOAKt','Use\x20only\x20one\x20of:\x20','152091kXTszo','some','88MHeFSF','70eIumLy','Remove\x20all\x20but\x20one.',',\x20got\x20\x22',':\x20expected\x20','str','\x20are\x20mutually\x20exclusive\x20for\x20`','validation','5332700sVrHuL','length','test','At\x20least\x20one\x20of\x20','227666bUQXlZ','filter','Invalid\x20--','\x20is\x20required\x20for\x20`'];a20_0x57fd=function(){return _0x14fbe5;};return a20_0x57fd();}function isSet(_0x7551b3,_0x25d77b){const _0x343c76=_0x7551b3['flag'](_0x25d77b);return _0x343c76!==undefined&&_0x343c76!==''&&_0x343c76!==![]&&_0x343c76!==0x0;}function fmtNames(_0x463109){return _0x463109['map'](_0x5e34f1=>'--'+_0x5e34f1)['join'](',\x20');}export function requireOneOf(_0x2be2e1,_0x40c8ea,_0x164dae){const _0x5bcdaf=a20_0x12ac,_0x5cd493=_0x40c8ea[_0x5bcdaf(0x1e9)](_0x3766f9=>isSet(_0x2be2e1,_0x3766f9));if(_0x5cd493['length']!==0x1)throw CliErrors[_0x5bcdaf(0x1e3)](_0x5cd493[_0x5bcdaf(0x1e5)]===0x0?_0x5bcdaf(0x1f0)+fmtNames(_0x40c8ea)+_0x5bcdaf(0x1eb)+_0x164dae+'`.':'Only\x20one\x20of\x20'+fmtNames(_0x40c8ea)+_0x5bcdaf(0x1ed)+fmtNames(_0x5cd493)+'.',_0x5cd493[_0x5bcdaf(0x1e5)]===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x40c8ea):_0x5bcdaf(0x1de));}export function requireAnyOf(_0x2628d7,_0x16f6db,_0x27f6b0){const _0x268628=a20_0x12ac;if(!_0x16f6db[_0x268628(0x1db)](_0x5049b7=>isSet(_0x2628d7,_0x5049b7)))throw CliErrors[_0x268628(0x1e3)](_0x268628(0x1e7)+fmtNames(_0x16f6db)+_0x268628(0x1eb)+_0x27f6b0+'`.','Provide\x20one\x20of:\x20'+fmtNames(_0x16f6db));}export function mutuallyExclusive(_0x2b1f12,_0x3183b4,_0x4b1016){const _0x9f5f28=a20_0x12ac,_0x28991a=_0x3183b4['filter'](_0x55e7ab=>isSet(_0x2b1f12,_0x55e7ab));if(_0x28991a[_0x9f5f28(0x1e5)]>0x1)throw CliErrors['validation'](_0x9f5f28(0x1f1)+fmtNames(_0x28991a)+_0x9f5f28(0x1e2)+_0x4b1016+'`.',_0x9f5f28(0x1d9)+fmtNames(_0x3183b4));}export function validatePattern(_0x473ae9,_0x11b705,_0x557ce7,_0x4cc737){const _0x2dd817=a20_0x12ac,_0x5416e5=_0x473ae9[_0x2dd817(0x1e1)](_0x11b705);if(_0x5416e5&&!_0x557ce7[_0x2dd817(0x1e6)](_0x5416e5))throw CliErrors[_0x2dd817(0x1e3)](_0x2dd817(0x1ea)+_0x11b705+_0x2dd817(0x1e0)+_0x4cc737+_0x2dd817(0x1df)+_0x5416e5+'\x22.');}
1
+ (function(_0x1f26ae,_0x1267b2){const _0x10124f=a20_0x41fe,_0x1dc8da=_0x1f26ae();while(!![]){try{const _0x28feff=parseInt(_0x10124f(0x11b))/0x1*(parseInt(_0x10124f(0x107))/0x2)+-parseInt(_0x10124f(0x110))/0x3+parseInt(_0x10124f(0x11d))/0x4+-parseInt(_0x10124f(0x10e))/0x5*(parseInt(_0x10124f(0x11a))/0x6)+parseInt(_0x10124f(0x109))/0x7*(-parseInt(_0x10124f(0x11f))/0x8)+-parseInt(_0x10124f(0x116))/0x9+parseInt(_0x10124f(0x111))/0xa;if(_0x28feff===_0x1267b2)break;else _0x1dc8da['push'](_0x1dc8da['shift']());}catch(_0x1c8457){_0x1dc8da['push'](_0x1dc8da['shift']());}}}(a20_0x5344,0x9c18e));import{CliErrors}from'../../errors.js';function isSet(_0x2da8c8,_0x1d3714){const _0x3c8fd1=a20_0x41fe,_0x2a202a=_0x2da8c8[_0x3c8fd1(0x10d)](_0x1d3714);return _0x2a202a!==undefined&&_0x2a202a!==''&&_0x2a202a!==![]&&_0x2a202a!==0x0;}function fmtNames(_0x55ce75){const _0x2586e7=a20_0x41fe;return _0x55ce75[_0x2586e7(0x108)](_0x58eb89=>'--'+_0x58eb89)[_0x2586e7(0x11e)](',\x20');}export function requireOneOf(_0x26d06a,_0x5528fa,_0x353f35){const _0x18392f=a20_0x41fe,_0x18c36f=_0x5528fa[_0x18392f(0x121)](_0x179c6c=>isSet(_0x26d06a,_0x179c6c));if(_0x18c36f['length']!==0x1)throw CliErrors[_0x18392f(0x10b)](_0x18c36f[_0x18392f(0x120)]===0x0?_0x18392f(0x10c)+fmtNames(_0x5528fa)+'\x20is\x20required\x20for\x20`'+_0x353f35+'`.':_0x18392f(0x114)+fmtNames(_0x5528fa)+_0x18392f(0x117)+fmtNames(_0x18c36f)+'.',_0x18c36f['length']===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x5528fa):'Remove\x20all\x20but\x20one.');}export function requireAnyOf(_0x1b48bc,_0x137140,_0x4512c1){const _0x326e08=a20_0x41fe;if(!_0x137140[_0x326e08(0x119)](_0x3d641a=>isSet(_0x1b48bc,_0x3d641a)))throw CliErrors[_0x326e08(0x10b)]('At\x20least\x20one\x20of\x20'+fmtNames(_0x137140)+_0x326e08(0x112)+_0x4512c1+'`.','Provide\x20one\x20of:\x20'+fmtNames(_0x137140));}export function mutuallyExclusive(_0x1901fb,_0x47a286,_0x3fe0ab){const _0x11e8ea=a20_0x41fe,_0x18ebd2=_0x47a286[_0x11e8ea(0x121)](_0x385137=>isSet(_0x1901fb,_0x385137));if(_0x18ebd2[_0x11e8ea(0x120)]>0x1)throw CliErrors[_0x11e8ea(0x10b)](_0x11e8ea(0x106)+fmtNames(_0x18ebd2)+_0x11e8ea(0x113)+_0x3fe0ab+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x47a286));}function a20_0x5344(){const _0x13334e=['2347134LOsoxr','11258920LZhJYh','\x20is\x20required\x20for\x20`','\x20are\x20mutually\x20exclusive\x20for\x20`','Only\x20one\x20of\x20',',\x20got\x20\x22','9112815lTdVwV','\x20is\x20allowed,\x20found:\x20','test','some','18jbUGmx','38ZlcFhP',':\x20expected\x20','4134000OTNlvC','join','56kLibDz','length','filter','Flags\x20','66240flaFan','map','982219FzqEab','Invalid\x20--','validation','Exactly\x20one\x20of\x20','flag','2410erkRxN','str'];a20_0x5344=function(){return _0x13334e;};return a20_0x5344();}function a20_0x41fe(_0x59cc13,_0x2e06a6){_0x59cc13=_0x59cc13-0x106;const _0x5344df=a20_0x5344();let _0x41fe8a=_0x5344df[_0x59cc13];return _0x41fe8a;}export function validatePattern(_0x151917,_0x49ac46,_0x31a87d,_0xd17265){const _0x2e73da=a20_0x41fe,_0x111228=_0x151917[_0x2e73da(0x10f)](_0x49ac46);if(_0x111228&&!_0x31a87d[_0x2e73da(0x118)](_0x111228))throw CliErrors[_0x2e73da(0x10b)](_0x2e73da(0x10a)+_0x49ac46+_0x2e73da(0x11c)+_0xd17265+_0x2e73da(0x115)+_0x111228+'\x22.');}
@@ -1 +1 @@
1
- const a21_0x22cd9e=a21_0x55b7;(function(_0x5c3f4f,_0x292799){const _0x1b5dff=a21_0x55b7,_0x1815a9=_0x5c3f4f();while(!![]){try{const _0x271e6b=-parseInt(_0x1b5dff(0x20b))/0x1*(parseInt(_0x1b5dff(0x1fb))/0x2)+parseInt(_0x1b5dff(0x1f8))/0x3+parseInt(_0x1b5dff(0x202))/0x4*(parseInt(_0x1b5dff(0x1f3))/0x5)+-parseInt(_0x1b5dff(0x204))/0x6+-parseInt(_0x1b5dff(0x1f4))/0x7+parseInt(_0x1b5dff(0x20a))/0x8*(parseInt(_0x1b5dff(0x205))/0x9)+-parseInt(_0x1b5dff(0x1f5))/0xa*(-parseInt(_0x1b5dff(0x1fd))/0xb);if(_0x271e6b===_0x292799)break;else _0x1815a9['push'](_0x1815a9['shift']());}catch(_0x4ce772){_0x1815a9['push'](_0x1815a9['shift']());}}}(a21_0x521d,0x694ed));export const GLOBAL_SCOPE_FLAG={'name':a21_0x22cd9e(0x1ff),'type':a21_0x22cd9e(0x206),'default':![],'description':a21_0x22cd9e(0x1fe)};export const CODE_FLAG={'name':a21_0x22cd9e(0x1f6),'type':a21_0x22cd9e(0x209),'required':!![],'description':a21_0x22cd9e(0x207),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a21_0x22cd9e(0x200)}};export const SQLCODE_FLAG={'name':a21_0x22cd9e(0x203),'type':a21_0x22cd9e(0x209),'required':!![],'description':a21_0x22cd9e(0x1fa),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a21_0x22cd9e(0x1fc)}};function a21_0x521d(){const _0x4ed830=['name','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','58dfnHAT','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','88nBLceh','Write\x20to\x20the\x20global\x20configuration','global','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','Return\x20full\x20raw\x20response\x20object','120lHkwKh','sqlcode','2346048BIaXnZ','132921FeOApZ','boolean','Dataset\x20code\x20(32-char\x20hex\x20UUID)','Resource\x20ID','string','408ATPZrt','10084MiBeJz','number','16175wkinVO','3128615sJpLcA','398940gqVkRh','code','verbose','1176927ZwDosw'];a21_0x521d=function(){return _0x4ed830;};return a21_0x521d();}export const VERBOSE_FLAG={'name':a21_0x22cd9e(0x1f7),'type':a21_0x22cd9e(0x206),'description':a21_0x22cd9e(0x201)};function a21_0x55b7(_0x1de24b,_0x39671f){_0x1de24b=_0x1de24b-0x1f3;const _0x521d04=a21_0x521d();let _0x55b768=_0x521d04[_0x1de24b];return _0x55b768;}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':a21_0x22cd9e(0x1f9),'type':a21_0x22cd9e(0x209),'description':'Resource\x20name\x20for\x20lookup'};export const ID_FLAG={'name':'id','type':a21_0x22cd9e(0x20c),'required':!![],'description':a21_0x22cd9e(0x208)};
1
+ const a21_0x731207=a21_0x8e4a;(function(_0x280126,_0x15427d){const _0x573179=a21_0x8e4a,_0x4caba1=_0x280126();while(!![]){try{const _0x43665d=-parseInt(_0x573179(0xe3))/0x1*(parseInt(_0x573179(0xde))/0x2)+parseInt(_0x573179(0xd4))/0x3*(-parseInt(_0x573179(0xd1))/0x4)+parseInt(_0x573179(0xe6))/0x5*(-parseInt(_0x573179(0xd3))/0x6)+parseInt(_0x573179(0xeb))/0x7*(parseInt(_0x573179(0xd9))/0x8)+parseInt(_0x573179(0xdf))/0x9*(parseInt(_0x573179(0xdb))/0xa)+parseInt(_0x573179(0xed))/0xb+-parseInt(_0x573179(0xe7))/0xc*(-parseInt(_0x573179(0xe1))/0xd);if(_0x43665d===_0x15427d)break;else _0x4caba1['push'](_0x4caba1['shift']());}catch(_0xd54ee2){_0x4caba1['push'](_0x4caba1['shift']());}}}(a21_0x1811,0x41b9c));function a21_0x8e4a(_0x360e4f,_0x5b3856){_0x360e4f=_0x360e4f-0xd1;const _0x18117f=a21_0x1811();let _0x8e4a91=_0x18117f[_0x360e4f];return _0x8e4a91;}function a21_0x1811(){const _0x866a3=['13Wzyfqn','name','136924GUCxcM','code','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','325MSHEMd','4201884tHraLH','boolean','verbose','Resource\x20ID','7qnMaOl','Return\x20full\x20raw\x20response\x20object','1566774cyrRfe','8qPOjjd','global','15534FVZDcz','340581iuzrQU','params','string','Resource\x20name\x20for\x20lookup','Write\x20to\x20the\x20global\x20configuration','524248jZkXDX','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','290vQgrOY','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','number','4jhdATq','118017xdPbJg','Dataset\x20code\x20(32-char\x20hex\x20UUID)'];a21_0x1811=function(){return _0x866a3;};return a21_0x1811();}export const GLOBAL_SCOPE_FLAG={'name':a21_0x731207(0xd2),'type':a21_0x731207(0xe8),'default':![],'description':a21_0x731207(0xd8)};export const CODE_FLAG={'name':a21_0x731207(0xe4),'type':a21_0x731207(0xd6),'required':!![],'description':a21_0x731207(0xe0),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a21_0x731207(0xe5)}};export const SQLCODE_FLAG={'name':'sqlcode','type':'string','required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a21_0x731207(0xda)}};export const VERBOSE_FLAG={'name':a21_0x731207(0xe9),'type':'boolean','description':a21_0x731207(0xec)};export const PARAMS_FLAG={'name':a21_0x731207(0xd5),'type':a21_0x731207(0xd6),'description':a21_0x731207(0xdc)};export const NAME_FLAG={'name':a21_0x731207(0xe2),'type':'string','description':a21_0x731207(0xd7)};export const ID_FLAG={'name':'id','type':a21_0x731207(0xdd),'required':!![],'description':a21_0x731207(0xea)};
@@ -1 +1 @@
1
- (function(_0x3a2918,_0x599add){const _0xcc66e9=a22_0x58d1,_0x266640=_0x3a2918();while(!![]){try{const _0x551f64=-parseInt(_0xcc66e9(0xa0))/0x1+-parseInt(_0xcc66e9(0xab))/0x2+-parseInt(_0xcc66e9(0x9b))/0x3*(-parseInt(_0xcc66e9(0x9e))/0x4)+parseInt(_0xcc66e9(0xa3))/0x5*(parseInt(_0xcc66e9(0xa8))/0x6)+-parseInt(_0xcc66e9(0xa7))/0x7+-parseInt(_0xcc66e9(0x98))/0x8*(-parseInt(_0xcc66e9(0x99))/0x9)+parseInt(_0xcc66e9(0x9d))/0xa;if(_0x551f64===_0x599add)break;else _0x266640['push'](_0x266640['shift']());}catch(_0x14ebdb){_0x266640['push'](_0x266640['shift']());}}}(a22_0x48f9,0xb648b));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';function a22_0x48f9(){const _0x4c90d8=['9816nrSspE','10161SWTEsl','toFixed','2291643UywyOa','\x20MB','1072720DyCfgA','4oiXscI','File\x20is\x20not\x20a\x20regular\x20file:\x20','1270844KlqYCa','validation','size','9385MsrqIH','ceil','isFile','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','4379459UVEfga','4242OYXsov','\x20path\x20is\x20required.','trim','1880718kiUzIR'];a22_0x48f9=function(){return _0x4c90d8;};return a22_0x48f9();}const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function a22_0x58d1(_0x47149d,_0x3069be){_0x47149d=_0x47149d-0x98;const _0x48f9b8=a22_0x48f9();let _0x58d14b=_0x48f9b8[_0x47149d];return _0x58d14b;}function formatBytes(_0x1835f3){const _0x1daa56=a22_0x58d1;if(_0x1835f3>=BYTES_PER_MB){const _0x23bd8d=Math[_0x1daa56(0xa4)](_0x1835f3/BYTES_PER_MB*0x64)/0x64;return _0x23bd8d[_0x1daa56(0x9a)](0x2)+_0x1daa56(0x9c);}return _0x1835f3+'\x20B';}export function requireRuntimeUploadFile(_0x16963b,_0x2ab299){const _0x2d262f=a22_0x58d1,_0x107815=_0x16963b[_0x2d262f(0xaa)]();if(!_0x107815)throw CliErrors['validation'](_0x2ab299+_0x2d262f(0xa9));if(!existsSync(_0x107815))throw CliErrors[_0x2d262f(0xa1)]('File\x20not\x20found:\x20'+_0x107815);const _0x4b73ad=statSync(_0x107815);if(!_0x4b73ad[_0x2d262f(0xa5)]())throw CliErrors[_0x2d262f(0xa1)](_0x2d262f(0x9f)+_0x107815);if(_0x4b73ad[_0x2d262f(0xa2)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x2d262f(0xa1)](_0x2d262f(0xa6)+_0x107815+'\x20('+formatBytes(_0x4b73ad['size'])+')');return{'path':_0x107815,'size':_0x4b73ad[_0x2d262f(0xa2)]};}
1
+ function a22_0x6097(_0x2082ec,_0x3a7c6a){_0x2082ec=_0x2082ec-0x1bd;const _0x426d5b=a22_0x426d();let _0x6097f6=_0x426d5b[_0x2082ec];return _0x6097f6;}(function(_0x2d2756,_0x319802){const _0x50fa07=a22_0x6097,_0x297259=_0x2d2756();while(!![]){try{const _0x598534=parseInt(_0x50fa07(0x1cb))/0x1*(-parseInt(_0x50fa07(0x1ce))/0x2)+-parseInt(_0x50fa07(0x1c1))/0x3+-parseInt(_0x50fa07(0x1c2))/0x4*(-parseInt(_0x50fa07(0x1bf))/0x5)+-parseInt(_0x50fa07(0x1be))/0x6*(parseInt(_0x50fa07(0x1c6))/0x7)+-parseInt(_0x50fa07(0x1c3))/0x8+parseInt(_0x50fa07(0x1cd))/0x9*(parseInt(_0x50fa07(0x1c4))/0xa)+-parseInt(_0x50fa07(0x1ca))/0xb*(-parseInt(_0x50fa07(0x1c5))/0xc);if(_0x598534===_0x319802)break;else _0x297259['push'](_0x297259['shift']());}catch(_0x4e5c6c){_0x297259['push'](_0x297259['shift']());}}}(a22_0x426d,0x54575));import{existsSync,statSync}from'node:fs';function a22_0x426d(){const _0x1aac54=['File\x20not\x20found:\x20','\x20path\x20is\x20required.','36veeNwW','1100McRHFc','validation','1966239tPjmLS','5948NlOBeX','1625544DnGKUh','215810yqgSCj','11198976XFuNUX','97461bRPKCm','trim','ceil','File\x20is\x20not\x20a\x20regular\x20file:\x20','11fvrzUd','1sJAgjo','size','279VKdrCj','1283588IiNtRv'];a22_0x426d=function(){return _0x1aac54;};return a22_0x426d();}import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x5cc7a4){const _0x23dee7=a22_0x6097;if(_0x5cc7a4>=BYTES_PER_MB){const _0x4626d7=Math[_0x23dee7(0x1c8)](_0x5cc7a4/BYTES_PER_MB*0x64)/0x64;return _0x4626d7['toFixed'](0x2)+'\x20MB';}return _0x5cc7a4+'\x20B';}export function requireRuntimeUploadFile(_0x37abb3,_0xb45d51){const _0x552dc4=a22_0x6097,_0x5d5ad3=_0x37abb3[_0x552dc4(0x1c7)]();if(!_0x5d5ad3)throw CliErrors[_0x552dc4(0x1c0)](_0xb45d51+_0x552dc4(0x1bd));if(!existsSync(_0x5d5ad3))throw CliErrors[_0x552dc4(0x1c0)](_0x552dc4(0x1cf)+_0x5d5ad3);const _0x7d688e=statSync(_0x5d5ad3);if(!_0x7d688e['isFile']())throw CliErrors[_0x552dc4(0x1c0)](_0x552dc4(0x1c9)+_0x5d5ad3);if(_0x7d688e[_0x552dc4(0x1cc)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors['validation']('File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20'+_0x5d5ad3+'\x20('+formatBytes(_0x7d688e[_0x552dc4(0x1cc)])+')');return{'path':_0x5d5ad3,'size':_0x7d688e[_0x552dc4(0x1cc)]};}
@@ -1 +1 @@
1
- function a23_0x3071(){const _0x5b8d4c=['log','\x22.\x20Allowed:\x20','85wKwZjt','Usage:\x20','Set\x20`','../../context.js','config','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','\x22\x20is\x20not\x20settable.','Get\x20a\x20config\x20value','pageSize','apps','locale','appcode','Missing\x20key\x20or\x20value.','length','isArray',';\x20apps.<alias>.appcode','project-or-global-explicit','Set\x20a\x20configuration\x20value','1074484tIuApP','Top-level\x20key\x20\x22','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','accessKey','validation','6JElrle','\x20(global)','alias','1185436GUnZgX','value','\x20config\x20delete\x20<key>\x20[--global]','\x20\x20project:\x20','56358EpKfTa','args','delete','field','set','Key\x20already\x20absent:\x20','global','\x20\x20global:\x20\x20','Value\x20to\x20assign','get','`\x20=\x20\x22','key','pageSize\x20must\x20be\x20a\x20positive\x20number','List\x20current\x20config','object','\x20config\x20set\x20<key>\x20<value>\x20[--global]','Deletes\x20a\x20Lovrabet\x20CLI\x20config\x20key.\x20Later\x20commands\x20will\x20fall\x20back\x20to\x20another\x20config\x20layer\x20or\x20the\x20default.','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','pretty','Invalid\x20locale\x20value.','\x20config\x20get\x20<key>','trim','Deleted\x20`','6848082vJtMHo','format','stringify','raw','3288808YBVibT','Delete\x20a\x20configuration\x20value','Settable\x20keys:\x20','111822VyDpuV','Missing\x20key\x20argument.','write','Key\x20not\x20found:\x20','640032EoCZFw','Changes\x20Lovrabet\x20CLI\x20configuration.\x20Later\x20commands\x20may\x20use\x20a\x20different\x20app,\x20environment,\x20or\x20output\x20behavior.','(none)','split','read','includes','\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.'];a23_0x3071=function(){return _0x5b8d4c;};return a23_0x3071();}const a23_0x1a62bd=a23_0x5b43;(function(_0x3ab600,_0x3f21bf){const _0x22d5bd=a23_0x5b43,_0x58e07e=_0x3ab600();while(!![]){try{const _0x2bb001=-parseInt(_0x22d5bd(0xe1))/0x1+parseInt(_0x22d5bd(0x103))/0x2+-parseInt(_0x22d5bd(0xda))/0x3*(-parseInt(_0x22d5bd(0xd5))/0x4)+-parseInt(_0x22d5bd(0xc3))/0x5*(parseInt(_0x22d5bd(0xff))/0x6)+parseInt(_0x22d5bd(0xdd))/0x7+parseInt(_0x22d5bd(0xfc))/0x8+-parseInt(_0x22d5bd(0xf8))/0x9;if(_0x2bb001===_0x3f21bf)break;else _0x58e07e['push'](_0x58e07e['shift']());}catch(_0x16207c){_0x58e07e['push'](_0x58e07e['shift']());}}}(a23_0x3071,0x4a206));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(_0x6c4530){const _0x58c8c8=a23_0x5b43,_0x2620dd=_0x6c4530[_0x58c8c8(0xbd)]('.');if(_0x2620dd['length']!==0x3||_0x2620dd[0x0]!==_0x58c8c8(0xcc)||_0x2620dd[0x2]!==_0x58c8c8(0xce))return undefined;const _0xd3f8b6=_0x2620dd[0x1]?.[_0x58c8c8(0xf6)]();return _0xd3f8b6?_0xd3f8b6:undefined;}function parseAliasDeleteKey(_0x3a0944){const _0x4660ab=a23_0x5b43,_0x99960f=_0x3a0944[_0x4660ab(0xbd)]('.');if(_0x99960f['length']===0x2&&_0x99960f[0x0]===_0x4660ab(0xcc)){const _0x4ffb40=_0x99960f[0x1]?.[_0x4660ab(0xf6)]();return _0x4ffb40?{'alias':_0x4ffb40}:undefined;}if(_0x99960f[_0x4660ab(0xd0)]===0x3&&_0x99960f[0x0]===_0x4660ab(0xcc)&&_0x99960f[0x2]==='appcode'){const _0x477f18=_0x99960f[0x1]?.[_0x4660ab(0xf6)]();return _0x477f18?{'alias':_0x477f18,'field':_0x4660ab(0xce)}:undefined;}return undefined;}function setLocalAppAlias(_0x5a34ef,_0xbfa99a,_0x233a85){const _0x4dc98d=a23_0x5b43,_0x1ebaa2=_0x5a34ef[_0x4dc98d(0xcc)]&&typeof _0x5a34ef['apps']==='object'&&!Array[_0x4dc98d(0xd1)](_0x5a34ef['apps'])?_0x5a34ef[_0x4dc98d(0xcc)]:{},_0x145b5f=_0x1ebaa2[_0xbfa99a]&&typeof _0x1ebaa2[_0xbfa99a]===_0x4dc98d(0xef)&&!Array['isArray'](_0x1ebaa2[_0xbfa99a])?_0x1ebaa2[_0xbfa99a]:{};_0x145b5f[_0x4dc98d(0xce)]=_0x233a85,_0x1ebaa2[_0xbfa99a]=_0x145b5f,_0x5a34ef[_0x4dc98d(0xcc)]=_0x1ebaa2;}function deleteLocalAppAlias(_0x17f20a,_0x57fab4){const _0x462f53=a23_0x5b43;if(!_0x17f20a['apps']||typeof _0x17f20a[_0x462f53(0xcc)]!==_0x462f53(0xef)||Array[_0x462f53(0xd1)](_0x17f20a[_0x462f53(0xcc)]))return![];const _0x41d817=_0x17f20a['apps'],_0x46891a=_0x41d817[_0x57fab4[_0x462f53(0xdc)]];if(!_0x46891a||typeof _0x46891a!==_0x462f53(0xef)||Array[_0x462f53(0xd1)](_0x46891a))return![];if(!_0x57fab4['field'])return delete _0x41d817[_0x57fab4[_0x462f53(0xdc)]],!![];if(!(_0x57fab4[_0x462f53(0xe4)]in _0x46891a))return![];return delete _0x46891a[_0x57fab4[_0x462f53(0xe4)]],Object['keys'](_0x46891a)[_0x462f53(0xd0)]===0x0&&delete _0x41d817[_0x57fab4['alias']],!![];}const listDef={'service':a23_0x1a62bd(0xc7),'command':'list','description':a23_0x1a62bd(0xee),'risk':a23_0x1a62bd(0xbe),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x27f4dd){const _0x2b4d97=a23_0x1a62bd,{buildConfigFromFlags:_0x2b3f8f}=await import(_0x2b4d97(0xc6)),_0x88dfc4=_0x2b3f8f({}),_0x580f2e=redactCliConfigCredentials(_0x88dfc4[_0x2b4d97(0xfb)]),_0x176845=getProjectConfigPath(),_0x4c4ae5=resolveWriteConfigPath(_0x2b4d97(0xe7));if(_0x27f4dd[_0x2b4d97(0xf9)]===_0x2b4d97(0xf3))return{'ok':!![],'message':_0x2b4d97(0xd7)+(JSON[_0x2b4d97(0xfa)](_0x580f2e,null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+(_0x2b4d97(0xe0)+(_0x176845??_0x2b4d97(0xbc))+'\x0a')+(_0x2b4d97(0xe8)+_0x4c4ae5)};return{'ok':!![],'data':{'effective':_0x580f2e,'configFiles':{'project':_0x176845??null,'global':_0x4c4ae5}}};}},getDef={'service':'config','command':a23_0x1a62bd(0xea),'description':a23_0x1a62bd(0xca),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x1a62bd(0xec),'description':a23_0x1a62bd(0xc8),'required':!![]}],'flags':[],async 'execute'(_0x101e01){const _0x4e986c=a23_0x1a62bd,_0x4f917b=_0x101e01['args'][0x0];if(!_0x4f917b)throw CliErrors['validation'](_0x4e986c(0x100),_0x4e986c(0xc4)+CLI_BIN_NAME+_0x4e986c(0xf5));const {buildConfigFromFlags:_0x5d030a}=await import('../../context.js'),{raw:_0x32cbe6}=_0x5d030a({});if(_0x4f917b[_0x4e986c(0xbf)]('.')){const _0x2c8830=_0x4f917b[_0x4e986c(0xbd)]('.');let _0x24341d=_0x32cbe6;for(const _0x1fc715 of _0x2c8830){if(_0x24341d==null||typeof _0x24341d!==_0x4e986c(0xef))throw CliErrors[_0x4e986c(0xd9)](_0x4e986c(0x102)+_0x4f917b);_0x24341d=_0x24341d[_0x1fc715];}if(_0x24341d===undefined)throw CliErrors[_0x4e986c(0xd9)](_0x4e986c(0x102)+_0x4f917b);const _0x4c433d=redactCliConfigValue(_0x4f917b,_0x24341d);return console[_0x4e986c(0xc1)](typeof _0x4c433d==='object'?JSON['stringify'](_0x4c433d,null,0x2):String(_0x4c433d)),{'ok':!![]};}const _0x1f70b2=_0x32cbe6[_0x4f917b];if(_0x1f70b2===undefined)throw CliErrors[_0x4e986c(0xd9)]('Key\x20not\x20found:\x20'+_0x4f917b);const _0x287976=redactCliConfigValue(_0x4f917b,_0x1f70b2);return console['log'](typeof _0x287976==='object'?JSON['stringify'](_0x287976,null,0x2):String(_0x287976)),{'ok':!![]};}},setDef={'service':a23_0x1a62bd(0xc7),'command':a23_0x1a62bd(0xe5),'description':a23_0x1a62bd(0xd4),'risk':a23_0x1a62bd(0x101),'confirmationDescription':a23_0x1a62bd(0xbb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x1a62bd(0xec),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a23_0x1a62bd(0xde),'description':a23_0x1a62bd(0xe9),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x22a9eb){const _0x5eb3d5=a23_0x1a62bd,_0x4cc069=_0x22a9eb[_0x5eb3d5(0xe2)][0x0],_0x183b16=_0x22a9eb[_0x5eb3d5(0xe2)][0x1];if(!_0x4cc069||_0x183b16===undefined)throw CliErrors[_0x5eb3d5(0xd9)](_0x5eb3d5(0xcf),_0x5eb3d5(0xc4)+CLI_BIN_NAME+_0x5eb3d5(0xf0));if(ENUM_KEYS[_0x4cc069]&&!ENUM_KEYS[_0x4cc069][_0x5eb3d5(0xbf)](_0x183b16))throw CliErrors['validation']('Invalid\x20value\x20for\x20\x22'+_0x4cc069+_0x5eb3d5(0xc2)+ENUM_KEYS[_0x4cc069]['join'](',\x20'));if(isCliProtectedConfigKey(_0x4cc069))throw CliErrors[_0x5eb3d5(0xd9)]('\x22'+_0x4cc069+_0x5eb3d5(0xc0));if(_0x4cc069==='pageSize'){const _0x298566=Number(_0x183b16);if(isNaN(_0x298566)||_0x298566<=0x0)throw CliErrors['validation'](_0x5eb3d5(0xed));}const _0x3c3ad4=resolveWriteScope({'explicitGlobal':_0x22a9eb['bool'](_0x5eb3d5(0xe7)),'policy':_0x5eb3d5(0xd3)}),_0x49b71c=toScopeFlags(_0x3c3ad4),_0x53d319=readScopedConfig(_0x49b71c),_0x4a7d70=parseAliasAppcodeSetKey(_0x4cc069);if(!_0x4a7d70&&!isTopLevelConfigKey(_0x4cc069))throw CliErrors[_0x5eb3d5(0xd9)](_0x5eb3d5(0xd6)+_0x4cc069+_0x5eb3d5(0xc9),_0x5eb3d5(0xfe)+getTopLevelConfigKeySummary()+_0x5eb3d5(0xd2));if(_0x4a7d70)setLocalAppAlias(_0x53d319,_0x4a7d70,_0x183b16);else{if(_0x4cc069===_0x5eb3d5(0xcd)){const _0x6af51f=normalizeLocale(_0x183b16);if(!_0x6af51f)throw CliErrors[_0x5eb3d5(0xd9)](_0x5eb3d5(0xf4),_0x5eb3d5(0xf2));_0x53d319[_0x5eb3d5(0xcd)]=_0x6af51f;}else _0x53d319[_0x4cc069]=_0x4cc069===_0x5eb3d5(0xcb)?Number(_0x183b16):DOMAIN_CONFIG_FIELDS[_0x5eb3d5(0xbf)](_0x4cc069)?normalizeDomainOrigin(_0x4cc069,_0x183b16):_0x183b16;}const _0x2dd6e8=_0x4cc069===_0x5eb3d5(0xd8)?maskCliAccessKey(_0x183b16):!_0x4a7d70&&_0x4cc069==='locale'?String(_0x53d319[_0x5eb3d5(0xcd)]):_0x183b16;return console[_0x5eb3d5(0xc1)](_0x5eb3d5(0xc5)+_0x4cc069+_0x5eb3d5(0xeb)+_0x2dd6e8+'\x22'+(_0x3c3ad4===_0x5eb3d5(0xe7)?_0x5eb3d5(0xdb):'')),writeScopedConfig(_0x53d319,_0x49b71c),{'ok':!![]};}},deleteDef={'service':a23_0x1a62bd(0xc7),'command':a23_0x1a62bd(0xe3),'description':a23_0x1a62bd(0xfd),'risk':a23_0x1a62bd(0x101),'confirmationDescription':a23_0x1a62bd(0xf1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x1a62bd(0xec),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x4f2212){const _0x5ba501=a23_0x1a62bd,_0x15a590=_0x4f2212['args'][0x0];if(!_0x15a590)throw CliErrors[_0x5ba501(0xd9)]('Missing\x20key\x20argument.',_0x5ba501(0xc4)+CLI_BIN_NAME+_0x5ba501(0xdf));if(isCliProtectedConfigKey(_0x15a590))throw CliErrors[_0x5ba501(0xd9)]('\x22'+_0x15a590+'\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.');const _0x5e1a81=resolveWriteScope({'explicitGlobal':_0x4f2212['bool'](_0x5ba501(0xe7)),'policy':_0x5ba501(0xd3)}),_0x6dd808=toScopeFlags(_0x5e1a81),_0x219932=readScopedConfig(_0x6dd808),_0x7ea0b6=parseAliasDeleteKey(_0x15a590);if(_0x7ea0b6){if(!deleteLocalAppAlias(_0x219932,_0x7ea0b6))return console[_0x5ba501(0xc1)](_0x5ba501(0xe6)+_0x15a590+(_0x5e1a81===_0x5ba501(0xe7)?'\x20(global)':'')),{'ok':!![],'data':{'key':_0x15a590,'scope':_0x5e1a81,'changed':![]}};return console['log'](_0x5ba501(0xf7)+_0x15a590+'`'+(_0x5e1a81===_0x5ba501(0xe7)?'\x20(global)':'')),writeScopedConfig(_0x219932,_0x6dd808),{'ok':!![],'data':{'key':_0x15a590,'scope':_0x5e1a81,'changed':!![]}};}if(_0x219932[_0x15a590]===undefined)return console[_0x5ba501(0xc1)]('Key\x20already\x20absent:\x20'+_0x15a590+(_0x5e1a81===_0x5ba501(0xe7)?_0x5ba501(0xdb):'')),{'ok':!![],'data':{'key':_0x15a590,'scope':_0x5e1a81,'changed':![]}};return delete _0x219932[_0x15a590],console['log'](_0x5ba501(0xf7)+_0x15a590+'`'+(_0x5e1a81==='global'?_0x5ba501(0xdb):'')),writeScopedConfig(_0x219932,_0x6dd808),{'ok':!![],'data':{'key':_0x15a590,'scope':_0x5e1a81,'changed':!![]}};}};function a23_0x5b43(_0x51785d,_0x4de225){_0x51785d=_0x51785d-0xbb;const _0x3071d9=a23_0x3071();let _0x5b43ee=_0x3071d9[_0x51785d];return _0x5b43ee;}export const configDefinitions=[configInitDefinition,listDef,getDef,setDef,deleteDef];
1
+ const a23_0x2e2458=a23_0x2cc2;(function(_0x55b799,_0x3a458a){const _0x51caa5=a23_0x2cc2,_0x1ff337=_0x55b799();while(!![]){try{const _0x5a2fe7=-parseInt(_0x51caa5(0xc8))/0x1+-parseInt(_0x51caa5(0xc9))/0x2+-parseInt(_0x51caa5(0xda))/0x3+-parseInt(_0x51caa5(0xaf))/0x4*(parseInt(_0x51caa5(0xd8))/0x5)+parseInt(_0x51caa5(0xbe))/0x6+-parseInt(_0x51caa5(0xa7))/0x7*(parseInt(_0x51caa5(0x9c))/0x8)+parseInt(_0x51caa5(0x9e))/0x9;if(_0x5a2fe7===_0x3a458a)break;else _0x1ff337['push'](_0x1ff337['shift']());}catch(_0x3805ae){_0x1ff337['push'](_0x1ff337['shift']());}}}(a23_0x1aea,0xa758e));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';function a23_0x2cc2(_0x332abe,_0xd2a3b1){_0x332abe=_0x332abe-0x94;const _0x1aea79=a23_0x1aea();let _0x2cc2df=_0x1aea79[_0x332abe];return _0x2cc2df;}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(_0x3a762d){const _0x1fe476=a23_0x2cc2,_0x1cccf2=_0x3a762d[_0x1fe476(0x96)]('.');if(_0x1cccf2[_0x1fe476(0xc5)]!==0x3||_0x1cccf2[0x0]!==_0x1fe476(0xcd)||_0x1cccf2[0x2]!==_0x1fe476(0x98))return undefined;const _0x4d72d4=_0x1cccf2[0x1]?.[_0x1fe476(0xa6)]();return _0x4d72d4?_0x4d72d4:undefined;}function parseAliasDeleteKey(_0x50272d){const _0x464a82=a23_0x2cc2,_0x533118=_0x50272d['split']('.');if(_0x533118[_0x464a82(0xc5)]===0x2&&_0x533118[0x0]===_0x464a82(0xcd)){const _0x589c29=_0x533118[0x1]?.[_0x464a82(0xa6)]();return _0x589c29?{'alias':_0x589c29}:undefined;}if(_0x533118[_0x464a82(0xc5)]===0x3&&_0x533118[0x0]===_0x464a82(0xcd)&&_0x533118[0x2]==='appcode'){const _0x1f86ba=_0x533118[0x1]?.[_0x464a82(0xa6)]();return _0x1f86ba?{'alias':_0x1f86ba,'field':'appcode'}:undefined;}return undefined;}function a23_0x1aea(){const _0x41af98=['Set\x20`','split','field','appcode','Get\x20a\x20config\x20value','(none)','get','152xMJCjq','key','21955221PvzSlV','config','list','write','pretty','join','isArray','global','trim','412517HlinuQ','args','Missing\x20key\x20or\x20value.','\x20config\x20delete\x20<key>\x20[--global]','\x20\x20project:\x20','set','\x22\x20is\x20not\x20settable.','format','4Idgbad','Set\x20a\x20configuration\x20value','Value\x20to\x20assign','bool','includes','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','pageSize','Usage:\x20','\x20\x20global:\x20\x20','`\x20=\x20\x22','value','Deleted\x20`','Key\x20already\x20absent:\x20','Settable\x20keys:\x20','Deletes\x20a\x20Lovrabet\x20CLI\x20config\x20key.\x20Later\x20commands\x20will\x20fall\x20back\x20to\x20another\x20config\x20layer\x20or\x20the\x20default.','5401356fgXvqX','stringify','pageSize\x20must\x20be\x20a\x20positive\x20number','read','project-or-global-explicit','\x20(global)','\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.','length','\x20config\x20get\x20<key>','Key\x20not\x20found:\x20','167926mSmqnU','1962624jmgEId','delete','object','Delete\x20a\x20configuration\x20value','apps','Missing\x20key\x20argument.','../../context.js','Invalid\x20locale\x20value.','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','List\x20current\x20config','locale','raw','Changes\x20Lovrabet\x20CLI\x20configuration.\x20Later\x20commands\x20may\x20use\x20a\x20different\x20app,\x20environment,\x20or\x20output\x20behavior.','Config\x20files:\x0a','log','1614005QfiqJv','alias','187539QNDmym','validation'];a23_0x1aea=function(){return _0x41af98;};return a23_0x1aea();}function setLocalAppAlias(_0x1246c2,_0x419844,_0xedc347){const _0x3bf716=a23_0x2cc2,_0x44e403=_0x1246c2[_0x3bf716(0xcd)]&&typeof _0x1246c2['apps']===_0x3bf716(0xcb)&&!Array[_0x3bf716(0xa4)](_0x1246c2[_0x3bf716(0xcd)])?_0x1246c2['apps']:{},_0x35de71=_0x44e403[_0x419844]&&typeof _0x44e403[_0x419844]===_0x3bf716(0xcb)&&!Array['isArray'](_0x44e403[_0x419844])?_0x44e403[_0x419844]:{};_0x35de71['appcode']=_0xedc347,_0x44e403[_0x419844]=_0x35de71,_0x1246c2[_0x3bf716(0xcd)]=_0x44e403;}function deleteLocalAppAlias(_0x4ce99b,_0x3fd85f){const _0x25b442=a23_0x2cc2;if(!_0x4ce99b[_0x25b442(0xcd)]||typeof _0x4ce99b[_0x25b442(0xcd)]!=='object'||Array[_0x25b442(0xa4)](_0x4ce99b[_0x25b442(0xcd)]))return![];const _0x510583=_0x4ce99b[_0x25b442(0xcd)],_0x27f6ec=_0x510583[_0x3fd85f[_0x25b442(0xd9)]];if(!_0x27f6ec||typeof _0x27f6ec!==_0x25b442(0xcb)||Array['isArray'](_0x27f6ec))return![];if(!_0x3fd85f[_0x25b442(0x97)])return delete _0x510583[_0x3fd85f[_0x25b442(0xd9)]],!![];if(!(_0x3fd85f[_0x25b442(0x97)]in _0x27f6ec))return![];return delete _0x27f6ec[_0x3fd85f[_0x25b442(0x97)]],Object['keys'](_0x27f6ec)[_0x25b442(0xc5)]===0x0&&delete _0x510583[_0x3fd85f['alias']],!![];}const listDef={'service':a23_0x2e2458(0x9f),'command':a23_0x2e2458(0xa0),'description':a23_0x2e2458(0xd2),'risk':a23_0x2e2458(0xc1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x370ecb){const _0x2a0bfe=a23_0x2e2458,{buildConfigFromFlags:_0x3a7ad1}=await import('../../context.js'),_0x3354b4=_0x3a7ad1({}),_0x57d461=redactCliConfigCredentials(_0x3354b4[_0x2a0bfe(0xd4)]),_0x5ad6f3=getProjectConfigPath(),_0x3372a1=resolveWriteConfigPath(_0x2a0bfe(0xa5));if(_0x370ecb[_0x2a0bfe(0xae)]===_0x2a0bfe(0xa2))return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON[_0x2a0bfe(0xbf)](_0x57d461,null,0x2)+'\x0a\x0a')+_0x2a0bfe(0xd6)+(_0x2a0bfe(0xab)+(_0x5ad6f3??_0x2a0bfe(0x9a))+'\x0a')+(_0x2a0bfe(0xb7)+_0x3372a1)};return{'ok':!![],'data':{'effective':_0x57d461,'configFiles':{'project':_0x5ad6f3??null,'global':_0x3372a1}}};}},getDef={'service':a23_0x2e2458(0x9f),'command':a23_0x2e2458(0x9b),'description':a23_0x2e2458(0x99),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x2e2458(0x9d),'description':a23_0x2e2458(0xb4),'required':!![]}],'flags':[],async 'execute'(_0x406bf3){const _0x4cacb1=a23_0x2e2458,_0x5d5058=_0x406bf3[_0x4cacb1(0xa8)][0x0];if(!_0x5d5058)throw CliErrors['validation'](_0x4cacb1(0xce),'Usage:\x20'+CLI_BIN_NAME+_0x4cacb1(0xc6));const {buildConfigFromFlags:_0x12e80d}=await import(_0x4cacb1(0xcf)),{raw:_0x3ac74f}=_0x12e80d({});if(_0x5d5058['includes']('.')){const _0x5c9fd1=_0x5d5058['split']('.');let _0x1372e7=_0x3ac74f;for(const _0x374616 of _0x5c9fd1){if(_0x1372e7==null||typeof _0x1372e7!==_0x4cacb1(0xcb))throw CliErrors[_0x4cacb1(0x94)](_0x4cacb1(0xc7)+_0x5d5058);_0x1372e7=_0x1372e7[_0x374616];}if(_0x1372e7===undefined)throw CliErrors[_0x4cacb1(0x94)](_0x4cacb1(0xc7)+_0x5d5058);const _0x50d43f=redactCliConfigValue(_0x5d5058,_0x1372e7);return console[_0x4cacb1(0xd7)](typeof _0x50d43f==='object'?JSON['stringify'](_0x50d43f,null,0x2):String(_0x50d43f)),{'ok':!![]};}const _0x2c3119=_0x3ac74f[_0x5d5058];if(_0x2c3119===undefined)throw CliErrors[_0x4cacb1(0x94)](_0x4cacb1(0xc7)+_0x5d5058);const _0x1ba9a9=redactCliConfigValue(_0x5d5058,_0x2c3119);return console[_0x4cacb1(0xd7)](typeof _0x1ba9a9==='object'?JSON[_0x4cacb1(0xbf)](_0x1ba9a9,null,0x2):String(_0x1ba9a9)),{'ok':!![]};}},setDef={'service':a23_0x2e2458(0x9f),'command':a23_0x2e2458(0xac),'description':a23_0x2e2458(0xb0),'risk':a23_0x2e2458(0xa1),'confirmationDescription':a23_0x2e2458(0xd5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a23_0x2e2458(0xb9),'description':a23_0x2e2458(0xb1),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x41106c){const _0x2b38ba=a23_0x2e2458,_0x1a8238=_0x41106c[_0x2b38ba(0xa8)][0x0],_0x1c4741=_0x41106c[_0x2b38ba(0xa8)][0x1];if(!_0x1a8238||_0x1c4741===undefined)throw CliErrors['validation'](_0x2b38ba(0xa9),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x1a8238]&&!ENUM_KEYS[_0x1a8238][_0x2b38ba(0xb3)](_0x1c4741))throw CliErrors['validation']('Invalid\x20value\x20for\x20\x22'+_0x1a8238+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x1a8238][_0x2b38ba(0xa3)](',\x20'));if(isCliProtectedConfigKey(_0x1a8238))throw CliErrors[_0x2b38ba(0x94)]('\x22'+_0x1a8238+_0x2b38ba(0xc4));if(_0x1a8238===_0x2b38ba(0xb5)){const _0xc6cb15=Number(_0x1c4741);if(isNaN(_0xc6cb15)||_0xc6cb15<=0x0)throw CliErrors[_0x2b38ba(0x94)](_0x2b38ba(0xc0));}const _0x8b351b=resolveWriteScope({'explicitGlobal':_0x41106c[_0x2b38ba(0xb2)](_0x2b38ba(0xa5)),'policy':_0x2b38ba(0xc2)}),_0xeb35b3=toScopeFlags(_0x8b351b),_0x28e72f=readScopedConfig(_0xeb35b3),_0x5448ca=parseAliasAppcodeSetKey(_0x1a8238);if(!_0x5448ca&&!isTopLevelConfigKey(_0x1a8238))throw CliErrors[_0x2b38ba(0x94)]('Top-level\x20key\x20\x22'+_0x1a8238+_0x2b38ba(0xad),_0x2b38ba(0xbc)+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');if(_0x5448ca)setLocalAppAlias(_0x28e72f,_0x5448ca,_0x1c4741);else{if(_0x1a8238===_0x2b38ba(0xd3)){const _0x52e0b2=normalizeLocale(_0x1c4741);if(!_0x52e0b2)throw CliErrors[_0x2b38ba(0x94)](_0x2b38ba(0xd0),_0x2b38ba(0xd1));_0x28e72f[_0x2b38ba(0xd3)]=_0x52e0b2;}else _0x28e72f[_0x1a8238]=_0x1a8238===_0x2b38ba(0xb5)?Number(_0x1c4741):DOMAIN_CONFIG_FIELDS[_0x2b38ba(0xb3)](_0x1a8238)?normalizeDomainOrigin(_0x1a8238,_0x1c4741):_0x1c4741;}const _0x53af0b=_0x1a8238==='accessKey'?maskCliAccessKey(_0x1c4741):!_0x5448ca&&_0x1a8238===_0x2b38ba(0xd3)?String(_0x28e72f[_0x2b38ba(0xd3)]):_0x1c4741;return console['log'](_0x2b38ba(0x95)+_0x1a8238+_0x2b38ba(0xb8)+_0x53af0b+'\x22'+(_0x8b351b==='global'?_0x2b38ba(0xc3):'')),writeScopedConfig(_0x28e72f,_0xeb35b3),{'ok':!![]};}},deleteDef={'service':a23_0x2e2458(0x9f),'command':a23_0x2e2458(0xca),'description':a23_0x2e2458(0xcc),'risk':a23_0x2e2458(0xa1),'confirmationDescription':a23_0x2e2458(0xbd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x2e2458(0x9d),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x573cf6){const _0x3ccb7f=a23_0x2e2458,_0x7f2024=_0x573cf6[_0x3ccb7f(0xa8)][0x0];if(!_0x7f2024)throw CliErrors[_0x3ccb7f(0x94)](_0x3ccb7f(0xce),_0x3ccb7f(0xb6)+CLI_BIN_NAME+_0x3ccb7f(0xaa));if(isCliProtectedConfigKey(_0x7f2024))throw CliErrors[_0x3ccb7f(0x94)]('\x22'+_0x7f2024+_0x3ccb7f(0xc4));const _0x48288a=resolveWriteScope({'explicitGlobal':_0x573cf6[_0x3ccb7f(0xb2)](_0x3ccb7f(0xa5)),'policy':_0x3ccb7f(0xc2)}),_0x3c331b=toScopeFlags(_0x48288a),_0x6948a4=readScopedConfig(_0x3c331b),_0x2fe2e3=parseAliasDeleteKey(_0x7f2024);if(_0x2fe2e3){if(!deleteLocalAppAlias(_0x6948a4,_0x2fe2e3))return console[_0x3ccb7f(0xd7)](_0x3ccb7f(0xbb)+_0x7f2024+(_0x48288a===_0x3ccb7f(0xa5)?'\x20(global)':'')),{'ok':!![],'data':{'key':_0x7f2024,'scope':_0x48288a,'changed':![]}};return console[_0x3ccb7f(0xd7)]('Deleted\x20`'+_0x7f2024+'`'+(_0x48288a===_0x3ccb7f(0xa5)?_0x3ccb7f(0xc3):'')),writeScopedConfig(_0x6948a4,_0x3c331b),{'ok':!![],'data':{'key':_0x7f2024,'scope':_0x48288a,'changed':!![]}};}if(_0x6948a4[_0x7f2024]===undefined)return console['log'](_0x3ccb7f(0xbb)+_0x7f2024+(_0x48288a===_0x3ccb7f(0xa5)?_0x3ccb7f(0xc3):'')),{'ok':!![],'data':{'key':_0x7f2024,'scope':_0x48288a,'changed':![]}};return delete _0x6948a4[_0x7f2024],console[_0x3ccb7f(0xd7)](_0x3ccb7f(0xba)+_0x7f2024+'`'+(_0x48288a===_0x3ccb7f(0xa5)?_0x3ccb7f(0xc3):'')),writeScopedConfig(_0x6948a4,_0x3c331b),{'ok':!![],'data':{'key':_0x7f2024,'scope':_0x48288a,'changed':!![]}};}};export const configDefinitions=[configInitDefinition,listDef,getDef,setDef,deleteDef];
@@ -7,7 +7,7 @@ export declare function executeConfigInit(ctx: RuntimeContext): Promise<{
7
7
  mode: string;
8
8
  protocol: "lovrabet-routing/v1" | undefined;
9
9
  region: "global" | "id" | "cn" | null;
10
- domains: Partial<Record<"runtimeDomain" | "userDomain" | "skillDomain" | "kbServiceDomain" | "apiDomain", string>>;
10
+ domains: Partial<Record<"runtimeDomain" | "userDomain" | "skillDomain" | "kbServiceDomain" | "harnessDomain" | "apiDomain", string>>;
11
11
  };
12
12
  }>;
13
13
  export declare const configInitDefinition: CommandDefinition;
@@ -1 +1 @@
1
- function a24_0x1c23(_0x59b30f,_0x2fc029){_0x59b30f=_0x59b30f-0x109;const _0x568cd4=a24_0x568c();let _0x1c2329=_0x568cd4[_0x59b30f];return _0x1c2329;}const a24_0x1e86ed=a24_0x1c23;(function(_0x1d5b20,_0x4b4201){const _0x1ecfc2=a24_0x1c23,_0x35c534=_0x1d5b20();while(!![]){try{const _0x339f87=-parseInt(_0x1ecfc2(0x118))/0x1*(-parseInt(_0x1ecfc2(0x112))/0x2)+parseInt(_0x1ecfc2(0x110))/0x3*(-parseInt(_0x1ecfc2(0x12c))/0x4)+-parseInt(_0x1ecfc2(0x125))/0x5+-parseInt(_0x1ecfc2(0x137))/0x6*(parseInt(_0x1ecfc2(0x130))/0x7)+-parseInt(_0x1ecfc2(0x109))/0x8+-parseInt(_0x1ecfc2(0x132))/0x9+parseInt(_0x1ecfc2(0x11c))/0xa;if(_0x339f87===_0x4b4201)break;else _0x35c534['push'](_0x35c534['shift']());}catch(_0x278ed1){_0x35c534['push'](_0x35c534['shift']());}}}(a24_0x568c,0xa4d4f));import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';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':a24_0x1e86ed(0x11d),'type':'string','description':a24_0x1e86ed(0x12a)},{'name':'user-domain','type':'string','description':a24_0x1e86ed(0x12b)},{'name':a24_0x1e86ed(0x10c),'type':'string','description':a24_0x1e86ed(0x128)},{'name':'runtime-domain','type':a24_0x1e86ed(0x115),'description':a24_0x1e86ed(0x11e)},{'name':a24_0x1e86ed(0x10e),'type':a24_0x1e86ed(0x115),'description':a24_0x1e86ed(0x134)},{'name':a24_0x1e86ed(0x111),'type':a24_0x1e86ed(0x115),'description':a24_0x1e86ed(0x11a)}];export const configInitFlags=[{'name':a24_0x1e86ed(0x10f),'type':a24_0x1e86ed(0x115),'description':a24_0x1e86ed(0x120)+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},...domainFlags];async function resolveRegion(_0x5db72a){const _0x1f07ea=a24_0x1e86ed,_0x2c9832=_0x5db72a[_0x1f07ea(0x131)](_0x1f07ea(0x10f));if(_0x2c9832){if(!isEnabledLovrabetRegion(_0x2c9832))throw CliErrors[_0x1f07ea(0x10b)](_0x1f07ea(0x135)+_0x2c9832+_0x1f07ea(0x10d),_0x1f07ea(0x129)+ENABLED_LOVRABET_REGION_VALUES[_0x1f07ea(0x121)](',\x20'));return _0x2c9832;}if(_0x5db72a['nonInteractive'])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x1f07ea(0x122),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES['map'](_0x5d907c=>({'name':OFFICIAL_ROUTING_PROFILES[_0x5d907c]['label']+'\x20('+_0x5d907c+')','value':_0x5d907c}))});}catch(_0x583586){if(_0x583586?.[_0x1f07ea(0x12e)]==='ExitPromptError')throw CliErrors[_0x1f07ea(0x126)]();throw _0x583586;}}export async function executeConfigInit(_0x214719){const _0x2c5b30=a24_0x1e86ed,_0x4f4453=resolveDomainConfigInput(_0x214719),_0x4d7b93=_0x4f4453['domains'],_0x3f9e34=Object['keys'](_0x4d7b93)[_0x2c5b30(0x127)]>0x0;if(_0x3f9e34&&_0x214719[_0x2c5b30(0x131)](_0x2c5b30(0x10f)))throw CliErrors[_0x2c5b30(0x10b)](_0x2c5b30(0x119));const _0x2a24f9={'global':!![]},_0x163b08=readScopedConfig(_0x2a24f9);for(const _0x6a6cef of DOMAIN_CONFIG_FIELDS)delete _0x163b08[_0x6a6cef];for(const _0x2d1308 of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x163b08[_0x2d1308];delete _0x163b08[_0x2c5b30(0x114)];let _0x343817=null;if(_0x3f9e34)delete _0x163b08['region'],_0x4f4453['mode']===_0x2c5b30(0x116)?_0x163b08['routing']={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x4f4453[_0x2c5b30(0x11f)]}:Object['assign'](_0x163b08,_0x4d7b93);else{_0x343817=await resolveRegion(_0x214719);if(_0x343817===DEFAULT_LOVRABET_REGION)delete _0x163b08[_0x2c5b30(0x10f)];else _0x163b08[_0x2c5b30(0x10f)]=_0x343817;}return writeScopedConfig(_0x163b08,_0x2a24f9),{'ok':!![],'message':_0x3f9e34?_0x2c5b30(0x123)+Object[_0x2c5b30(0x136)](_0x4f4453[_0x2c5b30(0x117)]===_0x2c5b30(0x116)?_0x4f4453['manifestDomains']:_0x4d7b93)[_0x2c5b30(0x121)](',\x20')+'.':_0x2c5b30(0x133)+_0x343817+'.','data':{'mode':_0x3f9e34?_0x2c5b30(0x12f):_0x2c5b30(0x11b),'protocol':_0x4f4453[_0x2c5b30(0x117)]===_0x2c5b30(0x116)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x343817,'domains':_0x4d7b93}};}export const configInitDefinition={'service':a24_0x1e86ed(0x113),'command':a24_0x1e86ed(0x10a),'description':'Initialize\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','risk':a24_0x1e86ed(0x12d),'confirmationDescription':a24_0x1e86ed(0x124),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};function a24_0x568c(){const _0x312b62=['441nhZUtu','str','9792639Eahrhb','Lovrabet\x20connection\x20configured\x20for\x20region:\x20','Custom\x20SkillHub\x20HTTPS\x20origin','Region\x20\x22','keys','2322QpBJhQ','3016016vbraSE','init','validation','api-domain','\x22\x20is\x20not\x20currently\x20available.','skill-domain','region','6jtylJZ','kb-service-domain','1436yHuEWW','config','routing','string','enterprise-v1','mode','191QmHuIa','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','Custom\x20KB\x20Service\x20HTTPS\x20origin','official','35578460GFriaz','domain-config','Custom\x20Runtime\x20HTTPS\x20origin','manifestDomains','Official\x20Lovrabet\x20region:\x20','join','Select\x20Lovrabet\x20region','Lovrabet\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','Updates\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20AccessKey,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','1923305JauEdD','cancelled','length','Custom\x20platform\x20API\x20HTTPS\x20origin','Available\x20regions:\x20','Independent-deployment\x20Domain\x20JSON\x20file','Custom\x20User\x20HTTPS\x20origin','2291436GbgLia','write','name','independent'];a24_0x568c=function(){return _0x312b62;};return a24_0x568c();}
1
+ const a24_0x210839=a24_0x4c10;(function(_0x503e59,_0x537254){const _0x1c12b9=a24_0x4c10,_0x37f2bf=_0x503e59();while(!![]){try{const _0x353097=parseInt(_0x1c12b9(0x135))/0x1+-parseInt(_0x1c12b9(0x143))/0x2+parseInt(_0x1c12b9(0x13f))/0x3*(parseInt(_0x1c12b9(0x130))/0x4)+parseInt(_0x1c12b9(0x13a))/0x5+parseInt(_0x1c12b9(0x12d))/0x6*(parseInt(_0x1c12b9(0x150))/0x7)+-parseInt(_0x1c12b9(0x128))/0x8+-parseInt(_0x1c12b9(0x142))/0x9;if(_0x353097===_0x537254)break;else _0x37f2bf['push'](_0x37f2bf['shift']());}catch(_0x239bcd){_0x37f2bf['push'](_0x37f2bf['shift']());}}}(a24_0x336c,0xeafa0));import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';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':a24_0x210839(0x138),'type':a24_0x210839(0x125),'description':'Independent-deployment\x20Domain\x20JSON\x20file'},{'name':'user-domain','type':a24_0x210839(0x125),'description':a24_0x210839(0x13c)},{'name':a24_0x210839(0x12f),'type':'string','description':a24_0x210839(0x126)},{'name':a24_0x210839(0x140),'type':a24_0x210839(0x125),'description':'Custom\x20Runtime\x20HTTPS\x20origin'},{'name':a24_0x210839(0x12b),'type':a24_0x210839(0x125),'description':'Custom\x20SkillHub\x20HTTPS\x20origin'},{'name':a24_0x210839(0x132),'type':a24_0x210839(0x125),'description':a24_0x210839(0x149)},{'name':a24_0x210839(0x141),'type':'string','description':a24_0x210839(0x129)}];export const configInitFlags=[{'name':a24_0x210839(0x139),'type':a24_0x210839(0x125),'description':'Official\x20Lovrabet\x20region:\x20'+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},...domainFlags];async function resolveRegion(_0x49ecab){const _0x1d8731=a24_0x210839,_0xef1ad0=_0x49ecab[_0x1d8731(0x131)](_0x1d8731(0x139));if(_0xef1ad0){if(!isEnabledLovrabetRegion(_0xef1ad0))throw CliErrors[_0x1d8731(0x14d)](_0x1d8731(0x137)+_0xef1ad0+_0x1d8731(0x13b),_0x1d8731(0x151)+ENABLED_LOVRABET_REGION_VALUES[_0x1d8731(0x127)](',\x20'));return _0xef1ad0;}if(_0x49ecab[_0x1d8731(0x14f)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':'Select\x20Lovrabet\x20region','default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES['map'](_0x43dc16=>({'name':OFFICIAL_ROUTING_PROFILES[_0x43dc16][_0x1d8731(0x13d)]+'\x20('+_0x43dc16+')','value':_0x43dc16}))});}catch(_0x19af62){if(_0x19af62?.['name']===_0x1d8731(0x12c))throw CliErrors['cancelled']();throw _0x19af62;}}function a24_0x336c(){const _0x35ccc1=['Custom\x20User\x20HTTPS\x20origin','label','assign','24GaKFpV','runtime-domain','harness-domain','12884355PJZQmL','2248712iIROqx','length','enterprise-v1','Updates\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20AccessKey,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','independent','keys','Custom\x20KB\x20Service\x20HTTPS\x20origin','routing','manifestDomains','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','validation','init','nonInteractive','560wXpVJG','Available\x20regions:\x20','official','string','Custom\x20platform\x20API\x20HTTPS\x20origin','join','9719440KkvrwQ','Custom\x20Harness\x20HTTPS\x20origin','Lovrabet\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','skill-domain','ExitPromptError','121908bOBdJV','domains','api-domain','811748mDYuuF','str','kb-service-domain','mode','Lovrabet\x20connection\x20configured\x20for\x20region:\x20','390354fVRiYn','Initialize\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','Region\x20\x22','domain-config','region','5470275nbaTdD','\x22\x20is\x20not\x20currently\x20available.'];a24_0x336c=function(){return _0x35ccc1;};return a24_0x336c();}function a24_0x4c10(_0x563fb3,_0x445a8f){_0x563fb3=_0x563fb3-0x125;const _0x336cb3=a24_0x336c();let _0x4c10e1=_0x336cb3[_0x563fb3];return _0x4c10e1;}export async function executeConfigInit(_0x4c942b){const _0x3297e8=a24_0x210839,_0x19a9f7=resolveDomainConfigInput(_0x4c942b),_0x3d2ab3=_0x19a9f7[_0x3297e8(0x12e)],_0x37ef5f=Object[_0x3297e8(0x148)](_0x3d2ab3)[_0x3297e8(0x144)]>0x0||_0x19a9f7[_0x3297e8(0x133)]===_0x3297e8(0x145);if(_0x37ef5f&&_0x4c942b[_0x3297e8(0x131)](_0x3297e8(0x139)))throw CliErrors[_0x3297e8(0x14d)](_0x3297e8(0x14c));const _0x51dd5a={'global':!![]},_0x4739ef=readScopedConfig(_0x51dd5a);for(const _0x1322e1 of DOMAIN_CONFIG_FIELDS)delete _0x4739ef[_0x1322e1];for(const _0x938dce of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x4739ef[_0x938dce];delete _0x4739ef['routing'];let _0xf85798=null;if(_0x37ef5f)delete _0x4739ef[_0x3297e8(0x139)],_0x19a9f7[_0x3297e8(0x133)]===_0x3297e8(0x145)?_0x4739ef[_0x3297e8(0x14a)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x19a9f7[_0x3297e8(0x14b)]}:Object[_0x3297e8(0x13e)](_0x4739ef,_0x3d2ab3);else{_0xf85798=await resolveRegion(_0x4c942b);if(_0xf85798===DEFAULT_LOVRABET_REGION)delete _0x4739ef['region'];else _0x4739ef[_0x3297e8(0x139)]=_0xf85798;}return writeScopedConfig(_0x4739ef,_0x51dd5a),{'ok':!![],'message':_0x37ef5f?_0x3297e8(0x12a)+Object[_0x3297e8(0x148)](_0x19a9f7[_0x3297e8(0x133)]===_0x3297e8(0x145)?_0x19a9f7['manifestDomains']:_0x3d2ab3)[_0x3297e8(0x127)](',\x20')+'.':_0x3297e8(0x134)+_0xf85798+'.','data':{'mode':_0x37ef5f?_0x3297e8(0x147):_0x3297e8(0x152),'protocol':_0x19a9f7[_0x3297e8(0x133)]===_0x3297e8(0x145)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0xf85798,'domains':_0x3d2ab3}};}export const configInitDefinition={'service':'config','command':a24_0x210839(0x14e),'description':a24_0x210839(0x136),'risk':'write','confirmationDescription':a24_0x210839(0x146),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
@@ -1 +1 @@
1
- (function(_0x76bb31,_0x57cac2){var _0x262e57=a25_0x1a53,_0x36a3d7=_0x76bb31();while(!![]){try{var _0xc2f5fd=-parseInt(_0x262e57(0x1ba))/0x1*(parseInt(_0x262e57(0x1b2))/0x2)+parseInt(_0x262e57(0x1b8))/0x3*(parseInt(_0x262e57(0x1b7))/0x4)+-parseInt(_0x262e57(0x1b9))/0x5*(parseInt(_0x262e57(0x1b4))/0x6)+-parseInt(_0x262e57(0x1b3))/0x7*(parseInt(_0x262e57(0x1b5))/0x8)+parseInt(_0x262e57(0x1bb))/0x9*(parseInt(_0x262e57(0x1bc))/0xa)+-parseInt(_0x262e57(0x1b6))/0xb+parseInt(_0x262e57(0x1bd))/0xc;if(_0xc2f5fd===_0x57cac2)break;else _0x36a3d7['push'](_0x36a3d7['shift']());}catch(_0x4cb924){_0x36a3d7['push'](_0x36a3d7['shift']());}}}(a25_0x40ea,0x50135));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};function a25_0x1a53(_0xbc2279,_0x31a0c2){_0xbc2279=_0xbc2279-0x1b2;var _0x40ea6a=a25_0x40ea();var _0x1a5379=_0x40ea6a[_0xbc2279];return _0x1a5379;}export{readScopedConfig,writeScopedConfig}from'../../context.js';function a25_0x40ea(){var _0x40fee4=['10610808PnKdvL','144182jiYLtH','56yqlVAN','78AllZzY','105472sMOiKX','4358475EqzmMK','20BEBQSR','136893sHXBhh','71970ueGNRI','7AiylZl','144BqHSGr','255660WECYBU'];a25_0x40ea=function(){return _0x40fee4;};return a25_0x40ea();}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
+ (function(_0x341f4e,_0x144da1){var _0x388048=a25_0x2072,_0x58359d=_0x341f4e();while(!![]){try{var _0x3b9dfc=parseInt(_0x388048(0x1c8))/0x1*(-parseInt(_0x388048(0x1c6))/0x2)+-parseInt(_0x388048(0x1bf))/0x3+-parseInt(_0x388048(0x1c2))/0x4*(parseInt(_0x388048(0x1c5))/0x5)+parseInt(_0x388048(0x1c1))/0x6*(-parseInt(_0x388048(0x1c7))/0x7)+-parseInt(_0x388048(0x1c4))/0x8+-parseInt(_0x388048(0x1be))/0x9+parseInt(_0x388048(0x1c0))/0xa*(parseInt(_0x388048(0x1c3))/0xb);if(_0x3b9dfc===_0x144da1)break;else _0x58359d['push'](_0x58359d['shift']());}catch(_0x5a46fc){_0x58359d['push'](_0x58359d['shift']());}}}(a25_0x448c,0xd268c));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};function a25_0x448c(){var _0x3f90f2=['1890640JlMSRl','170678eamEfc','1757BPSECS','7oswAIB','12637314RCOXYh','4378932GNEdfK','10HbOsdJ','34932hKNTFo','12XuUhGD','84359396zRmTwf','6002648blHuKL'];a25_0x448c=function(){return _0x3f90f2;};return a25_0x448c();}function a25_0x2072(_0x1fe598,_0x15376e){_0x1fe598=_0x1fe598-0x1be;var _0x448c21=a25_0x448c();var _0x2072e2=_0x448c21[_0x1fe598];return _0x2072e2;}export{readScopedConfig,writeScopedConfig}from'../../context.js';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_0x364b15=a26_0x2c50;(function(_0x56fca5,_0x28f8cd){const _0x3077b9=a26_0x2c50,_0xaf4484=_0x56fca5();while(!![]){try{const _0x5c0fa5=-parseInt(_0x3077b9(0x1f5))/0x1+parseInt(_0x3077b9(0x1e4))/0x2+parseInt(_0x3077b9(0x1d8))/0x3+-parseInt(_0x3077b9(0x1f0))/0x4*(-parseInt(_0x3077b9(0x202))/0x5)+parseInt(_0x3077b9(0x1fd))/0x6+-parseInt(_0x3077b9(0x1c5))/0x7*(-parseInt(_0x3077b9(0x20d))/0x8)+-parseInt(_0x3077b9(0x1c3))/0x9;if(_0x5c0fa5===_0x28f8cd)break;else _0xaf4484['push'](_0xaf4484['shift']());}catch(_0x26a3ac){_0xaf4484['push'](_0xaf4484['shift']());}}}(a26_0x5e10,0x3a17c));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';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 a26_0x2c50(_0x4ecd0b,_0x15e0f1){_0x4ecd0b=_0x4ecd0b-0x1c2;const _0x5e103a=a26_0x5e10();let _0x2c50b3=_0x5e103a[_0x4ecd0b];return _0x2c50b3;}function input(_0x30059e){const _0x3b8100=a26_0x2c50,_0x465b7d=_0x30059e['str'](_0x3b8100(0x1cd)),_0x34beba=_0x30059e[_0x3b8100(0x1fe)](_0x3b8100(0x1ce));if(!_0x465b7d||!_0x34beba)throw CliErrors['validation'](_0x3b8100(0x1f4));const _0x33aa92=_0x30059e['num'](_0x3b8100(0x1ef),0x1),_0x1395c9=_0x30059e[_0x3b8100(0x1fc)](_0x3b8100(0x1d5),0x1f4);if(!Number['isInteger'](_0x33aa92)||_0x33aa92<0x1||!Number['isInteger'](_0x1395c9)||_0x1395c9<0x1||_0x1395c9>0x1f4)throw CliErrors[_0x3b8100(0x1e7)](_0x3b8100(0x1ca));const _0x3cfe6f=resolve(_0x30059e[_0x3b8100(0x1fe)](_0x3b8100(0x1fb))||_0x465b7d+_0x3b8100(0x1dc)),_0x4113e4=resolve(_0x30059e[_0x3b8100(0x1fe)](_0x3b8100(0x1e9))||_0x465b7d+_0x3b8100(0x203)),_0x380cd4=[resolve(_0x465b7d),resolve(_0x34beba),_0x3cfe6f,_0x4113e4];if(new Set(_0x380cd4)['size']!==_0x380cd4[_0x3b8100(0x208)])throw CliErrors[_0x3b8100(0x1e7)](_0x3b8100(0x201));return{'file':resolve(_0x465b7d),'mappingFile':resolve(_0x34beba),'headerRow':_0x33aa92,'batchSize':_0x1395c9,'checkpoint':_0x3cfe6f,'report':_0x4113e4,'sheet':_0x30059e['str']('sheet')||undefined,'resume':_0x30059e['bool'](_0x3b8100(0x218))};}async function prepare(_0x108818){const _0x5b43c9=a26_0x2c50,_0x1e5065=input(_0x108818),_0x2afe55=_0x108818[_0x5b43c9(0x1fe)](_0x5b43c9(0x215));[_0x1e5065[_0x5b43c9(0x1cd)],_0x1e5065['mappingFile'],_0x1e5065[_0x5b43c9(0x1fb)],_0x1e5065[_0x5b43c9(0x1e9)]]=await Promise[_0x5b43c9(0x1f6)]([realpath(_0x1e5065[_0x5b43c9(0x1cd)]),realpath(_0x1e5065[_0x5b43c9(0x206)]),resolveImportOutputPath(_0x1e5065[_0x5b43c9(0x1fb)]),resolveImportOutputPath(_0x1e5065[_0x5b43c9(0x1e9)])]),assertImportPaths(_0x1e5065[_0x5b43c9(0x1fb)],_0x1e5065[_0x5b43c9(0x1e9)],[_0x1e5065[_0x5b43c9(0x1cd)],_0x1e5065[_0x5b43c9(0x206)]]);let _0x4da29d;const _0x492a58=await readFile(_0x1e5065['mappingFile']);if(_0x492a58[_0x5b43c9(0x208)]>0x400*0x400)throw CliErrors[_0x5b43c9(0x1e7)]('Mapping\x20file\x20exceeds\x201\x20MB.');try{_0x4da29d=JSON['parse'](_0x492a58['toString']('utf8'));}catch{throw CliErrors[_0x5b43c9(0x1e7)](_0x5b43c9(0x1f8));}if(!_0x4da29d||typeof _0x4da29d!=='object'||Array[_0x5b43c9(0x20c)](_0x4da29d)||Object[_0x5b43c9(0x1ee)](_0x4da29d)[_0x5b43c9(0x211)](_0x2903e3=>typeof _0x2903e3!==_0x5b43c9(0x204)))throw CliErrors[_0x5b43c9(0x1e7)](_0x5b43c9(0x1f7));const _0x3dce24=await getDatasetDetail(_0x2afe55),_0x2f03f0=assertDatasetImportTarget(_0x3dce24,_0x108818['appCode'],_0x2afe55);if(_0x2f03f0===_0x5b43c9(0x1de))throw CliErrors['validation'](_0x5b43c9(0x1d9),_0x5b43c9(0x20a)+_0x2afe55+_0x5b43c9(0x1f2)+_0x108818[_0x5b43c9(0x1d0)]+_0x5b43c9(0x1da)+_0x2afe55+_0x5b43c9(0x1d6));if(_0x2f03f0!==_0x5b43c9(0x1d7))throw CliErrors['validation'](_0x5b43c9(0x209),_0x5b43c9(0x1cc));const _0x8e4339=await buildExcelManifest({..._0x1e5065,'mapping':_0x4da29d,'fields':normalizeImportFields(_0x3dce24)}),_0x142824=await getDatasetImportContract(_0x108818[_0x5b43c9(0x1d0)],_0x2afe55);assertImportContract(_0x142824,_0x108818[_0x5b43c9(0x1d0)],_0x2afe55),assertImageImportCapability(_0x142824,_0x8e4339);if(_0x8e4339[_0x5b43c9(0x1c9)]?.[_0x5b43c9(0x208)]){const _0x1a3c81=await resolveImportOutputPath(_0x1e5065['checkpoint']+_0x5b43c9(0x1d4)),_0x2df323=await Promise['all']([_0x1a3c81,_0x1a3c81+_0x5b43c9(0x1d3),_0x1a3c81+'.lock.recovery',_0x1e5065[_0x5b43c9(0x1fb)]+_0x5b43c9(0x1d3),_0x1e5065['checkpoint']+_0x5b43c9(0x213)][_0x5b43c9(0x20b)](resolveImportOutputPath));assertImportPaths(_0x1e5065[_0x5b43c9(0x1fb)],_0x1e5065[_0x5b43c9(0x1e9)],[_0x1e5065[_0x5b43c9(0x1cd)],_0x1e5065[_0x5b43c9(0x206)],..._0x2df323[_0x5b43c9(0x1ff)](0x0,0x3)]);}if(_0x1e5065[_0x5b43c9(0x1e8)]>_0x142824['maxBatchSize'])throw CliErrors[_0x5b43c9(0x1e7)]('Batch\x20size\x20exceeds\x20the\x20server\x20import\x20contract.');return{'args':_0x1e5065,'manifest':_0x8e4339,'contract':_0x142824,'code':_0x2afe55};}async function checked(_0x171dde){const _0x4c9498=a26_0x2c50;try{return await _0x171dde();}catch(_0x513e88){if(_0x513e88 instanceof CliError)throw _0x513e88;throw CliErrors[_0x4c9498(0x1e7)](_0x513e88[_0x4c9498(0x214)]||_0x4c9498(0x1cb));}}export const dataImportExcel={'service':'data','command':a26_0x364b15(0x1df),'risk':'write','description':a26_0x364b15(0x1d1),'confirmationDescription':a26_0x364b15(0x1e0),'flags':[CODE_FLAG,{'name':'file','type':'string','required':!![],'description':a26_0x364b15(0x1dd)},{'name':a26_0x364b15(0x1ce),'type':a26_0x364b15(0x204),'required':!![],'description':a26_0x364b15(0x1c7)},{'name':a26_0x364b15(0x1db),'type':a26_0x364b15(0x204),'description':a26_0x364b15(0x1ed)},{'name':a26_0x364b15(0x1ef),'type':a26_0x364b15(0x1ec),'default':0x1,'description':a26_0x364b15(0x1f3)},{'name':a26_0x364b15(0x1d5),'type':a26_0x364b15(0x1ec),'default':0x1f4,'description':a26_0x364b15(0x1eb)},{'name':a26_0x364b15(0x1fb),'type':a26_0x364b15(0x204),'description':a26_0x364b15(0x1e6)},{'name':a26_0x364b15(0x1e9),'type':a26_0x364b15(0x204),'description':a26_0x364b15(0x1e5)},{'name':a26_0x364b15(0x218),'type':a26_0x364b15(0x20e),'description':a26_0x364b15(0x216)}],'validate':async _0x43d66f=>{input(_0x43d66f);},'dryRun':async _0x1f87c7=>checked(async()=>{const _0xa58ce1=a26_0x364b15,{args:_0x3a2373,manifest:_0x3fae1c,contract:_0x57c903,code:_0x5b060d}=await prepare(_0x1f87c7),_0x475ad8=new Set(_0x3fae1c[_0xa58ce1(0x1e1)][_0xa58ce1(0x20b)](_0x1eae27=>_0x1eae27[_0xa58ce1(0x1f9)]))[_0xa58ce1(0x210)];return{'method':_0xa58ce1(0x1c4),'url':_0xa58ce1(0x205)+encodeURIComponent(_0x1f87c7['appCode'])+'/'+encodeURIComponent(_0x5b060d)+_0xa58ce1(0x1e3),'description':_0xa58ce1(0x1e2),'body':{'schemaFingerprint':_0x57c903[_0xa58ce1(0x217)]},'validRows':Math['max'](0x0,_0x3fae1c[_0xa58ce1(0x1f1)]['length']-_0x475ad8),'invalidRows':_0x475ad8,'invalidCells':_0x3fae1c['errors'][_0xa58ce1(0x208)],'emptyRows':_0x3fae1c['emptyRows'][_0xa58ce1(0x208)],'expectedBatches':previewImportBatchCount(_0x3fae1c,_0x57c903,_0x3a2373[_0xa58ce1(0x1e8)]),'imageCount':_0x3fae1c[_0xa58ce1(0x1ea)]?.[_0xa58ce1(0x207)]((_0x2b4f45,_0x136d7d)=>_0x2b4f45+_0x136d7d[_0xa58ce1(0x1c6)][_0xa58ce1(0x208)],0x0)??0x0,'uniqueImages':_0x3fae1c[_0xa58ce1(0x1c8)]?.[_0xa58ce1(0x208)]??0x0,'uniqueImageBytes':_0x3fae1c[_0xa58ce1(0x1c8)]?.[_0xa58ce1(0x207)]((_0x48f9cc,_0x4a2455)=>_0x48f9cc+_0x4a2455[_0xa58ce1(0x210)],0x0)??0x0,'errors':_0x3fae1c[_0xa58ce1(0x1e1)],'warnings':_0x3fae1c[_0xa58ce1(0x20f)],'sheet':_0x3fae1c['sheet'],'checkpoint':_0x3a2373[_0xa58ce1(0x1fb)],'report':_0x3a2373[_0xa58ce1(0x1e9)]};}),'execute':async _0x3a3d0a=>checked(async()=>{const _0x1a4e1c=a26_0x364b15,{args:_0x41124b,manifest:_0x5b964e,contract:_0x8e1766,code:_0x4871d1}=await prepare(_0x3a3d0a);if(_0x5b964e[_0x1a4e1c(0x1e1)][_0x1a4e1c(0x208)]){await saveImportJson(_0x41124b[_0x1a4e1c(0x1e9)],{'status':_0x1a4e1c(0x200),'sourceRows':_0x5b964e[_0x1a4e1c(0x1f1)]['length'],'errors':_0x5b964e[_0x1a4e1c(0x1e1)],'emptyRows':_0x5b964e[_0x1a4e1c(0x1fa)],'warnings':_0x5b964e['warnings']});throw CliErrors[_0x1a4e1c(0x1e7)](_0x1a4e1c(0x1c2)+_0x5b964e[_0x1a4e1c(0x1e1)][_0x1a4e1c(0x208)]+'\x20invalid\x20cells.\x20No\x20records\x20were\x20written.',_0x1a4e1c(0x1d2)+_0x41124b[_0x1a4e1c(0x1e9)]+'.');}const _0x4ef69a=_0x5b964e[_0x1a4e1c(0x1c9)]?.[_0x1a4e1c(0x208)]?runImageExcelImport:_0x8e1766['schemaVersion']===0x2?runAutoIdExcelImport:runExcelImport,_0x1a7285=await _0x4ef69a({..._0x41124b,'manifest':_0x5b964e,'contract':_0x8e1766,'appCode':_0x3a3d0a[_0x1a4e1c(0x1d0)],'datasetCode':_0x4871d1,'runtimeDomain':getRuntimeDomain(),'inputPaths':[_0x41124b[_0x1a4e1c(0x1cd)],_0x41124b[_0x1a4e1c(0x206)]],'imageApi':{'upload':(_0x3ba4a9,_0x45c328)=>uploadDatasetImportImage(_0x3a3d0a[_0x1a4e1c(0x1d0)],_0x4871d1,_0x3ba4a9,_0x45c328),'readback':(_0x493599,_0x5a6c3c)=>readDatasetImportImage(_0x3a3d0a[_0x1a4e1c(0x1d0)],_0x4871d1,_0x493599,_0x5a6c3c)},'api':{'write':(_0x2a9564,_0x4c1b5e)=>createDatasetImportBatch(_0x3a3d0a[_0x1a4e1c(0x1d0)],_0x4871d1,{'schemaFingerprint':_0x8e1766[_0x1a4e1c(0x217)],'items':_0x2a9564,..._0x4c1b5e===undefined?{}:{'taskId':_0x4c1b5e}}),'readback':_0x36efb1=>readDatasetImportRows(_0x3a3d0a[_0x1a4e1c(0x1d0)],_0x4871d1,_0x36efb1),'readTask':_0x142248=>readDatasetImportTaskRows(_0x3a3d0a[_0x1a4e1c(0x1d0)],_0x4871d1,_0x142248)}});return{'ok':!![],'data':_0x1a7285,'message':_0x1a4e1c(0x1cf)+_0x1a7285['succeeded']+_0x1a4e1c(0x212)};})};function a26_0x5e10(){const _0x4035c2=['import-excel','Creates\x20real\x20dataset\x20records\x20immediately.\x20Keep\x20the\x20checkpoint\x20to\x20reconcile\x20and\x20resume\x20interrupted\x20imports.','errors','Local\x20Excel\x20validation\x20only;\x20no\x20records\x20or\x20checkpoint\x20were\x20written.','/import-batch','947052iYJeff','Private\x20result\x20report\x20(default:\x20XLSX\x20path\x20plus\x20.import-report.json)','Private\x20checkpoint\x20file\x20(default:\x20XLSX\x20path\x20plus\x20.import-checkpoint.json)','validation','batchSize','report','imageCells','Maximum\x20records\x20per\x20request\x20(1..500)','number','Worksheet\x20name\x20or\x201-based\x20index\x20(default:\x20first\x20worksheet)','values','header-row','436imbLWp','rows','.\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','1-based\x20Excel\x20header\x20row','--file\x20and\x20--mapping\x20are\x20required.','247506uqUVUN','all','Mapping\x20must\x20be\x20an\x20object\x20from\x20Excel\x20headers\x20to\x20field\x20codes.','Mapping\x20file\x20must\x20contain\x20valid\x20JSON.','rowNumber','emptyRows','checkpoint','num','1674504nmuGWP','str','slice','invalid','Source,\x20mapping,\x20checkpoint\x20and\x20report\x20must\x20be\x20different\x20files.','9435xwOFKA','.import-report.json','string','/client/','mappingFile','reduce','length','Dataset\x20source\x20is\x20missing\x20or\x20unsupported;\x20import-excel\x20requires\x20METADATA.','Inspect\x20lovrabet\x20dataset\x20detail\x20--code\x20','map','isArray','2216qUSpzi','boolean','warnings','size','some','\x20records.','.lock.recovery','message','code','Reconcile\x20imported\x20records\x20and\x20resume\x20the\x20exact\x20original\x20file,\x20target\x20and\x20mapping','schemaFingerprint','resume','Excel\x20contains\x20','6508251fcLMeP','POST','644PfkBsi','hashes','JSON\x20file\x20mapping\x20Excel\x20headers\x20to\x20dataset\x20field\x20codes','media','imageFields','Header\x20row\x20must\x20be\x20positive\x20and\x20batch\x20size\x20must\x20be\x20between\x201\x20and\x20500.','Excel\x20import\x20failed.','Run\x20dataset\x20detail\x20to\x20confirm\x20the\x20source.\x20Only\x20DB_TABLE\x20has\x20the\x20documented\x20alternative\x20batchCreate\x20route;\x20do\x20not\x20guess\x20or\x20automatically\x20switch\x20APIs.','file','mapping','Imported\x20and\x20verified\x20','appCode','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.','See\x20','.lock','.rows.json','batch-size','\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.','METADATA','674448thYiqs','DB_TABLE\x20datasets\x20use\x20the\x20existing\x20batchCreate\x20operation;\x20import-excel\x20only\x20supports\x20METADATA\x20datasets.','\x20--code\x20','sheet','.import-checkpoint.json','Local\x20XLSX\x20file\x20(maximum\x2020\x20MB)','DB_TABLE'];a26_0x5e10=function(){return _0x4035c2;};return a26_0x5e10();}
1
+ const a26_0x36da7e=a26_0x507c;(function(_0x30665e,_0x3de84f){const _0x969469=a26_0x507c,_0x2ee3d0=_0x30665e();while(!![]){try{const _0x51f7ee=-parseInt(_0x969469(0x169))/0x1*(-parseInt(_0x969469(0x131))/0x2)+-parseInt(_0x969469(0x165))/0x3*(-parseInt(_0x969469(0x17e))/0x4)+parseInt(_0x969469(0x12e))/0x5+-parseInt(_0x969469(0x177))/0x6+parseInt(_0x969469(0x139))/0x7*(-parseInt(_0x969469(0x176))/0x8)+parseInt(_0x969469(0x16b))/0x9+-parseInt(_0x969469(0x14e))/0xa*(parseInt(_0x969469(0x148))/0xb);if(_0x51f7ee===_0x3de84f)break;else _0x2ee3d0['push'](_0x2ee3d0['shift']());}catch(_0x20af2d){_0x2ee3d0['push'](_0x2ee3d0['shift']());}}}(a26_0x3b7e,0xdcf82));import{readFile,realpath}from'node:fs/promises';import{resolve}from'node:path';import{CODE_FLAG}from'../../commands/common/flags.js';function a26_0x507c(_0x4e9592,_0x1a7168){_0x4e9592=_0x4e9592-0x12d;const _0x3b7e00=a26_0x3b7e();let _0x507c07=_0x3b7e00[_0x4e9592];return _0x507c07;}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';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(_0x56982e){const _0x4cd4b6=a26_0x507c,_0x266456=_0x56982e['str'](_0x4cd4b6(0x14d)),_0x3c842e=_0x56982e['str'](_0x4cd4b6(0x13e));if(!_0x266456||!_0x3c842e)throw CliErrors[_0x4cd4b6(0x13b)](_0x4cd4b6(0x13f));const _0x525787=_0x56982e['num'](_0x4cd4b6(0x175),0x1),_0x18dde0=_0x56982e[_0x4cd4b6(0x15e)](_0x4cd4b6(0x13c),0x1f4);if(!Number['isInteger'](_0x525787)||_0x525787<0x1||!Number[_0x4cd4b6(0x156)](_0x18dde0)||_0x18dde0<0x1||_0x18dde0>0x1f4)throw CliErrors['validation'](_0x4cd4b6(0x136));const _0x55db3d=resolve(_0x56982e[_0x4cd4b6(0x16c)]('checkpoint')||_0x266456+_0x4cd4b6(0x178)),_0x9863=resolve(_0x56982e[_0x4cd4b6(0x16c)](_0x4cd4b6(0x172))||_0x266456+_0x4cd4b6(0x174)),_0x2639f7=[resolve(_0x266456),resolve(_0x3c842e),_0x55db3d,_0x9863];if(new Set(_0x2639f7)['size']!==_0x2639f7[_0x4cd4b6(0x14c)])throw CliErrors[_0x4cd4b6(0x13b)]('Source,\x20mapping,\x20checkpoint\x20and\x20report\x20must\x20be\x20different\x20files.');return{'file':resolve(_0x266456),'mappingFile':resolve(_0x3c842e),'headerRow':_0x525787,'batchSize':_0x18dde0,'checkpoint':_0x55db3d,'report':_0x9863,'sheet':_0x56982e[_0x4cd4b6(0x16c)]('sheet')||undefined,'resume':_0x56982e['bool'](_0x4cd4b6(0x152))};}async function prepare(_0x5de7d8){const _0x19e046=a26_0x507c,_0x414c96=input(_0x5de7d8),_0x27824d=_0x5de7d8['str']('code');[_0x414c96['file'],_0x414c96[_0x19e046(0x133)],_0x414c96['checkpoint'],_0x414c96[_0x19e046(0x172)]]=await Promise[_0x19e046(0x17c)]([realpath(_0x414c96[_0x19e046(0x14d)]),realpath(_0x414c96['mappingFile']),resolveImportOutputPath(_0x414c96[_0x19e046(0x157)]),resolveImportOutputPath(_0x414c96[_0x19e046(0x172)])]),assertImportPaths(_0x414c96[_0x19e046(0x157)],_0x414c96[_0x19e046(0x172)],[_0x414c96['file'],_0x414c96[_0x19e046(0x133)]]);let _0x3ad60d;const _0x3bbbae=await readFile(_0x414c96[_0x19e046(0x133)]);if(_0x3bbbae[_0x19e046(0x14c)]>0x400*0x400)throw CliErrors['validation']('Mapping\x20file\x20exceeds\x201\x20MB.');try{_0x3ad60d=JSON['parse'](_0x3bbbae[_0x19e046(0x181)](_0x19e046(0x15a)));}catch{throw CliErrors[_0x19e046(0x13b)]('Mapping\x20file\x20must\x20contain\x20valid\x20JSON.');}if(!_0x3ad60d||typeof _0x3ad60d!==_0x19e046(0x142)||Array['isArray'](_0x3ad60d)||Object[_0x19e046(0x13a)](_0x3ad60d)[_0x19e046(0x173)](_0x103e3a=>typeof _0x103e3a!==_0x19e046(0x145)))throw CliErrors[_0x19e046(0x13b)](_0x19e046(0x159));const _0x591ddd=await getDatasetDetail(_0x27824d),_0x46a24a=assertDatasetImportTarget(_0x591ddd,_0x5de7d8[_0x19e046(0x179)],_0x27824d);if(_0x46a24a===_0x19e046(0x134))throw CliErrors['validation'](_0x19e046(0x16d),'Inspect\x20lovrabet\x20dataset\x20detail\x20--code\x20'+_0x27824d+_0x19e046(0x17d)+_0x5de7d8[_0x19e046(0x179)]+_0x19e046(0x164)+_0x27824d+_0x19e046(0x171));if(_0x46a24a!==_0x19e046(0x167))throw CliErrors[_0x19e046(0x13b)](_0x19e046(0x155),_0x19e046(0x14b));const _0x27f4dd=await buildExcelManifest({..._0x414c96,'mapping':_0x3ad60d,'fields':normalizeImportFields(_0x591ddd)}),_0x4239d2=await getDatasetImportContract(_0x5de7d8['appCode'],_0x27824d);assertImportContract(_0x4239d2,_0x5de7d8['appCode'],_0x27824d),assertImageImportCapability(_0x4239d2,_0x27f4dd);if(_0x27f4dd[_0x19e046(0x138)]?.[_0x19e046(0x14c)]){const _0x5b0d6b=await resolveImportOutputPath(_0x414c96['checkpoint']+'.rows.json'),_0x2edfba=await Promise['all']([_0x5b0d6b,_0x5b0d6b+_0x19e046(0x147),_0x5b0d6b+_0x19e046(0x141),_0x414c96[_0x19e046(0x157)]+_0x19e046(0x147),_0x414c96['checkpoint']+'.lock.recovery'][_0x19e046(0x14a)](resolveImportOutputPath));assertImportPaths(_0x414c96['checkpoint'],_0x414c96[_0x19e046(0x172)],[_0x414c96[_0x19e046(0x14d)],_0x414c96[_0x19e046(0x133)],..._0x2edfba[_0x19e046(0x13d)](0x0,0x3)]);}if(_0x414c96[_0x19e046(0x16e)]>_0x4239d2[_0x19e046(0x12f)])throw CliErrors['validation'](_0x19e046(0x137));return{'args':_0x414c96,'manifest':_0x27f4dd,'contract':_0x4239d2,'code':_0x27824d};}async function checked(_0x12e3f1){const _0x170e5d=a26_0x507c;try{return await _0x12e3f1();}catch(_0x154929){if(_0x154929 instanceof CliError)throw _0x154929;throw CliErrors[_0x170e5d(0x13b)](_0x154929[_0x170e5d(0x160)]||'Excel\x20import\x20failed.');}}function a26_0x3b7e(){const _0x349a03=['imageCells','JSON\x20file\x20mapping\x20Excel\x20headers\x20to\x20dataset\x20field\x20codes','num','emptyRows','message','See\x20','\x20invalid\x20cells.\x20No\x20records\x20were\x20written.','errors','\x20--code\x20','3bCBVSh','warnings','METADATA','/import-batch','27880DjJxqd','import-excel','11538585MsSGLp','str','DB_TABLE\x20datasets\x20use\x20the\x20existing\x20batchCreate\x20operation;\x20import-excel\x20only\x20supports\x20METADATA\x20datasets.','batchSize','sheet','Excel\x20contains\x20','\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.','report','some','.import-report.json','header-row','369336yqhHXt','8160030takDUO','.import-checkpoint.json','appCode','rows','size','all','.\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','5726148GpNIaj','Imported\x20and\x20verified\x20','boolean','toString','schemaVersion','reduce','177415QMCofZ','maxBatchSize','/client/','106RPUIqY','Maximum\x20records\x20per\x20request\x20(1..500)','mappingFile','DB_TABLE','Worksheet\x20name\x20or\x201-based\x20index\x20(default:\x20first\x20worksheet)','Header\x20row\x20must\x20be\x20positive\x20and\x20batch\x20size\x20must\x20be\x20between\x201\x20and\x20500.','Batch\x20size\x20exceeds\x20the\x20server\x20import\x20contract.','imageFields','231MXxqzl','values','validation','batch-size','slice','mapping','--file\x20and\x20--mapping\x20are\x20required.','write','.lock.recovery','object','hashes','POST','string','\x20records.','.lock','4819309lVKYGB','max','map','Run\x20dataset\x20detail\x20to\x20confirm\x20the\x20source.\x20Only\x20DB_TABLE\x20has\x20the\x20documented\x20alternative\x20batchCreate\x20route;\x20do\x20not\x20guess\x20or\x20automatically\x20switch\x20APIs.','length','file','10HwKkyc','rowNumber','number','schemaFingerprint','resume','Private\x20result\x20report\x20(default:\x20XLSX\x20path\x20plus\x20.import-report.json)','media','Dataset\x20source\x20is\x20missing\x20or\x20unsupported;\x20import-excel\x20requires\x20METADATA.','isInteger','checkpoint','Local\x20Excel\x20validation\x20only;\x20no\x20records\x20or\x20checkpoint\x20were\x20written.','Mapping\x20must\x20be\x20an\x20object\x20from\x20Excel\x20headers\x20to\x20field\x20codes.','utf8','1-based\x20Excel\x20header\x20row'];a26_0x3b7e=function(){return _0x349a03;};return a26_0x3b7e();}export const dataImportExcel={'service':'data','command':a26_0x36da7e(0x16a),'risk':a26_0x36da7e(0x140),'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':'Creates\x20real\x20dataset\x20records\x20immediately.\x20Keep\x20the\x20checkpoint\x20to\x20reconcile\x20and\x20resume\x20interrupted\x20imports.','flags':[CODE_FLAG,{'name':'file','type':'string','required':!![],'description':'Local\x20XLSX\x20file\x20(maximum\x2020\x20MB)'},{'name':a26_0x36da7e(0x13e),'type':a26_0x36da7e(0x145),'required':!![],'description':a26_0x36da7e(0x15d)},{'name':a26_0x36da7e(0x16f),'type':a26_0x36da7e(0x145),'description':a26_0x36da7e(0x135)},{'name':a26_0x36da7e(0x175),'type':a26_0x36da7e(0x150),'default':0x1,'description':a26_0x36da7e(0x15b)},{'name':'batch-size','type':a26_0x36da7e(0x150),'default':0x1f4,'description':a26_0x36da7e(0x132)},{'name':a26_0x36da7e(0x157),'type':a26_0x36da7e(0x145),'description':'Private\x20checkpoint\x20file\x20(default:\x20XLSX\x20path\x20plus\x20.import-checkpoint.json)'},{'name':'report','type':a26_0x36da7e(0x145),'description':a26_0x36da7e(0x153)},{'name':'resume','type':a26_0x36da7e(0x180),'description':'Reconcile\x20imported\x20records\x20and\x20resume\x20the\x20exact\x20original\x20file,\x20target\x20and\x20mapping'}],'validate':async _0x4ff058=>{input(_0x4ff058);},'dryRun':async _0x2309e5=>checked(async()=>{const _0x505f65=a26_0x36da7e,{args:_0x281755,manifest:_0x19e798,contract:_0x59d901,code:_0x3fd158}=await prepare(_0x2309e5),_0x5574c2=new Set(_0x19e798[_0x505f65(0x163)][_0x505f65(0x14a)](_0x2582b2=>_0x2582b2[_0x505f65(0x14f)]))['size'];return{'method':_0x505f65(0x144),'url':_0x505f65(0x130)+encodeURIComponent(_0x2309e5[_0x505f65(0x179)])+'/'+encodeURIComponent(_0x3fd158)+_0x505f65(0x168),'description':_0x505f65(0x158),'body':{'schemaFingerprint':_0x59d901['schemaFingerprint']},'validRows':Math[_0x505f65(0x149)](0x0,_0x19e798[_0x505f65(0x17a)][_0x505f65(0x14c)]-_0x5574c2),'invalidRows':_0x5574c2,'invalidCells':_0x19e798[_0x505f65(0x163)][_0x505f65(0x14c)],'emptyRows':_0x19e798[_0x505f65(0x15f)]['length'],'expectedBatches':previewImportBatchCount(_0x19e798,_0x59d901,_0x281755['batchSize']),'imageCount':_0x19e798[_0x505f65(0x15c)]?.[_0x505f65(0x12d)]((_0x3b7821,_0x70da08)=>_0x3b7821+_0x70da08[_0x505f65(0x143)]['length'],0x0)??0x0,'uniqueImages':_0x19e798[_0x505f65(0x154)]?.[_0x505f65(0x14c)]??0x0,'uniqueImageBytes':_0x19e798['media']?.[_0x505f65(0x12d)]((_0x3d2a31,_0x5e5a46)=>_0x3d2a31+_0x5e5a46[_0x505f65(0x17b)],0x0)??0x0,'errors':_0x19e798[_0x505f65(0x163)],'warnings':_0x19e798[_0x505f65(0x166)],'sheet':_0x19e798[_0x505f65(0x16f)],'checkpoint':_0x281755[_0x505f65(0x157)],'report':_0x281755[_0x505f65(0x172)]};}),'execute':async _0x37dd43=>checked(async()=>{const _0x3e734e=a26_0x36da7e,{args:_0x5cd364,manifest:_0x16b856,contract:_0x24ab1a,code:_0xf34eca}=await prepare(_0x37dd43);if(_0x16b856[_0x3e734e(0x163)][_0x3e734e(0x14c)]){await saveImportJson(_0x5cd364[_0x3e734e(0x172)],{'status':'invalid','sourceRows':_0x16b856[_0x3e734e(0x17a)][_0x3e734e(0x14c)],'errors':_0x16b856[_0x3e734e(0x163)],'emptyRows':_0x16b856[_0x3e734e(0x15f)],'warnings':_0x16b856['warnings']});throw CliErrors[_0x3e734e(0x13b)](_0x3e734e(0x170)+_0x16b856['errors'][_0x3e734e(0x14c)]+_0x3e734e(0x162),_0x3e734e(0x161)+_0x5cd364['report']+'.');}const _0x2abc16=_0x16b856[_0x3e734e(0x138)]?.[_0x3e734e(0x14c)]?runImageExcelImport:_0x24ab1a[_0x3e734e(0x182)]===0x2?runAutoIdExcelImport:runExcelImport,_0x4cec5e=await _0x2abc16({..._0x5cd364,'manifest':_0x16b856,'contract':_0x24ab1a,'appCode':_0x37dd43[_0x3e734e(0x179)],'datasetCode':_0xf34eca,'runtimeDomain':getRuntimeDomain(),'inputPaths':[_0x5cd364[_0x3e734e(0x14d)],_0x5cd364[_0x3e734e(0x133)]],'imageApi':{'upload':(_0x2e8ab2,_0x1e7962)=>uploadDatasetImportImage(_0x37dd43[_0x3e734e(0x179)],_0xf34eca,_0x2e8ab2,_0x1e7962),'readback':(_0x3c62f6,_0x181e12)=>readDatasetImportImage(_0x37dd43['appCode'],_0xf34eca,_0x3c62f6,_0x181e12)},'api':{'write':(_0xf02b0f,_0x16c73e)=>createDatasetImportBatch(_0x37dd43['appCode'],_0xf34eca,{'schemaFingerprint':_0x24ab1a[_0x3e734e(0x151)],'items':_0xf02b0f,..._0x16c73e===undefined?{}:{'taskId':_0x16c73e}}),'readback':_0x7a9283=>readDatasetImportRows(_0x37dd43[_0x3e734e(0x179)],_0xf34eca,_0x7a9283),'readTask':_0x39b132=>readDatasetImportTaskRows(_0x37dd43['appCode'],_0xf34eca,_0x39b132)}});return{'ok':!![],'data':_0x4cec5e,'message':_0x3e734e(0x17f)+_0x4cec5e['succeeded']+_0x3e734e(0x146)};})};