@lovrabet/lovrabet-cli 2.1.11-beta.2 → 2.1.11

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 (119) 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/rate-limit.js +1 -1
  87. package/lib/framework/response.js +1 -1
  88. package/lib/framework/runner-confirmation.js +1 -1
  89. package/lib/framework/runner-error.js +1 -1
  90. package/lib/framework/runner.js +1 -1
  91. package/lib/framework/schema-export.js +1 -1
  92. package/lib/framework/service-order.js +1 -1
  93. package/lib/framework/types.js +1 -1
  94. package/lib/generated/build-info.js +1 -1
  95. package/lib/help.js +1 -1
  96. package/lib/skills/npx-skills-add.js +1 -1
  97. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  98. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  99. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  100. package/lib/skills/runtime-skill-sync/links.js +1 -1
  101. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  102. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  103. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  104. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  105. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  106. package/lib/skills/runtime-skill-sync/push.js +1 -1
  107. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  108. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  109. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  110. package/lib/skills/runtime-skill-sync.js +1 -1
  111. package/lib/utils/apply-jq-filter.js +1 -1
  112. package/lib/utils/logger.js +1 -1
  113. package/lib/utils/lossless-json.js +1 -0
  114. package/lib/utils/params.js +1 -1
  115. package/lib/utils/platform.js +1 -1
  116. package/lib/utils/update-notice.js +1 -1
  117. package/lib/utils/version.js +1 -1
  118. package/lib/utils/write-cli-side-channel.js +1 -1
  119. package/package.json +1 -1
@@ -1 +1 @@
1
- function a14_0x13cc(_0x1c4018,_0x2ba23c){_0x1c4018=_0x1c4018-0x18f;const _0x3c477d=a14_0x3c47();let _0x13cc02=_0x3c477d[_0x1c4018];return _0x13cc02;}const a14_0x5aeee4=a14_0x13cc;(function(_0x3387e3,_0x5081f9){const _0xfebe8c=a14_0x13cc,_0x45480d=_0x3387e3();while(!![]){try{const _0x3b59c9=-parseInt(_0xfebe8c(0x196))/0x1*(-parseInt(_0xfebe8c(0x19e))/0x2)+parseInt(_0xfebe8c(0x1a4))/0x3*(parseInt(_0xfebe8c(0x18f))/0x4)+-parseInt(_0xfebe8c(0x19f))/0x5+-parseInt(_0xfebe8c(0x192))/0x6*(-parseInt(_0xfebe8c(0x1a0))/0x7)+parseInt(_0xfebe8c(0x1a3))/0x8*(parseInt(_0xfebe8c(0x194))/0x9)+-parseInt(_0xfebe8c(0x190))/0xa+-parseInt(_0xfebe8c(0x19d))/0xb;if(_0x3b59c9===_0x5081f9)break;else _0x45480d['push'](_0x45480d['shift']());}catch(_0xaa3dec){_0x45480d['push'](_0x45480d['shift']());}}}(a14_0x3c47,0x742e1));import{getBffScriptInfo}from'../../core/api-client.js';function a14_0x3c47(){const _0x1dfe12=['42QJfLkw','description','284463jNifIY','updatedTime','3242ephfwj','Script\x20ID','functionName','createdTime','detail','scriptType','(none)','6763284JzFnfj','306GKWZVJ','3985925ctrOSh','896651mqnPdS','bool','read','88IhOZLr','12XWkeEb','appCode','611788DhGsLi','4642400EVvXgp','verbose'];a14_0x3c47=function(){return _0x1dfe12;};return a14_0x3c47();}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':'bff','command':a14_0x5aeee4(0x19a),'description':'Get\x20BFF\x20script\x20details\x20by\x20ID','risk':a14_0x5aeee4(0x1a2),'flags':[{...ID_FLAG,'description':a14_0x5aeee4(0x197)},VERBOSE_FLAG],async 'execute'(_0x503f37){const _0x181e92=a14_0x5aeee4,_0x584efb=await getBffScriptInfo(_0x503f37['num']('id')),_0x1cf4c7=_0x503f37[_0x181e92(0x1a1)](_0x181e92(0x191));if(_0x1cf4c7)return{'ok':!![],'data':_0x584efb};return{'ok':!![],'data':{'id':_0x584efb['id'],'appCode':_0x584efb[_0x181e92(0x1a5)],'functionName':_0x584efb[_0x181e92(0x198)]??'','scriptType':_0x584efb[_0x181e92(0x19b)],'description':_0x584efb[_0x181e92(0x193)]||_0x181e92(0x19c),'createdTime':_0x584efb[_0x181e92(0x199)]??'','updatedTime':_0x584efb[_0x181e92(0x195)]??''}};}};
1
+ const a14_0x573597=a14_0x43f7;(function(_0x4d5e5e,_0x3f47de){const _0x383feb=a14_0x43f7,_0x13bc69=_0x4d5e5e();while(!![]){try{const _0x424b94=parseInt(_0x383feb(0x15e))/0x1+parseInt(_0x383feb(0x15c))/0x2*(parseInt(_0x383feb(0x155))/0x3)+parseInt(_0x383feb(0x15d))/0x4+parseInt(_0x383feb(0x14c))/0x5*(-parseInt(_0x383feb(0x14e))/0x6)+parseInt(_0x383feb(0x14d))/0x7*(-parseInt(_0x383feb(0x154))/0x8)+-parseInt(_0x383feb(0x151))/0x9*(parseInt(_0x383feb(0x160))/0xa)+parseInt(_0x383feb(0x14f))/0xb;if(_0x424b94===_0x3f47de)break;else _0x13bc69['push'](_0x13bc69['shift']());}catch(_0x256f4f){_0x13bc69['push'](_0x13bc69['shift']());}}}(a14_0x3144,0xe2cad));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a14_0x43f7(_0x4a4dc0,_0x42acf4){_0x4a4dc0=_0x4a4dc0-0x14b;const _0x31440c=a14_0x3144();let _0x43f7cc=_0x31440c[_0x4a4dc0];return _0x43f7cc;}export const bffDetail={'service':a14_0x573597(0x153),'command':'detail','description':a14_0x573597(0x159),'risk':a14_0x573597(0x150),'flags':[{...ID_FLAG,'description':a14_0x573597(0x14b)},VERBOSE_FLAG],async 'execute'(_0x3def2e){const _0x2519ed=a14_0x573597,_0x497e97=await getBffScriptInfo(_0x3def2e['num']('id')),_0x2af775=_0x3def2e[_0x2519ed(0x15f)](_0x2519ed(0x157));if(_0x2af775)return{'ok':!![],'data':_0x497e97};return{'ok':!![],'data':{'id':_0x497e97['id'],'appCode':_0x497e97[_0x2519ed(0x15a)],'functionName':_0x497e97[_0x2519ed(0x156)]??'','scriptType':_0x497e97[_0x2519ed(0x15b)],'description':_0x497e97['description']||'(none)','createdTime':_0x497e97[_0x2519ed(0x152)]??'','updatedTime':_0x497e97[_0x2519ed(0x158)]??''}};}};function a14_0x3144(){const _0x121b43=['3191855lcPZiX','7CvzYsN','6fXgCLr','2537964xrQlMI','read','250191jKazPI','createdTime','bff','8633160uAKCQl','1226910LGOpfn','functionName','verbose','updatedTime','Get\x20BFF\x20script\x20details\x20by\x20ID','appCode','scriptType','2pNRZjo','4323228QOMXve','1815524UNsLqp','bool','320qUgUlb','Script\x20ID'];a14_0x3144=function(){return _0x121b43;};return a14_0x3144();}
@@ -1 +1 @@
1
- const a15_0x24c574=a15_0x2480;(function(_0x429a6a,_0x35544f){const _0x5d7a58=a15_0x2480,_0xdd9261=_0x429a6a();while(!![]){try{const _0x5b3550=parseInt(_0x5d7a58(0xff))/0x1+-parseInt(_0x5d7a58(0xf0))/0x2+parseInt(_0x5d7a58(0xf7))/0x3*(-parseInt(_0x5d7a58(0x100))/0x4)+-parseInt(_0x5d7a58(0xf3))/0x5+-parseInt(_0x5d7a58(0xf9))/0x6*(-parseInt(_0x5d7a58(0xf8))/0x7)+parseInt(_0x5d7a58(0xf5))/0x8+parseInt(_0x5d7a58(0xef))/0x9;if(_0x5b3550===_0x35544f)break;else _0xdd9261['push'](_0xdd9261['shift']());}catch(_0x2678ec){_0xdd9261['push'](_0xdd9261['shift']());}}}(a15_0x3bd4,0x796b6));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a15_0x2480(_0x241b11,_0x1521a4){_0x241b11=_0x241b11-0xef;const _0x3bd444=a15_0x3bd4();let _0x248016=_0x3bd444[_0x241b11];return _0x248016;}function a15_0x3bd4(){const _0x179ab0=['bff','exec','BFF\x20function\x20name\x20to\x20execute','str','175143oyVcsh','268484BFxBJN','6203502twZgGG','964508uduVHY','BFF\x20executed\x20in\x20','now','2100530qIaTGc','params','555752cQXSxE','read','3EAHcdY','175AKDOyD','127902jpXEDK','name'];a15_0x3bd4=function(){return _0x179ab0;};return a15_0x3bd4();}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a15_0x24c574(0xfb),'command':a15_0x24c574(0xfc),'description':'Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','risk':a15_0x24c574(0xf6),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x24c574(0xfd)},PARAMS_FLAG],async 'execute'(_0x575196){const _0xdf10ac=a15_0x24c574,_0xe91f2d=parseJsonParams(_0x575196['str'](_0xdf10ac(0xf4))),_0x1870f4=Date[_0xdf10ac(0xf2)](),_0x20123a=await executeSdkBff(_0x575196[_0xdf10ac(0xfe)](_0xdf10ac(0xfa)),_0xe91f2d),_0x5f4a31=Date[_0xdf10ac(0xf2)]()-_0x1870f4;return{'ok':!![],'data':{'result':_0x20123a,'elapsed':_0x5f4a31},'message':_0xdf10ac(0xf1)+_0x5f4a31+'ms'};}};
1
+ const a15_0x865dbd=a15_0x51f1;function a15_0x51f1(_0xc21c98,_0x4f3c82){_0xc21c98=_0xc21c98-0x1d0;const _0x1526b6=a15_0x1526();let _0x51f1f8=_0x1526b6[_0xc21c98];return _0x51f1f8;}(function(_0x389609,_0x37a5b0){const _0x367d14=a15_0x51f1,_0x57cbac=_0x389609();while(!![]){try{const _0x773c08=parseInt(_0x367d14(0x1da))/0x1+-parseInt(_0x367d14(0x1d7))/0x2+-parseInt(_0x367d14(0x1d5))/0x3+-parseInt(_0x367d14(0x1d1))/0x4*(parseInt(_0x367d14(0x1d8))/0x5)+parseInt(_0x367d14(0x1d4))/0x6*(parseInt(_0x367d14(0x1de))/0x7)+-parseInt(_0x367d14(0x1d6))/0x8+parseInt(_0x367d14(0x1d2))/0x9;if(_0x773c08===_0x37a5b0)break;else _0x57cbac['push'](_0x57cbac['shift']());}catch(_0x5d5142){_0x57cbac['push'](_0x57cbac['shift']());}}}(a15_0x1526,0x8b478));function a15_0x1526(){const _0x478f7b=['bff','814653sRGXzC','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','name','str','126CfcUcU','BFF\x20executed\x20in\x20','now','4148QFRqCr','13628313ojkhdR','read','267348ExPShO','1014111UMhayg','3527472LWmQcX','1860236uZNvoW','4105jzdyjs'];a15_0x1526=function(){return _0x478f7b;};return a15_0x1526();}import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a15_0x865dbd(0x1d9),'command':'exec','description':a15_0x865dbd(0x1db),'risk':a15_0x865dbd(0x1d3),'flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0x1c0bdc){const _0x51d521=a15_0x865dbd,_0x4f2d93=parseJsonParams(_0x1c0bdc[_0x51d521(0x1dd)]('params')),_0x455546=Date[_0x51d521(0x1d0)](),_0xb2dd4d=await executeSdkBff(_0x1c0bdc['str'](_0x51d521(0x1dc)),_0x4f2d93),_0x3c6d33=Date[_0x51d521(0x1d0)]()-_0x455546;return{'ok':!![],'data':{'result':_0xb2dd4d,'elapsed':_0x3c6d33},'message':_0x51d521(0x1df)+_0x3c6d33+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x2e7a52,_0x38eb82){const _0x4d3803=a16_0xb6b1,_0xea3636=_0x2e7a52();while(!![]){try{const _0x17ec91=-parseInt(_0x4d3803(0x119))/0x1*(-parseInt(_0x4d3803(0x118))/0x2)+-parseInt(_0x4d3803(0x11d))/0x3*(-parseInt(_0x4d3803(0x114))/0x4)+-parseInt(_0x4d3803(0x115))/0x5*(-parseInt(_0x4d3803(0x113))/0x6)+-parseInt(_0x4d3803(0x117))/0x7+-parseInt(_0x4d3803(0x11a))/0x8+parseInt(_0x4d3803(0x116))/0x9*(-parseInt(_0x4d3803(0x11c))/0xa)+-parseInt(_0x4d3803(0x11b))/0xb;if(_0x17ec91===_0x38eb82)break;else _0xea3636['push'](_0xea3636['shift']());}catch(_0x2dafc4){_0xea3636['push'](_0xea3636['shift']());}}}(a16_0x3fca,0x34930));import{bffDetail}from'../../commands/bff/detail.js';function a16_0x3fca(){const _0x2c1d10=['623106dZObPq','67200pyDsOC','33855IRTxJl','12dextCe','8RJlACQ','994780eeczyG','108MhGfnD','204232OAgcWU','32efTVlM','22643OCtjgn','3207712Buzzvg'];a16_0x3fca=function(){return _0x2c1d10;};return a16_0x3fca();}function a16_0xb6b1(_0x1c8713,_0x35e022){_0x1c8713=_0x1c8713-0x113;const _0x3fcad8=a16_0x3fca();let _0xb6b105=_0x3fcad8[_0x1c8713];return _0xb6b105;}import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
1
+ function a16_0x294e(_0x533e5a,_0x470430){_0x533e5a=_0x533e5a-0x1c5;const _0x39dbfe=a16_0x39db();let _0x294ece=_0x39dbfe[_0x533e5a];return _0x294ece;}(function(_0xf5d030,_0x2b95b3){const _0x171d3a=a16_0x294e,_0x8145a=_0xf5d030();while(!![]){try{const _0x207213=parseInt(_0x171d3a(0x1c8))/0x1+-parseInt(_0x171d3a(0x1ca))/0x2+parseInt(_0x171d3a(0x1c6))/0x3*(-parseInt(_0x171d3a(0x1c9))/0x4)+parseInt(_0x171d3a(0x1ce))/0x5+parseInt(_0x171d3a(0x1c7))/0x6*(parseInt(_0x171d3a(0x1cd))/0x7)+parseInt(_0x171d3a(0x1c5))/0x8*(-parseInt(_0x171d3a(0x1cc))/0x9)+parseInt(_0x171d3a(0x1cb))/0xa;if(_0x207213===_0x2b95b3)break;else _0x8145a['push'](_0x8145a['shift']());}catch(_0x11b52c){_0x8145a['push'](_0x8145a['shift']());}}}(a16_0x39db,0xaa373));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];function a16_0x39db(){const _0x5de564=['8594370CXKyWW','1365237wDEBio','379169iwcSHy','726530gAVwsI','56ZGVNow','6bGujiy','150KghyRW','169300NgTUZX','1129508CQtoUf','408820GIOKjz'];a16_0x39db=function(){return _0x5de564;};return a16_0x39db();}
@@ -1 +1 @@
1
- const a17_0x1e7323=a17_0x1d8d;function a17_0x1b4e(){const _0x4c1f0c=['skipped','cwd','4368296QlaIJc','install','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','10877625PCccoj','15uoyaGV','setLogPath','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','CLI\x20Built-in\x20Skill\x20installed','9EsrbIh','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','apiError','../../skills/npx-skills-add.js','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','info','Skipped\x20npx\x20(','npx\x20skills\x20add\x20failed:\x20','104512VGzzRh','\x20-g\x20-y','\x20-g\x20-y)...','579906fijmRN','3FNwrbG','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','2941827PgNFGd','24222AVamGe','50xvPoWf','pipe','log','4409730kjaJfW'];a17_0x1b4e=function(){return _0x4c1f0c;};return a17_0x1b4e();}(function(_0x2c5f63,_0xcb3d95){const _0x3d0e2e=a17_0x1d8d,_0x38e4d7=_0x2c5f63();while(!![]){try{const _0x3ecae6=-parseInt(_0x3d0e2e(0xfa))/0x1*(-parseInt(_0x3d0e2e(0xdf))/0x2)+-parseInt(_0x3d0e2e(0xea))/0x3*(-parseInt(_0x3d0e2e(0xf6))/0x4)+parseInt(_0x3d0e2e(0xe0))/0x5*(-parseInt(_0x3d0e2e(0xf9))/0x6)+parseInt(_0x3d0e2e(0xfc))/0x7+-parseInt(_0x3d0e2e(0xe6))/0x8*(parseInt(_0x3d0e2e(0xee))/0x9)+parseInt(_0x3d0e2e(0xe3))/0xa+parseInt(_0x3d0e2e(0xe9))/0xb;if(_0x3ecae6===_0xcb3d95)break;else _0x38e4d7['push'](_0x38e4d7['shift']());}catch(_0x2cdd34){_0x38e4d7['push'](_0x38e4d7['shift']());}}}(a17_0x1b4e,0x7b2d7));import{CliErrors}from'../../errors.js';function a17_0x1d8d(_0x34e7b1,_0x10fd74){_0x34e7b1=_0x34e7b1-0xdf;const _0x1b4e92=a17_0x1b4e();let _0x1d8d3c=_0x1b4e92[_0x34e7b1];return _0x1d8d3c;}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':a17_0x1e7323(0xe7),'description':a17_0x1e7323(0xf2),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2107a1){const _0x4efac4=a17_0x1e7323;logger[_0x4efac4(0xeb)](process[_0x4efac4(0xe5)]()),logger[_0x4efac4(0xf3)]('cli-skill-install',_0x4efac4(0xec));const {LOVRABET_SKILL_SOURCE:_0x23b02c,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x2f0a77,runNpxSkillsAddGlobal:_0x371885}=await import(_0x4efac4(0xf1)),_0x564ae8=_0x2107a1['nonInteractive']?_0x4efac4(0xe1):'inherit';console['log'](_0x4efac4(0xe8)+_0x23b02c+_0x4efac4(0xf8));const _0x3654eb=_0x371885(process['cwd'](),_0x23b02c,{'stdio':_0x564ae8});if(_0x3654eb[_0x4efac4(0xe4)])console[_0x4efac4(0xe2)](_0x4efac4(0xf4)+_0x2f0a77+_0x4efac4(0xfb));else{if(_0x3654eb['ok'])console[_0x4efac4(0xe2)](_0x4efac4(0xed));else throw CliErrors[_0x4efac4(0xf0)](_0x4efac4(0xf5)+(_0x3654eb['error']||'unknown'),_0x4efac4(0xef)+_0x23b02c+_0x4efac4(0xf7));}return{'ok':!![]};}}];
1
+ const a17_0x44f9c8=a17_0x3a3c;(function(_0x61785c,_0xd3902e){const _0x41185d=a17_0x3a3c,_0x111d2d=_0x61785c();while(!![]){try{const _0xd249b5=parseInt(_0x41185d(0x8d))/0x1+-parseInt(_0x41185d(0x8f))/0x2*(-parseInt(_0x41185d(0x85))/0x3)+-parseInt(_0x41185d(0x8e))/0x4*(-parseInt(_0x41185d(0x7c))/0x5)+parseInt(_0x41185d(0x96))/0x6*(parseInt(_0x41185d(0x87))/0x7)+-parseInt(_0x41185d(0x7d))/0x8*(parseInt(_0x41185d(0x95))/0x9)+-parseInt(_0x41185d(0x8c))/0xa*(-parseInt(_0x41185d(0x91))/0xb)+-parseInt(_0x41185d(0x7f))/0xc;if(_0xd249b5===_0xd3902e)break;else _0x111d2d['push'](_0x111d2d['shift']());}catch(_0x13290a){_0x111d2d['push'](_0x111d2d['shift']());}}}(a17_0x1a1b,0xf0bbf));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';function a17_0x1a1b(){const _0x187119=['info','skipped','3BhkFct','error','10220YEfUyW','log','cli-skill','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','cli-skill-install','144530YkfdYG','777246Aiiqyh','5524436iuBAeA','3233462nBrmew','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','143yjwlTM','write','inherit','cwd','1305963bioTOC','2994sdKHdh','apiError','Skipped\x20npx\x20(','CLI\x20Built-in\x20Skill\x20installed','5mLaIyj','64ZPYQGP','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','30535344kgIFhj','nonInteractive','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','unknown'];a17_0x1a1b=function(){return _0x187119;};return a17_0x1a1b();}function a17_0x3a3c(_0x20407f,_0x1abe17){_0x20407f=_0x20407f-0x7a;const _0x1a1be4=a17_0x1a1b();let _0x3a3c91=_0x1a1be4[_0x20407f];return _0x3a3c91;}export const cliSkillDefinitions=[{'service':a17_0x44f9c8(0x89),'command':'install','description':a17_0x44f9c8(0x90),'risk':a17_0x44f9c8(0x92),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x420b45){const _0x1c82c8=a17_0x44f9c8;logger['setLogPath'](process[_0x1c82c8(0x94)]()),logger[_0x1c82c8(0x83)](_0x1c82c8(0x8b),_0x1c82c8(0x7e));const {LOVRABET_SKILL_SOURCE:_0x17d38c,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x21aad0,runNpxSkillsAddGlobal:_0x252400}=await import('../../skills/npx-skills-add.js'),_0x13d211=_0x420b45[_0x1c82c8(0x80)]?'pipe':_0x1c82c8(0x93);console[_0x1c82c8(0x88)](_0x1c82c8(0x81)+_0x17d38c+'\x20-g\x20-y)...');const _0x5508e3=_0x252400(process[_0x1c82c8(0x94)](),_0x17d38c,{'stdio':_0x13d211});if(_0x5508e3[_0x1c82c8(0x84)])console[_0x1c82c8(0x88)](_0x1c82c8(0x7a)+_0x21aad0+'=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.');else{if(_0x5508e3['ok'])console[_0x1c82c8(0x88)](_0x1c82c8(0x7b));else throw CliErrors[_0x1c82c8(0x97)]('npx\x20skills\x20add\x20failed:\x20'+(_0x5508e3[_0x1c82c8(0x86)]||_0x1c82c8(0x82)),_0x1c82c8(0x8a)+_0x17d38c+'\x20-g\x20-y');}return{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a18_0xed17(_0x3372a3,_0x39a9a5){_0x3372a3=_0x3372a3-0x162;const _0x4c4be0=a18_0x4c4b();let _0xed177d=_0x4c4be0[_0x3372a3];return _0xed177d;}(function(_0x8d95ad,_0x588892){const _0x2f31e3=a18_0xed17,_0x49209c=_0x8d95ad();while(!![]){try{const _0x5f2bbe=parseInt(_0x2f31e3(0x16a))/0x1+parseInt(_0x2f31e3(0x173))/0x2+parseInt(_0x2f31e3(0x171))/0x3+-parseInt(_0x2f31e3(0x179))/0x4+-parseInt(_0x2f31e3(0x167))/0x5*(parseInt(_0x2f31e3(0x170))/0x6)+parseInt(_0x2f31e3(0x162))/0x7*(-parseInt(_0x2f31e3(0x178))/0x8)+parseInt(_0x2f31e3(0x175))/0x9;if(_0x5f2bbe===_0x588892)break;else _0x49209c['push'](_0x49209c['shift']());}catch(_0x20da96){_0x49209c['push'](_0x49209c['shift']());}}}(a18_0x4c4b,0xb827a));import{CLI_BIN_NAME}from'../../constant/cli.js';function a18_0x4c4b(){const _0x12794b=['Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','434855NAtqFQ','newConfigFileName',',\x20or\x20run\x20`','global-default','\x20(global)','\x20found).','3444090zgvPtW','26988AhmvGx','global','865806PjjssH','Use\x20only\x20one\x20config\x20scope\x20flag.','34368759CqDRpg','validation','Add\x20--global\x20to\x20write\x20to\x20~/','84072SqgahJ','5413776iBqgFC','959sXlMJa','Not\x20inside\x20a\x20project\x20(no\x20','project-default','project','project-or-global-explicit','10tHmQyK','inProject'];a18_0x4c4b=function(){return _0x12794b;};return a18_0x4c4b();}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(_0x4ebd36){const _0x19cec8=a18_0xed17,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x45dd5e}=_0x4ebd36;if(explicitGlobal&&explicitProject)throw CliErrors[_0x19cec8(0x176)](_0x19cec8(0x169),_0x19cec8(0x174));if(explicitGlobal)return _0x19cec8(0x172);if(explicitProject)return _0x19cec8(0x165);switch(_0x45dd5e){case _0x19cec8(0x16d):return _0x19cec8(0x172);case _0x19cec8(0x164):return _0x4ebd36[_0x19cec8(0x168)]??isInProject()?_0x19cec8(0x165):_0x19cec8(0x172);case _0x19cec8(0x166):if(!(_0x4ebd36[_0x19cec8(0x168)]??isInProject()))throw CliErrors['validation'](_0x19cec8(0x163)+PRODUCT_CONFIG[_0x19cec8(0x16b)]+_0x19cec8(0x16f),_0x19cec8(0x177)+PRODUCT_CONFIG[_0x19cec8(0x16b)]+_0x19cec8(0x16c)+CLI_BIN_NAME+'\x20init`\x20first.');return _0x19cec8(0x165);}}export function toScopeFlags(_0x258115){const _0x24eb95=a18_0xed17;return{'global':_0x258115===_0x24eb95(0x172)};}export function formatScopeLabel(_0x4f94dc){const _0x7923c1=a18_0xed17;return _0x4f94dc==='global'?_0x7923c1(0x16e):'';}
1
+ (function(_0xc68f0a,_0xa2f52a){const _0x17c893=a18_0x2012,_0x2b4221=_0xc68f0a();while(!![]){try{const _0x17d0d3=-parseInt(_0x17c893(0xe8))/0x1+-parseInt(_0x17c893(0xe6))/0x2*(parseInt(_0x17c893(0xe7))/0x3)+-parseInt(_0x17c893(0xe5))/0x4*(-parseInt(_0x17c893(0xdf))/0x5)+parseInt(_0x17c893(0xea))/0x6+-parseInt(_0x17c893(0xe3))/0x7+-parseInt(_0x17c893(0xe1))/0x8*(parseInt(_0x17c893(0xf4))/0x9)+parseInt(_0x17c893(0xe9))/0xa;if(_0x17d0d3===_0xa2f52a)break;else _0x2b4221['push'](_0x2b4221['shift']());}catch(_0x1569ce){_0x2b4221['push'](_0x2b4221['shift']());}}}(a18_0x3f86,0xe6063));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';function a18_0x3f86(){const _0x37947a=['\x20found).','inProject','\x20(global)','Use\x20only\x20one\x20config\x20scope\x20flag.','Add\x20--global\x20to\x20write\x20to\x20~/','14851917keQlGD','\x20init`\x20first.','project-default','4475ydUhUy','validation','8pBbokT','Not\x20inside\x20a\x20project\x20(no\x20','12265827auzFQW',',\x20or\x20run\x20`','4076NftvJk','354IDhRmL','13437jKSNlZ','1336003oqaDnJ','42965550ynUire','7589274ZhdTQn','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','global','newConfigFileName','project'];a18_0x3f86=function(){return _0x37947a;};return a18_0x3f86();}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';function a18_0x2012(_0x478e30,_0x4dbd95){_0x478e30=_0x478e30-0xdf;const _0x3f863f=a18_0x3f86();let _0x201284=_0x3f863f[_0x478e30];return _0x201284;}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(_0x525838){const _0x3ed1a5=a18_0x2012,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0xdf950f}=_0x525838;if(explicitGlobal&&explicitProject)throw CliErrors[_0x3ed1a5(0xe0)](_0x3ed1a5(0xeb),_0x3ed1a5(0xf2));if(explicitGlobal)return _0x3ed1a5(0xec);if(explicitProject)return _0x3ed1a5(0xee);switch(_0xdf950f){case'global-default':return _0x3ed1a5(0xec);case _0x3ed1a5(0xf6):return _0x525838[_0x3ed1a5(0xf0)]??isInProject()?_0x3ed1a5(0xee):'global';case'project-or-global-explicit':if(!(_0x525838[_0x3ed1a5(0xf0)]??isInProject()))throw CliErrors[_0x3ed1a5(0xe0)](_0x3ed1a5(0xe2)+PRODUCT_CONFIG[_0x3ed1a5(0xed)]+_0x3ed1a5(0xef),_0x3ed1a5(0xf3)+PRODUCT_CONFIG[_0x3ed1a5(0xed)]+_0x3ed1a5(0xe4)+CLI_BIN_NAME+_0x3ed1a5(0xf5));return _0x3ed1a5(0xee);}}export function toScopeFlags(_0x703907){const _0x8432=a18_0x2012;return{'global':_0x703907===_0x8432(0xec)};}export function formatScopeLabel(_0x3f229f){const _0x130290=a18_0x2012;return _0x3f229f==='global'?_0x130290(0xf1):'';}
@@ -1 +1 @@
1
- function a19_0xfd34(){const _0x334d59=['Flags\x20','Exactly\x20one\x20of\x20','length','327400FdDmuv','\x20is\x20required\x20for\x20`','10807356fPsXIM','85SFytdj','3584703fvoIaa','some','223296JVbieC','\x20is\x20allowed,\x20found:\x20','\x20are\x20mutually\x20exclusive\x20for\x20`','Only\x20one\x20of\x20','Provide\x20one\x20of:\x20','2FtTbtD','45eDYaga','Invalid\x20--','validation','21110640bQPBup','filter','248464ALKjpz','join','str','test','9040794ulstSy'];a19_0xfd34=function(){return _0x334d59;};return a19_0xfd34();}(function(_0x2c2b3a,_0x35a627){const _0x2a5135=a19_0x2e9c,_0x3a9009=_0x2c2b3a();while(!![]){try{const _0x2e020c=parseInt(_0x2a5135(0xae))/0x1+-parseInt(_0x2a5135(0xa8))/0x2*(-parseInt(_0x2a5135(0xa1))/0x3)+-parseInt(_0x2a5135(0x9d))/0x4*(-parseInt(_0x2a5135(0xa0))/0x5)+-parseInt(_0x2a5135(0xb2))/0x6+parseInt(_0x2a5135(0x9f))/0x7+parseInt(_0x2a5135(0xa3))/0x8*(parseInt(_0x2a5135(0xa9))/0x9)+-parseInt(_0x2a5135(0xac))/0xa;if(_0x2e020c===_0x35a627)break;else _0x3a9009['push'](_0x3a9009['shift']());}catch(_0x413c15){_0x3a9009['push'](_0x3a9009['shift']());}}}(a19_0xfd34,0xdbd44));import{CliErrors}from'../../errors.js';function isSet(_0x21afbb,_0x3b8b34){const _0xc19a88=_0x21afbb['flag'](_0x3b8b34);return _0xc19a88!==undefined&&_0xc19a88!==''&&_0xc19a88!==![]&&_0xc19a88!==0x0;}function fmtNames(_0x2d8e6a){const _0x595671=a19_0x2e9c;return _0x2d8e6a['map'](_0x4c4dca=>'--'+_0x4c4dca)[_0x595671(0xaf)](',\x20');}export function requireOneOf(_0x22c92c,_0x32ebc3,_0x3b40bd){const _0x1aca66=a19_0x2e9c,_0x2709eb=_0x32ebc3[_0x1aca66(0xad)](_0x1b1f3f=>isSet(_0x22c92c,_0x1b1f3f));if(_0x2709eb[_0x1aca66(0x9c)]!==0x1)throw CliErrors[_0x1aca66(0xab)](_0x2709eb['length']===0x0?_0x1aca66(0xb4)+fmtNames(_0x32ebc3)+_0x1aca66(0x9e)+_0x3b40bd+'`.':_0x1aca66(0xa6)+fmtNames(_0x32ebc3)+_0x1aca66(0xa4)+fmtNames(_0x2709eb)+'.',_0x2709eb['length']===0x0?_0x1aca66(0xa7)+fmtNames(_0x32ebc3):'Remove\x20all\x20but\x20one.');}export function requireAnyOf(_0x3fdeeb,_0x213a09,_0x2d5446){const _0xc3a8f7=a19_0x2e9c;if(!_0x213a09[_0xc3a8f7(0xa2)](_0x386f2c=>isSet(_0x3fdeeb,_0x386f2c)))throw CliErrors['validation']('At\x20least\x20one\x20of\x20'+fmtNames(_0x213a09)+_0xc3a8f7(0x9e)+_0x2d5446+'`.',_0xc3a8f7(0xa7)+fmtNames(_0x213a09));}function a19_0x2e9c(_0x3d07a6,_0x299920){_0x3d07a6=_0x3d07a6-0x9c;const _0xfd3459=a19_0xfd34();let _0x2e9c30=_0xfd3459[_0x3d07a6];return _0x2e9c30;}export function mutuallyExclusive(_0x36ef0b,_0x2951dd,_0x20be03){const _0x87179d=a19_0x2e9c,_0x370c57=_0x2951dd[_0x87179d(0xad)](_0x2c00a8=>isSet(_0x36ef0b,_0x2c00a8));if(_0x370c57[_0x87179d(0x9c)]>0x1)throw CliErrors[_0x87179d(0xab)](_0x87179d(0xb3)+fmtNames(_0x370c57)+_0x87179d(0xa5)+_0x20be03+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x2951dd));}export function validatePattern(_0x5ccf74,_0x347772,_0x42fdad,_0xa7e93a){const _0x58ffb9=a19_0x2e9c,_0x49579a=_0x5ccf74[_0x58ffb9(0xb0)](_0x347772);if(_0x49579a&&!_0x42fdad[_0x58ffb9(0xb1)](_0x49579a))throw CliErrors[_0x58ffb9(0xab)](_0x58ffb9(0xaa)+_0x347772+':\x20expected\x20'+_0xa7e93a+',\x20got\x20\x22'+_0x49579a+'\x22.');}
1
+ (function(_0x37ce8d,_0x42d421){const _0x2c37d2=a19_0x4c8e,_0x9d9142=_0x37ce8d();while(!![]){try{const _0x3b38c4=parseInt(_0x2c37d2(0x180))/0x1+parseInt(_0x2c37d2(0x179))/0x2+-parseInt(_0x2c37d2(0x172))/0x3+parseInt(_0x2c37d2(0x181))/0x4*(parseInt(_0x2c37d2(0x176))/0x5)+parseInt(_0x2c37d2(0x16c))/0x6+parseInt(_0x2c37d2(0x177))/0x7*(parseInt(_0x2c37d2(0x17b))/0x8)+-parseInt(_0x2c37d2(0x174))/0x9;if(_0x3b38c4===_0x42d421)break;else _0x9d9142['push'](_0x9d9142['shift']());}catch(_0x27e30c){_0x9d9142['push'](_0x9d9142['shift']());}}}(a19_0x239d,0x4b80d));import{CliErrors}from'../../errors.js';function isSet(_0x288fd7,_0x458c4c){const _0x6c1545=a19_0x4c8e,_0x827805=_0x288fd7[_0x6c1545(0x16f)](_0x458c4c);return _0x827805!==undefined&&_0x827805!==''&&_0x827805!==![]&&_0x827805!==0x0;}function a19_0x4c8e(_0xd69ead,_0xe4a46f){_0xd69ead=_0xd69ead-0x16b;const _0x239d31=a19_0x239d();let _0x4c8e72=_0x239d31[_0xd69ead];return _0x4c8e72;}function fmtNames(_0x4b5657){const _0x13d0f2=a19_0x4c8e;return _0x4b5657[_0x13d0f2(0x16d)](_0x277696=>'--'+_0x277696)[_0x13d0f2(0x178)](',\x20');}function a19_0x239d(){const _0xf92e08=['test',':\x20expected\x20','206409jHxlCT','At\x20least\x20one\x20of\x20','10038798DmoXpZ','Flags\x20','1862905xKJhFh','189eHfiMi','join','3916GqzvhW','validation','90072amJZWt','filter','Remove\x20all\x20but\x20one.','\x20are\x20mutually\x20exclusive\x20for\x20`','\x20is\x20required\x20for\x20`','552815HraNML','4obnncu','Provide\x20one\x20of:\x20','length','1572834xPzCsm','map','some','flag'];a19_0x239d=function(){return _0xf92e08;};return a19_0x239d();}export function requireOneOf(_0x5475cd,_0x5961b4,_0x3839e4){const _0x269413=a19_0x4c8e,_0x54972f=_0x5961b4[_0x269413(0x17c)](_0x2d0190=>isSet(_0x5475cd,_0x2d0190));if(_0x54972f[_0x269413(0x16b)]!==0x1)throw CliErrors[_0x269413(0x17a)](_0x54972f[_0x269413(0x16b)]===0x0?'Exactly\x20one\x20of\x20'+fmtNames(_0x5961b4)+_0x269413(0x17f)+_0x3839e4+'`.':'Only\x20one\x20of\x20'+fmtNames(_0x5961b4)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x54972f)+'.',_0x54972f[_0x269413(0x16b)]===0x0?_0x269413(0x182)+fmtNames(_0x5961b4):_0x269413(0x17d));}export function requireAnyOf(_0x42eec0,_0x35c71a,_0x2b2ab9){const _0x2196f2=a19_0x4c8e;if(!_0x35c71a[_0x2196f2(0x16e)](_0x494da8=>isSet(_0x42eec0,_0x494da8)))throw CliErrors[_0x2196f2(0x17a)](_0x2196f2(0x173)+fmtNames(_0x35c71a)+'\x20is\x20required\x20for\x20`'+_0x2b2ab9+'`.',_0x2196f2(0x182)+fmtNames(_0x35c71a));}export function mutuallyExclusive(_0xd71fc6,_0x2630e0,_0x1698b6){const _0x3002e2=a19_0x4c8e,_0xc1315e=_0x2630e0[_0x3002e2(0x17c)](_0x551a85=>isSet(_0xd71fc6,_0x551a85));if(_0xc1315e[_0x3002e2(0x16b)]>0x1)throw CliErrors[_0x3002e2(0x17a)](_0x3002e2(0x175)+fmtNames(_0xc1315e)+_0x3002e2(0x17e)+_0x1698b6+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x2630e0));}export function validatePattern(_0x5b3651,_0x515ffe,_0x17656a,_0x513fd4){const _0x49e880=a19_0x4c8e,_0x1df72a=_0x5b3651['str'](_0x515ffe);if(_0x1df72a&&!_0x17656a[_0x49e880(0x170)](_0x1df72a))throw CliErrors[_0x49e880(0x17a)]('Invalid\x20--'+_0x515ffe+_0x49e880(0x171)+_0x513fd4+',\x20got\x20\x22'+_0x1df72a+'\x22.');}
@@ -1 +1 @@
1
- const a20_0x5e1ce9=a20_0x1728;(function(_0x242761,_0x3df8ea){const _0x3902dd=a20_0x1728,_0x79f41e=_0x242761();while(!![]){try{const _0x1d558b=parseInt(_0x3902dd(0x205))/0x1*(-parseInt(_0x3902dd(0x1f4))/0x2)+parseInt(_0x3902dd(0x204))/0x3*(-parseInt(_0x3902dd(0x203))/0x4)+-parseInt(_0x3902dd(0x20a))/0x5*(-parseInt(_0x3902dd(0x1fc))/0x6)+-parseInt(_0x3902dd(0x1f7))/0x7*(parseInt(_0x3902dd(0x209))/0x8)+parseInt(_0x3902dd(0x202))/0x9+-parseInt(_0x3902dd(0x20b))/0xa*(-parseInt(_0x3902dd(0x1f3))/0xb)+parseInt(_0x3902dd(0x20d))/0xc;if(_0x1d558b===_0x3df8ea)break;else _0x79f41e['push'](_0x79f41e['shift']());}catch(_0x4071f8){_0x79f41e['push'](_0x79f41e['shift']());}}}(a20_0x5ba1,0x51a18));export const CODE_FLAG={'name':a20_0x5e1ce9(0x207),'type':a20_0x5e1ce9(0x1f8),'required':!![],'description':a20_0x5e1ce9(0x208),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x5e1ce9(0x206)}};export const SQLCODE_FLAG={'name':a20_0x5e1ce9(0x20e),'type':a20_0x5e1ce9(0x1f8),'required':!![],'description':a20_0x5e1ce9(0x200),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x5e1ce9(0x201)}};export const VERBOSE_FLAG={'name':a20_0x5e1ce9(0x1ff),'type':a20_0x5e1ce9(0x1fd),'description':a20_0x5e1ce9(0x1f6)};export const PARAMS_FLAG={'name':a20_0x5e1ce9(0x1f9),'type':a20_0x5e1ce9(0x1f8),'description':a20_0x5e1ce9(0x20c)};export const NAME_FLAG={'name':a20_0x5e1ce9(0x1fb),'type':a20_0x5e1ce9(0x1f8),'description':a20_0x5e1ce9(0x1fe)};function a20_0x1728(_0x162291,_0x2ea6fd){_0x162291=_0x162291-0x1f3;const _0x5ba1b0=a20_0x5ba1();let _0x1728b3=_0x5ba1b0[_0x162291];return _0x1728b3;}export const ID_FLAG={'name':'id','type':a20_0x5e1ce9(0x1f5),'required':!![],'description':a20_0x5e1ce9(0x1fa)};function a20_0x5ba1(){const _0x4aceaf=['number','Return\x20full\x20raw\x20response\x20object','58079EqCmkH','string','params','Resource\x20ID','name','48ksIdXz','boolean','Resource\x20name\x20for\x20lookup','verbose','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','1384794tZaQJA','668axzrjn','6171NuTchf','75974tMkJWJ','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','code','Dataset\x20code\x20(32-char\x20hex\x20UUID)','200EZwdil','24400TtTdeA','2625050QHcPZL','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','6567096vhhUtV','sqlcode','22sDRqyU','10jjUUps'];a20_0x5ba1=function(){return _0x4aceaf;};return a20_0x5ba1();}
1
+ const a20_0x38860e=a20_0x2b0f;(function(_0x4f196e,_0x39c256){const _0x4f8a6e=a20_0x2b0f,_0x148705=_0x4f196e();while(!![]){try{const _0x147456=parseInt(_0x4f8a6e(0xe1))/0x1*(-parseInt(_0x4f8a6e(0xed))/0x2)+-parseInt(_0x4f8a6e(0xea))/0x3*(parseInt(_0x4f8a6e(0xde))/0x4)+-parseInt(_0x4f8a6e(0xee))/0x5+-parseInt(_0x4f8a6e(0xf1))/0x6*(-parseInt(_0x4f8a6e(0xf0))/0x7)+parseInt(_0x4f8a6e(0xef))/0x8+parseInt(_0x4f8a6e(0xe0))/0x9*(parseInt(_0x4f8a6e(0xe3))/0xa)+-parseInt(_0x4f8a6e(0xeb))/0xb*(parseInt(_0x4f8a6e(0xe7))/0xc);if(_0x147456===_0x39c256)break;else _0x148705['push'](_0x148705['shift']());}catch(_0x341aa3){_0x148705['push'](_0x148705['shift']());}}}(a20_0x2baf,0x206bd));function a20_0x2b0f(_0xada74f,_0x37d1fd){_0xada74f=_0xada74f-0xde;const _0x2baf5d=a20_0x2baf();let _0x2b0fc2=_0x2baf5d[_0xada74f];return _0x2b0fc2;}export const CODE_FLAG={'name':a20_0x38860e(0xe5),'type':a20_0x38860e(0xf3),'required':!![],'description':a20_0x38860e(0xe8),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const SQLCODE_FLAG={'name':a20_0x38860e(0xec),'type':a20_0x38860e(0xf3),'required':!![],'description':a20_0x38860e(0xe6),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x38860e(0xe4)}};export const VERBOSE_FLAG={'name':a20_0x38860e(0xe2),'type':a20_0x38860e(0xf2),'description':a20_0x38860e(0xe9)};export const PARAMS_FLAG={'name':'params','type':a20_0x38860e(0xf3),'description':'Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)'};export const NAME_FLAG={'name':a20_0x38860e(0xdf),'type':a20_0x38860e(0xf3),'description':'Resource\x20name\x20for\x20lookup'};export const ID_FLAG={'name':'id','type':'number','required':!![],'description':'Resource\x20ID'};function a20_0x2baf(){const _0x4d928b=['63445khQLjS','1120368Ssmfan','7yewUVv','859254RkmRNO','boolean','string','374564crhPfA','name','9ZICRbV','185599lyYPUH','verbose','2159390rCFFpn','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','code','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','446808vkIJIj','Dataset\x20code\x20(32-char\x20hex\x20UUID)','Return\x20full\x20raw\x20response\x20object','3iSZgZp','22kQWAfF','sqlcode','2hwiuTN'];a20_0x2baf=function(){return _0x4d928b;};return a20_0x2baf();}
@@ -1 +1 @@
1
- (function(_0x4125b6,_0x464cc9){const _0x121fc0=a21_0x44dd,_0x40463a=_0x4125b6();while(!![]){try{const _0x43458a=-parseInt(_0x121fc0(0xd1))/0x1+parseInt(_0x121fc0(0xbf))/0x2*(parseInt(_0x121fc0(0xcf))/0x3)+-parseInt(_0x121fc0(0xd0))/0x4+parseInt(_0x121fc0(0xc8))/0x5+-parseInt(_0x121fc0(0xcb))/0x6+-parseInt(_0x121fc0(0xc6))/0x7*(-parseInt(_0x121fc0(0xc7))/0x8)+parseInt(_0x121fc0(0xc2))/0x9;if(_0x43458a===_0x464cc9)break;else _0x40463a['push'](_0x40463a['shift']());}catch(_0x5b6f6b){_0x40463a['push'](_0x40463a['shift']());}}}(a21_0x5273,0x991cc));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;function a21_0x44dd(_0x48d130,_0x297787){_0x48d130=_0x48d130-0xbf;const _0x527331=a21_0x5273();let _0x44dd76=_0x527331[_0x48d130];return _0x44dd76;}export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x12a41d){const _0x1f2b4f=a21_0x44dd;if(_0x12a41d>=BYTES_PER_MB){const _0x3553f5=Math[_0x1f2b4f(0xcc)](_0x12a41d/BYTES_PER_MB*0x64)/0x64;return _0x3553f5[_0x1f2b4f(0xc9)](0x2)+_0x1f2b4f(0xc5);}return _0x12a41d+'\x20B';}export function requireRuntimeUploadFile(_0x6f969e,_0x3b5fd6){const _0x52c871=a21_0x44dd,_0x4647e6=_0x6f969e['trim']();if(!_0x4647e6)throw CliErrors[_0x52c871(0xcd)](_0x3b5fd6+_0x52c871(0xc0));if(!existsSync(_0x4647e6))throw CliErrors[_0x52c871(0xcd)](_0x52c871(0xc4)+_0x4647e6);const _0x47ef35=statSync(_0x4647e6);if(!_0x47ef35[_0x52c871(0xce)]())throw CliErrors['validation'](_0x52c871(0xc1)+_0x4647e6);if(_0x47ef35['size']>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x52c871(0xcd)](_0x52c871(0xc3)+_0x4647e6+'\x20('+formatBytes(_0x47ef35[_0x52c871(0xca)])+')');return{'path':_0x4647e6,'size':_0x47ef35[_0x52c871(0xca)]};}function a21_0x5273(){const _0x529f05=['3456BWCdgq','2153444jdNIdX','966803TeXtEB','1942aOwXnJ','\x20path\x20is\x20required.','File\x20is\x20not\x20a\x20regular\x20file:\x20','1580940jGckAU','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','File\x20not\x20found:\x20','\x20MB','28Xclrji','2359760nFDMwt','2047705DKpXZi','toFixed','size','4508166IjIOkF','ceil','validation','isFile'];a21_0x5273=function(){return _0x529f05;};return a21_0x5273();}
1
+ (function(_0x5cd7b9,_0xe54605){const _0x15bcf0=a21_0x5d5e,_0x23a3f9=_0x5cd7b9();while(!![]){try{const _0x54840b=-parseInt(_0x15bcf0(0x186))/0x1*(-parseInt(_0x15bcf0(0x18b))/0x2)+parseInt(_0x15bcf0(0x18a))/0x3+parseInt(_0x15bcf0(0x196))/0x4*(parseInt(_0x15bcf0(0x194))/0x5)+parseInt(_0x15bcf0(0x188))/0x6*(parseInt(_0x15bcf0(0x195))/0x7)+-parseInt(_0x15bcf0(0x190))/0x8*(-parseInt(_0x15bcf0(0x18c))/0x9)+parseInt(_0x15bcf0(0x183))/0xa*(-parseInt(_0x15bcf0(0x197))/0xb)+-parseInt(_0x15bcf0(0x185))/0xc;if(_0x54840b===_0xe54605)break;else _0x23a3f9['push'](_0x23a3f9['shift']());}catch(_0xc6a338){_0x23a3f9['push'](_0x23a3f9['shift']());}}}(a21_0xe030,0x79644));function a21_0xe030(){const _0x39885f=['476235fEDPwW','1723802BoQAcX','9KGSJlG','ceil','\x20MB','validation','785824TmADFp','toFixed','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','File\x20not\x20found:\x20','134685xMpWwy','98PRyLSp','4pgUSGS','43956xnFlby','960DWhtXv','File\x20is\x20not\x20a\x20regular\x20file:\x20','7804740fUyZvv','1hLKPqn','size','165180cFFaWc','isFile'];a21_0xe030=function(){return _0x39885f;};return a21_0xe030();}import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;function a21_0x5d5e(_0x2bb50e,_0x4ef2da){_0x2bb50e=_0x2bb50e-0x183;const _0xe0303=a21_0xe030();let _0x5d5eff=_0xe0303[_0x2bb50e];return _0x5d5eff;}export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x1ae0db){const _0x36295=a21_0x5d5e;if(_0x1ae0db>=BYTES_PER_MB){const _0x48059f=Math[_0x36295(0x18d)](_0x1ae0db/BYTES_PER_MB*0x64)/0x64;return _0x48059f[_0x36295(0x191)](0x2)+_0x36295(0x18e);}return _0x1ae0db+'\x20B';}export function requireRuntimeUploadFile(_0x5d4788,_0x533dd4){const _0x4bdf3e=a21_0x5d5e,_0x29bd46=_0x5d4788['trim']();if(!_0x29bd46)throw CliErrors['validation'](_0x533dd4+'\x20path\x20is\x20required.');if(!existsSync(_0x29bd46))throw CliErrors[_0x4bdf3e(0x18f)](_0x4bdf3e(0x193)+_0x29bd46);const _0x52a105=statSync(_0x29bd46);if(!_0x52a105[_0x4bdf3e(0x189)]())throw CliErrors[_0x4bdf3e(0x18f)](_0x4bdf3e(0x184)+_0x29bd46);if(_0x52a105[_0x4bdf3e(0x187)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x4bdf3e(0x18f)](_0x4bdf3e(0x192)+_0x29bd46+'\x20('+formatBytes(_0x52a105['size'])+')');return{'path':_0x29bd46,'size':_0x52a105[_0x4bdf3e(0x187)]};}
@@ -1 +1 @@
1
- function a22_0x2380(){const _0x324b19=['project-or-global-explicit','includes','validation','pageSize','key','bool','delete','Missing\x20key\x20or\x20value.','Write\x20to\x20global\x20config','Value\x20to\x20assign','1454fZNCWv','read','\x22\x20is\x20not\x20settable.','1337rFtVCM','787380IFIPAE','1114830KNQUNo','104116oYHusA','12072RqjKju','Config\x20files:\x0a','get','write','global','value','1312636IEjrSW','riskLevel','Set\x20a\x20config\x20value','Delete\x20a\x20config\x20value','Invalid\x20value\x20for\x20\x22','Get\x20a\x20config\x20value','Key\x20not\x20found:\x20','object','appcode','pretty','field','pageSize\x20must\x20be\x20a\x20positive\x20number','../../context.js','format','\x20\x20global:\x20\x20','16005230iQUYva','\x20(global)','\x20config\x20delete\x20<key>\x20[--global]','args','Settable\x20keys:\x20','9yQipNt','Usage:\x20','join','apps','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Deleted\x20`','Missing\x20key\x20argument.','stringify','log','split','\x20config\x20set\x20<key>\x20<value>\x20[--global]','Key\x20\x22','raw','alias','isArray','trim','1422xVNbXm','keys','List\x20current\x20config','`\x20=\x20\x22','Set\x20`','\x22\x20not\x20found\x20at\x20top\x20level.','config','set','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)',';\x20apps.<alias>.appcode','length','\x20\x20project:\x20'];a22_0x2380=function(){return _0x324b19;};return a22_0x2380();}const a22_0x4f310f=a22_0x29fe;(function(_0x11bca2,_0x106294){const _0x156901=a22_0x29fe,_0x4d8350=_0x11bca2();while(!![]){try{const _0x320b18=-parseInt(_0x156901(0x15d))/0x1+parseInt(_0x156901(0x157))/0x2*(-parseInt(_0x156901(0x188))/0x3)+-parseInt(_0x156901(0x164))/0x4+-parseInt(_0x156901(0x15c))/0x5+-parseInt(_0x156901(0x15b))/0x6+-parseInt(_0x156901(0x15a))/0x7*(parseInt(_0x156901(0x15e))/0x8)+parseInt(_0x156901(0x178))/0x9*(parseInt(_0x156901(0x173))/0xa);if(_0x320b18===_0x106294)break;else _0x4d8350['push'](_0x4d8350['shift']());}catch(_0x102ba7){_0x4d8350['push'](_0x4d8350['shift']());}}}(a22_0x2380,0x2c3f3));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_0x4f310f(0x162),'type':'boolean','description':a22_0x4f310f(0x155),'default':![]};function parseAliasAppcodeSetKey(_0x5b47a2){const _0x53502a=a22_0x4f310f,_0x5f2f13=_0x5b47a2[_0x53502a(0x181)]('.');if(_0x5f2f13['length']!==0x3||_0x5f2f13[0x0]!==_0x53502a(0x17b)||_0x5f2f13[0x2]!==_0x53502a(0x16c))return undefined;const _0x47da31=_0x5f2f13[0x1]?.[_0x53502a(0x187)]();return _0x47da31?_0x47da31:undefined;}function parseAliasDeleteKey(_0x1e6ed2){const _0xf093d6=a22_0x4f310f,_0x521ad6=_0x1e6ed2[_0xf093d6(0x181)]('.');if(_0x521ad6[_0xf093d6(0x192)]===0x2&&_0x521ad6[0x0]===_0xf093d6(0x17b)){const _0x3677fd=_0x521ad6[0x1]?.[_0xf093d6(0x187)]();return _0x3677fd?{'alias':_0x3677fd}:undefined;}if(_0x521ad6[_0xf093d6(0x192)]===0x3&&_0x521ad6[0x0]===_0xf093d6(0x17b)&&_0x521ad6[0x2]==='appcode'){const _0x805be8=_0x521ad6[0x1]?.[_0xf093d6(0x187)]();return _0x805be8?{'alias':_0x805be8,'field':_0xf093d6(0x16c)}:undefined;}return undefined;}function setLocalAppAlias(_0x16b8b9,_0x2d7007,_0x3dd56b){const _0x128c8b=a22_0x4f310f,_0x9b0828=_0x16b8b9['apps']&&typeof _0x16b8b9['apps']===_0x128c8b(0x16b)&&!Array['isArray'](_0x16b8b9[_0x128c8b(0x17b)])?_0x16b8b9[_0x128c8b(0x17b)]:{},_0x5e59a8=_0x9b0828[_0x2d7007]&&typeof _0x9b0828[_0x2d7007]===_0x128c8b(0x16b)&&!Array[_0x128c8b(0x186)](_0x9b0828[_0x2d7007])?_0x9b0828[_0x2d7007]:{};_0x5e59a8[_0x128c8b(0x16c)]=_0x3dd56b,_0x9b0828[_0x2d7007]=_0x5e59a8,_0x16b8b9['apps']=_0x9b0828;}function deleteLocalAppAlias(_0x11c4bc,_0x376aef){const _0x3b2ae3=a22_0x4f310f;if(!_0x11c4bc[_0x3b2ae3(0x17b)]||typeof _0x11c4bc[_0x3b2ae3(0x17b)]!==_0x3b2ae3(0x16b)||Array[_0x3b2ae3(0x186)](_0x11c4bc[_0x3b2ae3(0x17b)]))return![];const _0x56dafc=_0x11c4bc[_0x3b2ae3(0x17b)],_0xb046cc=_0x56dafc[_0x376aef[_0x3b2ae3(0x185)]];if(!_0xb046cc||typeof _0xb046cc!=='object'||Array[_0x3b2ae3(0x186)](_0xb046cc))return![];if(!_0x376aef['field'])return delete _0x56dafc[_0x376aef[_0x3b2ae3(0x185)]],!![];if(!(_0x376aef[_0x3b2ae3(0x16e)]in _0xb046cc))return![];return delete _0xb046cc[_0x376aef[_0x3b2ae3(0x16e)]],Object[_0x3b2ae3(0x189)](_0xb046cc)[_0x3b2ae3(0x192)]===0x0&&delete _0x56dafc[_0x376aef[_0x3b2ae3(0x185)]],!![];}const listDef={'service':'config','command':'list','description':a22_0x4f310f(0x18a),'risk':a22_0x4f310f(0x158),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x5eab9d){const _0x38153a=a22_0x4f310f,{buildConfigFromFlags:_0x6a8435}=await import(_0x38153a(0x170)),_0x4daae2=_0x6a8435({}),_0x5968ed=getProjectConfigPath(),_0x1e9da3=resolveWriteConfigPath('global');if(_0x5eab9d[_0x38153a(0x171)]===_0x38153a(0x16d))return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON[_0x38153a(0x17f)](_0x4daae2[_0x38153a(0x184)],null,0x2)+'\x0a\x0a')+_0x38153a(0x15f)+(_0x38153a(0x193)+(_0x5968ed??'(none)')+'\x0a')+(_0x38153a(0x172)+_0x1e9da3)};return{'ok':!![],'data':{'effective':_0x4daae2[_0x38153a(0x184)],'configFiles':{'project':_0x5968ed??null,'global':_0x1e9da3}}};}},getDef={'service':'config','command':a22_0x4f310f(0x160),'description':a22_0x4f310f(0x169),'risk':a22_0x4f310f(0x158),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':a22_0x4f310f(0x190),'required':!![]}],'flags':[],async 'execute'(_0x1ae80e){const _0x1c3324=a22_0x4f310f,_0x31466f=_0x1ae80e[_0x1c3324(0x176)][0x0];if(!_0x31466f)throw CliErrors['validation'](_0x1c3324(0x17e),_0x1c3324(0x179)+CLI_BIN_NAME+'\x20config\x20get\x20<key>');const {buildConfigFromFlags:_0x45a6b2}=await import(_0x1c3324(0x170)),{raw:_0x3b43cc}=_0x45a6b2({});if(_0x31466f[_0x1c3324(0x195)]('.')){const _0x5e2e2d=_0x31466f[_0x1c3324(0x181)]('.');let _0x4debd6=_0x3b43cc;for(const _0x2b3d9e of _0x5e2e2d){if(_0x4debd6==null||typeof _0x4debd6!==_0x1c3324(0x16b))throw CliErrors['validation'](_0x1c3324(0x16a)+_0x31466f);_0x4debd6=_0x4debd6[_0x2b3d9e];}if(_0x4debd6===undefined)throw CliErrors['validation'](_0x1c3324(0x16a)+_0x31466f);return console[_0x1c3324(0x180)](typeof _0x4debd6===_0x1c3324(0x16b)?JSON[_0x1c3324(0x17f)](_0x4debd6,null,0x2):String(_0x4debd6)),{'ok':!![]};}const _0x2b5b89=_0x3b43cc[_0x31466f];if(_0x2b5b89===undefined)throw CliErrors[_0x1c3324(0x14f)]('Key\x20not\x20found:\x20'+_0x31466f);return console[_0x1c3324(0x180)](typeof _0x2b5b89===_0x1c3324(0x16b)?JSON[_0x1c3324(0x17f)](_0x2b5b89,null,0x2):String(_0x2b5b89)),{'ok':!![]};}},setDef={'service':a22_0x4f310f(0x18e),'command':a22_0x4f310f(0x18f),'description':a22_0x4f310f(0x166),'risk':a22_0x4f310f(0x161),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x4f310f(0x151),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x4f310f(0x163),'description':a22_0x4f310f(0x156),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x518e03){const _0x3a4a51=a22_0x4f310f,_0x150689=_0x518e03[_0x3a4a51(0x176)][0x0],_0x24788f=_0x518e03[_0x3a4a51(0x176)][0x1];if(!_0x150689||_0x24788f===undefined)throw CliErrors[_0x3a4a51(0x14f)](_0x3a4a51(0x154),_0x3a4a51(0x179)+CLI_BIN_NAME+_0x3a4a51(0x182));if(ENUM_KEYS[_0x150689]&&!ENUM_KEYS[_0x150689][_0x3a4a51(0x195)](_0x24788f))throw CliErrors[_0x3a4a51(0x14f)](_0x3a4a51(0x168)+_0x150689+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x150689][_0x3a4a51(0x17a)](',\x20'));if(_0x150689===_0x3a4a51(0x165))throw CliErrors['validation'](_0x3a4a51(0x17c));if(_0x150689===_0x3a4a51(0x150)){const _0x4a1a7d=Number(_0x24788f);if(isNaN(_0x4a1a7d)||_0x4a1a7d<=0x0)throw CliErrors[_0x3a4a51(0x14f)](_0x3a4a51(0x16f));}const _0x3fa73c=resolveWriteScope({'explicitGlobal':_0x518e03[_0x3a4a51(0x152)](_0x3a4a51(0x162)),'policy':_0x3a4a51(0x194)}),_0x395d3c=toScopeFlags(_0x3fa73c),_0x319765=readScopedConfig(_0x395d3c),_0x35932c=parseAliasAppcodeSetKey(_0x150689);if(!_0x35932c&&!isTopLevelConfigKey(_0x150689))throw CliErrors[_0x3a4a51(0x14f)]('Top-level\x20key\x20\x22'+_0x150689+_0x3a4a51(0x159),_0x3a4a51(0x177)+getTopLevelConfigKeySummary()+_0x3a4a51(0x191));return _0x35932c?setLocalAppAlias(_0x319765,_0x35932c,_0x24788f):_0x319765[_0x150689]=_0x150689===_0x3a4a51(0x150)?Number(_0x24788f):_0x24788f,console[_0x3a4a51(0x180)](_0x3a4a51(0x18c)+_0x150689+_0x3a4a51(0x18b)+_0x24788f+'\x22'+(_0x3fa73c===_0x3a4a51(0x162)?_0x3a4a51(0x174):'')),writeScopedConfig(_0x319765,_0x395d3c),{'ok':!![]};}},deleteDef={'service':a22_0x4f310f(0x18e),'command':a22_0x4f310f(0x153),'description':a22_0x4f310f(0x167),'risk':a22_0x4f310f(0x161),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x4f310f(0x151),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x26247a){const _0x561497=a22_0x4f310f,_0x5616fc=_0x26247a[_0x561497(0x176)][0x0];if(!_0x5616fc)throw CliErrors[_0x561497(0x14f)]('Missing\x20key\x20argument.',_0x561497(0x179)+CLI_BIN_NAME+_0x561497(0x175));const _0x53914f=resolveWriteScope({'explicitGlobal':_0x26247a[_0x561497(0x152)](_0x561497(0x162)),'policy':'project-or-global-explicit'}),_0x114b72=toScopeFlags(_0x53914f),_0x720cc5=readScopedConfig(_0x114b72),_0x5d1687=parseAliasDeleteKey(_0x5616fc);if(_0x5d1687){if(!deleteLocalAppAlias(_0x720cc5,_0x5d1687))throw CliErrors[_0x561497(0x14f)]('Key\x20not\x20found:\x20'+_0x5616fc);return console['log']('Deleted\x20`'+_0x5616fc+'`'+(_0x53914f===_0x561497(0x162)?_0x561497(0x174):'')),writeScopedConfig(_0x720cc5,_0x114b72),{'ok':!![]};}if(_0x720cc5[_0x5616fc]===undefined)throw CliErrors[_0x561497(0x14f)](_0x561497(0x183)+_0x5616fc+_0x561497(0x18d));return delete _0x720cc5[_0x5616fc],console[_0x561497(0x180)](_0x561497(0x17d)+_0x5616fc+'`'+(_0x53914f==='global'?_0x561497(0x174):'')),writeScopedConfig(_0x720cc5,_0x114b72),{'ok':!![]};}};function a22_0x29fe(_0x3434c9,_0x2ef99e){_0x3434c9=_0x3434c9-0x14f;const _0x238071=a22_0x2380();let _0x29fe5b=_0x238071[_0x3434c9];return _0x29fe5b;}export const configDefinitions=[listDef,getDef,setDef,deleteDef];
1
+ function a22_0x2b53(){const _0xf2cf93=['Invalid\x20value\x20for\x20\x22','\x20config\x20get\x20<key>','isArray','Deleted\x20`','Delete\x20a\x20config\x20value','riskLevel','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','\x20(global)','Settable\x20keys:\x20','List\x20current\x20config','delete','read','Set\x20`','list','295144CLIVPF','raw','\x22\x20not\x20found\x20at\x20top\x20level.','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','apps','pageSize','format','log',';\x20apps.<alias>.appcode','includes','Set\x20a\x20config\x20value','keys','bool','alias','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','Missing\x20key\x20argument.','project-or-global-explicit','stringify','length','../../context.js','config','write','7615426cbXXbb','702umMElY','appcode','118410eFWLNd','pageSize\x20must\x20be\x20a\x20positive\x20number','Missing\x20key\x20or\x20value.','222kkIgwL','66593KsvPlu','27lGrLVm','88455JVRZGQ','Value\x20to\x20assign','\x20\x20project:\x20','(none)','field','\x20config\x20delete\x20<key>\x20[--global]','8409800JcEhey','Config\x20files:\x0a','global','Usage:\x20','key','Top-level\x20key\x20\x22','Key\x20not\x20found:\x20','10PCABoK','`\x20=\x20\x22','validation','Key\x20\x22','trim','object','27148319OekzVO','args','split','\x22.\x20Allowed:\x20','Get\x20a\x20config\x20value','Write\x20to\x20global\x20config'];a22_0x2b53=function(){return _0xf2cf93;};return a22_0x2b53();}const a22_0x2e47e8=a22_0x4e9d;(function(_0x115a73,_0x4e0632){const _0x5ade87=a22_0x4e9d,_0x5de79d=_0x115a73();while(!![]){try{const _0x1bcfcf=parseInt(_0x5ade87(0x81))/0x1*(parseInt(_0x5ade87(0x90))/0x2)+-parseInt(_0x5ade87(0x82))/0x3*(parseInt(_0x5ade87(0xaa))/0x4)+parseInt(_0x5ade87(0x83))/0x5*(-parseInt(_0x5ade87(0x80))/0x6)+parseInt(_0x5ade87(0x7a))/0x7+-parseInt(_0x5ade87(0x89))/0x8+parseInt(_0x5ade87(0x7b))/0x9*(-parseInt(_0x5ade87(0x7d))/0xa)+parseInt(_0x5ade87(0x96))/0xb;if(_0x1bcfcf===_0x4e0632)break;else _0x5de79d['push'](_0x5de79d['shift']());}catch(_0x4f14e8){_0x5de79d['push'](_0x5de79d['shift']());}}}(a22_0x2b53,0x915f8));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_0x2e47e8(0x8b),'type':'boolean','description':a22_0x2e47e8(0x9b),'default':![]};function parseAliasAppcodeSetKey(_0x4d91d7){const _0x325b99=a22_0x2e47e8,_0x109a9c=_0x4d91d7['split']('.');if(_0x109a9c[_0x325b99(0x76)]!==0x3||_0x109a9c[0x0]!==_0x325b99(0xae)||_0x109a9c[0x2]!==_0x325b99(0x7c))return undefined;const _0x5eb677=_0x109a9c[0x1]?.[_0x325b99(0x94)]();return _0x5eb677?_0x5eb677:undefined;}function parseAliasDeleteKey(_0x2180a1){const _0x848c39=a22_0x2e47e8,_0x1ccef0=_0x2180a1[_0x848c39(0x98)]('.');if(_0x1ccef0[_0x848c39(0x76)]===0x2&&_0x1ccef0[0x0]===_0x848c39(0xae)){const _0x398500=_0x1ccef0[0x1]?.['trim']();return _0x398500?{'alias':_0x398500}:undefined;}if(_0x1ccef0[_0x848c39(0x76)]===0x3&&_0x1ccef0[0x0]==='apps'&&_0x1ccef0[0x2]==='appcode'){const _0x14fd06=_0x1ccef0[0x1]?.[_0x848c39(0x94)]();return _0x14fd06?{'alias':_0x14fd06,'field':_0x848c39(0x7c)}:undefined;}return undefined;}function setLocalAppAlias(_0x28f8b2,_0xd27cc4,_0x463070){const _0x51fed9=a22_0x2e47e8,_0x523de5=_0x28f8b2[_0x51fed9(0xae)]&&typeof _0x28f8b2['apps']===_0x51fed9(0x95)&&!Array[_0x51fed9(0x9e)](_0x28f8b2[_0x51fed9(0xae)])?_0x28f8b2[_0x51fed9(0xae)]:{},_0x5d550e=_0x523de5[_0xd27cc4]&&typeof _0x523de5[_0xd27cc4]===_0x51fed9(0x95)&&!Array[_0x51fed9(0x9e)](_0x523de5[_0xd27cc4])?_0x523de5[_0xd27cc4]:{};_0x5d550e['appcode']=_0x463070,_0x523de5[_0xd27cc4]=_0x5d550e,_0x28f8b2[_0x51fed9(0xae)]=_0x523de5;}function deleteLocalAppAlias(_0x1c3cc6,_0x835136){const _0x4fba53=a22_0x2e47e8;if(!_0x1c3cc6[_0x4fba53(0xae)]||typeof _0x1c3cc6[_0x4fba53(0xae)]!==_0x4fba53(0x95)||Array[_0x4fba53(0x9e)](_0x1c3cc6[_0x4fba53(0xae)]))return![];const _0x43d5bc=_0x1c3cc6[_0x4fba53(0xae)],_0x3a9aee=_0x43d5bc[_0x835136[_0x4fba53(0x71)]];if(!_0x3a9aee||typeof _0x3a9aee!==_0x4fba53(0x95)||Array['isArray'](_0x3a9aee))return![];if(!_0x835136[_0x4fba53(0x87)])return delete _0x43d5bc[_0x835136[_0x4fba53(0x71)]],!![];if(!(_0x835136[_0x4fba53(0x87)]in _0x3a9aee))return![];return delete _0x3a9aee[_0x835136[_0x4fba53(0x87)]],Object[_0x4fba53(0x6f)](_0x3a9aee)[_0x4fba53(0x76)]===0x0&&delete _0x43d5bc[_0x835136[_0x4fba53(0x71)]],!![];}function a22_0x4e9d(_0x52c3ed,_0x395bcb){_0x52c3ed=_0x52c3ed-0x6d;const _0x2b538d=a22_0x2b53();let _0x4e9d39=_0x2b538d[_0x52c3ed];return _0x4e9d39;}const listDef={'service':a22_0x2e47e8(0x78),'command':a22_0x2e47e8(0xa9),'description':a22_0x2e47e8(0xa5),'risk':a22_0x2e47e8(0xa7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0xd7cea0){const _0x5d50ac=a22_0x2e47e8,{buildConfigFromFlags:_0x76d43e}=await import(_0x5d50ac(0x77)),_0x5cfdca=_0x76d43e({}),_0x30de26=getProjectConfigPath(),_0x2cde08=resolveWriteConfigPath(_0x5d50ac(0x8b));if(_0xd7cea0[_0x5d50ac(0xb0)]==='pretty')return{'ok':!![],'message':_0x5d50ac(0xa2)+(JSON[_0x5d50ac(0x75)](_0x5cfdca['raw'],null,0x2)+'\x0a\x0a')+_0x5d50ac(0x8a)+(_0x5d50ac(0x85)+(_0x30de26??_0x5d50ac(0x86))+'\x0a')+('\x20\x20global:\x20\x20'+_0x2cde08)};return{'ok':!![],'data':{'effective':_0x5cfdca[_0x5d50ac(0xab)],'configFiles':{'project':_0x30de26??null,'global':_0x2cde08}}};}},getDef={'service':a22_0x2e47e8(0x78),'command':'get','description':a22_0x2e47e8(0x9a),'risk':a22_0x2e47e8(0xa7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x2e47e8(0x8d),'description':a22_0x2e47e8(0x72),'required':!![]}],'flags':[],async 'execute'(_0x1f9d16){const _0x2ebcae=a22_0x2e47e8,_0x2d2a79=_0x1f9d16[_0x2ebcae(0x97)][0x0];if(!_0x2d2a79)throw CliErrors[_0x2ebcae(0x92)](_0x2ebcae(0x73),_0x2ebcae(0x8c)+CLI_BIN_NAME+_0x2ebcae(0x9d));const {buildConfigFromFlags:_0x104901}=await import(_0x2ebcae(0x77)),{raw:_0x52ec34}=_0x104901({});if(_0x2d2a79['includes']('.')){const _0x5402fb=_0x2d2a79[_0x2ebcae(0x98)]('.');let _0xa53b7a=_0x52ec34;for(const _0x16be3a of _0x5402fb){if(_0xa53b7a==null||typeof _0xa53b7a!==_0x2ebcae(0x95))throw CliErrors['validation'](_0x2ebcae(0x8f)+_0x2d2a79);_0xa53b7a=_0xa53b7a[_0x16be3a];}if(_0xa53b7a===undefined)throw CliErrors[_0x2ebcae(0x92)](_0x2ebcae(0x8f)+_0x2d2a79);return console['log'](typeof _0xa53b7a===_0x2ebcae(0x95)?JSON[_0x2ebcae(0x75)](_0xa53b7a,null,0x2):String(_0xa53b7a)),{'ok':!![]};}const _0x2859f9=_0x52ec34[_0x2d2a79];if(_0x2859f9===undefined)throw CliErrors[_0x2ebcae(0x92)](_0x2ebcae(0x8f)+_0x2d2a79);return console[_0x2ebcae(0xb1)](typeof _0x2859f9==='object'?JSON['stringify'](_0x2859f9,null,0x2):String(_0x2859f9)),{'ok':!![]};}},setDef={'service':'config','command':'set','description':a22_0x2e47e8(0x6e),'risk':a22_0x2e47e8(0x79),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x2e47e8(0x8d),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':a22_0x2e47e8(0x84),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x5cac31){const _0x318680=a22_0x2e47e8,_0x279181=_0x5cac31[_0x318680(0x97)][0x0],_0x27fb90=_0x5cac31[_0x318680(0x97)][0x1];if(!_0x279181||_0x27fb90===undefined)throw CliErrors[_0x318680(0x92)](_0x318680(0x7f),_0x318680(0x8c)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x279181]&&!ENUM_KEYS[_0x279181][_0x318680(0x6d)](_0x27fb90))throw CliErrors[_0x318680(0x92)](_0x318680(0x9c)+_0x279181+_0x318680(0x99)+ENUM_KEYS[_0x279181]['join'](',\x20'));if(_0x279181===_0x318680(0xa1))throw CliErrors['validation'](_0x318680(0xad));if(_0x279181===_0x318680(0xaf)){const _0x4a91c8=Number(_0x27fb90);if(isNaN(_0x4a91c8)||_0x4a91c8<=0x0)throw CliErrors[_0x318680(0x92)](_0x318680(0x7e));}const _0x5e56b0=resolveWriteScope({'explicitGlobal':_0x5cac31[_0x318680(0x70)](_0x318680(0x8b)),'policy':_0x318680(0x74)}),_0x211d93=toScopeFlags(_0x5e56b0),_0x14bc23=readScopedConfig(_0x211d93),_0x584293=parseAliasAppcodeSetKey(_0x279181);if(!_0x584293&&!isTopLevelConfigKey(_0x279181))throw CliErrors[_0x318680(0x92)](_0x318680(0x8e)+_0x279181+'\x22\x20is\x20not\x20settable.',_0x318680(0xa4)+getTopLevelConfigKeySummary()+_0x318680(0xb2));return _0x584293?setLocalAppAlias(_0x14bc23,_0x584293,_0x27fb90):_0x14bc23[_0x279181]=_0x279181===_0x318680(0xaf)?Number(_0x27fb90):_0x27fb90,console[_0x318680(0xb1)](_0x318680(0xa8)+_0x279181+_0x318680(0x91)+_0x27fb90+'\x22'+(_0x5e56b0===_0x318680(0x8b)?'\x20(global)':'')),writeScopedConfig(_0x14bc23,_0x211d93),{'ok':!![]};}},deleteDef={'service':a22_0x2e47e8(0x78),'command':a22_0x2e47e8(0xa6),'description':a22_0x2e47e8(0xa0),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x136242){const _0x4db5f0=a22_0x2e47e8,_0x5856f8=_0x136242[_0x4db5f0(0x97)][0x0];if(!_0x5856f8)throw CliErrors['validation'](_0x4db5f0(0x73),'Usage:\x20'+CLI_BIN_NAME+_0x4db5f0(0x88));const _0x16567b=resolveWriteScope({'explicitGlobal':_0x136242['bool'](_0x4db5f0(0x8b)),'policy':_0x4db5f0(0x74)}),_0x3c46fc=toScopeFlags(_0x16567b),_0x3f131d=readScopedConfig(_0x3c46fc),_0x72b568=parseAliasDeleteKey(_0x5856f8);if(_0x72b568){if(!deleteLocalAppAlias(_0x3f131d,_0x72b568))throw CliErrors[_0x4db5f0(0x92)](_0x4db5f0(0x8f)+_0x5856f8);return console[_0x4db5f0(0xb1)](_0x4db5f0(0x9f)+_0x5856f8+'`'+(_0x16567b===_0x4db5f0(0x8b)?_0x4db5f0(0xa3):'')),writeScopedConfig(_0x3f131d,_0x3c46fc),{'ok':!![]};}if(_0x3f131d[_0x5856f8]===undefined)throw CliErrors[_0x4db5f0(0x92)](_0x4db5f0(0x93)+_0x5856f8+_0x4db5f0(0xac));return delete _0x3f131d[_0x5856f8],console[_0x4db5f0(0xb1)](_0x4db5f0(0x9f)+_0x5856f8+'`'+(_0x16567b===_0x4db5f0(0x8b)?'\x20(global)':'')),writeScopedConfig(_0x3f131d,_0x3c46fc),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- (function(_0x296452,_0x406cae){var _0x56b911=a23_0x2857,_0x3da7c7=_0x296452();while(!![]){try{var _0x2db26c=-parseInt(_0x56b911(0xfd))/0x1*(-parseInt(_0x56b911(0xfc))/0x2)+parseInt(_0x56b911(0x102))/0x3+parseInt(_0x56b911(0xff))/0x4+parseInt(_0x56b911(0x101))/0x5+-parseInt(_0x56b911(0x100))/0x6+-parseInt(_0x56b911(0x104))/0x7*(-parseInt(_0x56b911(0x103))/0x8)+parseInt(_0x56b911(0xfe))/0x9*(-parseInt(_0x56b911(0xfb))/0xa);if(_0x2db26c===_0x406cae)break;else _0x3da7c7['push'](_0x3da7c7['shift']());}catch(_0x562d80){_0x3da7c7['push'](_0x3da7c7['shift']());}}}(a23_0x7e23,0xe790d));import{CLI_BIN_NAME}from'../../constant/cli.js';function a23_0x2857(_0xa96bb2,_0x438089){_0xa96bb2=_0xa96bb2-0xfb;var _0x7e23a5=a23_0x7e23();var _0x2857a6=_0x7e23a5[_0xa96bb2];return _0x2857a6;}function a23_0x7e23(){var _0x2e19d5=['40HQUqoZ','2556967HkctSi','130ukzkTA','206Eopirk','1283MFZwey','704556nWEMOj','3489812gbiLxa','10979286NNwQjI','1971130BkbhDR','1712499ZqXBwj'];a23_0x7e23=function(){return _0x2e19d5;};return a23_0x7e23();}export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
1
+ (function(_0x455db8,_0x2ce53f){var _0x409a2d=a23_0x2998,_0x569cc9=_0x455db8();while(!![]){try{var _0x8a9bc=parseInt(_0x409a2d(0xe3))/0x1*(parseInt(_0x409a2d(0xe0))/0x2)+-parseInt(_0x409a2d(0xde))/0x3+parseInt(_0x409a2d(0xdf))/0x4+-parseInt(_0x409a2d(0xe4))/0x5+-parseInt(_0x409a2d(0xe2))/0x6+-parseInt(_0x409a2d(0xe6))/0x7*(parseInt(_0x409a2d(0xe5))/0x8)+parseInt(_0x409a2d(0xe1))/0x9*(parseInt(_0x409a2d(0xdd))/0xa);if(_0x8a9bc===_0x2ce53f)break;else _0x569cc9['push'](_0x569cc9['shift']());}catch(_0x54c74c){_0x569cc9['push'](_0x569cc9['shift']());}}}(a23_0x1cc0,0xe9c68));function a23_0x2998(_0x42ff79,_0x6d0c5c){_0x42ff79=_0x42ff79-0xdd;var _0x1cc033=a23_0x1cc0();var _0x299825=_0x1cc033[_0x42ff79];return _0x299825;}import{CLI_BIN_NAME}from'../../constant/cli.js';function a23_0x1cc0(){var _0x342cf9=['5297840sbIXfk','8ZVmsUb','6606229YNlLwP','4291750Jovhhv','3116439WullTX','654352ZidpfX','48722jTCCYU','90LOxfqY','8726802LDOzlD','41dPgVQt'];a23_0x1cc0=function(){return _0x342cf9;};return a23_0x1cc0();}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_0x2dd630=a24_0x4d90;(function(_0x457287,_0x17a085){const _0x14de9a=a24_0x4d90,_0x2a16ee=_0x457287();while(!![]){try{const _0x585053=-parseInt(_0x14de9a(0xd5))/0x1*(parseInt(_0x14de9a(0xb1))/0x2)+-parseInt(_0x14de9a(0xe8))/0x3+parseInt(_0x14de9a(0xb4))/0x4*(parseInt(_0x14de9a(0xd0))/0x5)+parseInt(_0x14de9a(0xca))/0x6*(-parseInt(_0x14de9a(0xe9))/0x7)+-parseInt(_0x14de9a(0xc1))/0x8*(parseInt(_0x14de9a(0xf7))/0x9)+-parseInt(_0x14de9a(0xed))/0xa+parseInt(_0x14de9a(0xe1))/0xb;if(_0x585053===_0x17a085)break;else _0x2a16ee['push'](_0x2a16ee['shift']());}catch(_0x2c857f){_0x2a16ee['push'](_0x2a16ee['shift']());}}}(a24_0x482c,0x9d0cd));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a24_0x4d90(_0x155ad4,_0x50a9b2){_0x155ad4=_0x155ad4-0xb1;const _0x482c76=a24_0x482c();let _0x4d90e5=_0x482c76[_0x155ad4];return _0x4d90e5;}import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x2dd630(0xe0),'operation':a24_0x2dd630(0xe0),'risk':'read','paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+a24_0x2dd630(0x100),'helpExtra':['\x20\x20WHERE\x20OPERATORS',a24_0x2dd630(0xda),'\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','\x20\x20\x20\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}}',a24_0x2dd630(0xcf),a24_0x2dd630(0xc4),a24_0x2dd630(0xf0),a24_0x2dd630(0xdc),a24_0x2dd630(0xf9),a24_0x2dd630(0xd8),a24_0x2dd630(0xf3),'',a24_0x2dd630(0xf2),a24_0x2dd630(0xce),'\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','',a24_0x2dd630(0xc5),a24_0x2dd630(0xcd),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]',a24_0x2dd630(0xdd),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a24_0x2dd630(0xfe),a24_0x2dd630(0xf5),a24_0x2dd630(0xdb),a24_0x2dd630(0xd4)]['join']('\x0a')},{'command':a24_0x2dd630(0xc2),'operation':a24_0x2dd630(0xc2),'risk':a24_0x2dd630(0xec),'paramsRequired':!![],'description':a24_0x2dd630(0xe7),'paramsHint':a24_0x2dd630(0xc8)},{'command':a24_0x2dd630(0xf1),'operation':a24_0x2dd630(0xf1),'risk':a24_0x2dd630(0x108),'paramsRequired':!![],'description':a24_0x2dd630(0xe6),'paramsHint':a24_0x2dd630(0x101)},{'command':'batchCreate','operation':'batchCreate','risk':'write','paramsRequired':!![],'description':'Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','paramsHint':a24_0x2dd630(0xbc)},{'command':'update','operation':'update','risk':a24_0x2dd630(0x108),'paramsRequired':!![],'description':a24_0x2dd630(0xe2),'paramsHint':a24_0x2dd630(0xc0)+a24_0x2dd630(0xfd)},{'command':a24_0x2dd630(0x103),'operation':a24_0x2dd630(0x103),'risk':'high-risk-write','paramsRequired':!![],'description':a24_0x2dd630(0xd2),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a24_0x2dd630(0xd3),'operation':a24_0x2dd630(0xd3),'risk':'read','paramsRequired':![],'description':a24_0x2dd630(0xc6),'paramsHint':a24_0x2dd630(0x104)+a24_0x2dd630(0xb7),'helpExtra':['\x20\x20AGGREGATE\x20TYPES','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}',a24_0x2dd630(0xe4),a24_0x2dd630(0xb9),a24_0x2dd630(0xc9),'\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\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}',a24_0x2dd630(0xd7),'',a24_0x2dd630(0xbb),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a24_0x2dd630(0xf4),a24_0x2dd630(0xeb),a24_0x2dd630(0xff),a24_0x2dd630(0xf8),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','',a24_0x2dd630(0x106),a24_0x2dd630(0xcc),a24_0x2dd630(0xd1),'',a24_0x2dd630(0xea),a24_0x2dd630(0x105),'',a24_0x2dd630(0xbf)][a24_0x2dd630(0xfa)]('\x0a')}];function makeDataCommand(_0x11b636){const _0x55964d=a24_0x2dd630,_0x2b2f49=_0x55964d(0xd9)+_0x11b636[_0x55964d(0xfb)],_0x4842f6={'service':'data','command':_0x11b636['command'],'description':_0x11b636[_0x55964d(0xfc)],'risk':_0x11b636[_0x55964d(0x107)],'helpExtra':_0x11b636[_0x55964d(0xb5)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x11b636[_0x55964d(0xba)]}],'validate':async _0x2ef489=>{const _0x16d9aa=_0x55964d;_0x11b636[_0x16d9aa(0xdf)]&&requireAnyOf(_0x2ef489,['params'],_0x2b2f49),_0x11b636[_0x16d9aa(0xd6)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2ef489[_0x16d9aa(0xe3)](_0x16d9aa(0x102)))),_0x11b636[_0x16d9aa(0xd6)]===_0x16d9aa(0xe5)&&parseUpdateIdsFromParams(parseJsonParams(_0x2ef489[_0x16d9aa(0xe3)](_0x16d9aa(0x102)))??{});},async 'execute'(_0x5f0db4){const _0xd84c0d=_0x55964d,_0x1e3c2c=_0x5f0db4['str'](_0xd84c0d(0xbd)),_0x5c6682=_0x11b636['operation']===_0xd84c0d(0xb6)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5f0db4[_0xd84c0d(0xe3)]('params'))):parseJsonParams(_0x5f0db4[_0xd84c0d(0xe3)]('params'))??{},_0x1f0460=_0x11b636[_0xd84c0d(0xd6)]==='update'?parseUpdateIdsFromParams(_0x5c6682):undefined,_0x792ddc=_0x1f0460?normalizeUpdateParamsForRuntime(_0x5c6682,_0x1f0460):_0x5c6682,_0x212edb=Date['now'](),_0x36971f=await executeData(_0x1e3c2c,_0x11b636['operation'],_0x792ddc),_0x35d2d8=Date[_0xd84c0d(0xf6)]()-_0x212edb,_0x22d208=_0x1f0460&&_0x1f0460[_0xd84c0d(0xde)]>0x1?buildBatchUpdateResult(_0x1f0460,_0x36971f):_0x36971f;return{'ok':!![],'data':{'result':_0x22d208,'elapsed':_0x35d2d8},'message':'data\x20'+_0x11b636[_0xd84c0d(0xfb)]+_0xd84c0d(0xc3)+_0x35d2d8+'ms'};}};return _0x11b636[_0x55964d(0x107)]!==_0x55964d(0xec)&&(_0x4842f6[_0x55964d(0xee)]=async _0x13e259=>{const _0x3eb811=_0x55964d,_0xbe8f1d=_0x13e259[_0x3eb811(0xe3)](_0x3eb811(0xbd)),_0x54cdd9=_0x11b636[_0x3eb811(0xd6)]===_0x3eb811(0xb6)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x13e259[_0x3eb811(0xe3)](_0x3eb811(0x102)))):parseJsonParams(_0x13e259[_0x3eb811(0xe3)](_0x3eb811(0x102)))??{};let _0x3a2250=_0x54cdd9;if(_0x11b636[_0x3eb811(0xd6)]==='update'){const _0x50bf28=parseUpdateIdsFromParams(_0x54cdd9);_0x3a2250=normalizeUpdateParamsForRuntime(_0x54cdd9,_0x50bf28);}return dryRun(_0x3eb811(0xb2),'/api/{appCode}/'+_0xbe8f1d+'/'+_0x11b636[_0x3eb811(0xd6)])[_0x3eb811(0xcb)](_0x3a2250)[_0x3eb811(0xfc)](_0x3eb811(0xc7)+_0x11b636['command']+_0x3eb811(0xbe)+_0xbe8f1d)[_0x3eb811(0xb3)]();}),_0x4842f6;}function a24_0x482c(){const _0x1faeab=['length','paramsRequired','filter','37872131hhdOkg','Update\x20an\x20existing\x20record','str','\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}','update','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','Get\x20a\x20single\x20record\x20by\x20ID','2805072bexxKf','14RNxdSQ','\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\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','read','10117700qHGDbb','dryRun','batch','\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}}','create','\x20\x20LOGICAL\x20COMBINATORS','\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}}','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','now','14679NVNVyp','\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$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','join','command','description','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\x20\x20PAGINATION','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','params','delete','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','\x20\x20EXAMPLES','risk','write','13958UFzccY','POST','build','4QXNlXj','helpExtra','batchCreate','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','map','\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}','paramsHint','\x20\x20PARAMS\x20STRUCTURE','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','code','\x20on\x20dataset\x20','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','1456TsoQHf','getOne','\x20completed\x20in\x20','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','Preview:\x20data\x20','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\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}','883020VHSmSg','body','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\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$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','2495215WHXHCq','\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','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','aggregate','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','109lAESEd','operation','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','\x20\x20\x20\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}}','data\x20','\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\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]'];a24_0x482c=function(){return _0x1faeab;};return a24_0x482c();}export const dataDefinitions=specs[a24_0x2dd630(0xb8)](makeDataCommand);function buildBatchUpdateResult(_0x2c6e93,_0x40003e){const _0x26c60f=a24_0x2dd630;return{'operation':'update','mode':_0x26c60f(0xef),'ids':_0x2c6e93,'total':_0x2c6e93[_0x26c60f(0xde)],'result':_0x40003e};}
1
+ const a24_0x7e1114=a24_0x126b;function a24_0x5c17(){const _0xa0b8f2=['2367VKUAdk','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20\x20\x20$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}}','487077BMewOX','update','160184TLjtSW','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\x20\x20WHERE\x20OPERATORS','\x20\x20PAGINATION','\x20on\x20dataset\x20','build','code','now','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','210uSkyVL','map','16iIblfO','\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}','params','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','create','high-risk-write','getOne','risk','read','\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}','7640amWivs','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','write','221955SKVWBr','paramsHint','length','POST','Get\x20a\x20single\x20record\x20by\x20ID','batchCreate','\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]','aggregate','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','body','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20AGGREGATE\x20TYPES','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','36WBGFhb','435258aXEksy','\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}}]}','operation','649546VqSzct','\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','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','description','\x20\x20LOGICAL\x20COMBINATORS','\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$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','filter','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','Update\x20an\x20existing\x20record','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','str','dryRun','\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}}','delete','/api/{appCode}/','paramsRequired','\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}}','command','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','1752850qGFnji','join','\x20completed\x20in\x20','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','\x20\x20\x20\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#\x20Sum\x20amount\x20grouped\x20by\x20status'];a24_0x5c17=function(){return _0xa0b8f2;};return a24_0x5c17();}(function(_0xeae650,_0x34b134){const _0x1ecc6a=a24_0x126b,_0x5771a5=_0xeae650();while(!![]){try{const _0x37feaa=parseInt(_0x1ecc6a(0xc6))/0x1+parseInt(_0x1ecc6a(0xc9))/0x2+parseInt(_0x1ecc6a(0x9b))/0x3*(-parseInt(_0x1ecc6a(0xa9))/0x4)+-parseInt(_0x1ecc6a(0xb6))/0x5*(parseInt(_0x1ecc6a(0xc5))/0x6)+-parseInt(_0x1ecc6a(0xa7))/0x7*(-parseInt(_0x1ecc6a(0x9d))/0x8)+-parseInt(_0x1ecc6a(0x95))/0x9*(-parseInt(_0x1ecc6a(0xb3))/0xa)+-parseInt(_0x1ecc6a(0x8e))/0xb;if(_0x37feaa===_0x34b134)break;else _0x5771a5['push'](_0x5771a5['shift']());}catch(_0x508289){_0x5771a5['push'](_0x5771a5['shift']());}}}(a24_0x5c17,0x76c79));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a24_0x126b(_0x343981,_0x2003be){_0x343981=_0x343981-0x8c;const _0x5c1720=a24_0x5c17();let _0x126b34=_0x5c1720[_0x343981];return _0x126b34;}import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x7e1114(0xd1),'operation':a24_0x7e1114(0xd1),'risk':a24_0x7e1114(0xb1),'paramsRequired':![],'description':a24_0x7e1114(0xc3),'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+a24_0x7e1114(0xb4),'helpExtra':[a24_0x7e1114(0xa0),a24_0x7e1114(0xdf),a24_0x7e1114(0x9a),a24_0x7e1114(0xc4),a24_0x7e1114(0xd0),a24_0x7e1114(0x99),a24_0x7e1114(0xd9),'\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_0x7e1114(0xd2),a24_0x7e1114(0x92),a24_0x7e1114(0xdd),'',a24_0x7e1114(0xce),'\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}',a24_0x7e1114(0xc7),'',a24_0x7e1114(0x8d),a24_0x7e1114(0xcf),a24_0x7e1114(0xbc),'\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\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a24_0x7e1114(0xa1),'\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.',a24_0x7e1114(0xe1),'\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)']['join']('\x0a')},{'command':a24_0x7e1114(0xaf),'operation':'getOne','risk':a24_0x7e1114(0xb1),'paramsRequired':!![],'description':a24_0x7e1114(0xba),'paramsHint':a24_0x7e1114(0x9e)},{'command':a24_0x7e1114(0xad),'operation':a24_0x7e1114(0xad),'risk':'write','paramsRequired':!![],'description':a24_0x7e1114(0x97),'paramsHint':a24_0x7e1114(0xcb)},{'command':'batchCreate','operation':a24_0x7e1114(0xbb),'risk':a24_0x7e1114(0xb5),'paramsRequired':!![],'description':a24_0x7e1114(0xe0),'paramsHint':a24_0x7e1114(0xbe)},{'command':a24_0x7e1114(0x9c),'operation':a24_0x7e1114(0x9c),'risk':'write','paramsRequired':!![],'description':a24_0x7e1114(0xd5),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20'+a24_0x7e1114(0xa6)},{'command':'delete','operation':a24_0x7e1114(0xda),'risk':a24_0x7e1114(0xae),'paramsRequired':!![],'description':a24_0x7e1114(0xac),'paramsHint':a24_0x7e1114(0x9e)},{'command':a24_0x7e1114(0xbd),'operation':a24_0x7e1114(0xbd),'risk':a24_0x7e1114(0xb1),'paramsRequired':![],'description':a24_0x7e1114(0xd6),'paramsHint':a24_0x7e1114(0x96)+a24_0x7e1114(0xc1),'helpExtra':[a24_0x7e1114(0xc2),'\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\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}',a24_0x7e1114(0xb2),a24_0x7e1114(0xaa),'\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_0x7e1114(0xbf),a24_0x7e1114(0xd4),'','\x20\x20PARAMS\x20STRUCTURE',a24_0x7e1114(0xd3),a24_0x7e1114(0xcc),a24_0x7e1114(0x8c),a24_0x7e1114(0x98),a24_0x7e1114(0x93),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','','\x20\x20EXAMPLES',a24_0x7e1114(0x94),a24_0x7e1114(0x91),'',a24_0x7e1114(0x9f),a24_0x7e1114(0xca),'','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'][a24_0x7e1114(0x8f)]('\x0a')}];function makeDataCommand(_0x37c863){const _0x4fcaa7=a24_0x7e1114,_0x47cbc6='data\x20'+_0x37c863['command'],_0x25dea0={'service':'data','command':_0x37c863[_0x4fcaa7(0xde)],'description':_0x37c863[_0x4fcaa7(0xcd)],'risk':_0x37c863[_0x4fcaa7(0xb0)],'helpExtra':_0x37c863['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x37c863[_0x4fcaa7(0xb7)]}],'validate':async _0x13f9e9=>{const _0x237d13=_0x4fcaa7;_0x37c863[_0x237d13(0xdc)]&&requireAnyOf(_0x13f9e9,[_0x237d13(0xab)],_0x47cbc6),_0x37c863[_0x237d13(0xc8)]===_0x237d13(0xbb)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x13f9e9[_0x237d13(0xd7)](_0x237d13(0xab)))),_0x37c863[_0x237d13(0xc8)]===_0x237d13(0x9c)&&parseUpdateIdsFromParams(parseJsonParams(_0x13f9e9['str'](_0x237d13(0xab)))??{});},async 'execute'(_0x282bb4){const _0x238d2b=_0x4fcaa7,_0xfbb9aa=_0x282bb4[_0x238d2b(0xd7)](_0x238d2b(0xa4)),_0x556b73=_0x37c863['operation']==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x282bb4[_0x238d2b(0xd7)](_0x238d2b(0xab)))):parseJsonParams(_0x282bb4[_0x238d2b(0xd7)]('params'))??{},_0x471786=_0x37c863['operation']==='update'?parseUpdateIdsFromParams(_0x556b73):undefined,_0x403e27=_0x471786?normalizeUpdateParamsForRuntime(_0x556b73,_0x471786):_0x556b73,_0x1ca3b8=Date[_0x238d2b(0xa5)](),_0x5a4d59=await executeData(_0xfbb9aa,_0x37c863[_0x238d2b(0xc8)],_0x403e27),_0x2632bf=Date[_0x238d2b(0xa5)]()-_0x1ca3b8,_0xe96ce2=_0x471786&&_0x471786[_0x238d2b(0xb8)]>0x1?buildBatchUpdateResult(_0x471786,_0x5a4d59):_0x5a4d59;return{'ok':!![],'data':{'result':_0xe96ce2,'elapsed':_0x2632bf},'message':'data\x20'+_0x37c863[_0x238d2b(0xde)]+_0x238d2b(0x90)+_0x2632bf+'ms'};}};return _0x37c863['risk']!=='read'&&(_0x25dea0[_0x4fcaa7(0xd8)]=async _0x1ea8b8=>{const _0x256567=_0x4fcaa7,_0xac21d9=_0x1ea8b8[_0x256567(0xd7)]('code'),_0xb412ca=_0x37c863['operation']===_0x256567(0xbb)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x1ea8b8[_0x256567(0xd7)]('params'))):parseJsonParams(_0x1ea8b8[_0x256567(0xd7)]('params'))??{};let _0x567d6d=_0xb412ca;if(_0x37c863[_0x256567(0xc8)]===_0x256567(0x9c)){const _0x9f52ac=parseUpdateIdsFromParams(_0xb412ca);_0x567d6d=normalizeUpdateParamsForRuntime(_0xb412ca,_0x9f52ac);}return dryRun(_0x256567(0xb9),_0x256567(0xdb)+_0xac21d9+'/'+_0x37c863['operation'])[_0x256567(0xc0)](_0x567d6d)[_0x256567(0xcd)]('Preview:\x20data\x20'+_0x37c863[_0x256567(0xde)]+_0x256567(0xa2)+_0xac21d9)[_0x256567(0xa3)]();}),_0x25dea0;}export const dataDefinitions=specs[a24_0x7e1114(0xa8)](makeDataCommand);function buildBatchUpdateResult(_0x454664,_0x374565){const _0x5b84d9=a24_0x7e1114;return{'operation':_0x5b84d9(0x9c),'mode':'batch','ids':_0x454664,'total':_0x454664[_0x5b84d9(0xb8)],'result':_0x374565};}
@@ -1 +1 @@
1
- const a25_0xf10440=a25_0x2293;function a25_0x3756(){const _0x42d45a=['allFields','trim','read','createTimeField','sourceType','displayName','find','11066mwTbwj','2568234BvCfUe','description','3515lMLktk','dbtableConfig','validateRules','length','indexes','requestBody','tableComment','push','filter','source','dataType','153EAVHzC','156azCCUk','logicField','dbId','beforeScriptId','type','columnCodeListWithDeleted','isArray','extend','relations','formatRules','path','string','str','pkField','responseFields','requestFields','appCode','17580EOCFEh','split','9788lGBshq','fields','detail','labelField','creatorIdField','relatedPageInfoList','deleted','doType','name','parse','method','afterScriptId','modifierNameField','tableName','creatorNameField','host','doVersion','object','14msEXbx','properties','updateTimeField','responseBody','273326MJtKLr','1253ZMOFde','modelCode','7494981mhDvFj','map','options','datasetKey','modelId','24216IINigJ','required','allFieldNames','code','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','216312yRGhCd','title'];a25_0x3756=function(){return _0x42d45a;};return a25_0x3756();}(function(_0x420671,_0x22a932){const _0x5b1462=a25_0x2293,_0x203c1c=_0x420671();while(!![]){try{const _0x5a9465=-parseInt(_0x5b1462(0x188))/0x1*(parseInt(_0x5b1462(0x18c))/0x2)+-parseInt(_0x5b1462(0x1a3))/0x3+parseInt(_0x5b1462(0x176))/0x4*(-parseInt(_0x5b1462(0x1a5))/0x5)+parseInt(_0x5b1462(0x194))/0x6*(-parseInt(_0x5b1462(0x18d))/0x7)+parseInt(_0x5b1462(0x199))/0x8*(parseInt(_0x5b1462(0x1b0))/0x9)+parseInt(_0x5b1462(0x174))/0xa*(-parseInt(_0x5b1462(0x1a2))/0xb)+-parseInt(_0x5b1462(0x1b1))/0xc*(-parseInt(_0x5b1462(0x18f))/0xd);if(_0x5a9465===_0x22a932)break;else _0x203c1c['push'](_0x203c1c['shift']());}catch(_0x51abc9){_0x203c1c['push'](_0x203c1c['shift']());}}}(a25_0x3756,0xedce3));function a25_0x2293(_0x5d6e0e,_0x37ee58){_0x5d6e0e=_0x5d6e0e-0x174;const _0x375638=a25_0x3756();let _0x2293cb=_0x375638[_0x5d6e0e];return _0x2293cb;}import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x565ed1){const _0x4f1ec5=a25_0x2293;if(_0x565ed1[_0x4f1ec5(0x17c)])return null;const _0x4d5a75=Boolean(_0x565ed1[_0x4f1ec5(0x1a0)]!==undefined||_0x565ed1[_0x4f1ec5(0x17d)]!==undefined);let _0x46361d={};if(!_0x4d5a75&&typeof _0x565ed1['extend']===_0x4f1ec5(0x1bc))try{_0x46361d=JSON[_0x4f1ec5(0x17f)](_0x565ed1['extend']);}catch{}const _0x3af3fd=_0x4d5a75?_0x565ed1[_0x4f1ec5(0x17e)]:_0x565ed1[_0x4f1ec5(0x197)],_0x3e7491=_0x4d5a75?_0x565ed1[_0x4f1ec5(0x1a0)]:_0x565ed1[_0x4f1ec5(0x17e)],_0x2fa584=_0x4d5a75?_0x565ed1['doType']:_0x565ed1[_0x4f1ec5(0x1b5)]||_0x565ed1[_0x4f1ec5(0x1af)],_0x1c6ebc=_0x4d5a75?_0x565ed1[_0x4f1ec5(0x1be)]===!![]:_0x46361d[_0x4f1ec5(0x1be)]===!![],_0x32f065=_0x4d5a75?_0x565ed1[_0x4f1ec5(0x195)]===!![]:_0x46361d['required']===!![],_0x7cdbca=_0x4d5a75?_0x565ed1['options']??null:_0x46361d[_0x4f1ec5(0x191)]??null,_0x48023d={'name':_0x3af3fd,'displayName':_0x3e7491||_0x3af3fd,'type':_0x2fa584,'dbType':_0x565ed1['dbType'],'pk':_0x1c6ebc,'required':_0x32f065,'description':_0x565ed1[_0x4f1ec5(0x1a4)]||undefined};return Array[_0x4f1ec5(0x1b7)](_0x7cdbca)&&_0x7cdbca[_0x4f1ec5(0x1a8)]>0x0&&(_0x48023d[_0x4f1ec5(0x191)]=_0x7cdbca),_0x48023d;}function parseJsonMaybe(_0x3a788a){const _0x2160ee=a25_0x2293;if(typeof _0x3a788a!=='string')return _0x3a788a;try{return JSON[_0x2160ee(0x17f)](_0x3a788a);}catch{return _0x3a788a;}}function normalizeOperationEntry(_0x2a2eeb,_0x35dd90){const _0x36b807=a25_0x2293;if(!_0x35dd90||typeof _0x35dd90!=='object')return null;if(!_0x35dd90[_0x36b807(0x180)]||!_0x35dd90[_0x36b807(0x1bb)])return null;const _0xaabd38={'name':_0x2a2eeb,'method':_0x35dd90['method'],'path':_0x35dd90[_0x36b807(0x1bb)]};if(_0x35dd90[_0x36b807(0x185)])_0xaabd38[_0x36b807(0x185)]=_0x35dd90[_0x36b807(0x185)];if(_0x35dd90[_0x36b807(0x1aa)]!=null)_0xaabd38['requestBody']=parseJsonMaybe(_0x35dd90[_0x36b807(0x1aa)]);if(_0x35dd90[_0x36b807(0x18b)]!=null)_0xaabd38[_0x36b807(0x18b)]=parseJsonMaybe(_0x35dd90[_0x36b807(0x18b)]);if(_0x35dd90[_0x36b807(0x1b4)]!=null)_0xaabd38[_0x36b807(0x1b4)]=_0x35dd90[_0x36b807(0x1b4)];if(_0x35dd90[_0x36b807(0x181)]!=null)_0xaabd38[_0x36b807(0x181)]=_0x35dd90['afterScriptId'];if(Array['isArray'](_0x35dd90[_0x36b807(0x1c0)]))_0xaabd38['requestFields']=_0x35dd90[_0x36b807(0x1c0)];if(Array[_0x36b807(0x1b7)](_0x35dd90[_0x36b807(0x1bf)]))_0xaabd38['responseFields']=_0x35dd90[_0x36b807(0x1bf)];return _0xaabd38;}function summarizeDbtable(_0x3c8a86){const _0x323a70=a25_0x2293,_0x344472={},_0x4c6761=['dbId','dbName','tableName',_0x323a70(0x192),_0x323a70(0x1be),_0x323a70(0x19b),_0x323a70(0x1b2),_0x323a70(0x19e),_0x323a70(0x18a),_0x323a70(0x17a),_0x323a70(0x184),'modifierIdField',_0x323a70(0x182),_0x323a70(0x179),'dblinkInfoDTO'];for(const _0x406591 of _0x4c6761){if(_0x3c8a86[_0x406591]!==undefined)_0x344472[_0x406591]=_0x3c8a86[_0x406591];}return typeof _0x344472['allFields']===_0x323a70(0x1bc)&&_0x344472[_0x323a70(0x19b)][_0x323a70(0x1a8)]>0x0&&(_0x344472[_0x323a70(0x196)]=_0x344472['allFields'][_0x323a70(0x175)](',')[_0x323a70(0x190)](_0x5c0a83=>_0x5c0a83[_0x323a70(0x19c)]())[_0x323a70(0x1ad)](Boolean)),_0x344472;}function normalizeRelatedPages(_0x16b167){const _0x1ba820=a25_0x2293;if(!Array['isArray'](_0x16b167))return[];return _0x16b167[_0x1ba820(0x1ad)](_0x293da5=>_0x293da5&&typeof _0x293da5===_0x1ba820(0x187))[_0x1ba820(0x190)](_0x9d04b1=>({'id':_0x9d04b1['id'],'type':_0x9d04b1[_0x1ba820(0x1b5)],'code':_0x9d04b1[_0x1ba820(0x197)],'title':_0x9d04b1[_0x1ba820(0x19a)],'deleted':_0x9d04b1[_0x1ba820(0x17c)]===!![]}));}function normalizeFallbackFieldName(_0x471b61,_0x22fde4){const _0x19506a=a25_0x2293,_0x1d841c=_0x471b61[_0x19506a(0x19c)]();if(!_0x1d841c)return null;return{'name':_0x1d841c,'displayName':_0x1d841c,'type':undefined,'dbType':undefined,'pk':_0x1d841c===_0x22fde4,'required':![],'description':undefined};}async function loadListFieldFallback(_0x23006c,_0x205dd6){const _0x319677=a25_0x2293;if(!_0x23006c||!_0x205dd6)return[];try{const _0x34abd9=await listDatasets(_0x23006c,{'code':_0x205dd6}),_0x529073=_0x34abd9[_0x319677(0x1a1)](_0x267ffa=>_0x267ffa[_0x319677(0x197)]===_0x205dd6)??_0x34abd9[0x0],_0x4e4f14=_0x529073?.[_0x319677(0x1a6)]??{},_0x4e6f7a=typeof _0x4e4f14[_0x319677(0x19b)]===_0x319677(0x1bc)?_0x4e4f14[_0x319677(0x19b)][_0x319677(0x175)](','):[];return _0x4e6f7a[_0x319677(0x190)](_0x2bd69f=>normalizeFallbackFieldName(_0x2bd69f,_0x4e4f14['pkField']))[_0x319677(0x1ad)](_0x4f9b43=>_0x4f9b43!==null);}catch{return[];}}export const datasetDetail={'service':'dataset','command':a25_0xf10440(0x178),'description':a25_0xf10440(0x198),'risk':a25_0xf10440(0x19d),'flags':[CODE_FLAG],async 'execute'(_0x16f0ec){const _0x8c8743=a25_0xf10440,_0x261151=await getDatasetDetail(_0x16f0ec['str']('code')),_0x5de111=Array[_0x8c8743(0x1b7)](_0x261151[_0x8c8743(0x177)])?_0x261151[_0x8c8743(0x177)]:Array[_0x8c8743(0x1b7)](_0x261151['properties'])?_0x261151[_0x8c8743(0x189)]:[];let _0x570be6=_0x5de111[_0x8c8743(0x190)](_0x29ebb1=>normalizeField(_0x29ebb1))['filter'](_0x59e048=>_0x59e048!==null);_0x570be6['length']===0x0&&(_0x570be6=await loadListFieldFallback(_0x16f0ec[_0x8c8743(0x1c1)],_0x16f0ec[_0x8c8743(0x1bd)](_0x8c8743(0x197))));const _0x4d16bf=_0x261151['operations']??{},_0x22f13f=[];for(const [_0x586c48,_0x1933cb]of Object['entries'](_0x4d16bf)){const _0x348e6d=normalizeOperationEntry(_0x586c48,_0x1933cb);if(_0x348e6d)_0x22f13f[_0x8c8743(0x1ac)](_0x348e6d);}const _0x4c3ba5=_0x261151[_0x8c8743(0x1a6)]??{},_0x24ce0f=_0x261151['dataset']??{},_0x1dd17d=_0x4c3ba5[_0x8c8743(0x1b3)]!=null?{'id':_0x4c3ba5[_0x8c8743(0x1b3)],'name':_0x4c3ba5['dbName']??null}:undefined;let _0x1a7d06;return typeof _0x261151[_0x8c8743(0x1b8)]===_0x8c8743(0x1bc)&&(_0x1a7d06=parseJsonMaybe(_0x261151[_0x8c8743(0x1b8)])),{'ok':!![],'data':{'id':_0x261151[_0x8c8743(0x193)]??_0x261151['id'],'name':_0x261151[_0x8c8743(0x17e)],'code':_0x261151[_0x8c8743(0x18e)]||_0x261151['code'],'doVersion':_0x261151[_0x8c8743(0x186)],'description':_0x261151[_0x8c8743(0x1a4)]||_0x24ce0f[_0x8c8743(0x1ab)]||undefined,'source':_0x261151[_0x8c8743(0x1ae)]||_0x24ce0f[_0x8c8743(0x19f)],'table':_0x4c3ba5[_0x8c8743(0x183)]||_0x24ce0f['tableName'],'datasetKey':_0x4c3ba5[_0x8c8743(0x192)],'pk':_0x4c3ba5[_0x8c8743(0x1be)],'db':_0x1dd17d,'dbtable':summarizeDbtable(_0x4c3ba5),'fields':_0x570be6,'operations':_0x22f13f,'indexes':Array[_0x8c8743(0x1b7)](_0x24ce0f[_0x8c8743(0x1a9)])?_0x24ce0f[_0x8c8743(0x1a9)]:[],'relations':_0x261151[_0x8c8743(0x1b9)]??null,'relatedPages':normalizeRelatedPages(_0x261151[_0x8c8743(0x17b)]),...Array[_0x8c8743(0x1b7)](_0x261151[_0x8c8743(0x1b6)])?{'columnCodeListWithDeleted':_0x261151[_0x8c8743(0x1b6)]}:{},'formatRules':Array[_0x8c8743(0x1b7)](_0x261151['formatRules'])?_0x261151[_0x8c8743(0x1ba)]:[],'validateRules':Array[_0x8c8743(0x1b7)](_0x261151['validateRules'])?_0x261151[_0x8c8743(0x1a7)]:[],..._0x1a7d06!==undefined?{'extend':_0x1a7d06}:{},'stats':{'fieldCount':_0x570be6[_0x8c8743(0x1a8)],'operationCount':_0x22f13f[_0x8c8743(0x1a8)]}}};}};
1
+ const a25_0x3019c3=a25_0x40f4;(function(_0x248718,_0x3003e9){const _0x138e4c=a25_0x40f4,_0x52ae74=_0x248718();while(!![]){try{const _0x191cc2=parseInt(_0x138e4c(0x15c))/0x1*(parseInt(_0x138e4c(0x172))/0x2)+parseInt(_0x138e4c(0x15a))/0x3+-parseInt(_0x138e4c(0x139))/0x4*(parseInt(_0x138e4c(0x132))/0x5)+-parseInt(_0x138e4c(0x151))/0x6*(parseInt(_0x138e4c(0x154))/0x7)+parseInt(_0x138e4c(0x162))/0x8+parseInt(_0x138e4c(0x13d))/0x9+-parseInt(_0x138e4c(0x173))/0xa*(parseInt(_0x138e4c(0x13f))/0xb);if(_0x191cc2===_0x3003e9)break;else _0x52ae74['push'](_0x52ae74['shift']());}catch(_0x510d56){_0x52ae74['push'](_0x52ae74['shift']());}}}(a25_0x3622,0xd0c79));function a25_0x3622(){const _0x88f3d5=['code','pkField','columnCodeListWithDeleted','dataType','find','4446120NEfuoh','extend','632473mLJYjZ','allFields','filter','responseFields','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','doType','9026104XJgXYk','trim','doVersion','updateTimeField','map','length','afterScriptId','dbtableConfig','displayName','modifierNameField','required','responseBody','options','dbType','object','indexes','2UBRnIz','21064570jIeBHU','type','source','properties','creatorIdField','createTimeField','relations','path','split','requestBody','operations','70MNrFBd','description','labelField','host','title','creatorNameField','entries','47948GMsxrm','modifierIdField','read','name','227655thZcaT','push','11fLaVyE','validateRules','method','dataset','string','appCode','str','dbName','deleted','dbId','tableComment','modelId','fields','tableName','isArray','beforeScriptId','requestFields','detail','9786AAYKRM','relatedPageInfoList','parse','595tDNpoD'];a25_0x3622=function(){return _0x88f3d5;};return a25_0x3622();}import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x294e49){const _0x5e5a8e=a25_0x40f4;if(_0x294e49['deleted'])return null;const _0x5a8d71=Boolean(_0x294e49[_0x5e5a8e(0x16a)]!==undefined||_0x294e49[_0x5e5a8e(0x161)]!==undefined);let _0x216c04={};if(!_0x5a8d71&&typeof _0x294e49[_0x5e5a8e(0x15b)]===_0x5e5a8e(0x143))try{_0x216c04=JSON[_0x5e5a8e(0x153)](_0x294e49['extend']);}catch{}const _0x12f5cd=_0x5a8d71?_0x294e49[_0x5e5a8e(0x13c)]:_0x294e49[_0x5e5a8e(0x155)],_0x562f2d=_0x5a8d71?_0x294e49[_0x5e5a8e(0x16a)]:_0x294e49[_0x5e5a8e(0x13c)],_0x20b203=_0x5a8d71?_0x294e49[_0x5e5a8e(0x161)]:_0x294e49['type']||_0x294e49[_0x5e5a8e(0x158)],_0x12631f=_0x5a8d71?_0x294e49['pkField']===!![]:_0x216c04[_0x5e5a8e(0x156)]===!![],_0x396b59=_0x5a8d71?_0x294e49[_0x5e5a8e(0x16c)]===!![]:_0x216c04[_0x5e5a8e(0x16c)]===!![],_0x32dcc4=_0x5a8d71?_0x294e49[_0x5e5a8e(0x16e)]??null:_0x216c04[_0x5e5a8e(0x16e)]??null,_0x5624a4={'name':_0x12f5cd,'displayName':_0x562f2d||_0x12f5cd,'type':_0x20b203,'dbType':_0x294e49[_0x5e5a8e(0x16f)],'pk':_0x12631f,'required':_0x396b59,'description':_0x294e49['description']||undefined};return Array[_0x5e5a8e(0x14d)](_0x32dcc4)&&_0x32dcc4[_0x5e5a8e(0x167)]>0x0&&(_0x5624a4['options']=_0x32dcc4),_0x5624a4;}function parseJsonMaybe(_0x3200e5){const _0x485073=a25_0x40f4;if(typeof _0x3200e5!==_0x485073(0x143))return _0x3200e5;try{return JSON[_0x485073(0x153)](_0x3200e5);}catch{return _0x3200e5;}}function a25_0x40f4(_0x27efc8,_0x8968b1){_0x27efc8=_0x27efc8-0x12c;const _0x36221e=a25_0x3622();let _0x40f4e0=_0x36221e[_0x27efc8];return _0x40f4e0;}function normalizeOperationEntry(_0x4cab18,_0x482176){const _0x11ce6c=a25_0x40f4;if(!_0x482176||typeof _0x482176!==_0x11ce6c(0x170))return null;if(!_0x482176[_0x11ce6c(0x141)]||!_0x482176[_0x11ce6c(0x12e)])return null;const _0x5c6a94={'name':_0x4cab18,'method':_0x482176[_0x11ce6c(0x141)],'path':_0x482176[_0x11ce6c(0x12e)]};if(_0x482176[_0x11ce6c(0x135)])_0x5c6a94[_0x11ce6c(0x135)]=_0x482176[_0x11ce6c(0x135)];if(_0x482176['requestBody']!=null)_0x5c6a94[_0x11ce6c(0x130)]=parseJsonMaybe(_0x482176[_0x11ce6c(0x130)]);if(_0x482176['responseBody']!=null)_0x5c6a94[_0x11ce6c(0x16d)]=parseJsonMaybe(_0x482176[_0x11ce6c(0x16d)]);if(_0x482176[_0x11ce6c(0x14e)]!=null)_0x5c6a94['beforeScriptId']=_0x482176[_0x11ce6c(0x14e)];if(_0x482176['afterScriptId']!=null)_0x5c6a94[_0x11ce6c(0x168)]=_0x482176[_0x11ce6c(0x168)];if(Array['isArray'](_0x482176[_0x11ce6c(0x14f)]))_0x5c6a94['requestFields']=_0x482176['requestFields'];if(Array[_0x11ce6c(0x14d)](_0x482176[_0x11ce6c(0x15f)]))_0x5c6a94[_0x11ce6c(0x15f)]=_0x482176[_0x11ce6c(0x15f)];return _0x5c6a94;}function summarizeDbtable(_0x370c3f){const _0x25a49b=a25_0x40f4,_0x5c96bf={},_0x187fac=[_0x25a49b(0x148),_0x25a49b(0x146),_0x25a49b(0x14c),'datasetKey',_0x25a49b(0x156),_0x25a49b(0x15d),'logicField',_0x25a49b(0x12c),_0x25a49b(0x165),_0x25a49b(0x177),_0x25a49b(0x137),_0x25a49b(0x13a),_0x25a49b(0x16b),_0x25a49b(0x134),'dblinkInfoDTO'];for(const _0x4c261c of _0x187fac){if(_0x370c3f[_0x4c261c]!==undefined)_0x5c96bf[_0x4c261c]=_0x370c3f[_0x4c261c];}return typeof _0x5c96bf[_0x25a49b(0x15d)]===_0x25a49b(0x143)&&_0x5c96bf[_0x25a49b(0x15d)][_0x25a49b(0x167)]>0x0&&(_0x5c96bf['allFieldNames']=_0x5c96bf['allFields'][_0x25a49b(0x12f)](',')[_0x25a49b(0x166)](_0x326382=>_0x326382['trim']())['filter'](Boolean)),_0x5c96bf;}function normalizeRelatedPages(_0x25a9e8){const _0x4fe8cc=a25_0x40f4;if(!Array[_0x4fe8cc(0x14d)](_0x25a9e8))return[];return _0x25a9e8[_0x4fe8cc(0x15e)](_0x14fa78=>_0x14fa78&&typeof _0x14fa78===_0x4fe8cc(0x170))[_0x4fe8cc(0x166)](_0x5935f6=>({'id':_0x5935f6['id'],'type':_0x5935f6[_0x4fe8cc(0x174)],'code':_0x5935f6[_0x4fe8cc(0x155)],'title':_0x5935f6[_0x4fe8cc(0x136)],'deleted':_0x5935f6[_0x4fe8cc(0x147)]===!![]}));}function normalizeFallbackFieldName(_0x46250c,_0xb6277b){const _0x577776=a25_0x40f4,_0x4797bc=_0x46250c[_0x577776(0x163)]();if(!_0x4797bc)return null;return{'name':_0x4797bc,'displayName':_0x4797bc,'type':undefined,'dbType':undefined,'pk':_0x4797bc===_0xb6277b,'required':![],'description':undefined};}async function loadListFieldFallback(_0x4d9768,_0xbe21ea){const _0x15b118=a25_0x40f4;if(!_0x4d9768||!_0xbe21ea)return[];try{const _0x5964c0=await listDatasets(_0x4d9768,{'code':_0xbe21ea}),_0x38ce56=_0x5964c0[_0x15b118(0x159)](_0x52d8a7=>_0x52d8a7[_0x15b118(0x155)]===_0xbe21ea)??_0x5964c0[0x0],_0x20d1d0=_0x38ce56?.['dbtableConfig']??{},_0x4ed45d=typeof _0x20d1d0['allFields']===_0x15b118(0x143)?_0x20d1d0[_0x15b118(0x15d)][_0x15b118(0x12f)](','):[];return _0x4ed45d[_0x15b118(0x166)](_0x12414c=>normalizeFallbackFieldName(_0x12414c,_0x20d1d0[_0x15b118(0x156)]))['filter'](_0x1daa73=>_0x1daa73!==null);}catch{return[];}}export const datasetDetail={'service':a25_0x3019c3(0x142),'command':a25_0x3019c3(0x150),'description':a25_0x3019c3(0x160),'risk':a25_0x3019c3(0x13b),'flags':[CODE_FLAG],async 'execute'(_0x2d35de){const _0x4b4b99=a25_0x3019c3,_0x5b3542=await getDatasetDetail(_0x2d35de[_0x4b4b99(0x145)]('code')),_0x13ea47=Array[_0x4b4b99(0x14d)](_0x5b3542[_0x4b4b99(0x14b)])?_0x5b3542['fields']:Array['isArray'](_0x5b3542[_0x4b4b99(0x176)])?_0x5b3542['properties']:[];let _0x2c195a=_0x13ea47[_0x4b4b99(0x166)](_0x50915a=>normalizeField(_0x50915a))[_0x4b4b99(0x15e)](_0x7be6=>_0x7be6!==null);_0x2c195a[_0x4b4b99(0x167)]===0x0&&(_0x2c195a=await loadListFieldFallback(_0x2d35de[_0x4b4b99(0x144)],_0x2d35de[_0x4b4b99(0x145)]('code')));const _0xa64f52=_0x5b3542[_0x4b4b99(0x131)]??{},_0x12706d=[];for(const [_0x2dc858,_0x87bd39]of Object[_0x4b4b99(0x138)](_0xa64f52)){const _0x27088e=normalizeOperationEntry(_0x2dc858,_0x87bd39);if(_0x27088e)_0x12706d[_0x4b4b99(0x13e)](_0x27088e);}const _0x334490=_0x5b3542[_0x4b4b99(0x169)]??{},_0x2f9a3a=_0x5b3542[_0x4b4b99(0x142)]??{},_0x2bd45b=_0x334490[_0x4b4b99(0x148)]!=null?{'id':_0x334490['dbId'],'name':_0x334490[_0x4b4b99(0x146)]??null}:undefined;let _0x2e2577;return typeof _0x5b3542[_0x4b4b99(0x15b)]===_0x4b4b99(0x143)&&(_0x2e2577=parseJsonMaybe(_0x5b3542[_0x4b4b99(0x15b)])),{'ok':!![],'data':{'id':_0x5b3542[_0x4b4b99(0x14a)]??_0x5b3542['id'],'name':_0x5b3542[_0x4b4b99(0x13c)],'code':_0x5b3542['modelCode']||_0x5b3542[_0x4b4b99(0x155)],'doVersion':_0x5b3542[_0x4b4b99(0x164)],'description':_0x5b3542[_0x4b4b99(0x133)]||_0x2f9a3a[_0x4b4b99(0x149)]||undefined,'source':_0x5b3542[_0x4b4b99(0x175)]||_0x2f9a3a['sourceType'],'table':_0x334490[_0x4b4b99(0x14c)]||_0x2f9a3a[_0x4b4b99(0x14c)],'datasetKey':_0x334490['datasetKey'],'pk':_0x334490[_0x4b4b99(0x156)],'db':_0x2bd45b,'dbtable':summarizeDbtable(_0x334490),'fields':_0x2c195a,'operations':_0x12706d,'indexes':Array[_0x4b4b99(0x14d)](_0x2f9a3a[_0x4b4b99(0x171)])?_0x2f9a3a['indexes']:[],'relations':_0x5b3542[_0x4b4b99(0x12d)]??null,'relatedPages':normalizeRelatedPages(_0x5b3542[_0x4b4b99(0x152)]),...Array['isArray'](_0x5b3542['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x5b3542[_0x4b4b99(0x157)]}:{},'formatRules':Array[_0x4b4b99(0x14d)](_0x5b3542['formatRules'])?_0x5b3542['formatRules']:[],'validateRules':Array[_0x4b4b99(0x14d)](_0x5b3542['validateRules'])?_0x5b3542[_0x4b4b99(0x140)]:[],..._0x2e2577!==undefined?{'extend':_0x2e2577}:{},'stats':{'fieldCount':_0x2c195a[_0x4b4b99(0x167)],'operationCount':_0x12706d['length']}}};}};
@@ -1 +1 @@
1
- (function(_0x413b20,_0x4fe635){const _0x2a2d17=a26_0x58c6,_0x5868d9=_0x413b20();while(!![]){try{const _0x55431c=-parseInt(_0x2a2d17(0x7d))/0x1+-parseInt(_0x2a2d17(0x7f))/0x2*(parseInt(_0x2a2d17(0x7a))/0x3)+-parseInt(_0x2a2d17(0x82))/0x4*(parseInt(_0x2a2d17(0x83))/0x5)+-parseInt(_0x2a2d17(0x7c))/0x6*(parseInt(_0x2a2d17(0x7e))/0x7)+parseInt(_0x2a2d17(0x80))/0x8+-parseInt(_0x2a2d17(0x79))/0x9+-parseInt(_0x2a2d17(0x7b))/0xa*(-parseInt(_0x2a2d17(0x81))/0xb);if(_0x55431c===_0x4fe635)break;else _0x5868d9['push'](_0x5868d9['shift']());}catch(_0x23d49e){_0x5868d9['push'](_0x5868d9['shift']());}}}(a26_0x28d4,0x7be73));import{datasetList}from'../../commands/dataset/list.js';function a26_0x28d4(){const _0xa620e6=['24bvNXcC','717015nykcYP','2019735DtEvYP','58095HbJQgt','4444610fMGaOq','104898SgNOth','939850TxQDwo','70oAiIVJ','94bzKZeQ','7603272PmcKTg','66kXDQxd'];a26_0x28d4=function(){return _0xa620e6;};return a26_0x28d4();}import{datasetDetail}from'../../commands/dataset/detail.js';function a26_0x58c6(_0x32465f,_0x140cea){_0x32465f=_0x32465f-0x79;const _0x28d419=a26_0x28d4();let _0x58c6c1=_0x28d419[_0x32465f];return _0x58c6c1;}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ (function(_0x4a78ef,_0x1fe079){const _0x22cf74=a26_0x3f86,_0x5c8059=_0x4a78ef();while(!![]){try{const _0x1197d8=parseInt(_0x22cf74(0xb3))/0x1*(-parseInt(_0x22cf74(0xbe))/0x2)+-parseInt(_0x22cf74(0xba))/0x3*(-parseInt(_0x22cf74(0xb6))/0x4)+parseInt(_0x22cf74(0xbd))/0x5+parseInt(_0x22cf74(0xbc))/0x6+parseInt(_0x22cf74(0xb5))/0x7*(parseInt(_0x22cf74(0xb9))/0x8)+parseInt(_0x22cf74(0xb4))/0x9*(parseInt(_0x22cf74(0xb8))/0xa)+parseInt(_0x22cf74(0xbb))/0xb*(-parseInt(_0x22cf74(0xb7))/0xc);if(_0x1197d8===_0x1fe079)break;else _0x5c8059['push'](_0x5c8059['shift']());}catch(_0x4df016){_0x5c8059['push'](_0x5c8059['shift']());}}}(a26_0x1003,0xf41f2));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a26_0x3f86(_0x1c34c0,_0x1b9e47){_0x1c34c0=_0x1c34c0-0xb3;const _0x100318=a26_0x1003();let _0x3f8620=_0x100318[_0x1c34c0];return _0x3f8620;}function a26_0x1003(){const _0x5f1cd2=['480936hDOhZy','540IRMprj','2966472jLCLsC','4996833QSfguT','781pFfycR','1091064tDBXBP','9219025qWXOOB','39278KonDBX','69iUDlpR','189747qKzZYA','7KLdgeY','4inHCMO'];a26_0x1003=function(){return _0x5f1cd2;};return a26_0x1003();}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- function a27_0x135e(){const _0x14171c=['975990FSaBAP','290744pVBTrR','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','description','code','tableName','source','9fEwCWl','dataset','allFields','12881UthVfU','split','name','2100728IuXKzb','4gsQDMl','string','datasetKey','30088YzpWRh','6770yonWzO','1278015LiQqND','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','read','dbtableConfig','str','1055644hyNoRn','trim','6aOnbHa','pkField','list','length'];a27_0x135e=function(){return _0x14171c;};return a27_0x135e();}const a27_0x4e1fb9=a27_0x4b83;(function(_0x1522be,_0x1a6492){const _0x22d47d=a27_0x4b83,_0x4d7e80=_0x1522be();while(!![]){try{const _0x1fad8d=parseInt(_0x22d47d(0x186))/0x1*(parseInt(_0x22d47d(0x189))/0x2)+-parseInt(_0x22d47d(0x178))/0x3+-parseInt(_0x22d47d(0x190))/0x4+parseInt(_0x22d47d(0x18b))/0x5*(parseInt(_0x22d47d(0x192))/0x6)+-parseInt(_0x22d47d(0x185))/0x7+-parseInt(_0x22d47d(0x179))/0x8*(parseInt(_0x22d47d(0x17f))/0x9)+-parseInt(_0x22d47d(0x18a))/0xa*(-parseInt(_0x22d47d(0x182))/0xb);if(_0x1fad8d===_0x1a6492)break;else _0x4d7e80['push'](_0x4d7e80['shift']());}catch(_0x2b2e4c){_0x4d7e80['push'](_0x4d7e80['shift']());}}}(a27_0x135e,0x2ca4a));function a27_0x4b83(_0x4e03e5,_0x4cfb40){_0x4e03e5=_0x4e03e5-0x175;const _0x135eeb=a27_0x135e();let _0x4b83cd=_0x135eeb[_0x4e03e5];return _0x4b83cd;}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a27_0x4e1fb9(0x180),'command':a27_0x4e1fb9(0x176),'description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':a27_0x4e1fb9(0x18d),'flags':[{'name':a27_0x4e1fb9(0x184),'type':a27_0x4e1fb9(0x187),'description':a27_0x4e1fb9(0x17a)},{...CODE_FLAG,'required':![],'description':a27_0x4e1fb9(0x18c)}],async 'execute'(_0x54a798){const _0x52a4c1=a27_0x4e1fb9,_0x3483a2=_0x54a798[_0x52a4c1(0x18f)](_0x52a4c1(0x184)),_0xa83821=_0x54a798[_0x52a4c1(0x18f)]('code'),_0x23fe91=await listDatasets(_0x54a798['appCode'],{..._0x3483a2&&{'name':_0x3483a2},..._0xa83821&&{'code':_0xa83821}});return{'ok':!![],'data':{'total':_0x23fe91[_0x52a4c1(0x177)],'datasets':_0x23fe91['map'](_0x74148c=>{const _0x2e05df=_0x52a4c1,_0x316294=_0x74148c[_0x2e05df(0x18e)]??{};return{'id':_0x74148c['id'],'code':_0x74148c[_0x2e05df(0x17c)],'name':_0x74148c[_0x2e05df(0x184)],'source':_0x74148c[_0x2e05df(0x17e)],'description':_0x74148c[_0x2e05df(0x17b)],'table':_0x316294[_0x2e05df(0x17d)],'datasetKey':_0x316294[_0x2e05df(0x188)],'pk':_0x316294[_0x2e05df(0x175)],'fields':_0x316294[_0x2e05df(0x181)]?_0x316294[_0x2e05df(0x181)][_0x2e05df(0x183)](',')['map'](_0x12489b=>_0x12489b[_0x2e05df(0x191)]()):[]};})}};}};
1
+ const a27_0x568771=a27_0x4d03;(function(_0x4a0dcb,_0xcfbc46){const _0xa9cd30=a27_0x4d03,_0x5c491f=_0x4a0dcb();while(!![]){try{const _0x164389=-parseInt(_0xa9cd30(0x1f2))/0x1*(-parseInt(_0xa9cd30(0x1eb))/0x2)+-parseInt(_0xa9cd30(0x1fc))/0x3*(parseInt(_0xa9cd30(0x201))/0x4)+-parseInt(_0xa9cd30(0x1fd))/0x5+parseInt(_0xa9cd30(0x202))/0x6*(-parseInt(_0xa9cd30(0x206))/0x7)+-parseInt(_0xa9cd30(0x1f8))/0x8+parseInt(_0xa9cd30(0x200))/0x9*(-parseInt(_0xa9cd30(0x1f5))/0xa)+parseInt(_0xa9cd30(0x203))/0xb*(parseInt(_0xa9cd30(0x1fe))/0xc);if(_0x164389===_0xcfbc46)break;else _0x5c491f['push'](_0x5c491f['shift']());}catch(_0x5208c2){_0x5c491f['push'](_0x5c491f['shift']());}}}(a27_0xdc0a,0x53cd0));function a27_0xdc0a(){const _0x11fd79=['47HgZNfo','length','allFields','59050lfzMhf','list','str','3601560ZlWfuH','trim','description','tableName','424869EkcfRb','1820980ZkuTNo','42096pRbwyx','pkField','315ptjEwC','12WPxnOb','6apIxco','4202NPToBZ','map','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','1449938SXgjiN','datasetKey','split','27926zVSRkO','read','name','code','appCode','dbtableConfig','source'];a27_0xdc0a=function(){return _0x11fd79;};return a27_0xdc0a();}function a27_0x4d03(_0x59fe10,_0x565bcb){_0x59fe10=_0x59fe10-0x1ea;const _0xdc0a08=a27_0xdc0a();let _0x4d0384=_0xdc0a08[_0x59fe10];return _0x4d0384;}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':'dataset','command':a27_0x568771(0x1f6),'description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':a27_0x568771(0x1ec),'flags':[{'name':a27_0x568771(0x1ed),'type':'string','description':'Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'},{...CODE_FLAG,'required':![],'description':a27_0x568771(0x205)}],async 'execute'(_0x4a4a25){const _0x68d386=a27_0x568771,_0x3ec463=_0x4a4a25['str'](_0x68d386(0x1ed)),_0x22a322=_0x4a4a25[_0x68d386(0x1f7)](_0x68d386(0x1ee)),_0x5d1e46=await listDatasets(_0x4a4a25[_0x68d386(0x1ef)],{..._0x3ec463&&{'name':_0x3ec463},..._0x22a322&&{'code':_0x22a322}});return{'ok':!![],'data':{'total':_0x5d1e46[_0x68d386(0x1f3)],'datasets':_0x5d1e46[_0x68d386(0x204)](_0x41c229=>{const _0x12ae8f=_0x68d386,_0x1c8c8e=_0x41c229[_0x12ae8f(0x1f0)]??{};return{'id':_0x41c229['id'],'code':_0x41c229[_0x12ae8f(0x1ee)],'name':_0x41c229['name'],'source':_0x41c229[_0x12ae8f(0x1f1)],'description':_0x41c229[_0x12ae8f(0x1fa)],'table':_0x1c8c8e[_0x12ae8f(0x1fb)],'datasetKey':_0x1c8c8e[_0x12ae8f(0x207)],'pk':_0x1c8c8e[_0x12ae8f(0x1ff)],'fields':_0x1c8c8e[_0x12ae8f(0x1f4)]?_0x1c8c8e['allFields'][_0x12ae8f(0x1ea)](',')[_0x12ae8f(0x204)](_0x3f222d=>_0x3f222d[_0x12ae8f(0x1f9)]()):[]};})}};}};
@@ -1 +1 @@
1
- const a28_0x566b03=a28_0x50f7;(function(_0x37bd5c,_0xc06105){const _0x3e9882=a28_0x50f7,_0x3720f3=_0x37bd5c();while(!![]){try{const _0x521f84=parseInt(_0x3e9882(0x1db))/0x1+-parseInt(_0x3e9882(0x1d9))/0x2*(-parseInt(_0x3e9882(0x1d5))/0x3)+-parseInt(_0x3e9882(0x1dc))/0x4+parseInt(_0x3e9882(0x1d7))/0x5+-parseInt(_0x3e9882(0x1de))/0x6+-parseInt(_0x3e9882(0x1d4))/0x7*(parseInt(_0x3e9882(0x1df))/0x8)+parseInt(_0x3e9882(0x1d3))/0x9*(parseInt(_0x3e9882(0x1e0))/0xa);if(_0x521f84===_0xc06105)break;else _0x3720f3['push'](_0x3720f3['shift']());}catch(_0x37f0c0){_0x3720f3['push'](_0x3720f3['shift']());}}}(a28_0x4a57,0x70326));function a28_0x4a57(){const _0x63765c=['dataset','1875560eGgJWv','sdk-doc','98oYyXCN','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','760248NGJzAG','3628336Ktllxk','str','4691154yvokTu','779616gAVXdd','719500PIqrKj','trim','appCode','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','string','144fycVRX','56mvnuRA','39279kfkPlq'];a28_0x4a57=function(){return _0x63765c;};return a28_0x4a57();}function a28_0x50f7(_0x11ef2d,_0x3fab68){_0x11ef2d=_0x11ef2d-0x1d0;const _0x4a573d=a28_0x4a57();let _0x50f7a2=_0x4a573d[_0x11ef2d];return _0x50f7a2;}import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a28_0x566b03(0x1da);export function formatDatasetSdkMarkdown(_0x2c7b75){const _0x5b86e4=a28_0x566b03,_0x2de582=typeof _0x2c7b75===_0x5b86e4(0x1d2)?_0x2c7b75[_0x5b86e4(0x1e1)]():'';return _0x2de582||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a28_0x566b03(0x1d6),'command':a28_0x566b03(0x1d8),'description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':'read','flags':[{...CODE_FLAG,'description':a28_0x566b03(0x1d1)}],async 'execute'(_0x545b0c){const _0x53bf21=a28_0x566b03,_0x5bf4a4=_0x545b0c[_0x53bf21(0x1dd)]('code'),_0x4296ca=await getDatasetSdkUsageDoc(_0x5bf4a4,_0x545b0c[_0x53bf21(0x1d0)]);return{'ok':!![],'data':{'code':_0x5bf4a4,'appCode':_0x545b0c[_0x53bf21(0x1d0)],'markdown':formatDatasetSdkMarkdown(_0x4296ca)}};}};
1
+ function a28_0x1050(){const _0x1d524b=['268xByuUC','62454KPxUMd','19764wTJNVM','84nJIJBq','sdk-doc','686UuAmmy','str','dataset','1882FPQfgy','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','6049659awZFWy','trim','6017lMxaTR','33332oYuiDD','8pPKthr','455877pPPVRm','appCode','23770wlJjvh','231520jnBUVq','read'];a28_0x1050=function(){return _0x1d524b;};return a28_0x1050();}const a28_0x399fe3=a28_0x2373;(function(_0x2d4146,_0xfa5c56){const _0xa639bd=a28_0x2373,_0x224336=_0x2d4146();while(!![]){try{const _0xfd92ed=-parseInt(_0xa639bd(0x154))/0x1*(-parseInt(_0xa639bd(0x157))/0x2)+parseInt(_0xa639bd(0x150))/0x3*(-parseInt(_0xa639bd(0x14f))/0x4)+parseInt(_0xa639bd(0x14d))/0x5*(-parseInt(_0xa639bd(0x152))/0x6)+-parseInt(_0xa639bd(0x159))/0x7+parseInt(_0xa639bd(0x149))/0x8*(parseInt(_0xa639bd(0x14a))/0x9)+-parseInt(_0xa639bd(0x14c))/0xa*(parseInt(_0xa639bd(0x15b))/0xb)+-parseInt(_0xa639bd(0x151))/0xc*(-parseInt(_0xa639bd(0x15c))/0xd);if(_0xfd92ed===_0xfa5c56)break;else _0x224336['push'](_0x224336['shift']());}catch(_0x154d48){_0x224336['push'](_0x224336['shift']());}}}(a28_0x1050,0xadb91));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN='#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档';export function formatDatasetSdkMarkdown(_0x22c623){const _0x1e8e45=a28_0x2373,_0x26d27c=typeof _0x22c623==='string'?_0x22c623[_0x1e8e45(0x15a)]():'';return _0x26d27c||DEFAULT_MARKDOWN;}function a28_0x2373(_0x445605,_0x114e5c){_0x445605=_0x445605-0x149;const _0x105049=a28_0x1050();let _0x2373f2=_0x105049[_0x445605];return _0x2373f2;}export const datasetSdkDoc={'service':a28_0x399fe3(0x156),'command':a28_0x399fe3(0x153),'description':a28_0x399fe3(0x158),'risk':a28_0x399fe3(0x14e),'flags':[{...CODE_FLAG,'description':'Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.'}],async 'execute'(_0x20964f){const _0x116f3b=a28_0x399fe3,_0x51a851=_0x20964f[_0x116f3b(0x155)]('code'),_0x3b8672=await getDatasetSdkUsageDoc(_0x51a851,_0x20964f['appCode']);return{'ok':!![],'data':{'code':_0x51a851,'appCode':_0x20964f[_0x116f3b(0x14b)],'markdown':formatDatasetSdkMarkdown(_0x3b8672)}};}};
@@ -1 +1 @@
1
- const a29_0x51fddc=a29_0x4bca;(function(_0x32dfee,_0x27a8f4){const _0x13834c=a29_0x4bca,_0x3b6043=_0x32dfee();while(!![]){try{const _0x316342=-parseInt(_0x13834c(0x169))/0x1*(parseInt(_0x13834c(0x19a))/0x2)+-parseInt(_0x13834c(0x198))/0x3*(parseInt(_0x13834c(0x173))/0x4)+parseInt(_0x13834c(0x177))/0x5*(-parseInt(_0x13834c(0x194))/0x6)+-parseInt(_0x13834c(0x176))/0x7*(parseInt(_0x13834c(0x159))/0x8)+parseInt(_0x13834c(0x15c))/0x9+-parseInt(_0x13834c(0x15d))/0xa+-parseInt(_0x13834c(0x184))/0xb*(-parseInt(_0x13834c(0x15a))/0xc);if(_0x316342===_0x27a8f4)break;else _0x3b6043['push'](_0x3b6043['shift']());}catch(_0x2a3cab){_0x3b6043['push'](_0x3b6043['shift']());}}}(a29_0x5ac7,0x7cce5));import a29_0x1f592c 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_0x5ac7(){const _0x50a81=['gray','locale','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','message','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','riskLevel','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','currentApp','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','6lZtNnK','\x20\x20runtimeDomain:\x20\x20\x20','registryPath','missing','1706634XLHgSs','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','242rkWNFm','format','⚠\x20Empty','\x20\x20─','✗\x20Invalid\x20JSON','log','(no\x20file)','\x20\x20auth\x20(effective):\x20','ClientAk','status','(unnamed)','padEnd','appCode','bold','(none)','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Loaded','verbose','arch','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','3928WMySVm','8220IJDbJl','version','7575066aRtbJg','2873640gUtyfu','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20(legacy/compat\x20only)','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','length','(missing)','Project','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','source','env','4274FwNJbp','✗\x20Invalid','\x20Imported\x20from:\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','doctor','(not\x20set)','\x20\x20Session\x20check:\x20\x20\x20','(not\x20found)','Diagnose\x20CLI\x20configuration\x20and\x20environment','4grkuQI','defaultApp','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','3437WgQacI','885485CabAAL','\x20\x20Service\x20Tree','read','⚠\x20Empty\x20(treated\x20as\x20{})','commandCount','(default)','repeat','\x20doctor','green','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','serviceCode','platform','empty','23463lzbepo','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','pageSize'];a29_0x5ac7=function(){return _0x50a81;};return a29_0x5ac7();}function a29_0x4bca(_0x296f82,_0x46cb35){_0x296f82=_0x296f82-0x14d;const _0x5ac75f=a29_0x5ac7();let _0x4bcacd=_0x5ac75f[_0x296f82];return _0x4bcacd;}async function execute(_0x18edcd){const _0x192686=a29_0x4bca,_0x3f3d32=getCliVersion(),_0x1e635a=buildConfigFromFlags({});await initGlobalEnvironment(_0x1e635a),console[_0x192686(0x19f)](),console[_0x192686(0x19f)](a29_0x1f592c[_0x192686(0x151)](CLI_BIN_NAME+_0x192686(0x17e))),console['log'](a29_0x1f592c[_0x192686(0x188)]('─'[_0x192686(0x17d)](0x32))),console[_0x192686(0x19f)](_0x192686(0x160)+_0x3f3d32),console[_0x192686(0x19f)](_0x192686(0x18f)+process[_0x192686(0x15b)]),console[_0x192686(0x19f)](_0x192686(0x16c)+process[_0x192686(0x182)]+'\x20'+process[_0x192686(0x157)]),console[_0x192686(0x19f)](),console[_0x192686(0x19f)](a29_0x1f592c[_0x192686(0x151)]('\x20\x20Config\x20Files')),console[_0x192686(0x19f)](a29_0x1f592c[_0x192686(0x188)](_0x192686(0x19d)[_0x192686(0x17d)](0x1e)));const _0x18a1be=getGlobalConfigPath(),_0x15a02c=getProjectConfigPath();console['log'](_0x192686(0x18a)+(_0x18a1be||a29_0x1f592c[_0x192686(0x188)]('(not\x20found)'))),console[_0x192686(0x19f)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x15a02c||a29_0x1f592c['gray'](_0x192686(0x171)))),console[_0x192686(0x19f)](),console[_0x192686(0x19f)](a29_0x1f592c[_0x192686(0x151)]('\x20\x20Config\x20JSON')),console[_0x192686(0x19f)](a29_0x1f592c['gray']('\x20\x20─'['repeat'](0x1e)));const _0x560358=(_0x162a7c,_0x44e54a)=>{const _0x43e92a=_0x192686;if(!_0x44e54a){console[_0x43e92a(0x19f)]('\x20\x20'+_0x162a7c[_0x43e92a(0x14f)](0x11)+'\x20'+a29_0x1f592c['gray'](_0x43e92a(0x1a0)));return;}const _0x41f484=inspectCliConfigJsonFile(_0x44e54a);if(_0x41f484[_0x43e92a(0x14d)]==='ok')console[_0x43e92a(0x19f)]('\x20\x20'+_0x162a7c['padEnd'](0x11)+'\x20'+a29_0x1f592c[_0x43e92a(0x17f)]('✓\x20Valid\x20JSON'));else{if(_0x41f484[_0x43e92a(0x14d)]===_0x43e92a(0x183))console[_0x43e92a(0x19f)]('\x20\x20'+_0x162a7c[_0x43e92a(0x14f)](0x11)+'\x20'+a29_0x1f592c['yellow'](_0x43e92a(0x17a)));else _0x41f484[_0x43e92a(0x14d)]===_0x43e92a(0x197)?console[_0x43e92a(0x19f)]('\x20\x20'+_0x162a7c[_0x43e92a(0x14f)](0x11)+'\x20'+a29_0x1f592c[_0x43e92a(0x188)](_0x43e92a(0x163))):(console[_0x43e92a(0x19f)]('\x20\x20'+_0x162a7c[_0x43e92a(0x14f)](0x11)+'\x20'+a29_0x1f592c['red'](_0x43e92a(0x19e))),console[_0x43e92a(0x19f)]('\x20\x20'+''[_0x43e92a(0x14f)](0x11)+'\x20'+a29_0x1f592c[_0x43e92a(0x166)](_0x41f484[_0x43e92a(0x18b)])));}};_0x560358('Global',_0x18a1be),_0x560358(_0x192686(0x164),_0x15a02c),console[_0x192686(0x19f)](),console['log'](a29_0x1f592c[_0x192686(0x151)]('\x20\x20Merged\x20Config')),console[_0x192686(0x19f)](a29_0x1f592c['gray'](_0x192686(0x19d)['repeat'](0x1e))),console['log'](_0x192686(0x175)+(_0x1e635a[_0x192686(0x150)]||a29_0x1f592c[_0x192686(0x166)](_0x192686(0x16f)))),console['log'](_0x192686(0x180)+_0x1e635a[_0x192686(0x168)]);const _0x1ae0b3=isLegacyCompatConfigKey(_0x192686(0x189))?a29_0x1f592c['gray'](_0x1e635a[_0x192686(0x189)]+_0x192686(0x15f)):_0x1e635a['locale'];console[_0x192686(0x19f)](_0x192686(0x190)+_0x1ae0b3),console[_0x192686(0x19f)](_0x192686(0x158)+(_0x1e635a[_0x192686(0x174)]||a29_0x1f592c['gray'](_0x192686(0x152)))),console[_0x192686(0x19f)](_0x192686(0x161)+(_0x1e635a[_0x192686(0x192)]||a29_0x1f592c[_0x192686(0x188)](_0x192686(0x152)))),console[_0x192686(0x19f)](_0x192686(0x185)+(_0x1e635a['format']||a29_0x1f592c['gray']('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x192686(0x19b)]+')'))),console['log'](_0x192686(0x153)+(_0x1e635a[_0x192686(0x187)]??a29_0x1f592c['gray'](_0x192686(0x17c)))),console['log'](_0x192686(0x18d)+_0x1e635a[_0x192686(0x18e)]),console['log'](_0x192686(0x193)+_0x1e635a[_0x192686(0x156)]),console[_0x192686(0x19f)](_0x192686(0x1a1)+AUTH_MODE['ClientAk']),console[_0x192686(0x19f)](_0x192686(0x186)+(_0x1e635a['accessKey']?a29_0x1f592c[_0x192686(0x17f)]('(set,\x20length='+_0x1e635a[_0x192686(0x16d)][_0x192686(0x162)]+')'):a29_0x1f592c['gray']('(none)'))),console[_0x192686(0x19f)](),console[_0x192686(0x19f)](a29_0x1f592c[_0x192686(0x151)]('\x20\x20API\x20Endpoints')),console['log'](a29_0x1f592c['gray'](_0x192686(0x19d)[_0x192686(0x17d)](0x1e))),console[_0x192686(0x19f)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x192686(0x19f)](_0x192686(0x199)+getUserDomain()),console[_0x192686(0x19f)](_0x192686(0x195)+getRuntimeDomain()),console[_0x192686(0x19f)](),console[_0x192686(0x19f)](a29_0x1f592c[_0x192686(0x151)](_0x192686(0x178))),console[_0x192686(0x19f)](a29_0x1f592c[_0x192686(0x188)]('\x20\x20─'[_0x192686(0x17d)](0x1e)));const _0x34ea9f=inspectServiceRegistry();console['log']('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x34ea9f[_0x192686(0x196)]),console[_0x192686(0x19f)](_0x192686(0x165)+formatServiceRegistryStatus(_0x34ea9f)),console[_0x192686(0x19f)]('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x34ea9f['serviceCount']),console['log'](_0x192686(0x154)+_0x34ea9f['commandCount']);for(const _0x1f6caa of _0x34ea9f['services']){console[_0x192686(0x19f)]('\x20\x20'+(_0x1f6caa[_0x192686(0x181)]+':')[_0x192686(0x14f)](0x11)+'\x20'+(_0x1f6caa['name']||a29_0x1f592c[_0x192686(0x188)](_0x192686(0x14e)))+'\x20('+_0x1f6caa[_0x192686(0x17b)]+'\x20commands)'),console[_0x192686(0x19f)]('\x20\x20'+''[_0x192686(0x14f)](0x11)+_0x192686(0x16b)+_0x1f6caa[_0x192686(0x167)]['path']);}return console['log'](),console[_0x192686(0x19f)](a29_0x1f592c['bold'](_0x192686(0x191))),console['log'](a29_0x1f592c[_0x192686(0x188)]('\x20\x20─'['repeat'](0x1e))),console['log'](_0x192686(0x18c)+a29_0x1f592c[_0x192686(0x17f)](AUTH_MODE[_0x192686(0x1a2)]+'\x20(accessKey)')),console['log'](_0x192686(0x170)+a29_0x1f592c[_0x192686(0x188)](_0x192686(0x15e))),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0x1bb284){const _0x20a299=a29_0x4bca;if(_0x1bb284[_0x20a299(0x14d)]==='ok')return a29_0x1f592c[_0x20a299(0x17f)](_0x20a299(0x155));if(_0x1bb284[_0x20a299(0x14d)]===_0x20a299(0x197))return a29_0x1f592c[_0x20a299(0x188)](_0x20a299(0x171));if(_0x1bb284[_0x20a299(0x14d)]===_0x20a299(0x183))return a29_0x1f592c['yellow'](_0x20a299(0x19c));return a29_0x1f592c[_0x20a299(0x166)](_0x20a299(0x16a)+(_0x1bb284[_0x20a299(0x18b)]?':\x20'+_0x1bb284[_0x20a299(0x18b)]:''));}export const doctorDefinition={'service':a29_0x51fddc(0x16e),'command':'check','description':a29_0x51fddc(0x172),'risk':a29_0x51fddc(0x179),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a29_0x3f32e6=a29_0x3458;function a29_0x3458(_0x32dfa0,_0x47d2dc){_0x32dfa0=_0x32dfa0-0x85;const _0x53e03a=a29_0x53e0();let _0x34586d=_0x53e03a[_0x32dfa0];return _0x34586d;}(function(_0x3ebd26,_0x535f97){const _0x5ca9c7=a29_0x3458,_0x418d3e=_0x3ebd26();while(!![]){try{const _0x2b9037=-parseInt(_0x5ca9c7(0x86))/0x1*(-parseInt(_0x5ca9c7(0xb7))/0x2)+parseInt(_0x5ca9c7(0x88))/0x3*(parseInt(_0x5ca9c7(0xc8))/0x4)+-parseInt(_0x5ca9c7(0xbd))/0x5*(-parseInt(_0x5ca9c7(0xa4))/0x6)+parseInt(_0x5ca9c7(0xb8))/0x7*(parseInt(_0x5ca9c7(0xc2))/0x8)+-parseInt(_0x5ca9c7(0x91))/0x9*(-parseInt(_0x5ca9c7(0x8f))/0xa)+-parseInt(_0x5ca9c7(0xcf))/0xb*(parseInt(_0x5ca9c7(0x9d))/0xc)+-parseInt(_0x5ca9c7(0xaa))/0xd;if(_0x2b9037===_0x535f97)break;else _0x418d3e['push'](_0x418d3e['shift']());}catch(_0x25147c){_0x418d3e['push'](_0x418d3e['shift']());}}}(a29_0x53e0,0x6756d));import a29_0xd5c414 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a29_0x53e0(){const _0x123467=['arch','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','30773UQMvqL','doctor','9579ROFHCd','ClientAk','✓\x20Loaded','appCode','(set,\x20length=','commandCount','\x20doctor','18900gxSnhi','services','117fdCfgc','defaultApp','gray','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20(legacy/compat\x20only)','\x20\x20Config\x20Files','\x20\x20API\x20Endpoints','\x20(accessKey)','path','env','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','60JKnZPV','(no\x20file)','log','⚠\x20Empty','\x20commands)','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1230nbiAbe','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','(default:\x20','version','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','pageSize','418626oOxUZR','✗\x20Invalid\x20JSON','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','(none)','currentApp','message','✗\x20Invalid','status','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','\x20\x20auth\x20(effective):\x20','\x20\x20Merged\x20Config','\x20\x20Config\x20JSON','20uQAIgP','252bGyEJr','repeat','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','missing','3910yokCEk','locale','bold','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','43048GjTOJy','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','yellow','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','(unnamed)','44wEqhCP','verbose','(not\x20found)','accessKey','format','length','source','585134xrIWAQ','red','green'];a29_0x53e0=function(){return _0x123467;};return a29_0x53e0();}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';async function execute(_0x4335da){const _0x5477d8=a29_0x3458,_0x9d9880=getCliVersion(),_0x3ba3a7=buildConfigFromFlags({});await initGlobalEnvironment(_0x3ba3a7),console['log'](),console[_0x5477d8(0x9f)](a29_0xd5c414[_0x5477d8(0xbf)](CLI_BIN_NAME+_0x5477d8(0x8e))),console[_0x5477d8(0x9f)](a29_0xd5c414[_0x5477d8(0x93)]('─'[_0x5477d8(0xb9)](0x32))),console[_0x5477d8(0x9f)](_0x5477d8(0xa5)+_0x9d9880),console[_0x5477d8(0x9f)](_0x5477d8(0xa3)+process[_0x5477d8(0xa7)]),console[_0x5477d8(0x9f)](_0x5477d8(0xa2)+process['platform']+'\x20'+process[_0x5477d8(0xd2)]),console[_0x5477d8(0x9f)](),console[_0x5477d8(0x9f)](a29_0xd5c414['bold'](_0x5477d8(0x96))),console['log'](a29_0xd5c414[_0x5477d8(0x93)](_0x5477d8(0xc1)['repeat'](0x1e)));const _0x52dafb=getGlobalConfigPath(),_0x42a5c8=getProjectConfigPath();console[_0x5477d8(0x9f)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x52dafb||a29_0xd5c414[_0x5477d8(0x93)](_0x5477d8(0xca)))),console[_0x5477d8(0x9f)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x42a5c8||a29_0xd5c414[_0x5477d8(0x93)](_0x5477d8(0xca)))),console[_0x5477d8(0x9f)](),console['log'](a29_0xd5c414['bold'](_0x5477d8(0xb6))),console[_0x5477d8(0x9f)](a29_0xd5c414[_0x5477d8(0x93)](_0x5477d8(0xc1)[_0x5477d8(0xb9)](0x1e)));const _0x332eea=(_0x43f7c7,_0x5f29c2)=>{const _0x4bd373=_0x5477d8;if(!_0x5f29c2){console[_0x4bd373(0x9f)]('\x20\x20'+_0x43f7c7['padEnd'](0x11)+'\x20'+a29_0xd5c414[_0x4bd373(0x93)](_0x4bd373(0x9e)));return;}const _0x7b953e=inspectCliConfigJsonFile(_0x5f29c2);if(_0x7b953e[_0x4bd373(0xb1)]==='ok')console[_0x4bd373(0x9f)]('\x20\x20'+_0x43f7c7[_0x4bd373(0x9c)](0x11)+'\x20'+a29_0xd5c414[_0x4bd373(0xd1)]('✓\x20Valid\x20JSON'));else{if(_0x7b953e['status']==='empty')console[_0x4bd373(0x9f)]('\x20\x20'+_0x43f7c7['padEnd'](0x11)+'\x20'+a29_0xd5c414['yellow']('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x7b953e[_0x4bd373(0xb1)]===_0x4bd373(0xbc)?console[_0x4bd373(0x9f)]('\x20\x20'+_0x43f7c7['padEnd'](0x11)+'\x20'+a29_0xd5c414[_0x4bd373(0x93)](_0x4bd373(0xb3))):(console[_0x4bd373(0x9f)]('\x20\x20'+_0x43f7c7['padEnd'](0x11)+'\x20'+a29_0xd5c414[_0x4bd373(0xd0)](_0x4bd373(0xab))),console[_0x4bd373(0x9f)]('\x20\x20'+''[_0x4bd373(0x9c)](0x11)+'\x20'+a29_0xd5c414[_0x4bd373(0xd0)](_0x7b953e['message'])));}};_0x332eea('Global',_0x52dafb),_0x332eea('Project',_0x42a5c8),console[_0x5477d8(0x9f)](),console[_0x5477d8(0x9f)](a29_0xd5c414['bold'](_0x5477d8(0xb5))),console[_0x5477d8(0x9f)](a29_0xd5c414[_0x5477d8(0x93)](_0x5477d8(0xc1)[_0x5477d8(0xb9)](0x1e))),console[_0x5477d8(0x9f)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3ba3a7[_0x5477d8(0x8b)]||a29_0xd5c414[_0x5477d8(0xd0)]('(not\x20set)'))),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3ba3a7[_0x5477d8(0x9a)]);const _0x565fa3=isLegacyCompatConfigKey(_0x5477d8(0xbe))?a29_0xd5c414['gray'](_0x3ba3a7[_0x5477d8(0xbe)]+_0x5477d8(0x95)):_0x3ba3a7[_0x5477d8(0xbe)];console[_0x5477d8(0x9f)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x565fa3),console['log'](_0x5477d8(0xa8)+(_0x3ba3a7[_0x5477d8(0x92)]||a29_0xd5c414[_0x5477d8(0x93)](_0x5477d8(0xad)))),console['log'](_0x5477d8(0xac)+(_0x3ba3a7[_0x5477d8(0xae)]||a29_0xd5c414[_0x5477d8(0x93)](_0x5477d8(0xad)))),console['log'](_0x5477d8(0xb2)+(_0x3ba3a7[_0x5477d8(0xcc)]||a29_0xd5c414[_0x5477d8(0x93)](_0x5477d8(0xa6)+DEFAULT_CONFIG_VALUES[_0x5477d8(0xcc)]+')'))),console['log'](_0x5477d8(0x94)+(_0x3ba3a7[_0x5477d8(0xa9)]??a29_0xd5c414[_0x5477d8(0x93)]('(default)'))),console['log'](_0x5477d8(0xc0)+_0x3ba3a7['riskLevel']),console[_0x5477d8(0x9f)](_0x5477d8(0xc4)+_0x3ba3a7[_0x5477d8(0xc9)]),console[_0x5477d8(0x9f)](_0x5477d8(0xb4)+AUTH_MODE[_0x5477d8(0x89)]),console[_0x5477d8(0x9f)]('\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'+(_0x3ba3a7[_0x5477d8(0xcb)]?a29_0xd5c414[_0x5477d8(0xd1)](_0x5477d8(0x8c)+_0x3ba3a7[_0x5477d8(0xcb)][_0x5477d8(0xcd)]+')'):a29_0xd5c414[_0x5477d8(0x93)](_0x5477d8(0xad)))),console['log'](),console[_0x5477d8(0x9f)](a29_0xd5c414[_0x5477d8(0xbf)](_0x5477d8(0x97))),console[_0x5477d8(0x9f)](a29_0xd5c414[_0x5477d8(0x93)](_0x5477d8(0xc1)['repeat'](0x1e))),console['log'](_0x5477d8(0x85)+getApiDomain()),console[_0x5477d8(0x9f)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x5477d8(0x9f)](_0x5477d8(0xd3)+getRuntimeDomain()),console['log'](),console['log'](a29_0xd5c414['bold']('\x20\x20Service\x20Tree')),console[_0x5477d8(0x9f)](a29_0xd5c414[_0x5477d8(0x93)](_0x5477d8(0xc1)[_0x5477d8(0xb9)](0x1e)));const _0xd70f2d=inspectServiceRegistry();console[_0x5477d8(0x9f)](_0x5477d8(0xbb)+_0xd70f2d['registryPath']),console[_0x5477d8(0x9f)](_0x5477d8(0x9b)+formatServiceRegistryStatus(_0xd70f2d)),console['log'](_0x5477d8(0xc6)+_0xd70f2d['serviceCount']),console['log']('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0xd70f2d['commandCount']);for(const _0x4be345 of _0xd70f2d[_0x5477d8(0x90)]){console[_0x5477d8(0x9f)]('\x20\x20'+(_0x4be345['serviceCode']+':')['padEnd'](0x11)+'\x20'+(_0x4be345['name']||a29_0xd5c414[_0x5477d8(0x93)](_0x5477d8(0xc7)))+'\x20('+_0x4be345[_0x5477d8(0x8d)]+_0x5477d8(0xa1)),console[_0x5477d8(0x9f)]('\x20\x20'+''[_0x5477d8(0x9c)](0x11)+'\x20Imported\x20from:\x20'+_0x4be345[_0x5477d8(0xce)][_0x5477d8(0x99)]);}return console[_0x5477d8(0x9f)](),console[_0x5477d8(0x9f)](a29_0xd5c414[_0x5477d8(0xbf)]('\x20\x20Auth')),console['log'](a29_0xd5c414[_0x5477d8(0x93)](_0x5477d8(0xc1)['repeat'](0x1e))),console[_0x5477d8(0x9f)](_0x5477d8(0xc3)+a29_0xd5c414[_0x5477d8(0xd1)](AUTH_MODE[_0x5477d8(0x89)]+_0x5477d8(0x98))),console[_0x5477d8(0x9f)]('\x20\x20Session\x20check:\x20\x20\x20'+a29_0xd5c414[_0x5477d8(0x93)]('(removed\x20—\x20cookie\x20auth\x20disabled)')),console[_0x5477d8(0x9f)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x2c89ef){const _0x5afffb=a29_0x3458;if(_0x2c89ef['status']==='ok')return a29_0xd5c414['green'](_0x5afffb(0x8a));if(_0x2c89ef[_0x5afffb(0xb1)]===_0x5afffb(0xbc))return a29_0xd5c414[_0x5afffb(0x93)](_0x5afffb(0xca));if(_0x2c89ef['status']==='empty')return a29_0xd5c414[_0x5afffb(0xc5)](_0x5afffb(0xa0));return a29_0xd5c414['red'](_0x5afffb(0xb0)+(_0x2c89ef['message']?':\x20'+_0x2c89ef[_0x5afffb(0xaf)]:''));}export const doctorDefinition={'service':a29_0x3f32e6(0x87),'command':'check','description':a29_0x3f32e6(0xba),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};