@lovrabet/lovrabet-cli 2.1.16-beta.2 → 2.1.16

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 (120) 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/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schema.js +1 -1
  39. package/lib/commands/service/dynamic.js +1 -1
  40. package/lib/commands/service/function-name-adapter.js +1 -1
  41. package/lib/commands/service/index.js +1 -1
  42. package/lib/commands/service/registry.js +1 -1
  43. package/lib/commands/skill/commands/create.js +1 -1
  44. package/lib/commands/skill/commands/install.js +1 -1
  45. package/lib/commands/skill/commands/list.js +1 -1
  46. package/lib/commands/skill/commands/push.js +1 -1
  47. package/lib/commands/skill/commands/validate.js +1 -1
  48. package/lib/commands/skill/flags.js +1 -1
  49. package/lib/commands/skill/index.js +1 -1
  50. package/lib/commands/skill/manifest-helpers.js +1 -1
  51. package/lib/commands/skill/push-execute.js +1 -1
  52. package/lib/commands/skill/push-flow-helpers.js +1 -1
  53. package/lib/commands/skill/push-retarget.js +1 -1
  54. package/lib/commands/skill/scopes.js +1 -1
  55. package/lib/commands/skill/summary.js +1 -1
  56. package/lib/commands/skill/templates.js +1 -1
  57. package/lib/commands/skill/validate.js +1 -1
  58. package/lib/commands/sql/detail.js +1 -1
  59. package/lib/commands/sql/exec.js +1 -1
  60. package/lib/commands/sql/index.js +1 -1
  61. package/lib/commands/update.js +1 -1
  62. package/lib/commands/workspace/index.js +1 -1
  63. package/lib/config/schema.js +1 -1
  64. package/lib/constant/app.js +1 -1
  65. package/lib/constant/auth-mode.js +1 -1
  66. package/lib/constant/cli.js +1 -1
  67. package/lib/constant/defaults.js +1 -1
  68. package/lib/constant/distribution.js +1 -1
  69. package/lib/constant/domain.js +1 -1
  70. package/lib/constant/env.js +1 -1
  71. package/lib/constant/output.js +1 -1
  72. package/lib/constant/product.js +1 -1
  73. package/lib/constant/risk.js +1 -1
  74. package/lib/constant/url.js +1 -1
  75. package/lib/context.js +1 -1
  76. package/lib/core/api-client.js +1 -1
  77. package/lib/core/db-resolver.js +1 -1
  78. package/lib/core/sdk-client.js +1 -1
  79. package/lib/errors.js +1 -1
  80. package/lib/framework/build-all-flags.js +1 -1
  81. package/lib/framework/dryrun.js +1 -1
  82. package/lib/framework/flags.js +1 -1
  83. package/lib/framework/help.js +1 -1
  84. package/lib/framework/index.js +1 -1
  85. package/lib/framework/output.js +1 -1
  86. package/lib/framework/preparse.js +1 -1
  87. package/lib/framework/rate-limit.js +1 -1
  88. package/lib/framework/response.js +1 -1
  89. package/lib/framework/runner-confirmation.js +1 -1
  90. package/lib/framework/runner-error.js +1 -1
  91. package/lib/framework/runner.js +1 -1
  92. package/lib/framework/schema-export.js +1 -1
  93. package/lib/framework/service-order.js +1 -1
  94. package/lib/framework/types.js +1 -1
  95. package/lib/generated/build-info.js +1 -1
  96. package/lib/help.js +1 -1
  97. package/lib/skills/npx-skills-add.js +1 -1
  98. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  99. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  100. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  101. package/lib/skills/runtime-skill-sync/links.js +1 -1
  102. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  103. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  104. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  105. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  106. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  107. package/lib/skills/runtime-skill-sync/push.js +1 -1
  108. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  109. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  110. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  111. package/lib/skills/runtime-skill-sync.js +1 -1
  112. package/lib/utils/apply-jq-filter.js +1 -1
  113. package/lib/utils/logger.js +1 -1
  114. package/lib/utils/lossless-json.js +1 -1
  115. package/lib/utils/params.js +1 -1
  116. package/lib/utils/platform.js +1 -1
  117. package/lib/utils/update-notice.js +1 -1
  118. package/lib/utils/version.js +1 -1
  119. package/lib/utils/write-cli-side-channel.js +1 -1
  120. package/package.json +1 -1
@@ -1 +1 @@
1
- const a12_0xd5c11f=a12_0x562b;(function(_0x21b3d0,_0xcb7353){const _0x3f0d45=a12_0x562b,_0x454cef=_0x21b3d0();while(!![]){try{const _0x19e792=parseInt(_0x3f0d45(0xc6))/0x1+-parseInt(_0x3f0d45(0xd4))/0x2*(parseInt(_0x3f0d45(0xd0))/0x3)+parseInt(_0x3f0d45(0xc1))/0x4*(-parseInt(_0x3f0d45(0x90))/0x5)+parseInt(_0x3f0d45(0x91))/0x6*(parseInt(_0x3f0d45(0xcf))/0x7)+parseInt(_0x3f0d45(0x88))/0x8+parseInt(_0x3f0d45(0xbc))/0x9+parseInt(_0x3f0d45(0xbf))/0xa*(-parseInt(_0x3f0d45(0x8d))/0xb);if(_0x19e792===_0xcb7353)break;else _0x454cef['push'](_0x454cef['shift']());}catch(_0x3e4c08){_0x454cef['push'](_0x454cef['shift']());}}}(a12_0x4444,0x9d1c2));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a12_0x562b(_0x3818f9,_0x234fe6){_0x3818f9=_0x3818f9-0x88;const _0x4444a9=a12_0x4444();let _0x562bd0=_0x4444a9[_0x3818f9];return _0x562bd0;}import{getLoginUserInfo}from'../../core/api-client.js';import{getUserDomain}from'../../constant/domain.js';import{authDeviceDefinition,readStoredDeviceCode,deleteStoredDeviceCode,fetchDeviceToken,isStoredDeviceCodeExpired}from'../../commands/auth/device.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x67daec=a12_0x562b;writeCliSideChannelLine(_0x67daec(0x95)+PRODUCT_CONFIG[_0x67daec(0xad)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine('Tip:\x20you\x20can\x20also\x20run:'),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>');}function buildAccessKeySetupGuide(){const _0x444781=a12_0x562b;return[_0x444781(0x95)+PRODUCT_CONFIG[_0x444781(0xad)]+':',USER_ACCESS_KEY_CREATE_URL,_0x444781(0xce)+CLI_BIN_NAME+_0x444781(0xbe)][_0x444781(0xd2)]('\x0a');}function canPromptForAccessKey(_0x2b6fc9){const _0x52ab87=a12_0x562b;return!_0x2b6fc9[_0x52ab87(0xbb)]&&process[_0x52ab87(0xc0)]['isTTY']!==![]&&process[_0x52ab87(0xd8)][_0x52ab87(0x89)]!==![];}function resolveAuthScopeFlags(_0x1722f0){const _0x39a331=a12_0x562b;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x1722f0['bool'](_0x39a331(0xd5)),'explicitProject':_0x1722f0[_0x39a331(0xc8)](_0x39a331(0xb9)),'policy':_0x39a331(0x96)}));}async function resolveAuthWriteInput(_0x49130d){const _0x3bd328=a12_0x562b;let _0x3a3fb5=(_0x49130d[_0x3bd328(0xe2)](_0x3bd328(0xe0))||_0x49130d[_0x3bd328(0xe2)]('ak')||'')[_0x3bd328(0xcc)]();const _0x30f097=(_0x49130d['str'](_0x3bd328(0x97))||'')[_0x3bd328(0xcc)]();if(!_0x3a3fb5&&canPromptForAccessKey(_0x49130d))try{showAccessKeyCreateHint(),_0x3a3fb5=await promptAccessKey('');}catch(_0x555926){if(isAbortPrompt(_0x555926))throw CliErrors[_0x3bd328(0x8f)]();throw _0x555926;}if(!_0x3a3fb5)throw CliErrors['validation']('Missing\x20accessKey.',buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x3bd328(0xcd)](_0x3a3fb5))throw CliErrors[_0x3bd328(0xdd)](_0x3bd328(0xd1)+_0x3a3fb5+'\x22',_0x3bd328(0xdf));if(!_0x30f097)return{'accessKey':_0x3a3fb5};const _0x475145=normalizeEnv(_0x30f097);return{'accessKey':_0x3a3fb5,'env':isDaily(_0x475145)?_0x3bd328(0x9f):isDev(_0x475145)?_0x3bd328(0x8e):_0x3bd328(0x92)};}export const authDefinitions=[{'service':a12_0xd5c11f(0xd9),'command':'login','description':a12_0xd5c11f(0xb1),'risk':a12_0xd5c11f(0xac),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0xd5c11f(0xe0),'type':'string','description':a12_0xd5c11f(0xbd)},{'name':'ak','type':a12_0xd5c11f(0x8c),'description':a12_0xd5c11f(0xda)},{'name':a12_0xd5c11f(0xd5),'type':'boolean','description':a12_0xd5c11f(0x9c),'default':!![]},{'name':a12_0xd5c11f(0xb9),'type':'boolean','description':a12_0xd5c11f(0x9d),'default':![]}],async 'execute'(_0x3e4efd){const _0x4b5d22=a12_0xd5c11f;if(_0x3e4efd[_0x4b5d22(0xc8)]('yes'))throw CliErrors[_0x4b5d22(0xdd)]('`auth\x20login`\x20does\x20not\x20support\x20--yes.','Use\x20`'+CLI_BIN_NAME+_0x4b5d22(0xc4)+CLI_BIN_NAME+_0x4b5d22(0x93));const _0x25a038=(_0x3e4efd[_0x4b5d22(0xe2)](_0x4b5d22(0xe0))||_0x3e4efd['str']('ak')||'')['trim']();if(!_0x25a038&&_0x3e4efd['nonInteractive'])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x5de9f8=await resolveAuthWriteInput(_0x3e4efd),_0x55f365=resolveAuthScopeFlags(_0x3e4efd),_0x4e7c8f=readScopedConfig(_0x55f365);_0x4e7c8f[_0x4b5d22(0x98)]=_0x5de9f8[_0x4b5d22(0x98)];_0x5de9f8['env']&&(_0x4e7c8f['env']=_0x5de9f8[_0x4b5d22(0x97)]);writeScopedConfig(_0x4e7c8f,_0x55f365);const _0x1267e7=_0x55f365['global']?'global':'project',_0x49c01a=_0x4e7c8f[_0x4b5d22(0x97)]?'\x20Current\x20env:\x20'+_0x4e7c8f[_0x4b5d22(0x97)]+'.':'';return{'ok':!![],'message':'AccessKey\x20saved\x20to\x20'+_0x1267e7+_0x4b5d22(0xa7)+_0x49c01a+_0x4b5d22(0xb5)+CLI_BIN_NAME+_0x4b5d22(0xe1)};}},{'service':a12_0xd5c11f(0xd9),'command':'init','description':a12_0xd5c11f(0xdb),'risk':a12_0xd5c11f(0xac),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0xd5c11f(0xe0),'type':a12_0xd5c11f(0x8c),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a12_0xd5c11f(0x8c),'description':a12_0xd5c11f(0xda)},{'name':a12_0xd5c11f(0x97),'type':'string','description':a12_0xd5c11f(0xb2)},{'name':a12_0xd5c11f(0xd5),'type':'boolean','description':a12_0xd5c11f(0x9c),'default':!![]},{'name':a12_0xd5c11f(0xb9),'type':a12_0xd5c11f(0xb4),'description':a12_0xd5c11f(0x9d),'default':![]}],async 'execute'(_0x164709){const _0x1aee3f=a12_0xd5c11f,_0x522389=await resolveAuthWriteInput(_0x164709),_0x49f0f4=resolveAuthScopeFlags(_0x164709),_0x38112c={'accessKey':_0x522389[_0x1aee3f(0x98)]};_0x522389[_0x1aee3f(0x97)]&&(_0x38112c['env']=_0x522389[_0x1aee3f(0x97)]);writeScopedConfig(_0x38112c,_0x49f0f4);const _0x36eb16=_0x49f0f4[_0x1aee3f(0xd5)]?_0x1aee3f(0xd5):_0x1aee3f(0xb9),_0x45fef6=_0x38112c['env']?_0x1aee3f(0xab)+_0x38112c['env']+'.':'';return{'ok':!![],'message':_0x1aee3f(0xc7)+_0x36eb16+_0x1aee3f(0xc9)+_0x45fef6+_0x1aee3f(0xb5)+CLI_BIN_NAME+_0x1aee3f(0xe1)};}},{'service':a12_0xd5c11f(0xd9),'command':'logout','description':a12_0xd5c11f(0xa9),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0xd5c11f(0xd5),'type':a12_0xd5c11f(0xb4),'description':a12_0xd5c11f(0xa1),'default':!![]},{'name':a12_0xd5c11f(0xb9),'type':a12_0xd5c11f(0xb4),'description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x5cdf63){const _0x24afd7=a12_0xd5c11f,_0x19b9f7=resolveAuthScopeFlags(_0x5cdf63),_0x3f47b7=readScopedConfig(_0x19b9f7),_0x3008cb=!!_0x3f47b7[_0x24afd7(0x98)];delete _0x3f47b7[_0x24afd7(0x98)],writeScopedConfig(_0x3f47b7,_0x19b9f7);const _0x43b0f6=_0x19b9f7['global']?_0x24afd7(0xd5):_0x24afd7(0xb9);if(_0x3008cb)return{'ok':!![],'message':_0x24afd7(0xd3)+_0x43b0f6+_0x24afd7(0xa7)};return{'ok':!![],'message':'No\x20AccessKey\x20found\x20in\x20'+_0x43b0f6+_0x24afd7(0xb7)};}},{'service':a12_0xd5c11f(0xd9),'command':a12_0xd5c11f(0xa5),'description':'Show\x20current\x20authentication\x20status','risk':a12_0xd5c11f(0xc3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0xd5c11f(0xd5),'type':a12_0xd5c11f(0xb4),'description':a12_0xd5c11f(0xc2),'default':!![]},{'name':a12_0xd5c11f(0xb9),'type':'boolean','description':a12_0xd5c11f(0x9a),'default':![]},{'name':a12_0xd5c11f(0xae),'type':a12_0xd5c11f(0xb4),'description':a12_0xd5c11f(0x9e),'default':![]}],async 'execute'(_0x5f22eb){const _0x78dd4c=a12_0xd5c11f,_0x555826=resolveAuthScopeFlags(_0x5f22eb),_0x34f8e2=readScopedConfig(_0x555826),_0x2baad3=productEnvName('ACCESS_KEY'),_0x4385c8=productEnv(_0x78dd4c(0x8b))||undefined,_0xdbb5db=_0x34f8e2[_0x78dd4c(0x98)]||undefined,_0x37a987=_0x4385c8||_0xdbb5db,_0x3fa45b=_0x4385c8?_0x2baad3+'\x20env\x20var':_0xdbb5db?(_0x555826['global']?'global':_0x78dd4c(0xb9))+_0x78dd4c(0xa0):null,_0x2dd451=[_0x78dd4c(0xa3)+AUTH_MODE[_0x78dd4c(0xd7)]];if(_0x37a987){const _0x19b5ea=_0x37a987[_0x78dd4c(0xa2)]>0x8?''+_0x37a987[_0x78dd4c(0xb8)](0x0,0x8)+'*'[_0x78dd4c(0xaa)](_0x37a987[_0x78dd4c(0xa2)]-0x8):_0x37a987;_0x2dd451[_0x78dd4c(0xdc)](_0x78dd4c(0xa4)+_0x19b5ea+(_0x3fa45b?_0x78dd4c(0x99)+_0x3fa45b+')':''));}if(!_0x37a987){_0x2dd451[_0x78dd4c(0xdc)](''),_0x2dd451['push']('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x2dd451[_0x78dd4c(0xdc)](''),_0x2dd451[_0x78dd4c(0xdc)](_0x78dd4c(0xba)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x2dd451[_0x78dd4c(0xdc)](''),_0x2dd451[_0x78dd4c(0xdc)](_0x78dd4c(0xa8)+PRODUCT_CONFIG[_0x78dd4c(0x94)]+')'),_0x2dd451[_0x78dd4c(0xdc)](_0x78dd4c(0x8a)),_0x2dd451[_0x78dd4c(0xdc)](''),_0x2dd451['push'](_0x78dd4c(0xb0)),_0x2dd451['push']('\x20\x20export\x20'+_0x2baad3+_0x78dd4c(0xaf)),_0x2dd451[_0x78dd4c(0xdc)](''),_0x2dd451[_0x78dd4c(0xdc)](_0x78dd4c(0xb3)+CLI_BIN_NAME+_0x78dd4c(0xe1)),_0x2dd451[_0x78dd4c(0xdc)](_0x78dd4c(0xc5)+CLI_BIN_NAME+'\x20doctor');if(_0x5f22eb[_0x78dd4c(0xc8)](_0x78dd4c(0xae))){const _0x3bb6c9=readStoredDeviceCode();if(_0x3bb6c9&&!isStoredDeviceCodeExpired(_0x3bb6c9)){const _0xe4db8d=getUserDomain(),_0xc6a7fe=await fetchDeviceToken(_0xe4db8d,_0x3bb6c9[_0x78dd4c(0xb6)]);if(_0xc6a7fe[_0x78dd4c(0xa5)]===_0x78dd4c(0xca)&&_0xc6a7fe[_0x78dd4c(0xd6)]){const _0x511b7a={'global':_0x3bb6c9['scope']===_0x78dd4c(0xd5)},_0x17926e=readScopedConfig(_0x511b7a);return _0x17926e['accessKey']=_0xc6a7fe[_0x78dd4c(0xd6)],writeScopedConfig(_0x17926e,_0x511b7a),deleteStoredDeviceCode(),{'ok':!![],'message':_0x78dd4c(0x9b)};}_0xc6a7fe[_0x78dd4c(0xa5)]===_0x78dd4c(0xa6)&&deleteStoredDeviceCode();throw CliErrors[_0x78dd4c(0xcb)]('Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.');}throw CliErrors['authRequired'](_0x2dd451[_0x78dd4c(0xd2)]('\x0a'));}}return{'ok':!![],'message':_0x2dd451[_0x78dd4c(0xd2)]('\x0a')};}},{'service':a12_0xd5c11f(0xd9),'command':a12_0xd5c11f(0xe4),'description':a12_0xd5c11f(0xe3),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x14aa7d){const _0x2d6363=a12_0xd5c11f,_0x20208b=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x20208b,'meta':{'env':_0x14aa7d[_0x2d6363(0xde)]??_0x2d6363(0x92)}}};}},authDeviceDefinition];function a12_0x4444(){const _0x22ce3c=['check','=ak_xxx','Option\x20C:\x20environment\x20variable','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','Then\x20verify\x20with:\x20','boolean','\x20Verify:\x20','code','\x20config.\x20Nothing\x20to\x20clear.','slice','project','Option\x20A:\x20','nonInteractive','11548224dPvbWs','AccessKey\x20(ak_xxx...)','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','111970rauZBy','stdin','4fYaHuN','Read\x20from\x20global\x20config\x20(default)','read','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','574573FLxTzh','Auth\x20config\x20reinitialized\x20in\x20','bool','\x20scope.','success','authRequired','trim','test','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','614446DvYeZI','57036cCIxoZ','Invalid\x20accessKey\x20format:\x20\x22','join','AccessKey\x20cleared\x20from\x20','26iBFXsv','global','access_key','ClientAk','stdout','auth','Shorthand\x20for\x20--access-key','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','push','validation','envName','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','access-key','\x20auth\x20status','str','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','info','9079192ofjEYU','isTTY','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','ACCESS_KEY','string','1584maMMjP','development','cancelled','2886700hvxniT','6mNVCIF','production','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','newConfigFileName','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','global-default','env','accessKey','\x20(via\x20','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Device\x20authorization\x20successful.','Write\x20to\x20global\x20config\x20(default)','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','daily','\x20config','Clear\x20from\x20global\x20config\x20(default)','length','Auth\x20mode:\x20','AccessKey:\x20','status','expired','\x20config.','Option\x20B:\x20apps\x20config\x20(','Clear\x20accessKey\x20from\x20config','repeat','\x20Current\x20env:\x20','write','userCenterDisplayName'];a12_0x4444=function(){return _0x22ce3c;};return a12_0x4444();}
1
+ const a12_0x3d163e=a12_0x2fcb;(function(_0x2c880a,_0x22a3ce){const _0x1bee34=a12_0x2fcb,_0x304841=_0x2c880a();while(!![]){try{const _0x3817eb=parseInt(_0x1bee34(0x12b))/0x1*(parseInt(_0x1bee34(0x15b))/0x2)+-parseInt(_0x1bee34(0x180))/0x3+parseInt(_0x1bee34(0x176))/0x4+-parseInt(_0x1bee34(0x15a))/0x5*(parseInt(_0x1bee34(0x140))/0x6)+parseInt(_0x1bee34(0x138))/0x7*(parseInt(_0x1bee34(0x151))/0x8)+-parseInt(_0x1bee34(0x16d))/0x9+-parseInt(_0x1bee34(0x14e))/0xa*(-parseInt(_0x1bee34(0x17f))/0xb);if(_0x3817eb===_0x22a3ce)break;else _0x304841['push'](_0x304841['shift']());}catch(_0x257052){_0x304841['push'](_0x304841['shift']());}}}(a12_0x77ee,0xf2a46));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_0x77ee(){const _0x40ee4d=['code','development','trim','project','push','Option\x20B:\x20apps\x20config\x20(','str','Write\x20to\x20global\x20config\x20(default)','Shorthand\x20for\x20--access-key','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','No\x20AccessKey\x20found\x20in\x20','17709903yyuQDK','AccessKey:\x20','Show\x20current\x20authentication\x20status','Missing\x20accessKey.','string','boolean','\x20scope.','Option\x20C:\x20environment\x20variable','validation','5244972apiWQr','init','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','\x20auth\x20status','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','AccessKey\x20saved\x20to\x20','Clear\x20from\x20global\x20config\x20(default)','bool','\x20Verify:\x20','11396InooxV','3757305KjJSvm','envName','\x20(via\x20','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','Then\x20verify\x20with:\x20','logout','repeat','\x20Current\x20env:\x20','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','AccessKey\x20(ak_xxx...)','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','4423pYDfEw','daily','Device\x20authorization\x20successful.','status','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','login','slice','global','info','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','11771795hToCAy','\x20config','isTTY','join','ACCESS_KEY','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','access-key','userCenterDisplayName','6KRMgVg','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','accessKey','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','ClientAk','\x20config.','Invalid\x20accessKey\x20format:\x20\x22','AccessKey\x20cleared\x20from\x20','\x20doctor','\x20auth\x20login\x20--access-key\x20<ak_xxx>','Tip:\x20you\x20can\x20also\x20run:','production','Use\x20`','Auth\x20config\x20reinitialized\x20in\x20','8530DWFJGN','read','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','8kqYnYr','=ak_xxx','check','write','access_key','Auth\x20mode:\x20','test','\x20config.\x20Nothing\x20to\x20clear.','auth','4748325cEfGmJ','582qcJbzP','yes','`auth\x20login`\x20does\x20not\x20support\x20--yes.','Clear\x20accessKey\x20from\x20config','env','\x20\x20export\x20','authRequired'];a12_0x77ee=function(){return _0x40ee4d;};return a12_0x77ee();}import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';function a12_0x2fcb(_0x43f89c,_0x152c17){_0x43f89c=_0x43f89c-0x123;const _0x77eedb=a12_0x77ee();let _0x2fcbdd=_0x77eedb[_0x43f89c];return _0x2fcbdd;}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';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x4674df=a12_0x2fcb;writeCliSideChannelLine(_0x4674df(0x123)+PRODUCT_CONFIG[_0x4674df(0x13f)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x4674df(0x14a)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x4674df(0x149));}function buildAccessKeySetupGuide(){const _0x553c89=a12_0x2fcb;return['AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x553c89(0x13f)]+':',USER_ACCESS_KEY_CREATE_URL,'Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20'+CLI_BIN_NAME+_0x553c89(0x178)]['join']('\x0a');}function canPromptForAccessKey(_0x2886bd){const _0xf14a27=a12_0x2fcb;return!_0x2886bd['nonInteractive']&&process['stdin'][_0xf14a27(0x13a)]!==![]&&process['stdout'][_0xf14a27(0x13a)]!==![];}function resolveAuthScopeFlags(_0x215894){const _0x28ddc4=a12_0x2fcb;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x215894['bool']('global'),'explicitProject':_0x215894[_0x28ddc4(0x17d)](_0x28ddc4(0x165)),'policy':'global-default'}));}async function resolveAuthWriteInput(_0x159e20){const _0x1593f4=a12_0x2fcb;let _0x2a4a92=(_0x159e20[_0x1593f4(0x168)](_0x1593f4(0x13e))||_0x159e20[_0x1593f4(0x168)]('ak')||'')[_0x1593f4(0x164)]();const _0x41d278=(_0x159e20[_0x1593f4(0x168)]('env')||'')[_0x1593f4(0x164)]();if(!_0x2a4a92&&canPromptForAccessKey(_0x159e20))try{showAccessKeyCreateHint(),_0x2a4a92=await promptAccessKey('');}catch(_0xd4e596){if(isAbortPrompt(_0xd4e596))throw CliErrors['cancelled']();throw _0xd4e596;}if(!_0x2a4a92)throw CliErrors[_0x1593f4(0x175)](_0x1593f4(0x170),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x1593f4(0x157)](_0x2a4a92))throw CliErrors[_0x1593f4(0x175)](_0x1593f4(0x146)+_0x2a4a92+'\x22',_0x1593f4(0x17a));if(!_0x41d278)return{'accessKey':_0x2a4a92};const _0x8aeba1=normalizeEnv(_0x41d278);return{'accessKey':_0x2a4a92,'env':isDaily(_0x8aeba1)?_0x1593f4(0x12c):isDev(_0x8aeba1)?_0x1593f4(0x163):'production'};}export const authDefinitions=[{'service':a12_0x3d163e(0x159),'command':a12_0x3d163e(0x132),'description':'Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','risk':a12_0x3d163e(0x154),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x3d163e(0x13e),'type':a12_0x3d163e(0x171),'description':a12_0x3d163e(0x129)},{'name':'ak','type':a12_0x3d163e(0x171),'description':a12_0x3d163e(0x16a)},{'name':a12_0x3d163e(0x134),'type':a12_0x3d163e(0x172),'description':a12_0x3d163e(0x169),'default':!![]},{'name':'project','type':'boolean','description':a12_0x3d163e(0x16b),'default':![]}],async 'execute'(_0x5db46e){const _0x3ecef4=a12_0x3d163e;if(_0x5db46e[_0x3ecef4(0x17d)](_0x3ecef4(0x15c)))throw CliErrors[_0x3ecef4(0x175)](_0x3ecef4(0x15d),_0x3ecef4(0x14c)+CLI_BIN_NAME+_0x3ecef4(0x130)+CLI_BIN_NAME+_0x3ecef4(0x136));const _0x580f04=(_0x5db46e[_0x3ecef4(0x168)]('access-key')||_0x5db46e[_0x3ecef4(0x168)]('ak')||'')[_0x3ecef4(0x164)]();if(!_0x580f04&&_0x5db46e['nonInteractive'])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x1509e7=await resolveAuthWriteInput(_0x5db46e),_0x51c997=resolveAuthScopeFlags(_0x5db46e),_0x25ca40=readScopedConfig(_0x51c997);_0x25ca40['accessKey']=_0x1509e7['accessKey'];_0x1509e7['env']&&(_0x25ca40['env']=_0x1509e7[_0x3ecef4(0x15f)]);writeScopedConfig(_0x25ca40,_0x51c997);const _0x502a90=_0x51c997[_0x3ecef4(0x134)]?_0x3ecef4(0x134):_0x3ecef4(0x165),_0x5559b9=_0x25ca40[_0x3ecef4(0x15f)]?'\x20Current\x20env:\x20'+_0x25ca40[_0x3ecef4(0x15f)]+'.':'';return{'ok':!![],'message':_0x3ecef4(0x17b)+_0x502a90+_0x3ecef4(0x145)+_0x5559b9+'\x20Verify:\x20'+CLI_BIN_NAME+_0x3ecef4(0x179)};}},{'service':a12_0x3d163e(0x159),'command':a12_0x3d163e(0x177),'description':a12_0x3d163e(0x12a),'risk':a12_0x3d163e(0x154),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x3d163e(0x13e),'type':a12_0x3d163e(0x171),'description':a12_0x3d163e(0x129)},{'name':'ak','type':a12_0x3d163e(0x171),'description':'Shorthand\x20for\x20--access-key'},{'name':'env','type':a12_0x3d163e(0x171),'description':a12_0x3d163e(0x13d)},{'name':a12_0x3d163e(0x134),'type':a12_0x3d163e(0x172),'description':a12_0x3d163e(0x169),'default':!![]},{'name':a12_0x3d163e(0x165),'type':'boolean','description':a12_0x3d163e(0x16b),'default':![]}],async 'execute'(_0x5ba1dc){const _0x5edcea=a12_0x3d163e,_0x2486df=await resolveAuthWriteInput(_0x5ba1dc),_0x4fc4a1=resolveAuthScopeFlags(_0x5ba1dc),_0xe1b765={'accessKey':_0x2486df[_0x5edcea(0x142)]};_0x2486df['env']&&(_0xe1b765[_0x5edcea(0x15f)]=_0x2486df[_0x5edcea(0x15f)]);writeScopedConfig(_0xe1b765,_0x4fc4a1);const _0x2d8506=_0x4fc4a1[_0x5edcea(0x134)]?_0x5edcea(0x134):'project',_0x2e744f=_0xe1b765[_0x5edcea(0x15f)]?_0x5edcea(0x127)+_0xe1b765['env']+'.':'';return{'ok':!![],'message':_0x5edcea(0x14d)+_0x2d8506+_0x5edcea(0x173)+_0x2e744f+_0x5edcea(0x17e)+CLI_BIN_NAME+_0x5edcea(0x179)};}},{'service':'auth','command':a12_0x3d163e(0x125),'description':a12_0x3d163e(0x15e),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x3d163e(0x134),'type':a12_0x3d163e(0x172),'description':a12_0x3d163e(0x17c),'default':!![]},{'name':'project','type':a12_0x3d163e(0x172),'description':a12_0x3d163e(0x143),'default':![]}],async 'execute'(_0x21598e){const _0x3db348=a12_0x3d163e,_0x464706=resolveAuthScopeFlags(_0x21598e),_0x4410a0=readScopedConfig(_0x464706),_0x12a635=!!_0x4410a0['accessKey'];delete _0x4410a0[_0x3db348(0x142)],writeScopedConfig(_0x4410a0,_0x464706);const _0x49f162=_0x464706[_0x3db348(0x134)]?'global':'project';if(_0x12a635)return{'ok':!![],'message':_0x3db348(0x147)+_0x49f162+_0x3db348(0x145)};return{'ok':!![],'message':_0x3db348(0x16c)+_0x49f162+_0x3db348(0x158)};}},{'service':'auth','command':a12_0x3d163e(0x12e),'description':a12_0x3d163e(0x16f),'risk':a12_0x3d163e(0x14f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x3d163e(0x134),'type':a12_0x3d163e(0x172),'description':'Read\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a12_0x3d163e(0x165),'type':'boolean','description':a12_0x3d163e(0x141),'default':![]},{'name':a12_0x3d163e(0x153),'type':a12_0x3d163e(0x172),'description':'Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','default':![]}],async 'execute'(_0x20e49a){const _0x42361a=a12_0x3d163e,_0x124156=resolveAuthScopeFlags(_0x20e49a),_0x214ea1=readScopedConfig(_0x124156),_0x12a697=productEnvName(_0x42361a(0x13c)),_0x25307a=productEnv('ACCESS_KEY')||undefined,_0xcfbf0b=_0x214ea1['accessKey']||undefined,_0x56ca6d=_0x25307a||_0xcfbf0b,_0x25bc51=_0x25307a?_0x12a697+'\x20env\x20var':_0xcfbf0b?(_0x124156[_0x42361a(0x134)]?'global':_0x42361a(0x165))+_0x42361a(0x139):null,_0x4210b4=[_0x42361a(0x156)+AUTH_MODE[_0x42361a(0x144)]];if(_0x56ca6d){const _0x29235d=_0x56ca6d['length']>0x8?''+_0x56ca6d[_0x42361a(0x133)](0x0,0x8)+'*'[_0x42361a(0x126)](_0x56ca6d['length']-0x8):_0x56ca6d;_0x4210b4[_0x42361a(0x166)](_0x42361a(0x16e)+_0x29235d+(_0x25bc51?_0x42361a(0x182)+_0x25bc51+')':''));}if(!_0x56ca6d){_0x4210b4['push'](''),_0x4210b4['push'](_0x42361a(0x128)),_0x4210b4[_0x42361a(0x166)](''),_0x4210b4[_0x42361a(0x166)]('Option\x20A:\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x4210b4['push'](''),_0x4210b4[_0x42361a(0x166)](_0x42361a(0x167)+PRODUCT_CONFIG['newConfigFileName']+')'),_0x4210b4[_0x42361a(0x166)](_0x42361a(0x12f)),_0x4210b4['push'](''),_0x4210b4['push'](_0x42361a(0x174)),_0x4210b4[_0x42361a(0x166)](_0x42361a(0x160)+_0x12a697+_0x42361a(0x152)),_0x4210b4[_0x42361a(0x166)](''),_0x4210b4['push'](_0x42361a(0x124)+CLI_BIN_NAME+_0x42361a(0x179)),_0x4210b4['push'](_0x42361a(0x150)+CLI_BIN_NAME+_0x42361a(0x148));if(_0x20e49a[_0x42361a(0x17d)]('check')){const _0x41e4f1=readStoredDeviceCode();if(_0x41e4f1&&!isStoredDeviceCodeExpired(_0x41e4f1)){const _0x44e88e=getUserDomain(),_0x4da173=await fetchDeviceToken(_0x44e88e,_0x41e4f1[_0x42361a(0x162)]);if(_0x4da173['status']==='success'&&_0x4da173['access_key']){const _0x296deb={'global':_0x41e4f1['scope']===_0x42361a(0x134)},_0x3f2064=readScopedConfig(_0x296deb);return _0x3f2064['accessKey']=_0x4da173[_0x42361a(0x155)],writeScopedConfig(_0x3f2064,_0x296deb),deleteStoredDeviceCode(),{'ok':!![],'message':_0x42361a(0x12d)};}_0x4da173[_0x42361a(0x12e)]==='expired'&&deleteStoredDeviceCode();throw CliErrors[_0x42361a(0x161)](_0x42361a(0x131));}throw CliErrors['authRequired'](_0x4210b4['join']('\x0a'));}}return{'ok':!![],'message':_0x4210b4[_0x42361a(0x13b)]('\x0a')};}},{'service':a12_0x3d163e(0x159),'command':a12_0x3d163e(0x135),'description':a12_0x3d163e(0x137),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x17bce3){const _0x3cb533=a12_0x3d163e,_0x3f1de9=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x3f1de9,'meta':{'env':_0x17bce3[_0x3cb533(0x181)]??_0x3cb533(0x14b)}}};}},authDeviceDefinition];
@@ -1 +1 @@
1
- (function(_0xdc958e,_0xbdadf){const _0x3cfd09=a13_0x157b,_0x4ee202=_0xdc958e();while(!![]){try{const _0x344115=parseInt(_0x3cfd09(0xdd))/0x1*(parseInt(_0x3cfd09(0xe9))/0x2)+parseInt(_0x3cfd09(0xe7))/0x3*(parseInt(_0x3cfd09(0xda))/0x4)+parseInt(_0x3cfd09(0xde))/0x5+-parseInt(_0x3cfd09(0xe5))/0x6*(parseInt(_0x3cfd09(0xd5))/0x7)+parseInt(_0x3cfd09(0xe2))/0x8+parseInt(_0x3cfd09(0xe8))/0x9*(-parseInt(_0x3cfd09(0xe4))/0xa)+-parseInt(_0x3cfd09(0xdb))/0xb;if(_0x344115===_0xbdadf)break;else _0x4ee202['push'](_0x4ee202['shift']());}catch(_0x1d8198){_0x4ee202['push'](_0x4ee202['shift']());}}}(a13_0x5562,0xca5fe));import{createInterface}from'node:readline';function a13_0x157b(_0x12ff4d,_0x265e83){_0x12ff4d=_0x12ff4d-0xd3;const _0x556258=a13_0x5562();let _0x157bf0=_0x556258[_0x12ff4d];return _0x157bf0;}class AbortPrompt extends Error{constructor(){const _0x364502=a13_0x157b;super('User\x20aborted\x20prompt'),this[_0x364502(0xeb)]=_0x364502(0xd8);}}function createSafeRl(){const _0x3c25d9=a13_0x157b,_0x35adf9=createInterface({'input':process[_0x3c25d9(0xe0)],'output':process[_0x3c25d9(0xdf)]});let _0x61a6f5;const _0xb77ff4=new Promise((_0x3beb5a,_0x2ed36b)=>{const _0x3def01=_0x3c25d9;_0x61a6f5=()=>{const _0x2b5729=a13_0x157b;_0x61a6f5&&(_0x35adf9[_0x2b5729(0xd6)](_0x2b5729(0xd4),_0x61a6f5),_0x61a6f5=undefined);try{_0x35adf9[_0x2b5729(0xe1)]();}catch{}_0x2ed36b(new AbortPrompt());},_0x35adf9[_0x3def01(0xd3)](_0x3def01(0xd4),_0x61a6f5);}),_0x1ca562=()=>{const _0x409e5f=_0x3c25d9;_0x61a6f5&&(_0x35adf9['removeListener'](_0x409e5f(0xd4),_0x61a6f5),_0x61a6f5=undefined);try{_0x35adf9[_0x409e5f(0xe1)]();}catch{}};return{'rl':_0x35adf9,'abortPromise':_0xb77ff4,'disposeSuccess':_0x1ca562};}export async function promptAccessKey(_0x384ad6=''){const _0x35daa5=a13_0x157b,{rl:_0xda580f,abortPromise:_0x5b2902,disposeSuccess:_0x585e7c}=createSafeRl(),_0xb67a5b=new Promise(_0x1dc5a2=>{const _0xdea047=a13_0x157b,_0x37641b=_0x384ad6?_0xdea047(0xea)+_0x384ad6+_0xdea047(0xdc):_0xdea047(0xe6);_0xda580f[_0xdea047(0xd7)](_0x37641b,_0x4ca045=>{const _0x4036db=_0xdea047;_0x585e7c(),_0x1dc5a2(_0x4ca045[_0x4036db(0xe3)]()||_0x384ad6);});});return Promise[_0x35daa5(0xd9)]([_0xb67a5b,_0x5b2902]);}export function isAbortPrompt(_0x477917){const _0x443e5b=a13_0x157b;return _0x477917 instanceof Error&&_0x477917[_0x443e5b(0xeb)]===_0x443e5b(0xd8);}function a13_0x5562(){const _0x578f79=['AccessKey\x20(','name','once','SIGINT','74473ikUdoD','removeListener','question','AbortPrompt','race','321520urAtrJ','22040425EfpBrW','):\x20','2sDVwyB','7073445jVpYqQ','stdout','stdin','close','9099392ZIGIMG','trim','3320vkliHm','588uhQFMr','AccessKey\x20(paste\x20ak_...):\x20','21qfuAHV','24129IGXpUC','1650542HUFMsb'];a13_0x5562=function(){return _0x578f79;};return a13_0x5562();}
1
+ (function(_0x5c3cc9,_0x509218){const _0x5628d1=a13_0x3e8c,_0x25b439=_0x5c3cc9();while(!![]){try{const _0x25342f=parseInt(_0x5628d1(0xd9))/0x1*(-parseInt(_0x5628d1(0xde))/0x2)+parseInt(_0x5628d1(0xe6))/0x3+parseInt(_0x5628d1(0xd8))/0x4+parseInt(_0x5628d1(0xe7))/0x5*(-parseInt(_0x5628d1(0xe8))/0x6)+parseInt(_0x5628d1(0xe4))/0x7+parseInt(_0x5628d1(0xe1))/0x8+-parseInt(_0x5628d1(0xdf))/0x9;if(_0x25342f===_0x509218)break;else _0x25b439['push'](_0x25b439['shift']());}catch(_0x239667){_0x25b439['push'](_0x25b439['shift']());}}}(a13_0x2f69,0x97c00));function a13_0x3e8c(_0x2cb819,_0x4fdc3f){_0x2cb819=_0x2cb819-0xd4;const _0x2f69ec=a13_0x2f69();let _0x3e8cbb=_0x2f69ec[_0x2cb819];return _0x3e8cbb;}import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x497027=a13_0x3e8c;super('User\x20aborted\x20prompt'),this['name']=_0x497027(0xe0);}}function a13_0x2f69(){const _0x59607c=['543996aILqLN','1fzhGSE','SIGINT','name','close','stdin','1230484xudVnd','1026531HwzCyz','AbortPrompt','6165392zUSdFq','AccessKey\x20(paste\x20ak_...):\x20','race','2709392fxyydj','removeListener','2115681XzAwBY','26345FSznDl','738CNLzCb','question','):\x20','trim','once'];a13_0x2f69=function(){return _0x59607c;};return a13_0x2f69();}function createSafeRl(){const _0x3fe01f=a13_0x3e8c,_0x70359a=createInterface({'input':process[_0x3fe01f(0xdd)],'output':process['stdout']});let _0x3316d9;const _0x1c2562=new Promise((_0x3e01f1,_0x1f308f)=>{const _0x45fab1=_0x3fe01f;_0x3316d9=()=>{const _0x4f88fc=a13_0x3e8c;_0x3316d9&&(_0x70359a[_0x4f88fc(0xe5)](_0x4f88fc(0xda),_0x3316d9),_0x3316d9=undefined);try{_0x70359a[_0x4f88fc(0xdc)]();}catch{}_0x1f308f(new AbortPrompt());},_0x70359a[_0x45fab1(0xd7)](_0x45fab1(0xda),_0x3316d9);}),_0x173c9f=()=>{const _0x13764e=_0x3fe01f;_0x3316d9&&(_0x70359a[_0x13764e(0xe5)](_0x13764e(0xda),_0x3316d9),_0x3316d9=undefined);try{_0x70359a[_0x13764e(0xdc)]();}catch{}};return{'rl':_0x70359a,'abortPromise':_0x1c2562,'disposeSuccess':_0x173c9f};}export async function promptAccessKey(_0x3b2d7f=''){const _0x351d3a=a13_0x3e8c,{rl:_0x28fd77,abortPromise:_0x4a3fa0,disposeSuccess:_0x434a0a}=createSafeRl(),_0x3f7914=new Promise(_0x506148=>{const _0x3583ea=a13_0x3e8c,_0x2afe14=_0x3b2d7f?'AccessKey\x20('+_0x3b2d7f+_0x3583ea(0xd5):_0x3583ea(0xe2);_0x28fd77[_0x3583ea(0xd4)](_0x2afe14,_0x19933e=>{const _0x315839=_0x3583ea;_0x434a0a(),_0x506148(_0x19933e[_0x315839(0xd6)]()||_0x3b2d7f);});});return Promise[_0x351d3a(0xe3)]([_0x3f7914,_0x4a3fa0]);}export function isAbortPrompt(_0x149d4e){const _0x1468d4=a13_0x3e8c;return _0x149d4e instanceof Error&&_0x149d4e[_0x1468d4(0xdb)]===_0x1468d4(0xe0);}
@@ -1 +1 @@
1
- function a14_0xa670(_0x29b25f,_0x333750){_0x29b25f=_0x29b25f-0x69;const _0x471382=a14_0x4713();let _0xa6707f=_0x471382[_0x29b25f];return _0xa6707f;}const a14_0x5e3b29=a14_0xa670;(function(_0x4e0463,_0x2118ec){const _0x2051d1=a14_0xa670,_0x438908=_0x4e0463();while(!![]){try{const _0x1eb838=-parseInt(_0x2051d1(0x69))/0x1*(parseInt(_0x2051d1(0x77))/0x2)+parseInt(_0x2051d1(0x6b))/0x3+parseInt(_0x2051d1(0x74))/0x4*(-parseInt(_0x2051d1(0x7b))/0x5)+parseInt(_0x2051d1(0x72))/0x6*(parseInt(_0x2051d1(0x7c))/0x7)+parseInt(_0x2051d1(0x6f))/0x8+parseInt(_0x2051d1(0x73))/0x9*(-parseInt(_0x2051d1(0x75))/0xa)+parseInt(_0x2051d1(0x6e))/0xb*(-parseInt(_0x2051d1(0x70))/0xc);if(_0x1eb838===_0x2118ec)break;else _0x438908['push'](_0x438908['shift']());}catch(_0xbd71c2){_0x438908['push'](_0x438908['shift']());}}}(a14_0x4713,0x8887d));function a14_0x4713(){const _0x1626a5=['4165332wwtXVl','str','42tewjIE','3800439yVmAHH','2538756stomPF','10LOqzjr','name','1292QjOEQX','gmtModified','detail','read','5QNbmGD','452207FuBwbO','appCode','52PmfTRQ','BFF\x20function\x20name','2402505NoNMqO','description','functionName','11hytKaU','5950800eSokaA'];a14_0x4713=function(){return _0x1626a5;};return a14_0x4713();}import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':'bff','command':a14_0x5e3b29(0x79),'description':'Get\x20a\x20BFF\x20endpoint\x20contract\x20by\x20function\x20name','risk':a14_0x5e3b29(0x7a),'flags':[{...NAME_FLAG,'required':!![],'description':a14_0x5e3b29(0x6a)}],async 'execute'(_0x198823){const _0x32c7db=a14_0x5e3b29,_0x1e6c71=await getBffEndpointContract(_0x198823['appCode'],_0x198823[_0x32c7db(0x71)](_0x32c7db(0x76)));return{'ok':!![],'data':{'appCode':_0x1e6c71[_0x32c7db(0x7d)],'functionName':_0x1e6c71[_0x32c7db(0x6d)],'description':_0x1e6c71[_0x32c7db(0x6c)]||'(none)','version':_0x1e6c71['version'],'gmtModified':_0x1e6c71[_0x32c7db(0x78)]}};}};
1
+ const a14_0x11d6ab=a14_0x3e66;function a14_0x3e66(_0x21bdd0,_0x170093){_0x21bdd0=_0x21bdd0-0x11c;const _0x2ff03b=a14_0x2ff0();let _0x3e6608=_0x2ff03b[_0x21bdd0];return _0x3e6608;}function a14_0x2ff0(){const _0x52ae23=['appCode','1283435iDBEBi','bff','str','detail','Get\x20a\x20BFF\x20endpoint\x20contract\x20by\x20function\x20name','450PIsjxp','5182674GFgkQu','278192PfzuUb','version','3447808sPvTfN','1110289uxnpiH','gmtModified','1169892CsWtth','1430550pWBjUR','24xiRoyF'];a14_0x2ff0=function(){return _0x52ae23;};return a14_0x2ff0();}(function(_0x3f9f47,_0x13197f){const _0x1db2fd=a14_0x3e66,_0x8ce5e1=_0x3f9f47();while(!![]){try{const _0x46cf27=parseInt(_0x1db2fd(0x11e))/0x1+parseInt(_0x1db2fd(0x121))/0x2+parseInt(_0x1db2fd(0x12a))/0x3+-parseInt(_0x1db2fd(0x122))/0x4*(parseInt(_0x1db2fd(0x124))/0x5)+parseInt(_0x1db2fd(0x120))/0x6+parseInt(_0x1db2fd(0x11d))/0x7+-parseInt(_0x1db2fd(0x12b))/0x8*(parseInt(_0x1db2fd(0x129))/0x9);if(_0x46cf27===_0x13197f)break;else _0x8ce5e1['push'](_0x8ce5e1['shift']());}catch(_0x163c00){_0x8ce5e1['push'](_0x8ce5e1['shift']());}}}(a14_0x2ff0,0xead22));import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a14_0x11d6ab(0x125),'command':a14_0x11d6ab(0x127),'description':a14_0x11d6ab(0x128),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name'}],async 'execute'(_0x3217fd){const _0x40e365=a14_0x11d6ab,_0x10feab=await getBffEndpointContract(_0x3217fd['appCode'],_0x3217fd[_0x40e365(0x126)]('name'));return{'ok':!![],'data':{'appCode':_0x10feab[_0x40e365(0x123)],'functionName':_0x10feab['functionName'],'description':_0x10feab['description']||'(none)','version':_0x10feab[_0x40e365(0x11c)],'gmtModified':_0x10feab[_0x40e365(0x11f)]}};}};
@@ -1 +1 @@
1
- const a15_0x119b07=a15_0x5bc2;(function(_0xbf452d,_0x429f3f){const _0x3fe428=a15_0x5bc2,_0x47515e=_0xbf452d();while(!![]){try{const _0x35ec27=-parseInt(_0x3fe428(0x83))/0x1+-parseInt(_0x3fe428(0x8c))/0x2+parseInt(_0x3fe428(0x8d))/0x3*(-parseInt(_0x3fe428(0x88))/0x4)+parseInt(_0x3fe428(0x85))/0x5*(parseInt(_0x3fe428(0x8e))/0x6)+-parseInt(_0x3fe428(0x87))/0x7+parseInt(_0x3fe428(0x84))/0x8*(-parseInt(_0x3fe428(0x8a))/0x9)+parseInt(_0x3fe428(0x82))/0xa;if(_0x35ec27===_0x429f3f)break;else _0x47515e['push'](_0x47515e['shift']());}catch(_0x51fefb){_0x47515e['push'](_0x47515e['shift']());}}}(a15_0x10bc,0x9e524));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a15_0x10bc(){const _0x1c14fa=['409226CrNsDG','373908zEaZYX','12396hEtaRB','str','now','name','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','BFF\x20executed\x20in\x20','read','36178760TuKORt','1127855HLhsFL','8zoqvTN','1205hiPjRl','params','6507795gGTivc','8lCRxBY','bff','8602857ZLDblU','BFF\x20function\x20name\x20to\x20execute'];a15_0x10bc=function(){return _0x1c14fa;};return a15_0x10bc();}function a15_0x5bc2(_0x5e3df2,_0x1e1550){_0x5e3df2=_0x5e3df2-0x81;const _0x10bc9f=a15_0x10bc();let _0x5bc2d4=_0x10bc9f[_0x5e3df2];return _0x5bc2d4;}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a15_0x119b07(0x89),'command':'exec','description':a15_0x119b07(0x92),'risk':a15_0x119b07(0x81),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x119b07(0x8b)},PARAMS_FLAG],async 'execute'(_0x192011){const _0x56c551=a15_0x119b07,_0x176cf4=parseJsonParams(_0x192011['str'](_0x56c551(0x86))),_0x508c56=Date[_0x56c551(0x90)](),_0x42ed2f=await executeSdkBff(_0x192011[_0x56c551(0x8f)](_0x56c551(0x91)),_0x176cf4),_0x4bec6f=Date['now']()-_0x508c56;return{'ok':!![],'data':{'result':_0x42ed2f,'elapsed':_0x4bec6f},'message':_0x56c551(0x93)+_0x4bec6f+'ms'};}};
1
+ const a15_0x514ad0=a15_0x122b;function a15_0x40e7(){const _0x5bc15f=['4jrvMjW','3964108GMQHNc','219264mdIdIc','bff','18989008iCxnsj','BFF\x20executed\x20in\x20','str','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','3677394DFiiGB','2350578rGnouc','params','BFF\x20function\x20name\x20to\x20execute','name','1474090LTMLvB','exec','819363pMvXqZ','now'];a15_0x40e7=function(){return _0x5bc15f;};return a15_0x40e7();}(function(_0x389d5f,_0x4b2ca6){const _0x2725d5=a15_0x122b,_0x40c56a=_0x389d5f();while(!![]){try{const _0x23c5e9=-parseInt(_0x2725d5(0x7f))/0x1*(parseInt(_0x2725d5(0x7d))/0x2)+-parseInt(_0x2725d5(0x7b))/0x3+-parseInt(_0x2725d5(0x7e))/0x4+-parseInt(_0x2725d5(0x79))/0x5+-parseInt(_0x2725d5(0x75))/0x6+parseInt(_0x2725d5(0x74))/0x7+parseInt(_0x2725d5(0x70))/0x8;if(_0x23c5e9===_0x4b2ca6)break;else _0x40c56a['push'](_0x40c56a['shift']());}catch(_0xf1864a){_0x40c56a['push'](_0x40c56a['shift']());}}}(a15_0x40e7,0x7c70f));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a15_0x122b(_0x23d7fc,_0x5d71ad){_0x23d7fc=_0x23d7fc-0x6f;const _0x40e776=a15_0x40e7();let _0x122bda=_0x40e776[_0x23d7fc];return _0x122bda;}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a15_0x514ad0(0x6f),'command':a15_0x514ad0(0x7a),'description':a15_0x514ad0(0x73),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':a15_0x514ad0(0x77)},PARAMS_FLAG],async 'execute'(_0x86ba8b){const _0x3b05c4=a15_0x514ad0,_0x296110=parseJsonParams(_0x86ba8b[_0x3b05c4(0x72)](_0x3b05c4(0x76))),_0x21d7ed=Date[_0x3b05c4(0x7c)](),_0x50c143=await executeSdkBff(_0x86ba8b[_0x3b05c4(0x72)](_0x3b05c4(0x78)),_0x296110),_0x55cd1b=Date['now']()-_0x21d7ed;return{'ok':!![],'data':{'result':_0x50c143,'elapsed':_0x55cd1b},'message':_0x3b05c4(0x71)+_0x55cd1b+'ms'};}};
@@ -1 +1 @@
1
- function a16_0x1c3c(_0x1968b4,_0xa69ea5){_0x1968b4=_0x1968b4-0x1be;const _0x42a180=a16_0x42a1();let _0x1c3cdb=_0x42a180[_0x1968b4];return _0x1c3cdb;}function a16_0x42a1(){const _0x598b0c=['1289931epWfzP','526911nFLXtU','66287qMpnrY','4uMVrru','264831PBRFma','420YdNpSV','56SjUrWB','959394kOFIjn','90QLcjEH','1ImypRR','3788136GkzMNt','66lvCDyI','45950TsGtjJ'];a16_0x42a1=function(){return _0x598b0c;};return a16_0x42a1();}(function(_0x4306ab,_0x372ac3){const _0x36e3dd=a16_0x1c3c,_0x35d5e4=_0x4306ab();while(!![]){try{const _0x1c2a49=parseInt(_0x36e3dd(0x1c7))/0x1*(-parseInt(_0x36e3dd(0x1c5))/0x2)+-parseInt(_0x36e3dd(0x1be))/0x3*(-parseInt(_0x36e3dd(0x1c1))/0x4)+-parseInt(_0x36e3dd(0x1ca))/0x5*(parseInt(_0x36e3dd(0x1c9))/0x6)+parseInt(_0x36e3dd(0x1c2))/0x7*(-parseInt(_0x36e3dd(0x1c4))/0x8)+parseInt(_0x36e3dd(0x1c8))/0x9+parseInt(_0x36e3dd(0x1c6))/0xa*(parseInt(_0x36e3dd(0x1bf))/0xb)+parseInt(_0x36e3dd(0x1c3))/0xc*(-parseInt(_0x36e3dd(0x1c0))/0xd);if(_0x1c2a49===_0x372ac3)break;else _0x35d5e4['push'](_0x35d5e4['shift']());}catch(_0x405bf4){_0x35d5e4['push'](_0x35d5e4['shift']());}}}(a16_0x42a1,0x3ef73));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
1
+ function a16_0x4a45(_0x4dfef7,_0xbb1b56){_0x4dfef7=_0x4dfef7-0x188;const _0x3008e2=a16_0x3008();let _0x4a4506=_0x3008e2[_0x4dfef7];return _0x4a4506;}function a16_0x3008(){const _0x8ab503=['27064OeBUOe','447530mRqnCG','5wnrQJl','2876732DUpbiv','44mlxzJR','7026YANusE','5495giDmkn','585824dfDvHy','90ZRLmqB','572941cBzHiE','186HjSVfb','9469380jMlVEg'];a16_0x3008=function(){return _0x8ab503;};return a16_0x3008();}(function(_0x3cc190,_0x540328){const _0xe674a3=a16_0x4a45,_0x4a653f=_0x3cc190();while(!![]){try{const _0x277465=-parseInt(_0xe674a3(0x18f))/0x1+-parseInt(_0xe674a3(0x192))/0x2*(parseInt(_0xe674a3(0x190))/0x3)+parseInt(_0xe674a3(0x189))/0x4*(parseInt(_0xe674a3(0x188))/0x5)+parseInt(_0xe674a3(0x18b))/0x6*(parseInt(_0xe674a3(0x18c))/0x7)+parseInt(_0xe674a3(0x18d))/0x8*(-parseInt(_0xe674a3(0x18e))/0x9)+-parseInt(_0xe674a3(0x193))/0xa*(-parseInt(_0xe674a3(0x18a))/0xb)+parseInt(_0xe674a3(0x191))/0xc;if(_0x277465===_0x540328)break;else _0x4a653f['push'](_0x4a653f['shift']());}catch(_0xb7c137){_0x4a653f['push'](_0x4a653f['shift']());}}}(a16_0x3008,0x70e04));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- function a17_0x35a3(_0x164111,_0x3234cf){_0x164111=_0x164111-0x1e2;const _0x9016f2=a17_0x9016();let _0x35a361=_0x9016f2[_0x164111];return _0x35a361;}const a17_0x396a72=a17_0x35a3;(function(_0x55348,_0x34f63d){const _0x5dd25e=a17_0x35a3,_0x4ac636=_0x55348();while(!![]){try{const _0xaeb3df=-parseInt(_0x5dd25e(0x1e6))/0x1+-parseInt(_0x5dd25e(0x1f3))/0x2+-parseInt(_0x5dd25e(0x1ff))/0x3*(parseInt(_0x5dd25e(0x1f7))/0x4)+-parseInt(_0x5dd25e(0x1ec))/0x5+-parseInt(_0x5dd25e(0x1e5))/0x6*(parseInt(_0x5dd25e(0x1f4))/0x7)+-parseInt(_0x5dd25e(0x1ed))/0x8+-parseInt(_0x5dd25e(0x1f2))/0x9*(-parseInt(_0x5dd25e(0x200))/0xa);if(_0xaeb3df===_0x34f63d)break;else _0x4ac636['push'](_0x4ac636['shift']());}catch(_0x3ac35d){_0x4ac636['push'](_0x4ac636['shift']());}}}(a17_0x9016,0x31bb0));import{CliErrors}from'../../errors.js';function a17_0x9016(){const _0x4685d4=['pipe','apiError','log','cli-skill','CLI\x20Built-in\x20Skill\x20installed','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','9oAriFb','20rGccMR','../../skills/npx-skills-add.js','unknown','inherit','48612qbYjxX','72501tvESXI','install','cwd','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','\x20-g\x20-y)...','cli-skill-install','1758525kXfhNd','3040560uqqMqa','setLogPath','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','write','Skipped\x20npx\x20(','6301602HRtSGl','309886pOIjBW','63PbdWhn','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','error','219364ezDMLQ','npx\x20skills\x20add\x20failed:\x20'];a17_0x9016=function(){return _0x4685d4;};return a17_0x9016();}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a17_0x396a72(0x1fc),'command':a17_0x396a72(0x1e7),'description':a17_0x396a72(0x1f5),'risk':a17_0x396a72(0x1f0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x5eed3c){const _0x436654=a17_0x396a72;logger[_0x436654(0x1ee)](process[_0x436654(0x1e8)]()),logger['info'](_0x436654(0x1eb),_0x436654(0x1e9));const {LOVRABET_SKILL_SOURCE:_0x5303b6,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x4feb13,runNpxSkillsAddGlobal:_0x1f015f}=await import(_0x436654(0x1e2)),_0x5eef9a=_0x5eed3c['nonInteractive']?_0x436654(0x1f9):_0x436654(0x1e4);console[_0x436654(0x1fb)]('Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20'+_0x5303b6+_0x436654(0x1ea));const _0x3ad26d=_0x1f015f(process[_0x436654(0x1e8)](),_0x5303b6,{'stdio':_0x5eef9a});if(_0x3ad26d['skipped'])console[_0x436654(0x1fb)](_0x436654(0x1f1)+_0x4feb13+_0x436654(0x1fe));else{if(_0x3ad26d['ok'])console[_0x436654(0x1fb)](_0x436654(0x1fd));else throw CliErrors[_0x436654(0x1fa)](_0x436654(0x1f8)+(_0x3ad26d[_0x436654(0x1f6)]||_0x436654(0x1e3)),_0x436654(0x1ef)+_0x5303b6+'\x20-g\x20-y');}return{'ok':!![]};}}];
1
+ function a17_0x3902(){const _0xb8b890=['Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','176029QoRPxp','pipe','1842796GVSDCw','\x20-g\x20-y','setLogPath','5789260ecTYPD','cwd','1434504LUJHvp','inherit','unknown','208dHcwLf','cli-skill-install','17280032SNOjjv','apiError','9bHZyix','2ryVBpe','3168130pPuAkN','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','log','info','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','error','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','../../skills/npx-skills-add.js','6qQlLIL','cli-skill','write','692582AYdMhy','skipped'];a17_0x3902=function(){return _0xb8b890;};return a17_0x3902();}function a17_0xe951(_0x11ec86,_0x53a803){_0x11ec86=_0x11ec86-0xc0;const _0x390258=a17_0x3902();let _0xe951d5=_0x390258[_0x11ec86];return _0xe951d5;}const a17_0x30173b=a17_0xe951;(function(_0x4cc812,_0x586d30){const _0x2df331=a17_0xe951,_0x438996=_0x4cc812();while(!![]){try{const _0xbc3ee2=parseInt(_0x2df331(0xc8))/0x1*(parseInt(_0x2df331(0xd4))/0x2)+-parseInt(_0x2df331(0xd1))/0x3*(parseInt(_0x2df331(0xda))/0x4)+parseInt(_0x2df331(0xc9))/0x5+-parseInt(_0x2df331(0xc0))/0x6+parseInt(_0x2df331(0xd8))/0x7*(-parseInt(_0x2df331(0xc3))/0x8)+parseInt(_0x2df331(0xc7))/0x9*(-parseInt(_0x2df331(0xdd))/0xa)+parseInt(_0x2df331(0xc5))/0xb;if(_0xbc3ee2===_0x586d30)break;else _0x438996['push'](_0x438996['shift']());}catch(_0x4a8582){_0x438996['push'](_0x438996['shift']());}}}(a17_0x3902,0x7b052));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a17_0x30173b(0xd2),'command':'install','description':a17_0x30173b(0xcd),'risk':a17_0x30173b(0xd3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2c732f){const _0x5ebe14=a17_0x30173b;logger[_0x5ebe14(0xdc)](process[_0x5ebe14(0xde)]()),logger[_0x5ebe14(0xcc)](_0x5ebe14(0xc4),_0x5ebe14(0xca));const {LOVRABET_SKILL_SOURCE:_0x1a33cf,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x5cbd90,runNpxSkillsAddGlobal:_0x400998}=await import(_0x5ebe14(0xd0)),_0x147d40=_0x2c732f['nonInteractive']?_0x5ebe14(0xd9):_0x5ebe14(0xc1);console[_0x5ebe14(0xcb)](_0x5ebe14(0xcf)+_0x1a33cf+'\x20-g\x20-y)...');const _0x2f95c4=_0x400998(process[_0x5ebe14(0xde)](),_0x1a33cf,{'stdio':_0x147d40});if(_0x2f95c4[_0x5ebe14(0xd5)])console[_0x5ebe14(0xcb)]('Skipped\x20npx\x20('+_0x5cbd90+_0x5ebe14(0xd7));else{if(_0x2f95c4['ok'])console[_0x5ebe14(0xcb)]('CLI\x20Built-in\x20Skill\x20installed');else throw CliErrors[_0x5ebe14(0xc6)]('npx\x20skills\x20add\x20failed:\x20'+(_0x2f95c4[_0x5ebe14(0xce)]||_0x5ebe14(0xc2)),_0x5ebe14(0xd6)+_0x1a33cf+_0x5ebe14(0xdb));}return{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x5e054c,_0x4e1b13){const _0x34de89=a18_0x188d,_0x3f8761=_0x5e054c();while(!![]){try{const _0x206e75=parseInt(_0x34de89(0x1c9))/0x1*(parseInt(_0x34de89(0x1c2))/0x2)+parseInt(_0x34de89(0x1bb))/0x3*(-parseInt(_0x34de89(0x1b4))/0x4)+parseInt(_0x34de89(0x1b8))/0x5*(-parseInt(_0x34de89(0x1b5))/0x6)+-parseInt(_0x34de89(0x1c4))/0x7+-parseInt(_0x34de89(0x1ba))/0x8*(-parseInt(_0x34de89(0x1b3))/0x9)+parseInt(_0x34de89(0x1c8))/0xa+parseInt(_0x34de89(0x1c1))/0xb;if(_0x206e75===_0x4e1b13)break;else _0x3f8761['push'](_0x3f8761['shift']());}catch(_0x432989){_0x3f8761['push'](_0x3f8761['shift']());}}}(a18_0x578d,0x249b6));function a18_0x188d(_0x103516,_0x421901){_0x103516=_0x103516-0x1b3;const _0x578d0e=a18_0x578d();let _0x188dae=_0x578d0e[_0x103516];return _0x188dae;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';function a18_0x578d(){const _0x1f82bb=['validation',',\x20or\x20run\x20`','project-or-global-explicit','3520055VGRuIL','7466AyrhIU','newConfigFileName','1804866rOrMci','global','\x20init`\x20first.','inProject','1262060kTeXXv','57wZfKvU','Not\x20inside\x20a\x20project\x20(no\x20','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','27nceqzi','8tmSjGY','6MQmukd','project','Use\x20only\x20one\x20config\x20scope\x20flag.','758005ZiTdbi','\x20found).','524008DBHXeA','444171hwKUCN','\x20(global)','project-default'];a18_0x578d=function(){return _0x1f82bb;};return a18_0x578d();}export function resolveConfigScope(_0x418a9a){const _0x1f0452=a18_0x188d,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x2d78d5}=_0x418a9a;if(explicitGlobal&&explicitProject)throw CliErrors[_0x1f0452(0x1be)](_0x1f0452(0x1cb),_0x1f0452(0x1b7));if(explicitGlobal)return _0x1f0452(0x1c5);if(explicitProject)return _0x1f0452(0x1b6);switch(_0x2d78d5){case'global-default':return _0x1f0452(0x1c5);case _0x1f0452(0x1bd):return _0x418a9a[_0x1f0452(0x1c7)]??isInProject()?_0x1f0452(0x1b6):_0x1f0452(0x1c5);case _0x1f0452(0x1c0):if(!(_0x418a9a[_0x1f0452(0x1c7)]??isInProject()))throw CliErrors[_0x1f0452(0x1be)](_0x1f0452(0x1ca)+PRODUCT_CONFIG['newConfigFileName']+_0x1f0452(0x1b9),'Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG[_0x1f0452(0x1c3)]+_0x1f0452(0x1bf)+CLI_BIN_NAME+_0x1f0452(0x1c6));return'project';}}export function toScopeFlags(_0x416010){const _0x44ed90=a18_0x188d;return{'global':_0x416010===_0x44ed90(0x1c5)};}export function formatScopeLabel(_0x200e7f){const _0x20ea09=a18_0x188d;return _0x200e7f===_0x20ea09(0x1c5)?_0x20ea09(0x1bc):'';}
1
+ (function(_0x52e86e,_0x385eaa){const _0x165554=a18_0x19c5,_0x4d5776=_0x52e86e();while(!![]){try{const _0x34cc49=-parseInt(_0x165554(0xd1))/0x1*(parseInt(_0x165554(0xdc))/0x2)+parseInt(_0x165554(0xd6))/0x3*(parseInt(_0x165554(0xc7))/0x4)+parseInt(_0x165554(0xce))/0x5+parseInt(_0x165554(0xd2))/0x6*(-parseInt(_0x165554(0xd9))/0x7)+parseInt(_0x165554(0xd0))/0x8*(-parseInt(_0x165554(0xc8))/0x9)+-parseInt(_0x165554(0xcd))/0xa*(parseInt(_0x165554(0xd3))/0xb)+parseInt(_0x165554(0xd4))/0xc;if(_0x34cc49===_0x385eaa)break;else _0x4d5776['push'](_0x4d5776['shift']());}catch(_0x39fee6){_0x4d5776['push'](_0x4d5776['shift']());}}}(a18_0x2dbd,0xed309));function a18_0x2dbd(){const _0x6ea6ce=['\x20(global)','8zMTVkt','1eoFpUq','18NbesLb','11JPfbLv','52017888AcZzyL','Use\x20only\x20one\x20config\x20scope\x20flag.','453708aqsVcv','global','global-default','3018848tbzAUr',',\x20or\x20run\x20`','project-default','491014hxqthi','newConfigFileName','Add\x20--global\x20to\x20write\x20to\x20~/','project-or-global-explicit','project','inProject','12eFHLBf','8417538HyGrVX','\x20found).','validation','Not\x20inside\x20a\x20project\x20(no\x20','\x20init`\x20first.','16431840QyogmI','1503810IJofkT'];a18_0x2dbd=function(){return _0x6ea6ce;};return a18_0x2dbd();}import{CLI_BIN_NAME}from'../../constant/cli.js';function a18_0x19c5(_0x58ab8c,_0x398297){_0x58ab8c=_0x58ab8c-0xc2;const _0x2dbd52=a18_0x2dbd();let _0x19c503=_0x2dbd52[_0x58ab8c];return _0x19c503;}import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x3a44bc){const _0x25af24=a18_0x19c5,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x5e3098}=_0x3a44bc;if(explicitGlobal&&explicitProject)throw CliErrors[_0x25af24(0xca)]('Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.',_0x25af24(0xd5));if(explicitGlobal)return _0x25af24(0xd7);if(explicitProject)return _0x25af24(0xc5);switch(_0x5e3098){case _0x25af24(0xd8):return _0x25af24(0xd7);case _0x25af24(0xdb):return _0x3a44bc[_0x25af24(0xc6)]??isInProject()?_0x25af24(0xc5):_0x25af24(0xd7);case _0x25af24(0xc4):if(!(_0x3a44bc[_0x25af24(0xc6)]??isInProject()))throw CliErrors[_0x25af24(0xca)](_0x25af24(0xcb)+PRODUCT_CONFIG[_0x25af24(0xc2)]+_0x25af24(0xc9),_0x25af24(0xc3)+PRODUCT_CONFIG['newConfigFileName']+_0x25af24(0xda)+CLI_BIN_NAME+_0x25af24(0xcc));return _0x25af24(0xc5);}}export function toScopeFlags(_0x55aa59){const _0x4325b4=a18_0x19c5;return{'global':_0x55aa59===_0x4325b4(0xd7)};}export function formatScopeLabel(_0x8c0268){const _0x3bb81f=a18_0x19c5;return _0x8c0268===_0x3bb81f(0xd7)?_0x3bb81f(0xcf):'';}
@@ -1 +1 @@
1
- (function(_0x40ca36,_0x90e4e8){const _0x3bdf51=a19_0x5aac,_0x1370ab=_0x40ca36();while(!![]){try{const _0x42366a=-parseInt(_0x3bdf51(0xb2))/0x1+-parseInt(_0x3bdf51(0xb1))/0x2+parseInt(_0x3bdf51(0xbc))/0x3*(-parseInt(_0x3bdf51(0xb3))/0x4)+-parseInt(_0x3bdf51(0xc1))/0x5*(parseInt(_0x3bdf51(0xc3))/0x6)+-parseInt(_0x3bdf51(0xbf))/0x7+parseInt(_0x3bdf51(0xbb))/0x8*(parseInt(_0x3bdf51(0xbe))/0x9)+parseInt(_0x3bdf51(0xb8))/0xa;if(_0x42366a===_0x90e4e8)break;else _0x1370ab['push'](_0x1370ab['shift']());}catch(_0x1559dc){_0x1370ab['push'](_0x1370ab['shift']());}}}(a19_0x5f6e,0x5a123));import{CliErrors}from'../../errors.js';function isSet(_0x570bcd,_0x4fa509){const _0x2e36bc=a19_0x5aac,_0x3a53ae=_0x570bcd[_0x2e36bc(0xb5)](_0x4fa509);return _0x3a53ae!==undefined&&_0x3a53ae!==''&&_0x3a53ae!==![]&&_0x3a53ae!==0x0;}function fmtNames(_0x30721b){const _0x3ade61=a19_0x5aac;return _0x30721b[_0x3ade61(0xc2)](_0x3c8ad5=>'--'+_0x3c8ad5)['join'](',\x20');}export function requireOneOf(_0xd1fcf9,_0x2774a8,_0x53591b){const _0x2e7c04=a19_0x5aac,_0x3a5271=_0x2774a8[_0x2e7c04(0xc7)](_0x28444c=>isSet(_0xd1fcf9,_0x28444c));if(_0x3a5271['length']!==0x1)throw CliErrors[_0x2e7c04(0xc0)](_0x3a5271[_0x2e7c04(0xba)]===0x0?_0x2e7c04(0xc4)+fmtNames(_0x2774a8)+_0x2e7c04(0xc6)+_0x53591b+'`.':'Only\x20one\x20of\x20'+fmtNames(_0x2774a8)+_0x2e7c04(0xb6)+fmtNames(_0x3a5271)+'.',_0x3a5271[_0x2e7c04(0xba)]===0x0?_0x2e7c04(0xb9)+fmtNames(_0x2774a8):_0x2e7c04(0xb4));}function a19_0x5f6e(){const _0x4470da=['str','Flags\x20','958226OHgZRt','384995wELxew','4zbMEBk','Remove\x20all\x20but\x20one.','flag','\x20is\x20allowed,\x20found:\x20',',\x20got\x20\x22','21054880VMFoed','Provide\x20one\x20of:\x20','length','66104ScVgck','1572654kOXGSk','\x20are\x20mutually\x20exclusive\x20for\x20`','288muwWrW','22295VeLERI','validation','5tesAZQ','map','3656772pjPMOe','Exactly\x20one\x20of\x20','Invalid\x20--','\x20is\x20required\x20for\x20`','filter','Use\x20only\x20one\x20of:\x20',':\x20expected\x20','test','At\x20least\x20one\x20of\x20'];a19_0x5f6e=function(){return _0x4470da;};return a19_0x5f6e();}export function requireAnyOf(_0x43e230,_0x51245e,_0x47ee9c){const _0x11ca42=a19_0x5aac;if(!_0x51245e['some'](_0x4ebddd=>isSet(_0x43e230,_0x4ebddd)))throw CliErrors['validation'](_0x11ca42(0xae)+fmtNames(_0x51245e)+_0x11ca42(0xc6)+_0x47ee9c+'`.','Provide\x20one\x20of:\x20'+fmtNames(_0x51245e));}export function mutuallyExclusive(_0x3d8a5b,_0x510837,_0x39759a){const _0x1a380c=a19_0x5aac,_0x517b33=_0x510837[_0x1a380c(0xc7)](_0x1f218e=>isSet(_0x3d8a5b,_0x1f218e));if(_0x517b33[_0x1a380c(0xba)]>0x1)throw CliErrors[_0x1a380c(0xc0)](_0x1a380c(0xb0)+fmtNames(_0x517b33)+_0x1a380c(0xbd)+_0x39759a+'`.',_0x1a380c(0xc8)+fmtNames(_0x510837));}function a19_0x5aac(_0x53cf34,_0x3736b6){_0x53cf34=_0x53cf34-0xac;const _0x5f6ef=a19_0x5f6e();let _0x5aacbd=_0x5f6ef[_0x53cf34];return _0x5aacbd;}export function validatePattern(_0x1edfcd,_0xc246b9,_0x2d49e5,_0x347ab2){const _0x40cf91=a19_0x5aac,_0x469a58=_0x1edfcd[_0x40cf91(0xaf)](_0xc246b9);if(_0x469a58&&!_0x2d49e5[_0x40cf91(0xad)](_0x469a58))throw CliErrors[_0x40cf91(0xc0)](_0x40cf91(0xc5)+_0xc246b9+_0x40cf91(0xac)+_0x347ab2+_0x40cf91(0xb7)+_0x469a58+'\x22.');}
1
+ (function(_0x128408,_0x6acbb6){const _0x243f8c=a19_0x1290,_0x2885d1=_0x128408();while(!![]){try{const _0x2cb8cd=parseInt(_0x243f8c(0x141))/0x1*(-parseInt(_0x243f8c(0x136))/0x2)+parseInt(_0x243f8c(0x13a))/0x3*(-parseInt(_0x243f8c(0x13b))/0x4)+-parseInt(_0x243f8c(0x146))/0x5+parseInt(_0x243f8c(0x140))/0x6*(parseInt(_0x243f8c(0x143))/0x7)+-parseInt(_0x243f8c(0x150))/0x8*(parseInt(_0x243f8c(0x14e))/0x9)+parseInt(_0x243f8c(0x14c))/0xa+parseInt(_0x243f8c(0x144))/0xb*(parseInt(_0x243f8c(0x142))/0xc);if(_0x2cb8cd===_0x6acbb6)break;else _0x2885d1['push'](_0x2885d1['shift']());}catch(_0x186b7d){_0x2885d1['push'](_0x2885d1['shift']());}}}(a19_0x2da0,0xc188b));import{CliErrors}from'../../errors.js';function isSet(_0xd55f40,_0xa35fe0){const _0x1079db=a19_0x1290,_0x544078=_0xd55f40[_0x1079db(0x13e)](_0xa35fe0);return _0x544078!==undefined&&_0x544078!==''&&_0x544078!==![]&&_0x544078!==0x0;}function fmtNames(_0x25dc3f){const _0x56a7c5=a19_0x1290;return _0x25dc3f[_0x56a7c5(0x133)](_0x5f136d=>'--'+_0x5f136d)[_0x56a7c5(0x149)](',\x20');}export function requireOneOf(_0x4109eb,_0x25b6e8,_0x5cb1c5){const _0xa638a8=a19_0x1290,_0x3eb7cf=_0x25b6e8[_0xa638a8(0x148)](_0xbd02d4=>isSet(_0x4109eb,_0xbd02d4));if(_0x3eb7cf['length']!==0x1)throw CliErrors[_0xa638a8(0x14a)](_0x3eb7cf['length']===0x0?_0xa638a8(0x13c)+fmtNames(_0x25b6e8)+_0xa638a8(0x13d)+_0x5cb1c5+'`.':_0xa638a8(0x14d)+fmtNames(_0x25b6e8)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x3eb7cf)+'.',_0x3eb7cf['length']===0x0?_0xa638a8(0x14f)+fmtNames(_0x25b6e8):_0xa638a8(0x138));}function a19_0x2da0(){const _0x5e4daa=['8807838qdswsp','43805XgPgAK','5335692QShmpT','7lMJuwl','22gCoDTX','Flags\x20','501205ZLpJXr','test','filter','join','validation','At\x20least\x20one\x20of\x20','7998710fkOQBb','Only\x20one\x20of\x20','2889KChmYF','Provide\x20one\x20of:\x20','4168sgStqm','str','map','length','some','58dReuKE','Use\x20only\x20one\x20of:\x20','Remove\x20all\x20but\x20one.',':\x20expected\x20','744bdEiPR','13332VkMfXo','Exactly\x20one\x20of\x20','\x20is\x20required\x20for\x20`','flag',',\x20got\x20\x22'];a19_0x2da0=function(){return _0x5e4daa;};return a19_0x2da0();}export function requireAnyOf(_0x24b10c,_0x11c81c,_0x21822d){const _0x20394a=a19_0x1290;if(!_0x11c81c[_0x20394a(0x135)](_0xf11dd8=>isSet(_0x24b10c,_0xf11dd8)))throw CliErrors[_0x20394a(0x14a)](_0x20394a(0x14b)+fmtNames(_0x11c81c)+_0x20394a(0x13d)+_0x21822d+'`.',_0x20394a(0x14f)+fmtNames(_0x11c81c));}export function mutuallyExclusive(_0x11f96e,_0xfbaf37,_0x5a8bde){const _0x305abe=a19_0x1290,_0x31b8c6=_0xfbaf37[_0x305abe(0x148)](_0x36667b=>isSet(_0x11f96e,_0x36667b));if(_0x31b8c6[_0x305abe(0x134)]>0x1)throw CliErrors[_0x305abe(0x14a)](_0x305abe(0x145)+fmtNames(_0x31b8c6)+'\x20are\x20mutually\x20exclusive\x20for\x20`'+_0x5a8bde+'`.',_0x305abe(0x137)+fmtNames(_0xfbaf37));}function a19_0x1290(_0x270873,_0x1f1500){_0x270873=_0x270873-0x133;const _0x2da03c=a19_0x2da0();let _0x1290c9=_0x2da03c[_0x270873];return _0x1290c9;}export function validatePattern(_0x1bea0f,_0x2811ce,_0x3393a2,_0x2c96bd){const _0xa4e02f=a19_0x1290,_0x5a4afc=_0x1bea0f[_0xa4e02f(0x151)](_0x2811ce);if(_0x5a4afc&&!_0x3393a2[_0xa4e02f(0x147)](_0x5a4afc))throw CliErrors[_0xa4e02f(0x14a)]('Invalid\x20--'+_0x2811ce+_0xa4e02f(0x139)+_0x2c96bd+_0xa4e02f(0x13f)+_0x5a4afc+'\x22.');}
@@ -1 +1 @@
1
- function a20_0x1b4b(_0x2c3fea,_0x345a76){_0x2c3fea=_0x2c3fea-0xaf;const _0x1d75cd=a20_0x1d75();let _0x1b4b33=_0x1d75cd[_0x2c3fea];return _0x1b4b33;}const a20_0x3e8ace=a20_0x1b4b;(function(_0xc25022,_0x58903c){const _0x13b8a2=a20_0x1b4b,_0x505b6d=_0xc25022();while(!![]){try{const _0x20c7a9=parseInt(_0x13b8a2(0xc4))/0x1*(parseInt(_0x13b8a2(0xbd))/0x2)+-parseInt(_0x13b8a2(0xb7))/0x3*(-parseInt(_0x13b8a2(0xbe))/0x4)+-parseInt(_0x13b8a2(0xc8))/0x5*(-parseInt(_0x13b8a2(0xb8))/0x6)+parseInt(_0x13b8a2(0xc3))/0x7+parseInt(_0x13b8a2(0xbc))/0x8*(-parseInt(_0x13b8a2(0xb6))/0x9)+parseInt(_0x13b8a2(0xc5))/0xa+parseInt(_0x13b8a2(0xb5))/0xb*(-parseInt(_0x13b8a2(0xb3))/0xc);if(_0x20c7a9===_0x58903c)break;else _0x505b6d['push'](_0x505b6d['shift']());}catch(_0x3f09df){_0x505b6d['push'](_0x505b6d['shift']());}}}(a20_0x1d75,0x52b23));export const CODE_FLAG={'name':a20_0x3e8ace(0xba),'type':a20_0x3e8ace(0xbb),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x3e8ace(0xc6)}};export const SQLCODE_FLAG={'name':a20_0x3e8ace(0xc2),'type':a20_0x3e8ace(0xbb),'required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x3e8ace(0xb0)}};function a20_0x1d75(){const _0x5be9ab=['code','string','8IiEvbQ','22temaxA','13084lnLSue','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','verbose','Resource\x20name\x20for\x20lookup','sqlcode','369152IPjpmu','24822WrqPUw','4244280CgMCef','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','params','40HgaCIu','boolean','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','name','number','14244372MkbGOo','Return\x20full\x20raw\x20response\x20object','11LYCgsC','3688767iWJONA','543cWIcNy','445020ZlFbhZ','Resource\x20ID'];a20_0x1d75=function(){return _0x5be9ab;};return a20_0x1d75();}export const VERBOSE_FLAG={'name':a20_0x3e8ace(0xc0),'type':a20_0x3e8ace(0xaf),'description':a20_0x3e8ace(0xb4)};export const PARAMS_FLAG={'name':a20_0x3e8ace(0xc7),'type':a20_0x3e8ace(0xbb),'description':a20_0x3e8ace(0xbf)};export const NAME_FLAG={'name':a20_0x3e8ace(0xb1),'type':a20_0x3e8ace(0xbb),'description':a20_0x3e8ace(0xc1)};export const ID_FLAG={'name':'id','type':a20_0x3e8ace(0xb2),'required':!![],'description':a20_0x3e8ace(0xb9)};
1
+ const a20_0x770449=a20_0x15f9;(function(_0x1f8e9d,_0x56732a){const _0x3cd2a2=a20_0x15f9,_0xd2f545=_0x1f8e9d();while(!![]){try{const _0x53ba4a=parseInt(_0x3cd2a2(0xdc))/0x1+-parseInt(_0x3cd2a2(0xe2))/0x2*(-parseInt(_0x3cd2a2(0xea))/0x3)+parseInt(_0x3cd2a2(0xde))/0x4+-parseInt(_0x3cd2a2(0xe3))/0x5+-parseInt(_0x3cd2a2(0xdb))/0x6*(-parseInt(_0x3cd2a2(0xe8))/0x7)+-parseInt(_0x3cd2a2(0xe9))/0x8+parseInt(_0x3cd2a2(0xef))/0x9*(parseInt(_0x3cd2a2(0xeb))/0xa);if(_0x53ba4a===_0x56732a)break;else _0xd2f545['push'](_0xd2f545['shift']());}catch(_0xe51676){_0xd2f545['push'](_0xd2f545['shift']());}}}(a20_0x295b,0x19e2f));export const CODE_FLAG={'name':a20_0x770449(0xe4),'type':'string','required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const SQLCODE_FLAG={'name':a20_0x770449(0xe7),'type':'string','required':!![],'description':a20_0x770449(0xed),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x770449(0xdf)}};export const VERBOSE_FLAG={'name':a20_0x770449(0xec),'type':a20_0x770449(0xee),'description':a20_0x770449(0xdd)};function a20_0x295b(){const _0x481260=['Resource\x20ID','2LtaDcS','484480pjJUTh','code','string','number','sqlcode','35qAldfG','501720DZicnt','216501FvbglH','414930ViGaXm','verbose','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','boolean','9nFTUXW','14082Nwebld','78020nhPBLN','Return\x20full\x20raw\x20response\x20object','248908CrcUeK','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','params'];a20_0x295b=function(){return _0x481260;};return a20_0x295b();}export const PARAMS_FLAG={'name':a20_0x770449(0xe0),'type':a20_0x770449(0xe5),'description':'Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)'};function a20_0x15f9(_0x4e213c,_0x13be61){_0x4e213c=_0x4e213c-0xdb;const _0x295b02=a20_0x295b();let _0x295b96=_0x295b02[_0x4e213c];return _0x295b96;}export const NAME_FLAG={'name':'name','type':'string','description':'Resource\x20name\x20for\x20lookup'};export const ID_FLAG={'name':'id','type':a20_0x770449(0xe6),'required':!![],'description':a20_0x770449(0xe1)};
@@ -1 +1 @@
1
- (function(_0x1c2386,_0xa3091c){const _0x25a5df=a21_0x2d60,_0x572c2d=_0x1c2386();while(!![]){try{const _0xc29ef3=parseInt(_0x25a5df(0x166))/0x1*(parseInt(_0x25a5df(0x15d))/0x2)+parseInt(_0x25a5df(0x164))/0x3+-parseInt(_0x25a5df(0x160))/0x4+parseInt(_0x25a5df(0x165))/0x5+parseInt(_0x25a5df(0x157))/0x6*(-parseInt(_0x25a5df(0x158))/0x7)+-parseInt(_0x25a5df(0x15b))/0x8+-parseInt(_0x25a5df(0x15e))/0x9;if(_0xc29ef3===_0xa3091c)break;else _0x572c2d['push'](_0x572c2d['shift']());}catch(_0x28cea){_0x572c2d['push'](_0x572c2d['shift']());}}}(a21_0x440d,0xed022));import{existsSync,statSync}from'node:fs';function a21_0x2d60(_0x1794b3,_0xb6cfcb){_0x1794b3=_0x1794b3-0x157;const _0x440dfa=a21_0x440d();let _0x2d6062=_0x440dfa[_0x1794b3];return _0x2d6062;}import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x2fcc6e){const _0x275fff=a21_0x2d60;if(_0x2fcc6e>=BYTES_PER_MB){const _0x12ae4b=Math['ceil'](_0x2fcc6e/BYTES_PER_MB*0x64)/0x64;return _0x12ae4b[_0x275fff(0x162)](0x2)+'\x20MB';}return _0x2fcc6e+'\x20B';}export function requireRuntimeUploadFile(_0x5354eb,_0x5bab10){const _0x11306f=a21_0x2d60,_0x4c64b9=_0x5354eb[_0x11306f(0x159)]();if(!_0x4c64b9)throw CliErrors[_0x11306f(0x15c)](_0x5bab10+'\x20path\x20is\x20required.');if(!existsSync(_0x4c64b9))throw CliErrors[_0x11306f(0x15c)](_0x11306f(0x15a)+_0x4c64b9);const _0x1eaadd=statSync(_0x4c64b9);if(!_0x1eaadd[_0x11306f(0x163)]())throw CliErrors[_0x11306f(0x15c)](_0x11306f(0x15f)+_0x4c64b9);if(_0x1eaadd[_0x11306f(0x161)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x11306f(0x15c)]('File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20'+_0x4c64b9+'\x20('+formatBytes(_0x1eaadd[_0x11306f(0x161)])+')');return{'path':_0x4c64b9,'size':_0x1eaadd[_0x11306f(0x161)]};}function a21_0x440d(){const _0x4c0064=['isFile','5624589MNgADa','6741865eHziwN','51877OwMbwM','102126ZJBFYi','231evUsby','trim','File\x20not\x20found:\x20','811304oXTwXs','validation','40mPZfAp','20412387jiyvTd','File\x20is\x20not\x20a\x20regular\x20file:\x20','1435364lvoHJC','size','toFixed'];a21_0x440d=function(){return _0x4c0064;};return a21_0x440d();}
1
+ (function(_0x4d2d4e,_0x280c00){const _0x425fa4=a21_0x4cf5,_0x5caf26=_0x4d2d4e();while(!![]){try{const _0x534406=-parseInt(_0x425fa4(0xd3))/0x1*(parseInt(_0x425fa4(0xda))/0x2)+parseInt(_0x425fa4(0xd6))/0x3*(parseInt(_0x425fa4(0xd4))/0x4)+parseInt(_0x425fa4(0xdd))/0x5*(parseInt(_0x425fa4(0xd1))/0x6)+parseInt(_0x425fa4(0xcc))/0x7+parseInt(_0x425fa4(0xd9))/0x8+parseInt(_0x425fa4(0xdb))/0x9*(-parseInt(_0x425fa4(0xde))/0xa)+parseInt(_0x425fa4(0xdc))/0xb*(-parseInt(_0x425fa4(0xcd))/0xc);if(_0x534406===_0x280c00)break;else _0x5caf26['push'](_0x5caf26['shift']());}catch(_0x4d4f2c){_0x5caf26['push'](_0x5caf26['shift']());}}}(a21_0x259c,0x8be17));import{existsSync,statSync}from'node:fs';function a21_0x259c(){const _0x37c796=['3idJFnz','\x20path\x20is\x20required.','isFile','3262688nxPJzy','2gsampB','5175kEodGS','44hNqAcE','5ZOefVH','8190CQMetF','7669501TFoFNj','3473628UgkRAp','File\x20is\x20not\x20a\x20regular\x20file:\x20','toFixed','validation','6538998sEJJlf','size','706449XqItmq','1259556gqEKWa','\x20MB'];a21_0x259c=function(){return _0x37c796;};return a21_0x259c();}import{CliErrors}from'../../errors.js';function a21_0x4cf5(_0x16e327,_0x11059d){_0x16e327=_0x16e327-0xcc;const _0x259c68=a21_0x259c();let _0x4cf559=_0x259c68[_0x16e327];return _0x4cf559;}const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x936601){const _0x1eb792=a21_0x4cf5;if(_0x936601>=BYTES_PER_MB){const _0x314260=Math['ceil'](_0x936601/BYTES_PER_MB*0x64)/0x64;return _0x314260[_0x1eb792(0xcf)](0x2)+_0x1eb792(0xd5);}return _0x936601+'\x20B';}export function requireRuntimeUploadFile(_0x38249e,_0x26f044){const _0x11210b=a21_0x4cf5,_0x4b402d=_0x38249e['trim']();if(!_0x4b402d)throw CliErrors[_0x11210b(0xd0)](_0x26f044+_0x11210b(0xd7));if(!existsSync(_0x4b402d))throw CliErrors[_0x11210b(0xd0)]('File\x20not\x20found:\x20'+_0x4b402d);const _0x187393=statSync(_0x4b402d);if(!_0x187393[_0x11210b(0xd8)]())throw CliErrors[_0x11210b(0xd0)](_0x11210b(0xce)+_0x4b402d);if(_0x187393[_0x11210b(0xd2)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x11210b(0xd0)]('File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20'+_0x4b402d+'\x20('+formatBytes(_0x187393['size'])+')');return{'path':_0x4b402d,'size':_0x187393['size']};}
@@ -1 +1 @@
1
- function a22_0x271b(_0x2799e5,_0x1b9631){_0x2799e5=_0x2799e5-0xbd;const _0x33d606=a22_0x33d6();let _0x271bbf=_0x33d606[_0x2799e5];return _0x271bbf;}const a22_0x448f89=a22_0x271b;(function(_0x5a2072,_0x42cf01){const _0x16bf70=a22_0x271b,_0x131f61=_0x5a2072();while(!![]){try{const _0x291734=-parseInt(_0x16bf70(0xf9))/0x1+-parseInt(_0x16bf70(0xfe))/0x2*(parseInt(_0x16bf70(0xe1))/0x3)+-parseInt(_0x16bf70(0xde))/0x4+parseInt(_0x16bf70(0xea))/0x5*(parseInt(_0x16bf70(0xff))/0x6)+parseInt(_0x16bf70(0xd9))/0x7+parseInt(_0x16bf70(0xf3))/0x8+parseInt(_0x16bf70(0xe8))/0x9;if(_0x291734===_0x42cf01)break;else _0x131f61['push'](_0x131f61['shift']());}catch(_0xf1ccdf){_0x131f61['push'](_0x131f61['shift']());}}}(a22_0x33d6,0x2137e));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':'global','type':a22_0x448f89(0xc7),'description':'Write\x20to\x20global\x20config','default':![]};function parseAliasAppcodeSetKey(_0x3ad8ad){const _0x40b126=a22_0x448f89,_0x4f2b6a=_0x3ad8ad['split']('.');if(_0x4f2b6a[_0x40b126(0xc1)]!==0x3||_0x4f2b6a[0x0]!=='apps'||_0x4f2b6a[0x2]!==_0x40b126(0xc4))return undefined;const _0x12ebf5=_0x4f2b6a[0x1]?.[_0x40b126(0xec)]();return _0x12ebf5?_0x12ebf5:undefined;}function parseAliasDeleteKey(_0x17ac93){const _0x290f6a=a22_0x448f89,_0x45f374=_0x17ac93[_0x290f6a(0xd1)]('.');if(_0x45f374['length']===0x2&&_0x45f374[0x0]===_0x290f6a(0xe3)){const _0xd56e61=_0x45f374[0x1]?.[_0x290f6a(0xec)]();return _0xd56e61?{'alias':_0xd56e61}:undefined;}if(_0x45f374[_0x290f6a(0xc1)]===0x3&&_0x45f374[0x0]===_0x290f6a(0xe3)&&_0x45f374[0x2]===_0x290f6a(0xc4)){const _0x2c4522=_0x45f374[0x1]?.[_0x290f6a(0xec)]();return _0x2c4522?{'alias':_0x2c4522,'field':'appcode'}:undefined;}return undefined;}function setLocalAppAlias(_0x2500a5,_0x4eb7e5,_0x1d4250){const _0x5ef2e3=a22_0x448f89,_0xef22bf=_0x2500a5[_0x5ef2e3(0xe3)]&&typeof _0x2500a5['apps']==='object'&&!Array[_0x5ef2e3(0xcf)](_0x2500a5[_0x5ef2e3(0xe3)])?_0x2500a5['apps']:{},_0x2fc594=_0xef22bf[_0x4eb7e5]&&typeof _0xef22bf[_0x4eb7e5]==='object'&&!Array[_0x5ef2e3(0xcf)](_0xef22bf[_0x4eb7e5])?_0xef22bf[_0x4eb7e5]:{};_0x2fc594['appcode']=_0x1d4250,_0xef22bf[_0x4eb7e5]=_0x2fc594,_0x2500a5['apps']=_0xef22bf;}function a22_0x33d6(){const _0x1e7409=['Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','6520CuEJsQ','global','trim','raw','Get\x20a\x20config\x20value','\x20config\x20delete\x20<key>\x20[--global]','read','config','`\x20=\x20\x22','627856hUoQpd','Missing\x20key\x20or\x20value.','Deleted\x20`','Settable\x20keys:\x20','project-or-global-explicit','get','247010hSGSoW','riskLevel','validation','args','write','11416DENsBi','216ugrUNP','log','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','\x22.\x20Allowed:\x20','Set\x20`','value','length','Usage:\x20','join','appcode','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','list','boolean','pageSize','\x20config\x20set\x20<key>\x20<value>\x20[--global]','set','stringify','Missing\x20key\x20argument.','\x20(global)','field','isArray','\x20config\x20get\x20<key>','split','\x20\x20project:\x20','\x22\x20not\x20found\x20at\x20top\x20level.','pageSize\x20must\x20be\x20a\x20positive\x20number','\x20\x20global:\x20\x20','key','Value\x20to\x20assign','object','1826398MkqICv','../../context.js','delete','List\x20current\x20config','Config\x20files:\x0a','300128YdrrHl','pretty','Key\x20\x22','117uaEEed','Delete\x20a\x20config\x20value','apps','alias','bool','Key\x20not\x20found:\x20','format','2649384jkkYjj'];a22_0x33d6=function(){return _0x1e7409;};return a22_0x33d6();}function deleteLocalAppAlias(_0x63a7e7,_0x28f6d7){const _0x5a6c5b=a22_0x448f89;if(!_0x63a7e7[_0x5a6c5b(0xe3)]||typeof _0x63a7e7[_0x5a6c5b(0xe3)]!==_0x5a6c5b(0xd8)||Array[_0x5a6c5b(0xcf)](_0x63a7e7[_0x5a6c5b(0xe3)]))return![];const _0x11b4f7=_0x63a7e7[_0x5a6c5b(0xe3)],_0x5f3014=_0x11b4f7[_0x28f6d7[_0x5a6c5b(0xe4)]];if(!_0x5f3014||typeof _0x5f3014!==_0x5a6c5b(0xd8)||Array['isArray'](_0x5f3014))return![];if(!_0x28f6d7[_0x5a6c5b(0xce)])return delete _0x11b4f7[_0x28f6d7[_0x5a6c5b(0xe4)]],!![];if(!(_0x28f6d7['field']in _0x5f3014))return![];return delete _0x5f3014[_0x28f6d7['field']],Object['keys'](_0x5f3014)[_0x5a6c5b(0xc1)]===0x0&&delete _0x11b4f7[_0x28f6d7[_0x5a6c5b(0xe4)]],!![];}const listDef={'service':a22_0x448f89(0xf1),'command':a22_0x448f89(0xc6),'description':a22_0x448f89(0xdc),'risk':a22_0x448f89(0xf0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0xe4e1ac){const _0xa0dc78=a22_0x448f89,{buildConfigFromFlags:_0x537d82}=await import(_0xa0dc78(0xda)),_0x186f2b=_0x537d82({}),_0x18828e=getProjectConfigPath(),_0x362521=resolveWriteConfigPath(_0xa0dc78(0xeb));if(_0xe4e1ac[_0xa0dc78(0xe7)]===_0xa0dc78(0xdf))return{'ok':!![],'message':_0xa0dc78(0xbd)+(JSON['stringify'](_0x186f2b[_0xa0dc78(0xed)],null,0x2)+'\x0a\x0a')+_0xa0dc78(0xdd)+(_0xa0dc78(0xd2)+(_0x18828e??'(none)')+'\x0a')+(_0xa0dc78(0xd5)+_0x362521)};return{'ok':!![],'data':{'effective':_0x186f2b[_0xa0dc78(0xed)],'configFiles':{'project':_0x18828e??null,'global':_0x362521}}};}},getDef={'service':a22_0x448f89(0xf1),'command':a22_0x448f89(0xf8),'description':a22_0x448f89(0xee),'risk':a22_0x448f89(0xf0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x448f89(0xd6),'description':a22_0x448f89(0xe9),'required':!![]}],'flags':[],async 'execute'(_0x41e03d){const _0x970dc6=a22_0x448f89,_0x17bb9e=_0x41e03d['args'][0x0];if(!_0x17bb9e)throw CliErrors[_0x970dc6(0xfb)](_0x970dc6(0xcc),_0x970dc6(0xc2)+CLI_BIN_NAME+_0x970dc6(0xd0));const {buildConfigFromFlags:_0x68409e}=await import(_0x970dc6(0xda)),{raw:_0x21878b}=_0x68409e({});if(_0x17bb9e['includes']('.')){const _0x2daa00=_0x17bb9e[_0x970dc6(0xd1)]('.');let _0x13c809=_0x21878b;for(const _0x49228e of _0x2daa00){if(_0x13c809==null||typeof _0x13c809!==_0x970dc6(0xd8))throw CliErrors['validation'](_0x970dc6(0xe6)+_0x17bb9e);_0x13c809=_0x13c809[_0x49228e];}if(_0x13c809===undefined)throw CliErrors['validation'](_0x970dc6(0xe6)+_0x17bb9e);return console['log'](typeof _0x13c809===_0x970dc6(0xd8)?JSON[_0x970dc6(0xcb)](_0x13c809,null,0x2):String(_0x13c809)),{'ok':!![]};}const _0x528ae9=_0x21878b[_0x17bb9e];if(_0x528ae9===undefined)throw CliErrors[_0x970dc6(0xfb)](_0x970dc6(0xe6)+_0x17bb9e);return console[_0x970dc6(0x100)](typeof _0x528ae9===_0x970dc6(0xd8)?JSON['stringify'](_0x528ae9,null,0x2):String(_0x528ae9)),{'ok':!![]};}},setDef={'service':a22_0x448f89(0xf1),'command':a22_0x448f89(0xca),'description':'Set\x20a\x20config\x20value','risk':a22_0x448f89(0xfd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x448f89(0xd6),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x448f89(0xc0),'description':a22_0x448f89(0xd7),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x2cec8e){const _0x5d56dd=a22_0x448f89,_0x28e05c=_0x2cec8e[_0x5d56dd(0xfc)][0x0],_0xc48911=_0x2cec8e[_0x5d56dd(0xfc)][0x1];if(!_0x28e05c||_0xc48911===undefined)throw CliErrors['validation'](_0x5d56dd(0xf4),_0x5d56dd(0xc2)+CLI_BIN_NAME+_0x5d56dd(0xc9));if(ENUM_KEYS[_0x28e05c]&&!ENUM_KEYS[_0x28e05c]['includes'](_0xc48911))throw CliErrors[_0x5d56dd(0xfb)]('Invalid\x20value\x20for\x20\x22'+_0x28e05c+_0x5d56dd(0xbe)+ENUM_KEYS[_0x28e05c][_0x5d56dd(0xc3)](',\x20'));if(_0x28e05c===_0x5d56dd(0xfa))throw CliErrors[_0x5d56dd(0xfb)](_0x5d56dd(0xc5));if(_0x28e05c===_0x5d56dd(0xc8)){const _0x3b8fd1=Number(_0xc48911);if(isNaN(_0x3b8fd1)||_0x3b8fd1<=0x0)throw CliErrors[_0x5d56dd(0xfb)](_0x5d56dd(0xd4));}const _0x4afcc7=resolveWriteScope({'explicitGlobal':_0x2cec8e['bool'](_0x5d56dd(0xeb)),'policy':_0x5d56dd(0xf7)}),_0x146b07=toScopeFlags(_0x4afcc7),_0x53b490=readScopedConfig(_0x146b07),_0x5e5c09=parseAliasAppcodeSetKey(_0x28e05c);if(!_0x5e5c09&&!isTopLevelConfigKey(_0x28e05c))throw CliErrors['validation']('Top-level\x20key\x20\x22'+_0x28e05c+'\x22\x20is\x20not\x20settable.',_0x5d56dd(0xf6)+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');return _0x5e5c09?setLocalAppAlias(_0x53b490,_0x5e5c09,_0xc48911):_0x53b490[_0x28e05c]=_0x28e05c===_0x5d56dd(0xc8)?Number(_0xc48911):_0xc48911,console[_0x5d56dd(0x100)](_0x5d56dd(0xbf)+_0x28e05c+_0x5d56dd(0xf2)+_0xc48911+'\x22'+(_0x4afcc7==='global'?_0x5d56dd(0xcd):'')),writeScopedConfig(_0x53b490,_0x146b07),{'ok':!![]};}},deleteDef={'service':a22_0x448f89(0xf1),'command':a22_0x448f89(0xdb),'description':a22_0x448f89(0xe2),'risk':a22_0x448f89(0xfd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x448f89(0xd6),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x59941f){const _0x38edfe=a22_0x448f89,_0x26b73d=_0x59941f[_0x38edfe(0xfc)][0x0];if(!_0x26b73d)throw CliErrors[_0x38edfe(0xfb)]('Missing\x20key\x20argument.',_0x38edfe(0xc2)+CLI_BIN_NAME+_0x38edfe(0xef));const _0x3f3a6b=resolveWriteScope({'explicitGlobal':_0x59941f[_0x38edfe(0xe5)](_0x38edfe(0xeb)),'policy':'project-or-global-explicit'}),_0x342395=toScopeFlags(_0x3f3a6b),_0xeb5d0f=readScopedConfig(_0x342395),_0x11cc7f=parseAliasDeleteKey(_0x26b73d);if(_0x11cc7f){if(!deleteLocalAppAlias(_0xeb5d0f,_0x11cc7f))throw CliErrors[_0x38edfe(0xfb)](_0x38edfe(0xe6)+_0x26b73d);return console['log'](_0x38edfe(0xf5)+_0x26b73d+'`'+(_0x3f3a6b==='global'?'\x20(global)':'')),writeScopedConfig(_0xeb5d0f,_0x342395),{'ok':!![]};}if(_0xeb5d0f[_0x26b73d]===undefined)throw CliErrors[_0x38edfe(0xfb)](_0x38edfe(0xe0)+_0x26b73d+_0x38edfe(0xd3));return delete _0xeb5d0f[_0x26b73d],console[_0x38edfe(0x100)](_0x38edfe(0xf5)+_0x26b73d+'`'+(_0x3f3a6b===_0x38edfe(0xeb)?_0x38edfe(0xcd):'')),writeScopedConfig(_0xeb5d0f,_0x342395),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
1
+ const a22_0x334e28=a22_0x1a22;function a22_0x4775(){const _0x4e800d=['log','Value\x20to\x20assign','set','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','format','riskLevel','7256hlRXGW','field','key','3988602xobTRj','config','stringify','939538dQcCON','Key\x20not\x20found:\x20','Deleted\x20`','trim','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','bool','Missing\x20key\x20or\x20value.','487283DuUdey','\x20config\x20delete\x20<key>\x20[--global]','validation','delete','write','read','Delete\x20a\x20config\x20value','Key\x20\x22','split','Top-level\x20key\x20\x22','length','\x22\x20is\x20not\x20settable.','1009555vyhFJR','Write\x20to\x20global\x20config','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','alias','join','(none)','keys','args','`\x20=\x20\x22','Set\x20`','2001500nXxTCd','list','raw','apps','5201GdiFVY','project-or-global-explicit','Usage:\x20','12nCrifo','object','\x22.\x20Allowed:\x20','3OpePEM','pageSize','appcode','26373330sbzdJd','global','Invalid\x20value\x20for\x20\x22','\x20config\x20get\x20<key>','Missing\x20key\x20argument.','../../context.js','boolean','includes','\x22\x20not\x20found\x20at\x20top\x20level.','isArray','\x20(global)'];a22_0x4775=function(){return _0x4e800d;};return a22_0x4775();}function a22_0x1a22(_0x11adca,_0x28dfc4){_0x11adca=_0x11adca-0x1ac;const _0x477522=a22_0x4775();let _0x1a2223=_0x477522[_0x11adca];return _0x1a2223;}(function(_0x85316c,_0x198fb8){const _0x296924=a22_0x1a22,_0x1844a1=_0x85316c();while(!![]){try{const _0x4eb512=parseInt(_0x296924(0x1d1))/0x1+-parseInt(_0x296924(0x1ca))/0x2*(-parseInt(_0x296924(0x1b0))/0x3)+parseInt(_0x296924(0x1e7))/0x4+parseInt(_0x296924(0x1dd))/0x5*(parseInt(_0x296924(0x1ad))/0x6)+-parseInt(_0x296924(0x1eb))/0x7*(-parseInt(_0x296924(0x1c4))/0x8)+parseInt(_0x296924(0x1c7))/0x9+-parseInt(_0x296924(0x1b3))/0xa;if(_0x4eb512===_0x198fb8)break;else _0x1844a1['push'](_0x1844a1['shift']());}catch(_0x2a7736){_0x1844a1['push'](_0x1844a1['shift']());}}}(a22_0x4775,0x53403));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a22_0x334e28(0x1b4),'type':a22_0x334e28(0x1b9),'description':a22_0x334e28(0x1de),'default':![]};function parseAliasAppcodeSetKey(_0x986d04){const _0x136b69=a22_0x334e28,_0xd85f92=_0x986d04[_0x136b69(0x1d9)]('.');if(_0xd85f92[_0x136b69(0x1db)]!==0x3||_0xd85f92[0x0]!=='apps'||_0xd85f92[0x2]!=='appcode')return undefined;const _0x1396d9=_0xd85f92[0x1]?.[_0x136b69(0x1cd)]();return _0x1396d9?_0x1396d9:undefined;}function parseAliasDeleteKey(_0x1d314a){const _0x400c42=a22_0x334e28,_0x462513=_0x1d314a['split']('.');if(_0x462513[_0x400c42(0x1db)]===0x2&&_0x462513[0x0]===_0x400c42(0x1ea)){const _0xcbd9f3=_0x462513[0x1]?.['trim']();return _0xcbd9f3?{'alias':_0xcbd9f3}:undefined;}if(_0x462513['length']===0x3&&_0x462513[0x0]===_0x400c42(0x1ea)&&_0x462513[0x2]===_0x400c42(0x1b2)){const _0x5ccaf5=_0x462513[0x1]?.[_0x400c42(0x1cd)]();return _0x5ccaf5?{'alias':_0x5ccaf5,'field':_0x400c42(0x1b2)}:undefined;}return undefined;}function setLocalAppAlias(_0x2062c2,_0x52b840,_0x3a3913){const _0xa83240=a22_0x334e28,_0x169e91=_0x2062c2[_0xa83240(0x1ea)]&&typeof _0x2062c2[_0xa83240(0x1ea)]===_0xa83240(0x1ae)&&!Array[_0xa83240(0x1bc)](_0x2062c2['apps'])?_0x2062c2[_0xa83240(0x1ea)]:{},_0x312ebc=_0x169e91[_0x52b840]&&typeof _0x169e91[_0x52b840]===_0xa83240(0x1ae)&&!Array['isArray'](_0x169e91[_0x52b840])?_0x169e91[_0x52b840]:{};_0x312ebc[_0xa83240(0x1b2)]=_0x3a3913,_0x169e91[_0x52b840]=_0x312ebc,_0x2062c2[_0xa83240(0x1ea)]=_0x169e91;}function deleteLocalAppAlias(_0x3c3c75,_0x11343a){const _0x13f4ca=a22_0x334e28;if(!_0x3c3c75[_0x13f4ca(0x1ea)]||typeof _0x3c3c75['apps']!==_0x13f4ca(0x1ae)||Array[_0x13f4ca(0x1bc)](_0x3c3c75[_0x13f4ca(0x1ea)]))return![];const _0x2d6faa=_0x3c3c75[_0x13f4ca(0x1ea)],_0x12b5c9=_0x2d6faa[_0x11343a['alias']];if(!_0x12b5c9||typeof _0x12b5c9!==_0x13f4ca(0x1ae)||Array[_0x13f4ca(0x1bc)](_0x12b5c9))return![];if(!_0x11343a[_0x13f4ca(0x1c5)])return delete _0x2d6faa[_0x11343a[_0x13f4ca(0x1e0)]],!![];if(!(_0x11343a['field']in _0x12b5c9))return![];return delete _0x12b5c9[_0x11343a[_0x13f4ca(0x1c5)]],Object[_0x13f4ca(0x1e3)](_0x12b5c9)[_0x13f4ca(0x1db)]===0x0&&delete _0x2d6faa[_0x11343a[_0x13f4ca(0x1e0)]],!![];}const listDef={'service':a22_0x334e28(0x1c8),'command':a22_0x334e28(0x1e8),'description':'List\x20current\x20config','risk':a22_0x334e28(0x1d6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x24501e){const _0x7f25d0=a22_0x334e28,{buildConfigFromFlags:_0x4081cd}=await import(_0x7f25d0(0x1b8)),_0x270474=_0x4081cd({}),_0x18f618=getProjectConfigPath(),_0xc71f7=resolveWriteConfigPath('global');if(_0x24501e[_0x7f25d0(0x1c2)]==='pretty')return{'ok':!![],'message':_0x7f25d0(0x1df)+(JSON['stringify'](_0x270474[_0x7f25d0(0x1e9)],null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+('\x20\x20project:\x20'+(_0x18f618??_0x7f25d0(0x1e2))+'\x0a')+('\x20\x20global:\x20\x20'+_0xc71f7)};return{'ok':!![],'data':{'effective':_0x270474[_0x7f25d0(0x1e9)],'configFiles':{'project':_0x18f618??null,'global':_0xc71f7}}};}},getDef={'service':a22_0x334e28(0x1c8),'command':'get','description':'Get\x20a\x20config\x20value','risk':a22_0x334e28(0x1d6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x334e28(0x1c6),'description':a22_0x334e28(0x1c1),'required':!![]}],'flags':[],async 'execute'(_0x18eda3){const _0x340e92=a22_0x334e28,_0x35e0c7=_0x18eda3[_0x340e92(0x1e4)][0x0];if(!_0x35e0c7)throw CliErrors[_0x340e92(0x1d3)]('Missing\x20key\x20argument.','Usage:\x20'+CLI_BIN_NAME+_0x340e92(0x1b6));const {buildConfigFromFlags:_0x42676a}=await import(_0x340e92(0x1b8)),{raw:_0x1957b4}=_0x42676a({});if(_0x35e0c7[_0x340e92(0x1ba)]('.')){const _0x89fcdc=_0x35e0c7['split']('.');let _0x1a27b5=_0x1957b4;for(const _0xb589c2 of _0x89fcdc){if(_0x1a27b5==null||typeof _0x1a27b5!==_0x340e92(0x1ae))throw CliErrors['validation'](_0x340e92(0x1cb)+_0x35e0c7);_0x1a27b5=_0x1a27b5[_0xb589c2];}if(_0x1a27b5===undefined)throw CliErrors['validation'](_0x340e92(0x1cb)+_0x35e0c7);return console[_0x340e92(0x1be)](typeof _0x1a27b5===_0x340e92(0x1ae)?JSON['stringify'](_0x1a27b5,null,0x2):String(_0x1a27b5)),{'ok':!![]};}const _0x39dc51=_0x1957b4[_0x35e0c7];if(_0x39dc51===undefined)throw CliErrors[_0x340e92(0x1d3)](_0x340e92(0x1cb)+_0x35e0c7);return console[_0x340e92(0x1be)](typeof _0x39dc51===_0x340e92(0x1ae)?JSON[_0x340e92(0x1c9)](_0x39dc51,null,0x2):String(_0x39dc51)),{'ok':!![]};}},setDef={'service':a22_0x334e28(0x1c8),'command':a22_0x334e28(0x1c0),'description':'Set\x20a\x20config\x20value','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x334e28(0x1c6),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':a22_0x334e28(0x1bf),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x3e5e43){const _0x5142a2=a22_0x334e28,_0x3530a4=_0x3e5e43[_0x5142a2(0x1e4)][0x0],_0x296e8a=_0x3e5e43['args'][0x1];if(!_0x3530a4||_0x296e8a===undefined)throw CliErrors[_0x5142a2(0x1d3)](_0x5142a2(0x1d0),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x3530a4]&&!ENUM_KEYS[_0x3530a4][_0x5142a2(0x1ba)](_0x296e8a))throw CliErrors[_0x5142a2(0x1d3)](_0x5142a2(0x1b5)+_0x3530a4+_0x5142a2(0x1af)+ENUM_KEYS[_0x3530a4][_0x5142a2(0x1e1)](',\x20'));if(_0x3530a4===_0x5142a2(0x1c3))throw CliErrors[_0x5142a2(0x1d3)](_0x5142a2(0x1ce));if(_0x3530a4===_0x5142a2(0x1b1)){const _0x45e44d=Number(_0x296e8a);if(isNaN(_0x45e44d)||_0x45e44d<=0x0)throw CliErrors[_0x5142a2(0x1d3)]('pageSize\x20must\x20be\x20a\x20positive\x20number');}const _0x214bc4=resolveWriteScope({'explicitGlobal':_0x3e5e43['bool'](_0x5142a2(0x1b4)),'policy':'project-or-global-explicit'}),_0x7d11b9=toScopeFlags(_0x214bc4),_0x5998d2=readScopedConfig(_0x7d11b9),_0x2653b7=parseAliasAppcodeSetKey(_0x3530a4);if(!_0x2653b7&&!isTopLevelConfigKey(_0x3530a4))throw CliErrors[_0x5142a2(0x1d3)](_0x5142a2(0x1da)+_0x3530a4+_0x5142a2(0x1dc),'Settable\x20keys:\x20'+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');return _0x2653b7?setLocalAppAlias(_0x5998d2,_0x2653b7,_0x296e8a):_0x5998d2[_0x3530a4]=_0x3530a4===_0x5142a2(0x1b1)?Number(_0x296e8a):_0x296e8a,console[_0x5142a2(0x1be)](_0x5142a2(0x1e6)+_0x3530a4+_0x5142a2(0x1e5)+_0x296e8a+'\x22'+(_0x214bc4===_0x5142a2(0x1b4)?'\x20(global)':'')),writeScopedConfig(_0x5998d2,_0x7d11b9),{'ok':!![]};}},deleteDef={'service':a22_0x334e28(0x1c8),'command':a22_0x334e28(0x1d4),'description':a22_0x334e28(0x1d7),'risk':a22_0x334e28(0x1d5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x334e28(0x1c6),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x4307d7){const _0x3fd477=a22_0x334e28,_0x42adf7=_0x4307d7[_0x3fd477(0x1e4)][0x0];if(!_0x42adf7)throw CliErrors[_0x3fd477(0x1d3)](_0x3fd477(0x1b7),_0x3fd477(0x1ac)+CLI_BIN_NAME+_0x3fd477(0x1d2));const _0x2a1c45=resolveWriteScope({'explicitGlobal':_0x4307d7[_0x3fd477(0x1cf)](_0x3fd477(0x1b4)),'policy':_0x3fd477(0x1ec)}),_0x4a1b57=toScopeFlags(_0x2a1c45),_0x428d28=readScopedConfig(_0x4a1b57),_0x986be2=parseAliasDeleteKey(_0x42adf7);if(_0x986be2){if(!deleteLocalAppAlias(_0x428d28,_0x986be2))throw CliErrors[_0x3fd477(0x1d3)]('Key\x20not\x20found:\x20'+_0x42adf7);return console[_0x3fd477(0x1be)](_0x3fd477(0x1cc)+_0x42adf7+'`'+(_0x2a1c45===_0x3fd477(0x1b4)?_0x3fd477(0x1bd):'')),writeScopedConfig(_0x428d28,_0x4a1b57),{'ok':!![]};}if(_0x428d28[_0x42adf7]===undefined)throw CliErrors[_0x3fd477(0x1d3)](_0x3fd477(0x1d8)+_0x42adf7+_0x3fd477(0x1bb));return delete _0x428d28[_0x42adf7],console[_0x3fd477(0x1be)]('Deleted\x20`'+_0x42adf7+'`'+(_0x2a1c45===_0x3fd477(0x1b4)?_0x3fd477(0x1bd):'')),writeScopedConfig(_0x428d28,_0x4a1b57),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- (function(_0x42bcf0,_0x40c107){var _0x1c4749=a23_0x1e7d,_0x331f7c=_0x42bcf0();while(!![]){try{var _0x127960=parseInt(_0x1c4749(0xac))/0x1*(parseInt(_0x1c4749(0xaf))/0x2)+-parseInt(_0x1c4749(0xa5))/0x3+-parseInt(_0x1c4749(0xa7))/0x4+parseInt(_0x1c4749(0xab))/0x5*(-parseInt(_0x1c4749(0xad))/0x6)+parseInt(_0x1c4749(0xa6))/0x7*(parseInt(_0x1c4749(0xa8))/0x8)+-parseInt(_0x1c4749(0xaa))/0x9*(parseInt(_0x1c4749(0xae))/0xa)+parseInt(_0x1c4749(0xa9))/0xb;if(_0x127960===_0x40c107)break;else _0x331f7c['push'](_0x331f7c['shift']());}catch(_0x5ad35a){_0x331f7c['push'](_0x331f7c['shift']());}}}(a23_0x54f3,0x1b4de));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};function a23_0x1e7d(_0x12d565,_0x2809e7){_0x12d565=_0x12d565-0xa5;var _0x54f3b0=a23_0x54f3();var _0x1e7d47=_0x54f3b0[_0x12d565];return _0x1e7d47;}export{readScopedConfig,writeScopedConfig}from'../../context.js';function a23_0x54f3(){var _0x5dfce9=['401560IqYNFR','5634090RodzHG','9ZVJtYi','2580dRRkjR','71WBOgnl','2466CaIBFb','658960WFUKrG','4810qqWdCn','662589uaVPDj','21JUYcaL','891428isywiq'];a23_0x54f3=function(){return _0x5dfce9;};return a23_0x54f3();}export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
1
+ (function(_0x3ee179,_0x528da3){var _0x1866b0=a23_0x28b9,_0x344306=_0x3ee179();while(!![]){try{var _0x44c5a3=-parseInt(_0x1866b0(0x1e4))/0x1+-parseInt(_0x1866b0(0x1dd))/0x2*(parseInt(_0x1866b0(0x1df))/0x3)+parseInt(_0x1866b0(0x1de))/0x4+-parseInt(_0x1866b0(0x1e1))/0x5+parseInt(_0x1866b0(0x1e0))/0x6*(parseInt(_0x1866b0(0x1da))/0x7)+parseInt(_0x1866b0(0x1e2))/0x8*(-parseInt(_0x1866b0(0x1dc))/0x9)+-parseInt(_0x1866b0(0x1e3))/0xa*(-parseInt(_0x1866b0(0x1db))/0xb);if(_0x44c5a3===_0x528da3)break;else _0x344306['push'](_0x344306['shift']());}catch(_0x2fc737){_0x344306['push'](_0x344306['shift']());}}}(a23_0x2cc0,0x603f9));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';function a23_0x28b9(_0x12c6c6,_0x163aae){_0x12c6c6=_0x12c6c6-0x1da;var _0x2cc0cc=a23_0x2cc0();var _0x28b999=_0x2cc0cc[_0x12c6c6];return _0x28b999;}function a23_0x2cc0(){var _0x4faf67=['12964006vZsreH','9ZJDpqe','14726qXVqHo','2980888sTbCWG','213VwuuRa','544776FXABgB','2234940lRcocl','2372456yyQjEv','10CnFSNA','354013MgaeKA','7BfOFFN'];a23_0x2cc0=function(){return _0x4faf67;};return a23_0x2cc0();}
@@ -1 +1 @@
1
- const a24_0x1d1f4a=a24_0x351a;(function(_0x3d7eeb,_0x3063d3){const _0x26953e=a24_0x351a,_0x117ebf=_0x3d7eeb();while(!![]){try{const _0xe75e81=parseInt(_0x26953e(0x1fe))/0x1+parseInt(_0x26953e(0x1e9))/0x2+parseInt(_0x26953e(0x237))/0x3+parseInt(_0x26953e(0x1e6))/0x4+parseInt(_0x26953e(0x1f5))/0x5+-parseInt(_0x26953e(0x1fb))/0x6+parseInt(_0x26953e(0x1e3))/0x7*(-parseInt(_0x26953e(0x201))/0x8);if(_0xe75e81===_0x3063d3)break;else _0x117ebf['push'](_0x117ebf['shift']());}catch(_0x2a459d){_0x117ebf['push'](_0x117ebf['shift']());}}}(a24_0x46d5,0x1a223));import{executeData}from'../../core/sdk-client.js';function a24_0x351a(_0x1f45d7,_0x47d827){_0x1f45d7=_0x1f45d7-0x1e3;const _0x46d57b=a24_0x46d5();let _0x351a93=_0x46d57b[_0x1f45d7];return _0x351a93;}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':a24_0x1d1f4a(0x214),'operation':a24_0x1d1f4a(0x214),'risk':'read','paramsRequired':![],'description':a24_0x1d1f4a(0x203),'paramsHint':a24_0x1d1f4a(0x213)+a24_0x1d1f4a(0x1ed),'helpExtra':[a24_0x1d1f4a(0x202),a24_0x1d1f4a(0x21f),a24_0x1d1f4a(0x209),a24_0x1d1f4a(0x1fc),'\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}}',a24_0x1d1f4a(0x21b),a24_0x1d1f4a(0x1ea),a24_0x1d1f4a(0x229),a24_0x1d1f4a(0x21a),a24_0x1d1f4a(0x220),a24_0x1d1f4a(0x21d),'',a24_0x1d1f4a(0x22f),a24_0x1d1f4a(0x20c),'\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}}]}','',a24_0x1d1f4a(0x228),a24_0x1d1f4a(0x20e),a24_0x1d1f4a(0x1e5),a24_0x1d1f4a(0x238),a24_0x1d1f4a(0x210),a24_0x1d1f4a(0x206),'',a24_0x1d1f4a(0x1f8),a24_0x1d1f4a(0x1f3),a24_0x1d1f4a(0x223),'\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)']['join']('\x0a')},{'command':a24_0x1d1f4a(0x1fa),'operation':a24_0x1d1f4a(0x1fa),'risk':a24_0x1d1f4a(0x1ee),'paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a24_0x1d1f4a(0x1f9)},{'command':a24_0x1d1f4a(0x221),'operation':a24_0x1d1f4a(0x221),'risk':a24_0x1d1f4a(0x1f0),'paramsRequired':!![],'description':a24_0x1d1f4a(0x20b),'paramsHint':a24_0x1d1f4a(0x207)},{'command':a24_0x1d1f4a(0x22c),'operation':a24_0x1d1f4a(0x22c),'risk':a24_0x1d1f4a(0x1f0),'paramsRequired':!![],'description':a24_0x1d1f4a(0x211),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':a24_0x1d1f4a(0x200),'operation':a24_0x1d1f4a(0x200),'risk':a24_0x1d1f4a(0x1f0),'paramsRequired':!![],'description':a24_0x1d1f4a(0x232),'paramsHint':a24_0x1d1f4a(0x217)+a24_0x1d1f4a(0x20f)},{'command':a24_0x1d1f4a(0x22e),'operation':'delete','risk':'high-risk-write','paramsRequired':!![],'description':a24_0x1d1f4a(0x227),'paramsHint':a24_0x1d1f4a(0x1f9)},{'command':'aggregate','operation':a24_0x1d1f4a(0x235),'risk':a24_0x1d1f4a(0x1ee),'paramsRequired':![],'description':a24_0x1d1f4a(0x22a),'paramsHint':a24_0x1d1f4a(0x20d)+'Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':[a24_0x1d1f4a(0x1ef),a24_0x1d1f4a(0x1f1),'\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}',a24_0x1d1f4a(0x222),a24_0x1d1f4a(0x22b),a24_0x1d1f4a(0x212),a24_0x1d1f4a(0x226),'\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}','',a24_0x1d1f4a(0x224),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)',a24_0x1d1f4a(0x1ec),a24_0x1d1f4a(0x215),a24_0x1d1f4a(0x219),a24_0x1d1f4a(0x239),'',a24_0x1d1f4a(0x21e),a24_0x1d1f4a(0x1ff),'\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','',a24_0x1d1f4a(0x1e4),'\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','',a24_0x1d1f4a(0x23a)][a24_0x1d1f4a(0x22d)]('\x0a')}];function makeDataCommand(_0x46cfa1){const _0x301d2d=a24_0x1d1f4a,_0x3248dd=_0x301d2d(0x1e8)+_0x46cfa1['command'],_0x1a66db={'service':_0x301d2d(0x236),'command':_0x46cfa1[_0x301d2d(0x1f4)],'description':_0x46cfa1[_0x301d2d(0x233)],'risk':_0x46cfa1[_0x301d2d(0x204)],'helpExtra':_0x46cfa1['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x46cfa1[_0x301d2d(0x231)]}],'validate':async _0x150476=>{const _0x5578ac=_0x301d2d;_0x46cfa1[_0x5578ac(0x218)]&&requireAnyOf(_0x150476,[_0x5578ac(0x225)],_0x3248dd),_0x46cfa1[_0x5578ac(0x205)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x150476['str']('params'))),_0x46cfa1['operation']===_0x5578ac(0x200)&&parseUpdateIdsFromParams(parseJsonParams(_0x150476[_0x5578ac(0x1e7)]('params'))??{});},async 'execute'(_0x1f4e53){const _0x2a7dd8=_0x301d2d,_0x5934eb=_0x1f4e53['str'](_0x2a7dd8(0x1eb)),_0x56b731=_0x46cfa1[_0x2a7dd8(0x205)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x1f4e53['str']('params'))):parseJsonParams(_0x1f4e53['str'](_0x2a7dd8(0x225)))??{},_0x179eb9=_0x46cfa1[_0x2a7dd8(0x205)]==='update'?parseUpdateIdsFromParams(_0x56b731):undefined,_0x2bb7bc=_0x179eb9?normalizeUpdateParamsForRuntime(_0x56b731,_0x179eb9):_0x56b731,_0x59f8ed=Date[_0x2a7dd8(0x208)](),_0x15342c=await executeData(_0x5934eb,_0x46cfa1[_0x2a7dd8(0x205)],_0x2bb7bc),_0x49dd5e=Date[_0x2a7dd8(0x208)]()-_0x59f8ed,_0x46ca7f=_0x179eb9&&_0x179eb9['length']>0x1?buildBatchUpdateResult(_0x179eb9,_0x15342c):_0x15342c;return{'ok':!![],'data':{'result':_0x46ca7f,'elapsed':_0x49dd5e},'message':_0x2a7dd8(0x1e8)+_0x46cfa1[_0x2a7dd8(0x1f4)]+_0x2a7dd8(0x234)+_0x49dd5e+'ms'};}};return _0x46cfa1['risk']!==_0x301d2d(0x1ee)&&(_0x1a66db[_0x301d2d(0x1fd)]=async _0x324b23=>{const _0x56b3f7=_0x301d2d,_0x165d2b=_0x324b23[_0x56b3f7(0x1e7)](_0x56b3f7(0x1eb)),_0x17d13=_0x46cfa1[_0x56b3f7(0x205)]===_0x56b3f7(0x22c)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x324b23[_0x56b3f7(0x1e7)](_0x56b3f7(0x225)))):parseJsonParams(_0x324b23[_0x56b3f7(0x1e7)](_0x56b3f7(0x225)))??{};let _0x5d4f29=_0x17d13;if(_0x46cfa1[_0x56b3f7(0x205)]===_0x56b3f7(0x200)){const _0x4a0c4f=parseUpdateIdsFromParams(_0x17d13);_0x5d4f29=normalizeUpdateParamsForRuntime(_0x17d13,_0x4a0c4f);}return dryRun(_0x56b3f7(0x1f7),'/api/{appCode}/'+_0x165d2b+'/'+_0x46cfa1[_0x56b3f7(0x205)])[_0x56b3f7(0x216)](_0x5d4f29)[_0x56b3f7(0x233)](_0x56b3f7(0x230)+_0x46cfa1[_0x56b3f7(0x1f4)]+_0x56b3f7(0x1f6)+_0x165d2b)[_0x56b3f7(0x1f2)]();}),_0x1a66db;}function a24_0x46d5(){const _0x41f9d4=['JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','filter','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','body','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','paramsRequired','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20$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}}','map','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','\x20\x20EXAMPLES','\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$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','create','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20PARAMS\x20STRUCTURE','params','\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}','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','batchCreate','join','delete','\x20\x20LOGICAL\x20COMBINATORS','Preview:\x20data\x20','paramsHint','Update\x20an\x20existing\x20record','description','\x20completed\x20in\x20','aggregate','data','354693rSCavO','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','49MNEkUf','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\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]','637760MCZiNw','str','data\x20','333054ezMRNd','\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}}','code','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','read','\x20\x20AGGREGATE\x20TYPES','write','\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}','build','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','command','127320duKkie','\x20on\x20dataset\x20','POST','\x20\x20PAGINATION','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','getOne','1027938YuamrW','\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}}','dryRun','108283ZXEfOl','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','update','342376hMJZgx','\x20\x20WHERE\x20OPERATORS','Filter\x20dataset\x20records\x20with\x20query\x20conditions','risk','operation','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','now','\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}}','batch','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\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}}]}','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\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}'];a24_0x46d5=function(){return _0x41f9d4;};return a24_0x46d5();}export const dataDefinitions=specs[a24_0x1d1f4a(0x21c)](makeDataCommand);function buildBatchUpdateResult(_0x46cbf6,_0x290ec1){const _0x492448=a24_0x1d1f4a;return{'operation':'update','mode':_0x492448(0x20a),'ids':_0x46cbf6,'total':_0x46cbf6['length'],'result':_0x290ec1};}
1
+ const a24_0x17de94=a24_0x3535;(function(_0x83bcd6,_0x3fe051){const _0x36b281=a24_0x3535,_0x18f4ea=_0x83bcd6();while(!![]){try{const _0x4a8075=-parseInt(_0x36b281(0x7c))/0x1*(parseInt(_0x36b281(0x9e))/0x2)+parseInt(_0x36b281(0xbf))/0x3*(parseInt(_0x36b281(0xc5))/0x4)+-parseInt(_0x36b281(0x7a))/0x5+-parseInt(_0x36b281(0xcb))/0x6*(parseInt(_0x36b281(0x8e))/0x7)+parseInt(_0x36b281(0x8c))/0x8+parseInt(_0x36b281(0xa2))/0x9*(-parseInt(_0x36b281(0x8a))/0xa)+parseInt(_0x36b281(0xb3))/0xb*(parseInt(_0x36b281(0x88))/0xc);if(_0x4a8075===_0x3fe051)break;else _0x18f4ea['push'](_0x18f4ea['shift']());}catch(_0x32f7e2){_0x18f4ea['push'](_0x18f4ea['shift']());}}}(a24_0x819e,0xc072d));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a24_0x819e(){const _0x5b769f=['data\x20','\x20\x20AGGREGATE\x20TYPES','body','\x20\x20PAGINATION','\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}}','risk','168934PNuQFI','aggregate','\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}','code','36WHqYip','\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}','str','Get\x20a\x20single\x20record\x20by\x20ID','map','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','\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}','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','data','batch','length','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','Filter\x20dataset\x20records\x20with\x20query\x20conditions','Update\x20an\x20existing\x20record','\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}}','55meaAAx','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20on\x20dataset\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}','high-risk-write','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','dryRun','\x20\x20LOGICAL\x20COMBINATORS','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\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}}','3WpKyjz','\x20\x20WHERE\x20OPERATORS','description','getOne','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}}]}','3571628KCozLY','helpExtra','read','\x20\x20EXAMPLES','\x20completed\x20in\x20','\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}]','266478pMJuiL','write','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\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}}','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','4476635vbhjcy','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','2fmWSHI','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\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$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}}','join','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','update','operation','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','Preview:\x20data\x20','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','4204416UmmfmX','/api/{appCode}/','791080aCcUUI','batchCreate','8274056dTjDXx','params','238VWWrfr','now','\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\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\x20\x20PARAMS\x20STRUCTURE','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\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]','filter','command','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]'];a24_0x819e=function(){return _0x5b769f;};return a24_0x819e();}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':a24_0x17de94(0x95),'operation':a24_0x17de94(0x95),'risk':a24_0x17de94(0xc7),'paramsRequired':![],'description':a24_0x17de94(0xb0),'paramsHint':a24_0x17de94(0xb5)+'Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':[a24_0x17de94(0xc0),a24_0x17de94(0x80),a24_0x17de94(0x9c),a24_0x17de94(0x76),a24_0x17de94(0x7f),a24_0x17de94(0x7d),a24_0x17de94(0xb2),'\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\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}',a24_0x17de94(0xbe),'\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}}','',a24_0x17de94(0xbc),'\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}}]}',a24_0x17de94(0xc4),'',a24_0x17de94(0xa7),a24_0x17de94(0x79),a24_0x17de94(0x94),a24_0x17de94(0xca),a24_0x17de94(0xaa),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a24_0x17de94(0x9b),'\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.',a24_0x17de94(0xcd),a24_0x17de94(0xa8)]['join']('\x0a')},{'command':a24_0x17de94(0xc2),'operation':a24_0x17de94(0xc2),'risk':a24_0x17de94(0xc7),'paramsRequired':!![],'description':a24_0x17de94(0xa5),'paramsHint':a24_0x17de94(0xbd)},{'command':'create','operation':'create','risk':'write','paramsRequired':!![],'description':a24_0x17de94(0x93),'paramsHint':a24_0x17de94(0x85)},{'command':a24_0x17de94(0x8b),'operation':'batchCreate','risk':'write','paramsRequired':!![],'description':'Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','paramsHint':a24_0x17de94(0x77)},{'command':a24_0x17de94(0x83),'operation':a24_0x17de94(0x83),'risk':a24_0x17de94(0xcc),'paramsRequired':!![],'description':a24_0x17de94(0xb1),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20'+a24_0x17de94(0xaf)},{'command':a24_0x17de94(0xc3),'operation':a24_0x17de94(0xc3),'risk':a24_0x17de94(0xb9),'paramsRequired':!![],'description':a24_0x17de94(0x78),'paramsHint':a24_0x17de94(0xbd)},{'command':a24_0x17de94(0x9f),'operation':'aggregate','risk':'read','paramsRequired':![],'description':a24_0x17de94(0x82),'paramsHint':a24_0x17de94(0x7b)+'Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':[a24_0x17de94(0x99),a24_0x17de94(0xb8),'\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}',a24_0x17de94(0xa0),'\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}',a24_0x17de94(0x90),a24_0x17de94(0xa3),a24_0x17de94(0xa9),'',a24_0x17de94(0x92),'\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]',a24_0x17de94(0xb6),a24_0x17de94(0x7e),a24_0x17de94(0xce),a24_0x17de94(0x97),a24_0x17de94(0xba),'',a24_0x17de94(0xc8),a24_0x17de94(0xb4),'\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','',a24_0x17de94(0xab),a24_0x17de94(0x87),'',a24_0x17de94(0x91)][a24_0x17de94(0x81)]('\x0a')}];function makeDataCommand(_0x290443){const _0xc73e4b=a24_0x17de94,_0x10b739='data\x20'+_0x290443['command'],_0x39694a={'service':_0xc73e4b(0xac),'command':_0x290443[_0xc73e4b(0x96)],'description':_0x290443['description'],'risk':_0x290443[_0xc73e4b(0x9d)],'helpExtra':_0x290443[_0xc73e4b(0xc6)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x290443['paramsHint']}],'validate':async _0x3e8604=>{const _0x51c0fb=_0xc73e4b;_0x290443['paramsRequired']&&requireAnyOf(_0x3e8604,[_0x51c0fb(0x8d)],_0x10b739),_0x290443[_0x51c0fb(0x84)]===_0x51c0fb(0x8b)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3e8604[_0x51c0fb(0xa4)](_0x51c0fb(0x8d)))),_0x290443[_0x51c0fb(0x84)]===_0x51c0fb(0x83)&&parseUpdateIdsFromParams(parseJsonParams(_0x3e8604[_0x51c0fb(0xa4)](_0x51c0fb(0x8d)))??{});},async 'execute'(_0x3c1fef){const _0x462080=_0xc73e4b,_0x473ab0=_0x3c1fef[_0x462080(0xa4)]('code'),_0x5b8167=_0x290443['operation']===_0x462080(0x8b)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3c1fef[_0x462080(0xa4)](_0x462080(0x8d)))):parseJsonParams(_0x3c1fef['str'](_0x462080(0x8d)))??{},_0x263ad6=_0x290443[_0x462080(0x84)]===_0x462080(0x83)?parseUpdateIdsFromParams(_0x5b8167):undefined,_0x2e6350=_0x263ad6?normalizeUpdateParamsForRuntime(_0x5b8167,_0x263ad6):_0x5b8167,_0x492056=Date[_0x462080(0x8f)](),_0x342e5a=await executeData(_0x473ab0,_0x290443[_0x462080(0x84)],_0x2e6350),_0x8853fc=Date[_0x462080(0x8f)]()-_0x492056,_0x4c5b35=_0x263ad6&&_0x263ad6[_0x462080(0xae)]>0x1?buildBatchUpdateResult(_0x263ad6,_0x342e5a):_0x342e5a;return{'ok':!![],'data':{'result':_0x4c5b35,'elapsed':_0x8853fc},'message':_0x462080(0x98)+_0x290443[_0x462080(0x96)]+_0x462080(0xc9)+_0x8853fc+'ms'};}};return _0x290443[_0xc73e4b(0x9d)]!==_0xc73e4b(0xc7)&&(_0x39694a[_0xc73e4b(0xbb)]=async _0x3d2909=>{const _0x56ef9d=_0xc73e4b,_0x1526d6=_0x3d2909[_0x56ef9d(0xa4)](_0x56ef9d(0xa1)),_0x49c1e8=_0x290443[_0x56ef9d(0x84)]===_0x56ef9d(0x8b)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3d2909[_0x56ef9d(0xa4)](_0x56ef9d(0x8d)))):parseJsonParams(_0x3d2909[_0x56ef9d(0xa4)](_0x56ef9d(0x8d)))??{};let _0x1bc1cb=_0x49c1e8;if(_0x290443[_0x56ef9d(0x84)]===_0x56ef9d(0x83)){const _0x3f8784=parseUpdateIdsFromParams(_0x49c1e8);_0x1bc1cb=normalizeUpdateParamsForRuntime(_0x49c1e8,_0x3f8784);}return dryRun('POST',_0x56ef9d(0x89)+_0x1526d6+'/'+_0x290443[_0x56ef9d(0x84)])[_0x56ef9d(0x9a)](_0x1bc1cb)[_0x56ef9d(0xc1)](_0x56ef9d(0x86)+_0x290443['command']+_0x56ef9d(0xb7)+_0x1526d6)['build']();}),_0x39694a;}export const dataDefinitions=specs[a24_0x17de94(0xa6)](makeDataCommand);function a24_0x3535(_0xa33f55,_0x452eee){_0xa33f55=_0xa33f55-0x76;const _0x819e32=a24_0x819e();let _0x35354c=_0x819e32[_0xa33f55];return _0x35354c;}function buildBatchUpdateResult(_0x18b8a0,_0x1827b1){const _0x4108ae=a24_0x17de94;return{'operation':_0x4108ae(0x83),'mode':_0x4108ae(0xad),'ids':_0x18b8a0,'total':_0x18b8a0[_0x4108ae(0xae)],'result':_0x1827b1};}
@@ -1 +1 @@
1
- const a25_0x3ea9ac=a25_0x2414;(function(_0x17d0f5,_0x17ecb6){const _0xd1137=a25_0x2414,_0x530e7b=_0x17d0f5();while(!![]){try{const _0x2d8878=parseInt(_0xd1137(0x9e))/0x1*(-parseInt(_0xd1137(0x6e))/0x2)+-parseInt(_0xd1137(0x97))/0x3+-parseInt(_0xd1137(0xb0))/0x4+parseInt(_0xd1137(0x8b))/0x5+parseInt(_0xd1137(0xa7))/0x6+-parseInt(_0xd1137(0xa2))/0x7+parseInt(_0xd1137(0x8e))/0x8;if(_0x2d8878===_0x17ecb6)break;else _0x530e7b['push'](_0x530e7b['shift']());}catch(_0x45e72a){_0x530e7b['push'](_0x530e7b['shift']());}}}(a25_0x1ffa,0xa3288));function a25_0x2414(_0x31839a,_0x59ce8d){_0x31839a=_0x31839a-0x6e;const _0x1ffaf1=a25_0x1ffa();let _0x241468=_0x1ffaf1[_0x31839a];return _0x241468;}import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0xabef75){const _0x1b538b=a25_0x2414;if(_0xabef75[_0x1b538b(0x8c)])return null;const _0x4d89cf=Boolean(_0xabef75[_0x1b538b(0x75)]!==undefined||_0xabef75[_0x1b538b(0x88)]!==undefined);let _0x39acdc={};if(!_0x4d89cf&&typeof _0xabef75['extend']==='string')try{_0x39acdc=JSON[_0x1b538b(0x9c)](_0xabef75[_0x1b538b(0xac)]);}catch{}const _0x648c9=_0x4d89cf?_0xabef75[_0x1b538b(0x85)]:_0xabef75['code'],_0x17790e=_0x4d89cf?_0xabef75[_0x1b538b(0x75)]:_0xabef75[_0x1b538b(0x85)],_0xd66b8d=_0x4d89cf?_0xabef75['doType']:_0xabef75[_0x1b538b(0x7a)]||_0xabef75['dataType'],_0x5c3943=_0x4d89cf?_0xabef75[_0x1b538b(0x78)]===!![]:_0x39acdc[_0x1b538b(0x78)]===!![],_0x356e90=_0x4d89cf?_0xabef75['required']===!![]:_0x39acdc[_0x1b538b(0xa4)]===!![],_0xac2651=_0x4d89cf?_0xabef75[_0x1b538b(0x9a)]??null:_0x39acdc['options']??null,_0x47ad68={'name':_0x648c9,'displayName':_0x17790e||_0x648c9,'type':_0xd66b8d,'dbType':_0xabef75[_0x1b538b(0x81)],'pk':_0x5c3943,'required':_0x356e90,'description':_0xabef75[_0x1b538b(0x7e)]||undefined};return Array[_0x1b538b(0x70)](_0xac2651)&&_0xac2651[_0x1b538b(0x84)]>0x0&&(_0x47ad68[_0x1b538b(0x9a)]=_0xac2651),_0x47ad68;}function parseJsonMaybe(_0x445116){const _0x5b056f=a25_0x2414;if(typeof _0x445116!==_0x5b056f(0xa1))return _0x445116;try{return JSON[_0x5b056f(0x9c)](_0x445116);}catch{return _0x445116;}}function normalizeOperationEntry(_0x5e2972,_0x511805){const _0x4fe7a6=a25_0x2414;if(!_0x511805||typeof _0x511805!==_0x4fe7a6(0x91))return null;if(!_0x511805[_0x4fe7a6(0x79)]||!_0x511805['path'])return null;const _0x372106={'name':_0x5e2972,'method':_0x511805[_0x4fe7a6(0x79)],'path':_0x511805[_0x4fe7a6(0x76)]};if(_0x511805[_0x4fe7a6(0x9f)])_0x372106['host']=_0x511805[_0x4fe7a6(0x9f)];if(_0x511805['requestBody']!=null)_0x372106['requestBody']=parseJsonMaybe(_0x511805['requestBody']);if(_0x511805['responseBody']!=null)_0x372106['responseBody']=parseJsonMaybe(_0x511805['responseBody']);if(_0x511805['beforeScriptId']!=null)_0x372106[_0x4fe7a6(0xad)]=_0x511805[_0x4fe7a6(0xad)];if(_0x511805[_0x4fe7a6(0xab)]!=null)_0x372106[_0x4fe7a6(0xab)]=_0x511805['afterScriptId'];if(Array['isArray'](_0x511805[_0x4fe7a6(0x73)]))_0x372106[_0x4fe7a6(0x73)]=_0x511805[_0x4fe7a6(0x73)];if(Array[_0x4fe7a6(0x70)](_0x511805[_0x4fe7a6(0x80)]))_0x372106[_0x4fe7a6(0x80)]=_0x511805[_0x4fe7a6(0x80)];return _0x372106;}function summarizeDbtable(_0x4de05d){const _0x533ee3=a25_0x2414,_0x5dda78={},_0x1148c5=[_0x533ee3(0x90),_0x533ee3(0x7c),_0x533ee3(0x87),_0x533ee3(0x9d),_0x533ee3(0x78),'allFields','logicField','createTimeField',_0x533ee3(0x72),_0x533ee3(0x92),_0x533ee3(0x71),_0x533ee3(0x7b),'modifierNameField','labelField',_0x533ee3(0x7d)];for(const _0x12fb73 of _0x1148c5){if(_0x4de05d[_0x12fb73]!==undefined)_0x5dda78[_0x12fb73]=_0x4de05d[_0x12fb73];}return typeof _0x5dda78[_0x533ee3(0xa8)]==='string'&&_0x5dda78[_0x533ee3(0xa8)][_0x533ee3(0x84)]>0x0&&(_0x5dda78['allFieldNames']=_0x5dda78[_0x533ee3(0xa8)]['split'](',')[_0x533ee3(0xa9)](_0x235d00=>_0x235d00[_0x533ee3(0x89)]())[_0x533ee3(0x8f)](Boolean)),_0x5dda78;}function normalizeRelatedPages(_0x32daa4){const _0x10d364=a25_0x2414;if(!Array[_0x10d364(0x70)](_0x32daa4))return[];return _0x32daa4['filter'](_0x3ad8d4=>_0x3ad8d4&&typeof _0x3ad8d4===_0x10d364(0x91))[_0x10d364(0xa9)](_0x55030e=>({'id':_0x55030e['id'],'type':_0x55030e[_0x10d364(0x7a)],'code':_0x55030e[_0x10d364(0x94)],'title':_0x55030e['title'],'deleted':_0x55030e[_0x10d364(0x8c)]===!![]}));}function normalizeFallbackFieldName(_0x41d473,_0x4c2bb8){const _0xab4770=a25_0x2414,_0x2def5d=_0x41d473[_0xab4770(0x89)]();if(!_0x2def5d)return null;return{'name':_0x2def5d,'displayName':_0x2def5d,'type':undefined,'dbType':undefined,'pk':_0x2def5d===_0x4c2bb8,'required':![],'description':undefined};}async function loadListFieldFallback(_0x8c1a08,_0x27b25d){const _0x19c36d=a25_0x2414;if(!_0x8c1a08||!_0x27b25d)return[];try{const _0x5dc7c7=await listDatasets(_0x8c1a08,{'code':_0x27b25d}),_0x100b7e=_0x5dc7c7['find'](_0x4b5749=>_0x4b5749[_0x19c36d(0x94)]===_0x27b25d)??_0x5dc7c7[0x0],_0x43ae46=_0x100b7e?.[_0x19c36d(0x74)]??{},_0x4fc2d2=typeof _0x43ae46[_0x19c36d(0xa8)]===_0x19c36d(0xa1)?_0x43ae46[_0x19c36d(0xa8)][_0x19c36d(0x98)](','):[];return _0x4fc2d2[_0x19c36d(0xa9)](_0xa25ced=>normalizeFallbackFieldName(_0xa25ced,_0x43ae46[_0x19c36d(0x78)]))['filter'](_0xa561d=>_0xa561d!==null);}catch{return[];}}export const datasetDetail={'service':a25_0x3ea9ac(0x8d),'command':a25_0x3ea9ac(0x8a),'description':a25_0x3ea9ac(0xaf),'risk':'read','flags':[CODE_FLAG],async 'execute'(_0x2d570d){const _0x103208=a25_0x3ea9ac,_0x313114=await getDatasetDetail(_0x2d570d[_0x103208(0x77)]('code')),_0x271784=Array[_0x103208(0x70)](_0x313114['fields'])?_0x313114[_0x103208(0x6f)]:Array[_0x103208(0x70)](_0x313114['properties'])?_0x313114[_0x103208(0xa3)]:[];let _0x4c5d12=_0x271784['map'](_0x2bcb43=>normalizeField(_0x2bcb43))[_0x103208(0x8f)](_0x515e6e=>_0x515e6e!==null);_0x4c5d12[_0x103208(0x84)]===0x0&&(_0x4c5d12=await loadListFieldFallback(_0x2d570d[_0x103208(0x82)],_0x2d570d['str'](_0x103208(0x94))));const _0x1585b9=_0x313114[_0x103208(0xa5)]??{},_0xe1f91c=[];for(const [_0x50c709,_0x2b6846]of Object[_0x103208(0x86)](_0x1585b9)){const _0x110274=normalizeOperationEntry(_0x50c709,_0x2b6846);if(_0x110274)_0xe1f91c[_0x103208(0x9b)](_0x110274);}const _0x9d5c24=_0x313114[_0x103208(0x74)]??{},_0x5ade55=_0x313114['dataset']??{},_0x35ce94=_0x9d5c24[_0x103208(0x90)]!=null?{'id':_0x9d5c24[_0x103208(0x90)],'name':_0x9d5c24[_0x103208(0x7c)]??null}:undefined;let _0x2400fd;return typeof _0x313114[_0x103208(0xac)]===_0x103208(0xa1)&&(_0x2400fd=parseJsonMaybe(_0x313114[_0x103208(0xac)])),{'ok':!![],'data':{'id':_0x313114['modelId']??_0x313114['id'],'name':_0x313114[_0x103208(0x85)],'code':_0x313114[_0x103208(0xa0)]||_0x313114[_0x103208(0x94)],'doVersion':_0x313114[_0x103208(0x83)],'description':_0x313114['description']||_0x5ade55['tableComment']||undefined,'source':_0x313114[_0x103208(0xa6)]||_0x5ade55[_0x103208(0xae)],'table':_0x9d5c24['tableName']||_0x5ade55[_0x103208(0x87)],'datasetKey':_0x9d5c24[_0x103208(0x9d)],'pk':_0x9d5c24[_0x103208(0x78)],'db':_0x35ce94,'dbtable':summarizeDbtable(_0x9d5c24),'fields':_0x4c5d12,'operations':_0xe1f91c,'indexes':Array[_0x103208(0x70)](_0x5ade55['indexes'])?_0x5ade55[_0x103208(0x93)]:[],'relations':_0x313114[_0x103208(0x96)]??null,'relatedPages':normalizeRelatedPages(_0x313114[_0x103208(0xaa)]),...Array['isArray'](_0x313114['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x313114[_0x103208(0x99)]}:{},'formatRules':Array[_0x103208(0x70)](_0x313114[_0x103208(0x7f)])?_0x313114[_0x103208(0x7f)]:[],'validateRules':Array[_0x103208(0x70)](_0x313114[_0x103208(0x95)])?_0x313114['validateRules']:[],..._0x2400fd!==undefined?{'extend':_0x2400fd}:{},'stats':{'fieldCount':_0x4c5d12[_0x103208(0x84)],'operationCount':_0xe1f91c['length']}}};}};function a25_0x1ffa(){const _0x548d97=['method','type','modifierIdField','dbName','dblinkInfoDTO','description','formatRules','responseFields','dbType','appCode','doVersion','length','name','entries','tableName','doType','trim','detail','3016910GAwina','deleted','dataset','9939568sgUkbA','filter','dbId','object','creatorIdField','indexes','code','validateRules','relations','1619862KVJXmf','split','columnCodeListWithDeleted','options','push','parse','datasetKey','556387Zzsmgl','host','modelCode','string','1572620tuWrIQ','properties','required','operations','source','4709436aAYqzc','allFields','map','relatedPageInfoList','afterScriptId','extend','beforeScriptId','sourceType','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','340200JWTKQv','4RaTZui','fields','isArray','creatorNameField','updateTimeField','requestFields','dbtableConfig','displayName','path','str','pkField'];a25_0x1ffa=function(){return _0x548d97;};return a25_0x1ffa();}
1
+ const a25_0x107f4a=a25_0x4da9;(function(_0x24627f,_0x2bf69c){const _0x21ab6c=a25_0x4da9,_0x392dfe=_0x24627f();while(!![]){try{const _0x2ef11b=parseInt(_0x21ab6c(0x1e8))/0x1*(parseInt(_0x21ab6c(0x1b9))/0x2)+-parseInt(_0x21ab6c(0x1da))/0x3+-parseInt(_0x21ab6c(0x1e9))/0x4+parseInt(_0x21ab6c(0x1ee))/0x5+parseInt(_0x21ab6c(0x1d9))/0x6+parseInt(_0x21ab6c(0x1ce))/0x7+-parseInt(_0x21ab6c(0x1e0))/0x8*(-parseInt(_0x21ab6c(0x1c7))/0x9);if(_0x2ef11b===_0x2bf69c)break;else _0x392dfe['push'](_0x392dfe['shift']());}catch(_0x251cd4){_0x392dfe['push'](_0x392dfe['shift']());}}}(a25_0x235d,0x9d53c));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a25_0x4da9(_0x1f33ec,_0x258fec){_0x1f33ec=_0x1f33ec-0x1b6;const _0x235d14=a25_0x235d();let _0x4da931=_0x235d14[_0x1f33ec];return _0x4da931;}import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x2ca945){const _0x5879c7=a25_0x4da9;if(_0x2ca945['deleted'])return null;const _0x447a17=Boolean(_0x2ca945[_0x5879c7(0x1c8)]!==undefined||_0x2ca945['doType']!==undefined);let _0x38612a={};if(!_0x447a17&&typeof _0x2ca945['extend']===_0x5879c7(0x1f7))try{_0x38612a=JSON[_0x5879c7(0x1f1)](_0x2ca945['extend']);}catch{}const _0x58fec2=_0x447a17?_0x2ca945[_0x5879c7(0x1b6)]:_0x2ca945['code'],_0x10db37=_0x447a17?_0x2ca945[_0x5879c7(0x1c8)]:_0x2ca945[_0x5879c7(0x1b6)],_0x34edb1=_0x447a17?_0x2ca945[_0x5879c7(0x1de)]:_0x2ca945[_0x5879c7(0x1e2)]||_0x2ca945[_0x5879c7(0x1df)],_0x382f2c=_0x447a17?_0x2ca945[_0x5879c7(0x1f8)]===!![]:_0x38612a['pkField']===!![],_0x4aabd4=_0x447a17?_0x2ca945[_0x5879c7(0x1e4)]===!![]:_0x38612a[_0x5879c7(0x1e4)]===!![],_0xe25b49=_0x447a17?_0x2ca945[_0x5879c7(0x1be)]??null:_0x38612a[_0x5879c7(0x1be)]??null,_0xe3ff9d={'name':_0x58fec2,'displayName':_0x10db37||_0x58fec2,'type':_0x34edb1,'dbType':_0x2ca945[_0x5879c7(0x1c0)],'pk':_0x382f2c,'required':_0x4aabd4,'description':_0x2ca945[_0x5879c7(0x1e1)]||undefined};return Array[_0x5879c7(0x1cd)](_0xe25b49)&&_0xe25b49[_0x5879c7(0x1bd)]>0x0&&(_0xe3ff9d[_0x5879c7(0x1be)]=_0xe25b49),_0xe3ff9d;}function a25_0x235d(){const _0x2e950c=['modifierNameField','read','logicField','tableName','validateRules','94086hvTgrN','displayName','entries','requestBody','host','detail','isArray','1878100ZLDkJy','beforeScriptId','properties','responseFields','method','responseBody','creatorNameField','code','createTimeField','allFieldNames','deleted','2781354uUgukI','3706230ohENAj','afterScriptId','doVersion','extend','doType','dataType','656mlhplh','description','type','relatedPageInfoList','required','split','find','str','165091cTdbjY','1595416LQmSdj','dbName','filter','relations','fields','146125AcoXOZ','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','map','parse','indexes','dbId','path','creatorIdField','object','string','pkField','push','modelId','requestFields','columnCodeListWithDeleted','modelCode','name','source','appCode','8BPdvic','modifierIdField','allFields','trim','length','options','dbtableConfig','dbType','formatRules'];a25_0x235d=function(){return _0x2e950c;};return a25_0x235d();}function parseJsonMaybe(_0x161ed3){const _0xf4ca4=a25_0x4da9;if(typeof _0x161ed3!==_0xf4ca4(0x1f7))return _0x161ed3;try{return JSON[_0xf4ca4(0x1f1)](_0x161ed3);}catch{return _0x161ed3;}}function normalizeOperationEntry(_0x349b94,_0x5b826f){const _0x128b7d=a25_0x4da9;if(!_0x5b826f||typeof _0x5b826f!=='object')return null;if(!_0x5b826f[_0x128b7d(0x1d2)]||!_0x5b826f[_0x128b7d(0x1f4)])return null;const _0x30b669={'name':_0x349b94,'method':_0x5b826f[_0x128b7d(0x1d2)],'path':_0x5b826f['path']};if(_0x5b826f[_0x128b7d(0x1cb)])_0x30b669['host']=_0x5b826f['host'];if(_0x5b826f['requestBody']!=null)_0x30b669[_0x128b7d(0x1ca)]=parseJsonMaybe(_0x5b826f[_0x128b7d(0x1ca)]);if(_0x5b826f[_0x128b7d(0x1d3)]!=null)_0x30b669[_0x128b7d(0x1d3)]=parseJsonMaybe(_0x5b826f[_0x128b7d(0x1d3)]);if(_0x5b826f[_0x128b7d(0x1cf)]!=null)_0x30b669['beforeScriptId']=_0x5b826f['beforeScriptId'];if(_0x5b826f[_0x128b7d(0x1db)]!=null)_0x30b669[_0x128b7d(0x1db)]=_0x5b826f['afterScriptId'];if(Array[_0x128b7d(0x1cd)](_0x5b826f[_0x128b7d(0x1fb)]))_0x30b669['requestFields']=_0x5b826f[_0x128b7d(0x1fb)];if(Array[_0x128b7d(0x1cd)](_0x5b826f[_0x128b7d(0x1d1)]))_0x30b669[_0x128b7d(0x1d1)]=_0x5b826f[_0x128b7d(0x1d1)];return _0x30b669;}function summarizeDbtable(_0x26e776){const _0x4f71e4=a25_0x4da9,_0x2d247a={},_0x4ba63e=[_0x4f71e4(0x1f3),_0x4f71e4(0x1ea),'tableName','datasetKey',_0x4f71e4(0x1f8),_0x4f71e4(0x1bb),_0x4f71e4(0x1c4),_0x4f71e4(0x1d6),'updateTimeField',_0x4f71e4(0x1f5),_0x4f71e4(0x1d4),_0x4f71e4(0x1ba),_0x4f71e4(0x1c2),'labelField','dblinkInfoDTO'];for(const _0x6429d9 of _0x4ba63e){if(_0x26e776[_0x6429d9]!==undefined)_0x2d247a[_0x6429d9]=_0x26e776[_0x6429d9];}return typeof _0x2d247a[_0x4f71e4(0x1bb)]===_0x4f71e4(0x1f7)&&_0x2d247a['allFields'][_0x4f71e4(0x1bd)]>0x0&&(_0x2d247a[_0x4f71e4(0x1d7)]=_0x2d247a[_0x4f71e4(0x1bb)][_0x4f71e4(0x1e5)](',')[_0x4f71e4(0x1f0)](_0x1c7b54=>_0x1c7b54['trim']())[_0x4f71e4(0x1eb)](Boolean)),_0x2d247a;}function normalizeRelatedPages(_0x35137c){const _0x1c78fe=a25_0x4da9;if(!Array[_0x1c78fe(0x1cd)](_0x35137c))return[];return _0x35137c[_0x1c78fe(0x1eb)](_0x59a633=>_0x59a633&&typeof _0x59a633===_0x1c78fe(0x1f6))['map'](_0x82f080=>({'id':_0x82f080['id'],'type':_0x82f080[_0x1c78fe(0x1e2)],'code':_0x82f080['code'],'title':_0x82f080['title'],'deleted':_0x82f080[_0x1c78fe(0x1d8)]===!![]}));}function normalizeFallbackFieldName(_0x26e478,_0x24e586){const _0x250937=a25_0x4da9,_0xc419c8=_0x26e478[_0x250937(0x1bc)]();if(!_0xc419c8)return null;return{'name':_0xc419c8,'displayName':_0xc419c8,'type':undefined,'dbType':undefined,'pk':_0xc419c8===_0x24e586,'required':![],'description':undefined};}async function loadListFieldFallback(_0x57bd6b,_0x46095b){const _0x4cda92=a25_0x4da9;if(!_0x57bd6b||!_0x46095b)return[];try{const _0x3924ea=await listDatasets(_0x57bd6b,{'code':_0x46095b}),_0x26d490=_0x3924ea[_0x4cda92(0x1e6)](_0x4802b5=>_0x4802b5[_0x4cda92(0x1d5)]===_0x46095b)??_0x3924ea[0x0],_0x5868f7=_0x26d490?.['dbtableConfig']??{},_0x4dcb64=typeof _0x5868f7['allFields']===_0x4cda92(0x1f7)?_0x5868f7[_0x4cda92(0x1bb)]['split'](','):[];return _0x4dcb64['map'](_0x179be6=>normalizeFallbackFieldName(_0x179be6,_0x5868f7[_0x4cda92(0x1f8)]))[_0x4cda92(0x1eb)](_0x1a70e6=>_0x1a70e6!==null);}catch{return[];}}export const datasetDetail={'service':'dataset','command':a25_0x107f4a(0x1cc),'description':a25_0x107f4a(0x1ef),'risk':a25_0x107f4a(0x1c3),'flags':[CODE_FLAG],async 'execute'(_0x26539a){const _0x168d68=a25_0x107f4a,_0x3910d3=await getDatasetDetail(_0x26539a[_0x168d68(0x1e7)](_0x168d68(0x1d5))),_0x47866a=Array[_0x168d68(0x1cd)](_0x3910d3[_0x168d68(0x1ed)])?_0x3910d3[_0x168d68(0x1ed)]:Array['isArray'](_0x3910d3[_0x168d68(0x1d0)])?_0x3910d3[_0x168d68(0x1d0)]:[];let _0x59d22d=_0x47866a['map'](_0xfee06a=>normalizeField(_0xfee06a))[_0x168d68(0x1eb)](_0x595f74=>_0x595f74!==null);_0x59d22d['length']===0x0&&(_0x59d22d=await loadListFieldFallback(_0x26539a[_0x168d68(0x1b8)],_0x26539a[_0x168d68(0x1e7)]('code')));const _0x237852=_0x3910d3['operations']??{},_0xc01373=[];for(const [_0x2b8d82,_0x362264]of Object[_0x168d68(0x1c9)](_0x237852)){const _0x17622e=normalizeOperationEntry(_0x2b8d82,_0x362264);if(_0x17622e)_0xc01373[_0x168d68(0x1f9)](_0x17622e);}const _0x328ab9=_0x3910d3[_0x168d68(0x1bf)]??{},_0x231fef=_0x3910d3['dataset']??{},_0x1e0db0=_0x328ab9[_0x168d68(0x1f3)]!=null?{'id':_0x328ab9[_0x168d68(0x1f3)],'name':_0x328ab9[_0x168d68(0x1ea)]??null}:undefined;let _0x382752;return typeof _0x3910d3[_0x168d68(0x1dd)]==='string'&&(_0x382752=parseJsonMaybe(_0x3910d3['extend'])),{'ok':!![],'data':{'id':_0x3910d3[_0x168d68(0x1fa)]??_0x3910d3['id'],'name':_0x3910d3['name'],'code':_0x3910d3[_0x168d68(0x1fd)]||_0x3910d3[_0x168d68(0x1d5)],'doVersion':_0x3910d3[_0x168d68(0x1dc)],'description':_0x3910d3['description']||_0x231fef['tableComment']||undefined,'source':_0x3910d3[_0x168d68(0x1b7)]||_0x231fef['sourceType'],'table':_0x328ab9[_0x168d68(0x1c5)]||_0x231fef['tableName'],'datasetKey':_0x328ab9['datasetKey'],'pk':_0x328ab9[_0x168d68(0x1f8)],'db':_0x1e0db0,'dbtable':summarizeDbtable(_0x328ab9),'fields':_0x59d22d,'operations':_0xc01373,'indexes':Array[_0x168d68(0x1cd)](_0x231fef['indexes'])?_0x231fef[_0x168d68(0x1f2)]:[],'relations':_0x3910d3[_0x168d68(0x1ec)]??null,'relatedPages':normalizeRelatedPages(_0x3910d3[_0x168d68(0x1e3)]),...Array['isArray'](_0x3910d3[_0x168d68(0x1fc)])?{'columnCodeListWithDeleted':_0x3910d3['columnCodeListWithDeleted']}:{},'formatRules':Array['isArray'](_0x3910d3[_0x168d68(0x1c1)])?_0x3910d3['formatRules']:[],'validateRules':Array[_0x168d68(0x1cd)](_0x3910d3[_0x168d68(0x1c6)])?_0x3910d3[_0x168d68(0x1c6)]:[],..._0x382752!==undefined?{'extend':_0x382752}:{},'stats':{'fieldCount':_0x59d22d[_0x168d68(0x1bd)],'operationCount':_0xc01373[_0x168d68(0x1bd)]}}};}};
@@ -1 +1 @@
1
- (function(_0x5cf139,_0x164533){const _0x3f6ebe=a26_0x3e34,_0x45866d=_0x5cf139();while(!![]){try{const _0x52d46e=parseInt(_0x3f6ebe(0x119))/0x1+-parseInt(_0x3f6ebe(0x11e))/0x2+parseInt(_0x3f6ebe(0x11a))/0x3*(parseInt(_0x3f6ebe(0x11d))/0x4)+-parseInt(_0x3f6ebe(0x120))/0x5*(parseInt(_0x3f6ebe(0x121))/0x6)+-parseInt(_0x3f6ebe(0x11b))/0x7+-parseInt(_0x3f6ebe(0x11c))/0x8+parseInt(_0x3f6ebe(0x118))/0x9*(parseInt(_0x3f6ebe(0x11f))/0xa);if(_0x52d46e===_0x164533)break;else _0x45866d['push'](_0x45866d['shift']());}catch(_0x46af6f){_0x45866d['push'](_0x45866d['shift']());}}}(a26_0x12c2,0x8eff7));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a26_0x12c2(){const _0x16ac17=['9uFzusA','179092XYbXcy','5331AHnUIG','447447fKfqdn','7170832JjqEDl','68pIdbpa','162502TFXWRf','25039610svPGXZ','1055nMnFZj','30882SSSYBs'];a26_0x12c2=function(){return _0x16ac17;};return a26_0x12c2();}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a26_0x3e34(_0x1737c2,_0x355a46){_0x1737c2=_0x1737c2-0x118;const _0x12c28e=a26_0x12c2();let _0x3e3464=_0x12c28e[_0x1737c2];return _0x3e3464;}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ (function(_0x54f838,_0x50e97d){const _0x5a0cb7=a26_0xa8c1,_0x13d94e=_0x54f838();while(!![]){try{const _0x412293=-parseInt(_0x5a0cb7(0x1d7))/0x1+-parseInt(_0x5a0cb7(0x1d9))/0x2*(parseInt(_0x5a0cb7(0x1d1))/0x3)+-parseInt(_0x5a0cb7(0x1d3))/0x4+-parseInt(_0x5a0cb7(0x1d0))/0x5+parseInt(_0x5a0cb7(0x1d5))/0x6*(parseInt(_0x5a0cb7(0x1d2))/0x7)+-parseInt(_0x5a0cb7(0x1d6))/0x8+-parseInt(_0x5a0cb7(0x1d4))/0x9*(-parseInt(_0x5a0cb7(0x1d8))/0xa);if(_0x412293===_0x50e97d)break;else _0x13d94e['push'](_0x13d94e['shift']());}catch(_0x52a09b){_0x13d94e['push'](_0x13d94e['shift']());}}}(a26_0x5ea8,0x773df));function a26_0xa8c1(_0xe3a478,_0x3bd28c){_0xe3a478=_0xe3a478-0x1d0;const _0x5ea880=a26_0x5ea8();let _0xa8c1c1=_0x5ea880[_0xe3a478];return _0xa8c1c1;}function a26_0x5ea8(){const _0x4cbf3c=['1705544UfEARf','5153742VTvRPy','494958qaPlvh','731672VRXClM','438150otyJod','30UhQeZH','2KpPsuY','802045LQLGSq','1824159RXbZvM','42yIULss'];a26_0x5ea8=function(){return _0x4cbf3c;};return a26_0x5ea8();}import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- const a27_0x3ab332=a27_0x38f5;(function(_0x574f00,_0x508b67){const _0x55a9f8=a27_0x38f5,_0x2c1859=_0x574f00();while(!![]){try{const _0x56013e=-parseInt(_0x55a9f8(0x144))/0x1+-parseInt(_0x55a9f8(0x146))/0x2+parseInt(_0x55a9f8(0x14b))/0x3+-parseInt(_0x55a9f8(0x13f))/0x4*(-parseInt(_0x55a9f8(0x13b))/0x5)+parseInt(_0x55a9f8(0x135))/0x6+parseInt(_0x55a9f8(0x133))/0x7*(-parseInt(_0x55a9f8(0x145))/0x8)+parseInt(_0x55a9f8(0x142))/0x9;if(_0x56013e===_0x508b67)break;else _0x2c1859['push'](_0x2c1859['shift']());}catch(_0x36025e){_0x2c1859['push'](_0x2c1859['shift']());}}}(a27_0x409e,0x8adae));function a27_0x409e(){const _0x438f2b=['name','551000HNrdUF','488hGENxV','2166214myQlQx','read','appCode','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','code','1984569OWoKXe','34118OTklkZ','allFields','3523386QubbOF','source','pkField','split','length','list','175HwltwC','map','str','string','116732HmWszr','dataset','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','2070108DfEKCa'];a27_0x409e=function(){return _0x438f2b;};return a27_0x409e();}function a27_0x38f5(_0x3843fd,_0x3ad2df){_0x3843fd=_0x3843fd-0x133;const _0x409e52=a27_0x409e();let _0x38f5a0=_0x409e52[_0x3843fd];return _0x38f5a0;}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a27_0x3ab332(0x140),'command':a27_0x3ab332(0x13a),'description':a27_0x3ab332(0x141),'risk':a27_0x3ab332(0x147),'flags':[{'name':a27_0x3ab332(0x143),'type':a27_0x3ab332(0x13e),'description':a27_0x3ab332(0x149)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0xcfe7e4){const _0x1d23d7=a27_0x3ab332,_0x27a4ab=_0xcfe7e4['str'](_0x1d23d7(0x143)),_0x3ab5b4=_0xcfe7e4[_0x1d23d7(0x13d)]('code'),_0x315a6e=await listDatasets(_0xcfe7e4[_0x1d23d7(0x148)],{..._0x27a4ab&&{'name':_0x27a4ab},..._0x3ab5b4&&{'code':_0x3ab5b4}});return{'ok':!![],'data':{'total':_0x315a6e[_0x1d23d7(0x139)],'datasets':_0x315a6e[_0x1d23d7(0x13c)](_0x1fbd1c=>{const _0x36498f=_0x1d23d7,_0x1a41d4=_0x1fbd1c['dbtableConfig']??{};return{'id':_0x1fbd1c['id'],'code':_0x1fbd1c[_0x36498f(0x14a)],'name':_0x1fbd1c[_0x36498f(0x143)],'source':_0x1fbd1c[_0x36498f(0x136)],'description':_0x1fbd1c['description'],'table':_0x1a41d4['tableName'],'datasetKey':_0x1a41d4['datasetKey'],'pk':_0x1a41d4[_0x36498f(0x137)],'fields':_0x1a41d4[_0x36498f(0x134)]?_0x1a41d4['allFields'][_0x36498f(0x138)](',')[_0x36498f(0x13c)](_0x12d636=>_0x12d636['trim']()):[]};})}};}};
1
+ function a27_0x1349(_0x59ac9f,_0x3a9c76){_0x59ac9f=_0x59ac9f-0xa9;const _0x2a160a=a27_0x2a16();let _0x134952=_0x2a160a[_0x59ac9f];return _0x134952;}const a27_0xf996a=a27_0x1349;(function(_0x294ed3,_0x499308){const _0x796cd9=a27_0x1349,_0x3ebd5b=_0x294ed3();while(!![]){try{const _0x950110=-parseInt(_0x796cd9(0xba))/0x1*(-parseInt(_0x796cd9(0xb1))/0x2)+-parseInt(_0x796cd9(0xb4))/0x3+parseInt(_0x796cd9(0xae))/0x4+-parseInt(_0x796cd9(0xc2))/0x5*(parseInt(_0x796cd9(0xaa))/0x6)+-parseInt(_0x796cd9(0xc0))/0x7+-parseInt(_0x796cd9(0xbd))/0x8+parseInt(_0x796cd9(0xc1))/0x9;if(_0x950110===_0x499308)break;else _0x3ebd5b['push'](_0x3ebd5b['shift']());}catch(_0x408840){_0x3ebd5b['push'](_0x3ebd5b['shift']());}}}(a27_0x2a16,0xdcbe3));function a27_0x2a16(){const _0x1fe8ca=['code','tableName','916907hnAJCi','length','description','10295752OqAgVw','source','name','10551898SpnAAv','43639749CrdECG','5JqyuUY','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','9905340dYxLKe','dbtableConfig','dataset','allFields','2223568SgelSz','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','map','2ntSqQy','pkField','str','2916672FPGWiT','trim','datasetKey','list'];a27_0x2a16=function(){return _0x1fe8ca;};return a27_0x2a16();}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a27_0xf996a(0xac),'command':a27_0xf996a(0xb7),'description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':'read','flags':[{'name':a27_0xf996a(0xbf),'type':'string','description':a27_0xf996a(0xaf)},{...CODE_FLAG,'required':![],'description':a27_0xf996a(0xa9)}],async 'execute'(_0x35de1e){const _0x428b45=a27_0xf996a,_0x1b5bc9=_0x35de1e[_0x428b45(0xb3)](_0x428b45(0xbf)),_0x4dad6e=_0x35de1e[_0x428b45(0xb3)]('code'),_0x55347e=await listDatasets(_0x35de1e['appCode'],{..._0x1b5bc9&&{'name':_0x1b5bc9},..._0x4dad6e&&{'code':_0x4dad6e}});return{'ok':!![],'data':{'total':_0x55347e[_0x428b45(0xbb)],'datasets':_0x55347e[_0x428b45(0xb0)](_0x1d179a=>{const _0x16a51c=_0x428b45,_0x307be6=_0x1d179a[_0x16a51c(0xab)]??{};return{'id':_0x1d179a['id'],'code':_0x1d179a[_0x16a51c(0xb8)],'name':_0x1d179a[_0x16a51c(0xbf)],'source':_0x1d179a[_0x16a51c(0xbe)],'description':_0x1d179a[_0x16a51c(0xbc)],'table':_0x307be6[_0x16a51c(0xb9)],'datasetKey':_0x307be6[_0x16a51c(0xb6)],'pk':_0x307be6[_0x16a51c(0xb2)],'fields':_0x307be6[_0x16a51c(0xad)]?_0x307be6[_0x16a51c(0xad)]['split'](',')[_0x16a51c(0xb0)](_0x2778b8=>_0x2778b8[_0x16a51c(0xb5)]()):[]};})}};}};
@@ -1 +1 @@
1
- const a28_0x5ebd85=a28_0x320e;(function(_0x24ff08,_0x737dad){const _0x20ec98=a28_0x320e,_0x202963=_0x24ff08();while(!![]){try{const _0x22e166=parseInt(_0x20ec98(0x1a1))/0x1*(parseInt(_0x20ec98(0x192))/0x2)+-parseInt(_0x20ec98(0x199))/0x3*(-parseInt(_0x20ec98(0x196))/0x4)+-parseInt(_0x20ec98(0x19d))/0x5+-parseInt(_0x20ec98(0x190))/0x6*(parseInt(_0x20ec98(0x195))/0x7)+parseInt(_0x20ec98(0x19f))/0x8*(parseInt(_0x20ec98(0x1a2))/0x9)+parseInt(_0x20ec98(0x197))/0xa*(-parseInt(_0x20ec98(0x19a))/0xb)+-parseInt(_0x20ec98(0x1a3))/0xc*(parseInt(_0x20ec98(0x194))/0xd);if(_0x22e166===_0x737dad)break;else _0x202963['push'](_0x202963['shift']());}catch(_0x5816ed){_0x202963['push'](_0x202963['shift']());}}}(a28_0x5536,0x7403a));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0x320e(_0x40c46c,_0x5ae850){_0x40c46c=_0x40c46c-0x18f;const _0x55366a=a28_0x5536();let _0x320ed8=_0x55366a[_0x40c46c];return _0x320ed8;}const DEFAULT_MARKDOWN='#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档';function a28_0x5536(){const _0x2c3e28=['Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','14970lvemzw','string','1897606dvmnnj','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','52ppsvwr','287oXIKwd','4kgmDBl','10CMnCfT','sdk-doc','1420233ZYrTEJ','2638141yxvwaJ','str','trim','3331350lBXHHF','dataset','1875848PnsJBi','code','1IbiTqj','36kSaoNR','2629644UBlpCd','appCode','read'];a28_0x5536=function(){return _0x2c3e28;};return a28_0x5536();}export function formatDatasetSdkMarkdown(_0x257310){const _0x33a404=a28_0x320e,_0x4bc106=typeof _0x257310===_0x33a404(0x191)?_0x257310[_0x33a404(0x19c)]():'';return _0x4bc106||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a28_0x5ebd85(0x19e),'command':a28_0x5ebd85(0x198),'description':a28_0x5ebd85(0x193),'risk':a28_0x5ebd85(0x1a5),'flags':[{...CODE_FLAG,'description':a28_0x5ebd85(0x18f)}],async 'execute'(_0x2d8272){const _0x399233=a28_0x5ebd85,_0x50551d=_0x2d8272[_0x399233(0x19b)](_0x399233(0x1a0)),_0x175283=await getDatasetSdkUsageDoc(_0x50551d,_0x2d8272['appCode']);return{'ok':!![],'data':{'code':_0x50551d,'appCode':_0x2d8272[_0x399233(0x1a4)],'markdown':formatDatasetSdkMarkdown(_0x175283)}};}};
1
+ const a28_0x34d02b=a28_0x34c0;(function(_0x107c36,_0x548c23){const _0x78aec=a28_0x34c0,_0x2301d5=_0x107c36();while(!![]){try{const _0x59bc14=-parseInt(_0x78aec(0x9d))/0x1*(-parseInt(_0x78aec(0x8f))/0x2)+parseInt(_0x78aec(0x99))/0x3*(parseInt(_0x78aec(0x92))/0x4)+-parseInt(_0x78aec(0x91))/0x5+parseInt(_0x78aec(0x9c))/0x6*(-parseInt(_0x78aec(0x93))/0x7)+parseInt(_0x78aec(0x9e))/0x8*(-parseInt(_0x78aec(0x8e))/0x9)+parseInt(_0x78aec(0x9b))/0xa+parseInt(_0x78aec(0x98))/0xb;if(_0x59bc14===_0x548c23)break;else _0x2301d5['push'](_0x2301d5['shift']());}catch(_0x341bb5){_0x2301d5['push'](_0x2301d5['shift']());}}}(a28_0x43f2,0x85e87));function a28_0x43f2(){const _0x3f60e1=['39639SyUzVo','16HdCncF','460719GEnfQN','4dsDGlw','trim','5124430azoQMj','450676kYcXbW','46025xabQTB','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','sdk-doc','appCode','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','8028856eFsojw','12kdiuMy','dataset','5342550CpwmTu','108KzSwHt'];a28_0x43f2=function(){return _0x3f60e1;};return a28_0x43f2();}import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN='#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档';export function formatDatasetSdkMarkdown(_0x33f21a){const _0x21cf71=a28_0x34c0,_0x3c373d=typeof _0x33f21a==='string'?_0x33f21a[_0x21cf71(0x90)]():'';return _0x3c373d||DEFAULT_MARKDOWN;}function a28_0x34c0(_0x323a1d,_0x1c6e60){_0x323a1d=_0x323a1d-0x8e;const _0x43f24f=a28_0x43f2();let _0x34c0c5=_0x43f24f[_0x323a1d];return _0x34c0c5;}export const datasetSdkDoc={'service':a28_0x34d02b(0x9a),'command':a28_0x34d02b(0x95),'description':a28_0x34d02b(0x97),'risk':'read','flags':[{...CODE_FLAG,'description':a28_0x34d02b(0x94)}],async 'execute'(_0x32b1de){const _0x23a4a4=a28_0x34d02b,_0x358987=_0x32b1de['str']('code'),_0xa04a19=await getDatasetSdkUsageDoc(_0x358987,_0x32b1de[_0x23a4a4(0x96)]);return{'ok':!![],'data':{'code':_0x358987,'appCode':_0x32b1de['appCode'],'markdown':formatDatasetSdkMarkdown(_0xa04a19)}};}};