@lovrabet/lovrabet-cli 2.1.16 → 2.1.18-beta.1

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 (121) 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 -0
  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.js +1 -1
  97. package/lib/help.js +1 -1
  98. package/lib/skills/npx-skills-add.js +1 -1
  99. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  100. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  101. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  102. package/lib/skills/runtime-skill-sync/links.js +1 -1
  103. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  104. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  105. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  106. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  107. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  108. package/lib/skills/runtime-skill-sync/push.js +1 -1
  109. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  110. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  111. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  112. package/lib/skills/runtime-skill-sync.js +1 -1
  113. package/lib/utils/apply-jq-filter.js +1 -1
  114. package/lib/utils/logger.js +1 -1
  115. package/lib/utils/lossless-json.js +1 -1
  116. package/lib/utils/params.js +1 -1
  117. package/lib/utils/platform.js +1 -1
  118. package/lib/utils/update-notice.js +1 -1
  119. package/lib/utils/version.js +1 -1
  120. package/lib/utils/write-cli-side-channel.js +1 -1
  121. package/package.json +1 -1
@@ -1 +1 @@
1
- const a12_0x3d163e=a12_0x2fcb;(function(_0x2c880a,_0x22a3ce){const _0x1bee34=a12_0x2fcb,_0x304841=_0x2c880a();while(!![]){try{const _0x3817eb=parseInt(_0x1bee34(0x12b))/0x1*(parseInt(_0x1bee34(0x15b))/0x2)+-parseInt(_0x1bee34(0x180))/0x3+parseInt(_0x1bee34(0x176))/0x4+-parseInt(_0x1bee34(0x15a))/0x5*(parseInt(_0x1bee34(0x140))/0x6)+parseInt(_0x1bee34(0x138))/0x7*(parseInt(_0x1bee34(0x151))/0x8)+-parseInt(_0x1bee34(0x16d))/0x9+-parseInt(_0x1bee34(0x14e))/0xa*(-parseInt(_0x1bee34(0x17f))/0xb);if(_0x3817eb===_0x22a3ce)break;else _0x304841['push'](_0x304841['shift']());}catch(_0x257052){_0x304841['push'](_0x304841['shift']());}}}(a12_0x77ee,0xf2a46));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';function a12_0x77ee(){const _0x40ee4d=['code','development','trim','project','push','Option\x20B:\x20apps\x20config\x20(','str','Write\x20to\x20global\x20config\x20(default)','Shorthand\x20for\x20--access-key','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','No\x20AccessKey\x20found\x20in\x20','17709903yyuQDK','AccessKey:\x20','Show\x20current\x20authentication\x20status','Missing\x20accessKey.','string','boolean','\x20scope.','Option\x20C:\x20environment\x20variable','validation','5244972apiWQr','init','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','\x20auth\x20status','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','AccessKey\x20saved\x20to\x20','Clear\x20from\x20global\x20config\x20(default)','bool','\x20Verify:\x20','11396InooxV','3757305KjJSvm','envName','\x20(via\x20','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','Then\x20verify\x20with:\x20','logout','repeat','\x20Current\x20env:\x20','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','AccessKey\x20(ak_xxx...)','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','4423pYDfEw','daily','Device\x20authorization\x20successful.','status','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','login','slice','global','info','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','11771795hToCAy','\x20config','isTTY','join','ACCESS_KEY','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','access-key','userCenterDisplayName','6KRMgVg','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','accessKey','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','ClientAk','\x20config.','Invalid\x20accessKey\x20format:\x20\x22','AccessKey\x20cleared\x20from\x20','\x20doctor','\x20auth\x20login\x20--access-key\x20<ak_xxx>','Tip:\x20you\x20can\x20also\x20run:','production','Use\x20`','Auth\x20config\x20reinitialized\x20in\x20','8530DWFJGN','read','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','8kqYnYr','=ak_xxx','check','write','access_key','Auth\x20mode:\x20','test','\x20config.\x20Nothing\x20to\x20clear.','auth','4748325cEfGmJ','582qcJbzP','yes','`auth\x20login`\x20does\x20not\x20support\x20--yes.','Clear\x20accessKey\x20from\x20config','env','\x20\x20export\x20','authRequired'];a12_0x77ee=function(){return _0x40ee4d;};return a12_0x77ee();}import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';function a12_0x2fcb(_0x43f89c,_0x152c17){_0x43f89c=_0x43f89c-0x123;const _0x77eedb=a12_0x77ee();let _0x2fcbdd=_0x77eedb[_0x43f89c];return _0x2fcbdd;}import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';import{getUserDomain}from'../../constant/domain.js';import{authDeviceDefinition,readStoredDeviceCode,deleteStoredDeviceCode,fetchDeviceToken,isStoredDeviceCodeExpired}from'../../commands/auth/device.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x4674df=a12_0x2fcb;writeCliSideChannelLine(_0x4674df(0x123)+PRODUCT_CONFIG[_0x4674df(0x13f)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x4674df(0x14a)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x4674df(0x149));}function buildAccessKeySetupGuide(){const _0x553c89=a12_0x2fcb;return['AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x553c89(0x13f)]+':',USER_ACCESS_KEY_CREATE_URL,'Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20'+CLI_BIN_NAME+_0x553c89(0x178)]['join']('\x0a');}function canPromptForAccessKey(_0x2886bd){const _0xf14a27=a12_0x2fcb;return!_0x2886bd['nonInteractive']&&process['stdin'][_0xf14a27(0x13a)]!==![]&&process['stdout'][_0xf14a27(0x13a)]!==![];}function resolveAuthScopeFlags(_0x215894){const _0x28ddc4=a12_0x2fcb;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x215894['bool']('global'),'explicitProject':_0x215894[_0x28ddc4(0x17d)](_0x28ddc4(0x165)),'policy':'global-default'}));}async function resolveAuthWriteInput(_0x159e20){const _0x1593f4=a12_0x2fcb;let _0x2a4a92=(_0x159e20[_0x1593f4(0x168)](_0x1593f4(0x13e))||_0x159e20[_0x1593f4(0x168)]('ak')||'')[_0x1593f4(0x164)]();const _0x41d278=(_0x159e20[_0x1593f4(0x168)]('env')||'')[_0x1593f4(0x164)]();if(!_0x2a4a92&&canPromptForAccessKey(_0x159e20))try{showAccessKeyCreateHint(),_0x2a4a92=await promptAccessKey('');}catch(_0xd4e596){if(isAbortPrompt(_0xd4e596))throw CliErrors['cancelled']();throw _0xd4e596;}if(!_0x2a4a92)throw CliErrors[_0x1593f4(0x175)](_0x1593f4(0x170),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x1593f4(0x157)](_0x2a4a92))throw CliErrors[_0x1593f4(0x175)](_0x1593f4(0x146)+_0x2a4a92+'\x22',_0x1593f4(0x17a));if(!_0x41d278)return{'accessKey':_0x2a4a92};const _0x8aeba1=normalizeEnv(_0x41d278);return{'accessKey':_0x2a4a92,'env':isDaily(_0x8aeba1)?_0x1593f4(0x12c):isDev(_0x8aeba1)?_0x1593f4(0x163):'production'};}export const authDefinitions=[{'service':a12_0x3d163e(0x159),'command':a12_0x3d163e(0x132),'description':'Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','risk':a12_0x3d163e(0x154),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x3d163e(0x13e),'type':a12_0x3d163e(0x171),'description':a12_0x3d163e(0x129)},{'name':'ak','type':a12_0x3d163e(0x171),'description':a12_0x3d163e(0x16a)},{'name':a12_0x3d163e(0x134),'type':a12_0x3d163e(0x172),'description':a12_0x3d163e(0x169),'default':!![]},{'name':'project','type':'boolean','description':a12_0x3d163e(0x16b),'default':![]}],async 'execute'(_0x5db46e){const _0x3ecef4=a12_0x3d163e;if(_0x5db46e[_0x3ecef4(0x17d)](_0x3ecef4(0x15c)))throw CliErrors[_0x3ecef4(0x175)](_0x3ecef4(0x15d),_0x3ecef4(0x14c)+CLI_BIN_NAME+_0x3ecef4(0x130)+CLI_BIN_NAME+_0x3ecef4(0x136));const _0x580f04=(_0x5db46e[_0x3ecef4(0x168)]('access-key')||_0x5db46e[_0x3ecef4(0x168)]('ak')||'')[_0x3ecef4(0x164)]();if(!_0x580f04&&_0x5db46e['nonInteractive'])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x1509e7=await resolveAuthWriteInput(_0x5db46e),_0x51c997=resolveAuthScopeFlags(_0x5db46e),_0x25ca40=readScopedConfig(_0x51c997);_0x25ca40['accessKey']=_0x1509e7['accessKey'];_0x1509e7['env']&&(_0x25ca40['env']=_0x1509e7[_0x3ecef4(0x15f)]);writeScopedConfig(_0x25ca40,_0x51c997);const _0x502a90=_0x51c997[_0x3ecef4(0x134)]?_0x3ecef4(0x134):_0x3ecef4(0x165),_0x5559b9=_0x25ca40[_0x3ecef4(0x15f)]?'\x20Current\x20env:\x20'+_0x25ca40[_0x3ecef4(0x15f)]+'.':'';return{'ok':!![],'message':_0x3ecef4(0x17b)+_0x502a90+_0x3ecef4(0x145)+_0x5559b9+'\x20Verify:\x20'+CLI_BIN_NAME+_0x3ecef4(0x179)};}},{'service':a12_0x3d163e(0x159),'command':a12_0x3d163e(0x177),'description':a12_0x3d163e(0x12a),'risk':a12_0x3d163e(0x154),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x3d163e(0x13e),'type':a12_0x3d163e(0x171),'description':a12_0x3d163e(0x129)},{'name':'ak','type':a12_0x3d163e(0x171),'description':'Shorthand\x20for\x20--access-key'},{'name':'env','type':a12_0x3d163e(0x171),'description':a12_0x3d163e(0x13d)},{'name':a12_0x3d163e(0x134),'type':a12_0x3d163e(0x172),'description':a12_0x3d163e(0x169),'default':!![]},{'name':a12_0x3d163e(0x165),'type':'boolean','description':a12_0x3d163e(0x16b),'default':![]}],async 'execute'(_0x5ba1dc){const _0x5edcea=a12_0x3d163e,_0x2486df=await resolveAuthWriteInput(_0x5ba1dc),_0x4fc4a1=resolveAuthScopeFlags(_0x5ba1dc),_0xe1b765={'accessKey':_0x2486df[_0x5edcea(0x142)]};_0x2486df['env']&&(_0xe1b765[_0x5edcea(0x15f)]=_0x2486df[_0x5edcea(0x15f)]);writeScopedConfig(_0xe1b765,_0x4fc4a1);const _0x2d8506=_0x4fc4a1[_0x5edcea(0x134)]?_0x5edcea(0x134):'project',_0x2e744f=_0xe1b765[_0x5edcea(0x15f)]?_0x5edcea(0x127)+_0xe1b765['env']+'.':'';return{'ok':!![],'message':_0x5edcea(0x14d)+_0x2d8506+_0x5edcea(0x173)+_0x2e744f+_0x5edcea(0x17e)+CLI_BIN_NAME+_0x5edcea(0x179)};}},{'service':'auth','command':a12_0x3d163e(0x125),'description':a12_0x3d163e(0x15e),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x3d163e(0x134),'type':a12_0x3d163e(0x172),'description':a12_0x3d163e(0x17c),'default':!![]},{'name':'project','type':a12_0x3d163e(0x172),'description':a12_0x3d163e(0x143),'default':![]}],async 'execute'(_0x21598e){const _0x3db348=a12_0x3d163e,_0x464706=resolveAuthScopeFlags(_0x21598e),_0x4410a0=readScopedConfig(_0x464706),_0x12a635=!!_0x4410a0['accessKey'];delete _0x4410a0[_0x3db348(0x142)],writeScopedConfig(_0x4410a0,_0x464706);const _0x49f162=_0x464706[_0x3db348(0x134)]?'global':'project';if(_0x12a635)return{'ok':!![],'message':_0x3db348(0x147)+_0x49f162+_0x3db348(0x145)};return{'ok':!![],'message':_0x3db348(0x16c)+_0x49f162+_0x3db348(0x158)};}},{'service':'auth','command':a12_0x3d163e(0x12e),'description':a12_0x3d163e(0x16f),'risk':a12_0x3d163e(0x14f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x3d163e(0x134),'type':a12_0x3d163e(0x172),'description':'Read\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a12_0x3d163e(0x165),'type':'boolean','description':a12_0x3d163e(0x141),'default':![]},{'name':a12_0x3d163e(0x153),'type':a12_0x3d163e(0x172),'description':'Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','default':![]}],async 'execute'(_0x20e49a){const _0x42361a=a12_0x3d163e,_0x124156=resolveAuthScopeFlags(_0x20e49a),_0x214ea1=readScopedConfig(_0x124156),_0x12a697=productEnvName(_0x42361a(0x13c)),_0x25307a=productEnv('ACCESS_KEY')||undefined,_0xcfbf0b=_0x214ea1['accessKey']||undefined,_0x56ca6d=_0x25307a||_0xcfbf0b,_0x25bc51=_0x25307a?_0x12a697+'\x20env\x20var':_0xcfbf0b?(_0x124156[_0x42361a(0x134)]?'global':_0x42361a(0x165))+_0x42361a(0x139):null,_0x4210b4=[_0x42361a(0x156)+AUTH_MODE[_0x42361a(0x144)]];if(_0x56ca6d){const _0x29235d=_0x56ca6d['length']>0x8?''+_0x56ca6d[_0x42361a(0x133)](0x0,0x8)+'*'[_0x42361a(0x126)](_0x56ca6d['length']-0x8):_0x56ca6d;_0x4210b4[_0x42361a(0x166)](_0x42361a(0x16e)+_0x29235d+(_0x25bc51?_0x42361a(0x182)+_0x25bc51+')':''));}if(!_0x56ca6d){_0x4210b4['push'](''),_0x4210b4['push'](_0x42361a(0x128)),_0x4210b4[_0x42361a(0x166)](''),_0x4210b4[_0x42361a(0x166)]('Option\x20A:\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x4210b4['push'](''),_0x4210b4[_0x42361a(0x166)](_0x42361a(0x167)+PRODUCT_CONFIG['newConfigFileName']+')'),_0x4210b4[_0x42361a(0x166)](_0x42361a(0x12f)),_0x4210b4['push'](''),_0x4210b4['push'](_0x42361a(0x174)),_0x4210b4[_0x42361a(0x166)](_0x42361a(0x160)+_0x12a697+_0x42361a(0x152)),_0x4210b4[_0x42361a(0x166)](''),_0x4210b4['push'](_0x42361a(0x124)+CLI_BIN_NAME+_0x42361a(0x179)),_0x4210b4['push'](_0x42361a(0x150)+CLI_BIN_NAME+_0x42361a(0x148));if(_0x20e49a[_0x42361a(0x17d)]('check')){const _0x41e4f1=readStoredDeviceCode();if(_0x41e4f1&&!isStoredDeviceCodeExpired(_0x41e4f1)){const _0x44e88e=getUserDomain(),_0x4da173=await fetchDeviceToken(_0x44e88e,_0x41e4f1[_0x42361a(0x162)]);if(_0x4da173['status']==='success'&&_0x4da173['access_key']){const _0x296deb={'global':_0x41e4f1['scope']===_0x42361a(0x134)},_0x3f2064=readScopedConfig(_0x296deb);return _0x3f2064['accessKey']=_0x4da173[_0x42361a(0x155)],writeScopedConfig(_0x3f2064,_0x296deb),deleteStoredDeviceCode(),{'ok':!![],'message':_0x42361a(0x12d)};}_0x4da173[_0x42361a(0x12e)]==='expired'&&deleteStoredDeviceCode();throw CliErrors[_0x42361a(0x161)](_0x42361a(0x131));}throw CliErrors['authRequired'](_0x4210b4['join']('\x0a'));}}return{'ok':!![],'message':_0x4210b4[_0x42361a(0x13b)]('\x0a')};}},{'service':a12_0x3d163e(0x159),'command':a12_0x3d163e(0x135),'description':a12_0x3d163e(0x137),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x17bce3){const _0x3cb533=a12_0x3d163e,_0x3f1de9=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x3f1de9,'meta':{'env':_0x17bce3[_0x3cb533(0x181)]??_0x3cb533(0x14b)}}};}},authDeviceDefinition];
1
+ const a12_0x442dcb=a12_0x5a10;(function(_0xb553b6,_0x49c7eb){const _0x5bb079=a12_0x5a10,_0xc40c63=_0xb553b6();while(!![]){try{const _0x1d2d20=parseInt(_0x5bb079(0xd6))/0x1*(-parseInt(_0x5bb079(0xb2))/0x2)+-parseInt(_0x5bb079(0xd1))/0x3+-parseInt(_0x5bb079(0xb8))/0x4+-parseInt(_0x5bb079(0xca))/0x5+parseInt(_0x5bb079(0x9b))/0x6+-parseInt(_0x5bb079(0xc3))/0x7+-parseInt(_0x5bb079(0x99))/0x8*(-parseInt(_0x5bb079(0x87))/0x9);if(_0x1d2d20===_0x49c7eb)break;else _0xc40c63['push'](_0xc40c63['shift']());}catch(_0x240655){_0xc40c63['push'](_0xc40c63['shift']());}}}(a12_0x589c,0x3f8f9));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';function a12_0x589c(){const _0x3716a7=['string','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','daily','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','Auth\x20mode:\x20','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','validation','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','envName','check','\x20Current\x20env:\x20','AccessKey:\x20','Show\x20current\x20authentication\x20status','\x20scope.','\x20config','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','Tip:\x20you\x20can\x20also\x20run:','Write\x20to\x20global\x20config\x20(default)','106RJrHzx','auth','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','success','test','1924432tatNBw','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','cancelled','push','trim','login','global-default','AccessKey\x20(ak_xxx...)','write','Then\x20verify\x20with:\x20','\x20Verify:\x20','1246441clpXJt','AccessKey\x20saved\x20to\x20','newConfigFileName','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','slice','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','978865cVLrwQ','ACCESS_KEY','Auth\x20config\x20reinitialized\x20in\x20','=ak_xxx','access_key','boolean','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','1549383jmZqch','Clear\x20accessKey\x20from\x20config','str','expired','\x20config.','8209vBtBEe','\x20\x20export\x20','Use\x20`','stdin','isTTY','Invalid\x20accessKey\x20format:\x20\x22','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','bool','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','join','project\x20config','Shorthand\x20for\x20--access-key','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','Status:\x20valid','stdout','\x20auth\x20login\x20--access-key\x20<ak_xxx>','AccessKey\x20cleared\x20from\x20','504eWkApy','scope','repeat','env','read','Clear\x20from\x20global\x20config\x20(default)','yes','status','development','userCenterDisplayName','access-key','project','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','authRequired','\x20(via\x20','`auth\x20login`\x20does\x20not\x20support\x20--yes.','Option\x20C:\x20environment\x20variable','info','288944DijpOC','accessKey','265314PZqnVO','production','global','length','\x20auth\x20status'];a12_0x589c=function(){return _0x3716a7;};return a12_0x589c();}import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';function a12_0x5a10(_0x1ef96a,_0x587055){_0x1ef96a=_0x1ef96a-0x7b;const _0x589c0b=a12_0x589c();let _0x5a100c=_0x589c0b[_0x1ef96a];return _0x5a100c;}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 _0x3863fb=a12_0x5a10;writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x3863fb(0x90)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x3863fb(0xb0)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x3863fb(0x85));}function buildAccessKeySetupGuide(){const _0x5a39ff=a12_0x5a10;return[_0x5a39ff(0xb4)+PRODUCT_CONFIG[_0x5a39ff(0x90)]+':',USER_ACCESS_KEY_CREATE_URL,_0x5a39ff(0xaf)+CLI_BIN_NAME+_0x5a39ff(0xa1)][_0x5a39ff(0x7f)]('\x0a');}function canPromptForAccessKey(_0x413a67){const _0x103da2=a12_0x5a10;return!_0x413a67['nonInteractive']&&process[_0x103da2(0xd9)][_0x103da2(0xda)]!==![]&&process[_0x103da2(0x84)][_0x103da2(0xda)]!==![];}function resolveAuthScopeFlags(_0x1525a5){const _0x5e2d56=a12_0x5a10;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x1525a5['bool'](_0x5e2d56(0x9d)),'explicitProject':_0x1525a5['bool'](_0x5e2d56(0x92)),'policy':_0x5e2d56(0xbe)}));}async function resolveAuthWriteInput(_0x30b640){const _0x163944=a12_0x5a10;let _0x1fc627=(_0x30b640[_0x163944(0xd3)](_0x163944(0x91))||_0x30b640[_0x163944(0xd3)]('ak')||'')['trim']();const _0x434082=(_0x30b640[_0x163944(0xd3)](_0x163944(0x8a))||'')[_0x163944(0xbc)]();if(!_0x1fc627&&canPromptForAccessKey(_0x30b640))try{showAccessKeyCreateHint(),_0x1fc627=await promptAccessKey('');}catch(_0x286516){if(isAbortPrompt(_0x286516))throw CliErrors[_0x163944(0xba)]();throw _0x286516;}if(!_0x1fc627)throw CliErrors[_0x163944(0xa6)]('Missing\x20accessKey.',buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x163944(0xb7)](_0x1fc627))throw CliErrors[_0x163944(0xa6)](_0x163944(0x7b)+_0x1fc627+'\x22','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars');if(!_0x434082)return{'accessKey':_0x1fc627};const _0x12d2f6=normalizeEnv(_0x434082);return{'accessKey':_0x1fc627,'env':isDaily(_0x12d2f6)?_0x163944(0xa2):isDev(_0x12d2f6)?_0x163944(0x8f):_0x163944(0x9c)};}export const authDefinitions=[{'service':'auth','command':a12_0x442dcb(0xbd),'description':a12_0x442dcb(0xb5),'risk':a12_0x442dcb(0xc0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x442dcb(0x91),'type':a12_0x442dcb(0xa0),'description':a12_0x442dcb(0xbf)},{'name':'ak','type':'string','description':'Shorthand\x20for\x20--access-key'},{'name':'global','type':'boolean','description':a12_0x442dcb(0xb1),'default':!![]},{'name':'project','type':a12_0x442dcb(0xcf),'description':a12_0x442dcb(0x82),'default':![]}],async 'execute'(_0x5376e5){const _0x2a4da9=a12_0x442dcb;if(_0x5376e5[_0x2a4da9(0x7d)](_0x2a4da9(0x8d)))throw CliErrors[_0x2a4da9(0xa6)](_0x2a4da9(0x96),_0x2a4da9(0xd8)+CLI_BIN_NAME+_0x2a4da9(0xc6)+CLI_BIN_NAME+_0x2a4da9(0x7c));const _0xe28970=(_0x5376e5[_0x2a4da9(0xd3)](_0x2a4da9(0x91))||_0x5376e5['str']('ak')||'')[_0x2a4da9(0xbc)]();if(!_0xe28970&&_0x5376e5['nonInteractive'])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x5cfa5b=await resolveAuthWriteInput(_0x5376e5),_0x298e98=resolveAuthScopeFlags(_0x5376e5),_0x22ee36=readScopedConfig(_0x298e98);_0x22ee36[_0x2a4da9(0x9a)]=_0x5cfa5b[_0x2a4da9(0x9a)];_0x5cfa5b[_0x2a4da9(0x8a)]&&(_0x22ee36[_0x2a4da9(0x8a)]=_0x5cfa5b['env']);writeScopedConfig(_0x22ee36,_0x298e98);const _0x2cfc3f=_0x298e98[_0x2a4da9(0x9d)]?_0x2a4da9(0x9d):_0x2a4da9(0x92),_0x254c42=_0x22ee36['env']?_0x2a4da9(0xaa)+_0x22ee36[_0x2a4da9(0x8a)]+'.':'';return{'ok':!![],'message':_0x2a4da9(0xc4)+_0x2cfc3f+_0x2a4da9(0xd5)+_0x254c42+_0x2a4da9(0xc2)+CLI_BIN_NAME+_0x2a4da9(0x9f)};}},{'service':a12_0x442dcb(0xb3),'command':'init','description':a12_0x442dcb(0xa5),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x442dcb(0x91),'type':'string','description':a12_0x442dcb(0xbf)},{'name':'ak','type':a12_0x442dcb(0xa0),'description':a12_0x442dcb(0x81)},{'name':'env','type':'string','description':a12_0x442dcb(0xc8)},{'name':a12_0x442dcb(0x9d),'type':'boolean','description':a12_0x442dcb(0xb1),'default':!![]},{'name':a12_0x442dcb(0x92),'type':'boolean','description':a12_0x442dcb(0x82),'default':![]}],async 'execute'(_0x4c41f7){const _0x5a6ed1=a12_0x442dcb,_0x2376ea=await resolveAuthWriteInput(_0x4c41f7),_0x5d93d4=resolveAuthScopeFlags(_0x4c41f7),_0x4b4666={'accessKey':_0x2376ea['accessKey']};_0x2376ea[_0x5a6ed1(0x8a)]&&(_0x4b4666[_0x5a6ed1(0x8a)]=_0x2376ea[_0x5a6ed1(0x8a)]);writeScopedConfig(_0x4b4666,_0x5d93d4);const _0x4bfb4e=_0x5d93d4[_0x5a6ed1(0x9d)]?_0x5a6ed1(0x9d):_0x5a6ed1(0x92),_0x402ebf=_0x4b4666[_0x5a6ed1(0x8a)]?_0x5a6ed1(0xaa)+_0x4b4666[_0x5a6ed1(0x8a)]+'.':'';return{'ok':!![],'message':_0x5a6ed1(0xcc)+_0x4bfb4e+_0x5a6ed1(0xad)+_0x402ebf+'\x20Verify:\x20'+CLI_BIN_NAME+_0x5a6ed1(0x9f)};}},{'service':a12_0x442dcb(0xb3),'command':'logout','description':a12_0x442dcb(0xd2),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x442dcb(0x9d),'type':a12_0x442dcb(0xcf),'description':a12_0x442dcb(0x8c),'default':!![]},{'name':a12_0x442dcb(0x92),'type':a12_0x442dcb(0xcf),'description':a12_0x442dcb(0xc9),'default':![]}],async 'execute'(_0x380a7f){const _0x113d9b=a12_0x442dcb,_0x196bec=resolveAuthScopeFlags(_0x380a7f),_0x3fb2de=readScopedConfig(_0x196bec),_0x25167c=!!_0x3fb2de['accessKey'];delete _0x3fb2de[_0x113d9b(0x9a)],writeScopedConfig(_0x3fb2de,_0x196bec);const _0x9d80e2=_0x196bec['global']?'global':_0x113d9b(0x92);if(_0x25167c)return{'ok':!![],'message':_0x113d9b(0x86)+_0x9d80e2+'\x20config.'};return{'ok':!![],'message':'No\x20AccessKey\x20found\x20in\x20'+_0x9d80e2+'\x20config.\x20Nothing\x20to\x20clear.'};}},{'service':a12_0x442dcb(0xb3),'command':a12_0x442dcb(0x8e),'description':a12_0x442dcb(0xac),'risk':a12_0x442dcb(0x8b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x442dcb(0x9d),'type':a12_0x442dcb(0xcf),'description':'Read\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a12_0x442dcb(0x92),'type':'boolean','description':'Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]},{'name':a12_0x442dcb(0xa9),'type':a12_0x442dcb(0xcf),'description':a12_0x442dcb(0x93),'default':![]}],async 'execute'(_0x55a631){const _0x18cb5d=a12_0x442dcb,_0x373bd5=resolveAuthScopeFlags(_0x55a631),_0x55214a=readScopedConfig(_0x373bd5),_0x210d36=productEnvName(_0x18cb5d(0xcb)),_0x48e2bd=productEnv(_0x18cb5d(0xcb))||undefined,_0x3346db=_0x55214a[_0x18cb5d(0x9a)]||undefined,_0x48c6a0=_0x48e2bd||_0x3346db,_0x19eabe=_0x48e2bd?_0x210d36+'\x20env\x20var':_0x3346db?(_0x373bd5[_0x18cb5d(0x9d)]?_0x18cb5d(0x9d):_0x18cb5d(0x92))+_0x18cb5d(0xae):null,_0x2401e0=[_0x18cb5d(0xa4)+AUTH_MODE['ClientAk']];if(_0x48c6a0){const _0x4a53e4=_0x48c6a0[_0x18cb5d(0x9e)]>0x8?''+_0x48c6a0[_0x18cb5d(0xc7)](0x0,0x8)+'*'[_0x18cb5d(0x89)](_0x48c6a0['length']-0x8):_0x48c6a0;_0x2401e0[_0x18cb5d(0xbb)](_0x18cb5d(0xab)+_0x4a53e4+(_0x19eabe?_0x18cb5d(0x95)+_0x19eabe+')':'')),_0x2401e0['push']('Status:\x20valid');}if(!_0x48c6a0){_0x2401e0[_0x18cb5d(0xbb)](''),_0x2401e0['push'](_0x18cb5d(0x7e)),_0x2401e0[_0x18cb5d(0xbb)](''),_0x2401e0[_0x18cb5d(0xbb)]('Option\x20A:\x20'+CLI_BIN_NAME+_0x18cb5d(0xa3)),_0x2401e0['push'](''),_0x2401e0[_0x18cb5d(0xbb)]('Option\x20B:\x20apps\x20config\x20('+PRODUCT_CONFIG[_0x18cb5d(0xc5)]+')'),_0x2401e0[_0x18cb5d(0xbb)](_0x18cb5d(0xd0)),_0x2401e0['push'](''),_0x2401e0[_0x18cb5d(0xbb)](_0x18cb5d(0x97)),_0x2401e0['push'](_0x18cb5d(0xd7)+_0x210d36+_0x18cb5d(0xcd)),_0x2401e0[_0x18cb5d(0xbb)](''),_0x2401e0[_0x18cb5d(0xbb)](_0x18cb5d(0xc1)+CLI_BIN_NAME+_0x18cb5d(0x9f)),_0x2401e0['push'](_0x18cb5d(0xb9)+CLI_BIN_NAME+'\x20doctor');if(_0x55a631[_0x18cb5d(0x7d)](_0x18cb5d(0xa9))){const _0x426f99=readStoredDeviceCode();if(_0x426f99&&!isStoredDeviceCodeExpired(_0x426f99)){const _0x4cfe8a=getUserDomain(),_0xaeedb5=await fetchDeviceToken(_0x4cfe8a,_0x426f99['code']);if(_0xaeedb5[_0x18cb5d(0x8e)]===_0x18cb5d(0xb6)&&_0xaeedb5[_0x18cb5d(0xce)]){const _0x3c6cf9={'global':_0x426f99[_0x18cb5d(0x88)]===_0x18cb5d(0x9d)},_0x8da8c1=readScopedConfig(_0x3c6cf9);_0x8da8c1['accessKey']=_0xaeedb5['access_key'],writeScopedConfig(_0x8da8c1,_0x3c6cf9),deleteStoredDeviceCode();const _0x52345d=_0xaeedb5[_0x18cb5d(0xce)],_0x3b7d5d=_0x52345d[_0x18cb5d(0x9e)]>0x8?''+_0x52345d['slice'](0x0,0x8)+'*'[_0x18cb5d(0x89)](_0x52345d[_0x18cb5d(0x9e)]-0x8):_0x52345d,_0x4b7baa=_0x426f99[_0x18cb5d(0x88)]===_0x18cb5d(0x9d)?'global\x20config':_0x18cb5d(0x80);return{'ok':!![],'message':['Auth\x20mode:\x20'+AUTH_MODE['ClientAk'],'AccessKey:\x20'+_0x3b7d5d+_0x18cb5d(0x95)+_0x4b7baa+')',_0x18cb5d(0x83)]['join']('\x0a')};}_0xaeedb5['status']===_0x18cb5d(0xd4)&&deleteStoredDeviceCode();throw CliErrors[_0x18cb5d(0x94)](_0x18cb5d(0xa7));}throw CliErrors[_0x18cb5d(0x94)](_0x2401e0[_0x18cb5d(0x7f)]('\x0a'));}}return{'ok':!![],'message':_0x2401e0[_0x18cb5d(0x7f)]('\x0a')};}},{'service':'auth','command':a12_0x442dcb(0x98),'description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':a12_0x442dcb(0x8b),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x336a8b){const _0x4f70f2=a12_0x442dcb,_0x2c0e2c=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x2c0e2c,'meta':{'env':_0x336a8b[_0x4f70f2(0xa8)]??'production'}}};}},authDeviceDefinition];
@@ -1 +1 @@
1
- (function(_0x5c3cc9,_0x509218){const _0x5628d1=a13_0x3e8c,_0x25b439=_0x5c3cc9();while(!![]){try{const _0x25342f=parseInt(_0x5628d1(0xd9))/0x1*(-parseInt(_0x5628d1(0xde))/0x2)+parseInt(_0x5628d1(0xe6))/0x3+parseInt(_0x5628d1(0xd8))/0x4+parseInt(_0x5628d1(0xe7))/0x5*(-parseInt(_0x5628d1(0xe8))/0x6)+parseInt(_0x5628d1(0xe4))/0x7+parseInt(_0x5628d1(0xe1))/0x8+-parseInt(_0x5628d1(0xdf))/0x9;if(_0x25342f===_0x509218)break;else _0x25b439['push'](_0x25b439['shift']());}catch(_0x239667){_0x25b439['push'](_0x25b439['shift']());}}}(a13_0x2f69,0x97c00));function a13_0x3e8c(_0x2cb819,_0x4fdc3f){_0x2cb819=_0x2cb819-0xd4;const _0x2f69ec=a13_0x2f69();let _0x3e8cbb=_0x2f69ec[_0x2cb819];return _0x3e8cbb;}import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x497027=a13_0x3e8c;super('User\x20aborted\x20prompt'),this['name']=_0x497027(0xe0);}}function a13_0x2f69(){const _0x59607c=['543996aILqLN','1fzhGSE','SIGINT','name','close','stdin','1230484xudVnd','1026531HwzCyz','AbortPrompt','6165392zUSdFq','AccessKey\x20(paste\x20ak_...):\x20','race','2709392fxyydj','removeListener','2115681XzAwBY','26345FSznDl','738CNLzCb','question','):\x20','trim','once'];a13_0x2f69=function(){return _0x59607c;};return a13_0x2f69();}function createSafeRl(){const _0x3fe01f=a13_0x3e8c,_0x70359a=createInterface({'input':process[_0x3fe01f(0xdd)],'output':process['stdout']});let _0x3316d9;const _0x1c2562=new Promise((_0x3e01f1,_0x1f308f)=>{const _0x45fab1=_0x3fe01f;_0x3316d9=()=>{const _0x4f88fc=a13_0x3e8c;_0x3316d9&&(_0x70359a[_0x4f88fc(0xe5)](_0x4f88fc(0xda),_0x3316d9),_0x3316d9=undefined);try{_0x70359a[_0x4f88fc(0xdc)]();}catch{}_0x1f308f(new AbortPrompt());},_0x70359a[_0x45fab1(0xd7)](_0x45fab1(0xda),_0x3316d9);}),_0x173c9f=()=>{const _0x13764e=_0x3fe01f;_0x3316d9&&(_0x70359a[_0x13764e(0xe5)](_0x13764e(0xda),_0x3316d9),_0x3316d9=undefined);try{_0x70359a[_0x13764e(0xdc)]();}catch{}};return{'rl':_0x70359a,'abortPromise':_0x1c2562,'disposeSuccess':_0x173c9f};}export async function promptAccessKey(_0x3b2d7f=''){const _0x351d3a=a13_0x3e8c,{rl:_0x28fd77,abortPromise:_0x4a3fa0,disposeSuccess:_0x434a0a}=createSafeRl(),_0x3f7914=new Promise(_0x506148=>{const _0x3583ea=a13_0x3e8c,_0x2afe14=_0x3b2d7f?'AccessKey\x20('+_0x3b2d7f+_0x3583ea(0xd5):_0x3583ea(0xe2);_0x28fd77[_0x3583ea(0xd4)](_0x2afe14,_0x19933e=>{const _0x315839=_0x3583ea;_0x434a0a(),_0x506148(_0x19933e[_0x315839(0xd6)]()||_0x3b2d7f);});});return Promise[_0x351d3a(0xe3)]([_0x3f7914,_0x4a3fa0]);}export function isAbortPrompt(_0x149d4e){const _0x1468d4=a13_0x3e8c;return _0x149d4e instanceof Error&&_0x149d4e[_0x1468d4(0xdb)]===_0x1468d4(0xe0);}
1
+ (function(_0x54485c,_0x3f55bb){const _0x2bfdaa=a13_0x1780,_0x4ca3b9=_0x54485c();while(!![]){try{const _0x5c200e=parseInt(_0x2bfdaa(0x6f))/0x1*(-parseInt(_0x2bfdaa(0x78))/0x2)+-parseInt(_0x2bfdaa(0x7a))/0x3*(-parseInt(_0x2bfdaa(0x71))/0x4)+parseInt(_0x2bfdaa(0x7b))/0x5+-parseInt(_0x2bfdaa(0x6c))/0x6+parseInt(_0x2bfdaa(0x6e))/0x7+parseInt(_0x2bfdaa(0x72))/0x8*(parseInt(_0x2bfdaa(0x6a))/0x9)+-parseInt(_0x2bfdaa(0x6d))/0xa*(parseInt(_0x2bfdaa(0x79))/0xb);if(_0x5c200e===_0x3f55bb)break;else _0x4ca3b9['push'](_0x4ca3b9['shift']());}catch(_0x51f6e3){_0x4ca3b9['push'](_0x4ca3b9['shift']());}}}(a13_0x4eab,0xba6cf));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x164c64=a13_0x1780;super(_0x164c64(0x74)),this['name']=_0x164c64(0x68);}}function a13_0x1780(_0xe64a56,_0x25fa36){_0xe64a56=_0xe64a56-0x68;const _0x4eab66=a13_0x4eab();let _0x1780bf=_0x4eab66[_0xe64a56];return _0x1780bf;}function createSafeRl(){const _0x48eb93=a13_0x1780,_0x428827=createInterface({'input':process[_0x48eb93(0x69)],'output':process[_0x48eb93(0x7e)]});let _0x192278;const _0x6b0d55=new Promise((_0x2f5c53,_0x4c1c69)=>{const _0x5063e7=_0x48eb93;_0x192278=()=>{const _0x5a04e5=a13_0x1780;_0x192278&&(_0x428827[_0x5a04e5(0x76)]('SIGINT',_0x192278),_0x192278=undefined);try{_0x428827[_0x5a04e5(0x75)]();}catch{}_0x4c1c69(new AbortPrompt());},_0x428827[_0x5063e7(0x7d)]('SIGINT',_0x192278);}),_0x47b8d2=()=>{const _0x1b18bc=_0x48eb93;_0x192278&&(_0x428827[_0x1b18bc(0x76)](_0x1b18bc(0x77),_0x192278),_0x192278=undefined);try{_0x428827[_0x1b18bc(0x75)]();}catch{}};return{'rl':_0x428827,'abortPromise':_0x6b0d55,'disposeSuccess':_0x47b8d2};}function a13_0x4eab(){const _0x1f1b6b=['682RqqNxf','8526793qFeJNy','36OahNDM','4908470PmUqtE','name','once','stdout','AbortPrompt','stdin','284283lCCpck','AccessKey\x20(','1947678UkRpzg','10DuCjQZ','3698611redCiA','4336qMVLAQ','trim','442164zUsFDl','128bBrnjz','AccessKey\x20(paste\x20ak_...):\x20','User\x20aborted\x20prompt','close','removeListener','SIGINT'];a13_0x4eab=function(){return _0x1f1b6b;};return a13_0x4eab();}export async function promptAccessKey(_0x4ffa2d=''){const {rl:_0xd5def5,abortPromise:_0x361912,disposeSuccess:_0x6b815d}=createSafeRl(),_0x2434db=new Promise(_0x334e36=>{const _0x1cfb94=a13_0x1780,_0x51dab3=_0x4ffa2d?_0x1cfb94(0x6b)+_0x4ffa2d+'):\x20':_0x1cfb94(0x73);_0xd5def5['question'](_0x51dab3,_0xc7a768=>{const _0x148760=_0x1cfb94;_0x6b815d(),_0x334e36(_0xc7a768[_0x148760(0x70)]()||_0x4ffa2d);});});return Promise['race']([_0x2434db,_0x361912]);}export function isAbortPrompt(_0x52fca1){const _0x375bee=a13_0x1780;return _0x52fca1 instanceof Error&&_0x52fca1[_0x375bee(0x7c)]===_0x375bee(0x68);}
@@ -1 +1 @@
1
- const a14_0x11d6ab=a14_0x3e66;function a14_0x3e66(_0x21bdd0,_0x170093){_0x21bdd0=_0x21bdd0-0x11c;const _0x2ff03b=a14_0x2ff0();let _0x3e6608=_0x2ff03b[_0x21bdd0];return _0x3e6608;}function a14_0x2ff0(){const _0x52ae23=['appCode','1283435iDBEBi','bff','str','detail','Get\x20a\x20BFF\x20endpoint\x20contract\x20by\x20function\x20name','450PIsjxp','5182674GFgkQu','278192PfzuUb','version','3447808sPvTfN','1110289uxnpiH','gmtModified','1169892CsWtth','1430550pWBjUR','24xiRoyF'];a14_0x2ff0=function(){return _0x52ae23;};return a14_0x2ff0();}(function(_0x3f9f47,_0x13197f){const _0x1db2fd=a14_0x3e66,_0x8ce5e1=_0x3f9f47();while(!![]){try{const _0x46cf27=parseInt(_0x1db2fd(0x11e))/0x1+parseInt(_0x1db2fd(0x121))/0x2+parseInt(_0x1db2fd(0x12a))/0x3+-parseInt(_0x1db2fd(0x122))/0x4*(parseInt(_0x1db2fd(0x124))/0x5)+parseInt(_0x1db2fd(0x120))/0x6+parseInt(_0x1db2fd(0x11d))/0x7+-parseInt(_0x1db2fd(0x12b))/0x8*(parseInt(_0x1db2fd(0x129))/0x9);if(_0x46cf27===_0x13197f)break;else _0x8ce5e1['push'](_0x8ce5e1['shift']());}catch(_0x163c00){_0x8ce5e1['push'](_0x8ce5e1['shift']());}}}(a14_0x2ff0,0xead22));import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a14_0x11d6ab(0x125),'command':a14_0x11d6ab(0x127),'description':a14_0x11d6ab(0x128),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name'}],async 'execute'(_0x3217fd){const _0x40e365=a14_0x11d6ab,_0x10feab=await getBffEndpointContract(_0x3217fd['appCode'],_0x3217fd[_0x40e365(0x126)]('name'));return{'ok':!![],'data':{'appCode':_0x10feab[_0x40e365(0x123)],'functionName':_0x10feab['functionName'],'description':_0x10feab['description']||'(none)','version':_0x10feab[_0x40e365(0x11c)],'gmtModified':_0x10feab[_0x40e365(0x11f)]}};}};
1
+ const a14_0x2f082f=a14_0x549f;(function(_0x425975,_0x17c57e){const _0x5b85be=a14_0x549f,_0x710af0=_0x425975();while(!![]){try{const _0x2c8764=-parseInt(_0x5b85be(0x1e0))/0x1+-parseInt(_0x5b85be(0x1e1))/0x2+-parseInt(_0x5b85be(0x1e9))/0x3+parseInt(_0x5b85be(0x1ec))/0x4+parseInt(_0x5b85be(0x1e8))/0x5*(-parseInt(_0x5b85be(0x1f2))/0x6)+parseInt(_0x5b85be(0x1e7))/0x7*(parseInt(_0x5b85be(0x1ea))/0x8)+-parseInt(_0x5b85be(0x1e6))/0x9*(-parseInt(_0x5b85be(0x1e5))/0xa);if(_0x2c8764===_0x17c57e)break;else _0x710af0['push'](_0x710af0['shift']());}catch(_0x1ac5a0){_0x710af0['push'](_0x710af0['shift']());}}}(a14_0x2a8a,0xb82c0));function a14_0x2a8a(){const _0x1d6e9f=['4065aVfhsj','3558456vlsfOv','529624IgnPIy','(none)','1066284ftCqyk','functionName','version','detail','str','gmtModified','6018RZsCSo','name','108031tZtkoX','1193260LMgVJS','read','description','appCode','2030uRGjZN','112257adaDnD','70uxrzdi'];a14_0x2a8a=function(){return _0x1d6e9f;};return a14_0x2a8a();}function a14_0x549f(_0x69fddf,_0x430ded){_0x69fddf=_0x69fddf-0x1df;const _0x2a8a03=a14_0x2a8a();let _0x549f3f=_0x2a8a03[_0x69fddf];return _0x549f3f;}import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':'bff','command':a14_0x2f082f(0x1ef),'description':'Get\x20a\x20BFF\x20endpoint\x20contract\x20by\x20function\x20name','risk':a14_0x2f082f(0x1e2),'flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name'}],async 'execute'(_0x34cfb7){const _0x188b76=a14_0x2f082f,_0x5b4643=await getBffEndpointContract(_0x34cfb7['appCode'],_0x34cfb7[_0x188b76(0x1f0)](_0x188b76(0x1df)));return{'ok':!![],'data':{'appCode':_0x5b4643[_0x188b76(0x1e4)],'functionName':_0x5b4643[_0x188b76(0x1ed)],'description':_0x5b4643[_0x188b76(0x1e3)]||_0x188b76(0x1eb),'version':_0x5b4643[_0x188b76(0x1ee)],'gmtModified':_0x5b4643[_0x188b76(0x1f1)]}};}};
@@ -1 +1 @@
1
- const a15_0x514ad0=a15_0x122b;function a15_0x40e7(){const _0x5bc15f=['4jrvMjW','3964108GMQHNc','219264mdIdIc','bff','18989008iCxnsj','BFF\x20executed\x20in\x20','str','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','3677394DFiiGB','2350578rGnouc','params','BFF\x20function\x20name\x20to\x20execute','name','1474090LTMLvB','exec','819363pMvXqZ','now'];a15_0x40e7=function(){return _0x5bc15f;};return a15_0x40e7();}(function(_0x389d5f,_0x4b2ca6){const _0x2725d5=a15_0x122b,_0x40c56a=_0x389d5f();while(!![]){try{const _0x23c5e9=-parseInt(_0x2725d5(0x7f))/0x1*(parseInt(_0x2725d5(0x7d))/0x2)+-parseInt(_0x2725d5(0x7b))/0x3+-parseInt(_0x2725d5(0x7e))/0x4+-parseInt(_0x2725d5(0x79))/0x5+-parseInt(_0x2725d5(0x75))/0x6+parseInt(_0x2725d5(0x74))/0x7+parseInt(_0x2725d5(0x70))/0x8;if(_0x23c5e9===_0x4b2ca6)break;else _0x40c56a['push'](_0x40c56a['shift']());}catch(_0xf1864a){_0x40c56a['push'](_0x40c56a['shift']());}}}(a15_0x40e7,0x7c70f));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a15_0x122b(_0x23d7fc,_0x5d71ad){_0x23d7fc=_0x23d7fc-0x6f;const _0x40e776=a15_0x40e7();let _0x122bda=_0x40e776[_0x23d7fc];return _0x122bda;}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a15_0x514ad0(0x6f),'command':a15_0x514ad0(0x7a),'description':a15_0x514ad0(0x73),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':a15_0x514ad0(0x77)},PARAMS_FLAG],async 'execute'(_0x86ba8b){const _0x3b05c4=a15_0x514ad0,_0x296110=parseJsonParams(_0x86ba8b[_0x3b05c4(0x72)](_0x3b05c4(0x76))),_0x21d7ed=Date[_0x3b05c4(0x7c)](),_0x50c143=await executeSdkBff(_0x86ba8b[_0x3b05c4(0x72)](_0x3b05c4(0x78)),_0x296110),_0x55cd1b=Date['now']()-_0x21d7ed;return{'ok':!![],'data':{'result':_0x50c143,'elapsed':_0x55cd1b},'message':_0x3b05c4(0x71)+_0x55cd1b+'ms'};}};
1
+ function a15_0x1a0a(_0x214cf9,_0x1f67b1){_0x214cf9=_0x214cf9-0x148;const _0x4998a6=a15_0x4998();let _0x1a0a59=_0x4998a6[_0x214cf9];return _0x1a0a59;}function a15_0x4998(){const _0x109d81=['3BFCOSY','params','33338061aKQDyK','bff','2464096QbbPWD','17516gPmXzU','80636PxfTas','49serkWP','str','read','4396212GYGIxq','name','exec','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','3510680ixzQjq','BFF\x20function\x20name\x20to\x20execute','now','724578CqYjFF'];a15_0x4998=function(){return _0x109d81;};return a15_0x4998();}const a15_0x2e7e45=a15_0x1a0a;(function(_0x2f22aa,_0x273629){const _0xe14d41=a15_0x1a0a,_0x4fa241=_0x2f22aa();while(!![]){try{const _0x109ddb=-parseInt(_0xe14d41(0x157))/0x1+-parseInt(_0xe14d41(0x158))/0x2*(parseInt(_0xe14d41(0x152))/0x3)+-parseInt(_0xe14d41(0x14a))/0x4+-parseInt(_0xe14d41(0x14e))/0x5+-parseInt(_0xe14d41(0x151))/0x6*(parseInt(_0xe14d41(0x159))/0x7)+-parseInt(_0xe14d41(0x156))/0x8+parseInt(_0xe14d41(0x154))/0x9;if(_0x109ddb===_0x273629)break;else _0x4fa241['push'](_0x4fa241['shift']());}catch(_0x45dca2){_0x4fa241['push'](_0x4fa241['shift']());}}}(a15_0x4998,0xa8e8d));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_0x2e7e45(0x155),'command':a15_0x2e7e45(0x14c),'description':a15_0x2e7e45(0x14d),'risk':a15_0x2e7e45(0x149),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x2e7e45(0x14f)},PARAMS_FLAG],async 'execute'(_0x2ae001){const _0x450a73=a15_0x2e7e45,_0x48ada9=parseJsonParams(_0x2ae001[_0x450a73(0x148)](_0x450a73(0x153))),_0x34c4fe=Date[_0x450a73(0x150)](),_0xe4c25=await executeSdkBff(_0x2ae001['str'](_0x450a73(0x14b)),_0x48ada9),_0x38cfcb=Date[_0x450a73(0x150)]()-_0x34c4fe;return{'ok':!![],'data':{'result':_0xe4c25,'elapsed':_0x38cfcb},'message':'BFF\x20executed\x20in\x20'+_0x38cfcb+'ms'};}};
@@ -1 +1 @@
1
- function a16_0x4a45(_0x4dfef7,_0xbb1b56){_0x4dfef7=_0x4dfef7-0x188;const _0x3008e2=a16_0x3008();let _0x4a4506=_0x3008e2[_0x4dfef7];return _0x4a4506;}function a16_0x3008(){const _0x8ab503=['27064OeBUOe','447530mRqnCG','5wnrQJl','2876732DUpbiv','44mlxzJR','7026YANusE','5495giDmkn','585824dfDvHy','90ZRLmqB','572941cBzHiE','186HjSVfb','9469380jMlVEg'];a16_0x3008=function(){return _0x8ab503;};return a16_0x3008();}(function(_0x3cc190,_0x540328){const _0xe674a3=a16_0x4a45,_0x4a653f=_0x3cc190();while(!![]){try{const _0x277465=-parseInt(_0xe674a3(0x18f))/0x1+-parseInt(_0xe674a3(0x192))/0x2*(parseInt(_0xe674a3(0x190))/0x3)+parseInt(_0xe674a3(0x189))/0x4*(parseInt(_0xe674a3(0x188))/0x5)+parseInt(_0xe674a3(0x18b))/0x6*(parseInt(_0xe674a3(0x18c))/0x7)+parseInt(_0xe674a3(0x18d))/0x8*(-parseInt(_0xe674a3(0x18e))/0x9)+-parseInt(_0xe674a3(0x193))/0xa*(-parseInt(_0xe674a3(0x18a))/0xb)+parseInt(_0xe674a3(0x191))/0xc;if(_0x277465===_0x540328)break;else _0x4a653f['push'](_0x4a653f['shift']());}catch(_0xb7c137){_0x4a653f['push'](_0x4a653f['shift']());}}}(a16_0x3008,0x70e04));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
1
+ function a16_0x3ff5(_0xf3af12,_0x22e2cb){_0xf3af12=_0xf3af12-0x1c8;const _0x455c97=a16_0x455c();let _0x3ff57b=_0x455c97[_0xf3af12];return _0x3ff57b;}(function(_0x441dd0,_0x50aba8){const _0x1c0752=a16_0x3ff5,_0x1a80c6=_0x441dd0();while(!![]){try{const _0x12eed2=-parseInt(_0x1c0752(0x1ce))/0x1+parseInt(_0x1c0752(0x1d0))/0x2*(-parseInt(_0x1c0752(0x1ca))/0x3)+parseInt(_0x1c0752(0x1cf))/0x4+parseInt(_0x1c0752(0x1cb))/0x5*(-parseInt(_0x1c0752(0x1c8))/0x6)+-parseInt(_0x1c0752(0x1cc))/0x7+parseInt(_0x1c0752(0x1cd))/0x8+parseInt(_0x1c0752(0x1c9))/0x9;if(_0x12eed2===_0x50aba8)break;else _0x1a80c6['push'](_0x1a80c6['shift']());}catch(_0x49023f){_0x1a80c6['push'](_0x1a80c6['shift']());}}}(a16_0x455c,0xb3cf0));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a16_0x455c(){const _0x5b8587=['4189593pggpUw','30sTnnve','5796217MzphGo','5118480RImLJw','649752soSROU','371864KqxQLN','2vbPiPm','716736dDXAnb','32352930rDbGgC'];a16_0x455c=function(){return _0x5b8587;};return a16_0x455c();}export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- function a17_0x3902(){const _0xb8b890=['Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','176029QoRPxp','pipe','1842796GVSDCw','\x20-g\x20-y','setLogPath','5789260ecTYPD','cwd','1434504LUJHvp','inherit','unknown','208dHcwLf','cli-skill-install','17280032SNOjjv','apiError','9bHZyix','2ryVBpe','3168130pPuAkN','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','log','info','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','error','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','../../skills/npx-skills-add.js','6qQlLIL','cli-skill','write','692582AYdMhy','skipped'];a17_0x3902=function(){return _0xb8b890;};return a17_0x3902();}function a17_0xe951(_0x11ec86,_0x53a803){_0x11ec86=_0x11ec86-0xc0;const _0x390258=a17_0x3902();let _0xe951d5=_0x390258[_0x11ec86];return _0xe951d5;}const a17_0x30173b=a17_0xe951;(function(_0x4cc812,_0x586d30){const _0x2df331=a17_0xe951,_0x438996=_0x4cc812();while(!![]){try{const _0xbc3ee2=parseInt(_0x2df331(0xc8))/0x1*(parseInt(_0x2df331(0xd4))/0x2)+-parseInt(_0x2df331(0xd1))/0x3*(parseInt(_0x2df331(0xda))/0x4)+parseInt(_0x2df331(0xc9))/0x5+-parseInt(_0x2df331(0xc0))/0x6+parseInt(_0x2df331(0xd8))/0x7*(-parseInt(_0x2df331(0xc3))/0x8)+parseInt(_0x2df331(0xc7))/0x9*(-parseInt(_0x2df331(0xdd))/0xa)+parseInt(_0x2df331(0xc5))/0xb;if(_0xbc3ee2===_0x586d30)break;else _0x438996['push'](_0x438996['shift']());}catch(_0x4a8582){_0x438996['push'](_0x438996['shift']());}}}(a17_0x3902,0x7b052));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a17_0x30173b(0xd2),'command':'install','description':a17_0x30173b(0xcd),'risk':a17_0x30173b(0xd3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2c732f){const _0x5ebe14=a17_0x30173b;logger[_0x5ebe14(0xdc)](process[_0x5ebe14(0xde)]()),logger[_0x5ebe14(0xcc)](_0x5ebe14(0xc4),_0x5ebe14(0xca));const {LOVRABET_SKILL_SOURCE:_0x1a33cf,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x5cbd90,runNpxSkillsAddGlobal:_0x400998}=await import(_0x5ebe14(0xd0)),_0x147d40=_0x2c732f['nonInteractive']?_0x5ebe14(0xd9):_0x5ebe14(0xc1);console[_0x5ebe14(0xcb)](_0x5ebe14(0xcf)+_0x1a33cf+'\x20-g\x20-y)...');const _0x2f95c4=_0x400998(process[_0x5ebe14(0xde)](),_0x1a33cf,{'stdio':_0x147d40});if(_0x2f95c4[_0x5ebe14(0xd5)])console[_0x5ebe14(0xcb)]('Skipped\x20npx\x20('+_0x5cbd90+_0x5ebe14(0xd7));else{if(_0x2f95c4['ok'])console[_0x5ebe14(0xcb)]('CLI\x20Built-in\x20Skill\x20installed');else throw CliErrors[_0x5ebe14(0xc6)]('npx\x20skills\x20add\x20failed:\x20'+(_0x2f95c4[_0x5ebe14(0xce)]||_0x5ebe14(0xc2)),_0x5ebe14(0xd6)+_0x1a33cf+_0x5ebe14(0xdb));}return{'ok':!![]};}}];
1
+ const a17_0x11f926=a17_0x1c3e;function a17_0x3791(){const _0x49dee2=['\x20-g\x20-y)...','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','4950555NYZYNn','log','4YkjJuA','270pAPJNL','\x20-g\x20-y','setLogPath','../../skills/npx-skills-add.js','3511056juIoEb','info','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','apiError','13614535rDQuZV','write','2KnWIwK','cli-skill-install','skipped','141580ZUjoni','CLI\x20Built-in\x20Skill\x20installed','nonInteractive','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','inherit','cwd','2817032ezOXKZ','unknown','error','14wdGTcc','3741225fQVMqM','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','357001HVLJql','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','Skipped\x20npx\x20('];a17_0x3791=function(){return _0x49dee2;};return a17_0x3791();}(function(_0x1b7a49,_0x21e40d){const _0x513215=a17_0x1c3e,_0x150f74=_0x1b7a49();while(!![]){try{const _0x133e2a=parseInt(_0x513215(0x193))/0x1*(parseInt(_0x513215(0x1a5))/0x2)+-parseInt(_0x513215(0x198))/0x3*(-parseInt(_0x513215(0x19a))/0x4)+parseInt(_0x513215(0x191))/0x5+parseInt(_0x513215(0x19f))/0x6+-parseInt(_0x513215(0x190))/0x7*(parseInt(_0x513215(0x18d))/0x8)+-parseInt(_0x513215(0x19b))/0x9*(parseInt(_0x513215(0x1a8))/0xa)+-parseInt(_0x513215(0x1a3))/0xb;if(_0x133e2a===_0x21e40d)break;else _0x150f74['push'](_0x150f74['shift']());}catch(_0x1b3096){_0x150f74['push'](_0x150f74['shift']());}}}(a17_0x3791,0xedc64));import{CliErrors}from'../../errors.js';function a17_0x1c3e(_0x3c948b,_0x2bc233){_0x3c948b=_0x3c948b-0x18c;const _0x3791a0=a17_0x3791();let _0x1c3eb2=_0x3791a0[_0x3c948b];return _0x1c3eb2;}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':'install','description':a17_0x11f926(0x1a1),'risk':a17_0x11f926(0x1a4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x5a4e0c){const _0x304053=a17_0x11f926;logger[_0x304053(0x19d)](process[_0x304053(0x18c)]()),logger[_0x304053(0x1a0)](_0x304053(0x1a6),_0x304053(0x197));const {LOVRABET_SKILL_SOURCE:_0x3b475f,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x157950,runNpxSkillsAddGlobal:_0x3fdc6b}=await import(_0x304053(0x19e)),_0x45d8fa=_0x5a4e0c[_0x304053(0x1aa)]?'pipe':_0x304053(0x1ac);console['log'](_0x304053(0x1ab)+_0x3b475f+_0x304053(0x196));const _0x430c02=_0x3fdc6b(process[_0x304053(0x18c)](),_0x3b475f,{'stdio':_0x45d8fa});if(_0x430c02[_0x304053(0x1a7)])console[_0x304053(0x199)](_0x304053(0x195)+_0x157950+_0x304053(0x194));else{if(_0x430c02['ok'])console[_0x304053(0x199)](_0x304053(0x1a9));else throw CliErrors[_0x304053(0x1a2)]('npx\x20skills\x20add\x20failed:\x20'+(_0x430c02[_0x304053(0x18f)]||_0x304053(0x18e)),_0x304053(0x192)+_0x3b475f+_0x304053(0x19c));}return{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x52e86e,_0x385eaa){const _0x165554=a18_0x19c5,_0x4d5776=_0x52e86e();while(!![]){try{const _0x34cc49=-parseInt(_0x165554(0xd1))/0x1*(parseInt(_0x165554(0xdc))/0x2)+parseInt(_0x165554(0xd6))/0x3*(parseInt(_0x165554(0xc7))/0x4)+parseInt(_0x165554(0xce))/0x5+parseInt(_0x165554(0xd2))/0x6*(-parseInt(_0x165554(0xd9))/0x7)+parseInt(_0x165554(0xd0))/0x8*(-parseInt(_0x165554(0xc8))/0x9)+-parseInt(_0x165554(0xcd))/0xa*(parseInt(_0x165554(0xd3))/0xb)+parseInt(_0x165554(0xd4))/0xc;if(_0x34cc49===_0x385eaa)break;else _0x4d5776['push'](_0x4d5776['shift']());}catch(_0x39fee6){_0x4d5776['push'](_0x4d5776['shift']());}}}(a18_0x2dbd,0xed309));function a18_0x2dbd(){const _0x6ea6ce=['\x20(global)','8zMTVkt','1eoFpUq','18NbesLb','11JPfbLv','52017888AcZzyL','Use\x20only\x20one\x20config\x20scope\x20flag.','453708aqsVcv','global','global-default','3018848tbzAUr',',\x20or\x20run\x20`','project-default','491014hxqthi','newConfigFileName','Add\x20--global\x20to\x20write\x20to\x20~/','project-or-global-explicit','project','inProject','12eFHLBf','8417538HyGrVX','\x20found).','validation','Not\x20inside\x20a\x20project\x20(no\x20','\x20init`\x20first.','16431840QyogmI','1503810IJofkT'];a18_0x2dbd=function(){return _0x6ea6ce;};return a18_0x2dbd();}import{CLI_BIN_NAME}from'../../constant/cli.js';function a18_0x19c5(_0x58ab8c,_0x398297){_0x58ab8c=_0x58ab8c-0xc2;const _0x2dbd52=a18_0x2dbd();let _0x19c503=_0x2dbd52[_0x58ab8c];return _0x19c503;}import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x3a44bc){const _0x25af24=a18_0x19c5,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x5e3098}=_0x3a44bc;if(explicitGlobal&&explicitProject)throw CliErrors[_0x25af24(0xca)]('Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.',_0x25af24(0xd5));if(explicitGlobal)return _0x25af24(0xd7);if(explicitProject)return _0x25af24(0xc5);switch(_0x5e3098){case _0x25af24(0xd8):return _0x25af24(0xd7);case _0x25af24(0xdb):return _0x3a44bc[_0x25af24(0xc6)]??isInProject()?_0x25af24(0xc5):_0x25af24(0xd7);case _0x25af24(0xc4):if(!(_0x3a44bc[_0x25af24(0xc6)]??isInProject()))throw CliErrors[_0x25af24(0xca)](_0x25af24(0xcb)+PRODUCT_CONFIG[_0x25af24(0xc2)]+_0x25af24(0xc9),_0x25af24(0xc3)+PRODUCT_CONFIG['newConfigFileName']+_0x25af24(0xda)+CLI_BIN_NAME+_0x25af24(0xcc));return _0x25af24(0xc5);}}export function toScopeFlags(_0x55aa59){const _0x4325b4=a18_0x19c5;return{'global':_0x55aa59===_0x4325b4(0xd7)};}export function formatScopeLabel(_0x8c0268){const _0x3bb81f=a18_0x19c5;return _0x8c0268===_0x3bb81f(0xd7)?_0x3bb81f(0xcf):'';}
1
+ (function(_0x24999c,_0xb0d30){const _0x2d1ed8=a18_0xafce,_0x67ad81=_0x24999c();while(!![]){try{const _0x47f1b9=-parseInt(_0x2d1ed8(0x1ee))/0x1+-parseInt(_0x2d1ed8(0x1ec))/0x2+-parseInt(_0x2d1ed8(0x1f4))/0x3*(parseInt(_0x2d1ed8(0x1f3))/0x4)+-parseInt(_0x2d1ed8(0x1ea))/0x5+-parseInt(_0x2d1ed8(0x1f5))/0x6+parseInt(_0x2d1ed8(0x1f8))/0x7+parseInt(_0x2d1ed8(0x1f1))/0x8;if(_0x47f1b9===_0xb0d30)break;else _0x67ad81['push'](_0x67ad81['shift']());}catch(_0x56a70b){_0x67ad81['push'](_0x67ad81['shift']());}}}(a18_0x1370,0xc32b8));function a18_0xafce(_0xeeb444,_0x24d82a){_0xeeb444=_0xeeb444-0x1e8;const _0x137037=a18_0x1370();let _0xafced4=_0x137037[_0xeeb444];return _0xafced4;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x2080a7){const _0x3be1ac=a18_0xafce,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x10ab50}=_0x2080a7;if(explicitGlobal&&explicitProject)throw CliErrors[_0x3be1ac(0x1f2)]('Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.',_0x3be1ac(0x1e9));if(explicitGlobal)return _0x3be1ac(0x1e8);if(explicitProject)return _0x3be1ac(0x1f7);switch(_0x10ab50){case _0x3be1ac(0x1f0):return _0x3be1ac(0x1e8);case'project-default':return _0x2080a7['inProject']??isInProject()?_0x3be1ac(0x1f7):_0x3be1ac(0x1e8);case'project-or-global-explicit':if(!(_0x2080a7[_0x3be1ac(0x1ef)]??isInProject()))throw CliErrors[_0x3be1ac(0x1f2)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG[_0x3be1ac(0x1eb)]+_0x3be1ac(0x1ed),'Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG['newConfigFileName']+',\x20or\x20run\x20`'+CLI_BIN_NAME+_0x3be1ac(0x1f6));return _0x3be1ac(0x1f7);}}function a18_0x1370(){const _0x711bb0=['\x20found).','310847FXEwYt','inProject','global-default','14650976pMptwx','validation','135144wpvsQE','69MuVvRO','2039442eAQLNV','\x20init`\x20first.','project','3668119chwgvo','global','Use\x20only\x20one\x20config\x20scope\x20flag.','511110EqgOgM','newConfigFileName','51838OEGojf'];a18_0x1370=function(){return _0x711bb0;};return a18_0x1370();}export function toScopeFlags(_0x483715){const _0x216309=a18_0xafce;return{'global':_0x483715===_0x216309(0x1e8)};}export function formatScopeLabel(_0x4ff250){const _0x200d1b=a18_0xafce;return _0x4ff250===_0x200d1b(0x1e8)?'\x20(global)':'';}
@@ -1 +1 @@
1
- (function(_0x128408,_0x6acbb6){const _0x243f8c=a19_0x1290,_0x2885d1=_0x128408();while(!![]){try{const _0x2cb8cd=parseInt(_0x243f8c(0x141))/0x1*(-parseInt(_0x243f8c(0x136))/0x2)+parseInt(_0x243f8c(0x13a))/0x3*(-parseInt(_0x243f8c(0x13b))/0x4)+-parseInt(_0x243f8c(0x146))/0x5+parseInt(_0x243f8c(0x140))/0x6*(parseInt(_0x243f8c(0x143))/0x7)+-parseInt(_0x243f8c(0x150))/0x8*(parseInt(_0x243f8c(0x14e))/0x9)+parseInt(_0x243f8c(0x14c))/0xa+parseInt(_0x243f8c(0x144))/0xb*(parseInt(_0x243f8c(0x142))/0xc);if(_0x2cb8cd===_0x6acbb6)break;else _0x2885d1['push'](_0x2885d1['shift']());}catch(_0x186b7d){_0x2885d1['push'](_0x2885d1['shift']());}}}(a19_0x2da0,0xc188b));import{CliErrors}from'../../errors.js';function isSet(_0xd55f40,_0xa35fe0){const _0x1079db=a19_0x1290,_0x544078=_0xd55f40[_0x1079db(0x13e)](_0xa35fe0);return _0x544078!==undefined&&_0x544078!==''&&_0x544078!==![]&&_0x544078!==0x0;}function fmtNames(_0x25dc3f){const _0x56a7c5=a19_0x1290;return _0x25dc3f[_0x56a7c5(0x133)](_0x5f136d=>'--'+_0x5f136d)[_0x56a7c5(0x149)](',\x20');}export function requireOneOf(_0x4109eb,_0x25b6e8,_0x5cb1c5){const _0xa638a8=a19_0x1290,_0x3eb7cf=_0x25b6e8[_0xa638a8(0x148)](_0xbd02d4=>isSet(_0x4109eb,_0xbd02d4));if(_0x3eb7cf['length']!==0x1)throw CliErrors[_0xa638a8(0x14a)](_0x3eb7cf['length']===0x0?_0xa638a8(0x13c)+fmtNames(_0x25b6e8)+_0xa638a8(0x13d)+_0x5cb1c5+'`.':_0xa638a8(0x14d)+fmtNames(_0x25b6e8)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x3eb7cf)+'.',_0x3eb7cf['length']===0x0?_0xa638a8(0x14f)+fmtNames(_0x25b6e8):_0xa638a8(0x138));}function a19_0x2da0(){const _0x5e4daa=['8807838qdswsp','43805XgPgAK','5335692QShmpT','7lMJuwl','22gCoDTX','Flags\x20','501205ZLpJXr','test','filter','join','validation','At\x20least\x20one\x20of\x20','7998710fkOQBb','Only\x20one\x20of\x20','2889KChmYF','Provide\x20one\x20of:\x20','4168sgStqm','str','map','length','some','58dReuKE','Use\x20only\x20one\x20of:\x20','Remove\x20all\x20but\x20one.',':\x20expected\x20','744bdEiPR','13332VkMfXo','Exactly\x20one\x20of\x20','\x20is\x20required\x20for\x20`','flag',',\x20got\x20\x22'];a19_0x2da0=function(){return _0x5e4daa;};return a19_0x2da0();}export function requireAnyOf(_0x24b10c,_0x11c81c,_0x21822d){const _0x20394a=a19_0x1290;if(!_0x11c81c[_0x20394a(0x135)](_0xf11dd8=>isSet(_0x24b10c,_0xf11dd8)))throw CliErrors[_0x20394a(0x14a)](_0x20394a(0x14b)+fmtNames(_0x11c81c)+_0x20394a(0x13d)+_0x21822d+'`.',_0x20394a(0x14f)+fmtNames(_0x11c81c));}export function mutuallyExclusive(_0x11f96e,_0xfbaf37,_0x5a8bde){const _0x305abe=a19_0x1290,_0x31b8c6=_0xfbaf37[_0x305abe(0x148)](_0x36667b=>isSet(_0x11f96e,_0x36667b));if(_0x31b8c6[_0x305abe(0x134)]>0x1)throw CliErrors[_0x305abe(0x14a)](_0x305abe(0x145)+fmtNames(_0x31b8c6)+'\x20are\x20mutually\x20exclusive\x20for\x20`'+_0x5a8bde+'`.',_0x305abe(0x137)+fmtNames(_0xfbaf37));}function a19_0x1290(_0x270873,_0x1f1500){_0x270873=_0x270873-0x133;const _0x2da03c=a19_0x2da0();let _0x1290c9=_0x2da03c[_0x270873];return _0x1290c9;}export function validatePattern(_0x1bea0f,_0x2811ce,_0x3393a2,_0x2c96bd){const _0xa4e02f=a19_0x1290,_0x5a4afc=_0x1bea0f[_0xa4e02f(0x151)](_0x2811ce);if(_0x5a4afc&&!_0x3393a2[_0xa4e02f(0x147)](_0x5a4afc))throw CliErrors[_0xa4e02f(0x14a)]('Invalid\x20--'+_0x2811ce+_0xa4e02f(0x139)+_0x2c96bd+_0xa4e02f(0x13f)+_0x5a4afc+'\x22.');}
1
+ (function(_0x444983,_0x4926b4){const _0x5e64ee=a19_0x114c,_0x1b6d4a=_0x444983();while(!![]){try{const _0x36fdb4=-parseInt(_0x5e64ee(0x1bb))/0x1+-parseInt(_0x5e64ee(0x1b3))/0x2+-parseInt(_0x5e64ee(0x1b2))/0x3*(-parseInt(_0x5e64ee(0x1bc))/0x4)+-parseInt(_0x5e64ee(0x1b4))/0x5*(-parseInt(_0x5e64ee(0x1af))/0x6)+-parseInt(_0x5e64ee(0x1ae))/0x7+-parseInt(_0x5e64ee(0x1a9))/0x8+parseInt(_0x5e64ee(0x1b7))/0x9;if(_0x36fdb4===_0x4926b4)break;else _0x1b6d4a['push'](_0x1b6d4a['shift']());}catch(_0x5f0192){_0x1b6d4a['push'](_0x1b6d4a['shift']());}}}(a19_0x2bd9,0xd0a47));function a19_0x114c(_0x438d05,_0x1d2acb){_0x438d05=_0x438d05-0x1a5;const _0x2bd9d3=a19_0x2bd9();let _0x114c04=_0x2bd9d3[_0x438d05];return _0x114c04;}import{CliErrors}from'../../errors.js';function isSet(_0x2d079d,_0xb3609e){const _0x38330c=a19_0x114c,_0x2b03f8=_0x2d079d[_0x38330c(0x1a8)](_0xb3609e);return _0x2b03f8!==undefined&&_0x2b03f8!==''&&_0x2b03f8!==![]&&_0x2b03f8!==0x0;}function a19_0x2bd9(){const _0x4fa75e=['validation','10641687OtctHU','252264HFohLs','some','At\x20least\x20one\x20of\x20','3YsjcnI','1688852ZaPhQy','55KHLxdN','filter','test','30295710EGRczG','Invalid\x20--','Only\x20one\x20of\x20','str','622113MJSLSl','294332nuSQlB','Exactly\x20one\x20of\x20','Flags\x20','Remove\x20all\x20but\x20one.','Use\x20only\x20one\x20of:\x20','\x20is\x20required\x20for\x20`',',\x20got\x20\x22',':\x20expected\x20','flag','487024aFRKDm','length','Provide\x20one\x20of:\x20','join'];a19_0x2bd9=function(){return _0x4fa75e;};return a19_0x2bd9();}function fmtNames(_0x6d0055){const _0xd9f03e=a19_0x114c;return _0x6d0055['map'](_0x4655fb=>'--'+_0x4655fb)[_0xd9f03e(0x1ac)](',\x20');}export function requireOneOf(_0x5af0c7,_0x411439,_0x5d1f4b){const _0xfc386d=a19_0x114c,_0x316ad6=_0x411439[_0xfc386d(0x1b5)](_0x46e734=>isSet(_0x5af0c7,_0x46e734));if(_0x316ad6['length']!==0x1)throw CliErrors[_0xfc386d(0x1ad)](_0x316ad6['length']===0x0?_0xfc386d(0x1bd)+fmtNames(_0x411439)+_0xfc386d(0x1a5)+_0x5d1f4b+'`.':_0xfc386d(0x1b9)+fmtNames(_0x411439)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x316ad6)+'.',_0x316ad6[_0xfc386d(0x1aa)]===0x0?_0xfc386d(0x1ab)+fmtNames(_0x411439):_0xfc386d(0x1bf));}export function requireAnyOf(_0x579ac0,_0x318b92,_0xe77666){const _0x57e51a=a19_0x114c;if(!_0x318b92[_0x57e51a(0x1b0)](_0x5d0c77=>isSet(_0x579ac0,_0x5d0c77)))throw CliErrors[_0x57e51a(0x1ad)](_0x57e51a(0x1b1)+fmtNames(_0x318b92)+'\x20is\x20required\x20for\x20`'+_0xe77666+'`.',_0x57e51a(0x1ab)+fmtNames(_0x318b92));}export function mutuallyExclusive(_0x3d8530,_0x3ed3a,_0xfec081){const _0x25b4a4=a19_0x114c,_0x3f20bb=_0x3ed3a['filter'](_0x51dbd5=>isSet(_0x3d8530,_0x51dbd5));if(_0x3f20bb[_0x25b4a4(0x1aa)]>0x1)throw CliErrors[_0x25b4a4(0x1ad)](_0x25b4a4(0x1be)+fmtNames(_0x3f20bb)+'\x20are\x20mutually\x20exclusive\x20for\x20`'+_0xfec081+'`.',_0x25b4a4(0x1c0)+fmtNames(_0x3ed3a));}export function validatePattern(_0x1ea6a6,_0x4d7317,_0x409065,_0x3d5b03){const _0x4baf59=a19_0x114c,_0x529669=_0x1ea6a6[_0x4baf59(0x1ba)](_0x4d7317);if(_0x529669&&!_0x409065[_0x4baf59(0x1b6)](_0x529669))throw CliErrors[_0x4baf59(0x1ad)](_0x4baf59(0x1b8)+_0x4d7317+_0x4baf59(0x1a7)+_0x3d5b03+_0x4baf59(0x1a6)+_0x529669+'\x22.');}
@@ -1 +1 @@
1
- const a20_0x770449=a20_0x15f9;(function(_0x1f8e9d,_0x56732a){const _0x3cd2a2=a20_0x15f9,_0xd2f545=_0x1f8e9d();while(!![]){try{const _0x53ba4a=parseInt(_0x3cd2a2(0xdc))/0x1+-parseInt(_0x3cd2a2(0xe2))/0x2*(-parseInt(_0x3cd2a2(0xea))/0x3)+parseInt(_0x3cd2a2(0xde))/0x4+-parseInt(_0x3cd2a2(0xe3))/0x5+-parseInt(_0x3cd2a2(0xdb))/0x6*(-parseInt(_0x3cd2a2(0xe8))/0x7)+-parseInt(_0x3cd2a2(0xe9))/0x8+parseInt(_0x3cd2a2(0xef))/0x9*(parseInt(_0x3cd2a2(0xeb))/0xa);if(_0x53ba4a===_0x56732a)break;else _0xd2f545['push'](_0xd2f545['shift']());}catch(_0xe51676){_0xd2f545['push'](_0xd2f545['shift']());}}}(a20_0x295b,0x19e2f));export const CODE_FLAG={'name':a20_0x770449(0xe4),'type':'string','required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const SQLCODE_FLAG={'name':a20_0x770449(0xe7),'type':'string','required':!![],'description':a20_0x770449(0xed),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x770449(0xdf)}};export const VERBOSE_FLAG={'name':a20_0x770449(0xec),'type':a20_0x770449(0xee),'description':a20_0x770449(0xdd)};function a20_0x295b(){const _0x481260=['Resource\x20ID','2LtaDcS','484480pjJUTh','code','string','number','sqlcode','35qAldfG','501720DZicnt','216501FvbglH','414930ViGaXm','verbose','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','boolean','9nFTUXW','14082Nwebld','78020nhPBLN','Return\x20full\x20raw\x20response\x20object','248908CrcUeK','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','params'];a20_0x295b=function(){return _0x481260;};return a20_0x295b();}export const PARAMS_FLAG={'name':a20_0x770449(0xe0),'type':a20_0x770449(0xe5),'description':'Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)'};function a20_0x15f9(_0x4e213c,_0x13be61){_0x4e213c=_0x4e213c-0xdb;const _0x295b02=a20_0x295b();let _0x295b96=_0x295b02[_0x4e213c];return _0x295b96;}export const NAME_FLAG={'name':'name','type':'string','description':'Resource\x20name\x20for\x20lookup'};export const ID_FLAG={'name':'id','type':a20_0x770449(0xe6),'required':!![],'description':a20_0x770449(0xe1)};
1
+ function a20_0x4ed6(_0xfd125b,_0x4fa352){_0xfd125b=_0xfd125b-0x1c2;const _0x8ed9ac=a20_0x8ed9();let _0x4ed6e8=_0x8ed9ac[_0xfd125b];return _0x4ed6e8;}const a20_0x376b3c=a20_0x4ed6;(function(_0x4f05cc,_0x5648da){const _0x42713e=a20_0x4ed6,_0xb24fd=_0x4f05cc();while(!![]){try{const _0x47c6cc=-parseInt(_0x42713e(0x1c8))/0x1*(parseInt(_0x42713e(0x1c7))/0x2)+parseInt(_0x42713e(0x1c6))/0x3+parseInt(_0x42713e(0x1d1))/0x4+-parseInt(_0x42713e(0x1c3))/0x5*(parseInt(_0x42713e(0x1c5))/0x6)+-parseInt(_0x42713e(0x1ca))/0x7*(parseInt(_0x42713e(0x1d4))/0x8)+-parseInt(_0x42713e(0x1d2))/0x9*(parseInt(_0x42713e(0x1cf))/0xa)+parseInt(_0x42713e(0x1cb))/0xb;if(_0x47c6cc===_0x5648da)break;else _0xb24fd['push'](_0xb24fd['shift']());}catch(_0x26cc5c){_0xb24fd['push'](_0xb24fd['shift']());}}}(a20_0x8ed9,0x7ea8a));export const CODE_FLAG={'name':'code','type':a20_0x376b3c(0x1d3),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x376b3c(0x1ce)}};export const SQLCODE_FLAG={'name':'sqlcode','type':'string','required':!![],'description':a20_0x376b3c(0x1c4),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x376b3c(0x1cd)}};export const VERBOSE_FLAG={'name':a20_0x376b3c(0x1d0),'type':'boolean','description':a20_0x376b3c(0x1c9)};function a20_0x8ed9(){const _0x286b94=['10kvNQhs','verbose','1435168ujOBav','5954301vrECaf','string','208YJgsYX','Resource\x20ID','number','15SbZKPg','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','1468296zhyFIp','737520ebPMKZ','6GdouAl','218668ZNEwAd','Return\x20full\x20raw\x20response\x20object','211883eYyyhc','30281867gcOSVY','params','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'];a20_0x8ed9=function(){return _0x286b94;};return a20_0x8ed9();}export const PARAMS_FLAG={'name':a20_0x376b3c(0x1cc),'type':a20_0x376b3c(0x1d3),'description':'Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)'};export const NAME_FLAG={'name':'name','type':a20_0x376b3c(0x1d3),'description':'Resource\x20name\x20for\x20lookup'};export const ID_FLAG={'name':'id','type':a20_0x376b3c(0x1c2),'required':!![],'description':a20_0x376b3c(0x1d5)};
@@ -1 +1 @@
1
- (function(_0x4d2d4e,_0x280c00){const _0x425fa4=a21_0x4cf5,_0x5caf26=_0x4d2d4e();while(!![]){try{const _0x534406=-parseInt(_0x425fa4(0xd3))/0x1*(parseInt(_0x425fa4(0xda))/0x2)+parseInt(_0x425fa4(0xd6))/0x3*(parseInt(_0x425fa4(0xd4))/0x4)+parseInt(_0x425fa4(0xdd))/0x5*(parseInt(_0x425fa4(0xd1))/0x6)+parseInt(_0x425fa4(0xcc))/0x7+parseInt(_0x425fa4(0xd9))/0x8+parseInt(_0x425fa4(0xdb))/0x9*(-parseInt(_0x425fa4(0xde))/0xa)+parseInt(_0x425fa4(0xdc))/0xb*(-parseInt(_0x425fa4(0xcd))/0xc);if(_0x534406===_0x280c00)break;else _0x5caf26['push'](_0x5caf26['shift']());}catch(_0x4d4f2c){_0x5caf26['push'](_0x5caf26['shift']());}}}(a21_0x259c,0x8be17));import{existsSync,statSync}from'node:fs';function a21_0x259c(){const _0x37c796=['3idJFnz','\x20path\x20is\x20required.','isFile','3262688nxPJzy','2gsampB','5175kEodGS','44hNqAcE','5ZOefVH','8190CQMetF','7669501TFoFNj','3473628UgkRAp','File\x20is\x20not\x20a\x20regular\x20file:\x20','toFixed','validation','6538998sEJJlf','size','706449XqItmq','1259556gqEKWa','\x20MB'];a21_0x259c=function(){return _0x37c796;};return a21_0x259c();}import{CliErrors}from'../../errors.js';function a21_0x4cf5(_0x16e327,_0x11059d){_0x16e327=_0x16e327-0xcc;const _0x259c68=a21_0x259c();let _0x4cf559=_0x259c68[_0x16e327];return _0x4cf559;}const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x936601){const _0x1eb792=a21_0x4cf5;if(_0x936601>=BYTES_PER_MB){const _0x314260=Math['ceil'](_0x936601/BYTES_PER_MB*0x64)/0x64;return _0x314260[_0x1eb792(0xcf)](0x2)+_0x1eb792(0xd5);}return _0x936601+'\x20B';}export function requireRuntimeUploadFile(_0x38249e,_0x26f044){const _0x11210b=a21_0x4cf5,_0x4b402d=_0x38249e['trim']();if(!_0x4b402d)throw CliErrors[_0x11210b(0xd0)](_0x26f044+_0x11210b(0xd7));if(!existsSync(_0x4b402d))throw CliErrors[_0x11210b(0xd0)]('File\x20not\x20found:\x20'+_0x4b402d);const _0x187393=statSync(_0x4b402d);if(!_0x187393[_0x11210b(0xd8)]())throw CliErrors[_0x11210b(0xd0)](_0x11210b(0xce)+_0x4b402d);if(_0x187393[_0x11210b(0xd2)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x11210b(0xd0)]('File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20'+_0x4b402d+'\x20('+formatBytes(_0x187393['size'])+')');return{'path':_0x4b402d,'size':_0x187393['size']};}
1
+ (function(_0x53ca7c,_0x4ada4b){const _0x474014=a21_0x1924,_0x1a4200=_0x53ca7c();while(!![]){try{const _0x43b49e=parseInt(_0x474014(0x121))/0x1*(parseInt(_0x474014(0x11f))/0x2)+parseInt(_0x474014(0x125))/0x3*(-parseInt(_0x474014(0x11a))/0x4)+parseInt(_0x474014(0x127))/0x5*(parseInt(_0x474014(0x119))/0x6)+-parseInt(_0x474014(0x12a))/0x7+parseInt(_0x474014(0x123))/0x8*(parseInt(_0x474014(0x11e))/0x9)+-parseInt(_0x474014(0x124))/0xa+parseInt(_0x474014(0x11c))/0xb;if(_0x43b49e===_0x4ada4b)break;else _0x1a4200['push'](_0x1a4200['shift']());}catch(_0x5990b7){_0x1a4200['push'](_0x1a4200['shift']());}}}(a21_0x2d0a,0x4cadc));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;function a21_0x2d0a(){const _0x4ba986=['24qiccpJ','596zqLfXg','File\x20not\x20found:\x20','6987937IIrDXj','validation','23022HCSCwf','46SnjBcJ','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','6636OHCXmp','File\x20is\x20not\x20a\x20regular\x20file:\x20','312jPNXHi','734340ASyquK','2058JoXapd','ceil','63530rXrWhL','trim','toFixed','3141299ZaOnYz','\x20MB','size'];a21_0x2d0a=function(){return _0x4ba986;};return a21_0x2d0a();}function a21_0x1924(_0x3cd179,_0x338d49){_0x3cd179=_0x3cd179-0x118;const _0x2d0aa3=a21_0x2d0a();let _0x192492=_0x2d0aa3[_0x3cd179];return _0x192492;}export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x2963d0){const _0x492575=a21_0x1924;if(_0x2963d0>=BYTES_PER_MB){const _0xf9bf75=Math[_0x492575(0x126)](_0x2963d0/BYTES_PER_MB*0x64)/0x64;return _0xf9bf75[_0x492575(0x129)](0x2)+_0x492575(0x12b);}return _0x2963d0+'\x20B';}export function requireRuntimeUploadFile(_0x44e4f4,_0x889055){const _0x2f2566=a21_0x1924,_0x2e4d5e=_0x44e4f4[_0x2f2566(0x128)]();if(!_0x2e4d5e)throw CliErrors[_0x2f2566(0x11d)](_0x889055+'\x20path\x20is\x20required.');if(!existsSync(_0x2e4d5e))throw CliErrors[_0x2f2566(0x11d)](_0x2f2566(0x11b)+_0x2e4d5e);const _0x13925b=statSync(_0x2e4d5e);if(!_0x13925b['isFile']())throw CliErrors['validation'](_0x2f2566(0x122)+_0x2e4d5e);if(_0x13925b[_0x2f2566(0x118)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x2f2566(0x11d)](_0x2f2566(0x120)+_0x2e4d5e+'\x20('+formatBytes(_0x13925b['size'])+')');return{'path':_0x2e4d5e,'size':_0x13925b['size']};}
@@ -1 +1 @@
1
- const a22_0x334e28=a22_0x1a22;function a22_0x4775(){const _0x4e800d=['log','Value\x20to\x20assign','set','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','format','riskLevel','7256hlRXGW','field','key','3988602xobTRj','config','stringify','939538dQcCON','Key\x20not\x20found:\x20','Deleted\x20`','trim','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','bool','Missing\x20key\x20or\x20value.','487283DuUdey','\x20config\x20delete\x20<key>\x20[--global]','validation','delete','write','read','Delete\x20a\x20config\x20value','Key\x20\x22','split','Top-level\x20key\x20\x22','length','\x22\x20is\x20not\x20settable.','1009555vyhFJR','Write\x20to\x20global\x20config','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','alias','join','(none)','keys','args','`\x20=\x20\x22','Set\x20`','2001500nXxTCd','list','raw','apps','5201GdiFVY','project-or-global-explicit','Usage:\x20','12nCrifo','object','\x22.\x20Allowed:\x20','3OpePEM','pageSize','appcode','26373330sbzdJd','global','Invalid\x20value\x20for\x20\x22','\x20config\x20get\x20<key>','Missing\x20key\x20argument.','../../context.js','boolean','includes','\x22\x20not\x20found\x20at\x20top\x20level.','isArray','\x20(global)'];a22_0x4775=function(){return _0x4e800d;};return a22_0x4775();}function a22_0x1a22(_0x11adca,_0x28dfc4){_0x11adca=_0x11adca-0x1ac;const _0x477522=a22_0x4775();let _0x1a2223=_0x477522[_0x11adca];return _0x1a2223;}(function(_0x85316c,_0x198fb8){const _0x296924=a22_0x1a22,_0x1844a1=_0x85316c();while(!![]){try{const _0x4eb512=parseInt(_0x296924(0x1d1))/0x1+-parseInt(_0x296924(0x1ca))/0x2*(-parseInt(_0x296924(0x1b0))/0x3)+parseInt(_0x296924(0x1e7))/0x4+parseInt(_0x296924(0x1dd))/0x5*(parseInt(_0x296924(0x1ad))/0x6)+-parseInt(_0x296924(0x1eb))/0x7*(-parseInt(_0x296924(0x1c4))/0x8)+parseInt(_0x296924(0x1c7))/0x9+-parseInt(_0x296924(0x1b3))/0xa;if(_0x4eb512===_0x198fb8)break;else _0x1844a1['push'](_0x1844a1['shift']());}catch(_0x2a7736){_0x1844a1['push'](_0x1844a1['shift']());}}}(a22_0x4775,0x53403));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a22_0x334e28(0x1b4),'type':a22_0x334e28(0x1b9),'description':a22_0x334e28(0x1de),'default':![]};function parseAliasAppcodeSetKey(_0x986d04){const _0x136b69=a22_0x334e28,_0xd85f92=_0x986d04[_0x136b69(0x1d9)]('.');if(_0xd85f92[_0x136b69(0x1db)]!==0x3||_0xd85f92[0x0]!=='apps'||_0xd85f92[0x2]!=='appcode')return undefined;const _0x1396d9=_0xd85f92[0x1]?.[_0x136b69(0x1cd)]();return _0x1396d9?_0x1396d9:undefined;}function parseAliasDeleteKey(_0x1d314a){const _0x400c42=a22_0x334e28,_0x462513=_0x1d314a['split']('.');if(_0x462513[_0x400c42(0x1db)]===0x2&&_0x462513[0x0]===_0x400c42(0x1ea)){const _0xcbd9f3=_0x462513[0x1]?.['trim']();return _0xcbd9f3?{'alias':_0xcbd9f3}:undefined;}if(_0x462513['length']===0x3&&_0x462513[0x0]===_0x400c42(0x1ea)&&_0x462513[0x2]===_0x400c42(0x1b2)){const _0x5ccaf5=_0x462513[0x1]?.[_0x400c42(0x1cd)]();return _0x5ccaf5?{'alias':_0x5ccaf5,'field':_0x400c42(0x1b2)}:undefined;}return undefined;}function setLocalAppAlias(_0x2062c2,_0x52b840,_0x3a3913){const _0xa83240=a22_0x334e28,_0x169e91=_0x2062c2[_0xa83240(0x1ea)]&&typeof _0x2062c2[_0xa83240(0x1ea)]===_0xa83240(0x1ae)&&!Array[_0xa83240(0x1bc)](_0x2062c2['apps'])?_0x2062c2[_0xa83240(0x1ea)]:{},_0x312ebc=_0x169e91[_0x52b840]&&typeof _0x169e91[_0x52b840]===_0xa83240(0x1ae)&&!Array['isArray'](_0x169e91[_0x52b840])?_0x169e91[_0x52b840]:{};_0x312ebc[_0xa83240(0x1b2)]=_0x3a3913,_0x169e91[_0x52b840]=_0x312ebc,_0x2062c2[_0xa83240(0x1ea)]=_0x169e91;}function deleteLocalAppAlias(_0x3c3c75,_0x11343a){const _0x13f4ca=a22_0x334e28;if(!_0x3c3c75[_0x13f4ca(0x1ea)]||typeof _0x3c3c75['apps']!==_0x13f4ca(0x1ae)||Array[_0x13f4ca(0x1bc)](_0x3c3c75[_0x13f4ca(0x1ea)]))return![];const _0x2d6faa=_0x3c3c75[_0x13f4ca(0x1ea)],_0x12b5c9=_0x2d6faa[_0x11343a['alias']];if(!_0x12b5c9||typeof _0x12b5c9!==_0x13f4ca(0x1ae)||Array[_0x13f4ca(0x1bc)](_0x12b5c9))return![];if(!_0x11343a[_0x13f4ca(0x1c5)])return delete _0x2d6faa[_0x11343a[_0x13f4ca(0x1e0)]],!![];if(!(_0x11343a['field']in _0x12b5c9))return![];return delete _0x12b5c9[_0x11343a[_0x13f4ca(0x1c5)]],Object[_0x13f4ca(0x1e3)](_0x12b5c9)[_0x13f4ca(0x1db)]===0x0&&delete _0x2d6faa[_0x11343a[_0x13f4ca(0x1e0)]],!![];}const listDef={'service':a22_0x334e28(0x1c8),'command':a22_0x334e28(0x1e8),'description':'List\x20current\x20config','risk':a22_0x334e28(0x1d6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x24501e){const _0x7f25d0=a22_0x334e28,{buildConfigFromFlags:_0x4081cd}=await import(_0x7f25d0(0x1b8)),_0x270474=_0x4081cd({}),_0x18f618=getProjectConfigPath(),_0xc71f7=resolveWriteConfigPath('global');if(_0x24501e[_0x7f25d0(0x1c2)]==='pretty')return{'ok':!![],'message':_0x7f25d0(0x1df)+(JSON['stringify'](_0x270474[_0x7f25d0(0x1e9)],null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+('\x20\x20project:\x20'+(_0x18f618??_0x7f25d0(0x1e2))+'\x0a')+('\x20\x20global:\x20\x20'+_0xc71f7)};return{'ok':!![],'data':{'effective':_0x270474[_0x7f25d0(0x1e9)],'configFiles':{'project':_0x18f618??null,'global':_0xc71f7}}};}},getDef={'service':a22_0x334e28(0x1c8),'command':'get','description':'Get\x20a\x20config\x20value','risk':a22_0x334e28(0x1d6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x334e28(0x1c6),'description':a22_0x334e28(0x1c1),'required':!![]}],'flags':[],async 'execute'(_0x18eda3){const _0x340e92=a22_0x334e28,_0x35e0c7=_0x18eda3[_0x340e92(0x1e4)][0x0];if(!_0x35e0c7)throw CliErrors[_0x340e92(0x1d3)]('Missing\x20key\x20argument.','Usage:\x20'+CLI_BIN_NAME+_0x340e92(0x1b6));const {buildConfigFromFlags:_0x42676a}=await import(_0x340e92(0x1b8)),{raw:_0x1957b4}=_0x42676a({});if(_0x35e0c7[_0x340e92(0x1ba)]('.')){const _0x89fcdc=_0x35e0c7['split']('.');let _0x1a27b5=_0x1957b4;for(const _0xb589c2 of _0x89fcdc){if(_0x1a27b5==null||typeof _0x1a27b5!==_0x340e92(0x1ae))throw CliErrors['validation'](_0x340e92(0x1cb)+_0x35e0c7);_0x1a27b5=_0x1a27b5[_0xb589c2];}if(_0x1a27b5===undefined)throw CliErrors['validation'](_0x340e92(0x1cb)+_0x35e0c7);return console[_0x340e92(0x1be)](typeof _0x1a27b5===_0x340e92(0x1ae)?JSON['stringify'](_0x1a27b5,null,0x2):String(_0x1a27b5)),{'ok':!![]};}const _0x39dc51=_0x1957b4[_0x35e0c7];if(_0x39dc51===undefined)throw CliErrors[_0x340e92(0x1d3)](_0x340e92(0x1cb)+_0x35e0c7);return console[_0x340e92(0x1be)](typeof _0x39dc51===_0x340e92(0x1ae)?JSON[_0x340e92(0x1c9)](_0x39dc51,null,0x2):String(_0x39dc51)),{'ok':!![]};}},setDef={'service':a22_0x334e28(0x1c8),'command':a22_0x334e28(0x1c0),'description':'Set\x20a\x20config\x20value','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x334e28(0x1c6),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':a22_0x334e28(0x1bf),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x3e5e43){const _0x5142a2=a22_0x334e28,_0x3530a4=_0x3e5e43[_0x5142a2(0x1e4)][0x0],_0x296e8a=_0x3e5e43['args'][0x1];if(!_0x3530a4||_0x296e8a===undefined)throw CliErrors[_0x5142a2(0x1d3)](_0x5142a2(0x1d0),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x3530a4]&&!ENUM_KEYS[_0x3530a4][_0x5142a2(0x1ba)](_0x296e8a))throw CliErrors[_0x5142a2(0x1d3)](_0x5142a2(0x1b5)+_0x3530a4+_0x5142a2(0x1af)+ENUM_KEYS[_0x3530a4][_0x5142a2(0x1e1)](',\x20'));if(_0x3530a4===_0x5142a2(0x1c3))throw CliErrors[_0x5142a2(0x1d3)](_0x5142a2(0x1ce));if(_0x3530a4===_0x5142a2(0x1b1)){const _0x45e44d=Number(_0x296e8a);if(isNaN(_0x45e44d)||_0x45e44d<=0x0)throw CliErrors[_0x5142a2(0x1d3)]('pageSize\x20must\x20be\x20a\x20positive\x20number');}const _0x214bc4=resolveWriteScope({'explicitGlobal':_0x3e5e43['bool'](_0x5142a2(0x1b4)),'policy':'project-or-global-explicit'}),_0x7d11b9=toScopeFlags(_0x214bc4),_0x5998d2=readScopedConfig(_0x7d11b9),_0x2653b7=parseAliasAppcodeSetKey(_0x3530a4);if(!_0x2653b7&&!isTopLevelConfigKey(_0x3530a4))throw CliErrors[_0x5142a2(0x1d3)](_0x5142a2(0x1da)+_0x3530a4+_0x5142a2(0x1dc),'Settable\x20keys:\x20'+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');return _0x2653b7?setLocalAppAlias(_0x5998d2,_0x2653b7,_0x296e8a):_0x5998d2[_0x3530a4]=_0x3530a4===_0x5142a2(0x1b1)?Number(_0x296e8a):_0x296e8a,console[_0x5142a2(0x1be)](_0x5142a2(0x1e6)+_0x3530a4+_0x5142a2(0x1e5)+_0x296e8a+'\x22'+(_0x214bc4===_0x5142a2(0x1b4)?'\x20(global)':'')),writeScopedConfig(_0x5998d2,_0x7d11b9),{'ok':!![]};}},deleteDef={'service':a22_0x334e28(0x1c8),'command':a22_0x334e28(0x1d4),'description':a22_0x334e28(0x1d7),'risk':a22_0x334e28(0x1d5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x334e28(0x1c6),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x4307d7){const _0x3fd477=a22_0x334e28,_0x42adf7=_0x4307d7[_0x3fd477(0x1e4)][0x0];if(!_0x42adf7)throw CliErrors[_0x3fd477(0x1d3)](_0x3fd477(0x1b7),_0x3fd477(0x1ac)+CLI_BIN_NAME+_0x3fd477(0x1d2));const _0x2a1c45=resolveWriteScope({'explicitGlobal':_0x4307d7[_0x3fd477(0x1cf)](_0x3fd477(0x1b4)),'policy':_0x3fd477(0x1ec)}),_0x4a1b57=toScopeFlags(_0x2a1c45),_0x428d28=readScopedConfig(_0x4a1b57),_0x986be2=parseAliasDeleteKey(_0x42adf7);if(_0x986be2){if(!deleteLocalAppAlias(_0x428d28,_0x986be2))throw CliErrors[_0x3fd477(0x1d3)]('Key\x20not\x20found:\x20'+_0x42adf7);return console[_0x3fd477(0x1be)](_0x3fd477(0x1cc)+_0x42adf7+'`'+(_0x2a1c45===_0x3fd477(0x1b4)?_0x3fd477(0x1bd):'')),writeScopedConfig(_0x428d28,_0x4a1b57),{'ok':!![]};}if(_0x428d28[_0x42adf7]===undefined)throw CliErrors[_0x3fd477(0x1d3)](_0x3fd477(0x1d8)+_0x42adf7+_0x3fd477(0x1bb));return delete _0x428d28[_0x42adf7],console[_0x3fd477(0x1be)]('Deleted\x20`'+_0x42adf7+'`'+(_0x2a1c45===_0x3fd477(0x1b4)?_0x3fd477(0x1bd):'')),writeScopedConfig(_0x428d28,_0x4a1b57),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
1
+ function a22_0x52b2(){const _0x4f2d60=['List\x20current\x20config','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','log','config','get','Deleted\x20`','\x20\x20global:\x20\x20','6749085NkpeLM','\x22.\x20Allowed:\x20','read','3203548HQCLTN','Config\x20files:\x0a','Get\x20a\x20config\x20value','validation','value','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','delete','Missing\x20key\x20argument.','Set\x20a\x20config\x20value','key','\x20config\x20get\x20<key>','`\x20=\x20\x22','appcode','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','4512783ahIDtp','pretty','field','Usage:\x20','join','\x20\x20project:\x20','18OGfuKX','isArray','4573670TqwrCS','object','length','Top-level\x20key\x20\x22','Value\x20to\x20assign','raw','args','boolean','Key\x20\x22','alias','16zUqlxu','global','2867280Eoiyzn','../../context.js','955633BRdLBI','project-or-global-explicit','10pSYnDW',';\x20apps.<alias>.appcode','bool','format','Missing\x20key\x20or\x20value.','list','pageSize','stringify','Delete\x20a\x20config\x20value','\x20config\x20delete\x20<key>\x20[--global]','(none)','apps','\x22\x20is\x20not\x20settable.','riskLevel','Key\x20not\x20found:\x20','trim','\x20config\x20set\x20<key>\x20<value>\x20[--global]','write','split','includes','52378lomYnd','Settable\x20keys:\x20','set','\x20(global)'];a22_0x52b2=function(){return _0x4f2d60;};return a22_0x52b2();}const a22_0x7950ce=a22_0x3e54;(function(_0x5d051c,_0x538d96){const _0x43f9ab=a22_0x3e54,_0x59c0b1=_0x5d051c();while(!![]){try{const _0x55dfb1=-parseInt(_0x43f9ab(0x109))/0x1*(parseInt(_0x43f9ab(0x13d))/0x2)+parseInt(_0x43f9ab(0x125))/0x3+parseInt(_0x43f9ab(0x117))/0x4+-parseInt(_0x43f9ab(0x114))/0x5+-parseInt(_0x43f9ab(0x139))/0x6+parseInt(_0x43f9ab(0x13b))/0x7*(-parseInt(_0x43f9ab(0x137))/0x8)+parseInt(_0x43f9ab(0x12b))/0x9*(parseInt(_0x43f9ab(0x12d))/0xa);if(_0x55dfb1===_0x538d96)break;else _0x59c0b1['push'](_0x59c0b1['shift']());}catch(_0x44983d){_0x59c0b1['push'](_0x59c0b1['shift']());}}}(a22_0x52b2,0xd14a9));function a22_0x3e54(_0x5662a9,_0x519c6a){_0x5662a9=_0x5662a9-0xf6;const _0x52b275=a22_0x52b2();let _0x3e547a=_0x52b275[_0x5662a9];return _0x3e547a;}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_0x7950ce(0x138),'type':a22_0x7950ce(0x134),'description':'Write\x20to\x20global\x20config','default':![]};function parseAliasAppcodeSetKey(_0x121187){const _0x4c8954=a22_0x7950ce,_0xad1884=_0x121187[_0x4c8954(0x107)]('.');if(_0xad1884['length']!==0x3||_0xad1884[0x0]!==_0x4c8954(0x100)||_0xad1884[0x2]!==_0x4c8954(0x123))return undefined;const _0x32d6f5=_0xad1884[0x1]?.[_0x4c8954(0x104)]();return _0x32d6f5?_0x32d6f5:undefined;}function parseAliasDeleteKey(_0x5a2b1d){const _0x418fe5=a22_0x7950ce,_0x450e7e=_0x5a2b1d[_0x418fe5(0x107)]('.');if(_0x450e7e['length']===0x2&&_0x450e7e[0x0]===_0x418fe5(0x100)){const _0x503a37=_0x450e7e[0x1]?.['trim']();return _0x503a37?{'alias':_0x503a37}:undefined;}if(_0x450e7e[_0x418fe5(0x12f)]===0x3&&_0x450e7e[0x0]===_0x418fe5(0x100)&&_0x450e7e[0x2]===_0x418fe5(0x123)){const _0x46b07e=_0x450e7e[0x1]?.[_0x418fe5(0x104)]();return _0x46b07e?{'alias':_0x46b07e,'field':_0x418fe5(0x123)}:undefined;}return undefined;}function setLocalAppAlias(_0x494f87,_0x53dcee,_0x42cc9b){const _0x2862a8=a22_0x7950ce,_0x2bee6b=_0x494f87[_0x2862a8(0x100)]&&typeof _0x494f87[_0x2862a8(0x100)]===_0x2862a8(0x12e)&&!Array['isArray'](_0x494f87[_0x2862a8(0x100)])?_0x494f87[_0x2862a8(0x100)]:{},_0x2ea82e=_0x2bee6b[_0x53dcee]&&typeof _0x2bee6b[_0x53dcee]===_0x2862a8(0x12e)&&!Array['isArray'](_0x2bee6b[_0x53dcee])?_0x2bee6b[_0x53dcee]:{};_0x2ea82e[_0x2862a8(0x123)]=_0x42cc9b,_0x2bee6b[_0x53dcee]=_0x2ea82e,_0x494f87['apps']=_0x2bee6b;}function deleteLocalAppAlias(_0x47bdb2,_0x56f11f){const _0x5a44dc=a22_0x7950ce;if(!_0x47bdb2[_0x5a44dc(0x100)]||typeof _0x47bdb2[_0x5a44dc(0x100)]!==_0x5a44dc(0x12e)||Array['isArray'](_0x47bdb2[_0x5a44dc(0x100)]))return![];const _0x29fa09=_0x47bdb2['apps'],_0x21a48a=_0x29fa09[_0x56f11f[_0x5a44dc(0x136)]];if(!_0x21a48a||typeof _0x21a48a!==_0x5a44dc(0x12e)||Array[_0x5a44dc(0x12c)](_0x21a48a))return![];if(!_0x56f11f[_0x5a44dc(0x127)])return delete _0x29fa09[_0x56f11f[_0x5a44dc(0x136)]],!![];if(!(_0x56f11f[_0x5a44dc(0x127)]in _0x21a48a))return![];return delete _0x21a48a[_0x56f11f['field']],Object['keys'](_0x21a48a)[_0x5a44dc(0x12f)]===0x0&&delete _0x29fa09[_0x56f11f[_0x5a44dc(0x136)]],!![];}const listDef={'service':a22_0x7950ce(0x110),'command':a22_0x7950ce(0xfa),'description':a22_0x7950ce(0x10d),'risk':a22_0x7950ce(0x116),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x292193){const _0x16782e=a22_0x7950ce,{buildConfigFromFlags:_0x212358}=await import(_0x16782e(0x13a)),_0x488b20=_0x212358({}),_0x445a0e=getProjectConfigPath(),_0x506afa=resolveWriteConfigPath(_0x16782e(0x138));if(_0x292193[_0x16782e(0xf8)]===_0x16782e(0x126))return{'ok':!![],'message':_0x16782e(0x10e)+(JSON[_0x16782e(0xfc)](_0x488b20[_0x16782e(0x132)],null,0x2)+'\x0a\x0a')+_0x16782e(0x118)+(_0x16782e(0x12a)+(_0x445a0e??_0x16782e(0xff))+'\x0a')+(_0x16782e(0x113)+_0x506afa)};return{'ok':!![],'data':{'effective':_0x488b20[_0x16782e(0x132)],'configFiles':{'project':_0x445a0e??null,'global':_0x506afa}}};}},getDef={'service':a22_0x7950ce(0x110),'command':a22_0x7950ce(0x111),'description':a22_0x7950ce(0x119),'risk':a22_0x7950ce(0x116),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x7950ce(0x120),'description':a22_0x7950ce(0x11c),'required':!![]}],'flags':[],async 'execute'(_0x32fc67){const _0xa095bc=a22_0x7950ce,_0x1410fe=_0x32fc67['args'][0x0];if(!_0x1410fe)throw CliErrors[_0xa095bc(0x11a)](_0xa095bc(0x11e),_0xa095bc(0x128)+CLI_BIN_NAME+_0xa095bc(0x121));const {buildConfigFromFlags:_0x49ce69}=await import(_0xa095bc(0x13a)),{raw:_0x4da142}=_0x49ce69({});if(_0x1410fe['includes']('.')){const _0x350d4b=_0x1410fe[_0xa095bc(0x107)]('.');let _0x13f7b9=_0x4da142;for(const _0x1084a6 of _0x350d4b){if(_0x13f7b9==null||typeof _0x13f7b9!==_0xa095bc(0x12e))throw CliErrors['validation'](_0xa095bc(0x103)+_0x1410fe);_0x13f7b9=_0x13f7b9[_0x1084a6];}if(_0x13f7b9===undefined)throw CliErrors[_0xa095bc(0x11a)](_0xa095bc(0x103)+_0x1410fe);return console[_0xa095bc(0x10f)](typeof _0x13f7b9===_0xa095bc(0x12e)?JSON[_0xa095bc(0xfc)](_0x13f7b9,null,0x2):String(_0x13f7b9)),{'ok':!![]};}const _0x2395c2=_0x4da142[_0x1410fe];if(_0x2395c2===undefined)throw CliErrors[_0xa095bc(0x11a)]('Key\x20not\x20found:\x20'+_0x1410fe);return console[_0xa095bc(0x10f)](typeof _0x2395c2===_0xa095bc(0x12e)?JSON['stringify'](_0x2395c2,null,0x2):String(_0x2395c2)),{'ok':!![]};}},setDef={'service':a22_0x7950ce(0x110),'command':a22_0x7950ce(0x10b),'description':a22_0x7950ce(0x11f),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x7950ce(0x120),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x7950ce(0x11b),'description':a22_0x7950ce(0x131),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0xf5366a){const _0x4ae5df=a22_0x7950ce,_0xd6801=_0xf5366a[_0x4ae5df(0x133)][0x0],_0x3a8492=_0xf5366a[_0x4ae5df(0x133)][0x1];if(!_0xd6801||_0x3a8492===undefined)throw CliErrors[_0x4ae5df(0x11a)](_0x4ae5df(0xf9),_0x4ae5df(0x128)+CLI_BIN_NAME+_0x4ae5df(0x105));if(ENUM_KEYS[_0xd6801]&&!ENUM_KEYS[_0xd6801][_0x4ae5df(0x108)](_0x3a8492))throw CliErrors['validation']('Invalid\x20value\x20for\x20\x22'+_0xd6801+_0x4ae5df(0x115)+ENUM_KEYS[_0xd6801][_0x4ae5df(0x129)](',\x20'));if(_0xd6801===_0x4ae5df(0x102))throw CliErrors[_0x4ae5df(0x11a)](_0x4ae5df(0x124));if(_0xd6801===_0x4ae5df(0xfb)){const _0x318c4c=Number(_0x3a8492);if(isNaN(_0x318c4c)||_0x318c4c<=0x0)throw CliErrors[_0x4ae5df(0x11a)]('pageSize\x20must\x20be\x20a\x20positive\x20number');}const _0x132380=resolveWriteScope({'explicitGlobal':_0xf5366a[_0x4ae5df(0xf7)]('global'),'policy':_0x4ae5df(0x13c)}),_0x3b0aba=toScopeFlags(_0x132380),_0x59c544=readScopedConfig(_0x3b0aba),_0x316684=parseAliasAppcodeSetKey(_0xd6801);if(!_0x316684&&!isTopLevelConfigKey(_0xd6801))throw CliErrors['validation'](_0x4ae5df(0x130)+_0xd6801+_0x4ae5df(0x101),_0x4ae5df(0x10a)+getTopLevelConfigKeySummary()+_0x4ae5df(0xf6));return _0x316684?setLocalAppAlias(_0x59c544,_0x316684,_0x3a8492):_0x59c544[_0xd6801]=_0xd6801===_0x4ae5df(0xfb)?Number(_0x3a8492):_0x3a8492,console[_0x4ae5df(0x10f)]('Set\x20`'+_0xd6801+_0x4ae5df(0x122)+_0x3a8492+'\x22'+(_0x132380==='global'?_0x4ae5df(0x10c):'')),writeScopedConfig(_0x59c544,_0x3b0aba),{'ok':!![]};}},deleteDef={'service':a22_0x7950ce(0x110),'command':a22_0x7950ce(0x11d),'description':a22_0x7950ce(0xfd),'risk':a22_0x7950ce(0x106),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x526576){const _0x4aeaee=a22_0x7950ce,_0x2008ab=_0x526576['args'][0x0];if(!_0x2008ab)throw CliErrors[_0x4aeaee(0x11a)](_0x4aeaee(0x11e),_0x4aeaee(0x128)+CLI_BIN_NAME+_0x4aeaee(0xfe));const _0x4c5fdc=resolveWriteScope({'explicitGlobal':_0x526576[_0x4aeaee(0xf7)](_0x4aeaee(0x138)),'policy':_0x4aeaee(0x13c)}),_0x136c8c=toScopeFlags(_0x4c5fdc),_0x583d21=readScopedConfig(_0x136c8c),_0x3d2d65=parseAliasDeleteKey(_0x2008ab);if(_0x3d2d65){if(!deleteLocalAppAlias(_0x583d21,_0x3d2d65))throw CliErrors[_0x4aeaee(0x11a)](_0x4aeaee(0x103)+_0x2008ab);return console['log'](_0x4aeaee(0x112)+_0x2008ab+'`'+(_0x4c5fdc===_0x4aeaee(0x138)?_0x4aeaee(0x10c):'')),writeScopedConfig(_0x583d21,_0x136c8c),{'ok':!![]};}if(_0x583d21[_0x2008ab]===undefined)throw CliErrors[_0x4aeaee(0x11a)](_0x4aeaee(0x135)+_0x2008ab+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0x583d21[_0x2008ab],console[_0x4aeaee(0x10f)](_0x4aeaee(0x112)+_0x2008ab+'`'+(_0x4c5fdc===_0x4aeaee(0x138)?'\x20(global)':'')),writeScopedConfig(_0x583d21,_0x136c8c),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- (function(_0x3ee179,_0x528da3){var _0x1866b0=a23_0x28b9,_0x344306=_0x3ee179();while(!![]){try{var _0x44c5a3=-parseInt(_0x1866b0(0x1e4))/0x1+-parseInt(_0x1866b0(0x1dd))/0x2*(parseInt(_0x1866b0(0x1df))/0x3)+parseInt(_0x1866b0(0x1de))/0x4+-parseInt(_0x1866b0(0x1e1))/0x5+parseInt(_0x1866b0(0x1e0))/0x6*(parseInt(_0x1866b0(0x1da))/0x7)+parseInt(_0x1866b0(0x1e2))/0x8*(-parseInt(_0x1866b0(0x1dc))/0x9)+-parseInt(_0x1866b0(0x1e3))/0xa*(-parseInt(_0x1866b0(0x1db))/0xb);if(_0x44c5a3===_0x528da3)break;else _0x344306['push'](_0x344306['shift']());}catch(_0x2fc737){_0x344306['push'](_0x344306['shift']());}}}(a23_0x2cc0,0x603f9));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';function a23_0x28b9(_0x12c6c6,_0x163aae){_0x12c6c6=_0x12c6c6-0x1da;var _0x2cc0cc=a23_0x2cc0();var _0x28b999=_0x2cc0cc[_0x12c6c6];return _0x28b999;}function a23_0x2cc0(){var _0x4faf67=['12964006vZsreH','9ZJDpqe','14726qXVqHo','2980888sTbCWG','213VwuuRa','544776FXABgB','2234940lRcocl','2372456yyQjEv','10CnFSNA','354013MgaeKA','7BfOFFN'];a23_0x2cc0=function(){return _0x4faf67;};return a23_0x2cc0();}
1
+ (function(_0x4e3a9c,_0x870acb){var _0x2abdcf=a23_0x22d8,_0x5d30b2=_0x4e3a9c();while(!![]){try{var _0x31be71=-parseInt(_0x2abdcf(0x80))/0x1+parseInt(_0x2abdcf(0x79))/0x2+parseInt(_0x2abdcf(0x7b))/0x3+parseInt(_0x2abdcf(0x7f))/0x4+parseInt(_0x2abdcf(0x7d))/0x5*(parseInt(_0x2abdcf(0x78))/0x6)+parseInt(_0x2abdcf(0x7c))/0x7*(-parseInt(_0x2abdcf(0x7e))/0x8)+parseInt(_0x2abdcf(0x7a))/0x9*(-parseInt(_0x2abdcf(0x81))/0xa);if(_0x31be71===_0x870acb)break;else _0x5d30b2['push'](_0x5d30b2['shift']());}catch(_0x3b5229){_0x5d30b2['push'](_0x5d30b2['shift']());}}}(a23_0x5912,0xa9c4d));function a23_0x22d8(_0x4f847b,_0x30f460){_0x4f847b=_0x4f847b-0x78;var _0x591229=a23_0x5912();var _0x22d8a3=_0x591229[_0x4f847b];return _0x22d8a3;}import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};function a23_0x5912(){var _0x70c804=['13545GypLgv','176PMaBBD','4380164cTxQZE','693197DzPkFe','10VdmUSK','270eYhBTs','1938654cwxqEp','5462793gpvhZK','2831640bwkkfi','361011OaHSsJ'];a23_0x5912=function(){return _0x70c804;};return a23_0x5912();}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';
@@ -1 +1 @@
1
- const a24_0x17de94=a24_0x3535;(function(_0x83bcd6,_0x3fe051){const _0x36b281=a24_0x3535,_0x18f4ea=_0x83bcd6();while(!![]){try{const _0x4a8075=-parseInt(_0x36b281(0x7c))/0x1*(parseInt(_0x36b281(0x9e))/0x2)+parseInt(_0x36b281(0xbf))/0x3*(parseInt(_0x36b281(0xc5))/0x4)+-parseInt(_0x36b281(0x7a))/0x5+-parseInt(_0x36b281(0xcb))/0x6*(parseInt(_0x36b281(0x8e))/0x7)+parseInt(_0x36b281(0x8c))/0x8+parseInt(_0x36b281(0xa2))/0x9*(-parseInt(_0x36b281(0x8a))/0xa)+parseInt(_0x36b281(0xb3))/0xb*(parseInt(_0x36b281(0x88))/0xc);if(_0x4a8075===_0x3fe051)break;else _0x18f4ea['push'](_0x18f4ea['shift']());}catch(_0x32f7e2){_0x18f4ea['push'](_0x18f4ea['shift']());}}}(a24_0x819e,0xc072d));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a24_0x819e(){const _0x5b769f=['data\x20','\x20\x20AGGREGATE\x20TYPES','body','\x20\x20PAGINATION','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','risk','168934PNuQFI','aggregate','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','code','36WHqYip','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','str','Get\x20a\x20single\x20record\x20by\x20ID','map','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','data','batch','length','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','Filter\x20dataset\x20records\x20with\x20query\x20conditions','Update\x20an\x20existing\x20record','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','55meaAAx','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20on\x20dataset\x20','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','high-risk-write','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','dryRun','\x20\x20LOGICAL\x20COMBINATORS','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','3WpKyjz','\x20\x20WHERE\x20OPERATORS','description','getOne','delete','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','3571628KCozLY','helpExtra','read','\x20\x20EXAMPLES','\x20completed\x20in\x20','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','266478pMJuiL','write','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','4476635vbhjcy','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','2fmWSHI','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','join','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','update','operation','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','Preview:\x20data\x20','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','4204416UmmfmX','/api/{appCode}/','791080aCcUUI','batchCreate','8274056dTjDXx','params','238VWWrfr','now','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\x20\x20PARAMS\x20STRUCTURE','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','filter','command','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]'];a24_0x819e=function(){return _0x5b769f;};return a24_0x819e();}import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x17de94(0x95),'operation':a24_0x17de94(0x95),'risk':a24_0x17de94(0xc7),'paramsRequired':![],'description':a24_0x17de94(0xb0),'paramsHint':a24_0x17de94(0xb5)+'Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':[a24_0x17de94(0xc0),a24_0x17de94(0x80),a24_0x17de94(0x9c),a24_0x17de94(0x76),a24_0x17de94(0x7f),a24_0x17de94(0x7d),a24_0x17de94(0xb2),'\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}',a24_0x17de94(0xbe),'\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','',a24_0x17de94(0xbc),'\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}',a24_0x17de94(0xc4),'',a24_0x17de94(0xa7),a24_0x17de94(0x79),a24_0x17de94(0x94),a24_0x17de94(0xca),a24_0x17de94(0xaa),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a24_0x17de94(0x9b),'\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.',a24_0x17de94(0xcd),a24_0x17de94(0xa8)]['join']('\x0a')},{'command':a24_0x17de94(0xc2),'operation':a24_0x17de94(0xc2),'risk':a24_0x17de94(0xc7),'paramsRequired':!![],'description':a24_0x17de94(0xa5),'paramsHint':a24_0x17de94(0xbd)},{'command':'create','operation':'create','risk':'write','paramsRequired':!![],'description':a24_0x17de94(0x93),'paramsHint':a24_0x17de94(0x85)},{'command':a24_0x17de94(0x8b),'operation':'batchCreate','risk':'write','paramsRequired':!![],'description':'Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','paramsHint':a24_0x17de94(0x77)},{'command':a24_0x17de94(0x83),'operation':a24_0x17de94(0x83),'risk':a24_0x17de94(0xcc),'paramsRequired':!![],'description':a24_0x17de94(0xb1),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20'+a24_0x17de94(0xaf)},{'command':a24_0x17de94(0xc3),'operation':a24_0x17de94(0xc3),'risk':a24_0x17de94(0xb9),'paramsRequired':!![],'description':a24_0x17de94(0x78),'paramsHint':a24_0x17de94(0xbd)},{'command':a24_0x17de94(0x9f),'operation':'aggregate','risk':'read','paramsRequired':![],'description':a24_0x17de94(0x82),'paramsHint':a24_0x17de94(0x7b)+'Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':[a24_0x17de94(0x99),a24_0x17de94(0xb8),'\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}',a24_0x17de94(0xa0),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}',a24_0x17de94(0x90),a24_0x17de94(0xa3),a24_0x17de94(0xa9),'',a24_0x17de94(0x92),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a24_0x17de94(0xb6),a24_0x17de94(0x7e),a24_0x17de94(0xce),a24_0x17de94(0x97),a24_0x17de94(0xba),'',a24_0x17de94(0xc8),a24_0x17de94(0xb4),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','',a24_0x17de94(0xab),a24_0x17de94(0x87),'',a24_0x17de94(0x91)][a24_0x17de94(0x81)]('\x0a')}];function makeDataCommand(_0x290443){const _0xc73e4b=a24_0x17de94,_0x10b739='data\x20'+_0x290443['command'],_0x39694a={'service':_0xc73e4b(0xac),'command':_0x290443[_0xc73e4b(0x96)],'description':_0x290443['description'],'risk':_0x290443[_0xc73e4b(0x9d)],'helpExtra':_0x290443[_0xc73e4b(0xc6)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x290443['paramsHint']}],'validate':async _0x3e8604=>{const _0x51c0fb=_0xc73e4b;_0x290443['paramsRequired']&&requireAnyOf(_0x3e8604,[_0x51c0fb(0x8d)],_0x10b739),_0x290443[_0x51c0fb(0x84)]===_0x51c0fb(0x8b)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3e8604[_0x51c0fb(0xa4)](_0x51c0fb(0x8d)))),_0x290443[_0x51c0fb(0x84)]===_0x51c0fb(0x83)&&parseUpdateIdsFromParams(parseJsonParams(_0x3e8604[_0x51c0fb(0xa4)](_0x51c0fb(0x8d)))??{});},async 'execute'(_0x3c1fef){const _0x462080=_0xc73e4b,_0x473ab0=_0x3c1fef[_0x462080(0xa4)]('code'),_0x5b8167=_0x290443['operation']===_0x462080(0x8b)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3c1fef[_0x462080(0xa4)](_0x462080(0x8d)))):parseJsonParams(_0x3c1fef['str'](_0x462080(0x8d)))??{},_0x263ad6=_0x290443[_0x462080(0x84)]===_0x462080(0x83)?parseUpdateIdsFromParams(_0x5b8167):undefined,_0x2e6350=_0x263ad6?normalizeUpdateParamsForRuntime(_0x5b8167,_0x263ad6):_0x5b8167,_0x492056=Date[_0x462080(0x8f)](),_0x342e5a=await executeData(_0x473ab0,_0x290443[_0x462080(0x84)],_0x2e6350),_0x8853fc=Date[_0x462080(0x8f)]()-_0x492056,_0x4c5b35=_0x263ad6&&_0x263ad6[_0x462080(0xae)]>0x1?buildBatchUpdateResult(_0x263ad6,_0x342e5a):_0x342e5a;return{'ok':!![],'data':{'result':_0x4c5b35,'elapsed':_0x8853fc},'message':_0x462080(0x98)+_0x290443[_0x462080(0x96)]+_0x462080(0xc9)+_0x8853fc+'ms'};}};return _0x290443[_0xc73e4b(0x9d)]!==_0xc73e4b(0xc7)&&(_0x39694a[_0xc73e4b(0xbb)]=async _0x3d2909=>{const _0x56ef9d=_0xc73e4b,_0x1526d6=_0x3d2909[_0x56ef9d(0xa4)](_0x56ef9d(0xa1)),_0x49c1e8=_0x290443[_0x56ef9d(0x84)]===_0x56ef9d(0x8b)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3d2909[_0x56ef9d(0xa4)](_0x56ef9d(0x8d)))):parseJsonParams(_0x3d2909[_0x56ef9d(0xa4)](_0x56ef9d(0x8d)))??{};let _0x1bc1cb=_0x49c1e8;if(_0x290443[_0x56ef9d(0x84)]===_0x56ef9d(0x83)){const _0x3f8784=parseUpdateIdsFromParams(_0x49c1e8);_0x1bc1cb=normalizeUpdateParamsForRuntime(_0x49c1e8,_0x3f8784);}return dryRun('POST',_0x56ef9d(0x89)+_0x1526d6+'/'+_0x290443[_0x56ef9d(0x84)])[_0x56ef9d(0x9a)](_0x1bc1cb)[_0x56ef9d(0xc1)](_0x56ef9d(0x86)+_0x290443['command']+_0x56ef9d(0xb7)+_0x1526d6)['build']();}),_0x39694a;}export const dataDefinitions=specs[a24_0x17de94(0xa6)](makeDataCommand);function a24_0x3535(_0xa33f55,_0x452eee){_0xa33f55=_0xa33f55-0x76;const _0x819e32=a24_0x819e();let _0x35354c=_0x819e32[_0xa33f55];return _0x35354c;}function buildBatchUpdateResult(_0x18b8a0,_0x1827b1){const _0x4108ae=a24_0x17de94;return{'operation':_0x4108ae(0x83),'mode':_0x4108ae(0xad),'ids':_0x18b8a0,'total':_0x18b8a0[_0x4108ae(0xae)],'result':_0x1827b1};}
1
+ const a24_0x42099a=a24_0x4606;function a24_0x42ad(){const _0x1151e4=['\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}}','body','\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\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\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\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}}]}','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','batch','read','\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]}}','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','9391420qMdtpl','high-risk-write','\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}','risk','\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\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','\x20\x20\x20\x20$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}}','1147452Jnuxxf','description','getOne','\x20\x20PARAMS\x20STRUCTURE','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','109335JVrXzX','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','join','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','Update\x20an\x20existing\x20record','\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}}','command','length','params','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','18GvbWMp','\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}}','filter','14kLZdiX','now','\x20\x20AGGREGATE\x20TYPES','\x20\x20WHERE\x20OPERATORS','132nhaKJi','str','\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}','40354OAxqQE','1825512qfjMTA','524282vVdMPY','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20on\x20dataset\x20','write','delete','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','data\x20','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','code','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','POST','update','\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\x20PAGINATION','\x20completed\x20in\x20','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','Filter\x20dataset\x20records\x20with\x20query\x20conditions','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','paramsHint','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\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}','/api/{appCode}/','aggregate','operation','create','Get\x20a\x20single\x20record\x20by\x20ID','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','data','2376376OskiDD','build','batchCreate','paramsRequired','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','map'];a24_0x42ad=function(){return _0x1151e4;};return a24_0x42ad();}(function(_0x4cf56d,_0x240389){const _0x5d5423=a24_0x4606,_0x8394e6=_0x4cf56d();while(!![]){try{const _0x11cb3d=parseInt(_0x5d5423(0x222))/0x1+-parseInt(_0x5d5423(0x224))/0x2+parseInt(_0x5d5423(0x223))/0x3+-parseInt(_0x5d5423(0x21f))/0x4*(parseInt(_0x5d5423(0x20d))/0x5)+-parseInt(_0x5d5423(0x207))/0x6*(-parseInt(_0x5d5423(0x21b))/0x7)+-parseInt(_0x5d5423(0x243))/0x8*(parseInt(_0x5d5423(0x218))/0x9)+parseInt(_0x5d5423(0x1fe))/0xa;if(_0x11cb3d===_0x240389)break;else _0x8394e6['push'](_0x8394e6['shift']());}catch(_0x555f31){_0x8394e6['push'](_0x8394e6['shift']());}}}(a24_0x42ad,0x5fdbe));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a24_0x4606(_0x2dc18c,_0x982177){_0x2dc18c=_0x2dc18c-0x1ec;const _0x42adbc=a24_0x42ad();let _0x460676=_0x42adbc[_0x2dc18c];return _0x460676;}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_0x42099a(0x21a),'operation':a24_0x42099a(0x21a),'risk':a24_0x42099a(0x1fa),'paramsRequired':![],'description':a24_0x42099a(0x236),'paramsHint':a24_0x42099a(0x217)+a24_0x42099a(0x1f8),'helpExtra':[a24_0x42099a(0x21e),a24_0x42099a(0x206),'\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}',a24_0x42099a(0x219),a24_0x42099a(0x22a),a24_0x42099a(0x20b),a24_0x42099a(0x22d),a24_0x42099a(0x1fb),a24_0x42099a(0x213),a24_0x42099a(0x1f3),a24_0x42099a(0x1f1),'',a24_0x42099a(0x20e),a24_0x42099a(0x1f7),'\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)',a24_0x42099a(0x232),a24_0x42099a(0x203),a24_0x42099a(0x20f),a24_0x42099a(0x235),'',a24_0x42099a(0x233),a24_0x42099a(0x1f6),a24_0x42099a(0x1f5),'\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)'][a24_0x42099a(0x210)]('\x0a')},{'command':a24_0x42099a(0x209),'operation':a24_0x42099a(0x209),'risk':a24_0x42099a(0x1fa),'paramsRequired':!![],'description':a24_0x42099a(0x240),'paramsHint':a24_0x42099a(0x237)},{'command':a24_0x42099a(0x23f),'operation':'create','risk':a24_0x42099a(0x228),'paramsRequired':!![],'description':a24_0x42099a(0x204),'paramsHint':'JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27'},{'command':a24_0x42099a(0x1ed),'operation':a24_0x42099a(0x1ed),'risk':'write','paramsRequired':!![],'description':a24_0x42099a(0x239),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':a24_0x42099a(0x231),'operation':'update','risk':a24_0x42099a(0x228),'paramsRequired':!![],'description':a24_0x42099a(0x212),'paramsHint':a24_0x42099a(0x225)+a24_0x42099a(0x22b)},{'command':a24_0x42099a(0x229),'operation':'delete','risk':a24_0x42099a(0x1ff),'paramsRequired':!![],'description':'Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','paramsHint':a24_0x42099a(0x237)},{'command':'aggregate','operation':a24_0x42099a(0x23d),'risk':a24_0x42099a(0x1fa),'paramsRequired':![],'description':a24_0x42099a(0x1ef),'paramsHint':a24_0x42099a(0x241)+a24_0x42099a(0x1fc),'helpExtra':[a24_0x42099a(0x21d),'\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}',a24_0x42099a(0x200),a24_0x42099a(0x23b),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}',a24_0x42099a(0x221),'\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\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','',a24_0x42099a(0x20a),a24_0x42099a(0x1f4),a24_0x42099a(0x23a),a24_0x42099a(0x20c),a24_0x42099a(0x226),'\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_0x42099a(0x202),'','\x20\x20EXAMPLES',a24_0x42099a(0x211),a24_0x42099a(0x22f),'',a24_0x42099a(0x1fd),a24_0x42099a(0x205),'','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'][a24_0x42099a(0x210)]('\x0a')}];function makeDataCommand(_0x4eedb5){const _0x389b93=a24_0x42099a,_0x5acc8d=_0x389b93(0x22c)+_0x4eedb5[_0x389b93(0x214)],_0x419adb={'service':_0x389b93(0x242),'command':_0x4eedb5[_0x389b93(0x214)],'description':_0x4eedb5['description'],'risk':_0x4eedb5[_0x389b93(0x201)],'helpExtra':_0x4eedb5['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x4eedb5[_0x389b93(0x238)]}],'validate':async _0x29b3c6=>{const _0x1573f2=_0x389b93;_0x4eedb5[_0x1573f2(0x1ee)]&&requireAnyOf(_0x29b3c6,['params'],_0x5acc8d),_0x4eedb5['operation']===_0x1573f2(0x1ed)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x29b3c6[_0x1573f2(0x220)](_0x1573f2(0x216)))),_0x4eedb5[_0x1573f2(0x23e)]===_0x1573f2(0x231)&&parseUpdateIdsFromParams(parseJsonParams(_0x29b3c6[_0x1573f2(0x220)](_0x1573f2(0x216)))??{});},async 'execute'(_0x40a536){const _0x4d2a40=_0x389b93,_0x161264=_0x40a536[_0x4d2a40(0x220)](_0x4d2a40(0x22e)),_0x256201=_0x4eedb5[_0x4d2a40(0x23e)]===_0x4d2a40(0x1ed)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x40a536['str']('params'))):parseJsonParams(_0x40a536[_0x4d2a40(0x220)](_0x4d2a40(0x216)))??{},_0x121820=_0x4eedb5[_0x4d2a40(0x23e)]==='update'?parseUpdateIdsFromParams(_0x256201):undefined,_0x244e9b=_0x121820?normalizeUpdateParamsForRuntime(_0x256201,_0x121820):_0x256201,_0x2227e8=Date[_0x4d2a40(0x21c)](),_0xd38213=await executeData(_0x161264,_0x4eedb5[_0x4d2a40(0x23e)],_0x244e9b),_0xdac550=Date[_0x4d2a40(0x21c)]()-_0x2227e8,_0x3b091d=_0x121820&&_0x121820['length']>0x1?buildBatchUpdateResult(_0x121820,_0xd38213):_0xd38213;return{'ok':!![],'data':{'result':_0x3b091d,'elapsed':_0xdac550},'message':'data\x20'+_0x4eedb5[_0x4d2a40(0x214)]+_0x4d2a40(0x234)+_0xdac550+'ms'};}};return _0x4eedb5['risk']!==_0x389b93(0x1fa)&&(_0x419adb['dryRun']=async _0x62dc3e=>{const _0x14e4c9=_0x389b93,_0x5d77a9=_0x62dc3e[_0x14e4c9(0x220)](_0x14e4c9(0x22e)),_0x5ad047=_0x4eedb5['operation']===_0x14e4c9(0x1ed)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x62dc3e['str'](_0x14e4c9(0x216)))):parseJsonParams(_0x62dc3e[_0x14e4c9(0x220)]('params'))??{};let _0x5dc41b=_0x5ad047;if(_0x4eedb5[_0x14e4c9(0x23e)]===_0x14e4c9(0x231)){const _0x65de9b=parseUpdateIdsFromParams(_0x5ad047);_0x5dc41b=normalizeUpdateParamsForRuntime(_0x5ad047,_0x65de9b);}return dryRun(_0x14e4c9(0x230),_0x14e4c9(0x23c)+_0x5d77a9+'/'+_0x4eedb5['operation'])[_0x14e4c9(0x1f2)](_0x5dc41b)[_0x14e4c9(0x208)]('Preview:\x20data\x20'+_0x4eedb5[_0x14e4c9(0x214)]+_0x14e4c9(0x227)+_0x5d77a9)[_0x14e4c9(0x1ec)]();}),_0x419adb;}export const dataDefinitions=specs[a24_0x42099a(0x1f0)](makeDataCommand);function buildBatchUpdateResult(_0xc8f9d9,_0x4ff657){const _0x789755=a24_0x42099a;return{'operation':_0x789755(0x231),'mode':_0x789755(0x1f9),'ids':_0xc8f9d9,'total':_0xc8f9d9[_0x789755(0x215)],'result':_0x4ff657};}
@@ -1 +1 @@
1
- const a25_0x107f4a=a25_0x4da9;(function(_0x24627f,_0x2bf69c){const _0x21ab6c=a25_0x4da9,_0x392dfe=_0x24627f();while(!![]){try{const _0x2ef11b=parseInt(_0x21ab6c(0x1e8))/0x1*(parseInt(_0x21ab6c(0x1b9))/0x2)+-parseInt(_0x21ab6c(0x1da))/0x3+-parseInt(_0x21ab6c(0x1e9))/0x4+parseInt(_0x21ab6c(0x1ee))/0x5+parseInt(_0x21ab6c(0x1d9))/0x6+parseInt(_0x21ab6c(0x1ce))/0x7+-parseInt(_0x21ab6c(0x1e0))/0x8*(-parseInt(_0x21ab6c(0x1c7))/0x9);if(_0x2ef11b===_0x2bf69c)break;else _0x392dfe['push'](_0x392dfe['shift']());}catch(_0x251cd4){_0x392dfe['push'](_0x392dfe['shift']());}}}(a25_0x235d,0x9d53c));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a25_0x4da9(_0x1f33ec,_0x258fec){_0x1f33ec=_0x1f33ec-0x1b6;const _0x235d14=a25_0x235d();let _0x4da931=_0x235d14[_0x1f33ec];return _0x4da931;}import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x2ca945){const _0x5879c7=a25_0x4da9;if(_0x2ca945['deleted'])return null;const _0x447a17=Boolean(_0x2ca945[_0x5879c7(0x1c8)]!==undefined||_0x2ca945['doType']!==undefined);let _0x38612a={};if(!_0x447a17&&typeof _0x2ca945['extend']===_0x5879c7(0x1f7))try{_0x38612a=JSON[_0x5879c7(0x1f1)](_0x2ca945['extend']);}catch{}const _0x58fec2=_0x447a17?_0x2ca945[_0x5879c7(0x1b6)]:_0x2ca945['code'],_0x10db37=_0x447a17?_0x2ca945[_0x5879c7(0x1c8)]:_0x2ca945[_0x5879c7(0x1b6)],_0x34edb1=_0x447a17?_0x2ca945[_0x5879c7(0x1de)]:_0x2ca945[_0x5879c7(0x1e2)]||_0x2ca945[_0x5879c7(0x1df)],_0x382f2c=_0x447a17?_0x2ca945[_0x5879c7(0x1f8)]===!![]:_0x38612a['pkField']===!![],_0x4aabd4=_0x447a17?_0x2ca945[_0x5879c7(0x1e4)]===!![]:_0x38612a[_0x5879c7(0x1e4)]===!![],_0xe25b49=_0x447a17?_0x2ca945[_0x5879c7(0x1be)]??null:_0x38612a[_0x5879c7(0x1be)]??null,_0xe3ff9d={'name':_0x58fec2,'displayName':_0x10db37||_0x58fec2,'type':_0x34edb1,'dbType':_0x2ca945[_0x5879c7(0x1c0)],'pk':_0x382f2c,'required':_0x4aabd4,'description':_0x2ca945[_0x5879c7(0x1e1)]||undefined};return Array[_0x5879c7(0x1cd)](_0xe25b49)&&_0xe25b49[_0x5879c7(0x1bd)]>0x0&&(_0xe3ff9d[_0x5879c7(0x1be)]=_0xe25b49),_0xe3ff9d;}function a25_0x235d(){const _0x2e950c=['modifierNameField','read','logicField','tableName','validateRules','94086hvTgrN','displayName','entries','requestBody','host','detail','isArray','1878100ZLDkJy','beforeScriptId','properties','responseFields','method','responseBody','creatorNameField','code','createTimeField','allFieldNames','deleted','2781354uUgukI','3706230ohENAj','afterScriptId','doVersion','extend','doType','dataType','656mlhplh','description','type','relatedPageInfoList','required','split','find','str','165091cTdbjY','1595416LQmSdj','dbName','filter','relations','fields','146125AcoXOZ','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','map','parse','indexes','dbId','path','creatorIdField','object','string','pkField','push','modelId','requestFields','columnCodeListWithDeleted','modelCode','name','source','appCode','8BPdvic','modifierIdField','allFields','trim','length','options','dbtableConfig','dbType','formatRules'];a25_0x235d=function(){return _0x2e950c;};return a25_0x235d();}function parseJsonMaybe(_0x161ed3){const _0xf4ca4=a25_0x4da9;if(typeof _0x161ed3!==_0xf4ca4(0x1f7))return _0x161ed3;try{return JSON[_0xf4ca4(0x1f1)](_0x161ed3);}catch{return _0x161ed3;}}function normalizeOperationEntry(_0x349b94,_0x5b826f){const _0x128b7d=a25_0x4da9;if(!_0x5b826f||typeof _0x5b826f!=='object')return null;if(!_0x5b826f[_0x128b7d(0x1d2)]||!_0x5b826f[_0x128b7d(0x1f4)])return null;const _0x30b669={'name':_0x349b94,'method':_0x5b826f[_0x128b7d(0x1d2)],'path':_0x5b826f['path']};if(_0x5b826f[_0x128b7d(0x1cb)])_0x30b669['host']=_0x5b826f['host'];if(_0x5b826f['requestBody']!=null)_0x30b669[_0x128b7d(0x1ca)]=parseJsonMaybe(_0x5b826f[_0x128b7d(0x1ca)]);if(_0x5b826f[_0x128b7d(0x1d3)]!=null)_0x30b669[_0x128b7d(0x1d3)]=parseJsonMaybe(_0x5b826f[_0x128b7d(0x1d3)]);if(_0x5b826f[_0x128b7d(0x1cf)]!=null)_0x30b669['beforeScriptId']=_0x5b826f['beforeScriptId'];if(_0x5b826f[_0x128b7d(0x1db)]!=null)_0x30b669[_0x128b7d(0x1db)]=_0x5b826f['afterScriptId'];if(Array[_0x128b7d(0x1cd)](_0x5b826f[_0x128b7d(0x1fb)]))_0x30b669['requestFields']=_0x5b826f[_0x128b7d(0x1fb)];if(Array[_0x128b7d(0x1cd)](_0x5b826f[_0x128b7d(0x1d1)]))_0x30b669[_0x128b7d(0x1d1)]=_0x5b826f[_0x128b7d(0x1d1)];return _0x30b669;}function summarizeDbtable(_0x26e776){const _0x4f71e4=a25_0x4da9,_0x2d247a={},_0x4ba63e=[_0x4f71e4(0x1f3),_0x4f71e4(0x1ea),'tableName','datasetKey',_0x4f71e4(0x1f8),_0x4f71e4(0x1bb),_0x4f71e4(0x1c4),_0x4f71e4(0x1d6),'updateTimeField',_0x4f71e4(0x1f5),_0x4f71e4(0x1d4),_0x4f71e4(0x1ba),_0x4f71e4(0x1c2),'labelField','dblinkInfoDTO'];for(const _0x6429d9 of _0x4ba63e){if(_0x26e776[_0x6429d9]!==undefined)_0x2d247a[_0x6429d9]=_0x26e776[_0x6429d9];}return typeof _0x2d247a[_0x4f71e4(0x1bb)]===_0x4f71e4(0x1f7)&&_0x2d247a['allFields'][_0x4f71e4(0x1bd)]>0x0&&(_0x2d247a[_0x4f71e4(0x1d7)]=_0x2d247a[_0x4f71e4(0x1bb)][_0x4f71e4(0x1e5)](',')[_0x4f71e4(0x1f0)](_0x1c7b54=>_0x1c7b54['trim']())[_0x4f71e4(0x1eb)](Boolean)),_0x2d247a;}function normalizeRelatedPages(_0x35137c){const _0x1c78fe=a25_0x4da9;if(!Array[_0x1c78fe(0x1cd)](_0x35137c))return[];return _0x35137c[_0x1c78fe(0x1eb)](_0x59a633=>_0x59a633&&typeof _0x59a633===_0x1c78fe(0x1f6))['map'](_0x82f080=>({'id':_0x82f080['id'],'type':_0x82f080[_0x1c78fe(0x1e2)],'code':_0x82f080['code'],'title':_0x82f080['title'],'deleted':_0x82f080[_0x1c78fe(0x1d8)]===!![]}));}function normalizeFallbackFieldName(_0x26e478,_0x24e586){const _0x250937=a25_0x4da9,_0xc419c8=_0x26e478[_0x250937(0x1bc)]();if(!_0xc419c8)return null;return{'name':_0xc419c8,'displayName':_0xc419c8,'type':undefined,'dbType':undefined,'pk':_0xc419c8===_0x24e586,'required':![],'description':undefined};}async function loadListFieldFallback(_0x57bd6b,_0x46095b){const _0x4cda92=a25_0x4da9;if(!_0x57bd6b||!_0x46095b)return[];try{const _0x3924ea=await listDatasets(_0x57bd6b,{'code':_0x46095b}),_0x26d490=_0x3924ea[_0x4cda92(0x1e6)](_0x4802b5=>_0x4802b5[_0x4cda92(0x1d5)]===_0x46095b)??_0x3924ea[0x0],_0x5868f7=_0x26d490?.['dbtableConfig']??{},_0x4dcb64=typeof _0x5868f7['allFields']===_0x4cda92(0x1f7)?_0x5868f7[_0x4cda92(0x1bb)]['split'](','):[];return _0x4dcb64['map'](_0x179be6=>normalizeFallbackFieldName(_0x179be6,_0x5868f7[_0x4cda92(0x1f8)]))[_0x4cda92(0x1eb)](_0x1a70e6=>_0x1a70e6!==null);}catch{return[];}}export const datasetDetail={'service':'dataset','command':a25_0x107f4a(0x1cc),'description':a25_0x107f4a(0x1ef),'risk':a25_0x107f4a(0x1c3),'flags':[CODE_FLAG],async 'execute'(_0x26539a){const _0x168d68=a25_0x107f4a,_0x3910d3=await getDatasetDetail(_0x26539a[_0x168d68(0x1e7)](_0x168d68(0x1d5))),_0x47866a=Array[_0x168d68(0x1cd)](_0x3910d3[_0x168d68(0x1ed)])?_0x3910d3[_0x168d68(0x1ed)]:Array['isArray'](_0x3910d3[_0x168d68(0x1d0)])?_0x3910d3[_0x168d68(0x1d0)]:[];let _0x59d22d=_0x47866a['map'](_0xfee06a=>normalizeField(_0xfee06a))[_0x168d68(0x1eb)](_0x595f74=>_0x595f74!==null);_0x59d22d['length']===0x0&&(_0x59d22d=await loadListFieldFallback(_0x26539a[_0x168d68(0x1b8)],_0x26539a[_0x168d68(0x1e7)]('code')));const _0x237852=_0x3910d3['operations']??{},_0xc01373=[];for(const [_0x2b8d82,_0x362264]of Object[_0x168d68(0x1c9)](_0x237852)){const _0x17622e=normalizeOperationEntry(_0x2b8d82,_0x362264);if(_0x17622e)_0xc01373[_0x168d68(0x1f9)](_0x17622e);}const _0x328ab9=_0x3910d3[_0x168d68(0x1bf)]??{},_0x231fef=_0x3910d3['dataset']??{},_0x1e0db0=_0x328ab9[_0x168d68(0x1f3)]!=null?{'id':_0x328ab9[_0x168d68(0x1f3)],'name':_0x328ab9[_0x168d68(0x1ea)]??null}:undefined;let _0x382752;return typeof _0x3910d3[_0x168d68(0x1dd)]==='string'&&(_0x382752=parseJsonMaybe(_0x3910d3['extend'])),{'ok':!![],'data':{'id':_0x3910d3[_0x168d68(0x1fa)]??_0x3910d3['id'],'name':_0x3910d3['name'],'code':_0x3910d3[_0x168d68(0x1fd)]||_0x3910d3[_0x168d68(0x1d5)],'doVersion':_0x3910d3[_0x168d68(0x1dc)],'description':_0x3910d3['description']||_0x231fef['tableComment']||undefined,'source':_0x3910d3[_0x168d68(0x1b7)]||_0x231fef['sourceType'],'table':_0x328ab9[_0x168d68(0x1c5)]||_0x231fef['tableName'],'datasetKey':_0x328ab9['datasetKey'],'pk':_0x328ab9[_0x168d68(0x1f8)],'db':_0x1e0db0,'dbtable':summarizeDbtable(_0x328ab9),'fields':_0x59d22d,'operations':_0xc01373,'indexes':Array[_0x168d68(0x1cd)](_0x231fef['indexes'])?_0x231fef[_0x168d68(0x1f2)]:[],'relations':_0x3910d3[_0x168d68(0x1ec)]??null,'relatedPages':normalizeRelatedPages(_0x3910d3[_0x168d68(0x1e3)]),...Array['isArray'](_0x3910d3[_0x168d68(0x1fc)])?{'columnCodeListWithDeleted':_0x3910d3['columnCodeListWithDeleted']}:{},'formatRules':Array['isArray'](_0x3910d3[_0x168d68(0x1c1)])?_0x3910d3['formatRules']:[],'validateRules':Array[_0x168d68(0x1cd)](_0x3910d3[_0x168d68(0x1c6)])?_0x3910d3[_0x168d68(0x1c6)]:[],..._0x382752!==undefined?{'extend':_0x382752}:{},'stats':{'fieldCount':_0x59d22d[_0x168d68(0x1bd)],'operationCount':_0xc01373[_0x168d68(0x1bd)]}}};}};
1
+ const a25_0x15ad91=a25_0x506a;function a25_0x506a(_0xcb4c75,_0xa53a3a){_0xcb4c75=_0xcb4c75-0xc5;const _0x4a9c87=a25_0x4a9c();let _0x506ae4=_0x4a9c87[_0xcb4c75];return _0x506ae4;}(function(_0x4d9885,_0x502068){const _0x207eb0=a25_0x506a,_0x42bec3=_0x4d9885();while(!![]){try{const _0x5899a3=-parseInt(_0x207eb0(0xdc))/0x1+parseInt(_0x207eb0(0xc5))/0x2*(parseInt(_0x207eb0(0xcd))/0x3)+parseInt(_0x207eb0(0xf6))/0x4+-parseInt(_0x207eb0(0x10c))/0x5+parseInt(_0x207eb0(0xe3))/0x6*(parseInt(_0x207eb0(0xd9))/0x7)+parseInt(_0x207eb0(0xff))/0x8+-parseInt(_0x207eb0(0xd4))/0x9*(parseInt(_0x207eb0(0xf2))/0xa);if(_0x5899a3===_0x502068)break;else _0x42bec3['push'](_0x42bec3['shift']());}catch(_0x2240c7){_0x42bec3['push'](_0x42bec3['shift']());}}}(a25_0x4a9c,0x8427b));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0xd20fd4){const _0xb2edd=a25_0x506a;if(_0xd20fd4[_0xb2edd(0xde)])return null;const _0x40e5c5=Boolean(_0xd20fd4[_0xb2edd(0xed)]!==undefined||_0xd20fd4['doType']!==undefined);let _0x4dad7b={};if(!_0x40e5c5&&typeof _0xd20fd4[_0xb2edd(0x106)]===_0xb2edd(0xfb))try{_0x4dad7b=JSON[_0xb2edd(0xfa)](_0xd20fd4[_0xb2edd(0x106)]);}catch{}const _0x43fe35=_0x40e5c5?_0xd20fd4[_0xb2edd(0xe6)]:_0xd20fd4[_0xb2edd(0xc8)],_0x4a49bb=_0x40e5c5?_0xd20fd4['displayName']:_0xd20fd4['name'],_0x8660d1=_0x40e5c5?_0xd20fd4[_0xb2edd(0x108)]:_0xd20fd4[_0xb2edd(0xfc)]||_0xd20fd4['dataType'],_0x2810b1=_0x40e5c5?_0xd20fd4[_0xb2edd(0xc7)]===!![]:_0x4dad7b[_0xb2edd(0xc7)]===!![],_0x2c9349=_0x40e5c5?_0xd20fd4[_0xb2edd(0x105)]===!![]:_0x4dad7b[_0xb2edd(0x105)]===!![],_0x963891=_0x40e5c5?_0xd20fd4['options']??null:_0x4dad7b[_0xb2edd(0xf0)]??null,_0x500d48={'name':_0x43fe35,'displayName':_0x4a49bb||_0x43fe35,'type':_0x8660d1,'dbType':_0xd20fd4[_0xb2edd(0xc6)],'pk':_0x2810b1,'required':_0x2c9349,'description':_0xd20fd4[_0xb2edd(0xc9)]||undefined};return Array[_0xb2edd(0xe8)](_0x963891)&&_0x963891[_0xb2edd(0xfe)]>0x0&&(_0x500d48[_0xb2edd(0xf0)]=_0x963891),_0x500d48;}function parseJsonMaybe(_0x56683a){const _0x5cfdde=a25_0x506a;if(typeof _0x56683a!==_0x5cfdde(0xfb))return _0x56683a;try{return JSON[_0x5cfdde(0xfa)](_0x56683a);}catch{return _0x56683a;}}function normalizeOperationEntry(_0xe50268,_0x59a315){const _0xd5bfe8=a25_0x506a;if(!_0x59a315||typeof _0x59a315!==_0xd5bfe8(0xd1))return null;if(!_0x59a315[_0xd5bfe8(0x102)]||!_0x59a315[_0xd5bfe8(0x109)])return null;const _0x32cfde={'name':_0xe50268,'method':_0x59a315['method'],'path':_0x59a315['path']};if(_0x59a315[_0xd5bfe8(0xe1)])_0x32cfde[_0xd5bfe8(0xe1)]=_0x59a315[_0xd5bfe8(0xe1)];if(_0x59a315[_0xd5bfe8(0xfd)]!=null)_0x32cfde[_0xd5bfe8(0xfd)]=parseJsonMaybe(_0x59a315['requestBody']);if(_0x59a315[_0xd5bfe8(0xe5)]!=null)_0x32cfde['responseBody']=parseJsonMaybe(_0x59a315[_0xd5bfe8(0xe5)]);if(_0x59a315[_0xd5bfe8(0xf8)]!=null)_0x32cfde[_0xd5bfe8(0xf8)]=_0x59a315[_0xd5bfe8(0xf8)];if(_0x59a315[_0xd5bfe8(0x104)]!=null)_0x32cfde[_0xd5bfe8(0x104)]=_0x59a315['afterScriptId'];if(Array[_0xd5bfe8(0xe8)](_0x59a315[_0xd5bfe8(0xf1)]))_0x32cfde['requestFields']=_0x59a315[_0xd5bfe8(0xf1)];if(Array['isArray'](_0x59a315['responseFields']))_0x32cfde['responseFields']=_0x59a315['responseFields'];return _0x32cfde;}function summarizeDbtable(_0xbf6eb1){const _0x5f4765=a25_0x506a,_0x30c4c6={},_0x5bd467=[_0x5f4765(0xee),'dbName',_0x5f4765(0xcb),_0x5f4765(0x107),'pkField',_0x5f4765(0x10d),_0x5f4765(0x100),_0x5f4765(0xe4),_0x5f4765(0xeb),_0x5f4765(0xe2),'creatorNameField',_0x5f4765(0xcc),_0x5f4765(0xd5),_0x5f4765(0xdd),'dblinkInfoDTO'];for(const _0x4dab6d of _0x5bd467){if(_0xbf6eb1[_0x4dab6d]!==undefined)_0x30c4c6[_0x4dab6d]=_0xbf6eb1[_0x4dab6d];}return typeof _0x30c4c6[_0x5f4765(0x10d)]==='string'&&_0x30c4c6[_0x5f4765(0x10d)][_0x5f4765(0xfe)]>0x0&&(_0x30c4c6['allFieldNames']=_0x30c4c6[_0x5f4765(0x10d)][_0x5f4765(0xef)](',')[_0x5f4765(0xd7)](_0x700795=>_0x700795[_0x5f4765(0x103)]())[_0x5f4765(0xea)](Boolean)),_0x30c4c6;}function normalizeRelatedPages(_0x162e60){const _0x4b3283=a25_0x506a;if(!Array['isArray'](_0x162e60))return[];return _0x162e60[_0x4b3283(0xea)](_0x33a726=>_0x33a726&&typeof _0x33a726===_0x4b3283(0xd1))[_0x4b3283(0xd7)](_0x25e52a=>({'id':_0x25e52a['id'],'type':_0x25e52a[_0x4b3283(0xfc)],'code':_0x25e52a['code'],'title':_0x25e52a[_0x4b3283(0x10a)],'deleted':_0x25e52a[_0x4b3283(0xde)]===!![]}));}function normalizeFallbackFieldName(_0x3e7961,_0x3491e2){const _0x336b51=a25_0x506a,_0x21c473=_0x3e7961[_0x336b51(0x103)]();if(!_0x21c473)return null;return{'name':_0x21c473,'displayName':_0x21c473,'type':undefined,'dbType':undefined,'pk':_0x21c473===_0x3491e2,'required':![],'description':undefined};}async function loadListFieldFallback(_0x281001,_0x28e1c8){const _0x2f6bba=a25_0x506a;if(!_0x281001||!_0x28e1c8)return[];try{const _0x12e851=await listDatasets(_0x281001,{'code':_0x28e1c8}),_0x50dbfc=_0x12e851['find'](_0x1e25db=>_0x1e25db[_0x2f6bba(0xc8)]===_0x28e1c8)??_0x12e851[0x0],_0x5dcf5c=_0x50dbfc?.[_0x2f6bba(0xd8)]??{},_0x32314b=typeof _0x5dcf5c[_0x2f6bba(0x10d)]===_0x2f6bba(0xfb)?_0x5dcf5c[_0x2f6bba(0x10d)][_0x2f6bba(0xef)](','):[];return _0x32314b[_0x2f6bba(0xd7)](_0x528a2a=>normalizeFallbackFieldName(_0x528a2a,_0x5dcf5c[_0x2f6bba(0xc7)]))[_0x2f6bba(0xea)](_0x1588a4=>_0x1588a4!==null);}catch{return[];}}export const datasetDetail={'service':a25_0x15ad91(0xf4),'command':a25_0x15ad91(0x10b),'description':a25_0x15ad91(0xcf),'risk':'read','flags':[CODE_FLAG],async 'execute'(_0x45feb0){const _0x1b7041=a25_0x15ad91,_0x41d8b9=await getDatasetDetail(_0x45feb0[_0x1b7041(0xd6)](_0x1b7041(0xc8))),_0x11162a=Array[_0x1b7041(0xe8)](_0x41d8b9[_0x1b7041(0xf9)])?_0x41d8b9[_0x1b7041(0xf9)]:Array[_0x1b7041(0xe8)](_0x41d8b9[_0x1b7041(0xd0)])?_0x41d8b9[_0x1b7041(0xd0)]:[];let _0x4b0572=_0x11162a[_0x1b7041(0xd7)](_0x58e14b=>normalizeField(_0x58e14b))[_0x1b7041(0xea)](_0x3017ba=>_0x3017ba!==null);_0x4b0572[_0x1b7041(0xfe)]===0x0&&(_0x4b0572=await loadListFieldFallback(_0x45feb0[_0x1b7041(0xca)],_0x45feb0[_0x1b7041(0xd6)]('code')));const _0x93923a=_0x41d8b9[_0x1b7041(0xdb)]??{},_0x26c44e=[];for(const [_0x23310a,_0x39a8f7]of Object['entries'](_0x93923a)){const _0x3c9139=normalizeOperationEntry(_0x23310a,_0x39a8f7);if(_0x3c9139)_0x26c44e[_0x1b7041(0xe7)](_0x3c9139);}const _0x2983b1=_0x41d8b9['dbtableConfig']??{},_0x1d30b1=_0x41d8b9[_0x1b7041(0xf4)]??{},_0x39febb=_0x2983b1[_0x1b7041(0xee)]!=null?{'id':_0x2983b1[_0x1b7041(0xee)],'name':_0x2983b1[_0x1b7041(0xf3)]??null}:undefined;let _0x1307d1;return typeof _0x41d8b9[_0x1b7041(0x106)]==='string'&&(_0x1307d1=parseJsonMaybe(_0x41d8b9['extend'])),{'ok':!![],'data':{'id':_0x41d8b9[_0x1b7041(0x101)]??_0x41d8b9['id'],'name':_0x41d8b9[_0x1b7041(0xe6)],'code':_0x41d8b9[_0x1b7041(0x10e)]||_0x41d8b9[_0x1b7041(0xc8)],'doVersion':_0x41d8b9[_0x1b7041(0xf5)],'description':_0x41d8b9[_0x1b7041(0xc9)]||_0x1d30b1[_0x1b7041(0xe0)]||undefined,'source':_0x41d8b9[_0x1b7041(0xce)]||_0x1d30b1[_0x1b7041(0xd3)],'table':_0x2983b1[_0x1b7041(0xcb)]||_0x1d30b1[_0x1b7041(0xcb)],'datasetKey':_0x2983b1[_0x1b7041(0x107)],'pk':_0x2983b1[_0x1b7041(0xc7)],'db':_0x39febb,'dbtable':summarizeDbtable(_0x2983b1),'fields':_0x4b0572,'operations':_0x26c44e,'indexes':Array[_0x1b7041(0xe8)](_0x1d30b1['indexes'])?_0x1d30b1[_0x1b7041(0xdf)]:[],'relations':_0x41d8b9[_0x1b7041(0xda)]??null,'relatedPages':normalizeRelatedPages(_0x41d8b9[_0x1b7041(0xf7)]),...Array[_0x1b7041(0xe8)](_0x41d8b9[_0x1b7041(0xd2)])?{'columnCodeListWithDeleted':_0x41d8b9['columnCodeListWithDeleted']}:{},'formatRules':Array[_0x1b7041(0xe8)](_0x41d8b9['formatRules'])?_0x41d8b9[_0x1b7041(0xec)]:[],'validateRules':Array[_0x1b7041(0xe8)](_0x41d8b9['validateRules'])?_0x41d8b9[_0x1b7041(0xe9)]:[],..._0x1307d1!==undefined?{'extend':_0x1307d1}:{},'stats':{'fieldCount':_0x4b0572[_0x1b7041(0xfe)],'operationCount':_0x26c44e[_0x1b7041(0xfe)]}}};}};function a25_0x4a9c(){const _0x16d60d=['31055JfwWla','allFields','modelCode','29504bCKLYs','dbType','pkField','code','description','appCode','tableName','modifierIdField','93xNUdkf','source','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','properties','object','columnCodeListWithDeleted','sourceType','1692801mAECrJ','modifierNameField','str','map','dbtableConfig','329ucGyyb','relations','operations','122399DJStes','labelField','deleted','indexes','tableComment','host','creatorIdField','100752ZVofAI','createTimeField','responseBody','name','push','isArray','validateRules','filter','updateTimeField','formatRules','displayName','dbId','split','options','requestFields','130hKIHSA','dbName','dataset','doVersion','3831864VgxTqw','relatedPageInfoList','beforeScriptId','fields','parse','string','type','requestBody','length','7284576GdIvNT','logicField','modelId','method','trim','afterScriptId','required','extend','datasetKey','doType','path','title','detail'];a25_0x4a9c=function(){return _0x16d60d;};return a25_0x4a9c();}
@@ -1 +1 @@
1
- (function(_0x54f838,_0x50e97d){const _0x5a0cb7=a26_0xa8c1,_0x13d94e=_0x54f838();while(!![]){try{const _0x412293=-parseInt(_0x5a0cb7(0x1d7))/0x1+-parseInt(_0x5a0cb7(0x1d9))/0x2*(parseInt(_0x5a0cb7(0x1d1))/0x3)+-parseInt(_0x5a0cb7(0x1d3))/0x4+-parseInt(_0x5a0cb7(0x1d0))/0x5+parseInt(_0x5a0cb7(0x1d5))/0x6*(parseInt(_0x5a0cb7(0x1d2))/0x7)+-parseInt(_0x5a0cb7(0x1d6))/0x8+-parseInt(_0x5a0cb7(0x1d4))/0x9*(-parseInt(_0x5a0cb7(0x1d8))/0xa);if(_0x412293===_0x50e97d)break;else _0x13d94e['push'](_0x13d94e['shift']());}catch(_0x52a09b){_0x13d94e['push'](_0x13d94e['shift']());}}}(a26_0x5ea8,0x773df));function a26_0xa8c1(_0xe3a478,_0x3bd28c){_0xe3a478=_0xe3a478-0x1d0;const _0x5ea880=a26_0x5ea8();let _0xa8c1c1=_0x5ea880[_0xe3a478];return _0xa8c1c1;}function a26_0x5ea8(){const _0x4cbf3c=['1705544UfEARf','5153742VTvRPy','494958qaPlvh','731672VRXClM','438150otyJod','30UhQeZH','2KpPsuY','802045LQLGSq','1824159RXbZvM','42yIULss'];a26_0x5ea8=function(){return _0x4cbf3c;};return a26_0x5ea8();}import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ (function(_0x47ab60,_0xea1d04){const _0x14291c=a26_0xc5cd,_0x594a62=_0x47ab60();while(!![]){try{const _0x38e560=-parseInt(_0x14291c(0x76))/0x1+-parseInt(_0x14291c(0x74))/0x2+-parseInt(_0x14291c(0x78))/0x3+-parseInt(_0x14291c(0x75))/0x4+-parseInt(_0x14291c(0x7a))/0x5*(parseInt(_0x14291c(0x77))/0x6)+parseInt(_0x14291c(0x7b))/0x7+parseInt(_0x14291c(0x79))/0x8;if(_0x38e560===_0xea1d04)break;else _0x594a62['push'](_0x594a62['shift']());}catch(_0x28ea08){_0x594a62['push'](_0x594a62['shift']());}}}(a26_0x35f2,0x84392));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a26_0xc5cd(_0x639dc8,_0x4f7e58){_0x639dc8=_0x639dc8-0x74;const _0x35f29a=a26_0x35f2();let _0xc5cd3=_0x35f29a[_0x639dc8];return _0xc5cd3;}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];function a26_0x35f2(){const _0x4576a8=['186NbBtpW','474348SuJGRy','21971048eQnaUi','134165yIMSJW','3233748WPzGwk','344810zVjbzA','1956440bBZPcg','1015305hmVQQk'];a26_0x35f2=function(){return _0x4576a8;};return a26_0x35f2();}
@@ -1 +1 @@
1
- function a27_0x1349(_0x59ac9f,_0x3a9c76){_0x59ac9f=_0x59ac9f-0xa9;const _0x2a160a=a27_0x2a16();let _0x134952=_0x2a160a[_0x59ac9f];return _0x134952;}const a27_0xf996a=a27_0x1349;(function(_0x294ed3,_0x499308){const _0x796cd9=a27_0x1349,_0x3ebd5b=_0x294ed3();while(!![]){try{const _0x950110=-parseInt(_0x796cd9(0xba))/0x1*(-parseInt(_0x796cd9(0xb1))/0x2)+-parseInt(_0x796cd9(0xb4))/0x3+parseInt(_0x796cd9(0xae))/0x4+-parseInt(_0x796cd9(0xc2))/0x5*(parseInt(_0x796cd9(0xaa))/0x6)+-parseInt(_0x796cd9(0xc0))/0x7+-parseInt(_0x796cd9(0xbd))/0x8+parseInt(_0x796cd9(0xc1))/0x9;if(_0x950110===_0x499308)break;else _0x3ebd5b['push'](_0x3ebd5b['shift']());}catch(_0x408840){_0x3ebd5b['push'](_0x3ebd5b['shift']());}}}(a27_0x2a16,0xdcbe3));function a27_0x2a16(){const _0x1fe8ca=['code','tableName','916907hnAJCi','length','description','10295752OqAgVw','source','name','10551898SpnAAv','43639749CrdECG','5JqyuUY','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','9905340dYxLKe','dbtableConfig','dataset','allFields','2223568SgelSz','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','map','2ntSqQy','pkField','str','2916672FPGWiT','trim','datasetKey','list'];a27_0x2a16=function(){return _0x1fe8ca;};return a27_0x2a16();}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a27_0xf996a(0xac),'command':a27_0xf996a(0xb7),'description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':'read','flags':[{'name':a27_0xf996a(0xbf),'type':'string','description':a27_0xf996a(0xaf)},{...CODE_FLAG,'required':![],'description':a27_0xf996a(0xa9)}],async 'execute'(_0x35de1e){const _0x428b45=a27_0xf996a,_0x1b5bc9=_0x35de1e[_0x428b45(0xb3)](_0x428b45(0xbf)),_0x4dad6e=_0x35de1e[_0x428b45(0xb3)]('code'),_0x55347e=await listDatasets(_0x35de1e['appCode'],{..._0x1b5bc9&&{'name':_0x1b5bc9},..._0x4dad6e&&{'code':_0x4dad6e}});return{'ok':!![],'data':{'total':_0x55347e[_0x428b45(0xbb)],'datasets':_0x55347e[_0x428b45(0xb0)](_0x1d179a=>{const _0x16a51c=_0x428b45,_0x307be6=_0x1d179a[_0x16a51c(0xab)]??{};return{'id':_0x1d179a['id'],'code':_0x1d179a[_0x16a51c(0xb8)],'name':_0x1d179a[_0x16a51c(0xbf)],'source':_0x1d179a[_0x16a51c(0xbe)],'description':_0x1d179a[_0x16a51c(0xbc)],'table':_0x307be6[_0x16a51c(0xb9)],'datasetKey':_0x307be6[_0x16a51c(0xb6)],'pk':_0x307be6[_0x16a51c(0xb2)],'fields':_0x307be6[_0x16a51c(0xad)]?_0x307be6[_0x16a51c(0xad)]['split'](',')[_0x16a51c(0xb0)](_0x2778b8=>_0x2778b8[_0x16a51c(0xb5)]()):[]};})}};}};
1
+ const a27_0x4b21b9=a27_0x2398;(function(_0x5853f9,_0x4135e4){const _0x258ada=a27_0x2398,_0x54186a=_0x5853f9();while(!![]){try{const _0x296a0f=-parseInt(_0x258ada(0x15e))/0x1+parseInt(_0x258ada(0x15a))/0x2*(parseInt(_0x258ada(0x152))/0x3)+parseInt(_0x258ada(0x166))/0x4+-parseInt(_0x258ada(0x162))/0x5+-parseInt(_0x258ada(0x15b))/0x6*(parseInt(_0x258ada(0x164))/0x7)+-parseInt(_0x258ada(0x159))/0x8+parseInt(_0x258ada(0x151))/0x9;if(_0x296a0f===_0x4135e4)break;else _0x54186a['push'](_0x54186a['shift']());}catch(_0x232bb7){_0x54186a['push'](_0x54186a['shift']());}}}(a27_0xb1b8,0xd0bd6));function a27_0xb1b8(){const _0x45a9cc=['6430004YMUczs','dataset','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','source','trim','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','29168469cvSnBl','768liEBTd','description','read','map','allFields','string','code','6668784xAjAdb','482JBSiPw','6cJTJIB','split','name','1242566LpPuXC','appCode','tableName','dbtableConfig','1531145ttXmGK','list','11709229FXdrnV','str'];a27_0xb1b8=function(){return _0x45a9cc;};return a27_0xb1b8();}function a27_0x2398(_0xd77b69,_0x39cb66){_0xd77b69=_0xd77b69-0x14e;const _0xb1b8fa=a27_0xb1b8();let _0x239838=_0xb1b8fa[_0xd77b69];return _0x239838;}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a27_0x4b21b9(0x167),'command':a27_0x4b21b9(0x163),'description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':a27_0x4b21b9(0x154),'flags':[{'name':'name','type':a27_0x4b21b9(0x157),'description':a27_0x4b21b9(0x168)},{...CODE_FLAG,'required':![],'description':a27_0x4b21b9(0x150)}],async 'execute'(_0x1d4ca3){const _0x791e39=a27_0x4b21b9,_0x37ceb5=_0x1d4ca3['str']('name'),_0x15ef17=_0x1d4ca3[_0x791e39(0x165)](_0x791e39(0x158)),_0x2193ce=await listDatasets(_0x1d4ca3[_0x791e39(0x15f)],{..._0x37ceb5&&{'name':_0x37ceb5},..._0x15ef17&&{'code':_0x15ef17}});return{'ok':!![],'data':{'total':_0x2193ce['length'],'datasets':_0x2193ce['map'](_0x545653=>{const _0x544ff9=_0x791e39,_0x3e80e4=_0x545653[_0x544ff9(0x161)]??{};return{'id':_0x545653['id'],'code':_0x545653['code'],'name':_0x545653[_0x544ff9(0x15d)],'source':_0x545653[_0x544ff9(0x14e)],'description':_0x545653[_0x544ff9(0x153)],'table':_0x3e80e4[_0x544ff9(0x160)],'datasetKey':_0x3e80e4['datasetKey'],'pk':_0x3e80e4['pkField'],'fields':_0x3e80e4[_0x544ff9(0x156)]?_0x3e80e4['allFields'][_0x544ff9(0x15c)](',')[_0x544ff9(0x155)](_0x57b951=>_0x57b951[_0x544ff9(0x14f)]()):[]};})}};}};
@@ -1 +1 @@
1
- const a28_0x34d02b=a28_0x34c0;(function(_0x107c36,_0x548c23){const _0x78aec=a28_0x34c0,_0x2301d5=_0x107c36();while(!![]){try{const _0x59bc14=-parseInt(_0x78aec(0x9d))/0x1*(-parseInt(_0x78aec(0x8f))/0x2)+parseInt(_0x78aec(0x99))/0x3*(parseInt(_0x78aec(0x92))/0x4)+-parseInt(_0x78aec(0x91))/0x5+parseInt(_0x78aec(0x9c))/0x6*(-parseInt(_0x78aec(0x93))/0x7)+parseInt(_0x78aec(0x9e))/0x8*(-parseInt(_0x78aec(0x8e))/0x9)+parseInt(_0x78aec(0x9b))/0xa+parseInt(_0x78aec(0x98))/0xb;if(_0x59bc14===_0x548c23)break;else _0x2301d5['push'](_0x2301d5['shift']());}catch(_0x341bb5){_0x2301d5['push'](_0x2301d5['shift']());}}}(a28_0x43f2,0x85e87));function a28_0x43f2(){const _0x3f60e1=['39639SyUzVo','16HdCncF','460719GEnfQN','4dsDGlw','trim','5124430azoQMj','450676kYcXbW','46025xabQTB','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','sdk-doc','appCode','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','8028856eFsojw','12kdiuMy','dataset','5342550CpwmTu','108KzSwHt'];a28_0x43f2=function(){return _0x3f60e1;};return a28_0x43f2();}import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN='#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档';export function formatDatasetSdkMarkdown(_0x33f21a){const _0x21cf71=a28_0x34c0,_0x3c373d=typeof _0x33f21a==='string'?_0x33f21a[_0x21cf71(0x90)]():'';return _0x3c373d||DEFAULT_MARKDOWN;}function a28_0x34c0(_0x323a1d,_0x1c6e60){_0x323a1d=_0x323a1d-0x8e;const _0x43f24f=a28_0x43f2();let _0x34c0c5=_0x43f24f[_0x323a1d];return _0x34c0c5;}export const datasetSdkDoc={'service':a28_0x34d02b(0x9a),'command':a28_0x34d02b(0x95),'description':a28_0x34d02b(0x97),'risk':'read','flags':[{...CODE_FLAG,'description':a28_0x34d02b(0x94)}],async 'execute'(_0x32b1de){const _0x23a4a4=a28_0x34d02b,_0x358987=_0x32b1de['str']('code'),_0xa04a19=await getDatasetSdkUsageDoc(_0x358987,_0x32b1de[_0x23a4a4(0x96)]);return{'ok':!![],'data':{'code':_0x358987,'appCode':_0x32b1de['appCode'],'markdown':formatDatasetSdkMarkdown(_0xa04a19)}};}};
1
+ const a28_0x41008b=a28_0x1963;(function(_0x10218a,_0x23a0de){const _0x330fbc=a28_0x1963,_0x6d16dc=_0x10218a();while(!![]){try{const _0x4b491a=parseInt(_0x330fbc(0xbd))/0x1*(-parseInt(_0x330fbc(0xc9))/0x2)+-parseInt(_0x330fbc(0xc6))/0x3+parseInt(_0x330fbc(0xcc))/0x4+parseInt(_0x330fbc(0xbb))/0x5*(parseInt(_0x330fbc(0xc3))/0x6)+parseInt(_0x330fbc(0xc2))/0x7*(parseInt(_0x330fbc(0xc4))/0x8)+-parseInt(_0x330fbc(0xc1))/0x9+-parseInt(_0x330fbc(0xbc))/0xa*(-parseInt(_0x330fbc(0xcb))/0xb);if(_0x4b491a===_0x23a0de)break;else _0x6d16dc['push'](_0x6d16dc['shift']());}catch(_0x39e56f){_0x6d16dc['push'](_0x6d16dc['shift']());}}}(a28_0x43f2,0x9ffe3));function a28_0x1963(_0x2a30f8,_0x2406e4){_0x2a30f8=_0x2a30f8-0xbb;const _0x43f2d9=a28_0x43f2();let _0x196350=_0x43f2d9[_0x2a30f8];return _0x196350;}function a28_0x43f2(){const _0x1b4e7c=['4hwYMlT','trim','11198Hidktc','1095784kMnuti','835FBqguT','10430NEnAdP','292821CXgQnr','string','appCode','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','1045692ynQnBV','7HLjaOR','10194VMdqXv','7841240bntznG','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','3727341OrtxDt','code','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code'];a28_0x43f2=function(){return _0x1b4e7c;};return a28_0x43f2();}import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a28_0x41008b(0xc0);export function formatDatasetSdkMarkdown(_0x2b5fc0){const _0x3db0d5=a28_0x41008b,_0x104248=typeof _0x2b5fc0===_0x3db0d5(0xbe)?_0x2b5fc0[_0x3db0d5(0xca)]():'';return _0x104248||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':'dataset','command':'sdk-doc','description':a28_0x41008b(0xc8),'risk':'read','flags':[{...CODE_FLAG,'description':a28_0x41008b(0xc5)}],async 'execute'(_0x354ffd){const _0x52f6a6=a28_0x41008b,_0x482694=_0x354ffd['str'](_0x52f6a6(0xc7)),_0x417555=await getDatasetSdkUsageDoc(_0x482694,_0x354ffd[_0x52f6a6(0xbf)]);return{'ok':!![],'data':{'code':_0x482694,'appCode':_0x354ffd['appCode'],'markdown':formatDatasetSdkMarkdown(_0x417555)}};}};