@lovrabet/lovrabet-cli 2.3.8-beta.7 → 2.3.9-beta.1

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_0x5e9f70=a13_0x4fb3;(function(_0x5bbb89,_0x5c6e18){const _0x263912=a13_0x4fb3,_0x85d8b1=_0x5bbb89();while(!![]){try{const _0x2d311a=-parseInt(_0x263912(0xcc))/0x1*(parseInt(_0x263912(0xbf))/0x2)+-parseInt(_0x263912(0x9a))/0x3*(-parseInt(_0x263912(0xc7))/0x4)+parseInt(_0x263912(0xa2))/0x5*(-parseInt(_0x263912(0xc2))/0x6)+parseInt(_0x263912(0xf1))/0x7*(-parseInt(_0x263912(0xcf))/0x8)+parseInt(_0x263912(0xec))/0x9+parseInt(_0x263912(0xf4))/0xa*(-parseInt(_0x263912(0xe5))/0xb)+parseInt(_0x263912(0xd2))/0xc;if(_0x2d311a===_0x5c6e18)break;else _0x85d8b1['push'](_0x85d8b1['shift']());}catch(_0x15e5c7){_0x85d8b1['push'](_0x85d8b1['shift']());}}}(a13_0x3a85,0xc329f));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';function a13_0x3a85(){const _0x35689b=['bool','147992lztzIH','Missing\x20accessKey.','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>','7oKhvIX','env','global-default','16JcfCse','AccessKey\x20cleared\x20from\x20','envName','22688460CTgkeM','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','auth','Removes\x20the\x20AccessKey\x20from\x20the\x20selected\x20Lovrabet\x20config.\x20Commands\x20that\x20need\x20that\x20key\x20will\x20require\x20login\x20again.','\x20env\x20var','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','access_key','Write\x20to\x20global\x20config\x20(default)','userCenterDisplayName','project\x20config','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','accessKey','AccessKey\x20saved\x20to\x20','boolean','nonInteractive','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','\x20doctor','write','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','11XCPXsw','Option\x20C:\x20environment\x20variable','str','Tip:\x20you\x20can\x20also\x20run:','read','test','project','4816863peyODD','Clear\x20the\x20AccessKey\x20from\x20config','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','logout','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','1461901NfHVpA','string','authRequired','9057530EmPQDU','check','info','code','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','111gClTkZ','Auth\x20mode:\x20','\x20\x20export\x20','development','Saves\x20a\x20new\x20AccessKey\x20to\x20the\x20selected\x20Lovrabet\x20config.\x20An\x20existing\x20key\x20in\x20that\x20scope\x20is\x20overwritten.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20secret.','\x20auth\x20status','Option\x20A:\x20','join','6650780KiwNlE','Show\x20current\x20authentication\x20status','success','yes','Option\x20B:\x20apps\x20config\x20(','No\x20AccessKey\x20found\x20in\x20','access-key','=ak_xxx','ClientAk','\x20(via\x20','Shorthand\x20for\x20--access-key','validation','push','Save\x20the\x20AccessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20the\x20project\x20file)','accessKeyCreatePath','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','global','cancelled','ACCESS_KEY','Read\x20from\x20global\x20config\x20(default)','\x20Verify:\x20','Invalid\x20accessKey\x20format.','\x20Current\x20env:\x20','Clear\x20from\x20global\x20config\x20(default)','stdout','status','scope','trim','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','97672IcrTiP','isTTY','Then\x20verify\x20with:\x20','6TsztKq','`auth\x20login`\x20does\x20not\x20support\x20--yes.','AccessKey:\x20','stdin'];a13_0x3a85=function(){return _0x35689b;};return a13_0x3a85();}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';function a13_0x4fb3(_0x20f4b9,_0x4f707e){_0x20f4b9=_0x20f4b9-0x9a;const _0x3a85dc=a13_0x3a85();let _0x4fb387=_0x3a85dc[_0x20f4b9];return _0x4fb387;}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(_0x5336c7=USER_ACCESS_KEY_CREATE_URL){const _0xa0d8c7=a13_0x4fb3;writeCliSideChannelLine(_0xa0d8c7(0xf0)+PRODUCT_CONFIG['userCenterDisplayName']+':'),writeCliSideChannelLine('\x0a'+_0x5336c7+'\x0a'),writeCliSideChannelLine(_0xa0d8c7(0xe8)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0xa0d8c7(0xcb));}function buildAccessKeySetupGuide(_0x2f8037=USER_ACCESS_KEY_CREATE_URL){const _0x525f03=a13_0x4fb3;return[_0x525f03(0xf0)+PRODUCT_CONFIG[_0x525f03(0xda)]+':',_0x2f8037,'Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20'+CLI_BIN_NAME+_0x525f03(0xf9)]['join']('\x0a');}function canPromptForAccessKey(_0x325fb1){const _0x2d342e=a13_0x4fb3;return!_0x325fb1[_0x2d342e(0xe0)]&&process[_0x2d342e(0xc5)][_0x2d342e(0xc0)]!==![]&&process[_0x2d342e(0xba)][_0x2d342e(0xc0)]!==![];}function resolveAuthScopeFlags(_0x2f3682){const _0x1ae3b8=a13_0x4fb3;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x2f3682[_0x1ae3b8(0xc6)](_0x1ae3b8(0xb2)),'explicitProject':_0x2f3682['bool']('project'),'policy':_0x1ae3b8(0xce)}));}async function resolveAuthWriteInput(_0x59da89){const _0x503b54=a13_0x4fb3;let _0x472fc7=(_0x59da89['str'](_0x503b54(0xa8))||_0x59da89[_0x503b54(0xe7)]('ak')||'')['trim']();const _0x4c8caf=(_0x59da89[_0x503b54(0xe7)](_0x503b54(0xcd))||'')[_0x503b54(0xbd)](),_0x24d43f=''+getUserDomain()+PRODUCT_CONFIG[_0x503b54(0xb0)];if(!_0x472fc7&&canPromptForAccessKey(_0x59da89))try{showAccessKeyCreateHint(_0x24d43f),_0x472fc7=await promptAccessKey('');}catch(_0xca265d){if(isAbortPrompt(_0xca265d))throw CliErrors[_0x503b54(0xb3)]();throw _0xca265d;}if(!_0x472fc7)throw CliErrors[_0x503b54(0xad)](_0x503b54(0xc8),buildAccessKeySetupGuide(_0x24d43f));if(!ACCESS_KEY_PATTERN[_0x503b54(0xea)](_0x472fc7))throw CliErrors[_0x503b54(0xad)](_0x503b54(0xb7),_0x503b54(0xe4));if(!_0x4c8caf)return{'accessKey':_0x472fc7};const _0x2a0fb9=normalizeEnv(_0x4c8caf);return{'accessKey':_0x472fc7,'env':isDaily(_0x2a0fb9)?'daily':isDev(_0x2a0fb9)?_0x503b54(0x9d):'production'};}export const authDefinitions=[{'service':'auth','command':'login','description':a13_0x5e9f70(0xaf),'risk':a13_0x5e9f70(0xe3),'confirmationDescription':a13_0x5e9f70(0x9e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x5e9f70(0xa8),'type':a13_0x5e9f70(0xf2),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a13_0x5e9f70(0xf2),'description':a13_0x5e9f70(0xac)},{'name':a13_0x5e9f70(0xb2),'type':a13_0x5e9f70(0xdf),'description':a13_0x5e9f70(0xd9),'default':!![]},{'name':a13_0x5e9f70(0xeb),'type':a13_0x5e9f70(0xdf),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x316099){const _0xd78a4=a13_0x5e9f70;if(_0x316099['bool'](_0xd78a4(0xa5)))throw CliErrors['validation'](_0xd78a4(0xc3),'Use\x20`'+CLI_BIN_NAME+_0xd78a4(0xdc)+CLI_BIN_NAME+_0xd78a4(0xbe));const _0x10b925=(_0x316099[_0xd78a4(0xe7)](_0xd78a4(0xa8))||_0x316099[_0xd78a4(0xe7)]('ak')||'')[_0xd78a4(0xbd)]();if(!_0x10b925&&_0x316099['nonInteractive'])return{'ok':!![],'message':buildAccessKeySetupGuide(''+getUserDomain()+PRODUCT_CONFIG['accessKeyCreatePath'])};const _0x9bc7ba=await resolveAuthWriteInput(_0x316099),_0x46c956=resolveAuthScopeFlags(_0x316099),_0x131324=readScopedConfig(_0x46c956);_0x131324[_0xd78a4(0xdd)]=_0x9bc7ba['accessKey'];_0x9bc7ba['env']&&(_0x131324[_0xd78a4(0xcd)]=_0x9bc7ba[_0xd78a4(0xcd)]);writeScopedConfig(_0x131324,_0x46c956);const _0x471b51=_0x46c956[_0xd78a4(0xb2)]?_0xd78a4(0xb2):'project',_0x3c822d=_0x131324['env']?_0xd78a4(0xb8)+_0x131324[_0xd78a4(0xcd)]+'.':'';return{'ok':!![],'message':_0xd78a4(0xde)+_0x471b51+'\x20config.'+_0x3c822d+_0xd78a4(0xb6)+CLI_BIN_NAME+_0xd78a4(0x9f)};}},{'service':a13_0x5e9f70(0xd4),'command':a13_0x5e9f70(0xef),'description':a13_0x5e9f70(0xed),'risk':'write','confirmationDescription':a13_0x5e9f70(0xd5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a13_0x5e9f70(0xdf),'description':a13_0x5e9f70(0xb9),'default':!![]},{'name':a13_0x5e9f70(0xeb),'type':a13_0x5e9f70(0xdf),'description':a13_0x5e9f70(0xd7),'default':![]}],async 'execute'(_0x5c015c){const _0x402713=a13_0x5e9f70,_0x2f5a31=resolveAuthScopeFlags(_0x5c015c),_0x54030a=readScopedConfig(_0x2f5a31),_0x83fb53=!!_0x54030a[_0x402713(0xdd)];delete _0x54030a[_0x402713(0xdd)],writeScopedConfig(_0x54030a,_0x2f5a31);const _0xf07539=_0x2f5a31[_0x402713(0xb2)]?_0x402713(0xb2):_0x402713(0xeb);if(_0x83fb53)return{'ok':!![],'message':_0x402713(0xd0)+_0xf07539+'\x20config.'};return{'ok':!![],'message':_0x402713(0xa7)+_0xf07539+'\x20config.\x20Nothing\x20to\x20clear.'};}},{'service':a13_0x5e9f70(0xd4),'command':a13_0x5e9f70(0xbb),'description':a13_0x5e9f70(0xa3),'risk':a13_0x5e9f70(0xe9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x5e9f70(0xb2),'type':a13_0x5e9f70(0xdf),'description':a13_0x5e9f70(0xb5),'default':!![]},{'name':a13_0x5e9f70(0xeb),'type':'boolean','description':a13_0x5e9f70(0xee),'default':![]},{'name':a13_0x5e9f70(0xf5),'type':a13_0x5e9f70(0xdf),'description':a13_0x5e9f70(0xc9),'default':![]}],async 'execute'(_0x508f12){const _0x1bcc5e=a13_0x5e9f70,_0x5dc760=resolveAuthScopeFlags(_0x508f12),_0x3d9bab=readScopedConfig(_0x5dc760),_0x54c99c=productEnvName(_0x1bcc5e(0xb4)),_0x402ef4=productEnv(_0x1bcc5e(0xb4))||undefined,_0x3d3700=_0x3d9bab[_0x1bcc5e(0xdd)]||undefined,_0x45a084=_0x402ef4||_0x3d3700,_0x43fb06=_0x402ef4?_0x54c99c+_0x1bcc5e(0xd6):_0x3d3700?(_0x5dc760['global']?'global':_0x1bcc5e(0xeb))+'\x20config':null,_0x42095e=[_0x1bcc5e(0x9b)+AUTH_MODE[_0x1bcc5e(0xaa)]];if(_0x45a084){const _0x576c3a=maskCliAccessKey(_0x45a084);_0x42095e['push'](_0x1bcc5e(0xc4)+_0x576c3a+(_0x43fb06?_0x1bcc5e(0xab)+_0x43fb06+')':'')),_0x42095e[_0x1bcc5e(0xae)]('Status:\x20valid');}if(!_0x45a084){_0x42095e['push'](''),_0x42095e[_0x1bcc5e(0xae)](_0x1bcc5e(0xb1)),_0x42095e[_0x1bcc5e(0xae)](''),_0x42095e[_0x1bcc5e(0xae)](_0x1bcc5e(0xa0)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x42095e['push'](''),_0x42095e[_0x1bcc5e(0xae)](_0x1bcc5e(0xa6)+PRODUCT_CONFIG['newConfigFileName']+')'),_0x42095e[_0x1bcc5e(0xae)](_0x1bcc5e(0xe1)),_0x42095e['push'](''),_0x42095e[_0x1bcc5e(0xae)](_0x1bcc5e(0xe6)),_0x42095e[_0x1bcc5e(0xae)](_0x1bcc5e(0x9c)+_0x54c99c+_0x1bcc5e(0xa9)),_0x42095e[_0x1bcc5e(0xae)](''),_0x42095e[_0x1bcc5e(0xae)](_0x1bcc5e(0xc1)+CLI_BIN_NAME+_0x1bcc5e(0x9f)),_0x42095e[_0x1bcc5e(0xae)](_0x1bcc5e(0xca)+CLI_BIN_NAME+_0x1bcc5e(0xe2));if(_0x508f12[_0x1bcc5e(0xc6)]('check')){const _0xe5be61=readStoredDeviceCode();if(_0xe5be61&&!isStoredDeviceCodeExpired(_0xe5be61)){const _0x16a52e=getUserDomain(),_0x2a8b12=await fetchDeviceToken(_0x16a52e,_0xe5be61[_0x1bcc5e(0xf7)]);if(_0x2a8b12[_0x1bcc5e(0xbb)]===_0x1bcc5e(0xa4)&&_0x2a8b12[_0x1bcc5e(0xd8)]){const _0x5f499d={'global':_0xe5be61[_0x1bcc5e(0xbc)]===_0x1bcc5e(0xb2)},_0x390458=readScopedConfig(_0x5f499d);_0x390458[_0x1bcc5e(0xdd)]=_0x2a8b12[_0x1bcc5e(0xd8)],writeScopedConfig(_0x390458,_0x5f499d),deleteStoredDeviceCode();const _0x34ed6a=_0x2a8b12[_0x1bcc5e(0xd8)],_0x58237a=maskCliAccessKey(_0x34ed6a),_0x4c5813=_0xe5be61[_0x1bcc5e(0xbc)]===_0x1bcc5e(0xb2)?'global\x20config':_0x1bcc5e(0xdb);return{'ok':!![],'message':['Auth\x20mode:\x20'+AUTH_MODE[_0x1bcc5e(0xaa)],_0x1bcc5e(0xc4)+_0x58237a+'\x20(via\x20'+_0x4c5813+')','Status:\x20valid'][_0x1bcc5e(0xa1)]('\x0a')};}_0x2a8b12[_0x1bcc5e(0xbb)]==='expired'&&deleteStoredDeviceCode();throw CliErrors[_0x1bcc5e(0xf3)](_0x1bcc5e(0xd3));}throw CliErrors[_0x1bcc5e(0xf3)](_0x42095e[_0x1bcc5e(0xa1)]('\x0a'));}}return{'ok':!![],'message':_0x42095e[_0x1bcc5e(0xa1)]('\x0a')};}},{'service':a13_0x5e9f70(0xd4),'command':a13_0x5e9f70(0xf6),'description':a13_0x5e9f70(0xf8),'risk':a13_0x5e9f70(0xe9),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x277159){const _0x473cba=a13_0x5e9f70,_0x331f91=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x331f91,'meta':{'env':_0x277159[_0x473cba(0xd1)]??'production'}}};}},authDeviceDefinition];
1
+ function a13_0x1f17(_0x2e1f3b,_0x3fbe7c){_0x2e1f3b=_0x2e1f3b-0x1bb;const _0x3415c1=a13_0x3415();let _0x1f17a0=_0x3415c1[_0x2e1f3b];return _0x1f17a0;}const a13_0x23d131=a13_0x1f17;(function(_0x458a55,_0x9c5cae){const _0x2de0c1=a13_0x1f17,_0x1a5d9c=_0x458a55();while(!![]){try{const _0x7420d5=parseInt(_0x2de0c1(0x1f6))/0x1*(-parseInt(_0x2de0c1(0x1cb))/0x2)+-parseInt(_0x2de0c1(0x1dd))/0x3+parseInt(_0x2de0c1(0x205))/0x4*(parseInt(_0x2de0c1(0x1e7))/0x5)+parseInt(_0x2de0c1(0x1e1))/0x6*(parseInt(_0x2de0c1(0x1ee))/0x7)+parseInt(_0x2de0c1(0x1ca))/0x8*(-parseInt(_0x2de0c1(0x1ec))/0x9)+-parseInt(_0x2de0c1(0x204))/0xa*(-parseInt(_0x2de0c1(0x1d8))/0xb)+parseInt(_0x2de0c1(0x1fe))/0xc;if(_0x7420d5===_0x9c5cae)break;else _0x1a5d9c['push'](_0x1a5d9c['shift']());}catch(_0x1fe93d){_0x1a5d9c['push'](_0x1a5d9c['shift']());}}}(a13_0x3415,0x4511c));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a13_0x3415(){const _0x3cf663=['newConfigFileName','AccessKey\x20saved\x20to\x20','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','isTTY','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','AccessKey:\x20','517mluFrn','status','stdout','access-key','\x20(via\x20','1668669cCHRSI','str','scope','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','248958iDAnTN','Status:\x20valid','accessKey','ACCESS_KEY','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','project','342395kSkFtU','Removes\x20the\x20AccessKey\x20from\x20the\x20selected\x20Lovrabet\x20config.\x20Commands\x20that\x20need\x20that\x20key\x20will\x20require\x20login\x20again.','production','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','yes','117BnzGOO','success','7qKyqTz','global','access_key','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','\x20env\x20var','\x20Verify:\x20','daily','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','4363byJqOW','userCenterDisplayName','validation','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','development','\x20config.','global\x20config','ClientAk','7376052NQMnjG','\x20auth\x20status','Saves\x20a\x20new\x20AccessKey\x20to\x20the\x20selected\x20Lovrabet\x20config.\x20An\x20existing\x20key\x20in\x20that\x20scope\x20is\x20overwritten.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20secret.','AccessKey\x20(ak_xxx...)','Missing\x20accessKey.','stdin','99610VBluXg','20NMDeiW','env','string','Option\x20C:\x20environment\x20variable','check','authRequired','write','Shorthand\x20for\x20--access-key','join','global-default','push','\x20\x20export\x20','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','project\x20config','AccessKey\x20cleared\x20from\x20','trim','bool','boolean','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','Use\x20`','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','`auth\x20login`\x20does\x20not\x20support\x20--yes.','Then\x20verify\x20with:\x20','test','login','auth','\x20Current\x20env:\x20','read','expired','\x20auth\x20login\x20--access-key\x20<ak_xxx>','Auth\x20mode:\x20','Clear\x20from\x20global\x20config\x20(default)','Clear\x20the\x20AccessKey\x20from\x20config','152624HcZvsi','174XZMFFI','logout','nonInteractive','envName','Option\x20A:\x20','info','Show\x20current\x20authentication\x20status'];a13_0x3415=function(){return _0x3cf663;};return a13_0x3415();}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(_0x29ce43=USER_ACCESS_KEY_CREATE_URL){const _0x5d1816=a13_0x1f17;writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x5d1816(0x1f7)]+':'),writeCliSideChannelLine('\x0a'+_0x29ce43+'\x0a'),writeCliSideChannelLine('Tip:\x20you\x20can\x20also\x20run:'),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x5d1816(0x1c6));}function buildAccessKeySetupGuide(_0x5151b3=USER_ACCESS_KEY_CREATE_URL){const _0x2553fb=a13_0x1f17;return[_0x2553fb(0x1d6)+PRODUCT_CONFIG[_0x2553fb(0x1f7)]+':',_0x5151b3,_0x2553fb(0x1bd)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]'][_0x2553fb(0x20d)]('\x0a');}function canPromptForAccessKey(_0x2c4a82){const _0x39cee1=a13_0x1f17;return!_0x2c4a82[_0x39cee1(0x1cd)]&&process[_0x39cee1(0x203)][_0x39cee1(0x1d5)]!==![]&&process[_0x39cee1(0x1da)][_0x39cee1(0x1d5)]!==![];}function resolveAuthScopeFlags(_0x58f876){const _0x1c7747=a13_0x1f17;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x58f876['bool'](_0x1c7747(0x1ef)),'explicitProject':_0x58f876['bool'](_0x1c7747(0x1e6)),'policy':_0x1c7747(0x20e)}));}async function resolveAuthWriteInput(_0x573750){const _0x126f2d=a13_0x1f17;let _0x477b5e=(_0x573750[_0x126f2d(0x1de)](_0x126f2d(0x1db))||_0x573750[_0x126f2d(0x1de)]('ak')||'')[_0x126f2d(0x214)]();const _0x29a6aa=(_0x573750[_0x126f2d(0x1de)](_0x126f2d(0x206))||'')[_0x126f2d(0x214)](),_0x2f120d=''+getUserDomain()+PRODUCT_CONFIG['accessKeyCreatePath'];if(!_0x477b5e&&canPromptForAccessKey(_0x573750))try{showAccessKeyCreateHint(_0x2f120d),_0x477b5e=await promptAccessKey('');}catch(_0x3670ae){if(isAbortPrompt(_0x3670ae))throw CliErrors['cancelled']();throw _0x3670ae;}if(!_0x477b5e)throw CliErrors[_0x126f2d(0x1f8)](_0x126f2d(0x202),buildAccessKeySetupGuide(_0x2f120d));if(!ACCESS_KEY_PATTERN[_0x126f2d(0x1c0)](_0x477b5e))throw CliErrors['validation']('Invalid\x20accessKey\x20format.',_0x126f2d(0x1f5));if(!_0x29a6aa)return{'accessKey':_0x477b5e};const _0x540e05=normalizeEnv(_0x29a6aa);return{'accessKey':_0x477b5e,'env':isDaily(_0x540e05)?_0x126f2d(0x1f4):isDev(_0x540e05)?_0x126f2d(0x1fa):_0x126f2d(0x1e9)};}export const authDefinitions=[{'service':a13_0x23d131(0x1c2),'command':a13_0x23d131(0x1c1),'description':'Save\x20the\x20AccessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20the\x20project\x20file)','risk':'write','confirmationDescription':a13_0x23d131(0x200),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x23d131(0x1db),'type':a13_0x23d131(0x207),'description':a13_0x23d131(0x201)},{'name':'ak','type':a13_0x23d131(0x207),'description':a13_0x23d131(0x20c)},{'name':a13_0x23d131(0x1ef),'type':a13_0x23d131(0x216),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a13_0x23d131(0x1e6),'type':a13_0x23d131(0x216),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x1ca168){const _0x57178e=a13_0x23d131;if(_0x1ca168[_0x57178e(0x215)](_0x57178e(0x1eb)))throw CliErrors[_0x57178e(0x1f8)](_0x57178e(0x1be),_0x57178e(0x1bc)+CLI_BIN_NAME+_0x57178e(0x1d4)+CLI_BIN_NAME+_0x57178e(0x1ea));const _0x3b0515=(_0x1ca168['str']('access-key')||_0x1ca168['str']('ak')||'')[_0x57178e(0x214)]();if(!_0x3b0515&&_0x1ca168[_0x57178e(0x1cd)])return{'ok':!![],'message':buildAccessKeySetupGuide(''+getUserDomain()+PRODUCT_CONFIG['accessKeyCreatePath'])};const _0x288585=await resolveAuthWriteInput(_0x1ca168),_0x563c5e=resolveAuthScopeFlags(_0x1ca168),_0x54a136=readScopedConfig(_0x563c5e);_0x54a136['accessKey']=_0x288585[_0x57178e(0x1e3)];_0x288585[_0x57178e(0x206)]&&(_0x54a136['env']=_0x288585[_0x57178e(0x206)]);writeScopedConfig(_0x54a136,_0x563c5e);const _0x282a0e=_0x563c5e['global']?_0x57178e(0x1ef):_0x57178e(0x1e6),_0x516fe1=_0x54a136[_0x57178e(0x206)]?_0x57178e(0x1c3)+_0x54a136[_0x57178e(0x206)]+'.':'';return{'ok':!![],'message':_0x57178e(0x1d3)+_0x282a0e+'\x20config.'+_0x516fe1+_0x57178e(0x1f3)+CLI_BIN_NAME+_0x57178e(0x1ff)};}},{'service':a13_0x23d131(0x1c2),'command':a13_0x23d131(0x1cc),'description':a13_0x23d131(0x1c9),'risk':a13_0x23d131(0x20b),'confirmationDescription':a13_0x23d131(0x1e8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a13_0x23d131(0x216),'description':a13_0x23d131(0x1c8),'default':!![]},{'name':a13_0x23d131(0x1e6),'type':'boolean','description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x5c16c9){const _0xd7f84a=a13_0x23d131,_0x494db0=resolveAuthScopeFlags(_0x5c16c9),_0x3c0919=readScopedConfig(_0x494db0),_0x522a28=!!_0x3c0919[_0xd7f84a(0x1e3)];delete _0x3c0919[_0xd7f84a(0x1e3)],writeScopedConfig(_0x3c0919,_0x494db0);const _0x4036ef=_0x494db0[_0xd7f84a(0x1ef)]?_0xd7f84a(0x1ef):_0xd7f84a(0x1e6);if(_0x522a28)return{'ok':!![],'message':_0xd7f84a(0x213)+_0x4036ef+_0xd7f84a(0x1fb)};return{'ok':!![],'message':'No\x20AccessKey\x20found\x20in\x20'+_0x4036ef+'\x20config.\x20Nothing\x20to\x20clear.'};}},{'service':'auth','command':a13_0x23d131(0x1d9),'description':a13_0x23d131(0x1d1),'risk':a13_0x23d131(0x1c4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x23d131(0x1ef),'type':a13_0x23d131(0x216),'description':'Read\x20from\x20global\x20config\x20(default)','default':!![]},{'name':'project','type':a13_0x23d131(0x216),'description':a13_0x23d131(0x1e0),'default':![]},{'name':'check','type':'boolean','description':a13_0x23d131(0x1f1),'default':![]}],async 'execute'(_0x6df733){const _0x9c00c6=a13_0x23d131,_0x3cafcb=resolveAuthScopeFlags(_0x6df733),_0x1bab73=readScopedConfig(_0x3cafcb),_0x4baaaf=productEnvName(_0x9c00c6(0x1e4)),_0x4151bd=productEnv(_0x9c00c6(0x1e4))||undefined,_0x19ef2b=_0x1bab73['accessKey']||undefined,_0x5d5db2=_0x4151bd||_0x19ef2b,_0x390190=_0x4151bd?_0x4baaaf+_0x9c00c6(0x1f2):_0x19ef2b?(_0x3cafcb[_0x9c00c6(0x1ef)]?_0x9c00c6(0x1ef):_0x9c00c6(0x1e6))+'\x20config':null,_0x32327a=[_0x9c00c6(0x1c7)+AUTH_MODE[_0x9c00c6(0x1fd)]];if(_0x5d5db2){const _0x16239d=maskCliAccessKey(_0x5d5db2);_0x32327a[_0x9c00c6(0x20f)]('AccessKey:\x20'+_0x16239d+(_0x390190?_0x9c00c6(0x1dc)+_0x390190+')':'')),_0x32327a[_0x9c00c6(0x20f)](_0x9c00c6(0x1e2));}if(!_0x5d5db2){_0x32327a[_0x9c00c6(0x20f)](''),_0x32327a['push'](_0x9c00c6(0x1bb)),_0x32327a[_0x9c00c6(0x20f)](''),_0x32327a[_0x9c00c6(0x20f)](_0x9c00c6(0x1cf)+CLI_BIN_NAME+_0x9c00c6(0x211)),_0x32327a[_0x9c00c6(0x20f)](''),_0x32327a[_0x9c00c6(0x20f)]('Option\x20B:\x20apps\x20config\x20('+PRODUCT_CONFIG[_0x9c00c6(0x1d2)]+')'),_0x32327a[_0x9c00c6(0x20f)]('{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}'),_0x32327a['push'](''),_0x32327a[_0x9c00c6(0x20f)](_0x9c00c6(0x208)),_0x32327a[_0x9c00c6(0x20f)](_0x9c00c6(0x210)+_0x4baaaf+'=ak_xxx'),_0x32327a['push'](''),_0x32327a[_0x9c00c6(0x20f)](_0x9c00c6(0x1bf)+CLI_BIN_NAME+_0x9c00c6(0x1ff)),_0x32327a[_0x9c00c6(0x20f)]('If\x20command\x20execution\x20still\x20fails,\x20run:\x20'+CLI_BIN_NAME+'\x20doctor');if(_0x6df733[_0x9c00c6(0x215)](_0x9c00c6(0x209))){const _0x25e090=readStoredDeviceCode();if(_0x25e090&&!isStoredDeviceCodeExpired(_0x25e090)){const _0x27adee=getUserDomain(),_0x546e3c=await fetchDeviceToken(_0x27adee,_0x25e090['code']);if(_0x546e3c[_0x9c00c6(0x1d9)]===_0x9c00c6(0x1ed)&&_0x546e3c['access_key']){const _0x233054={'global':_0x25e090[_0x9c00c6(0x1df)]===_0x9c00c6(0x1ef)},_0xc40f57=readScopedConfig(_0x233054);_0xc40f57[_0x9c00c6(0x1e3)]=_0x546e3c['access_key'],writeScopedConfig(_0xc40f57,_0x233054),deleteStoredDeviceCode();const _0x1a09fa=_0x546e3c[_0x9c00c6(0x1f0)],_0x32a11c=maskCliAccessKey(_0x1a09fa),_0x66cc5=_0x25e090[_0x9c00c6(0x1df)]==='global'?_0x9c00c6(0x1fc):_0x9c00c6(0x212);return{'ok':!![],'message':[_0x9c00c6(0x1c7)+AUTH_MODE[_0x9c00c6(0x1fd)],_0x9c00c6(0x1d7)+_0x32a11c+_0x9c00c6(0x1dc)+_0x66cc5+')','Status:\x20valid'][_0x9c00c6(0x20d)]('\x0a')};}_0x546e3c[_0x9c00c6(0x1d9)]===_0x9c00c6(0x1c5)&&deleteStoredDeviceCode();throw CliErrors[_0x9c00c6(0x20a)](_0x9c00c6(0x1e5));}throw CliErrors[_0x9c00c6(0x20a)](_0x32327a[_0x9c00c6(0x20d)]('\x0a'));}}return{'ok':!![],'message':_0x32327a[_0x9c00c6(0x20d)]('\x0a')};}},{'service':'auth','command':a13_0x23d131(0x1d0),'description':a13_0x23d131(0x1f9),'risk':a13_0x23d131(0x1c4),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x47969c){const _0x14fe21=a13_0x23d131,_0x4f8aea=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x4f8aea,'meta':{'env':_0x47969c[_0x14fe21(0x1ce)]??'production'}}};}},authDeviceDefinition];
@@ -1 +1 @@
1
- function a14_0x335a(){const _0x1f8db4=['6aJSaZy','AbortPrompt','stdout','stdin','167920EtklOf','3583676byJAyy','):\x20','3191133ToAKfE','once','1152uRzizq','314036iEdktM','4726200WjYTHA','removeListener','question','3613434SPWVNo','User\x20aborted\x20prompt','293125TXCMdr','144wwRsou','SIGINT','AccessKey\x20(paste\x20ak_...):\x20','name','AccessKey\x20(','close'];a14_0x335a=function(){return _0x1f8db4;};return a14_0x335a();}function a14_0x4a9f(_0x1aa5a5,_0x57a551){_0x1aa5a5=_0x1aa5a5-0x171;const _0x335a7d=a14_0x335a();let _0x4a9ff3=_0x335a7d[_0x1aa5a5];return _0x4a9ff3;}(function(_0x55c08e,_0x43e732){const _0x2f407f=a14_0x4a9f,_0x13310a=_0x55c08e();while(!![]){try{const _0x169b4d=-parseInt(_0x2f407f(0x17a))/0x1*(parseInt(_0x2f407f(0x184))/0x2)+-parseInt(_0x2f407f(0x181))/0x3+parseInt(_0x2f407f(0x17f))/0x4+parseInt(_0x2f407f(0x185))/0x5+-parseInt(_0x2f407f(0x171))/0x6+parseInt(_0x2f407f(0x173))/0x7*(-parseInt(_0x2f407f(0x174))/0x8)+-parseInt(_0x2f407f(0x183))/0x9*(-parseInt(_0x2f407f(0x17e))/0xa);if(_0x169b4d===_0x43e732)break;else _0x13310a['push'](_0x13310a['shift']());}catch(_0x40f3be){_0x13310a['push'](_0x13310a['shift']());}}}(a14_0x335a,0x997f7));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x5d927d=a14_0x4a9f;super(_0x5d927d(0x172)),this[_0x5d927d(0x177)]='AbortPrompt';}}function createSafeRl(){const _0x29f929=a14_0x4a9f,_0x123453=createInterface({'input':process[_0x29f929(0x17d)],'output':process[_0x29f929(0x17c)]});let _0x1ba9a6;const _0x4ae921=new Promise((_0x2119fe,_0x2c6547)=>{const _0x1662ef=_0x29f929;_0x1ba9a6=()=>{const _0x365393=a14_0x4a9f;_0x1ba9a6&&(_0x123453['removeListener'](_0x365393(0x175),_0x1ba9a6),_0x1ba9a6=undefined);try{_0x123453['close']();}catch{}_0x2c6547(new AbortPrompt());},_0x123453[_0x1662ef(0x182)](_0x1662ef(0x175),_0x1ba9a6);}),_0xad6c5e=()=>{const _0x3d186a=_0x29f929;_0x1ba9a6&&(_0x123453[_0x3d186a(0x186)](_0x3d186a(0x175),_0x1ba9a6),_0x1ba9a6=undefined);try{_0x123453[_0x3d186a(0x179)]();}catch{}};return{'rl':_0x123453,'abortPromise':_0x4ae921,'disposeSuccess':_0xad6c5e};}export async function promptAccessKey(_0x5ec08b=''){const {rl:_0x1b5e90,abortPromise:_0x46a542,disposeSuccess:_0x4f57a9}=createSafeRl(),_0x17af84=new Promise(_0x4bf49f=>{const _0x38d691=a14_0x4a9f,_0xb130f7=_0x5ec08b?_0x38d691(0x178)+_0x5ec08b+_0x38d691(0x180):_0x38d691(0x176);_0x1b5e90[_0x38d691(0x187)](_0xb130f7,_0x154d5b=>{_0x4f57a9(),_0x4bf49f(_0x154d5b['trim']()||_0x5ec08b);});});return Promise['race']([_0x17af84,_0x46a542]);}export function isAbortPrompt(_0x21d2ca){const _0x45f3c4=a14_0x4a9f;return _0x21d2ca instanceof Error&&_0x21d2ca[_0x45f3c4(0x177)]===_0x45f3c4(0x17b);}
1
+ (function(_0x59bcf1,_0x762dce){const _0xfe55be=a14_0x58cc,_0x7d2e90=_0x59bcf1();while(!![]){try{const _0x1a5436=-parseInt(_0xfe55be(0x1a2))/0x1*(parseInt(_0xfe55be(0x1a6))/0x2)+-parseInt(_0xfe55be(0x1ae))/0x3+parseInt(_0xfe55be(0x1ad))/0x4+parseInt(_0xfe55be(0x1b0))/0x5*(-parseInt(_0xfe55be(0x19a))/0x6)+-parseInt(_0xfe55be(0x1a7))/0x7*(parseInt(_0xfe55be(0x19c))/0x8)+-parseInt(_0xfe55be(0x19e))/0x9*(parseInt(_0xfe55be(0x1a4))/0xa)+parseInt(_0xfe55be(0x19b))/0xb*(parseInt(_0xfe55be(0x1a3))/0xc);if(_0x1a5436===_0x762dce)break;else _0x7d2e90['push'](_0x7d2e90['shift']());}catch(_0x485b1c){_0x7d2e90['push'](_0x7d2e90['shift']());}}}(a14_0x1c39,0x21863));import{createInterface}from'node:readline';function a14_0x58cc(_0x319888,_0x496843){_0x319888=_0x319888-0x19a;const _0x1c39d6=a14_0x1c39();let _0x58cccd=_0x1c39d6[_0x319888];return _0x58cccd;}class AbortPrompt extends Error{constructor(){const _0x4a1770=a14_0x58cc;super(_0x4a1770(0x1a5)),this[_0x4a1770(0x1ac)]=_0x4a1770(0x1af);}}function createSafeRl(){const _0x2df65d=a14_0x58cc,_0x270d1f=createInterface({'input':process[_0x2df65d(0x1a9)],'output':process[_0x2df65d(0x1aa)]});let _0x175e4b;const _0x4a3b24=new Promise((_0x2c56ec,_0x19fe68)=>{const _0x3c7600=_0x2df65d;_0x175e4b=()=>{const _0x3e22de=a14_0x58cc;_0x175e4b&&(_0x270d1f['removeListener']('SIGINT',_0x175e4b),_0x175e4b=undefined);try{_0x270d1f[_0x3e22de(0x1a0)]();}catch{}_0x19fe68(new AbortPrompt());},_0x270d1f['once'](_0x3c7600(0x1a1),_0x175e4b);}),_0x482f9a=()=>{const _0xa2d7e1=_0x2df65d;_0x175e4b&&(_0x270d1f[_0xa2d7e1(0x19f)]('SIGINT',_0x175e4b),_0x175e4b=undefined);try{_0x270d1f['close']();}catch{}};return{'rl':_0x270d1f,'abortPromise':_0x4a3b24,'disposeSuccess':_0x482f9a};}function a14_0x1c39(){const _0x4e09da=['8371764sZtfsp','460yCWUzj','User\x20aborted\x20prompt','41138olAUVp','547477MmBGha','):\x20','stdin','stdout','trim','name','882920BaMkLn','146538FsCKai','AbortPrompt','80515LaEKma','race','48tNXogG','11oICxDn','8tyMXjv','AccessKey\x20(paste\x20ak_...):\x20','50436xemCAj','removeListener','close','SIGINT','13KxYSkY'];a14_0x1c39=function(){return _0x4e09da;};return a14_0x1c39();}export async function promptAccessKey(_0x14d864=''){const _0x394f52=a14_0x58cc,{rl:_0x5680aa,abortPromise:_0x2322f4,disposeSuccess:_0x41e30a}=createSafeRl(),_0x52c792=new Promise(_0x144a6f=>{const _0xa3479b=a14_0x58cc,_0x16f169=_0x14d864?'AccessKey\x20('+_0x14d864+_0xa3479b(0x1a8):_0xa3479b(0x19d);_0x5680aa['question'](_0x16f169,_0x2736ff=>{const _0x650b23=_0xa3479b;_0x41e30a(),_0x144a6f(_0x2736ff[_0x650b23(0x1ab)]()||_0x14d864);});});return Promise[_0x394f52(0x1b1)]([_0x52c792,_0x2322f4]);}export function isAbortPrompt(_0xdeb2bc){const _0x4384af=a14_0x58cc;return _0xdeb2bc instanceof Error&&_0xdeb2bc[_0x4384af(0x1ac)]==='AbortPrompt';}
@@ -1 +1 @@
1
- const a15_0x14534c=a15_0x2d71;function a15_0xd94c(){const _0x2d625e=['488UzYtdd','19302PnkfAm','Backend\x20Function\x20name','328107vFgfTt','detail','142596IIEAlc','read','gmtModified','2lLuLjX','4172850wDFqMv','10563eyiUAq','Get\x20a\x20Backend\x20Function\x20endpoint\x20contract\x20by\x20function\x20name','version','(none)','appCode','77804pIJZdc','135msKIdv','24276NpCBre','str','description','functionName'];a15_0xd94c=function(){return _0x2d625e;};return a15_0xd94c();}(function(_0x15dde2,_0x506bd5){const _0x5023d5=a15_0x2d71,_0x133bfa=_0x15dde2();while(!![]){try{const _0x428f1c=parseInt(_0x5023d5(0x197))/0x1+parseInt(_0x5023d5(0x190))/0x2*(-parseInt(_0x5023d5(0x1a0))/0x3)+parseInt(_0x5023d5(0x199))/0x4*(-parseInt(_0x5023d5(0x198))/0x5)+-parseInt(_0x5023d5(0x19e))/0x6+-parseInt(_0x5023d5(0x192))/0x7*(parseInt(_0x5023d5(0x19d))/0x8)+-parseInt(_0x5023d5(0x18d))/0x9+parseInt(_0x5023d5(0x191))/0xa;if(_0x428f1c===_0x506bd5)break;else _0x133bfa['push'](_0x133bfa['shift']());}catch(_0x52ae8d){_0x133bfa['push'](_0x133bfa['shift']());}}}(a15_0xd94c,0x1b09b));import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';function a15_0x2d71(_0x149b04,_0x1e8877){_0x149b04=_0x149b04-0x18c;const _0xd94c4d=a15_0xd94c();let _0x2d7144=_0xd94c4d[_0x149b04];return _0x2d7144;}export const bffDetail={'service':'bff','command':a15_0x14534c(0x18c),'description':a15_0x14534c(0x193),'risk':a15_0x14534c(0x18e),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x14534c(0x19f)}],async 'execute'(_0x3b73d8){const _0x3cba5c=a15_0x14534c,_0x275223=await getBffEndpointContract(_0x3b73d8['appCode'],_0x3b73d8[_0x3cba5c(0x19a)]('name'));return{'ok':!![],'data':{'appCode':_0x275223[_0x3cba5c(0x196)],'functionName':_0x275223[_0x3cba5c(0x19c)],'description':_0x275223[_0x3cba5c(0x19b)]||_0x3cba5c(0x195),'version':_0x275223[_0x3cba5c(0x194)],'gmtModified':_0x275223[_0x3cba5c(0x18f)]}};}};
1
+ const a15_0x35211f=a15_0x51e9;(function(_0x31b4da,_0x34c034){const _0x499517=a15_0x51e9,_0x361e2e=_0x31b4da();while(!![]){try{const _0x22c6bd=parseInt(_0x499517(0x1d1))/0x1+parseInt(_0x499517(0x1dc))/0x2*(parseInt(_0x499517(0x1df))/0x3)+-parseInt(_0x499517(0x1e4))/0x4*(-parseInt(_0x499517(0x1e3))/0x5)+-parseInt(_0x499517(0x1d5))/0x6*(parseInt(_0x499517(0x1d2))/0x7)+parseInt(_0x499517(0x1e2))/0x8+-parseInt(_0x499517(0x1db))/0x9+-parseInt(_0x499517(0x1d9))/0xa*(parseInt(_0x499517(0x1e1))/0xb);if(_0x22c6bd===_0x34c034)break;else _0x361e2e['push'](_0x361e2e['shift']());}catch(_0x1c1627){_0x361e2e['push'](_0x361e2e['shift']());}}}(a15_0x1c19,0xdcd0f));function a15_0x51e9(_0xc7c630,_0x239b85){_0xc7c630=_0xc7c630-0x1d0;const _0x1c1999=a15_0x1c19();let _0x51e95f=_0x1c1999[_0xc7c630];return _0x51e95f;}import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a15_0x35211f(0x1e0),'command':a15_0x35211f(0x1d3),'description':a15_0x35211f(0x1d6),'risk':a15_0x35211f(0x1da),'flags':[{...NAME_FLAG,'required':!![],'description':'Backend\x20Function\x20name'}],async 'execute'(_0x5644d6){const _0x432256=a15_0x35211f,_0x4ba787=await getBffEndpointContract(_0x5644d6[_0x432256(0x1de)],_0x5644d6['str']('name'));return{'ok':!![],'data':{'appCode':_0x4ba787[_0x432256(0x1de)],'functionName':_0x4ba787[_0x432256(0x1d4)],'description':_0x4ba787[_0x432256(0x1d8)]||_0x432256(0x1dd),'version':_0x4ba787[_0x432256(0x1d7)],'gmtModified':_0x4ba787[_0x432256(0x1d0)]}};}};function a15_0x1c19(){const _0x158cb2=['20ryJbTg','485852STrHtW','gmtModified','1562632QbFegS','22855vkYMKC','detail','functionName','1062JemoEV','Get\x20a\x20Backend\x20Function\x20endpoint\x20contract\x20by\x20function\x20name','version','description','760MuUgco','read','12303531OhBtMf','2jBfBjn','(none)','appCode','4435413EXBzjd','bff','137038ytUIwu','2154240FJCMyX'];a15_0x1c19=function(){return _0x158cb2;};return a15_0x1c19();}
@@ -1 +1 @@
1
- const a16_0x342906=a16_0x11c7;function a16_0x4938(){const _0x144382=['now','Backend\x20Function\x20executed\x20in\x20','85608XBUwRK','params','919812IPfwrY','1200748slxYiT','205585vHHndR','152FIlIyd','53977tBWUuG','exec','12uONhnx','10qYIpIc','214632xpHKCT','bff','10hPBsao','read','str','20juZNjw','Execute\x20a\x20Backend\x20Function\x20script\x20by\x20function\x20name','3383369NJdbSl'];a16_0x4938=function(){return _0x144382;};return a16_0x4938();}function a16_0x11c7(_0x28a0e5,_0x2ff5e2){_0x28a0e5=_0x28a0e5-0x10c;const _0x49389c=a16_0x4938();let _0x11c7a1=_0x49389c[_0x28a0e5];return _0x11c7a1;}(function(_0x56c338,_0x172ee5){const _0x26df90=a16_0x11c7,_0x5eb996=_0x56c338();while(!![]){try{const _0xef69b9=parseInt(_0x26df90(0x10f))/0x1+-parseInt(_0x26df90(0x11a))/0x2*(parseInt(_0x26df90(0x11f))/0x3)+parseInt(_0x26df90(0x10e))/0x4+parseInt(_0x26df90(0x117))/0x5*(-parseInt(_0x26df90(0x10d))/0x6)+-parseInt(_0x26df90(0x111))/0x7*(-parseInt(_0x26df90(0x110))/0x8)+parseInt(_0x26df90(0x115))/0x9*(-parseInt(_0x26df90(0x114))/0xa)+parseInt(_0x26df90(0x11c))/0xb*(parseInt(_0x26df90(0x113))/0xc);if(_0xef69b9===_0x172ee5)break;else _0x5eb996['push'](_0x5eb996['shift']());}catch(_0x519f8a){_0x5eb996['push'](_0x5eb996['shift']());}}}(a16_0x4938,0x53ff0));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_0x342906(0x116),'command':a16_0x342906(0x112),'description':a16_0x342906(0x11b),'risk':a16_0x342906(0x118),'flags':[{...NAME_FLAG,'required':!![],'description':'Backend\x20Function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0x3fd71d){const _0x1692f8=a16_0x342906,_0x4e4cb6=parseJsonParams(_0x3fd71d[_0x1692f8(0x119)](_0x1692f8(0x10c))),_0x2b3406=Date[_0x1692f8(0x11d)](),_0x5199a7=await executeSdkBff(_0x3fd71d['str']('name'),_0x4e4cb6),_0x5f058b=Date[_0x1692f8(0x11d)]()-_0x2b3406;return{'ok':!![],'data':{'result':_0x5199a7,'elapsed':_0x5f058b},'message':_0x1692f8(0x11e)+_0x5f058b+'ms'};}};
1
+ function a16_0x25b7(){const _0x69de8e=['968CMXxal','Execute\x20a\x20Backend\x20Function\x20script\x20by\x20function\x20name','now','10iZxHlI','100539QQDQIh','read','7553ruNlOL','24IAyRIL','922150TgOEef','26360312VypFLg','722101tulPdi','4zjGeMh','4003299BPNJHV','Backend\x20Function\x20name\x20to\x20execute','exec','str','697386qCsQpp'];a16_0x25b7=function(){return _0x69de8e;};return a16_0x25b7();}const a16_0x55187d=a16_0x2992;function a16_0x2992(_0x3d0a7b,_0x35df02){_0x3d0a7b=_0x3d0a7b-0x77;const _0x25b7e0=a16_0x25b7();let _0x2992d5=_0x25b7e0[_0x3d0a7b];return _0x2992d5;}(function(_0x2589d5,_0x42843b){const _0x4d9687=a16_0x2992,_0x443df0=_0x2589d5();while(!![]){try{const _0x27d7c6=-parseInt(_0x4d9687(0x7c))/0x1+parseInt(_0x4d9687(0x79))/0x2*(-parseInt(_0x4d9687(0x87))/0x3)+parseInt(_0x4d9687(0x7d))/0x4*(-parseInt(_0x4d9687(0x7a))/0x5)+-parseInt(_0x4d9687(0x82))/0x6+-parseInt(_0x4d9687(0x78))/0x7*(parseInt(_0x4d9687(0x83))/0x8)+parseInt(_0x4d9687(0x7e))/0x9*(-parseInt(_0x4d9687(0x86))/0xa)+parseInt(_0x4d9687(0x7b))/0xb;if(_0x27d7c6===_0x42843b)break;else _0x443df0['push'](_0x443df0['shift']());}catch(_0x20ab2a){_0x443df0['push'](_0x443df0['shift']());}}}(a16_0x25b7,0x60b48));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':'bff','command':a16_0x55187d(0x80),'description':a16_0x55187d(0x84),'risk':a16_0x55187d(0x77),'flags':[{...NAME_FLAG,'required':!![],'description':a16_0x55187d(0x7f)},PARAMS_FLAG],async 'execute'(_0x7257c3){const _0x5595d8=a16_0x55187d,_0x29716e=parseJsonParams(_0x7257c3['str']('params')),_0x17b2ca=Date['now'](),_0x1a8831=await executeSdkBff(_0x7257c3[_0x5595d8(0x81)]('name'),_0x29716e),_0x4c7a8a=Date[_0x5595d8(0x85)]()-_0x17b2ca;return{'ok':!![],'data':{'result':_0x1a8831,'elapsed':_0x4c7a8a},'message':'Backend\x20Function\x20executed\x20in\x20'+_0x4c7a8a+'ms'};}};
@@ -1 +1 @@
1
- function a17_0x56fc(_0x268395,_0x5bd979){_0x268395=_0x268395-0x16e;const _0x7ec446=a17_0x7ec4();let _0x56fc52=_0x7ec446[_0x268395];return _0x56fc52;}(function(_0x250c77,_0x13f4d1){const _0x263c2a=a17_0x56fc,_0x1d9f94=_0x250c77();while(!![]){try{const _0x1a971b=-parseInt(_0x263c2a(0x174))/0x1*(-parseInt(_0x263c2a(0x172))/0x2)+parseInt(_0x263c2a(0x16f))/0x3+-parseInt(_0x263c2a(0x171))/0x4+parseInt(_0x263c2a(0x170))/0x5*(parseInt(_0x263c2a(0x176))/0x6)+parseInt(_0x263c2a(0x173))/0x7+-parseInt(_0x263c2a(0x16e))/0x8+-parseInt(_0x263c2a(0x175))/0x9;if(_0x1a971b===_0x13f4d1)break;else _0x1d9f94['push'](_0x1d9f94['shift']());}catch(_0x384af3){_0x1d9f94['push'](_0x1d9f94['shift']());}}}(a17_0x7ec4,0x194d4));function a17_0x7ec4(){const _0x3c10cb=['122785AViyXh','181972YxXDrW','4mHLbaW','525679obWiMk','49129POTHUD','1744056xRqZtx','30uVyVQQ','587192CRzFIh','360516QNAzzo'];a17_0x7ec4=function(){return _0x3c10cb;};return a17_0x7ec4();}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
1
+ (function(_0x22691d,_0x2465ff){const _0x2a53b9=a17_0x3c6d,_0x14c6c8=_0x22691d();while(!![]){try{const _0x21189b=parseInt(_0x2a53b9(0x13e))/0x1+-parseInt(_0x2a53b9(0x138))/0x2*(parseInt(_0x2a53b9(0x139))/0x3)+parseInt(_0x2a53b9(0x141))/0x4+-parseInt(_0x2a53b9(0x13f))/0x5+-parseInt(_0x2a53b9(0x13b))/0x6+-parseInt(_0x2a53b9(0x140))/0x7*(-parseInt(_0x2a53b9(0x13c))/0x8)+parseInt(_0x2a53b9(0x13d))/0x9*(-parseInt(_0x2a53b9(0x13a))/0xa);if(_0x21189b===_0x2465ff)break;else _0x14c6c8['push'](_0x14c6c8['shift']());}catch(_0x460941){_0x14c6c8['push'](_0x14c6c8['shift']());}}}(a17_0x47c1,0xb93f2));import{bffDetail}from'../../commands/bff/detail.js';function a17_0x3c6d(_0x3e3e03,_0x4d1c0e){_0x3e3e03=_0x3e3e03-0x138;const _0x47c1ad=a17_0x47c1();let _0x3c6d6c=_0x47c1ad[_0x3e3e03];return _0x3c6d6c;}import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];function a17_0x47c1(){const _0x32f9b6=['10550932IfKNNZ','5479152pLKBEq','816CFtihu','2616EQjThq','81710uiPrcr','8577342rWXhmZ','8iFIzJA','261HGiivn','1085011FIhqtE','5905065xmeaxl'];a17_0x47c1=function(){return _0x32f9b6;};return a17_0x47c1();}
@@ -1 +1 @@
1
- const a18_0x77d217=a18_0x4dab;function a18_0x335e(){const _0x41e945=['7540416FkVGpe','setLogPath','1356428uwfoid','\x20at\x20','inherit','cwd','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20npm\x20package.','cli-skill-install','30188oXECmT','changed','read','Install\x20the\x20built-in\x20CLI\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','code','\x20installed','INSTALL_FAILED','35YvvKOQ','\x20is\x20already\x20current','install','CLI\x20Built-in\x20Skill\x20','installedPath','unknown','repairCommand','pipe','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','1452063emiujK','cli-skill','skillVersion','6ugwpYS','627688znGYKi','error','147597lAmTIW','Built-in\x20Skill\x20install\x20failed\x20[','4623913JcsroG'];a18_0x335e=function(){return _0x41e945;};return a18_0x335e();}(function(_0x2c4a56,_0x5acebc){const _0x42f687=a18_0x4dab,_0x227bc1=_0x2c4a56();while(!![]){try{const _0x3c48d9=parseInt(_0x42f687(0x166))/0x1+parseInt(_0x42f687(0x16b))/0x2+-parseInt(_0x42f687(0x160))/0x3+-parseInt(_0x42f687(0x171))/0x4*(parseInt(_0x42f687(0x157))/0x5)+parseInt(_0x42f687(0x163))/0x6*(-parseInt(_0x42f687(0x168))/0x7)+-parseInt(_0x42f687(0x164))/0x8+parseInt(_0x42f687(0x169))/0x9;if(_0x3c48d9===_0x5acebc)break;else _0x227bc1['push'](_0x227bc1['shift']());}catch(_0xcf37ef){_0x227bc1['push'](_0x227bc1['shift']());}}}(a18_0x335e,0x5eab5));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';import{logger}from'../../utils/logger.js';function a18_0x4dab(_0x5d3987,_0x38a14c){_0x5d3987=_0x5d3987-0x152;const _0x335e02=a18_0x335e();let _0x4dab6f=_0x335e02[_0x5d3987];return _0x4dab6f;}export const cliSkillDefinitions=[{'service':a18_0x77d217(0x161),'command':a18_0x77d217(0x159),'description':a18_0x77d217(0x153),'risk':a18_0x77d217(0x152),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4a5a06){const _0x42b2b6=a18_0x77d217;logger[_0x42b2b6(0x16a)](process[_0x42b2b6(0x16e)]()),logger['info'](_0x42b2b6(0x170),_0x42b2b6(0x16f));const _0x24a66d=installBuiltinSkill({'stdio':_0x4a5a06['nonInteractive']?_0x42b2b6(0x15e):_0x42b2b6(0x16d)});if(!_0x24a66d['ok'])throw CliErrors['apiError'](_0x42b2b6(0x167)+(_0x24a66d[_0x42b2b6(0x154)]||_0x42b2b6(0x156))+']:\x20'+(_0x24a66d[_0x42b2b6(0x165)]||_0x42b2b6(0x15c)),_0x42b2b6(0x15f)+_0x24a66d[_0x42b2b6(0x15d)]);const _0x2be7a9=_0x24a66d[_0x42b2b6(0x15b)]?_0x42b2b6(0x16c)+_0x24a66d['installedPath']:'';return console['log'](_0x24a66d[_0x42b2b6(0x172)]?_0x42b2b6(0x15a)+_0x24a66d[_0x42b2b6(0x162)]+_0x42b2b6(0x155)+_0x2be7a9:_0x42b2b6(0x15a)+_0x24a66d[_0x42b2b6(0x162)]+_0x42b2b6(0x158)+_0x2be7a9),{'ok':!![]};}}];
1
+ const a18_0x240abe=a18_0x5c86;(function(_0x3d78a8,_0xa23a8b){const _0x5a3d16=a18_0x5c86,_0x58b3f4=_0x3d78a8();while(!![]){try{const _0x1d30a5=-parseInt(_0x5a3d16(0x11c))/0x1*(parseInt(_0x5a3d16(0x102))/0x2)+-parseInt(_0x5a3d16(0x10a))/0x3*(parseInt(_0x5a3d16(0x106))/0x4)+-parseInt(_0x5a3d16(0x108))/0x5*(-parseInt(_0x5a3d16(0x10b))/0x6)+-parseInt(_0x5a3d16(0x110))/0x7*(parseInt(_0x5a3d16(0x10f))/0x8)+-parseInt(_0x5a3d16(0x118))/0x9+-parseInt(_0x5a3d16(0x116))/0xa*(-parseInt(_0x5a3d16(0x10c))/0xb)+-parseInt(_0x5a3d16(0x10d))/0xc*(-parseInt(_0x5a3d16(0x100))/0xd);if(_0x1d30a5===_0xa23a8b)break;else _0x58b3f4['push'](_0x58b3f4['shift']());}catch(_0x4112eb){_0x58b3f4['push'](_0x58b3f4['shift']());}}}(a18_0x216b,0xbb7dd));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';function a18_0x216b(){const _0x51a7a4=['read','nonInteractive','104dFQkiW','code','29576EKlIMr','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20npm\x20package.','CLI\x20Built-in\x20Skill\x20','install','4jPqJJm','skillVersion','10990AzGJKc','unknown','1739082FgREKW','2064DAOKnj','501050HTilza','4241208SfDOYZ','inherit','16rKlrTw','5234138rgXXaG','INSTALL_FAILED','cwd','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','installedPath','\x20at\x20','210rFVViV','error','1830771hGTZdv','cli-skill','apiError','setLogPath','101WBoSmB','\x20installed','pipe','log','Install\x20the\x20built-in\x20CLI\x20Skill\x20required\x20by\x20Lovrabet\x20runtime'];a18_0x216b=function(){return _0x51a7a4;};return a18_0x216b();}import{logger}from'../../utils/logger.js';function a18_0x5c86(_0x194523,_0x54ac42){_0x194523=_0x194523-0xfd;const _0x216b28=a18_0x216b();let _0x5c86b2=_0x216b28[_0x194523];return _0x5c86b2;}export const cliSkillDefinitions=[{'service':a18_0x240abe(0x119),'command':a18_0x240abe(0x105),'description':a18_0x240abe(0xfd),'risk':a18_0x240abe(0xfe),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x471ab3){const _0xbd1f29=a18_0x240abe;logger[_0xbd1f29(0x11b)](process[_0xbd1f29(0x112)]()),logger['info']('cli-skill-install',_0xbd1f29(0x103));const _0x2fa3e4=installBuiltinSkill({'stdio':_0x471ab3[_0xbd1f29(0xff)]?_0xbd1f29(0x11e):_0xbd1f29(0x10e)});if(!_0x2fa3e4['ok'])throw CliErrors[_0xbd1f29(0x11a)]('Built-in\x20Skill\x20install\x20failed\x20['+(_0x2fa3e4[_0xbd1f29(0x101)]||_0xbd1f29(0x111))+']:\x20'+(_0x2fa3e4[_0xbd1f29(0x117)]||_0xbd1f29(0x109)),_0xbd1f29(0x113)+_0x2fa3e4['repairCommand']);const _0x54c1f2=_0x2fa3e4[_0xbd1f29(0x114)]?_0xbd1f29(0x115)+_0x2fa3e4[_0xbd1f29(0x114)]:'';return console[_0xbd1f29(0x11f)](_0x2fa3e4['changed']?_0xbd1f29(0x104)+_0x2fa3e4[_0xbd1f29(0x107)]+_0xbd1f29(0x11d)+_0x54c1f2:_0xbd1f29(0x104)+_0x2fa3e4['skillVersion']+'\x20is\x20already\x20current'+_0x54c1f2),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x69144b,_0x5a9ede){const _0x462509=a19_0x3ff8,_0x10c598=_0x69144b();while(!![]){try{const _0x4508fe=parseInt(_0x462509(0x182))/0x1+parseInt(_0x462509(0x180))/0x2+-parseInt(_0x462509(0x17a))/0x3+-parseInt(_0x462509(0x17e))/0x4*(parseInt(_0x462509(0x18d))/0x5)+parseInt(_0x462509(0x184))/0x6*(-parseInt(_0x462509(0x17f))/0x7)+-parseInt(_0x462509(0x18c))/0x8*(-parseInt(_0x462509(0x186))/0x9)+parseInt(_0x462509(0x17b))/0xa;if(_0x4508fe===_0x5a9ede)break;else _0x10c598['push'](_0x10c598['shift']());}catch(_0x3ee3a6){_0x10c598['push'](_0x10c598['shift']());}}}(a19_0x2cdc,0xabf92));function a19_0x2cdc(){const _0x2eac18=['126lXfqLO','1279082jlBUsi','\x20first.','371365pRLYBH','global-default','106326JFtIyf','newConfigFileName','36MvmDTj','global','\x20found).','inProject',',\x20or\x20create\x20a\x20project-local\x20','validation','500296OzUbWH','10fjinSO','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','263061icNgxL','7187390wgHcmr','Use\x20only\x20one\x20config\x20scope\x20flag.','project-or-global-explicit','1737452gdutVc'];a19_0x2cdc=function(){return _0x2eac18;};return a19_0x2cdc();}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';function a19_0x3ff8(_0x2606e7,_0x207614){_0x2606e7=_0x2606e7-0x17a;const _0x2cdc12=a19_0x2cdc();let _0x3ff8d4=_0x2cdc12[_0x2606e7];return _0x3ff8d4;}import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,CLI_PROTECTED_CONFIG_KEYS,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isCliProtectedConfigKey,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export function resolveConfigScope(_0x5258ed){const _0x291869=a19_0x3ff8,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x37ad08}=_0x5258ed;if(explicitGlobal&&explicitProject)throw CliErrors[_0x291869(0x18b)](_0x291869(0x18e),_0x291869(0x17c));if(explicitGlobal)return _0x291869(0x187);if(explicitProject)return'project';switch(_0x37ad08){case _0x291869(0x183):return _0x291869(0x187);case _0x291869(0x17d):if(!(_0x5258ed[_0x291869(0x189)]??isInProject()))throw CliErrors[_0x291869(0x18b)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG[_0x291869(0x185)]+_0x291869(0x188),'Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG[_0x291869(0x185)]+_0x291869(0x18a)+PRODUCT_CONFIG[_0x291869(0x185)]+_0x291869(0x181));return'project';}}export function toScopeFlags(_0x1d4802){const _0x21ada2=a19_0x3ff8;return{'global':_0x1d4802===_0x21ada2(0x187)};}export function formatScopeLabel(_0xca7c27){return _0xca7c27==='global'?'\x20(global)':'';}
1
+ (function(_0x15a5e5,_0x480be6){const _0x550d62=a19_0x5ca1,_0x41d495=_0x15a5e5();while(!![]){try{const _0x321910=parseInt(_0x550d62(0x1ef))/0x1+-parseInt(_0x550d62(0x1f2))/0x2+-parseInt(_0x550d62(0x1ee))/0x3+-parseInt(_0x550d62(0x1f0))/0x4*(parseInt(_0x550d62(0x1f6))/0x5)+parseInt(_0x550d62(0x200))/0x6*(parseInt(_0x550d62(0x1f5))/0x7)+-parseInt(_0x550d62(0x1ff))/0x8*(-parseInt(_0x550d62(0x201))/0x9)+parseInt(_0x550d62(0x1fd))/0xa*(-parseInt(_0x550d62(0x1fe))/0xb);if(_0x321910===_0x480be6)break;else _0x41d495['push'](_0x41d495['shift']());}catch(_0x4b1a2f){_0x41d495['push'](_0x41d495['shift']());}}}(a19_0x44f1,0xca1ba));function a19_0x5ca1(_0x2afe0b,_0xa6d811){_0x2afe0b=_0x2afe0b-0x1ed;const _0x44f16b=a19_0x44f1();let _0x5ca1e5=_0x44f16b[_0x2afe0b];return _0x5ca1e5;}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';export function resolveConfigScope(_0x431146){const _0x3c47cf=a19_0x5ca1,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x9a4e12}=_0x431146;if(explicitGlobal&&explicitProject)throw CliErrors[_0x3c47cf(0x204)](_0x3c47cf(0x1f8),_0x3c47cf(0x1f9));if(explicitGlobal)return _0x3c47cf(0x202);if(explicitProject)return _0x3c47cf(0x1ed);switch(_0x9a4e12){case _0x3c47cf(0x203):return _0x3c47cf(0x202);case'project-or-global-explicit':if(!(_0x431146[_0x3c47cf(0x1f1)]??isInProject()))throw CliErrors['validation'](_0x3c47cf(0x1fc)+PRODUCT_CONFIG[_0x3c47cf(0x1f4)]+_0x3c47cf(0x1fa),_0x3c47cf(0x1f7)+PRODUCT_CONFIG[_0x3c47cf(0x1f4)]+_0x3c47cf(0x1f3)+PRODUCT_CONFIG[_0x3c47cf(0x1f4)]+_0x3c47cf(0x1fb));return _0x3c47cf(0x1ed);}}function a19_0x44f1(){const _0x10b527=['Not\x20inside\x20a\x20project\x20(no\x20','10zYJuHX','26525543KIjtRY','1148352TVUSmp','17238DcHPkU','90OGQvkv','global','global-default','validation','project','34779KNhXFr','843212GQafwp','8UweGoi','inProject','197756PsJzxX',',\x20or\x20create\x20a\x20project-local\x20','newConfigFileName','3598NhsJXr','1014140TnyOaF','Add\x20--global\x20to\x20write\x20to\x20~/','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','Use\x20only\x20one\x20config\x20scope\x20flag.','\x20found).','\x20first.'];a19_0x44f1=function(){return _0x10b527;};return a19_0x44f1();}export function toScopeFlags(_0x2372c1){const _0x503a18=a19_0x5ca1;return{'global':_0x2372c1===_0x503a18(0x202)};}export function formatScopeLabel(_0x40d8a0){const _0x38ce94=a19_0x5ca1;return _0x40d8a0===_0x38ce94(0x202)?'\x20(global)':'';}
@@ -1 +1 @@
1
- (function(_0x56c8ef,_0x2cc634){const _0xa0d269=a20_0x4396,_0x2de08e=_0x56c8ef();while(!![]){try{const _0x475936=parseInt(_0xa0d269(0x155))/0x1*(-parseInt(_0xa0d269(0x164))/0x2)+parseInt(_0xa0d269(0x160))/0x3*(-parseInt(_0xa0d269(0x167))/0x4)+-parseInt(_0xa0d269(0x15e))/0x5+parseInt(_0xa0d269(0x151))/0x6*(parseInt(_0xa0d269(0x153))/0x7)+-parseInt(_0xa0d269(0x162))/0x8+-parseInt(_0xa0d269(0x154))/0x9+parseInt(_0xa0d269(0x158))/0xa;if(_0x475936===_0x2cc634)break;else _0x2de08e['push'](_0x2de08e['shift']());}catch(_0x3040e8){_0x2de08e['push'](_0x2de08e['shift']());}}}(a20_0x20fc,0x46450));import{CliErrors}from'../../errors.js';function isSet(_0x2bef1d,_0xce2a50){const _0x2148e5=a20_0x4396,_0x147c3c=_0x2bef1d[_0x2148e5(0x150)](_0xce2a50);return _0x147c3c!==undefined&&_0x147c3c!==''&&_0x147c3c!==![]&&_0x147c3c!==0x0;}function a20_0x4396(_0x111a8e,_0x16fb9c){_0x111a8e=_0x111a8e-0x150;const _0x20fc94=a20_0x20fc();let _0x439609=_0x20fc94[_0x111a8e];return _0x439609;}function fmtNames(_0x40f66f){const _0xfd9f2a=a20_0x4396;return _0x40f66f['map'](_0x3ceaf4=>'--'+_0x3ceaf4)[_0xfd9f2a(0x15c)](',\x20');}export function requireOneOf(_0x4aa622,_0x2fd554,_0x1ea6b3){const _0x556a94=a20_0x4396,_0x34d92c=_0x2fd554[_0x556a94(0x166)](_0x51c082=>isSet(_0x4aa622,_0x51c082));if(_0x34d92c['length']!==0x1)throw CliErrors[_0x556a94(0x168)](_0x34d92c[_0x556a94(0x15b)]===0x0?'Exactly\x20one\x20of\x20'+fmtNames(_0x2fd554)+_0x556a94(0x15f)+_0x1ea6b3+'`.':_0x556a94(0x157)+fmtNames(_0x2fd554)+_0x556a94(0x161)+fmtNames(_0x34d92c)+'.',_0x34d92c[_0x556a94(0x15b)]===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x2fd554):_0x556a94(0x16b));}export function requireAnyOf(_0x78b26d,_0x560266,_0x169025){const _0x41808f=a20_0x4396;if(!_0x560266['some'](_0x3bf36f=>isSet(_0x78b26d,_0x3bf36f)))throw CliErrors[_0x41808f(0x168)]('At\x20least\x20one\x20of\x20'+fmtNames(_0x560266)+'\x20is\x20required\x20for\x20`'+_0x169025+'`.',_0x41808f(0x159)+fmtNames(_0x560266));}export function mutuallyExclusive(_0x25f64a,_0x39c667,_0x56c4c6){const _0x71c812=a20_0x4396,_0x325123=_0x39c667['filter'](_0x36607b=>isSet(_0x25f64a,_0x36607b));if(_0x325123[_0x71c812(0x15b)]>0x1)throw CliErrors[_0x71c812(0x168)](_0x71c812(0x15a)+fmtNames(_0x325123)+_0x71c812(0x165)+_0x56c4c6+'`.',_0x71c812(0x16a)+fmtNames(_0x39c667));}export function validatePattern(_0x3c498c,_0xd11b1d,_0x4f3618,_0x25e200){const _0x1b66d5=a20_0x4396,_0x312683=_0x3c498c[_0x1b66d5(0x169)](_0xd11b1d);if(_0x312683&&!_0x4f3618[_0x1b66d5(0x15d)](_0x312683))throw CliErrors[_0x1b66d5(0x168)](_0x1b66d5(0x152)+_0xd11b1d+_0x1b66d5(0x156)+_0x25e200+_0x1b66d5(0x163)+_0x312683+'\x22.');}function a20_0x20fc(){const _0x59e398=['\x20is\x20allowed,\x20found:\x20','3916824EIDxjZ',',\x20got\x20\x22','4rRqgSL','\x20are\x20mutually\x20exclusive\x20for\x20`','filter','1265052kMExhv','validation','str','Use\x20only\x20one\x20of:\x20','Remove\x20all\x20but\x20one.','flag','102CEGilF','Invalid\x20--','177009uhOJFe','716877kTDfWH','147703TwvBDd',':\x20expected\x20','Only\x20one\x20of\x20','10419940PjCsdd','Provide\x20one\x20of:\x20','Flags\x20','length','join','test','15620JjPHzB','\x20is\x20required\x20for\x20`','3dQrXAz'];a20_0x20fc=function(){return _0x59e398;};return a20_0x20fc();}
1
+ function a20_0x2e00(_0x1358aa,_0x358dbc){_0x1358aa=_0x1358aa-0x197;const _0x3aea6f=a20_0x3aea();let _0x2e0064=_0x3aea6f[_0x1358aa];return _0x2e0064;}(function(_0x3e20b6,_0x3eda79){const _0x3f91f6=a20_0x2e00,_0x59dabd=_0x3e20b6();while(!![]){try{const _0x5ad112=parseInt(_0x3f91f6(0x1a7))/0x1*(parseInt(_0x3f91f6(0x1aa))/0x2)+parseInt(_0x3f91f6(0x1af))/0x3*(-parseInt(_0x3f91f6(0x19b))/0x4)+-parseInt(_0x3f91f6(0x1b5))/0x5*(-parseInt(_0x3f91f6(0x197))/0x6)+-parseInt(_0x3f91f6(0x1b1))/0x7+-parseInt(_0x3f91f6(0x1b0))/0x8+parseInt(_0x3f91f6(0x1b2))/0x9+-parseInt(_0x3f91f6(0x1ab))/0xa*(-parseInt(_0x3f91f6(0x1a6))/0xb);if(_0x5ad112===_0x3eda79)break;else _0x59dabd['push'](_0x59dabd['shift']());}catch(_0x4d8c1a){_0x59dabd['push'](_0x59dabd['shift']());}}}(a20_0x3aea,0x3ccfc));import{CliErrors}from'../../errors.js';function isSet(_0x3259b0,_0x144442){const _0x274f42=a20_0x2e00,_0x1f74ef=_0x3259b0[_0x274f42(0x1a0)](_0x144442);return _0x1f74ef!==undefined&&_0x1f74ef!==''&&_0x1f74ef!==![]&&_0x1f74ef!==0x0;}function fmtNames(_0x52be08){const _0x24fbb1=a20_0x2e00;return _0x52be08[_0x24fbb1(0x1a2)](_0xe25899=>'--'+_0xe25899)[_0x24fbb1(0x19d)](',\x20');}export function requireOneOf(_0x563d90,_0xd617c5,_0x10cedd){const _0x365296=a20_0x2e00,_0x203b58=_0xd617c5['filter'](_0x448959=>isSet(_0x563d90,_0x448959));if(_0x203b58['length']!==0x1)throw CliErrors['validation'](_0x203b58[_0x365296(0x198)]===0x0?_0x365296(0x1a9)+fmtNames(_0xd617c5)+_0x365296(0x19e)+_0x10cedd+'`.':_0x365296(0x1a8)+fmtNames(_0xd617c5)+_0x365296(0x1a5)+fmtNames(_0x203b58)+'.',_0x203b58[_0x365296(0x198)]===0x0?_0x365296(0x1a4)+fmtNames(_0xd617c5):_0x365296(0x1a1));}export function requireAnyOf(_0x2a6696,_0x55f605,_0x49871a){const _0x4da4f7=a20_0x2e00;if(!_0x55f605[_0x4da4f7(0x1ac)](_0x2f370d=>isSet(_0x2a6696,_0x2f370d)))throw CliErrors['validation'](_0x4da4f7(0x19c)+fmtNames(_0x55f605)+_0x4da4f7(0x19e)+_0x49871a+'`.',_0x4da4f7(0x1a4)+fmtNames(_0x55f605));}export function mutuallyExclusive(_0x544393,_0x44c8bf,_0x4cec5d){const _0x9c6d46=a20_0x2e00,_0x51d9cf=_0x44c8bf[_0x9c6d46(0x1ad)](_0x27b33e=>isSet(_0x544393,_0x27b33e));if(_0x51d9cf[_0x9c6d46(0x198)]>0x1)throw CliErrors[_0x9c6d46(0x1b4)](_0x9c6d46(0x1b3)+fmtNames(_0x51d9cf)+_0x9c6d46(0x19a)+_0x4cec5d+'`.',_0x9c6d46(0x1ae)+fmtNames(_0x44c8bf));}export function validatePattern(_0x284a55,_0x53a0c4,_0x40f222,_0x5337b2){const _0x514ac0=a20_0x2e00,_0x17130f=_0x284a55[_0x514ac0(0x19f)](_0x53a0c4);if(_0x17130f&&!_0x40f222[_0x514ac0(0x199)](_0x17130f))throw CliErrors[_0x514ac0(0x1b4)]('Invalid\x20--'+_0x53a0c4+':\x20expected\x20'+_0x5337b2+_0x514ac0(0x1a3)+_0x17130f+'\x22.');}function a20_0x3aea(){const _0x3be7cc=['30MeFRTk','some','filter','Use\x20only\x20one\x20of:\x20','11307lkXjVm','1585408nAdWmi','287140ailpCk','4046967UVpWsn','Flags\x20','validation','2325XxLMAc','96mFwRmY','length','test','\x20are\x20mutually\x20exclusive\x20for\x20`','524GWoAqg','At\x20least\x20one\x20of\x20','join','\x20is\x20required\x20for\x20`','str','flag','Remove\x20all\x20but\x20one.','map',',\x20got\x20\x22','Provide\x20one\x20of:\x20','\x20is\x20allowed,\x20found:\x20','1517527MSBKDK','7403tgcWhe','Only\x20one\x20of\x20','Exactly\x20one\x20of\x20','30ifQOUC'];a20_0x3aea=function(){return _0x3be7cc;};return a20_0x3aea();}
@@ -1 +1 @@
1
- const a21_0x420455=a21_0x9b21;function a21_0x3e86(){const _0x47b70c=['294456LrBOLl','3305czbAfD','Write\x20to\x20the\x20global\x20configuration','code','684TzhIuU','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','Dataset\x20code\x20(32-char\x20hex\x20UUID)','params','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','89652UDnhZP','532JZfeTt','208afShSb','70dvKljO','182633hoRNXO','126COnssT','Return\x20full\x20raw\x20response\x20object','Resource\x20name\x20for\x20lookup','42eEfQzy','316472Pytjti','336354vlodkC','string','1868idmyWS','boolean','number','sqlcode','name','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)'];a21_0x3e86=function(){return _0x47b70c;};return a21_0x3e86();}(function(_0x3deab7,_0x5effc2){const _0x6dd655=a21_0x9b21,_0x294d83=_0x3deab7();while(!![]){try{const _0x365e7e=-parseInt(_0x6dd655(0x173))/0x1+parseInt(_0x6dd655(0x175))/0x2*(-parseInt(_0x6dd655(0x17f))/0x3)+parseInt(_0x6dd655(0x186))/0x4*(parseInt(_0x6dd655(0x17c))/0x5)+-parseInt(_0x6dd655(0x17b))/0x6*(-parseInt(_0x6dd655(0x171))/0x7)+parseInt(_0x6dd655(0x172))/0x8*(parseInt(_0x6dd655(0x18a))/0x9)+parseInt(_0x6dd655(0x188))/0xa*(-parseInt(_0x6dd655(0x189))/0xb)+-parseInt(_0x6dd655(0x185))/0xc*(-parseInt(_0x6dd655(0x187))/0xd);if(_0x365e7e===_0x5effc2)break;else _0x294d83['push'](_0x294d83['shift']());}catch(_0x4a191f){_0x294d83['push'](_0x294d83['shift']());}}}(a21_0x3e86,0x5f43c));export const GLOBAL_SCOPE_FLAG={'name':'global','type':a21_0x420455(0x176),'default':![],'description':a21_0x420455(0x17d)};export const CODE_FLAG={'name':a21_0x420455(0x17e),'type':a21_0x420455(0x174),'required':!![],'description':a21_0x420455(0x182),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a21_0x420455(0x184)}};export const SQLCODE_FLAG={'name':a21_0x420455(0x178),'type':a21_0x420455(0x174),'required':!![],'description':a21_0x420455(0x181),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a21_0x420455(0x180)}};export const VERBOSE_FLAG={'name':'verbose','type':a21_0x420455(0x176),'description':a21_0x420455(0x18b)};export const PARAMS_FLAG={'name':a21_0x420455(0x183),'type':a21_0x420455(0x174),'description':a21_0x420455(0x17a)};export const NAME_FLAG={'name':a21_0x420455(0x179),'type':a21_0x420455(0x174),'description':a21_0x420455(0x18c)};function a21_0x9b21(_0x225539,_0x25d1d7){_0x225539=_0x225539-0x171;const _0x3e8694=a21_0x3e86();let _0x9b2159=_0x3e8694[_0x225539];return _0x9b2159;}export const ID_FLAG={'name':'id','type':a21_0x420455(0x177),'required':!![],'description':'Resource\x20ID'};
1
+ function a21_0x4ee4(_0x3801f3,_0x576e1e){_0x3801f3=_0x3801f3-0xbf;const _0x103b3f=a21_0x103b();let _0x4ee446=_0x103b3f[_0x3801f3];return _0x4ee446;}const a21_0x33be4d=a21_0x4ee4;(function(_0x3e6700,_0x21013d){const _0x819f6f=a21_0x4ee4,_0x2f5c3f=_0x3e6700();while(!![]){try{const _0x376860=parseInt(_0x819f6f(0xd2))/0x1+parseInt(_0x819f6f(0xc2))/0x2+parseInt(_0x819f6f(0xce))/0x3*(parseInt(_0x819f6f(0xd5))/0x4)+-parseInt(_0x819f6f(0xd3))/0x5+-parseInt(_0x819f6f(0xd8))/0x6*(parseInt(_0x819f6f(0xd9))/0x7)+parseInt(_0x819f6f(0xc1))/0x8*(-parseInt(_0x819f6f(0xc6))/0x9)+parseInt(_0x819f6f(0xd7))/0xa;if(_0x376860===_0x21013d)break;else _0x2f5c3f['push'](_0x2f5c3f['shift']());}catch(_0x3b3533){_0x2f5c3f['push'](_0x2f5c3f['shift']());}}}(a21_0x103b,0xd08f9));export const GLOBAL_SCOPE_FLAG={'name':a21_0x33be4d(0xc3),'type':'boolean','default':![],'description':a21_0x33be4d(0xd0)};export const CODE_FLAG={'name':'code','type':'string','required':!![],'description':a21_0x33be4d(0xc4),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a21_0x33be4d(0xc8)}};export const SQLCODE_FLAG={'name':a21_0x33be4d(0xcd),'type':a21_0x33be4d(0xcf),'required':!![],'description':a21_0x33be4d(0xbf),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a21_0x33be4d(0xd4)}};export const VERBOSE_FLAG={'name':a21_0x33be4d(0xcc),'type':a21_0x33be4d(0xd6),'description':a21_0x33be4d(0xcb)};function a21_0x103b(){const _0x5d0abc=['boolean','29476990NDzcSf','1410dKbfth','47054FYoGFU','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','params','4114312WXDGMn','3299246hPDLsi','global','Dataset\x20code\x20(32-char\x20hex\x20UUID)','name','18DTmoXL','number','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','Resource\x20ID','Return\x20full\x20raw\x20response\x20object','verbose','sqlcode','3SFRGwV','string','Write\x20to\x20the\x20global\x20configuration','Resource\x20name\x20for\x20lookup','156204znlNmA','6905850uxkffy','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','360628ItUdgc'];a21_0x103b=function(){return _0x5d0abc;};return a21_0x103b();}export const PARAMS_FLAG={'name':a21_0x33be4d(0xc0),'type':'string','description':a21_0x33be4d(0xc9)};export const NAME_FLAG={'name':a21_0x33be4d(0xc5),'type':'string','description':a21_0x33be4d(0xd1)};export const ID_FLAG={'name':'id','type':a21_0x33be4d(0xc7),'required':!![],'description':a21_0x33be4d(0xca)};
@@ -1 +1 @@
1
- (function(_0x505309,_0x4e2c88){const _0x144767=a22_0x46c8,_0x4c45f5=_0x505309();while(!![]){try{const _0x13649b=-parseInt(_0x144767(0x1b0))/0x1+-parseInt(_0x144767(0x1b6))/0x2*(-parseInt(_0x144767(0x1bc))/0x3)+parseInt(_0x144767(0x1b2))/0x4+parseInt(_0x144767(0x1b8))/0x5*(parseInt(_0x144767(0x1b3))/0x6)+parseInt(_0x144767(0x1ba))/0x7+-parseInt(_0x144767(0x1b4))/0x8*(parseInt(_0x144767(0x1b7))/0x9)+-parseInt(_0x144767(0x1c1))/0xa*(parseInt(_0x144767(0x1af))/0xb);if(_0x13649b===_0x4e2c88)break;else _0x4c45f5['push'](_0x4c45f5['shift']());}catch(_0x777c93){_0x4c45f5['push'](_0x4c45f5['shift']());}}}(a22_0x4085,0x83eef));function a22_0x46c8(_0x2f9a9,_0x479fac){_0x2f9a9=_0x2f9a9-0x1af;const _0x408533=a22_0x4085();let _0x46c8fb=_0x408533[_0x2f9a9];return _0x46c8fb;}import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function a22_0x4085(){const _0x5b50d1=['2621332PtvAnf','160242cVCqRi','8teJcfw','isFile','313366ncqxeM','3762963wDsYUh','5fMDzZz','File\x20is\x20not\x20a\x20regular\x20file:\x20','4008669ggCMmF','\x20path\x20is\x20required.','15hXZVIP','size','\x20MB','ceil','validation','30DbtOes','1354639BiLgQe','710169PXqiuo','toFixed'];a22_0x4085=function(){return _0x5b50d1;};return a22_0x4085();}function formatBytes(_0x4cd0ed){const _0x4ff43e=a22_0x46c8;if(_0x4cd0ed>=BYTES_PER_MB){const _0x375d3e=Math[_0x4ff43e(0x1bf)](_0x4cd0ed/BYTES_PER_MB*0x64)/0x64;return _0x375d3e[_0x4ff43e(0x1b1)](0x2)+_0x4ff43e(0x1be);}return _0x4cd0ed+'\x20B';}export function requireRuntimeUploadFile(_0x39cbec,_0x326c97){const _0x4b5e8d=a22_0x46c8,_0x1b9b2a=_0x39cbec['trim']();if(!_0x1b9b2a)throw CliErrors['validation'](_0x326c97+_0x4b5e8d(0x1bb));if(!existsSync(_0x1b9b2a))throw CliErrors[_0x4b5e8d(0x1c0)]('File\x20not\x20found:\x20'+_0x1b9b2a);const _0x43b3bb=statSync(_0x1b9b2a);if(!_0x43b3bb[_0x4b5e8d(0x1b5)]())throw CliErrors['validation'](_0x4b5e8d(0x1b9)+_0x1b9b2a);if(_0x43b3bb[_0x4b5e8d(0x1bd)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x4b5e8d(0x1c0)]('File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20'+_0x1b9b2a+'\x20('+formatBytes(_0x43b3bb[_0x4b5e8d(0x1bd)])+')');return{'path':_0x1b9b2a,'size':_0x43b3bb[_0x4b5e8d(0x1bd)]};}
1
+ function a22_0x215a(_0x3384bd,_0x37e079){_0x3384bd=_0x3384bd-0x13c;const _0x1c3c58=a22_0x1c3c();let _0x215a52=_0x1c3c58[_0x3384bd];return _0x215a52;}(function(_0xec7ef6,_0x5afab3){const _0x1d2392=a22_0x215a,_0x1f5b01=_0xec7ef6();while(!![]){try{const _0x15fd9c=parseInt(_0x1d2392(0x147))/0x1*(-parseInt(_0x1d2392(0x149))/0x2)+-parseInt(_0x1d2392(0x143))/0x3+-parseInt(_0x1d2392(0x13f))/0x4*(parseInt(_0x1d2392(0x14d))/0x5)+parseInt(_0x1d2392(0x14c))/0x6+-parseInt(_0x1d2392(0x14e))/0x7+parseInt(_0x1d2392(0x142))/0x8*(-parseInt(_0x1d2392(0x13e))/0x9)+parseInt(_0x1d2392(0x150))/0xa*(parseInt(_0x1d2392(0x144))/0xb);if(_0x15fd9c===_0x5afab3)break;else _0x1f5b01['push'](_0x1f5b01['shift']());}catch(_0x1fef84){_0x1f5b01['push'](_0x1f5b01['shift']());}}}(a22_0x1c3c,0x5854c));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x1d5ed7){const _0x3c8bb6=a22_0x215a;if(_0x1d5ed7>=BYTES_PER_MB){const _0xbbd647=Math[_0x3c8bb6(0x14f)](_0x1d5ed7/BYTES_PER_MB*0x64)/0x64;return _0xbbd647[_0x3c8bb6(0x146)](0x2)+'\x20MB';}return _0x1d5ed7+'\x20B';}export function requireRuntimeUploadFile(_0x27a538,_0x3b49ac){const _0x3e8513=a22_0x215a,_0x5dd450=_0x27a538[_0x3e8513(0x14b)]();if(!_0x5dd450)throw CliErrors[_0x3e8513(0x13c)](_0x3b49ac+_0x3e8513(0x14a));if(!existsSync(_0x5dd450))throw CliErrors[_0x3e8513(0x13c)](_0x3e8513(0x141)+_0x5dd450);const _0x502f64=statSync(_0x5dd450);if(!_0x502f64[_0x3e8513(0x13d)]())throw CliErrors[_0x3e8513(0x13c)](_0x3e8513(0x140)+_0x5dd450);if(_0x502f64['size']>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x3e8513(0x13c)](_0x3e8513(0x148)+_0x5dd450+'\x20('+formatBytes(_0x502f64[_0x3e8513(0x145)])+')');return{'path':_0x5dd450,'size':_0x502f64[_0x3e8513(0x145)]};}function a22_0x1c3c(){const _0x9658ec=['3108528CyYfgG','497456ESgAVO','File\x20is\x20not\x20a\x20regular\x20file:\x20','File\x20not\x20found:\x20','8JVVfIs','1179663UXJurn','24596143UGflyR','size','toFixed','439OoFFdU','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','1994Lhdwlu','\x20path\x20is\x20required.','trim','785550HcyqbV','20YRtlqC','2319674rXTiaP','ceil','10KTHYDw','validation','isFile'];a22_0x1c3c=function(){return _0x9658ec;};return a22_0x1c3c();}
@@ -1 +1 @@
1
- const a23_0x4a4f30=a23_0x7847;(function(_0x50144a,_0x2e6a4f){const _0x3043e5=a23_0x7847,_0x29fd92=_0x50144a();while(!![]){try{const _0x32e61a=parseInt(_0x3043e5(0x134))/0x1*(-parseInt(_0x3043e5(0x11c))/0x2)+-parseInt(_0x3043e5(0x121))/0x3*(parseInt(_0x3043e5(0x120))/0x4)+-parseInt(_0x3043e5(0x141))/0x5+-parseInt(_0x3043e5(0x140))/0x6+-parseInt(_0x3043e5(0x14c))/0x7+parseInt(_0x3043e5(0x114))/0x8*(parseInt(_0x3043e5(0x119))/0x9)+parseInt(_0x3043e5(0x129))/0xa*(parseInt(_0x3043e5(0x132))/0xb);if(_0x32e61a===_0x2e6a4f)break;else _0x29fd92['push'](_0x29fd92['shift']());}catch(_0x9d5906){_0x29fd92['push'](_0x29fd92['shift']());}}}(a23_0x554f,0xa7a1f));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isCliProtectedConfigKey,isTopLevelConfigKey,normalizeLocale,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';import{configInitDefinition}from'../../commands/config/init.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';import{maskCliAccessKey,redactCliConfigCredentials,redactCliConfigValue}from'../../utils/access-key-redaction.js';function parseAliasAppcodeSetKey(_0xb62753){const _0x8da20b=a23_0x7847,_0x559f40=_0xb62753[_0x8da20b(0x116)]('.');if(_0x559f40['length']!==0x3||_0x559f40[0x0]!==_0x8da20b(0x12e)||_0x559f40[0x2]!=='appcode')return undefined;const _0x6878fc=_0x559f40[0x1]?.[_0x8da20b(0x12c)]();return _0x6878fc?_0x6878fc:undefined;}function a23_0x7847(_0xdff86c,_0x2f107a){_0xdff86c=_0xdff86c-0x10a;const _0x554f3c=a23_0x554f();let _0x784760=_0x554f3c[_0xdff86c];return _0x784760;}function parseAliasDeleteKey(_0xfc9d14){const _0x373602=a23_0x7847,_0x5f4e4f=_0xfc9d14[_0x373602(0x116)]('.');if(_0x5f4e4f[_0x373602(0x113)]===0x2&&_0x5f4e4f[0x0]==='apps'){const _0x37523e=_0x5f4e4f[0x1]?.[_0x373602(0x12c)]();return _0x37523e?{'alias':_0x37523e}:undefined;}if(_0x5f4e4f[_0x373602(0x113)]===0x3&&_0x5f4e4f[0x0]===_0x373602(0x12e)&&_0x5f4e4f[0x2]==='appcode'){const _0x3e0797=_0x5f4e4f[0x1]?.[_0x373602(0x12c)]();return _0x3e0797?{'alias':_0x3e0797,'field':'appcode'}:undefined;}return undefined;}function setLocalAppAlias(_0x49c2a1,_0x547a93,_0x519602){const _0x15c413=a23_0x7847,_0x158242=_0x49c2a1[_0x15c413(0x12e)]&&typeof _0x49c2a1[_0x15c413(0x12e)]==='object'&&!Array[_0x15c413(0x122)](_0x49c2a1[_0x15c413(0x12e)])?_0x49c2a1[_0x15c413(0x12e)]:{},_0x4b2659=_0x158242[_0x547a93]&&typeof _0x158242[_0x547a93]==='object'&&!Array[_0x15c413(0x122)](_0x158242[_0x547a93])?_0x158242[_0x547a93]:{};_0x4b2659['appcode']=_0x519602,_0x158242[_0x547a93]=_0x4b2659,_0x49c2a1[_0x15c413(0x12e)]=_0x158242;}function deleteLocalAppAlias(_0x124558,_0x4ded4c){const _0x23446b=a23_0x7847;if(!_0x124558[_0x23446b(0x12e)]||typeof _0x124558[_0x23446b(0x12e)]!==_0x23446b(0x11a)||Array['isArray'](_0x124558['apps']))return![];const _0x119aa0=_0x124558[_0x23446b(0x12e)],_0x2596de=_0x119aa0[_0x4ded4c[_0x23446b(0x11f)]];if(!_0x2596de||typeof _0x2596de!==_0x23446b(0x11a)||Array[_0x23446b(0x122)](_0x2596de))return![];if(!_0x4ded4c[_0x23446b(0x10a)])return delete _0x119aa0[_0x4ded4c['alias']],!![];if(!(_0x4ded4c[_0x23446b(0x10a)]in _0x2596de))return![];return delete _0x2596de[_0x4ded4c[_0x23446b(0x10a)]],Object[_0x23446b(0x133)](_0x2596de)[_0x23446b(0x113)]===0x0&&delete _0x119aa0[_0x4ded4c[_0x23446b(0x11f)]],!![];}function a23_0x554f(){const _0x45d589=['11XLULCv','keys','134RAesSl','Invalid\x20locale\x20value.','\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.','list','config','args','Value\x20to\x20assign','bool','Config\x20files:\x0a','\x20(global)','log','List\x20current\x20config','4786506LCQSPP','3802595yhPURZ','pageSize\x20must\x20be\x20a\x20positive\x20number','\x20config\x20set\x20<key>\x20<value>\x20[--global]','Key\x20already\x20absent:\x20','pageSize','../../context.js','Key\x20not\x20found:\x20','Invalid\x20value\x20for\x20\x22','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','Delete\x20a\x20configuration\x20value','Deletes\x20a\x20Lovrabet\x20CLI\x20config\x20key.\x20Later\x20commands\x20will\x20fall\x20back\x20to\x20another\x20config\x20layer\x20or\x20the\x20default.','2873255uVJXzh','Usage:\x20','field','set','read','get','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','global','key','(none)','Missing\x20key\x20argument.','length','88bDKtnF','\x20config\x20get\x20<key>','split','value','join','316467GbdfgD','object',';\x20apps.<alias>.appcode','1256YgJCQq','\x20\x20project:\x20','Get\x20a\x20config\x20value','alias','47356DVeENN','33WPSHBt','isArray','Set\x20a\x20configuration\x20value','locale','project-or-global-explicit','includes','\x22.\x20Allowed:\x20','validation','24829460xeloKC','\x22\x20is\x20not\x20settable.','stringify','trim','write','apps','`\x20=\x20\x22','Set\x20`','Missing\x20key\x20or\x20value.'];a23_0x554f=function(){return _0x45d589;};return a23_0x554f();}const listDef={'service':a23_0x4a4f30(0x138),'command':a23_0x4a4f30(0x137),'description':a23_0x4a4f30(0x13f),'risk':a23_0x4a4f30(0x10c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x37b5af){const _0x35a8cc=a23_0x4a4f30,{buildConfigFromFlags:_0x5d3229}=await import(_0x35a8cc(0x146)),_0xcef62e=_0x5d3229({}),_0x1f5eb2=redactCliConfigCredentials(_0xcef62e['raw']),_0x52cb5a=getProjectConfigPath(),_0x50fd7e=resolveWriteConfigPath('global');if(_0x37b5af['format']==='pretty')return{'ok':!![],'message':_0x35a8cc(0x10e)+(JSON[_0x35a8cc(0x12b)](_0x1f5eb2,null,0x2)+'\x0a\x0a')+_0x35a8cc(0x13c)+(_0x35a8cc(0x11d)+(_0x52cb5a??_0x35a8cc(0x111))+'\x0a')+('\x20\x20global:\x20\x20'+_0x50fd7e)};return{'ok':!![],'data':{'effective':_0x1f5eb2,'configFiles':{'project':_0x52cb5a??null,'global':_0x50fd7e}}};}},getDef={'service':'config','command':a23_0x4a4f30(0x10d),'description':a23_0x4a4f30(0x11e),'risk':a23_0x4a4f30(0x10c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x4a4f30(0x110),'description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x4c4ba1){const _0x3a15e5=a23_0x4a4f30,_0x163181=_0x4c4ba1[_0x3a15e5(0x139)][0x0];if(!_0x163181)throw CliErrors['validation']('Missing\x20key\x20argument.','Usage:\x20'+CLI_BIN_NAME+_0x3a15e5(0x115));const {buildConfigFromFlags:_0x381aae}=await import(_0x3a15e5(0x146)),{raw:_0x1d6151}=_0x381aae({});if(_0x163181[_0x3a15e5(0x126)]('.')){const _0x922d53=_0x163181['split']('.');let _0x4002da=_0x1d6151;for(const _0xd76807 of _0x922d53){if(_0x4002da==null||typeof _0x4002da!==_0x3a15e5(0x11a))throw CliErrors['validation'](_0x3a15e5(0x147)+_0x163181);_0x4002da=_0x4002da[_0xd76807];}if(_0x4002da===undefined)throw CliErrors[_0x3a15e5(0x128)](_0x3a15e5(0x147)+_0x163181);const _0x3574af=redactCliConfigValue(_0x163181,_0x4002da);return console[_0x3a15e5(0x13e)](typeof _0x3574af===_0x3a15e5(0x11a)?JSON[_0x3a15e5(0x12b)](_0x3574af,null,0x2):String(_0x3574af)),{'ok':!![]};}const _0x47d058=_0x1d6151[_0x163181];if(_0x47d058===undefined)throw CliErrors[_0x3a15e5(0x128)](_0x3a15e5(0x147)+_0x163181);const _0x3d38e2=redactCliConfigValue(_0x163181,_0x47d058);return console['log'](typeof _0x3d38e2===_0x3a15e5(0x11a)?JSON[_0x3a15e5(0x12b)](_0x3d38e2,null,0x2):String(_0x3d38e2)),{'ok':!![]};}},setDef={'service':a23_0x4a4f30(0x138),'command':a23_0x4a4f30(0x10b),'description':a23_0x4a4f30(0x123),'risk':a23_0x4a4f30(0x12d),'confirmationDescription':'Changes\x20Lovrabet\x20CLI\x20configuration.\x20Later\x20commands\x20may\x20use\x20a\x20different\x20app,\x20environment,\x20or\x20output\x20behavior.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a23_0x4a4f30(0x117),'description':a23_0x4a4f30(0x13a),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x34b94d){const _0x3d691e=a23_0x4a4f30,_0x1ed78e=_0x34b94d[_0x3d691e(0x139)][0x0],_0x4169fb=_0x34b94d[_0x3d691e(0x139)][0x1];if(!_0x1ed78e||_0x4169fb===undefined)throw CliErrors[_0x3d691e(0x128)](_0x3d691e(0x131),_0x3d691e(0x14d)+CLI_BIN_NAME+_0x3d691e(0x143));if(ENUM_KEYS[_0x1ed78e]&&!ENUM_KEYS[_0x1ed78e][_0x3d691e(0x126)](_0x4169fb))throw CliErrors[_0x3d691e(0x128)](_0x3d691e(0x148)+_0x1ed78e+_0x3d691e(0x127)+ENUM_KEYS[_0x1ed78e][_0x3d691e(0x118)](',\x20'));if(isCliProtectedConfigKey(_0x1ed78e))throw CliErrors[_0x3d691e(0x128)]('\x22'+_0x1ed78e+_0x3d691e(0x136));if(_0x1ed78e===_0x3d691e(0x145)){const _0x1090cb=Number(_0x4169fb);if(isNaN(_0x1090cb)||_0x1090cb<=0x0)throw CliErrors[_0x3d691e(0x128)](_0x3d691e(0x142));}const _0xbe1043=resolveWriteScope({'explicitGlobal':_0x34b94d[_0x3d691e(0x13b)](_0x3d691e(0x10f)),'policy':_0x3d691e(0x125)}),_0x2b1ed1=toScopeFlags(_0xbe1043),_0x13bf2d=readScopedConfig(_0x2b1ed1),_0x589215=parseAliasAppcodeSetKey(_0x1ed78e);if(!_0x589215&&!isTopLevelConfigKey(_0x1ed78e))throw CliErrors[_0x3d691e(0x128)]('Top-level\x20key\x20\x22'+_0x1ed78e+_0x3d691e(0x12a),'Settable\x20keys:\x20'+getTopLevelConfigKeySummary()+_0x3d691e(0x11b));if(_0x589215)setLocalAppAlias(_0x13bf2d,_0x589215,_0x4169fb);else{if(_0x1ed78e===_0x3d691e(0x124)){const _0x415298=normalizeLocale(_0x4169fb);if(!_0x415298)throw CliErrors['validation'](_0x3d691e(0x135),_0x3d691e(0x149));_0x13bf2d[_0x3d691e(0x124)]=_0x415298;}else _0x13bf2d[_0x1ed78e]=_0x1ed78e===_0x3d691e(0x145)?Number(_0x4169fb):DOMAIN_CONFIG_FIELDS[_0x3d691e(0x126)](_0x1ed78e)?normalizeDomainOrigin(_0x1ed78e,_0x4169fb):_0x4169fb;}const _0x5d53f6=_0x1ed78e==='accessKey'?maskCliAccessKey(_0x4169fb):!_0x589215&&_0x1ed78e===_0x3d691e(0x124)?String(_0x13bf2d['locale']):_0x4169fb;return console[_0x3d691e(0x13e)](_0x3d691e(0x130)+_0x1ed78e+_0x3d691e(0x12f)+_0x5d53f6+'\x22'+(_0xbe1043===_0x3d691e(0x10f)?_0x3d691e(0x13d):'')),writeScopedConfig(_0x13bf2d,_0x2b1ed1),{'ok':!![]};}},deleteDef={'service':a23_0x4a4f30(0x138),'command':'delete','description':a23_0x4a4f30(0x14a),'risk':a23_0x4a4f30(0x12d),'confirmationDescription':a23_0x4a4f30(0x14b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x4a4f30(0x110),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x3f52f3){const _0x5cf970=a23_0x4a4f30,_0x51c7d2=_0x3f52f3[_0x5cf970(0x139)][0x0];if(!_0x51c7d2)throw CliErrors[_0x5cf970(0x128)](_0x5cf970(0x112),_0x5cf970(0x14d)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');if(isCliProtectedConfigKey(_0x51c7d2))throw CliErrors[_0x5cf970(0x128)]('\x22'+_0x51c7d2+_0x5cf970(0x136));const _0x856009=resolveWriteScope({'explicitGlobal':_0x3f52f3[_0x5cf970(0x13b)](_0x5cf970(0x10f)),'policy':_0x5cf970(0x125)}),_0x44e09f=toScopeFlags(_0x856009),_0x343ec5=readScopedConfig(_0x44e09f),_0x335c6e=parseAliasDeleteKey(_0x51c7d2);if(_0x335c6e){if(!deleteLocalAppAlias(_0x343ec5,_0x335c6e))return console[_0x5cf970(0x13e)](_0x5cf970(0x144)+_0x51c7d2+(_0x856009===_0x5cf970(0x10f)?_0x5cf970(0x13d):'')),{'ok':!![],'data':{'key':_0x51c7d2,'scope':_0x856009,'changed':![]}};return console[_0x5cf970(0x13e)]('Deleted\x20`'+_0x51c7d2+'`'+(_0x856009===_0x5cf970(0x10f)?_0x5cf970(0x13d):'')),writeScopedConfig(_0x343ec5,_0x44e09f),{'ok':!![],'data':{'key':_0x51c7d2,'scope':_0x856009,'changed':!![]}};}if(_0x343ec5[_0x51c7d2]===undefined)return console[_0x5cf970(0x13e)](_0x5cf970(0x144)+_0x51c7d2+(_0x856009==='global'?'\x20(global)':'')),{'ok':!![],'data':{'key':_0x51c7d2,'scope':_0x856009,'changed':![]}};return delete _0x343ec5[_0x51c7d2],console[_0x5cf970(0x13e)]('Deleted\x20`'+_0x51c7d2+'`'+(_0x856009===_0x5cf970(0x10f)?_0x5cf970(0x13d):'')),writeScopedConfig(_0x343ec5,_0x44e09f),{'ok':!![],'data':{'key':_0x51c7d2,'scope':_0x856009,'changed':!![]}};}};export const configDefinitions=[configInitDefinition,listDef,getDef,setDef,deleteDef];
1
+ const a23_0x584895=a23_0x4076;(function(_0x19e993,_0x33f050){const _0x546333=a23_0x4076,_0x12ea19=_0x19e993();while(!![]){try{const _0xad8c93=-parseInt(_0x546333(0x174))/0x1*(-parseInt(_0x546333(0x172))/0x2)+parseInt(_0x546333(0x157))/0x3+parseInt(_0x546333(0x16d))/0x4*(parseInt(_0x546333(0x14c))/0x5)+parseInt(_0x546333(0x163))/0x6*(parseInt(_0x546333(0x145))/0x7)+-parseInt(_0x546333(0x153))/0x8*(-parseInt(_0x546333(0x151))/0x9)+parseInt(_0x546333(0x14b))/0xa+parseInt(_0x546333(0x186))/0xb*(-parseInt(_0x546333(0x179))/0xc);if(_0xad8c93===_0x33f050)break;else _0x12ea19['push'](_0x12ea19['shift']());}catch(_0x50be77){_0x12ea19['push'](_0x12ea19['shift']());}}}(a23_0xaa6c,0x7f7a6));function a23_0x4076(_0x2b0af6,_0x415077){_0x2b0af6=_0x2b0af6-0x145;const _0xaa6c9=a23_0xaa6c();let _0x407644=_0xaa6c9[_0x2b0af6];return _0x407644;}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isCliProtectedConfigKey,isTopLevelConfigKey,normalizeLocale,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';import{configInitDefinition}from'../../commands/config/init.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';import{maskCliAccessKey,redactCliConfigCredentials,redactCliConfigValue}from'../../utils/access-key-redaction.js';function parseAliasAppcodeSetKey(_0x5c6746){const _0x28eb9a=a23_0x4076,_0x1d966f=_0x5c6746[_0x28eb9a(0x164)]('.');if(_0x1d966f['length']!==0x3||_0x1d966f[0x0]!==_0x28eb9a(0x15d)||_0x1d966f[0x2]!==_0x28eb9a(0x146))return undefined;const _0x5a96a5=_0x1d966f[0x1]?.[_0x28eb9a(0x171)]();return _0x5a96a5?_0x5a96a5:undefined;}function parseAliasDeleteKey(_0x5cdec9){const _0x4b88a3=a23_0x4076,_0x6f0af5=_0x5cdec9[_0x4b88a3(0x164)]('.');if(_0x6f0af5[_0x4b88a3(0x148)]===0x2&&_0x6f0af5[0x0]===_0x4b88a3(0x15d)){const _0x299138=_0x6f0af5[0x1]?.[_0x4b88a3(0x171)]();return _0x299138?{'alias':_0x299138}:undefined;}if(_0x6f0af5[_0x4b88a3(0x148)]===0x3&&_0x6f0af5[0x0]===_0x4b88a3(0x15d)&&_0x6f0af5[0x2]==='appcode'){const _0x3797fa=_0x6f0af5[0x1]?.['trim']();return _0x3797fa?{'alias':_0x3797fa,'field':'appcode'}:undefined;}return undefined;}function setLocalAppAlias(_0x13ce1f,_0x50c2b4,_0x4c4d90){const _0x537151=a23_0x4076,_0xade660=_0x13ce1f[_0x537151(0x15d)]&&typeof _0x13ce1f['apps']===_0x537151(0x167)&&!Array['isArray'](_0x13ce1f[_0x537151(0x15d)])?_0x13ce1f[_0x537151(0x15d)]:{},_0x20fd3a=_0xade660[_0x50c2b4]&&typeof _0xade660[_0x50c2b4]===_0x537151(0x167)&&!Array['isArray'](_0xade660[_0x50c2b4])?_0xade660[_0x50c2b4]:{};_0x20fd3a['appcode']=_0x4c4d90,_0xade660[_0x50c2b4]=_0x20fd3a,_0x13ce1f['apps']=_0xade660;}function deleteLocalAppAlias(_0x57576c,_0x118339){const _0x2846c8=a23_0x4076;if(!_0x57576c[_0x2846c8(0x15d)]||typeof _0x57576c[_0x2846c8(0x15d)]!=='object'||Array[_0x2846c8(0x187)](_0x57576c['apps']))return![];const _0x4232d5=_0x57576c[_0x2846c8(0x15d)],_0x5ab627=_0x4232d5[_0x118339[_0x2846c8(0x150)]];if(!_0x5ab627||typeof _0x5ab627!==_0x2846c8(0x167)||Array[_0x2846c8(0x187)](_0x5ab627))return![];if(!_0x118339[_0x2846c8(0x159)])return delete _0x4232d5[_0x118339[_0x2846c8(0x150)]],!![];if(!(_0x118339['field']in _0x5ab627))return![];return delete _0x5ab627[_0x118339[_0x2846c8(0x159)]],Object[_0x2846c8(0x169)](_0x5ab627)[_0x2846c8(0x148)]===0x0&&delete _0x4232d5[_0x118339[_0x2846c8(0x150)]],!![];}const listDef={'service':a23_0x584895(0x188),'command':a23_0x584895(0x160),'description':a23_0x584895(0x182),'risk':a23_0x584895(0x165),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x24eb73){const _0x3da536=a23_0x584895,{buildConfigFromFlags:_0xf5f1e0}=await import(_0x3da536(0x15e)),_0xec84ea=_0xf5f1e0({}),_0xcfc9d3=redactCliConfigCredentials(_0xec84ea[_0x3da536(0x149)]),_0x17cb12=getProjectConfigPath(),_0x35b1d0=resolveWriteConfigPath(_0x3da536(0x18e));if(_0x24eb73['format']==='pretty')return{'ok':!![],'message':_0x3da536(0x15c)+(JSON[_0x3da536(0x154)](_0xcfc9d3,null,0x2)+'\x0a\x0a')+_0x3da536(0x17c)+(_0x3da536(0x168)+(_0x17cb12??_0x3da536(0x17e))+'\x0a')+(_0x3da536(0x18d)+_0x35b1d0)};return{'ok':!![],'data':{'effective':_0xcfc9d3,'configFiles':{'project':_0x17cb12??null,'global':_0x35b1d0}}};}},getDef={'service':a23_0x584895(0x188),'command':'get','description':a23_0x584895(0x17d),'risk':a23_0x584895(0x165),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x584895(0x183),'description':a23_0x584895(0x181),'required':!![]}],'flags':[],async 'execute'(_0x277cc2){const _0x2afd4a=a23_0x584895,_0x28b949=_0x277cc2[_0x2afd4a(0x15f)][0x0];if(!_0x28b949)throw CliErrors['validation'](_0x2afd4a(0x166),_0x2afd4a(0x16b)+CLI_BIN_NAME+_0x2afd4a(0x173));const {buildConfigFromFlags:_0x221be0}=await import(_0x2afd4a(0x15e)),{raw:_0x4dac39}=_0x221be0({});if(_0x28b949[_0x2afd4a(0x152)]('.')){const _0xef3d5f=_0x28b949[_0x2afd4a(0x164)]('.');let _0xbd3191=_0x4dac39;for(const _0x39df9a of _0xef3d5f){if(_0xbd3191==null||typeof _0xbd3191!==_0x2afd4a(0x167))throw CliErrors[_0x2afd4a(0x189)](_0x2afd4a(0x17f)+_0x28b949);_0xbd3191=_0xbd3191[_0x39df9a];}if(_0xbd3191===undefined)throw CliErrors[_0x2afd4a(0x189)](_0x2afd4a(0x17f)+_0x28b949);const _0x4e431e=redactCliConfigValue(_0x28b949,_0xbd3191);return console[_0x2afd4a(0x162)](typeof _0x4e431e===_0x2afd4a(0x167)?JSON[_0x2afd4a(0x154)](_0x4e431e,null,0x2):String(_0x4e431e)),{'ok':!![]};}const _0x38dad2=_0x4dac39[_0x28b949];if(_0x38dad2===undefined)throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x28b949);const _0x64b42e=redactCliConfigValue(_0x28b949,_0x38dad2);return console[_0x2afd4a(0x162)](typeof _0x64b42e===_0x2afd4a(0x167)?JSON['stringify'](_0x64b42e,null,0x2):String(_0x64b42e)),{'ok':!![]};}},setDef={'service':'config','command':a23_0x584895(0x16c),'description':'Set\x20a\x20configuration\x20value','risk':a23_0x584895(0x18c),'confirmationDescription':'Changes\x20Lovrabet\x20CLI\x20configuration.\x20Later\x20commands\x20may\x20use\x20a\x20different\x20app,\x20environment,\x20or\x20output\x20behavior.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a23_0x584895(0x16a),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x24df45){const _0x1977e4=a23_0x584895,_0x264ef6=_0x24df45[_0x1977e4(0x15f)][0x0],_0x423d2e=_0x24df45[_0x1977e4(0x15f)][0x1];if(!_0x264ef6||_0x423d2e===undefined)throw CliErrors['validation'](_0x1977e4(0x14d),_0x1977e4(0x16b)+CLI_BIN_NAME+_0x1977e4(0x17a));if(ENUM_KEYS[_0x264ef6]&&!ENUM_KEYS[_0x264ef6][_0x1977e4(0x152)](_0x423d2e))throw CliErrors[_0x1977e4(0x189)](_0x1977e4(0x14e)+_0x264ef6+_0x1977e4(0x155)+ENUM_KEYS[_0x264ef6][_0x1977e4(0x15b)](',\x20'));if(isCliProtectedConfigKey(_0x264ef6))throw CliErrors[_0x1977e4(0x189)]('\x22'+_0x264ef6+_0x1977e4(0x158));if(_0x264ef6===_0x1977e4(0x16e)){const _0x90c130=Number(_0x423d2e);if(isNaN(_0x90c130)||_0x90c130<=0x0)throw CliErrors['validation'](_0x1977e4(0x16f));}const _0x3cb0bb=resolveWriteScope({'explicitGlobal':_0x24df45[_0x1977e4(0x175)](_0x1977e4(0x18e)),'policy':_0x1977e4(0x17b)}),_0x36349e=toScopeFlags(_0x3cb0bb),_0x5b9a4a=readScopedConfig(_0x36349e),_0x5a4303=parseAliasAppcodeSetKey(_0x264ef6);if(!_0x5a4303&&!isTopLevelConfigKey(_0x264ef6))throw CliErrors[_0x1977e4(0x189)]('Top-level\x20key\x20\x22'+_0x264ef6+_0x1977e4(0x156),_0x1977e4(0x185)+getTopLevelConfigKeySummary()+_0x1977e4(0x180));if(_0x5a4303)setLocalAppAlias(_0x5b9a4a,_0x5a4303,_0x423d2e);else{if(_0x264ef6===_0x1977e4(0x14a)){const _0x3c8b06=normalizeLocale(_0x423d2e);if(!_0x3c8b06)throw CliErrors[_0x1977e4(0x189)](_0x1977e4(0x15a),_0x1977e4(0x18b));_0x5b9a4a[_0x1977e4(0x14a)]=_0x3c8b06;}else _0x5b9a4a[_0x264ef6]=_0x264ef6===_0x1977e4(0x16e)?Number(_0x423d2e):DOMAIN_CONFIG_FIELDS[_0x1977e4(0x152)](_0x264ef6)?normalizeDomainOrigin(_0x264ef6,_0x423d2e):_0x423d2e;}const _0x20a7dd=_0x264ef6==='accessKey'?maskCliAccessKey(_0x423d2e):!_0x5a4303&&_0x264ef6===_0x1977e4(0x14a)?String(_0x5b9a4a['locale']):_0x423d2e;return console[_0x1977e4(0x162)](_0x1977e4(0x176)+_0x264ef6+_0x1977e4(0x161)+_0x20a7dd+'\x22'+(_0x3cb0bb==='global'?'\x20(global)':'')),writeScopedConfig(_0x5b9a4a,_0x36349e),{'ok':!![]};}},deleteDef={'service':a23_0x584895(0x188),'command':a23_0x584895(0x147),'description':a23_0x584895(0x184),'risk':a23_0x584895(0x18c),'confirmationDescription':a23_0x584895(0x178),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0xdfd29){const _0x2dd342=a23_0x584895,_0x45a9d5=_0xdfd29[_0x2dd342(0x15f)][0x0];if(!_0x45a9d5)throw CliErrors[_0x2dd342(0x189)]('Missing\x20key\x20argument.',_0x2dd342(0x16b)+CLI_BIN_NAME+_0x2dd342(0x18a));if(isCliProtectedConfigKey(_0x45a9d5))throw CliErrors[_0x2dd342(0x189)]('\x22'+_0x45a9d5+_0x2dd342(0x158));const _0x4b43d4=resolveWriteScope({'explicitGlobal':_0xdfd29[_0x2dd342(0x175)](_0x2dd342(0x18e)),'policy':_0x2dd342(0x17b)}),_0x52a579=toScopeFlags(_0x4b43d4),_0x1c15dc=readScopedConfig(_0x52a579),_0xfe6613=parseAliasDeleteKey(_0x45a9d5);if(_0xfe6613){if(!deleteLocalAppAlias(_0x1c15dc,_0xfe6613))return console[_0x2dd342(0x162)](_0x2dd342(0x170)+_0x45a9d5+(_0x4b43d4===_0x2dd342(0x18e)?_0x2dd342(0x14f):'')),{'ok':!![],'data':{'key':_0x45a9d5,'scope':_0x4b43d4,'changed':![]}};return console[_0x2dd342(0x162)](_0x2dd342(0x177)+_0x45a9d5+'`'+(_0x4b43d4==='global'?_0x2dd342(0x14f):'')),writeScopedConfig(_0x1c15dc,_0x52a579),{'ok':!![],'data':{'key':_0x45a9d5,'scope':_0x4b43d4,'changed':!![]}};}if(_0x1c15dc[_0x45a9d5]===undefined)return console[_0x2dd342(0x162)]('Key\x20already\x20absent:\x20'+_0x45a9d5+(_0x4b43d4==='global'?'\x20(global)':'')),{'ok':!![],'data':{'key':_0x45a9d5,'scope':_0x4b43d4,'changed':![]}};return delete _0x1c15dc[_0x45a9d5],console[_0x2dd342(0x162)](_0x2dd342(0x177)+_0x45a9d5+'`'+(_0x4b43d4==='global'?_0x2dd342(0x14f):'')),writeScopedConfig(_0x1c15dc,_0x52a579),{'ok':!![],'data':{'key':_0x45a9d5,'scope':_0x4b43d4,'changed':!![]}};}};function a23_0xaa6c(){const _0x193d12=['\x20config\x20set\x20<key>\x20<value>\x20[--global]','project-or-global-explicit','Config\x20files:\x0a','Get\x20a\x20config\x20value','(none)','Key\x20not\x20found:\x20',';\x20apps.<alias>.appcode','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','List\x20current\x20config','key','Delete\x20a\x20configuration\x20value','Settable\x20keys:\x20','534127OGHSBM','isArray','config','validation','\x20config\x20delete\x20<key>\x20[--global]','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','write','\x20\x20global:\x20\x20','global','35ErHHLM','appcode','delete','length','raw','locale','3086790WRerCj','268265ZdERnn','Missing\x20key\x20or\x20value.','Invalid\x20value\x20for\x20\x22','\x20(global)','alias','9nCbwZX','includes','8199848JWbKlm','stringify','\x22.\x20Allowed:\x20','\x22\x20is\x20not\x20settable.','2523777SAODmU','\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.','field','Invalid\x20locale\x20value.','join','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','apps','../../context.js','args','list','`\x20=\x20\x22','log','1037766EKGqQR','split','read','Missing\x20key\x20argument.','object','\x20\x20project:\x20','keys','value','Usage:\x20','set','52LOeWId','pageSize','pageSize\x20must\x20be\x20a\x20positive\x20number','Key\x20already\x20absent:\x20','trim','4hPasbH','\x20config\x20get\x20<key>','116242OyNzlm','bool','Set\x20`','Deleted\x20`','Deletes\x20a\x20Lovrabet\x20CLI\x20config\x20key.\x20Later\x20commands\x20will\x20fall\x20back\x20to\x20another\x20config\x20layer\x20or\x20the\x20default.','852ZFTKfX'];a23_0xaa6c=function(){return _0x193d12;};return a23_0xaa6c();}export const configDefinitions=[configInitDefinition,listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- const a24_0x2a9e93=a24_0x15e5;(function(_0x464289,_0x516197){const _0x3fe6f3=a24_0x15e5,_0x538d6b=_0x464289();while(!![]){try{const _0x4bbb8c=-parseInt(_0x3fe6f3(0x161))/0x1+parseInt(_0x3fe6f3(0x166))/0x2+-parseInt(_0x3fe6f3(0x14e))/0x3*(parseInt(_0x3fe6f3(0x160))/0x4)+parseInt(_0x3fe6f3(0x15a))/0x5+parseInt(_0x3fe6f3(0x15e))/0x6*(parseInt(_0x3fe6f3(0x157))/0x7)+parseInt(_0x3fe6f3(0x164))/0x8*(parseInt(_0x3fe6f3(0x14f))/0x9)+parseInt(_0x3fe6f3(0x168))/0xa*(-parseInt(_0x3fe6f3(0x171))/0xb);if(_0x4bbb8c===_0x516197)break;else _0x538d6b['push'](_0x538d6b['shift']());}catch(_0x258e11){_0x538d6b['push'](_0x538d6b['shift']());}}}(a24_0x303e,0x5c533));import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';import{OFFICIAL_ROUTING_PROFILES}from'../../generated/official-routing.js';const domainFlags=[{'name':a24_0x2a9e93(0x162),'type':a24_0x2a9e93(0x16f),'description':a24_0x2a9e93(0x145)},{'name':a24_0x2a9e93(0x173),'type':a24_0x2a9e93(0x16f),'description':'Custom\x20User\x20HTTPS\x20origin'},{'name':a24_0x2a9e93(0x16d),'type':'string','description':a24_0x2a9e93(0x158)},{'name':'runtime-domain','type':'string','description':'Custom\x20Runtime\x20HTTPS\x20origin'},{'name':a24_0x2a9e93(0x146),'type':a24_0x2a9e93(0x16f),'description':a24_0x2a9e93(0x16e)},{'name':a24_0x2a9e93(0x16a),'type':a24_0x2a9e93(0x16f),'description':a24_0x2a9e93(0x172)}];function a24_0x303e(){const _0x21f16e=['label','length','Official\x20Lovrabet\x20region:\x20','384lgnCHM','independent','2119932GEnqaI','160490NKYrTQ','domain-config','official','44312aRnSZY','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','282388jrWLeF','assign','50xbJlde','ExitPromptError','kb-service-domain','routing','keys','api-domain','Custom\x20SkillHub\x20HTTPS\x20origin','string','enterprise-v1','1123947nCbbBJ','Custom\x20KB\x20Service\x20HTTPS\x20origin','user-domain','Lovrabet\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','join','\x22\x20is\x20not\x20currently\x20available.','Independent-deployment\x20Domain\x20JSON\x20file','skill-domain','region','manifestDomains','nonInteractive','Updates\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20AccessKey,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','cancelled','mode','Select\x20Lovrabet\x20region','3aSMgOB','945glMWoZ','Lovrabet\x20connection\x20configured\x20for\x20region:\x20','map','Initialize\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','config','validation','name','Region\x20\x22','26544XUXbAt','Custom\x20platform\x20API\x20HTTPS\x20origin','str','3070220SjLydi'];a24_0x303e=function(){return _0x21f16e;};return a24_0x303e();}function a24_0x15e5(_0x23cc3e,_0x4245be){_0x23cc3e=_0x23cc3e-0x144;const _0x303e39=a24_0x303e();let _0x15e53b=_0x303e39[_0x23cc3e];return _0x15e53b;}export const configInitFlags=[{'name':a24_0x2a9e93(0x147),'type':a24_0x2a9e93(0x16f),'description':a24_0x2a9e93(0x15d)+ENABLED_LOVRABET_REGION_VALUES[a24_0x2a9e93(0x175)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},...domainFlags];async function resolveRegion(_0xbd2f4e){const _0xcb4854=a24_0x2a9e93,_0x34f918=_0xbd2f4e[_0xcb4854(0x159)](_0xcb4854(0x147));if(_0x34f918){if(!isEnabledLovrabetRegion(_0x34f918))throw CliErrors['validation'](_0xcb4854(0x156)+_0x34f918+_0xcb4854(0x144),'Available\x20regions:\x20'+ENABLED_LOVRABET_REGION_VALUES[_0xcb4854(0x175)](',\x20'));return _0x34f918;}if(_0xbd2f4e[_0xcb4854(0x149)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0xcb4854(0x14d),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0xcb4854(0x151)](_0x17beb7=>({'name':OFFICIAL_ROUTING_PROFILES[_0x17beb7][_0xcb4854(0x15b)]+'\x20('+_0x17beb7+')','value':_0x17beb7}))});}catch(_0x198446){if(_0x198446?.[_0xcb4854(0x155)]===_0xcb4854(0x169))throw CliErrors[_0xcb4854(0x14b)]();throw _0x198446;}}export async function executeConfigInit(_0x196242){const _0x51cfa8=a24_0x2a9e93,_0x3edb5c=resolveDomainConfigInput(_0x196242),_0x221b5c=_0x3edb5c['domains'],_0x4f0df8=Object['keys'](_0x221b5c)[_0x51cfa8(0x15c)]>0x0;if(_0x4f0df8&&_0x196242[_0x51cfa8(0x159)](_0x51cfa8(0x147)))throw CliErrors[_0x51cfa8(0x154)](_0x51cfa8(0x165));const _0x2554d1={'global':!![]},_0x24012d=readScopedConfig(_0x2554d1);for(const _0x1b4f70 of DOMAIN_CONFIG_FIELDS)delete _0x24012d[_0x1b4f70];for(const _0x391896 of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x24012d[_0x391896];delete _0x24012d[_0x51cfa8(0x16b)];let _0x3ff7d6=null;if(_0x4f0df8)delete _0x24012d[_0x51cfa8(0x147)],_0x3edb5c[_0x51cfa8(0x14c)]===_0x51cfa8(0x170)?_0x24012d[_0x51cfa8(0x16b)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x3edb5c[_0x51cfa8(0x148)]}:Object[_0x51cfa8(0x167)](_0x24012d,_0x221b5c);else{_0x3ff7d6=await resolveRegion(_0x196242);if(_0x3ff7d6===DEFAULT_LOVRABET_REGION)delete _0x24012d[_0x51cfa8(0x147)];else _0x24012d[_0x51cfa8(0x147)]=_0x3ff7d6;}return writeScopedConfig(_0x24012d,_0x2554d1),{'ok':!![],'message':_0x4f0df8?_0x51cfa8(0x174)+Object[_0x51cfa8(0x16c)](_0x3edb5c[_0x51cfa8(0x14c)]==='enterprise-v1'?_0x3edb5c[_0x51cfa8(0x148)]:_0x221b5c)['join'](',\x20')+'.':_0x51cfa8(0x150)+_0x3ff7d6+'.','data':{'mode':_0x4f0df8?_0x51cfa8(0x15f):_0x51cfa8(0x163),'protocol':_0x3edb5c[_0x51cfa8(0x14c)]===_0x51cfa8(0x170)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x3ff7d6,'domains':_0x221b5c}};}export const configInitDefinition={'service':a24_0x2a9e93(0x153),'command':'init','description':a24_0x2a9e93(0x152),'risk':'write','confirmationDescription':a24_0x2a9e93(0x14a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
1
+ const a24_0x578c77=a24_0x396c;function a24_0x396c(_0x383efa,_0x54abf9){_0x383efa=_0x383efa-0x8b;const _0xd051a=a24_0xd051();let _0x396c44=_0xd051a[_0x383efa];return _0x396c44;}(function(_0x4f7a28,_0x5a2d5d){const _0x33cf43=a24_0x396c,_0x4a0192=_0x4f7a28();while(!![]){try{const _0x1e960e=-parseInt(_0x33cf43(0xa0))/0x1*(-parseInt(_0x33cf43(0x94))/0x2)+parseInt(_0x33cf43(0x93))/0x3*(-parseInt(_0x33cf43(0x9a))/0x4)+parseInt(_0x33cf43(0xa3))/0x5*(parseInt(_0x33cf43(0x8b))/0x6)+-parseInt(_0x33cf43(0xb5))/0x7*(parseInt(_0x33cf43(0x95))/0x8)+-parseInt(_0x33cf43(0xa4))/0x9*(-parseInt(_0x33cf43(0xa7))/0xa)+-parseInt(_0x33cf43(0xa8))/0xb*(-parseInt(_0x33cf43(0xb1))/0xc)+-parseInt(_0x33cf43(0x9c))/0xd;if(_0x1e960e===_0x5a2d5d)break;else _0x4a0192['push'](_0x4a0192['shift']());}catch(_0x475aa5){_0x4a0192['push'](_0x4a0192['shift']());}}}(a24_0xd051,0xd72cb));import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';import{OFFICIAL_ROUTING_PROFILES}from'../../generated/official-routing.js';const domainFlags=[{'name':'domain-config','type':'string','description':'Independent-deployment\x20Domain\x20JSON\x20file'},{'name':'user-domain','type':'string','description':a24_0x578c77(0xac)},{'name':'api-domain','type':a24_0x578c77(0xaf),'description':a24_0x578c77(0x92)},{'name':a24_0x578c77(0xa9),'type':'string','description':a24_0x578c77(0xb7)},{'name':'skill-domain','type':'string','description':a24_0x578c77(0xb4)},{'name':a24_0x578c77(0x91),'type':a24_0x578c77(0xaf),'description':a24_0x578c77(0x8f)}];export const configInitFlags=[{'name':'region','type':a24_0x578c77(0xaf),'description':a24_0x578c77(0x99)+ENABLED_LOVRABET_REGION_VALUES[a24_0x578c77(0x9b)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},...domainFlags];async function resolveRegion(_0x145f99){const _0x24354a=a24_0x578c77,_0x8b451f=_0x145f99['str'](_0x24354a(0x97));if(_0x8b451f){if(!isEnabledLovrabetRegion(_0x8b451f))throw CliErrors[_0x24354a(0x9d)](_0x24354a(0xaa)+_0x8b451f+_0x24354a(0x8e),'Available\x20regions:\x20'+ENABLED_LOVRABET_REGION_VALUES[_0x24354a(0x9b)](',\x20'));return _0x8b451f;}if(_0x145f99[_0x24354a(0x98)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':'Select\x20Lovrabet\x20region','default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES['map'](_0x32dc15=>({'name':OFFICIAL_ROUTING_PROFILES[_0x32dc15][_0x24354a(0xb0)]+'\x20('+_0x32dc15+')','value':_0x32dc15}))});}catch(_0x317731){if(_0x317731?.[_0x24354a(0xb9)]==='ExitPromptError')throw CliErrors[_0x24354a(0x9f)]();throw _0x317731;}}export async function executeConfigInit(_0x23ef5c){const _0x15fad4=a24_0x578c77,_0xb0e535=resolveDomainConfigInput(_0x23ef5c),_0x21dbe2=_0xb0e535[_0x15fad4(0xab)],_0x394f3d=Object[_0x15fad4(0xb3)](_0x21dbe2)[_0x15fad4(0x8c)]>0x0;if(_0x394f3d&&_0x23ef5c['str'](_0x15fad4(0x97)))throw CliErrors[_0x15fad4(0x9d)](_0x15fad4(0xad));const _0x435e51={'global':!![]},_0x41e98d=readScopedConfig(_0x435e51);for(const _0x27d7c9 of DOMAIN_CONFIG_FIELDS)delete _0x41e98d[_0x27d7c9];for(const _0x67485b of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x41e98d[_0x67485b];delete _0x41e98d['routing'];let _0x518568=null;if(_0x394f3d)delete _0x41e98d['region'],_0xb0e535['mode']===_0x15fad4(0xb6)?_0x41e98d[_0x15fad4(0xa5)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0xb0e535[_0x15fad4(0x8d)]}:Object[_0x15fad4(0x9e)](_0x41e98d,_0x21dbe2);else{_0x518568=await resolveRegion(_0x23ef5c);if(_0x518568===DEFAULT_LOVRABET_REGION)delete _0x41e98d['region'];else _0x41e98d['region']=_0x518568;}return writeScopedConfig(_0x41e98d,_0x435e51),{'ok':!![],'message':_0x394f3d?'Lovrabet\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20'+Object[_0x15fad4(0xb3)](_0xb0e535['mode']===_0x15fad4(0xb6)?_0xb0e535[_0x15fad4(0x8d)]:_0x21dbe2)['join'](',\x20')+'.':_0x15fad4(0x90)+_0x518568+'.','data':{'mode':_0x394f3d?_0x15fad4(0xb2):_0x15fad4(0xb8),'protocol':_0xb0e535[_0x15fad4(0xa1)]==='enterprise-v1'?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x518568,'domains':_0x21dbe2}};}function a24_0xd051(){const _0x49977e=['runtime-domain','Region\x20\x22','domains','Custom\x20User\x20HTTPS\x20origin','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','Initialize\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','string','label','513348wRNHMR','independent','keys','Custom\x20SkillHub\x20HTTPS\x20origin','329ZZZeyE','enterprise-v1','Custom\x20Runtime\x20HTTPS\x20origin','official','name','1771212drQEwT','length','manifestDomains','\x22\x20is\x20not\x20currently\x20available.','Custom\x20KB\x20Service\x20HTTPS\x20origin','Lovrabet\x20connection\x20configured\x20for\x20region:\x20','kb-service-domain','Custom\x20platform\x20API\x20HTTPS\x20origin','9UUSWaq','48512WtaXXf','197976Txeolp','init','region','nonInteractive','Official\x20Lovrabet\x20region:\x20','300648PNhgxu','join','3855540mxyiPO','validation','assign','cancelled','15HNSyDt','mode','config','5pZhckN','6435vqAdMW','routing','write','22490soLsgL','77VqFtPi'];a24_0xd051=function(){return _0x49977e;};return a24_0xd051();}export const configInitDefinition={'service':a24_0x578c77(0xa2),'command':a24_0x578c77(0x96),'description':a24_0x578c77(0xae),'risk':a24_0x578c77(0xa6),'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(_0x105ba8,_0x38f447){var _0x273b8d=a25_0xd404,_0x2d4567=_0x105ba8();while(!![]){try{var _0x204d15=-parseInt(_0x273b8d(0x17f))/0x1*(parseInt(_0x273b8d(0x180))/0x2)+parseInt(_0x273b8d(0x182))/0x3+-parseInt(_0x273b8d(0x181))/0x4+-parseInt(_0x273b8d(0x183))/0x5*(parseInt(_0x273b8d(0x186))/0x6)+parseInt(_0x273b8d(0x185))/0x7+-parseInt(_0x273b8d(0x187))/0x8+parseInt(_0x273b8d(0x184))/0x9;if(_0x204d15===_0x38f447)break;else _0x2d4567['push'](_0x2d4567['shift']());}catch(_0x411a33){_0x2d4567['push'](_0x2d4567['shift']());}}}(a25_0x330a,0x1bbd3));function a25_0xd404(_0x95d5a1,_0x2bc891){_0x95d5a1=_0x95d5a1-0x17f;var _0x330ad7=a25_0x330a();var _0xd404a5=_0x330ad7[_0x95d5a1];return _0xd404a5;}import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};function a25_0x330a(){var _0x55ae7d=['1098GEbkTJ','682336QTdxFi','247911OxZoRC','1012170OWreGd','4393719dLOCvo','541436wNeWUC','6dwEzCT','49376PPjMMA','283XXiIcv'];a25_0x330a=function(){return _0x55ae7d;};return a25_0x330a();}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(_0xe3158b,_0x5e01f9){var _0x5c198b=a25_0x1651,_0x45d15e=_0xe3158b();while(!![]){try{var _0x4a8da2=parseInt(_0x5c198b(0xb4))/0x1*(parseInt(_0x5c198b(0xba))/0x2)+parseInt(_0x5c198b(0xb9))/0x3*(parseInt(_0x5c198b(0xb7))/0x4)+parseInt(_0x5c198b(0xb3))/0x5+-parseInt(_0x5c198b(0xbc))/0x6*(parseInt(_0x5c198b(0xb5))/0x7)+-parseInt(_0x5c198b(0xb8))/0x8*(-parseInt(_0x5c198b(0xbb))/0x9)+-parseInt(_0x5c198b(0xbd))/0xa*(-parseInt(_0x5c198b(0xb6))/0xb)+-parseInt(_0x5c198b(0xb2))/0xc;if(_0x4a8da2===_0x5e01f9)break;else _0x45d15e['push'](_0x45d15e['shift']());}catch(_0x5cf9e5){_0x45d15e['push'](_0x45d15e['shift']());}}}(a25_0x3808,0x87030));function a25_0x3808(){var _0xa5c844=['18AWoCZc','10CIVLEf','27105324ueAQsl','3270140yymTcm','79204ozqxpP','331639ZEeQMi','4944929OKIVAh','1820KHmCwy','1170448WiDwZh','6093UzxdSM','16GwdQnG','18JSAnRE'];a25_0x3808=function(){return _0xa5c844;};return a25_0x3808();}import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';function a25_0x1651(_0x49738d,_0x531a3d){_0x49738d=_0x49738d-0xb2;var _0x380808=a25_0x3808();var _0x16518b=_0x380808[_0x49738d];return _0x16518b;}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_0x547b6c=a26_0x2da9;(function(_0x4d50c2,_0x20a372){const _0x11b60c=a26_0x2da9,_0x365372=_0x4d50c2();while(!![]){try{const _0x3359cf=-parseInt(_0x11b60c(0xe1))/0x1+-parseInt(_0x11b60c(0xda))/0x2+parseInt(_0x11b60c(0xf8))/0x3+-parseInt(_0x11b60c(0xdc))/0x4*(parseInt(_0x11b60c(0x113))/0x5)+-parseInt(_0x11b60c(0x103))/0x6+parseInt(_0x11b60c(0x116))/0x7*(-parseInt(_0x11b60c(0xfd))/0x8)+-parseInt(_0x11b60c(0xe4))/0x9*(-parseInt(_0x11b60c(0x101))/0xa);if(_0x3359cf===_0x20a372)break;else _0x365372['push'](_0x365372['shift']());}catch(_0x19c95c){_0x365372['push'](_0x365372['shift']());}}}(a26_0x2633,0xd988c));import{readFile,realpath}from'node:fs/promises';import{resolve}from'node:path';import{CODE_FLAG}from'../../commands/common/flags.js';function a26_0x2da9(_0x3d201f,_0x41f574){_0x3d201f=_0x3d201f-0xcd;const _0x263300=a26_0x2633();let _0x2da966=_0x263300[_0x3d201f];return _0x2da966;}import{getDatasetDetail,getDatasetImportContract,createDatasetImportBatch,readDatasetImportRows,readDatasetImportTaskRows,uploadDatasetImportImage,readDatasetImportImage}from'../../core/api-client.js';function a26_0x2633(){const _0x543a17=['\x20--code\x20','3174855reuUKN','bool','invalid','.lock','Reconcile\x20imported\x20records\x20and\x20resume\x20the\x20exact\x20original\x20file,\x20target\x20and\x20mapping','824lRlIev','JSON\x20file\x20mapping\x20Excel\x20headers\x20to\x20dataset\x20field\x20codes','header-row','utf8','13030XCIOAS','string','4127880tQjgYW','succeeded','appCode','Maximum\x20records\x20per\x20request\x20(1..500)','num','Private\x20checkpoint\x20file\x20(default:\x20XLSX\x20path\x20plus\x20.import-checkpoint.json)','resume','.rows.json','/client/','.import-checkpoint.json','warnings','Run\x20dataset\x20detail\x20to\x20confirm\x20the\x20source.\x20Only\x20DB_TABLE\x20has\x20the\x20documented\x20alternative\x20batchCreate\x20route;\x20do\x20not\x20guess\x20or\x20automatically\x20switch\x20APIs.','emptyRows','length','import-excel','hashes','815fmEDfe','max','some','50757tgJvXA','Mapping\x20must\x20be\x20an\x20object\x20from\x20Excel\x20headers\x20to\x20field\x20codes.','media','\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.','1-based\x20Excel\x20header\x20row','map','schemaVersion','file','\x20records.','Header\x20row\x20must\x20be\x20positive\x20and\x20batch\x20size\x20must\x20be\x20between\x201\x20and\x20500.','all','reduce','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.','message','See\x20','mappingFile','values','Batch\x20size\x20exceeds\x20the\x20server\x20import\x20contract.','DB_TABLE','checkpoint','str','Local\x20Excel\x20validation\x20only;\x20no\x20records\x20or\x20checkpoint\x20were\x20written.','imageCells','Excel\x20contains\x20','schemaFingerprint','object','number','isInteger','1076132aYaUwe','boolean','23960shSbqY','code','DB_TABLE\x20datasets\x20use\x20the\x20existing\x20batchCreate\x20operation;\x20import-excel\x20only\x20supports\x20METADATA\x20datasets.','batchSize','METADATA','1344597LpnuLA','report','.\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','28503EOQTRH','validation','size','sheet','Excel\x20import\x20failed.','errors','mapping','Mapping\x20file\x20exceeds\x201\x20MB.','Dataset\x20source\x20is\x20missing\x20or\x20unsupported;\x20import-excel\x20requires\x20METADATA.','POST','imageFields','Local\x20XLSX\x20file\x20(maximum\x2020\x20MB)','maxBatchSize','data','Private\x20result\x20report\x20(default:\x20XLSX\x20path\x20plus\x20.import-report.json)','Worksheet\x20name\x20or\x201-based\x20index\x20(default:\x20first\x20worksheet)','Inspect\x20lovrabet\x20dataset\x20detail\x20--code\x20','.import-report.json','rows'];a26_0x2633=function(){return _0x543a17;};return a26_0x2633();}import{getRuntimeDomain}from'../../constant/domain.js';import{CliError,CliErrors}from'../../errors.js';import{buildExcelManifest,normalizeImportFields}from'../../services/dataset-import/excel-reader.js';import{assertImportContract,assertImportPaths,runExcelImport,saveImportJson,resolveImportOutputPath}from'../../services/dataset-import/runner.js';import{assertDatasetImportTarget}from'../../services/dataset-import/metadata.js';import{runAutoIdExcelImport}from'../../services/dataset-import/auto-id-runner.js';import{assertImageImportCapability,runImageExcelImport}from'../../services/dataset-import/image-runner.js';import{previewImportBatchCount}from'../../services/dataset-import/preview.js';function input(_0xd7228d){const _0x2ea155=a26_0x2da9,_0x32546c=_0xd7228d[_0x2ea155(0xd2)](_0x2ea155(0x11d)),_0x52ac01=_0xd7228d['str'](_0x2ea155(0xea));if(!_0x32546c||!_0x52ac01)throw CliErrors[_0x2ea155(0xe5)]('--file\x20and\x20--mapping\x20are\x20required.');const _0x34cbf8=_0xd7228d[_0x2ea155(0x107)](_0x2ea155(0xff),0x1),_0x1e9a59=_0xd7228d[_0x2ea155(0x107)]('batch-size',0x1f4);if(!Number[_0x2ea155(0xd9)](_0x34cbf8)||_0x34cbf8<0x1||!Number[_0x2ea155(0xd9)](_0x1e9a59)||_0x1e9a59<0x1||_0x1e9a59>0x1f4)throw CliErrors[_0x2ea155(0xe5)](_0x2ea155(0x11f));const _0x12395c=resolve(_0xd7228d[_0x2ea155(0xd2)]('checkpoint')||_0x32546c+_0x2ea155(0x10c)),_0x4a1951=resolve(_0xd7228d[_0x2ea155(0xd2)](_0x2ea155(0xe2))||_0x32546c+_0x2ea155(0xf5)),_0x4fc7c6=[resolve(_0x32546c),resolve(_0x52ac01),_0x12395c,_0x4a1951];if(new Set(_0x4fc7c6)['size']!==_0x4fc7c6['length'])throw CliErrors[_0x2ea155(0xe5)]('Source,\x20mapping,\x20checkpoint\x20and\x20report\x20must\x20be\x20different\x20files.');return{'file':resolve(_0x32546c),'mappingFile':resolve(_0x52ac01),'headerRow':_0x34cbf8,'batchSize':_0x1e9a59,'checkpoint':_0x12395c,'report':_0x4a1951,'sheet':_0xd7228d[_0x2ea155(0xd2)]('sheet')||undefined,'resume':_0xd7228d[_0x2ea155(0xf9)](_0x2ea155(0x109))};}async function prepare(_0x332959){const _0x21cb6f=a26_0x2da9,_0x44e003=input(_0x332959),_0xe59a5b=_0x332959[_0x21cb6f(0xd2)](_0x21cb6f(0xdd));[_0x44e003['file'],_0x44e003['mappingFile'],_0x44e003[_0x21cb6f(0xd1)],_0x44e003[_0x21cb6f(0xe2)]]=await Promise[_0x21cb6f(0x120)]([realpath(_0x44e003[_0x21cb6f(0x11d)]),realpath(_0x44e003['mappingFile']),resolveImportOutputPath(_0x44e003['checkpoint']),resolveImportOutputPath(_0x44e003[_0x21cb6f(0xe2)])]),assertImportPaths(_0x44e003[_0x21cb6f(0xd1)],_0x44e003[_0x21cb6f(0xe2)],[_0x44e003[_0x21cb6f(0x11d)],_0x44e003[_0x21cb6f(0xcd)]]);let _0x333228;const _0x27371c=await readFile(_0x44e003[_0x21cb6f(0xcd)]);if(_0x27371c[_0x21cb6f(0x110)]>0x400*0x400)throw CliErrors[_0x21cb6f(0xe5)](_0x21cb6f(0xeb));try{_0x333228=JSON['parse'](_0x27371c['toString'](_0x21cb6f(0x100)));}catch{throw CliErrors[_0x21cb6f(0xe5)]('Mapping\x20file\x20must\x20contain\x20valid\x20JSON.');}if(!_0x333228||typeof _0x333228!==_0x21cb6f(0xd7)||Array['isArray'](_0x333228)||Object[_0x21cb6f(0xce)](_0x333228)[_0x21cb6f(0x115)](_0x580468=>typeof _0x580468!==_0x21cb6f(0x102)))throw CliErrors[_0x21cb6f(0xe5)](_0x21cb6f(0x117));const _0x1759b9=await getDatasetDetail(_0xe59a5b),_0x18581a=assertDatasetImportTarget(_0x1759b9,_0x332959[_0x21cb6f(0x105)],_0xe59a5b);if(_0x18581a===_0x21cb6f(0xd0))throw CliErrors['validation'](_0x21cb6f(0xde),_0x21cb6f(0xf4)+_0xe59a5b+_0x21cb6f(0xe3)+_0x332959[_0x21cb6f(0x105)]+_0x21cb6f(0xf7)+_0xe59a5b+_0x21cb6f(0x119));if(_0x18581a!==_0x21cb6f(0xe0))throw CliErrors[_0x21cb6f(0xe5)](_0x21cb6f(0xec),_0x21cb6f(0x10e));const _0x4eb186=await buildExcelManifest({..._0x44e003,'mapping':_0x333228,'fields':normalizeImportFields(_0x1759b9)}),_0x32cf3a=await getDatasetImportContract(_0x332959[_0x21cb6f(0x105)],_0xe59a5b);assertImportContract(_0x32cf3a,_0x332959[_0x21cb6f(0x105)],_0xe59a5b),assertImageImportCapability(_0x32cf3a,_0x4eb186);if(_0x4eb186[_0x21cb6f(0xee)]?.['length']){const _0x2c2214=await resolveImportOutputPath(_0x44e003[_0x21cb6f(0xd1)]+_0x21cb6f(0x10a)),_0x8e126f=await Promise[_0x21cb6f(0x120)]([_0x2c2214,_0x2c2214+_0x21cb6f(0xfb),_0x2c2214+'.lock.recovery',_0x44e003[_0x21cb6f(0xd1)]+'.lock',_0x44e003[_0x21cb6f(0xd1)]+'.lock.recovery'][_0x21cb6f(0x11b)](resolveImportOutputPath));assertImportPaths(_0x44e003['checkpoint'],_0x44e003[_0x21cb6f(0xe2)],[_0x44e003[_0x21cb6f(0x11d)],_0x44e003[_0x21cb6f(0xcd)],..._0x8e126f['slice'](0x0,0x3)]);}if(_0x44e003['batchSize']>_0x32cf3a[_0x21cb6f(0xf0)])throw CliErrors[_0x21cb6f(0xe5)](_0x21cb6f(0xcf));return{'args':_0x44e003,'manifest':_0x4eb186,'contract':_0x32cf3a,'code':_0xe59a5b};}async function checked(_0x2fb830){const _0x6d8dd7=a26_0x2da9;try{return await _0x2fb830();}catch(_0x305ddb){if(_0x305ddb instanceof CliError)throw _0x305ddb;throw CliErrors[_0x6d8dd7(0xe5)](_0x305ddb[_0x6d8dd7(0x123)]||_0x6d8dd7(0xe8));}}export const dataImportExcel={'service':a26_0x547b6c(0xf1),'command':a26_0x547b6c(0x111),'risk':'write','description':a26_0x547b6c(0x122),'confirmationDescription':'Creates\x20real\x20dataset\x20records\x20immediately.\x20Keep\x20the\x20checkpoint\x20to\x20reconcile\x20and\x20resume\x20interrupted\x20imports.','flags':[CODE_FLAG,{'name':a26_0x547b6c(0x11d),'type':a26_0x547b6c(0x102),'required':!![],'description':a26_0x547b6c(0xef)},{'name':a26_0x547b6c(0xea),'type':a26_0x547b6c(0x102),'required':!![],'description':a26_0x547b6c(0xfe)},{'name':a26_0x547b6c(0xe7),'type':a26_0x547b6c(0x102),'description':a26_0x547b6c(0xf3)},{'name':a26_0x547b6c(0xff),'type':a26_0x547b6c(0xd8),'default':0x1,'description':a26_0x547b6c(0x11a)},{'name':'batch-size','type':a26_0x547b6c(0xd8),'default':0x1f4,'description':a26_0x547b6c(0x106)},{'name':a26_0x547b6c(0xd1),'type':a26_0x547b6c(0x102),'description':a26_0x547b6c(0x108)},{'name':a26_0x547b6c(0xe2),'type':a26_0x547b6c(0x102),'description':a26_0x547b6c(0xf2)},{'name':a26_0x547b6c(0x109),'type':a26_0x547b6c(0xdb),'description':a26_0x547b6c(0xfc)}],'validate':async _0x1dfd2c=>{input(_0x1dfd2c);},'dryRun':async _0x3ed723=>checked(async()=>{const _0x891097=a26_0x547b6c,{args:_0x3bb633,manifest:_0x160eaa,contract:_0x2aeab5,code:_0x3d6450}=await prepare(_0x3ed723),_0x1992cb=new Set(_0x160eaa[_0x891097(0xe9)][_0x891097(0x11b)](_0x592949=>_0x592949['rowNumber']))[_0x891097(0xe6)];return{'method':_0x891097(0xed),'url':_0x891097(0x10b)+encodeURIComponent(_0x3ed723[_0x891097(0x105)])+'/'+encodeURIComponent(_0x3d6450)+'/import-batch','description':_0x891097(0xd3),'body':{'schemaFingerprint':_0x2aeab5[_0x891097(0xd6)]},'validRows':Math[_0x891097(0x114)](0x0,_0x160eaa['rows'][_0x891097(0x110)]-_0x1992cb),'invalidRows':_0x1992cb,'invalidCells':_0x160eaa[_0x891097(0xe9)][_0x891097(0x110)],'emptyRows':_0x160eaa[_0x891097(0x10f)][_0x891097(0x110)],'expectedBatches':previewImportBatchCount(_0x160eaa,_0x2aeab5,_0x3bb633[_0x891097(0xdf)]),'imageCount':_0x160eaa[_0x891097(0xd4)]?.['reduce']((_0x42261f,_0x2bfc76)=>_0x42261f+_0x2bfc76[_0x891097(0x112)][_0x891097(0x110)],0x0)??0x0,'uniqueImages':_0x160eaa[_0x891097(0x118)]?.[_0x891097(0x110)]??0x0,'uniqueImageBytes':_0x160eaa['media']?.[_0x891097(0x121)]((_0x47c38b,_0x3c2a41)=>_0x47c38b+_0x3c2a41[_0x891097(0xe6)],0x0)??0x0,'errors':_0x160eaa['errors'],'warnings':_0x160eaa[_0x891097(0x10d)],'sheet':_0x160eaa[_0x891097(0xe7)],'checkpoint':_0x3bb633[_0x891097(0xd1)],'report':_0x3bb633['report']};}),'execute':async _0x129f3d=>checked(async()=>{const _0x432087=a26_0x547b6c,{args:_0x4767ff,manifest:_0xae9f3c,contract:_0x6d5d6c,code:_0x42f5a2}=await prepare(_0x129f3d);if(_0xae9f3c[_0x432087(0xe9)][_0x432087(0x110)]){await saveImportJson(_0x4767ff[_0x432087(0xe2)],{'status':_0x432087(0xfa),'sourceRows':_0xae9f3c[_0x432087(0xf6)][_0x432087(0x110)],'errors':_0xae9f3c['errors'],'emptyRows':_0xae9f3c['emptyRows'],'warnings':_0xae9f3c[_0x432087(0x10d)]});throw CliErrors['validation'](_0x432087(0xd5)+_0xae9f3c[_0x432087(0xe9)][_0x432087(0x110)]+'\x20invalid\x20cells.\x20No\x20records\x20were\x20written.',_0x432087(0x124)+_0x4767ff[_0x432087(0xe2)]+'.');}const _0x140f2e=_0xae9f3c[_0x432087(0xee)]?.[_0x432087(0x110)]?runImageExcelImport:_0x6d5d6c[_0x432087(0x11c)]===0x2?runAutoIdExcelImport:runExcelImport,_0x1ec803=await _0x140f2e({..._0x4767ff,'manifest':_0xae9f3c,'contract':_0x6d5d6c,'appCode':_0x129f3d[_0x432087(0x105)],'datasetCode':_0x42f5a2,'runtimeDomain':getRuntimeDomain(),'inputPaths':[_0x4767ff[_0x432087(0x11d)],_0x4767ff['mappingFile']],'imageApi':{'upload':(_0x40ff2e,_0x458b27)=>uploadDatasetImportImage(_0x129f3d[_0x432087(0x105)],_0x42f5a2,_0x40ff2e,_0x458b27),'readback':(_0x487cca,_0x3b8ec0)=>readDatasetImportImage(_0x129f3d[_0x432087(0x105)],_0x42f5a2,_0x487cca,_0x3b8ec0)},'api':{'write':(_0x21a888,_0x1b320a)=>createDatasetImportBatch(_0x129f3d[_0x432087(0x105)],_0x42f5a2,{'schemaFingerprint':_0x6d5d6c[_0x432087(0xd6)],'items':_0x21a888,..._0x1b320a===undefined?{}:{'taskId':_0x1b320a}}),'readback':_0x532678=>readDatasetImportRows(_0x129f3d[_0x432087(0x105)],_0x42f5a2,_0x532678),'readTask':_0xcacb6=>readDatasetImportTaskRows(_0x129f3d[_0x432087(0x105)],_0x42f5a2,_0xcacb6)}});return{'ok':!![],'data':_0x1ec803,'message':'Imported\x20and\x20verified\x20'+_0x1ec803[_0x432087(0x104)]+_0x432087(0x11e)};})};
1
+ const a26_0x3b9a62=a26_0x4ff4;(function(_0x412459,_0x4352ce){const _0x221168=a26_0x4ff4,_0x2b281f=_0x412459();while(!![]){try{const _0x355a57=-parseInt(_0x221168(0x82))/0x1+-parseInt(_0x221168(0x92))/0x2*(parseInt(_0x221168(0xb1))/0x3)+parseInt(_0x221168(0xa0))/0x4+-parseInt(_0x221168(0xb5))/0x5+-parseInt(_0x221168(0xba))/0x6*(parseInt(_0x221168(0xca))/0x7)+parseInt(_0x221168(0x93))/0x8*(-parseInt(_0x221168(0x9b))/0x9)+parseInt(_0x221168(0xc6))/0xa*(parseInt(_0x221168(0xb7))/0xb);if(_0x355a57===_0x4352ce)break;else _0x2b281f['push'](_0x2b281f['shift']());}catch(_0x50c287){_0x2b281f['push'](_0x2b281f['shift']());}}}(a26_0x3233,0xb16c0));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';function a26_0x3233(){const _0x2b487b=['.\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','Batch\x20size\x20exceeds\x20the\x20server\x20import\x20contract.','155043pGggfF','code','file','hashes','rows','4294536SvgVYp','rowNumber','errors','maxBatchSize','\x20records.','.lock','mappingFile','See\x20','string','JSON\x20file\x20mapping\x20Excel\x20headers\x20to\x20dataset\x20field\x20codes','length','.import-report.json','--file\x20and\x20--mapping\x20are\x20required.','object','/client/','schemaFingerprint','reduce','3DIvhBe','DB_TABLE','report','size','2052250JaJhQS','Run\x20dataset\x20detail\x20to\x20confirm\x20the\x20source.\x20Only\x20DB_TABLE\x20has\x20the\x20documented\x20alternative\x20batchCreate\x20route;\x20do\x20not\x20guess\x20or\x20automatically\x20switch\x20APIs.','9162373tfEYxn','media','Mapping\x20must\x20be\x20an\x20object\x20from\x20Excel\x20headers\x20to\x20field\x20codes.','1675314SXBUkb','str','isArray','import-excel','imageFields','max','Inspect\x20lovrabet\x20dataset\x20detail\x20--code\x20','sheet','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.','.rows.json','schemaVersion','checkpoint','20tJtynH','parse','isInteger','some','7naZmUS','1-based\x20Excel\x20header\x20row','Local\x20XLSX\x20file\x20(maximum\x2020\x20MB)','emptyRows','Mapping\x20file\x20must\x20contain\x20valid\x20JSON.','DB_TABLE\x20datasets\x20use\x20the\x20existing\x20batchCreate\x20operation;\x20import-excel\x20only\x20supports\x20METADATA\x20datasets.','slice','Private\x20result\x20report\x20(default:\x20XLSX\x20path\x20plus\x20.import-report.json)','succeeded','all','data','map','Imported\x20and\x20verified\x20','Maximum\x20records\x20per\x20request\x20(1..500)','number','Creates\x20real\x20dataset\x20records\x20immediately.\x20Keep\x20the\x20checkpoint\x20to\x20reconcile\x20and\x20resume\x20interrupted\x20imports.','488053qLNqEQ','toString','Mapping\x20file\x20exceeds\x201\x20MB.','POST','Worksheet\x20name\x20or\x201-based\x20index\x20(default:\x20first\x20worksheet)','mapping','batchSize','invalid','write','Private\x20checkpoint\x20file\x20(default:\x20XLSX\x20path\x20plus\x20.import-checkpoint.json)','.lock.recovery','METADATA','Excel\x20import\x20failed.','\x20invalid\x20cells.\x20No\x20records\x20were\x20written.','appCode','batch-size','395358ILClBI','296XLcLwk','header-row','validation','Local\x20Excel\x20validation\x20only;\x20no\x20records\x20or\x20checkpoint\x20were\x20written.','values','\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.'];a26_0x3233=function(){return _0x2b487b;};return a26_0x3233();}import{assertImportContract,assertImportPaths,runExcelImport,saveImportJson,resolveImportOutputPath}from'../../services/dataset-import/runner.js';import{assertDatasetImportTarget}from'../../services/dataset-import/metadata.js';import{runAutoIdExcelImport}from'../../services/dataset-import/auto-id-runner.js';import{assertImageImportCapability,runImageExcelImport}from'../../services/dataset-import/image-runner.js';import{previewImportBatchCount}from'../../services/dataset-import/preview.js';function input(_0x139536){const _0x8894ad=a26_0x4ff4,_0x490dd9=_0x139536[_0x8894ad(0xbb)](_0x8894ad(0x9d)),_0x1b3df2=_0x139536[_0x8894ad(0xbb)](_0x8894ad(0x87));if(!_0x490dd9||!_0x1b3df2)throw CliErrors[_0x8894ad(0x95)](_0x8894ad(0xac));const _0x2e1b30=_0x139536['num']('header-row',0x1),_0x23cafb=_0x139536['num'](_0x8894ad(0x91),0x1f4);if(!Number[_0x8894ad(0xc8)](_0x2e1b30)||_0x2e1b30<0x1||!Number[_0x8894ad(0xc8)](_0x23cafb)||_0x23cafb<0x1||_0x23cafb>0x1f4)throw CliErrors['validation']('Header\x20row\x20must\x20be\x20positive\x20and\x20batch\x20size\x20must\x20be\x20between\x201\x20and\x20500.');const _0xd04b20=resolve(_0x139536[_0x8894ad(0xbb)](_0x8894ad(0xc5))||_0x490dd9+'.import-checkpoint.json'),_0xd2cdfa=resolve(_0x139536[_0x8894ad(0xbb)](_0x8894ad(0xb3))||_0x490dd9+_0x8894ad(0xab)),_0x3db7a3=[resolve(_0x490dd9),resolve(_0x1b3df2),_0xd04b20,_0xd2cdfa];if(new Set(_0x3db7a3)['size']!==_0x3db7a3[_0x8894ad(0xaa)])throw CliErrors[_0x8894ad(0x95)]('Source,\x20mapping,\x20checkpoint\x20and\x20report\x20must\x20be\x20different\x20files.');return{'file':resolve(_0x490dd9),'mappingFile':resolve(_0x1b3df2),'headerRow':_0x2e1b30,'batchSize':_0x23cafb,'checkpoint':_0xd04b20,'report':_0xd2cdfa,'sheet':_0x139536['str']('sheet')||undefined,'resume':_0x139536['bool']('resume')};}async function prepare(_0xe4de){const _0x54213d=a26_0x4ff4,_0x393772=input(_0xe4de),_0x2baae0=_0xe4de[_0x54213d(0xbb)](_0x54213d(0x9c));[_0x393772['file'],_0x393772[_0x54213d(0xa6)],_0x393772[_0x54213d(0xc5)],_0x393772[_0x54213d(0xb3)]]=await Promise['all']([realpath(_0x393772[_0x54213d(0x9d)]),realpath(_0x393772[_0x54213d(0xa6)]),resolveImportOutputPath(_0x393772[_0x54213d(0xc5)]),resolveImportOutputPath(_0x393772[_0x54213d(0xb3)])]),assertImportPaths(_0x393772[_0x54213d(0xc5)],_0x393772[_0x54213d(0xb3)],[_0x393772[_0x54213d(0x9d)],_0x393772['mappingFile']]);let _0x3e11ee;const _0x21bb3b=await readFile(_0x393772[_0x54213d(0xa6)]);if(_0x21bb3b[_0x54213d(0xaa)]>0x400*0x400)throw CliErrors[_0x54213d(0x95)](_0x54213d(0x84));try{_0x3e11ee=JSON[_0x54213d(0xc7)](_0x21bb3b[_0x54213d(0x83)]('utf8'));}catch{throw CliErrors['validation'](_0x54213d(0xce));}if(!_0x3e11ee||typeof _0x3e11ee!==_0x54213d(0xad)||Array[_0x54213d(0xbc)](_0x3e11ee)||Object[_0x54213d(0x97)](_0x3e11ee)[_0x54213d(0xc9)](_0x128106=>typeof _0x128106!=='string'))throw CliErrors[_0x54213d(0x95)](_0x54213d(0xb9));const _0xda593c=await getDatasetDetail(_0x2baae0),_0x151537=assertDatasetImportTarget(_0xda593c,_0xe4de['appCode'],_0x2baae0);if(_0x151537===_0x54213d(0xb2))throw CliErrors[_0x54213d(0x95)](_0x54213d(0xcf),_0x54213d(0xc0)+_0x2baae0+_0x54213d(0x99)+_0xe4de['appCode']+'\x20--code\x20'+_0x2baae0+_0x54213d(0x98));if(_0x151537!==_0x54213d(0x8d))throw CliErrors[_0x54213d(0x95)]('Dataset\x20source\x20is\x20missing\x20or\x20unsupported;\x20import-excel\x20requires\x20METADATA.',_0x54213d(0xb6));const _0x426865=await buildExcelManifest({..._0x393772,'mapping':_0x3e11ee,'fields':normalizeImportFields(_0xda593c)}),_0x28bb48=await getDatasetImportContract(_0xe4de['appCode'],_0x2baae0);assertImportContract(_0x28bb48,_0xe4de['appCode'],_0x2baae0),assertImageImportCapability(_0x28bb48,_0x426865);if(_0x426865[_0x54213d(0xbe)]?.[_0x54213d(0xaa)]){const _0x2ac22c=await resolveImportOutputPath(_0x393772[_0x54213d(0xc5)]+_0x54213d(0xc3)),_0x45c462=await Promise[_0x54213d(0x7b)]([_0x2ac22c,_0x2ac22c+_0x54213d(0xa5),_0x2ac22c+_0x54213d(0x8c),_0x393772[_0x54213d(0xc5)]+_0x54213d(0xa5),_0x393772[_0x54213d(0xc5)]+_0x54213d(0x8c)][_0x54213d(0x7d)](resolveImportOutputPath));assertImportPaths(_0x393772['checkpoint'],_0x393772['report'],[_0x393772[_0x54213d(0x9d)],_0x393772['mappingFile'],..._0x45c462[_0x54213d(0x78)](0x0,0x3)]);}if(_0x393772[_0x54213d(0x88)]>_0x28bb48[_0x54213d(0xa3)])throw CliErrors[_0x54213d(0x95)](_0x54213d(0x9a));return{'args':_0x393772,'manifest':_0x426865,'contract':_0x28bb48,'code':_0x2baae0};}async function checked(_0x1641b1){const _0x1a7717=a26_0x4ff4;try{return await _0x1641b1();}catch(_0x50def0){if(_0x50def0 instanceof CliError)throw _0x50def0;throw CliErrors[_0x1a7717(0x95)](_0x50def0['message']||_0x1a7717(0x8e));}}function a26_0x4ff4(_0x16af33,_0x49a1a5){_0x16af33=_0x16af33-0x78;const _0x32333a=a26_0x3233();let _0x4ff4a3=_0x32333a[_0x16af33];return _0x4ff4a3;}export const dataImportExcel={'service':a26_0x3b9a62(0x7c),'command':a26_0x3b9a62(0xbd),'risk':a26_0x3b9a62(0x8a),'description':a26_0x3b9a62(0xc2),'confirmationDescription':a26_0x3b9a62(0x81),'flags':[CODE_FLAG,{'name':'file','type':'string','required':!![],'description':a26_0x3b9a62(0xcc)},{'name':a26_0x3b9a62(0x87),'type':a26_0x3b9a62(0xa8),'required':!![],'description':a26_0x3b9a62(0xa9)},{'name':a26_0x3b9a62(0xc1),'type':'string','description':a26_0x3b9a62(0x86)},{'name':a26_0x3b9a62(0x94),'type':a26_0x3b9a62(0x80),'default':0x1,'description':a26_0x3b9a62(0xcb)},{'name':a26_0x3b9a62(0x91),'type':a26_0x3b9a62(0x80),'default':0x1f4,'description':a26_0x3b9a62(0x7f)},{'name':a26_0x3b9a62(0xc5),'type':a26_0x3b9a62(0xa8),'description':a26_0x3b9a62(0x8b)},{'name':a26_0x3b9a62(0xb3),'type':'string','description':a26_0x3b9a62(0x79)},{'name':'resume','type':'boolean','description':'Reconcile\x20imported\x20records\x20and\x20resume\x20the\x20exact\x20original\x20file,\x20target\x20and\x20mapping'}],'validate':async _0x402054=>{input(_0x402054);},'dryRun':async _0x4434b5=>checked(async()=>{const _0x19e270=a26_0x3b9a62,{args:_0x54a92e,manifest:_0x19fefa,contract:_0x4c892e,code:_0x2caaa3}=await prepare(_0x4434b5),_0x3e0bc2=new Set(_0x19fefa['errors'][_0x19e270(0x7d)](_0x250b29=>_0x250b29[_0x19e270(0xa1)]))[_0x19e270(0xb4)];return{'method':_0x19e270(0x85),'url':_0x19e270(0xae)+encodeURIComponent(_0x4434b5[_0x19e270(0x90)])+'/'+encodeURIComponent(_0x2caaa3)+'/import-batch','description':_0x19e270(0x96),'body':{'schemaFingerprint':_0x4c892e[_0x19e270(0xaf)]},'validRows':Math[_0x19e270(0xbf)](0x0,_0x19fefa[_0x19e270(0x9f)][_0x19e270(0xaa)]-_0x3e0bc2),'invalidRows':_0x3e0bc2,'invalidCells':_0x19fefa['errors'][_0x19e270(0xaa)],'emptyRows':_0x19fefa['emptyRows'][_0x19e270(0xaa)],'expectedBatches':previewImportBatchCount(_0x19fefa,_0x4c892e,_0x54a92e[_0x19e270(0x88)]),'imageCount':_0x19fefa['imageCells']?.[_0x19e270(0xb0)]((_0x113bd5,_0x3e3f19)=>_0x113bd5+_0x3e3f19[_0x19e270(0x9e)][_0x19e270(0xaa)],0x0)??0x0,'uniqueImages':_0x19fefa[_0x19e270(0xb8)]?.[_0x19e270(0xaa)]??0x0,'uniqueImageBytes':_0x19fefa['media']?.[_0x19e270(0xb0)]((_0x1b7d8e,_0x35a90a)=>_0x1b7d8e+_0x35a90a['size'],0x0)??0x0,'errors':_0x19fefa[_0x19e270(0xa2)],'warnings':_0x19fefa['warnings'],'sheet':_0x19fefa[_0x19e270(0xc1)],'checkpoint':_0x54a92e[_0x19e270(0xc5)],'report':_0x54a92e[_0x19e270(0xb3)]};}),'execute':async _0x801cba=>checked(async()=>{const _0x54ea4c=a26_0x3b9a62,{args:_0x404fdf,manifest:_0x271fd2,contract:_0x26be2e,code:_0x542538}=await prepare(_0x801cba);if(_0x271fd2[_0x54ea4c(0xa2)][_0x54ea4c(0xaa)]){await saveImportJson(_0x404fdf[_0x54ea4c(0xb3)],{'status':_0x54ea4c(0x89),'sourceRows':_0x271fd2[_0x54ea4c(0x9f)][_0x54ea4c(0xaa)],'errors':_0x271fd2[_0x54ea4c(0xa2)],'emptyRows':_0x271fd2[_0x54ea4c(0xcd)],'warnings':_0x271fd2['warnings']});throw CliErrors[_0x54ea4c(0x95)]('Excel\x20contains\x20'+_0x271fd2['errors']['length']+_0x54ea4c(0x8f),_0x54ea4c(0xa7)+_0x404fdf['report']+'.');}const _0xc7b4e8=_0x271fd2[_0x54ea4c(0xbe)]?.[_0x54ea4c(0xaa)]?runImageExcelImport:_0x26be2e[_0x54ea4c(0xc4)]===0x2?runAutoIdExcelImport:runExcelImport,_0x52916f=await _0xc7b4e8({..._0x404fdf,'manifest':_0x271fd2,'contract':_0x26be2e,'appCode':_0x801cba[_0x54ea4c(0x90)],'datasetCode':_0x542538,'runtimeDomain':getRuntimeDomain(),'inputPaths':[_0x404fdf[_0x54ea4c(0x9d)],_0x404fdf[_0x54ea4c(0xa6)]],'imageApi':{'upload':(_0x3d24eb,_0xca0354)=>uploadDatasetImportImage(_0x801cba['appCode'],_0x542538,_0x3d24eb,_0xca0354),'readback':(_0x24481f,_0x19ef55)=>readDatasetImportImage(_0x801cba[_0x54ea4c(0x90)],_0x542538,_0x24481f,_0x19ef55)},'api':{'write':(_0xb75a6,_0x4183b2)=>createDatasetImportBatch(_0x801cba['appCode'],_0x542538,{'schemaFingerprint':_0x26be2e[_0x54ea4c(0xaf)],'items':_0xb75a6,..._0x4183b2===undefined?{}:{'taskId':_0x4183b2}}),'readback':_0x53017c=>readDatasetImportRows(_0x801cba[_0x54ea4c(0x90)],_0x542538,_0x53017c),'readTask':_0x1a2706=>readDatasetImportTaskRows(_0x801cba[_0x54ea4c(0x90)],_0x542538,_0x1a2706)}});return{'ok':!![],'data':_0x52916f,'message':_0x54ea4c(0x7e)+_0x52916f[_0x54ea4c(0x7a)]+_0x54ea4c(0xa4)};})};