@lovrabet/lovrabet-cli 2.1.21-beta.1 → 2.1.21

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 (128) 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/schedule/index.js +1 -1
  39. package/lib/commands/schema.js +1 -1
  40. package/lib/commands/service/dynamic.js +1 -1
  41. package/lib/commands/service/function-name-adapter.js +1 -1
  42. package/lib/commands/service/index.js +1 -1
  43. package/lib/commands/service/registry.js +1 -1
  44. package/lib/commands/skill/commands/create.js +1 -1
  45. package/lib/commands/skill/commands/install.js +1 -1
  46. package/lib/commands/skill/commands/list.js +1 -1
  47. package/lib/commands/skill/commands/push.js +1 -1
  48. package/lib/commands/skill/commands/validate.js +1 -1
  49. package/lib/commands/skill/flags.js +1 -1
  50. package/lib/commands/skill/index.js +1 -1
  51. package/lib/commands/skill/manifest-helpers.js +1 -1
  52. package/lib/commands/skill/push-execute.js +1 -1
  53. package/lib/commands/skill/push-flow-helpers.js +1 -1
  54. package/lib/commands/skill/push-retarget.js +1 -1
  55. package/lib/commands/skill/scopes.js +1 -1
  56. package/lib/commands/skill/summary.js +1 -1
  57. package/lib/commands/skill/templates.js +1 -1
  58. package/lib/commands/skill/validate.js +1 -1
  59. package/lib/commands/sql/detail.js +1 -1
  60. package/lib/commands/sql/exec.js +1 -1
  61. package/lib/commands/sql/index.js +1 -1
  62. package/lib/commands/update.js +1 -1
  63. package/lib/commands/workspace/index.js +1 -1
  64. package/lib/config/schema.js +1 -1
  65. package/lib/constant/app.js +1 -1
  66. package/lib/constant/auth-mode.js +1 -1
  67. package/lib/constant/cli.js +1 -1
  68. package/lib/constant/defaults.js +1 -1
  69. package/lib/constant/distribution.js +1 -1
  70. package/lib/constant/domain.js +1 -1
  71. package/lib/constant/env.js +1 -1
  72. package/lib/constant/output.js +1 -1
  73. package/lib/constant/product.js +1 -1
  74. package/lib/constant/risk.js +1 -1
  75. package/lib/constant/url.js +1 -1
  76. package/lib/context.js +1 -1
  77. package/lib/core/api-client.js +1 -1
  78. package/lib/core/db-resolver.js +1 -1
  79. package/lib/core/sdk-client.js +1 -1
  80. package/lib/errors.js +1 -1
  81. package/lib/framework/build-all-flags.js +1 -1
  82. package/lib/framework/dryrun.js +1 -1
  83. package/lib/framework/flags.js +1 -1
  84. package/lib/framework/help.js +1 -1
  85. package/lib/framework/index.js +1 -1
  86. package/lib/framework/output.js +1 -1
  87. package/lib/framework/preparse.js +1 -1
  88. package/lib/framework/rate-limit.js +1 -1
  89. package/lib/framework/raw-flags.js +1 -1
  90. package/lib/framework/response.js +1 -1
  91. package/lib/framework/runner-confirmation.js +1 -1
  92. package/lib/framework/runner-error.js +1 -1
  93. package/lib/framework/runner.js +1 -1
  94. package/lib/framework/schema-export.js +1 -1
  95. package/lib/framework/service-order.js +1 -1
  96. package/lib/framework/types.js +1 -1
  97. package/lib/generated/build-info.d.ts +4 -4
  98. package/lib/generated/build-info.js +1 -1
  99. package/lib/help.js +1 -1
  100. package/lib/runtime/event.js +1 -1
  101. package/lib/runtime/index.js +1 -1
  102. package/lib/runtime/queue.js +1 -1
  103. package/lib/runtime/resolve.js +1 -1
  104. package/lib/skills/npx-skills-add.js +1 -1
  105. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  106. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  107. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  108. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  109. package/lib/skills/runtime-skill-sync/links.js +1 -1
  110. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  111. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  112. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  113. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  114. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  115. package/lib/skills/runtime-skill-sync/push.js +1 -1
  116. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  117. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  118. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  119. package/lib/skills/runtime-skill-sync.js +1 -1
  120. package/lib/utils/apply-jq-filter.js +1 -1
  121. package/lib/utils/logger.js +1 -1
  122. package/lib/utils/lossless-json.js +1 -1
  123. package/lib/utils/params.js +1 -1
  124. package/lib/utils/platform.js +1 -1
  125. package/lib/utils/update-notice.js +1 -1
  126. package/lib/utils/version.js +1 -1
  127. package/lib/utils/write-cli-side-channel.js +1 -1
  128. package/package.json +1 -1
@@ -1 +1 @@
1
- const a12_0x2765fb=a12_0x250b;(function(_0x4f6cbe,_0x1d4382){const _0x9073a2=a12_0x250b,_0xb40653=_0x4f6cbe();while(!![]){try{const _0x4b9fc6=parseInt(_0x9073a2(0x17d))/0x1*(-parseInt(_0x9073a2(0x1a1))/0x2)+parseInt(_0x9073a2(0x180))/0x3*(parseInt(_0x9073a2(0x187))/0x4)+-parseInt(_0x9073a2(0x169))/0x5*(parseInt(_0x9073a2(0x179))/0x6)+-parseInt(_0x9073a2(0x1af))/0x7+parseInt(_0x9073a2(0x19e))/0x8*(parseInt(_0x9073a2(0x15f))/0x9)+-parseInt(_0x9073a2(0x18e))/0xa*(-parseInt(_0x9073a2(0x162))/0xb)+-parseInt(_0x9073a2(0x1a8))/0xc*(-parseInt(_0x9073a2(0x152))/0xd);if(_0x4b9fc6===_0x1d4382)break;else _0xb40653['push'](_0xb40653['shift']());}catch(_0x31aadb){_0xb40653['push'](_0xb40653['shift']());}}}(a12_0x34ac,0xbf994));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';function a12_0x34ac(){const _0x3fd43c=['Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','Option\x20B:\x20apps\x20config\x20(','Read\x20from\x20global\x20config\x20(default)','write','2769768BYzoGr','nonInteractive','repeat','Use\x20`','check','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','\x20Verify:\x20','4758936zHMBsp','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','bool','global-default','newConfigFileName','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','project\x20config','global','39GHLLpf','validation','str','Then\x20verify\x20with:\x20','Shorthand\x20for\x20--access-key','string','project','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','stdin','access_key','production','join','13031415FlLkKz','Option\x20C:\x20environment\x20variable','userCenterDisplayName','33sJPGCW','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','=ak_xxx','daily','isTTY','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','Auth\x20mode:\x20','5utStCI','\x20doctor','read','push','Clear\x20from\x20global\x20config\x20(default)','Invalid\x20accessKey\x20format:\x20\x22','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','\x20(via\x20','logout','\x20config','\x20scope.','Write\x20to\x20global\x20config\x20(default)','ClientAk','login','trim','env','653244gfbDNd','auth','info','Missing\x20accessKey.','158936zgWFre','accessKey','success','3qJoIIJ','\x20config.\x20Nothing\x20to\x20clear.','Auth\x20config\x20reinitialized\x20in\x20','AccessKey:\x20','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','Show\x20current\x20authentication\x20status','\x20config.','2173604jBTgWd','AccessKey\x20(ak_xxx...)','`auth\x20login`\x20does\x20not\x20support\x20--yes.','development','Option\x20A:\x20','code','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','537400IQJiVN','access-key','global\x20config','Clear\x20accessKey\x20from\x20config','boolean','No\x20AccessKey\x20found\x20in\x20','ACCESS_KEY','init','AccessKey\x20saved\x20to\x20','expired','length','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','AccessKey\x20cleared\x20from\x20','status','\x20auth\x20status','test','8mTFKjX','\x20Current\x20env:\x20','\x20env\x20var','16cxdBQH','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','authRequired'];a12_0x34ac=function(){return _0x3fd43c;};return a12_0x34ac();}import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';function a12_0x250b(_0x44c91a,_0x2bc108){_0x44c91a=_0x44c91a-0x14f;const _0x34acbd=a12_0x34ac();let _0x250bf8=_0x34acbd[_0x44c91a];return _0x250bf8;}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 _0x125243=a12_0x250b;writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x125243(0x161)]+':'),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 _0x57c4b8=a12_0x250b;return[_0x57c4b8(0x16f)+PRODUCT_CONFIG[_0x57c4b8(0x161)]+':',USER_ACCESS_KEY_CREATE_URL,_0x57c4b8(0x1b0)+CLI_BIN_NAME+_0x57c4b8(0x159)][_0x57c4b8(0x15e)]('\x0a');}function canPromptForAccessKey(_0x36bdff){const _0xe4d2e3=a12_0x250b;return!_0x36bdff[_0xe4d2e3(0x1a9)]&&process[_0xe4d2e3(0x15b)][_0xe4d2e3(0x166)]!==![]&&process['stdout']['isTTY']!==![];}function resolveAuthScopeFlags(_0x188e9c){const _0x6ab077=a12_0x250b;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x188e9c['bool'](_0x6ab077(0x151)),'explicitProject':_0x188e9c[_0x6ab077(0x1b1)](_0x6ab077(0x158)),'policy':_0x6ab077(0x1b2)}));}async function resolveAuthWriteInput(_0x4ca859){const _0x1a6b97=a12_0x250b;let _0x36c824=(_0x4ca859['str'](_0x1a6b97(0x18f))||_0x4ca859['str']('ak')||'')[_0x1a6b97(0x177)]();const _0x1ac760=(_0x4ca859[_0x1a6b97(0x154)](_0x1a6b97(0x178))||'')[_0x1a6b97(0x177)]();if(!_0x36c824&&canPromptForAccessKey(_0x4ca859))try{showAccessKeyCreateHint(),_0x36c824=await promptAccessKey('');}catch(_0x3ffaf8){if(isAbortPrompt(_0x3ffaf8))throw CliErrors['cancelled']();throw _0x3ffaf8;}if(!_0x36c824)throw CliErrors[_0x1a6b97(0x153)](_0x1a6b97(0x17c),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x1a6b97(0x19d)](_0x36c824))throw CliErrors[_0x1a6b97(0x153)](_0x1a6b97(0x16e)+_0x36c824+'\x22',_0x1a6b97(0x163));if(!_0x1ac760)return{'accessKey':_0x36c824};const _0x257af3=normalizeEnv(_0x1ac760);return{'accessKey':_0x36c824,'env':isDaily(_0x257af3)?_0x1a6b97(0x165):isDev(_0x257af3)?_0x1a6b97(0x18a):_0x1a6b97(0x15d)};}export const authDefinitions=[{'service':a12_0x2765fb(0x17a),'command':a12_0x2765fb(0x176),'description':a12_0x2765fb(0x167),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a12_0x2765fb(0x157),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a12_0x2765fb(0x157),'description':a12_0x2765fb(0x156)},{'name':a12_0x2765fb(0x151),'type':a12_0x2765fb(0x192),'description':a12_0x2765fb(0x174),'default':!![]},{'name':a12_0x2765fb(0x158),'type':'boolean','description':a12_0x2765fb(0x184),'default':![]}],async 'execute'(_0x189d0a){const _0x4ca5fe=a12_0x2765fb;if(_0x189d0a[_0x4ca5fe(0x1b1)]('yes'))throw CliErrors['validation'](_0x4ca5fe(0x189),_0x4ca5fe(0x1ab)+CLI_BIN_NAME+_0x4ca5fe(0x14f)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.');const _0x1f5262=(_0x189d0a[_0x4ca5fe(0x154)](_0x4ca5fe(0x18f))||_0x189d0a[_0x4ca5fe(0x154)]('ak')||'')[_0x4ca5fe(0x177)]();if(!_0x1f5262&&_0x189d0a[_0x4ca5fe(0x1a9)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x1c8d24=await resolveAuthWriteInput(_0x189d0a),_0x5b9c81=resolveAuthScopeFlags(_0x189d0a),_0x5cef76=readScopedConfig(_0x5b9c81);_0x5cef76[_0x4ca5fe(0x17e)]=_0x1c8d24['accessKey'];_0x1c8d24[_0x4ca5fe(0x178)]&&(_0x5cef76['env']=_0x1c8d24[_0x4ca5fe(0x178)]);writeScopedConfig(_0x5cef76,_0x5b9c81);const _0x1fdf98=_0x5b9c81['global']?_0x4ca5fe(0x151):'project',_0x263be3=_0x5cef76[_0x4ca5fe(0x178)]?'\x20Current\x20env:\x20'+_0x5cef76['env']+'.':'';return{'ok':!![],'message':_0x4ca5fe(0x196)+_0x1fdf98+_0x4ca5fe(0x186)+_0x263be3+_0x4ca5fe(0x1ae)+CLI_BIN_NAME+_0x4ca5fe(0x19c)};}},{'service':a12_0x2765fb(0x17a),'command':a12_0x2765fb(0x195),'description':a12_0x2765fb(0x1ad),'risk':a12_0x2765fb(0x1a7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x2765fb(0x18f),'type':a12_0x2765fb(0x157),'description':a12_0x2765fb(0x188)},{'name':'ak','type':a12_0x2765fb(0x157),'description':a12_0x2765fb(0x156)},{'name':a12_0x2765fb(0x178),'type':a12_0x2765fb(0x157),'description':a12_0x2765fb(0x1a2)},{'name':a12_0x2765fb(0x151),'type':a12_0x2765fb(0x192),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':'project','type':'boolean','description':a12_0x2765fb(0x184),'default':![]}],async 'execute'(_0x28c3ad){const _0x2f579d=a12_0x2765fb,_0x5afa88=await resolveAuthWriteInput(_0x28c3ad),_0x33d313=resolveAuthScopeFlags(_0x28c3ad),_0x15e4ff={'accessKey':_0x5afa88[_0x2f579d(0x17e)]};_0x5afa88[_0x2f579d(0x178)]&&(_0x15e4ff['env']=_0x5afa88['env']);writeScopedConfig(_0x15e4ff,_0x33d313);const _0x5ee2cc=_0x33d313[_0x2f579d(0x151)]?_0x2f579d(0x151):_0x2f579d(0x158),_0x4049f2=_0x15e4ff[_0x2f579d(0x178)]?_0x2f579d(0x19f)+_0x15e4ff[_0x2f579d(0x178)]+'.':'';return{'ok':!![],'message':_0x2f579d(0x182)+_0x5ee2cc+_0x2f579d(0x173)+_0x4049f2+_0x2f579d(0x1ae)+CLI_BIN_NAME+_0x2f579d(0x19c)};}},{'service':'auth','command':a12_0x2765fb(0x171),'description':a12_0x2765fb(0x191),'risk':a12_0x2765fb(0x1a7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x2765fb(0x151),'type':a12_0x2765fb(0x192),'description':a12_0x2765fb(0x16d),'default':!![]},{'name':a12_0x2765fb(0x158),'type':a12_0x2765fb(0x192),'description':a12_0x2765fb(0x15a),'default':![]}],async 'execute'(_0x4a24d8){const _0x455c71=a12_0x2765fb,_0x147f21=resolveAuthScopeFlags(_0x4a24d8),_0x1e599f=readScopedConfig(_0x147f21),_0x17a13c=!!_0x1e599f[_0x455c71(0x17e)];delete _0x1e599f['accessKey'],writeScopedConfig(_0x1e599f,_0x147f21);const _0x4606ee=_0x147f21[_0x455c71(0x151)]?_0x455c71(0x151):_0x455c71(0x158);if(_0x17a13c)return{'ok':!![],'message':_0x455c71(0x19a)+_0x4606ee+_0x455c71(0x186)};return{'ok':!![],'message':_0x455c71(0x193)+_0x4606ee+_0x455c71(0x181)};}},{'service':'auth','command':a12_0x2765fb(0x19b),'description':a12_0x2765fb(0x185),'risk':a12_0x2765fb(0x16b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x2765fb(0x151),'type':a12_0x2765fb(0x192),'description':a12_0x2765fb(0x1a6),'default':!![]},{'name':a12_0x2765fb(0x158),'type':a12_0x2765fb(0x192),'description':'Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]},{'name':a12_0x2765fb(0x1ac),'type':'boolean','description':'Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','default':![]}],async 'execute'(_0x12a5e3){const _0x2f63ab=a12_0x2765fb,_0x1d0947=resolveAuthScopeFlags(_0x12a5e3),_0x2059b3=readScopedConfig(_0x1d0947),_0x48d570=productEnvName(_0x2f63ab(0x194)),_0x29cd7f=productEnv('ACCESS_KEY')||undefined,_0x217820=_0x2059b3[_0x2f63ab(0x17e)]||undefined,_0x402fea=_0x29cd7f||_0x217820,_0x51426c=_0x29cd7f?_0x48d570+_0x2f63ab(0x1a0):_0x217820?(_0x1d0947[_0x2f63ab(0x151)]?_0x2f63ab(0x151):'project')+_0x2f63ab(0x172):null,_0x485aec=[_0x2f63ab(0x168)+AUTH_MODE[_0x2f63ab(0x175)]];if(_0x402fea){const _0x9e28e5=_0x402fea[_0x2f63ab(0x198)]>0x8?''+_0x402fea['slice'](0x0,0x8)+'*'[_0x2f63ab(0x1aa)](_0x402fea[_0x2f63ab(0x198)]-0x8):_0x402fea;_0x485aec['push'](_0x2f63ab(0x183)+_0x9e28e5+(_0x51426c?_0x2f63ab(0x170)+_0x51426c+')':'')),_0x485aec['push']('Status:\x20valid');}if(!_0x402fea){_0x485aec[_0x2f63ab(0x16c)](''),_0x485aec['push']('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x485aec[_0x2f63ab(0x16c)](''),_0x485aec[_0x2f63ab(0x16c)](_0x2f63ab(0x18b)+CLI_BIN_NAME+_0x2f63ab(0x199)),_0x485aec[_0x2f63ab(0x16c)](''),_0x485aec[_0x2f63ab(0x16c)](_0x2f63ab(0x1a5)+PRODUCT_CONFIG[_0x2f63ab(0x1b3)]+')'),_0x485aec['push'](_0x2f63ab(0x18d)),_0x485aec[_0x2f63ab(0x16c)](''),_0x485aec[_0x2f63ab(0x16c)](_0x2f63ab(0x160)),_0x485aec[_0x2f63ab(0x16c)]('\x20\x20export\x20'+_0x48d570+_0x2f63ab(0x164)),_0x485aec[_0x2f63ab(0x16c)](''),_0x485aec[_0x2f63ab(0x16c)](_0x2f63ab(0x155)+CLI_BIN_NAME+_0x2f63ab(0x19c)),_0x485aec[_0x2f63ab(0x16c)]('If\x20command\x20execution\x20still\x20fails,\x20run:\x20'+CLI_BIN_NAME+_0x2f63ab(0x16a));if(_0x12a5e3[_0x2f63ab(0x1b1)](_0x2f63ab(0x1ac))){const _0x1c58ae=readStoredDeviceCode();if(_0x1c58ae&&!isStoredDeviceCodeExpired(_0x1c58ae)){const _0x5c78e7=getUserDomain(),_0x3387c1=await fetchDeviceToken(_0x5c78e7,_0x1c58ae[_0x2f63ab(0x18c)]);if(_0x3387c1[_0x2f63ab(0x19b)]===_0x2f63ab(0x17f)&&_0x3387c1[_0x2f63ab(0x15c)]){const _0x2a40ce={'global':_0x1c58ae['scope']===_0x2f63ab(0x151)},_0x5eee83=readScopedConfig(_0x2a40ce);_0x5eee83[_0x2f63ab(0x17e)]=_0x3387c1[_0x2f63ab(0x15c)],writeScopedConfig(_0x5eee83,_0x2a40ce),deleteStoredDeviceCode();const _0x52db88=_0x3387c1[_0x2f63ab(0x15c)],_0x313192=_0x52db88[_0x2f63ab(0x198)]>0x8?''+_0x52db88['slice'](0x0,0x8)+'*'['repeat'](_0x52db88['length']-0x8):_0x52db88,_0x3ca93e=_0x1c58ae['scope']===_0x2f63ab(0x151)?_0x2f63ab(0x190):_0x2f63ab(0x150);return{'ok':!![],'message':[_0x2f63ab(0x168)+AUTH_MODE['ClientAk'],_0x2f63ab(0x183)+_0x313192+_0x2f63ab(0x170)+_0x3ca93e+')','Status:\x20valid'][_0x2f63ab(0x15e)]('\x0a')};}_0x3387c1[_0x2f63ab(0x19b)]===_0x2f63ab(0x197)&&deleteStoredDeviceCode();throw CliErrors[_0x2f63ab(0x1a3)]('Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.');}throw CliErrors[_0x2f63ab(0x1a3)](_0x485aec['join']('\x0a'));}}return{'ok':!![],'message':_0x485aec[_0x2f63ab(0x15e)]('\x0a')};}},{'service':a12_0x2765fb(0x17a),'command':a12_0x2765fb(0x17b),'description':a12_0x2765fb(0x1a4),'risk':a12_0x2765fb(0x16b),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x56468a){const _0xd79476=a12_0x2765fb,_0x639fad=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x639fad,'meta':{'env':_0x56468a['envName']??_0xd79476(0x15d)}}};}},authDeviceDefinition];
1
+ const a12_0x34e91d=a12_0x3671;(function(_0x1e5fbd,_0x1e4042){const _0x1622f4=a12_0x3671,_0x1d3140=_0x1e5fbd();while(!![]){try{const _0x113150=-parseInt(_0x1622f4(0x1cf))/0x1*(parseInt(_0x1622f4(0x17f))/0x2)+parseInt(_0x1622f4(0x1a5))/0x3+parseInt(_0x1622f4(0x18c))/0x4*(-parseInt(_0x1622f4(0x1a6))/0x5)+parseInt(_0x1622f4(0x1bf))/0x6*(parseInt(_0x1622f4(0x1d3))/0x7)+-parseInt(_0x1622f4(0x195))/0x8*(-parseInt(_0x1622f4(0x177))/0x9)+-parseInt(_0x1622f4(0x198))/0xa+-parseInt(_0x1622f4(0x1a4))/0xb;if(_0x113150===_0x1e4042)break;else _0x1d3140['push'](_0x1d3140['shift']());}catch(_0x1464cf){_0x1d3140['push'](_0x1d3140['shift']());}}}(a12_0x40e3,0x732d4));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_0x40e3(){const _0x2b5014=['\x20scope.','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','\x20doctor','development','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','access_key','249206HApDvR','\x20Verify:\x20','Show\x20current\x20authentication\x20status','`auth\x20login`\x20does\x20not\x20support\x20--yes.','login','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','status','global','check','auth','access-key','project\x20config','success','188LeYroH','newConfigFileName','global-default','bool','Clear\x20accessKey\x20from\x20config','project','repeat','read','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','1832bdKARn','code','Write\x20to\x20global\x20config\x20(default)','6402930Xiopzt','write','=ak_xxx','stdout','AccessKey\x20cleared\x20from\x20','nonInteractive','scope','info','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','stdin','\x20Current\x20env:\x20','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','1677203uMUKqV','1749939qZywrm','11870eVTCZo','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','userCenterDisplayName','accessKey','Clear\x20from\x20global\x20config\x20(default)','length','str','yes','AccessKey:\x20','init','No\x20AccessKey\x20found\x20in\x20','\x20config.','Auth\x20config\x20reinitialized\x20in\x20','ClientAk','AccessKey\x20(ak_xxx...)','test','slice','ACCESS_KEY','production','\x20auth\x20login\x20--access-key\x20<ak_xxx>','Use\x20`','Option\x20C:\x20environment\x20variable','Read\x20from\x20global\x20config\x20(default)','Tip:\x20you\x20can\x20also\x20run:','\x20auth\x20status','18GupSAG','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','boolean','\x20config.\x20Nothing\x20to\x20clear.','envName','push','string','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','Shorthand\x20for\x20--access-key','env','Option\x20A:\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','Status:\x20valid','\x20(via\x20','2mdEZca','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','expired','1715329OKjcoS','Auth\x20mode:\x20','trim','authRequired','\x20config','\x20\x20export\x20','Invalid\x20accessKey\x20format:\x20\x22','Option\x20B:\x20apps\x20config\x20(','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','validation','join','logout','12060ShkFfL','AccessKey\x20saved\x20to\x20'];a12_0x40e3=function(){return _0x2b5014;};return a12_0x40e3();}import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';import{getUserDomain}from'../../constant/domain.js';import{authDeviceDefinition,readStoredDeviceCode,deleteStoredDeviceCode,fetchDeviceToken,isStoredDeviceCodeExpired}from'../../commands/auth/device.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function a12_0x3671(_0x158092,_0x5738bd){_0x158092=_0x158092-0x174;const _0x40e32e=a12_0x40e3();let _0x36714c=_0x40e32e[_0x158092];return _0x36714c;}function showAccessKeyCreateHint(){const _0x33ae53=a12_0x3671;writeCliSideChannelLine(_0x33ae53(0x1a0)+PRODUCT_CONFIG['userCenterDisplayName']+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x33ae53(0x1bd)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x33ae53(0x1b9));}function buildAccessKeySetupGuide(){const _0x989aae=a12_0x3671;return[_0x989aae(0x1a0)+PRODUCT_CONFIG[_0x989aae(0x1a8)]+':',USER_ACCESS_KEY_CREATE_URL,_0x989aae(0x1a3)+CLI_BIN_NAME+_0x989aae(0x1cc)][_0x989aae(0x175)]('\x0a');}function canPromptForAccessKey(_0x1c7ac6){const _0x2bb22=a12_0x3671;return!_0x1c7ac6[_0x2bb22(0x19d)]&&process[_0x2bb22(0x1a1)]['isTTY']!==![]&&process[_0x2bb22(0x19b)]['isTTY']!==![];}function resolveAuthScopeFlags(_0x36bb2f){const _0x5b945e=a12_0x3671;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x36bb2f[_0x5b945e(0x18f)](_0x5b945e(0x186)),'explicitProject':_0x36bb2f[_0x5b945e(0x18f)](_0x5b945e(0x191)),'policy':_0x5b945e(0x18e)}));}async function resolveAuthWriteInput(_0x167779){const _0x1dfe7a=a12_0x3671;let _0x545424=(_0x167779['str'](_0x1dfe7a(0x189))||_0x167779[_0x1dfe7a(0x1ac)]('ak')||'')[_0x1dfe7a(0x1d5)]();const _0x5137ef=(_0x167779['str'](_0x1dfe7a(0x1c8))||'')['trim']();if(!_0x545424&&canPromptForAccessKey(_0x167779))try{showAccessKeyCreateHint(),_0x545424=await promptAccessKey('');}catch(_0x73a390){if(isAbortPrompt(_0x73a390))throw CliErrors['cancelled']();throw _0x73a390;}if(!_0x545424)throw CliErrors[_0x1dfe7a(0x174)]('Missing\x20accessKey.',buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x1dfe7a(0x1b5)](_0x545424))throw CliErrors[_0x1dfe7a(0x174)](_0x1dfe7a(0x1d9)+_0x545424+'\x22',_0x1dfe7a(0x184));if(!_0x5137ef)return{'accessKey':_0x545424};const _0x1ce57f=normalizeEnv(_0x5137ef);return{'accessKey':_0x545424,'env':isDaily(_0x1ce57f)?'daily':isDev(_0x1ce57f)?_0x1dfe7a(0x17c):_0x1dfe7a(0x1b8)};}export const authDefinitions=[{'service':a12_0x34e91d(0x188),'command':a12_0x34e91d(0x183),'description':a12_0x34e91d(0x1db),'risk':a12_0x34e91d(0x199),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x34e91d(0x189),'type':a12_0x34e91d(0x1c5),'description':a12_0x34e91d(0x1b4)},{'name':'ak','type':a12_0x34e91d(0x1c5),'description':a12_0x34e91d(0x1c7)},{'name':a12_0x34e91d(0x186),'type':a12_0x34e91d(0x1c1),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a12_0x34e91d(0x191),'type':a12_0x34e91d(0x1c1),'description':a12_0x34e91d(0x1dc),'default':![]}],async 'execute'(_0x2451fc){const _0x10ec1d=a12_0x34e91d;if(_0x2451fc['bool'](_0x10ec1d(0x1ad)))throw CliErrors['validation'](_0x10ec1d(0x182),_0x10ec1d(0x1ba)+CLI_BIN_NAME+_0x10ec1d(0x17a)+CLI_BIN_NAME+_0x10ec1d(0x1ca));const _0x5c41f4=(_0x2451fc['str'](_0x10ec1d(0x189))||_0x2451fc[_0x10ec1d(0x1ac)]('ak')||'')[_0x10ec1d(0x1d5)]();if(!_0x5c41f4&&_0x2451fc['nonInteractive'])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x14c8bf=await resolveAuthWriteInput(_0x2451fc),_0x383221=resolveAuthScopeFlags(_0x2451fc),_0x2c8118=readScopedConfig(_0x383221);_0x2c8118[_0x10ec1d(0x1a9)]=_0x14c8bf[_0x10ec1d(0x1a9)];_0x14c8bf[_0x10ec1d(0x1c8)]&&(_0x2c8118[_0x10ec1d(0x1c8)]=_0x14c8bf['env']);writeScopedConfig(_0x2c8118,_0x383221);const _0x2e6353=_0x383221[_0x10ec1d(0x186)]?_0x10ec1d(0x186):'project',_0x321760=_0x2c8118[_0x10ec1d(0x1c8)]?_0x10ec1d(0x1a2)+_0x2c8118['env']+'.':'';return{'ok':!![],'message':_0x10ec1d(0x178)+_0x2e6353+_0x10ec1d(0x1b1)+_0x321760+_0x10ec1d(0x180)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a12_0x34e91d(0x188),'command':a12_0x34e91d(0x1af),'description':'Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','risk':a12_0x34e91d(0x199),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x34e91d(0x189),'type':a12_0x34e91d(0x1c5),'description':a12_0x34e91d(0x1b4)},{'name':'ak','type':'string','description':a12_0x34e91d(0x1c7)},{'name':a12_0x34e91d(0x1c8),'type':a12_0x34e91d(0x1c5),'description':'Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config'},{'name':a12_0x34e91d(0x186),'type':a12_0x34e91d(0x1c1),'description':a12_0x34e91d(0x197),'default':!![]},{'name':'project','type':a12_0x34e91d(0x1c1),'description':a12_0x34e91d(0x1dc),'default':![]}],async 'execute'(_0x2c329a){const _0x2931fb=a12_0x34e91d,_0x2873bd=await resolveAuthWriteInput(_0x2c329a),_0x11f6fb=resolveAuthScopeFlags(_0x2c329a),_0x1407b7={'accessKey':_0x2873bd[_0x2931fb(0x1a9)]};_0x2873bd['env']&&(_0x1407b7[_0x2931fb(0x1c8)]=_0x2873bd[_0x2931fb(0x1c8)]);writeScopedConfig(_0x1407b7,_0x11f6fb);const _0x4bcfc4=_0x11f6fb['global']?_0x2931fb(0x186):_0x2931fb(0x191),_0x58766e=_0x1407b7[_0x2931fb(0x1c8)]?_0x2931fb(0x1a2)+_0x1407b7['env']+'.':'';return{'ok':!![],'message':_0x2931fb(0x1b2)+_0x4bcfc4+_0x2931fb(0x179)+_0x58766e+_0x2931fb(0x180)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a12_0x34e91d(0x188),'command':a12_0x34e91d(0x176),'description':a12_0x34e91d(0x190),'risk':a12_0x34e91d(0x199),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x34e91d(0x186),'type':a12_0x34e91d(0x1c1),'description':a12_0x34e91d(0x1aa),'default':!![]},{'name':a12_0x34e91d(0x191),'type':a12_0x34e91d(0x1c1),'description':a12_0x34e91d(0x1d1),'default':![]}],async 'execute'(_0x3054a0){const _0x3c8013=a12_0x34e91d,_0x5b9ba5=resolveAuthScopeFlags(_0x3054a0),_0x5ce840=readScopedConfig(_0x5b9ba5),_0x2129c5=!!_0x5ce840[_0x3c8013(0x1a9)];delete _0x5ce840['accessKey'],writeScopedConfig(_0x5ce840,_0x5b9ba5);const _0x1bba83=_0x5b9ba5[_0x3c8013(0x186)]?_0x3c8013(0x186):'project';if(_0x2129c5)return{'ok':!![],'message':_0x3c8013(0x19c)+_0x1bba83+_0x3c8013(0x1b1)};return{'ok':!![],'message':_0x3c8013(0x1b0)+_0x1bba83+_0x3c8013(0x1c2)};}},{'service':a12_0x34e91d(0x188),'command':a12_0x34e91d(0x185),'description':a12_0x34e91d(0x181),'risk':a12_0x34e91d(0x193),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x34e91d(0x186),'type':a12_0x34e91d(0x1c1),'description':a12_0x34e91d(0x1bc),'default':!![]},{'name':'project','type':a12_0x34e91d(0x1c1),'description':a12_0x34e91d(0x1a7),'default':![]},{'name':a12_0x34e91d(0x187),'type':'boolean','description':a12_0x34e91d(0x1c0),'default':![]}],async 'execute'(_0x5ec06b){const _0x5380ea=a12_0x34e91d,_0x3e8cfe=resolveAuthScopeFlags(_0x5ec06b),_0x3c36f7=readScopedConfig(_0x3e8cfe),_0x20451d=productEnvName('ACCESS_KEY'),_0x3db312=productEnv(_0x5380ea(0x1b7))||undefined,_0x230998=_0x3c36f7[_0x5380ea(0x1a9)]||undefined,_0x4602c1=_0x3db312||_0x230998,_0x3cb57f=_0x3db312?_0x20451d+'\x20env\x20var':_0x230998?(_0x3e8cfe['global']?_0x5380ea(0x186):'project')+_0x5380ea(0x1d7):null,_0x4f16d0=[_0x5380ea(0x1d4)+AUTH_MODE[_0x5380ea(0x1b3)]];if(_0x4602c1){const _0x4851b9=_0x4602c1['length']>0x8?''+_0x4602c1[_0x5380ea(0x1b6)](0x0,0x8)+'*'[_0x5380ea(0x192)](_0x4602c1['length']-0x8):_0x4602c1;_0x4f16d0[_0x5380ea(0x1c4)](_0x5380ea(0x1ae)+_0x4851b9+(_0x3cb57f?_0x5380ea(0x1ce)+_0x3cb57f+')':'')),_0x4f16d0[_0x5380ea(0x1c4)](_0x5380ea(0x1cd));}if(!_0x4602c1){_0x4f16d0[_0x5380ea(0x1c4)](''),_0x4f16d0[_0x5380ea(0x1c4)](_0x5380ea(0x1cb)),_0x4f16d0[_0x5380ea(0x1c4)](''),_0x4f16d0['push'](_0x5380ea(0x1c9)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x4f16d0[_0x5380ea(0x1c4)](''),_0x4f16d0[_0x5380ea(0x1c4)](_0x5380ea(0x1da)+PRODUCT_CONFIG[_0x5380ea(0x18d)]+')'),_0x4f16d0[_0x5380ea(0x1c4)](_0x5380ea(0x17d)),_0x4f16d0[_0x5380ea(0x1c4)](''),_0x4f16d0['push'](_0x5380ea(0x1bb)),_0x4f16d0[_0x5380ea(0x1c4)](_0x5380ea(0x1d8)+_0x20451d+_0x5380ea(0x19a)),_0x4f16d0[_0x5380ea(0x1c4)](''),_0x4f16d0[_0x5380ea(0x1c4)]('Then\x20verify\x20with:\x20'+CLI_BIN_NAME+_0x5380ea(0x1be)),_0x4f16d0[_0x5380ea(0x1c4)](_0x5380ea(0x194)+CLI_BIN_NAME+_0x5380ea(0x17b));if(_0x5ec06b[_0x5380ea(0x18f)](_0x5380ea(0x187))){const _0x4df7c5=readStoredDeviceCode();if(_0x4df7c5&&!isStoredDeviceCodeExpired(_0x4df7c5)){const _0x1c5656=getUserDomain(),_0x4a1f1c=await fetchDeviceToken(_0x1c5656,_0x4df7c5[_0x5380ea(0x196)]);if(_0x4a1f1c['status']===_0x5380ea(0x18b)&&_0x4a1f1c[_0x5380ea(0x17e)]){const _0x109554={'global':_0x4df7c5[_0x5380ea(0x19e)]===_0x5380ea(0x186)},_0x4a8307=readScopedConfig(_0x109554);_0x4a8307[_0x5380ea(0x1a9)]=_0x4a1f1c[_0x5380ea(0x17e)],writeScopedConfig(_0x4a8307,_0x109554),deleteStoredDeviceCode();const _0x3ce443=_0x4a1f1c[_0x5380ea(0x17e)],_0x31078e=_0x3ce443[_0x5380ea(0x1ab)]>0x8?''+_0x3ce443[_0x5380ea(0x1b6)](0x0,0x8)+'*'[_0x5380ea(0x192)](_0x3ce443['length']-0x8):_0x3ce443,_0x22bf5c=_0x4df7c5[_0x5380ea(0x19e)]===_0x5380ea(0x186)?'global\x20config':_0x5380ea(0x18a);return{'ok':!![],'message':[_0x5380ea(0x1d4)+AUTH_MODE['ClientAk'],_0x5380ea(0x1ae)+_0x31078e+'\x20(via\x20'+_0x22bf5c+')',_0x5380ea(0x1cd)][_0x5380ea(0x175)]('\x0a')};}_0x4a1f1c[_0x5380ea(0x185)]===_0x5380ea(0x1d2)&&deleteStoredDeviceCode();throw CliErrors[_0x5380ea(0x1d6)](_0x5380ea(0x1d0));}throw CliErrors[_0x5380ea(0x1d6)](_0x4f16d0[_0x5380ea(0x175)]('\x0a'));}}return{'ok':!![],'message':_0x4f16d0[_0x5380ea(0x175)]('\x0a')};}},{'service':a12_0x34e91d(0x188),'command':a12_0x34e91d(0x19f),'description':a12_0x34e91d(0x1c6),'risk':a12_0x34e91d(0x193),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x838d0a){const _0x2b14a2=a12_0x34e91d,_0x4186de=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x4186de,'meta':{'env':_0x838d0a[_0x2b14a2(0x1c3)]??'production'}}};}},authDeviceDefinition];
@@ -1 +1 @@
1
- (function(_0x2cb97f,_0x35f268){const _0x5d6767=a13_0xd5fa,_0x15270e=_0x2cb97f();while(!![]){try{const _0x1ac870=-parseInt(_0x5d6767(0x161))/0x1+parseInt(_0x5d6767(0x16b))/0x2*(parseInt(_0x5d6767(0x174))/0x3)+-parseInt(_0x5d6767(0x176))/0x4*(parseInt(_0x5d6767(0x164))/0x5)+-parseInt(_0x5d6767(0x173))/0x6*(-parseInt(_0x5d6767(0x16a))/0x7)+-parseInt(_0x5d6767(0x163))/0x8*(parseInt(_0x5d6767(0x16e))/0x9)+parseInt(_0x5d6767(0x178))/0xa*(-parseInt(_0x5d6767(0x179))/0xb)+-parseInt(_0x5d6767(0x17a))/0xc*(-parseInt(_0x5d6767(0x177))/0xd);if(_0x1ac870===_0x35f268)break;else _0x15270e['push'](_0x15270e['shift']());}catch(_0x1586ea){_0x15270e['push'](_0x15270e['shift']());}}}(a13_0xbfb7,0x382e7));function a13_0xbfb7(){const _0x278583=['removeListener','1668eibsLK','26gMrYsR','307180WiIPVQ','22DPOSCr','2531976TqIHtp','112352Glhzvy','stdout','112EajyBN','4605BJPEJZ','User\x20aborted\x20prompt','AccessKey\x20(','close','once','AccessKey\x20(paste\x20ak_...):\x20','11053IBmYtM','2jZwEEz','name','SIGINT','121050QsqNkx','AbortPrompt','race','stdin','question','498ssFenn','1269633dlaXXW'];a13_0xbfb7=function(){return _0x278583;};return a13_0xbfb7();}import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x929e9b=a13_0xd5fa;super(_0x929e9b(0x165)),this[_0x929e9b(0x16c)]=_0x929e9b(0x16f);}}function createSafeRl(){const _0x279278=a13_0xd5fa,_0x5575b7=createInterface({'input':process[_0x279278(0x171)],'output':process[_0x279278(0x162)]});let _0x5ccda6;const _0x276987=new Promise((_0x428be5,_0x548a14)=>{const _0x283dab=_0x279278;_0x5ccda6=()=>{const _0x26ed6b=a13_0xd5fa;_0x5ccda6&&(_0x5575b7['removeListener'](_0x26ed6b(0x16d),_0x5ccda6),_0x5ccda6=undefined);try{_0x5575b7[_0x26ed6b(0x167)]();}catch{}_0x548a14(new AbortPrompt());},_0x5575b7[_0x283dab(0x168)]('SIGINT',_0x5ccda6);}),_0x1d552f=()=>{const _0x49a0b6=_0x279278;_0x5ccda6&&(_0x5575b7[_0x49a0b6(0x175)](_0x49a0b6(0x16d),_0x5ccda6),_0x5ccda6=undefined);try{_0x5575b7[_0x49a0b6(0x167)]();}catch{}};return{'rl':_0x5575b7,'abortPromise':_0x276987,'disposeSuccess':_0x1d552f};}export async function promptAccessKey(_0x122086=''){const _0xe40988=a13_0xd5fa,{rl:_0x1c3109,abortPromise:_0x2d5315,disposeSuccess:_0x4e5524}=createSafeRl(),_0x18dc71=new Promise(_0x468509=>{const _0x3fae38=a13_0xd5fa,_0x859fac=_0x122086?_0x3fae38(0x166)+_0x122086+'):\x20':_0x3fae38(0x169);_0x1c3109[_0x3fae38(0x172)](_0x859fac,_0x4b522d=>{_0x4e5524(),_0x468509(_0x4b522d['trim']()||_0x122086);});});return Promise[_0xe40988(0x170)]([_0x18dc71,_0x2d5315]);}function a13_0xd5fa(_0x2d97f2,_0x338ecc){_0x2d97f2=_0x2d97f2-0x161;const _0xbfb7f7=a13_0xbfb7();let _0xd5fa14=_0xbfb7f7[_0x2d97f2];return _0xd5fa14;}export function isAbortPrompt(_0x5765b7){const _0x263ab0=a13_0xd5fa;return _0x5765b7 instanceof Error&&_0x5765b7[_0x263ab0(0x16c)]===_0x263ab0(0x16f);}
1
+ (function(_0x4d4a3a,_0x5a39f3){const _0x2c3b5a=a13_0x3c36,_0x570b45=_0x4d4a3a();while(!![]){try{const _0x1d055b=-parseInt(_0x2c3b5a(0x1ac))/0x1+parseInt(_0x2c3b5a(0x1af))/0x2+-parseInt(_0x2c3b5a(0x1b8))/0x3+-parseInt(_0x2c3b5a(0x1a8))/0x4*(parseInt(_0x2c3b5a(0x1b0))/0x5)+parseInt(_0x2c3b5a(0x1ab))/0x6*(parseInt(_0x2c3b5a(0x1b7))/0x7)+-parseInt(_0x2c3b5a(0x1b1))/0x8*(parseInt(_0x2c3b5a(0x1b4))/0x9)+parseInt(_0x2c3b5a(0x1b5))/0xa;if(_0x1d055b===_0x5a39f3)break;else _0x570b45['push'](_0x570b45['shift']());}catch(_0x31fd6d){_0x570b45['push'](_0x570b45['shift']());}}}(a13_0x1e32,0xae850));import{createInterface}from'node:readline';function a13_0x3c36(_0x15d98c,_0xc6bff9){_0x15d98c=_0x15d98c-0x1a7;const _0x1e3284=a13_0x1e32();let _0x3c36ad=_0x1e3284[_0x15d98c];return _0x3c36ad;}class AbortPrompt extends Error{constructor(){const _0x5b2cd6=a13_0x3c36;super('User\x20aborted\x20prompt'),this[_0x5b2cd6(0x1a9)]='AbortPrompt';}}function createSafeRl(){const _0x43ca68=a13_0x3c36,_0x22418d=createInterface({'input':process[_0x43ca68(0x1ae)],'output':process['stdout']});let _0x60a295;const _0x394b48=new Promise((_0x22ef18,_0xdca8bf)=>{_0x60a295=()=>{const _0x36adf1=a13_0x3c36;_0x60a295&&(_0x22418d['removeListener'](_0x36adf1(0x1b6),_0x60a295),_0x60a295=undefined);try{_0x22418d[_0x36adf1(0x1aa)]();}catch{}_0xdca8bf(new AbortPrompt());},_0x22418d['once']('SIGINT',_0x60a295);}),_0x49c1eb=()=>{const _0x43ba28=_0x43ca68;_0x60a295&&(_0x22418d['removeListener'](_0x43ba28(0x1b6),_0x60a295),_0x60a295=undefined);try{_0x22418d[_0x43ba28(0x1aa)]();}catch{}};return{'rl':_0x22418d,'abortPromise':_0x394b48,'disposeSuccess':_0x49c1eb};}export async function promptAccessKey(_0x5f5902=''){const _0x469720=a13_0x3c36,{rl:_0x48d4d5,abortPromise:_0x228bd0,disposeSuccess:_0x3d48f3}=createSafeRl(),_0x1de9b0=new Promise(_0x2c6700=>{const _0x42ee26=a13_0x3c36,_0x2be0c2=_0x5f5902?'AccessKey\x20('+_0x5f5902+_0x42ee26(0x1b3):_0x42ee26(0x1b9);_0x48d4d5[_0x42ee26(0x1a7)](_0x2be0c2,_0x285a3b=>{_0x3d48f3(),_0x2c6700(_0x285a3b['trim']()||_0x5f5902);});});return Promise[_0x469720(0x1ad)]([_0x1de9b0,_0x228bd0]);}function a13_0x1e32(){const _0x2ea0c1=['4ccKXwy','name','close','24rqHLmG','14162rFRhDc','race','stdin','1385874LvgpOY','2103735AdiEUU','152DyGjNK','AbortPrompt','):\x20','397539xIwvSH','11809130agVfBf','SIGINT','1387967HZOHks','2033952VISBAY','AccessKey\x20(paste\x20ak_...):\x20','question'];a13_0x1e32=function(){return _0x2ea0c1;};return a13_0x1e32();}export function isAbortPrompt(_0x40df9d){const _0x5b45a0=a13_0x3c36;return _0x40df9d instanceof Error&&_0x40df9d['name']===_0x5b45a0(0x1b2);}
@@ -1 +1 @@
1
- const a14_0x1eb602=a14_0x4465;(function(_0x9a1619,_0x5028be){const _0x5953f4=a14_0x4465,_0x512a23=_0x9a1619();while(!![]){try{const _0x450bcd=parseInt(_0x5953f4(0x1fa))/0x1+-parseInt(_0x5953f4(0x1f6))/0x2*(-parseInt(_0x5953f4(0x1fc))/0x3)+-parseInt(_0x5953f4(0x1f7))/0x4+parseInt(_0x5953f4(0x206))/0x5*(-parseInt(_0x5953f4(0x1f9))/0x6)+parseInt(_0x5953f4(0x207))/0x7+-parseInt(_0x5953f4(0x202))/0x8+parseInt(_0x5953f4(0x1fd))/0x9*(-parseInt(_0x5953f4(0x1ff))/0xa);if(_0x450bcd===_0x5028be)break;else _0x512a23['push'](_0x512a23['shift']());}catch(_0x44a024){_0x512a23['push'](_0x512a23['shift']());}}}(a14_0x3a8c,0xcd751));import{getBffEndpointContract}from'../../core/api-client.js';function a14_0x3a8c(){const _0x57da66=['gmtModified','1920972bWejVK','1654425kPheJD','functionName','1763919UUIsAl','389745GzwTeo','detail','90gJMSKh','appCode','name','5944328EtPlAx','version','(none)','BFF\x20function\x20name','5ruCdLv','1843583lxWflB','bff','str','read','2TkJilB','845064OIwXJz'];a14_0x3a8c=function(){return _0x57da66;};return a14_0x3a8c();}import{NAME_FLAG}from'../../commands/common/flags.js';function a14_0x4465(_0x3a1de9,_0x241652){_0x3a1de9=_0x3a1de9-0x1f3;const _0x3a8cea=a14_0x3a8c();let _0x446572=_0x3a8cea[_0x3a1de9];return _0x446572;}export const bffDetail={'service':a14_0x1eb602(0x1f3),'command':a14_0x1eb602(0x1fe),'description':'Get\x20a\x20BFF\x20endpoint\x20contract\x20by\x20function\x20name','risk':a14_0x1eb602(0x1f5),'flags':[{...NAME_FLAG,'required':!![],'description':a14_0x1eb602(0x205)}],async 'execute'(_0x3bbb52){const _0x265672=a14_0x1eb602,_0x52fe52=await getBffEndpointContract(_0x3bbb52[_0x265672(0x200)],_0x3bbb52[_0x265672(0x1f4)](_0x265672(0x201)));return{'ok':!![],'data':{'appCode':_0x52fe52[_0x265672(0x200)],'functionName':_0x52fe52[_0x265672(0x1fb)],'description':_0x52fe52['description']||_0x265672(0x204),'version':_0x52fe52[_0x265672(0x203)],'gmtModified':_0x52fe52[_0x265672(0x1f8)]}};}};
1
+ const a14_0x42fdc4=a14_0x3987;(function(_0x305c3a,_0x1a010f){const _0x410a7d=a14_0x3987,_0x220c03=_0x305c3a();while(!![]){try{const _0x2b3bc8=-parseInt(_0x410a7d(0x190))/0x1+parseInt(_0x410a7d(0x194))/0x2*(parseInt(_0x410a7d(0x18b))/0x3)+-parseInt(_0x410a7d(0x18e))/0x4+-parseInt(_0x410a7d(0x191))/0x5*(parseInt(_0x410a7d(0x184))/0x6)+-parseInt(_0x410a7d(0x185))/0x7+parseInt(_0x410a7d(0x186))/0x8+parseInt(_0x410a7d(0x181))/0x9;if(_0x2b3bc8===_0x1a010f)break;else _0x220c03['push'](_0x220c03['shift']());}catch(_0x122013){_0x220c03['push'](_0x220c03['shift']());}}}(a14_0x5cf0,0xb2d80));import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';function a14_0x3987(_0x36ce66,_0x21dbdf){_0x36ce66=_0x36ce66-0x181;const _0x5cf05d=a14_0x5cf0();let _0x3987f9=_0x5cf05d[_0x36ce66];return _0x3987f9;}export const bffDetail={'service':'bff','command':a14_0x42fdc4(0x187),'description':a14_0x42fdc4(0x188),'risk':a14_0x42fdc4(0x192),'flags':[{...NAME_FLAG,'required':!![],'description':a14_0x42fdc4(0x18d)}],async 'execute'(_0xd78057){const _0x204398=a14_0x42fdc4,_0x4df1e0=await getBffEndpointContract(_0xd78057[_0x204398(0x189)],_0xd78057[_0x204398(0x18f)]('name'));return{'ok':!![],'data':{'appCode':_0x4df1e0[_0x204398(0x189)],'functionName':_0x4df1e0[_0x204398(0x18a)],'description':_0x4df1e0[_0x204398(0x18c)]||_0x204398(0x182),'version':_0x4df1e0[_0x204398(0x193)],'gmtModified':_0x4df1e0[_0x204398(0x183)]}};}};function a14_0x5cf0(){const _0x2ad0cf=['version','158qneMfB','20968056FmlKFR','(none)','gmtModified','11316epebnu','9753667iUJxtL','9190040FsAHil','detail','Get\x20a\x20BFF\x20endpoint\x20contract\x20by\x20function\x20name','appCode','functionName','49161jJVrFX','description','BFF\x20function\x20name','4738908CMbxBu','str','159234EubPaR','3455jnyxsQ','read'];a14_0x5cf0=function(){return _0x2ad0cf;};return a14_0x5cf0();}
@@ -1 +1 @@
1
- const a15_0x970e0f=a15_0x3876;function a15_0x3876(_0x16eca9,_0x548451){_0x16eca9=_0x16eca9-0xce;const _0x4099ec=a15_0x4099();let _0x3876ae=_0x4099ec[_0x16eca9];return _0x3876ae;}(function(_0x3e7f53,_0x508823){const _0x5b1053=a15_0x3876,_0x5967a0=_0x3e7f53();while(!![]){try{const _0xd7add5=parseInt(_0x5b1053(0xd5))/0x1+-parseInt(_0x5b1053(0xce))/0x2*(-parseInt(_0x5b1053(0xd2))/0x3)+parseInt(_0x5b1053(0xda))/0x4+parseInt(_0x5b1053(0xd0))/0x5+parseInt(_0x5b1053(0xd4))/0x6+parseInt(_0x5b1053(0xd6))/0x7*(-parseInt(_0x5b1053(0xde))/0x8)+-parseInt(_0x5b1053(0xd8))/0x9;if(_0xd7add5===_0x508823)break;else _0x5967a0['push'](_0x5967a0['shift']());}catch(_0x116f7d){_0x5967a0['push'](_0x5967a0['shift']());}}}(a15_0x4099,0xc80af));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a15_0x970e0f(0xd3),'command':a15_0x970e0f(0xdc),'description':a15_0x970e0f(0xd7),'risk':a15_0x970e0f(0xd9),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x970e0f(0xdb)},PARAMS_FLAG],async 'execute'(_0x56d3fb){const _0x464488=a15_0x970e0f,_0x33de27=parseJsonParams(_0x56d3fb[_0x464488(0xdf)](_0x464488(0xdd))),_0x4f0909=Date[_0x464488(0xcf)](),_0x58fdad=await executeSdkBff(_0x56d3fb['str'](_0x464488(0xe0)),_0x33de27),_0x28ff98=Date[_0x464488(0xcf)]()-_0x4f0909;return{'ok':!![],'data':{'result':_0x58fdad,'elapsed':_0x28ff98},'message':_0x464488(0xd1)+_0x28ff98+'ms'};}};function a15_0x4099(){const _0x4a56b5=['7SYNCEO','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','3074796HLJFjR','read','3048032CAoYLx','BFF\x20function\x20name\x20to\x20execute','exec','params','12110024DuRioU','str','name','2522CvPqEw','now','1905505aJvsCy','BFF\x20executed\x20in\x20','891bZOPHx','bff','2443266uKUGRT','749935QGymlj'];a15_0x4099=function(){return _0x4a56b5;};return a15_0x4099();}
1
+ const a15_0x11376a=a15_0x1880;(function(_0x58c7a0,_0x4f9d19){const _0x2cbfa5=a15_0x1880,_0x37aed7=_0x58c7a0();while(!![]){try{const _0x2e9b12=parseInt(_0x2cbfa5(0x17f))/0x1+parseInt(_0x2cbfa5(0x179))/0x2+parseInt(_0x2cbfa5(0x185))/0x3+parseInt(_0x2cbfa5(0x180))/0x4*(parseInt(_0x2cbfa5(0x178))/0x5)+parseInt(_0x2cbfa5(0x177))/0x6*(-parseInt(_0x2cbfa5(0x17b))/0x7)+parseInt(_0x2cbfa5(0x17a))/0x8*(parseInt(_0x2cbfa5(0x175))/0x9)+-parseInt(_0x2cbfa5(0x181))/0xa;if(_0x2e9b12===_0x4f9d19)break;else _0x37aed7['push'](_0x37aed7['shift']());}catch(_0x23ef44){_0x37aed7['push'](_0x37aed7['shift']());}}}(a15_0x3c74,0x7f74d));import{executeSdkBff}from'../../core/sdk-client.js';function a15_0x3c74(){const _0x1eb0f6=['9oCmlXR','read','3654EXxazG','5CuQTfD','193110FKAcAb','7265104QBsYgz','987LweyZv','str','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','name','108954zSqocY','1641908KyKnyv','11171110hMlXJd','bff','params','now','602751coWOha'];a15_0x3c74=function(){return _0x1eb0f6;};return a15_0x3c74();}import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a15_0x1880(_0x3b77d2,_0x3a9b10){_0x3b77d2=_0x3b77d2-0x175;const _0x3c74dd=a15_0x3c74();let _0x1880b4=_0x3c74dd[_0x3b77d2];return _0x1880b4;}export const bffExec={'service':a15_0x11376a(0x182),'command':'exec','description':a15_0x11376a(0x17d),'risk':a15_0x11376a(0x176),'flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0x22d621){const _0xfbc2f6=a15_0x11376a,_0x26b656=parseJsonParams(_0x22d621[_0xfbc2f6(0x17c)](_0xfbc2f6(0x183))),_0x537133=Date[_0xfbc2f6(0x184)](),_0x3ddab1=await executeSdkBff(_0x22d621[_0xfbc2f6(0x17c)](_0xfbc2f6(0x17e)),_0x26b656),_0xce3d7f=Date[_0xfbc2f6(0x184)]()-_0x537133;return{'ok':!![],'data':{'result':_0x3ddab1,'elapsed':_0xce3d7f},'message':'BFF\x20executed\x20in\x20'+_0xce3d7f+'ms'};}};
@@ -1 +1 @@
1
- function a16_0x5c89(_0x467ef4,_0x1ffa2c){_0x467ef4=_0x467ef4-0x72;const _0x5a270d=a16_0x5a27();let _0x5c89de=_0x5a270d[_0x467ef4];return _0x5c89de;}(function(_0x3a24d7,_0x65362e){const _0x4ff513=a16_0x5c89,_0x5a5bb0=_0x3a24d7();while(!![]){try{const _0xaab5f4=parseInt(_0x4ff513(0x78))/0x1+parseInt(_0x4ff513(0x73))/0x2+-parseInt(_0x4ff513(0x74))/0x3+parseInt(_0x4ff513(0x76))/0x4+parseInt(_0x4ff513(0x77))/0x5+-parseInt(_0x4ff513(0x72))/0x6+parseInt(_0x4ff513(0x75))/0x7;if(_0xaab5f4===_0x65362e)break;else _0x5a5bb0['push'](_0x5a5bb0['shift']());}catch(_0x4c9452){_0x5a5bb0['push'](_0x5a5bb0['shift']());}}}(a16_0x5a27,0x985c7));function a16_0x5a27(){const _0x3836bb=['2188152mOBBxX','4425218FoCpkv','747904qxoEeU','3274705hoKCDT','80414AdxHMA','5256234RhaUri','1349978ZUutBK'];a16_0x5a27=function(){return _0x3836bb;};return a16_0x5a27();}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
1
+ (function(_0x1f362f,_0x1cc795){const _0x384780=a16_0x1def,_0x173cef=_0x1f362f();while(!![]){try{const _0x290135=parseInt(_0x384780(0xe9))/0x1+-parseInt(_0x384780(0xe5))/0x2+parseInt(_0x384780(0xe3))/0x3+parseInt(_0x384780(0xe6))/0x4*(parseInt(_0x384780(0xe7))/0x5)+-parseInt(_0x384780(0xe2))/0x6+-parseInt(_0x384780(0xe8))/0x7*(parseInt(_0x384780(0xe4))/0x8)+-parseInt(_0x384780(0xe1))/0x9*(parseInt(_0x384780(0xea))/0xa);if(_0x290135===_0x1cc795)break;else _0x173cef['push'](_0x173cef['shift']());}catch(_0x16ccd4){_0x173cef['push'](_0x173cef['shift']());}}}(a16_0x4f42,0x7bfdf));function a16_0x1def(_0x145bd0,_0x348e2a){_0x145bd0=_0x145bd0-0xe1;const _0x4f4275=a16_0x4f42();let _0x1defed=_0x4f4275[_0x145bd0];return _0x1defed;}import{bffDetail}from'../../commands/bff/detail.js';function a16_0x4f42(){const _0xd83a8d=['5351030sQYBlr','9bFxbIv','480708kiItqk','2466198Fccfis','8yxItXP','175998sJGCtt','28XNOLYh','296990akbkyg','3909983AWYWEl','531808LxqaxF'];a16_0x4f42=function(){return _0xd83a8d;};return a16_0x4f42();}import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- function a17_0xa077(_0x4c24da,_0x5d8625){_0x4c24da=_0x4c24da-0xf9;const _0x120c1c=a17_0x120c();let _0xa07793=_0x120c1c[_0x4c24da];return _0xa07793;}const a17_0x3110f5=a17_0xa077;function a17_0x120c(){const _0x3832f7=['error','13050828wMnwGJ','88KpLfqC','\x20-g\x20-y','skipped','929uxiNfu','inherit','cwd','893990IiIklE','120CXwGeN','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','6vkVZZb','apiError','1028inyNuD','info','write','cli-skill-install','7cJpHap','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','npx\x20skills\x20add\x20failed:\x20','1764904aNgvMn','2120zeSZWU','Skipped\x20npx\x20(','pipe','../../skills/npx-skills-add.js','24175FLEqnx','5222259XtkvcZ','\x20-g\x20-y)...','install','cli-skill','log','CLI\x20Built-in\x20Skill\x20installed'];a17_0x120c=function(){return _0x3832f7;};return a17_0x120c();}(function(_0x5e60cd,_0x47872a){const _0x36ca5f=a17_0xa077,_0x5cdefd=_0x5e60cd();while(!![]){try{const _0x501158=-parseInt(_0x36ca5f(0x113))/0x1*(parseInt(_0x36ca5f(0xfa))/0x2)+parseInt(_0x36ca5f(0x119))/0x3*(parseInt(_0x36ca5f(0x102))/0x4)+-parseInt(_0x36ca5f(0x107))/0x5*(parseInt(_0x36ca5f(0x117))/0x6)+-parseInt(_0x36ca5f(0xfe))/0x7*(-parseInt(_0x36ca5f(0x103))/0x8)+parseInt(_0x36ca5f(0x108))/0x9+parseInt(_0x36ca5f(0x116))/0xa*(parseInt(_0x36ca5f(0x110))/0xb)+-parseInt(_0x36ca5f(0x10f))/0xc;if(_0x501158===_0x47872a)break;else _0x5cdefd['push'](_0x5cdefd['shift']());}catch(_0x421717){_0x5cdefd['push'](_0x5cdefd['shift']());}}}(a17_0x120c,0x7e121));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a17_0x3110f5(0x10b),'command':a17_0x3110f5(0x10a),'description':a17_0x3110f5(0x118),'risk':a17_0x3110f5(0xfc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x44c498){const _0x58809e=a17_0x3110f5;logger['setLogPath'](process[_0x58809e(0x115)]()),logger[_0x58809e(0xfb)](_0x58809e(0xfd),_0x58809e(0x100));const {LOVRABET_SKILL_SOURCE:_0x2b45e2,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x3959be,runNpxSkillsAddGlobal:_0x3ec41d}=await import(_0x58809e(0x106)),_0x29ee10=_0x44c498['nonInteractive']?_0x58809e(0x105):_0x58809e(0x114);console[_0x58809e(0x10c)](_0x58809e(0xff)+_0x2b45e2+_0x58809e(0x109));const _0x3c9740=_0x3ec41d(process[_0x58809e(0x115)](),_0x2b45e2,{'stdio':_0x29ee10});if(_0x3c9740[_0x58809e(0x112)])console[_0x58809e(0x10c)](_0x58809e(0x104)+_0x3959be+'=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.');else{if(_0x3c9740['ok'])console[_0x58809e(0x10c)](_0x58809e(0x10d));else throw CliErrors[_0x58809e(0xf9)](_0x58809e(0x101)+(_0x3c9740[_0x58809e(0x10e)]||'unknown'),'Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20'+_0x2b45e2+_0x58809e(0x111));}return{'ok':!![]};}}];
1
+ const a17_0x4a1e42=a17_0x2b04;function a17_0x2b04(_0x176cbb,_0xa51590){_0x176cbb=_0x176cbb-0x19b;const _0x2bc686=a17_0x2bc6();let _0x2b040a=_0x2bc686[_0x176cbb];return _0x2b040a;}function a17_0x2bc6(){const _0x3c7422=['info','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','1492380PKjLkx','npx\x20skills\x20add\x20failed:\x20','cli-skill-install','75026NflpUq','5605ADSLFV','cwd','531903mWtljJ','error','32bPPjfS','11zifFxv','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','5280870TBgRjC','9gJIaNl','35912XNsTod','42MSzDyp','cli-skill','\x20-g\x20-y)...','3162012vONNIW','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','\x20-g\x20-y','apiError','nonInteractive','pipe','978zvHnqS','log'];a17_0x2bc6=function(){return _0x3c7422;};return a17_0x2bc6();}(function(_0x496716,_0xc0dfa5){const _0x3d479b=a17_0x2b04,_0x4ef782=_0x496716();while(!![]){try{const _0x46d497=parseInt(_0x3d479b(0x1a9))/0x1+parseInt(_0x3d479b(0x1b0))/0x2*(-parseInt(_0x3d479b(0x1b1))/0x3)+-parseInt(_0x3d479b(0x1a3))/0x4+-parseInt(_0x3d479b(0x1a7))/0x5*(-parseInt(_0x3d479b(0x19f))/0x6)+-parseInt(_0x3d479b(0x1a6))/0x7*(parseInt(_0x3d479b(0x1ab))/0x8)+parseInt(_0x3d479b(0x1af))/0x9*(parseInt(_0x3d479b(0x1ae))/0xa)+-parseInt(_0x3d479b(0x1ac))/0xb*(parseInt(_0x3d479b(0x1b4))/0xc);if(_0x46d497===_0xc0dfa5)break;else _0x4ef782['push'](_0x4ef782['shift']());}catch(_0x2096b0){_0x4ef782['push'](_0x4ef782['shift']());}}}(a17_0x2bc6,0x4c235));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a17_0x4a1e42(0x1b2),'command':'install','description':a17_0x4a1e42(0x1b5),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x397141){const _0x336bc7=a17_0x4a1e42;logger['setLogPath'](process['cwd']()),logger[_0x336bc7(0x1a1)](_0x336bc7(0x1a5),_0x336bc7(0x1ad));const {LOVRABET_SKILL_SOURCE:_0x31c014,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x1ce7dd,runNpxSkillsAddGlobal:_0x28ba4f}=await import('../../skills/npx-skills-add.js'),_0x567b61=_0x397141[_0x336bc7(0x19d)]?_0x336bc7(0x19e):'inherit';console[_0x336bc7(0x1a0)](_0x336bc7(0x1a2)+_0x31c014+_0x336bc7(0x1b3));const _0x5f0990=_0x28ba4f(process[_0x336bc7(0x1a8)](),_0x31c014,{'stdio':_0x567b61});if(_0x5f0990['skipped'])console[_0x336bc7(0x1a0)]('Skipped\x20npx\x20('+_0x1ce7dd+'=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.');else{if(_0x5f0990['ok'])console[_0x336bc7(0x1a0)]('CLI\x20Built-in\x20Skill\x20installed');else throw CliErrors[_0x336bc7(0x19c)](_0x336bc7(0x1a4)+(_0x5f0990[_0x336bc7(0x1aa)]||'unknown'),'Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20'+_0x31c014+_0x336bc7(0x19b));}return{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0xc667b5,_0x1abb48){const _0x2ee8d8=a18_0x4ae3,_0x2ce15f=_0xc667b5();while(!![]){try{const _0x1d9c04=parseInt(_0x2ee8d8(0x1e8))/0x1+-parseInt(_0x2ee8d8(0x1ef))/0x2+parseInt(_0x2ee8d8(0x1eb))/0x3*(-parseInt(_0x2ee8d8(0x1ea))/0x4)+-parseInt(_0x2ee8d8(0x1ec))/0x5+-parseInt(_0x2ee8d8(0x1ee))/0x6+-parseInt(_0x2ee8d8(0x1e9))/0x7+parseInt(_0x2ee8d8(0x1f1))/0x8*(parseInt(_0x2ee8d8(0x1e5))/0x9);if(_0x1d9c04===_0x1abb48)break;else _0x2ce15f['push'](_0x2ce15f['shift']());}catch(_0xa70fc8){_0x2ce15f['push'](_0x2ce15f['shift']());}}}(a18_0x15d9,0x39088));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';function a18_0x4ae3(_0x27ab2d,_0x4b4010){_0x27ab2d=_0x27ab2d-0x1e2;const _0x15d98e=a18_0x15d9();let _0x4ae3dc=_0x15d98e[_0x27ab2d];return _0x4ae3dc;}export{RUNTIME_ENV_VALUES}from'../../constant/env.js';function a18_0x15d9(){const _0x25e365=['481992VfkhXv','\x20found).','26968wnpwux',',\x20or\x20run\x20`','newConfigFileName','project','\x20(global)','Not\x20inside\x20a\x20project\x20(no\x20','Add\x20--global\x20to\x20write\x20to\x20~/','Use\x20only\x20one\x20config\x20scope\x20flag.','project-or-global-explicit','inProject','3987SllXZn','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','global','147878tJDYAE','1394792JiubFJ','556UYtBAD','7851xUUZKv','1275140UFAxQi','validation','2091480ijQFmK'];a18_0x15d9=function(){return _0x25e365;};return a18_0x15d9();}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(_0x9a3d29){const _0xc2d304=a18_0x4ae3,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x7d0be5}=_0x9a3d29;if(explicitGlobal&&explicitProject)throw CliErrors[_0xc2d304(0x1ed)](_0xc2d304(0x1e6),_0xc2d304(0x1e2));if(explicitGlobal)return _0xc2d304(0x1e7);if(explicitProject)return _0xc2d304(0x1f4);switch(_0x7d0be5){case'global-default':return _0xc2d304(0x1e7);case'project-default':return _0x9a3d29[_0xc2d304(0x1e4)]??isInProject()?_0xc2d304(0x1f4):'global';case _0xc2d304(0x1e3):if(!(_0x9a3d29[_0xc2d304(0x1e4)]??isInProject()))throw CliErrors[_0xc2d304(0x1ed)](_0xc2d304(0x1f6)+PRODUCT_CONFIG[_0xc2d304(0x1f3)]+_0xc2d304(0x1f0),_0xc2d304(0x1f7)+PRODUCT_CONFIG[_0xc2d304(0x1f3)]+_0xc2d304(0x1f2)+CLI_BIN_NAME+'\x20init`\x20first.');return _0xc2d304(0x1f4);}}export function toScopeFlags(_0x2dad0a){const _0x55372d=a18_0x4ae3;return{'global':_0x2dad0a===_0x55372d(0x1e7)};}export function formatScopeLabel(_0x137249){const _0x4ead51=a18_0x4ae3;return _0x137249===_0x4ead51(0x1e7)?_0x4ead51(0x1f5):'';}
1
+ (function(_0x3beaae,_0x16ad0f){const _0x20831a=a18_0x3747,_0x370d86=_0x3beaae();while(!![]){try{const _0x3478b5=-parseInt(_0x20831a(0x186))/0x1+-parseInt(_0x20831a(0x18f))/0x2*(parseInt(_0x20831a(0x18d))/0x3)+-parseInt(_0x20831a(0x179))/0x4*(-parseInt(_0x20831a(0x181))/0x5)+parseInt(_0x20831a(0x18c))/0x6+parseInt(_0x20831a(0x183))/0x7*(parseInt(_0x20831a(0x17e))/0x8)+-parseInt(_0x20831a(0x184))/0x9+parseInt(_0x20831a(0x18a))/0xa;if(_0x3478b5===_0x16ad0f)break;else _0x370d86['push'](_0x370d86['shift']());}catch(_0x546740){_0x370d86['push'](_0x370d86['shift']());}}}(a18_0x5ae5,0xbeb36));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';function a18_0x5ae5(){const _0x7a6077=['1103820flegyY','global','5731260OOHvhC','321MigkOj','project-default','18224rGwSNQ','project','12WhByZt','Add\x20--global\x20to\x20write\x20to\x20~/','newConfigFileName','validation','Use\x20only\x20one\x20config\x20scope\x20flag.','4401624JdFdkl','inProject','Not\x20inside\x20a\x20project\x20(no\x20','2520345rGllNA','\x20init`\x20first.','7rJJIJz','6061788PcRmEB','global-default','698376IMaQyY','project-or-global-explicit','\x20(global)','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.'];a18_0x5ae5=function(){return _0x7a6077;};return a18_0x5ae5();}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';function a18_0x3747(_0x4ceac2,_0x142148){_0x4ceac2=_0x4ceac2-0x178;const _0x5ae5bf=a18_0x5ae5();let _0x37471=_0x5ae5bf[_0x4ceac2];return _0x37471;}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(_0x10b236){const _0x2a14c6=a18_0x3747,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x16cd39}=_0x10b236;if(explicitGlobal&&explicitProject)throw CliErrors[_0x2a14c6(0x17c)](_0x2a14c6(0x189),_0x2a14c6(0x17d));if(explicitGlobal)return _0x2a14c6(0x18b);if(explicitProject)return _0x2a14c6(0x178);switch(_0x16cd39){case _0x2a14c6(0x185):return _0x2a14c6(0x18b);case _0x2a14c6(0x18e):return _0x10b236['inProject']??isInProject()?'project':_0x2a14c6(0x18b);case _0x2a14c6(0x187):if(!(_0x10b236[_0x2a14c6(0x17f)]??isInProject()))throw CliErrors[_0x2a14c6(0x17c)](_0x2a14c6(0x180)+PRODUCT_CONFIG[_0x2a14c6(0x17b)]+'\x20found).',_0x2a14c6(0x17a)+PRODUCT_CONFIG[_0x2a14c6(0x17b)]+',\x20or\x20run\x20`'+CLI_BIN_NAME+_0x2a14c6(0x182));return'project';}}export function toScopeFlags(_0x5c0978){return{'global':_0x5c0978==='global'};}export function formatScopeLabel(_0x94487d){const _0xb59a72=a18_0x3747;return _0x94487d===_0xb59a72(0x18b)?_0xb59a72(0x188):'';}
@@ -1 +1 @@
1
- (function(_0x294041,_0x2360cc){const _0x955b42=a19_0x1ae1,_0x5433f9=_0x294041();while(!![]){try{const _0x3bc586=parseInt(_0x955b42(0x18d))/0x1+parseInt(_0x955b42(0x187))/0x2+parseInt(_0x955b42(0x19a))/0x3*(-parseInt(_0x955b42(0x193))/0x4)+-parseInt(_0x955b42(0x18f))/0x5+parseInt(_0x955b42(0x198))/0x6+parseInt(_0x955b42(0x19c))/0x7+parseInt(_0x955b42(0x194))/0x8*(-parseInt(_0x955b42(0x197))/0x9);if(_0x3bc586===_0x2360cc)break;else _0x5433f9['push'](_0x5433f9['shift']());}catch(_0x47db2a){_0x5433f9['push'](_0x5433f9['shift']());}}}(a19_0x5a76,0xed99e));import{CliErrors}from'../../errors.js';function isSet(_0x5a1127,_0x1f8e5a){const _0x21f6a7=a19_0x1ae1,_0x5a820f=_0x5a1127[_0x21f6a7(0x185)](_0x1f8e5a);return _0x5a820f!==undefined&&_0x5a820f!==''&&_0x5a820f!==![]&&_0x5a820f!==0x0;}function fmtNames(_0x10e91f){const _0x17e852=a19_0x1ae1;return _0x10e91f['map'](_0x2abfa5=>'--'+_0x2abfa5)[_0x17e852(0x199)](',\x20');}function a19_0x1ae1(_0x24ec1a,_0x1349d0){_0x24ec1a=_0x24ec1a-0x184;const _0x5a7647=a19_0x5a76();let _0x1ae1a8=_0x5a7647[_0x24ec1a];return _0x1ae1a8;}export function requireOneOf(_0x231016,_0x1b4299,_0x438df8){const _0x4c27ca=a19_0x1ae1,_0x50afa1=_0x1b4299[_0x4c27ca(0x195)](_0x39e4af=>isSet(_0x231016,_0x39e4af));if(_0x50afa1['length']!==0x1)throw CliErrors['validation'](_0x50afa1[_0x4c27ca(0x196)]===0x0?'Exactly\x20one\x20of\x20'+fmtNames(_0x1b4299)+_0x4c27ca(0x19d)+_0x438df8+'`.':_0x4c27ca(0x192)+fmtNames(_0x1b4299)+_0x4c27ca(0x18a)+fmtNames(_0x50afa1)+'.',_0x50afa1[_0x4c27ca(0x196)]===0x0?_0x4c27ca(0x18e)+fmtNames(_0x1b4299):_0x4c27ca(0x18b));}export function requireAnyOf(_0x18d526,_0x2cdf45,_0x1c3882){const _0x33e009=a19_0x1ae1;if(!_0x2cdf45['some'](_0x1b71b2=>isSet(_0x18d526,_0x1b71b2)))throw CliErrors[_0x33e009(0x189)](_0x33e009(0x186)+fmtNames(_0x2cdf45)+_0x33e009(0x19d)+_0x1c3882+'`.',_0x33e009(0x18e)+fmtNames(_0x2cdf45));}export function mutuallyExclusive(_0x322d22,_0x2924ee,_0xe0399c){const _0x442263=a19_0x1ae1,_0x57580c=_0x2924ee[_0x442263(0x195)](_0x17a199=>isSet(_0x322d22,_0x17a199));if(_0x57580c[_0x442263(0x196)]>0x1)throw CliErrors[_0x442263(0x189)](_0x442263(0x19b)+fmtNames(_0x57580c)+_0x442263(0x190)+_0xe0399c+'`.',_0x442263(0x188)+fmtNames(_0x2924ee));}function a19_0x5a76(){const _0x316347=['373892BSaKAD','88WgNfcH','filter','length','492084JeYnRT','2295978OVBKKf','join','57PTOtYW','Flags\x20','5833030pvtuxF','\x20is\x20required\x20for\x20`','test','str','flag','At\x20least\x20one\x20of\x20','3724966weBmXd','Use\x20only\x20one\x20of:\x20','validation','\x20is\x20allowed,\x20found:\x20','Remove\x20all\x20but\x20one.',':\x20expected\x20','394616NOECLa','Provide\x20one\x20of:\x20','612075FjWBuJ','\x20are\x20mutually\x20exclusive\x20for\x20`',',\x20got\x20\x22','Only\x20one\x20of\x20'];a19_0x5a76=function(){return _0x316347;};return a19_0x5a76();}export function validatePattern(_0x53f750,_0x57290f,_0xf2e45e,_0x4cb679){const _0x21b891=a19_0x1ae1,_0x488266=_0x53f750[_0x21b891(0x184)](_0x57290f);if(_0x488266&&!_0xf2e45e[_0x21b891(0x19e)](_0x488266))throw CliErrors[_0x21b891(0x189)]('Invalid\x20--'+_0x57290f+_0x21b891(0x18c)+_0x4cb679+_0x21b891(0x191)+_0x488266+'\x22.');}
1
+ function a19_0x5aba(_0x112e01,_0x2a79e7){_0x112e01=_0x112e01-0x17b;const _0x2aed14=a19_0x2aed();let _0x5abae4=_0x2aed14[_0x112e01];return _0x5abae4;}(function(_0x56d01f,_0x149168){const _0x377a4f=a19_0x5aba,_0x4d6749=_0x56d01f();while(!![]){try{const _0x41cde5=parseInt(_0x377a4f(0x17b))/0x1+parseInt(_0x377a4f(0x183))/0x2*(-parseInt(_0x377a4f(0x184))/0x3)+-parseInt(_0x377a4f(0x17d))/0x4*(parseInt(_0x377a4f(0x18d))/0x5)+parseInt(_0x377a4f(0x193))/0x6*(parseInt(_0x377a4f(0x191))/0x7)+parseInt(_0x377a4f(0x195))/0x8*(-parseInt(_0x377a4f(0x18e))/0x9)+parseInt(_0x377a4f(0x17c))/0xa*(parseInt(_0x377a4f(0x187))/0xb)+-parseInt(_0x377a4f(0x194))/0xc*(-parseInt(_0x377a4f(0x182))/0xd);if(_0x41cde5===_0x149168)break;else _0x4d6749['push'](_0x4d6749['shift']());}catch(_0x16509c){_0x4d6749['push'](_0x4d6749['shift']());}}}(a19_0x2aed,0xb3279));function a19_0x2aed(){const _0x563d9d=['2690XeEYjs','1467KOAcFS','map','\x20is\x20required\x20for\x20`','275WRNiRV','Remove\x20all\x20but\x20one.','Invalid\x20--','validation','Flags\x20','length','3080455FLpSPF','1953RrdCyS','At\x20least\x20one\x20of\x20',',\x20got\x20\x22','532YCeKdn','\x20are\x20mutually\x20exclusive\x20for\x20`','49398YngGAN','2929428fJhZJI','18968PvqGem','158733mCMQiL','453270WhwEaH','8iDZNcj','filter','str','some',':\x20expected\x20','65saQqTe'];a19_0x2aed=function(){return _0x563d9d;};return a19_0x2aed();}import{CliErrors}from'../../errors.js';function isSet(_0x307055,_0x1021ea){const _0x2102c5=_0x307055['flag'](_0x1021ea);return _0x2102c5!==undefined&&_0x2102c5!==''&&_0x2102c5!==![]&&_0x2102c5!==0x0;}function fmtNames(_0x3b4626){const _0x29822e=a19_0x5aba;return _0x3b4626[_0x29822e(0x185)](_0x3b7ab6=>'--'+_0x3b7ab6)['join'](',\x20');}export function requireOneOf(_0x2af23a,_0x58e122,_0x4a9c2a){const _0x326968=a19_0x5aba,_0x132448=_0x58e122['filter'](_0x29b49d=>isSet(_0x2af23a,_0x29b49d));if(_0x132448[_0x326968(0x18c)]!==0x1)throw CliErrors[_0x326968(0x18a)](_0x132448['length']===0x0?'Exactly\x20one\x20of\x20'+fmtNames(_0x58e122)+_0x326968(0x186)+_0x4a9c2a+'`.':'Only\x20one\x20of\x20'+fmtNames(_0x58e122)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x132448)+'.',_0x132448[_0x326968(0x18c)]===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x58e122):_0x326968(0x188));}export function requireAnyOf(_0x407e1f,_0x2fd99c,_0x219961){const _0xd645f7=a19_0x5aba;if(!_0x2fd99c[_0xd645f7(0x180)](_0x233a0e=>isSet(_0x407e1f,_0x233a0e)))throw CliErrors[_0xd645f7(0x18a)](_0xd645f7(0x18f)+fmtNames(_0x2fd99c)+_0xd645f7(0x186)+_0x219961+'`.','Provide\x20one\x20of:\x20'+fmtNames(_0x2fd99c));}export function mutuallyExclusive(_0x2590e3,_0x151bfe,_0x291bc7){const _0xc07947=a19_0x5aba,_0xa31dc1=_0x151bfe[_0xc07947(0x17e)](_0x3a283b=>isSet(_0x2590e3,_0x3a283b));if(_0xa31dc1[_0xc07947(0x18c)]>0x1)throw CliErrors[_0xc07947(0x18a)](_0xc07947(0x18b)+fmtNames(_0xa31dc1)+_0xc07947(0x192)+_0x291bc7+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x151bfe));}export function validatePattern(_0x375a54,_0x552f2c,_0x3c2f3f,_0x40c1c4){const _0x14d51a=a19_0x5aba,_0x3d37a3=_0x375a54[_0x14d51a(0x17f)](_0x552f2c);if(_0x3d37a3&&!_0x3c2f3f['test'](_0x3d37a3))throw CliErrors[_0x14d51a(0x18a)](_0x14d51a(0x189)+_0x552f2c+_0x14d51a(0x181)+_0x40c1c4+_0x14d51a(0x190)+_0x3d37a3+'\x22.');}
@@ -1 +1 @@
1
- function a20_0x1cdb(){const _0x14ac97=['822512lBwDxk','name','params','sqlcode','string','15HUyVnm','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','2512776geEYIL','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','Resource\x20name\x20for\x20lookup','Resource\x20ID','32392zafeHn','11355939AFKwHw','Return\x20full\x20raw\x20response\x20object','219630eIQOxV','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','572636WhlihX','25322trnrYt','399EJcZSl'];a20_0x1cdb=function(){return _0x14ac97;};return a20_0x1cdb();}function a20_0x9d9e(_0x38e36c,_0x5a3f27){_0x38e36c=_0x38e36c-0x1b6;const _0x1cdb5d=a20_0x1cdb();let _0x9d9ea3=_0x1cdb5d[_0x38e36c];return _0x9d9ea3;}const a20_0x1d24f4=a20_0x9d9e;(function(_0x138b3f,_0x246ea1){const _0x2506a1=a20_0x9d9e,_0xf47606=_0x138b3f();while(!![]){try{const _0xfd2a3e=parseInt(_0x2506a1(0x1c0))/0x1+parseInt(_0x2506a1(0x1c2))/0x2+parseInt(_0x2506a1(0x1bd))/0x3+-parseInt(_0x2506a1(0x1bf))/0x4*(-parseInt(_0x2506a1(0x1c7))/0x5)+parseInt(_0x2506a1(0x1b6))/0x6+-parseInt(_0x2506a1(0x1c1))/0x7*(-parseInt(_0x2506a1(0x1ba))/0x8)+-parseInt(_0x2506a1(0x1bb))/0x9;if(_0xfd2a3e===_0x246ea1)break;else _0xf47606['push'](_0xf47606['shift']());}catch(_0x4597cd){_0xf47606['push'](_0xf47606['shift']());}}}(a20_0x1cdb,0x4fdab));export const CODE_FLAG={'name':'code','type':a20_0x1d24f4(0x1c6),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x1d24f4(0x1b7)}};export const SQLCODE_FLAG={'name':a20_0x1d24f4(0x1c5),'type':a20_0x1d24f4(0x1c6),'required':!![],'description':a20_0x1d24f4(0x1c8),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x1d24f4(0x1be)}};export const VERBOSE_FLAG={'name':'verbose','type':'boolean','description':a20_0x1d24f4(0x1bc)};export const PARAMS_FLAG={'name':a20_0x1d24f4(0x1c4),'type':a20_0x1d24f4(0x1c6),'description':a20_0x1d24f4(0x1c9)};export const NAME_FLAG={'name':a20_0x1d24f4(0x1c3),'type':a20_0x1d24f4(0x1c6),'description':a20_0x1d24f4(0x1b8)};export const ID_FLAG={'name':'id','type':'number','required':!![],'description':a20_0x1d24f4(0x1b9)};
1
+ const a20_0x1032d6=a20_0x491f;function a20_0x491f(_0x2611b2,_0x4449c9){_0x2611b2=_0x2611b2-0x188;const _0x4140f=a20_0x4140();let _0x491ff5=_0x4140f[_0x2611b2];return _0x491ff5;}(function(_0x1cffb2,_0x8fb055){const _0x1badb2=a20_0x491f,_0x4a3691=_0x1cffb2();while(!![]){try{const _0x33428a=-parseInt(_0x1badb2(0x190))/0x1*(parseInt(_0x1badb2(0x199))/0x2)+parseInt(_0x1badb2(0x18f))/0x3+-parseInt(_0x1badb2(0x196))/0x4*(-parseInt(_0x1badb2(0x197))/0x5)+-parseInt(_0x1badb2(0x19c))/0x6*(parseInt(_0x1badb2(0x188))/0x7)+-parseInt(_0x1badb2(0x18c))/0x8*(parseInt(_0x1badb2(0x19a))/0x9)+-parseInt(_0x1badb2(0x195))/0xa*(parseInt(_0x1badb2(0x19b))/0xb)+parseInt(_0x1badb2(0x18b))/0xc;if(_0x33428a===_0x8fb055)break;else _0x4a3691['push'](_0x4a3691['shift']());}catch(_0x5723cc){_0x4a3691['push'](_0x4a3691['shift']());}}}(a20_0x4140,0x5db60));export const CODE_FLAG={'name':a20_0x1032d6(0x18e),'type':a20_0x1032d6(0x193),'required':!![],'description':a20_0x1032d6(0x194),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x1032d6(0x18d)}};export const SQLCODE_FLAG={'name':'sqlcode','type':a20_0x1032d6(0x193),'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_0x1032d6(0x19d)}};export const VERBOSE_FLAG={'name':'verbose','type':a20_0x1032d6(0x192),'description':a20_0x1032d6(0x189)};function a20_0x4140(){const _0x228225=['Dataset\x20code\x20(32-char\x20hex\x20UUID)','30xKOBfF','577632rWsqUf','5IcjMCk','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','62QUHQVO','52587fdMwHh','1962356THMYBk','125046XJyYpu','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','14XxSIGR','Return\x20full\x20raw\x20response\x20object','params','17259300AqBPsV','680BzhHnF','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','code','1334967uLOpBS','18397naeXrA','name','boolean','string'];a20_0x4140=function(){return _0x228225;};return a20_0x4140();}export const PARAMS_FLAG={'name':a20_0x1032d6(0x18a),'type':'string','description':a20_0x1032d6(0x198)};export const NAME_FLAG={'name':a20_0x1032d6(0x191),'type':'string','description':'Resource\x20name\x20for\x20lookup'};export const ID_FLAG={'name':'id','type':'number','required':!![],'description':'Resource\x20ID'};
@@ -1 +1 @@
1
- function a21_0x1db1(_0x1f1dff,_0x24fba6){_0x1f1dff=_0x1f1dff-0xe8;const _0x212f6f=a21_0x212f();let _0x1db11e=_0x212f6f[_0x1f1dff];return _0x1db11e;}(function(_0x222c83,_0x5f3a2e){const _0x277671=a21_0x1db1,_0x3d4903=_0x222c83();while(!![]){try{const _0x487dcc=parseInt(_0x277671(0xf2))/0x1+parseInt(_0x277671(0xea))/0x2+parseInt(_0x277671(0xed))/0x3+-parseInt(_0x277671(0xe9))/0x4*(parseInt(_0x277671(0xf6))/0x5)+-parseInt(_0x277671(0xf1))/0x6+parseInt(_0x277671(0xf4))/0x7+-parseInt(_0x277671(0xf5))/0x8*(parseInt(_0x277671(0xf3))/0x9);if(_0x487dcc===_0x5f3a2e)break;else _0x3d4903['push'](_0x3d4903['shift']());}catch(_0x1d5f99){_0x3d4903['push'](_0x3d4903['shift']());}}}(a21_0x212f,0x4685f));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x4274ea){const _0x13eab1=a21_0x1db1;if(_0x4274ea>=BYTES_PER_MB){const _0x8067c7=Math[_0x13eab1(0xef)](_0x4274ea/BYTES_PER_MB*0x64)/0x64;return _0x8067c7[_0x13eab1(0xf0)](0x2)+_0x13eab1(0xee);}return _0x4274ea+'\x20B';}export function requireRuntimeUploadFile(_0x4c5ca7,_0x1206c2){const _0x42f11b=a21_0x1db1,_0x21fdbd=_0x4c5ca7['trim']();if(!_0x21fdbd)throw CliErrors[_0x42f11b(0xf7)](_0x1206c2+_0x42f11b(0xf8));if(!existsSync(_0x21fdbd))throw CliErrors[_0x42f11b(0xf7)](_0x42f11b(0xeb)+_0x21fdbd);const _0x13dee5=statSync(_0x21fdbd);if(!_0x13dee5['isFile']())throw CliErrors[_0x42f11b(0xf7)](_0x42f11b(0xe8)+_0x21fdbd);if(_0x13dee5[_0x42f11b(0xec)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x42f11b(0xf7)](_0x42f11b(0xf9)+_0x21fdbd+'\x20('+formatBytes(_0x13dee5[_0x42f11b(0xec)])+')');return{'path':_0x21fdbd,'size':_0x13dee5['size']};}function a21_0x212f(){const _0x1bbd1d=['1432970tOAtWj','1496fuXgpW','1920rAMCqt','validation','\x20path\x20is\x20required.','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','File\x20is\x20not\x20a\x20regular\x20file:\x20','2672Vxnxem','978994IUevFj','File\x20not\x20found:\x20','size','538686EBiRWV','\x20MB','ceil','toFixed','2056254aqPmjB','34324rNwAEP','963upAcDz'];a21_0x212f=function(){return _0x1bbd1d;};return a21_0x212f();}
1
+ (function(_0x2d90b6,_0x377730){const _0xc1d379=a21_0x32c1,_0x3f4877=_0x2d90b6();while(!![]){try{const _0x3c9506=-parseInt(_0xc1d379(0x6f))/0x1*(parseInt(_0xc1d379(0x6b))/0x2)+-parseInt(_0xc1d379(0x6c))/0x3*(-parseInt(_0xc1d379(0x67))/0x4)+parseInt(_0xc1d379(0x66))/0x5+-parseInt(_0xc1d379(0x69))/0x6*(-parseInt(_0xc1d379(0x6d))/0x7)+parseInt(_0xc1d379(0x6a))/0x8+-parseInt(_0xc1d379(0x72))/0x9+-parseInt(_0xc1d379(0x70))/0xa;if(_0x3c9506===_0x377730)break;else _0x3f4877['push'](_0x3f4877['shift']());}catch(_0x53a76b){_0x3f4877['push'](_0x3f4877['shift']());}}}(a21_0x88a8,0xa118d));function a21_0x88a8(){const _0x3bd083=['187004kAIhej','size','497058PbKMTf','3761536pSPIqb','144728tYJvvC','75hzpOAq','7ypcZSD','\x20MB','2LnehPg','12868210JApYhf','\x20path\x20is\x20required.','6507603psFZPo','trim','isFile','validation','5463295OYMdPe'];a21_0x88a8=function(){return _0x3bd083;};return a21_0x88a8();}import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function a21_0x32c1(_0x5c0078,_0x14332b){_0x5c0078=_0x5c0078-0x64;const _0x88a84d=a21_0x88a8();let _0x32c1ba=_0x88a84d[_0x5c0078];return _0x32c1ba;}function formatBytes(_0x4551e7){const _0x1e6e09=a21_0x32c1;if(_0x4551e7>=BYTES_PER_MB){const _0x4d457a=Math['ceil'](_0x4551e7/BYTES_PER_MB*0x64)/0x64;return _0x4d457a['toFixed'](0x2)+_0x1e6e09(0x6e);}return _0x4551e7+'\x20B';}export function requireRuntimeUploadFile(_0x133351,_0x21a323){const _0x4f689e=a21_0x32c1,_0x35943e=_0x133351[_0x4f689e(0x73)]();if(!_0x35943e)throw CliErrors[_0x4f689e(0x65)](_0x21a323+_0x4f689e(0x71));if(!existsSync(_0x35943e))throw CliErrors[_0x4f689e(0x65)]('File\x20not\x20found:\x20'+_0x35943e);const _0x431156=statSync(_0x35943e);if(!_0x431156[_0x4f689e(0x64)]())throw CliErrors[_0x4f689e(0x65)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x35943e);if(_0x431156[_0x4f689e(0x68)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x4f689e(0x65)]('File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20'+_0x35943e+'\x20('+formatBytes(_0x431156[_0x4f689e(0x68)])+')');return{'path':_0x35943e,'size':_0x431156['size']};}
@@ -1 +1 @@
1
- const a22_0x224c83=a22_0x5ce3;(function(_0x16285f,_0x46b0d8){const _0x16197f=a22_0x5ce3,_0x11e409=_0x16285f();while(!![]){try{const _0x393a44=parseInt(_0x16197f(0x185))/0x1+-parseInt(_0x16197f(0x177))/0x2+-parseInt(_0x16197f(0x18e))/0x3*(-parseInt(_0x16197f(0x18a))/0x4)+parseInt(_0x16197f(0x17d))/0x5+-parseInt(_0x16197f(0x1a0))/0x6*(-parseInt(_0x16197f(0x184))/0x7)+parseInt(_0x16197f(0x174))/0x8*(parseInt(_0x16197f(0x175))/0x9)+-parseInt(_0x16197f(0x19b))/0xa*(parseInt(_0x16197f(0x179))/0xb);if(_0x393a44===_0x46b0d8)break;else _0x11e409['push'](_0x11e409['shift']());}catch(_0xb7161){_0x11e409['push'](_0x11e409['shift']());}}}(a22_0x5757,0xe2f10));function a22_0x5ce3(_0x1ff630,_0x310224){_0x1ff630=_0x1ff630-0x15b;const _0x575717=a22_0x5757();let _0x5ce393=_0x575717[_0x1ff630];return _0x5ce393;}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_0x224c83(0x196),'type':a22_0x224c83(0x15e),'description':'Write\x20to\x20global\x20config','default':![]};function parseAliasAppcodeSetKey(_0x5573d7){const _0xe0494b=a22_0x224c83,_0x583353=_0x5573d7[_0xe0494b(0x193)]('.');if(_0x583353[_0xe0494b(0x15f)]!==0x3||_0x583353[0x0]!==_0xe0494b(0x163)||_0x583353[0x2]!==_0xe0494b(0x17f))return undefined;const _0x5dc820=_0x583353[0x1]?.[_0xe0494b(0x170)]();return _0x5dc820?_0x5dc820:undefined;}function parseAliasDeleteKey(_0x6ed9f9){const _0x37477d=a22_0x224c83,_0x52f89b=_0x6ed9f9[_0x37477d(0x193)]('.');if(_0x52f89b['length']===0x2&&_0x52f89b[0x0]===_0x37477d(0x163)){const _0x26b1ac=_0x52f89b[0x1]?.[_0x37477d(0x170)]();return _0x26b1ac?{'alias':_0x26b1ac}:undefined;}if(_0x52f89b[_0x37477d(0x15f)]===0x3&&_0x52f89b[0x0]===_0x37477d(0x163)&&_0x52f89b[0x2]===_0x37477d(0x17f)){const _0x5edd86=_0x52f89b[0x1]?.[_0x37477d(0x170)]();return _0x5edd86?{'alias':_0x5edd86,'field':_0x37477d(0x17f)}:undefined;}return undefined;}function setLocalAppAlias(_0x3923a3,_0x523d45,_0x1954d9){const _0x5895fb=a22_0x224c83,_0x58cc18=_0x3923a3[_0x5895fb(0x163)]&&typeof _0x3923a3[_0x5895fb(0x163)]===_0x5895fb(0x186)&&!Array[_0x5895fb(0x165)](_0x3923a3[_0x5895fb(0x163)])?_0x3923a3[_0x5895fb(0x163)]:{},_0x371d9a=_0x58cc18[_0x523d45]&&typeof _0x58cc18[_0x523d45]===_0x5895fb(0x186)&&!Array[_0x5895fb(0x165)](_0x58cc18[_0x523d45])?_0x58cc18[_0x523d45]:{};_0x371d9a['appcode']=_0x1954d9,_0x58cc18[_0x523d45]=_0x371d9a,_0x3923a3[_0x5895fb(0x163)]=_0x58cc18;}function deleteLocalAppAlias(_0x917db7,_0x3895d0){const _0x446de5=a22_0x224c83;if(!_0x917db7[_0x446de5(0x163)]||typeof _0x917db7[_0x446de5(0x163)]!==_0x446de5(0x186)||Array[_0x446de5(0x165)](_0x917db7[_0x446de5(0x163)]))return![];const _0x29d946=_0x917db7[_0x446de5(0x163)],_0x314f13=_0x29d946[_0x3895d0[_0x446de5(0x171)]];if(!_0x314f13||typeof _0x314f13!==_0x446de5(0x186)||Array['isArray'](_0x314f13))return![];if(!_0x3895d0[_0x446de5(0x173)])return delete _0x29d946[_0x3895d0[_0x446de5(0x171)]],!![];if(!(_0x3895d0['field']in _0x314f13))return![];return delete _0x314f13[_0x3895d0[_0x446de5(0x173)]],Object['keys'](_0x314f13)[_0x446de5(0x15f)]===0x0&&delete _0x29d946[_0x3895d0[_0x446de5(0x171)]],!![];}function a22_0x5757(){const _0x58b458=['isArray','Missing\x20key\x20argument.','list','pageSize','args','format','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','value','Usage:\x20','bool','`\x20=\x20\x22','trim','alias','pageSize\x20must\x20be\x20a\x20positive\x20number','field','8SxjaAY','2751471boVlzb','pretty','603104NPmjpG',';\x20apps.<alias>.appcode','176YhBWgJ','Get\x20a\x20config\x20value','../../context.js','raw','3923950nhUqwV','config','appcode','\x22\x20is\x20not\x20settable.','Key\x20\x22','\x20config\x20set\x20<key>\x20<value>\x20[--global]','riskLevel','315497ZpUSHB','1215487XcPdFf','object','log','Config\x20files:\x0a','write','468qgUjzo','Set\x20a\x20config\x20value','Top-level\x20key\x20\x22','\x20(global)','40563cwASuu','Invalid\x20value\x20for\x20\x22','delete','Deleted\x20`','stringify','split','join','get','global','key','Delete\x20a\x20config\x20value','\x20\x20global:\x20\x20','(none)','1688700xEcOfT','project-or-global-explicit','\x20config\x20get\x20<key>','\x20\x20project:\x20','Key\x20not\x20found:\x20','6LXMayJ','includes','validation','Settable\x20keys:\x20','set','boolean','length','Missing\x20key\x20or\x20value.','\x22\x20not\x20found\x20at\x20top\x20level.','read','apps','List\x20current\x20config'];a22_0x5757=function(){return _0x58b458;};return a22_0x5757();}const listDef={'service':'config','command':a22_0x224c83(0x167),'description':a22_0x224c83(0x164),'risk':a22_0x224c83(0x162),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x563485){const _0x53edf9=a22_0x224c83,{buildConfigFromFlags:_0x35c5a3}=await import(_0x53edf9(0x17b)),_0x44c2ff=_0x35c5a3({}),_0x36f6fb=getProjectConfigPath(),_0xa75d9c=resolveWriteConfigPath(_0x53edf9(0x196));if(_0x563485[_0x53edf9(0x16a)]===_0x53edf9(0x176))return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON['stringify'](_0x44c2ff[_0x53edf9(0x17c)],null,0x2)+'\x0a\x0a')+_0x53edf9(0x188)+(_0x53edf9(0x19e)+(_0x36f6fb??_0x53edf9(0x19a))+'\x0a')+(_0x53edf9(0x199)+_0xa75d9c)};return{'ok':!![],'data':{'effective':_0x44c2ff[_0x53edf9(0x17c)],'configFiles':{'project':_0x36f6fb??null,'global':_0xa75d9c}}};}},getDef={'service':a22_0x224c83(0x17e),'command':a22_0x224c83(0x195),'description':a22_0x224c83(0x17a),'risk':a22_0x224c83(0x162),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x224c83(0x197),'description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x2b0c3c){const _0x286508=a22_0x224c83,_0xe91f92=_0x2b0c3c['args'][0x0];if(!_0xe91f92)throw CliErrors['validation'](_0x286508(0x166),_0x286508(0x16d)+CLI_BIN_NAME+_0x286508(0x19d));const {buildConfigFromFlags:_0x97dba5}=await import('../../context.js'),{raw:_0x46f838}=_0x97dba5({});if(_0xe91f92[_0x286508(0x1a1)]('.')){const _0x3a9d8e=_0xe91f92[_0x286508(0x193)]('.');let _0x403380=_0x46f838;for(const _0x8bda7a of _0x3a9d8e){if(_0x403380==null||typeof _0x403380!==_0x286508(0x186))throw CliErrors[_0x286508(0x15b)](_0x286508(0x19f)+_0xe91f92);_0x403380=_0x403380[_0x8bda7a];}if(_0x403380===undefined)throw CliErrors[_0x286508(0x15b)](_0x286508(0x19f)+_0xe91f92);return console[_0x286508(0x187)](typeof _0x403380===_0x286508(0x186)?JSON[_0x286508(0x192)](_0x403380,null,0x2):String(_0x403380)),{'ok':!![]};}const _0x568cfa=_0x46f838[_0xe91f92];if(_0x568cfa===undefined)throw CliErrors[_0x286508(0x15b)]('Key\x20not\x20found:\x20'+_0xe91f92);return console[_0x286508(0x187)](typeof _0x568cfa===_0x286508(0x186)?JSON[_0x286508(0x192)](_0x568cfa,null,0x2):String(_0x568cfa)),{'ok':!![]};}},setDef={'service':a22_0x224c83(0x17e),'command':a22_0x224c83(0x15d),'description':a22_0x224c83(0x18b),'risk':a22_0x224c83(0x189),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x224c83(0x16c),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x76ab98){const _0x2f4e98=a22_0x224c83,_0x2391d6=_0x76ab98[_0x2f4e98(0x169)][0x0],_0x3cc381=_0x76ab98[_0x2f4e98(0x169)][0x1];if(!_0x2391d6||_0x3cc381===undefined)throw CliErrors[_0x2f4e98(0x15b)](_0x2f4e98(0x160),'Usage:\x20'+CLI_BIN_NAME+_0x2f4e98(0x182));if(ENUM_KEYS[_0x2391d6]&&!ENUM_KEYS[_0x2391d6][_0x2f4e98(0x1a1)](_0x3cc381))throw CliErrors[_0x2f4e98(0x15b)](_0x2f4e98(0x18f)+_0x2391d6+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x2391d6][_0x2f4e98(0x194)](',\x20'));if(_0x2391d6===_0x2f4e98(0x183))throw CliErrors[_0x2f4e98(0x15b)](_0x2f4e98(0x16b));if(_0x2391d6===_0x2f4e98(0x168)){const _0x45e5d3=Number(_0x3cc381);if(isNaN(_0x45e5d3)||_0x45e5d3<=0x0)throw CliErrors[_0x2f4e98(0x15b)](_0x2f4e98(0x172));}const _0x465f50=resolveWriteScope({'explicitGlobal':_0x76ab98[_0x2f4e98(0x16e)](_0x2f4e98(0x196)),'policy':_0x2f4e98(0x19c)}),_0x4c915e=toScopeFlags(_0x465f50),_0xac5b3e=readScopedConfig(_0x4c915e),_0x4307e8=parseAliasAppcodeSetKey(_0x2391d6);if(!_0x4307e8&&!isTopLevelConfigKey(_0x2391d6))throw CliErrors['validation'](_0x2f4e98(0x18c)+_0x2391d6+_0x2f4e98(0x180),_0x2f4e98(0x15c)+getTopLevelConfigKeySummary()+_0x2f4e98(0x178));return _0x4307e8?setLocalAppAlias(_0xac5b3e,_0x4307e8,_0x3cc381):_0xac5b3e[_0x2391d6]=_0x2391d6===_0x2f4e98(0x168)?Number(_0x3cc381):_0x3cc381,console[_0x2f4e98(0x187)]('Set\x20`'+_0x2391d6+_0x2f4e98(0x16f)+_0x3cc381+'\x22'+(_0x465f50===_0x2f4e98(0x196)?_0x2f4e98(0x18d):'')),writeScopedConfig(_0xac5b3e,_0x4c915e),{'ok':!![]};}},deleteDef={'service':'config','command':a22_0x224c83(0x190),'description':a22_0x224c83(0x198),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x224c83(0x197),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x195924){const _0x354ea7=a22_0x224c83,_0x3eba2c=_0x195924[_0x354ea7(0x169)][0x0];if(!_0x3eba2c)throw CliErrors['validation'](_0x354ea7(0x166),_0x354ea7(0x16d)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x648443=resolveWriteScope({'explicitGlobal':_0x195924[_0x354ea7(0x16e)](_0x354ea7(0x196)),'policy':'project-or-global-explicit'}),_0x517bc3=toScopeFlags(_0x648443),_0x1faaa7=readScopedConfig(_0x517bc3),_0x6ba24=parseAliasDeleteKey(_0x3eba2c);if(_0x6ba24){if(!deleteLocalAppAlias(_0x1faaa7,_0x6ba24))throw CliErrors[_0x354ea7(0x15b)](_0x354ea7(0x19f)+_0x3eba2c);return console[_0x354ea7(0x187)](_0x354ea7(0x191)+_0x3eba2c+'`'+(_0x648443===_0x354ea7(0x196)?_0x354ea7(0x18d):'')),writeScopedConfig(_0x1faaa7,_0x517bc3),{'ok':!![]};}if(_0x1faaa7[_0x3eba2c]===undefined)throw CliErrors[_0x354ea7(0x15b)](_0x354ea7(0x181)+_0x3eba2c+_0x354ea7(0x161));return delete _0x1faaa7[_0x3eba2c],console[_0x354ea7(0x187)](_0x354ea7(0x191)+_0x3eba2c+'`'+(_0x648443==='global'?_0x354ea7(0x18d):'')),writeScopedConfig(_0x1faaa7,_0x517bc3),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
1
+ const a22_0xfed400=a22_0x3386;(function(_0x1a4c29,_0x4aa752){const _0x1813f7=a22_0x3386,_0x1e865d=_0x1a4c29();while(!![]){try{const _0x6811=-parseInt(_0x1813f7(0x108))/0x1*(parseInt(_0x1813f7(0x101))/0x2)+parseInt(_0x1813f7(0x122))/0x3+parseInt(_0x1813f7(0xf3))/0x4+parseInt(_0x1813f7(0xf7))/0x5+-parseInt(_0x1813f7(0xed))/0x6+parseInt(_0x1813f7(0x10d))/0x7*(parseInt(_0x1813f7(0xfb))/0x8)+-parseInt(_0x1813f7(0x11c))/0x9*(parseInt(_0x1813f7(0x120))/0xa);if(_0x6811===_0x4aa752)break;else _0x1e865d['push'](_0x1e865d['shift']());}catch(_0x17d3eb){_0x1e865d['push'](_0x1e865d['shift']());}}}(a22_0x1d7c,0xb4341));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_0xfed400(0xeb),'description':a22_0xfed400(0x11f),'default':![]};function a22_0x3386(_0x3eca5a,_0x26999f){_0x3eca5a=_0x3eca5a-0xe1;const _0x1d7c3f=a22_0x1d7c();let _0x3386d1=_0x1d7c3f[_0x3eca5a];return _0x3386d1;}function a22_0x1d7c(){const _0x41b5ba=['Get\x20a\x20config\x20value','2499744fHrIQb','join','Value\x20to\x20assign','length','Top-level\x20key\x20\x22','\x22\x20is\x20not\x20settable.','3301156XWgohh','\x22\x20not\x20found\x20at\x20top\x20level.','split','write','2308660fUxsnf','stringify','alias','Set\x20a\x20config\x20value','798256fuVwOt','project-or-global-explicit','Invalid\x20value\x20for\x20\x22','validation','\x22.\x20Allowed:\x20','read','2HszxEh','get','appcode','\x20config\x20delete\x20<key>\x20[--global]','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','List\x20current\x20config','Deleted\x20`','757876dKzSaE','list','delete','Key\x20not\x20found:\x20','log','63NSdVco','Settable\x20keys:\x20','raw','pageSize\x20must\x20be\x20a\x20positive\x20number','args','pageSize','trim','Key\x20\x22','Set\x20`','includes','object','bool','keys','\x20\x20global:\x20\x20','pretty','14373nDeqOE','\x20(global)','Missing\x20key\x20argument.','Write\x20to\x20global\x20config','6620OemJIo','Delete\x20a\x20config\x20value','2354304mqflYy','isArray','field','../../context.js','set','\x20\x20project:\x20','\x20config\x20get\x20<key>','apps','global','format','config','key','Usage:\x20','boolean'];a22_0x1d7c=function(){return _0x41b5ba;};return a22_0x1d7c();}function parseAliasAppcodeSetKey(_0x396f76){const _0x573992=a22_0xfed400,_0x30cd34=_0x396f76[_0x573992(0xf5)]('.');if(_0x30cd34[_0x573992(0xf0)]!==0x3||_0x30cd34[0x0]!==_0x573992(0xe5)||_0x30cd34[0x2]!=='appcode')return undefined;const _0x582663=_0x30cd34[0x1]?.[_0x573992(0x113)]();return _0x582663?_0x582663:undefined;}function parseAliasDeleteKey(_0x384bc6){const _0x4d4b9d=a22_0xfed400,_0x4ade56=_0x384bc6[_0x4d4b9d(0xf5)]('.');if(_0x4ade56[_0x4d4b9d(0xf0)]===0x2&&_0x4ade56[0x0]===_0x4d4b9d(0xe5)){const _0x58fd87=_0x4ade56[0x1]?.['trim']();return _0x58fd87?{'alias':_0x58fd87}:undefined;}if(_0x4ade56['length']===0x3&&_0x4ade56[0x0]===_0x4d4b9d(0xe5)&&_0x4ade56[0x2]===_0x4d4b9d(0x103)){const _0x22c0a1=_0x4ade56[0x1]?.[_0x4d4b9d(0x113)]();return _0x22c0a1?{'alias':_0x22c0a1,'field':'appcode'}:undefined;}return undefined;}function setLocalAppAlias(_0x53ecc0,_0x5b647a,_0x58b8e1){const _0x3a1a7b=a22_0xfed400,_0xe9920c=_0x53ecc0[_0x3a1a7b(0xe5)]&&typeof _0x53ecc0['apps']==='object'&&!Array['isArray'](_0x53ecc0[_0x3a1a7b(0xe5)])?_0x53ecc0['apps']:{},_0x561d07=_0xe9920c[_0x5b647a]&&typeof _0xe9920c[_0x5b647a]===_0x3a1a7b(0x117)&&!Array[_0x3a1a7b(0x123)](_0xe9920c[_0x5b647a])?_0xe9920c[_0x5b647a]:{};_0x561d07[_0x3a1a7b(0x103)]=_0x58b8e1,_0xe9920c[_0x5b647a]=_0x561d07,_0x53ecc0[_0x3a1a7b(0xe5)]=_0xe9920c;}function deleteLocalAppAlias(_0x233d6d,_0x17723c){const _0x418580=a22_0xfed400;if(!_0x233d6d[_0x418580(0xe5)]||typeof _0x233d6d[_0x418580(0xe5)]!==_0x418580(0x117)||Array['isArray'](_0x233d6d[_0x418580(0xe5)]))return![];const _0x2dd4f7=_0x233d6d['apps'],_0x449b3b=_0x2dd4f7[_0x17723c[_0x418580(0xf9)]];if(!_0x449b3b||typeof _0x449b3b!==_0x418580(0x117)||Array['isArray'](_0x449b3b))return![];if(!_0x17723c[_0x418580(0x124)])return delete _0x2dd4f7[_0x17723c[_0x418580(0xf9)]],!![];if(!(_0x17723c[_0x418580(0x124)]in _0x449b3b))return![];return delete _0x449b3b[_0x17723c[_0x418580(0x124)]],Object[_0x418580(0x119)](_0x449b3b)['length']===0x0&&delete _0x2dd4f7[_0x17723c[_0x418580(0xf9)]],!![];}const listDef={'service':a22_0xfed400(0xe8),'command':a22_0xfed400(0x109),'description':a22_0xfed400(0x106),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x570215){const _0x1406c5=a22_0xfed400,{buildConfigFromFlags:_0x507521}=await import(_0x1406c5(0xe1)),_0x3a7b2d=_0x507521({}),_0xbc35c6=getProjectConfigPath(),_0xfe5b2a=resolveWriteConfigPath(_0x1406c5(0xe6));if(_0x570215[_0x1406c5(0xe7)]===_0x1406c5(0x11b))return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON[_0x1406c5(0xf8)](_0x3a7b2d[_0x1406c5(0x10f)],null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+(_0x1406c5(0xe3)+(_0xbc35c6??'(none)')+'\x0a')+(_0x1406c5(0x11a)+_0xfe5b2a)};return{'ok':!![],'data':{'effective':_0x3a7b2d[_0x1406c5(0x10f)],'configFiles':{'project':_0xbc35c6??null,'global':_0xfe5b2a}}};}},getDef={'service':a22_0xfed400(0xe8),'command':a22_0xfed400(0x102),'description':a22_0xfed400(0xec),'risk':a22_0xfed400(0x100),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0xfed400(0xe9),'description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x4a8c10){const _0x1873b7=a22_0xfed400,_0x9fae2f=_0x4a8c10['args'][0x0];if(!_0x9fae2f)throw CliErrors['validation'](_0x1873b7(0x11e),_0x1873b7(0xea)+CLI_BIN_NAME+_0x1873b7(0xe4));const {buildConfigFromFlags:_0x115323}=await import(_0x1873b7(0xe1)),{raw:_0x3e363d}=_0x115323({});if(_0x9fae2f[_0x1873b7(0x116)]('.')){const _0x48b769=_0x9fae2f[_0x1873b7(0xf5)]('.');let _0x455463=_0x3e363d;for(const _0x3d7026 of _0x48b769){if(_0x455463==null||typeof _0x455463!==_0x1873b7(0x117))throw CliErrors[_0x1873b7(0xfe)](_0x1873b7(0x10b)+_0x9fae2f);_0x455463=_0x455463[_0x3d7026];}if(_0x455463===undefined)throw CliErrors['validation'](_0x1873b7(0x10b)+_0x9fae2f);return console[_0x1873b7(0x10c)](typeof _0x455463===_0x1873b7(0x117)?JSON['stringify'](_0x455463,null,0x2):String(_0x455463)),{'ok':!![]};}const _0x1723f6=_0x3e363d[_0x9fae2f];if(_0x1723f6===undefined)throw CliErrors['validation'](_0x1873b7(0x10b)+_0x9fae2f);return console['log'](typeof _0x1723f6==='object'?JSON[_0x1873b7(0xf8)](_0x1723f6,null,0x2):String(_0x1723f6)),{'ok':!![]};}},setDef={'service':a22_0xfed400(0xe8),'command':a22_0xfed400(0xe2),'description':a22_0xfed400(0xfa),'risk':a22_0xfed400(0xf6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0xfed400(0xe9),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':a22_0xfed400(0xef),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x53533c){const _0x2ead5a=a22_0xfed400,_0x12b5a8=_0x53533c[_0x2ead5a(0x111)][0x0],_0x45d4f5=_0x53533c['args'][0x1];if(!_0x12b5a8||_0x45d4f5===undefined)throw CliErrors[_0x2ead5a(0xfe)]('Missing\x20key\x20or\x20value.',_0x2ead5a(0xea)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x12b5a8]&&!ENUM_KEYS[_0x12b5a8][_0x2ead5a(0x116)](_0x45d4f5))throw CliErrors[_0x2ead5a(0xfe)](_0x2ead5a(0xfd)+_0x12b5a8+_0x2ead5a(0xff)+ENUM_KEYS[_0x12b5a8][_0x2ead5a(0xee)](',\x20'));if(_0x12b5a8==='riskLevel')throw CliErrors['validation'](_0x2ead5a(0x105));if(_0x12b5a8===_0x2ead5a(0x112)){const _0x1b22fd=Number(_0x45d4f5);if(isNaN(_0x1b22fd)||_0x1b22fd<=0x0)throw CliErrors[_0x2ead5a(0xfe)](_0x2ead5a(0x110));}const _0x5c7c78=resolveWriteScope({'explicitGlobal':_0x53533c[_0x2ead5a(0x118)](_0x2ead5a(0xe6)),'policy':'project-or-global-explicit'}),_0x156e26=toScopeFlags(_0x5c7c78),_0x15c422=readScopedConfig(_0x156e26),_0xd7310e=parseAliasAppcodeSetKey(_0x12b5a8);if(!_0xd7310e&&!isTopLevelConfigKey(_0x12b5a8))throw CliErrors['validation'](_0x2ead5a(0xf1)+_0x12b5a8+_0x2ead5a(0xf2),_0x2ead5a(0x10e)+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');return _0xd7310e?setLocalAppAlias(_0x15c422,_0xd7310e,_0x45d4f5):_0x15c422[_0x12b5a8]=_0x12b5a8===_0x2ead5a(0x112)?Number(_0x45d4f5):_0x45d4f5,console[_0x2ead5a(0x10c)](_0x2ead5a(0x115)+_0x12b5a8+'`\x20=\x20\x22'+_0x45d4f5+'\x22'+(_0x5c7c78===_0x2ead5a(0xe6)?'\x20(global)':'')),writeScopedConfig(_0x15c422,_0x156e26),{'ok':!![]};}},deleteDef={'service':a22_0xfed400(0xe8),'command':a22_0xfed400(0x10a),'description':a22_0xfed400(0x121),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0xfed400(0xe9),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x4e4173){const _0x2737ab=a22_0xfed400,_0x240cef=_0x4e4173[_0x2737ab(0x111)][0x0];if(!_0x240cef)throw CliErrors['validation'](_0x2737ab(0x11e),_0x2737ab(0xea)+CLI_BIN_NAME+_0x2737ab(0x104));const _0x23e6ef=resolveWriteScope({'explicitGlobal':_0x4e4173['bool'](_0x2737ab(0xe6)),'policy':_0x2737ab(0xfc)}),_0x10b1d8=toScopeFlags(_0x23e6ef),_0x562ab7=readScopedConfig(_0x10b1d8),_0x3ffaec=parseAliasDeleteKey(_0x240cef);if(_0x3ffaec){if(!deleteLocalAppAlias(_0x562ab7,_0x3ffaec))throw CliErrors[_0x2737ab(0xfe)](_0x2737ab(0x10b)+_0x240cef);return console[_0x2737ab(0x10c)](_0x2737ab(0x107)+_0x240cef+'`'+(_0x23e6ef===_0x2737ab(0xe6)?'\x20(global)':'')),writeScopedConfig(_0x562ab7,_0x10b1d8),{'ok':!![]};}if(_0x562ab7[_0x240cef]===undefined)throw CliErrors[_0x2737ab(0xfe)](_0x2737ab(0x114)+_0x240cef+_0x2737ab(0xf4));return delete _0x562ab7[_0x240cef],console[_0x2737ab(0x10c)]('Deleted\x20`'+_0x240cef+'`'+(_0x23e6ef==='global'?_0x2737ab(0x11d):'')),writeScopedConfig(_0x562ab7,_0x10b1d8),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- (function(_0x120f8b,_0x585ad3){var _0x568d67=a23_0x1f2e,_0x3b53d1=_0x120f8b();while(!![]){try{var _0x2b282c=parseInt(_0x568d67(0x1a6))/0x1*(-parseInt(_0x568d67(0x1a0))/0x2)+-parseInt(_0x568d67(0x1a2))/0x3*(-parseInt(_0x568d67(0x19e))/0x4)+-parseInt(_0x568d67(0x19f))/0x5*(parseInt(_0x568d67(0x19d))/0x6)+parseInt(_0x568d67(0x1a3))/0x7*(-parseInt(_0x568d67(0x19c))/0x8)+parseInt(_0x568d67(0x1a1))/0x9+-parseInt(_0x568d67(0x1a4))/0xa+parseInt(_0x568d67(0x1a5))/0xb;if(_0x2b282c===_0x585ad3)break;else _0x3b53d1['push'](_0x3b53d1['shift']());}catch(_0x15ea6c){_0x3b53d1['push'](_0x3b53d1['shift']());}}}(a23_0x1b03,0x3c1aa));import{CLI_BIN_NAME}from'../../constant/cli.js';function a23_0x1f2e(_0x3003f0,_0x26f103){_0x3003f0=_0x3003f0-0x19c;var _0x1b032a=a23_0x1b03();var _0x1f2eb8=_0x1b032a[_0x3003f0];return _0x1f2eb8;}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_0x1b03(){var _0x44aff9=['1785136dfhCPT','48sNoXRj','412xqQBeM','231190djlTHi','466gFYNnA','698994sEuoBH','7089PfVQIv','14QDggSp','3724850BnNsrH','15437653PByDjq','1243lMaCoM'];a23_0x1b03=function(){return _0x44aff9;};return a23_0x1b03();}
1
+ (function(_0x19d6e2,_0x187dd4){var _0x238f65=a23_0x1dfc,_0x337137=_0x19d6e2();while(!![]){try{var _0x3ec771=parseInt(_0x238f65(0x1ee))/0x1*(parseInt(_0x238f65(0x1f0))/0x2)+-parseInt(_0x238f65(0x1ed))/0x3+-parseInt(_0x238f65(0x1f6))/0x4*(-parseInt(_0x238f65(0x1f2))/0x5)+parseInt(_0x238f65(0x1f3))/0x6+-parseInt(_0x238f65(0x1f1))/0x7*(-parseInt(_0x238f65(0x1f5))/0x8)+parseInt(_0x238f65(0x1f7))/0x9*(parseInt(_0x238f65(0x1ec))/0xa)+-parseInt(_0x238f65(0x1ef))/0xb*(-parseInt(_0x238f65(0x1f4))/0xc);if(_0x3ec771===_0x187dd4)break;else _0x337137['push'](_0x337137['shift']());}catch(_0x4d2f99){_0x337137['push'](_0x337137['shift']());}}}(a23_0x5629,0xae3f0));import{CLI_BIN_NAME}from'../../constant/cli.js';function a23_0x1dfc(_0xe3b5ff,_0x587103){_0xe3b5ff=_0xe3b5ff-0x1ec;var _0x56295b=a23_0x5629();var _0x1dfcda=_0x56295b[_0xe3b5ff];return _0x1dfcda;}export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';function a23_0x5629(){var _0x164ad5=['106302qtlNSx','71035zwUQsg','56526OdiaNr','81480zTQfZN','104YleQGD','84oZSSCH','963wnVlwd','40090eEDZDV','2726337SCDBLU','103126KALBdc','781xzRsxT','4IjYpuT'];a23_0x5629=function(){return _0x164ad5;};return a23_0x5629();}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 +1 @@
1
- const a24_0x37cf75=a24_0x347c;(function(_0xbd0d57,_0x25b1f3){const _0x322769=a24_0x347c,_0x3b7cdd=_0xbd0d57();while(!![]){try{const _0x2d4936=-parseInt(_0x322769(0x165))/0x1*(-parseInt(_0x322769(0x11f))/0x2)+parseInt(_0x322769(0x12d))/0x3*(parseInt(_0x322769(0x160))/0x4)+-parseInt(_0x322769(0x166))/0x5*(parseInt(_0x322769(0x146))/0x6)+parseInt(_0x322769(0x148))/0x7+-parseInt(_0x322769(0x14a))/0x8*(parseInt(_0x322769(0x16d))/0x9)+parseInt(_0x322769(0x12c))/0xa+-parseInt(_0x322769(0x153))/0xb*(parseInt(_0x322769(0x150))/0xc);if(_0x2d4936===_0x25b1f3)break;else _0x3b7cdd['push'](_0x3b7cdd['shift']());}catch(_0x3b19ef){_0x3b7cdd['push'](_0x3b7cdd['shift']());}}}(a24_0x310c,0x90a51));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x37cf75(0x16b),'operation':a24_0x37cf75(0x16b),'risk':'read','paramsRequired':![],'description':a24_0x37cf75(0x138),'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+'Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':[a24_0x37cf75(0x120),a24_0x37cf75(0x14f),a24_0x37cf75(0x140),'\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}}',a24_0x37cf75(0x133),a24_0x37cf75(0x13d),'\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}}',a24_0x37cf75(0x15f),a24_0x37cf75(0x130),'\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}}',a24_0x37cf75(0x16e),'','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)',a24_0x37cf75(0x11b),a24_0x37cf75(0x158),a24_0x37cf75(0x123),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a24_0x37cf75(0x156),'\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.',a24_0x37cf75(0x15b),'\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged',a24_0x37cf75(0x125),'\x20\x20\x20\x20Page\x201:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:1,\x22pageSize\x22:20}\x27',a24_0x37cf75(0x11d),a24_0x37cf75(0x13a)][a24_0x37cf75(0x127)]('\x0a')},{'command':'getOne','operation':a24_0x37cf75(0x13c),'risk':a24_0x37cf75(0x14d),'paramsRequired':!![],'description':a24_0x37cf75(0x128),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a24_0x37cf75(0x15a),'operation':a24_0x37cf75(0x15a),'risk':a24_0x37cf75(0x129),'paramsRequired':!![],'description':a24_0x37cf75(0x13b),'paramsHint':a24_0x37cf75(0x155)},{'command':a24_0x37cf75(0x169),'operation':a24_0x37cf75(0x169),'risk':a24_0x37cf75(0x129),'paramsRequired':!![],'description':'Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':a24_0x37cf75(0x168),'operation':a24_0x37cf75(0x168),'risk':a24_0x37cf75(0x129),'paramsRequired':!![],'description':a24_0x37cf75(0x161),'paramsHint':a24_0x37cf75(0x164)+a24_0x37cf75(0x131)},{'command':a24_0x37cf75(0x132),'operation':'delete','risk':'high-risk-write','paramsRequired':!![],'description':'Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','paramsHint':a24_0x37cf75(0x142)},{'command':a24_0x37cf75(0x144),'operation':a24_0x37cf75(0x144),'risk':a24_0x37cf75(0x14d),'paramsRequired':![],'description':a24_0x37cf75(0x16a),'paramsHint':a24_0x37cf75(0x136)+'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_0x37cf75(0x15c),'\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}',a24_0x37cf75(0x126),a24_0x37cf75(0x13f),a24_0x37cf75(0x162),a24_0x37cf75(0x124),a24_0x37cf75(0x14c),a24_0x37cf75(0x139),'',a24_0x37cf75(0x12e),a24_0x37cf75(0x154),'\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)',a24_0x37cf75(0x137),a24_0x37cf75(0x163),a24_0x37cf75(0x134),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','',a24_0x37cf75(0x151),a24_0x37cf75(0x15e),a24_0x37cf75(0x141),'','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter',a24_0x37cf75(0x143),'',a24_0x37cf75(0x147)][a24_0x37cf75(0x127)]('\x0a')}];function makeDataCommand(_0x2c5c6c){const _0x19609f=a24_0x37cf75,_0x3d7985=_0x19609f(0x152)+_0x2c5c6c[_0x19609f(0x11c)],_0x4f5f71={'service':_0x19609f(0x12b),'command':_0x2c5c6c[_0x19609f(0x11c)],'description':_0x2c5c6c[_0x19609f(0x14b)],'risk':_0x2c5c6c['risk'],'helpExtra':_0x2c5c6c[_0x19609f(0x12a)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x2c5c6c['paramsHint']}],'validate':async _0x23a022=>{const _0x213f55=_0x19609f;_0x2c5c6c[_0x213f55(0x13e)]&&requireAnyOf(_0x23a022,[_0x213f55(0x11e)],_0x3d7985),_0x2c5c6c[_0x213f55(0x159)]===_0x213f55(0x169)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x23a022[_0x213f55(0x145)](_0x213f55(0x11e)))),_0x2c5c6c[_0x213f55(0x159)]===_0x213f55(0x168)&&parseUpdateIdsFromParams(parseJsonParams(_0x23a022[_0x213f55(0x145)](_0x213f55(0x11e)))??{});},async 'execute'(_0x3164f7){const _0x295a02=_0x19609f,_0x3cff4e=_0x3164f7['str'](_0x295a02(0x149)),_0x8a1a55=_0x2c5c6c[_0x295a02(0x159)]===_0x295a02(0x169)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3164f7['str']('params'))):parseJsonParams(_0x3164f7[_0x295a02(0x145)](_0x295a02(0x11e)))??{},_0x304887=_0x2c5c6c['operation']===_0x295a02(0x168)?parseUpdateIdsFromParams(_0x8a1a55):undefined,_0x4b9b8e=_0x304887?normalizeUpdateParamsForRuntime(_0x8a1a55,_0x304887):_0x8a1a55,_0x52cae9=Date['now'](),_0x401f61=await executeData(_0x3cff4e,_0x2c5c6c['operation'],_0x4b9b8e),_0x34b01d=Date[_0x295a02(0x15d)]()-_0x52cae9,_0x578888=_0x304887&&_0x304887[_0x295a02(0x122)]>0x1?buildBatchUpdateResult(_0x304887,_0x401f61):_0x401f61;return{'ok':!![],'data':{'result':_0x578888,'elapsed':_0x34b01d},'message':'data\x20'+_0x2c5c6c[_0x295a02(0x11c)]+'\x20completed\x20in\x20'+_0x34b01d+'ms'};}};return _0x2c5c6c[_0x19609f(0x12f)]!==_0x19609f(0x14d)&&(_0x4f5f71[_0x19609f(0x135)]=async _0x2d553c=>{const _0x2ffa77=_0x19609f,_0x56bf70=_0x2d553c['str']('code'),_0x1cddc9=_0x2c5c6c[_0x2ffa77(0x159)]===_0x2ffa77(0x169)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2d553c[_0x2ffa77(0x145)]('params'))):parseJsonParams(_0x2d553c[_0x2ffa77(0x145)](_0x2ffa77(0x11e)))??{};let _0x4fcb27=_0x1cddc9;if(_0x2c5c6c[_0x2ffa77(0x159)]===_0x2ffa77(0x168)){const _0x31ef45=parseUpdateIdsFromParams(_0x1cddc9);_0x4fcb27=normalizeUpdateParamsForRuntime(_0x1cddc9,_0x31ef45);}return dryRun('POST','/api/{appCode}/'+_0x56bf70+'/'+_0x2c5c6c[_0x2ffa77(0x159)])[_0x2ffa77(0x16c)](_0x4fcb27)['description'](_0x2ffa77(0x167)+_0x2c5c6c['command']+_0x2ffa77(0x121)+_0x56bf70)[_0x2ffa77(0x157)]();}),_0x4f5f71;}function a24_0x347c(_0x16d6f5,_0x229ba4){_0x16d6f5=_0x16d6f5-0x11b;const _0x310c61=a24_0x310c();let _0x347c7b=_0x310c61[_0x16d6f5];return _0x347c7b;}function a24_0x310c(){const _0x4e88e9=['Get\x20a\x20single\x20record\x20by\x20ID','write','helpExtra','data','739200MIBgqP','175197GDFbQR','\x20\x20PARAMS\x20STRUCTURE','risk','\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}}','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','delete','\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\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}}]','dryRun','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\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\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','getOne','\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}}','paramsRequired','\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\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\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','aggregate','str','403224BAAvaw','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','254422KAXVPm','code','5624yEKpVj','description','\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}','read','map','\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}}','2216796wMlPkN','\x20\x20EXAMPLES','data\x20','44dppMWB','\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]','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20PAGINATION','build','\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}]','operation','create','\x20\x20\x20\x20Do\x20NOT\x20use\x20--where,\x20--select,\x20--order-by,\x20--current-page,\x20--page,\x20or\x20--page-size\x20as\x20CLI\x20flags.','\x20\x20AGGREGATE\x20TYPES','now','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\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]}}','52qrawpU','Update\x20an\x20existing\x20record','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','19gazvAJ','15fMRoFf','Preview:\x20data\x20','update','batchCreate','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','filter','body','2349HvcUTF','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','command','\x20\x20\x20\x20Page\x202:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:2,\x22pageSize\x22:20}\x27','params','89162aaiLCA','\x20\x20WHERE\x20OPERATORS','\x20on\x20dataset\x20','length','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\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\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','\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}','join'];a24_0x310c=function(){return _0x4e88e9;};return a24_0x310c();}export const dataDefinitions=specs[a24_0x37cf75(0x14e)](makeDataCommand);function buildBatchUpdateResult(_0x278ced,_0x1bcbbb){const _0x48d831=a24_0x37cf75;return{'operation':'update','mode':'batch','ids':_0x278ced,'total':_0x278ced[_0x48d831(0x122)],'result':_0x1bcbbb};}
1
+ const a24_0x123c25=a24_0x1331;(function(_0x38b08c,_0x2aa088){const _0x1dcb1e=a24_0x1331,_0x3a0f42=_0x38b08c();while(!![]){try{const _0x4710df=-parseInt(_0x1dcb1e(0x20a))/0x1+parseInt(_0x1dcb1e(0x1ef))/0x2+-parseInt(_0x1dcb1e(0x1fd))/0x3*(-parseInt(_0x1dcb1e(0x223))/0x4)+parseInt(_0x1dcb1e(0x1e7))/0x5*(parseInt(_0x1dcb1e(0x226))/0x6)+-parseInt(_0x1dcb1e(0x1fe))/0x7+parseInt(_0x1dcb1e(0x20f))/0x8+parseInt(_0x1dcb1e(0x21e))/0x9*(-parseInt(_0x1dcb1e(0x22e))/0xa);if(_0x4710df===_0x2aa088)break;else _0x3a0f42['push'](_0x3a0f42['shift']());}catch(_0x3b0c7a){_0x3a0f42['push'](_0x3a0f42['shift']());}}}(a24_0x3e49,0xd7284));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x123c25(0x235),'operation':a24_0x123c25(0x235),'risk':'read','paramsRequired':![],'description':a24_0x123c25(0x20c),'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+a24_0x123c25(0x1ec),'helpExtra':[a24_0x123c25(0x1f8),a24_0x123c25(0x1f7),'\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}}',a24_0x123c25(0x22c),'\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_0x123c25(0x236),'\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}',a24_0x123c25(0x1f0),a24_0x123c25(0x220),'\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_0x123c25(0x1f9),a24_0x123c25(0x207),a24_0x123c25(0x208),'',a24_0x123c25(0x229),a24_0x123c25(0x22d),'\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]',a24_0x123c25(0x1e6),a24_0x123c25(0x228),a24_0x123c25(0x202),'',a24_0x123c25(0x1eb),'\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','\x20\x20\x20\x20Do\x20NOT\x20use\x20--where,\x20--select,\x20--order-by,\x20--current-page,\x20--page,\x20or\x20--page-size\x20as\x20CLI\x20flags.','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged',a24_0x123c25(0x1ed),a24_0x123c25(0x20b),a24_0x123c25(0x217),a24_0x123c25(0x214)][a24_0x123c25(0x21c)]('\x0a')},{'command':a24_0x123c25(0x1f3),'operation':a24_0x123c25(0x1f3),'risk':a24_0x123c25(0x1f6),'paramsRequired':!![],'description':a24_0x123c25(0x21f),'paramsHint':a24_0x123c25(0x209)},{'command':'create','operation':'create','risk':a24_0x123c25(0x1f1),'paramsRequired':!![],'description':a24_0x123c25(0x1e9),'paramsHint':a24_0x123c25(0x22a)},{'command':a24_0x123c25(0x1ea),'operation':a24_0x123c25(0x1ea),'risk':a24_0x123c25(0x1f1),'paramsRequired':!![],'description':a24_0x123c25(0x1ee),'paramsHint':a24_0x123c25(0x231)},{'command':'update','operation':'update','risk':a24_0x123c25(0x1f1),'paramsRequired':!![],'description':a24_0x123c25(0x234),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20'+a24_0x123c25(0x1fc)},{'command':'delete','operation':a24_0x123c25(0x219),'risk':a24_0x123c25(0x1fb),'paramsRequired':!![],'description':a24_0x123c25(0x1e4),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a24_0x123c25(0x216),'operation':a24_0x123c25(0x216),'risk':a24_0x123c25(0x1f6),'paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':a24_0x123c25(0x215)+a24_0x123c25(0x1f4),'helpExtra':[a24_0x123c25(0x200),a24_0x123c25(0x20e),a24_0x123c25(0x212),a24_0x123c25(0x204),'\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_0x123c25(0x20d),'\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}',a24_0x123c25(0x210),'',a24_0x123c25(0x211),'\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)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)',a24_0x123c25(0x21a),'\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_0x123c25(0x1f5),'',a24_0x123c25(0x201),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\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_0x123c25(0x1e3),a24_0x123c25(0x213),'',a24_0x123c25(0x1fa)][a24_0x123c25(0x21c)]('\x0a')}];function makeDataCommand(_0x10c310){const _0x39e24f=a24_0x123c25,_0x1099a1=_0x39e24f(0x1ff)+_0x10c310[_0x39e24f(0x22f)],_0x432c58={'service':_0x39e24f(0x205),'command':_0x10c310[_0x39e24f(0x22f)],'description':_0x10c310[_0x39e24f(0x222)],'risk':_0x10c310[_0x39e24f(0x203)],'helpExtra':_0x10c310[_0x39e24f(0x232)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x10c310[_0x39e24f(0x218)]}],'validate':async _0x2aea23=>{const _0x37bcf7=_0x39e24f;_0x10c310[_0x37bcf7(0x224)]&&requireAnyOf(_0x2aea23,[_0x37bcf7(0x233)],_0x1099a1),_0x10c310['operation']===_0x37bcf7(0x1ea)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2aea23[_0x37bcf7(0x21d)](_0x37bcf7(0x233)))),_0x10c310[_0x37bcf7(0x1e8)]===_0x37bcf7(0x1f2)&&parseUpdateIdsFromParams(parseJsonParams(_0x2aea23[_0x37bcf7(0x21d)]('params'))??{});},async 'execute'(_0x2f4267){const _0x43adf6=_0x39e24f,_0x177ba5=_0x2f4267[_0x43adf6(0x21d)]('code'),_0x4d1c7e=_0x10c310[_0x43adf6(0x1e8)]===_0x43adf6(0x1ea)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2f4267[_0x43adf6(0x21d)]('params'))):parseJsonParams(_0x2f4267[_0x43adf6(0x21d)]('params'))??{},_0x30c0d5=_0x10c310[_0x43adf6(0x1e8)]===_0x43adf6(0x1f2)?parseUpdateIdsFromParams(_0x4d1c7e):undefined,_0x5bf0dc=_0x30c0d5?normalizeUpdateParamsForRuntime(_0x4d1c7e,_0x30c0d5):_0x4d1c7e,_0xabe1e4=Date['now'](),_0x48d29d=await executeData(_0x177ba5,_0x10c310[_0x43adf6(0x1e8)],_0x5bf0dc),_0x397f33=Date[_0x43adf6(0x227)]()-_0xabe1e4,_0x523857=_0x30c0d5&&_0x30c0d5[_0x43adf6(0x22b)]>0x1?buildBatchUpdateResult(_0x30c0d5,_0x48d29d):_0x48d29d;return{'ok':!![],'data':{'result':_0x523857,'elapsed':_0x397f33},'message':_0x43adf6(0x1ff)+_0x10c310[_0x43adf6(0x22f)]+'\x20completed\x20in\x20'+_0x397f33+'ms'};}};return _0x10c310[_0x39e24f(0x203)]!==_0x39e24f(0x1f6)&&(_0x432c58['dryRun']=async _0x47d22d=>{const _0x2b8a94=_0x39e24f,_0x2f4616=_0x47d22d[_0x2b8a94(0x21d)](_0x2b8a94(0x221)),_0xd7f6ba=_0x10c310[_0x2b8a94(0x1e8)]===_0x2b8a94(0x1ea)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x47d22d[_0x2b8a94(0x21d)](_0x2b8a94(0x233)))):parseJsonParams(_0x47d22d[_0x2b8a94(0x21d)](_0x2b8a94(0x233)))??{};let _0x1bf14d=_0xd7f6ba;if(_0x10c310[_0x2b8a94(0x1e8)]===_0x2b8a94(0x1f2)){const _0x522e9d=parseUpdateIdsFromParams(_0xd7f6ba);_0x1bf14d=normalizeUpdateParamsForRuntime(_0xd7f6ba,_0x522e9d);}return dryRun(_0x2b8a94(0x1e5),_0x2b8a94(0x206)+_0x2f4616+'/'+_0x10c310['operation'])['body'](_0x1bf14d)[_0x2b8a94(0x222)]('Preview:\x20data\x20'+_0x10c310[_0x2b8a94(0x22f)]+_0x2b8a94(0x230)+_0x2f4616)[_0x2b8a94(0x21b)]();}),_0x432c58;}export const dataDefinitions=specs['map'](makeDataCommand);function a24_0x1331(_0x43bc24,_0x202188){_0x43bc24=_0x43bc24-0x1e3;const _0x3e4948=a24_0x3e49();let _0x133139=_0x3e4948[_0x43bc24];return _0x133139;}function a24_0x3e49(){const _0x5a1759=['\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\x20WHERE\x20OPERATORS','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','high-risk-write','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','261zHBJpU','9755445rzgFlY','data\x20','\x20\x20AGGREGATE\x20TYPES','\x20\x20EXAMPLES','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','risk','\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}','data','/api/{appCode}/','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','\x20\x20\x20\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}}]}','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','579512oWXpiR','\x20\x20\x20\x20Page\x201:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\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\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}','1173400gdiyss','\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\x20PARAMS\x20STRUCTURE','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','aggregate','\x20\x20\x20\x20Page\x202:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:2,\x22pageSize\x22:20}\x27','paramsHint','delete','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','build','join','str','27uXVyjI','Get\x20a\x20single\x20record\x20by\x20ID','\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}}','code','description','65524UXoalS','paramsRequired','batch','598020djlIIA','now','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','length','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','5740390OidgLC','command','\x20on\x20dataset\x20','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','helpExtra','params','Update\x20an\x20existing\x20record','filter','\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\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','POST','\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}]','75OhogXh','operation','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','batchCreate','\x20\x20PAGINATION','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','3019352NoqKEN','\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}}','write','update','getOne','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','read'];a24_0x3e49=function(){return _0x5a1759;};return a24_0x3e49();}function buildBatchUpdateResult(_0xdf2ee5,_0x4f5821){const _0x57326c=a24_0x123c25;return{'operation':_0x57326c(0x1f2),'mode':_0x57326c(0x225),'ids':_0xdf2ee5,'total':_0xdf2ee5[_0x57326c(0x22b)],'result':_0x4f5821};}
@@ -1 +1 @@
1
- const a25_0x20aeef=a25_0x471c;function a25_0x471c(_0x4ad380,_0x31b599){_0x4ad380=_0x4ad380-0x13e;const _0x26077e=a25_0x2607();let _0x471cea=_0x26077e[_0x4ad380];return _0x471cea;}(function(_0x4dc05,_0x19c800){const _0x30515e=a25_0x471c,_0x28dded=_0x4dc05();while(!![]){try{const _0xd4b0b0=-parseInt(_0x30515e(0x17b))/0x1+parseInt(_0x30515e(0x15b))/0x2*(parseInt(_0x30515e(0x175))/0x3)+parseInt(_0x30515e(0x17a))/0x4+-parseInt(_0x30515e(0x15f))/0x5*(parseInt(_0x30515e(0x144))/0x6)+-parseInt(_0x30515e(0x16e))/0x7*(-parseInt(_0x30515e(0x150))/0x8)+parseInt(_0x30515e(0x14f))/0x9+-parseInt(_0x30515e(0x13f))/0xa*(parseInt(_0x30515e(0x167))/0xb);if(_0xd4b0b0===_0x19c800)break;else _0x28dded['push'](_0x28dded['shift']());}catch(_0x3cdee1){_0x28dded['push'](_0x28dded['shift']());}}}(a25_0x2607,0x773d6));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x25fd17){const _0xb05ce5=a25_0x471c;if(_0x25fd17[_0xb05ce5(0x180)])return null;const _0x3a146a=Boolean(_0x25fd17[_0xb05ce5(0x15a)]!==undefined||_0x25fd17[_0xb05ce5(0x146)]!==undefined);let _0x2a810d={};if(!_0x3a146a&&typeof _0x25fd17[_0xb05ce5(0x161)]===_0xb05ce5(0x165))try{_0x2a810d=JSON[_0xb05ce5(0x158)](_0x25fd17[_0xb05ce5(0x161)]);}catch{}const _0x490f83=_0x3a146a?_0x25fd17[_0xb05ce5(0x15d)]:_0x25fd17[_0xb05ce5(0x170)],_0x6c9b51=_0x3a146a?_0x25fd17[_0xb05ce5(0x15a)]:_0x25fd17[_0xb05ce5(0x15d)],_0x54ca4b=_0x3a146a?_0x25fd17[_0xb05ce5(0x146)]:_0x25fd17['type']||_0x25fd17['dataType'],_0x48b914=_0x3a146a?_0x25fd17[_0xb05ce5(0x179)]===!![]:_0x2a810d[_0xb05ce5(0x179)]===!![],_0x25cda9=_0x3a146a?_0x25fd17[_0xb05ce5(0x14c)]===!![]:_0x2a810d[_0xb05ce5(0x14c)]===!![],_0x5501bd=_0x3a146a?_0x25fd17[_0xb05ce5(0x15e)]??null:_0x2a810d[_0xb05ce5(0x15e)]??null,_0x847205={'name':_0x490f83,'displayName':_0x6c9b51||_0x490f83,'type':_0x54ca4b,'dbType':_0x25fd17['dbType'],'pk':_0x48b914,'required':_0x25cda9,'description':_0x25fd17[_0xb05ce5(0x17e)]||undefined};return Array[_0xb05ce5(0x147)](_0x5501bd)&&_0x5501bd[_0xb05ce5(0x160)]>0x0&&(_0x847205[_0xb05ce5(0x15e)]=_0x5501bd),_0x847205;}function parseJsonMaybe(_0x3f6811){const _0x13bf0b=a25_0x471c;if(typeof _0x3f6811!==_0x13bf0b(0x165))return _0x3f6811;try{return JSON['parse'](_0x3f6811);}catch{return _0x3f6811;}}function normalizeOperationEntry(_0xc4b5d3,_0x1991bd){const _0x5b06fe=a25_0x471c;if(!_0x1991bd||typeof _0x1991bd!==_0x5b06fe(0x174))return null;if(!_0x1991bd[_0x5b06fe(0x16d)]||!_0x1991bd[_0x5b06fe(0x186)])return null;const _0x4975d6={'name':_0xc4b5d3,'method':_0x1991bd[_0x5b06fe(0x16d)],'path':_0x1991bd[_0x5b06fe(0x186)]};if(_0x1991bd[_0x5b06fe(0x159)])_0x4975d6[_0x5b06fe(0x159)]=_0x1991bd[_0x5b06fe(0x159)];if(_0x1991bd[_0x5b06fe(0x140)]!=null)_0x4975d6[_0x5b06fe(0x140)]=parseJsonMaybe(_0x1991bd[_0x5b06fe(0x140)]);if(_0x1991bd[_0x5b06fe(0x168)]!=null)_0x4975d6[_0x5b06fe(0x168)]=parseJsonMaybe(_0x1991bd[_0x5b06fe(0x168)]);if(_0x1991bd['beforeScriptId']!=null)_0x4975d6[_0x5b06fe(0x14b)]=_0x1991bd[_0x5b06fe(0x14b)];if(_0x1991bd[_0x5b06fe(0x151)]!=null)_0x4975d6[_0x5b06fe(0x151)]=_0x1991bd[_0x5b06fe(0x151)];if(Array[_0x5b06fe(0x147)](_0x1991bd['requestFields']))_0x4975d6[_0x5b06fe(0x148)]=_0x1991bd[_0x5b06fe(0x148)];if(Array['isArray'](_0x1991bd[_0x5b06fe(0x16c)]))_0x4975d6[_0x5b06fe(0x16c)]=_0x1991bd[_0x5b06fe(0x16c)];return _0x4975d6;}function summarizeDbtable(_0x3b00f7){const _0xe1231a=a25_0x471c,_0x4c33e8={},_0x406829=['dbId',_0xe1231a(0x16b),_0xe1231a(0x16a),_0xe1231a(0x141),_0xe1231a(0x179),_0xe1231a(0x163),_0xe1231a(0x187),_0xe1231a(0x152),'updateTimeField',_0xe1231a(0x166),_0xe1231a(0x156),_0xe1231a(0x17f),_0xe1231a(0x183),_0xe1231a(0x157),_0xe1231a(0x14a)];for(const _0x138ad9 of _0x406829){if(_0x3b00f7[_0x138ad9]!==undefined)_0x4c33e8[_0x138ad9]=_0x3b00f7[_0x138ad9];}return typeof _0x4c33e8[_0xe1231a(0x163)]==='string'&&_0x4c33e8[_0xe1231a(0x163)][_0xe1231a(0x160)]>0x0&&(_0x4c33e8['allFieldNames']=_0x4c33e8['allFields']['split'](',')[_0xe1231a(0x154)](_0x3802c5=>_0x3802c5[_0xe1231a(0x184)]())[_0xe1231a(0x17d)](Boolean)),_0x4c33e8;}function normalizeRelatedPages(_0x52896c){const _0x3a9ba0=a25_0x471c;if(!Array[_0x3a9ba0(0x147)](_0x52896c))return[];return _0x52896c[_0x3a9ba0(0x17d)](_0x500e66=>_0x500e66&&typeof _0x500e66==='object')['map'](_0x2170f7=>({'id':_0x2170f7['id'],'type':_0x2170f7['type'],'code':_0x2170f7[_0x3a9ba0(0x170)],'title':_0x2170f7[_0x3a9ba0(0x164)],'deleted':_0x2170f7[_0x3a9ba0(0x180)]===!![]}));}function normalizeFallbackFieldName(_0x522a14,_0x2e7107){const _0x4f7f1b=a25_0x471c,_0x5aaff1=_0x522a14[_0x4f7f1b(0x184)]();if(!_0x5aaff1)return null;return{'name':_0x5aaff1,'displayName':_0x5aaff1,'type':undefined,'dbType':undefined,'pk':_0x5aaff1===_0x2e7107,'required':![],'description':undefined};}function a25_0x2607(){const _0x5b6da5=['datasetKey','str','relations','318UJvjIP','validateRules','doType','isArray','requestFields','dbId','dblinkInfoDTO','beforeScriptId','required','formatRules','source','6049152CauTOJ','2557712wOrlAt','afterScriptId','createTimeField','fields','map','dataset','creatorNameField','labelField','parse','host','displayName','35064SFMRcB','dbtableConfig','name','options','26935UEIkzt','length','extend','modelId','allFields','title','string','creatorIdField','11JFPIbU','responseBody','detail','tableName','dbName','responseFields','method','7XabiNW','find','code','columnCodeListWithDeleted','modelCode','appCode','object','87vimjrl','read','split','tableComment','pkField','34372inHCTw','221509ZvIRcZ','properties','filter','description','modifierIdField','deleted','sourceType','entries','modifierNameField','trim','push','path','logicField','relatedPageInfoList','5134370JPwdKG','requestBody'];a25_0x2607=function(){return _0x5b6da5;};return a25_0x2607();}async function loadListFieldFallback(_0x10d7ff,_0x5481c7){const _0x3197b2=a25_0x471c;if(!_0x10d7ff||!_0x5481c7)return[];try{const _0x5535d2=await listDatasets(_0x10d7ff,{'code':_0x5481c7}),_0x5d60ad=_0x5535d2[_0x3197b2(0x16f)](_0x2aafe7=>_0x2aafe7[_0x3197b2(0x170)]===_0x5481c7)??_0x5535d2[0x0],_0x56ea95=_0x5d60ad?.[_0x3197b2(0x15c)]??{},_0x11316e=typeof _0x56ea95[_0x3197b2(0x163)]==='string'?_0x56ea95[_0x3197b2(0x163)][_0x3197b2(0x177)](','):[];return _0x11316e[_0x3197b2(0x154)](_0x4f554d=>normalizeFallbackFieldName(_0x4f554d,_0x56ea95[_0x3197b2(0x179)]))[_0x3197b2(0x17d)](_0x1d3e33=>_0x1d3e33!==null);}catch{return[];}}export const datasetDetail={'service':a25_0x20aeef(0x155),'command':a25_0x20aeef(0x169),'description':'Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','risk':a25_0x20aeef(0x176),'flags':[CODE_FLAG],async 'execute'(_0x23eda2){const _0x93c402=a25_0x20aeef,_0x5a7116=await getDatasetDetail(_0x23eda2[_0x93c402(0x142)]('code')),_0xe9d582=Array[_0x93c402(0x147)](_0x5a7116['fields'])?_0x5a7116[_0x93c402(0x153)]:Array[_0x93c402(0x147)](_0x5a7116[_0x93c402(0x17c)])?_0x5a7116['properties']:[];let _0x2bf296=_0xe9d582[_0x93c402(0x154)](_0x24aa0b=>normalizeField(_0x24aa0b))['filter'](_0x4909d3=>_0x4909d3!==null);_0x2bf296['length']===0x0&&(_0x2bf296=await loadListFieldFallback(_0x23eda2[_0x93c402(0x173)],_0x23eda2[_0x93c402(0x142)](_0x93c402(0x170))));const _0x2dd283=_0x5a7116['operations']??{},_0x5d5f17=[];for(const [_0x5cd7f6,_0x32c9be]of Object[_0x93c402(0x182)](_0x2dd283)){const _0x56cbfe=normalizeOperationEntry(_0x5cd7f6,_0x32c9be);if(_0x56cbfe)_0x5d5f17[_0x93c402(0x185)](_0x56cbfe);}const _0x1eaa38=_0x5a7116[_0x93c402(0x15c)]??{},_0x5a9765=_0x5a7116['dataset']??{},_0x5f097a=_0x1eaa38['dbId']!=null?{'id':_0x1eaa38[_0x93c402(0x149)],'name':_0x1eaa38[_0x93c402(0x16b)]??null}:undefined;let _0xe8be03;return typeof _0x5a7116[_0x93c402(0x161)]===_0x93c402(0x165)&&(_0xe8be03=parseJsonMaybe(_0x5a7116[_0x93c402(0x161)])),{'ok':!![],'data':{'id':_0x5a7116[_0x93c402(0x162)]??_0x5a7116['id'],'name':_0x5a7116[_0x93c402(0x15d)],'code':_0x5a7116[_0x93c402(0x172)]||_0x5a7116[_0x93c402(0x170)],'doVersion':_0x5a7116['doVersion'],'description':_0x5a7116[_0x93c402(0x17e)]||_0x5a9765[_0x93c402(0x178)]||undefined,'source':_0x5a7116[_0x93c402(0x14e)]||_0x5a9765[_0x93c402(0x181)],'table':_0x1eaa38[_0x93c402(0x16a)]||_0x5a9765[_0x93c402(0x16a)],'datasetKey':_0x1eaa38[_0x93c402(0x141)],'pk':_0x1eaa38[_0x93c402(0x179)],'db':_0x5f097a,'dbtable':summarizeDbtable(_0x1eaa38),'fields':_0x2bf296,'operations':_0x5d5f17,'indexes':Array[_0x93c402(0x147)](_0x5a9765['indexes'])?_0x5a9765['indexes']:[],'relations':_0x5a7116[_0x93c402(0x143)]??null,'relatedPages':normalizeRelatedPages(_0x5a7116[_0x93c402(0x13e)]),...Array[_0x93c402(0x147)](_0x5a7116[_0x93c402(0x171)])?{'columnCodeListWithDeleted':_0x5a7116[_0x93c402(0x171)]}:{},'formatRules':Array[_0x93c402(0x147)](_0x5a7116['formatRules'])?_0x5a7116[_0x93c402(0x14d)]:[],'validateRules':Array[_0x93c402(0x147)](_0x5a7116[_0x93c402(0x145)])?_0x5a7116['validateRules']:[],..._0xe8be03!==undefined?{'extend':_0xe8be03}:{},'stats':{'fieldCount':_0x2bf296[_0x93c402(0x160)],'operationCount':_0x5d5f17[_0x93c402(0x160)]}}};}};
1
+ function a25_0x13d7(){const _0x22f1b3=['responseBody','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','indexes','doVersion','host','responseFields','length','creatorNameField','1411248PWsbsr','deleted','labelField','object','fields','dblinkInfoDTO','allFields','dbType','logicField','map','required','find','trim','description','validateRules','tableName','sourceType','allFieldNames','name','string','displayName','30848cmNWgL','extend','2mHnfxc','method','formatRules','26477SsWhac','dataType','doType','dataset','84FTDNZZ','source','isArray','dbId','operations','path','5199304CRpeeY','modelId','dbtableConfig','9YCOuQW','createTimeField','entries','push','3630UuVZIS','filter','options','parse','creatorIdField','28XoRQlT','15620736OaFuJv','requestBody','read','columnCodeListWithDeleted','pkField','code','requestFields','afterScriptId','391045ofcQYY','properties','modifierNameField','modifierIdField','type','825158CAkNDS','str'];a25_0x13d7=function(){return _0x22f1b3;};return a25_0x13d7();}const a25_0x43eba9=a25_0x168b;(function(_0x2c4c88,_0x30f900){const _0x319cd5=a25_0x168b,_0x5d0797=_0x2c4c88();while(!![]){try{const _0x1bbec1=-parseInt(_0x319cd5(0xee))/0x1*(parseInt(_0x319cd5(0x115))/0x2)+-parseInt(_0x319cd5(0xf5))/0x3*(-parseInt(_0x319cd5(0xec))/0x4)+-parseInt(_0x319cd5(0x110))/0x5+-parseInt(_0x319cd5(0x11f))/0x6*(-parseInt(_0x319cd5(0x107))/0x7)+parseInt(_0x319cd5(0xfb))/0x8*(parseInt(_0x319cd5(0xfe))/0x9)+-parseInt(_0x319cd5(0x102))/0xa*(-parseInt(_0x319cd5(0xf1))/0xb)+-parseInt(_0x319cd5(0x108))/0xc;if(_0x1bbec1===_0x30f900)break;else _0x5d0797['push'](_0x5d0797['shift']());}catch(_0x1ef6a0){_0x5d0797['push'](_0x5d0797['shift']());}}}(a25_0x13d7,0x740bf));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x54aae7){const _0x1722b9=a25_0x168b;if(_0x54aae7[_0x1722b9(0x120)])return null;const _0x2deb8=Boolean(_0x54aae7[_0x1722b9(0xeb)]!==undefined||_0x54aae7[_0x1722b9(0xf3)]!==undefined);let _0x200847={};if(!_0x2deb8&&typeof _0x54aae7[_0x1722b9(0xed)]===_0x1722b9(0xea))try{_0x200847=JSON[_0x1722b9(0x105)](_0x54aae7[_0x1722b9(0xed)]);}catch{}const _0x268205=_0x2deb8?_0x54aae7['name']:_0x54aae7['code'],_0x45b741=_0x2deb8?_0x54aae7['displayName']:_0x54aae7[_0x1722b9(0xe9)],_0x18ec85=_0x2deb8?_0x54aae7[_0x1722b9(0xf3)]:_0x54aae7[_0x1722b9(0x114)]||_0x54aae7[_0x1722b9(0xf2)],_0x585270=_0x2deb8?_0x54aae7[_0x1722b9(0x10c)]===!![]:_0x200847[_0x1722b9(0x10c)]===!![],_0x15c4bb=_0x2deb8?_0x54aae7['required']===!![]:_0x200847[_0x1722b9(0x129)]===!![],_0x17e773=_0x2deb8?_0x54aae7['options']??null:_0x200847[_0x1722b9(0x104)]??null,_0x2e2472={'name':_0x268205,'displayName':_0x45b741||_0x268205,'type':_0x18ec85,'dbType':_0x54aae7[_0x1722b9(0x126)],'pk':_0x585270,'required':_0x15c4bb,'description':_0x54aae7['description']||undefined};return Array[_0x1722b9(0xf7)](_0x17e773)&&_0x17e773[_0x1722b9(0x11d)]>0x0&&(_0x2e2472[_0x1722b9(0x104)]=_0x17e773),_0x2e2472;}function parseJsonMaybe(_0x1d1438){const _0xb2088=a25_0x168b;if(typeof _0x1d1438!==_0xb2088(0xea))return _0x1d1438;try{return JSON['parse'](_0x1d1438);}catch{return _0x1d1438;}}function normalizeOperationEntry(_0x205a2a,_0x2dcaee){const _0x58731c=a25_0x168b;if(!_0x2dcaee||typeof _0x2dcaee!==_0x58731c(0x122))return null;if(!_0x2dcaee[_0x58731c(0xef)]||!_0x2dcaee['path'])return null;const _0x5d6d85={'name':_0x205a2a,'method':_0x2dcaee[_0x58731c(0xef)],'path':_0x2dcaee[_0x58731c(0xfa)]};if(_0x2dcaee[_0x58731c(0x11b)])_0x5d6d85['host']=_0x2dcaee[_0x58731c(0x11b)];if(_0x2dcaee[_0x58731c(0x109)]!=null)_0x5d6d85['requestBody']=parseJsonMaybe(_0x2dcaee[_0x58731c(0x109)]);if(_0x2dcaee[_0x58731c(0x117)]!=null)_0x5d6d85[_0x58731c(0x117)]=parseJsonMaybe(_0x2dcaee['responseBody']);if(_0x2dcaee['beforeScriptId']!=null)_0x5d6d85['beforeScriptId']=_0x2dcaee['beforeScriptId'];if(_0x2dcaee[_0x58731c(0x10f)]!=null)_0x5d6d85['afterScriptId']=_0x2dcaee[_0x58731c(0x10f)];if(Array['isArray'](_0x2dcaee[_0x58731c(0x10e)]))_0x5d6d85[_0x58731c(0x10e)]=_0x2dcaee['requestFields'];if(Array[_0x58731c(0xf7)](_0x2dcaee[_0x58731c(0x11c)]))_0x5d6d85[_0x58731c(0x11c)]=_0x2dcaee[_0x58731c(0x11c)];return _0x5d6d85;}function summarizeDbtable(_0xadc686){const _0x1046ee=a25_0x168b,_0x13f2f5={},_0x4d0a72=[_0x1046ee(0xf8),'dbName',_0x1046ee(0x12e),'datasetKey','pkField',_0x1046ee(0x125),_0x1046ee(0x127),_0x1046ee(0xff),'updateTimeField',_0x1046ee(0x106),_0x1046ee(0x11e),_0x1046ee(0x113),_0x1046ee(0x112),_0x1046ee(0x121),_0x1046ee(0x124)];for(const _0x4e2046 of _0x4d0a72){if(_0xadc686[_0x4e2046]!==undefined)_0x13f2f5[_0x4e2046]=_0xadc686[_0x4e2046];}return typeof _0x13f2f5[_0x1046ee(0x125)]===_0x1046ee(0xea)&&_0x13f2f5[_0x1046ee(0x125)][_0x1046ee(0x11d)]>0x0&&(_0x13f2f5[_0x1046ee(0xe8)]=_0x13f2f5['allFields']['split'](',')[_0x1046ee(0x128)](_0xaa1ec3=>_0xaa1ec3[_0x1046ee(0x12b)]())[_0x1046ee(0x103)](Boolean)),_0x13f2f5;}function normalizeRelatedPages(_0x160a2f){const _0x4d0b41=a25_0x168b;if(!Array[_0x4d0b41(0xf7)](_0x160a2f))return[];return _0x160a2f[_0x4d0b41(0x103)](_0x58913b=>_0x58913b&&typeof _0x58913b==='object')[_0x4d0b41(0x128)](_0x43352c=>({'id':_0x43352c['id'],'type':_0x43352c['type'],'code':_0x43352c[_0x4d0b41(0x10d)],'title':_0x43352c['title'],'deleted':_0x43352c[_0x4d0b41(0x120)]===!![]}));}function normalizeFallbackFieldName(_0xaa7f01,_0x29cf4c){const _0x5b5e64=a25_0x168b,_0x3ec1ac=_0xaa7f01[_0x5b5e64(0x12b)]();if(!_0x3ec1ac)return null;return{'name':_0x3ec1ac,'displayName':_0x3ec1ac,'type':undefined,'dbType':undefined,'pk':_0x3ec1ac===_0x29cf4c,'required':![],'description':undefined};}async function loadListFieldFallback(_0x23b6aa,_0x47a562){const _0x1b7e87=a25_0x168b;if(!_0x23b6aa||!_0x47a562)return[];try{const _0x284d45=await listDatasets(_0x23b6aa,{'code':_0x47a562}),_0x1f0815=_0x284d45[_0x1b7e87(0x12a)](_0x149f42=>_0x149f42[_0x1b7e87(0x10d)]===_0x47a562)??_0x284d45[0x0],_0x10d5c7=_0x1f0815?.[_0x1b7e87(0xfd)]??{},_0xeecd91=typeof _0x10d5c7[_0x1b7e87(0x125)]==='string'?_0x10d5c7[_0x1b7e87(0x125)]['split'](','):[];return _0xeecd91['map'](_0x1e3ca1=>normalizeFallbackFieldName(_0x1e3ca1,_0x10d5c7[_0x1b7e87(0x10c)]))['filter'](_0x9d4306=>_0x9d4306!==null);}catch{return[];}}function a25_0x168b(_0x4331e1,_0x332fdd){_0x4331e1=_0x4331e1-0xe8;const _0x13d7ae=a25_0x13d7();let _0x168b30=_0x13d7ae[_0x4331e1];return _0x168b30;}export const datasetDetail={'service':a25_0x43eba9(0xf4),'command':'detail','description':a25_0x43eba9(0x118),'risk':a25_0x43eba9(0x10a),'flags':[CODE_FLAG],async 'execute'(_0x358f76){const _0x252c40=a25_0x43eba9,_0xb58fb3=await getDatasetDetail(_0x358f76[_0x252c40(0x116)](_0x252c40(0x10d))),_0x23049e=Array[_0x252c40(0xf7)](_0xb58fb3[_0x252c40(0x123)])?_0xb58fb3[_0x252c40(0x123)]:Array['isArray'](_0xb58fb3[_0x252c40(0x111)])?_0xb58fb3[_0x252c40(0x111)]:[];let _0x499251=_0x23049e[_0x252c40(0x128)](_0x30b321=>normalizeField(_0x30b321))[_0x252c40(0x103)](_0x5b68cc=>_0x5b68cc!==null);_0x499251[_0x252c40(0x11d)]===0x0&&(_0x499251=await loadListFieldFallback(_0x358f76['appCode'],_0x358f76[_0x252c40(0x116)](_0x252c40(0x10d))));const _0x1006ac=_0xb58fb3[_0x252c40(0xf9)]??{},_0x1ce81d=[];for(const [_0x222343,_0x4125a8]of Object[_0x252c40(0x100)](_0x1006ac)){const _0x1e2ccd=normalizeOperationEntry(_0x222343,_0x4125a8);if(_0x1e2ccd)_0x1ce81d[_0x252c40(0x101)](_0x1e2ccd);}const _0xce0399=_0xb58fb3['dbtableConfig']??{},_0x3696f1=_0xb58fb3[_0x252c40(0xf4)]??{},_0x40850c=_0xce0399[_0x252c40(0xf8)]!=null?{'id':_0xce0399[_0x252c40(0xf8)],'name':_0xce0399['dbName']??null}:undefined;let _0x3d31c9;return typeof _0xb58fb3[_0x252c40(0xed)]===_0x252c40(0xea)&&(_0x3d31c9=parseJsonMaybe(_0xb58fb3[_0x252c40(0xed)])),{'ok':!![],'data':{'id':_0xb58fb3[_0x252c40(0xfc)]??_0xb58fb3['id'],'name':_0xb58fb3[_0x252c40(0xe9)],'code':_0xb58fb3['modelCode']||_0xb58fb3[_0x252c40(0x10d)],'doVersion':_0xb58fb3[_0x252c40(0x11a)],'description':_0xb58fb3[_0x252c40(0x12c)]||_0x3696f1['tableComment']||undefined,'source':_0xb58fb3[_0x252c40(0xf6)]||_0x3696f1[_0x252c40(0x12f)],'table':_0xce0399['tableName']||_0x3696f1[_0x252c40(0x12e)],'datasetKey':_0xce0399['datasetKey'],'pk':_0xce0399[_0x252c40(0x10c)],'db':_0x40850c,'dbtable':summarizeDbtable(_0xce0399),'fields':_0x499251,'operations':_0x1ce81d,'indexes':Array[_0x252c40(0xf7)](_0x3696f1['indexes'])?_0x3696f1[_0x252c40(0x119)]:[],'relations':_0xb58fb3['relations']??null,'relatedPages':normalizeRelatedPages(_0xb58fb3['relatedPageInfoList']),...Array[_0x252c40(0xf7)](_0xb58fb3[_0x252c40(0x10b)])?{'columnCodeListWithDeleted':_0xb58fb3['columnCodeListWithDeleted']}:{},'formatRules':Array[_0x252c40(0xf7)](_0xb58fb3[_0x252c40(0xf0)])?_0xb58fb3['formatRules']:[],'validateRules':Array[_0x252c40(0xf7)](_0xb58fb3[_0x252c40(0x12d)])?_0xb58fb3[_0x252c40(0x12d)]:[],..._0x3d31c9!==undefined?{'extend':_0x3d31c9}:{},'stats':{'fieldCount':_0x499251[_0x252c40(0x11d)],'operationCount':_0x1ce81d[_0x252c40(0x11d)]}}};}};
@@ -1 +1 @@
1
- (function(_0x195890,_0x21c6b8){const _0x2dba73=a26_0x113d,_0x3ee330=_0x195890();while(!![]){try{const _0xbc1a0f=-parseInt(_0x2dba73(0x116))/0x1*(-parseInt(_0x2dba73(0x112))/0x2)+-parseInt(_0x2dba73(0x11a))/0x3*(-parseInt(_0x2dba73(0x115))/0x4)+-parseInt(_0x2dba73(0x10f))/0x5*(parseInt(_0x2dba73(0x11b))/0x6)+-parseInt(_0x2dba73(0x119))/0x7*(-parseInt(_0x2dba73(0x113))/0x8)+parseInt(_0x2dba73(0x111))/0x9*(parseInt(_0x2dba73(0x118))/0xa)+parseInt(_0x2dba73(0x110))/0xb*(parseInt(_0x2dba73(0x117))/0xc)+-parseInt(_0x2dba73(0x114))/0xd;if(_0xbc1a0f===_0x21c6b8)break;else _0x3ee330['push'](_0x3ee330['shift']());}catch(_0x3ef513){_0x3ee330['push'](_0x3ee330['shift']());}}}(a26_0x23cc,0xd7282));function a26_0x113d(_0x421828,_0x1d4491){_0x421828=_0x421828-0x10f;const _0x23cc73=a26_0x23cc();let _0x113d11=_0x23cc73[_0x421828];return _0x113d11;}import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a26_0x23cc(){const _0x5409f2=['3750OZaHlA','446551Tgjlsc','3dptJmi','2432922SmbLDO','5skVjNr','22AqNQcM','24498uJbHDK','2sDMibl','32mcYZtg','40430377jHZMxL','7005244JRMFDF','1177797KPCIBQ','1150608FXTXmF'];a26_0x23cc=function(){return _0x5409f2;};return a26_0x23cc();}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ (function(_0xc5d131,_0x667790){const _0xb4eff3=a26_0x1784,_0x130118=_0xc5d131();while(!![]){try{const _0x508262=parseInt(_0xb4eff3(0xe6))/0x1+parseInt(_0xb4eff3(0xe5))/0x2*(parseInt(_0xb4eff3(0xde))/0x3)+-parseInt(_0xb4eff3(0xdf))/0x4*(-parseInt(_0xb4eff3(0xe2))/0x5)+parseInt(_0xb4eff3(0xdd))/0x6+-parseInt(_0xb4eff3(0xe3))/0x7*(parseInt(_0xb4eff3(0xe1))/0x8)+parseInt(_0xb4eff3(0xdc))/0x9*(parseInt(_0xb4eff3(0xe0))/0xa)+-parseInt(_0xb4eff3(0xe4))/0xb;if(_0x508262===_0x667790)break;else _0x130118['push'](_0x130118['shift']());}catch(_0x2c8ccc){_0x130118['push'](_0x130118['shift']());}}}(a26_0x28f3,0x9c093));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a26_0x1784(_0x46ae5f,_0x2492ba){_0x46ae5f=_0x46ae5f-0xdc;const _0x28f3b9=a26_0x28f3();let _0x1784d5=_0x28f3b9[_0x46ae5f];return _0x1784d5;}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];function a26_0x28f3(){const _0x546f84=['849752xHrkjj','60420HsMBwh','49erMLPN','23719091WOAWtZ','2xNhAqL','271760itOxIO','1194597IASWyI','6095568QgyLjf','3094587LELlTm','228TczzPF','40RHbLcw'];a26_0x28f3=function(){return _0x546f84;};return a26_0x28f3();}
@@ -1 +1 @@
1
- function a27_0x2587(){const _0x490845=['827394fBOFlh','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','25xgbiZq','8MoiwkS','540160uzlfUg','datasetKey','120FRlgbt','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','appCode','list','555324drrODh','42726HNcMUv','157765fnRdUd','pkField','length','description','trim','name','string','tableName','2939157fjdRUT','dbtableConfig','3873667RgSUJK','str','map','code','allFields'];a27_0x2587=function(){return _0x490845;};return a27_0x2587();}const a27_0x30d8d2=a27_0xcbe1;(function(_0x1d1777,_0x17b707){const _0xa6e651=a27_0xcbe1,_0x3a0d05=_0x1d1777();while(!![]){try{const _0x285eb8=-parseInt(_0xa6e651(0x132))/0x1+-parseInt(_0xa6e651(0x126))/0x2+parseInt(_0xa6e651(0x131))/0x3*(-parseInt(_0xa6e651(0x12c))/0x4)+-parseInt(_0xa6e651(0x128))/0x5*(-parseInt(_0xa6e651(0x130))/0x6)+parseInt(_0xa6e651(0x13c))/0x7*(parseInt(_0xa6e651(0x129))/0x8)+parseInt(_0xa6e651(0x13a))/0x9+parseInt(_0xa6e651(0x12a))/0xa;if(_0x285eb8===_0x17b707)break;else _0x3a0d05['push'](_0x3a0d05['shift']());}catch(_0x412414){_0x3a0d05['push'](_0x3a0d05['shift']());}}}(a27_0x2587,0x612c2));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a27_0xcbe1(_0x434cbf,_0x4ea664){_0x434cbf=_0x434cbf-0x122;const _0x258758=a27_0x2587();let _0xcbe1ed=_0x258758[_0x434cbf];return _0xcbe1ed;}export const datasetList={'service':'dataset','command':a27_0x30d8d2(0x12f),'description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':'read','flags':[{'name':a27_0x30d8d2(0x137),'type':a27_0x30d8d2(0x138),'description':a27_0x30d8d2(0x12d)},{...CODE_FLAG,'required':![],'description':a27_0x30d8d2(0x127)}],async 'execute'(_0x23cd8c){const _0x2684c8=a27_0x30d8d2,_0x46f90f=_0x23cd8c[_0x2684c8(0x122)]('name'),_0x2dec38=_0x23cd8c[_0x2684c8(0x122)]('code'),_0x5aca7a=await listDatasets(_0x23cd8c[_0x2684c8(0x12e)],{..._0x46f90f&&{'name':_0x46f90f},..._0x2dec38&&{'code':_0x2dec38}});return{'ok':!![],'data':{'total':_0x5aca7a[_0x2684c8(0x134)],'datasets':_0x5aca7a['map'](_0x39c933=>{const _0x4a1414=_0x2684c8,_0x3cbba8=_0x39c933[_0x4a1414(0x13b)]??{};return{'id':_0x39c933['id'],'code':_0x39c933[_0x4a1414(0x124)],'name':_0x39c933[_0x4a1414(0x137)],'source':_0x39c933['source'],'description':_0x39c933[_0x4a1414(0x135)],'table':_0x3cbba8[_0x4a1414(0x139)],'datasetKey':_0x3cbba8[_0x4a1414(0x12b)],'pk':_0x3cbba8[_0x4a1414(0x133)],'fields':_0x3cbba8[_0x4a1414(0x125)]?_0x3cbba8[_0x4a1414(0x125)]['split'](',')[_0x4a1414(0x123)](_0x30afed=>_0x30afed[_0x4a1414(0x136)]()):[]};})}};}};
1
+ const a27_0x2415b6=a27_0xda46;function a27_0xda46(_0x57c6a2,_0x14e2f4){_0x57c6a2=_0x57c6a2-0x14b;const _0x339037=a27_0x3390();let _0xda46a6=_0x339037[_0x57c6a2];return _0xda46a6;}(function(_0x3e8eda,_0x5917d2){const _0x445950=a27_0xda46,_0x2e0c4f=_0x3e8eda();while(!![]){try{const _0x59f5ab=parseInt(_0x445950(0x15e))/0x1+parseInt(_0x445950(0x15a))/0x2+-parseInt(_0x445950(0x166))/0x3*(parseInt(_0x445950(0x15b))/0x4)+parseInt(_0x445950(0x161))/0x5*(parseInt(_0x445950(0x167))/0x6)+-parseInt(_0x445950(0x159))/0x7+-parseInt(_0x445950(0x165))/0x8+parseInt(_0x445950(0x162))/0x9;if(_0x59f5ab===_0x5917d2)break;else _0x2e0c4f['push'](_0x2e0c4f['shift']());}catch(_0x5aa80d){_0x2e0c4f['push'](_0x2e0c4f['shift']());}}}(a27_0x3390,0xb0b87));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a27_0x2415b6(0x160),'command':a27_0x2415b6(0x164),'description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':a27_0x2415b6(0x14d),'flags':[{'name':a27_0x2415b6(0x15f),'type':a27_0x2415b6(0x14c),'description':a27_0x2415b6(0x158)},{...CODE_FLAG,'required':![],'description':a27_0x2415b6(0x15d)}],async 'execute'(_0x3a30d6){const _0x53fca5=a27_0x2415b6,_0x281cbf=_0x3a30d6['str']('name'),_0x4908c7=_0x3a30d6[_0x53fca5(0x154)]('code'),_0x578688=await listDatasets(_0x3a30d6[_0x53fca5(0x163)],{..._0x281cbf&&{'name':_0x281cbf},..._0x4908c7&&{'code':_0x4908c7}});return{'ok':!![],'data':{'total':_0x578688[_0x53fca5(0x14b)],'datasets':_0x578688[_0x53fca5(0x151)](_0x218ddc=>{const _0x4b7d56=_0x53fca5,_0x304af7=_0x218ddc[_0x4b7d56(0x156)]??{};return{'id':_0x218ddc['id'],'code':_0x218ddc[_0x4b7d56(0x153)],'name':_0x218ddc[_0x4b7d56(0x15f)],'source':_0x218ddc[_0x4b7d56(0x14e)],'description':_0x218ddc[_0x4b7d56(0x157)],'table':_0x304af7[_0x4b7d56(0x150)],'datasetKey':_0x304af7[_0x4b7d56(0x15c)],'pk':_0x304af7[_0x4b7d56(0x152)],'fields':_0x304af7['allFields']?_0x304af7[_0x4b7d56(0x168)][_0x4b7d56(0x14f)](',')['map'](_0x51bac4=>_0x51bac4[_0x4b7d56(0x155)]()):[]};})}};}};function a27_0x3390(){const _0x42b85c=['length','string','read','source','split','tableName','map','pkField','code','str','trim','dbtableConfig','description','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','8987937dKVcXk','2757776eZovpz','4168nwRnZP','datasetKey','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','447445FbNhUW','name','dataset','1812895kOjIvZ','18383436bNgRzN','appCode','list','10003600LPUsyX','2802ivGmnl','6QoYZnu','allFields'];a27_0x3390=function(){return _0x42b85c;};return a27_0x3390();}
@@ -1 +1 @@
1
- const a28_0x587bc1=a28_0xfdc4;(function(_0x3f2b08,_0x1b9ed9){const _0x49ed30=a28_0xfdc4,_0x53ff75=_0x3f2b08();while(!![]){try{const _0x26b868=-parseInt(_0x49ed30(0x18a))/0x1+-parseInt(_0x49ed30(0x185))/0x2+-parseInt(_0x49ed30(0x17d))/0x3*(-parseInt(_0x49ed30(0x181))/0x4)+-parseInt(_0x49ed30(0x189))/0x5+-parseInt(_0x49ed30(0x184))/0x6*(-parseInt(_0x49ed30(0x18b))/0x7)+-parseInt(_0x49ed30(0x186))/0x8*(parseInt(_0x49ed30(0x17c))/0x9)+parseInt(_0x49ed30(0x18c))/0xa;if(_0x26b868===_0x1b9ed9)break;else _0x53ff75['push'](_0x53ff75['shift']());}catch(_0x3ba3d4){_0x53ff75['push'](_0x53ff75['shift']());}}}(a28_0x28bc,0xd0aa3));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a28_0x587bc1(0x180);export function formatDatasetSdkMarkdown(_0x465949){const _0x1f71d9=a28_0x587bc1,_0x4de385=typeof _0x465949===_0x1f71d9(0x183)?_0x465949['trim']():'';return _0x4de385||DEFAULT_MARKDOWN;}function a28_0xfdc4(_0x143b80,_0x506248){_0x143b80=_0x143b80-0x17c;const _0x28bccb=a28_0x28bc();let _0xfdc4c8=_0x28bccb[_0x143b80];return _0xfdc4c8;}export const datasetSdkDoc={'service':a28_0x587bc1(0x17e),'command':a28_0x587bc1(0x188),'description':a28_0x587bc1(0x17f),'risk':'read','flags':[{...CODE_FLAG,'description':'Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.'}],async 'execute'(_0x451399){const _0x40589b=a28_0x587bc1,_0x44583b=_0x451399[_0x40589b(0x182)]('code'),_0x410ab2=await getDatasetSdkUsageDoc(_0x44583b,_0x451399[_0x40589b(0x187)]);return{'ok':!![],'data':{'code':_0x44583b,'appCode':_0x451399[_0x40589b(0x187)],'markdown':formatDatasetSdkMarkdown(_0x410ab2)}};}};function a28_0x28bc(){const _0x52add2=['9SVgLYr','27516QBsWRa','dataset','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','556IOOCRF','str','string','2676zarQEp','2125094PlhVYS','4837520wTjGGZ','appCode','sdk-doc','3943695qtbXlq','1214857dHqWyU','3206GMxjOw','30463480YCpoOe'];a28_0x28bc=function(){return _0x52add2;};return a28_0x28bc();}
1
+ function a28_0x5753(){const _0x565583=['4641310OAmxbs','sdk-doc','1101152uKfNLv','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','trim','16OJoaKL','string','441580apixiE','2882427ImwiMq','4QnmHLD','str','code','appCode','4461228zimWNA','478150xTyMGj','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','837612UvRtVM','385axIOjI','dataset','7CDGhLw'];a28_0x5753=function(){return _0x565583;};return a28_0x5753();}const a28_0x20c1d9=a28_0x5436;(function(_0x5b54c2,_0x1c419c){const _0x230f0c=a28_0x5436,_0x4f45e7=_0x5b54c2();while(!![]){try{const _0x2bf62d=parseInt(_0x230f0c(0x168))/0x1+parseInt(_0x230f0c(0x170))/0x2+-parseInt(_0x230f0c(0x162))/0x3*(-parseInt(_0x230f0c(0x163))/0x4)+parseInt(_0x230f0c(0x16e))/0x5+-parseInt(_0x230f0c(0x16a))/0x6*(-parseInt(_0x230f0c(0x16d))/0x7)+-parseInt(_0x230f0c(0x173))/0x8*(parseInt(_0x230f0c(0x167))/0x9)+parseInt(_0x230f0c(0x161))/0xa*(-parseInt(_0x230f0c(0x16b))/0xb);if(_0x2bf62d===_0x1c419c)break;else _0x4f45e7['push'](_0x4f45e7['shift']());}catch(_0x5ddf84){_0x4f45e7['push'](_0x4f45e7['shift']());}}}(a28_0x5753,0x7f125));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';function a28_0x5436(_0x58013d,_0x36123d){_0x58013d=_0x58013d-0x161;const _0x575368=a28_0x5753();let _0x543604=_0x575368[_0x58013d];return _0x543604;}import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a28_0x20c1d9(0x169);export function formatDatasetSdkMarkdown(_0x5ee92f){const _0x24e268=a28_0x20c1d9,_0xa4738e=typeof _0x5ee92f===_0x24e268(0x174)?_0x5ee92f[_0x24e268(0x172)]():'';return _0xa4738e||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a28_0x20c1d9(0x16c),'command':a28_0x20c1d9(0x16f),'description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':'read','flags':[{...CODE_FLAG,'description':a28_0x20c1d9(0x171)}],async 'execute'(_0x2c9006){const _0x3d48a1=a28_0x20c1d9,_0x24f38d=_0x2c9006[_0x3d48a1(0x164)](_0x3d48a1(0x165)),_0x2792e0=await getDatasetSdkUsageDoc(_0x24f38d,_0x2c9006['appCode']);return{'ok':!![],'data':{'code':_0x24f38d,'appCode':_0x2c9006[_0x3d48a1(0x166)],'markdown':formatDatasetSdkMarkdown(_0x2792e0)}};}};