@lovrabet/lovrabet-cli 2.3.11-beta.1 → 2.3.11

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 (185) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/import-excel.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/issue/context.js +1 -1
  37. package/lib/commands/issue/index.js +1 -1
  38. package/lib/commands/issue/report.js +1 -1
  39. package/lib/commands/kb/index.js +1 -1
  40. package/lib/commands/logs/index.js +1 -1
  41. package/lib/commands/notification/config-list.js +1 -1
  42. package/lib/commands/notification/index.js +1 -1
  43. package/lib/commands/notification/shared.js +1 -1
  44. package/lib/commands/ocr/index.js +1 -1
  45. package/lib/commands/permit/dataset-get.js +1 -1
  46. package/lib/commands/permit/dataset-set.js +1 -1
  47. package/lib/commands/permit/index.js +1 -1
  48. package/lib/commands/permit/page-get.js +1 -1
  49. package/lib/commands/permit/page-set.js +1 -1
  50. package/lib/commands/permit/role-menus-set.js +1 -1
  51. package/lib/commands/permit/role-menus.js +1 -1
  52. package/lib/commands/permit/shared.js +1 -1
  53. package/lib/commands/personal-bff/index.js +1 -1
  54. package/lib/commands/registry.js +1 -1
  55. package/lib/commands/role/create.js +1 -1
  56. package/lib/commands/role/delete.js +1 -1
  57. package/lib/commands/role/detail.js +1 -1
  58. package/lib/commands/role/index.js +1 -1
  59. package/lib/commands/role/list.js +1 -1
  60. package/lib/commands/role/shared.js +1 -1
  61. package/lib/commands/role/update.js +1 -1
  62. package/lib/commands/role/user-add.js +1 -1
  63. package/lib/commands/role/user-remove.js +1 -1
  64. package/lib/commands/schedule/index.js +1 -1
  65. package/lib/commands/schema.js +1 -1
  66. package/lib/commands/service/dynamic.js +1 -1
  67. package/lib/commands/service/function-name-adapter.js +1 -1
  68. package/lib/commands/service/index.js +1 -1
  69. package/lib/commands/service/registry.js +1 -1
  70. package/lib/commands/skill/commands/create.js +1 -1
  71. package/lib/commands/skill/commands/diagram.js +1 -1
  72. package/lib/commands/skill/commands/install.js +1 -1
  73. package/lib/commands/skill/commands/list.js +1 -1
  74. package/lib/commands/skill/commands/push.js +1 -1
  75. package/lib/commands/skill/commands/validate.js +1 -1
  76. package/lib/commands/skill/diagram.js +1 -1
  77. package/lib/commands/skill/flags.js +1 -1
  78. package/lib/commands/skill/index.js +1 -1
  79. package/lib/commands/skill/manifest-helpers.js +1 -1
  80. package/lib/commands/skill/push-execute.js +1 -1
  81. package/lib/commands/skill/push-flow-helpers.js +1 -1
  82. package/lib/commands/skill/push-retarget.js +1 -1
  83. package/lib/commands/skill/scopes.js +1 -1
  84. package/lib/commands/skill/summary.js +1 -1
  85. package/lib/commands/skill/templates.js +1 -1
  86. package/lib/commands/skill/validate.js +1 -1
  87. package/lib/commands/sql/detail.js +1 -1
  88. package/lib/commands/sql/exec.js +1 -1
  89. package/lib/commands/sql/index.js +1 -1
  90. package/lib/commands/update.js +1 -1
  91. package/lib/commands/user-account/bind.js +1 -1
  92. package/lib/commands/user-account/index.js +1 -1
  93. package/lib/commands/workspace/index.js +1 -1
  94. package/lib/config/domain-config.js +1 -1
  95. package/lib/config/schema.js +1 -1
  96. package/lib/constant/app.js +1 -1
  97. package/lib/constant/auth-mode.js +1 -1
  98. package/lib/constant/cli.js +1 -1
  99. package/lib/constant/defaults.js +1 -1
  100. package/lib/constant/distribution.js +1 -1
  101. package/lib/constant/domain.js +1 -1
  102. package/lib/constant/env.js +1 -1
  103. package/lib/constant/output.js +1 -1
  104. package/lib/constant/product.js +1 -1
  105. package/lib/constant/region.js +1 -1
  106. package/lib/constant/risk.js +1 -1
  107. package/lib/constant/url.js +1 -1
  108. package/lib/context.js +1 -1
  109. package/lib/core/api-client.js +1 -1
  110. package/lib/core/db-resolver.js +1 -1
  111. package/lib/core/kb-management-client.js +1 -1
  112. package/lib/core/kb-sdk-errors.js +1 -1
  113. package/lib/core/kb-search-client.js +1 -1
  114. package/lib/core/sdk-client.js +1 -1
  115. package/lib/errors.js +1 -1
  116. package/lib/framework/access-error.js +1 -1
  117. package/lib/framework/build-all-flags.js +1 -1
  118. package/lib/framework/dryrun.js +1 -1
  119. package/lib/framework/flags.js +1 -1
  120. package/lib/framework/help.js +1 -1
  121. package/lib/framework/index.js +1 -1
  122. package/lib/framework/output.js +1 -1
  123. package/lib/framework/preparse.js +1 -1
  124. package/lib/framework/rate-limit.js +1 -1
  125. package/lib/framework/raw-flags.js +1 -1
  126. package/lib/framework/response.js +1 -1
  127. package/lib/framework/runner-confirmation.js +1 -1
  128. package/lib/framework/runner-error.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/service-order.js +1 -1
  132. package/lib/framework/types.js +1 -1
  133. package/lib/generated/build-info.d.ts +4 -4
  134. package/lib/generated/build-info.js +1 -1
  135. package/lib/generated/official-routing.js +1 -1
  136. package/lib/generated/routing-contract.js +1 -1
  137. package/lib/help.js +1 -1
  138. package/lib/postinstall.js +1 -1
  139. package/lib/runtime/confirmation.js +1 -1
  140. package/lib/runtime/event.js +1 -1
  141. package/lib/runtime/index.js +1 -1
  142. package/lib/runtime/queue.js +1 -1
  143. package/lib/runtime/resolve.js +1 -1
  144. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  145. package/lib/services/dataset-import/excel-reader.js +1 -1
  146. package/lib/services/dataset-import/image-bytes.js +1 -1
  147. package/lib/services/dataset-import/image-ooxml.js +1 -1
  148. package/lib/services/dataset-import/image-runner.js +1 -1
  149. package/lib/services/dataset-import/metadata.js +1 -1
  150. package/lib/services/dataset-import/preview.js +1 -1
  151. package/lib/services/dataset-import/runner.js +1 -1
  152. package/lib/skills/builtin-skill.js +1 -1
  153. package/lib/skills/npx-skills-add.js +1 -1
  154. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  155. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  156. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  157. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  158. package/lib/skills/runtime-skill-sync/links.js +1 -1
  159. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  160. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  161. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  162. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  163. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  164. package/lib/skills/runtime-skill-sync/push.js +1 -1
  165. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  166. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  167. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  168. package/lib/skills/runtime-skill-sync.js +1 -1
  169. package/lib/skills/skill-presence.js +1 -1
  170. package/lib/utils/access-key-redaction.js +1 -1
  171. package/lib/utils/apply-jq-filter.js +1 -1
  172. package/lib/utils/cli-version-check.js +1 -1
  173. package/lib/utils/cli-version-policy.js +1 -1
  174. package/lib/utils/logger.js +1 -1
  175. package/lib/utils/lossless-json.js +1 -1
  176. package/lib/utils/params.js +1 -1
  177. package/lib/utils/positive-safe-integer.js +1 -1
  178. package/lib/utils/redaction.js +1 -1
  179. package/lib/utils/runtime-user-id.js +1 -1
  180. package/lib/utils/update-notice.js +1 -1
  181. package/lib/utils/version.js +1 -1
  182. package/lib/utils/write-cli-side-channel.js +1 -1
  183. package/package.json +1 -1
  184. package/skills/lovrabet/SKILL.md +1 -1
  185. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a13_0x21f73a=a13_0x2f8a;(function(_0x4cb5b1,_0x39bdf3){const _0x1c316b=a13_0x2f8a,_0x281f39=_0x4cb5b1();while(!![]){try{const _0x4ad9a2=parseInt(_0x1c316b(0x14e))/0x1*(-parseInt(_0x1c316b(0x175))/0x2)+-parseInt(_0x1c316b(0x169))/0x3+-parseInt(_0x1c316b(0x12c))/0x4*(parseInt(_0x1c316b(0x13b))/0x5)+parseInt(_0x1c316b(0x144))/0x6+-parseInt(_0x1c316b(0x167))/0x7+parseInt(_0x1c316b(0x179))/0x8+parseInt(_0x1c316b(0x154))/0x9*(parseInt(_0x1c316b(0x172))/0xa);if(_0x4ad9a2===_0x39bdf3)break;else _0x281f39['push'](_0x281f39['shift']());}catch(_0x130231){_0x281f39['push'](_0x281f39['shift']());}}}(a13_0x1de1,0x20920));import{readScopedConfig,writeScopedConfig}from'../../context.js';function a13_0x2f8a(_0x30e915,_0x368152){_0x30e915=_0x30e915-0x124;const _0x1de18c=a13_0x1de1();let _0x2f8abc=_0x1de18c[_0x30e915];return _0x2f8abc;}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';function a13_0x1de1(){const _0x3fcc2d=['Use\x20`','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','AccessKey:\x20','global\x20config','push','101118XZLtxB','str','access_key','\x20config.\x20Nothing\x20to\x20clear.','Shorthand\x20for\x20--access-key','trim','logout','Device\x20authorization\x20completed.','auth','\x20Verify:\x20','114951PfDaLS','ClientAk','string','Clear\x20from\x20global\x20config\x20(default)','development','write','5679TjOwHM','access-key','project','ACCESS_KEY','(not\x20set)','scope','global','AccessKey\x20cleared\x20from\x20','production','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','userCenterDisplayName','info','test','join','stdin','status','\x20\x20export\x20','authRequired','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','1306417oKugRs','code','51567tmMwHZ','Write\x20to\x20global\x20config\x20(default)','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','bool','Clear\x20the\x20user\x20AccessKey\x20from\x20config','Show\x20current\x20authentication\x20status','yes','newConfigFileName','\x20config.','6550qQsHAC','Option\x20C:\x20environment\x20variable','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','4vSianM','Environment:\x20','success','Tip:\x20you\x20can\x20also\x20run:','1161416eDHzrT','Read\x20from\x20global\x20config\x20(default)','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','envName','Status:\x20configured\x20(not\x20remotely\x20verified)','\x20auth\x20login\x20--access-key\x20<ak_xxx>','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','Auth\x20mode:\x20','expired','Option\x20B:\x20apps\x20config\x20(','login','isTTY','env','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','validation','`auth\x20login`\x20does\x20not\x20support\x20--yes.','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','32820maciRr','stdout','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','=ak_xxx','\x20(via\x20','read','accessKeyCreatePath','check','Option\x20A:\x20','boolean','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Then\x20verify\x20with:\x20','accessKey','Invalid\x20accessKey\x20format.','Save\x20the\x20user\x20AccessKey\x20(global\x20by\x20default;\x20--project\x20for\x20project\x20config)','5GfpWyR','nonInteractive','\x20auth\x20status','global-default'];a13_0x1de1=function(){return _0x3fcc2d;};return a13_0x1de1();}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(_0x60c98b=USER_ACCESS_KEY_CREATE_URL){const _0x5792f0=a13_0x2f8a;writeCliSideChannelLine(_0x5792f0(0x140)+PRODUCT_CONFIG[_0x5792f0(0x15e)]+':'),writeCliSideChannelLine('\x0a'+_0x60c98b+'\x0a'),writeCliSideChannelLine(_0x5792f0(0x178)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x5792f0(0x17e));}function buildAccessKeySetupGuide(_0x422c97=USER_ACCESS_KEY_CREATE_URL){const _0xd22a9=a13_0x2f8a;return[_0xd22a9(0x140)+PRODUCT_CONFIG[_0xd22a9(0x15e)]+':',_0x422c97,_0xd22a9(0x166)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]'][_0xd22a9(0x161)]('\x0a');}function canPromptForAccessKey(_0x31b320){const _0x2c0ca9=a13_0x2f8a;return!_0x31b320['nonInteractive']&&process[_0x2c0ca9(0x162)][_0x2c0ca9(0x126)]!==![]&&process[_0x2c0ca9(0x12d)]['isTTY']!==![];}function resolveAuthScopeFlags(_0x1224a9){const _0x532e15=a13_0x2f8a;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x1224a9[_0x532e15(0x16c)]('global'),'explicitProject':_0x1224a9[_0x532e15(0x16c)](_0x532e15(0x156)),'policy':_0x532e15(0x13e)}));}async function resolveAuthWriteInput(_0xc1d51e){const _0x375b02=a13_0x2f8a;let _0x30f654=(_0xc1d51e[_0x375b02(0x145)](_0x375b02(0x155))||_0xc1d51e[_0x375b02(0x145)]('ak')||'')[_0x375b02(0x149)]();const _0x5c700d=(_0xc1d51e[_0x375b02(0x145)](_0x375b02(0x127))||'')[_0x375b02(0x149)](),_0x21ad66=''+getUserDomain()+PRODUCT_CONFIG[_0x375b02(0x132)];if(!_0x30f654&&canPromptForAccessKey(_0xc1d51e))try{showAccessKeyCreateHint(_0x21ad66),_0x30f654=await promptAccessKey('');}catch(_0x445cb4){if(isAbortPrompt(_0x445cb4))throw CliErrors['cancelled']();throw _0x445cb4;}if(!_0x30f654)throw CliErrors[_0x375b02(0x129)]('Missing\x20accessKey.',buildAccessKeySetupGuide(_0x21ad66));if(!ACCESS_KEY_PATTERN[_0x375b02(0x160)](_0x30f654))throw CliErrors[_0x375b02(0x129)](_0x375b02(0x139),_0x375b02(0x17f));if(!_0x5c700d)return{'accessKey':_0x30f654};const _0x49984e=normalizeEnv(_0x5c700d);return{'accessKey':_0x30f654,'env':isDaily(_0x49984e)?'daily':isDev(_0x49984e)?_0x375b02(0x152):_0x375b02(0x15c)};}export const authDefinitions=[{'service':'auth','command':a13_0x21f73a(0x125),'description':a13_0x21f73a(0x13a),'risk':a13_0x21f73a(0x153),'confirmationDescription':'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.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a13_0x21f73a(0x150),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a13_0x21f73a(0x150),'description':a13_0x21f73a(0x148)},{'name':'global','type':a13_0x21f73a(0x135),'description':a13_0x21f73a(0x16a),'default':!![]},{'name':'project','type':'boolean','description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x166bcf){const _0x174764=a13_0x21f73a;if(_0x166bcf[_0x174764(0x16c)](_0x174764(0x16f)))throw CliErrors['validation'](_0x174764(0x12a),_0x174764(0x13f)+CLI_BIN_NAME+_0x174764(0x15d)+CLI_BIN_NAME+_0x174764(0x174));const _0x2c028a=(_0x166bcf['str'](_0x174764(0x155))||_0x166bcf[_0x174764(0x145)]('ak')||'')[_0x174764(0x149)]();if(!_0x2c028a&&_0x166bcf[_0x174764(0x13c)])return{'ok':!![],'message':buildAccessKeySetupGuide(''+getUserDomain()+PRODUCT_CONFIG['accessKeyCreatePath'])};const _0x24c8b4=await resolveAuthWriteInput(_0x166bcf),_0x3c0b0d=resolveAuthScopeFlags(_0x166bcf),_0x5c2572=readScopedConfig(_0x3c0b0d);_0x5c2572[_0x174764(0x138)]=_0x24c8b4[_0x174764(0x138)];_0x24c8b4[_0x174764(0x127)]&&(_0x5c2572[_0x174764(0x127)]=_0x24c8b4[_0x174764(0x127)]);writeScopedConfig(_0x5c2572,_0x3c0b0d);const _0x32714f=_0x3c0b0d[_0x174764(0x15a)]?'global':'project',_0x5830c3=_0x5c2572[_0x174764(0x127)]?'\x20Current\x20env:\x20'+_0x5c2572[_0x174764(0x127)]+'.':'';return{'ok':!![],'message':'AccessKey\x20saved\x20to\x20'+_0x32714f+_0x174764(0x171)+_0x5830c3+_0x174764(0x14d)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a13_0x21f73a(0x14c),'command':a13_0x21f73a(0x14a),'description':a13_0x21f73a(0x16d),'risk':a13_0x21f73a(0x153),'confirmationDescription':'Removes\x20the\x20user\x20AccessKey\x20from\x20the\x20selected\x20Lovrabet\x20config.\x20Credentials\x20in\x20another\x20scope\x20or\x20environment\x20variables\x20are\x20unchanged.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x21f73a(0x15a),'type':a13_0x21f73a(0x135),'description':a13_0x21f73a(0x151),'default':!![]},{'name':a13_0x21f73a(0x156),'type':a13_0x21f73a(0x135),'description':a13_0x21f73a(0x17b),'default':![]}],async 'execute'(_0x305802){const _0x1a3273=a13_0x21f73a,_0x23de4d=resolveAuthScopeFlags(_0x305802),_0xbb7bc1=readScopedConfig(_0x23de4d),_0xf6cfba=!!_0xbb7bc1[_0x1a3273(0x138)];delete _0xbb7bc1[_0x1a3273(0x138)],writeScopedConfig(_0xbb7bc1,_0x23de4d);const _0x52e364=_0x23de4d[_0x1a3273(0x15a)]?_0x1a3273(0x15a):_0x1a3273(0x156);if(_0xf6cfba)return{'ok':!![],'message':_0x1a3273(0x15b)+_0x52e364+_0x1a3273(0x171)};return{'ok':!![],'message':'No\x20AccessKey\x20found\x20in\x20'+_0x52e364+_0x1a3273(0x147)};}},{'service':a13_0x21f73a(0x14c),'command':a13_0x21f73a(0x163),'description':a13_0x21f73a(0x16e),'risk':a13_0x21f73a(0x131),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x21f73a(0x15a),'type':'boolean','description':a13_0x21f73a(0x17a),'default':!![]},{'name':a13_0x21f73a(0x156),'type':a13_0x21f73a(0x135),'description':a13_0x21f73a(0x136),'default':![]},{'name':a13_0x21f73a(0x133),'type':a13_0x21f73a(0x135),'description':a13_0x21f73a(0x128),'default':![]}],async 'execute'(_0x56e482){const _0x124eab=a13_0x21f73a,_0x1100b1=resolveAuthScopeFlags(_0x56e482),_0x3341e8=readScopedConfig(_0x1100b1),_0x2341d1=productEnvName(_0x124eab(0x157)),_0x29df69=_0x56e482[_0x124eab(0x138)],_0x139117=_0x56e482['accessKeySource'],_0x2b4607=['Auth\x20mode:\x20'+AUTH_MODE[_0x124eab(0x14f)]];if(_0x56e482[_0x124eab(0x17c)]&&!isProduction(_0x56e482[_0x124eab(0x17c)]))_0x2b4607[_0x124eab(0x143)](_0x124eab(0x176)+_0x56e482[_0x124eab(0x17c)]);_0x2b4607['push']('Stored\x20AccessKey\x20('+(_0x1100b1[_0x124eab(0x15a)]?'global':_0x124eab(0x156))+'\x20config):\x20'+(_0x3341e8[_0x124eab(0x138)]?maskCliAccessKey(_0x3341e8[_0x124eab(0x138)]):_0x124eab(0x158)));if(_0x29df69){const _0x1a83bf=maskCliAccessKey(_0x29df69);_0x2b4607['push'](_0x124eab(0x141)+_0x1a83bf+(_0x139117?_0x124eab(0x130)+_0x139117+')':'')),_0x2b4607[_0x124eab(0x143)](_0x124eab(0x17d));}if(!_0x29df69){_0x2b4607[_0x124eab(0x143)](''),_0x2b4607[_0x124eab(0x143)](_0x124eab(0x12b)),_0x2b4607[_0x124eab(0x143)](''),_0x2b4607['push'](_0x124eab(0x134)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x2b4607[_0x124eab(0x143)](''),_0x2b4607['push'](_0x124eab(0x124)+PRODUCT_CONFIG[_0x124eab(0x170)]+')'),_0x2b4607[_0x124eab(0x143)](_0x124eab(0x12e)),_0x2b4607[_0x124eab(0x143)](''),_0x2b4607[_0x124eab(0x143)](_0x124eab(0x173)),_0x2b4607[_0x124eab(0x143)](_0x124eab(0x164)+_0x2341d1+_0x124eab(0x12f)),_0x2b4607[_0x124eab(0x143)](''),_0x2b4607['push'](_0x124eab(0x137)+CLI_BIN_NAME+_0x124eab(0x13d)),_0x2b4607[_0x124eab(0x143)](_0x124eab(0x16b)+CLI_BIN_NAME+'\x20doctor');if(_0x56e482[_0x124eab(0x16c)](_0x124eab(0x133))){const _0xc62904=readStoredDeviceCode();if(_0xc62904&&!isStoredDeviceCodeExpired(_0xc62904)){const _0x2017ba=getUserDomain(),_0x524ed8=await fetchDeviceToken(_0x2017ba,_0xc62904[_0x124eab(0x168)]);if(_0x524ed8['status']===_0x124eab(0x177)&&_0x524ed8[_0x124eab(0x146)]){const _0x570723={'global':_0xc62904[_0x124eab(0x159)]===_0x124eab(0x15a)},_0x1cc9b7=readScopedConfig(_0x570723);_0x1cc9b7[_0x124eab(0x138)]=_0x524ed8[_0x124eab(0x146)],writeScopedConfig(_0x1cc9b7,_0x570723),deleteStoredDeviceCode();const _0x49acb2=_0x524ed8[_0x124eab(0x146)],_0x385d45=maskCliAccessKey(_0x49acb2),_0x2a9da7=_0xc62904['scope']===_0x124eab(0x15a)?_0x124eab(0x142):'project\x20config';return{'ok':!![],'message':[_0x124eab(0x181)+AUTH_MODE[_0x124eab(0x14f)],..._0x56e482[_0x124eab(0x17c)]&&!isProduction(_0x56e482[_0x124eab(0x17c)])?[_0x124eab(0x176)+_0x56e482[_0x124eab(0x17c)]]:[],_0x124eab(0x141)+_0x385d45+_0x124eab(0x130)+_0x2a9da7+')',_0x124eab(0x17d),_0x124eab(0x14b)]['join']('\x0a')};}_0x524ed8['status']===_0x124eab(0x182)&&deleteStoredDeviceCode();throw CliErrors[_0x124eab(0x165)](_0x124eab(0x180));}throw CliErrors['authRequired'](_0x2b4607['join']('\x0a'));}}return{'ok':!![],'message':_0x2b4607[_0x124eab(0x161)]('\x0a')};}},{'service':a13_0x21f73a(0x14c),'command':a13_0x21f73a(0x15f),'description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0xf8f5be){const _0x5e5a12=a13_0x21f73a,_0x582947=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x582947,'meta':{'env':_0xf8f5be[_0x5e5a12(0x17c)]??'production'}}};}},authDeviceDefinition];
1
+ const a13_0x52ae40=a13_0x9322;function a13_0x9322(_0xcbde64,_0x108b16){_0xcbde64=_0xcbde64-0x10f;const _0x5228fa=a13_0x5228();let _0x932286=_0x5228fa[_0xcbde64];return _0x932286;}(function(_0x6923f3,_0x51d230){const _0x55501d=a13_0x9322,_0x1b1520=_0x6923f3();while(!![]){try{const _0x385f35=parseInt(_0x55501d(0x15a))/0x1+-parseInt(_0x55501d(0x119))/0x2*(-parseInt(_0x55501d(0x132))/0x3)+-parseInt(_0x55501d(0x149))/0x4*(parseInt(_0x55501d(0x154))/0x5)+-parseInt(_0x55501d(0x118))/0x6+parseInt(_0x55501d(0x122))/0x7*(parseInt(_0x55501d(0x13f))/0x8)+-parseInt(_0x55501d(0x16a))/0x9*(parseInt(_0x55501d(0x144))/0xa)+-parseInt(_0x55501d(0x128))/0xb*(-parseInt(_0x55501d(0x162))/0xc);if(_0x385f35===_0x51d230)break;else _0x1b1520['push'](_0x1b1520['shift']());}catch(_0x3612f5){_0x1b1520['push'](_0x1b1520['shift']());}}}(a13_0x5228,0x48413));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(_0x17c827=USER_ACCESS_KEY_CREATE_URL){const _0xf8a7aa=a13_0x9322;writeCliSideChannelLine(_0xf8a7aa(0x156)+PRODUCT_CONFIG[_0xf8a7aa(0x13b)]+':'),writeCliSideChannelLine('\x0a'+_0x17c827+'\x0a'),writeCliSideChannelLine('Tip:\x20you\x20can\x20also\x20run:'),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0xf8a7aa(0x11c));}function buildAccessKeySetupGuide(_0x7d769a=USER_ACCESS_KEY_CREATE_URL){const _0x344465=a13_0x9322;return[_0x344465(0x156)+PRODUCT_CONFIG['userCenterDisplayName']+':',_0x7d769a,_0x344465(0x126)+CLI_BIN_NAME+_0x344465(0x142)][_0x344465(0x14c)]('\x0a');}function canPromptForAccessKey(_0x2e7ea0){const _0x55aa37=a13_0x9322;return!_0x2e7ea0['nonInteractive']&&process['stdin'][_0x55aa37(0x12c)]!==![]&&process['stdout']['isTTY']!==![];}function a13_0x5228(){const _0x2a1013=['info','production','Stored\x20AccessKey\x20(','AccessKey\x20saved\x20to\x20','daily','1572FpJzfY','str','boolean','nonInteractive','env','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','code','Option\x20B:\x20apps\x20config\x20(','18ijbUEh','ClientAk','Missing\x20accessKey.','accessKey','write','project\x20config','AccessKey\x20(ak_xxx...)','global','access_key','Shorthand\x20for\x20--access-key','2611824gtKpjp','14316JKoRZE','\x20doctor','accessKeySource','\x20auth\x20login\x20--access-key\x20<ak_xxx>','=ak_xxx','Show\x20current\x20authentication\x20status','project','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','read','733117PsLdCH','Status:\x20configured\x20(not\x20remotely\x20verified)','success','Option\x20A:\x20','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','Environment:\x20','8503oUATUU','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Write\x20to\x20global\x20config\x20(default)','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','isTTY','\x20auth\x20status','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','\x20config.','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','authRequired','243ZqEMoL','scope','\x20Verify:\x20','global\x20config','envName','\x20(via\x20','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','access-key','development','userCenterDisplayName','auth','push','\x20Current\x20env:\x20','40nDzVia','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','No\x20AccessKey\x20found\x20in\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','login','2094810vgvfMv','accessKeyCreatePath','Option\x20C:\x20environment\x20variable','cancelled','\x20config.\x20Nothing\x20to\x20clear.','1604692xeOdkn','AccessKey:\x20','bool','join','check','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','trim','validation','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.','(not\x20set)','Use\x20`','5KUslaS','`auth\x20login`\x20does\x20not\x20support\x20--yes.','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','Auth\x20mode:\x20','global-default','status','346678XDWNoc','string','yes'];a13_0x5228=function(){return _0x2a1013;};return a13_0x5228();}function resolveAuthScopeFlags(_0x7b372c){const _0x412d90=a13_0x9322;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x7b372c[_0x412d90(0x14b)]('global'),'explicitProject':_0x7b372c['bool'](_0x412d90(0x11f)),'policy':_0x412d90(0x158)}));}async function resolveAuthWriteInput(_0x3b867f){const _0x53b796=a13_0x9322;let _0x3cb680=(_0x3b867f['str'](_0x53b796(0x139))||_0x3b867f[_0x53b796(0x163)]('ak')||'')[_0x53b796(0x14f)]();const _0x354a10=(_0x3b867f[_0x53b796(0x163)]('env')||'')['trim'](),_0x44ebc5=''+getUserDomain()+PRODUCT_CONFIG['accessKeyCreatePath'];if(!_0x3cb680&&canPromptForAccessKey(_0x3b867f))try{showAccessKeyCreateHint(_0x44ebc5),_0x3cb680=await promptAccessKey('');}catch(_0x49f6fc){if(isAbortPrompt(_0x49f6fc))throw CliErrors[_0x53b796(0x147)]();throw _0x49f6fc;}if(!_0x3cb680)throw CliErrors[_0x53b796(0x150)](_0x53b796(0x110),buildAccessKeySetupGuide(_0x44ebc5));if(!ACCESS_KEY_PATTERN['test'](_0x3cb680))throw CliErrors['validation']('Invalid\x20accessKey\x20format.','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars');if(!_0x354a10)return{'accessKey':_0x3cb680};const _0x88d6e5=normalizeEnv(_0x354a10);return{'accessKey':_0x3cb680,'env':isDaily(_0x88d6e5)?_0x53b796(0x161):isDev(_0x88d6e5)?_0x53b796(0x13a):_0x53b796(0x15e)};}export const authDefinitions=[{'service':a13_0x52ae40(0x13c),'command':a13_0x52ae40(0x143),'description':'Save\x20the\x20user\x20AccessKey\x20(global\x20by\x20default;\x20--project\x20for\x20project\x20config)','risk':a13_0x52ae40(0x112),'confirmationDescription':a13_0x52ae40(0x151),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x52ae40(0x139),'type':a13_0x52ae40(0x15b),'description':a13_0x52ae40(0x114)},{'name':'ak','type':a13_0x52ae40(0x15b),'description':a13_0x52ae40(0x117)},{'name':'global','type':a13_0x52ae40(0x164),'description':a13_0x52ae40(0x12a),'default':!![]},{'name':a13_0x52ae40(0x11f),'type':a13_0x52ae40(0x164),'description':a13_0x52ae40(0x14e),'default':![]}],async 'execute'(_0x1f010f){const _0x4ac620=a13_0x52ae40;if(_0x1f010f[_0x4ac620(0x14b)](_0x4ac620(0x15c)))throw CliErrors[_0x4ac620(0x150)](_0x4ac620(0x155),_0x4ac620(0x153)+CLI_BIN_NAME+'\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`'+CLI_BIN_NAME+_0x4ac620(0x130));const _0x518dd6=(_0x1f010f[_0x4ac620(0x163)](_0x4ac620(0x139))||_0x1f010f[_0x4ac620(0x163)]('ak')||'')[_0x4ac620(0x14f)]();if(!_0x518dd6&&_0x1f010f[_0x4ac620(0x165)])return{'ok':!![],'message':buildAccessKeySetupGuide(''+getUserDomain()+PRODUCT_CONFIG[_0x4ac620(0x145)])};const _0x4fba37=await resolveAuthWriteInput(_0x1f010f),_0x225a4c=resolveAuthScopeFlags(_0x1f010f),_0x19786f=readScopedConfig(_0x225a4c);_0x19786f[_0x4ac620(0x111)]=_0x4fba37[_0x4ac620(0x111)];_0x4fba37[_0x4ac620(0x166)]&&(_0x19786f[_0x4ac620(0x166)]=_0x4fba37['env']);writeScopedConfig(_0x19786f,_0x225a4c);const _0x1018ac=_0x225a4c[_0x4ac620(0x115)]?_0x4ac620(0x115):_0x4ac620(0x11f),_0x51ce85=_0x19786f[_0x4ac620(0x166)]?_0x4ac620(0x13e)+_0x19786f[_0x4ac620(0x166)]+'.':'';return{'ok':!![],'message':_0x4ac620(0x160)+_0x1018ac+_0x4ac620(0x12f)+_0x51ce85+_0x4ac620(0x134)+CLI_BIN_NAME+_0x4ac620(0x12d)};}},{'service':a13_0x52ae40(0x13c),'command':'logout','description':'Clear\x20the\x20user\x20AccessKey\x20from\x20config','risk':a13_0x52ae40(0x112),'confirmationDescription':'Removes\x20the\x20user\x20AccessKey\x20from\x20the\x20selected\x20Lovrabet\x20config.\x20Credentials\x20in\x20another\x20scope\x20or\x20environment\x20variables\x20are\x20unchanged.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x52ae40(0x115),'type':a13_0x52ae40(0x164),'description':'Clear\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a13_0x52ae40(0x11f),'type':a13_0x52ae40(0x164),'description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x3fbd82){const _0x213152=a13_0x52ae40,_0x4698ea=resolveAuthScopeFlags(_0x3fbd82),_0x30f580=readScopedConfig(_0x4698ea),_0x41bad7=!!_0x30f580['accessKey'];delete _0x30f580[_0x213152(0x111)],writeScopedConfig(_0x30f580,_0x4698ea);const _0x1a04fd=_0x4698ea['global']?'global':_0x213152(0x11f);if(_0x41bad7)return{'ok':!![],'message':'AccessKey\x20cleared\x20from\x20'+_0x1a04fd+'\x20config.'};return{'ok':!![],'message':_0x213152(0x141)+_0x1a04fd+_0x213152(0x148)};}},{'service':a13_0x52ae40(0x13c),'command':a13_0x52ae40(0x159),'description':a13_0x52ae40(0x11e),'risk':a13_0x52ae40(0x121),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x52ae40(0x115),'type':a13_0x52ae40(0x164),'description':'Read\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a13_0x52ae40(0x11f),'type':a13_0x52ae40(0x164),'description':a13_0x52ae40(0x129),'default':![]},{'name':a13_0x52ae40(0x14d),'type':a13_0x52ae40(0x164),'description':a13_0x52ae40(0x120),'default':![]}],async 'execute'(_0x71ec09){const _0x4e5244=a13_0x52ae40,_0x3cf6df=resolveAuthScopeFlags(_0x71ec09),_0x442fff=readScopedConfig(_0x3cf6df),_0x24b5b1=productEnvName('ACCESS_KEY'),_0x213f17=_0x71ec09[_0x4e5244(0x111)],_0x3a2df2=_0x71ec09[_0x4e5244(0x11b)],_0x1b0087=[_0x4e5244(0x157)+AUTH_MODE[_0x4e5244(0x10f)]];if(_0x71ec09[_0x4e5244(0x136)]&&!isProduction(_0x71ec09[_0x4e5244(0x136)]))_0x1b0087[_0x4e5244(0x13d)](_0x4e5244(0x127)+_0x71ec09['envName']);_0x1b0087[_0x4e5244(0x13d)](_0x4e5244(0x15f)+(_0x3cf6df['global']?_0x4e5244(0x115):_0x4e5244(0x11f))+'\x20config):\x20'+(_0x442fff[_0x4e5244(0x111)]?maskCliAccessKey(_0x442fff[_0x4e5244(0x111)]):_0x4e5244(0x152)));if(_0x213f17){const _0x58b114=maskCliAccessKey(_0x213f17);_0x1b0087[_0x4e5244(0x13d)](_0x4e5244(0x14a)+_0x58b114+(_0x3a2df2?'\x20(via\x20'+_0x3a2df2+')':'')),_0x1b0087[_0x4e5244(0x13d)](_0x4e5244(0x123));}if(!_0x213f17){_0x1b0087[_0x4e5244(0x13d)](''),_0x1b0087[_0x4e5244(0x13d)](_0x4e5244(0x12e)),_0x1b0087[_0x4e5244(0x13d)](''),_0x1b0087[_0x4e5244(0x13d)](_0x4e5244(0x125)+CLI_BIN_NAME+_0x4e5244(0x12b)),_0x1b0087['push'](''),_0x1b0087[_0x4e5244(0x13d)](_0x4e5244(0x169)+PRODUCT_CONFIG['newConfigFileName']+')'),_0x1b0087[_0x4e5244(0x13d)]('{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}'),_0x1b0087['push'](''),_0x1b0087[_0x4e5244(0x13d)](_0x4e5244(0x146)),_0x1b0087[_0x4e5244(0x13d)]('\x20\x20export\x20'+_0x24b5b1+_0x4e5244(0x11d)),_0x1b0087[_0x4e5244(0x13d)](''),_0x1b0087[_0x4e5244(0x13d)]('Then\x20verify\x20with:\x20'+CLI_BIN_NAME+'\x20auth\x20status'),_0x1b0087[_0x4e5244(0x13d)](_0x4e5244(0x167)+CLI_BIN_NAME+_0x4e5244(0x11a));if(_0x71ec09['bool'](_0x4e5244(0x14d))){const _0x3a6207=readStoredDeviceCode();if(_0x3a6207&&!isStoredDeviceCodeExpired(_0x3a6207)){const _0x4a6eda=getUserDomain(),_0x354450=await fetchDeviceToken(_0x4a6eda,_0x3a6207[_0x4e5244(0x168)]);if(_0x354450[_0x4e5244(0x159)]===_0x4e5244(0x124)&&_0x354450[_0x4e5244(0x116)]){const _0x4eabde={'global':_0x3a6207['scope']==='global'},_0x477a6a=readScopedConfig(_0x4eabde);_0x477a6a[_0x4e5244(0x111)]=_0x354450[_0x4e5244(0x116)],writeScopedConfig(_0x477a6a,_0x4eabde),deleteStoredDeviceCode();const _0x276020=_0x354450[_0x4e5244(0x116)],_0x39944e=maskCliAccessKey(_0x276020),_0x304a66=_0x3a6207[_0x4e5244(0x133)]===_0x4e5244(0x115)?_0x4e5244(0x135):_0x4e5244(0x113);return{'ok':!![],'message':[_0x4e5244(0x157)+AUTH_MODE[_0x4e5244(0x10f)],..._0x71ec09[_0x4e5244(0x136)]&&!isProduction(_0x71ec09[_0x4e5244(0x136)])?[_0x4e5244(0x127)+_0x71ec09[_0x4e5244(0x136)]]:[],_0x4e5244(0x14a)+_0x39944e+_0x4e5244(0x137)+_0x304a66+')',_0x4e5244(0x123),'Device\x20authorization\x20completed.'][_0x4e5244(0x14c)]('\x0a')};}_0x354450[_0x4e5244(0x159)]==='expired'&&deleteStoredDeviceCode();throw CliErrors[_0x4e5244(0x131)](_0x4e5244(0x140));}throw CliErrors[_0x4e5244(0x131)](_0x1b0087[_0x4e5244(0x14c)]('\x0a'));}}return{'ok':!![],'message':_0x1b0087[_0x4e5244(0x14c)]('\x0a')};}},{'service':a13_0x52ae40(0x13c),'command':a13_0x52ae40(0x15d),'description':a13_0x52ae40(0x138),'risk':a13_0x52ae40(0x121),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x173f28){const _0x302582=a13_0x52ae40,_0x21cc5a=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x21cc5a,'meta':{'env':_0x173f28[_0x302582(0x136)]??_0x302582(0x15e)}}};}},authDeviceDefinition];
@@ -1 +1 @@
1
- function a14_0x17d0(){const _0x220cb9=['894etikpI','1039763RaLVPl','2041557hmNHbb','User\x20aborted\x20prompt','AccessKey\x20(paste\x20ak_...):\x20','9LtFeot','604167vrORjE','6YPKIiC','2709910hofDdG','8595272Nvikxt','AccessKey\x20(','close','removeListener','AbortPrompt','once','question','SIGINT','20345mDbViI','):\x20','77tcpBLY','stdin','2114860mMWmXw','race'];a14_0x17d0=function(){return _0x220cb9;};return a14_0x17d0();}(function(_0x415360,_0xf5304b){const _0x2c16aa=a14_0x1dbc,_0x414e39=_0x415360();while(!![]){try{const _0x1b44ec=-parseInt(_0x2c16aa(0xa7))/0x1+-parseInt(_0x2c16aa(0xad))/0x2*(parseInt(_0x2c16aa(0xac))/0x3)+parseInt(_0x2c16aa(0xa4))/0x4+parseInt(_0x2c16aa(0xa0))/0x5*(-parseInt(_0x2c16aa(0xa6))/0x6)+-parseInt(_0x2c16aa(0xa8))/0x7+-parseInt(_0x2c16aa(0xaf))/0x8*(-parseInt(_0x2c16aa(0xab))/0x9)+parseInt(_0x2c16aa(0xae))/0xa*(parseInt(_0x2c16aa(0xa2))/0xb);if(_0x1b44ec===_0xf5304b)break;else _0x414e39['push'](_0x414e39['shift']());}catch(_0x714d27){_0x414e39['push'](_0x414e39['shift']());}}}(a14_0x17d0,0xe9ef7));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x12428b=a14_0x1dbc;super(_0x12428b(0xa9)),this['name']=_0x12428b(0x9c);}}function createSafeRl(){const _0x300721=a14_0x1dbc,_0x22bb7d=createInterface({'input':process[_0x300721(0xa3)],'output':process['stdout']});let _0x23b4dc;const _0x1967d3=new Promise((_0x2d4615,_0xcd49b5)=>{const _0x5e9fc6=_0x300721;_0x23b4dc=()=>{const _0x1df589=a14_0x1dbc;_0x23b4dc&&(_0x22bb7d[_0x1df589(0x9b)](_0x1df589(0x9f),_0x23b4dc),_0x23b4dc=undefined);try{_0x22bb7d[_0x1df589(0xb1)]();}catch{}_0xcd49b5(new AbortPrompt());},_0x22bb7d[_0x5e9fc6(0x9d)]('SIGINT',_0x23b4dc);}),_0x4c9a1d=()=>{const _0x4f5051=_0x300721;_0x23b4dc&&(_0x22bb7d[_0x4f5051(0x9b)](_0x4f5051(0x9f),_0x23b4dc),_0x23b4dc=undefined);try{_0x22bb7d[_0x4f5051(0xb1)]();}catch{}};return{'rl':_0x22bb7d,'abortPromise':_0x1967d3,'disposeSuccess':_0x4c9a1d};}export async function promptAccessKey(_0x2575e0=''){const _0x30c6d7=a14_0x1dbc,{rl:_0x5ef0e6,abortPromise:_0x3a3742,disposeSuccess:_0x4ebb77}=createSafeRl(),_0x4ccd45=new Promise(_0x37c4c8=>{const _0x3fc25a=a14_0x1dbc,_0x5aeac6=_0x2575e0?_0x3fc25a(0xb0)+_0x2575e0+_0x3fc25a(0xa1):_0x3fc25a(0xaa);_0x5ef0e6[_0x3fc25a(0x9e)](_0x5aeac6,_0x416f51=>{_0x4ebb77(),_0x37c4c8(_0x416f51['trim']()||_0x2575e0);});});return Promise[_0x30c6d7(0xa5)]([_0x4ccd45,_0x3a3742]);}function a14_0x1dbc(_0x3b3ddc,_0x3c220c){_0x3b3ddc=_0x3b3ddc-0x9b;const _0x17d0c9=a14_0x17d0();let _0x1dbc83=_0x17d0c9[_0x3b3ddc];return _0x1dbc83;}export function isAbortPrompt(_0x291ec8){const _0x517bcb=a14_0x1dbc;return _0x291ec8 instanceof Error&&_0x291ec8['name']===_0x517bcb(0x9c);}
1
+ (function(_0x496732,_0x15d325){const _0x498791=a14_0x5815,_0x371642=_0x496732();while(!![]){try{const _0x5d8699=parseInt(_0x498791(0xe6))/0x1+-parseInt(_0x498791(0xe8))/0x2+parseInt(_0x498791(0xf8))/0x3*(-parseInt(_0x498791(0xf1))/0x4)+parseInt(_0x498791(0xec))/0x5+parseInt(_0x498791(0xed))/0x6+-parseInt(_0x498791(0xf2))/0x7*(-parseInt(_0x498791(0xea))/0x8)+parseInt(_0x498791(0xfa))/0x9;if(_0x5d8699===_0x15d325)break;else _0x371642['push'](_0x371642['shift']());}catch(_0x2f19b7){_0x371642['push'](_0x371642['shift']());}}}(a14_0x18ca,0xe42d2));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x10b394=a14_0x5815;super(_0x10b394(0xeb)),this[_0x10b394(0xfb)]=_0x10b394(0xf5);}}function createSafeRl(){const _0x36593a=a14_0x5815,_0x26d160=createInterface({'input':process[_0x36593a(0xef)],'output':process[_0x36593a(0xf7)]});let _0x82271f;const _0x144974=new Promise((_0x1aecb1,_0x5e1ebd)=>{const _0x2451aa=_0x36593a;_0x82271f=()=>{const _0x228b33=a14_0x5815;_0x82271f&&(_0x26d160[_0x228b33(0xf6)](_0x228b33(0xf3),_0x82271f),_0x82271f=undefined);try{_0x26d160[_0x228b33(0xf4)]();}catch{}_0x5e1ebd(new AbortPrompt());},_0x26d160[_0x2451aa(0xf0)]('SIGINT',_0x82271f);}),_0x41937e=()=>{const _0x18ae4c=_0x36593a;_0x82271f&&(_0x26d160[_0x18ae4c(0xf6)](_0x18ae4c(0xf3),_0x82271f),_0x82271f=undefined);try{_0x26d160['close']();}catch{}};return{'rl':_0x26d160,'abortPromise':_0x144974,'disposeSuccess':_0x41937e};}export async function promptAccessKey(_0x30cf2f=''){const {rl:_0x260213,abortPromise:_0x2ac5b1,disposeSuccess:_0x402892}=createSafeRl(),_0x3dfe97=new Promise(_0x48d305=>{const _0x828253=a14_0x5815,_0x5b6073=_0x30cf2f?_0x828253(0xee)+_0x30cf2f+_0x828253(0xe9):_0x828253(0xe5);_0x260213[_0x828253(0xf9)](_0x5b6073,_0x234255=>{const _0x309da1=_0x828253;_0x402892(),_0x48d305(_0x234255[_0x309da1(0xe7)]()||_0x30cf2f);});});return Promise['race']([_0x3dfe97,_0x2ac5b1]);}function a14_0x5815(_0x5c9fb7,_0x15a3a3){_0x5c9fb7=_0x5c9fb7-0xe5;const _0x18cad1=a14_0x18ca();let _0x581511=_0x18cad1[_0x5c9fb7];return _0x581511;}export function isAbortPrompt(_0x32336d){const _0x3a940d=a14_0x5815;return _0x32336d instanceof Error&&_0x32336d['name']===_0x3a940d(0xf5);}function a14_0x18ca(){const _0x1f337c=['AccessKey\x20(paste\x20ak_...):\x20','1740687FnEICw','trim','2830286EHCGTg','):\x20','23584tEWAUa','User\x20aborted\x20prompt','6191570GRSdgx','4880376EWIvnJ','AccessKey\x20(','stdin','once','6061076BCrMJD','98RDgbCr','SIGINT','close','AbortPrompt','removeListener','stdout','3UKewxb','question','282177NKaJQH','name'];a14_0x18ca=function(){return _0x1f337c;};return a14_0x18ca();}
@@ -1 +1 @@
1
- const a15_0x530788=a15_0x5165;function a15_0x5165(_0x28e5f8,_0x290bae){_0x28e5f8=_0x28e5f8-0x8d;const _0x4536f6=a15_0x4536();let _0x51658f=_0x4536f6[_0x28e5f8];return _0x51658f;}(function(_0x92f581,_0x1b3991){const _0xfc9b9=a15_0x5165,_0x48f44d=_0x92f581();while(!![]){try{const _0x269c36=-parseInt(_0xfc9b9(0x95))/0x1+-parseInt(_0xfc9b9(0x98))/0x2+parseInt(_0xfc9b9(0x94))/0x3+parseInt(_0xfc9b9(0x9e))/0x4+parseInt(_0xfc9b9(0x9a))/0x5+-parseInt(_0xfc9b9(0x9b))/0x6+parseInt(_0xfc9b9(0x93))/0x7*(parseInt(_0xfc9b9(0x8d))/0x8);if(_0x269c36===_0x1b3991)break;else _0x48f44d['push'](_0x48f44d['shift']());}catch(_0x4cf914){_0x48f44d['push'](_0x48f44d['shift']());}}}(a15_0x4536,0xeebfe));import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a15_0x530788(0x97),'command':'detail','description':a15_0x530788(0x9c),'risk':a15_0x530788(0x8e),'flags':[{...NAME_FLAG,'required':!![],'description':'Backend\x20Function\x20name'}],async 'execute'(_0x4d83e2){const _0x31dcd2=a15_0x530788,_0x4271e3=await getBffEndpointContract(_0x4d83e2['appCode'],_0x4d83e2[_0x31dcd2(0x99)](_0x31dcd2(0x90)));return{'ok':!![],'data':{'appCode':_0x4271e3[_0x31dcd2(0x9d)],'functionName':_0x4271e3[_0x31dcd2(0x91)],'description':_0x4271e3[_0x31dcd2(0x8f)]||_0x31dcd2(0x96),'version':_0x4271e3[_0x31dcd2(0x9f)],'gmtModified':_0x4271e3[_0x31dcd2(0x92)]}};}};function a15_0x4536(){const _0x5f11f6=['name','functionName','gmtModified','11932802UTlVdO','2194530GNhOEh','1369010fdHCWE','(none)','bff','1158074JZZTcQ','str','2855240avGneX','6972588HhTjyn','Get\x20a\x20Backend\x20Function\x20endpoint\x20contract\x20by\x20function\x20name','appCode','4323276zmYICN','version','8yEvxDf','read','description'];a15_0x4536=function(){return _0x5f11f6;};return a15_0x4536();}
1
+ function a15_0x8240(_0x277153,_0x3aab31){_0x277153=_0x277153-0x170;const _0x557f9d=a15_0x557f();let _0x824080=_0x557f9d[_0x277153];return _0x824080;}const a15_0x8d9a1b=a15_0x8240;(function(_0x24be5f,_0x520571){const _0x54133d=a15_0x8240,_0x3ee6fc=_0x24be5f();while(!![]){try{const _0x4c8c18=parseInt(_0x54133d(0x183))/0x1+parseInt(_0x54133d(0x17f))/0x2+-parseInt(_0x54133d(0x17c))/0x3*(-parseInt(_0x54133d(0x177))/0x4)+parseInt(_0x54133d(0x174))/0x5*(parseInt(_0x54133d(0x181))/0x6)+-parseInt(_0x54133d(0x17e))/0x7*(-parseInt(_0x54133d(0x186))/0x8)+-parseInt(_0x54133d(0x173))/0x9*(parseInt(_0x54133d(0x184))/0xa)+parseInt(_0x54133d(0x172))/0xb*(-parseInt(_0x54133d(0x179))/0xc);if(_0x4c8c18===_0x520571)break;else _0x3ee6fc['push'](_0x3ee6fc['shift']());}catch(_0x5ba862){_0x3ee6fc['push'](_0x3ee6fc['shift']());}}}(a15_0x557f,0x6bc60));import{getBffEndpointContract}from'../../core/api-client.js';function a15_0x557f(){const _0x250d33=['11zCsuLK','4716fSZXsY','17035RHYzql','version','Get\x20a\x20Backend\x20Function\x20endpoint\x20contract\x20by\x20function\x20name','111576ivrUWd','(none)','15512712EZpxVV','detail','gmtModified','3ojaeHI','description','7jNcMCe','704360YYbDVU','name','1182RHGOWi','str','848437RcEItz','16840zIXUHy','functionName','5735136vQiAvw','bff','appCode','read'];a15_0x557f=function(){return _0x250d33;};return a15_0x557f();}import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a15_0x8d9a1b(0x187),'command':a15_0x8d9a1b(0x17a),'description':a15_0x8d9a1b(0x176),'risk':a15_0x8d9a1b(0x171),'flags':[{...NAME_FLAG,'required':!![],'description':'Backend\x20Function\x20name'}],async 'execute'(_0x3f245d){const _0x1c973d=a15_0x8d9a1b,_0x310453=await getBffEndpointContract(_0x3f245d[_0x1c973d(0x170)],_0x3f245d[_0x1c973d(0x182)](_0x1c973d(0x180)));return{'ok':!![],'data':{'appCode':_0x310453[_0x1c973d(0x170)],'functionName':_0x310453[_0x1c973d(0x185)],'description':_0x310453[_0x1c973d(0x17d)]||_0x1c973d(0x178),'version':_0x310453[_0x1c973d(0x175)],'gmtModified':_0x310453[_0x1c973d(0x17b)]}};}};
@@ -1 +1 @@
1
- function a16_0x1e55(_0x1a5e1b,_0x2feb70){_0x1a5e1b=_0x1a5e1b-0xe1;const _0x21e0c6=a16_0x21e0();let _0x1e5567=_0x21e0c6[_0x1a5e1b];return _0x1e5567;}const a16_0x3fecfa=a16_0x1e55;function a16_0x21e0(){const _0x5d5d85=['125rKRHTk','21CwCrnQ','10978692BAVMcQ','17140mKlrlg','1098tSfwhP','now','4104oMhSvA','33VsfpFH','str','3860Qsjnok','14556NcYZsd','Backend\x20Function\x20name\x20to\x20execute','Execute\x20a\x20Backend\x20Function\x20script\x20by\x20function\x20name','946VIvDqN','read','name','1865673gtJetQ','33560HwRVnC','bff'];a16_0x21e0=function(){return _0x5d5d85;};return a16_0x21e0();}(function(_0x40d840,_0x12d558){const _0x231d6f=a16_0x1e55,_0x8ac854=_0x40d840();while(!![]){try{const _0x2fb439=parseInt(_0x231d6f(0xef))/0x1*(parseInt(_0x231d6f(0xee))/0x2)+parseInt(_0x231d6f(0xec))/0x3*(-parseInt(_0x231d6f(0xf1))/0x4)+parseInt(_0x231d6f(0xe8))/0x5*(-parseInt(_0x231d6f(0xf2))/0x6)+-parseInt(_0x231d6f(0xe9))/0x7*(parseInt(_0x231d6f(0xe6))/0x8)+-parseInt(_0x231d6f(0xe5))/0x9+-parseInt(_0x231d6f(0xeb))/0xa*(parseInt(_0x231d6f(0xe2))/0xb)+parseInt(_0x231d6f(0xea))/0xc;if(_0x2fb439===_0x12d558)break;else _0x8ac854['push'](_0x8ac854['shift']());}catch(_0x2b7f75){_0x8ac854['push'](_0x8ac854['shift']());}}}(a16_0x21e0,0x31309));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_0x3fecfa(0xe7),'command':'exec','description':a16_0x3fecfa(0xe1),'risk':a16_0x3fecfa(0xe3),'flags':[{...NAME_FLAG,'required':!![],'description':a16_0x3fecfa(0xf3)},PARAMS_FLAG],async 'execute'(_0x3a5f48){const _0x3c3624=a16_0x3fecfa,_0x4ba19a=parseJsonParams(_0x3a5f48[_0x3c3624(0xf0)]('params')),_0x434803=Date['now'](),_0x4cfd06=await executeSdkBff(_0x3a5f48[_0x3c3624(0xf0)](_0x3c3624(0xe4)),_0x4ba19a),_0x482b16=Date[_0x3c3624(0xed)]()-_0x434803;return{'ok':!![],'data':{'result':_0x4cfd06,'elapsed':_0x482b16},'message':'Backend\x20Function\x20executed\x20in\x20'+_0x482b16+'ms'};}};
1
+ const a16_0x18cf8a=a16_0x5ae6;(function(_0x26a208,_0x19cbf7){const _0xb7bf66=a16_0x5ae6,_0x2ca329=_0x26a208();while(!![]){try{const _0x1cce57=parseInt(_0xb7bf66(0xbe))/0x1+-parseInt(_0xb7bf66(0xbd))/0x2+parseInt(_0xb7bf66(0xb7))/0x3*(parseInt(_0xb7bf66(0xae))/0x4)+-parseInt(_0xb7bf66(0xac))/0x5*(parseInt(_0xb7bf66(0xbb))/0x6)+parseInt(_0xb7bf66(0xb6))/0x7+parseInt(_0xb7bf66(0xba))/0x8*(-parseInt(_0xb7bf66(0xad))/0x9)+parseInt(_0xb7bf66(0xb9))/0xa*(parseInt(_0xb7bf66(0xb4))/0xb);if(_0x1cce57===_0x19cbf7)break;else _0x2ca329['push'](_0x2ca329['shift']());}catch(_0x2da1e2){_0x2ca329['push'](_0x2ca329['shift']());}}}(a16_0x3747,0x9e6da));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a16_0x3747(){const _0x1868d9=['now','bff','read','str','exec','99xOIVoo','params','1107092eZoIRR','42594lzLVWb','Backend\x20Function\x20name\x20to\x20execute','22970rSERPN','2256jsSdjA','3222186znfBzM','Execute\x20a\x20Backend\x20Function\x20script\x20by\x20function\x20name','557860ManFMA','583715pqRMQG','name','10HXpfcF','774KgJErr','356HdPkOj'];a16_0x3747=function(){return _0x1868d9;};return a16_0x3747();}function a16_0x5ae6(_0x4c4d03,_0x90a5b4){_0x4c4d03=_0x4c4d03-0xac;const _0x3747bd=a16_0x3747();let _0x5ae66e=_0x3747bd[_0x4c4d03];return _0x5ae66e;}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a16_0x18cf8a(0xb0),'command':a16_0x18cf8a(0xb3),'description':a16_0x18cf8a(0xbc),'risk':a16_0x18cf8a(0xb1),'flags':[{...NAME_FLAG,'required':!![],'description':a16_0x18cf8a(0xb8)},PARAMS_FLAG],async 'execute'(_0x2fc531){const _0x704290=a16_0x18cf8a,_0x487376=parseJsonParams(_0x2fc531[_0x704290(0xb2)](_0x704290(0xb5))),_0x3be82f=Date[_0x704290(0xaf)](),_0x34cbb7=await executeSdkBff(_0x2fc531[_0x704290(0xb2)](_0x704290(0xbf)),_0x487376),_0x1803c3=Date[_0x704290(0xaf)]()-_0x3be82f;return{'ok':!![],'data':{'result':_0x34cbb7,'elapsed':_0x1803c3},'message':'Backend\x20Function\x20executed\x20in\x20'+_0x1803c3+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x52be03,_0x1a6aac){const _0x2e3120=a17_0x45da,_0x47fd03=_0x52be03();while(!![]){try{const _0x288d64=parseInt(_0x2e3120(0xed))/0x1*(-parseInt(_0x2e3120(0xf2))/0x2)+-parseInt(_0x2e3120(0xf0))/0x3*(-parseInt(_0x2e3120(0xf3))/0x4)+parseInt(_0x2e3120(0xec))/0x5+parseInt(_0x2e3120(0xf4))/0x6+-parseInt(_0x2e3120(0xeb))/0x7*(-parseInt(_0x2e3120(0xf1))/0x8)+parseInt(_0x2e3120(0xee))/0x9+parseInt(_0x2e3120(0xef))/0xa*(-parseInt(_0x2e3120(0xf5))/0xb);if(_0x288d64===_0x1a6aac)break;else _0x47fd03['push'](_0x47fd03['shift']());}catch(_0x550217){_0x47fd03['push'](_0x47fd03['shift']());}}}(a17_0x2025,0xd01f0));function a17_0x45da(_0x54a0e4,_0x4a1390){_0x54a0e4=_0x54a0e4-0xeb;const _0x202549=a17_0x2025();let _0x45dacf=_0x202549[_0x54a0e4];return _0x45dacf;}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];function a17_0x2025(){const _0x2883b5=['1900764JxzsxY','2204890dxOtFQ','3VNtaGu','8DHNHBA','15898NMklFe','1747172kGWuvf','3376860egXbHU','77jwDWjW','531447PpznBy','5863795mbacGn','8XRwuws'];a17_0x2025=function(){return _0x2883b5;};return a17_0x2025();}
1
+ (function(_0x17b77c,_0x54b820){const _0x174648=a17_0x33a7,_0x51caca=_0x17b77c();while(!![]){try{const _0x3008a7=-parseInt(_0x174648(0xd4))/0x1+parseInt(_0x174648(0xd9))/0x2+-parseInt(_0x174648(0xd7))/0x3+parseInt(_0x174648(0xda))/0x4*(parseInt(_0x174648(0xd8))/0x5)+parseInt(_0x174648(0xd6))/0x6+-parseInt(_0x174648(0xdb))/0x7+parseInt(_0x174648(0xd5))/0x8;if(_0x3008a7===_0x54b820)break;else _0x51caca['push'](_0x51caca['shift']());}catch(_0x2e404a){_0x51caca['push'](_0x51caca['shift']());}}}(a17_0x6b7b,0x9404f));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a17_0x6b7b(){const _0x1f5ed3=['68936uVBbip','2810213atrunb','716387fyjfiF','146032Wdkuxv','5906592ZltrCR','101361YMJOMf','40gCbOsi','1234724cRebUy'];a17_0x6b7b=function(){return _0x1f5ed3;};return a17_0x6b7b();}function a17_0x33a7(_0x38b0ee,_0x530749){_0x38b0ee=_0x38b0ee-0xd4;const _0x6b7b32=a17_0x6b7b();let _0x33a7fe=_0x6b7b32[_0x38b0ee];return _0x33a7fe;}export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- function a18_0x2dfe(){const _0x1cdae6=['skillVersion','593382MumXEd','8839568VdUQea','error','39353490lAxycg','nonInteractive','repairCommand','1521768VAEEeN','pipe','install','installedPath','cwd','2162055BBZyQH','\x20installed','info','INSTALL_FAILED','\x20is\x20already\x20current','2025606KjShYw','changed','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20npm\x20package.','setLogPath',']:\x20','Install\x20the\x20built-in\x20CLI\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','88068zCKoSz','inherit','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','45mAViLy','log','85zvCvgN'];a18_0x2dfe=function(){return _0x1cdae6;};return a18_0x2dfe();}function a18_0xd310(_0x4e4bb7,_0x12dda5){_0x4e4bb7=_0x4e4bb7-0x16c;const _0x2dfede=a18_0x2dfe();let _0xd31098=_0x2dfede[_0x4e4bb7];return _0xd31098;}const a18_0x2c33ab=a18_0xd310;(function(_0xfd98e3,_0x4a125d){const _0x3c7551=a18_0xd310,_0x4bdd2a=_0xfd98e3();while(!![]){try{const _0x5853cd=parseInt(_0x3c7551(0x183))/0x1*(parseInt(_0x3c7551(0x180))/0x2)+parseInt(_0x3c7551(0x17a))/0x3+-parseInt(_0x3c7551(0x170))/0x4+-parseInt(_0x3c7551(0x185))/0x5*(-parseInt(_0x3c7551(0x187))/0x6)+parseInt(_0x3c7551(0x175))/0x7+parseInt(_0x3c7551(0x188))/0x8+-parseInt(_0x3c7551(0x16d))/0x9;if(_0x5853cd===_0x4a125d)break;else _0x4bdd2a['push'](_0x4bdd2a['shift']());}catch(_0x5e2316){_0x4bdd2a['push'](_0x4bdd2a['shift']());}}}(a18_0x2dfe,0xf3d54));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':a18_0x2c33ab(0x172),'description':a18_0x2c33ab(0x17f),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x9859ec){const _0x1b07ed=a18_0x2c33ab;logger[_0x1b07ed(0x17d)](process[_0x1b07ed(0x174)]()),logger[_0x1b07ed(0x177)]('cli-skill-install',_0x1b07ed(0x17c));const _0x354d8d=installBuiltinSkill({'stdio':_0x9859ec[_0x1b07ed(0x16e)]?_0x1b07ed(0x171):_0x1b07ed(0x181)});if(!_0x354d8d['ok'])throw CliErrors['apiError']('Built-in\x20Skill\x20install\x20failed\x20['+(_0x354d8d['code']||_0x1b07ed(0x178))+_0x1b07ed(0x17e)+(_0x354d8d[_0x1b07ed(0x16c)]||'unknown'),_0x1b07ed(0x182)+_0x354d8d[_0x1b07ed(0x16f)]);const _0x1270af=_0x354d8d[_0x1b07ed(0x173)]?'\x20at\x20'+_0x354d8d[_0x1b07ed(0x173)]:'';return console[_0x1b07ed(0x184)](_0x354d8d[_0x1b07ed(0x17b)]?'CLI\x20Built-in\x20Skill\x20'+_0x354d8d[_0x1b07ed(0x186)]+_0x1b07ed(0x176)+_0x1270af:'CLI\x20Built-in\x20Skill\x20'+_0x354d8d[_0x1b07ed(0x186)]+_0x1b07ed(0x179)+_0x1270af),{'ok':!![]};}}];
1
+ const a18_0x9cad73=a18_0x20a3;(function(_0x4261e0,_0x362a2e){const _0x273558=a18_0x20a3,_0x356e09=_0x4261e0();while(!![]){try{const _0x183f1a=parseInt(_0x273558(0x12d))/0x1*(parseInt(_0x273558(0x110))/0x2)+-parseInt(_0x273558(0x121))/0x3*(parseInt(_0x273558(0x11d))/0x4)+-parseInt(_0x273558(0x10e))/0x5*(-parseInt(_0x273558(0x116))/0x6)+parseInt(_0x273558(0x11a))/0x7*(parseInt(_0x273558(0x12a))/0x8)+-parseInt(_0x273558(0x12e))/0x9+parseInt(_0x273558(0x12f))/0xa*(parseInt(_0x273558(0x11f))/0xb)+-parseInt(_0x273558(0x114))/0xc*(parseInt(_0x273558(0x125))/0xd);if(_0x183f1a===_0x362a2e)break;else _0x356e09['push'](_0x356e09['shift']());}catch(_0x31cd11){_0x356e09['push'](_0x356e09['shift']());}}}(a18_0x29b6,0xacae2));import{CliErrors}from'../../errors.js';function a18_0x29b6(){const _0x4fc646=['568qaDoyM','cli-skill-install','\x20installed','25sRHLQM','1233513elNNZJ','173230pWyZkQ','repairCommand','Install\x20the\x20built-in\x20CLI\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','CLI\x20Built-in\x20Skill\x20','10cEpwop','error','99118uaoGvH','code','Built-in\x20Skill\x20install\x20failed\x20[','unknown','12385104pwXOQM','log','1673124UBiNJC','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','nonInteractive','apiError','41461AyqzDU','setLogPath',']:\x20','1201228roIwgk','changed','165pgBAsy','installedPath','6TafvhR','skillVersion','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20npm\x20package.','info','13ytuiwL','inherit','\x20at\x20','cli-skill','\x20is\x20already\x20current'];a18_0x29b6=function(){return _0x4fc646;};return a18_0x29b6();}import{installBuiltinSkill}from'../../skills/builtin-skill.js';import{logger}from'../../utils/logger.js';function a18_0x20a3(_0x214fcc,_0x3bb802){_0x214fcc=_0x214fcc-0x10e;const _0x29b660=a18_0x29b6();let _0x20a3ed=_0x29b660[_0x214fcc];return _0x20a3ed;}export const cliSkillDefinitions=[{'service':a18_0x9cad73(0x128),'command':'install','description':a18_0x9cad73(0x131),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2ae7bb){const _0xdd0914=a18_0x9cad73;logger[_0xdd0914(0x11b)](process['cwd']()),logger[_0xdd0914(0x124)](_0xdd0914(0x12b),_0xdd0914(0x123));const _0x2d0a37=installBuiltinSkill({'stdio':_0x2ae7bb[_0xdd0914(0x118)]?'pipe':_0xdd0914(0x126)});if(!_0x2d0a37['ok'])throw CliErrors[_0xdd0914(0x119)](_0xdd0914(0x112)+(_0x2d0a37[_0xdd0914(0x111)]||'INSTALL_FAILED')+_0xdd0914(0x11c)+(_0x2d0a37[_0xdd0914(0x10f)]||_0xdd0914(0x113)),_0xdd0914(0x117)+_0x2d0a37[_0xdd0914(0x130)]);const _0x53b7c3=_0x2d0a37[_0xdd0914(0x120)]?_0xdd0914(0x127)+_0x2d0a37[_0xdd0914(0x120)]:'';return console[_0xdd0914(0x115)](_0x2d0a37[_0xdd0914(0x11e)]?'CLI\x20Built-in\x20Skill\x20'+_0x2d0a37[_0xdd0914(0x122)]+_0xdd0914(0x12c)+_0x53b7c3:_0xdd0914(0x132)+_0x2d0a37[_0xdd0914(0x122)]+_0xdd0914(0x129)+_0x53b7c3),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x3ecf2d,_0xeebd74){const _0x2ed243=a19_0x4b79,_0x674e1d=_0x3ecf2d();while(!![]){try{const _0x8314f7=parseInt(_0x2ed243(0x1b1))/0x1+-parseInt(_0x2ed243(0x1b4))/0x2+-parseInt(_0x2ed243(0x1b5))/0x3+-parseInt(_0x2ed243(0x1c4))/0x4+-parseInt(_0x2ed243(0x1c0))/0x5*(-parseInt(_0x2ed243(0x1b7))/0x6)+parseInt(_0x2ed243(0x1c2))/0x7*(-parseInt(_0x2ed243(0x1b8))/0x8)+-parseInt(_0x2ed243(0x1c1))/0x9*(-parseInt(_0x2ed243(0x1b2))/0xa);if(_0x8314f7===_0xeebd74)break;else _0x674e1d['push'](_0x674e1d['shift']());}catch(_0x4420ce){_0x674e1d['push'](_0x674e1d['shift']());}}}(a19_0x62bd,0xcdd17));import{PRODUCT_CONFIG}from'../../constant/product.js';function a19_0x4b79(_0x4a2bc5,_0xa9fe71){_0x4a2bc5=_0x4a2bc5-0x1af;const _0x62bd5b=a19_0x62bd();let _0x4b7933=_0x62bd5b[_0x4a2bc5];return _0x4b7933;}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_0x62bd(){const _0x1c2098=[',\x20or\x20create\x20a\x20project-local\x20','3317542WKYaGy','1007745SchtLM','global','31818KDMRaV','13383688YCtSSz','Add\x20--global\x20to\x20write\x20to\x20~/','global-default','validation','\x20found).','newConfigFileName','\x20first.','project','455zwhEGu','4374EhRDWk','7Mbsgvk','inProject','2984808pzCeZv','\x20(global)','Use\x20only\x20one\x20config\x20scope\x20flag.','1381541LjHeJb','69810mxZIHU'];a19_0x62bd=function(){return _0x1c2098;};return a19_0x62bd();}export function resolveConfigScope(_0x195845){const _0x4a5361=a19_0x4b79,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x414c9d}=_0x195845;if(explicitGlobal&&explicitProject)throw CliErrors[_0x4a5361(0x1bb)]('Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.',_0x4a5361(0x1b0));if(explicitGlobal)return _0x4a5361(0x1b6);if(explicitProject)return _0x4a5361(0x1bf);switch(_0x414c9d){case _0x4a5361(0x1ba):return _0x4a5361(0x1b6);case'project-or-global-explicit':if(!(_0x195845[_0x4a5361(0x1c3)]??isInProject()))throw CliErrors[_0x4a5361(0x1bb)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG[_0x4a5361(0x1bd)]+_0x4a5361(0x1bc),_0x4a5361(0x1b9)+PRODUCT_CONFIG[_0x4a5361(0x1bd)]+_0x4a5361(0x1b3)+PRODUCT_CONFIG[_0x4a5361(0x1bd)]+_0x4a5361(0x1be));return'project';}}export function toScopeFlags(_0x2a07bd){const _0x3d6423=a19_0x4b79;return{'global':_0x2a07bd===_0x3d6423(0x1b6)};}export function formatScopeLabel(_0x34027d){const _0xb27712=a19_0x4b79;return _0x34027d===_0xb27712(0x1b6)?_0xb27712(0x1af):'';}
1
+ (function(_0x5325a5,_0x1f9bfd){const _0x241df7=a19_0x1129,_0x474ea4=_0x5325a5();while(!![]){try{const _0x370b9f=parseInt(_0x241df7(0x187))/0x1+-parseInt(_0x241df7(0x194))/0x2+parseInt(_0x241df7(0x18b))/0x3*(parseInt(_0x241df7(0x192))/0x4)+-parseInt(_0x241df7(0x193))/0x5+parseInt(_0x241df7(0x184))/0x6*(-parseInt(_0x241df7(0x186))/0x7)+-parseInt(_0x241df7(0x17e))/0x8+parseInt(_0x241df7(0x180))/0x9*(parseInt(_0x241df7(0x189))/0xa);if(_0x370b9f===_0x1f9bfd)break;else _0x474ea4['push'](_0x474ea4['shift']());}catch(_0x33ed10){_0x474ea4['push'](_0x474ea4['shift']());}}}(a19_0x1508,0xc9727));function a19_0x1508(){const _0x4388b8=['33410vOhkol','global','183AQsHJN','\x20first.','inProject','newConfigFileName','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','project','Not\x20inside\x20a\x20project\x20(no\x20','5648LjZyot','1812570cVbiNP','1968220SnmGVg','\x20(global)','10923800alYsHc','project-or-global-explicit','6921BiEbIB','validation','Add\x20--global\x20to\x20write\x20to\x20~/',',\x20or\x20create\x20a\x20project-local\x20','187926onDMGN','global-default','77yrGGxn','1226396RxROCr','Use\x20only\x20one\x20config\x20scope\x20flag.'];a19_0x1508=function(){return _0x4388b8;};return a19_0x1508();}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_0x1129(_0x28b7dc,_0x276763){_0x28b7dc=_0x28b7dc-0x17d;const _0x1508ae=a19_0x1508();let _0x11291=_0x1508ae[_0x28b7dc];return _0x11291;}export function resolveConfigScope(_0x31aa03){const _0x1a7655=a19_0x1129,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x5ede24}=_0x31aa03;if(explicitGlobal&&explicitProject)throw CliErrors['validation'](_0x1a7655(0x18f),_0x1a7655(0x188));if(explicitGlobal)return'global';if(explicitProject)return _0x1a7655(0x190);switch(_0x5ede24){case _0x1a7655(0x185):return _0x1a7655(0x18a);case _0x1a7655(0x17f):if(!(_0x31aa03[_0x1a7655(0x18d)]??isInProject()))throw CliErrors[_0x1a7655(0x181)](_0x1a7655(0x191)+PRODUCT_CONFIG[_0x1a7655(0x18e)]+'\x20found).',_0x1a7655(0x182)+PRODUCT_CONFIG['newConfigFileName']+_0x1a7655(0x183)+PRODUCT_CONFIG[_0x1a7655(0x18e)]+_0x1a7655(0x18c));return _0x1a7655(0x190);}}export function toScopeFlags(_0x3d4efa){const _0x1f59b1=a19_0x1129;return{'global':_0x3d4efa===_0x1f59b1(0x18a)};}export function formatScopeLabel(_0x1ee8f0){const _0x3ef6bd=a19_0x1129;return _0x1ee8f0==='global'?_0x3ef6bd(0x17d):'';}
@@ -1 +1 @@
1
- function a20_0xd055(_0x524ec8,_0x5a0962){_0x524ec8=_0x524ec8-0x127;const _0x5002f4=a20_0x5002();let _0xd055c6=_0x5002f4[_0x524ec8];return _0xd055c6;}(function(_0x182398,_0x100e39){const _0x751a0f=a20_0xd055,_0x1c11eb=_0x182398();while(!![]){try{const _0x5ba214=-parseInt(_0x751a0f(0x139))/0x1+-parseInt(_0x751a0f(0x12e))/0x2+-parseInt(_0x751a0f(0x13c))/0x3*(-parseInt(_0x751a0f(0x129))/0x4)+-parseInt(_0x751a0f(0x12d))/0x5+parseInt(_0x751a0f(0x12b))/0x6+-parseInt(_0x751a0f(0x131))/0x7+parseInt(_0x751a0f(0x135))/0x8;if(_0x5ba214===_0x100e39)break;else _0x1c11eb['push'](_0x1c11eb['shift']());}catch(_0x46a9c4){_0x1c11eb['push'](_0x1c11eb['shift']());}}}(a20_0x5002,0xe15e4));import{CliErrors}from'../../errors.js';function a20_0x5002(){const _0x4523b7=['Invalid\x20--','filter',':\x20expected\x20','1615548rKHrBS','At\x20least\x20one\x20of\x20','7865688vPnfZl','\x20are\x20mutually\x20exclusive\x20for\x20`','6253565QbJQLm','1807038KkHpsX','Use\x20only\x20one\x20of:\x20','join','10272500Csuyhl','map','length','Provide\x20one\x20of:\x20','34363104uIeTGi','validation','str','Flags\x20','1465383cGkWIi','Only\x20one\x20of\x20','\x20is\x20required\x20for\x20`','3kamenh','Remove\x20all\x20but\x20one.','flag'];a20_0x5002=function(){return _0x4523b7;};return a20_0x5002();}function isSet(_0x55290e,_0xe023af){const _0x550950=a20_0xd055,_0x519e3d=_0x55290e[_0x550950(0x13e)](_0xe023af);return _0x519e3d!==undefined&&_0x519e3d!==''&&_0x519e3d!==![]&&_0x519e3d!==0x0;}function fmtNames(_0x58798e){const _0x820a69=a20_0xd055;return _0x58798e[_0x820a69(0x132)](_0x4970af=>'--'+_0x4970af)[_0x820a69(0x130)](',\x20');}export function requireOneOf(_0x8d1610,_0x40684b,_0xb4d3c6){const _0x51ee02=a20_0xd055,_0x566329=_0x40684b['filter'](_0x17a1c7=>isSet(_0x8d1610,_0x17a1c7));if(_0x566329['length']!==0x1)throw CliErrors['validation'](_0x566329[_0x51ee02(0x133)]===0x0?'Exactly\x20one\x20of\x20'+fmtNames(_0x40684b)+_0x51ee02(0x13b)+_0xb4d3c6+'`.':_0x51ee02(0x13a)+fmtNames(_0x40684b)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x566329)+'.',_0x566329['length']===0x0?_0x51ee02(0x134)+fmtNames(_0x40684b):_0x51ee02(0x13d));}export function requireAnyOf(_0x637eba,_0x4eafda,_0x57c6d0){const _0x454210=a20_0xd055;if(!_0x4eafda['some'](_0x49edc4=>isSet(_0x637eba,_0x49edc4)))throw CliErrors['validation'](_0x454210(0x12a)+fmtNames(_0x4eafda)+_0x454210(0x13b)+_0x57c6d0+'`.','Provide\x20one\x20of:\x20'+fmtNames(_0x4eafda));}export function mutuallyExclusive(_0x2a3b22,_0x4b4e3a,_0x213b93){const _0x100b67=a20_0xd055,_0x408777=_0x4b4e3a[_0x100b67(0x127)](_0x3dba2b=>isSet(_0x2a3b22,_0x3dba2b));if(_0x408777['length']>0x1)throw CliErrors[_0x100b67(0x136)](_0x100b67(0x138)+fmtNames(_0x408777)+_0x100b67(0x12c)+_0x213b93+'`.',_0x100b67(0x12f)+fmtNames(_0x4b4e3a));}export function validatePattern(_0x407c79,_0x542340,_0x2e8eea,_0x18e364){const _0x46dac1=a20_0xd055,_0x1596fc=_0x407c79[_0x46dac1(0x137)](_0x542340);if(_0x1596fc&&!_0x2e8eea['test'](_0x1596fc))throw CliErrors[_0x46dac1(0x136)](_0x46dac1(0x13f)+_0x542340+_0x46dac1(0x128)+_0x18e364+',\x20got\x20\x22'+_0x1596fc+'\x22.');}
1
+ function a20_0x4682(_0x2017d9,_0x120940){_0x2017d9=_0x2017d9-0x151;const _0x2d5e09=a20_0x2d5e();let _0x46821f=_0x2d5e09[_0x2017d9];return _0x46821f;}(function(_0x33a26f,_0x5aed39){const _0x333f39=a20_0x4682,_0x57abb3=_0x33a26f();while(!![]){try{const _0x4c612c=parseInt(_0x333f39(0x156))/0x1+-parseInt(_0x333f39(0x169))/0x2+parseInt(_0x333f39(0x158))/0x3*(-parseInt(_0x333f39(0x15c))/0x4)+-parseInt(_0x333f39(0x153))/0x5*(parseInt(_0x333f39(0x165))/0x6)+-parseInt(_0x333f39(0x161))/0x7*(-parseInt(_0x333f39(0x15b))/0x8)+parseInt(_0x333f39(0x15a))/0x9+parseInt(_0x333f39(0x15d))/0xa*(-parseInt(_0x333f39(0x15f))/0xb);if(_0x4c612c===_0x5aed39)break;else _0x57abb3['push'](_0x57abb3['shift']());}catch(_0x33da6e){_0x57abb3['push'](_0x57abb3['shift']());}}}(a20_0x2d5e,0xdc4e6));import{CliErrors}from'../../errors.js';function isSet(_0x3f8ec8,_0x10d1e9){const _0x44ee45=a20_0x4682,_0x589343=_0x3f8ec8[_0x44ee45(0x16a)](_0x10d1e9);return _0x589343!==undefined&&_0x589343!==''&&_0x589343!==![]&&_0x589343!==0x0;}function a20_0x2d5e(){const _0x23f543=['some','43519DIdMQm','map','test','validation','2082cqZuUJ','length',',\x20got\x20\x22','filter','222154lwDogT','flag','Exactly\x20one\x20of\x20','Invalid\x20--','23865ZtAKGx','\x20is\x20required\x20for\x20`','Provide\x20one\x20of:\x20','1312789ROgeRK','join','9186KJOFAf','str','7139799vMSSAL','1600IcmtIn','168TatHtn','5512140XtTCcP','Use\x20only\x20one\x20of:\x20','11WBCHpL'];a20_0x2d5e=function(){return _0x23f543;};return a20_0x2d5e();}function fmtNames(_0x57e279){const _0xebeec4=a20_0x4682;return _0x57e279[_0xebeec4(0x162)](_0x41e04f=>'--'+_0x41e04f)[_0xebeec4(0x157)](',\x20');}export function requireOneOf(_0x127255,_0x2d46d4,_0x23294c){const _0x5dac02=a20_0x4682,_0x5938c4=_0x2d46d4[_0x5dac02(0x168)](_0x413329=>isSet(_0x127255,_0x413329));if(_0x5938c4[_0x5dac02(0x166)]!==0x1)throw CliErrors[_0x5dac02(0x164)](_0x5938c4[_0x5dac02(0x166)]===0x0?_0x5dac02(0x151)+fmtNames(_0x2d46d4)+_0x5dac02(0x154)+_0x23294c+'`.':'Only\x20one\x20of\x20'+fmtNames(_0x2d46d4)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x5938c4)+'.',_0x5938c4[_0x5dac02(0x166)]===0x0?_0x5dac02(0x155)+fmtNames(_0x2d46d4):'Remove\x20all\x20but\x20one.');}export function requireAnyOf(_0x3a8e1d,_0x11346b,_0x52e738){const _0x1b387e=a20_0x4682;if(!_0x11346b[_0x1b387e(0x160)](_0x40b96a=>isSet(_0x3a8e1d,_0x40b96a)))throw CliErrors['validation']('At\x20least\x20one\x20of\x20'+fmtNames(_0x11346b)+_0x1b387e(0x154)+_0x52e738+'`.',_0x1b387e(0x155)+fmtNames(_0x11346b));}export function mutuallyExclusive(_0x447412,_0x17140c,_0x3661fb){const _0x43ba65=a20_0x4682,_0x59e3d7=_0x17140c[_0x43ba65(0x168)](_0x1811db=>isSet(_0x447412,_0x1811db));if(_0x59e3d7[_0x43ba65(0x166)]>0x1)throw CliErrors['validation']('Flags\x20'+fmtNames(_0x59e3d7)+'\x20are\x20mutually\x20exclusive\x20for\x20`'+_0x3661fb+'`.',_0x43ba65(0x15e)+fmtNames(_0x17140c));}export function validatePattern(_0x4a5960,_0x24e4c8,_0x1036b2,_0x2d94bf){const _0x41bd28=a20_0x4682,_0x459028=_0x4a5960[_0x41bd28(0x159)](_0x24e4c8);if(_0x459028&&!_0x1036b2[_0x41bd28(0x163)](_0x459028))throw CliErrors[_0x41bd28(0x164)](_0x41bd28(0x152)+_0x24e4c8+':\x20expected\x20'+_0x2d94bf+_0x41bd28(0x167)+_0x459028+'\x22.');}
@@ -1 +1 @@
1
- const a21_0x16701a=a21_0x53c4;(function(_0x3581ca,_0x2b9bbe){const _0x2a56a4=a21_0x53c4,_0xd8d5a3=_0x3581ca();while(!![]){try{const _0x240cdc=-parseInt(_0x2a56a4(0x13c))/0x1*(-parseInt(_0x2a56a4(0x14b))/0x2)+-parseInt(_0x2a56a4(0x139))/0x3*(parseInt(_0x2a56a4(0x13e))/0x4)+parseInt(_0x2a56a4(0x14c))/0x5+parseInt(_0x2a56a4(0x149))/0x6*(parseInt(_0x2a56a4(0x137))/0x7)+-parseInt(_0x2a56a4(0x144))/0x8+-parseInt(_0x2a56a4(0x146))/0x9+parseInt(_0x2a56a4(0x147))/0xa;if(_0x240cdc===_0x2b9bbe)break;else _0xd8d5a3['push'](_0xd8d5a3['shift']());}catch(_0x3561aa){_0xd8d5a3['push'](_0xd8d5a3['shift']());}}}(a21_0x304e,0x4c358));function a21_0x53c4(_0x54d131,_0x1f6828){_0x54d131=_0x54d131-0x137;const _0x304e9d=a21_0x304e();let _0x53c4b6=_0x304e9d[_0x54d131];return _0x53c4b6;}export const GLOBAL_SCOPE_FLAG={'name':'global','type':a21_0x16701a(0x13d),'default':![],'description':a21_0x16701a(0x13a)};export const CODE_FLAG={'name':a21_0x16701a(0x14a),'type':a21_0x16701a(0x140),'required':!![],'description':a21_0x16701a(0x138),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)'}};export const SQLCODE_FLAG={'name':a21_0x16701a(0x142),'type':a21_0x16701a(0x140),'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_0x16701a(0x14d)}};export const VERBOSE_FLAG={'name':'verbose','type':a21_0x16701a(0x13d),'description':a21_0x16701a(0x143)};export const PARAMS_FLAG={'name':a21_0x16701a(0x13f),'type':'string','description':'Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)'};function a21_0x304e(){const _0x249626=['43233JOkNCe','Write\x20to\x20the\x20global\x20configuration','Resource\x20name\x20for\x20lookup','105113roMftE','boolean','104qQKGTk','params','string','number','sqlcode','Return\x20full\x20raw\x20response\x20object','1436896cspcFx','Resource\x20ID','2239155XDoTwZ','4910240biDNNx','name','30DBaXhE','code','8WOdxmZ','366170IPKNqD','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','182749rUZWsZ','Dataset\x20code\x20(32-char\x20hex\x20UUID)'];a21_0x304e=function(){return _0x249626;};return a21_0x304e();}export const NAME_FLAG={'name':a21_0x16701a(0x148),'type':a21_0x16701a(0x140),'description':a21_0x16701a(0x13b)};export const ID_FLAG={'name':'id','type':a21_0x16701a(0x141),'required':!![],'description':a21_0x16701a(0x145)};
1
+ function a21_0x549e(_0x3d96c0,_0x1dc71e){_0x3d96c0=_0x3d96c0-0x13e;const _0x27df5e=a21_0x27df();let _0x549e6d=_0x27df5e[_0x3d96c0];return _0x549e6d;}const a21_0x23aafe=a21_0x549e;(function(_0x32d3d7,_0x137526){const _0x7e4d77=a21_0x549e,_0x5ac038=_0x32d3d7();while(!![]){try{const _0x4e6bde=parseInt(_0x7e4d77(0x142))/0x1+parseInt(_0x7e4d77(0x143))/0x2+-parseInt(_0x7e4d77(0x14c))/0x3+-parseInt(_0x7e4d77(0x145))/0x4+parseInt(_0x7e4d77(0x14d))/0x5*(-parseInt(_0x7e4d77(0x14f))/0x6)+-parseInt(_0x7e4d77(0x147))/0x7+parseInt(_0x7e4d77(0x13e))/0x8;if(_0x4e6bde===_0x137526)break;else _0x5ac038['push'](_0x5ac038['shift']());}catch(_0xe50655){_0x5ac038['push'](_0x5ac038['shift']());}}}(a21_0x27df,0x30f61));export const GLOBAL_SCOPE_FLAG={'name':a21_0x23aafe(0x140),'type':'boolean','default':![],'description':a21_0x23aafe(0x141)};function a21_0x27df(){const _0xb0e5c7=['266988KTDTpv','3506vAXvLX','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','1466608kfgBlw','Resource\x20name\x20for\x20lookup','2369815nOBlRe','params','Return\x20full\x20raw\x20response\x20object','sqlcode','code','6384eqiAqi','612995YeMSXg','string','18Mhnuaz','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','8055408KtCEPq','Resource\x20ID','global','Write\x20to\x20the\x20global\x20configuration'];a21_0x27df=function(){return _0xb0e5c7;};return a21_0x27df();}export const CODE_FLAG={'name':a21_0x23aafe(0x14b),'type':a21_0x23aafe(0x14e),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a21_0x23aafe(0x144)}};export const SQLCODE_FLAG={'name':a21_0x23aafe(0x14a),'type':'string','required':!![],'description':a21_0x23aafe(0x151),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const VERBOSE_FLAG={'name':'verbose','type':'boolean','description':a21_0x23aafe(0x149)};export const PARAMS_FLAG={'name':a21_0x23aafe(0x148),'type':a21_0x23aafe(0x14e),'description':a21_0x23aafe(0x150)};export const NAME_FLAG={'name':'name','type':a21_0x23aafe(0x14e),'description':a21_0x23aafe(0x146)};export const ID_FLAG={'name':'id','type':'number','required':!![],'description':a21_0x23aafe(0x13f)};
@@ -1 +1 @@
1
- (function(_0x8265f9,_0x4cf5a2){const _0x18ac68=a22_0x1c56,_0x42437a=_0x8265f9();while(!![]){try{const _0x171526=-parseInt(_0x18ac68(0x1fb))/0x1+-parseInt(_0x18ac68(0x1f8))/0x2+-parseInt(_0x18ac68(0x1fa))/0x3+parseInt(_0x18ac68(0x1ee))/0x4+-parseInt(_0x18ac68(0x1f9))/0x5+parseInt(_0x18ac68(0x1fd))/0x6*(parseInt(_0x18ac68(0x1f0))/0x7)+-parseInt(_0x18ac68(0x1ef))/0x8*(-parseInt(_0x18ac68(0x1f1))/0x9);if(_0x171526===_0x4cf5a2)break;else _0x42437a['push'](_0x42437a['shift']());}catch(_0x264862){_0x42437a['push'](_0x42437a['shift']());}}}(a22_0x56a5,0x18de1));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';function a22_0x1c56(_0x67ef7f,_0x433b5f){_0x67ef7f=_0x67ef7f-0x1ed;const _0x56a577=a22_0x56a5();let _0x1c5698=_0x56a577[_0x67ef7f];return _0x1c5698;}const BYTES_PER_MB=0x400*0x400;function a22_0x56a5(){const _0x35a1b2=['\x20path\x20is\x20required.','validation','374260WDMLlv','564035bqLXxH','2235MhvUJI','49032JsuDUV','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','12RphdGQ','ceil','257500DWdfBj','112TgQdow','365729sWrhNh','181737jzdJdL','size','File\x20is\x20not\x20a\x20regular\x20file:\x20','isFile','toFixed'];a22_0x56a5=function(){return _0x35a1b2;};return a22_0x56a5();}export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x33eb29){const _0x4806d1=a22_0x1c56;if(_0x33eb29>=BYTES_PER_MB){const _0x296024=Math[_0x4806d1(0x1ed)](_0x33eb29/BYTES_PER_MB*0x64)/0x64;return _0x296024[_0x4806d1(0x1f5)](0x2)+'\x20MB';}return _0x33eb29+'\x20B';}export function requireRuntimeUploadFile(_0x3ce4d2,_0x5aaff3){const _0x388b2c=a22_0x1c56,_0x1031b6=_0x3ce4d2['trim']();if(!_0x1031b6)throw CliErrors['validation'](_0x5aaff3+_0x388b2c(0x1f6));if(!existsSync(_0x1031b6))throw CliErrors[_0x388b2c(0x1f7)]('File\x20not\x20found:\x20'+_0x1031b6);const _0x344883=statSync(_0x1031b6);if(!_0x344883[_0x388b2c(0x1f4)]())throw CliErrors['validation'](_0x388b2c(0x1f3)+_0x1031b6);if(_0x344883[_0x388b2c(0x1f2)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors['validation'](_0x388b2c(0x1fc)+_0x1031b6+'\x20('+formatBytes(_0x344883[_0x388b2c(0x1f2)])+')');return{'path':_0x1031b6,'size':_0x344883[_0x388b2c(0x1f2)]};}
1
+ (function(_0x188368,_0x1118ec){const _0xe2df77=a22_0xb534,_0x138063=_0x188368();while(!![]){try{const _0x321d12=parseInt(_0xe2df77(0x18d))/0x1*(-parseInt(_0xe2df77(0x1a0))/0x2)+-parseInt(_0xe2df77(0x19d))/0x3*(parseInt(_0xe2df77(0x190))/0x4)+-parseInt(_0xe2df77(0x18c))/0x5*(parseInt(_0xe2df77(0x19f))/0x6)+parseInt(_0xe2df77(0x199))/0x7*(-parseInt(_0xe2df77(0x18f))/0x8)+-parseInt(_0xe2df77(0x19b))/0x9+parseInt(_0xe2df77(0x19c))/0xa+parseInt(_0xe2df77(0x192))/0xb;if(_0x321d12===_0x1118ec)break;else _0x138063['push'](_0x138063['shift']());}catch(_0x9bd632){_0x138063['push'](_0x138063['shift']());}}}(a22_0x57f1,0x862fb));import{existsSync,statSync}from'node:fs';function a22_0x57f1(){const _0xd70279=['29dWLEeJ','size','7466504OvuKrF','15220bmOuoy','toFixed','24895101kQnnAx','\x20MB','trim','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','validation','ceil','File\x20not\x20found:\x20','7UYGeBM','\x20path\x20is\x20required.','899091VCbUss','3212520lXspTe','123mrDgSO','isFile','186ZtcHWo','16046mSEeLF','File\x20is\x20not\x20a\x20regular\x20file:\x20','98860MwrzpG'];a22_0x57f1=function(){return _0xd70279;};return a22_0x57f1();}import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function a22_0xb534(_0x2b2474,_0x1a19da){_0x2b2474=_0x2b2474-0x18b;const _0x57f193=a22_0x57f1();let _0xb534c5=_0x57f193[_0x2b2474];return _0xb534c5;}function formatBytes(_0x404750){const _0x251f96=a22_0xb534;if(_0x404750>=BYTES_PER_MB){const _0x22aba0=Math[_0x251f96(0x197)](_0x404750/BYTES_PER_MB*0x64)/0x64;return _0x22aba0[_0x251f96(0x191)](0x2)+_0x251f96(0x193);}return _0x404750+'\x20B';}export function requireRuntimeUploadFile(_0x3afba1,_0x522ccd){const _0x1c6b89=a22_0xb534,_0x5efb94=_0x3afba1[_0x1c6b89(0x194)]();if(!_0x5efb94)throw CliErrors[_0x1c6b89(0x196)](_0x522ccd+_0x1c6b89(0x19a));if(!existsSync(_0x5efb94))throw CliErrors[_0x1c6b89(0x196)](_0x1c6b89(0x198)+_0x5efb94);const _0x2310b7=statSync(_0x5efb94);if(!_0x2310b7[_0x1c6b89(0x19e)]())throw CliErrors[_0x1c6b89(0x196)](_0x1c6b89(0x18b)+_0x5efb94);if(_0x2310b7['size']>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x1c6b89(0x196)](_0x1c6b89(0x195)+_0x5efb94+'\x20('+formatBytes(_0x2310b7[_0x1c6b89(0x18e)])+')');return{'path':_0x5efb94,'size':_0x2310b7[_0x1c6b89(0x18e)]};}
@@ -1 +1 @@
1
- const a23_0x4b9976=a23_0x530c;(function(_0x4f7d1f,_0x51385c){const _0x5e2796=a23_0x530c,_0xf4fc0f=_0x4f7d1f();while(!![]){try{const _0x22fa3a=-parseInt(_0x5e2796(0x160))/0x1+parseInt(_0x5e2796(0x185))/0x2*(parseInt(_0x5e2796(0x17e))/0x3)+parseInt(_0x5e2796(0x16b))/0x4*(parseInt(_0x5e2796(0x187))/0x5)+parseInt(_0x5e2796(0x18d))/0x6+parseInt(_0x5e2796(0x1a4))/0x7*(-parseInt(_0x5e2796(0x1a7))/0x8)+-parseInt(_0x5e2796(0x19c))/0x9+-parseInt(_0x5e2796(0x178))/0xa;if(_0x22fa3a===_0x51385c)break;else _0xf4fc0f['push'](_0xf4fc0f['shift']());}catch(_0x212ef3){_0xf4fc0f['push'](_0xf4fc0f['shift']());}}}(a23_0x7693,0x5f7ae));function a23_0x7693(){const _0x25d60a=['read','join','1906407FXNkEm','pageSize','key','Usage:\x20','appcode','\x20(global)','Deleted\x20`','list','49SnlAGk','`\x20=\x20\x22','accessKey','394688oBhkst','field','Config\x20files:\x0a','Key\x20not\x20found:\x20','167657shykbg','Missing\x20key\x20argument.',';\x20apps.<alias>.appcode','Value\x20to\x20assign','delete','trim','Set\x20`','write','../../context.js','args','Deletes\x20a\x20Lovrabet\x20CLI\x20config\x20key.\x20Later\x20commands\x20will\x20fall\x20back\x20to\x20another\x20config\x20layer\x20or\x20the\x20default.','1321296Rytueg','\x20config\x20get\x20<key>','global','Delete\x20a\x20configuration\x20value','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','Settable\x20keys:\x20','\x22.\x20Allowed:\x20','includes','set','Missing\x20key\x20or\x20value.','pageSize\x20must\x20be\x20a\x20positive\x20number','\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.','Top-level\x20key\x20\x22','899640ogCXIJ','Key\x20already\x20absent:\x20','raw','\x22\x20is\x20not\x20settable.','isArray','format','264dCeTEX','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','object','Set\x20a\x20configuration\x20value','config','alias','\x20\x20global:\x20\x20','532KUvlOz','pretty','10pEiAbl','value','log','split','validation','keys','3130956EufLYO','stringify','locale','\x20config\x20set\x20<key>\x20<value>\x20[--global]','\x20\x20project:\x20','apps','length','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','project-or-global-explicit','bool','Invalid\x20locale\x20value.','get','Invalid\x20value\x20for\x20\x22'];a23_0x7693=function(){return _0x25d60a;};return a23_0x7693();}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';function a23_0x530c(_0x4ba612,_0x4d0f7b){_0x4ba612=_0x4ba612-0x15f;const _0x7693d6=a23_0x7693();let _0x530c0e=_0x7693d6[_0x4ba612];return _0x530c0e;}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(_0x3183c2){const _0x31ecd1=a23_0x530c,_0x4175d0=_0x3183c2[_0x31ecd1(0x18a)]('.');if(_0x4175d0['length']!==0x3||_0x4175d0[0x0]!==_0x31ecd1(0x192)||_0x4175d0[0x2]!=='appcode')return undefined;const _0x17af2d=_0x4175d0[0x1]?.[_0x31ecd1(0x165)]();return _0x17af2d?_0x17af2d:undefined;}function parseAliasDeleteKey(_0x42beb1){const _0x597337=a23_0x530c,_0x234788=_0x42beb1['split']('.');if(_0x234788[_0x597337(0x193)]===0x2&&_0x234788[0x0]===_0x597337(0x192)){const _0x2dd94b=_0x234788[0x1]?.['trim']();return _0x2dd94b?{'alias':_0x2dd94b}:undefined;}if(_0x234788['length']===0x3&&_0x234788[0x0]===_0x597337(0x192)&&_0x234788[0x2]===_0x597337(0x1a0)){const _0x1a62ef=_0x234788[0x1]?.['trim']();return _0x1a62ef?{'alias':_0x1a62ef,'field':_0x597337(0x1a0)}:undefined;}return undefined;}function setLocalAppAlias(_0x39a2d4,_0x515e96,_0x11b77d){const _0x2b34ec=a23_0x530c,_0x2fedf3=_0x39a2d4[_0x2b34ec(0x192)]&&typeof _0x39a2d4['apps']===_0x2b34ec(0x180)&&!Array['isArray'](_0x39a2d4[_0x2b34ec(0x192)])?_0x39a2d4[_0x2b34ec(0x192)]:{},_0x4cee25=_0x2fedf3[_0x515e96]&&typeof _0x2fedf3[_0x515e96]==='object'&&!Array[_0x2b34ec(0x17c)](_0x2fedf3[_0x515e96])?_0x2fedf3[_0x515e96]:{};_0x4cee25[_0x2b34ec(0x1a0)]=_0x11b77d,_0x2fedf3[_0x515e96]=_0x4cee25,_0x39a2d4[_0x2b34ec(0x192)]=_0x2fedf3;}function deleteLocalAppAlias(_0x25175f,_0x110bc7){const _0x773b99=a23_0x530c;if(!_0x25175f[_0x773b99(0x192)]||typeof _0x25175f[_0x773b99(0x192)]!==_0x773b99(0x180)||Array[_0x773b99(0x17c)](_0x25175f[_0x773b99(0x192)]))return![];const _0x146741=_0x25175f[_0x773b99(0x192)],_0x505969=_0x146741[_0x110bc7['alias']];if(!_0x505969||typeof _0x505969!==_0x773b99(0x180)||Array[_0x773b99(0x17c)](_0x505969))return![];if(!_0x110bc7[_0x773b99(0x1a8)])return delete _0x146741[_0x110bc7[_0x773b99(0x183)]],!![];if(!(_0x110bc7[_0x773b99(0x1a8)]in _0x505969))return![];return delete _0x505969[_0x110bc7[_0x773b99(0x1a8)]],Object[_0x773b99(0x18c)](_0x505969)[_0x773b99(0x193)]===0x0&&delete _0x146741[_0x110bc7['alias']],!![];}const listDef={'service':a23_0x4b9976(0x182),'command':a23_0x4b9976(0x1a3),'description':'List\x20current\x20config','risk':a23_0x4b9976(0x19a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x44dabf){const _0x596ab6=a23_0x4b9976,{buildConfigFromFlags:_0x37adbb}=await import(_0x596ab6(0x168)),_0x13dbd7=_0x37adbb({}),_0x3a0c74=redactCliConfigCredentials(_0x13dbd7[_0x596ab6(0x17a)]),_0x5d0925=getProjectConfigPath(),_0x2e5bf3=resolveWriteConfigPath('global');if(_0x44dabf[_0x596ab6(0x17d)]===_0x596ab6(0x186))return{'ok':!![],'message':_0x596ab6(0x16f)+(JSON[_0x596ab6(0x18e)](_0x3a0c74,null,0x2)+'\x0a\x0a')+_0x596ab6(0x1a9)+(_0x596ab6(0x191)+(_0x5d0925??'(none)')+'\x0a')+(_0x596ab6(0x184)+_0x2e5bf3)};return{'ok':!![],'data':{'effective':_0x3a0c74,'configFiles':{'project':_0x5d0925??null,'global':_0x2e5bf3}}};}},getDef={'service':a23_0x4b9976(0x182),'command':a23_0x4b9976(0x198),'description':'Get\x20a\x20config\x20value','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':a23_0x4b9976(0x17f),'required':!![]}],'flags':[],async 'execute'(_0x341b7f){const _0x21b8ab=a23_0x4b9976,_0x301d16=_0x341b7f[_0x21b8ab(0x169)][0x0];if(!_0x301d16)throw CliErrors['validation'](_0x21b8ab(0x161),_0x21b8ab(0x19f)+CLI_BIN_NAME+_0x21b8ab(0x16c));const {buildConfigFromFlags:_0x28e0e2}=await import('../../context.js'),{raw:_0x296db8}=_0x28e0e2({});if(_0x301d16['includes']('.')){const _0x491915=_0x301d16['split']('.');let _0x4aa2ae=_0x296db8;for(const _0x46be5e of _0x491915){if(_0x4aa2ae==null||typeof _0x4aa2ae!=='object')throw CliErrors[_0x21b8ab(0x18b)](_0x21b8ab(0x15f)+_0x301d16);_0x4aa2ae=_0x4aa2ae[_0x46be5e];}if(_0x4aa2ae===undefined)throw CliErrors[_0x21b8ab(0x18b)](_0x21b8ab(0x15f)+_0x301d16);const _0x363791=redactCliConfigValue(_0x301d16,_0x4aa2ae);return console['log'](typeof _0x363791===_0x21b8ab(0x180)?JSON['stringify'](_0x363791,null,0x2):String(_0x363791)),{'ok':!![]};}const _0x4ea87b=_0x296db8[_0x301d16];if(_0x4ea87b===undefined)throw CliErrors[_0x21b8ab(0x18b)](_0x21b8ab(0x15f)+_0x301d16);const _0x1b001e=redactCliConfigValue(_0x301d16,_0x4ea87b);return console['log'](typeof _0x1b001e==='object'?JSON[_0x21b8ab(0x18e)](_0x1b001e,null,0x2):String(_0x1b001e)),{'ok':!![]};}},setDef={'service':a23_0x4b9976(0x182),'command':a23_0x4b9976(0x173),'description':a23_0x4b9976(0x181),'risk':a23_0x4b9976(0x167),'confirmationDescription':'Changes\x20Lovrabet\x20CLI\x20configuration.\x20Later\x20commands\x20may\x20use\x20a\x20different\x20app,\x20environment,\x20or\x20output\x20behavior.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x4b9976(0x19e),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a23_0x4b9976(0x188),'description':a23_0x4b9976(0x163),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x198605){const _0x125272=a23_0x4b9976,_0xadaf11=_0x198605[_0x125272(0x169)][0x0],_0x569fe4=_0x198605[_0x125272(0x169)][0x1];if(!_0xadaf11||_0x569fe4===undefined)throw CliErrors['validation'](_0x125272(0x174),_0x125272(0x19f)+CLI_BIN_NAME+_0x125272(0x190));if(ENUM_KEYS[_0xadaf11]&&!ENUM_KEYS[_0xadaf11][_0x125272(0x172)](_0x569fe4))throw CliErrors[_0x125272(0x18b)](_0x125272(0x199)+_0xadaf11+_0x125272(0x171)+ENUM_KEYS[_0xadaf11][_0x125272(0x19b)](',\x20'));if(isCliProtectedConfigKey(_0xadaf11))throw CliErrors[_0x125272(0x18b)]('\x22'+_0xadaf11+_0x125272(0x176));if(_0xadaf11===_0x125272(0x19d)){const _0x49c724=Number(_0x569fe4);if(isNaN(_0x49c724)||_0x49c724<=0x0)throw CliErrors[_0x125272(0x18b)](_0x125272(0x175));}const _0x4225c5=resolveWriteScope({'explicitGlobal':_0x198605['bool'](_0x125272(0x16d)),'policy':_0x125272(0x195)}),_0x2a4ed5=toScopeFlags(_0x4225c5),_0x1e8fab=readScopedConfig(_0x2a4ed5),_0x886ac6=parseAliasAppcodeSetKey(_0xadaf11);if(!_0x886ac6&&!isTopLevelConfigKey(_0xadaf11))throw CliErrors['validation'](_0x125272(0x177)+_0xadaf11+_0x125272(0x17b),_0x125272(0x170)+getTopLevelConfigKeySummary()+_0x125272(0x162));if(_0x886ac6)setLocalAppAlias(_0x1e8fab,_0x886ac6,_0x569fe4);else{if(_0xadaf11===_0x125272(0x18f)){const _0x18e5f9=normalizeLocale(_0x569fe4);if(!_0x18e5f9)throw CliErrors[_0x125272(0x18b)](_0x125272(0x197),_0x125272(0x194));_0x1e8fab[_0x125272(0x18f)]=_0x18e5f9;}else _0x1e8fab[_0xadaf11]=_0xadaf11===_0x125272(0x19d)?Number(_0x569fe4):DOMAIN_CONFIG_FIELDS[_0x125272(0x172)](_0xadaf11)?normalizeDomainOrigin(_0xadaf11,_0x569fe4):_0x569fe4;}const _0x3988c4=_0xadaf11===_0x125272(0x1a6)?maskCliAccessKey(_0x569fe4):!_0x886ac6&&_0xadaf11===_0x125272(0x18f)?String(_0x1e8fab[_0x125272(0x18f)]):_0x569fe4;return console[_0x125272(0x189)](_0x125272(0x166)+_0xadaf11+_0x125272(0x1a5)+_0x3988c4+'\x22'+(_0x4225c5===_0x125272(0x16d)?_0x125272(0x1a1):'')),writeScopedConfig(_0x1e8fab,_0x2a4ed5),{'ok':!![]};}},deleteDef={'service':'config','command':a23_0x4b9976(0x164),'description':a23_0x4b9976(0x16e),'risk':a23_0x4b9976(0x167),'confirmationDescription':a23_0x4b9976(0x16a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x4b9976(0x19e),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x22da69){const _0x4851a7=a23_0x4b9976,_0x5cc850=_0x22da69['args'][0x0];if(!_0x5cc850)throw CliErrors[_0x4851a7(0x18b)](_0x4851a7(0x161),_0x4851a7(0x19f)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');if(isCliProtectedConfigKey(_0x5cc850))throw CliErrors['validation']('\x22'+_0x5cc850+'\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.');const _0x447420=resolveWriteScope({'explicitGlobal':_0x22da69[_0x4851a7(0x196)]('global'),'policy':'project-or-global-explicit'}),_0x2bef83=toScopeFlags(_0x447420),_0x8ec8d5=readScopedConfig(_0x2bef83),_0x496b5a=parseAliasDeleteKey(_0x5cc850);if(_0x496b5a){if(!deleteLocalAppAlias(_0x8ec8d5,_0x496b5a))return console[_0x4851a7(0x189)](_0x4851a7(0x179)+_0x5cc850+(_0x447420===_0x4851a7(0x16d)?'\x20(global)':'')),{'ok':!![],'data':{'key':_0x5cc850,'scope':_0x447420,'changed':![]}};return console[_0x4851a7(0x189)]('Deleted\x20`'+_0x5cc850+'`'+(_0x447420===_0x4851a7(0x16d)?_0x4851a7(0x1a1):'')),writeScopedConfig(_0x8ec8d5,_0x2bef83),{'ok':!![],'data':{'key':_0x5cc850,'scope':_0x447420,'changed':!![]}};}if(_0x8ec8d5[_0x5cc850]===undefined)return console[_0x4851a7(0x189)](_0x4851a7(0x179)+_0x5cc850+(_0x447420===_0x4851a7(0x16d)?_0x4851a7(0x1a1):'')),{'ok':!![],'data':{'key':_0x5cc850,'scope':_0x447420,'changed':![]}};return delete _0x8ec8d5[_0x5cc850],console[_0x4851a7(0x189)](_0x4851a7(0x1a2)+_0x5cc850+'`'+(_0x447420===_0x4851a7(0x16d)?'\x20(global)':'')),writeScopedConfig(_0x8ec8d5,_0x2bef83),{'ok':!![],'data':{'key':_0x5cc850,'scope':_0x447420,'changed':!![]}};}};export const configDefinitions=[configInitDefinition,listDef,getDef,setDef,deleteDef];
1
+ const a23_0x1053e1=a23_0x534c;(function(_0x23361a,_0x126995){const _0x3b60a9=a23_0x534c,_0x1cea42=_0x23361a();while(!![]){try{const _0x10589a=parseInt(_0x3b60a9(0x114))/0x1*(-parseInt(_0x3b60a9(0x106))/0x2)+parseInt(_0x3b60a9(0xff))/0x3*(-parseInt(_0x3b60a9(0x119))/0x4)+parseInt(_0x3b60a9(0x101))/0x5+parseInt(_0x3b60a9(0x10b))/0x6+parseInt(_0x3b60a9(0x11c))/0x7*(-parseInt(_0x3b60a9(0xfa))/0x8)+-parseInt(_0x3b60a9(0x116))/0x9*(parseInt(_0x3b60a9(0x11e))/0xa)+parseInt(_0x3b60a9(0x10f))/0xb;if(_0x10589a===_0x126995)break;else _0x1cea42['push'](_0x1cea42['shift']());}catch(_0x24c3d5){_0x1cea42['push'](_0x1cea42['shift']());}}}(a23_0xce4f,0x4d718));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';function a23_0x534c(_0x20269c,_0x82941b){_0x20269c=_0x20269c-0xef;const _0xce4f80=a23_0xce4f();let _0x534c1c=_0xce4f80[_0x20269c];return _0x534c1c;}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(_0x522c1f){const _0x1824ba=a23_0x534c,_0x497f3e=_0x522c1f[_0x1824ba(0x12f)]('.');if(_0x497f3e[_0x1824ba(0xfd)]!==0x3||_0x497f3e[0x0]!==_0x1824ba(0x104)||_0x497f3e[0x2]!==_0x1824ba(0x10c))return undefined;const _0x227495=_0x497f3e[0x1]?.[_0x1824ba(0x12b)]();return _0x227495?_0x227495:undefined;}function a23_0xce4f(){const _0x57b8ee=['get','\x20config\x20get\x20<key>','trim','(none)','read','includes','split','Value\x20to\x20assign','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','isArray','delete','object','\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.','format','field','Missing\x20key\x20or\x20value.','project-or-global-explicit','Delete\x20a\x20configuration\x20value','Settable\x20keys:\x20','\x20\x20global:\x20\x20','\x20(global)','pretty','8FBFRkh','config','join','length','Deletes\x20a\x20Lovrabet\x20CLI\x20config\x20key.\x20Later\x20commands\x20will\x20fall\x20back\x20to\x20another\x20config\x20layer\x20or\x20the\x20default.','15SXpaTU','set','2426900OGnfgC','key','accessKey','apps','Usage:\x20','2ylppYU','Missing\x20key\x20argument.','validation','keys','write','2034978ZxWAuU','appcode','Get\x20a\x20config\x20value','locale','11094424aANrYf','Key\x20not\x20found:\x20','Deleted\x20`','Config\x20files:\x0a','Set\x20a\x20configuration\x20value','265417QpRWOu','Key\x20already\x20absent:\x20','511587fDJuQk','\x22.\x20Allowed:\x20','Invalid\x20value\x20for\x20\x22','373144qJvJTi','../../context.js','log','4294801VPWeHB','pageSize','30UAOGPG','\x22\x20is\x20not\x20settable.','value','pageSize\x20must\x20be\x20a\x20positive\x20number','alias','stringify','args','global','\x20config\x20set\x20<key>\x20<value>\x20[--global]','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US',';\x20apps.<alias>.appcode'];a23_0xce4f=function(){return _0x57b8ee;};return a23_0xce4f();}function parseAliasDeleteKey(_0x4be56e){const _0x1d5469=a23_0x534c,_0x238d14=_0x4be56e['split']('.');if(_0x238d14[_0x1d5469(0xfd)]===0x2&&_0x238d14[0x0]===_0x1d5469(0x104)){const _0xd6e990=_0x238d14[0x1]?.[_0x1d5469(0x12b)]();return _0xd6e990?{'alias':_0xd6e990}:undefined;}if(_0x238d14[_0x1d5469(0xfd)]===0x3&&_0x238d14[0x0]===_0x1d5469(0x104)&&_0x238d14[0x2]===_0x1d5469(0x10c)){const _0x328809=_0x238d14[0x1]?.[_0x1d5469(0x12b)]();return _0x328809?{'alias':_0x328809,'field':_0x1d5469(0x10c)}:undefined;}return undefined;}function setLocalAppAlias(_0x93782c,_0x504984,_0x1c8caa){const _0x52defe=a23_0x534c,_0x3c3f0a=_0x93782c[_0x52defe(0x104)]&&typeof _0x93782c[_0x52defe(0x104)]===_0x52defe(0xef)&&!Array['isArray'](_0x93782c[_0x52defe(0x104)])?_0x93782c['apps']:{},_0x392718=_0x3c3f0a[_0x504984]&&typeof _0x3c3f0a[_0x504984]==='object'&&!Array[_0x52defe(0x132)](_0x3c3f0a[_0x504984])?_0x3c3f0a[_0x504984]:{};_0x392718[_0x52defe(0x10c)]=_0x1c8caa,_0x3c3f0a[_0x504984]=_0x392718,_0x93782c['apps']=_0x3c3f0a;}function deleteLocalAppAlias(_0x3915cd,_0x18f7e3){const _0x21bb1c=a23_0x534c;if(!_0x3915cd['apps']||typeof _0x3915cd['apps']!==_0x21bb1c(0xef)||Array[_0x21bb1c(0x132)](_0x3915cd['apps']))return![];const _0x4619bf=_0x3915cd['apps'],_0x1f775c=_0x4619bf[_0x18f7e3[_0x21bb1c(0x122)]];if(!_0x1f775c||typeof _0x1f775c!=='object'||Array[_0x21bb1c(0x132)](_0x1f775c))return![];if(!_0x18f7e3[_0x21bb1c(0xf2)])return delete _0x4619bf[_0x18f7e3['alias']],!![];if(!(_0x18f7e3['field']in _0x1f775c))return![];return delete _0x1f775c[_0x18f7e3[_0x21bb1c(0xf2)]],Object[_0x21bb1c(0x109)](_0x1f775c)['length']===0x0&&delete _0x4619bf[_0x18f7e3['alias']],!![];}const listDef={'service':a23_0x1053e1(0xfb),'command':'list','description':'List\x20current\x20config','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0xf40a9){const _0x39ecf3=a23_0x1053e1,{buildConfigFromFlags:_0x586a54}=await import(_0x39ecf3(0x11a)),_0x5f155b=_0x586a54({}),_0x5611c6=redactCliConfigCredentials(_0x5f155b['raw']),_0x226a79=getProjectConfigPath(),_0x19531d=resolveWriteConfigPath(_0x39ecf3(0x125));if(_0xf40a9[_0x39ecf3(0xf1)]===_0x39ecf3(0xf9))return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON['stringify'](_0x5611c6,null,0x2)+'\x0a\x0a')+_0x39ecf3(0x112)+('\x20\x20project:\x20'+(_0x226a79??_0x39ecf3(0x12c))+'\x0a')+(_0x39ecf3(0xf7)+_0x19531d)};return{'ok':!![],'data':{'effective':_0x5611c6,'configFiles':{'project':_0x226a79??null,'global':_0x19531d}}};}},getDef={'service':a23_0x1053e1(0xfb),'command':a23_0x1053e1(0x129),'description':a23_0x1053e1(0x10d),'risk':a23_0x1053e1(0x12d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x1053e1(0x102),'description':a23_0x1053e1(0x131),'required':!![]}],'flags':[],async 'execute'(_0x53c6c0){const _0x43f5e2=a23_0x1053e1,_0x13deda=_0x53c6c0['args'][0x0];if(!_0x13deda)throw CliErrors['validation'](_0x43f5e2(0x107),_0x43f5e2(0x105)+CLI_BIN_NAME+_0x43f5e2(0x12a));const {buildConfigFromFlags:_0x273933}=await import(_0x43f5e2(0x11a)),{raw:_0x4677ec}=_0x273933({});if(_0x13deda[_0x43f5e2(0x12e)]('.')){const _0x1ed4a7=_0x13deda[_0x43f5e2(0x12f)]('.');let _0x399bfc=_0x4677ec;for(const _0x4aa337 of _0x1ed4a7){if(_0x399bfc==null||typeof _0x399bfc!=='object')throw CliErrors[_0x43f5e2(0x108)](_0x43f5e2(0x110)+_0x13deda);_0x399bfc=_0x399bfc[_0x4aa337];}if(_0x399bfc===undefined)throw CliErrors[_0x43f5e2(0x108)](_0x43f5e2(0x110)+_0x13deda);const _0x27ed0e=redactCliConfigValue(_0x13deda,_0x399bfc);return console[_0x43f5e2(0x11b)](typeof _0x27ed0e===_0x43f5e2(0xef)?JSON[_0x43f5e2(0x123)](_0x27ed0e,null,0x2):String(_0x27ed0e)),{'ok':!![]};}const _0x116c06=_0x4677ec[_0x13deda];if(_0x116c06===undefined)throw CliErrors[_0x43f5e2(0x108)]('Key\x20not\x20found:\x20'+_0x13deda);const _0x594d33=redactCliConfigValue(_0x13deda,_0x116c06);return console[_0x43f5e2(0x11b)](typeof _0x594d33===_0x43f5e2(0xef)?JSON[_0x43f5e2(0x123)](_0x594d33,null,0x2):String(_0x594d33)),{'ok':!![]};}},setDef={'service':a23_0x1053e1(0xfb),'command':a23_0x1053e1(0x100),'description':a23_0x1053e1(0x113),'risk':'write','confirmationDescription':'Changes\x20Lovrabet\x20CLI\x20configuration.\x20Later\x20commands\x20may\x20use\x20a\x20different\x20app,\x20environment,\x20or\x20output\x20behavior.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x1053e1(0x102),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a23_0x1053e1(0x120),'description':a23_0x1053e1(0x130),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x38c4bb){const _0x59e404=a23_0x1053e1,_0x548906=_0x38c4bb[_0x59e404(0x124)][0x0],_0x253a24=_0x38c4bb[_0x59e404(0x124)][0x1];if(!_0x548906||_0x253a24===undefined)throw CliErrors[_0x59e404(0x108)](_0x59e404(0xf3),_0x59e404(0x105)+CLI_BIN_NAME+_0x59e404(0x126));if(ENUM_KEYS[_0x548906]&&!ENUM_KEYS[_0x548906][_0x59e404(0x12e)](_0x253a24))throw CliErrors[_0x59e404(0x108)](_0x59e404(0x118)+_0x548906+_0x59e404(0x117)+ENUM_KEYS[_0x548906][_0x59e404(0xfc)](',\x20'));if(isCliProtectedConfigKey(_0x548906))throw CliErrors[_0x59e404(0x108)]('\x22'+_0x548906+_0x59e404(0xf0));if(_0x548906===_0x59e404(0x11d)){const _0x3fe140=Number(_0x253a24);if(isNaN(_0x3fe140)||_0x3fe140<=0x0)throw CliErrors[_0x59e404(0x108)](_0x59e404(0x121));}const _0x4db576=resolveWriteScope({'explicitGlobal':_0x38c4bb['bool'](_0x59e404(0x125)),'policy':'project-or-global-explicit'}),_0x37fffc=toScopeFlags(_0x4db576),_0x288058=readScopedConfig(_0x37fffc),_0x34f197=parseAliasAppcodeSetKey(_0x548906);if(!_0x34f197&&!isTopLevelConfigKey(_0x548906))throw CliErrors[_0x59e404(0x108)]('Top-level\x20key\x20\x22'+_0x548906+_0x59e404(0x11f),_0x59e404(0xf6)+getTopLevelConfigKeySummary()+_0x59e404(0x128));if(_0x34f197)setLocalAppAlias(_0x288058,_0x34f197,_0x253a24);else{if(_0x548906===_0x59e404(0x10e)){const _0x1f1a32=normalizeLocale(_0x253a24);if(!_0x1f1a32)throw CliErrors[_0x59e404(0x108)]('Invalid\x20locale\x20value.',_0x59e404(0x127));_0x288058[_0x59e404(0x10e)]=_0x1f1a32;}else _0x288058[_0x548906]=_0x548906===_0x59e404(0x11d)?Number(_0x253a24):DOMAIN_CONFIG_FIELDS[_0x59e404(0x12e)](_0x548906)?normalizeDomainOrigin(_0x548906,_0x253a24):_0x253a24;}const _0x9ec08=_0x548906===_0x59e404(0x103)?maskCliAccessKey(_0x253a24):!_0x34f197&&_0x548906===_0x59e404(0x10e)?String(_0x288058[_0x59e404(0x10e)]):_0x253a24;return console[_0x59e404(0x11b)]('Set\x20`'+_0x548906+'`\x20=\x20\x22'+_0x9ec08+'\x22'+(_0x4db576===_0x59e404(0x125)?_0x59e404(0xf8):'')),writeScopedConfig(_0x288058,_0x37fffc),{'ok':!![]};}},deleteDef={'service':'config','command':a23_0x1053e1(0x133),'description':a23_0x1053e1(0xf5),'risk':a23_0x1053e1(0x10a),'confirmationDescription':a23_0x1053e1(0xfe),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x1053e1(0x102),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x51f80c){const _0x9fc2d0=a23_0x1053e1,_0x44ca96=_0x51f80c[_0x9fc2d0(0x124)][0x0];if(!_0x44ca96)throw CliErrors[_0x9fc2d0(0x108)]('Missing\x20key\x20argument.','Usage:\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');if(isCliProtectedConfigKey(_0x44ca96))throw CliErrors[_0x9fc2d0(0x108)]('\x22'+_0x44ca96+_0x9fc2d0(0xf0));const _0x460354=resolveWriteScope({'explicitGlobal':_0x51f80c['bool'](_0x9fc2d0(0x125)),'policy':_0x9fc2d0(0xf4)}),_0xabba9=toScopeFlags(_0x460354),_0x9009fc=readScopedConfig(_0xabba9),_0x4c55b5=parseAliasDeleteKey(_0x44ca96);if(_0x4c55b5){if(!deleteLocalAppAlias(_0x9009fc,_0x4c55b5))return console[_0x9fc2d0(0x11b)]('Key\x20already\x20absent:\x20'+_0x44ca96+(_0x460354===_0x9fc2d0(0x125)?_0x9fc2d0(0xf8):'')),{'ok':!![],'data':{'key':_0x44ca96,'scope':_0x460354,'changed':![]}};return console[_0x9fc2d0(0x11b)]('Deleted\x20`'+_0x44ca96+'`'+(_0x460354===_0x9fc2d0(0x125)?'\x20(global)':'')),writeScopedConfig(_0x9009fc,_0xabba9),{'ok':!![],'data':{'key':_0x44ca96,'scope':_0x460354,'changed':!![]}};}if(_0x9009fc[_0x44ca96]===undefined)return console[_0x9fc2d0(0x11b)](_0x9fc2d0(0x115)+_0x44ca96+(_0x460354===_0x9fc2d0(0x125)?_0x9fc2d0(0xf8):'')),{'ok':!![],'data':{'key':_0x44ca96,'scope':_0x460354,'changed':![]}};return delete _0x9009fc[_0x44ca96],console[_0x9fc2d0(0x11b)](_0x9fc2d0(0x111)+_0x44ca96+'`'+(_0x460354==='global'?_0x9fc2d0(0xf8):'')),writeScopedConfig(_0x9009fc,_0xabba9),{'ok':!![],'data':{'key':_0x44ca96,'scope':_0x460354,'changed':!![]}};}};export const configDefinitions=[configInitDefinition,listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- const a24_0x347172=a24_0x4e8f;function a24_0x4e8f(_0x14bab9,_0x43156a){_0x14bab9=_0x14bab9-0xc2;const _0x298337=a24_0x2983();let _0x4e8f32=_0x298337[_0x14bab9];return _0x4e8f32;}(function(_0x46e153,_0x5f0427){const _0x2a8b2f=a24_0x4e8f,_0x5b09fe=_0x46e153();while(!![]){try{const _0x3068c6=parseInt(_0x2a8b2f(0xe3))/0x1*(parseInt(_0x2a8b2f(0xe1))/0x2)+parseInt(_0x2a8b2f(0xc2))/0x3+parseInt(_0x2a8b2f(0xea))/0x4*(-parseInt(_0x2a8b2f(0xdb))/0x5)+-parseInt(_0x2a8b2f(0xd5))/0x6*(parseInt(_0x2a8b2f(0xd7))/0x7)+-parseInt(_0x2a8b2f(0xef))/0x8+parseInt(_0x2a8b2f(0xe5))/0x9*(-parseInt(_0x2a8b2f(0xd3))/0xa)+parseInt(_0x2a8b2f(0xf1))/0xb;if(_0x3068c6===_0x5f0427)break;else _0x5b09fe['push'](_0x5b09fe['shift']());}catch(_0x31e521){_0x5b09fe['push'](_0x5b09fe['shift']());}}}(a24_0x2983,0xf1345));import{select}from'@inquirer/prompts';function a24_0x2983(){const _0x569a01=['runtime-domain','Available\x20regions:\x20','Lovrabet\x20connection\x20configured\x20for\x20region:\x20','420BHogPj','config','4609422aQOdZp','Custom\x20User\x20HTTPS\x20origin','14WCxQsT','write','harness-domain','manifestDomains','9485dQQGkg','mode','str','official','api-domain','join','454906MLxgsI','Select\x20Lovrabet\x20region','2wWeZAP','region','79749xUwJjE','cancelled','user-domain','Region\x20\x22','Updates\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20AccessKey,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','3756MCaNDb','\x22\x20is\x20not\x20currently\x20available.','nonInteractive','Custom\x20Harness\x20HTTPS\x20origin','Lovrabet\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','2020528JIyctA','keys','45090320pzEzBZ','1129296vzHKkU','Custom\x20SkillHub\x20HTTPS\x20origin','string','name','domain-config','routing','validation','Custom\x20KB\x20Service\x20HTTPS\x20origin','init','map','independent','label','domains','enterprise-v1'];a24_0x2983=function(){return _0x569a01;};return a24_0x2983();}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_0x347172(0xc6),'type':a24_0x347172(0xc4),'description':'Independent-deployment\x20Domain\x20JSON\x20file'},{'name':a24_0x347172(0xe7),'type':a24_0x347172(0xc4),'description':a24_0x347172(0xd6)},{'name':a24_0x347172(0xdf),'type':a24_0x347172(0xc4),'description':'Custom\x20platform\x20API\x20HTTPS\x20origin'},{'name':a24_0x347172(0xd0),'type':'string','description':'Custom\x20Runtime\x20HTTPS\x20origin'},{'name':'skill-domain','type':a24_0x347172(0xc4),'description':a24_0x347172(0xc3)},{'name':'kb-service-domain','type':'string','description':a24_0x347172(0xc9)},{'name':a24_0x347172(0xd9),'type':a24_0x347172(0xc4),'description':a24_0x347172(0xed)}];export const configInitFlags=[{'name':a24_0x347172(0xe4),'type':a24_0x347172(0xc4),'description':'Official\x20Lovrabet\x20region:\x20'+ENABLED_LOVRABET_REGION_VALUES[a24_0x347172(0xe0)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},...domainFlags];async function resolveRegion(_0x40f314){const _0x427b1d=a24_0x347172,_0x23ba24=_0x40f314['str']('region');if(_0x23ba24){if(!isEnabledLovrabetRegion(_0x23ba24))throw CliErrors[_0x427b1d(0xc8)](_0x427b1d(0xe8)+_0x23ba24+_0x427b1d(0xeb),_0x427b1d(0xd1)+ENABLED_LOVRABET_REGION_VALUES[_0x427b1d(0xe0)](',\x20'));return _0x23ba24;}if(_0x40f314[_0x427b1d(0xec)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x427b1d(0xe2),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x427b1d(0xcb)](_0xaad7ac=>({'name':OFFICIAL_ROUTING_PROFILES[_0xaad7ac][_0x427b1d(0xcd)]+'\x20('+_0xaad7ac+')','value':_0xaad7ac}))});}catch(_0x4c10c0){if(_0x4c10c0?.[_0x427b1d(0xc5)]==='ExitPromptError')throw CliErrors[_0x427b1d(0xe6)]();throw _0x4c10c0;}}export async function executeConfigInit(_0x1f5425){const _0x1aa06c=a24_0x347172,_0x187848=resolveDomainConfigInput(_0x1f5425),_0x496949=_0x187848[_0x1aa06c(0xce)],_0x2bcfd0=Object[_0x1aa06c(0xf0)](_0x496949)['length']>0x0||_0x187848[_0x1aa06c(0xdc)]===_0x1aa06c(0xcf);if(_0x2bcfd0&&_0x1f5425[_0x1aa06c(0xdd)](_0x1aa06c(0xe4)))throw CliErrors['validation']('Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.');const _0x3c11d5={'global':!![]},_0x394d5e=readScopedConfig(_0x3c11d5);for(const _0xcaa6f1 of DOMAIN_CONFIG_FIELDS)delete _0x394d5e[_0xcaa6f1];for(const _0x29321d of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x394d5e[_0x29321d];delete _0x394d5e[_0x1aa06c(0xc7)];let _0x1adecf=null;if(_0x2bcfd0)delete _0x394d5e[_0x1aa06c(0xe4)],_0x187848[_0x1aa06c(0xdc)]===_0x1aa06c(0xcf)?_0x394d5e[_0x1aa06c(0xc7)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x187848[_0x1aa06c(0xda)]}:Object['assign'](_0x394d5e,_0x496949);else{_0x1adecf=await resolveRegion(_0x1f5425);if(_0x1adecf===DEFAULT_LOVRABET_REGION)delete _0x394d5e['region'];else _0x394d5e[_0x1aa06c(0xe4)]=_0x1adecf;}return writeScopedConfig(_0x394d5e,_0x3c11d5),{'ok':!![],'message':_0x2bcfd0?_0x1aa06c(0xee)+Object['keys'](_0x187848[_0x1aa06c(0xdc)]===_0x1aa06c(0xcf)?_0x187848[_0x1aa06c(0xda)]:_0x496949)[_0x1aa06c(0xe0)](',\x20')+'.':_0x1aa06c(0xd2)+_0x1adecf+'.','data':{'mode':_0x2bcfd0?_0x1aa06c(0xcc):_0x1aa06c(0xde),'protocol':_0x187848[_0x1aa06c(0xdc)]===_0x1aa06c(0xcf)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x1adecf,'domains':_0x496949}};}export const configInitDefinition={'service':a24_0x347172(0xd4),'command':a24_0x347172(0xca),'description':'Initialize\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','risk':a24_0x347172(0xd8),'confirmationDescription':a24_0x347172(0xe9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
1
+ const a24_0x448fac=a24_0x124d;(function(_0x1a596f,_0x472e7e){const _0x2a4e50=a24_0x124d,_0x45de54=_0x1a596f();while(!![]){try{const _0xbda186=parseInt(_0x2a4e50(0x9e))/0x1*(-parseInt(_0x2a4e50(0x99))/0x2)+parseInt(_0x2a4e50(0xa9))/0x3*(parseInt(_0x2a4e50(0xa6))/0x4)+-parseInt(_0x2a4e50(0xb8))/0x5+-parseInt(_0x2a4e50(0x89))/0x6*(-parseInt(_0x2a4e50(0xab))/0x7)+parseInt(_0x2a4e50(0x97))/0x8*(parseInt(_0x2a4e50(0x91))/0x9)+parseInt(_0x2a4e50(0x90))/0xa+-parseInt(_0x2a4e50(0x8b))/0xb*(parseInt(_0x2a4e50(0x8d))/0xc);if(_0xbda186===_0x472e7e)break;else _0x45de54['push'](_0x45de54['shift']());}catch(_0x8a0d4){_0x45de54['push'](_0x45de54['shift']());}}}(a24_0x186e,0x7fd24));import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';function a24_0x186e(){const _0x58b232=['official','config','label','Available\x20regions:\x20','Select\x20Lovrabet\x20region','kb-service-domain','harness-domain','name','skill-domain','join','4193240EXfJyw','routing','keys','Custom\x20Runtime\x20HTTPS\x20origin','independent','length','18VzUumC','Custom\x20Harness\x20HTTPS\x20origin','11TjCmcE','api-domain','16291356FnhwQX','region','manifestDomains','8152360fBDXZo','4982301AtzkGK','Custom\x20platform\x20API\x20HTTPS\x20origin','nonInteractive','Official\x20Lovrabet\x20region:\x20','domain-config','assign','8afGxYw','string','16PKyUMK','Lovrabet\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','init','mode','Initialize\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','22153YBwCPT','cancelled','Region\x20\x22','\x22\x20is\x20not\x20currently\x20available.','user-domain','ExitPromptError','Independent-deployment\x20Domain\x20JSON\x20file','domains','4dBDpUx','str','enterprise-v1','1492437lgGedB','Lovrabet\x20connection\x20configured\x20for\x20region:\x20','2405053LLedbz','Custom\x20SkillHub\x20HTTPS\x20origin','validation'];a24_0x186e=function(){return _0x58b232;};return a24_0x186e();}import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';function a24_0x124d(_0x401abf,_0x24fa3d){_0x401abf=_0x401abf-0x88;const _0x186ea0=a24_0x186e();let _0x124dbf=_0x186ea0[_0x401abf];return _0x124dbf;}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_0x448fac(0x95),'type':a24_0x448fac(0x98),'description':a24_0x448fac(0xa4)},{'name':a24_0x448fac(0xa2),'type':a24_0x448fac(0x98),'description':'Custom\x20User\x20HTTPS\x20origin'},{'name':a24_0x448fac(0x8c),'type':'string','description':a24_0x448fac(0x92)},{'name':'runtime-domain','type':a24_0x448fac(0x98),'description':a24_0x448fac(0xbb)},{'name':a24_0x448fac(0xb6),'type':'string','description':a24_0x448fac(0xac)},{'name':a24_0x448fac(0xb3),'type':a24_0x448fac(0x98),'description':'Custom\x20KB\x20Service\x20HTTPS\x20origin'},{'name':a24_0x448fac(0xb4),'type':'string','description':a24_0x448fac(0x8a)}];export const configInitFlags=[{'name':'region','type':a24_0x448fac(0x98),'description':a24_0x448fac(0x94)+ENABLED_LOVRABET_REGION_VALUES[a24_0x448fac(0xb7)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},...domainFlags];async function resolveRegion(_0x552026){const _0x12c43a=a24_0x448fac,_0x288177=_0x552026[_0x12c43a(0xa7)](_0x12c43a(0x8e));if(_0x288177){if(!isEnabledLovrabetRegion(_0x288177))throw CliErrors[_0x12c43a(0xad)](_0x12c43a(0xa0)+_0x288177+_0x12c43a(0xa1),_0x12c43a(0xb1)+ENABLED_LOVRABET_REGION_VALUES[_0x12c43a(0xb7)](',\x20'));return _0x288177;}if(_0x552026[_0x12c43a(0x93)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x12c43a(0xb2),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES['map'](_0x49101b=>({'name':OFFICIAL_ROUTING_PROFILES[_0x49101b][_0x12c43a(0xb0)]+'\x20('+_0x49101b+')','value':_0x49101b}))});}catch(_0x39d27c){if(_0x39d27c?.[_0x12c43a(0xb5)]===_0x12c43a(0xa3))throw CliErrors[_0x12c43a(0x9f)]();throw _0x39d27c;}}export async function executeConfigInit(_0x472af7){const _0x11d8fc=a24_0x448fac,_0x5d805a=resolveDomainConfigInput(_0x472af7),_0x152271=_0x5d805a[_0x11d8fc(0xa5)],_0xad962f=Object['keys'](_0x152271)[_0x11d8fc(0x88)]>0x0||_0x5d805a['mode']===_0x11d8fc(0xa8);if(_0xad962f&&_0x472af7[_0x11d8fc(0xa7)](_0x11d8fc(0x8e)))throw CliErrors[_0x11d8fc(0xad)]('Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.');const _0x237027={'global':!![]},_0x379c35=readScopedConfig(_0x237027);for(const _0x2b0e77 of DOMAIN_CONFIG_FIELDS)delete _0x379c35[_0x2b0e77];for(const _0x35ea71 of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x379c35[_0x35ea71];delete _0x379c35[_0x11d8fc(0xb9)];let _0x2bdc71=null;if(_0xad962f)delete _0x379c35[_0x11d8fc(0x8e)],_0x5d805a[_0x11d8fc(0x9c)]===_0x11d8fc(0xa8)?_0x379c35[_0x11d8fc(0xb9)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x5d805a[_0x11d8fc(0x8f)]}:Object[_0x11d8fc(0x96)](_0x379c35,_0x152271);else{_0x2bdc71=await resolveRegion(_0x472af7);if(_0x2bdc71===DEFAULT_LOVRABET_REGION)delete _0x379c35[_0x11d8fc(0x8e)];else _0x379c35[_0x11d8fc(0x8e)]=_0x2bdc71;}return writeScopedConfig(_0x379c35,_0x237027),{'ok':!![],'message':_0xad962f?_0x11d8fc(0x9a)+Object[_0x11d8fc(0xba)](_0x5d805a[_0x11d8fc(0x9c)]===_0x11d8fc(0xa8)?_0x5d805a[_0x11d8fc(0x8f)]:_0x152271)[_0x11d8fc(0xb7)](',\x20')+'.':_0x11d8fc(0xaa)+_0x2bdc71+'.','data':{'mode':_0xad962f?_0x11d8fc(0xbc):_0x11d8fc(0xae),'protocol':_0x5d805a[_0x11d8fc(0x9c)]===_0x11d8fc(0xa8)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x2bdc71,'domains':_0x152271}};}export const configInitDefinition={'service':a24_0x448fac(0xaf),'command':a24_0x448fac(0x9b),'description':a24_0x448fac(0x9d),'risk':'write','confirmationDescription':'Updates\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20AccessKey,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
@@ -1 +1 @@
1
- function a25_0x5698(){var _0x483fe7=['3151631aJtAdS','8zUrlpR','16fkUXYP','5890146mIBOrk','979600ejsrMP','1049106bkRswk','1670VmtlAO','1555836IrCfyh','1584318igflCt','71937YCiRpo'];a25_0x5698=function(){return _0x483fe7;};return a25_0x5698();}(function(_0x5e6562,_0xb849e3){var _0x51457b=a25_0x3bd6,_0x4459d7=_0x5e6562();while(!![]){try{var _0x3fe828=parseInt(_0x51457b(0x141))/0x1+-parseInt(_0x51457b(0x139))/0x2+-parseInt(_0x51457b(0x13a))/0x3+-parseInt(_0x51457b(0x13e))/0x4*(-parseInt(_0x51457b(0x140))/0x5)+parseInt(_0x51457b(0x13f))/0x6+parseInt(_0x51457b(0x13c))/0x7*(parseInt(_0x51457b(0x13d))/0x8)+-parseInt(_0x51457b(0x13b))/0x9*(parseInt(_0x51457b(0x138))/0xa);if(_0x3fe828===_0xb849e3)break;else _0x4459d7['push'](_0x4459d7['shift']());}catch(_0x3797d3){_0x4459d7['push'](_0x4459d7['shift']());}}}(a25_0x5698,0x984ef));function a25_0x3bd6(_0x7e9890,_0x4ec12f){_0x7e9890=_0x7e9890-0x138;var _0x56987c=a25_0x5698();var _0x3bd63e=_0x56987c[_0x7e9890];return _0x3bd63e;}import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};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
+ function a25_0x14c5(){var _0x5dbe81=['27wGoIFq','1692677Lrxbfy','224399HnszlS','1411950WmKQVI','379810QTlnti','24QNlPNy','6496758oOJAOX','1187444EgyuYg','156988hXRfut','45bCRvSS'];a25_0x14c5=function(){return _0x5dbe81;};return a25_0x14c5();}(function(_0xa26ff5,_0x3ef306){var _0x8fe658=a25_0x4380,_0x115d18=_0xa26ff5();while(!![]){try{var _0x4d048c=parseInt(_0x8fe658(0x176))/0x1+parseInt(_0x8fe658(0x171))/0x2+-parseInt(_0x8fe658(0x174))/0x3*(parseInt(_0x8fe658(0x172))/0x4)+parseInt(_0x8fe658(0x177))/0x5+-parseInt(_0x8fe658(0x170))/0x6+parseInt(_0x8fe658(0x175))/0x7*(parseInt(_0x8fe658(0x179))/0x8)+parseInt(_0x8fe658(0x173))/0x9*(parseInt(_0x8fe658(0x178))/0xa);if(_0x4d048c===_0x3ef306)break;else _0x115d18['push'](_0x115d18['shift']());}catch(_0x49f7bf){_0x115d18['push'](_0x115d18['shift']());}}}(a25_0x14c5,0x8d8f9));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};function a25_0x4380(_0x3c9f31,_0x2f9dba){_0x3c9f31=_0x3c9f31-0x170;var _0x14c53f=a25_0x14c5();var _0x43808f=_0x14c53f[_0x3c9f31];return _0x43808f;}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_0xc256a7=a26_0x29b0;(function(_0x42be15,_0x3c6e3c){const _0x42f244=a26_0x29b0,_0x412788=_0x42be15();while(!![]){try{const _0x4c6889=parseInt(_0x42f244(0x18d))/0x1*(-parseInt(_0x42f244(0x19f))/0x2)+parseInt(_0x42f244(0x1da))/0x3*(-parseInt(_0x42f244(0x1b2))/0x4)+-parseInt(_0x42f244(0x1a5))/0x5*(parseInt(_0x42f244(0x188))/0x6)+parseInt(_0x42f244(0x18b))/0x7*(parseInt(_0x42f244(0x191))/0x8)+parseInt(_0x42f244(0x1b8))/0x9*(-parseInt(_0x42f244(0x186))/0xa)+parseInt(_0x42f244(0x1ba))/0xb+parseInt(_0x42f244(0x18f))/0xc;if(_0x4c6889===_0x3c6e3c)break;else _0x412788['push'](_0x412788['shift']());}catch(_0x16d89d){_0x412788['push'](_0x412788['shift']());}}}(a26_0x3458,0x700ec));import{readFile,realpath}from'node:fs/promises';function a26_0x3458(){const _0x1c9c56=['\x20--code\x20','str','22385dYXhim','Excel\x20import\x20failed.','Private\x20result\x20report\x20(default:\x20XLSX\x20path\x20plus\x20.import-report.json)','code','hashes','Source,\x20mapping,\x20checkpoint\x20and\x20report\x20must\x20be\x20different\x20files.','resume','mapping','\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.','.lock','POST','JSON\x20file\x20mapping\x20Excel\x20headers\x20to\x20dataset\x20field\x20codes','Excel\x20contains\x20','20tJoiwP','batch-size','Mapping\x20must\x20be\x20an\x20object\x20from\x20Excel\x20headers\x20to\x20field\x20codes.','.\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','bool','.lock.recovery','45yVNLTG','.rows.json','4959658bprLgI','string','sheet','Dataset\x20source\x20is\x20missing\x20or\x20unsupported;\x20import-excel\x20requires\x20METADATA.','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.','.import-checkpoint.json','rows','DB_TABLE','Creates\x20real\x20dataset\x20records\x20immediately.\x20Keep\x20the\x20checkpoint\x20to\x20reconcile\x20and\x20resume\x20interrupted\x20imports.','warnings','See\x20','schemaFingerprint','Mapping\x20file\x20must\x20contain\x20valid\x20JSON.','all','length','file','max','Batch\x20size\x20exceeds\x20the\x20server\x20import\x20contract.','validation','mappingFile','number','Worksheet\x20name\x20or\x201-based\x20index\x20(default:\x20first\x20worksheet)','rowNumber','data','Local\x20Excel\x20validation\x20only;\x20no\x20records\x20or\x20checkpoint\x20were\x20written.','1-based\x20Excel\x20header\x20row','media','emptyRows','Local\x20XLSX\x20file\x20(maximum\x2020\x20MB)','size','slice','\x20records.','51375KomlzR','boolean','report','object','1651810JpoDRN','map','1152upidwb','succeeded','appCode','91343xwemAv','header-row','43lUEQbk','errors','16991736dimQoJ','Reconcile\x20imported\x20records\x20and\x20resume\x20the\x20exact\x20original\x20file,\x20target\x20and\x20mapping','440jioEaV','isInteger','toString','/import-batch','/client/','parse','num','checkpoint','imageFields','METADATA','values','Imported\x20and\x20verified\x20','maxBatchSize','batchSize','16486LJzQaV','schemaVersion','import-excel','Maximum\x20records\x20per\x20request\x20(1..500)'];a26_0x3458=function(){return _0x1c9c56;};return a26_0x3458();}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';function a26_0x29b0(_0x443c33,_0x67d0b6){_0x443c33=_0x443c33-0x186;const _0x3458c2=a26_0x3458();let _0x29b02a=_0x3458c2[_0x443c33];return _0x29b02a;}import{assertImageImportCapability,runImageExcelImport}from'../../services/dataset-import/image-runner.js';import{previewImportBatchCount}from'../../services/dataset-import/preview.js';function input(_0x284394){const _0x443a00=a26_0x29b0,_0x1e4547=_0x284394[_0x443a00(0x1a4)](_0x443a00(0x1c9)),_0x201e8c=_0x284394[_0x443a00(0x1a4)]('mapping');if(!_0x1e4547||!_0x201e8c)throw CliErrors[_0x443a00(0x1cc)]('--file\x20and\x20--mapping\x20are\x20required.');const _0x256b5c=_0x284394[_0x443a00(0x197)](_0x443a00(0x18c),0x1),_0x1120c3=_0x284394['num']('batch-size',0x1f4);if(!Number[_0x443a00(0x192)](_0x256b5c)||_0x256b5c<0x1||!Number['isInteger'](_0x1120c3)||_0x1120c3<0x1||_0x1120c3>0x1f4)throw CliErrors[_0x443a00(0x1cc)]('Header\x20row\x20must\x20be\x20positive\x20and\x20batch\x20size\x20must\x20be\x20between\x201\x20and\x20500.');const _0xac6a1c=resolve(_0x284394[_0x443a00(0x1a4)](_0x443a00(0x198))||_0x1e4547+_0x443a00(0x1bf)),_0x59f725=resolve(_0x284394[_0x443a00(0x1a4)](_0x443a00(0x1dc))||_0x1e4547+'.import-report.json'),_0xe147ee=[resolve(_0x1e4547),resolve(_0x201e8c),_0xac6a1c,_0x59f725];if(new Set(_0xe147ee)[_0x443a00(0x1d7)]!==_0xe147ee[_0x443a00(0x1c8)])throw CliErrors[_0x443a00(0x1cc)](_0x443a00(0x1aa));return{'file':resolve(_0x1e4547),'mappingFile':resolve(_0x201e8c),'headerRow':_0x256b5c,'batchSize':_0x1120c3,'checkpoint':_0xac6a1c,'report':_0x59f725,'sheet':_0x284394[_0x443a00(0x1a4)](_0x443a00(0x1bc))||undefined,'resume':_0x284394[_0x443a00(0x1b6)](_0x443a00(0x1ab))};}async function prepare(_0x2bb5fb){const _0x281a4a=a26_0x29b0,_0x54c446=input(_0x2bb5fb),_0x122f52=_0x2bb5fb[_0x281a4a(0x1a4)](_0x281a4a(0x1a8));[_0x54c446[_0x281a4a(0x1c9)],_0x54c446[_0x281a4a(0x1cd)],_0x54c446[_0x281a4a(0x198)],_0x54c446[_0x281a4a(0x1dc)]]=await Promise['all']([realpath(_0x54c446[_0x281a4a(0x1c9)]),realpath(_0x54c446[_0x281a4a(0x1cd)]),resolveImportOutputPath(_0x54c446[_0x281a4a(0x198)]),resolveImportOutputPath(_0x54c446[_0x281a4a(0x1dc)])]),assertImportPaths(_0x54c446[_0x281a4a(0x198)],_0x54c446[_0x281a4a(0x1dc)],[_0x54c446[_0x281a4a(0x1c9)],_0x54c446['mappingFile']]);let _0x24c8d9;const _0x4a61cd=await readFile(_0x54c446[_0x281a4a(0x1cd)]);if(_0x4a61cd[_0x281a4a(0x1c8)]>0x400*0x400)throw CliErrors[_0x281a4a(0x1cc)]('Mapping\x20file\x20exceeds\x201\x20MB.');try{_0x24c8d9=JSON[_0x281a4a(0x196)](_0x4a61cd[_0x281a4a(0x193)]('utf8'));}catch{throw CliErrors[_0x281a4a(0x1cc)](_0x281a4a(0x1c6));}if(!_0x24c8d9||typeof _0x24c8d9!==_0x281a4a(0x1dd)||Array['isArray'](_0x24c8d9)||Object[_0x281a4a(0x19b)](_0x24c8d9)['some'](_0x516080=>typeof _0x516080!==_0x281a4a(0x1bb)))throw CliErrors[_0x281a4a(0x1cc)](_0x281a4a(0x1b4));const _0x47a2fa=await getDatasetDetail(_0x122f52),_0x5bfc05=assertDatasetImportTarget(_0x47a2fa,_0x2bb5fb[_0x281a4a(0x18a)],_0x122f52);if(_0x5bfc05===_0x281a4a(0x1c1))throw CliErrors[_0x281a4a(0x1cc)]('DB_TABLE\x20datasets\x20use\x20the\x20existing\x20batchCreate\x20operation;\x20import-excel\x20only\x20supports\x20METADATA\x20datasets.','Inspect\x20lovrabet\x20dataset\x20detail\x20--code\x20'+_0x122f52+_0x281a4a(0x1b5)+_0x2bb5fb[_0x281a4a(0x18a)]+_0x281a4a(0x1a3)+_0x122f52+_0x281a4a(0x1ad));if(_0x5bfc05!==_0x281a4a(0x19a))throw CliErrors[_0x281a4a(0x1cc)](_0x281a4a(0x1bd),'Run\x20dataset\x20detail\x20to\x20confirm\x20the\x20source.\x20Only\x20DB_TABLE\x20has\x20the\x20documented\x20alternative\x20batchCreate\x20route;\x20do\x20not\x20guess\x20or\x20automatically\x20switch\x20APIs.');const _0x517cd4=await buildExcelManifest({..._0x54c446,'mapping':_0x24c8d9,'fields':normalizeImportFields(_0x47a2fa)}),_0x1ca0cb=await getDatasetImportContract(_0x2bb5fb[_0x281a4a(0x18a)],_0x122f52);assertImportContract(_0x1ca0cb,_0x2bb5fb[_0x281a4a(0x18a)],_0x122f52),assertImageImportCapability(_0x1ca0cb,_0x517cd4);if(_0x517cd4[_0x281a4a(0x199)]?.[_0x281a4a(0x1c8)]){const _0x2cfe27=await resolveImportOutputPath(_0x54c446[_0x281a4a(0x198)]+_0x281a4a(0x1b9)),_0x24fe25=await Promise[_0x281a4a(0x1c7)]([_0x2cfe27,_0x2cfe27+_0x281a4a(0x1ae),_0x2cfe27+_0x281a4a(0x1b7),_0x54c446[_0x281a4a(0x198)]+_0x281a4a(0x1ae),_0x54c446[_0x281a4a(0x198)]+_0x281a4a(0x1b7)][_0x281a4a(0x187)](resolveImportOutputPath));assertImportPaths(_0x54c446['checkpoint'],_0x54c446[_0x281a4a(0x1dc)],[_0x54c446[_0x281a4a(0x1c9)],_0x54c446[_0x281a4a(0x1cd)],..._0x24fe25[_0x281a4a(0x1d8)](0x0,0x3)]);}if(_0x54c446[_0x281a4a(0x19e)]>_0x1ca0cb[_0x281a4a(0x19d)])throw CliErrors[_0x281a4a(0x1cc)](_0x281a4a(0x1cb));return{'args':_0x54c446,'manifest':_0x517cd4,'contract':_0x1ca0cb,'code':_0x122f52};}async function checked(_0x59726a){const _0xe80eef=a26_0x29b0;try{return await _0x59726a();}catch(_0x4c6eed){if(_0x4c6eed instanceof CliError)throw _0x4c6eed;throw CliErrors[_0xe80eef(0x1cc)](_0x4c6eed['message']||_0xe80eef(0x1a6));}}export const dataImportExcel={'service':a26_0xc256a7(0x1d1),'command':a26_0xc256a7(0x1a1),'risk':'write','description':a26_0xc256a7(0x1be),'confirmationDescription':a26_0xc256a7(0x1c2),'flags':[CODE_FLAG,{'name':a26_0xc256a7(0x1c9),'type':a26_0xc256a7(0x1bb),'required':!![],'description':a26_0xc256a7(0x1d6)},{'name':a26_0xc256a7(0x1ac),'type':a26_0xc256a7(0x1bb),'required':!![],'description':a26_0xc256a7(0x1b0)},{'name':a26_0xc256a7(0x1bc),'type':'string','description':a26_0xc256a7(0x1cf)},{'name':a26_0xc256a7(0x18c),'type':'number','default':0x1,'description':a26_0xc256a7(0x1d3)},{'name':a26_0xc256a7(0x1b3),'type':a26_0xc256a7(0x1ce),'default':0x1f4,'description':a26_0xc256a7(0x1a2)},{'name':a26_0xc256a7(0x198),'type':a26_0xc256a7(0x1bb),'description':'Private\x20checkpoint\x20file\x20(default:\x20XLSX\x20path\x20plus\x20.import-checkpoint.json)'},{'name':a26_0xc256a7(0x1dc),'type':a26_0xc256a7(0x1bb),'description':a26_0xc256a7(0x1a7)},{'name':'resume','type':a26_0xc256a7(0x1db),'description':a26_0xc256a7(0x190)}],'validate':async _0x31a9a2=>{input(_0x31a9a2);},'dryRun':async _0x55d823=>checked(async()=>{const _0x1f755a=a26_0xc256a7,{args:_0x370e23,manifest:_0x3b694b,contract:_0x218f3a,code:_0x47610d}=await prepare(_0x55d823),_0x3ba329=new Set(_0x3b694b[_0x1f755a(0x18e)][_0x1f755a(0x187)](_0x5582dc=>_0x5582dc[_0x1f755a(0x1d0)]))[_0x1f755a(0x1d7)];return{'method':_0x1f755a(0x1af),'url':_0x1f755a(0x195)+encodeURIComponent(_0x55d823[_0x1f755a(0x18a)])+'/'+encodeURIComponent(_0x47610d)+_0x1f755a(0x194),'description':_0x1f755a(0x1d2),'body':{'schemaFingerprint':_0x218f3a[_0x1f755a(0x1c5)]},'validRows':Math[_0x1f755a(0x1ca)](0x0,_0x3b694b[_0x1f755a(0x1c0)][_0x1f755a(0x1c8)]-_0x3ba329),'invalidRows':_0x3ba329,'invalidCells':_0x3b694b[_0x1f755a(0x18e)]['length'],'emptyRows':_0x3b694b['emptyRows'][_0x1f755a(0x1c8)],'expectedBatches':previewImportBatchCount(_0x3b694b,_0x218f3a,_0x370e23[_0x1f755a(0x19e)]),'imageCount':_0x3b694b['imageCells']?.['reduce']((_0x293338,_0x1340a8)=>_0x293338+_0x1340a8[_0x1f755a(0x1a9)][_0x1f755a(0x1c8)],0x0)??0x0,'uniqueImages':_0x3b694b[_0x1f755a(0x1d4)]?.['length']??0x0,'uniqueImageBytes':_0x3b694b[_0x1f755a(0x1d4)]?.['reduce']((_0x1002d1,_0x106ff9)=>_0x1002d1+_0x106ff9[_0x1f755a(0x1d7)],0x0)??0x0,'errors':_0x3b694b[_0x1f755a(0x18e)],'warnings':_0x3b694b[_0x1f755a(0x1c3)],'sheet':_0x3b694b[_0x1f755a(0x1bc)],'checkpoint':_0x370e23[_0x1f755a(0x198)],'report':_0x370e23['report']};}),'execute':async _0x2fb82d=>checked(async()=>{const _0x5979f5=a26_0xc256a7,{args:_0x518409,manifest:_0x257fc8,contract:_0x325762,code:_0x22a723}=await prepare(_0x2fb82d);if(_0x257fc8[_0x5979f5(0x18e)][_0x5979f5(0x1c8)]){await saveImportJson(_0x518409['report'],{'status':'invalid','sourceRows':_0x257fc8['rows'][_0x5979f5(0x1c8)],'errors':_0x257fc8['errors'],'emptyRows':_0x257fc8[_0x5979f5(0x1d5)],'warnings':_0x257fc8[_0x5979f5(0x1c3)]});throw CliErrors[_0x5979f5(0x1cc)](_0x5979f5(0x1b1)+_0x257fc8[_0x5979f5(0x18e)][_0x5979f5(0x1c8)]+'\x20invalid\x20cells.\x20No\x20records\x20were\x20written.',_0x5979f5(0x1c4)+_0x518409[_0x5979f5(0x1dc)]+'.');}const _0x1f2f32=_0x257fc8[_0x5979f5(0x199)]?.[_0x5979f5(0x1c8)]?runImageExcelImport:_0x325762[_0x5979f5(0x1a0)]===0x2?runAutoIdExcelImport:runExcelImport,_0x3b561b=await _0x1f2f32({..._0x518409,'manifest':_0x257fc8,'contract':_0x325762,'appCode':_0x2fb82d['appCode'],'datasetCode':_0x22a723,'runtimeDomain':getRuntimeDomain(),'inputPaths':[_0x518409[_0x5979f5(0x1c9)],_0x518409[_0x5979f5(0x1cd)]],'imageApi':{'upload':(_0x36405d,_0x37fa73)=>uploadDatasetImportImage(_0x2fb82d[_0x5979f5(0x18a)],_0x22a723,_0x36405d,_0x37fa73),'readback':(_0x135814,_0x39be0f)=>readDatasetImportImage(_0x2fb82d[_0x5979f5(0x18a)],_0x22a723,_0x135814,_0x39be0f)},'api':{'write':(_0x55bf19,_0x1122d7)=>createDatasetImportBatch(_0x2fb82d[_0x5979f5(0x18a)],_0x22a723,{'schemaFingerprint':_0x325762['schemaFingerprint'],'items':_0x55bf19,..._0x1122d7===undefined?{}:{'taskId':_0x1122d7}}),'readback':_0x4b7c69=>readDatasetImportRows(_0x2fb82d['appCode'],_0x22a723,_0x4b7c69),'readTask':_0x4f020a=>readDatasetImportTaskRows(_0x2fb82d[_0x5979f5(0x18a)],_0x22a723,_0x4f020a)}});return{'ok':!![],'data':_0x3b561b,'message':_0x5979f5(0x19c)+_0x3b561b[_0x5979f5(0x189)]+_0x5979f5(0x1d9)};})};
1
+ const a26_0x4b38a8=a26_0xf8c0;(function(_0xfdab73,_0x5650e5){const _0x1181a4=a26_0xf8c0,_0x117045=_0xfdab73();while(!![]){try{const _0x98b46=-parseInt(_0x1181a4(0x19f))/0x1+-parseInt(_0x1181a4(0x1b1))/0x2*(parseInt(_0x1181a4(0x1a8))/0x3)+-parseInt(_0x1181a4(0x196))/0x4+-parseInt(_0x1181a4(0x1a5))/0x5*(-parseInt(_0x1181a4(0x17e))/0x6)+parseInt(_0x1181a4(0x19b))/0x7*(parseInt(_0x1181a4(0x188))/0x8)+-parseInt(_0x1181a4(0x18b))/0x9*(parseInt(_0x1181a4(0x187))/0xa)+parseInt(_0x1181a4(0x1b3))/0xb*(parseInt(_0x1181a4(0x16d))/0xc);if(_0x98b46===_0x5650e5)break;else _0x117045['push'](_0x117045['shift']());}catch(_0x1d9afd){_0x117045['push'](_0x117045['shift']());}}}(a26_0x5f42,0xea159));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_0x5f42(){const _0x13ed0b=['Run\x20dataset\x20detail\x20to\x20confirm\x20the\x20source.\x20Only\x20DB_TABLE\x20has\x20the\x20documented\x20alternative\x20batchCreate\x20route;\x20do\x20not\x20guess\x20or\x20automatically\x20switch\x20APIs.','Header\x20row\x20must\x20be\x20positive\x20and\x20batch\x20size\x20must\x20be\x20between\x201\x20and\x20500.','isArray','Creates\x20real\x20dataset\x20records\x20immediately.\x20Keep\x20the\x20checkpoint\x20to\x20reconcile\x20and\x20resume\x20interrupted\x20imports.','\x20records.','warnings','header-row','rowNumber','isInteger','code','size','import-excel','length','parse','rows','toString','92028xnHWGM','validation','maxBatchSize','emptyRows','mappingFile','Excel\x20import\x20failed.','.\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','Local\x20Excel\x20validation\x20only;\x20no\x20records\x20or\x20checkpoint\x20were\x20written.','reduce','1940dxNERV','224xVLVHs','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.','Excel\x20contains\x20','34533zewlhP','map','errors','.lock.recovery','str','file','appCode','Mapping\x20file\x20must\x20contain\x20valid\x20JSON.','DB_TABLE','resume','object','1006412mSZOLu','.lock','Batch\x20size\x20exceeds\x20the\x20server\x20import\x20contract.','max','num','238595pieKUD','/client/','message','boolean','226249DswYWu','schemaFingerprint','1-based\x20Excel\x20header\x20row','write','Maximum\x20records\x20per\x20request\x20(1..500)','string','155vlkqva','batch-size','report','3mDWuxH','Worksheet\x20name\x20or\x201-based\x20index\x20(default:\x20first\x20worksheet)','Mapping\x20file\x20exceeds\x201\x20MB.','sheet','Private\x20result\x20report\x20(default:\x20XLSX\x20path\x20plus\x20.import-report.json)','media','/import-batch','--file\x20and\x20--mapping\x20are\x20required.','number','371138DEhtuh','mapping','27478iYVAUz','hashes','invalid','checkpoint','Mapping\x20must\x20be\x20an\x20object\x20from\x20Excel\x20headers\x20to\x20field\x20codes.','.rows.json','Source,\x20mapping,\x20checkpoint\x20and\x20report\x20must\x20be\x20different\x20files.','imageFields','Imported\x20and\x20verified\x20','batchSize','4500TrTmUz'];a26_0x5f42=function(){return _0x13ed0b;};return a26_0x5f42();}function input(_0x5ea43e){const _0x5506f1=a26_0xf8c0,_0x16116c=_0x5ea43e[_0x5506f1(0x18f)](_0x5506f1(0x190)),_0x531dba=_0x5ea43e[_0x5506f1(0x18f)](_0x5506f1(0x1b2));if(!_0x16116c||!_0x531dba)throw CliErrors[_0x5506f1(0x17f)](_0x5506f1(0x1af));const _0x31b732=_0x5ea43e[_0x5506f1(0x19a)](_0x5506f1(0x174),0x1),_0x5f113f=_0x5ea43e[_0x5506f1(0x19a)](_0x5506f1(0x1a6),0x1f4);if(!Number[_0x5506f1(0x176)](_0x31b732)||_0x31b732<0x1||!Number['isInteger'](_0x5f113f)||_0x5f113f<0x1||_0x5f113f>0x1f4)throw CliErrors['validation'](_0x5506f1(0x16f));const _0x562a19=resolve(_0x5ea43e[_0x5506f1(0x18f)](_0x5506f1(0x1b6))||_0x16116c+'.import-checkpoint.json'),_0x322dd9=resolve(_0x5ea43e[_0x5506f1(0x18f)](_0x5506f1(0x1a7))||_0x16116c+'.import-report.json'),_0x39e0bf=[resolve(_0x16116c),resolve(_0x531dba),_0x562a19,_0x322dd9];if(new Set(_0x39e0bf)[_0x5506f1(0x178)]!==_0x39e0bf[_0x5506f1(0x17a)])throw CliErrors[_0x5506f1(0x17f)](_0x5506f1(0x169));return{'file':resolve(_0x16116c),'mappingFile':resolve(_0x531dba),'headerRow':_0x31b732,'batchSize':_0x5f113f,'checkpoint':_0x562a19,'report':_0x322dd9,'sheet':_0x5ea43e[_0x5506f1(0x18f)](_0x5506f1(0x1ab))||undefined,'resume':_0x5ea43e['bool'](_0x5506f1(0x194))};}async function prepare(_0x4cb48d){const _0xe0feb6=a26_0xf8c0,_0x430ada=input(_0x4cb48d),_0x3fd5c2=_0x4cb48d[_0xe0feb6(0x18f)](_0xe0feb6(0x177));[_0x430ada[_0xe0feb6(0x190)],_0x430ada[_0xe0feb6(0x182)],_0x430ada[_0xe0feb6(0x1b6)],_0x430ada[_0xe0feb6(0x1a7)]]=await Promise['all']([realpath(_0x430ada[_0xe0feb6(0x190)]),realpath(_0x430ada[_0xe0feb6(0x182)]),resolveImportOutputPath(_0x430ada['checkpoint']),resolveImportOutputPath(_0x430ada['report'])]),assertImportPaths(_0x430ada['checkpoint'],_0x430ada[_0xe0feb6(0x1a7)],[_0x430ada[_0xe0feb6(0x190)],_0x430ada['mappingFile']]);let _0xe0b99;const _0x4beae8=await readFile(_0x430ada[_0xe0feb6(0x182)]);if(_0x4beae8[_0xe0feb6(0x17a)]>0x400*0x400)throw CliErrors[_0xe0feb6(0x17f)](_0xe0feb6(0x1aa));try{_0xe0b99=JSON[_0xe0feb6(0x17b)](_0x4beae8[_0xe0feb6(0x17d)]('utf8'));}catch{throw CliErrors['validation'](_0xe0feb6(0x192));}if(!_0xe0b99||typeof _0xe0b99!==_0xe0feb6(0x195)||Array[_0xe0feb6(0x170)](_0xe0b99)||Object['values'](_0xe0b99)['some'](_0x14dd7b=>typeof _0x14dd7b!==_0xe0feb6(0x1a4)))throw CliErrors[_0xe0feb6(0x17f)](_0xe0feb6(0x1b7));const _0x3b454f=await getDatasetDetail(_0x3fd5c2),_0x2cda19=assertDatasetImportTarget(_0x3b454f,_0x4cb48d[_0xe0feb6(0x191)],_0x3fd5c2);if(_0x2cda19===_0xe0feb6(0x193))throw CliErrors[_0xe0feb6(0x17f)]('DB_TABLE\x20datasets\x20use\x20the\x20existing\x20batchCreate\x20operation;\x20import-excel\x20only\x20supports\x20METADATA\x20datasets.','Inspect\x20lovrabet\x20dataset\x20detail\x20--code\x20'+_0x3fd5c2+_0xe0feb6(0x184)+_0x4cb48d[_0xe0feb6(0x191)]+'\x20--code\x20'+_0x3fd5c2+'\x20--params\x20\x27<JSON\x20array>\x27\x20--dry-run\x20using\x20the\x20target\x20app\x27s\x20User\x20AK\x20and\x20runtime\x20permissions.\x20Dry-run\x20only\x20previews\x20the\x20request;\x20verify\x20written\x20rows\x20before\x20advancing\x20and\x20reconcile\x20unknown\x20outcomes\x20before\x20retrying.\x20This\x20DB_TABLE\x20route\x20does\x20not\x20support\x20import\x20checkpoints\x20or\x20--resume.\x20See\x20references/lovrabet-db-table-excel-import.md\x20in\x20the\x20built-in\x20Skill.\x20No\x20import\x20request\x20was\x20sent.');if(_0x2cda19!=='METADATA')throw CliErrors['validation']('Dataset\x20source\x20is\x20missing\x20or\x20unsupported;\x20import-excel\x20requires\x20METADATA.',_0xe0feb6(0x16e));const _0x53229f=await buildExcelManifest({..._0x430ada,'mapping':_0xe0b99,'fields':normalizeImportFields(_0x3b454f)}),_0x9fd7c8=await getDatasetImportContract(_0x4cb48d['appCode'],_0x3fd5c2);assertImportContract(_0x9fd7c8,_0x4cb48d['appCode'],_0x3fd5c2),assertImageImportCapability(_0x9fd7c8,_0x53229f);if(_0x53229f[_0xe0feb6(0x16a)]?.[_0xe0feb6(0x17a)]){const _0x82f4d5=await resolveImportOutputPath(_0x430ada[_0xe0feb6(0x1b6)]+_0xe0feb6(0x1b8)),_0x2c3561=await Promise['all']([_0x82f4d5,_0x82f4d5+_0xe0feb6(0x197),_0x82f4d5+'.lock.recovery',_0x430ada[_0xe0feb6(0x1b6)]+_0xe0feb6(0x197),_0x430ada['checkpoint']+_0xe0feb6(0x18e)][_0xe0feb6(0x18c)](resolveImportOutputPath));assertImportPaths(_0x430ada[_0xe0feb6(0x1b6)],_0x430ada['report'],[_0x430ada[_0xe0feb6(0x190)],_0x430ada['mappingFile'],..._0x2c3561['slice'](0x0,0x3)]);}if(_0x430ada[_0xe0feb6(0x16c)]>_0x9fd7c8[_0xe0feb6(0x180)])throw CliErrors[_0xe0feb6(0x17f)](_0xe0feb6(0x198));return{'args':_0x430ada,'manifest':_0x53229f,'contract':_0x9fd7c8,'code':_0x3fd5c2};}function a26_0xf8c0(_0x32589f,_0x395a5d){_0x32589f=_0x32589f-0x169;const _0x5f4289=a26_0x5f42();let _0xf8c07a=_0x5f4289[_0x32589f];return _0xf8c07a;}async function checked(_0x1a1f85){const _0x3d9df3=a26_0xf8c0;try{return await _0x1a1f85();}catch(_0x2fa3be){if(_0x2fa3be instanceof CliError)throw _0x2fa3be;throw CliErrors[_0x3d9df3(0x17f)](_0x2fa3be[_0x3d9df3(0x19d)]||_0x3d9df3(0x183));}}export const dataImportExcel={'service':'data','command':a26_0x4b38a8(0x179),'risk':a26_0x4b38a8(0x1a2),'description':a26_0x4b38a8(0x189),'confirmationDescription':a26_0x4b38a8(0x171),'flags':[CODE_FLAG,{'name':a26_0x4b38a8(0x190),'type':a26_0x4b38a8(0x1a4),'required':!![],'description':'Local\x20XLSX\x20file\x20(maximum\x2020\x20MB)'},{'name':a26_0x4b38a8(0x1b2),'type':a26_0x4b38a8(0x1a4),'required':!![],'description':'JSON\x20file\x20mapping\x20Excel\x20headers\x20to\x20dataset\x20field\x20codes'},{'name':a26_0x4b38a8(0x1ab),'type':a26_0x4b38a8(0x1a4),'description':a26_0x4b38a8(0x1a9)},{'name':a26_0x4b38a8(0x174),'type':a26_0x4b38a8(0x1b0),'default':0x1,'description':a26_0x4b38a8(0x1a1)},{'name':a26_0x4b38a8(0x1a6),'type':a26_0x4b38a8(0x1b0),'default':0x1f4,'description':a26_0x4b38a8(0x1a3)},{'name':a26_0x4b38a8(0x1b6),'type':a26_0x4b38a8(0x1a4),'description':'Private\x20checkpoint\x20file\x20(default:\x20XLSX\x20path\x20plus\x20.import-checkpoint.json)'},{'name':'report','type':'string','description':a26_0x4b38a8(0x1ac)},{'name':a26_0x4b38a8(0x194),'type':a26_0x4b38a8(0x19e),'description':'Reconcile\x20imported\x20records\x20and\x20resume\x20the\x20exact\x20original\x20file,\x20target\x20and\x20mapping'}],'validate':async _0x34bb4e=>{input(_0x34bb4e);},'dryRun':async _0xe99e61=>checked(async()=>{const _0x3f9c8f=a26_0x4b38a8,{args:_0x17cc45,manifest:_0x271450,contract:_0x125286,code:_0x5b5e6d}=await prepare(_0xe99e61),_0x241938=new Set(_0x271450[_0x3f9c8f(0x18d)][_0x3f9c8f(0x18c)](_0x2e343e=>_0x2e343e[_0x3f9c8f(0x175)]))[_0x3f9c8f(0x178)];return{'method':'POST','url':_0x3f9c8f(0x19c)+encodeURIComponent(_0xe99e61[_0x3f9c8f(0x191)])+'/'+encodeURIComponent(_0x5b5e6d)+_0x3f9c8f(0x1ae),'description':_0x3f9c8f(0x185),'body':{'schemaFingerprint':_0x125286[_0x3f9c8f(0x1a0)]},'validRows':Math[_0x3f9c8f(0x199)](0x0,_0x271450['rows']['length']-_0x241938),'invalidRows':_0x241938,'invalidCells':_0x271450['errors'][_0x3f9c8f(0x17a)],'emptyRows':_0x271450[_0x3f9c8f(0x181)][_0x3f9c8f(0x17a)],'expectedBatches':previewImportBatchCount(_0x271450,_0x125286,_0x17cc45[_0x3f9c8f(0x16c)]),'imageCount':_0x271450['imageCells']?.[_0x3f9c8f(0x186)]((_0x4499fd,_0x5df133)=>_0x4499fd+_0x5df133[_0x3f9c8f(0x1b4)][_0x3f9c8f(0x17a)],0x0)??0x0,'uniqueImages':_0x271450[_0x3f9c8f(0x1ad)]?.[_0x3f9c8f(0x17a)]??0x0,'uniqueImageBytes':_0x271450[_0x3f9c8f(0x1ad)]?.[_0x3f9c8f(0x186)]((_0x3e73aa,_0x32640f)=>_0x3e73aa+_0x32640f['size'],0x0)??0x0,'errors':_0x271450[_0x3f9c8f(0x18d)],'warnings':_0x271450[_0x3f9c8f(0x173)],'sheet':_0x271450[_0x3f9c8f(0x1ab)],'checkpoint':_0x17cc45[_0x3f9c8f(0x1b6)],'report':_0x17cc45[_0x3f9c8f(0x1a7)]};}),'execute':async _0x1939e6=>checked(async()=>{const _0x47553e=a26_0x4b38a8,{args:_0x2c98ca,manifest:_0x54c25d,contract:_0x5e1b5f,code:_0x402ef1}=await prepare(_0x1939e6);if(_0x54c25d[_0x47553e(0x18d)][_0x47553e(0x17a)]){await saveImportJson(_0x2c98ca['report'],{'status':_0x47553e(0x1b5),'sourceRows':_0x54c25d[_0x47553e(0x17c)][_0x47553e(0x17a)],'errors':_0x54c25d[_0x47553e(0x18d)],'emptyRows':_0x54c25d[_0x47553e(0x181)],'warnings':_0x54c25d[_0x47553e(0x173)]});throw CliErrors[_0x47553e(0x17f)](_0x47553e(0x18a)+_0x54c25d[_0x47553e(0x18d)][_0x47553e(0x17a)]+'\x20invalid\x20cells.\x20No\x20records\x20were\x20written.','See\x20'+_0x2c98ca['report']+'.');}const _0x1d6070=_0x54c25d['imageFields']?.[_0x47553e(0x17a)]?runImageExcelImport:_0x5e1b5f['schemaVersion']===0x2?runAutoIdExcelImport:runExcelImport,_0x1eff6d=await _0x1d6070({..._0x2c98ca,'manifest':_0x54c25d,'contract':_0x5e1b5f,'appCode':_0x1939e6['appCode'],'datasetCode':_0x402ef1,'runtimeDomain':getRuntimeDomain(),'inputPaths':[_0x2c98ca['file'],_0x2c98ca[_0x47553e(0x182)]],'imageApi':{'upload':(_0x4b9e67,_0x5d0fc7)=>uploadDatasetImportImage(_0x1939e6[_0x47553e(0x191)],_0x402ef1,_0x4b9e67,_0x5d0fc7),'readback':(_0x1417d6,_0x1576e8)=>readDatasetImportImage(_0x1939e6[_0x47553e(0x191)],_0x402ef1,_0x1417d6,_0x1576e8)},'api':{'write':(_0x13929b,_0xe7ce93)=>createDatasetImportBatch(_0x1939e6['appCode'],_0x402ef1,{'schemaFingerprint':_0x5e1b5f[_0x47553e(0x1a0)],'items':_0x13929b,..._0xe7ce93===undefined?{}:{'taskId':_0xe7ce93}}),'readback':_0x512b50=>readDatasetImportRows(_0x1939e6[_0x47553e(0x191)],_0x402ef1,_0x512b50),'readTask':_0xef849a=>readDatasetImportTaskRows(_0x1939e6[_0x47553e(0x191)],_0x402ef1,_0xef849a)}});return{'ok':!![],'data':_0x1eff6d,'message':_0x47553e(0x16b)+_0x1eff6d['succeeded']+_0x47553e(0x172)};})};