@lovrabet/lovrabet-cli 2.1.18-beta.2 → 2.1.18-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) 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/response.js +1 -1
  90. package/lib/framework/runner-confirmation.js +1 -1
  91. package/lib/framework/runner-error.js +1 -1
  92. package/lib/framework/runner.js +1 -1
  93. package/lib/framework/schema-export.js +1 -1
  94. package/lib/framework/service-order.js +1 -1
  95. package/lib/framework/types.js +1 -1
  96. package/lib/generated/build-info.d.ts +4 -4
  97. package/lib/generated/build-info.js +1 -1
  98. package/lib/help.js +1 -1
  99. package/lib/runtime/event.js +1 -1
  100. package/lib/runtime/index.js +1 -1
  101. package/lib/runtime/queue.js +1 -1
  102. package/lib/runtime/resolve.js +1 -1
  103. package/lib/skills/npx-skills-add.js +1 -1
  104. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  105. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  106. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  107. package/lib/skills/runtime-skill-sync/links.js +1 -1
  108. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  109. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  110. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  111. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  112. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  113. package/lib/skills/runtime-skill-sync/push.js +1 -1
  114. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  115. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  116. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  117. package/lib/skills/runtime-skill-sync.js +1 -1
  118. package/lib/utils/apply-jq-filter.js +1 -1
  119. package/lib/utils/logger.js +1 -1
  120. package/lib/utils/lossless-json.d.ts +7 -14
  121. package/lib/utils/lossless-json.js +1 -1
  122. package/lib/utils/params.js +1 -1
  123. package/lib/utils/platform.js +1 -1
  124. package/lib/utils/update-notice.js +1 -1
  125. package/lib/utils/version.js +1 -1
  126. package/lib/utils/write-cli-side-channel.js +1 -1
  127. package/package.json +1 -1
@@ -1 +1 @@
1
- const a12_0x254002=a12_0x328a;(function(_0x37f449,_0x5a3cc5){const _0x1aa902=a12_0x328a,_0x32f43b=_0x37f449();while(!![]){try{const _0x2d7314=-parseInt(_0x1aa902(0x1d9))/0x1+-parseInt(_0x1aa902(0x1d3))/0x2*(-parseInt(_0x1aa902(0x1f2))/0x3)+-parseInt(_0x1aa902(0x1cf))/0x4+parseInt(_0x1aa902(0x1f4))/0x5+parseInt(_0x1aa902(0x1ed))/0x6*(parseInt(_0x1aa902(0x1e0))/0x7)+-parseInt(_0x1aa902(0x1a9))/0x8*(-parseInt(_0x1aa902(0x1bb))/0x9)+-parseInt(_0x1aa902(0x1c5))/0xa*(parseInt(_0x1aa902(0x1c3))/0xb);if(_0x2d7314===_0x5a3cc5)break;else _0x32f43b['push'](_0x32f43b['shift']());}catch(_0x10e80d){_0x32f43b['push'](_0x32f43b['shift']());}}}(a12_0x4eea,0xc51a1));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';import{getUserDomain}from'../../constant/domain.js';import{authDeviceDefinition,readStoredDeviceCode,deleteStoredDeviceCode,fetchDeviceToken,isStoredDeviceCodeExpired}from'../../commands/auth/device.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x491ac2=a12_0x328a;writeCliSideChannelLine(_0x491ac2(0x1dc)+PRODUCT_CONFIG['userCenterDisplayName']+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x491ac2(0x1fa)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>');}function buildAccessKeySetupGuide(){const _0x521a69=a12_0x328a;return['AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x521a69(0x1ec)]+':',USER_ACCESS_KEY_CREATE_URL,_0x521a69(0x1be)+CLI_BIN_NAME+_0x521a69(0x1d5)][_0x521a69(0x1a6)]('\x0a');}function canPromptForAccessKey(_0x2758d2){const _0x43890b=a12_0x328a;return!_0x2758d2[_0x43890b(0x1b9)]&&process['stdin']['isTTY']!==![]&&process[_0x43890b(0x1ba)][_0x43890b(0x1f8)]!==![];}function resolveAuthScopeFlags(_0xd2623d){const _0xdabde9=a12_0x328a;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0xd2623d[_0xdabde9(0x1bc)](_0xdabde9(0x1eb)),'explicitProject':_0xd2623d[_0xdabde9(0x1bc)](_0xdabde9(0x1ea)),'policy':_0xdabde9(0x1ac)}));}function a12_0x328a(_0x3bc12d,_0x46b4d2){_0x3bc12d=_0x3bc12d-0x1a3;const _0x4eea46=a12_0x4eea();let _0x328aab=_0x4eea46[_0x3bc12d];return _0x328aab;}async function resolveAuthWriteInput(_0x33462d){const _0x1226c7=a12_0x328a;let _0x2bd543=(_0x33462d['str'](_0x1226c7(0x1f5))||_0x33462d['str']('ak')||'')[_0x1226c7(0x1c6)]();const _0x273964=(_0x33462d[_0x1226c7(0x1a7)](_0x1226c7(0x1c9))||'')[_0x1226c7(0x1c6)]();if(!_0x2bd543&&canPromptForAccessKey(_0x33462d))try{showAccessKeyCreateHint(),_0x2bd543=await promptAccessKey('');}catch(_0x74c145){if(isAbortPrompt(_0x74c145))throw CliErrors[_0x1226c7(0x1b7)]();throw _0x74c145;}if(!_0x2bd543)throw CliErrors['validation'](_0x1226c7(0x1e5),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x1226c7(0x1a3)](_0x2bd543))throw CliErrors[_0x1226c7(0x1a8)](_0x1226c7(0x1d7)+_0x2bd543+'\x22',_0x1226c7(0x1ef));if(!_0x273964)return{'accessKey':_0x2bd543};const _0x5e80da=normalizeEnv(_0x273964);return{'accessKey':_0x2bd543,'env':isDaily(_0x5e80da)?_0x1226c7(0x1cc):isDev(_0x5e80da)?_0x1226c7(0x1aa):'production'};}export const authDefinitions=[{'service':'auth','command':a12_0x254002(0x1b2),'description':'Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','risk':a12_0x254002(0x1f1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x254002(0x1f5),'type':'string','description':a12_0x254002(0x1a4)},{'name':'ak','type':a12_0x254002(0x1a5),'description':a12_0x254002(0x1e9)},{'name':a12_0x254002(0x1eb),'type':a12_0x254002(0x1d2),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a12_0x254002(0x1ea),'type':'boolean','description':a12_0x254002(0x1e1),'default':![]}],async 'execute'(_0x4f0260){const _0x33db1d=a12_0x254002;if(_0x4f0260['bool']('yes'))throw CliErrors[_0x33db1d(0x1a8)]('`auth\x20login`\x20does\x20not\x20support\x20--yes.',_0x33db1d(0x1e6)+CLI_BIN_NAME+_0x33db1d(0x1fd)+CLI_BIN_NAME+_0x33db1d(0x1e2));const _0x4b4642=(_0x4f0260['str'](_0x33db1d(0x1f5))||_0x4f0260[_0x33db1d(0x1a7)]('ak')||'')[_0x33db1d(0x1c6)]();if(!_0x4b4642&&_0x4f0260[_0x33db1d(0x1b9)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x44ca73=await resolveAuthWriteInput(_0x4f0260),_0xd57845=resolveAuthScopeFlags(_0x4f0260),_0x24161a=readScopedConfig(_0xd57845);_0x24161a['accessKey']=_0x44ca73[_0x33db1d(0x1c4)];_0x44ca73[_0x33db1d(0x1c9)]&&(_0x24161a['env']=_0x44ca73[_0x33db1d(0x1c9)]);writeScopedConfig(_0x24161a,_0xd57845);const _0x11f96b=_0xd57845[_0x33db1d(0x1eb)]?_0x33db1d(0x1eb):_0x33db1d(0x1ea),_0xeb27d3=_0x24161a[_0x33db1d(0x1c9)]?_0x33db1d(0x1b3)+_0x24161a[_0x33db1d(0x1c9)]+'.':'';return{'ok':!![],'message':_0x33db1d(0x1cb)+_0x11f96b+_0x33db1d(0x1ad)+_0xeb27d3+_0x33db1d(0x1fb)+CLI_BIN_NAME+_0x33db1d(0x1af)};}},{'service':a12_0x254002(0x1c0),'command':a12_0x254002(0x1f6),'description':a12_0x254002(0x1ae),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x254002(0x1f5),'type':a12_0x254002(0x1a5),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a12_0x254002(0x1a5),'description':'Shorthand\x20for\x20--access-key'},{'name':'env','type':a12_0x254002(0x1a5),'description':a12_0x254002(0x1ca)},{'name':a12_0x254002(0x1eb),'type':a12_0x254002(0x1d2),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':'project','type':a12_0x254002(0x1d2),'description':a12_0x254002(0x1e1),'default':![]}],async 'execute'(_0x184e94){const _0xfc253e=a12_0x254002,_0x5d9512=await resolveAuthWriteInput(_0x184e94),_0x384499=resolveAuthScopeFlags(_0x184e94),_0x28bbe9={'accessKey':_0x5d9512[_0xfc253e(0x1c4)]};_0x5d9512[_0xfc253e(0x1c9)]&&(_0x28bbe9[_0xfc253e(0x1c9)]=_0x5d9512['env']);writeScopedConfig(_0x28bbe9,_0x384499);const _0x3585ab=_0x384499[_0xfc253e(0x1eb)]?_0xfc253e(0x1eb):_0xfc253e(0x1ea),_0x4691e8=_0x28bbe9['env']?_0xfc253e(0x1b3)+_0x28bbe9[_0xfc253e(0x1c9)]+'.':'';return{'ok':!![],'message':'Auth\x20config\x20reinitialized\x20in\x20'+_0x3585ab+_0xfc253e(0x1fc)+_0x4691e8+_0xfc253e(0x1fb)+CLI_BIN_NAME+_0xfc253e(0x1af)};}},{'service':a12_0x254002(0x1c0),'command':a12_0x254002(0x1cd),'description':a12_0x254002(0x1d8),'risk':a12_0x254002(0x1f1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a12_0x254002(0x1d2),'description':'Clear\x20from\x20global\x20config\x20(default)','default':!![]},{'name':'project','type':a12_0x254002(0x1d2),'description':a12_0x254002(0x1f0),'default':![]}],async 'execute'(_0x314d39){const _0x40d709=a12_0x254002,_0x312abb=resolveAuthScopeFlags(_0x314d39),_0x1797c=readScopedConfig(_0x312abb),_0x1a18e6=!!_0x1797c[_0x40d709(0x1c4)];delete _0x1797c[_0x40d709(0x1c4)],writeScopedConfig(_0x1797c,_0x312abb);const _0x58c8b7=_0x312abb[_0x40d709(0x1eb)]?_0x40d709(0x1eb):_0x40d709(0x1ea);if(_0x1a18e6)return{'ok':!![],'message':'AccessKey\x20cleared\x20from\x20'+_0x58c8b7+'\x20config.'};return{'ok':!![],'message':_0x40d709(0x1ee)+_0x58c8b7+_0x40d709(0x1de)};}},{'service':'auth','command':a12_0x254002(0x1e8),'description':a12_0x254002(0x1df),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x254002(0x1eb),'type':a12_0x254002(0x1d2),'description':'Read\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a12_0x254002(0x1ea),'type':a12_0x254002(0x1d2),'description':'Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]},{'name':a12_0x254002(0x1ff),'type':a12_0x254002(0x1d2),'description':a12_0x254002(0x1d1),'default':![]}],async 'execute'(_0x75e972){const _0x1b3b38=a12_0x254002,_0x1fd5cb=resolveAuthScopeFlags(_0x75e972),_0x21607c=readScopedConfig(_0x1fd5cb),_0x482a8b=productEnvName(_0x1b3b38(0x1c8)),_0x223818=productEnv(_0x1b3b38(0x1c8))||undefined,_0x98214a=_0x21607c['accessKey']||undefined,_0x5bb36b=_0x223818||_0x98214a,_0x13c076=_0x223818?_0x482a8b+'\x20env\x20var':_0x98214a?(_0x1fd5cb[_0x1b3b38(0x1eb)]?_0x1b3b38(0x1eb):_0x1b3b38(0x1ea))+'\x20config':null,_0x3d8805=[_0x1b3b38(0x1e7)+AUTH_MODE[_0x1b3b38(0x1e3)]];if(_0x5bb36b){const _0x2206a1=_0x5bb36b[_0x1b3b38(0x1d4)]>0x8?''+_0x5bb36b[_0x1b3b38(0x1c7)](0x0,0x8)+'*'[_0x1b3b38(0x1d6)](_0x5bb36b[_0x1b3b38(0x1d4)]-0x8):_0x5bb36b;_0x3d8805[_0x1b3b38(0x1c1)](_0x1b3b38(0x1b4)+_0x2206a1+(_0x13c076?_0x1b3b38(0x1f9)+_0x13c076+')':'')),_0x3d8805['push']('Status:\x20valid');}if(!_0x5bb36b){_0x3d8805[_0x1b3b38(0x1c1)](''),_0x3d8805[_0x1b3b38(0x1c1)](_0x1b3b38(0x1bf)),_0x3d8805['push'](''),_0x3d8805[_0x1b3b38(0x1c1)]('Option\x20A:\x20'+CLI_BIN_NAME+_0x1b3b38(0x1e4)),_0x3d8805[_0x1b3b38(0x1c1)](''),_0x3d8805[_0x1b3b38(0x1c1)]('Option\x20B:\x20apps\x20config\x20('+PRODUCT_CONFIG[_0x1b3b38(0x1c2)]+')'),_0x3d8805[_0x1b3b38(0x1c1)]('{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}'),_0x3d8805[_0x1b3b38(0x1c1)](''),_0x3d8805[_0x1b3b38(0x1c1)](_0x1b3b38(0x1bd)),_0x3d8805[_0x1b3b38(0x1c1)](_0x1b3b38(0x1d0)+_0x482a8b+_0x1b3b38(0x1ab)),_0x3d8805[_0x1b3b38(0x1c1)](''),_0x3d8805[_0x1b3b38(0x1c1)](_0x1b3b38(0x1dd)+CLI_BIN_NAME+_0x1b3b38(0x1af)),_0x3d8805['push'](_0x1b3b38(0x1b5)+CLI_BIN_NAME+'\x20doctor');if(_0x75e972['bool'](_0x1b3b38(0x1ff))){const _0x4bdb01=readStoredDeviceCode();if(_0x4bdb01&&!isStoredDeviceCodeExpired(_0x4bdb01)){const _0x2008b1=getUserDomain(),_0x3c36ca=await fetchDeviceToken(_0x2008b1,_0x4bdb01[_0x1b3b38(0x1b6)]);if(_0x3c36ca[_0x1b3b38(0x1e8)]===_0x1b3b38(0x1b0)&&_0x3c36ca[_0x1b3b38(0x1da)]){const _0x17b809={'global':_0x4bdb01[_0x1b3b38(0x1fe)]===_0x1b3b38(0x1eb)},_0x2b47e1=readScopedConfig(_0x17b809);_0x2b47e1[_0x1b3b38(0x1c4)]=_0x3c36ca[_0x1b3b38(0x1da)],writeScopedConfig(_0x2b47e1,_0x17b809),deleteStoredDeviceCode();const _0x532d58=_0x3c36ca['access_key'],_0x4319a2=_0x532d58[_0x1b3b38(0x1d4)]>0x8?''+_0x532d58[_0x1b3b38(0x1c7)](0x0,0x8)+'*'['repeat'](_0x532d58[_0x1b3b38(0x1d4)]-0x8):_0x532d58,_0x12edaf=_0x4bdb01[_0x1b3b38(0x1fe)]===_0x1b3b38(0x1eb)?_0x1b3b38(0x1f7):_0x1b3b38(0x1b8);return{'ok':!![],'message':[_0x1b3b38(0x1e7)+AUTH_MODE['ClientAk'],'AccessKey:\x20'+_0x4319a2+_0x1b3b38(0x1f9)+_0x12edaf+')','Status:\x20valid'][_0x1b3b38(0x1a6)]('\x0a')};}_0x3c36ca[_0x1b3b38(0x1e8)]===_0x1b3b38(0x1b1)&&deleteStoredDeviceCode();throw CliErrors[_0x1b3b38(0x1f3)]('Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.');}throw CliErrors['authRequired'](_0x3d8805[_0x1b3b38(0x1a6)]('\x0a'));}}return{'ok':!![],'message':_0x3d8805['join']('\x0a')};}},{'service':'auth','command':a12_0x254002(0x1db),'description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x4e32d2){const _0x2477fc=a12_0x254002,_0x1750d2=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x1750d2,'meta':{'env':_0x4e32d2[_0x2477fc(0x1ce)]??'production'}}};}},authDeviceDefinition];function a12_0x4eea(){const _0x4d7fc5=['Missing\x20accessKey.','Use\x20`','Auth\x20mode:\x20','status','Shorthand\x20for\x20--access-key','project','global','userCenterDisplayName','6gmdIba','No\x20AccessKey\x20found\x20in\x20','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','write','2807643HQEPyf','authRequired','7930690SERwxP','access-key','init','global\x20config','isTTY','\x20(via\x20','Tip:\x20you\x20can\x20also\x20run:','\x20Verify:\x20','\x20scope.','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','scope','check','test','AccessKey\x20(ak_xxx...)','string','join','str','validation','632YJZeyb','development','=ak_xxx','global-default','\x20config.','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','\x20auth\x20status','success','expired','login','\x20Current\x20env:\x20','AccessKey:\x20','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','code','cancelled','project\x20config','nonInteractive','stdout','170865pkGbVb','bool','Option\x20C:\x20environment\x20variable','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','auth','push','newConfigFileName','3355IoBTPY','accessKey','86690OwIDay','trim','slice','ACCESS_KEY','env','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','AccessKey\x20saved\x20to\x20','daily','logout','envName','5146172kgAVNy','\x20\x20export\x20','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','boolean','2ZGOJkU','length','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','repeat','Invalid\x20accessKey\x20format:\x20\x22','Clear\x20accessKey\x20from\x20config','844002lfXyib','access_key','info','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','Then\x20verify\x20with:\x20','\x20config.\x20Nothing\x20to\x20clear.','Show\x20current\x20authentication\x20status','10920595SXRTcX','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','ClientAk','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'];a12_0x4eea=function(){return _0x4d7fc5;};return a12_0x4eea();}
1
+ const a12_0x337401=a12_0x6950;(function(_0x55a511,_0x2b73cc){const _0xe7d4e2=a12_0x6950,_0x4fb1aa=_0x55a511();while(!![]){try{const _0x4b55ff=parseInt(_0xe7d4e2(0x17a))/0x1*(-parseInt(_0xe7d4e2(0x142))/0x2)+-parseInt(_0xe7d4e2(0x129))/0x3*(-parseInt(_0xe7d4e2(0x162))/0x4)+-parseInt(_0xe7d4e2(0x180))/0x5+parseInt(_0xe7d4e2(0x16b))/0x6*(parseInt(_0xe7d4e2(0x156))/0x7)+parseInt(_0xe7d4e2(0x187))/0x8*(-parseInt(_0xe7d4e2(0x173))/0x9)+parseInt(_0xe7d4e2(0x141))/0xa*(parseInt(_0xe7d4e2(0x122))/0xb)+parseInt(_0xe7d4e2(0x152))/0xc*(parseInt(_0xe7d4e2(0x130))/0xd);if(_0x4b55ff===_0x2b73cc)break;else _0x4fb1aa['push'](_0x4fb1aa['shift']());}catch(_0x5059fc){_0x4fb1aa['push'](_0x4fb1aa['shift']());}}}(a12_0x1538,0xf24d8));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';function a12_0x1538(){const _0x40f432=['\x20scope.','8474460lbtoEe','Status:\x20valid','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','login','6123593SHlNSb','validation','userCenterDisplayName','`auth\x20login`\x20does\x20not\x20support\x20--yes.','Clear\x20from\x20global\x20config\x20(default)','daily','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','write','join','Auth\x20mode:\x20','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','12bErVfs','\x20Current\x20env:\x20','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','AccessKey\x20(ak_xxx...)','No\x20AccessKey\x20found\x20in\x20','check','scope','AccessKey\x20saved\x20to\x20','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','12rAzKnS','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','push','Option\x20A:\x20','Shorthand\x20for\x20--access-key','length','\x20config','=ak_xxx','9AwJxFv','boolean','envName','Option\x20C:\x20environment\x20variable','\x20(via\x20','ACCESS_KEY','Clear\x20accessKey\x20from\x20config','1421969jQfetK','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','test','project\x20config','trim','\x20config.\x20Nothing\x20to\x20clear.','2206235zBIsmb','Write\x20to\x20global\x20config\x20(default)','\x20auth\x20status','Auth\x20config\x20reinitialized\x20in\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','Option\x20B:\x20apps\x20config\x20(','repeat','3538840PfCGRp','Invalid\x20accessKey\x20format:\x20\x22','string','\x20env\x20var','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','\x20auth\x20login\x20--access-key\x20<ak_xxx>','360173qWacPr','Missing\x20accessKey.','yes','access_key','env','expired','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','776754XBGAAd','info','production','Tip:\x20you\x20can\x20also\x20run:','logout','AccessKey:\x20','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','13XTjvEF','\x20Verify:\x20','Read\x20from\x20global\x20config\x20(default)','auth','development','bool','project','status','cancelled','slice','access-key','isTTY','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','init','nonInteractive','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','20faSLfI','2MNMKQN','accessKey','success','global','str','stdin','global\x20config','read','code','ClientAk','Show\x20current\x20authentication\x20status','stdout','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','newConfigFileName','Then\x20verify\x20with:\x20'];a12_0x1538=function(){return _0x40f432;};return a12_0x1538();}import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';function a12_0x6950(_0x1934b9,_0x13ac3d){_0x1934b9=_0x1934b9-0x121;const _0x15388b=a12_0x1538();let _0x6950ea=_0x15388b[_0x1934b9];return _0x6950ea;}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 _0x11f966=a12_0x6950;writeCliSideChannelLine(_0x11f966(0x16a)+PRODUCT_CONFIG['userCenterDisplayName']+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x11f966(0x12c)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x11f966(0x121));}function buildAccessKeySetupGuide(){const _0x5bc437=a12_0x6950;return['AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x5bc437(0x158)]+':',USER_ACCESS_KEY_CREATE_URL,_0x5bc437(0x164)+CLI_BIN_NAME+_0x5bc437(0x184)][_0x5bc437(0x15e)]('\x0a');}function canPromptForAccessKey(_0x4a1fa6){const _0x2b4a13=a12_0x6950;return!_0x4a1fa6[_0x2b4a13(0x13f)]&&process[_0x2b4a13(0x147)][_0x2b4a13(0x13b)]!==![]&&process[_0x2b4a13(0x14d)][_0x2b4a13(0x13b)]!==![];}function resolveAuthScopeFlags(_0x333e90){const _0x4e94f9=a12_0x6950;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x333e90['bool'](_0x4e94f9(0x145)),'explicitProject':_0x333e90[_0x4e94f9(0x135)](_0x4e94f9(0x136)),'policy':'global-default'}));}async function resolveAuthWriteInput(_0x58498e){const _0x1b1ba5=a12_0x6950;let _0x36382c=(_0x58498e[_0x1b1ba5(0x146)]('access-key')||_0x58498e['str']('ak')||'')[_0x1b1ba5(0x17e)]();const _0x5ce02d=(_0x58498e[_0x1b1ba5(0x146)]('env')||'')[_0x1b1ba5(0x17e)]();if(!_0x36382c&&canPromptForAccessKey(_0x58498e))try{showAccessKeyCreateHint(),_0x36382c=await promptAccessKey('');}catch(_0x37b3ee){if(isAbortPrompt(_0x37b3ee))throw CliErrors[_0x1b1ba5(0x138)]();throw _0x37b3ee;}if(!_0x36382c)throw CliErrors[_0x1b1ba5(0x157)](_0x1b1ba5(0x123),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x1b1ba5(0x17c)](_0x36382c))throw CliErrors[_0x1b1ba5(0x157)](_0x1b1ba5(0x188)+_0x36382c+'\x22',_0x1b1ba5(0x17b));if(!_0x5ce02d)return{'accessKey':_0x36382c};const _0x1ae10d=normalizeEnv(_0x5ce02d);return{'accessKey':_0x36382c,'env':isDaily(_0x1ae10d)?_0x1b1ba5(0x15b):isDev(_0x1ae10d)?_0x1b1ba5(0x134):_0x1b1ba5(0x12b)};}export const authDefinitions=[{'service':a12_0x337401(0x133),'command':a12_0x337401(0x155),'description':'Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','risk':a12_0x337401(0x15d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':'string','description':a12_0x337401(0x165)},{'name':'ak','type':a12_0x337401(0x189),'description':a12_0x337401(0x16f)},{'name':a12_0x337401(0x145),'type':a12_0x337401(0x174),'description':a12_0x337401(0x181),'default':!![]},{'name':a12_0x337401(0x136),'type':a12_0x337401(0x174),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x3ad73f){const _0x538fd1=a12_0x337401;if(_0x3ad73f[_0x538fd1(0x135)](_0x538fd1(0x124)))throw CliErrors[_0x538fd1(0x157)](_0x538fd1(0x159),'Use\x20`'+CLI_BIN_NAME+'\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`'+CLI_BIN_NAME+_0x538fd1(0x140));const _0x2bafa4=(_0x3ad73f[_0x538fd1(0x146)](_0x538fd1(0x13a))||_0x3ad73f[_0x538fd1(0x146)]('ak')||'')['trim']();if(!_0x2bafa4&&_0x3ad73f['nonInteractive'])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x42fbfa=await resolveAuthWriteInput(_0x3ad73f),_0x434913=resolveAuthScopeFlags(_0x3ad73f),_0x212d99=readScopedConfig(_0x434913);_0x212d99[_0x538fd1(0x143)]=_0x42fbfa['accessKey'];_0x42fbfa[_0x538fd1(0x126)]&&(_0x212d99[_0x538fd1(0x126)]=_0x42fbfa[_0x538fd1(0x126)]);writeScopedConfig(_0x212d99,_0x434913);const _0x53e020=_0x434913[_0x538fd1(0x145)]?_0x538fd1(0x145):_0x538fd1(0x136),_0x2860ba=_0x212d99[_0x538fd1(0x126)]?_0x538fd1(0x163)+_0x212d99[_0x538fd1(0x126)]+'.':'';return{'ok':!![],'message':_0x538fd1(0x169)+_0x53e020+'\x20config.'+_0x2860ba+_0x538fd1(0x131)+CLI_BIN_NAME+_0x538fd1(0x182)};}},{'service':a12_0x337401(0x133),'command':a12_0x337401(0x13e),'description':a12_0x337401(0x13c),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x337401(0x13a),'type':a12_0x337401(0x189),'description':a12_0x337401(0x165)},{'name':'ak','type':a12_0x337401(0x189),'description':a12_0x337401(0x16f)},{'name':'env','type':a12_0x337401(0x189),'description':'Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config'},{'name':'global','type':a12_0x337401(0x174),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a12_0x337401(0x136),'type':'boolean','description':a12_0x337401(0x16c),'default':![]}],async 'execute'(_0x121ee3){const _0x45b8ac=a12_0x337401,_0x2f4d60=await resolveAuthWriteInput(_0x121ee3),_0x2b454c=resolveAuthScopeFlags(_0x121ee3),_0x1c883b={'accessKey':_0x2f4d60[_0x45b8ac(0x143)]};_0x2f4d60[_0x45b8ac(0x126)]&&(_0x1c883b[_0x45b8ac(0x126)]=_0x2f4d60[_0x45b8ac(0x126)]);writeScopedConfig(_0x1c883b,_0x2b454c);const _0x493a3a=_0x2b454c[_0x45b8ac(0x145)]?_0x45b8ac(0x145):_0x45b8ac(0x136),_0x39ff05=_0x1c883b['env']?_0x45b8ac(0x163)+_0x1c883b[_0x45b8ac(0x126)]+'.':'';return{'ok':!![],'message':_0x45b8ac(0x183)+_0x493a3a+_0x45b8ac(0x151)+_0x39ff05+_0x45b8ac(0x131)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a12_0x337401(0x133),'command':a12_0x337401(0x12d),'description':a12_0x337401(0x179),'risk':a12_0x337401(0x15d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x337401(0x145),'type':a12_0x337401(0x174),'description':a12_0x337401(0x15a),'default':!![]},{'name':a12_0x337401(0x136),'type':a12_0x337401(0x174),'description':a12_0x337401(0x128),'default':![]}],async 'execute'(_0x29fdd3){const _0x30517b=a12_0x337401,_0x38d7fe=resolveAuthScopeFlags(_0x29fdd3),_0x2d3f4b=readScopedConfig(_0x38d7fe),_0x1cacb8=!!_0x2d3f4b[_0x30517b(0x143)];delete _0x2d3f4b[_0x30517b(0x143)],writeScopedConfig(_0x2d3f4b,_0x38d7fe);const _0x2d5152=_0x38d7fe[_0x30517b(0x145)]?_0x30517b(0x145):'project';if(_0x1cacb8)return{'ok':!![],'message':'AccessKey\x20cleared\x20from\x20'+_0x2d5152+'\x20config.'};return{'ok':!![],'message':_0x30517b(0x166)+_0x2d5152+_0x30517b(0x17f)};}},{'service':a12_0x337401(0x133),'command':a12_0x337401(0x137),'description':a12_0x337401(0x14c),'risk':a12_0x337401(0x149),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x337401(0x145),'type':a12_0x337401(0x174),'description':a12_0x337401(0x132),'default':!![]},{'name':a12_0x337401(0x136),'type':'boolean','description':a12_0x337401(0x13d),'default':![]},{'name':a12_0x337401(0x167),'type':a12_0x337401(0x174),'description':a12_0x337401(0x12f),'default':![]}],async 'execute'(_0x341ffa){const _0x35e710=a12_0x337401,_0x7079cb=resolveAuthScopeFlags(_0x341ffa),_0x255b03=readScopedConfig(_0x7079cb),_0x41c1c6=productEnvName(_0x35e710(0x178)),_0x40429d=productEnv(_0x35e710(0x178))||undefined,_0x2da227=_0x255b03[_0x35e710(0x143)]||undefined,_0x3d4a4d=_0x40429d||_0x2da227,_0x4cface=_0x40429d?_0x41c1c6+_0x35e710(0x18a):_0x2da227?(_0x7079cb['global']?_0x35e710(0x145):_0x35e710(0x136))+_0x35e710(0x171):null,_0x57ff60=['Auth\x20mode:\x20'+AUTH_MODE[_0x35e710(0x14b)]];if(_0x3d4a4d){const _0x494998=_0x3d4a4d[_0x35e710(0x170)]>0x8?''+_0x3d4a4d[_0x35e710(0x139)](0x0,0x8)+'*'['repeat'](_0x3d4a4d['length']-0x8):_0x3d4a4d;_0x57ff60[_0x35e710(0x16d)](_0x35e710(0x12e)+_0x494998+(_0x4cface?_0x35e710(0x177)+_0x4cface+')':'')),_0x57ff60[_0x35e710(0x16d)]('Status:\x20valid');}if(!_0x3d4a4d){_0x57ff60[_0x35e710(0x16d)](''),_0x57ff60['push'](_0x35e710(0x160)),_0x57ff60[_0x35e710(0x16d)](''),_0x57ff60['push'](_0x35e710(0x16e)+CLI_BIN_NAME+_0x35e710(0x14e)),_0x57ff60[_0x35e710(0x16d)](''),_0x57ff60[_0x35e710(0x16d)](_0x35e710(0x185)+PRODUCT_CONFIG[_0x35e710(0x14f)]+')'),_0x57ff60[_0x35e710(0x16d)](_0x35e710(0x154)),_0x57ff60[_0x35e710(0x16d)](''),_0x57ff60[_0x35e710(0x16d)](_0x35e710(0x176)),_0x57ff60[_0x35e710(0x16d)]('\x20\x20export\x20'+_0x41c1c6+_0x35e710(0x172)),_0x57ff60[_0x35e710(0x16d)](''),_0x57ff60['push'](_0x35e710(0x150)+CLI_BIN_NAME+_0x35e710(0x182)),_0x57ff60[_0x35e710(0x16d)](_0x35e710(0x161)+CLI_BIN_NAME+'\x20doctor');if(_0x341ffa['bool'](_0x35e710(0x167))){const _0x33c637=readStoredDeviceCode();if(_0x33c637&&!isStoredDeviceCodeExpired(_0x33c637)){const _0x543193=getUserDomain(),_0x557473=await fetchDeviceToken(_0x543193,_0x33c637[_0x35e710(0x14a)]);if(_0x557473[_0x35e710(0x137)]===_0x35e710(0x144)&&_0x557473[_0x35e710(0x125)]){const _0x207f12={'global':_0x33c637['scope']==='global'},_0x1e13e3=readScopedConfig(_0x207f12);_0x1e13e3[_0x35e710(0x143)]=_0x557473['access_key'],writeScopedConfig(_0x1e13e3,_0x207f12),deleteStoredDeviceCode();const _0xeedf79=_0x557473['access_key'],_0x320959=_0xeedf79[_0x35e710(0x170)]>0x8?''+_0xeedf79[_0x35e710(0x139)](0x0,0x8)+'*'[_0x35e710(0x186)](_0xeedf79[_0x35e710(0x170)]-0x8):_0xeedf79,_0x69122f=_0x33c637[_0x35e710(0x168)]===_0x35e710(0x145)?_0x35e710(0x148):_0x35e710(0x17d);return{'ok':!![],'message':[_0x35e710(0x15f)+AUTH_MODE['ClientAk'],_0x35e710(0x12e)+_0x320959+_0x35e710(0x177)+_0x69122f+')',_0x35e710(0x153)][_0x35e710(0x15e)]('\x0a')};}_0x557473['status']===_0x35e710(0x127)&&deleteStoredDeviceCode();throw CliErrors['authRequired'](_0x35e710(0x15c));}throw CliErrors['authRequired'](_0x57ff60[_0x35e710(0x15e)]('\x0a'));}}return{'ok':!![],'message':_0x57ff60['join']('\x0a')};}},{'service':'auth','command':a12_0x337401(0x12a),'description':a12_0x337401(0x18b),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0xb1effd){const _0xbc21e5=a12_0x337401,_0x2d0235=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x2d0235,'meta':{'env':_0xb1effd[_0xbc21e5(0x175)]??_0xbc21e5(0x12b)}}};}},authDeviceDefinition];
@@ -1 +1 @@
1
- (function(_0x583f6f,_0x6a2e4e){const _0x3b633e=a13_0x1528,_0x2d7213=_0x583f6f();while(!![]){try{const _0x1e065d=parseInt(_0x3b633e(0x138))/0x1*(-parseInt(_0x3b633e(0x129))/0x2)+-parseInt(_0x3b633e(0x131))/0x3+parseInt(_0x3b633e(0x133))/0x4+parseInt(_0x3b633e(0x12d))/0x5*(-parseInt(_0x3b633e(0x127))/0x6)+parseInt(_0x3b633e(0x132))/0x7*(-parseInt(_0x3b633e(0x12e))/0x8)+parseInt(_0x3b633e(0x130))/0x9+parseInt(_0x3b633e(0x136))/0xa;if(_0x1e065d===_0x6a2e4e)break;else _0x2d7213['push'](_0x2d7213['shift']());}catch(_0x3a3652){_0x2d7213['push'](_0x2d7213['shift']());}}}(a13_0x2f75,0xcebf9));import{createInterface}from'node:readline';function a13_0x1528(_0xc0f3a9,_0x2820b1){_0xc0f3a9=_0xc0f3a9-0x126;const _0x2f75df=a13_0x2f75();let _0x152892=_0x2f75df[_0xc0f3a9];return _0x152892;}class AbortPrompt extends Error{constructor(){const _0x205265=a13_0x1528;super('User\x20aborted\x20prompt'),this['name']=_0x205265(0x134);}}function createSafeRl(){const _0x5a3b77=a13_0x1528,_0x227fdd=createInterface({'input':process[_0x5a3b77(0x139)],'output':process[_0x5a3b77(0x13b)]});let _0x29de66;const _0x5225c1=new Promise((_0x20f988,_0xbb51a1)=>{const _0x1d17ac=_0x5a3b77;_0x29de66=()=>{const _0x10ac60=a13_0x1528;_0x29de66&&(_0x227fdd['removeListener'](_0x10ac60(0x12a),_0x29de66),_0x29de66=undefined);try{_0x227fdd[_0x10ac60(0x126)]();}catch{}_0xbb51a1(new AbortPrompt());},_0x227fdd[_0x1d17ac(0x13a)]('SIGINT',_0x29de66);}),_0x12509f=()=>{const _0x58a459=_0x5a3b77;_0x29de66&&(_0x227fdd[_0x58a459(0x12c)](_0x58a459(0x12a),_0x29de66),_0x29de66=undefined);try{_0x227fdd[_0x58a459(0x126)]();}catch{}};return{'rl':_0x227fdd,'abortPromise':_0x5225c1,'disposeSuccess':_0x12509f};}export async function promptAccessKey(_0x2d8bf9=''){const _0x1222a=a13_0x1528,{rl:_0x120390,abortPromise:_0x27f8b3,disposeSuccess:_0x4a9d1a}=createSafeRl(),_0x29d7d=new Promise(_0x116667=>{const _0x4479ae=a13_0x1528,_0x4603d0=_0x2d8bf9?_0x4479ae(0x135)+_0x2d8bf9+_0x4479ae(0x12f):'AccessKey\x20(paste\x20ak_...):\x20';_0x120390['question'](_0x4603d0,_0x2acad2=>{const _0xeffd65=_0x4479ae;_0x4a9d1a(),_0x116667(_0x2acad2[_0xeffd65(0x128)]()||_0x2d8bf9);});});return Promise[_0x1222a(0x12b)]([_0x29d7d,_0x27f8b3]);}export function isAbortPrompt(_0x4f12c0){const _0x7e3c36=a13_0x1528;return _0x4f12c0 instanceof Error&&_0x4f12c0[_0x7e3c36(0x137)]===_0x7e3c36(0x134);}function a13_0x2f75(){const _0x1e7d9d=['AccessKey\x20(','28638040ZqDbGG','name','23kHIVqW','stdin','once','stdout','close','6JoTMUq','trim','141326CeKxuR','SIGINT','race','removeListener','3393620XieTKm','496iggOlW','):\x20','10792701FRnvMV','5080401TtWBwd','89068JFgnhF','6280704xiWLxm','AbortPrompt'];a13_0x2f75=function(){return _0x1e7d9d;};return a13_0x2f75();}
1
+ function a13_0x384f(){const _0x5990ca=['995207pJrWkX','close','stdin','AccessKey\x20(paste\x20ak_...):\x20','SIGINT','removeListener','stdout','question','User\x20aborted\x20prompt','AbortPrompt','147964dsQbQD','2512314CIjzDw','race','3504690PQGBjH','168396GuOWBK','24HGjkTj','930fvyMBV','45mSZkKa','10573570zRTgRK','16295CmurXk','AccessKey\x20(','once','11mOkTZu'];a13_0x384f=function(){return _0x5990ca;};return a13_0x384f();}(function(_0xe61812,_0x335ad2){const _0x8725f=a13_0x205c,_0x498fa3=_0xe61812();while(!![]){try{const _0x6e54ee=parseInt(_0x8725f(0x1cc))/0x1+parseInt(_0x8725f(0x1c3))/0x2+-parseInt(_0x8725f(0x1c6))/0x3*(parseInt(_0x8725f(0x1bf))/0x4)+parseInt(_0x8725f(0x1c8))/0x5*(parseInt(_0x8725f(0x1c5))/0x6)+-parseInt(_0x8725f(0x1c2))/0x7+-parseInt(_0x8725f(0x1c4))/0x8*(parseInt(_0x8725f(0x1c0))/0x9)+-parseInt(_0x8725f(0x1c7))/0xa*(-parseInt(_0x8725f(0x1cb))/0xb);if(_0x6e54ee===_0x335ad2)break;else _0x498fa3['push'](_0x498fa3['shift']());}catch(_0x5e7f6f){_0x498fa3['push'](_0x498fa3['shift']());}}}(a13_0x384f,0xb6d86));import{createInterface}from'node:readline';function a13_0x205c(_0x84b5b0,_0x1c7112){_0x84b5b0=_0x84b5b0-0x1b7;const _0x384f5d=a13_0x384f();let _0x205cee=_0x384f5d[_0x84b5b0];return _0x205cee;}class AbortPrompt extends Error{constructor(){const _0x146092=a13_0x205c;super(_0x146092(0x1bd)),this['name']='AbortPrompt';}}function createSafeRl(){const _0x179f2d=a13_0x205c,_0x484549=createInterface({'input':process[_0x179f2d(0x1b7)],'output':process[_0x179f2d(0x1bb)]});let _0x153577;const _0x4e9c83=new Promise((_0x11aff9,_0x48f6f1)=>{const _0x2d282c=_0x179f2d;_0x153577=()=>{_0x153577&&(_0x484549['removeListener']('SIGINT',_0x153577),_0x153577=undefined);try{_0x484549['close']();}catch{}_0x48f6f1(new AbortPrompt());},_0x484549[_0x2d282c(0x1ca)](_0x2d282c(0x1b9),_0x153577);}),_0x499fa7=()=>{const _0x8742e6=_0x179f2d;_0x153577&&(_0x484549[_0x8742e6(0x1ba)](_0x8742e6(0x1b9),_0x153577),_0x153577=undefined);try{_0x484549[_0x8742e6(0x1cd)]();}catch{}};return{'rl':_0x484549,'abortPromise':_0x4e9c83,'disposeSuccess':_0x499fa7};}export async function promptAccessKey(_0x445df2=''){const _0x114096=a13_0x205c,{rl:_0x7a1c8d,abortPromise:_0x28ac5a,disposeSuccess:_0x34ebae}=createSafeRl(),_0x187d82=new Promise(_0x3be206=>{const _0x32ced5=a13_0x205c,_0x4a1ec4=_0x445df2?_0x32ced5(0x1c9)+_0x445df2+'):\x20':_0x32ced5(0x1b8);_0x7a1c8d[_0x32ced5(0x1bc)](_0x4a1ec4,_0x3925e4=>{_0x34ebae(),_0x3be206(_0x3925e4['trim']()||_0x445df2);});});return Promise[_0x114096(0x1c1)]([_0x187d82,_0x28ac5a]);}export function isAbortPrompt(_0x53ffbb){const _0x2f2495=a13_0x205c;return _0x53ffbb instanceof Error&&_0x53ffbb['name']===_0x2f2495(0x1be);}
@@ -1 +1 @@
1
- const a14_0x488733=a14_0x2950;(function(_0x295c6d,_0x3a64f8){const _0x28fa94=a14_0x2950,_0x128298=_0x295c6d();while(!![]){try{const _0x35ca0a=parseInt(_0x28fa94(0x1c9))/0x1*(parseInt(_0x28fa94(0x1c6))/0x2)+-parseInt(_0x28fa94(0x1c3))/0x3+parseInt(_0x28fa94(0x1c1))/0x4*(parseInt(_0x28fa94(0x1c2))/0x5)+parseInt(_0x28fa94(0x1bf))/0x6+-parseInt(_0x28fa94(0x1ce))/0x7*(-parseInt(_0x28fa94(0x1c7))/0x8)+-parseInt(_0x28fa94(0x1ba))/0x9*(-parseInt(_0x28fa94(0x1c4))/0xa)+-parseInt(_0x28fa94(0x1bd))/0xb*(parseInt(_0x28fa94(0x1c8))/0xc);if(_0x35ca0a===_0x3a64f8)break;else _0x128298['push'](_0x128298['shift']());}catch(_0x4f1df8){_0x128298['push'](_0x128298['shift']());}}}(a14_0x466b,0x31b25));import{getBffEndpointContract}from'../../core/api-client.js';function a14_0x2950(_0x1e9604,_0xe360b0){_0x1e9604=_0x1e9604-0x1b9;const _0x466ba7=a14_0x466b();let _0x295096=_0x466ba7[_0x1e9604];return _0x295096;}function a14_0x466b(){const _0x435001=['functionName','name','185353kxkqnV','description','335313cFrpRD','version','appCode','22ABDzRB','str','2363862Pvqjwv','Get\x20a\x20BFF\x20endpoint\x20contract\x20by\x20function\x20name','16CJawcN','450620DoLjVM','1086144breHKC','10wZWbhC','read','13922cyqNcK','16DSDbEE','2133924fvvPAB','11gaBDxP','bff','gmtModified'];a14_0x466b=function(){return _0x435001;};return a14_0x466b();}import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a14_0x488733(0x1ca),'command':'detail','description':a14_0x488733(0x1c0),'risk':a14_0x488733(0x1c5),'flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name'}],async 'execute'(_0x2a8568){const _0x5d61d9=a14_0x488733,_0x3509ca=await getBffEndpointContract(_0x2a8568[_0x5d61d9(0x1bc)],_0x2a8568[_0x5d61d9(0x1be)](_0x5d61d9(0x1cd)));return{'ok':!![],'data':{'appCode':_0x3509ca[_0x5d61d9(0x1bc)],'functionName':_0x3509ca[_0x5d61d9(0x1cc)],'description':_0x3509ca[_0x5d61d9(0x1b9)]||'(none)','version':_0x3509ca[_0x5d61d9(0x1bb)],'gmtModified':_0x3509ca[_0x5d61d9(0x1cb)]}};}};
1
+ function a14_0x3132(_0xa39690,_0x3aadc4){_0xa39690=_0xa39690-0xbf;const _0x3bf33b=a14_0x3bf3();let _0x31328e=_0x3bf33b[_0xa39690];return _0x31328e;}const a14_0x5eb271=a14_0x3132;(function(_0x42325b,_0x231be1){const _0x196ba1=a14_0x3132,_0x2a4753=_0x42325b();while(!![]){try{const _0x1cdcfc=parseInt(_0x196ba1(0xce))/0x1*(-parseInt(_0x196ba1(0xc9))/0x2)+-parseInt(_0x196ba1(0xc2))/0x3+parseInt(_0x196ba1(0xc3))/0x4*(-parseInt(_0x196ba1(0xd3))/0x5)+parseInt(_0x196ba1(0xcc))/0x6*(-parseInt(_0x196ba1(0xc7))/0x7)+-parseInt(_0x196ba1(0xbf))/0x8*(parseInt(_0x196ba1(0xc5))/0x9)+-parseInt(_0x196ba1(0xc1))/0xa+parseInt(_0x196ba1(0xcf))/0xb;if(_0x1cdcfc===_0x231be1)break;else _0x2a4753['push'](_0x2a4753['shift']());}catch(_0x50e8f1){_0x2a4753['push'](_0x2a4753['shift']());}}}(a14_0x3bf3,0xe14dd));import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';function a14_0x3bf3(){const _0xe23508=['description','1026auROmM','(none)','35VuYpgP','77502194KsTjbO','bff','version','functionName','202780NfWVPZ','name','458536ShDAnt','BFF\x20function\x20name','6977620tLXdQc','216954LPIrAv','140uCSyUT','gmtModified','279CPqImP','read','66479nRzKBW','appCode','30426jFlBfE','Get\x20a\x20BFF\x20endpoint\x20contract\x20by\x20function\x20name'];a14_0x3bf3=function(){return _0xe23508;};return a14_0x3bf3();}export const bffDetail={'service':a14_0x5eb271(0xd0),'command':'detail','description':a14_0x5eb271(0xca),'risk':a14_0x5eb271(0xc6),'flags':[{...NAME_FLAG,'required':!![],'description':a14_0x5eb271(0xc0)}],async 'execute'(_0x200a8c){const _0xcd036d=a14_0x5eb271,_0x2d05fb=await getBffEndpointContract(_0x200a8c[_0xcd036d(0xc8)],_0x200a8c['str'](_0xcd036d(0xd4)));return{'ok':!![],'data':{'appCode':_0x2d05fb[_0xcd036d(0xc8)],'functionName':_0x2d05fb[_0xcd036d(0xd2)],'description':_0x2d05fb[_0xcd036d(0xcb)]||_0xcd036d(0xcd),'version':_0x2d05fb[_0xcd036d(0xd1)],'gmtModified':_0x2d05fb[_0xcd036d(0xc4)]}};}};
@@ -1 +1 @@
1
- const a15_0x22a680=a15_0x1215;(function(_0x3404a7,_0x272af3){const _0x3d5ad5=a15_0x1215,_0x18f2a6=_0x3404a7();while(!![]){try{const _0x4a0e67=parseInt(_0x3d5ad5(0x97))/0x1+-parseInt(_0x3d5ad5(0x8c))/0x2+-parseInt(_0x3d5ad5(0x9d))/0x3*(-parseInt(_0x3d5ad5(0x8e))/0x4)+parseInt(_0x3d5ad5(0x90))/0x5*(-parseInt(_0x3d5ad5(0x95))/0x6)+parseInt(_0x3d5ad5(0x9a))/0x7*(-parseInt(_0x3d5ad5(0x9b))/0x8)+-parseInt(_0x3d5ad5(0x99))/0x9+-parseInt(_0x3d5ad5(0x94))/0xa*(-parseInt(_0x3d5ad5(0x9e))/0xb);if(_0x4a0e67===_0x272af3)break;else _0x18f2a6['push'](_0x18f2a6['shift']());}catch(_0x429050){_0x18f2a6['push'](_0x18f2a6['shift']());}}}(a15_0x4bf2,0xa6b70));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a15_0x1215(_0x2cd914,_0x272617){_0x2cd914=_0x2cd914-0x8b;const _0x4bf252=a15_0x4bf2();let _0x1215e8=_0x4bf252[_0x2cd914];return _0x1215e8;}function a15_0x4bf2(){const _0x3f1223=['str','807455AukMqa','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','8575326NTsoxc','399XffxWj','132592nCRzMC','read','3VlyGit','88QoQoEY','name','356136IeZtOm','bff','3250844ZWAdBB','now','2035mdBTdN','BFF\x20function\x20name\x20to\x20execute','BFF\x20executed\x20in\x20','exec','2026250OmDGhV','7116uwWquS'];a15_0x4bf2=function(){return _0x3f1223;};return a15_0x4bf2();}export const bffExec={'service':a15_0x22a680(0x8d),'command':a15_0x22a680(0x93),'description':a15_0x22a680(0x98),'risk':a15_0x22a680(0x9c),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x22a680(0x91)},PARAMS_FLAG],async 'execute'(_0x11efc5){const _0x91602b=a15_0x22a680,_0x55c4bd=parseJsonParams(_0x11efc5['str']('params')),_0x315a92=Date[_0x91602b(0x8f)](),_0x46e5ed=await executeSdkBff(_0x11efc5[_0x91602b(0x96)](_0x91602b(0x8b)),_0x55c4bd),_0x28f19e=Date[_0x91602b(0x8f)]()-_0x315a92;return{'ok':!![],'data':{'result':_0x46e5ed,'elapsed':_0x28f19e},'message':_0x91602b(0x92)+_0x28f19e+'ms'};}};
1
+ function a15_0x294f(){const _0x355c01=['95155cBWcYb','exec','90xpPBBT','4175048NzwkNN','11jXYryk','28kNCoUA','bff','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','18ZEYhHv','11516664fBUJzb','BFF\x20function\x20name\x20to\x20execute','13wCZWXE','read','11081gXmngV','str','3018IOZXhX','27312KOmIMe','161705ghDuYE','now','11274210TGBRJV'];a15_0x294f=function(){return _0x355c01;};return a15_0x294f();}const a15_0x46e87c=a15_0x8b6e;function a15_0x8b6e(_0x47dd52,_0x599dcf){_0x47dd52=_0x47dd52-0xca;const _0x294f50=a15_0x294f();let _0x8b6e08=_0x294f50[_0x47dd52];return _0x8b6e08;}(function(_0x224228,_0x3f198f){const _0x19524f=a15_0x8b6e,_0x27a93a=_0x224228();while(!![]){try{const _0x4475f=-parseInt(_0x19524f(0xda))/0x1+parseInt(_0x19524f(0xcb))/0x2*(parseInt(_0x19524f(0xd9))/0x3)+parseInt(_0x19524f(0xce))/0x4*(parseInt(_0x19524f(0xdd))/0x5)+-parseInt(_0x19524f(0xd8))/0x6*(parseInt(_0x19524f(0xd6))/0x7)+-parseInt(_0x19524f(0xcc))/0x8*(parseInt(_0x19524f(0xd1))/0x9)+parseInt(_0x19524f(0xdc))/0xa*(parseInt(_0x19524f(0xcd))/0xb)+parseInt(_0x19524f(0xd2))/0xc*(parseInt(_0x19524f(0xd4))/0xd);if(_0x4475f===_0x3f198f)break;else _0x27a93a['push'](_0x27a93a['shift']());}catch(_0x189692){_0x27a93a['push'](_0x27a93a['shift']());}}}(a15_0x294f,0x99664));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_0x46e87c(0xcf),'command':a15_0x46e87c(0xca),'description':a15_0x46e87c(0xd0),'risk':a15_0x46e87c(0xd5),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x46e87c(0xd3)},PARAMS_FLAG],async 'execute'(_0xcb90d6){const _0x212b4f=a15_0x46e87c,_0x3061cd=parseJsonParams(_0xcb90d6[_0x212b4f(0xd7)]('params')),_0x31c32f=Date[_0x212b4f(0xdb)](),_0x2a38b6=await executeSdkBff(_0xcb90d6['str']('name'),_0x3061cd),_0x2f684b=Date[_0x212b4f(0xdb)]()-_0x31c32f;return{'ok':!![],'data':{'result':_0x2a38b6,'elapsed':_0x2f684b},'message':'BFF\x20executed\x20in\x20'+_0x2f684b+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x2fee72,_0x965f0b){const _0x5a4a25=a16_0x1b95,_0x1e5ddf=_0x2fee72();while(!![]){try{const _0x850182=parseInt(_0x5a4a25(0x1e7))/0x1+parseInt(_0x5a4a25(0x1e5))/0x2+parseInt(_0x5a4a25(0x1ea))/0x3+-parseInt(_0x5a4a25(0x1e6))/0x4*(-parseInt(_0x5a4a25(0x1ec))/0x5)+-parseInt(_0x5a4a25(0x1e9))/0x6+-parseInt(_0x5a4a25(0x1e8))/0x7+parseInt(_0x5a4a25(0x1e4))/0x8*(-parseInt(_0x5a4a25(0x1eb))/0x9);if(_0x850182===_0x965f0b)break;else _0x1e5ddf['push'](_0x1e5ddf['shift']());}catch(_0x1d64e6){_0x1e5ddf['push'](_0x1e5ddf['shift']());}}}(a16_0x3eef,0x443d4));import{bffDetail}from'../../commands/bff/detail.js';function a16_0x3eef(){const _0x558c7a=['469836gzpcgA','484460DdgLMA','2754577uVqrkW','2169510wFnrai','914250hvnvQN','5507991cjaYhF','20TAVntS','8UKhIuo','775114zPwCdN'];a16_0x3eef=function(){return _0x558c7a;};return a16_0x3eef();}function a16_0x1b95(_0x54ad08,_0x12a74c){_0x54ad08=_0x54ad08-0x1e4;const _0x3eef9b=a16_0x3eef();let _0x1b9502=_0x3eef9b[_0x54ad08];return _0x1b9502;}import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
1
+ (function(_0xe64938,_0x3163ad){const _0x16c8f4=a16_0xcfcc,_0x305f9a=_0xe64938();while(!![]){try{const _0x13ecf0=parseInt(_0x16c8f4(0x19d))/0x1*(-parseInt(_0x16c8f4(0x19c))/0x2)+-parseInt(_0x16c8f4(0x196))/0x3+parseInt(_0x16c8f4(0x19b))/0x4+parseInt(_0x16c8f4(0x199))/0x5+parseInt(_0x16c8f4(0x198))/0x6+-parseInt(_0x16c8f4(0x19a))/0x7+parseInt(_0x16c8f4(0x197))/0x8;if(_0x13ecf0===_0x3163ad)break;else _0x305f9a['push'](_0x305f9a['shift']());}catch(_0x2a3ddf){_0x305f9a['push'](_0x305f9a['shift']());}}}(a16_0x1895,0x9afbb));function a16_0xcfcc(_0x88ec15,_0x4bf575){_0x88ec15=_0x88ec15-0x196;const _0x189556=a16_0x1895();let _0xcfccad=_0x189556[_0x88ec15];return _0xcfccad;}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a16_0x1895(){const _0x7d910b=['595750XAWCHz','3732827ZakoxL','2353844DrSHYi','209176TrpOMC','11YuSdbo','1518090ZcupyZ','15072312JsRSBu','1397520ezyIgi'];a16_0x1895=function(){return _0x7d910b;};return a16_0x1895();}export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- const a17_0x16d66d=a17_0x2dee;(function(_0x3e87cc,_0x44b521){const _0x6de4a2=a17_0x2dee,_0x59815d=_0x3e87cc();while(!![]){try{const _0x2ec03d=parseInt(_0x6de4a2(0x187))/0x1+parseInt(_0x6de4a2(0x194))/0x2+parseInt(_0x6de4a2(0x18c))/0x3+-parseInt(_0x6de4a2(0x18f))/0x4+-parseInt(_0x6de4a2(0x183))/0x5*(-parseInt(_0x6de4a2(0x196))/0x6)+-parseInt(_0x6de4a2(0x191))/0x7+-parseInt(_0x6de4a2(0x18a))/0x8;if(_0x2ec03d===_0x44b521)break;else _0x59815d['push'](_0x59815d['shift']());}catch(_0x369f4e){_0x59815d['push'](_0x59815d['shift']());}}}(a17_0x3660,0x85a97));function a17_0x3660(){const _0xd099da=['cwd','skipped','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','info','55cxoWms','Skipped\x20npx\x20(','\x20-g\x20-y)...','log','804163AoKbaq','cli-skill-install','install','8523896vhtXwQ','unknown','2093505twymNN','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','write','4290416QDdgmb','inherit','805665XmzDjd','npx\x20skills\x20add\x20failed:\x20','\x20-g\x20-y','798416rJbqTh','CLI\x20Built-in\x20Skill\x20installed','490614myrBYw','../../skills/npx-skills-add.js','nonInteractive'];a17_0x3660=function(){return _0xd099da;};return a17_0x3660();}import{CliErrors}from'../../errors.js';function a17_0x2dee(_0x46e8a5,_0x1ca059){_0x46e8a5=_0x46e8a5-0x17d;const _0x36600d=a17_0x3660();let _0x2dee28=_0x36600d[_0x46e8a5];return _0x2dee28;}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':a17_0x16d66d(0x189),'description':'Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','risk':a17_0x16d66d(0x18e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1b92a6){const _0x30b29e=a17_0x16d66d;logger['setLogPath'](process[_0x30b29e(0x17f)]()),logger[_0x30b29e(0x182)](_0x30b29e(0x188),'Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.');const {LOVRABET_SKILL_SOURCE:_0x3184af,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x3b7ad9,runNpxSkillsAddGlobal:_0x852990}=await import(_0x30b29e(0x17d)),_0x3203f3=_0x1b92a6[_0x30b29e(0x17e)]?'pipe':_0x30b29e(0x190);console[_0x30b29e(0x186)]('Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20'+_0x3184af+_0x30b29e(0x185));const _0x30f274=_0x852990(process[_0x30b29e(0x17f)](),_0x3184af,{'stdio':_0x3203f3});if(_0x30f274[_0x30b29e(0x180)])console[_0x30b29e(0x186)](_0x30b29e(0x184)+_0x3b7ad9+_0x30b29e(0x181));else{if(_0x30f274['ok'])console['log'](_0x30b29e(0x195));else throw CliErrors['apiError'](_0x30b29e(0x192)+(_0x30f274['error']||_0x30b29e(0x18b)),_0x30b29e(0x18d)+_0x3184af+_0x30b29e(0x193));}return{'ok':!![]};}}];
1
+ const a17_0x58f123=a17_0x5f56;(function(_0x213cc3,_0x28bebb){const _0x61f474=a17_0x5f56,_0x47434d=_0x213cc3();while(!![]){try{const _0x5a932c=-parseInt(_0x61f474(0x1da))/0x1+parseInt(_0x61f474(0x1d6))/0x2+parseInt(_0x61f474(0x1e0))/0x3*(-parseInt(_0x61f474(0x1c9))/0x4)+-parseInt(_0x61f474(0x1de))/0x5*(-parseInt(_0x61f474(0x1c5))/0x6)+parseInt(_0x61f474(0x1cc))/0x7+parseInt(_0x61f474(0x1d1))/0x8+parseInt(_0x61f474(0x1e3))/0x9*(-parseInt(_0x61f474(0x1e1))/0xa);if(_0x5a932c===_0x28bebb)break;else _0x47434d['push'](_0x47434d['shift']());}catch(_0x613ae8){_0x47434d['push'](_0x47434d['shift']());}}}(a17_0x1c30,0x453bb));function a17_0x1c30(){const _0x2f8079=['../../skills/npx-skills-add.js','cli-skill-install','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','505336nQaCvF','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','log','CLI\x20Built-in\x20Skill\x20installed','1008078HCAQxJ','install','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','\x20-g\x20-y)...','174928UKDFxh','error','info','npx\x20skills\x20add\x20failed:\x20','55915OxTBmk','Skipped\x20npx\x20(','595677gTxNPe','10bHlYxI','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','93033gMxGxp','cwd','cli-skill','12VIibPg','apiError','unknown','write','4kbTAOy','setLogPath','nonInteractive','544817fubDwz','skipped'];a17_0x1c30=function(){return _0x2f8079;};return a17_0x1c30();}function a17_0x5f56(_0xfb0588,_0x39f2ef){_0xfb0588=_0xfb0588-0x1c4;const _0x1c309c=a17_0x1c30();let _0x5f560d=_0x1c309c[_0xfb0588];return _0x5f560d;}import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a17_0x58f123(0x1c4),'command':a17_0x58f123(0x1d7),'description':a17_0x58f123(0x1d2),'risk':a17_0x58f123(0x1c8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x211f09){const _0x34583d=a17_0x58f123;logger[_0x34583d(0x1ca)](process[_0x34583d(0x1e4)]()),logger[_0x34583d(0x1dc)](_0x34583d(0x1cf),_0x34583d(0x1d8));const {LOVRABET_SKILL_SOURCE:_0x5d4948,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x385a19,runNpxSkillsAddGlobal:_0x4ee177}=await import(_0x34583d(0x1ce)),_0x190cee=_0x211f09[_0x34583d(0x1cb)]?'pipe':'inherit';console[_0x34583d(0x1d4)](_0x34583d(0x1d0)+_0x5d4948+_0x34583d(0x1d9));const _0x273d74=_0x4ee177(process[_0x34583d(0x1e4)](),_0x5d4948,{'stdio':_0x190cee});if(_0x273d74[_0x34583d(0x1cd)])console[_0x34583d(0x1d4)](_0x34583d(0x1df)+_0x385a19+_0x34583d(0x1d3));else{if(_0x273d74['ok'])console['log'](_0x34583d(0x1d5));else throw CliErrors[_0x34583d(0x1c6)](_0x34583d(0x1dd)+(_0x273d74[_0x34583d(0x1db)]||_0x34583d(0x1c7)),_0x34583d(0x1e2)+_0x5d4948+'\x20-g\x20-y');}return{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x13547a,_0x483181){const _0x222f3b=a18_0xf44e,_0x46d3ac=_0x13547a();while(!![]){try{const _0x2d5018=parseInt(_0x222f3b(0x188))/0x1+parseInt(_0x222f3b(0x193))/0x2+-parseInt(_0x222f3b(0x191))/0x3*(parseInt(_0x222f3b(0x185))/0x4)+-parseInt(_0x222f3b(0x18a))/0x5*(-parseInt(_0x222f3b(0x18f))/0x6)+-parseInt(_0x222f3b(0x187))/0x7+-parseInt(_0x222f3b(0x195))/0x8+-parseInt(_0x222f3b(0x18c))/0x9*(-parseInt(_0x222f3b(0x181))/0xa);if(_0x2d5018===_0x483181)break;else _0x46d3ac['push'](_0x46d3ac['shift']());}catch(_0x47c213){_0x46d3ac['push'](_0x46d3ac['shift']());}}}(a18_0x5b08,0x63bf1));import{CLI_BIN_NAME}from'../../constant/cli.js';function a18_0xf44e(_0x2eec8d,_0x1cd1a4){_0x2eec8d=_0x2eec8d-0x181;const _0x5b08eb=a18_0x5b08();let _0xf44eeb=_0x5b08eb[_0x2eec8d];return _0xf44eeb;}import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x567dcd){const _0x5d3db3=a18_0xf44e,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x2acd93}=_0x567dcd;if(explicitGlobal&&explicitProject)throw CliErrors['validation']('Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.',_0x5d3db3(0x18d));if(explicitGlobal)return _0x5d3db3(0x190);if(explicitProject)return _0x5d3db3(0x182);switch(_0x2acd93){case _0x5d3db3(0x189):return _0x5d3db3(0x190);case'project-default':return _0x567dcd[_0x5d3db3(0x18b)]??isInProject()?_0x5d3db3(0x182):_0x5d3db3(0x190);case'project-or-global-explicit':if(!(_0x567dcd[_0x5d3db3(0x18b)]??isInProject()))throw CliErrors[_0x5d3db3(0x184)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG[_0x5d3db3(0x186)]+_0x5d3db3(0x183),'Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG['newConfigFileName']+_0x5d3db3(0x18e)+CLI_BIN_NAME+_0x5d3db3(0x194));return'project';}}export function toScopeFlags(_0x487542){const _0x2d4089=a18_0xf44e;return{'global':_0x487542===_0x2d4089(0x190)};}function a18_0x5b08(){const _0x3e2a37=['project','\x20found).','validation','12HXUkSX','newConfigFileName','4096372cQlUVF','435024VUQBDU','global-default','625PIDHNH','inProject','288sTzPMc','Use\x20only\x20one\x20config\x20scope\x20flag.',',\x20or\x20run\x20`','5448pYQSpT','global','163341tkrPup','\x20(global)','356472AFQVRy','\x20init`\x20first.','3293680vFSrBk','263140SckMZc'];a18_0x5b08=function(){return _0x3e2a37;};return a18_0x5b08();}export function formatScopeLabel(_0xc3e861){const _0x268a32=a18_0xf44e;return _0xc3e861===_0x268a32(0x190)?_0x268a32(0x192):'';}
1
+ (function(_0x29d203,_0x26d582){const _0x457c98=a18_0x5a6e,_0x4d7624=_0x29d203();while(!![]){try{const _0x2ae48a=parseInt(_0x457c98(0x8e))/0x1*(-parseInt(_0x457c98(0x8a))/0x2)+-parseInt(_0x457c98(0x92))/0x3+-parseInt(_0x457c98(0x99))/0x4*(parseInt(_0x457c98(0x9b))/0x5)+parseInt(_0x457c98(0x9a))/0x6*(-parseInt(_0x457c98(0x98))/0x7)+parseInt(_0x457c98(0x9c))/0x8+-parseInt(_0x457c98(0x87))/0x9*(parseInt(_0x457c98(0x95))/0xa)+parseInt(_0x457c98(0x8d))/0xb;if(_0x2ae48a===_0x26d582)break;else _0x4d7624['push'](_0x4d7624['shift']());}catch(_0x5cb6fb){_0x4d7624['push'](_0x4d7624['shift']());}}}(a18_0x7878,0xceb1e));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';function a18_0x7878(){const _0x4fad60=[',\x20or\x20run\x20`','1503630bGVcLa','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','\x20init`\x20first.','453719Fjlhqg','104FNguIt','114zgBenu','105725IMfnOQ','6781680BkkHHE','newConfigFileName','72kHmIfg','Not\x20inside\x20a\x20project\x20(no\x20','project-default','18fsSMzg','Add\x20--global\x20to\x20write\x20to\x20~/','project','56304347gguSNz','144147KbOzio','validation','global','project-or-global-explicit','2514435EmcMtW','inProject'];a18_0x7878=function(){return _0x4fad60;};return a18_0x7878();}export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';function a18_0x5a6e(_0x86388c,_0x2a19ae){_0x86388c=_0x86388c-0x86;const _0x787873=a18_0x7878();let _0x5a6eb1=_0x787873[_0x86388c];return _0x5a6eb1;}export function resolveConfigScope(_0x2a926c){const _0x58163a=a18_0x5a6e,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x5f19a0}=_0x2a926c;if(explicitGlobal&&explicitProject)throw CliErrors['validation'](_0x58163a(0x96),'Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return _0x58163a(0x90);if(explicitProject)return _0x58163a(0x8c);switch(_0x5f19a0){case'global-default':return'global';case _0x58163a(0x89):return _0x2a926c[_0x58163a(0x93)]??isInProject()?_0x58163a(0x8c):_0x58163a(0x90);case _0x58163a(0x91):if(!(_0x2a926c[_0x58163a(0x93)]??isInProject()))throw CliErrors[_0x58163a(0x8f)](_0x58163a(0x88)+PRODUCT_CONFIG[_0x58163a(0x86)]+'\x20found).',_0x58163a(0x8b)+PRODUCT_CONFIG[_0x58163a(0x86)]+_0x58163a(0x94)+CLI_BIN_NAME+_0x58163a(0x97));return'project';}}export function toScopeFlags(_0x53305a){const _0x1b78e2=a18_0x5a6e;return{'global':_0x53305a===_0x1b78e2(0x90)};}export function formatScopeLabel(_0x281b83){const _0x4524a8=a18_0x5a6e;return _0x281b83===_0x4524a8(0x90)?'\x20(global)':'';}
@@ -1 +1 @@
1
- (function(_0x11a862,_0x46aabe){const _0x13055d=a19_0x51c0,_0x4d669b=_0x11a862();while(!![]){try{const _0xbc71dc=-parseInt(_0x13055d(0xc2))/0x1*(parseInt(_0x13055d(0xac))/0x2)+parseInt(_0x13055d(0xc6))/0x3*(parseInt(_0x13055d(0xbc))/0x4)+-parseInt(_0x13055d(0xb6))/0x5*(parseInt(_0x13055d(0xbf))/0x6)+parseInt(_0x13055d(0xbe))/0x7*(parseInt(_0x13055d(0xb5))/0x8)+-parseInt(_0x13055d(0xb9))/0x9*(-parseInt(_0x13055d(0xb2))/0xa)+parseInt(_0x13055d(0xc1))/0xb*(parseInt(_0x13055d(0xb0))/0xc)+-parseInt(_0x13055d(0xc5))/0xd;if(_0xbc71dc===_0x46aabe)break;else _0x4d669b['push'](_0x4d669b['shift']());}catch(_0x26ac65){_0x4d669b['push'](_0x4d669b['shift']());}}}(a19_0x4189,0x8ede8));function a19_0x4189(){const _0x457507=['95670Eicyrj','At\x20least\x20one\x20of\x20','759hTBTgp','32843rJkjKw','Flags\x20','Remove\x20all\x20but\x20one.','17103190eWtFcY','219BuPhuE','Provide\x20one\x20of:\x20','map','validation','2dUlyKd','\x20are\x20mutually\x20exclusive\x20for\x20`','Only\x20one\x20of\x20','Invalid\x20--','80892DMGXaC','filter','3597010JinWqb','\x20is\x20required\x20for\x20`',':\x20expected\x20','9192zixPeW','40VHdACK',',\x20got\x20\x22','length','9GfcanK','Use\x20only\x20one\x20of:\x20','Exactly\x20one\x20of\x20','62648jUoUNu','str','567ZMjFQn'];a19_0x4189=function(){return _0x457507;};return a19_0x4189();}import{CliErrors}from'../../errors.js';function isSet(_0x495798,_0x602b9f){const _0x511772=_0x495798['flag'](_0x602b9f);return _0x511772!==undefined&&_0x511772!==''&&_0x511772!==![]&&_0x511772!==0x0;}function fmtNames(_0x1f7102){const _0x5c0e4c=a19_0x51c0;return _0x1f7102[_0x5c0e4c(0xc8)](_0x1c63a2=>'--'+_0x1c63a2)['join'](',\x20');}export function requireOneOf(_0x40a8b7,_0x742482,_0x1dc4f9){const _0x2005e5=a19_0x51c0,_0x44eb3e=_0x742482[_0x2005e5(0xb1)](_0x21fca7=>isSet(_0x40a8b7,_0x21fca7));if(_0x44eb3e[_0x2005e5(0xb8)]!==0x1)throw CliErrors['validation'](_0x44eb3e[_0x2005e5(0xb8)]===0x0?_0x2005e5(0xbb)+fmtNames(_0x742482)+'\x20is\x20required\x20for\x20`'+_0x1dc4f9+'`.':_0x2005e5(0xae)+fmtNames(_0x742482)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x44eb3e)+'.',_0x44eb3e[_0x2005e5(0xb8)]===0x0?_0x2005e5(0xc7)+fmtNames(_0x742482):_0x2005e5(0xc4));}export function requireAnyOf(_0x375973,_0x2edeb5,_0x135bd8){const _0x441ec9=a19_0x51c0;if(!_0x2edeb5['some'](_0x4756d0=>isSet(_0x375973,_0x4756d0)))throw CliErrors[_0x441ec9(0xc9)](_0x441ec9(0xc0)+fmtNames(_0x2edeb5)+_0x441ec9(0xb3)+_0x135bd8+'`.',_0x441ec9(0xc7)+fmtNames(_0x2edeb5));}function a19_0x51c0(_0x3b3dca,_0x5beaf4){_0x3b3dca=_0x3b3dca-0xac;const _0x418982=a19_0x4189();let _0x51c06a=_0x418982[_0x3b3dca];return _0x51c06a;}export function mutuallyExclusive(_0x5d86c5,_0x2a92dd,_0x6d642e){const _0x5c80f8=a19_0x51c0,_0x46cec6=_0x2a92dd[_0x5c80f8(0xb1)](_0x5739c8=>isSet(_0x5d86c5,_0x5739c8));if(_0x46cec6['length']>0x1)throw CliErrors['validation'](_0x5c80f8(0xc3)+fmtNames(_0x46cec6)+_0x5c80f8(0xad)+_0x6d642e+'`.',_0x5c80f8(0xba)+fmtNames(_0x2a92dd));}export function validatePattern(_0x4f5c50,_0x492730,_0x54f7ed,_0xdd08ee){const _0x1aae2f=a19_0x51c0,_0x5e2587=_0x4f5c50[_0x1aae2f(0xbd)](_0x492730);if(_0x5e2587&&!_0x54f7ed['test'](_0x5e2587))throw CliErrors[_0x1aae2f(0xc9)](_0x1aae2f(0xaf)+_0x492730+_0x1aae2f(0xb4)+_0xdd08ee+_0x1aae2f(0xb7)+_0x5e2587+'\x22.');}
1
+ function a19_0x192c(){const _0x3edbd2=['\x20is\x20allowed,\x20found:\x20','filter','validation','Exactly\x20one\x20of\x20','7085120dReCxa','flag',':\x20expected\x20','length','19801881BTHcux','Provide\x20one\x20of:\x20','7944912HiwiWB','Flags\x20','799430SbHqxB','1070230WGZHyX','403928uTMSRk','Remove\x20all\x20but\x20one.','716726ybwcjC','24ZlQJRn','At\x20least\x20one\x20of\x20','\x20is\x20required\x20for\x20`','Only\x20one\x20of\x20','join','4mtkHKa','3TeRWZg','9CdFCpG'];a19_0x192c=function(){return _0x3edbd2;};return a19_0x192c();}(function(_0x3ecb23,_0x2649b0){const _0x55509e=a19_0x51f6,_0x36ad3a=_0x3ecb23();while(!![]){try{const _0x29ed3b=parseInt(_0x55509e(0x137))/0x1+-parseInt(_0x55509e(0x139))/0x2*(parseInt(_0x55509e(0x140))/0x3)+parseInt(_0x55509e(0x13f))/0x4*(-parseInt(_0x55509e(0x135))/0x5)+parseInt(_0x55509e(0x13a))/0x6*(parseInt(_0x55509e(0x136))/0x7)+-parseInt(_0x55509e(0x133))/0x8+-parseInt(_0x55509e(0x141))/0x9*(parseInt(_0x55509e(0x146))/0xa)+parseInt(_0x55509e(0x14a))/0xb;if(_0x29ed3b===_0x2649b0)break;else _0x36ad3a['push'](_0x36ad3a['shift']());}catch(_0x1d6951){_0x36ad3a['push'](_0x36ad3a['shift']());}}}(a19_0x192c,0x91748));import{CliErrors}from'../../errors.js';function isSet(_0x493fc0,_0x3e2cb1){const _0x5ebfc9=a19_0x51f6,_0x19e027=_0x493fc0[_0x5ebfc9(0x147)](_0x3e2cb1);return _0x19e027!==undefined&&_0x19e027!==''&&_0x19e027!==![]&&_0x19e027!==0x0;}function fmtNames(_0x10ebe4){const _0x1ec130=a19_0x51f6;return _0x10ebe4['map'](_0x1e5e12=>'--'+_0x1e5e12)[_0x1ec130(0x13e)](',\x20');}export function requireOneOf(_0x2e2f18,_0x50d014,_0x4059af){const _0x18d460=a19_0x51f6,_0x176912=_0x50d014['filter'](_0x23fd66=>isSet(_0x2e2f18,_0x23fd66));if(_0x176912[_0x18d460(0x149)]!==0x1)throw CliErrors[_0x18d460(0x144)](_0x176912[_0x18d460(0x149)]===0x0?_0x18d460(0x145)+fmtNames(_0x50d014)+_0x18d460(0x13c)+_0x4059af+'`.':_0x18d460(0x13d)+fmtNames(_0x50d014)+_0x18d460(0x142)+fmtNames(_0x176912)+'.',_0x176912[_0x18d460(0x149)]===0x0?_0x18d460(0x14b)+fmtNames(_0x50d014):_0x18d460(0x138));}export function requireAnyOf(_0x381f05,_0x4b97df,_0x1274a3){const _0x367c79=a19_0x51f6;if(!_0x4b97df['some'](_0x9aed5c=>isSet(_0x381f05,_0x9aed5c)))throw CliErrors[_0x367c79(0x144)](_0x367c79(0x13b)+fmtNames(_0x4b97df)+_0x367c79(0x13c)+_0x1274a3+'`.',_0x367c79(0x14b)+fmtNames(_0x4b97df));}function a19_0x51f6(_0x433bbe,_0xe7cd27){_0x433bbe=_0x433bbe-0x133;const _0x192ca6=a19_0x192c();let _0x51f63d=_0x192ca6[_0x433bbe];return _0x51f63d;}export function mutuallyExclusive(_0x5911f7,_0x37eace,_0x4e50cb){const _0x495735=a19_0x51f6,_0x4fd87f=_0x37eace[_0x495735(0x143)](_0x539d70=>isSet(_0x5911f7,_0x539d70));if(_0x4fd87f[_0x495735(0x149)]>0x1)throw CliErrors['validation'](_0x495735(0x134)+fmtNames(_0x4fd87f)+'\x20are\x20mutually\x20exclusive\x20for\x20`'+_0x4e50cb+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x37eace));}export function validatePattern(_0x261cc1,_0x512c7c,_0x1777b6,_0x5a2867){const _0x1ce5da=a19_0x51f6,_0x5f19a2=_0x261cc1['str'](_0x512c7c);if(_0x5f19a2&&!_0x1777b6['test'](_0x5f19a2))throw CliErrors[_0x1ce5da(0x144)]('Invalid\x20--'+_0x512c7c+_0x1ce5da(0x148)+_0x5a2867+',\x20got\x20\x22'+_0x5f19a2+'\x22.');}
@@ -1 +1 @@
1
- const a20_0x328f27=a20_0x49e6;(function(_0x5a2179,_0x5aedbd){const _0x247ef0=a20_0x49e6,_0x51248d=_0x5a2179();while(!![]){try{const _0xa05ac6=parseInt(_0x247ef0(0x167))/0x1*(parseInt(_0x247ef0(0x166))/0x2)+-parseInt(_0x247ef0(0x16c))/0x3*(parseInt(_0x247ef0(0x171))/0x4)+-parseInt(_0x247ef0(0x176))/0x5+-parseInt(_0x247ef0(0x17c))/0x6+parseInt(_0x247ef0(0x174))/0x7+-parseInt(_0x247ef0(0x16d))/0x8*(parseInt(_0x247ef0(0x17b))/0x9)+parseInt(_0x247ef0(0x16a))/0xa*(parseInt(_0x247ef0(0x17d))/0xb);if(_0xa05ac6===_0x5aedbd)break;else _0x51248d['push'](_0x51248d['shift']());}catch(_0x1b43ac){_0x51248d['push'](_0x51248d['shift']());}}}(a20_0x244b,0x5bb31));export const CODE_FLAG={'name':a20_0x328f27(0x16e),'type':a20_0x328f27(0x17a),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x328f27(0x170)}};export const SQLCODE_FLAG={'name':a20_0x328f27(0x173),'type':a20_0x328f27(0x17a),'required':!![],'description':a20_0x328f27(0x165),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const VERBOSE_FLAG={'name':a20_0x328f27(0x169),'type':a20_0x328f27(0x179),'description':a20_0x328f27(0x172)};export const PARAMS_FLAG={'name':a20_0x328f27(0x168),'type':a20_0x328f27(0x17a),'description':a20_0x328f27(0x16f)};function a20_0x49e6(_0x375959,_0x48e7d2){_0x375959=_0x375959-0x165;const _0x244b59=a20_0x244b();let _0x49e67f=_0x244b59[_0x375959];return _0x49e67f;}export const NAME_FLAG={'name':a20_0x328f27(0x175),'type':'string','description':a20_0x328f27(0x177)};export const ID_FLAG={'name':'id','type':a20_0x328f27(0x16b),'required':!![],'description':a20_0x328f27(0x178)};function a20_0x244b(){const _0xc7ddd3=['string','5779701hhRZmM','2169102KJuSvM','17127385tbfiUs','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','273820NkEmRQ','5ZbCCIU','params','verbose','10AjdrMy','number','179637VDIswy','8lusdbk','code','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','36COLunj','Return\x20full\x20raw\x20response\x20object','sqlcode','1612030zatIeK','name','2768285gWNOYs','Resource\x20name\x20for\x20lookup','Resource\x20ID','boolean'];a20_0x244b=function(){return _0xc7ddd3;};return a20_0x244b();}
1
+ function a20_0x22fa(){const _0x5872a4=['sqlcode','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','number','872YqBqFb','7194lfCEhB','472yIqduX','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','3380925XbKkeq','Return\x20full\x20raw\x20response\x20object','params','112060umfnFK','253026bDrqUv','name','string','281826hCDpvn','1288362iQzgGo','Resource\x20ID','3776080LZtUNg','verbose'];a20_0x22fa=function(){return _0x5872a4;};return a20_0x22fa();}const a20_0x58bcaa=a20_0x518f;(function(_0x1145f9,_0x5c4d96){const _0x587974=a20_0x518f,_0x59c6d1=_0x1145f9();while(!![]){try{const _0x457bc8=parseInt(_0x587974(0xae))/0x1+-parseInt(_0x587974(0xaa))/0x2+parseInt(_0x587974(0xa4))/0x3*(-parseInt(_0x587974(0xa3))/0x4)+-parseInt(_0x587974(0xa7))/0x5+parseInt(_0x587974(0x9a))/0x6+-parseInt(_0x587974(0x9c))/0x7+-parseInt(_0x587974(0xa5))/0x8*(-parseInt(_0x587974(0xab))/0x9);if(_0x457bc8===_0x5c4d96)break;else _0x59c6d1['push'](_0x59c6d1['shift']());}catch(_0x3b8839){_0x59c6d1['push'](_0x59c6d1['shift']());}}}(a20_0x22fa,0x5819c));export const CODE_FLAG={'name':'code','type':a20_0x58bcaa(0xad),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x58bcaa(0xa1)}};export const SQLCODE_FLAG={'name':a20_0x58bcaa(0x9e),'type':a20_0x58bcaa(0xad),'required':!![],'description':a20_0x58bcaa(0x9f),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x58bcaa(0xa0)}};function a20_0x518f(_0x88bad,_0x1f8b06){_0x88bad=_0x88bad-0x9a;const _0x22fa31=a20_0x22fa();let _0x518f2d=_0x22fa31[_0x88bad];return _0x518f2d;}export const VERBOSE_FLAG={'name':a20_0x58bcaa(0x9d),'type':'boolean','description':a20_0x58bcaa(0xa8)};export const PARAMS_FLAG={'name':a20_0x58bcaa(0xa9),'type':a20_0x58bcaa(0xad),'description':a20_0x58bcaa(0xa6)};export const NAME_FLAG={'name':a20_0x58bcaa(0xac),'type':a20_0x58bcaa(0xad),'description':'Resource\x20name\x20for\x20lookup'};export const ID_FLAG={'name':'id','type':a20_0x58bcaa(0xa2),'required':!![],'description':a20_0x58bcaa(0x9b)};
@@ -1 +1 @@
1
- function a21_0x32c7(_0x203578,_0x91cc15){_0x203578=_0x203578-0xbe;const _0x9e9747=a21_0x9e97();let _0x32c7f1=_0x9e9747[_0x203578];return _0x32c7f1;}(function(_0x5987d5,_0x7b1f60){const _0xc1f541=a21_0x32c7,_0x5372f1=_0x5987d5();while(!![]){try{const _0x25c33b=parseInt(_0xc1f541(0xcd))/0x1*(parseInt(_0xc1f541(0xc7))/0x2)+parseInt(_0xc1f541(0xcc))/0x3+-parseInt(_0xc1f541(0xc1))/0x4*(-parseInt(_0xc1f541(0xcf))/0x5)+-parseInt(_0xc1f541(0xc0))/0x6+parseInt(_0xc1f541(0xc4))/0x7*(-parseInt(_0xc1f541(0xd0))/0x8)+-parseInt(_0xc1f541(0xc8))/0x9+-parseInt(_0xc1f541(0xc2))/0xa*(-parseInt(_0xc1f541(0xc6))/0xb);if(_0x25c33b===_0x7b1f60)break;else _0x5372f1['push'](_0x5372f1['shift']());}catch(_0x2a8f5e){_0x5372f1['push'](_0x5372f1['shift']());}}}(a21_0x9e97,0x9b6b2));function a21_0x9e97(){const _0x4b7701=['toFixed','11UDCcJA','1182WKBrWh','10302750BwCndG','\x20MB','\x20path\x20is\x20required.','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','274035LmWqRR','1337ljOsyq','validation','5JaRBjx','984sYegCy','File\x20is\x20not\x20a\x20regular\x20file:\x20','ceil','1778850oNBSWb','4448012siZJfg','5825770BHPics','size','28357raOcrQ'];a21_0x9e97=function(){return _0x4b7701;};return a21_0x9e97();}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(_0x18eadc){const _0x28251a=a21_0x32c7;if(_0x18eadc>=BYTES_PER_MB){const _0x1c8638=Math[_0x28251a(0xbf)](_0x18eadc/BYTES_PER_MB*0x64)/0x64;return _0x1c8638[_0x28251a(0xc5)](0x2)+_0x28251a(0xc9);}return _0x18eadc+'\x20B';}export function requireRuntimeUploadFile(_0xd482fb,_0xb1e6e2){const _0x3e610b=a21_0x32c7,_0x5bfc03=_0xd482fb['trim']();if(!_0x5bfc03)throw CliErrors['validation'](_0xb1e6e2+_0x3e610b(0xca));if(!existsSync(_0x5bfc03))throw CliErrors[_0x3e610b(0xce)]('File\x20not\x20found:\x20'+_0x5bfc03);const _0x565c47=statSync(_0x5bfc03);if(!_0x565c47['isFile']())throw CliErrors[_0x3e610b(0xce)](_0x3e610b(0xbe)+_0x5bfc03);if(_0x565c47[_0x3e610b(0xc3)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x3e610b(0xce)](_0x3e610b(0xcb)+_0x5bfc03+'\x20('+formatBytes(_0x565c47[_0x3e610b(0xc3)])+')');return{'path':_0x5bfc03,'size':_0x565c47[_0x3e610b(0xc3)]};}
1
+ (function(_0x1866f5,_0x4eb1ea){const _0x101000=a21_0x419d,_0x383d00=_0x1866f5();while(!![]){try{const _0x3e889f=-parseInt(_0x101000(0x151))/0x1+-parseInt(_0x101000(0x14b))/0x2+parseInt(_0x101000(0x14c))/0x3*(-parseInt(_0x101000(0x14a))/0x4)+parseInt(_0x101000(0x155))/0x5+-parseInt(_0x101000(0x14f))/0x6*(parseInt(_0x101000(0x157))/0x7)+parseInt(_0x101000(0x150))/0x8+parseInt(_0x101000(0x14d))/0x9;if(_0x3e889f===_0x4eb1ea)break;else _0x383d00['push'](_0x383d00['shift']());}catch(_0x51fe88){_0x383d00['push'](_0x383d00['shift']());}}}(a21_0x2a67,0xa75ac));import{existsSync,statSync}from'node:fs';function a21_0x419d(_0x2f8d86,_0x422fbf){_0x2f8d86=_0x2f8d86-0x148;const _0x2a6764=a21_0x2a67();let _0x419df2=_0x2a6764[_0x2f8d86];return _0x419df2;}import{CliErrors}from'../../errors.js';function a21_0x2a67(){const _0x15483c=['16842708OGqXTf','isFile','6MHzMzn','4396456IvRoBN','849076UeoAZw','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','trim','size','2394305JBLdws','\x20MB','1319402HRwJaw','ceil','\x20path\x20is\x20required.','validation','9780OXIqRy','461138nUNFyw','1161ATAoxH'];a21_0x2a67=function(){return _0x15483c;};return a21_0x2a67();}const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x1ff820){const _0x44ca57=a21_0x419d;if(_0x1ff820>=BYTES_PER_MB){const _0x56aff8=Math[_0x44ca57(0x158)](_0x1ff820/BYTES_PER_MB*0x64)/0x64;return _0x56aff8['toFixed'](0x2)+_0x44ca57(0x156);}return _0x1ff820+'\x20B';}export function requireRuntimeUploadFile(_0x47b211,_0x30def9){const _0x5e753d=a21_0x419d,_0x32a4e0=_0x47b211[_0x5e753d(0x153)]();if(!_0x32a4e0)throw CliErrors[_0x5e753d(0x149)](_0x30def9+_0x5e753d(0x148));if(!existsSync(_0x32a4e0))throw CliErrors[_0x5e753d(0x149)]('File\x20not\x20found:\x20'+_0x32a4e0);const _0x83b289=statSync(_0x32a4e0);if(!_0x83b289[_0x5e753d(0x14e)]())throw CliErrors['validation']('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x32a4e0);if(_0x83b289['size']>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x5e753d(0x149)](_0x5e753d(0x152)+_0x32a4e0+'\x20('+formatBytes(_0x83b289[_0x5e753d(0x154)])+')');return{'path':_0x32a4e0,'size':_0x83b289[_0x5e753d(0x154)]};}
@@ -1 +1 @@
1
- const a22_0x1d4a2e=a22_0xa416;function a22_0x3c22(){const _0x426f91=['Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','\x22.\x20Allowed:\x20','10582317ZPJldQ','Top-level\x20key\x20\x22','bool','read','\x22\x20is\x20not\x20settable.','10GalayY','656571aGkcfS','length','global','Set\x20a\x20config\x20value','Usage:\x20','pretty','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','\x20config\x20set\x20<key>\x20<value>\x20[--global]','Invalid\x20value\x20for\x20\x22','Key\x20not\x20found:\x20','Settable\x20keys:\x20','field','Missing\x20key\x20argument.','pageSize\x20must\x20be\x20a\x20positive\x20number','log','1073534ybUyFZ','stringify','key','66XXpZmI','Write\x20to\x20global\x20config','Deleted\x20`','apps','\x20(global)','pageSize','project-or-global-explicit','\x20config\x20delete\x20<key>\x20[--global]','split','20hnIjgT','validation','441560zBPCqe','`\x20=\x20\x22','Set\x20`','alias','Missing\x20key\x20or\x20value.','isArray','config','trim','8752392FWMGRM','object','keys','args','\x20\x20project:\x20','741005vFfwUR','list','../../context.js','Value\x20to\x20assign','appcode','riskLevel','605705fCPsib','raw','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','includes'];a22_0x3c22=function(){return _0x426f91;};return a22_0x3c22();}(function(_0x36cd74,_0x2556e9){const _0x1ff781=a22_0xa416,_0x5c5c3a=_0x36cd74();while(!![]){try{const _0x3adddc=parseInt(_0x1ff781(0x19a))/0x1+parseInt(_0x1ff781(0x1c3))/0x2+parseInt(_0x1ff781(0x1a6))/0x3+parseInt(_0x1ff781(0x1c1))/0x4*(-parseInt(_0x1ff781(0x1d0))/0x5)+-parseInt(_0x1ff781(0x1b8))/0x6*(parseInt(_0x1ff781(0x1b5))/0x7)+parseInt(_0x1ff781(0x1cb))/0x8+parseInt(_0x1ff781(0x1a0))/0x9*(parseInt(_0x1ff781(0x1a5))/0xa);if(_0x3adddc===_0x2556e9)break;else _0x5c5c3a['push'](_0x5c5c3a['shift']());}catch(_0x340763){_0x5c5c3a['push'](_0x5c5c3a['shift']());}}}(a22_0x3c22,0xd89b1));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';function a22_0xa416(_0x70b33f,_0x3d98d6){_0x70b33f=_0x70b33f-0x196;const _0x3c225f=a22_0x3c22();let _0xa416bf=_0x3c225f[_0x70b33f];return _0xa416bf;}import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a22_0x1d4a2e(0x1a8),'type':'boolean','description':a22_0x1d4a2e(0x1b9),'default':![]};function parseAliasAppcodeSetKey(_0x450b12){const _0x26d33f=a22_0x1d4a2e,_0x198657=_0x450b12['split']('.');if(_0x198657[_0x26d33f(0x1a7)]!==0x3||_0x198657[0x0]!==_0x26d33f(0x1bb)||_0x198657[0x2]!==_0x26d33f(0x198))return undefined;const _0x208ffe=_0x198657[0x1]?.[_0x26d33f(0x1ca)]();return _0x208ffe?_0x208ffe:undefined;}function parseAliasDeleteKey(_0x1837b8){const _0x247233=a22_0x1d4a2e,_0x3dd808=_0x1837b8[_0x247233(0x1c0)]('.');if(_0x3dd808['length']===0x2&&_0x3dd808[0x0]===_0x247233(0x1bb)){const _0x23121c=_0x3dd808[0x1]?.[_0x247233(0x1ca)]();return _0x23121c?{'alias':_0x23121c}:undefined;}if(_0x3dd808[_0x247233(0x1a7)]===0x3&&_0x3dd808[0x0]===_0x247233(0x1bb)&&_0x3dd808[0x2]==='appcode'){const _0x572ecd=_0x3dd808[0x1]?.['trim']();return _0x572ecd?{'alias':_0x572ecd,'field':_0x247233(0x198)}:undefined;}return undefined;}function setLocalAppAlias(_0x5b8d27,_0xe6035a,_0x5bc573){const _0x5b87d5=a22_0x1d4a2e,_0x495901=_0x5b8d27[_0x5b87d5(0x1bb)]&&typeof _0x5b8d27[_0x5b87d5(0x1bb)]===_0x5b87d5(0x1cc)&&!Array['isArray'](_0x5b8d27[_0x5b87d5(0x1bb)])?_0x5b8d27[_0x5b87d5(0x1bb)]:{},_0x32561b=_0x495901[_0xe6035a]&&typeof _0x495901[_0xe6035a]===_0x5b87d5(0x1cc)&&!Array[_0x5b87d5(0x1c8)](_0x495901[_0xe6035a])?_0x495901[_0xe6035a]:{};_0x32561b[_0x5b87d5(0x198)]=_0x5bc573,_0x495901[_0xe6035a]=_0x32561b,_0x5b8d27[_0x5b87d5(0x1bb)]=_0x495901;}function deleteLocalAppAlias(_0x2032af,_0x3fd0eb){const _0x27e71d=a22_0x1d4a2e;if(!_0x2032af[_0x27e71d(0x1bb)]||typeof _0x2032af[_0x27e71d(0x1bb)]!==_0x27e71d(0x1cc)||Array[_0x27e71d(0x1c8)](_0x2032af['apps']))return![];const _0x1fa681=_0x2032af[_0x27e71d(0x1bb)],_0x5ae4b8=_0x1fa681[_0x3fd0eb[_0x27e71d(0x1c6)]];if(!_0x5ae4b8||typeof _0x5ae4b8!==_0x27e71d(0x1cc)||Array[_0x27e71d(0x1c8)](_0x5ae4b8))return![];if(!_0x3fd0eb[_0x27e71d(0x1b1)])return delete _0x1fa681[_0x3fd0eb[_0x27e71d(0x1c6)]],!![];if(!(_0x3fd0eb[_0x27e71d(0x1b1)]in _0x5ae4b8))return![];return delete _0x5ae4b8[_0x3fd0eb['field']],Object[_0x27e71d(0x1cd)](_0x5ae4b8)[_0x27e71d(0x1a7)]===0x0&&delete _0x1fa681[_0x3fd0eb[_0x27e71d(0x1c6)]],!![];}const listDef={'service':a22_0x1d4a2e(0x1c9),'command':a22_0x1d4a2e(0x1d1),'description':'List\x20current\x20config','risk':a22_0x1d4a2e(0x1a3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x344adc){const _0x184b0a=a22_0x1d4a2e,{buildConfigFromFlags:_0x24f38d}=await import(_0x184b0a(0x196)),_0x240881=_0x24f38d({}),_0x5aaeef=getProjectConfigPath(),_0x57732b=resolveWriteConfigPath(_0x184b0a(0x1a8));if(_0x344adc['format']===_0x184b0a(0x1ab))return{'ok':!![],'message':_0x184b0a(0x19c)+(JSON['stringify'](_0x240881[_0x184b0a(0x19b)],null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+(_0x184b0a(0x1cf)+(_0x5aaeef??'(none)')+'\x0a')+('\x20\x20global:\x20\x20'+_0x57732b)};return{'ok':!![],'data':{'effective':_0x240881[_0x184b0a(0x19b)],'configFiles':{'project':_0x5aaeef??null,'global':_0x57732b}}};}},getDef={'service':'config','command':'get','description':'Get\x20a\x20config\x20value','risk':a22_0x1d4a2e(0x1a3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x1d4a2e(0x1b7),'description':a22_0x1d4a2e(0x19e),'required':!![]}],'flags':[],async 'execute'(_0x51b0b1){const _0x3f066=a22_0x1d4a2e,_0xfa00b5=_0x51b0b1[_0x3f066(0x1ce)][0x0];if(!_0xfa00b5)throw CliErrors[_0x3f066(0x1c2)](_0x3f066(0x1b2),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20get\x20<key>');const {buildConfigFromFlags:_0x5be0fd}=await import(_0x3f066(0x196)),{raw:_0xc47279}=_0x5be0fd({});if(_0xfa00b5[_0x3f066(0x19d)]('.')){const _0x3fc8a3=_0xfa00b5[_0x3f066(0x1c0)]('.');let _0x5ded1c=_0xc47279;for(const _0x328f8b of _0x3fc8a3){if(_0x5ded1c==null||typeof _0x5ded1c!==_0x3f066(0x1cc))throw CliErrors[_0x3f066(0x1c2)](_0x3f066(0x1af)+_0xfa00b5);_0x5ded1c=_0x5ded1c[_0x328f8b];}if(_0x5ded1c===undefined)throw CliErrors[_0x3f066(0x1c2)](_0x3f066(0x1af)+_0xfa00b5);return console[_0x3f066(0x1b4)](typeof _0x5ded1c==='object'?JSON[_0x3f066(0x1b6)](_0x5ded1c,null,0x2):String(_0x5ded1c)),{'ok':!![]};}const _0x3e832c=_0xc47279[_0xfa00b5];if(_0x3e832c===undefined)throw CliErrors[_0x3f066(0x1c2)](_0x3f066(0x1af)+_0xfa00b5);return console['log'](typeof _0x3e832c===_0x3f066(0x1cc)?JSON[_0x3f066(0x1b6)](_0x3e832c,null,0x2):String(_0x3e832c)),{'ok':!![]};}},setDef={'service':a22_0x1d4a2e(0x1c9),'command':'set','description':a22_0x1d4a2e(0x1a9),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x1d4a2e(0x1b7),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':a22_0x1d4a2e(0x197),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x55f156){const _0x22e28c=a22_0x1d4a2e,_0x22d8ef=_0x55f156['args'][0x0],_0x379438=_0x55f156[_0x22e28c(0x1ce)][0x1];if(!_0x22d8ef||_0x379438===undefined)throw CliErrors['validation'](_0x22e28c(0x1c7),_0x22e28c(0x1aa)+CLI_BIN_NAME+_0x22e28c(0x1ad));if(ENUM_KEYS[_0x22d8ef]&&!ENUM_KEYS[_0x22d8ef]['includes'](_0x379438))throw CliErrors[_0x22e28c(0x1c2)](_0x22e28c(0x1ae)+_0x22d8ef+_0x22e28c(0x19f)+ENUM_KEYS[_0x22d8ef]['join'](',\x20'));if(_0x22d8ef===_0x22e28c(0x199))throw CliErrors[_0x22e28c(0x1c2)](_0x22e28c(0x1ac));if(_0x22d8ef===_0x22e28c(0x1bd)){const _0x2d13af=Number(_0x379438);if(isNaN(_0x2d13af)||_0x2d13af<=0x0)throw CliErrors['validation'](_0x22e28c(0x1b3));}const _0x1f5643=resolveWriteScope({'explicitGlobal':_0x55f156[_0x22e28c(0x1a2)](_0x22e28c(0x1a8)),'policy':_0x22e28c(0x1be)}),_0x4584d7=toScopeFlags(_0x1f5643),_0x200cc4=readScopedConfig(_0x4584d7),_0x324d42=parseAliasAppcodeSetKey(_0x22d8ef);if(!_0x324d42&&!isTopLevelConfigKey(_0x22d8ef))throw CliErrors[_0x22e28c(0x1c2)](_0x22e28c(0x1a1)+_0x22d8ef+_0x22e28c(0x1a4),_0x22e28c(0x1b0)+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');return _0x324d42?setLocalAppAlias(_0x200cc4,_0x324d42,_0x379438):_0x200cc4[_0x22d8ef]=_0x22d8ef===_0x22e28c(0x1bd)?Number(_0x379438):_0x379438,console[_0x22e28c(0x1b4)](_0x22e28c(0x1c5)+_0x22d8ef+_0x22e28c(0x1c4)+_0x379438+'\x22'+(_0x1f5643==='global'?_0x22e28c(0x1bc):'')),writeScopedConfig(_0x200cc4,_0x4584d7),{'ok':!![]};}},deleteDef={'service':a22_0x1d4a2e(0x1c9),'command':'delete','description':'Delete\x20a\x20config\x20value','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x232004){const _0x1201f9=a22_0x1d4a2e,_0x33f55c=_0x232004['args'][0x0];if(!_0x33f55c)throw CliErrors[_0x1201f9(0x1c2)]('Missing\x20key\x20argument.',_0x1201f9(0x1aa)+CLI_BIN_NAME+_0x1201f9(0x1bf));const _0x29b6b7=resolveWriteScope({'explicitGlobal':_0x232004[_0x1201f9(0x1a2)](_0x1201f9(0x1a8)),'policy':_0x1201f9(0x1be)}),_0x4c76bc=toScopeFlags(_0x29b6b7),_0x53b5ad=readScopedConfig(_0x4c76bc),_0x40668c=parseAliasDeleteKey(_0x33f55c);if(_0x40668c){if(!deleteLocalAppAlias(_0x53b5ad,_0x40668c))throw CliErrors[_0x1201f9(0x1c2)](_0x1201f9(0x1af)+_0x33f55c);return console[_0x1201f9(0x1b4)]('Deleted\x20`'+_0x33f55c+'`'+(_0x29b6b7===_0x1201f9(0x1a8)?_0x1201f9(0x1bc):'')),writeScopedConfig(_0x53b5ad,_0x4c76bc),{'ok':!![]};}if(_0x53b5ad[_0x33f55c]===undefined)throw CliErrors[_0x1201f9(0x1c2)]('Key\x20\x22'+_0x33f55c+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0x53b5ad[_0x33f55c],console[_0x1201f9(0x1b4)](_0x1201f9(0x1ba)+_0x33f55c+'`'+(_0x29b6b7==='global'?_0x1201f9(0x1bc):'')),writeScopedConfig(_0x53b5ad,_0x4c76bc),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
1
+ const a22_0x36ad33=a22_0x3c3b;(function(_0x579b72,_0x41a433){const _0x207440=a22_0x3c3b,_0x5c0c41=_0x579b72();while(!![]){try{const _0x37c466=parseInt(_0x207440(0x117))/0x1*(parseInt(_0x207440(0x154))/0x2)+-parseInt(_0x207440(0x13c))/0x3*(parseInt(_0x207440(0x158))/0x4)+-parseInt(_0x207440(0x145))/0x5+parseInt(_0x207440(0x131))/0x6*(parseInt(_0x207440(0x142))/0x7)+parseInt(_0x207440(0x147))/0x8*(parseInt(_0x207440(0x12a))/0x9)+parseInt(_0x207440(0x124))/0xa+parseInt(_0x207440(0x11c))/0xb*(-parseInt(_0x207440(0x150))/0xc);if(_0x37c466===_0x41a433)break;else _0x5c0c41['push'](_0x5c0c41['shift']());}catch(_0x2610f8){_0x5c0c41['push'](_0x5c0c41['shift']());}}}(a22_0x3f90,0x4ce17));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_0x36ad33(0x12e),'type':a22_0x36ad33(0x127),'description':'Write\x20to\x20global\x20config','default':![]};function parseAliasAppcodeSetKey(_0x5e87b6){const _0xb133eb=a22_0x36ad33,_0x333dd1=_0x5e87b6['split']('.');if(_0x333dd1[_0xb133eb(0x118)]!==0x3||_0x333dd1[0x0]!=='apps'||_0x333dd1[0x2]!==_0xb133eb(0x132))return undefined;const _0x44fc03=_0x333dd1[0x1]?.['trim']();return _0x44fc03?_0x44fc03:undefined;}function a22_0x3c3b(_0x1e8d78,_0xb96076){_0x1e8d78=_0x1e8d78-0x115;const _0x3f908e=a22_0x3f90();let _0x3c3b9d=_0x3f908e[_0x1e8d78];return _0x3c3b9d;}function a22_0x3f90(){const _0x2bd7c8=['3626820ogvTDW','stringify','Get\x20a\x20config\x20value','boolean','Key\x20not\x20found:\x20','get','1341HMGZcQ','Missing\x20key\x20argument.','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','\x22\x20is\x20not\x20settable.','global','isArray','\x20(global)','714GEHoMu','appcode','raw','Invalid\x20value\x20for\x20\x22','\x22.\x20Allowed:\x20','\x20\x20global:\x20\x20','Deleted\x20`','trim','join','delete','args','297099PFqgFk','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','Config\x20files:\x0a','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','split','apps','11963qzAfcL','project-or-global-explicit','\x20config\x20set\x20<key>\x20<value>\x20[--global]','574175fQHfhR','../../context.js','32616uXEWzJ','set','\x20config\x20get\x20<key>','riskLevel','log','format','value','list','object','204gdhmJN','alias','Missing\x20key\x20or\x20value.','Value\x20to\x20assign','14PdyAsD','pretty','Usage:\x20','pageSize\x20must\x20be\x20a\x20positive\x20number','12nLOkEQ','includes','write','39319Rzfzls','length','keys','\x20config\x20delete\x20<key>\x20[--global]','bool','467126fdVxXa','Set\x20`','key','List\x20current\x20config','validation','pageSize','(none)','config'];a22_0x3f90=function(){return _0x2bd7c8;};return a22_0x3f90();}function parseAliasDeleteKey(_0x341087){const _0x505ea0=a22_0x36ad33,_0x24d30c=_0x341087[_0x505ea0(0x140)]('.');if(_0x24d30c[_0x505ea0(0x118)]===0x2&&_0x24d30c[0x0]==='apps'){const _0x2b9f3e=_0x24d30c[0x1]?.[_0x505ea0(0x138)]();return _0x2b9f3e?{'alias':_0x2b9f3e}:undefined;}if(_0x24d30c[_0x505ea0(0x118)]===0x3&&_0x24d30c[0x0]===_0x505ea0(0x141)&&_0x24d30c[0x2]===_0x505ea0(0x132)){const _0x47551a=_0x24d30c[0x1]?.[_0x505ea0(0x138)]();return _0x47551a?{'alias':_0x47551a,'field':_0x505ea0(0x132)}:undefined;}return undefined;}function setLocalAppAlias(_0x5f2897,_0x1bf2bc,_0x468995){const _0x4ff01e=a22_0x36ad33,_0x4a8706=_0x5f2897['apps']&&typeof _0x5f2897[_0x4ff01e(0x141)]===_0x4ff01e(0x14f)&&!Array[_0x4ff01e(0x12f)](_0x5f2897[_0x4ff01e(0x141)])?_0x5f2897[_0x4ff01e(0x141)]:{},_0x2b9aba=_0x4a8706[_0x1bf2bc]&&typeof _0x4a8706[_0x1bf2bc]===_0x4ff01e(0x14f)&&!Array['isArray'](_0x4a8706[_0x1bf2bc])?_0x4a8706[_0x1bf2bc]:{};_0x2b9aba[_0x4ff01e(0x132)]=_0x468995,_0x4a8706[_0x1bf2bc]=_0x2b9aba,_0x5f2897[_0x4ff01e(0x141)]=_0x4a8706;}function deleteLocalAppAlias(_0x3db3d4,_0x134c95){const _0x37fe0e=a22_0x36ad33;if(!_0x3db3d4[_0x37fe0e(0x141)]||typeof _0x3db3d4[_0x37fe0e(0x141)]!==_0x37fe0e(0x14f)||Array[_0x37fe0e(0x12f)](_0x3db3d4[_0x37fe0e(0x141)]))return![];const _0x5684ad=_0x3db3d4[_0x37fe0e(0x141)],_0x2610eb=_0x5684ad[_0x134c95[_0x37fe0e(0x151)]];if(!_0x2610eb||typeof _0x2610eb!=='object'||Array[_0x37fe0e(0x12f)](_0x2610eb))return![];if(!_0x134c95['field'])return delete _0x5684ad[_0x134c95[_0x37fe0e(0x151)]],!![];if(!(_0x134c95['field']in _0x2610eb))return![];return delete _0x2610eb[_0x134c95['field']],Object[_0x37fe0e(0x119)](_0x2610eb)[_0x37fe0e(0x118)]===0x0&&delete _0x5684ad[_0x134c95[_0x37fe0e(0x151)]],!![];}const listDef={'service':a22_0x36ad33(0x123),'command':a22_0x36ad33(0x14e),'description':a22_0x36ad33(0x11f),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x1b7812){const _0x291899=a22_0x36ad33,{buildConfigFromFlags:_0x41b9ec}=await import(_0x291899(0x146)),_0x197004=_0x41b9ec({}),_0x129173=getProjectConfigPath(),_0x50deff=resolveWriteConfigPath(_0x291899(0x12e));if(_0x1b7812[_0x291899(0x14c)]===_0x291899(0x155))return{'ok':!![],'message':_0x291899(0x13f)+(JSON[_0x291899(0x125)](_0x197004[_0x291899(0x133)],null,0x2)+'\x0a\x0a')+_0x291899(0x13e)+('\x20\x20project:\x20'+(_0x129173??_0x291899(0x122))+'\x0a')+(_0x291899(0x136)+_0x50deff)};return{'ok':!![],'data':{'effective':_0x197004['raw'],'configFiles':{'project':_0x129173??null,'global':_0x50deff}}};}},getDef={'service':a22_0x36ad33(0x123),'command':a22_0x36ad33(0x129),'description':a22_0x36ad33(0x126),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x36ad33(0x11e),'description':a22_0x36ad33(0x13d),'required':!![]}],'flags':[],async 'execute'(_0x344400){const _0x811f16=a22_0x36ad33,_0x12f422=_0x344400[_0x811f16(0x13b)][0x0];if(!_0x12f422)throw CliErrors[_0x811f16(0x120)](_0x811f16(0x12b),_0x811f16(0x156)+CLI_BIN_NAME+_0x811f16(0x149));const {buildConfigFromFlags:_0xc9b033}=await import(_0x811f16(0x146)),{raw:_0x20c14b}=_0xc9b033({});if(_0x12f422[_0x811f16(0x115)]('.')){const _0x3895d4=_0x12f422[_0x811f16(0x140)]('.');let _0x8dbbc9=_0x20c14b;for(const _0x4ca4b0 of _0x3895d4){if(_0x8dbbc9==null||typeof _0x8dbbc9!==_0x811f16(0x14f))throw CliErrors[_0x811f16(0x120)](_0x811f16(0x128)+_0x12f422);_0x8dbbc9=_0x8dbbc9[_0x4ca4b0];}if(_0x8dbbc9===undefined)throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x12f422);return console[_0x811f16(0x14b)](typeof _0x8dbbc9===_0x811f16(0x14f)?JSON[_0x811f16(0x125)](_0x8dbbc9,null,0x2):String(_0x8dbbc9)),{'ok':!![]};}const _0x5887f5=_0x20c14b[_0x12f422];if(_0x5887f5===undefined)throw CliErrors[_0x811f16(0x120)](_0x811f16(0x128)+_0x12f422);return console[_0x811f16(0x14b)](typeof _0x5887f5===_0x811f16(0x14f)?JSON['stringify'](_0x5887f5,null,0x2):String(_0x5887f5)),{'ok':!![]};}},setDef={'service':'config','command':a22_0x36ad33(0x148),'description':'Set\x20a\x20config\x20value','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x36ad33(0x14d),'description':a22_0x36ad33(0x153),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x90e5b0){const _0x49ba98=a22_0x36ad33,_0xbec3ee=_0x90e5b0[_0x49ba98(0x13b)][0x0],_0x1c017d=_0x90e5b0['args'][0x1];if(!_0xbec3ee||_0x1c017d===undefined)throw CliErrors[_0x49ba98(0x120)](_0x49ba98(0x152),_0x49ba98(0x156)+CLI_BIN_NAME+_0x49ba98(0x144));if(ENUM_KEYS[_0xbec3ee]&&!ENUM_KEYS[_0xbec3ee][_0x49ba98(0x115)](_0x1c017d))throw CliErrors[_0x49ba98(0x120)](_0x49ba98(0x134)+_0xbec3ee+_0x49ba98(0x135)+ENUM_KEYS[_0xbec3ee][_0x49ba98(0x139)](',\x20'));if(_0xbec3ee===_0x49ba98(0x14a))throw CliErrors[_0x49ba98(0x120)](_0x49ba98(0x12c));if(_0xbec3ee==='pageSize'){const _0x54f82b=Number(_0x1c017d);if(isNaN(_0x54f82b)||_0x54f82b<=0x0)throw CliErrors[_0x49ba98(0x120)](_0x49ba98(0x157));}const _0x405b6d=resolveWriteScope({'explicitGlobal':_0x90e5b0[_0x49ba98(0x11b)](_0x49ba98(0x12e)),'policy':_0x49ba98(0x143)}),_0x482d38=toScopeFlags(_0x405b6d),_0x30e60b=readScopedConfig(_0x482d38),_0x212589=parseAliasAppcodeSetKey(_0xbec3ee);if(!_0x212589&&!isTopLevelConfigKey(_0xbec3ee))throw CliErrors[_0x49ba98(0x120)]('Top-level\x20key\x20\x22'+_0xbec3ee+_0x49ba98(0x12d),'Settable\x20keys:\x20'+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');return _0x212589?setLocalAppAlias(_0x30e60b,_0x212589,_0x1c017d):_0x30e60b[_0xbec3ee]=_0xbec3ee===_0x49ba98(0x121)?Number(_0x1c017d):_0x1c017d,console[_0x49ba98(0x14b)](_0x49ba98(0x11d)+_0xbec3ee+'`\x20=\x20\x22'+_0x1c017d+'\x22'+(_0x405b6d==='global'?_0x49ba98(0x130):'')),writeScopedConfig(_0x30e60b,_0x482d38),{'ok':!![]};}},deleteDef={'service':a22_0x36ad33(0x123),'command':a22_0x36ad33(0x13a),'description':'Delete\x20a\x20config\x20value','risk':a22_0x36ad33(0x116),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x36ad33(0x11e),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x4f16d0){const _0x244387=a22_0x36ad33,_0x2a218d=_0x4f16d0['args'][0x0];if(!_0x2a218d)throw CliErrors['validation']('Missing\x20key\x20argument.',_0x244387(0x156)+CLI_BIN_NAME+_0x244387(0x11a));const _0x17d3ee=resolveWriteScope({'explicitGlobal':_0x4f16d0[_0x244387(0x11b)]('global'),'policy':'project-or-global-explicit'}),_0x4fed96=toScopeFlags(_0x17d3ee),_0x1e887b=readScopedConfig(_0x4fed96),_0x2a2440=parseAliasDeleteKey(_0x2a218d);if(_0x2a2440){if(!deleteLocalAppAlias(_0x1e887b,_0x2a2440))throw CliErrors[_0x244387(0x120)](_0x244387(0x128)+_0x2a218d);return console[_0x244387(0x14b)]('Deleted\x20`'+_0x2a218d+'`'+(_0x17d3ee==='global'?_0x244387(0x130):'')),writeScopedConfig(_0x1e887b,_0x4fed96),{'ok':!![]};}if(_0x1e887b[_0x2a218d]===undefined)throw CliErrors[_0x244387(0x120)]('Key\x20\x22'+_0x2a218d+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0x1e887b[_0x2a218d],console[_0x244387(0x14b)](_0x244387(0x137)+_0x2a218d+'`'+(_0x17d3ee===_0x244387(0x12e)?_0x244387(0x130):'')),writeScopedConfig(_0x1e887b,_0x4fed96),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- (function(_0x1dd2f3,_0xfdf619){var _0x40e82b=a23_0x19d5,_0x592111=_0x1dd2f3();while(!![]){try{var _0x2a0d68=-parseInt(_0x40e82b(0xbe))/0x1*(-parseInt(_0x40e82b(0xbb))/0x2)+parseInt(_0x40e82b(0xbf))/0x3*(-parseInt(_0x40e82b(0xba))/0x4)+-parseInt(_0x40e82b(0xb8))/0x5*(parseInt(_0x40e82b(0xbd))/0x6)+-parseInt(_0x40e82b(0xb9))/0x7+-parseInt(_0x40e82b(0xbc))/0x8+parseInt(_0x40e82b(0xc1))/0x9+parseInt(_0x40e82b(0xc0))/0xa;if(_0x2a0d68===_0xfdf619)break;else _0x592111['push'](_0x592111['shift']());}catch(_0x1bf38e){_0x592111['push'](_0x592111['shift']());}}}(a23_0x5255,0xd3147));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';function a23_0x19d5(_0x28bfc4,_0x2e6be){_0x28bfc4=_0x28bfc4-0xb8;var _0x5255e7=a23_0x5255();var _0x19d5b2=_0x5255e7[_0x28bfc4];return _0x19d5b2;}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_0x5255(){var _0x60cfde=['17410VwaVEw','716064KHwBzZ','2268LgvDDp','58MdWMqJ','3MpTESX','45074280DZmvzP','34848NlnUEO','18595dJqSRz','10506881vRydUx','4621336inXYnL'];a23_0x5255=function(){return _0x60cfde;};return a23_0x5255();}
1
+ (function(_0x4ab3be,_0x210e3f){var _0x3d1146=a23_0x10fd,_0xf6ac4a=_0x4ab3be();while(!![]){try{var _0x131aac=-parseInt(_0x3d1146(0xa3))/0x1+parseInt(_0x3d1146(0x9f))/0x2*(parseInt(_0x3d1146(0x9e))/0x3)+parseInt(_0x3d1146(0x9b))/0x4+parseInt(_0x3d1146(0x9a))/0x5+parseInt(_0x3d1146(0x9d))/0x6*(-parseInt(_0x3d1146(0xa0))/0x7)+-parseInt(_0x3d1146(0x9c))/0x8+parseInt(_0x3d1146(0xa2))/0x9*(parseInt(_0x3d1146(0xa1))/0xa);if(_0x131aac===_0x210e3f)break;else _0xf6ac4a['push'](_0xf6ac4a['shift']());}catch(_0x7b54e6){_0xf6ac4a['push'](_0xf6ac4a['shift']());}}}(a23_0x4801,0x5b599));function a23_0x10fd(_0xfe5e32,_0x48dd75){_0xfe5e32=_0xfe5e32-0x9a;var _0x48010c=a23_0x4801();var _0x10fd1b=_0x48010c[_0xfe5e32];return _0x10fd1b;}import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';function a23_0x4801(){var _0x4b6062=['977030DDUxwm','91028OzQBWP','4647752DrfKWb','414BcfbYw','21byYBWs','202322OwWQje','65947eiIvVQ','7602180dJqDzx','9wrhqwZ','81321sRbeWt'];a23_0x4801=function(){return _0x4b6062;};return a23_0x4801();}
@@ -1 +1 @@
1
- const a24_0x15e113=a24_0x1ddf;function a24_0x1ddf(_0x5e6c0a,_0x4335d2){_0x5e6c0a=_0x5e6c0a-0x1b0;const _0x5c422c=a24_0x5c42();let _0x1ddf02=_0x5c422c[_0x5e6c0a];return _0x1ddf02;}(function(_0x4e38eb,_0x5037a2){const _0x409956=a24_0x1ddf,_0x4314c8=_0x4e38eb();while(!![]){try{const _0x51a7e6=-parseInt(_0x409956(0x1c6))/0x1*(-parseInt(_0x409956(0x205))/0x2)+-parseInt(_0x409956(0x1d5))/0x3*(-parseInt(_0x409956(0x1d4))/0x4)+parseInt(_0x409956(0x1f3))/0x5*(-parseInt(_0x409956(0x1d2))/0x6)+-parseInt(_0x409956(0x1ff))/0x7+parseInt(_0x409956(0x1f1))/0x8*(parseInt(_0x409956(0x1b2))/0x9)+parseInt(_0x409956(0x1fb))/0xa*(-parseInt(_0x409956(0x1f8))/0xb)+parseInt(_0x409956(0x1d6))/0xc;if(_0x51a7e6===_0x5037a2)break;else _0x4314c8['push'](_0x4314c8['shift']());}catch(_0x114255){_0x4314c8['push'](_0x4314c8['shift']());}}}(a24_0x5c42,0x68043));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a24_0x5c42(){const _0x5a18de=['\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','description','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\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','helpExtra','write','\x20on\x20dataset\x20','Get\x20a\x20single\x20record\x20by\x20ID','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','code','high-risk-write','map','\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\x20AGGREGATE\x20TYPES','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','1vjUWqD','delete','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\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}','getOne','\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\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}','/api/{appCode}/','length','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','Filter\x20dataset\x20records\x20with\x20query\x20conditions','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','6FjXozE','paramsRequired','1356cosjwO','4965FdZUbs','11356596aIyQhQ','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','filter','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\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}}','\x20\x20EXAMPLES','command','\x20\x20WHERE\x20OPERATORS','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','update','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','batchCreate','POST','str','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','data\x20','read','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','\x20\x20\x20\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\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','\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}}','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20completed\x20in\x20','1950728qkpVix','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','2707665UGZGUk','body','params','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','3751495UOwANi','\x20\x20PAGINATION','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','10mOVcqx','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','build','paramsHint','4083555ytxjTH','\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}}]}','risk','operation','aggregate','now','281450JEyWHH','\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\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','batch','\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}}','Preview:\x20data\x20','create','9ERMKhE','Update\x20an\x20existing\x20record'];a24_0x5c42=function(){return _0x5a18de;};return a24_0x5c42();}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_0x15e113(0x1d9),'operation':a24_0x15e113(0x1d9),'risk':'read','paramsRequired':![],'description':a24_0x15e113(0x1d0),'paramsHint':a24_0x15e113(0x1da)+a24_0x15e113(0x1d1),'helpExtra':[a24_0x15e113(0x1df),a24_0x15e113(0x1b4),a24_0x15e113(0x1ee),a24_0x15e113(0x206),'\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\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_0x15e113(0x207),a24_0x15e113(0x1f7),a24_0x15e113(0x1dc),a24_0x15e113(0x20b),'',a24_0x15e113(0x1e0),a24_0x15e113(0x1c3),a24_0x15e113(0x200),'',a24_0x15e113(0x1c8),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)',a24_0x15e113(0x1bd),'\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}]',a24_0x15e113(0x1fa),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a24_0x15e113(0x1f9),a24_0x15e113(0x1be),'\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27',a24_0x15e113(0x1f2)]['join']('\x0a')},{'command':a24_0x15e113(0x1ca),'operation':a24_0x15e113(0x1ca),'risk':a24_0x15e113(0x1ea),'paramsRequired':!![],'description':a24_0x15e113(0x1bc),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a24_0x15e113(0x1b1),'operation':a24_0x15e113(0x1b1),'risk':a24_0x15e113(0x1ba),'paramsRequired':!![],'description':a24_0x15e113(0x1f6),'paramsHint':a24_0x15e113(0x1cf)},{'command':a24_0x15e113(0x1e4),'operation':'batchCreate','risk':a24_0x15e113(0x1ba),'paramsRequired':!![],'description':a24_0x15e113(0x1c5),'paramsHint':a24_0x15e113(0x1fc)},{'command':a24_0x15e113(0x1e2),'operation':'update','risk':'write','paramsRequired':!![],'description':a24_0x15e113(0x1b3),'paramsHint':a24_0x15e113(0x1db)+a24_0x15e113(0x1e3)},{'command':a24_0x15e113(0x1c7),'operation':'delete','risk':a24_0x15e113(0x1c1),'paramsRequired':!![],'description':a24_0x15e113(0x1d7),'paramsHint':a24_0x15e113(0x1ef)},{'command':a24_0x15e113(0x203),'operation':a24_0x15e113(0x203),'risk':a24_0x15e113(0x1ea),'paramsRequired':![],'description':a24_0x15e113(0x208),'paramsHint':a24_0x15e113(0x209)+a24_0x15e113(0x1bf),'helpExtra':[a24_0x15e113(0x1c4),a24_0x15e113(0x1eb),a24_0x15e113(0x1c9),'\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}',a24_0x15e113(0x1cc),a24_0x15e113(0x1ec),a24_0x15e113(0x1e7),a24_0x15e113(0x1e1),'','\x20\x20PARAMS\x20STRUCTURE',a24_0x15e113(0x1cb),a24_0x15e113(0x1b5),'\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_0x15e113(0x1d8),'\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_0x15e113(0x1ed),'',a24_0x15e113(0x1dd),a24_0x15e113(0x1b7),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter',a24_0x15e113(0x1b8),'',a24_0x15e113(0x1e8)]['join']('\x0a')}];function makeDataCommand(_0x3b49d2){const _0x175881=a24_0x15e113,_0x20599f=_0x175881(0x1e9)+_0x3b49d2[_0x175881(0x1de)],_0x4b991b={'service':'data','command':_0x3b49d2[_0x175881(0x1de)],'description':_0x3b49d2['description'],'risk':_0x3b49d2[_0x175881(0x201)],'helpExtra':_0x3b49d2[_0x175881(0x1b9)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x3b49d2[_0x175881(0x1fe)]}],'validate':async _0x1c5a25=>{const _0x4c765f=_0x175881;_0x3b49d2[_0x4c765f(0x1d3)]&&requireAnyOf(_0x1c5a25,['params'],_0x20599f),_0x3b49d2['operation']===_0x4c765f(0x1e4)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x1c5a25['str'](_0x4c765f(0x1f5)))),_0x3b49d2[_0x4c765f(0x202)]===_0x4c765f(0x1e2)&&parseUpdateIdsFromParams(parseJsonParams(_0x1c5a25['str']('params'))??{});},async 'execute'(_0x3f004b){const _0x325603=_0x175881,_0x321acf=_0x3f004b[_0x325603(0x1e6)](_0x325603(0x1c0)),_0x5b1c13=_0x3b49d2[_0x325603(0x202)]===_0x325603(0x1e4)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3f004b[_0x325603(0x1e6)](_0x325603(0x1f5)))):parseJsonParams(_0x3f004b[_0x325603(0x1e6)](_0x325603(0x1f5)))??{},_0x50ce7d=_0x3b49d2[_0x325603(0x202)]===_0x325603(0x1e2)?parseUpdateIdsFromParams(_0x5b1c13):undefined,_0x119e21=_0x50ce7d?normalizeUpdateParamsForRuntime(_0x5b1c13,_0x50ce7d):_0x5b1c13,_0x3a140a=Date[_0x325603(0x204)](),_0x4d480d=await executeData(_0x321acf,_0x3b49d2[_0x325603(0x202)],_0x119e21),_0x35fa7b=Date[_0x325603(0x204)]()-_0x3a140a,_0x152446=_0x50ce7d&&_0x50ce7d[_0x325603(0x1ce)]>0x1?buildBatchUpdateResult(_0x50ce7d,_0x4d480d):_0x4d480d;return{'ok':!![],'data':{'result':_0x152446,'elapsed':_0x35fa7b},'message':_0x325603(0x1e9)+_0x3b49d2[_0x325603(0x1de)]+_0x325603(0x1f0)+_0x35fa7b+'ms'};}};return _0x3b49d2['risk']!==_0x175881(0x1ea)&&(_0x4b991b['dryRun']=async _0x4bfb63=>{const _0x353ca7=_0x175881,_0x131192=_0x4bfb63[_0x353ca7(0x1e6)]('code'),_0x2ff36d=_0x3b49d2[_0x353ca7(0x202)]===_0x353ca7(0x1e4)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x4bfb63[_0x353ca7(0x1e6)](_0x353ca7(0x1f5)))):parseJsonParams(_0x4bfb63[_0x353ca7(0x1e6)](_0x353ca7(0x1f5)))??{};let _0x481673=_0x2ff36d;if(_0x3b49d2[_0x353ca7(0x202)]===_0x353ca7(0x1e2)){const _0x153a53=parseUpdateIdsFromParams(_0x2ff36d);_0x481673=normalizeUpdateParamsForRuntime(_0x2ff36d,_0x153a53);}return dryRun(_0x353ca7(0x1e5),_0x353ca7(0x1cd)+_0x131192+'/'+_0x3b49d2[_0x353ca7(0x202)])[_0x353ca7(0x1f4)](_0x481673)[_0x353ca7(0x1b6)](_0x353ca7(0x1b0)+_0x3b49d2['command']+_0x353ca7(0x1bb)+_0x131192)[_0x353ca7(0x1fd)]();}),_0x4b991b;}export const dataDefinitions=specs[a24_0x15e113(0x1c2)](makeDataCommand);function buildBatchUpdateResult(_0x1ccaf8,_0x38cce8){const _0x4eb087=a24_0x15e113;return{'operation':_0x4eb087(0x1e2),'mode':_0x4eb087(0x20a),'ids':_0x1ccaf8,'total':_0x1ccaf8[_0x4eb087(0x1ce)],'result':_0x38cce8};}
1
+ const a24_0x5e4fa4=a24_0x1b0a;(function(_0x64436b,_0x16c4ee){const _0x5b9e0b=a24_0x1b0a,_0x262bb3=_0x64436b();while(!![]){try{const _0x508290=parseInt(_0x5b9e0b(0x142))/0x1+-parseInt(_0x5b9e0b(0x172))/0x2+parseInt(_0x5b9e0b(0x14f))/0x3*(-parseInt(_0x5b9e0b(0x156))/0x4)+parseInt(_0x5b9e0b(0x136))/0x5*(parseInt(_0x5b9e0b(0x122))/0x6)+parseInt(_0x5b9e0b(0x127))/0x7+parseInt(_0x5b9e0b(0x175))/0x8+-parseInt(_0x5b9e0b(0x12a))/0x9;if(_0x508290===_0x16c4ee)break;else _0x262bb3['push'](_0x262bb3['shift']());}catch(_0x6ed8b2){_0x262bb3['push'](_0x262bb3['shift']());}}}(a24_0xca69,0xea138));function a24_0xca69(){const _0xa35def=['\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','791460FpTgaa','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','length','POST','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\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\x20on\x20dataset\x20','operation','\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','batch','\x20\x20LOGICAL\x20COMBINATORS','dryRun','Get\x20a\x20single\x20record\x20by\x20ID','118401GLWyCC','str','\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\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}','aggregate','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\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}}','76ChHMsK','command','\x20\x20EXAMPLES','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20\x20\x20$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]}}','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\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\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','helpExtra','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','paramsHint','read','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','description','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','params','\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]','filter','\x20\x20AGGREGATE\x20TYPES','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','high-risk-write','getOne','\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}','2530212EoNCTn','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','join','13689008qwhfRF','risk','\x20completed\x20in\x20','\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}','create','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','\x20\x20\x20\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}','delete','653076zoDPwV','code','batchCreate','\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}}','data\x20','11254964dhInzE','Preview:\x20data\x20','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','22965129BXZmoe','\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}}','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','Filter\x20dataset\x20records\x20with\x20query\x20conditions','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','write','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','body','/api/{appCode}/','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','65LfgiUl','data','update','paramsRequired','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','now','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','build'];a24_0xca69=function(){return _0xa35def;};return a24_0xca69();}import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a24_0x1b0a(_0x25c6b5,_0xf045b2){_0x25c6b5=_0x25c6b5-0x11c;const _0xca69f6=a24_0xca69();let _0x1b0a1a=_0xca69f6[_0x25c6b5];return _0x1b0a1a;}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_0x5e4fa4(0x16c),'operation':'filter','risk':a24_0x5e4fa4(0x164),'paramsRequired':![],'description':a24_0x5e4fa4(0x12f),'paramsHint':a24_0x5e4fa4(0x154)+a24_0x5e4fa4(0x12e),'helpExtra':['\x20\x20WHERE\x20OPERATORS',a24_0x5e4fa4(0x15b),a24_0x5e4fa4(0x151),a24_0x5e4fa4(0x129),a24_0x5e4fa4(0x13b),a24_0x5e4fa4(0x15e),a24_0x5e4fa4(0x125),a24_0x5e4fa4(0x15c),a24_0x5e4fa4(0x165),a24_0x5e4fa4(0x12b),a24_0x5e4fa4(0x155),'',a24_0x5e4fa4(0x14c),'\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}',a24_0x5e4fa4(0x140),'',a24_0x5e4fa4(0x173),a24_0x5e4fa4(0x169),'\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_0x5e4fa4(0x141),a24_0x5e4fa4(0x15a),a24_0x5e4fa4(0x135),'','\x20\x20PAGINATION',a24_0x5e4fa4(0x147),'\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)'][a24_0x5e4fa4(0x174)]('\x0a')},{'command':'getOne','operation':a24_0x5e4fa4(0x170),'risk':'read','paramsRequired':!![],'description':a24_0x5e4fa4(0x14e),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a24_0x5e4fa4(0x11e),'operation':a24_0x5e4fa4(0x11e),'risk':a24_0x5e4fa4(0x131),'paramsRequired':!![],'description':a24_0x5e4fa4(0x132),'paramsHint':a24_0x5e4fa4(0x162)},{'command':a24_0x5e4fa4(0x124),'operation':a24_0x5e4fa4(0x124),'risk':a24_0x5e4fa4(0x131),'paramsRequired':!![],'description':a24_0x5e4fa4(0x159),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':'update','operation':a24_0x5e4fa4(0x138),'risk':a24_0x5e4fa4(0x131),'paramsRequired':!![],'description':'Update\x20an\x20existing\x20record','paramsHint':a24_0x5e4fa4(0x130)+'Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27'},{'command':a24_0x5e4fa4(0x121),'operation':a24_0x5e4fa4(0x121),'risk':a24_0x5e4fa4(0x16f),'paramsRequired':!![],'description':a24_0x5e4fa4(0x15d),'paramsHint':a24_0x5e4fa4(0x12c)},{'command':a24_0x5e4fa4(0x153),'operation':a24_0x5e4fa4(0x153),'risk':'read','paramsRequired':![],'description':a24_0x5e4fa4(0x16e),'paramsHint':a24_0x5e4fa4(0x143)+a24_0x5e4fa4(0x146),'helpExtra':[a24_0x5e4fa4(0x16d),a24_0x5e4fa4(0x168),a24_0x5e4fa4(0x152),a24_0x5e4fa4(0x171),a24_0x5e4fa4(0x11d),a24_0x5e4fa4(0x120),a24_0x5e4fa4(0x12d),'\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',a24_0x5e4fa4(0x16b),a24_0x5e4fa4(0x15f),a24_0x5e4fa4(0x13a),a24_0x5e4fa4(0x13d),a24_0x5e4fa4(0x11f),a24_0x5e4fa4(0x166),'',a24_0x5e4fa4(0x158),a24_0x5e4fa4(0x13e),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter',a24_0x5e4fa4(0x14a),'',a24_0x5e4fa4(0x161)]['join']('\x0a')}];function makeDataCommand(_0x21c0e6){const _0x5cd272=a24_0x5e4fa4,_0x353c81='data\x20'+_0x21c0e6['command'],_0x25a0a8={'service':_0x5cd272(0x137),'command':_0x21c0e6[_0x5cd272(0x157)],'description':_0x21c0e6[_0x5cd272(0x167)],'risk':_0x21c0e6[_0x5cd272(0x176)],'helpExtra':_0x21c0e6[_0x5cd272(0x160)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x21c0e6[_0x5cd272(0x163)]}],'validate':async _0x29cff2=>{const _0x5e4b0e=_0x5cd272;_0x21c0e6[_0x5e4b0e(0x139)]&&requireAnyOf(_0x29cff2,[_0x5e4b0e(0x16a)],_0x353c81),_0x21c0e6[_0x5e4b0e(0x149)]===_0x5e4b0e(0x124)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x29cff2['str'](_0x5e4b0e(0x16a)))),_0x21c0e6['operation']===_0x5e4b0e(0x138)&&parseUpdateIdsFromParams(parseJsonParams(_0x29cff2[_0x5e4b0e(0x150)](_0x5e4b0e(0x16a)))??{});},async 'execute'(_0x5f1549){const _0x106045=_0x5cd272,_0x241d80=_0x5f1549[_0x106045(0x150)](_0x106045(0x123)),_0x41745b=_0x21c0e6[_0x106045(0x149)]===_0x106045(0x124)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5f1549[_0x106045(0x150)]('params'))):parseJsonParams(_0x5f1549['str'](_0x106045(0x16a)))??{},_0x3c55e6=_0x21c0e6[_0x106045(0x149)]===_0x106045(0x138)?parseUpdateIdsFromParams(_0x41745b):undefined,_0x120bae=_0x3c55e6?normalizeUpdateParamsForRuntime(_0x41745b,_0x3c55e6):_0x41745b,_0x447582=Date[_0x106045(0x13c)](),_0x3c16ab=await executeData(_0x241d80,_0x21c0e6['operation'],_0x120bae),_0x485d63=Date[_0x106045(0x13c)]()-_0x447582,_0x3f11d1=_0x3c55e6&&_0x3c55e6[_0x106045(0x144)]>0x1?buildBatchUpdateResult(_0x3c55e6,_0x3c16ab):_0x3c16ab;return{'ok':!![],'data':{'result':_0x3f11d1,'elapsed':_0x485d63},'message':_0x106045(0x126)+_0x21c0e6[_0x106045(0x157)]+_0x106045(0x11c)+_0x485d63+'ms'};}};return _0x21c0e6[_0x5cd272(0x176)]!==_0x5cd272(0x164)&&(_0x25a0a8[_0x5cd272(0x14d)]=async _0x1ba140=>{const _0x250c91=_0x5cd272,_0x24962f=_0x1ba140[_0x250c91(0x150)](_0x250c91(0x123)),_0x5e89a4=_0x21c0e6[_0x250c91(0x149)]===_0x250c91(0x124)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x1ba140[_0x250c91(0x150)](_0x250c91(0x16a)))):parseJsonParams(_0x1ba140[_0x250c91(0x150)](_0x250c91(0x16a)))??{};let _0x5411b8=_0x5e89a4;if(_0x21c0e6[_0x250c91(0x149)]===_0x250c91(0x138)){const _0x53248c=parseUpdateIdsFromParams(_0x5e89a4);_0x5411b8=normalizeUpdateParamsForRuntime(_0x5e89a4,_0x53248c);}return dryRun(_0x250c91(0x145),_0x250c91(0x134)+_0x24962f+'/'+_0x21c0e6[_0x250c91(0x149)])[_0x250c91(0x133)](_0x5411b8)[_0x250c91(0x167)](_0x250c91(0x128)+_0x21c0e6['command']+_0x250c91(0x148)+_0x24962f)[_0x250c91(0x13f)]();}),_0x25a0a8;}export const dataDefinitions=specs['map'](makeDataCommand);function buildBatchUpdateResult(_0x5b8009,_0x352779){const _0x203149=a24_0x5e4fa4;return{'operation':_0x203149(0x138),'mode':_0x203149(0x14b),'ids':_0x5b8009,'total':_0x5b8009[_0x203149(0x144)],'result':_0x352779};}
@@ -1 +1 @@
1
- const a25_0x1f1529=a25_0x129e;(function(_0x3981f8,_0x4638e0){const _0x528b66=a25_0x129e,_0x4a2c21=_0x3981f8();while(!![]){try{const _0x4d507b=parseInt(_0x528b66(0x186))/0x1*(parseInt(_0x528b66(0x17d))/0x2)+parseInt(_0x528b66(0x18b))/0x3*(-parseInt(_0x528b66(0x190))/0x4)+parseInt(_0x528b66(0x191))/0x5*(-parseInt(_0x528b66(0x15e))/0x6)+-parseInt(_0x528b66(0x16c))/0x7+-parseInt(_0x528b66(0x14b))/0x8*(-parseInt(_0x528b66(0x176))/0x9)+-parseInt(_0x528b66(0x171))/0xa*(-parseInt(_0x528b66(0x179))/0xb)+parseInt(_0x528b66(0x189))/0xc*(parseInt(_0x528b66(0x18e))/0xd);if(_0x4d507b===_0x4638e0)break;else _0x4a2c21['push'](_0x4a2c21['shift']());}catch(_0x2fdc9b){_0x4a2c21['push'](_0x4a2c21['shift']());}}}(a25_0xdf2e,0x6210f));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a25_0x129e(_0x39990d,_0x3e5e6b){_0x39990d=_0x39990d-0x149;const _0xdf2e50=a25_0xdf2e();let _0x129e75=_0xdf2e50[_0x39990d];return _0x129e75;}import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x34de00){const _0x16f76b=a25_0x129e;if(_0x34de00[_0x16f76b(0x150)])return null;const _0x137651=Boolean(_0x34de00['displayName']!==undefined||_0x34de00['doType']!==undefined);let _0x1d1dec={};if(!_0x137651&&typeof _0x34de00[_0x16f76b(0x177)]==='string')try{_0x1d1dec=JSON['parse'](_0x34de00[_0x16f76b(0x177)]);}catch{}const _0x4398da=_0x137651?_0x34de00[_0x16f76b(0x14c)]:_0x34de00['code'],_0x22041f=_0x137651?_0x34de00[_0x16f76b(0x18c)]:_0x34de00[_0x16f76b(0x14c)],_0x5178eb=_0x137651?_0x34de00['doType']:_0x34de00[_0x16f76b(0x188)]||_0x34de00[_0x16f76b(0x154)],_0x3c76c8=_0x137651?_0x34de00[_0x16f76b(0x17f)]===!![]:_0x1d1dec[_0x16f76b(0x17f)]===!![],_0x53babf=_0x137651?_0x34de00[_0x16f76b(0x169)]===!![]:_0x1d1dec['required']===!![],_0xf61336=_0x137651?_0x34de00['options']??null:_0x1d1dec[_0x16f76b(0x173)]??null,_0x4a2491={'name':_0x4398da,'displayName':_0x22041f||_0x4398da,'type':_0x5178eb,'dbType':_0x34de00[_0x16f76b(0x16f)],'pk':_0x3c76c8,'required':_0x53babf,'description':_0x34de00['description']||undefined};return Array[_0x16f76b(0x14a)](_0xf61336)&&_0xf61336[_0x16f76b(0x14d)]>0x0&&(_0x4a2491[_0x16f76b(0x173)]=_0xf61336),_0x4a2491;}function parseJsonMaybe(_0xf528c7){const _0x1d77cb=a25_0x129e;if(typeof _0xf528c7!==_0x1d77cb(0x152))return _0xf528c7;try{return JSON[_0x1d77cb(0x15b)](_0xf528c7);}catch{return _0xf528c7;}}function normalizeOperationEntry(_0x481bf6,_0x569811){const _0x19ba31=a25_0x129e;if(!_0x569811||typeof _0x569811!=='object')return null;if(!_0x569811[_0x19ba31(0x17e)]||!_0x569811['path'])return null;const _0x89ef3b={'name':_0x481bf6,'method':_0x569811[_0x19ba31(0x17e)],'path':_0x569811['path']};if(_0x569811['host'])_0x89ef3b[_0x19ba31(0x172)]=_0x569811[_0x19ba31(0x172)];if(_0x569811[_0x19ba31(0x18d)]!=null)_0x89ef3b[_0x19ba31(0x18d)]=parseJsonMaybe(_0x569811[_0x19ba31(0x18d)]);if(_0x569811[_0x19ba31(0x164)]!=null)_0x89ef3b[_0x19ba31(0x164)]=parseJsonMaybe(_0x569811['responseBody']);if(_0x569811['beforeScriptId']!=null)_0x89ef3b['beforeScriptId']=_0x569811[_0x19ba31(0x14e)];if(_0x569811[_0x19ba31(0x170)]!=null)_0x89ef3b['afterScriptId']=_0x569811['afterScriptId'];if(Array[_0x19ba31(0x14a)](_0x569811[_0x19ba31(0x184)]))_0x89ef3b['requestFields']=_0x569811[_0x19ba31(0x184)];if(Array['isArray'](_0x569811[_0x19ba31(0x160)]))_0x89ef3b['responseFields']=_0x569811[_0x19ba31(0x160)];return _0x89ef3b;}function a25_0xdf2e(){const _0x39f068=['formatRules','fields','56133PLINHt','extend','dbId','11bQmCoW','entries','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','datasetKey','22StNNuX','method','pkField','source','validateRules','filter','split','requestFields','tableName','51751oAbfDU','allFieldNames','type','10333764eapHMS','doVersion','118299QFEXVN','displayName','requestBody','13LOHlQn','createTimeField','4dCjtaJ','1339165lDpNGJ','dbtableConfig','isArray','168ysdGEG','name','length','beforeScriptId','modelCode','deleted','str','string','tableComment','dataType','detail','logicField','map','indexes','read','relations','parse','operations','trim','12RSCIuX','columnCodeListWithDeleted','responseFields','code','properties','creatorNameField','responseBody','allFields','push','creatorIdField','dbName','required','relatedPageInfoList','appCode','5261326amxTGG','description','labelField','dbType','afterScriptId','1670110YltEbL','host','options'];a25_0xdf2e=function(){return _0x39f068;};return a25_0xdf2e();}function summarizeDbtable(_0x40d0cd){const _0x2da810=a25_0x129e,_0x4ee111={},_0x2adbcc=[_0x2da810(0x178),_0x2da810(0x168),_0x2da810(0x185),_0x2da810(0x17c),_0x2da810(0x17f),_0x2da810(0x165),_0x2da810(0x156),_0x2da810(0x18f),'updateTimeField',_0x2da810(0x167),_0x2da810(0x163),'modifierIdField','modifierNameField',_0x2da810(0x16e),'dblinkInfoDTO'];for(const _0x2d71a9 of _0x2adbcc){if(_0x40d0cd[_0x2d71a9]!==undefined)_0x4ee111[_0x2d71a9]=_0x40d0cd[_0x2d71a9];}return typeof _0x4ee111[_0x2da810(0x165)]===_0x2da810(0x152)&&_0x4ee111[_0x2da810(0x165)][_0x2da810(0x14d)]>0x0&&(_0x4ee111[_0x2da810(0x187)]=_0x4ee111[_0x2da810(0x165)][_0x2da810(0x183)](',')[_0x2da810(0x157)](_0x4f6a4f=>_0x4f6a4f[_0x2da810(0x15d)]())[_0x2da810(0x182)](Boolean)),_0x4ee111;}function normalizeRelatedPages(_0x151889){const _0x390279=a25_0x129e;if(!Array['isArray'](_0x151889))return[];return _0x151889[_0x390279(0x182)](_0x502c35=>_0x502c35&&typeof _0x502c35==='object')[_0x390279(0x157)](_0x104568=>({'id':_0x104568['id'],'type':_0x104568[_0x390279(0x188)],'code':_0x104568[_0x390279(0x161)],'title':_0x104568['title'],'deleted':_0x104568['deleted']===!![]}));}function normalizeFallbackFieldName(_0x402790,_0x30fb42){const _0x478c14=a25_0x129e,_0x25357f=_0x402790[_0x478c14(0x15d)]();if(!_0x25357f)return null;return{'name':_0x25357f,'displayName':_0x25357f,'type':undefined,'dbType':undefined,'pk':_0x25357f===_0x30fb42,'required':![],'description':undefined};}async function loadListFieldFallback(_0x5e8810,_0x470019){const _0xf9aec6=a25_0x129e;if(!_0x5e8810||!_0x470019)return[];try{const _0x186a27=await listDatasets(_0x5e8810,{'code':_0x470019}),_0x9f0b4a=_0x186a27['find'](_0x41960e=>_0x41960e['code']===_0x470019)??_0x186a27[0x0],_0x2de4d3=_0x9f0b4a?.[_0xf9aec6(0x149)]??{},_0x686dd8=typeof _0x2de4d3[_0xf9aec6(0x165)]==='string'?_0x2de4d3['allFields'][_0xf9aec6(0x183)](','):[];return _0x686dd8[_0xf9aec6(0x157)](_0x41082a=>normalizeFallbackFieldName(_0x41082a,_0x2de4d3[_0xf9aec6(0x17f)]))[_0xf9aec6(0x182)](_0x3f7fc5=>_0x3f7fc5!==null);}catch{return[];}}export const datasetDetail={'service':'dataset','command':a25_0x1f1529(0x155),'description':a25_0x1f1529(0x17b),'risk':a25_0x1f1529(0x159),'flags':[CODE_FLAG],async 'execute'(_0x3eb626){const _0x27ca82=a25_0x1f1529,_0x5b4165=await getDatasetDetail(_0x3eb626[_0x27ca82(0x151)]('code')),_0x4a0792=Array[_0x27ca82(0x14a)](_0x5b4165[_0x27ca82(0x175)])?_0x5b4165['fields']:Array[_0x27ca82(0x14a)](_0x5b4165[_0x27ca82(0x162)])?_0x5b4165['properties']:[];let _0x116e43=_0x4a0792[_0x27ca82(0x157)](_0x466c14=>normalizeField(_0x466c14))[_0x27ca82(0x182)](_0xc817fd=>_0xc817fd!==null);_0x116e43[_0x27ca82(0x14d)]===0x0&&(_0x116e43=await loadListFieldFallback(_0x3eb626[_0x27ca82(0x16b)],_0x3eb626[_0x27ca82(0x151)](_0x27ca82(0x161))));const _0x38c7c6=_0x5b4165[_0x27ca82(0x15c)]??{},_0x586bbc=[];for(const [_0x2d6047,_0x5999da]of Object[_0x27ca82(0x17a)](_0x38c7c6)){const _0x22dbf5=normalizeOperationEntry(_0x2d6047,_0x5999da);if(_0x22dbf5)_0x586bbc[_0x27ca82(0x166)](_0x22dbf5);}const _0x4c9c1b=_0x5b4165['dbtableConfig']??{},_0x3fe96e=_0x5b4165['dataset']??{},_0x2c9704=_0x4c9c1b[_0x27ca82(0x178)]!=null?{'id':_0x4c9c1b['dbId'],'name':_0x4c9c1b['dbName']??null}:undefined;let _0x5527c6;return typeof _0x5b4165[_0x27ca82(0x177)]===_0x27ca82(0x152)&&(_0x5527c6=parseJsonMaybe(_0x5b4165[_0x27ca82(0x177)])),{'ok':!![],'data':{'id':_0x5b4165['modelId']??_0x5b4165['id'],'name':_0x5b4165[_0x27ca82(0x14c)],'code':_0x5b4165[_0x27ca82(0x14f)]||_0x5b4165[_0x27ca82(0x161)],'doVersion':_0x5b4165[_0x27ca82(0x18a)],'description':_0x5b4165[_0x27ca82(0x16d)]||_0x3fe96e[_0x27ca82(0x153)]||undefined,'source':_0x5b4165[_0x27ca82(0x180)]||_0x3fe96e['sourceType'],'table':_0x4c9c1b['tableName']||_0x3fe96e[_0x27ca82(0x185)],'datasetKey':_0x4c9c1b[_0x27ca82(0x17c)],'pk':_0x4c9c1b[_0x27ca82(0x17f)],'db':_0x2c9704,'dbtable':summarizeDbtable(_0x4c9c1b),'fields':_0x116e43,'operations':_0x586bbc,'indexes':Array[_0x27ca82(0x14a)](_0x3fe96e[_0x27ca82(0x158)])?_0x3fe96e[_0x27ca82(0x158)]:[],'relations':_0x5b4165[_0x27ca82(0x15a)]??null,'relatedPages':normalizeRelatedPages(_0x5b4165[_0x27ca82(0x16a)]),...Array['isArray'](_0x5b4165[_0x27ca82(0x15f)])?{'columnCodeListWithDeleted':_0x5b4165[_0x27ca82(0x15f)]}:{},'formatRules':Array[_0x27ca82(0x14a)](_0x5b4165[_0x27ca82(0x174)])?_0x5b4165['formatRules']:[],'validateRules':Array['isArray'](_0x5b4165[_0x27ca82(0x181)])?_0x5b4165[_0x27ca82(0x181)]:[],..._0x5527c6!==undefined?{'extend':_0x5527c6}:{},'stats':{'fieldCount':_0x116e43['length'],'operationCount':_0x586bbc[_0x27ca82(0x14d)]}}};}};
1
+ const a25_0x1d420d=a25_0x49b7;(function(_0x10803d,_0x415115){const _0x33c43d=a25_0x49b7,_0x2ab944=_0x10803d();while(!![]){try{const _0x49bc1e=-parseInt(_0x33c43d(0x11e))/0x1+parseInt(_0x33c43d(0x13a))/0x2*(parseInt(_0x33c43d(0x150))/0x3)+parseInt(_0x33c43d(0x158))/0x4*(parseInt(_0x33c43d(0x139))/0x5)+-parseInt(_0x33c43d(0x12c))/0x6*(-parseInt(_0x33c43d(0x127))/0x7)+parseInt(_0x33c43d(0x141))/0x8*(parseInt(_0x33c43d(0x154))/0x9)+-parseInt(_0x33c43d(0x13e))/0xa+parseInt(_0x33c43d(0x136))/0xb*(-parseInt(_0x33c43d(0x146))/0xc);if(_0x49bc1e===_0x415115)break;else _0x2ab944['push'](_0x2ab944['shift']());}catch(_0x2ffe30){_0x2ab944['push'](_0x2ab944['shift']());}}}(a25_0x781a,0xd21a2));function a25_0x49b7(_0x424cd7,_0x2ef160){_0x424cd7=_0x424cd7-0x11b;const _0x781ac1=a25_0x781a();let _0x49b751=_0x781ac1[_0x424cd7];return _0x49b751;}import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x1d56a5){const _0x7ba398=a25_0x49b7;if(_0x1d56a5['deleted'])return null;const _0x38be21=Boolean(_0x1d56a5['displayName']!==undefined||_0x1d56a5[_0x7ba398(0x11f)]!==undefined);let _0xf86fa7={};if(!_0x38be21&&typeof _0x1d56a5['extend']===_0x7ba398(0x12b))try{_0xf86fa7=JSON[_0x7ba398(0x126)](_0x1d56a5[_0x7ba398(0x165)]);}catch{}const _0x4a6e13=_0x38be21?_0x1d56a5[_0x7ba398(0x164)]:_0x1d56a5[_0x7ba398(0x12e)],_0x247b9d=_0x38be21?_0x1d56a5[_0x7ba398(0x14b)]:_0x1d56a5['name'],_0x58f050=_0x38be21?_0x1d56a5[_0x7ba398(0x11f)]:_0x1d56a5[_0x7ba398(0x121)]||_0x1d56a5['dataType'],_0x2a990c=_0x38be21?_0x1d56a5[_0x7ba398(0x151)]===!![]:_0xf86fa7[_0x7ba398(0x151)]===!![],_0x3852cd=_0x38be21?_0x1d56a5['required']===!![]:_0xf86fa7[_0x7ba398(0x13c)]===!![],_0x33a7ad=_0x38be21?_0x1d56a5['options']??null:_0xf86fa7[_0x7ba398(0x161)]??null,_0x47363a={'name':_0x4a6e13,'displayName':_0x247b9d||_0x4a6e13,'type':_0x58f050,'dbType':_0x1d56a5[_0x7ba398(0x13b)],'pk':_0x2a990c,'required':_0x3852cd,'description':_0x1d56a5[_0x7ba398(0x163)]||undefined};return Array[_0x7ba398(0x123)](_0x33a7ad)&&_0x33a7ad[_0x7ba398(0x149)]>0x0&&(_0x47363a[_0x7ba398(0x161)]=_0x33a7ad),_0x47363a;}function parseJsonMaybe(_0x2b02ff){const _0x348fd0=a25_0x49b7;if(typeof _0x2b02ff!==_0x348fd0(0x12b))return _0x2b02ff;try{return JSON[_0x348fd0(0x126)](_0x2b02ff);}catch{return _0x2b02ff;}}function normalizeOperationEntry(_0x17cc6b,_0x4349a9){const _0x5737d9=a25_0x49b7;if(!_0x4349a9||typeof _0x4349a9!==_0x5737d9(0x13f))return null;if(!_0x4349a9[_0x5737d9(0x155)]||!_0x4349a9[_0x5737d9(0x133)])return null;const _0x313868={'name':_0x17cc6b,'method':_0x4349a9[_0x5737d9(0x155)],'path':_0x4349a9['path']};if(_0x4349a9['host'])_0x313868[_0x5737d9(0x159)]=_0x4349a9['host'];if(_0x4349a9[_0x5737d9(0x14f)]!=null)_0x313868[_0x5737d9(0x14f)]=parseJsonMaybe(_0x4349a9['requestBody']);if(_0x4349a9[_0x5737d9(0x12d)]!=null)_0x313868[_0x5737d9(0x12d)]=parseJsonMaybe(_0x4349a9['responseBody']);if(_0x4349a9[_0x5737d9(0x157)]!=null)_0x313868[_0x5737d9(0x157)]=_0x4349a9['beforeScriptId'];if(_0x4349a9[_0x5737d9(0x14c)]!=null)_0x313868[_0x5737d9(0x14c)]=_0x4349a9['afterScriptId'];if(Array['isArray'](_0x4349a9[_0x5737d9(0x131)]))_0x313868['requestFields']=_0x4349a9[_0x5737d9(0x131)];if(Array[_0x5737d9(0x123)](_0x4349a9[_0x5737d9(0x15b)]))_0x313868[_0x5737d9(0x15b)]=_0x4349a9[_0x5737d9(0x15b)];return _0x313868;}function summarizeDbtable(_0x38ba82){const _0xe48aff=a25_0x49b7,_0x272a60={},_0x2b367f=['dbId',_0xe48aff(0x160),'tableName',_0xe48aff(0x148),_0xe48aff(0x151),_0xe48aff(0x12f),_0xe48aff(0x15d),_0xe48aff(0x14a),_0xe48aff(0x11b),_0xe48aff(0x156),_0xe48aff(0x130),'modifierIdField',_0xe48aff(0x11d),'labelField',_0xe48aff(0x14d)];for(const _0xfde01e of _0x2b367f){if(_0x38ba82[_0xfde01e]!==undefined)_0x272a60[_0xfde01e]=_0x38ba82[_0xfde01e];}return typeof _0x272a60['allFields']===_0xe48aff(0x12b)&&_0x272a60[_0xe48aff(0x12f)]['length']>0x0&&(_0x272a60[_0xe48aff(0x122)]=_0x272a60[_0xe48aff(0x12f)][_0xe48aff(0x147)](',')[_0xe48aff(0x13d)](_0x141b4d=>_0x141b4d[_0xe48aff(0x124)]())[_0xe48aff(0x11c)](Boolean)),_0x272a60;}function a25_0x781a(){const _0x23cb80=['tableComment','operations','dbName','options','fields','description','name','extend','source','updateTimeField','filter','modifierNameField','154887uXvcdt','doType','dbtableConfig','type','allFieldNames','isArray','trim','push','parse','1113vpTQdn','indexes','modelCode','dataset','string','63900nLnFLa','responseBody','code','allFields','creatorNameField','requestFields','validateRules','path','str','dbId','1441NIgtWU','columnCodeListWithDeleted','detail','5hLaBpf','746GEgXfV','dbType','required','map','5464790HYZwHB','object','entries','658984YxucqC','title','modelId','doVersion','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','195348RFhBua','split','datasetKey','length','createTimeField','displayName','afterScriptId','dblinkInfoDTO','tableName','requestBody','4068plHVhS','pkField','sourceType','relations','72freHnG','method','creatorIdField','beforeScriptId','3345484boYREb','host','deleted','responseFields','appCode','logicField'];a25_0x781a=function(){return _0x23cb80;};return a25_0x781a();}function normalizeRelatedPages(_0x420f1c){const _0x5f1f9a=a25_0x49b7;if(!Array[_0x5f1f9a(0x123)](_0x420f1c))return[];return _0x420f1c[_0x5f1f9a(0x11c)](_0x2c0301=>_0x2c0301&&typeof _0x2c0301==='object')[_0x5f1f9a(0x13d)](_0x587634=>({'id':_0x587634['id'],'type':_0x587634[_0x5f1f9a(0x121)],'code':_0x587634[_0x5f1f9a(0x12e)],'title':_0x587634[_0x5f1f9a(0x142)],'deleted':_0x587634[_0x5f1f9a(0x15a)]===!![]}));}function normalizeFallbackFieldName(_0x36cab4,_0x384ccc){const _0x47bcf3=a25_0x49b7,_0x3e3f0e=_0x36cab4[_0x47bcf3(0x124)]();if(!_0x3e3f0e)return null;return{'name':_0x3e3f0e,'displayName':_0x3e3f0e,'type':undefined,'dbType':undefined,'pk':_0x3e3f0e===_0x384ccc,'required':![],'description':undefined};}async function loadListFieldFallback(_0x544cfb,_0x25579b){const _0x1faf29=a25_0x49b7;if(!_0x544cfb||!_0x25579b)return[];try{const _0x4ecd88=await listDatasets(_0x544cfb,{'code':_0x25579b}),_0x370985=_0x4ecd88['find'](_0x494f17=>_0x494f17['code']===_0x25579b)??_0x4ecd88[0x0],_0x3644fb=_0x370985?.[_0x1faf29(0x120)]??{},_0x3beb78=typeof _0x3644fb['allFields']===_0x1faf29(0x12b)?_0x3644fb['allFields']['split'](','):[];return _0x3beb78[_0x1faf29(0x13d)](_0x274a65=>normalizeFallbackFieldName(_0x274a65,_0x3644fb[_0x1faf29(0x151)]))[_0x1faf29(0x11c)](_0x276e5a=>_0x276e5a!==null);}catch{return[];}}export const datasetDetail={'service':a25_0x1d420d(0x12a),'command':a25_0x1d420d(0x138),'description':a25_0x1d420d(0x145),'risk':'read','flags':[CODE_FLAG],async 'execute'(_0x34486b){const _0x550292=a25_0x1d420d,_0x1b10c7=await getDatasetDetail(_0x34486b[_0x550292(0x134)]('code')),_0x250467=Array[_0x550292(0x123)](_0x1b10c7['fields'])?_0x1b10c7[_0x550292(0x162)]:Array['isArray'](_0x1b10c7['properties'])?_0x1b10c7['properties']:[];let _0x385b5c=_0x250467[_0x550292(0x13d)](_0x3677bd=>normalizeField(_0x3677bd))[_0x550292(0x11c)](_0x1c2a82=>_0x1c2a82!==null);_0x385b5c['length']===0x0&&(_0x385b5c=await loadListFieldFallback(_0x34486b[_0x550292(0x15c)],_0x34486b[_0x550292(0x134)]('code')));const _0x34af96=_0x1b10c7[_0x550292(0x15f)]??{},_0x33e801=[];for(const [_0x2061cc,_0x12fd11]of Object[_0x550292(0x140)](_0x34af96)){const _0x16f9b8=normalizeOperationEntry(_0x2061cc,_0x12fd11);if(_0x16f9b8)_0x33e801[_0x550292(0x125)](_0x16f9b8);}const _0x3952ee=_0x1b10c7['dbtableConfig']??{},_0x233763=_0x1b10c7[_0x550292(0x12a)]??{},_0x1e5d3f=_0x3952ee['dbId']!=null?{'id':_0x3952ee[_0x550292(0x135)],'name':_0x3952ee[_0x550292(0x160)]??null}:undefined;let _0x53ed66;return typeof _0x1b10c7[_0x550292(0x165)]===_0x550292(0x12b)&&(_0x53ed66=parseJsonMaybe(_0x1b10c7[_0x550292(0x165)])),{'ok':!![],'data':{'id':_0x1b10c7[_0x550292(0x143)]??_0x1b10c7['id'],'name':_0x1b10c7[_0x550292(0x164)],'code':_0x1b10c7[_0x550292(0x129)]||_0x1b10c7[_0x550292(0x12e)],'doVersion':_0x1b10c7[_0x550292(0x144)],'description':_0x1b10c7[_0x550292(0x163)]||_0x233763[_0x550292(0x15e)]||undefined,'source':_0x1b10c7[_0x550292(0x166)]||_0x233763[_0x550292(0x152)],'table':_0x3952ee[_0x550292(0x14e)]||_0x233763[_0x550292(0x14e)],'datasetKey':_0x3952ee[_0x550292(0x148)],'pk':_0x3952ee['pkField'],'db':_0x1e5d3f,'dbtable':summarizeDbtable(_0x3952ee),'fields':_0x385b5c,'operations':_0x33e801,'indexes':Array[_0x550292(0x123)](_0x233763[_0x550292(0x128)])?_0x233763[_0x550292(0x128)]:[],'relations':_0x1b10c7[_0x550292(0x153)]??null,'relatedPages':normalizeRelatedPages(_0x1b10c7['relatedPageInfoList']),...Array[_0x550292(0x123)](_0x1b10c7[_0x550292(0x137)])?{'columnCodeListWithDeleted':_0x1b10c7[_0x550292(0x137)]}:{},'formatRules':Array[_0x550292(0x123)](_0x1b10c7['formatRules'])?_0x1b10c7['formatRules']:[],'validateRules':Array[_0x550292(0x123)](_0x1b10c7[_0x550292(0x132)])?_0x1b10c7[_0x550292(0x132)]:[],..._0x53ed66!==undefined?{'extend':_0x53ed66}:{},'stats':{'fieldCount':_0x385b5c['length'],'operationCount':_0x33e801[_0x550292(0x149)]}}};}};
@@ -1 +1 @@
1
- function a26_0x5734(){const _0x1b650d=['86rQYMqd','755715QoLVQh','773124DhIPpc','5760mPbLCe','328ccuLzH','3091830ZaOoqG','8400nbHUoC','4jheSwU','596608DEEwql','3329285ohWMHs'];a26_0x5734=function(){return _0x1b650d;};return a26_0x5734();}(function(_0xf4ce2e,_0x5c8d84){const _0x191e07=a26_0x256a,_0x2f2dd2=_0xf4ce2e();while(!![]){try{const _0x1530ab=parseInt(_0x191e07(0x64))/0x1*(-parseInt(_0x191e07(0x68))/0x2)+parseInt(_0x191e07(0x65))/0x3+parseInt(_0x191e07(0x6b))/0x4*(-parseInt(_0x191e07(0x6d))/0x5)+-parseInt(_0x191e07(0x66))/0x6+parseInt(_0x191e07(0x69))/0x7+-parseInt(_0x191e07(0x6c))/0x8+-parseInt(_0x191e07(0x67))/0x9*(-parseInt(_0x191e07(0x6a))/0xa);if(_0x1530ab===_0x5c8d84)break;else _0x2f2dd2['push'](_0x2f2dd2['shift']());}catch(_0x1be51e){_0x2f2dd2['push'](_0x2f2dd2['shift']());}}}(a26_0x5734,0x54e9c));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a26_0x256a(_0x4d6e7d,_0xb838e3){_0x4d6e7d=_0x4d6e7d-0x64;const _0x57341b=a26_0x5734();let _0x256a6b=_0x57341b[_0x4d6e7d];return _0x256a6b;}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ (function(_0x38621b,_0x55a1c6){const _0x10a4cf=a26_0x1961,_0x3a969f=_0x38621b();while(!![]){try{const _0x115583=-parseInt(_0x10a4cf(0x1cc))/0x1*(-parseInt(_0x10a4cf(0x1d0))/0x2)+parseInt(_0x10a4cf(0x1d2))/0x3*(-parseInt(_0x10a4cf(0x1d1))/0x4)+-parseInt(_0x10a4cf(0x1cf))/0x5*(parseInt(_0x10a4cf(0x1d3))/0x6)+-parseInt(_0x10a4cf(0x1cb))/0x7+-parseInt(_0x10a4cf(0x1ce))/0x8*(parseInt(_0x10a4cf(0x1d4))/0x9)+parseInt(_0x10a4cf(0x1ca))/0xa*(-parseInt(_0x10a4cf(0x1cd))/0xb)+-parseInt(_0x10a4cf(0x1c9))/0xc*(-parseInt(_0x10a4cf(0x1d5))/0xd);if(_0x115583===_0x55a1c6)break;else _0x3a969f['push'](_0x3a969f['shift']());}catch(_0x5c636d){_0x3a969f['push'](_0x3a969f['shift']());}}}(a26_0x4a40,0xa97ab));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a26_0x1961(_0x30c9a6,_0x4b6b98){_0x30c9a6=_0x30c9a6-0x1c9;const _0x4a4009=a26_0x4a40();let _0x1961b2=_0x4a4009[_0x30c9a6];return _0x1961b2;}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];function a26_0x4a40(){const _0xc45494=['228261KpZLKq','32HhpDYx','412565VJvnrq','149106JFGqhT','136352ZIjvNU','81tXYBKB','78duDvwm','2031660wqzxrC','1274fCmwTh','382740NXiWpH','120wWGOro','4399220pcwnfU','18tNGTSo'];a26_0x4a40=function(){return _0xc45494;};return a26_0x4a40();}
@@ -1 +1 @@
1
- function a27_0x5ca1(_0x4c144e,_0x52599e){_0x4c144e=_0x4c144e-0x6d;const _0x805cb7=a27_0x805c();let _0x5ca143=_0x805cb7[_0x4c144e];return _0x5ca143;}const a27_0x232138=a27_0x5ca1;(function(_0x3b115a,_0xd9d695){const _0x5dfa4d=a27_0x5ca1,_0x39382a=_0x3b115a();while(!![]){try{const _0x56b62a=parseInt(_0x5dfa4d(0x7b))/0x1*(-parseInt(_0x5dfa4d(0x74))/0x2)+parseInt(_0x5dfa4d(0x86))/0x3+-parseInt(_0x5dfa4d(0x6d))/0x4*(parseInt(_0x5dfa4d(0x89))/0x5)+parseInt(_0x5dfa4d(0x85))/0x6+parseInt(_0x5dfa4d(0x84))/0x7*(-parseInt(_0x5dfa4d(0x6f))/0x8)+parseInt(_0x5dfa4d(0x78))/0x9*(parseInt(_0x5dfa4d(0x79))/0xa)+parseInt(_0x5dfa4d(0x73))/0xb;if(_0x56b62a===_0xd9d695)break;else _0x39382a['push'](_0x39382a['shift']());}catch(_0x53ef13){_0x39382a['push'](_0x39382a['shift']());}}}(a27_0x805c,0xb0af4));import{listDatasets}from'../../core/api-client.js';function a27_0x805c(){const _0x75dad2=['length','24jMFpUw','dataset','read','pkField','3804361yBuJIb','12MnyqGS','allFields','trim','list','18aoHeAM','3107310WbKqyN','code','158854KDOUdC','description','map','string','str','name','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','dbtableConfig','split','611870VgcxsY','8121012rItrmg','2953440CXtsXD','source','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','5UDUxWX','tableName','5464964LZXWhw'];a27_0x805c=function(){return _0x75dad2;};return a27_0x805c();}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a27_0x232138(0x70),'command':a27_0x232138(0x77),'description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':a27_0x232138(0x71),'flags':[{'name':a27_0x232138(0x80),'type':a27_0x232138(0x7e),'description':a27_0x232138(0x81)},{...CODE_FLAG,'required':![],'description':a27_0x232138(0x88)}],async 'execute'(_0x16a606){const _0x464964=a27_0x232138,_0x327588=_0x16a606['str'](_0x464964(0x80)),_0x28705d=_0x16a606[_0x464964(0x7f)]('code'),_0x299371=await listDatasets(_0x16a606['appCode'],{..._0x327588&&{'name':_0x327588},..._0x28705d&&{'code':_0x28705d}});return{'ok':!![],'data':{'total':_0x299371[_0x464964(0x6e)],'datasets':_0x299371[_0x464964(0x7d)](_0x174ae6=>{const _0x4ad9d6=_0x464964,_0x1d8aa4=_0x174ae6[_0x4ad9d6(0x82)]??{};return{'id':_0x174ae6['id'],'code':_0x174ae6[_0x4ad9d6(0x7a)],'name':_0x174ae6['name'],'source':_0x174ae6[_0x4ad9d6(0x87)],'description':_0x174ae6[_0x4ad9d6(0x7c)],'table':_0x1d8aa4[_0x4ad9d6(0x8a)],'datasetKey':_0x1d8aa4['datasetKey'],'pk':_0x1d8aa4[_0x4ad9d6(0x72)],'fields':_0x1d8aa4[_0x4ad9d6(0x75)]?_0x1d8aa4[_0x4ad9d6(0x75)][_0x4ad9d6(0x83)](',')[_0x4ad9d6(0x7d)](_0x1abeb1=>_0x1abeb1[_0x4ad9d6(0x76)]()):[]};})}};}};
1
+ const a27_0x169033=a27_0x2913;(function(_0x2918c7,_0xd39b27){const _0x5aa7c7=a27_0x2913,_0x1f6994=_0x2918c7();while(!![]){try{const _0x5d2f72=parseInt(_0x5aa7c7(0x191))/0x1+parseInt(_0x5aa7c7(0x1a4))/0x2+-parseInt(_0x5aa7c7(0x196))/0x3*(-parseInt(_0x5aa7c7(0x19f))/0x4)+-parseInt(_0x5aa7c7(0x193))/0x5*(-parseInt(_0x5aa7c7(0x1a0))/0x6)+-parseInt(_0x5aa7c7(0x1a5))/0x7+-parseInt(_0x5aa7c7(0x192))/0x8+parseInt(_0x5aa7c7(0x19d))/0x9*(-parseInt(_0x5aa7c7(0x194))/0xa);if(_0x5d2f72===_0xd39b27)break;else _0x1f6994['push'](_0x1f6994['shift']());}catch(_0x569254){_0x1f6994['push'](_0x1f6994['shift']());}}}(a27_0x4cd5,0x799b6));import{listDatasets}from'../../core/api-client.js';function a27_0x4cd5(){const _0x45a17d=['dataset','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','code','825938QBszVi','7387912iKlpRo','75KrnWXH','8860JVDaUP','appCode','516GqxVzW','map','split','source','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','description','string','7281wIEXGT','datasetKey','14056lPcAkd','31818dcmaVj','pkField','str','dbtableConfig','1715250InXYgP','1604057czsRCF','read','trim','length','allFields','name'];a27_0x4cd5=function(){return _0x45a17d;};return a27_0x4cd5();}import{CODE_FLAG}from'../../commands/common/flags.js';function a27_0x2913(_0x11cf93,_0x5ae474){_0x11cf93=_0x11cf93-0x18b;const _0x4cd525=a27_0x4cd5();let _0x2913ab=_0x4cd525[_0x11cf93];return _0x2913ab;}export const datasetList={'service':a27_0x169033(0x18d),'command':'list','description':a27_0x169033(0x19a),'risk':a27_0x169033(0x1a6),'flags':[{'name':a27_0x169033(0x18c),'type':a27_0x169033(0x19c),'description':a27_0x169033(0x18f)},{...CODE_FLAG,'required':![],'description':a27_0x169033(0x18e)}],async 'execute'(_0x5b3cfc){const _0x316920=a27_0x169033,_0x50a96e=_0x5b3cfc[_0x316920(0x1a2)](_0x316920(0x18c)),_0x10f390=_0x5b3cfc[_0x316920(0x1a2)](_0x316920(0x190)),_0x11053f=await listDatasets(_0x5b3cfc[_0x316920(0x195)],{..._0x50a96e&&{'name':_0x50a96e},..._0x10f390&&{'code':_0x10f390}});return{'ok':!![],'data':{'total':_0x11053f[_0x316920(0x1a8)],'datasets':_0x11053f['map'](_0x7277f8=>{const _0x3fc6cd=_0x316920,_0x4ab4b9=_0x7277f8[_0x3fc6cd(0x1a3)]??{};return{'id':_0x7277f8['id'],'code':_0x7277f8[_0x3fc6cd(0x190)],'name':_0x7277f8[_0x3fc6cd(0x18c)],'source':_0x7277f8[_0x3fc6cd(0x199)],'description':_0x7277f8[_0x3fc6cd(0x19b)],'table':_0x4ab4b9['tableName'],'datasetKey':_0x4ab4b9[_0x3fc6cd(0x19e)],'pk':_0x4ab4b9[_0x3fc6cd(0x1a1)],'fields':_0x4ab4b9['allFields']?_0x4ab4b9[_0x3fc6cd(0x18b)][_0x3fc6cd(0x198)](',')[_0x3fc6cd(0x197)](_0x31c40e=>_0x31c40e[_0x3fc6cd(0x1a7)]()):[]};})}};}};
@@ -1 +1 @@
1
- const a28_0x49fb40=a28_0x1aa4;(function(_0x46b2ba,_0x29d18b){const _0x34098a=a28_0x1aa4,_0x33588d=_0x46b2ba();while(!![]){try{const _0x5efc90=-parseInt(_0x34098a(0x74))/0x1*(-parseInt(_0x34098a(0x78))/0x2)+-parseInt(_0x34098a(0x7f))/0x3*(parseInt(_0x34098a(0x84))/0x4)+parseInt(_0x34098a(0x75))/0x5*(-parseInt(_0x34098a(0x80))/0x6)+parseInt(_0x34098a(0x83))/0x7*(parseInt(_0x34098a(0x7d))/0x8)+parseInt(_0x34098a(0x7a))/0x9*(-parseInt(_0x34098a(0x7c))/0xa)+parseInt(_0x34098a(0x7b))/0xb*(-parseInt(_0x34098a(0x86))/0xc)+-parseInt(_0x34098a(0x76))/0xd*(-parseInt(_0x34098a(0x81))/0xe);if(_0x5efc90===_0x29d18b)break;else _0x33588d['push'](_0x33588d['shift']());}catch(_0x822691){_0x33588d['push'](_0x33588d['shift']());}}}(a28_0x3180,0x4f8a6));function a28_0x3180(){const _0x2c4b90=['20lRYdFX','314327TmTTpY','read','797176lLQucY','string','1635597hzBeXp','5413199LKArnr','10gooBNS','1120EQXeFi','trim','3XXLbYe','435966XnxgPJ','854MhVdHc','appCode','917xegNeX','2406252oyccZT','str','12agEVGG','1RlhBld'];a28_0x3180=function(){return _0x2c4b90;};return a28_0x3180();}import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0x1aa4(_0x320134,_0x565bd7){_0x320134=_0x320134-0x74;const _0x31801c=a28_0x3180();let _0x1aa4fc=_0x31801c[_0x320134];return _0x1aa4fc;}const DEFAULT_MARKDOWN='#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档';export function formatDatasetSdkMarkdown(_0x5437e4){const _0x4cb725=a28_0x1aa4,_0x219fd4=typeof _0x5437e4===_0x4cb725(0x79)?_0x5437e4[_0x4cb725(0x7e)]():'';return _0x219fd4||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':'dataset','command':'sdk-doc','description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':a28_0x49fb40(0x77),'flags':[{...CODE_FLAG,'description':'Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.'}],async 'execute'(_0x442824){const _0x1ea663=a28_0x49fb40,_0x11f988=_0x442824[_0x1ea663(0x85)]('code'),_0x36d22c=await getDatasetSdkUsageDoc(_0x11f988,_0x442824[_0x1ea663(0x82)]);return{'ok':!![],'data':{'code':_0x11f988,'appCode':_0x442824[_0x1ea663(0x82)],'markdown':formatDatasetSdkMarkdown(_0x36d22c)}};}};
1
+ const a28_0x4624ae=a28_0x2993;(function(_0x57d487,_0x2b5587){const _0x20dad3=a28_0x2993,_0xceff06=_0x57d487();while(!![]){try{const _0x59a186=-parseInt(_0x20dad3(0x16d))/0x1+parseInt(_0x20dad3(0x16f))/0x2+parseInt(_0x20dad3(0x166))/0x3+parseInt(_0x20dad3(0x167))/0x4*(parseInt(_0x20dad3(0x16a))/0x5)+-parseInt(_0x20dad3(0x174))/0x6+-parseInt(_0x20dad3(0x173))/0x7+parseInt(_0x20dad3(0x16b))/0x8*(parseInt(_0x20dad3(0x170))/0x9);if(_0x59a186===_0x2b5587)break;else _0xceff06['push'](_0xceff06['shift']());}catch(_0x7f1a7f){_0xceff06['push'](_0xceff06['shift']());}}}(a28_0x1edf,0x204d2));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a28_0x4624ae(0x164);export function formatDatasetSdkMarkdown(_0x5a4c00){const _0x5ec1ac=typeof _0x5a4c00==='string'?_0x5a4c00['trim']():'';return _0x5ec1ac||DEFAULT_MARKDOWN;}function a28_0x2993(_0x1b2d7c,_0x5aa7e6){_0x1b2d7c=_0x1b2d7c-0x164;const _0x1edf17=a28_0x1edf();let _0x299336=_0x1edf17[_0x1b2d7c];return _0x299336;}export const datasetSdkDoc={'service':a28_0x4624ae(0x16e),'command':a28_0x4624ae(0x169),'description':a28_0x4624ae(0x16c),'risk':a28_0x4624ae(0x171),'flags':[{...CODE_FLAG,'description':'Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.'}],async 'execute'(_0x512378){const _0xc788b7=a28_0x4624ae,_0x27e384=_0x512378[_0xc788b7(0x165)](_0xc788b7(0x168)),_0x30b85e=await getDatasetSdkUsageDoc(_0x27e384,_0x512378[_0xc788b7(0x172)]);return{'ok':!![],'data':{'code':_0x27e384,'appCode':_0x512378[_0xc788b7(0x172)],'markdown':formatDatasetSdkMarkdown(_0x30b85e)}};}};function a28_0x1edf(){const _0x1090a9=['dataset','9462ISOoIj','192537jXRbzQ','read','appCode','137858AifWsl','629532hzXHYw','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','str','69138KHOmAP','530396VAbYhA','code','sdk-doc','5SVgteD','40eOYfKC','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','10419kUUKfF'];a28_0x1edf=function(){return _0x1090a9;};return a28_0x1edf();}