@lovrabet/lovrabet-cli 2.1.12 → 2.1.13

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 (120) 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/function-name-adapter.js +1 -0
  41. package/lib/commands/service/index.js +1 -1
  42. package/lib/commands/service/registry.js +1 -1
  43. package/lib/commands/skill/commands/create.js +1 -1
  44. package/lib/commands/skill/commands/install.js +1 -1
  45. package/lib/commands/skill/commands/list.js +1 -1
  46. package/lib/commands/skill/commands/push.js +1 -1
  47. package/lib/commands/skill/commands/validate.js +1 -1
  48. package/lib/commands/skill/flags.js +1 -1
  49. package/lib/commands/skill/index.js +1 -1
  50. package/lib/commands/skill/manifest-helpers.js +1 -1
  51. package/lib/commands/skill/push-execute.js +1 -1
  52. package/lib/commands/skill/push-flow-helpers.js +1 -1
  53. package/lib/commands/skill/push-retarget.js +1 -1
  54. package/lib/commands/skill/scopes.js +1 -1
  55. package/lib/commands/skill/summary.js +1 -1
  56. package/lib/commands/skill/templates.js +1 -1
  57. package/lib/commands/skill/validate.js +1 -1
  58. package/lib/commands/sql/detail.js +1 -1
  59. package/lib/commands/sql/exec.js +1 -1
  60. package/lib/commands/sql/index.js +1 -1
  61. package/lib/commands/update.js +1 -1
  62. package/lib/commands/workspace/index.js +1 -1
  63. package/lib/config/schema.js +1 -1
  64. package/lib/constant/app.js +1 -1
  65. package/lib/constant/auth-mode.js +1 -1
  66. package/lib/constant/cli.js +1 -1
  67. package/lib/constant/defaults.js +1 -1
  68. package/lib/constant/distribution.js +1 -1
  69. package/lib/constant/domain.js +1 -1
  70. package/lib/constant/env.js +1 -1
  71. package/lib/constant/output.js +1 -1
  72. package/lib/constant/product.js +1 -1
  73. package/lib/constant/risk.js +1 -1
  74. package/lib/constant/url.js +1 -1
  75. package/lib/context.js +1 -1
  76. package/lib/core/api-client.js +1 -1
  77. package/lib/core/db-resolver.js +1 -1
  78. package/lib/core/sdk-client.js +1 -1
  79. package/lib/errors.js +1 -1
  80. package/lib/framework/build-all-flags.js +1 -1
  81. package/lib/framework/dryrun.js +1 -1
  82. package/lib/framework/flags.js +1 -1
  83. package/lib/framework/help.js +1 -1
  84. package/lib/framework/index.js +1 -1
  85. package/lib/framework/output.js +1 -1
  86. package/lib/framework/preparse.js +1 -1
  87. package/lib/framework/rate-limit.js +1 -1
  88. package/lib/framework/response.js +1 -1
  89. package/lib/framework/runner-confirmation.js +1 -1
  90. package/lib/framework/runner-error.js +1 -1
  91. package/lib/framework/runner.js +1 -1
  92. package/lib/framework/schema-export.js +1 -1
  93. package/lib/framework/service-order.js +1 -1
  94. package/lib/framework/types.js +1 -1
  95. package/lib/generated/build-info.js +1 -1
  96. package/lib/help.js +1 -1
  97. package/lib/skills/npx-skills-add.js +1 -1
  98. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  99. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  100. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  101. package/lib/skills/runtime-skill-sync/links.js +1 -1
  102. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  103. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  104. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  105. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  106. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  107. package/lib/skills/runtime-skill-sync/push.js +1 -1
  108. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  109. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  110. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  111. package/lib/skills/runtime-skill-sync.js +1 -1
  112. package/lib/utils/apply-jq-filter.js +1 -1
  113. package/lib/utils/logger.js +1 -1
  114. package/lib/utils/lossless-json.js +1 -1
  115. package/lib/utils/params.js +1 -1
  116. package/lib/utils/platform.js +1 -1
  117. package/lib/utils/update-notice.js +1 -1
  118. package/lib/utils/version.js +1 -1
  119. package/lib/utils/write-cli-side-channel.js +1 -1
  120. package/package.json +1 -1
@@ -1 +1 @@
1
- const a14_0x4e64da=a14_0x2aa8;(function(_0x1fa3a3,_0xf6aea){const _0x2f958a=a14_0x2aa8,_0x38b902=_0x1fa3a3();while(!![]){try{const _0x1f81ec=-parseInt(_0x2f958a(0x1e8))/0x1*(parseInt(_0x2f958a(0x1dc))/0x2)+-parseInt(_0x2f958a(0x1d7))/0x3+-parseInt(_0x2f958a(0x1ed))/0x4*(parseInt(_0x2f958a(0x1eb))/0x5)+-parseInt(_0x2f958a(0x1d8))/0x6*(-parseInt(_0x2f958a(0x1db))/0x7)+parseInt(_0x2f958a(0x1dd))/0x8*(parseInt(_0x2f958a(0x1da))/0x9)+parseInt(_0x2f958a(0x1e6))/0xa*(parseInt(_0x2f958a(0x1ea))/0xb)+parseInt(_0x2f958a(0x1e9))/0xc*(parseInt(_0x2f958a(0x1e0))/0xd);if(_0x1f81ec===_0xf6aea)break;else _0x38b902['push'](_0x38b902['shift']());}catch(_0x382f34){_0x38b902['push'](_0x38b902['shift']());}}}(a14_0x5a93,0x7c986));function a14_0x2aa8(_0x555bbc,_0x3a66ca){_0x555bbc=_0x555bbc-0x1d7;const _0x5a935f=a14_0x5a93();let _0x2aa87a=_0x5a935f[_0x555bbc];return _0x2aa87a;}function a14_0x5a93(){const _0x334497=['26850BnXdFP','detail','585mAANte','749CKWVsV','2LOeIKk','114056PTSQxN','Script\x20ID','Get\x20BFF\x20script\x20details\x20by\x20ID','3356132duxCxr','scriptType','bool','bff','num','(none)','870pLxZoE','appCode','407399sWcFVZ','48XoZusH','6017QzyzgV','40DXQRqP','updatedTime','417232UcyEKO','2200710tMcPEp'];a14_0x5a93=function(){return _0x334497;};return a14_0x5a93();}import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a14_0x4e64da(0x1e3),'command':a14_0x4e64da(0x1d9),'description':a14_0x4e64da(0x1df),'risk':'read','flags':[{...ID_FLAG,'description':a14_0x4e64da(0x1de)},VERBOSE_FLAG],async 'execute'(_0x235e08){const _0x5037eb=a14_0x4e64da,_0x156f79=await getBffScriptInfo(_0x235e08[_0x5037eb(0x1e4)]('id')),_0x33341c=_0x235e08[_0x5037eb(0x1e2)]('verbose');if(_0x33341c)return{'ok':!![],'data':_0x156f79};return{'ok':!![],'data':{'id':_0x156f79['id'],'appCode':_0x156f79[_0x5037eb(0x1e7)],'functionName':_0x156f79['functionName']??'','scriptType':_0x156f79[_0x5037eb(0x1e1)],'description':_0x156f79['description']||_0x5037eb(0x1e5),'createdTime':_0x156f79['createdTime']??'','updatedTime':_0x156f79[_0x5037eb(0x1ec)]??''}};}};
1
+ const a14_0x4bddaa=a14_0x5704;function a14_0x5750(){const _0x40cdc7=['309382piBFdL','11KVsGxH','8LohRCl','2661PIdLCO','detail','read','bff','Get\x20a\x20BFF\x20endpoint\x20contract\x20by\x20function\x20name','3416850XcTbZy','4115tCPRjC','description','str','appCode','4348SPghQY','6296731hZjlAM','functionName','version','BFF\x20function\x20name','gmtModified','name','8520080iKYKCV','3054TxWscT','1983034UceMkU'];a14_0x5750=function(){return _0x40cdc7;};return a14_0x5750();}function a14_0x5704(_0x1be8ba,_0x8745c7){_0x1be8ba=_0x1be8ba-0xcc;const _0x57503f=a14_0x5750();let _0x570447=_0x57503f[_0x1be8ba];return _0x570447;}(function(_0x40ce12,_0x273bdc){const _0x54bf1a=a14_0x5704,_0x26b3d8=_0x40ce12();while(!![]){try{const _0x2f2bbb=-parseInt(_0x54bf1a(0xcc))/0x1+-parseInt(_0x54bf1a(0xe2))/0x2+-parseInt(_0x54bf1a(0xcf))/0x3*(-parseInt(_0x54bf1a(0xd9))/0x4)+parseInt(_0x54bf1a(0xd5))/0x5*(-parseInt(_0x54bf1a(0xe1))/0x6)+parseInt(_0x54bf1a(0xda))/0x7+parseInt(_0x54bf1a(0xce))/0x8*(-parseInt(_0x54bf1a(0xd4))/0x9)+parseInt(_0x54bf1a(0xe0))/0xa*(parseInt(_0x54bf1a(0xcd))/0xb);if(_0x2f2bbb===_0x273bdc)break;else _0x26b3d8['push'](_0x26b3d8['shift']());}catch(_0x518a6b){_0x26b3d8['push'](_0x26b3d8['shift']());}}}(a14_0x5750,0x9673e));import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a14_0x4bddaa(0xd2),'command':a14_0x4bddaa(0xd0),'description':a14_0x4bddaa(0xd3),'risk':a14_0x4bddaa(0xd1),'flags':[{...NAME_FLAG,'required':!![],'description':a14_0x4bddaa(0xdd)}],async 'execute'(_0x4cc234){const _0x2e90ba=a14_0x4bddaa,_0x18ade7=await getBffEndpointContract(_0x4cc234['appCode'],_0x4cc234[_0x2e90ba(0xd7)](_0x2e90ba(0xdf)));return{'ok':!![],'data':{'appCode':_0x18ade7[_0x2e90ba(0xd8)],'functionName':_0x18ade7[_0x2e90ba(0xdb)],'description':_0x18ade7[_0x2e90ba(0xd6)]||'(none)','version':_0x18ade7[_0x2e90ba(0xdc)],'gmtModified':_0x18ade7[_0x2e90ba(0xde)]}};}};
@@ -1 +1 @@
1
- const a15_0x423078=a15_0x38ce;(function(_0x20bfe6,_0x4b875e){const _0x1c51c9=a15_0x38ce,_0x5b1122=_0x20bfe6();while(!![]){try{const _0x262116=-parseInt(_0x1c51c9(0x7f))/0x1+-parseInt(_0x1c51c9(0x7e))/0x2+parseInt(_0x1c51c9(0x8c))/0x3+parseInt(_0x1c51c9(0x7c))/0x4*(-parseInt(_0x1c51c9(0x80))/0x5)+-parseInt(_0x1c51c9(0x7d))/0x6+parseInt(_0x1c51c9(0x8b))/0x7*(parseInt(_0x1c51c9(0x85))/0x8)+-parseInt(_0x1c51c9(0x87))/0x9*(-parseInt(_0x1c51c9(0x84))/0xa);if(_0x262116===_0x4b875e)break;else _0x5b1122['push'](_0x5b1122['shift']());}catch(_0x56c417){_0x5b1122['push'](_0x5b1122['shift']());}}}(a15_0x2fc1,0xcd2b1));function a15_0x2fc1(){const _0x2796d1=['27460YYJwhT','5597634giMmPp','2686016SnPEvn','579234fPxyVw','325qrwVmh','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','BFF\x20function\x20name\x20to\x20execute','now','1070HgAUnO','40KfZRed','name','242037IVwOfd','exec','params','bff','392833pVzZGk','2950887jLjdqF','str'];a15_0x2fc1=function(){return _0x2796d1;};return a15_0x2fc1();}import{executeSdkBff}from'../../core/sdk-client.js';function a15_0x38ce(_0x229898,_0x20013f){_0x229898=_0x229898-0x7c;const _0x2fc154=a15_0x2fc1();let _0x38ce9b=_0x2fc154[_0x229898];return _0x38ce9b;}import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a15_0x423078(0x8a),'command':a15_0x423078(0x88),'description':a15_0x423078(0x81),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':a15_0x423078(0x82)},PARAMS_FLAG],async 'execute'(_0x2bf8a3){const _0x271058=a15_0x423078,_0xaaaf34=parseJsonParams(_0x2bf8a3[_0x271058(0x8d)](_0x271058(0x89))),_0x6fdf0d=Date[_0x271058(0x83)](),_0x1381a1=await executeSdkBff(_0x2bf8a3['str'](_0x271058(0x86)),_0xaaaf34),_0x573c43=Date[_0x271058(0x83)]()-_0x6fdf0d;return{'ok':!![],'data':{'result':_0x1381a1,'elapsed':_0x573c43},'message':'BFF\x20executed\x20in\x20'+_0x573c43+'ms'};}};
1
+ const a15_0x1801ac=a15_0x7a32;function a15_0x1bef(){const _0x263f34=['38QTENEo','exec','309014UokQSa','params','name','now','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','str','3487458ZExohV','BFF\x20function\x20name\x20to\x20execute','4633857Rodlxj','BFF\x20executed\x20in\x20','2961556vYOBZJ','bff','read','4201470kdWRjz','20040wHctky','16qHbcLC','1770085qfbqyu'];a15_0x1bef=function(){return _0x263f34;};return a15_0x1bef();}(function(_0xdd6c61,_0x2500ab){const _0x50e04d=a15_0x7a32,_0x188a0a=_0xdd6c61();while(!![]){try{const _0xf64430=-parseInt(_0x50e04d(0x1eb))/0x1+parseInt(_0x50e04d(0x1e9))/0x2*(parseInt(_0x50e04d(0x1f9))/0x3)+-parseInt(_0x50e04d(0x1f5))/0x4+parseInt(_0x50e04d(0x1fb))/0x5+parseInt(_0x50e04d(0x1f1))/0x6+-parseInt(_0x50e04d(0x1f8))/0x7+parseInt(_0x50e04d(0x1fa))/0x8*(parseInt(_0x50e04d(0x1f3))/0x9);if(_0xf64430===_0x2500ab)break;else _0x188a0a['push'](_0x188a0a['shift']());}catch(_0x190416){_0x188a0a['push'](_0x188a0a['shift']());}}}(a15_0x1bef,0x6bfc9));function a15_0x7a32(_0xb4347d,_0x34b4eb){_0xb4347d=_0xb4347d-0x1e9;const _0x1bef81=a15_0x1bef();let _0x7a32ac=_0x1bef81[_0xb4347d];return _0x7a32ac;}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_0x1801ac(0x1f6),'command':a15_0x1801ac(0x1ea),'description':a15_0x1801ac(0x1ef),'risk':a15_0x1801ac(0x1f7),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x1801ac(0x1f2)},PARAMS_FLAG],async 'execute'(_0x874c72){const _0x22c71c=a15_0x1801ac,_0x57b28e=parseJsonParams(_0x874c72[_0x22c71c(0x1f0)](_0x22c71c(0x1ec))),_0x4fea53=Date[_0x22c71c(0x1ee)](),_0x298f40=await executeSdkBff(_0x874c72[_0x22c71c(0x1f0)](_0x22c71c(0x1ed)),_0x57b28e),_0x7e639=Date[_0x22c71c(0x1ee)]()-_0x4fea53;return{'ok':!![],'data':{'result':_0x298f40,'elapsed':_0x7e639},'message':_0x22c71c(0x1f4)+_0x7e639+'ms'};}};
@@ -1 +1 @@
1
- (function(_0xb462f,_0x23569f){const _0xf63a3=a16_0x16ec,_0x388318=_0xb462f();while(!![]){try{const _0x300dfc=-parseInt(_0xf63a3(0x18a))/0x1+parseInt(_0xf63a3(0x186))/0x2*(-parseInt(_0xf63a3(0x185))/0x3)+-parseInt(_0xf63a3(0x183))/0x4*(-parseInt(_0xf63a3(0x187))/0x5)+parseInt(_0xf63a3(0x182))/0x6+-parseInt(_0xf63a3(0x184))/0x7+parseInt(_0xf63a3(0x189))/0x8*(-parseInt(_0xf63a3(0x18b))/0x9)+parseInt(_0xf63a3(0x188))/0xa;if(_0x300dfc===_0x23569f)break;else _0x388318['push'](_0x388318['shift']());}catch(_0x1e6864){_0x388318['push'](_0x388318['shift']());}}}(a16_0x3677,0xd8d5b));function a16_0x16ec(_0x205365,_0x46b069){_0x205365=_0x205365-0x182;const _0x36770c=a16_0x3677();let _0x16ec1a=_0x36770c[_0x205365];return _0x16ec1a;}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];function a16_0x3677(){const _0x5ee958=['2335ICHTKY','45557380DxEmiy','10020536HYiaRA','1483936MFNkFh','9VhfGds','3371520SfBEuy','7852Dzllev','10450482WSsHUS','2750385PdgjNf','2NTgYKB'];a16_0x3677=function(){return _0x5ee958;};return a16_0x3677();}
1
+ function a16_0x3aa5(){const _0x5aa983=['3117960KiiyCS','8703RwtBjd','18822420gUFsoZ','2005344cioluK','1880xsivvL','199754yxZsVJ','2004016LRHuYS','5FPdpfx','2525428AzOQZY','5EOdZMV'];a16_0x3aa5=function(){return _0x5aa983;};return a16_0x3aa5();}(function(_0x3f6688,_0x3281d7){const _0x2f40e=a16_0x187f,_0x2887cc=_0x3f6688();while(!![]){try{const _0x17e9f7=-parseInt(_0x2f40e(0xb7))/0x1*(-parseInt(_0x2f40e(0xbf))/0x2)+parseInt(_0x2f40e(0xbd))/0x3+-parseInt(_0x2f40e(0xb8))/0x4*(-parseInt(_0x2f40e(0xb9))/0x5)+parseInt(_0x2f40e(0xba))/0x6+parseInt(_0x2f40e(0xc0))/0x7+-parseInt(_0x2f40e(0xbe))/0x8*(parseInt(_0x2f40e(0xbb))/0x9)+-parseInt(_0x2f40e(0xbc))/0xa;if(_0x17e9f7===_0x3281d7)break;else _0x2887cc['push'](_0x2887cc['shift']());}catch(_0x396aa7){_0x2887cc['push'](_0x2887cc['shift']());}}}(a16_0x3aa5,0x79023));function a16_0x187f(_0x36b23c,_0x18a68e){_0x36b23c=_0x36b23c-0xb7;const _0x3aa58c=a16_0x3aa5();let _0x187f7c=_0x3aa58c[_0x36b23c];return _0x187f7c;}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- function a17_0x59e9(){const _0x83fce5=['log','skipped','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','517974ErRhCi','4845470fIRdLn','cli-skill','Skipped\x20npx\x20(','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','4323260wzCqmv','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','8fSvecj','3540024TiVxIM','unknown','cli-skill-install','16904scCOgs','CLI\x20Built-in\x20Skill\x20installed','cwd','nonInteractive','849574JLkynf','npx\x20skills\x20add\x20failed:\x20','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','../../skills/npx-skills-add.js','inherit','install','apiError','\x20-g\x20-y','12935321VNFOLP','pipe'];a17_0x59e9=function(){return _0x83fce5;};return a17_0x59e9();}const a17_0x10b8d4=a17_0xb00b;(function(_0x2efc8d,_0x380917){const _0x16195e=a17_0xb00b,_0x18cc1c=_0x2efc8d();while(!![]){try{const _0x300edf=parseInt(_0x16195e(0x115))/0x1+-parseInt(_0x16195e(0x119))/0x2+parseInt(_0x16195e(0x10a))/0x3+parseInt(_0x16195e(0x10f))/0x4+parseInt(_0x16195e(0x10b))/0x5+parseInt(_0x16195e(0x112))/0x6+-parseInt(_0x16195e(0x121))/0x7*(parseInt(_0x16195e(0x111))/0x8);if(_0x300edf===_0x380917)break;else _0x18cc1c['push'](_0x18cc1c['shift']());}catch(_0x131830){_0x18cc1c['push'](_0x18cc1c['shift']());}}}(a17_0x59e9,0x87ef1));function a17_0xb00b(_0x4012c3,_0x18b63c){_0x4012c3=_0x4012c3-0x106;const _0x59e95a=a17_0x59e9();let _0xb00b1c=_0x59e95a[_0x4012c3];return _0xb00b1c;}import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a17_0x10b8d4(0x10c),'command':a17_0x10b8d4(0x11e),'description':a17_0x10b8d4(0x10e),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x25e499){const _0x107f7e=a17_0x10b8d4;logger['setLogPath'](process[_0x107f7e(0x117)]()),logger['info'](_0x107f7e(0x114),_0x107f7e(0x110));const {LOVRABET_SKILL_SOURCE:_0x580377,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x33241a,runNpxSkillsAddGlobal:_0x2d3dec}=await import(_0x107f7e(0x11c)),_0x3869eb=_0x25e499[_0x107f7e(0x118)]?_0x107f7e(0x106):_0x107f7e(0x11d);console[_0x107f7e(0x107)](_0x107f7e(0x11b)+_0x580377+'\x20-g\x20-y)...');const _0x5ada51=_0x2d3dec(process[_0x107f7e(0x117)](),_0x580377,{'stdio':_0x3869eb});if(_0x5ada51[_0x107f7e(0x108)])console[_0x107f7e(0x107)](_0x107f7e(0x10d)+_0x33241a+'=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.');else{if(_0x5ada51['ok'])console['log'](_0x107f7e(0x116));else throw CliErrors[_0x107f7e(0x11f)](_0x107f7e(0x11a)+(_0x5ada51['error']||_0x107f7e(0x113)),_0x107f7e(0x109)+_0x580377+_0x107f7e(0x120));}return{'ok':!![]};}}];
1
+ const a17_0x51b346=a17_0x26ff;(function(_0x3ab305,_0x21d42b){const _0x3e1c9a=a17_0x26ff,_0xd1149c=_0x3ab305();while(!![]){try{const _0x141b20=parseInt(_0x3e1c9a(0x114))/0x1*(-parseInt(_0x3e1c9a(0x11a))/0x2)+parseInt(_0x3e1c9a(0x116))/0x3+-parseInt(_0x3e1c9a(0x121))/0x4*(-parseInt(_0x3e1c9a(0x127))/0x5)+-parseInt(_0x3e1c9a(0x130))/0x6+-parseInt(_0x3e1c9a(0x120))/0x7*(parseInt(_0x3e1c9a(0x12d))/0x8)+-parseInt(_0x3e1c9a(0x123))/0x9*(-parseInt(_0x3e1c9a(0x12b))/0xa)+-parseInt(_0x3e1c9a(0x11b))/0xb;if(_0x141b20===_0x21d42b)break;else _0xd1149c['push'](_0xd1149c['shift']());}catch(_0xf3763c){_0xd1149c['push'](_0xd1149c['shift']());}}}(a17_0x1b5d,0x67271));function a17_0x26ff(_0x407c60,_0x5b66b1){_0x407c60=_0x407c60-0x113;const _0x1b5d24=a17_0x1b5d();let _0x26ffd5=_0x1b5d24[_0x407c60];return _0x26ffd5;}import{CliErrors}from'../../errors.js';function a17_0x1b5d(){const _0x222df7=['cli-skill','log','pipe','10oVZeYe','inherit','nonInteractive','setLogPath','570SPaQmz','install','2152208IcinGr','cli-skill-install','\x20-g\x20-y)...','1213446wRiSPO','apiError','65rBIGcO','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','1114299hFbCqk','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','\x20-g\x20-y','4772FZQvEP','5085498aCMnWr','skipped','error','cwd','unknown','7NMneDA','1421204hYHwml','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','67761QnpwSS'];a17_0x1b5d=function(){return _0x222df7;};return a17_0x1b5d();}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a17_0x51b346(0x124),'command':a17_0x51b346(0x12c),'description':'Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x35b5b1){const _0x3a6d96=a17_0x51b346;logger[_0x3a6d96(0x12a)](process[_0x3a6d96(0x11e)]()),logger['info'](_0x3a6d96(0x12e),_0x3a6d96(0x117));const {LOVRABET_SKILL_SOURCE:_0x1d9c09,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x13ff21,runNpxSkillsAddGlobal:_0x440007}=await import('../../skills/npx-skills-add.js'),_0x188bb2=_0x35b5b1[_0x3a6d96(0x129)]?_0x3a6d96(0x126):_0x3a6d96(0x128);console['log'](_0x3a6d96(0x122)+_0x1d9c09+_0x3a6d96(0x12f));const _0x499724=_0x440007(process['cwd'](),_0x1d9c09,{'stdio':_0x188bb2});if(_0x499724[_0x3a6d96(0x11c)])console[_0x3a6d96(0x125)]('Skipped\x20npx\x20('+_0x13ff21+_0x3a6d96(0x118));else{if(_0x499724['ok'])console[_0x3a6d96(0x125)]('CLI\x20Built-in\x20Skill\x20installed');else throw CliErrors[_0x3a6d96(0x113)]('npx\x20skills\x20add\x20failed:\x20'+(_0x499724[_0x3a6d96(0x11d)]||_0x3a6d96(0x11f)),_0x3a6d96(0x115)+_0x1d9c09+_0x3a6d96(0x119));}return{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x42c609,_0x4dcc62){const _0x30f810=a18_0x50ec,_0x5a31b5=_0x42c609();while(!![]){try{const _0x2c6349=parseInt(_0x30f810(0x1f9))/0x1*(parseInt(_0x30f810(0x1fa))/0x2)+parseInt(_0x30f810(0x1fc))/0x3*(parseInt(_0x30f810(0x1f2))/0x4)+-parseInt(_0x30f810(0x1fd))/0x5+-parseInt(_0x30f810(0x1f7))/0x6+-parseInt(_0x30f810(0x205))/0x7*(-parseInt(_0x30f810(0x1ff))/0x8)+parseInt(_0x30f810(0x200))/0x9*(-parseInt(_0x30f810(0x1f1))/0xa)+parseInt(_0x30f810(0x1f8))/0xb*(parseInt(_0x30f810(0x1fe))/0xc);if(_0x2c6349===_0x4dcc62)break;else _0x5a31b5['push'](_0x5a31b5['shift']());}catch(_0x162fa4){_0x5a31b5['push'](_0x5a31b5['shift']());}}}(a18_0x3a0a,0xcc1ec));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';function a18_0x3a0a(){const _0x1d88d3=['project-default','11602633hYGvMd','Use\x20only\x20one\x20config\x20scope\x20flag.',',\x20or\x20run\x20`','project','30TYymmY','315272RgjjjP','project-or-global-explicit','\x20(global)','Add\x20--global\x20to\x20write\x20to\x20~/','inProject','8901432VzUJhE','1045eNMGzv','16313vdMvkZ','22JKNyPP','global','48nJzaey','8172390kvWhtC','113556NdNmkd','8BzBbqb','128727vnBttB','global-default','Not\x20inside\x20a\x20project\x20(no\x20','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.'];a18_0x3a0a=function(){return _0x1d88d3;};return a18_0x3a0a();}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(_0x101315){const _0x5c45fc=a18_0x50ec,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x2c59a1}=_0x101315;if(explicitGlobal&&explicitProject)throw CliErrors['validation'](_0x5c45fc(0x203),_0x5c45fc(0x206));if(explicitGlobal)return _0x5c45fc(0x1fb);if(explicitProject)return _0x5c45fc(0x1f0);switch(_0x2c59a1){case _0x5c45fc(0x201):return _0x5c45fc(0x1fb);case _0x5c45fc(0x204):return _0x101315[_0x5c45fc(0x1f6)]??isInProject()?_0x5c45fc(0x1f0):_0x5c45fc(0x1fb);case _0x5c45fc(0x1f3):if(!(_0x101315[_0x5c45fc(0x1f6)]??isInProject()))throw CliErrors['validation'](_0x5c45fc(0x202)+PRODUCT_CONFIG['newConfigFileName']+'\x20found).',_0x5c45fc(0x1f5)+PRODUCT_CONFIG['newConfigFileName']+_0x5c45fc(0x1ef)+CLI_BIN_NAME+'\x20init`\x20first.');return _0x5c45fc(0x1f0);}}export function toScopeFlags(_0x2031a2){const _0x54fa1a=a18_0x50ec;return{'global':_0x2031a2===_0x54fa1a(0x1fb)};}function a18_0x50ec(_0x19db71,_0x339db7){_0x19db71=_0x19db71-0x1ef;const _0x3a0ad5=a18_0x3a0a();let _0x50ec6c=_0x3a0ad5[_0x19db71];return _0x50ec6c;}export function formatScopeLabel(_0x48fa7c){const _0x4ef2b3=a18_0x50ec;return _0x48fa7c==='global'?_0x4ef2b3(0x1f4):'';}
1
+ (function(_0x531054,_0x1417bb){const _0x21c802=a18_0x282f,_0x469156=_0x531054();while(!![]){try{const _0x2205a6=-parseInt(_0x21c802(0x189))/0x1+-parseInt(_0x21c802(0x17c))/0x2+parseInt(_0x21c802(0x17a))/0x3+-parseInt(_0x21c802(0x178))/0x4*(-parseInt(_0x21c802(0x187))/0x5)+parseInt(_0x21c802(0x188))/0x6*(parseInt(_0x21c802(0x177))/0x7)+-parseInt(_0x21c802(0x180))/0x8+parseInt(_0x21c802(0x186))/0x9;if(_0x2205a6===_0x1417bb)break;else _0x469156['push'](_0x469156['shift']());}catch(_0x135f13){_0x469156['push'](_0x469156['shift']());}}}(a18_0x39c1,0x474b1));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';function a18_0x39c1(){const _0x4b0088=['\x20(global)','newConfigFileName','\x20found).','7flQysY','68VUUhkQ','project-default','960651qIUOYG','global-default','654090anvZXE','Add\x20--global\x20to\x20write\x20to\x20~/',',\x20or\x20run\x20`','project','757072wkNIOO','validation','project-or-global-explicit','\x20init`\x20first.','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','global','1497708bwfoxY','128450FaaAch','1966146OgVZij','537354bhgqKT','inProject'];a18_0x39c1=function(){return _0x4b0088;};return a18_0x39c1();}export function resolveConfigScope(_0x3cf643){const _0x22e337=a18_0x282f,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x52c1b1}=_0x3cf643;if(explicitGlobal&&explicitProject)throw CliErrors[_0x22e337(0x181)](_0x22e337(0x184),'Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return _0x22e337(0x185);if(explicitProject)return'project';switch(_0x52c1b1){case _0x22e337(0x17b):return _0x22e337(0x185);case _0x22e337(0x179):return _0x3cf643['inProject']??isInProject()?_0x22e337(0x17f):_0x22e337(0x185);case _0x22e337(0x182):if(!(_0x3cf643[_0x22e337(0x173)]??isInProject()))throw CliErrors[_0x22e337(0x181)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG[_0x22e337(0x175)]+_0x22e337(0x176),_0x22e337(0x17d)+PRODUCT_CONFIG[_0x22e337(0x175)]+_0x22e337(0x17e)+CLI_BIN_NAME+_0x22e337(0x183));return'project';}}export function toScopeFlags(_0x423e31){const _0x196568=a18_0x282f;return{'global':_0x423e31===_0x196568(0x185)};}function a18_0x282f(_0x1ce330,_0x58a710){_0x1ce330=_0x1ce330-0x173;const _0x39c1cc=a18_0x39c1();let _0x282f7c=_0x39c1cc[_0x1ce330];return _0x282f7c;}export function formatScopeLabel(_0x5d23d9){const _0xbb3a26=a18_0x282f;return _0x5d23d9===_0xbb3a26(0x185)?_0xbb3a26(0x174):'';}
@@ -1 +1 @@
1
- (function(_0x399ef0,_0x36c1ec){const _0x1ccd17=a19_0x24b9,_0x6c3f69=_0x399ef0();while(!![]){try{const _0x10671f=parseInt(_0x1ccd17(0x8f))/0x1*(parseInt(_0x1ccd17(0x7f))/0x2)+-parseInt(_0x1ccd17(0x8d))/0x3+-parseInt(_0x1ccd17(0x84))/0x4+parseInt(_0x1ccd17(0x79))/0x5*(parseInt(_0x1ccd17(0x7b))/0x6)+parseInt(_0x1ccd17(0x81))/0x7+parseInt(_0x1ccd17(0x86))/0x8+-parseInt(_0x1ccd17(0x7d))/0x9*(parseInt(_0x1ccd17(0x82))/0xa);if(_0x10671f===_0x36c1ec)break;else _0x6c3f69['push'](_0x6c3f69['shift']());}catch(_0x2c7964){_0x6c3f69['push'](_0x6c3f69['shift']());}}}(a19_0x194d,0x2e2fd));import{CliErrors}from'../../errors.js';function isSet(_0x416726,_0x2f62e0){const _0x361410=_0x416726['flag'](_0x2f62e0);return _0x361410!==undefined&&_0x361410!==''&&_0x361410!==![]&&_0x361410!==0x0;}function a19_0x24b9(_0x962fc7,_0x1bd390){_0x962fc7=_0x962fc7-0x78;const _0x194d6a=a19_0x194d();let _0x24b9ac=_0x194d6a[_0x962fc7];return _0x24b9ac;}function fmtNames(_0x47b9f0){const _0x1a60e7=a19_0x24b9;return _0x47b9f0[_0x1a60e7(0x8c)](_0x13da66=>'--'+_0x13da66)[_0x1a60e7(0x83)](',\x20');}export function requireOneOf(_0x367535,_0x246124,_0x5175c1){const _0x566a6d=a19_0x24b9,_0x288911=_0x246124[_0x566a6d(0x8e)](_0x4b9fd1=>isSet(_0x367535,_0x4b9fd1));if(_0x288911[_0x566a6d(0x89)]!==0x1)throw CliErrors[_0x566a6d(0x88)](_0x288911[_0x566a6d(0x89)]===0x0?_0x566a6d(0x7c)+fmtNames(_0x246124)+_0x566a6d(0x7e)+_0x5175c1+'`.':_0x566a6d(0x7a)+fmtNames(_0x246124)+_0x566a6d(0x78)+fmtNames(_0x288911)+'.',_0x288911[_0x566a6d(0x89)]===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x246124):_0x566a6d(0x87));}export function requireAnyOf(_0x147343,_0x2995bd,_0x2d4d6f){const _0x8b6b08=a19_0x24b9;if(!_0x2995bd[_0x8b6b08(0x85)](_0x4168ba=>isSet(_0x147343,_0x4168ba)))throw CliErrors[_0x8b6b08(0x88)]('At\x20least\x20one\x20of\x20'+fmtNames(_0x2995bd)+_0x8b6b08(0x7e)+_0x2d4d6f+'`.','Provide\x20one\x20of:\x20'+fmtNames(_0x2995bd));}function a19_0x194d(){const _0x5d57cd=['map','502653pmBeJf','filter','1SHTzdu','Invalid\x20--',':\x20expected\x20','\x20is\x20allowed,\x20found:\x20','2360iGsUYH','Only\x20one\x20of\x20','3966SjMLFX','Exactly\x20one\x20of\x20','568809wpxCUH','\x20is\x20required\x20for\x20`','518414elaBpW','str','2449342MbtHyF','90RUQzGs','join','1050572brvOHC','some','2136632HLimWL','Remove\x20all\x20but\x20one.','validation','length','\x20are\x20mutually\x20exclusive\x20for\x20`','test'];a19_0x194d=function(){return _0x5d57cd;};return a19_0x194d();}export function mutuallyExclusive(_0x4cad4a,_0x22ead6,_0x5f20b2){const _0x247c5e=a19_0x24b9,_0x16fcd6=_0x22ead6[_0x247c5e(0x8e)](_0x319994=>isSet(_0x4cad4a,_0x319994));if(_0x16fcd6[_0x247c5e(0x89)]>0x1)throw CliErrors[_0x247c5e(0x88)]('Flags\x20'+fmtNames(_0x16fcd6)+_0x247c5e(0x8a)+_0x5f20b2+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x22ead6));}export function validatePattern(_0x76f47d,_0x2ee89b,_0x5b7971,_0x365faa){const _0x4e2166=a19_0x24b9,_0x3cff7f=_0x76f47d[_0x4e2166(0x80)](_0x2ee89b);if(_0x3cff7f&&!_0x5b7971[_0x4e2166(0x8b)](_0x3cff7f))throw CliErrors['validation'](_0x4e2166(0x90)+_0x2ee89b+_0x4e2166(0x91)+_0x365faa+',\x20got\x20\x22'+_0x3cff7f+'\x22.');}
1
+ (function(_0x2ff950,_0x4fbb99){const _0x200ee5=a19_0x5127,_0x5af88e=_0x2ff950();while(!![]){try{const _0x7785b1=parseInt(_0x200ee5(0xc4))/0x1+-parseInt(_0x200ee5(0xb8))/0x2*(parseInt(_0x200ee5(0xbc))/0x3)+-parseInt(_0x200ee5(0xb4))/0x4*(parseInt(_0x200ee5(0xb6))/0x5)+-parseInt(_0x200ee5(0xc6))/0x6+-parseInt(_0x200ee5(0xbb))/0x7+-parseInt(_0x200ee5(0xb9))/0x8*(parseInt(_0x200ee5(0xba))/0x9)+parseInt(_0x200ee5(0xc1))/0xa;if(_0x7785b1===_0x4fbb99)break;else _0x5af88e['push'](_0x5af88e['shift']());}catch(_0x354249){_0x5af88e['push'](_0x5af88e['shift']());}}}(a19_0x4829,0x992ca));function a19_0x5127(_0x1c9db6,_0x3dccd7){_0x1c9db6=_0x1c9db6-0xb4;const _0x48290e=a19_0x4829();let _0x5127d7=_0x48290e[_0x1c9db6];return _0x5127d7;}import{CliErrors}from'../../errors.js';function isSet(_0x114146,_0x2c55c4){const _0x15eda6=a19_0x5127,_0x93fe15=_0x114146[_0x15eda6(0xc7)](_0x2c55c4);return _0x93fe15!==undefined&&_0x93fe15!==''&&_0x93fe15!==![]&&_0x93fe15!==0x0;}function a19_0x4829(){const _0x4e9178=['some','Remove\x20all\x20but\x20one.','4NIKQrR','filter','2677410rtWtTK','test','538582oqKrIq','104AvOvfD','299718EMLNFn','4178671byHckW','6mBeOxc','str','length','map','\x20is\x20allowed,\x20found:\x20','26109390OCpWjf','Provide\x20one\x20of:\x20','Only\x20one\x20of\x20','867614HMOWTq','\x20is\x20required\x20for\x20`','4483248oFVxZs','flag',':\x20expected\x20','validation'];a19_0x4829=function(){return _0x4e9178;};return a19_0x4829();}function fmtNames(_0x2d861a){const _0x5f3c87=a19_0x5127;return _0x2d861a[_0x5f3c87(0xbf)](_0x44ea30=>'--'+_0x44ea30)['join'](',\x20');}export function requireOneOf(_0x5ba971,_0x1fe659,_0x41028b){const _0x1bbcb1=a19_0x5127,_0x23ff5f=_0x1fe659['filter'](_0x2857fd=>isSet(_0x5ba971,_0x2857fd));if(_0x23ff5f[_0x1bbcb1(0xbe)]!==0x1)throw CliErrors['validation'](_0x23ff5f[_0x1bbcb1(0xbe)]===0x0?'Exactly\x20one\x20of\x20'+fmtNames(_0x1fe659)+_0x1bbcb1(0xc5)+_0x41028b+'`.':_0x1bbcb1(0xc3)+fmtNames(_0x1fe659)+_0x1bbcb1(0xc0)+fmtNames(_0x23ff5f)+'.',_0x23ff5f[_0x1bbcb1(0xbe)]===0x0?_0x1bbcb1(0xc2)+fmtNames(_0x1fe659):_0x1bbcb1(0xcb));}export function requireAnyOf(_0x14eec8,_0x433ffd,_0xc1f599){const _0x3d15cd=a19_0x5127;if(!_0x433ffd[_0x3d15cd(0xca)](_0x36b0c4=>isSet(_0x14eec8,_0x36b0c4)))throw CliErrors[_0x3d15cd(0xc9)]('At\x20least\x20one\x20of\x20'+fmtNames(_0x433ffd)+_0x3d15cd(0xc5)+_0xc1f599+'`.',_0x3d15cd(0xc2)+fmtNames(_0x433ffd));}export function mutuallyExclusive(_0x8245d0,_0x3da8d8,_0xea8615){const _0x4af7ab=a19_0x5127,_0x289efd=_0x3da8d8[_0x4af7ab(0xb5)](_0x5ac188=>isSet(_0x8245d0,_0x5ac188));if(_0x289efd['length']>0x1)throw CliErrors[_0x4af7ab(0xc9)]('Flags\x20'+fmtNames(_0x289efd)+'\x20are\x20mutually\x20exclusive\x20for\x20`'+_0xea8615+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x3da8d8));}export function validatePattern(_0x54b3fc,_0x366fdc,_0x423f45,_0x3fd913){const _0x1be3ce=a19_0x5127,_0x6624a4=_0x54b3fc[_0x1be3ce(0xbd)](_0x366fdc);if(_0x6624a4&&!_0x423f45[_0x1be3ce(0xb7)](_0x6624a4))throw CliErrors[_0x1be3ce(0xc9)]('Invalid\x20--'+_0x366fdc+_0x1be3ce(0xc8)+_0x3fd913+',\x20got\x20\x22'+_0x6624a4+'\x22.');}
@@ -1 +1 @@
1
- const a20_0x4fb683=a20_0x59e3;(function(_0x318a91,_0x2e2c32){const _0x1a0843=a20_0x59e3,_0x1e19bf=_0x318a91();while(!![]){try{const _0x5bd591=parseInt(_0x1a0843(0x1f5))/0x1+-parseInt(_0x1a0843(0x1f9))/0x2+parseInt(_0x1a0843(0x1e8))/0x3*(parseInt(_0x1a0843(0x1f7))/0x4)+parseInt(_0x1a0843(0x1ff))/0x5+parseInt(_0x1a0843(0x1fb))/0x6*(-parseInt(_0x1a0843(0x1fd))/0x7)+-parseInt(_0x1a0843(0x1ec))/0x8+-parseInt(_0x1a0843(0x1f3))/0x9*(-parseInt(_0x1a0843(0x1e9))/0xa);if(_0x5bd591===_0x2e2c32)break;else _0x1e19bf['push'](_0x1e19bf['shift']());}catch(_0x510772){_0x1e19bf['push'](_0x1e19bf['shift']());}}}(a20_0x3428,0x94106));export const CODE_FLAG={'name':a20_0x4fb683(0x1ef),'type':a20_0x4fb683(0x1f2),'required':!![],'description':a20_0x4fb683(0x1fa),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x4fb683(0x1f0)}};function a20_0x59e3(_0x2d7df7,_0x3c7362){_0x2d7df7=_0x2d7df7-0x1e8;const _0x3428e7=a20_0x3428();let _0x59e359=_0x3428e7[_0x2d7df7];return _0x59e359;}export const SQLCODE_FLAG={'name':a20_0x4fb683(0x1f1),'type':'string','required':!![],'description':a20_0x4fb683(0x1eb),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const VERBOSE_FLAG={'name':a20_0x4fb683(0x1f8),'type':a20_0x4fb683(0x1f6),'description':a20_0x4fb683(0x1fe)};function a20_0x3428(){const _0x9690e8=['Resource\x20ID','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','9557648ZvtpFe','Resource\x20name\x20for\x20lookup','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','code','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','sqlcode','string','9ceyeVr','number','1095179tcUbGM','boolean','4pyzKQq','verbose','724058rMymBV','Dataset\x20code\x20(32-char\x20hex\x20UUID)','42qCGpdh','params','79044ojIJvu','Return\x20full\x20raw\x20response\x20object','3127120gQJnzM','418881SUoaao','3820190XhdZwd'];a20_0x3428=function(){return _0x9690e8;};return a20_0x3428();}export const PARAMS_FLAG={'name':a20_0x4fb683(0x1fc),'type':a20_0x4fb683(0x1f2),'description':a20_0x4fb683(0x1ee)};export const NAME_FLAG={'name':'name','type':a20_0x4fb683(0x1f2),'description':a20_0x4fb683(0x1ed)};export const ID_FLAG={'name':'id','type':a20_0x4fb683(0x1f4),'required':!![],'description':a20_0x4fb683(0x1ea)};
1
+ const a20_0x4529e9=a20_0xe0d7;(function(_0x1510c1,_0x3795c1){const _0x70a3e5=a20_0xe0d7,_0x49612d=_0x1510c1();while(!![]){try{const _0x557141=parseInt(_0x70a3e5(0x1ee))/0x1+-parseInt(_0x70a3e5(0x1ef))/0x2+-parseInt(_0x70a3e5(0x1f0))/0x3+parseInt(_0x70a3e5(0x1fa))/0x4+-parseInt(_0x70a3e5(0x1e8))/0x5*(-parseInt(_0x70a3e5(0x1ed))/0x6)+-parseInt(_0x70a3e5(0x1e9))/0x7+-parseInt(_0x70a3e5(0x1eb))/0x8*(parseInt(_0x70a3e5(0x1f4))/0x9);if(_0x557141===_0x3795c1)break;else _0x49612d['push'](_0x49612d['shift']());}catch(_0x687560){_0x49612d['push'](_0x49612d['shift']());}}}(a20_0x18ed,0x48c87));export const CODE_FLAG={'name':'code','type':'string','required':!![],'description':a20_0x4529e9(0x1f3),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x4529e9(0x1f1)}};export const SQLCODE_FLAG={'name':a20_0x4529e9(0x1f7),'type':'string','required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x4529e9(0x1ec)}};export const VERBOSE_FLAG={'name':a20_0x4529e9(0x1f6),'type':a20_0x4529e9(0x1f8),'description':'Return\x20full\x20raw\x20response\x20object'};function a20_0xe0d7(_0xfba025,_0x404738){_0xfba025=_0xfba025-0x1e8;const _0x18ed75=a20_0x18ed();let _0xe0d743=_0x18ed75[_0xfba025];return _0xe0d743;}export const PARAMS_FLAG={'name':a20_0x4529e9(0x1f2),'type':'string','description':a20_0x4529e9(0x1ea)};export const NAME_FLAG={'name':a20_0x4529e9(0x1f9),'type':a20_0x4529e9(0x1fc),'description':a20_0x4529e9(0x1fb)};export const ID_FLAG={'name':'id','type':a20_0x4529e9(0x1fd),'required':!![],'description':a20_0x4529e9(0x1f5)};function a20_0x18ed(){const _0x2b6f55=['number','1626700WWiuLn','986083wIkxUj','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','392VtEHzU','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','6oWabBl','533268mZVIVe','718412uaHxEI','1667619JUXKuA','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','params','Dataset\x20code\x20(32-char\x20hex\x20UUID)','6354ZiYXJO','Resource\x20ID','verbose','sqlcode','boolean','name','2120212hgjplg','Resource\x20name\x20for\x20lookup','string'];a20_0x18ed=function(){return _0x2b6f55;};return a20_0x18ed();}
@@ -1 +1 @@
1
- function a21_0x2908(){const _0x3f9224=['\x20path\x20is\x20required.','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','toFixed','1091699IJtDxE','ceil','File\x20is\x20not\x20a\x20regular\x20file:\x20','15948400mjgJZD','11316078AjbQYc','validation','8nAkevD','size','\x20MB','355805cHwzbg','28gppPMx','846943hkjinx','210261WZzGKK','6NdhYHL','4978784AhmyyL','isFile'];a21_0x2908=function(){return _0x3f9224;};return a21_0x2908();}(function(_0x5b7d36,_0x536165){const _0xe02161=a21_0x2cde,_0x5ee004=_0x5b7d36();while(!![]){try{const _0x23b85a=parseInt(_0xe02161(0x1ed))/0x1+parseInt(_0xe02161(0x1ec))/0x2*(-parseInt(_0xe02161(0x1ee))/0x3)+parseInt(_0xe02161(0x1f0))/0x4+parseInt(_0xe02161(0x1eb))/0x5*(parseInt(_0xe02161(0x1ef))/0x6)+-parseInt(_0xe02161(0x1f5))/0x7*(parseInt(_0xe02161(0x1e8))/0x8)+parseInt(_0xe02161(0x1e6))/0x9+-parseInt(_0xe02161(0x1e5))/0xa;if(_0x23b85a===_0x536165)break;else _0x5ee004['push'](_0x5ee004['shift']());}catch(_0x328cb4){_0x5ee004['push'](_0x5ee004['shift']());}}}(a21_0x2908,0xa7fff));import{existsSync,statSync}from'node:fs';function a21_0x2cde(_0xa82fdc,_0x45e248){_0xa82fdc=_0xa82fdc-0x1e5;const _0x290878=a21_0x2908();let _0x2cde07=_0x290878[_0xa82fdc];return _0x2cde07;}import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x508b0f){const _0x3cf268=a21_0x2cde;if(_0x508b0f>=BYTES_PER_MB){const _0xadbdb=Math[_0x3cf268(0x1f6)](_0x508b0f/BYTES_PER_MB*0x64)/0x64;return _0xadbdb[_0x3cf268(0x1f4)](0x2)+_0x3cf268(0x1ea);}return _0x508b0f+'\x20B';}export function requireRuntimeUploadFile(_0x9b404,_0x40d547){const _0x4fd1f5=a21_0x2cde,_0x25b2c6=_0x9b404['trim']();if(!_0x25b2c6)throw CliErrors[_0x4fd1f5(0x1e7)](_0x40d547+_0x4fd1f5(0x1f2));if(!existsSync(_0x25b2c6))throw CliErrors[_0x4fd1f5(0x1e7)]('File\x20not\x20found:\x20'+_0x25b2c6);const _0x658141=statSync(_0x25b2c6);if(!_0x658141[_0x4fd1f5(0x1f1)]())throw CliErrors['validation'](_0x4fd1f5(0x1f7)+_0x25b2c6);if(_0x658141[_0x4fd1f5(0x1e9)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x4fd1f5(0x1e7)](_0x4fd1f5(0x1f3)+_0x25b2c6+'\x20('+formatBytes(_0x658141['size'])+')');return{'path':_0x25b2c6,'size':_0x658141[_0x4fd1f5(0x1e9)]};}
1
+ (function(_0x1abd47,_0x3f2a5c){const _0x5acf78=a21_0x1880,_0xca5f4a=_0x1abd47();while(!![]){try{const _0x447abe=parseInt(_0x5acf78(0xd2))/0x1*(parseInt(_0x5acf78(0xd0))/0x2)+parseInt(_0x5acf78(0xd9))/0x3+-parseInt(_0x5acf78(0xda))/0x4*(parseInt(_0x5acf78(0xdb))/0x5)+-parseInt(_0x5acf78(0xdf))/0x6+parseInt(_0x5acf78(0xd4))/0x7*(parseInt(_0x5acf78(0xd8))/0x8)+-parseInt(_0x5acf78(0xcf))/0x9*(parseInt(_0x5acf78(0xde))/0xa)+parseInt(_0x5acf78(0xdc))/0xb;if(_0x447abe===_0x3f2a5c)break;else _0xca5f4a['push'](_0xca5f4a['shift']());}catch(_0x497f8c){_0xca5f4a['push'](_0xca5f4a['shift']());}}}(a21_0x4a5f,0x403c8));function a21_0x1880(_0x4980d1,_0x2e336e){_0x4980d1=_0x4980d1-0xca;const _0x4a5f2c=a21_0x4a5f();let _0x1880eb=_0x4a5f2c[_0x4980d1];return _0x1880eb;}function a21_0x4a5f(){const _0x6c5326=['9PbpdnN','2SlFtKv','ceil','236927wMHoAI','File\x20not\x20found:\x20','7VjAOug','isFile','File\x20is\x20not\x20a\x20regular\x20file:\x20','\x20MB','467312nfYTxi','210141esCJez','4iSvJXX','1129830wILbZs','5511374iWPJtu','toFixed','2400080BtzNzj','824016OcqJaC','\x20path\x20is\x20required.','trim','size','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','validation'];a21_0x4a5f=function(){return _0x6c5326;};return a21_0x4a5f();}import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x5e3603){const _0x3a4d83=a21_0x1880;if(_0x5e3603>=BYTES_PER_MB){const _0x4ae5b7=Math[_0x3a4d83(0xd1)](_0x5e3603/BYTES_PER_MB*0x64)/0x64;return _0x4ae5b7[_0x3a4d83(0xdd)](0x2)+_0x3a4d83(0xd7);}return _0x5e3603+'\x20B';}export function requireRuntimeUploadFile(_0x20ec2d,_0xf10823){const _0x4fb150=a21_0x1880,_0x4fff23=_0x20ec2d[_0x4fb150(0xcb)]();if(!_0x4fff23)throw CliErrors['validation'](_0xf10823+_0x4fb150(0xca));if(!existsSync(_0x4fff23))throw CliErrors[_0x4fb150(0xce)](_0x4fb150(0xd3)+_0x4fff23);const _0x1ab79f=statSync(_0x4fff23);if(!_0x1ab79f[_0x4fb150(0xd5)]())throw CliErrors[_0x4fb150(0xce)](_0x4fb150(0xd6)+_0x4fff23);if(_0x1ab79f[_0x4fb150(0xcc)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors['validation'](_0x4fb150(0xcd)+_0x4fff23+'\x20('+formatBytes(_0x1ab79f[_0x4fb150(0xcc)])+')');return{'path':_0x4fff23,'size':_0x1ab79f[_0x4fb150(0xcc)]};}
@@ -1 +1 @@
1
- const a22_0x2a4ed0=a22_0x8c9d;(function(_0x145b35,_0x3a200e){const _0x3776ad=a22_0x8c9d,_0x40e4bf=_0x145b35();while(!![]){try{const _0x4d490c=parseInt(_0x3776ad(0x6b))/0x1+parseInt(_0x3776ad(0xa7))/0x2+parseInt(_0x3776ad(0x6a))/0x3+-parseInt(_0x3776ad(0x9f))/0x4*(parseInt(_0x3776ad(0x9d))/0x5)+-parseInt(_0x3776ad(0x71))/0x6*(parseInt(_0x3776ad(0x86))/0x7)+parseInt(_0x3776ad(0x98))/0x8+-parseInt(_0x3776ad(0x9c))/0x9;if(_0x4d490c===_0x3a200e)break;else _0x40e4bf['push'](_0x40e4bf['shift']());}catch(_0x237097){_0x40e4bf['push'](_0x40e4bf['shift']());}}}(a22_0x8dc0,0x48d47));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';function a22_0x8c9d(_0x35a30e,_0x1d6fd6){_0x35a30e=_0x35a30e-0x6a;const _0x8dc060=a22_0x8dc0();let _0x8c9d82=_0x8dc060[_0x35a30e];return _0x8c9d82;}const GLOBAL_FLAG={'name':a22_0x2a4ed0(0xab),'type':a22_0x2a4ed0(0xa9),'description':a22_0x2a4ed0(0x85),'default':![]};function parseAliasAppcodeSetKey(_0x1b8dc2){const _0x2a8ff3=a22_0x2a4ed0,_0x164136=_0x1b8dc2['split']('.');if(_0x164136[_0x2a8ff3(0x7e)]!==0x3||_0x164136[0x0]!==_0x2a8ff3(0x77)||_0x164136[0x2]!==_0x2a8ff3(0x7b))return undefined;const _0x24830c=_0x164136[0x1]?.[_0x2a8ff3(0x7f)]();return _0x24830c?_0x24830c:undefined;}function a22_0x8dc0(){const _0x3fc106=['7EeGzCN','format','Delete\x20a\x20config\x20value','raw','riskLevel','alias','write','\x20(global)','Set\x20`','pretty','\x22\x20is\x20not\x20settable.','includes','Deleted\x20`','key','pageSize\x20must\x20be\x20a\x20positive\x20number','set','pageSize','project-or-global-explicit','4303824fkLZCD','List\x20current\x20config','value',';\x20apps.<alias>.appcode','5940189zJwANu','67780VkVKca','Usage:\x20','24HrvmpA','(none)','read','Get\x20a\x20config\x20value','Invalid\x20value\x20for\x20\x22','Top-level\x20key\x20\x22','stringify','validation','247490pbWlOr','keys','boolean','bool','global','141447HKpnJz','526193oAZARH','Value\x20to\x20assign','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','\x20\x20global:\x20\x20','`\x20=\x20\x22','isArray','1172382TbMEar','Set\x20a\x20config\x20value','../../context.js','object','log','Key\x20not\x20found:\x20','apps','args','list','join','appcode','\x20config\x20get\x20<key>','\x20config\x20set\x20<key>\x20<value>\x20[--global]','length','trim','config','field','\x20\x20project:\x20','\x22\x20not\x20found\x20at\x20top\x20level.','split','Write\x20to\x20global\x20config'];a22_0x8dc0=function(){return _0x3fc106;};return a22_0x8dc0();}function parseAliasDeleteKey(_0x15858d){const _0xb1daa4=a22_0x2a4ed0,_0x14b0ed=_0x15858d[_0xb1daa4(0x84)]('.');if(_0x14b0ed[_0xb1daa4(0x7e)]===0x2&&_0x14b0ed[0x0]==='apps'){const _0xb6bc46=_0x14b0ed[0x1]?.['trim']();return _0xb6bc46?{'alias':_0xb6bc46}:undefined;}if(_0x14b0ed[_0xb1daa4(0x7e)]===0x3&&_0x14b0ed[0x0]===_0xb1daa4(0x77)&&_0x14b0ed[0x2]===_0xb1daa4(0x7b)){const _0x3b8bb6=_0x14b0ed[0x1]?.[_0xb1daa4(0x7f)]();return _0x3b8bb6?{'alias':_0x3b8bb6,'field':_0xb1daa4(0x7b)}:undefined;}return undefined;}function setLocalAppAlias(_0x4f6ccb,_0x5a4b95,_0x52b8b7){const _0x2e9fba=a22_0x2a4ed0,_0x349a83=_0x4f6ccb[_0x2e9fba(0x77)]&&typeof _0x4f6ccb[_0x2e9fba(0x77)]===_0x2e9fba(0x74)&&!Array[_0x2e9fba(0x70)](_0x4f6ccb[_0x2e9fba(0x77)])?_0x4f6ccb['apps']:{},_0x557c9d=_0x349a83[_0x5a4b95]&&typeof _0x349a83[_0x5a4b95]==='object'&&!Array[_0x2e9fba(0x70)](_0x349a83[_0x5a4b95])?_0x349a83[_0x5a4b95]:{};_0x557c9d[_0x2e9fba(0x7b)]=_0x52b8b7,_0x349a83[_0x5a4b95]=_0x557c9d,_0x4f6ccb[_0x2e9fba(0x77)]=_0x349a83;}function deleteLocalAppAlias(_0x35ce16,_0x951940){const _0x40dc32=a22_0x2a4ed0;if(!_0x35ce16[_0x40dc32(0x77)]||typeof _0x35ce16['apps']!==_0x40dc32(0x74)||Array[_0x40dc32(0x70)](_0x35ce16[_0x40dc32(0x77)]))return![];const _0x43c082=_0x35ce16[_0x40dc32(0x77)],_0x42161e=_0x43c082[_0x951940[_0x40dc32(0x8b)]];if(!_0x42161e||typeof _0x42161e!=='object'||Array['isArray'](_0x42161e))return![];if(!_0x951940[_0x40dc32(0x81)])return delete _0x43c082[_0x951940[_0x40dc32(0x8b)]],!![];if(!(_0x951940[_0x40dc32(0x81)]in _0x42161e))return![];return delete _0x42161e[_0x951940[_0x40dc32(0x81)]],Object[_0x40dc32(0xa8)](_0x42161e)[_0x40dc32(0x7e)]===0x0&&delete _0x43c082[_0x951940[_0x40dc32(0x8b)]],!![];}const listDef={'service':a22_0x2a4ed0(0x80),'command':a22_0x2a4ed0(0x79),'description':a22_0x2a4ed0(0x99),'risk':a22_0x2a4ed0(0xa1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x2cc868){const _0x3ef61a=a22_0x2a4ed0,{buildConfigFromFlags:_0x12ecb9}=await import(_0x3ef61a(0x73)),_0x549a9a=_0x12ecb9({}),_0x4a9b5e=getProjectConfigPath(),_0x288a68=resolveWriteConfigPath(_0x3ef61a(0xab));if(_0x2cc868[_0x3ef61a(0x87)]===_0x3ef61a(0x8f))return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON['stringify'](_0x549a9a[_0x3ef61a(0x89)],null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+(_0x3ef61a(0x82)+(_0x4a9b5e??_0x3ef61a(0xa0))+'\x0a')+(_0x3ef61a(0x6e)+_0x288a68)};return{'ok':!![],'data':{'effective':_0x549a9a['raw'],'configFiles':{'project':_0x4a9b5e??null,'global':_0x288a68}}};}},getDef={'service':a22_0x2a4ed0(0x80),'command':'get','description':a22_0x2a4ed0(0xa2),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x2a4ed0(0x93),'description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x5c808f){const _0x3df1aa=a22_0x2a4ed0,_0x597f2d=_0x5c808f[_0x3df1aa(0x78)][0x0];if(!_0x597f2d)throw CliErrors['validation']('Missing\x20key\x20argument.',_0x3df1aa(0x9e)+CLI_BIN_NAME+_0x3df1aa(0x7c));const {buildConfigFromFlags:_0x34c28c}=await import(_0x3df1aa(0x73)),{raw:_0x290970}=_0x34c28c({});if(_0x597f2d[_0x3df1aa(0x91)]('.')){const _0x334d5c=_0x597f2d[_0x3df1aa(0x84)]('.');let _0x285ba7=_0x290970;for(const _0x1263b2 of _0x334d5c){if(_0x285ba7==null||typeof _0x285ba7!==_0x3df1aa(0x74))throw CliErrors[_0x3df1aa(0xa6)](_0x3df1aa(0x76)+_0x597f2d);_0x285ba7=_0x285ba7[_0x1263b2];}if(_0x285ba7===undefined)throw CliErrors[_0x3df1aa(0xa6)](_0x3df1aa(0x76)+_0x597f2d);return console['log'](typeof _0x285ba7===_0x3df1aa(0x74)?JSON[_0x3df1aa(0xa5)](_0x285ba7,null,0x2):String(_0x285ba7)),{'ok':!![]};}const _0x50774a=_0x290970[_0x597f2d];if(_0x50774a===undefined)throw CliErrors[_0x3df1aa(0xa6)](_0x3df1aa(0x76)+_0x597f2d);return console[_0x3df1aa(0x75)](typeof _0x50774a===_0x3df1aa(0x74)?JSON[_0x3df1aa(0xa5)](_0x50774a,null,0x2):String(_0x50774a)),{'ok':!![]};}},setDef={'service':a22_0x2a4ed0(0x80),'command':a22_0x2a4ed0(0x95),'description':a22_0x2a4ed0(0x72),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x2a4ed0(0x93),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x2a4ed0(0x9a),'description':a22_0x2a4ed0(0x6c),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x292caa){const _0x2b2d15=a22_0x2a4ed0,_0x1584d9=_0x292caa[_0x2b2d15(0x78)][0x0],_0x44b643=_0x292caa[_0x2b2d15(0x78)][0x1];if(!_0x1584d9||_0x44b643===undefined)throw CliErrors[_0x2b2d15(0xa6)]('Missing\x20key\x20or\x20value.',_0x2b2d15(0x9e)+CLI_BIN_NAME+_0x2b2d15(0x7d));if(ENUM_KEYS[_0x1584d9]&&!ENUM_KEYS[_0x1584d9][_0x2b2d15(0x91)](_0x44b643))throw CliErrors['validation'](_0x2b2d15(0xa3)+_0x1584d9+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x1584d9][_0x2b2d15(0x7a)](',\x20'));if(_0x1584d9===_0x2b2d15(0x8a))throw CliErrors['validation'](_0x2b2d15(0x6d));if(_0x1584d9===_0x2b2d15(0x96)){const _0x3b6ccd=Number(_0x44b643);if(isNaN(_0x3b6ccd)||_0x3b6ccd<=0x0)throw CliErrors['validation'](_0x2b2d15(0x94));}const _0x525e54=resolveWriteScope({'explicitGlobal':_0x292caa[_0x2b2d15(0xaa)]('global'),'policy':_0x2b2d15(0x97)}),_0x40ca89=toScopeFlags(_0x525e54),_0x2019ec=readScopedConfig(_0x40ca89),_0x272c34=parseAliasAppcodeSetKey(_0x1584d9);if(!_0x272c34&&!isTopLevelConfigKey(_0x1584d9))throw CliErrors[_0x2b2d15(0xa6)](_0x2b2d15(0xa4)+_0x1584d9+_0x2b2d15(0x90),'Settable\x20keys:\x20'+getTopLevelConfigKeySummary()+_0x2b2d15(0x9b));return _0x272c34?setLocalAppAlias(_0x2019ec,_0x272c34,_0x44b643):_0x2019ec[_0x1584d9]=_0x1584d9===_0x2b2d15(0x96)?Number(_0x44b643):_0x44b643,console[_0x2b2d15(0x75)](_0x2b2d15(0x8e)+_0x1584d9+_0x2b2d15(0x6f)+_0x44b643+'\x22'+(_0x525e54===_0x2b2d15(0xab)?_0x2b2d15(0x8d):'')),writeScopedConfig(_0x2019ec,_0x40ca89),{'ok':!![]};}},deleteDef={'service':a22_0x2a4ed0(0x80),'command':'delete','description':a22_0x2a4ed0(0x88),'risk':a22_0x2a4ed0(0x8c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x2a4ed0(0x93),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x1478cd){const _0x574a39=a22_0x2a4ed0,_0x1f111c=_0x1478cd[_0x574a39(0x78)][0x0];if(!_0x1f111c)throw CliErrors[_0x574a39(0xa6)]('Missing\x20key\x20argument.',_0x574a39(0x9e)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x2bc504=resolveWriteScope({'explicitGlobal':_0x1478cd[_0x574a39(0xaa)](_0x574a39(0xab)),'policy':_0x574a39(0x97)}),_0x3b6db9=toScopeFlags(_0x2bc504),_0x5c488e=readScopedConfig(_0x3b6db9),_0x4770f1=parseAliasDeleteKey(_0x1f111c);if(_0x4770f1){if(!deleteLocalAppAlias(_0x5c488e,_0x4770f1))throw CliErrors[_0x574a39(0xa6)](_0x574a39(0x76)+_0x1f111c);return console['log'](_0x574a39(0x92)+_0x1f111c+'`'+(_0x2bc504===_0x574a39(0xab)?_0x574a39(0x8d):'')),writeScopedConfig(_0x5c488e,_0x3b6db9),{'ok':!![]};}if(_0x5c488e[_0x1f111c]===undefined)throw CliErrors[_0x574a39(0xa6)]('Key\x20\x22'+_0x1f111c+_0x574a39(0x83));return delete _0x5c488e[_0x1f111c],console[_0x574a39(0x75)]('Deleted\x20`'+_0x1f111c+'`'+(_0x2bc504===_0x574a39(0xab)?_0x574a39(0x8d):'')),writeScopedConfig(_0x5c488e,_0x3b6db9),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
1
+ const a22_0x246dc5=a22_0xa7f2;(function(_0x4a9fcd,_0x4c0577){const _0x52df2f=a22_0xa7f2,_0x27f73b=_0x4a9fcd();while(!![]){try{const _0x100a0a=parseInt(_0x52df2f(0x1c4))/0x1+parseInt(_0x52df2f(0x1be))/0x2+parseInt(_0x52df2f(0x1bb))/0x3*(-parseInt(_0x52df2f(0x1ca))/0x4)+-parseInt(_0x52df2f(0x1d0))/0x5*(parseInt(_0x52df2f(0x1a8))/0x6)+-parseInt(_0x52df2f(0x190))/0x7+-parseInt(_0x52df2f(0x1c0))/0x8*(-parseInt(_0x52df2f(0x19e))/0x9)+parseInt(_0x52df2f(0x1aa))/0xa;if(_0x100a0a===_0x4c0577)break;else _0x27f73b['push'](_0x27f73b['shift']());}catch(_0x13c6e1){_0x27f73b['push'](_0x27f73b['shift']());}}}(a22_0x53e4,0x6c652));function a22_0x53e4(){const _0x4e245d=['357795RsfhyJ','bool','riskLevel','List\x20current\x20config','Missing\x20key\x20argument.','pageSize','config','object','alias','\x20config\x20set\x20<key>\x20<value>\x20[--global]','6AfyODe','isArray','518830ThRpiW','../../context.js','split','Missing\x20key\x20or\x20value.','project-or-global-explicit','args','Set\x20a\x20config\x20value','Invalid\x20value\x20for\x20\x22','trim','Usage:\x20','pretty','includes','apps','validation','raw','get','Delete\x20a\x20config\x20value','21nYnVza','Get\x20a\x20config\x20value','read','1065854WDLWra','\x20\x20project:\x20','104mhRVOt','global','\x20(global)','Config\x20files:\x0a','642647IUoWpt','join','log','Top-level\x20key\x20\x22','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','Deleted\x20`','40556BTvCRZ','keys','Settable\x20keys:\x20','stringify','\x22.\x20Allowed:\x20','key','3245030UbanFP','Write\x20to\x20global\x20config','4062149CnZPqO','boolean','write','(none)','pageSize\x20must\x20be\x20a\x20positive\x20number','appcode','length','Key\x20not\x20found:\x20','set','format','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','field','\x20config\x20get\x20<key>','value'];a22_0x53e4=function(){return _0x4e245d;};return a22_0x53e4();}import{CliErrors}from'../../errors.js';function a22_0xa7f2(_0x329a62,_0x1f07ca){_0x329a62=_0x329a62-0x18f;const _0x53e414=a22_0x53e4();let _0xa7f256=_0x53e414[_0x329a62];return _0xa7f256;}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_0x246dc5(0x1c1),'type':a22_0x246dc5(0x191),'description':a22_0x246dc5(0x18f),'default':![]};function parseAliasAppcodeSetKey(_0x4e15a6){const _0x4f63e8=a22_0x246dc5,_0x598883=_0x4e15a6[_0x4f63e8(0x1ac)]('.');if(_0x598883[_0x4f63e8(0x196)]!==0x3||_0x598883[0x0]!==_0x4f63e8(0x1b6)||_0x598883[0x2]!==_0x4f63e8(0x195))return undefined;const _0x4cd540=_0x598883[0x1]?.[_0x4f63e8(0x1b2)]();return _0x4cd540?_0x4cd540:undefined;}function parseAliasDeleteKey(_0x45e9ee){const _0x6dc782=a22_0x246dc5,_0x418bc0=_0x45e9ee[_0x6dc782(0x1ac)]('.');if(_0x418bc0[_0x6dc782(0x196)]===0x2&&_0x418bc0[0x0]===_0x6dc782(0x1b6)){const _0x586524=_0x418bc0[0x1]?.[_0x6dc782(0x1b2)]();return _0x586524?{'alias':_0x586524}:undefined;}if(_0x418bc0[_0x6dc782(0x196)]===0x3&&_0x418bc0[0x0]===_0x6dc782(0x1b6)&&_0x418bc0[0x2]===_0x6dc782(0x195)){const _0x50412d=_0x418bc0[0x1]?.[_0x6dc782(0x1b2)]();return _0x50412d?{'alias':_0x50412d,'field':'appcode'}:undefined;}return undefined;}function setLocalAppAlias(_0x2877d7,_0x2c4667,_0x1c1bac){const _0x573abb=a22_0x246dc5,_0x367a3e=_0x2877d7['apps']&&typeof _0x2877d7['apps']===_0x573abb(0x1a5)&&!Array[_0x573abb(0x1a9)](_0x2877d7['apps'])?_0x2877d7[_0x573abb(0x1b6)]:{},_0xf6ce08=_0x367a3e[_0x2c4667]&&typeof _0x367a3e[_0x2c4667]===_0x573abb(0x1a5)&&!Array['isArray'](_0x367a3e[_0x2c4667])?_0x367a3e[_0x2c4667]:{};_0xf6ce08[_0x573abb(0x195)]=_0x1c1bac,_0x367a3e[_0x2c4667]=_0xf6ce08,_0x2877d7[_0x573abb(0x1b6)]=_0x367a3e;}function deleteLocalAppAlias(_0x509509,_0x4e1fd5){const _0x3cda22=a22_0x246dc5;if(!_0x509509[_0x3cda22(0x1b6)]||typeof _0x509509[_0x3cda22(0x1b6)]!==_0x3cda22(0x1a5)||Array['isArray'](_0x509509[_0x3cda22(0x1b6)]))return![];const _0x4f1288=_0x509509[_0x3cda22(0x1b6)],_0x118c6b=_0x4f1288[_0x4e1fd5[_0x3cda22(0x1a6)]];if(!_0x118c6b||typeof _0x118c6b!=='object'||Array[_0x3cda22(0x1a9)](_0x118c6b))return![];if(!_0x4e1fd5[_0x3cda22(0x19b)])return delete _0x4f1288[_0x4e1fd5[_0x3cda22(0x1a6)]],!![];if(!(_0x4e1fd5[_0x3cda22(0x19b)]in _0x118c6b))return![];return delete _0x118c6b[_0x4e1fd5[_0x3cda22(0x19b)]],Object[_0x3cda22(0x1cb)](_0x118c6b)[_0x3cda22(0x196)]===0x0&&delete _0x4f1288[_0x4e1fd5['alias']],!![];}const listDef={'service':a22_0x246dc5(0x1a4),'command':'list','description':a22_0x246dc5(0x1a1),'risk':a22_0x246dc5(0x1bd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x111438){const _0x164f74=a22_0x246dc5,{buildConfigFromFlags:_0x922eb5}=await import(_0x164f74(0x1ab)),_0x215d34=_0x922eb5({}),_0x59ebcf=getProjectConfigPath(),_0x560299=resolveWriteConfigPath('global');if(_0x111438[_0x164f74(0x199)]===_0x164f74(0x1b4))return{'ok':!![],'message':_0x164f74(0x1c8)+(JSON[_0x164f74(0x1cd)](_0x215d34[_0x164f74(0x1b8)],null,0x2)+'\x0a\x0a')+_0x164f74(0x1c3)+(_0x164f74(0x1bf)+(_0x59ebcf??_0x164f74(0x193))+'\x0a')+('\x20\x20global:\x20\x20'+_0x560299)};return{'ok':!![],'data':{'effective':_0x215d34[_0x164f74(0x1b8)],'configFiles':{'project':_0x59ebcf??null,'global':_0x560299}}};}},getDef={'service':a22_0x246dc5(0x1a4),'command':a22_0x246dc5(0x1b9),'description':a22_0x246dc5(0x1bc),'risk':a22_0x246dc5(0x1bd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x519097){const _0xd3de41=a22_0x246dc5,_0x2430ee=_0x519097['args'][0x0];if(!_0x2430ee)throw CliErrors[_0xd3de41(0x1b7)](_0xd3de41(0x1a2),_0xd3de41(0x1b3)+CLI_BIN_NAME+_0xd3de41(0x19c));const {buildConfigFromFlags:_0x2b2388}=await import(_0xd3de41(0x1ab)),{raw:_0x1e62a}=_0x2b2388({});if(_0x2430ee[_0xd3de41(0x1b5)]('.')){const _0x26c5a3=_0x2430ee['split']('.');let _0xdeccb5=_0x1e62a;for(const _0x485698 of _0x26c5a3){if(_0xdeccb5==null||typeof _0xdeccb5!==_0xd3de41(0x1a5))throw CliErrors[_0xd3de41(0x1b7)](_0xd3de41(0x197)+_0x2430ee);_0xdeccb5=_0xdeccb5[_0x485698];}if(_0xdeccb5===undefined)throw CliErrors[_0xd3de41(0x1b7)]('Key\x20not\x20found:\x20'+_0x2430ee);return console['log'](typeof _0xdeccb5===_0xd3de41(0x1a5)?JSON['stringify'](_0xdeccb5,null,0x2):String(_0xdeccb5)),{'ok':!![]};}const _0x17450c=_0x1e62a[_0x2430ee];if(_0x17450c===undefined)throw CliErrors['validation'](_0xd3de41(0x197)+_0x2430ee);return console[_0xd3de41(0x1c6)](typeof _0x17450c===_0xd3de41(0x1a5)?JSON[_0xd3de41(0x1cd)](_0x17450c,null,0x2):String(_0x17450c)),{'ok':!![]};}},setDef={'service':a22_0x246dc5(0x1a4),'command':a22_0x246dc5(0x198),'description':a22_0x246dc5(0x1b0),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x246dc5(0x1cf),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x246dc5(0x19d),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x35c9cf){const _0x2258f1=a22_0x246dc5,_0xd80482=_0x35c9cf[_0x2258f1(0x1af)][0x0],_0x4768b9=_0x35c9cf['args'][0x1];if(!_0xd80482||_0x4768b9===undefined)throw CliErrors[_0x2258f1(0x1b7)](_0x2258f1(0x1ad),_0x2258f1(0x1b3)+CLI_BIN_NAME+_0x2258f1(0x1a7));if(ENUM_KEYS[_0xd80482]&&!ENUM_KEYS[_0xd80482][_0x2258f1(0x1b5)](_0x4768b9))throw CliErrors['validation'](_0x2258f1(0x1b1)+_0xd80482+_0x2258f1(0x1ce)+ENUM_KEYS[_0xd80482][_0x2258f1(0x1c5)](',\x20'));if(_0xd80482===_0x2258f1(0x1a0))throw CliErrors[_0x2258f1(0x1b7)](_0x2258f1(0x19a));if(_0xd80482===_0x2258f1(0x1a3)){const _0xb84cd6=Number(_0x4768b9);if(isNaN(_0xb84cd6)||_0xb84cd6<=0x0)throw CliErrors[_0x2258f1(0x1b7)](_0x2258f1(0x194));}const _0x2ebd78=resolveWriteScope({'explicitGlobal':_0x35c9cf[_0x2258f1(0x19f)](_0x2258f1(0x1c1)),'policy':_0x2258f1(0x1ae)}),_0x1c6345=toScopeFlags(_0x2ebd78),_0x3f298b=readScopedConfig(_0x1c6345),_0x656b0d=parseAliasAppcodeSetKey(_0xd80482);if(!_0x656b0d&&!isTopLevelConfigKey(_0xd80482))throw CliErrors[_0x2258f1(0x1b7)](_0x2258f1(0x1c7)+_0xd80482+'\x22\x20is\x20not\x20settable.',_0x2258f1(0x1cc)+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');return _0x656b0d?setLocalAppAlias(_0x3f298b,_0x656b0d,_0x4768b9):_0x3f298b[_0xd80482]=_0xd80482==='pageSize'?Number(_0x4768b9):_0x4768b9,console[_0x2258f1(0x1c6)]('Set\x20`'+_0xd80482+'`\x20=\x20\x22'+_0x4768b9+'\x22'+(_0x2ebd78==='global'?_0x2258f1(0x1c2):'')),writeScopedConfig(_0x3f298b,_0x1c6345),{'ok':!![]};}},deleteDef={'service':'config','command':'delete','description':a22_0x246dc5(0x1ba),'risk':a22_0x246dc5(0x192),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x246dc5(0x1cf),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0xb72118){const _0x5b878e=a22_0x246dc5,_0x18385c=_0xb72118[_0x5b878e(0x1af)][0x0];if(!_0x18385c)throw CliErrors[_0x5b878e(0x1b7)](_0x5b878e(0x1a2),_0x5b878e(0x1b3)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x2c26f2=resolveWriteScope({'explicitGlobal':_0xb72118[_0x5b878e(0x19f)]('global'),'policy':_0x5b878e(0x1ae)}),_0x350d7e=toScopeFlags(_0x2c26f2),_0x435bcd=readScopedConfig(_0x350d7e),_0x452f19=parseAliasDeleteKey(_0x18385c);if(_0x452f19){if(!deleteLocalAppAlias(_0x435bcd,_0x452f19))throw CliErrors[_0x5b878e(0x1b7)](_0x5b878e(0x197)+_0x18385c);return console[_0x5b878e(0x1c6)](_0x5b878e(0x1c9)+_0x18385c+'`'+(_0x2c26f2===_0x5b878e(0x1c1)?'\x20(global)':'')),writeScopedConfig(_0x435bcd,_0x350d7e),{'ok':!![]};}if(_0x435bcd[_0x18385c]===undefined)throw CliErrors['validation']('Key\x20\x22'+_0x18385c+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0x435bcd[_0x18385c],console[_0x5b878e(0x1c6)](_0x5b878e(0x1c9)+_0x18385c+'`'+(_0x2c26f2===_0x5b878e(0x1c1)?_0x5b878e(0x1c2):'')),writeScopedConfig(_0x435bcd,_0x350d7e),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- (function(_0x111ffc,_0x187e16){var _0x610881=a23_0x4a4c,_0x8f503d=_0x111ffc();while(!![]){try{var _0x16ff88=-parseInt(_0x610881(0x16d))/0x1+-parseInt(_0x610881(0x16e))/0x2+-parseInt(_0x610881(0x16c))/0x3+parseInt(_0x610881(0x16b))/0x4*(parseInt(_0x610881(0x16f))/0x5)+-parseInt(_0x610881(0x171))/0x6*(-parseInt(_0x610881(0x173))/0x7)+parseInt(_0x610881(0x170))/0x8+parseInt(_0x610881(0x172))/0x9*(parseInt(_0x610881(0x174))/0xa);if(_0x16ff88===_0x187e16)break;else _0x8f503d['push'](_0x8f503d['shift']());}catch(_0x316593){_0x8f503d['push'](_0x8f503d['shift']());}}}(a23_0x2338,0xc179d));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};function a23_0x2338(){var _0x580a79=['604824WxMRPj','78340PzWeLM','4347384OKinPD','12CDSSWF','33435LTtNzx','2475844yYgQZg','820izdAOx','232haqInO','3964227LoZFxW','47883iBLLDs'];a23_0x2338=function(){return _0x580a79;};return a23_0x2338();}export{readScopedConfig,writeScopedConfig}from'../../context.js';function a23_0x4a4c(_0x125cc6,_0x3b114f){_0x125cc6=_0x125cc6-0x16b;var _0x23381c=a23_0x2338();var _0x4a4c24=_0x23381c[_0x125cc6];return _0x4a4c24;}export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
1
+ function a23_0x7dd8(){var _0x91ded5=['10SFoNOR','1347660cSpXOc','372cnTmJV','2099296vwjnRK','58933lldNyd','36jBHwgW','16390033XoRuKS','813208RFFgLA','1GwbWCd','278160EfFuNQ','1119046MReWCQ'];a23_0x7dd8=function(){return _0x91ded5;};return a23_0x7dd8();}(function(_0x55a537,_0x10587e){var _0x13e575=a23_0x3a69,_0xd6ce4a=_0x55a537();while(!![]){try{var _0x4dcbe7=-parseInt(_0x13e575(0xbc))/0x1*(-parseInt(_0x13e575(0xbe))/0x2)+parseInt(_0x13e575(0xbd))/0x3+-parseInt(_0x13e575(0xb7))/0x4+-parseInt(_0x13e575(0xb5))/0x5+parseInt(_0x13e575(0xb6))/0x6*(-parseInt(_0x13e575(0xb8))/0x7)+-parseInt(_0x13e575(0xbb))/0x8*(parseInt(_0x13e575(0xb9))/0x9)+-parseInt(_0x13e575(0xbf))/0xa*(-parseInt(_0x13e575(0xba))/0xb);if(_0x4dcbe7===_0x10587e)break;else _0xd6ce4a['push'](_0xd6ce4a['shift']());}catch(_0x93da81){_0xd6ce4a['push'](_0xd6ce4a['shift']());}}}(a23_0x7dd8,0x665ec));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};function a23_0x3a69(_0x31e52a,_0x36249f){_0x31e52a=_0x31e52a-0xb5;var _0x7dd8dc=a23_0x7dd8();var _0x3a6934=_0x7dd8dc[_0x31e52a];return _0x3a6934;}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
- function a24_0x483a(){const _0x5a8a29=['\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\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\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}','\x20\x20LOGICAL\x20COMBINATORS','2358yYUcuG','str','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','create','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','map','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','1260hAZsMj','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\x20\x20WHERE\x20OPERATORS','1185qFuoKf','\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}}','delete','POST','10087wurhYB','80pskYGx','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','\x20on\x20dataset\x20','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','\x20\x20\x20\x20$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}}','now','\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}}','join','command','134374TpKmPo','1878nDgiXp','/api/{appCode}/','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','Preview:\x20data\x20','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','filter','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20EXAMPLES','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\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\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','1245909wgcdGm','\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}','data\x20','2492556HbIvLW','476739jDwmiP','Update\x20an\x20existing\x20record','\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\x20PARAMS\x20STRUCTURE','update','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\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}}','\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','data','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','batchCreate','code','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','Get\x20a\x20single\x20record\x20by\x20ID','paramsHint','\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]}}','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','dryRun','aggregate','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','write','\x20completed\x20in\x20','description','helpExtra','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\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}','getOne','length','params','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','read','6905xbZhdT','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20AGGREGATE\x20TYPES','risk','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','body','operation'];a24_0x483a=function(){return _0x5a8a29;};return a24_0x483a();}function a24_0x5bd6(_0x473f0d,_0x2e9b7a){_0x473f0d=_0x473f0d-0x191;const _0x483a2e=a24_0x483a();let _0x5bd673=_0x483a2e[_0x473f0d];return _0x5bd673;}const a24_0x2d4bb7=a24_0x5bd6;(function(_0x2b4ea1,_0x4dba3e){const _0x4fcb80=a24_0x5bd6,_0x3f483f=_0x2b4ea1();while(!![]){try{const _0x1ec1d3=parseInt(_0x4fcb80(0x1e0))/0x1+parseInt(_0x4fcb80(0x1c0))/0x2*(-parseInt(_0x4fcb80(0x1ce))/0x3)+parseInt(_0x4fcb80(0x194))/0x4+-parseInt(_0x4fcb80(0x1b4))/0x5*(parseInt(_0x4fcb80(0x1e1))/0x6)+-parseInt(_0x4fcb80(0x191))/0x7+-parseInt(_0x4fcb80(0x1d3))/0x8*(-parseInt(_0x4fcb80(0x195))/0x9)+-parseInt(_0x4fcb80(0x1cb))/0xa*(-parseInt(_0x4fcb80(0x1d2))/0xb);if(_0x1ec1d3===_0x4dba3e)break;else _0x3f483f['push'](_0x3f483f['shift']());}catch(_0x385dbe){_0x3f483f['push'](_0x3f483f['shift']());}}}(a24_0x483a,0x4fca4));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x2d4bb7(0x1e6),'operation':a24_0x2d4bb7(0x1e6),'risk':a24_0x2d4bb7(0x1b3),'paramsRequired':![],'description':a24_0x2d4bb7(0x1cc),'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+a24_0x2d4bb7(0x1b9),'helpExtra':[a24_0x2d4bb7(0x1cd),a24_0x2d4bb7(0x197),a24_0x2d4bb7(0x1db),a24_0x2d4bb7(0x1cf),a24_0x2d4bb7(0x19b),a24_0x2d4bb7(0x1c6),a24_0x2d4bb7(0x1c5),a24_0x2d4bb7(0x1a4),'\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}',a24_0x2d4bb7(0x1a8),a24_0x2d4bb7(0x1dd),'',a24_0x2d4bb7(0x1bf),'\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_0x2d4bb7(0x1d9),'',a24_0x2d4bb7(0x1e5),a24_0x2d4bb7(0x19e),a24_0x2d4bb7(0x1c4),a24_0x2d4bb7(0x1bc),a24_0x2d4bb7(0x1a1),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','','\x20\x20PAGINATION','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.',a24_0x2d4bb7(0x1ad),a24_0x2d4bb7(0x1c8)][a24_0x2d4bb7(0x1de)]('\x0a')},{'command':a24_0x2d4bb7(0x1af),'operation':a24_0x2d4bb7(0x1af),'risk':a24_0x2d4bb7(0x1b3),'paramsRequired':!![],'description':a24_0x2d4bb7(0x1a2),'paramsHint':a24_0x2d4bb7(0x1d8)},{'command':a24_0x2d4bb7(0x1c7),'operation':a24_0x2d4bb7(0x1c7),'risk':'write','paramsRequired':!![],'description':a24_0x2d4bb7(0x1d7),'paramsHint':a24_0x2d4bb7(0x1a5)},{'command':'batchCreate','operation':'batchCreate','risk':a24_0x2d4bb7(0x1a9),'paramsRequired':!![],'description':a24_0x2d4bb7(0x1c2),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':'update','operation':a24_0x2d4bb7(0x199),'risk':a24_0x2d4bb7(0x1a9),'paramsRequired':!![],'description':a24_0x2d4bb7(0x196),'paramsHint':a24_0x2d4bb7(0x1d4)+'Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27'},{'command':a24_0x2d4bb7(0x1d0),'operation':'delete','risk':'high-risk-write','paramsRequired':!![],'description':a24_0x2d4bb7(0x1c3),'paramsHint':a24_0x2d4bb7(0x1d8)},{'command':'aggregate','operation':a24_0x2d4bb7(0x1a7),'risk':'read','paramsRequired':![],'description':a24_0x2d4bb7(0x1b8),'paramsHint':a24_0x2d4bb7(0x1e7)+a24_0x2d4bb7(0x1e3),'helpExtra':[a24_0x2d4bb7(0x1b6),a24_0x2d4bb7(0x192),a24_0x2d4bb7(0x1be),a24_0x2d4bb7(0x1ae),a24_0x2d4bb7(0x1b5),a24_0x2d4bb7(0x1e8),'\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_0x2d4bb7(0x1ec),'',a24_0x2d4bb7(0x198),a24_0x2d4bb7(0x1ed),a24_0x2d4bb7(0x19a),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)',a24_0x2d4bb7(0x1bd),a24_0x2d4bb7(0x1b2),a24_0x2d4bb7(0x1d5),'',a24_0x2d4bb7(0x1ea),a24_0x2d4bb7(0x1e9),a24_0x2d4bb7(0x19c),'',a24_0x2d4bb7(0x1ca),a24_0x2d4bb7(0x1da),'',a24_0x2d4bb7(0x1eb)][a24_0x2d4bb7(0x1de)]('\x0a')}];function makeDataCommand(_0x2bf382){const _0x8f1717=a24_0x2d4bb7,_0x137646=_0x8f1717(0x193)+_0x2bf382[_0x8f1717(0x1df)],_0x26f797={'service':_0x8f1717(0x19d),'command':_0x2bf382[_0x8f1717(0x1df)],'description':_0x2bf382['description'],'risk':_0x2bf382[_0x8f1717(0x1b7)],'helpExtra':_0x2bf382[_0x8f1717(0x1ac)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x2bf382[_0x8f1717(0x1a3)]}],'validate':async _0x21d565=>{const _0x2935b3=_0x8f1717;_0x2bf382['paramsRequired']&&requireAnyOf(_0x21d565,[_0x2935b3(0x1b1)],_0x137646),_0x2bf382[_0x2935b3(0x1bb)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x21d565['str'](_0x2935b3(0x1b1)))),_0x2bf382[_0x2935b3(0x1bb)]===_0x2935b3(0x199)&&parseUpdateIdsFromParams(parseJsonParams(_0x21d565['str']('params'))??{});},async 'execute'(_0x2abedc){const _0x4a0cc3=_0x8f1717,_0x26dbf8=_0x2abedc[_0x4a0cc3(0x1c1)](_0x4a0cc3(0x1a0)),_0x13c585=_0x2bf382[_0x4a0cc3(0x1bb)]===_0x4a0cc3(0x19f)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2abedc[_0x4a0cc3(0x1c1)](_0x4a0cc3(0x1b1)))):parseJsonParams(_0x2abedc['str'](_0x4a0cc3(0x1b1)))??{},_0x1158e1=_0x2bf382['operation']===_0x4a0cc3(0x199)?parseUpdateIdsFromParams(_0x13c585):undefined,_0x1720a5=_0x1158e1?normalizeUpdateParamsForRuntime(_0x13c585,_0x1158e1):_0x13c585,_0x25b721=Date[_0x4a0cc3(0x1dc)](),_0x12027e=await executeData(_0x26dbf8,_0x2bf382[_0x4a0cc3(0x1bb)],_0x1720a5),_0x5c6a06=Date['now']()-_0x25b721,_0x568566=_0x1158e1&&_0x1158e1[_0x4a0cc3(0x1b0)]>0x1?buildBatchUpdateResult(_0x1158e1,_0x12027e):_0x12027e;return{'ok':!![],'data':{'result':_0x568566,'elapsed':_0x5c6a06},'message':'data\x20'+_0x2bf382[_0x4a0cc3(0x1df)]+_0x4a0cc3(0x1aa)+_0x5c6a06+'ms'};}};return _0x2bf382[_0x8f1717(0x1b7)]!==_0x8f1717(0x1b3)&&(_0x26f797[_0x8f1717(0x1a6)]=async _0x23a108=>{const _0xadf25b=_0x8f1717,_0x5cf55a=_0x23a108[_0xadf25b(0x1c1)](_0xadf25b(0x1a0)),_0x4a6494=_0x2bf382['operation']===_0xadf25b(0x19f)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x23a108[_0xadf25b(0x1c1)](_0xadf25b(0x1b1)))):parseJsonParams(_0x23a108[_0xadf25b(0x1c1)](_0xadf25b(0x1b1)))??{};let _0xe77c86=_0x4a6494;if(_0x2bf382['operation']===_0xadf25b(0x199)){const _0x1d40d5=parseUpdateIdsFromParams(_0x4a6494);_0xe77c86=normalizeUpdateParamsForRuntime(_0x4a6494,_0x1d40d5);}return dryRun(_0xadf25b(0x1d1),_0xadf25b(0x1e2)+_0x5cf55a+'/'+_0x2bf382[_0xadf25b(0x1bb)])[_0xadf25b(0x1ba)](_0xe77c86)[_0xadf25b(0x1ab)](_0xadf25b(0x1e4)+_0x2bf382[_0xadf25b(0x1df)]+_0xadf25b(0x1d6)+_0x5cf55a)['build']();}),_0x26f797;}export const dataDefinitions=specs[a24_0x2d4bb7(0x1c9)](makeDataCommand);function buildBatchUpdateResult(_0x22f0d7,_0x52b1dc){const _0x32707e=a24_0x2d4bb7;return{'operation':'update','mode':'batch','ids':_0x22f0d7,'total':_0x22f0d7[_0x32707e(0x1b0)],'result':_0x52b1dc};}
1
+ const a24_0x108d92=a24_0x4fcd;(function(_0x2d1d48,_0x176bd1){const _0x3786d3=a24_0x4fcd,_0x55bea9=_0x2d1d48();while(!![]){try{const _0x26b95d=-parseInt(_0x3786d3(0x169))/0x1*(parseInt(_0x3786d3(0x12e))/0x2)+-parseInt(_0x3786d3(0x16f))/0x3*(-parseInt(_0x3786d3(0x170))/0x4)+parseInt(_0x3786d3(0x148))/0x5+parseInt(_0x3786d3(0x147))/0x6+-parseInt(_0x3786d3(0x15c))/0x7+-parseInt(_0x3786d3(0x121))/0x8*(-parseInt(_0x3786d3(0x165))/0x9)+-parseInt(_0x3786d3(0x140))/0xa;if(_0x26b95d===_0x176bd1)break;else _0x55bea9['push'](_0x55bea9['shift']());}catch(_0x13e005){_0x55bea9['push'](_0x55bea9['shift']());}}}(a24_0x13ed,0x70228));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a24_0x13ed(){const _0x1226d2=['Filter\x20dataset\x20records\x20with\x20query\x20conditions','risk','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','body','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','8TCSBVz','build','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\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}}','write','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','length','paramsHint','\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\x20AGGREGATE\x20TYPES','\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','data\x20','Get\x20a\x20single\x20record\x20by\x20ID','batchCreate','params','Preview:\x20data\x20','data','3592730XDlGtu','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\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}','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\x20completed\x20in\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','4078878dImfpz','2027090dQQaSm','aggregate','code','\x20\x20LOGICAL\x20COMBINATORS','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','batch','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\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}}','description','getOne','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','helpExtra','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','now','\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\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}','read','delete','\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]','883624yhDYgD','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','create','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','map','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20WHERE\x20OPERATORS','\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\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','27LyHOTV','\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\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}','POST','222529HKUKdm','\x20\x20PAGINATION','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','2463CyCNbr','3084xHIAJb','\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}}','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\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}}','command','Update\x20an\x20existing\x20record','str','update','\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','311208uDffAi','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','paramsRequired','operation','join','\x20\x20PARAMS\x20STRUCTURE'];a24_0x13ed=function(){return _0x1226d2;};return a24_0x13ed();}import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';function a24_0x4fcd(_0x6725be,_0x55edc0){_0x6725be=_0x6725be-0x119;const _0x13edc3=a24_0x13ed();let _0x4fcde7=_0x13edc3[_0x6725be];return _0x4fcde7;}const specs=[{'command':'filter','operation':a24_0x108d92(0x120),'risk':a24_0x108d92(0x159),'paramsRequired':![],'description':a24_0x108d92(0x128),'paramsHint':a24_0x108d92(0x12d)+a24_0x108d92(0x172),'helpExtra':[a24_0x108d92(0x162),a24_0x108d92(0x11a),a24_0x108d92(0x14f),'\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_0x108d92(0x11f),'\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}',a24_0x108d92(0x171),a24_0x108d92(0x16b),'\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}',a24_0x108d92(0x131),'',a24_0x108d92(0x14b),a24_0x108d92(0x137),'\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_0x108d92(0x164),a24_0x108d92(0x16d),a24_0x108d92(0x12a),a24_0x108d92(0x163),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a24_0x108d92(0x119),'',a24_0x108d92(0x16a),a24_0x108d92(0x153),a24_0x108d92(0x130),a24_0x108d92(0x123)][a24_0x108d92(0x126)]('\x0a')},{'command':a24_0x108d92(0x151),'operation':a24_0x108d92(0x151),'risk':a24_0x108d92(0x159),'paramsRequired':!![],'description':a24_0x108d92(0x13b),'paramsHint':a24_0x108d92(0x12c)},{'command':'create','operation':a24_0x108d92(0x15e),'risk':a24_0x108d92(0x132),'paramsRequired':!![],'description':'Create\x20a\x20new\x20record\x20in\x20a\x20dataset','paramsHint':'JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27'},{'command':a24_0x108d92(0x13c),'operation':'batchCreate','risk':a24_0x108d92(0x132),'paramsRequired':!![],'description':a24_0x108d92(0x15f),'paramsHint':a24_0x108d92(0x15d)},{'command':'update','operation':'update','risk':a24_0x108d92(0x132),'paramsRequired':!![],'description':a24_0x108d92(0x11c),'paramsHint':a24_0x108d92(0x152)+a24_0x108d92(0x143)},{'command':'delete','operation':a24_0x108d92(0x15a),'risk':'high-risk-write','paramsRequired':!![],'description':a24_0x108d92(0x141),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a24_0x108d92(0x149),'operation':a24_0x108d92(0x149),'risk':a24_0x108d92(0x159),'paramsRequired':![],'description':a24_0x108d92(0x14c),'paramsHint':a24_0x108d92(0x122)+a24_0x108d92(0x16c),'helpExtra':[a24_0x108d92(0x138),'\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_0x108d92(0x167),a24_0x108d92(0x133),a24_0x108d92(0x142),a24_0x108d92(0x158),a24_0x108d92(0x157),'',a24_0x108d92(0x127),a24_0x108d92(0x15b),'\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)',a24_0x108d92(0x161),a24_0x108d92(0x166),a24_0x108d92(0x134),'',a24_0x108d92(0x146),a24_0x108d92(0x14e),a24_0x108d92(0x139),'',a24_0x108d92(0x155),a24_0x108d92(0x145),'',a24_0x108d92(0x16e)][a24_0x108d92(0x126)]('\x0a')}];function makeDataCommand(_0x3f3dc3){const _0x149e32=a24_0x108d92,_0x46af54='data\x20'+_0x3f3dc3[_0x149e32(0x11b)],_0x3c0e35={'service':_0x149e32(0x13f),'command':_0x3f3dc3['command'],'description':_0x3f3dc3[_0x149e32(0x150)],'risk':_0x3f3dc3[_0x149e32(0x129)],'helpExtra':_0x3f3dc3[_0x149e32(0x154)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x3f3dc3[_0x149e32(0x136)]}],'validate':async _0x3cb6e5=>{const _0x22d345=_0x149e32;_0x3f3dc3[_0x22d345(0x124)]&&requireAnyOf(_0x3cb6e5,[_0x22d345(0x13d)],_0x46af54),_0x3f3dc3[_0x22d345(0x125)]===_0x22d345(0x13c)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3cb6e5[_0x22d345(0x11d)]('params'))),_0x3f3dc3[_0x22d345(0x125)]==='update'&&parseUpdateIdsFromParams(parseJsonParams(_0x3cb6e5['str']('params'))??{});},async 'execute'(_0x5421d3){const _0x12a706=_0x149e32,_0x224810=_0x5421d3[_0x12a706(0x11d)](_0x12a706(0x14a)),_0x3625b5=_0x3f3dc3[_0x12a706(0x125)]===_0x12a706(0x13c)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5421d3[_0x12a706(0x11d)](_0x12a706(0x13d)))):parseJsonParams(_0x5421d3['str'](_0x12a706(0x13d)))??{},_0x349db5=_0x3f3dc3[_0x12a706(0x125)]===_0x12a706(0x11e)?parseUpdateIdsFromParams(_0x3625b5):undefined,_0x3ea466=_0x349db5?normalizeUpdateParamsForRuntime(_0x3625b5,_0x349db5):_0x3625b5,_0x945cd9=Date[_0x12a706(0x156)](),_0x50e666=await executeData(_0x224810,_0x3f3dc3['operation'],_0x3ea466),_0x960f38=Date[_0x12a706(0x156)]()-_0x945cd9,_0x5993f9=_0x349db5&&_0x349db5['length']>0x1?buildBatchUpdateResult(_0x349db5,_0x50e666):_0x50e666;return{'ok':!![],'data':{'result':_0x5993f9,'elapsed':_0x960f38},'message':_0x12a706(0x13a)+_0x3f3dc3['command']+_0x12a706(0x144)+_0x960f38+'ms'};}};return _0x3f3dc3['risk']!==_0x149e32(0x159)&&(_0x3c0e35['dryRun']=async _0xb1e42b=>{const _0x267d49=_0x149e32,_0x5355a1=_0xb1e42b[_0x267d49(0x11d)](_0x267d49(0x14a)),_0x2b3a1c=_0x3f3dc3[_0x267d49(0x125)]===_0x267d49(0x13c)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0xb1e42b[_0x267d49(0x11d)](_0x267d49(0x13d)))):parseJsonParams(_0xb1e42b['str']('params'))??{};let _0x520c82=_0x2b3a1c;if(_0x3f3dc3[_0x267d49(0x125)]===_0x267d49(0x11e)){const _0x4e2798=parseUpdateIdsFromParams(_0x2b3a1c);_0x520c82=normalizeUpdateParamsForRuntime(_0x2b3a1c,_0x4e2798);}return dryRun(_0x267d49(0x168),'/api/{appCode}/'+_0x5355a1+'/'+_0x3f3dc3[_0x267d49(0x125)])[_0x267d49(0x12b)](_0x520c82)[_0x267d49(0x150)](_0x267d49(0x13e)+_0x3f3dc3['command']+'\x20on\x20dataset\x20'+_0x5355a1)[_0x267d49(0x12f)]();}),_0x3c0e35;}export const dataDefinitions=specs[a24_0x108d92(0x160)](makeDataCommand);function buildBatchUpdateResult(_0x26db98,_0x5ba662){const _0x25885d=a24_0x108d92;return{'operation':_0x25885d(0x11e),'mode':_0x25885d(0x14d),'ids':_0x26db98,'total':_0x26db98[_0x25885d(0x135)],'result':_0x5ba662};}
@@ -1 +1 @@
1
- const a25_0x1605f3=a25_0x2aa1;function a25_0x372d(){const _0x5ee8b5=['5897206mOwflt','description','dbName','host','tableComment','push','dbType','updateTimeField','deleted','map','8oSimno','doType','beforeScriptId','path','1434FDtacu','name','string','entries','4625DBDUkI','extend','labelField','dblinkInfoDTO','282072rjWYyI','operations','relations','relatedPageInfoList','code','length','pkField','allFieldNames','displayName','validateRules','dataset','9uvgGZw','modelId','trim','read','17510770SOllVA','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','properties','object','source','indexes','required','modifierNameField','6755528IwuEgL','tableName','options','split','filter','detail','dbId','sourceType','doVersion','columnCodeListWithDeleted','allFields','isArray','3749392KXitsP','modelCode','responseBody','589602CIVZlV','title','fields','requestBody','requestFields','parse','creatorNameField','str','responseFields'];a25_0x372d=function(){return _0x5ee8b5;};return a25_0x372d();}(function(_0x1f8afe,_0x44e612){const _0x185272=a25_0x2aa1,_0x594081=_0x1f8afe();while(!![]){try{const _0x484f98=parseInt(_0x185272(0x13b))/0x1+parseInt(_0x185272(0x12f))/0x2*(parseInt(_0x185272(0x161))/0x3)+parseInt(_0x185272(0x15e))/0x4+parseInt(_0x185272(0x137))/0x5*(parseInt(_0x185272(0x133))/0x6)+-parseInt(_0x185272(0x16a))/0x7+parseInt(_0x185272(0x152))/0x8+-parseInt(_0x185272(0x146))/0x9*(parseInt(_0x185272(0x14a))/0xa);if(_0x484f98===_0x44e612)break;else _0x594081['push'](_0x594081['shift']());}catch(_0x530049){_0x594081['push'](_0x594081['shift']());}}}(a25_0x372d,0x74961));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x473aed){const _0x463480=a25_0x2aa1;if(_0x473aed['deleted'])return null;const _0x5af0d6=Boolean(_0x473aed['displayName']!==undefined||_0x473aed[_0x463480(0x130)]!==undefined);let _0x4273ae={};if(!_0x5af0d6&&typeof _0x473aed[_0x463480(0x138)]===_0x463480(0x135))try{_0x4273ae=JSON[_0x463480(0x166)](_0x473aed['extend']);}catch{}const _0x2f5d5e=_0x5af0d6?_0x473aed[_0x463480(0x134)]:_0x473aed[_0x463480(0x13f)],_0x176f02=_0x5af0d6?_0x473aed[_0x463480(0x143)]:_0x473aed[_0x463480(0x134)],_0x4cd0ff=_0x5af0d6?_0x473aed['doType']:_0x473aed['type']||_0x473aed['dataType'],_0x186214=_0x5af0d6?_0x473aed[_0x463480(0x141)]===!![]:_0x4273ae[_0x463480(0x141)]===!![],_0x20ab2f=_0x5af0d6?_0x473aed['required']===!![]:_0x4273ae[_0x463480(0x150)]===!![],_0x13589a=_0x5af0d6?_0x473aed[_0x463480(0x154)]??null:_0x4273ae[_0x463480(0x154)]??null,_0x32f8de={'name':_0x2f5d5e,'displayName':_0x176f02||_0x2f5d5e,'type':_0x4cd0ff,'dbType':_0x473aed[_0x463480(0x12b)],'pk':_0x186214,'required':_0x20ab2f,'description':_0x473aed[_0x463480(0x16b)]||undefined};return Array[_0x463480(0x15d)](_0x13589a)&&_0x13589a[_0x463480(0x140)]>0x0&&(_0x32f8de[_0x463480(0x154)]=_0x13589a),_0x32f8de;}function parseJsonMaybe(_0x2e92a5){const _0x49cc3c=a25_0x2aa1;if(typeof _0x2e92a5!==_0x49cc3c(0x135))return _0x2e92a5;try{return JSON[_0x49cc3c(0x166)](_0x2e92a5);}catch{return _0x2e92a5;}}function normalizeOperationEntry(_0x3f4ca5,_0x478ce0){const _0x3d8d23=a25_0x2aa1;if(!_0x478ce0||typeof _0x478ce0!==_0x3d8d23(0x14d))return null;if(!_0x478ce0['method']||!_0x478ce0[_0x3d8d23(0x132)])return null;const _0x5c0235={'name':_0x3f4ca5,'method':_0x478ce0['method'],'path':_0x478ce0[_0x3d8d23(0x132)]};if(_0x478ce0[_0x3d8d23(0x16d)])_0x5c0235[_0x3d8d23(0x16d)]=_0x478ce0[_0x3d8d23(0x16d)];if(_0x478ce0[_0x3d8d23(0x164)]!=null)_0x5c0235[_0x3d8d23(0x164)]=parseJsonMaybe(_0x478ce0[_0x3d8d23(0x164)]);if(_0x478ce0[_0x3d8d23(0x160)]!=null)_0x5c0235[_0x3d8d23(0x160)]=parseJsonMaybe(_0x478ce0[_0x3d8d23(0x160)]);if(_0x478ce0[_0x3d8d23(0x131)]!=null)_0x5c0235[_0x3d8d23(0x131)]=_0x478ce0[_0x3d8d23(0x131)];if(_0x478ce0['afterScriptId']!=null)_0x5c0235['afterScriptId']=_0x478ce0['afterScriptId'];if(Array[_0x3d8d23(0x15d)](_0x478ce0[_0x3d8d23(0x165)]))_0x5c0235[_0x3d8d23(0x165)]=_0x478ce0['requestFields'];if(Array[_0x3d8d23(0x15d)](_0x478ce0[_0x3d8d23(0x169)]))_0x5c0235[_0x3d8d23(0x169)]=_0x478ce0['responseFields'];return _0x5c0235;}function summarizeDbtable(_0x46674f){const _0x418111=a25_0x2aa1,_0x5de750={},_0x5a218f=[_0x418111(0x158),_0x418111(0x16c),_0x418111(0x153),'datasetKey',_0x418111(0x141),'allFields','logicField','createTimeField',_0x418111(0x12c),'creatorIdField',_0x418111(0x167),'modifierIdField',_0x418111(0x151),_0x418111(0x139),_0x418111(0x13a)];for(const _0x4e37ed of _0x5a218f){if(_0x46674f[_0x4e37ed]!==undefined)_0x5de750[_0x4e37ed]=_0x46674f[_0x4e37ed];}return typeof _0x5de750[_0x418111(0x15c)]==='string'&&_0x5de750[_0x418111(0x15c)]['length']>0x0&&(_0x5de750[_0x418111(0x142)]=_0x5de750[_0x418111(0x15c)][_0x418111(0x155)](',')['map'](_0x3ca714=>_0x3ca714[_0x418111(0x148)]())[_0x418111(0x156)](Boolean)),_0x5de750;}function normalizeRelatedPages(_0x362e9b){const _0x4d34d0=a25_0x2aa1;if(!Array[_0x4d34d0(0x15d)](_0x362e9b))return[];return _0x362e9b[_0x4d34d0(0x156)](_0x3b2884=>_0x3b2884&&typeof _0x3b2884===_0x4d34d0(0x14d))['map'](_0x588359=>({'id':_0x588359['id'],'type':_0x588359['type'],'code':_0x588359[_0x4d34d0(0x13f)],'title':_0x588359[_0x4d34d0(0x162)],'deleted':_0x588359[_0x4d34d0(0x12d)]===!![]}));}function a25_0x2aa1(_0x389c74,_0x2317f1){_0x389c74=_0x389c74-0x129;const _0x372d5e=a25_0x372d();let _0x2aa1d1=_0x372d5e[_0x389c74];return _0x2aa1d1;}function normalizeFallbackFieldName(_0x18b0e6,_0x225234){const _0x5c3e9c=a25_0x2aa1,_0x51f718=_0x18b0e6[_0x5c3e9c(0x148)]();if(!_0x51f718)return null;return{'name':_0x51f718,'displayName':_0x51f718,'type':undefined,'dbType':undefined,'pk':_0x51f718===_0x225234,'required':![],'description':undefined};}async function loadListFieldFallback(_0x3afeaf,_0x1689c5){const _0x5071de=a25_0x2aa1;if(!_0x3afeaf||!_0x1689c5)return[];try{const _0x213a0b=await listDatasets(_0x3afeaf,{'code':_0x1689c5}),_0x1a8ceb=_0x213a0b['find'](_0x4fd208=>_0x4fd208[_0x5071de(0x13f)]===_0x1689c5)??_0x213a0b[0x0],_0x2147f7=_0x1a8ceb?.['dbtableConfig']??{},_0x5e4dd3=typeof _0x2147f7[_0x5071de(0x15c)]===_0x5071de(0x135)?_0x2147f7[_0x5071de(0x15c)][_0x5071de(0x155)](','):[];return _0x5e4dd3[_0x5071de(0x12e)](_0x1e4429=>normalizeFallbackFieldName(_0x1e4429,_0x2147f7[_0x5071de(0x141)]))[_0x5071de(0x156)](_0x45ada3=>_0x45ada3!==null);}catch{return[];}}export const datasetDetail={'service':a25_0x1605f3(0x145),'command':a25_0x1605f3(0x157),'description':a25_0x1605f3(0x14b),'risk':a25_0x1605f3(0x149),'flags':[CODE_FLAG],async 'execute'(_0x42ef19){const _0x25bcfb=a25_0x1605f3,_0xf901cc=await getDatasetDetail(_0x42ef19['str'](_0x25bcfb(0x13f))),_0x59fc11=Array[_0x25bcfb(0x15d)](_0xf901cc[_0x25bcfb(0x163)])?_0xf901cc[_0x25bcfb(0x163)]:Array[_0x25bcfb(0x15d)](_0xf901cc[_0x25bcfb(0x14c)])?_0xf901cc['properties']:[];let _0x3fe26e=_0x59fc11['map'](_0x3178e0=>normalizeField(_0x3178e0))[_0x25bcfb(0x156)](_0x3f8bad=>_0x3f8bad!==null);_0x3fe26e['length']===0x0&&(_0x3fe26e=await loadListFieldFallback(_0x42ef19['appCode'],_0x42ef19[_0x25bcfb(0x168)](_0x25bcfb(0x13f))));const _0x34f640=_0xf901cc[_0x25bcfb(0x13c)]??{},_0x765826=[];for(const [_0x19aeea,_0x9211b8]of Object[_0x25bcfb(0x136)](_0x34f640)){const _0x299325=normalizeOperationEntry(_0x19aeea,_0x9211b8);if(_0x299325)_0x765826[_0x25bcfb(0x12a)](_0x299325);}const _0x303f94=_0xf901cc['dbtableConfig']??{},_0x4ac50d=_0xf901cc[_0x25bcfb(0x145)]??{},_0x122e53=_0x303f94[_0x25bcfb(0x158)]!=null?{'id':_0x303f94[_0x25bcfb(0x158)],'name':_0x303f94['dbName']??null}:undefined;let _0x1abc3c;return typeof _0xf901cc['extend']==='string'&&(_0x1abc3c=parseJsonMaybe(_0xf901cc['extend'])),{'ok':!![],'data':{'id':_0xf901cc[_0x25bcfb(0x147)]??_0xf901cc['id'],'name':_0xf901cc[_0x25bcfb(0x134)],'code':_0xf901cc[_0x25bcfb(0x15f)]||_0xf901cc[_0x25bcfb(0x13f)],'doVersion':_0xf901cc[_0x25bcfb(0x15a)],'description':_0xf901cc['description']||_0x4ac50d[_0x25bcfb(0x129)]||undefined,'source':_0xf901cc[_0x25bcfb(0x14e)]||_0x4ac50d[_0x25bcfb(0x159)],'table':_0x303f94[_0x25bcfb(0x153)]||_0x4ac50d[_0x25bcfb(0x153)],'datasetKey':_0x303f94['datasetKey'],'pk':_0x303f94[_0x25bcfb(0x141)],'db':_0x122e53,'dbtable':summarizeDbtable(_0x303f94),'fields':_0x3fe26e,'operations':_0x765826,'indexes':Array['isArray'](_0x4ac50d[_0x25bcfb(0x14f)])?_0x4ac50d['indexes']:[],'relations':_0xf901cc[_0x25bcfb(0x13d)]??null,'relatedPages':normalizeRelatedPages(_0xf901cc[_0x25bcfb(0x13e)]),...Array[_0x25bcfb(0x15d)](_0xf901cc[_0x25bcfb(0x15b)])?{'columnCodeListWithDeleted':_0xf901cc[_0x25bcfb(0x15b)]}:{},'formatRules':Array['isArray'](_0xf901cc['formatRules'])?_0xf901cc['formatRules']:[],'validateRules':Array[_0x25bcfb(0x15d)](_0xf901cc['validateRules'])?_0xf901cc[_0x25bcfb(0x144)]:[],..._0x1abc3c!==undefined?{'extend':_0x1abc3c}:{},'stats':{'fieldCount':_0x3fe26e[_0x25bcfb(0x140)],'operationCount':_0x765826[_0x25bcfb(0x140)]}}};}};
1
+ const a25_0x5e415f=a25_0x1e92;(function(_0x26d688,_0x400ce2){const _0x5b7197=a25_0x1e92,_0x5bf767=_0x26d688();while(!![]){try{const _0x5da7dd=-parseInt(_0x5b7197(0x185))/0x1+parseInt(_0x5b7197(0x18a))/0x2*(-parseInt(_0x5b7197(0x180))/0x3)+parseInt(_0x5b7197(0x17d))/0x4+-parseInt(_0x5b7197(0x17e))/0x5+-parseInt(_0x5b7197(0x177))/0x6+-parseInt(_0x5b7197(0x170))/0x7+-parseInt(_0x5b7197(0x198))/0x8*(-parseInt(_0x5b7197(0x17c))/0x9);if(_0x5da7dd===_0x400ce2)break;else _0x5bf767['push'](_0x5bf767['shift']());}catch(_0x5c6352){_0x5bf767['push'](_0x5bf767['shift']());}}}(a25_0xce04,0x9ceb0));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0xe0d73e){const _0x575104=a25_0x1e92;if(_0xe0d73e[_0x575104(0x18d)])return null;const _0x31d1dd=Boolean(_0xe0d73e[_0x575104(0x179)]!==undefined||_0xe0d73e[_0x575104(0x196)]!==undefined);let _0xdf2c06={};if(!_0x31d1dd&&typeof _0xe0d73e[_0x575104(0x1ae)]===_0x575104(0x1b9))try{_0xdf2c06=JSON[_0x575104(0x17b)](_0xe0d73e[_0x575104(0x1ae)]);}catch{}const _0x4c54aa=_0x31d1dd?_0xe0d73e['name']:_0xe0d73e[_0x575104(0x189)],_0xd60877=_0x31d1dd?_0xe0d73e[_0x575104(0x179)]:_0xe0d73e[_0x575104(0x1a3)],_0x59180b=_0x31d1dd?_0xe0d73e[_0x575104(0x196)]:_0xe0d73e[_0x575104(0x193)]||_0xe0d73e[_0x575104(0x1b5)],_0x5191e1=_0x31d1dd?_0xe0d73e[_0x575104(0x184)]===!![]:_0xdf2c06['pkField']===!![],_0x3fc87d=_0x31d1dd?_0xe0d73e['required']===!![]:_0xdf2c06[_0x575104(0x174)]===!![],_0x4934eb=_0x31d1dd?_0xe0d73e[_0x575104(0x1b7)]??null:_0xdf2c06[_0x575104(0x1b7)]??null,_0x3ac257={'name':_0x4c54aa,'displayName':_0xd60877||_0x4c54aa,'type':_0x59180b,'dbType':_0xe0d73e[_0x575104(0x1b3)],'pk':_0x5191e1,'required':_0x3fc87d,'description':_0xe0d73e[_0x575104(0x18f)]||undefined};return Array[_0x575104(0x1a4)](_0x4934eb)&&_0x4934eb['length']>0x0&&(_0x3ac257[_0x575104(0x1b7)]=_0x4934eb),_0x3ac257;}function a25_0x1e92(_0x674bd9,_0x51706a){_0x674bd9=_0x674bd9-0x170;const _0xce0478=a25_0xce04();let _0x1e9291=_0xce0478[_0x674bd9];return _0x1e9291;}function parseJsonMaybe(_0x1c16f4){const _0x3d140b=a25_0x1e92;if(typeof _0x1c16f4!==_0x3d140b(0x1b9))return _0x1c16f4;try{return JSON['parse'](_0x1c16f4);}catch{return _0x1c16f4;}}function normalizeOperationEntry(_0x5ad669,_0x240df9){const _0x528240=a25_0x1e92;if(!_0x240df9||typeof _0x240df9!=='object')return null;if(!_0x240df9[_0x528240(0x1a1)]||!_0x240df9[_0x528240(0x19e)])return null;const _0x4222ef={'name':_0x5ad669,'method':_0x240df9[_0x528240(0x1a1)],'path':_0x240df9[_0x528240(0x19e)]};if(_0x240df9['host'])_0x4222ef['host']=_0x240df9['host'];if(_0x240df9['requestBody']!=null)_0x4222ef[_0x528240(0x187)]=parseJsonMaybe(_0x240df9[_0x528240(0x187)]);if(_0x240df9['responseBody']!=null)_0x4222ef[_0x528240(0x1a9)]=parseJsonMaybe(_0x240df9[_0x528240(0x1a9)]);if(_0x240df9[_0x528240(0x188)]!=null)_0x4222ef[_0x528240(0x188)]=_0x240df9[_0x528240(0x188)];if(_0x240df9[_0x528240(0x1b6)]!=null)_0x4222ef[_0x528240(0x1b6)]=_0x240df9[_0x528240(0x1b6)];if(Array[_0x528240(0x1a4)](_0x240df9[_0x528240(0x17a)]))_0x4222ef['requestFields']=_0x240df9[_0x528240(0x17a)];if(Array[_0x528240(0x1a4)](_0x240df9[_0x528240(0x1b2)]))_0x4222ef[_0x528240(0x1b2)]=_0x240df9[_0x528240(0x1b2)];return _0x4222ef;}function a25_0xce04(){const _0x32a2b2=['indexes','responseBody','object','str','columnCodeListWithDeleted','formatRules','extend','fields','allFields','source','responseFields','dbType','updateTimeField','dataType','afterScriptId','options','validateRules','string','6277362aNDsvG','push','allFieldNames','find','required','dbtableConfig','trim','1070514jjPwEI','labelField','displayName','requestFields','parse','18kSKRFp','4129836TDzOmC','5158515isSXBq','length','3125757UKZYHZ','dataset','sourceType','operations','pkField','311182fgEvdg','dbId','requestBody','beforeScriptId','code','2hpQPMJ','title','dblinkInfoDTO','deleted','map','description','doVersion','modelId','properties','type','appCode','dbName','doType','detail','12281064hcNqHT','filter','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','creatorIdField','createTimeField','split','path','read','creatorNameField','method','tableName','name','isArray','relations','datasetKey','tableComment'];a25_0xce04=function(){return _0x32a2b2;};return a25_0xce04();}function summarizeDbtable(_0x887dcb){const _0x96253e=a25_0x1e92,_0xc19ca6={},_0x3de48d=[_0x96253e(0x186),_0x96253e(0x195),_0x96253e(0x1a2),_0x96253e(0x1a6),_0x96253e(0x184),_0x96253e(0x1b0),'logicField',_0x96253e(0x19c),_0x96253e(0x1b4),_0x96253e(0x19b),_0x96253e(0x1a0),'modifierIdField','modifierNameField',_0x96253e(0x178),_0x96253e(0x18c)];for(const _0x391212 of _0x3de48d){if(_0x887dcb[_0x391212]!==undefined)_0xc19ca6[_0x391212]=_0x887dcb[_0x391212];}return typeof _0xc19ca6[_0x96253e(0x1b0)]===_0x96253e(0x1b9)&&_0xc19ca6[_0x96253e(0x1b0)][_0x96253e(0x17f)]>0x0&&(_0xc19ca6[_0x96253e(0x172)]=_0xc19ca6[_0x96253e(0x1b0)][_0x96253e(0x19d)](',')['map'](_0x471b17=>_0x471b17[_0x96253e(0x176)]())[_0x96253e(0x199)](Boolean)),_0xc19ca6;}function normalizeRelatedPages(_0x425d8f){const _0x17787b=a25_0x1e92;if(!Array[_0x17787b(0x1a4)](_0x425d8f))return[];return _0x425d8f['filter'](_0x58dcce=>_0x58dcce&&typeof _0x58dcce===_0x17787b(0x1aa))[_0x17787b(0x18e)](_0x402fe8=>({'id':_0x402fe8['id'],'type':_0x402fe8[_0x17787b(0x193)],'code':_0x402fe8[_0x17787b(0x189)],'title':_0x402fe8[_0x17787b(0x18b)],'deleted':_0x402fe8[_0x17787b(0x18d)]===!![]}));}function normalizeFallbackFieldName(_0x1dd3c0,_0x253fd2){const _0x13823b=a25_0x1e92,_0x3d6144=_0x1dd3c0[_0x13823b(0x176)]();if(!_0x3d6144)return null;return{'name':_0x3d6144,'displayName':_0x3d6144,'type':undefined,'dbType':undefined,'pk':_0x3d6144===_0x253fd2,'required':![],'description':undefined};}async function loadListFieldFallback(_0x5e0289,_0x39d306){const _0xcc0a9a=a25_0x1e92;if(!_0x5e0289||!_0x39d306)return[];try{const _0x5a0125=await listDatasets(_0x5e0289,{'code':_0x39d306}),_0x431848=_0x5a0125[_0xcc0a9a(0x173)](_0x31047f=>_0x31047f[_0xcc0a9a(0x189)]===_0x39d306)??_0x5a0125[0x0],_0x2f2ea1=_0x431848?.[_0xcc0a9a(0x175)]??{},_0x47476d=typeof _0x2f2ea1[_0xcc0a9a(0x1b0)]===_0xcc0a9a(0x1b9)?_0x2f2ea1[_0xcc0a9a(0x1b0)][_0xcc0a9a(0x19d)](','):[];return _0x47476d[_0xcc0a9a(0x18e)](_0x3cd51a=>normalizeFallbackFieldName(_0x3cd51a,_0x2f2ea1[_0xcc0a9a(0x184)]))[_0xcc0a9a(0x199)](_0x3f99fe=>_0x3f99fe!==null);}catch{return[];}}export const datasetDetail={'service':a25_0x5e415f(0x181),'command':a25_0x5e415f(0x197),'description':a25_0x5e415f(0x19a),'risk':a25_0x5e415f(0x19f),'flags':[CODE_FLAG],async 'execute'(_0x3a912f){const _0x555ad7=a25_0x5e415f,_0x19ba18=await getDatasetDetail(_0x3a912f[_0x555ad7(0x1ab)](_0x555ad7(0x189))),_0x365a91=Array[_0x555ad7(0x1a4)](_0x19ba18[_0x555ad7(0x1af)])?_0x19ba18[_0x555ad7(0x1af)]:Array[_0x555ad7(0x1a4)](_0x19ba18[_0x555ad7(0x192)])?_0x19ba18[_0x555ad7(0x192)]:[];let _0x37ec31=_0x365a91[_0x555ad7(0x18e)](_0x325691=>normalizeField(_0x325691))[_0x555ad7(0x199)](_0x4f0842=>_0x4f0842!==null);_0x37ec31['length']===0x0&&(_0x37ec31=await loadListFieldFallback(_0x3a912f[_0x555ad7(0x194)],_0x3a912f[_0x555ad7(0x1ab)]('code')));const _0x749dd3=_0x19ba18[_0x555ad7(0x183)]??{},_0x413a98=[];for(const [_0x2251b2,_0x4fb193]of Object['entries'](_0x749dd3)){const _0x4cf262=normalizeOperationEntry(_0x2251b2,_0x4fb193);if(_0x4cf262)_0x413a98[_0x555ad7(0x171)](_0x4cf262);}const _0x4165ee=_0x19ba18[_0x555ad7(0x175)]??{},_0x36b1dd=_0x19ba18['dataset']??{},_0x4a7f09=_0x4165ee[_0x555ad7(0x186)]!=null?{'id':_0x4165ee[_0x555ad7(0x186)],'name':_0x4165ee[_0x555ad7(0x195)]??null}:undefined;let _0x302327;return typeof _0x19ba18[_0x555ad7(0x1ae)]===_0x555ad7(0x1b9)&&(_0x302327=parseJsonMaybe(_0x19ba18[_0x555ad7(0x1ae)])),{'ok':!![],'data':{'id':_0x19ba18[_0x555ad7(0x191)]??_0x19ba18['id'],'name':_0x19ba18[_0x555ad7(0x1a3)],'code':_0x19ba18['modelCode']||_0x19ba18[_0x555ad7(0x189)],'doVersion':_0x19ba18[_0x555ad7(0x190)],'description':_0x19ba18[_0x555ad7(0x18f)]||_0x36b1dd[_0x555ad7(0x1a7)]||undefined,'source':_0x19ba18[_0x555ad7(0x1b1)]||_0x36b1dd[_0x555ad7(0x182)],'table':_0x4165ee[_0x555ad7(0x1a2)]||_0x36b1dd[_0x555ad7(0x1a2)],'datasetKey':_0x4165ee[_0x555ad7(0x1a6)],'pk':_0x4165ee[_0x555ad7(0x184)],'db':_0x4a7f09,'dbtable':summarizeDbtable(_0x4165ee),'fields':_0x37ec31,'operations':_0x413a98,'indexes':Array[_0x555ad7(0x1a4)](_0x36b1dd['indexes'])?_0x36b1dd[_0x555ad7(0x1a8)]:[],'relations':_0x19ba18[_0x555ad7(0x1a5)]??null,'relatedPages':normalizeRelatedPages(_0x19ba18['relatedPageInfoList']),...Array[_0x555ad7(0x1a4)](_0x19ba18[_0x555ad7(0x1ac)])?{'columnCodeListWithDeleted':_0x19ba18['columnCodeListWithDeleted']}:{},'formatRules':Array[_0x555ad7(0x1a4)](_0x19ba18[_0x555ad7(0x1ad)])?_0x19ba18[_0x555ad7(0x1ad)]:[],'validateRules':Array[_0x555ad7(0x1a4)](_0x19ba18[_0x555ad7(0x1b8)])?_0x19ba18[_0x555ad7(0x1b8)]:[],..._0x302327!==undefined?{'extend':_0x302327}:{},'stats':{'fieldCount':_0x37ec31[_0x555ad7(0x17f)],'operationCount':_0x413a98[_0x555ad7(0x17f)]}}};}};
@@ -1 +1 @@
1
- (function(_0x1c8252,_0x14939d){const _0x1628f2=a26_0xcc1f,_0x5a4a78=_0x1c8252();while(!![]){try{const _0x3a8fea=-parseInt(_0x1628f2(0xe3))/0x1*(-parseInt(_0x1628f2(0xe8))/0x2)+parseInt(_0x1628f2(0xe6))/0x3*(parseInt(_0x1628f2(0xe1))/0x4)+-parseInt(_0x1628f2(0xe5))/0x5+parseInt(_0x1628f2(0xe9))/0x6*(-parseInt(_0x1628f2(0xeb))/0x7)+parseInt(_0x1628f2(0xed))/0x8*(-parseInt(_0x1628f2(0xea))/0x9)+-parseInt(_0x1628f2(0xe2))/0xa*(parseInt(_0x1628f2(0xe7))/0xb)+parseInt(_0x1628f2(0xec))/0xc*(parseInt(_0x1628f2(0xe4))/0xd);if(_0x3a8fea===_0x14939d)break;else _0x5a4a78['push'](_0x5a4a78['shift']());}catch(_0x5e8a89){_0x5a4a78['push'](_0x5a4a78['shift']());}}}(a26_0x2b37,0x5811f));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a26_0xcc1f(_0x46c401,_0x2399f0){_0x46c401=_0x46c401-0xe1;const _0x2b3731=a26_0x2b37();let _0xcc1f4f=_0x2b3731[_0x46c401];return _0xcc1f4f;}function a26_0x2b37(){const _0x34898f=['27XSABae','140WGSUHK','59052QMIhNi','653712foIfDO','587932nLpyQV','293830pGghto','1XawscF','2067mkFmhA','1509250baxlfX','6qTJTmr','55JZaLtd','880874HUMyxV','138660EAtqbm'];a26_0x2b37=function(){return _0x34898f;};return a26_0x2b37();}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ (function(_0x408c44,_0x1bc7c7){const _0x4999c2=a26_0x3e06,_0x3df8d4=_0x408c44();while(!![]){try{const _0x4ba3f2=parseInt(_0x4999c2(0x173))/0x1*(parseInt(_0x4999c2(0x170))/0x2)+-parseInt(_0x4999c2(0x16f))/0x3+parseInt(_0x4999c2(0x171))/0x4+-parseInt(_0x4999c2(0x174))/0x5+parseInt(_0x4999c2(0x16c))/0x6+parseInt(_0x4999c2(0x16e))/0x7*(parseInt(_0x4999c2(0x172))/0x8)+-parseInt(_0x4999c2(0x16d))/0x9;if(_0x4ba3f2===_0x1bc7c7)break;else _0x3df8d4['push'](_0x3df8d4['shift']());}catch(_0x51d775){_0x3df8d4['push'](_0x3df8d4['shift']());}}}(a26_0x250d,0x2561f));import{datasetList}from'../../commands/dataset/list.js';function a26_0x3e06(_0x23d29b,_0x1f2c2d){_0x23d29b=_0x23d29b-0x16c;const _0x250d77=a26_0x250d();let _0x3e061a=_0x250d77[_0x23d29b];return _0x3e061a;}import{datasetDetail}from'../../commands/dataset/detail.js';function a26_0x250d(){const _0x465c20=['378248TeMfKr','66093sjuNkv','37175TtlpVO','1430472ImlBym','6590979rmOGwS','35MsZmsx','128262uUTKrT','6GwxiNL','1050172QfZcBV'];a26_0x250d=function(){return _0x465c20;};return a26_0x250d();}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- const a27_0x1a2359=a27_0x1654;(function(_0x4971b2,_0x23a078){const _0x26de7e=a27_0x1654,_0x4aac9d=_0x4971b2();while(!![]){try{const _0x4d2761=parseInt(_0x26de7e(0x187))/0x1*(-parseInt(_0x26de7e(0x18a))/0x2)+parseInt(_0x26de7e(0x17c))/0x3+-parseInt(_0x26de7e(0x185))/0x4+-parseInt(_0x26de7e(0x18c))/0x5*(-parseInt(_0x26de7e(0x17f))/0x6)+parseInt(_0x26de7e(0x186))/0x7+parseInt(_0x26de7e(0x175))/0x8*(-parseInt(_0x26de7e(0x179))/0x9)+-parseInt(_0x26de7e(0x182))/0xa;if(_0x4d2761===_0x23a078)break;else _0x4aac9d['push'](_0x4aac9d['shift']());}catch(_0x18439b){_0x4aac9d['push'](_0x4aac9d['shift']());}}}(a27_0x27e2,0x20796));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a27_0x1654(_0x9bbca2,_0x4add45){_0x9bbca2=_0x9bbca2-0x173;const _0x27e2de=a27_0x27e2();let _0x1654de=_0x27e2de[_0x9bbca2];return _0x1654de;}function a27_0x27e2(){const _0x1a81ab=['pkField','405zAHetj','trim','map','564090IRWWIT','string','split','102VdCODI','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','tableName','690590xxuJHg','str','dataset','147348chlzGX','17458bxCEwL','12UbpaCM','dbtableConfig','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','1658bmWRxz','code','25985MfcANq','length','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','list','source','name','5336uZufOp','datasetKey','description'];a27_0x27e2=function(){return _0x1a81ab;};return a27_0x27e2();}export const datasetList={'service':a27_0x1a2359(0x184),'command':a27_0x1a2359(0x18f),'description':a27_0x1a2359(0x18e),'risk':'read','flags':[{'name':'name','type':a27_0x1a2359(0x17d),'description':a27_0x1a2359(0x180)},{...CODE_FLAG,'required':![],'description':a27_0x1a2359(0x189)}],async 'execute'(_0x1578a2){const _0x12b20e=a27_0x1a2359,_0x1a7f25=_0x1578a2[_0x12b20e(0x183)](_0x12b20e(0x174)),_0x3a51b9=_0x1578a2[_0x12b20e(0x183)](_0x12b20e(0x18b)),_0x1a3a78=await listDatasets(_0x1578a2['appCode'],{..._0x1a7f25&&{'name':_0x1a7f25},..._0x3a51b9&&{'code':_0x3a51b9}});return{'ok':!![],'data':{'total':_0x1a3a78[_0x12b20e(0x18d)],'datasets':_0x1a3a78['map'](_0x45f703=>{const _0x1260ce=_0x12b20e,_0x291189=_0x45f703[_0x1260ce(0x188)]??{};return{'id':_0x45f703['id'],'code':_0x45f703[_0x1260ce(0x18b)],'name':_0x45f703[_0x1260ce(0x174)],'source':_0x45f703[_0x1260ce(0x173)],'description':_0x45f703[_0x1260ce(0x177)],'table':_0x291189[_0x1260ce(0x181)],'datasetKey':_0x291189[_0x1260ce(0x176)],'pk':_0x291189[_0x1260ce(0x178)],'fields':_0x291189['allFields']?_0x291189['allFields'][_0x1260ce(0x17e)](',')[_0x1260ce(0x17b)](_0x4505c0=>_0x4505c0[_0x1260ce(0x17a)]()):[]};})}};}};
1
+ const a27_0x10dafb=a27_0x4655;function a27_0x4655(_0x56ad91,_0x73dd1){_0x56ad91=_0x56ad91-0x10c;const _0x511b03=a27_0x511b();let _0x46551a=_0x511b03[_0x56ad91];return _0x46551a;}(function(_0x4a07e0,_0x4403ad){const _0x55b05e=a27_0x4655,_0x34a44f=_0x4a07e0();while(!![]){try{const _0x3b326a=parseInt(_0x55b05e(0x117))/0x1*(-parseInt(_0x55b05e(0x10d))/0x2)+parseInt(_0x55b05e(0x118))/0x3+-parseInt(_0x55b05e(0x11b))/0x4*(-parseInt(_0x55b05e(0x124))/0x5)+-parseInt(_0x55b05e(0x11c))/0x6*(-parseInt(_0x55b05e(0x113))/0x7)+-parseInt(_0x55b05e(0x123))/0x8*(-parseInt(_0x55b05e(0x119))/0x9)+parseInt(_0x55b05e(0x128))/0xa+parseInt(_0x55b05e(0x116))/0xb*(-parseInt(_0x55b05e(0x126))/0xc);if(_0x3b326a===_0x4403ad)break;else _0x34a44f['push'](_0x34a44f['shift']());}catch(_0x478ab7){_0x34a44f['push'](_0x34a44f['shift']());}}}(a27_0x511b,0xb0831));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a27_0x10dafb(0x112),'command':a27_0x10dafb(0x121),'description':a27_0x10dafb(0x11d),'risk':a27_0x10dafb(0x11e),'flags':[{'name':a27_0x10dafb(0x111),'type':'string','description':a27_0x10dafb(0x110)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x204d64){const _0x183742=a27_0x10dafb,_0x22b288=_0x204d64[_0x183742(0x115)](_0x183742(0x111)),_0x99b60c=_0x204d64[_0x183742(0x115)](_0x183742(0x10e)),_0x29cc3a=await listDatasets(_0x204d64[_0x183742(0x120)],{..._0x22b288&&{'name':_0x22b288},..._0x99b60c&&{'code':_0x99b60c}});return{'ok':!![],'data':{'total':_0x29cc3a[_0x183742(0x10f)],'datasets':_0x29cc3a[_0x183742(0x122)](_0x3b8383=>{const _0x48e878=_0x183742,_0x5df9f3=_0x3b8383['dbtableConfig']??{};return{'id':_0x3b8383['id'],'code':_0x3b8383[_0x48e878(0x10e)],'name':_0x3b8383[_0x48e878(0x111)],'source':_0x3b8383['source'],'description':_0x3b8383[_0x48e878(0x10c)],'table':_0x5df9f3['tableName'],'datasetKey':_0x5df9f3[_0x48e878(0x125)],'pk':_0x5df9f3[_0x48e878(0x11a)],'fields':_0x5df9f3[_0x48e878(0x114)]?_0x5df9f3[_0x48e878(0x114)][_0x48e878(0x11f)](',')['map'](_0x5b5d48=>_0x5b5d48[_0x48e878(0x127)]()):[]};})}};}};function a27_0x511b(){const _0x194d29=['trim','10470230nXGpXr','description','22QEfWGn','code','length','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','name','dataset','35bPwFgF','allFields','str','8063iECRBW','128965qwVNUu','1598988iLgbOm','216BdpfRL','pkField','2764lFLIkT','24474yRdEFv','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','read','split','appCode','list','map','265072PEpoDC','10345smRtYf','datasetKey','27564aKXRfH'];a27_0x511b=function(){return _0x194d29;};return a27_0x511b();}
@@ -1 +1 @@
1
- function a28_0xcdb6(_0x3715c6,_0x1acc49){_0x3715c6=_0x3715c6-0x18b;const _0x7f6d58=a28_0x7f6d();let _0xcdb66b=_0x7f6d58[_0x3715c6];return _0xcdb66b;}const a28_0x4c5aef=a28_0xcdb6;(function(_0xc04611,_0x3cf93b){const _0xc2b2c0=a28_0xcdb6,_0x3b2ea0=_0xc04611();while(!![]){try{const _0x2a0efc=parseInt(_0xc2b2c0(0x19c))/0x1*(-parseInt(_0xc2b2c0(0x192))/0x2)+-parseInt(_0xc2b2c0(0x18f))/0x3*(parseInt(_0xc2b2c0(0x19b))/0x4)+-parseInt(_0xc2b2c0(0x190))/0x5*(-parseInt(_0xc2b2c0(0x19f))/0x6)+-parseInt(_0xc2b2c0(0x18d))/0x7*(parseInt(_0xc2b2c0(0x199))/0x8)+parseInt(_0xc2b2c0(0x1a0))/0x9*(parseInt(_0xc2b2c0(0x19a))/0xa)+-parseInt(_0xc2b2c0(0x18b))/0xb*(-parseInt(_0xc2b2c0(0x18c))/0xc)+parseInt(_0xc2b2c0(0x19d))/0xd;if(_0x2a0efc===_0x3cf93b)break;else _0x3b2ea0['push'](_0x3b2ea0['shift']());}catch(_0x1bca92){_0x3b2ea0['push'](_0x3b2ea0['shift']());}}}(a28_0x7f6d,0xc3ff9));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';function a28_0x7f6d(){const _0x2f01a8=['297HQytba','554220IfUYNN','1757ZtraRC','dataset','51opmVqE','3500EcxMhI','code','152sNstlD','read','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','trim','string','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','appCode','6024TprzyQ','349020RivisK','359348NVUwfq','5167xlRGnf','13370968EXPUzG','sdk-doc','5154mwFPzD','9iBwhIz'];a28_0x7f6d=function(){return _0x2f01a8;};return a28_0x7f6d();}import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a28_0x4c5aef(0x194);export function formatDatasetSdkMarkdown(_0x331b62){const _0x28768e=a28_0x4c5aef,_0x42b0dc=typeof _0x331b62===_0x28768e(0x196)?_0x331b62[_0x28768e(0x195)]():'';return _0x42b0dc||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a28_0x4c5aef(0x18e),'command':a28_0x4c5aef(0x19e),'description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':a28_0x4c5aef(0x193),'flags':[{...CODE_FLAG,'description':a28_0x4c5aef(0x197)}],async 'execute'(_0x1e9e46){const _0x16e399=a28_0x4c5aef,_0x4e15e1=_0x1e9e46['str'](_0x16e399(0x191)),_0x5bd542=await getDatasetSdkUsageDoc(_0x4e15e1,_0x1e9e46[_0x16e399(0x198)]);return{'ok':!![],'data':{'code':_0x4e15e1,'appCode':_0x1e9e46[_0x16e399(0x198)],'markdown':formatDatasetSdkMarkdown(_0x5bd542)}};}};
1
+ const a28_0x45ad9a=a28_0x3a71;function a28_0x1d3d(){const _0xa23a16=['trim','string','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','35ALFNvI','299380ncXIjN','4167030rPxNpF','99426mfxMxW','12gVKGGp','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','dataset','sdk-doc','279BdaFYx','str','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','appCode','1135626qdITkr','2448870iXlCXC','81712neCgxT','775052LbjzrB','code'];a28_0x1d3d=function(){return _0xa23a16;};return a28_0x1d3d();}(function(_0x2ccb09,_0x3b29cd){const _0x1e09f0=a28_0x3a71,_0x170b00=_0x2ccb09();while(!![]){try{const _0x3a4870=parseInt(_0x1e09f0(0x189))/0x1+parseInt(_0x1e09f0(0x18b))/0x2+-parseInt(_0x1e09f0(0x18c))/0x3*(-parseInt(_0x1e09f0(0x197))/0x4)+-parseInt(_0x1e09f0(0x18a))/0x5+-parseInt(_0x1e09f0(0x194))/0x6*(-parseInt(_0x1e09f0(0x188))/0x7)+-parseInt(_0x1e09f0(0x196))/0x8*(parseInt(_0x1e09f0(0x190))/0x9)+-parseInt(_0x1e09f0(0x195))/0xa;if(_0x3a4870===_0x3b29cd)break;else _0x170b00['push'](_0x170b00['shift']());}catch(_0x305bb2){_0x170b00['push'](_0x170b00['shift']());}}}(a28_0x1d3d,0xa4ef5));function a28_0x3a71(_0x5bef11,_0x3be38d){_0x5bef11=_0x5bef11-0x187;const _0x1d3d54=a28_0x1d3d();let _0x3a712c=_0x1d3d54[_0x5bef11];return _0x3a712c;}import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a28_0x45ad9a(0x18d);export function formatDatasetSdkMarkdown(_0x26985d){const _0x4a41f6=a28_0x45ad9a,_0x3b62d0=typeof _0x26985d===_0x4a41f6(0x19a)?_0x26985d[_0x4a41f6(0x199)]():'';return _0x3b62d0||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a28_0x45ad9a(0x18e),'command':a28_0x45ad9a(0x18f),'description':a28_0x45ad9a(0x192),'risk':'read','flags':[{...CODE_FLAG,'description':a28_0x45ad9a(0x187)}],async 'execute'(_0x395267){const _0x4afc76=a28_0x45ad9a,_0x15d3a1=_0x395267[_0x4afc76(0x191)](_0x4afc76(0x198)),_0x48fde4=await getDatasetSdkUsageDoc(_0x15d3a1,_0x395267[_0x4afc76(0x193)]);return{'ok':!![],'data':{'code':_0x15d3a1,'appCode':_0x395267[_0x4afc76(0x193)],'markdown':formatDatasetSdkMarkdown(_0x48fde4)}};}};
@@ -1 +1 @@
1
- function a29_0x5eef(_0x5c2fbc,_0x2daa48){_0x5c2fbc=_0x5c2fbc-0xed;const _0x3f0aa5=a29_0x3f0a();let _0x5eefd3=_0x3f0aa5[_0x5c2fbc];return _0x5eefd3;}const a29_0x35af32=a29_0x5eef;(function(_0xeefa67,_0x5478d0){const _0x486e8e=a29_0x5eef,_0x1539e3=_0xeefa67();while(!![]){try{const _0x51c13e=-parseInt(_0x486e8e(0x10a))/0x1+-parseInt(_0x486e8e(0x130))/0x2*(-parseInt(_0x486e8e(0x12b))/0x3)+-parseInt(_0x486e8e(0x134))/0x4+-parseInt(_0x486e8e(0x105))/0x5+-parseInt(_0x486e8e(0x13b))/0x6*(-parseInt(_0x486e8e(0x12a))/0x7)+-parseInt(_0x486e8e(0x108))/0x8*(-parseInt(_0x486e8e(0x114))/0x9)+parseInt(_0x486e8e(0xf3))/0xa;if(_0x51c13e===_0x5478d0)break;else _0x1539e3['push'](_0x1539e3['shift']());}catch(_0x1f70bc){_0x1539e3['push'](_0x1539e3['shift']());}}}(a29_0x3f0a,0x2cde5));import a29_0x16dfae 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';async function execute(_0x3ca405){const _0x1cec17=a29_0x5eef,_0x215406=getCliVersion(),_0x3af230=buildConfigFromFlags({});await initGlobalEnvironment(_0x3af230),console['log'](),console[_0x1cec17(0x125)](a29_0x16dfae['bold'](CLI_BIN_NAME+'\x20doctor')),console[_0x1cec17(0x125)](a29_0x16dfae[_0x1cec17(0xfa)]('─'[_0x1cec17(0x113)](0x32))),console[_0x1cec17(0x125)](_0x1cec17(0xf5)+_0x215406),console[_0x1cec17(0x125)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x1cec17(0x127)]),console[_0x1cec17(0x125)](_0x1cec17(0xef)+process[_0x1cec17(0x12e)]+'\x20'+process['arch']),console[_0x1cec17(0x125)](),console[_0x1cec17(0x125)](a29_0x16dfae['bold'](_0x1cec17(0x128))),console[_0x1cec17(0x125)](a29_0x16dfae[_0x1cec17(0xfa)]('\x20\x20─'['repeat'](0x1e)));const _0x59b641=getGlobalConfigPath(),_0x391f85=getProjectConfigPath();console['log'](_0x1cec17(0x122)+(_0x59b641||a29_0x16dfae[_0x1cec17(0xfa)](_0x1cec17(0xfd)))),console[_0x1cec17(0x125)](_0x1cec17(0xf8)+(_0x391f85||a29_0x16dfae[_0x1cec17(0xfa)](_0x1cec17(0xfd)))),console[_0x1cec17(0x125)](),console[_0x1cec17(0x125)](a29_0x16dfae[_0x1cec17(0xf6)](_0x1cec17(0x12f))),console['log'](a29_0x16dfae[_0x1cec17(0xfa)](_0x1cec17(0x106)[_0x1cec17(0x113)](0x1e)));const _0x37127e=(_0x16b5d9,_0x161b64)=>{const _0x14eeca=_0x1cec17;if(!_0x161b64){console['log']('\x20\x20'+_0x16b5d9[_0x14eeca(0x10e)](0x11)+'\x20'+a29_0x16dfae['gray'](_0x14eeca(0x12d)));return;}const _0x4546aa=inspectCliConfigJsonFile(_0x161b64);if(_0x4546aa[_0x14eeca(0xee)]==='ok')console['log']('\x20\x20'+_0x16b5d9[_0x14eeca(0x10e)](0x11)+'\x20'+a29_0x16dfae['green'](_0x14eeca(0xf4)));else{if(_0x4546aa[_0x14eeca(0xee)]===_0x14eeca(0x136))console[_0x14eeca(0x125)]('\x20\x20'+_0x16b5d9[_0x14eeca(0x10e)](0x11)+'\x20'+a29_0x16dfae[_0x14eeca(0x100)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x4546aa[_0x14eeca(0xee)]===_0x14eeca(0xff)?console[_0x14eeca(0x125)]('\x20\x20'+_0x16b5d9['padEnd'](0x11)+'\x20'+a29_0x16dfae[_0x14eeca(0xfa)]('(missing)')):(console[_0x14eeca(0x125)]('\x20\x20'+_0x16b5d9[_0x14eeca(0x10e)](0x11)+'\x20'+a29_0x16dfae[_0x14eeca(0x11f)](_0x14eeca(0x126))),console[_0x14eeca(0x125)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a29_0x16dfae[_0x14eeca(0x11f)](_0x4546aa[_0x14eeca(0x10f)])));}};_0x37127e('Global',_0x59b641),_0x37127e(_0x1cec17(0xf7),_0x391f85),console[_0x1cec17(0x125)](),console[_0x1cec17(0x125)](a29_0x16dfae[_0x1cec17(0xf6)]('\x20\x20Merged\x20Config')),console[_0x1cec17(0x125)](a29_0x16dfae[_0x1cec17(0xfa)](_0x1cec17(0x106)['repeat'](0x1e))),console[_0x1cec17(0x125)](_0x1cec17(0x119)+(_0x3af230[_0x1cec17(0x10c)]||a29_0x16dfae[_0x1cec17(0x11f)]('(not\x20set)'))),console[_0x1cec17(0x125)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3af230[_0x1cec17(0xf0)]);const _0xfe9bcc=isLegacyCompatConfigKey(_0x1cec17(0x123))?a29_0x16dfae[_0x1cec17(0xfa)](_0x3af230[_0x1cec17(0x123)]+_0x1cec17(0x12c)):_0x3af230['locale'];console[_0x1cec17(0x125)](_0x1cec17(0xfc)+_0xfe9bcc),console[_0x1cec17(0x125)](_0x1cec17(0x109)+(_0x3af230[_0x1cec17(0x116)]||a29_0x16dfae[_0x1cec17(0xfa)](_0x1cec17(0x133)))),console['log']('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x3af230[_0x1cec17(0x117)]||a29_0x16dfae[_0x1cec17(0xfa)](_0x1cec17(0x133)))),console[_0x1cec17(0x125)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3af230[_0x1cec17(0x13d)]||a29_0x16dfae[_0x1cec17(0xfa)](_0x1cec17(0x135)+DEFAULT_CONFIG_VALUES[_0x1cec17(0x13d)]+')'))),console[_0x1cec17(0x125)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3af230[_0x1cec17(0x132)]??a29_0x16dfae[_0x1cec17(0xfa)](_0x1cec17(0xfe)))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x3af230['riskLevel']),console[_0x1cec17(0x125)](_0x1cec17(0x13c)+_0x3af230[_0x1cec17(0x11b)]),console[_0x1cec17(0x125)](_0x1cec17(0x112)+AUTH_MODE[_0x1cec17(0x11c)]),console[_0x1cec17(0x125)](_0x1cec17(0x11d)+(_0x3af230[_0x1cec17(0x104)]?a29_0x16dfae[_0x1cec17(0x11e)](_0x1cec17(0xf2)+_0x3af230[_0x1cec17(0x104)][_0x1cec17(0x121)]+')'):a29_0x16dfae['gray']('(none)'))),console[_0x1cec17(0x125)](),console[_0x1cec17(0x125)](a29_0x16dfae['bold'](_0x1cec17(0x13a))),console[_0x1cec17(0x125)](a29_0x16dfae[_0x1cec17(0xfa)](_0x1cec17(0x106)[_0x1cec17(0x113)](0x1e))),console[_0x1cec17(0x125)](_0x1cec17(0xfb)+getApiDomain()),console[_0x1cec17(0x125)](_0x1cec17(0x137)+getUserDomain()),console[_0x1cec17(0x125)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x1cec17(0x125)](),console[_0x1cec17(0x125)](a29_0x16dfae[_0x1cec17(0xf6)]('\x20\x20Service\x20Tree')),console['log'](a29_0x16dfae[_0x1cec17(0xfa)](_0x1cec17(0x106)[_0x1cec17(0x113)](0x1e)));const _0x227a30=inspectServiceRegistry();console[_0x1cec17(0x125)]('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x227a30[_0x1cec17(0xf9)]),console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x227a30)),console[_0x1cec17(0x125)](_0x1cec17(0xf1)+_0x227a30[_0x1cec17(0x129)]),console[_0x1cec17(0x125)](_0x1cec17(0x107)+_0x227a30[_0x1cec17(0x110)]);for(const _0xc1af21 of _0x227a30[_0x1cec17(0x124)]){console['log']('\x20\x20'+(_0xc1af21[_0x1cec17(0xed)]+':')[_0x1cec17(0x10e)](0x11)+'\x20'+(_0xc1af21['name']||a29_0x16dfae['gray'](_0x1cec17(0x120)))+'\x20('+_0xc1af21['commandCount']+_0x1cec17(0x103)),console[_0x1cec17(0x125)]('\x20\x20'+''[_0x1cec17(0x10e)](0x11)+_0x1cec17(0x118)+_0xc1af21['source'][_0x1cec17(0x139)]);}return console[_0x1cec17(0x125)](),console['log'](a29_0x16dfae[_0x1cec17(0xf6)](_0x1cec17(0x10b))),console[_0x1cec17(0x125)](a29_0x16dfae['gray'](_0x1cec17(0x106)[_0x1cec17(0x113)](0x1e))),console[_0x1cec17(0x125)](_0x1cec17(0x102)+a29_0x16dfae[_0x1cec17(0x11e)](AUTH_MODE[_0x1cec17(0x11c)]+_0x1cec17(0x138))),console[_0x1cec17(0x125)](_0x1cec17(0x115)+a29_0x16dfae['gray'](_0x1cec17(0x13e))),console[_0x1cec17(0x125)](),{'ok':!![]};}function a29_0x3f0a(){const _0x1f364f=['registryPath','gray','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','(default)','missing','yellow','✗\x20Invalid','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20commands)','accessKey','1513260XNJyWP','\x20\x20─','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','2455608aWjLad','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','115288VugCca','\x20\x20Auth','appCode','✓\x20Loaded','padEnd','message','commandCount','⚠\x20Empty','\x20\x20auth\x20(effective):\x20','repeat','9sRFwMd','\x20\x20Session\x20check:\x20\x20\x20','defaultApp','currentApp','\x20Imported\x20from:\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20environment','verbose','ClientAk','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','green','red','(unnamed)','length','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','locale','services','log','✗\x20Invalid\x20JSON','version','\x20\x20Config\x20Files','serviceCount','1176fXErHD','111OLCXgO','\x20(legacy/compat\x20only)','(no\x20file)','platform','\x20\x20Config\x20JSON','6644CbkpRr','check','pageSize','(none)','655592viXNtn','(default:\x20','empty','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20(accessKey)','path','\x20\x20API\x20Endpoints','10644PHdMis','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','(removed\x20—\x20cookie\x20auth\x20disabled)','serviceCode','status','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','env','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','377220GgathC','✓\x20Valid\x20JSON','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','bold','Project','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a29_0x3f0a=function(){return _0x1f364f;};return a29_0x3f0a();}function formatServiceRegistryStatus(_0xfbda1f){const _0x13636d=a29_0x5eef;if(_0xfbda1f['status']==='ok')return a29_0x16dfae['green'](_0x13636d(0x10d));if(_0xfbda1f[_0x13636d(0xee)]==='missing')return a29_0x16dfae[_0x13636d(0xfa)](_0x13636d(0xfd));if(_0xfbda1f[_0x13636d(0xee)]===_0x13636d(0x136))return a29_0x16dfae['yellow'](_0x13636d(0x111));return a29_0x16dfae[_0x13636d(0x11f)](_0x13636d(0x101)+(_0xfbda1f[_0x13636d(0x10f)]?':\x20'+_0xfbda1f[_0x13636d(0x10f)]:''));}export const doctorDefinition={'service':'doctor','command':a29_0x35af32(0x131),'description':a29_0x35af32(0x11a),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a29_0x2a8512=a29_0x113f;(function(_0x2c6d7b,_0x31d312){const _0x1adba9=a29_0x113f,_0x1bda89=_0x2c6d7b();while(!![]){try{const _0x1b8cee=parseInt(_0x1adba9(0xd4))/0x1+-parseInt(_0x1adba9(0xe9))/0x2*(parseInt(_0x1adba9(0xbf))/0x3)+-parseInt(_0x1adba9(0xb4))/0x4*(parseInt(_0x1adba9(0xc8))/0x5)+-parseInt(_0x1adba9(0xc6))/0x6*(parseInt(_0x1adba9(0xd2))/0x7)+-parseInt(_0x1adba9(0xcd))/0x8*(-parseInt(_0x1adba9(0xe7))/0x9)+-parseInt(_0x1adba9(0xd6))/0xa*(-parseInt(_0x1adba9(0xfa))/0xb)+parseInt(_0x1adba9(0xc2))/0xc*(parseInt(_0x1adba9(0xde))/0xd);if(_0x1b8cee===_0x31d312)break;else _0x1bda89['push'](_0x1bda89['shift']());}catch(_0x2504f4){_0x1bda89['push'](_0x1bda89['shift']());}}}(a29_0xc148,0xe41b5));import a29_0x59c7fa 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';function a29_0xc148(){const _0x5da9e2=['commandCount','\x20\x20Config\x20Files','name','20296nCKgXi','arch','\x20\x20Merged\x20Config','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','2030dzftQk','Project','593649aiRavr','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','270aFDIdX','padEnd','\x20\x20Session\x20check:\x20\x20\x20','(no\x20file)','(not\x20set)','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','\x20(legacy/compat\x20only)','(default:\x20','22828uQXNZU','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(accessKey)','services','message','version','⚠\x20Empty\x20(treated\x20as\x20{})','(set,\x20length=','env','1269efvZmP','serviceCode','3250378udYZHH','empty','check','green','pageSize','gray','verbose','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','doctor','accessKey','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','source','appCode','red','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','177551pcRmiO','\x20commands)','bold','currentApp','ClientAk','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','status','riskLevel','\x20\x20API\x20Endpoints','(removed\x20—\x20cookie\x20auth\x20disabled)','Global','format','6486148YWrggg','repeat','log','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20environment','yellow','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','registryPath','✓\x20Loaded','(not\x20found)','3nKoxZn','(unnamed)','\x20doctor','24156AfeJOD','locale','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','15330xyFAEX','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','5pScCVq','\x20\x20─'];a29_0xc148=function(){return _0x5da9e2;};return a29_0xc148();}import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';async function execute(_0x3509f5){const _0xd8a9ef=a29_0x113f,_0x1e4199=getCliVersion(),_0x8a41c5=buildConfigFromFlags({});await initGlobalEnvironment(_0x8a41c5),console[_0xd8a9ef(0xb6)](),console['log'](a29_0x59c7fa[_0xd8a9ef(0xfc)](CLI_BIN_NAME+_0xd8a9ef(0xc1))),console[_0xd8a9ef(0xb6)](a29_0x59c7fa[_0xd8a9ef(0xee)]('─'['repeat'](0x32))),console[_0xd8a9ef(0xb6)](_0xd8a9ef(0xb7)+_0x1e4199),console[_0xd8a9ef(0xb6)](_0xd8a9ef(0xba)+process[_0xd8a9ef(0xe3)]),console[_0xd8a9ef(0xb6)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process['platform']+'\x20'+process[_0xd8a9ef(0xce)]),console[_0xd8a9ef(0xb6)](),console['log'](a29_0x59c7fa[_0xd8a9ef(0xfc)](_0xd8a9ef(0xcb))),console[_0xd8a9ef(0xb6)](a29_0x59c7fa[_0xd8a9ef(0xee)]('\x20\x20─'[_0xd8a9ef(0xb5)](0x1e)));const _0x59b12d=getGlobalConfigPath(),_0x5fda21=getProjectConfigPath();console[_0xd8a9ef(0xb6)](_0xd8a9ef(0xc4)+(_0x59b12d||a29_0x59c7fa[_0xd8a9ef(0xee)](_0xd8a9ef(0xbe)))),console[_0xd8a9ef(0xb6)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5fda21||a29_0x59c7fa[_0xd8a9ef(0xee)]('(not\x20found)'))),console[_0xd8a9ef(0xb6)](),console['log'](a29_0x59c7fa[_0xd8a9ef(0xfc)]('\x20\x20Config\x20JSON')),console[_0xd8a9ef(0xb6)](a29_0x59c7fa[_0xd8a9ef(0xee)](_0xd8a9ef(0xc9)[_0xd8a9ef(0xb5)](0x1e)));const _0x53d47d=(_0x40b84a,_0xd28b6f)=>{const _0x2114b8=_0xd8a9ef;if(!_0xd28b6f){console[_0x2114b8(0xb6)]('\x20\x20'+_0x40b84a['padEnd'](0x11)+'\x20'+a29_0x59c7fa[_0x2114b8(0xee)](_0x2114b8(0xd9)));return;}const _0x31408b=inspectCliConfigJsonFile(_0xd28b6f);if(_0x31408b[_0x2114b8(0x101)]==='ok')console['log']('\x20\x20'+_0x40b84a[_0x2114b8(0xd7)](0x11)+'\x20'+a29_0x59c7fa['green']('✓\x20Valid\x20JSON'));else{if(_0x31408b['status']==='empty')console[_0x2114b8(0xb6)]('\x20\x20'+_0x40b84a[_0x2114b8(0xd7)](0x11)+'\x20'+a29_0x59c7fa['yellow'](_0x2114b8(0xe4)));else _0x31408b[_0x2114b8(0x101)]==='missing'?console['log']('\x20\x20'+_0x40b84a[_0x2114b8(0xd7)](0x11)+'\x20'+a29_0x59c7fa[_0x2114b8(0xee)]('(missing)')):(console['log']('\x20\x20'+_0x40b84a[_0x2114b8(0xd7)](0x11)+'\x20'+a29_0x59c7fa[_0x2114b8(0xf7)]('✗\x20Invalid\x20JSON')),console[_0x2114b8(0xb6)]('\x20\x20'+''[_0x2114b8(0xd7)](0x11)+'\x20'+a29_0x59c7fa[_0x2114b8(0xf7)](_0x31408b[_0x2114b8(0xe2)])));}};_0x53d47d(_0xd8a9ef(0x105),_0x59b12d),_0x53d47d(_0xd8a9ef(0xd3),_0x5fda21),console[_0xd8a9ef(0xb6)](),console['log'](a29_0x59c7fa[_0xd8a9ef(0xfc)](_0xd8a9ef(0xcf))),console['log'](a29_0x59c7fa[_0xd8a9ef(0xee)]('\x20\x20─'[_0xd8a9ef(0xb5)](0x1e))),console[_0xd8a9ef(0xb6)](_0xd8a9ef(0xf9)+(_0x8a41c5[_0xd8a9ef(0xf6)]||a29_0x59c7fa[_0xd8a9ef(0xf7)](_0xd8a9ef(0xda)))),console[_0xd8a9ef(0xb6)](_0xd8a9ef(0xff)+_0x8a41c5[_0xd8a9ef(0xe6)]);const _0x492b04=isLegacyCompatConfigKey('locale')?a29_0x59c7fa[_0xd8a9ef(0xee)](_0x8a41c5[_0xd8a9ef(0xc3)]+_0xd8a9ef(0xdc)):_0x8a41c5[_0xd8a9ef(0xc3)];console['log'](_0xd8a9ef(0xf0)+_0x492b04),console[_0xd8a9ef(0xb6)](_0xd8a9ef(0xc7)+(_0x8a41c5[_0xd8a9ef(0x100)]||a29_0x59c7fa['gray']('(none)'))),console[_0xd8a9ef(0xb6)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x8a41c5[_0xd8a9ef(0xfd)]||a29_0x59c7fa[_0xd8a9ef(0xee)]('(none)'))),console[_0xd8a9ef(0xb6)](_0xd8a9ef(0xf8)+(_0x8a41c5[_0xd8a9ef(0xb3)]||a29_0x59c7fa[_0xd8a9ef(0xee)](_0xd8a9ef(0xdd)+DEFAULT_CONFIG_VALUES[_0xd8a9ef(0xb3)]+')'))),console[_0xd8a9ef(0xb6)](_0xd8a9ef(0xf4)+(_0x8a41c5[_0xd8a9ef(0xed)]??a29_0x59c7fa['gray']('(default)'))),console[_0xd8a9ef(0xb6)](_0xd8a9ef(0xd5)+_0x8a41c5[_0xd8a9ef(0x102)]),console[_0xd8a9ef(0xb6)](_0xd8a9ef(0xd1)+_0x8a41c5[_0xd8a9ef(0xef)]),console[_0xd8a9ef(0xb6)]('\x20\x20auth\x20(effective):\x20'+AUTH_MODE[_0xd8a9ef(0xfe)]),console[_0xd8a9ef(0xb6)](_0xd8a9ef(0xc5)+(_0x8a41c5[_0xd8a9ef(0xf3)]?a29_0x59c7fa['green'](_0xd8a9ef(0xe5)+_0x8a41c5[_0xd8a9ef(0xf3)]['length']+')'):a29_0x59c7fa[_0xd8a9ef(0xee)]('(none)'))),console[_0xd8a9ef(0xb6)](),console[_0xd8a9ef(0xb6)](a29_0x59c7fa[_0xd8a9ef(0xfc)](_0xd8a9ef(0x103))),console['log'](a29_0x59c7fa['gray'](_0xd8a9ef(0xc9)[_0xd8a9ef(0xb5)](0x1e))),console[_0xd8a9ef(0xb6)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0xd8a9ef(0xb6)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0xd8a9ef(0xb6)](_0xd8a9ef(0xf1)+getRuntimeDomain()),console['log'](),console['log'](a29_0x59c7fa['bold']('\x20\x20Service\x20Tree')),console[_0xd8a9ef(0xb6)](a29_0x59c7fa[_0xd8a9ef(0xee)](_0xd8a9ef(0xc9)[_0xd8a9ef(0xb5)](0x1e)));const _0x344d5f=inspectServiceRegistry();console[_0xd8a9ef(0xb6)](_0xd8a9ef(0xd0)+_0x344d5f[_0xd8a9ef(0xbc)]),console[_0xd8a9ef(0xb6)](_0xd8a9ef(0xdf)+formatServiceRegistryStatus(_0x344d5f)),console[_0xd8a9ef(0xb6)](_0xd8a9ef(0xdb)+_0x344d5f['serviceCount']),console[_0xd8a9ef(0xb6)]('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x344d5f[_0xd8a9ef(0xca)]);for(const _0x4b8b9d of _0x344d5f[_0xd8a9ef(0xe1)]){console['log']('\x20\x20'+(_0x4b8b9d[_0xd8a9ef(0xe8)]+':')[_0xd8a9ef(0xd7)](0x11)+'\x20'+(_0x4b8b9d[_0xd8a9ef(0xcc)]||a29_0x59c7fa[_0xd8a9ef(0xee)](_0xd8a9ef(0xc0)))+'\x20('+_0x4b8b9d[_0xd8a9ef(0xca)]+_0xd8a9ef(0xfb)),console[_0xd8a9ef(0xb6)]('\x20\x20'+''['padEnd'](0x11)+'\x20Imported\x20from:\x20'+_0x4b8b9d[_0xd8a9ef(0xf5)]['path']);}return console['log'](),console[_0xd8a9ef(0xb6)](a29_0x59c7fa[_0xd8a9ef(0xfc)]('\x20\x20Auth')),console[_0xd8a9ef(0xb6)](a29_0x59c7fa[_0xd8a9ef(0xee)]('\x20\x20─'[_0xd8a9ef(0xb5)](0x1e))),console[_0xd8a9ef(0xb6)]('\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a29_0x59c7fa[_0xd8a9ef(0xec)](AUTH_MODE[_0xd8a9ef(0xfe)]+_0xd8a9ef(0xe0))),console['log'](_0xd8a9ef(0xd8)+a29_0x59c7fa[_0xd8a9ef(0xee)](_0xd8a9ef(0x104))),console[_0xd8a9ef(0xb6)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x23d937){const _0x160c3a=a29_0x113f;if(_0x23d937[_0x160c3a(0x101)]==='ok')return a29_0x59c7fa[_0x160c3a(0xec)](_0x160c3a(0xbd));if(_0x23d937['status']===_0x160c3a(0xbb))return a29_0x59c7fa[_0x160c3a(0xee)](_0x160c3a(0xbe));if(_0x23d937[_0x160c3a(0x101)]===_0x160c3a(0xea))return a29_0x59c7fa[_0x160c3a(0xb9)]('⚠\x20Empty');return a29_0x59c7fa['red']('✗\x20Invalid'+(_0x23d937[_0x160c3a(0xe2)]?':\x20'+_0x23d937[_0x160c3a(0xe2)]:''));}function a29_0x113f(_0x5cb383,_0x40e2d0){_0x5cb383=_0x5cb383-0xb3;const _0xc14829=a29_0xc148();let _0x113fb9=_0xc14829[_0x5cb383];return _0x113fb9;}export const doctorDefinition={'service':a29_0x2a8512(0xf2),'command':a29_0x2a8512(0xeb),'description':a29_0x2a8512(0xb8),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};