@lovrabet/lovrabet-cli 2.1.9-beta.3 → 2.1.9

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_0x19af2b=a14_0x58ec;function a14_0x58ec(_0x6eb4b3,_0x44caff){_0x6eb4b3=_0x6eb4b3-0x13f;const _0x392bc3=a14_0x392b();let _0x58ec73=_0x392bc3[_0x6eb4b3];return _0x58ec73;}function a14_0x392b(){const _0x4d0aa9=['verbose','read','createdTime','694695PjWYpw','Get\x20BFF\x20script\x20details\x20by\x20ID','95dLqCMH','functionName','num','1503EYtNqs','bool','Script\x20ID','(none)','18tGTpvr','6024XikSia','4435770RtUolh','563885ECuyVM','20776CXpGqR','1207960Dsdshx','detail','201440RpHDum'];a14_0x392b=function(){return _0x4d0aa9;};return a14_0x392b();}(function(_0x41c3de,_0x561c0e){const _0x47ae61=a14_0x58ec,_0x2e7d63=_0x41c3de();while(!![]){try{const _0x17d604=parseInt(_0x47ae61(0x14c))/0x1*(parseInt(_0x47ae61(0x140))/0x2)+-parseInt(_0x47ae61(0x14a))/0x3+parseInt(_0x47ae61(0x144))/0x4+-parseInt(_0x47ae61(0x146))/0x5*(parseInt(_0x47ae61(0x13f))/0x6)+parseInt(_0x47ae61(0x142))/0x7+-parseInt(_0x47ae61(0x143))/0x8*(-parseInt(_0x47ae61(0x14f))/0x9)+-parseInt(_0x47ae61(0x141))/0xa;if(_0x17d604===_0x561c0e)break;else _0x2e7d63['push'](_0x2e7d63['shift']());}catch(_0x4f2473){_0x2e7d63['push'](_0x2e7d63['shift']());}}}(a14_0x392b,0x4acca));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':'bff','command':a14_0x19af2b(0x145),'description':a14_0x19af2b(0x14b),'risk':a14_0x19af2b(0x148),'flags':[{...ID_FLAG,'description':a14_0x19af2b(0x151)},VERBOSE_FLAG],async 'execute'(_0x5dcd94){const _0x4599ac=a14_0x19af2b,_0x40cbd4=await getBffScriptInfo(_0x5dcd94[_0x4599ac(0x14e)]('id')),_0x375718=_0x5dcd94[_0x4599ac(0x150)](_0x4599ac(0x147));if(_0x375718)return{'ok':!![],'data':_0x40cbd4};return{'ok':!![],'data':{'id':_0x40cbd4['id'],'appCode':_0x40cbd4['appCode'],'functionName':_0x40cbd4[_0x4599ac(0x14d)]??'','scriptType':_0x40cbd4['scriptType'],'description':_0x40cbd4['description']||_0x4599ac(0x152),'createdTime':_0x40cbd4[_0x4599ac(0x149)]??'','updatedTime':_0x40cbd4['updatedTime']??''}};}};
1
+ const a14_0x45f7bc=a14_0xd28b;(function(_0x4445b1,_0xa4345d){const _0x4f0451=a14_0xd28b,_0x259754=_0x4445b1();while(!![]){try{const _0x2bdfc2=parseInt(_0x4f0451(0x1e1))/0x1+parseInt(_0x4f0451(0x1e3))/0x2*(parseInt(_0x4f0451(0x1e9))/0x3)+-parseInt(_0x4f0451(0x1e4))/0x4*(-parseInt(_0x4f0451(0x1de))/0x5)+-parseInt(_0x4f0451(0x1e6))/0x6+-parseInt(_0x4f0451(0x1e7))/0x7*(parseInt(_0x4f0451(0x1dc))/0x8)+-parseInt(_0x4f0451(0x1ea))/0x9+-parseInt(_0x4f0451(0x1da))/0xa*(-parseInt(_0x4f0451(0x1ec))/0xb);if(_0x2bdfc2===_0xa4345d)break;else _0x259754['push'](_0x259754['shift']());}catch(_0x497d72){_0x259754['push'](_0x259754['shift']());}}}(a14_0x514b,0x3d322));function a14_0xd28b(_0x519b54,_0x405ae2){_0x519b54=_0x519b54-0x1d9;const _0x514b5f=a14_0x514b();let _0xd28b9a=_0x514b5f[_0x519b54];return _0xd28b9a;}function a14_0x514b(){const _0x10e511=['24MuxFzA','bool','2759856MpBRAS','384454DftypT','num','9DvzdcN','1887786gpCUEL','read','22KboxuU','updatedTime','Script\x20ID','(none)','verbose','2712860aAkOyc','scriptType','72JUUpzc','Get\x20BFF\x20script\x20details\x20by\x20ID','377015gJfLNV','appCode','description','187058bDdclW','functionName','155092sakGJY'];a14_0x514b=function(){return _0x10e511;};return a14_0x514b();}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':a14_0x45f7bc(0x1dd),'risk':a14_0x45f7bc(0x1eb),'flags':[{...ID_FLAG,'description':a14_0x45f7bc(0x1ee)},VERBOSE_FLAG],async 'execute'(_0x23d07c){const _0x3d2ce1=a14_0x45f7bc,_0x38b216=await getBffScriptInfo(_0x23d07c[_0x3d2ce1(0x1e8)]('id')),_0x193fe7=_0x23d07c[_0x3d2ce1(0x1e5)](_0x3d2ce1(0x1d9));if(_0x193fe7)return{'ok':!![],'data':_0x38b216};return{'ok':!![],'data':{'id':_0x38b216['id'],'appCode':_0x38b216[_0x3d2ce1(0x1df)],'functionName':_0x38b216[_0x3d2ce1(0x1e2)]??'','scriptType':_0x38b216[_0x3d2ce1(0x1db)],'description':_0x38b216[_0x3d2ce1(0x1e0)]||_0x3d2ce1(0x1ef),'createdTime':_0x38b216['createdTime']??'','updatedTime':_0x38b216[_0x3d2ce1(0x1ed)]??''}};}};
@@ -1 +1 @@
1
- function a15_0x32c1(){const _0x4443d8=['8872JdmWKT','BFF\x20executed\x20in\x20','275648MyHnGC','1405KJfrMP','str','16930ETGExJ','5286lDJxHt','271019WmWMpe','2922018YKKyqK','2dWSIaV','1666LEIqgM','945KhADdN','BFF\x20function\x20name\x20to\x20execute','now','name','770745aDyuQA'];a15_0x32c1=function(){return _0x4443d8;};return a15_0x32c1();}const a15_0x2702f8=a15_0x5f54;(function(_0x9619b8,_0x21da3e){const _0x55f7a8=a15_0x5f54,_0x1dbe30=_0x9619b8();while(!![]){try{const _0x702870=parseInt(_0x55f7a8(0xb2))/0x1+parseInt(_0x55f7a8(0xb4))/0x2*(parseInt(_0x55f7a8(0xaa))/0x3)+parseInt(_0x55f7a8(0xad))/0x4+-parseInt(_0x55f7a8(0xae))/0x5*(parseInt(_0x55f7a8(0xb1))/0x6)+-parseInt(_0x55f7a8(0xb5))/0x7*(parseInt(_0x55f7a8(0xab))/0x8)+parseInt(_0x55f7a8(0xb6))/0x9*(-parseInt(_0x55f7a8(0xb0))/0xa)+parseInt(_0x55f7a8(0xb3))/0xb;if(_0x702870===_0x21da3e)break;else _0x1dbe30['push'](_0x1dbe30['shift']());}catch(_0x5ebde3){_0x1dbe30['push'](_0x1dbe30['shift']());}}}(a15_0x32c1,0x2a4a0));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_0x5f54(_0x5dc945,_0x48b384){_0x5dc945=_0x5dc945-0xa7;const _0x32c16e=a15_0x32c1();let _0x5f54d4=_0x32c16e[_0x5dc945];return _0x5f54d4;}export const bffExec={'service':'bff','command':'exec','description':'Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':a15_0x2702f8(0xa7)},PARAMS_FLAG],async 'execute'(_0x225fc0){const _0xbf2c4d=a15_0x2702f8,_0x5c6ef0=parseJsonParams(_0x225fc0[_0xbf2c4d(0xaf)]('params')),_0x2e6a48=Date[_0xbf2c4d(0xa8)](),_0x45134f=await executeSdkBff(_0x225fc0[_0xbf2c4d(0xaf)](_0xbf2c4d(0xa9)),_0x5c6ef0),_0x3fdec6=Date[_0xbf2c4d(0xa8)]()-_0x2e6a48;return{'ok':!![],'data':{'result':_0x45134f,'elapsed':_0x3fdec6},'message':_0xbf2c4d(0xac)+_0x3fdec6+'ms'};}};
1
+ function a15_0x5ed3(_0x39e77d,_0x445b80){_0x39e77d=_0x39e77d-0x188;const _0x510d22=a15_0x510d();let _0x5ed32f=_0x510d22[_0x39e77d];return _0x5ed32f;}const a15_0x3342a1=a15_0x5ed3;(function(_0x280557,_0x3fa959){const _0x2593f7=a15_0x5ed3,_0x4d6c7c=_0x280557();while(!![]){try{const _0x25d234=parseInt(_0x2593f7(0x194))/0x1+-parseInt(_0x2593f7(0x195))/0x2*(parseInt(_0x2593f7(0x192))/0x3)+parseInt(_0x2593f7(0x198))/0x4+parseInt(_0x2593f7(0x18a))/0x5*(-parseInt(_0x2593f7(0x18c))/0x6)+parseInt(_0x2593f7(0x197))/0x7*(-parseInt(_0x2593f7(0x196))/0x8)+parseInt(_0x2593f7(0x19b))/0x9+parseInt(_0x2593f7(0x190))/0xa;if(_0x25d234===_0x3fa959)break;else _0x4d6c7c['push'](_0x4d6c7c['shift']());}catch(_0x485308){_0x4d6c7c['push'](_0x4d6c7c['shift']());}}}(a15_0x510d,0x219ff));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_0x510d(){const _0x3ba572=['read','1815500sBcNCG','name','500097ACxwSO','now','183534pocyeG','2MQXliD','9176yiQJZE','959oAEoMk','187464FzUQRG','bff','BFF\x20executed\x20in\x20','2008773qDOGlm','str','exec','2290EKNKjH','BFF\x20function\x20name\x20to\x20execute','2274NMKQKJ','params','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name'];a15_0x510d=function(){return _0x3ba572;};return a15_0x510d();}export const bffExec={'service':a15_0x3342a1(0x199),'command':a15_0x3342a1(0x189),'description':a15_0x3342a1(0x18e),'risk':a15_0x3342a1(0x18f),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x3342a1(0x18b)},PARAMS_FLAG],async 'execute'(_0xfe52b2){const _0x4648f9=a15_0x3342a1,_0x27351a=parseJsonParams(_0xfe52b2[_0x4648f9(0x188)](_0x4648f9(0x18d))),_0x4de0a1=Date[_0x4648f9(0x193)](),_0x34ec04=await executeSdkBff(_0xfe52b2['str'](_0x4648f9(0x191)),_0x27351a),_0x3a1f51=Date[_0x4648f9(0x193)]()-_0x4de0a1;return{'ok':!![],'data':{'result':_0x34ec04,'elapsed':_0x3a1f51},'message':_0x4648f9(0x19a)+_0x3a1f51+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x4412ee,_0x753d48){const _0x5bff11=a16_0x156d,_0x324812=_0x4412ee();while(!![]){try{const _0x24bdcb=-parseInt(_0x5bff11(0x135))/0x1*(parseInt(_0x5bff11(0x130))/0x2)+-parseInt(_0x5bff11(0x133))/0x3+parseInt(_0x5bff11(0x137))/0x4*(-parseInt(_0x5bff11(0x134))/0x5)+-parseInt(_0x5bff11(0x139))/0x6+-parseInt(_0x5bff11(0x132))/0x7*(parseInt(_0x5bff11(0x136))/0x8)+-parseInt(_0x5bff11(0x138))/0x9+parseInt(_0x5bff11(0x131))/0xa;if(_0x24bdcb===_0x753d48)break;else _0x324812['push'](_0x324812['shift']());}catch(_0x9f2ed1){_0x324812['push'](_0x324812['shift']());}}}(a16_0x1c34,0xddd27));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a16_0x156d(_0x212ff3,_0x55efa2){_0x212ff3=_0x212ff3-0x130;const _0x1c34f=a16_0x1c34();let _0x156dcc=_0x1c34f[_0x212ff3];return _0x156dcc;}function a16_0x1c34(){const _0x4b462e=['28OTLKop','404120JwFnix','156IXiiik','11229876CpMlUr','7280472CyCPKQ','62500WzEfhq','75485260mFqWYe','161ZjsJdZ','2324565PSpqpA','175265NbZHCK'];a16_0x1c34=function(){return _0x4b462e;};return a16_0x1c34();}export const bffDefinitions=[bffDetail,bffExec];
1
+ (function(_0x5fc123,_0x5b8b9d){const _0x5cc625=a16_0x2981,_0x12d44d=_0x5fc123();while(!![]){try{const _0x576627=-parseInt(_0x5cc625(0x1ba))/0x1+-parseInt(_0x5cc625(0x1b7))/0x2*(-parseInt(_0x5cc625(0x1b8))/0x3)+parseInt(_0x5cc625(0x1c1))/0x4*(-parseInt(_0x5cc625(0x1bc))/0x5)+-parseInt(_0x5cc625(0x1c0))/0x6*(parseInt(_0x5cc625(0x1be))/0x7)+-parseInt(_0x5cc625(0x1c2))/0x8*(parseInt(_0x5cc625(0x1b9))/0x9)+parseInt(_0x5cc625(0x1bd))/0xa+-parseInt(_0x5cc625(0x1bb))/0xb*(-parseInt(_0x5cc625(0x1bf))/0xc);if(_0x576627===_0x5b8b9d)break;else _0x12d44d['push'](_0x12d44d['shift']());}catch(_0x1d3d31){_0x12d44d['push'](_0x12d44d['shift']());}}}(a16_0x69f1,0x96fc9));import{bffDetail}from'../../commands/bff/detail.js';function a16_0x2981(_0x112ea4,_0x2f3518){_0x112ea4=_0x112ea4-0x1b7;const _0x69f167=a16_0x69f1();let _0x2981ed=_0x69f167[_0x112ea4];return _0x2981ed;}import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];function a16_0x69f1(){const _0x309d02=['2rWnYKe','1464996KPaUFb','10391391TTyOkE','598242tRnpHL','541387KUYYpv','52010izucZq','6701970JAEmKh','7mLfuwr','516eKLNVS','553332KLOhWI','312hjUcpk','8AeCBHu'];a16_0x69f1=function(){return _0x309d02;};return a16_0x69f1();}
@@ -1 +1 @@
1
- function a17_0x1b5f(){const _0x110035=['5354605olsvOs','log','pipe','14868310RMYXpK','write','error','inherit','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','apiError','\x20-g\x20-y','nonInteractive','4GuDSEK','setLogPath','56IThZbM','90215VdgJBn','npx\x20skills\x20add\x20failed:\x20','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','cli-skill','info','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','37959QXekNL','104DZXIKt','56134012toQDKd','CLI\x20Built-in\x20Skill\x20installed','unknown','cwd','5011167uDbDvm','1525401tHvmyt','install','6suTUwD'];a17_0x1b5f=function(){return _0x110035;};return a17_0x1b5f();}function a17_0x5dfe(_0x393576,_0x17bdb4){_0x393576=_0x393576-0x114;const _0x1b5f21=a17_0x1b5f();let _0x5dfe8d=_0x1b5f21[_0x393576];return _0x5dfe8d;}const a17_0x5e1d08=a17_0x5dfe;(function(_0x39e1e4,_0x4ee1af){const _0x40bce1=a17_0x5dfe,_0x2315dd=_0x39e1e4();while(!![]){try{const _0xc762a9=-parseInt(_0x40bce1(0x131))/0x1*(parseInt(_0x40bce1(0x12e))/0x2)+-parseInt(_0x40bce1(0x119))/0x3*(-parseInt(_0x40bce1(0x11a))/0x4)+-parseInt(_0x40bce1(0x123))/0x5*(parseInt(_0x40bce1(0x122))/0x6)+-parseInt(_0x40bce1(0x11f))/0x7+-parseInt(_0x40bce1(0x130))/0x8*(parseInt(_0x40bce1(0x120))/0x9)+-parseInt(_0x40bce1(0x126))/0xa+parseInt(_0x40bce1(0x11b))/0xb;if(_0xc762a9===_0x4ee1af)break;else _0x2315dd['push'](_0x2315dd['shift']());}catch(_0x25b0b6){_0x2315dd['push'](_0x2315dd['shift']());}}}(a17_0x1b5f,0xc1420));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a17_0x5e1d08(0x116),'command':a17_0x5e1d08(0x121),'description':a17_0x5e1d08(0x12a),'risk':a17_0x5e1d08(0x127),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x42a26a){const _0x228dea=a17_0x5e1d08;logger[_0x228dea(0x12f)](process['cwd']()),logger[_0x228dea(0x117)]('cli-skill-install','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.');const {LOVRABET_SKILL_SOURCE:_0x2c70f8,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x5bde8c,runNpxSkillsAddGlobal:_0x35bde9}=await import('../../skills/npx-skills-add.js'),_0x3810e9=_0x42a26a[_0x228dea(0x12d)]?_0x228dea(0x125):_0x228dea(0x129);console[_0x228dea(0x124)](_0x228dea(0x118)+_0x2c70f8+'\x20-g\x20-y)...');const _0x587b0f=_0x35bde9(process[_0x228dea(0x11e)](),_0x2c70f8,{'stdio':_0x3810e9});if(_0x587b0f['skipped'])console['log']('Skipped\x20npx\x20('+_0x5bde8c+_0x228dea(0x115));else{if(_0x587b0f['ok'])console[_0x228dea(0x124)](_0x228dea(0x11c));else throw CliErrors[_0x228dea(0x12b)](_0x228dea(0x114)+(_0x587b0f[_0x228dea(0x128)]||_0x228dea(0x11d)),'Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20'+_0x2c70f8+_0x228dea(0x12c));}return{'ok':!![]};}}];
1
+ function a17_0x4d20(){const _0x57cdc1=['unknown','cli-skill-install','48097SZEtzv','write','90tcYkaZ','cwd','681820bEWoxL','8OCDViK','7375865cgFGMP','36861383ryjBxj','1701722jDHLrn','1043208oscoRi','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','apiError','12lrlumh','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','\x20-g\x20-y)...','21liSdbb','pipe','4KfItdR','Skipped\x20npx\x20(','cli-skill','setLogPath','\x20-g\x20-y','119012DDibhg','log','info','30iKlKZj'];a17_0x4d20=function(){return _0x57cdc1;};return a17_0x4d20();}const a17_0x5a1c90=a17_0x56ca;(function(_0x5e1e16,_0x142dbe){const _0x3649ec=a17_0x56ca,_0x5521c5=_0x5e1e16();while(!![]){try{const _0x17955c=parseInt(_0x3649ec(0x173))/0x1+-parseInt(_0x3649ec(0x169))/0x2*(-parseInt(_0x3649ec(0x17f))/0x3)+-parseInt(_0x3649ec(0x164))/0x4*(-parseInt(_0x3649ec(0x175))/0x5)+-parseInt(_0x3649ec(0x16c))/0x6*(parseInt(_0x3649ec(0x16f))/0x7)+-parseInt(_0x3649ec(0x174))/0x8*(parseInt(_0x3649ec(0x178))/0x9)+-parseInt(_0x3649ec(0x171))/0xa*(-parseInt(_0x3649ec(0x177))/0xb)+-parseInt(_0x3649ec(0x17c))/0xc*(parseInt(_0x3649ec(0x176))/0xd);if(_0x17955c===_0x142dbe)break;else _0x5521c5['push'](_0x5521c5['shift']());}catch(_0x5c865d){_0x5521c5['push'](_0x5521c5['shift']());}}}(a17_0x4d20,0xef47f));function a17_0x56ca(_0x13da01,_0x6c532b){_0x13da01=_0x13da01-0x163;const _0x4d20c7=a17_0x4d20();let _0x56ca09=_0x4d20c7[_0x13da01];return _0x56ca09;}import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a17_0x5a1c90(0x166),'command':'install','description':'Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','risk':a17_0x5a1c90(0x170),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x608a4a){const _0x34170f=a17_0x5a1c90;logger[_0x34170f(0x167)](process[_0x34170f(0x172)]()),logger[_0x34170f(0x16b)](_0x34170f(0x16e),_0x34170f(0x17d));const {LOVRABET_SKILL_SOURCE:_0x1fb0cb,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x15610e,runNpxSkillsAddGlobal:_0x1d2e87}=await import('../../skills/npx-skills-add.js'),_0x3b93c0=_0x608a4a['nonInteractive']?_0x34170f(0x163):'inherit';console['log']('Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20'+_0x1fb0cb+_0x34170f(0x17e));const _0x74d21c=_0x1d2e87(process[_0x34170f(0x172)](),_0x1fb0cb,{'stdio':_0x3b93c0});if(_0x74d21c['skipped'])console[_0x34170f(0x16a)](_0x34170f(0x165)+_0x15610e+_0x34170f(0x179));else{if(_0x74d21c['ok'])console[_0x34170f(0x16a)]('CLI\x20Built-in\x20Skill\x20installed');else throw CliErrors[_0x34170f(0x17b)]('npx\x20skills\x20add\x20failed:\x20'+(_0x74d21c['error']||_0x34170f(0x16d)),_0x34170f(0x17a)+_0x1fb0cb+_0x34170f(0x168));}return{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x10b343,_0x2f3a9b){const _0x30d3b3=a18_0xaebb,_0x40c11=_0x10b343();while(!![]){try{const _0x3f569b=-parseInt(_0x30d3b3(0x16b))/0x1*(parseInt(_0x30d3b3(0x17b))/0x2)+-parseInt(_0x30d3b3(0x169))/0x3+parseInt(_0x30d3b3(0x176))/0x4+parseInt(_0x30d3b3(0x179))/0x5+-parseInt(_0x30d3b3(0x16f))/0x6+parseInt(_0x30d3b3(0x17a))/0x7+parseInt(_0x30d3b3(0x168))/0x8;if(_0x3f569b===_0x2f3a9b)break;else _0x40c11['push'](_0x40c11['shift']());}catch(_0x417f20){_0x40c11['push'](_0x40c11['shift']());}}}(a18_0x1af9,0x86ad9));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';function a18_0xaebb(_0x37e340,_0x1b51ae){_0x37e340=_0x37e340-0x168;const _0x1af9d2=a18_0x1af9();let _0xaebb9e=_0x1af9d2[_0x37e340];return _0xaebb9e;}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';function a18_0x1af9(){const _0x4dbfb3=['global','project-default','2314180eLQKmn','\x20found).','global-default','1883260oAhvpH','6115039xwHKhO','3574TRmgNY','726312axOxaa','1479654rigast','project','37dQtayi','newConfigFileName','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.',',\x20or\x20run\x20`','4851510NlxUxg','inProject','Not\x20inside\x20a\x20project\x20(no\x20','validation','\x20(global)'];a18_0x1af9=function(){return _0x4dbfb3;};return a18_0x1af9();}import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x161cbd){const _0x1022cf=a18_0xaebb,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x10c505}=_0x161cbd;if(explicitGlobal&&explicitProject)throw CliErrors[_0x1022cf(0x172)](_0x1022cf(0x16d),'Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return'global';if(explicitProject)return'project';switch(_0x10c505){case _0x1022cf(0x178):return'global';case _0x1022cf(0x175):return _0x161cbd[_0x1022cf(0x170)]??isInProject()?_0x1022cf(0x16a):_0x1022cf(0x174);case'project-or-global-explicit':if(!(_0x161cbd[_0x1022cf(0x170)]??isInProject()))throw CliErrors[_0x1022cf(0x172)](_0x1022cf(0x171)+PRODUCT_CONFIG['newConfigFileName']+_0x1022cf(0x177),'Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG[_0x1022cf(0x16c)]+_0x1022cf(0x16e)+CLI_BIN_NAME+'\x20init`\x20first.');return _0x1022cf(0x16a);}}export function toScopeFlags(_0x2c1953){const _0x41345a=a18_0xaebb;return{'global':_0x2c1953===_0x41345a(0x174)};}export function formatScopeLabel(_0x5694f5){const _0x201fcb=a18_0xaebb;return _0x5694f5==='global'?_0x201fcb(0x173):'';}
1
+ function a18_0x15b6(_0x4c43f0,_0xc2b739){_0x4c43f0=_0x4c43f0-0x1aa;const _0x157fdf=a18_0x157f();let _0x15b697=_0x157fdf[_0x4c43f0];return _0x15b697;}(function(_0x5b4420,_0x2f32f8){const _0x8985f7=a18_0x15b6,_0x3c9695=_0x5b4420();while(!![]){try{const _0x114a34=parseInt(_0x8985f7(0x1af))/0x1+parseInt(_0x8985f7(0x1bd))/0x2+-parseInt(_0x8985f7(0x1b5))/0x3*(parseInt(_0x8985f7(0x1bb))/0x4)+parseInt(_0x8985f7(0x1b1))/0x5+-parseInt(_0x8985f7(0x1ae))/0x6*(-parseInt(_0x8985f7(0x1c0))/0x7)+parseInt(_0x8985f7(0x1aa))/0x8+-parseInt(_0x8985f7(0x1ba))/0x9;if(_0x114a34===_0x2f32f8)break;else _0x3c9695['push'](_0x3c9695['shift']());}catch(_0x37d306){_0x3c9695['push'](_0x3c9695['shift']());}}}(a18_0x157f,0xd6eab));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x1467db){const _0x313bff=a18_0x15b6,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x3c0cae}=_0x1467db;if(explicitGlobal&&explicitProject)throw CliErrors[_0x313bff(0x1b0)](_0x313bff(0x1b4),_0x313bff(0x1b3));if(explicitGlobal)return'global';if(explicitProject)return _0x313bff(0x1b2);switch(_0x3c0cae){case _0x313bff(0x1c2):return _0x313bff(0x1be);case _0x313bff(0x1b8):return _0x1467db[_0x313bff(0x1bf)]??isInProject()?_0x313bff(0x1b2):_0x313bff(0x1be);case _0x313bff(0x1b6):if(!(_0x1467db[_0x313bff(0x1bf)]??isInProject()))throw CliErrors[_0x313bff(0x1b0)](_0x313bff(0x1b7)+PRODUCT_CONFIG[_0x313bff(0x1ab)]+_0x313bff(0x1ad),_0x313bff(0x1ac)+PRODUCT_CONFIG[_0x313bff(0x1ab)]+_0x313bff(0x1bc)+CLI_BIN_NAME+_0x313bff(0x1b9));return _0x313bff(0x1b2);}}function a18_0x157f(){const _0x20c834=[',\x20or\x20run\x20`','1999638nhkCnj','global','inProject','63BiBZdi','\x20(global)','global-default','13920384gbSmXj','newConfigFileName','Add\x20--global\x20to\x20write\x20to\x20~/','\x20found).','274902YdcukQ','850013mDQkjb','validation','1822835alWSGk','project','Use\x20only\x20one\x20config\x20scope\x20flag.','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','4479ksiSBQ','project-or-global-explicit','Not\x20inside\x20a\x20project\x20(no\x20','project-default','\x20init`\x20first.','23759730pCACrQ','2268zdrJJS'];a18_0x157f=function(){return _0x20c834;};return a18_0x157f();}export function toScopeFlags(_0x4c9f15){return{'global':_0x4c9f15==='global'};}export function formatScopeLabel(_0x49b7d1){const _0x3bf8e7=a18_0x15b6;return _0x49b7d1===_0x3bf8e7(0x1be)?_0x3bf8e7(0x1c1):'';}
@@ -1 +1 @@
1
- (function(_0x62927a,_0x3e1029){const _0x57ed1d=a19_0x258a,_0x4a91ef=_0x62927a();while(!![]){try{const _0x177f4a=-parseInt(_0x57ed1d(0x10d))/0x1+-parseInt(_0x57ed1d(0x106))/0x2*(-parseInt(_0x57ed1d(0x110))/0x3)+-parseInt(_0x57ed1d(0xf4))/0x4*(-parseInt(_0x57ed1d(0xf6))/0x5)+-parseInt(_0x57ed1d(0xfc))/0x6+-parseInt(_0x57ed1d(0x10b))/0x7*(-parseInt(_0x57ed1d(0xfe))/0x8)+-parseInt(_0x57ed1d(0x10c))/0x9+parseInt(_0x57ed1d(0xfb))/0xa;if(_0x177f4a===_0x3e1029)break;else _0x4a91ef['push'](_0x4a91ef['shift']());}catch(_0x52f202){_0x4a91ef['push'](_0x4a91ef['shift']());}}}(a19_0x44c4,0x2327e));function a19_0x258a(_0x52424a,_0x2b6a9e){_0x52424a=_0x52424a-0xf3;const _0x44c472=a19_0x44c4();let _0x258a1b=_0x44c472[_0x52424a];return _0x258a1b;}import{CliErrors}from'../../errors.js';function isSet(_0x472047,_0x3fdbbc){const _0x5dcb13=a19_0x258a,_0x1a3610=_0x472047[_0x5dcb13(0x109)](_0x3fdbbc);return _0x1a3610!==undefined&&_0x1a3610!==''&&_0x1a3610!==![]&&_0x1a3610!==0x0;}function fmtNames(_0x37d8d8){const _0x409d3e=a19_0x258a;return _0x37d8d8[_0x409d3e(0xf5)](_0x4f0332=>'--'+_0x4f0332)[_0x409d3e(0xfa)](',\x20');}export function requireOneOf(_0x176afa,_0x4b87d1,_0x4d6926){const _0x731a37=a19_0x258a,_0x1a2395=_0x4b87d1[_0x731a37(0x10e)](_0x12c88e=>isSet(_0x176afa,_0x12c88e));if(_0x1a2395[_0x731a37(0x10f)]!==0x1)throw CliErrors[_0x731a37(0x107)](_0x1a2395[_0x731a37(0x10f)]===0x0?'Exactly\x20one\x20of\x20'+fmtNames(_0x4b87d1)+_0x731a37(0xf9)+_0x4d6926+'`.':_0x731a37(0xf7)+fmtNames(_0x4b87d1)+_0x731a37(0x10a)+fmtNames(_0x1a2395)+'.',_0x1a2395[_0x731a37(0x10f)]===0x0?_0x731a37(0x105)+fmtNames(_0x4b87d1):_0x731a37(0x103));}export function requireAnyOf(_0x2241bc,_0x475032,_0x4dd7f1){const _0x1e05e1=a19_0x258a;if(!_0x475032['some'](_0x17a0a2=>isSet(_0x2241bc,_0x17a0a2)))throw CliErrors[_0x1e05e1(0x107)](_0x1e05e1(0x104)+fmtNames(_0x475032)+_0x1e05e1(0xf9)+_0x4dd7f1+'`.',_0x1e05e1(0x105)+fmtNames(_0x475032));}function a19_0x44c4(){const _0x34543e=['48iufQKo','Invalid\x20--','test','Flags\x20','\x20are\x20mutually\x20exclusive\x20for\x20`','Remove\x20all\x20but\x20one.','At\x20least\x20one\x20of\x20','Provide\x20one\x20of:\x20','28762XtOrhS','validation','str','flag','\x20is\x20allowed,\x20found:\x20','79401WSiMdR','985212vbWFTs','19501VXuvNa','filter','length','6wuaNcx',',\x20got\x20\x22','7516bRMXdh','map','725NqvAAN','Only\x20one\x20of\x20','Use\x20only\x20one\x20of:\x20','\x20is\x20required\x20for\x20`','join','1688130hHnZCq','1590726JLdwPE',':\x20expected\x20'];a19_0x44c4=function(){return _0x34543e;};return a19_0x44c4();}export function mutuallyExclusive(_0x373c13,_0x2bdd67,_0xa99ab6){const _0x240f04=a19_0x258a,_0xed63ae=_0x2bdd67[_0x240f04(0x10e)](_0x10f875=>isSet(_0x373c13,_0x10f875));if(_0xed63ae[_0x240f04(0x10f)]>0x1)throw CliErrors['validation'](_0x240f04(0x101)+fmtNames(_0xed63ae)+_0x240f04(0x102)+_0xa99ab6+'`.',_0x240f04(0xf8)+fmtNames(_0x2bdd67));}export function validatePattern(_0xe31ec5,_0x277ee6,_0x4bca8c,_0x3e09e4){const _0x288bd9=a19_0x258a,_0xe4ed11=_0xe31ec5[_0x288bd9(0x108)](_0x277ee6);if(_0xe4ed11&&!_0x4bca8c[_0x288bd9(0x100)](_0xe4ed11))throw CliErrors[_0x288bd9(0x107)](_0x288bd9(0xff)+_0x277ee6+_0x288bd9(0xfd)+_0x3e09e4+_0x288bd9(0xf3)+_0xe4ed11+'\x22.');}
1
+ (function(_0x58c7f1,_0x2224b5){const _0xb70108=a19_0x592c,_0x3584c7=_0x58c7f1();while(!![]){try{const _0x512f18=parseInt(_0xb70108(0x13c))/0x1+-parseInt(_0xb70108(0x146))/0x2+-parseInt(_0xb70108(0x130))/0x3+parseInt(_0xb70108(0x132))/0x4+-parseInt(_0xb70108(0x13b))/0x5+-parseInt(_0xb70108(0x138))/0x6*(parseInt(_0xb70108(0x137))/0x7)+parseInt(_0xb70108(0x141))/0x8;if(_0x512f18===_0x2224b5)break;else _0x3584c7['push'](_0x3584c7['shift']());}catch(_0x4baaea){_0x3584c7['push'](_0x3584c7['shift']());}}}(a19_0x54b6,0xd0ca8));import{CliErrors}from'../../errors.js';function isSet(_0x5cc9a5,_0x3dfd8e){const _0x51f327=a19_0x592c,_0x1801fd=_0x5cc9a5[_0x51f327(0x13d)](_0x3dfd8e);return _0x1801fd!==undefined&&_0x1801fd!==''&&_0x1801fd!==![]&&_0x1801fd!==0x0;}function a19_0x592c(_0x2fa41d,_0x3503a5){_0x2fa41d=_0x2fa41d-0x12b;const _0x54b604=a19_0x54b6();let _0x592c77=_0x54b604[_0x2fa41d];return _0x592c77;}function fmtNames(_0xe81547){const _0x4d5f1b=a19_0x592c;return _0xe81547[_0x4d5f1b(0x12c)](_0x38af08=>'--'+_0x38af08)[_0x4d5f1b(0x136)](',\x20');}export function requireOneOf(_0x3f9f7a,_0x3d6ff2,_0x176359){const _0x34aec5=a19_0x592c,_0x29fdc0=_0x3d6ff2[_0x34aec5(0x145)](_0x44476d=>isSet(_0x3f9f7a,_0x44476d));if(_0x29fdc0[_0x34aec5(0x13e)]!==0x1)throw CliErrors[_0x34aec5(0x139)](_0x29fdc0[_0x34aec5(0x13e)]===0x0?'Exactly\x20one\x20of\x20'+fmtNames(_0x3d6ff2)+_0x34aec5(0x134)+_0x176359+'`.':_0x34aec5(0x13a)+fmtNames(_0x3d6ff2)+_0x34aec5(0x12f)+fmtNames(_0x29fdc0)+'.',_0x29fdc0['length']===0x0?_0x34aec5(0x143)+fmtNames(_0x3d6ff2):'Remove\x20all\x20but\x20one.');}export function requireAnyOf(_0x109ec1,_0x298baa,_0x1907d2){const _0x38cb73=a19_0x592c;if(!_0x298baa[_0x38cb73(0x140)](_0x1b8720=>isSet(_0x109ec1,_0x1b8720)))throw CliErrors['validation'](_0x38cb73(0x133)+fmtNames(_0x298baa)+_0x38cb73(0x134)+_0x1907d2+'`.',_0x38cb73(0x143)+fmtNames(_0x298baa));}export function mutuallyExclusive(_0x16e956,_0x330c1c,_0x47852e){const _0xd93a32=a19_0x592c,_0x528788=_0x330c1c[_0xd93a32(0x145)](_0x36cfee=>isSet(_0x16e956,_0x36cfee));if(_0x528788['length']>0x1)throw CliErrors['validation'](_0xd93a32(0x12d)+fmtNames(_0x528788)+_0xd93a32(0x12e)+_0x47852e+'`.',_0xd93a32(0x144)+fmtNames(_0x330c1c));}export function validatePattern(_0x2e1b1b,_0x1833ba,_0x3c85b5,_0x1279fd){const _0x3abb10=a19_0x592c,_0x328a44=_0x2e1b1b[_0x3abb10(0x13f)](_0x1833ba);if(_0x328a44&&!_0x3c85b5[_0x3abb10(0x135)](_0x328a44))throw CliErrors[_0x3abb10(0x139)](_0x3abb10(0x142)+_0x1833ba+_0x3abb10(0x12b)+_0x1279fd+_0x3abb10(0x131)+_0x328a44+'\x22.');}function a19_0x54b6(){const _0x5afe2f=['Flags\x20','\x20are\x20mutually\x20exclusive\x20for\x20`','\x20is\x20allowed,\x20found:\x20','4130322sgYQJw',',\x20got\x20\x22','2531440zvPjZo','At\x20least\x20one\x20of\x20','\x20is\x20required\x20for\x20`','test','join','31171VvcIXM','2202QWDJdz','validation','Only\x20one\x20of\x20','6604470cpTuIS','1478080sFqVTV','flag','length','str','some','35902208LdaleU','Invalid\x20--','Provide\x20one\x20of:\x20','Use\x20only\x20one\x20of:\x20','filter','2823178JgcahW',':\x20expected\x20','map'];a19_0x54b6=function(){return _0x5afe2f;};return a19_0x54b6();}
@@ -1 +1 @@
1
- const a20_0x45fcaa=a20_0xb259;(function(_0x57fce6,_0x345530){const _0x2a1356=a20_0xb259,_0x5a23d6=_0x57fce6();while(!![]){try{const _0xa59789=-parseInt(_0x2a1356(0x1c4))/0x1*(parseInt(_0x2a1356(0x1ce))/0x2)+-parseInt(_0x2a1356(0x1c2))/0x3*(-parseInt(_0x2a1356(0x1c3))/0x4)+parseInt(_0x2a1356(0x1d1))/0x5*(parseInt(_0x2a1356(0x1cd))/0x6)+parseInt(_0x2a1356(0x1d3))/0x7+parseInt(_0x2a1356(0x1c7))/0x8+parseInt(_0x2a1356(0x1c0))/0x9+-parseInt(_0x2a1356(0x1c5))/0xa*(parseInt(_0x2a1356(0x1be))/0xb);if(_0xa59789===_0x345530)break;else _0x5a23d6['push'](_0x5a23d6['shift']());}catch(_0x453965){_0x5a23d6['push'](_0x5a23d6['shift']());}}}(a20_0x4d38,0x9b155));function a20_0xb259(_0x29f623,_0x1f877d){_0x29f623=_0x29f623-0x1be;const _0x4d386c=a20_0x4d38();let _0xb25993=_0x4d386c[_0x29f623];return _0xb25993;}export const CODE_FLAG={'name':a20_0x45fcaa(0x1cb),'type':a20_0x45fcaa(0x1cf),'required':!![],'description':a20_0x45fcaa(0x1c1),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x45fcaa(0x1c9)}};export const SQLCODE_FLAG={'name':a20_0x45fcaa(0x1cc),'type':a20_0x45fcaa(0x1cf),'required':!![],'description':a20_0x45fcaa(0x1d6),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x45fcaa(0x1ca)}};export const VERBOSE_FLAG={'name':a20_0x45fcaa(0x1d0),'type':a20_0x45fcaa(0x1d4),'description':a20_0x45fcaa(0x1d5)};export const PARAMS_FLAG={'name':'params','type':a20_0x45fcaa(0x1cf),'description':a20_0x45fcaa(0x1d2)};function a20_0x4d38(){const _0x10b1da=['2069419WoNUwQ','Resource\x20ID','5350320UsUekC','Dataset\x20code\x20(32-char\x20hex\x20UUID)','3603EEeTnd','2260jeSKWM','472mkuHkD','90JjJLjR','Resource\x20name\x20for\x20lookup','4687184fTaeyz','number','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','code','sqlcode','12atHyNM','3590lkQMKg','string','verbose','1539085lOKYQZ','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','4907315ZWlUnR','boolean','Return\x20full\x20raw\x20response\x20object','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)'];a20_0x4d38=function(){return _0x10b1da;};return a20_0x4d38();}export const NAME_FLAG={'name':'name','type':a20_0x45fcaa(0x1cf),'description':a20_0x45fcaa(0x1c6)};export const ID_FLAG={'name':'id','type':a20_0x45fcaa(0x1c8),'required':!![],'description':a20_0x45fcaa(0x1bf)};
1
+ const a20_0x216c83=a20_0x342a;(function(_0x5b2471,_0x5df737){const _0x3713ec=a20_0x342a,_0x3e1110=_0x5b2471();while(!![]){try{const _0x378728=parseInt(_0x3713ec(0x76))/0x1*(-parseInt(_0x3713ec(0x7b))/0x2)+parseInt(_0x3713ec(0x74))/0x3*(parseInt(_0x3713ec(0x88))/0x4)+parseInt(_0x3713ec(0x78))/0x5*(-parseInt(_0x3713ec(0x82))/0x6)+parseInt(_0x3713ec(0x80))/0x7*(-parseInt(_0x3713ec(0x83))/0x8)+-parseInt(_0x3713ec(0x8b))/0x9*(-parseInt(_0x3713ec(0x85))/0xa)+parseInt(_0x3713ec(0x81))/0xb+-parseInt(_0x3713ec(0x79))/0xc;if(_0x378728===_0x5df737)break;else _0x3e1110['push'](_0x3e1110['shift']());}catch(_0x3aa00e){_0x3e1110['push'](_0x3e1110['shift']());}}}(a20_0x483b,0x6f5df));export const CODE_FLAG={'name':a20_0x216c83(0x89),'type':a20_0x216c83(0x7a),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x216c83(0x7f)}};function a20_0x483b(){const _0x5aa6f9=['9110233rLWkzb','60wcibNP','649448ENTfEO','Resource\x20name\x20for\x20lookup','33930XIClio','Return\x20full\x20raw\x20response\x20object','sqlcode','124tMGlWC','code','boolean','1557GJSHzT','Resource\x20ID','87621qJAcip','verbose','4611IOilQB','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','447380ORQNYK','4032348uSIqXs','string','134FYtYQm','params','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','name','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','28SrFxMx'];a20_0x483b=function(){return _0x5aa6f9;};return a20_0x483b();}function a20_0x342a(_0x283044,_0xcc5ca6){_0x283044=_0x283044-0x73;const _0x483b1e=a20_0x483b();let _0x342ae5=_0x483b1e[_0x283044];return _0x342ae5;}export const SQLCODE_FLAG={'name':a20_0x216c83(0x87),'type':a20_0x216c83(0x7a),'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_0x216c83(0x77)}};export const VERBOSE_FLAG={'name':a20_0x216c83(0x75),'type':a20_0x216c83(0x8a),'description':a20_0x216c83(0x86)};export const PARAMS_FLAG={'name':a20_0x216c83(0x7c),'type':'string','description':a20_0x216c83(0x7d)};export const NAME_FLAG={'name':a20_0x216c83(0x7e),'type':a20_0x216c83(0x7a),'description':a20_0x216c83(0x84)};export const ID_FLAG={'name':'id','type':'number','required':!![],'description':a20_0x216c83(0x73)};
@@ -1 +1 @@
1
- (function(_0x1acd65,_0x4f5079){const _0x3305fd=a21_0x27a8,_0x353316=_0x1acd65();while(!![]){try{const _0x17b7d0=parseInt(_0x3305fd(0x18c))/0x1*(-parseInt(_0x3305fd(0x17c))/0x2)+parseInt(_0x3305fd(0x18a))/0x3*(-parseInt(_0x3305fd(0x189))/0x4)+parseInt(_0x3305fd(0x184))/0x5+-parseInt(_0x3305fd(0x180))/0x6+-parseInt(_0x3305fd(0x186))/0x7+-parseInt(_0x3305fd(0x187))/0x8*(-parseInt(_0x3305fd(0x182))/0x9)+parseInt(_0x3305fd(0x185))/0xa;if(_0x17b7d0===_0x4f5079)break;else _0x353316['push'](_0x353316['shift']());}catch(_0x457ea7){_0x353316['push'](_0x353316['shift']());}}}(a21_0x9db1,0x2cd52));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;function a21_0x9db1(){const _0x380d9f=['10286OMJQlI','toFixed','\x20path\x20is\x20required.','File\x20is\x20not\x20a\x20regular\x20file:\x20','30JHGTYf','File\x20not\x20found:\x20','isFile','validation','330228wVByYs','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','967257vaaZGS','size','1074310iWJsHr','4323000kWadUw','1354024WioilT','8OOedUP','ceil','672964gjavVN','3uItyPC','\x20MB'];a21_0x9db1=function(){return _0x380d9f;};return a21_0x9db1();}function a21_0x27a8(_0x384258,_0x371e4a){_0x384258=_0x384258-0x17a;const _0x9db155=a21_0x9db1();let _0x27a84e=_0x9db155[_0x384258];return _0x27a84e;}export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x448773){const _0x3ae40a=a21_0x27a8;if(_0x448773>=BYTES_PER_MB){const _0x4fe3ac=Math[_0x3ae40a(0x188)](_0x448773/BYTES_PER_MB*0x64)/0x64;return _0x4fe3ac[_0x3ae40a(0x18d)](0x2)+_0x3ae40a(0x18b);}return _0x448773+'\x20B';}export function requireRuntimeUploadFile(_0x232d0c,_0x47fa9e){const _0x34f7ab=a21_0x27a8,_0x23b630=_0x232d0c['trim']();if(!_0x23b630)throw CliErrors[_0x34f7ab(0x17f)](_0x47fa9e+_0x34f7ab(0x17a));if(!existsSync(_0x23b630))throw CliErrors[_0x34f7ab(0x17f)](_0x34f7ab(0x17d)+_0x23b630);const _0xe282f9=statSync(_0x23b630);if(!_0xe282f9[_0x34f7ab(0x17e)]())throw CliErrors[_0x34f7ab(0x17f)](_0x34f7ab(0x17b)+_0x23b630);if(_0xe282f9[_0x34f7ab(0x183)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors['validation'](_0x34f7ab(0x181)+_0x23b630+'\x20('+formatBytes(_0xe282f9[_0x34f7ab(0x183)])+')');return{'path':_0x23b630,'size':_0xe282f9[_0x34f7ab(0x183)]};}
1
+ (function(_0x2ae396,_0x14b4ba){const _0x3ad0e2=a21_0x4cd1,_0x1df152=_0x2ae396();while(!![]){try{const _0x4d5ed7=parseInt(_0x3ad0e2(0x176))/0x1*(-parseInt(_0x3ad0e2(0x17d))/0x2)+parseInt(_0x3ad0e2(0x17b))/0x3+-parseInt(_0x3ad0e2(0x17e))/0x4*(parseInt(_0x3ad0e2(0x172))/0x5)+-parseInt(_0x3ad0e2(0x178))/0x6+-parseInt(_0x3ad0e2(0x174))/0x7+-parseInt(_0x3ad0e2(0x183))/0x8*(parseInt(_0x3ad0e2(0x180))/0x9)+parseInt(_0x3ad0e2(0x17c))/0xa*(parseInt(_0x3ad0e2(0x181))/0xb);if(_0x4d5ed7===_0x14b4ba)break;else _0x1df152['push'](_0x1df152['shift']());}catch(_0x121b8c){_0x1df152['push'](_0x1df152['shift']());}}}(a21_0x58b3,0x3b701));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;function a21_0x58b3(){const _0x4b9eb9=['trim','434388zYEyTI','\x20MB','File\x20is\x20not\x20a\x20regular\x20file:\x20','459777WRDVQI','90bmXheq','198rDICqB','165336eNvONm','validation','3393iQEFMM','1204181KIaiMh','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','6232WlnAdk','isFile','\x20path\x20is\x20required.','45jXGNSe','ceil','1005123nKNshJ','size','135ShSMWv'];a21_0x58b3=function(){return _0x4b9eb9;};return a21_0x58b3();}export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function a21_0x4cd1(_0x2ece6e,_0x15a5e0){_0x2ece6e=_0x2ece6e-0x172;const _0x58b3c4=a21_0x58b3();let _0x4cd151=_0x58b3c4[_0x2ece6e];return _0x4cd151;}function formatBytes(_0x3a39de){const _0x36a3ef=a21_0x4cd1;if(_0x3a39de>=BYTES_PER_MB){const _0x4bb14f=Math[_0x36a3ef(0x173)](_0x3a39de/BYTES_PER_MB*0x64)/0x64;return _0x4bb14f['toFixed'](0x2)+_0x36a3ef(0x179);}return _0x3a39de+'\x20B';}export function requireRuntimeUploadFile(_0xa6a815,_0x3e2582){const _0x2f14e0=a21_0x4cd1,_0x4d9366=_0xa6a815[_0x2f14e0(0x177)]();if(!_0x4d9366)throw CliErrors[_0x2f14e0(0x17f)](_0x3e2582+_0x2f14e0(0x185));if(!existsSync(_0x4d9366))throw CliErrors[_0x2f14e0(0x17f)]('File\x20not\x20found:\x20'+_0x4d9366);const _0x44d73c=statSync(_0x4d9366);if(!_0x44d73c[_0x2f14e0(0x184)]())throw CliErrors[_0x2f14e0(0x17f)](_0x2f14e0(0x17a)+_0x4d9366);if(_0x44d73c[_0x2f14e0(0x175)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x2f14e0(0x17f)](_0x2f14e0(0x182)+_0x4d9366+'\x20('+formatBytes(_0x44d73c[_0x2f14e0(0x175)])+')');return{'path':_0x4d9366,'size':_0x44d73c['size']};}
@@ -1 +1 @@
1
- const a22_0x1cdff1=a22_0x4a54;function a22_0x5205(){const _0x1a785e=['pretty','stringify','2876650Qswjuj','590490ZfMYnu','\x20(global)','(none)','format','validation','`\x20=\x20\x22','Key\x20not\x20found:\x20','708ZenzUK','Write\x20to\x20global\x20config','value','7913646pmGJVF','object','Missing\x20key\x20or\x20value.','bool','trim','write','263417ukDfQb','riskLevel','Set\x20`','Usage:\x20','\x22\x20is\x20not\x20settable.','\x20config\x20delete\x20<key>\x20[--global]','16PcxSdQ',';\x20apps.<alias>.appcode','Missing\x20key\x20argument.','919353ccuzQa','../../context.js','\x20\x20project:\x20','log','raw','Invalid\x20value\x20for\x20\x22','alias','length','list','appcode','Key\x20\x22','project-or-global-explicit','pageSize','key','\x20config\x20set\x20<key>\x20<value>\x20[--global]','args','join','Top-level\x20key\x20\x22','config','Set\x20a\x20config\x20value','apps','global','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','get','4214495QirPVa','List\x20current\x20config','split','Delete\x20a\x20config\x20value','isArray','Get\x20a\x20config\x20value','\x22\x20not\x20found\x20at\x20top\x20level.','4461NreqYc','boolean','field','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Settable\x20keys:\x20','includes','\x20config\x20get\x20<key>'];a22_0x5205=function(){return _0x1a785e;};return a22_0x5205();}(function(_0x44379c,_0x12970b){const _0x337183=a22_0x4a54,_0x4cfb12=_0x44379c();while(!![]){try{const _0x2e84e5=parseInt(_0x337183(0xe2))/0x1+parseInt(_0x337183(0x10a))/0x2+-parseInt(_0x337183(0x101))/0x3*(-parseInt(_0x337183(0x112))/0x4)+-parseInt(_0x337183(0xfa))/0x5+-parseInt(_0x337183(0x10b))/0x6+-parseInt(_0x337183(0xd9))/0x7*(parseInt(_0x337183(0xdf))/0x8)+-parseInt(_0x337183(0xd3))/0x9;if(_0x2e84e5===_0x12970b)break;else _0x4cfb12['push'](_0x4cfb12['shift']());}catch(_0x4eacbc){_0x4cfb12['push'](_0x4cfb12['shift']());}}}(a22_0x5205,0xb100f));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_0x1cdff1(0xf7),'type':a22_0x1cdff1(0x102),'description':a22_0x1cdff1(0x113),'default':![]};function parseAliasAppcodeSetKey(_0x46e9e0){const _0x3394a9=a22_0x1cdff1,_0x47f7c0=_0x46e9e0[_0x3394a9(0xfc)]('.');if(_0x47f7c0[_0x3394a9(0xe9)]!==0x3||_0x47f7c0[0x0]!=='apps'||_0x47f7c0[0x2]!==_0x3394a9(0xeb))return undefined;const _0x23dc4b=_0x47f7c0[0x1]?.[_0x3394a9(0xd7)]();return _0x23dc4b?_0x23dc4b:undefined;}function parseAliasDeleteKey(_0x5b51f7){const _0x1bd191=a22_0x1cdff1,_0x5001d4=_0x5b51f7['split']('.');if(_0x5001d4[_0x1bd191(0xe9)]===0x2&&_0x5001d4[0x0]===_0x1bd191(0xf6)){const _0x13bbc7=_0x5001d4[0x1]?.[_0x1bd191(0xd7)]();return _0x13bbc7?{'alias':_0x13bbc7}:undefined;}if(_0x5001d4['length']===0x3&&_0x5001d4[0x0]==='apps'&&_0x5001d4[0x2]===_0x1bd191(0xeb)){const _0x436bf3=_0x5001d4[0x1]?.['trim']();return _0x436bf3?{'alias':_0x436bf3,'field':_0x1bd191(0xeb)}:undefined;}return undefined;}function setLocalAppAlias(_0x57df55,_0x266bce,_0x3a6a8c){const _0x4fb9c0=a22_0x1cdff1,_0x33cab6=_0x57df55[_0x4fb9c0(0xf6)]&&typeof _0x57df55[_0x4fb9c0(0xf6)]==='object'&&!Array[_0x4fb9c0(0xfe)](_0x57df55[_0x4fb9c0(0xf6)])?_0x57df55[_0x4fb9c0(0xf6)]:{},_0x3bd2be=_0x33cab6[_0x266bce]&&typeof _0x33cab6[_0x266bce]===_0x4fb9c0(0xd4)&&!Array[_0x4fb9c0(0xfe)](_0x33cab6[_0x266bce])?_0x33cab6[_0x266bce]:{};_0x3bd2be['appcode']=_0x3a6a8c,_0x33cab6[_0x266bce]=_0x3bd2be,_0x57df55[_0x4fb9c0(0xf6)]=_0x33cab6;}function a22_0x4a54(_0x41c62b,_0x2aaf10){_0x41c62b=_0x41c62b-0xd3;const _0x5205ee=a22_0x5205();let _0x4a54aa=_0x5205ee[_0x41c62b];return _0x4a54aa;}function deleteLocalAppAlias(_0x3b995,_0x35ff28){const _0x10ad51=a22_0x1cdff1;if(!_0x3b995[_0x10ad51(0xf6)]||typeof _0x3b995[_0x10ad51(0xf6)]!=='object'||Array[_0x10ad51(0xfe)](_0x3b995[_0x10ad51(0xf6)]))return![];const _0x44d96f=_0x3b995[_0x10ad51(0xf6)],_0x496d29=_0x44d96f[_0x35ff28[_0x10ad51(0xe8)]];if(!_0x496d29||typeof _0x496d29!==_0x10ad51(0xd4)||Array['isArray'](_0x496d29))return![];if(!_0x35ff28['field'])return delete _0x44d96f[_0x35ff28[_0x10ad51(0xe8)]],!![];if(!(_0x35ff28[_0x10ad51(0x103)]in _0x496d29))return![];return delete _0x496d29[_0x35ff28[_0x10ad51(0x103)]],Object['keys'](_0x496d29)[_0x10ad51(0xe9)]===0x0&&delete _0x44d96f[_0x35ff28['alias']],!![];}const listDef={'service':a22_0x1cdff1(0xf4),'command':a22_0x1cdff1(0xea),'description':a22_0x1cdff1(0xfb),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x107afb){const _0x21b5ab=a22_0x1cdff1,{buildConfigFromFlags:_0x443d65}=await import(_0x21b5ab(0xe3)),_0x278eb=_0x443d65({}),_0x59e251=getProjectConfigPath(),_0x536ab9=resolveWriteConfigPath(_0x21b5ab(0xf7));if(_0x107afb[_0x21b5ab(0x10e)]===_0x21b5ab(0x108))return{'ok':!![],'message':_0x21b5ab(0xf8)+(JSON[_0x21b5ab(0x109)](_0x278eb[_0x21b5ab(0xe6)],null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+(_0x21b5ab(0xe4)+(_0x59e251??_0x21b5ab(0x10d))+'\x0a')+('\x20\x20global:\x20\x20'+_0x536ab9)};return{'ok':!![],'data':{'effective':_0x278eb['raw'],'configFiles':{'project':_0x59e251??null,'global':_0x536ab9}}};}},getDef={'service':'config','command':a22_0x1cdff1(0xf9),'description':a22_0x1cdff1(0xff),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x1cdff1(0xef),'description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x2a855e){const _0x1d250e=a22_0x1cdff1,_0x268809=_0x2a855e[_0x1d250e(0xf1)][0x0];if(!_0x268809)throw CliErrors[_0x1d250e(0x10f)]('Missing\x20key\x20argument.','Usage:\x20'+CLI_BIN_NAME+_0x1d250e(0x107));const {buildConfigFromFlags:_0x490d81}=await import(_0x1d250e(0xe3)),{raw:_0x5b4924}=_0x490d81({});if(_0x268809['includes']('.')){const _0xb2a07e=_0x268809[_0x1d250e(0xfc)]('.');let _0x50edbb=_0x5b4924;for(const _0x2c5713 of _0xb2a07e){if(_0x50edbb==null||typeof _0x50edbb!==_0x1d250e(0xd4))throw CliErrors[_0x1d250e(0x10f)](_0x1d250e(0x111)+_0x268809);_0x50edbb=_0x50edbb[_0x2c5713];}if(_0x50edbb===undefined)throw CliErrors[_0x1d250e(0x10f)](_0x1d250e(0x111)+_0x268809);return console[_0x1d250e(0xe5)](typeof _0x50edbb===_0x1d250e(0xd4)?JSON[_0x1d250e(0x109)](_0x50edbb,null,0x2):String(_0x50edbb)),{'ok':!![]};}const _0x57f19b=_0x5b4924[_0x268809];if(_0x57f19b===undefined)throw CliErrors[_0x1d250e(0x10f)](_0x1d250e(0x111)+_0x268809);return console[_0x1d250e(0xe5)](typeof _0x57f19b===_0x1d250e(0xd4)?JSON[_0x1d250e(0x109)](_0x57f19b,null,0x2):String(_0x57f19b)),{'ok':!![]};}},setDef={'service':a22_0x1cdff1(0xf4),'command':'set','description':a22_0x1cdff1(0xf5),'risk':a22_0x1cdff1(0xd8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x1cdff1(0xef),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x1cdff1(0x114),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x16ba0c){const _0x58bd04=a22_0x1cdff1,_0x2dd5bf=_0x16ba0c['args'][0x0],_0x247a19=_0x16ba0c[_0x58bd04(0xf1)][0x1];if(!_0x2dd5bf||_0x247a19===undefined)throw CliErrors[_0x58bd04(0x10f)](_0x58bd04(0xd5),_0x58bd04(0xdc)+CLI_BIN_NAME+_0x58bd04(0xf0));if(ENUM_KEYS[_0x2dd5bf]&&!ENUM_KEYS[_0x2dd5bf][_0x58bd04(0x106)](_0x247a19))throw CliErrors[_0x58bd04(0x10f)](_0x58bd04(0xe7)+_0x2dd5bf+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x2dd5bf][_0x58bd04(0xf2)](',\x20'));if(_0x2dd5bf===_0x58bd04(0xda))throw CliErrors['validation'](_0x58bd04(0x104));if(_0x2dd5bf===_0x58bd04(0xee)){const _0xccabd5=Number(_0x247a19);if(isNaN(_0xccabd5)||_0xccabd5<=0x0)throw CliErrors[_0x58bd04(0x10f)]('pageSize\x20must\x20be\x20a\x20positive\x20number');}const _0x37b204=resolveWriteScope({'explicitGlobal':_0x16ba0c[_0x58bd04(0xd6)](_0x58bd04(0xf7)),'policy':_0x58bd04(0xed)}),_0xe44412=toScopeFlags(_0x37b204),_0x3e4cb8=readScopedConfig(_0xe44412),_0x40df44=parseAliasAppcodeSetKey(_0x2dd5bf);if(!_0x40df44&&!isTopLevelConfigKey(_0x2dd5bf))throw CliErrors[_0x58bd04(0x10f)](_0x58bd04(0xf3)+_0x2dd5bf+_0x58bd04(0xdd),_0x58bd04(0x105)+getTopLevelConfigKeySummary()+_0x58bd04(0xe0));return _0x40df44?setLocalAppAlias(_0x3e4cb8,_0x40df44,_0x247a19):_0x3e4cb8[_0x2dd5bf]=_0x2dd5bf==='pageSize'?Number(_0x247a19):_0x247a19,console[_0x58bd04(0xe5)](_0x58bd04(0xdb)+_0x2dd5bf+_0x58bd04(0x110)+_0x247a19+'\x22'+(_0x37b204===_0x58bd04(0xf7)?_0x58bd04(0x10c):'')),writeScopedConfig(_0x3e4cb8,_0xe44412),{'ok':!![]};}},deleteDef={'service':a22_0x1cdff1(0xf4),'command':'delete','description':a22_0x1cdff1(0xfd),'risk':a22_0x1cdff1(0xd8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x5746e1){const _0x20b8ce=a22_0x1cdff1,_0x5b55d1=_0x5746e1[_0x20b8ce(0xf1)][0x0];if(!_0x5b55d1)throw CliErrors['validation'](_0x20b8ce(0xe1),_0x20b8ce(0xdc)+CLI_BIN_NAME+_0x20b8ce(0xde));const _0x125d43=resolveWriteScope({'explicitGlobal':_0x5746e1[_0x20b8ce(0xd6)](_0x20b8ce(0xf7)),'policy':_0x20b8ce(0xed)}),_0x58020b=toScopeFlags(_0x125d43),_0x4a4c8f=readScopedConfig(_0x58020b),_0x29080f=parseAliasDeleteKey(_0x5b55d1);if(_0x29080f){if(!deleteLocalAppAlias(_0x4a4c8f,_0x29080f))throw CliErrors['validation'](_0x20b8ce(0x111)+_0x5b55d1);return console[_0x20b8ce(0xe5)]('Deleted\x20`'+_0x5b55d1+'`'+(_0x125d43===_0x20b8ce(0xf7)?_0x20b8ce(0x10c):'')),writeScopedConfig(_0x4a4c8f,_0x58020b),{'ok':!![]};}if(_0x4a4c8f[_0x5b55d1]===undefined)throw CliErrors[_0x20b8ce(0x10f)](_0x20b8ce(0xec)+_0x5b55d1+_0x20b8ce(0x100));return delete _0x4a4c8f[_0x5b55d1],console['log']('Deleted\x20`'+_0x5b55d1+'`'+(_0x125d43==='global'?'\x20(global)':'')),writeScopedConfig(_0x4a4c8f,_0x58020b),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
1
+ const a22_0x5ec725=a22_0x28ee;function a22_0x28ee(_0xce48a9,_0x5bf45e){_0xce48a9=_0xce48a9-0x81;const _0x1cb2c5=a22_0x1cb2();let _0x28ee31=_0x1cb2c5[_0xce48a9];return _0x28ee31;}(function(_0x49cb9e,_0xb9df1f){const _0x1e81bf=a22_0x28ee,_0x3f4634=_0x49cb9e();while(!![]){try{const _0x1badf8=-parseInt(_0x1e81bf(0x84))/0x1*(-parseInt(_0x1e81bf(0xa3))/0x2)+parseInt(_0x1e81bf(0x88))/0x3+-parseInt(_0x1e81bf(0xa1))/0x4*(parseInt(_0x1e81bf(0x8d))/0x5)+-parseInt(_0x1e81bf(0xbf))/0x6*(-parseInt(_0x1e81bf(0x89))/0x7)+-parseInt(_0x1e81bf(0x93))/0x8*(-parseInt(_0x1e81bf(0x8a))/0x9)+parseInt(_0x1e81bf(0xa6))/0xa+-parseInt(_0x1e81bf(0x9e))/0xb;if(_0x1badf8===_0xb9df1f)break;else _0x3f4634['push'](_0x3f4634['shift']());}catch(_0x55946b){_0x3f4634['push'](_0x3f4634['shift']());}}}(a22_0x1cb2,0x9675f));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_0x5ec725(0x92),'type':a22_0x5ec725(0xb6),'description':a22_0x5ec725(0x9a),'default':![]};function parseAliasAppcodeSetKey(_0x5e48c2){const _0x148866=a22_0x5ec725,_0x3bc94e=_0x5e48c2['split']('.');if(_0x3bc94e[_0x148866(0xbe)]!==0x3||_0x3bc94e[0x0]!=='apps'||_0x3bc94e[0x2]!==_0x148866(0x9c))return undefined;const _0x44cf69=_0x3bc94e[0x1]?.['trim']();return _0x44cf69?_0x44cf69:undefined;}function parseAliasDeleteKey(_0x37512e){const _0x4898b7=a22_0x5ec725,_0x5efa49=_0x37512e[_0x4898b7(0x85)]('.');if(_0x5efa49[_0x4898b7(0xbe)]===0x2&&_0x5efa49[0x0]===_0x4898b7(0x81)){const _0x2ae103=_0x5efa49[0x1]?.['trim']();return _0x2ae103?{'alias':_0x2ae103}:undefined;}if(_0x5efa49[_0x4898b7(0xbe)]===0x3&&_0x5efa49[0x0]===_0x4898b7(0x81)&&_0x5efa49[0x2]===_0x4898b7(0x9c)){const _0xef122d=_0x5efa49[0x1]?.[_0x4898b7(0xa4)]();return _0xef122d?{'alias':_0xef122d,'field':_0x4898b7(0x9c)}:undefined;}return undefined;}function setLocalAppAlias(_0x1c2167,_0x40d0cc,_0x3c7445){const _0x362920=a22_0x5ec725,_0x59f4e7=_0x1c2167[_0x362920(0x81)]&&typeof _0x1c2167[_0x362920(0x81)]===_0x362920(0x86)&&!Array[_0x362920(0xb3)](_0x1c2167[_0x362920(0x81)])?_0x1c2167['apps']:{},_0x2f2406=_0x59f4e7[_0x40d0cc]&&typeof _0x59f4e7[_0x40d0cc]==='object'&&!Array[_0x362920(0xb3)](_0x59f4e7[_0x40d0cc])?_0x59f4e7[_0x40d0cc]:{};_0x2f2406[_0x362920(0x9c)]=_0x3c7445,_0x59f4e7[_0x40d0cc]=_0x2f2406,_0x1c2167[_0x362920(0x81)]=_0x59f4e7;}function deleteLocalAppAlias(_0xb2affe,_0xfd4feb){const _0x127210=a22_0x5ec725;if(!_0xb2affe[_0x127210(0x81)]||typeof _0xb2affe['apps']!==_0x127210(0x86)||Array[_0x127210(0xb3)](_0xb2affe[_0x127210(0x81)]))return![];const _0x1425b8=_0xb2affe[_0x127210(0x81)],_0x1440aa=_0x1425b8[_0xfd4feb[_0x127210(0x8b)]];if(!_0x1440aa||typeof _0x1440aa!==_0x127210(0x86)||Array[_0x127210(0xb3)](_0x1440aa))return![];if(!_0xfd4feb['field'])return delete _0x1425b8[_0xfd4feb[_0x127210(0x8b)]],!![];if(!(_0xfd4feb[_0x127210(0x95)]in _0x1440aa))return![];return delete _0x1440aa[_0xfd4feb[_0x127210(0x95)]],Object['keys'](_0x1440aa)[_0x127210(0xbe)]===0x0&&delete _0x1425b8[_0xfd4feb[_0x127210(0x8b)]],!![];}const listDef={'service':a22_0x5ec725(0x8c),'command':a22_0x5ec725(0xab),'description':'List\x20current\x20config','risk':a22_0x5ec725(0xb4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x3bf48f){const _0x1149cc=a22_0x5ec725,{buildConfigFromFlags:_0x459141}=await import('../../context.js'),_0x517c72=_0x459141({}),_0x267fce=getProjectConfigPath(),_0x3bec59=resolveWriteConfigPath('global');if(_0x3bf48f['format']===_0x1149cc(0x82))return{'ok':!![],'message':_0x1149cc(0xba)+(JSON[_0x1149cc(0x87)](_0x517c72[_0x1149cc(0xbd)],null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+(_0x1149cc(0xb2)+(_0x267fce??'(none)')+'\x0a')+('\x20\x20global:\x20\x20'+_0x3bec59)};return{'ok':!![],'data':{'effective':_0x517c72['raw'],'configFiles':{'project':_0x267fce??null,'global':_0x3bec59}}};}},getDef={'service':a22_0x5ec725(0x8c),'command':a22_0x5ec725(0x8f),'description':a22_0x5ec725(0xac),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x5ec725(0xb8),'description':a22_0x5ec725(0xbc),'required':!![]}],'flags':[],async 'execute'(_0xe93331){const _0x214915=a22_0x5ec725,_0x450a2b=_0xe93331['args'][0x0];if(!_0x450a2b)throw CliErrors[_0x214915(0xaf)](_0x214915(0xa8),'Usage:\x20'+CLI_BIN_NAME+_0x214915(0xa9));const {buildConfigFromFlags:_0x43d18a}=await import('../../context.js'),{raw:_0x2dbdaa}=_0x43d18a({});if(_0x450a2b['includes']('.')){const _0x3568bb=_0x450a2b['split']('.');let _0x5ed92c=_0x2dbdaa;for(const _0x4a0d4b of _0x3568bb){if(_0x5ed92c==null||typeof _0x5ed92c!==_0x214915(0x86))throw CliErrors[_0x214915(0xaf)]('Key\x20not\x20found:\x20'+_0x450a2b);_0x5ed92c=_0x5ed92c[_0x4a0d4b];}if(_0x5ed92c===undefined)throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x450a2b);return console['log'](typeof _0x5ed92c===_0x214915(0x86)?JSON[_0x214915(0x87)](_0x5ed92c,null,0x2):String(_0x5ed92c)),{'ok':!![]};}const _0x3a55dd=_0x2dbdaa[_0x450a2b];if(_0x3a55dd===undefined)throw CliErrors[_0x214915(0xaf)]('Key\x20not\x20found:\x20'+_0x450a2b);return console['log'](typeof _0x3a55dd==='object'?JSON[_0x214915(0x87)](_0x3a55dd,null,0x2):String(_0x3a55dd)),{'ok':!![]};}},setDef={'service':a22_0x5ec725(0x8c),'command':a22_0x5ec725(0x9d),'description':a22_0x5ec725(0x8e),'risk':a22_0x5ec725(0xaa),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x5ec725(0x9f),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x502b7f){const _0x17a973=a22_0x5ec725,_0x580293=_0x502b7f[_0x17a973(0xb1)][0x0],_0x45bd61=_0x502b7f['args'][0x1];if(!_0x580293||_0x45bd61===undefined)throw CliErrors['validation']('Missing\x20key\x20or\x20value.',_0x17a973(0x97)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x580293]&&!ENUM_KEYS[_0x580293][_0x17a973(0xb5)](_0x45bd61))throw CliErrors['validation'](_0x17a973(0x91)+_0x580293+_0x17a973(0x99)+ENUM_KEYS[_0x580293][_0x17a973(0xa7)](',\x20'));if(_0x580293===_0x17a973(0x94))throw CliErrors[_0x17a973(0xaf)](_0x17a973(0xb0));if(_0x580293==='pageSize'){const _0x360186=Number(_0x45bd61);if(isNaN(_0x360186)||_0x360186<=0x0)throw CliErrors[_0x17a973(0xaf)](_0x17a973(0xa5));}const _0x1b6eae=resolveWriteScope({'explicitGlobal':_0x502b7f[_0x17a973(0x9b)](_0x17a973(0x92)),'policy':'project-or-global-explicit'}),_0x38b269=toScopeFlags(_0x1b6eae),_0x34a936=readScopedConfig(_0x38b269),_0x10da6f=parseAliasAppcodeSetKey(_0x580293);if(!_0x10da6f&&!isTopLevelConfigKey(_0x580293))throw CliErrors[_0x17a973(0xaf)]('Top-level\x20key\x20\x22'+_0x580293+_0x17a973(0xa2),_0x17a973(0x90)+getTopLevelConfigKeySummary()+_0x17a973(0x83));return _0x10da6f?setLocalAppAlias(_0x34a936,_0x10da6f,_0x45bd61):_0x34a936[_0x580293]=_0x580293===_0x17a973(0xa0)?Number(_0x45bd61):_0x45bd61,console[_0x17a973(0xad)]('Set\x20`'+_0x580293+'`\x20=\x20\x22'+_0x45bd61+'\x22'+(_0x1b6eae===_0x17a973(0x92)?_0x17a973(0xb9):'')),writeScopedConfig(_0x34a936,_0x38b269),{'ok':!![]};}},deleteDef={'service':a22_0x5ec725(0x8c),'command':'delete','description':'Delete\x20a\x20config\x20value','risk':a22_0x5ec725(0xaa),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x42c0d2){const _0x348b15=a22_0x5ec725,_0x5c4a5b=_0x42c0d2[_0x348b15(0xb1)][0x0];if(!_0x5c4a5b)throw CliErrors['validation'](_0x348b15(0xa8),_0x348b15(0x97)+CLI_BIN_NAME+_0x348b15(0xae));const _0x2f37b5=resolveWriteScope({'explicitGlobal':_0x42c0d2[_0x348b15(0x9b)](_0x348b15(0x92)),'policy':_0x348b15(0x96)}),_0x1f68e9=toScopeFlags(_0x2f37b5),_0x1e3cd8=readScopedConfig(_0x1f68e9),_0x4ae8bc=parseAliasDeleteKey(_0x5c4a5b);if(_0x4ae8bc){if(!deleteLocalAppAlias(_0x1e3cd8,_0x4ae8bc))throw CliErrors[_0x348b15(0xaf)]('Key\x20not\x20found:\x20'+_0x5c4a5b);return console[_0x348b15(0xad)](_0x348b15(0xb7)+_0x5c4a5b+'`'+(_0x2f37b5==='global'?'\x20(global)':'')),writeScopedConfig(_0x1e3cd8,_0x1f68e9),{'ok':!![]};}if(_0x1e3cd8[_0x5c4a5b]===undefined)throw CliErrors[_0x348b15(0xaf)](_0x348b15(0xbb)+_0x5c4a5b+_0x348b15(0x98));return delete _0x1e3cd8[_0x5c4a5b],console['log']('Deleted\x20`'+_0x5c4a5b+'`'+(_0x2f37b5===_0x348b15(0x92)?_0x348b15(0xb9):'')),writeScopedConfig(_0x1e3cd8,_0x1f68e9),{'ok':!![]};}};function a22_0x1cb2(){const _0x24595e=['Invalid\x20value\x20for\x20\x22','global','8uFzuvG','riskLevel','field','project-or-global-explicit','Usage:\x20','\x22\x20not\x20found\x20at\x20top\x20level.','\x22.\x20Allowed:\x20','Write\x20to\x20global\x20config','bool','appcode','set','40216803IpGvcL','value','pageSize','4NiXtob','\x22\x20is\x20not\x20settable.','2CvDGww','trim','pageSize\x20must\x20be\x20a\x20positive\x20number','11116510zpbBwW','join','Missing\x20key\x20argument.','\x20config\x20get\x20<key>','write','list','Get\x20a\x20config\x20value','log','\x20config\x20delete\x20<key>\x20[--global]','validation','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','args','\x20\x20project:\x20','isArray','read','includes','boolean','Deleted\x20`','key','\x20(global)','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','Key\x20\x22','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','raw','length','6MXqwGX','apps','pretty',';\x20apps.<alias>.appcode','1041905XuwvPm','split','object','stringify','148953OFubCZ','6969669UdrsHs','10417131AQFUvT','alias','config','419865uuwlSC','Set\x20a\x20config\x20value','get','Settable\x20keys:\x20'];a22_0x1cb2=function(){return _0x24595e;};return a22_0x1cb2();}export const configDefinitions=[listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- function a23_0x19d4(_0x3acb01,_0x662b7b){_0x3acb01=_0x3acb01-0x161;var _0x439c2f=a23_0x439c();var _0x19d4e3=_0x439c2f[_0x3acb01];return _0x19d4e3;}(function(_0x3673cc,_0x461a89){var _0x940c5f=a23_0x19d4,_0x92a1fc=_0x3673cc();while(!![]){try{var _0x2fb241=parseInt(_0x940c5f(0x164))/0x1*(parseInt(_0x940c5f(0x161))/0x2)+parseInt(_0x940c5f(0x16a))/0x3+parseInt(_0x940c5f(0x169))/0x4+parseInt(_0x940c5f(0x163))/0x5*(parseInt(_0x940c5f(0x162))/0x6)+-parseInt(_0x940c5f(0x165))/0x7+parseInt(_0x940c5f(0x167))/0x8*(-parseInt(_0x940c5f(0x168))/0x9)+-parseInt(_0x940c5f(0x166))/0xa;if(_0x2fb241===_0x461a89)break;else _0x92a1fc['push'](_0x92a1fc['shift']());}catch(_0x61f415){_0x92a1fc['push'](_0x92a1fc['shift']());}}}(a23_0x439c,0xde6d6));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};function a23_0x439c(){var _0xfa3fba=['651205KwyEpk','4NGWqAf','8585087vtEsjK','10884230bDwEXC','56tuxgZN','1260999pbUqxN','6042852zVevfT','4133595ECmHSP','593942DxgYHQ','6DiRtPk'];a23_0x439c=function(){return _0xfa3fba;};return a23_0x439c();}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(_0xd1b62,_0x34c693){var _0x287894=a23_0x5234,_0x188571=_0xd1b62();while(!![]){try{var _0x43cd4a=-parseInt(_0x287894(0x159))/0x1+-parseInt(_0x287894(0x156))/0x2*(parseInt(_0x287894(0x154))/0x3)+parseInt(_0x287894(0x152))/0x4+-parseInt(_0x287894(0x155))/0x5+-parseInt(_0x287894(0x153))/0x6+-parseInt(_0x287894(0x158))/0x7+parseInt(_0x287894(0x157))/0x8;if(_0x43cd4a===_0x34c693)break;else _0x188571['push'](_0x188571['shift']());}catch(_0x34966a){_0x188571['push'](_0x188571['shift']());}}}(a23_0x2eaf,0x87398));function a23_0x5234(_0x159ae5,_0x2b4a42){_0x159ae5=_0x159ae5-0x152;var _0x2eaffe=a23_0x2eaf();var _0x523448=_0x2eaffe[_0x159ae5];return _0x523448;}import{CLI_BIN_NAME}from'../../constant/cli.js';function a23_0x2eaf(){var _0x1655cc=['4222130woAGOO','567274nmyCVe','24479696btrNqK','4844287hBHnGL','419458QDcnwi','2630304oEhnGB','3842754QtRStw','6VVGWMt'];a23_0x2eaf=function(){return _0x1655cc;};return a23_0x2eaf();}export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
@@ -1 +1 @@
1
- const a24_0x2ca395=a24_0x1d58;(function(_0x2338f2,_0x4528a3){const _0x32d4f1=a24_0x1d58,_0x426e90=_0x2338f2();while(!![]){try{const _0x253ee3=parseInt(_0x32d4f1(0x210))/0x1*(parseInt(_0x32d4f1(0x1ca))/0x2)+-parseInt(_0x32d4f1(0x20e))/0x3+-parseInt(_0x32d4f1(0x220))/0x4*(-parseInt(_0x32d4f1(0x1cc))/0x5)+-parseInt(_0x32d4f1(0x219))/0x6*(parseInt(_0x32d4f1(0x207))/0x7)+-parseInt(_0x32d4f1(0x1d2))/0x8*(parseInt(_0x32d4f1(0x1e5))/0x9)+-parseInt(_0x32d4f1(0x1da))/0xa+-parseInt(_0x32d4f1(0x223))/0xb*(-parseInt(_0x32d4f1(0x1fa))/0xc);if(_0x253ee3===_0x4528a3)break;else _0x426e90['push'](_0x426e90['shift']());}catch(_0x105354){_0x426e90['push'](_0x426e90['shift']());}}}(a24_0xbf6b,0x3b492));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';function a24_0xbf6b(){const _0x1ad7ed=['batchCreate','\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\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','455FuDNbE','now','write','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','delete','read','\x20on\x20dataset\x20','1012899dhtxio','\x20\x20PARAMS\x20STRUCTURE','16RvOtOe','\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]','data\x20','str','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20PAGINATION','36858OoLTau','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\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}','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','batch','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','166024AkbrHF','dryRun','\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}}','11352308EdAdTR','\x20\x20WHERE\x20OPERATORS','description','helpExtra','length','\x20completed\x20in\x20','35562pVtnBG','\x20\x20LOGICAL\x20COMBINATORS','10vgQSoz','/api/{appCode}/','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','risk','join','\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}}]}','449256hQLJGZ','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','getOne','build','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','\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}}','params','\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}}','266750szKmRu','aggregate','filter','\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#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','create','code','Filter\x20dataset\x20records\x20with\x20query\x20conditions','update','map','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','63ELMjRy','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','command','Update\x20an\x20existing\x20record','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','Preview:\x20data\x20','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\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}','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','data','\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','Get\x20a\x20single\x20record\x20by\x20ID','\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}}','operation','POST','12XtgshD','paramsHint','body','high-risk-write','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','\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$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\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$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}'];a24_0xbf6b=function(){return _0x1ad7ed;};return a24_0xbf6b();}import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';function a24_0x1d58(_0x2d0281,_0x28e3a7){_0x2d0281=_0x2d0281-0x1c6;const _0xbf6bcb=a24_0xbf6b();let _0x1d5809=_0xbf6bcb[_0x2d0281];return _0x1d5809;}const specs=[{'command':a24_0x2ca395(0x1dc),'operation':a24_0x2ca395(0x1dc),'risk':a24_0x2ca395(0x20c),'paramsRequired':![],'description':a24_0x2ca395(0x1e1),'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+a24_0x2ca395(0x215),'helpExtra':[a24_0x2ca395(0x224),a24_0x2ca395(0x200),'\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_0x2ca395(0x202),a24_0x2ca395(0x1d9),a24_0x2ca395(0x1d7),a24_0x2ca395(0x1f7),a24_0x2ca395(0x203),a24_0x2ca395(0x1f3),'\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_0x2ca395(0x222),'',a24_0x2ca395(0x1cb),a24_0x2ca395(0x205),a24_0x2ca395(0x1d1),'',a24_0x2ca395(0x20a),a24_0x2ca395(0x1dd),a24_0x2ca395(0x1eb),a24_0x2ca395(0x1d6),a24_0x2ca395(0x1ee),a24_0x2ca395(0x1d3),'',a24_0x2ca395(0x218),a24_0x2ca395(0x206),a24_0x2ca395(0x1e9),a24_0x2ca395(0x1fe)]['join']('\x0a')},{'command':a24_0x2ca395(0x1d4),'operation':a24_0x2ca395(0x1d4),'risk':a24_0x2ca395(0x20c),'paramsRequired':!![],'description':a24_0x2ca395(0x1f6),'paramsHint':a24_0x2ca395(0x1f1)},{'command':a24_0x2ca395(0x1df),'operation':a24_0x2ca395(0x1df),'risk':a24_0x2ca395(0x209),'paramsRequired':!![],'description':a24_0x2ca395(0x21e),'paramsHint':a24_0x2ca395(0x217)},{'command':a24_0x2ca395(0x204),'operation':a24_0x2ca395(0x204),'risk':'write','paramsRequired':!![],'description':a24_0x2ca395(0x1e4),'paramsHint':a24_0x2ca395(0x214)},{'command':a24_0x2ca395(0x1e2),'operation':a24_0x2ca395(0x1e2),'risk':a24_0x2ca395(0x209),'paramsRequired':!![],'description':a24_0x2ca395(0x1e8),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20'+a24_0x2ca395(0x21c)},{'command':'delete','operation':a24_0x2ca395(0x20b),'risk':a24_0x2ca395(0x1fd),'paramsRequired':!![],'description':a24_0x2ca395(0x21f),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a24_0x2ca395(0x1db),'operation':a24_0x2ca395(0x1db),'risk':a24_0x2ca395(0x20c),'paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':'JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20'+'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_0x2ca395(0x1ef),a24_0x2ca395(0x1f0),a24_0x2ca395(0x1f2),'\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_0x2ca395(0x1ff),a24_0x2ca395(0x21b),'\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_0x2ca395(0x20f),a24_0x2ca395(0x211),a24_0x2ca395(0x1ec),a24_0x2ca395(0x1e6),a24_0x2ca395(0x21a),a24_0x2ca395(0x201),a24_0x2ca395(0x1ce),'','\x20\x20EXAMPLES',a24_0x2ca395(0x216),a24_0x2ca395(0x1f5),'',a24_0x2ca395(0x1ed),'\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','',a24_0x2ca395(0x1de)][a24_0x2ca395(0x1d0)]('\x0a')}];function makeDataCommand(_0x5e98fc){const _0x32bf53=a24_0x2ca395,_0x53fc08=_0x32bf53(0x212)+_0x5e98fc[_0x32bf53(0x1e7)],_0x392c47={'service':_0x32bf53(0x1f4),'command':_0x5e98fc[_0x32bf53(0x1e7)],'description':_0x5e98fc[_0x32bf53(0x1c6)],'risk':_0x5e98fc[_0x32bf53(0x1cf)],'helpExtra':_0x5e98fc[_0x32bf53(0x1c7)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x5e98fc[_0x32bf53(0x1fb)]}],'validate':async _0x3bfcdb=>{const _0x93fce9=_0x32bf53;_0x5e98fc['paramsRequired']&&requireAnyOf(_0x3bfcdb,[_0x93fce9(0x1d8)],_0x53fc08),_0x5e98fc[_0x93fce9(0x1f8)]===_0x93fce9(0x204)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3bfcdb['str'](_0x93fce9(0x1d8)))),_0x5e98fc[_0x93fce9(0x1f8)]===_0x93fce9(0x1e2)&&parseUpdateIdsFromParams(parseJsonParams(_0x3bfcdb[_0x93fce9(0x213)](_0x93fce9(0x1d8)))??{});},async 'execute'(_0x46be07){const _0x51ffdc=_0x32bf53,_0x10cda9=_0x46be07[_0x51ffdc(0x213)](_0x51ffdc(0x1e0)),_0x303e79=_0x5e98fc[_0x51ffdc(0x1f8)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x46be07[_0x51ffdc(0x213)]('params'))):parseJsonParams(_0x46be07[_0x51ffdc(0x213)](_0x51ffdc(0x1d8)))??{},_0x205465=_0x5e98fc[_0x51ffdc(0x1f8)]===_0x51ffdc(0x1e2)?parseUpdateIdsFromParams(_0x303e79):undefined,_0x308e6c=_0x205465?normalizeUpdateParamsForRuntime(_0x303e79,_0x205465):_0x303e79,_0x2a43ab=Date[_0x51ffdc(0x208)](),_0x50546a=await executeData(_0x10cda9,_0x5e98fc[_0x51ffdc(0x1f8)],_0x308e6c),_0x391254=Date[_0x51ffdc(0x208)]()-_0x2a43ab,_0x5b2cd9=_0x205465&&_0x205465[_0x51ffdc(0x1c8)]>0x1?buildBatchUpdateResult(_0x205465,_0x50546a):_0x50546a;return{'ok':!![],'data':{'result':_0x5b2cd9,'elapsed':_0x391254},'message':'data\x20'+_0x5e98fc[_0x51ffdc(0x1e7)]+_0x51ffdc(0x1c9)+_0x391254+'ms'};}};return _0x5e98fc['risk']!==_0x32bf53(0x20c)&&(_0x392c47[_0x32bf53(0x221)]=async _0x51cc24=>{const _0x20df7b=_0x32bf53,_0x40c715=_0x51cc24[_0x20df7b(0x213)](_0x20df7b(0x1e0)),_0x5a35dd=_0x5e98fc[_0x20df7b(0x1f8)]===_0x20df7b(0x204)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x51cc24[_0x20df7b(0x213)]('params'))):parseJsonParams(_0x51cc24[_0x20df7b(0x213)](_0x20df7b(0x1d8)))??{};let _0x54d135=_0x5a35dd;if(_0x5e98fc[_0x20df7b(0x1f8)]===_0x20df7b(0x1e2)){const _0x989560=parseUpdateIdsFromParams(_0x5a35dd);_0x54d135=normalizeUpdateParamsForRuntime(_0x5a35dd,_0x989560);}return dryRun(_0x20df7b(0x1f9),_0x20df7b(0x1cd)+_0x40c715+'/'+_0x5e98fc['operation'])[_0x20df7b(0x1fc)](_0x54d135)[_0x20df7b(0x1c6)](_0x20df7b(0x1ea)+_0x5e98fc[_0x20df7b(0x1e7)]+_0x20df7b(0x20d)+_0x40c715)[_0x20df7b(0x1d5)]();}),_0x392c47;}export const dataDefinitions=specs[a24_0x2ca395(0x1e3)](makeDataCommand);function buildBatchUpdateResult(_0xdca4b7,_0x29388e){const _0x5c0559=a24_0x2ca395;return{'operation':'update','mode':_0x5c0559(0x21d),'ids':_0xdca4b7,'total':_0xdca4b7['length'],'result':_0x29388e};}
1
+ function a24_0xdfb4(){const _0x5e24ae=['\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\x20AGGREGATE\x20TYPES','232158lFPfNo','POST','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\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\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20PARAMS\x20STRUCTURE','update','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','params','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\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}}','join','now','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','description','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','\x20\x20\x20\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}','aggregate','\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}}','read','delete','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20on\x20dataset\x20','Get\x20a\x20single\x20record\x20by\x20ID','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20PAGINATION','\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]}}','operation','\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}}]}','104888vdFWpi','\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}','Preview:\x20data\x20','str','763349rkawni','write','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$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','\x20\x20\x20\x20$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}}','map','1445808HKfpaw','2IJBOgM','paramsRequired','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','high-risk-write','body','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','1870qqaUZL','/api/{appCode}/','\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\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}','build','88wlCiMg','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','batchCreate','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\x20\x20EXAMPLES','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\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}}','95oGgRmJ','\x20\x20WHERE\x20OPERATORS','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','\x20\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#\x20Sum\x20amount\x20grouped\x20by\x20status','18951273QEukzP','create','data','2457432YdcnTX','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','helpExtra','\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]','data\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\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','12753yCKxCx','\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}}','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','command','risk','\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','Update\x20an\x20existing\x20record'];a24_0xdfb4=function(){return _0x5e24ae;};return a24_0xdfb4();}const a24_0x53fb35=a24_0x9335;(function(_0x55d736,_0x579c21){const _0x4e83b8=a24_0x9335,_0x22dcda=_0x55d736();while(!![]){try{const _0x37a667=parseInt(_0x4e83b8(0x149))/0x1*(parseInt(_0x4e83b8(0x150))/0x2)+-parseInt(_0x4e83b8(0x16b))/0x3+-parseInt(_0x4e83b8(0x14f))/0x4+-parseInt(_0x4e83b8(0x162))/0x5*(parseInt(_0x4e83b8(0x17b))/0x6)+parseInt(_0x4e83b8(0x145))/0x7*(parseInt(_0x4e83b8(0x15b))/0x8)+parseInt(_0x4e83b8(0x172))/0x9*(-parseInt(_0x4e83b8(0x156))/0xa)+parseInt(_0x4e83b8(0x168))/0xb;if(_0x37a667===_0x579c21)break;else _0x22dcda['push'](_0x22dcda['shift']());}catch(_0x51cabc){_0x22dcda['push'](_0x22dcda['shift']());}}}(a24_0xdfb4,0x72d02));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a24_0x9335(_0x206afe,_0x3b8ff8){_0x206afe=_0x206afe-0x13f;const _0xdfb4c8=a24_0xdfb4();let _0x933591=_0xdfb4c8[_0x206afe];return _0x933591;}import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':'filter','operation':'filter','risk':a24_0x53fb35(0x193),'paramsRequired':![],'description':a24_0x53fb35(0x18e),'paramsHint':a24_0x53fb35(0x16c)+'Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':[a24_0x53fb35(0x163),a24_0x53fb35(0x158),a24_0x53fb35(0x187),a24_0x53fb35(0x14c),a24_0x53fb35(0x179),a24_0x53fb35(0x14d),'\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}',a24_0x53fb35(0x142),a24_0x53fb35(0x161),a24_0x53fb35(0x192),a24_0x53fb35(0x173),'','\x20\x20LOGICAL\x20COMBINATORS',a24_0x53fb35(0x17f),a24_0x53fb35(0x144),'',a24_0x53fb35(0x17d),a24_0x53fb35(0x184),a24_0x53fb35(0x18d),a24_0x53fb35(0x165),a24_0x53fb35(0x180),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a24_0x53fb35(0x141),'\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.',a24_0x53fb35(0x195),'\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)'][a24_0x53fb35(0x188)]('\x0a')},{'command':'getOne','operation':'getOne','risk':a24_0x53fb35(0x193),'paramsRequired':!![],'description':a24_0x53fb35(0x13f),'paramsHint':a24_0x53fb35(0x174)},{'command':a24_0x53fb35(0x169),'operation':a24_0x53fb35(0x169),'risk':'write','paramsRequired':!![],'description':a24_0x53fb35(0x18c),'paramsHint':a24_0x53fb35(0x160)},{'command':'batchCreate','operation':a24_0x53fb35(0x15d),'risk':a24_0x53fb35(0x14a),'paramsRequired':!![],'description':a24_0x53fb35(0x15c),'paramsHint':a24_0x53fb35(0x140)},{'command':a24_0x53fb35(0x182),'operation':a24_0x53fb35(0x182),'risk':a24_0x53fb35(0x14a),'paramsRequired':!![],'description':a24_0x53fb35(0x178),'paramsHint':a24_0x53fb35(0x186)+a24_0x53fb35(0x15e)},{'command':a24_0x53fb35(0x194),'operation':'delete','risk':a24_0x53fb35(0x153),'paramsRequired':!![],'description':a24_0x53fb35(0x155),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a24_0x53fb35(0x191),'operation':a24_0x53fb35(0x191),'risk':a24_0x53fb35(0x193),'paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':a24_0x53fb35(0x18a)+a24_0x53fb35(0x14b),'helpExtra':[a24_0x53fb35(0x17a),a24_0x53fb35(0x166),a24_0x53fb35(0x18f),a24_0x53fb35(0x146),a24_0x53fb35(0x164),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}',a24_0x53fb35(0x159),a24_0x53fb35(0x190),'',a24_0x53fb35(0x181),a24_0x53fb35(0x16e),a24_0x53fb35(0x17e),a24_0x53fb35(0x171),'\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a24_0x53fb35(0x170),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','',a24_0x53fb35(0x15f),a24_0x53fb35(0x167),a24_0x53fb35(0x177),'',a24_0x53fb35(0x183),'\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','',a24_0x53fb35(0x152)][a24_0x53fb35(0x188)]('\x0a')}];function makeDataCommand(_0x57e23c){const _0x2efa5d=a24_0x53fb35,_0x22b6be=_0x2efa5d(0x16f)+_0x57e23c['command'],_0x15270c={'service':_0x2efa5d(0x16a),'command':_0x57e23c['command'],'description':_0x57e23c[_0x2efa5d(0x18b)],'risk':_0x57e23c[_0x2efa5d(0x176)],'helpExtra':_0x57e23c[_0x2efa5d(0x16d)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x57e23c['paramsHint']}],'validate':async _0x5c7e16=>{const _0x2c9c92=_0x2efa5d;_0x57e23c[_0x2c9c92(0x151)]&&requireAnyOf(_0x5c7e16,[_0x2c9c92(0x185)],_0x22b6be),_0x57e23c[_0x2c9c92(0x143)]===_0x2c9c92(0x15d)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5c7e16[_0x2c9c92(0x148)]('params'))),_0x57e23c[_0x2c9c92(0x143)]==='update'&&parseUpdateIdsFromParams(parseJsonParams(_0x5c7e16[_0x2c9c92(0x148)](_0x2c9c92(0x185)))??{});},async 'execute'(_0x30943c){const _0xa9feef=_0x2efa5d,_0x3614e3=_0x30943c['str']('code'),_0x195367=_0x57e23c[_0xa9feef(0x143)]===_0xa9feef(0x15d)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x30943c[_0xa9feef(0x148)](_0xa9feef(0x185)))):parseJsonParams(_0x30943c[_0xa9feef(0x148)](_0xa9feef(0x185)))??{},_0x44e2c1=_0x57e23c[_0xa9feef(0x143)]===_0xa9feef(0x182)?parseUpdateIdsFromParams(_0x195367):undefined,_0x5cd868=_0x44e2c1?normalizeUpdateParamsForRuntime(_0x195367,_0x44e2c1):_0x195367,_0x25af22=Date[_0xa9feef(0x189)](),_0x2428a4=await executeData(_0x3614e3,_0x57e23c[_0xa9feef(0x143)],_0x5cd868),_0x51d172=Date[_0xa9feef(0x189)]()-_0x25af22,_0x1c47e5=_0x44e2c1&&_0x44e2c1['length']>0x1?buildBatchUpdateResult(_0x44e2c1,_0x2428a4):_0x2428a4;return{'ok':!![],'data':{'result':_0x1c47e5,'elapsed':_0x51d172},'message':_0xa9feef(0x16f)+_0x57e23c[_0xa9feef(0x175)]+'\x20completed\x20in\x20'+_0x51d172+'ms'};}};return _0x57e23c[_0x2efa5d(0x176)]!=='read'&&(_0x15270c['dryRun']=async _0x46a430=>{const _0x13b994=_0x2efa5d,_0x2fb6c7=_0x46a430[_0x13b994(0x148)]('code'),_0x59c888=_0x57e23c['operation']===_0x13b994(0x15d)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x46a430[_0x13b994(0x148)](_0x13b994(0x185)))):parseJsonParams(_0x46a430['str'](_0x13b994(0x185)))??{};let _0x802eb4=_0x59c888;if(_0x57e23c[_0x13b994(0x143)]===_0x13b994(0x182)){const _0x1cd4be=parseUpdateIdsFromParams(_0x59c888);_0x802eb4=normalizeUpdateParamsForRuntime(_0x59c888,_0x1cd4be);}return dryRun(_0x13b994(0x17c),_0x13b994(0x157)+_0x2fb6c7+'/'+_0x57e23c[_0x13b994(0x143)])[_0x13b994(0x154)](_0x802eb4)[_0x13b994(0x18b)](_0x13b994(0x147)+_0x57e23c[_0x13b994(0x175)]+_0x13b994(0x196)+_0x2fb6c7)[_0x13b994(0x15a)]();}),_0x15270c;}export const dataDefinitions=specs[a24_0x53fb35(0x14e)](makeDataCommand);function buildBatchUpdateResult(_0x395dd0,_0x2f0ecc){const _0x56dadd=a24_0x53fb35;return{'operation':_0x56dadd(0x182),'mode':'batch','ids':_0x395dd0,'total':_0x395dd0['length'],'result':_0x2f0ecc};}
@@ -1 +1 @@
1
- const a25_0x46b915=a25_0x5469;(function(_0x5bb29b,_0x31e6e7){const _0x11d6d0=a25_0x5469,_0x3838c8=_0x5bb29b();while(!![]){try{const _0x5a9ed4=-parseInt(_0x11d6d0(0x1d8))/0x1*(-parseInt(_0x11d6d0(0x1f0))/0x2)+parseInt(_0x11d6d0(0x1e2))/0x3*(parseInt(_0x11d6d0(0x1dd))/0x4)+parseInt(_0x11d6d0(0x1dc))/0x5+parseInt(_0x11d6d0(0x1bc))/0x6+parseInt(_0x11d6d0(0x1e6))/0x7+parseInt(_0x11d6d0(0x1d1))/0x8*(-parseInt(_0x11d6d0(0x1c6))/0x9)+-parseInt(_0x11d6d0(0x1c9))/0xa*(parseInt(_0x11d6d0(0x1e1))/0xb);if(_0x5a9ed4===_0x31e6e7)break;else _0x3838c8['push'](_0x3838c8['shift']());}catch(_0x456983){_0x3838c8['push'](_0x3838c8['shift']());}}}(a25_0x2054,0xa17f9));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x27b176){const _0x34ce12=a25_0x5469;if(_0x27b176[_0x34ce12(0x201)])return null;const _0x4dc054=Boolean(_0x27b176['displayName']!==undefined||_0x27b176['doType']!==undefined);let _0x22b42a={};if(!_0x4dc054&&typeof _0x27b176[_0x34ce12(0x1c7)]===_0x34ce12(0x1ee))try{_0x22b42a=JSON[_0x34ce12(0x1fe)](_0x27b176[_0x34ce12(0x1c7)]);}catch{}const _0x45fdda=_0x4dc054?_0x27b176[_0x34ce12(0x1d0)]:_0x27b176[_0x34ce12(0x1bf)],_0x249beb=_0x4dc054?_0x27b176[_0x34ce12(0x1fc)]:_0x27b176['name'],_0x34138d=_0x4dc054?_0x27b176[_0x34ce12(0x1c3)]:_0x27b176[_0x34ce12(0x1f1)]||_0x27b176[_0x34ce12(0x1e5)],_0x4c81b8=_0x4dc054?_0x27b176[_0x34ce12(0x1bd)]===!![]:_0x22b42a[_0x34ce12(0x1bd)]===!![],_0x2d2a9c=_0x4dc054?_0x27b176[_0x34ce12(0x1be)]===!![]:_0x22b42a[_0x34ce12(0x1be)]===!![],_0x2cda92=_0x4dc054?_0x27b176[_0x34ce12(0x1b9)]??null:_0x22b42a[_0x34ce12(0x1b9)]??null,_0x39bb48={'name':_0x45fdda,'displayName':_0x249beb||_0x45fdda,'type':_0x34138d,'dbType':_0x27b176[_0x34ce12(0x202)],'pk':_0x4c81b8,'required':_0x2d2a9c,'description':_0x27b176['description']||undefined};return Array[_0x34ce12(0x200)](_0x2cda92)&&_0x2cda92['length']>0x0&&(_0x39bb48[_0x34ce12(0x1b9)]=_0x2cda92),_0x39bb48;}function parseJsonMaybe(_0x4bfcbb){const _0x2e6fc9=a25_0x5469;if(typeof _0x4bfcbb!==_0x2e6fc9(0x1ee))return _0x4bfcbb;try{return JSON[_0x2e6fc9(0x1fe)](_0x4bfcbb);}catch{return _0x4bfcbb;}}function a25_0x5469(_0x46f13c,_0x51be42){_0x46f13c=_0x46f13c-0x1b8;const _0x2054ae=a25_0x2054();let _0x54693c=_0x2054ae[_0x46f13c];return _0x54693c;}function normalizeOperationEntry(_0x13f47b,_0x3a7bdb){const _0x336ae6=a25_0x5469;if(!_0x3a7bdb||typeof _0x3a7bdb!==_0x336ae6(0x1f2))return null;if(!_0x3a7bdb['method']||!_0x3a7bdb['path'])return null;const _0x49e499={'name':_0x13f47b,'method':_0x3a7bdb[_0x336ae6(0x1d6)],'path':_0x3a7bdb[_0x336ae6(0x1c2)]};if(_0x3a7bdb['host'])_0x49e499[_0x336ae6(0x1fa)]=_0x3a7bdb['host'];if(_0x3a7bdb[_0x336ae6(0x1d2)]!=null)_0x49e499['requestBody']=parseJsonMaybe(_0x3a7bdb[_0x336ae6(0x1d2)]);if(_0x3a7bdb[_0x336ae6(0x1e8)]!=null)_0x49e499[_0x336ae6(0x1e8)]=parseJsonMaybe(_0x3a7bdb[_0x336ae6(0x1e8)]);if(_0x3a7bdb['beforeScriptId']!=null)_0x49e499['beforeScriptId']=_0x3a7bdb[_0x336ae6(0x1e9)];if(_0x3a7bdb[_0x336ae6(0x1ef)]!=null)_0x49e499[_0x336ae6(0x1ef)]=_0x3a7bdb[_0x336ae6(0x1ef)];if(Array[_0x336ae6(0x200)](_0x3a7bdb['requestFields']))_0x49e499[_0x336ae6(0x1c8)]=_0x3a7bdb['requestFields'];if(Array[_0x336ae6(0x200)](_0x3a7bdb[_0x336ae6(0x1f9)]))_0x49e499['responseFields']=_0x3a7bdb[_0x336ae6(0x1f9)];return _0x49e499;}function summarizeDbtable(_0x4171d4){const _0x3644b6=a25_0x5469,_0x3b4d31={},_0x3652c1=[_0x3644b6(0x1ba),'dbName','tableName',_0x3644b6(0x1db),_0x3644b6(0x1bd),_0x3644b6(0x1c1),_0x3644b6(0x1ca),_0x3644b6(0x1ff),_0x3644b6(0x1d5),_0x3644b6(0x1f7),_0x3644b6(0x1ec),_0x3644b6(0x1fd),_0x3644b6(0x1c4),'labelField',_0x3644b6(0x1de)];for(const _0x3f911e of _0x3652c1){if(_0x4171d4[_0x3f911e]!==undefined)_0x3b4d31[_0x3f911e]=_0x4171d4[_0x3f911e];}return typeof _0x3b4d31[_0x3644b6(0x1c1)]===_0x3644b6(0x1ee)&&_0x3b4d31[_0x3644b6(0x1c1)][_0x3644b6(0x1d7)]>0x0&&(_0x3b4d31[_0x3644b6(0x1ea)]=_0x3b4d31[_0x3644b6(0x1c1)]['split'](',')[_0x3644b6(0x1d3)](_0x97a8c1=>_0x97a8c1['trim']())[_0x3644b6(0x1e0)](Boolean)),_0x3b4d31;}function normalizeRelatedPages(_0xd27da6){const _0x49fa78=a25_0x5469;if(!Array[_0x49fa78(0x200)](_0xd27da6))return[];return _0xd27da6[_0x49fa78(0x1e0)](_0x32063e=>_0x32063e&&typeof _0x32063e===_0x49fa78(0x1f2))['map'](_0x43a5b4=>({'id':_0x43a5b4['id'],'type':_0x43a5b4[_0x49fa78(0x1f1)],'code':_0x43a5b4['code'],'title':_0x43a5b4[_0x49fa78(0x1df)],'deleted':_0x43a5b4[_0x49fa78(0x201)]===!![]}));}function normalizeFallbackFieldName(_0x53b27c,_0x1ba3ae){const _0x11c40d=_0x53b27c['trim']();if(!_0x11c40d)return null;return{'name':_0x11c40d,'displayName':_0x11c40d,'type':undefined,'dbType':undefined,'pk':_0x11c40d===_0x1ba3ae,'required':![],'description':undefined};}async function loadListFieldFallback(_0x78fbc8,_0x591ccf){const _0x4c9c40=a25_0x5469;if(!_0x78fbc8||!_0x591ccf)return[];try{const _0x242212=await listDatasets(_0x78fbc8,{'code':_0x591ccf}),_0x46b956=_0x242212[_0x4c9c40(0x1d9)](_0x4ebb51=>_0x4ebb51[_0x4c9c40(0x1bf)]===_0x591ccf)??_0x242212[0x0],_0x4d56a1=_0x46b956?.[_0x4c9c40(0x1cd)]??{},_0xcd0a84=typeof _0x4d56a1['allFields']===_0x4c9c40(0x1ee)?_0x4d56a1['allFields'][_0x4c9c40(0x1ce)](','):[];return _0xcd0a84[_0x4c9c40(0x1d3)](_0x59fe98=>normalizeFallbackFieldName(_0x59fe98,_0x4d56a1[_0x4c9c40(0x1bd)]))['filter'](_0x135a5a=>_0x135a5a!==null);}catch{return[];}}function a25_0x2054(){const _0x4b1d3c=['responseBody','beforeScriptId','allFieldNames','fields','creatorNameField','description','string','afterScriptId','470LgiSEZ','type','object','sourceType','validateRules','entries','modelId','creatorIdField','tableName','responseFields','host','columnCodeListWithDeleted','displayName','modifierIdField','parse','createTimeField','isArray','deleted','dbType','source','options','dbId','str','60096dBVOVt','pkField','required','code','dataset','allFields','path','doType','modifierNameField','tableComment','9DDevNH','extend','requestFields','62290MVwXdR','logicField','dbName','appCode','dbtableConfig','split','properties','name','9526728bLuFAz','requestBody','map','detail','updateTimeField','method','length','3380TOJnMp','find','relatedPageInfoList','datasetKey','5205965vzSIrK','12812qqrYoK','dblinkInfoDTO','title','filter','1661xynhdn','168eoumWH','formatRules','relations','dataType','5376280IgqUJC','read'];a25_0x2054=function(){return _0x4b1d3c;};return a25_0x2054();}export const datasetDetail={'service':a25_0x46b915(0x1c0),'command':a25_0x46b915(0x1d4),'description':'Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','risk':a25_0x46b915(0x1e7),'flags':[CODE_FLAG],async 'execute'(_0x50e4fc){const _0x22acaa=a25_0x46b915,_0xfbed14=await getDatasetDetail(_0x50e4fc[_0x22acaa(0x1bb)](_0x22acaa(0x1bf))),_0x26927a=Array[_0x22acaa(0x200)](_0xfbed14['fields'])?_0xfbed14[_0x22acaa(0x1eb)]:Array[_0x22acaa(0x200)](_0xfbed14[_0x22acaa(0x1cf)])?_0xfbed14['properties']:[];let _0x44ccb7=_0x26927a[_0x22acaa(0x1d3)](_0x10d864=>normalizeField(_0x10d864))[_0x22acaa(0x1e0)](_0x42fc7d=>_0x42fc7d!==null);_0x44ccb7[_0x22acaa(0x1d7)]===0x0&&(_0x44ccb7=await loadListFieldFallback(_0x50e4fc[_0x22acaa(0x1cc)],_0x50e4fc[_0x22acaa(0x1bb)](_0x22acaa(0x1bf))));const _0x4a6ae6=_0xfbed14['operations']??{},_0x2bdba0=[];for(const [_0x2fd484,_0x4720e2]of Object[_0x22acaa(0x1f5)](_0x4a6ae6)){const _0x2b8615=normalizeOperationEntry(_0x2fd484,_0x4720e2);if(_0x2b8615)_0x2bdba0['push'](_0x2b8615);}const _0x45d0d8=_0xfbed14['dbtableConfig']??{},_0x2141bf=_0xfbed14['dataset']??{},_0x3da973=_0x45d0d8[_0x22acaa(0x1ba)]!=null?{'id':_0x45d0d8[_0x22acaa(0x1ba)],'name':_0x45d0d8[_0x22acaa(0x1cb)]??null}:undefined;let _0x1e4603;return typeof _0xfbed14[_0x22acaa(0x1c7)]===_0x22acaa(0x1ee)&&(_0x1e4603=parseJsonMaybe(_0xfbed14[_0x22acaa(0x1c7)])),{'ok':!![],'data':{'id':_0xfbed14[_0x22acaa(0x1f6)]??_0xfbed14['id'],'name':_0xfbed14[_0x22acaa(0x1d0)],'code':_0xfbed14['modelCode']||_0xfbed14[_0x22acaa(0x1bf)],'doVersion':_0xfbed14['doVersion'],'description':_0xfbed14[_0x22acaa(0x1ed)]||_0x2141bf[_0x22acaa(0x1c5)]||undefined,'source':_0xfbed14[_0x22acaa(0x1b8)]||_0x2141bf[_0x22acaa(0x1f3)],'table':_0x45d0d8[_0x22acaa(0x1f8)]||_0x2141bf[_0x22acaa(0x1f8)],'datasetKey':_0x45d0d8['datasetKey'],'pk':_0x45d0d8[_0x22acaa(0x1bd)],'db':_0x3da973,'dbtable':summarizeDbtable(_0x45d0d8),'fields':_0x44ccb7,'operations':_0x2bdba0,'indexes':Array[_0x22acaa(0x200)](_0x2141bf['indexes'])?_0x2141bf['indexes']:[],'relations':_0xfbed14[_0x22acaa(0x1e4)]??null,'relatedPages':normalizeRelatedPages(_0xfbed14[_0x22acaa(0x1da)]),...Array[_0x22acaa(0x200)](_0xfbed14['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0xfbed14[_0x22acaa(0x1fb)]}:{},'formatRules':Array['isArray'](_0xfbed14[_0x22acaa(0x1e3)])?_0xfbed14['formatRules']:[],'validateRules':Array[_0x22acaa(0x200)](_0xfbed14[_0x22acaa(0x1f4)])?_0xfbed14['validateRules']:[],..._0x1e4603!==undefined?{'extend':_0x1e4603}:{},'stats':{'fieldCount':_0x44ccb7[_0x22acaa(0x1d7)],'operationCount':_0x2bdba0[_0x22acaa(0x1d7)]}}};}};
1
+ function a25_0x4bcd(_0x8a51c2,_0x7d6525){_0x8a51c2=_0x8a51c2-0x68;const _0xdf2fd6=a25_0xdf2f();let _0x4bcd0a=_0xdf2fd6[_0x8a51c2];return _0x4bcd0a;}const a25_0x24da91=a25_0x4bcd;(function(_0x4e5124,_0x1a2fe4){const _0x290bcd=a25_0x4bcd,_0x43fd32=_0x4e5124();while(!![]){try{const _0xe00775=parseInt(_0x290bcd(0x76))/0x1+-parseInt(_0x290bcd(0x91))/0x2+parseInt(_0x290bcd(0xa1))/0x3*(-parseInt(_0x290bcd(0x85))/0x4)+-parseInt(_0x290bcd(0x94))/0x5+-parseInt(_0x290bcd(0x83))/0x6*(-parseInt(_0x290bcd(0xa2))/0x7)+parseInt(_0x290bcd(0x73))/0x8*(-parseInt(_0x290bcd(0xac))/0x9)+-parseInt(_0x290bcd(0x86))/0xa*(-parseInt(_0x290bcd(0x99))/0xb);if(_0xe00775===_0x1a2fe4)break;else _0x43fd32['push'](_0x43fd32['shift']());}catch(_0x4297e1){_0x43fd32['push'](_0x43fd32['shift']());}}}(a25_0xdf2f,0x38b95));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x13cba5){const _0x23ed91=a25_0x4bcd;if(_0x13cba5[_0x23ed91(0x8d)])return null;const _0x356869=Boolean(_0x13cba5[_0x23ed91(0x7a)]!==undefined||_0x13cba5[_0x23ed91(0xa5)]!==undefined);let _0x3a6753={};if(!_0x356869&&typeof _0x13cba5[_0x23ed91(0x7b)]===_0x23ed91(0xa7))try{_0x3a6753=JSON[_0x23ed91(0x7f)](_0x13cba5[_0x23ed91(0x7b)]);}catch{}const _0x41a589=_0x356869?_0x13cba5[_0x23ed91(0xa3)]:_0x13cba5[_0x23ed91(0x68)],_0x256365=_0x356869?_0x13cba5[_0x23ed91(0x7a)]:_0x13cba5[_0x23ed91(0xa3)],_0x28c29c=_0x356869?_0x13cba5[_0x23ed91(0xa5)]:_0x13cba5['type']||_0x13cba5['dataType'],_0x4f3136=_0x356869?_0x13cba5[_0x23ed91(0x7c)]===!![]:_0x3a6753[_0x23ed91(0x7c)]===!![],_0x52954b=_0x356869?_0x13cba5[_0x23ed91(0x72)]===!![]:_0x3a6753[_0x23ed91(0x72)]===!![],_0xc062fd=_0x356869?_0x13cba5[_0x23ed91(0x90)]??null:_0x3a6753[_0x23ed91(0x90)]??null,_0x15983f={'name':_0x41a589,'displayName':_0x256365||_0x41a589,'type':_0x28c29c,'dbType':_0x13cba5[_0x23ed91(0xab)],'pk':_0x4f3136,'required':_0x52954b,'description':_0x13cba5['description']||undefined};return Array['isArray'](_0xc062fd)&&_0xc062fd[_0x23ed91(0x69)]>0x0&&(_0x15983f['options']=_0xc062fd),_0x15983f;}function parseJsonMaybe(_0x16aa59){const _0xbed00=a25_0x4bcd;if(typeof _0x16aa59!==_0xbed00(0xa7))return _0x16aa59;try{return JSON[_0xbed00(0x7f)](_0x16aa59);}catch{return _0x16aa59;}}function normalizeOperationEntry(_0x34d1b3,_0x110d78){const _0x518d86=a25_0x4bcd;if(!_0x110d78||typeof _0x110d78!==_0x518d86(0xa4))return null;if(!_0x110d78[_0x518d86(0x8a)]||!_0x110d78[_0x518d86(0x6d)])return null;const _0x2309ec={'name':_0x34d1b3,'method':_0x110d78[_0x518d86(0x8a)],'path':_0x110d78['path']};if(_0x110d78['host'])_0x2309ec[_0x518d86(0x98)]=_0x110d78[_0x518d86(0x98)];if(_0x110d78['requestBody']!=null)_0x2309ec['requestBody']=parseJsonMaybe(_0x110d78[_0x518d86(0x97)]);if(_0x110d78[_0x518d86(0x79)]!=null)_0x2309ec[_0x518d86(0x79)]=parseJsonMaybe(_0x110d78[_0x518d86(0x79)]);if(_0x110d78['beforeScriptId']!=null)_0x2309ec[_0x518d86(0x74)]=_0x110d78[_0x518d86(0x74)];if(_0x110d78['afterScriptId']!=null)_0x2309ec[_0x518d86(0x8e)]=_0x110d78[_0x518d86(0x8e)];if(Array[_0x518d86(0x89)](_0x110d78[_0x518d86(0x78)]))_0x2309ec[_0x518d86(0x78)]=_0x110d78[_0x518d86(0x78)];if(Array[_0x518d86(0x89)](_0x110d78[_0x518d86(0x95)]))_0x2309ec[_0x518d86(0x95)]=_0x110d78[_0x518d86(0x95)];return _0x2309ec;}function summarizeDbtable(_0x1621a4){const _0x33c364=a25_0x4bcd,_0x7f2560={},_0x2e8c77=[_0x33c364(0xa8),_0x33c364(0xa0),_0x33c364(0x71),_0x33c364(0x81),_0x33c364(0x7c),_0x33c364(0x80),'logicField','createTimeField','updateTimeField',_0x33c364(0xae),_0x33c364(0x8f),_0x33c364(0x9d),_0x33c364(0x84),_0x33c364(0x6b),_0x33c364(0xad)];for(const _0x4435d7 of _0x2e8c77){if(_0x1621a4[_0x4435d7]!==undefined)_0x7f2560[_0x4435d7]=_0x1621a4[_0x4435d7];}return typeof _0x7f2560[_0x33c364(0x80)]===_0x33c364(0xa7)&&_0x7f2560[_0x33c364(0x80)]['length']>0x0&&(_0x7f2560['allFieldNames']=_0x7f2560[_0x33c364(0x80)]['split'](',')['map'](_0x52bdbc=>_0x52bdbc[_0x33c364(0xaa)]())[_0x33c364(0x7d)](Boolean)),_0x7f2560;}function normalizeRelatedPages(_0x329d1b){const _0x169841=a25_0x4bcd;if(!Array['isArray'](_0x329d1b))return[];return _0x329d1b['filter'](_0x3b885c=>_0x3b885c&&typeof _0x3b885c==='object')[_0x169841(0x9c)](_0x4be67e=>({'id':_0x4be67e['id'],'type':_0x4be67e[_0x169841(0x9f)],'code':_0x4be67e[_0x169841(0x68)],'title':_0x4be67e[_0x169841(0x88)],'deleted':_0x4be67e['deleted']===!![]}));}function normalizeFallbackFieldName(_0x12c93f,_0x49a6ef){const _0x5a5747=a25_0x4bcd,_0x5a37e3=_0x12c93f[_0x5a5747(0xaa)]();if(!_0x5a37e3)return null;return{'name':_0x5a37e3,'displayName':_0x5a37e3,'type':undefined,'dbType':undefined,'pk':_0x5a37e3===_0x49a6ef,'required':![],'description':undefined};}async function loadListFieldFallback(_0x4ec6a0,_0x1b3a56){const _0x22d292=a25_0x4bcd;if(!_0x4ec6a0||!_0x1b3a56)return[];try{const _0x1df851=await listDatasets(_0x4ec6a0,{'code':_0x1b3a56}),_0x13eccf=_0x1df851[_0x22d292(0x7e)](_0x3d37db=>_0x3d37db[_0x22d292(0x68)]===_0x1b3a56)??_0x1df851[0x0],_0x50fceb=_0x13eccf?.['dbtableConfig']??{},_0x5acb3d=typeof _0x50fceb[_0x22d292(0x80)]===_0x22d292(0xa7)?_0x50fceb['allFields'][_0x22d292(0x6c)](','):[];return _0x5acb3d[_0x22d292(0x9c)](_0x548bed=>normalizeFallbackFieldName(_0x548bed,_0x50fceb[_0x22d292(0x7c)]))[_0x22d292(0x7d)](_0x5352c4=>_0x5352c4!==null);}catch{return[];}}function a25_0xdf2f(){const _0x10193c=['creatorNameField','options','798494vehYdx','dbtableConfig','validateRules','1081090bOIAqk','responseFields','description','requestBody','host','275ZHJnJR','str','modelCode','map','modifierIdField','operations','type','dbName','17961JJufUU','231WCuLrv','name','object','doType','sourceType','string','dbId','detail','trim','dbType','17523tWDECf','dblinkInfoDTO','creatorIdField','code','length','fields','labelField','split','path','entries','indexes','doVersion','tableName','required','824HRPCdI','beforeScriptId','tableComment','393415SrkLRC','properties','requestFields','responseBody','displayName','extend','pkField','filter','find','parse','allFields','datasetKey','relations','51708kUOfAn','modifierNameField','4THeIKa','150610uXqAWX','formatRules','title','isArray','method','appCode','columnCodeListWithDeleted','deleted','afterScriptId'];a25_0xdf2f=function(){return _0x10193c;};return a25_0xdf2f();}export const datasetDetail={'service':'dataset','command':a25_0x24da91(0xa9),'description':'Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','risk':'read','flags':[CODE_FLAG],async 'execute'(_0x39fedf){const _0x1ac06f=a25_0x24da91,_0x55f65d=await getDatasetDetail(_0x39fedf[_0x1ac06f(0x9a)](_0x1ac06f(0x68))),_0x4f2810=Array[_0x1ac06f(0x89)](_0x55f65d['fields'])?_0x55f65d[_0x1ac06f(0x6a)]:Array[_0x1ac06f(0x89)](_0x55f65d[_0x1ac06f(0x77)])?_0x55f65d[_0x1ac06f(0x77)]:[];let _0x44c2dd=_0x4f2810[_0x1ac06f(0x9c)](_0x52e0f9=>normalizeField(_0x52e0f9))[_0x1ac06f(0x7d)](_0x4534e2=>_0x4534e2!==null);_0x44c2dd[_0x1ac06f(0x69)]===0x0&&(_0x44c2dd=await loadListFieldFallback(_0x39fedf[_0x1ac06f(0x8b)],_0x39fedf[_0x1ac06f(0x9a)](_0x1ac06f(0x68))));const _0x41371e=_0x55f65d[_0x1ac06f(0x9e)]??{},_0x2d4ccd=[];for(const [_0x274cf9,_0x149420]of Object[_0x1ac06f(0x6e)](_0x41371e)){const _0x5034bf=normalizeOperationEntry(_0x274cf9,_0x149420);if(_0x5034bf)_0x2d4ccd['push'](_0x5034bf);}const _0x36c33b=_0x55f65d[_0x1ac06f(0x92)]??{},_0xbcdb4e=_0x55f65d['dataset']??{},_0x37b15e=_0x36c33b[_0x1ac06f(0xa8)]!=null?{'id':_0x36c33b['dbId'],'name':_0x36c33b['dbName']??null}:undefined;let _0x1f5709;return typeof _0x55f65d[_0x1ac06f(0x7b)]===_0x1ac06f(0xa7)&&(_0x1f5709=parseJsonMaybe(_0x55f65d[_0x1ac06f(0x7b)])),{'ok':!![],'data':{'id':_0x55f65d['modelId']??_0x55f65d['id'],'name':_0x55f65d[_0x1ac06f(0xa3)],'code':_0x55f65d[_0x1ac06f(0x9b)]||_0x55f65d['code'],'doVersion':_0x55f65d[_0x1ac06f(0x70)],'description':_0x55f65d[_0x1ac06f(0x96)]||_0xbcdb4e[_0x1ac06f(0x75)]||undefined,'source':_0x55f65d['source']||_0xbcdb4e[_0x1ac06f(0xa6)],'table':_0x36c33b[_0x1ac06f(0x71)]||_0xbcdb4e[_0x1ac06f(0x71)],'datasetKey':_0x36c33b[_0x1ac06f(0x81)],'pk':_0x36c33b[_0x1ac06f(0x7c)],'db':_0x37b15e,'dbtable':summarizeDbtable(_0x36c33b),'fields':_0x44c2dd,'operations':_0x2d4ccd,'indexes':Array[_0x1ac06f(0x89)](_0xbcdb4e[_0x1ac06f(0x6f)])?_0xbcdb4e['indexes']:[],'relations':_0x55f65d[_0x1ac06f(0x82)]??null,'relatedPages':normalizeRelatedPages(_0x55f65d['relatedPageInfoList']),...Array[_0x1ac06f(0x89)](_0x55f65d[_0x1ac06f(0x8c)])?{'columnCodeListWithDeleted':_0x55f65d['columnCodeListWithDeleted']}:{},'formatRules':Array['isArray'](_0x55f65d[_0x1ac06f(0x87)])?_0x55f65d[_0x1ac06f(0x87)]:[],'validateRules':Array['isArray'](_0x55f65d['validateRules'])?_0x55f65d[_0x1ac06f(0x93)]:[],..._0x1f5709!==undefined?{'extend':_0x1f5709}:{},'stats':{'fieldCount':_0x44c2dd[_0x1ac06f(0x69)],'operationCount':_0x2d4ccd['length']}}};}};
@@ -1 +1 @@
1
- (function(_0x4bb997,_0x35cad3){const _0x259743=a26_0x16f8,_0x586c9c=_0x4bb997();while(!![]){try{const _0x511fd6=-parseInt(_0x259743(0xca))/0x1+-parseInt(_0x259743(0xcb))/0x2+-parseInt(_0x259743(0xd2))/0x3+parseInt(_0x259743(0xd1))/0x4*(-parseInt(_0x259743(0xcf))/0x5)+parseInt(_0x259743(0xcc))/0x6+parseInt(_0x259743(0xcd))/0x7+-parseInt(_0x259743(0xce))/0x8*(-parseInt(_0x259743(0xd0))/0x9);if(_0x511fd6===_0x35cad3)break;else _0x586c9c['push'](_0x586c9c['shift']());}catch(_0x454c22){_0x586c9c['push'](_0x586c9c['shift']());}}}(a26_0x58fa,0xcadd4));function a26_0x16f8(_0x2d8d52,_0x85f163){_0x2d8d52=_0x2d8d52-0xca;const _0x58fa8a=a26_0x58fa();let _0x16f84d=_0x58fa8a[_0x2d8d52];return _0x16f84d;}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_0x58fa(){const _0x4a3500=['710536rdxENg','5697490lHJNky','279NJqaKJ','4eMuvim','1666164HaCXwt','1291344auHejZ','767154rsBVZG','8043078EoigMQ','748293ZsxeVC'];a26_0x58fa=function(){return _0x4a3500;};return a26_0x58fa();}
1
+ (function(_0xd4442f,_0x3a2951){const _0x54b0d4=a26_0x5d1f,_0x35f826=_0xd4442f();while(!![]){try{const _0x4cc206=-parseInt(_0x54b0d4(0x183))/0x1*(-parseInt(_0x54b0d4(0x18b))/0x2)+-parseInt(_0x54b0d4(0x187))/0x3*(-parseInt(_0x54b0d4(0x18e))/0x4)+-parseInt(_0x54b0d4(0x18f))/0x5*(-parseInt(_0x54b0d4(0x18c))/0x6)+parseInt(_0x54b0d4(0x18d))/0x7*(-parseInt(_0x54b0d4(0x190))/0x8)+parseInt(_0x54b0d4(0x188))/0x9*(parseInt(_0x54b0d4(0x186))/0xa)+-parseInt(_0x54b0d4(0x185))/0xb*(-parseInt(_0x54b0d4(0x184))/0xc)+-parseInt(_0x54b0d4(0x18a))/0xd*(parseInt(_0x54b0d4(0x189))/0xe);if(_0x4cc206===_0x3a2951)break;else _0x35f826['push'](_0x35f826['shift']());}catch(_0x5e26a3){_0x35f826['push'](_0x35f826['shift']());}}}(a26_0x3555,0xb72a1));function a26_0x3555(){const _0x5555ab=['7401vzjujs','273663Gjdclz','12306tgUTfj','57226wlGnQk','22AeqCth','30kFJUXj','280ApFYcq','2348iAAlDH','1157525VkAJXo','60472jWECBi','85417hMFxcP','6435888enPgtS','22FJZchy','100tPBPwY'];a26_0x3555=function(){return _0x5555ab;};return a26_0x3555();}import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a26_0x5d1f(_0x431245,_0x1bc47c){_0x431245=_0x431245-0x183;const _0x355549=a26_0x3555();let _0x5d1fbe=_0x355549[_0x431245];return _0x5d1fbe;}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- const a27_0x2a8afc=a27_0x1667;(function(_0xe3b76f,_0x52c1c3){const _0x3aee64=a27_0x1667,_0x458406=_0xe3b76f();while(!![]){try{const _0x1ea177=parseInt(_0x3aee64(0x1e2))/0x1*(parseInt(_0x3aee64(0x1eb))/0x2)+parseInt(_0x3aee64(0x1e1))/0x3+parseInt(_0x3aee64(0x1f2))/0x4+-parseInt(_0x3aee64(0x1e4))/0x5*(parseInt(_0x3aee64(0x1d9))/0x6)+-parseInt(_0x3aee64(0x1d7))/0x7+parseInt(_0x3aee64(0x1ef))/0x8+parseInt(_0x3aee64(0x1ee))/0x9;if(_0x1ea177===_0x52c1c3)break;else _0x458406['push'](_0x458406['shift']());}catch(_0x1f5dec){_0x458406['push'](_0x458406['shift']());}}}(a27_0x25bf,0x8ecee));import{listDatasets}from'../../core/api-client.js';function a27_0x25bf(){const _0x1b2485=['tableName','map','2353756oFbfoo','dbtableConfig','appCode','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','174797CwemVO','split','771990ZNjidD','code','trim','str','description','string','length','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','194238zmCnYg','217sffwGP','allFields','35axgAGS','read','name','list','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','pkField','datasetKey','1858fzcBLd','source','dataset','2832363mbeAEI','2728664YTkoVi'];a27_0x25bf=function(){return _0x1b2485;};return a27_0x25bf();}import{CODE_FLAG}from'../../commands/common/flags.js';function a27_0x1667(_0x48cb9c,_0x483e10){_0x48cb9c=_0x48cb9c-0x1d5;const _0x25bf97=a27_0x25bf();let _0x16676b=_0x25bf97[_0x48cb9c];return _0x16676b;}export const datasetList={'service':a27_0x2a8afc(0x1ed),'command':a27_0x2a8afc(0x1e7),'description':a27_0x2a8afc(0x1e0),'risk':a27_0x2a8afc(0x1e5),'flags':[{'name':a27_0x2a8afc(0x1e6),'type':a27_0x2a8afc(0x1de),'description':a27_0x2a8afc(0x1e8)},{...CODE_FLAG,'required':![],'description':a27_0x2a8afc(0x1d6)}],async 'execute'(_0x381be1){const _0x26b031=a27_0x2a8afc,_0x38df19=_0x381be1[_0x26b031(0x1dc)](_0x26b031(0x1e6)),_0xe0af7e=_0x381be1[_0x26b031(0x1dc)](_0x26b031(0x1da)),_0x3a0a57=await listDatasets(_0x381be1[_0x26b031(0x1d5)],{..._0x38df19&&{'name':_0x38df19},..._0xe0af7e&&{'code':_0xe0af7e}});return{'ok':!![],'data':{'total':_0x3a0a57[_0x26b031(0x1df)],'datasets':_0x3a0a57[_0x26b031(0x1f1)](_0x1a25b4=>{const _0x1baddd=_0x26b031,_0x9a237c=_0x1a25b4[_0x1baddd(0x1f3)]??{};return{'id':_0x1a25b4['id'],'code':_0x1a25b4[_0x1baddd(0x1da)],'name':_0x1a25b4['name'],'source':_0x1a25b4[_0x1baddd(0x1ec)],'description':_0x1a25b4[_0x1baddd(0x1dd)],'table':_0x9a237c[_0x1baddd(0x1f0)],'datasetKey':_0x9a237c[_0x1baddd(0x1ea)],'pk':_0x9a237c[_0x1baddd(0x1e9)],'fields':_0x9a237c[_0x1baddd(0x1e3)]?_0x9a237c[_0x1baddd(0x1e3)][_0x1baddd(0x1d8)](',')[_0x1baddd(0x1f1)](_0x2c3858=>_0x2c3858[_0x1baddd(0x1db)]()):[]};})}};}};
1
+ function a27_0x3c60(){const _0x25ab37=['pkField','4370OlfxAi','length','read','8NMsiUm','allFields','trim','177gErqHz','10020aBmxve','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','split','code','227346fmgYRG','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','description','320913bWBwdr','list','33287bZRMHy','70854zdVgSM','name','451xHMElr','35UZIyDT','42960ymJLkG','map','str','appCode','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','dbtableConfig'];a27_0x3c60=function(){return _0x25ab37;};return a27_0x3c60();}const a27_0x17ebcf=a27_0x3ddd;function a27_0x3ddd(_0x475f1f,_0x1b9efd){_0x475f1f=_0x475f1f-0xf1;const _0x3c6042=a27_0x3c60();let _0x3ddd33=_0x3c6042[_0x475f1f];return _0x3ddd33;}(function(_0x3fb724,_0x255482){const _0x23fdac=a27_0x3ddd,_0x383619=_0x3fb724();while(!![]){try{const _0x279131=parseInt(_0x23fdac(0xfc))/0x1+parseInt(_0x23fdac(0xfd))/0x2+-parseInt(_0x23fdac(0xf2))/0x3*(parseInt(_0x23fdac(0xf3))/0x4)+-parseInt(_0x23fdac(0x101))/0x5+-parseInt(_0x23fdac(0xf7))/0x6*(-parseInt(_0x23fdac(0x100))/0x7)+-parseInt(_0x23fdac(0x10b))/0x8*(-parseInt(_0x23fdac(0xfa))/0x9)+parseInt(_0x23fdac(0x108))/0xa*(-parseInt(_0x23fdac(0xff))/0xb);if(_0x279131===_0x255482)break;else _0x383619['push'](_0x383619['shift']());}catch(_0x3bf8a){_0x383619['push'](_0x383619['shift']());}}}(a27_0x3c60,0x1d2e2));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':'dataset','command':a27_0x17ebcf(0xfb),'description':a27_0x17ebcf(0x105),'risk':a27_0x17ebcf(0x10a),'flags':[{'name':a27_0x17ebcf(0xfe),'type':'string','description':a27_0x17ebcf(0xf8)},{...CODE_FLAG,'required':![],'description':a27_0x17ebcf(0xf4)}],async 'execute'(_0xbd81c9){const _0x397b2d=a27_0x17ebcf,_0x3af1ec=_0xbd81c9[_0x397b2d(0x103)](_0x397b2d(0xfe)),_0x1e71a8=_0xbd81c9[_0x397b2d(0x103)](_0x397b2d(0xf6)),_0x5a7ebe=await listDatasets(_0xbd81c9[_0x397b2d(0x104)],{..._0x3af1ec&&{'name':_0x3af1ec},..._0x1e71a8&&{'code':_0x1e71a8}});return{'ok':!![],'data':{'total':_0x5a7ebe[_0x397b2d(0x109)],'datasets':_0x5a7ebe[_0x397b2d(0x102)](_0x841c9f=>{const _0x3870c8=_0x397b2d,_0x55b26c=_0x841c9f[_0x3870c8(0x106)]??{};return{'id':_0x841c9f['id'],'code':_0x841c9f['code'],'name':_0x841c9f[_0x3870c8(0xfe)],'source':_0x841c9f['source'],'description':_0x841c9f[_0x3870c8(0xf9)],'table':_0x55b26c['tableName'],'datasetKey':_0x55b26c['datasetKey'],'pk':_0x55b26c[_0x3870c8(0x107)],'fields':_0x55b26c[_0x3870c8(0x10c)]?_0x55b26c[_0x3870c8(0x10c)][_0x3870c8(0xf5)](',')[_0x3870c8(0x102)](_0x24f976=>_0x24f976[_0x3870c8(0xf1)]()):[]};})}};}};
@@ -1 +1 @@
1
- function a28_0x1b3a(){const _0x1295f1=['92464ihaorF','string','4277510mMBxVl','sdk-doc','204808hXdQLo','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','9132112FHOrBn','1WZwCzv','7ojojZC','code','237483smvyEU','dataset','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','7017448xMAarR','6193434VcTLsh','18mZeoXH','310ChONtH','trim','appCode'];a28_0x1b3a=function(){return _0x1295f1;};return a28_0x1b3a();}const a28_0x3c104d=a28_0x6390;(function(_0x5b54db,_0x3471ad){const _0x656ed8=a28_0x6390,_0x3c8f2e=_0x5b54db();while(!![]){try{const _0x396f13=parseInt(_0x656ed8(0xc9))/0x1*(-parseInt(_0x656ed8(0xd5))/0x2)+-parseInt(_0x656ed8(0xd1))/0x3*(parseInt(_0x656ed8(0xd9))/0x4)+parseInt(_0x656ed8(0xd7))/0x5+parseInt(_0x656ed8(0xd0))/0x6+parseInt(_0x656ed8(0xca))/0x7*(-parseInt(_0x656ed8(0xcf))/0x8)+parseInt(_0x656ed8(0xcc))/0x9*(-parseInt(_0x656ed8(0xd2))/0xa)+parseInt(_0x656ed8(0xdb))/0xb;if(_0x396f13===_0x3471ad)break;else _0x3c8f2e['push'](_0x3c8f2e['shift']());}catch(_0x21fdb0){_0x3c8f2e['push'](_0x3c8f2e['shift']());}}}(a28_0x1b3a,0xa367f));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a28_0x3c104d(0xda);function a28_0x6390(_0x4f36e3,_0x419942){_0x4f36e3=_0x4f36e3-0xc9;const _0x1b3ac4=a28_0x1b3a();let _0x639061=_0x1b3ac4[_0x4f36e3];return _0x639061;}export function formatDatasetSdkMarkdown(_0xcae412){const _0x166e5c=a28_0x3c104d,_0x434a10=typeof _0xcae412===_0x166e5c(0xd6)?_0xcae412[_0x166e5c(0xd3)]():'';return _0x434a10||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a28_0x3c104d(0xcd),'command':a28_0x3c104d(0xd8),'description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':'read','flags':[{...CODE_FLAG,'description':a28_0x3c104d(0xce)}],async 'execute'(_0x408c3){const _0x37d258=a28_0x3c104d,_0x16c186=_0x408c3['str'](_0x37d258(0xcb)),_0x45056e=await getDatasetSdkUsageDoc(_0x16c186,_0x408c3[_0x37d258(0xd4)]);return{'ok':!![],'data':{'code':_0x16c186,'appCode':_0x408c3[_0x37d258(0xd4)],'markdown':formatDatasetSdkMarkdown(_0x45056e)}};}};
1
+ function a28_0x3a0b(_0x3ff2b8,_0x466496){_0x3ff2b8=_0x3ff2b8-0x6d;const _0x143f72=a28_0x143f();let _0x3a0bd6=_0x143f72[_0x3ff2b8];return _0x3a0bd6;}const a28_0x49415b=a28_0x3a0b;(function(_0x2b9816,_0x124a3b){const _0x500c2b=a28_0x3a0b,_0x30007e=_0x2b9816();while(!![]){try{const _0x135aed=-parseInt(_0x500c2b(0x7a))/0x1+parseInt(_0x500c2b(0x7e))/0x2*(parseInt(_0x500c2b(0x79))/0x3)+-parseInt(_0x500c2b(0x73))/0x4*(-parseInt(_0x500c2b(0x70))/0x5)+-parseInt(_0x500c2b(0x6f))/0x6*(-parseInt(_0x500c2b(0x78))/0x7)+parseInt(_0x500c2b(0x7f))/0x8+parseInt(_0x500c2b(0x76))/0x9*(parseInt(_0x500c2b(0x6d))/0xa)+parseInt(_0x500c2b(0x7d))/0xb*(-parseInt(_0x500c2b(0x80))/0xc);if(_0x135aed===_0x124a3b)break;else _0x30007e['push'](_0x30007e['shift']());}catch(_0x358c10){_0x30007e['push'](_0x30007e['shift']());}}}(a28_0x143f,0xbf98e));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a28_0x49415b(0x72);export function formatDatasetSdkMarkdown(_0x36c4e5){const _0x57cb52=a28_0x49415b,_0x24122a=typeof _0x36c4e5===_0x57cb52(0x6e)?_0x36c4e5[_0x57cb52(0x71)]():'';return _0x24122a||DEFAULT_MARKDOWN;}function a28_0x143f(){const _0x2ec144=['dataset','read','649qUTHhC','45752zpPUVe','5528920jjjxrk','169896CMmRHT','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','str','293330aigNGv','string','6818814vFQqDW','2345165OBbqLE','trim','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','4BsKmHP','sdk-doc','appCode','117cwzsAQ','code','7MwyVun','15Spqnlh','1172222iKJzmQ'];a28_0x143f=function(){return _0x2ec144;};return a28_0x143f();}export const datasetSdkDoc={'service':a28_0x49415b(0x7b),'command':a28_0x49415b(0x74),'description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':a28_0x49415b(0x7c),'flags':[{...CODE_FLAG,'description':a28_0x49415b(0x81)}],async 'execute'(_0x39d63d){const _0x2a0228=a28_0x49415b,_0x1d8c60=_0x39d63d[_0x2a0228(0x82)](_0x2a0228(0x77)),_0x448344=await getDatasetSdkUsageDoc(_0x1d8c60,_0x39d63d['appCode']);return{'ok':!![],'data':{'code':_0x1d8c60,'appCode':_0x39d63d[_0x2a0228(0x75)],'markdown':formatDatasetSdkMarkdown(_0x448344)}};}};
@@ -1 +1 @@
1
- const a29_0x401939=a29_0x4899;(function(_0x265f06,_0x1c7551){const _0x1cea1b=a29_0x4899,_0x2e329f=_0x265f06();while(!![]){try{const _0x1b9c04=parseInt(_0x1cea1b(0xd8))/0x1*(parseInt(_0x1cea1b(0xeb))/0x2)+parseInt(_0x1cea1b(0xd5))/0x3+-parseInt(_0x1cea1b(0x10d))/0x4*(parseInt(_0x1cea1b(0xbd))/0x5)+parseInt(_0x1cea1b(0xf6))/0x6+-parseInt(_0x1cea1b(0x101))/0x7*(-parseInt(_0x1cea1b(0xe3))/0x8)+-parseInt(_0x1cea1b(0xe8))/0x9*(-parseInt(_0x1cea1b(0xfd))/0xa)+-parseInt(_0x1cea1b(0xb7))/0xb;if(_0x1b9c04===_0x1c7551)break;else _0x2e329f['push'](_0x2e329f['shift']());}catch(_0x3ee628){_0x2e329f['push'](_0x2e329f['shift']());}}}(a29_0x2dd2,0x57ad6));import a29_0x9d9620 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';function a29_0x4899(_0x583675,_0x58abc3){_0x583675=_0x583675-0xb7;const _0x2dd26d=a29_0x2dd2();let _0x4899b3=_0x2dd26d[_0x583675];return _0x4899b3;}async function execute(_0x5a5223){const _0x167137=a29_0x4899,_0x3bd66c=getCliVersion(),_0x3b5fde=buildConfigFromFlags({});await initGlobalEnvironment(_0x3b5fde),console[_0x167137(0x10c)](),console[_0x167137(0x10c)](a29_0x9d9620['bold'](CLI_BIN_NAME+_0x167137(0xcf))),console[_0x167137(0x10c)](a29_0x9d9620['gray']('─'[_0x167137(0xfe)](0x32))),console[_0x167137(0x10c)](_0x167137(0xc5)+_0x3bd66c),console['log'](_0x167137(0xcc)+process[_0x167137(0xd1)]),console[_0x167137(0x10c)](_0x167137(0x104)+process[_0x167137(0xdd)]+'\x20'+process[_0x167137(0xca)]),console[_0x167137(0x10c)](),console['log'](a29_0x9d9620[_0x167137(0xdc)](_0x167137(0xc2))),console['log'](a29_0x9d9620['gray'](_0x167137(0xe9)[_0x167137(0xfe)](0x1e)));const _0xf169fe=getGlobalConfigPath(),_0x330ff6=getProjectConfigPath();console['log'](_0x167137(0xe2)+(_0xf169fe||a29_0x9d9620['gray'](_0x167137(0xdf)))),console[_0x167137(0x10c)](_0x167137(0xbc)+(_0x330ff6||a29_0x9d9620[_0x167137(0x106)](_0x167137(0xdf)))),console['log'](),console[_0x167137(0x10c)](a29_0x9d9620['bold'](_0x167137(0xf9))),console[_0x167137(0x10c)](a29_0x9d9620[_0x167137(0x106)](_0x167137(0xe9)[_0x167137(0xfe)](0x1e)));const _0xbfce9f=(_0x18d566,_0x2f7252)=>{const _0x4d0d12=_0x167137;if(!_0x2f7252){console[_0x4d0d12(0x10c)]('\x20\x20'+_0x18d566[_0x4d0d12(0xc0)](0x11)+'\x20'+a29_0x9d9620[_0x4d0d12(0x106)](_0x4d0d12(0xe1)));return;}const _0x3fd4c6=inspectCliConfigJsonFile(_0x2f7252);if(_0x3fd4c6[_0x4d0d12(0xf0)]==='ok')console[_0x4d0d12(0x10c)]('\x20\x20'+_0x18d566['padEnd'](0x11)+'\x20'+a29_0x9d9620[_0x4d0d12(0xc7)](_0x4d0d12(0x10a)));else{if(_0x3fd4c6[_0x4d0d12(0xf0)]===_0x4d0d12(0xd3))console[_0x4d0d12(0x10c)]('\x20\x20'+_0x18d566[_0x4d0d12(0xc0)](0x11)+'\x20'+a29_0x9d9620[_0x4d0d12(0xf2)](_0x4d0d12(0xe5)));else _0x3fd4c6[_0x4d0d12(0xf0)]===_0x4d0d12(0xbb)?console[_0x4d0d12(0x10c)]('\x20\x20'+_0x18d566[_0x4d0d12(0xc0)](0x11)+'\x20'+a29_0x9d9620[_0x4d0d12(0x106)](_0x4d0d12(0xfa))):(console[_0x4d0d12(0x10c)]('\x20\x20'+_0x18d566[_0x4d0d12(0xc0)](0x11)+'\x20'+a29_0x9d9620['red'](_0x4d0d12(0xe0))),console['log']('\x20\x20'+''[_0x4d0d12(0xc0)](0x11)+'\x20'+a29_0x9d9620['red'](_0x3fd4c6[_0x4d0d12(0x105)])));}};_0xbfce9f(_0x167137(0x102),_0xf169fe),_0xbfce9f('Project',_0x330ff6),console[_0x167137(0x10c)](),console[_0x167137(0x10c)](a29_0x9d9620[_0x167137(0xdc)](_0x167137(0xdb))),console[_0x167137(0x10c)](a29_0x9d9620[_0x167137(0x106)](_0x167137(0xe9)[_0x167137(0xfe)](0x1e))),console[_0x167137(0x10c)](_0x167137(0xb9)+(_0x3b5fde['appCode']||a29_0x9d9620[_0x167137(0xd0)](_0x167137(0x109)))),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3b5fde[_0x167137(0xea)]);const _0x26425f=isLegacyCompatConfigKey('locale')?a29_0x9d9620[_0x167137(0x106)](_0x3b5fde[_0x167137(0xba)]+'\x20(legacy/compat\x20only)'):_0x3b5fde[_0x167137(0xba)];console[_0x167137(0x10c)](_0x167137(0xd9)+_0x26425f),console[_0x167137(0x10c)](_0x167137(0xcb)+(_0x3b5fde['defaultApp']||a29_0x9d9620[_0x167137(0x106)]('(none)'))),console[_0x167137(0x10c)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x3b5fde[_0x167137(0x10f)]||a29_0x9d9620[_0x167137(0x106)]('(none)'))),console[_0x167137(0x10c)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3b5fde[_0x167137(0xef)]||a29_0x9d9620[_0x167137(0x106)](_0x167137(0xbf)+DEFAULT_CONFIG_VALUES[_0x167137(0xef)]+')'))),console['log'](_0x167137(0xff)+(_0x3b5fde[_0x167137(0xd4)]??a29_0x9d9620[_0x167137(0x106)](_0x167137(0xc3)))),console[_0x167137(0x10c)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x3b5fde['riskLevel']),console[_0x167137(0x10c)](_0x167137(0xe4)+_0x3b5fde[_0x167137(0x10b)]),console[_0x167137(0x10c)](_0x167137(0x103)+AUTH_MODE[_0x167137(0xda)]),console['log'](_0x167137(0x100)+(_0x3b5fde['accessKey']?a29_0x9d9620[_0x167137(0xc7)]('(set,\x20length='+_0x3b5fde[_0x167137(0xe6)][_0x167137(0xf7)]+')'):a29_0x9d9620[_0x167137(0x106)](_0x167137(0xf5)))),console[_0x167137(0x10c)](),console[_0x167137(0x10c)](a29_0x9d9620[_0x167137(0xdc)](_0x167137(0xc8))),console['log'](a29_0x9d9620[_0x167137(0x106)](_0x167137(0xe9)[_0x167137(0xfe)](0x1e))),console[_0x167137(0x10c)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x167137(0x10c)](_0x167137(0xf1)+getUserDomain()),console[_0x167137(0x10c)](_0x167137(0x108)+getRuntimeDomain()),console[_0x167137(0x10c)](),console[_0x167137(0x10c)](a29_0x9d9620['bold'](_0x167137(0xb8))),console[_0x167137(0x10c)](a29_0x9d9620[_0x167137(0x106)](_0x167137(0xe9)[_0x167137(0xfe)](0x1e)));const _0x5670fb=inspectServiceRegistry();console[_0x167137(0x10c)](_0x167137(0xfb)+_0x5670fb[_0x167137(0xc9)]),console[_0x167137(0x10c)](_0x167137(0xd2)+formatServiceRegistryStatus(_0x5670fb)),console['log'](_0x167137(0xcd)+_0x5670fb[_0x167137(0xc1)]),console[_0x167137(0x10c)](_0x167137(0xed)+_0x5670fb['commandCount']);for(const _0x5e3eaf of _0x5670fb[_0x167137(0xe7)]){console[_0x167137(0x10c)]('\x20\x20'+(_0x5e3eaf[_0x167137(0xc4)]+':')[_0x167137(0xc0)](0x11)+'\x20'+(_0x5e3eaf['name']||a29_0x9d9620[_0x167137(0x106)]('(unnamed)'))+'\x20('+_0x5e3eaf[_0x167137(0xee)]+_0x167137(0x107)),console[_0x167137(0x10c)]('\x20\x20'+''[_0x167137(0xc0)](0x11)+_0x167137(0xd6)+_0x5e3eaf[_0x167137(0xce)][_0x167137(0xec)]);}return console['log'](),console[_0x167137(0x10c)](a29_0x9d9620[_0x167137(0xdc)](_0x167137(0x10e))),console[_0x167137(0x10c)](a29_0x9d9620[_0x167137(0x106)](_0x167137(0xe9)[_0x167137(0xfe)](0x1e))),console['log'](_0x167137(0xfc)+a29_0x9d9620[_0x167137(0xc7)](AUTH_MODE[_0x167137(0xda)]+'\x20(accessKey)')),console[_0x167137(0x10c)](_0x167137(0xf8)+a29_0x9d9620[_0x167137(0x106)](_0x167137(0xf3))),console['log'](),{'ok':!![]};}function a29_0x2dd2(){const _0x1a9396=['empty','pageSize','526542VWXCmM','\x20Imported\x20from:\x20','⚠\x20Empty','1tNrHBH','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','ClientAk','\x20\x20Merged\x20Config','bold','platform','✗\x20Invalid','(not\x20found)','✗\x20Invalid\x20JSON','(no\x20file)','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','5545712lMpkyD','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','accessKey','services','738171isGsBO','\x20\x20─','env','14098tqpJjZ','path','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','commandCount','format','status','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','yellow','(removed\x20—\x20cookie\x20auth\x20disabled)','doctor','(none)','1000524HJmOUq','length','\x20\x20Session\x20check:\x20\x20\x20','\x20\x20Config\x20JSON','(missing)','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','80LNMgtu','repeat','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','7rnZePY','Global','\x20\x20auth\x20(effective):\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','message','gray','\x20commands)','\x20\x20runtimeDomain:\x20\x20\x20','(not\x20set)','✓\x20Valid\x20JSON','verbose','log','140JuzWLH','\x20\x20Auth','currentApp','7912157LAFFvd','\x20\x20Service\x20Tree','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','locale','missing','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','88610XxSpRS','Diagnose\x20CLI\x20configuration\x20and\x20environment','(default:\x20','padEnd','serviceCount','\x20\x20Config\x20Files','(default)','serviceCode','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','read','green','\x20\x20API\x20Endpoints','registryPath','arch','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','source','\x20doctor','red','version','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a29_0x2dd2=function(){return _0x1a9396;};return a29_0x2dd2();}function formatServiceRegistryStatus(_0x309bc6){const _0x55d9e8=a29_0x4899;if(_0x309bc6[_0x55d9e8(0xf0)]==='ok')return a29_0x9d9620[_0x55d9e8(0xc7)]('✓\x20Loaded');if(_0x309bc6[_0x55d9e8(0xf0)]===_0x55d9e8(0xbb))return a29_0x9d9620[_0x55d9e8(0x106)]('(not\x20found)');if(_0x309bc6[_0x55d9e8(0xf0)]===_0x55d9e8(0xd3))return a29_0x9d9620[_0x55d9e8(0xf2)](_0x55d9e8(0xd7));return a29_0x9d9620[_0x55d9e8(0xd0)](_0x55d9e8(0xde)+(_0x309bc6[_0x55d9e8(0x105)]?':\x20'+_0x309bc6[_0x55d9e8(0x105)]:''));}export const doctorDefinition={'service':a29_0x401939(0xf4),'command':'check','description':a29_0x401939(0xbe),'risk':a29_0x401939(0xc6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a29_0x15d0a9=a29_0x1cc3;(function(_0x5c2a68,_0x5afa1d){const _0x20514f=a29_0x1cc3,_0xcdae75=_0x5c2a68();while(!![]){try{const _0x5acb7e=-parseInt(_0x20514f(0x147))/0x1*(-parseInt(_0x20514f(0x158))/0x2)+parseInt(_0x20514f(0x181))/0x3*(-parseInt(_0x20514f(0x18a))/0x4)+parseInt(_0x20514f(0x14c))/0x5+-parseInt(_0x20514f(0x187))/0x6+-parseInt(_0x20514f(0x16a))/0x7+parseInt(_0x20514f(0x144))/0x8+parseInt(_0x20514f(0x172))/0x9;if(_0x5acb7e===_0x5afa1d)break;else _0xcdae75['push'](_0xcdae75['shift']());}catch(_0x6ec689){_0xcdae75['push'](_0xcdae75['shift']());}}}(a29_0xb7ee,0xe6a80));import a29_0x583331 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a29_0x1cc3(_0xbb9a6c,_0x49112a){_0xbb9a6c=_0xbb9a6c-0x143;const _0xb7ee84=a29_0xb7ee();let _0x1cc326=_0xb7ee84[_0xbb9a6c];return _0x1cc326;}import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';function a29_0xb7ee(){const _0x41ad3b=['serviceCode','env','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','repeat','(default)','32hnsWTL','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','check','\x20\x20Auth','\x20doctor','name','Diagnose\x20CLI\x20configuration\x20and\x20environment','source','Global','(not\x20set)','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','(unnamed)','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','read','Project','734419CWPUjB','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20Config\x20JSON','\x20\x20auth\x20(effective):\x20','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','3510180ZWJquY','green','currentApp','bold','ClientAk','status','⚠\x20Empty\x20(treated\x20as\x20{})','accessKey','✓\x20Loaded','yellow','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','(not\x20found)','\x20\x20─','(no\x20file)','6JrDQaP','(none)','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(legacy/compat\x20only)','\x20\x20Service\x20Tree','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','2916636scBzqs','missing','doctor','1566632ZGeSqv','format','services','\x20(accessKey)','defaultApp','(set,\x20length=','registryPath','path','appCode','padEnd','red','gray','✓\x20Valid\x20JSON','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','8527608BqmHUz','\x20\x20API\x20Endpoints','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','2637uPZKlQ','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','version','serviceCount','4104720XsIieJ','message','✗\x20Invalid\x20JSON','locale','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','log'];a29_0xb7ee=function(){return _0x41ad3b;};return a29_0xb7ee();}import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';async function execute(_0x56d188){const _0x52496e=a29_0x1cc3,_0x288d08=getCliVersion(),_0x2f34d3=buildConfigFromFlags({});await initGlobalEnvironment(_0x2f34d3),console[_0x52496e(0x151)](),console[_0x52496e(0x151)](a29_0x583331['bold'](CLI_BIN_NAME+_0x52496e(0x15e))),console['log'](a29_0x583331[_0x52496e(0x195)]('─'['repeat'](0x32))),console['log'](_0x52496e(0x164)+_0x288d08),console['log'](_0x52496e(0x183)+process[_0x52496e(0x14a)]),console[_0x52496e(0x151)](_0x52496e(0x167)+process['platform']+'\x20'+process[_0x52496e(0x17d)]),console[_0x52496e(0x151)](),console[_0x52496e(0x151)](a29_0x583331[_0x52496e(0x175)]('\x20\x20Config\x20Files')),console[_0x52496e(0x151)](a29_0x583331[_0x52496e(0x195)]('\x20\x20─'[_0x52496e(0x156)](0x1e)));const _0x515a56=getGlobalConfigPath(),_0x24ec5b=getProjectConfigPath();console[_0x52496e(0x151)](_0x52496e(0x15b)+(_0x515a56||a29_0x583331['gray']('(not\x20found)'))),console['log'](_0x52496e(0x186)+(_0x24ec5b||a29_0x583331[_0x52496e(0x195)](_0x52496e(0x17e)))),console[_0x52496e(0x151)](),console[_0x52496e(0x151)](a29_0x583331[_0x52496e(0x175)](_0x52496e(0x16e))),console[_0x52496e(0x151)](a29_0x583331['gray']('\x20\x20─'[_0x52496e(0x156)](0x1e)));const _0x12dbc7=(_0x4fecb2,_0x1095b3)=>{const _0x5935a9=_0x52496e;if(!_0x1095b3){console[_0x5935a9(0x151)]('\x20\x20'+_0x4fecb2['padEnd'](0x11)+'\x20'+a29_0x583331[_0x5935a9(0x195)](_0x5935a9(0x180)));return;}const _0x523941=inspectCliConfigJsonFile(_0x1095b3);if(_0x523941[_0x5935a9(0x177)]==='ok')console['log']('\x20\x20'+_0x4fecb2['padEnd'](0x11)+'\x20'+a29_0x583331[_0x5935a9(0x173)](_0x5935a9(0x196)));else{if(_0x523941['status']===_0x5935a9(0x16c))console['log']('\x20\x20'+_0x4fecb2[_0x5935a9(0x193)](0x11)+'\x20'+a29_0x583331[_0x5935a9(0x17b)](_0x5935a9(0x178)));else _0x523941[_0x5935a9(0x177)]===_0x5935a9(0x188)?console[_0x5935a9(0x151)]('\x20\x20'+_0x4fecb2[_0x5935a9(0x193)](0x11)+'\x20'+a29_0x583331['gray']('(missing)')):(console['log']('\x20\x20'+_0x4fecb2[_0x5935a9(0x193)](0x11)+'\x20'+a29_0x583331[_0x5935a9(0x194)](_0x5935a9(0x14e))),console[_0x5935a9(0x151)]('\x20\x20'+''[_0x5935a9(0x193)](0x11)+'\x20'+a29_0x583331[_0x5935a9(0x194)](_0x523941['message'])));}};_0x12dbc7(_0x52496e(0x162),_0x515a56),_0x12dbc7(_0x52496e(0x169),_0x24ec5b),console[_0x52496e(0x151)](),console[_0x52496e(0x151)](a29_0x583331[_0x52496e(0x175)]('\x20\x20Merged\x20Config')),console[_0x52496e(0x151)](a29_0x583331[_0x52496e(0x195)](_0x52496e(0x17f)['repeat'](0x1e))),console['log'](_0x52496e(0x159)+(_0x2f34d3[_0x52496e(0x192)]||a29_0x583331['red'](_0x52496e(0x163)))),console[_0x52496e(0x151)](_0x52496e(0x166)+_0x2f34d3[_0x52496e(0x153)]);const _0x28f2b0=isLegacyCompatConfigKey('locale')?a29_0x583331[_0x52496e(0x195)](_0x2f34d3['locale']+_0x52496e(0x184)):_0x2f34d3[_0x52496e(0x14f)];console['log'](_0x52496e(0x16b)+_0x28f2b0),console[_0x52496e(0x151)](_0x52496e(0x150)+(_0x2f34d3[_0x52496e(0x18e)]||a29_0x583331[_0x52496e(0x195)](_0x52496e(0x182)))),console[_0x52496e(0x151)](_0x52496e(0x155)+(_0x2f34d3[_0x52496e(0x174)]||a29_0x583331[_0x52496e(0x195)](_0x52496e(0x182)))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2f34d3[_0x52496e(0x18b)]||a29_0x583331[_0x52496e(0x195)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x52496e(0x18b)]+')'))),console[_0x52496e(0x151)](_0x52496e(0x15a)+(_0x2f34d3['pageSize']??a29_0x583331[_0x52496e(0x195)](_0x52496e(0x157)))),console[_0x52496e(0x151)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x2f34d3['riskLevel']),console['log'](_0x52496e(0x17c)+_0x2f34d3['verbose']),console['log'](_0x52496e(0x16f)+AUTH_MODE[_0x52496e(0x176)]),console[_0x52496e(0x151)](_0x52496e(0x143)+(_0x2f34d3[_0x52496e(0x179)]?a29_0x583331['green'](_0x52496e(0x18f)+_0x2f34d3['accessKey'][_0x52496e(0x171)]+')'):a29_0x583331['gray'](_0x52496e(0x182)))),console[_0x52496e(0x151)](),console['log'](a29_0x583331[_0x52496e(0x175)](_0x52496e(0x145))),console[_0x52496e(0x151)](a29_0x583331[_0x52496e(0x195)]('\x20\x20─'[_0x52496e(0x156)](0x1e))),console[_0x52496e(0x151)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x52496e(0x151)](_0x52496e(0x146)+getUserDomain()),console['log'](_0x52496e(0x154)+getRuntimeDomain()),console[_0x52496e(0x151)](),console[_0x52496e(0x151)](a29_0x583331['bold'](_0x52496e(0x185))),console['log'](a29_0x583331[_0x52496e(0x195)](_0x52496e(0x17f)['repeat'](0x1e)));const _0x2d8ce4=inspectServiceRegistry();console['log'](_0x52496e(0x149)+_0x2d8ce4[_0x52496e(0x190)]),console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x2d8ce4)),console['log'](_0x52496e(0x148)+_0x2d8ce4[_0x52496e(0x14b)]),console[_0x52496e(0x151)]('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2d8ce4['commandCount']);for(const _0x45be92 of _0x2d8ce4[_0x52496e(0x18c)]){console[_0x52496e(0x151)]('\x20\x20'+(_0x45be92[_0x52496e(0x152)]+':')[_0x52496e(0x193)](0x11)+'\x20'+(_0x45be92[_0x52496e(0x15f)]||a29_0x583331[_0x52496e(0x195)](_0x52496e(0x165)))+'\x20('+_0x45be92['commandCount']+'\x20commands)'),console[_0x52496e(0x151)]('\x20\x20'+''['padEnd'](0x11)+'\x20Imported\x20from:\x20'+_0x45be92[_0x52496e(0x161)][_0x52496e(0x191)]);}return console[_0x52496e(0x151)](),console[_0x52496e(0x151)](a29_0x583331[_0x52496e(0x175)](_0x52496e(0x15d))),console[_0x52496e(0x151)](a29_0x583331[_0x52496e(0x195)](_0x52496e(0x17f)[_0x52496e(0x156)](0x1e))),console[_0x52496e(0x151)](_0x52496e(0x170)+a29_0x583331[_0x52496e(0x173)](AUTH_MODE[_0x52496e(0x176)]+_0x52496e(0x18d))),console[_0x52496e(0x151)]('\x20\x20Session\x20check:\x20\x20\x20'+a29_0x583331['gray'](_0x52496e(0x16d))),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0x282903){const _0x4b40b1=a29_0x1cc3;if(_0x282903['status']==='ok')return a29_0x583331[_0x4b40b1(0x173)](_0x4b40b1(0x17a));if(_0x282903[_0x4b40b1(0x177)]==='missing')return a29_0x583331[_0x4b40b1(0x195)](_0x4b40b1(0x17e));if(_0x282903[_0x4b40b1(0x177)]===_0x4b40b1(0x16c))return a29_0x583331[_0x4b40b1(0x17b)]('⚠\x20Empty');return a29_0x583331[_0x4b40b1(0x194)]('✗\x20Invalid'+(_0x282903['message']?':\x20'+_0x282903[_0x4b40b1(0x14d)]:''));}export const doctorDefinition={'service':a29_0x15d0a9(0x189),'command':a29_0x15d0a9(0x15c),'description':a29_0x15d0a9(0x160),'risk':a29_0x15d0a9(0x168),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};