@lovrabet/lovrabet-cli 2.3.2-beta.1 → 2.3.2-beta.2

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 (168) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/init.js +1 -1
  25. package/lib/commands/config/shared.js +1 -1
  26. package/lib/commands/data/index.js +1 -1
  27. package/lib/commands/dataset/detail.js +1 -1
  28. package/lib/commands/dataset/index.js +1 -1
  29. package/lib/commands/dataset/list.js +1 -1
  30. package/lib/commands/dataset/sdk-doc.js +1 -1
  31. package/lib/commands/doctor.js +1 -1
  32. package/lib/commands/file/index.js +1 -1
  33. package/lib/commands/init.js +1 -1
  34. package/lib/commands/kb/index.js +1 -1
  35. package/lib/commands/logs/index.js +1 -1
  36. package/lib/commands/notification/config-list.js +1 -1
  37. package/lib/commands/notification/index.js +1 -1
  38. package/lib/commands/notification/shared.js +1 -1
  39. package/lib/commands/ocr/index.js +1 -1
  40. package/lib/commands/permit/dataset-get.js +1 -1
  41. package/lib/commands/permit/dataset-set.js +1 -1
  42. package/lib/commands/permit/index.js +1 -1
  43. package/lib/commands/permit/page-get.js +1 -1
  44. package/lib/commands/permit/page-set.js +1 -1
  45. package/lib/commands/permit/role-menus-set.js +1 -1
  46. package/lib/commands/permit/role-menus.js +1 -1
  47. package/lib/commands/permit/shared.js +1 -1
  48. package/lib/commands/personal-bff/index.js +1 -1
  49. package/lib/commands/registry.js +1 -1
  50. package/lib/commands/role/create.js +1 -1
  51. package/lib/commands/role/delete.js +1 -1
  52. package/lib/commands/role/detail.js +1 -1
  53. package/lib/commands/role/index.js +1 -1
  54. package/lib/commands/role/list.js +1 -1
  55. package/lib/commands/role/shared.js +1 -1
  56. package/lib/commands/role/update.js +1 -1
  57. package/lib/commands/role/user-add.js +1 -1
  58. package/lib/commands/role/user-remove.js +1 -1
  59. package/lib/commands/schedule/index.js +1 -1
  60. package/lib/commands/schema.js +1 -1
  61. package/lib/commands/service/dynamic.js +1 -1
  62. package/lib/commands/service/function-name-adapter.js +1 -1
  63. package/lib/commands/service/index.js +1 -1
  64. package/lib/commands/service/registry.js +1 -1
  65. package/lib/commands/skill/commands/create.js +1 -1
  66. package/lib/commands/skill/commands/diagram.js +1 -1
  67. package/lib/commands/skill/commands/install.js +1 -1
  68. package/lib/commands/skill/commands/list.js +1 -1
  69. package/lib/commands/skill/commands/push.js +1 -1
  70. package/lib/commands/skill/commands/validate.js +1 -1
  71. package/lib/commands/skill/diagram.js +1 -1
  72. package/lib/commands/skill/flags.js +1 -1
  73. package/lib/commands/skill/index.js +1 -1
  74. package/lib/commands/skill/manifest-helpers.js +1 -1
  75. package/lib/commands/skill/push-execute.js +1 -1
  76. package/lib/commands/skill/push-flow-helpers.js +1 -1
  77. package/lib/commands/skill/push-retarget.js +1 -1
  78. package/lib/commands/skill/scopes.js +1 -1
  79. package/lib/commands/skill/summary.js +1 -1
  80. package/lib/commands/skill/templates.js +1 -1
  81. package/lib/commands/skill/validate.js +1 -1
  82. package/lib/commands/sql/detail.js +1 -1
  83. package/lib/commands/sql/exec.js +1 -1
  84. package/lib/commands/sql/index.js +1 -1
  85. package/lib/commands/update.js +1 -1
  86. package/lib/commands/user-account/bind.js +1 -1
  87. package/lib/commands/user-account/index.js +1 -1
  88. package/lib/commands/workspace/index.js +1 -1
  89. package/lib/config/domain-config.js +1 -1
  90. package/lib/config/schema.js +1 -1
  91. package/lib/constant/app.js +1 -1
  92. package/lib/constant/auth-mode.js +1 -1
  93. package/lib/constant/cli.js +1 -1
  94. package/lib/constant/defaults.js +1 -1
  95. package/lib/constant/distribution.js +1 -1
  96. package/lib/constant/domain.js +1 -1
  97. package/lib/constant/env.js +1 -1
  98. package/lib/constant/output.js +1 -1
  99. package/lib/constant/product.js +1 -1
  100. package/lib/constant/region.js +1 -1
  101. package/lib/constant/risk.js +1 -1
  102. package/lib/constant/url.js +1 -1
  103. package/lib/context.js +1 -1
  104. package/lib/core/api-client.js +1 -1
  105. package/lib/core/db-resolver.js +1 -1
  106. package/lib/core/kb-search-client.js +1 -1
  107. package/lib/core/sdk-client.js +1 -1
  108. package/lib/errors.js +1 -1
  109. package/lib/framework/build-all-flags.js +1 -1
  110. package/lib/framework/dryrun.js +1 -1
  111. package/lib/framework/flags.js +1 -1
  112. package/lib/framework/help.js +1 -1
  113. package/lib/framework/index.js +1 -1
  114. package/lib/framework/output.js +1 -1
  115. package/lib/framework/preparse.js +1 -1
  116. package/lib/framework/rate-limit.js +1 -1
  117. package/lib/framework/raw-flags.js +1 -1
  118. package/lib/framework/response.js +1 -1
  119. package/lib/framework/runner-confirmation.js +1 -1
  120. package/lib/framework/runner-error.js +1 -1
  121. package/lib/framework/runner.js +1 -1
  122. package/lib/framework/schema-export.js +1 -1
  123. package/lib/framework/service-order.js +1 -1
  124. package/lib/framework/types.js +1 -1
  125. package/lib/generated/build-info.d.ts +4 -4
  126. package/lib/generated/build-info.js +1 -1
  127. package/lib/generated/official-routing.js +1 -1
  128. package/lib/generated/routing-contract.js +1 -1
  129. package/lib/help.js +1 -1
  130. package/lib/postinstall.js +1 -1
  131. package/lib/runtime/confirmation.js +1 -1
  132. package/lib/runtime/event.js +1 -1
  133. package/lib/runtime/index.js +1 -1
  134. package/lib/runtime/queue.js +1 -1
  135. package/lib/runtime/resolve.js +1 -1
  136. package/lib/skills/builtin-skill.js +1 -1
  137. package/lib/skills/npx-skills-add.js +1 -1
  138. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  139. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  140. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  141. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  142. package/lib/skills/runtime-skill-sync/links.js +1 -1
  143. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  144. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  145. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  146. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  147. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  148. package/lib/skills/runtime-skill-sync/push.js +1 -1
  149. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  150. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  151. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  152. package/lib/skills/runtime-skill-sync.js +1 -1
  153. package/lib/skills/skill-presence.js +1 -1
  154. package/lib/utils/access-key-redaction.js +1 -1
  155. package/lib/utils/apply-jq-filter.js +1 -1
  156. package/lib/utils/cli-version-check.js +1 -1
  157. package/lib/utils/cli-version-policy.js +1 -1
  158. package/lib/utils/logger.js +1 -1
  159. package/lib/utils/lossless-json.js +1 -1
  160. package/lib/utils/params.js +1 -1
  161. package/lib/utils/update-notice.js +1 -1
  162. package/lib/utils/version.js +1 -1
  163. package/lib/utils/write-cli-side-channel.js +1 -1
  164. package/package.json +2 -1
  165. package/skills/lovrabet/SKILL.md +1 -1
  166. package/skills/lovrabet.manifest.json +3 -3
  167. package/lib/utils/platform.d.ts +0 -17
  168. package/lib/utils/platform.js +0 -1
@@ -1 +1 @@
1
- const a12_0x32a81c=a12_0x4ce1;(function(_0x51e0d8,_0x441503){const _0xf844f=a12_0x4ce1,_0x234edd=_0x51e0d8();while(!![]){try{const _0xc7acf6=parseInt(_0xf844f(0xe1))/0x1+-parseInt(_0xf844f(0xd0))/0x2+-parseInt(_0xf844f(0xce))/0x3*(parseInt(_0xf844f(0xef))/0x4)+parseInt(_0xf844f(0xd7))/0x5*(parseInt(_0xf844f(0xcc))/0x6)+parseInt(_0xf844f(0xc4))/0x7+-parseInt(_0xf844f(0xff))/0x8*(parseInt(_0xf844f(0xb9))/0x9)+-parseInt(_0xf844f(0xf5))/0xa*(parseInt(_0xf844f(0xe0))/0xb);if(_0xc7acf6===_0x441503)break;else _0x234edd['push'](_0x234edd['shift']());}catch(_0x165161){_0x234edd['push'](_0x234edd['shift']());}}}(a12_0x4800,0x86d65));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';function a12_0x4800(){const _0x229d17=['accessKeyCreatePath','ClientAk','Then\x20verify\x20with:\x20','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','5597564EhXYBQ','Auth\x20mode:\x20','global\x20config','=ak_xxx','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','authRequired','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','AccessKey\x20cleared\x20from\x20','186cvpNMi','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','213hBAnux','Write\x20to\x20global\x20config\x20(default)','494894vdyXSS','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','info','validation','accessKey','\x20auth\x20status','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','112880csOcJW','project\x20config','`auth\x20login`\x20does\x20not\x20support\x20--yes.','env','logout','\x20env\x20var','AccessKey:\x20','boolean','read','887447eDKtmO','942484qaosZR','envName','Removes\x20the\x20AccessKey\x20from\x20the\x20selected\x20Lovrabet\x20config.\x20Commands\x20that\x20need\x20that\x20key\x20will\x20require\x20login\x20again.','bool','nonInteractive','Shorthand\x20for\x20--access-key','Invalid\x20accessKey\x20format.','\x20config','global','production','development','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','test','string','25528jxNfAP','\x20(via\x20','str','trim','\x20Current\x20env:\x20','stdout','30GcRvYn','code','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','Option\x20B:\x20apps\x20config\x20(','auth','join','Missing\x20accessKey.','cancelled','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','write','8FARnSd','Clear\x20from\x20global\x20config\x20(default)','project','access-key','yes','AccessKey\x20saved\x20to\x20','userCenterDisplayName','\x20\x20export\x20','\x20config.','\x20auth\x20login\x20--access-key\x20<ak_xxx>','\x20doctor','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.','scope','access_key','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Status:\x20valid','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','isTTY','push','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','ACCESS_KEY','8523891LLaQTj','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','No\x20AccessKey\x20found\x20in\x20','status','daily','Option\x20C:\x20environment\x20variable'];a12_0x4800=function(){return _0x229d17;};return a12_0x4800();}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';function a12_0x4ce1(_0x4bfb64,_0x37f9be){_0x4bfb64=_0x4bfb64-0xb4;const _0x48003e=a12_0x4800();let _0x4ce152=_0x48003e[_0x4bfb64];return _0x4ce152;}const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(_0x68143=USER_ACCESS_KEY_CREATE_URL){const _0x590fef=a12_0x4ce1;writeCliSideChannelLine(_0x590fef(0xd6)+PRODUCT_CONFIG[_0x590fef(0x105)]+':'),writeCliSideChannelLine('\x0a'+_0x68143+'\x0a'),writeCliSideChannelLine('Tip:\x20you\x20can\x20also\x20run:'),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x590fef(0x108));}function buildAccessKeySetupGuide(_0x21ff2e=USER_ACCESS_KEY_CREATE_URL){const _0x254823=a12_0x4ce1;return['AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG['userCenterDisplayName']+':',_0x21ff2e,'Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20'+CLI_BIN_NAME+_0x254823(0xba)][_0x254823(0xfa)]('\x0a');}function canPromptForAccessKey(_0x481b69){const _0x4a092d=a12_0x4ce1;return!_0x481b69[_0x4a092d(0xe5)]&&process['stdin'][_0x4a092d(0xb5)]!==![]&&process[_0x4a092d(0xf4)]['isTTY']!==![];}function resolveAuthScopeFlags(_0x3eb499){const _0xed691c=a12_0x4ce1;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x3eb499[_0xed691c(0xe4)](_0xed691c(0xe9)),'explicitProject':_0x3eb499[_0xed691c(0xe4)](_0xed691c(0x101)),'policy':'global-default'}));}async function resolveAuthWriteInput(_0x3ba4c0){const _0x5690fb=a12_0x4ce1;let _0x32c1=(_0x3ba4c0['str']('access-key')||_0x3ba4c0[_0x5690fb(0xf1)]('ak')||'')[_0x5690fb(0xf2)]();const _0x36961c=(_0x3ba4c0['str']('env')||'')[_0x5690fb(0xf2)](),_0x14ea5d=''+getUserDomain()+PRODUCT_CONFIG[_0x5690fb(0xc0)];if(!_0x32c1&&canPromptForAccessKey(_0x3ba4c0))try{showAccessKeyCreateHint(_0x14ea5d),_0x32c1=await promptAccessKey('');}catch(_0x3c1324){if(isAbortPrompt(_0x3c1324))throw CliErrors[_0x5690fb(0xfc)]();throw _0x3c1324;}if(!_0x32c1)throw CliErrors[_0x5690fb(0xd3)](_0x5690fb(0xfb),buildAccessKeySetupGuide(_0x14ea5d));if(!ACCESS_KEY_PATTERN[_0x5690fb(0xed)](_0x32c1))throw CliErrors[_0x5690fb(0xd3)](_0x5690fb(0xe7),_0x5690fb(0xb4));if(!_0x36961c)return{'accessKey':_0x32c1};const _0x249f48=normalizeEnv(_0x36961c);return{'accessKey':_0x32c1,'env':isDaily(_0x249f48)?_0x5690fb(0xbe):isDev(_0x249f48)?_0x5690fb(0xeb):_0x5690fb(0xea)};}export const authDefinitions=[{'service':a12_0x32a81c(0xf9),'command':'login','description':'Save\x20the\x20AccessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20the\x20project\x20file)','risk':'write','confirmationDescription':a12_0x32a81c(0x10a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x32a81c(0x102),'type':a12_0x32a81c(0xee),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a12_0x32a81c(0xee),'description':a12_0x32a81c(0xe6)},{'name':a12_0x32a81c(0xe9),'type':a12_0x32a81c(0xde),'description':a12_0x32a81c(0xcf),'default':!![]},{'name':'project','type':'boolean','description':a12_0x32a81c(0xbb),'default':![]}],async 'execute'(_0x3343be){const _0x2bfb34=a12_0x32a81c;if(_0x3343be[_0x2bfb34(0xe4)](_0x2bfb34(0x103)))throw CliErrors[_0x2bfb34(0xd3)](_0x2bfb34(0xd9),'Use\x20`'+CLI_BIN_NAME+_0x2bfb34(0xfd)+CLI_BIN_NAME+_0x2bfb34(0xf7));const _0x308a5c=(_0x3343be['str'](_0x2bfb34(0x102))||_0x3343be['str']('ak')||'')[_0x2bfb34(0xf2)]();if(!_0x308a5c&&_0x3343be[_0x2bfb34(0xe5)])return{'ok':!![],'message':buildAccessKeySetupGuide(''+getUserDomain()+PRODUCT_CONFIG[_0x2bfb34(0xc0)])};const _0x34154b=await resolveAuthWriteInput(_0x3343be),_0x1f5323=resolveAuthScopeFlags(_0x3343be),_0xfc34f7=readScopedConfig(_0x1f5323);_0xfc34f7[_0x2bfb34(0xd4)]=_0x34154b[_0x2bfb34(0xd4)];_0x34154b[_0x2bfb34(0xda)]&&(_0xfc34f7[_0x2bfb34(0xda)]=_0x34154b['env']);writeScopedConfig(_0xfc34f7,_0x1f5323);const _0x1633cd=_0x1f5323[_0x2bfb34(0xe9)]?'global':_0x2bfb34(0x101),_0x1a8bb5=_0xfc34f7[_0x2bfb34(0xda)]?_0x2bfb34(0xf3)+_0xfc34f7[_0x2bfb34(0xda)]+'.':'';return{'ok':!![],'message':_0x2bfb34(0x104)+_0x1633cd+_0x2bfb34(0x107)+_0x1a8bb5+'\x20Verify:\x20'+CLI_BIN_NAME+_0x2bfb34(0xd5)};}},{'service':a12_0x32a81c(0xf9),'command':a12_0x32a81c(0xdb),'description':'Clear\x20the\x20AccessKey\x20from\x20config','risk':a12_0x32a81c(0xfe),'confirmationDescription':a12_0x32a81c(0xe3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x32a81c(0xe9),'type':a12_0x32a81c(0xde),'description':a12_0x32a81c(0x100),'default':!![]},{'name':'project','type':a12_0x32a81c(0xde),'description':a12_0x32a81c(0x10d),'default':![]}],async 'execute'(_0x1f29f9){const _0xbd20eb=a12_0x32a81c,_0x87ad4c=resolveAuthScopeFlags(_0x1f29f9),_0x14f7f0=readScopedConfig(_0x87ad4c),_0x140c6b=!!_0x14f7f0[_0xbd20eb(0xd4)];delete _0x14f7f0[_0xbd20eb(0xd4)],writeScopedConfig(_0x14f7f0,_0x87ad4c);const _0x2facfa=_0x87ad4c[_0xbd20eb(0xe9)]?'global':_0xbd20eb(0x101);if(_0x140c6b)return{'ok':!![],'message':_0xbd20eb(0xcb)+_0x2facfa+'\x20config.'};return{'ok':!![],'message':_0xbd20eb(0xbc)+_0x2facfa+'\x20config.\x20Nothing\x20to\x20clear.'};}},{'service':a12_0x32a81c(0xf9),'command':'status','description':'Show\x20current\x20authentication\x20status','risk':a12_0x32a81c(0xdf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x32a81c(0xe9),'type':a12_0x32a81c(0xde),'description':'Read\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a12_0x32a81c(0x101),'type':a12_0x32a81c(0xde),'description':a12_0x32a81c(0xca),'default':![]},{'name':'check','type':a12_0x32a81c(0xde),'description':a12_0x32a81c(0xec),'default':![]}],async 'execute'(_0x2b038e){const _0x1b813c=a12_0x32a81c,_0x46cdb6=resolveAuthScopeFlags(_0x2b038e),_0x2f0290=readScopedConfig(_0x46cdb6),_0x141914=productEnvName(_0x1b813c(0xb8)),_0x17e6d7=productEnv('ACCESS_KEY')||undefined,_0x3068c9=_0x2f0290[_0x1b813c(0xd4)]||undefined,_0xec8035=_0x17e6d7||_0x3068c9,_0x719fe1=_0x17e6d7?_0x141914+_0x1b813c(0xdc):_0x3068c9?(_0x46cdb6[_0x1b813c(0xe9)]?_0x1b813c(0xe9):'project')+_0x1b813c(0xe8):null,_0x2b21b9=[_0x1b813c(0xc5)+AUTH_MODE[_0x1b813c(0xc1)]];if(_0xec8035){const _0x11ec88=maskCliAccessKey(_0xec8035);_0x2b21b9[_0x1b813c(0xb6)]('AccessKey:\x20'+_0x11ec88+(_0x719fe1?_0x1b813c(0xf0)+_0x719fe1+')':'')),_0x2b21b9['push'](_0x1b813c(0x10e));}if(!_0xec8035){_0x2b21b9[_0x1b813c(0xb6)](''),_0x2b21b9[_0x1b813c(0xb6)](_0x1b813c(0xc3)),_0x2b21b9[_0x1b813c(0xb6)](''),_0x2b21b9[_0x1b813c(0xb6)]('Option\x20A:\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x2b21b9['push'](''),_0x2b21b9[_0x1b813c(0xb6)](_0x1b813c(0xf8)+PRODUCT_CONFIG['newConfigFileName']+')'),_0x2b21b9[_0x1b813c(0xb6)](_0x1b813c(0xb7)),_0x2b21b9[_0x1b813c(0xb6)](''),_0x2b21b9['push'](_0x1b813c(0xbf)),_0x2b21b9[_0x1b813c(0xb6)](_0x1b813c(0x106)+_0x141914+_0x1b813c(0xc7)),_0x2b21b9[_0x1b813c(0xb6)](''),_0x2b21b9[_0x1b813c(0xb6)](_0x1b813c(0xc2)+CLI_BIN_NAME+_0x1b813c(0xd5)),_0x2b21b9[_0x1b813c(0xb6)](_0x1b813c(0xd1)+CLI_BIN_NAME+_0x1b813c(0x109));if(_0x2b038e[_0x1b813c(0xe4)]('check')){const _0xd53a0a=readStoredDeviceCode();if(_0xd53a0a&&!isStoredDeviceCodeExpired(_0xd53a0a)){const _0xe2d544=getUserDomain(),_0x3721f3=await fetchDeviceToken(_0xe2d544,_0xd53a0a[_0x1b813c(0xf6)]);if(_0x3721f3[_0x1b813c(0xbd)]==='success'&&_0x3721f3[_0x1b813c(0x10c)]){const _0x2d1b84={'global':_0xd53a0a['scope']===_0x1b813c(0xe9)},_0x5e8038=readScopedConfig(_0x2d1b84);_0x5e8038[_0x1b813c(0xd4)]=_0x3721f3[_0x1b813c(0x10c)],writeScopedConfig(_0x5e8038,_0x2d1b84),deleteStoredDeviceCode();const _0x21110e=_0x3721f3['access_key'],_0x7350ac=maskCliAccessKey(_0x21110e),_0x36296e=_0xd53a0a[_0x1b813c(0x10b)]==='global'?_0x1b813c(0xc6):_0x1b813c(0xd8);return{'ok':!![],'message':[_0x1b813c(0xc5)+AUTH_MODE['ClientAk'],_0x1b813c(0xdd)+_0x7350ac+_0x1b813c(0xf0)+_0x36296e+')','Status:\x20valid'][_0x1b813c(0xfa)]('\x0a')};}_0x3721f3[_0x1b813c(0xbd)]==='expired'&&deleteStoredDeviceCode();throw CliErrors['authRequired'](_0x1b813c(0xc8));}throw CliErrors[_0x1b813c(0xc9)](_0x2b21b9[_0x1b813c(0xfa)]('\x0a'));}}return{'ok':!![],'message':_0x2b21b9[_0x1b813c(0xfa)]('\x0a')};}},{'service':a12_0x32a81c(0xf9),'command':a12_0x32a81c(0xd2),'description':a12_0x32a81c(0xcd),'risk':a12_0x32a81c(0xdf),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x30a1d7){const _0x171e73=a12_0x32a81c,_0x4f31f7=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x4f31f7,'meta':{'env':_0x30a1d7[_0x171e73(0xe2)]??_0x171e73(0xea)}}};}},authDeviceDefinition];
1
+ const a12_0x23b7ae=a12_0x11c5;(function(_0x80c238,_0x40123e){const _0x593695=a12_0x11c5,_0x1e05b3=_0x80c238();while(!![]){try{const _0x308f3f=parseInt(_0x593695(0x132))/0x1*(-parseInt(_0x593695(0x138))/0x2)+-parseInt(_0x593695(0x150))/0x3+-parseInt(_0x593695(0x158))/0x4+-parseInt(_0x593695(0x11b))/0x5+parseInt(_0x593695(0x155))/0x6+-parseInt(_0x593695(0x14d))/0x7+parseInt(_0x593695(0x160))/0x8*(parseInt(_0x593695(0x16d))/0x9);if(_0x308f3f===_0x40123e)break;else _0x1e05b3['push'](_0x1e05b3['shift']());}catch(_0x50e445){_0x1e05b3['push'](_0x1e05b3['shift']());}}}(a12_0x2e0a,0xe01d0));function a12_0x11c5(_0x34addf,_0x45b024){_0x34addf=_0x34addf-0x117;const _0x2e0afa=a12_0x2e0a();let _0x11c5f4=_0x2e0afa[_0x34addf];return _0x11c5f4;}import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a12_0x2e0a(){const _0x13aad2=['env','read','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','access_key','\x20\x20export\x20','Tip:\x20you\x20can\x20also\x20run:','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>','7513856UwpPud','write','stdin','3650697YNNFWJ','login','global','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','297486HQqYZK','Show\x20current\x20authentication\x20status','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','6733692bNnBAf','global\x20config','authRequired','newConfigFileName','scope','boolean','AccessKey\x20cleared\x20from\x20','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','4184MLZXnf','success','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','Option\x20C:\x20environment\x20variable','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','Invalid\x20accessKey\x20format.','daily','accessKeyCreatePath','validation','Write\x20to\x20global\x20config\x20(default)','userCenterDisplayName','AccessKey:\x20','113229CPblUQ','\x20config','\x20Current\x20env:\x20','trim','accessKey','push','status','yes','ClientAk','`auth\x20login`\x20does\x20not\x20support\x20--yes.','8007435Jpltpg','\x20env\x20var','isTTY','string','envName','ACCESS_KEY','nonInteractive','global-default','check','auth','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','Clear\x20the\x20AccessKey\x20from\x20config','cancelled','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','test','Use\x20`','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','join','str','access-key','\x20auth\x20status','development','Saves\x20a\x20new\x20AccessKey\x20to\x20the\x20selected\x20Lovrabet\x20config.\x20An\x20existing\x20key\x20in\x20that\x20scope\x20is\x20overwritten.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20secret.','136259OJjphI','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','Save\x20the\x20AccessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20the\x20project\x20file)','Clear\x20from\x20global\x20config\x20(default)','project\x20config','AccessKey\x20(ak_xxx...)','2vqyiOw','\x20doctor','bool','Status:\x20valid','production','Option\x20A:\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','project','expired','code','No\x20AccessKey\x20found\x20in\x20','\x20(via\x20','Auth\x20mode:\x20'];a12_0x2e0a=function(){return _0x13aad2;};return a12_0x2e0a();}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(_0x5a5e86=USER_ACCESS_KEY_CREATE_URL){const _0x276056=a12_0x11c5;writeCliSideChannelLine(_0x276056(0x14b)+PRODUCT_CONFIG[_0x276056(0x16b)]+':'),writeCliSideChannelLine('\x0a'+_0x5a5e86+'\x0a'),writeCliSideChannelLine(_0x276056(0x14a)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x276056(0x14c));}function buildAccessKeySetupGuide(_0x559b0d=USER_ACCESS_KEY_CREATE_URL){const _0x37174d=a12_0x11c5;return['AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG['userCenterDisplayName']+':',_0x559b0d,_0x37174d(0x157)+CLI_BIN_NAME+_0x37174d(0x154)][_0x37174d(0x12c)]('\x0a');}function canPromptForAccessKey(_0x3600e0){const _0x394832=a12_0x11c5;return!_0x3600e0[_0x394832(0x121)]&&process[_0x394832(0x14f)][_0x394832(0x11d)]!==![]&&process['stdout']['isTTY']!==![];}function resolveAuthScopeFlags(_0x216127){const _0x546aa2=a12_0x11c5;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x216127['bool'](_0x546aa2(0x152)),'explicitProject':_0x216127['bool'](_0x546aa2(0x13f)),'policy':_0x546aa2(0x122)}));}async function resolveAuthWriteInput(_0x4b41d7){const _0x954dcb=a12_0x11c5;let _0xf7c2a2=(_0x4b41d7[_0x954dcb(0x12d)](_0x954dcb(0x12e))||_0x4b41d7[_0x954dcb(0x12d)]('ak')||'')[_0x954dcb(0x170)]();const _0x414f10=(_0x4b41d7[_0x954dcb(0x12d)](_0x954dcb(0x145))||'')['trim'](),_0x2463e0=''+getUserDomain()+PRODUCT_CONFIG[_0x954dcb(0x168)];if(!_0xf7c2a2&&canPromptForAccessKey(_0x4b41d7))try{showAccessKeyCreateHint(_0x2463e0),_0xf7c2a2=await promptAccessKey('');}catch(_0x376acf){if(isAbortPrompt(_0x376acf))throw CliErrors[_0x954dcb(0x127)]();throw _0x376acf;}if(!_0xf7c2a2)throw CliErrors[_0x954dcb(0x169)]('Missing\x20accessKey.',buildAccessKeySetupGuide(_0x2463e0));if(!ACCESS_KEY_PATTERN[_0x954dcb(0x129)](_0xf7c2a2))throw CliErrors[_0x954dcb(0x169)](_0x954dcb(0x166),'Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars');if(!_0x414f10)return{'accessKey':_0xf7c2a2};const _0x224750=normalizeEnv(_0x414f10);return{'accessKey':_0xf7c2a2,'env':isDaily(_0x224750)?_0x954dcb(0x167):isDev(_0x224750)?_0x954dcb(0x130):_0x954dcb(0x13c)};}export const authDefinitions=[{'service':a12_0x23b7ae(0x124),'command':a12_0x23b7ae(0x151),'description':a12_0x23b7ae(0x134),'risk':a12_0x23b7ae(0x14e),'confirmationDescription':a12_0x23b7ae(0x131),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x23b7ae(0x12e),'type':a12_0x23b7ae(0x11e),'description':a12_0x23b7ae(0x137)},{'name':'ak','type':a12_0x23b7ae(0x11e),'description':'Shorthand\x20for\x20--access-key'},{'name':a12_0x23b7ae(0x152),'type':a12_0x23b7ae(0x15d),'description':a12_0x23b7ae(0x16a),'default':!![]},{'name':a12_0x23b7ae(0x13f),'type':a12_0x23b7ae(0x15d),'description':a12_0x23b7ae(0x153),'default':![]}],async 'execute'(_0x33dce4){const _0x2d037a=a12_0x23b7ae;if(_0x33dce4[_0x2d037a(0x13a)](_0x2d037a(0x118)))throw CliErrors[_0x2d037a(0x169)](_0x2d037a(0x11a),_0x2d037a(0x12a)+CLI_BIN_NAME+'\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`'+CLI_BIN_NAME+_0x2d037a(0x13e));const _0xbddb3e=(_0x33dce4[_0x2d037a(0x12d)]('access-key')||_0x33dce4[_0x2d037a(0x12d)]('ak')||'')['trim']();if(!_0xbddb3e&&_0x33dce4[_0x2d037a(0x121)])return{'ok':!![],'message':buildAccessKeySetupGuide(''+getUserDomain()+PRODUCT_CONFIG[_0x2d037a(0x168)])};const _0x436d77=await resolveAuthWriteInput(_0x33dce4),_0xc17153=resolveAuthScopeFlags(_0x33dce4),_0x4196e3=readScopedConfig(_0xc17153);_0x4196e3[_0x2d037a(0x171)]=_0x436d77[_0x2d037a(0x171)];_0x436d77[_0x2d037a(0x145)]&&(_0x4196e3[_0x2d037a(0x145)]=_0x436d77[_0x2d037a(0x145)]);writeScopedConfig(_0x4196e3,_0xc17153);const _0x328906=_0xc17153[_0x2d037a(0x152)]?_0x2d037a(0x152):_0x2d037a(0x13f),_0x152fb8=_0x4196e3[_0x2d037a(0x145)]?_0x2d037a(0x16f)+_0x4196e3[_0x2d037a(0x145)]+'.':'';return{'ok':!![],'message':'AccessKey\x20saved\x20to\x20'+_0x328906+'\x20config.'+_0x152fb8+'\x20Verify:\x20'+CLI_BIN_NAME+_0x2d037a(0x12f)};}},{'service':a12_0x23b7ae(0x124),'command':'logout','description':a12_0x23b7ae(0x126),'risk':a12_0x23b7ae(0x14e),'confirmationDescription':'Removes\x20the\x20AccessKey\x20from\x20the\x20selected\x20Lovrabet\x20config.\x20Commands\x20that\x20need\x20that\x20key\x20will\x20require\x20login\x20again.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x23b7ae(0x152),'type':a12_0x23b7ae(0x15d),'description':a12_0x23b7ae(0x135),'default':!![]},{'name':a12_0x23b7ae(0x13f),'type':a12_0x23b7ae(0x15d),'description':a12_0x23b7ae(0x15f),'default':![]}],async 'execute'(_0xced0b0){const _0xafe7d9=a12_0x23b7ae,_0xa3c1af=resolveAuthScopeFlags(_0xced0b0),_0x3ef6f4=readScopedConfig(_0xa3c1af),_0x2bd549=!!_0x3ef6f4[_0xafe7d9(0x171)];delete _0x3ef6f4[_0xafe7d9(0x171)],writeScopedConfig(_0x3ef6f4,_0xa3c1af);const _0x37b2c3=_0xa3c1af['global']?_0xafe7d9(0x152):'project';if(_0x2bd549)return{'ok':!![],'message':_0xafe7d9(0x15e)+_0x37b2c3+'\x20config.'};return{'ok':!![],'message':_0xafe7d9(0x142)+_0x37b2c3+'\x20config.\x20Nothing\x20to\x20clear.'};}},{'service':a12_0x23b7ae(0x124),'command':'status','description':a12_0x23b7ae(0x156),'risk':a12_0x23b7ae(0x146),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x23b7ae(0x152),'type':'boolean','description':'Read\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a12_0x23b7ae(0x13f),'type':'boolean','description':a12_0x23b7ae(0x147),'default':![]},{'name':a12_0x23b7ae(0x123),'type':a12_0x23b7ae(0x15d),'description':a12_0x23b7ae(0x128),'default':![]}],async 'execute'(_0x103e9c){const _0x2fca74=a12_0x23b7ae,_0x199655=resolveAuthScopeFlags(_0x103e9c),_0x38362b=readScopedConfig(_0x199655),_0x2bf5c4=productEnvName(_0x2fca74(0x120)),_0x4c4a35=productEnv(_0x2fca74(0x120))||undefined,_0x56cc8b=_0x38362b[_0x2fca74(0x171)]||undefined,_0x6784a5=_0x4c4a35||_0x56cc8b,_0x41f627=_0x4c4a35?_0x2bf5c4+_0x2fca74(0x11c):_0x56cc8b?(_0x199655[_0x2fca74(0x152)]?_0x2fca74(0x152):_0x2fca74(0x13f))+_0x2fca74(0x16e):null,_0x252965=[_0x2fca74(0x144)+AUTH_MODE[_0x2fca74(0x119)]];if(_0x6784a5){const _0x795f14=maskCliAccessKey(_0x6784a5);_0x252965[_0x2fca74(0x172)](_0x2fca74(0x16c)+_0x795f14+(_0x41f627?'\x20(via\x20'+_0x41f627+')':'')),_0x252965[_0x2fca74(0x172)]('Status:\x20valid');}if(!_0x6784a5){_0x252965[_0x2fca74(0x172)](''),_0x252965[_0x2fca74(0x172)](_0x2fca74(0x163)),_0x252965['push'](''),_0x252965['push'](_0x2fca74(0x13d)+CLI_BIN_NAME+_0x2fca74(0x133)),_0x252965[_0x2fca74(0x172)](''),_0x252965[_0x2fca74(0x172)]('Option\x20B:\x20apps\x20config\x20('+PRODUCT_CONFIG[_0x2fca74(0x15b)]+')'),_0x252965[_0x2fca74(0x172)](_0x2fca74(0x165)),_0x252965[_0x2fca74(0x172)](''),_0x252965[_0x2fca74(0x172)](_0x2fca74(0x164)),_0x252965[_0x2fca74(0x172)](_0x2fca74(0x149)+_0x2bf5c4+'=ak_xxx'),_0x252965[_0x2fca74(0x172)](''),_0x252965[_0x2fca74(0x172)]('Then\x20verify\x20with:\x20'+CLI_BIN_NAME+_0x2fca74(0x12f)),_0x252965[_0x2fca74(0x172)](_0x2fca74(0x162)+CLI_BIN_NAME+_0x2fca74(0x139));if(_0x103e9c['bool'](_0x2fca74(0x123))){const _0x1362f2=readStoredDeviceCode();if(_0x1362f2&&!isStoredDeviceCodeExpired(_0x1362f2)){const _0x1cfcdc=getUserDomain(),_0x409ca0=await fetchDeviceToken(_0x1cfcdc,_0x1362f2[_0x2fca74(0x141)]);if(_0x409ca0[_0x2fca74(0x117)]===_0x2fca74(0x161)&&_0x409ca0['access_key']){const _0x1b4639={'global':_0x1362f2[_0x2fca74(0x15c)]===_0x2fca74(0x152)},_0x5e53da=readScopedConfig(_0x1b4639);_0x5e53da['accessKey']=_0x409ca0[_0x2fca74(0x148)],writeScopedConfig(_0x5e53da,_0x1b4639),deleteStoredDeviceCode();const _0x4b85cd=_0x409ca0[_0x2fca74(0x148)],_0x55da5c=maskCliAccessKey(_0x4b85cd),_0x474289=_0x1362f2[_0x2fca74(0x15c)]===_0x2fca74(0x152)?_0x2fca74(0x159):_0x2fca74(0x136);return{'ok':!![],'message':['Auth\x20mode:\x20'+AUTH_MODE[_0x2fca74(0x119)],'AccessKey:\x20'+_0x55da5c+_0x2fca74(0x143)+_0x474289+')',_0x2fca74(0x13b)][_0x2fca74(0x12c)]('\x0a')};}_0x409ca0['status']===_0x2fca74(0x140)&&deleteStoredDeviceCode();throw CliErrors['authRequired'](_0x2fca74(0x12b));}throw CliErrors[_0x2fca74(0x15a)](_0x252965[_0x2fca74(0x12c)]('\x0a'));}}return{'ok':!![],'message':_0x252965[_0x2fca74(0x12c)]('\x0a')};}},{'service':a12_0x23b7ae(0x124),'command':'info','description':a12_0x23b7ae(0x125),'risk':a12_0x23b7ae(0x146),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x2e3f62){const _0x4c0001=a12_0x23b7ae,_0x322506=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x322506,'meta':{'env':_0x2e3f62[_0x4c0001(0x11f)]??_0x4c0001(0x13c)}}};}},authDeviceDefinition];
@@ -1 +1 @@
1
- (function(_0x223e7c,_0x522842){const _0x281413=a13_0x138a,_0x30ae16=_0x223e7c();while(!![]){try{const _0x561781=-parseInt(_0x281413(0x1cc))/0x1+-parseInt(_0x281413(0x1d2))/0x2+-parseInt(_0x281413(0x1ca))/0x3+-parseInt(_0x281413(0x1d5))/0x4*(parseInt(_0x281413(0x1d9))/0x5)+-parseInt(_0x281413(0x1df))/0x6+-parseInt(_0x281413(0x1d6))/0x7*(parseInt(_0x281413(0x1cb))/0x8)+parseInt(_0x281413(0x1d4))/0x9*(parseInt(_0x281413(0x1dc))/0xa);if(_0x561781===_0x522842)break;else _0x30ae16['push'](_0x30ae16['shift']());}catch(_0x5414e0){_0x30ae16['push'](_0x30ae16['shift']());}}}(a13_0x5b10,0xa61fb));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x9683a8=a13_0x138a;super(_0x9683a8(0x1de)),this[_0x9683a8(0x1d0)]=_0x9683a8(0x1dd);}}function createSafeRl(){const _0x447d8f=a13_0x138a,_0xe4366f=createInterface({'input':process['stdin'],'output':process[_0x447d8f(0x1db)]});let _0x3f41de;const _0x1a15b9=new Promise((_0x4ae9fa,_0x38d025)=>{const _0x6ae292=_0x447d8f;_0x3f41de=()=>{const _0x539fdf=a13_0x138a;_0x3f41de&&(_0xe4366f[_0x539fdf(0x1cd)]('SIGINT',_0x3f41de),_0x3f41de=undefined);try{_0xe4366f[_0x539fdf(0x1d7)]();}catch{}_0x38d025(new AbortPrompt());},_0xe4366f[_0x6ae292(0x1cf)](_0x6ae292(0x1da),_0x3f41de);}),_0xfceece=()=>{const _0x3fbbc4=_0x447d8f;_0x3f41de&&(_0xe4366f[_0x3fbbc4(0x1cd)]('SIGINT',_0x3f41de),_0x3f41de=undefined);try{_0xe4366f[_0x3fbbc4(0x1d7)]();}catch{}};return{'rl':_0xe4366f,'abortPromise':_0x1a15b9,'disposeSuccess':_0xfceece};}function a13_0x138a(_0x1e15a5,_0x454b33){_0x1e15a5=_0x1e15a5-0x1ca;const _0x5b100b=a13_0x5b10();let _0x138a6a=_0x5b100b[_0x1e15a5];return _0x138a6a;}function a13_0x5b10(){const _0x26f19c=['User\x20aborted\x20prompt','261498tNIqRu','2797896TgOvRZ','3728yArDqF','396176ZtUKHi','removeListener','AccessKey\x20(','once','name','trim','2382598WUFyMM','race','27jjXykI','4234168NJizsV','1197tbpwKq','close','):\x20','5iOaZCS','SIGINT','stdout','14607870vsWKVL','AbortPrompt'];a13_0x5b10=function(){return _0x26f19c;};return a13_0x5b10();}export async function promptAccessKey(_0x15f19a=''){const _0xdc4c05=a13_0x138a,{rl:_0x4df3f8,abortPromise:_0x48d756,disposeSuccess:_0x49cab7}=createSafeRl(),_0x3c2376=new Promise(_0x42115b=>{const _0x4d2e78=a13_0x138a,_0x1e0216=_0x15f19a?_0x4d2e78(0x1ce)+_0x15f19a+_0x4d2e78(0x1d8):'AccessKey\x20(paste\x20ak_...):\x20';_0x4df3f8['question'](_0x1e0216,_0xcd7717=>{const _0x5f24b8=_0x4d2e78;_0x49cab7(),_0x42115b(_0xcd7717[_0x5f24b8(0x1d1)]()||_0x15f19a);});});return Promise[_0xdc4c05(0x1d3)]([_0x3c2376,_0x48d756]);}export function isAbortPrompt(_0x4c573b){const _0x38d9fa=a13_0x138a;return _0x4c573b instanceof Error&&_0x4c573b[_0x38d9fa(0x1d0)]===_0x38d9fa(0x1dd);}
1
+ (function(_0x522fc4,_0x252de6){const _0x589d60=a13_0xbc65,_0x3d4eff=_0x522fc4();while(!![]){try{const _0x15eccc=-parseInt(_0x589d60(0x8b))/0x1*(parseInt(_0x589d60(0x85))/0x2)+-parseInt(_0x589d60(0x92))/0x3*(-parseInt(_0x589d60(0x80))/0x4)+-parseInt(_0x589d60(0x96))/0x5+parseInt(_0x589d60(0x8d))/0x6*(-parseInt(_0x589d60(0x8c))/0x7)+parseInt(_0x589d60(0x8e))/0x8*(parseInt(_0x589d60(0x8f))/0x9)+parseInt(_0x589d60(0x81))/0xa*(parseInt(_0x589d60(0x89))/0xb)+parseInt(_0x589d60(0x90))/0xc*(-parseInt(_0x589d60(0x91))/0xd);if(_0x15eccc===_0x252de6)break;else _0x3d4eff['push'](_0x3d4eff['shift']());}catch(_0x4a8c4e){_0x3d4eff['push'](_0x3d4eff['shift']());}}}(a13_0x3fc0,0xb88c6));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x301cb5=a13_0xbc65;super(_0x301cb5(0x8a)),this[_0x301cb5(0x86)]=_0x301cb5(0x7e);}}function a13_0x3fc0(){const _0x502b81=['stdin','548tuByQU','50hIKQSC','question','race','):\x20','434MvowZZ','name','AccessKey\x20(paste\x20ak_...):\x20','SIGINT','2973377zTEVxk','User\x20aborted\x20prompt','3436oCknsC','679DobmSq','29094JprqVU','6197144ifTmnv','9LiXdrD','192ftTkfi','118339drOizk','30333cmvzzG','close','once','removeListener','6969310EuBcHp','stdout','AbortPrompt'];a13_0x3fc0=function(){return _0x502b81;};return a13_0x3fc0();}function createSafeRl(){const _0x463720=a13_0xbc65,_0x32138f=createInterface({'input':process[_0x463720(0x7f)],'output':process[_0x463720(0x7d)]});let _0x4b0abf;const _0x2fa497=new Promise((_0x25ea95,_0x1622aa)=>{const _0x49605c=_0x463720;_0x4b0abf=()=>{const _0x4c2223=a13_0xbc65;_0x4b0abf&&(_0x32138f[_0x4c2223(0x95)](_0x4c2223(0x88),_0x4b0abf),_0x4b0abf=undefined);try{_0x32138f[_0x4c2223(0x93)]();}catch{}_0x1622aa(new AbortPrompt());},_0x32138f[_0x49605c(0x94)](_0x49605c(0x88),_0x4b0abf);}),_0x5b0a58=()=>{const _0x445afe=_0x463720;_0x4b0abf&&(_0x32138f[_0x445afe(0x95)](_0x445afe(0x88),_0x4b0abf),_0x4b0abf=undefined);try{_0x32138f[_0x445afe(0x93)]();}catch{}};return{'rl':_0x32138f,'abortPromise':_0x2fa497,'disposeSuccess':_0x5b0a58};}export async function promptAccessKey(_0x27f1ac=''){const _0x420890=a13_0xbc65,{rl:_0x1ee489,abortPromise:_0xbecaa2,disposeSuccess:_0x21a3d9}=createSafeRl(),_0x1f08a5=new Promise(_0x149952=>{const _0x297c3b=a13_0xbc65,_0x2fbff8=_0x27f1ac?'AccessKey\x20('+_0x27f1ac+_0x297c3b(0x84):_0x297c3b(0x87);_0x1ee489[_0x297c3b(0x82)](_0x2fbff8,_0x1e7935=>{_0x21a3d9(),_0x149952(_0x1e7935['trim']()||_0x27f1ac);});});return Promise[_0x420890(0x83)]([_0x1f08a5,_0xbecaa2]);}function a13_0xbc65(_0x25fccc,_0x1b44ec){_0x25fccc=_0x25fccc-0x7d;const _0x3fc01b=a13_0x3fc0();let _0xbc65a9=_0x3fc01b[_0x25fccc];return _0xbc65a9;}export function isAbortPrompt(_0xfacc84){const _0xba1ed7=a13_0xbc65;return _0xfacc84 instanceof Error&&_0xfacc84[_0xba1ed7(0x86)]===_0xba1ed7(0x7e);}
@@ -1 +1 @@
1
- function a14_0x226d(){const _0x3e2793=['550964lHqJsa','40035yOIktD','description','9AUsYXE','gmtModified','13571096hnltRe','detail','Get\x20a\x20Backend\x20Function\x20endpoint\x20contract\x20by\x20function\x20name','appCode','(none)','1737464DVbgpM','name','functionName','30XnNkUA','1008300dXxfQc','3456996uTDlBn','5582297PkbciK','str'];a14_0x226d=function(){return _0x3e2793;};return a14_0x226d();}const a14_0x2a7691=a14_0x6467;(function(_0x588615,_0x1dcf16){const _0x12c1f6=a14_0x6467,_0x101406=_0x588615();while(!![]){try{const _0x4ea83d=parseInt(_0x12c1f6(0x144))/0x1+parseInt(_0x12c1f6(0x151))/0x2*(-parseInt(_0x12c1f6(0x145))/0x3)+-parseInt(_0x12c1f6(0x14e))/0x4+parseInt(_0x12c1f6(0x152))/0x5+-parseInt(_0x12c1f6(0x153))/0x6+-parseInt(_0x12c1f6(0x142))/0x7+parseInt(_0x12c1f6(0x149))/0x8*(parseInt(_0x12c1f6(0x147))/0x9);if(_0x4ea83d===_0x1dcf16)break;else _0x101406['push'](_0x101406['shift']());}catch(_0x2d4f55){_0x101406['push'](_0x101406['shift']());}}}(a14_0x226d,0x6ba01));import{getBffEndpointContract}from'../../core/api-client.js';function a14_0x6467(_0x111a3b,_0x58217d){_0x111a3b=_0x111a3b-0x142;const _0x226def=a14_0x226d();let _0x64673f=_0x226def[_0x111a3b];return _0x64673f;}import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':'bff','command':a14_0x2a7691(0x14a),'description':a14_0x2a7691(0x14b),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':'Backend\x20Function\x20name'}],async 'execute'(_0x46c788){const _0x231332=a14_0x2a7691,_0x4b2434=await getBffEndpointContract(_0x46c788['appCode'],_0x46c788[_0x231332(0x143)](_0x231332(0x14f)));return{'ok':!![],'data':{'appCode':_0x4b2434[_0x231332(0x14c)],'functionName':_0x4b2434[_0x231332(0x150)],'description':_0x4b2434[_0x231332(0x146)]||_0x231332(0x14d),'version':_0x4b2434['version'],'gmtModified':_0x4b2434[_0x231332(0x148)]}};}};
1
+ const a14_0xa71e62=a14_0x9db7;(function(_0xee0b79,_0x35f5b4){const _0x25c428=a14_0x9db7,_0x16d50d=_0xee0b79();while(!![]){try{const _0x25977b=-parseInt(_0x25c428(0x1ac))/0x1+parseInt(_0x25c428(0x1b6))/0x2*(-parseInt(_0x25c428(0x1b4))/0x3)+-parseInt(_0x25c428(0x1aa))/0x4+parseInt(_0x25c428(0x1ba))/0x5+-parseInt(_0x25c428(0x1ae))/0x6+parseInt(_0x25c428(0x1bc))/0x7*(parseInt(_0x25c428(0x1b1))/0x8)+parseInt(_0x25c428(0x1b3))/0x9;if(_0x25977b===_0x35f5b4)break;else _0x16d50d['push'](_0x16d50d['shift']());}catch(_0x4c878d){_0x16d50d['push'](_0x16d50d['shift']());}}}(a14_0xab2a,0xb8c32));function a14_0x9db7(_0x4d3ae8,_0x4ba8f5){_0x4d3ae8=_0x4d3ae8-0x1aa;const _0xab2a2d=a14_0xab2a();let _0x9db771=_0xab2a2d[_0x4d3ae8];return _0x9db771;}import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':'bff','command':a14_0xa71e62(0x1b8),'description':a14_0xa71e62(0x1b2),'risk':a14_0xa71e62(0x1bb),'flags':[{...NAME_FLAG,'required':!![],'description':a14_0xa71e62(0x1b9)}],async 'execute'(_0x39ec3d){const _0x5a9e91=a14_0xa71e62,_0x1aeb8f=await getBffEndpointContract(_0x39ec3d['appCode'],_0x39ec3d['str'](_0x5a9e91(0x1b7)));return{'ok':!![],'data':{'appCode':_0x1aeb8f[_0x5a9e91(0x1ad)],'functionName':_0x1aeb8f['functionName'],'description':_0x1aeb8f[_0x5a9e91(0x1af)]||_0x5a9e91(0x1ab),'version':_0x1aeb8f[_0x5a9e91(0x1b0)],'gmtModified':_0x1aeb8f[_0x5a9e91(0x1b5)]}};}};function a14_0xab2a(){const _0x520add=['gmtModified','335462XLckog','name','detail','Backend\x20Function\x20name','5989750JXsRvf','read','132853VzcEXD','3662032AaRDax','(none)','529440JaBWHi','appCode','7438518QPoyBn','description','version','40UxFNWr','Get\x20a\x20Backend\x20Function\x20endpoint\x20contract\x20by\x20function\x20name','26885673xcONvY','15VyAWTQ'];a14_0xab2a=function(){return _0x520add;};return a14_0xab2a();}
@@ -1 +1 @@
1
- function a15_0x9f04(_0x1ee994,_0xd67cc1){_0x1ee994=_0x1ee994-0x1a3;const _0x50f6bd=a15_0x50f6();let _0x9f042b=_0x50f6bd[_0x1ee994];return _0x9f042b;}function a15_0x50f6(){const _0x47c011=['Backend\x20Function\x20executed\x20in\x20','Execute\x20a\x20Backend\x20Function\x20script\x20by\x20function\x20name','params','1324SWSLoJ','24hMiBSr','str','304tCyhlo','name','now','13473072txXSrW','7827149RBxelO','Backend\x20Function\x20name\x20to\x20execute','160482eFIKpY','1384038FKilTr','exec','read','20hZPQxX','783wtObkZ','91367aVUmpQ','4328775SBblKc','10ycuwIc'];a15_0x50f6=function(){return _0x47c011;};return a15_0x50f6();}const a15_0x149dff=a15_0x9f04;(function(_0x422495,_0x3338b8){const _0x2b7a17=a15_0x9f04,_0x4b8c4a=_0x422495();while(!![]){try{const _0x2be92a=parseInt(_0x2b7a17(0x1b6))/0x1*(-parseInt(_0x2b7a17(0x1a8))/0x2)+-parseInt(_0x2b7a17(0x1b5))/0x3*(-parseInt(_0x2b7a17(0x1a7))/0x4)+parseInt(_0x2b7a17(0x1b4))/0x5*(parseInt(_0x2b7a17(0x1b1))/0x6)+-parseInt(_0x2b7a17(0x1b0))/0x7*(-parseInt(_0x2b7a17(0x1aa))/0x8)+parseInt(_0x2b7a17(0x1b7))/0x9+parseInt(_0x2b7a17(0x1a3))/0xa*(parseInt(_0x2b7a17(0x1ae))/0xb)+-parseInt(_0x2b7a17(0x1ad))/0xc;if(_0x2be92a===_0x3338b8)break;else _0x4b8c4a['push'](_0x4b8c4a['shift']());}catch(_0x20c41a){_0x4b8c4a['push'](_0x4b8c4a['shift']());}}}(a15_0x50f6,0xd068d));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':'bff','command':a15_0x149dff(0x1b2),'description':a15_0x149dff(0x1a5),'risk':a15_0x149dff(0x1b3),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x149dff(0x1af)},PARAMS_FLAG],async 'execute'(_0x1ea62a){const _0x158505=a15_0x149dff,_0x275780=parseJsonParams(_0x1ea62a[_0x158505(0x1a9)](_0x158505(0x1a6))),_0x1f9247=Date[_0x158505(0x1ac)](),_0x93e62f=await executeSdkBff(_0x1ea62a[_0x158505(0x1a9)](_0x158505(0x1ab)),_0x275780),_0xb7c0c4=Date['now']()-_0x1f9247;return{'ok':!![],'data':{'result':_0x93e62f,'elapsed':_0xb7c0c4},'message':_0x158505(0x1a4)+_0xb7c0c4+'ms'};}};
1
+ const a15_0x2c3838=a15_0x5153;function a15_0x5153(_0x94d510,_0x530d08){_0x94d510=_0x94d510-0x1c4;const _0x530692=a15_0x5306();let _0x515394=_0x530692[_0x94d510];return _0x515394;}(function(_0x278233,_0x4f8467){const _0x94ef66=a15_0x5153,_0x10d7f6=_0x278233();while(!![]){try{const _0x50bd23=-parseInt(_0x94ef66(0x1d5))/0x1*(parseInt(_0x94ef66(0x1d7))/0x2)+-parseInt(_0x94ef66(0x1c4))/0x3*(-parseInt(_0x94ef66(0x1d0))/0x4)+parseInt(_0x94ef66(0x1c6))/0x5+-parseInt(_0x94ef66(0x1d6))/0x6+parseInt(_0x94ef66(0x1c5))/0x7+parseInt(_0x94ef66(0x1ce))/0x8*(-parseInt(_0x94ef66(0x1c7))/0x9)+parseInt(_0x94ef66(0x1cf))/0xa*(parseInt(_0x94ef66(0x1d3))/0xb);if(_0x50bd23===_0x4f8467)break;else _0x10d7f6['push'](_0x10d7f6['shift']());}catch(_0x54122c){_0x10d7f6['push'](_0x10d7f6['shift']());}}}(a15_0x5306,0x3a050));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a15_0x2c3838(0x1cb),'command':a15_0x2c3838(0x1cc),'description':a15_0x2c3838(0x1c9),'risk':a15_0x2c3838(0x1ca),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x2c3838(0x1d2)},PARAMS_FLAG],async 'execute'(_0x4eceb1){const _0x2a9969=a15_0x2c3838,_0x3013c1=parseJsonParams(_0x4eceb1['str']('params')),_0x54312d=Date[_0x2a9969(0x1d4)](),_0x200a0d=await executeSdkBff(_0x4eceb1[_0x2a9969(0x1c8)](_0x2a9969(0x1d1)),_0x3013c1),_0x2e6622=Date['now']()-_0x54312d;return{'ok':!![],'data':{'result':_0x200a0d,'elapsed':_0x2e6622},'message':_0x2a9969(0x1cd)+_0x2e6622+'ms'};}};function a15_0x5306(){const _0x2e3948=['513300dmUqPw','8kWsxPL','1758sySpDz','724836eDGRVk','1148460aQSqRA','954oeJsLC','str','Execute\x20a\x20Backend\x20Function\x20script\x20by\x20function\x20name','read','bff','exec','Backend\x20Function\x20executed\x20in\x20','34784vLYIHI','40ZIKujh','428cibwUE','name','Backend\x20Function\x20name\x20to\x20execute','1504129VynerS','now','39703nfOqSk'];a15_0x5306=function(){return _0x2e3948;};return a15_0x5306();}
@@ -1 +1 @@
1
- (function(_0x1d040c,_0x223c01){const _0x35f1b8=a16_0x5185,_0x973db0=_0x1d040c();while(!![]){try{const _0x5bd2b0=parseInt(_0x35f1b8(0x136))/0x1*(parseInt(_0x35f1b8(0x13a))/0x2)+-parseInt(_0x35f1b8(0x137))/0x3+-parseInt(_0x35f1b8(0x135))/0x4*(parseInt(_0x35f1b8(0x13b))/0x5)+-parseInt(_0x35f1b8(0x133))/0x6+parseInt(_0x35f1b8(0x138))/0x7+parseInt(_0x35f1b8(0x139))/0x8+parseInt(_0x35f1b8(0x134))/0x9;if(_0x5bd2b0===_0x223c01)break;else _0x973db0['push'](_0x973db0['shift']());}catch(_0x4e9ce6){_0x973db0['push'](_0x973db0['shift']());}}}(a16_0x2540,0x3d412));import{bffDetail}from'../../commands/bff/detail.js';function a16_0x5185(_0x4e15d5,_0x2b9586){_0x4e15d5=_0x4e15d5-0x133;const _0x25405f=a16_0x2540();let _0x51851f=_0x25405f[_0x4e15d5];return _0x51851f;}function a16_0x2540(){const _0x5f33f1=['1311987qCSDMH','2603195pZRZpz','1723504RLumCD','14CcRsLk','70yxygxI','1746984gLrgLA','4203027bIwcpy','21776uZORRa','183DgEuRn'];a16_0x2540=function(){return _0x5f33f1;};return a16_0x2540();}import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
1
+ (function(_0x3b3c3d,_0x8e162){const _0x13252d=a16_0x243a,_0x558c1b=_0x3b3c3d();while(!![]){try{const _0x4fe04d=parseInt(_0x13252d(0x15c))/0x1+-parseInt(_0x13252d(0x163))/0x2+-parseInt(_0x13252d(0x164))/0x3*(parseInt(_0x13252d(0x15d))/0x4)+-parseInt(_0x13252d(0x160))/0x5*(-parseInt(_0x13252d(0x15f))/0x6)+parseInt(_0x13252d(0x15e))/0x7+-parseInt(_0x13252d(0x162))/0x8+parseInt(_0x13252d(0x161))/0x9*(-parseInt(_0x13252d(0x165))/0xa);if(_0x4fe04d===_0x8e162)break;else _0x558c1b['push'](_0x558c1b['shift']());}catch(_0x1cbe83){_0x558c1b['push'](_0x558c1b['shift']());}}}(a16_0x1fb1,0xcdf50));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a16_0x243a(_0x18a188,_0x47fb28){_0x18a188=_0x18a188-0x15c;const _0x1fb123=a16_0x1fb1();let _0x243a4e=_0x1fb123[_0x18a188];return _0x243a4e;}export const bffDefinitions=[bffDetail,bffExec];function a16_0x1fb1(){const _0x54b37f=['395408CuViED','501RYFXsH','10080THRBTu','1595457feZZgd','39088pYugJm','4263896vedgdt','30HGfmnD','1355100mfHOsH','2070GciXhc','5236936zmVVDh'];a16_0x1fb1=function(){return _0x54b37f;};return a16_0x1fb1();}
@@ -1 +1 @@
1
- function a17_0x837a(_0x17550b,_0x50bbdf){_0x17550b=_0x17550b-0x1e0;const _0x3ff5ce=a17_0x3ff5();let _0x837a08=_0x3ff5ce[_0x17550b];return _0x837a08;}const a17_0x5a265c=a17_0x837a;(function(_0xf6b296,_0x110847){const _0x3fb82b=a17_0x837a,_0x3c7775=_0xf6b296();while(!![]){try{const _0x548efe=-parseInt(_0x3fb82b(0x1f0))/0x1+-parseInt(_0x3fb82b(0x1fd))/0x2*(-parseInt(_0x3fb82b(0x1e5))/0x3)+-parseInt(_0x3fb82b(0x1e7))/0x4+parseInt(_0x3fb82b(0x1f8))/0x5+-parseInt(_0x3fb82b(0x1fc))/0x6*(-parseInt(_0x3fb82b(0x1e9))/0x7)+-parseInt(_0x3fb82b(0x1f6))/0x8*(-parseInt(_0x3fb82b(0x1e8))/0x9)+-parseInt(_0x3fb82b(0x1e2))/0xa;if(_0x548efe===_0x110847)break;else _0x3c7775['push'](_0x3c7775['shift']());}catch(_0x29c568){_0x3c7775['push'](_0x3c7775['shift']());}}}(a17_0x3ff5,0xf0756));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';import{logger}from'../../utils/logger.js';function a17_0x3ff5(){const _0x542977=['24HaWeVR','inherit','8266620GyQqez','cwd','pipe','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20npm\x20package.','642TCBuVT','2arVYuv','read','error','skillVersion','7093570rsQKAQ','changed','CLI\x20Built-in\x20Skill\x20','5264943vDMmyr','installedPath','7349080lJfLUB','2361321CuSMEQ','9989penFHo','apiError',']:\x20','setLogPath','\x20is\x20already\x20current','INSTALL_FAILED','log','816556jzfIqx','\x20at\x20','Install\x20the\x20built-in\x20CLI\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','Built-in\x20Skill\x20install\x20failed\x20[','cli-skill-install','cli-skill'];a17_0x3ff5=function(){return _0x542977;};return a17_0x3ff5();}export const cliSkillDefinitions=[{'service':a17_0x5a265c(0x1f5),'command':'install','description':a17_0x5a265c(0x1f2),'risk':a17_0x5a265c(0x1fe),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x58f64d){const _0x3c4ac1=a17_0x5a265c;logger[_0x3c4ac1(0x1ec)](process[_0x3c4ac1(0x1f9)]()),logger['info'](_0x3c4ac1(0x1f4),_0x3c4ac1(0x1fb));const _0xb69cd9=installBuiltinSkill({'stdio':_0x58f64d['nonInteractive']?_0x3c4ac1(0x1fa):_0x3c4ac1(0x1f7)});if(!_0xb69cd9['ok'])throw CliErrors[_0x3c4ac1(0x1ea)](_0x3c4ac1(0x1f3)+(_0xb69cd9['code']||_0x3c4ac1(0x1ee))+_0x3c4ac1(0x1eb)+(_0xb69cd9[_0x3c4ac1(0x1e0)]||'unknown'),'Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20'+_0xb69cd9['repairCommand']);const _0x469204=_0xb69cd9[_0x3c4ac1(0x1e6)]?_0x3c4ac1(0x1f1)+_0xb69cd9[_0x3c4ac1(0x1e6)]:'';return console[_0x3c4ac1(0x1ef)](_0xb69cd9[_0x3c4ac1(0x1e3)]?_0x3c4ac1(0x1e4)+_0xb69cd9[_0x3c4ac1(0x1e1)]+'\x20installed'+_0x469204:'CLI\x20Built-in\x20Skill\x20'+_0xb69cd9[_0x3c4ac1(0x1e1)]+_0x3c4ac1(0x1ed)+_0x469204),{'ok':!![]};}}];
1
+ const a17_0x2c443e=a17_0x2552;(function(_0xc918d0,_0x59d8cb){const _0x8b2b3d=a17_0x2552,_0x2c76e2=_0xc918d0();while(!![]){try{const _0x4fab7a=-parseInt(_0x8b2b3d(0x16d))/0x1*(parseInt(_0x8b2b3d(0x17b))/0x2)+parseInt(_0x8b2b3d(0x16f))/0x3+-parseInt(_0x8b2b3d(0x17a))/0x4+parseInt(_0x8b2b3d(0x176))/0x5+parseInt(_0x8b2b3d(0x167))/0x6+-parseInt(_0x8b2b3d(0x162))/0x7+parseInt(_0x8b2b3d(0x16e))/0x8;if(_0x4fab7a===_0x59d8cb)break;else _0x2c76e2['push'](_0x2c76e2['shift']());}catch(_0xa0fd3){_0x2c76e2['push'](_0x2c76e2['shift']());}}}(a17_0xd5d2,0x1f5c4));import{CliErrors}from'../../errors.js';function a17_0xd5d2(){const _0x47bb18=['283432aIDxAw','575241xOKKBh','changed','skillVersion','\x20installed','\x20is\x20already\x20current','error',']:\x20','850335oZdHBg','CLI\x20Built-in\x20Skill\x20','inherit','cli-skill-install','691044uvNMlK','2WAcexs','\x20at\x20','cli-skill','Built-in\x20Skill\x20install\x20failed\x20[','log','code','install','nonInteractive','859544DAItQT','cwd','read','setLogPath','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20npm\x20package.','1323690NJtyuc','installedPath','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','repairCommand','INSTALL_FAILED','unknown','193853qYLnPv'];a17_0xd5d2=function(){return _0x47bb18;};return a17_0xd5d2();}import{installBuiltinSkill}from'../../skills/builtin-skill.js';import{logger}from'../../utils/logger.js';function a17_0x2552(_0x1effd6,_0x287afb){_0x1effd6=_0x1effd6-0x15f;const _0xd5d2f5=a17_0xd5d2();let _0x255203=_0xd5d2f5[_0x1effd6];return _0x255203;}export const cliSkillDefinitions=[{'service':a17_0x2c443e(0x17d),'command':a17_0x2c443e(0x160),'description':'Install\x20the\x20built-in\x20CLI\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','risk':a17_0x2c443e(0x164),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x232550){const _0x2f3307=a17_0x2c443e;logger[_0x2f3307(0x165)](process[_0x2f3307(0x163)]()),logger['info'](_0x2f3307(0x179),_0x2f3307(0x166));const _0x2ae31f=installBuiltinSkill({'stdio':_0x232550[_0x2f3307(0x161)]?'pipe':_0x2f3307(0x178)});if(!_0x2ae31f['ok'])throw CliErrors['apiError'](_0x2f3307(0x17e)+(_0x2ae31f[_0x2f3307(0x15f)]||_0x2f3307(0x16b))+_0x2f3307(0x175)+(_0x2ae31f[_0x2f3307(0x174)]||_0x2f3307(0x16c)),_0x2f3307(0x169)+_0x2ae31f[_0x2f3307(0x16a)]);const _0x2cabc8=_0x2ae31f['installedPath']?_0x2f3307(0x17c)+_0x2ae31f[_0x2f3307(0x168)]:'';return console[_0x2f3307(0x17f)](_0x2ae31f[_0x2f3307(0x170)]?'CLI\x20Built-in\x20Skill\x20'+_0x2ae31f[_0x2f3307(0x171)]+_0x2f3307(0x172)+_0x2cabc8:_0x2f3307(0x177)+_0x2ae31f['skillVersion']+_0x2f3307(0x173)+_0x2cabc8),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x4f161a,_0x5f3910){const _0x4e623e=a18_0x5aa5,_0x1bedb6=_0x4f161a();while(!![]){try{const _0x18571c=-parseInt(_0x4e623e(0x1c9))/0x1+-parseInt(_0x4e623e(0x1bc))/0x2*(parseInt(_0x4e623e(0x1b6))/0x3)+-parseInt(_0x4e623e(0x1b3))/0x4+parseInt(_0x4e623e(0x1b5))/0x5*(-parseInt(_0x4e623e(0x1c0))/0x6)+parseInt(_0x4e623e(0x1c6))/0x7*(parseInt(_0x4e623e(0x1c4))/0x8)+parseInt(_0x4e623e(0x1c3))/0x9*(parseInt(_0x4e623e(0x1c2))/0xa)+parseInt(_0x4e623e(0x1bb))/0xb*(parseInt(_0x4e623e(0x1ca))/0xc);if(_0x18571c===_0x5f3910)break;else _0x1bedb6['push'](_0x1bedb6['shift']());}catch(_0x3cf769){_0x1bedb6['push'](_0x1bedb6['shift']());}}}(a18_0x16a8,0x3805f));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';function a18_0x5aa5(_0x8d4010,_0x367e4b){_0x8d4010=_0x8d4010-0x1b3;const _0x16a8e0=a18_0x16a8();let _0x5aa505=_0x16a8e0[_0x8d4010];return _0x5aa505;}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(_0x3cb4fb){const _0x45bee2=a18_0x5aa5,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x3cc9d2}=_0x3cb4fb;if(explicitGlobal&&explicitProject)throw CliErrors[_0x45bee2(0x1be)](_0x45bee2(0x1ba),_0x45bee2(0x1c8));if(explicitGlobal)return _0x45bee2(0x1b8);if(explicitProject)return _0x45bee2(0x1b9);switch(_0x3cc9d2){case _0x45bee2(0x1c5):return _0x45bee2(0x1b8);case _0x45bee2(0x1b4):if(!(_0x3cb4fb['inProject']??isInProject()))throw CliErrors[_0x45bee2(0x1be)](_0x45bee2(0x1b7)+PRODUCT_CONFIG[_0x45bee2(0x1c7)]+_0x45bee2(0x1c1),'Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG['newConfigFileName']+_0x45bee2(0x1bd)+PRODUCT_CONFIG['newConfigFileName']+'\x20first.');return _0x45bee2(0x1b9);}}export function toScopeFlags(_0x1c6adf){return{'global':_0x1c6adf==='global'};}export function formatScopeLabel(_0x47f21e){const _0x1d5ba4=a18_0x5aa5;return _0x47f21e==='global'?_0x1d5ba4(0x1bf):'';}function a18_0x16a8(){const _0x6f7834=['Not\x20inside\x20a\x20project\x20(no\x20','global','project','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','586982sTJKzG','357752lWSNxm',',\x20or\x20create\x20a\x20project-local\x20','validation','\x20(global)','124794KIkszu','\x20found).','2265820edysBW','18QzvPJR','16KsmZAV','global-default','757099mJiqtE','newConfigFileName','Use\x20only\x20one\x20config\x20scope\x20flag.','214919Xmhvkg','120HTJDQe','738604EfcYPG','project-or-global-explicit','95oBNemv','3hYnbQf'];a18_0x16a8=function(){return _0x6f7834;};return a18_0x16a8();}
1
+ (function(_0x5e34d4,_0x432253){const _0x57bb25=a18_0x1e10,_0x304d4c=_0x5e34d4();while(!![]){try{const _0x4b0779=-parseInt(_0x57bb25(0x108))/0x1+parseInt(_0x57bb25(0x106))/0x2*(parseInt(_0x57bb25(0x10d))/0x3)+parseInt(_0x57bb25(0x115))/0x4*(parseInt(_0x57bb25(0x119))/0x5)+parseInt(_0x57bb25(0x10e))/0x6+-parseInt(_0x57bb25(0x117))/0x7*(-parseInt(_0x57bb25(0x10f))/0x8)+parseInt(_0x57bb25(0x10b))/0x9*(parseInt(_0x57bb25(0x118))/0xa)+-parseInt(_0x57bb25(0x113))/0xb;if(_0x4b0779===_0x432253)break;else _0x304d4c['push'](_0x304d4c['shift']());}catch(_0x3dd7f6){_0x304d4c['push'](_0x304d4c['shift']());}}}(a18_0x34c8,0xa5f64));import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';function a18_0x34c8(){const _0xaad33=['7245496cEDehH','\x20found).','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','global','20792211GUEabp','\x20(global)','32588IBNzaA',',\x20or\x20create\x20a\x20project-local\x20','7Xsgncj','90490pFjnzE','115DYLDfk','project-or-global-explicit','inProject','422SIjkem','validation','1357453YMhBOZ','project','newConfigFileName','1260TyNERy','\x20first.','12771NzOClZ','4015674GbaJpA'];a18_0x34c8=function(){return _0xaad33;};return a18_0x34c8();}export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';function a18_0x1e10(_0x560e9c,_0x596422){_0x560e9c=_0x560e9c-0x105;const _0x34c834=a18_0x34c8();let _0x1e100f=_0x34c834[_0x560e9c];return _0x1e100f;}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(_0x331638){const _0x4c9c40=a18_0x1e10,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x11c701}=_0x331638;if(explicitGlobal&&explicitProject)throw CliErrors[_0x4c9c40(0x107)](_0x4c9c40(0x111),'Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return _0x4c9c40(0x112);if(explicitProject)return'project';switch(_0x11c701){case'global-default':return _0x4c9c40(0x112);case _0x4c9c40(0x11a):if(!(_0x331638[_0x4c9c40(0x105)]??isInProject()))throw CliErrors[_0x4c9c40(0x107)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG[_0x4c9c40(0x10a)]+_0x4c9c40(0x110),'Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG[_0x4c9c40(0x10a)]+_0x4c9c40(0x116)+PRODUCT_CONFIG['newConfigFileName']+_0x4c9c40(0x10c));return _0x4c9c40(0x109);}}export function toScopeFlags(_0x22d790){const _0x24c35b=a18_0x1e10;return{'global':_0x22d790===_0x24c35b(0x112)};}export function formatScopeLabel(_0x45d701){const _0x3d7e8a=a18_0x1e10;return _0x45d701===_0x3d7e8a(0x112)?_0x3d7e8a(0x114):'';}
@@ -1 +1 @@
1
- (function(_0x55be72,_0x4d72f2){const _0x26a7e1=a19_0x37e0,_0x5452bc=_0x55be72();while(!![]){try{const _0x1243a4=-parseInt(_0x26a7e1(0x16e))/0x1*(-parseInt(_0x26a7e1(0x177))/0x2)+parseInt(_0x26a7e1(0x169))/0x3+-parseInt(_0x26a7e1(0x174))/0x4+-parseInt(_0x26a7e1(0x167))/0x5+-parseInt(_0x26a7e1(0x16a))/0x6*(-parseInt(_0x26a7e1(0x172))/0x7)+parseInt(_0x26a7e1(0x170))/0x8*(-parseInt(_0x26a7e1(0x17d))/0x9)+parseInt(_0x26a7e1(0x17c))/0xa*(parseInt(_0x26a7e1(0x176))/0xb);if(_0x1243a4===_0x4d72f2)break;else _0x5452bc['push'](_0x5452bc['shift']());}catch(_0x4fecea){_0x5452bc['push'](_0x5452bc['shift']());}}}(a19_0x86c6,0xcfac4));import{CliErrors}from'../../errors.js';function a19_0x37e0(_0x4ba989,_0x5e785b){_0x4ba989=_0x4ba989-0x166;const _0x86c62f=a19_0x86c6();let _0x37e0d5=_0x86c62f[_0x4ba989];return _0x37e0d5;}function isSet(_0x2f3901,_0x103701){const _0x4c200a=_0x2f3901['flag'](_0x103701);return _0x4c200a!==undefined&&_0x4c200a!==''&&_0x4c200a!==![]&&_0x4c200a!==0x0;}function a19_0x86c6(){const _0x399a3b=['26jsvoQw','some','8664JGwYau','Remove\x20all\x20but\x20one.','21QLylpU','\x20is\x20allowed,\x20found:\x20','2379336UOLKmp','Exactly\x20one\x20of\x20','396BeTWCS','73774ATPRiB','validation','At\x20least\x20one\x20of\x20','\x20are\x20mutually\x20exclusive\x20for\x20`','Flags\x20','288720MSRztt','9837TGUUoc','Invalid\x20--','length','\x20is\x20required\x20for\x20`','Only\x20one\x20of\x20','Use\x20only\x20one\x20of:\x20',',\x20got\x20\x22','3399930JpjSWt','str','2197146MTSCYd','1156662rMgLlJ','Provide\x20one\x20of:\x20','test','filter'];a19_0x86c6=function(){return _0x399a3b;};return a19_0x86c6();}function fmtNames(_0x3be04a){return _0x3be04a['map'](_0x44caf2=>'--'+_0x44caf2)['join'](',\x20');}export function requireOneOf(_0x4781d5,_0x399c9d,_0x59dfc7){const _0x477a5a=a19_0x37e0,_0xdd6313=_0x399c9d[_0x477a5a(0x16d)](_0x38dbad=>isSet(_0x4781d5,_0x38dbad));if(_0xdd6313[_0x477a5a(0x17f)]!==0x1)throw CliErrors[_0x477a5a(0x178)](_0xdd6313[_0x477a5a(0x17f)]===0x0?_0x477a5a(0x175)+fmtNames(_0x399c9d)+'\x20is\x20required\x20for\x20`'+_0x59dfc7+'`.':_0x477a5a(0x181)+fmtNames(_0x399c9d)+_0x477a5a(0x173)+fmtNames(_0xdd6313)+'.',_0xdd6313[_0x477a5a(0x17f)]===0x0?_0x477a5a(0x16b)+fmtNames(_0x399c9d):_0x477a5a(0x171));}export function requireAnyOf(_0x748ca2,_0x3a7648,_0x3ceda4){const _0x311dff=a19_0x37e0;if(!_0x3a7648[_0x311dff(0x16f)](_0x22fead=>isSet(_0x748ca2,_0x22fead)))throw CliErrors['validation'](_0x311dff(0x179)+fmtNames(_0x3a7648)+_0x311dff(0x180)+_0x3ceda4+'`.',_0x311dff(0x16b)+fmtNames(_0x3a7648));}export function mutuallyExclusive(_0x57cc12,_0x393c4e,_0x184fe8){const _0x4889fb=a19_0x37e0,_0x4360cf=_0x393c4e[_0x4889fb(0x16d)](_0x53ccdf=>isSet(_0x57cc12,_0x53ccdf));if(_0x4360cf['length']>0x1)throw CliErrors[_0x4889fb(0x178)](_0x4889fb(0x17b)+fmtNames(_0x4360cf)+_0x4889fb(0x17a)+_0x184fe8+'`.',_0x4889fb(0x182)+fmtNames(_0x393c4e));}export function validatePattern(_0x34d6f8,_0x47720a,_0x3d86e7,_0x17d6a1){const _0x1286d7=a19_0x37e0,_0x189bd4=_0x34d6f8[_0x1286d7(0x168)](_0x47720a);if(_0x189bd4&&!_0x3d86e7[_0x1286d7(0x16c)](_0x189bd4))throw CliErrors[_0x1286d7(0x178)](_0x1286d7(0x17e)+_0x47720a+':\x20expected\x20'+_0x17d6a1+_0x1286d7(0x166)+_0x189bd4+'\x22.');}
1
+ (function(_0x1add24,_0x150dcd){const _0x157cee=a19_0x4d73,_0x1645f1=_0x1add24();while(!![]){try{const _0x27d2c3=parseInt(_0x157cee(0x19b))/0x1*(-parseInt(_0x157cee(0x198))/0x2)+parseInt(_0x157cee(0x1ac))/0x3+parseInt(_0x157cee(0x19a))/0x4*(parseInt(_0x157cee(0x19e))/0x5)+-parseInt(_0x157cee(0x1ae))/0x6+-parseInt(_0x157cee(0x1a7))/0x7*(-parseInt(_0x157cee(0x1a3))/0x8)+-parseInt(_0x157cee(0x1a2))/0x9+parseInt(_0x157cee(0x1aa))/0xa;if(_0x27d2c3===_0x150dcd)break;else _0x1645f1['push'](_0x1645f1['shift']());}catch(_0x148232){_0x1645f1['push'](_0x1645f1['shift']());}}}(a19_0x5c2a,0x1a298));import{CliErrors}from'../../errors.js';function isSet(_0x117651,_0x2b5cdb){const _0x2b31c7=a19_0x4d73,_0x486c9b=_0x117651[_0x2b31c7(0x1ab)](_0x2b5cdb);return _0x486c9b!==undefined&&_0x486c9b!==''&&_0x486c9b!==![]&&_0x486c9b!==0x0;}function a19_0x4d73(_0x59f43f,_0x379607){_0x59f43f=_0x59f43f-0x196;const _0x5c2a86=a19_0x5c2a();let _0x4d7366=_0x5c2a86[_0x59f43f];return _0x4d7366;}function a19_0x5c2a(){const _0x23027e=['filter','Only\x20one\x20of\x20','3745AmAjlB','join','Use\x20only\x20one\x20of:\x20','\x20is\x20allowed,\x20found:\x20','1905687TPJiSa','8EyHUbj','\x20are\x20mutually\x20exclusive\x20for\x20`','length','str','1075592MBwAiV','validation','Provide\x20one\x20of:\x20','2357530yFziWm','flag','200823qTUbNX','Exactly\x20one\x20of\x20','679266fcBSaC','map',',\x20got\x20\x22','79930iVTQsQ','\x20is\x20required\x20for\x20`','84SNxmex','1gmjqRE'];a19_0x5c2a=function(){return _0x23027e;};return a19_0x5c2a();}function fmtNames(_0x56e501){const _0x3a419f=a19_0x4d73;return _0x56e501[_0x3a419f(0x196)](_0x5ba514=>'--'+_0x5ba514)[_0x3a419f(0x19f)](',\x20');}export function requireOneOf(_0x3a30ac,_0x369e1e,_0x5996c5){const _0x203623=a19_0x4d73,_0x178295=_0x369e1e[_0x203623(0x19c)](_0x18beb5=>isSet(_0x3a30ac,_0x18beb5));if(_0x178295[_0x203623(0x1a5)]!==0x1)throw CliErrors[_0x203623(0x1a8)](_0x178295[_0x203623(0x1a5)]===0x0?_0x203623(0x1ad)+fmtNames(_0x369e1e)+_0x203623(0x199)+_0x5996c5+'`.':_0x203623(0x19d)+fmtNames(_0x369e1e)+_0x203623(0x1a1)+fmtNames(_0x178295)+'.',_0x178295[_0x203623(0x1a5)]===0x0?_0x203623(0x1a9)+fmtNames(_0x369e1e):'Remove\x20all\x20but\x20one.');}export function requireAnyOf(_0x1e66bd,_0x56e457,_0x20e501){const _0x4de8ad=a19_0x4d73;if(!_0x56e457['some'](_0x1ff61f=>isSet(_0x1e66bd,_0x1ff61f)))throw CliErrors[_0x4de8ad(0x1a8)]('At\x20least\x20one\x20of\x20'+fmtNames(_0x56e457)+'\x20is\x20required\x20for\x20`'+_0x20e501+'`.',_0x4de8ad(0x1a9)+fmtNames(_0x56e457));}export function mutuallyExclusive(_0x4c04af,_0x33e32e,_0x5c775d){const _0x1d25a4=a19_0x4d73,_0x63c2ac=_0x33e32e[_0x1d25a4(0x19c)](_0x5deb8c=>isSet(_0x4c04af,_0x5deb8c));if(_0x63c2ac[_0x1d25a4(0x1a5)]>0x1)throw CliErrors[_0x1d25a4(0x1a8)]('Flags\x20'+fmtNames(_0x63c2ac)+_0x1d25a4(0x1a4)+_0x5c775d+'`.',_0x1d25a4(0x1a0)+fmtNames(_0x33e32e));}export function validatePattern(_0x14d2be,_0x23dd19,_0x44d39a,_0x12908b){const _0x483482=a19_0x4d73,_0x21a02e=_0x14d2be[_0x483482(0x1a6)](_0x23dd19);if(_0x21a02e&&!_0x44d39a['test'](_0x21a02e))throw CliErrors[_0x483482(0x1a8)]('Invalid\x20--'+_0x23dd19+':\x20expected\x20'+_0x12908b+_0x483482(0x197)+_0x21a02e+'\x22.');}
@@ -1 +1 @@
1
- const a20_0x357a1c=a20_0x3c22;(function(_0x187962,_0x1124cd){const _0xdfb3d1=a20_0x3c22,_0x5a6665=_0x187962();while(!![]){try{const _0x6d7922=parseInt(_0xdfb3d1(0x138))/0x1*(-parseInt(_0xdfb3d1(0x12f))/0x2)+-parseInt(_0xdfb3d1(0x128))/0x3*(-parseInt(_0xdfb3d1(0x125))/0x4)+-parseInt(_0xdfb3d1(0x129))/0x5*(-parseInt(_0xdfb3d1(0x132))/0x6)+-parseInt(_0xdfb3d1(0x123))/0x7+parseInt(_0xdfb3d1(0x121))/0x8+parseInt(_0xdfb3d1(0x134))/0x9*(parseInt(_0xdfb3d1(0x12c))/0xa)+parseInt(_0xdfb3d1(0x130))/0xb*(-parseInt(_0xdfb3d1(0x139))/0xc);if(_0x6d7922===_0x1124cd)break;else _0x5a6665['push'](_0x5a6665['shift']());}catch(_0x512ced){_0x5a6665['push'](_0x5a6665['shift']());}}}(a20_0x5353,0xa3975));export const GLOBAL_SCOPE_FLAG={'name':a20_0x357a1c(0x12a),'type':a20_0x357a1c(0x120),'default':![],'description':a20_0x357a1c(0x13a)};export const CODE_FLAG={'name':a20_0x357a1c(0x122),'type':a20_0x357a1c(0x137),'required':!![],'description':a20_0x357a1c(0x12e),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)'}};export const SQLCODE_FLAG={'name':a20_0x357a1c(0x135),'type':a20_0x357a1c(0x137),'required':!![],'description':a20_0x357a1c(0x12d),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x357a1c(0x126)}};function a20_0x3c22(_0x4552af,_0x48953e){_0x4552af=_0x4552af-0x120;const _0x53538b=a20_0x5353();let _0x3c2206=_0x53538b[_0x4552af];return _0x3c2206;}export const VERBOSE_FLAG={'name':a20_0x357a1c(0x12b),'type':a20_0x357a1c(0x120),'description':'Return\x20full\x20raw\x20response\x20object'};export const PARAMS_FLAG={'name':a20_0x357a1c(0x131),'type':a20_0x357a1c(0x137),'description':a20_0x357a1c(0x127)};export const NAME_FLAG={'name':a20_0x357a1c(0x13b),'type':'string','description':a20_0x357a1c(0x136)};export const ID_FLAG={'name':'id','type':a20_0x357a1c(0x133),'required':!![],'description':a20_0x357a1c(0x124)};function a20_0x5353(){const _0x46d897=['10oBEjWl','global','verbose','6243720ojUUZH','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','Dataset\x20code\x20(32-char\x20hex\x20UUID)','2KbPxCa','1078xrsJad','params','3257058AMssfx','number','18mTYlgM','sqlcode','Resource\x20name\x20for\x20lookup','string','1070729XfvJRE','101868hLGqpc','Write\x20to\x20the\x20global\x20configuration','name','boolean','8466960Vxxuad','code','9260601yNTiYd','Resource\x20ID','12MtkIqm','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','502863ZNfWNh'];a20_0x5353=function(){return _0x46d897;};return a20_0x5353();}
1
+ const a20_0x1de4e3=a20_0x1e9b;(function(_0x1658fc,_0x493be4){const _0xc95f04=a20_0x1e9b,_0x3ec0b5=_0x1658fc();while(!![]){try{const _0x1d485a=-parseInt(_0xc95f04(0xc8))/0x1*(-parseInt(_0xc95f04(0xd4))/0x2)+-parseInt(_0xc95f04(0xcd))/0x3+parseInt(_0xc95f04(0xca))/0x4*(-parseInt(_0xc95f04(0xd2))/0x5)+-parseInt(_0xc95f04(0xc2))/0x6+parseInt(_0xc95f04(0xd5))/0x7+-parseInt(_0xc95f04(0xcc))/0x8*(-parseInt(_0xc95f04(0xd1))/0x9)+-parseInt(_0xc95f04(0xd3))/0xa;if(_0x1d485a===_0x493be4)break;else _0x3ec0b5['push'](_0x3ec0b5['shift']());}catch(_0x46d6b5){_0x3ec0b5['push'](_0x3ec0b5['shift']());}}}(a20_0xef4f,0x82b1d));export const GLOBAL_SCOPE_FLAG={'name':'global','type':a20_0x1de4e3(0xcb),'default':![],'description':'Write\x20to\x20the\x20global\x20configuration'};export const CODE_FLAG={'name':a20_0x1de4e3(0xd6),'type':'string','required':!![],'description':a20_0x1de4e3(0xc9),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x1de4e3(0xd0)}};export const SQLCODE_FLAG={'name':a20_0x1de4e3(0xc3),'type':'string','required':!![],'description':a20_0x1de4e3(0xc1),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};function a20_0xef4f(){const _0x1d2e89=['verbose','name','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','9bzKHFo','281705OnsFFH','8683120mqrEHh','924380GesEQz','7425782vOgWIa','code','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','2639982Grntmq','sqlcode','Resource\x20name\x20for\x20lookup','string','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','number','2ahGqmQ','Dataset\x20code\x20(32-char\x20hex\x20UUID)','12KNaVMR','boolean','4720624iuYYRT','1687881FHcaKg'];a20_0xef4f=function(){return _0x1d2e89;};return a20_0xef4f();}export const VERBOSE_FLAG={'name':a20_0x1de4e3(0xce),'type':a20_0x1de4e3(0xcb),'description':'Return\x20full\x20raw\x20response\x20object'};export const PARAMS_FLAG={'name':'params','type':a20_0x1de4e3(0xc5),'description':a20_0x1de4e3(0xc6)};function a20_0x1e9b(_0x54ac04,_0x289a29){_0x54ac04=_0x54ac04-0xc1;const _0xef4f7=a20_0xef4f();let _0x1e9b0b=_0xef4f7[_0x54ac04];return _0x1e9b0b;}export const NAME_FLAG={'name':a20_0x1de4e3(0xcf),'type':a20_0x1de4e3(0xc5),'description':a20_0x1de4e3(0xc4)};export const ID_FLAG={'name':'id','type':a20_0x1de4e3(0xc7),'required':!![],'description':'Resource\x20ID'};
@@ -1 +1 @@
1
- (function(_0x455178,_0x4e0a52){const _0x57409c=a21_0x48bd,_0x35e302=_0x455178();while(!![]){try{const _0x41e51d=-parseInt(_0x57409c(0x1ca))/0x1+parseInt(_0x57409c(0x1c9))/0x2*(parseInt(_0x57409c(0x1cb))/0x3)+-parseInt(_0x57409c(0x1c3))/0x4*(parseInt(_0x57409c(0x1ba))/0x5)+parseInt(_0x57409c(0x1b9))/0x6+-parseInt(_0x57409c(0x1c7))/0x7*(parseInt(_0x57409c(0x1c5))/0x8)+-parseInt(_0x57409c(0x1bb))/0x9+parseInt(_0x57409c(0x1c1))/0xa*(parseInt(_0x57409c(0x1cc))/0xb);if(_0x41e51d===_0x4e0a52)break;else _0x35e302['push'](_0x35e302['shift']());}catch(_0x130c92){_0x35e302['push'](_0x35e302['shift']());}}}(a21_0x5f3c,0xc5e67));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x3fdb7f){const _0x46bd89=a21_0x48bd;if(_0x3fdb7f>=BYTES_PER_MB){const _0x5b5e80=Math[_0x46bd89(0x1be)](_0x3fdb7f/BYTES_PER_MB*0x64)/0x64;return _0x5b5e80[_0x46bd89(0x1c6)](0x2)+_0x46bd89(0x1c8);}return _0x3fdb7f+'\x20B';}export function requireRuntimeUploadFile(_0x27bbb2,_0x5c3574){const _0x45211a=a21_0x48bd,_0x23eea0=_0x27bbb2[_0x45211a(0x1c4)]();if(!_0x23eea0)throw CliErrors[_0x45211a(0x1bc)](_0x5c3574+'\x20path\x20is\x20required.');if(!existsSync(_0x23eea0))throw CliErrors[_0x45211a(0x1bc)](_0x45211a(0x1bd)+_0x23eea0);const _0x4642c0=statSync(_0x23eea0);if(!_0x4642c0[_0x45211a(0x1bf)]())throw CliErrors['validation']('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x23eea0);if(_0x4642c0[_0x45211a(0x1c2)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x45211a(0x1bc)](_0x45211a(0x1c0)+_0x23eea0+'\x20('+formatBytes(_0x4642c0[_0x45211a(0x1c2)])+')');return{'path':_0x23eea0,'size':_0x4642c0[_0x45211a(0x1c2)]};}function a21_0x48bd(_0x3ad6a9,_0x315567){_0x3ad6a9=_0x3ad6a9-0x1b9;const _0x5f3cd0=a21_0x5f3c();let _0x48bdcc=_0x5f3cd0[_0x3ad6a9];return _0x48bdcc;}function a21_0x5f3c(){const _0x2b7180=['149112QIYjsv','validation','File\x20not\x20found:\x20','ceil','isFile','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','9303760NpBaUJ','size','4197208AtwMEd','trim','11923384uMVPyJ','toFixed','7yeXnaX','\x20MB','34324HqCEPs','88998SDKYES','3rPtDWY','33SftUhV','3885600sOtvuS','5MazszG'];a21_0x5f3c=function(){return _0x2b7180;};return a21_0x5f3c();}
1
+ (function(_0x40721c,_0x119f62){const _0x1423e7=a21_0x2fa8,_0x23a8d8=_0x40721c();while(!![]){try{const _0x9c379a=parseInt(_0x1423e7(0xb2))/0x1*(parseInt(_0x1423e7(0xae))/0x2)+parseInt(_0x1423e7(0xaf))/0x3*(-parseInt(_0x1423e7(0xa5))/0x4)+parseInt(_0x1423e7(0xb1))/0x5*(-parseInt(_0x1423e7(0xa7))/0x6)+parseInt(_0x1423e7(0xac))/0x7*(parseInt(_0x1423e7(0xb4))/0x8)+parseInt(_0x1423e7(0xab))/0x9+parseInt(_0x1423e7(0xaa))/0xa*(parseInt(_0x1423e7(0xa8))/0xb)+-parseInt(_0x1423e7(0xb9))/0xc*(parseInt(_0x1423e7(0xb7))/0xd);if(_0x9c379a===_0x119f62)break;else _0x23a8d8['push'](_0x23a8d8['shift']());}catch(_0x55616c){_0x23a8d8['push'](_0x23a8d8['shift']());}}}(a21_0x32ce,0x31522));import{existsSync,statSync}from'node:fs';function a21_0x32ce(){const _0x44edb0=['trim','File\x20not\x20found:\x20','11414SrzIlu','size','3804fstyqH','516944Eayrqv','File\x20is\x20not\x20a\x20regular\x20file:\x20','7188xyYglG','14509ttywrb','ceil','1150sbFXpf','3301461kPgUoI','39018ykxpwh','validation','244XcctAJ','6GiGJfI','\x20path\x20is\x20required.','110mTsRHy','377kyjWfU','\x20MB','288RtuOMH'];a21_0x32ce=function(){return _0x44edb0;};return a21_0x32ce();}function a21_0x2fa8(_0x4ab459,_0x4e196e){_0x4ab459=_0x4ab459-0xa5;const _0x32ce8c=a21_0x32ce();let _0x2fa842=_0x32ce8c[_0x4ab459];return _0x2fa842;}import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x395d52){const _0x12bd97=a21_0x2fa8;if(_0x395d52>=BYTES_PER_MB){const _0x65ff57=Math[_0x12bd97(0xa9)](_0x395d52/BYTES_PER_MB*0x64)/0x64;return _0x65ff57['toFixed'](0x2)+_0x12bd97(0xb3);}return _0x395d52+'\x20B';}export function requireRuntimeUploadFile(_0x288f4e,_0x27ce91){const _0x3ba0bc=a21_0x2fa8,_0x1d49db=_0x288f4e[_0x3ba0bc(0xb5)]();if(!_0x1d49db)throw CliErrors['validation'](_0x27ce91+_0x3ba0bc(0xb0));if(!existsSync(_0x1d49db))throw CliErrors['validation'](_0x3ba0bc(0xb6)+_0x1d49db);const _0x21f7e8=statSync(_0x1d49db);if(!_0x21f7e8['isFile']())throw CliErrors[_0x3ba0bc(0xad)](_0x3ba0bc(0xa6)+_0x1d49db);if(_0x21f7e8[_0x3ba0bc(0xb8)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x3ba0bc(0xad)]('File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20'+_0x1d49db+'\x20('+formatBytes(_0x21f7e8[_0x3ba0bc(0xb8)])+')');return{'path':_0x1d49db,'size':_0x21f7e8[_0x3ba0bc(0xb8)]};}
@@ -1 +1 @@
1
- const a22_0x3ecc11=a22_0x2648;(function(_0xde1ef8,_0x1dd36a){const _0x60df46=a22_0x2648,_0x1b1b8c=_0xde1ef8();while(!![]){try{const _0x30393e=parseInt(_0x60df46(0x1cb))/0x1*(parseInt(_0x60df46(0x1ac))/0x2)+-parseInt(_0x60df46(0x190))/0x3+-parseInt(_0x60df46(0x1b1))/0x4*(-parseInt(_0x60df46(0x1d0))/0x5)+parseInt(_0x60df46(0x1ab))/0x6+parseInt(_0x60df46(0x1ba))/0x7*(-parseInt(_0x60df46(0x1b8))/0x8)+parseInt(_0x60df46(0x19e))/0x9*(parseInt(_0x60df46(0x194))/0xa)+parseInt(_0x60df46(0x193))/0xb;if(_0x30393e===_0x1dd36a)break;else _0x1b1b8c['push'](_0x1b1b8c['shift']());}catch(_0x5a0282){_0x1b1b8c['push'](_0x1b1b8c['shift']());}}}(a22_0x3e26,0x54f16));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 a22_0x2648(_0x2eb9bd,_0x4dd674){_0x2eb9bd=_0x2eb9bd-0x18b;const _0x3e26ad=a22_0x3e26();let _0x26484e=_0x3e26ad[_0x2eb9bd];return _0x26484e;}function a22_0x3e26(){const _0x3df797=['config','(none)','Get\x20a\x20config\x20value','value','\x20config\x20delete\x20<key>\x20[--global]','global','../../context.js','46152GzUWMU','\x20config\x20get\x20<key>','stringify','validation','List\x20current\x20config','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','`\x20=\x20\x22','raw','Changes\x20Lovrabet\x20CLI\x20configuration.\x20Later\x20commands\x20may\x20use\x20a\x20different\x20app,\x20environment,\x20or\x20output\x20behavior.','pretty','key','split','549060DahxCg','2VWfieS','format','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','alias','length','2216yoCDIy','bool','Set\x20a\x20configuration\x20value','trim','apps','Missing\x20key\x20argument.','project-or-global-explicit','8jeeyzB','join','3280690UJowfO','pageSize','Top-level\x20key\x20\x22','Config\x20files:\x0a','appcode','Usage:\x20','isArray','keys','\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.','log','accessKey','\x20config\x20set\x20<key>\x20<value>\x20[--global]','args','includes','\x20(global)','object',';\x20apps.<alias>.appcode','378253oPWNnE','\x22\x20is\x20not\x20settable.','\x22.\x20Allowed:\x20','\x20\x20project:\x20','field','5uYEhwn','\x20\x20global:\x20\x20','read','Missing\x20key\x20or\x20value.','get','locale','Delete\x20a\x20configuration\x20value','881256EQdSFc','write','Deleted\x20`','3768677NexnGB','580SmpniM','Key\x20not\x20found:\x20','list'];a22_0x3e26=function(){return _0x3df797;};return a22_0x3e26();}function parseAliasAppcodeSetKey(_0x430360){const _0x23e51d=a22_0x2648,_0x173b17=_0x430360[_0x23e51d(0x1aa)]('.');if(_0x173b17[_0x23e51d(0x1b0)]!==0x3||_0x173b17[0x0]!==_0x23e51d(0x1b5)||_0x173b17[0x2]!==_0x23e51d(0x1be))return undefined;const _0x2c99a4=_0x173b17[0x1]?.[_0x23e51d(0x1b4)]();return _0x2c99a4?_0x2c99a4:undefined;}function parseAliasDeleteKey(_0x2112e1){const _0x36afa3=a22_0x2648,_0x567bd1=_0x2112e1[_0x36afa3(0x1aa)]('.');if(_0x567bd1[_0x36afa3(0x1b0)]===0x2&&_0x567bd1[0x0]===_0x36afa3(0x1b5)){const _0x1196d4=_0x567bd1[0x1]?.[_0x36afa3(0x1b4)]();return _0x1196d4?{'alias':_0x1196d4}:undefined;}if(_0x567bd1[_0x36afa3(0x1b0)]===0x3&&_0x567bd1[0x0]===_0x36afa3(0x1b5)&&_0x567bd1[0x2]===_0x36afa3(0x1be)){const _0x4b2656=_0x567bd1[0x1]?.['trim']();return _0x4b2656?{'alias':_0x4b2656,'field':'appcode'}:undefined;}return undefined;}function setLocalAppAlias(_0x1bc9ef,_0x15316d,_0x2e685f){const _0x269cf5=a22_0x2648,_0x4deacc=_0x1bc9ef[_0x269cf5(0x1b5)]&&typeof _0x1bc9ef[_0x269cf5(0x1b5)]==='object'&&!Array[_0x269cf5(0x1c0)](_0x1bc9ef[_0x269cf5(0x1b5)])?_0x1bc9ef[_0x269cf5(0x1b5)]:{},_0x2f5eaa=_0x4deacc[_0x15316d]&&typeof _0x4deacc[_0x15316d]==='object'&&!Array[_0x269cf5(0x1c0)](_0x4deacc[_0x15316d])?_0x4deacc[_0x15316d]:{};_0x2f5eaa[_0x269cf5(0x1be)]=_0x2e685f,_0x4deacc[_0x15316d]=_0x2f5eaa,_0x1bc9ef[_0x269cf5(0x1b5)]=_0x4deacc;}function deleteLocalAppAlias(_0x14ea4d,_0x27d068){const _0x11f19e=a22_0x2648;if(!_0x14ea4d[_0x11f19e(0x1b5)]||typeof _0x14ea4d[_0x11f19e(0x1b5)]!=='object'||Array[_0x11f19e(0x1c0)](_0x14ea4d[_0x11f19e(0x1b5)]))return![];const _0x5607c6=_0x14ea4d[_0x11f19e(0x1b5)],_0x3767a5=_0x5607c6[_0x27d068[_0x11f19e(0x1af)]];if(!_0x3767a5||typeof _0x3767a5!=='object'||Array['isArray'](_0x3767a5))return![];if(!_0x27d068[_0x11f19e(0x1cf)])return delete _0x5607c6[_0x27d068[_0x11f19e(0x1af)]],!![];if(!(_0x27d068[_0x11f19e(0x1cf)]in _0x3767a5))return![];return delete _0x3767a5[_0x27d068[_0x11f19e(0x1cf)]],Object[_0x11f19e(0x1c1)](_0x3767a5)['length']===0x0&&delete _0x5607c6[_0x27d068['alias']],!![];}const listDef={'service':a22_0x3ecc11(0x197),'command':a22_0x3ecc11(0x196),'description':a22_0x3ecc11(0x1a2),'risk':a22_0x3ecc11(0x18b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x1c8ea0){const _0x29e974=a22_0x3ecc11,{buildConfigFromFlags:_0x1b2941}=await import('../../context.js'),_0x2bde56=_0x1b2941({}),_0x4d45db=redactCliConfigCredentials(_0x2bde56[_0x29e974(0x1a6)]),_0x24231b=getProjectConfigPath(),_0x7bcc76=resolveWriteConfigPath('global');if(_0x1c8ea0[_0x29e974(0x1ad)]===_0x29e974(0x1a8))return{'ok':!![],'message':_0x29e974(0x1a4)+(JSON[_0x29e974(0x1a0)](_0x4d45db,null,0x2)+'\x0a\x0a')+_0x29e974(0x1bd)+(_0x29e974(0x1ce)+(_0x24231b??_0x29e974(0x198))+'\x0a')+(_0x29e974(0x1d1)+_0x7bcc76)};return{'ok':!![],'data':{'effective':_0x4d45db,'configFiles':{'project':_0x24231b??null,'global':_0x7bcc76}}};}},getDef={'service':a22_0x3ecc11(0x197),'command':a22_0x3ecc11(0x18d),'description':a22_0x3ecc11(0x199),'risk':a22_0x3ecc11(0x18b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x3ecc11(0x1a9),'description':a22_0x3ecc11(0x1ae),'required':!![]}],'flags':[],async 'execute'(_0x34fcda){const _0x1cae07=a22_0x3ecc11,_0x2a8671=_0x34fcda[_0x1cae07(0x1c6)][0x0];if(!_0x2a8671)throw CliErrors[_0x1cae07(0x1a1)]('Missing\x20key\x20argument.','Usage:\x20'+CLI_BIN_NAME+_0x1cae07(0x19f));const {buildConfigFromFlags:_0x2f1d42}=await import(_0x1cae07(0x19d)),{raw:_0x573a0b}=_0x2f1d42({});if(_0x2a8671[_0x1cae07(0x1c7)]('.')){const _0x2cde33=_0x2a8671[_0x1cae07(0x1aa)]('.');let _0x2e735c=_0x573a0b;for(const _0x321dc3 of _0x2cde33){if(_0x2e735c==null||typeof _0x2e735c!=='object')throw CliErrors[_0x1cae07(0x1a1)](_0x1cae07(0x195)+_0x2a8671);_0x2e735c=_0x2e735c[_0x321dc3];}if(_0x2e735c===undefined)throw CliErrors[_0x1cae07(0x1a1)](_0x1cae07(0x195)+_0x2a8671);const _0x2f8da3=redactCliConfigValue(_0x2a8671,_0x2e735c);return console[_0x1cae07(0x1c3)](typeof _0x2f8da3===_0x1cae07(0x1c9)?JSON[_0x1cae07(0x1a0)](_0x2f8da3,null,0x2):String(_0x2f8da3)),{'ok':!![]};}const _0x407de6=_0x573a0b[_0x2a8671];if(_0x407de6===undefined)throw CliErrors['validation'](_0x1cae07(0x195)+_0x2a8671);const _0xa71b34=redactCliConfigValue(_0x2a8671,_0x407de6);return console[_0x1cae07(0x1c3)](typeof _0xa71b34===_0x1cae07(0x1c9)?JSON['stringify'](_0xa71b34,null,0x2):String(_0xa71b34)),{'ok':!![]};}},setDef={'service':a22_0x3ecc11(0x197),'command':'set','description':a22_0x3ecc11(0x1b3),'risk':a22_0x3ecc11(0x191),'confirmationDescription':a22_0x3ecc11(0x1a7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x3ecc11(0x1a9),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x3ecc11(0x19a),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x24754f){const _0x58a6aa=a22_0x3ecc11,_0x102f62=_0x24754f[_0x58a6aa(0x1c6)][0x0],_0x293cd8=_0x24754f[_0x58a6aa(0x1c6)][0x1];if(!_0x102f62||_0x293cd8===undefined)throw CliErrors[_0x58a6aa(0x1a1)](_0x58a6aa(0x18c),_0x58a6aa(0x1bf)+CLI_BIN_NAME+_0x58a6aa(0x1c5));if(ENUM_KEYS[_0x102f62]&&!ENUM_KEYS[_0x102f62][_0x58a6aa(0x1c7)](_0x293cd8))throw CliErrors[_0x58a6aa(0x1a1)]('Invalid\x20value\x20for\x20\x22'+_0x102f62+_0x58a6aa(0x1cd)+ENUM_KEYS[_0x102f62][_0x58a6aa(0x1b9)](',\x20'));if(isCliProtectedConfigKey(_0x102f62))throw CliErrors[_0x58a6aa(0x1a1)]('\x22'+_0x102f62+_0x58a6aa(0x1c2));if(_0x102f62===_0x58a6aa(0x1bb)){const _0x606217=Number(_0x293cd8);if(isNaN(_0x606217)||_0x606217<=0x0)throw CliErrors[_0x58a6aa(0x1a1)]('pageSize\x20must\x20be\x20a\x20positive\x20number');}const _0x28969c=resolveWriteScope({'explicitGlobal':_0x24754f[_0x58a6aa(0x1b2)](_0x58a6aa(0x19c)),'policy':_0x58a6aa(0x1b7)}),_0x569510=toScopeFlags(_0x28969c),_0x7e2c66=readScopedConfig(_0x569510),_0x1e1b12=parseAliasAppcodeSetKey(_0x102f62);if(!_0x1e1b12&&!isTopLevelConfigKey(_0x102f62))throw CliErrors[_0x58a6aa(0x1a1)](_0x58a6aa(0x1bc)+_0x102f62+_0x58a6aa(0x1cc),'Settable\x20keys:\x20'+getTopLevelConfigKeySummary()+_0x58a6aa(0x1ca));if(_0x1e1b12)setLocalAppAlias(_0x7e2c66,_0x1e1b12,_0x293cd8);else{if(_0x102f62===_0x58a6aa(0x18e)){const _0x5c52a5=normalizeLocale(_0x293cd8);if(!_0x5c52a5)throw CliErrors[_0x58a6aa(0x1a1)]('Invalid\x20locale\x20value.',_0x58a6aa(0x1a3));_0x7e2c66[_0x58a6aa(0x18e)]=_0x5c52a5;}else _0x7e2c66[_0x102f62]=_0x102f62===_0x58a6aa(0x1bb)?Number(_0x293cd8):DOMAIN_CONFIG_FIELDS[_0x58a6aa(0x1c7)](_0x102f62)?normalizeDomainOrigin(_0x102f62,_0x293cd8):_0x293cd8;}const _0x2d8e18=_0x102f62===_0x58a6aa(0x1c4)?maskCliAccessKey(_0x293cd8):!_0x1e1b12&&_0x102f62===_0x58a6aa(0x18e)?String(_0x7e2c66[_0x58a6aa(0x18e)]):_0x293cd8;return console[_0x58a6aa(0x1c3)]('Set\x20`'+_0x102f62+_0x58a6aa(0x1a5)+_0x2d8e18+'\x22'+(_0x28969c===_0x58a6aa(0x19c)?_0x58a6aa(0x1c8):'')),writeScopedConfig(_0x7e2c66,_0x569510),{'ok':!![]};}},deleteDef={'service':a22_0x3ecc11(0x197),'command':'delete','description':a22_0x3ecc11(0x18f),'risk':'write','confirmationDescription':'Deletes\x20a\x20Lovrabet\x20CLI\x20config\x20key.\x20Later\x20commands\x20will\x20fall\x20back\x20to\x20another\x20config\x20layer\x20or\x20the\x20default.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x378dcf){const _0x2c7440=a22_0x3ecc11,_0x186138=_0x378dcf[_0x2c7440(0x1c6)][0x0];if(!_0x186138)throw CliErrors[_0x2c7440(0x1a1)](_0x2c7440(0x1b6),_0x2c7440(0x1bf)+CLI_BIN_NAME+_0x2c7440(0x19b));if(isCliProtectedConfigKey(_0x186138))throw CliErrors['validation']('\x22'+_0x186138+_0x2c7440(0x1c2));const _0x5a79b2=resolveWriteScope({'explicitGlobal':_0x378dcf[_0x2c7440(0x1b2)](_0x2c7440(0x19c)),'policy':_0x2c7440(0x1b7)}),_0x13bd39=toScopeFlags(_0x5a79b2),_0x5d0dcf=readScopedConfig(_0x13bd39),_0x66f15f=parseAliasDeleteKey(_0x186138);if(_0x66f15f){if(!deleteLocalAppAlias(_0x5d0dcf,_0x66f15f))return console[_0x2c7440(0x1c3)]('Key\x20already\x20absent:\x20'+_0x186138+(_0x5a79b2===_0x2c7440(0x19c)?'\x20(global)':'')),{'ok':!![],'data':{'key':_0x186138,'scope':_0x5a79b2,'changed':![]}};return console[_0x2c7440(0x1c3)](_0x2c7440(0x192)+_0x186138+'`'+(_0x5a79b2===_0x2c7440(0x19c)?_0x2c7440(0x1c8):'')),writeScopedConfig(_0x5d0dcf,_0x13bd39),{'ok':!![],'data':{'key':_0x186138,'scope':_0x5a79b2,'changed':!![]}};}if(_0x5d0dcf[_0x186138]===undefined)return console[_0x2c7440(0x1c3)]('Key\x20already\x20absent:\x20'+_0x186138+(_0x5a79b2===_0x2c7440(0x19c)?_0x2c7440(0x1c8):'')),{'ok':!![],'data':{'key':_0x186138,'scope':_0x5a79b2,'changed':![]}};return delete _0x5d0dcf[_0x186138],console[_0x2c7440(0x1c3)](_0x2c7440(0x192)+_0x186138+'`'+(_0x5a79b2===_0x2c7440(0x19c)?_0x2c7440(0x1c8):'')),writeScopedConfig(_0x5d0dcf,_0x13bd39),{'ok':!![],'data':{'key':_0x186138,'scope':_0x5a79b2,'changed':!![]}};}};export const configDefinitions=[configInitDefinition,listDef,getDef,setDef,deleteDef];
1
+ const a22_0x5e2b02=a22_0x2d1c;(function(_0x497473,_0x47a00c){const _0x42d426=a22_0x2d1c,_0x1bdb22=_0x497473();while(!![]){try{const _0x370d6e=parseInt(_0x42d426(0xce))/0x1*(-parseInt(_0x42d426(0xdf))/0x2)+parseInt(_0x42d426(0xb9))/0x3+-parseInt(_0x42d426(0xb5))/0x4+parseInt(_0x42d426(0xa7))/0x5+-parseInt(_0x42d426(0xb0))/0x6+parseInt(_0x42d426(0xab))/0x7+parseInt(_0x42d426(0xb8))/0x8*(parseInt(_0x42d426(0xe1))/0x9);if(_0x370d6e===_0x47a00c)break;else _0x1bdb22['push'](_0x1bdb22['shift']());}catch(_0xf44a84){_0x1bdb22['push'](_0x1bdb22['shift']());}}}(a22_0x4642,0x59848));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(_0x10c775){const _0x587426=a22_0x2d1c,_0x41b0be=_0x10c775[_0x587426(0xde)]('.');if(_0x41b0be['length']!==0x3||_0x41b0be[0x0]!==_0x587426(0xd7)||_0x41b0be[0x2]!=='appcode')return undefined;const _0x5048e4=_0x41b0be[0x1]?.[_0x587426(0xd2)]();return _0x5048e4?_0x5048e4:undefined;}function a22_0x2d1c(_0x46d19a,_0x2c8fce){_0x46d19a=_0x46d19a-0xa0;const _0x4642e9=a22_0x4642();let _0x2d1c7a=_0x4642e9[_0x46d19a];return _0x2d1c7a;}function parseAliasDeleteKey(_0x4c8634){const _0x3c4e92=a22_0x2d1c,_0x261877=_0x4c8634[_0x3c4e92(0xde)]('.');if(_0x261877['length']===0x2&&_0x261877[0x0]==='apps'){const _0x777f97=_0x261877[0x1]?.['trim']();return _0x777f97?{'alias':_0x777f97}:undefined;}if(_0x261877['length']===0x3&&_0x261877[0x0]===_0x3c4e92(0xd7)&&_0x261877[0x2]===_0x3c4e92(0xb2)){const _0x2c8097=_0x261877[0x1]?.['trim']();return _0x2c8097?{'alias':_0x2c8097,'field':_0x3c4e92(0xb2)}:undefined;}return undefined;}function setLocalAppAlias(_0xa534ae,_0x432115,_0x249e07){const _0x108b84=a22_0x2d1c,_0x41cd79=_0xa534ae[_0x108b84(0xd7)]&&typeof _0xa534ae[_0x108b84(0xd7)]==='object'&&!Array[_0x108b84(0xda)](_0xa534ae[_0x108b84(0xd7)])?_0xa534ae[_0x108b84(0xd7)]:{},_0x915a9f=_0x41cd79[_0x432115]&&typeof _0x41cd79[_0x432115]===_0x108b84(0xa9)&&!Array[_0x108b84(0xda)](_0x41cd79[_0x432115])?_0x41cd79[_0x432115]:{};_0x915a9f['appcode']=_0x249e07,_0x41cd79[_0x432115]=_0x915a9f,_0xa534ae[_0x108b84(0xd7)]=_0x41cd79;}function deleteLocalAppAlias(_0x4b48af,_0x284028){const _0x51488c=a22_0x2d1c;if(!_0x4b48af['apps']||typeof _0x4b48af[_0x51488c(0xd7)]!==_0x51488c(0xa9)||Array[_0x51488c(0xda)](_0x4b48af['apps']))return![];const _0x566570=_0x4b48af[_0x51488c(0xd7)],_0x4598ee=_0x566570[_0x284028[_0x51488c(0xaf)]];if(!_0x4598ee||typeof _0x4598ee!==_0x51488c(0xa9)||Array[_0x51488c(0xda)](_0x4598ee))return![];if(!_0x284028[_0x51488c(0xd6)])return delete _0x566570[_0x284028[_0x51488c(0xaf)]],!![];if(!(_0x284028[_0x51488c(0xd6)]in _0x4598ee))return![];return delete _0x4598ee[_0x284028[_0x51488c(0xd6)]],Object[_0x51488c(0xd4)](_0x4598ee)[_0x51488c(0xc3)]===0x0&&delete _0x566570[_0x284028[_0x51488c(0xaf)]],!![];}const listDef={'service':a22_0x5e2b02(0xd3),'command':'list','description':a22_0x5e2b02(0xad),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x49ac24){const _0x29bd49=a22_0x5e2b02,{buildConfigFromFlags:_0x352a79}=await import(_0x29bd49(0xe4)),_0x170642=_0x352a79({}),_0x4c3cc9=redactCliConfigCredentials(_0x170642[_0x29bd49(0xa0)]),_0x3f54cb=getProjectConfigPath(),_0x3e9f33=resolveWriteConfigPath(_0x29bd49(0xcf));if(_0x49ac24[_0x29bd49(0xb3)]===_0x29bd49(0xcd))return{'ok':!![],'message':_0x29bd49(0xd9)+(JSON['stringify'](_0x4c3cc9,null,0x2)+'\x0a\x0a')+_0x29bd49(0xca)+(_0x29bd49(0xbe)+(_0x3f54cb??'(none)')+'\x0a')+('\x20\x20global:\x20\x20'+_0x3e9f33)};return{'ok':!![],'data':{'effective':_0x4c3cc9,'configFiles':{'project':_0x3f54cb??null,'global':_0x3e9f33}}};}},getDef={'service':a22_0x5e2b02(0xd3),'command':a22_0x5e2b02(0xc5),'description':a22_0x5e2b02(0xa4),'risk':a22_0x5e2b02(0xc2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x5e2b02(0xc7),'description':a22_0x5e2b02(0xd8),'required':!![]}],'flags':[],async 'execute'(_0x445485){const _0x4f6486=a22_0x5e2b02,_0x2a4736=_0x445485[_0x4f6486(0xbc)][0x0];if(!_0x2a4736)throw CliErrors[_0x4f6486(0xa6)](_0x4f6486(0xb1),_0x4f6486(0xcb)+CLI_BIN_NAME+_0x4f6486(0xc8));const {buildConfigFromFlags:_0xb04125}=await import(_0x4f6486(0xe4)),{raw:_0x4be483}=_0xb04125({});if(_0x2a4736[_0x4f6486(0xae)]('.')){const _0xeee383=_0x2a4736[_0x4f6486(0xde)]('.');let _0x408301=_0x4be483;for(const _0x4aa5b7 of _0xeee383){if(_0x408301==null||typeof _0x408301!==_0x4f6486(0xa9))throw CliErrors[_0x4f6486(0xa6)](_0x4f6486(0xaa)+_0x2a4736);_0x408301=_0x408301[_0x4aa5b7];}if(_0x408301===undefined)throw CliErrors['validation'](_0x4f6486(0xaa)+_0x2a4736);const _0x939b97=redactCliConfigValue(_0x2a4736,_0x408301);return console[_0x4f6486(0xd1)](typeof _0x939b97===_0x4f6486(0xa9)?JSON[_0x4f6486(0xbd)](_0x939b97,null,0x2):String(_0x939b97)),{'ok':!![]};}const _0x3d824f=_0x4be483[_0x2a4736];if(_0x3d824f===undefined)throw CliErrors[_0x4f6486(0xa6)](_0x4f6486(0xaa)+_0x2a4736);const _0xcd2249=redactCliConfigValue(_0x2a4736,_0x3d824f);return console[_0x4f6486(0xd1)](typeof _0xcd2249===_0x4f6486(0xa9)?JSON[_0x4f6486(0xbd)](_0xcd2249,null,0x2):String(_0xcd2249)),{'ok':!![]};}},setDef={'service':a22_0x5e2b02(0xd3),'command':'set','description':'Set\x20a\x20configuration\x20value','risk':a22_0x5e2b02(0xa5),'confirmationDescription':a22_0x5e2b02(0xa2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x5e2b02(0xa3),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x2a869d){const _0x14eb07=a22_0x5e2b02,_0x57e536=_0x2a869d[_0x14eb07(0xbc)][0x0],_0x43bbe7=_0x2a869d[_0x14eb07(0xbc)][0x1];if(!_0x57e536||_0x43bbe7===undefined)throw CliErrors[_0x14eb07(0xa6)]('Missing\x20key\x20or\x20value.',_0x14eb07(0xcb)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x57e536]&&!ENUM_KEYS[_0x57e536][_0x14eb07(0xae)](_0x43bbe7))throw CliErrors[_0x14eb07(0xa6)](_0x14eb07(0xd5)+_0x57e536+_0x14eb07(0xba)+ENUM_KEYS[_0x57e536][_0x14eb07(0xc0)](',\x20'));if(isCliProtectedConfigKey(_0x57e536))throw CliErrors[_0x14eb07(0xa6)]('\x22'+_0x57e536+_0x14eb07(0xc4));if(_0x57e536==='pageSize'){const _0x2c5bfd=Number(_0x43bbe7);if(isNaN(_0x2c5bfd)||_0x2c5bfd<=0x0)throw CliErrors[_0x14eb07(0xa6)](_0x14eb07(0xb7));}const _0x5b7253=resolveWriteScope({'explicitGlobal':_0x2a869d['bool'](_0x14eb07(0xcf)),'policy':'project-or-global-explicit'}),_0xeffac0=toScopeFlags(_0x5b7253),_0x192717=readScopedConfig(_0xeffac0),_0x3bfd5d=parseAliasAppcodeSetKey(_0x57e536);if(!_0x3bfd5d&&!isTopLevelConfigKey(_0x57e536))throw CliErrors[_0x14eb07(0xa6)](_0x14eb07(0xb4)+_0x57e536+_0x14eb07(0xe0),_0x14eb07(0xc9)+getTopLevelConfigKeySummary()+_0x14eb07(0xe3));if(_0x3bfd5d)setLocalAppAlias(_0x192717,_0x3bfd5d,_0x43bbe7);else{if(_0x57e536==='locale'){const _0x41b107=normalizeLocale(_0x43bbe7);if(!_0x41b107)throw CliErrors[_0x14eb07(0xa6)]('Invalid\x20locale\x20value.',_0x14eb07(0xcc));_0x192717['locale']=_0x41b107;}else _0x192717[_0x57e536]=_0x57e536===_0x14eb07(0xd0)?Number(_0x43bbe7):DOMAIN_CONFIG_FIELDS[_0x14eb07(0xae)](_0x57e536)?normalizeDomainOrigin(_0x57e536,_0x43bbe7):_0x43bbe7;}const _0x832f7a=_0x57e536===_0x14eb07(0xe2)?maskCliAccessKey(_0x43bbe7):!_0x3bfd5d&&_0x57e536===_0x14eb07(0xa8)?String(_0x192717[_0x14eb07(0xa8)]):_0x43bbe7;return console[_0x14eb07(0xd1)](_0x14eb07(0xdd)+_0x57e536+_0x14eb07(0xdc)+_0x832f7a+'\x22'+(_0x5b7253===_0x14eb07(0xcf)?_0x14eb07(0xbf):'')),writeScopedConfig(_0x192717,_0xeffac0),{'ok':!![]};}},deleteDef={'service':a22_0x5e2b02(0xd3),'command':a22_0x5e2b02(0xb6),'description':'Delete\x20a\x20configuration\x20value','risk':a22_0x5e2b02(0xa5),'confirmationDescription':a22_0x5e2b02(0xac),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x5e2b02(0xc7),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x349293){const _0x222031=a22_0x5e2b02,_0x34203b=_0x349293[_0x222031(0xbc)][0x0];if(!_0x34203b)throw CliErrors[_0x222031(0xa6)](_0x222031(0xb1),_0x222031(0xcb)+CLI_BIN_NAME+_0x222031(0xbb));if(isCliProtectedConfigKey(_0x34203b))throw CliErrors[_0x222031(0xa6)]('\x22'+_0x34203b+'\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.');const _0x21bd69=resolveWriteScope({'explicitGlobal':_0x349293[_0x222031(0xa1)](_0x222031(0xcf)),'policy':_0x222031(0xdb)}),_0x1d60ca=toScopeFlags(_0x21bd69),_0x41acb4=readScopedConfig(_0x1d60ca),_0x465fa2=parseAliasDeleteKey(_0x34203b);if(_0x465fa2){if(!deleteLocalAppAlias(_0x41acb4,_0x465fa2))return console['log'](_0x222031(0xc1)+_0x34203b+(_0x21bd69===_0x222031(0xcf)?_0x222031(0xbf):'')),{'ok':!![],'data':{'key':_0x34203b,'scope':_0x21bd69,'changed':![]}};return console[_0x222031(0xd1)](_0x222031(0xc6)+_0x34203b+'`'+(_0x21bd69===_0x222031(0xcf)?_0x222031(0xbf):'')),writeScopedConfig(_0x41acb4,_0x1d60ca),{'ok':!![],'data':{'key':_0x34203b,'scope':_0x21bd69,'changed':!![]}};}if(_0x41acb4[_0x34203b]===undefined)return console[_0x222031(0xd1)]('Key\x20already\x20absent:\x20'+_0x34203b+(_0x21bd69==='global'?_0x222031(0xbf):'')),{'ok':!![],'data':{'key':_0x34203b,'scope':_0x21bd69,'changed':![]}};return delete _0x41acb4[_0x34203b],console[_0x222031(0xd1)]('Deleted\x20`'+_0x34203b+'`'+(_0x21bd69===_0x222031(0xcf)?_0x222031(0xbf):'')),writeScopedConfig(_0x41acb4,_0x1d60ca),{'ok':!![],'data':{'key':_0x34203b,'scope':_0x21bd69,'changed':!![]}};}};export const configDefinitions=[configInitDefinition,listDef,getDef,setDef,deleteDef];function a22_0x4642(){const _0x206c2b=['509500xGBwqz','delete','pageSize\x20must\x20be\x20a\x20positive\x20number','16VsBcsV','1651521lesRWY','\x22.\x20Allowed:\x20','\x20config\x20delete\x20<key>\x20[--global]','args','stringify','\x20\x20project:\x20','\x20(global)','join','Key\x20already\x20absent:\x20','read','length','\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.','get','Deleted\x20`','key','\x20config\x20get\x20<key>','Settable\x20keys:\x20','Config\x20files:\x0a','Usage:\x20','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','pretty','102317tnmXgQ','global','pageSize','log','trim','config','keys','Invalid\x20value\x20for\x20\x22','field','apps','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','isArray','project-or-global-explicit','`\x20=\x20\x22','Set\x20`','split','12oBdIni','\x22\x20is\x20not\x20settable.','1535148ZHwovb','accessKey',';\x20apps.<alias>.appcode','../../context.js','raw','bool','Changes\x20Lovrabet\x20CLI\x20configuration.\x20Later\x20commands\x20may\x20use\x20a\x20different\x20app,\x20environment,\x20or\x20output\x20behavior.','value','Get\x20a\x20config\x20value','write','validation','545195AgWKUC','locale','object','Key\x20not\x20found:\x20','1864590ujVVXh','Deletes\x20a\x20Lovrabet\x20CLI\x20config\x20key.\x20Later\x20commands\x20will\x20fall\x20back\x20to\x20another\x20config\x20layer\x20or\x20the\x20default.','List\x20current\x20config','includes','alias','954714ieOSHd','Missing\x20key\x20argument.','appcode','format','Top-level\x20key\x20\x22'];a22_0x4642=function(){return _0x206c2b;};return a22_0x4642();}
@@ -1 +1 @@
1
- const a23_0x332b65=a23_0x3e42;(function(_0x51a7c3,_0xc491d3){const _0xaca7ea=a23_0x3e42,_0x1b9898=_0x51a7c3();while(!![]){try{const _0x2072cc=-parseInt(_0xaca7ea(0x1f8))/0x1+parseInt(_0xaca7ea(0x201))/0x2+-parseInt(_0xaca7ea(0x215))/0x3+-parseInt(_0xaca7ea(0x200))/0x4*(-parseInt(_0xaca7ea(0x20d))/0x5)+parseInt(_0xaca7ea(0x20b))/0x6+parseInt(_0xaca7ea(0x1f6))/0x7+-parseInt(_0xaca7ea(0x219))/0x8;if(_0x2072cc===_0xc491d3)break;else _0x1b9898['push'](_0x1b9898['shift']());}catch(_0x2cd374){_0x1b9898['push'](_0x1b9898['shift']());}}}(a23_0x2907,0x1c6af));import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';function a23_0x3e42(_0x1ab173,_0x16b001){_0x1ab173=_0x1ab173-0x1f1;const _0x290739=a23_0x2907();let _0x3e42da=_0x290739[_0x1ab173];return _0x3e42da;}import{OFFICIAL_ROUTING_PROFILES}from'../../generated/official-routing.js';function a23_0x2907(){const _0x5347cf=['Official\x20Lovrabet\x20region:\x20','independent','name','Initialize\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','str','610173aOsTQo','domain-config','enterprise-v1','Region\x20\x22','1410296uzXWGj','Independent-deployment\x20Domain\x20JSON\x20file','length','Custom\x20Runtime\x20HTTPS\x20origin','runtime-domain','manifestDomains','ExitPromptError','Custom\x20SkillHub\x20HTTPS\x20origin','skill-domain','init','46977RIiEZJ','cancelled','44028UpKpRJ','Updates\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20AccessKey,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','domains','Custom\x20User\x20HTTPS\x20origin','Lovrabet\x20connection\x20configured\x20for\x20region:\x20','nonInteractive','Select\x20Lovrabet\x20region','Lovrabet\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','350076QuaARU','357614nUfIYR','keys','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','config','string','routing','join','Custom\x20platform\x20API\x20HTTPS\x20origin','api-domain','region','1077294zbjllF','Available\x20regions:\x20','10ahzCNz','validation','mode'];a23_0x2907=function(){return _0x5347cf;};return a23_0x2907();}const domainFlags=[{'name':a23_0x332b65(0x216),'type':a23_0x332b65(0x205),'description':a23_0x332b65(0x21a)},{'name':'user-domain','type':a23_0x332b65(0x205),'description':a23_0x332b65(0x1fb)},{'name':a23_0x332b65(0x209),'type':'string','description':a23_0x332b65(0x208)},{'name':a23_0x332b65(0x21d),'type':'string','description':a23_0x332b65(0x21c)},{'name':a23_0x332b65(0x1f4),'type':a23_0x332b65(0x205),'description':a23_0x332b65(0x1f3)}];export const configInitFlags=[{'name':a23_0x332b65(0x20a),'type':a23_0x332b65(0x205),'description':a23_0x332b65(0x210)+ENABLED_LOVRABET_REGION_VALUES[a23_0x332b65(0x207)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},...domainFlags];async function resolveRegion(_0x36c7ff){const _0x170cb7=a23_0x332b65,_0x518e2d=_0x36c7ff[_0x170cb7(0x214)](_0x170cb7(0x20a));if(_0x518e2d){if(!isEnabledLovrabetRegion(_0x518e2d))throw CliErrors[_0x170cb7(0x20e)](_0x170cb7(0x218)+_0x518e2d+'\x22\x20is\x20not\x20currently\x20available.',_0x170cb7(0x20c)+ENABLED_LOVRABET_REGION_VALUES[_0x170cb7(0x207)](',\x20'));return _0x518e2d;}if(_0x36c7ff[_0x170cb7(0x1fd)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x170cb7(0x1fe),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES['map'](_0x425901=>({'name':OFFICIAL_ROUTING_PROFILES[_0x425901]['label']+'\x20('+_0x425901+')','value':_0x425901}))});}catch(_0x3ea071){if(_0x3ea071?.[_0x170cb7(0x212)]===_0x170cb7(0x1f2))throw CliErrors[_0x170cb7(0x1f7)]();throw _0x3ea071;}}export async function executeConfigInit(_0x4ca6cf){const _0x17deb8=a23_0x332b65,_0x42abf1=resolveDomainConfigInput(_0x4ca6cf),_0x25d6fd=_0x42abf1[_0x17deb8(0x1fa)],_0x66bc36=Object[_0x17deb8(0x202)](_0x25d6fd)[_0x17deb8(0x21b)]>0x0;if(_0x66bc36&&_0x4ca6cf['str'](_0x17deb8(0x20a)))throw CliErrors[_0x17deb8(0x20e)](_0x17deb8(0x203));const _0xf5076b={'global':!![]},_0x24085e=readScopedConfig(_0xf5076b);for(const _0x5d9805 of DOMAIN_CONFIG_FIELDS)delete _0x24085e[_0x5d9805];for(const _0x3a6b8d of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x24085e[_0x3a6b8d];delete _0x24085e[_0x17deb8(0x206)];let _0x4559f9=null;if(_0x66bc36)delete _0x24085e['region'],_0x42abf1[_0x17deb8(0x20f)]===_0x17deb8(0x217)?_0x24085e[_0x17deb8(0x206)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x42abf1['manifestDomains']}:Object['assign'](_0x24085e,_0x25d6fd);else{_0x4559f9=await resolveRegion(_0x4ca6cf);if(_0x4559f9===DEFAULT_LOVRABET_REGION)delete _0x24085e[_0x17deb8(0x20a)];else _0x24085e['region']=_0x4559f9;}return writeScopedConfig(_0x24085e,_0xf5076b),{'ok':!![],'message':_0x66bc36?_0x17deb8(0x1ff)+Object[_0x17deb8(0x202)](_0x42abf1['mode']===_0x17deb8(0x217)?_0x42abf1[_0x17deb8(0x1f1)]:_0x25d6fd)['join'](',\x20')+'.':_0x17deb8(0x1fc)+_0x4559f9+'.','data':{'mode':_0x66bc36?_0x17deb8(0x211):'official','protocol':_0x42abf1['mode']==='enterprise-v1'?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x4559f9,'domains':_0x25d6fd}};}export const configInitDefinition={'service':a23_0x332b65(0x204),'command':a23_0x332b65(0x1f5),'description':a23_0x332b65(0x213),'risk':'write','confirmationDescription':a23_0x332b65(0x1f9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
1
+ const a23_0x393d08=a23_0xed2f;(function(_0xe2498c,_0x4a2b83){const _0x284ab9=a23_0xed2f,_0x2041b2=_0xe2498c();while(!![]){try{const _0xea5dae=-parseInt(_0x284ab9(0xe4))/0x1*(-parseInt(_0x284ab9(0xea))/0x2)+parseInt(_0x284ab9(0xeb))/0x3*(parseInt(_0x284ab9(0xf0))/0x4)+parseInt(_0x284ab9(0xe0))/0x5*(-parseInt(_0x284ab9(0xf6))/0x6)+-parseInt(_0x284ab9(0x108))/0x7+parseInt(_0x284ab9(0xdf))/0x8+parseInt(_0x284ab9(0x104))/0x9+-parseInt(_0x284ab9(0xf3))/0xa;if(_0xea5dae===_0x4a2b83)break;else _0x2041b2['push'](_0x2041b2['shift']());}catch(_0x242da6){_0x2041b2['push'](_0x2041b2['shift']());}}}(a23_0x4031,0x1d909));import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';function a23_0x4031(){const _0x5b5064=['keys','Initialize\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','Custom\x20User\x20HTTPS\x20origin','ExitPromptError','302560QfdsFK','join','independent','3266890bGBBjF','enterprise-v1','length','85872JAcMww','string','region','Updates\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20AccessKey,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','validation','label','str','name','skill-domain','map','Independent-deployment\x20Domain\x20JSON\x20file','assign','runtime-domain','manifestDomains','1524987JkGNMi','user-domain','Custom\x20platform\x20API\x20HTTPS\x20origin','domain-config','700539vUtmbj','1524816KXfwpe','10pHUpCb','official','mode','nonInteractive','2102BrnLQD','routing','init','config','Lovrabet\x20connection\x20configured\x20for\x20region:\x20','Available\x20regions:\x20','62AuQGRr','6LycPWZ'];a23_0x4031=function(){return _0x5b5064;};return a23_0x4031();}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_0x393d08(0x107),'type':'string','description':a23_0x393d08(0x100)},{'name':a23_0x393d08(0x105),'type':a23_0x393d08(0xf7),'description':a23_0x393d08(0xee)},{'name':'api-domain','type':a23_0x393d08(0xf7),'description':a23_0x393d08(0x106)},{'name':a23_0x393d08(0x102),'type':'string','description':'Custom\x20Runtime\x20HTTPS\x20origin'},{'name':a23_0x393d08(0xfe),'type':a23_0x393d08(0xf7),'description':'Custom\x20SkillHub\x20HTTPS\x20origin'}];export const configInitFlags=[{'name':a23_0x393d08(0xf8),'type':'string','description':'Official\x20Lovrabet\x20region:\x20'+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},...domainFlags];async function resolveRegion(_0x26ef1e){const _0x2155b2=a23_0x393d08,_0xbda3dc=_0x26ef1e['str'](_0x2155b2(0xf8));if(_0xbda3dc){if(!isEnabledLovrabetRegion(_0xbda3dc))throw CliErrors[_0x2155b2(0xfa)]('Region\x20\x22'+_0xbda3dc+'\x22\x20is\x20not\x20currently\x20available.',_0x2155b2(0xe9)+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20'));return _0xbda3dc;}if(_0x26ef1e[_0x2155b2(0xe3)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':'Select\x20Lovrabet\x20region','default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x2155b2(0xff)](_0xe709c6=>({'name':OFFICIAL_ROUTING_PROFILES[_0xe709c6][_0x2155b2(0xfb)]+'\x20('+_0xe709c6+')','value':_0xe709c6}))});}catch(_0x24e502){if(_0x24e502?.[_0x2155b2(0xfd)]===_0x2155b2(0xef))throw CliErrors['cancelled']();throw _0x24e502;}}function a23_0xed2f(_0x14d337,_0x4b16b1){_0x14d337=_0x14d337-0xdf;const _0x403124=a23_0x4031();let _0xed2ff9=_0x403124[_0x14d337];return _0xed2ff9;}export async function executeConfigInit(_0x101355){const _0x240291=a23_0x393d08,_0x30ab19=resolveDomainConfigInput(_0x101355),_0x4be29e=_0x30ab19['domains'],_0x2b561a=Object[_0x240291(0xec)](_0x4be29e)[_0x240291(0xf5)]>0x0;if(_0x2b561a&&_0x101355[_0x240291(0xfc)](_0x240291(0xf8)))throw CliErrors[_0x240291(0xfa)]('Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.');const _0x7f842d={'global':!![]},_0x44dd27=readScopedConfig(_0x7f842d);for(const _0x1793c7 of DOMAIN_CONFIG_FIELDS)delete _0x44dd27[_0x1793c7];for(const _0x3c7e4d of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x44dd27[_0x3c7e4d];delete _0x44dd27[_0x240291(0xe5)];let _0x4b9213=null;if(_0x2b561a)delete _0x44dd27[_0x240291(0xf8)],_0x30ab19['mode']===_0x240291(0xf4)?_0x44dd27['routing']={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x30ab19[_0x240291(0x103)]}:Object[_0x240291(0x101)](_0x44dd27,_0x4be29e);else{_0x4b9213=await resolveRegion(_0x101355);if(_0x4b9213===DEFAULT_LOVRABET_REGION)delete _0x44dd27[_0x240291(0xf8)];else _0x44dd27[_0x240291(0xf8)]=_0x4b9213;}return writeScopedConfig(_0x44dd27,_0x7f842d),{'ok':!![],'message':_0x2b561a?'Lovrabet\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20'+Object['keys'](_0x30ab19[_0x240291(0xe2)]===_0x240291(0xf4)?_0x30ab19['manifestDomains']:_0x4be29e)[_0x240291(0xf1)](',\x20')+'.':_0x240291(0xe8)+_0x4b9213+'.','data':{'mode':_0x2b561a?_0x240291(0xf2):_0x240291(0xe1),'protocol':_0x30ab19[_0x240291(0xe2)]==='enterprise-v1'?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x4b9213,'domains':_0x4be29e}};}export const configInitDefinition={'service':a23_0x393d08(0xe7),'command':a23_0x393d08(0xe6),'description':a23_0x393d08(0xed),'risk':'write','confirmationDescription':a23_0x393d08(0xf9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
@@ -1 +1 @@
1
- (function(_0x2f5d7e,_0x3d3c25){var _0x20e76b=a24_0x202d,_0x16430b=_0x2f5d7e();while(!![]){try{var _0x344e38=-parseInt(_0x20e76b(0x148))/0x1+parseInt(_0x20e76b(0x147))/0x2*(parseInt(_0x20e76b(0x145))/0x3)+parseInt(_0x20e76b(0x149))/0x4+-parseInt(_0x20e76b(0x143))/0x5+parseInt(_0x20e76b(0x14a))/0x6*(-parseInt(_0x20e76b(0x146))/0x7)+-parseInt(_0x20e76b(0x142))/0x8*(-parseInt(_0x20e76b(0x141))/0x9)+parseInt(_0x20e76b(0x144))/0xa;if(_0x344e38===_0x3d3c25)break;else _0x16430b['push'](_0x16430b['shift']());}catch(_0x13187b){_0x16430b['push'](_0x16430b['shift']());}}}(a24_0x1fbd,0xc3f96));import{CLI_BIN_NAME}from'../../constant/cli.js';function a24_0x1fbd(){var _0x417a22=['13848CktoiV','6707180TmHQYL','17811980tRlXwH','3YQzIBI','3879358phxXwf','2349584NjVkng','1474181csriwI','4291432mMNEyd','6eCZJfJ','747MWVRdZ'];a24_0x1fbd=function(){return _0x417a22;};return a24_0x1fbd();}function a24_0x202d(_0x1d0836,_0x4bf1f4){_0x1d0836=_0x1d0836-0x141;var _0x1fbd4b=a24_0x1fbd();var _0x202d0c=_0x1fbd4b[_0x1d0836];return _0x202d0c;}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(_0xea39a4,_0x397da5){var _0x36c170=a24_0x2d7c,_0x36a9eb=_0xea39a4();while(!![]){try{var _0x2a1e01=parseInt(_0x36c170(0xda))/0x1*(-parseInt(_0x36c170(0xdf))/0x2)+-parseInt(_0x36c170(0xe1))/0x3*(-parseInt(_0x36c170(0xd9))/0x4)+-parseInt(_0x36c170(0xe4))/0x5*(parseInt(_0x36c170(0xdb))/0x6)+parseInt(_0x36c170(0xe3))/0x7*(-parseInt(_0x36c170(0xe2))/0x8)+parseInt(_0x36c170(0xdd))/0x9+-parseInt(_0x36c170(0xde))/0xa*(-parseInt(_0x36c170(0xe0))/0xb)+parseInt(_0x36c170(0xdc))/0xc;if(_0x2a1e01===_0x397da5)break;else _0x36a9eb['push'](_0x36a9eb['shift']());}catch(_0x485a9f){_0x36a9eb['push'](_0x36a9eb['shift']());}}}(a24_0x181e,0x28c70));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';function a24_0x181e(){var _0x21d4bf=['167995lobFPn','7652pLQRap','1tLjTgO','54oYphok','1421544LvdQrY','2960406ewzKFh','30zMnnPz','435306liTUtc','423907qFMgWT','324dPQqgY','3352qkuRXR','1379CqLHNM'];a24_0x181e=function(){return _0x21d4bf;};return a24_0x181e();}function a24_0x2d7c(_0x2fa29a,_0x1f46c9){_0x2fa29a=_0x2fa29a-0xd9;var _0x181eee=a24_0x181e();var _0x2d7c7f=_0x181eee[_0x2fa29a];return _0x2d7c7f;}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
- function a25_0x2a36(){const _0x125bc0=['\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\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.','getOne','body','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\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}}','\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}}','4RFFzCZ','paramsRequired','Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','\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]','length','\x20\x20AGGREGATE\x20TYPES','map','\x20on\x20dataset\x20','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\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\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\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged','update','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','\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}','operation','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','Update\x20an\x20existing\x20data\x20record','batchCreate','build','3015LcatsJ','\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}','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','Preview:\x20data\x20','4051506SVuZsG','2343ZqJMtg','11320008rknYAf','/api/{appCode}/','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\x20\x20PARAMS\x20STRUCTURE','description','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\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\x20PAGINATION','write','helpExtra','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','data\x20','132CvFzWu','\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','\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]}}','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL','create','confirmationDescription','code','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','\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}','\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}','join','aggregate','str','filter','data','\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}}','10564701bmhJkO','delete','1202JspAaK','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','1635931fcwfzv','\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}}]}','760566VtPzfO','\x20\x20LOGICAL\x20COMBINATORS','Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','Create\x20one\x20record\x20in\x20the\x20dataset','read','Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','command','Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','\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}}]}','\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}]','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','params','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','high-risk-write','5hChBsw','\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only','\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}}','dryRun','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','\x20\x20\x20\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}]','now','35800ezeWYm','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}'];a25_0x2a36=function(){return _0x125bc0;};return a25_0x2a36();}const a25_0x18905a=a25_0x57ed;(function(_0x18d6dd,_0x567d46){const _0x19e5ba=a25_0x57ed,_0x391b68=_0x18d6dd();while(!![]){try{const _0x1641bb=-parseInt(_0x19e5ba(0x14d))/0x1*(parseInt(_0x19e5ba(0x16e))/0x2)+parseInt(_0x19e5ba(0x172))/0x3*(parseInt(_0x19e5ba(0x194))/0x4)+-parseInt(_0x19e5ba(0x184))/0x5*(parseInt(_0x19e5ba(0x14c))/0x6)+-parseInt(_0x19e5ba(0x16c))/0x7+parseInt(_0x19e5ba(0x14e))/0x8+parseInt(_0x19e5ba(0x147))/0x9*(parseInt(_0x19e5ba(0x18b))/0xa)+parseInt(_0x19e5ba(0x170))/0xb*(parseInt(_0x19e5ba(0x15b))/0xc);if(_0x1641bb===_0x567d46)break;else _0x391b68['push'](_0x391b68['shift']());}catch(_0x5c7b57){_0x391b68['push'](_0x391b68['shift']());}}}(a25_0x2a36,0xde70d));import{executeData}from'../../core/sdk-client.js';function a25_0x57ed(_0x4a974e,_0x45c20e){_0x4a974e=_0x4a974e-0x139;const _0x2a366e=a25_0x2a36();let _0x57edfd=_0x2a366e[_0x4a974e];return _0x57edfd;}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_0x18905a(0x169),'operation':a25_0x18905a(0x169),'risk':'read','paramsRequired':![],'description':a25_0x18905a(0x175),'paramsHint':a25_0x18905a(0x16f)+'Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':['\x20\x20WHERE\x20OPERATORS',a25_0x18905a(0x192),a25_0x18905a(0x18c),a25_0x18905a(0x188),'\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\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}',a25_0x18905a(0x16b),a25_0x18905a(0x15d),'\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}}',a25_0x18905a(0x186),'\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','',a25_0x18905a(0x173),a25_0x18905a(0x17e),a25_0x18905a(0x171),'',a25_0x18905a(0x15e),a25_0x18905a(0x182),a25_0x18905a(0x197),a25_0x18905a(0x17f),a25_0x18905a(0x139),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a25_0x18905a(0x156),a25_0x18905a(0x163),'\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.',a25_0x18905a(0x13d),a25_0x18905a(0x13f),a25_0x18905a(0x13b),'\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',a25_0x18905a(0x18e)]['join']('\x0a')},{'command':a25_0x18905a(0x18f),'operation':a25_0x18905a(0x18f),'risk':'read','paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a25_0x18905a(0x154)},{'command':a25_0x18905a(0x160),'operation':'create','risk':a25_0x18905a(0x157),'paramsRequired':!![],'description':a25_0x18905a(0x177),'confirmationDescription':a25_0x18905a(0x140),'paramsHint':a25_0x18905a(0x14a)},{'command':'batchCreate','operation':a25_0x18905a(0x145),'risk':a25_0x18905a(0x157),'paramsRequired':!![],'description':'Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','confirmationDescription':a25_0x18905a(0x17b),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':a25_0x18905a(0x13e),'operation':'update','risk':a25_0x18905a(0x157),'paramsRequired':!![],'description':a25_0x18905a(0x144),'confirmationDescription':a25_0x18905a(0x196),'paramsHint':a25_0x18905a(0x149)+a25_0x18905a(0x150)},{'command':a25_0x18905a(0x16d),'operation':'delete','risk':a25_0x18905a(0x183),'paramsRequired':!![],'description':a25_0x18905a(0x179),'confirmationDescription':a25_0x18905a(0x174),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a25_0x18905a(0x167),'operation':a25_0x18905a(0x167),'risk':a25_0x18905a(0x178),'paramsRequired':![],'description':a25_0x18905a(0x180),'paramsHint':a25_0x18905a(0x191)+'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_0x18905a(0x199),a25_0x18905a(0x141),a25_0x18905a(0x148),'\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}',a25_0x18905a(0x155),a25_0x18905a(0x164),'\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}',a25_0x18905a(0x165),'',a25_0x18905a(0x151),a25_0x18905a(0x13a),a25_0x18905a(0x176),a25_0x18905a(0x143),a25_0x18905a(0x153),a25_0x18905a(0x193),a25_0x18905a(0x189),'','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY','\x20\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only',a25_0x18905a(0x17d),a25_0x18905a(0x17c),'','\x20\x20DATASET\x20BOUNDARY',a25_0x18905a(0x185),a25_0x18905a(0x15c),a25_0x18905a(0x15f),'\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','','\x20\x20EXAMPLES',a25_0x18905a(0x159),a25_0x18905a(0x18d),'','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\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_0x18905a(0x13c)][a25_0x18905a(0x166)]('\x0a')}];function makeDataCommand(_0xbea712){const _0x14e461=a25_0x18905a,_0x5bf0fb='data\x20'+_0xbea712['command'],_0x381c2b={'service':_0x14e461(0x16a),'command':_0xbea712[_0x14e461(0x17a)],'description':_0xbea712[_0x14e461(0x152)],'risk':_0xbea712['risk'],..._0xbea712[_0x14e461(0x161)]?{'confirmationDescription':_0xbea712[_0x14e461(0x161)]}:{},'helpExtra':_0xbea712[_0x14e461(0x158)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0xbea712['paramsHint']}],'validate':async _0x19e99c=>{const _0x5305fe=_0x14e461;_0xbea712[_0x5305fe(0x195)]&&requireAnyOf(_0x19e99c,[_0x5305fe(0x181)],_0x5bf0fb),_0xbea712['operation']===_0x5305fe(0x145)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x19e99c[_0x5305fe(0x168)]('params'))),_0xbea712[_0x5305fe(0x142)]===_0x5305fe(0x13e)&&parseUpdateIdsFromParams(parseJsonParams(_0x19e99c[_0x5305fe(0x168)](_0x5305fe(0x181)))??{});},async 'execute'(_0x3a35cf){const _0xc560b0=_0x14e461,_0x431c07=_0x3a35cf[_0xc560b0(0x168)](_0xc560b0(0x162)),_0x40e2f8=_0xbea712[_0xc560b0(0x142)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3a35cf[_0xc560b0(0x168)](_0xc560b0(0x181)))):parseJsonParams(_0x3a35cf[_0xc560b0(0x168)](_0xc560b0(0x181)))??{},_0x45fbc7=_0xbea712[_0xc560b0(0x142)]===_0xc560b0(0x13e)?parseUpdateIdsFromParams(_0x40e2f8):undefined,_0x438e61=_0x45fbc7?normalizeUpdateParamsForRuntime(_0x40e2f8,_0x45fbc7):_0x40e2f8,_0x25ce80=Date[_0xc560b0(0x18a)](),_0x177f5f=await executeData(_0x431c07,_0xbea712['operation'],_0x438e61),_0x5c0180=Date[_0xc560b0(0x18a)]()-_0x25ce80,_0x138f39=_0x45fbc7&&_0x45fbc7['length']>0x1?buildBatchUpdateResult(_0x45fbc7,_0x177f5f):_0x177f5f;return{'ok':!![],'data':{'result':_0x138f39,'elapsed':_0x5c0180},'message':_0xc560b0(0x15a)+_0xbea712[_0xc560b0(0x17a)]+'\x20completed\x20in\x20'+_0x5c0180+'ms'};}};return _0xbea712['risk']!==_0x14e461(0x178)&&(_0x381c2b[_0x14e461(0x187)]=async _0x46b21f=>{const _0x1f4f53=_0x14e461,_0x1b7c0b=_0x46b21f[_0x1f4f53(0x168)](_0x1f4f53(0x162)),_0x3123e9=_0xbea712[_0x1f4f53(0x142)]===_0x1f4f53(0x145)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x46b21f[_0x1f4f53(0x168)](_0x1f4f53(0x181)))):parseJsonParams(_0x46b21f[_0x1f4f53(0x168)](_0x1f4f53(0x181)))??{};let _0x2b475d=_0x3123e9;if(_0xbea712[_0x1f4f53(0x142)]===_0x1f4f53(0x13e)){const _0x2e6b7b=parseUpdateIdsFromParams(_0x3123e9);_0x2b475d=normalizeUpdateParamsForRuntime(_0x3123e9,_0x2e6b7b);}return dryRun('POST',_0x1f4f53(0x14f)+_0x1b7c0b+'/'+_0xbea712[_0x1f4f53(0x142)])[_0x1f4f53(0x190)](_0x2b475d)[_0x1f4f53(0x152)](_0x1f4f53(0x14b)+_0xbea712[_0x1f4f53(0x17a)]+_0x1f4f53(0x19b)+_0x1b7c0b)[_0x1f4f53(0x146)]();}),_0x381c2b;}export const dataDefinitions=specs[a25_0x18905a(0x19a)](makeDataCommand);function buildBatchUpdateResult(_0x24cf66,_0x480673){const _0x3b5170=a25_0x18905a;return{'operation':_0x3b5170(0x13e),'mode':'batch','ids':_0x24cf66,'total':_0x24cf66[_0x3b5170(0x198)],'result':_0x480673};}
1
+ const a25_0x403946=a25_0x486a;(function(_0x2fb71a,_0x112fda){const _0x1437d7=a25_0x486a,_0x3b24cf=_0x2fb71a();while(!![]){try{const _0x1b6bb2=parseInt(_0x1437d7(0x14b))/0x1*(-parseInt(_0x1437d7(0x139))/0x2)+-parseInt(_0x1437d7(0x17c))/0x3+parseInt(_0x1437d7(0x173))/0x4*(parseInt(_0x1437d7(0x18c))/0x5)+parseInt(_0x1437d7(0x13b))/0x6+parseInt(_0x1437d7(0x157))/0x7+-parseInt(_0x1437d7(0x153))/0x8*(-parseInt(_0x1437d7(0x163))/0x9)+-parseInt(_0x1437d7(0x15b))/0xa;if(_0x1b6bb2===_0x112fda)break;else _0x3b24cf['push'](_0x3b24cf['shift']());}catch(_0xb1ab75){_0x3b24cf['push'](_0x3b24cf['shift']());}}}(a25_0x455c,0x281aa));function a25_0x455c(){const _0x515052=['Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','Preview:\x20data\x20','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','filter','\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}','data','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\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','paramsHint','10177vENGwv','confirmationDescription','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\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','Update\x20an\x20existing\x20data\x20record','\x20on\x20dataset\x20','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','8oPYDhW','getOne','\x20\x20EXAMPLES','operation','2196509hRGdBr','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','code','3133480iwUTRe','\x20\x20DATASET\x20BOUNDARY','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','read','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY','\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}}]}','high-risk-write','38331faTHax','risk','build','batchCreate','\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}','Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\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]}}','\x20\x20\x20\x20Do\x20NOT\x20use\x20--where,\x20--select,\x20--order-by,\x20--current-page,\x20--page,\x20or\x20--page-size\x20as\x20CLI\x20flags.','\x20\x20\x20\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}}','\x20completed\x20in\x20','\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','length','\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','\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}]','4kGWiUz','\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}]','create','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','str','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\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}','command','\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','146364ghzmsA','update','body','\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}}','aggregate','\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}}','params','\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}','write','\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\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','delete','\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}}]}','helpExtra','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\x20\x20AGGREGATE\x20TYPES','78205kHfjmq','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','paramsRequired','data\x20','now','map','\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}}','Get\x20a\x20single\x20record\x20by\x20ID','\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}','description','6gMwAeb','\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}','1339476PLUBZv','dryRun','/api/{appCode}/','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','POST'];a25_0x455c=function(){return _0x515052;};return a25_0x455c();}import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a25_0x486a(_0x2d2a24,_0x53b65b){_0x2d2a24=_0x2d2a24-0x139;const _0x455ca5=a25_0x455c();let _0x486a2f=_0x455ca5[_0x2d2a24];return _0x486a2f;}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_0x403946(0x144),'operation':a25_0x403946(0x144),'risk':a25_0x403946(0x15e),'paramsRequired':![],'description':a25_0x403946(0x18a),'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+a25_0x403946(0x158),'helpExtra':['\x20\x20WHERE\x20OPERATORS','\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}}','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}',a25_0x403946(0x17f),'\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\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}',a25_0x403946(0x18e),a25_0x403946(0x16a),a25_0x403946(0x181),a25_0x403946(0x193),'\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','',a25_0x403946(0x15f),a25_0x403946(0x161),a25_0x403946(0x188),'',a25_0x403946(0x143),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)',a25_0x403946(0x185),a25_0x403946(0x172),a25_0x403946(0x159),a25_0x403946(0x169),'','\x20\x20PAGINATION','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.',a25_0x403946(0x16b),'\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged',a25_0x403946(0x13e),a25_0x403946(0x186),a25_0x403946(0x149),'\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.']['join']('\x0a')},{'command':a25_0x403946(0x154),'operation':a25_0x403946(0x154),'risk':'read','paramsRequired':!![],'description':a25_0x403946(0x194),'paramsHint':a25_0x403946(0x147)},{'command':a25_0x403946(0x175),'operation':a25_0x403946(0x175),'risk':a25_0x403946(0x184),'paramsRequired':!![],'description':'Create\x20one\x20record\x20in\x20the\x20dataset','confirmationDescription':'Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','paramsHint':'JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27'},{'command':a25_0x403946(0x166),'operation':'batchCreate','risk':'write','paramsRequired':!![],'description':a25_0x403946(0x168),'confirmationDescription':a25_0x403946(0x140),'paramsHint':a25_0x403946(0x148)},{'command':a25_0x403946(0x17d),'operation':a25_0x403946(0x17d),'risk':'write','paramsRequired':!![],'description':a25_0x403946(0x150),'confirmationDescription':'Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','paramsHint':a25_0x403946(0x152)+'Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27'},{'command':'delete','operation':a25_0x403946(0x187),'risk':a25_0x403946(0x162),'paramsRequired':!![],'description':'Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','confirmationDescription':'Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','paramsHint':a25_0x403946(0x147)},{'command':a25_0x403946(0x180),'operation':a25_0x403946(0x180),'risk':a25_0x403946(0x15e),'paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':a25_0x403946(0x14e)+a25_0x403946(0x18d),'helpExtra':[a25_0x403946(0x18b),a25_0x403946(0x142),a25_0x403946(0x167),a25_0x403946(0x13a),a25_0x403946(0x179),a25_0x403946(0x183),a25_0x403946(0x195),a25_0x403946(0x145),'','\x20\x20PARAMS\x20STRUCTURE','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a25_0x403946(0x178),a25_0x403946(0x16f),a25_0x403946(0x14d),a25_0x403946(0x16c),a25_0x403946(0x174),'',a25_0x403946(0x160),'\x20\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only',a25_0x403946(0x16e),'\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','',a25_0x403946(0x15c),'\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only','\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL',a25_0x403946(0x171),'',a25_0x403946(0x155),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a25_0x403946(0x14f),'',a25_0x403946(0x15d),a25_0x403946(0x17b),'',a25_0x403946(0x176)]['join']('\x0a')}];function makeDataCommand(_0x5b6726){const _0x1a95f4=a25_0x403946,_0x3c67b9=_0x1a95f4(0x190)+_0x5b6726[_0x1a95f4(0x17a)],_0x429cd7={'service':_0x1a95f4(0x146),'command':_0x5b6726[_0x1a95f4(0x17a)],'description':_0x5b6726[_0x1a95f4(0x196)],'risk':_0x5b6726[_0x1a95f4(0x164)],..._0x5b6726['confirmationDescription']?{'confirmationDescription':_0x5b6726[_0x1a95f4(0x14c)]}:{},'helpExtra':_0x5b6726[_0x1a95f4(0x189)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x5b6726[_0x1a95f4(0x14a)]}],'validate':async _0x1cf39d=>{const _0x181fa0=_0x1a95f4;_0x5b6726[_0x181fa0(0x18f)]&&requireAnyOf(_0x1cf39d,[_0x181fa0(0x182)],_0x3c67b9),_0x5b6726[_0x181fa0(0x156)]===_0x181fa0(0x166)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x1cf39d[_0x181fa0(0x177)](_0x181fa0(0x182)))),_0x5b6726[_0x181fa0(0x156)]===_0x181fa0(0x17d)&&parseUpdateIdsFromParams(parseJsonParams(_0x1cf39d[_0x181fa0(0x177)](_0x181fa0(0x182)))??{});},async 'execute'(_0x30968d){const _0x2e6d9b=_0x1a95f4,_0x27c1d5=_0x30968d[_0x2e6d9b(0x177)](_0x2e6d9b(0x15a)),_0x744a90=_0x5b6726[_0x2e6d9b(0x156)]===_0x2e6d9b(0x166)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x30968d[_0x2e6d9b(0x177)]('params'))):parseJsonParams(_0x30968d['str'](_0x2e6d9b(0x182)))??{},_0x4fbd54=_0x5b6726['operation']===_0x2e6d9b(0x17d)?parseUpdateIdsFromParams(_0x744a90):undefined,_0x59fa7d=_0x4fbd54?normalizeUpdateParamsForRuntime(_0x744a90,_0x4fbd54):_0x744a90,_0x1556d4=Date[_0x2e6d9b(0x191)](),_0x2e55ec=await executeData(_0x27c1d5,_0x5b6726['operation'],_0x59fa7d),_0xccb5b8=Date[_0x2e6d9b(0x191)]()-_0x1556d4,_0x5640c6=_0x4fbd54&&_0x4fbd54[_0x2e6d9b(0x170)]>0x1?buildBatchUpdateResult(_0x4fbd54,_0x2e55ec):_0x2e55ec;return{'ok':!![],'data':{'result':_0x5640c6,'elapsed':_0xccb5b8},'message':_0x2e6d9b(0x190)+_0x5b6726[_0x2e6d9b(0x17a)]+_0x2e6d9b(0x16d)+_0xccb5b8+'ms'};}};return _0x5b6726[_0x1a95f4(0x164)]!=='read'&&(_0x429cd7[_0x1a95f4(0x13c)]=async _0x3ab8a6=>{const _0x2ab544=_0x1a95f4,_0x506309=_0x3ab8a6[_0x2ab544(0x177)]('code'),_0x5757fb=_0x5b6726[_0x2ab544(0x156)]===_0x2ab544(0x166)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3ab8a6['str'](_0x2ab544(0x182)))):parseJsonParams(_0x3ab8a6[_0x2ab544(0x177)](_0x2ab544(0x182)))??{};let _0x4c057a=_0x5757fb;if(_0x5b6726['operation']===_0x2ab544(0x17d)){const _0xbc7fa4=parseUpdateIdsFromParams(_0x5757fb);_0x4c057a=normalizeUpdateParamsForRuntime(_0x5757fb,_0xbc7fa4);}return dryRun(_0x2ab544(0x13f),_0x2ab544(0x13d)+_0x506309+'/'+_0x5b6726[_0x2ab544(0x156)])[_0x2ab544(0x17e)](_0x4c057a)[_0x2ab544(0x196)](_0x2ab544(0x141)+_0x5b6726[_0x2ab544(0x17a)]+_0x2ab544(0x151)+_0x506309)[_0x2ab544(0x165)]();}),_0x429cd7;}export const dataDefinitions=specs[a25_0x403946(0x192)](makeDataCommand);function buildBatchUpdateResult(_0x2f8774,_0x10d003){const _0x435268=a25_0x403946;return{'operation':_0x435268(0x17d),'mode':'batch','ids':_0x2f8774,'total':_0x2f8774[_0x435268(0x170)],'result':_0x10d003};}
@@ -1 +1 @@
1
- const a26_0x15699f=a26_0xdab3;(function(_0x3a11e9,_0x5c3218){const _0x2137b8=a26_0xdab3,_0x504288=_0x3a11e9();while(!![]){try{const _0x1b72ae=parseInt(_0x2137b8(0x130))/0x1*(-parseInt(_0x2137b8(0x137))/0x2)+parseInt(_0x2137b8(0x141))/0x3+-parseInt(_0x2137b8(0x126))/0x4+-parseInt(_0x2137b8(0x131))/0x5*(-parseInt(_0x2137b8(0x122))/0x6)+-parseInt(_0x2137b8(0x14d))/0x7*(-parseInt(_0x2137b8(0x11c))/0x8)+-parseInt(_0x2137b8(0x13d))/0x9*(parseInt(_0x2137b8(0x113))/0xa)+parseInt(_0x2137b8(0x156))/0xb*(-parseInt(_0x2137b8(0x145))/0xc);if(_0x1b72ae===_0x5c3218)break;else _0x504288['push'](_0x504288['shift']());}catch(_0x31970d){_0x504288['push'](_0x504288['shift']());}}}(a26_0x3d0c,0x399d6));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x2cafef){const _0xa9421a=a26_0xdab3;if(_0x2cafef[_0xa9421a(0x138)])return null;const _0x4dd88e=Boolean(_0x2cafef['displayName']!==undefined||_0x2cafef[_0xa9421a(0x14a)]!==undefined);let _0x59f498={};if(!_0x4dd88e&&typeof _0x2cafef['extend']==='string')try{_0x59f498=JSON['parse'](_0x2cafef[_0xa9421a(0x121)]);}catch{}const _0x4f7e00=_0x4dd88e?_0x2cafef['name']:_0x2cafef['code'],_0xdecb26=_0x4dd88e?_0x2cafef['displayName']:_0x2cafef['name'],_0x2b1f36=_0x4dd88e?_0x2cafef[_0xa9421a(0x14a)]:_0x2cafef[_0xa9421a(0x118)]||_0x2cafef[_0xa9421a(0x152)],_0x14a5db=_0x4dd88e?_0x2cafef[_0xa9421a(0x12e)]===!![]:_0x59f498[_0xa9421a(0x12e)]===!![],_0x1a86d7=_0x4dd88e?_0x2cafef[_0xa9421a(0x14e)]===!![]:_0x59f498[_0xa9421a(0x14e)]===!![],_0x3c211e=_0x4dd88e?_0x2cafef[_0xa9421a(0x13b)]??null:_0x59f498[_0xa9421a(0x13b)]??null,_0x20c30e={'name':_0x4f7e00,'displayName':_0xdecb26||_0x4f7e00,'type':_0x2b1f36,'dbType':_0x2cafef['dbType'],'pk':_0x14a5db,'required':_0x1a86d7,'description':_0x2cafef[_0xa9421a(0x133)]||undefined};return Array['isArray'](_0x3c211e)&&_0x3c211e[_0xa9421a(0x11f)]>0x0&&(_0x20c30e[_0xa9421a(0x13b)]=_0x3c211e),_0x20c30e;}function parseJsonMaybe(_0x237ec3){const _0x4ac58f=a26_0xdab3;if(typeof _0x237ec3!==_0x4ac58f(0x139))return _0x237ec3;try{return JSON['parse'](_0x237ec3);}catch{return _0x237ec3;}}function normalizeOperationEntry(_0x18d58e,_0x579fee){const _0x3e7f94=a26_0xdab3;if(!_0x579fee||typeof _0x579fee!=='object')return null;if(!_0x579fee['method']||!_0x579fee[_0x3e7f94(0x12c)])return null;const _0x5e4d7f={'name':_0x18d58e,'method':_0x579fee[_0x3e7f94(0x132)],'path':_0x579fee[_0x3e7f94(0x12c)]};if(_0x579fee[_0x3e7f94(0x11d)])_0x5e4d7f[_0x3e7f94(0x11d)]=_0x579fee[_0x3e7f94(0x11d)];if(_0x579fee[_0x3e7f94(0x112)]!=null)_0x5e4d7f['requestBody']=parseJsonMaybe(_0x579fee['requestBody']);if(_0x579fee[_0x3e7f94(0x144)]!=null)_0x5e4d7f[_0x3e7f94(0x144)]=parseJsonMaybe(_0x579fee[_0x3e7f94(0x144)]);if(_0x579fee[_0x3e7f94(0x114)]!=null)_0x5e4d7f[_0x3e7f94(0x114)]=_0x579fee[_0x3e7f94(0x114)];if(_0x579fee[_0x3e7f94(0x127)]!=null)_0x5e4d7f[_0x3e7f94(0x127)]=_0x579fee['afterScriptId'];if(Array['isArray'](_0x579fee[_0x3e7f94(0x14b)]))_0x5e4d7f[_0x3e7f94(0x14b)]=_0x579fee[_0x3e7f94(0x14b)];if(Array[_0x3e7f94(0x155)](_0x579fee[_0x3e7f94(0x13c)]))_0x5e4d7f[_0x3e7f94(0x13c)]=_0x579fee['responseFields'];return _0x5e4d7f;}function summarizeDbtable(_0x5a19d3){const _0x29023f=a26_0xdab3,_0x558b26={},_0x206e46=[_0x29023f(0x11a),_0x29023f(0x13a),_0x29023f(0x13f),_0x29023f(0x146),'pkField',_0x29023f(0x111),_0x29023f(0x12f),_0x29023f(0x135),'updateTimeField',_0x29023f(0x143),_0x29023f(0x125),_0x29023f(0x116),_0x29023f(0x148),_0x29023f(0x11b),_0x29023f(0x149)];for(const _0x25807f of _0x206e46){if(_0x5a19d3[_0x25807f]!==undefined)_0x558b26[_0x25807f]=_0x5a19d3[_0x25807f];}return typeof _0x558b26[_0x29023f(0x111)]===_0x29023f(0x139)&&_0x558b26[_0x29023f(0x111)][_0x29023f(0x11f)]>0x0&&(_0x558b26[_0x29023f(0x123)]=_0x558b26[_0x29023f(0x111)]['split'](',')[_0x29023f(0x10f)](_0x2bf075=>_0x2bf075[_0x29023f(0x136)]())[_0x29023f(0x124)](Boolean)),_0x558b26;}function a26_0xdab3(_0x10f845,_0x17eb26){_0x10f845=_0x10f845-0x10f;const _0x3d0cf6=a26_0x3d0c();let _0xdab3c9=_0x3d0cf6[_0x10f845];return _0xdab3c9;}function normalizeRelatedPages(_0x84409d){const _0x26a552=a26_0xdab3;if(!Array['isArray'](_0x84409d))return[];return _0x84409d[_0x26a552(0x124)](_0x53e6dd=>_0x53e6dd&&typeof _0x53e6dd===_0x26a552(0x147))[_0x26a552(0x10f)](_0x2836db=>({'id':_0x2836db['id'],'type':_0x2836db[_0x26a552(0x118)],'code':_0x2836db[_0x26a552(0x117)],'title':_0x2836db['title'],'deleted':_0x2836db[_0x26a552(0x138)]===!![]}));}function normalizeFallbackFieldName(_0x51162a,_0x5f7dd0){const _0x2941e6=a26_0xdab3,_0x17d1cf=_0x51162a[_0x2941e6(0x136)]();if(!_0x17d1cf)return null;return{'name':_0x17d1cf,'displayName':_0x17d1cf,'type':undefined,'dbType':undefined,'pk':_0x17d1cf===_0x5f7dd0,'required':![],'description':undefined};}function a26_0x3d0c(){const _0xf2a7c1=['fields','indexes','dataset','path','source','pkField','logicField','77078BwglWj','140NqepNG','method','description','detail','createTimeField','trim','10vUnrdD','deleted','string','dbName','options','responseFields','27ynxioR','formatRules','tableName','columnCodeListWithDeleted','1357104cBUNqs','doVersion','creatorIdField','responseBody','252QDnrGv','datasetKey','object','modifierNameField','dblinkInfoDTO','doType','requestFields','tableComment','310233xawZYa','required','relatedPageInfoList','entries','push','dataType','sourceType','properties','isArray','81037XhjWfY','name','map','modelId','allFields','requestBody','536810SVRDBj','beforeScriptId','relations','modifierIdField','code','type','str','dbId','labelField','48GKdMEb','host','appCode','length','dbtableConfig','extend','95688nmbpEe','allFieldNames','filter','creatorNameField','910784qIKYmZ','afterScriptId','validateRules'];a26_0x3d0c=function(){return _0xf2a7c1;};return a26_0x3d0c();}async function loadListFieldFallback(_0x18cbf4,_0x4d1fd3){const _0x117fc0=a26_0xdab3;if(!_0x18cbf4||!_0x4d1fd3)return[];try{const _0x2745b7=await listDatasets(_0x18cbf4,{'code':_0x4d1fd3}),_0x14151c=_0x2745b7['find'](_0x4495e7=>_0x4495e7['code']===_0x4d1fd3)??_0x2745b7[0x0],_0x3a4ac3=_0x14151c?.[_0x117fc0(0x120)]??{},_0x4a7fc0=typeof _0x3a4ac3[_0x117fc0(0x111)]===_0x117fc0(0x139)?_0x3a4ac3[_0x117fc0(0x111)]['split'](','):[];return _0x4a7fc0[_0x117fc0(0x10f)](_0xa85c6c=>normalizeFallbackFieldName(_0xa85c6c,_0x3a4ac3[_0x117fc0(0x12e)]))['filter'](_0x31a515=>_0x31a515!==null);}catch{return[];}}export const datasetDetail={'service':a26_0x15699f(0x12b),'command':a26_0x15699f(0x134),'description':'Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','risk':'read','flags':[CODE_FLAG],async 'execute'(_0x4f785d){const _0x13fcd0=a26_0x15699f,_0x2fc8e6=await getDatasetDetail(_0x4f785d[_0x13fcd0(0x119)](_0x13fcd0(0x117))),_0x5dcd4a=Array[_0x13fcd0(0x155)](_0x2fc8e6[_0x13fcd0(0x129)])?_0x2fc8e6[_0x13fcd0(0x129)]:Array['isArray'](_0x2fc8e6[_0x13fcd0(0x154)])?_0x2fc8e6[_0x13fcd0(0x154)]:[];let _0x1618ae=_0x5dcd4a[_0x13fcd0(0x10f)](_0x30c57d=>normalizeField(_0x30c57d))[_0x13fcd0(0x124)](_0x403d0c=>_0x403d0c!==null);_0x1618ae[_0x13fcd0(0x11f)]===0x0&&(_0x1618ae=await loadListFieldFallback(_0x4f785d[_0x13fcd0(0x11e)],_0x4f785d[_0x13fcd0(0x119)](_0x13fcd0(0x117))));const _0x3814e4=_0x2fc8e6['operations']??{},_0x1fd377=[];for(const [_0x3ea34b,_0x117d8d]of Object[_0x13fcd0(0x150)](_0x3814e4)){const _0x1909bf=normalizeOperationEntry(_0x3ea34b,_0x117d8d);if(_0x1909bf)_0x1fd377[_0x13fcd0(0x151)](_0x1909bf);}const _0x4f5c5a=_0x2fc8e6[_0x13fcd0(0x120)]??{},_0x20accb=_0x2fc8e6[_0x13fcd0(0x12b)]??{},_0x532c65=_0x4f5c5a['dbId']!=null?{'id':_0x4f5c5a[_0x13fcd0(0x11a)],'name':_0x4f5c5a[_0x13fcd0(0x13a)]??null}:undefined;let _0x16469b;return typeof _0x2fc8e6['extend']===_0x13fcd0(0x139)&&(_0x16469b=parseJsonMaybe(_0x2fc8e6[_0x13fcd0(0x121)])),{'ok':!![],'data':{'id':_0x2fc8e6[_0x13fcd0(0x110)]??_0x2fc8e6['id'],'name':_0x2fc8e6[_0x13fcd0(0x157)],'code':_0x2fc8e6['modelCode']||_0x2fc8e6[_0x13fcd0(0x117)],'doVersion':_0x2fc8e6[_0x13fcd0(0x142)],'description':_0x2fc8e6[_0x13fcd0(0x133)]||_0x20accb[_0x13fcd0(0x14c)]||undefined,'source':_0x2fc8e6[_0x13fcd0(0x12d)]||_0x20accb[_0x13fcd0(0x153)],'table':_0x4f5c5a[_0x13fcd0(0x13f)]||_0x20accb[_0x13fcd0(0x13f)],'datasetKey':_0x4f5c5a[_0x13fcd0(0x146)],'pk':_0x4f5c5a[_0x13fcd0(0x12e)],'db':_0x532c65,'dbtable':summarizeDbtable(_0x4f5c5a),'fields':_0x1618ae,'operations':_0x1fd377,'indexes':Array[_0x13fcd0(0x155)](_0x20accb['indexes'])?_0x20accb[_0x13fcd0(0x12a)]:[],'relations':_0x2fc8e6[_0x13fcd0(0x115)]??null,'relatedPages':normalizeRelatedPages(_0x2fc8e6[_0x13fcd0(0x14f)]),...Array[_0x13fcd0(0x155)](_0x2fc8e6[_0x13fcd0(0x140)])?{'columnCodeListWithDeleted':_0x2fc8e6[_0x13fcd0(0x140)]}:{},'formatRules':Array[_0x13fcd0(0x155)](_0x2fc8e6[_0x13fcd0(0x13e)])?_0x2fc8e6[_0x13fcd0(0x13e)]:[],'validateRules':Array[_0x13fcd0(0x155)](_0x2fc8e6[_0x13fcd0(0x128)])?_0x2fc8e6[_0x13fcd0(0x128)]:[],..._0x16469b!==undefined?{'extend':_0x16469b}:{},'stats':{'fieldCount':_0x1618ae[_0x13fcd0(0x11f)],'operationCount':_0x1fd377[_0x13fcd0(0x11f)]}}};}};
1
+ const a26_0x755132=a26_0x5f1b;function a26_0x2fff(){const _0xa57228=['1270623iRbJDb','displayName','entries','length','afterScriptId','beforeScriptId','map','operations','path','createTimeField','string','responseBody','validateRules','requestFields','code','deleted','fields','tableComment','required','modifierNameField','doVersion','datasetKey','labelField','relatedPageInfoList','description','allFieldNames','5lkwvju','indexes','modifierIdField','formatRules','read','title','dbName','dbId','options','pkField','dblinkInfoDTO','responseFields','dbType','allFields','find','appCode','creatorNameField','host','748532oWsZTh','782222miBPOx','name','filter','properties','tableName','sourceType','creatorIdField','extend','type','99642yBwSoo','requestBody','source','510oFBkZY','dbtableConfig','dataType','dataset','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','str','push','columnCodeListWithDeleted','split','relations','method','isArray','3253452PxPLix','1163704yYZroQ','parse','1fErCYe','105543fhBhwh'];a26_0x2fff=function(){return _0xa57228;};return a26_0x2fff();}(function(_0x436d6d,_0x2635b9){const _0x1213f7=a26_0x5f1b,_0x1f663e=_0x436d6d();while(!![]){try{const _0xb657fe=-parseInt(_0x1213f7(0x1a6))/0x1*(-parseInt(_0x1213f7(0x194))/0x2)+parseInt(_0x1213f7(0x1a8))/0x3+-parseInt(_0x1213f7(0x18a))/0x4*(parseInt(_0x1213f7(0x178))/0x5)+-parseInt(_0x1213f7(0x1a3))/0x6+parseInt(_0x1213f7(0x18b))/0x7+-parseInt(_0x1213f7(0x1a4))/0x8+parseInt(_0x1213f7(0x1a7))/0x9*(parseInt(_0x1213f7(0x197))/0xa);if(_0xb657fe===_0x2635b9)break;else _0x1f663e['push'](_0x1f663e['shift']());}catch(_0xe61510){_0x1f663e['push'](_0x1f663e['shift']());}}}(a26_0x2fff,0x4b47b));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a26_0x5f1b(_0x58957e,_0x1dc8b3){_0x58957e=_0x58957e-0x168;const _0x2fff0e=a26_0x2fff();let _0x5f1b2b=_0x2fff0e[_0x58957e];return _0x5f1b2b;}function normalizeField(_0x4944e1){const _0xa43c88=a26_0x5f1b;if(_0x4944e1[_0xa43c88(0x16d)])return null;const _0x4c31a4=Boolean(_0x4944e1[_0xa43c88(0x1a9)]!==undefined||_0x4944e1['doType']!==undefined);let _0x57a44e={};if(!_0x4c31a4&&typeof _0x4944e1[_0xa43c88(0x192)]==='string')try{_0x57a44e=JSON['parse'](_0x4944e1[_0xa43c88(0x192)]);}catch{}const _0xcbbf38=_0x4c31a4?_0x4944e1[_0xa43c88(0x18c)]:_0x4944e1[_0xa43c88(0x16c)],_0x27d43d=_0x4c31a4?_0x4944e1[_0xa43c88(0x1a9)]:_0x4944e1['name'],_0x11cce4=_0x4c31a4?_0x4944e1['doType']:_0x4944e1['type']||_0x4944e1[_0xa43c88(0x199)],_0x119775=_0x4c31a4?_0x4944e1['pkField']===!![]:_0x57a44e[_0xa43c88(0x181)]===!![],_0x1393fd=_0x4c31a4?_0x4944e1[_0xa43c88(0x170)]===!![]:_0x57a44e['required']===!![],_0x38495e=_0x4c31a4?_0x4944e1[_0xa43c88(0x180)]??null:_0x57a44e[_0xa43c88(0x180)]??null,_0x2cf154={'name':_0xcbbf38,'displayName':_0x27d43d||_0xcbbf38,'type':_0x11cce4,'dbType':_0x4944e1[_0xa43c88(0x184)],'pk':_0x119775,'required':_0x1393fd,'description':_0x4944e1[_0xa43c88(0x176)]||undefined};return Array[_0xa43c88(0x1a2)](_0x38495e)&&_0x38495e[_0xa43c88(0x1ab)]>0x0&&(_0x2cf154[_0xa43c88(0x180)]=_0x38495e),_0x2cf154;}function parseJsonMaybe(_0x451362){const _0x43c0d6=a26_0x5f1b;if(typeof _0x451362!==_0x43c0d6(0x168))return _0x451362;try{return JSON[_0x43c0d6(0x1a5)](_0x451362);}catch{return _0x451362;}}function normalizeOperationEntry(_0x51e6d1,_0x3e7083){const _0x832873=a26_0x5f1b;if(!_0x3e7083||typeof _0x3e7083!=='object')return null;if(!_0x3e7083[_0x832873(0x1a1)]||!_0x3e7083[_0x832873(0x1b0)])return null;const _0x367321={'name':_0x51e6d1,'method':_0x3e7083[_0x832873(0x1a1)],'path':_0x3e7083[_0x832873(0x1b0)]};if(_0x3e7083['host'])_0x367321[_0x832873(0x189)]=_0x3e7083[_0x832873(0x189)];if(_0x3e7083[_0x832873(0x195)]!=null)_0x367321['requestBody']=parseJsonMaybe(_0x3e7083[_0x832873(0x195)]);if(_0x3e7083[_0x832873(0x169)]!=null)_0x367321[_0x832873(0x169)]=parseJsonMaybe(_0x3e7083['responseBody']);if(_0x3e7083[_0x832873(0x1ad)]!=null)_0x367321[_0x832873(0x1ad)]=_0x3e7083[_0x832873(0x1ad)];if(_0x3e7083[_0x832873(0x1ac)]!=null)_0x367321[_0x832873(0x1ac)]=_0x3e7083[_0x832873(0x1ac)];if(Array['isArray'](_0x3e7083['requestFields']))_0x367321[_0x832873(0x16b)]=_0x3e7083[_0x832873(0x16b)];if(Array['isArray'](_0x3e7083[_0x832873(0x183)]))_0x367321[_0x832873(0x183)]=_0x3e7083['responseFields'];return _0x367321;}function summarizeDbtable(_0x1287df){const _0x1a1f02=a26_0x5f1b,_0x134e31={},_0x1210eb=['dbId',_0x1a1f02(0x17e),_0x1a1f02(0x18f),_0x1a1f02(0x173),_0x1a1f02(0x181),_0x1a1f02(0x185),'logicField',_0x1a1f02(0x1b1),'updateTimeField',_0x1a1f02(0x191),_0x1a1f02(0x188),_0x1a1f02(0x17a),_0x1a1f02(0x171),_0x1a1f02(0x174),_0x1a1f02(0x182)];for(const _0x5abf9f of _0x1210eb){if(_0x1287df[_0x5abf9f]!==undefined)_0x134e31[_0x5abf9f]=_0x1287df[_0x5abf9f];}return typeof _0x134e31[_0x1a1f02(0x185)]===_0x1a1f02(0x168)&&_0x134e31[_0x1a1f02(0x185)][_0x1a1f02(0x1ab)]>0x0&&(_0x134e31[_0x1a1f02(0x177)]=_0x134e31[_0x1a1f02(0x185)][_0x1a1f02(0x19f)](',')[_0x1a1f02(0x1ae)](_0x530f95=>_0x530f95['trim']())[_0x1a1f02(0x18d)](Boolean)),_0x134e31;}function normalizeRelatedPages(_0x4565af){const _0x3d5051=a26_0x5f1b;if(!Array[_0x3d5051(0x1a2)](_0x4565af))return[];return _0x4565af['filter'](_0x3dd89f=>_0x3dd89f&&typeof _0x3dd89f==='object')['map'](_0x1717f8=>({'id':_0x1717f8['id'],'type':_0x1717f8[_0x3d5051(0x193)],'code':_0x1717f8[_0x3d5051(0x16c)],'title':_0x1717f8[_0x3d5051(0x17d)],'deleted':_0x1717f8[_0x3d5051(0x16d)]===!![]}));}function normalizeFallbackFieldName(_0xbd5a61,_0x745944){const _0x202d30=_0xbd5a61['trim']();if(!_0x202d30)return null;return{'name':_0x202d30,'displayName':_0x202d30,'type':undefined,'dbType':undefined,'pk':_0x202d30===_0x745944,'required':![],'description':undefined};}async function loadListFieldFallback(_0x3f4efe,_0x18bac7){const _0x7b3997=a26_0x5f1b;if(!_0x3f4efe||!_0x18bac7)return[];try{const _0x2eae1c=await listDatasets(_0x3f4efe,{'code':_0x18bac7}),_0x5a1b9b=_0x2eae1c[_0x7b3997(0x186)](_0x4120ca=>_0x4120ca[_0x7b3997(0x16c)]===_0x18bac7)??_0x2eae1c[0x0],_0x2bb300=_0x5a1b9b?.[_0x7b3997(0x198)]??{},_0x3db670=typeof _0x2bb300[_0x7b3997(0x185)]==='string'?_0x2bb300[_0x7b3997(0x185)][_0x7b3997(0x19f)](','):[];return _0x3db670[_0x7b3997(0x1ae)](_0x5db2cb=>normalizeFallbackFieldName(_0x5db2cb,_0x2bb300['pkField']))['filter'](_0x42bbd0=>_0x42bbd0!==null);}catch{return[];}}export const datasetDetail={'service':'dataset','command':'detail','description':a26_0x755132(0x19b),'risk':a26_0x755132(0x17c),'flags':[CODE_FLAG],async 'execute'(_0x1bd17){const _0x211d6f=a26_0x755132,_0x5820e7=await getDatasetDetail(_0x1bd17['str']('code')),_0x49c47b=Array[_0x211d6f(0x1a2)](_0x5820e7[_0x211d6f(0x16e)])?_0x5820e7[_0x211d6f(0x16e)]:Array['isArray'](_0x5820e7[_0x211d6f(0x18e)])?_0x5820e7['properties']:[];let _0x2e2fa1=_0x49c47b[_0x211d6f(0x1ae)](_0x323524=>normalizeField(_0x323524))['filter'](_0x59b91d=>_0x59b91d!==null);_0x2e2fa1[_0x211d6f(0x1ab)]===0x0&&(_0x2e2fa1=await loadListFieldFallback(_0x1bd17[_0x211d6f(0x187)],_0x1bd17[_0x211d6f(0x19c)](_0x211d6f(0x16c))));const _0x3679fa=_0x5820e7[_0x211d6f(0x1af)]??{},_0x316b81=[];for(const [_0x2170a5,_0x210b98]of Object[_0x211d6f(0x1aa)](_0x3679fa)){const _0x5f3a31=normalizeOperationEntry(_0x2170a5,_0x210b98);if(_0x5f3a31)_0x316b81[_0x211d6f(0x19d)](_0x5f3a31);}const _0x48fc39=_0x5820e7[_0x211d6f(0x198)]??{},_0x3cb2b5=_0x5820e7[_0x211d6f(0x19a)]??{},_0x2c4d56=_0x48fc39[_0x211d6f(0x17f)]!=null?{'id':_0x48fc39[_0x211d6f(0x17f)],'name':_0x48fc39[_0x211d6f(0x17e)]??null}:undefined;let _0x6d89be;return typeof _0x5820e7[_0x211d6f(0x192)]===_0x211d6f(0x168)&&(_0x6d89be=parseJsonMaybe(_0x5820e7[_0x211d6f(0x192)])),{'ok':!![],'data':{'id':_0x5820e7['modelId']??_0x5820e7['id'],'name':_0x5820e7['name'],'code':_0x5820e7['modelCode']||_0x5820e7[_0x211d6f(0x16c)],'doVersion':_0x5820e7[_0x211d6f(0x172)],'description':_0x5820e7[_0x211d6f(0x176)]||_0x3cb2b5[_0x211d6f(0x16f)]||undefined,'source':_0x5820e7[_0x211d6f(0x196)]||_0x3cb2b5[_0x211d6f(0x190)],'table':_0x48fc39[_0x211d6f(0x18f)]||_0x3cb2b5['tableName'],'datasetKey':_0x48fc39[_0x211d6f(0x173)],'pk':_0x48fc39[_0x211d6f(0x181)],'db':_0x2c4d56,'dbtable':summarizeDbtable(_0x48fc39),'fields':_0x2e2fa1,'operations':_0x316b81,'indexes':Array[_0x211d6f(0x1a2)](_0x3cb2b5[_0x211d6f(0x179)])?_0x3cb2b5[_0x211d6f(0x179)]:[],'relations':_0x5820e7[_0x211d6f(0x1a0)]??null,'relatedPages':normalizeRelatedPages(_0x5820e7[_0x211d6f(0x175)]),...Array[_0x211d6f(0x1a2)](_0x5820e7[_0x211d6f(0x19e)])?{'columnCodeListWithDeleted':_0x5820e7[_0x211d6f(0x19e)]}:{},'formatRules':Array[_0x211d6f(0x1a2)](_0x5820e7[_0x211d6f(0x17b)])?_0x5820e7['formatRules']:[],'validateRules':Array[_0x211d6f(0x1a2)](_0x5820e7[_0x211d6f(0x16a)])?_0x5820e7[_0x211d6f(0x16a)]:[],..._0x6d89be!==undefined?{'extend':_0x6d89be}:{},'stats':{'fieldCount':_0x2e2fa1[_0x211d6f(0x1ab)],'operationCount':_0x316b81['length']}}};}};