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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 a14_0x4aea20=a14_0x30ed;function a14_0x30ed(_0x2cf285,_0x528710){_0x2cf285=_0x2cf285-0x9b;const _0x2c06bd=a14_0x2c06();let _0x30ed20=_0x2c06bd[_0x2cf285];return _0x30ed20;}function a14_0x2c06(){const _0x3a95e7=['185839KazznR','num','646128lxUqMh','scriptType','1185696pafFQu','read','496092fgsHbM','appCode','description','482722SLeRKd','468912dbZYHA','functionName','30bWCCuN','41814faQQmf'];a14_0x2c06=function(){return _0x3a95e7;};return a14_0x2c06();}(function(_0x3eec8c,_0x3491fb){const _0x3e42d6=a14_0x30ed,_0x1d2960=_0x3eec8c();while(!![]){try{const _0x3b9a28=-parseInt(_0x3e42d6(0xa5))/0x1+parseInt(_0x3e42d6(0xa0))/0x2+-parseInt(_0x3e42d6(0xa1))/0x3+parseInt(_0x3e42d6(0x9d))/0x4+-parseInt(_0x3e42d6(0xa3))/0x5*(-parseInt(_0x3e42d6(0xa4))/0x6)+-parseInt(_0x3e42d6(0xa7))/0x7+parseInt(_0x3e42d6(0x9b))/0x8;if(_0x3b9a28===_0x3491fb)break;else _0x1d2960['push'](_0x1d2960['shift']());}catch(_0x144857){_0x1d2960['push'](_0x1d2960['shift']());}}}(a14_0x2c06,0x1d883));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':'bff','command':'detail','description':'Get\x20BFF\x20script\x20details\x20by\x20ID','risk':a14_0x4aea20(0x9c),'flags':[{...ID_FLAG,'description':'Script\x20ID'},VERBOSE_FLAG],async 'execute'(_0xffc5cd){const _0x293149=a14_0x4aea20,_0x1a87b4=await getBffScriptInfo(_0xffc5cd[_0x293149(0xa6)]('id')),_0xa4e611=_0xffc5cd['bool']('verbose');if(_0xa4e611)return{'ok':!![],'data':_0x1a87b4};return{'ok':!![],'data':{'id':_0x1a87b4['id'],'appCode':_0x1a87b4[_0x293149(0x9e)],'functionName':_0x1a87b4[_0x293149(0xa2)]??'','scriptType':_0x1a87b4[_0x293149(0xa8)],'description':_0x1a87b4[_0x293149(0x9f)]||'(none)','createdTime':_0x1a87b4['createdTime']??'','updatedTime':_0x1a87b4['updatedTime']??''}};}};
1
+ const a14_0x57292c=a14_0x1bc6;(function(_0x3d1db0,_0x5d41c7){const _0x2239fe=a14_0x1bc6,_0x492f54=_0x3d1db0();while(!![]){try{const _0x45f7a5=-parseInt(_0x2239fe(0x14b))/0x1+parseInt(_0x2239fe(0x158))/0x2*(-parseInt(_0x2239fe(0x146))/0x3)+-parseInt(_0x2239fe(0x145))/0x4*(parseInt(_0x2239fe(0x156))/0x5)+parseInt(_0x2239fe(0x14d))/0x6+parseInt(_0x2239fe(0x143))/0x7*(parseInt(_0x2239fe(0x144))/0x8)+-parseInt(_0x2239fe(0x147))/0x9*(-parseInt(_0x2239fe(0x149))/0xa)+-parseInt(_0x2239fe(0x14e))/0xb*(-parseInt(_0x2239fe(0x157))/0xc);if(_0x45f7a5===_0x5d41c7)break;else _0x492f54['push'](_0x492f54['shift']());}catch(_0xc2fd49){_0x492f54['push'](_0x492f54['shift']());}}}(a14_0x2c96,0x22584));function a14_0x1bc6(_0x171991,_0xb2808a){_0x171991=_0x171991-0x143;const _0x2c96dd=a14_0x2c96();let _0x1bc6fd=_0x2c96dd[_0x171991];return _0x1bc6fd;}function a14_0x2c96(){const _0x5062d0=['10FvWuIo','Script\x20ID','265169jYTqaL','functionName','828450rukfcN','44JSdPBY','scriptType','bff','read','Get\x20BFF\x20script\x20details\x20by\x20ID','(none)','updatedTime','num','865EItqLR','1072788QlIqVY','4VugQLS','644YZjiZT','18152KOqOmQ','5836ExEoYW','113961UNDGdn','268263srUcfX','detail'];a14_0x2c96=function(){return _0x5062d0;};return a14_0x2c96();}import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a14_0x57292c(0x150),'command':a14_0x57292c(0x148),'description':a14_0x57292c(0x152),'risk':a14_0x57292c(0x151),'flags':[{...ID_FLAG,'description':a14_0x57292c(0x14a)},VERBOSE_FLAG],async 'execute'(_0x1b3956){const _0x56231c=a14_0x57292c,_0x31e651=await getBffScriptInfo(_0x1b3956[_0x56231c(0x155)]('id')),_0xf6af2c=_0x1b3956['bool']('verbose');if(_0xf6af2c)return{'ok':!![],'data':_0x31e651};return{'ok':!![],'data':{'id':_0x31e651['id'],'appCode':_0x31e651['appCode'],'functionName':_0x31e651[_0x56231c(0x14c)]??'','scriptType':_0x31e651[_0x56231c(0x14f)],'description':_0x31e651['description']||_0x56231c(0x153),'createdTime':_0x31e651['createdTime']??'','updatedTime':_0x31e651[_0x56231c(0x154)]??''}};}};
@@ -1 +1 @@
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
+ const a15_0x58628b=a15_0x3986;(function(_0x41d74f,_0x2073ca){const _0x4e467a=a15_0x3986,_0x3e1f95=_0x41d74f();while(!![]){try{const _0x49ee3d=-parseInt(_0x4e467a(0x106))/0x1+parseInt(_0x4e467a(0x10c))/0x2+parseInt(_0x4e467a(0x10b))/0x3+-parseInt(_0x4e467a(0xfe))/0x4*(-parseInt(_0x4e467a(0x107))/0x5)+parseInt(_0x4e467a(0x102))/0x6+-parseInt(_0x4e467a(0x104))/0x7*(parseInt(_0x4e467a(0x103))/0x8)+-parseInt(_0x4e467a(0xfd))/0x9*(parseInt(_0x4e467a(0x10d))/0xa);if(_0x49ee3d===_0x2073ca)break;else _0x3e1f95['push'](_0x3e1f95['shift']());}catch(_0x3722e5){_0x3e1f95['push'](_0x3e1f95['shift']());}}}(a15_0x5da9,0x93936));function a15_0x5da9(){const _0x4f79f5=['56940oxyYbF','params','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','bff','3491748lBVedQ','1752048QgGDLC','162310CahxUk','read','name','now','576oKRMRm','232YRrYFh','BFF\x20function\x20name\x20to\x20execute','exec','BFF\x20executed\x20in\x20','5927388PBwdOA','4822936HiBAgD','14AenkIL','str','839354dXhhij'];a15_0x5da9=function(){return _0x4f79f5;};return a15_0x5da9();}import{executeSdkBff}from'../../core/sdk-client.js';function a15_0x3986(_0x1988a2,_0x67618){_0x1988a2=_0x1988a2-0xfc;const _0x5da92d=a15_0x5da9();let _0x398692=_0x5da92d[_0x1988a2];return _0x398692;}import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a15_0x58628b(0x10a),'command':a15_0x58628b(0x100),'description':a15_0x58628b(0x109),'risk':a15_0x58628b(0x10e),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x58628b(0xff)},PARAMS_FLAG],async 'execute'(_0x11ebfc){const _0x2d3e47=a15_0x58628b,_0x699c3a=parseJsonParams(_0x11ebfc[_0x2d3e47(0x105)](_0x2d3e47(0x108))),_0x2994f3=Date[_0x2d3e47(0xfc)](),_0x3854c7=await executeSdkBff(_0x11ebfc[_0x2d3e47(0x105)](_0x2d3e47(0x10f)),_0x699c3a),_0x565c43=Date[_0x2d3e47(0xfc)]()-_0x2994f3;return{'ok':!![],'data':{'result':_0x3854c7,'elapsed':_0x565c43},'message':_0x2d3e47(0x101)+_0x565c43+'ms'};}};
@@ -1 +1 @@
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
+ (function(_0x32979a,_0x322ad9){const _0x301abc=a16_0x57a8,_0x3dce46=_0x32979a();while(!![]){try{const _0x4072ff=parseInt(_0x301abc(0xe3))/0x1+-parseInt(_0x301abc(0xe2))/0x2*(-parseInt(_0x301abc(0xe0))/0x3)+parseInt(_0x301abc(0xdb))/0x4*(parseInt(_0x301abc(0xe1))/0x5)+parseInt(_0x301abc(0xe4))/0x6*(-parseInt(_0x301abc(0xe5))/0x7)+parseInt(_0x301abc(0xdf))/0x8+parseInt(_0x301abc(0xdd))/0x9*(parseInt(_0x301abc(0xda))/0xa)+parseInt(_0x301abc(0xde))/0xb*(-parseInt(_0x301abc(0xdc))/0xc);if(_0x4072ff===_0x322ad9)break;else _0x3dce46['push'](_0x3dce46['shift']());}catch(_0x2eb2ca){_0x3dce46['push'](_0x3dce46['shift']());}}}(a16_0x31cc,0x89ed4));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a16_0x31cc(){const _0x56f162=['6712904mLeHmD','21WQkeeW','1813205pdxJQD','148454BZbeiJ','1124360WXwBia','5743068oceMEH','7dnsoJu','389170FGRXrv','8tfQqhz','99852hxLAFH','18EtdOcL','2332efXPIG'];a16_0x31cc=function(){return _0x56f162;};return a16_0x31cc();}function a16_0x57a8(_0x3702c5,_0x5cc81e){_0x3702c5=_0x3702c5-0xda;const _0x31cc25=a16_0x31cc();let _0x57a863=_0x31cc25[_0x3702c5];return _0x57a863;}export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
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
+ const a17_0x242401=a17_0x2b87;(function(_0x358692,_0x138d92){const _0x2201f1=a17_0x2b87,_0x313c56=_0x358692();while(!![]){try{const _0x40187b=-parseInt(_0x2201f1(0xb9))/0x1+parseInt(_0x2201f1(0xb2))/0x2+parseInt(_0x2201f1(0xaa))/0x3*(parseInt(_0x2201f1(0xa8))/0x4)+-parseInt(_0x2201f1(0xa3))/0x5+parseInt(_0x2201f1(0x9d))/0x6*(-parseInt(_0x2201f1(0xb1))/0x7)+parseInt(_0x2201f1(0xad))/0x8+parseInt(_0x2201f1(0xaf))/0x9;if(_0x40187b===_0x138d92)break;else _0x313c56['push'](_0x313c56['shift']());}catch(_0x266723){_0x313c56['push'](_0x313c56['shift']());}}}(a17_0x564d,0x90d85));function a17_0x2b87(_0x4a29f5,_0xa66177){_0x4a29f5=_0x4a29f5-0x9d;const _0x564d4b=a17_0x564d();let _0x2b87c6=_0x564d4b[_0x4a29f5];return _0x2b87c6;}function a17_0x564d(){const _0x2756e9=['install','apiError','8983104lYpzpp','../../skills/npx-skills-add.js','12978990nHITUe','log','1611799ihhtLn','955680wujzJr','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','cli-skill','skipped','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','CLI\x20Built-in\x20Skill\x20installed','952799vEHBFV','24bpPfvA','Skipped\x20npx\x20(','pipe','unknown','setLogPath','cli-skill-install','3631960AKotFs','info','npx\x20skills\x20add\x20failed:\x20','inherit','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','4eIPkIe','cwd','451998WgbLYy'];a17_0x564d=function(){return _0x2756e9;};return a17_0x564d();}import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a17_0x242401(0xb4),'command':a17_0x242401(0xab),'description':'Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3ba986){const _0x5b3b15=a17_0x242401;logger[_0x5b3b15(0xa1)](process[_0x5b3b15(0xa9)]()),logger[_0x5b3b15(0xa4)](_0x5b3b15(0xa2),_0x5b3b15(0xa7));const {LOVRABET_SKILL_SOURCE:_0xd8c586,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x1f05c8,runNpxSkillsAddGlobal:_0x1f34db}=await import(_0x5b3b15(0xae)),_0x34730c=_0x3ba986['nonInteractive']?_0x5b3b15(0x9f):_0x5b3b15(0xa6);console[_0x5b3b15(0xb0)](_0x5b3b15(0xb3)+_0xd8c586+'\x20-g\x20-y)...');const _0x323390=_0x1f34db(process['cwd'](),_0xd8c586,{'stdio':_0x34730c});if(_0x323390[_0x5b3b15(0xb5)])console[_0x5b3b15(0xb0)](_0x5b3b15(0x9e)+_0x1f05c8+_0x5b3b15(0xb6));else{if(_0x323390['ok'])console[_0x5b3b15(0xb0)](_0x5b3b15(0xb8));else throw CliErrors[_0x5b3b15(0xac)](_0x5b3b15(0xa5)+(_0x323390['error']||_0x5b3b15(0xa0)),_0x5b3b15(0xb7)+_0xd8c586+'\x20-g\x20-y');}return{'ok':!![]};}}];
@@ -1 +1 @@
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
+ function a18_0x3310(){const _0x193a66=['newConfigFileName','\x20(global)','21284350uzOyjy','project-default','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','732rsyqUh','Use\x20only\x20one\x20config\x20scope\x20flag.','4182528LqNacW','validation','5726525JylFjQ','3109geBdBr','1461051ClaLMT','5260362RrrzRq','182xTJvvq','inProject','Add\x20--global\x20to\x20write\x20to\x20~/','\x20init`\x20first.','global','8hpkaSF','project','\x20found).','6668wlnMCj','Not\x20inside\x20a\x20project\x20(no\x20'];a18_0x3310=function(){return _0x193a66;};return a18_0x3310();}(function(_0x5e62bd,_0x3f07fd){const _0xec6d83=a18_0x1539,_0x39fc3b=_0x5e62bd();while(!![]){try{const _0x5df525=-parseInt(_0xec6d83(0xd5))/0x1*(parseInt(_0xec6d83(0xd8))/0x2)+-parseInt(_0xec6d83(0xd0))/0x3*(-parseInt(_0xec6d83(0xc9))/0x4)+-parseInt(_0xec6d83(0xd4))/0x5+-parseInt(_0xec6d83(0xd7))/0x6+parseInt(_0xec6d83(0xd2))/0x7+parseInt(_0xec6d83(0xc6))/0x8*(-parseInt(_0xec6d83(0xd6))/0x9)+parseInt(_0xec6d83(0xcd))/0xa;if(_0x5df525===_0x3f07fd)break;else _0x39fc3b['push'](_0x39fc3b['shift']());}catch(_0x175994){_0x39fc3b['push'](_0x39fc3b['shift']());}}}(a18_0x3310,0xa2735));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';function a18_0x1539(_0x29a22e,_0x76fa15){_0x29a22e=_0x29a22e-0xc6;const _0x3310a1=a18_0x3310();let _0x1539d5=_0x3310a1[_0x29a22e];return _0x1539d5;}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(_0xaecdbb){const _0x86e5d9=a18_0x1539,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0xbf9728}=_0xaecdbb;if(explicitGlobal&&explicitProject)throw CliErrors[_0x86e5d9(0xd3)](_0x86e5d9(0xcf),_0x86e5d9(0xd1));if(explicitGlobal)return'global';if(explicitProject)return'project';switch(_0xbf9728){case'global-default':return _0x86e5d9(0xdc);case _0x86e5d9(0xce):return _0xaecdbb[_0x86e5d9(0xd9)]??isInProject()?'project':_0x86e5d9(0xdc);case'project-or-global-explicit':if(!(_0xaecdbb[_0x86e5d9(0xd9)]??isInProject()))throw CliErrors['validation'](_0x86e5d9(0xca)+PRODUCT_CONFIG[_0x86e5d9(0xcb)]+_0x86e5d9(0xc8),_0x86e5d9(0xda)+PRODUCT_CONFIG[_0x86e5d9(0xcb)]+',\x20or\x20run\x20`'+CLI_BIN_NAME+_0x86e5d9(0xdb));return _0x86e5d9(0xc7);}}export function toScopeFlags(_0x3ba6ea){const _0x455c90=a18_0x1539;return{'global':_0x3ba6ea===_0x455c90(0xdc)};}export function formatScopeLabel(_0x1236dc){const _0x494295=a18_0x1539;return _0x1236dc===_0x494295(0xdc)?_0x494295(0xcc):'';}
@@ -1 +1 @@
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
+ (function(_0x12c094,_0x19f60a){const _0xeb1bfb=a19_0x41aa,_0x97a83d=_0x12c094();while(!![]){try{const _0x183d09=-parseInt(_0xeb1bfb(0x133))/0x1*(parseInt(_0xeb1bfb(0x131))/0x2)+-parseInt(_0xeb1bfb(0x149))/0x3*(parseInt(_0xeb1bfb(0x141))/0x4)+-parseInt(_0xeb1bfb(0x13b))/0x5*(parseInt(_0xeb1bfb(0x142))/0x6)+-parseInt(_0xeb1bfb(0x132))/0x7*(parseInt(_0xeb1bfb(0x145))/0x8)+parseInt(_0xeb1bfb(0x146))/0x9+-parseInt(_0xeb1bfb(0x13d))/0xa*(parseInt(_0xeb1bfb(0x13f))/0xb)+parseInt(_0xeb1bfb(0x147))/0xc;if(_0x183d09===_0x19f60a)break;else _0x97a83d['push'](_0x97a83d['shift']());}catch(_0x5e47bd){_0x97a83d['push'](_0x97a83d['shift']());}}}(a19_0x2e23,0x76ec0));import{CliErrors}from'../../errors.js';function isSet(_0x4c8add,_0x3def10){const _0x55ab46=_0x4c8add['flag'](_0x3def10);return _0x55ab46!==undefined&&_0x55ab46!==''&&_0x55ab46!==![]&&_0x55ab46!==0x0;}function fmtNames(_0x1975ef){const _0x30bb4c=a19_0x41aa;return _0x1975ef[_0x30bb4c(0x134)](_0x403ac5=>'--'+_0x403ac5)['join'](',\x20');}function a19_0x2e23(){const _0x26f76f=['length','Use\x20only\x20one\x20of:\x20','At\x20least\x20one\x20of\x20','5RNlTbN','\x20is\x20required\x20for\x20`','24690qnTyzX','Exactly\x20one\x20of\x20','1221ndgpPM','Remove\x20all\x20but\x20one.','84ycVrSt','1442598rnwDTF',',\x20got\x20\x22','\x20are\x20mutually\x20exclusive\x20for\x20`','216mUVTSR','1034505LHrwCU','31363716IhaBrM','validation','46497jTZmqo','Invalid\x20--',':\x20expected\x20','some','600XAGEqu','243733dhuUmn','1538WguvrL','map','Provide\x20one\x20of:\x20','filter','Only\x20one\x20of\x20'];a19_0x2e23=function(){return _0x26f76f;};return a19_0x2e23();}function a19_0x41aa(_0x34de0f,_0x33f8f6){_0x34de0f=_0x34de0f-0x12e;const _0x2e2333=a19_0x2e23();let _0x41aaba=_0x2e2333[_0x34de0f];return _0x41aaba;}export function requireOneOf(_0x5ce221,_0x439aaf,_0x27d71f){const _0x37ce7f=a19_0x41aa,_0x352a78=_0x439aaf[_0x37ce7f(0x136)](_0x1d8c99=>isSet(_0x5ce221,_0x1d8c99));if(_0x352a78[_0x37ce7f(0x138)]!==0x1)throw CliErrors['validation'](_0x352a78[_0x37ce7f(0x138)]===0x0?_0x37ce7f(0x13e)+fmtNames(_0x439aaf)+_0x37ce7f(0x13c)+_0x27d71f+'`.':_0x37ce7f(0x137)+fmtNames(_0x439aaf)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x352a78)+'.',_0x352a78[_0x37ce7f(0x138)]===0x0?_0x37ce7f(0x135)+fmtNames(_0x439aaf):_0x37ce7f(0x140));}export function requireAnyOf(_0x4657ef,_0xa31523,_0x3ef6d9){const _0x336540=a19_0x41aa;if(!_0xa31523[_0x336540(0x130)](_0x1f9f3e=>isSet(_0x4657ef,_0x1f9f3e)))throw CliErrors[_0x336540(0x148)](_0x336540(0x13a)+fmtNames(_0xa31523)+_0x336540(0x13c)+_0x3ef6d9+'`.','Provide\x20one\x20of:\x20'+fmtNames(_0xa31523));}export function mutuallyExclusive(_0x3ed715,_0x5b807a,_0x445bcf){const _0x1c31f7=a19_0x41aa,_0x54bf03=_0x5b807a['filter'](_0x4a9633=>isSet(_0x3ed715,_0x4a9633));if(_0x54bf03[_0x1c31f7(0x138)]>0x1)throw CliErrors[_0x1c31f7(0x148)]('Flags\x20'+fmtNames(_0x54bf03)+_0x1c31f7(0x144)+_0x445bcf+'`.',_0x1c31f7(0x139)+fmtNames(_0x5b807a));}export function validatePattern(_0x2c3c4e,_0x210a32,_0x423acb,_0x8333e9){const _0x15094f=a19_0x41aa,_0x1c8297=_0x2c3c4e['str'](_0x210a32);if(_0x1c8297&&!_0x423acb['test'](_0x1c8297))throw CliErrors[_0x15094f(0x148)](_0x15094f(0x12e)+_0x210a32+_0x15094f(0x12f)+_0x8333e9+_0x15094f(0x143)+_0x1c8297+'\x22.');}
@@ -1 +1 @@
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
+ const a20_0x173242=a20_0xc23d;(function(_0x463cd2,_0x17f938){const _0x29818f=a20_0xc23d,_0x439a89=_0x463cd2();while(!![]){try{const _0x4b6022=-parseInt(_0x29818f(0x105))/0x1*(-parseInt(_0x29818f(0x115))/0x2)+-parseInt(_0x29818f(0x10a))/0x3+-parseInt(_0x29818f(0x109))/0x4*(-parseInt(_0x29818f(0x10c))/0x5)+parseInt(_0x29818f(0x119))/0x6*(parseInt(_0x29818f(0x10f))/0x7)+parseInt(_0x29818f(0x106))/0x8+-parseInt(_0x29818f(0x110))/0x9+parseInt(_0x29818f(0x10e))/0xa;if(_0x4b6022===_0x17f938)break;else _0x439a89['push'](_0x439a89['shift']());}catch(_0x34956e){_0x439a89['push'](_0x439a89['shift']());}}}(a20_0x456a,0x1b4ea));export const CODE_FLAG={'name':a20_0x173242(0x113),'type':a20_0x173242(0x116),'required':!![],'description':a20_0x173242(0x11b),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x173242(0x10b)}};function a20_0xc23d(_0x39f424,_0x2f1e3a){_0x39f424=_0x39f424-0x105;const _0x456a97=a20_0x456a();let _0xc23df4=_0x456a97[_0x39f424];return _0xc23df4;}export const SQLCODE_FLAG={'name':'sqlcode','type':a20_0x173242(0x116),'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_0x173242(0x112)}};export const VERBOSE_FLAG={'name':a20_0x173242(0x111),'type':a20_0x173242(0x117),'description':a20_0x173242(0x114)};export const PARAMS_FLAG={'name':'params','type':a20_0x173242(0x116),'description':a20_0x173242(0x107)};function a20_0x456a(){const _0x14d28c=['138VgEgwW','792504lQrhGX','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','name','4DZCYZJ','465174xakdHY','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','84215BYfIJO','Resource\x20name\x20for\x20lookup','1255230WfKwcd','239302Lqsxys','766431Qvwobp','verbose','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','code','Return\x20full\x20raw\x20response\x20object','1108cXICaX','string','boolean','Resource\x20ID','6xqQElx','number','Dataset\x20code\x20(32-char\x20hex\x20UUID)'];a20_0x456a=function(){return _0x14d28c;};return a20_0x456a();}export const NAME_FLAG={'name':a20_0x173242(0x108),'type':a20_0x173242(0x116),'description':a20_0x173242(0x10d)};export const ID_FLAG={'name':'id','type':a20_0x173242(0x11a),'required':!![],'description':a20_0x173242(0x118)};
@@ -1 +1 @@
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
+ (function(_0x405dc5,_0xfc7c41){const _0x2fdf8c=a21_0x46d3,_0xf7c659=_0x405dc5();while(!![]){try{const _0x23c4e0=parseInt(_0x2fdf8c(0xe6))/0x1*(-parseInt(_0x2fdf8c(0xe0))/0x2)+parseInt(_0x2fdf8c(0xea))/0x3*(parseInt(_0x2fdf8c(0xee))/0x4)+-parseInt(_0x2fdf8c(0xed))/0x5*(parseInt(_0x2fdf8c(0xe8))/0x6)+parseInt(_0x2fdf8c(0xf2))/0x7*(parseInt(_0x2fdf8c(0xe1))/0x8)+parseInt(_0x2fdf8c(0xe4))/0x9+-parseInt(_0x2fdf8c(0xf4))/0xa+parseInt(_0x2fdf8c(0xe5))/0xb*(parseInt(_0x2fdf8c(0xe3))/0xc);if(_0x23c4e0===_0xfc7c41)break;else _0xf7c659['push'](_0xf7c659['shift']());}catch(_0x508a5d){_0xf7c659['push'](_0xf7c659['shift']());}}}(a21_0x5fb0,0xc41eb));import{existsSync,statSync}from'node:fs';function a21_0x46d3(_0x2399da,_0x5169ea){_0x2399da=_0x2399da-0xe0;const _0x5fb0b8=a21_0x5fb0();let _0x46d3ef=_0x5fb0b8[_0x2399da];return _0x46d3ef;}import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function a21_0x5fb0(){const _0x15cf73=['File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','12115370gOqcmc','58DaTfGq','3039896UUyqxE','size','1106844XlefQX','14073525xlVjls','66djsIoS','16667hcMRRE','File\x20is\x20not\x20a\x20regular\x20file:\x20','186WwEIuM','toFixed','39IbAsYw','ceil','\x20MB','5980tjjjSu','11732lahhzf','isFile','\x20path\x20is\x20required.','validation','7zjNfPR'];a21_0x5fb0=function(){return _0x15cf73;};return a21_0x5fb0();}function formatBytes(_0x3a7cef){const _0x3f938e=a21_0x46d3;if(_0x3a7cef>=BYTES_PER_MB){const _0x51a791=Math[_0x3f938e(0xeb)](_0x3a7cef/BYTES_PER_MB*0x64)/0x64;return _0x51a791[_0x3f938e(0xe9)](0x2)+_0x3f938e(0xec);}return _0x3a7cef+'\x20B';}export function requireRuntimeUploadFile(_0x386511,_0x12f398){const _0x146bfd=a21_0x46d3,_0x3d48d3=_0x386511['trim']();if(!_0x3d48d3)throw CliErrors[_0x146bfd(0xf1)](_0x12f398+_0x146bfd(0xf0));if(!existsSync(_0x3d48d3))throw CliErrors[_0x146bfd(0xf1)]('File\x20not\x20found:\x20'+_0x3d48d3);const _0x5686c4=statSync(_0x3d48d3);if(!_0x5686c4[_0x146bfd(0xef)]())throw CliErrors[_0x146bfd(0xf1)](_0x146bfd(0xe7)+_0x3d48d3);if(_0x5686c4[_0x146bfd(0xe2)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x146bfd(0xf1)](_0x146bfd(0xf3)+_0x3d48d3+'\x20('+formatBytes(_0x5686c4[_0x146bfd(0xe2)])+')');return{'path':_0x3d48d3,'size':_0x5686c4[_0x146bfd(0xe2)]};}
@@ -1 +1 @@
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
+ const a22_0x2e6161=a22_0x9738;(function(_0x217c14,_0x39b0e2){const _0x70d519=a22_0x9738,_0x1404fc=_0x217c14();while(!![]){try{const _0x11d881=-parseInt(_0x70d519(0x10e))/0x1*(-parseInt(_0x70d519(0xfc))/0x2)+parseInt(_0x70d519(0xdd))/0x3+parseInt(_0x70d519(0xd7))/0x4+-parseInt(_0x70d519(0xe4))/0x5*(parseInt(_0x70d519(0xe2))/0x6)+-parseInt(_0x70d519(0x103))/0x7+-parseInt(_0x70d519(0x10a))/0x8+parseInt(_0x70d519(0x100))/0x9*(-parseInt(_0x70d519(0xf4))/0xa);if(_0x11d881===_0x39b0e2)break;else _0x1404fc['push'](_0x1404fc['shift']());}catch(_0x1b8540){_0x1404fc['push'](_0x1404fc['shift']());}}}(a22_0x12d6,0x97677));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a22_0x2e6161(0x110),'type':a22_0x2e6161(0xe3),'description':a22_0x2e6161(0xf6),'default':![]};function parseAliasAppcodeSetKey(_0x5ddae1){const _0x5b44f9=a22_0x2e6161,_0x1455a8=_0x5ddae1[_0x5b44f9(0x10c)]('.');if(_0x1455a8[_0x5b44f9(0xd0)]!==0x3||_0x1455a8[0x0]!==_0x5b44f9(0xfa)||_0x1455a8[0x2]!==_0x5b44f9(0xe0))return undefined;const _0x10e5bb=_0x1455a8[0x1]?.[_0x5b44f9(0xf3)]();return _0x10e5bb?_0x10e5bb:undefined;}function parseAliasDeleteKey(_0x1eedac){const _0x1341de=a22_0x2e6161,_0x498915=_0x1eedac[_0x1341de(0x10c)]('.');if(_0x498915['length']===0x2&&_0x498915[0x0]===_0x1341de(0xfa)){const _0x3b124f=_0x498915[0x1]?.[_0x1341de(0xf3)]();return _0x3b124f?{'alias':_0x3b124f}:undefined;}if(_0x498915['length']===0x3&&_0x498915[0x0]==='apps'&&_0x498915[0x2]==='appcode'){const _0x199af6=_0x498915[0x1]?.[_0x1341de(0xf3)]();return _0x199af6?{'alias':_0x199af6,'field':'appcode'}:undefined;}return undefined;}function setLocalAppAlias(_0x26936c,_0x28d367,_0xaa9d44){const _0x3e51f2=a22_0x2e6161,_0x2caf64=_0x26936c['apps']&&typeof _0x26936c[_0x3e51f2(0xfa)]===_0x3e51f2(0xd5)&&!Array[_0x3e51f2(0xfe)](_0x26936c['apps'])?_0x26936c[_0x3e51f2(0xfa)]:{},_0x372aa4=_0x2caf64[_0x28d367]&&typeof _0x2caf64[_0x28d367]===_0x3e51f2(0xd5)&&!Array[_0x3e51f2(0xfe)](_0x2caf64[_0x28d367])?_0x2caf64[_0x28d367]:{};_0x372aa4[_0x3e51f2(0xe0)]=_0xaa9d44,_0x2caf64[_0x28d367]=_0x372aa4,_0x26936c[_0x3e51f2(0xfa)]=_0x2caf64;}function deleteLocalAppAlias(_0x3a6521,_0x8cdaf3){const _0x15ec88=a22_0x2e6161;if(!_0x3a6521['apps']||typeof _0x3a6521[_0x15ec88(0xfa)]!=='object'||Array[_0x15ec88(0xfe)](_0x3a6521[_0x15ec88(0xfa)]))return![];const _0x49b85d=_0x3a6521[_0x15ec88(0xfa)],_0xac679b=_0x49b85d[_0x8cdaf3[_0x15ec88(0xe8)]];if(!_0xac679b||typeof _0xac679b!==_0x15ec88(0xd5)||Array['isArray'](_0xac679b))return![];if(!_0x8cdaf3[_0x15ec88(0xd9)])return delete _0x49b85d[_0x8cdaf3[_0x15ec88(0xe8)]],!![];if(!(_0x8cdaf3[_0x15ec88(0xd9)]in _0xac679b))return![];return delete _0xac679b[_0x8cdaf3[_0x15ec88(0xd9)]],Object[_0x15ec88(0xd6)](_0xac679b)[_0x15ec88(0xd0)]===0x0&&delete _0x49b85d[_0x8cdaf3[_0x15ec88(0xe8)]],!![];}function a22_0x9738(_0x5f3bf6,_0x1dbe85){_0x5f3bf6=_0x5f3bf6-0xcd;const _0x12d688=a22_0x12d6();let _0x9738f0=_0x12d688[_0x5f3bf6];return _0x9738f0;}const listDef={'service':a22_0x2e6161(0x106),'command':'list','description':a22_0x2e6161(0x101),'risk':a22_0x2e6161(0x113),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x5ed4b6){const _0x301c5a=a22_0x2e6161,{buildConfigFromFlags:_0x57e9fc}=await import(_0x301c5a(0xf0)),_0x3e3eb1=_0x57e9fc({}),_0x2bde98=getProjectConfigPath(),_0x434126=resolveWriteConfigPath('global');if(_0x5ed4b6[_0x301c5a(0xf5)]===_0x301c5a(0xfd))return{'ok':!![],'message':_0x301c5a(0x10b)+(JSON[_0x301c5a(0xf7)](_0x3e3eb1[_0x301c5a(0xcd)],null,0x2)+'\x0a\x0a')+_0x301c5a(0x105)+(_0x301c5a(0xf2)+(_0x2bde98??_0x301c5a(0x102))+'\x0a')+(_0x301c5a(0xd3)+_0x434126)};return{'ok':!![],'data':{'effective':_0x3e3eb1[_0x301c5a(0xcd)],'configFiles':{'project':_0x2bde98??null,'global':_0x434126}}};}},getDef={'service':'config','command':'get','description':a22_0x2e6161(0xdc),'risk':a22_0x2e6161(0x113),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x2e6161(0xcf),'description':a22_0x2e6161(0xf9),'required':!![]}],'flags':[],async 'execute'(_0x3343d8){const _0x1ebcf9=a22_0x2e6161,_0x1b4c7c=_0x3343d8[_0x1ebcf9(0xd1)][0x0];if(!_0x1b4c7c)throw CliErrors[_0x1ebcf9(0xdf)](_0x1ebcf9(0xde),_0x1ebcf9(0xe5)+CLI_BIN_NAME+_0x1ebcf9(0xea));const {buildConfigFromFlags:_0x5b5faa}=await import(_0x1ebcf9(0xf0)),{raw:_0x2241d6}=_0x5b5faa({});if(_0x1b4c7c['includes']('.')){const _0x45de29=_0x1b4c7c[_0x1ebcf9(0x10c)]('.');let _0x2d5521=_0x2241d6;for(const _0xf94a3d of _0x45de29){if(_0x2d5521==null||typeof _0x2d5521!==_0x1ebcf9(0xd5))throw CliErrors[_0x1ebcf9(0xdf)]('Key\x20not\x20found:\x20'+_0x1b4c7c);_0x2d5521=_0x2d5521[_0xf94a3d];}if(_0x2d5521===undefined)throw CliErrors[_0x1ebcf9(0xdf)](_0x1ebcf9(0xfb)+_0x1b4c7c);return console[_0x1ebcf9(0xe9)](typeof _0x2d5521===_0x1ebcf9(0xd5)?JSON['stringify'](_0x2d5521,null,0x2):String(_0x2d5521)),{'ok':!![]};}const _0x1ed40e=_0x2241d6[_0x1b4c7c];if(_0x1ed40e===undefined)throw CliErrors[_0x1ebcf9(0xdf)](_0x1ebcf9(0xfb)+_0x1b4c7c);return console[_0x1ebcf9(0xe9)](typeof _0x1ed40e===_0x1ebcf9(0xd5)?JSON['stringify'](_0x1ed40e,null,0x2):String(_0x1ed40e)),{'ok':!![]};}},setDef={'service':'config','command':a22_0x2e6161(0xd2),'description':a22_0x2e6161(0xe1),'risk':a22_0x2e6161(0x109),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x2e6161(0xcf),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x2e6161(0x112),'description':a22_0x2e6161(0x10d),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x545fe8){const _0x2943aa=a22_0x2e6161,_0x84c2c9=_0x545fe8[_0x2943aa(0xd1)][0x0],_0x419a05=_0x545fe8['args'][0x1];if(!_0x84c2c9||_0x419a05===undefined)throw CliErrors['validation'](_0x2943aa(0xe6),_0x2943aa(0xe5)+CLI_BIN_NAME+_0x2943aa(0xd4));if(ENUM_KEYS[_0x84c2c9]&&!ENUM_KEYS[_0x84c2c9][_0x2943aa(0x104)](_0x419a05))throw CliErrors[_0x2943aa(0xdf)](_0x2943aa(0xef)+_0x84c2c9+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x84c2c9]['join'](',\x20'));if(_0x84c2c9===_0x2943aa(0x107))throw CliErrors[_0x2943aa(0xdf)](_0x2943aa(0x111));if(_0x84c2c9===_0x2943aa(0xe7)){const _0x37f7e7=Number(_0x419a05);if(isNaN(_0x37f7e7)||_0x37f7e7<=0x0)throw CliErrors[_0x2943aa(0xdf)](_0x2943aa(0xdb));}const _0x8aade7=resolveWriteScope({'explicitGlobal':_0x545fe8[_0x2943aa(0xce)](_0x2943aa(0x110)),'policy':_0x2943aa(0xf1)}),_0x398c62=toScopeFlags(_0x8aade7),_0x4313f5=readScopedConfig(_0x398c62),_0x38cc52=parseAliasAppcodeSetKey(_0x84c2c9);if(!_0x38cc52&&!isTopLevelConfigKey(_0x84c2c9))throw CliErrors[_0x2943aa(0xdf)](_0x2943aa(0xed)+_0x84c2c9+_0x2943aa(0xf8),_0x2943aa(0xee)+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');return _0x38cc52?setLocalAppAlias(_0x4313f5,_0x38cc52,_0x419a05):_0x4313f5[_0x84c2c9]=_0x84c2c9==='pageSize'?Number(_0x419a05):_0x419a05,console[_0x2943aa(0xe9)](_0x2943aa(0xff)+_0x84c2c9+_0x2943aa(0x10f)+_0x419a05+'\x22'+(_0x8aade7==='global'?_0x2943aa(0xd8):'')),writeScopedConfig(_0x4313f5,_0x398c62),{'ok':!![]};}},deleteDef={'service':'config','command':a22_0x2e6161(0xeb),'description':'Delete\x20a\x20config\x20value','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x2e6161(0xcf),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x33e0ba){const _0x5dd6c9=a22_0x2e6161,_0x594402=_0x33e0ba[_0x5dd6c9(0xd1)][0x0];if(!_0x594402)throw CliErrors['validation'](_0x5dd6c9(0xde),_0x5dd6c9(0xe5)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x38d215=resolveWriteScope({'explicitGlobal':_0x33e0ba[_0x5dd6c9(0xce)](_0x5dd6c9(0x110)),'policy':'project-or-global-explicit'}),_0x6cc92b=toScopeFlags(_0x38d215),_0x20f3aa=readScopedConfig(_0x6cc92b),_0x150a35=parseAliasDeleteKey(_0x594402);if(_0x150a35){if(!deleteLocalAppAlias(_0x20f3aa,_0x150a35))throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x594402);return console[_0x5dd6c9(0xe9)](_0x5dd6c9(0x108)+_0x594402+'`'+(_0x38d215===_0x5dd6c9(0x110)?_0x5dd6c9(0xd8):'')),writeScopedConfig(_0x20f3aa,_0x6cc92b),{'ok':!![]};}if(_0x20f3aa[_0x594402]===undefined)throw CliErrors[_0x5dd6c9(0xdf)](_0x5dd6c9(0xda)+_0x594402+_0x5dd6c9(0xec));return delete _0x20f3aa[_0x594402],console['log'](_0x5dd6c9(0x108)+_0x594402+'`'+(_0x38d215===_0x5dd6c9(0x110)?_0x5dd6c9(0xd8):'')),writeScopedConfig(_0x20f3aa,_0x6cc92b),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];function a22_0x12d6(){const _0x4ab8a3=['\x20\x20project:\x20','trim','10090sgfEwG','format','Write\x20to\x20global\x20config','stringify','\x22\x20is\x20not\x20settable.','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','apps','Key\x20not\x20found:\x20','2054CYxalW','pretty','isArray','Set\x20`','1899AQtDMn','List\x20current\x20config','(none)','752843ugqZxl','includes','Config\x20files:\x0a','config','riskLevel','Deleted\x20`','write','323240Iexoan','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','split','Value\x20to\x20assign','795QZTkeu','`\x20=\x20\x22','global','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','value','read','raw','bool','key','length','args','set','\x20\x20global:\x20\x20','\x20config\x20set\x20<key>\x20<value>\x20[--global]','object','keys','299912vSeNvq','\x20(global)','field','Key\x20\x22','pageSize\x20must\x20be\x20a\x20positive\x20number','Get\x20a\x20config\x20value','1126845CsOVyQ','Missing\x20key\x20argument.','validation','appcode','Set\x20a\x20config\x20value','6RVAVvb','boolean','1430270IToMkI','Usage:\x20','Missing\x20key\x20or\x20value.','pageSize','alias','log','\x20config\x20get\x20<key>','delete','\x22\x20not\x20found\x20at\x20top\x20level.','Top-level\x20key\x20\x22','Settable\x20keys:\x20','Invalid\x20value\x20for\x20\x22','../../context.js','project-or-global-explicit'];a22_0x12d6=function(){return _0x4ab8a3;};return a22_0x12d6();}
@@ -1 +1 @@
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
+ (function(_0xc4430d,_0x59d18e){var _0x5dac9b=a23_0x467d,_0x4f2b6e=_0xc4430d();while(!![]){try{var _0x42837c=parseInt(_0x5dac9b(0xea))/0x1*(parseInt(_0x5dac9b(0xeb))/0x2)+parseInt(_0x5dac9b(0xe5))/0x3*(-parseInt(_0x5dac9b(0xe6))/0x4)+parseInt(_0x5dac9b(0xed))/0x5*(-parseInt(_0x5dac9b(0xe7))/0x6)+parseInt(_0x5dac9b(0xe9))/0x7+-parseInt(_0x5dac9b(0xec))/0x8+-parseInt(_0x5dac9b(0xe4))/0x9+parseInt(_0x5dac9b(0xe8))/0xa;if(_0x42837c===_0x59d18e)break;else _0x4f2b6e['push'](_0x4f2b6e['shift']());}catch(_0x250244){_0x4f2b6e['push'](_0x4f2b6e['shift']());}}}(a23_0x5180,0xaa1bd));function a23_0x5180(){var _0x1a608f=['5CfmBcL','9848034xDMWpK','863088PBfXSW','12vpVZDj','6763746DqmnpL','27970220Anmmjr','7253848ITSXrM','1979mdxfBu','596PijItF','5133264qGuyfX'];a23_0x5180=function(){return _0x1a608f;};return a23_0x5180();}import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};function a23_0x467d(_0x41c4b9,_0x35e6c4){_0x41c4b9=_0x41c4b9-0xe4;var _0x51804e=a23_0x5180();var _0x467db6=_0x51804e[_0x41c4b9];return _0x467db6;}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_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
+ const a24_0x2fdeb8=a24_0x1e3e;(function(_0xe5dd74,_0x15709f){const _0x3f8d36=a24_0x1e3e,_0x5d4e89=_0xe5dd74();while(!![]){try{const _0x3dcec7=parseInt(_0x3f8d36(0x210))/0x1+-parseInt(_0x3f8d36(0x1f8))/0x2+parseInt(_0x3f8d36(0x226))/0x3*(parseInt(_0x3f8d36(0x224))/0x4)+parseInt(_0x3f8d36(0x218))/0x5+parseInt(_0x3f8d36(0x1f0))/0x6+-parseInt(_0x3f8d36(0x20c))/0x7*(parseInt(_0x3f8d36(0x222))/0x8)+-parseInt(_0x3f8d36(0x20f))/0x9;if(_0x3dcec7===_0x15709f)break;else _0x5d4e89['push'](_0x5d4e89['shift']());}catch(_0xd38107){_0x5d4e89['push'](_0x5d4e89['shift']());}}}(a24_0x57f0,0x462c9));import{executeData}from'../../core/sdk-client.js';function a24_0x1e3e(_0x3f31cf,_0x3078a8){_0x3f31cf=_0x3f31cf-0x1dc;const _0x57f003=a24_0x57f0();let _0x1e3eb5=_0x57f003[_0x3f31cf];return _0x1e3eb5;}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';function a24_0x57f0(){const _0x5e9863=['write','\x20\x20LOGICAL\x20COMBINATORS','params','Get\x20a\x20single\x20record\x20by\x20ID','\x20\x20WHERE\x20OPERATORS','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','read','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','aggregate','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','950467EmgQWt','paramsRequired','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','2127537EipPao','213531tdgSWp','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\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}}','\x20completed\x20in\x20','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','\x20\x20\x20\x20--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\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','command','904120KSLSVc','code','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\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\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','\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}}','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\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}}','dryRun','24TkylmP','\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}}','488ZDECYa','getOne','8193AwcZzD','\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}]','map','operation','paramsHint','\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','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','str','\x20\x20EXAMPLES','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','data','data\x20','Update\x20an\x20existing\x20record','helpExtra','risk','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','Preview:\x20data\x20','\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\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20PARAMS\x20STRUCTURE','delete','body','\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}}','create','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','3180996NwgKRF','\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}}','now','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','/api/{appCode}/','\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}}','high-risk-write','join','653068isfoSC','filter','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20PAGINATION','batchCreate','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}'];a24_0x57f0=function(){return _0x5e9863;};return a24_0x57f0();}import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x2fdeb8(0x1f9),'operation':a24_0x2fdeb8(0x1f9),'risk':'read','paramsRequired':![],'description':a24_0x2fdeb8(0x21e),'paramsHint':a24_0x2fdeb8(0x1ef)+a24_0x2fdeb8(0x22c),'helpExtra':[a24_0x2fdeb8(0x202),a24_0x2fdeb8(0x1dc),'\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_0x2fdeb8(0x1f5),a24_0x2fdeb8(0x21d),a24_0x2fdeb8(0x1ed),a24_0x2fdeb8(0x212),a24_0x2fdeb8(0x205),a24_0x2fdeb8(0x1f1),a24_0x2fdeb8(0x223),a24_0x2fdeb8(0x220),'',a24_0x2fdeb8(0x1ff),'\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','',a24_0x2fdeb8(0x1e8),a24_0x2fdeb8(0x211),a24_0x2fdeb8(0x1dd),a24_0x2fdeb8(0x227),a24_0x2fdeb8(0x1e9),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a24_0x2fdeb8(0x1fb),'\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27',a24_0x2fdeb8(0x21c)][a24_0x2fdeb8(0x1f7)]('\x0a')},{'command':a24_0x2fdeb8(0x225),'operation':a24_0x2fdeb8(0x225),'risk':a24_0x2fdeb8(0x207),'paramsRequired':!![],'description':a24_0x2fdeb8(0x201),'paramsHint':a24_0x2fdeb8(0x204)},{'command':a24_0x2fdeb8(0x1ee),'operation':'create','risk':a24_0x2fdeb8(0x1fe),'paramsRequired':!![],'description':'Create\x20a\x20new\x20record\x20in\x20a\x20dataset','paramsHint':a24_0x2fdeb8(0x1f3)},{'command':a24_0x2fdeb8(0x1fc),'operation':a24_0x2fdeb8(0x1fc),'risk':'write','paramsRequired':!![],'description':a24_0x2fdeb8(0x21a),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':'update','operation':'update','risk':a24_0x2fdeb8(0x1fe),'paramsRequired':!![],'description':a24_0x2fdeb8(0x1e1),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27'},{'command':a24_0x2fdeb8(0x1eb),'operation':a24_0x2fdeb8(0x1eb),'risk':a24_0x2fdeb8(0x1f6),'paramsRequired':!![],'description':a24_0x2fdeb8(0x203),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':'aggregate','operation':a24_0x2fdeb8(0x209),'risk':a24_0x2fdeb8(0x207),'paramsRequired':![],'description':a24_0x2fdeb8(0x1e4),'paramsHint':a24_0x2fdeb8(0x1de)+a24_0x2fdeb8(0x20a),'helpExtra':['\x20\x20AGGREGATE\x20TYPES','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}',a24_0x2fdeb8(0x208),a24_0x2fdeb8(0x21b),'\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_0x2fdeb8(0x1e7),'\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}',a24_0x2fdeb8(0x1fd),'',a24_0x2fdeb8(0x1ea),a24_0x2fdeb8(0x1fa),a24_0x2fdeb8(0x216),a24_0x2fdeb8(0x1e5),'\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a24_0x2fdeb8(0x214),a24_0x2fdeb8(0x20e),'',a24_0x2fdeb8(0x22e),a24_0x2fdeb8(0x20b),a24_0x2fdeb8(0x22b),'',a24_0x2fdeb8(0x21f),a24_0x2fdeb8(0x215),'',a24_0x2fdeb8(0x206)][a24_0x2fdeb8(0x1f7)]('\x0a')}];function makeDataCommand(_0xb7eefd){const _0x212ed4=a24_0x2fdeb8,_0x332a75=_0x212ed4(0x1e0)+_0xb7eefd[_0x212ed4(0x217)],_0x38a78e={'service':_0x212ed4(0x1df),'command':_0xb7eefd['command'],'description':_0xb7eefd['description'],'risk':_0xb7eefd['risk'],'helpExtra':_0xb7eefd[_0x212ed4(0x1e2)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0xb7eefd[_0x212ed4(0x22a)]}],'validate':async _0x2694d9=>{const _0x1b844c=_0x212ed4;_0xb7eefd[_0x1b844c(0x20d)]&&requireAnyOf(_0x2694d9,[_0x1b844c(0x200)],_0x332a75),_0xb7eefd['operation']==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2694d9[_0x1b844c(0x22d)](_0x1b844c(0x200))));},async 'execute'(_0x2da01a){const _0x280a1d=_0x212ed4,_0x4c8b05=_0x2da01a['str'](_0x280a1d(0x219)),_0x2b50bf=_0xb7eefd[_0x280a1d(0x229)]===_0x280a1d(0x1fc)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2da01a[_0x280a1d(0x22d)](_0x280a1d(0x200)))):parseJsonParams(_0x2da01a[_0x280a1d(0x22d)]('params'))??{},_0x21fa4a=Date[_0x280a1d(0x1f2)](),_0x45b016=await executeData(_0x4c8b05,_0xb7eefd[_0x280a1d(0x229)],_0x2b50bf),_0x10b0bd=Date[_0x280a1d(0x1f2)]()-_0x21fa4a;return{'ok':!![],'data':{'result':_0x45b016,'elapsed':_0x10b0bd},'message':_0x280a1d(0x1e0)+_0xb7eefd[_0x280a1d(0x217)]+_0x280a1d(0x213)+_0x10b0bd+'ms'};}};return _0xb7eefd[_0x212ed4(0x1e3)]!==_0x212ed4(0x207)&&(_0x38a78e[_0x212ed4(0x221)]=async _0x541a3=>{const _0x147f24=_0x212ed4,_0x1d0794=_0x541a3[_0x147f24(0x22d)](_0x147f24(0x219)),_0x62bd62=_0xb7eefd[_0x147f24(0x229)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x541a3[_0x147f24(0x22d)](_0x147f24(0x200)))):parseJsonParams(_0x541a3[_0x147f24(0x22d)](_0x147f24(0x200)))??{};return dryRun('POST',_0x147f24(0x1f4)+_0x1d0794+'/'+_0xb7eefd['operation'])[_0x147f24(0x1ec)](_0x62bd62)['description'](_0x147f24(0x1e6)+_0xb7eefd['command']+'\x20on\x20dataset\x20'+_0x1d0794)['build']();}),_0x38a78e;}export const dataDefinitions=specs[a24_0x2fdeb8(0x228)](makeDataCommand);
@@ -1 +1 @@
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
+ const a25_0x474e97=a25_0x9141;(function(_0x39ec54,_0xe00d3f){const _0x43d230=a25_0x9141,_0x4b702a=_0x39ec54();while(!![]){try{const _0x589867=parseInt(_0x43d230(0x16d))/0x1*(parseInt(_0x43d230(0x151))/0x2)+-parseInt(_0x43d230(0x18e))/0x3+-parseInt(_0x43d230(0x16c))/0x4+-parseInt(_0x43d230(0x186))/0x5+parseInt(_0x43d230(0x198))/0x6*(-parseInt(_0x43d230(0x16e))/0x7)+-parseInt(_0x43d230(0x181))/0x8*(parseInt(_0x43d230(0x197))/0x9)+parseInt(_0x43d230(0x18c))/0xa*(parseInt(_0x43d230(0x16a))/0xb);if(_0x589867===_0xe00d3f)break;else _0x4b702a['push'](_0x4b702a['shift']());}catch(_0x4da56a){_0x4b702a['push'](_0x4b702a['shift']());}}}(a25_0x5d32,0xe44b6));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a25_0x9141(_0x3a58c3,_0x423bac){_0x3a58c3=_0x3a58c3-0x151;const _0x5d32d7=a25_0x5d32();let _0x914105=_0x5d32d7[_0x3a58c3];return _0x914105;}import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x84a90e){const _0x5126f0=a25_0x9141;if(_0x84a90e['deleted'])return null;const _0x35d60b=Boolean(_0x84a90e[_0x5126f0(0x182)]!==undefined||_0x84a90e[_0x5126f0(0x17e)]!==undefined);let _0x10da2e={};if(!_0x35d60b&&typeof _0x84a90e[_0x5126f0(0x168)]===_0x5126f0(0x189))try{_0x10da2e=JSON[_0x5126f0(0x18f)](_0x84a90e[_0x5126f0(0x168)]);}catch{}const _0xed5a7d=_0x35d60b?_0x84a90e[_0x5126f0(0x16b)]:_0x84a90e[_0x5126f0(0x19c)],_0x40b7d0=_0x35d60b?_0x84a90e[_0x5126f0(0x182)]:_0x84a90e[_0x5126f0(0x16b)],_0x551a6b=_0x35d60b?_0x84a90e[_0x5126f0(0x17e)]:_0x84a90e[_0x5126f0(0x16f)]||_0x84a90e[_0x5126f0(0x180)],_0x378749=_0x35d60b?_0x84a90e[_0x5126f0(0x15d)]===!![]:_0x10da2e[_0x5126f0(0x15d)]===!![],_0x44c12d=_0x35d60b?_0x84a90e[_0x5126f0(0x171)]===!![]:_0x10da2e[_0x5126f0(0x171)]===!![],_0x5268f1=_0x35d60b?_0x84a90e[_0x5126f0(0x192)]??null:_0x10da2e['options']??null,_0x355f83={'name':_0xed5a7d,'displayName':_0x40b7d0||_0xed5a7d,'type':_0x551a6b,'dbType':_0x84a90e[_0x5126f0(0x199)],'pk':_0x378749,'required':_0x44c12d,'description':_0x84a90e[_0x5126f0(0x15f)]||undefined};return Array[_0x5126f0(0x167)](_0x5268f1)&&_0x5268f1['length']>0x0&&(_0x355f83[_0x5126f0(0x192)]=_0x5268f1),_0x355f83;}function parseJsonMaybe(_0xe84ff0){const _0x3aa2f0=a25_0x9141;if(typeof _0xe84ff0!==_0x3aa2f0(0x189))return _0xe84ff0;try{return JSON[_0x3aa2f0(0x18f)](_0xe84ff0);}catch{return _0xe84ff0;}}function normalizeOperationEntry(_0x4571a2,_0x165400){const _0x32cc7a=a25_0x9141;if(!_0x165400||typeof _0x165400!=='object')return null;if(!_0x165400['method']||!_0x165400[_0x32cc7a(0x17d)])return null;const _0x1a6def={'name':_0x4571a2,'method':_0x165400[_0x32cc7a(0x15a)],'path':_0x165400['path']};if(_0x165400[_0x32cc7a(0x155)])_0x1a6def[_0x32cc7a(0x155)]=_0x165400[_0x32cc7a(0x155)];if(_0x165400[_0x32cc7a(0x18d)]!=null)_0x1a6def[_0x32cc7a(0x18d)]=parseJsonMaybe(_0x165400[_0x32cc7a(0x18d)]);if(_0x165400[_0x32cc7a(0x174)]!=null)_0x1a6def[_0x32cc7a(0x174)]=parseJsonMaybe(_0x165400[_0x32cc7a(0x174)]);if(_0x165400[_0x32cc7a(0x194)]!=null)_0x1a6def['beforeScriptId']=_0x165400[_0x32cc7a(0x194)];if(_0x165400['afterScriptId']!=null)_0x1a6def[_0x32cc7a(0x162)]=_0x165400[_0x32cc7a(0x162)];if(Array[_0x32cc7a(0x167)](_0x165400['requestFields']))_0x1a6def[_0x32cc7a(0x15b)]=_0x165400[_0x32cc7a(0x15b)];if(Array['isArray'](_0x165400[_0x32cc7a(0x157)]))_0x1a6def[_0x32cc7a(0x157)]=_0x165400[_0x32cc7a(0x157)];return _0x1a6def;}function summarizeDbtable(_0x116e9f){const _0x7006a4=a25_0x9141,_0x969779={},_0x1dc1a4=[_0x7006a4(0x178),_0x7006a4(0x15e),_0x7006a4(0x156),_0x7006a4(0x164),_0x7006a4(0x15d),'allFields',_0x7006a4(0x177),_0x7006a4(0x187),_0x7006a4(0x193),_0x7006a4(0x190),_0x7006a4(0x19a),_0x7006a4(0x158),'modifierNameField',_0x7006a4(0x172),_0x7006a4(0x154)];for(const _0x1bbd6a of _0x1dc1a4){if(_0x116e9f[_0x1bbd6a]!==undefined)_0x969779[_0x1bbd6a]=_0x116e9f[_0x1bbd6a];}return typeof _0x969779[_0x7006a4(0x195)]===_0x7006a4(0x189)&&_0x969779[_0x7006a4(0x195)][_0x7006a4(0x19b)]>0x0&&(_0x969779[_0x7006a4(0x188)]=_0x969779[_0x7006a4(0x195)][_0x7006a4(0x184)](',')[_0x7006a4(0x163)](_0x45d9f8=>_0x45d9f8['trim']())[_0x7006a4(0x160)](Boolean)),_0x969779;}function a25_0x5d32(){const _0x2b3517=['options','updateTimeField','beforeScriptId','allFields','str','12419163wtixlt','41460tDDkUt','dbType','creatorNameField','length','code','push','960634XGWYbn','modelCode','formatRules','dblinkInfoDTO','host','tableName','responseFields','modifierIdField','find','method','requestFields','title','pkField','dbName','description','filter','appCode','afterScriptId','map','datasetKey','relations','read','isArray','extend','source','152713cDbSOL','name','4306168BonUKK','2wLOLtl','196wVMJqV','type','tableComment','required','labelField','columnCodeListWithDeleted','responseBody','doVersion','fields','logicField','dbId','modelId','dbtableConfig','dataset','validateRules','path','doType','properties','dataType','8ZrMlrE','displayName','object','split','operations','481335gonJxo','createTimeField','allFieldNames','string','relatedPageInfoList','sourceType','3030EPZvFb','requestBody','4457679hfcrji','parse','creatorIdField','trim'];a25_0x5d32=function(){return _0x2b3517;};return a25_0x5d32();}function normalizeRelatedPages(_0x17ea95){const _0x130395=a25_0x9141;if(!Array[_0x130395(0x167)](_0x17ea95))return[];return _0x17ea95[_0x130395(0x160)](_0x3964d3=>_0x3964d3&&typeof _0x3964d3===_0x130395(0x183))[_0x130395(0x163)](_0x36b864=>({'id':_0x36b864['id'],'type':_0x36b864[_0x130395(0x16f)],'code':_0x36b864['code'],'title':_0x36b864[_0x130395(0x15c)],'deleted':_0x36b864['deleted']===!![]}));}function normalizeFallbackFieldName(_0x483869,_0x4e839c){const _0x225bd7=a25_0x9141,_0x5515e2=_0x483869[_0x225bd7(0x191)]();if(!_0x5515e2)return null;return{'name':_0x5515e2,'displayName':_0x5515e2,'type':undefined,'dbType':undefined,'pk':_0x5515e2===_0x4e839c,'required':![],'description':undefined};}async function loadListFieldFallback(_0x2f16e8,_0x1cfa8b){const _0x4094ad=a25_0x9141;if(!_0x2f16e8||!_0x1cfa8b)return[];try{const _0x441263=await listDatasets(_0x2f16e8,{'code':_0x1cfa8b}),_0x1aa943=_0x441263[_0x4094ad(0x159)](_0x2f1440=>_0x2f1440['code']===_0x1cfa8b)??_0x441263[0x0],_0xe697dd=_0x1aa943?.[_0x4094ad(0x17a)]??{},_0x401037=typeof _0xe697dd[_0x4094ad(0x195)]===_0x4094ad(0x189)?_0xe697dd[_0x4094ad(0x195)]['split'](','):[];return _0x401037[_0x4094ad(0x163)](_0x16828e=>normalizeFallbackFieldName(_0x16828e,_0xe697dd[_0x4094ad(0x15d)]))[_0x4094ad(0x160)](_0x577f9c=>_0x577f9c!==null);}catch{return[];}}export const datasetDetail={'service':a25_0x474e97(0x17b),'command':'detail','description':'Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','risk':a25_0x474e97(0x166),'flags':[CODE_FLAG],async 'execute'(_0x25f0ca){const _0x381989=a25_0x474e97,_0x3ffc8b=await getDatasetDetail(_0x25f0ca[_0x381989(0x196)]('code')),_0x2279d7=Array[_0x381989(0x167)](_0x3ffc8b[_0x381989(0x176)])?_0x3ffc8b[_0x381989(0x176)]:Array['isArray'](_0x3ffc8b['properties'])?_0x3ffc8b[_0x381989(0x17f)]:[];let _0x15aa78=_0x2279d7[_0x381989(0x163)](_0x306f2b=>normalizeField(_0x306f2b))[_0x381989(0x160)](_0x21338b=>_0x21338b!==null);_0x15aa78['length']===0x0&&(_0x15aa78=await loadListFieldFallback(_0x25f0ca[_0x381989(0x161)],_0x25f0ca[_0x381989(0x196)](_0x381989(0x19c))));const _0x132a4f=_0x3ffc8b[_0x381989(0x185)]??{},_0x2a4d24=[];for(const [_0x7c1b13,_0x66d449]of Object['entries'](_0x132a4f)){const _0x3a02ff=normalizeOperationEntry(_0x7c1b13,_0x66d449);if(_0x3a02ff)_0x2a4d24[_0x381989(0x19d)](_0x3a02ff);}const _0x330e6=_0x3ffc8b[_0x381989(0x17a)]??{},_0x440b33=_0x3ffc8b['dataset']??{},_0x4f4e81=_0x330e6['dbId']!=null?{'id':_0x330e6['dbId'],'name':_0x330e6[_0x381989(0x15e)]??null}:undefined;let _0x168ce3;return typeof _0x3ffc8b[_0x381989(0x168)]==='string'&&(_0x168ce3=parseJsonMaybe(_0x3ffc8b['extend'])),{'ok':!![],'data':{'id':_0x3ffc8b[_0x381989(0x179)]??_0x3ffc8b['id'],'name':_0x3ffc8b[_0x381989(0x16b)],'code':_0x3ffc8b[_0x381989(0x152)]||_0x3ffc8b[_0x381989(0x19c)],'doVersion':_0x3ffc8b[_0x381989(0x175)],'description':_0x3ffc8b[_0x381989(0x15f)]||_0x440b33[_0x381989(0x170)]||undefined,'source':_0x3ffc8b[_0x381989(0x169)]||_0x440b33[_0x381989(0x18b)],'table':_0x330e6[_0x381989(0x156)]||_0x440b33[_0x381989(0x156)],'datasetKey':_0x330e6['datasetKey'],'pk':_0x330e6[_0x381989(0x15d)],'db':_0x4f4e81,'dbtable':summarizeDbtable(_0x330e6),'fields':_0x15aa78,'operations':_0x2a4d24,'indexes':Array[_0x381989(0x167)](_0x440b33['indexes'])?_0x440b33['indexes']:[],'relations':_0x3ffc8b[_0x381989(0x165)]??null,'relatedPages':normalizeRelatedPages(_0x3ffc8b[_0x381989(0x18a)]),...Array[_0x381989(0x167)](_0x3ffc8b[_0x381989(0x173)])?{'columnCodeListWithDeleted':_0x3ffc8b['columnCodeListWithDeleted']}:{},'formatRules':Array['isArray'](_0x3ffc8b[_0x381989(0x153)])?_0x3ffc8b[_0x381989(0x153)]:[],'validateRules':Array[_0x381989(0x167)](_0x3ffc8b[_0x381989(0x17c)])?_0x3ffc8b[_0x381989(0x17c)]:[],..._0x168ce3!==undefined?{'extend':_0x168ce3}:{},'stats':{'fieldCount':_0x15aa78['length'],'operationCount':_0x2a4d24[_0x381989(0x19b)]}}};}};
@@ -1 +1 @@
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
+ function a26_0x5126(_0xafe45a,_0x22f536){_0xafe45a=_0xafe45a-0xe8;const _0x12ce8b=a26_0x12ce();let _0x5126f5=_0x12ce8b[_0xafe45a];return _0x5126f5;}(function(_0x52c9b5,_0x538796){const _0x43d36e=a26_0x5126,_0x168187=_0x52c9b5();while(!![]){try{const _0x117d83=-parseInt(_0x43d36e(0xf2))/0x1+-parseInt(_0x43d36e(0xed))/0x2*(parseInt(_0x43d36e(0xe8))/0x3)+-parseInt(_0x43d36e(0xee))/0x4*(-parseInt(_0x43d36e(0xf0))/0x5)+-parseInt(_0x43d36e(0xec))/0x6+-parseInt(_0x43d36e(0xf1))/0x7*(-parseInt(_0x43d36e(0xe9))/0x8)+-parseInt(_0x43d36e(0xeb))/0x9*(parseInt(_0x43d36e(0xef))/0xa)+parseInt(_0x43d36e(0xea))/0xb;if(_0x117d83===_0x538796)break;else _0x168187['push'](_0x168187['shift']());}catch(_0x57b031){_0x168187['push'](_0x168187['shift']());}}}(a26_0x12ce,0xd3ca1));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];function a26_0x12ce(){const _0x5c4a19=['496328BRMUYd','11952061KMyqPs','9LYNLbs','10359492GZMEXc','10wQVoGy','140UnyGga','846820zbYUFn','190130KATNaV','119RnpQMh','677690poyfpj','69429vbHbwl'];a26_0x12ce=function(){return _0x5c4a19;};return a26_0x12ce();}
@@ -1 +1 @@
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
+ const a27_0x4de872=a27_0x17a3;(function(_0x5aec45,_0x3848f1){const _0x54adf3=a27_0x17a3,_0x152923=_0x5aec45();while(!![]){try{const _0x332ce1=parseInt(_0x54adf3(0x1ce))/0x1*(-parseInt(_0x54adf3(0x1dd))/0x2)+parseInt(_0x54adf3(0x1cc))/0x3*(parseInt(_0x54adf3(0x1d2))/0x4)+parseInt(_0x54adf3(0x1dc))/0x5+parseInt(_0x54adf3(0x1d5))/0x6+parseInt(_0x54adf3(0x1ca))/0x7+-parseInt(_0x54adf3(0x1da))/0x8+-parseInt(_0x54adf3(0x1cb))/0x9*(parseInt(_0x54adf3(0x1cd))/0xa);if(_0x332ce1===_0x3848f1)break;else _0x152923['push'](_0x152923['shift']());}catch(_0x28d87b){_0x152923['push'](_0x152923['shift']());}}}(a27_0x3e0c,0x69228));function a27_0x17a3(_0x4d60a1,_0x31bccf){_0x4d60a1=_0x4d60a1-0x1c8;const _0x3e0c01=a27_0x3e0c();let _0x17a372=_0x3e0c01[_0x4d60a1];return _0x17a372;}function a27_0x3e0c(){const _0x417811=['914ltXGdj','map','code','name','list','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','description','1248401TIAGzF','72grtxDd','39qqKxvw','133270NVJrKd','1437lEMoNA','datasetKey','str','split','9476gpapsx','dbtableConfig','string','3326232fdfGCd','dataset','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','allFields','source','3084864CFswJx','length','4080265XzdtdH'];a27_0x3e0c=function(){return _0x417811;};return a27_0x3e0c();}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a27_0x4de872(0x1d6),'command':a27_0x4de872(0x1e1),'description':a27_0x4de872(0x1c8),'risk':'read','flags':[{'name':a27_0x4de872(0x1e0),'type':a27_0x4de872(0x1d4),'description':'Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'},{...CODE_FLAG,'required':![],'description':a27_0x4de872(0x1d7)}],async 'execute'(_0x8b2706){const _0x4a2513=a27_0x4de872,_0x12b634=_0x8b2706['str'](_0x4a2513(0x1e0)),_0x30ff79=_0x8b2706[_0x4a2513(0x1d0)](_0x4a2513(0x1df)),_0x5b3137=await listDatasets(_0x8b2706['appCode'],{..._0x12b634&&{'name':_0x12b634},..._0x30ff79&&{'code':_0x30ff79}});return{'ok':!![],'data':{'total':_0x5b3137[_0x4a2513(0x1db)],'datasets':_0x5b3137[_0x4a2513(0x1de)](_0x51dd43=>{const _0x142d89=_0x4a2513,_0x1a57c1=_0x51dd43[_0x142d89(0x1d3)]??{};return{'id':_0x51dd43['id'],'code':_0x51dd43[_0x142d89(0x1df)],'name':_0x51dd43[_0x142d89(0x1e0)],'source':_0x51dd43[_0x142d89(0x1d9)],'description':_0x51dd43[_0x142d89(0x1c9)],'table':_0x1a57c1['tableName'],'datasetKey':_0x1a57c1[_0x142d89(0x1cf)],'pk':_0x1a57c1['pkField'],'fields':_0x1a57c1[_0x142d89(0x1d8)]?_0x1a57c1[_0x142d89(0x1d8)][_0x142d89(0x1d1)](',')['map'](_0x44809b=>_0x44809b['trim']()):[]};})}};}};
@@ -1 +1 @@
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
+ function a28_0x550c(_0x2dd578,_0xc05414){_0x2dd578=_0x2dd578-0x1bc;const _0x5265dc=a28_0x5265();let _0x550ced=_0x5265dc[_0x2dd578];return _0x550ced;}const a28_0x6f12d2=a28_0x550c;(function(_0x19ef28,_0x42772e){const _0x1899f4=a28_0x550c,_0x1a7f34=_0x19ef28();while(!![]){try{const _0x1c1c87=-parseInt(_0x1899f4(0x1be))/0x1+-parseInt(_0x1899f4(0x1cb))/0x2*(parseInt(_0x1899f4(0x1c8))/0x3)+-parseInt(_0x1899f4(0x1ce))/0x4*(-parseInt(_0x1899f4(0x1c6))/0x5)+parseInt(_0x1899f4(0x1c1))/0x6*(-parseInt(_0x1899f4(0x1bf))/0x7)+-parseInt(_0x1899f4(0x1c5))/0x8+parseInt(_0x1899f4(0x1c3))/0x9*(parseInt(_0x1899f4(0x1bc))/0xa)+parseInt(_0x1899f4(0x1c9))/0xb;if(_0x1c1c87===_0x42772e)break;else _0x1a7f34['push'](_0x1a7f34['shift']());}catch(_0x248acc){_0x1a7f34['push'](_0x1a7f34['shift']());}}}(a28_0x5265,0x44fa2));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a28_0x6f12d2(0x1c7);function a28_0x5265(){const _0xb2b3af=['#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','580953GorCId','4174291vTzDJD','read','2JfQUme','str','trim','4aURiwR','dataset','20CvrDuA','code','184275gZyisf','7FoNfeU','sdk-doc','1534878hdwxCH','appCode','1890288nPADrr','string','1045104cTbZnH','1236810CuiXWP'];a28_0x5265=function(){return _0xb2b3af;};return a28_0x5265();}export function formatDatasetSdkMarkdown(_0x3d37d2){const _0x10214c=a28_0x6f12d2,_0x205ca3=typeof _0x3d37d2===_0x10214c(0x1c4)?_0x3d37d2[_0x10214c(0x1cd)]():'';return _0x205ca3||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a28_0x6f12d2(0x1cf),'command':a28_0x6f12d2(0x1c0),'description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':a28_0x6f12d2(0x1ca),'flags':[{...CODE_FLAG,'description':'Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.'}],async 'execute'(_0x415d93){const _0x705682=a28_0x6f12d2,_0x4bf226=_0x415d93[_0x705682(0x1cc)](_0x705682(0x1bd)),_0x55e556=await getDatasetSdkUsageDoc(_0x4bf226,_0x415d93[_0x705682(0x1c2)]);return{'ok':!![],'data':{'code':_0x4bf226,'appCode':_0x415d93[_0x705682(0x1c2)],'markdown':formatDatasetSdkMarkdown(_0x55e556)}};}};
@@ -1 +1 @@
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
+ const a29_0x49bb57=a29_0x57ee;(function(_0x3ef640,_0x43cb3d){const _0x4ef101=a29_0x57ee,_0x1a4458=_0x3ef640();while(!![]){try{const _0x3a2436=parseInt(_0x4ef101(0x1aa))/0x1*(parseInt(_0x4ef101(0x1ba))/0x2)+-parseInt(_0x4ef101(0x175))/0x3*(parseInt(_0x4ef101(0x1b8))/0x4)+parseInt(_0x4ef101(0x1b1))/0x5+parseInt(_0x4ef101(0x15f))/0x6+parseInt(_0x4ef101(0x1a9))/0x7*(-parseInt(_0x4ef101(0x1a8))/0x8)+-parseInt(_0x4ef101(0x177))/0x9*(-parseInt(_0x4ef101(0x187))/0xa)+parseInt(_0x4ef101(0x196))/0xb;if(_0x3a2436===_0x43cb3d)break;else _0x1a4458['push'](_0x1a4458['shift']());}catch(_0x3d2cd8){_0x1a4458['push'](_0x1a4458['shift']());}}}(a29_0x3413,0x74533));import a29_0x2cc118 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a29_0x57ee(_0x3aa77b,_0x470506){_0x3aa77b=_0x3aa77b-0x15f;const _0x3413b4=a29_0x3413();let _0x57ee19=_0x3413b4[_0x3aa77b];return _0x57ee19;}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_0x3413(){const _0x15dd89=['\x20\x20Config\x20Files','format','platform','(not\x20found)','\x20commands)','2706905YTlNtc','(none)','(set,\x20length=','serviceCount','pageSize','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','empty','31896HURBXN','padEnd','2kLkrgL','330528olexRH','ClientAk','✓\x20Loaded','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','registryPath','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','(no\x20file)','path','⚠\x20Empty','Global','\x20\x20Merged\x20Config','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','currentApp','defaultApp','gray','name','bold','length','commandCount','237yZdmUp','\x20\x20Config\x20JSON','14220xeDdYo','version','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(removed\x20—\x20cookie\x20auth\x20disabled)','✗\x20Invalid\x20JSON','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','verbose','repeat','missing','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','(default:\x20','380iKQqrc','message','\x20\x20API\x20Endpoints','riskLevel','\x20\x20Auth','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Session\x20check:\x20\x20\x20','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','source','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','services','serviceCode','✓\x20Valid\x20JSON','Diagnose\x20CLI\x20configuration\x20and\x20environment','2719618KUMAmc','yellow','\x20(legacy/compat\x20only)','appCode','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','(default)','log','\x20(accessKey)','\x20\x20─','locale','read','(unnamed)','red','status','Project','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','24TNXmpo','1469594IecTsw','832492meiUuH','green'];a29_0x3413=function(){return _0x15dd89;};return a29_0x3413();}async function execute(_0x241b41){const _0x5aed2d=a29_0x57ee,_0x431b=getCliVersion(),_0x418618=buildConfigFromFlags({});await initGlobalEnvironment(_0x418618),console['log'](),console[_0x5aed2d(0x19e)](a29_0x2cc118['bold'](CLI_BIN_NAME+'\x20doctor')),console[_0x5aed2d(0x19e)](a29_0x2cc118['gray']('─'[_0x5aed2d(0x183)](0x32))),console[_0x5aed2d(0x19e)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x431b),console[_0x5aed2d(0x19e)](_0x5aed2d(0x16c)+process[_0x5aed2d(0x178)]),console[_0x5aed2d(0x19e)](_0x5aed2d(0x19c)+process[_0x5aed2d(0x1ae)]+'\x20'+process['arch']),console[_0x5aed2d(0x19e)](),console[_0x5aed2d(0x19e)](a29_0x2cc118[_0x5aed2d(0x172)](_0x5aed2d(0x1ac))),console[_0x5aed2d(0x19e)](a29_0x2cc118[_0x5aed2d(0x170)](_0x5aed2d(0x1a0)[_0x5aed2d(0x183)](0x1e)));const _0x2b4972=getGlobalConfigPath(),_0x29e335=getProjectConfigPath();console[_0x5aed2d(0x19e)](_0x5aed2d(0x16b)+(_0x2b4972||a29_0x2cc118[_0x5aed2d(0x170)](_0x5aed2d(0x1af)))),console[_0x5aed2d(0x19e)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x29e335||a29_0x2cc118[_0x5aed2d(0x170)]('(not\x20found)'))),console['log'](),console['log'](a29_0x2cc118[_0x5aed2d(0x172)](_0x5aed2d(0x176))),console['log'](a29_0x2cc118[_0x5aed2d(0x170)](_0x5aed2d(0x1a0)[_0x5aed2d(0x183)](0x1e)));const _0x2a7fa5=(_0x2cad93,_0x37322c)=>{const _0x114509=_0x5aed2d;if(!_0x37322c){console[_0x114509(0x19e)]('\x20\x20'+_0x2cad93[_0x114509(0x1b9)](0x11)+'\x20'+a29_0x2cc118['gray'](_0x114509(0x166)));return;}const _0x2656d4=inspectCliConfigJsonFile(_0x37322c);if(_0x2656d4[_0x114509(0x1a5)]==='ok')console['log']('\x20\x20'+_0x2cad93[_0x114509(0x1b9)](0x11)+'\x20'+a29_0x2cc118[_0x114509(0x1ab)](_0x114509(0x194)));else{if(_0x2656d4[_0x114509(0x1a5)]===_0x114509(0x1b7))console['log']('\x20\x20'+_0x2cad93[_0x114509(0x1b9)](0x11)+'\x20'+a29_0x2cc118[_0x114509(0x197)](_0x114509(0x191)));else _0x2656d4[_0x114509(0x1a5)]===_0x114509(0x184)?console[_0x114509(0x19e)]('\x20\x20'+_0x2cad93['padEnd'](0x11)+'\x20'+a29_0x2cc118[_0x114509(0x170)](_0x114509(0x181))):(console[_0x114509(0x19e)]('\x20\x20'+_0x2cad93[_0x114509(0x1b9)](0x11)+'\x20'+a29_0x2cc118[_0x114509(0x1a4)](_0x114509(0x17d))),console[_0x114509(0x19e)]('\x20\x20'+''[_0x114509(0x1b9)](0x11)+'\x20'+a29_0x2cc118['red'](_0x2656d4[_0x114509(0x188)])));}};_0x2a7fa5(_0x5aed2d(0x169),_0x2b4972),_0x2a7fa5(_0x5aed2d(0x1a6),_0x29e335),console[_0x5aed2d(0x19e)](),console['log'](a29_0x2cc118[_0x5aed2d(0x172)](_0x5aed2d(0x16a))),console[_0x5aed2d(0x19e)](a29_0x2cc118[_0x5aed2d(0x170)](_0x5aed2d(0x1a0)['repeat'](0x1e))),console[_0x5aed2d(0x19e)](_0x5aed2d(0x19a)+(_0x418618[_0x5aed2d(0x199)]||a29_0x2cc118[_0x5aed2d(0x1a4)]('(not\x20set)'))),console['log'](_0x5aed2d(0x17b)+_0x418618[_0x5aed2d(0x165)]);const _0x2973dc=isLegacyCompatConfigKey(_0x5aed2d(0x1a1))?a29_0x2cc118['gray'](_0x418618[_0x5aed2d(0x1a1)]+_0x5aed2d(0x198)):_0x418618[_0x5aed2d(0x1a1)];console[_0x5aed2d(0x19e)](_0x5aed2d(0x1a7)+_0x2973dc),console['log'](_0x5aed2d(0x17f)+(_0x418618[_0x5aed2d(0x16f)]||a29_0x2cc118[_0x5aed2d(0x170)](_0x5aed2d(0x1b2)))),console[_0x5aed2d(0x19e)](_0x5aed2d(0x19b)+(_0x418618[_0x5aed2d(0x16e)]||a29_0x2cc118['gray']('(none)'))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x418618[_0x5aed2d(0x1ad)]||a29_0x2cc118['gray'](_0x5aed2d(0x186)+DEFAULT_CONFIG_VALUES[_0x5aed2d(0x1ad)]+')'))),console[_0x5aed2d(0x19e)](_0x5aed2d(0x180)+(_0x418618[_0x5aed2d(0x1b5)]??a29_0x2cc118['gray'](_0x5aed2d(0x19d)))),console[_0x5aed2d(0x19e)](_0x5aed2d(0x185)+_0x418618[_0x5aed2d(0x18a)]),console[_0x5aed2d(0x19e)](_0x5aed2d(0x17e)+_0x418618[_0x5aed2d(0x182)]),console[_0x5aed2d(0x19e)](_0x5aed2d(0x16d)+AUTH_MODE[_0x5aed2d(0x160)]),console[_0x5aed2d(0x19e)]('\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'+(_0x418618[_0x5aed2d(0x17a)]?a29_0x2cc118[_0x5aed2d(0x1ab)](_0x5aed2d(0x1b3)+_0x418618[_0x5aed2d(0x17a)][_0x5aed2d(0x173)]+')'):a29_0x2cc118[_0x5aed2d(0x170)](_0x5aed2d(0x1b2)))),console['log'](),console[_0x5aed2d(0x19e)](a29_0x2cc118[_0x5aed2d(0x172)](_0x5aed2d(0x189))),console[_0x5aed2d(0x19e)](a29_0x2cc118[_0x5aed2d(0x170)](_0x5aed2d(0x1a0)[_0x5aed2d(0x183)](0x1e))),console[_0x5aed2d(0x19e)](_0x5aed2d(0x190)+getApiDomain()),console[_0x5aed2d(0x19e)](_0x5aed2d(0x1b6)+getUserDomain()),console[_0x5aed2d(0x19e)](_0x5aed2d(0x18c)+getRuntimeDomain()),console[_0x5aed2d(0x19e)](),console[_0x5aed2d(0x19e)](a29_0x2cc118['bold']('\x20\x20Service\x20Tree')),console[_0x5aed2d(0x19e)](a29_0x2cc118[_0x5aed2d(0x170)](_0x5aed2d(0x1a0)['repeat'](0x1e)));const _0x382aaa=inspectServiceRegistry();console['log'](_0x5aed2d(0x18e)+_0x382aaa[_0x5aed2d(0x163)]),console['log'](_0x5aed2d(0x179)+formatServiceRegistryStatus(_0x382aaa)),console[_0x5aed2d(0x19e)]('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x382aaa[_0x5aed2d(0x1b4)]),console[_0x5aed2d(0x19e)](_0x5aed2d(0x162)+_0x382aaa[_0x5aed2d(0x174)]);for(const _0x1224c8 of _0x382aaa[_0x5aed2d(0x192)]){console[_0x5aed2d(0x19e)]('\x20\x20'+(_0x1224c8[_0x5aed2d(0x193)]+':')['padEnd'](0x11)+'\x20'+(_0x1224c8[_0x5aed2d(0x171)]||a29_0x2cc118[_0x5aed2d(0x170)](_0x5aed2d(0x1a3)))+'\x20('+_0x1224c8[_0x5aed2d(0x174)]+_0x5aed2d(0x1b0)),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20Imported\x20from:\x20'+_0x1224c8[_0x5aed2d(0x18f)][_0x5aed2d(0x167)]);}return console[_0x5aed2d(0x19e)](),console[_0x5aed2d(0x19e)](a29_0x2cc118[_0x5aed2d(0x172)](_0x5aed2d(0x18b))),console[_0x5aed2d(0x19e)](a29_0x2cc118[_0x5aed2d(0x170)](_0x5aed2d(0x1a0)['repeat'](0x1e))),console[_0x5aed2d(0x19e)](_0x5aed2d(0x164)+a29_0x2cc118[_0x5aed2d(0x1ab)](AUTH_MODE['ClientAk']+_0x5aed2d(0x19f))),console[_0x5aed2d(0x19e)](_0x5aed2d(0x18d)+a29_0x2cc118['gray'](_0x5aed2d(0x17c))),console[_0x5aed2d(0x19e)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x1a5087){const _0x5201b6=a29_0x57ee;if(_0x1a5087[_0x5201b6(0x1a5)]==='ok')return a29_0x2cc118['green'](_0x5201b6(0x161));if(_0x1a5087[_0x5201b6(0x1a5)]===_0x5201b6(0x184))return a29_0x2cc118['gray'](_0x5201b6(0x1af));if(_0x1a5087['status']===_0x5201b6(0x1b7))return a29_0x2cc118['yellow'](_0x5201b6(0x168));return a29_0x2cc118['red']('✗\x20Invalid'+(_0x1a5087[_0x5201b6(0x188)]?':\x20'+_0x1a5087[_0x5201b6(0x188)]:''));}export const doctorDefinition={'service':'doctor','command':'check','description':a29_0x49bb57(0x195),'risk':a29_0x49bb57(0x1a2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};