@lovrabet/lovrabet-cli 2.3.2 → 2.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.d.ts +15 -0
  12. package/lib/commands/approval/index.js +1 -0
  13. package/lib/commands/artifact/index.js +1 -1
  14. package/lib/commands/auth/device.js +1 -1
  15. package/lib/commands/auth/index.js +1 -1
  16. package/lib/commands/auth/prompt.js +1 -1
  17. package/lib/commands/bff/detail.js +1 -1
  18. package/lib/commands/bff/exec.js +1 -1
  19. package/lib/commands/bff/index.js +1 -1
  20. package/lib/commands/cli-skill/index.js +1 -1
  21. package/lib/commands/common/config-policy.js +1 -1
  22. package/lib/commands/common/constraints.js +1 -1
  23. package/lib/commands/common/flags.js +1 -1
  24. package/lib/commands/common/local-file.js +1 -1
  25. package/lib/commands/config/definitions.js +1 -1
  26. package/lib/commands/config/init.js +1 -1
  27. package/lib/commands/config/shared.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/kb/index.js +1 -1
  37. package/lib/commands/logs/index.js +1 -1
  38. package/lib/commands/notification/config-list.js +1 -1
  39. package/lib/commands/notification/index.js +1 -1
  40. package/lib/commands/notification/shared.js +1 -1
  41. package/lib/commands/ocr/index.js +1 -1
  42. package/lib/commands/permit/dataset-get.js +1 -1
  43. package/lib/commands/permit/dataset-set.js +1 -1
  44. package/lib/commands/permit/index.js +1 -1
  45. package/lib/commands/permit/page-get.js +1 -1
  46. package/lib/commands/permit/page-set.js +1 -1
  47. package/lib/commands/permit/role-menus-set.js +1 -1
  48. package/lib/commands/permit/role-menus.js +1 -1
  49. package/lib/commands/permit/shared.js +1 -1
  50. package/lib/commands/personal-bff/index.js +1 -1
  51. package/lib/commands/registry.js +1 -1
  52. package/lib/commands/role/create.js +1 -1
  53. package/lib/commands/role/delete.js +1 -1
  54. package/lib/commands/role/detail.js +1 -1
  55. package/lib/commands/role/index.js +1 -1
  56. package/lib/commands/role/list.js +1 -1
  57. package/lib/commands/role/shared.js +1 -1
  58. package/lib/commands/role/update.js +1 -1
  59. package/lib/commands/role/user-add.js +1 -1
  60. package/lib/commands/role/user-remove.js +1 -1
  61. package/lib/commands/schedule/index.js +1 -1
  62. package/lib/commands/schema.js +1 -1
  63. package/lib/commands/service/dynamic.js +1 -1
  64. package/lib/commands/service/function-name-adapter.js +1 -1
  65. package/lib/commands/service/index.js +1 -1
  66. package/lib/commands/service/registry.js +1 -1
  67. package/lib/commands/skill/commands/create.js +1 -1
  68. package/lib/commands/skill/commands/diagram.js +1 -1
  69. package/lib/commands/skill/commands/install.js +1 -1
  70. package/lib/commands/skill/commands/list.js +1 -1
  71. package/lib/commands/skill/commands/push.js +1 -1
  72. package/lib/commands/skill/commands/validate.js +1 -1
  73. package/lib/commands/skill/diagram.js +1 -1
  74. package/lib/commands/skill/flags.js +1 -1
  75. package/lib/commands/skill/index.js +1 -1
  76. package/lib/commands/skill/manifest-helpers.js +1 -1
  77. package/lib/commands/skill/push-execute.js +1 -1
  78. package/lib/commands/skill/push-flow-helpers.js +1 -1
  79. package/lib/commands/skill/push-retarget.js +1 -1
  80. package/lib/commands/skill/scopes.js +1 -1
  81. package/lib/commands/skill/summary.js +1 -1
  82. package/lib/commands/skill/templates.js +1 -1
  83. package/lib/commands/skill/validate.js +1 -1
  84. package/lib/commands/sql/detail.js +1 -1
  85. package/lib/commands/sql/exec.js +1 -1
  86. package/lib/commands/sql/index.js +1 -1
  87. package/lib/commands/update.js +1 -1
  88. package/lib/commands/user-account/bind.js +1 -1
  89. package/lib/commands/user-account/index.js +1 -1
  90. package/lib/commands/workspace/index.js +1 -1
  91. package/lib/config/domain-config.js +1 -1
  92. package/lib/config/schema.js +1 -1
  93. package/lib/constant/app.js +1 -1
  94. package/lib/constant/auth-mode.js +1 -1
  95. package/lib/constant/cli.js +1 -1
  96. package/lib/constant/defaults.js +1 -1
  97. package/lib/constant/distribution.js +1 -1
  98. package/lib/constant/domain.js +1 -1
  99. package/lib/constant/env.js +1 -1
  100. package/lib/constant/output.js +1 -1
  101. package/lib/constant/product.js +1 -1
  102. package/lib/constant/region.js +1 -1
  103. package/lib/constant/risk.js +1 -1
  104. package/lib/constant/url.js +1 -1
  105. package/lib/context.js +1 -1
  106. package/lib/core/api-client.d.ts +83 -0
  107. package/lib/core/api-client.js +1 -1
  108. package/lib/core/db-resolver.js +1 -1
  109. package/lib/core/kb-search-client.js +1 -1
  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.js +1 -1
  128. package/lib/generated/build-info.d.ts +4 -4
  129. package/lib/generated/build-info.js +1 -1
  130. package/lib/generated/official-routing.js +1 -1
  131. package/lib/generated/routing-contract.js +1 -1
  132. package/lib/help.js +1 -1
  133. package/lib/postinstall.js +1 -1
  134. package/lib/runtime/confirmation.js +1 -1
  135. package/lib/runtime/event.js +1 -1
  136. package/lib/runtime/index.js +1 -1
  137. package/lib/runtime/queue.js +1 -1
  138. package/lib/runtime/resolve.js +1 -1
  139. package/lib/skills/builtin-skill.js +1 -1
  140. package/lib/skills/npx-skills-add.js +1 -1
  141. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  142. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  143. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  144. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  145. package/lib/skills/runtime-skill-sync/links.js +1 -1
  146. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  147. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  148. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  149. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  150. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  151. package/lib/skills/runtime-skill-sync/push.js +1 -1
  152. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  153. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  154. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  155. package/lib/skills/runtime-skill-sync.js +1 -1
  156. package/lib/skills/skill-presence.js +1 -1
  157. package/lib/utils/access-key-redaction.js +1 -1
  158. package/lib/utils/apply-jq-filter.js +1 -1
  159. package/lib/utils/cli-version-check.js +1 -1
  160. package/lib/utils/cli-version-policy.js +1 -1
  161. package/lib/utils/logger.js +1 -1
  162. package/lib/utils/lossless-json.js +1 -1
  163. package/lib/utils/params.js +1 -1
  164. package/lib/utils/positive-safe-integer.d.ts +5 -0
  165. package/lib/utils/positive-safe-integer.js +1 -0
  166. package/lib/utils/redaction.d.ts +17 -0
  167. package/lib/utils/redaction.js +1 -0
  168. package/lib/utils/update-notice.js +1 -1
  169. package/lib/utils/version.js +1 -1
  170. package/lib/utils/write-cli-side-channel.js +1 -1
  171. package/package.json +1 -1
  172. package/skills/lovrabet/SKILL.md +3 -2
  173. package/skills/lovrabet/references/lovrabet-approval-workflow.md +73 -0
  174. package/skills/lovrabet.manifest.json +4 -3
@@ -1 +1 @@
1
- const a12_0x41b91b=a12_0x54e4;(function(_0x2090b5,_0x26c250){const _0x45ea7f=a12_0x54e4,_0x4669e6=_0x2090b5();while(!![]){try{const _0x4f5ad9=parseInt(_0x45ea7f(0x1dc))/0x1+parseInt(_0x45ea7f(0x1ba))/0x2+parseInt(_0x45ea7f(0x1f0))/0x3+parseInt(_0x45ea7f(0x1ef))/0x4+-parseInt(_0x45ea7f(0x1f5))/0x5+parseInt(_0x45ea7f(0x1e2))/0x6*(parseInt(_0x45ea7f(0x1e0))/0x7)+-parseInt(_0x45ea7f(0x206))/0x8*(parseInt(_0x45ea7f(0x1c0))/0x9);if(_0x4f5ad9===_0x26c250)break;else _0x4669e6['push'](_0x4669e6['shift']());}catch(_0x1dbce6){_0x4669e6['push'](_0x4669e6['shift']());}}}(a12_0x429d,0x829ed));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';function a12_0x54e4(_0x137988,_0x233366){_0x137988=_0x137988-0x1af;const _0x429d2d=a12_0x429d();let _0x54e4f2=_0x429d2d[_0x137988];return _0x54e4f2;}function a12_0x429d(){const _0x14c116=['Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','expired','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.','\x20doctor','access_key','No\x20AccessKey\x20found\x20in\x20','nonInteractive','development','global\x20config','str','=ak_xxx','validation','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Option\x20A:\x20','14941736ZyKeaN','Then\x20verify\x20with:\x20','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','project','Clear\x20from\x20global\x20config\x20(default)','string','Clear\x20the\x20AccessKey\x20from\x20config','Status:\x20valid','\x20\x20export\x20','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','Removes\x20the\x20AccessKey\x20from\x20the\x20selected\x20Lovrabet\x20config.\x20Commands\x20that\x20need\x20that\x20key\x20will\x20require\x20login\x20again.','Shorthand\x20for\x20--access-key','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','userCenterDisplayName','Write\x20to\x20global\x20config\x20(default)','\x20config.','2058532HCEGyp','status','Invalid\x20accessKey\x20format.','login','authRequired','write','9gapTJf','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','cancelled','accessKeyCreatePath','ACCESS_KEY','global','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','\x20(via\x20','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','read','Save\x20the\x20AccessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20the\x20project\x20file)','code','project\x20config','Option\x20C:\x20environment\x20variable','Tip:\x20you\x20can\x20also\x20run:','newConfigFileName','push','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','access-key','Missing\x20accessKey.','auth','join','AccessKey\x20cleared\x20from\x20','AccessKey:\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>','isTTY','AccessKey\x20(ak_xxx...)','Show\x20current\x20authentication\x20status','72676DiLMgk','envName','env','Auth\x20mode:\x20','1081017EpNHvP','success','6wCTifd','\x20config.\x20Nothing\x20to\x20clear.','scope','check','\x20Current\x20env:\x20','Use\x20`','trim','\x20auth\x20status','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','accessKey','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','test','stdin','3122840wjOjju','2092185OzPXKa','bool','boolean','daily','`auth\x20login`\x20does\x20not\x20support\x20--yes.','1658700OvWLgD','AccessKey\x20saved\x20to\x20','\x20env\x20var'];a12_0x429d=function(){return _0x14c116;};return a12_0x429d();}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(_0x3bc567=USER_ACCESS_KEY_CREATE_URL){const _0x1333ba=a12_0x54e4;writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x1333ba(0x1b7)]+':'),writeCliSideChannelLine('\x0a'+_0x3bc567+'\x0a'),writeCliSideChannelLine(_0x1333ba(0x1ce)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x1333ba(0x1d8));}function buildAccessKeySetupGuide(_0x10d3b7=USER_ACCESS_KEY_CREATE_URL){const _0x1ba2c3=a12_0x54e4;return['AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x1ba2c3(0x1b7)]+':',_0x10d3b7,'Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]'][_0x1ba2c3(0x1d5)]('\x0a');}function canPromptForAccessKey(_0x1fc633){const _0x458817=a12_0x54e4;return!_0x1fc633['nonInteractive']&&process[_0x458817(0x1ee)][_0x458817(0x1d9)]!==![]&&process['stdout'][_0x458817(0x1d9)]!==![];}function resolveAuthScopeFlags(_0x4b0ba5){const _0x45e8e2=a12_0x54e4;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x4b0ba5[_0x45e8e2(0x1f1)](_0x45e8e2(0x1c5)),'explicitProject':_0x4b0ba5[_0x45e8e2(0x1f1)](_0x45e8e2(0x209)),'policy':'global-default'}));}async function resolveAuthWriteInput(_0x2cbb58){const _0x40a2e8=a12_0x54e4;let _0x49ff36=(_0x2cbb58['str']('access-key')||_0x2cbb58[_0x40a2e8(0x201)]('ak')||'')['trim']();const _0x1a332a=(_0x2cbb58[_0x40a2e8(0x201)]('env')||'')[_0x40a2e8(0x1e8)](),_0x9e3a6=''+getUserDomain()+PRODUCT_CONFIG[_0x40a2e8(0x1c3)];if(!_0x49ff36&&canPromptForAccessKey(_0x2cbb58))try{showAccessKeyCreateHint(_0x9e3a6),_0x49ff36=await promptAccessKey('');}catch(_0x13d2c7){if(isAbortPrompt(_0x13d2c7))throw CliErrors[_0x40a2e8(0x1c2)]();throw _0x13d2c7;}if(!_0x49ff36)throw CliErrors[_0x40a2e8(0x203)](_0x40a2e8(0x1d3),buildAccessKeySetupGuide(_0x9e3a6));if(!ACCESS_KEY_PATTERN[_0x40a2e8(0x1ed)](_0x49ff36))throw CliErrors['validation'](_0x40a2e8(0x1bc),_0x40a2e8(0x1b6));if(!_0x1a332a)return{'accessKey':_0x49ff36};const _0x4ea93a=normalizeEnv(_0x1a332a);return{'accessKey':_0x49ff36,'env':isDaily(_0x4ea93a)?_0x40a2e8(0x1f3):isDev(_0x4ea93a)?_0x40a2e8(0x1ff):'production'};}export const authDefinitions=[{'service':'auth','command':a12_0x41b91b(0x1bd),'description':a12_0x41b91b(0x1ca),'risk':a12_0x41b91b(0x1bf),'confirmationDescription':a12_0x41b91b(0x1fa),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x41b91b(0x1d2),'type':a12_0x41b91b(0x1af),'description':a12_0x41b91b(0x1da)},{'name':'ak','type':a12_0x41b91b(0x1af),'description':a12_0x41b91b(0x1b5)},{'name':a12_0x41b91b(0x1c5),'type':a12_0x41b91b(0x1f2),'description':a12_0x41b91b(0x1b8),'default':!![]},{'name':a12_0x41b91b(0x209),'type':a12_0x41b91b(0x1f2),'description':a12_0x41b91b(0x1c6),'default':![]}],async 'execute'(_0x42c7ae){const _0x21a0e8=a12_0x41b91b;if(_0x42c7ae[_0x21a0e8(0x1f1)]('yes'))throw CliErrors[_0x21a0e8(0x203)](_0x21a0e8(0x1f4),_0x21a0e8(0x1e7)+CLI_BIN_NAME+_0x21a0e8(0x1c1)+CLI_BIN_NAME+_0x21a0e8(0x1ec));const _0x52670c=(_0x42c7ae['str'](_0x21a0e8(0x1d2))||_0x42c7ae[_0x21a0e8(0x201)]('ak')||'')['trim']();if(!_0x52670c&&_0x42c7ae[_0x21a0e8(0x1fe)])return{'ok':!![],'message':buildAccessKeySetupGuide(''+getUserDomain()+PRODUCT_CONFIG[_0x21a0e8(0x1c3)])};const _0x2eebe8=await resolveAuthWriteInput(_0x42c7ae),_0x274666=resolveAuthScopeFlags(_0x42c7ae),_0x175cc2=readScopedConfig(_0x274666);_0x175cc2[_0x21a0e8(0x1eb)]=_0x2eebe8[_0x21a0e8(0x1eb)];_0x2eebe8['env']&&(_0x175cc2[_0x21a0e8(0x1de)]=_0x2eebe8[_0x21a0e8(0x1de)]);writeScopedConfig(_0x175cc2,_0x274666);const _0x86c563=_0x274666[_0x21a0e8(0x1c5)]?'global':'project',_0x31a9e0=_0x175cc2[_0x21a0e8(0x1de)]?_0x21a0e8(0x1e6)+_0x175cc2['env']+'.':'';return{'ok':!![],'message':_0x21a0e8(0x1f6)+_0x86c563+_0x21a0e8(0x1b9)+_0x31a9e0+'\x20Verify:\x20'+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a12_0x41b91b(0x1d4),'command':'logout','description':a12_0x41b91b(0x1b0),'risk':a12_0x41b91b(0x1bf),'confirmationDescription':a12_0x41b91b(0x1b4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x41b91b(0x1c5),'type':a12_0x41b91b(0x1f2),'description':a12_0x41b91b(0x20a),'default':!![]},{'name':a12_0x41b91b(0x209),'type':a12_0x41b91b(0x1f2),'description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x23301b){const _0x3558fd=a12_0x41b91b,_0x3175d4=resolveAuthScopeFlags(_0x23301b),_0x486bae=readScopedConfig(_0x3175d4),_0x25d5f4=!!_0x486bae[_0x3558fd(0x1eb)];delete _0x486bae[_0x3558fd(0x1eb)],writeScopedConfig(_0x486bae,_0x3175d4);const _0x559d7b=_0x3175d4[_0x3558fd(0x1c5)]?_0x3558fd(0x1c5):'project';if(_0x25d5f4)return{'ok':!![],'message':_0x3558fd(0x1d6)+_0x559d7b+_0x3558fd(0x1b9)};return{'ok':!![],'message':_0x3558fd(0x1fd)+_0x559d7b+_0x3558fd(0x1e3)};}},{'service':a12_0x41b91b(0x1d4),'command':a12_0x41b91b(0x1bb),'description':a12_0x41b91b(0x1db),'risk':a12_0x41b91b(0x1c9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':'boolean','description':'Read\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a12_0x41b91b(0x209),'type':'boolean','description':a12_0x41b91b(0x204),'default':![]},{'name':a12_0x41b91b(0x1e5),'type':a12_0x41b91b(0x1f2),'description':a12_0x41b91b(0x1ea),'default':![]}],async 'execute'(_0x3379db){const _0x598493=a12_0x41b91b,_0x353708=resolveAuthScopeFlags(_0x3379db),_0x1ee346=readScopedConfig(_0x353708),_0x391f14=productEnvName(_0x598493(0x1c4)),_0x19d77a=productEnv('ACCESS_KEY')||undefined,_0x57cf97=_0x1ee346[_0x598493(0x1eb)]||undefined,_0x517a09=_0x19d77a||_0x57cf97,_0x47142f=_0x19d77a?_0x391f14+_0x598493(0x1f7):_0x57cf97?(_0x353708[_0x598493(0x1c5)]?'global':_0x598493(0x209))+'\x20config':null,_0x207380=[_0x598493(0x1df)+AUTH_MODE['ClientAk']];if(_0x517a09){const _0x3dc304=maskCliAccessKey(_0x517a09);_0x207380[_0x598493(0x1d0)]('AccessKey:\x20'+_0x3dc304+(_0x47142f?'\x20(via\x20'+_0x47142f+')':'')),_0x207380['push'](_0x598493(0x1b1));}if(!_0x517a09){_0x207380[_0x598493(0x1d0)](''),_0x207380['push'](_0x598493(0x1b3)),_0x207380[_0x598493(0x1d0)](''),_0x207380['push'](_0x598493(0x205)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x207380[_0x598493(0x1d0)](''),_0x207380['push']('Option\x20B:\x20apps\x20config\x20('+PRODUCT_CONFIG[_0x598493(0x1cf)]+')'),_0x207380['push'](_0x598493(0x1c8)),_0x207380[_0x598493(0x1d0)](''),_0x207380['push'](_0x598493(0x1cd)),_0x207380[_0x598493(0x1d0)](_0x598493(0x1b2)+_0x391f14+_0x598493(0x202)),_0x207380['push'](''),_0x207380[_0x598493(0x1d0)](_0x598493(0x207)+CLI_BIN_NAME+_0x598493(0x1e9)),_0x207380[_0x598493(0x1d0)](_0x598493(0x208)+CLI_BIN_NAME+_0x598493(0x1fb));if(_0x3379db['bool'](_0x598493(0x1e5))){const _0x18b7a1=readStoredDeviceCode();if(_0x18b7a1&&!isStoredDeviceCodeExpired(_0x18b7a1)){const _0x278e35=getUserDomain(),_0x47c332=await fetchDeviceToken(_0x278e35,_0x18b7a1[_0x598493(0x1cb)]);if(_0x47c332[_0x598493(0x1bb)]===_0x598493(0x1e1)&&_0x47c332[_0x598493(0x1fc)]){const _0x298881={'global':_0x18b7a1[_0x598493(0x1e4)]===_0x598493(0x1c5)},_0xd34ebf=readScopedConfig(_0x298881);_0xd34ebf[_0x598493(0x1eb)]=_0x47c332['access_key'],writeScopedConfig(_0xd34ebf,_0x298881),deleteStoredDeviceCode();const _0x482371=_0x47c332[_0x598493(0x1fc)],_0x240e51=maskCliAccessKey(_0x482371),_0x901e2a=_0x18b7a1[_0x598493(0x1e4)]===_0x598493(0x1c5)?_0x598493(0x200):_0x598493(0x1cc);return{'ok':!![],'message':['Auth\x20mode:\x20'+AUTH_MODE['ClientAk'],_0x598493(0x1d7)+_0x240e51+_0x598493(0x1c7)+_0x901e2a+')',_0x598493(0x1b1)][_0x598493(0x1d5)]('\x0a')};}_0x47c332[_0x598493(0x1bb)]===_0x598493(0x1f9)&&deleteStoredDeviceCode();throw CliErrors[_0x598493(0x1be)](_0x598493(0x1f8));}throw CliErrors[_0x598493(0x1be)](_0x207380['join']('\x0a'));}}return{'ok':!![],'message':_0x207380['join']('\x0a')};}},{'service':a12_0x41b91b(0x1d4),'command':'info','description':a12_0x41b91b(0x1d1),'risk':a12_0x41b91b(0x1c9),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0xd3e36f){const _0x3beb01=a12_0x41b91b,_0x16f4cf=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x16f4cf,'meta':{'env':_0xd3e36f[_0x3beb01(0x1dd)]??'production'}}};}},authDeviceDefinition];
1
+ const a13_0x188d76=a13_0x4b41;(function(_0x37e594,_0x14ecb0){const _0x25b18c=a13_0x4b41,_0x27f9c4=_0x37e594();while(!![]){try{const _0x4b511d=parseInt(_0x25b18c(0x202))/0x1*(parseInt(_0x25b18c(0x204))/0x2)+parseInt(_0x25b18c(0x210))/0x3*(-parseInt(_0x25b18c(0x1d1))/0x4)+parseInt(_0x25b18c(0x1bb))/0x5+-parseInt(_0x25b18c(0x211))/0x6*(parseInt(_0x25b18c(0x1ed))/0x7)+parseInt(_0x25b18c(0x1df))/0x8*(-parseInt(_0x25b18c(0x1f5))/0x9)+-parseInt(_0x25b18c(0x1ca))/0xa+parseInt(_0x25b18c(0x1db))/0xb;if(_0x4b511d===_0x14ecb0)break;else _0x27f9c4['push'](_0x27f9c4['shift']());}catch(_0x514e38){_0x27f9c4['push'](_0x27f9c4['shift']());}}}(a13_0x1f87,0x295d4));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(_0x2d1a20=USER_ACCESS_KEY_CREATE_URL){const _0x1343b3=a13_0x4b41;writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x1343b3(0x1dc)]+':'),writeCliSideChannelLine('\x0a'+_0x2d1a20+'\x0a'),writeCliSideChannelLine(_0x1343b3(0x205)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>');}function buildAccessKeySetupGuide(_0x521349=USER_ACCESS_KEY_CREATE_URL){const _0x59fd49=a13_0x4b41;return['AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x59fd49(0x1dc)]+':',_0x521349,'Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20'+CLI_BIN_NAME+_0x59fd49(0x1fb)][_0x59fd49(0x1d7)]('\x0a');}function canPromptForAccessKey(_0xe4373c){const _0x4a8f8a=a13_0x4b41;return!_0xe4373c[_0x4a8f8a(0x203)]&&process[_0x4a8f8a(0x213)][_0x4a8f8a(0x1c0)]!==![]&&process[_0x4a8f8a(0x206)][_0x4a8f8a(0x1c0)]!==![];}function resolveAuthScopeFlags(_0x5f2d91){const _0x5ae2fb=a13_0x4b41;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x5f2d91[_0x5ae2fb(0x1d3)](_0x5ae2fb(0x207)),'explicitProject':_0x5f2d91[_0x5ae2fb(0x1d3)](_0x5ae2fb(0x1c8)),'policy':'global-default'}));}async function resolveAuthWriteInput(_0x2ed4c9){const _0x2a1388=a13_0x4b41;let _0x28f25d=(_0x2ed4c9['str']('access-key')||_0x2ed4c9[_0x2a1388(0x216)]('ak')||'')['trim']();const _0x1ca878=(_0x2ed4c9[_0x2a1388(0x216)](_0x2a1388(0x1e2))||'')[_0x2a1388(0x1c7)](),_0x33af9d=''+getUserDomain()+PRODUCT_CONFIG[_0x2a1388(0x1e9)];if(!_0x28f25d&&canPromptForAccessKey(_0x2ed4c9))try{showAccessKeyCreateHint(_0x33af9d),_0x28f25d=await promptAccessKey('');}catch(_0x4b3475){if(isAbortPrompt(_0x4b3475))throw CliErrors[_0x2a1388(0x20a)]();throw _0x4b3475;}if(!_0x28f25d)throw CliErrors[_0x2a1388(0x1c4)]('Missing\x20accessKey.',buildAccessKeySetupGuide(_0x33af9d));if(!ACCESS_KEY_PATTERN[_0x2a1388(0x20d)](_0x28f25d))throw CliErrors[_0x2a1388(0x1c4)](_0x2a1388(0x1ea),_0x2a1388(0x1f0));if(!_0x1ca878)return{'accessKey':_0x28f25d};const _0x451767=normalizeEnv(_0x1ca878);return{'accessKey':_0x28f25d,'env':isDaily(_0x451767)?'daily':isDev(_0x451767)?'development':_0x2a1388(0x1e0)};}function a13_0x4b41(_0x52bfee,_0x14805d){_0x52bfee=_0x52bfee-0x1bb;const _0x1f8713=a13_0x1f87();let _0x4b4193=_0x1f8713[_0x52bfee];return _0x4b4193;}function a13_0x1f87(){const _0x165fda=['81198ETSJre','Shorthand\x20for\x20--access-key','stdin','status','\x20Current\x20env:\x20','str','`auth\x20login`\x20does\x20not\x20support\x20--yes.','789565bvzYrj','No\x20AccessKey\x20found\x20in\x20','Clear\x20from\x20global\x20config\x20(default)','push','AccessKey\x20cleared\x20from\x20','isTTY','Status:\x20valid','Option\x20B:\x20apps\x20config\x20(','boolean','validation','access_key','global\x20config','trim','project','authRequired','2882350IqZVSK','logout','accessKey','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','info','\x20\x20export\x20','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','195236XKqBYi','scope','bool','Use\x20`','Show\x20current\x20authentication\x20status','login','join','access-key','expired','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','4328643GxEcYv','userCenterDisplayName','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','Removes\x20the\x20AccessKey\x20from\x20the\x20selected\x20Lovrabet\x20config.\x20Commands\x20that\x20need\x20that\x20key\x20will\x20require\x20login\x20again.','462048Taakxc','production','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','env','newConfigFileName','ACCESS_KEY','\x20config.','\x20auth\x20status','project\x20config','AccessKey:\x20','accessKeyCreatePath','Invalid\x20accessKey\x20format.','\x20env\x20var','success','35YnLGFj','\x20Verify:\x20','ClientAk','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','string','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','code','read','9tyEeRZ','Save\x20the\x20AccessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20the\x20project\x20file)','Option\x20A:\x20','check','yes','auth','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','=ak_xxx','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','AccessKey\x20(ak_xxx...)','67YejuHL','nonInteractive','2402TdNMGf','Tip:\x20you\x20can\x20also\x20run:','stdout','global','Auth\x20mode:\x20','\x20(via\x20','cancelled','Then\x20verify\x20with:\x20','Option\x20C:\x20environment\x20variable','test','Saves\x20a\x20new\x20AccessKey\x20to\x20the\x20selected\x20Lovrabet\x20config.\x20An\x20existing\x20key\x20in\x20that\x20scope\x20is\x20overwritten.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20secret.','AccessKey\x20saved\x20to\x20','3VCtcuV'];a13_0x1f87=function(){return _0x165fda;};return a13_0x1f87();}export const authDefinitions=[{'service':a13_0x188d76(0x1fa),'command':a13_0x188d76(0x1d6),'description':a13_0x188d76(0x1f6),'risk':'write','confirmationDescription':a13_0x188d76(0x20e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x188d76(0x1d8),'type':a13_0x188d76(0x1f1),'description':a13_0x188d76(0x201)},{'name':'ak','type':'string','description':a13_0x188d76(0x212)},{'name':a13_0x188d76(0x207),'type':a13_0x188d76(0x1c3),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a13_0x188d76(0x1c8),'type':a13_0x188d76(0x1c3),'description':a13_0x188d76(0x200),'default':![]}],async 'execute'(_0x175ab5){const _0xf02897=a13_0x188d76;if(_0x175ab5[_0xf02897(0x1d3)](_0xf02897(0x1f9)))throw CliErrors[_0xf02897(0x1c4)](_0xf02897(0x217),_0xf02897(0x1d4)+CLI_BIN_NAME+_0xf02897(0x1fc)+CLI_BIN_NAME+_0xf02897(0x1fd));const _0x393371=(_0x175ab5[_0xf02897(0x216)]('access-key')||_0x175ab5[_0xf02897(0x216)]('ak')||'')[_0xf02897(0x1c7)]();if(!_0x393371&&_0x175ab5[_0xf02897(0x203)])return{'ok':!![],'message':buildAccessKeySetupGuide(''+getUserDomain()+PRODUCT_CONFIG[_0xf02897(0x1e9)])};const _0x46475b=await resolveAuthWriteInput(_0x175ab5),_0x49bbb2=resolveAuthScopeFlags(_0x175ab5),_0x26419f=readScopedConfig(_0x49bbb2);_0x26419f['accessKey']=_0x46475b[_0xf02897(0x1cc)];_0x46475b[_0xf02897(0x1e2)]&&(_0x26419f[_0xf02897(0x1e2)]=_0x46475b[_0xf02897(0x1e2)]);writeScopedConfig(_0x26419f,_0x49bbb2);const _0x29ea8d=_0x49bbb2[_0xf02897(0x207)]?_0xf02897(0x207):_0xf02897(0x1c8),_0x29d03c=_0x26419f['env']?_0xf02897(0x215)+_0x26419f[_0xf02897(0x1e2)]+'.':'';return{'ok':!![],'message':_0xf02897(0x20f)+_0x29ea8d+_0xf02897(0x1e5)+_0x29d03c+_0xf02897(0x1ee)+CLI_BIN_NAME+_0xf02897(0x1e6)};}},{'service':a13_0x188d76(0x1fa),'command':a13_0x188d76(0x1cb),'description':'Clear\x20the\x20AccessKey\x20from\x20config','risk':'write','confirmationDescription':a13_0x188d76(0x1de),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a13_0x188d76(0x1c3),'description':a13_0x188d76(0x1bd),'default':!![]},{'name':'project','type':'boolean','description':a13_0x188d76(0x1ff),'default':![]}],async 'execute'(_0x355eda){const _0x30f57d=a13_0x188d76,_0x259c96=resolveAuthScopeFlags(_0x355eda),_0x4f08a5=readScopedConfig(_0x259c96),_0x40a2c0=!!_0x4f08a5[_0x30f57d(0x1cc)];delete _0x4f08a5['accessKey'],writeScopedConfig(_0x4f08a5,_0x259c96);const _0x28aa50=_0x259c96[_0x30f57d(0x207)]?_0x30f57d(0x207):'project';if(_0x40a2c0)return{'ok':!![],'message':_0x30f57d(0x1bf)+_0x28aa50+'\x20config.'};return{'ok':!![],'message':_0x30f57d(0x1bc)+_0x28aa50+'\x20config.\x20Nothing\x20to\x20clear.'};}},{'service':a13_0x188d76(0x1fa),'command':a13_0x188d76(0x214),'description':a13_0x188d76(0x1d5),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a13_0x188d76(0x1c3),'description':'Read\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a13_0x188d76(0x1c8),'type':a13_0x188d76(0x1c3),'description':a13_0x188d76(0x1f2),'default':![]},{'name':a13_0x188d76(0x1f8),'type':'boolean','description':a13_0x188d76(0x1e1),'default':![]}],async 'execute'(_0x20a398){const _0x267de7=a13_0x188d76,_0x110456=resolveAuthScopeFlags(_0x20a398),_0x3e6179=readScopedConfig(_0x110456),_0x63a274=productEnvName(_0x267de7(0x1e4)),_0x2e6f39=productEnv('ACCESS_KEY')||undefined,_0x281cfe=_0x3e6179[_0x267de7(0x1cc)]||undefined,_0x5465cb=_0x2e6f39||_0x281cfe,_0x126e88=_0x2e6f39?_0x63a274+_0x267de7(0x1eb):_0x281cfe?(_0x110456[_0x267de7(0x207)]?_0x267de7(0x207):_0x267de7(0x1c8))+'\x20config':null,_0xed831=[_0x267de7(0x208)+AUTH_MODE[_0x267de7(0x1ef)]];if(_0x5465cb){const _0x1b6535=maskCliAccessKey(_0x5465cb);_0xed831[_0x267de7(0x1be)]('AccessKey:\x20'+_0x1b6535+(_0x126e88?'\x20(via\x20'+_0x126e88+')':'')),_0xed831[_0x267de7(0x1be)](_0x267de7(0x1c1));}if(!_0x5465cb){_0xed831['push'](''),_0xed831[_0x267de7(0x1be)](_0x267de7(0x1d0)),_0xed831[_0x267de7(0x1be)](''),_0xed831['push'](_0x267de7(0x1f7)+CLI_BIN_NAME+_0x267de7(0x1dd)),_0xed831[_0x267de7(0x1be)](''),_0xed831[_0x267de7(0x1be)](_0x267de7(0x1c2)+PRODUCT_CONFIG[_0x267de7(0x1e3)]+')'),_0xed831[_0x267de7(0x1be)]('{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}'),_0xed831['push'](''),_0xed831['push'](_0x267de7(0x20c)),_0xed831[_0x267de7(0x1be)](_0x267de7(0x1cf)+_0x63a274+_0x267de7(0x1fe)),_0xed831[_0x267de7(0x1be)](''),_0xed831[_0x267de7(0x1be)](_0x267de7(0x20b)+CLI_BIN_NAME+'\x20auth\x20status'),_0xed831[_0x267de7(0x1be)](_0x267de7(0x1da)+CLI_BIN_NAME+'\x20doctor');if(_0x20a398[_0x267de7(0x1d3)]('check')){const _0x366183=readStoredDeviceCode();if(_0x366183&&!isStoredDeviceCodeExpired(_0x366183)){const _0x461b92=getUserDomain(),_0x5f0305=await fetchDeviceToken(_0x461b92,_0x366183[_0x267de7(0x1f3)]);if(_0x5f0305[_0x267de7(0x214)]===_0x267de7(0x1ec)&&_0x5f0305['access_key']){const _0x512e49={'global':_0x366183[_0x267de7(0x1d2)]===_0x267de7(0x207)},_0x4dd75d=readScopedConfig(_0x512e49);_0x4dd75d[_0x267de7(0x1cc)]=_0x5f0305[_0x267de7(0x1c5)],writeScopedConfig(_0x4dd75d,_0x512e49),deleteStoredDeviceCode();const _0x2c082c=_0x5f0305['access_key'],_0x52c1c0=maskCliAccessKey(_0x2c082c),_0x2b82a1=_0x366183['scope']===_0x267de7(0x207)?_0x267de7(0x1c6):_0x267de7(0x1e7);return{'ok':!![],'message':['Auth\x20mode:\x20'+AUTH_MODE[_0x267de7(0x1ef)],_0x267de7(0x1e8)+_0x52c1c0+_0x267de7(0x209)+_0x2b82a1+')','Status:\x20valid'][_0x267de7(0x1d7)]('\x0a')};}_0x5f0305[_0x267de7(0x214)]===_0x267de7(0x1d9)&&deleteStoredDeviceCode();throw CliErrors[_0x267de7(0x1c9)](_0x267de7(0x1cd));}throw CliErrors[_0x267de7(0x1c9)](_0xed831['join']('\x0a'));}}return{'ok':!![],'message':_0xed831[_0x267de7(0x1d7)]('\x0a')};}},{'service':a13_0x188d76(0x1fa),'command':a13_0x188d76(0x1ce),'description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':a13_0x188d76(0x1f4),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x3122c7){const _0x7d830b=a13_0x188d76,_0x56ae59=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x56ae59,'meta':{'env':_0x3122c7['envName']??_0x7d830b(0x1e0)}}};}},authDeviceDefinition];
@@ -1 +1 @@
1
- (function(_0x2671ca,_0x586073){const _0x5caa5c=a13_0x24c6,_0x57d2d1=_0x2671ca();while(!![]){try{const _0x5ed97a=-parseInt(_0x5caa5c(0xf3))/0x1+parseInt(_0x5caa5c(0xf8))/0x2*(parseInt(_0x5caa5c(0x105))/0x3)+-parseInt(_0x5caa5c(0xfd))/0x4*(parseInt(_0x5caa5c(0x104))/0x5)+parseInt(_0x5caa5c(0xfa))/0x6+parseInt(_0x5caa5c(0x102))/0x7*(parseInt(_0x5caa5c(0xf7))/0x8)+-parseInt(_0x5caa5c(0xf6))/0x9+-parseInt(_0x5caa5c(0xfb))/0xa*(-parseInt(_0x5caa5c(0x106))/0xb);if(_0x5ed97a===_0x586073)break;else _0x57d2d1['push'](_0x57d2d1['shift']());}catch(_0x5b18fe){_0x57d2d1['push'](_0x57d2d1['shift']());}}}(a13_0x260d,0xa5238));function a13_0x260d(){const _0x3c0cf9=['name','7995414tBvgbh','30foOupW','trim','428wEpYgv','SIGINT','close','race','User\x20aborted\x20prompt','7AmSABC','AccessKey\x20(','60595oGCYmt','1166097HeieuJ','5089293GClXQB','once','AbortPrompt','stdout','stdin','719867OYbopK','removeListener','AccessKey\x20(paste\x20ak_...):\x20','10726551DIMYvK','3095128dHIJhk','4EzvFBZ'];a13_0x260d=function(){return _0x3c0cf9;};return a13_0x260d();}import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x17f391=a13_0x24c6;super(_0x17f391(0x101)),this[_0x17f391(0xf9)]=_0x17f391(0x108);}}function createSafeRl(){const _0xf143b0=a13_0x24c6,_0x2a5c92=createInterface({'input':process[_0xf143b0(0x10a)],'output':process[_0xf143b0(0x109)]});let _0x2b76c1;const _0x1efc5c=new Promise((_0x2e3931,_0x47fd10)=>{const _0x13d8ec=_0xf143b0;_0x2b76c1=()=>{const _0x224bb2=a13_0x24c6;_0x2b76c1&&(_0x2a5c92[_0x224bb2(0xf4)](_0x224bb2(0xfe),_0x2b76c1),_0x2b76c1=undefined);try{_0x2a5c92[_0x224bb2(0xff)]();}catch{}_0x47fd10(new AbortPrompt());},_0x2a5c92[_0x13d8ec(0x107)]('SIGINT',_0x2b76c1);}),_0x444920=()=>{const _0x35c1c1=_0xf143b0;_0x2b76c1&&(_0x2a5c92['removeListener'](_0x35c1c1(0xfe),_0x2b76c1),_0x2b76c1=undefined);try{_0x2a5c92['close']();}catch{}};return{'rl':_0x2a5c92,'abortPromise':_0x1efc5c,'disposeSuccess':_0x444920};}function a13_0x24c6(_0x7e6a3,_0x8817a8){_0x7e6a3=_0x7e6a3-0xf3;const _0x260d3c=a13_0x260d();let _0x24c630=_0x260d3c[_0x7e6a3];return _0x24c630;}export async function promptAccessKey(_0x2605b2=''){const _0x4cef6e=a13_0x24c6,{rl:_0x1133d3,abortPromise:_0x4cd934,disposeSuccess:_0xe92af7}=createSafeRl(),_0xf1ec39=new Promise(_0x1314d5=>{const _0x456fda=a13_0x24c6,_0x9f870f=_0x2605b2?_0x456fda(0x103)+_0x2605b2+'):\x20':_0x456fda(0xf5);_0x1133d3['question'](_0x9f870f,_0x45b4f7=>{const _0x8b2ce7=_0x456fda;_0xe92af7(),_0x1314d5(_0x45b4f7[_0x8b2ce7(0xfc)]()||_0x2605b2);});});return Promise[_0x4cef6e(0x100)]([_0xf1ec39,_0x4cd934]);}export function isAbortPrompt(_0x47fc97){const _0xf100d1=a13_0x24c6;return _0x47fc97 instanceof Error&&_0x47fc97[_0xf100d1(0xf9)]===_0xf100d1(0x108);}
1
+ function a14_0x2531(_0x1b8b03,_0x1ad082){_0x1b8b03=_0x1b8b03-0x146;const _0x211995=a14_0x2119();let _0x2531d9=_0x211995[_0x1b8b03];return _0x2531d9;}function a14_0x2119(){const _0x2570c7=['8799010GGUSAN','AbortPrompt','2567092DXPhcv','473763kIRRlS','8GUsMwf','AccessKey\x20(paste\x20ak_...):\x20','70YPhcgE','SIGINT','trim','):\x20','1314wkwomy','close','9883405DaehxT','51792AKWviA','59460OFbbYA','name','User\x20aborted\x20prompt','750ZJmbVF','stdin','41030clXvDm'];a14_0x2119=function(){return _0x2570c7;};return a14_0x2119();}(function(_0x595894,_0x30b53c){const _0x288312=a14_0x2531,_0x5f10d5=_0x595894();while(!![]){try{const _0x34f377=-parseInt(_0x288312(0x150))/0x1+-parseInt(_0x288312(0x153))/0x2*(parseInt(_0x288312(0x147))/0x3)+parseInt(_0x288312(0x14f))/0x4+parseInt(_0x288312(0x14a))/0x5*(parseInt(_0x288312(0x146))/0x6)+parseInt(_0x288312(0x159))/0x7*(-parseInt(_0x288312(0x151))/0x8)+parseInt(_0x288312(0x157))/0x9*(parseInt(_0x288312(0x14c))/0xa)+parseInt(_0x288312(0x14d))/0xb;if(_0x34f377===_0x30b53c)break;else _0x5f10d5['push'](_0x5f10d5['shift']());}catch(_0x1cb656){_0x5f10d5['push'](_0x5f10d5['shift']());}}}(a14_0x2119,0xb89af));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x5c5156=a14_0x2531;super(_0x5c5156(0x149)),this[_0x5c5156(0x148)]=_0x5c5156(0x14e);}}function createSafeRl(){const _0xd134fc=a14_0x2531,_0x3d97de=createInterface({'input':process[_0xd134fc(0x14b)],'output':process['stdout']});let _0x509787;const _0xe53c08=new Promise((_0x37619c,_0x1caa0e)=>{_0x509787=()=>{const _0x161350=a14_0x2531;_0x509787&&(_0x3d97de['removeListener'](_0x161350(0x154),_0x509787),_0x509787=undefined);try{_0x3d97de[_0x161350(0x158)]();}catch{}_0x1caa0e(new AbortPrompt());},_0x3d97de['once']('SIGINT',_0x509787);}),_0x2e6284=()=>{const _0x37ef0a=_0xd134fc;_0x509787&&(_0x3d97de['removeListener'](_0x37ef0a(0x154),_0x509787),_0x509787=undefined);try{_0x3d97de['close']();}catch{}};return{'rl':_0x3d97de,'abortPromise':_0xe53c08,'disposeSuccess':_0x2e6284};}export async function promptAccessKey(_0x436e0c=''){const {rl:_0x27b5cd,abortPromise:_0x4f46b4,disposeSuccess:_0x50b36e}=createSafeRl(),_0x499159=new Promise(_0x2526cd=>{const _0x909d46=a14_0x2531,_0x3f31cd=_0x436e0c?'AccessKey\x20('+_0x436e0c+_0x909d46(0x156):_0x909d46(0x152);_0x27b5cd['question'](_0x3f31cd,_0x3673c6=>{const _0x1c603f=_0x909d46;_0x50b36e(),_0x2526cd(_0x3673c6[_0x1c603f(0x155)]()||_0x436e0c);});});return Promise['race']([_0x499159,_0x4f46b4]);}export function isAbortPrompt(_0x347444){const _0x3cf5d5=a14_0x2531;return _0x347444 instanceof Error&&_0x347444[_0x3cf5d5(0x148)]===_0x3cf5d5(0x14e);}
@@ -1 +1 @@
1
- function a14_0x4b8d(_0x1c9f7b,_0x43f86e){_0x1c9f7b=_0x1c9f7b-0xf1;const _0x31d5c4=a14_0x31d5();let _0x4b8d69=_0x31d5c4[_0x1c9f7b];return _0x4b8d69;}function a14_0x31d5(){const _0x2e9fd5=['34599169sVHzQG','Get\x20a\x20Backend\x20Function\x20endpoint\x20contract\x20by\x20function\x20name','Backend\x20Function\x20name','10amzLGN','423DOqmjd','246yOzdzX','appCode','18824vFUxiL','functionName','(none)','2599912hlLShW','47708bQtrCb','21264gflWEK','1261482ChuzDS','25SWiaDI','bff','str','description','read','1992388EcrnDf'];a14_0x31d5=function(){return _0x2e9fd5;};return a14_0x31d5();}const a14_0x3823ee=a14_0x4b8d;(function(_0x24a6e5,_0x44556b){const _0x2f9eaf=a14_0x4b8d,_0xc17200=_0x24a6e5();while(!![]){try{const _0xa13376=-parseInt(_0x2f9eaf(0xf8))/0x1+-parseInt(_0x2f9eaf(0xff))/0x2+-parseInt(_0x2f9eaf(0xf1))/0x3*(parseInt(_0x2f9eaf(0xf7))/0x4)+parseInt(_0x2f9eaf(0xfa))/0x5*(-parseInt(_0x2f9eaf(0xf9))/0x6)+parseInt(_0x2f9eaf(0xf6))/0x7+parseInt(_0x2f9eaf(0xf3))/0x8*(parseInt(_0x2f9eaf(0x104))/0x9)+parseInt(_0x2f9eaf(0x103))/0xa*(parseInt(_0x2f9eaf(0x100))/0xb);if(_0xa13376===_0x44556b)break;else _0xc17200['push'](_0xc17200['shift']());}catch(_0x367d8b){_0xc17200['push'](_0xc17200['shift']());}}}(a14_0x31d5,0x8dc47));import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a14_0x3823ee(0xfb),'command':'detail','description':a14_0x3823ee(0x101),'risk':a14_0x3823ee(0xfe),'flags':[{...NAME_FLAG,'required':!![],'description':a14_0x3823ee(0x102)}],async 'execute'(_0x5bcb2b){const _0x583d6b=a14_0x3823ee,_0x58b29d=await getBffEndpointContract(_0x5bcb2b[_0x583d6b(0xf2)],_0x5bcb2b[_0x583d6b(0xfc)]('name'));return{'ok':!![],'data':{'appCode':_0x58b29d[_0x583d6b(0xf2)],'functionName':_0x58b29d[_0x583d6b(0xf4)],'description':_0x58b29d[_0x583d6b(0xfd)]||_0x583d6b(0xf5),'version':_0x58b29d['version'],'gmtModified':_0x58b29d['gmtModified']}};}};
1
+ function a15_0x1e2c(){const _0x42b152=['1005330QgrglF','name','3256216txKoVW','description','appCode','Get\x20a\x20Backend\x20Function\x20endpoint\x20contract\x20by\x20function\x20name','version','6344268DjlvTz','3207086tNjxvE','(none)','Backend\x20Function\x20name','1jJASmm','11374101GeMYzQ','functionName','11349443ahcvVT','bff','3755577LLIoZH','4LxJXzn','gmtModified'];a15_0x1e2c=function(){return _0x42b152;};return a15_0x1e2c();}const a15_0xfb5ccf=a15_0x1763;(function(_0x209482,_0x4e69b5){const _0x3d36f3=a15_0x1763,_0x41110c=_0x209482();while(!![]){try{const _0x4bb591=-parseInt(_0x3d36f3(0x1f1))/0x1*(-parseInt(_0x3d36f3(0x1ee))/0x2)+-parseInt(_0x3d36f3(0x1f6))/0x3*(-parseInt(_0x3d36f3(0x1f7))/0x4)+-parseInt(_0x3d36f3(0x1f9))/0x5+-parseInt(_0x3d36f3(0x1ed))/0x6+-parseInt(_0x3d36f3(0x1f4))/0x7+-parseInt(_0x3d36f3(0x1fb))/0x8+parseInt(_0x3d36f3(0x1f2))/0x9;if(_0x4bb591===_0x4e69b5)break;else _0x41110c['push'](_0x41110c['shift']());}catch(_0x5987b4){_0x41110c['push'](_0x41110c['shift']());}}}(a15_0x1e2c,0xcb373));function a15_0x1763(_0x46aa05,_0x28487c){_0x46aa05=_0x46aa05-0x1ea;const _0x1e2c33=a15_0x1e2c();let _0x176366=_0x1e2c33[_0x46aa05];return _0x176366;}import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a15_0xfb5ccf(0x1f5),'command':'detail','description':a15_0xfb5ccf(0x1eb),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':a15_0xfb5ccf(0x1f0)}],async 'execute'(_0x21207a){const _0x19aab0=a15_0xfb5ccf,_0x153170=await getBffEndpointContract(_0x21207a['appCode'],_0x21207a['str'](_0x19aab0(0x1fa)));return{'ok':!![],'data':{'appCode':_0x153170[_0x19aab0(0x1ea)],'functionName':_0x153170[_0x19aab0(0x1f3)],'description':_0x153170[_0x19aab0(0x1fc)]||_0x19aab0(0x1ef),'version':_0x153170[_0x19aab0(0x1ec)],'gmtModified':_0x153170[_0x19aab0(0x1f8)]}};}};
@@ -1 +1 @@
1
- const a15_0x3ba173=a15_0x2841;(function(_0x31a643,_0x157fa1){const _0x39afc6=a15_0x2841,_0x16ab56=_0x31a643();while(!![]){try{const _0x4dc822=parseInt(_0x39afc6(0x79))/0x1+-parseInt(_0x39afc6(0x77))/0x2+-parseInt(_0x39afc6(0x6f))/0x3+parseInt(_0x39afc6(0x71))/0x4*(-parseInt(_0x39afc6(0x73))/0x5)+-parseInt(_0x39afc6(0x6c))/0x6+-parseInt(_0x39afc6(0x6d))/0x7+parseInt(_0x39afc6(0x70))/0x8;if(_0x4dc822===_0x157fa1)break;else _0x16ab56['push'](_0x16ab56['shift']());}catch(_0x2964af){_0x16ab56['push'](_0x16ab56['shift']());}}}(a15_0x55ca,0xa6633));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_0x2841(_0x40b28b,_0x2b84f8){_0x40b28b=_0x40b28b-0x69;const _0x55cadb=a15_0x55ca();let _0x284125=_0x55cadb[_0x40b28b];return _0x284125;}function a15_0x55ca(){const _0x276bd5=['name','read','7440774jrBFjy','7223986uXjFZA','Backend\x20Function\x20name\x20to\x20execute','1298298ijXEYN','35156912eXmEzP','4vuZjkf','Backend\x20Function\x20executed\x20in\x20','13535KgLNrr','bff','Execute\x20a\x20Backend\x20Function\x20script\x20by\x20function\x20name','exec','2159296gwmDtm','str','74157YitOjQ','params','now'];a15_0x55ca=function(){return _0x276bd5;};return a15_0x55ca();}export const bffExec={'service':a15_0x3ba173(0x74),'command':a15_0x3ba173(0x76),'description':a15_0x3ba173(0x75),'risk':a15_0x3ba173(0x6b),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x3ba173(0x6e)},PARAMS_FLAG],async 'execute'(_0x3f66c9){const _0x1fb72d=a15_0x3ba173,_0x5440bf=parseJsonParams(_0x3f66c9['str'](_0x1fb72d(0x7a))),_0x470127=Date[_0x1fb72d(0x69)](),_0x3b0ffc=await executeSdkBff(_0x3f66c9[_0x1fb72d(0x78)](_0x1fb72d(0x6a)),_0x5440bf),_0x19afc0=Date['now']()-_0x470127;return{'ok':!![],'data':{'result':_0x3b0ffc,'elapsed':_0x19afc0},'message':_0x1fb72d(0x72)+_0x19afc0+'ms'};}};
1
+ const a16_0x457f86=a16_0x3926;function a16_0x4cc7(){const _0x1b7953=['now','str','700783wZeHEG','1605AjaYqZ','3327928uahssA','exec','99928YOocxF','62574SmWUwi','473dmJwUa','1180570NFpJjo','Backend\x20Function\x20name\x20to\x20execute','Backend\x20Function\x20executed\x20in\x20','19376QuhKGd','16647957mdgDVC','Execute\x20a\x20Backend\x20Function\x20script\x20by\x20function\x20name','616RAejoZ','name','6urCFzT','read','params'];a16_0x4cc7=function(){return _0x1b7953;};return a16_0x4cc7();}(function(_0x47605a,_0x477cd8){const _0x30bfa4=a16_0x3926,_0x4c4d5f=_0x47605a();while(!![]){try{const _0x5c2b56=parseInt(_0x30bfa4(0x174))/0x1+-parseInt(_0x30bfa4(0x164))/0x2*(parseInt(_0x30bfa4(0x16f))/0x3)+parseInt(_0x30bfa4(0x16a))/0x4*(-parseInt(_0x30bfa4(0x161))/0x5)+parseInt(_0x30bfa4(0x165))/0x6*(-parseInt(_0x30bfa4(0x16d))/0x7)+-parseInt(_0x30bfa4(0x162))/0x8+-parseInt(_0x30bfa4(0x16b))/0x9+parseInt(_0x30bfa4(0x167))/0xa*(parseInt(_0x30bfa4(0x166))/0xb);if(_0x5c2b56===_0x477cd8)break;else _0x4c4d5f['push'](_0x4c4d5f['shift']());}catch(_0x4ac07d){_0x4c4d5f['push'](_0x4c4d5f['shift']());}}}(a16_0x4cc7,0xe5372));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a16_0x3926(_0x5aa977,_0x4fd96b){_0x5aa977=_0x5aa977-0x161;const _0x4cc705=a16_0x4cc7();let _0x39268f=_0x4cc705[_0x5aa977];return _0x39268f;}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':'bff','command':a16_0x457f86(0x163),'description':a16_0x457f86(0x16c),'risk':a16_0x457f86(0x170),'flags':[{...NAME_FLAG,'required':!![],'description':a16_0x457f86(0x168)},PARAMS_FLAG],async 'execute'(_0x25f2df){const _0x19d78d=a16_0x457f86,_0x31d4df=parseJsonParams(_0x25f2df[_0x19d78d(0x173)](_0x19d78d(0x171))),_0x5df889=Date[_0x19d78d(0x172)](),_0x11c981=await executeSdkBff(_0x25f2df[_0x19d78d(0x173)](_0x19d78d(0x16e)),_0x31d4df),_0x23fe6e=Date['now']()-_0x5df889;return{'ok':!![],'data':{'result':_0x11c981,'elapsed':_0x23fe6e},'message':_0x19d78d(0x169)+_0x23fe6e+'ms'};}};
@@ -1 +1 @@
1
- function a16_0x34ea(){const _0x4ad573=['14714bStuPl','1173337oIVuzb','192400BDLsVm','3089716NiBmgW','2202423hvbEqC','1594650VZpeiV','6150450FCfXPk','156ZRSOIL','18pQpraY','145BIbZNL','16ouCgzY','12sGSSrw'];a16_0x34ea=function(){return _0x4ad573;};return a16_0x34ea();}(function(_0x5cf941,_0x346f1b){const _0x518920=a16_0x550d,_0x2e5251=_0x5cf941();while(!![]){try{const _0x4eaa77=-parseInt(_0x518920(0xea))/0x1*(parseInt(_0x518920(0xed))/0x2)+parseInt(_0x518920(0xe5))/0x3+parseInt(_0x518920(0xeb))/0x4*(parseInt(_0x518920(0xe6))/0x5)+-parseInt(_0x518920(0xec))/0x6*(parseInt(_0x518920(0xf0))/0x7)+parseInt(_0x518920(0xef))/0x8*(-parseInt(_0x518920(0xe9))/0x9)+-parseInt(_0x518920(0xe7))/0xa+parseInt(_0x518920(0xee))/0xb*(parseInt(_0x518920(0xe8))/0xc);if(_0x4eaa77===_0x346f1b)break;else _0x2e5251['push'](_0x2e5251['shift']());}catch(_0x283940){_0x2e5251['push'](_0x2e5251['shift']());}}}(a16_0x34ea,0xbf5e6));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a16_0x550d(_0x31d480,_0x312c6e){_0x31d480=_0x31d480-0xe5;const _0x34eae2=a16_0x34ea();let _0x550d74=_0x34eae2[_0x31d480];return _0x550d74;}export const bffDefinitions=[bffDetail,bffExec];
1
+ function a17_0x4fd7(_0x1b16ad,_0x36b408){_0x1b16ad=_0x1b16ad-0xb2;const _0x469e29=a17_0x469e();let _0x4fd782=_0x469e29[_0x1b16ad];return _0x4fd782;}(function(_0x63d7b0,_0x16a321){const _0x3d24f6=a17_0x4fd7,_0x46a0d4=_0x63d7b0();while(!![]){try{const _0x1e69a4=parseInt(_0x3d24f6(0xb6))/0x1+-parseInt(_0x3d24f6(0xb5))/0x2*(parseInt(_0x3d24f6(0xb7))/0x3)+parseInt(_0x3d24f6(0xba))/0x4*(parseInt(_0x3d24f6(0xbd))/0x5)+-parseInt(_0x3d24f6(0xb8))/0x6*(parseInt(_0x3d24f6(0xbc))/0x7)+-parseInt(_0x3d24f6(0xb4))/0x8*(parseInt(_0x3d24f6(0xbb))/0x9)+parseInt(_0x3d24f6(0xb2))/0xa*(parseInt(_0x3d24f6(0xb3))/0xb)+parseInt(_0x3d24f6(0xb9))/0xc;if(_0x1e69a4===_0x16a321)break;else _0x46a0d4['push'](_0x46a0d4['shift']());}catch(_0x2995b9){_0x46a0d4['push'](_0x46a0d4['shift']());}}}(a17_0x469e,0xd5664));function a17_0x469e(){const _0x2e5881=['46430rwinvr','2508seqbBr','24296sKRAlT','622nHTEaZ','353787dsQPYn','14538tLBTxO','66YZRNpM','13004064XmPCfY','670896fDHfit','3438KZKaQl','295435ExWflq','45VwzFwf'];a17_0x469e=function(){return _0x2e5881;};return a17_0x469e();}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- const a17_0x5ba59d=a17_0x311f;(function(_0xbbc28b,_0x4806ae){const _0x2ae999=a17_0x311f,_0x53273=_0xbbc28b();while(!![]){try{const _0x998e39=-parseInt(_0x2ae999(0xe1))/0x1*(-parseInt(_0x2ae999(0xd4))/0x2)+parseInt(_0x2ae999(0xc3))/0x3*(parseInt(_0x2ae999(0xc1))/0x4)+parseInt(_0x2ae999(0xc7))/0x5*(parseInt(_0x2ae999(0xd1))/0x6)+parseInt(_0x2ae999(0xd2))/0x7*(-parseInt(_0x2ae999(0xd7))/0x8)+parseInt(_0x2ae999(0xdb))/0x9+-parseInt(_0x2ae999(0xcb))/0xa+-parseInt(_0x2ae999(0xda))/0xb;if(_0x998e39===_0x4806ae)break;else _0x53273['push'](_0x53273['shift']());}catch(_0x463ce9){_0x53273['push'](_0x53273['shift']());}}}(a17_0x3e8c,0x2fde2));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';function a17_0x311f(_0x249d9a,_0x29bf31){_0x249d9a=_0x249d9a-0xc0;const _0x3e8c0d=a17_0x3e8c();let _0x311f52=_0x3e8c0d[_0x249d9a];return _0x311f52;}function a17_0x3e8c(){const _0x555e6c=['unknown','error','28ecHKNQ','Built-in\x20Skill\x20install\x20failed\x20[','133023oJQUtK','cli-skill','read','Install\x20the\x20built-in\x20CLI\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','5WzINsv','\x20is\x20already\x20current','setLogPath',']:\x20','1452240wjYnCN','cli-skill-install','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','log','\x20at\x20','\x20installed','827610gGUQvE','70ebsPRs','CLI\x20Built-in\x20Skill\x20','2cSOcDg','skillVersion','install','4792FavJvA','installedPath','changed','7508798pJThGq','3424086wxMyOq','inherit','cwd','INSTALL_FAILED','pipe','repairCommand','201122Ugiglg'];a17_0x3e8c=function(){return _0x555e6c;};return a17_0x3e8c();}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a17_0x5ba59d(0xc4),'command':a17_0x5ba59d(0xd6),'description':a17_0x5ba59d(0xc6),'risk':a17_0x5ba59d(0xc5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x310b20){const _0x344aba=a17_0x5ba59d;logger[_0x344aba(0xc9)](process[_0x344aba(0xdd)]()),logger['info'](_0x344aba(0xcc),'Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20npm\x20package.');const _0x34b895=installBuiltinSkill({'stdio':_0x310b20['nonInteractive']?_0x344aba(0xdf):_0x344aba(0xdc)});if(!_0x34b895['ok'])throw CliErrors['apiError'](_0x344aba(0xc2)+(_0x34b895['code']||_0x344aba(0xde))+_0x344aba(0xca)+(_0x34b895[_0x344aba(0xc0)]||_0x344aba(0xe2)),_0x344aba(0xcd)+_0x34b895[_0x344aba(0xe0)]);const _0x363229=_0x34b895[_0x344aba(0xd8)]?_0x344aba(0xcf)+_0x34b895[_0x344aba(0xd8)]:'';return console[_0x344aba(0xce)](_0x34b895[_0x344aba(0xd9)]?_0x344aba(0xd3)+_0x34b895[_0x344aba(0xd5)]+_0x344aba(0xd0)+_0x363229:'CLI\x20Built-in\x20Skill\x20'+_0x34b895[_0x344aba(0xd5)]+_0x344aba(0xc8)+_0x363229),{'ok':!![]};}}];
1
+ const a18_0xc0e061=a18_0x29d7;(function(_0x5f19a8,_0x427ef2){const _0x1beac4=a18_0x29d7,_0x5b55cc=_0x5f19a8();while(!![]){try{const _0xa798b7=parseInt(_0x1beac4(0x17c))/0x1*(parseInt(_0x1beac4(0x181))/0x2)+parseInt(_0x1beac4(0x18d))/0x3*(parseInt(_0x1beac4(0x197))/0x4)+parseInt(_0x1beac4(0x189))/0x5*(-parseInt(_0x1beac4(0x180))/0x6)+parseInt(_0x1beac4(0x17d))/0x7+parseInt(_0x1beac4(0x184))/0x8*(-parseInt(_0x1beac4(0x179))/0x9)+parseInt(_0x1beac4(0x196))/0xa+-parseInt(_0x1beac4(0x17b))/0xb;if(_0xa798b7===_0x427ef2)break;else _0x5b55cc['push'](_0x5b55cc['shift']());}catch(_0x1248c3){_0x5b55cc['push'](_0x5b55cc['shift']());}}}(a18_0x547d,0x36f96));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':a18_0xc0e061(0x193),'description':'Install\x20the\x20built-in\x20CLI\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','risk':a18_0xc0e061(0x17f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2de22e){const _0x8b5b2d=a18_0xc0e061;logger[_0x8b5b2d(0x188)](process[_0x8b5b2d(0x176)]()),logger[_0x8b5b2d(0x182)](_0x8b5b2d(0x177),_0x8b5b2d(0x175));const _0x5e9c69=installBuiltinSkill({'stdio':_0x2de22e[_0x8b5b2d(0x192)]?_0x8b5b2d(0x194):_0x8b5b2d(0x18f)});if(!_0x5e9c69['ok'])throw CliErrors['apiError'](_0x8b5b2d(0x183)+(_0x5e9c69[_0x8b5b2d(0x18b)]||_0x8b5b2d(0x185))+_0x8b5b2d(0x18e)+(_0x5e9c69[_0x8b5b2d(0x18c)]||'unknown'),_0x8b5b2d(0x198)+_0x5e9c69[_0x8b5b2d(0x18a)]);const _0x2c859c=_0x5e9c69['installedPath']?_0x8b5b2d(0x17e)+_0x5e9c69[_0x8b5b2d(0x187)]:'';return console[_0x8b5b2d(0x191)](_0x5e9c69[_0x8b5b2d(0x178)]?_0x8b5b2d(0x195)+_0x5e9c69[_0x8b5b2d(0x17a)]+_0x8b5b2d(0x186)+_0x2c859c:_0x8b5b2d(0x195)+_0x5e9c69[_0x8b5b2d(0x17a)]+_0x8b5b2d(0x190)+_0x2c859c),{'ok':!![]};}}];function a18_0x29d7(_0x1bb02f,_0x266849){_0x1bb02f=_0x1bb02f-0x175;const _0x547d4f=a18_0x547d();let _0x29d713=_0x547d4f[_0x1bb02f];return _0x29d713;}function a18_0x547d(){const _0x36f514=['\x20at\x20','read','1014570NRKeFj','297776YFBiDP','info','Built-in\x20Skill\x20install\x20failed\x20[','176BRVsuJ','INSTALL_FAILED','\x20installed','installedPath','setLogPath','5bxYKXw','repairCommand','code','error','378mGMgPX',']:\x20','inherit','\x20is\x20already\x20current','log','nonInteractive','install','pipe','CLI\x20Built-in\x20Skill\x20','929470hhiyqt','10468QhducI','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20npm\x20package.','cwd','cli-skill-install','changed','80235UDmzxm','skillVersion','2583350plOgYv','1dMxfNU','1775704JBQhjl'];a18_0x547d=function(){return _0x36f514;};return a18_0x547d();}
@@ -1 +1 @@
1
- function a18_0x4dc5(_0x152ff7,_0x213cb8){_0x152ff7=_0x152ff7-0x189;const _0x46e0e3=a18_0x46e0();let _0x4dc569=_0x46e0e3[_0x152ff7];return _0x4dc569;}(function(_0x373256,_0x2ae9ae){const _0x353191=a18_0x4dc5,_0x54f6e6=_0x373256();while(!![]){try{const _0x11d5f0=-parseInt(_0x353191(0x198))/0x1+-parseInt(_0x353191(0x199))/0x2+-parseInt(_0x353191(0x196))/0x3*(-parseInt(_0x353191(0x190))/0x4)+parseInt(_0x353191(0x18d))/0x5*(parseInt(_0x353191(0x195))/0x6)+-parseInt(_0x353191(0x194))/0x7+-parseInt(_0x353191(0x19e))/0x8+parseInt(_0x353191(0x189))/0x9;if(_0x11d5f0===_0x2ae9ae)break;else _0x54f6e6['push'](_0x54f6e6['shift']());}catch(_0x3e7a7e){_0x54f6e6['push'](_0x54f6e6['shift']());}}}(a18_0x46e0,0x7c1d9));function a18_0x46e0(){const _0x5286fc=['global','validation','256893buyOko','6qrHOVN','9sUZDwl','project','441772govTNE','1759224xDicHO','inProject','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','Add\x20--global\x20to\x20write\x20to\x20~/','global-default','4559568QLniNt','\x20(global)','4606083epfRTm','newConfigFileName','project-or-global-explicit','Use\x20only\x20one\x20config\x20scope\x20flag.','5015305iRoyeh','\x20found).',',\x20or\x20create\x20a\x20project-local\x20','1228744urGJxU','\x20first.'];a18_0x46e0=function(){return _0x5286fc;};return a18_0x46e0();}import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,CLI_PROTECTED_CONFIG_KEYS,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isCliProtectedConfigKey,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export function resolveConfigScope(_0x548de5){const _0x4ae029=a18_0x4dc5,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x5097ee}=_0x548de5;if(explicitGlobal&&explicitProject)throw CliErrors[_0x4ae029(0x193)](_0x4ae029(0x19b),_0x4ae029(0x18c));if(explicitGlobal)return'global';if(explicitProject)return'project';switch(_0x5097ee){case _0x4ae029(0x19d):return _0x4ae029(0x192);case _0x4ae029(0x18b):if(!(_0x548de5[_0x4ae029(0x19a)]??isInProject()))throw CliErrors[_0x4ae029(0x193)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG[_0x4ae029(0x18a)]+_0x4ae029(0x18e),_0x4ae029(0x19c)+PRODUCT_CONFIG[_0x4ae029(0x18a)]+_0x4ae029(0x18f)+PRODUCT_CONFIG[_0x4ae029(0x18a)]+_0x4ae029(0x191));return _0x4ae029(0x197);}}export function toScopeFlags(_0x479cb5){const _0x140825=a18_0x4dc5;return{'global':_0x479cb5===_0x140825(0x192)};}export function formatScopeLabel(_0x98bc2){const _0x129be1=a18_0x4dc5;return _0x98bc2==='global'?_0x129be1(0x19f):'';}
1
+ (function(_0xf040e5,_0x204d05){const _0x356fe8=a19_0x2c69,_0x45641e=_0xf040e5();while(!![]){try{const _0x5cf672=parseInt(_0x356fe8(0x14c))/0x1+-parseInt(_0x356fe8(0x15a))/0x2+parseInt(_0x356fe8(0x159))/0x3*(-parseInt(_0x356fe8(0x15b))/0x4)+parseInt(_0x356fe8(0x150))/0x5*(parseInt(_0x356fe8(0x14d))/0x6)+parseInt(_0x356fe8(0x156))/0x7+parseInt(_0x356fe8(0x154))/0x8*(parseInt(_0x356fe8(0x160))/0x9)+-parseInt(_0x356fe8(0x15f))/0xa*(parseInt(_0x356fe8(0x151))/0xb);if(_0x5cf672===_0x204d05)break;else _0x45641e['push'](_0x45641e['shift']());}catch(_0x1040a3){_0x45641e['push'](_0x45641e['shift']());}}}(a19_0x23e7,0x5e99e));import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';function a19_0x2c69(_0x576311,_0xd4eae5){_0x576311=_0x576311-0x14a;const _0x23e755=a19_0x23e7();let _0x2c69ac=_0x23e755[_0x576311];return _0x2c69ac;}export{RUNTIME_ENV_VALUES}from'../../constant/env.js';function a19_0x23e7(){const _0x211faf=['global-default','\x20found).','277910rUaqJq','19323rrihcL','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','newConfigFileName','405018ZFYyvF','4411566jcWKtU','inProject','Not\x20inside\x20a\x20project\x20(no\x20','5SmfytI','495HHNHci','project-or-global-explicit','validation','2360FYcqIC','\x20(global)','4423790pvedJR','project','global','212694uuNuCw','542494IPGIOF','28wuZZBJ','Add\x20--global\x20to\x20write\x20to\x20~/'];a19_0x23e7=function(){return _0x211faf;};return a19_0x23e7();}export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,CLI_PROTECTED_CONFIG_KEYS,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isCliProtectedConfigKey,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export function resolveConfigScope(_0x566969){const _0x24f08a=a19_0x2c69,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x1641a7}=_0x566969;if(explicitGlobal&&explicitProject)throw CliErrors[_0x24f08a(0x153)](_0x24f08a(0x14a),'Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return'global';if(explicitProject)return _0x24f08a(0x157);switch(_0x1641a7){case _0x24f08a(0x15d):return _0x24f08a(0x158);case _0x24f08a(0x152):if(!(_0x566969[_0x24f08a(0x14e)]??isInProject()))throw CliErrors[_0x24f08a(0x153)](_0x24f08a(0x14f)+PRODUCT_CONFIG[_0x24f08a(0x14b)]+_0x24f08a(0x15e),_0x24f08a(0x15c)+PRODUCT_CONFIG[_0x24f08a(0x14b)]+',\x20or\x20create\x20a\x20project-local\x20'+PRODUCT_CONFIG[_0x24f08a(0x14b)]+'\x20first.');return _0x24f08a(0x157);}}export function toScopeFlags(_0x137685){return{'global':_0x137685==='global'};}export function formatScopeLabel(_0x19d24a){const _0x4e7f6e=a19_0x2c69;return _0x19d24a===_0x4e7f6e(0x158)?_0x4e7f6e(0x155):'';}
@@ -1 +1 @@
1
- (function(_0x4791f3,_0x1a4971){const _0x1b82e0=a19_0x33e9,_0x4a815e=_0x4791f3();while(!![]){try{const _0x457ca5=-parseInt(_0x1b82e0(0x78))/0x1*(parseInt(_0x1b82e0(0x7a))/0x2)+-parseInt(_0x1b82e0(0x6c))/0x3*(parseInt(_0x1b82e0(0x75))/0x4)+parseInt(_0x1b82e0(0x7f))/0x5+-parseInt(_0x1b82e0(0x71))/0x6*(-parseInt(_0x1b82e0(0x81))/0x7)+-parseInt(_0x1b82e0(0x7c))/0x8*(-parseInt(_0x1b82e0(0x76))/0x9)+parseInt(_0x1b82e0(0x72))/0xa*(-parseInt(_0x1b82e0(0x67))/0xb)+parseInt(_0x1b82e0(0x6e))/0xc*(parseInt(_0x1b82e0(0x6d))/0xd);if(_0x457ca5===_0x1a4971)break;else _0x4a815e['push'](_0x4a815e['shift']());}catch(_0x44246a){_0x4a815e['push'](_0x4a815e['shift']());}}}(a19_0x475d,0x58883));function a19_0x33e9(_0x28ec7a,_0x5093d1){_0x28ec7a=_0x28ec7a-0x67;const _0x475dfe=a19_0x475d();let _0x33e9f6=_0x475dfe[_0x28ec7a];return _0x33e9f6;}import{CliErrors}from'../../errors.js';function isSet(_0x522637,_0x46038c){const _0x3a0044=a19_0x33e9,_0x4afd8c=_0x522637[_0x3a0044(0x73)](_0x46038c);return _0x4afd8c!==undefined&&_0x4afd8c!==''&&_0x4afd8c!==![]&&_0x4afd8c!==0x0;}function fmtNames(_0x1cb8b3){const _0x415976=a19_0x33e9;return _0x1cb8b3['map'](_0x53a550=>'--'+_0x53a550)[_0x415976(0x69)](',\x20');}export function requireOneOf(_0x372dce,_0x5adc68,_0x4c3e45){const _0x1f0d23=a19_0x33e9,_0x232300=_0x5adc68['filter'](_0x305181=>isSet(_0x372dce,_0x305181));if(_0x232300[_0x1f0d23(0x7d)]!==0x1)throw CliErrors['validation'](_0x232300[_0x1f0d23(0x7d)]===0x0?_0x1f0d23(0x6b)+fmtNames(_0x5adc68)+_0x1f0d23(0x7b)+_0x4c3e45+'`.':_0x1f0d23(0x83)+fmtNames(_0x5adc68)+_0x1f0d23(0x6f)+fmtNames(_0x232300)+'.',_0x232300[_0x1f0d23(0x7d)]===0x0?_0x1f0d23(0x7e)+fmtNames(_0x5adc68):_0x1f0d23(0x74));}export function requireAnyOf(_0xdf9d02,_0x507571,_0x1d6df5){const _0x350299=a19_0x33e9;if(!_0x507571['some'](_0x21cdc2=>isSet(_0xdf9d02,_0x21cdc2)))throw CliErrors[_0x350299(0x85)](_0x350299(0x70)+fmtNames(_0x507571)+_0x350299(0x7b)+_0x1d6df5+'`.',_0x350299(0x7e)+fmtNames(_0x507571));}export function mutuallyExclusive(_0x370154,_0x14e103,_0x344c6f){const _0x1d03e0=a19_0x33e9,_0xbea561=_0x14e103[_0x1d03e0(0x6a)](_0x179d11=>isSet(_0x370154,_0x179d11));if(_0xbea561[_0x1d03e0(0x7d)]>0x1)throw CliErrors['validation'](_0x1d03e0(0x79)+fmtNames(_0xbea561)+_0x1d03e0(0x77)+_0x344c6f+'`.',_0x1d03e0(0x84)+fmtNames(_0x14e103));}function a19_0x475d(){const _0x4ae350=['728Zkfuer','length','Provide\x20one\x20of:\x20','1890075hHagjC','test','7EmDbqT','str','Only\x20one\x20of\x20','Use\x20only\x20one\x20of:\x20','validation','72138JAxLmo',',\x20got\x20\x22','join','filter','Exactly\x20one\x20of\x20','3IloyZu','6907108FrVTrv','12yGGDir','\x20is\x20allowed,\x20found:\x20','At\x20least\x20one\x20of\x20','3876882qFRUGE','680hfyFPA','flag','Remove\x20all\x20but\x20one.','2735924kOaQev','26046HpLAlR','\x20are\x20mutually\x20exclusive\x20for\x20`','2719qSmAXw','Flags\x20','240VzEXtL','\x20is\x20required\x20for\x20`'];a19_0x475d=function(){return _0x4ae350;};return a19_0x475d();}export function validatePattern(_0xe53773,_0x30c300,_0x554070,_0x33a8ae){const _0x163438=a19_0x33e9,_0x521def=_0xe53773[_0x163438(0x82)](_0x30c300);if(_0x521def&&!_0x554070[_0x163438(0x80)](_0x521def))throw CliErrors[_0x163438(0x85)]('Invalid\x20--'+_0x30c300+':\x20expected\x20'+_0x33a8ae+_0x163438(0x68)+_0x521def+'\x22.');}
1
+ (function(_0x4fd584,_0x22d1f5){const _0x13df80=a20_0x18eb,_0x5c5639=_0x4fd584();while(!![]){try{const _0x4bfb72=parseInt(_0x13df80(0x13f))/0x1+parseInt(_0x13df80(0x14b))/0x2*(parseInt(_0x13df80(0x14a))/0x3)+-parseInt(_0x13df80(0x14d))/0x4+-parseInt(_0x13df80(0x152))/0x5*(parseInt(_0x13df80(0x13a))/0x6)+parseInt(_0x13df80(0x14e))/0x7*(-parseInt(_0x13df80(0x13b))/0x8)+-parseInt(_0x13df80(0x151))/0x9*(parseInt(_0x13df80(0x147))/0xa)+parseInt(_0x13df80(0x148))/0xb;if(_0x4bfb72===_0x22d1f5)break;else _0x5c5639['push'](_0x5c5639['shift']());}catch(_0x4d6acd){_0x5c5639['push'](_0x5c5639['shift']());}}}(a20_0x12eb,0xa9afe));import{CliErrors}from'../../errors.js';function isSet(_0xbf83a9,_0x3b2352){const _0x13edc4=a20_0x18eb,_0x2ae567=_0xbf83a9[_0x13edc4(0x142)](_0x3b2352);return _0x2ae567!==undefined&&_0x2ae567!==''&&_0x2ae567!==![]&&_0x2ae567!==0x0;}function a20_0x18eb(_0x265bc8,_0x3ad71a){_0x265bc8=_0x265bc8-0x13a;const _0x12eb8a=a20_0x12eb();let _0x18eb82=_0x12eb8a[_0x265bc8];return _0x18eb82;}function fmtNames(_0x297b9f){const _0x6df186=a20_0x18eb;return _0x297b9f[_0x6df186(0x14c)](_0x19da3=>'--'+_0x19da3)['join'](',\x20');}export function requireOneOf(_0x29cb68,_0x5ff4e6,_0x5301f7){const _0x3c601d=a20_0x18eb,_0x999f91=_0x5ff4e6['filter'](_0x5cd723=>isSet(_0x29cb68,_0x5cd723));if(_0x999f91[_0x3c601d(0x149)]!==0x1)throw CliErrors[_0x3c601d(0x146)](_0x999f91[_0x3c601d(0x149)]===0x0?_0x3c601d(0x150)+fmtNames(_0x5ff4e6)+_0x3c601d(0x13d)+_0x5301f7+'`.':'Only\x20one\x20of\x20'+fmtNames(_0x5ff4e6)+_0x3c601d(0x145)+fmtNames(_0x999f91)+'.',_0x999f91[_0x3c601d(0x149)]===0x0?_0x3c601d(0x143)+fmtNames(_0x5ff4e6):_0x3c601d(0x144));}export function requireAnyOf(_0x33f15e,_0x559cce,_0x3afa86){const _0x2b1074=a20_0x18eb;if(!_0x559cce[_0x2b1074(0x14f)](_0xe66099=>isSet(_0x33f15e,_0xe66099)))throw CliErrors[_0x2b1074(0x146)]('At\x20least\x20one\x20of\x20'+fmtNames(_0x559cce)+_0x2b1074(0x13d)+_0x3afa86+'`.',_0x2b1074(0x143)+fmtNames(_0x559cce));}export function mutuallyExclusive(_0x1637fa,_0x26c1a5,_0x322a38){const _0x15605b=a20_0x18eb,_0x15058d=_0x26c1a5['filter'](_0xe5ee83=>isSet(_0x1637fa,_0xe5ee83));if(_0x15058d[_0x15605b(0x149)]>0x1)throw CliErrors['validation']('Flags\x20'+fmtNames(_0x15058d)+_0x15605b(0x140)+_0x322a38+'`.',_0x15605b(0x13c)+fmtNames(_0x26c1a5));}function a20_0x12eb(){const _0x498dbc=['4526216jNoKkZ','35oIfQKg','some','Exactly\x20one\x20of\x20','3762324FKZQrB','3552775BbGdkx','6HbNhWi','747296idTHgy','Use\x20only\x20one\x20of:\x20','\x20is\x20required\x20for\x20`','Invalid\x20--','259579SALduy','\x20are\x20mutually\x20exclusive\x20for\x20`',':\x20expected\x20','flag','Provide\x20one\x20of:\x20','Remove\x20all\x20but\x20one.','\x20is\x20allowed,\x20found:\x20','validation','20xuudnv','31095900PKacfc','length','12tHyfcP','376900MbwDLd','map'];a20_0x12eb=function(){return _0x498dbc;};return a20_0x12eb();}export function validatePattern(_0x2eddce,_0x374fad,_0x3be06a,_0x3f1742){const _0x201695=a20_0x18eb,_0xe7d075=_0x2eddce['str'](_0x374fad);if(_0xe7d075&&!_0x3be06a['test'](_0xe7d075))throw CliErrors['validation'](_0x201695(0x13e)+_0x374fad+_0x201695(0x141)+_0x3f1742+',\x20got\x20\x22'+_0xe7d075+'\x22.');}
@@ -1 +1 @@
1
- const a20_0x1b373d=a20_0x3238;(function(_0x9c540f,_0x2f3149){const _0x547a56=a20_0x3238,_0x3970dc=_0x9c540f();while(!![]){try{const _0x10b308=parseInt(_0x547a56(0xdd))/0x1*(-parseInt(_0x547a56(0xe9))/0x2)+-parseInt(_0x547a56(0xdb))/0x3*(-parseInt(_0x547a56(0xee))/0x4)+parseInt(_0x547a56(0xec))/0x5*(-parseInt(_0x547a56(0xd5))/0x6)+parseInt(_0x547a56(0xf1))/0x7*(parseInt(_0x547a56(0xd6))/0x8)+parseInt(_0x547a56(0xe4))/0x9*(-parseInt(_0x547a56(0xe2))/0xa)+-parseInt(_0x547a56(0xdf))/0xb*(-parseInt(_0x547a56(0xf0))/0xc)+-parseInt(_0x547a56(0xe3))/0xd;if(_0x10b308===_0x2f3149)break;else _0x3970dc['push'](_0x3970dc['shift']());}catch(_0x57221f){_0x3970dc['push'](_0x3970dc['shift']());}}}(a20_0x433c,0x4c336));export const GLOBAL_SCOPE_FLAG={'name':a20_0x1b373d(0xe7),'type':'boolean','default':![],'description':a20_0x1b373d(0xe8)};export const CODE_FLAG={'name':a20_0x1b373d(0xda),'type':a20_0x1b373d(0xef),'required':!![],'description':a20_0x1b373d(0xe1),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x1b373d(0xd8)}};export const SQLCODE_FLAG={'name':a20_0x1b373d(0xf2),'type':'string','required':!![],'description':a20_0x1b373d(0xe5),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x1b373d(0xdc)}};function a20_0x433c(){const _0x24d6ad=['26288OeLezS','string','9276NzQpCh','133973DIumfu','sqlcode','1290BPyyiC','56gGZezP','verbose','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','params','code','159TpGVAp','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','1OChmVT','Resource\x20ID','5852LeSOJt','Resource\x20name\x20for\x20lookup','Dataset\x20code\x20(32-char\x20hex\x20UUID)','1538690xZxjcT','487812SvImFu','9tvCSWM','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','number','global','Write\x20to\x20the\x20global\x20configuration','336698mpHVvi','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','boolean','5155tvxQUq','Return\x20full\x20raw\x20response\x20object'];a20_0x433c=function(){return _0x24d6ad;};return a20_0x433c();}export const VERBOSE_FLAG={'name':a20_0x1b373d(0xd7),'type':a20_0x1b373d(0xeb),'description':a20_0x1b373d(0xed)};export const PARAMS_FLAG={'name':a20_0x1b373d(0xd9),'type':a20_0x1b373d(0xef),'description':a20_0x1b373d(0xea)};export const NAME_FLAG={'name':'name','type':'string','description':a20_0x1b373d(0xe0)};function a20_0x3238(_0x58a66f,_0x3908fd){_0x58a66f=_0x58a66f-0xd5;const _0x433ccf=a20_0x433c();let _0x3238eb=_0x433ccf[_0x58a66f];return _0x3238eb;}export const ID_FLAG={'name':'id','type':a20_0x1b373d(0xe6),'required':!![],'description':a20_0x1b373d(0xde)};
1
+ const a21_0x4153cd=a21_0x2ec5;(function(_0x59c2ee,_0x51169f){const _0x4daabf=a21_0x2ec5,_0x4488b9=_0x59c2ee();while(!![]){try{const _0x2482c0=parseInt(_0x4daabf(0xd0))/0x1+-parseInt(_0x4daabf(0xce))/0x2+parseInt(_0x4daabf(0xc6))/0x3+parseInt(_0x4daabf(0xdb))/0x4*(parseInt(_0x4daabf(0xcd))/0x5)+parseInt(_0x4daabf(0xd9))/0x6+parseInt(_0x4daabf(0xd8))/0x7*(-parseInt(_0x4daabf(0xd5))/0x8)+-parseInt(_0x4daabf(0xd3))/0x9*(parseInt(_0x4daabf(0xc8))/0xa);if(_0x2482c0===_0x51169f)break;else _0x4488b9['push'](_0x4488b9['shift']());}catch(_0xe681e9){_0x4488b9['push'](_0x4488b9['shift']());}}}(a21_0x1009,0x87356));export const GLOBAL_SCOPE_FLAG={'name':a21_0x4153cd(0xcf),'type':a21_0x4153cd(0xd4),'default':![],'description':a21_0x4153cd(0xd7)};export const CODE_FLAG={'name':'code','type':a21_0x4153cd(0xc7),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a21_0x4153cd(0xcc)}};function a21_0x1009(){const _0x17d16b=['Write\x20to\x20the\x20global\x20configuration','136703WRmgew','6046968tesDOe','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','92344JrxnPv','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','307542EMckGB','string','610loEdoe','params','Resource\x20name\x20for\x20lookup','verbose','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','50EPcAOp','1136760JOlcXh','global','1014328yTCKGP','number','name','150273AKHFBB','boolean','88LUDbvr','sqlcode'];a21_0x1009=function(){return _0x17d16b;};return a21_0x1009();}export const SQLCODE_FLAG={'name':a21_0x4153cd(0xd6),'type':a21_0x4153cd(0xc7),'required':!![],'description':a21_0x4153cd(0xc5),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const VERBOSE_FLAG={'name':a21_0x4153cd(0xcb),'type':a21_0x4153cd(0xd4),'description':'Return\x20full\x20raw\x20response\x20object'};export const PARAMS_FLAG={'name':a21_0x4153cd(0xc9),'type':'string','description':a21_0x4153cd(0xda)};function a21_0x2ec5(_0x573f53,_0x216e16){_0x573f53=_0x573f53-0xc5;const _0x1009f4=a21_0x1009();let _0x2ec5bc=_0x1009f4[_0x573f53];return _0x2ec5bc;}export const NAME_FLAG={'name':a21_0x4153cd(0xd2),'type':'string','description':a21_0x4153cd(0xca)};export const ID_FLAG={'name':'id','type':a21_0x4153cd(0xd1),'required':!![],'description':'Resource\x20ID'};
@@ -1 +1 @@
1
- (function(_0xa33cf6,_0x2787aa){const _0x46de4e=a21_0x3e97,_0x1c1d1a=_0xa33cf6();while(!![]){try{const _0xe7d7d1=parseInt(_0x46de4e(0x116))/0x1*(parseInt(_0x46de4e(0x120))/0x2)+-parseInt(_0x46de4e(0x125))/0x3*(parseInt(_0x46de4e(0x10f))/0x4)+parseInt(_0x46de4e(0x113))/0x5*(-parseInt(_0x46de4e(0x11d))/0x6)+parseInt(_0x46de4e(0x11b))/0x7*(parseInt(_0x46de4e(0x110))/0x8)+-parseInt(_0x46de4e(0x11e))/0x9*(parseInt(_0x46de4e(0x123))/0xa)+parseInt(_0x46de4e(0x11a))/0xb*(parseInt(_0x46de4e(0x121))/0xc)+-parseInt(_0x46de4e(0x111))/0xd*(parseInt(_0x46de4e(0x117))/0xe);if(_0xe7d7d1===_0x2787aa)break;else _0x1c1d1a['push'](_0x1c1d1a['shift']());}catch(_0x3995ab){_0x1c1d1a['push'](_0x1c1d1a['shift']());}}}(a21_0x3335,0xa257c));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;function a21_0x3335(){const _0x5c90fd=['11296vdXHjx','34372hLsigF','File\x20not\x20found:\x20','535DmHVbD','isFile','size','12761KuABDX','5852gxptJR','ceil','File\x20is\x20not\x20a\x20regular\x20file:\x20','11qAHoRX','3661wagCfs','\x20path\x20is\x20required.','12354kjufOp','18moUCoo','trim','204mfunnq','12910884WOcATN','\x20MB','1191690nzcfoR','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','2661618pvlOYZ','4tuILda'];a21_0x3335=function(){return _0x5c90fd;};return a21_0x3335();}function a21_0x3e97(_0x26d077,_0x17dbbd){_0x26d077=_0x26d077-0x10f;const _0x3335aa=a21_0x3335();let _0x3e97ea=_0x3335aa[_0x26d077];return _0x3e97ea;}export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x443f7f){const _0x198111=a21_0x3e97;if(_0x443f7f>=BYTES_PER_MB){const _0x347312=Math[_0x198111(0x118)](_0x443f7f/BYTES_PER_MB*0x64)/0x64;return _0x347312['toFixed'](0x2)+_0x198111(0x122);}return _0x443f7f+'\x20B';}export function requireRuntimeUploadFile(_0x2281b2,_0x1d26f6){const _0x2d01c4=a21_0x3e97,_0x5972d3=_0x2281b2[_0x2d01c4(0x11f)]();if(!_0x5972d3)throw CliErrors['validation'](_0x1d26f6+_0x2d01c4(0x11c));if(!existsSync(_0x5972d3))throw CliErrors['validation'](_0x2d01c4(0x112)+_0x5972d3);const _0x4e18d6=statSync(_0x5972d3);if(!_0x4e18d6[_0x2d01c4(0x114)]())throw CliErrors['validation'](_0x2d01c4(0x119)+_0x5972d3);if(_0x4e18d6[_0x2d01c4(0x115)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors['validation'](_0x2d01c4(0x124)+_0x5972d3+'\x20('+formatBytes(_0x4e18d6[_0x2d01c4(0x115)])+')');return{'path':_0x5972d3,'size':_0x4e18d6[_0x2d01c4(0x115)]};}
1
+ (function(_0x251b1c,_0x17df3f){const _0x20d74d=a22_0x11a3,_0x91d2b8=_0x251b1c();while(!![]){try{const _0x1bb9f6=parseInt(_0x20d74d(0x94))/0x1+parseInt(_0x20d74d(0x8e))/0x2*(parseInt(_0x20d74d(0x97))/0x3)+-parseInt(_0x20d74d(0x8a))/0x4*(parseInt(_0x20d74d(0x91))/0x5)+-parseInt(_0x20d74d(0x96))/0x6*(-parseInt(_0x20d74d(0x95))/0x7)+parseInt(_0x20d74d(0x99))/0x8*(parseInt(_0x20d74d(0x9b))/0x9)+-parseInt(_0x20d74d(0x8f))/0xa+-parseInt(_0x20d74d(0x8c))/0xb;if(_0x1bb9f6===_0x17df3f)break;else _0x91d2b8['push'](_0x91d2b8['shift']());}catch(_0x4565f8){_0x91d2b8['push'](_0x91d2b8['shift']());}}}(a22_0x48c1,0xf4030));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';function a22_0x11a3(_0x1d83a1,_0x53dc58){_0x1d83a1=_0x1d83a1-0x89;const _0x48c11e=a22_0x48c1();let _0x11a3bf=_0x48c11e[_0x1d83a1];return _0x11a3bf;}const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x213c7b){const _0x1a687e=a22_0x11a3;if(_0x213c7b>=BYTES_PER_MB){const _0x5d318a=Math['ceil'](_0x213c7b/BYTES_PER_MB*0x64)/0x64;return _0x5d318a[_0x1a687e(0x9a)](0x2)+_0x1a687e(0x89);}return _0x213c7b+'\x20B';}export function requireRuntimeUploadFile(_0x2b27ac,_0x51a9c4){const _0x531983=a22_0x11a3,_0x4edbbc=_0x2b27ac['trim']();if(!_0x4edbbc)throw CliErrors['validation'](_0x51a9c4+_0x531983(0x90));if(!existsSync(_0x4edbbc))throw CliErrors[_0x531983(0x8b)](_0x531983(0x92)+_0x4edbbc);const _0x1a9085=statSync(_0x4edbbc);if(!_0x1a9085[_0x531983(0x93)]())throw CliErrors['validation'](_0x531983(0x98)+_0x4edbbc);if(_0x1a9085[_0x531983(0x8d)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x531983(0x8b)](_0x531983(0x9c)+_0x4edbbc+'\x20('+formatBytes(_0x1a9085[_0x531983(0x8d)])+')');return{'path':_0x4edbbc,'size':_0x1a9085[_0x531983(0x8d)]};}function a22_0x48c1(){const _0x4e6459=['9lgBJav','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','\x20MB','1902648BhqEJd','validation','11402457PAyYYg','size','11624NBIgtS','17427850XFBrfZ','\x20path\x20is\x20required.','10oniIkY','File\x20not\x20found:\x20','isFile','1720907JDxnUr','1246NBFrzg','31782NYqMgK','645veEwki','File\x20is\x20not\x20a\x20regular\x20file:\x20','6534520hRfmXV','toFixed'];a22_0x48c1=function(){return _0x4e6459;};return a22_0x48c1();}
@@ -1 +1 @@
1
- const a22_0xa859b=a22_0x4bb5;function a22_0x1e14(){const _0x2bf8a1=['bool','\x20config\x20set\x20<key>\x20<value>\x20[--global]','Config\x20files:\x0a','Value\x20to\x20assign','validation','locale','Set\x20`','Set\x20a\x20configuration\x20value','\x22\x20is\x20not\x20settable.','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','log','Invalid\x20value\x20for\x20\x22','get','trim','Deleted\x20`','key','length','../../context.js','raw','stringify','keys','Key\x20already\x20absent:\x20','\x20(global)','\x20config\x20get\x20<key>','appcode','659420jLTlBK','Deletes\x20a\x20Lovrabet\x20CLI\x20config\x20key.\x20Later\x20commands\x20will\x20fall\x20back\x20to\x20another\x20config\x20layer\x20or\x20the\x20default.','read','Key\x20not\x20found:\x20','args','write','global','accessKey','\x20\x20global:\x20\x20','isArray','492592eWayXC','88ibelOQ','config','\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.','value','5806857kurTIf','42WFfFii','Top-level\x20key\x20\x22','398105cGxwYR','field','(none)','set','object','Missing\x20key\x20argument.','alias','Changes\x20Lovrabet\x20CLI\x20configuration.\x20Later\x20commands\x20may\x20use\x20a\x20different\x20app,\x20environment,\x20or\x20output\x20behavior.','9705lYsQhI','Usage:\x20','split','Settable\x20keys:\x20','pageSize','pageSize\x20must\x20be\x20a\x20positive\x20number','includes','List\x20current\x20config','\x22.\x20Allowed:\x20','`\x20=\x20\x22','project-or-global-explicit','553959VneXWs','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','4673730rertXr',';\x20apps.<alias>.appcode','apps','508rAdaWT'];a22_0x1e14=function(){return _0x2bf8a1;};return a22_0x1e14();}(function(_0x27307a,_0x5e317c){const _0x1300f0=a22_0x4bb5,_0x40a4a5=_0x27307a();while(!![]){try{const _0x277215=parseInt(_0x1300f0(0x110))/0x1+parseInt(_0x1300f0(0x11a))/0x2+-parseInt(_0x1300f0(0x12a))/0x3*(parseInt(_0x1300f0(0xf6))/0x4)+parseInt(_0x1300f0(0x122))/0x5*(parseInt(_0x1300f0(0x120))/0x6)+-parseInt(_0x1300f0(0x11f))/0x7+-parseInt(_0x1300f0(0x11b))/0x8*(-parseInt(_0x1300f0(0xf1))/0x9)+-parseInt(_0x1300f0(0xf3))/0xa;if(_0x277215===_0x5e317c)break;else _0x40a4a5['push'](_0x40a4a5['shift']());}catch(_0x52911d){_0x40a4a5['push'](_0x40a4a5['shift']());}}}(a22_0x1e14,0x698e3));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(_0x5d4901){const _0x5676e8=a22_0x4bb5,_0x32be82=_0x5d4901[_0x5676e8(0x12c)]('.');if(_0x32be82[_0x5676e8(0x107)]!==0x3||_0x32be82[0x0]!==_0x5676e8(0xf5)||_0x32be82[0x2]!==_0x5676e8(0x10f))return undefined;const _0x23bc79=_0x32be82[0x1]?.[_0x5676e8(0x104)]();return _0x23bc79?_0x23bc79:undefined;}function a22_0x4bb5(_0x74faab,_0x11213a){_0x74faab=_0x74faab-0xef;const _0x1e14d0=a22_0x1e14();let _0x4bb54c=_0x1e14d0[_0x74faab];return _0x4bb54c;}function parseAliasDeleteKey(_0x133b6a){const _0x36835d=a22_0x4bb5,_0x2487d1=_0x133b6a['split']('.');if(_0x2487d1['length']===0x2&&_0x2487d1[0x0]===_0x36835d(0xf5)){const _0x1ea4dc=_0x2487d1[0x1]?.[_0x36835d(0x104)]();return _0x1ea4dc?{'alias':_0x1ea4dc}:undefined;}if(_0x2487d1[_0x36835d(0x107)]===0x3&&_0x2487d1[0x0]===_0x36835d(0xf5)&&_0x2487d1[0x2]==='appcode'){const _0x433c93=_0x2487d1[0x1]?.[_0x36835d(0x104)]();return _0x433c93?{'alias':_0x433c93,'field':_0x36835d(0x10f)}:undefined;}return undefined;}function setLocalAppAlias(_0x1cec1d,_0x246c63,_0x370e03){const _0x5b0306=a22_0x4bb5,_0x4366b5=_0x1cec1d[_0x5b0306(0xf5)]&&typeof _0x1cec1d[_0x5b0306(0xf5)]===_0x5b0306(0x126)&&!Array[_0x5b0306(0x119)](_0x1cec1d['apps'])?_0x1cec1d[_0x5b0306(0xf5)]:{},_0x5976ae=_0x4366b5[_0x246c63]&&typeof _0x4366b5[_0x246c63]===_0x5b0306(0x126)&&!Array['isArray'](_0x4366b5[_0x246c63])?_0x4366b5[_0x246c63]:{};_0x5976ae[_0x5b0306(0x10f)]=_0x370e03,_0x4366b5[_0x246c63]=_0x5976ae,_0x1cec1d[_0x5b0306(0xf5)]=_0x4366b5;}function deleteLocalAppAlias(_0x3c6d52,_0x2eef8f){const _0x5bb9ac=a22_0x4bb5;if(!_0x3c6d52['apps']||typeof _0x3c6d52[_0x5bb9ac(0xf5)]!==_0x5bb9ac(0x126)||Array['isArray'](_0x3c6d52['apps']))return![];const _0x529418=_0x3c6d52[_0x5bb9ac(0xf5)],_0x3346c2=_0x529418[_0x2eef8f[_0x5bb9ac(0x128)]];if(!_0x3346c2||typeof _0x3346c2!==_0x5bb9ac(0x126)||Array[_0x5bb9ac(0x119)](_0x3346c2))return![];if(!_0x2eef8f[_0x5bb9ac(0x123)])return delete _0x529418[_0x2eef8f[_0x5bb9ac(0x128)]],!![];if(!(_0x2eef8f[_0x5bb9ac(0x123)]in _0x3346c2))return![];return delete _0x3346c2[_0x2eef8f[_0x5bb9ac(0x123)]],Object[_0x5bb9ac(0x10b)](_0x3346c2)[_0x5bb9ac(0x107)]===0x0&&delete _0x529418[_0x2eef8f[_0x5bb9ac(0x128)]],!![];}const listDef={'service':a22_0xa859b(0x11c),'command':'list','description':a22_0xa859b(0x131),'risk':a22_0xa859b(0x112),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x191fda){const _0x2ec798=a22_0xa859b,{buildConfigFromFlags:_0x2cf818}=await import(_0x2ec798(0x108)),_0x5503d1=_0x2cf818({}),_0x32ea93=redactCliConfigCredentials(_0x5503d1[_0x2ec798(0x109)]),_0x36da40=getProjectConfigPath(),_0x3c7d72=resolveWriteConfigPath(_0x2ec798(0x116));if(_0x191fda['format']==='pretty')return{'ok':!![],'message':_0x2ec798(0x100)+(JSON[_0x2ec798(0x10a)](_0x32ea93,null,0x2)+'\x0a\x0a')+_0x2ec798(0xf9)+('\x20\x20project:\x20'+(_0x36da40??_0x2ec798(0x124))+'\x0a')+(_0x2ec798(0x118)+_0x3c7d72)};return{'ok':!![],'data':{'effective':_0x32ea93,'configFiles':{'project':_0x36da40??null,'global':_0x3c7d72}}};}},getDef={'service':a22_0xa859b(0x11c),'command':a22_0xa859b(0x103),'description':'Get\x20a\x20config\x20value','risk':a22_0xa859b(0x112),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0xa859b(0x106),'description':a22_0xa859b(0xf2),'required':!![]}],'flags':[],async 'execute'(_0x2beb8c){const _0x1a05e1=a22_0xa859b,_0xf83991=_0x2beb8c[_0x1a05e1(0x114)][0x0];if(!_0xf83991)throw CliErrors[_0x1a05e1(0xfb)]('Missing\x20key\x20argument.',_0x1a05e1(0x12b)+CLI_BIN_NAME+_0x1a05e1(0x10e));const {buildConfigFromFlags:_0x31d989}=await import(_0x1a05e1(0x108)),{raw:_0x3509e2}=_0x31d989({});if(_0xf83991[_0x1a05e1(0x130)]('.')){const _0x20d40f=_0xf83991[_0x1a05e1(0x12c)]('.');let _0x1a2316=_0x3509e2;for(const _0x5956da of _0x20d40f){if(_0x1a2316==null||typeof _0x1a2316!==_0x1a05e1(0x126))throw CliErrors[_0x1a05e1(0xfb)](_0x1a05e1(0x113)+_0xf83991);_0x1a2316=_0x1a2316[_0x5956da];}if(_0x1a2316===undefined)throw CliErrors[_0x1a05e1(0xfb)]('Key\x20not\x20found:\x20'+_0xf83991);const _0x3ec0dc=redactCliConfigValue(_0xf83991,_0x1a2316);return console[_0x1a05e1(0x101)](typeof _0x3ec0dc===_0x1a05e1(0x126)?JSON['stringify'](_0x3ec0dc,null,0x2):String(_0x3ec0dc)),{'ok':!![]};}const _0x7104ce=_0x3509e2[_0xf83991];if(_0x7104ce===undefined)throw CliErrors['validation'](_0x1a05e1(0x113)+_0xf83991);const _0x80b6c2=redactCliConfigValue(_0xf83991,_0x7104ce);return console['log'](typeof _0x80b6c2==='object'?JSON[_0x1a05e1(0x10a)](_0x80b6c2,null,0x2):String(_0x80b6c2)),{'ok':!![]};}},setDef={'service':'config','command':a22_0xa859b(0x125),'description':a22_0xa859b(0xfe),'risk':a22_0xa859b(0x115),'confirmationDescription':a22_0xa859b(0x129),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0xa859b(0x11e),'description':a22_0xa859b(0xfa),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x2f2def){const _0x57bb83=a22_0xa859b,_0x26935c=_0x2f2def[_0x57bb83(0x114)][0x0],_0x126f2e=_0x2f2def[_0x57bb83(0x114)][0x1];if(!_0x26935c||_0x126f2e===undefined)throw CliErrors[_0x57bb83(0xfb)]('Missing\x20key\x20or\x20value.','Usage:\x20'+CLI_BIN_NAME+_0x57bb83(0xf8));if(ENUM_KEYS[_0x26935c]&&!ENUM_KEYS[_0x26935c][_0x57bb83(0x130)](_0x126f2e))throw CliErrors[_0x57bb83(0xfb)](_0x57bb83(0x102)+_0x26935c+_0x57bb83(0x132)+ENUM_KEYS[_0x26935c]['join'](',\x20'));if(isCliProtectedConfigKey(_0x26935c))throw CliErrors[_0x57bb83(0xfb)]('\x22'+_0x26935c+'\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.');if(_0x26935c===_0x57bb83(0x12e)){const _0xc8144c=Number(_0x126f2e);if(isNaN(_0xc8144c)||_0xc8144c<=0x0)throw CliErrors[_0x57bb83(0xfb)](_0x57bb83(0x12f));}const _0x3530ed=resolveWriteScope({'explicitGlobal':_0x2f2def[_0x57bb83(0xf7)](_0x57bb83(0x116)),'policy':_0x57bb83(0xf0)}),_0x166095=toScopeFlags(_0x3530ed),_0x4c3a4e=readScopedConfig(_0x166095),_0x48b1b9=parseAliasAppcodeSetKey(_0x26935c);if(!_0x48b1b9&&!isTopLevelConfigKey(_0x26935c))throw CliErrors[_0x57bb83(0xfb)](_0x57bb83(0x121)+_0x26935c+_0x57bb83(0xff),_0x57bb83(0x12d)+getTopLevelConfigKeySummary()+_0x57bb83(0xf4));if(_0x48b1b9)setLocalAppAlias(_0x4c3a4e,_0x48b1b9,_0x126f2e);else{if(_0x26935c===_0x57bb83(0xfc)){const _0x2c72c9=normalizeLocale(_0x126f2e);if(!_0x2c72c9)throw CliErrors[_0x57bb83(0xfb)]('Invalid\x20locale\x20value.','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');_0x4c3a4e['locale']=_0x2c72c9;}else _0x4c3a4e[_0x26935c]=_0x26935c===_0x57bb83(0x12e)?Number(_0x126f2e):DOMAIN_CONFIG_FIELDS['includes'](_0x26935c)?normalizeDomainOrigin(_0x26935c,_0x126f2e):_0x126f2e;}const _0x55e677=_0x26935c===_0x57bb83(0x117)?maskCliAccessKey(_0x126f2e):!_0x48b1b9&&_0x26935c===_0x57bb83(0xfc)?String(_0x4c3a4e['locale']):_0x126f2e;return console[_0x57bb83(0x101)](_0x57bb83(0xfd)+_0x26935c+_0x57bb83(0xef)+_0x55e677+'\x22'+(_0x3530ed===_0x57bb83(0x116)?_0x57bb83(0x10d):'')),writeScopedConfig(_0x4c3a4e,_0x166095),{'ok':!![]};}},deleteDef={'service':a22_0xa859b(0x11c),'command':'delete','description':'Delete\x20a\x20configuration\x20value','risk':'write','confirmationDescription':a22_0xa859b(0x111),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x208b37){const _0x3b097d=a22_0xa859b,_0x3d46f8=_0x208b37['args'][0x0];if(!_0x3d46f8)throw CliErrors['validation'](_0x3b097d(0x127),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');if(isCliProtectedConfigKey(_0x3d46f8))throw CliErrors[_0x3b097d(0xfb)]('\x22'+_0x3d46f8+_0x3b097d(0x11d));const _0x4f2202=resolveWriteScope({'explicitGlobal':_0x208b37[_0x3b097d(0xf7)](_0x3b097d(0x116)),'policy':'project-or-global-explicit'}),_0x334ef0=toScopeFlags(_0x4f2202),_0x4ea27a=readScopedConfig(_0x334ef0),_0x39df3c=parseAliasDeleteKey(_0x3d46f8);if(_0x39df3c){if(!deleteLocalAppAlias(_0x4ea27a,_0x39df3c))return console[_0x3b097d(0x101)](_0x3b097d(0x10c)+_0x3d46f8+(_0x4f2202==='global'?_0x3b097d(0x10d):'')),{'ok':!![],'data':{'key':_0x3d46f8,'scope':_0x4f2202,'changed':![]}};return console[_0x3b097d(0x101)](_0x3b097d(0x105)+_0x3d46f8+'`'+(_0x4f2202===_0x3b097d(0x116)?_0x3b097d(0x10d):'')),writeScopedConfig(_0x4ea27a,_0x334ef0),{'ok':!![],'data':{'key':_0x3d46f8,'scope':_0x4f2202,'changed':!![]}};}if(_0x4ea27a[_0x3d46f8]===undefined)return console[_0x3b097d(0x101)]('Key\x20already\x20absent:\x20'+_0x3d46f8+(_0x4f2202==='global'?_0x3b097d(0x10d):'')),{'ok':!![],'data':{'key':_0x3d46f8,'scope':_0x4f2202,'changed':![]}};return delete _0x4ea27a[_0x3d46f8],console['log'](_0x3b097d(0x105)+_0x3d46f8+'`'+(_0x4f2202===_0x3b097d(0x116)?_0x3b097d(0x10d):'')),writeScopedConfig(_0x4ea27a,_0x334ef0),{'ok':!![],'data':{'key':_0x3d46f8,'scope':_0x4f2202,'changed':!![]}};}};export const configDefinitions=[configInitDefinition,listDef,getDef,setDef,deleteDef];
1
+ const a23_0x5f4962=a23_0x57ed;(function(_0x50a60a,_0xc0e55d){const _0x34bdb5=a23_0x57ed,_0x549386=_0x50a60a();while(!![]){try{const _0x394279=parseInt(_0x34bdb5(0x1da))/0x1*(-parseInt(_0x34bdb5(0x1c6))/0x2)+-parseInt(_0x34bdb5(0x1d5))/0x3+-parseInt(_0x34bdb5(0x1ba))/0x4+-parseInt(_0x34bdb5(0x1fb))/0x5+parseInt(_0x34bdb5(0x1fd))/0x6*(parseInt(_0x34bdb5(0x1d7))/0x7)+parseInt(_0x34bdb5(0x1f9))/0x8+-parseInt(_0x34bdb5(0x1e6))/0x9*(-parseInt(_0x34bdb5(0x1f1))/0xa);if(_0x394279===_0xc0e55d)break;else _0x549386['push'](_0x549386['shift']());}catch(_0x194d5c){_0x549386['push'](_0x549386['shift']());}}}(a23_0x183a,0xe0c83));function a23_0x183a(){const _0x44c1d8=['4053618LXgRZC','log','77CjaSuC','Set\x20a\x20configuration\x20value','\x20config\x20get\x20<key>','1240313eOdlKv','raw','join','\x20(global)','apps','bool','Key\x20not\x20found:\x20','set','field',';\x20apps.<alias>.appcode','global','trim','9dhxwmd','Changes\x20Lovrabet\x20CLI\x20configuration.\x20Later\x20commands\x20may\x20use\x20a\x20different\x20app,\x20environment,\x20or\x20output\x20behavior.','key','accessKey','Missing\x20key\x20argument.','config','list','\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.','Settable\x20keys:\x20','keys','args','37636310AlxYjO','(none)','../../context.js','Set\x20`','Top-level\x20key\x20\x22','Value\x20to\x20assign','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','Invalid\x20locale\x20value.','11269128EcTmvI','write','5928770NPrcHR','appcode','475926whOBXm','read','5387292wHwmJg','Key\x20already\x20absent:\x20','object','get','includes','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','locale','validation','Usage:\x20','project-or-global-explicit','format','Deletes\x20a\x20Lovrabet\x20CLI\x20config\x20key.\x20Later\x20commands\x20will\x20fall\x20back\x20to\x20another\x20config\x20layer\x20or\x20the\x20default.','2BPSZhX','Config\x20files:\x0a','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','`\x20=\x20\x22','alias','\x22\x20is\x20not\x20settable.','List\x20current\x20config','\x20\x20global:\x20\x20','length','pageSize','stringify','isArray','pageSize\x20must\x20be\x20a\x20positive\x20number','Deleted\x20`','Missing\x20key\x20or\x20value.'];a23_0x183a=function(){return _0x44c1d8;};return a23_0x183a();}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(_0x26dfe0){const _0x3284fd=a23_0x57ed,_0x43f139=_0x26dfe0['split']('.');if(_0x43f139[_0x3284fd(0x1ce)]!==0x3||_0x43f139[0x0]!==_0x3284fd(0x1de)||_0x43f139[0x2]!==_0x3284fd(0x1fc))return undefined;const _0xcdc89=_0x43f139[0x1]?.[_0x3284fd(0x1e5)]();return _0xcdc89?_0xcdc89:undefined;}function parseAliasDeleteKey(_0x42a7b8){const _0x2db682=a23_0x57ed,_0x40e318=_0x42a7b8['split']('.');if(_0x40e318[_0x2db682(0x1ce)]===0x2&&_0x40e318[0x0]===_0x2db682(0x1de)){const _0x36cd49=_0x40e318[0x1]?.[_0x2db682(0x1e5)]();return _0x36cd49?{'alias':_0x36cd49}:undefined;}if(_0x40e318[_0x2db682(0x1ce)]===0x3&&_0x40e318[0x0]===_0x2db682(0x1de)&&_0x40e318[0x2]===_0x2db682(0x1fc)){const _0x252a15=_0x40e318[0x1]?.['trim']();return _0x252a15?{'alias':_0x252a15,'field':_0x2db682(0x1fc)}:undefined;}return undefined;}function setLocalAppAlias(_0x49a2d9,_0x3a898d,_0x3ea613){const _0x160e3b=a23_0x57ed,_0x4addac=_0x49a2d9[_0x160e3b(0x1de)]&&typeof _0x49a2d9['apps']===_0x160e3b(0x1bc)&&!Array[_0x160e3b(0x1d1)](_0x49a2d9[_0x160e3b(0x1de)])?_0x49a2d9[_0x160e3b(0x1de)]:{},_0x13547b=_0x4addac[_0x3a898d]&&typeof _0x4addac[_0x3a898d]===_0x160e3b(0x1bc)&&!Array[_0x160e3b(0x1d1)](_0x4addac[_0x3a898d])?_0x4addac[_0x3a898d]:{};_0x13547b[_0x160e3b(0x1fc)]=_0x3ea613,_0x4addac[_0x3a898d]=_0x13547b,_0x49a2d9[_0x160e3b(0x1de)]=_0x4addac;}function deleteLocalAppAlias(_0x59e246,_0x9eff0e){const _0x306513=a23_0x57ed;if(!_0x59e246[_0x306513(0x1de)]||typeof _0x59e246[_0x306513(0x1de)]!==_0x306513(0x1bc)||Array[_0x306513(0x1d1)](_0x59e246['apps']))return![];const _0x144d50=_0x59e246[_0x306513(0x1de)],_0x570743=_0x144d50[_0x9eff0e[_0x306513(0x1ca)]];if(!_0x570743||typeof _0x570743!==_0x306513(0x1bc)||Array['isArray'](_0x570743))return![];if(!_0x9eff0e[_0x306513(0x1e2)])return delete _0x144d50[_0x9eff0e[_0x306513(0x1ca)]],!![];if(!(_0x9eff0e[_0x306513(0x1e2)]in _0x570743))return![];return delete _0x570743[_0x9eff0e[_0x306513(0x1e2)]],Object[_0x306513(0x1ef)](_0x570743)[_0x306513(0x1ce)]===0x0&&delete _0x144d50[_0x9eff0e['alias']],!![];}const listDef={'service':'config','command':a23_0x5f4962(0x1ec),'description':a23_0x5f4962(0x1cc),'risk':a23_0x5f4962(0x1fe),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x50b508){const _0x2de271=a23_0x5f4962,{buildConfigFromFlags:_0x2f9ac5}=await import(_0x2de271(0x1f3)),_0x31f5b9=_0x2f9ac5({}),_0x7a26b6=redactCliConfigCredentials(_0x31f5b9[_0x2de271(0x1db)]),_0x30d20c=getProjectConfigPath(),_0x29b6e5=resolveWriteConfigPath('global');if(_0x50b508[_0x2de271(0x1c4)]==='pretty')return{'ok':!![],'message':_0x2de271(0x1bf)+(JSON[_0x2de271(0x1d0)](_0x7a26b6,null,0x2)+'\x0a\x0a')+_0x2de271(0x1c7)+('\x20\x20project:\x20'+(_0x30d20c??_0x2de271(0x1f2))+'\x0a')+(_0x2de271(0x1cd)+_0x29b6e5)};return{'ok':!![],'data':{'effective':_0x7a26b6,'configFiles':{'project':_0x30d20c??null,'global':_0x29b6e5}}};}},getDef={'service':a23_0x5f4962(0x1eb),'command':a23_0x5f4962(0x1bd),'description':'Get\x20a\x20config\x20value','risk':a23_0x5f4962(0x1fe),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':a23_0x5f4962(0x1f7),'required':!![]}],'flags':[],async 'execute'(_0x2c06c4){const _0x556488=a23_0x5f4962,_0x2443c1=_0x2c06c4[_0x556488(0x1f0)][0x0];if(!_0x2443c1)throw CliErrors['validation'](_0x556488(0x1ea),_0x556488(0x1c2)+CLI_BIN_NAME+_0x556488(0x1d9));const {buildConfigFromFlags:_0x51c13f}=await import(_0x556488(0x1f3)),{raw:_0x302c59}=_0x51c13f({});if(_0x2443c1[_0x556488(0x1be)]('.')){const _0x42c291=_0x2443c1['split']('.');let _0x570695=_0x302c59;for(const _0x44976f of _0x42c291){if(_0x570695==null||typeof _0x570695!=='object')throw CliErrors[_0x556488(0x1c1)]('Key\x20not\x20found:\x20'+_0x2443c1);_0x570695=_0x570695[_0x44976f];}if(_0x570695===undefined)throw CliErrors[_0x556488(0x1c1)](_0x556488(0x1e0)+_0x2443c1);const _0x497f98=redactCliConfigValue(_0x2443c1,_0x570695);return console[_0x556488(0x1d6)](typeof _0x497f98==='object'?JSON[_0x556488(0x1d0)](_0x497f98,null,0x2):String(_0x497f98)),{'ok':!![]};}const _0x1d3bce=_0x302c59[_0x2443c1];if(_0x1d3bce===undefined)throw CliErrors[_0x556488(0x1c1)](_0x556488(0x1e0)+_0x2443c1);const _0x28cd15=redactCliConfigValue(_0x2443c1,_0x1d3bce);return console[_0x556488(0x1d6)](typeof _0x28cd15===_0x556488(0x1bc)?JSON['stringify'](_0x28cd15,null,0x2):String(_0x28cd15)),{'ok':!![]};}},setDef={'service':a23_0x5f4962(0x1eb),'command':a23_0x5f4962(0x1e1),'description':a23_0x5f4962(0x1d8),'risk':a23_0x5f4962(0x1fa),'confirmationDescription':a23_0x5f4962(0x1e7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x5f4962(0x1e8),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':a23_0x5f4962(0x1f6),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x266ca6){const _0x1fd222=a23_0x5f4962,_0x4afd72=_0x266ca6[_0x1fd222(0x1f0)][0x0],_0x1726d0=_0x266ca6[_0x1fd222(0x1f0)][0x1];if(!_0x4afd72||_0x1726d0===undefined)throw CliErrors[_0x1fd222(0x1c1)](_0x1fd222(0x1d4),_0x1fd222(0x1c2)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x4afd72]&&!ENUM_KEYS[_0x4afd72][_0x1fd222(0x1be)](_0x1726d0))throw CliErrors[_0x1fd222(0x1c1)]('Invalid\x20value\x20for\x20\x22'+_0x4afd72+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x4afd72][_0x1fd222(0x1dc)](',\x20'));if(isCliProtectedConfigKey(_0x4afd72))throw CliErrors['validation']('\x22'+_0x4afd72+'\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.');if(_0x4afd72===_0x1fd222(0x1cf)){const _0x53d9f4=Number(_0x1726d0);if(isNaN(_0x53d9f4)||_0x53d9f4<=0x0)throw CliErrors[_0x1fd222(0x1c1)](_0x1fd222(0x1d2));}const _0xe249c3=resolveWriteScope({'explicitGlobal':_0x266ca6[_0x1fd222(0x1df)](_0x1fd222(0x1e4)),'policy':_0x1fd222(0x1c3)}),_0x5ca041=toScopeFlags(_0xe249c3),_0x3f59f0=readScopedConfig(_0x5ca041),_0x421293=parseAliasAppcodeSetKey(_0x4afd72);if(!_0x421293&&!isTopLevelConfigKey(_0x4afd72))throw CliErrors['validation'](_0x1fd222(0x1f5)+_0x4afd72+_0x1fd222(0x1cb),_0x1fd222(0x1ee)+getTopLevelConfigKeySummary()+_0x1fd222(0x1e3));if(_0x421293)setLocalAppAlias(_0x3f59f0,_0x421293,_0x1726d0);else{if(_0x4afd72===_0x1fd222(0x1c0)){const _0x52610e=normalizeLocale(_0x1726d0);if(!_0x52610e)throw CliErrors[_0x1fd222(0x1c1)](_0x1fd222(0x1f8),_0x1fd222(0x1c8));_0x3f59f0[_0x1fd222(0x1c0)]=_0x52610e;}else _0x3f59f0[_0x4afd72]=_0x4afd72===_0x1fd222(0x1cf)?Number(_0x1726d0):DOMAIN_CONFIG_FIELDS[_0x1fd222(0x1be)](_0x4afd72)?normalizeDomainOrigin(_0x4afd72,_0x1726d0):_0x1726d0;}const _0xff6844=_0x4afd72===_0x1fd222(0x1e9)?maskCliAccessKey(_0x1726d0):!_0x421293&&_0x4afd72===_0x1fd222(0x1c0)?String(_0x3f59f0[_0x1fd222(0x1c0)]):_0x1726d0;return console[_0x1fd222(0x1d6)](_0x1fd222(0x1f4)+_0x4afd72+_0x1fd222(0x1c9)+_0xff6844+'\x22'+(_0xe249c3==='global'?_0x1fd222(0x1dd):'')),writeScopedConfig(_0x3f59f0,_0x5ca041),{'ok':!![]};}},deleteDef={'service':a23_0x5f4962(0x1eb),'command':'delete','description':'Delete\x20a\x20configuration\x20value','risk':'write','confirmationDescription':a23_0x5f4962(0x1c5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x5f4962(0x1e8),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x2b830b){const _0x116cba=a23_0x5f4962,_0x1a0acc=_0x2b830b['args'][0x0];if(!_0x1a0acc)throw CliErrors[_0x116cba(0x1c1)](_0x116cba(0x1ea),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');if(isCliProtectedConfigKey(_0x1a0acc))throw CliErrors['validation']('\x22'+_0x1a0acc+_0x116cba(0x1ed));const _0x341cc0=resolveWriteScope({'explicitGlobal':_0x2b830b[_0x116cba(0x1df)](_0x116cba(0x1e4)),'policy':_0x116cba(0x1c3)}),_0x1f3977=toScopeFlags(_0x341cc0),_0x44d09b=readScopedConfig(_0x1f3977),_0x57b166=parseAliasDeleteKey(_0x1a0acc);if(_0x57b166){if(!deleteLocalAppAlias(_0x44d09b,_0x57b166))return console[_0x116cba(0x1d6)](_0x116cba(0x1bb)+_0x1a0acc+(_0x341cc0===_0x116cba(0x1e4)?_0x116cba(0x1dd):'')),{'ok':!![],'data':{'key':_0x1a0acc,'scope':_0x341cc0,'changed':![]}};return console['log'](_0x116cba(0x1d3)+_0x1a0acc+'`'+(_0x341cc0==='global'?_0x116cba(0x1dd):'')),writeScopedConfig(_0x44d09b,_0x1f3977),{'ok':!![],'data':{'key':_0x1a0acc,'scope':_0x341cc0,'changed':!![]}};}if(_0x44d09b[_0x1a0acc]===undefined)return console[_0x116cba(0x1d6)](_0x116cba(0x1bb)+_0x1a0acc+(_0x341cc0===_0x116cba(0x1e4)?_0x116cba(0x1dd):'')),{'ok':!![],'data':{'key':_0x1a0acc,'scope':_0x341cc0,'changed':![]}};return delete _0x44d09b[_0x1a0acc],console[_0x116cba(0x1d6)](_0x116cba(0x1d3)+_0x1a0acc+'`'+(_0x341cc0===_0x116cba(0x1e4)?_0x116cba(0x1dd):'')),writeScopedConfig(_0x44d09b,_0x1f3977),{'ok':!![],'data':{'key':_0x1a0acc,'scope':_0x341cc0,'changed':!![]}};}};function a23_0x57ed(_0x451435,_0x421b70){_0x451435=_0x451435-0x1ba;const _0x183a23=a23_0x183a();let _0x57edc5=_0x183a23[_0x451435];return _0x57edc5;}export const configDefinitions=[configInitDefinition,listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- const a23_0x42fc73=a23_0x3495;function a23_0x4d87(){const _0x17218c=['Custom\x20SkillHub\x20HTTPS\x20origin','mode','Custom\x20User\x20HTTPS\x20origin','1369420dTYqLt','enterprise-v1','map','routing','ExitPromptError','label','Updates\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20AccessKey,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','5295084EEamQt','join','Custom\x20Runtime\x20HTTPS\x20origin','18SZnqYB','domains','str','cancelled','7PResDt','Lovrabet\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','Official\x20Lovrabet\x20region:\x20','4976552nPPFoT','assign','runtime-domain','keys','2401025fjyBze','string','Custom\x20platform\x20API\x20HTTPS\x20origin','api-domain','init','domain-config','official','11VEMows','manifestDomains','Select\x20Lovrabet\x20region','Independent-deployment\x20Domain\x20JSON\x20file','1665732kIZRPo','316672KXmPZP','write','18MBdYsi','independent','Initialize\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','region','63842rmUDjO','validation','nonInteractive','skill-domain','user-domain','30LEhaDz','Available\x20regions:\x20'];a23_0x4d87=function(){return _0x17218c;};return a23_0x4d87();}(function(_0x55e964,_0xc0c3b9){const _0x169898=a23_0x3495,_0x5024ca=_0x55e964();while(!![]){try{const _0x425911=parseInt(_0x169898(0x1b6))/0x1*(-parseInt(_0x169898(0x1d3))/0x2)+-parseInt(_0x169898(0x1d8))/0x3*(-parseInt(_0x169898(0x1cd))/0x4)+-parseInt(_0x169898(0x1c1))/0x5+parseInt(_0x169898(0x1cc))/0x6+parseInt(_0x169898(0x1ba))/0x7*(parseInt(_0x169898(0x1bd))/0x8)+-parseInt(_0x169898(0x1cf))/0x9*(-parseInt(_0x169898(0x1dd))/0xa)+-parseInt(_0x169898(0x1c8))/0xb*(parseInt(_0x169898(0x1b3))/0xc);if(_0x425911===_0xc0c3b9)break;else _0x5024ca['push'](_0x5024ca['shift']());}catch(_0x11ce4b){_0x5024ca['push'](_0x5024ca['shift']());}}}(a23_0x4d87,0x728df));import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';function a23_0x3495(_0x452ef4,_0x7a843a){_0x452ef4=_0x452ef4-0x1af;const _0x4d87a6=a23_0x4d87();let _0x3495a8=_0x4d87a6[_0x452ef4];return _0x3495a8;}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_0x42fc73(0x1c6),'type':'string','description':a23_0x42fc73(0x1cb)},{'name':a23_0x42fc73(0x1d7),'type':a23_0x42fc73(0x1c2),'description':a23_0x42fc73(0x1dc)},{'name':a23_0x42fc73(0x1c4),'type':a23_0x42fc73(0x1c2),'description':a23_0x42fc73(0x1c3)},{'name':a23_0x42fc73(0x1bf),'type':a23_0x42fc73(0x1c2),'description':a23_0x42fc73(0x1b5)},{'name':a23_0x42fc73(0x1d6),'type':a23_0x42fc73(0x1c2),'description':a23_0x42fc73(0x1da)}];export const configInitFlags=[{'name':a23_0x42fc73(0x1d2),'type':a23_0x42fc73(0x1c2),'description':a23_0x42fc73(0x1bc)+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},...domainFlags];async function resolveRegion(_0x5ad876){const _0x3a138f=a23_0x42fc73,_0x364a34=_0x5ad876[_0x3a138f(0x1b8)](_0x3a138f(0x1d2));if(_0x364a34){if(!isEnabledLovrabetRegion(_0x364a34))throw CliErrors[_0x3a138f(0x1d4)]('Region\x20\x22'+_0x364a34+'\x22\x20is\x20not\x20currently\x20available.',_0x3a138f(0x1d9)+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20'));return _0x364a34;}if(_0x5ad876[_0x3a138f(0x1d5)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x3a138f(0x1ca),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x3a138f(0x1df)](_0x3c66a7=>({'name':OFFICIAL_ROUTING_PROFILES[_0x3c66a7][_0x3a138f(0x1b1)]+'\x20('+_0x3c66a7+')','value':_0x3c66a7}))});}catch(_0x3741f1){if(_0x3741f1?.['name']===_0x3a138f(0x1b0))throw CliErrors[_0x3a138f(0x1b9)]();throw _0x3741f1;}}export async function executeConfigInit(_0x3582a8){const _0x52c12e=a23_0x42fc73,_0x18d116=resolveDomainConfigInput(_0x3582a8),_0x2f2ccf=_0x18d116[_0x52c12e(0x1b7)],_0x2a0999=Object[_0x52c12e(0x1c0)](_0x2f2ccf)['length']>0x0;if(_0x2a0999&&_0x3582a8[_0x52c12e(0x1b8)](_0x52c12e(0x1d2)))throw CliErrors['validation']('Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.');const _0x3790b0={'global':!![]},_0x17e578=readScopedConfig(_0x3790b0);for(const _0x33fa00 of DOMAIN_CONFIG_FIELDS)delete _0x17e578[_0x33fa00];for(const _0x10d5bd of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x17e578[_0x10d5bd];delete _0x17e578[_0x52c12e(0x1af)];let _0x594952=null;if(_0x2a0999)delete _0x17e578[_0x52c12e(0x1d2)],_0x18d116[_0x52c12e(0x1db)]===_0x52c12e(0x1de)?_0x17e578[_0x52c12e(0x1af)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x18d116[_0x52c12e(0x1c9)]}:Object[_0x52c12e(0x1be)](_0x17e578,_0x2f2ccf);else{_0x594952=await resolveRegion(_0x3582a8);if(_0x594952===DEFAULT_LOVRABET_REGION)delete _0x17e578[_0x52c12e(0x1d2)];else _0x17e578['region']=_0x594952;}return writeScopedConfig(_0x17e578,_0x3790b0),{'ok':!![],'message':_0x2a0999?_0x52c12e(0x1bb)+Object[_0x52c12e(0x1c0)](_0x18d116['mode']===_0x52c12e(0x1de)?_0x18d116[_0x52c12e(0x1c9)]:_0x2f2ccf)[_0x52c12e(0x1b4)](',\x20')+'.':'Lovrabet\x20connection\x20configured\x20for\x20region:\x20'+_0x594952+'.','data':{'mode':_0x2a0999?_0x52c12e(0x1d0):_0x52c12e(0x1c7),'protocol':_0x18d116[_0x52c12e(0x1db)]===_0x52c12e(0x1de)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x594952,'domains':_0x2f2ccf}};}export const configInitDefinition={'service':'config','command':a23_0x42fc73(0x1c5),'description':a23_0x42fc73(0x1d1),'risk':a23_0x42fc73(0x1ce),'confirmationDescription':a23_0x42fc73(0x1b2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
1
+ const a24_0x520867=a24_0xfe91;function a24_0x3ff5(){const _0x36aaa4=['18121788ODRWVA','config','routing','label','region','runtime-domain','40MXMQCw','Custom\x20SkillHub\x20HTTPS\x20origin','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','12203710BbLABU','assign','523864cGVnjU','init','Lovrabet\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','15VNprGX','domains','length','validation','ExitPromptError','string','keys','3277878McXshD','2083059kJPLJt','independent','write','manifestDomains','enterprise-v1','3SlSwxJ','Available\x20regions:\x20','Initialize\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','api-domain','Updates\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20AccessKey,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','domain-config','6402662ZFWuVJ','Custom\x20User\x20HTTPS\x20origin','skill-domain','name','87hcnuDQ','Select\x20Lovrabet\x20region','mode','str','3574nrWNpF','Lovrabet\x20connection\x20configured\x20for\x20region:\x20','Region\x20\x22','\x22\x20is\x20not\x20currently\x20available.','map','join','11lnCkmO'];a24_0x3ff5=function(){return _0x36aaa4;};return a24_0x3ff5();}(function(_0x2e33f2,_0x7e94e){const _0x4e856e=a24_0xfe91,_0xffb088=_0x2e33f2();while(!![]){try{const _0x1dce3a=-parseInt(_0x4e856e(0x18c))/0x1*(parseInt(_0x4e856e(0x190))/0x2)+parseInt(_0x4e856e(0x182))/0x3*(-parseInt(_0x4e856e(0x172))/0x4)+-parseInt(_0x4e856e(0x175))/0x5*(-parseInt(_0x4e856e(0x17c))/0x6)+parseInt(_0x4e856e(0x188))/0x7+parseInt(_0x4e856e(0x16d))/0x8*(-parseInt(_0x4e856e(0x17d))/0x9)+parseInt(_0x4e856e(0x170))/0xa*(parseInt(_0x4e856e(0x196))/0xb)+-parseInt(_0x4e856e(0x167))/0xc;if(_0x1dce3a===_0x7e94e)break;else _0xffb088['push'](_0xffb088['shift']());}catch(_0x42fef0){_0xffb088['push'](_0xffb088['shift']());}}}(a24_0x3ff5,0xc83a9));import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';function a24_0xfe91(_0x2ca677,_0x434771){_0x2ca677=_0x2ca677-0x167;const _0x3ff5b0=a24_0x3ff5();let _0xfe9142=_0x3ff5b0[_0x2ca677];return _0xfe9142;}import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';import{OFFICIAL_ROUTING_PROFILES}from'../../generated/official-routing.js';const domainFlags=[{'name':a24_0x520867(0x187),'type':'string','description':'Independent-deployment\x20Domain\x20JSON\x20file'},{'name':'user-domain','type':a24_0x520867(0x17a),'description':a24_0x520867(0x189)},{'name':a24_0x520867(0x185),'type':a24_0x520867(0x17a),'description':'Custom\x20platform\x20API\x20HTTPS\x20origin'},{'name':a24_0x520867(0x16c),'type':a24_0x520867(0x17a),'description':'Custom\x20Runtime\x20HTTPS\x20origin'},{'name':a24_0x520867(0x18a),'type':a24_0x520867(0x17a),'description':a24_0x520867(0x16e)}];export const configInitFlags=[{'name':a24_0x520867(0x16b),'type':'string','description':'Official\x20Lovrabet\x20region:\x20'+ENABLED_LOVRABET_REGION_VALUES[a24_0x520867(0x195)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},...domainFlags];async function resolveRegion(_0x44c931){const _0x37fddc=a24_0x520867,_0x47c85d=_0x44c931[_0x37fddc(0x18f)](_0x37fddc(0x16b));if(_0x47c85d){if(!isEnabledLovrabetRegion(_0x47c85d))throw CliErrors['validation'](_0x37fddc(0x192)+_0x47c85d+_0x37fddc(0x193),_0x37fddc(0x183)+ENABLED_LOVRABET_REGION_VALUES[_0x37fddc(0x195)](',\x20'));return _0x47c85d;}if(_0x44c931['nonInteractive'])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x37fddc(0x18d),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x37fddc(0x194)](_0x585a2c=>({'name':OFFICIAL_ROUTING_PROFILES[_0x585a2c][_0x37fddc(0x16a)]+'\x20('+_0x585a2c+')','value':_0x585a2c}))});}catch(_0x124ae8){if(_0x124ae8?.[_0x37fddc(0x18b)]===_0x37fddc(0x179))throw CliErrors['cancelled']();throw _0x124ae8;}}export async function executeConfigInit(_0x4ed9ef){const _0x197660=a24_0x520867,_0x1eadfd=resolveDomainConfigInput(_0x4ed9ef),_0x309c58=_0x1eadfd[_0x197660(0x176)],_0x5abafd=Object[_0x197660(0x17b)](_0x309c58)[_0x197660(0x177)]>0x0;if(_0x5abafd&&_0x4ed9ef[_0x197660(0x18f)](_0x197660(0x16b)))throw CliErrors[_0x197660(0x178)](_0x197660(0x16f));const _0x31fe3c={'global':!![]},_0x5b55e0=readScopedConfig(_0x31fe3c);for(const _0x54252a of DOMAIN_CONFIG_FIELDS)delete _0x5b55e0[_0x54252a];for(const _0x42afa2 of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x5b55e0[_0x42afa2];delete _0x5b55e0['routing'];let _0x4dd124=null;if(_0x5abafd)delete _0x5b55e0[_0x197660(0x16b)],_0x1eadfd[_0x197660(0x18e)]==='enterprise-v1'?_0x5b55e0[_0x197660(0x169)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x1eadfd['manifestDomains']}:Object[_0x197660(0x171)](_0x5b55e0,_0x309c58);else{_0x4dd124=await resolveRegion(_0x4ed9ef);if(_0x4dd124===DEFAULT_LOVRABET_REGION)delete _0x5b55e0[_0x197660(0x16b)];else _0x5b55e0[_0x197660(0x16b)]=_0x4dd124;}return writeScopedConfig(_0x5b55e0,_0x31fe3c),{'ok':!![],'message':_0x5abafd?_0x197660(0x174)+Object[_0x197660(0x17b)](_0x1eadfd[_0x197660(0x18e)]==='enterprise-v1'?_0x1eadfd[_0x197660(0x180)]:_0x309c58)[_0x197660(0x195)](',\x20')+'.':_0x197660(0x191)+_0x4dd124+'.','data':{'mode':_0x5abafd?_0x197660(0x17e):'official','protocol':_0x1eadfd[_0x197660(0x18e)]===_0x197660(0x181)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x4dd124,'domains':_0x309c58}};}export const configInitDefinition={'service':a24_0x520867(0x168),'command':a24_0x520867(0x173),'description':a24_0x520867(0x184),'risk':a24_0x520867(0x17f),'confirmationDescription':a24_0x520867(0x186),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
@@ -1 +1 @@
1
- (function(_0x200259,_0x3c6009){var _0x54ca57=a24_0x130f,_0x4656c8=_0x200259();while(!![]){try{var _0x43f49a=parseInt(_0x54ca57(0x1c1))/0x1*(-parseInt(_0x54ca57(0x1c7))/0x2)+-parseInt(_0x54ca57(0x1c2))/0x3+-parseInt(_0x54ca57(0x1c3))/0x4+parseInt(_0x54ca57(0x1c8))/0x5*(parseInt(_0x54ca57(0x1c5))/0x6)+parseInt(_0x54ca57(0x1c4))/0x7+-parseInt(_0x54ca57(0x1c9))/0x8+-parseInt(_0x54ca57(0x1ca))/0x9*(-parseInt(_0x54ca57(0x1c6))/0xa);if(_0x43f49a===_0x3c6009)break;else _0x4656c8['push'](_0x4656c8['shift']());}catch(_0x181565){_0x4656c8['push'](_0x4656c8['shift']());}}}(a24_0x13ca,0x91e95));function a24_0x13ca(){var _0x54921d=['317818JmJUwp','2066922KKdYEP','1202560ausUnU','251902XOPNWe','941808lqRjUf','16755850Qnvwss','2ezyQck','20mjxQRY','3474864ZPNsON','9hXPmbQ'];a24_0x13ca=function(){return _0x54921d;};return a24_0x13ca();}function a24_0x130f(_0x367b67,_0x26cd26){_0x367b67=_0x367b67-0x1c1;var _0x13ca8a=a24_0x13ca();var _0x130f97=_0x13ca8a[_0x367b67];return _0x130f97;}import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isCliProtectedConfigKey,isTopLevelConfigKey,normalizeLocale,toScopeFlags}from'../../commands/common/config-policy.js';
1
+ function a25_0x531a(){var _0xb329d=['14dlnIGH','305886pgoPFg','12195104nRgcVs','451335EwdohY','509217Ppoqqf','6797972tpggyO','5619zoDHEe','1607706PPwNFg'];a25_0x531a=function(){return _0xb329d;};return a25_0x531a();}function a25_0x44f5(_0x2a7376,_0x524324){_0x2a7376=_0x2a7376-0x162;var _0x531a42=a25_0x531a();var _0x44f590=_0x531a42[_0x2a7376];return _0x44f590;}(function(_0x415343,_0x44a27f){var _0x4f62b0=a25_0x44f5,_0x179a27=_0x415343();while(!![]){try{var _0x3ce131=parseInt(_0x4f62b0(0x165))/0x1+parseInt(_0x4f62b0(0x168))/0x2+parseInt(_0x4f62b0(0x163))/0x3+parseInt(_0x4f62b0(0x164))/0x4+-parseInt(_0x4f62b0(0x162))/0x5+-parseInt(_0x4f62b0(0x166))/0x6*(-parseInt(_0x4f62b0(0x167))/0x7)+-parseInt(_0x4f62b0(0x169))/0x8;if(_0x3ce131===_0x44a27f)break;else _0x179a27['push'](_0x179a27['shift']());}catch(_0x19ffb1){_0x179a27['push'](_0x179a27['shift']());}}}(a25_0x531a,0xe7b31));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isCliProtectedConfigKey,isTopLevelConfigKey,normalizeLocale,toScopeFlags}from'../../commands/common/config-policy.js';
@@ -1 +1 @@
1
- const a25_0x914339=a25_0x333c;(function(_0x3717ab,_0x2aef87){const _0x529ac6=a25_0x333c,_0x25b005=_0x3717ab();while(!![]){try{const _0x4923eb=-parseInt(_0x529ac6(0x1f0))/0x1*(parseInt(_0x529ac6(0x1e5))/0x2)+-parseInt(_0x529ac6(0x1aa))/0x3+-parseInt(_0x529ac6(0x1c8))/0x4*(parseInt(_0x529ac6(0x1a1))/0x5)+parseInt(_0x529ac6(0x1b1))/0x6*(-parseInt(_0x529ac6(0x1ad))/0x7)+parseInt(_0x529ac6(0x1b7))/0x8*(-parseInt(_0x529ac6(0x1f6))/0x9)+parseInt(_0x529ac6(0x1c1))/0xa*(-parseInt(_0x529ac6(0x1d8))/0xb)+-parseInt(_0x529ac6(0x1b8))/0xc*(-parseInt(_0x529ac6(0x1e9))/0xd);if(_0x4923eb===_0x2aef87)break;else _0x25b005['push'](_0x25b005['shift']());}catch(_0x6a4541){_0x25b005['push'](_0x25b005['shift']());}}}(a25_0x2154,0x78044));import{executeData}from'../../core/sdk-client.js';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_0x914339(0x1d5),'operation':a25_0x914339(0x1d5),'risk':a25_0x914339(0x1a6),'paramsRequired':![],'description':a25_0x914339(0x1d4),'paramsHint':a25_0x914339(0x1d1)+a25_0x914339(0x1dd),'helpExtra':[a25_0x914339(0x1cd),'\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_0x914339(0x1bd),a25_0x914339(0x1ed),a25_0x914339(0x1f3),a25_0x914339(0x1a4),'\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$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]}}',a25_0x914339(0x1cc),a25_0x914339(0x1c3),a25_0x914339(0x1d9),'','\x20\x20LOGICAL\x20COMBINATORS',a25_0x914339(0x1e2),a25_0x914339(0x1ac),'','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)',a25_0x914339(0x19b),a25_0x914339(0x19a),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a25_0x914339(0x1c2),'','\x20\x20PAGINATION',a25_0x914339(0x1f2),a25_0x914339(0x1a9),a25_0x914339(0x1c9),a25_0x914339(0x1a0),a25_0x914339(0x1eb),'\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','\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.'][a25_0x914339(0x1b9)]('\x0a')},{'command':a25_0x914339(0x1b2),'operation':'getOne','risk':a25_0x914339(0x1a6),'paramsRequired':!![],'description':a25_0x914339(0x19c),'paramsHint':a25_0x914339(0x1bb)},{'command':a25_0x914339(0x1c4),'operation':'create','risk':'write','paramsRequired':!![],'description':a25_0x914339(0x1cb),'confirmationDescription':a25_0x914339(0x1a7),'paramsHint':'JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27'},{'command':a25_0x914339(0x1e4),'operation':'batchCreate','risk':a25_0x914339(0x1d7),'paramsRequired':!![],'description':a25_0x914339(0x1f5),'confirmationDescription':a25_0x914339(0x1db),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':a25_0x914339(0x1ea),'operation':'update','risk':a25_0x914339(0x1d7),'paramsRequired':!![],'description':a25_0x914339(0x1af),'confirmationDescription':a25_0x914339(0x1b4),'paramsHint':a25_0x914339(0x1b5)+a25_0x914339(0x1e8)},{'command':a25_0x914339(0x1e7),'operation':'delete','risk':a25_0x914339(0x199),'paramsRequired':!![],'description':a25_0x914339(0x1f4),'confirmationDescription':a25_0x914339(0x1da),'paramsHint':a25_0x914339(0x1bb)},{'command':a25_0x914339(0x1ca),'operation':a25_0x914339(0x1ca),'risk':a25_0x914339(0x1a6),'paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':a25_0x914339(0x1a5)+'Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':[a25_0x914339(0x1d3),a25_0x914339(0x19e),a25_0x914339(0x1e6),a25_0x914339(0x1b0),a25_0x914339(0x1e1),'\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_0x914339(0x1ec),a25_0x914339(0x1d0),'',a25_0x914339(0x196),'\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]','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)',a25_0x914339(0x1a8),a25_0x914339(0x19f),a25_0x914339(0x1ef),a25_0x914339(0x1a2),'',a25_0x914339(0x1f1),a25_0x914339(0x1c7),a25_0x914339(0x1b3),a25_0x914339(0x198),'',a25_0x914339(0x1d2),'\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only',a25_0x914339(0x1e0),'\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL',a25_0x914339(0x1be),'',a25_0x914339(0x1b6),a25_0x914339(0x1c6),'\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','',a25_0x914339(0x1de),'\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','',a25_0x914339(0x195)][a25_0x914339(0x1b9)]('\x0a')}];function makeDataCommand(_0xfd2107){const _0x368d62=a25_0x914339,_0x1dde20=_0x368d62(0x1cf)+_0xfd2107[_0x368d62(0x1bf)],_0x440e89={'service':'data','command':_0xfd2107[_0x368d62(0x1bf)],'description':_0xfd2107['description'],'risk':_0xfd2107[_0x368d62(0x1ab)],..._0xfd2107[_0x368d62(0x1e3)]?{'confirmationDescription':_0xfd2107[_0x368d62(0x1e3)]}:{},'helpExtra':_0xfd2107['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0xfd2107['paramsHint']}],'validate':async _0x335ff1=>{const _0x14df47=_0x368d62;_0xfd2107[_0x14df47(0x1bc)]&&requireAnyOf(_0x335ff1,['params'],_0x1dde20),_0xfd2107[_0x14df47(0x1ae)]===_0x14df47(0x1e4)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x335ff1[_0x14df47(0x1c0)](_0x14df47(0x1df)))),_0xfd2107[_0x14df47(0x1ae)]===_0x14df47(0x1ea)&&parseUpdateIdsFromParams(parseJsonParams(_0x335ff1[_0x14df47(0x1c0)]('params'))??{});},async 'execute'(_0x366483){const _0x19c996=_0x368d62,_0x4f9c66=_0x366483[_0x19c996(0x1c0)](_0x19c996(0x1c5)),_0x32d612=_0xfd2107[_0x19c996(0x1ae)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x366483['str'](_0x19c996(0x1df)))):parseJsonParams(_0x366483[_0x19c996(0x1c0)](_0x19c996(0x1df)))??{},_0x2a08c4=_0xfd2107[_0x19c996(0x1ae)]===_0x19c996(0x1ea)?parseUpdateIdsFromParams(_0x32d612):undefined,_0x3aaad0=_0x2a08c4?normalizeUpdateParamsForRuntime(_0x32d612,_0x2a08c4):_0x32d612,_0x3261f8=Date[_0x19c996(0x1ce)](),_0x530c68=await executeData(_0x4f9c66,_0xfd2107[_0x19c996(0x1ae)],_0x3aaad0),_0x1c11d2=Date[_0x19c996(0x1ce)]()-_0x3261f8,_0x1a8037=_0x2a08c4&&_0x2a08c4['length']>0x1?buildBatchUpdateResult(_0x2a08c4,_0x530c68):_0x530c68;return{'ok':!![],'data':{'result':_0x1a8037,'elapsed':_0x1c11d2},'message':_0x19c996(0x1cf)+_0xfd2107[_0x19c996(0x1bf)]+_0x19c996(0x1a3)+_0x1c11d2+'ms'};}};return _0xfd2107['risk']!==_0x368d62(0x1a6)&&(_0x440e89['dryRun']=async _0x1aad88=>{const _0x159a71=_0x368d62,_0x34801c=_0x1aad88['str'](_0x159a71(0x1c5)),_0x3d59ed=_0xfd2107['operation']==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x1aad88[_0x159a71(0x1c0)]('params'))):parseJsonParams(_0x1aad88[_0x159a71(0x1c0)](_0x159a71(0x1df)))??{};let _0x412ae9=_0x3d59ed;if(_0xfd2107['operation']===_0x159a71(0x1ea)){const _0x52bc3a=parseUpdateIdsFromParams(_0x3d59ed);_0x412ae9=normalizeUpdateParamsForRuntime(_0x3d59ed,_0x52bc3a);}return dryRun(_0x159a71(0x1ee),'/api/{appCode}/'+_0x34801c+'/'+_0xfd2107[_0x159a71(0x1ae)])[_0x159a71(0x1ba)](_0x412ae9)['description']('Preview:\x20data\x20'+_0xfd2107[_0x159a71(0x1bf)]+_0x159a71(0x1dc)+_0x34801c)[_0x159a71(0x1d6)]();}),_0x440e89;}function a25_0x333c(_0x100372,_0x47c4d5){_0x100372=_0x100372-0x195;const _0x2154e2=a25_0x2154();let _0x333c94=_0x2154e2[_0x100372];return _0x333c94;}function a25_0x2154(){const _0x51ca16=['command','str','3349930ZrxUCs','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\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}}','create','code','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only','156zhIZjU','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged','aggregate','Create\x20one\x20record\x20in\x20the\x20dataset','\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\x20WHERE\x20OPERATORS','now','data\x20','\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}','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20DATASET\x20BOUNDARY','\x20\x20AGGREGATE\x20TYPES','Filter\x20dataset\x20records\x20with\x20query\x20conditions','filter','build','write','22aPUQIp','\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}}','Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','\x20on\x20dataset\x20','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','params','\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','\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\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}}]}','confirmationDescription','batchCreate','17426eFTGLR','\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','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','1937QCHTXx','update','\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','\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\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}}','POST','\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}}','44Hezfei','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','\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}}','Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','333oQHuZc','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\x20\x20PARAMS\x20STRUCTURE','map','\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','high-risk-write','\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\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','Get\x20a\x20single\x20record\x20by\x20ID','length','\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\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\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','13035TRXjgN','\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}]','\x20completed\x20in\x20','\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}}','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','read','Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\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.','118152dDbROl','risk','\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}}]}','119910XEvHFL','operation','Update\x20an\x20existing\x20data\x20record','\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}','318gTAqaU','getOne','\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\x20\x20EXAMPLES','111704lnCVDt','250512OLaZzA','join','body','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','paramsRequired','\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}}','\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime'];a25_0x2154=function(){return _0x51ca16;};return a25_0x2154();}export const dataDefinitions=specs[a25_0x914339(0x197)](makeDataCommand);function buildBatchUpdateResult(_0x1d5a0a,_0x2eec29){const _0x205785=a25_0x914339;return{'operation':'update','mode':'batch','ids':_0x1d5a0a,'total':_0x1d5a0a[_0x205785(0x19d)],'result':_0x2eec29};}
1
+ function a26_0x2762(){const _0x31e16d=['Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','data\x20','write','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','8081450qfYgJQ','\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}','\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}}','now','\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','\x20\x20LOGICAL\x20COMBINATORS','\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\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only','POST','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged','65410pjBpib','\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}}','str','\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}','Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','batchCreate','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','1110000ZGZGcK','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','read','command','\x20\x20WHERE\x20OPERATORS','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','body','params','363318ehdGgA','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','getOne','333504EduCTm','\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}','\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]','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','8WcSXPf','paramsRequired','\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}}','Get\x20a\x20single\x20record\x20by\x20ID','Preview:\x20data\x20','high-risk-write','dryRun','\x20\x20AGGREGATE\x20TYPES','update','join','/api/{appCode}/','confirmationDescription','487848TsKumP','\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}}','aggregate','\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.','operation','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','\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\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','code','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','filter','\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.','\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}','Update\x20an\x20existing\x20data\x20record','49sJBtaY','\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}]','108wRYyuv','\x20\x20PARAMS\x20STRUCTURE','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\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}}','create','\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}','length','Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','data','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','\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}}','Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','6171550wRdmbm','\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}}]}','build','description','\x20completed\x20in\x20','risk','batch','\x20\x20DATASET\x20BOUNDARY','Create\x20one\x20record\x20in\x20the\x20dataset','Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','256WKecyg','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\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\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY'];a26_0x2762=function(){return _0x31e16d;};return a26_0x2762();}function a26_0x108c(_0x511825,_0xd5bc66){_0x511825=_0x511825-0x19f;const _0x276298=a26_0x2762();let _0x108c53=_0x276298[_0x511825];return _0x108c53;}const a26_0x166602=a26_0x108c;(function(_0x569de7,_0x355ddb){const _0x2faa51=a26_0x108c,_0x2c3fb2=_0x569de7();while(!![]){try{const _0x45eaaf=parseInt(_0x2faa51(0x1ee))/0x1+parseInt(_0x2faa51(0x200))/0x2*(parseInt(_0x2faa51(0x1f9))/0x3)+parseInt(_0x2faa51(0x1d2))/0x4*(parseInt(_0x2faa51(0x1e7))/0x5)+parseInt(_0x2faa51(0x1f6))/0x6*(parseInt(_0x2faa51(0x1b9))/0x7)+parseInt(_0x2faa51(0x1a9))/0x8*(-parseInt(_0x2faa51(0x1bb))/0x9)+-parseInt(_0x2faa51(0x1dd))/0xa+-parseInt(_0x2faa51(0x1c8))/0xb;if(_0x45eaaf===_0x355ddb)break;else _0x2c3fb2['push'](_0x2c3fb2['shift']());}catch(_0x4e0629){_0x2c3fb2['push'](_0x2c3fb2['shift']());}}}(a26_0x2762,0xae848));import{executeData}from'../../core/sdk-client.js';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':a26_0x166602(0x1b5),'operation':a26_0x166602(0x1b5),'risk':'read','paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a26_0x166602(0x1bd)+a26_0x166602(0x1da),'helpExtra':[a26_0x166602(0x1f2),'\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}}',a26_0x166602(0x19f),a26_0x166602(0x1df),a26_0x166602(0x1d5),'\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}}',a26_0x166602(0x1be),'\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]}}',a26_0x166602(0x1c6),a26_0x166602(0x1aa),a26_0x166602(0x1e8),'',a26_0x166602(0x1e2),a26_0x166602(0x1c9),'\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}}]}','',a26_0x166602(0x1c4),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)',a26_0x166602(0x1b0),a26_0x166602(0x1ba),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','','\x20\x20PAGINATION','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.',a26_0x166602(0x1ac),a26_0x166602(0x1e6),a26_0x166602(0x1ef),a26_0x166602(0x1e1),a26_0x166602(0x1b1),a26_0x166602(0x1b6)][a26_0x166602(0x1a6)]('\x0a')},{'command':a26_0x166602(0x1f8),'operation':a26_0x166602(0x1f8),'risk':'read','paramsRequired':!![],'description':a26_0x166602(0x1a0),'paramsHint':a26_0x166602(0x1ff)},{'command':a26_0x166602(0x1bf),'operation':a26_0x166602(0x1bf),'risk':a26_0x166602(0x1d9),'paramsRequired':!![],'description':a26_0x166602(0x1d0),'confirmationDescription':a26_0x166602(0x1c7),'paramsHint':a26_0x166602(0x1b3)},{'command':a26_0x166602(0x1ec),'operation':a26_0x166602(0x1ec),'risk':a26_0x166602(0x1d9),'paramsRequired':!![],'description':a26_0x166602(0x1c2),'confirmationDescription':'Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','paramsHint':a26_0x166602(0x1f3)},{'command':'update','operation':a26_0x166602(0x1a5),'risk':'write','paramsRequired':!![],'description':a26_0x166602(0x1b8),'confirmationDescription':a26_0x166602(0x1eb),'paramsHint':a26_0x166602(0x1d3)+a26_0x166602(0x1d7)},{'command':a26_0x166602(0x1ae),'operation':a26_0x166602(0x1ae),'risk':a26_0x166602(0x1a2),'paramsRequired':!![],'description':a26_0x166602(0x1c5),'confirmationDescription':a26_0x166602(0x1d1),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':'aggregate','operation':a26_0x166602(0x1ab),'risk':'read','paramsRequired':![],'description':a26_0x166602(0x1dc),'paramsHint':a26_0x166602(0x1f7)+a26_0x166602(0x1db),'helpExtra':[a26_0x166602(0x1a4),a26_0x166602(0x1e3),a26_0x166602(0x1de),a26_0x166602(0x1fa),'\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}',a26_0x166602(0x1c0),a26_0x166602(0x1ea),a26_0x166602(0x1b7),'',a26_0x166602(0x1bc),a26_0x166602(0x1fb),a26_0x166602(0x1fe),a26_0x166602(0x1fd),a26_0x166602(0x1ed),'\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}]','',a26_0x166602(0x1d6),a26_0x166602(0x1e4),'\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','',a26_0x166602(0x1cf),'\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only',a26_0x166602(0x1b4),'\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','','\x20\x20EXAMPLES',a26_0x166602(0x1fc),a26_0x166602(0x1af),'','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter',a26_0x166602(0x1d4),'','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'][a26_0x166602(0x1a6)]('\x0a')}];function makeDataCommand(_0x40ff72){const _0x3f89c8=a26_0x166602,_0x309642=_0x3f89c8(0x1d8)+_0x40ff72[_0x3f89c8(0x1f1)],_0x118bf9={'service':_0x3f89c8(0x1c3),'command':_0x40ff72[_0x3f89c8(0x1f1)],'description':_0x40ff72[_0x3f89c8(0x1cb)],'risk':_0x40ff72[_0x3f89c8(0x1cd)],..._0x40ff72['confirmationDescription']?{'confirmationDescription':_0x40ff72[_0x3f89c8(0x1a8)]}:{},'helpExtra':_0x40ff72['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x40ff72['paramsHint']}],'validate':async _0x1adb88=>{const _0x1f6763=_0x3f89c8;_0x40ff72[_0x1f6763(0x201)]&&requireAnyOf(_0x1adb88,[_0x1f6763(0x1f5)],_0x309642),_0x40ff72[_0x1f6763(0x1ad)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x1adb88['str'](_0x1f6763(0x1f5)))),_0x40ff72[_0x1f6763(0x1ad)]===_0x1f6763(0x1a5)&&parseUpdateIdsFromParams(parseJsonParams(_0x1adb88[_0x1f6763(0x1e9)](_0x1f6763(0x1f5)))??{});},async 'execute'(_0x442a93){const _0x491cac=_0x3f89c8,_0x21db62=_0x442a93[_0x491cac(0x1e9)](_0x491cac(0x1b2)),_0x2a8582=_0x40ff72[_0x491cac(0x1ad)]===_0x491cac(0x1ec)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x442a93['str'](_0x491cac(0x1f5)))):parseJsonParams(_0x442a93[_0x491cac(0x1e9)](_0x491cac(0x1f5)))??{},_0x5e516f=_0x40ff72[_0x491cac(0x1ad)]===_0x491cac(0x1a5)?parseUpdateIdsFromParams(_0x2a8582):undefined,_0x148874=_0x5e516f?normalizeUpdateParamsForRuntime(_0x2a8582,_0x5e516f):_0x2a8582,_0x45a768=Date[_0x491cac(0x1e0)](),_0x4411e2=await executeData(_0x21db62,_0x40ff72[_0x491cac(0x1ad)],_0x148874),_0x1d841a=Date[_0x491cac(0x1e0)]()-_0x45a768,_0x23497a=_0x5e516f&&_0x5e516f[_0x491cac(0x1c1)]>0x1?buildBatchUpdateResult(_0x5e516f,_0x4411e2):_0x4411e2;return{'ok':!![],'data':{'result':_0x23497a,'elapsed':_0x1d841a},'message':'data\x20'+_0x40ff72[_0x491cac(0x1f1)]+_0x491cac(0x1cc)+_0x1d841a+'ms'};}};return _0x40ff72[_0x3f89c8(0x1cd)]!==_0x3f89c8(0x1f0)&&(_0x118bf9[_0x3f89c8(0x1a3)]=async _0x387d5e=>{const _0x46fff2=_0x3f89c8,_0x4b65be=_0x387d5e[_0x46fff2(0x1e9)](_0x46fff2(0x1b2)),_0x5f58a1=_0x40ff72['operation']===_0x46fff2(0x1ec)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x387d5e[_0x46fff2(0x1e9)](_0x46fff2(0x1f5)))):parseJsonParams(_0x387d5e[_0x46fff2(0x1e9)](_0x46fff2(0x1f5)))??{};let _0xf58a43=_0x5f58a1;if(_0x40ff72[_0x46fff2(0x1ad)]==='update'){const _0x567a3d=parseUpdateIdsFromParams(_0x5f58a1);_0xf58a43=normalizeUpdateParamsForRuntime(_0x5f58a1,_0x567a3d);}return dryRun(_0x46fff2(0x1e5),_0x46fff2(0x1a7)+_0x4b65be+'/'+_0x40ff72[_0x46fff2(0x1ad)])[_0x46fff2(0x1f4)](_0xf58a43)[_0x46fff2(0x1cb)](_0x46fff2(0x1a1)+_0x40ff72['command']+'\x20on\x20dataset\x20'+_0x4b65be)[_0x46fff2(0x1ca)]();}),_0x118bf9;}export const dataDefinitions=specs['map'](makeDataCommand);function buildBatchUpdateResult(_0x5f245d,_0x230952){const _0x4336ed=a26_0x166602;return{'operation':'update','mode':_0x4336ed(0x1ce),'ids':_0x5f245d,'total':_0x5f245d[_0x4336ed(0x1c1)],'result':_0x230952};}