@lovrabet/lovrabet-cli 2.1.9-beta.4 → 2.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/app-config/shared.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schema.js +1 -1
  39. package/lib/commands/service/dynamic.js +1 -1
  40. package/lib/commands/service/index.js +1 -1
  41. package/lib/commands/service/registry.js +1 -1
  42. package/lib/commands/skill/commands/create.js +1 -1
  43. package/lib/commands/skill/commands/install.js +1 -1
  44. package/lib/commands/skill/commands/list.js +1 -1
  45. package/lib/commands/skill/commands/push.js +1 -1
  46. package/lib/commands/skill/commands/validate.js +1 -1
  47. package/lib/commands/skill/flags.js +1 -1
  48. package/lib/commands/skill/index.js +1 -1
  49. package/lib/commands/skill/manifest-helpers.js +1 -1
  50. package/lib/commands/skill/push-execute.js +1 -1
  51. package/lib/commands/skill/push-flow-helpers.js +1 -1
  52. package/lib/commands/skill/push-retarget.js +1 -1
  53. package/lib/commands/skill/scopes.js +1 -1
  54. package/lib/commands/skill/summary.js +1 -1
  55. package/lib/commands/skill/templates.js +1 -1
  56. package/lib/commands/skill/validate.js +1 -1
  57. package/lib/commands/sql/detail.js +1 -1
  58. package/lib/commands/sql/exec.js +1 -1
  59. package/lib/commands/sql/index.js +1 -1
  60. package/lib/commands/update.js +1 -1
  61. package/lib/commands/workspace/index.js +1 -1
  62. package/lib/config/schema.js +1 -1
  63. package/lib/constant/app.js +1 -1
  64. package/lib/constant/auth-mode.js +1 -1
  65. package/lib/constant/cli.js +1 -1
  66. package/lib/constant/defaults.js +1 -1
  67. package/lib/constant/distribution.js +1 -1
  68. package/lib/constant/domain.js +1 -1
  69. package/lib/constant/env.js +1 -1
  70. package/lib/constant/output.js +1 -1
  71. package/lib/constant/product.js +1 -1
  72. package/lib/constant/risk.js +1 -1
  73. package/lib/constant/url.js +1 -1
  74. package/lib/context.js +1 -1
  75. package/lib/core/api-client.js +1 -1
  76. package/lib/core/db-resolver.js +1 -1
  77. package/lib/core/sdk-client.js +1 -1
  78. package/lib/errors.js +1 -1
  79. package/lib/framework/build-all-flags.js +1 -1
  80. package/lib/framework/dryrun.js +1 -1
  81. package/lib/framework/flags.js +1 -1
  82. package/lib/framework/help.js +1 -1
  83. package/lib/framework/index.js +1 -1
  84. package/lib/framework/output.js +1 -1
  85. package/lib/framework/preparse.js +1 -1
  86. package/lib/framework/response.js +1 -1
  87. package/lib/framework/runner-confirmation.js +1 -1
  88. package/lib/framework/runner-error.js +1 -1
  89. package/lib/framework/runner.js +1 -1
  90. package/lib/framework/schema-export.js +1 -1
  91. package/lib/framework/service-order.js +1 -1
  92. package/lib/framework/types.js +1 -1
  93. package/lib/generated/build-info.js +1 -1
  94. package/lib/help.js +1 -1
  95. package/lib/skills/npx-skills-add.js +1 -1
  96. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  97. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  98. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  99. package/lib/skills/runtime-skill-sync/links.js +1 -1
  100. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  101. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  102. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  103. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  104. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  105. package/lib/skills/runtime-skill-sync/push.js +1 -1
  106. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  107. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  108. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  109. package/lib/skills/runtime-skill-sync.js +1 -1
  110. package/lib/utils/apply-jq-filter.js +1 -1
  111. package/lib/utils/logger.js +1 -1
  112. package/lib/utils/params.js +1 -1
  113. package/lib/utils/platform.js +1 -1
  114. package/lib/utils/update-notice.js +1 -1
  115. package/lib/utils/version.js +1 -1
  116. package/lib/utils/write-cli-side-channel.js +1 -1
  117. package/package.json +1 -1
@@ -1 +1 @@
1
- function a14_0x4e6b(){const _0x50f422=['description','234747geMZlf','2saoxZW','327885qXSeJL','(none)','appCode','473kUbxyT','verbose','functionName','60joWmJb','Get\x20BFF\x20script\x20details\x20by\x20ID','updatedTime','99732OubOMq','1882926TWpKXO','96gpgRmO','Script\x20ID','bool','2027770ghWCRo','28OvTLaK','scriptType','110194yMAsZZ','createdTime','read','229652kPhTLg','detail','bff','num'];a14_0x4e6b=function(){return _0x50f422;};return a14_0x4e6b();}const a14_0x3e4948=a14_0x1fc2;function a14_0x1fc2(_0x4ada87,_0x160649){_0x4ada87=_0x4ada87-0x158;const _0x4e6b72=a14_0x4e6b();let _0x1fc2da=_0x4e6b72[_0x4ada87];return _0x1fc2da;}(function(_0x48908c,_0x16a1f4){const _0x4a6ee6=a14_0x1fc2,_0x41d0bb=_0x48908c();while(!![]){try{const _0x4aec39=parseInt(_0x4a6ee6(0x15a))/0x1*(parseInt(_0x4a6ee6(0x160))/0x2)+parseInt(_0x4a6ee6(0x16b))/0x3+-parseInt(_0x4a6ee6(0x170))/0x4*(parseInt(_0x4a6ee6(0x161))/0x5)+-parseInt(_0x4a6ee6(0x167))/0x6*(parseInt(_0x4a6ee6(0x172))/0x7)+-parseInt(_0x4a6ee6(0x16c))/0x8*(-parseInt(_0x4a6ee6(0x15f))/0x9)+parseInt(_0x4a6ee6(0x16f))/0xa+parseInt(_0x4a6ee6(0x164))/0xb*(-parseInt(_0x4a6ee6(0x16a))/0xc);if(_0x4aec39===_0x16a1f4)break;else _0x41d0bb['push'](_0x41d0bb['shift']());}catch(_0x30f69e){_0x41d0bb['push'](_0x41d0bb['shift']());}}}(a14_0x4e6b,0x61783));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a14_0x3e4948(0x15c),'command':a14_0x3e4948(0x15b),'description':a14_0x3e4948(0x168),'risk':a14_0x3e4948(0x159),'flags':[{...ID_FLAG,'description':a14_0x3e4948(0x16d)},VERBOSE_FLAG],async 'execute'(_0xfafce4){const _0x523253=a14_0x3e4948,_0x356798=await getBffScriptInfo(_0xfafce4[_0x523253(0x15d)]('id')),_0x5033a6=_0xfafce4[_0x523253(0x16e)](_0x523253(0x165));if(_0x5033a6)return{'ok':!![],'data':_0x356798};return{'ok':!![],'data':{'id':_0x356798['id'],'appCode':_0x356798[_0x523253(0x163)],'functionName':_0x356798[_0x523253(0x166)]??'','scriptType':_0x356798[_0x523253(0x171)],'description':_0x356798[_0x523253(0x15e)]||_0x523253(0x162),'createdTime':_0x356798[_0x523253(0x158)]??'','updatedTime':_0x356798[_0x523253(0x169)]??''}};}};
1
+ const a14_0x48d6a9=a14_0x9af8;(function(_0xad60b0,_0x2ffc1a){const _0x13845c=a14_0x9af8,_0x29a80a=_0xad60b0();while(!![]){try{const _0x96aaa5=parseInt(_0x13845c(0x132))/0x1*(parseInt(_0x13845c(0x12e))/0x2)+parseInt(_0x13845c(0x134))/0x3*(-parseInt(_0x13845c(0x12c))/0x4)+parseInt(_0x13845c(0x136))/0x5+-parseInt(_0x13845c(0x125))/0x6*(-parseInt(_0x13845c(0x135))/0x7)+parseInt(_0x13845c(0x122))/0x8+parseInt(_0x13845c(0x133))/0x9+parseInt(_0x13845c(0x126))/0xa*(-parseInt(_0x13845c(0x130))/0xb);if(_0x96aaa5===_0x2ffc1a)break;else _0x29a80a['push'](_0x29a80a['shift']());}catch(_0x176673){_0x29a80a['push'](_0x29a80a['shift']());}}}(a14_0x1709,0x3eba9));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':'bff','command':a14_0x48d6a9(0x12f),'description':'Get\x20BFF\x20script\x20details\x20by\x20ID','risk':a14_0x48d6a9(0x12d),'flags':[{...ID_FLAG,'description':a14_0x48d6a9(0x129)},VERBOSE_FLAG],async 'execute'(_0x4962cf){const _0xd82f8c=a14_0x48d6a9,_0x4827c8=await getBffScriptInfo(_0x4962cf[_0xd82f8c(0x123)]('id')),_0x3cebc5=_0x4962cf['bool'](_0xd82f8c(0x12b));if(_0x3cebc5)return{'ok':!![],'data':_0x4827c8};return{'ok':!![],'data':{'id':_0x4827c8['id'],'appCode':_0x4827c8[_0xd82f8c(0x12a)],'functionName':_0x4827c8[_0xd82f8c(0x128)]??'','scriptType':_0x4827c8[_0xd82f8c(0x127)],'description':_0x4827c8['description']||_0xd82f8c(0x124),'createdTime':_0x4827c8['createdTime']??'','updatedTime':_0x4827c8[_0xd82f8c(0x131)]??''}};}};function a14_0x9af8(_0x2b8752,_0x558287){_0x2b8752=_0x2b8752-0x122;const _0x17091e=a14_0x1709();let _0x9af8f3=_0x17091e[_0x2b8752];return _0x9af8f3;}function a14_0x1709(){const _0x3a4863=['num','(none)','1906770nZuZIW','470webAHU','scriptType','functionName','Script\x20ID','appCode','verbose','22276kxvRQm','read','29728SHMnhU','detail','231297iJZvtu','updatedTime','7vBHqxr','4606794SEjdaw','183EJnFGz','7fIOJli','858180gRLOXo','3836560vGKYPa'];a14_0x1709=function(){return _0x3a4863;};return a14_0x1709();}
@@ -1 +1 @@
1
- const a15_0x571d69=a15_0x59ba;(function(_0x5aa7c8,_0xd9fe20){const _0x128567=a15_0x59ba,_0x334aa7=_0x5aa7c8();while(!![]){try{const _0x42f126=-parseInt(_0x128567(0xe7))/0x1+-parseInt(_0x128567(0xe8))/0x2*(parseInt(_0x128567(0xea))/0x3)+parseInt(_0x128567(0xe1))/0x4*(parseInt(_0x128567(0xe9))/0x5)+parseInt(_0x128567(0xdc))/0x6+-parseInt(_0x128567(0xdb))/0x7*(parseInt(_0x128567(0xdf))/0x8)+parseInt(_0x128567(0xe4))/0x9+-parseInt(_0x128567(0xde))/0xa;if(_0x42f126===_0xd9fe20)break;else _0x334aa7['push'](_0x334aa7['shift']());}catch(_0x2ddd82){_0x334aa7['push'](_0x334aa7['shift']());}}}(a15_0x21f3,0xb88ef));function a15_0x59ba(_0x24e7da,_0x10da6f){_0x24e7da=_0x24e7da-0xdb;const _0x21f371=a15_0x21f3();let _0x59ba21=_0x21f371[_0x24e7da];return _0x59ba21;}function a15_0x21f3(){const _0x53fd42=['196KbIAEr','7126950IhGrwQ','bff','4839450QYFSqf','8656ikUDzX','exec','4mRcUsf','BFF\x20function\x20name\x20to\x20execute','str','6295374atZVHA','BFF\x20executed\x20in\x20','read','420961xeRLuu','2rNfiZt','3838745DzprLM','2891721jtwdyN'];a15_0x21f3=function(){return _0x53fd42;};return a15_0x21f3();}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_0x571d69(0xdd),'command':a15_0x571d69(0xe0),'description':'Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','risk':a15_0x571d69(0xe6),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x571d69(0xe2)},PARAMS_FLAG],async 'execute'(_0xea4730){const _0xf45c34=a15_0x571d69,_0x30cefa=parseJsonParams(_0xea4730[_0xf45c34(0xe3)]('params')),_0x225ab8=Date['now'](),_0x4f72a9=await executeSdkBff(_0xea4730[_0xf45c34(0xe3)]('name'),_0x30cefa),_0x49f09b=Date['now']()-_0x225ab8;return{'ok':!![],'data':{'result':_0x4f72a9,'elapsed':_0x49f09b},'message':_0xf45c34(0xe5)+_0x49f09b+'ms'};}};
1
+ function a15_0x3b18(_0x2aff98,_0x469320){_0x2aff98=_0x2aff98-0x1a2;const _0x2a69e8=a15_0x2a69();let _0x3b183a=_0x2a69e8[_0x2aff98];return _0x3b183a;}function a15_0x2a69(){const _0x4d0f5f=['4675422WSwqBO','1501528dGSxGq','now','BFF\x20function\x20name\x20to\x20execute','read','9yRVEwa','28328AbMgjQ','bff','6720790mJUxsk','name','str','params','BFF\x20executed\x20in\x20','3lMOCcz','1414xztRUn','148610dSSFkr','1FkXykC','1913516qKPCQl','16866157KfWGby'];a15_0x2a69=function(){return _0x4d0f5f;};return a15_0x2a69();}const a15_0x1d4b27=a15_0x3b18;(function(_0xf86f70,_0x133033){const _0x19fd8a=a15_0x3b18,_0xd49e4c=_0xf86f70();while(!![]){try{const _0x30dae9=-parseInt(_0x19fd8a(0x1a4))/0x1*(parseInt(_0x19fd8a(0x1a8))/0x2)+-parseInt(_0x19fd8a(0x1b4))/0x3*(-parseInt(_0x19fd8a(0x1a5))/0x4)+parseInt(_0x19fd8a(0x1a3))/0x5+parseInt(_0x19fd8a(0x1a7))/0x6+-parseInt(_0x19fd8a(0x1a2))/0x7*(-parseInt(_0x19fd8a(0x1ad))/0x8)+parseInt(_0x19fd8a(0x1ac))/0x9*(parseInt(_0x19fd8a(0x1af))/0xa)+-parseInt(_0x19fd8a(0x1a6))/0xb;if(_0x30dae9===_0x133033)break;else _0xd49e4c['push'](_0xd49e4c['shift']());}catch(_0x330469){_0xd49e4c['push'](_0xd49e4c['shift']());}}}(a15_0x2a69,0x5f5f8));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_0x1d4b27(0x1ae),'command':'exec','description':'Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','risk':a15_0x1d4b27(0x1ab),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x1d4b27(0x1aa)},PARAMS_FLAG],async 'execute'(_0xcdb405){const _0x2bff68=a15_0x1d4b27,_0x4c213b=parseJsonParams(_0xcdb405[_0x2bff68(0x1b1)](_0x2bff68(0x1b2))),_0x5641b6=Date[_0x2bff68(0x1a9)](),_0x1410e3=await executeSdkBff(_0xcdb405[_0x2bff68(0x1b1)](_0x2bff68(0x1b0)),_0x4c213b),_0x489b12=Date['now']()-_0x5641b6;return{'ok':!![],'data':{'result':_0x1410e3,'elapsed':_0x489b12},'message':_0x2bff68(0x1b3)+_0x489b12+'ms'};}};
@@ -1 +1 @@
1
- function a16_0x1745(){const _0x58248b=['3bYnMlC','981ETDJuA','48jWPlJc','695611MBziUd','11990SxnOxH','323620kyLVKY','140312tMXYzY','68742pxJyKL','1195856IdVoIb','371560Wfipyw'];a16_0x1745=function(){return _0x58248b;};return a16_0x1745();}(function(_0x2c6084,_0x1c9b20){const _0x579eb7=a16_0x25e4,_0x3debfb=_0x2c6084();while(!![]){try{const _0x85bd61=parseInt(_0x579eb7(0x1d4))/0x1+-parseInt(_0x579eb7(0x1cd))/0x2*(parseInt(_0x579eb7(0x1d1))/0x3)+parseInt(_0x579eb7(0x1cf))/0x4+-parseInt(_0x579eb7(0x1d6))/0x5+parseInt(_0x579eb7(0x1ce))/0x6+-parseInt(_0x579eb7(0x1d0))/0x7*(parseInt(_0x579eb7(0x1d3))/0x8)+-parseInt(_0x579eb7(0x1d2))/0x9*(parseInt(_0x579eb7(0x1d5))/0xa);if(_0x85bd61===_0x1c9b20)break;else _0x3debfb['push'](_0x3debfb['shift']());}catch(_0xe20abc){_0x3debfb['push'](_0x3debfb['shift']());}}}(a16_0x1745,0x6705d));function a16_0x25e4(_0x5d5ed4,_0x544941){_0x5d5ed4=_0x5d5ed4-0x1cd;const _0x174549=a16_0x1745();let _0x25e416=_0x174549[_0x5d5ed4];return _0x25e416;}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
1
+ (function(_0x543b5b,_0x67b442){const _0x220bec=a16_0x1fd2,_0x486a6c=_0x543b5b();while(!![]){try{const _0x242f43=-parseInt(_0x220bec(0x193))/0x1*(parseInt(_0x220bec(0x199))/0x2)+-parseInt(_0x220bec(0x198))/0x3+parseInt(_0x220bec(0x194))/0x4+-parseInt(_0x220bec(0x191))/0x5*(parseInt(_0x220bec(0x197))/0x6)+parseInt(_0x220bec(0x192))/0x7+-parseInt(_0x220bec(0x196))/0x8+parseInt(_0x220bec(0x190))/0x9*(parseInt(_0x220bec(0x195))/0xa);if(_0x242f43===_0x67b442)break;else _0x486a6c['push'](_0x486a6c['shift']());}catch(_0x617db3){_0x486a6c['push'](_0x486a6c['shift']());}}}(a16_0x46bd,0xe538e));import{bffDetail}from'../../commands/bff/detail.js';function a16_0x1fd2(_0x225e66,_0x5b09c5){_0x225e66=_0x225e66-0x190;const _0x46bda5=a16_0x46bd();let _0x1fd268=_0x46bda5[_0x225e66];return _0x1fd268;}import{bffExec}from'../../commands/bff/exec.js';function a16_0x46bd(){const _0x40c4a9=['47808oMxDpE','2679891mFCtDM','2dShrxs','2626011pMLMDH','1090LdJoDT','927682UeXstx','1274189RhROrz','3622368MZedpw','170ItgdIf','9239656NpGmYb'];a16_0x46bd=function(){return _0x40c4a9;};return a16_0x46bd();}export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- function a17_0x3811(){const _0x49c50a=['../../skills/npx-skills-add.js','log','1350167HrFZdL','41729530ddyHUC','367350UPkbxv','102CadgeR','CLI\x20Built-in\x20Skill\x20installed','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','Skipped\x20npx\x20(','install','cwd','801702ocLUPq','skipped','8JFJDtu','740336twZVGr','error','461153DmOKwp','\x20-g\x20-y)...','245eJBGCA','107420ygKgPs','\x20-g\x20-y','info','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.'];a17_0x3811=function(){return _0x49c50a;};return a17_0x3811();}function a17_0x146a(_0x263d50,_0x551e94){_0x263d50=_0x263d50-0x165;const _0x3811df=a17_0x3811();let _0x146a5e=_0x3811df[_0x263d50];return _0x146a5e;}const a17_0x47f265=a17_0x146a;(function(_0x25210a,_0x44689d){const _0x2bfa5f=a17_0x146a,_0x2f9c9c=_0x25210a();while(!![]){try{const _0x3858cc=-parseInt(_0x2bfa5f(0x16c))/0x1+parseInt(_0x2bfa5f(0x177))/0x2*(parseInt(_0x2bfa5f(0x16e))/0x3)+parseInt(_0x2bfa5f(0x166))/0x4*(-parseInt(_0x2bfa5f(0x165))/0x5)+-parseInt(_0x2bfa5f(0x16f))/0x6*(parseInt(_0x2bfa5f(0x17a))/0x7)+-parseInt(_0x2bfa5f(0x178))/0x8+-parseInt(_0x2bfa5f(0x175))/0x9+parseInt(_0x2bfa5f(0x16d))/0xa;if(_0x3858cc===_0x44689d)break;else _0x2f9c9c['push'](_0x2f9c9c['shift']());}catch(_0x1766df){_0x2f9c9c['push'](_0x2f9c9c['shift']());}}}(a17_0x3811,0xa9b58));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':a17_0x47f265(0x173),'description':'Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3f9d01){const _0x248374=a17_0x47f265;logger['setLogPath'](process[_0x248374(0x174)]()),logger[_0x248374(0x168)]('cli-skill-install',_0x248374(0x169));const {LOVRABET_SKILL_SOURCE:_0xc54f52,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x186e64,runNpxSkillsAddGlobal:_0x3d4f6e}=await import(_0x248374(0x16a)),_0x11b399=_0x3f9d01['nonInteractive']?'pipe':'inherit';console['log']('Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20'+_0xc54f52+_0x248374(0x17b));const _0x5ee321=_0x3d4f6e(process[_0x248374(0x174)](),_0xc54f52,{'stdio':_0x11b399});if(_0x5ee321[_0x248374(0x176)])console[_0x248374(0x16b)](_0x248374(0x172)+_0x186e64+'=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.');else{if(_0x5ee321['ok'])console[_0x248374(0x16b)](_0x248374(0x170));else throw CliErrors['apiError']('npx\x20skills\x20add\x20failed:\x20'+(_0x5ee321[_0x248374(0x179)]||'unknown'),_0x248374(0x171)+_0xc54f52+_0x248374(0x167));}return{'ok':!![]};}}];
1
+ const a17_0x23ccec=a17_0x5030;function a17_0x5030(_0x4832ca,_0xa58a0a){_0x4832ca=_0x4832ca-0x8b;const _0x244a68=a17_0x244a();let _0x50305c=_0x244a68[_0x4832ca];return _0x50305c;}function a17_0x244a(){const _0x3df378=['pipe','20006650WYTiLc','279099IFdRdc','cli-skill-install','42mDspTh','13519496jfpyRi','233395qustAv','install','apiError','log','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','cwd','9atundT','Skipped\x20npx\x20(','../../skills/npx-skills-add.js','skipped','nonInteractive','228XdaEAy','\x20-g\x20-y)...','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','info','npx\x20skills\x20add\x20failed:\x20','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','CLI\x20Built-in\x20Skill\x20installed','write','4496848jfZUKy','471265irsjkT','inherit','setLogPath','2052204laOlZd','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.'];a17_0x244a=function(){return _0x3df378;};return a17_0x244a();}(function(_0x383687,_0x3ba88f){const _0x6f10bb=a17_0x5030,_0x3515ec=_0x383687();while(!![]){try{const _0x346d71=-parseInt(_0x6f10bb(0xa1))/0x1+-parseInt(_0x6f10bb(0x8b))/0x2*(-parseInt(_0x6f10bb(0xa8))/0x3)+parseInt(_0x6f10bb(0xa0))/0x4+-parseInt(_0x6f10bb(0x8d))/0x5*(-parseInt(_0x6f10bb(0x98))/0x6)+parseInt(_0x6f10bb(0xa4))/0x7+parseInt(_0x6f10bb(0x8c))/0x8*(-parseInt(_0x6f10bb(0x93))/0x9)+-parseInt(_0x6f10bb(0xa7))/0xa;if(_0x346d71===_0x3ba88f)break;else _0x3515ec['push'](_0x3515ec['shift']());}catch(_0x4990ad){_0x3515ec['push'](_0x3515ec['shift']());}}}(a17_0x244a,0xeffe4));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':a17_0x23ccec(0x8e),'description':a17_0x23ccec(0x9a),'risk':a17_0x23ccec(0x9f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2551cf){const _0x31aa35=a17_0x23ccec;logger[_0x31aa35(0xa3)](process['cwd']()),logger[_0x31aa35(0x9b)](_0x31aa35(0xa9),_0x31aa35(0xa5));const {LOVRABET_SKILL_SOURCE:_0x4bc5b0,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x39a7e2,runNpxSkillsAddGlobal:_0x1b3551}=await import(_0x31aa35(0x95)),_0x5aea1d=_0x2551cf[_0x31aa35(0x97)]?_0x31aa35(0xa6):_0x31aa35(0xa2);console['log'](_0x31aa35(0x91)+_0x4bc5b0+_0x31aa35(0x99));const _0x32e761=_0x1b3551(process[_0x31aa35(0x92)](),_0x4bc5b0,{'stdio':_0x5aea1d});if(_0x32e761[_0x31aa35(0x96)])console[_0x31aa35(0x90)](_0x31aa35(0x94)+_0x39a7e2+_0x31aa35(0x9d));else{if(_0x32e761['ok'])console[_0x31aa35(0x90)](_0x31aa35(0x9e));else throw CliErrors[_0x31aa35(0x8f)](_0x31aa35(0x9c)+(_0x32e761['error']||'unknown'),'Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20'+_0x4bc5b0+'\x20-g\x20-y');}return{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x1daf5c,_0x368ce3){const _0x577b98=a18_0x4b57,_0xd7e89e=_0x1daf5c();while(!![]){try{const _0x1b25a3=-parseInt(_0x577b98(0x172))/0x1+parseInt(_0x577b98(0x166))/0x2+parseInt(_0x577b98(0x15e))/0x3*(-parseInt(_0x577b98(0x162))/0x4)+-parseInt(_0x577b98(0x16c))/0x5*(-parseInt(_0x577b98(0x16a))/0x6)+parseInt(_0x577b98(0x173))/0x7*(parseInt(_0x577b98(0x168))/0x8)+parseInt(_0x577b98(0x15a))/0x9*(parseInt(_0x577b98(0x164))/0xa)+-parseInt(_0x577b98(0x15d))/0xb;if(_0x1b25a3===_0x368ce3)break;else _0xd7e89e['push'](_0xd7e89e['shift']());}catch(_0x5df612){_0xd7e89e['push'](_0xd7e89e['shift']());}}}(a18_0x392d,0x320ed));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';function a18_0x392d(){const _0xc6d0a4=['726436gJnIVl','newConfigFileName','12560sZHoCy','inProject','1344534fQigsj','\x20(global)','5kAzwZx','global','project','project-or-global-explicit','Add\x20--global\x20to\x20write\x20to\x20~/','global-default','295364UctnRh','854HnRznQ','5931WRlTTX','Use\x20only\x20one\x20config\x20scope\x20flag.','validation','2581216mzqoAL','27hyqhVA','Not\x20inside\x20a\x20project\x20(no\x20','project-default',',\x20or\x20run\x20`','122852AnFZuh','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','3530ACFrdM','\x20found).'];a18_0x392d=function(){return _0xc6d0a4;};return a18_0x392d();}export{RUNTIME_ENV_VALUES}from'../../constant/env.js';function a18_0x4b57(_0x15ce5d,_0x1c69b7){_0x15ce5d=_0x15ce5d-0x15a;const _0x392d88=a18_0x392d();let _0x4b5716=_0x392d88[_0x15ce5d];return _0x4b5716;}export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x456113){const _0x389cfa=a18_0x4b57,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x36b656}=_0x456113;if(explicitGlobal&&explicitProject)throw CliErrors[_0x389cfa(0x15c)](_0x389cfa(0x163),_0x389cfa(0x15b));if(explicitGlobal)return _0x389cfa(0x16d);if(explicitProject)return _0x389cfa(0x16e);switch(_0x36b656){case _0x389cfa(0x171):return _0x389cfa(0x16d);case _0x389cfa(0x160):return _0x456113[_0x389cfa(0x169)]??isInProject()?_0x389cfa(0x16e):_0x389cfa(0x16d);case _0x389cfa(0x16f):if(!(_0x456113['inProject']??isInProject()))throw CliErrors[_0x389cfa(0x15c)](_0x389cfa(0x15f)+PRODUCT_CONFIG[_0x389cfa(0x167)]+_0x389cfa(0x165),_0x389cfa(0x170)+PRODUCT_CONFIG[_0x389cfa(0x167)]+_0x389cfa(0x161)+CLI_BIN_NAME+'\x20init`\x20first.');return _0x389cfa(0x16e);}}export function toScopeFlags(_0x4d8865){const _0x313d37=a18_0x4b57;return{'global':_0x4d8865===_0x313d37(0x16d)};}export function formatScopeLabel(_0x4daf43){const _0x5c51e2=a18_0x4b57;return _0x4daf43===_0x5c51e2(0x16d)?_0x5c51e2(0x16b):'';}
1
+ (function(_0x175832,_0x427aa9){const _0x4c52e2=a18_0x7314,_0x2050d8=_0x175832();while(!![]){try{const _0x1354d4=parseInt(_0x4c52e2(0x11b))/0x1+-parseInt(_0x4c52e2(0x11e))/0x2+parseInt(_0x4c52e2(0x125))/0x3+parseInt(_0x4c52e2(0x120))/0x4*(-parseInt(_0x4c52e2(0x118))/0x5)+parseInt(_0x4c52e2(0x11f))/0x6+parseInt(_0x4c52e2(0x124))/0x7*(parseInt(_0x4c52e2(0x119))/0x8)+parseInt(_0x4c52e2(0x126))/0x9;if(_0x1354d4===_0x427aa9)break;else _0x2050d8['push'](_0x2050d8['shift']());}catch(_0x58917a){_0x2050d8['push'](_0x2050d8['shift']());}}}(a18_0x5481,0x631e7));import{CLI_BIN_NAME}from'../../constant/cli.js';function a18_0x5481(){const _0xf6f7c8=['project','1278586ktfnPt','3933972Mvcinf','2172sWaZdy','project-default','Not\x20inside\x20a\x20project\x20(no\x20','global-default','245LleeBr','261360AXMkxj','3244797aowMuS',',\x20or\x20run\x20`','\x20found).','\x20(global)','\x20init`\x20first.','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','validation','global','7440zpbOaX','106768xufqPs','newConfigFileName','282843bVGOba','inProject'];a18_0x5481=function(){return _0xf6f7c8;};return a18_0x5481();}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';function a18_0x7314(_0x49d1cc,_0x619ef0){_0x49d1cc=_0x49d1cc-0x113;const _0x54813c=a18_0x5481();let _0x7314e4=_0x54813c[_0x49d1cc];return _0x7314e4;}export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x279a07){const _0x50df52=a18_0x7314,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x5c1727}=_0x279a07;if(explicitGlobal&&explicitProject)throw CliErrors[_0x50df52(0x116)](_0x50df52(0x115),'Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return _0x50df52(0x117);if(explicitProject)return _0x50df52(0x11d);switch(_0x5c1727){case _0x50df52(0x123):return _0x50df52(0x117);case _0x50df52(0x121):return _0x279a07[_0x50df52(0x11c)]??isInProject()?_0x50df52(0x11d):_0x50df52(0x117);case'project-or-global-explicit':if(!(_0x279a07[_0x50df52(0x11c)]??isInProject()))throw CliErrors['validation'](_0x50df52(0x122)+PRODUCT_CONFIG['newConfigFileName']+_0x50df52(0x128),'Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG[_0x50df52(0x11a)]+_0x50df52(0x127)+CLI_BIN_NAME+_0x50df52(0x114));return _0x50df52(0x11d);}}export function toScopeFlags(_0x518c7e){const _0x5cc255=a18_0x7314;return{'global':_0x518c7e===_0x5cc255(0x117)};}export function formatScopeLabel(_0x1f5034){const _0x3158c6=a18_0x7314;return _0x1f5034===_0x3158c6(0x117)?_0x3158c6(0x113):'';}
@@ -1 +1 @@
1
- (function(_0x14cb4d,_0x499d87){const _0x4b6966=a19_0x2503,_0xe61dc9=_0x14cb4d();while(!![]){try{const _0x1ec055=parseInt(_0x4b6966(0x179))/0x1*(-parseInt(_0x4b6966(0x18b))/0x2)+parseInt(_0x4b6966(0x17f))/0x3*(-parseInt(_0x4b6966(0x188))/0x4)+parseInt(_0x4b6966(0x183))/0x5+parseInt(_0x4b6966(0x17e))/0x6+-parseInt(_0x4b6966(0x180))/0x7*(-parseInt(_0x4b6966(0x176))/0x8)+parseInt(_0x4b6966(0x18c))/0x9+-parseInt(_0x4b6966(0x17b))/0xa*(parseInt(_0x4b6966(0x178))/0xb);if(_0x1ec055===_0x499d87)break;else _0xe61dc9['push'](_0xe61dc9['shift']());}catch(_0x4b44eb){_0xe61dc9['push'](_0xe61dc9['shift']());}}}(a19_0x4738,0xf31e2));import{CliErrors}from'../../errors.js';function isSet(_0x47c2db,_0x4c0592){const _0x2e611b=a19_0x2503,_0x232fd0=_0x47c2db[_0x2e611b(0x18e)](_0x4c0592);return _0x232fd0!==undefined&&_0x232fd0!==''&&_0x232fd0!==![]&&_0x232fd0!==0x0;}function fmtNames(_0xf2e7d0){const _0x5ede1d=a19_0x2503;return _0xf2e7d0[_0x5ede1d(0x181)](_0x362d91=>'--'+_0x362d91)['join'](',\x20');}function a19_0x4738(){const _0x1e6e6b=[',\x20got\x20\x22','\x20are\x20mutually\x20exclusive\x20for\x20`','length','Remove\x20all\x20but\x20one.','892256GKwFdh','At\x20least\x20one\x20of\x20','3289RQXuTH','3rwAQaw','Invalid\x20--','15790oUBWvC',':\x20expected\x20','\x20is\x20required\x20for\x20`','6340620OAQxbg','3YdPkuD','28LCbxIz','map','\x20is\x20allowed,\x20found:\x20','8698550XyDRRq','Use\x20only\x20one\x20of:\x20','validation','Exactly\x20one\x20of\x20','Provide\x20one\x20of:\x20','3066784XGRyYv','filter','Flags\x20','874576FgLGKa','2734947AaCDdQ','some','flag'];a19_0x4738=function(){return _0x1e6e6b;};return a19_0x4738();}export function requireOneOf(_0x24ad84,_0x5b67c1,_0x512bdc){const _0x10ce83=a19_0x2503,_0x27b708=_0x5b67c1['filter'](_0x4db802=>isSet(_0x24ad84,_0x4db802));if(_0x27b708[_0x10ce83(0x174)]!==0x1)throw CliErrors[_0x10ce83(0x185)](_0x27b708[_0x10ce83(0x174)]===0x0?_0x10ce83(0x186)+fmtNames(_0x5b67c1)+_0x10ce83(0x17d)+_0x512bdc+'`.':'Only\x20one\x20of\x20'+fmtNames(_0x5b67c1)+_0x10ce83(0x182)+fmtNames(_0x27b708)+'.',_0x27b708['length']===0x0?_0x10ce83(0x187)+fmtNames(_0x5b67c1):_0x10ce83(0x175));}function a19_0x2503(_0x14d2e9,_0x468fd4){_0x14d2e9=_0x14d2e9-0x174;const _0x4738fa=a19_0x4738();let _0x25033b=_0x4738fa[_0x14d2e9];return _0x25033b;}export function requireAnyOf(_0x5cad0a,_0x58acac,_0x1e39cd){const _0x41347e=a19_0x2503;if(!_0x58acac[_0x41347e(0x18d)](_0x49bdce=>isSet(_0x5cad0a,_0x49bdce)))throw CliErrors['validation'](_0x41347e(0x177)+fmtNames(_0x58acac)+_0x41347e(0x17d)+_0x1e39cd+'`.',_0x41347e(0x187)+fmtNames(_0x58acac));}export function mutuallyExclusive(_0xc4f27f,_0x22ce60,_0x21cd55){const _0x3f8aed=a19_0x2503,_0x4c562d=_0x22ce60[_0x3f8aed(0x189)](_0x26fe27=>isSet(_0xc4f27f,_0x26fe27));if(_0x4c562d[_0x3f8aed(0x174)]>0x1)throw CliErrors['validation'](_0x3f8aed(0x18a)+fmtNames(_0x4c562d)+_0x3f8aed(0x190)+_0x21cd55+'`.',_0x3f8aed(0x184)+fmtNames(_0x22ce60));}export function validatePattern(_0x54ccb1,_0x25a342,_0x3707ed,_0x300924){const _0x30ee31=a19_0x2503,_0x5b253b=_0x54ccb1['str'](_0x25a342);if(_0x5b253b&&!_0x3707ed['test'](_0x5b253b))throw CliErrors[_0x30ee31(0x185)](_0x30ee31(0x17a)+_0x25a342+_0x30ee31(0x17c)+_0x300924+_0x30ee31(0x18f)+_0x5b253b+'\x22.');}
1
+ (function(_0x551d2e,_0x12dea8){const _0x3b9a96=a19_0x1b42,_0x2bae36=_0x551d2e();while(!![]){try{const _0xf16fd5=-parseInt(_0x3b9a96(0x188))/0x1*(-parseInt(_0x3b9a96(0x191))/0x2)+parseInt(_0x3b9a96(0x186))/0x3+parseInt(_0x3b9a96(0x189))/0x4*(-parseInt(_0x3b9a96(0x18c))/0x5)+-parseInt(_0x3b9a96(0x182))/0x6*(parseInt(_0x3b9a96(0x197))/0x7)+-parseInt(_0x3b9a96(0x181))/0x8*(-parseInt(_0x3b9a96(0x17d))/0x9)+parseInt(_0x3b9a96(0x18f))/0xa+-parseInt(_0x3b9a96(0x18a))/0xb;if(_0xf16fd5===_0x12dea8)break;else _0x2bae36['push'](_0x2bae36['shift']());}catch(_0x284a24){_0x2bae36['push'](_0x2bae36['shift']());}}}(a19_0x3e53,0xb6d1d));function a19_0x1b42(_0x3b4a30,_0x2037f2){_0x3b4a30=_0x3b4a30-0x17d;const _0x3e53c3=a19_0x3e53();let _0x1b4213=_0x3e53c3[_0x3b4a30];return _0x1b4213;}import{CliErrors}from'../../errors.js';function isSet(_0x5b0175,_0xc8403a){const _0x361724=_0x5b0175['flag'](_0xc8403a);return _0x361724!==undefined&&_0x361724!==''&&_0x361724!==![]&&_0x361724!==0x0;}function fmtNames(_0x182248){const _0x4e1697=a19_0x1b42;return _0x182248[_0x4e1697(0x18b)](_0x5c3ec9=>'--'+_0x5c3ec9)[_0x4e1697(0x194)](',\x20');}export function requireOneOf(_0x556815,_0x58bf7d,_0x472a44){const _0x13625d=a19_0x1b42,_0x40a2fa=_0x58bf7d[_0x13625d(0x18d)](_0x168de8=>isSet(_0x556815,_0x168de8));if(_0x40a2fa['length']!==0x1)throw CliErrors[_0x13625d(0x190)](_0x40a2fa[_0x13625d(0x187)]===0x0?_0x13625d(0x192)+fmtNames(_0x58bf7d)+'\x20is\x20required\x20for\x20`'+_0x472a44+'`.':_0x13625d(0x193)+fmtNames(_0x58bf7d)+_0x13625d(0x195)+fmtNames(_0x40a2fa)+'.',_0x40a2fa[_0x13625d(0x187)]===0x0?_0x13625d(0x17e)+fmtNames(_0x58bf7d):_0x13625d(0x17f));}function a19_0x3e53(){const _0x4177c3=['\x20are\x20mutually\x20exclusive\x20for\x20`','21ZPOPIf','126JXRIvX','Provide\x20one\x20of:\x20','Remove\x20all\x20but\x20one.',',\x20got\x20\x22','505296qgJBBZ','2923638kWvJJy','some','At\x20least\x20one\x20of\x20','Invalid\x20--','2145159AfqMpN','length','1ojsmZU','4MfDrIP','4139850HUfdjG','map','135290AtxGZE','filter','\x20is\x20required\x20for\x20`','7361280smjRET','validation','557214vAkMHf','Exactly\x20one\x20of\x20','Only\x20one\x20of\x20','join','\x20is\x20allowed,\x20found:\x20'];a19_0x3e53=function(){return _0x4177c3;};return a19_0x3e53();}export function requireAnyOf(_0x193764,_0x416fc1,_0x1cb39b){const _0x43ae29=a19_0x1b42;if(!_0x416fc1[_0x43ae29(0x183)](_0xf3d6c7=>isSet(_0x193764,_0xf3d6c7)))throw CliErrors[_0x43ae29(0x190)](_0x43ae29(0x184)+fmtNames(_0x416fc1)+_0x43ae29(0x18e)+_0x1cb39b+'`.','Provide\x20one\x20of:\x20'+fmtNames(_0x416fc1));}export function mutuallyExclusive(_0x10ae7a,_0x5e99ff,_0x5f8927){const _0x2a56ab=a19_0x1b42,_0x52024a=_0x5e99ff[_0x2a56ab(0x18d)](_0x4cc921=>isSet(_0x10ae7a,_0x4cc921));if(_0x52024a['length']>0x1)throw CliErrors[_0x2a56ab(0x190)]('Flags\x20'+fmtNames(_0x52024a)+_0x2a56ab(0x196)+_0x5f8927+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x5e99ff));}export function validatePattern(_0x277437,_0xd938e8,_0x34cc31,_0x22cf9c){const _0x5bdf0d=a19_0x1b42,_0x31539c=_0x277437['str'](_0xd938e8);if(_0x31539c&&!_0x34cc31['test'](_0x31539c))throw CliErrors[_0x5bdf0d(0x190)](_0x5bdf0d(0x185)+_0xd938e8+':\x20expected\x20'+_0x22cf9c+_0x5bdf0d(0x180)+_0x31539c+'\x22.');}
@@ -1 +1 @@
1
- const a20_0x58a97f=a20_0x13ff;(function(_0xbae001,_0x361d74){const _0x40c932=a20_0x13ff,_0x3258b6=_0xbae001();while(!![]){try{const _0x1670a2=-parseInt(_0x40c932(0xac))/0x1*(-parseInt(_0x40c932(0x98))/0x2)+-parseInt(_0x40c932(0xad))/0x3*(-parseInt(_0x40c932(0x97))/0x4)+parseInt(_0x40c932(0xab))/0x5*(-parseInt(_0x40c932(0xa3))/0x6)+parseInt(_0x40c932(0xa6))/0x7+parseInt(_0x40c932(0xa0))/0x8*(parseInt(_0x40c932(0xaa))/0x9)+-parseInt(_0x40c932(0xa8))/0xa+-parseInt(_0x40c932(0x9a))/0xb*(-parseInt(_0x40c932(0xa5))/0xc);if(_0x1670a2===_0x361d74)break;else _0x3258b6['push'](_0x3258b6['shift']());}catch(_0x5e73f7){_0x3258b6['push'](_0x3258b6['shift']());}}}(a20_0x3fe2,0xb774b));export const CODE_FLAG={'name':a20_0x58a97f(0xa1),'type':a20_0x58a97f(0x9b),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const SQLCODE_FLAG={'name':a20_0x58a97f(0xa9),'type':a20_0x58a97f(0x9b),'required':!![],'description':a20_0x58a97f(0x9f),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};function a20_0x13ff(_0x3c6d78,_0x5b8435){_0x3c6d78=_0x3c6d78-0x97;const _0x3fe254=a20_0x3fe2();let _0x13ff18=_0x3fe254[_0x3c6d78];return _0x13ff18;}export const VERBOSE_FLAG={'name':a20_0x58a97f(0x9c),'type':a20_0x58a97f(0xa4),'description':a20_0x58a97f(0xa7)};function a20_0x3fe2(){const _0x28bede=['2zrTscC','138SeQtwM','72328nrqLIO','1088516XOqOMR','name','55RLHIcb','string','verbose','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','Resource\x20ID','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','8aUQhtW','code','params','75306VTlIAC','boolean','621048eeMEwp','3137470zCraOu','Return\x20full\x20raw\x20response\x20object','12682640rlojAI','sqlcode','1083501dcfLYH','290sXvIzi'];a20_0x3fe2=function(){return _0x28bede;};return a20_0x3fe2();}export const PARAMS_FLAG={'name':a20_0x58a97f(0xa2),'type':a20_0x58a97f(0x9b),'description':a20_0x58a97f(0x9d)};export const NAME_FLAG={'name':a20_0x58a97f(0x99),'type':'string','description':'Resource\x20name\x20for\x20lookup'};export const ID_FLAG={'name':'id','type':'number','required':!![],'description':a20_0x58a97f(0x9e)};
1
+ function a20_0x9ea1(_0x1f3cca,_0x66cd2c){_0x1f3cca=_0x1f3cca-0x131;const _0x32f32f=a20_0x32f3();let _0x9ea111=_0x32f32f[_0x1f3cca];return _0x9ea111;}const a20_0x2376d2=a20_0x9ea1;function a20_0x32f3(){const _0x39fb2f=['21vBuSon','9917930WIrlfo','45ZMOBif','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','6HuOzac','name','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','1482187OemFsd','string','Resource\x20name\x20for\x20lookup','verbose','sqlcode','333698mAKHmm','261056xDXULG','number','20608560mdgBDa','865835IUrrBO','560606AGeElN','10mhlOeg','Resource\x20ID','Return\x20full\x20raw\x20response\x20object','code','28mIKajF'];a20_0x32f3=function(){return _0x39fb2f;};return a20_0x32f3();}(function(_0x33d028,_0x6919ff){const _0x2249d4=a20_0x9ea1,_0x5c0400=_0x33d028();while(!![]){try{const _0x29b478=parseInt(_0x2249d4(0x137))/0x1+-parseInt(_0x2249d4(0x132))/0x2*(-parseInt(_0x2249d4(0x13d))/0x3)+parseInt(_0x2249d4(0x13c))/0x4*(parseInt(_0x2249d4(0x136))/0x5)+parseInt(_0x2249d4(0x142))/0x6*(parseInt(_0x2249d4(0x145))/0x7)+parseInt(_0x2249d4(0x133))/0x8*(parseInt(_0x2249d4(0x13f))/0x9)+-parseInt(_0x2249d4(0x138))/0xa*(parseInt(_0x2249d4(0x13e))/0xb)+-parseInt(_0x2249d4(0x135))/0xc;if(_0x29b478===_0x6919ff)break;else _0x5c0400['push'](_0x5c0400['shift']());}catch(_0x577d2a){_0x5c0400['push'](_0x5c0400['shift']());}}}(a20_0x32f3,0xaa121));export const CODE_FLAG={'name':a20_0x2376d2(0x13b),'type':a20_0x2376d2(0x146),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const SQLCODE_FLAG={'name':a20_0x2376d2(0x131),'type':a20_0x2376d2(0x146),'required':!![],'description':a20_0x2376d2(0x141),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x2376d2(0x144)}};export const VERBOSE_FLAG={'name':a20_0x2376d2(0x148),'type':'boolean','description':a20_0x2376d2(0x13a)};export const PARAMS_FLAG={'name':'params','type':a20_0x2376d2(0x146),'description':a20_0x2376d2(0x140)};export const NAME_FLAG={'name':a20_0x2376d2(0x143),'type':a20_0x2376d2(0x146),'description':a20_0x2376d2(0x147)};export const ID_FLAG={'name':'id','type':a20_0x2376d2(0x134),'required':!![],'description':a20_0x2376d2(0x139)};
@@ -1 +1 @@
1
- function a21_0x4c1a(_0x5568b9,_0x5195d9){_0x5568b9=_0x5568b9-0x1eb;const _0x2952a6=a21_0x2952();let _0x4c1a43=_0x2952a6[_0x5568b9];return _0x4c1a43;}(function(_0x326a47,_0x27eb9b){const _0x4b4069=a21_0x4c1a,_0x1a500b=_0x326a47();while(!![]){try{const _0x593822=parseInt(_0x4b4069(0x1ef))/0x1*(-parseInt(_0x4b4069(0x1fb))/0x2)+-parseInt(_0x4b4069(0x1fa))/0x3*(parseInt(_0x4b4069(0x1ed))/0x4)+-parseInt(_0x4b4069(0x1f7))/0x5+-parseInt(_0x4b4069(0x1fc))/0x6*(-parseInt(_0x4b4069(0x1f8))/0x7)+-parseInt(_0x4b4069(0x1ff))/0x8*(-parseInt(_0x4b4069(0x1f2))/0x9)+parseInt(_0x4b4069(0x1fd))/0xa+-parseInt(_0x4b4069(0x1ee))/0xb*(-parseInt(_0x4b4069(0x1f1))/0xc);if(_0x593822===_0x27eb9b)break;else _0x1a500b['push'](_0x1a500b['shift']());}catch(_0x4a63f0){_0x1a500b['push'](_0x1a500b['shift']());}}}(a21_0x2952,0x77e0e));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;function a21_0x2952(){const _0x4084c2=['ceil','File\x20is\x20not\x20a\x20regular\x20file:\x20','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','\x20path\x20is\x20required.','4876560zXMslv','2410961xmJmRF','trim','342201TfJglF','1010hsnlPC','12axKdIy','303070EnftUm','size','176YOrtiV','\x20MB','validation','8wWZnyx','5467mEduZZ','577hVSjqA','toFixed','23928vUfWcq','112779lCTaoP'];a21_0x2952=function(){return _0x4084c2;};return a21_0x2952();}export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x3943a0){const _0xd3712a=a21_0x4c1a;if(_0x3943a0>=BYTES_PER_MB){const _0x5027a5=Math[_0xd3712a(0x1f3)](_0x3943a0/BYTES_PER_MB*0x64)/0x64;return _0x5027a5[_0xd3712a(0x1f0)](0x2)+_0xd3712a(0x1eb);}return _0x3943a0+'\x20B';}export function requireRuntimeUploadFile(_0x553fa1,_0x2c7ef7){const _0xf40bea=a21_0x4c1a,_0x6f52af=_0x553fa1[_0xf40bea(0x1f9)]();if(!_0x6f52af)throw CliErrors['validation'](_0x2c7ef7+_0xf40bea(0x1f6));if(!existsSync(_0x6f52af))throw CliErrors[_0xf40bea(0x1ec)]('File\x20not\x20found:\x20'+_0x6f52af);const _0x108f95=statSync(_0x6f52af);if(!_0x108f95['isFile']())throw CliErrors[_0xf40bea(0x1ec)](_0xf40bea(0x1f4)+_0x6f52af);if(_0x108f95[_0xf40bea(0x1fe)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0xf40bea(0x1ec)](_0xf40bea(0x1f5)+_0x6f52af+'\x20('+formatBytes(_0x108f95[_0xf40bea(0x1fe)])+')');return{'path':_0x6f52af,'size':_0x108f95[_0xf40bea(0x1fe)]};}
1
+ (function(_0x4c65ad,_0x3b2461){const _0x4f8f24=a21_0x1b82,_0x4d9c2b=_0x4c65ad();while(!![]){try{const _0x5e250c=-parseInt(_0x4f8f24(0xa7))/0x1+-parseInt(_0x4f8f24(0xab))/0x2+parseInt(_0x4f8f24(0xae))/0x3+parseInt(_0x4f8f24(0x9f))/0x4*(-parseInt(_0x4f8f24(0x9e))/0x5)+parseInt(_0x4f8f24(0xa6))/0x6+parseInt(_0x4f8f24(0xa1))/0x7+parseInt(_0x4f8f24(0xa0))/0x8*(parseInt(_0x4f8f24(0xa9))/0x9);if(_0x5e250c===_0x3b2461)break;else _0x4d9c2b['push'](_0x4d9c2b['shift']());}catch(_0x32e224){_0x4d9c2b['push'](_0x4d9c2b['shift']());}}}(a21_0xab32,0x61e59));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';function a21_0x1b82(_0x59e520,_0x48a82f){_0x59e520=_0x59e520-0x9e;const _0xab323d=a21_0xab32();let _0x1b828b=_0xab323d[_0x59e520];return _0x1b828b;}const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x287bb9){const _0x49048f=a21_0x1b82;if(_0x287bb9>=BYTES_PER_MB){const _0x177b3d=Math[_0x49048f(0xad)](_0x287bb9/BYTES_PER_MB*0x64)/0x64;return _0x177b3d['toFixed'](0x2)+'\x20MB';}return _0x287bb9+'\x20B';}export function requireRuntimeUploadFile(_0x81bdf3,_0xdb1146){const _0x1a50be=a21_0x1b82,_0x3d9dc4=_0x81bdf3[_0x1a50be(0xac)]();if(!_0x3d9dc4)throw CliErrors['validation'](_0xdb1146+_0x1a50be(0xa5));if(!existsSync(_0x3d9dc4))throw CliErrors[_0x1a50be(0xa2)](_0x1a50be(0xa8)+_0x3d9dc4);const _0x37bbf5=statSync(_0x3d9dc4);if(!_0x37bbf5['isFile']())throw CliErrors[_0x1a50be(0xa2)](_0x1a50be(0xa4)+_0x3d9dc4);if(_0x37bbf5[_0x1a50be(0xaa)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x1a50be(0xa2)](_0x1a50be(0xa3)+_0x3d9dc4+'\x20('+formatBytes(_0x37bbf5[_0x1a50be(0xaa)])+')');return{'path':_0x3d9dc4,'size':_0x37bbf5[_0x1a50be(0xaa)]};}function a21_0xab32(){const _0xf02bc8=['229590ioAPtC','File\x20not\x20found:\x20','4878yggYTI','size','1279772NJECqZ','trim','ceil','1553259dojIbE','3192675UZyQQL','4gxYAwH','9784BNtNCG','3158820FWgylT','validation','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','File\x20is\x20not\x20a\x20regular\x20file:\x20','\x20path\x20is\x20required.','1662702RIIIcz'];a21_0xab32=function(){return _0xf02bc8;};return a21_0xab32();}
@@ -1 +1 @@
1
- const a22_0x28a628=a22_0xd65f;(function(_0x7aa8c3,_0x4bca52){const _0x4d066c=a22_0xd65f,_0x580020=_0x7aa8c3();while(!![]){try{const _0x4b6d1a=-parseInt(_0x4d066c(0x19a))/0x1*(-parseInt(_0x4d066c(0x1a0))/0x2)+parseInt(_0x4d066c(0x199))/0x3+parseInt(_0x4d066c(0x176))/0x4+parseInt(_0x4d066c(0x18a))/0x5*(parseInt(_0x4d066c(0x173))/0x6)+-parseInt(_0x4d066c(0x19c))/0x7*(-parseInt(_0x4d066c(0x18b))/0x8)+parseInt(_0x4d066c(0x193))/0x9+-parseInt(_0x4d066c(0x1a5))/0xa;if(_0x4b6d1a===_0x4bca52)break;else _0x580020['push'](_0x580020['shift']());}catch(_0x1bf2c0){_0x580020['push'](_0x580020['shift']());}}}(a22_0x1dab,0xe3bcf));import{CliErrors}from'../../errors.js';function a22_0xd65f(_0x3b8741,_0x33082b){_0x3b8741=_0x3b8741-0x163;const _0x1dab6c=a22_0x1dab();let _0xd65f38=_0x1dab6c[_0x3b8741];return _0xd65f38;}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_0x1dab(){const _0x18dab3=['list',';\x20apps.<alias>.appcode','set','List\x20current\x20config','appcode','\x22\x20is\x20not\x20settable.','args','length','`\x20=\x20\x22','\x20config\x20delete\x20<key>\x20[--global]','write','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','\x20\x20project:\x20','trim','pageSize\x20must\x20be\x20a\x20positive\x20number','log','bool','stringify','205195pbuvoM','1144hJQDnS','boolean','keys','value','raw','\x20(global)','config','pageSize','7963866rtTofp','apps','Config\x20files:\x0a','validation','includes','isArray','3706857SvvQzl','1617143lWpUAH','field','6783ietvzz','split','\x20\x20global:\x20\x20','Settable\x20keys:\x20','2zBAxqS','object','project-or-global-explicit','(none)','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','37748180zeHqCj','Top-level\x20key\x20\x22','\x22.\x20Allowed:\x20','alias','key','Delete\x20a\x20config\x20value','global','Invalid\x20value\x20for\x20\x22','Write\x20to\x20global\x20config','Key\x20\x22','riskLevel','get','Set\x20`','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','Missing\x20key\x20or\x20value.','Deleted\x20`','Get\x20a\x20config\x20value','read','6NyWKGd','Missing\x20key\x20argument.','Key\x20not\x20found:\x20','3161564MkjVEv','Usage:\x20'];a22_0x1dab=function(){return _0x18dab3;};return a22_0x1dab();}const GLOBAL_FLAG={'name':a22_0x28a628(0x167),'type':a22_0x28a628(0x18c),'description':a22_0x28a628(0x169),'default':![]};function parseAliasAppcodeSetKey(_0x1efe40){const _0xce064c=a22_0x28a628,_0x42203f=_0x1efe40[_0xce064c(0x19d)]('.');if(_0x42203f[_0xce064c(0x17f)]!==0x3||_0x42203f[0x0]!==_0xce064c(0x194)||_0x42203f[0x2]!==_0xce064c(0x17c))return undefined;const _0x1ab8b5=_0x42203f[0x1]?.['trim']();return _0x1ab8b5?_0x1ab8b5:undefined;}function parseAliasDeleteKey(_0x38fc93){const _0x54affe=a22_0x28a628,_0x131f04=_0x38fc93['split']('.');if(_0x131f04[_0x54affe(0x17f)]===0x2&&_0x131f04[0x0]===_0x54affe(0x194)){const _0x5bff27=_0x131f04[0x1]?.[_0x54affe(0x185)]();return _0x5bff27?{'alias':_0x5bff27}:undefined;}if(_0x131f04[_0x54affe(0x17f)]===0x3&&_0x131f04[0x0]===_0x54affe(0x194)&&_0x131f04[0x2]===_0x54affe(0x17c)){const _0x2d44a0=_0x131f04[0x1]?.[_0x54affe(0x185)]();return _0x2d44a0?{'alias':_0x2d44a0,'field':'appcode'}:undefined;}return undefined;}function setLocalAppAlias(_0x22c55d,_0x4dbf61,_0x2d62dc){const _0x2daca1=a22_0x28a628,_0x37c5dc=_0x22c55d[_0x2daca1(0x194)]&&typeof _0x22c55d[_0x2daca1(0x194)]===_0x2daca1(0x1a1)&&!Array[_0x2daca1(0x198)](_0x22c55d['apps'])?_0x22c55d['apps']:{},_0x38a7ba=_0x37c5dc[_0x4dbf61]&&typeof _0x37c5dc[_0x4dbf61]===_0x2daca1(0x1a1)&&!Array['isArray'](_0x37c5dc[_0x4dbf61])?_0x37c5dc[_0x4dbf61]:{};_0x38a7ba[_0x2daca1(0x17c)]=_0x2d62dc,_0x37c5dc[_0x4dbf61]=_0x38a7ba,_0x22c55d[_0x2daca1(0x194)]=_0x37c5dc;}function deleteLocalAppAlias(_0x4cd2ba,_0x5b6f3d){const _0x2f7582=a22_0x28a628;if(!_0x4cd2ba['apps']||typeof _0x4cd2ba[_0x2f7582(0x194)]!==_0x2f7582(0x1a1)||Array[_0x2f7582(0x198)](_0x4cd2ba['apps']))return![];const _0x22729f=_0x4cd2ba['apps'],_0x3b102b=_0x22729f[_0x5b6f3d[_0x2f7582(0x164)]];if(!_0x3b102b||typeof _0x3b102b!=='object'||Array[_0x2f7582(0x198)](_0x3b102b))return![];if(!_0x5b6f3d['field'])return delete _0x22729f[_0x5b6f3d[_0x2f7582(0x164)]],!![];if(!(_0x5b6f3d['field']in _0x3b102b))return![];return delete _0x3b102b[_0x5b6f3d[_0x2f7582(0x19b)]],Object[_0x2f7582(0x18d)](_0x3b102b)[_0x2f7582(0x17f)]===0x0&&delete _0x22729f[_0x5b6f3d[_0x2f7582(0x164)]],!![];}const listDef={'service':'config','command':a22_0x28a628(0x178),'description':a22_0x28a628(0x17b),'risk':a22_0x28a628(0x172),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x299760){const _0x2d6b9b=a22_0x28a628,{buildConfigFromFlags:_0x248e4d}=await import('../../context.js'),_0x483503=_0x248e4d({}),_0x579906=getProjectConfigPath(),_0x38a1b5=resolveWriteConfigPath(_0x2d6b9b(0x167));if(_0x299760['format']==='pretty')return{'ok':!![],'message':_0x2d6b9b(0x16e)+(JSON[_0x2d6b9b(0x189)](_0x483503[_0x2d6b9b(0x18f)],null,0x2)+'\x0a\x0a')+_0x2d6b9b(0x195)+(_0x2d6b9b(0x184)+(_0x579906??_0x2d6b9b(0x1a3))+'\x0a')+(_0x2d6b9b(0x19e)+_0x38a1b5)};return{'ok':!![],'data':{'effective':_0x483503[_0x2d6b9b(0x18f)],'configFiles':{'project':_0x579906??null,'global':_0x38a1b5}}};}},getDef={'service':a22_0x28a628(0x191),'command':a22_0x28a628(0x16c),'description':a22_0x28a628(0x171),'risk':a22_0x28a628(0x172),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x28a628(0x165),'description':a22_0x28a628(0x1a4),'required':!![]}],'flags':[],async 'execute'(_0x457216){const _0x4198d7=a22_0x28a628,_0x52522e=_0x457216['args'][0x0];if(!_0x52522e)throw CliErrors['validation'](_0x4198d7(0x174),_0x4198d7(0x177)+CLI_BIN_NAME+'\x20config\x20get\x20<key>');const {buildConfigFromFlags:_0x14636e}=await import('../../context.js'),{raw:_0x412d86}=_0x14636e({});if(_0x52522e[_0x4198d7(0x197)]('.')){const _0x59594d=_0x52522e[_0x4198d7(0x19d)]('.');let _0x45a4db=_0x412d86;for(const _0xf706ca of _0x59594d){if(_0x45a4db==null||typeof _0x45a4db!==_0x4198d7(0x1a1))throw CliErrors[_0x4198d7(0x196)]('Key\x20not\x20found:\x20'+_0x52522e);_0x45a4db=_0x45a4db[_0xf706ca];}if(_0x45a4db===undefined)throw CliErrors[_0x4198d7(0x196)](_0x4198d7(0x175)+_0x52522e);return console[_0x4198d7(0x187)](typeof _0x45a4db===_0x4198d7(0x1a1)?JSON[_0x4198d7(0x189)](_0x45a4db,null,0x2):String(_0x45a4db)),{'ok':!![]};}const _0x12573d=_0x412d86[_0x52522e];if(_0x12573d===undefined)throw CliErrors[_0x4198d7(0x196)](_0x4198d7(0x175)+_0x52522e);return console[_0x4198d7(0x187)](typeof _0x12573d===_0x4198d7(0x1a1)?JSON['stringify'](_0x12573d,null,0x2):String(_0x12573d)),{'ok':!![]};}},setDef={'service':a22_0x28a628(0x191),'command':a22_0x28a628(0x17a),'description':'Set\x20a\x20config\x20value','risk':a22_0x28a628(0x182),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x28a628(0x165),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x28a628(0x18e),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x180b30){const _0x1992b6=a22_0x28a628,_0x5a0a69=_0x180b30['args'][0x0],_0x515e6a=_0x180b30[_0x1992b6(0x17e)][0x1];if(!_0x5a0a69||_0x515e6a===undefined)throw CliErrors[_0x1992b6(0x196)](_0x1992b6(0x16f),_0x1992b6(0x177)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x5a0a69]&&!ENUM_KEYS[_0x5a0a69][_0x1992b6(0x197)](_0x515e6a))throw CliErrors['validation'](_0x1992b6(0x168)+_0x5a0a69+_0x1992b6(0x163)+ENUM_KEYS[_0x5a0a69]['join'](',\x20'));if(_0x5a0a69===_0x1992b6(0x16b))throw CliErrors[_0x1992b6(0x196)](_0x1992b6(0x183));if(_0x5a0a69==='pageSize'){const _0x1a9058=Number(_0x515e6a);if(isNaN(_0x1a9058)||_0x1a9058<=0x0)throw CliErrors[_0x1992b6(0x196)](_0x1992b6(0x186));}const _0x4cebd8=resolveWriteScope({'explicitGlobal':_0x180b30[_0x1992b6(0x188)](_0x1992b6(0x167)),'policy':_0x1992b6(0x1a2)}),_0x2b2713=toScopeFlags(_0x4cebd8),_0x5b1e54=readScopedConfig(_0x2b2713),_0x1d3abe=parseAliasAppcodeSetKey(_0x5a0a69);if(!_0x1d3abe&&!isTopLevelConfigKey(_0x5a0a69))throw CliErrors[_0x1992b6(0x196)](_0x1992b6(0x1a6)+_0x5a0a69+_0x1992b6(0x17d),_0x1992b6(0x19f)+getTopLevelConfigKeySummary()+_0x1992b6(0x179));return _0x1d3abe?setLocalAppAlias(_0x5b1e54,_0x1d3abe,_0x515e6a):_0x5b1e54[_0x5a0a69]=_0x5a0a69===_0x1992b6(0x192)?Number(_0x515e6a):_0x515e6a,console[_0x1992b6(0x187)](_0x1992b6(0x16d)+_0x5a0a69+_0x1992b6(0x180)+_0x515e6a+'\x22'+(_0x4cebd8===_0x1992b6(0x167)?_0x1992b6(0x190):'')),writeScopedConfig(_0x5b1e54,_0x2b2713),{'ok':!![]};}},deleteDef={'service':'config','command':'delete','description':a22_0x28a628(0x166),'risk':a22_0x28a628(0x182),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x28a628(0x165),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x3f226f){const _0x38cefe=a22_0x28a628,_0x62f3ae=_0x3f226f[_0x38cefe(0x17e)][0x0];if(!_0x62f3ae)throw CliErrors[_0x38cefe(0x196)](_0x38cefe(0x174),_0x38cefe(0x177)+CLI_BIN_NAME+_0x38cefe(0x181));const _0x238733=resolveWriteScope({'explicitGlobal':_0x3f226f[_0x38cefe(0x188)]('global'),'policy':'project-or-global-explicit'}),_0x5571a3=toScopeFlags(_0x238733),_0x12470f=readScopedConfig(_0x5571a3),_0x3895d4=parseAliasDeleteKey(_0x62f3ae);if(_0x3895d4){if(!deleteLocalAppAlias(_0x12470f,_0x3895d4))throw CliErrors[_0x38cefe(0x196)](_0x38cefe(0x175)+_0x62f3ae);return console[_0x38cefe(0x187)](_0x38cefe(0x170)+_0x62f3ae+'`'+(_0x238733===_0x38cefe(0x167)?_0x38cefe(0x190):'')),writeScopedConfig(_0x12470f,_0x5571a3),{'ok':!![]};}if(_0x12470f[_0x62f3ae]===undefined)throw CliErrors[_0x38cefe(0x196)](_0x38cefe(0x16a)+_0x62f3ae+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0x12470f[_0x62f3ae],console[_0x38cefe(0x187)](_0x38cefe(0x170)+_0x62f3ae+'`'+(_0x238733==='global'?_0x38cefe(0x190):'')),writeScopedConfig(_0x12470f,_0x5571a3),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
1
+ const a22_0x3273df=a22_0x2487;function a22_0x2487(_0x34364d,_0x1fb5b7){_0x34364d=_0x34364d-0xe6;const _0x4bc651=a22_0x4bc6();let _0x248791=_0x4bc651[_0x34364d];return _0x248791;}(function(_0x1edced,_0x12b797){const _0x1d0dda=a22_0x2487,_0x3d1e89=_0x1edced();while(!![]){try{const _0xddd793=parseInt(_0x1d0dda(0x128))/0x1*(parseInt(_0x1d0dda(0xe9))/0x2)+parseInt(_0x1d0dda(0x129))/0x3*(parseInt(_0x1d0dda(0xfa))/0x4)+parseInt(_0x1d0dda(0x126))/0x5+-parseInt(_0x1d0dda(0x11d))/0x6+parseInt(_0x1d0dda(0xe8))/0x7*(parseInt(_0x1d0dda(0xec))/0x8)+-parseInt(_0x1d0dda(0x122))/0x9*(parseInt(_0x1d0dda(0x108))/0xa)+-parseInt(_0x1d0dda(0x10e))/0xb;if(_0xddd793===_0x12b797)break;else _0x3d1e89['push'](_0x3d1e89['shift']());}catch(_0x5e3b03){_0x3d1e89['push'](_0x3d1e89['shift']());}}}(a22_0x4bc6,0x25ba6));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a22_0x3273df(0xf7),'type':a22_0x3273df(0xf4),'description':'Write\x20to\x20global\x20config','default':![]};function a22_0x4bc6(){const _0x2581be=['Key\x20not\x20found:\x20','190cfcnyD','../../context.js','split','trim','write','key','988746nAAZVq','appcode','get','includes','join','log','read','config','pageSize\x20must\x20be\x20a\x20positive\x20number','\x20config\x20get\x20<key>','validation','project-or-global-explicit','object','alias','Set\x20`','1239510LSbCTr','keys','length','Config\x20files:\x0a','isArray','116829Ynqvrr','Set\x20a\x20config\x20value','List\x20current\x20config',';\x20apps.<alias>.appcode','1309250QkRLjp','list','351lBwyhT','3yxfmZC','\x20(global)','\x20\x20project:\x20','112EtDVYX','874zhfqtA','\x22\x20not\x20found\x20at\x20top\x20level.','\x20config\x20delete\x20<key>\x20[--global]','82304xKtQoA','set','field','raw','Settable\x20keys:\x20','pageSize','\x20config\x20set\x20<key>\x20<value>\x20[--global]','`\x20=\x20\x22','boolean','Deleted\x20`','format','global','args','Delete\x20a\x20config\x20value','471196hloXzq','stringify','Key\x20\x22','Missing\x20key\x20or\x20value.','delete','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Usage:\x20','bool','\x22.\x20Allowed:\x20','apps','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','Missing\x20key\x20argument.','(none)'];a22_0x4bc6=function(){return _0x2581be;};return a22_0x4bc6();}function parseAliasAppcodeSetKey(_0x1257cf){const _0x71ccfa=a22_0x3273df,_0x238f65=_0x1257cf[_0x71ccfa(0x10a)]('.');if(_0x238f65['length']!==0x3||_0x238f65[0x0]!==_0x71ccfa(0x103)||_0x238f65[0x2]!==_0x71ccfa(0x10f))return undefined;const _0x2f4e7c=_0x238f65[0x1]?.[_0x71ccfa(0x10b)]();return _0x2f4e7c?_0x2f4e7c:undefined;}function parseAliasDeleteKey(_0x505273){const _0x52d5e3=a22_0x3273df,_0x265a02=_0x505273[_0x52d5e3(0x10a)]('.');if(_0x265a02[_0x52d5e3(0x11f)]===0x2&&_0x265a02[0x0]===_0x52d5e3(0x103)){const _0x16969e=_0x265a02[0x1]?.[_0x52d5e3(0x10b)]();return _0x16969e?{'alias':_0x16969e}:undefined;}if(_0x265a02[_0x52d5e3(0x11f)]===0x3&&_0x265a02[0x0]===_0x52d5e3(0x103)&&_0x265a02[0x2]===_0x52d5e3(0x10f)){const _0xecf5f1=_0x265a02[0x1]?.[_0x52d5e3(0x10b)]();return _0xecf5f1?{'alias':_0xecf5f1,'field':_0x52d5e3(0x10f)}:undefined;}return undefined;}function setLocalAppAlias(_0xbcad6c,_0x278143,_0x2448a1){const _0x4f5883=a22_0x3273df,_0x4a4893=_0xbcad6c['apps']&&typeof _0xbcad6c['apps']==='object'&&!Array[_0x4f5883(0x121)](_0xbcad6c[_0x4f5883(0x103)])?_0xbcad6c[_0x4f5883(0x103)]:{},_0x43dcd9=_0x4a4893[_0x278143]&&typeof _0x4a4893[_0x278143]===_0x4f5883(0x11a)&&!Array[_0x4f5883(0x121)](_0x4a4893[_0x278143])?_0x4a4893[_0x278143]:{};_0x43dcd9[_0x4f5883(0x10f)]=_0x2448a1,_0x4a4893[_0x278143]=_0x43dcd9,_0xbcad6c[_0x4f5883(0x103)]=_0x4a4893;}function deleteLocalAppAlias(_0x248c06,_0x3e0376){const _0x453c02=a22_0x3273df;if(!_0x248c06[_0x453c02(0x103)]||typeof _0x248c06['apps']!=='object'||Array[_0x453c02(0x121)](_0x248c06[_0x453c02(0x103)]))return![];const _0x36ae43=_0x248c06[_0x453c02(0x103)],_0x226f21=_0x36ae43[_0x3e0376[_0x453c02(0x11b)]];if(!_0x226f21||typeof _0x226f21!==_0x453c02(0x11a)||Array[_0x453c02(0x121)](_0x226f21))return![];if(!_0x3e0376[_0x453c02(0xee)])return delete _0x36ae43[_0x3e0376['alias']],!![];if(!(_0x3e0376[_0x453c02(0xee)]in _0x226f21))return![];return delete _0x226f21[_0x3e0376[_0x453c02(0xee)]],Object[_0x453c02(0x11e)](_0x226f21)[_0x453c02(0x11f)]===0x0&&delete _0x36ae43[_0x3e0376['alias']],!![];}const listDef={'service':a22_0x3273df(0x115),'command':a22_0x3273df(0x127),'description':a22_0x3273df(0x124),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x5bf6f9){const _0x5ed87d=a22_0x3273df,{buildConfigFromFlags:_0xe9dda3}=await import(_0x5ed87d(0x109)),_0x1dcc93=_0xe9dda3({}),_0x1b1aa4=getProjectConfigPath(),_0x6862b3=resolveWriteConfigPath(_0x5ed87d(0xf7));if(_0x5bf6f9[_0x5ed87d(0xf6)]==='pretty')return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON[_0x5ed87d(0xfb)](_0x1dcc93[_0x5ed87d(0xef)],null,0x2)+'\x0a\x0a')+_0x5ed87d(0x120)+(_0x5ed87d(0xe7)+(_0x1b1aa4??_0x5ed87d(0x106))+'\x0a')+('\x20\x20global:\x20\x20'+_0x6862b3)};return{'ok':!![],'data':{'effective':_0x1dcc93[_0x5ed87d(0xef)],'configFiles':{'project':_0x1b1aa4??null,'global':_0x6862b3}}};}},getDef={'service':a22_0x3273df(0x115),'command':a22_0x3273df(0x110),'description':'Get\x20a\x20config\x20value','risk':a22_0x3273df(0x114),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x3273df(0x10d),'description':a22_0x3273df(0x104),'required':!![]}],'flags':[],async 'execute'(_0x1382a3){const _0x46fd04=a22_0x3273df,_0x2ffa2b=_0x1382a3['args'][0x0];if(!_0x2ffa2b)throw CliErrors[_0x46fd04(0x118)](_0x46fd04(0x105),'Usage:\x20'+CLI_BIN_NAME+_0x46fd04(0x117));const {buildConfigFromFlags:_0x30ea14}=await import(_0x46fd04(0x109)),{raw:_0x1d5e1e}=_0x30ea14({});if(_0x2ffa2b[_0x46fd04(0x111)]('.')){const _0x2afd0a=_0x2ffa2b['split']('.');let _0x47e6a9=_0x1d5e1e;for(const _0x2d87d2 of _0x2afd0a){if(_0x47e6a9==null||typeof _0x47e6a9!=='object')throw CliErrors['validation'](_0x46fd04(0x107)+_0x2ffa2b);_0x47e6a9=_0x47e6a9[_0x2d87d2];}if(_0x47e6a9===undefined)throw CliErrors[_0x46fd04(0x118)](_0x46fd04(0x107)+_0x2ffa2b);return console[_0x46fd04(0x113)](typeof _0x47e6a9===_0x46fd04(0x11a)?JSON[_0x46fd04(0xfb)](_0x47e6a9,null,0x2):String(_0x47e6a9)),{'ok':!![]};}const _0x572c0c=_0x1d5e1e[_0x2ffa2b];if(_0x572c0c===undefined)throw CliErrors[_0x46fd04(0x118)](_0x46fd04(0x107)+_0x2ffa2b);return console[_0x46fd04(0x113)](typeof _0x572c0c===_0x46fd04(0x11a)?JSON['stringify'](_0x572c0c,null,0x2):String(_0x572c0c)),{'ok':!![]};}},setDef={'service':a22_0x3273df(0x115),'command':a22_0x3273df(0xed),'description':a22_0x3273df(0x123),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x12253c){const _0xb70eeb=a22_0x3273df,_0x182bab=_0x12253c['args'][0x0],_0x2c40d6=_0x12253c[_0xb70eeb(0xf8)][0x1];if(!_0x182bab||_0x2c40d6===undefined)throw CliErrors['validation'](_0xb70eeb(0xfd),_0xb70eeb(0x100)+CLI_BIN_NAME+_0xb70eeb(0xf2));if(ENUM_KEYS[_0x182bab]&&!ENUM_KEYS[_0x182bab]['includes'](_0x2c40d6))throw CliErrors['validation']('Invalid\x20value\x20for\x20\x22'+_0x182bab+_0xb70eeb(0x102)+ENUM_KEYS[_0x182bab][_0xb70eeb(0x112)](',\x20'));if(_0x182bab==='riskLevel')throw CliErrors['validation'](_0xb70eeb(0xff));if(_0x182bab===_0xb70eeb(0xf1)){const _0xb4601a=Number(_0x2c40d6);if(isNaN(_0xb4601a)||_0xb4601a<=0x0)throw CliErrors[_0xb70eeb(0x118)](_0xb70eeb(0x116));}const _0x1bcde6=resolveWriteScope({'explicitGlobal':_0x12253c[_0xb70eeb(0x101)](_0xb70eeb(0xf7)),'policy':'project-or-global-explicit'}),_0x3f7ccc=toScopeFlags(_0x1bcde6),_0x3713a7=readScopedConfig(_0x3f7ccc),_0x1935d9=parseAliasAppcodeSetKey(_0x182bab);if(!_0x1935d9&&!isTopLevelConfigKey(_0x182bab))throw CliErrors[_0xb70eeb(0x118)]('Top-level\x20key\x20\x22'+_0x182bab+'\x22\x20is\x20not\x20settable.',_0xb70eeb(0xf0)+getTopLevelConfigKeySummary()+_0xb70eeb(0x125));return _0x1935d9?setLocalAppAlias(_0x3713a7,_0x1935d9,_0x2c40d6):_0x3713a7[_0x182bab]=_0x182bab==='pageSize'?Number(_0x2c40d6):_0x2c40d6,console['log'](_0xb70eeb(0x11c)+_0x182bab+_0xb70eeb(0xf3)+_0x2c40d6+'\x22'+(_0x1bcde6==='global'?'\x20(global)':'')),writeScopedConfig(_0x3713a7,_0x3f7ccc),{'ok':!![]};}},deleteDef={'service':a22_0x3273df(0x115),'command':a22_0x3273df(0xfe),'description':a22_0x3273df(0xf9),'risk':a22_0x3273df(0x10c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x3273df(0x10d),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x4c1368){const _0x368d23=a22_0x3273df,_0x5ee975=_0x4c1368[_0x368d23(0xf8)][0x0];if(!_0x5ee975)throw CliErrors[_0x368d23(0x118)](_0x368d23(0x105),'Usage:\x20'+CLI_BIN_NAME+_0x368d23(0xeb));const _0x303f2f=resolveWriteScope({'explicitGlobal':_0x4c1368[_0x368d23(0x101)]('global'),'policy':_0x368d23(0x119)}),_0x28694e=toScopeFlags(_0x303f2f),_0x395cc0=readScopedConfig(_0x28694e),_0x524377=parseAliasDeleteKey(_0x5ee975);if(_0x524377){if(!deleteLocalAppAlias(_0x395cc0,_0x524377))throw CliErrors[_0x368d23(0x118)](_0x368d23(0x107)+_0x5ee975);return console[_0x368d23(0x113)](_0x368d23(0xf5)+_0x5ee975+'`'+(_0x303f2f==='global'?_0x368d23(0xe6):'')),writeScopedConfig(_0x395cc0,_0x28694e),{'ok':!![]};}if(_0x395cc0[_0x5ee975]===undefined)throw CliErrors[_0x368d23(0x118)](_0x368d23(0xfc)+_0x5ee975+_0x368d23(0xea));return delete _0x395cc0[_0x5ee975],console[_0x368d23(0x113)](_0x368d23(0xf5)+_0x5ee975+'`'+(_0x303f2f===_0x368d23(0xf7)?_0x368d23(0xe6):'')),writeScopedConfig(_0x395cc0,_0x28694e),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- function a23_0x30da(_0x991a70,_0x249256){_0x991a70=_0x991a70-0x173;var _0x53a0af=a23_0x53a0();var _0x30daa4=_0x53a0af[_0x991a70];return _0x30daa4;}(function(_0x5991fa,_0x755c2d){var _0x5254db=a23_0x30da,_0x49a979=_0x5991fa();while(!![]){try{var _0x2b978c=-parseInt(_0x5254db(0x177))/0x1+-parseInt(_0x5254db(0x175))/0x2+parseInt(_0x5254db(0x179))/0x3+parseInt(_0x5254db(0x17c))/0x4*(parseInt(_0x5254db(0x17b))/0x5)+-parseInt(_0x5254db(0x174))/0x6*(parseInt(_0x5254db(0x176))/0x7)+-parseInt(_0x5254db(0x173))/0x8+parseInt(_0x5254db(0x178))/0x9*(parseInt(_0x5254db(0x17a))/0xa);if(_0x2b978c===_0x755c2d)break;else _0x49a979['push'](_0x49a979['shift']());}catch(_0x3da7a3){_0x49a979['push'](_0x49a979['shift']());}}}(a23_0x53a0,0xc3ea1));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';function a23_0x53a0(){var _0x2acbd6=['488490IEjrCc','10820uLeUHi','2570eiWvbT','7156FPOmYM','2523352hWZPKD','5922OZIemW','2183348lNftlk','2555WuhbAt','556461mAfMOz','17001ZNbdLl'];a23_0x53a0=function(){return _0x2acbd6;};return a23_0x53a0();}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(_0x285a67,_0x17675d){var _0x4613f2=a23_0x49e7,_0x11cfe6=_0x285a67();while(!![]){try{var _0x42bfe3=parseInt(_0x4613f2(0x139))/0x1+-parseInt(_0x4613f2(0x13e))/0x2+parseInt(_0x4613f2(0x13d))/0x3*(-parseInt(_0x4613f2(0x138))/0x4)+-parseInt(_0x4613f2(0x13b))/0x5+-parseInt(_0x4613f2(0x13f))/0x6+parseInt(_0x4613f2(0x140))/0x7+parseInt(_0x4613f2(0x13c))/0x8*(parseInt(_0x4613f2(0x13a))/0x9);if(_0x42bfe3===_0x17675d)break;else _0x11cfe6['push'](_0x11cfe6['shift']());}catch(_0x3a0d57){_0x11cfe6['push'](_0x11cfe6['shift']());}}}(a23_0x30f0,0x76801));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};function a23_0x49e7(_0x12042e,_0x2b9b0a){_0x12042e=_0x12042e-0x138;var _0x30f0ea=a23_0x30f0();var _0x49e7ad=_0x30f0ea[_0x12042e];return _0x49e7ad;}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';function a23_0x30f0(){var _0x352a10=['4394045Wchkxm','33312MJADLI','9zEuzFw','1002942ThfaZk','5156394CSqXIP','3722425rHyZQx','817260KFNOkg','811670Uftoua','4311EjypiU'];a23_0x30f0=function(){return _0x352a10;};return a23_0x30f0();}
@@ -1 +1 @@
1
- const a24_0x45dfc9=a24_0x4dcc;(function(_0x355cab,_0x29b681){const _0x29539c=a24_0x4dcc,_0x3d313d=_0x355cab();while(!![]){try{const _0x2937cb=parseInt(_0x29539c(0x86))/0x1*(-parseInt(_0x29539c(0x8a))/0x2)+-parseInt(_0x29539c(0x74))/0x3+-parseInt(_0x29539c(0x65))/0x4*(parseInt(_0x29539c(0x9f))/0x5)+parseInt(_0x29539c(0xb7))/0x6+-parseInt(_0x29539c(0x71))/0x7+-parseInt(_0x29539c(0x97))/0x8*(-parseInt(_0x29539c(0x9b))/0x9)+parseInt(_0x29539c(0x6a))/0xa;if(_0x2937cb===_0x29b681)break;else _0x3d313d['push'](_0x3d313d['shift']());}catch(_0x36bfcd){_0x3d313d['push'](_0x3d313d['shift']());}}}(a24_0x2d8e,0x70cec));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';function a24_0x4dcc(_0x1a0e20,_0x1c88ee){_0x1a0e20=_0x1a0e20-0x65;const _0x2d8e55=a24_0x2d8e();let _0x4dcc18=_0x2d8e55[_0x1a0e20];return _0x4dcc18;}import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';function a24_0x2d8e(){const _0x2d9611=['\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]','description','2775VBRNww','\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}}','Preview:\x20data\x20','write','\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\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}','batchCreate','\x20on\x20dataset\x20','high-risk-write','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20completed\x20in\x20','update','code','paramsHint','\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\x20AGGREGATE\x20TYPES','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\x20\x20WHERE\x20OPERATORS','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','data\x20','\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}}','1088106JnQkGu','Filter\x20dataset\x20records\x20with\x20query\x20conditions','command','6036hrPSgM','operation','read','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','16492940XkSKnK','\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}','build','\x20\x20PARAMS\x20STRUCTURE','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20\x20\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}','filter','3000235TTVtlU','\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]}}','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','2078580BAwtBz','length','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','\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}}','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','params','Update\x20an\x20existing\x20record','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','data','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\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','now','risk','getOne','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\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]','1qtEzRy','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','batch','452224zGawop','\x20\x20PAGINATION','\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}','map','/api/{appCode}/','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\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}}]}','dryRun','POST','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\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\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}}','aggregate','6531896oGRKIR','body','delete','str','9MWpDsa','create'];a24_0x2d8e=function(){return _0x2d9611;};return a24_0x2d8e();}const specs=[{'command':a24_0x45dfc9(0x70),'operation':a24_0x45dfc9(0x70),'risk':a24_0x45dfc9(0x67),'paramsRequired':![],'description':a24_0x45dfc9(0xb8),'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+'Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':[a24_0x45dfc9(0xb2),a24_0x45dfc9(0x6e),'\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}',a24_0x45dfc9(0xa8),'\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}',a24_0x45dfc9(0x79),a24_0x45dfc9(0xb6),a24_0x45dfc9(0x72),a24_0x45dfc9(0xaf),a24_0x45dfc9(0x95),a24_0x45dfc9(0xa0),'',a24_0x45dfc9(0xa9),a24_0x45dfc9(0x90),a24_0x45dfc9(0xa3),'',a24_0x45dfc9(0x69),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)',a24_0x45dfc9(0x85),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]',a24_0x45dfc9(0x8f),a24_0x45dfc9(0x93),'',a24_0x45dfc9(0x8b),a24_0x45dfc9(0x84),a24_0x45dfc9(0x77),a24_0x45dfc9(0x76)]['join']('\x0a')},{'command':'getOne','operation':a24_0x45dfc9(0x83),'risk':a24_0x45dfc9(0x67),'paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a24_0x45dfc9(0x88)},{'command':a24_0x45dfc9(0x9c),'operation':'create','risk':a24_0x45dfc9(0xa2),'paramsRequired':!![],'description':a24_0x45dfc9(0xb1),'paramsHint':a24_0x45dfc9(0x87)},{'command':a24_0x45dfc9(0xa5),'operation':'batchCreate','risk':'write','paramsRequired':!![],'description':a24_0x45dfc9(0x73),'paramsHint':a24_0x45dfc9(0xb3)},{'command':a24_0x45dfc9(0xac),'operation':a24_0x45dfc9(0xac),'risk':a24_0x45dfc9(0xa2),'paramsRequired':!![],'description':a24_0x45dfc9(0x7c),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20'+'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_0x45dfc9(0x99),'operation':a24_0x45dfc9(0x99),'risk':a24_0x45dfc9(0xa7),'paramsRequired':!![],'description':a24_0x45dfc9(0x68),'paramsHint':a24_0x45dfc9(0x88)},{'command':a24_0x45dfc9(0x96),'operation':a24_0x45dfc9(0x96),'risk':a24_0x45dfc9(0x67),'paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':a24_0x45dfc9(0x7a)+a24_0x45dfc9(0x7f),'helpExtra':[a24_0x45dfc9(0xb0),'\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}',a24_0x45dfc9(0xb4),a24_0x45dfc9(0x6f),a24_0x45dfc9(0x94),a24_0x45dfc9(0x6b),a24_0x45dfc9(0xa4),a24_0x45dfc9(0x8c),'',a24_0x45dfc9(0x6d),a24_0x45dfc9(0x9d),a24_0x45dfc9(0xaa),a24_0x45dfc9(0x80),'\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\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\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','','\x20\x20EXAMPLES','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter',a24_0x45dfc9(0x78),'',a24_0x45dfc9(0x7d)]['join']('\x0a')}];function makeDataCommand(_0x473673){const _0x27e6e1=a24_0x45dfc9,_0x35e1df=_0x27e6e1(0xb5)+_0x473673['command'],_0x4b588a={'service':_0x27e6e1(0x7e),'command':_0x473673[_0x27e6e1(0xb9)],'description':_0x473673[_0x27e6e1(0x9e)],'risk':_0x473673[_0x27e6e1(0x82)],'helpExtra':_0x473673['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x473673[_0x27e6e1(0xae)]}],'validate':async _0x5caa69=>{const _0x345bd=_0x27e6e1;_0x473673['paramsRequired']&&requireAnyOf(_0x5caa69,[_0x345bd(0x7b)],_0x35e1df),_0x473673['operation']===_0x345bd(0xa5)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5caa69[_0x345bd(0x9a)]('params'))),_0x473673[_0x345bd(0x66)]===_0x345bd(0xac)&&parseUpdateIdsFromParams(parseJsonParams(_0x5caa69['str'](_0x345bd(0x7b)))??{});},async 'execute'(_0x3537d9){const _0x740152=_0x27e6e1,_0x3700f6=_0x3537d9[_0x740152(0x9a)](_0x740152(0xad)),_0x47508f=_0x473673[_0x740152(0x66)]===_0x740152(0xa5)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3537d9['str'](_0x740152(0x7b)))):parseJsonParams(_0x3537d9[_0x740152(0x9a)](_0x740152(0x7b)))??{},_0x35b855=_0x473673['operation']===_0x740152(0xac)?parseUpdateIdsFromParams(_0x47508f):undefined,_0x59e6de=_0x35b855?normalizeUpdateParamsForRuntime(_0x47508f,_0x35b855):_0x47508f,_0x245f5c=Date[_0x740152(0x81)](),_0x47c756=await executeData(_0x3700f6,_0x473673[_0x740152(0x66)],_0x59e6de),_0xd12527=Date[_0x740152(0x81)]()-_0x245f5c,_0x478f18=_0x35b855&&_0x35b855[_0x740152(0x75)]>0x1?buildBatchUpdateResult(_0x35b855,_0x47c756):_0x47c756;return{'ok':!![],'data':{'result':_0x478f18,'elapsed':_0xd12527},'message':_0x740152(0xb5)+_0x473673['command']+_0x740152(0xab)+_0xd12527+'ms'};}};return _0x473673['risk']!==_0x27e6e1(0x67)&&(_0x4b588a[_0x27e6e1(0x91)]=async _0x35a8db=>{const _0x267878=_0x27e6e1,_0x229a72=_0x35a8db['str']('code'),_0x188dfc=_0x473673[_0x267878(0x66)]===_0x267878(0xa5)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x35a8db[_0x267878(0x9a)](_0x267878(0x7b)))):parseJsonParams(_0x35a8db[_0x267878(0x9a)]('params'))??{};let _0x5364c2=_0x188dfc;if(_0x473673[_0x267878(0x66)]===_0x267878(0xac)){const _0x5cd181=parseUpdateIdsFromParams(_0x188dfc);_0x5364c2=normalizeUpdateParamsForRuntime(_0x188dfc,_0x5cd181);}return dryRun(_0x267878(0x92),_0x267878(0x8e)+_0x229a72+'/'+_0x473673[_0x267878(0x66)])[_0x267878(0x98)](_0x5364c2)['description'](_0x267878(0xa1)+_0x473673[_0x267878(0xb9)]+_0x267878(0xa6)+_0x229a72)[_0x267878(0x6c)]();}),_0x4b588a;}export const dataDefinitions=specs[a24_0x45dfc9(0x8d)](makeDataCommand);function buildBatchUpdateResult(_0x8e7d5d,_0x12ca55){const _0x127f06=a24_0x45dfc9;return{'operation':'update','mode':_0x127f06(0x89),'ids':_0x8e7d5d,'total':_0x8e7d5d['length'],'result':_0x12ca55};}
1
+ const a24_0x5af855=a24_0x3631;function a24_0x3631(_0x5eddd0,_0x19ed4){_0x5eddd0=_0x5eddd0-0x151;const _0x3818eb=a24_0x3818();let _0x36310a=_0x3818eb[_0x5eddd0];return _0x36310a;}(function(_0x54b832,_0xbba4e5){const _0x5da77b=a24_0x3631,_0x5606e0=_0x54b832();while(!![]){try{const _0xb29791=parseInt(_0x5da77b(0x19d))/0x1+-parseInt(_0x5da77b(0x16f))/0x2+parseInt(_0x5da77b(0x18e))/0x3+parseInt(_0x5da77b(0x17f))/0x4*(parseInt(_0x5da77b(0x162))/0x5)+-parseInt(_0x5da77b(0x189))/0x6*(parseInt(_0x5da77b(0x15e))/0x7)+-parseInt(_0x5da77b(0x195))/0x8+parseInt(_0x5da77b(0x159))/0x9*(parseInt(_0x5da77b(0x16d))/0xa);if(_0xb29791===_0xbba4e5)break;else _0x5606e0['push'](_0x5606e0['shift']());}catch(_0x26bb33){_0x5606e0['push'](_0x5606e0['shift']());}}}(a24_0x3818,0x6c01b));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';function a24_0x3818(){const _0x3b00ee=['now','command','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20PAGINATION','build','create','1570732lepDEu','\x20\x20AGGREGATE\x20TYPES','/api/{appCode}/','\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}','length','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','dryRun','paramsRequired','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','76350SlmtNh','getOne','paramsHint','\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}}','join','1276386nGwyAQ','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\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}','description','filter','body','6392944rXVgqZ','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','\x20\x20\x20\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\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','read','\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\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\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','116946qihufE','Get\x20a\x20single\x20record\x20by\x20ID','delete','map','data','code','\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}','str','\x20\x20EXAMPLES','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','params','\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}}','batch','data\x20','\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}}','POST','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','aggregate','\x20on\x20dataset\x20','\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\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','264276CVsQVp','\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}}','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20completed\x20in\x20','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','14GRqwRc','\x20\x20PARAMS\x20STRUCTURE','batchCreate','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','10mIXSCA','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','operation','\x20\x20WHERE\x20OPERATORS','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','update','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','write','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','90aPZTee','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','650174rjiUEU','\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\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','helpExtra','\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]}}','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\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}}','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20'];a24_0x3818=function(){return _0x3b00ee;};return a24_0x3818();}import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x5af855(0x193),'operation':a24_0x5af855(0x193),'risk':a24_0x5af855(0x199),'paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a24_0x5af855(0x188)+a24_0x5af855(0x161),'helpExtra':[a24_0x5af855(0x165),a24_0x5af855(0x18c),a24_0x5af855(0x15d),a24_0x5af855(0x152),a24_0x5af855(0x157),a24_0x5af855(0x15a),a24_0x5af855(0x176),a24_0x5af855(0x174),a24_0x5af855(0x170),a24_0x5af855(0x1a8),a24_0x5af855(0x17a),'','\x20\x20LOGICAL\x20COMBINATORS',a24_0x5af855(0x196),'\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_0x5af855(0x172),a24_0x5af855(0x198),a24_0x5af855(0x19b),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a24_0x5af855(0x169),'',a24_0x5af855(0x17c),'\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.',a24_0x5af855(0x171),'\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)'][a24_0x5af855(0x18d)]('\x0a')},{'command':'getOne','operation':a24_0x5af855(0x18a),'risk':'read','paramsRequired':!![],'description':a24_0x5af855(0x19e),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a24_0x5af855(0x17e),'operation':a24_0x5af855(0x17e),'risk':a24_0x5af855(0x16a),'paramsRequired':!![],'description':a24_0x5af855(0x184),'paramsHint':a24_0x5af855(0x18f)},{'command':a24_0x5af855(0x160),'operation':a24_0x5af855(0x160),'risk':'write','paramsRequired':!![],'description':a24_0x5af855(0x1a6),'paramsHint':a24_0x5af855(0x16c)},{'command':a24_0x5af855(0x167),'operation':a24_0x5af855(0x167),'risk':a24_0x5af855(0x16a),'paramsRequired':!![],'description':'Update\x20an\x20existing\x20record','paramsHint':a24_0x5af855(0x177)+a24_0x5af855(0x168)},{'command':a24_0x5af855(0x19f),'operation':'delete','risk':'high-risk-write','paramsRequired':!![],'description':a24_0x5af855(0x175),'paramsHint':a24_0x5af855(0x16b)},{'command':a24_0x5af855(0x155),'operation':a24_0x5af855(0x155),'risk':a24_0x5af855(0x199),'paramsRequired':![],'description':a24_0x5af855(0x187),'paramsHint':a24_0x5af855(0x163)+a24_0x5af855(0x15b),'helpExtra':[a24_0x5af855(0x180),a24_0x5af855(0x197),a24_0x5af855(0x191),a24_0x5af855(0x182),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}',a24_0x5af855(0x1a3),'\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','',a24_0x5af855(0x15f),a24_0x5af855(0x190),a24_0x5af855(0x16e),a24_0x5af855(0x158),a24_0x5af855(0x19a),'\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}}]',a24_0x5af855(0x19c),'',a24_0x5af855(0x1a5),a24_0x5af855(0x17b),a24_0x5af855(0x166),'',a24_0x5af855(0x154),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'][a24_0x5af855(0x18d)]('\x0a')}];function makeDataCommand(_0x4611a7){const _0x1c1fc9=a24_0x5af855,_0x25b67c=_0x1c1fc9(0x151)+_0x4611a7[_0x1c1fc9(0x179)],_0x394b80={'service':_0x1c1fc9(0x1a1),'command':_0x4611a7['command'],'description':_0x4611a7[_0x1c1fc9(0x192)],'risk':_0x4611a7['risk'],'helpExtra':_0x4611a7[_0x1c1fc9(0x173)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x4611a7[_0x1c1fc9(0x18b)]}],'validate':async _0x71e3b6=>{const _0x121634=_0x1c1fc9;_0x4611a7[_0x121634(0x186)]&&requireAnyOf(_0x71e3b6,[_0x121634(0x1a7)],_0x25b67c),_0x4611a7['operation']==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x71e3b6[_0x121634(0x1a4)](_0x121634(0x1a7)))),_0x4611a7[_0x121634(0x164)]===_0x121634(0x167)&&parseUpdateIdsFromParams(parseJsonParams(_0x71e3b6[_0x121634(0x1a4)](_0x121634(0x1a7)))??{});},async 'execute'(_0x2c8d4f){const _0x189966=_0x1c1fc9,_0x233086=_0x2c8d4f[_0x189966(0x1a4)](_0x189966(0x1a2)),_0x1f34b0=_0x4611a7[_0x189966(0x164)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2c8d4f['str'](_0x189966(0x1a7)))):parseJsonParams(_0x2c8d4f[_0x189966(0x1a4)](_0x189966(0x1a7)))??{},_0x574ea4=_0x4611a7[_0x189966(0x164)]===_0x189966(0x167)?parseUpdateIdsFromParams(_0x1f34b0):undefined,_0x27a1b0=_0x574ea4?normalizeUpdateParamsForRuntime(_0x1f34b0,_0x574ea4):_0x1f34b0,_0x2e02d3=Date[_0x189966(0x178)](),_0xbf1417=await executeData(_0x233086,_0x4611a7[_0x189966(0x164)],_0x27a1b0),_0x4b5061=Date[_0x189966(0x178)]()-_0x2e02d3,_0x27f922=_0x574ea4&&_0x574ea4[_0x189966(0x183)]>0x1?buildBatchUpdateResult(_0x574ea4,_0xbf1417):_0xbf1417;return{'ok':!![],'data':{'result':_0x27f922,'elapsed':_0x4b5061},'message':'data\x20'+_0x4611a7[_0x189966(0x179)]+_0x189966(0x15c)+_0x4b5061+'ms'};}};return _0x4611a7['risk']!=='read'&&(_0x394b80[_0x1c1fc9(0x185)]=async _0x21740a=>{const _0x4338d8=_0x1c1fc9,_0x2c8423=_0x21740a['str'](_0x4338d8(0x1a2)),_0x1ff976=_0x4611a7[_0x4338d8(0x164)]===_0x4338d8(0x160)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x21740a[_0x4338d8(0x1a4)]('params'))):parseJsonParams(_0x21740a['str'](_0x4338d8(0x1a7)))??{};let _0x5d87d2=_0x1ff976;if(_0x4611a7[_0x4338d8(0x164)]===_0x4338d8(0x167)){const _0x5e295d=parseUpdateIdsFromParams(_0x1ff976);_0x5d87d2=normalizeUpdateParamsForRuntime(_0x1ff976,_0x5e295d);}return dryRun(_0x4338d8(0x153),_0x4338d8(0x181)+_0x2c8423+'/'+_0x4611a7[_0x4338d8(0x164)])[_0x4338d8(0x194)](_0x5d87d2)[_0x4338d8(0x192)]('Preview:\x20data\x20'+_0x4611a7[_0x4338d8(0x179)]+_0x4338d8(0x156)+_0x2c8423)[_0x4338d8(0x17d)]();}),_0x394b80;}export const dataDefinitions=specs[a24_0x5af855(0x1a0)](makeDataCommand);function buildBatchUpdateResult(_0x3650be,_0x1be90c){const _0xb6d737=a24_0x5af855;return{'operation':_0xb6d737(0x167),'mode':_0xb6d737(0x1a9),'ids':_0x3650be,'total':_0x3650be[_0xb6d737(0x183)],'result':_0x1be90c};}
@@ -1 +1 @@
1
- const a25_0x2a222c=a25_0x4031;function a25_0x4031(_0x25286f,_0x198381){_0x25286f=_0x25286f-0x18e;const _0x13ff40=a25_0x13ff();let _0x40317d=_0x13ff40[_0x25286f];return _0x40317d;}(function(_0x5c861d,_0x2bed1d){const _0x10f159=a25_0x4031,_0x2c677c=_0x5c861d();while(!![]){try{const _0x6b377f=-parseInt(_0x10f159(0x1a9))/0x1*(-parseInt(_0x10f159(0x19e))/0x2)+parseInt(_0x10f159(0x1aa))/0x3+parseInt(_0x10f159(0x1a3))/0x4+-parseInt(_0x10f159(0x1ab))/0x5*(parseInt(_0x10f159(0x190))/0x6)+-parseInt(_0x10f159(0x19c))/0x7+-parseInt(_0x10f159(0x19b))/0x8*(-parseInt(_0x10f159(0x1cb))/0x9)+-parseInt(_0x10f159(0x193))/0xa*(-parseInt(_0x10f159(0x1a1))/0xb);if(_0x6b377f===_0x2bed1d)break;else _0x2c677c['push'](_0x2c677c['shift']());}catch(_0x656a90){_0x2c677c['push'](_0x2c677c['shift']());}}}(a25_0x13ff,0xacbd8));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a25_0x13ff(){const _0x558960=['object','modelId','required','55712ExHrGo','7239407BbxERs','pkField','20bUxpMF','formatRules','requestFields','11eifPxj','code','5030184fxWoRk','description','tableComment','allFieldNames','beforeScriptId','allFields','1291UOxtzv','961137DCMaIk','5ahOWpS','requestBody','dbtableConfig','modelCode','modifierIdField','doVersion','datasetKey','name','dataType','responseBody','method','map','dataset','updateTimeField','operations','dbName','columnCodeListWithDeleted','deleted','isArray','options','type','appCode','tableName','dblinkInfoDTO','doType','string','modifierNameField','filter','sourceType','relations','str','labelField','711OOmxQl','trim','afterScriptId','createTimeField','source','extend','host','length','dbId','4725978AZhctY','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','fields','3884170gjGMce','properties','indexes','responseFields','parse'];a25_0x13ff=function(){return _0x558960;};return a25_0x13ff();}import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x4c14bb){const _0x31d1a3=a25_0x4031;if(_0x4c14bb['deleted'])return null;const _0x25dc74=Boolean(_0x4c14bb['displayName']!==undefined||_0x4c14bb[_0x31d1a3(0x1c3)]!==undefined);let _0x5b72f5={};if(!_0x25dc74&&typeof _0x4c14bb[_0x31d1a3(0x1d0)]==='string')try{_0x5b72f5=JSON[_0x31d1a3(0x197)](_0x4c14bb[_0x31d1a3(0x1d0)]);}catch{}const _0x241ef9=_0x25dc74?_0x4c14bb[_0x31d1a3(0x1b2)]:_0x4c14bb[_0x31d1a3(0x1a2)],_0x220527=_0x25dc74?_0x4c14bb['displayName']:_0x4c14bb[_0x31d1a3(0x1b2)],_0x5bfd3b=_0x25dc74?_0x4c14bb[_0x31d1a3(0x1c3)]:_0x4c14bb[_0x31d1a3(0x1bf)]||_0x4c14bb[_0x31d1a3(0x1b3)],_0x68d6a6=_0x25dc74?_0x4c14bb[_0x31d1a3(0x19d)]===!![]:_0x5b72f5[_0x31d1a3(0x19d)]===!![],_0x22ba5c=_0x25dc74?_0x4c14bb[_0x31d1a3(0x19a)]===!![]:_0x5b72f5['required']===!![],_0x4263df=_0x25dc74?_0x4c14bb['options']??null:_0x5b72f5[_0x31d1a3(0x1be)]??null,_0x21d981={'name':_0x241ef9,'displayName':_0x220527||_0x241ef9,'type':_0x5bfd3b,'dbType':_0x4c14bb['dbType'],'pk':_0x68d6a6,'required':_0x22ba5c,'description':_0x4c14bb[_0x31d1a3(0x1a4)]||undefined};return Array[_0x31d1a3(0x1bd)](_0x4263df)&&_0x4263df['length']>0x0&&(_0x21d981[_0x31d1a3(0x1be)]=_0x4263df),_0x21d981;}function parseJsonMaybe(_0x3f0755){const _0x270fcf=a25_0x4031;if(typeof _0x3f0755!==_0x270fcf(0x1c4))return _0x3f0755;try{return JSON[_0x270fcf(0x197)](_0x3f0755);}catch{return _0x3f0755;}}function normalizeOperationEntry(_0x79c297,_0x562afa){const _0x111608=a25_0x4031;if(!_0x562afa||typeof _0x562afa!==_0x111608(0x198))return null;if(!_0x562afa[_0x111608(0x1b5)]||!_0x562afa['path'])return null;const _0x149c2b={'name':_0x79c297,'method':_0x562afa['method'],'path':_0x562afa['path']};if(_0x562afa[_0x111608(0x1d1)])_0x149c2b[_0x111608(0x1d1)]=_0x562afa[_0x111608(0x1d1)];if(_0x562afa['requestBody']!=null)_0x149c2b[_0x111608(0x1ac)]=parseJsonMaybe(_0x562afa[_0x111608(0x1ac)]);if(_0x562afa['responseBody']!=null)_0x149c2b['responseBody']=parseJsonMaybe(_0x562afa[_0x111608(0x1b4)]);if(_0x562afa['beforeScriptId']!=null)_0x149c2b[_0x111608(0x1a7)]=_0x562afa[_0x111608(0x1a7)];if(_0x562afa[_0x111608(0x1cd)]!=null)_0x149c2b[_0x111608(0x1cd)]=_0x562afa['afterScriptId'];if(Array[_0x111608(0x1bd)](_0x562afa[_0x111608(0x1a0)]))_0x149c2b[_0x111608(0x1a0)]=_0x562afa[_0x111608(0x1a0)];if(Array[_0x111608(0x1bd)](_0x562afa['responseFields']))_0x149c2b['responseFields']=_0x562afa[_0x111608(0x196)];return _0x149c2b;}function summarizeDbtable(_0x50bdbd){const _0x2d5183=a25_0x4031,_0x4f28a5={},_0x39d24a=[_0x2d5183(0x18f),_0x2d5183(0x1ba),_0x2d5183(0x1c1),_0x2d5183(0x1b1),'pkField',_0x2d5183(0x1a8),'logicField',_0x2d5183(0x1ce),_0x2d5183(0x1b8),'creatorIdField','creatorNameField',_0x2d5183(0x1af),_0x2d5183(0x1c5),_0x2d5183(0x1ca),_0x2d5183(0x1c2)];for(const _0x207ed1 of _0x39d24a){if(_0x50bdbd[_0x207ed1]!==undefined)_0x4f28a5[_0x207ed1]=_0x50bdbd[_0x207ed1];}return typeof _0x4f28a5[_0x2d5183(0x1a8)]==='string'&&_0x4f28a5[_0x2d5183(0x1a8)][_0x2d5183(0x18e)]>0x0&&(_0x4f28a5[_0x2d5183(0x1a6)]=_0x4f28a5[_0x2d5183(0x1a8)]['split'](',')['map'](_0x3ba870=>_0x3ba870[_0x2d5183(0x1cc)]())[_0x2d5183(0x1c6)](Boolean)),_0x4f28a5;}function normalizeRelatedPages(_0x5a29a8){const _0x58d04c=a25_0x4031;if(!Array[_0x58d04c(0x1bd)](_0x5a29a8))return[];return _0x5a29a8['filter'](_0x2b9780=>_0x2b9780&&typeof _0x2b9780===_0x58d04c(0x198))[_0x58d04c(0x1b6)](_0xe00be5=>({'id':_0xe00be5['id'],'type':_0xe00be5[_0x58d04c(0x1bf)],'code':_0xe00be5['code'],'title':_0xe00be5['title'],'deleted':_0xe00be5[_0x58d04c(0x1bc)]===!![]}));}function normalizeFallbackFieldName(_0x26c7a2,_0x50129a){const _0x45b2b6=a25_0x4031,_0x4211f1=_0x26c7a2[_0x45b2b6(0x1cc)]();if(!_0x4211f1)return null;return{'name':_0x4211f1,'displayName':_0x4211f1,'type':undefined,'dbType':undefined,'pk':_0x4211f1===_0x50129a,'required':![],'description':undefined};}async function loadListFieldFallback(_0x47f904,_0x9e36d6){const _0x43e883=a25_0x4031;if(!_0x47f904||!_0x9e36d6)return[];try{const _0x3e232e=await listDatasets(_0x47f904,{'code':_0x9e36d6}),_0x4f433c=_0x3e232e['find'](_0x105e81=>_0x105e81['code']===_0x9e36d6)??_0x3e232e[0x0],_0x287a8f=_0x4f433c?.[_0x43e883(0x1ad)]??{},_0x1b20c0=typeof _0x287a8f[_0x43e883(0x1a8)]===_0x43e883(0x1c4)?_0x287a8f[_0x43e883(0x1a8)]['split'](','):[];return _0x1b20c0[_0x43e883(0x1b6)](_0x3b1403=>normalizeFallbackFieldName(_0x3b1403,_0x287a8f[_0x43e883(0x19d)]))[_0x43e883(0x1c6)](_0x43e9ed=>_0x43e9ed!==null);}catch{return[];}}export const datasetDetail={'service':a25_0x2a222c(0x1b7),'command':'detail','description':a25_0x2a222c(0x191),'risk':'read','flags':[CODE_FLAG],async 'execute'(_0x2b546b){const _0x401a7d=a25_0x2a222c,_0x2940c7=await getDatasetDetail(_0x2b546b[_0x401a7d(0x1c9)](_0x401a7d(0x1a2))),_0x43b674=Array['isArray'](_0x2940c7[_0x401a7d(0x192)])?_0x2940c7[_0x401a7d(0x192)]:Array[_0x401a7d(0x1bd)](_0x2940c7[_0x401a7d(0x194)])?_0x2940c7[_0x401a7d(0x194)]:[];let _0x21fe1f=_0x43b674['map'](_0x19c4c4=>normalizeField(_0x19c4c4))[_0x401a7d(0x1c6)](_0x5a7b89=>_0x5a7b89!==null);_0x21fe1f['length']===0x0&&(_0x21fe1f=await loadListFieldFallback(_0x2b546b[_0x401a7d(0x1c0)],_0x2b546b[_0x401a7d(0x1c9)](_0x401a7d(0x1a2))));const _0x3e589b=_0x2940c7[_0x401a7d(0x1b9)]??{},_0x462e1b=[];for(const [_0x197d07,_0x45a237]of Object['entries'](_0x3e589b)){const _0x33b683=normalizeOperationEntry(_0x197d07,_0x45a237);if(_0x33b683)_0x462e1b['push'](_0x33b683);}const _0x3d0213=_0x2940c7[_0x401a7d(0x1ad)]??{},_0x47ad90=_0x2940c7[_0x401a7d(0x1b7)]??{},_0x2df61c=_0x3d0213['dbId']!=null?{'id':_0x3d0213[_0x401a7d(0x18f)],'name':_0x3d0213[_0x401a7d(0x1ba)]??null}:undefined;let _0x3c9579;return typeof _0x2940c7['extend']===_0x401a7d(0x1c4)&&(_0x3c9579=parseJsonMaybe(_0x2940c7['extend'])),{'ok':!![],'data':{'id':_0x2940c7[_0x401a7d(0x199)]??_0x2940c7['id'],'name':_0x2940c7[_0x401a7d(0x1b2)],'code':_0x2940c7[_0x401a7d(0x1ae)]||_0x2940c7[_0x401a7d(0x1a2)],'doVersion':_0x2940c7[_0x401a7d(0x1b0)],'description':_0x2940c7[_0x401a7d(0x1a4)]||_0x47ad90[_0x401a7d(0x1a5)]||undefined,'source':_0x2940c7[_0x401a7d(0x1cf)]||_0x47ad90[_0x401a7d(0x1c7)],'table':_0x3d0213[_0x401a7d(0x1c1)]||_0x47ad90[_0x401a7d(0x1c1)],'datasetKey':_0x3d0213['datasetKey'],'pk':_0x3d0213['pkField'],'db':_0x2df61c,'dbtable':summarizeDbtable(_0x3d0213),'fields':_0x21fe1f,'operations':_0x462e1b,'indexes':Array['isArray'](_0x47ad90[_0x401a7d(0x195)])?_0x47ad90[_0x401a7d(0x195)]:[],'relations':_0x2940c7[_0x401a7d(0x1c8)]??null,'relatedPages':normalizeRelatedPages(_0x2940c7['relatedPageInfoList']),...Array[_0x401a7d(0x1bd)](_0x2940c7['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x2940c7[_0x401a7d(0x1bb)]}:{},'formatRules':Array[_0x401a7d(0x1bd)](_0x2940c7[_0x401a7d(0x19f)])?_0x2940c7[_0x401a7d(0x19f)]:[],'validateRules':Array[_0x401a7d(0x1bd)](_0x2940c7['validateRules'])?_0x2940c7['validateRules']:[],..._0x3c9579!==undefined?{'extend':_0x3c9579}:{},'stats':{'fieldCount':_0x21fe1f[_0x401a7d(0x18e)],'operationCount':_0x462e1b[_0x401a7d(0x18e)]}}};}};
1
+ function a25_0x2716(_0x360464,_0x426391){_0x360464=_0x360464-0x102;const _0x4fa73e=a25_0x4fa7();let _0x27164e=_0x4fa73e[_0x360464];return _0x27164e;}const a25_0x409023=a25_0x2716;(function(_0x2fa4ed,_0x316035){const _0x359f30=a25_0x2716,_0x35594f=_0x2fa4ed();while(!![]){try{const _0x5d5ad8=parseInt(_0x359f30(0x120))/0x1*(parseInt(_0x359f30(0x126))/0x2)+parseInt(_0x359f30(0x136))/0x3*(-parseInt(_0x359f30(0x103))/0x4)+parseInt(_0x359f30(0x11a))/0x5*(-parseInt(_0x359f30(0x129))/0x6)+-parseInt(_0x359f30(0x141))/0x7*(-parseInt(_0x359f30(0x13c))/0x8)+parseInt(_0x359f30(0x109))/0x9+parseInt(_0x359f30(0x13e))/0xa+-parseInt(_0x359f30(0x12e))/0xb;if(_0x5d5ad8===_0x316035)break;else _0x35594f['push'](_0x35594f['shift']());}catch(_0x1cfc82){_0x35594f['push'](_0x35594f['shift']());}}}(a25_0x4fa7,0x34527));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a25_0x4fa7(){const _0x2318ab=['modifierNameField','afterScriptId','operations','293294ByOGKo','allFieldNames','labelField','method','logicField','formatRules','2iabTgE','host','name','77820KohAMT','modelId','validateRules','trim','fields','981123luYnZX','split','push','creatorIdField','isArray','allFields','description','extend','1041783CnTKaH','dbName','options','doVersion','responseBody','filter','184232kpBGng','tableName','1569530bBhONm','columnCodeListWithDeleted','responseFields','63pRBwBQ','path','dbId','tableComment','creatorNameField','length','beforeScriptId','appCode','4byUUdx','modelCode','requestBody','dataset','object','pkField','1690263RwAqxg','type','doType','string','find','dbtableConfig','str','code','sourceType','createTimeField','source','datasetKey','map','dataType','required','updateTimeField','indexes','75OrntFh','dblinkInfoDTO','relations'];a25_0x4fa7=function(){return _0x2318ab;};return a25_0x4fa7();}import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x3f6f99){const _0x6cf728=a25_0x2716;if(_0x3f6f99['deleted'])return null;const _0x5184b5=Boolean(_0x3f6f99['displayName']!==undefined||_0x3f6f99['doType']!==undefined);let _0x3b4cf5={};if(!_0x5184b5&&typeof _0x3f6f99[_0x6cf728(0x135)]==='string')try{_0x3b4cf5=JSON['parse'](_0x3f6f99['extend']);}catch{}const _0x20b46c=_0x5184b5?_0x3f6f99[_0x6cf728(0x128)]:_0x3f6f99[_0x6cf728(0x110)],_0x158fde=_0x5184b5?_0x3f6f99['displayName']:_0x3f6f99['name'],_0x2cb877=_0x5184b5?_0x3f6f99[_0x6cf728(0x10b)]:_0x3f6f99[_0x6cf728(0x10a)]||_0x3f6f99[_0x6cf728(0x116)],_0x5bb2c9=_0x5184b5?_0x3f6f99[_0x6cf728(0x108)]===!![]:_0x3b4cf5[_0x6cf728(0x108)]===!![],_0x25db8a=_0x5184b5?_0x3f6f99[_0x6cf728(0x117)]===!![]:_0x3b4cf5[_0x6cf728(0x117)]===!![],_0x424315=_0x5184b5?_0x3f6f99[_0x6cf728(0x138)]??null:_0x3b4cf5['options']??null,_0x40ad9a={'name':_0x20b46c,'displayName':_0x158fde||_0x20b46c,'type':_0x2cb877,'dbType':_0x3f6f99['dbType'],'pk':_0x5bb2c9,'required':_0x25db8a,'description':_0x3f6f99[_0x6cf728(0x134)]||undefined};return Array['isArray'](_0x424315)&&_0x424315[_0x6cf728(0x146)]>0x0&&(_0x40ad9a[_0x6cf728(0x138)]=_0x424315),_0x40ad9a;}function parseJsonMaybe(_0x59877d){const _0x21e185=a25_0x2716;if(typeof _0x59877d!==_0x21e185(0x10c))return _0x59877d;try{return JSON['parse'](_0x59877d);}catch{return _0x59877d;}}function normalizeOperationEntry(_0x5b4c12,_0x3f4c2d){const _0x15b5a6=a25_0x2716;if(!_0x3f4c2d||typeof _0x3f4c2d!==_0x15b5a6(0x107))return null;if(!_0x3f4c2d[_0x15b5a6(0x123)]||!_0x3f4c2d[_0x15b5a6(0x142)])return null;const _0x28f9ab={'name':_0x5b4c12,'method':_0x3f4c2d['method'],'path':_0x3f4c2d[_0x15b5a6(0x142)]};if(_0x3f4c2d['host'])_0x28f9ab['host']=_0x3f4c2d[_0x15b5a6(0x127)];if(_0x3f4c2d[_0x15b5a6(0x105)]!=null)_0x28f9ab[_0x15b5a6(0x105)]=parseJsonMaybe(_0x3f4c2d[_0x15b5a6(0x105)]);if(_0x3f4c2d[_0x15b5a6(0x13a)]!=null)_0x28f9ab[_0x15b5a6(0x13a)]=parseJsonMaybe(_0x3f4c2d['responseBody']);if(_0x3f4c2d['beforeScriptId']!=null)_0x28f9ab[_0x15b5a6(0x147)]=_0x3f4c2d[_0x15b5a6(0x147)];if(_0x3f4c2d[_0x15b5a6(0x11e)]!=null)_0x28f9ab[_0x15b5a6(0x11e)]=_0x3f4c2d[_0x15b5a6(0x11e)];if(Array[_0x15b5a6(0x132)](_0x3f4c2d['requestFields']))_0x28f9ab['requestFields']=_0x3f4c2d['requestFields'];if(Array[_0x15b5a6(0x132)](_0x3f4c2d[_0x15b5a6(0x140)]))_0x28f9ab[_0x15b5a6(0x140)]=_0x3f4c2d[_0x15b5a6(0x140)];return _0x28f9ab;}function summarizeDbtable(_0x38f31a){const _0x3c80a7=a25_0x2716,_0x1b18e3={},_0x1b08a2=[_0x3c80a7(0x143),'dbName',_0x3c80a7(0x13d),'datasetKey',_0x3c80a7(0x108),_0x3c80a7(0x133),_0x3c80a7(0x124),_0x3c80a7(0x112),_0x3c80a7(0x118),_0x3c80a7(0x131),_0x3c80a7(0x145),'modifierIdField',_0x3c80a7(0x11d),_0x3c80a7(0x122),_0x3c80a7(0x11b)];for(const _0x5cfd2a of _0x1b08a2){if(_0x38f31a[_0x5cfd2a]!==undefined)_0x1b18e3[_0x5cfd2a]=_0x38f31a[_0x5cfd2a];}return typeof _0x1b18e3[_0x3c80a7(0x133)]===_0x3c80a7(0x10c)&&_0x1b18e3[_0x3c80a7(0x133)][_0x3c80a7(0x146)]>0x0&&(_0x1b18e3[_0x3c80a7(0x121)]=_0x1b18e3[_0x3c80a7(0x133)][_0x3c80a7(0x12f)](',')[_0x3c80a7(0x115)](_0x53cc76=>_0x53cc76[_0x3c80a7(0x12c)]())['filter'](Boolean)),_0x1b18e3;}function normalizeRelatedPages(_0x47d853){const _0x47501b=a25_0x2716;if(!Array[_0x47501b(0x132)](_0x47d853))return[];return _0x47d853[_0x47501b(0x13b)](_0x2a8a79=>_0x2a8a79&&typeof _0x2a8a79===_0x47501b(0x107))[_0x47501b(0x115)](_0x1dd694=>({'id':_0x1dd694['id'],'type':_0x1dd694[_0x47501b(0x10a)],'code':_0x1dd694[_0x47501b(0x110)],'title':_0x1dd694['title'],'deleted':_0x1dd694['deleted']===!![]}));}function normalizeFallbackFieldName(_0x1f6fd2,_0x4dba13){const _0xcc2ee1=a25_0x2716,_0x12e377=_0x1f6fd2[_0xcc2ee1(0x12c)]();if(!_0x12e377)return null;return{'name':_0x12e377,'displayName':_0x12e377,'type':undefined,'dbType':undefined,'pk':_0x12e377===_0x4dba13,'required':![],'description':undefined};}async function loadListFieldFallback(_0x4e44aa,_0x48da12){const _0xd4c12e=a25_0x2716;if(!_0x4e44aa||!_0x48da12)return[];try{const _0x5e4ad3=await listDatasets(_0x4e44aa,{'code':_0x48da12}),_0x55efa6=_0x5e4ad3[_0xd4c12e(0x10d)](_0x5d1ee6=>_0x5d1ee6[_0xd4c12e(0x110)]===_0x48da12)??_0x5e4ad3[0x0],_0x123b9f=_0x55efa6?.[_0xd4c12e(0x10e)]??{},_0x3847d6=typeof _0x123b9f['allFields']===_0xd4c12e(0x10c)?_0x123b9f[_0xd4c12e(0x133)][_0xd4c12e(0x12f)](','):[];return _0x3847d6[_0xd4c12e(0x115)](_0x4c1e69=>normalizeFallbackFieldName(_0x4c1e69,_0x123b9f[_0xd4c12e(0x108)]))['filter'](_0x1f5daf=>_0x1f5daf!==null);}catch{return[];}}export const datasetDetail={'service':a25_0x409023(0x106),'command':'detail','description':'Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','risk':'read','flags':[CODE_FLAG],async 'execute'(_0xd1491f){const _0x2c46b9=a25_0x409023,_0x1e887c=await getDatasetDetail(_0xd1491f[_0x2c46b9(0x10f)](_0x2c46b9(0x110))),_0x30d3db=Array[_0x2c46b9(0x132)](_0x1e887c['fields'])?_0x1e887c[_0x2c46b9(0x12d)]:Array['isArray'](_0x1e887c['properties'])?_0x1e887c['properties']:[];let _0x4861fa=_0x30d3db[_0x2c46b9(0x115)](_0x2711c7=>normalizeField(_0x2711c7))['filter'](_0x2956a4=>_0x2956a4!==null);_0x4861fa[_0x2c46b9(0x146)]===0x0&&(_0x4861fa=await loadListFieldFallback(_0xd1491f[_0x2c46b9(0x102)],_0xd1491f['str'](_0x2c46b9(0x110))));const _0x4595d3=_0x1e887c[_0x2c46b9(0x11f)]??{},_0x2a51a5=[];for(const [_0x4ffd10,_0x5e30d4]of Object['entries'](_0x4595d3)){const _0x5a2fed=normalizeOperationEntry(_0x4ffd10,_0x5e30d4);if(_0x5a2fed)_0x2a51a5[_0x2c46b9(0x130)](_0x5a2fed);}const _0x2c1e7d=_0x1e887c[_0x2c46b9(0x10e)]??{},_0x361b35=_0x1e887c[_0x2c46b9(0x106)]??{},_0x255bdb=_0x2c1e7d[_0x2c46b9(0x143)]!=null?{'id':_0x2c1e7d[_0x2c46b9(0x143)],'name':_0x2c1e7d[_0x2c46b9(0x137)]??null}:undefined;let _0x2b781d;return typeof _0x1e887c[_0x2c46b9(0x135)]===_0x2c46b9(0x10c)&&(_0x2b781d=parseJsonMaybe(_0x1e887c['extend'])),{'ok':!![],'data':{'id':_0x1e887c[_0x2c46b9(0x12a)]??_0x1e887c['id'],'name':_0x1e887c[_0x2c46b9(0x128)],'code':_0x1e887c[_0x2c46b9(0x104)]||_0x1e887c[_0x2c46b9(0x110)],'doVersion':_0x1e887c[_0x2c46b9(0x139)],'description':_0x1e887c[_0x2c46b9(0x134)]||_0x361b35[_0x2c46b9(0x144)]||undefined,'source':_0x1e887c[_0x2c46b9(0x113)]||_0x361b35[_0x2c46b9(0x111)],'table':_0x2c1e7d['tableName']||_0x361b35[_0x2c46b9(0x13d)],'datasetKey':_0x2c1e7d[_0x2c46b9(0x114)],'pk':_0x2c1e7d[_0x2c46b9(0x108)],'db':_0x255bdb,'dbtable':summarizeDbtable(_0x2c1e7d),'fields':_0x4861fa,'operations':_0x2a51a5,'indexes':Array[_0x2c46b9(0x132)](_0x361b35['indexes'])?_0x361b35[_0x2c46b9(0x119)]:[],'relations':_0x1e887c[_0x2c46b9(0x11c)]??null,'relatedPages':normalizeRelatedPages(_0x1e887c['relatedPageInfoList']),...Array[_0x2c46b9(0x132)](_0x1e887c[_0x2c46b9(0x13f)])?{'columnCodeListWithDeleted':_0x1e887c[_0x2c46b9(0x13f)]}:{},'formatRules':Array[_0x2c46b9(0x132)](_0x1e887c['formatRules'])?_0x1e887c[_0x2c46b9(0x125)]:[],'validateRules':Array[_0x2c46b9(0x132)](_0x1e887c[_0x2c46b9(0x12b)])?_0x1e887c[_0x2c46b9(0x12b)]:[],..._0x2b781d!==undefined?{'extend':_0x2b781d}:{},'stats':{'fieldCount':_0x4861fa['length'],'operationCount':_0x2a51a5[_0x2c46b9(0x146)]}}};}};
@@ -1 +1 @@
1
- (function(_0x5b00d7,_0x33fab3){const _0x4c1447=a26_0x5d42,_0x25b618=_0x5b00d7();while(!![]){try{const _0x3bb285=-parseInt(_0x4c1447(0xce))/0x1+parseInt(_0x4c1447(0xc7))/0x2+-parseInt(_0x4c1447(0xcb))/0x3+parseInt(_0x4c1447(0xcf))/0x4*(parseInt(_0x4c1447(0xc8))/0x5)+parseInt(_0x4c1447(0xca))/0x6*(parseInt(_0x4c1447(0xc9))/0x7)+parseInt(_0x4c1447(0xc6))/0x8*(parseInt(_0x4c1447(0xcc))/0x9)+parseInt(_0x4c1447(0xcd))/0xa;if(_0x3bb285===_0x33fab3)break;else _0x25b618['push'](_0x25b618['shift']());}catch(_0x355217){_0x25b618['push'](_0x25b618['shift']());}}}(a26_0x3225,0x6b88b));import{datasetList}from'../../commands/dataset/list.js';function a26_0x5d42(_0xf8083e,_0x36e26d){_0xf8083e=_0xf8083e-0xc6;const _0x3225bc=a26_0x3225();let _0x5d4239=_0x3225bc[_0xf8083e];return _0x5d4239;}function a26_0x3225(){const _0x278442=['8897DnPRBe','102TFLRPq','1742013FZkUgm','2223909hjXGoF','10411180NlAgLc','493061dFRMwj','68752QeAefK','8sgKzFg','99346UuzONd','45cOPham'];a26_0x3225=function(){return _0x278442;};return a26_0x3225();}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ (function(_0x23590a,_0x170bc1){const _0x591260=a26_0x5e98,_0x201414=_0x23590a();while(!![]){try{const _0x5a168f=parseInt(_0x591260(0x122))/0x1*(parseInt(_0x591260(0x11f))/0x2)+-parseInt(_0x591260(0x120))/0x3+-parseInt(_0x591260(0x121))/0x4+-parseInt(_0x591260(0x11e))/0x5+parseInt(_0x591260(0x123))/0x6*(-parseInt(_0x591260(0x124))/0x7)+parseInt(_0x591260(0x11d))/0x8*(-parseInt(_0x591260(0x11c))/0x9)+parseInt(_0x591260(0x11b))/0xa;if(_0x5a168f===_0x170bc1)break;else _0x201414['push'](_0x201414['shift']());}catch(_0x3b16c1){_0x201414['push'](_0x201414['shift']());}}}(a26_0x43c7,0x3ee13));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a26_0x5e98(_0x6ec933,_0x103104){_0x6ec933=_0x6ec933-0x11b;const _0x43c7d1=a26_0x43c7();let _0x5e9884=_0x43c7d1[_0x6ec933];return _0x5e9884;}function a26_0x43c7(){const _0x380e1c=['2828368pMEBia','1568570rRAmid','414454YccvLA','118371tTHuFN','1822500XvHvtZ','2mgepNO','340674hjNkCN','14FtDQiH','11190010cFgCkg','9FwOhsr'];a26_0x43c7=function(){return _0x380e1c;};return a26_0x43c7();}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- function a27_0xe814(){const _0x359c0b=['28oApOBG','4hdXEYj','code','2883981SJXDAb','1079718FYfZQa','19217790TxZqCT','read','1014618nEBHBm','allFields','dataset','description','split','datasetKey','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','95070NCRkJi','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','122680sFOTIU','appCode','source','11uYejBk','map','name','793044qHhEbG','2JDlMwd','list','dbtableConfig','length','pkField'];a27_0xe814=function(){return _0x359c0b;};return a27_0xe814();}const a27_0x176b3d=a27_0x5600;(function(_0x51dfc1,_0x29a1e0){const _0x198b1f=a27_0x5600,_0x13eac9=_0x51dfc1();while(!![]){try{const _0x795f11=-parseInt(_0x198b1f(0x131))/0x1+-parseInt(_0x198b1f(0x125))/0x2*(parseInt(_0x198b1f(0x12d))/0x3)+-parseInt(_0x198b1f(0x12b))/0x4*(parseInt(_0x198b1f(0x138))/0x5)+-parseInt(_0x198b1f(0x12e))/0x6*(-parseInt(_0x198b1f(0x12a))/0x7)+-parseInt(_0x198b1f(0x11e))/0x8+-parseInt(_0x198b1f(0x124))/0x9+parseInt(_0x198b1f(0x12f))/0xa*(parseInt(_0x198b1f(0x121))/0xb);if(_0x795f11===_0x29a1e0)break;else _0x13eac9['push'](_0x13eac9['shift']());}catch(_0x229066){_0x13eac9['push'](_0x13eac9['shift']());}}}(a27_0xe814,0x849cd));function a27_0x5600(_0x2226e9,_0x2582c0){_0x2226e9=_0x2226e9-0x11d;const _0xe8149c=a27_0xe814();let _0x560076=_0xe8149c[_0x2226e9];return _0x560076;}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a27_0x176b3d(0x133),'command':a27_0x176b3d(0x126),'description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':a27_0x176b3d(0x130),'flags':[{'name':'name','type':'string','description':a27_0x176b3d(0x11d)},{...CODE_FLAG,'required':![],'description':a27_0x176b3d(0x137)}],async 'execute'(_0x23ecb7){const _0x5f26f8=a27_0x176b3d,_0x51729e=_0x23ecb7['str'](_0x5f26f8(0x123)),_0x1d304c=_0x23ecb7['str'](_0x5f26f8(0x12c)),_0x51d63c=await listDatasets(_0x23ecb7[_0x5f26f8(0x11f)],{..._0x51729e&&{'name':_0x51729e},..._0x1d304c&&{'code':_0x1d304c}});return{'ok':!![],'data':{'total':_0x51d63c[_0x5f26f8(0x128)],'datasets':_0x51d63c[_0x5f26f8(0x122)](_0x47bd6a=>{const _0x3c696c=_0x5f26f8,_0x342722=_0x47bd6a[_0x3c696c(0x127)]??{};return{'id':_0x47bd6a['id'],'code':_0x47bd6a[_0x3c696c(0x12c)],'name':_0x47bd6a[_0x3c696c(0x123)],'source':_0x47bd6a[_0x3c696c(0x120)],'description':_0x47bd6a[_0x3c696c(0x134)],'table':_0x342722['tableName'],'datasetKey':_0x342722[_0x3c696c(0x136)],'pk':_0x342722[_0x3c696c(0x129)],'fields':_0x342722['allFields']?_0x342722[_0x3c696c(0x132)][_0x3c696c(0x135)](',')[_0x3c696c(0x122)](_0x2cac91=>_0x2cac91['trim']()):[]};})}};}};
1
+ const a27_0x297fd4=a27_0x185f;(function(_0x4682d7,_0x4bb1de){const _0x1f7b14=a27_0x185f,_0x37c80e=_0x4682d7();while(!![]){try{const _0x8dff3a=parseInt(_0x1f7b14(0x88))/0x1+-parseInt(_0x1f7b14(0x96))/0x2+-parseInt(_0x1f7b14(0x84))/0x3+-parseInt(_0x1f7b14(0x94))/0x4+parseInt(_0x1f7b14(0x93))/0x5*(-parseInt(_0x1f7b14(0x86))/0x6)+parseInt(_0x1f7b14(0x90))/0x7+-parseInt(_0x1f7b14(0x9a))/0x8*(-parseInt(_0x1f7b14(0x8d))/0x9);if(_0x8dff3a===_0x4bb1de)break;else _0x37c80e['push'](_0x37c80e['shift']());}catch(_0x497c13){_0x37c80e['push'](_0x37c80e['shift']());}}}(a27_0x194a,0x8be86));import{listDatasets}from'../../core/api-client.js';function a27_0x194a(){const _0x6726f4=['23006331OANMhK','str','trim','2523122ECBVaZ','length','string','2435plLPwi','2045608tGHkxe','appCode','1165984pZCTRI','dbtableConfig','split','dataset','8MvfKAi','read','pkField','datasetKey','source','code','3022584jmARGu','map','6042yhwgHB','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','248688cZuGZy','allFields','name','description','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)'];a27_0x194a=function(){return _0x6726f4;};return a27_0x194a();}function a27_0x185f(_0x4c1064,_0x2fc130){_0x4c1064=_0x4c1064-0x7f;const _0x194a47=a27_0x194a();let _0x185f7b=_0x194a47[_0x4c1064];return _0x185f7b;}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a27_0x297fd4(0x99),'command':'list','description':a27_0x297fd4(0x8c),'risk':a27_0x297fd4(0x7f),'flags':[{'name':a27_0x297fd4(0x8a),'type':a27_0x297fd4(0x92),'description':'Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'},{...CODE_FLAG,'required':![],'description':a27_0x297fd4(0x87)}],async 'execute'(_0x3fcfc3){const _0x2bf7b1=a27_0x297fd4,_0x34c2a1=_0x3fcfc3['str'](_0x2bf7b1(0x8a)),_0x46369f=_0x3fcfc3[_0x2bf7b1(0x8e)](_0x2bf7b1(0x83)),_0x53632e=await listDatasets(_0x3fcfc3[_0x2bf7b1(0x95)],{..._0x34c2a1&&{'name':_0x34c2a1},..._0x46369f&&{'code':_0x46369f}});return{'ok':!![],'data':{'total':_0x53632e[_0x2bf7b1(0x91)],'datasets':_0x53632e[_0x2bf7b1(0x85)](_0x202866=>{const _0x125859=_0x2bf7b1,_0x1ff5f6=_0x202866[_0x125859(0x97)]??{};return{'id':_0x202866['id'],'code':_0x202866[_0x125859(0x83)],'name':_0x202866['name'],'source':_0x202866[_0x125859(0x82)],'description':_0x202866[_0x125859(0x8b)],'table':_0x1ff5f6['tableName'],'datasetKey':_0x1ff5f6[_0x125859(0x81)],'pk':_0x1ff5f6[_0x125859(0x80)],'fields':_0x1ff5f6[_0x125859(0x89)]?_0x1ff5f6[_0x125859(0x89)][_0x125859(0x98)](',')['map'](_0x99ceff=>_0x99ceff[_0x125859(0x8f)]()):[]};})}};}};
@@ -1 +1 @@
1
- const a28_0xfef77f=a28_0x359e;(function(_0x5c767e,_0x534d23){const _0x171f6b=a28_0x359e,_0xb1ef02=_0x5c767e();while(!![]){try{const _0x424a9a=parseInt(_0x171f6b(0x1d8))/0x1+parseInt(_0x171f6b(0x1e0))/0x2*(parseInt(_0x171f6b(0x1da))/0x3)+-parseInt(_0x171f6b(0x1dc))/0x4+-parseInt(_0x171f6b(0x1e6))/0x5*(-parseInt(_0x171f6b(0x1e5))/0x6)+-parseInt(_0x171f6b(0x1db))/0x7*(parseInt(_0x171f6b(0x1d9))/0x8)+-parseInt(_0x171f6b(0x1e2))/0x9+parseInt(_0x171f6b(0x1e3))/0xa*(parseInt(_0x171f6b(0x1df))/0xb);if(_0x424a9a===_0x534d23)break;else _0xb1ef02['push'](_0xb1ef02['shift']());}catch(_0x4ddb7a){_0xb1ef02['push'](_0xb1ef02['shift']());}}}(a28_0x2dd9,0xd1b4e));function a28_0x359e(_0x4f4754,_0x35c905){_0x4f4754=_0x4f4754-0x1d6;const _0x2dd9ac=a28_0x2dd9();let _0x359ec5=_0x2dd9ac[_0x4f4754];return _0x359ec5;}import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a28_0xfef77f(0x1d7);export function formatDatasetSdkMarkdown(_0x2bd760){const _0x996443=a28_0xfef77f,_0x44eb5f=typeof _0x2bd760===_0x996443(0x1e1)?_0x2bd760['trim']():'';return _0x44eb5f||DEFAULT_MARKDOWN;}function a28_0x2dd9(){const _0x433f2f=['14430uQmBiR','appCode','3030vXHbMi','6675UEycBY','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','sdk-doc','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','750074EvxZuB','8lILKVy','291MUTItc','7521486oJVmSJ','5832976MHhxoz','read','code','25927vuuKcX','660QsbnKo','string','13191390mgMeVR'];a28_0x2dd9=function(){return _0x433f2f;};return a28_0x2dd9();}export const datasetSdkDoc={'service':'dataset','command':a28_0xfef77f(0x1d6),'description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':a28_0xfef77f(0x1dd),'flags':[{...CODE_FLAG,'description':a28_0xfef77f(0x1e7)}],async 'execute'(_0x365066){const _0x456d3a=a28_0xfef77f,_0x13a314=_0x365066['str'](_0x456d3a(0x1de)),_0x23d0f2=await getDatasetSdkUsageDoc(_0x13a314,_0x365066[_0x456d3a(0x1e4)]);return{'ok':!![],'data':{'code':_0x13a314,'appCode':_0x365066[_0x456d3a(0x1e4)],'markdown':formatDatasetSdkMarkdown(_0x23d0f2)}};}};
1
+ const a28_0x50773c=a28_0xb41b;(function(_0x2dda6f,_0x3e8b7a){const _0x4a0588=a28_0xb41b,_0x45c980=_0x2dda6f();while(!![]){try{const _0x2842b2=-parseInt(_0x4a0588(0x81))/0x1+parseInt(_0x4a0588(0x88))/0x2+parseInt(_0x4a0588(0x87))/0x3+-parseInt(_0x4a0588(0x83))/0x4+-parseInt(_0x4a0588(0x84))/0x5+-parseInt(_0x4a0588(0x85))/0x6+parseInt(_0x4a0588(0x7d))/0x7;if(_0x2842b2===_0x3e8b7a)break;else _0x45c980['push'](_0x45c980['shift']());}catch(_0x4b5b85){_0x45c980['push'](_0x45c980['shift']());}}}(a28_0x22f4,0xd2293));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';function a28_0x22f4(){const _0x39363e=['Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','26984328lvjfUQ','string','appCode','sdk-doc','1712955pESDpe','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','5489868TVCoHp','6999840Zodbfq','1921620WgtrAB','dataset','1376478IcRrTf','2705498VjwgHf','read','str'];a28_0x22f4=function(){return _0x39363e;};return a28_0x22f4();}import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0xb41b(_0x32d0eb,_0x5a4e76){_0x32d0eb=_0x32d0eb-0x7c;const _0x22f441=a28_0x22f4();let _0xb41b6c=_0x22f441[_0x32d0eb];return _0xb41b6c;}const DEFAULT_MARKDOWN='#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档';export function formatDatasetSdkMarkdown(_0xfe7e8f){const _0x11f511=a28_0xb41b,_0x14bd66=typeof _0xfe7e8f===_0x11f511(0x7e)?_0xfe7e8f['trim']():'';return _0x14bd66||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a28_0x50773c(0x86),'command':a28_0x50773c(0x80),'description':a28_0x50773c(0x7c),'risk':a28_0x50773c(0x89),'flags':[{...CODE_FLAG,'description':a28_0x50773c(0x82)}],async 'execute'(_0x503803){const _0x1ea20b=a28_0x50773c,_0x5088d7=_0x503803[_0x1ea20b(0x8a)]('code'),_0xcc391f=await getDatasetSdkUsageDoc(_0x5088d7,_0x503803[_0x1ea20b(0x7f)]);return{'ok':!![],'data':{'code':_0x5088d7,'appCode':_0x503803['appCode'],'markdown':formatDatasetSdkMarkdown(_0xcc391f)}};}};
@@ -1 +1 @@
1
- function a29_0x2d79(_0x3253e7,_0x40b303){_0x3253e7=_0x3253e7-0x103;const _0x5e06ee=a29_0x5e06();let _0x2d79a1=_0x5e06ee[_0x3253e7];return _0x2d79a1;}const a29_0x3e6172=a29_0x2d79;(function(_0x362174,_0x2c22d6){const _0x48aafa=a29_0x2d79,_0xb408f8=_0x362174();while(!![]){try{const _0x9e22cb=parseInt(_0x48aafa(0x13a))/0x1*(-parseInt(_0x48aafa(0x141))/0x2)+parseInt(_0x48aafa(0x13e))/0x3+parseInt(_0x48aafa(0x14c))/0x4*(-parseInt(_0x48aafa(0x103))/0x5)+-parseInt(_0x48aafa(0x131))/0x6*(parseInt(_0x48aafa(0x11d))/0x7)+parseInt(_0x48aafa(0x14a))/0x8*(parseInt(_0x48aafa(0x129))/0x9)+parseInt(_0x48aafa(0x108))/0xa*(-parseInt(_0x48aafa(0x133))/0xb)+parseInt(_0x48aafa(0x150))/0xc*(parseInt(_0x48aafa(0x11b))/0xd);if(_0x9e22cb===_0x2c22d6)break;else _0xb408f8['push'](_0xb408f8['shift']());}catch(_0x366b31){_0xb408f8['push'](_0xb408f8['shift']());}}}(a29_0x5e06,0xe5f0e));import a29_0x3bd9fa 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';function a29_0x5e06(){const _0x4e6e26=['\x20(accessKey)','\x20Imported\x20from:\x20','currentApp','message','\x20\x20runtimeDomain:\x20\x20\x20','gray','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','8dgWdtn','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','24184zvXbUW','(missing)','commandCount','(not\x20set)','996YCPVgl','\x20\x20Merged\x20Config','verbose','\x20\x20Config\x20JSON','serviceCount','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','5PiXSiH','services','serviceCode','(none)','read','4360QUibwi','yellow','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','bold','\x20\x20─','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','missing','✗\x20Invalid\x20JSON','arch','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Service\x20Tree','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','\x20\x20Config\x20Files','205894SsEkgC','✓\x20Valid\x20JSON','329UtInEF','\x20doctor','red','source','version','\x20\x20Session\x20check:\x20\x20\x20','env','status','Global','ClientAk','platform','accessKey','14700132qvxxeF','\x20\x20API\x20Endpoints','green','(not\x20found)','appCode','pageSize','path','(default)','116442umonIF','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','22132GdfVXi','(default:\x20','padEnd','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','format','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','461109tCZDPb','doctor','✗\x20Invalid','(set,\x20length=','751356tVDvGT','locale','\x20\x20auth\x20(effective):\x20','2nuwrXR'];a29_0x5e06=function(){return _0x4e6e26;};return a29_0x5e06();}import{inspectServiceRegistry}from'../commands/service/registry.js';async function execute(_0x1a6e15){const _0x118357=a29_0x2d79,_0x5ef4b3=getCliVersion(),_0x440461=buildConfigFromFlags({});await initGlobalEnvironment(_0x440461),console[_0x118357(0x119)](),console[_0x118357(0x119)](a29_0x3bd9fa[_0x118357(0x10c)](CLI_BIN_NAME+_0x118357(0x11e))),console[_0x118357(0x119)](a29_0x3bd9fa[_0x118357(0x147)]('─'[_0x118357(0x113)](0x32))),console[_0x118357(0x119)](_0x118357(0x132)+_0x5ef4b3),console['log']('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x118357(0x121)]),console[_0x118357(0x119)](_0x118357(0x136)+process[_0x118357(0x127)]+'\x20'+process[_0x118357(0x111)]),console['log'](),console[_0x118357(0x119)](a29_0x3bd9fa['bold'](_0x118357(0x11a))),console['log'](a29_0x3bd9fa['gray'](_0x118357(0x10d)[_0x118357(0x113)](0x1e)));const _0x2045ca=getGlobalConfigPath(),_0x211b02=getProjectConfigPath();console[_0x118357(0x119)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2045ca||a29_0x3bd9fa['gray'](_0x118357(0x12c)))),console['log']('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x211b02||a29_0x3bd9fa[_0x118357(0x147)](_0x118357(0x12c)))),console['log'](),console['log'](a29_0x3bd9fa[_0x118357(0x10c)](_0x118357(0x153))),console['log'](a29_0x3bd9fa[_0x118357(0x147)](_0x118357(0x10d)[_0x118357(0x113)](0x1e)));const _0x5074c2=(_0x4c21ac,_0x224c8a)=>{const _0x584f71=_0x118357;if(!_0x224c8a){console[_0x584f71(0x119)]('\x20\x20'+_0x4c21ac[_0x584f71(0x135)](0x11)+'\x20'+a29_0x3bd9fa[_0x584f71(0x147)]('(no\x20file)'));return;}const _0x5f27ee=inspectCliConfigJsonFile(_0x224c8a);if(_0x5f27ee[_0x584f71(0x124)]==='ok')console['log']('\x20\x20'+_0x4c21ac['padEnd'](0x11)+'\x20'+a29_0x3bd9fa[_0x584f71(0x12b)](_0x584f71(0x11c)));else{if(_0x5f27ee[_0x584f71(0x124)]==='empty')console[_0x584f71(0x119)]('\x20\x20'+_0x4c21ac['padEnd'](0x11)+'\x20'+a29_0x3bd9fa[_0x584f71(0x109)](_0x584f71(0x116)));else _0x5f27ee[_0x584f71(0x124)]===_0x584f71(0x10f)?console[_0x584f71(0x119)]('\x20\x20'+_0x4c21ac[_0x584f71(0x135)](0x11)+'\x20'+a29_0x3bd9fa[_0x584f71(0x147)](_0x584f71(0x14d))):(console[_0x584f71(0x119)]('\x20\x20'+_0x4c21ac[_0x584f71(0x135)](0x11)+'\x20'+a29_0x3bd9fa['red'](_0x584f71(0x110))),console[_0x584f71(0x119)]('\x20\x20'+''[_0x584f71(0x135)](0x11)+'\x20'+a29_0x3bd9fa[_0x584f71(0x11f)](_0x5f27ee[_0x584f71(0x145)])));}};_0x5074c2(_0x118357(0x125),_0x2045ca),_0x5074c2('Project',_0x211b02),console[_0x118357(0x119)](),console['log'](a29_0x3bd9fa[_0x118357(0x10c)](_0x118357(0x151))),console[_0x118357(0x119)](a29_0x3bd9fa[_0x118357(0x147)](_0x118357(0x10d)[_0x118357(0x113)](0x1e))),console[_0x118357(0x119)](_0x118357(0x138)+(_0x440461[_0x118357(0x12d)]||a29_0x3bd9fa[_0x118357(0x11f)](_0x118357(0x14f)))),console[_0x118357(0x119)](_0x118357(0x148)+_0x440461[_0x118357(0x123)]);const _0x155a63=isLegacyCompatConfigKey(_0x118357(0x13f))?a29_0x3bd9fa[_0x118357(0x147)](_0x440461[_0x118357(0x13f)]+'\x20(legacy/compat\x20only)'):_0x440461['locale'];console[_0x118357(0x119)](_0x118357(0x117)+_0x155a63),console[_0x118357(0x119)](_0x118357(0x139)+(_0x440461['defaultApp']||a29_0x3bd9fa['gray'](_0x118357(0x106)))),console[_0x118357(0x119)](_0x118357(0x10e)+(_0x440461[_0x118357(0x144)]||a29_0x3bd9fa[_0x118357(0x147)](_0x118357(0x106)))),console[_0x118357(0x119)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x440461['format']||a29_0x3bd9fa[_0x118357(0x147)](_0x118357(0x134)+DEFAULT_CONFIG_VALUES[_0x118357(0x137)]+')'))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x440461[_0x118357(0x12e)]??a29_0x3bd9fa[_0x118357(0x147)](_0x118357(0x130)))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x440461[_0x118357(0x10b)]),console[_0x118357(0x119)](_0x118357(0x118)+_0x440461[_0x118357(0x152)]),console[_0x118357(0x119)](_0x118357(0x140)+AUTH_MODE[_0x118357(0x126)]),console[_0x118357(0x119)](_0x118357(0x155)+(_0x440461[_0x118357(0x128)]?a29_0x3bd9fa['green'](_0x118357(0x13d)+_0x440461['accessKey']['length']+')'):a29_0x3bd9fa['gray']('(none)'))),console['log'](),console[_0x118357(0x119)](a29_0x3bd9fa['bold'](_0x118357(0x12a))),console[_0x118357(0x119)](a29_0x3bd9fa['gray']('\x20\x20─'[_0x118357(0x113)](0x1e))),console[_0x118357(0x119)](_0x118357(0x114)+getApiDomain()),console['log']('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console['log'](_0x118357(0x146)+getRuntimeDomain()),console[_0x118357(0x119)](),console['log'](a29_0x3bd9fa[_0x118357(0x10c)](_0x118357(0x115))),console[_0x118357(0x119)](a29_0x3bd9fa[_0x118357(0x147)]('\x20\x20─'[_0x118357(0x113)](0x1e)));const _0x55387f=inspectServiceRegistry();console[_0x118357(0x119)]('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x55387f['registryPath']),console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x55387f)),console[_0x118357(0x119)](_0x118357(0x14b)+_0x55387f[_0x118357(0x154)]),console[_0x118357(0x119)](_0x118357(0x10a)+_0x55387f[_0x118357(0x14e)]);for(const _0x3cc73c of _0x55387f[_0x118357(0x104)]){console['log']('\x20\x20'+(_0x3cc73c[_0x118357(0x105)]+':')['padEnd'](0x11)+'\x20'+(_0x3cc73c['name']||a29_0x3bd9fa[_0x118357(0x147)]('(unnamed)'))+'\x20('+_0x3cc73c[_0x118357(0x14e)]+'\x20commands)'),console[_0x118357(0x119)]('\x20\x20'+''[_0x118357(0x135)](0x11)+_0x118357(0x143)+_0x3cc73c[_0x118357(0x120)][_0x118357(0x12f)]);}return console[_0x118357(0x119)](),console['log'](a29_0x3bd9fa['bold'](_0x118357(0x149))),console[_0x118357(0x119)](a29_0x3bd9fa[_0x118357(0x147)](_0x118357(0x10d)['repeat'](0x1e))),console['log'](_0x118357(0x112)+a29_0x3bd9fa['green'](AUTH_MODE['ClientAk']+_0x118357(0x142))),console[_0x118357(0x119)](_0x118357(0x122)+a29_0x3bd9fa[_0x118357(0x147)]('(removed\x20—\x20cookie\x20auth\x20disabled)')),console[_0x118357(0x119)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x29fe3c){const _0x3d2ba6=a29_0x2d79;if(_0x29fe3c[_0x3d2ba6(0x124)]==='ok')return a29_0x3bd9fa[_0x3d2ba6(0x12b)]('✓\x20Loaded');if(_0x29fe3c[_0x3d2ba6(0x124)]===_0x3d2ba6(0x10f))return a29_0x3bd9fa[_0x3d2ba6(0x147)]('(not\x20found)');if(_0x29fe3c[_0x3d2ba6(0x124)]==='empty')return a29_0x3bd9fa[_0x3d2ba6(0x109)]('⚠\x20Empty');return a29_0x3bd9fa[_0x3d2ba6(0x11f)](_0x3d2ba6(0x13c)+(_0x29fe3c[_0x3d2ba6(0x145)]?':\x20'+_0x29fe3c[_0x3d2ba6(0x145)]:''));}export const doctorDefinition={'service':a29_0x3e6172(0x13b),'command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20environment','risk':a29_0x3e6172(0x107),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ function a29_0x1bcf(){const _0x25105d=['\x20doctor','(no\x20file)','\x20\x20─','(unnamed)','missing','(default)','4002kIULpa','✓\x20Valid\x20JSON','\x20\x20Auth','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','(default:\x20','1636qiSZri','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','check','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','Project','riskLevel','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(removed\x20—\x20cookie\x20auth\x20disabled)','(none)','5TkcGPj','verbose','yellow','arch','red','\x20\x20Config\x20JSON','\x20\x20API\x20Endpoints','\x20commands)','defaultApp','accessKey','doctor','registryPath','⚠\x20Empty','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','(not\x20set)','gray','commandCount','\x20(legacy/compat\x20only)','version','env','\x20\x20Session\x20check:\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20environment','Global','serviceCount','✗\x20Invalid','message','(not\x20found)','4833976BxEgrf','ClientAk','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Loaded','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','status','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','10930941YJJWlx','green','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','read','log','\x20(accessKey)','\x20\x20Config\x20Files','padEnd','services','1827642gYvEXH','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','empty','⚠\x20Empty\x20(treated\x20as\x20{})','source','serviceCode','4018852LHulOp','format','1319619FHlkJG','locale','path','appCode','✗\x20Invalid\x20JSON','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','7001218QBEKuT','\x20\x20Service\x20Tree','platform','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'];a29_0x1bcf=function(){return _0x25105d;};return a29_0x1bcf();}const a29_0x31e2f3=a29_0x4184;(function(_0x3fd7b2,_0x51e6db){const _0x20c964=a29_0x4184,_0x38cdde=_0x3fd7b2();while(!![]){try{const _0x34748f=-parseInt(_0x20c964(0x162))/0x1+parseInt(_0x20c964(0x178))/0x2*(parseInt(_0x20c964(0x172))/0x3)+-parseInt(_0x20c964(0x160))/0x4*(-parseInt(_0x20c964(0x184))/0x5)+-parseInt(_0x20c964(0x159))/0x6+parseInt(_0x20c964(0x168))/0x7+parseInt(_0x20c964(0x1a0))/0x8+-parseInt(_0x20c964(0x1a7))/0x9;if(_0x34748f===_0x51e6db)break;else _0x38cdde['push'](_0x38cdde['shift']());}catch(_0x49ccb8){_0x38cdde['push'](_0x38cdde['shift']());}}}(a29_0x1bcf,0xd2583));import a29_0x133542 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';function a29_0x4184(_0x26bd9c,_0x499ebf){_0x26bd9c=_0x26bd9c-0x157;const _0x1bcf50=a29_0x1bcf();let _0x4184fa=_0x1bcf50[_0x26bd9c];return _0x4184fa;}async function execute(_0x410985){const _0xb0003e=a29_0x4184,_0x443089=getCliVersion(),_0x3719ad=buildConfigFromFlags({});await initGlobalEnvironment(_0x3719ad),console[_0xb0003e(0x1ac)](),console[_0xb0003e(0x1ac)](a29_0x133542['bold'](CLI_BIN_NAME+_0xb0003e(0x16c))),console[_0xb0003e(0x1ac)](a29_0x133542[_0xb0003e(0x194)]('─'[_0xb0003e(0x1aa)](0x32))),console[_0xb0003e(0x1ac)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x443089),console[_0xb0003e(0x1ac)](_0xb0003e(0x15a)+process[_0xb0003e(0x197)]),console[_0xb0003e(0x1ac)](_0xb0003e(0x1a6)+process[_0xb0003e(0x16a)]+'\x20'+process[_0xb0003e(0x187)]),console['log'](),console[_0xb0003e(0x1ac)](a29_0x133542['bold'](_0xb0003e(0x1ae))),console[_0xb0003e(0x1ac)](a29_0x133542['gray']('\x20\x20─'[_0xb0003e(0x1aa)](0x1e)));const _0x446a37=getGlobalConfigPath(),_0x37102d=getProjectConfigPath();console['log']('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x446a37||a29_0x133542['gray'](_0xb0003e(0x19f)))),console['log'](_0xb0003e(0x17b)+(_0x37102d||a29_0x133542[_0xb0003e(0x194)](_0xb0003e(0x19f)))),console['log'](),console['log'](a29_0x133542[_0xb0003e(0x15b)](_0xb0003e(0x189))),console['log'](a29_0x133542['gray'](_0xb0003e(0x16e)[_0xb0003e(0x1aa)](0x1e)));const _0x5e3e5f=(_0x387583,_0x5adcce)=>{const _0x56f7ba=_0xb0003e;if(!_0x5adcce){console[_0x56f7ba(0x1ac)]('\x20\x20'+_0x387583[_0x56f7ba(0x157)](0x11)+'\x20'+a29_0x133542[_0x56f7ba(0x194)](_0x56f7ba(0x16d)));return;}const _0x216f89=inspectCliConfigJsonFile(_0x5adcce);if(_0x216f89[_0x56f7ba(0x1a5)]==='ok')console['log']('\x20\x20'+_0x387583[_0x56f7ba(0x157)](0x11)+'\x20'+a29_0x133542[_0x56f7ba(0x1a8)](_0x56f7ba(0x173)));else{if(_0x216f89[_0x56f7ba(0x1a5)]===_0x56f7ba(0x15c))console['log']('\x20\x20'+_0x387583['padEnd'](0x11)+'\x20'+a29_0x133542[_0x56f7ba(0x186)](_0x56f7ba(0x15d)));else _0x216f89[_0x56f7ba(0x1a5)]===_0x56f7ba(0x170)?console[_0x56f7ba(0x1ac)]('\x20\x20'+_0x387583[_0x56f7ba(0x157)](0x11)+'\x20'+a29_0x133542[_0x56f7ba(0x194)](_0x56f7ba(0x17c))):(console['log']('\x20\x20'+_0x387583[_0x56f7ba(0x157)](0x11)+'\x20'+a29_0x133542[_0x56f7ba(0x188)](_0x56f7ba(0x166))),console[_0x56f7ba(0x1ac)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a29_0x133542[_0x56f7ba(0x188)](_0x216f89['message'])));}};_0x5e3e5f(_0xb0003e(0x19b),_0x446a37),_0x5e3e5f(_0xb0003e(0x17f),_0x37102d),console[_0xb0003e(0x1ac)](),console[_0xb0003e(0x1ac)](a29_0x133542[_0xb0003e(0x15b)](_0xb0003e(0x192))),console['log'](a29_0x133542[_0xb0003e(0x194)](_0xb0003e(0x16e)[_0xb0003e(0x1aa)](0x1e))),console[_0xb0003e(0x1ac)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3719ad[_0xb0003e(0x165)]||a29_0x133542[_0xb0003e(0x188)](_0xb0003e(0x193)))),console[_0xb0003e(0x1ac)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3719ad[_0xb0003e(0x198)]);const _0x49c9f5=isLegacyCompatConfigKey('locale')?a29_0x133542[_0xb0003e(0x194)](_0x3719ad[_0xb0003e(0x163)]+_0xb0003e(0x196)):_0x3719ad[_0xb0003e(0x163)];console[_0xb0003e(0x1ac)](_0xb0003e(0x181)+_0x49c9f5),console[_0xb0003e(0x1ac)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x3719ad[_0xb0003e(0x18c)]||a29_0x133542[_0xb0003e(0x194)](_0xb0003e(0x183)))),console[_0xb0003e(0x1ac)](_0xb0003e(0x167)+(_0x3719ad['currentApp']||a29_0x133542[_0xb0003e(0x194)](_0xb0003e(0x183)))),console['log'](_0xb0003e(0x1a9)+(_0x3719ad[_0xb0003e(0x161)]||a29_0x133542['gray'](_0xb0003e(0x177)+DEFAULT_CONFIG_VALUES[_0xb0003e(0x161)]+')'))),console[_0xb0003e(0x1ac)](_0xb0003e(0x191)+(_0x3719ad['pageSize']??a29_0x133542[_0xb0003e(0x194)](_0xb0003e(0x171)))),console[_0xb0003e(0x1ac)](_0xb0003e(0x16b)+_0x3719ad[_0xb0003e(0x180)]),console['log'](_0xb0003e(0x175)+_0x3719ad[_0xb0003e(0x185)]),console['log']('\x20\x20auth\x20(effective):\x20'+AUTH_MODE[_0xb0003e(0x1a1)]),console['log'](_0xb0003e(0x179)+(_0x3719ad[_0xb0003e(0x18d)]?a29_0x133542['green']('(set,\x20length='+_0x3719ad[_0xb0003e(0x18d)][_0xb0003e(0x176)]+')'):a29_0x133542[_0xb0003e(0x194)](_0xb0003e(0x183)))),console[_0xb0003e(0x1ac)](),console[_0xb0003e(0x1ac)](a29_0x133542[_0xb0003e(0x15b)](_0xb0003e(0x18a))),console[_0xb0003e(0x1ac)](a29_0x133542[_0xb0003e(0x194)](_0xb0003e(0x16e)['repeat'](0x1e))),console[_0xb0003e(0x1ac)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0xb0003e(0x1ac)](_0xb0003e(0x17a)+getUserDomain()),console[_0xb0003e(0x1ac)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0xb0003e(0x1ac)](),console[_0xb0003e(0x1ac)](a29_0x133542[_0xb0003e(0x15b)](_0xb0003e(0x169))),console[_0xb0003e(0x1ac)](a29_0x133542[_0xb0003e(0x194)](_0xb0003e(0x16e)['repeat'](0x1e)));const _0x59c916=inspectServiceRegistry();console[_0xb0003e(0x1ac)](_0xb0003e(0x17e)+_0x59c916[_0xb0003e(0x18f)]),console[_0xb0003e(0x1ac)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x59c916)),console[_0xb0003e(0x1ac)](_0xb0003e(0x1a4)+_0x59c916[_0xb0003e(0x19c)]),console[_0xb0003e(0x1ac)](_0xb0003e(0x1a2)+_0x59c916['commandCount']);for(const _0x42a29e of _0x59c916[_0xb0003e(0x158)]){console[_0xb0003e(0x1ac)]('\x20\x20'+(_0x42a29e[_0xb0003e(0x15f)]+':')[_0xb0003e(0x157)](0x11)+'\x20'+(_0x42a29e['name']||a29_0x133542[_0xb0003e(0x194)](_0xb0003e(0x16f)))+'\x20('+_0x42a29e[_0xb0003e(0x195)]+_0xb0003e(0x18b)),console['log']('\x20\x20'+''[_0xb0003e(0x157)](0x11)+'\x20Imported\x20from:\x20'+_0x42a29e[_0xb0003e(0x15e)][_0xb0003e(0x164)]);}return console[_0xb0003e(0x1ac)](),console['log'](a29_0x133542[_0xb0003e(0x15b)](_0xb0003e(0x174))),console[_0xb0003e(0x1ac)](a29_0x133542[_0xb0003e(0x194)](_0xb0003e(0x16e)['repeat'](0x1e))),console[_0xb0003e(0x1ac)]('\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a29_0x133542[_0xb0003e(0x1a8)](AUTH_MODE['ClientAk']+_0xb0003e(0x1ad))),console['log'](_0xb0003e(0x199)+a29_0x133542['gray'](_0xb0003e(0x182))),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0x56a75a){const _0x34c110=a29_0x4184;if(_0x56a75a[_0x34c110(0x1a5)]==='ok')return a29_0x133542['green'](_0x34c110(0x1a3));if(_0x56a75a[_0x34c110(0x1a5)]==='missing')return a29_0x133542[_0x34c110(0x194)](_0x34c110(0x19f));if(_0x56a75a['status']===_0x34c110(0x15c))return a29_0x133542[_0x34c110(0x186)](_0x34c110(0x190));return a29_0x133542[_0x34c110(0x188)](_0x34c110(0x19d)+(_0x56a75a[_0x34c110(0x19e)]?':\x20'+_0x56a75a[_0x34c110(0x19e)]:''));}export const doctorDefinition={'service':a29_0x31e2f3(0x18e),'command':a29_0x31e2f3(0x17d),'description':a29_0x31e2f3(0x19a),'risk':a29_0x31e2f3(0x1ab),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};