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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) 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/app-config/shared.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schema.js +1 -1
  39. package/lib/commands/service/dynamic.js +1 -1
  40. package/lib/commands/service/index.js +1 -1
  41. package/lib/commands/service/registry.js +1 -1
  42. package/lib/commands/skill/commands/create.js +1 -1
  43. package/lib/commands/skill/commands/install.js +1 -1
  44. package/lib/commands/skill/commands/list.js +1 -1
  45. package/lib/commands/skill/commands/push.js +1 -1
  46. package/lib/commands/skill/commands/validate.js +1 -1
  47. package/lib/commands/skill/flags.js +1 -1
  48. package/lib/commands/skill/index.js +1 -1
  49. package/lib/commands/skill/manifest-helpers.js +1 -1
  50. package/lib/commands/skill/push-execute.js +1 -1
  51. package/lib/commands/skill/push-flow-helpers.js +1 -1
  52. package/lib/commands/skill/push-retarget.js +1 -1
  53. package/lib/commands/skill/scopes.js +1 -1
  54. package/lib/commands/skill/summary.js +1 -1
  55. package/lib/commands/skill/templates.js +1 -1
  56. package/lib/commands/skill/validate.js +1 -1
  57. package/lib/commands/sql/detail.js +1 -1
  58. package/lib/commands/sql/exec.js +1 -1
  59. package/lib/commands/sql/index.js +1 -1
  60. package/lib/commands/update.js +1 -1
  61. package/lib/commands/workspace/index.js +1 -1
  62. package/lib/config/schema.js +1 -1
  63. package/lib/constant/app.js +1 -1
  64. package/lib/constant/auth-mode.js +1 -1
  65. package/lib/constant/cli.js +1 -1
  66. package/lib/constant/defaults.js +1 -1
  67. package/lib/constant/distribution.js +1 -1
  68. package/lib/constant/domain.js +1 -1
  69. package/lib/constant/env.js +1 -1
  70. package/lib/constant/output.js +1 -1
  71. package/lib/constant/product.js +1 -1
  72. package/lib/constant/risk.js +1 -1
  73. package/lib/constant/url.js +1 -1
  74. package/lib/context.js +1 -1
  75. package/lib/core/api-client.js +1 -1
  76. package/lib/core/db-resolver.js +1 -1
  77. package/lib/core/sdk-client.js +1 -1
  78. package/lib/errors.js +1 -1
  79. package/lib/framework/build-all-flags.js +1 -1
  80. package/lib/framework/dryrun.js +1 -1
  81. package/lib/framework/flags.js +1 -1
  82. package/lib/framework/help.js +1 -1
  83. package/lib/framework/index.js +1 -1
  84. package/lib/framework/output.js +1 -1
  85. package/lib/framework/preparse.js +1 -1
  86. package/lib/framework/response.js +1 -1
  87. package/lib/framework/runner-confirmation.js +1 -1
  88. package/lib/framework/runner-error.js +1 -1
  89. package/lib/framework/runner.js +1 -1
  90. package/lib/framework/schema-export.js +1 -1
  91. package/lib/framework/service-order.js +1 -1
  92. package/lib/framework/types.js +1 -1
  93. package/lib/generated/build-info.js +1 -1
  94. package/lib/help.js +1 -1
  95. package/lib/skills/npx-skills-add.js +1 -1
  96. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  97. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  98. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  99. package/lib/skills/runtime-skill-sync/links.js +1 -1
  100. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  101. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  102. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  103. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  104. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  105. package/lib/skills/runtime-skill-sync/push.js +1 -1
  106. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  107. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  108. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  109. package/lib/skills/runtime-skill-sync.js +1 -1
  110. package/lib/utils/apply-jq-filter.js +1 -1
  111. package/lib/utils/logger.js +1 -1
  112. package/lib/utils/params.js +1 -1
  113. package/lib/utils/platform.js +1 -1
  114. package/lib/utils/update-notice.js +1 -1
  115. package/lib/utils/version.js +1 -1
  116. package/lib/utils/write-cli-side-channel.js +1 -1
  117. package/package.json +1 -1
@@ -1 +1 @@
1
- const a15_0x44130e=a15_0x469b;function a15_0x1b5a(){const _0x2ca1b3=['str','646860BNiGCo','4010560LgHREl','BFF\x20executed\x20in\x20','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','now','524415BXUPeG','read','BFF\x20function\x20name\x20to\x20execute','4504hTFlsa','535gGfIFw','324451JrePfQ','2613105mYLNBL','2RcgqKo','name','6552791iaXdjw'];a15_0x1b5a=function(){return _0x2ca1b3;};return a15_0x1b5a();}(function(_0x31627d,_0x5cbb45){const _0x17dbbe=a15_0x469b,_0x1233fc=_0x31627d();while(!![]){try{const _0x4ce367=parseInt(_0x17dbbe(0x187))/0x1*(parseInt(_0x17dbbe(0x179))/0x2)+parseInt(_0x17dbbe(0x182))/0x3+-parseInt(_0x17dbbe(0x185))/0x4*(-parseInt(_0x17dbbe(0x186))/0x5)+parseInt(_0x17dbbe(0x17d))/0x6+-parseInt(_0x17dbbe(0x17b))/0x7+parseInt(_0x17dbbe(0x17e))/0x8+parseInt(_0x17dbbe(0x178))/0x9;if(_0x4ce367===_0x5cbb45)break;else _0x1233fc['push'](_0x1233fc['shift']());}catch(_0x271f50){_0x1233fc['push'](_0x1233fc['shift']());}}}(a15_0x1b5a,0x8e5bc));import{executeSdkBff}from'../../core/sdk-client.js';function a15_0x469b(_0x2af23f,_0x110217){_0x2af23f=_0x2af23f-0x178;const _0x1b5ab7=a15_0x1b5a();let _0x469b11=_0x1b5ab7[_0x2af23f];return _0x469b11;}import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':'bff','command':'exec','description':a15_0x44130e(0x180),'risk':a15_0x44130e(0x183),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x44130e(0x184)},PARAMS_FLAG],async 'execute'(_0x416885){const _0x495f4a=a15_0x44130e,_0x55cc52=parseJsonParams(_0x416885['str']('params')),_0x13ea4e=Date[_0x495f4a(0x181)](),_0x144c8a=await executeSdkBff(_0x416885[_0x495f4a(0x17c)](_0x495f4a(0x17a)),_0x55cc52),_0x2c5aee=Date[_0x495f4a(0x181)]()-_0x13ea4e;return{'ok':!![],'data':{'result':_0x144c8a,'elapsed':_0x2c5aee},'message':_0x495f4a(0x17f)+_0x2c5aee+'ms'};}};
1
+ function a15_0x3255(_0x2536e0,_0x346a09){_0x2536e0=_0x2536e0-0x17b;const _0x5ee3cd=a15_0x5ee3();let _0x325526=_0x5ee3cd[_0x2536e0];return _0x325526;}const a15_0x3d961b=a15_0x3255;(function(_0x369087,_0x19f940){const _0x53e13c=a15_0x3255,_0x29ed66=_0x369087();while(!![]){try{const _0xc15aba=-parseInt(_0x53e13c(0x189))/0x1+parseInt(_0x53e13c(0x185))/0x2*(parseInt(_0x53e13c(0x184))/0x3)+-parseInt(_0x53e13c(0x17d))/0x4+parseInt(_0x53e13c(0x18a))/0x5*(-parseInt(_0x53e13c(0x17e))/0x6)+parseInt(_0x53e13c(0x180))/0x7+-parseInt(_0x53e13c(0x188))/0x8+parseInt(_0x53e13c(0x183))/0x9*(parseInt(_0x53e13c(0x186))/0xa);if(_0xc15aba===_0x19f940)break;else _0x29ed66['push'](_0x29ed66['shift']());}catch(_0x11f1ec){_0x29ed66['push'](_0x29ed66['shift']());}}}(a15_0x5ee3,0x86aae));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a15_0x5ee3(){const _0xd093eb=['54uIarsn','10200YXOofV','BFF\x20function\x20name\x20to\x20execute','3312656rgDGKh','869147MvAxqq','3155VXmauX','BFF\x20executed\x20in\x20','name','1316364lrwYrF','6546bFkgJJ','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','3488639fmOWMp','now','str','12807IRsFrT','100278HsFnQl'];a15_0x5ee3=function(){return _0xd093eb;};return a15_0x5ee3();}export const bffExec={'service':'bff','command':'exec','description':a15_0x3d961b(0x17f),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':a15_0x3d961b(0x187)},PARAMS_FLAG],async 'execute'(_0x434c9c){const _0x4843b5=a15_0x3d961b,_0x1258c9=parseJsonParams(_0x434c9c[_0x4843b5(0x182)]('params')),_0xd11d0e=Date[_0x4843b5(0x181)](),_0x4607ff=await executeSdkBff(_0x434c9c[_0x4843b5(0x182)](_0x4843b5(0x17c)),_0x1258c9),_0x4d0496=Date[_0x4843b5(0x181)]()-_0xd11d0e;return{'ok':!![],'data':{'result':_0x4607ff,'elapsed':_0x4d0496},'message':_0x4843b5(0x17b)+_0x4d0496+'ms'};}};
@@ -1 +1 @@
1
- function a16_0xa4b8(_0x9e2bf2,_0x471c47){_0x9e2bf2=_0x9e2bf2-0x1b5;const _0x1333eb=a16_0x1333();let _0xa4b821=_0x1333eb[_0x9e2bf2];return _0xa4b821;}(function(_0x4a0963,_0x265b2f){const _0x27640b=a16_0xa4b8,_0x223819=_0x4a0963();while(!![]){try{const _0xdf4f02=parseInt(_0x27640b(0x1bc))/0x1+-parseInt(_0x27640b(0x1b8))/0x2+parseInt(_0x27640b(0x1be))/0x3+-parseInt(_0x27640b(0x1bd))/0x4*(-parseInt(_0x27640b(0x1bf))/0x5)+-parseInt(_0x27640b(0x1ba))/0x6*(parseInt(_0x27640b(0x1b6))/0x7)+-parseInt(_0x27640b(0x1b7))/0x8*(-parseInt(_0x27640b(0x1b9))/0x9)+-parseInt(_0x27640b(0x1b5))/0xa*(-parseInt(_0x27640b(0x1bb))/0xb);if(_0xdf4f02===_0x265b2f)break;else _0x223819['push'](_0x223819['shift']());}catch(_0x529f48){_0x223819['push'](_0x223819['shift']());}}}(a16_0x1333,0x897af));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a16_0x1333(){const _0x38b848=['7810cutYoX','91nHdUCz','8mvbhga','1655256Kkfgzq','7711344sQHKea','29364GaGXUI','869JYDoXh','251345GoaQMt','56YMRZGK','93957BAGzVK','90425RtNXeu'];a16_0x1333=function(){return _0x38b848;};return a16_0x1333();}export const bffDefinitions=[bffDetail,bffExec];
1
+ function a16_0x40d4(_0x1a20ac,_0x211dbd){_0x1a20ac=_0x1a20ac-0x134;const _0xcb7b22=a16_0xcb7b();let _0x40d44d=_0xcb7b22[_0x1a20ac];return _0x40d44d;}function a16_0xcb7b(){const _0x13564d=['18JPFstl','4853737EKaiyB','30319090lbvNEv','39CNWSlv','80KZCPtr','3296134yTBjvU','116188WgAdld','380580GvsUpO','442566UTIxLh','130043wDHTTZ'];a16_0xcb7b=function(){return _0x13564d;};return a16_0xcb7b();}(function(_0xa011fe,_0x46e31e){const _0x473b26=a16_0x40d4,_0x5c56a9=_0xa011fe();while(!![]){try{const _0x4c13ec=parseInt(_0x473b26(0x136))/0x1+-parseInt(_0x473b26(0x13c))/0x2+-parseInt(_0x473b26(0x13a))/0x3*(-parseInt(_0x473b26(0x13d))/0x4)+-parseInt(_0x473b26(0x134))/0x5*(-parseInt(_0x473b26(0x137))/0x6)+-parseInt(_0x473b26(0x138))/0x7+-parseInt(_0x473b26(0x13b))/0x8*(parseInt(_0x473b26(0x135))/0x9)+parseInt(_0x473b26(0x139))/0xa;if(_0x4c13ec===_0x46e31e)break;else _0x5c56a9['push'](_0x5c56a9['shift']());}catch(_0x524c60){_0x5c56a9['push'](_0x5c56a9['shift']());}}}(a16_0xcb7b,0xe4339));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- const a17_0x1a4e31=a17_0x116d;(function(_0x226cda,_0x2ad66a){const _0x47472e=a17_0x116d,_0x12116d=_0x226cda();while(!![]){try{const _0x1809ea=parseInt(_0x47472e(0x168))/0x1*(-parseInt(_0x47472e(0x158))/0x2)+-parseInt(_0x47472e(0x157))/0x3+-parseInt(_0x47472e(0x16a))/0x4+-parseInt(_0x47472e(0x15c))/0x5*(-parseInt(_0x47472e(0x15b))/0x6)+-parseInt(_0x47472e(0x165))/0x7*(-parseInt(_0x47472e(0x15d))/0x8)+-parseInt(_0x47472e(0x156))/0x9*(parseInt(_0x47472e(0x174))/0xa)+parseInt(_0x47472e(0x167))/0xb;if(_0x1809ea===_0x2ad66a)break;else _0x12116d['push'](_0x12116d['shift']());}catch(_0x1e8f86){_0x12116d['push'](_0x12116d['shift']());}}}(a17_0x203a,0x5c2e1));function a17_0x203a(){const _0x5c2681=['apiError','setLogPath','log','../../skills/npx-skills-add.js','nonInteractive','40thoVJL','734139PHEstD','645792EzGiVd','64682uxBgIT','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','error','36twevUE','61645YljvHF','32rTPDdY','cli-skill-install','info','cli-skill','write','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','install','inherit','198282cCMtxd','unknown','18664580rGNJfr','22FpamTj','CLI\x20Built-in\x20Skill\x20installed','1013756HeTINZ','cwd','\x20-g\x20-y','Skipped\x20npx\x20(','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20'];a17_0x203a=function(){return _0x5c2681;};return a17_0x203a();}import{CliErrors}from'../../errors.js';function a17_0x116d(_0x247ed9,_0x1aed6d){_0x247ed9=_0x247ed9-0x156;const _0x203a46=a17_0x203a();let _0x116db8=_0x203a46[_0x247ed9];return _0x116db8;}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a17_0x1a4e31(0x160),'command':a17_0x1a4e31(0x163),'description':'Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','risk':a17_0x1a4e31(0x161),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4cee81){const _0x52b1bd=a17_0x1a4e31;logger[_0x52b1bd(0x170)](process[_0x52b1bd(0x16b)]()),logger[_0x52b1bd(0x15f)](_0x52b1bd(0x15e),'Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.');const {LOVRABET_SKILL_SOURCE:_0x4ce28c,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x1b5f5b,runNpxSkillsAddGlobal:_0x122f7b}=await import(_0x52b1bd(0x172)),_0x3c9e02=_0x4cee81[_0x52b1bd(0x173)]?'pipe':_0x52b1bd(0x164);console[_0x52b1bd(0x171)](_0x52b1bd(0x16e)+_0x4ce28c+'\x20-g\x20-y)...');const _0x14ba2c=_0x122f7b(process[_0x52b1bd(0x16b)](),_0x4ce28c,{'stdio':_0x3c9e02});if(_0x14ba2c['skipped'])console['log'](_0x52b1bd(0x16d)+_0x1b5f5b+_0x52b1bd(0x159));else{if(_0x14ba2c['ok'])console[_0x52b1bd(0x171)](_0x52b1bd(0x169));else throw CliErrors[_0x52b1bd(0x16f)]('npx\x20skills\x20add\x20failed:\x20'+(_0x14ba2c[_0x52b1bd(0x15a)]||_0x52b1bd(0x166)),_0x52b1bd(0x162)+_0x4ce28c+_0x52b1bd(0x16c));}return{'ok':!![]};}}];
1
+ const a17_0x13f8e0=a17_0x4705;function a17_0x4705(_0xa2735b,_0x7aed87){_0xa2735b=_0xa2735b-0x168;const _0x21686d=a17_0x2168();let _0x470584=_0x21686d[_0xa2735b];return _0x470584;}(function(_0x1a9f71,_0x1ef7d0){const _0x432fa8=a17_0x4705,_0x5a9b8d=_0x1a9f71();while(!![]){try{const _0x118291=parseInt(_0x432fa8(0x181))/0x1*(parseInt(_0x432fa8(0x17e))/0x2)+parseInt(_0x432fa8(0x16e))/0x3+parseInt(_0x432fa8(0x185))/0x4+-parseInt(_0x432fa8(0x17a))/0x5*(-parseInt(_0x432fa8(0x173))/0x6)+-parseInt(_0x432fa8(0x171))/0x7*(parseInt(_0x432fa8(0x184))/0x8)+parseInt(_0x432fa8(0x180))/0x9+-parseInt(_0x432fa8(0x176))/0xa;if(_0x118291===_0x1ef7d0)break;else _0x5a9b8d['push'](_0x5a9b8d['shift']());}catch(_0x25bf57){_0x5a9b8d['push'](_0x5a9b8d['shift']());}}}(a17_0x2168,0x852df));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a17_0x13f8e0(0x169),'command':a17_0x13f8e0(0x177),'description':a17_0x13f8e0(0x17d),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x55abc6){const _0x1d827c=a17_0x13f8e0;logger[_0x1d827c(0x17c)](process[_0x1d827c(0x16a)]()),logger[_0x1d827c(0x16f)](_0x1d827c(0x172),_0x1d827c(0x179));const {LOVRABET_SKILL_SOURCE:_0x289bbc,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x52266b,runNpxSkillsAddGlobal:_0x2e931f}=await import('../../skills/npx-skills-add.js'),_0x5dc526=_0x55abc6['nonInteractive']?_0x1d827c(0x17b):_0x1d827c(0x174);console[_0x1d827c(0x16d)](_0x1d827c(0x16c)+_0x289bbc+_0x1d827c(0x170));const _0x503f58=_0x2e931f(process[_0x1d827c(0x16a)](),_0x289bbc,{'stdio':_0x5dc526});if(_0x503f58[_0x1d827c(0x168)])console[_0x1d827c(0x16d)]('Skipped\x20npx\x20('+_0x52266b+_0x1d827c(0x17f));else{if(_0x503f58['ok'])console[_0x1d827c(0x16d)]('CLI\x20Built-in\x20Skill\x20installed');else throw CliErrors[_0x1d827c(0x183)](_0x1d827c(0x175)+(_0x503f58['error']||_0x1d827c(0x178)),_0x1d827c(0x16b)+_0x289bbc+_0x1d827c(0x182));}return{'ok':!![]};}}];function a17_0x2168(){const _0x4f76fc=['unknown','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','1255TXLHLr','pipe','setLogPath','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','134242YTCRrt','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','9123147amSsio','5iOgAhZ','\x20-g\x20-y','apiError','146848npCsxY','4275792BCCyka','skipped','cli-skill','cwd','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','log','212013adFYhb','info','\x20-g\x20-y)...','210QvEshg','cli-skill-install','5862OWgetp','inherit','npx\x20skills\x20add\x20failed:\x20','16379510obXVfx','install'];a17_0x2168=function(){return _0x4f76fc;};return a17_0x2168();}
@@ -1 +1 @@
1
- (function(_0x19a47d,_0x1a548a){const _0x580df6=a18_0x517b,_0x2f6826=_0x19a47d();while(!![]){try{const _0x36640a=parseInt(_0x580df6(0x1ec))/0x1*(parseInt(_0x580df6(0x1f4))/0x2)+-parseInt(_0x580df6(0x1fa))/0x3*(-parseInt(_0x580df6(0x1f7))/0x4)+parseInt(_0x580df6(0x1ef))/0x5*(-parseInt(_0x580df6(0x1f1))/0x6)+-parseInt(_0x580df6(0x1f2))/0x7*(parseInt(_0x580df6(0x1e8))/0x8)+parseInt(_0x580df6(0x1f0))/0x9*(parseInt(_0x580df6(0x1f5))/0xa)+-parseInt(_0x580df6(0x1f9))/0xb+parseInt(_0x580df6(0x1fc))/0xc;if(_0x36640a===_0x1a548a)break;else _0x2f6826['push'](_0x2f6826['shift']());}catch(_0x193ffd){_0x2f6826['push'](_0x2f6826['shift']());}}}(a18_0xff60,0x74220));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';function a18_0xff60(){const _0x33f13f=['validation','\x20found).','4831HGnWpt','\x20(global)','Use\x20only\x20one\x20config\x20scope\x20flag.','305zfoSzT','16308plpwnd','53478pzgcFX','182hgTpwe','Not\x20inside\x20a\x20project\x20(no\x20','100mLLNON','4990xGXopT','global','1741192MsrtCZ','inProject','7439234yjADix','3ExNSUl','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','12459996cCnnnZ','project','project-or-global-explicit','Add\x20--global\x20to\x20write\x20to\x20~/','newConfigFileName','284216GcnnyM',',\x20or\x20run\x20`'];a18_0xff60=function(){return _0x33f13f;};return a18_0xff60();}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(_0x5314fa){const _0x43b8b0=a18_0x517b,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x5e3f03}=_0x5314fa;if(explicitGlobal&&explicitProject)throw CliErrors[_0x43b8b0(0x1ea)](_0x43b8b0(0x1fb),_0x43b8b0(0x1ee));if(explicitGlobal)return _0x43b8b0(0x1f6);if(explicitProject)return _0x43b8b0(0x1fd);switch(_0x5e3f03){case'global-default':return _0x43b8b0(0x1f6);case'project-default':return _0x5314fa[_0x43b8b0(0x1f8)]??isInProject()?_0x43b8b0(0x1fd):_0x43b8b0(0x1f6);case _0x43b8b0(0x1fe):if(!(_0x5314fa['inProject']??isInProject()))throw CliErrors['validation'](_0x43b8b0(0x1f3)+PRODUCT_CONFIG[_0x43b8b0(0x1e7)]+_0x43b8b0(0x1eb),_0x43b8b0(0x1ff)+PRODUCT_CONFIG[_0x43b8b0(0x1e7)]+_0x43b8b0(0x1e9)+CLI_BIN_NAME+'\x20init`\x20first.');return'project';}}export function toScopeFlags(_0xe8b581){return{'global':_0xe8b581==='global'};}function a18_0x517b(_0x3ba9b0,_0xc4ceec){_0x3ba9b0=_0x3ba9b0-0x1e7;const _0xff60f5=a18_0xff60();let _0x517bd9=_0xff60f5[_0x3ba9b0];return _0x517bd9;}export function formatScopeLabel(_0x13d849){const _0x5515fd=a18_0x517b;return _0x13d849===_0x5515fd(0x1f6)?_0x5515fd(0x1ed):'';}
1
+ (function(_0x58d935,_0x294af4){const _0x3eb4d4=a18_0x4e47,_0x35c02a=_0x58d935();while(!![]){try{const _0x1cb721=-parseInt(_0x3eb4d4(0x175))/0x1+-parseInt(_0x3eb4d4(0x181))/0x2+-parseInt(_0x3eb4d4(0x184))/0x3*(-parseInt(_0x3eb4d4(0x183))/0x4)+parseInt(_0x3eb4d4(0x187))/0x5*(-parseInt(_0x3eb4d4(0x17f))/0x6)+parseInt(_0x3eb4d4(0x173))/0x7+-parseInt(_0x3eb4d4(0x17e))/0x8+-parseInt(_0x3eb4d4(0x17c))/0x9*(-parseInt(_0x3eb4d4(0x178))/0xa);if(_0x1cb721===_0x294af4)break;else _0x35c02a['push'](_0x35c02a['shift']());}catch(_0x11c05){_0x35c02a['push'](_0x35c02a['shift']());}}}(a18_0x321f,0xda556));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';function a18_0x321f(){const _0x378404=['project-default','676809kBXXnu','newConfigFileName','9359104YCXFBu','89856xoUQRS','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','2402138ZWwCBC','Add\x20--global\x20to\x20write\x20to\x20~/','1024756xOePJT','6BuLIzS','global','\x20init`\x20first.','120HZIfWs','project','6588540ApOFdq','Not\x20inside\x20a\x20project\x20(no\x20','9752JEyMvE','inProject','global-default','290QvMmfh','project-or-global-explicit','validation'];a18_0x321f=function(){return _0x378404;};return a18_0x321f();}export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';function a18_0x4e47(_0x339044,_0x30586b){_0x339044=_0x339044-0x173;const _0x321ff2=a18_0x321f();let _0x4e47c4=_0x321ff2[_0x339044];return _0x4e47c4;}export function resolveConfigScope(_0x461101){const _0x5af5be=a18_0x4e47,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0xb117b2}=_0x461101;if(explicitGlobal&&explicitProject)throw CliErrors[_0x5af5be(0x17a)](_0x5af5be(0x180),'Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return _0x5af5be(0x185);if(explicitProject)return'project';switch(_0xb117b2){case _0x5af5be(0x177):return'global';case _0x5af5be(0x17b):return _0x461101[_0x5af5be(0x176)]??isInProject()?'project':'global';case _0x5af5be(0x179):if(!(_0x461101[_0x5af5be(0x176)]??isInProject()))throw CliErrors[_0x5af5be(0x17a)](_0x5af5be(0x174)+PRODUCT_CONFIG[_0x5af5be(0x17d)]+'\x20found).',_0x5af5be(0x182)+PRODUCT_CONFIG[_0x5af5be(0x17d)]+',\x20or\x20run\x20`'+CLI_BIN_NAME+_0x5af5be(0x186));return _0x5af5be(0x188);}}export function toScopeFlags(_0x27ab57){return{'global':_0x27ab57==='global'};}export function formatScopeLabel(_0x5703a9){const _0x33d60a=a18_0x4e47;return _0x5703a9===_0x33d60a(0x185)?'\x20(global)':'';}
@@ -1 +1 @@
1
- (function(_0x1e9856,_0x5abe05){const _0x40aeba=a19_0x5cd6,_0x46fd79=_0x1e9856();while(!![]){try{const _0x389f0a=parseInt(_0x40aeba(0x1ea))/0x1*(parseInt(_0x40aeba(0x1f0))/0x2)+parseInt(_0x40aeba(0x1f7))/0x3*(-parseInt(_0x40aeba(0x1f6))/0x4)+-parseInt(_0x40aeba(0x1e0))/0x5+-parseInt(_0x40aeba(0x1ee))/0x6*(-parseInt(_0x40aeba(0x1e2))/0x7)+parseInt(_0x40aeba(0x1f3))/0x8+-parseInt(_0x40aeba(0x1e9))/0x9+parseInt(_0x40aeba(0x1e4))/0xa;if(_0x389f0a===_0x5abe05)break;else _0x46fd79['push'](_0x46fd79['shift']());}catch(_0x230914){_0x46fd79['push'](_0x46fd79['shift']());}}}(a19_0x10dd,0xc2c4a));import{CliErrors}from'../../errors.js';function isSet(_0x127fc3,_0xca861a){const _0x335a53=a19_0x5cd6,_0x289e2d=_0x127fc3[_0x335a53(0x1de)](_0xca861a);return _0x289e2d!==undefined&&_0x289e2d!==''&&_0x289e2d!==![]&&_0x289e2d!==0x0;}function fmtNames(_0x1bf1ec){return _0x1bf1ec['map'](_0x5179d2=>'--'+_0x5179d2)['join'](',\x20');}function a19_0x5cd6(_0x10ae84,_0x47aa89){_0x10ae84=_0x10ae84-0x1dd;const _0x10dd01=a19_0x10dd();let _0x5cd63f=_0x10dd01[_0x10ae84];return _0x5cd63f;}function a19_0x10dd(){const _0x4dff17=['\x20are\x20mutually\x20exclusive\x20for\x20`','6VbqjiV','Only\x20one\x20of\x20','9998ApzLFf','Invalid\x20--','some','2928472hKHbCS','Exactly\x20one\x20of\x20','filter','4875148PnXucg','3lBReXE','test',':\x20expected\x20','flag','str','4938545VlAZoG','\x20is\x20required\x20for\x20`','8090579qTxOwD','Provide\x20one\x20of:\x20','3836090GNeFug','validation','length','Flags\x20','\x20is\x20allowed,\x20found:\x20','3743064pQncXv','303YYQocg','At\x20least\x20one\x20of\x20','Use\x20only\x20one\x20of:\x20'];a19_0x10dd=function(){return _0x4dff17;};return a19_0x10dd();}export function requireOneOf(_0x446570,_0x884f2c,_0x39e3e0){const _0xdd2cb=a19_0x5cd6,_0x45c199=_0x884f2c[_0xdd2cb(0x1f5)](_0x463bb1=>isSet(_0x446570,_0x463bb1));if(_0x45c199[_0xdd2cb(0x1e6)]!==0x1)throw CliErrors[_0xdd2cb(0x1e5)](_0x45c199['length']===0x0?_0xdd2cb(0x1f4)+fmtNames(_0x884f2c)+_0xdd2cb(0x1e1)+_0x39e3e0+'`.':_0xdd2cb(0x1ef)+fmtNames(_0x884f2c)+_0xdd2cb(0x1e8)+fmtNames(_0x45c199)+'.',_0x45c199[_0xdd2cb(0x1e6)]===0x0?_0xdd2cb(0x1e3)+fmtNames(_0x884f2c):'Remove\x20all\x20but\x20one.');}export function requireAnyOf(_0x5e133d,_0x545d68,_0x48e656){const _0x1ab80d=a19_0x5cd6;if(!_0x545d68[_0x1ab80d(0x1f2)](_0x48fe56=>isSet(_0x5e133d,_0x48fe56)))throw CliErrors['validation'](_0x1ab80d(0x1eb)+fmtNames(_0x545d68)+'\x20is\x20required\x20for\x20`'+_0x48e656+'`.',_0x1ab80d(0x1e3)+fmtNames(_0x545d68));}export function mutuallyExclusive(_0x51c333,_0x47bac5,_0x54cf60){const _0x56148b=a19_0x5cd6,_0x4d9956=_0x47bac5['filter'](_0x57e933=>isSet(_0x51c333,_0x57e933));if(_0x4d9956[_0x56148b(0x1e6)]>0x1)throw CliErrors[_0x56148b(0x1e5)](_0x56148b(0x1e7)+fmtNames(_0x4d9956)+_0x56148b(0x1ed)+_0x54cf60+'`.',_0x56148b(0x1ec)+fmtNames(_0x47bac5));}export function validatePattern(_0x44be32,_0x4fa697,_0x5b0e3d,_0x1fc0ef){const _0xa6eed0=a19_0x5cd6,_0x207e88=_0x44be32[_0xa6eed0(0x1df)](_0x4fa697);if(_0x207e88&&!_0x5b0e3d[_0xa6eed0(0x1f8)](_0x207e88))throw CliErrors['validation'](_0xa6eed0(0x1f1)+_0x4fa697+_0xa6eed0(0x1dd)+_0x1fc0ef+',\x20got\x20\x22'+_0x207e88+'\x22.');}
1
+ function a19_0x3d27(){const _0x18bfa0=['6qxGpIy','3202260jvwoqr','8ZJWcLi','Flags\x20','\x20is\x20allowed,\x20found:\x20','1143685pQuuqN','22HHLtPW',',\x20got\x20\x22','length','Exactly\x20one\x20of\x20','\x20are\x20mutually\x20exclusive\x20for\x20`','map','Remove\x20all\x20but\x20one.','6920xIFFcJ','5338802TQidwB','join','150966iihHNc','132XLEkPx','filter','1305GiXHIo','At\x20least\x20one\x20of\x20','\x20is\x20required\x20for\x20`','test','271271LHZGan','some','487317ipxWXg','Use\x20only\x20one\x20of:\x20','str','Invalid\x20--','4mZCTju','flag','validation'];a19_0x3d27=function(){return _0x18bfa0;};return a19_0x3d27();}(function(_0x46b31f,_0x56e915){const _0x25cfbf=a19_0x22c5,_0x3e2168=_0x46b31f();while(!![]){try{const _0x85382e=-parseInt(_0x25cfbf(0x199))/0x1*(-parseInt(_0x25cfbf(0x18c))/0x2)+-parseInt(_0x25cfbf(0x195))/0x3+-parseInt(_0x25cfbf(0x19e))/0x4*(-parseInt(_0x25cfbf(0x1a1))/0x5)+-parseInt(_0x25cfbf(0x19c))/0x6*(-parseInt(_0x25cfbf(0x18a))/0x7)+parseInt(_0x25cfbf(0x189))/0x8*(parseInt(_0x25cfbf(0x18f))/0x9)+-parseInt(_0x25cfbf(0x19d))/0xa*(parseInt(_0x25cfbf(0x1a2))/0xb)+-parseInt(_0x25cfbf(0x18d))/0xc*(parseInt(_0x25cfbf(0x193))/0xd);if(_0x85382e===_0x56e915)break;else _0x3e2168['push'](_0x3e2168['shift']());}catch(_0x2d37f4){_0x3e2168['push'](_0x3e2168['shift']());}}}(a19_0x3d27,0x962b1));import{CliErrors}from'../../errors.js';function isSet(_0x22f95a,_0x2f6327){const _0x23ac36=a19_0x22c5,_0x19a3e6=_0x22f95a[_0x23ac36(0x19a)](_0x2f6327);return _0x19a3e6!==undefined&&_0x19a3e6!==''&&_0x19a3e6!==![]&&_0x19a3e6!==0x0;}function a19_0x22c5(_0x2f3078,_0x476231){_0x2f3078=_0x2f3078-0x189;const _0x3d279f=a19_0x3d27();let _0x22c5f3=_0x3d279f[_0x2f3078];return _0x22c5f3;}function fmtNames(_0x19834d){const _0x2d8f84=a19_0x22c5;return _0x19834d[_0x2d8f84(0x1a7)](_0xeb5c33=>'--'+_0xeb5c33)[_0x2d8f84(0x18b)](',\x20');}export function requireOneOf(_0x10b6b7,_0x4c85ad,_0x355d6d){const _0x1500be=a19_0x22c5,_0x419019=_0x4c85ad['filter'](_0x203982=>isSet(_0x10b6b7,_0x203982));if(_0x419019[_0x1500be(0x1a4)]!==0x1)throw CliErrors[_0x1500be(0x19b)](_0x419019[_0x1500be(0x1a4)]===0x0?_0x1500be(0x1a5)+fmtNames(_0x4c85ad)+_0x1500be(0x191)+_0x355d6d+'`.':'Only\x20one\x20of\x20'+fmtNames(_0x4c85ad)+_0x1500be(0x1a0)+fmtNames(_0x419019)+'.',_0x419019[_0x1500be(0x1a4)]===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x4c85ad):_0x1500be(0x1a8));}export function requireAnyOf(_0x4ef996,_0x397b42,_0xbd6548){const _0x199b38=a19_0x22c5;if(!_0x397b42[_0x199b38(0x194)](_0x177d18=>isSet(_0x4ef996,_0x177d18)))throw CliErrors[_0x199b38(0x19b)](_0x199b38(0x190)+fmtNames(_0x397b42)+'\x20is\x20required\x20for\x20`'+_0xbd6548+'`.','Provide\x20one\x20of:\x20'+fmtNames(_0x397b42));}export function mutuallyExclusive(_0x3b4a4f,_0x2df3ec,_0x52ef2f){const _0x12dcab=a19_0x22c5,_0x4a0d9c=_0x2df3ec[_0x12dcab(0x18e)](_0x519fae=>isSet(_0x3b4a4f,_0x519fae));if(_0x4a0d9c[_0x12dcab(0x1a4)]>0x1)throw CliErrors['validation'](_0x12dcab(0x19f)+fmtNames(_0x4a0d9c)+_0x12dcab(0x1a6)+_0x52ef2f+'`.',_0x12dcab(0x196)+fmtNames(_0x2df3ec));}export function validatePattern(_0x1a5fff,_0x27c9ef,_0x472e84,_0x46cc6d){const _0x158e83=a19_0x22c5,_0x468c3e=_0x1a5fff[_0x158e83(0x197)](_0x27c9ef);if(_0x468c3e&&!_0x472e84[_0x158e83(0x192)](_0x468c3e))throw CliErrors[_0x158e83(0x19b)](_0x158e83(0x198)+_0x27c9ef+':\x20expected\x20'+_0x46cc6d+_0x158e83(0x1a3)+_0x468c3e+'\x22.');}
@@ -1 +1 @@
1
- const a20_0x456fe2=a20_0x44e5;(function(_0x23ac5f,_0x5790ce){const _0x22e451=a20_0x44e5,_0x554f20=_0x23ac5f();while(!![]){try{const _0x1ba0af=parseInt(_0x22e451(0xaf))/0x1*(-parseInt(_0x22e451(0xb3))/0x2)+-parseInt(_0x22e451(0xbc))/0x3*(parseInt(_0x22e451(0xb4))/0x4)+-parseInt(_0x22e451(0xad))/0x5+parseInt(_0x22e451(0xb2))/0x6+parseInt(_0x22e451(0xb6))/0x7+parseInt(_0x22e451(0xaa))/0x8*(parseInt(_0x22e451(0xb7))/0x9)+-parseInt(_0x22e451(0xb8))/0xa*(-parseInt(_0x22e451(0xab))/0xb);if(_0x1ba0af===_0x5790ce)break;else _0x554f20['push'](_0x554f20['shift']());}catch(_0x1863b3){_0x554f20['push'](_0x554f20['shift']());}}}(a20_0x30ef,0xac8a6));function a20_0x44e5(_0x4833c6,_0x18bec0){_0x4833c6=_0x4833c6-0xaa;const _0x30ef3b=a20_0x30ef();let _0x44e5ff=_0x30ef3b[_0x4833c6];return _0x44e5ff;}export const CODE_FLAG={'name':a20_0x456fe2(0xba),'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':'sqlcode','type':a20_0x456fe2(0xbd),'required':!![],'description':a20_0x456fe2(0xb1),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x456fe2(0xb9)}};function a20_0x30ef(){const _0x519a55=['Return\x20full\x20raw\x20response\x20object','168PGIFeS','121BblCbm','params','3473215zRxpew','Resource\x20ID','737741eMmJzg','number','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','1606224tZjJph','2QIGKHW','652YWFrgH','name','8097201UCyqlg','81729WsPXMo','913910URqUIx','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','code','Resource\x20name\x20for\x20lookup','8859XBrYHT','string'];a20_0x30ef=function(){return _0x519a55;};return a20_0x30ef();}export const VERBOSE_FLAG={'name':'verbose','type':'boolean','description':a20_0x456fe2(0xbe)};export const PARAMS_FLAG={'name':a20_0x456fe2(0xac),'type':'string','description':'Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)'};export const NAME_FLAG={'name':a20_0x456fe2(0xb5),'type':'string','description':a20_0x456fe2(0xbb)};export const ID_FLAG={'name':'id','type':a20_0x456fe2(0xb0),'required':!![],'description':a20_0x456fe2(0xae)};
1
+ const a20_0x5293d5=a20_0x5bfc;(function(_0x309ef7,_0x3aa119){const _0x31fc57=a20_0x5bfc,_0x27133f=_0x309ef7();while(!![]){try{const _0x4fe068=parseInt(_0x31fc57(0xe7))/0x1*(parseInt(_0x31fc57(0xdb))/0x2)+-parseInt(_0x31fc57(0xda))/0x3+parseInt(_0x31fc57(0xe6))/0x4*(parseInt(_0x31fc57(0xd8))/0x5)+parseInt(_0x31fc57(0xe9))/0x6*(parseInt(_0x31fc57(0xea))/0x7)+parseInt(_0x31fc57(0xdc))/0x8+parseInt(_0x31fc57(0xd7))/0x9*(-parseInt(_0x31fc57(0xe3))/0xa)+parseInt(_0x31fc57(0xe0))/0xb;if(_0x4fe068===_0x3aa119)break;else _0x27133f['push'](_0x27133f['shift']());}catch(_0x4bdb67){_0x27133f['push'](_0x27133f['shift']());}}}(a20_0x3031,0x5b39c));export const CODE_FLAG={'name':a20_0x5293d5(0xe4),'type':a20_0x5293d5(0xd6),'required':!![],'description':a20_0x5293d5(0xeb),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x5293d5(0xdf)}};function a20_0x3031(){const _0x1a73ce=['verbose','736528ugwMdk','216751VdQxrR','number','1394838mbonKY','14ijanUv','Dataset\x20code\x20(32-char\x20hex\x20UUID)','string','5346459CEIYRw','5cgKnPj','params','1257012IrZgVO','2urKTyz','1799272nnZeAt','name','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','3255747cMMGXz','boolean','Resource\x20ID','10KgNyAc','code'];a20_0x3031=function(){return _0x1a73ce;};return a20_0x3031();}export const SQLCODE_FLAG={'name':'sqlcode','type':a20_0x5293d5(0xd6),'required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x5293d5(0xde)}};export const VERBOSE_FLAG={'name':a20_0x5293d5(0xe5),'type':a20_0x5293d5(0xe1),'description':'Return\x20full\x20raw\x20response\x20object'};function a20_0x5bfc(_0x137e61,_0x26e174){_0x137e61=_0x137e61-0xd6;const _0x3031af=a20_0x3031();let _0x5bfc35=_0x3031af[_0x137e61];return _0x5bfc35;}export const PARAMS_FLAG={'name':a20_0x5293d5(0xd9),'type':a20_0x5293d5(0xd6),'description':'Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)'};export const NAME_FLAG={'name':a20_0x5293d5(0xdd),'type':a20_0x5293d5(0xd6),'description':'Resource\x20name\x20for\x20lookup'};export const ID_FLAG={'name':'id','type':a20_0x5293d5(0xe8),'required':!![],'description':a20_0x5293d5(0xe2)};
@@ -1 +1 @@
1
- function a21_0x4168(_0x16b2df,_0x2e845b){_0x16b2df=_0x16b2df-0xdb;const _0x4c3c09=a21_0x4c3c();let _0x41685c=_0x4c3c09[_0x16b2df];return _0x41685c;}(function(_0x52c01d,_0x520baf){const _0x4872d4=a21_0x4168,_0x380f09=_0x52c01d();while(!![]){try{const _0x365f76=-parseInt(_0x4872d4(0xe7))/0x1*(-parseInt(_0x4872d4(0xea))/0x2)+parseInt(_0x4872d4(0xdc))/0x3+-parseInt(_0x4872d4(0xe4))/0x4+parseInt(_0x4872d4(0xe6))/0x5+-parseInt(_0x4872d4(0xe2))/0x6+parseInt(_0x4872d4(0xe0))/0x7+-parseInt(_0x4872d4(0xe5))/0x8;if(_0x365f76===_0x520baf)break;else _0x380f09['push'](_0x380f09['shift']());}catch(_0x53194d){_0x380f09['push'](_0x380f09['shift']());}}}(a21_0x4c3c,0x44d95));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';function a21_0x4c3c(){const _0x4ff4c5=['File\x20not\x20found:\x20','size','445238NOnbEp','toFixed','269346xMtCOr','\x20path\x20is\x20required.','validation','trim','2372475rwsIaB','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','186852pWpDRM','\x20MB','1276572MNdipy','5919624meGVXR','2491490JzZeFg','2eYfUdh'];a21_0x4c3c=function(){return _0x4ff4c5;};return a21_0x4c3c();}const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x33d533){const _0xac6b18=a21_0x4168;if(_0x33d533>=BYTES_PER_MB){const _0x3b0c86=Math['ceil'](_0x33d533/BYTES_PER_MB*0x64)/0x64;return _0x3b0c86[_0xac6b18(0xdb)](0x2)+_0xac6b18(0xe3);}return _0x33d533+'\x20B';}export function requireRuntimeUploadFile(_0xbb80fb,_0x3d864d){const _0x54b540=a21_0x4168,_0x299aea=_0xbb80fb[_0x54b540(0xdf)]();if(!_0x299aea)throw CliErrors[_0x54b540(0xde)](_0x3d864d+_0x54b540(0xdd));if(!existsSync(_0x299aea))throw CliErrors[_0x54b540(0xde)](_0x54b540(0xe8)+_0x299aea);const _0x3861a2=statSync(_0x299aea);if(!_0x3861a2['isFile']())throw CliErrors[_0x54b540(0xde)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x299aea);if(_0x3861a2[_0x54b540(0xe9)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors['validation'](_0x54b540(0xe1)+_0x299aea+'\x20('+formatBytes(_0x3861a2['size'])+')');return{'path':_0x299aea,'size':_0x3861a2[_0x54b540(0xe9)]};}
1
+ (function(_0x4fea09,_0x5c6472){const _0x488f97=a21_0x1a7f,_0x294efb=_0x4fea09();while(!![]){try{const _0x255b09=-parseInt(_0x488f97(0x102))/0x1*(-parseInt(_0x488f97(0x110))/0x2)+parseInt(_0x488f97(0x10b))/0x3+-parseInt(_0x488f97(0x108))/0x4+parseInt(_0x488f97(0x111))/0x5*(-parseInt(_0x488f97(0x104))/0x6)+-parseInt(_0x488f97(0x101))/0x7*(parseInt(_0x488f97(0x106))/0x8)+-parseInt(_0x488f97(0x103))/0x9+parseInt(_0x488f97(0x10c))/0xa*(parseInt(_0x488f97(0x10a))/0xb);if(_0x255b09===_0x5c6472)break;else _0x294efb['push'](_0x294efb['shift']());}catch(_0x2141f8){_0x294efb['push'](_0x294efb['shift']());}}}(a21_0x2a1c,0x7e775));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;function a21_0x2a1c(){const _0x24e9f1=['size','12026tsgHWW','17FjJTBB','3818511aRWGOO','6iuUxPE','File\x20is\x20not\x20a\x20regular\x20file:\x20','1128mcufvK','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','2452884EtJdPu','validation','4829LMeAoV','2014470gAhCPB','10090bWTXcN','trim','\x20path\x20is\x20required.','File\x20not\x20found:\x20','109942eGAdBr','1256025CHSIGS','toFixed'];a21_0x2a1c=function(){return _0x24e9f1;};return a21_0x2a1c();}function a21_0x1a7f(_0x23f7d2,_0x143ceb){_0x23f7d2=_0x23f7d2-0x101;const _0x2a1ce6=a21_0x2a1c();let _0x1a7faf=_0x2a1ce6[_0x23f7d2];return _0x1a7faf;}export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x5f19c9){const _0x26e29f=a21_0x1a7f;if(_0x5f19c9>=BYTES_PER_MB){const _0x953e9a=Math['ceil'](_0x5f19c9/BYTES_PER_MB*0x64)/0x64;return _0x953e9a[_0x26e29f(0x112)](0x2)+'\x20MB';}return _0x5f19c9+'\x20B';}export function requireRuntimeUploadFile(_0x1ddd40,_0x49e20d){const _0x1a426f=a21_0x1a7f,_0x4766a7=_0x1ddd40[_0x1a426f(0x10d)]();if(!_0x4766a7)throw CliErrors['validation'](_0x49e20d+_0x1a426f(0x10e));if(!existsSync(_0x4766a7))throw CliErrors[_0x1a426f(0x109)](_0x1a426f(0x10f)+_0x4766a7);const _0x14aa56=statSync(_0x4766a7);if(!_0x14aa56['isFile']())throw CliErrors[_0x1a426f(0x109)](_0x1a426f(0x105)+_0x4766a7);if(_0x14aa56[_0x1a426f(0x113)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x1a426f(0x109)](_0x1a426f(0x107)+_0x4766a7+'\x20('+formatBytes(_0x14aa56['size'])+')');return{'path':_0x4766a7,'size':_0x14aa56[_0x1a426f(0x113)]};}
@@ -1 +1 @@
1
- const a22_0x1d0403=a22_0x42be;(function(_0x9941e3,_0x3a3e63){const _0x59a922=a22_0x42be,_0x4ace26=_0x9941e3();while(!![]){try{const _0x2a3d99=-parseInt(_0x59a922(0x1ed))/0x1+-parseInt(_0x59a922(0x1ec))/0x2+parseInt(_0x59a922(0x201))/0x3+-parseInt(_0x59a922(0x1e5))/0x4+-parseInt(_0x59a922(0x210))/0x5*(parseInt(_0x59a922(0x209))/0x6)+parseInt(_0x59a922(0x213))/0x7*(parseInt(_0x59a922(0x1f8))/0x8)+parseInt(_0x59a922(0x1f4))/0x9;if(_0x2a3d99===_0x3a3e63)break;else _0x4ace26['push'](_0x4ace26['shift']());}catch(_0x2c6366){_0x4ace26['push'](_0x4ace26['shift']());}}}(a22_0x2485,0xea9f7));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';function a22_0x42be(_0x4a62ac,_0x3e530d){_0x4a62ac=_0x4a62ac-0x1e5;const _0x248594=a22_0x2485();let _0x42be17=_0x248594[_0x4a62ac];return _0x42be17;}import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':'global','type':'boolean','description':'Write\x20to\x20global\x20config','default':![]};function parseAliasAppcodeSetKey(_0xeb5681){const _0x465338=a22_0x42be,_0x519a3f=_0xeb5681[_0x465338(0x21c)]('.');if(_0x519a3f[_0x465338(0x205)]!==0x3||_0x519a3f[0x0]!=='apps'||_0x519a3f[0x2]!=='appcode')return undefined;const _0x29549d=_0x519a3f[0x1]?.[_0x465338(0x214)]();return _0x29549d?_0x29549d:undefined;}function parseAliasDeleteKey(_0x154dce){const _0x4abd37=a22_0x42be,_0x51f06b=_0x154dce['split']('.');if(_0x51f06b[_0x4abd37(0x205)]===0x2&&_0x51f06b[0x0]===_0x4abd37(0x204)){const _0x22f757=_0x51f06b[0x1]?.[_0x4abd37(0x214)]();return _0x22f757?{'alias':_0x22f757}:undefined;}if(_0x51f06b[_0x4abd37(0x205)]===0x3&&_0x51f06b[0x0]===_0x4abd37(0x204)&&_0x51f06b[0x2]==='appcode'){const _0x11c898=_0x51f06b[0x1]?.[_0x4abd37(0x214)]();return _0x11c898?{'alias':_0x11c898,'field':_0x4abd37(0x21d)}:undefined;}return undefined;}function setLocalAppAlias(_0x2a97ee,_0x330ea1,_0x3a206a){const _0x475fa7=a22_0x42be,_0x2a1f64=_0x2a97ee['apps']&&typeof _0x2a97ee[_0x475fa7(0x204)]===_0x475fa7(0x202)&&!Array[_0x475fa7(0x1e9)](_0x2a97ee[_0x475fa7(0x204)])?_0x2a97ee[_0x475fa7(0x204)]:{},_0x8612bf=_0x2a1f64[_0x330ea1]&&typeof _0x2a1f64[_0x330ea1]===_0x475fa7(0x202)&&!Array[_0x475fa7(0x1e9)](_0x2a1f64[_0x330ea1])?_0x2a1f64[_0x330ea1]:{};_0x8612bf[_0x475fa7(0x21d)]=_0x3a206a,_0x2a1f64[_0x330ea1]=_0x8612bf,_0x2a97ee['apps']=_0x2a1f64;}function deleteLocalAppAlias(_0x55b695,_0x60d941){const _0x1b5c7c=a22_0x42be;if(!_0x55b695[_0x1b5c7c(0x204)]||typeof _0x55b695['apps']!==_0x1b5c7c(0x202)||Array[_0x1b5c7c(0x1e9)](_0x55b695[_0x1b5c7c(0x204)]))return![];const _0xc291c8=_0x55b695[_0x1b5c7c(0x204)],_0x2f57a0=_0xc291c8[_0x60d941[_0x1b5c7c(0x20e)]];if(!_0x2f57a0||typeof _0x2f57a0!==_0x1b5c7c(0x202)||Array[_0x1b5c7c(0x1e9)](_0x2f57a0))return![];if(!_0x60d941['field'])return delete _0xc291c8[_0x60d941[_0x1b5c7c(0x20e)]],!![];if(!(_0x60d941[_0x1b5c7c(0x220)]in _0x2f57a0))return![];return delete _0x2f57a0[_0x60d941[_0x1b5c7c(0x220)]],Object[_0x1b5c7c(0x21e)](_0x2f57a0)[_0x1b5c7c(0x205)]===0x0&&delete _0xc291c8[_0x60d941[_0x1b5c7c(0x20e)]],!![];}const listDef={'service':a22_0x1d0403(0x20a),'command':a22_0x1d0403(0x223),'description':a22_0x1d0403(0x1e7),'risk':a22_0x1d0403(0x1eb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x412d39){const _0x1835c2=a22_0x1d0403,{buildConfigFromFlags:_0x5a19d7}=await import('../../context.js'),_0x14ba24=_0x5a19d7({}),_0x4af0b8=getProjectConfigPath(),_0x5898d6=resolveWriteConfigPath('global');if(_0x412d39[_0x1835c2(0x215)]===_0x1835c2(0x1f9))return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON[_0x1835c2(0x20c)](_0x14ba24['raw'],null,0x2)+'\x0a\x0a')+_0x1835c2(0x1f1)+(_0x1835c2(0x20f)+(_0x4af0b8??_0x1835c2(0x222))+'\x0a')+('\x20\x20global:\x20\x20'+_0x5898d6)};return{'ok':!![],'data':{'effective':_0x14ba24[_0x1835c2(0x200)],'configFiles':{'project':_0x4af0b8??null,'global':_0x5898d6}}};}},getDef={'service':a22_0x1d0403(0x20a),'command':a22_0x1d0403(0x1e6),'description':'Get\x20a\x20config\x20value','risk':a22_0x1d0403(0x1eb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x1d0403(0x21f),'description':a22_0x1d0403(0x218),'required':!![]}],'flags':[],async 'execute'(_0x40867d){const _0x33673b=a22_0x1d0403,_0x28a6ef=_0x40867d[_0x33673b(0x211)][0x0];if(!_0x28a6ef)throw CliErrors[_0x33673b(0x221)](_0x33673b(0x1f3),'Usage:\x20'+CLI_BIN_NAME+_0x33673b(0x1f0));const {buildConfigFromFlags:_0x3aaf22}=await import('../../context.js'),{raw:_0x347061}=_0x3aaf22({});if(_0x28a6ef[_0x33673b(0x219)]('.')){const _0x4fe68d=_0x28a6ef['split']('.');let _0x457317=_0x347061;for(const _0x4dd422 of _0x4fe68d){if(_0x457317==null||typeof _0x457317!==_0x33673b(0x202))throw CliErrors[_0x33673b(0x221)](_0x33673b(0x207)+_0x28a6ef);_0x457317=_0x457317[_0x4dd422];}if(_0x457317===undefined)throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x28a6ef);return console[_0x33673b(0x1f7)](typeof _0x457317===_0x33673b(0x202)?JSON[_0x33673b(0x20c)](_0x457317,null,0x2):String(_0x457317)),{'ok':!![]};}const _0x5c196a=_0x347061[_0x28a6ef];if(_0x5c196a===undefined)throw CliErrors[_0x33673b(0x221)](_0x33673b(0x207)+_0x28a6ef);return console[_0x33673b(0x1f7)](typeof _0x5c196a===_0x33673b(0x202)?JSON['stringify'](_0x5c196a,null,0x2):String(_0x5c196a)),{'ok':!![]};}},setDef={'service':a22_0x1d0403(0x20a),'command':a22_0x1d0403(0x203),'description':'Set\x20a\x20config\x20value','risk':a22_0x1d0403(0x1fb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x1d0403(0x21f),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x1d0403(0x208),'description':a22_0x1d0403(0x21a),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x35205c){const _0x37dbc5=a22_0x1d0403,_0x5c3ba7=_0x35205c['args'][0x0],_0x598bc7=_0x35205c['args'][0x1];if(!_0x5c3ba7||_0x598bc7===undefined)throw CliErrors['validation'](_0x37dbc5(0x20d),'Usage:\x20'+CLI_BIN_NAME+_0x37dbc5(0x1fe));if(ENUM_KEYS[_0x5c3ba7]&&!ENUM_KEYS[_0x5c3ba7]['includes'](_0x598bc7))throw CliErrors[_0x37dbc5(0x221)]('Invalid\x20value\x20for\x20\x22'+_0x5c3ba7+_0x37dbc5(0x1fd)+ENUM_KEYS[_0x5c3ba7]['join'](',\x20'));if(_0x5c3ba7==='riskLevel')throw CliErrors[_0x37dbc5(0x221)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(_0x5c3ba7===_0x37dbc5(0x1f2)){const _0x814098=Number(_0x598bc7);if(isNaN(_0x814098)||_0x814098<=0x0)throw CliErrors[_0x37dbc5(0x221)]('pageSize\x20must\x20be\x20a\x20positive\x20number');}const _0x212c36=resolveWriteScope({'explicitGlobal':_0x35205c[_0x37dbc5(0x212)](_0x37dbc5(0x1ee)),'policy':_0x37dbc5(0x1e8)}),_0xded18e=toScopeFlags(_0x212c36),_0x53a931=readScopedConfig(_0xded18e),_0x4760eb=parseAliasAppcodeSetKey(_0x5c3ba7);if(!_0x4760eb&&!isTopLevelConfigKey(_0x5c3ba7))throw CliErrors[_0x37dbc5(0x221)](_0x37dbc5(0x1fc)+_0x5c3ba7+_0x37dbc5(0x217),_0x37dbc5(0x1fa)+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');return _0x4760eb?setLocalAppAlias(_0x53a931,_0x4760eb,_0x598bc7):_0x53a931[_0x5c3ba7]=_0x5c3ba7==='pageSize'?Number(_0x598bc7):_0x598bc7,console[_0x37dbc5(0x1f7)](_0x37dbc5(0x21b)+_0x5c3ba7+_0x37dbc5(0x1f5)+_0x598bc7+'\x22'+(_0x212c36===_0x37dbc5(0x1ee)?'\x20(global)':'')),writeScopedConfig(_0x53a931,_0xded18e),{'ok':!![]};}},deleteDef={'service':'config','command':a22_0x1d0403(0x206),'description':a22_0x1d0403(0x1ff),'risk':a22_0x1d0403(0x1fb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x1d0403(0x21f),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x5b0821){const _0xa6a6d7=a22_0x1d0403,_0x3c4f6b=_0x5b0821[_0xa6a6d7(0x211)][0x0];if(!_0x3c4f6b)throw CliErrors[_0xa6a6d7(0x221)](_0xa6a6d7(0x1f3),_0xa6a6d7(0x20b)+CLI_BIN_NAME+_0xa6a6d7(0x1ef));const _0xaf7461=resolveWriteScope({'explicitGlobal':_0x5b0821[_0xa6a6d7(0x212)](_0xa6a6d7(0x1ee)),'policy':'project-or-global-explicit'}),_0xa318a6=toScopeFlags(_0xaf7461),_0x3e0d76=readScopedConfig(_0xa318a6),_0x445126=parseAliasDeleteKey(_0x3c4f6b);if(_0x445126){if(!deleteLocalAppAlias(_0x3e0d76,_0x445126))throw CliErrors[_0xa6a6d7(0x221)](_0xa6a6d7(0x207)+_0x3c4f6b);return console[_0xa6a6d7(0x1f7)]('Deleted\x20`'+_0x3c4f6b+'`'+(_0xaf7461===_0xa6a6d7(0x1ee)?'\x20(global)':'')),writeScopedConfig(_0x3e0d76,_0xa318a6),{'ok':!![]};}if(_0x3e0d76[_0x3c4f6b]===undefined)throw CliErrors[_0xa6a6d7(0x221)](_0xa6a6d7(0x216)+_0x3c4f6b+_0xa6a6d7(0x1ea));return delete _0x3e0d76[_0x3c4f6b],console[_0xa6a6d7(0x1f7)]('Deleted\x20`'+_0x3c4f6b+'`'+(_0xaf7461==='global'?_0xa6a6d7(0x1f6):'')),writeScopedConfig(_0x3e0d76,_0xa318a6),{'ok':!![]};}};function a22_0x2485(){const _0x3ce351=['stringify','Missing\x20key\x20or\x20value.','alias','\x20\x20project:\x20','3065IaCCqD','args','bool','7CQLaKk','trim','format','Key\x20\x22','\x22\x20is\x20not\x20settable.','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','includes','Value\x20to\x20assign','Set\x20`','split','appcode','keys','key','field','validation','(none)','list','4749800jqNHAZ','get','List\x20current\x20config','project-or-global-explicit','isArray','\x22\x20not\x20found\x20at\x20top\x20level.','read','2180002MTkhYY','1712471HDKgbF','global','\x20config\x20delete\x20<key>\x20[--global]','\x20config\x20get\x20<key>','Config\x20files:\x0a','pageSize','Missing\x20key\x20argument.','47339145VqnBPR','`\x20=\x20\x22','\x20(global)','log','4400456LKlajT','pretty','Settable\x20keys:\x20','write','Top-level\x20key\x20\x22','\x22.\x20Allowed:\x20','\x20config\x20set\x20<key>\x20<value>\x20[--global]','Delete\x20a\x20config\x20value','raw','1816296PcjSUh','object','set','apps','length','delete','Key\x20not\x20found:\x20','value','14334OYfUHt','config','Usage:\x20'];a22_0x2485=function(){return _0x3ce351;};return a22_0x2485();}export const configDefinitions=[listDef,getDef,setDef,deleteDef];
1
+ const a22_0x36f488=a22_0x3b3c;(function(_0x14aed8,_0x28ce57){const _0x154e78=a22_0x3b3c,_0x18e755=_0x14aed8();while(!![]){try{const _0x520376=parseInt(_0x154e78(0x1d6))/0x1+-parseInt(_0x154e78(0x1c0))/0x2+parseInt(_0x154e78(0x1b8))/0x3*(-parseInt(_0x154e78(0x1e4))/0x4)+parseInt(_0x154e78(0x1de))/0x5*(parseInt(_0x154e78(0x1c7))/0x6)+parseInt(_0x154e78(0x1cb))/0x7+-parseInt(_0x154e78(0x1c6))/0x8+parseInt(_0x154e78(0x1e5))/0x9;if(_0x520376===_0x28ce57)break;else _0x18e755['push'](_0x18e755['shift']());}catch(_0x2ff7ac){_0x18e755['push'](_0x18e755['shift']());}}}(a22_0x2967,0x1f22d));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':'global','type':'boolean','description':'Write\x20to\x20global\x20config','default':![]};function parseAliasAppcodeSetKey(_0x2f188d){const _0x26832e=a22_0x3b3c,_0x172cbe=_0x2f188d[_0x26832e(0x1d3)]('.');if(_0x172cbe['length']!==0x3||_0x172cbe[0x0]!==_0x26832e(0x1d5)||_0x172cbe[0x2]!==_0x26832e(0x1df))return undefined;const _0x1a6efc=_0x172cbe[0x1]?.[_0x26832e(0x1d2)]();return _0x1a6efc?_0x1a6efc:undefined;}function a22_0x2967(){const _0xa39777=['Key\x20not\x20found:\x20','\x22\x20is\x20not\x20settable.','pageSize','Value\x20to\x20assign','validation','isArray','key','\x20config\x20get\x20<key>','riskLevel','3FRdRjB','\x22.\x20Allowed:\x20','list','`\x20=\x20\x22','Settable\x20keys:\x20','../../context.js','field','config','497118mpapkN','set','\x22\x20not\x20found\x20at\x20top\x20level.','write','stringify','(none)','1843960EHFEQP','188112qJIBqE','global','\x20config\x20delete\x20<key>\x20[--global]','\x20\x20global:\x20\x20','783468FVtQcB','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','bool','log','alias','args','\x20(global)','trim','split','read','apps','8110wCiLdJ','Missing\x20key\x20argument.','Set\x20`','length','pageSize\x20must\x20be\x20a\x20positive\x20number','Config\x20files:\x0a','raw','Invalid\x20value\x20for\x20\x22','40rYjocT','appcode','project-or-global-explicit','object','format','Delete\x20a\x20config\x20value','866356oEvFQC','4070934xrSYih','Key\x20\x22','delete','get','Usage:\x20','Get\x20a\x20config\x20value'];a22_0x2967=function(){return _0xa39777;};return a22_0x2967();}function a22_0x3b3c(_0x10ba7d,_0x1ea20f){_0x10ba7d=_0x10ba7d-0x1b0;const _0x296742=a22_0x2967();let _0x3b3cc4=_0x296742[_0x10ba7d];return _0x3b3cc4;}function parseAliasDeleteKey(_0x3263a7){const _0x2dd68c=a22_0x3b3c,_0x2b84fa=_0x3263a7[_0x2dd68c(0x1d3)]('.');if(_0x2b84fa[_0x2dd68c(0x1d9)]===0x2&&_0x2b84fa[0x0]===_0x2dd68c(0x1d5)){const _0x5a1d02=_0x2b84fa[0x1]?.['trim']();return _0x5a1d02?{'alias':_0x5a1d02}:undefined;}if(_0x2b84fa[_0x2dd68c(0x1d9)]===0x3&&_0x2b84fa[0x0]===_0x2dd68c(0x1d5)&&_0x2b84fa[0x2]===_0x2dd68c(0x1df)){const _0x5088d6=_0x2b84fa[0x1]?.[_0x2dd68c(0x1d2)]();return _0x5088d6?{'alias':_0x5088d6,'field':_0x2dd68c(0x1df)}:undefined;}return undefined;}function setLocalAppAlias(_0x4ed217,_0x3ef34c,_0x492ad0){const _0x186868=a22_0x3b3c,_0x366253=_0x4ed217[_0x186868(0x1d5)]&&typeof _0x4ed217[_0x186868(0x1d5)]==='object'&&!Array['isArray'](_0x4ed217['apps'])?_0x4ed217[_0x186868(0x1d5)]:{},_0x2de57d=_0x366253[_0x3ef34c]&&typeof _0x366253[_0x3ef34c]===_0x186868(0x1e1)&&!Array['isArray'](_0x366253[_0x3ef34c])?_0x366253[_0x3ef34c]:{};_0x2de57d['appcode']=_0x492ad0,_0x366253[_0x3ef34c]=_0x2de57d,_0x4ed217['apps']=_0x366253;}function deleteLocalAppAlias(_0x439621,_0x4d01fb){const _0x32b923=a22_0x3b3c;if(!_0x439621[_0x32b923(0x1d5)]||typeof _0x439621[_0x32b923(0x1d5)]!=='object'||Array[_0x32b923(0x1b4)](_0x439621[_0x32b923(0x1d5)]))return![];const _0x1238d2=_0x439621[_0x32b923(0x1d5)],_0x5e2d05=_0x1238d2[_0x4d01fb[_0x32b923(0x1cf)]];if(!_0x5e2d05||typeof _0x5e2d05!==_0x32b923(0x1e1)||Array[_0x32b923(0x1b4)](_0x5e2d05))return![];if(!_0x4d01fb[_0x32b923(0x1be)])return delete _0x1238d2[_0x4d01fb['alias']],!![];if(!(_0x4d01fb['field']in _0x5e2d05))return![];return delete _0x5e2d05[_0x4d01fb[_0x32b923(0x1be)]],Object['keys'](_0x5e2d05)[_0x32b923(0x1d9)]===0x0&&delete _0x1238d2[_0x4d01fb[_0x32b923(0x1cf)]],!![];}const listDef={'service':'config','command':a22_0x36f488(0x1ba),'description':'List\x20current\x20config','risk':a22_0x36f488(0x1d4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x53bc45){const _0x1bb509=a22_0x36f488,{buildConfigFromFlags:_0x1134a7}=await import(_0x1bb509(0x1bd)),_0x599901=_0x1134a7({}),_0x5a220c=getProjectConfigPath(),_0x255ea2=resolveWriteConfigPath(_0x1bb509(0x1c8));if(_0x53bc45[_0x1bb509(0x1e2)]==='pretty')return{'ok':!![],'message':_0x1bb509(0x1cc)+(JSON[_0x1bb509(0x1c4)](_0x599901[_0x1bb509(0x1dc)],null,0x2)+'\x0a\x0a')+_0x1bb509(0x1db)+('\x20\x20project:\x20'+(_0x5a220c??_0x1bb509(0x1c5))+'\x0a')+(_0x1bb509(0x1ca)+_0x255ea2)};return{'ok':!![],'data':{'effective':_0x599901[_0x1bb509(0x1dc)],'configFiles':{'project':_0x5a220c??null,'global':_0x255ea2}}};}},getDef={'service':a22_0x36f488(0x1bf),'command':a22_0x36f488(0x1e8),'description':a22_0x36f488(0x1ea),'risk':a22_0x36f488(0x1d4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x1abc91){const _0x576866=a22_0x36f488,_0xd61381=_0x1abc91[_0x576866(0x1d0)][0x0];if(!_0xd61381)throw CliErrors[_0x576866(0x1b3)](_0x576866(0x1d7),_0x576866(0x1e9)+CLI_BIN_NAME+_0x576866(0x1b6));const {buildConfigFromFlags:_0x1f3191}=await import('../../context.js'),{raw:_0x47c80f}=_0x1f3191({});if(_0xd61381['includes']('.')){const _0x443e69=_0xd61381[_0x576866(0x1d3)]('.');let _0x45a2a5=_0x47c80f;for(const _0x5694d9 of _0x443e69){if(_0x45a2a5==null||typeof _0x45a2a5!=='object')throw CliErrors[_0x576866(0x1b3)](_0x576866(0x1eb)+_0xd61381);_0x45a2a5=_0x45a2a5[_0x5694d9];}if(_0x45a2a5===undefined)throw CliErrors['validation'](_0x576866(0x1eb)+_0xd61381);return console[_0x576866(0x1ce)](typeof _0x45a2a5===_0x576866(0x1e1)?JSON[_0x576866(0x1c4)](_0x45a2a5,null,0x2):String(_0x45a2a5)),{'ok':!![]};}const _0x280730=_0x47c80f[_0xd61381];if(_0x280730===undefined)throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0xd61381);return console[_0x576866(0x1ce)](typeof _0x280730===_0x576866(0x1e1)?JSON['stringify'](_0x280730,null,0x2):String(_0x280730)),{'ok':!![]};}},setDef={'service':a22_0x36f488(0x1bf),'command':a22_0x36f488(0x1c1),'description':'Set\x20a\x20config\x20value','risk':a22_0x36f488(0x1c3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x36f488(0x1b5),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':a22_0x36f488(0x1b2),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x55ca0c){const _0x51a0de=a22_0x36f488,_0x28cf00=_0x55ca0c['args'][0x0],_0x1dcbbf=_0x55ca0c[_0x51a0de(0x1d0)][0x1];if(!_0x28cf00||_0x1dcbbf===undefined)throw CliErrors[_0x51a0de(0x1b3)]('Missing\x20key\x20or\x20value.',_0x51a0de(0x1e9)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x28cf00]&&!ENUM_KEYS[_0x28cf00]['includes'](_0x1dcbbf))throw CliErrors[_0x51a0de(0x1b3)](_0x51a0de(0x1dd)+_0x28cf00+_0x51a0de(0x1b9)+ENUM_KEYS[_0x28cf00]['join'](',\x20'));if(_0x28cf00===_0x51a0de(0x1b7))throw CliErrors['validation']('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(_0x28cf00===_0x51a0de(0x1b1)){const _0x58bec2=Number(_0x1dcbbf);if(isNaN(_0x58bec2)||_0x58bec2<=0x0)throw CliErrors[_0x51a0de(0x1b3)](_0x51a0de(0x1da));}const _0x2c7e87=resolveWriteScope({'explicitGlobal':_0x55ca0c[_0x51a0de(0x1cd)](_0x51a0de(0x1c8)),'policy':_0x51a0de(0x1e0)}),_0x1bfb87=toScopeFlags(_0x2c7e87),_0x3e6e2d=readScopedConfig(_0x1bfb87),_0x341ca6=parseAliasAppcodeSetKey(_0x28cf00);if(!_0x341ca6&&!isTopLevelConfigKey(_0x28cf00))throw CliErrors[_0x51a0de(0x1b3)]('Top-level\x20key\x20\x22'+_0x28cf00+_0x51a0de(0x1b0),_0x51a0de(0x1bc)+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');return _0x341ca6?setLocalAppAlias(_0x3e6e2d,_0x341ca6,_0x1dcbbf):_0x3e6e2d[_0x28cf00]=_0x28cf00==='pageSize'?Number(_0x1dcbbf):_0x1dcbbf,console['log'](_0x51a0de(0x1d8)+_0x28cf00+_0x51a0de(0x1bb)+_0x1dcbbf+'\x22'+(_0x2c7e87===_0x51a0de(0x1c8)?_0x51a0de(0x1d1):'')),writeScopedConfig(_0x3e6e2d,_0x1bfb87),{'ok':!![]};}},deleteDef={'service':a22_0x36f488(0x1bf),'command':a22_0x36f488(0x1e7),'description':a22_0x36f488(0x1e3),'risk':a22_0x36f488(0x1c3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x36f488(0x1b5),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x424e5d){const _0x24aa75=a22_0x36f488,_0x221d95=_0x424e5d[_0x24aa75(0x1d0)][0x0];if(!_0x221d95)throw CliErrors[_0x24aa75(0x1b3)]('Missing\x20key\x20argument.','Usage:\x20'+CLI_BIN_NAME+_0x24aa75(0x1c9));const _0x483637=resolveWriteScope({'explicitGlobal':_0x424e5d[_0x24aa75(0x1cd)]('global'),'policy':_0x24aa75(0x1e0)}),_0xd63a81=toScopeFlags(_0x483637),_0xdaeedc=readScopedConfig(_0xd63a81),_0x3d59eb=parseAliasDeleteKey(_0x221d95);if(_0x3d59eb){if(!deleteLocalAppAlias(_0xdaeedc,_0x3d59eb))throw CliErrors['validation'](_0x24aa75(0x1eb)+_0x221d95);return console[_0x24aa75(0x1ce)]('Deleted\x20`'+_0x221d95+'`'+(_0x483637===_0x24aa75(0x1c8)?_0x24aa75(0x1d1):'')),writeScopedConfig(_0xdaeedc,_0xd63a81),{'ok':!![]};}if(_0xdaeedc[_0x221d95]===undefined)throw CliErrors[_0x24aa75(0x1b3)](_0x24aa75(0x1e6)+_0x221d95+_0x24aa75(0x1c2));return delete _0xdaeedc[_0x221d95],console[_0x24aa75(0x1ce)]('Deleted\x20`'+_0x221d95+'`'+(_0x483637===_0x24aa75(0x1c8)?_0x24aa75(0x1d1):'')),writeScopedConfig(_0xdaeedc,_0xd63a81),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- (function(_0x27375a,_0x5bea51){var _0x2e47ca=a23_0x5109,_0x17363d=_0x27375a();while(!![]){try{var _0x5643d4=parseInt(_0x2e47ca(0x1bd))/0x1*(parseInt(_0x2e47ca(0x1b7))/0x2)+-parseInt(_0x2e47ca(0x1b9))/0x3*(-parseInt(_0x2e47ca(0x1ba))/0x4)+parseInt(_0x2e47ca(0x1bb))/0x5*(-parseInt(_0x2e47ca(0x1b6))/0x6)+-parseInt(_0x2e47ca(0x1c0))/0x7*(-parseInt(_0x2e47ca(0x1bc))/0x8)+parseInt(_0x2e47ca(0x1bf))/0x9+parseInt(_0x2e47ca(0x1b8))/0xa+-parseInt(_0x2e47ca(0x1be))/0xb*(parseInt(_0x2e47ca(0x1b5))/0xc);if(_0x5643d4===_0x5bea51)break;else _0x17363d['push'](_0x17363d['shift']());}catch(_0x30109b){_0x17363d['push'](_0x17363d['shift']());}}}(a23_0x21ee,0xb3f27));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';function a23_0x21ee(){var _0x206da5=['286256xWepXO','465IQgzwA','6889016XMSfvw','40623dZeoQP','7275477caTVJQ','6206004oIJjaA','7PhnOga','84BdABpE','10644TZgNVD','68ujJIIE','13118770DbkgPI','54Fleygf'];a23_0x21ee=function(){return _0x206da5;};return a23_0x21ee();}function a23_0x5109(_0x4f6626,_0x96e1f4){_0x4f6626=_0x4f6626-0x1b5;var _0x21eeb4=a23_0x21ee();var _0x510927=_0x21eeb4[_0x4f6626];return _0x510927;}export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
1
+ function a23_0x3af4(){var _0x4d420d=['1010oHnBcP','926725Dvdltq','5bihuCG','1669437xlUDZe','79332IMPrCf','445144vJhfIg','1289682csdaSq','81gCxCgu','18aPcKgy','1105626DfcQlL','755164UYYgyT'];a23_0x3af4=function(){return _0x4d420d;};return a23_0x3af4();}(function(_0x1359ed,_0x3beb35){var _0x4010a4=a23_0x44ee,_0x36500e=_0x1359ed();while(!![]){try{var _0x5c76f0=parseInt(_0x4010a4(0x1d2))/0x1+-parseInt(_0x4010a4(0x1d7))/0x2+-parseInt(_0x4010a4(0x1cf))/0x3+-parseInt(_0x4010a4(0x1d0))/0x4*(-parseInt(_0x4010a4(0x1d3))/0x5)+parseInt(_0x4010a4(0x1ce))/0x6*(-parseInt(_0x4010a4(0x1d4))/0x7)+-parseInt(_0x4010a4(0x1d6))/0x8*(-parseInt(_0x4010a4(0x1d8))/0x9)+-parseInt(_0x4010a4(0x1d1))/0xa*(-parseInt(_0x4010a4(0x1d5))/0xb);if(_0x5c76f0===_0x3beb35)break;else _0x36500e['push'](_0x36500e['shift']());}catch(_0x3e4d58){_0x36500e['push'](_0x36500e['shift']());}}}(a23_0x3af4,0x965b3));import{CLI_BIN_NAME}from'../../constant/cli.js';function a23_0x44ee(_0x4e060b,_0x266c36){_0x4e060b=_0x4e060b-0x1ce;var _0x3af4ff=a23_0x3af4();var _0x44ee11=_0x3af4ff[_0x4e060b];return _0x44ee11;}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';
@@ -1 +1 @@
1
- const a24_0x22cc8e=a24_0x4288;function a24_0x1a26(){const _0x307c85=['description','high-risk-write','21IjeCQl','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','str','50BqNVkJ','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','update','506286bFeDzi','batchCreate','40STUJhw','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\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}','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\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}}]','read','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','\x20\x20PAGINATION','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\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}','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','Update\x20an\x20existing\x20record','4MXTHXc','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','Get\x20a\x20single\x20record\x20by\x20ID','112430UlFshO','build','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','risk','18itZtlX','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','map','/api/{appCode}/','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','getOne','10381eKPwhE','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','data','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','POST','\x20on\x20dataset\x20','operation','\x20\x20WHERE\x20OPERATORS','delete','491704RgIkYO','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','383364AtHcEM','\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}}','836099PbsAeD','write','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','create','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}','\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\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','143BDREho','command','\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}}','440403vOELwv','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20AGGREGATE\x20TYPES','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','filter','now','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\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}}]}','join','dryRun','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','data\x20','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\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}}','params','code','\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_0x1a26=function(){return _0x307c85;};return a24_0x1a26();}(function(_0x4da37e,_0x3084a9){const _0x1b4c80=a24_0x4288,_0x5161e2=_0x4da37e();while(!![]){try{const _0x4b36ad=-parseInt(_0x1b4c80(0x1e3))/0x1*(parseInt(_0x1b4c80(0x1c4))/0x2)+-parseInt(_0x1b4c80(0x1fc))/0x3*(-parseInt(_0x1b4c80(0x1d5))/0x4)+parseInt(_0x1b4c80(0x1d8))/0x5+parseInt(_0x1b4c80(0x1c7))/0x6*(-parseInt(_0x1b4c80(0x1bf))/0x7)+-parseInt(_0x1b4c80(0x1ec))/0x8*(parseInt(_0x1b4c80(0x1dc))/0x9)+-parseInt(_0x1b4c80(0x1c9))/0xa*(-parseInt(_0x1b4c80(0x1f0))/0xb)+-parseInt(_0x1b4c80(0x1ee))/0xc*(-parseInt(_0x1b4c80(0x1f9))/0xd);if(_0x4b36ad===_0x3084a9)break;else _0x5161e2['push'](_0x5161e2['shift']());}catch(_0x3a8ba4){_0x5161e2['push'](_0x5161e2['shift']());}}}(a24_0x1a26,0x2e2da));function a24_0x4288(_0x4bfbbf,_0x254783){_0x4bfbbf=_0x4bfbbf-0x1b9;const _0x1a2613=a24_0x1a26();let _0x428885=_0x1a2613[_0x4bfbbf];return _0x428885;}import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x22cc8e(0x201),'operation':'filter','risk':a24_0x22cc8e(0x1ce),'paramsRequired':![],'description':a24_0x22cc8e(0x20a),'paramsHint':a24_0x22cc8e(0x1dd)+a24_0x22cc8e(0x1d3),'helpExtra':[a24_0x22cc8e(0x1ea),'\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}',a24_0x22cc8e(0x1b9),'\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}',a24_0x22cc8e(0x1fd),a24_0x22cc8e(0x1fb),a24_0x22cc8e(0x1c2),'\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_0x22cc8e(0x1d6),a24_0x22cc8e(0x1ef),'','\x20\x20LOGICAL\x20COMBINATORS',a24_0x22cc8e(0x204),'\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','',a24_0x22cc8e(0x1c1),a24_0x22cc8e(0x1e0),a24_0x22cc8e(0x1f8),a24_0x22cc8e(0x1cf),a24_0x22cc8e(0x1da),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a24_0x22cc8e(0x1d0),a24_0x22cc8e(0x1ca),'\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27',a24_0x22cc8e(0x1f2)][a24_0x22cc8e(0x205)]('\x0a')},{'command':a24_0x22cc8e(0x1e2),'operation':'getOne','risk':a24_0x22cc8e(0x1ce),'paramsRequired':!![],'description':a24_0x22cc8e(0x1d7),'paramsHint':a24_0x22cc8e(0x1e6)},{'command':'create','operation':a24_0x22cc8e(0x1f4),'risk':'write','paramsRequired':!![],'description':a24_0x22cc8e(0x1e4),'paramsHint':'JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27'},{'command':'batchCreate','operation':a24_0x22cc8e(0x1c8),'risk':a24_0x22cc8e(0x1f1),'paramsRequired':!![],'description':a24_0x22cc8e(0x1ed),'paramsHint':a24_0x22cc8e(0x1cc)},{'command':a24_0x22cc8e(0x1c6),'operation':a24_0x22cc8e(0x1c6),'risk':a24_0x22cc8e(0x1f1),'paramsRequired':!![],'description':a24_0x22cc8e(0x1d4),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27'},{'command':a24_0x22cc8e(0x1eb),'operation':a24_0x22cc8e(0x1eb),'risk':a24_0x22cc8e(0x1be),'paramsRequired':!![],'description':a24_0x22cc8e(0x207),'paramsHint':a24_0x22cc8e(0x1e6)},{'command':a24_0x22cc8e(0x1f5),'operation':a24_0x22cc8e(0x1f5),'risk':'read','paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':a24_0x22cc8e(0x200)+a24_0x22cc8e(0x1e1),'helpExtra':[a24_0x22cc8e(0x1ff),a24_0x22cc8e(0x1cb),'\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_0x22cc8e(0x1f6),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}',a24_0x22cc8e(0x1f7),a24_0x22cc8e(0x1d2),'','\x20\x20PARAMS\x20STRUCTURE',a24_0x22cc8e(0x1bc),a24_0x22cc8e(0x209),a24_0x22cc8e(0x1c5),a24_0x22cc8e(0x1f3),a24_0x22cc8e(0x1cd),a24_0x22cc8e(0x1c0),'','\x20\x20EXAMPLES',a24_0x22cc8e(0x1fe),a24_0x22cc8e(0x1d1),'',a24_0x22cc8e(0x203),'\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#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'][a24_0x22cc8e(0x205)]('\x0a')}];function makeDataCommand(_0xa2473a){const _0x311693=a24_0x22cc8e,_0x2eb97e=_0x311693(0x208)+_0xa2473a['command'],_0x3c49df={'service':_0x311693(0x1e5),'command':_0xa2473a[_0x311693(0x1fa)],'description':_0xa2473a[_0x311693(0x1bd)],'risk':_0xa2473a[_0x311693(0x1db)],'helpExtra':_0xa2473a['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0xa2473a['paramsHint']}],'validate':async _0x4b6a0b=>{const _0x1a18c2=_0x311693;_0xa2473a['paramsRequired']&&requireAnyOf(_0x4b6a0b,[_0x1a18c2(0x1ba)],_0x2eb97e),_0xa2473a[_0x1a18c2(0x1e9)]===_0x1a18c2(0x1c8)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x4b6a0b['str'](_0x1a18c2(0x1ba))));},async 'execute'(_0x3faa68){const _0xf9d208=_0x311693,_0x37f9b5=_0x3faa68[_0xf9d208(0x1c3)](_0xf9d208(0x1bb)),_0x3bd929=_0xa2473a[_0xf9d208(0x1e9)]===_0xf9d208(0x1c8)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3faa68['str'](_0xf9d208(0x1ba)))):parseJsonParams(_0x3faa68['str'](_0xf9d208(0x1ba)))??{},_0x1e43e9=Date[_0xf9d208(0x202)](),_0x1c66fd=await executeData(_0x37f9b5,_0xa2473a[_0xf9d208(0x1e9)],_0x3bd929),_0xbee76d=Date[_0xf9d208(0x202)]()-_0x1e43e9;return{'ok':!![],'data':{'result':_0x1c66fd,'elapsed':_0xbee76d},'message':_0xf9d208(0x208)+_0xa2473a[_0xf9d208(0x1fa)]+'\x20completed\x20in\x20'+_0xbee76d+'ms'};}};return _0xa2473a['risk']!==_0x311693(0x1ce)&&(_0x3c49df[_0x311693(0x206)]=async _0x50099b=>{const _0x59ce0d=_0x311693,_0x435ebf=_0x50099b[_0x59ce0d(0x1c3)](_0x59ce0d(0x1bb)),_0x3cdf4c=_0xa2473a[_0x59ce0d(0x1e9)]===_0x59ce0d(0x1c8)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x50099b[_0x59ce0d(0x1c3)](_0x59ce0d(0x1ba)))):parseJsonParams(_0x50099b[_0x59ce0d(0x1c3)](_0x59ce0d(0x1ba)))??{};return dryRun(_0x59ce0d(0x1e7),_0x59ce0d(0x1df)+_0x435ebf+'/'+_0xa2473a[_0x59ce0d(0x1e9)])['body'](_0x3cdf4c)[_0x59ce0d(0x1bd)]('Preview:\x20data\x20'+_0xa2473a[_0x59ce0d(0x1fa)]+_0x59ce0d(0x1e8)+_0x435ebf)[_0x59ce0d(0x1d9)]();}),_0x3c49df;}export const dataDefinitions=specs[a24_0x22cc8e(0x1de)](makeDataCommand);
1
+ const a24_0x3b722c=a24_0x201c;(function(_0x28b54e,_0x26f64e){const _0x11beeb=a24_0x201c,_0x5f377b=_0x28b54e();while(!![]){try{const _0x5f50fb=-parseInt(_0x11beeb(0x1f8))/0x1+parseInt(_0x11beeb(0x1e5))/0x2*(parseInt(_0x11beeb(0x1db))/0x3)+-parseInt(_0x11beeb(0x1e2))/0x4+-parseInt(_0x11beeb(0x211))/0x5+parseInt(_0x11beeb(0x200))/0x6*(parseInt(_0x11beeb(0x1d7))/0x7)+parseInt(_0x11beeb(0x1ed))/0x8+-parseInt(_0x11beeb(0x1fc))/0x9*(-parseInt(_0x11beeb(0x1cc))/0xa);if(_0x5f50fb===_0x26f64e)break;else _0x5f377b['push'](_0x5f377b['shift']());}catch(_0x3985d6){_0x5f377b['push'](_0x5f377b['shift']());}}}(a24_0x4895,0x74f67));function a24_0x4895(){const _0x11fed6=['batchCreate','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','\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$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]}}','data\x20','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','541557hVAbvr','\x20\x20PARAMS\x20STRUCTURE','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','\x20\x20\x20\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}}]','5517WMWtRf','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','paramsRequired','11646FhEofr','\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}}','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\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}}','create','\x20\x20EXAMPLES','filter','params','helpExtra','/api/{appCode}/','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','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]','body','2376370HTTIKt','join','\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#\x20Count\x20orders\x20per\x20region\x20with\x20filter','Update\x20an\x20existing\x20record','operation','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','Preview:\x20data\x20','\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}','str','\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}','getOne','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','description','10090wZRmPm','Filter\x20dataset\x20records\x20with\x20query\x20conditions','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\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$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','aggregate','\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}}]}','delete','write','1211DFuwAB','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20WHERE\x20OPERATORS','code','207849xEZWQB','\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}]','risk','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','Get\x20a\x20single\x20record\x20by\x20ID','now','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','2506444rLOcwE','\x20\x20AGGREGATE\x20TYPES','update','10OGTsOA','\x20completed\x20in\x20','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','\x20\x20\x20\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}}','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\x20on\x20dataset\x20','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','6574368EelgEX','\x20\x20PAGINATION','read','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','command'];a24_0x4895=function(){return _0x11fed6;};return a24_0x4895();}function a24_0x201c(_0x1ddbea,_0x3f2297){_0x1ddbea=_0x1ddbea-0x1cb;const _0x489566=a24_0x4895();let _0x201c40=_0x489566[_0x1ddbea];return _0x201c40;}import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x3b722c(0x208),'operation':a24_0x3b722c(0x208),'risk':a24_0x3b722c(0x1ef),'paramsRequired':![],'description':a24_0x3b722c(0x1cd),'paramsHint':a24_0x3b722c(0x21d)+a24_0x3b722c(0x202),'helpExtra':[a24_0x3b722c(0x1d9),a24_0x3b722c(0x205),a24_0x3b722c(0x1fa),a24_0x3b722c(0x201),a24_0x3b722c(0x1cf),'\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}}',a24_0x3b722c(0x1f3),a24_0x3b722c(0x1f5),a24_0x3b722c(0x1d0),'\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}',a24_0x3b722c(0x1e9),'','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}',a24_0x3b722c(0x1d4),'',a24_0x3b722c(0x1e1),a24_0x3b722c(0x20c),a24_0x3b722c(0x20f),a24_0x3b722c(0x1dc),a24_0x3b722c(0x1e7),a24_0x3b722c(0x20d),'',a24_0x3b722c(0x1ee),a24_0x3b722c(0x1ec),'\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)'][a24_0x3b722c(0x212)]('\x0a')},{'command':'getOne','operation':a24_0x3b722c(0x21c),'risk':'read','paramsRequired':!![],'description':a24_0x3b722c(0x1df),'paramsHint':a24_0x3b722c(0x1d8)},{'command':a24_0x3b722c(0x206),'operation':a24_0x3b722c(0x206),'risk':'write','paramsRequired':!![],'description':a24_0x3b722c(0x20e),'paramsHint':'JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27'},{'command':a24_0x3b722c(0x1f2),'operation':a24_0x3b722c(0x1f2),'risk':a24_0x3b722c(0x1d6),'paramsRequired':!![],'description':a24_0x3b722c(0x204),'paramsHint':a24_0x3b722c(0x21e)},{'command':a24_0x3b722c(0x1e4),'operation':a24_0x3b722c(0x1e4),'risk':a24_0x3b722c(0x1d6),'paramsRequired':!![],'description':a24_0x3b722c(0x215),'paramsHint':a24_0x3b722c(0x217)},{'command':a24_0x3b722c(0x1d5),'operation':a24_0x3b722c(0x1d5),'risk':'high-risk-write','paramsRequired':!![],'description':a24_0x3b722c(0x1ea),'paramsHint':a24_0x3b722c(0x1d8)},{'command':a24_0x3b722c(0x1d3),'operation':a24_0x3b722c(0x1d3),'risk':a24_0x3b722c(0x1ef),'paramsRequired':![],'description':a24_0x3b722c(0x1ce),'paramsHint':a24_0x3b722c(0x1f0)+'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_0x3b722c(0x1e3),a24_0x3b722c(0x1e8),a24_0x3b722c(0x219),'\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','\x20\x20\x20\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_0x3b722c(0x1f4),a24_0x3b722c(0x21f),a24_0x3b722c(0x21b),'',a24_0x3b722c(0x1f9),'\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_0x3b722c(0x1fe),a24_0x3b722c(0x213),a24_0x3b722c(0x1de),a24_0x3b722c(0x1fb),a24_0x3b722c(0x1d2),'',a24_0x3b722c(0x207),a24_0x3b722c(0x1d1),a24_0x3b722c(0x1fd),'',a24_0x3b722c(0x214),a24_0x3b722c(0x203),'',a24_0x3b722c(0x1f7)][a24_0x3b722c(0x212)]('\x0a')}];function makeDataCommand(_0xc071e2){const _0x4386f6=a24_0x3b722c,_0x4ff317=_0x4386f6(0x1f6)+_0xc071e2[_0x4386f6(0x1f1)],_0x26336a={'service':'data','command':_0xc071e2[_0x4386f6(0x1f1)],'description':_0xc071e2[_0x4386f6(0x1cb)],'risk':_0xc071e2[_0x4386f6(0x1dd)],'helpExtra':_0xc071e2[_0x4386f6(0x20a)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0xc071e2['paramsHint']}],'validate':async _0x5c6271=>{const _0x5992aa=_0x4386f6;_0xc071e2[_0x5992aa(0x1ff)]&&requireAnyOf(_0x5c6271,[_0x5992aa(0x209)],_0x4ff317),_0xc071e2[_0x5992aa(0x216)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5c6271['str'](_0x5992aa(0x209))));},async 'execute'(_0x78ac1b){const _0x29463d=_0x4386f6,_0x5da121=_0x78ac1b['str'](_0x29463d(0x1da)),_0x12890f=_0xc071e2[_0x29463d(0x216)]===_0x29463d(0x1f2)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x78ac1b['str']('params'))):parseJsonParams(_0x78ac1b[_0x29463d(0x21a)](_0x29463d(0x209)))??{},_0x2b0173=Date[_0x29463d(0x1e0)](),_0x3fb26f=await executeData(_0x5da121,_0xc071e2['operation'],_0x12890f),_0x1a9f69=Date[_0x29463d(0x1e0)]()-_0x2b0173;return{'ok':!![],'data':{'result':_0x3fb26f,'elapsed':_0x1a9f69},'message':_0x29463d(0x1f6)+_0xc071e2['command']+_0x29463d(0x1e6)+_0x1a9f69+'ms'};}};return _0xc071e2[_0x4386f6(0x1dd)]!==_0x4386f6(0x1ef)&&(_0x26336a['dryRun']=async _0x55088c=>{const _0x3b6186=_0x4386f6,_0x3eaef9=_0x55088c[_0x3b6186(0x21a)]('code'),_0x6ad8aa=_0xc071e2[_0x3b6186(0x216)]===_0x3b6186(0x1f2)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x55088c['str'](_0x3b6186(0x209)))):parseJsonParams(_0x55088c[_0x3b6186(0x21a)](_0x3b6186(0x209)))??{};return dryRun('POST',_0x3b6186(0x20b)+_0x3eaef9+'/'+_0xc071e2[_0x3b6186(0x216)])[_0x3b6186(0x210)](_0x6ad8aa)[_0x3b6186(0x1cb)](_0x3b6186(0x218)+_0xc071e2[_0x3b6186(0x1f1)]+_0x3b6186(0x1eb)+_0x3eaef9)['build']();}),_0x26336a;}export const dataDefinitions=specs['map'](makeDataCommand);
@@ -1 +1 @@
1
- const a25_0x6d9e5f=a25_0x7e6b;(function(_0x45beb3,_0x5ae1c3){const _0x563b5a=a25_0x7e6b,_0x1aae66=_0x45beb3();while(!![]){try{const _0x2c48b5=-parseInt(_0x563b5a(0x7b))/0x1*(parseInt(_0x563b5a(0xbd))/0x2)+-parseInt(_0x563b5a(0xb2))/0x3*(parseInt(_0x563b5a(0x87))/0x4)+-parseInt(_0x563b5a(0xa1))/0x5+parseInt(_0x563b5a(0x7d))/0x6*(parseInt(_0x563b5a(0x96))/0x7)+parseInt(_0x563b5a(0xbf))/0x8*(parseInt(_0x563b5a(0xa3))/0x9)+parseInt(_0x563b5a(0x84))/0xa*(-parseInt(_0x563b5a(0x7a))/0xb)+-parseInt(_0x563b5a(0x89))/0xc*(-parseInt(_0x563b5a(0x91))/0xd);if(_0x2c48b5===_0x5ae1c3)break;else _0x1aae66['push'](_0x1aae66['shift']());}catch(_0x18b22e){_0x1aae66['push'](_0x1aae66['shift']());}}}(a25_0x407d,0x700d6));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a25_0x7e6b(_0x1c348c,_0xf1a71f){_0x1c348c=_0x1c348c-0x78;const _0x407d3a=a25_0x407d();let _0x7e6b90=_0x407d3a[_0x1c348c];return _0x7e6b90;}import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0xaf7511){const _0x22ba72=a25_0x7e6b;if(_0xaf7511[_0x22ba72(0xb8)])return null;const _0x343d6d=Boolean(_0xaf7511['displayName']!==undefined||_0xaf7511[_0x22ba72(0x97)]!==undefined);let _0xa8f5d3={};if(!_0x343d6d&&typeof _0xaf7511['extend']===_0x22ba72(0x9e))try{_0xa8f5d3=JSON['parse'](_0xaf7511[_0x22ba72(0xb3)]);}catch{}const _0x387846=_0x343d6d?_0xaf7511[_0x22ba72(0xb6)]:_0xaf7511[_0x22ba72(0xac)],_0x39a16b=_0x343d6d?_0xaf7511[_0x22ba72(0x9c)]:_0xaf7511[_0x22ba72(0xb6)],_0x39657e=_0x343d6d?_0xaf7511[_0x22ba72(0x97)]:_0xaf7511[_0x22ba72(0xc1)]||_0xaf7511[_0x22ba72(0x8a)],_0x44ad09=_0x343d6d?_0xaf7511[_0x22ba72(0xad)]===!![]:_0xa8f5d3['pkField']===!![],_0x552763=_0x343d6d?_0xaf7511[_0x22ba72(0xbc)]===!![]:_0xa8f5d3[_0x22ba72(0xbc)]===!![],_0x459a72=_0x343d6d?_0xaf7511[_0x22ba72(0xa6)]??null:_0xa8f5d3[_0x22ba72(0xa6)]??null,_0x37aa8b={'name':_0x387846,'displayName':_0x39a16b||_0x387846,'type':_0x39657e,'dbType':_0xaf7511[_0x22ba72(0x99)],'pk':_0x44ad09,'required':_0x552763,'description':_0xaf7511[_0x22ba72(0xa7)]||undefined};return Array['isArray'](_0x459a72)&&_0x459a72[_0x22ba72(0xaf)]>0x0&&(_0x37aa8b[_0x22ba72(0xa6)]=_0x459a72),_0x37aa8b;}function parseJsonMaybe(_0x4e2b3e){const _0x2be425=a25_0x7e6b;if(typeof _0x4e2b3e!==_0x2be425(0x9e))return _0x4e2b3e;try{return JSON[_0x2be425(0x9b)](_0x4e2b3e);}catch{return _0x4e2b3e;}}function normalizeOperationEntry(_0x31b486,_0xa6f48d){const _0x4414ae=a25_0x7e6b;if(!_0xa6f48d||typeof _0xa6f48d!=='object')return null;if(!_0xa6f48d[_0x4414ae(0x8e)]||!_0xa6f48d[_0x4414ae(0x78)])return null;const _0x316489={'name':_0x31b486,'method':_0xa6f48d['method'],'path':_0xa6f48d[_0x4414ae(0x78)]};if(_0xa6f48d['host'])_0x316489[_0x4414ae(0xae)]=_0xa6f48d['host'];if(_0xa6f48d['requestBody']!=null)_0x316489[_0x4414ae(0x8d)]=parseJsonMaybe(_0xa6f48d[_0x4414ae(0x8d)]);if(_0xa6f48d['responseBody']!=null)_0x316489[_0x4414ae(0xb1)]=parseJsonMaybe(_0xa6f48d['responseBody']);if(_0xa6f48d[_0x4414ae(0x8b)]!=null)_0x316489[_0x4414ae(0x8b)]=_0xa6f48d[_0x4414ae(0x8b)];if(_0xa6f48d['afterScriptId']!=null)_0x316489[_0x4414ae(0x8c)]=_0xa6f48d[_0x4414ae(0x8c)];if(Array['isArray'](_0xa6f48d['requestFields']))_0x316489[_0x4414ae(0x92)]=_0xa6f48d['requestFields'];if(Array['isArray'](_0xa6f48d[_0x4414ae(0xb7)]))_0x316489['responseFields']=_0xa6f48d[_0x4414ae(0xb7)];return _0x316489;}function summarizeDbtable(_0x40b036){const _0x387fb6=a25_0x7e6b,_0x2da332={},_0x319fec=[_0x387fb6(0xbe),_0x387fb6(0xba),_0x387fb6(0x80),_0x387fb6(0x95),_0x387fb6(0xad),_0x387fb6(0xab),'logicField',_0x387fb6(0xbb),_0x387fb6(0xa4),_0x387fb6(0xaa),'creatorNameField',_0x387fb6(0x7e),_0x387fb6(0xb4),_0x387fb6(0x83),_0x387fb6(0xa9)];for(const _0x4a9a8b of _0x319fec){if(_0x40b036[_0x4a9a8b]!==undefined)_0x2da332[_0x4a9a8b]=_0x40b036[_0x4a9a8b];}return typeof _0x2da332['allFields']===_0x387fb6(0x9e)&&_0x2da332[_0x387fb6(0xab)][_0x387fb6(0xaf)]>0x0&&(_0x2da332['allFieldNames']=_0x2da332[_0x387fb6(0xab)][_0x387fb6(0x7c)](',')[_0x387fb6(0xc0)](_0x1fa615=>_0x1fa615[_0x387fb6(0x94)]())[_0x387fb6(0x9d)](Boolean)),_0x2da332;}function normalizeRelatedPages(_0x13ef38){const _0x1cacfc=a25_0x7e6b;if(!Array[_0x1cacfc(0x7f)](_0x13ef38))return[];return _0x13ef38['filter'](_0x5cd8ed=>_0x5cd8ed&&typeof _0x5cd8ed===_0x1cacfc(0xb5))[_0x1cacfc(0xc0)](_0x315d1c=>({'id':_0x315d1c['id'],'type':_0x315d1c[_0x1cacfc(0xc1)],'code':_0x315d1c[_0x1cacfc(0xac)],'title':_0x315d1c['title'],'deleted':_0x315d1c[_0x1cacfc(0xb8)]===!![]}));}function normalizeFallbackFieldName(_0x3ad0d6,_0x339663){const _0x394a3a=_0x3ad0d6['trim']();if(!_0x394a3a)return null;return{'name':_0x394a3a,'displayName':_0x394a3a,'type':undefined,'dbType':undefined,'pk':_0x394a3a===_0x339663,'required':![],'description':undefined};}async function loadListFieldFallback(_0x173ae1,_0x3633d7){const _0x10172d=a25_0x7e6b;if(!_0x173ae1||!_0x3633d7)return[];try{const _0x1ab209=await listDatasets(_0x173ae1,{'code':_0x3633d7}),_0xc6c368=_0x1ab209[_0x10172d(0x82)](_0x5f09ba=>_0x5f09ba[_0x10172d(0xac)]===_0x3633d7)??_0x1ab209[0x0],_0x57b459=_0xc6c368?.['dbtableConfig']??{},_0x3ffb39=typeof _0x57b459['allFields']===_0x10172d(0x9e)?_0x57b459[_0x10172d(0xab)][_0x10172d(0x7c)](','):[];return _0x3ffb39[_0x10172d(0xc0)](_0x157890=>normalizeFallbackFieldName(_0x157890,_0x57b459['pkField']))['filter'](_0x12d43b=>_0x12d43b!==null);}catch{return[];}}function a25_0x407d(){const _0x437d51=['str','options','description','doVersion','dblinkInfoDTO','creatorIdField','allFields','code','pkField','host','length','indexes','responseBody','1178799uKTTah','extend','modifierNameField','object','name','responseFields','deleted','source','dbName','createTimeField','required','6xCeDFt','dbId','8NKPHZk','map','type','properties','path','modelId','35563Muocrd','195723edNlXr','split','1311762FrLfKT','modifierIdField','isArray','tableName','read','find','labelField','1420SSQSjp','entries','fields','8FmoUBz','relatedPageInfoList','20490420GcwIDo','dataType','beforeScriptId','afterScriptId','requestBody','method','detail','formatRules','13JZLBKq','requestFields','operations','trim','datasetKey','7EYYTct','doType','sourceType','dbType','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','parse','displayName','filter','string','validateRules','push','2052020KAQufo','columnCodeListWithDeleted','6977961XsRfXD','updateTimeField'];a25_0x407d=function(){return _0x437d51;};return a25_0x407d();}export const datasetDetail={'service':'dataset','command':a25_0x6d9e5f(0x8f),'description':a25_0x6d9e5f(0x9a),'risk':a25_0x6d9e5f(0x81),'flags':[CODE_FLAG],async 'execute'(_0x180dc7){const _0x3c01e7=a25_0x6d9e5f,_0x363079=await getDatasetDetail(_0x180dc7['str']('code')),_0x1e1153=Array['isArray'](_0x363079[_0x3c01e7(0x86)])?_0x363079['fields']:Array[_0x3c01e7(0x7f)](_0x363079[_0x3c01e7(0xc2)])?_0x363079[_0x3c01e7(0xc2)]:[];let _0xc53975=_0x1e1153[_0x3c01e7(0xc0)](_0x190f40=>normalizeField(_0x190f40))[_0x3c01e7(0x9d)](_0x4b358d=>_0x4b358d!==null);_0xc53975[_0x3c01e7(0xaf)]===0x0&&(_0xc53975=await loadListFieldFallback(_0x180dc7['appCode'],_0x180dc7[_0x3c01e7(0xa5)](_0x3c01e7(0xac))));const _0x327700=_0x363079[_0x3c01e7(0x93)]??{},_0x531c5e=[];for(const [_0x2fbb9c,_0x2063f1]of Object[_0x3c01e7(0x85)](_0x327700)){const _0x10e11c=normalizeOperationEntry(_0x2fbb9c,_0x2063f1);if(_0x10e11c)_0x531c5e[_0x3c01e7(0xa0)](_0x10e11c);}const _0x5953e6=_0x363079['dbtableConfig']??{},_0x501db2=_0x363079['dataset']??{},_0x5475d1=_0x5953e6['dbId']!=null?{'id':_0x5953e6[_0x3c01e7(0xbe)],'name':_0x5953e6['dbName']??null}:undefined;let _0x2715a6;return typeof _0x363079[_0x3c01e7(0xb3)]===_0x3c01e7(0x9e)&&(_0x2715a6=parseJsonMaybe(_0x363079[_0x3c01e7(0xb3)])),{'ok':!![],'data':{'id':_0x363079[_0x3c01e7(0x79)]??_0x363079['id'],'name':_0x363079[_0x3c01e7(0xb6)],'code':_0x363079['modelCode']||_0x363079[_0x3c01e7(0xac)],'doVersion':_0x363079[_0x3c01e7(0xa8)],'description':_0x363079[_0x3c01e7(0xa7)]||_0x501db2['tableComment']||undefined,'source':_0x363079[_0x3c01e7(0xb9)]||_0x501db2[_0x3c01e7(0x98)],'table':_0x5953e6['tableName']||_0x501db2[_0x3c01e7(0x80)],'datasetKey':_0x5953e6[_0x3c01e7(0x95)],'pk':_0x5953e6[_0x3c01e7(0xad)],'db':_0x5475d1,'dbtable':summarizeDbtable(_0x5953e6),'fields':_0xc53975,'operations':_0x531c5e,'indexes':Array['isArray'](_0x501db2[_0x3c01e7(0xb0)])?_0x501db2[_0x3c01e7(0xb0)]:[],'relations':_0x363079['relations']??null,'relatedPages':normalizeRelatedPages(_0x363079[_0x3c01e7(0x88)]),...Array['isArray'](_0x363079['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x363079[_0x3c01e7(0xa2)]}:{},'formatRules':Array[_0x3c01e7(0x7f)](_0x363079[_0x3c01e7(0x90)])?_0x363079[_0x3c01e7(0x90)]:[],'validateRules':Array['isArray'](_0x363079[_0x3c01e7(0x9f)])?_0x363079[_0x3c01e7(0x9f)]:[],..._0x2715a6!==undefined?{'extend':_0x2715a6}:{},'stats':{'fieldCount':_0xc53975['length'],'operationCount':_0x531c5e['length']}}};}};
1
+ const a25_0x16b78d=a25_0x5c31;(function(_0x57c172,_0x29c705){const _0x4c9aaa=a25_0x5c31,_0x27e150=_0x57c172();while(!![]){try{const _0x4c2057=-parseInt(_0x4c9aaa(0xc5))/0x1*(parseInt(_0x4c9aaa(0xc7))/0x2)+parseInt(_0x4c9aaa(0xcf))/0x3*(-parseInt(_0x4c9aaa(0xca))/0x4)+-parseInt(_0x4c9aaa(0xd9))/0x5*(-parseInt(_0x4c9aaa(0xd5))/0x6)+-parseInt(_0x4c9aaa(0xaf))/0x7*(parseInt(_0x4c9aaa(0xb0))/0x8)+-parseInt(_0x4c9aaa(0xb8))/0x9*(parseInt(_0x4c9aaa(0xcb))/0xa)+parseInt(_0x4c9aaa(0xd2))/0xb*(-parseInt(_0x4c9aaa(0xd7))/0xc)+-parseInt(_0x4c9aaa(0xba))/0xd*(-parseInt(_0x4c9aaa(0xc8))/0xe);if(_0x4c2057===_0x29c705)break;else _0x27e150['push'](_0x27e150['shift']());}catch(_0x44cbb6){_0x27e150['push'](_0x27e150['shift']());}}}(a25_0x5ad5,0xdc0f1));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x59bdb6){const _0x40e0b3=a25_0x5c31;if(_0x59bdb6['deleted'])return null;const _0x3f66e2=Boolean(_0x59bdb6[_0x40e0b3(0xbb)]!==undefined||_0x59bdb6[_0x40e0b3(0xe8)]!==undefined);let _0x426ee5={};if(!_0x3f66e2&&typeof _0x59bdb6[_0x40e0b3(0xe0)]===_0x40e0b3(0xdd))try{_0x426ee5=JSON[_0x40e0b3(0xe6)](_0x59bdb6['extend']);}catch{}const _0x494c55=_0x3f66e2?_0x59bdb6[_0x40e0b3(0xd3)]:_0x59bdb6[_0x40e0b3(0xdf)],_0x5b954b=_0x3f66e2?_0x59bdb6['displayName']:_0x59bdb6[_0x40e0b3(0xd3)],_0x4ba6a3=_0x3f66e2?_0x59bdb6['doType']:_0x59bdb6[_0x40e0b3(0xae)]||_0x59bdb6['dataType'],_0x4e3a56=_0x3f66e2?_0x59bdb6['pkField']===!![]:_0x426ee5[_0x40e0b3(0xee)]===!![],_0x5884fd=_0x3f66e2?_0x59bdb6[_0x40e0b3(0xc1)]===!![]:_0x426ee5['required']===!![],_0x23c750=_0x3f66e2?_0x59bdb6[_0x40e0b3(0xb5)]??null:_0x426ee5[_0x40e0b3(0xb5)]??null,_0x51a43a={'name':_0x494c55,'displayName':_0x5b954b||_0x494c55,'type':_0x4ba6a3,'dbType':_0x59bdb6[_0x40e0b3(0xd8)],'pk':_0x4e3a56,'required':_0x5884fd,'description':_0x59bdb6['description']||undefined};return Array[_0x40e0b3(0xd0)](_0x23c750)&&_0x23c750['length']>0x0&&(_0x51a43a[_0x40e0b3(0xb5)]=_0x23c750),_0x51a43a;}function parseJsonMaybe(_0xb59015){const _0x3538d6=a25_0x5c31;if(typeof _0xb59015!==_0x3538d6(0xdd))return _0xb59015;try{return JSON[_0x3538d6(0xe6)](_0xb59015);}catch{return _0xb59015;}}function a25_0x5ad5(){const _0x2cac44=['columnCodeListWithDeleted','2lrjtMq','39260116KMtrEs','requestBody','1094548GKexUM','4099930uhyGvi','createTimeField','allFields','dbtableConfig','15pVjxEC','isArray','beforeScriptId','6033599UsnxOd','name','dbId','786FmWuDs','dblinkInfoDTO','12RczTcd','dbType','41755wMKQnY','formatRules','tableComment','trim','string','filter','code','extend','modelCode','host','dbName','length','deleted','parse','creatorNameField','doType','split','tableName','updateTimeField','path','description','pkField','requestFields','dataset','relatedPageInfoList','push','creatorIdField','detail','modifierNameField','afterScriptId','str','map','validateRules','fields','type','9234337FjkFPQ','8WKtEQa','responseBody','datasetKey','object','labelField','options','indexes','appCode','18NyUCof','sourceType','26UFPWIp','displayName','method','modelId','modifierIdField','title','responseFields','required','operations','properties','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','1745337AkMqUM'];a25_0x5ad5=function(){return _0x2cac44;};return a25_0x5ad5();}function a25_0x5c31(_0x506ea0,_0x1c76a7){_0x506ea0=_0x506ea0-0xa3;const _0x5ad5f5=a25_0x5ad5();let _0x5c3130=_0x5ad5f5[_0x506ea0];return _0x5c3130;}function normalizeOperationEntry(_0x28462c,_0x3caa11){const _0x3c03d3=a25_0x5c31;if(!_0x3caa11||typeof _0x3caa11!==_0x3c03d3(0xb3))return null;if(!_0x3caa11[_0x3c03d3(0xbc)]||!_0x3caa11[_0x3c03d3(0xec)])return null;const _0x17d255={'name':_0x28462c,'method':_0x3caa11[_0x3c03d3(0xbc)],'path':_0x3caa11['path']};if(_0x3caa11[_0x3c03d3(0xe2)])_0x17d255[_0x3c03d3(0xe2)]=_0x3caa11['host'];if(_0x3caa11['requestBody']!=null)_0x17d255[_0x3c03d3(0xc9)]=parseJsonMaybe(_0x3caa11[_0x3c03d3(0xc9)]);if(_0x3caa11[_0x3c03d3(0xb1)]!=null)_0x17d255[_0x3c03d3(0xb1)]=parseJsonMaybe(_0x3caa11[_0x3c03d3(0xb1)]);if(_0x3caa11[_0x3c03d3(0xd1)]!=null)_0x17d255['beforeScriptId']=_0x3caa11[_0x3c03d3(0xd1)];if(_0x3caa11[_0x3c03d3(0xa9)]!=null)_0x17d255[_0x3c03d3(0xa9)]=_0x3caa11['afterScriptId'];if(Array[_0x3c03d3(0xd0)](_0x3caa11[_0x3c03d3(0xef)]))_0x17d255[_0x3c03d3(0xef)]=_0x3caa11[_0x3c03d3(0xef)];if(Array[_0x3c03d3(0xd0)](_0x3caa11['responseFields']))_0x17d255[_0x3c03d3(0xc0)]=_0x3caa11['responseFields'];return _0x17d255;}function summarizeDbtable(_0x1b71b8){const _0x7b3da0=a25_0x5c31,_0x37b3e9={},_0x36de4a=[_0x7b3da0(0xd4),_0x7b3da0(0xe3),'tableName',_0x7b3da0(0xb2),_0x7b3da0(0xee),_0x7b3da0(0xcd),'logicField',_0x7b3da0(0xcc),_0x7b3da0(0xeb),_0x7b3da0(0xa6),_0x7b3da0(0xe7),_0x7b3da0(0xbe),_0x7b3da0(0xa8),_0x7b3da0(0xb4),_0x7b3da0(0xd6)];for(const _0x502c06 of _0x36de4a){if(_0x1b71b8[_0x502c06]!==undefined)_0x37b3e9[_0x502c06]=_0x1b71b8[_0x502c06];}return typeof _0x37b3e9[_0x7b3da0(0xcd)]===_0x7b3da0(0xdd)&&_0x37b3e9[_0x7b3da0(0xcd)][_0x7b3da0(0xe4)]>0x0&&(_0x37b3e9['allFieldNames']=_0x37b3e9[_0x7b3da0(0xcd)][_0x7b3da0(0xe9)](',')[_0x7b3da0(0xab)](_0x57d57f=>_0x57d57f[_0x7b3da0(0xdc)]())['filter'](Boolean)),_0x37b3e9;}function normalizeRelatedPages(_0x61f128){const _0x500747=a25_0x5c31;if(!Array[_0x500747(0xd0)](_0x61f128))return[];return _0x61f128[_0x500747(0xde)](_0x57196c=>_0x57196c&&typeof _0x57196c===_0x500747(0xb3))[_0x500747(0xab)](_0x4acc9b=>({'id':_0x4acc9b['id'],'type':_0x4acc9b[_0x500747(0xae)],'code':_0x4acc9b[_0x500747(0xdf)],'title':_0x4acc9b[_0x500747(0xbf)],'deleted':_0x4acc9b[_0x500747(0xe5)]===!![]}));}function normalizeFallbackFieldName(_0x3c1701,_0x368c60){const _0x4aa725=a25_0x5c31,_0x3d5262=_0x3c1701[_0x4aa725(0xdc)]();if(!_0x3d5262)return null;return{'name':_0x3d5262,'displayName':_0x3d5262,'type':undefined,'dbType':undefined,'pk':_0x3d5262===_0x368c60,'required':![],'description':undefined};}async function loadListFieldFallback(_0x27a50c,_0x493578){const _0x5a03d9=a25_0x5c31;if(!_0x27a50c||!_0x493578)return[];try{const _0x28fda9=await listDatasets(_0x27a50c,{'code':_0x493578}),_0x1ea288=_0x28fda9['find'](_0x295bc0=>_0x295bc0[_0x5a03d9(0xdf)]===_0x493578)??_0x28fda9[0x0],_0x1c0dad=_0x1ea288?.[_0x5a03d9(0xce)]??{},_0x4223b9=typeof _0x1c0dad[_0x5a03d9(0xcd)]==='string'?_0x1c0dad[_0x5a03d9(0xcd)][_0x5a03d9(0xe9)](','):[];return _0x4223b9['map'](_0x291045=>normalizeFallbackFieldName(_0x291045,_0x1c0dad['pkField']))[_0x5a03d9(0xde)](_0x352e78=>_0x352e78!==null);}catch{return[];}}export const datasetDetail={'service':a25_0x16b78d(0xa3),'command':a25_0x16b78d(0xa7),'description':a25_0x16b78d(0xc4),'risk':'read','flags':[CODE_FLAG],async 'execute'(_0x11b437){const _0x5b0374=a25_0x16b78d,_0x507a9c=await getDatasetDetail(_0x11b437[_0x5b0374(0xaa)](_0x5b0374(0xdf))),_0x22907d=Array[_0x5b0374(0xd0)](_0x507a9c[_0x5b0374(0xad)])?_0x507a9c[_0x5b0374(0xad)]:Array[_0x5b0374(0xd0)](_0x507a9c[_0x5b0374(0xc3)])?_0x507a9c['properties']:[];let _0x20175e=_0x22907d[_0x5b0374(0xab)](_0x27c98d=>normalizeField(_0x27c98d))[_0x5b0374(0xde)](_0x566afa=>_0x566afa!==null);_0x20175e[_0x5b0374(0xe4)]===0x0&&(_0x20175e=await loadListFieldFallback(_0x11b437[_0x5b0374(0xb7)],_0x11b437[_0x5b0374(0xaa)](_0x5b0374(0xdf))));const _0x59b28c=_0x507a9c[_0x5b0374(0xc2)]??{},_0x3ab8d7=[];for(const [_0x487764,_0x4a35ce]of Object['entries'](_0x59b28c)){const _0x1fd232=normalizeOperationEntry(_0x487764,_0x4a35ce);if(_0x1fd232)_0x3ab8d7[_0x5b0374(0xa5)](_0x1fd232);}const _0x1c99ef=_0x507a9c['dbtableConfig']??{},_0x3d6a43=_0x507a9c[_0x5b0374(0xa3)]??{},_0x1e8f7d=_0x1c99ef[_0x5b0374(0xd4)]!=null?{'id':_0x1c99ef[_0x5b0374(0xd4)],'name':_0x1c99ef['dbName']??null}:undefined;let _0x265c14;return typeof _0x507a9c[_0x5b0374(0xe0)]===_0x5b0374(0xdd)&&(_0x265c14=parseJsonMaybe(_0x507a9c[_0x5b0374(0xe0)])),{'ok':!![],'data':{'id':_0x507a9c[_0x5b0374(0xbd)]??_0x507a9c['id'],'name':_0x507a9c[_0x5b0374(0xd3)],'code':_0x507a9c[_0x5b0374(0xe1)]||_0x507a9c[_0x5b0374(0xdf)],'doVersion':_0x507a9c['doVersion'],'description':_0x507a9c[_0x5b0374(0xed)]||_0x3d6a43[_0x5b0374(0xdb)]||undefined,'source':_0x507a9c['source']||_0x3d6a43[_0x5b0374(0xb9)],'table':_0x1c99ef[_0x5b0374(0xea)]||_0x3d6a43[_0x5b0374(0xea)],'datasetKey':_0x1c99ef[_0x5b0374(0xb2)],'pk':_0x1c99ef['pkField'],'db':_0x1e8f7d,'dbtable':summarizeDbtable(_0x1c99ef),'fields':_0x20175e,'operations':_0x3ab8d7,'indexes':Array['isArray'](_0x3d6a43[_0x5b0374(0xb6)])?_0x3d6a43[_0x5b0374(0xb6)]:[],'relations':_0x507a9c['relations']??null,'relatedPages':normalizeRelatedPages(_0x507a9c[_0x5b0374(0xa4)]),...Array[_0x5b0374(0xd0)](_0x507a9c[_0x5b0374(0xc6)])?{'columnCodeListWithDeleted':_0x507a9c[_0x5b0374(0xc6)]}:{},'formatRules':Array[_0x5b0374(0xd0)](_0x507a9c[_0x5b0374(0xda)])?_0x507a9c[_0x5b0374(0xda)]:[],'validateRules':Array[_0x5b0374(0xd0)](_0x507a9c['validateRules'])?_0x507a9c[_0x5b0374(0xac)]:[],..._0x265c14!==undefined?{'extend':_0x265c14}:{},'stats':{'fieldCount':_0x20175e[_0x5b0374(0xe4)],'operationCount':_0x3ab8d7[_0x5b0374(0xe4)]}}};}};
@@ -1 +1 @@
1
- function a26_0xe599(_0x6cba0a,_0x3ee6dd){_0x6cba0a=_0x6cba0a-0x8e;const _0x24d4bf=a26_0x24d4();let _0xe599ed=_0x24d4bf[_0x6cba0a];return _0xe599ed;}(function(_0xa41455,_0x55b53d){const _0x4d1815=a26_0xe599,_0x30147a=_0xa41455();while(!![]){try{const _0x42e9c8=-parseInt(_0x4d1815(0x97))/0x1+parseInt(_0x4d1815(0x94))/0x2+-parseInt(_0x4d1815(0x93))/0x3*(-parseInt(_0x4d1815(0x8e))/0x4)+parseInt(_0x4d1815(0x90))/0x5*(parseInt(_0x4d1815(0x99))/0x6)+parseInt(_0x4d1815(0x98))/0x7*(parseInt(_0x4d1815(0x92))/0x8)+-parseInt(_0x4d1815(0x8f))/0x9*(parseInt(_0x4d1815(0x95))/0xa)+parseInt(_0x4d1815(0x96))/0xb*(parseInt(_0x4d1815(0x91))/0xc);if(_0x42e9c8===_0x55b53d)break;else _0x30147a['push'](_0x30147a['shift']());}catch(_0x12b676){_0x30147a['push'](_0x30147a['shift']());}}}(a26_0x24d4,0x21a90));import{datasetList}from'../../commands/dataset/list.js';function a26_0x24d4(){const _0x2274c4=['33EUMEys','235282GjXrjh','90sDAFDf','22nuwlUl','250029CIqbHy','360262zaWsBZ','210612FebXXR','10588Vynnwu','65421RehEaq','10PwZiNB','800568SwijEg','16IvBZWX'];a26_0x24d4=function(){return _0x2274c4;};return a26_0x24d4();}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ (function(_0x1b86a1,_0x296469){const _0x581312=a26_0x16f6,_0x5c8721=_0x1b86a1();while(!![]){try{const _0x1891e0=parseInt(_0x581312(0x84))/0x1*(-parseInt(_0x581312(0x83))/0x2)+parseInt(_0x581312(0x8a))/0x3*(parseInt(_0x581312(0x8b))/0x4)+parseInt(_0x581312(0x88))/0x5*(-parseInt(_0x581312(0x82))/0x6)+parseInt(_0x581312(0x8c))/0x7+parseInt(_0x581312(0x89))/0x8+parseInt(_0x581312(0x87))/0x9*(parseInt(_0x581312(0x85))/0xa)+-parseInt(_0x581312(0x86))/0xb;if(_0x1891e0===_0x296469)break;else _0x5c8721['push'](_0x5c8721['shift']());}catch(_0x904675){_0x5c8721['push'](_0x5c8721['shift']());}}}(a26_0xaf1a,0xacdbb));function a26_0x16f6(_0x289bdc,_0x22c9ff){_0x289bdc=_0x289bdc-0x82;const _0xaf1ac9=a26_0xaf1a();let _0x16f6de=_0xaf1ac9[_0x289bdc];return _0x16f6de;}import{datasetList}from'../../commands/dataset/list.js';function a26_0xaf1a(){const _0x192d87=['1944uRWXtL','2SXTokW','375995MddUmx','157510mXIXxG','18068259bIjqcI','684NkBUYh','11485ZatWgu','3399744LhQEmv','3Fnisjh','1949980napEWD','9528960PAlDtE'];a26_0xaf1a=function(){return _0x192d87;};return a26_0xaf1a();}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- const a27_0x370111=a27_0x2bdd;(function(_0x318171,_0x1478fd){const _0x2fa021=a27_0x2bdd,_0x3972bf=_0x318171();while(!![]){try{const _0x3fd988=-parseInt(_0x2fa021(0x1e9))/0x1+parseInt(_0x2fa021(0x1f1))/0x2+parseInt(_0x2fa021(0x1e2))/0x3+parseInt(_0x2fa021(0x1f0))/0x4+parseInt(_0x2fa021(0x1e7))/0x5+parseInt(_0x2fa021(0x1ee))/0x6+-parseInt(_0x2fa021(0x1e8))/0x7*(parseInt(_0x2fa021(0x1f3))/0x8);if(_0x3fd988===_0x1478fd)break;else _0x3972bf['push'](_0x3972bf['shift']());}catch(_0x322e1d){_0x3972bf['push'](_0x3972bf['shift']());}}}(a27_0x56c4,0x5bbf3));import{listDatasets}from'../../core/api-client.js';function a27_0x2bdd(_0x3b9da6,_0x5e8bbf){_0x3b9da6=_0x3b9da6-0x1de;const _0x56c450=a27_0x56c4();let _0x2bdd1d=_0x56c450[_0x3b9da6];return _0x2bdd1d;}import{CODE_FLAG}from'../../commands/common/flags.js';function a27_0x56c4(){const _0x2a6940=['705112cqTPcn','datasetKey','appCode','trim','read','code','length','1171914GmoQnv','list','allFields','name','tableName','1774715cLjYqd','56kWdHTJ','238334kSwMBI','map','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','source','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','727866iChbKj','string','456112VjOJqH','676642hTOmRV','dbtableConfig'];a27_0x56c4=function(){return _0x2a6940;};return a27_0x56c4();}export const datasetList={'service':'dataset','command':a27_0x370111(0x1e3),'description':a27_0x370111(0x1eb),'risk':a27_0x370111(0x1df),'flags':[{'name':'name','type':a27_0x370111(0x1ef),'description':'Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'},{...CODE_FLAG,'required':![],'description':a27_0x370111(0x1ed)}],async 'execute'(_0x2e933e){const _0x529ff0=a27_0x370111,_0x3b3bd0=_0x2e933e['str'](_0x529ff0(0x1e5)),_0x33cb0e=_0x2e933e['str'](_0x529ff0(0x1e0)),_0x4cbebd=await listDatasets(_0x2e933e[_0x529ff0(0x1f5)],{..._0x3b3bd0&&{'name':_0x3b3bd0},..._0x33cb0e&&{'code':_0x33cb0e}});return{'ok':!![],'data':{'total':_0x4cbebd[_0x529ff0(0x1e1)],'datasets':_0x4cbebd[_0x529ff0(0x1ea)](_0x30e257=>{const _0xd55c8c=_0x529ff0,_0x5e22c3=_0x30e257[_0xd55c8c(0x1f2)]??{};return{'id':_0x30e257['id'],'code':_0x30e257[_0xd55c8c(0x1e0)],'name':_0x30e257[_0xd55c8c(0x1e5)],'source':_0x30e257[_0xd55c8c(0x1ec)],'description':_0x30e257['description'],'table':_0x5e22c3[_0xd55c8c(0x1e6)],'datasetKey':_0x5e22c3[_0xd55c8c(0x1f4)],'pk':_0x5e22c3['pkField'],'fields':_0x5e22c3['allFields']?_0x5e22c3[_0xd55c8c(0x1e4)]['split'](',')[_0xd55c8c(0x1ea)](_0x45518a=>_0x45518a[_0xd55c8c(0x1de)]()):[]};})}};}};
1
+ const a27_0x2ac547=a27_0x2c69;(function(_0x4dd408,_0x4bb8aa){const _0xa0d629=a27_0x2c69,_0x5876fc=_0x4dd408();while(!![]){try{const _0x4550a8=-parseInt(_0xa0d629(0xaa))/0x1+parseInt(_0xa0d629(0x9f))/0x2*(-parseInt(_0xa0d629(0xab))/0x3)+parseInt(_0xa0d629(0xa8))/0x4*(parseInt(_0xa0d629(0xb0))/0x5)+-parseInt(_0xa0d629(0xac))/0x6+-parseInt(_0xa0d629(0xad))/0x7*(-parseInt(_0xa0d629(0x9b))/0x8)+-parseInt(_0xa0d629(0x9a))/0x9*(parseInt(_0xa0d629(0xa2))/0xa)+-parseInt(_0xa0d629(0x97))/0xb*(-parseInt(_0xa0d629(0x9d))/0xc);if(_0x4550a8===_0x4bb8aa)break;else _0x5876fc['push'](_0x5876fc['shift']());}catch(_0x4d8332){_0x5876fc['push'](_0x5876fc['shift']());}}}(a27_0x4246,0x98575));import{listDatasets}from'../../core/api-client.js';function a27_0x2c69(_0x1062fb,_0x4255e3){_0x1062fb=_0x1062fb-0x97;const _0x424663=a27_0x4246();let _0x2c6936=_0x424663[_0x1062fb];return _0x2c6936;}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a27_0x2ac547(0x9c),'command':a27_0x2ac547(0xa9),'description':a27_0x2ac547(0x99),'risk':a27_0x2ac547(0x98),'flags':[{'name':a27_0x2ac547(0xb3),'type':a27_0x2ac547(0xa0),'description':a27_0x2ac547(0xa4)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x572fa8){const _0x411886=a27_0x2ac547,_0x276175=_0x572fa8[_0x411886(0xae)](_0x411886(0xb3)),_0x41b68e=_0x572fa8[_0x411886(0xae)]('code'),_0x11d7a0=await listDatasets(_0x572fa8[_0x411886(0xb1)],{..._0x276175&&{'name':_0x276175},..._0x41b68e&&{'code':_0x41b68e}});return{'ok':!![],'data':{'total':_0x11d7a0[_0x411886(0x9e)],'datasets':_0x11d7a0['map'](_0x616ad0=>{const _0x27c476=_0x411886,_0x38a2b2=_0x616ad0[_0x27c476(0xa1)]??{};return{'id':_0x616ad0['id'],'code':_0x616ad0[_0x27c476(0xaf)],'name':_0x616ad0[_0x27c476(0xb3)],'source':_0x616ad0['source'],'description':_0x616ad0['description'],'table':_0x38a2b2['tableName'],'datasetKey':_0x38a2b2[_0x27c476(0xb2)],'pk':_0x38a2b2[_0x27c476(0xa5)],'fields':_0x38a2b2[_0x27c476(0xa3)]?_0x38a2b2['allFields'][_0x27c476(0xa6)](',')['map'](_0x5590aa=>_0x5590aa[_0x27c476(0xa7)]()):[]};})}};}};function a27_0x4246(){const _0x567dbd=['655GxzVeg','appCode','datasetKey','name','77CsWIEK','read','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','18FjuVlX','1432WoqvAq','dataset','3893496NwxsZY','length','128EMZdGH','string','dbtableConfig','3489560mtYtAe','allFields','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','pkField','split','trim','36196dHJxMk','list','770547kAyzNf','56379frLrnJ','5225886QdQwiD','27748HJekwU','str','code'];a27_0x4246=function(){return _0x567dbd;};return a27_0x4246();}
@@ -1 +1 @@
1
- const a28_0x4c1dc8=a28_0x48bc;(function(_0x2478ff,_0xd5427){const _0x38d16f=a28_0x48bc,_0x1b1181=_0x2478ff();while(!![]){try{const _0x3a9407=parseInt(_0x38d16f(0x12f))/0x1*(-parseInt(_0x38d16f(0x125))/0x2)+-parseInt(_0x38d16f(0x129))/0x3+-parseInt(_0x38d16f(0x127))/0x4*(-parseInt(_0x38d16f(0x130))/0x5)+-parseInt(_0x38d16f(0x124))/0x6*(-parseInt(_0x38d16f(0x134))/0x7)+parseInt(_0x38d16f(0x12b))/0x8+parseInt(_0x38d16f(0x126))/0x9+-parseInt(_0x38d16f(0x12d))/0xa*(parseInt(_0x38d16f(0x121))/0xb);if(_0x3a9407===_0xd5427)break;else _0x1b1181['push'](_0x1b1181['shift']());}catch(_0x3ca71f){_0x1b1181['push'](_0x1b1181['shift']());}}}(a28_0xa19c,0xc0a83));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0x48bc(_0x7b5c0,_0x3ea4b7){_0x7b5c0=_0x7b5c0-0x121;const _0xa19c9a=a28_0xa19c();let _0x48bc08=_0xa19c9a[_0x7b5c0];return _0x48bc08;}const DEFAULT_MARKDOWN=a28_0x4c1dc8(0x133);function a28_0xa19c(){const _0x5342f2=['Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','2458557WiAmxi','read','662080KgBOae','dataset','350xsYDzl','str','857903SCbyIp','69410DWORij','string','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','12019mEZDYD','200310mNdfbL','appCode','code','3666rVykWI','2MbQslp','3630438HqSrCk','452XplTAl'];a28_0xa19c=function(){return _0x5342f2;};return a28_0xa19c();}export function formatDatasetSdkMarkdown(_0xab2239){const _0x3e150e=a28_0x4c1dc8,_0x1ef47d=typeof _0xab2239===_0x3e150e(0x131)?_0xab2239['trim']():'';return _0x1ef47d||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a28_0x4c1dc8(0x12c),'command':'sdk-doc','description':a28_0x4c1dc8(0x128),'risk':a28_0x4c1dc8(0x12a),'flags':[{...CODE_FLAG,'description':a28_0x4c1dc8(0x132)}],async 'execute'(_0x349a03){const _0x1cd5c0=a28_0x4c1dc8,_0x4251df=_0x349a03[_0x1cd5c0(0x12e)](_0x1cd5c0(0x123)),_0x22a1be=await getDatasetSdkUsageDoc(_0x4251df,_0x349a03[_0x1cd5c0(0x122)]);return{'ok':!![],'data':{'code':_0x4251df,'appCode':_0x349a03[_0x1cd5c0(0x122)],'markdown':formatDatasetSdkMarkdown(_0x22a1be)}};}};
1
+ function a28_0x9a24(_0x344387,_0x390f0d){_0x344387=_0x344387-0xe0;const _0x175107=a28_0x1751();let _0x9a2439=_0x175107[_0x344387];return _0x9a2439;}const a28_0x18f71f=a28_0x9a24;(function(_0x49a8db,_0x3fb474){const _0x443b56=a28_0x9a24,_0x3c8e24=_0x49a8db();while(!![]){try{const _0x25d999=-parseInt(_0x443b56(0xea))/0x1*(parseInt(_0x443b56(0xec))/0x2)+parseInt(_0x443b56(0xe5))/0x3+parseInt(_0x443b56(0xe1))/0x4+parseInt(_0x443b56(0xf0))/0x5+-parseInt(_0x443b56(0xe3))/0x6*(parseInt(_0x443b56(0xe4))/0x7)+parseInt(_0x443b56(0xef))/0x8+-parseInt(_0x443b56(0xe8))/0x9;if(_0x25d999===_0x3fb474)break;else _0x3c8e24['push'](_0x3c8e24['shift']());}catch(_0x291111){_0x3c8e24['push'](_0x3c8e24['shift']());}}}(a28_0x1751,0x86473));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0x1751(){const _0x2e3eb=['appCode','22398DjxNbz','77XQUoCA','2124249agCTvr','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','sdk-doc','20295072PzpKro','read','2942IXkFCq','string','346UfiJJZ','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','str','8111272nmRVOn','2997010RnZeKU','code','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','trim','4134584LhhixB'];a28_0x1751=function(){return _0x2e3eb;};return a28_0x1751();}const DEFAULT_MARKDOWN=a28_0x18f71f(0xf2);export function formatDatasetSdkMarkdown(_0x12be04){const _0x417d41=a28_0x18f71f,_0x3065fd=typeof _0x12be04===_0x417d41(0xeb)?_0x12be04[_0x417d41(0xe0)]():'';return _0x3065fd||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':'dataset','command':a28_0x18f71f(0xe7),'description':a28_0x18f71f(0xe6),'risk':a28_0x18f71f(0xe9),'flags':[{...CODE_FLAG,'description':a28_0x18f71f(0xed)}],async 'execute'(_0xb7a6f1){const _0x12fbc6=a28_0x18f71f,_0x4763bb=_0xb7a6f1[_0x12fbc6(0xee)](_0x12fbc6(0xf1)),_0x2c220d=await getDatasetSdkUsageDoc(_0x4763bb,_0xb7a6f1[_0x12fbc6(0xe2)]);return{'ok':!![],'data':{'code':_0x4763bb,'appCode':_0xb7a6f1[_0x12fbc6(0xe2)],'markdown':formatDatasetSdkMarkdown(_0x2c220d)}};}};
@@ -1 +1 @@
1
- const a29_0x4be3cd=a29_0x1161;(function(_0x41d5df,_0x59e4ac){const _0x1f94d9=a29_0x1161,_0x1a0f25=_0x41d5df();while(!![]){try{const _0x3f3cdb=-parseInt(_0x1f94d9(0x114))/0x1+-parseInt(_0x1f94d9(0x116))/0x2*(parseInt(_0x1f94d9(0x110))/0x3)+-parseInt(_0x1f94d9(0xf9))/0x4*(parseInt(_0x1f94d9(0xeb))/0x5)+-parseInt(_0x1f94d9(0x11a))/0x6+parseInt(_0x1f94d9(0x118))/0x7*(parseInt(_0x1f94d9(0x102))/0x8)+-parseInt(_0x1f94d9(0xe8))/0x9+-parseInt(_0x1f94d9(0x124))/0xa*(-parseInt(_0x1f94d9(0x100))/0xb);if(_0x3f3cdb===_0x59e4ac)break;else _0x1a0f25['push'](_0x1a0f25['shift']());}catch(_0x3d6fe3){_0x1a0f25['push'](_0x1a0f25['shift']());}}}(a29_0x2a10,0x59e7d));import a29_0x2e7df1 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';function a29_0x2a10(){const _0x47e23d=['\x20\x20Session\x20check:\x20\x20\x20','env','(default:\x20','✓\x20Valid\x20JSON','(missing)','empty','bold','registryPath','verbose','Project','\x20\x20Service\x20Tree','(not\x20found)','(no\x20file)','locale','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(legacy/compat\x20only)','riskLevel','commandCount','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(accessKey)','(set,\x20length=','2774736ZpwNjV','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','ClientAk','10deutCV','accessKey','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','repeat','(none)','version','green','serviceCode','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','source','check','✗\x20Invalid','pageSize','\x20\x20API\x20Endpoints','271148KClSPT','yellow','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','gray','log','⚠\x20Empty','11CCTaPI','\x20\x20auth\x20(effective):\x20','64dqGXbw','message','doctor','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','(unnamed)','read','platform','format','✓\x20Loaded','appCode','services','serviceCount','⚠\x20Empty\x20(treated\x20as\x20{})','\x20doctor','228876UqpMjj','padEnd','arch','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','331151chbNmM','(removed\x20—\x20cookie\x20auth\x20disabled)','8IRrrHy','red','522893YVjtCE','name','688770MVyCCD','missing','\x20\x20─','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','status','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','9656530hqNgIB','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20commands)'];a29_0x2a10=function(){return _0x47e23d;};return a29_0x2a10();}async function execute(_0x511c77){const _0x57dfaa=a29_0x1161,_0x107795=getCliVersion(),_0xadf708=buildConfigFromFlags({});await initGlobalEnvironment(_0xadf708),console['log'](),console['log'](a29_0x2e7df1[_0x57dfaa(0x12d)](CLI_BIN_NAME+_0x57dfaa(0x10f))),console['log'](a29_0x2e7df1[_0x57dfaa(0xfd)]('─'[_0x57dfaa(0xee)](0x32))),console[_0x57dfaa(0xfe)](_0x57dfaa(0x125)+_0x107795),console[_0x57dfaa(0xfe)](_0x57dfaa(0xf3)+process[_0x57dfaa(0xf0)]),console[_0x57dfaa(0xfe)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x57dfaa(0x108)]+'\x20'+process[_0x57dfaa(0x112)]),console[_0x57dfaa(0xfe)](),console[_0x57dfaa(0xfe)](a29_0x2e7df1[_0x57dfaa(0x12d)]('\x20\x20Config\x20Files')),console[_0x57dfaa(0xfe)](a29_0x2e7df1['gray'](_0x57dfaa(0x11c)[_0x57dfaa(0xee)](0x1e)));const _0xc3c7b3=getGlobalConfigPath(),_0x451db0=getProjectConfigPath();console[_0x57dfaa(0xfe)](_0x57dfaa(0xe5)+(_0xc3c7b3||a29_0x2e7df1[_0x57dfaa(0xfd)](_0x57dfaa(0x132)))),console['log'](_0x57dfaa(0x135)+(_0x451db0||a29_0x2e7df1[_0x57dfaa(0xfd)](_0x57dfaa(0x132)))),console[_0x57dfaa(0xfe)](),console[_0x57dfaa(0xfe)](a29_0x2e7df1['bold']('\x20\x20Config\x20JSON')),console[_0x57dfaa(0xfe)](a29_0x2e7df1[_0x57dfaa(0xfd)](_0x57dfaa(0x11c)[_0x57dfaa(0xee)](0x1e)));const _0x3e599f=(_0x5dc184,_0x3badf7)=>{const _0x1c54e8=_0x57dfaa;if(!_0x3badf7){console[_0x1c54e8(0xfe)]('\x20\x20'+_0x5dc184[_0x1c54e8(0x111)](0x11)+'\x20'+a29_0x2e7df1[_0x1c54e8(0xfd)](_0x1c54e8(0x133)));return;}const _0x48d665=inspectCliConfigJsonFile(_0x3badf7);if(_0x48d665[_0x1c54e8(0x11f)]==='ok')console[_0x1c54e8(0xfe)]('\x20\x20'+_0x5dc184[_0x1c54e8(0x111)](0x11)+'\x20'+a29_0x2e7df1[_0x1c54e8(0xf1)](_0x1c54e8(0x12a)));else{if(_0x48d665[_0x1c54e8(0x11f)]===_0x1c54e8(0x12c))console['log']('\x20\x20'+_0x5dc184['padEnd'](0x11)+'\x20'+a29_0x2e7df1['yellow'](_0x1c54e8(0x10e)));else _0x48d665[_0x1c54e8(0x11f)]===_0x1c54e8(0x11b)?console['log']('\x20\x20'+_0x5dc184[_0x1c54e8(0x111)](0x11)+'\x20'+a29_0x2e7df1[_0x1c54e8(0xfd)](_0x1c54e8(0x12b))):(console[_0x1c54e8(0xfe)]('\x20\x20'+_0x5dc184['padEnd'](0x11)+'\x20'+a29_0x2e7df1['red']('✗\x20Invalid\x20JSON')),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20'+a29_0x2e7df1[_0x1c54e8(0x117)](_0x48d665[_0x1c54e8(0x103)])));}};_0x3e599f('Global',_0xc3c7b3),_0x3e599f(_0x57dfaa(0x130),_0x451db0),console[_0x57dfaa(0xfe)](),console[_0x57dfaa(0xfe)](a29_0x2e7df1[_0x57dfaa(0x12d)](_0x57dfaa(0xfc))),console[_0x57dfaa(0xfe)](a29_0x2e7df1['gray'](_0x57dfaa(0x11c)['repeat'](0x1e))),console[_0x57dfaa(0xfe)](_0x57dfaa(0xe9)+(_0xadf708[_0x57dfaa(0x10b)]||a29_0x2e7df1[_0x57dfaa(0x117)]('(not\x20set)'))),console[_0x57dfaa(0xfe)](_0x57dfaa(0x123)+_0xadf708[_0x57dfaa(0x128)]);const _0x2cf1c9=isLegacyCompatConfigKey('locale')?a29_0x2e7df1[_0x57dfaa(0xfd)](_0xadf708[_0x57dfaa(0x134)]+_0x57dfaa(0x136)):_0xadf708[_0x57dfaa(0x134)];console[_0x57dfaa(0xfe)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2cf1c9),console['log'](_0x57dfaa(0x105)+(_0xadf708['defaultApp']||a29_0x2e7df1[_0x57dfaa(0xfd)](_0x57dfaa(0xef)))),console[_0x57dfaa(0xfe)](_0x57dfaa(0x122)+(_0xadf708['currentApp']||a29_0x2e7df1[_0x57dfaa(0xfd)]('(none)'))),console[_0x57dfaa(0xfe)](_0x57dfaa(0x11d)+(_0xadf708[_0x57dfaa(0x109)]||a29_0x2e7df1[_0x57dfaa(0xfd)](_0x57dfaa(0x129)+DEFAULT_CONFIG_VALUES[_0x57dfaa(0x109)]+')'))),console[_0x57dfaa(0xfe)](_0x57dfaa(0x120)+(_0xadf708[_0x57dfaa(0xf7)]??a29_0x2e7df1[_0x57dfaa(0xfd)]('(default)'))),console[_0x57dfaa(0xfe)](_0x57dfaa(0xed)+_0xadf708[_0x57dfaa(0x137)]),console['log']('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xadf708[_0x57dfaa(0x12f)]),console[_0x57dfaa(0xfe)](_0x57dfaa(0x101)+AUTH_MODE[_0x57dfaa(0xea)]),console[_0x57dfaa(0xfe)]('\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'+(_0xadf708[_0x57dfaa(0xec)]?a29_0x2e7df1[_0x57dfaa(0xf1)](_0x57dfaa(0xe7)+_0xadf708[_0x57dfaa(0xec)]['length']+')'):a29_0x2e7df1[_0x57dfaa(0xfd)](_0x57dfaa(0xef)))),console[_0x57dfaa(0xfe)](),console[_0x57dfaa(0xfe)](a29_0x2e7df1[_0x57dfaa(0x12d)](_0x57dfaa(0xf8))),console['log'](a29_0x2e7df1[_0x57dfaa(0xfd)]('\x20\x20─'['repeat'](0x1e))),console['log'](_0x57dfaa(0x113)+getApiDomain()),console[_0x57dfaa(0xfe)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console['log']('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x57dfaa(0xfe)](),console[_0x57dfaa(0xfe)](a29_0x2e7df1['bold'](_0x57dfaa(0x131))),console[_0x57dfaa(0xfe)](a29_0x2e7df1[_0x57dfaa(0xfd)](_0x57dfaa(0x11c)[_0x57dfaa(0xee)](0x1e)));const _0x36b8f6=inspectServiceRegistry();console['log'](_0x57dfaa(0x121)+_0x36b8f6[_0x57dfaa(0x12e)]),console['log'](_0x57dfaa(0xfb)+formatServiceRegistryStatus(_0x36b8f6)),console['log']('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x36b8f6[_0x57dfaa(0x10d)]),console[_0x57dfaa(0xfe)]('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x36b8f6['commandCount']);for(const _0xee497 of _0x36b8f6[_0x57dfaa(0x10c)]){console['log']('\x20\x20'+(_0xee497[_0x57dfaa(0xf2)]+':')[_0x57dfaa(0x111)](0x11)+'\x20'+(_0xee497[_0x57dfaa(0x119)]||a29_0x2e7df1['gray'](_0x57dfaa(0x106)))+'\x20('+_0xee497[_0x57dfaa(0xe4)]+_0x57dfaa(0x126)),console[_0x57dfaa(0xfe)]('\x20\x20'+''[_0x57dfaa(0x111)](0x11)+'\x20Imported\x20from:\x20'+_0xee497[_0x57dfaa(0xf4)]['path']);}return console[_0x57dfaa(0xfe)](),console[_0x57dfaa(0xfe)](a29_0x2e7df1['bold'](_0x57dfaa(0x11e))),console[_0x57dfaa(0xfe)](a29_0x2e7df1[_0x57dfaa(0xfd)]('\x20\x20─'[_0x57dfaa(0xee)](0x1e))),console['log']('\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a29_0x2e7df1['green'](AUTH_MODE[_0x57dfaa(0xea)]+_0x57dfaa(0xe6))),console['log'](_0x57dfaa(0x127)+a29_0x2e7df1[_0x57dfaa(0xfd)](_0x57dfaa(0x115))),console[_0x57dfaa(0xfe)](),{'ok':!![]};}function a29_0x1161(_0x556437,_0x1091f8){_0x556437=_0x556437-0xe4;const _0x2a104f=a29_0x2a10();let _0x116134=_0x2a104f[_0x556437];return _0x116134;}function formatServiceRegistryStatus(_0x44fdd6){const _0x11057b=a29_0x1161;if(_0x44fdd6['status']==='ok')return a29_0x2e7df1[_0x11057b(0xf1)](_0x11057b(0x10a));if(_0x44fdd6[_0x11057b(0x11f)]===_0x11057b(0x11b))return a29_0x2e7df1['gray']('(not\x20found)');if(_0x44fdd6[_0x11057b(0x11f)]==='empty')return a29_0x2e7df1[_0x11057b(0xfa)](_0x11057b(0xff));return a29_0x2e7df1[_0x11057b(0x117)](_0x11057b(0xf6)+(_0x44fdd6[_0x11057b(0x103)]?':\x20'+_0x44fdd6[_0x11057b(0x103)]:''));}export const doctorDefinition={'service':a29_0x4be3cd(0x104),'command':a29_0x4be3cd(0xf5),'description':'Diagnose\x20CLI\x20configuration\x20and\x20environment','risk':a29_0x4be3cd(0x107),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a29_0x49d7ba=a29_0xd9ef;(function(_0x18c294,_0x5bdf83){const _0xeffe6f=a29_0xd9ef,_0x783388=_0x18c294();while(!![]){try{const _0x3aa3c1=parseInt(_0xeffe6f(0x1e0))/0x1*(parseInt(_0xeffe6f(0x1de))/0x2)+-parseInt(_0xeffe6f(0x1ab))/0x3+parseInt(_0xeffe6f(0x1d0))/0x4+parseInt(_0xeffe6f(0x1be))/0x5*(parseInt(_0xeffe6f(0x1a1))/0x6)+parseInt(_0xeffe6f(0x1a3))/0x7+parseInt(_0xeffe6f(0x1ed))/0x8+parseInt(_0xeffe6f(0x1d8))/0x9*(-parseInt(_0xeffe6f(0x1a2))/0xa);if(_0x3aa3c1===_0x5bdf83)break;else _0x783388['push'](_0x783388['shift']());}catch(_0x262299){_0x783388['push'](_0x783388['shift']());}}}(a29_0xd878,0x1ba12));import a29_0xc0af26 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';function a29_0xd878(){const _0x2bf7cb=['doctor','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','Project','\x20\x20Auth','verbose','green','✓\x20Valid\x20JSON','red','\x20\x20─','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','log','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','57165DWflkG','appCode','locale','currentApp','serviceCode','registryPath','✗\x20Invalid','serviceCount','\x20\x20Service\x20Tree','check','padEnd','(none)','(missing)','(set,\x20length=','bold','source','services','path','823072DXLYBw','yellow','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','missing','accessKey','pageSize','riskLevel','length','30762gsdoAc','\x20\x20auth\x20(effective):\x20','platform','(no\x20file)','arch','format','4DwBKUP','\x20(accessKey)','73490LvSYkw','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','✓\x20Loaded','\x20(legacy/compat\x20only)','(not\x20set)','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','\x20Imported\x20from:\x20','⚠\x20Empty','215408rekCjF','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20environment','Global','(default:\x20','message','✗\x20Invalid\x20JSON','ClientAk','commandCount','\x20\x20Merged\x20Config','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','66gRRtTC','900MBevkT','788711WLpaGW','\x20commands)','version','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','repeat','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','(unnamed)','591960ZQLtsl','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','name','(not\x20found)'];a29_0xd878=function(){return _0x2bf7cb;};return a29_0xd878();}import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';async function execute(_0x1bb789){const _0x4a5198=a29_0xd9ef,_0x53b153=getCliVersion(),_0x1f6b2d=buildConfigFromFlags({});await initGlobalEnvironment(_0x1f6b2d),console['log'](),console[_0x4a5198(0x1ba)](a29_0xc0af26['bold'](CLI_BIN_NAME+'\x20doctor')),console[_0x4a5198(0x1ba)](a29_0xc0af26[_0x4a5198(0x1e3)]('─'['repeat'](0x32))),console[_0x4a5198(0x1ba)](_0x4a5198(0x1b9)+_0x53b153),console[_0x4a5198(0x1ba)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x4a5198(0x1a5)]),console[_0x4a5198(0x1ba)](_0x4a5198(0x1e9)+process[_0x4a5198(0x1da)]+'\x20'+process[_0x4a5198(0x1dc)]),console[_0x4a5198(0x1ba)](),console['log'](a29_0xc0af26['bold']('\x20\x20Config\x20Files')),console[_0x4a5198(0x1ba)](a29_0xc0af26[_0x4a5198(0x1e3)](_0x4a5198(0x1b8)[_0x4a5198(0x1a7)](0x1e)));const _0x439694=getGlobalConfigPath(),_0x1d0e3b=getProjectConfigPath();console['log']('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x439694||a29_0xc0af26[_0x4a5198(0x1e3)](_0x4a5198(0x1ae)))),console['log']('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1d0e3b||a29_0xc0af26[_0x4a5198(0x1e3)](_0x4a5198(0x1ae)))),console[_0x4a5198(0x1ba)](),console['log'](a29_0xc0af26['bold']('\x20\x20Config\x20JSON')),console[_0x4a5198(0x1ba)](a29_0xc0af26[_0x4a5198(0x1e3)](_0x4a5198(0x1b8)[_0x4a5198(0x1a7)](0x1e)));const _0x235521=(_0x530d96,_0x56aedd)=>{const _0x9f1950=_0x4a5198;if(!_0x56aedd){console['log']('\x20\x20'+_0x530d96[_0x9f1950(0x1c8)](0x11)+'\x20'+a29_0xc0af26['gray'](_0x9f1950(0x1db)));return;}const _0x59ba01=inspectCliConfigJsonFile(_0x56aedd);if(_0x59ba01[_0x9f1950(0x1e8)]==='ok')console[_0x9f1950(0x1ba)]('\x20\x20'+_0x530d96[_0x9f1950(0x1c8)](0x11)+'\x20'+a29_0xc0af26[_0x9f1950(0x1b5)](_0x9f1950(0x1b6)));else{if(_0x59ba01[_0x9f1950(0x1e8)]==='empty')console[_0x9f1950(0x1ba)]('\x20\x20'+_0x530d96['padEnd'](0x11)+'\x20'+a29_0xc0af26['yellow'](_0x9f1950(0x1b0)));else _0x59ba01[_0x9f1950(0x1e8)]==='missing'?console[_0x9f1950(0x1ba)]('\x20\x20'+_0x530d96[_0x9f1950(0x1c8)](0x11)+'\x20'+a29_0xc0af26['gray'](_0x9f1950(0x1ca))):(console[_0x9f1950(0x1ba)]('\x20\x20'+_0x530d96[_0x9f1950(0x1c8)](0x11)+'\x20'+a29_0xc0af26[_0x9f1950(0x1b7)](_0x9f1950(0x19c))),console['log']('\x20\x20'+''[_0x9f1950(0x1c8)](0x11)+'\x20'+a29_0xc0af26[_0x9f1950(0x1b7)](_0x59ba01[_0x9f1950(0x19b)])));}};_0x235521(_0x4a5198(0x199),_0x439694),_0x235521(_0x4a5198(0x1b2),_0x1d0e3b),console[_0x4a5198(0x1ba)](),console[_0x4a5198(0x1ba)](a29_0xc0af26[_0x4a5198(0x1cc)](_0x4a5198(0x19f))),console[_0x4a5198(0x1ba)](a29_0xc0af26['gray'](_0x4a5198(0x1b8)[_0x4a5198(0x1a7)](0x1e))),console[_0x4a5198(0x1ba)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1f6b2d[_0x4a5198(0x1bf)]||a29_0xc0af26[_0x4a5198(0x1b7)](_0x4a5198(0x1e6)))),console[_0x4a5198(0x1ba)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1f6b2d['env']);const _0x3bb031=isLegacyCompatConfigKey(_0x4a5198(0x1c0))?a29_0xc0af26[_0x4a5198(0x1e3)](_0x1f6b2d[_0x4a5198(0x1c0)]+_0x4a5198(0x1e5)):_0x1f6b2d[_0x4a5198(0x1c0)];console[_0x4a5198(0x1ba)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3bb031),console[_0x4a5198(0x1ba)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x1f6b2d[_0x4a5198(0x1a9)]||a29_0xc0af26[_0x4a5198(0x1e3)](_0x4a5198(0x1c9)))),console[_0x4a5198(0x1ba)](_0x4a5198(0x1a6)+(_0x1f6b2d[_0x4a5198(0x1c1)]||a29_0xc0af26[_0x4a5198(0x1e3)](_0x4a5198(0x1c9)))),console[_0x4a5198(0x1ba)](_0x4a5198(0x1e7)+(_0x1f6b2d[_0x4a5198(0x1dd)]||a29_0xc0af26[_0x4a5198(0x1e3)](_0x4a5198(0x19a)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x4a5198(0x1ba)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1f6b2d[_0x4a5198(0x1d5)]??a29_0xc0af26['gray']('(default)'))),console[_0x4a5198(0x1ba)](_0x4a5198(0x1b1)+_0x1f6b2d[_0x4a5198(0x1d6)]),console[_0x4a5198(0x1ba)](_0x4a5198(0x1a8)+_0x1f6b2d[_0x4a5198(0x1b4)]),console[_0x4a5198(0x1ba)](_0x4a5198(0x1d9)+AUTH_MODE[_0x4a5198(0x19d)]),console[_0x4a5198(0x1ba)](_0x4a5198(0x1d2)+(_0x1f6b2d[_0x4a5198(0x1d4)]?a29_0xc0af26[_0x4a5198(0x1b5)](_0x4a5198(0x1cb)+_0x1f6b2d['accessKey'][_0x4a5198(0x1d7)]+')'):a29_0xc0af26['gray'](_0x4a5198(0x1c9)))),console[_0x4a5198(0x1ba)](),console[_0x4a5198(0x1ba)](a29_0xc0af26[_0x4a5198(0x1cc)](_0x4a5198(0x1ea))),console[_0x4a5198(0x1ba)](a29_0xc0af26[_0x4a5198(0x1e3)](_0x4a5198(0x1b8)[_0x4a5198(0x1a7)](0x1e))),console[_0x4a5198(0x1ba)](_0x4a5198(0x1ac)+getApiDomain()),console[_0x4a5198(0x1ba)](_0x4a5198(0x1e1)+getUserDomain()),console[_0x4a5198(0x1ba)](_0x4a5198(0x1bc)+getRuntimeDomain()),console[_0x4a5198(0x1ba)](),console[_0x4a5198(0x1ba)](a29_0xc0af26[_0x4a5198(0x1cc)](_0x4a5198(0x1c6))),console[_0x4a5198(0x1ba)](a29_0xc0af26[_0x4a5198(0x1e3)](_0x4a5198(0x1b8)[_0x4a5198(0x1a7)](0x1e)));const _0x273a86=inspectServiceRegistry();console[_0x4a5198(0x1ba)]('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x273a86[_0x4a5198(0x1c3)]),console[_0x4a5198(0x1ba)](_0x4a5198(0x1e2)+formatServiceRegistryStatus(_0x273a86)),console[_0x4a5198(0x1ba)](_0x4a5198(0x1a0)+_0x273a86[_0x4a5198(0x1c5)]),console['log'](_0x4a5198(0x197)+_0x273a86[_0x4a5198(0x19e)]);for(const _0x3bef90 of _0x273a86[_0x4a5198(0x1ce)]){console['log']('\x20\x20'+(_0x3bef90[_0x4a5198(0x1c2)]+':')[_0x4a5198(0x1c8)](0x11)+'\x20'+(_0x3bef90[_0x4a5198(0x1ad)]||a29_0xc0af26[_0x4a5198(0x1e3)](_0x4a5198(0x1aa)))+'\x20('+_0x3bef90[_0x4a5198(0x19e)]+_0x4a5198(0x1a4)),console[_0x4a5198(0x1ba)]('\x20\x20'+''[_0x4a5198(0x1c8)](0x11)+_0x4a5198(0x1eb)+_0x3bef90[_0x4a5198(0x1cd)][_0x4a5198(0x1cf)]);}return console[_0x4a5198(0x1ba)](),console[_0x4a5198(0x1ba)](a29_0xc0af26[_0x4a5198(0x1cc)](_0x4a5198(0x1b3))),console[_0x4a5198(0x1ba)](a29_0xc0af26[_0x4a5198(0x1e3)]('\x20\x20─'['repeat'](0x1e))),console['log'](_0x4a5198(0x1bd)+a29_0xc0af26['green'](AUTH_MODE[_0x4a5198(0x19d)]+_0x4a5198(0x1df))),console[_0x4a5198(0x1ba)]('\x20\x20Session\x20check:\x20\x20\x20'+a29_0xc0af26[_0x4a5198(0x1e3)](_0x4a5198(0x1bb))),console[_0x4a5198(0x1ba)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x44a251){const _0x568277=a29_0xd9ef;if(_0x44a251[_0x568277(0x1e8)]==='ok')return a29_0xc0af26[_0x568277(0x1b5)](_0x568277(0x1e4));if(_0x44a251[_0x568277(0x1e8)]===_0x568277(0x1d3))return a29_0xc0af26[_0x568277(0x1e3)]('(not\x20found)');if(_0x44a251[_0x568277(0x1e8)]==='empty')return a29_0xc0af26[_0x568277(0x1d1)](_0x568277(0x1ec));return a29_0xc0af26['red'](_0x568277(0x1c4)+(_0x44a251[_0x568277(0x19b)]?':\x20'+_0x44a251[_0x568277(0x19b)]:''));}function a29_0xd9ef(_0x2c96e1,_0x308516){_0x2c96e1=_0x2c96e1-0x197;const _0xd87821=a29_0xd878();let _0xd9efcc=_0xd87821[_0x2c96e1];return _0xd9efcc;}export const doctorDefinition={'service':a29_0x49d7ba(0x1af),'command':a29_0x49d7ba(0x1c7),'description':a29_0x49d7ba(0x198),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a30_0x5f2252=a30_0x3991;function a30_0x3991(_0xd06284,_0x5634f3){_0xd06284=_0xd06284-0x125;const _0x3008a5=a30_0x3008();let _0x399160=_0x3008a5[_0xd06284];return _0x399160;}(function(_0x5a55a8,_0x3affc){const _0x22e19c=a30_0x3991,_0x22ae0b=_0x5a55a8();while(!![]){try{const _0x27c72a=parseInt(_0x22e19c(0x13e))/0x1*(parseInt(_0x22e19c(0x13c))/0x2)+parseInt(_0x22e19c(0x13a))/0x3*(-parseInt(_0x22e19c(0x131))/0x4)+parseInt(_0x22e19c(0x130))/0x5+-parseInt(_0x22e19c(0x12e))/0x6*(parseInt(_0x22e19c(0x149))/0x7)+-parseInt(_0x22e19c(0x132))/0x8*(parseInt(_0x22e19c(0x12b))/0x9)+parseInt(_0x22e19c(0x139))/0xa*(-parseInt(_0x22e19c(0x135))/0xb)+parseInt(_0x22e19c(0x128))/0xc;if(_0x27c72a===_0x3affc)break;else _0x22ae0b['push'](_0x22ae0b['shift']());}catch(_0x589ee4){_0x22ae0b['push'](_0x22ae0b['shift']());}}}(a30_0x3008,0xad73f));function a30_0x3008(){const _0x3c78e8=['36944NmTPSy','str','71NYjMcb','write','POST','bool','filePath','path','\x20to\x20runtime\x20app\x20','string','trim','validation','Uploaded\x20file:\x20','553IOoSXo','boolean','body','File','27191736MbXYfy','filepath','Query\x20a\x20temporary\x20URL\x20for\x20an\x20uploaded\x20runtime\x20file','8943327tAuDBj','build','upload','90042sRNPPC','query-url','2569960xucsYh','75892SUaJwR','8imyEhF','/client/uploadFile','appCode','71698OEZdHm','filePath\x20is\x20required.','description','Return\x20a\x20download\x20URL\x20instead\x20of\x20a\x20preview\x20URL\x20when\x20supported','1640qlVTSw','21koCeny','file'];a30_0x3008=function(){return _0x3c78e8;};return a30_0x3008();}import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a30_0x5f2252(0x13b),'type':a30_0x5f2252(0x145),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a30_0x5f2252(0x129),'type':a30_0x5f2252(0x145),'required':!![],'description':'Runtime\x20filePath\x20returned\x20by\x20file\x20upload'},DOWNLOAD_FLAG={'name':'download','type':a30_0x5f2252(0x125),'description':a30_0x5f2252(0x138)};function requireFilePath(_0x4c1fcd){const _0x10b60b=a30_0x5f2252,_0xd925f2=_0x4c1fcd[_0x10b60b(0x146)]();if(!_0xd925f2)throw CliErrors[_0x10b60b(0x147)](_0x10b60b(0x136));return _0xd925f2;}const fileUpload={'service':a30_0x5f2252(0x13b),'command':a30_0x5f2252(0x12d),'description':'Upload\x20a\x20local\x20file\x20to\x20the\x20current\x20runtime\x20app','risk':a30_0x5f2252(0x13f),'flags':[FILE_FLAG],async 'dryRun'(_0x128ee7){const _0x167abe=a30_0x5f2252,_0x197ee4=requireRuntimeUploadFile(_0x128ee7[_0x167abe(0x13d)]('file'),'File');return dryRun(_0x167abe(0x140),_0x167abe(0x133))[_0x167abe(0x126)]({'appCode':_0x128ee7[_0x167abe(0x134)],'multipart':{'file':_0x197ee4}})[_0x167abe(0x137)]('Preview:\x20upload\x20'+_0x197ee4[_0x167abe(0x143)]+_0x167abe(0x144)+_0x128ee7[_0x167abe(0x134)])[_0x167abe(0x12c)]();},async 'execute'(_0x16b4e6){const _0xfd1005=a30_0x5f2252,_0xa2896f=requireRuntimeUploadFile(_0x16b4e6['str'](_0xfd1005(0x13b)),_0xfd1005(0x127)),_0x5ad0e0=await uploadRuntimeFile(_0x16b4e6[_0xfd1005(0x134)],_0xa2896f['path']);return{'ok':!![],'data':_0x5ad0e0,'message':_0x5ad0e0[_0xfd1005(0x142)]?_0xfd1005(0x148)+_0x5ad0e0[_0xfd1005(0x142)]:'Uploaded\x20file.'};}},fileQueryUrl={'service':'file','command':a30_0x5f2252(0x12f),'description':a30_0x5f2252(0x12a),'risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG],async 'execute'(_0x15b622){const _0x266ae4=a30_0x5f2252,_0x5c3c5f=requireFilePath(_0x15b622[_0x266ae4(0x13d)]('filepath')),_0x70fe03=await queryRuntimeFileUrl(_0x5c3c5f,{'download':_0x15b622[_0x266ae4(0x141)]('download')});return{'ok':!![],'data':_0x70fe03};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a30_0x32fca7=a30_0x2eb6;(function(_0x29c144,_0xe6f8a1){const _0x351531=a30_0x2eb6,_0x557568=_0x29c144();while(!![]){try{const _0x36f179=parseInt(_0x351531(0x1d0))/0x1*(-parseInt(_0x351531(0x1dc))/0x2)+parseInt(_0x351531(0x1ce))/0x3*(-parseInt(_0x351531(0x1cd))/0x4)+-parseInt(_0x351531(0x1cb))/0x5*(-parseInt(_0x351531(0x1f2))/0x6)+-parseInt(_0x351531(0x1dd))/0x7*(parseInt(_0x351531(0x1ef))/0x8)+parseInt(_0x351531(0x1cc))/0x9*(-parseInt(_0x351531(0x1df))/0xa)+parseInt(_0x351531(0x1d2))/0xb*(-parseInt(_0x351531(0x1f3))/0xc)+-parseInt(_0x351531(0x1ec))/0xd*(-parseInt(_0x351531(0x1f6))/0xe);if(_0x36f179===_0xe6f8a1)break;else _0x557568['push'](_0x557568['shift']());}catch(_0x1758e2){_0x557568['push'](_0x557568['shift']());}}}(a30_0x12b6,0xe00ba));function a30_0x12b6(){const _0x2d03c6=['File','Runtime\x20filePath\x20returned\x20by\x20file\x20upload','filePath','str','trim','55133IJRMOV','appCode','filePath\x20is\x20required.','8cMFLqP','read','build','651342FQQMNi','8964xtXwPX','Upload\x20a\x20local\x20file\x20to\x20the\x20current\x20runtime\x20app','description','13454zjRfrJ','validation','35gBqwEq','543069ohOdKf','19220WuzxwP','3nzpqyE','path','1109fLRBZP','Return\x20a\x20download\x20URL\x20instead\x20of\x20a\x20preview\x20URL\x20when\x20supported','2805WoFxZz','boolean','string','Preview:\x20upload\x20','Uploaded\x20file:\x20','write','Uploaded\x20file.','bool','\x20to\x20runtime\x20app\x20','query-url','840IKdbVD','10547957JrZvRU','/client/uploadFile','290ITXFQB','file','Query\x20a\x20temporary\x20URL\x20for\x20an\x20uploaded\x20runtime\x20file','upload','body','POST','download','Path\x20to\x20the\x20local\x20file\x20to\x20upload'];a30_0x12b6=function(){return _0x2d03c6;};return a30_0x12b6();}import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':'file','type':'string','required':!![],'description':a30_0x32fca7(0x1e6)},FILEPATH_FLAG={'name':'filepath','type':a30_0x32fca7(0x1d4),'required':!![],'description':a30_0x32fca7(0x1e8)},DOWNLOAD_FLAG={'name':a30_0x32fca7(0x1e5),'type':a30_0x32fca7(0x1d3),'description':a30_0x32fca7(0x1d1)};function a30_0x2eb6(_0x58b262,_0x1a23ac){_0x58b262=_0x58b262-0x1cb;const _0x12b61f=a30_0x12b6();let _0x2eb681=_0x12b61f[_0x58b262];return _0x2eb681;}function requireFilePath(_0x114eee){const _0x47b84f=a30_0x32fca7,_0xfdc80c=_0x114eee[_0x47b84f(0x1eb)]();if(!_0xfdc80c)throw CliErrors[_0x47b84f(0x1f7)](_0x47b84f(0x1ee));return _0xfdc80c;}const fileUpload={'service':'file','command':a30_0x32fca7(0x1e2),'description':a30_0x32fca7(0x1f4),'risk':a30_0x32fca7(0x1d7),'flags':[FILE_FLAG],async 'dryRun'(_0x35c831){const _0xdad04=a30_0x32fca7,_0x195535=requireRuntimeUploadFile(_0x35c831[_0xdad04(0x1ea)]('file'),_0xdad04(0x1e7));return dryRun(_0xdad04(0x1e4),_0xdad04(0x1de))[_0xdad04(0x1e3)]({'appCode':_0x35c831[_0xdad04(0x1ed)],'multipart':{'file':_0x195535}})[_0xdad04(0x1f5)](_0xdad04(0x1d5)+_0x195535[_0xdad04(0x1cf)]+_0xdad04(0x1da)+_0x35c831[_0xdad04(0x1ed)])[_0xdad04(0x1f1)]();},async 'execute'(_0x156cb8){const _0x3382d0=a30_0x32fca7,_0x4479f5=requireRuntimeUploadFile(_0x156cb8[_0x3382d0(0x1ea)](_0x3382d0(0x1e0)),'File'),_0x4d8db2=await uploadRuntimeFile(_0x156cb8['appCode'],_0x4479f5['path']);return{'ok':!![],'data':_0x4d8db2,'message':_0x4d8db2['filePath']?_0x3382d0(0x1d6)+_0x4d8db2[_0x3382d0(0x1e9)]:_0x3382d0(0x1d8)};}},fileQueryUrl={'service':'file','command':a30_0x32fca7(0x1db),'description':a30_0x32fca7(0x1e1),'risk':a30_0x32fca7(0x1f0),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG],async 'execute'(_0x56ec2b){const _0x101be3=a30_0x32fca7,_0x3d3f29=requireFilePath(_0x56ec2b[_0x101be3(0x1ea)]('filepath')),_0xeb4d0b=await queryRuntimeFileUrl(_0x3d3f29,{'download':_0x56ec2b[_0x101be3(0x1d9)]('download')});return{'ok':!![],'data':_0xeb4d0b};}};export const fileDefinitions=[fileUpload,fileQueryUrl];