@lovrabet/lovrabet-cli 2.3.1-beta.3 → 2.3.1-beta.4

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 (175) 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/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/init.js +1 -1
  25. package/lib/commands/config/shared.js +1 -1
  26. package/lib/commands/data/index.js +1 -1
  27. package/lib/commands/dataset/detail.js +1 -1
  28. package/lib/commands/dataset/index.js +1 -1
  29. package/lib/commands/dataset/list.js +1 -1
  30. package/lib/commands/dataset/sdk-doc.js +1 -1
  31. package/lib/commands/doctor.js +1 -1
  32. package/lib/commands/file/index.js +1 -1
  33. package/lib/commands/init.js +1 -1
  34. package/lib/commands/kb/index.js +1 -1
  35. package/lib/commands/logs/index.js +1 -1
  36. package/lib/commands/notification/config-list.js +1 -1
  37. package/lib/commands/notification/index.js +1 -1
  38. package/lib/commands/notification/shared.js +1 -1
  39. package/lib/commands/ocr/index.js +1 -1
  40. package/lib/commands/permit/dataset-get.js +1 -1
  41. package/lib/commands/permit/dataset-set.js +1 -1
  42. package/lib/commands/permit/index.js +1 -1
  43. package/lib/commands/permit/page-get.js +1 -1
  44. package/lib/commands/permit/page-set.js +1 -1
  45. package/lib/commands/permit/role-menus-set.js +1 -1
  46. package/lib/commands/permit/role-menus.js +1 -1
  47. package/lib/commands/permit/shared.js +1 -1
  48. package/lib/commands/personal-bff/index.js +1 -1
  49. package/lib/commands/registry.js +1 -1
  50. package/lib/commands/role/create.js +1 -1
  51. package/lib/commands/role/delete.js +1 -1
  52. package/lib/commands/role/detail.js +1 -1
  53. package/lib/commands/role/index.js +1 -1
  54. package/lib/commands/role/list.js +1 -1
  55. package/lib/commands/role/shared.js +1 -1
  56. package/lib/commands/role/update.js +1 -1
  57. package/lib/commands/role/user-add.js +1 -1
  58. package/lib/commands/role/user-remove.js +1 -1
  59. package/lib/commands/schedule/index.js +1 -1
  60. package/lib/commands/schema.js +1 -1
  61. package/lib/commands/service/dynamic.js +1 -1
  62. package/lib/commands/service/function-name-adapter.js +1 -1
  63. package/lib/commands/service/index.js +1 -1
  64. package/lib/commands/service/registry.js +1 -1
  65. package/lib/commands/skill/commands/create.js +1 -1
  66. package/lib/commands/skill/commands/diagram.js +1 -1
  67. package/lib/commands/skill/commands/install.js +1 -1
  68. package/lib/commands/skill/commands/list.js +1 -1
  69. package/lib/commands/skill/commands/push.js +1 -1
  70. package/lib/commands/skill/commands/validate.js +1 -1
  71. package/lib/commands/skill/diagram.js +1 -1
  72. package/lib/commands/skill/flags.js +1 -1
  73. package/lib/commands/skill/index.js +1 -1
  74. package/lib/commands/skill/manifest-helpers.js +1 -1
  75. package/lib/commands/skill/push-execute.js +1 -1
  76. package/lib/commands/skill/push-flow-helpers.js +1 -1
  77. package/lib/commands/skill/push-retarget.js +1 -1
  78. package/lib/commands/skill/scopes.js +1 -1
  79. package/lib/commands/skill/summary.js +1 -1
  80. package/lib/commands/skill/templates.js +1 -1
  81. package/lib/commands/skill/validate.js +1 -1
  82. package/lib/commands/sql/detail.js +1 -1
  83. package/lib/commands/sql/exec.js +1 -1
  84. package/lib/commands/sql/index.js +1 -1
  85. package/lib/commands/update.js +1 -1
  86. package/lib/commands/user-account/bind.js +1 -1
  87. package/lib/commands/user-account/index.js +1 -1
  88. package/lib/commands/workspace/index.js +1 -1
  89. package/lib/config/domain-config.js +1 -1
  90. package/lib/config/schema.js +1 -1
  91. package/lib/constant/app.js +1 -1
  92. package/lib/constant/auth-mode.js +1 -1
  93. package/lib/constant/cli.js +1 -1
  94. package/lib/constant/defaults.js +1 -1
  95. package/lib/constant/distribution.js +1 -1
  96. package/lib/constant/domain.d.ts +3 -3
  97. package/lib/constant/domain.js +1 -1
  98. package/lib/constant/env.js +1 -1
  99. package/lib/constant/output.js +1 -1
  100. package/lib/constant/product.js +1 -1
  101. package/lib/constant/region.js +1 -1
  102. package/lib/constant/risk.js +1 -1
  103. package/lib/constant/url.js +1 -1
  104. package/lib/context.js +1 -1
  105. package/lib/core/api-client.d.ts +0 -16
  106. package/lib/core/api-client.js +1 -1
  107. package/lib/core/db-resolver.js +1 -1
  108. package/lib/core/kb-search-client.d.ts +30 -0
  109. package/lib/core/kb-search-client.js +1 -0
  110. package/lib/core/sdk-client.js +1 -1
  111. package/lib/errors.js +1 -1
  112. package/lib/framework/build-all-flags.js +1 -1
  113. package/lib/framework/dryrun.js +1 -1
  114. package/lib/framework/flags.js +1 -1
  115. package/lib/framework/help.js +1 -1
  116. package/lib/framework/index.js +1 -1
  117. package/lib/framework/output.js +1 -1
  118. package/lib/framework/preparse.js +1 -1
  119. package/lib/framework/rate-limit.js +1 -1
  120. package/lib/framework/raw-flags.js +1 -1
  121. package/lib/framework/response.js +1 -1
  122. package/lib/framework/runner-confirmation.js +1 -1
  123. package/lib/framework/runner-error.js +1 -1
  124. package/lib/framework/runner.js +1 -1
  125. package/lib/framework/schema-export.js +1 -1
  126. package/lib/framework/service-order.js +1 -1
  127. package/lib/framework/types.d.ts +2 -0
  128. package/lib/framework/types.js +1 -1
  129. package/lib/generated/build-info.d.ts +4 -4
  130. package/lib/generated/build-info.js +1 -1
  131. package/lib/generated/official-routing.js +1 -1
  132. package/lib/generated/routing-contract.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/postinstall.js +1 -1
  135. package/lib/runtime/confirmation.js +1 -1
  136. package/lib/runtime/event.js +1 -1
  137. package/lib/runtime/index.js +1 -1
  138. package/lib/runtime/queue.js +1 -1
  139. package/lib/runtime/resolve.js +1 -1
  140. package/lib/skills/builtin-skill.js +1 -1
  141. package/lib/skills/npx-skills-add.js +1 -1
  142. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  143. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  144. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  145. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  146. package/lib/skills/runtime-skill-sync/links.js +1 -1
  147. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  148. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  149. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  150. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  151. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  152. package/lib/skills/runtime-skill-sync/push.js +1 -1
  153. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  154. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  155. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  156. package/lib/skills/runtime-skill-sync.js +1 -1
  157. package/lib/skills/skill-presence.js +1 -1
  158. package/lib/utils/access-key-redaction.js +1 -1
  159. package/lib/utils/apply-jq-filter.js +1 -1
  160. package/lib/utils/cli-version-check.js +1 -1
  161. package/lib/utils/cli-version-policy.js +1 -1
  162. package/lib/utils/logger.js +1 -1
  163. package/lib/utils/lossless-json.js +1 -1
  164. package/lib/utils/params.js +1 -1
  165. package/lib/utils/platform.js +1 -1
  166. package/lib/utils/update-notice.js +1 -1
  167. package/lib/utils/version.js +1 -1
  168. package/lib/utils/write-cli-side-channel.js +1 -1
  169. package/package.json +1 -1
  170. package/skills/lovrabet/SKILL.md +2 -2
  171. package/skills/lovrabet/references/lovrabet-config-commands.md +3 -1
  172. package/skills/lovrabet/references/lovrabet-config.md +2 -2
  173. package/skills/lovrabet/references/lovrabet-doctor.md +2 -0
  174. package/skills/lovrabet/references/lovrabet-kb-workflow.md +3 -1
  175. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a12_0x35db22=a12_0x365a;function a12_0x365a(_0x3f6df2,_0x3bd52e){_0x3f6df2=_0x3f6df2-0x100;const _0x37a4e3=a12_0x37a4();let _0x365aff=_0x37a4e3[_0x3f6df2];return _0x365aff;}(function(_0x2b41b2,_0x56cb16){const _0x5a2037=a12_0x365a,_0x4adb1d=_0x2b41b2();while(!![]){try{const _0x28ed34=-parseInt(_0x5a2037(0x122))/0x1+parseInt(_0x5a2037(0x12f))/0x2*(-parseInt(_0x5a2037(0x102))/0x3)+parseInt(_0x5a2037(0x108))/0x4*(-parseInt(_0x5a2037(0x13c))/0x5)+-parseInt(_0x5a2037(0x114))/0x6+parseInt(_0x5a2037(0x12a))/0x7+-parseInt(_0x5a2037(0x104))/0x8+parseInt(_0x5a2037(0x100))/0x9;if(_0x28ed34===_0x56cb16)break;else _0x4adb1d['push'](_0x4adb1d['shift']());}catch(_0x43440a){_0x4adb1d['push'](_0x4adb1d['shift']());}}}(a12_0x37a4,0x71274));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';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(_0x48e3eb=USER_ACCESS_KEY_CREATE_URL){const _0x38d9c5=a12_0x365a;writeCliSideChannelLine(_0x38d9c5(0x124)+PRODUCT_CONFIG[_0x38d9c5(0x10f)]+':'),writeCliSideChannelLine('\x0a'+_0x48e3eb+'\x0a'),writeCliSideChannelLine(_0x38d9c5(0x13e)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>');}function buildAccessKeySetupGuide(_0x3a5aab=USER_ACCESS_KEY_CREATE_URL){const _0x463ac2=a12_0x365a;return[_0x463ac2(0x124)+PRODUCT_CONFIG['userCenterDisplayName']+':',_0x3a5aab,_0x463ac2(0x145)+CLI_BIN_NAME+_0x463ac2(0x133)]['join']('\x0a');}function canPromptForAccessKey(_0x206f76){const _0x313d77=a12_0x365a;return!_0x206f76[_0x313d77(0x14d)]&&process[_0x313d77(0x113)][_0x313d77(0x14f)]!==![]&&process['stdout'][_0x313d77(0x14f)]!==![];}function resolveAuthScopeFlags(_0x84f20a){const _0x17ddfe=a12_0x365a;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x84f20a['bool'](_0x17ddfe(0x11a)),'explicitProject':_0x84f20a[_0x17ddfe(0x12d)](_0x17ddfe(0x12e)),'policy':_0x17ddfe(0x152)}));}function a12_0x37a4(){const _0x2a65b6=['cancelled','Tip:\x20you\x20can\x20also\x20run:','scope','\x20(via\x20','accessKeyCreatePath','AccessKey:\x20','Read\x20from\x20global\x20config\x20(default)','AccessKey\x20cleared\x20from\x20','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','\x20config.','global\x20config','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','Save\x20the\x20AccessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20the\x20project\x20file)','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','login','AccessKey\x20(ak_xxx...)','nonInteractive','\x20\x20export\x20','isTTY','status','\x20auth\x20status','global-default','\x20doctor','Option\x20C:\x20environment\x20variable','check','\x20config.\x20Nothing\x20to\x20clear.','auth','Option\x20A:\x20','19258425aVZBya','daily','6uLhanK','authRequired','3396576HLEINk','Clear\x20the\x20AccessKey\x20from\x20config','accessKey','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.','273916LecszB','Clear\x20from\x20global\x20config\x20(default)','AccessKey\x20saved\x20to\x20','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','access_key','=ak_xxx','access-key','userCenterDisplayName','str','ACCESS_KEY','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','stdin','3049542tXmYIj','production','write','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','test','global','read','\x20env\x20var','expired','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Invalid\x20accessKey\x20format.','yes','trim','627887SOSKjg','Use\x20`','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','env','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','newConfigFileName','Auth\x20mode:\x20','boolean','1730652ykVztM','Removes\x20the\x20AccessKey\x20from\x20the\x20selected\x20Lovrabet\x20config.\x20Commands\x20that\x20need\x20that\x20key\x20will\x20require\x20login\x20again.','ClientAk','bool','project','20474aSOmrK','\x20Current\x20env:\x20','Status:\x20valid','push','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','envName','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','\x20Verify:\x20','join','validation','Missing\x20accessKey.','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','`auth\x20login`\x20does\x20not\x20support\x20--yes.','25NNXiaI'];a12_0x37a4=function(){return _0x2a65b6;};return a12_0x37a4();}async function resolveAuthWriteInput(_0x204950){const _0x387575=a12_0x365a;let _0x1b1c5d=(_0x204950[_0x387575(0x110)](_0x387575(0x10e))||_0x204950[_0x387575(0x110)]('ak')||'')['trim']();const _0x288d5c=(_0x204950[_0x387575(0x110)](_0x387575(0x125))||'')['trim'](),_0x18ffe7=''+getUserDomain()+PRODUCT_CONFIG[_0x387575(0x141)];if(!_0x1b1c5d&&canPromptForAccessKey(_0x204950))try{showAccessKeyCreateHint(_0x18ffe7),_0x1b1c5d=await promptAccessKey('');}catch(_0x5d154d){if(isAbortPrompt(_0x5d154d))throw CliErrors[_0x387575(0x13d)]();throw _0x5d154d;}if(!_0x1b1c5d)throw CliErrors[_0x387575(0x138)](_0x387575(0x139),buildAccessKeySetupGuide(_0x18ffe7));if(!ACCESS_KEY_PATTERN[_0x387575(0x119)](_0x1b1c5d))throw CliErrors[_0x387575(0x138)](_0x387575(0x11f),_0x387575(0x118));if(!_0x288d5c)return{'accessKey':_0x1b1c5d};const _0x47047f=normalizeEnv(_0x288d5c);return{'accessKey':_0x1b1c5d,'env':isDaily(_0x47047f)?_0x387575(0x101):isDev(_0x47047f)?'development':_0x387575(0x115)};}export const authDefinitions=[{'service':a12_0x35db22(0x157),'command':a12_0x35db22(0x14b),'description':a12_0x35db22(0x149),'risk':a12_0x35db22(0x116),'confirmationDescription':a12_0x35db22(0x107),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x35db22(0x10e),'type':'string','description':a12_0x35db22(0x14c)},{'name':'ak','type':'string','description':'Shorthand\x20for\x20--access-key'},{'name':a12_0x35db22(0x11a),'type':'boolean','description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':'project','type':'boolean','description':a12_0x35db22(0x13a),'default':![]}],async 'execute'(_0x260c15){const _0x405730=a12_0x35db22;if(_0x260c15['bool'](_0x405730(0x120)))throw CliErrors[_0x405730(0x138)](_0x405730(0x13b),_0x405730(0x123)+CLI_BIN_NAME+'\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`'+CLI_BIN_NAME+_0x405730(0x117));const _0x3d5f6b=(_0x260c15[_0x405730(0x110)]('access-key')||_0x260c15[_0x405730(0x110)]('ak')||'')[_0x405730(0x121)]();if(!_0x3d5f6b&&_0x260c15[_0x405730(0x14d)])return{'ok':!![],'message':buildAccessKeySetupGuide(''+getUserDomain()+PRODUCT_CONFIG[_0x405730(0x141)])};const _0x154d42=await resolveAuthWriteInput(_0x260c15),_0x3f915a=resolveAuthScopeFlags(_0x260c15),_0x534dbf=readScopedConfig(_0x3f915a);_0x534dbf[_0x405730(0x106)]=_0x154d42[_0x405730(0x106)];_0x154d42[_0x405730(0x125)]&&(_0x534dbf[_0x405730(0x125)]=_0x154d42[_0x405730(0x125)]);writeScopedConfig(_0x534dbf,_0x3f915a);const _0x322588=_0x3f915a[_0x405730(0x11a)]?_0x405730(0x11a):_0x405730(0x12e),_0x151688=_0x534dbf[_0x405730(0x125)]?_0x405730(0x130)+_0x534dbf[_0x405730(0x125)]+'.':'';return{'ok':!![],'message':_0x405730(0x10a)+_0x322588+_0x405730(0x146)+_0x151688+_0x405730(0x136)+CLI_BIN_NAME+_0x405730(0x151)};}},{'service':a12_0x35db22(0x157),'command':'logout','description':a12_0x35db22(0x105),'risk':a12_0x35db22(0x116),'confirmationDescription':a12_0x35db22(0x12b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x35db22(0x11a),'type':a12_0x35db22(0x129),'description':a12_0x35db22(0x109),'default':!![]},{'name':a12_0x35db22(0x12e),'type':a12_0x35db22(0x129),'description':a12_0x35db22(0x11e),'default':![]}],async 'execute'(_0xcdf24f){const _0x1f97e6=a12_0x35db22,_0x3fb9f1=resolveAuthScopeFlags(_0xcdf24f),_0x4280c0=readScopedConfig(_0x3fb9f1),_0xaebcfa=!!_0x4280c0[_0x1f97e6(0x106)];delete _0x4280c0[_0x1f97e6(0x106)],writeScopedConfig(_0x4280c0,_0x3fb9f1);const _0xfc5cb7=_0x3fb9f1[_0x1f97e6(0x11a)]?_0x1f97e6(0x11a):_0x1f97e6(0x12e);if(_0xaebcfa)return{'ok':!![],'message':_0x1f97e6(0x144)+_0xfc5cb7+_0x1f97e6(0x146)};return{'ok':!![],'message':'No\x20AccessKey\x20found\x20in\x20'+_0xfc5cb7+_0x1f97e6(0x156)};}},{'service':'auth','command':a12_0x35db22(0x150),'description':'Show\x20current\x20authentication\x20status','risk':a12_0x35db22(0x11b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x35db22(0x11a),'type':a12_0x35db22(0x129),'description':a12_0x35db22(0x143),'default':!![]},{'name':a12_0x35db22(0x12e),'type':'boolean','description':a12_0x35db22(0x135),'default':![]},{'name':a12_0x35db22(0x155),'type':a12_0x35db22(0x129),'description':a12_0x35db22(0x10b),'default':![]}],async 'execute'(_0x31721f){const _0x3aa0b9=a12_0x35db22,_0x5c756f=resolveAuthScopeFlags(_0x31721f),_0x4901df=readScopedConfig(_0x5c756f),_0x449b04=productEnvName(_0x3aa0b9(0x111)),_0x2850e1=productEnv('ACCESS_KEY')||undefined,_0x30adb2=_0x4901df[_0x3aa0b9(0x106)]||undefined,_0x5342f0=_0x2850e1||_0x30adb2,_0x498384=_0x2850e1?_0x449b04+_0x3aa0b9(0x11c):_0x30adb2?(_0x5c756f[_0x3aa0b9(0x11a)]?'global':'project')+'\x20config':null,_0x3fcc8e=[_0x3aa0b9(0x128)+AUTH_MODE[_0x3aa0b9(0x12c)]];if(_0x5342f0){const _0x50c4dc=maskCliAccessKey(_0x5342f0);_0x3fcc8e[_0x3aa0b9(0x132)](_0x3aa0b9(0x142)+_0x50c4dc+(_0x498384?_0x3aa0b9(0x140)+_0x498384+')':'')),_0x3fcc8e['push'](_0x3aa0b9(0x131));}if(!_0x5342f0){_0x3fcc8e[_0x3aa0b9(0x132)](''),_0x3fcc8e['push']('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x3fcc8e['push'](''),_0x3fcc8e[_0x3aa0b9(0x132)](_0x3aa0b9(0x158)+CLI_BIN_NAME+_0x3aa0b9(0x112)),_0x3fcc8e[_0x3aa0b9(0x132)](''),_0x3fcc8e[_0x3aa0b9(0x132)]('Option\x20B:\x20apps\x20config\x20('+PRODUCT_CONFIG[_0x3aa0b9(0x127)]+')'),_0x3fcc8e[_0x3aa0b9(0x132)]('{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}'),_0x3fcc8e[_0x3aa0b9(0x132)](''),_0x3fcc8e[_0x3aa0b9(0x132)](_0x3aa0b9(0x154)),_0x3fcc8e[_0x3aa0b9(0x132)](_0x3aa0b9(0x14e)+_0x449b04+_0x3aa0b9(0x10d)),_0x3fcc8e[_0x3aa0b9(0x132)](''),_0x3fcc8e[_0x3aa0b9(0x132)]('Then\x20verify\x20with:\x20'+CLI_BIN_NAME+_0x3aa0b9(0x151)),_0x3fcc8e[_0x3aa0b9(0x132)](_0x3aa0b9(0x148)+CLI_BIN_NAME+_0x3aa0b9(0x153));if(_0x31721f['bool'](_0x3aa0b9(0x155))){const _0x17926f=readStoredDeviceCode();if(_0x17926f&&!isStoredDeviceCodeExpired(_0x17926f)){const _0x5178a9=getUserDomain(),_0x564526=await fetchDeviceToken(_0x5178a9,_0x17926f['code']);if(_0x564526[_0x3aa0b9(0x150)]==='success'&&_0x564526[_0x3aa0b9(0x10c)]){const _0x2af219={'global':_0x17926f[_0x3aa0b9(0x13f)]===_0x3aa0b9(0x11a)},_0x5a30b7=readScopedConfig(_0x2af219);_0x5a30b7[_0x3aa0b9(0x106)]=_0x564526[_0x3aa0b9(0x10c)],writeScopedConfig(_0x5a30b7,_0x2af219),deleteStoredDeviceCode();const _0x117511=_0x564526[_0x3aa0b9(0x10c)],_0x47866a=maskCliAccessKey(_0x117511),_0x10f2aa=_0x17926f[_0x3aa0b9(0x13f)]===_0x3aa0b9(0x11a)?_0x3aa0b9(0x147):'project\x20config';return{'ok':!![],'message':['Auth\x20mode:\x20'+AUTH_MODE[_0x3aa0b9(0x12c)],_0x3aa0b9(0x142)+_0x47866a+'\x20(via\x20'+_0x10f2aa+')',_0x3aa0b9(0x131)]['join']('\x0a')};}_0x564526['status']===_0x3aa0b9(0x11d)&&deleteStoredDeviceCode();throw CliErrors[_0x3aa0b9(0x103)](_0x3aa0b9(0x14a));}throw CliErrors[_0x3aa0b9(0x103)](_0x3fcc8e[_0x3aa0b9(0x137)]('\x0a'));}}return{'ok':!![],'message':_0x3fcc8e['join']('\x0a')};}},{'service':'auth','command':'info','description':a12_0x35db22(0x126),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x3e62a6){const _0x1a60bb=a12_0x35db22,_0x4b0f7d=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x4b0f7d,'meta':{'env':_0x3e62a6[_0x1a60bb(0x134)]??_0x1a60bb(0x115)}}};}},authDeviceDefinition];
1
+ const a12_0x197b88=a12_0x43e2;(function(_0x1aa9e2,_0x1477be){const _0x4f7601=a12_0x43e2,_0x43275c=_0x1aa9e2();while(!![]){try{const _0x42c2c1=parseInt(_0x4f7601(0x14e))/0x1+parseInt(_0x4f7601(0x189))/0x2*(-parseInt(_0x4f7601(0x170))/0x3)+parseInt(_0x4f7601(0x143))/0x4+parseInt(_0x4f7601(0x179))/0x5+parseInt(_0x4f7601(0x177))/0x6*(-parseInt(_0x4f7601(0x164))/0x7)+-parseInt(_0x4f7601(0x174))/0x8*(-parseInt(_0x4f7601(0x18e))/0x9)+-parseInt(_0x4f7601(0x181))/0xa;if(_0x42c2c1===_0x1477be)break;else _0x43275c['push'](_0x43275c['shift']());}catch(_0x519822){_0x43275c['push'](_0x43275c['shift']());}}}(a12_0x1e32,0x7ec93));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';import{getLoginUserInfo}from'../../core/api-client.js';import{getUserDomain}from'../../constant/domain.js';function a12_0x1e32(){const _0x2e3e3d=['\x20\x20export\x20','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','Use\x20`','3042032TiPpwp','Tip:\x20you\x20can\x20also\x20run:','Shorthand\x20for\x20--access-key','Clear\x20the\x20AccessKey\x20from\x20config','Read\x20from\x20global\x20config\x20(default)','\x20auth\x20login\x20--access-key\x20<ak_xxx>','global-default','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','stdout','userCenterDisplayName','push','629435OiMInz','Clear\x20from\x20global\x20config\x20(default)','newConfigFileName','daily','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','check','accessKeyCreatePath','access-key','scope','Option\x20A:\x20','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','cancelled','str','\x20Verify:\x20','access_key','production','Status:\x20valid','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','authRequired','`auth\x20login`\x20does\x20not\x20support\x20--yes.','=ak_xxx','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','602nOkxyF','Write\x20to\x20global\x20config\x20(default)','ACCESS_KEY','read','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','join','ClientAk','status','boolean','isTTY','expired','code','322077TMQOfG','string','Auth\x20mode:\x20','\x20config.','152suZDFd','\x20auth\x20status','Option\x20B:\x20apps\x20config\x20(','20622gznZhO','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','2287315qMLTbd','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','development','global','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','write','test','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','12893610QwUxtr','AccessKey\x20(ak_xxx...)','\x20(via\x20','bool','accessKey','Removes\x20the\x20AccessKey\x20from\x20the\x20selected\x20Lovrabet\x20config.\x20Commands\x20that\x20need\x20that\x20key\x20will\x20require\x20login\x20again.','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','Invalid\x20accessKey\x20format.','2YqEXcR','\x20env\x20var','Option\x20C:\x20environment\x20variable','trim','\x20config.\x20Nothing\x20to\x20clear.','172521gmCCnu','project','auth','\x20config','validation','AccessKey:\x20','AccessKey\x20cleared\x20from\x20','Then\x20verify\x20with:\x20','envName','Show\x20current\x20authentication\x20status','No\x20AccessKey\x20found\x20in\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','project\x20config','nonInteractive','env','login'];a12_0x1e32=function(){return _0x2e3e3d;};return a12_0x1e32();}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(_0x410b00=USER_ACCESS_KEY_CREATE_URL){const _0x163557=a12_0x43e2;writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG['userCenterDisplayName']+':'),writeCliSideChannelLine('\x0a'+_0x410b00+'\x0a'),writeCliSideChannelLine(_0x163557(0x144)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x163557(0x148));}function buildAccessKeySetupGuide(_0xe96dd=USER_ACCESS_KEY_CREATE_URL){const _0x2d5606=a12_0x43e2;return['AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x2d5606(0x14c)]+':',_0xe96dd,_0x2d5606(0x152)+CLI_BIN_NAME+_0x2d5606(0x139)][_0x2d5606(0x169)]('\x0a');}function a12_0x43e2(_0x3980e7,_0x507b2b){_0x3980e7=_0x3980e7-0x133;const _0x1e3211=a12_0x1e32();let _0x43e2cf=_0x1e3211[_0x3980e7];return _0x43e2cf;}function canPromptForAccessKey(_0x1b5dae){const _0x3065e5=a12_0x43e2;return!_0x1b5dae[_0x3065e5(0x13d)]&&process['stdin'][_0x3065e5(0x16d)]!==![]&&process[_0x3065e5(0x14b)][_0x3065e5(0x16d)]!==![];}function resolveAuthScopeFlags(_0x24fd41){const _0xf2419a=a12_0x43e2;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x24fd41[_0xf2419a(0x184)](_0xf2419a(0x17c)),'explicitProject':_0x24fd41[_0xf2419a(0x184)](_0xf2419a(0x18f)),'policy':_0xf2419a(0x149)}));}async function resolveAuthWriteInput(_0x591945){const _0x4a024e=a12_0x43e2;let _0x405efb=(_0x591945['str'](_0x4a024e(0x155))||_0x591945[_0x4a024e(0x15a)]('ak')||'')[_0x4a024e(0x18c)]();const _0x49b5a1=(_0x591945[_0x4a024e(0x15a)](_0x4a024e(0x13e))||'')[_0x4a024e(0x18c)](),_0x204814=''+getUserDomain()+PRODUCT_CONFIG[_0x4a024e(0x154)];if(!_0x405efb&&canPromptForAccessKey(_0x591945))try{showAccessKeyCreateHint(_0x204814),_0x405efb=await promptAccessKey('');}catch(_0x2ee1a7){if(isAbortPrompt(_0x2ee1a7))throw CliErrors[_0x4a024e(0x159)]();throw _0x2ee1a7;}if(!_0x405efb)throw CliErrors[_0x4a024e(0x192)]('Missing\x20accessKey.',buildAccessKeySetupGuide(_0x204814));if(!ACCESS_KEY_PATTERN[_0x4a024e(0x17f)](_0x405efb))throw CliErrors[_0x4a024e(0x192)](_0x4a024e(0x188),_0x4a024e(0x163));if(!_0x49b5a1)return{'accessKey':_0x405efb};const _0x2756f8=normalizeEnv(_0x49b5a1);return{'accessKey':_0x405efb,'env':isDaily(_0x2756f8)?_0x4a024e(0x151):isDev(_0x2756f8)?_0x4a024e(0x17b):_0x4a024e(0x15d)};}export const authDefinitions=[{'service':a12_0x197b88(0x190),'command':a12_0x197b88(0x13f),'description':'Save\x20the\x20AccessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20the\x20project\x20file)','risk':'write','confirmationDescription':'Saves\x20a\x20new\x20AccessKey\x20to\x20the\x20selected\x20Lovrabet\x20config.\x20An\x20existing\x20key\x20in\x20that\x20scope\x20is\x20overwritten.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20secret.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x197b88(0x155),'type':a12_0x197b88(0x171),'description':a12_0x197b88(0x182)},{'name':'ak','type':a12_0x197b88(0x171),'description':a12_0x197b88(0x145)},{'name':a12_0x197b88(0x17c),'type':'boolean','description':a12_0x197b88(0x165),'default':!![]},{'name':a12_0x197b88(0x18f),'type':a12_0x197b88(0x16c),'description':a12_0x197b88(0x17d),'default':![]}],async 'execute'(_0x5df078){const _0x218347=a12_0x197b88;if(_0x5df078[_0x218347(0x184)]('yes'))throw CliErrors['validation'](_0x218347(0x161),_0x218347(0x142)+CLI_BIN_NAME+_0x218347(0x141)+CLI_BIN_NAME+_0x218347(0x187));const _0x2fcf92=(_0x5df078[_0x218347(0x15a)](_0x218347(0x155))||_0x5df078[_0x218347(0x15a)]('ak')||'')[_0x218347(0x18c)]();if(!_0x2fcf92&&_0x5df078['nonInteractive'])return{'ok':!![],'message':buildAccessKeySetupGuide(''+getUserDomain()+PRODUCT_CONFIG[_0x218347(0x154)])};const _0x434ba6=await resolveAuthWriteInput(_0x5df078),_0x1dab07=resolveAuthScopeFlags(_0x5df078),_0x35f389=readScopedConfig(_0x1dab07);_0x35f389[_0x218347(0x185)]=_0x434ba6[_0x218347(0x185)];_0x434ba6[_0x218347(0x13e)]&&(_0x35f389[_0x218347(0x13e)]=_0x434ba6[_0x218347(0x13e)]);writeScopedConfig(_0x35f389,_0x1dab07);const _0x3f2079=_0x1dab07['global']?_0x218347(0x17c):_0x218347(0x18f),_0x2097bb=_0x35f389[_0x218347(0x13e)]?'\x20Current\x20env:\x20'+_0x35f389[_0x218347(0x13e)]+'.':'';return{'ok':!![],'message':'AccessKey\x20saved\x20to\x20'+_0x3f2079+'\x20config.'+_0x2097bb+_0x218347(0x15b)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a12_0x197b88(0x190),'command':'logout','description':a12_0x197b88(0x146),'risk':a12_0x197b88(0x17e),'confirmationDescription':a12_0x197b88(0x186),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x197b88(0x17c),'type':a12_0x197b88(0x16c),'description':a12_0x197b88(0x14f),'default':!![]},{'name':'project','type':a12_0x197b88(0x16c),'description':a12_0x197b88(0x17a),'default':![]}],async 'execute'(_0x4a0560){const _0xc3dbee=a12_0x197b88,_0x1a5da1=resolveAuthScopeFlags(_0x4a0560),_0x2e9e41=readScopedConfig(_0x1a5da1),_0xa62b7=!!_0x2e9e41[_0xc3dbee(0x185)];delete _0x2e9e41[_0xc3dbee(0x185)],writeScopedConfig(_0x2e9e41,_0x1a5da1);const _0x4567d9=_0x1a5da1[_0xc3dbee(0x17c)]?_0xc3dbee(0x17c):'project';if(_0xa62b7)return{'ok':!![],'message':_0xc3dbee(0x134)+_0x4567d9+_0xc3dbee(0x173)};return{'ok':!![],'message':_0xc3dbee(0x138)+_0x4567d9+_0xc3dbee(0x18d)};}},{'service':a12_0x197b88(0x190),'command':'status','description':a12_0x197b88(0x137),'risk':a12_0x197b88(0x167),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x197b88(0x17c),'type':'boolean','description':a12_0x197b88(0x147),'default':!![]},{'name':'project','type':a12_0x197b88(0x16c),'description':a12_0x197b88(0x178),'default':![]},{'name':a12_0x197b88(0x153),'type':'boolean','description':a12_0x197b88(0x13a),'default':![]}],async 'execute'(_0x25d6c2){const _0x3a654f=a12_0x197b88,_0x1bed1d=resolveAuthScopeFlags(_0x25d6c2),_0x355d97=readScopedConfig(_0x1bed1d),_0x33e616=productEnvName('ACCESS_KEY'),_0x564ada=productEnv(_0x3a654f(0x166))||undefined,_0x12e6c5=_0x355d97[_0x3a654f(0x185)]||undefined,_0x62fd63=_0x564ada||_0x12e6c5,_0x343f56=_0x564ada?_0x33e616+_0x3a654f(0x18a):_0x12e6c5?(_0x1bed1d['global']?_0x3a654f(0x17c):_0x3a654f(0x18f))+_0x3a654f(0x191):null,_0x351b55=[_0x3a654f(0x172)+AUTH_MODE[_0x3a654f(0x16a)]];if(_0x62fd63){const _0x90ea28=maskCliAccessKey(_0x62fd63);_0x351b55['push'](_0x3a654f(0x133)+_0x90ea28+(_0x343f56?_0x3a654f(0x183)+_0x343f56+')':'')),_0x351b55[_0x3a654f(0x14d)](_0x3a654f(0x15e));}if(!_0x62fd63){_0x351b55[_0x3a654f(0x14d)](''),_0x351b55[_0x3a654f(0x14d)](_0x3a654f(0x13b)),_0x351b55[_0x3a654f(0x14d)](''),_0x351b55[_0x3a654f(0x14d)](_0x3a654f(0x157)+CLI_BIN_NAME+_0x3a654f(0x14a)),_0x351b55[_0x3a654f(0x14d)](''),_0x351b55[_0x3a654f(0x14d)](_0x3a654f(0x176)+PRODUCT_CONFIG[_0x3a654f(0x150)]+')'),_0x351b55[_0x3a654f(0x14d)](_0x3a654f(0x180)),_0x351b55['push'](''),_0x351b55[_0x3a654f(0x14d)](_0x3a654f(0x18b)),_0x351b55['push'](_0x3a654f(0x140)+_0x33e616+_0x3a654f(0x162)),_0x351b55[_0x3a654f(0x14d)](''),_0x351b55['push'](_0x3a654f(0x135)+CLI_BIN_NAME+_0x3a654f(0x175)),_0x351b55[_0x3a654f(0x14d)](_0x3a654f(0x15f)+CLI_BIN_NAME+'\x20doctor');if(_0x25d6c2[_0x3a654f(0x184)](_0x3a654f(0x153))){const _0x45b8eb=readStoredDeviceCode();if(_0x45b8eb&&!isStoredDeviceCodeExpired(_0x45b8eb)){const _0x24b447=getUserDomain(),_0x1865b0=await fetchDeviceToken(_0x24b447,_0x45b8eb[_0x3a654f(0x16f)]);if(_0x1865b0[_0x3a654f(0x16b)]==='success'&&_0x1865b0[_0x3a654f(0x15c)]){const _0x3e882b={'global':_0x45b8eb[_0x3a654f(0x156)]===_0x3a654f(0x17c)},_0x31f1ae=readScopedConfig(_0x3e882b);_0x31f1ae[_0x3a654f(0x185)]=_0x1865b0[_0x3a654f(0x15c)],writeScopedConfig(_0x31f1ae,_0x3e882b),deleteStoredDeviceCode();const _0xd54e0d=_0x1865b0[_0x3a654f(0x15c)],_0x451eb5=maskCliAccessKey(_0xd54e0d),_0x3cf6c6=_0x45b8eb['scope']===_0x3a654f(0x17c)?'global\x20config':_0x3a654f(0x13c);return{'ok':!![],'message':[_0x3a654f(0x172)+AUTH_MODE['ClientAk'],_0x3a654f(0x133)+_0x451eb5+_0x3a654f(0x183)+_0x3cf6c6+')',_0x3a654f(0x15e)]['join']('\x0a')};}_0x1865b0[_0x3a654f(0x16b)]===_0x3a654f(0x16e)&&deleteStoredDeviceCode();throw CliErrors['authRequired'](_0x3a654f(0x168));}throw CliErrors[_0x3a654f(0x160)](_0x351b55[_0x3a654f(0x169)]('\x0a'));}}return{'ok':!![],'message':_0x351b55[_0x3a654f(0x169)]('\x0a')};}},{'service':a12_0x197b88(0x190),'command':'info','description':a12_0x197b88(0x158),'risk':a12_0x197b88(0x167),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0xc81f33){const _0x1c44a7=a12_0x197b88,_0x2a01e5=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x2a01e5,'meta':{'env':_0xc81f33[_0x1c44a7(0x136)]??_0x1c44a7(0x15d)}}};}},authDeviceDefinition];
@@ -1 +1 @@
1
- (function(_0x36c9fc,_0x2c058f){const _0xe25d1b=a13_0x3996,_0x1d3f92=_0x36c9fc();while(!![]){try{const _0x57ab64=-parseInt(_0xe25d1b(0x15d))/0x1*(-parseInt(_0xe25d1b(0x161))/0x2)+parseInt(_0xe25d1b(0x158))/0x3*(parseInt(_0xe25d1b(0x154))/0x4)+-parseInt(_0xe25d1b(0x155))/0x5+parseInt(_0xe25d1b(0x15f))/0x6*(parseInt(_0xe25d1b(0x164))/0x7)+-parseInt(_0xe25d1b(0x15b))/0x8+-parseInt(_0xe25d1b(0x151))/0x9*(-parseInt(_0xe25d1b(0x160))/0xa)+-parseInt(_0xe25d1b(0x15c))/0xb;if(_0x57ab64===_0x2c058f)break;else _0x1d3f92['push'](_0x1d3f92['shift']());}catch(_0x545098){_0x1d3f92['push'](_0x1d3f92['shift']());}}}(a13_0x12f6,0x8b5bf));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x34c539=a13_0x3996;super(_0x34c539(0x153)),this[_0x34c539(0x159)]=_0x34c539(0x15a);}}function a13_0x12f6(){const _0x6be9de=['stdout','61593vyOsSH','close','stdin','once','removeListener','3123VLbAse','SIGINT','User\x20aborted\x20prompt','172264PlnIyP','1483870mnQJhz','race','question','54ndZxjJ','name','AbortPrompt','7618144AuOFoU','19664502oOdtsq','1ceHuOR','trim','498OlVYjD','30010vOZDcn','2121374PIzhMd','AccessKey\x20(paste\x20ak_...):\x20'];a13_0x12f6=function(){return _0x6be9de;};return a13_0x12f6();}function createSafeRl(){const _0x3c110f=a13_0x3996,_0x1ce18d=createInterface({'input':process[_0x3c110f(0x14e)],'output':process[_0x3c110f(0x163)]});let _0x824d9c;const _0x36629a=new Promise((_0x3982b1,_0xd422b)=>{const _0x491548=_0x3c110f;_0x824d9c=()=>{const _0x44b830=a13_0x3996;_0x824d9c&&(_0x1ce18d[_0x44b830(0x150)](_0x44b830(0x152),_0x824d9c),_0x824d9c=undefined);try{_0x1ce18d[_0x44b830(0x165)]();}catch{}_0xd422b(new AbortPrompt());},_0x1ce18d[_0x491548(0x14f)]('SIGINT',_0x824d9c);}),_0x39a7cf=()=>{const _0x35fe48=_0x3c110f;_0x824d9c&&(_0x1ce18d[_0x35fe48(0x150)](_0x35fe48(0x152),_0x824d9c),_0x824d9c=undefined);try{_0x1ce18d[_0x35fe48(0x165)]();}catch{}};return{'rl':_0x1ce18d,'abortPromise':_0x36629a,'disposeSuccess':_0x39a7cf};}export async function promptAccessKey(_0x2a2d58=''){const _0x4ca4f7=a13_0x3996,{rl:_0x24a57f,abortPromise:_0x46f7de,disposeSuccess:_0x5dfee1}=createSafeRl(),_0x48740f=new Promise(_0x5e6680=>{const _0x412600=a13_0x3996,_0x18dcbe=_0x2a2d58?'AccessKey\x20('+_0x2a2d58+'):\x20':_0x412600(0x162);_0x24a57f[_0x412600(0x157)](_0x18dcbe,_0xa063e0=>{const _0x28a914=_0x412600;_0x5dfee1(),_0x5e6680(_0xa063e0[_0x28a914(0x15e)]()||_0x2a2d58);});});return Promise[_0x4ca4f7(0x156)]([_0x48740f,_0x46f7de]);}function a13_0x3996(_0x2c0332,_0x4473fc){_0x2c0332=_0x2c0332-0x14e;const _0x12f632=a13_0x12f6();let _0x399673=_0x12f632[_0x2c0332];return _0x399673;}export function isAbortPrompt(_0x25a847){const _0x144759=a13_0x3996;return _0x25a847 instanceof Error&&_0x25a847[_0x144759(0x159)]===_0x144759(0x15a);}
1
+ (function(_0x5216a8,_0x5eb49c){const _0x5e1f3f=a13_0x213c,_0x59e730=_0x5216a8();while(!![]){try{const _0x278d78=parseInt(_0x5e1f3f(0x1d1))/0x1+-parseInt(_0x5e1f3f(0x1d0))/0x2*(parseInt(_0x5e1f3f(0x1da))/0x3)+parseInt(_0x5e1f3f(0x1cc))/0x4+-parseInt(_0x5e1f3f(0x1d6))/0x5+parseInt(_0x5e1f3f(0x1dd))/0x6*(parseInt(_0x5e1f3f(0x1d4))/0x7)+parseInt(_0x5e1f3f(0x1d7))/0x8+parseInt(_0x5e1f3f(0x1d9))/0x9*(-parseInt(_0x5e1f3f(0x1ca))/0xa);if(_0x278d78===_0x5eb49c)break;else _0x59e730['push'](_0x59e730['shift']());}catch(_0x3fb05a){_0x59e730['push'](_0x59e730['shift']());}}}(a13_0x2cbe,0xad200));import{createInterface}from'node:readline';function a13_0x213c(_0x2ea7f6,_0x282410){_0x2ea7f6=_0x2ea7f6-0x1c9;const _0x2cbeb5=a13_0x2cbe();let _0x213c4f=_0x2cbeb5[_0x2ea7f6];return _0x213c4f;}class AbortPrompt extends Error{constructor(){const _0x2650c9=a13_0x213c;super(_0x2650c9(0x1db)),this[_0x2650c9(0x1c9)]=_0x2650c9(0x1d3);}}function a13_0x2cbe(){const _0x4ae64d=['7453336gynyLG','stdin','12168rLQGgS','9zrSBHx','User\x20aborted\x20prompt','question','24PYGKYv','name','2510viWjmv','close','3102476NzfUOO','SIGINT','):\x20','once','271914VOYcNr','30118fjvehG','AccessKey\x20(paste\x20ak_...):\x20','AbortPrompt','990010ShIObh','removeListener','4233905mASBuQ'];a13_0x2cbe=function(){return _0x4ae64d;};return a13_0x2cbe();}function createSafeRl(){const _0x39a9c0=a13_0x213c,_0x3a86a9=createInterface({'input':process[_0x39a9c0(0x1d8)],'output':process['stdout']});let _0xa6340;const _0x25de5d=new Promise((_0x22dd95,_0x19f361)=>{const _0x1a2d4a=_0x39a9c0;_0xa6340=()=>{const _0x5d49a1=a13_0x213c;_0xa6340&&(_0x3a86a9[_0x5d49a1(0x1d5)](_0x5d49a1(0x1cd),_0xa6340),_0xa6340=undefined);try{_0x3a86a9[_0x5d49a1(0x1cb)]();}catch{}_0x19f361(new AbortPrompt());},_0x3a86a9[_0x1a2d4a(0x1cf)](_0x1a2d4a(0x1cd),_0xa6340);}),_0x44e236=()=>{const _0x2d67c4=_0x39a9c0;_0xa6340&&(_0x3a86a9[_0x2d67c4(0x1d5)](_0x2d67c4(0x1cd),_0xa6340),_0xa6340=undefined);try{_0x3a86a9[_0x2d67c4(0x1cb)]();}catch{}};return{'rl':_0x3a86a9,'abortPromise':_0x25de5d,'disposeSuccess':_0x44e236};}export async function promptAccessKey(_0x2db5a1=''){const {rl:_0x36ffcf,abortPromise:_0x911ebb,disposeSuccess:_0x2ee16b}=createSafeRl(),_0x3878db=new Promise(_0x437b01=>{const _0x4a7157=a13_0x213c,_0x1b1844=_0x2db5a1?'AccessKey\x20('+_0x2db5a1+_0x4a7157(0x1ce):_0x4a7157(0x1d2);_0x36ffcf[_0x4a7157(0x1dc)](_0x1b1844,_0x3d685b=>{_0x2ee16b(),_0x437b01(_0x3d685b['trim']()||_0x2db5a1);});});return Promise['race']([_0x3878db,_0x911ebb]);}export function isAbortPrompt(_0x5d9200){const _0x4303f2=a13_0x213c;return _0x5d9200 instanceof Error&&_0x5d9200[_0x4303f2(0x1c9)]===_0x4303f2(0x1d3);}
@@ -1 +1 @@
1
- function a14_0x5f9f(_0x49f029,_0xbca89f){_0x49f029=_0x49f029-0x1d2;const _0x410d74=a14_0x410d();let _0x5f9f0=_0x410d74[_0x49f029];return _0x5f9f0;}const a14_0x55eda6=a14_0x5f9f;(function(_0x4c7898,_0x17abba){const _0x2de17b=a14_0x5f9f,_0x48d571=_0x4c7898();while(!![]){try{const _0x305b88=-parseInt(_0x2de17b(0x1db))/0x1+-parseInt(_0x2de17b(0x1e2))/0x2*(-parseInt(_0x2de17b(0x1df))/0x3)+-parseInt(_0x2de17b(0x1de))/0x4+parseInt(_0x2de17b(0x1d3))/0x5*(-parseInt(_0x2de17b(0x1dd))/0x6)+-parseInt(_0x2de17b(0x1e1))/0x7+parseInt(_0x2de17b(0x1d4))/0x8+parseInt(_0x2de17b(0x1d6))/0x9;if(_0x305b88===_0x17abba)break;else _0x48d571['push'](_0x48d571['shift']());}catch(_0x50fe6d){_0x48d571['push'](_0x48d571['shift']());}}}(a14_0x410d,0x92080));import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a14_0x55eda6(0x1e0),'command':a14_0x55eda6(0x1d9),'description':'Get\x20a\x20Backend\x20Function\x20endpoint\x20contract\x20by\x20function\x20name','risk':a14_0x55eda6(0x1da),'flags':[{...NAME_FLAG,'required':!![],'description':'Backend\x20Function\x20name'}],async 'execute'(_0x27f02e){const _0x512cd7=a14_0x55eda6,_0x1cc2e7=await getBffEndpointContract(_0x27f02e[_0x512cd7(0x1dc)],_0x27f02e[_0x512cd7(0x1d7)](_0x512cd7(0x1d8)));return{'ok':!![],'data':{'appCode':_0x1cc2e7['appCode'],'functionName':_0x1cc2e7['functionName'],'description':_0x1cc2e7['description']||'(none)','version':_0x1cc2e7[_0x512cd7(0x1d5)],'gmtModified':_0x1cc2e7[_0x512cd7(0x1d2)]}};}};function a14_0x410d(){const _0x3b6fb6=['detail','read','286944iPAeHq','appCode','108lRKWmW','1072884BPBUsB','9wLaDcp','bff','5494496fgExmJ','446520zuyTJs','gmtModified','11045vlapnC','8060592WKHbEq','version','2705805MizKnY','str','name'];a14_0x410d=function(){return _0x3b6fb6;};return a14_0x410d();}
1
+ function a14_0x9200(){const _0x653503=['version','name','appCode','4900165FWtsJy','21857210riCvOU','bff','81112onkXOH','757308nlvBgY','functionName','read','80604fjWycD','6IWgFDe','str','Backend\x20Function\x20name','detail','801dpUbgl','gmtModified','(none)','161909VzySgA','6471276dCDBQS','24TsIYYi'];a14_0x9200=function(){return _0x653503;};return a14_0x9200();}function a14_0x4c3c(_0x3206c5,_0x350c8a){_0x3206c5=_0x3206c5-0x103;const _0x92002c=a14_0x9200();let _0x4c3cb3=_0x92002c[_0x3206c5];return _0x4c3cb3;}const a14_0x270c86=a14_0x4c3c;(function(_0x38343d,_0x2d5b1e){const _0xfbd36d=a14_0x4c3c,_0x208491=_0x38343d();while(!![]){try{const _0x1e3d6e=parseInt(_0xfbd36d(0x10b))/0x1+-parseInt(_0xfbd36d(0x115))/0x2+-parseInt(_0xfbd36d(0x103))/0x3*(-parseInt(_0xfbd36d(0x10d))/0x4)+-parseInt(_0xfbd36d(0x111))/0x5*(-parseInt(_0xfbd36d(0x104))/0x6)+parseInt(_0xfbd36d(0x10c))/0x7+parseInt(_0xfbd36d(0x114))/0x8*(parseInt(_0xfbd36d(0x108))/0x9)+-parseInt(_0xfbd36d(0x112))/0xa;if(_0x1e3d6e===_0x2d5b1e)break;else _0x208491['push'](_0x208491['shift']());}catch(_0x10908a){_0x208491['push'](_0x208491['shift']());}}}(a14_0x9200,0x8a16e));import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a14_0x270c86(0x113),'command':a14_0x270c86(0x107),'description':'Get\x20a\x20Backend\x20Function\x20endpoint\x20contract\x20by\x20function\x20name','risk':a14_0x270c86(0x117),'flags':[{...NAME_FLAG,'required':!![],'description':a14_0x270c86(0x106)}],async 'execute'(_0x1a68e6){const _0x93c4fb=a14_0x270c86,_0x5e74e4=await getBffEndpointContract(_0x1a68e6[_0x93c4fb(0x110)],_0x1a68e6[_0x93c4fb(0x105)](_0x93c4fb(0x10f)));return{'ok':!![],'data':{'appCode':_0x5e74e4[_0x93c4fb(0x110)],'functionName':_0x5e74e4[_0x93c4fb(0x116)],'description':_0x5e74e4['description']||_0x93c4fb(0x10a),'version':_0x5e74e4[_0x93c4fb(0x10e)],'gmtModified':_0x5e74e4[_0x93c4fb(0x109)]}};}};
@@ -1 +1 @@
1
- const a15_0x126775=a15_0x4c2d;(function(_0xbe21de,_0x4f3232){const _0x29ad90=a15_0x4c2d,_0x386c6e=_0xbe21de();while(!![]){try{const _0x1e3c7c=parseInt(_0x29ad90(0x1e8))/0x1+-parseInt(_0x29ad90(0x1ed))/0x2+parseInt(_0x29ad90(0x1ef))/0x3*(-parseInt(_0x29ad90(0x1f1))/0x4)+parseInt(_0x29ad90(0x1ec))/0x5*(parseInt(_0x29ad90(0x1ea))/0x6)+parseInt(_0x29ad90(0x1f3))/0x7+-parseInt(_0x29ad90(0x1f6))/0x8+parseInt(_0x29ad90(0x1eb))/0x9*(parseInt(_0x29ad90(0x1e9))/0xa);if(_0x1e3c7c===_0x4f3232)break;else _0x386c6e['push'](_0x386c6e['shift']());}catch(_0x365178){_0x386c6e['push'](_0x386c6e['shift']());}}}(a15_0x2da7,0xea6a0));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a15_0x4c2d(_0x52dd63,_0x1e4ca9){_0x52dd63=_0x52dd63-0x1e7;const _0x2da776=a15_0x2da7();let _0x4c2dc1=_0x2da776[_0x52dd63];return _0x4c2dc1;}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a15_0x2da7(){const _0x17f554=['Backend\x20Function\x20name\x20to\x20execute','933ICgkpz','read','11816DVRDch','exec','8453977bAUOrN','str','Backend\x20Function\x20executed\x20in\x20','9703872AwJouo','params','61498lnpHop','1066510vFxlIV','948EvvKhF','252kwsAZx','3055gTudLV','2520274OMCMjH'];a15_0x2da7=function(){return _0x17f554;};return a15_0x2da7();}export const bffExec={'service':'bff','command':a15_0x126775(0x1f2),'description':'Execute\x20a\x20Backend\x20Function\x20script\x20by\x20function\x20name','risk':a15_0x126775(0x1f0),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x126775(0x1ee)},PARAMS_FLAG],async 'execute'(_0x1288bd){const _0x3efa88=a15_0x126775,_0x9c7fff=parseJsonParams(_0x1288bd[_0x3efa88(0x1f4)](_0x3efa88(0x1e7))),_0x373ecd=Date['now'](),_0x5836d3=await executeSdkBff(_0x1288bd[_0x3efa88(0x1f4)]('name'),_0x9c7fff),_0x398b49=Date['now']()-_0x373ecd;return{'ok':!![],'data':{'result':_0x5836d3,'elapsed':_0x398b49},'message':_0x3efa88(0x1f5)+_0x398b49+'ms'};}};
1
+ const a15_0x481811=a15_0xd24d;(function(_0x49a7c3,_0x305230){const _0x44df7a=a15_0xd24d,_0x2f10c1=_0x49a7c3();while(!![]){try{const _0x4391d2=-parseInt(_0x44df7a(0x7a))/0x1*(parseInt(_0x44df7a(0x69))/0x2)+-parseInt(_0x44df7a(0x77))/0x3*(parseInt(_0x44df7a(0x6c))/0x4)+parseInt(_0x44df7a(0x72))/0x5+parseInt(_0x44df7a(0x79))/0x6*(-parseInt(_0x44df7a(0x6f))/0x7)+parseInt(_0x44df7a(0x7b))/0x8*(-parseInt(_0x44df7a(0x76))/0x9)+-parseInt(_0x44df7a(0x74))/0xa*(-parseInt(_0x44df7a(0x67))/0xb)+parseInt(_0x44df7a(0x78))/0xc*(parseInt(_0x44df7a(0x68))/0xd);if(_0x4391d2===_0x305230)break;else _0x2f10c1['push'](_0x2f10c1['shift']());}catch(_0x3b495d){_0x2f10c1['push'](_0x2f10c1['shift']());}}}(a15_0x5d33,0xf2207));function a15_0xd24d(_0x1278bc,_0x27c2db){_0x1278bc=_0x1278bc-0x67;const _0x5d3338=a15_0x5d33();let _0xd24d4a=_0x5d3338[_0x1278bc];return _0xd24d4a;}import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a15_0x5d33(){const _0x5ef130=['Backend\x20Function\x20executed\x20in\x20','8YgzzNH','exec','Execute\x20a\x20Backend\x20Function\x20script\x20by\x20function\x20name','119kkibMH','read','now','9229325cYLHOA','str','6055240LaFbsI','params','11061rWrpuD','107898WYAosx','6642660Efnjql','26346tVhhMk','37FYrKFA','1000YIczVF','11YGrfBi','13jJVBUj','92594vqewOX','bff'];a15_0x5d33=function(){return _0x5ef130;};return a15_0x5d33();}export const bffExec={'service':a15_0x481811(0x6a),'command':a15_0x481811(0x6d),'description':a15_0x481811(0x6e),'risk':a15_0x481811(0x70),'flags':[{...NAME_FLAG,'required':!![],'description':'Backend\x20Function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0xf28271){const _0x87237d=a15_0x481811,_0x22cd26=parseJsonParams(_0xf28271[_0x87237d(0x73)](_0x87237d(0x75))),_0x44f07a=Date['now'](),_0x56ab61=await executeSdkBff(_0xf28271[_0x87237d(0x73)]('name'),_0x22cd26),_0xee17c=Date[_0x87237d(0x71)]()-_0x44f07a;return{'ok':!![],'data':{'result':_0x56ab61,'elapsed':_0xee17c},'message':_0x87237d(0x6b)+_0xee17c+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x21ae2e,_0x99c615){const _0x593767=a16_0x299f,_0x236541=_0x21ae2e();while(!![]){try{const _0x4233ca=parseInt(_0x593767(0x13f))/0x1*(-parseInt(_0x593767(0x147))/0x2)+-parseInt(_0x593767(0x146))/0x3+parseInt(_0x593767(0x140))/0x4+parseInt(_0x593767(0x148))/0x5*(parseInt(_0x593767(0x141))/0x6)+parseInt(_0x593767(0x142))/0x7+parseInt(_0x593767(0x144))/0x8+-parseInt(_0x593767(0x145))/0x9*(parseInt(_0x593767(0x143))/0xa);if(_0x4233ca===_0x99c615)break;else _0x236541['push'](_0x236541['shift']());}catch(_0x1265c5){_0x236541['push'](_0x236541['shift']());}}}(a16_0x2e63,0x4e10c));function a16_0x299f(_0x20a57e,_0x1756ba){_0x20a57e=_0x20a57e-0x13f;const _0x2e6334=a16_0x2e63();let _0x299fba=_0x2e6334[_0x20a57e];return _0x299fba;}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a16_0x2e63(){const _0xabbcf2=['1150yhgxoF','1060664VpmZYr','61434ofOZqJ','134604mnqXcY','2SVgPnK','110dkExZo','56460KkwNIF','1345936BHrKSb','57138NHEdnt','3692507SBkURJ'];a16_0x2e63=function(){return _0xabbcf2;};return a16_0x2e63();}export const bffDefinitions=[bffDetail,bffExec];
1
+ (function(_0x1c6c20,_0x4c52ac){const _0x22300e=a16_0x57de,_0x54ce14=_0x1c6c20();while(!![]){try{const _0x6da141=-parseInt(_0x22300e(0xbb))/0x1+-parseInt(_0x22300e(0xb3))/0x2+parseInt(_0x22300e(0xb9))/0x3+parseInt(_0x22300e(0xb4))/0x4*(-parseInt(_0x22300e(0xb5))/0x5)+-parseInt(_0x22300e(0xb7))/0x6+-parseInt(_0x22300e(0xbc))/0x7*(parseInt(_0x22300e(0xb6))/0x8)+-parseInt(_0x22300e(0xba))/0x9*(-parseInt(_0x22300e(0xb8))/0xa);if(_0x6da141===_0x4c52ac)break;else _0x54ce14['push'](_0x54ce14['shift']());}catch(_0x48f271){_0x54ce14['push'](_0x54ce14['shift']());}}}(a16_0x5406,0x2dc52));import{bffDetail}from'../../commands/bff/detail.js';function a16_0x57de(_0x1445a4,_0x3bfaa5){_0x1445a4=_0x1445a4-0xb3;const _0x540609=a16_0x5406();let _0x57dea8=_0x540609[_0x1445a4];return _0x57dea8;}function a16_0x5406(){const _0xe7bab7=['1849985LCEzYd','40mxtXkJ','406608rujGSm','711290XHzBrh','444849ypmruN','144neNYSA','193347JGwgYe','523334ozrvBh','187902WsNzJN','4lwbgBa'];a16_0x5406=function(){return _0xe7bab7;};return a16_0x5406();}import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- const a17_0x14d95b=a17_0x5842;function a17_0x5842(_0x1e0a45,_0x22e738){_0x1e0a45=_0x1e0a45-0x1ea;const _0xb463a8=a17_0xb463();let _0x5842d4=_0xb463a8[_0x1e0a45];return _0x5842d4;}(function(_0x17fefd,_0x3c14a5){const _0x5892e0=a17_0x5842,_0x21ab1c=_0x17fefd();while(!![]){try{const _0x9f0f1=-parseInt(_0x5892e0(0x200))/0x1+-parseInt(_0x5892e0(0x1f2))/0x2+parseInt(_0x5892e0(0x1ef))/0x3+parseInt(_0x5892e0(0x1f4))/0x4+parseInt(_0x5892e0(0x1fd))/0x5+-parseInt(_0x5892e0(0x1fb))/0x6+parseInt(_0x5892e0(0x1f1))/0x7;if(_0x9f0f1===_0x3c14a5)break;else _0x21ab1c['push'](_0x21ab1c['shift']());}catch(_0x7b84a6){_0x21ab1c['push'](_0x21ab1c['shift']());}}}(a17_0xb463,0xf4217));function a17_0xb463(){const _0x38b1a7=['info',']:\x20','repairCommand','CLI\x20Built-in\x20Skill\x20','setLogPath','read','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','unknown','5760894VKJxiR','installedPath','8375395bcZTtJ','2684372lSomri','INSTALL_FAILED','924320pvvpsg','code','Built-in\x20Skill\x20install\x20failed\x20[','\x20installed','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20npm\x20package.','changed','nonInteractive','6794514odJCHi','\x20at\x20','6369430SUJaFs','cli-skill','pipe','1147185oZfPcq','skillVersion'];a17_0xb463=function(){return _0x38b1a7;};return a17_0xb463();}import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a17_0x14d95b(0x1fe),'command':'install','description':'Install\x20the\x20built-in\x20CLI\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','risk':a17_0x14d95b(0x1ec),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3d65f9){const _0x5c7bb2=a17_0x14d95b;logger[_0x5c7bb2(0x1eb)](process['cwd']()),logger[_0x5c7bb2(0x202)]('cli-skill-install',_0x5c7bb2(0x1f8));const _0x185893=installBuiltinSkill({'stdio':_0x3d65f9[_0x5c7bb2(0x1fa)]?_0x5c7bb2(0x1ff):'inherit'});if(!_0x185893['ok'])throw CliErrors['apiError'](_0x5c7bb2(0x1f6)+(_0x185893[_0x5c7bb2(0x1f5)]||_0x5c7bb2(0x1f3))+_0x5c7bb2(0x203)+(_0x185893['error']||_0x5c7bb2(0x1ee)),_0x5c7bb2(0x1ed)+_0x185893[_0x5c7bb2(0x204)]);const _0x270458=_0x185893[_0x5c7bb2(0x1f0)]?_0x5c7bb2(0x1fc)+_0x185893[_0x5c7bb2(0x1f0)]:'';return console['log'](_0x185893[_0x5c7bb2(0x1f9)]?_0x5c7bb2(0x1ea)+_0x185893[_0x5c7bb2(0x201)]+_0x5c7bb2(0x1f7)+_0x270458:'CLI\x20Built-in\x20Skill\x20'+_0x185893[_0x5c7bb2(0x201)]+'\x20is\x20already\x20current'+_0x270458),{'ok':!![]};}}];
1
+ const a17_0x37a4d9=a17_0x42bb;(function(_0x153a6f,_0x191c13){const _0x122410=a17_0x42bb,_0x3ff02e=_0x153a6f();while(!![]){try{const _0x4f8feb=-parseInt(_0x122410(0x98))/0x1*(-parseInt(_0x122410(0x95))/0x2)+-parseInt(_0x122410(0x89))/0x3+-parseInt(_0x122410(0xa7))/0x4+parseInt(_0x122410(0x8f))/0x5*(-parseInt(_0x122410(0x9d))/0x6)+parseInt(_0x122410(0xa4))/0x7+-parseInt(_0x122410(0x97))/0x8*(-parseInt(_0x122410(0xa3))/0x9)+-parseInt(_0x122410(0x9b))/0xa*(-parseInt(_0x122410(0x9a))/0xb);if(_0x4f8feb===_0x191c13)break;else _0x3ff02e['push'](_0x3ff02e['shift']());}catch(_0x1413c5){_0x3ff02e['push'](_0x3ff02e['shift']());}}}(a17_0x314d,0x6e0dd));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';import{logger}from'../../utils/logger.js';function a17_0x42bb(_0x374646,_0x22b552){_0x374646=_0x374646-0x88;const _0x314d97=a17_0x314d();let _0x42bb1b=_0x314d97[_0x374646];return _0x42bb1b;}export const cliSkillDefinitions=[{'service':'cli-skill','command':a17_0x37a4d9(0x8a),'description':a17_0x37a4d9(0xa5),'risk':a17_0x37a4d9(0xa2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x49c51f){const _0x58d2e1=a17_0x37a4d9;logger['setLogPath'](process['cwd']()),logger[_0x58d2e1(0x91)](_0x58d2e1(0x93),_0x58d2e1(0xa0));const _0x14d72e=installBuiltinSkill({'stdio':_0x49c51f[_0x58d2e1(0xa1)]?_0x58d2e1(0x96):_0x58d2e1(0x94)});if(!_0x14d72e['ok'])throw CliErrors['apiError']('Built-in\x20Skill\x20install\x20failed\x20['+(_0x14d72e[_0x58d2e1(0x92)]||'INSTALL_FAILED')+_0x58d2e1(0x8c)+(_0x14d72e['error']||_0x58d2e1(0x9f)),_0x58d2e1(0x99)+_0x14d72e['repairCommand']);const _0x2cbc58=_0x14d72e[_0x58d2e1(0x90)]?_0x58d2e1(0x9c)+_0x14d72e[_0x58d2e1(0x90)]:'';return console[_0x58d2e1(0x8b)](_0x14d72e[_0x58d2e1(0xa6)]?'CLI\x20Built-in\x20Skill\x20'+_0x14d72e[_0x58d2e1(0x9e)]+_0x58d2e1(0x8d)+_0x2cbc58:_0x58d2e1(0x8e)+_0x14d72e[_0x58d2e1(0x9e)]+_0x58d2e1(0x88)+_0x2cbc58),{'ok':!![]};}}];function a17_0x314d(){const _0x4e2293=['cli-skill-install','inherit','245178rqfBFb','pipe','8rURZoh','1AsiNPy','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','1248643tDxezG','20aFVrBL','\x20at\x20','5124doCAIY','skillVersion','unknown','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20npm\x20package.','nonInteractive','read','7698393clGDqw','1377530cObOBG','Install\x20the\x20built-in\x20CLI\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','changed','2094168NzUQzv','\x20is\x20already\x20current','1126095yrlVoZ','install','log',']:\x20','\x20installed','CLI\x20Built-in\x20Skill\x20','305PYyZql','installedPath','info','code'];a17_0x314d=function(){return _0x4e2293;};return a17_0x314d();}
@@ -1 +1 @@
1
- (function(_0x1e9f49,_0x38a75f){const _0x4575fa=a18_0x2d60,_0x24e121=_0x1e9f49();while(!![]){try{const _0x559200=-parseInt(_0x4575fa(0xe3))/0x1*(parseInt(_0x4575fa(0xd2))/0x2)+-parseInt(_0x4575fa(0xd7))/0x3+-parseInt(_0x4575fa(0xe1))/0x4*(-parseInt(_0x4575fa(0xd6))/0x5)+-parseInt(_0x4575fa(0xe2))/0x6+-parseInt(_0x4575fa(0xe5))/0x7+parseInt(_0x4575fa(0xdc))/0x8+parseInt(_0x4575fa(0xda))/0x9;if(_0x559200===_0x38a75f)break;else _0x24e121['push'](_0x24e121['shift']());}catch(_0x2d8c8f){_0x24e121['push'](_0x24e121['shift']());}}}(a18_0x177b,0xc54df));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';function a18_0x2d60(_0xe48eae,_0x17c867){_0xe48eae=_0xe48eae-0xd1;const _0x177bee=a18_0x177b();let _0x2d60be=_0x177bee[_0xe48eae];return _0x2d60be;}export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,CLI_PROTECTED_CONFIG_KEYS,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isCliProtectedConfigKey,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';function a18_0x177b(){const _0x21af24=['validation',',\x20or\x20create\x20a\x20project-local\x20','58728zLwusO','67212vcWklt','5TSaRPF','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','8956318prOChN','project-or-global-explicit','534116WZSCQF','Add\x20--global\x20to\x20write\x20to\x20~/','newConfigFileName','Use\x20only\x20one\x20config\x20scope\x20flag.','415lYqUNb','3667512cIZjox','inProject','project','17444331XdFHbV','\x20found).','11998112eqstlc','global-default','global'];a18_0x177b=function(){return _0x21af24;};return a18_0x177b();}export function resolveConfigScope(_0x184472){const _0x1743b3=a18_0x2d60,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x5df972}=_0x184472;if(explicitGlobal&&explicitProject)throw CliErrors['validation'](_0x1743b3(0xe4),_0x1743b3(0xd5));if(explicitGlobal)return _0x1743b3(0xde);if(explicitProject)return'project';switch(_0x5df972){case _0x1743b3(0xdd):return _0x1743b3(0xde);case _0x1743b3(0xd1):if(!(_0x184472[_0x1743b3(0xd8)]??isInProject()))throw CliErrors[_0x1743b3(0xdf)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG[_0x1743b3(0xd4)]+_0x1743b3(0xdb),_0x1743b3(0xd3)+PRODUCT_CONFIG['newConfigFileName']+_0x1743b3(0xe0)+PRODUCT_CONFIG[_0x1743b3(0xd4)]+'\x20first.');return _0x1743b3(0xd9);}}export function toScopeFlags(_0x466275){return{'global':_0x466275==='global'};}export function formatScopeLabel(_0x2a6e44){return _0x2a6e44==='global'?'\x20(global)':'';}
1
+ (function(_0x24a80e,_0x5b7aa8){const _0x26e9fe=a18_0x14d1,_0x3f2a1c=_0x24a80e();while(!![]){try{const _0x392418=parseInt(_0x26e9fe(0x109))/0x1+-parseInt(_0x26e9fe(0x10d))/0x2+parseInt(_0x26e9fe(0x105))/0x3+parseInt(_0x26e9fe(0x110))/0x4*(parseInt(_0x26e9fe(0x101))/0x5)+-parseInt(_0x26e9fe(0x10a))/0x6*(parseInt(_0x26e9fe(0x10f))/0x7)+parseInt(_0x26e9fe(0x112))/0x8+-parseInt(_0x26e9fe(0x106))/0x9;if(_0x392418===_0x5b7aa8)break;else _0x3f2a1c['push'](_0x3f2a1c['shift']());}catch(_0x3ea6c1){_0x3f2a1c['push'](_0x3f2a1c['shift']());}}}(a18_0x180b,0x1d7bb));import{PRODUCT_CONFIG}from'../../constant/product.js';function a18_0x14d1(_0x37b524,_0x13646c){_0x37b524=_0x37b524-0x100;const _0x180bc4=a18_0x180b();let _0x14d1a2=_0x180bc4[_0x37b524];return _0x14d1a2;}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 a18_0x180b(){const _0x23af1e=['124235ZHxDVx','project-or-global-explicit',',\x20or\x20create\x20a\x20project-local\x20','newConfigFileName','107454YdbTDh','2106954BisSUk','Use\x20only\x20one\x20config\x20scope\x20flag.','Not\x20inside\x20a\x20project\x20(no\x20','216705nnNDCk','462hymmRf','Add\x20--global\x20to\x20write\x20to\x20~/','validation','351362sbFeid','project','854dFiYHx','36HjOlvJ','inProject','510384AnrtQy','global','\x20first.'];a18_0x180b=function(){return _0x23af1e;};return a18_0x180b();}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(_0x5c1fc4){const _0x59fd8c=a18_0x14d1,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x550367}=_0x5c1fc4;if(explicitGlobal&&explicitProject)throw CliErrors[_0x59fd8c(0x10c)]('Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.',_0x59fd8c(0x107));if(explicitGlobal)return _0x59fd8c(0x113);if(explicitProject)return _0x59fd8c(0x10e);switch(_0x550367){case'global-default':return _0x59fd8c(0x113);case _0x59fd8c(0x102):if(!(_0x5c1fc4[_0x59fd8c(0x111)]??isInProject()))throw CliErrors[_0x59fd8c(0x10c)](_0x59fd8c(0x108)+PRODUCT_CONFIG[_0x59fd8c(0x104)]+'\x20found).',_0x59fd8c(0x10b)+PRODUCT_CONFIG['newConfigFileName']+_0x59fd8c(0x103)+PRODUCT_CONFIG[_0x59fd8c(0x104)]+_0x59fd8c(0x100));return _0x59fd8c(0x10e);}}export function toScopeFlags(_0xcbb5c5){const _0xe3f1f5=a18_0x14d1;return{'global':_0xcbb5c5===_0xe3f1f5(0x113)};}export function formatScopeLabel(_0x1a3c5a){const _0x47a440=a18_0x14d1;return _0x1a3c5a===_0x47a440(0x113)?'\x20(global)':'';}
@@ -1 +1 @@
1
- (function(_0x3cf5b3,_0x55717f){const _0x4057d8=a19_0x1ccc,_0xb18b4a=_0x3cf5b3();while(!![]){try{const _0x3e8738=-parseInt(_0x4057d8(0x1a0))/0x1+-parseInt(_0x4057d8(0x1a9))/0x2+-parseInt(_0x4057d8(0x19e))/0x3*(parseInt(_0x4057d8(0x1a4))/0x4)+-parseInt(_0x4057d8(0x1b3))/0x5+parseInt(_0x4057d8(0x1a5))/0x6+parseInt(_0x4057d8(0x1b6))/0x7+parseInt(_0x4057d8(0x1b2))/0x8;if(_0x3e8738===_0x55717f)break;else _0xb18b4a['push'](_0xb18b4a['shift']());}catch(_0x19890d){_0xb18b4a['push'](_0xb18b4a['shift']());}}}(a19_0x1deb,0x86918));function a19_0x1ccc(_0x46b259,_0x493369){_0x46b259=_0x46b259-0x19d;const _0x1debdc=a19_0x1deb();let _0x1ccc85=_0x1debdc[_0x46b259];return _0x1ccc85;}import{CliErrors}from'../../errors.js';function a19_0x1deb(){const _0x33862b=['flag','join','map','test','13358728FXNlWw','1455125LFZkDP','Provide\x20one\x20of:\x20','filter','5975116xfNaPa','some','At\x20least\x20one\x20of\x20','12VAbtSj','length','393272ArZnWm','Invalid\x20--','Flags\x20','str','695052rPQIWp','2967774cYoGLc','\x20are\x20mutually\x20exclusive\x20for\x20`','\x20is\x20allowed,\x20found:\x20','Remove\x20all\x20but\x20one.','2175034MfEONu','Only\x20one\x20of\x20','Use\x20only\x20one\x20of:\x20','\x20is\x20required\x20for\x20`','validation'];a19_0x1deb=function(){return _0x33862b;};return a19_0x1deb();}function isSet(_0x4627db,_0x1f35e6){const _0x4142db=a19_0x1ccc,_0x5c1588=_0x4627db[_0x4142db(0x1ae)](_0x1f35e6);return _0x5c1588!==undefined&&_0x5c1588!==''&&_0x5c1588!==![]&&_0x5c1588!==0x0;}function fmtNames(_0x2ee4f9){const _0xb4bfe6=a19_0x1ccc;return _0x2ee4f9[_0xb4bfe6(0x1b0)](_0x531537=>'--'+_0x531537)[_0xb4bfe6(0x1af)](',\x20');}export function requireOneOf(_0x1da791,_0x3e9937,_0x357dda){const _0x49fb17=a19_0x1ccc,_0x31503e=_0x3e9937[_0x49fb17(0x1b5)](_0x35ea6e=>isSet(_0x1da791,_0x35ea6e));if(_0x31503e[_0x49fb17(0x19f)]!==0x1)throw CliErrors[_0x49fb17(0x1ad)](_0x31503e[_0x49fb17(0x19f)]===0x0?'Exactly\x20one\x20of\x20'+fmtNames(_0x3e9937)+_0x49fb17(0x1ac)+_0x357dda+'`.':_0x49fb17(0x1aa)+fmtNames(_0x3e9937)+_0x49fb17(0x1a7)+fmtNames(_0x31503e)+'.',_0x31503e[_0x49fb17(0x19f)]===0x0?_0x49fb17(0x1b4)+fmtNames(_0x3e9937):_0x49fb17(0x1a8));}export function requireAnyOf(_0x23fc0f,_0x4494a4,_0x16dea8){const _0x288c2f=a19_0x1ccc;if(!_0x4494a4[_0x288c2f(0x1b7)](_0x2f79bf=>isSet(_0x23fc0f,_0x2f79bf)))throw CliErrors['validation'](_0x288c2f(0x19d)+fmtNames(_0x4494a4)+_0x288c2f(0x1ac)+_0x16dea8+'`.','Provide\x20one\x20of:\x20'+fmtNames(_0x4494a4));}export function mutuallyExclusive(_0xee82d8,_0x223e3b,_0x5ea8b8){const _0x160368=a19_0x1ccc,_0x1084b0=_0x223e3b[_0x160368(0x1b5)](_0x1f0b84=>isSet(_0xee82d8,_0x1f0b84));if(_0x1084b0[_0x160368(0x19f)]>0x1)throw CliErrors['validation'](_0x160368(0x1a2)+fmtNames(_0x1084b0)+_0x160368(0x1a6)+_0x5ea8b8+'`.',_0x160368(0x1ab)+fmtNames(_0x223e3b));}export function validatePattern(_0x213e37,_0x245f44,_0x3a14a6,_0x2c3b2b){const _0x5a8bff=a19_0x1ccc,_0x579749=_0x213e37[_0x5a8bff(0x1a3)](_0x245f44);if(_0x579749&&!_0x3a14a6[_0x5a8bff(0x1b1)](_0x579749))throw CliErrors[_0x5a8bff(0x1ad)](_0x5a8bff(0x1a1)+_0x245f44+':\x20expected\x20'+_0x2c3b2b+',\x20got\x20\x22'+_0x579749+'\x22.');}
1
+ function a19_0x40dc(){const _0x38a028=['\x20is\x20required\x20for\x20`','filter','test','84760PFLiSa','\x20is\x20allowed,\x20found:\x20','1687906oDiMhV','Remove\x20all\x20but\x20one.','18jflbxP','some','\x20are\x20mutually\x20exclusive\x20for\x20`',':\x20expected\x20','126693GPRtxf','130pXJYOp','300558OQAsjL','join','2091126sJAGcH','2032164HDeUBa',',\x20got\x20\x22','Exactly\x20one\x20of\x20','5EeCieo','890918vtNAUu','Flags\x20','At\x20least\x20one\x20of\x20','flag','Only\x20one\x20of\x20','length','validation','map','450bJQfVn','Provide\x20one\x20of:\x20'];a19_0x40dc=function(){return _0x38a028;};return a19_0x40dc();}(function(_0x2f7322,_0x15307e){const _0x5de4ce=a19_0x28e3,_0x51d619=_0x2f7322();while(!![]){try{const _0x487eed=-parseInt(_0x5de4ce(0x154))/0x1+-parseInt(_0x5de4ce(0x156))/0x2*(parseInt(_0x5de4ce(0x150))/0x3)+parseInt(_0x5de4ce(0x159))/0x4+parseInt(_0x5de4ce(0x15c))/0x5*(-parseInt(_0x5de4ce(0x158))/0x6)+-parseInt(_0x5de4ce(0x15d))/0x7+-parseInt(_0x5de4ce(0x16a))/0x8*(parseInt(_0x5de4ce(0x165))/0x9)+-parseInt(_0x5de4ce(0x155))/0xa*(-parseInt(_0x5de4ce(0x14e))/0xb);if(_0x487eed===_0x15307e)break;else _0x51d619['push'](_0x51d619['shift']());}catch(_0x51f453){_0x51d619['push'](_0x51d619['shift']());}}}(a19_0x40dc,0x727bf));import{CliErrors}from'../../errors.js';function isSet(_0x52625c,_0x4bfce7){const _0x5673cd=a19_0x28e3,_0x2247f0=_0x52625c[_0x5673cd(0x160)](_0x4bfce7);return _0x2247f0!==undefined&&_0x2247f0!==''&&_0x2247f0!==![]&&_0x2247f0!==0x0;}function fmtNames(_0x48c256){const _0x171056=a19_0x28e3;return _0x48c256[_0x171056(0x164)](_0x3f862b=>'--'+_0x3f862b)[_0x171056(0x157)](',\x20');}export function requireOneOf(_0xecd979,_0xb81cd8,_0x302b7f){const _0x2c077d=a19_0x28e3,_0xb63985=_0xb81cd8['filter'](_0x1c6411=>isSet(_0xecd979,_0x1c6411));if(_0xb63985[_0x2c077d(0x162)]!==0x1)throw CliErrors[_0x2c077d(0x163)](_0xb63985['length']===0x0?_0x2c077d(0x15b)+fmtNames(_0xb81cd8)+'\x20is\x20required\x20for\x20`'+_0x302b7f+'`.':_0x2c077d(0x161)+fmtNames(_0xb81cd8)+_0x2c077d(0x16b)+fmtNames(_0xb63985)+'.',_0xb63985[_0x2c077d(0x162)]===0x0?_0x2c077d(0x166)+fmtNames(_0xb81cd8):_0x2c077d(0x14f));}export function requireAnyOf(_0x5d16b5,_0x45725b,_0x286cc2){const _0x4dbc2e=a19_0x28e3;if(!_0x45725b[_0x4dbc2e(0x151)](_0x3dc065=>isSet(_0x5d16b5,_0x3dc065)))throw CliErrors[_0x4dbc2e(0x163)](_0x4dbc2e(0x15f)+fmtNames(_0x45725b)+_0x4dbc2e(0x167)+_0x286cc2+'`.','Provide\x20one\x20of:\x20'+fmtNames(_0x45725b));}function a19_0x28e3(_0x287f10,_0x45f344){_0x287f10=_0x287f10-0x14e;const _0x40dce3=a19_0x40dc();let _0x28e30a=_0x40dce3[_0x287f10];return _0x28e30a;}export function mutuallyExclusive(_0x56180b,_0x506cf2,_0x5dd56d){const _0x5e48b2=a19_0x28e3,_0xaf1968=_0x506cf2[_0x5e48b2(0x168)](_0x7377bd=>isSet(_0x56180b,_0x7377bd));if(_0xaf1968['length']>0x1)throw CliErrors['validation'](_0x5e48b2(0x15e)+fmtNames(_0xaf1968)+_0x5e48b2(0x152)+_0x5dd56d+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x506cf2));}export function validatePattern(_0x389c4c,_0x556664,_0x186c22,_0x398ded){const _0x351624=a19_0x28e3,_0x22b74d=_0x389c4c['str'](_0x556664);if(_0x22b74d&&!_0x186c22[_0x351624(0x169)](_0x22b74d))throw CliErrors['validation']('Invalid\x20--'+_0x556664+_0x351624(0x153)+_0x398ded+_0x351624(0x15a)+_0x22b74d+'\x22.');}
@@ -1 +1 @@
1
- function a20_0x4356(_0x2a4141,_0x426971){_0x2a4141=_0x2a4141-0x6f;const _0x12455b=a20_0x1245();let _0x43566e=_0x12455b[_0x2a4141];return _0x43566e;}const a20_0xfa15f2=a20_0x4356;(function(_0x51b870,_0x289ece){const _0x3e0bec=a20_0x4356,_0x24955d=_0x51b870();while(!![]){try{const _0x5924c6=-parseInt(_0x3e0bec(0x85))/0x1+parseInt(_0x3e0bec(0x72))/0x2*(parseInt(_0x3e0bec(0x71))/0x3)+-parseInt(_0x3e0bec(0x7e))/0x4+parseInt(_0x3e0bec(0x87))/0x5*(-parseInt(_0x3e0bec(0x73))/0x6)+parseInt(_0x3e0bec(0x82))/0x7*(parseInt(_0x3e0bec(0x70))/0x8)+-parseInt(_0x3e0bec(0x80))/0x9+-parseInt(_0x3e0bec(0x84))/0xa*(-parseInt(_0x3e0bec(0x7f))/0xb);if(_0x5924c6===_0x289ece)break;else _0x24955d['push'](_0x24955d['shift']());}catch(_0x5f1fe5){_0x24955d['push'](_0x24955d['shift']());}}}(a20_0x1245,0x5267e));export const GLOBAL_SCOPE_FLAG={'name':a20_0xfa15f2(0x6f),'type':a20_0xfa15f2(0x7a),'default':![],'description':a20_0xfa15f2(0x7b)};export const CODE_FLAG={'name':a20_0xfa15f2(0x77),'type':a20_0xfa15f2(0x86),'required':!![],'description':a20_0xfa15f2(0x75),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)'}};export const SQLCODE_FLAG={'name':a20_0xfa15f2(0x7d),'type':a20_0xfa15f2(0x86),'required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0xfa15f2(0x79)}};export const VERBOSE_FLAG={'name':a20_0xfa15f2(0x76),'type':a20_0xfa15f2(0x7a),'description':a20_0xfa15f2(0x7c)};function a20_0x1245(){const _0x4ef583=['string','3310CGVrwP','global','72vfGgXo','3chIQVH','490816VUoZhB','5916xTCLSS','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','Dataset\x20code\x20(32-char\x20hex\x20UUID)','verbose','code','name','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','boolean','Write\x20to\x20the\x20global\x20configuration','Return\x20full\x20raw\x20response\x20object','sqlcode','588848xifBOL','44qUnBFc','3904992zvRSAB','params','306796pspXWB','number','3682630qVAOfR','541546NqAwRH'];a20_0x1245=function(){return _0x4ef583;};return a20_0x1245();}export const PARAMS_FLAG={'name':a20_0xfa15f2(0x81),'type':a20_0xfa15f2(0x86),'description':a20_0xfa15f2(0x74)};export const NAME_FLAG={'name':a20_0xfa15f2(0x78),'type':a20_0xfa15f2(0x86),'description':'Resource\x20name\x20for\x20lookup'};export const ID_FLAG={'name':'id','type':a20_0xfa15f2(0x83),'required':!![],'description':'Resource\x20ID'};
1
+ const a20_0x1c3d21=a20_0x54b3;(function(_0x396a01,_0x2f7259){const _0x8b954f=a20_0x54b3,_0x21a618=_0x396a01();while(!![]){try{const _0x4dd53c=-parseInt(_0x8b954f(0x19c))/0x1*(parseInt(_0x8b954f(0x1a0))/0x2)+-parseInt(_0x8b954f(0x19e))/0x3+-parseInt(_0x8b954f(0x1a5))/0x4*(-parseInt(_0x8b954f(0x194))/0x5)+-parseInt(_0x8b954f(0x1a4))/0x6*(parseInt(_0x8b954f(0x190))/0x7)+parseInt(_0x8b954f(0x19d))/0x8*(parseInt(_0x8b954f(0x18d))/0x9)+parseInt(_0x8b954f(0x195))/0xa+-parseInt(_0x8b954f(0x198))/0xb*(-parseInt(_0x8b954f(0x193))/0xc);if(_0x4dd53c===_0x2f7259)break;else _0x21a618['push'](_0x21a618['shift']());}catch(_0x432e8e){_0x21a618['push'](_0x21a618['shift']());}}}(a20_0x5663,0x1a13a));export const GLOBAL_SCOPE_FLAG={'name':a20_0x1c3d21(0x1a2),'type':a20_0x1c3d21(0x1a3),'default':![],'description':a20_0x1c3d21(0x192)};export const CODE_FLAG={'name':a20_0x1c3d21(0x18b),'type':'string','required':!![],'description':a20_0x1c3d21(0x18c),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)'}};export const SQLCODE_FLAG={'name':a20_0x1c3d21(0x1a6),'type':a20_0x1c3d21(0x18f),'required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x1c3d21(0x1a1)}};export const VERBOSE_FLAG={'name':a20_0x1c3d21(0x18e),'type':a20_0x1c3d21(0x1a3),'description':a20_0x1c3d21(0x19f)};function a20_0x5663(){const _0x59743a=['Return\x20full\x20raw\x20response\x20object','5414BHNfGN','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','global','boolean','29538tQKuff','452AhluvP','sqlcode','code','Dataset\x20code\x20(32-char\x20hex\x20UUID)','529794mtItaD','verbose','string','301TTOOge','name','Write\x20to\x20the\x20global\x20configuration','36VoxfSa','5515QalClo','95420aZaEeW','Resource\x20name\x20for\x20lookup','number','811701nSDPmk','params','Resource\x20ID','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','29VVUPxf','8oIcKTh','52254ChvFde'];a20_0x5663=function(){return _0x59743a;};return a20_0x5663();}export const PARAMS_FLAG={'name':a20_0x1c3d21(0x199),'type':a20_0x1c3d21(0x18f),'description':a20_0x1c3d21(0x19b)};export const NAME_FLAG={'name':a20_0x1c3d21(0x191),'type':a20_0x1c3d21(0x18f),'description':a20_0x1c3d21(0x196)};function a20_0x54b3(_0x3fe843,_0x18fe04){_0x3fe843=_0x3fe843-0x18b;const _0x566374=a20_0x5663();let _0x54b36d=_0x566374[_0x3fe843];return _0x54b36d;}export const ID_FLAG={'name':'id','type':a20_0x1c3d21(0x197),'required':!![],'description':a20_0x1c3d21(0x19a)};
@@ -1 +1 @@
1
- (function(_0x5734db,_0x2b5029){const _0xd7ee9a=a21_0x47ff,_0x331b65=_0x5734db();while(!![]){try{const _0x5dd5fa=-parseInt(_0xd7ee9a(0xa0))/0x1+-parseInt(_0xd7ee9a(0xaf))/0x2+-parseInt(_0xd7ee9a(0xa8))/0x3+parseInt(_0xd7ee9a(0xa2))/0x4*(-parseInt(_0xd7ee9a(0xae))/0x5)+-parseInt(_0xd7ee9a(0xab))/0x6+parseInt(_0xd7ee9a(0xa1))/0x7+-parseInt(_0xd7ee9a(0xa5))/0x8*(-parseInt(_0xd7ee9a(0xb2))/0x9);if(_0x5dd5fa===_0x2b5029)break;else _0x331b65['push'](_0x331b65['shift']());}catch(_0x690d89){_0x331b65['push'](_0x331b65['shift']());}}}(a21_0x76ad,0xd1de0));import{existsSync,statSync}from'node:fs';function a21_0x47ff(_0x3a4957,_0x26ccf7){_0x3a4957=_0x3a4957-0xa0;const _0x76adac=a21_0x76ad();let _0x47ffc7=_0x76adac[_0x3a4957];return _0x47ffc7;}function a21_0x76ad(){const _0x73e17f=['File\x20not\x20found:\x20','size','4445439RuIvZv','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','isFile','70938oJwHPv','ceil','\x20MB','5rXbLjq','48908dhFLhL','validation','\x20path\x20is\x20required.','40437TbPqCw','914878MlCysa','6561184CORuAV','3788332GFNUyT','File\x20is\x20not\x20a\x20regular\x20file:\x20','trim','5880ECFtjF'];a21_0x76ad=function(){return _0x73e17f;};return a21_0x76ad();}import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x1f09c1){const _0x4ede78=a21_0x47ff;if(_0x1f09c1>=BYTES_PER_MB){const _0x51e036=Math[_0x4ede78(0xac)](_0x1f09c1/BYTES_PER_MB*0x64)/0x64;return _0x51e036['toFixed'](0x2)+_0x4ede78(0xad);}return _0x1f09c1+'\x20B';}export function requireRuntimeUploadFile(_0x1106f7,_0x228810){const _0x1cbaf2=a21_0x47ff,_0x3efb5b=_0x1106f7[_0x1cbaf2(0xa4)]();if(!_0x3efb5b)throw CliErrors['validation'](_0x228810+_0x1cbaf2(0xb1));if(!existsSync(_0x3efb5b))throw CliErrors[_0x1cbaf2(0xb0)](_0x1cbaf2(0xa6)+_0x3efb5b);const _0x3184f6=statSync(_0x3efb5b);if(!_0x3184f6[_0x1cbaf2(0xaa)]())throw CliErrors[_0x1cbaf2(0xb0)](_0x1cbaf2(0xa3)+_0x3efb5b);if(_0x3184f6[_0x1cbaf2(0xa7)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors['validation'](_0x1cbaf2(0xa9)+_0x3efb5b+'\x20('+formatBytes(_0x3184f6[_0x1cbaf2(0xa7)])+')');return{'path':_0x3efb5b,'size':_0x3184f6[_0x1cbaf2(0xa7)]};}
1
+ (function(_0x3fadd5,_0x335c08){const _0x474368=a21_0x5d13,_0x41b271=_0x3fadd5();while(!![]){try{const _0xcddfb0=parseInt(_0x474368(0x8a))/0x1+-parseInt(_0x474368(0x98))/0x2*(-parseInt(_0x474368(0x96))/0x3)+parseInt(_0x474368(0x90))/0x4*(-parseInt(_0x474368(0x8c))/0x5)+-parseInt(_0x474368(0x95))/0x6+-parseInt(_0x474368(0x94))/0x7*(parseInt(_0x474368(0x88))/0x8)+-parseInt(_0x474368(0x8e))/0x9+-parseInt(_0x474368(0x91))/0xa*(-parseInt(_0x474368(0x8b))/0xb);if(_0xcddfb0===_0x335c08)break;else _0x41b271['push'](_0x41b271['shift']());}catch(_0x1e46a1){_0x41b271['push'](_0x41b271['shift']());}}}(a21_0x31a3,0x3e5ca));function a21_0x5d13(_0x26f286,_0x83d6fc){_0x26f286=_0x26f286-0x86;const _0x31a3a2=a21_0x31a3();let _0x5d13d4=_0x31a3a2[_0x26f286];return _0x5d13d4;}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 a21_0x31a3(){const _0x358f40=['validation','18LvQBby','ceil','\x20path\x20is\x20required.','File\x20not\x20found:\x20','1724104hRNgSu','toFixed','363023OEDXrZ','319YUEjYi','5KqdPzh','isFile','4038075UYgzhU','size','411932VUVIaA','286150hvupFX','trim','File\x20is\x20not\x20a\x20regular\x20file:\x20','14AkVOAM','1115808ofxquZ','77076ZogOzi'];a21_0x31a3=function(){return _0x358f40;};return a21_0x31a3();}function formatBytes(_0x5849ba){const _0x28e72f=a21_0x5d13;if(_0x5849ba>=BYTES_PER_MB){const _0x23c115=Math[_0x28e72f(0x99)](_0x5849ba/BYTES_PER_MB*0x64)/0x64;return _0x23c115[_0x28e72f(0x89)](0x2)+'\x20MB';}return _0x5849ba+'\x20B';}export function requireRuntimeUploadFile(_0x241f0f,_0x23cc4e){const _0x12900a=a21_0x5d13,_0x2a3386=_0x241f0f[_0x12900a(0x92)]();if(!_0x2a3386)throw CliErrors[_0x12900a(0x97)](_0x23cc4e+_0x12900a(0x86));if(!existsSync(_0x2a3386))throw CliErrors[_0x12900a(0x97)](_0x12900a(0x87)+_0x2a3386);const _0x5d2b26=statSync(_0x2a3386);if(!_0x5d2b26[_0x12900a(0x8d)]())throw CliErrors[_0x12900a(0x97)](_0x12900a(0x93)+_0x2a3386);if(_0x5d2b26['size']>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x12900a(0x97)]('File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20'+_0x2a3386+'\x20('+formatBytes(_0x5d2b26[_0x12900a(0x8f)])+')');return{'path':_0x2a3386,'size':_0x5d2b26[_0x12900a(0x8f)]};}
@@ -1 +1 @@
1
- const a22_0x55d1b1=a22_0x5bd8;(function(_0xfc86,_0x417315){const _0x35181c=a22_0x5bd8,_0x110a30=_0xfc86();while(!![]){try{const _0x22a77f=-parseInt(_0x35181c(0x14b))/0x1+-parseInt(_0x35181c(0x161))/0x2*(parseInt(_0x35181c(0x157))/0x3)+-parseInt(_0x35181c(0x14e))/0x4*(-parseInt(_0x35181c(0x146))/0x5)+-parseInt(_0x35181c(0x171))/0x6+-parseInt(_0x35181c(0x143))/0x7*(-parseInt(_0x35181c(0x13a))/0x8)+-parseInt(_0x35181c(0x16d))/0x9+-parseInt(_0x35181c(0x13e))/0xa*(-parseInt(_0x35181c(0x162))/0xb);if(_0x22a77f===_0x417315)break;else _0x110a30['push'](_0x110a30['shift']());}catch(_0x3cdb0e){_0x110a30['push'](_0x110a30['shift']());}}}(a22_0x39c9,0x58640));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isCliProtectedConfigKey,isTopLevelConfigKey,normalizeLocale,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';function a22_0x5bd8(_0x428bd6,_0x3dc0bb){_0x428bd6=_0x428bd6-0x132;const _0x39c947=a22_0x39c9();let _0x5bd892=_0x39c947[_0x428bd6];return _0x5bd892;}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(_0x2d6956){const _0x29f92b=a22_0x5bd8,_0xffc524=_0x2d6956[_0x29f92b(0x135)]('.');if(_0xffc524[_0x29f92b(0x13c)]!==0x3||_0xffc524[0x0]!=='apps'||_0xffc524[0x2]!=='appcode')return undefined;const _0x9ff13f=_0xffc524[0x1]?.[_0x29f92b(0x152)]();return _0x9ff13f?_0x9ff13f:undefined;}function parseAliasDeleteKey(_0x24ecd1){const _0xebe378=a22_0x5bd8,_0x4f4301=_0x24ecd1[_0xebe378(0x135)]('.');if(_0x4f4301[_0xebe378(0x13c)]===0x2&&_0x4f4301[0x0]==='apps'){const _0xb68e31=_0x4f4301[0x1]?.[_0xebe378(0x152)]();return _0xb68e31?{'alias':_0xb68e31}:undefined;}if(_0x4f4301[_0xebe378(0x13c)]===0x3&&_0x4f4301[0x0]===_0xebe378(0x149)&&_0x4f4301[0x2]===_0xebe378(0x165)){const _0x471bba=_0x4f4301[0x1]?.[_0xebe378(0x152)]();return _0x471bba?{'alias':_0x471bba,'field':_0xebe378(0x165)}:undefined;}return undefined;}function setLocalAppAlias(_0x15f232,_0x6cc884,_0x3925b5){const _0x3a38e9=a22_0x5bd8,_0x411dbc=_0x15f232[_0x3a38e9(0x149)]&&typeof _0x15f232[_0x3a38e9(0x149)]===_0x3a38e9(0x138)&&!Array[_0x3a38e9(0x15b)](_0x15f232['apps'])?_0x15f232[_0x3a38e9(0x149)]:{},_0x3aa13a=_0x411dbc[_0x6cc884]&&typeof _0x411dbc[_0x6cc884]===_0x3a38e9(0x138)&&!Array[_0x3a38e9(0x15b)](_0x411dbc[_0x6cc884])?_0x411dbc[_0x6cc884]:{};_0x3aa13a[_0x3a38e9(0x165)]=_0x3925b5,_0x411dbc[_0x6cc884]=_0x3aa13a,_0x15f232[_0x3a38e9(0x149)]=_0x411dbc;}function a22_0x39c9(){const _0x673033=['isArray','pageSize','Usage:\x20','\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.','delete','alias','950738NMrzwv','500676jjBaca','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','bool','appcode','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','write','locale','validation','\x20\x20global:\x20\x20','config','(none)','2486295Rollva','args','\x22\x20is\x20not\x20settable.','\x20config\x20delete\x20<key>\x20[--global]','2785254TbsQJf','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','Key\x20already\x20absent:\x20','Deletes\x20a\x20Lovrabet\x20CLI\x20config\x20key.\x20Later\x20commands\x20will\x20fall\x20back\x20to\x20another\x20config\x20layer\x20or\x20the\x20default.','split','\x20(global)','pageSize\x20must\x20be\x20a\x20positive\x20number','object','stringify','8THxXwK','\x22.\x20Allowed:\x20','length','List\x20current\x20config','300mPnYBb','Deleted\x20`','Key\x20not\x20found:\x20','Invalid\x20locale\x20value.',';\x20apps.<alias>.appcode','1712123xlBcqV','Invalid\x20value\x20for\x20\x22','global','10zXqTWi','includes','join','apps','`\x20=\x20\x22','87854znREks','log','get','111332RrjQDg','Config\x20files:\x0a','Missing\x20key\x20argument.','\x20\x20project:\x20','trim','Delete\x20a\x20configuration\x20value','Changes\x20Lovrabet\x20CLI\x20configuration.\x20Later\x20commands\x20may\x20use\x20a\x20different\x20app,\x20environment,\x20or\x20output\x20behavior.','field','keys','3YoOjoP','key','Value\x20to\x20assign','Top-level\x20key\x20\x22'];a22_0x39c9=function(){return _0x673033;};return a22_0x39c9();}function deleteLocalAppAlias(_0x4ff717,_0x5114c8){const _0x264dad=a22_0x5bd8;if(!_0x4ff717[_0x264dad(0x149)]||typeof _0x4ff717['apps']!==_0x264dad(0x138)||Array[_0x264dad(0x15b)](_0x4ff717['apps']))return![];const _0x12dee5=_0x4ff717[_0x264dad(0x149)],_0x1c2eda=_0x12dee5[_0x5114c8[_0x264dad(0x160)]];if(!_0x1c2eda||typeof _0x1c2eda!==_0x264dad(0x138)||Array[_0x264dad(0x15b)](_0x1c2eda))return![];if(!_0x5114c8['field'])return delete _0x12dee5[_0x5114c8[_0x264dad(0x160)]],!![];if(!(_0x5114c8[_0x264dad(0x155)]in _0x1c2eda))return![];return delete _0x1c2eda[_0x5114c8['field']],Object[_0x264dad(0x156)](_0x1c2eda)[_0x264dad(0x13c)]===0x0&&delete _0x12dee5[_0x5114c8['alias']],!![];}const listDef={'service':'config','command':'list','description':a22_0x55d1b1(0x13d),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x2db60e){const _0x3cfab4=a22_0x55d1b1,{buildConfigFromFlags:_0x4afbc0}=await import('../../context.js'),_0x558feb=_0x4afbc0({}),_0x2add09=redactCliConfigCredentials(_0x558feb['raw']),_0x1d3d30=getProjectConfigPath(),_0x36bc33=resolveWriteConfigPath(_0x3cfab4(0x145));if(_0x2db60e['format']==='pretty')return{'ok':!![],'message':_0x3cfab4(0x132)+(JSON[_0x3cfab4(0x139)](_0x2add09,null,0x2)+'\x0a\x0a')+_0x3cfab4(0x14f)+(_0x3cfab4(0x151)+(_0x1d3d30??_0x3cfab4(0x16c))+'\x0a')+(_0x3cfab4(0x16a)+_0x36bc33)};return{'ok':!![],'data':{'effective':_0x2add09,'configFiles':{'project':_0x1d3d30??null,'global':_0x36bc33}}};}},getDef={'service':'config','command':a22_0x55d1b1(0x14d),'description':'Get\x20a\x20config\x20value','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x55d1b1(0x158),'description':a22_0x55d1b1(0x166),'required':!![]}],'flags':[],async 'execute'(_0x36ec92){const _0x4cdb71=a22_0x55d1b1,_0x38a67f=_0x36ec92[_0x4cdb71(0x16e)][0x0];if(!_0x38a67f)throw CliErrors[_0x4cdb71(0x169)](_0x4cdb71(0x150),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20get\x20<key>');const {buildConfigFromFlags:_0xe924f6}=await import('../../context.js'),{raw:_0x12578c}=_0xe924f6({});if(_0x38a67f[_0x4cdb71(0x147)]('.')){const _0x20d3f2=_0x38a67f['split']('.');let _0xd21873=_0x12578c;for(const _0x22db69 of _0x20d3f2){if(_0xd21873==null||typeof _0xd21873!==_0x4cdb71(0x138))throw CliErrors[_0x4cdb71(0x169)](_0x4cdb71(0x140)+_0x38a67f);_0xd21873=_0xd21873[_0x22db69];}if(_0xd21873===undefined)throw CliErrors['validation'](_0x4cdb71(0x140)+_0x38a67f);const _0x32c1e6=redactCliConfigValue(_0x38a67f,_0xd21873);return console[_0x4cdb71(0x14c)](typeof _0x32c1e6===_0x4cdb71(0x138)?JSON[_0x4cdb71(0x139)](_0x32c1e6,null,0x2):String(_0x32c1e6)),{'ok':!![]};}const _0x11792c=_0x12578c[_0x38a67f];if(_0x11792c===undefined)throw CliErrors[_0x4cdb71(0x169)](_0x4cdb71(0x140)+_0x38a67f);const _0x272622=redactCliConfigValue(_0x38a67f,_0x11792c);return console['log'](typeof _0x272622===_0x4cdb71(0x138)?JSON[_0x4cdb71(0x139)](_0x272622,null,0x2):String(_0x272622)),{'ok':!![]};}},setDef={'service':a22_0x55d1b1(0x16b),'command':'set','description':'Set\x20a\x20configuration\x20value','risk':a22_0x55d1b1(0x167),'confirmationDescription':a22_0x55d1b1(0x154),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':a22_0x55d1b1(0x159),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x136817){const _0x43c0df=a22_0x55d1b1,_0x8b9195=_0x136817[_0x43c0df(0x16e)][0x0],_0x1ee219=_0x136817[_0x43c0df(0x16e)][0x1];if(!_0x8b9195||_0x1ee219===undefined)throw CliErrors[_0x43c0df(0x169)]('Missing\x20key\x20or\x20value.',_0x43c0df(0x15d)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x8b9195]&&!ENUM_KEYS[_0x8b9195][_0x43c0df(0x147)](_0x1ee219))throw CliErrors['validation'](_0x43c0df(0x144)+_0x8b9195+_0x43c0df(0x13b)+ENUM_KEYS[_0x8b9195][_0x43c0df(0x148)](',\x20'));if(isCliProtectedConfigKey(_0x8b9195))throw CliErrors[_0x43c0df(0x169)]('\x22'+_0x8b9195+'\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.');if(_0x8b9195===_0x43c0df(0x15c)){const _0x171df9=Number(_0x1ee219);if(isNaN(_0x171df9)||_0x171df9<=0x0)throw CliErrors[_0x43c0df(0x169)](_0x43c0df(0x137));}const _0x264c98=resolveWriteScope({'explicitGlobal':_0x136817[_0x43c0df(0x164)](_0x43c0df(0x145)),'policy':'project-or-global-explicit'}),_0x380306=toScopeFlags(_0x264c98),_0x153e19=readScopedConfig(_0x380306),_0x218c06=parseAliasAppcodeSetKey(_0x8b9195);if(!_0x218c06&&!isTopLevelConfigKey(_0x8b9195))throw CliErrors[_0x43c0df(0x169)](_0x43c0df(0x15a)+_0x8b9195+_0x43c0df(0x16f),'Settable\x20keys:\x20'+getTopLevelConfigKeySummary()+_0x43c0df(0x142));if(_0x218c06)setLocalAppAlias(_0x153e19,_0x218c06,_0x1ee219);else{if(_0x8b9195==='locale'){const _0x5f0809=normalizeLocale(_0x1ee219);if(!_0x5f0809)throw CliErrors[_0x43c0df(0x169)](_0x43c0df(0x141),_0x43c0df(0x163));_0x153e19[_0x43c0df(0x168)]=_0x5f0809;}else _0x153e19[_0x8b9195]=_0x8b9195===_0x43c0df(0x15c)?Number(_0x1ee219):DOMAIN_CONFIG_FIELDS['includes'](_0x8b9195)?normalizeDomainOrigin(_0x8b9195,_0x1ee219):_0x1ee219;}const _0x4a33ce=_0x8b9195==='accessKey'?maskCliAccessKey(_0x1ee219):!_0x218c06&&_0x8b9195===_0x43c0df(0x168)?String(_0x153e19['locale']):_0x1ee219;return console[_0x43c0df(0x14c)]('Set\x20`'+_0x8b9195+_0x43c0df(0x14a)+_0x4a33ce+'\x22'+(_0x264c98==='global'?_0x43c0df(0x136):'')),writeScopedConfig(_0x153e19,_0x380306),{'ok':!![]};}},deleteDef={'service':a22_0x55d1b1(0x16b),'command':a22_0x55d1b1(0x15f),'description':a22_0x55d1b1(0x153),'risk':a22_0x55d1b1(0x167),'confirmationDescription':a22_0x55d1b1(0x134),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x55d1b1(0x158),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x42873d){const _0xe6964a=a22_0x55d1b1,_0x16f72a=_0x42873d['args'][0x0];if(!_0x16f72a)throw CliErrors[_0xe6964a(0x169)]('Missing\x20key\x20argument.','Usage:\x20'+CLI_BIN_NAME+_0xe6964a(0x170));if(isCliProtectedConfigKey(_0x16f72a))throw CliErrors['validation']('\x22'+_0x16f72a+_0xe6964a(0x15e));const _0x1be8cf=resolveWriteScope({'explicitGlobal':_0x42873d[_0xe6964a(0x164)](_0xe6964a(0x145)),'policy':'project-or-global-explicit'}),_0x3e9730=toScopeFlags(_0x1be8cf),_0x1b398d=readScopedConfig(_0x3e9730),_0x4732e2=parseAliasDeleteKey(_0x16f72a);if(_0x4732e2){if(!deleteLocalAppAlias(_0x1b398d,_0x4732e2))return console[_0xe6964a(0x14c)](_0xe6964a(0x133)+_0x16f72a+(_0x1be8cf===_0xe6964a(0x145)?_0xe6964a(0x136):'')),{'ok':!![],'data':{'key':_0x16f72a,'scope':_0x1be8cf,'changed':![]}};return console[_0xe6964a(0x14c)](_0xe6964a(0x13f)+_0x16f72a+'`'+(_0x1be8cf==='global'?_0xe6964a(0x136):'')),writeScopedConfig(_0x1b398d,_0x3e9730),{'ok':!![],'data':{'key':_0x16f72a,'scope':_0x1be8cf,'changed':!![]}};}if(_0x1b398d[_0x16f72a]===undefined)return console['log'](_0xe6964a(0x133)+_0x16f72a+(_0x1be8cf==='global'?_0xe6964a(0x136):'')),{'ok':!![],'data':{'key':_0x16f72a,'scope':_0x1be8cf,'changed':![]}};return delete _0x1b398d[_0x16f72a],console[_0xe6964a(0x14c)](_0xe6964a(0x13f)+_0x16f72a+'`'+(_0x1be8cf==='global'?'\x20(global)':'')),writeScopedConfig(_0x1b398d,_0x3e9730),{'ok':!![],'data':{'key':_0x16f72a,'scope':_0x1be8cf,'changed':!![]}};}};export const configDefinitions=[configInitDefinition,listDef,getDef,setDef,deleteDef];
1
+ const a22_0x4ffe0b=a22_0x3807;function a22_0x230c(){const _0x812101=['pageSize','object','pretty','validation','format','\x20config\x20get\x20<key>','global','split','Usage:\x20','trim','Delete\x20a\x20configuration\x20value','\x20config\x20delete\x20<key>\x20[--global]','`\x20=\x20\x22','Key\x20already\x20absent:\x20','List\x20current\x20config','178wcZKlW','348uoTDau','key','Invalid\x20value\x20for\x20\x22','includes','get','\x22\x20is\x20not\x20settable.','Value\x20to\x20assign','pageSize\x20must\x20be\x20a\x20positive\x20number','10OgUmmD','4946lRXlgK','2047452qFlueu','log','Set\x20`','length','35042OzOsoA','Settable\x20keys:\x20','isArray','Top-level\x20key\x20\x22','Missing\x20key\x20or\x20value.','list','Deleted\x20`','appcode','bool','\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.','\x20(global)','Set\x20a\x20configuration\x20value','raw','Get\x20a\x20config\x20value','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','value','Deletes\x20a\x20Lovrabet\x20CLI\x20config\x20key.\x20Later\x20commands\x20will\x20fall\x20back\x20to\x20another\x20config\x20layer\x20or\x20the\x20default.','256451nTdriH','Key\x20not\x20found:\x20','Missing\x20key\x20argument.','683355WerFxT','field','12205UJTcgr','stringify','156OKjNau','config','Config\x20files:\x0a','args','(none)','locale','read','\x20\x20project:\x20','179397WzDILz','apps','keys','set','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','664VSAdIx','alias','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','16ZWfhDY'];a22_0x230c=function(){return _0x812101;};return a22_0x230c();}(function(_0x22987a,_0x51d184){const _0x3f2a10=a22_0x3807,_0x59787e=_0x22987a();while(!![]){try{const _0x34dca7=parseInt(_0x3f2a10(0x19e))/0x1*(-parseInt(_0x3f2a10(0x194))/0x2)+parseInt(_0x3f2a10(0x170))/0x3+parseInt(_0x3f2a10(0x181))/0x4*(parseInt(_0x3f2a10(0x172))/0x5)+parseInt(_0x3f2a10(0x174))/0x6*(-parseInt(_0x3f2a10(0x15c))/0x7)+parseInt(_0x3f2a10(0x184))/0x8*(-parseInt(_0x3f2a10(0x17c))/0x9)+-parseInt(_0x3f2a10(0x19d))/0xa*(parseInt(_0x3f2a10(0x19f))/0xb)+parseInt(_0x3f2a10(0x195))/0xc*(parseInt(_0x3f2a10(0x16d))/0xd);if(_0x34dca7===_0x51d184)break;else _0x59787e['push'](_0x59787e['shift']());}catch(_0x1b264c){_0x59787e['push'](_0x59787e['shift']());}}}(a22_0x230c,0x63c96));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(_0x4088b4){const _0x137893=a22_0x3807,_0x325fee=_0x4088b4['split']('.');if(_0x325fee[_0x137893(0x1a2)]!==0x3||_0x325fee[0x0]!==_0x137893(0x17d)||_0x325fee[0x2]!==_0x137893(0x163))return undefined;const _0x5423e2=_0x325fee[0x1]?.[_0x137893(0x18e)]();return _0x5423e2?_0x5423e2:undefined;}function parseAliasDeleteKey(_0x478d69){const _0x5f8acc=a22_0x3807,_0x45233d=_0x478d69[_0x5f8acc(0x18c)]('.');if(_0x45233d[_0x5f8acc(0x1a2)]===0x2&&_0x45233d[0x0]==='apps'){const _0x4a6ad3=_0x45233d[0x1]?.[_0x5f8acc(0x18e)]();return _0x4a6ad3?{'alias':_0x4a6ad3}:undefined;}if(_0x45233d[_0x5f8acc(0x1a2)]===0x3&&_0x45233d[0x0]===_0x5f8acc(0x17d)&&_0x45233d[0x2]===_0x5f8acc(0x163)){const _0x2128c0=_0x45233d[0x1]?.[_0x5f8acc(0x18e)]();return _0x2128c0?{'alias':_0x2128c0,'field':_0x5f8acc(0x163)}:undefined;}return undefined;}function setLocalAppAlias(_0x494d08,_0x15553b,_0x3ed189){const _0x665bb=a22_0x3807,_0x52731f=_0x494d08['apps']&&typeof _0x494d08['apps']===_0x665bb(0x186)&&!Array[_0x665bb(0x15e)](_0x494d08[_0x665bb(0x17d)])?_0x494d08[_0x665bb(0x17d)]:{},_0x4af878=_0x52731f[_0x15553b]&&typeof _0x52731f[_0x15553b]===_0x665bb(0x186)&&!Array[_0x665bb(0x15e)](_0x52731f[_0x15553b])?_0x52731f[_0x15553b]:{};_0x4af878[_0x665bb(0x163)]=_0x3ed189,_0x52731f[_0x15553b]=_0x4af878,_0x494d08[_0x665bb(0x17d)]=_0x52731f;}function deleteLocalAppAlias(_0x50a172,_0x354897){const _0x41783a=a22_0x3807;if(!_0x50a172[_0x41783a(0x17d)]||typeof _0x50a172[_0x41783a(0x17d)]!==_0x41783a(0x186)||Array[_0x41783a(0x15e)](_0x50a172[_0x41783a(0x17d)]))return![];const _0x5c335e=_0x50a172[_0x41783a(0x17d)],_0x59b875=_0x5c335e[_0x354897[_0x41783a(0x182)]];if(!_0x59b875||typeof _0x59b875!==_0x41783a(0x186)||Array['isArray'](_0x59b875))return![];if(!_0x354897[_0x41783a(0x171)])return delete _0x5c335e[_0x354897[_0x41783a(0x182)]],!![];if(!(_0x354897[_0x41783a(0x171)]in _0x59b875))return![];return delete _0x59b875[_0x354897[_0x41783a(0x171)]],Object[_0x41783a(0x17e)](_0x59b875)[_0x41783a(0x1a2)]===0x0&&delete _0x5c335e[_0x354897[_0x41783a(0x182)]],!![];}const listDef={'service':'config','command':a22_0x4ffe0b(0x161),'description':a22_0x4ffe0b(0x193),'risk':a22_0x4ffe0b(0x17a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x22f00d){const _0x37f006=a22_0x4ffe0b,{buildConfigFromFlags:_0x4f8dea}=await import('../../context.js'),_0x243ae6=_0x4f8dea({}),_0x5c4f9e=redactCliConfigCredentials(_0x243ae6[_0x37f006(0x168)]),_0x32a76f=getProjectConfigPath(),_0x47476d=resolveWriteConfigPath('global');if(_0x22f00d[_0x37f006(0x189)]===_0x37f006(0x187))return{'ok':!![],'message':_0x37f006(0x183)+(JSON['stringify'](_0x5c4f9e,null,0x2)+'\x0a\x0a')+_0x37f006(0x176)+(_0x37f006(0x17b)+(_0x32a76f??_0x37f006(0x178))+'\x0a')+('\x20\x20global:\x20\x20'+_0x47476d)};return{'ok':!![],'data':{'effective':_0x5c4f9e,'configFiles':{'project':_0x32a76f??null,'global':_0x47476d}}};}},getDef={'service':a22_0x4ffe0b(0x175),'command':a22_0x4ffe0b(0x199),'description':a22_0x4ffe0b(0x169),'risk':a22_0x4ffe0b(0x17a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x4ffe0b(0x196),'description':a22_0x4ffe0b(0x180),'required':!![]}],'flags':[],async 'execute'(_0x55c7d6){const _0x54f83a=a22_0x4ffe0b,_0x3111e3=_0x55c7d6['args'][0x0];if(!_0x3111e3)throw CliErrors[_0x54f83a(0x188)]('Missing\x20key\x20argument.',_0x54f83a(0x18d)+CLI_BIN_NAME+_0x54f83a(0x18a));const {buildConfigFromFlags:_0x28aea2}=await import('../../context.js'),{raw:_0x53cdac}=_0x28aea2({});if(_0x3111e3[_0x54f83a(0x198)]('.')){const _0x48411c=_0x3111e3[_0x54f83a(0x18c)]('.');let _0x1b47b1=_0x53cdac;for(const _0x2846ba of _0x48411c){if(_0x1b47b1==null||typeof _0x1b47b1!=='object')throw CliErrors[_0x54f83a(0x188)](_0x54f83a(0x16e)+_0x3111e3);_0x1b47b1=_0x1b47b1[_0x2846ba];}if(_0x1b47b1===undefined)throw CliErrors['validation'](_0x54f83a(0x16e)+_0x3111e3);const _0x2a72ad=redactCliConfigValue(_0x3111e3,_0x1b47b1);return console[_0x54f83a(0x1a0)](typeof _0x2a72ad===_0x54f83a(0x186)?JSON[_0x54f83a(0x173)](_0x2a72ad,null,0x2):String(_0x2a72ad)),{'ok':!![]};}const _0x10b376=_0x53cdac[_0x3111e3];if(_0x10b376===undefined)throw CliErrors[_0x54f83a(0x188)](_0x54f83a(0x16e)+_0x3111e3);const _0x55a26a=redactCliConfigValue(_0x3111e3,_0x10b376);return console[_0x54f83a(0x1a0)](typeof _0x55a26a===_0x54f83a(0x186)?JSON[_0x54f83a(0x173)](_0x55a26a,null,0x2):String(_0x55a26a)),{'ok':!![]};}},setDef={'service':a22_0x4ffe0b(0x175),'command':a22_0x4ffe0b(0x17f),'description':a22_0x4ffe0b(0x167),'risk':'write','confirmationDescription':'Changes\x20Lovrabet\x20CLI\x20configuration.\x20Later\x20commands\x20may\x20use\x20a\x20different\x20app,\x20environment,\x20or\x20output\x20behavior.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x4ffe0b(0x196),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x4ffe0b(0x16b),'description':a22_0x4ffe0b(0x19b),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x1bf6af){const _0x142b53=a22_0x4ffe0b,_0x1ed6f8=_0x1bf6af[_0x142b53(0x177)][0x0],_0x1385b2=_0x1bf6af[_0x142b53(0x177)][0x1];if(!_0x1ed6f8||_0x1385b2===undefined)throw CliErrors[_0x142b53(0x188)](_0x142b53(0x160),_0x142b53(0x18d)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x1ed6f8]&&!ENUM_KEYS[_0x1ed6f8][_0x142b53(0x198)](_0x1385b2))throw CliErrors[_0x142b53(0x188)](_0x142b53(0x197)+_0x1ed6f8+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x1ed6f8]['join'](',\x20'));if(isCliProtectedConfigKey(_0x1ed6f8))throw CliErrors['validation']('\x22'+_0x1ed6f8+_0x142b53(0x165));if(_0x1ed6f8===_0x142b53(0x185)){const _0x399c4e=Number(_0x1385b2);if(isNaN(_0x399c4e)||_0x399c4e<=0x0)throw CliErrors[_0x142b53(0x188)](_0x142b53(0x19c));}const _0x445da2=resolveWriteScope({'explicitGlobal':_0x1bf6af[_0x142b53(0x164)]('global'),'policy':'project-or-global-explicit'}),_0x3d2a4b=toScopeFlags(_0x445da2),_0x36499c=readScopedConfig(_0x3d2a4b),_0x3345ae=parseAliasAppcodeSetKey(_0x1ed6f8);if(!_0x3345ae&&!isTopLevelConfigKey(_0x1ed6f8))throw CliErrors['validation'](_0x142b53(0x15f)+_0x1ed6f8+_0x142b53(0x19a),_0x142b53(0x15d)+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');if(_0x3345ae)setLocalAppAlias(_0x36499c,_0x3345ae,_0x1385b2);else{if(_0x1ed6f8===_0x142b53(0x179)){const _0x5be35e=normalizeLocale(_0x1385b2);if(!_0x5be35e)throw CliErrors[_0x142b53(0x188)]('Invalid\x20locale\x20value.',_0x142b53(0x16a));_0x36499c[_0x142b53(0x179)]=_0x5be35e;}else _0x36499c[_0x1ed6f8]=_0x1ed6f8==='pageSize'?Number(_0x1385b2):DOMAIN_CONFIG_FIELDS['includes'](_0x1ed6f8)?normalizeDomainOrigin(_0x1ed6f8,_0x1385b2):_0x1385b2;}const _0x38b932=_0x1ed6f8==='accessKey'?maskCliAccessKey(_0x1385b2):!_0x3345ae&&_0x1ed6f8===_0x142b53(0x179)?String(_0x36499c[_0x142b53(0x179)]):_0x1385b2;return console['log'](_0x142b53(0x1a1)+_0x1ed6f8+_0x142b53(0x191)+_0x38b932+'\x22'+(_0x445da2===_0x142b53(0x18b)?_0x142b53(0x166):'')),writeScopedConfig(_0x36499c,_0x3d2a4b),{'ok':!![]};}},deleteDef={'service':a22_0x4ffe0b(0x175),'command':'delete','description':a22_0x4ffe0b(0x18f),'risk':'write','confirmationDescription':a22_0x4ffe0b(0x16c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x4ffe0b(0x196),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x311b4b){const _0x56173a=a22_0x4ffe0b,_0x246e4d=_0x311b4b['args'][0x0];if(!_0x246e4d)throw CliErrors['validation'](_0x56173a(0x16f),_0x56173a(0x18d)+CLI_BIN_NAME+_0x56173a(0x190));if(isCliProtectedConfigKey(_0x246e4d))throw CliErrors[_0x56173a(0x188)]('\x22'+_0x246e4d+_0x56173a(0x165));const _0x150143=resolveWriteScope({'explicitGlobal':_0x311b4b['bool'](_0x56173a(0x18b)),'policy':'project-or-global-explicit'}),_0x3813b3=toScopeFlags(_0x150143),_0x26c986=readScopedConfig(_0x3813b3),_0x36caeb=parseAliasDeleteKey(_0x246e4d);if(_0x36caeb){if(!deleteLocalAppAlias(_0x26c986,_0x36caeb))return console['log'](_0x56173a(0x192)+_0x246e4d+(_0x150143===_0x56173a(0x18b)?_0x56173a(0x166):'')),{'ok':!![],'data':{'key':_0x246e4d,'scope':_0x150143,'changed':![]}};return console[_0x56173a(0x1a0)](_0x56173a(0x162)+_0x246e4d+'`'+(_0x150143===_0x56173a(0x18b)?'\x20(global)':'')),writeScopedConfig(_0x26c986,_0x3813b3),{'ok':!![],'data':{'key':_0x246e4d,'scope':_0x150143,'changed':!![]}};}if(_0x26c986[_0x246e4d]===undefined)return console[_0x56173a(0x1a0)]('Key\x20already\x20absent:\x20'+_0x246e4d+(_0x150143===_0x56173a(0x18b)?_0x56173a(0x166):'')),{'ok':!![],'data':{'key':_0x246e4d,'scope':_0x150143,'changed':![]}};return delete _0x26c986[_0x246e4d],console[_0x56173a(0x1a0)](_0x56173a(0x162)+_0x246e4d+'`'+(_0x150143===_0x56173a(0x18b)?'\x20(global)':'')),writeScopedConfig(_0x26c986,_0x3813b3),{'ok':!![],'data':{'key':_0x246e4d,'scope':_0x150143,'changed':!![]}};}};function a22_0x3807(_0x4461bb,_0x313bf0){_0x4461bb=_0x4461bb-0x15c;const _0x230cd=a22_0x230c();let _0x3807e2=_0x230cd[_0x4461bb];return _0x3807e2;}export const configDefinitions=[configInitDefinition,listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- function a23_0x5982(_0x21a1bb,_0x46df8d){_0x21a1bb=_0x21a1bb-0xbf;const _0x72afeb=a23_0x72af();let _0x5982ec=_0x72afeb[_0x21a1bb];return _0x5982ec;}const a23_0x4deec6=a23_0x5982;(function(_0x3a6148,_0x1a70b5){const _0x2adf79=a23_0x5982,_0x4f456b=_0x3a6148();while(!![]){try{const _0x1f3443=parseInt(_0x2adf79(0xbf))/0x1*(parseInt(_0x2adf79(0xc1))/0x2)+parseInt(_0x2adf79(0xc3))/0x3+parseInt(_0x2adf79(0xd8))/0x4+-parseInt(_0x2adf79(0xdd))/0x5*(parseInt(_0x2adf79(0xc6))/0x6)+parseInt(_0x2adf79(0xe5))/0x7*(-parseInt(_0x2adf79(0xe7))/0x8)+parseInt(_0x2adf79(0xd1))/0x9+parseInt(_0x2adf79(0xda))/0xa;if(_0x1f3443===_0x1a70b5)break;else _0x4f456b['push'](_0x4f456b['shift']());}catch(_0x34540f){_0x4f456b['push'](_0x4f456b['shift']());}}}(a23_0x72af,0x4e65a));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':a23_0x4deec6(0xe8),'type':a23_0x4deec6(0xde),'description':'Independent-deployment\x20Domain\x20JSON\x20file'},{'name':a23_0x4deec6(0xe3),'type':a23_0x4deec6(0xde),'description':a23_0x4deec6(0xe9)},{'name':a23_0x4deec6(0xd6),'type':'string','description':a23_0x4deec6(0xc8)},{'name':a23_0x4deec6(0xee),'type':a23_0x4deec6(0xde),'description':'Custom\x20Runtime\x20HTTPS\x20origin'},{'name':a23_0x4deec6(0xd9),'type':'string','description':'Custom\x20SkillHub\x20HTTPS\x20origin'},{'name':a23_0x4deec6(0xce),'type':a23_0x4deec6(0xde),'description':'Custom\x20knowledge-base\x20HTTPS\x20origin'}];export const configInitFlags=[{'name':a23_0x4deec6(0xd7),'type':a23_0x4deec6(0xde),'description':a23_0x4deec6(0xcc)+ENABLED_LOVRABET_REGION_VALUES[a23_0x4deec6(0xcb)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},...domainFlags];async function resolveRegion(_0x487296){const _0x2d5450=a23_0x4deec6,_0x51673c=_0x487296[_0x2d5450(0xdf)](_0x2d5450(0xd7));if(_0x51673c){if(!isEnabledLovrabetRegion(_0x51673c))throw CliErrors[_0x2d5450(0xc0)]('Region\x20\x22'+_0x51673c+_0x2d5450(0xc9),_0x2d5450(0xcf)+ENABLED_LOVRABET_REGION_VALUES[_0x2d5450(0xcb)](',\x20'));return _0x51673c;}if(_0x487296[_0x2d5450(0xd2)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x2d5450(0xea),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x2d5450(0xcd)](_0x29bf74=>({'name':OFFICIAL_ROUTING_PROFILES[_0x29bf74][_0x2d5450(0xeb)]+'\x20('+_0x29bf74+')','value':_0x29bf74}))});}catch(_0x4685e5){if(_0x4685e5?.[_0x2d5450(0xca)]==='ExitPromptError')throw CliErrors[_0x2d5450(0xe6)]();throw _0x4685e5;}}export async function executeConfigInit(_0x16ab17){const _0x533a72=a23_0x4deec6,_0x5ba47d=resolveDomainConfigInput(_0x16ab17),_0x35eb68=_0x5ba47d['domains'],_0x4270ca=Object[_0x533a72(0xed)](_0x35eb68)[_0x533a72(0xd5)]>0x0;if(_0x4270ca&&_0x16ab17[_0x533a72(0xdf)](_0x533a72(0xd7)))throw CliErrors[_0x533a72(0xc0)](_0x533a72(0xec));const _0x22d1a8={'global':!![]},_0x18e9b8=readScopedConfig(_0x22d1a8);for(const _0x16ab6c of DOMAIN_CONFIG_FIELDS)delete _0x18e9b8[_0x16ab6c];for(const _0x3fd9af of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x18e9b8[_0x3fd9af];delete _0x18e9b8[_0x533a72(0xc4)];let _0x38c239=null;if(_0x4270ca)delete _0x18e9b8['region'],_0x5ba47d[_0x533a72(0xd0)]==='enterprise-v1'?_0x18e9b8['routing']={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x5ba47d[_0x533a72(0xe2)],'cdn':_0x5ba47d[_0x533a72(0xe1)]}:Object[_0x533a72(0xd3)](_0x18e9b8,_0x35eb68);else{_0x38c239=await resolveRegion(_0x16ab17);if(_0x38c239===DEFAULT_LOVRABET_REGION)delete _0x18e9b8[_0x533a72(0xd7)];else _0x18e9b8['region']=_0x38c239;}return writeScopedConfig(_0x18e9b8,_0x22d1a8),{'ok':!![],'message':_0x4270ca?'Lovrabet\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20'+Object[_0x533a72(0xed)](_0x5ba47d[_0x533a72(0xd0)]===_0x533a72(0xc2)?_0x5ba47d[_0x533a72(0xe2)]:_0x35eb68)[_0x533a72(0xcb)](',\x20')+'.':_0x533a72(0xef)+_0x38c239+'.','data':{'mode':_0x4270ca?_0x533a72(0xc7):_0x533a72(0xe4),'protocol':_0x5ba47d[_0x533a72(0xd0)]===_0x533a72(0xc2)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x38c239,'domains':_0x35eb68,'cdn':_0x5ba47d['mode']==='enterprise-v1'?_0x5ba47d[_0x533a72(0xe1)]:undefined}};}export const configInitDefinition={'service':a23_0x4deec6(0xdc),'command':a23_0x4deec6(0xe0),'description':a23_0x4deec6(0xd4),'risk':a23_0x4deec6(0xc5),'confirmationDescription':a23_0x4deec6(0xdb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};function a23_0x72af(){const _0x5232dc=['59010Nhewgo','enterprise-v1','362271HQlpxm','routing','write','107538GwzKYi','independent','Custom\x20platform\x20API\x20HTTPS\x20origin','\x22\x20is\x20not\x20currently\x20available.','name','join','Official\x20Lovrabet\x20region:\x20','map','kb-domain','Available\x20regions:\x20','mode','671076PnKLmp','nonInteractive','assign','Initialize\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','length','api-domain','region','393696aoKaLW','skill-domain','8688880iQoWBG','Updates\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20AccessKey,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','config','155ZegHhb','string','str','init','cdn','manifestDomains','user-domain','official','21lcffjs','cancelled','998456qHcPHI','domain-config','Custom\x20User\x20HTTPS\x20origin','Select\x20Lovrabet\x20region','label','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','keys','runtime-domain','Lovrabet\x20connection\x20configured\x20for\x20region:\x20','3MPXFqC','validation'];a23_0x72af=function(){return _0x5232dc;};return a23_0x72af();}
1
+ const a23_0xfc0fc8=a23_0x31e6;(function(_0x229a88,_0x39765b){const _0x40cefb=a23_0x31e6,_0x52b98d=_0x229a88();while(!![]){try{const _0x16db60=parseInt(_0x40cefb(0x1e7))/0x1+-parseInt(_0x40cefb(0x1c3))/0x2+-parseInt(_0x40cefb(0x1d8))/0x3*(parseInt(_0x40cefb(0x1e6))/0x4)+parseInt(_0x40cefb(0x1c5))/0x5+-parseInt(_0x40cefb(0x1d9))/0x6+parseInt(_0x40cefb(0x1c4))/0x7+-parseInt(_0x40cefb(0x1ce))/0x8*(parseInt(_0x40cefb(0x1c9))/0x9);if(_0x16db60===_0x39765b)break;else _0x52b98d['push'](_0x52b98d['shift']());}catch(_0x285f67){_0x52b98d['push'](_0x52b98d['shift']());}}}(a23_0x2a6b,0x68e47));import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';function a23_0x2a6b(){const _0x2365fe=['routing','nonInteractive','\x22\x20is\x20not\x20currently\x20available.','8xZdwjl','str','kb-domain','length','config','join','Region\x20\x22','label','validation','Select\x20Lovrabet\x20region','369kiIVFN','817644CveWWi','write','Custom\x20Runtime\x20HTTPS\x20origin','official','region','name','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','Independent-deployment\x20Domain\x20JSON\x20file','runtime-domain','map','cancelled','string','enterprise-v1','8504glrJuA','694511fyuNxw','independent','init','Custom\x20platform\x20API\x20HTTPS\x20origin','api-domain','manifestDomains','Lovrabet\x20connection\x20configured\x20for\x20region:\x20','keys','Custom\x20knowledge-base\x20HTTPS\x20origin','Available\x20regions:\x20','mode','domain-config','Lovrabet\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','user-domain','624132JdBMgY','3133676BGLWER','1317405JngOOo','assign','Official\x20Lovrabet\x20region:\x20','Initialize\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','2395647BmFhlx','cdn'];a23_0x2a6b=function(){return _0x2365fe;};return a23_0x2a6b();}import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';function a23_0x31e6(_0x4f79a8,_0x4b7892){_0x4f79a8=_0x4f79a8-0x1b6;const _0x2a6bb7=a23_0x2a6b();let _0x31e660=_0x2a6bb7[_0x4f79a8];return _0x31e660;}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':a23_0xfc0fc8(0x1c0),'type':'string','description':a23_0xfc0fc8(0x1e0)},{'name':a23_0xfc0fc8(0x1c2),'type':'string','description':'Custom\x20User\x20HTTPS\x20origin'},{'name':a23_0xfc0fc8(0x1b9),'type':a23_0xfc0fc8(0x1e4),'description':a23_0xfc0fc8(0x1b8)},{'name':a23_0xfc0fc8(0x1e1),'type':'string','description':a23_0xfc0fc8(0x1db)},{'name':'skill-domain','type':'string','description':'Custom\x20SkillHub\x20HTTPS\x20origin'},{'name':a23_0xfc0fc8(0x1d0),'type':'string','description':a23_0xfc0fc8(0x1bd)}];export const configInitFlags=[{'name':a23_0xfc0fc8(0x1dd),'type':a23_0xfc0fc8(0x1e4),'description':a23_0xfc0fc8(0x1c7)+ENABLED_LOVRABET_REGION_VALUES[a23_0xfc0fc8(0x1d3)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},...domainFlags];async function resolveRegion(_0x1cac92){const _0x2b9a83=a23_0xfc0fc8,_0x22120a=_0x1cac92[_0x2b9a83(0x1cf)](_0x2b9a83(0x1dd));if(_0x22120a){if(!isEnabledLovrabetRegion(_0x22120a))throw CliErrors[_0x2b9a83(0x1d6)](_0x2b9a83(0x1d4)+_0x22120a+_0x2b9a83(0x1cd),_0x2b9a83(0x1be)+ENABLED_LOVRABET_REGION_VALUES[_0x2b9a83(0x1d3)](',\x20'));return _0x22120a;}if(_0x1cac92[_0x2b9a83(0x1cc)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x2b9a83(0x1d7),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x2b9a83(0x1e2)](_0xfd2e5c=>({'name':OFFICIAL_ROUTING_PROFILES[_0xfd2e5c][_0x2b9a83(0x1d5)]+'\x20('+_0xfd2e5c+')','value':_0xfd2e5c}))});}catch(_0xa99653){if(_0xa99653?.[_0x2b9a83(0x1de)]==='ExitPromptError')throw CliErrors[_0x2b9a83(0x1e3)]();throw _0xa99653;}}export async function executeConfigInit(_0x29a5e9){const _0x3ce6ef=a23_0xfc0fc8,_0x328a00=resolveDomainConfigInput(_0x29a5e9),_0x5291ef=_0x328a00['domains'],_0x58131f=Object[_0x3ce6ef(0x1bc)](_0x5291ef)[_0x3ce6ef(0x1d1)]>0x0;if(_0x58131f&&_0x29a5e9[_0x3ce6ef(0x1cf)](_0x3ce6ef(0x1dd)))throw CliErrors[_0x3ce6ef(0x1d6)](_0x3ce6ef(0x1df));const _0x354a55={'global':!![]},_0x54ef69=readScopedConfig(_0x354a55);for(const _0x10b42c of DOMAIN_CONFIG_FIELDS)delete _0x54ef69[_0x10b42c];for(const _0x4b8a8d of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x54ef69[_0x4b8a8d];delete _0x54ef69[_0x3ce6ef(0x1cb)];let _0x2ca62e=null;if(_0x58131f)delete _0x54ef69['region'],_0x328a00[_0x3ce6ef(0x1bf)]==='enterprise-v1'?_0x54ef69['routing']={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x328a00[_0x3ce6ef(0x1ba)],'cdn':_0x328a00[_0x3ce6ef(0x1ca)]}:Object[_0x3ce6ef(0x1c6)](_0x54ef69,_0x5291ef);else{_0x2ca62e=await resolveRegion(_0x29a5e9);if(_0x2ca62e===DEFAULT_LOVRABET_REGION)delete _0x54ef69['region'];else _0x54ef69['region']=_0x2ca62e;}return writeScopedConfig(_0x54ef69,_0x354a55),{'ok':!![],'message':_0x58131f?_0x3ce6ef(0x1c1)+Object[_0x3ce6ef(0x1bc)](_0x328a00[_0x3ce6ef(0x1bf)]===_0x3ce6ef(0x1e5)?_0x328a00[_0x3ce6ef(0x1ba)]:_0x5291ef)['join'](',\x20')+'.':_0x3ce6ef(0x1bb)+_0x2ca62e+'.','data':{'mode':_0x58131f?_0x3ce6ef(0x1b6):_0x3ce6ef(0x1dc),'protocol':_0x328a00[_0x3ce6ef(0x1bf)]==='enterprise-v1'?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x2ca62e,'domains':_0x5291ef,'cdn':_0x328a00[_0x3ce6ef(0x1bf)]===_0x3ce6ef(0x1e5)?_0x328a00['cdn']:undefined}};}export const configInitDefinition={'service':a23_0xfc0fc8(0x1d2),'command':a23_0xfc0fc8(0x1b7),'description':a23_0xfc0fc8(0x1c8),'risk':a23_0xfc0fc8(0x1da),'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(_0x369e9e,_0x2e6317){var _0x5a47eb=a24_0x3697,_0x572f96=_0x369e9e();while(!![]){try{var _0x4f0889=-parseInt(_0x5a47eb(0xea))/0x1*(-parseInt(_0x5a47eb(0xec))/0x2)+-parseInt(_0x5a47eb(0xee))/0x3+parseInt(_0x5a47eb(0xf0))/0x4*(parseInt(_0x5a47eb(0xeb))/0x5)+parseInt(_0x5a47eb(0xe9))/0x6*(parseInt(_0x5a47eb(0xef))/0x7)+-parseInt(_0x5a47eb(0xf1))/0x8+-parseInt(_0x5a47eb(0xed))/0x9+parseInt(_0x5a47eb(0xf2))/0xa;if(_0x4f0889===_0x2e6317)break;else _0x572f96['push'](_0x572f96['shift']());}catch(_0x5a4338){_0x572f96['push'](_0x572f96['shift']());}}}(a24_0x22d9,0x53495));function a24_0x3697(_0x93ea8c,_0x1cc25e){_0x93ea8c=_0x93ea8c-0xe9;var _0x22d983=a24_0x22d9();var _0x3697c6=_0x22d983[_0x93ea8c];return _0x3697c6;}import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isCliProtectedConfigKey,isTopLevelConfigKey,normalizeLocale,toScopeFlags}from'../../commands/common/config-policy.js';function a24_0x22d9(){var _0x38f1ef=['4452792rhdOCI','6072190PAYgIf','276UYplFS','3897lWfbYC','10FYjmbs','202gtoUxz','2605824obVosu','1141104yoEliH','32599CXcfNL','705212lvYzvw'];a24_0x22d9=function(){return _0x38f1ef;};return a24_0x22d9();}
1
+ (function(_0x59ce08,_0x54a1f9){var _0x1648e8=a24_0x23e1,_0xdd02a8=_0x59ce08();while(!![]){try{var _0x46605e=parseInt(_0x1648e8(0x1f9))/0x1+-parseInt(_0x1648e8(0x1fc))/0x2+-parseInt(_0x1648e8(0x1fb))/0x3+parseInt(_0x1648e8(0x1f6))/0x4+-parseInt(_0x1648e8(0x1fd))/0x5*(parseInt(_0x1648e8(0x1f5))/0x6)+parseInt(_0x1648e8(0x1f7))/0x7*(-parseInt(_0x1648e8(0x1f8))/0x8)+-parseInt(_0x1648e8(0x1f4))/0x9*(-parseInt(_0x1648e8(0x1fa))/0xa);if(_0x46605e===_0x54a1f9)break;else _0xdd02a8['push'](_0xdd02a8['shift']());}catch(_0x1c339d){_0xdd02a8['push'](_0xdd02a8['shift']());}}}(a24_0x479c,0xd1739));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isCliProtectedConfigKey,isTopLevelConfigKey,normalizeLocale,toScopeFlags}from'../../commands/common/config-policy.js';function a24_0x23e1(_0x20f173,_0x12755e){_0x20f173=_0x20f173-0x1f4;var _0x479c82=a24_0x479c();var _0x23e1dd=_0x479c82[_0x20f173];return _0x23e1dd;}function a24_0x479c(){var _0x287778=['242052ixfszR','210ExDLLP','2239605hrXzsz','2397412OHVOgB','20WwaVXv','1205109HyEhSD','1981734HLDOSX','6739948BnPgrU','6650quzpUy','5176XZMEOx'];a24_0x479c=function(){return _0x287778;};return a24_0x479c();}
@@ -1 +1 @@
1
- function a25_0x53c6(_0xd52995,_0x572b98){_0xd52995=_0xd52995-0x14a;const _0x362b97=a25_0x362b();let _0x53c672=_0x362b97[_0xd52995];return _0x53c672;}const a25_0x239022=a25_0x53c6;(function(_0x53a0c9,_0x53d51c){const _0x255f5d=a25_0x53c6,_0x26b270=_0x53a0c9();while(!![]){try{const _0x1b8944=parseInt(_0x255f5d(0x17e))/0x1*(parseInt(_0x255f5d(0x193))/0x2)+parseInt(_0x255f5d(0x1ad))/0x3+-parseInt(_0x255f5d(0x1a6))/0x4*(-parseInt(_0x255f5d(0x1a2))/0x5)+-parseInt(_0x255f5d(0x19a))/0x6*(parseInt(_0x255f5d(0x153))/0x7)+-parseInt(_0x255f5d(0x1a4))/0x8*(-parseInt(_0x255f5d(0x15c))/0x9)+parseInt(_0x255f5d(0x1a9))/0xa+-parseInt(_0x255f5d(0x150))/0xb*(parseInt(_0x255f5d(0x172))/0xc);if(_0x1b8944===_0x53d51c)break;else _0x26b270['push'](_0x26b270['shift']());}catch(_0x13902b){_0x26b270['push'](_0x26b270['shift']());}}}(a25_0x362b,0x4f426));import{executeData}from'../../core/sdk-client.js';function a25_0x362b(){const _0x4e5f14=['\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','\x20\x20DATASET\x20BOUNDARY','str','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','28655HzPifb','delete','confirmationDescription','938427uwTpaY','Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','data\x20','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','Get\x20a\x20single\x20record\x20by\x20ID','\x20\x20EXAMPLES','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','378693bMOlFA','params','Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','join','aggregate','Update\x20an\x20existing\x20data\x20record','\x20\x20AGGREGATE\x20TYPES','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','helpExtra','Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','paramsHint','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged','risk','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','length','\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','8400OcBVyZ','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY','Preview:\x20data\x20','create','Create\x20one\x20record\x20in\x20the\x20dataset','batch','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','\x20\x20WHERE\x20OPERATORS','\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL','\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','batchCreate','34028Gfyppr','/api/{appCode}/','read','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20PARAMS\x20STRUCTURE','body','update','\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','getOne','now','\x20\x20\x20\x20Do\x20NOT\x20use\x20--where,\x20--select,\x20--order-by,\x20--current-page,\x20--page,\x20or\x20--page-size\x20as\x20CLI\x20flags.','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','write','\x20\x20\x20\x20Page\x202:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:2,\x22pageSize\x22:20}\x27','operation','\x20\x20\x20\x20Page\x201:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','filter','34daaTnG','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','build','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','command','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','6cLmkry','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','map','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','3635Wkyqes','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','120AndMnJ','high-risk-write','2612nBmUpl','code','description','868540kzNDyG','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','\x20on\x20dataset\x20','1532973sXjyoh','paramsRequired','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filters\x20using\x20real\x20dataset\x20fields,\x20e.g.\x20{\x22category_id\x22:{\x22$notNull\x22:true}}','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}'];a25_0x362b=function(){return _0x4e5f14;};return a25_0x362b();}import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':'filter','operation':a25_0x239022(0x192),'risk':'read','paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a25_0x239022(0x15b)+a25_0x239022(0x15f),'helpExtra':[a25_0x239022(0x179),'\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}',a25_0x239022(0x1ab),a25_0x239022(0x188),a25_0x239022(0x15a),a25_0x239022(0x181),'\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}',a25_0x239022(0x14f),'\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}',a25_0x239022(0x194),'','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}',a25_0x239022(0x165),'',a25_0x239022(0x14e),a25_0x239022(0x183),a25_0x239022(0x164),a25_0x239022(0x195),a25_0x239022(0x16e),a25_0x239022(0x199),'','\x20\x20PAGINATION',a25_0x239022(0x156),a25_0x239022(0x18c),a25_0x239022(0x16c),a25_0x239022(0x1aa),a25_0x239022(0x191),a25_0x239022(0x18f),a25_0x239022(0x182)][a25_0x239022(0x160)]('\x0a')},{'command':a25_0x239022(0x18a),'operation':a25_0x239022(0x18a),'risk':a25_0x239022(0x180),'paramsRequired':!![],'description':a25_0x239022(0x157),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':'create','operation':a25_0x239022(0x175),'risk':a25_0x239022(0x18e),'paramsRequired':!![],'description':a25_0x239022(0x176),'confirmationDescription':a25_0x239022(0x15e),'paramsHint':a25_0x239022(0x16b)},{'command':a25_0x239022(0x17d),'operation':a25_0x239022(0x17d),'risk':a25_0x239022(0x18e),'paramsRequired':!![],'description':'Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','confirmationDescription':a25_0x239022(0x169),'paramsHint':a25_0x239022(0x19e)},{'command':'update','operation':a25_0x239022(0x186),'risk':a25_0x239022(0x18e),'paramsRequired':!![],'description':a25_0x239022(0x162),'confirmationDescription':a25_0x239022(0x154),'paramsHint':a25_0x239022(0x1af)+a25_0x239022(0x1b1)},{'command':'delete','operation':a25_0x239022(0x151),'risk':a25_0x239022(0x1a5),'paramsRequired':!![],'description':a25_0x239022(0x19d),'confirmationDescription':a25_0x239022(0x189),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':'aggregate','operation':a25_0x239022(0x161),'risk':a25_0x239022(0x180),'paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':a25_0x239022(0x1a0)+a25_0x239022(0x159),'helpExtra':[a25_0x239022(0x163),a25_0x239022(0x14b),a25_0x239022(0x19c),a25_0x239022(0x197),a25_0x239022(0x17c),a25_0x239022(0x14a),a25_0x239022(0x167),'\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','',a25_0x239022(0x184),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a25_0x239022(0x18d),a25_0x239022(0x1a1),a25_0x239022(0x166),a25_0x239022(0x1b0),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order;\x20may\x20reference\x20aggregate\x20output\x20aliases,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','',a25_0x239022(0x173),'\x20\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only',a25_0x239022(0x17b),a25_0x239022(0x187),'',a25_0x239022(0x14c),'\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only',a25_0x239022(0x170),a25_0x239022(0x17a),'\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','',a25_0x239022(0x158),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a25_0x239022(0x19b),'',a25_0x239022(0x1a3),a25_0x239022(0x178),'',a25_0x239022(0x171)]['join']('\x0a')}];function makeDataCommand(_0x4e5549){const _0x50786d=a25_0x239022,_0x4be3fd=_0x50786d(0x155)+_0x4e5549[_0x50786d(0x198)],_0x5a5642={'service':'data','command':_0x4e5549[_0x50786d(0x198)],'description':_0x4e5549[_0x50786d(0x1a8)],'risk':_0x4e5549[_0x50786d(0x16d)],..._0x4e5549[_0x50786d(0x152)]?{'confirmationDescription':_0x4e5549[_0x50786d(0x152)]}:{},'helpExtra':_0x4e5549[_0x50786d(0x168)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x4e5549[_0x50786d(0x16a)]}],'validate':async _0x159c92=>{const _0xc188f7=_0x50786d;_0x4e5549[_0xc188f7(0x1ae)]&&requireAnyOf(_0x159c92,['params'],_0x4be3fd),_0x4e5549[_0xc188f7(0x190)]===_0xc188f7(0x17d)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x159c92[_0xc188f7(0x14d)](_0xc188f7(0x15d)))),_0x4e5549[_0xc188f7(0x190)]===_0xc188f7(0x186)&&parseUpdateIdsFromParams(parseJsonParams(_0x159c92[_0xc188f7(0x14d)](_0xc188f7(0x15d)))??{});},async 'execute'(_0x3087d9){const _0x29b13b=_0x50786d,_0x456736=_0x3087d9[_0x29b13b(0x14d)](_0x29b13b(0x1a7)),_0x41d20d=_0x4e5549[_0x29b13b(0x190)]===_0x29b13b(0x17d)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3087d9[_0x29b13b(0x14d)](_0x29b13b(0x15d)))):parseJsonParams(_0x3087d9[_0x29b13b(0x14d)](_0x29b13b(0x15d)))??{},_0x3ea5ec=_0x4e5549[_0x29b13b(0x190)]===_0x29b13b(0x186)?parseUpdateIdsFromParams(_0x41d20d):undefined,_0x54c088=_0x3ea5ec?normalizeUpdateParamsForRuntime(_0x41d20d,_0x3ea5ec):_0x41d20d,_0x5c5a77=Date[_0x29b13b(0x18b)](),_0x2fb8e9=await executeData(_0x456736,_0x4e5549[_0x29b13b(0x190)],_0x54c088),_0x1af381=Date['now']()-_0x5c5a77,_0x30f02b=_0x3ea5ec&&_0x3ea5ec[_0x29b13b(0x16f)]>0x1?buildBatchUpdateResult(_0x3ea5ec,_0x2fb8e9):_0x2fb8e9;return{'ok':!![],'data':{'result':_0x30f02b,'elapsed':_0x1af381},'message':'data\x20'+_0x4e5549[_0x29b13b(0x198)]+'\x20completed\x20in\x20'+_0x1af381+'ms'};}};return _0x4e5549['risk']!==_0x50786d(0x180)&&(_0x5a5642['dryRun']=async _0x1d077e=>{const _0x34a162=_0x50786d,_0x33652f=_0x1d077e[_0x34a162(0x14d)](_0x34a162(0x1a7)),_0x1ae985=_0x4e5549['operation']==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x1d077e[_0x34a162(0x14d)](_0x34a162(0x15d)))):parseJsonParams(_0x1d077e[_0x34a162(0x14d)](_0x34a162(0x15d)))??{};let _0x424ef3=_0x1ae985;if(_0x4e5549[_0x34a162(0x190)]===_0x34a162(0x186)){const _0x2b01a5=parseUpdateIdsFromParams(_0x1ae985);_0x424ef3=normalizeUpdateParamsForRuntime(_0x1ae985,_0x2b01a5);}return dryRun('POST',_0x34a162(0x17f)+_0x33652f+'/'+_0x4e5549[_0x34a162(0x190)])[_0x34a162(0x185)](_0x424ef3)[_0x34a162(0x1a8)](_0x34a162(0x174)+_0x4e5549[_0x34a162(0x198)]+_0x34a162(0x1ac)+_0x33652f)[_0x34a162(0x196)]();}),_0x5a5642;}export const dataDefinitions=specs[a25_0x239022(0x19f)](makeDataCommand);function buildBatchUpdateResult(_0x20c0d9,_0x1229eb){const _0xb8656=a25_0x239022;return{'operation':_0xb8656(0x186),'mode':_0xb8656(0x177),'ids':_0x20c0d9,'total':_0x20c0d9[_0xb8656(0x16f)],'result':_0x1229eb};}
1
+ const a25_0x3b3155=a25_0x2e99;function a25_0x2a59(){const _0x2c2a2d=['body','\x20\x20LOGICAL\x20COMBINATORS','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','join','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','high-risk-write','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','params','\x20\x20AGGREGATE\x20TYPES','data\x20','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','update','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','256480sXLXWH','Create\x20one\x20record\x20in\x20the\x20dataset','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','command','now','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','batch','\x20\x20PARAMS\x20STRUCTURE','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','\x20on\x20dataset\x20','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','944ohOYbS','aggregate','operation','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','\x20completed\x20in\x20','code','34854funwpn','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','description','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','helpExtra','Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','delete','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','confirmationDescription','360PzSsjD','\x20\x20EXAMPLES','\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','/api/{appCode}/','batchCreate','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','risk','422204JywOcD','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20Do\x20NOT\x20use\x20--where,\x20--select,\x20--order-by,\x20--current-page,\x20--page,\x20or\x20--page-size\x20as\x20CLI\x20flags.','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','filter','\x20\x20WHERE\x20OPERATORS','\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only','Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','getOne','\x20\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only','dryRun','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','\x20\x20\x20\x20Page\x202:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:2,\x22pageSize\x22:20}\x27','length','Update\x20an\x20existing\x20data\x20record','write','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','POST','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY','str','Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','6430550HrvLmK','9270XLnJEq','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','read','274126JFymqg','create','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','Get\x20a\x20single\x20record\x20by\x20ID','1804932zvNpzt'];a25_0x2a59=function(){return _0x2c2a2d;};return a25_0x2a59();}(function(_0x20134c,_0x234cb2){const _0x1b7552=a25_0x2e99,_0x50483b=_0x20134c();while(!![]){try{const _0x380f06=-parseInt(_0x1b7552(0x1cb))/0x1+-parseInt(_0x1b7552(0x18a))/0x2+parseInt(_0x1b7552(0x1b6))/0x3+-parseInt(_0x1b7552(0x1af))/0x4*(-parseInt(_0x1b7552(0x187))/0x5)+parseInt(_0x1b7552(0x18e))/0x6+-parseInt(_0x1b7552(0x186))/0x7+parseInt(_0x1b7552(0x1a1))/0x8*(parseInt(_0x1b7552(0x1c0))/0x9);if(_0x380f06===_0x234cb2)break;else _0x50483b['push'](_0x50483b['shift']());}catch(_0x35c431){_0x50483b['push'](_0x50483b['shift']());}}}(a25_0x2a59,0x875e3));import{executeData}from'../../core/sdk-client.js';function a25_0x2e99(_0xcc5e22,_0x19ab20){_0xcc5e22=_0xcc5e22-0x17b;const _0x2a59ef=a25_0x2a59();let _0x2e999d=_0x2a59ef[_0xcc5e22];return _0x2e999d;}import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a25_0x3b3155(0x1d1),'operation':a25_0x3b3155(0x1d1),'risk':a25_0x3b3155(0x189),'paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a25_0x3b3155(0x19f)+a25_0x3b3155(0x1d0),'helpExtra':[a25_0x3b3155(0x1d2),a25_0x3b3155(0x1d7),'\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}',a25_0x3b3155(0x17b),a25_0x3b3155(0x1b3),'\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}',a25_0x3b3155(0x1b2),a25_0x3b3155(0x1c9),a25_0x3b3155(0x18c),a25_0x3b3155(0x1aa),'\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','',a25_0x3b3155(0x190),a25_0x3b3155(0x1b9),a25_0x3b3155(0x188),'',a25_0x3b3155(0x185),a25_0x3b3155(0x180),a25_0x3b3155(0x19d),a25_0x3b3155(0x1ad),a25_0x3b3155(0x1cc),a25_0x3b3155(0x193),'','\x20\x20PAGINATION','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.',a25_0x3b3155(0x1cf),'\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged',a25_0x3b3155(0x19c),'\x20\x20\x20\x20Page\x201:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:1,\x22pageSize\x22:20}\x27',a25_0x3b3155(0x17c),'\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.']['join']('\x0a')},{'command':'getOne','operation':a25_0x3b3155(0x1d8),'risk':a25_0x3b3155(0x189),'paramsRequired':!![],'description':a25_0x3b3155(0x18d),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a25_0x3b3155(0x18b),'operation':a25_0x3b3155(0x18b),'risk':a25_0x3b3155(0x17f),'paramsRequired':!![],'description':a25_0x3b3155(0x1a2),'confirmationDescription':a25_0x3b3155(0x1c5),'paramsHint':a25_0x3b3155(0x197)},{'command':a25_0x3b3155(0x1c7),'operation':a25_0x3b3155(0x1c7),'risk':a25_0x3b3155(0x17f),'paramsRequired':!![],'description':a25_0x3b3155(0x184),'confirmationDescription':a25_0x3b3155(0x1d6),'paramsHint':a25_0x3b3155(0x1c8)},{'command':a25_0x3b3155(0x19e),'operation':'update','risk':a25_0x3b3155(0x17f),'paramsRequired':!![],'description':a25_0x3b3155(0x17e),'confirmationDescription':a25_0x3b3155(0x1cd),'paramsHint':a25_0x3b3155(0x1db)+a25_0x3b3155(0x1a3)},{'command':a25_0x3b3155(0x1bd),'operation':a25_0x3b3155(0x1bd),'risk':a25_0x3b3155(0x194),'paramsRequired':!![],'description':a25_0x3b3155(0x1c4),'confirmationDescription':a25_0x3b3155(0x1bb),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a25_0x3b3155(0x1b0),'operation':a25_0x3b3155(0x1b0),'risk':'read','paramsRequired':![],'description':a25_0x3b3155(0x191),'paramsHint':a25_0x3b3155(0x1dc)+a25_0x3b3155(0x1bc),'helpExtra':[a25_0x3b3155(0x19a),a25_0x3b3155(0x1a0),a25_0x3b3155(0x1ae),a25_0x3b3155(0x1a4),a25_0x3b3155(0x1d4),a25_0x3b3155(0x198),'\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','',a25_0x3b3155(0x1a9),a25_0x3b3155(0x1b7),a25_0x3b3155(0x1ac),a25_0x3b3155(0x196),a25_0x3b3155(0x1c3),'\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filters\x20using\x20real\x20dataset\x20fields,\x20e.g.\x20{\x22category_id\x22:{\x22$notNull\x22:true}}','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order;\x20may\x20reference\x20aggregate\x20output\x20aliases,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','',a25_0x3b3155(0x182),a25_0x3b3155(0x1d9),a25_0x3b3155(0x1d3),'\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','','\x20\x20DATASET\x20BOUNDARY',a25_0x3b3155(0x1d5),a25_0x3b3155(0x1c2),'\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL','\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','',a25_0x3b3155(0x1c1),a25_0x3b3155(0x1ce),a25_0x3b3155(0x1be),'','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter',a25_0x3b3155(0x195),'',a25_0x3b3155(0x1a7)][a25_0x3b3155(0x192)]('\x0a')}];function makeDataCommand(_0x200d47){const _0x441224=a25_0x3b3155,_0x249673=_0x441224(0x19b)+_0x200d47[_0x441224(0x1a5)],_0x3b05fd={'service':'data','command':_0x200d47[_0x441224(0x1a5)],'description':_0x200d47[_0x441224(0x1b8)],'risk':_0x200d47[_0x441224(0x1ca)],..._0x200d47[_0x441224(0x1bf)]?{'confirmationDescription':_0x200d47[_0x441224(0x1bf)]}:{},'helpExtra':_0x200d47[_0x441224(0x1ba)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x200d47['paramsHint']}],'validate':async _0x134675=>{const _0x463732=_0x441224;_0x200d47['paramsRequired']&&requireAnyOf(_0x134675,[_0x463732(0x199)],_0x249673),_0x200d47[_0x463732(0x1b1)]===_0x463732(0x1c7)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x134675[_0x463732(0x183)](_0x463732(0x199)))),_0x200d47[_0x463732(0x1b1)]===_0x463732(0x19e)&&parseUpdateIdsFromParams(parseJsonParams(_0x134675[_0x463732(0x183)](_0x463732(0x199)))??{});},async 'execute'(_0x1be2b9){const _0x596389=_0x441224,_0x442f73=_0x1be2b9['str'](_0x596389(0x1b5)),_0x467880=_0x200d47['operation']==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x1be2b9[_0x596389(0x183)](_0x596389(0x199)))):parseJsonParams(_0x1be2b9['str'](_0x596389(0x199)))??{},_0x505d80=_0x200d47[_0x596389(0x1b1)]==='update'?parseUpdateIdsFromParams(_0x467880):undefined,_0x26bd93=_0x505d80?normalizeUpdateParamsForRuntime(_0x467880,_0x505d80):_0x467880,_0x494def=Date[_0x596389(0x1a6)](),_0x2264ed=await executeData(_0x442f73,_0x200d47[_0x596389(0x1b1)],_0x26bd93),_0x521cb7=Date[_0x596389(0x1a6)]()-_0x494def,_0x4aea92=_0x505d80&&_0x505d80[_0x596389(0x17d)]>0x1?buildBatchUpdateResult(_0x505d80,_0x2264ed):_0x2264ed;return{'ok':!![],'data':{'result':_0x4aea92,'elapsed':_0x521cb7},'message':_0x596389(0x19b)+_0x200d47[_0x596389(0x1a5)]+_0x596389(0x1b4)+_0x521cb7+'ms'};}};return _0x200d47[_0x441224(0x1ca)]!==_0x441224(0x189)&&(_0x3b05fd[_0x441224(0x1da)]=async _0x553e3b=>{const _0x5eca0a=_0x441224,_0x31f31a=_0x553e3b[_0x5eca0a(0x183)](_0x5eca0a(0x1b5)),_0x48b6c6=_0x200d47['operation']===_0x5eca0a(0x1c7)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x553e3b[_0x5eca0a(0x183)](_0x5eca0a(0x199)))):parseJsonParams(_0x553e3b['str'](_0x5eca0a(0x199)))??{};let _0x516de8=_0x48b6c6;if(_0x200d47[_0x5eca0a(0x1b1)]===_0x5eca0a(0x19e)){const _0x221425=parseUpdateIdsFromParams(_0x48b6c6);_0x516de8=normalizeUpdateParamsForRuntime(_0x48b6c6,_0x221425);}return dryRun(_0x5eca0a(0x181),_0x5eca0a(0x1c6)+_0x31f31a+'/'+_0x200d47[_0x5eca0a(0x1b1)])[_0x5eca0a(0x18f)](_0x516de8)[_0x5eca0a(0x1b8)]('Preview:\x20data\x20'+_0x200d47['command']+_0x5eca0a(0x1ab)+_0x31f31a)['build']();}),_0x3b05fd;}export const dataDefinitions=specs['map'](makeDataCommand);function buildBatchUpdateResult(_0xf3fa5c,_0x3c587f){const _0x1d44a5=a25_0x3b3155;return{'operation':_0x1d44a5(0x19e),'mode':_0x1d44a5(0x1a8),'ids':_0xf3fa5c,'total':_0xf3fa5c[_0x1d44a5(0x17d)],'result':_0x3c587f};}