@lovrabet/lovrabet-cli 2.1.4-beta.1 → 2.1.5

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 (107) 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/artifact/index.js +1 -1
  10. package/lib/commands/auth/index.js +1 -1
  11. package/lib/commands/auth/prompt.js +1 -1
  12. package/lib/commands/bff/detail.js +1 -1
  13. package/lib/commands/bff/exec.js +1 -1
  14. package/lib/commands/bff/index.js +1 -1
  15. package/lib/commands/cli-skill/index.js +1 -1
  16. package/lib/commands/common/config-policy.js +1 -1
  17. package/lib/commands/common/constraints.js +1 -1
  18. package/lib/commands/common/flags.js +1 -1
  19. package/lib/commands/config/definitions.js +1 -1
  20. package/lib/commands/config/shared.js +1 -1
  21. package/lib/commands/data/index.js +1 -1
  22. package/lib/commands/dataset/detail.js +1 -1
  23. package/lib/commands/dataset/index.js +1 -1
  24. package/lib/commands/dataset/list.js +1 -1
  25. package/lib/commands/dataset/sdk-doc.js +1 -1
  26. package/lib/commands/doctor.js +1 -1
  27. package/lib/commands/init.js +1 -1
  28. package/lib/commands/kb/index.js +1 -1
  29. package/lib/commands/logs/index.js +1 -1
  30. package/lib/commands/personal-bff/index.js +1 -1
  31. package/lib/commands/registry.js +1 -1
  32. package/lib/commands/schema.js +1 -1
  33. package/lib/commands/service/dynamic.js +1 -1
  34. package/lib/commands/service/index.js +1 -1
  35. package/lib/commands/service/registry.js +1 -1
  36. package/lib/commands/skill/commands/create.js +1 -1
  37. package/lib/commands/skill/commands/install.js +1 -1
  38. package/lib/commands/skill/commands/list.js +1 -1
  39. package/lib/commands/skill/commands/push.js +1 -1
  40. package/lib/commands/skill/commands/validate.js +1 -1
  41. package/lib/commands/skill/flags.js +1 -1
  42. package/lib/commands/skill/index.js +1 -1
  43. package/lib/commands/skill/manifest-helpers.js +1 -1
  44. package/lib/commands/skill/scopes.js +1 -1
  45. package/lib/commands/skill/summary.js +1 -1
  46. package/lib/commands/skill/templates.js +1 -1
  47. package/lib/commands/skill/validate.js +1 -1
  48. package/lib/commands/sql/detail.js +1 -1
  49. package/lib/commands/sql/exec.js +1 -1
  50. package/lib/commands/sql/index.js +1 -1
  51. package/lib/commands/update.js +1 -1
  52. package/lib/commands/workspace/index.js +1 -1
  53. package/lib/config/schema.js +1 -1
  54. package/lib/constant/app.js +1 -1
  55. package/lib/constant/auth-mode.js +1 -1
  56. package/lib/constant/cli.js +1 -1
  57. package/lib/constant/defaults.js +1 -1
  58. package/lib/constant/distribution.js +1 -1
  59. package/lib/constant/domain.js +1 -1
  60. package/lib/constant/env.js +1 -1
  61. package/lib/constant/output.js +1 -1
  62. package/lib/constant/product.js +1 -1
  63. package/lib/constant/risk.js +1 -1
  64. package/lib/constant/url.js +1 -1
  65. package/lib/context.js +1 -1
  66. package/lib/core/api-client.js +1 -1
  67. package/lib/core/db-resolver.js +1 -1
  68. package/lib/core/sdk-client.js +1 -1
  69. package/lib/errors.js +1 -1
  70. package/lib/framework/build-all-flags.js +1 -1
  71. package/lib/framework/dryrun.js +1 -1
  72. package/lib/framework/flags.js +1 -1
  73. package/lib/framework/help.js +1 -1
  74. package/lib/framework/index.js +1 -1
  75. package/lib/framework/output.js +1 -1
  76. package/lib/framework/preparse.js +1 -1
  77. package/lib/framework/response.js +1 -1
  78. package/lib/framework/runner-confirmation.js +1 -1
  79. package/lib/framework/runner-error.js +1 -1
  80. package/lib/framework/runner.js +1 -1
  81. package/lib/framework/schema-export.js +1 -1
  82. package/lib/framework/types.js +1 -1
  83. package/lib/generated/build-info.js +1 -1
  84. package/lib/help.js +1 -1
  85. package/lib/skills/npx-skills-add.js +1 -1
  86. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  87. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  88. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  89. package/lib/skills/runtime-skill-sync/links.js +1 -1
  90. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  91. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  92. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  93. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  94. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  95. package/lib/skills/runtime-skill-sync/push.js +1 -1
  96. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  97. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  98. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  99. package/lib/skills/runtime-skill-sync.js +1 -1
  100. package/lib/utils/apply-jq-filter.js +1 -1
  101. package/lib/utils/logger.js +1 -1
  102. package/lib/utils/params.js +1 -1
  103. package/lib/utils/platform.js +1 -1
  104. package/lib/utils/update-notice.js +1 -1
  105. package/lib/utils/version.js +1 -1
  106. package/lib/utils/write-cli-side-channel.js +1 -1
  107. package/package.json +1 -1
@@ -1 +1 @@
1
- const a53_0x40fac2=a53_0x4ad6;(function(_0x1ea6dd,_0x1328ef){const _0x4b3306=a53_0x4ad6,_0x221f5e=_0x1ea6dd();while(!![]){try{const _0x5a3354=parseInt(_0x4b3306(0x1ca))/0x1+parseInt(_0x4b3306(0x1cd))/0x2+-parseInt(_0x4b3306(0x1cc))/0x3+-parseInt(_0x4b3306(0x1c6))/0x4*(parseInt(_0x4b3306(0x1c9))/0x5)+-parseInt(_0x4b3306(0x1c7))/0x6*(parseInt(_0x4b3306(0x1c5))/0x7)+-parseInt(_0x4b3306(0x1c4))/0x8*(parseInt(_0x4b3306(0x1c3))/0x9)+parseInt(_0x4b3306(0x1cb))/0xa;if(_0x5a3354===_0x1328ef)break;else _0x221f5e['push'](_0x221f5e['shift']());}catch(_0x5d564d){_0x221f5e['push'](_0x221f5e['shift']());}}}(a53_0x1046,0xa909e));function a53_0x4ad6(_0x51ea1f,_0x58a1c1){_0x51ea1f=_0x51ea1f-0x1c3;const _0x1046d5=a53_0x1046();let _0x4ad6a6=_0x1046d5[_0x51ea1f];return _0x4ad6a6;}function a53_0x1046(){const _0x5d3352=['4120812ITclzM','8rRmsCe','63623IXKTxb','5220oZLrCb','246SyToIj','UNPUBLISH','1465lbvLMH','893585UqpPIO','16673390KvNLRG','2651493VLocue','456342lseqyd'];a53_0x1046=function(){return _0x5d3352;};return a53_0x1046();}export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a53_0x40fac2(0x1c8)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];
1
+ const a53_0x5e35ce=a53_0x3aea;function a53_0x1f53(){const _0x53b68c=['31324986crRVvO','971104UoaUgi','2417808qWvxNq','571387aaRPjV','2751594PhgnhJ','1973436KfcPbg','21BFMENG','19446gkDyFX','UNPUBLISH','PUBLISHED','1525HVmlUq','Published'];a53_0x1f53=function(){return _0x53b68c;};return a53_0x1f53();}function a53_0x3aea(_0x132999,_0x3ba512){_0x132999=_0x132999-0x14e;const _0x1f534c=a53_0x1f53();let _0x3aeae3=_0x1f534c[_0x132999];return _0x3aeae3;}(function(_0xeffd26,_0x325398){const _0x3461a2=a53_0x3aea,_0x42a2f9=_0xeffd26();while(!![]){try{const _0x226f33=parseInt(_0x3461a2(0x151))/0x1+-parseInt(_0x3461a2(0x152))/0x2+-parseInt(_0x3461a2(0x150))/0x3+-parseInt(_0x3461a2(0x153))/0x4+parseInt(_0x3461a2(0x158))/0x5*(-parseInt(_0x3461a2(0x155))/0x6)+-parseInt(_0x3461a2(0x154))/0x7*(-parseInt(_0x3461a2(0x14f))/0x8)+parseInt(_0x3461a2(0x14e))/0x9;if(_0x226f33===_0x325398)break;else _0x42a2f9['push'](_0x42a2f9['shift']());}catch(_0x3c3212){_0x42a2f9['push'](_0x42a2f9['shift']());}}}(a53_0x1f53,0xb7b7c));export const APP_PUBLISH_STATUS={'Published':a53_0x5e35ce(0x157),'Unpublished':a53_0x5e35ce(0x156)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a53_0x5e35ce(0x159)];
@@ -1 +1 @@
1
- function a54_0x5bb9(){const _0xfc6ab2=['29952549mHKpad','22951rjBQqv','1419417KKiwBp','6781938nvpdsM','6417764ClOlON','112raZoES','12148234RMpuyu','ClientAk','13401080WBioxl','5SWNZRM','client-ak'];a54_0x5bb9=function(){return _0xfc6ab2;};return a54_0x5bb9();}const a54_0x49a158=a54_0x5eef;function a54_0x5eef(_0x58e512,_0xc27718){_0x58e512=_0x58e512-0x152;const _0x5bb93d=a54_0x5bb9();let _0x5eef15=_0x5bb93d[_0x58e512];return _0x5eef15;}(function(_0x38829e,_0x50c2f3){const _0x37187f=a54_0x5eef,_0x3619f8=_0x38829e();while(!![]){try{const _0x44423a=parseInt(_0x37187f(0x15b))/0x1*(-parseInt(_0x37187f(0x154))/0x2)+-parseInt(_0x37187f(0x15c))/0x3+parseInt(_0x37187f(0x153))/0x4+parseInt(_0x37187f(0x158))/0x5*(parseInt(_0x37187f(0x152))/0x6)+-parseInt(_0x37187f(0x155))/0x7+-parseInt(_0x37187f(0x157))/0x8+parseInt(_0x37187f(0x15a))/0x9;if(_0x44423a===_0x50c2f3)break;else _0x3619f8['push'](_0x3619f8['shift']());}catch(_0xce402d){_0x3619f8['push'](_0x3619f8['shift']());}}}(a54_0x5bb9,0xda389));export const AUTH_MODE={'ClientAk':a54_0x49a158(0x159)};export function isAuthMode(_0x2201aa){const _0x3bef47=a54_0x49a158;return _0x2201aa===AUTH_MODE[_0x3bef47(0x156)];}
1
+ const a54_0x694d9e=a54_0x32b0;(function(_0x3f2963,_0xfc268d){const _0x141c7b=a54_0x32b0,_0x1e4e05=_0x3f2963();while(!![]){try{const _0x38a7cd=parseInt(_0x141c7b(0x1c4))/0x1+-parseInt(_0x141c7b(0x1c9))/0x2+parseInt(_0x141c7b(0x1ca))/0x3*(parseInt(_0x141c7b(0x1cb))/0x4)+-parseInt(_0x141c7b(0x1ce))/0x5*(parseInt(_0x141c7b(0x1c7))/0x6)+parseInt(_0x141c7b(0x1c8))/0x7*(parseInt(_0x141c7b(0x1cc))/0x8)+parseInt(_0x141c7b(0x1c3))/0x9+-parseInt(_0x141c7b(0x1c6))/0xa*(-parseInt(_0x141c7b(0x1cd))/0xb);if(_0x38a7cd===_0xfc268d)break;else _0x1e4e05['push'](_0x1e4e05['shift']());}catch(_0x1267df){_0x1e4e05['push'](_0x1e4e05['shift']());}}}(a54_0x1adb,0xa6d8e));export const AUTH_MODE={'ClientAk':a54_0x694d9e(0x1c5)};export function isAuthMode(_0x72a4bf){const _0x29d116=a54_0x694d9e;return _0x72a4bf===AUTH_MODE[_0x29d116(0x1c2)];}function a54_0x32b0(_0x68b262,_0x2468c0){_0x68b262=_0x68b262-0x1c2;const _0x1adbd8=a54_0x1adb();let _0x32b07e=_0x1adbd8[_0x68b262];return _0x32b07e;}function a54_0x1adb(){const _0x13120=['413aVZVxD','2258494yOxUGL','4404RPsOuQ','1900sDsMRS','43944iJqslM','16471477OkCskx','625nstzIU','ClientAk','68472cDLegf','632626iUnZoZ','client-ak','10xLACld','64626IwrElb'];a54_0x1adb=function(){return _0x13120;};return a54_0x1adb();}
@@ -1 +1 @@
1
- function a55_0x45d6(_0x28e32b,_0x19037d){_0x28e32b=_0x28e32b-0x1e2;const _0x41c4e1=a55_0x41c4();let _0x45d65c=_0x41c4e1[_0x28e32b];return _0x45d65c;}const a55_0x59eee0=a55_0x45d6;function a55_0x41c4(){const _0x2b0795=['app','96ytDPMG','dry-run','map','6AgJKAP','params','dryRun','2687548eVmmkX','Name\x20filter','Use\x20global\x20config\x20scope','Skip\x20confirmation\x20for\x20high-risk\x20writes','nonInteractive','global','cliDisplayName','json\x20|\x20pretty\x20|\x20compress','clear','type','SQL\x20query\x20code','Record\x20ID','cliBinName','11tZlrxh','name','826335ALqjoq','Preview\x20operation\x20without\x20executing','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','<code>','19031020RvVPgj','help','non-interactive','fromEntries','<expr>','786456iaGJGQ','Alias\x20for\x20--non-interactive','Force\x20non-interactive\x20mode\x20(CI)','1090324SrUyXN','format','Verbose\x20output','Output\x20format','production\x20|\x20development\x20|\x20daily','Environment','verbose','4981319IXBoyz','env','appcode','yes','boolean','6611050sNXaDx','Clear\x20output','6OKvAZJ','string'];a55_0x41c4=function(){return _0x2b0795;};return a55_0x41c4();}(function(_0x388f20,_0xe7462){const _0xae05c5=a55_0x45d6,_0x462021=_0x388f20();while(!![]){try{const _0x488775=parseInt(_0xae05c5(0x1f4))/0x1+-parseInt(_0xae05c5(0x1f1))/0x2+-parseInt(_0xae05c5(0x208))/0x3*(parseInt(_0xae05c5(0x20b))/0x4)+parseInt(_0xae05c5(0x200))/0x5+parseInt(_0xae05c5(0x202))/0x6*(-parseInt(_0xae05c5(0x1fb))/0x7)+-parseInt(_0xae05c5(0x205))/0x8*(parseInt(_0xae05c5(0x1e8))/0x9)+parseInt(_0xae05c5(0x1ec))/0xa*(parseInt(_0xae05c5(0x1e6))/0xb);if(_0x488775===_0xe7462)break;else _0x462021['push'](_0x462021['shift']());}catch(_0x4a8c56){_0x462021['push'](_0x462021['shift']());}}}(a55_0x41c4,0xbad35));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a55_0x59eee0(0x1e5)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a55_0x59eee0(0x211)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a55_0x59eee0(0x1fd),'meowKey':a55_0x59eee0(0x1fd),'type':a55_0x59eee0(0x203),'description':'Override\x20appcode','hint':a55_0x59eee0(0x1eb)},{'name':'app','meowKey':a55_0x59eee0(0x204),'type':a55_0x59eee0(0x203),'description':'Select\x20app\x20profile\x20by\x20name','hint':'<name>'},{'name':'env','meowKey':a55_0x59eee0(0x1fc),'type':a55_0x59eee0(0x203),'description':a55_0x59eee0(0x1f9),'hint':a55_0x59eee0(0x1f8)},{'name':'format','meowKey':a55_0x59eee0(0x1f5),'type':'string','description':a55_0x59eee0(0x1f7),'hint':a55_0x59eee0(0x212)},{'name':'jq','meowKey':'jq','type':a55_0x59eee0(0x203),'description':a55_0x59eee0(0x1ea),'hint':a55_0x59eee0(0x1f0)},{'name':a55_0x59eee0(0x206),'meowKey':a55_0x59eee0(0x20a),'type':a55_0x59eee0(0x1ff),'description':a55_0x59eee0(0x1e9)},{'name':a55_0x59eee0(0x1fe),'meowKey':a55_0x59eee0(0x1fe),'type':a55_0x59eee0(0x1ff),'description':a55_0x59eee0(0x20e)},{'name':a55_0x59eee0(0x1ee),'meowKey':a55_0x59eee0(0x20f),'type':a55_0x59eee0(0x1ff),'description':a55_0x59eee0(0x1f3)},{'name':a55_0x59eee0(0x210),'meowKey':'global','type':a55_0x59eee0(0x1ff),'description':a55_0x59eee0(0x20d)},{'name':'ci','meowKey':'ci','type':a55_0x59eee0(0x1ff),'description':a55_0x59eee0(0x1f2),'hidden':!![]},{'name':a55_0x59eee0(0x1ed),'meowKey':'help','type':a55_0x59eee0(0x1ff),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':'string','description':a55_0x59eee0(0x1e4),'hidden':!![]},{'name':a55_0x59eee0(0x1e7),'meowKey':a55_0x59eee0(0x1e7),'type':a55_0x59eee0(0x203),'description':a55_0x59eee0(0x20c),'hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a55_0x59eee0(0x203),'description':a55_0x59eee0(0x1e3),'hidden':!![]},{'name':a55_0x59eee0(0x209),'meowKey':a55_0x59eee0(0x209),'type':'string','description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a55_0x59eee0(0x1fa),'meowKey':'verbose','type':'boolean','description':a55_0x59eee0(0x1f6),'hidden':!![]},{'name':a55_0x59eee0(0x213),'meowKey':a55_0x59eee0(0x213),'type':a55_0x59eee0(0x1ff),'description':a55_0x59eee0(0x201),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a55_0x59eee0(0x1fd),a55_0x59eee0(0x204),a55_0x59eee0(0x1fc),a55_0x59eee0(0x1f5),'jq',a55_0x59eee0(0x206),a55_0x59eee0(0x1fe),a55_0x59eee0(0x1ee),'ci']);export function buildMeowFlags(){const _0x50d522=a55_0x59eee0;return Object[_0x50d522(0x1ef)](GLOBAL_FLAGS[_0x50d522(0x207)](_0x427f44=>[_0x427f44['meowKey'],{'type':_0x427f44[_0x50d522(0x1e2)]}]));}
1
+ const a55_0x22a3da=a55_0x5cc4;(function(_0x102bc7,_0x54fd43){const _0x36f0cf=a55_0x5cc4,_0x44bde4=_0x102bc7();while(!![]){try{const _0x1750c0=-parseInt(_0x36f0cf(0x1df))/0x1+-parseInt(_0x36f0cf(0x1d8))/0x2+parseInt(_0x36f0cf(0x1d7))/0x3*(-parseInt(_0x36f0cf(0x201))/0x4)+-parseInt(_0x36f0cf(0x200))/0x5*(-parseInt(_0x36f0cf(0x1d3))/0x6)+parseInt(_0x36f0cf(0x1f6))/0x7*(parseInt(_0x36f0cf(0x1e2))/0x8)+parseInt(_0x36f0cf(0x202))/0x9*(parseInt(_0x36f0cf(0x1ea))/0xa)+parseInt(_0x36f0cf(0x1f4))/0xb;if(_0x1750c0===_0x54fd43)break;else _0x44bde4['push'](_0x44bde4['shift']());}catch(_0x341787){_0x44bde4['push'](_0x44bde4['shift']());}}}(a55_0x482d,0x51a97));function a55_0x5cc4(_0x4fe519,_0x2257b8){_0x4fe519=_0x4fe519-0x1d3;const _0x482d6b=a55_0x482d();let _0x5cc418=_0x482d6b[_0x4fe519];return _0x5cc418;}import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';function a55_0x482d(){const _0x966ae9=['<code>','format','meowKey','non-interactive','map','26385JCIHUJ','26888lelCqk','1208286FsdUme','SQL\x20query\x20code','216kEVZGu','Verbose\x20output','Clear\x20output','Show\x20help','144DBouuI','1267394qWwQGU','appcode','Preview\x20operation\x20without\x20executing','Name\x20filter','dry-run','Select\x20app\x20profile\x20by\x20name','production\x20|\x20development\x20|\x20daily','280693qCQVAa','global','env','286088LHJino','Alias\x20for\x20--non-interactive','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','Skip\x20confirmation\x20for\x20high-risk\x20writes','Record\x20ID','fromEntries','<expr>','boolean','10vIlKvt','cliBinName','json\x20|\x20pretty\x20|\x20compress','string','clear','app','JSON\x20params\x20for\x20execute\x20commands','yes','sqlcode','Override\x20appcode','8606554genReV','<name>','91lWvsMV','params','help','name','type'];a55_0x482d=function(){return _0x966ae9;};return a55_0x482d();}export const CLI_BIN_NAME=PRODUCT_CONFIG[a55_0x22a3da(0x1eb)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':'appcode','type':'string','description':a55_0x22a3da(0x1f3),'hint':a55_0x22a3da(0x1fb)},{'name':a55_0x22a3da(0x1ef),'meowKey':a55_0x22a3da(0x1ef),'type':a55_0x22a3da(0x1ed),'description':a55_0x22a3da(0x1dd),'hint':a55_0x22a3da(0x1f5)},{'name':a55_0x22a3da(0x1e1),'meowKey':'env','type':'string','description':'Environment','hint':a55_0x22a3da(0x1de)},{'name':'format','meowKey':'format','type':a55_0x22a3da(0x1ed),'description':'Output\x20format','hint':a55_0x22a3da(0x1ec)},{'name':'jq','meowKey':'jq','type':a55_0x22a3da(0x1ed),'description':a55_0x22a3da(0x1e4),'hint':a55_0x22a3da(0x1e8)},{'name':a55_0x22a3da(0x1dc),'meowKey':'dryRun','type':'boolean','description':a55_0x22a3da(0x1da)},{'name':a55_0x22a3da(0x1f1),'meowKey':a55_0x22a3da(0x1f1),'type':a55_0x22a3da(0x1e9),'description':a55_0x22a3da(0x1e5)},{'name':a55_0x22a3da(0x1fe),'meowKey':'nonInteractive','type':a55_0x22a3da(0x1e9),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':a55_0x22a3da(0x1e0),'type':'boolean','description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a55_0x22a3da(0x1e3),'hidden':!![]},{'name':'help','meowKey':a55_0x22a3da(0x1f8),'type':a55_0x22a3da(0x1e9),'description':a55_0x22a3da(0x1d6)},{'name':'id','meowKey':'id','type':a55_0x22a3da(0x1ed),'description':a55_0x22a3da(0x1e6),'hidden':!![]},{'name':a55_0x22a3da(0x1f9),'meowKey':a55_0x22a3da(0x1f9),'type':a55_0x22a3da(0x1ed),'description':a55_0x22a3da(0x1db),'hidden':!![]},{'name':a55_0x22a3da(0x1f2),'meowKey':'sqlcode','type':a55_0x22a3da(0x1ed),'description':a55_0x22a3da(0x203),'hidden':!![]},{'name':a55_0x22a3da(0x1f7),'meowKey':a55_0x22a3da(0x1f7),'type':a55_0x22a3da(0x1ed),'description':a55_0x22a3da(0x1f0),'hidden':!![]},{'name':'verbose','meowKey':'verbose','type':'boolean','description':a55_0x22a3da(0x1d4),'hidden':!![]},{'name':'clear','meowKey':a55_0x22a3da(0x1ee),'type':a55_0x22a3da(0x1e9),'description':a55_0x22a3da(0x1d5),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a55_0x22a3da(0x1d9),a55_0x22a3da(0x1ef),a55_0x22a3da(0x1e1),a55_0x22a3da(0x1fc),'jq',a55_0x22a3da(0x1dc),'yes','non-interactive','ci']);export function buildMeowFlags(){const _0x926e26=a55_0x22a3da;return Object[_0x926e26(0x1e7)](GLOBAL_FLAGS[_0x926e26(0x1ff)](_0x1cf52c=>[_0x1cf52c[_0x926e26(0x1fd)],{'type':_0x1cf52c[_0x926e26(0x1fa)]}]));}
@@ -1 +1 @@
1
- function a56_0x5871(_0x4d3ae1,_0x241cb2){_0x4d3ae1=_0x4d3ae1-0x16f;const _0x5203af=a56_0x5203();let _0x587158=_0x5203af[_0x4d3ae1];return _0x587158;}const a56_0xc99823=a56_0x5871;(function(_0x334314,_0x2f102a){const _0x3e6ec0=a56_0x5871,_0x24e62d=_0x334314();while(!![]){try{const _0x45499c=-parseInt(_0x3e6ec0(0x17c))/0x1+parseInt(_0x3e6ec0(0x17a))/0x2*(parseInt(_0x3e6ec0(0x171))/0x3)+-parseInt(_0x3e6ec0(0x16f))/0x4+-parseInt(_0x3e6ec0(0x178))/0x5*(parseInt(_0x3e6ec0(0x172))/0x6)+parseInt(_0x3e6ec0(0x176))/0x7*(-parseInt(_0x3e6ec0(0x175))/0x8)+parseInt(_0x3e6ec0(0x170))/0x9*(parseInt(_0x3e6ec0(0x174))/0xa)+-parseInt(_0x3e6ec0(0x177))/0xb*(-parseInt(_0x3e6ec0(0x17b))/0xc);if(_0x45499c===_0x2f102a)break;else _0x24e62d['push'](_0x24e62d['shift']());}catch(_0x3b12a6){_0x24e62d['push'](_0x24e62d['shift']());}}}(a56_0x5203,0x7d92e));export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':'production','format':a56_0xc99823(0x179),'locale':'en-US','riskLevel':a56_0xc99823(0x173)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a56_0xc99823(0x179);function a56_0x5203(){const _0x16f16a=['63MmsShK','2457003caemUb','12syNifA','write','240230XkfkIJ','232bEDCcq','222187NfFvBq','3861FhPWVX','447110pUhVVp','compress','2uOVviV','40152iRpgKU','206548agxSAr','1365508KgDLVQ'];a56_0x5203=function(){return _0x16f16a;};return a56_0x5203();}
1
+ function a56_0xf54e(_0x1fd943,_0x2b138a){_0x1fd943=_0x1fd943-0x169;const _0x2fde81=a56_0x2fde();let _0xf54e30=_0x2fde81[_0x1fd943];return _0xf54e30;}function a56_0x2fde(){const _0x45dbf1=['10044167wICuim','main','428JggpGj','7561026NHtENT','9036387oplwPI','write','1119530lOzPLy','production','9568328fvPMKD','compress','11076mKmUcc','en-US','4ydroAk','61767oDzfXO'];a56_0x2fde=function(){return _0x45dbf1;};return a56_0x2fde();}const a56_0x79b74a=a56_0xf54e;(function(_0x3b53f6,_0x2921d1){const _0x240e9f=a56_0xf54e,_0x4026f3=_0x3b53f6();while(!![]){try{const _0x297131=-parseInt(_0x240e9f(0x174))/0x1+-parseInt(_0x240e9f(0x169))/0x2*(-parseInt(_0x240e9f(0x171))/0x3)+parseInt(_0x240e9f(0x173))/0x4*(-parseInt(_0x240e9f(0x16d))/0x5)+-parseInt(_0x240e9f(0x16a))/0x6+parseInt(_0x240e9f(0x175))/0x7+parseInt(_0x240e9f(0x16f))/0x8+-parseInt(_0x240e9f(0x16b))/0x9;if(_0x297131===_0x2921d1)break;else _0x4026f3['push'](_0x4026f3['shift']());}catch(_0x372f94){_0x4026f3['push'](_0x4026f3['shift']());}}}(a56_0x2fde,0xd4ad3));export const DEFAULT_APP_PROFILE_NAME=a56_0x79b74a(0x176);export const DEFAULT_CONFIG_VALUES={'env':a56_0x79b74a(0x16e),'format':a56_0x79b74a(0x170),'locale':a56_0x79b74a(0x172),'riskLevel':a56_0x79b74a(0x16c)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a56_0x79b74a(0x170);
@@ -1 +1 @@
1
- const a57_0x4fa737=a57_0x2982;(function(_0x490163,_0xe59ca1){const _0x288e26=a57_0x2982,_0x345bf6=_0x490163();while(!![]){try{const _0x1f7758=parseInt(_0x288e26(0x100))/0x1+-parseInt(_0x288e26(0x10a))/0x2+parseInt(_0x288e26(0x102))/0x3*(-parseInt(_0x288e26(0xff))/0x4)+-parseInt(_0x288e26(0x104))/0x5+parseInt(_0x288e26(0x105))/0x6*(-parseInt(_0x288e26(0x107))/0x7)+-parseInt(_0x288e26(0x109))/0x8+-parseInt(_0x288e26(0x106))/0x9*(-parseInt(_0x288e26(0x101))/0xa);if(_0x1f7758===_0xe59ca1)break;else _0x345bf6['push'](_0x345bf6['shift']());}catch(_0x357e00){_0x345bf6['push'](_0x345bf6['shift']());}}}(a57_0x1626,0x928f6));function a57_0x1626(){const _0x5befc2=['28375660rgqkMS','33zuOPGC','skillSource','4834010JbVtqK','15882LdFBSg','9AlMGDB','2289cqXQou','npmRegistryBaseUrl','5130480KKAjnk','807920jtMIJK','npmPackageName','137228zdHokZ','1017762sBIgmX'];a57_0x1626=function(){return _0x5befc2;};return a57_0x1626();}import{PRODUCT_CONFIG}from'../constant/product.js';function a57_0x2982(_0x5a6d83,_0x5b5846){_0x5a6d83=_0x5a6d83-0xfe;const _0x162626=a57_0x1626();let _0x298281=_0x162626[_0x5a6d83];return _0x298281;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a57_0x4fa737(0xfe)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a57_0x4fa737(0x103)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a57_0x4fa737(0x108)];
1
+ const a57_0x1ce629=a57_0x50ad;(function(_0x28e780,_0x9a5511){const _0x3ca387=a57_0x50ad,_0x2b92c2=_0x28e780();while(!![]){try{const _0x5ca080=-parseInt(_0x3ca387(0x150))/0x1*(parseInt(_0x3ca387(0x148))/0x2)+parseInt(_0x3ca387(0x14a))/0x3+parseInt(_0x3ca387(0x14c))/0x4*(parseInt(_0x3ca387(0x14f))/0x5)+parseInt(_0x3ca387(0x152))/0x6+-parseInt(_0x3ca387(0x14b))/0x7+-parseInt(_0x3ca387(0x14d))/0x8+-parseInt(_0x3ca387(0x151))/0x9*(-parseInt(_0x3ca387(0x149))/0xa);if(_0x5ca080===_0x9a5511)break;else _0x2b92c2['push'](_0x2b92c2['shift']());}catch(_0x302a50){_0x2b92c2['push'](_0x2b92c2['shift']());}}}(a57_0x2284,0x6e7f0));function a57_0x50ad(_0x465c02,_0x2cbe66){_0x465c02=_0x465c02-0x148;const _0x22846c=a57_0x2284();let _0x50ad39=_0x22846c[_0x465c02];return _0x50ad39;}function a57_0x2284(){const _0x392af4=['2359890GwAtZW','22462KaptAX','23220QDvlLZ','2460825cZPMLG','6073403nxzAex','3156QWdgiU','2824840SpqYlJ','npmRegistryBaseUrl','2890xAtGRW','22KmnZrJ','972EuXHOL'];a57_0x2284=function(){return _0x392af4;};return a57_0x2284();}import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a57_0x1ce629(0x14e)];
@@ -1 +1 @@
1
- const a58_0x2e735e=a58_0x8279;(function(_0x224e49,_0x2e0ae){const _0x262be4=a58_0x8279,_0x47b1e5=_0x224e49();while(!![]){try{const _0x5d8e84=parseInt(_0x262be4(0x10d))/0x1*(-parseInt(_0x262be4(0x10b))/0x2)+-parseInt(_0x262be4(0x108))/0x3+-parseInt(_0x262be4(0x114))/0x4+parseInt(_0x262be4(0x110))/0x5*(-parseInt(_0x262be4(0x109))/0x6)+-parseInt(_0x262be4(0x10c))/0x7+parseInt(_0x262be4(0x112))/0x8+parseInt(_0x262be4(0x116))/0x9;if(_0x5d8e84===_0x2e0ae)break;else _0x47b1e5['push'](_0x47b1e5['shift']());}catch(_0x1ad627){_0x47b1e5['push'](_0x47b1e5['shift']());}}}(a58_0xdb07,0x86d88));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a58_0x8279(_0x389903,_0xa52ff4){_0x389903=_0x389903-0x106;const _0xdb07d3=a58_0xdb07();let _0x827913=_0xdb07d3[_0x389903];return _0x827913;}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x3a8c27){const _0x526e22=a58_0x8279;customApiDomain=_0x3a8c27?.[_0x526e22(0x106)],customUserDomain=_0x3a8c27?.[_0x526e22(0x115)],customRuntimeDomain=_0x3a8c27?.['runtimeDomain'],customSkillHubDomain=_0x3a8c27?.[_0x526e22(0x113)];}function a58_0xdb07(){const _0x1542e7=['domains','runtime','4150215VyVjTH','nonProduction','4464760zOXVFf','skillHubDomain','1646936TnAMyK','userDomain','22260267OlJraJ','skillhub','api','apiDomain','user','622182lyZius','6bXIORZ','production','2yAUWaI','2281125LjssMN','704084ZXNkpQ'];a58_0xdb07=function(){return _0x1542e7;};return a58_0xdb07();}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x2e735e(0x10e)][a58_0x2e735e(0x10a)][a58_0x2e735e(0x107)]:PRODUCT_CONFIG[a58_0x2e735e(0x10e)]['nonProduction']['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x2e735e(0x10e)][a58_0x2e735e(0x10a)][a58_0x2e735e(0x118)]:PRODUCT_CONFIG['domains'][a58_0x2e735e(0x111)][a58_0x2e735e(0x118)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x2e735e(0x10e)][a58_0x2e735e(0x10a)][a58_0x2e735e(0x10f)]:PRODUCT_CONFIG[a58_0x2e735e(0x10e)][a58_0x2e735e(0x111)][a58_0x2e735e(0x10f)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x2e735e(0x10e)][a58_0x2e735e(0x10a)][a58_0x2e735e(0x117)]:PRODUCT_CONFIG[a58_0x2e735e(0x10e)][a58_0x2e735e(0x111)][a58_0x2e735e(0x117)]);
1
+ const a58_0x5eb87e=a58_0x1c2f;(function(_0x51433b,_0x2fad6b){const _0x51d285=a58_0x1c2f,_0x382898=_0x51433b();while(!![]){try{const _0x3d28a1=parseInt(_0x51d285(0x7b))/0x1+parseInt(_0x51d285(0x71))/0x2*(parseInt(_0x51d285(0x7f))/0x3)+parseInt(_0x51d285(0x6e))/0x4*(-parseInt(_0x51d285(0x7d))/0x5)+-parseInt(_0x51d285(0x7a))/0x6+parseInt(_0x51d285(0x7e))/0x7*(-parseInt(_0x51d285(0x78))/0x8)+parseInt(_0x51d285(0x70))/0x9*(-parseInt(_0x51d285(0x80))/0xa)+-parseInt(_0x51d285(0x76))/0xb*(-parseInt(_0x51d285(0x75))/0xc);if(_0x3d28a1===_0x2fad6b)break;else _0x382898['push'](_0x382898['shift']());}catch(_0x49b94a){_0x382898['push'](_0x382898['shift']());}}}(a58_0x2325,0xb1b7c));function a58_0x1c2f(_0x24b421,_0x4c1078){_0x24b421=_0x24b421-0x6a;const _0x2325fe=a58_0x2325();let _0x1c2fca=_0x2325fe[_0x24b421];return _0x1c2fca;}import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x51e39d){const _0x1dfb3b=a58_0x1c2f;customApiDomain=_0x51e39d?.[_0x1dfb3b(0x72)],customUserDomain=_0x51e39d?.[_0x1dfb3b(0x73)],customRuntimeDomain=_0x51e39d?.[_0x1dfb3b(0x74)],customSkillHubDomain=_0x51e39d?.[_0x1dfb3b(0x7c)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x5eb87e(0x6c)][a58_0x5eb87e(0x6a)][a58_0x5eb87e(0x6b)]:PRODUCT_CONFIG[a58_0x5eb87e(0x6c)][a58_0x5eb87e(0x6d)][a58_0x5eb87e(0x6b)]);function a58_0x2325(){const _0x331f3b=['runtimeDomain','6161496ajAdwJ','55wIkMcY','skillhub','164712gcZpJp','api','7025124cdgheV','214855UWVRDG','skillHubDomain','10rZKjTF','287PKiSvJ','249978ScqbRR','1292410rNdULE','production','user','domains','nonProduction','510344nLffsH','runtime','72eziQSO','30aEafgk','apiDomain','userDomain'];a58_0x2325=function(){return _0x331f3b;};return a58_0x2325();}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x5eb87e(0x6c)]['production'][a58_0x5eb87e(0x79)]:PRODUCT_CONFIG[a58_0x5eb87e(0x6c)]['nonProduction']['api']);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x5eb87e(0x6c)]['production'][a58_0x5eb87e(0x6f)]:PRODUCT_CONFIG[a58_0x5eb87e(0x6c)][a58_0x5eb87e(0x6d)][a58_0x5eb87e(0x6f)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x5eb87e(0x6c)][a58_0x5eb87e(0x6a)][a58_0x5eb87e(0x77)]:PRODUCT_CONFIG[a58_0x5eb87e(0x6c)][a58_0x5eb87e(0x6d)][a58_0x5eb87e(0x77)]);
@@ -1 +1 @@
1
- const a59_0x130f70=a59_0x9e72;(function(_0xba7700,_0x46f334){const _0x21df33=a59_0x9e72,_0x33389b=_0xba7700();while(!![]){try{const _0x5248b7=parseInt(_0x21df33(0xf6))/0x1*(-parseInt(_0x21df33(0xf9))/0x2)+-parseInt(_0x21df33(0xfb))/0x3*(-parseInt(_0x21df33(0xfd))/0x4)+-parseInt(_0x21df33(0x102))/0x5*(parseInt(_0x21df33(0x100))/0x6)+parseInt(_0x21df33(0xf7))/0x7+-parseInt(_0x21df33(0xff))/0x8*(-parseInt(_0x21df33(0xfe))/0x9)+-parseInt(_0x21df33(0x103))/0xa*(-parseInt(_0x21df33(0xf5))/0xb)+parseInt(_0x21df33(0xfa))/0xc*(-parseInt(_0x21df33(0x101))/0xd);if(_0x5248b7===_0x46f334)break;else _0x33389b['push'](_0x33389b['shift']());}catch(_0x47c3db){_0x33389b['push'](_0x33389b['shift']());}}}(a59_0xe057,0xe933e));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a59_0x130f70(0xfc),a59_0x130f70(0xf3),a59_0x130f70(0xf4)];export function normalizeEnv(_0x2b77af){const _0x4c1446=a59_0x130f70;return _0x2b77af===_0x4c1446(0x104)?'production':_0x2b77af;}export function isProduction(_0x5eccac){return normalizeEnv(_0x5eccac)==='production';}export function isDaily(_0x2636b8){const _0x54f46e=a59_0x130f70;return normalizeEnv(_0x2636b8)===_0x54f46e(0xf4);}export function isDev(_0x413849){const _0x38c25c=normalizeEnv(_0x413849);return _0x38c25c==='development'||_0x38c25c==='dev';}let env=normalizeEnv(productEnv(a59_0x130f70(0xf8))||a59_0x130f70(0xfc));function a59_0x9e72(_0x35c6a7,_0x25cb3f){_0x35c6a7=_0x35c6a7-0xf3;const _0xe0578d=a59_0xe057();let _0x9e720d=_0xe0578d[_0x35c6a7];return _0x9e720d;}function a59_0xe057(){const _0x57a1db=['40ovQvds','3164268tknNmA','2041XGZPdN','5Ptwvlm','32670NuGnIi','online','development','daily','3619goDJAH','1252371LQnNAy','8030932HpPfIL','ENV','2zDQsif','182568LcMuWZ','4583883QvSHHO','production','4ZDBqQp','2472237yJqHsM'];a59_0xe057=function(){return _0x57a1db;};return a59_0xe057();}export function getEnv(){return env;}export function initEnv(_0x4732fa){env=normalizeEnv(_0x4732fa);}
1
+ function a59_0x3dfd(){const _0x2873d1=['5eimDxE','3yzvnIQ','daily','216GdpzpX','production','539888UNNfnM','14admHZT','180584aJvWdS','84FyzmzZ','development','1925495htRgpJ','431332blLyIT','38510vVQwvX','dev','online','897366CJqokA','ENV','3QUnXDb','172936VpwgLi'];a59_0x3dfd=function(){return _0x2873d1;};return a59_0x3dfd();}const a59_0x6a06ce=a59_0x5b20;(function(_0x5051ac,_0x488793){const _0x5ba49c=a59_0x5b20,_0x5a735a=_0x5051ac();while(!![]){try{const _0x5b48fd=parseInt(_0x5ba49c(0x18b))/0x1*(parseInt(_0x5ba49c(0x189))/0x2)+-parseInt(_0x5ba49c(0x188))/0x3*(parseInt(_0x5ba49c(0x18f))/0x4)+-parseInt(_0x5ba49c(0x18a))/0x5*(parseInt(_0x5ba49c(0x186))/0x6)+-parseInt(_0x5ba49c(0x17d))/0x7*(parseInt(_0x5ba49c(0x17e))/0x8)+-parseInt(_0x5ba49c(0x18d))/0x9*(-parseInt(_0x5ba49c(0x183))/0xa)+parseInt(_0x5ba49c(0x182))/0xb*(parseInt(_0x5ba49c(0x17f))/0xc)+-parseInt(_0x5ba49c(0x181))/0xd;if(_0x5b48fd===_0x488793)break;else _0x5a735a['push'](_0x5a735a['shift']());}catch(_0x4fff93){_0x5a735a['push'](_0x5a735a['shift']());}}}(a59_0x3dfd,0x24426));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a59_0x6a06ce(0x18e),'development',a59_0x6a06ce(0x18c)];export function normalizeEnv(_0x2e83a2){const _0x17cb82=a59_0x6a06ce;return _0x2e83a2===_0x17cb82(0x185)?_0x17cb82(0x18e):_0x2e83a2;}export function isProduction(_0x5f3523){const _0x22c41d=a59_0x6a06ce;return normalizeEnv(_0x5f3523)===_0x22c41d(0x18e);}export function isDaily(_0x5cfd54){const _0x54ee78=a59_0x6a06ce;return normalizeEnv(_0x5cfd54)===_0x54ee78(0x18c);}export function isDev(_0x34b2e3){const _0x458a4e=a59_0x6a06ce,_0x25b041=normalizeEnv(_0x34b2e3);return _0x25b041===_0x458a4e(0x180)||_0x25b041===_0x458a4e(0x184);}let env=normalizeEnv(productEnv(a59_0x6a06ce(0x187))||a59_0x6a06ce(0x18e));function a59_0x5b20(_0xa85d13,_0x538133){_0xa85d13=_0xa85d13-0x17d;const _0x3dfd77=a59_0x3dfd();let _0x5b202f=_0x3dfd77[_0xa85d13];return _0x5b202f;}export function getEnv(){return env;}export function initEnv(_0x245e62){env=normalizeEnv(_0x245e62);}
@@ -1 +1 @@
1
- const a60_0x57ef5a=a60_0x27ad;function a60_0x27ad(_0x1c8b58,_0x12d360){_0x1c8b58=_0x1c8b58-0x177;const _0x5f521f=a60_0x5f52();let _0x27adb4=_0x5f521f[_0x1c8b58];return _0x27adb4;}(function(_0x44f295,_0x4e9c1e){const _0x269ea8=a60_0x27ad,_0x4df4b8=_0x44f295();while(!![]){try{const _0x529e75=parseInt(_0x269ea8(0x177))/0x1*(-parseInt(_0x269ea8(0x179))/0x2)+parseInt(_0x269ea8(0x17c))/0x3+-parseInt(_0x269ea8(0x178))/0x4*(-parseInt(_0x269ea8(0x181))/0x5)+parseInt(_0x269ea8(0x17b))/0x6+parseInt(_0x269ea8(0x180))/0x7*(parseInt(_0x269ea8(0x17a))/0x8)+-parseInt(_0x269ea8(0x17d))/0x9+-parseInt(_0x269ea8(0x17f))/0xa;if(_0x529e75===_0x4e9c1e)break;else _0x4df4b8['push'](_0x4df4b8['shift']());}catch(_0x14be02){_0x4df4b8['push'](_0x4df4b8['shift']());}}}(a60_0x5f52,0x63b5d));function a60_0x5f52(){const _0x54911d=['3309GrDBNE','32nslXrz','302BpMssd','1932112gNHWUj','625488dWAsSk','2429742aJcrTK','2561778qYMOOD','pretty','2896100BmRsRs','7NrWzzp','204155cRqwaL'];a60_0x5f52=function(){return _0x54911d;};return a60_0x5f52();}export const OUTPUT_FORMAT_VALUES=['json',a60_0x57ef5a(0x17e),'compress'];
1
+ function a60_0x1421(){const _0x4a187a=['349668riYGuZ','5NexSJF','1322930rvdvtv','pretty','196600pXHncu','2920524jMNaXG','4003901LeuRqF','356127DQrPhE','9fClgFY','434qKjkAF','1836110yLvuUB','4LlXpQe'];a60_0x1421=function(){return _0x4a187a;};return a60_0x1421();}function a60_0x372b(_0x27c1ee,_0x253f29){_0x27c1ee=_0x27c1ee-0x18b;const _0x142193=a60_0x1421();let _0x372bc5=_0x142193[_0x27c1ee];return _0x372bc5;}const a60_0x5c3e54=a60_0x372b;(function(_0x37eaa4,_0x490d2c){const _0x73d017=a60_0x372b,_0x18f25a=_0x37eaa4();while(!![]){try{const _0x9fdbf=-parseInt(_0x73d017(0x192))/0x1+parseInt(_0x73d017(0x190))/0x2+-parseInt(_0x73d017(0x18b))/0x3*(-parseInt(_0x73d017(0x18f))/0x4)+parseInt(_0x73d017(0x191))/0x5*(parseInt(_0x73d017(0x195))/0x6)+parseInt(_0x73d017(0x18d))/0x7*(parseInt(_0x73d017(0x194))/0x8)+parseInt(_0x73d017(0x18c))/0x9*(parseInt(_0x73d017(0x18e))/0xa)+-parseInt(_0x73d017(0x196))/0xb;if(_0x9fdbf===_0x490d2c)break;else _0x18f25a['push'](_0x18f25a['shift']());}catch(_0x4e023d){_0x18f25a['push'](_0x18f25a['shift']());}}}(a60_0x1421,0xc377d));export const OUTPUT_FORMAT_VALUES=['json',a60_0x5c3e54(0x193),'compress'];
@@ -1 +1 @@
1
- const a61_0x56e26c=a61_0x60d5;(function(_0x10f16a,_0x45ff70){const _0xc490c5=a61_0x60d5,_0x87518d=_0x10f16a();while(!![]){try{const _0x39f4cc=parseInt(_0xc490c5(0x1e3))/0x1+parseInt(_0xc490c5(0x1e9))/0x2+parseInt(_0xc490c5(0x1db))/0x3+parseInt(_0xc490c5(0x1ea))/0x4+-parseInt(_0xc490c5(0x1d8))/0x5*(parseInt(_0xc490c5(0x1dd))/0x6)+-parseInt(_0xc490c5(0x1df))/0x7*(-parseInt(_0xc490c5(0x1d9))/0x8)+-parseInt(_0xc490c5(0x1e1))/0x9;if(_0x39f4cc===_0x45ff70)break;else _0x87518d['push'](_0x87518d['shift']());}catch(_0x16155a){_0x87518d['push'](_0x87518d['shift']());}}}(a61_0x2813,0x73cf6));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a61_0x56e26c(0x1e6),'npmPackageName':a61_0x56e26c(0x1e7),'skillSource':'lovrabet/lovrabet-cli','npmRegistryBaseUrl':'https://registry.npmjs.org','envPrefix':'LOVRABET','legacyEnvPrefixes':['RABETBASE'],'configFileNames':[a61_0x56e26c(0x1da),'.lovrabetrc'],'newConfigFileName':a61_0x56e26c(0x1da),'homeDirName':'.lovrabet','logFileName':a61_0x56e26c(0x1d7),'invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a61_0x56e26c(0x1e8),'domains':{'production':{'user':a61_0x56e26c(0x1e4),'api':a61_0x56e26c(0x1e5),'runtime':a61_0x56e26c(0x1e0),'skillhub':a61_0x56e26c(0x1d5)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':'https://daily-api.lovrabet.com','runtime':a61_0x56e26c(0x1de),'skillhub':a61_0x56e26c(0x1e2)}},'accessKeyCreatePath':a61_0x56e26c(0x1dc)};function a61_0x60d5(_0x15517b,_0xa8d897){_0x15517b=_0x15517b-0x1d5;const _0x2813b3=a61_0x2813();let _0x60d571=_0x2813b3[_0x15517b];return _0x60d571;}export function productEnvName(_0x5f46b0){const _0x25fda6=a61_0x56e26c;return PRODUCT_CONFIG[_0x25fda6(0x1eb)]+'_'+_0x5f46b0;}export function productEnvNames(_0x7f5b62){const _0x16017a=a61_0x56e26c;return[productEnvName(_0x7f5b62),...PRODUCT_CONFIG['legacyEnvPrefixes'][_0x16017a(0x1d6)](_0x2c1cf7=>_0x2c1cf7+'_'+_0x7f5b62)];}function a61_0x2813(){const _0xb15648=['https://skills.lovrabet.com','map','.lovrabet-runtime.log','5GcLjLf','1704ZszuMv','.lovrabet.json','98619PkKLKM','/user/ak','1521654mhLPjY','https://daily-runtime.lovrabet.com','10157MlHegW','https://runtime.lovrabet.com','9816858UvWWfJ','https://skills-daily.lovrabet.com','656329wAYBcP','https://user.lovrabet.com','https://api.lovrabet.com','Lovrabet\x20Runtime\x20CLI','@lovrabet/lovrabet-cli','SKIP_NPX_SKILLS','1427718lzAiUx','426420SndsWl','envPrefix'];a61_0x2813=function(){return _0xb15648;};return a61_0x2813();}export function productEnv(_0x15375a){for(const _0xabcf95 of productEnvNames(_0x15375a)){const _0x105692=process.env[_0xabcf95];if(_0x105692!==undefined)return _0x105692;}return undefined;}
1
+ function a61_0x30b7(_0x3114de,_0x495d1f){_0x3114de=_0x3114de-0xbf;const _0x317da0=a61_0x317d();let _0x30b7f4=_0x317da0[_0x3114de];return _0x30b7f4;}const a61_0x45f6c8=a61_0x30b7;(function(_0x9bc92f,_0x150f2f){const _0x2b989a=a61_0x30b7,_0x277384=_0x9bc92f();while(!![]){try{const _0x2c71ad=parseInt(_0x2b989a(0xd6))/0x1*(-parseInt(_0x2b989a(0xcf))/0x2)+parseInt(_0x2b989a(0xd8))/0x3*(parseInt(_0x2b989a(0xbf))/0x4)+-parseInt(_0x2b989a(0xca))/0x5*(-parseInt(_0x2b989a(0xc7))/0x6)+-parseInt(_0x2b989a(0xd0))/0x7+parseInt(_0x2b989a(0xcd))/0x8*(parseInt(_0x2b989a(0xc5))/0x9)+-parseInt(_0x2b989a(0xd3))/0xa*(-parseInt(_0x2b989a(0xc2))/0xb)+-parseInt(_0x2b989a(0xda))/0xc*(-parseInt(_0x2b989a(0xcb))/0xd);if(_0x2c71ad===_0x150f2f)break;else _0x277384['push'](_0x277384['shift']());}catch(_0x2c40a8){_0x277384['push'](_0x277384['shift']());}}}(a61_0x317d,0x77105));function a61_0x317d(){const _0x436224=['536858lxZwgZ','@lovrabet/lovrabet-cli','.lovrabet.json','10fcsQYh','lovrabet','Lovrabet\x20Runtime\x20CLI','325027PRjhxT','https://skills.lovrabet.com','3ZVaIaS','RABETBASE','788088svdwKB','cli:lovrabet-runtime','.lovrabet','legacyEnvPrefixes','554104IHwOvF','lovrabet/lovrabet-cli','.lovrabetrc','5240884mmyODl','SKIP_NPX_SKILLS','envPrefix','59607DTkzxz','https://user.lovrabet.com','6BbERnZ','.lovrabet-runtime.log','https://daily-runtime.lovrabet.com','2348635XmDrNn','52kWOXne','LOVRABET','232sUhmsx','https://daily-api.lovrabet.com','6XpcUaN'];a61_0x317d=function(){return _0x436224;};return a61_0x317d();}export const PRODUCT_CONFIG={'cliBinName':a61_0x45f6c8(0xd4),'cliDisplayName':a61_0x45f6c8(0xd5),'npmPackageName':a61_0x45f6c8(0xd1),'skillSource':a61_0x45f6c8(0xc0),'npmRegistryBaseUrl':'https://registry.npmjs.org','envPrefix':a61_0x45f6c8(0xcc),'legacyEnvPrefixes':[a61_0x45f6c8(0xd9)],'configFileNames':[a61_0x45f6c8(0xd2),a61_0x45f6c8(0xc1)],'newConfigFileName':a61_0x45f6c8(0xd2),'homeDirName':a61_0x45f6c8(0xdc),'logFileName':a61_0x45f6c8(0xc8),'invokeSource':a61_0x45f6c8(0xdb),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a61_0x45f6c8(0xc3),'domains':{'production':{'user':a61_0x45f6c8(0xc6),'api':'https://api.lovrabet.com','runtime':'https://runtime.lovrabet.com','skillhub':a61_0x45f6c8(0xd7)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':a61_0x45f6c8(0xce),'runtime':a61_0x45f6c8(0xc9),'skillhub':'https://skills-daily.lovrabet.com'}},'accessKeyCreatePath':'/user/ak'};export function productEnvName(_0x149f30){const _0x1228cd=a61_0x45f6c8;return PRODUCT_CONFIG[_0x1228cd(0xc4)]+'_'+_0x149f30;}export function productEnvNames(_0x564b6b){const _0x48507d=a61_0x45f6c8;return[productEnvName(_0x564b6b),...PRODUCT_CONFIG[_0x48507d(0xdd)]['map'](_0x31b34e=>_0x31b34e+'_'+_0x564b6b)];}export function productEnv(_0x98a06){for(const _0xf189c1 of productEnvNames(_0x98a06)){const _0x24f084=process.env[_0xf189c1];if(_0x24f084!==undefined)return _0x24f084;}return undefined;}
@@ -1 +1 @@
1
- const a62_0x442110=a62_0x20b0;(function(_0x327848,_0x30ad7b){const _0x19e77f=a62_0x20b0,_0x5e8b33=_0x327848();while(!![]){try{const _0x285b09=-parseInt(_0x19e77f(0x16e))/0x1+parseInt(_0x19e77f(0x16f))/0x2*(-parseInt(_0x19e77f(0x167))/0x3)+-parseInt(_0x19e77f(0x16c))/0x4+-parseInt(_0x19e77f(0x16d))/0x5*(-parseInt(_0x19e77f(0x165))/0x6)+parseInt(_0x19e77f(0x16a))/0x7*(parseInt(_0x19e77f(0x169))/0x8)+-parseInt(_0x19e77f(0x164))/0x9*(parseInt(_0x19e77f(0x170))/0xa)+parseInt(_0x19e77f(0x16b))/0xb;if(_0x285b09===_0x30ad7b)break;else _0x5e8b33['push'](_0x5e8b33['shift']());}catch(_0x3b1c79){_0x5e8b33['push'](_0x5e8b33['shift']());}}}(a62_0x4633,0x8946d));function a62_0x20b0(_0x1d52a2,_0x335fee){_0x1d52a2=_0x1d52a2-0x164;const _0x463387=a62_0x4633();let _0x20b0d5=_0x463387[_0x1d52a2];return _0x20b0d5;}function a62_0x4633(){const _0x5b7a08=['752280NTJYFX','400066dhVXIL','2744530zulJjS','9ZrhmyH','18wEJcWp','high-risk-write','3kNkDWa','read','138808HxckRk','259klaEuo','16727942rdJDqG','3982028zaphai','1036415yXXAte'];a62_0x4633=function(){return _0x5b7a08;};return a62_0x4633();}export const RISK_LEVEL_VALUES=[a62_0x442110(0x168),'write',a62_0x442110(0x166)];
1
+ function a62_0xeebe(){const _0xa64580=['2864436YdiOWP','650486icguLe','154BVxtuk','5547774dFBiNH','7EZWuae','6962504dEawFi','10ZPoJJi','48COoBeo','2430702PtBmiD','50RpvETT','read','write','342252CJOaJd','19158BRhcEn'];a62_0xeebe=function(){return _0xa64580;};return a62_0xeebe();}function a62_0x216d(_0x28a505,_0x52a854){_0x28a505=_0x28a505-0x1c3;const _0xeebebc=a62_0xeebe();let _0x216d47=_0xeebebc[_0x28a505];return _0x216d47;}const a62_0x34802e=a62_0x216d;(function(_0x104e89,_0x2a8121){const _0x35944a=a62_0x216d,_0x47f830=_0x104e89();while(!![]){try{const _0xf57ce7=-parseInt(_0x35944a(0x1ce))/0x1+parseInt(_0x35944a(0x1cc))/0x2*(parseInt(_0x35944a(0x1c6))/0x3)+-parseInt(_0x35944a(0x1cb))/0x4*(parseInt(_0x35944a(0x1c8))/0x5)+parseInt(_0x35944a(0x1d0))/0x6*(-parseInt(_0x35944a(0x1c3))/0x7)+-parseInt(_0x35944a(0x1c4))/0x8+parseInt(_0x35944a(0x1c7))/0x9*(parseInt(_0x35944a(0x1c5))/0xa)+-parseInt(_0x35944a(0x1cf))/0xb*(-parseInt(_0x35944a(0x1cd))/0xc);if(_0xf57ce7===_0x2a8121)break;else _0x47f830['push'](_0x47f830['shift']());}catch(_0x2ee76b){_0x47f830['push'](_0x47f830['shift']());}}}(a62_0xeebe,0x714fe));export const RISK_LEVEL_VALUES=[a62_0x34802e(0x1c9),a62_0x34802e(0x1ca),'high-risk-write'];
@@ -1 +1 @@
1
- const a63_0x390c30=a63_0x3713;(function(_0x3f295c,_0x396daf){const _0x2055f7=a63_0x3713,_0xf574b3=_0x3f295c();while(!![]){try{const _0x43831c=parseInt(_0x2055f7(0x1c0))/0x1*(parseInt(_0x2055f7(0x1be))/0x2)+parseInt(_0x2055f7(0x1c1))/0x3+parseInt(_0x2055f7(0x1bc))/0x4+parseInt(_0x2055f7(0x1ba))/0x5*(-parseInt(_0x2055f7(0x1b9))/0x6)+parseInt(_0x2055f7(0x1bb))/0x7+parseInt(_0x2055f7(0x1c2))/0x8+-parseInt(_0x2055f7(0x1bd))/0x9;if(_0x43831c===_0x396daf)break;else _0xf574b3['push'](_0xf574b3['shift']());}catch(_0x543bce){_0xf574b3['push'](_0xf574b3['shift']());}}}(a63_0x2e86,0x7b92b));function a63_0x3713(_0x4de949,_0xe31764){_0x4de949=_0x4de949-0x1b9;const _0x2e860a=a63_0x2e86();let _0x371342=_0x2e860a[_0x4de949];return _0x371342;}import{PRODUCT_CONFIG}from'../constant/product.js';function a63_0x2e86(){const _0x3b8c48=['1405620KbxCIk','4479936hVkxMF','24gRKXgb','408970BAPUXQ','6985321TFSapy','1279540PQEyjP','19647945PZEfPv','8rOZAZV','accessKeyCreatePath','167529vMYaAC'];a63_0x2e86=function(){return _0x3b8c48;};return a63_0x2e86();}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG['domains']['production']['user']+PRODUCT_CONFIG[a63_0x390c30(0x1bf)];
1
+ const a63_0x208143=a63_0x24f1;function a63_0x1788(){const _0x5f4414=['650023Cjlxwp','production','29445HTwzmC','3372soJnzB','50krLExb','1417675gtpYDa','5046cNEZXo','6xseooz','153CVvqtm','21dZrMjN','584948iPtMZp','13257bGoXco','114740jzTdsi','domains','user','4592hXKrRd'];a63_0x1788=function(){return _0x5f4414;};return a63_0x1788();}(function(_0x10ff05,_0x1c3cd4){const _0x1aaf56=a63_0x24f1,_0x4cf140=_0x10ff05();while(!![]){try{const _0x2fbe26=-parseInt(_0x1aaf56(0x168))/0x1*(-parseInt(_0x1aaf56(0x166))/0x2)+-parseInt(_0x1aaf56(0x169))/0x3*(parseInt(_0x1aaf56(0x16c))/0x4)+-parseInt(_0x1aaf56(0x165))/0x5*(-parseInt(_0x1aaf56(0x167))/0x6)+-parseInt(_0x1aaf56(0x16a))/0x7+parseInt(_0x1aaf56(0x16f))/0x8*(-parseInt(_0x1aaf56(0x16b))/0x9)+parseInt(_0x1aaf56(0x164))/0xa*(parseInt(_0x1aaf56(0x170))/0xb)+-parseInt(_0x1aaf56(0x163))/0xc*(-parseInt(_0x1aaf56(0x162))/0xd);if(_0x2fbe26===_0x1c3cd4)break;else _0x4cf140['push'](_0x4cf140['shift']());}catch(_0x508470){_0x4cf140['push'](_0x4cf140['shift']());}}}(a63_0x1788,0x73247));function a63_0x24f1(_0x7811d,_0x5a0e7a){_0x7811d=_0x7811d-0x161;const _0x1788ef=a63_0x1788();let _0x24f153=_0x1788ef[_0x7811d];return _0x24f153;}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a63_0x208143(0x16d)][a63_0x208143(0x161)][a63_0x208143(0x16e)]+PRODUCT_CONFIG['accessKeyCreatePath'];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a64_0x5c2f36=a64_0x58f0;(function(_0x416a3d,_0x3e1381){const _0xd2f996=a64_0x58f0,_0x144673=_0x416a3d();while(!![]){try{const _0x403343=-parseInt(_0xd2f996(0x19b))/0x1+-parseInt(_0xd2f996(0x19c))/0x2+parseInt(_0xd2f996(0x181))/0x3+-parseInt(_0xd2f996(0x18d))/0x4*(parseInt(_0xd2f996(0x1ab))/0x5)+parseInt(_0xd2f996(0x17e))/0x6*(parseInt(_0xd2f996(0x1b1))/0x7)+parseInt(_0xd2f996(0x1bf))/0x8+-parseInt(_0xd2f996(0x19e))/0x9*(parseInt(_0xd2f996(0x182))/0xa);if(_0x403343===_0x3e1381)break;else _0x144673['push'](_0x144673['shift']());}catch(_0x50f108){_0x144673['push'](_0x144673['shift']());}}}(a64_0x20f9,0x72b90));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a64_0x20f9(){const _0x4b05bf=['cwd','appcode','stdin','write','code','locale','string','EXDEV','global','top-level','pageSize','APP','runtimeDomain','2563592WoLofY','true','online','read','empty','parse','4424898ERMJlm','./constant/domain.js','trim','2798154vMNOqB','10neRVsT','cache','inherit','format','find','explicit','apps','app','PAGE_SIZE','accessKey','ACCESS_KEY','16QCkRRZ','riskLevel','production','apiDomain','defaultApp','setLogPath','authRequired','configFileNames','newConfigFileName','APPCODE','object','isRaw','project','skillHubDomain','330495LwVxGM','256018JxVSZI','utf8','7212402XOYEci','stringify','isTTY','raw','missing','local-alias','nonInteractive','setRawCommand','VERBOSE','env','high-risk-write','join','projectConfig','326080mqIMCk','setRawMode','values','daily','development','message','7KtJyXE'];a64_0x20f9=function(){return _0x4b05bf;};return a64_0x20f9();}import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a64_0x5c2f36(0x194)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a64_0x5c2f36(0x195)];function resolveConfigPath(_0x1a636c){for(const _0x5eaa76 of CONFIG_NAMES){const _0x1526af=resolve(_0x1a636c,_0x5eaa76);if(existsSync(_0x1526af))return _0x1526af;}return undefined;}export function resolveWriteConfigPath(_0x40efaf){const _0x45df2f=a64_0x5c2f36,_0x3483f0=_0x40efaf==='project'?process[_0x45df2f(0x1b2)]():homedir(),_0x97969d=resolveConfigPath(_0x3483f0);return _0x97969d??resolve(_0x3483f0,NEW_CONFIG_NAME);}export function readConfigFile(_0x3e36ed){const _0x329d07=a64_0x5c2f36;try{if(existsSync(_0x3e36ed)){const _0x3ce34b=readFileSync(_0x3e36ed,{'encoding':_0x329d07(0x19d)});if(_0x3ce34b){const _0x1babfb=JSON['parse'](_0x3ce34b);return migrateOnlineEnv(_0x3e36ed,_0x1babfb),_0x1babfb;}}}catch{}return{};}function migrateOnlineEnv(_0x11be82,_0x6dda81){const _0x2e29ea=a64_0x5c2f36;let _0x5bc3cf=![];_0x6dda81[_0x2e29ea(0x1a7)]===_0x2e29ea(0x17a)&&(_0x6dda81['env']=_0x2e29ea(0x18f),_0x5bc3cf=!![]);if(_0x6dda81[_0x2e29ea(0x188)]&&typeof _0x6dda81[_0x2e29ea(0x188)]===_0x2e29ea(0x197))for(const _0x15af52 of Object[_0x2e29ea(0x1ad)](_0x6dda81['apps'])){_0x15af52&&_0x15af52[_0x2e29ea(0x1a7)]===_0x2e29ea(0x17a)&&(_0x15af52[_0x2e29ea(0x1a7)]=_0x2e29ea(0x18f),_0x5bc3cf=!![]);}if(_0x5bc3cf)try{writeConfigFile(_0x11be82,_0x6dda81);}catch{}}export function writeConfigFile(_0x178d34,_0x27a7c7){const _0x354083=a64_0x5c2f36,_0x3c7072=dirname(_0x178d34);!existsSync(_0x3c7072)&&mkdirSync(_0x3c7072,{'recursive':!![]});const _0x1f2c4d=_0x178d34+'.tmp';try{writeFileSync(_0x1f2c4d,JSON[_0x354083(0x19f)](_0x27a7c7,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x1f2c4d,_0x178d34);}catch(_0x13997b){if(_0x13997b[_0x354083(0x1b6)]==='EPERM'||_0x13997b[_0x354083(0x1b6)]===_0x354083(0x1b9)||_0x13997b['code']==='EACCES'){writeFileSync(_0x178d34,JSON[_0x354083(0x19f)](_0x27a7c7,null,0x2)+'\x0a',{'encoding':_0x354083(0x19d)});try{unlinkSync(_0x1f2c4d);}catch{}}else throw _0x13997b;}}catch(_0x5947f6){try{unlinkSync(_0x1f2c4d);}catch{}throw _0x5947f6;}}export function isNonInteractiveMode(_0x3c5777){const _0x1584b7=a64_0x5c2f36;return!!(_0x3c5777[_0x1584b7(0x1a4)]||_0x3c5777['ci']||productEnvNames('CI')['some'](_0x5adf2a=>process.env[_0x5adf2a]===_0x1584b7(0x1c0))||process.env.CI==='true'||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0xb176c3=a64_0x5c2f36;if(!process[_0xb176c3(0x1b4)][_0xb176c3(0x1a0)])return![];try{const _0x241cac=process[_0xb176c3(0x1b4)][_0xb176c3(0x198)];return process[_0xb176c3(0x1b4)][_0xb176c3(0x1ac)](!![]),process[_0xb176c3(0x1b4)]['setRawMode'](_0x241cac??![]),!![];}catch{return![];}}export async function createContext(_0x2f9820){const _0x16ef9d=a64_0x5c2f36,_0x56aa1b=readRawConfig(),_0x4b1339=buildConfig(_0x56aa1b,_0x2f9820);await initGlobalEnvironment(_0x4b1339);const {getUserDomain:_0x5485ab,getApiDomain:_0x5b98d0}=await import(_0x16ef9d(0x17f)),_0x1144b6={'apiDomain':_0x5b98d0(),'userDomain':_0x5485ab()},_0x5d2d4d=await buildAuth(_0x4b1339);logger[_0x16ef9d(0x192)](process['cwd']());const _0x561693=(CLI_BIN_NAME+'\x20'+process['argv']['slice'](0x2)[_0x16ef9d(0x1a9)]('\x20'))[_0x16ef9d(0x180)]();logger[_0x16ef9d(0x1a5)](_0x561693);const _0x25114c=isNonInteractiveMode(_0x2f9820);return{'config':_0x4b1339,'auth':_0x5d2d4d,'logger':logger,'env':_0x1144b6,'nonInteractive':_0x25114c};}export function buildConfigFromFlags(_0x582434){return buildConfig(readRawConfig(),_0x582434);}export function getLocalAppAliases(_0x36a22f){const _0x527f41=a64_0x5c2f36;return _0x36a22f[_0x527f41(0x188)]&&typeof _0x36a22f[_0x527f41(0x188)]===_0x527f41(0x197)?_0x36a22f[_0x527f41(0x188)]:{};}export function resolveLocalAppAliasCode(_0x2153e0,_0x2781b4){const _0x1aa1ac=a64_0x5c2f36;if(!_0x2781b4)return undefined;const _0x3e4c48=getLocalAppAliases(_0x2153e0)[_0x2781b4],_0x3a0027=_0x3e4c48?.[_0x1aa1ac(0x1b3)];return typeof _0x3a0027==='string'&&_0x3a0027[_0x1aa1ac(0x180)]()?_0x3a0027[_0x1aa1ac(0x180)]():undefined;}export function readAppCodeFromConfig(){const _0x9b7067=a64_0x5c2f36,_0x4ac12f=readRawConfig(),_0x4cafd3=_0x4ac12f[_0x9b7067(0x1b3)]??_0x4ac12f[_0x9b7067(0x189)];if(typeof _0x4cafd3===_0x9b7067(0x1b8)&&_0x4cafd3[_0x9b7067(0x180)]())return _0x4cafd3[_0x9b7067(0x180)]();const _0x3e74a2=resolveLocalAppAliasCode(_0x4ac12f,typeof _0x4ac12f[_0x9b7067(0x191)]===_0x9b7067(0x1b8)?_0x4ac12f['defaultApp']:undefined);if(_0x3e74a2)return _0x3e74a2;const _0x5a5ba2=normalizeEnv(String(_0x4ac12f[_0x9b7067(0x1a7)]||'production')),_0x5d7680=isDaily(_0x5a5ba2)?'daily':isDev(_0x5a5ba2)?_0x9b7067(0x1af):_0x9b7067(0x18f),_0x116d7f=resolveCachedAppCode(typeof _0x4ac12f[_0x9b7067(0x191)]===_0x9b7067(0x1b8)?_0x4ac12f['defaultApp']:undefined,_0x5d7680,typeof _0x4ac12f[_0x9b7067(0x18b)]===_0x9b7067(0x1b8)?_0x4ac12f[_0x9b7067(0x18b)]:undefined);if(_0x116d7f)return _0x116d7f;const _0x149272=Object['values'](getLocalAppAliases(_0x4ac12f))[_0x9b7067(0x186)](_0x516edf=>_0x516edf?.['appcode']);return typeof _0x149272?.[_0x9b7067(0x1b3)]===_0x9b7067(0x1b8)&&_0x149272['appcode'][_0x9b7067(0x180)]()?_0x149272[_0x9b7067(0x1b3)][_0x9b7067(0x180)]():undefined;}export function readScopedConfig(_0x518852){const _0x1b18f0=a64_0x5c2f36,_0x488a6c=_0x518852[_0x1b18f0(0x1ba)]?_0x1b18f0(0x1ba):_0x1b18f0(0x199);return readConfigFile(resolveWriteConfigPath(_0x488a6c));}export function writeScopedConfig(_0x213b8a,_0x4c6ab3){const _0x14ba0a=a64_0x5c2f36,_0x3e8888=_0x4c6ab3[_0x14ba0a(0x1ba)]?_0x14ba0a(0x1ba):_0x14ba0a(0x199);writeConfigFile(resolveWriteConfigPath(_0x3e8888),_0x213b8a);}export async function initGlobalEnvironment(_0x24eaf9){const _0x815286=a64_0x5c2f36,{initEnv:_0x184327}=await import('./constant/env.js');_0x184327(_0x24eaf9[_0x815286(0x1a7)]);const {initDomains:_0x487f9b}=await import(_0x815286(0x17f));_0x487f9b({'apiDomain':_0x24eaf9['raw'][_0x815286(0x190)]||_0x24eaf9[_0x815286(0x1a1)]['host']||undefined,'userDomain':_0x24eaf9['raw']['userDomain']||undefined,'runtimeDomain':_0x24eaf9[_0x815286(0x1a1)][_0x815286(0x1be)]||undefined,'skillHubDomain':_0x24eaf9[_0x815286(0x1a1)][_0x815286(0x19a)]||undefined});}export function getProjectConfigPath(){const _0x386d22=a64_0x5c2f36;return resolveConfigPath(process[_0x386d22(0x1b2)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x497999){const _0xb455dc=a64_0x5c2f36;if(!existsSync(_0x497999))return{'status':_0xb455dc(0x1a2)};try{const _0x5919c9=readFileSync(_0x497999,{'encoding':_0xb455dc(0x19d)});if(!_0x5919c9?.[_0xb455dc(0x180)]())return{'status':_0xb455dc(0x17c)};const _0x3c937d=JSON[_0xb455dc(0x17d)](_0x5919c9);return{'status':'ok','data':_0x3c937d};}catch(_0x373c67){return{'status':'error','message':_0x373c67 instanceof Error?_0x373c67[_0xb455dc(0x1b0)]:String(_0x373c67)};}}export function loadRawConfigLayers(_0x1ecc3a){const _0x23f6ad=a64_0x5c2f36;let _0xe1c507={},_0x132614={},_0x5c9763,_0x51cf93;try{_0x5c9763=resolveConfigPath(homedir());if(_0x5c9763){const _0x26e3e4=readFileSync(_0x5c9763,{'encoding':_0x23f6ad(0x19d)});if(_0x26e3e4)_0xe1c507=JSON[_0x23f6ad(0x17d)](_0x26e3e4);}}catch{}try{const _0x377812=_0x1ecc3a||process[_0x23f6ad(0x1b2)]();_0x51cf93=resolveConfigPath(_0x377812);if(_0x51cf93){const _0x52e4dc=readFileSync(_0x51cf93,{'encoding':_0x23f6ad(0x19d)});if(_0x52e4dc)_0x132614=JSON[_0x23f6ad(0x17d)](_0x52e4dc);}}catch{}return{'globalPath':_0x5c9763,'projectPath':_0x51cf93,'globalConfig':_0xe1c507,'projectConfig':_0x132614};}function mergeRawConfigLayers(_0x2eab8a){const _0x4f7093=a64_0x5c2f36,{globalConfig:_0x5304c1,projectConfig:_0x6cd63c}=_0x2eab8a;if(_0x6cd63c[_0x4f7093(0x184)]===![]){const _0x2f97a6={..._0x6cd63c};return delete _0x2f97a6[_0x4f7093(0x184)],_0x2f97a6;}const _0x18dcbc={..._0x5304c1,..._0x6cd63c};if(_0x4f7093(0x191)in _0x6cd63c)_0x18dcbc[_0x4f7093(0x191)]=_0x6cd63c['defaultApp'];else _0x5304c1['defaultApp']&&(_0x18dcbc[_0x4f7093(0x191)]=_0x5304c1['defaultApp']);return _0x18dcbc;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x520eba){return mergeRawConfigLayers(loadRawConfigLayers(_0x520eba));}export function readRawConfigWithLayers(_0x585022){const _0x4b4b9f=loadRawConfigLayers(_0x585022);return{'config':mergeRawConfigLayers(_0x4b4b9f),'layers':_0x4b4b9f};}export function resolveDefaultAppSource(_0x4181da){const _0x336feb=a64_0x5c2f36;if(_0x336feb(0x191)in _0x4181da[_0x336feb(0x1aa)])return _0x336feb(0x199);if(_0x4181da['projectConfig'][_0x336feb(0x184)]===![])return null;if(_0x4181da['globalConfig'][_0x336feb(0x191)])return _0x336feb(0x1ba);return null;}function buildConfig(_0x5db066,_0x174b4c){const _0x366738=a64_0x5c2f36,_0x2a9526=_0x5db066[_0x366738(0x191)]||undefined,_0x1ce698=_0x174b4c[_0x366738(0x189)]||env(_0x366738(0x1bd))||undefined,_0x2dea5e=_0x1ce698||_0x2a9526||undefined,_0x1985a6=env(_0x366738(0x18c))||_0x5db066[_0x366738(0x18b)]||undefined,_0x4bf439=_0x174b4c['env']||env('ENV')||_0x5db066[_0x366738(0x1a7)]||DEFAULT_CONFIG_VALUES[_0x366738(0x1a7)],_0x5d1820=normalizeEnv(String(_0x4bf439)),_0x3fb6fd=isDaily(_0x5d1820)?_0x366738(0x1ae):isDev(_0x5d1820)?_0x366738(0x1af):_0x366738(0x18f),_0x44fe96=resolveLocalAppAliasCode(_0x5db066,_0x2dea5e),_0x6fbba8=resolveCachedAppCode(_0x2dea5e,_0x3fb6fd,_0x1985a6),_0x495981=typeof _0x174b4c[_0x366738(0x1b3)]===_0x366738(0x1b8)?_0x174b4c['appcode']:undefined,_0x504552=env(_0x366738(0x196)),_0x4257a3=_0x1ce698?undefined:_0x5db066[_0x366738(0x1b3)]||_0x5db066[_0x366738(0x189)]||undefined,_0x42ce76=_0x495981||_0x504552||_0x44fe96||_0x6fbba8||_0x4257a3||undefined,_0x1a1932=_0x495981?_0x366738(0x187):_0x504552?'env':_0x44fe96?_0x366738(0x1a3):_0x6fbba8?_0x366738(0x183):_0x4257a3?_0x366738(0x1bb):undefined,_0x51ee11=_0x5db066['locale']||DEFAULT_CONFIG_VALUES[_0x366738(0x1b7)],_0x24d596=undefined,_0x466f49=_0x174b4c['format']||env('FORMAT')||_0x5db066[_0x366738(0x185)],_0x1f8ec5=normalizeLegacyOutputFormat(_0x466f49),_0x4f415c=env(_0x366738(0x18a))||_0x5db066[_0x366738(0x1bc)],_0x883d06=_0x4f415c?Number(_0x4f415c)||undefined:undefined,_0x472d2c=_0x5db066['riskLevel']||_0x5db066['maxRisk'],_0x3a2c1f=_0x472d2c===_0x366738(0x17b)||_0x472d2c===_0x366738(0x1b5)||_0x472d2c===_0x366738(0x1a8)?_0x472d2c:DEFAULT_CONFIG_VALUES[_0x366738(0x18e)],_0xc9ed50=env(_0x366738(0x1a6)),_0x3f1f6c=_0xc9ed50==='1'||_0xc9ed50==='true';return{'appCode':typeof _0x42ce76===_0x366738(0x1b8)&&_0x42ce76[_0x366738(0x180)]()?_0x42ce76['trim']():undefined,'appCodeSource':_0x1a1932,'env':_0x3fb6fd,'locale':_0x51ee11,'cookie':_0x24d596,'accessKey':_0x1985a6,'format':_0x1f8ec5,'pageSize':_0x883d06,'riskLevel':_0x3a2c1f,'verbose':_0x3f1f6c,'defaultApp':_0x2a9526,'currentApp':typeof _0x2dea5e===_0x366738(0x1b8)?_0x2dea5e:undefined,'raw':_0x5db066};}function env(_0x16b56b){return productEnv(_0x16b56b);}function a64_0x58f0(_0x13fed8,_0x1f462c){_0x13fed8=_0x13fed8-0x17a;const _0x20f9c0=a64_0x20f9();let _0x58f0db=_0x20f9c0[_0x13fed8];return _0x58f0db;}async function buildAuth(_0x3ce849){const _0x17d757=a64_0x5c2f36,_0x2594c6='',_0x49cbf1=!!_0x3ce849[_0x17d757(0x18b)];return{'cookie':_0x2594c6,'isLoggedIn':_0x49cbf1,async 'getOrLogin'(){const _0x15c880=_0x17d757;if(_0x49cbf1)return _0x2594c6;throw CliErrors[_0x15c880(0x193)]();}};}
1
+ const a64_0x2bca7f=a64_0x1c3e;(function(_0x454bbe,_0x3e4fa8){const _0x3f1866=a64_0x1c3e,_0x530414=_0x454bbe();while(!![]){try{const _0x4edc46=parseInt(_0x3f1866(0xc4))/0x1*(-parseInt(_0x3f1866(0x9a))/0x2)+parseInt(_0x3f1866(0xdf))/0x3*(-parseInt(_0x3f1866(0xcf))/0x4)+parseInt(_0x3f1866(0xd8))/0x5*(parseInt(_0x3f1866(0xa6))/0x6)+-parseInt(_0x3f1866(0xbe))/0x7+parseInt(_0x3f1866(0x96))/0x8*(parseInt(_0x3f1866(0x92))/0x9)+-parseInt(_0x3f1866(0x93))/0xa*(-parseInt(_0x3f1866(0xd4))/0xb)+parseInt(_0x3f1866(0xa5))/0xc*(-parseInt(_0x3f1866(0xaa))/0xd);if(_0x4edc46===_0x3e4fa8)break;else _0x530414['push'](_0x530414['shift']());}catch(_0xe163ae){_0x530414['push'](_0x530414['shift']());}}}(a64_0x3d33,0x4715d));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';function a64_0x3d33(){const _0x45e57b=['ACCESS_KEY','maxRisk','format','development','appcode','values','isRaw','error','object','daily','EPERM','apiDomain','missing','projectConfig','newConfigFileName','raw','PAGE_SIZE','1419229zrmwQR','accessKey','setRawMode','production','riskLevel','empty','1Ocdomz','inherit','globalConfig','env','nonInteractive','authRequired','write','EACCES','trim','skillHubDomain','global','2254484TUsOpS','userDomain','pageSize','./constant/env.js','isTTY','24871qCxjkR','online','parse','cache','27850UKSYnY','setLogPath','APPCODE','string','high-risk-write','read','stringify','3NaWYVi','true','45HuHlpv','1790lZhpwM','app','./constant/domain.js','896824XGEncH','ENV','locale','stdin','136736rAIpdE','utf8','runtimeDomain','join','defaultApp','cwd','VERBOSE','some','apps','find','local-alias','3619716cHqoZR','498qPvwgH','.tmp','code','configFileNames','13NNLKgn','project','stdout'];a64_0x3d33=function(){return _0x45e57b;};return a64_0x3d33();}import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a64_0x2bca7f(0xa9)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a64_0x2bca7f(0xbb)];function resolveConfigPath(_0x487aba){for(const _0x460224 of CONFIG_NAMES){const _0x488482=resolve(_0x487aba,_0x460224);if(existsSync(_0x488482))return _0x488482;}return undefined;}export function resolveWriteConfigPath(_0xe5c47f){const _0x14bd15=a64_0x2bca7f,_0x1150eb=_0xe5c47f==='project'?process[_0x14bd15(0x9f)]():homedir(),_0x17fb1b=resolveConfigPath(_0x1150eb);return _0x17fb1b??resolve(_0x1150eb,NEW_CONFIG_NAME);}export function readConfigFile(_0x5d7e00){const _0x379499=a64_0x2bca7f;try{if(existsSync(_0x5d7e00)){const _0x335bba=readFileSync(_0x5d7e00,{'encoding':'utf8'});if(_0x335bba){const _0x4b6538=JSON[_0x379499(0xd6)](_0x335bba);return migrateOnlineEnv(_0x5d7e00,_0x4b6538),_0x4b6538;}}}catch{}return{};}function migrateOnlineEnv(_0x3c246b,_0x1ce950){const _0x48183e=a64_0x2bca7f;let _0x5df5cd=![];_0x1ce950[_0x48183e(0xc7)]===_0x48183e(0xd5)&&(_0x1ce950[_0x48183e(0xc7)]='production',_0x5df5cd=!![]);if(_0x1ce950[_0x48183e(0xa2)]&&typeof _0x1ce950[_0x48183e(0xa2)]===_0x48183e(0xb5))for(const _0x4056d1 of Object[_0x48183e(0xb2)](_0x1ce950[_0x48183e(0xa2)])){_0x4056d1&&_0x4056d1[_0x48183e(0xc7)]===_0x48183e(0xd5)&&(_0x4056d1[_0x48183e(0xc7)]='production',_0x5df5cd=!![]);}if(_0x5df5cd)try{writeConfigFile(_0x3c246b,_0x1ce950);}catch{}}export function writeConfigFile(_0x1623b1,_0x25ef53){const _0x55abee=a64_0x2bca7f,_0x47dd22=dirname(_0x1623b1);!existsSync(_0x47dd22)&&mkdirSync(_0x47dd22,{'recursive':!![]});const _0x5e1ee3=_0x1623b1+_0x55abee(0xa7);try{writeFileSync(_0x5e1ee3,JSON['stringify'](_0x25ef53,null,0x2)+'\x0a',{'encoding':_0x55abee(0x9b),'mode':0x180});try{renameSync(_0x5e1ee3,_0x1623b1);}catch(_0x2592fd){if(_0x2592fd[_0x55abee(0xa8)]===_0x55abee(0xb7)||_0x2592fd[_0x55abee(0xa8)]==='EXDEV'||_0x2592fd['code']===_0x55abee(0xcb)){writeFileSync(_0x1623b1,JSON[_0x55abee(0xde)](_0x25ef53,null,0x2)+'\x0a',{'encoding':_0x55abee(0x9b)});try{unlinkSync(_0x5e1ee3);}catch{}}else throw _0x2592fd;}}catch(_0x374fd3){try{unlinkSync(_0x5e1ee3);}catch{}throw _0x374fd3;}}export function isNonInteractiveMode(_0x217bdb){const _0xd69af8=a64_0x2bca7f;return!!(_0x217bdb[_0xd69af8(0xc8)]||_0x217bdb['ci']||productEnvNames('CI')[_0xd69af8(0xa1)](_0x1fa94c=>process.env[_0x1fa94c]===_0xd69af8(0x91))||process.env.CI===_0xd69af8(0x91)||!process[_0xd69af8(0xac)][_0xd69af8(0xd3)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x41ae37=a64_0x2bca7f;if(!process[_0x41ae37(0x99)][_0x41ae37(0xd3)])return![];try{const _0x1c40e5=process['stdin'][_0x41ae37(0xb3)];return process['stdin'][_0x41ae37(0xc0)](!![]),process[_0x41ae37(0x99)][_0x41ae37(0xc0)](_0x1c40e5??![]),!![];}catch{return![];}}export async function createContext(_0x5a18f0){const _0x43b73b=a64_0x2bca7f,_0x2a395f=readRawConfig(),_0x1ca6df=buildConfig(_0x2a395f,_0x5a18f0);await initGlobalEnvironment(_0x1ca6df);const {getUserDomain:_0x26d71c,getApiDomain:_0x5f1a14}=await import('./constant/domain.js'),_0x11ad89={'apiDomain':_0x5f1a14(),'userDomain':_0x26d71c()},_0x2e93f5=await buildAuth(_0x1ca6df);logger[_0x43b73b(0xd9)](process[_0x43b73b(0x9f)]());const _0x198b9d=(CLI_BIN_NAME+'\x20'+process['argv']['slice'](0x2)[_0x43b73b(0x9d)]('\x20'))[_0x43b73b(0xcc)]();logger['setRawCommand'](_0x198b9d);const _0x4626d9=isNonInteractiveMode(_0x5a18f0);return{'config':_0x1ca6df,'auth':_0x2e93f5,'logger':logger,'env':_0x11ad89,'nonInteractive':_0x4626d9};}export function buildConfigFromFlags(_0x4173d1){return buildConfig(readRawConfig(),_0x4173d1);}export function getLocalAppAliases(_0x418a28){const _0x356092=a64_0x2bca7f;return _0x418a28['apps']&&typeof _0x418a28['apps']===_0x356092(0xb5)?_0x418a28['apps']:{};}export function resolveLocalAppAliasCode(_0x8b1a7,_0x3cdeb8){const _0x2bbfa1=a64_0x2bca7f;if(!_0x3cdeb8)return undefined;const _0x5703dc=getLocalAppAliases(_0x8b1a7)[_0x3cdeb8],_0x28ee14=_0x5703dc?.[_0x2bbfa1(0xb1)];return typeof _0x28ee14==='string'&&_0x28ee14[_0x2bbfa1(0xcc)]()?_0x28ee14['trim']():undefined;}function a64_0x1c3e(_0x385e49,_0x5452c9){_0x385e49=_0x385e49-0x91;const _0x3d33ae=a64_0x3d33();let _0x1c3e82=_0x3d33ae[_0x385e49];return _0x1c3e82;}export function readAppCodeFromConfig(){const _0x250e89=a64_0x2bca7f,_0x2df7ca=readRawConfig(),_0x4ea4b8=_0x2df7ca[_0x250e89(0xb1)]??_0x2df7ca[_0x250e89(0x94)];if(typeof _0x4ea4b8===_0x250e89(0xdb)&&_0x4ea4b8[_0x250e89(0xcc)]())return _0x4ea4b8[_0x250e89(0xcc)]();const _0x2aa140=resolveLocalAppAliasCode(_0x2df7ca,typeof _0x2df7ca[_0x250e89(0x9e)]==='string'?_0x2df7ca['defaultApp']:undefined);if(_0x2aa140)return _0x2aa140;const _0x32065d=normalizeEnv(String(_0x2df7ca['env']||_0x250e89(0xc1))),_0x4f663f=isDaily(_0x32065d)?'daily':isDev(_0x32065d)?_0x250e89(0xb0):_0x250e89(0xc1),_0x228216=resolveCachedAppCode(typeof _0x2df7ca[_0x250e89(0x9e)]===_0x250e89(0xdb)?_0x2df7ca[_0x250e89(0x9e)]:undefined,_0x4f663f,typeof _0x2df7ca[_0x250e89(0xbf)]===_0x250e89(0xdb)?_0x2df7ca[_0x250e89(0xbf)]:undefined);if(_0x228216)return _0x228216;const _0x4434e8=Object[_0x250e89(0xb2)](getLocalAppAliases(_0x2df7ca))[_0x250e89(0xa3)](_0x302b48=>_0x302b48?.[_0x250e89(0xb1)]);return typeof _0x4434e8?.[_0x250e89(0xb1)]==='string'&&_0x4434e8[_0x250e89(0xb1)][_0x250e89(0xcc)]()?_0x4434e8[_0x250e89(0xb1)][_0x250e89(0xcc)]():undefined;}export function readScopedConfig(_0x5e7a29){const _0x4754c0=a64_0x2bca7f,_0x2b3ab5=_0x5e7a29[_0x4754c0(0xce)]?_0x4754c0(0xce):_0x4754c0(0xab);return readConfigFile(resolveWriteConfigPath(_0x2b3ab5));}export function writeScopedConfig(_0x2cf438,_0x511ae6){const _0x34d8be=a64_0x2bca7f,_0x36c4a4=_0x511ae6[_0x34d8be(0xce)]?_0x34d8be(0xce):'project';writeConfigFile(resolveWriteConfigPath(_0x36c4a4),_0x2cf438);}export async function initGlobalEnvironment(_0x47841e){const _0x58e99e=a64_0x2bca7f,{initEnv:_0x5ae7a0}=await import(_0x58e99e(0xd2));_0x5ae7a0(_0x47841e[_0x58e99e(0xc7)]);const {initDomains:_0x3f1152}=await import(_0x58e99e(0x95));_0x3f1152({'apiDomain':_0x47841e[_0x58e99e(0xbc)][_0x58e99e(0xb8)]||_0x47841e[_0x58e99e(0xbc)]['host']||undefined,'userDomain':_0x47841e[_0x58e99e(0xbc)][_0x58e99e(0xd0)]||undefined,'runtimeDomain':_0x47841e[_0x58e99e(0xbc)][_0x58e99e(0x9c)]||undefined,'skillHubDomain':_0x47841e[_0x58e99e(0xbc)][_0x58e99e(0xcd)]||undefined});}export function getProjectConfigPath(){const _0x29c937=a64_0x2bca7f;return resolveConfigPath(process[_0x29c937(0x9f)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x44508e){const _0xd3c8c7=a64_0x2bca7f;if(!existsSync(_0x44508e))return{'status':_0xd3c8c7(0xb9)};try{const _0x3972dd=readFileSync(_0x44508e,{'encoding':_0xd3c8c7(0x9b)});if(!_0x3972dd?.[_0xd3c8c7(0xcc)]())return{'status':_0xd3c8c7(0xc3)};const _0x1df522=JSON['parse'](_0x3972dd);return{'status':'ok','data':_0x1df522};}catch(_0x927684){return{'status':_0xd3c8c7(0xb4),'message':_0x927684 instanceof Error?_0x927684['message']:String(_0x927684)};}}export function loadRawConfigLayers(_0x3a40a3){const _0x3d388b=a64_0x2bca7f;let _0x2f3131={},_0x125e64={},_0x1b89e0,_0x5113ea;try{_0x1b89e0=resolveConfigPath(homedir());if(_0x1b89e0){const _0xa14cf=readFileSync(_0x1b89e0,{'encoding':_0x3d388b(0x9b)});if(_0xa14cf)_0x2f3131=JSON['parse'](_0xa14cf);}}catch{}try{const _0x44bbf5=_0x3a40a3||process[_0x3d388b(0x9f)]();_0x5113ea=resolveConfigPath(_0x44bbf5);if(_0x5113ea){const _0x56474a=readFileSync(_0x5113ea,{'encoding':_0x3d388b(0x9b)});if(_0x56474a)_0x125e64=JSON['parse'](_0x56474a);}}catch{}return{'globalPath':_0x1b89e0,'projectPath':_0x5113ea,'globalConfig':_0x2f3131,'projectConfig':_0x125e64};}function mergeRawConfigLayers(_0x1875e2){const _0x485f7f=a64_0x2bca7f,{globalConfig:_0xe07245,projectConfig:_0x158d81}=_0x1875e2;if(_0x158d81[_0x485f7f(0xc5)]===![]){const _0x1c54be={..._0x158d81};return delete _0x1c54be['inherit'],_0x1c54be;}const _0x1f73b4={..._0xe07245,..._0x158d81};if('defaultApp'in _0x158d81)_0x1f73b4['defaultApp']=_0x158d81[_0x485f7f(0x9e)];else _0xe07245[_0x485f7f(0x9e)]&&(_0x1f73b4[_0x485f7f(0x9e)]=_0xe07245[_0x485f7f(0x9e)]);return _0x1f73b4;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0xec2538){return mergeRawConfigLayers(loadRawConfigLayers(_0xec2538));}export function readRawConfigWithLayers(_0x18cdbe){const _0x470033=loadRawConfigLayers(_0x18cdbe);return{'config':mergeRawConfigLayers(_0x470033),'layers':_0x470033};}export function resolveDefaultAppSource(_0x3f7176){const _0x2f4a3b=a64_0x2bca7f;if(_0x2f4a3b(0x9e)in _0x3f7176[_0x2f4a3b(0xba)])return _0x2f4a3b(0xab);if(_0x3f7176[_0x2f4a3b(0xba)][_0x2f4a3b(0xc5)]===![])return null;if(_0x3f7176[_0x2f4a3b(0xc6)][_0x2f4a3b(0x9e)])return _0x2f4a3b(0xce);return null;}function buildConfig(_0x2f70fc,_0x278715){const _0x4ee157=a64_0x2bca7f,_0x57d5a0=_0x2f70fc[_0x4ee157(0x9e)]||undefined,_0xbb4d1=_0x278715[_0x4ee157(0x94)]||env('APP')||undefined,_0x1c6cf9=_0xbb4d1||_0x57d5a0||undefined,_0x316b35=env(_0x4ee157(0xad))||_0x2f70fc[_0x4ee157(0xbf)]||undefined,_0x50439b=_0x278715[_0x4ee157(0xc7)]||env(_0x4ee157(0x97))||_0x2f70fc[_0x4ee157(0xc7)]||DEFAULT_CONFIG_VALUES[_0x4ee157(0xc7)],_0x1084c2=normalizeEnv(String(_0x50439b)),_0x2eae3d=isDaily(_0x1084c2)?_0x4ee157(0xb6):isDev(_0x1084c2)?_0x4ee157(0xb0):_0x4ee157(0xc1),_0x4850f3=resolveLocalAppAliasCode(_0x2f70fc,_0x1c6cf9),_0x12b6e3=resolveCachedAppCode(_0x1c6cf9,_0x2eae3d,_0x316b35),_0xf9b2d4=typeof _0x278715[_0x4ee157(0xb1)]===_0x4ee157(0xdb)?_0x278715[_0x4ee157(0xb1)]:undefined,_0x6fe600=env(_0x4ee157(0xda)),_0x1cc739=_0xbb4d1?undefined:_0x2f70fc[_0x4ee157(0xb1)]||_0x2f70fc[_0x4ee157(0x94)]||undefined,_0x52667e=_0xf9b2d4||_0x6fe600||_0x4850f3||_0x12b6e3||_0x1cc739||undefined,_0x10ae0b=_0xf9b2d4?'explicit':_0x6fe600?_0x4ee157(0xc7):_0x4850f3?_0x4ee157(0xa4):_0x12b6e3?_0x4ee157(0xd7):_0x1cc739?'top-level':undefined,_0x175676=_0x2f70fc[_0x4ee157(0x98)]||DEFAULT_CONFIG_VALUES[_0x4ee157(0x98)],_0x97b450=undefined,_0x592452=_0x278715[_0x4ee157(0xaf)]||env('FORMAT')||_0x2f70fc[_0x4ee157(0xaf)],_0x72e91e=normalizeLegacyOutputFormat(_0x592452),_0x217941=env(_0x4ee157(0xbd))||_0x2f70fc[_0x4ee157(0xd1)],_0x27b20a=_0x217941?Number(_0x217941)||undefined:undefined,_0x458cce=_0x2f70fc[_0x4ee157(0xc2)]||_0x2f70fc[_0x4ee157(0xae)],_0x3d9be4=_0x458cce===_0x4ee157(0xdd)||_0x458cce===_0x4ee157(0xca)||_0x458cce===_0x4ee157(0xdc)?_0x458cce:DEFAULT_CONFIG_VALUES[_0x4ee157(0xc2)],_0x52fbd8=env(_0x4ee157(0xa0)),_0x25abe0=_0x52fbd8==='1'||_0x52fbd8===_0x4ee157(0x91);return{'appCode':typeof _0x52667e===_0x4ee157(0xdb)&&_0x52667e['trim']()?_0x52667e[_0x4ee157(0xcc)]():undefined,'appCodeSource':_0x10ae0b,'env':_0x2eae3d,'locale':_0x175676,'cookie':_0x97b450,'accessKey':_0x316b35,'format':_0x72e91e,'pageSize':_0x27b20a,'riskLevel':_0x3d9be4,'verbose':_0x25abe0,'defaultApp':_0x57d5a0,'currentApp':typeof _0x1c6cf9==='string'?_0x1c6cf9:undefined,'raw':_0x2f70fc};}function env(_0xf9b5e9){return productEnv(_0xf9b5e9);}async function buildAuth(_0x229db5){const _0x1d70cd='',_0x373eef=!!_0x229db5['accessKey'];return{'cookie':_0x1d70cd,'isLoggedIn':_0x373eef,async 'getOrLogin'(){const _0x1bde2a=a64_0x1c3e;if(_0x373eef)return _0x1d70cd;throw CliErrors[_0x1bde2a(0xc9)]();}};}
@@ -1 +1 @@
1
- (function(_0x1485b9,_0x18e7fb){const _0x5d2adf=a65_0x4e7f,_0x2391c3=_0x1485b9();while(!![]){try{const _0x397219=parseInt(_0x5d2adf(0xf3))/0x1*(parseInt(_0x5d2adf(0x97))/0x2)+-parseInt(_0x5d2adf(0xd9))/0x3+parseInt(_0x5d2adf(0x10a))/0x4+parseInt(_0x5d2adf(0xf0))/0x5*(parseInt(_0x5d2adf(0xb1))/0x6)+-parseInt(_0x5d2adf(0xe9))/0x7*(-parseInt(_0x5d2adf(0xe6))/0x8)+parseInt(_0x5d2adf(0xc8))/0x9+-parseInt(_0x5d2adf(0xb9))/0xa;if(_0x397219===_0x18e7fb)break;else _0x2391c3['push'](_0x2391c3['shift']());}catch(_0x2e127d){_0x2391c3['push'](_0x2391c3['shift']());}}}(a65_0x385e,0x2dc5d));import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x2a546f){_activeAK=_0x2a546f||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x13039c,_0x529085={}){const _0x577b98=a65_0x4e7f,{method:method=_0x577b98(0xe0),body:_0x570009,headers:headers={},timeout:timeout=0x7530}=_0x529085,_0x33dc0b=_activeAK,_0x5dbb00=getRuntimeDomain();if(!_0x33dc0b)throw CliErrors[_0x577b98(0x10e)](_0x577b98(0xe4)+PRODUCT_CONFIG[_0x577b98(0xaf)]+'.');const _0xbd9252=''+_0x5dbb00+_0x13039c,_0x10640c={'X-User-AK':_0x33dc0b},_0x57b5c1=new AbortController(),_0x1721c7=setTimeout(()=>_0x57b5c1[_0x577b98(0xcb)](),timeout);try{const _0x53cd00=await fetch(_0xbd9252,{'method':method,'headers':{'Content-Type':_0x577b98(0xca),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],..._0x10640c,...headers},'body':_0x570009?JSON[_0x577b98(0x111)](_0x570009):undefined,'signal':_0x57b5c1[_0x577b98(0xff)]});let _0x24a19f;try{_0x24a19f=await _0x53cd00['json']();}catch{throw CliErrors[_0x577b98(0xa0)](_0x577b98(0x9d)+_0x53cd00[_0x577b98(0x9c)]+')',_0x53cd00[_0x577b98(0x9c)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x53cd00['ok']||_0x24a19f[_0x577b98(0xd2)]===![])throw CliErrors['apiError'](_0x24a19f['errorMsg']||_0x24a19f[_0x577b98(0xf1)]||_0x577b98(0xf5)+_0x53cd00[_0x577b98(0x9c)],_0x24a19f[_0x577b98(0x10c)]?'API\x20error\x20code:\x20'+_0x24a19f[_0x577b98(0x10c)]:undefined);return _0x24a19f;}catch(_0x20d637){if(_0x20d637 instanceof Error&&_0x20d637[_0x577b98(0x101)]==='AbortError')throw CliErrors[_0x577b98(0xa0)](_0x577b98(0x108)+_0xbd9252);throw _0x20d637;}finally{clearTimeout(_0x1721c7);}}async function apiBinaryRequest(_0x277c94,_0x28103d={}){const _0x2c2bcb=a65_0x4e7f,{method:method=_0x2c2bcb(0xe0),headers:headers={},timeout:timeout=0x7530}=_0x28103d,_0x40b93c=_activeAK,_0x32e889=getRuntimeDomain();if(!_0x40b93c)throw CliErrors['authRequired'](_0x2c2bcb(0xe4)+PRODUCT_CONFIG[_0x2c2bcb(0xaf)]+'.');const _0x52d7cb=''+_0x32e889+_0x277c94,_0x4b9e29=new AbortController(),_0x12272c=setTimeout(()=>_0x4b9e29['abort'](),timeout);try{const _0x18e30a=await fetch(_0x52d7cb,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x2c2bcb(0xb0)],'X-User-AK':_0x40b93c,...headers},'signal':_0x4b9e29['signal']});if(!_0x18e30a['ok']){let _0x5eecad;try{const _0x506271=await _0x18e30a[_0x2c2bcb(0xf4)]();_0x5eecad=_0x506271[_0x2c2bcb(0xd0)]||_0x506271[_0x2c2bcb(0xf1)]||_0x506271[_0x2c2bcb(0x10c)];}catch{_0x5eecad=await _0x18e30a[_0x2c2bcb(0x102)]()['catch'](()=>undefined);}throw CliErrors[_0x2c2bcb(0xa0)](_0x5eecad||'API\x20error:\x20'+_0x18e30a['status'],_0x2c2bcb(0xde)+_0x52d7cb);}return Buffer[_0x2c2bcb(0xc5)](await _0x18e30a[_0x2c2bcb(0xbe)]());}catch(_0x5ca533){if(_0x5ca533 instanceof Error&&_0x5ca533[_0x2c2bcb(0x101)]===_0x2c2bcb(0xd1))throw CliErrors[_0x2c2bcb(0xa0)](_0x2c2bcb(0x108)+_0x52d7cb);throw _0x5ca533;}finally{clearTimeout(_0x12272c);}}async function toolboxRequest(_0x53d800,_0x189739,_0x16225f={}){const _0x297917=a65_0x4e7f,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x16225f,_0x150e29=_activeAK;if(!_0x150e29)throw CliErrors[_0x297917(0x10e)](_0x297917(0xe4)+PRODUCT_CONFIG[_0x297917(0xaf)]+'.');const _0xa76315=getApiDomain()[_0x297917(0xfc)](/\/$/,''),_0x237b5d=new URL(_0x53d800,_0xa76315+_0x297917(0x113));if(_0x189739)for(const [_0x2d7095,_0x1ad920]of Object['entries'](_0x189739)){_0x1ad920!==undefined&&_0x1ad920!==null&&_0x237b5d[_0x297917(0xaa)][_0x297917(0xcd)](_0x2d7095,String(_0x1ad920));}const _0xd89459=new AbortController(),_0x4f51b3=setTimeout(()=>_0xd89459[_0x297917(0xcb)](),timeout);try{const _0x1bf01b=await fetch(_0x237b5d,{'method':method,'headers':{'Content-Type':_0x297917(0xca),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x150e29,...headers},'signal':_0xd89459[_0x297917(0xff)]});let _0x4ec15b;try{_0x4ec15b=await _0x1bf01b[_0x297917(0xf4)]();}catch{throw CliErrors[_0x297917(0xa0)](_0x297917(0x10f)+_0x1bf01b[_0x297917(0x9c)]+')',_0x1bf01b[_0x297917(0x9c)]>=0x190?_0x297917(0xb2):undefined);}if(!_0x1bf01b['ok']){const _0x82a788=_0x4ec15b&&typeof _0x4ec15b===_0x297917(0x104)?_0x4ec15b:{};throw CliErrors[_0x297917(0xa0)](_0x82a788['errorMsg']||_0x82a788[_0x297917(0xf1)]||_0x297917(0xd4)+_0x1bf01b[_0x297917(0x9c)],_0x82a788[_0x297917(0x10c)]?_0x297917(0xd6)+_0x82a788[_0x297917(0x10c)]:undefined);}if(_0x4ec15b&&typeof _0x4ec15b==='object'&&_0x297917(0xd2)in _0x4ec15b&&typeof _0x4ec15b[_0x297917(0xd2)]===_0x297917(0x112)){const _0x189867=_0x4ec15b;if(!_0x189867[_0x297917(0xd2)])throw CliErrors[_0x297917(0xa0)](_0x189867[_0x297917(0xd0)]||_0x189867[_0x297917(0xf1)]||_0x297917(0x96),_0x189867[_0x297917(0x10c)]?_0x297917(0xd6)+_0x189867[_0x297917(0x10c)]:undefined);return _0x189867[_0x297917(0xc2)];}return _0x4ec15b;}catch(_0x30d3d6){if(_0x30d3d6 instanceof Error&&_0x30d3d6['name']===_0x297917(0xd1))throw CliErrors[_0x297917(0xa0)](_0x297917(0x108)+_0x237b5d['toString']());throw _0x30d3d6;}finally{clearTimeout(_0x4f51b3);}}async function skillHubJsonRequest(_0x456b0b,_0x41aef7={}){const _0x245c31=a65_0x4e7f,{method:method=_0x245c31(0xe0),query:_0x1d970d,body:_0x56795a,headers:headers={},timeout:timeout=0x7530}=_0x41aef7,_0x1f7ecf=_activeAK;if(!_0x1f7ecf)throw CliErrors[_0x245c31(0x10e)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x245c31(0xaf)]+'.');const _0x19666c=getSkillHubDomain()['replace'](/\/$/,''),_0x23b7e2=new URL(_0x456b0b,_0x19666c+'/');if(_0x1d970d)for(const [_0x139841,_0x275743]of Object[_0x245c31(0x103)](_0x1d970d)){_0x275743!==undefined&&_0x275743!==null&&_0x23b7e2['searchParams']['set'](_0x139841,String(_0x275743));}const _0x5c68a8=new AbortController(),_0x4bcd29=setTimeout(()=>_0x5c68a8[_0x245c31(0xcb)](),timeout);try{const _0x1d7929=await fetch(_0x23b7e2['toString'](),{'method':method,'headers':{'Accept':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x245c31(0xb0)],'X-User-AK':_0x1f7ecf,...headers},'body':_0x56795a,'signal':_0x5c68a8[_0x245c31(0xff)]});let _0x4ce562;try{_0x4ce562=await _0x1d7929[_0x245c31(0xf4)]();}catch{throw CliErrors[_0x245c31(0xa0)]('SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x1d7929[_0x245c31(0x9c)]+')',_0x1d7929[_0x245c31(0x9c)]>=0x190?_0x245c31(0xb2):undefined);}const _0x5c450a=!_0x1d7929['ok']||_0x4ce562?.[_0x245c31(0xd2)]===![]||typeof _0x4ce562?.[_0x245c31(0xdd)]===_0x245c31(0xe8)&&_0x4ce562[_0x245c31(0xdd)]>=0x190;if(_0x5c450a)throw CliErrors[_0x245c31(0xa0)](_0x4ce562?.[_0x245c31(0xd0)]||_0x4ce562?.[_0x245c31(0xf1)]||_0x4ce562?.[_0x245c31(0xa5)]||_0x245c31(0x106)+_0x1d7929[_0x245c31(0x9c)],_0x4ce562?.[_0x245c31(0x10c)]?'SkillHub\x20error\x20code:\x20'+_0x4ce562[_0x245c31(0x10c)]:undefined);return _0x4ce562?.[_0x245c31(0xc2)]??_0x4ce562;}catch(_0x2d9d5c){if(_0x2d9d5c instanceof Error&&_0x2d9d5c['name']==='AbortError')throw CliErrors[_0x245c31(0xa0)]('Request\x20timeout:\x20'+_0x23b7e2[_0x245c31(0xd7)]());throw _0x2d9d5c;}finally{clearTimeout(_0x4bcd29);}}async function skillHubBinaryRequest(_0x5407d0,_0x5b79a7={}){const _0x3423ab=a65_0x4e7f,{query:_0x31766d,headers:headers={},timeout:timeout=0x7530}=_0x5b79a7,_0x19a372=_activeAK;if(!_0x19a372)throw CliErrors[_0x3423ab(0x10e)](_0x3423ab(0xe4)+PRODUCT_CONFIG[_0x3423ab(0xaf)]+'.');const _0x2073ec=getSkillHubDomain()['replace'](/\/$/,''),_0x2b2487=new URL(_0x5407d0,_0x2073ec+'/');if(_0x31766d)for(const [_0x35ef59,_0x99d061]of Object[_0x3423ab(0x103)](_0x31766d)){_0x99d061!==undefined&&_0x99d061!==null&&_0x2b2487[_0x3423ab(0xaa)][_0x3423ab(0xcd)](_0x35ef59,String(_0x99d061));}const _0x23713d=new AbortController(),_0x4bb3db=setTimeout(()=>_0x23713d['abort'](),timeout);try{const _0x9e844e=await fetch(_0x2b2487[_0x3423ab(0xd7)](),{'method':_0x3423ab(0xe0),'headers':{'Accept':_0x3423ab(0xed),'X-Invoke-Source':PRODUCT_CONFIG[_0x3423ab(0xb0)],'X-User-AK':_0x19a372,...headers},'signal':_0x23713d[_0x3423ab(0xff)]});if(!_0x9e844e['ok']){let _0xc20800;try{const _0x51ed95=await _0x9e844e[_0x3423ab(0xf4)]();_0xc20800=_0x51ed95[_0x3423ab(0xd0)]||_0x51ed95['message']||_0x51ed95[_0x3423ab(0xa5)]||_0x51ed95[_0x3423ab(0x10c)];}catch{_0xc20800=await _0x9e844e[_0x3423ab(0x102)]()[_0x3423ab(0xb8)](()=>undefined);}throw CliErrors[_0x3423ab(0xa0)](_0xc20800||_0x3423ab(0x106)+_0x9e844e[_0x3423ab(0x9c)],_0x3423ab(0xde)+_0x2b2487[_0x3423ab(0xd7)]());}return Buffer[_0x3423ab(0xc5)](await _0x9e844e[_0x3423ab(0xbe)]());}catch(_0xca84d1){if(_0xca84d1 instanceof Error&&_0xca84d1['name']===_0x3423ab(0xd1))throw CliErrors['apiError'](_0x3423ab(0x108)+_0x2b2487[_0x3423ab(0xd7)]());throw _0xca84d1;}finally{clearTimeout(_0x4bb3db);}}export async function getBffScriptInfo(_0x2f8605){const _0x50b728=a65_0x4e7f,_0x123421=await apiRequest('/client/bff/query/'+_0x2f8605);if(!_0x123421[_0x50b728(0xc2)])throw CliErrors[_0x50b728(0xa3)](_0x50b728(0xf7)+_0x2f8605);return _0x123421[_0x50b728(0xc2)];}export async function getSqlQueryInfo(_0x47ae09,_0x2bee9d){const _0x103ea6=a65_0x4e7f,_0x5d6cf7=await apiRequest(_0x103ea6(0xf9),{'method':_0x103ea6(0xe5),'body':{'appCode':_0x47ae09,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x2bee9d}}),_0x2c445f=_0x5d6cf7[_0x103ea6(0xc2)],_0x197087=_0x2c445f&&typeof _0x2c445f===_0x103ea6(0x104)&&'tableData'in _0x2c445f?_0x2c445f[_0x103ea6(0xdf)]?.[0x0]:_0x2c445f&&typeof _0x2c445f===_0x103ea6(0x104)&&_0x103ea6(0xb6)in _0x2c445f?_0x2c445f:undefined;if(!_0x197087)throw CliErrors[_0x103ea6(0xa3)]('SQL\x20query\x20not\x20found:\x20'+_0x2bee9d);return _0x197087;}function isRemoteAppItem(_0xe72be7){const _0x5bb6ba=a65_0x4e7f;return!!_0xe72be7&&typeof _0xe72be7==='object'&&typeof _0xe72be7['appCode']===_0x5bb6ba(0xc7)&&typeof _0xe72be7[_0x5bb6ba(0xeb)]===_0x5bb6ba(0xc7);}function extractRemoteAppItems(_0x1c9db0){const _0x3a7e27=a65_0x4e7f;if(Array[_0x3a7e27(0xd5)](_0x1c9db0))return _0x1c9db0[_0x3a7e27(0xae)](isRemoteAppItem);if(!_0x1c9db0||typeof _0x1c9db0!==_0x3a7e27(0x104))throw CliErrors[_0x3a7e27(0xa0)](_0x3a7e27(0xad));const _0x51f80e=_0x1c9db0;if(Array['isArray'](_0x51f80e[_0x3a7e27(0xdf)]))return _0x51f80e[_0x3a7e27(0xdf)]['filter'](isRemoteAppItem);if(_0x51f80e[_0x3a7e27(0xc2)]&&typeof _0x51f80e['data']===_0x3a7e27(0x104)){const _0x587a85=_0x51f80e[_0x3a7e27(0xc2)];if(Array['isArray'](_0x587a85[_0x3a7e27(0xdf)]))return _0x587a85[_0x3a7e27(0xdf)][_0x3a7e27(0xae)](isRemoteAppItem);}throw CliErrors['apiError'](_0x3a7e27(0x98));}export async function getMyApps(){const _0x24a032=a65_0x4e7f,_0x2fe60c=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x2fe60c[_0x24a032(0xc2)]);}export async function getLoginUserInfo(){const _0x39cde9=a65_0x4e7f,_0x3379c5=await apiRequest(_0x39cde9(0xf2));if(!_0x3379c5[_0x39cde9(0xc2)]||typeof _0x3379c5[_0x39cde9(0xc2)]!==_0x39cde9(0x104)||Array[_0x39cde9(0xd5)](_0x3379c5[_0x39cde9(0xc2)]))throw CliErrors['apiError']('Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.');return _0x3379c5[_0x39cde9(0xc2)];}export async function listDatasets(_0x56bfdf,_0x513292){const _0x679398=a65_0x4e7f,_0x5ee895=await apiRequest('/client/dataset/list',{'method':_0x679398(0xe5),'body':{'appCode':_0x56bfdf,..._0x513292?.[_0x679398(0xdd)]&&{'code':_0x513292[_0x679398(0xdd)]},..._0x513292?.[_0x679398(0x101)]&&{'name':_0x513292[_0x679398(0x101)]}}});return extractList(_0x5ee895[_0x679398(0xc2)]);}export async function getDatasetDetail(_0xb678bf){const _0x28bbc5=a65_0x4e7f,_0x110c1=/^\d+$/[_0x28bbc5(0xda)](_0xb678bf)?'id':_0x28bbc5(0xdd),_0x34c6c9=await apiRequest(_0x28bbc5(0x9f)+_0x110c1+'='+_0xb678bf);return _0x34c6c9[_0x28bbc5(0xc2)];}export async function getDatasetSdkUsageDoc(_0x1a9747,_0x529328){const _0x1b1518=a65_0x4e7f,_0x40300f=await toolboxRequest(_0x1b1518(0xfe),{'datasetCode':_0x1a9747,'appCode':_0x529328});return typeof _0x40300f?.['markdown']===_0x1b1518(0xc7)?_0x40300f[_0x1b1518(0xcc)]:'';}function a65_0x385e(){const _0x20e0b7=['markdown','set','/client/runtime-bff/personal/create','/client/runtime-bff/personal/list?appCode=','errorMsg','AbortError','success','undefined','Toolbox\x20API\x20error:\x20','isArray','Toolbox\x20error\x20code:\x20','toString','query','337659FQYxXo','test','packageBase64','trim','code','Download\x20failed:\x20','tableData','GET','publishedVersion','/skills','skillCode','Configure\x20accessKey\x20in\x20','POST','20248AqMedN','file','number','623QqUgzF','.zip','appName','/client/artifact/','application/octet-stream','base64','/execute?appCode=','235555aEBYUb','message','/client/user/loginUserInfo','21809JdTCAr','json','API\x20error:\x20','all','BFF\x20script\x20not\x20found:\x20id=','namespace','/client/sql/query','/api/runtime/v1/namespaces/','/client/knowledge-base/personal/','replace','summary','api-doc-generator','signal','headlineVersion','name','text','entries','object','artifactType','SkillHub\x20API\x20error:\x20','/update','Request\x20timeout:\x20','/publish','679860oPFjQZ','Personal\x20BFF\x20not\x20found:\x20id=','errorCode','/client/knowledge-base/personal/list?appCode=','authRequired','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/runtime-bff/personal/','stringify','boolean','/api/node-toolbox/','Toolbox\x20API\x20error','2IBypaQ','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','/download','?appCode=','items','status','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','tags','/client/dataset/query?','apiError','/client/knowledge-base/personal/create','NAMESPACE_ONLY','validation','application/zip','msg','favorite','personal','Missing\x20Skill\x20package\x20payload.','/api/cli/v1/skills/','searchParams','displayName','Knowledge-base\x20entry\x20not\x20found:\x20id=','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','filter','newConfigFileName','invokeSource','30gQzuIT','Check\x20your\x20credentials\x20and\x20try\x20again.','/client/knowledge-base/search','company','ownerPreviewVersion','sqlCode','appCode','catch','4499850VcQnEh','scope','slug','topK','version','arrayBuffer','visibility','effective','map','data','PRIVATE','/versions/','from','source','string','876915kMQTlX','values','application/json','abort'];a65_0x385e=function(){return _0x20e0b7;};return a65_0x385e();}export async function listRuntimeArtifacts(_0x498053,_0x50f102){const _0x3f7348=a65_0x4e7f,_0x55639b=new URLSearchParams({'appCode':_0x498053});if(_0x50f102?.[_0x3f7348(0x105)])_0x55639b['set']('artifactType',_0x50f102[_0x3f7348(0x105)]);if(_0x50f102?.['source'])_0x55639b['set'](_0x3f7348(0xc6),_0x50f102[_0x3f7348(0xc6)]);if(_0x50f102?.[_0x3f7348(0xa6)]!==undefined)_0x55639b['set']('favorite',String(_0x50f102[_0x3f7348(0xa6)]));const _0x208e3a=await apiRequest('/client/artifact/list?'+_0x55639b[_0x3f7348(0xd7)]());return Array[_0x3f7348(0xd5)](_0x208e3a['data'])?_0x208e3a[_0x3f7348(0xc2)]:[];}export async function getRuntimeArtifact(_0xe0429,_0x15c0ee){const _0x1969da=a65_0x4e7f,_0x11c96f=await apiRequest(_0x1969da(0xec)+_0xe0429+_0x1969da(0x9a)+encodeURIComponent(_0x15c0ee));if(!_0x11c96f[_0x1969da(0xc2)])throw CliErrors[_0x1969da(0xa3)]('Artifact\x20not\x20found:\x20id='+_0xe0429);return _0x11c96f['data'];}export async function createRuntimeArtifact(_0xaf6876,_0x552588){const _0x1a0d11=a65_0x4e7f,_0x4f0f35=await apiRequest('/client/artifact/create',{'method':_0x1a0d11(0xe5),'body':{'appCode':_0xaf6876,..._0x552588}});return _0x4f0f35[_0x1a0d11(0xc2)];}export async function updateRuntimeArtifact(_0xf54cbf,_0x3c440e,_0x4e90ba){const _0x10a6cd=a65_0x4e7f,_0xeb07d4=await apiRequest('/client/artifact/'+_0xf54cbf+_0x10a6cd(0x107),{'method':_0x10a6cd(0xe5),'body':{'appCode':_0x3c440e,..._0x4e90ba}});return _0xeb07d4[_0x10a6cd(0xc2)];}export async function listPersonalBffs(_0x2b3cf3){const _0x9f4453=a65_0x4e7f,_0x181ab7=await apiRequest(_0x9f4453(0xcf)+encodeURIComponent(_0x2b3cf3));return Array['isArray'](_0x181ab7[_0x9f4453(0xc2)])?_0x181ab7['data']:[];}export async function getPersonalBff(_0x1318d4,_0x26a0f2){const _0x4a96cb=a65_0x4e7f,_0x3b7add=await apiRequest(_0x4a96cb(0x110)+_0x1318d4+'?appCode='+encodeURIComponent(_0x26a0f2));if(!_0x3b7add[_0x4a96cb(0xc2)])throw CliErrors[_0x4a96cb(0xa3)](_0x4a96cb(0x10b)+_0x1318d4);return _0x3b7add['data'];}export async function createPersonalBff(_0x85f2af,_0xe62eb2){const _0xbbe3fd=a65_0x4e7f,_0x2da0e1=await apiRequest(_0xbbe3fd(0xce),{'method':_0xbbe3fd(0xe5),'body':{'appCode':_0x85f2af,..._0xe62eb2}});return _0x2da0e1['data'];}export async function updatePersonalBff(_0x329ca6,_0x226417,_0x4659b0){const _0x3b5092=a65_0x4e7f,_0x171af2=await apiRequest('/client/runtime-bff/personal/'+_0x329ca6+_0x3b5092(0x107),{'method':_0x3b5092(0xe5),'body':{'appCode':_0x226417,..._0x4659b0}});return _0x171af2[_0x3b5092(0xc2)];}export async function executePersonalBff(_0x4d9afe,_0x5561fc,_0x386d99){const _0x29c489=a65_0x4e7f,_0x136b12=await apiRequest(_0x29c489(0x110)+_0x4d9afe+_0x29c489(0xef)+encodeURIComponent(_0x5561fc),{'method':_0x29c489(0xe5),'body':_0x386d99});return _0x136b12[_0x29c489(0xc2)];}export async function listPersonalKnowledgeBaseItems(_0x552cf8){const _0x53271e=a65_0x4e7f,_0x485a3e=await apiRequest(_0x53271e(0x10d)+encodeURIComponent(_0x552cf8));return Array[_0x53271e(0xd5)](_0x485a3e['data'])?_0x485a3e['data']:[];}export async function getPersonalKnowledgeBaseItem(_0x586783,_0x56e78a){const _0x309979=a65_0x4e7f,_0x2f1d44=await apiRequest(_0x309979(0xfb)+_0x586783+_0x309979(0x9a)+encodeURIComponent(_0x56e78a));if(!_0x2f1d44['data'])throw CliErrors['validation'](_0x309979(0xac)+_0x586783);return _0x2f1d44[_0x309979(0xc2)];}export async function createPersonalKnowledgeBaseItem(_0x5caff9,_0x5910b3){const _0x32c79b=a65_0x4e7f,_0x58a282=await apiRequest(_0x32c79b(0xa1),{'method':'POST','body':{'appCode':_0x5caff9,..._0x5910b3}});return _0x58a282[_0x32c79b(0xc2)];}export async function updatePersonalKnowledgeBaseItem(_0x2f85ab,_0x29701b,_0x530202){const _0x31e449=a65_0x4e7f,_0x4ef986=await apiRequest(_0x31e449(0xfb)+_0x2f85ab+_0x31e449(0x107),{'method':_0x31e449(0xe5),'body':{'appCode':_0x29701b,..._0x530202}});return _0x4ef986['data'];}export async function searchKnowledgeBase(_0x4692f1,_0xd2d5e3){const _0x158835=a65_0x4e7f,_0x47b411=await apiRequest(_0x158835(0xb3),{'method':_0x158835(0xe5),'body':{'appCode':_0x4692f1,'query':_0xd2d5e3[_0x158835(0xd8)],..._0xd2d5e3[_0x158835(0xbc)]!==undefined?{'topK':_0xd2d5e3[_0x158835(0xbc)]}:{}}});return Array[_0x158835(0xd5)](_0x47b411[_0x158835(0xc2)])?_0x47b411['data']:[];}export async function listRuntimeSkills(_0x4b8100){const _0x2c048c=a65_0x4e7f,_0x16ea92=await skillHubJsonRequest(_0x2c048c(0xfa)+encodeURIComponent(_0x4b8100[_0x2c048c(0xb7)])+_0x2c048c(0xe2),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x4b8100[_0x2c048c(0xb7)],_0x16ea92,_0x4b8100['scope']??_0x2c048c(0xf6),_0x4b8100[_0x2c048c(0xdd)]);}export async function listPersonalRuntimeSkills(_0x3130d7){const _0x29960a=a65_0x4e7f;return(await listRuntimeSkills({'appCode':_0x3130d7,'scope':_0x29960a(0xa7)}))['personal'];}export async function listCompanyRuntimeSkills(_0x1e0b48){const _0x12294e=a65_0x4e7f;return(await listRuntimeSkills({'appCode':_0x1e0b48,'scope':_0x12294e(0xb4)}))['company'];}export async function listVisibleRuntimeSkills(_0x1d9995){const _0x1211e3=a65_0x4e7f;return(await listRuntimeSkills({'appCode':_0x1d9995,'scope':_0x1211e3(0xf6)}))[_0x1211e3(0xc0)];}export async function createPersonalRuntimeSkill(_0x39ebf4,_0x2f8bc4){return publishRuntimeSkill(_0x39ebf4,_0x2f8bc4);}export async function updatePersonalRuntimeSkill(_0x1857b4,_0x2e199d,_0x54281a){const _0x5d91f6=a65_0x4e7f;return publishRuntimeSkill(_0x2e199d,{..._0x54281a,'skillCode':_0x54281a[_0x5d91f6(0xe3)]??_0x1857b4});}export async function downloadRuntimeSkillPackage(_0x1961c8,_0x319e77,_0x5a3b35,_0xa9c913){const _0x2d5c2e=a65_0x4e7f;void _0x1961c8;const _0xe9f67d=_0xa9c913?_0x2d5c2e(0xa9)+encodeURIComponent(_0x5a3b35)+'/'+encodeURIComponent(_0x319e77)+_0x2d5c2e(0xc4)+encodeURIComponent(_0xa9c913)+_0x2d5c2e(0x99):'/api/cli/v1/skills/'+encodeURIComponent(_0x5a3b35)+'/'+encodeURIComponent(_0x319e77)+_0x2d5c2e(0x99);return skillHubBinaryRequest(_0xe9f67d);}function a65_0x4e7f(_0x51e293,_0x4a827d){_0x51e293=_0x51e293-0x96;const _0x385e2e=a65_0x385e();let _0x4e7f15=_0x385e2e[_0x51e293];return _0x4e7f15;}async function publishRuntimeSkill(_0x3ee252,_0x13a2b3){const _0x512423=a65_0x4e7f,_0x1983dc=new FormData();_0x1983dc[_0x512423(0xcd)](_0x512423(0xe7),runtimeSkillPackageFile(_0x13a2b3)),_0x1983dc[_0x512423(0xcd)]('visibility',_0x512423(0xc3));const _0x54cbe5=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x3ee252)+_0x512423(0x109),{'method':_0x512423(0xe5),'body':_0x1983dc});return{'appCode':_0x54cbe5[_0x512423(0xf8)]??_0x3ee252,'skillCode':_0x54cbe5[_0x512423(0xbb)]??_0x13a2b3[_0x512423(0xe3)]??'','skillName':_0x13a2b3['skillName']??_0x54cbe5['slug']??_0x13a2b3[_0x512423(0xe3)],'description':_0x13a2b3['description'],'scope':skillHubVisibilityToScope(_0x54cbe5[_0x512423(0xbf)])??_0x512423(0xa7),'version':_0x54cbe5['version']??_0x13a2b3[_0x512423(0xbd)],'tags':_0x13a2b3[_0x512423(0x9e)],'content':_0x13a2b3['content']};}function runtimeSkillPackageFile(_0xf672c7){const _0x3f3857=a65_0x4e7f;if(!_0xf672c7['packageBase64'])throw CliErrors['validation'](_0x3f3857(0xa8));const _0x308ee4=Buffer['from'](_0xf672c7[_0x3f3857(0xdb)],_0x3f3857(0xee)),_0x21fe3b=new Blob([_0x308ee4],{'type':_0x3f3857(0xa4)}),_0x40f532=(_0xf672c7[_0x3f3857(0xe3)]||'skill')+_0x3f3857(0xea);if(typeof File!==_0x3f3857(0xd3))return new File([_0x21fe3b],_0x40f532,{'type':_0x3f3857(0xa4)});return _0x21fe3b;}function normalizeSkillHubRuntimeListResponse(_0x5a7159,_0x1c19a0,_0x55512b,_0x1fe93b){const _0x2d4009=a65_0x4e7f,_0xd4fb08=Array[_0x2d4009(0xd5)](_0x1c19a0)?_0x1c19a0:Array['isArray'](_0x1c19a0?.[_0x2d4009(0x9b)])?_0x1c19a0['items']:[],_0x55aea3=_0x1fe93b?.[_0x2d4009(0xdc)](),_0x8ea25c=_0xd4fb08['filter'](_0x32c17d=>!_0x55aea3||_0x32c17d[_0x2d4009(0xbb)]===_0x55aea3)[_0x2d4009(0xc1)](skillHubRuntimeItemToRuntimeSkill)[_0x2d4009(0xae)](_0x2e4b29=>Boolean(_0x2e4b29)),_0x1491a3=_0x8ea25c[_0x2d4009(0xae)](_0x4bbfed=>_0x4bbfed[_0x2d4009(0xba)]==='personal'),_0x36d4a0=_0x8ea25c['filter'](_0x277198=>_0x277198[_0x2d4009(0xba)]===_0x2d4009(0xb4));return{'appCode':_0x5a7159,'personal':_0x55512b===_0x2d4009(0xb4)?[]:_0x1491a3,'company':_0x55512b===_0x2d4009(0xa7)?[]:_0x36d4a0,'effective':buildEffectiveRuntimeSkills(_0x1491a3,_0x36d4a0,_0x55512b)};}function skillHubRuntimeItemToRuntimeSkill(_0x30d071){const _0xdf7286=a65_0x4e7f,_0x371381=_0x30d071[_0xdf7286(0xbb)]?.[_0xdf7286(0xdc)](),_0x46da07=skillHubVisibilityToScope(_0x30d071['visibility']);if(!_0x371381||!_0x46da07)return undefined;return{'id':_0x30d071['id'],'appCode':_0x30d071[_0xdf7286(0xf8)],'skillCode':_0x371381,'skillName':_0x30d071[_0xdf7286(0xab)]??_0x371381,'description':_0x30d071[_0xdf7286(0xfd)],'scope':_0x46da07,'version':skillHubRuntimeItemVersion(_0x30d071),'status':_0x30d071[_0xdf7286(0x9c)]};}function skillHubVisibilityToScope(_0x461705){const _0x45c1b3=a65_0x4e7f;if(_0x461705===_0x45c1b3(0xc3))return _0x45c1b3(0xa7);if(_0x461705===_0x45c1b3(0xa2))return _0x45c1b3(0xb4);return undefined;}function skillHubRuntimeItemVersion(_0x12075d){const _0x28fe7b=a65_0x4e7f;return _0x12075d[_0x28fe7b(0xe1)]?.[_0x28fe7b(0xbd)]??_0x12075d[_0x28fe7b(0x100)]?.[_0x28fe7b(0xbd)]??_0x12075d[_0x28fe7b(0xb5)]?.[_0x28fe7b(0xbd)];}function buildEffectiveRuntimeSkills(_0x175913,_0x1c58ea,_0x5e5a11){const _0x278e3b=a65_0x4e7f;if(_0x5e5a11==='personal')return _0x175913;if(_0x5e5a11==='company')return _0x1c58ea;const _0x3f1bf1=new Map();for(const _0x3881b9 of _0x1c58ea){_0x3f1bf1[_0x278e3b(0xcd)](_0x3881b9[_0x278e3b(0xe3)],_0x3881b9);}for(const _0xdf436e of _0x175913){_0x3f1bf1[_0x278e3b(0xcd)](_0xdf436e['skillCode'],_0xdf436e);}return Array[_0x278e3b(0xc5)](_0x3f1bf1[_0x278e3b(0xc9)]());}function normalizeRuntimeSkillListResponse(_0x3b47b7,_0x1eb1c3){const _0x2997f4=a65_0x4e7f;if(Array[_0x2997f4(0xd5)](_0x1eb1c3)){const _0x37a83e=_0x1eb1c3[_0x2997f4(0xae)](_0x326658=>_0x326658[_0x2997f4(0xba)]===_0x2997f4(0xa7)),_0x12d290=_0x1eb1c3['filter'](_0x5bead9=>_0x5bead9['scope']==='company');return{'appCode':_0x3b47b7,'personal':_0x37a83e,'company':_0x12d290,'effective':[..._0x12d290,..._0x37a83e]};}return{'appCode':_0x1eb1c3?.[_0x2997f4(0xb7)]??_0x3b47b7,'personal':Array[_0x2997f4(0xd5)](_0x1eb1c3?.[_0x2997f4(0xa7)])?_0x1eb1c3['personal']:[],'company':Array[_0x2997f4(0xd5)](_0x1eb1c3?.['company'])?_0x1eb1c3[_0x2997f4(0xb4)]:[],'effective':Array[_0x2997f4(0xd5)](_0x1eb1c3?.[_0x2997f4(0xc0)])?_0x1eb1c3[_0x2997f4(0xc0)]:[]};}
1
+ function a65_0x40e6(_0x3f9a1f,_0x2c405a){_0x3f9a1f=_0x3f9a1f-0x1db;const _0x456fe8=a65_0x456f();let _0x40e6d9=_0x456fe8[_0x3f9a1f];return _0x40e6d9;}(function(_0x3f5e27,_0x42089a){const _0x43e8ff=a65_0x40e6,_0x98cb9b=_0x3f5e27();while(!![]){try{const _0x3b30cf=parseInt(_0x43e8ff(0x230))/0x1*(parseInt(_0x43e8ff(0x24a))/0x2)+parseInt(_0x43e8ff(0x1e9))/0x3+parseInt(_0x43e8ff(0x249))/0x4+parseInt(_0x43e8ff(0x217))/0x5+parseInt(_0x43e8ff(0x207))/0x6+parseInt(_0x43e8ff(0x253))/0x7+-parseInt(_0x43e8ff(0x245))/0x8;if(_0x3b30cf===_0x42089a)break;else _0x98cb9b['push'](_0x98cb9b['shift']());}catch(_0x353ed8){_0x98cb9b['push'](_0x98cb9b['shift']());}}}(a65_0x456f,0xcd59a));import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x1d1997){_activeAK=_0x1d1997||undefined;}function a65_0x456f(){const _0x5831d0=['/publish','test','object','invokeSource','/client/knowledge-base/search','PRIVATE','/skills','6391210nmYLeW','/client/runtime-bff/personal/create','data','Request\x20timeout:\x20','msg','boolean','name','api-doc-generator','company','Personal\x20BFF\x20not\x20found:\x20id=','all','query','/update','source','newConfigFileName','GET','markdown','1963905lwYpkl','Toolbox\x20API\x20error:\x20','number','searchParams','/versions/','authRequired','API\x20error:\x20','effective','topK','visibility','skillCode','Toolbox\x20error\x20code:\x20','file','slug','API\x20error\x20code:\x20','Download\x20failed:\x20','/api/cli/v1/skills/','errorCode','catch','isArray','trim','personal','Check\x20your\x20credentials\x20and\x20try\x20again.','version','arrayBuffer','skillName','/client/runtime-bff/personal/','/api/node-toolbox/','/execute?appCode=','/api/runtime/v1/namespaces/','9605082LhGnNI','sqlCode','map','artifactType','undefined','code','summary','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','Missing\x20Skill\x20package\x20payload.','text','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','errorMsg','stringify','status','tableData','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','5864180zuRUDz','Toolbox\x20API\x20error','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','content','set','toString','headlineVersion','message','AbortError','string','ownerPreviewVersion','from','Artifact\x20not\x20found:\x20id=','/client/user/loginUserInfo','tags','application/json','/client/artifact/list?','POST','packageBase64','base64','/client/artifact/create','signal','publishedVersion','filter','replace','28685pVmjqo','abort','application/octet-stream','displayName','?appCode=','/client/artifact/','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','/client/bff/query/','appCode','/client/app/my-apps','scope','success','application/zip','/client/runtime-bff/personal/list?appCode=','entries','/client/knowledge-base/personal/list?appCode=','/download','Configure\x20accessKey\x20in\x20','/client/sql/query','validation','/client/dataset/list','35942352fUaKkN','apiError','SQL\x20query\x20not\x20found:\x20','skill','872260NDJmzZ','54preitb','json'];a65_0x456f=function(){return _0x5831d0;};return a65_0x456f();}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x211eca,_0x49099d={}){const _0x5dab07=a65_0x40e6,{method:method=_0x5dab07(0x1e7),body:_0x3b9c71,headers:headers={},timeout:timeout=0x7530}=_0x49099d,_0x15733b=_activeAK,_0x8f7ae=getRuntimeDomain();if(!_0x15733b)throw CliErrors[_0x5dab07(0x1ee)](_0x5dab07(0x241)+PRODUCT_CONFIG[_0x5dab07(0x1e6)]+'.');const _0x5f1ac1=''+_0x8f7ae+_0x211eca,_0x507624={'X-User-AK':_0x15733b},_0x9bcebf=new AbortController(),_0x2be798=setTimeout(()=>_0x9bcebf[_0x5dab07(0x231)](),timeout);try{const _0xf6e401=await fetch(_0x5f1ac1,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x5dab07(0x24f)],..._0x507624,...headers},'body':_0x3b9c71?JSON[_0x5dab07(0x213)](_0x3b9c71):undefined,'signal':_0x9bcebf[_0x5dab07(0x22c)]});let _0x4a2884;try{_0x4a2884=await _0xf6e401['json']();}catch{throw CliErrors['apiError'](_0x5dab07(0x211)+_0xf6e401[_0x5dab07(0x214)]+')',_0xf6e401[_0x5dab07(0x214)]>=0x190?_0x5dab07(0x1ff):undefined);}if(!_0xf6e401['ok']||_0x4a2884['success']===![])throw CliErrors[_0x5dab07(0x246)](_0x4a2884[_0x5dab07(0x212)]||_0x4a2884[_0x5dab07(0x21e)]||_0x5dab07(0x1ef)+_0xf6e401['status'],_0x4a2884[_0x5dab07(0x1fa)]?_0x5dab07(0x1f7)+_0x4a2884['errorCode']:undefined);return _0x4a2884;}catch(_0x2a99c4){if(_0x2a99c4 instanceof Error&&_0x2a99c4[_0x5dab07(0x1de)]===_0x5dab07(0x21f))throw CliErrors['apiError'](_0x5dab07(0x1db)+_0x5f1ac1);throw _0x2a99c4;}finally{clearTimeout(_0x2be798);}}async function apiBinaryRequest(_0x45213a,_0x572571={}){const _0x323613=a65_0x40e6,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x572571,_0x1aa7cc=_activeAK,_0x48d4a4=getRuntimeDomain();if(!_0x1aa7cc)throw CliErrors[_0x323613(0x1ee)](_0x323613(0x241)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x140a35=''+_0x48d4a4+_0x45213a,_0x20a7ac=new AbortController(),_0xb2f2aa=setTimeout(()=>_0x20a7ac[_0x323613(0x231)](),timeout);try{const _0x3b41c4=await fetch(_0x140a35,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x1aa7cc,...headers},'signal':_0x20a7ac['signal']});if(!_0x3b41c4['ok']){let _0x26f74c;try{const _0x469b48=await _0x3b41c4[_0x323613(0x24b)]();_0x26f74c=_0x469b48['errorMsg']||_0x469b48[_0x323613(0x21e)]||_0x469b48['errorCode'];}catch{_0x26f74c=await _0x3b41c4[_0x323613(0x210)]()[_0x323613(0x1fb)](()=>undefined);}throw CliErrors[_0x323613(0x246)](_0x26f74c||_0x323613(0x1ef)+_0x3b41c4[_0x323613(0x214)],_0x323613(0x1f8)+_0x140a35);}return Buffer[_0x323613(0x222)](await _0x3b41c4[_0x323613(0x201)]());}catch(_0x2843e1){if(_0x2843e1 instanceof Error&&_0x2843e1[_0x323613(0x1de)]===_0x323613(0x21f))throw CliErrors[_0x323613(0x246)]('Request\x20timeout:\x20'+_0x140a35);throw _0x2843e1;}finally{clearTimeout(_0xb2f2aa);}}async function toolboxRequest(_0x135cda,_0x5322ba,_0x5b1668={}){const _0x5be924=a65_0x40e6,{method:method=_0x5be924(0x1e7),headers:headers={},timeout:timeout=0x7530}=_0x5b1668,_0x432b7d=_activeAK;if(!_0x432b7d)throw CliErrors[_0x5be924(0x1ee)](_0x5be924(0x241)+PRODUCT_CONFIG[_0x5be924(0x1e6)]+'.');const _0x430769=getApiDomain()[_0x5be924(0x22f)](/\/$/,''),_0x53d805=new URL(_0x135cda,_0x430769+_0x5be924(0x204));if(_0x5322ba)for(const [_0x32666c,_0x344efe]of Object[_0x5be924(0x23e)](_0x5322ba)){_0x344efe!==undefined&&_0x344efe!==null&&_0x53d805[_0x5be924(0x1ec)][_0x5be924(0x21b)](_0x32666c,String(_0x344efe));}const _0x3c52e1=new AbortController(),_0x5c026a=setTimeout(()=>_0x3c52e1[_0x5be924(0x231)](),timeout);try{const _0x3a9684=await fetch(_0x53d805,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x5be924(0x24f)],'X-User-AK':_0x432b7d,...headers},'signal':_0x3c52e1['signal']});let _0x57c377;try{_0x57c377=await _0x3a9684[_0x5be924(0x24b)]();}catch{throw CliErrors[_0x5be924(0x246)]('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x3a9684[_0x5be924(0x214)]+')',_0x3a9684[_0x5be924(0x214)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x3a9684['ok']){const _0x47a8c3=_0x57c377&&typeof _0x57c377===_0x5be924(0x24e)?_0x57c377:{};throw CliErrors['apiError'](_0x47a8c3[_0x5be924(0x212)]||_0x47a8c3['message']||_0x5be924(0x1ea)+_0x3a9684['status'],_0x47a8c3[_0x5be924(0x1fa)]?_0x5be924(0x1f4)+_0x47a8c3['errorCode']:undefined);}if(_0x57c377&&typeof _0x57c377===_0x5be924(0x24e)&&_0x5be924(0x23b)in _0x57c377&&typeof _0x57c377['success']===_0x5be924(0x1dd)){const _0x504ff4=_0x57c377;if(!_0x504ff4[_0x5be924(0x23b)])throw CliErrors[_0x5be924(0x246)](_0x504ff4[_0x5be924(0x212)]||_0x504ff4['message']||_0x5be924(0x218),_0x504ff4[_0x5be924(0x1fa)]?_0x5be924(0x1f4)+_0x504ff4[_0x5be924(0x1fa)]:undefined);return _0x504ff4[_0x5be924(0x255)];}return _0x57c377;}catch(_0x55c302){if(_0x55c302 instanceof Error&&_0x55c302[_0x5be924(0x1de)]===_0x5be924(0x21f))throw CliErrors['apiError'](_0x5be924(0x1db)+_0x53d805[_0x5be924(0x21c)]());throw _0x55c302;}finally{clearTimeout(_0x5c026a);}}async function skillHubJsonRequest(_0x2820d3,_0x10f5f1={}){const _0xfb5a89=a65_0x40e6,{method:method=_0xfb5a89(0x1e7),query:_0x35df21,body:_0x1de546,headers:headers={},timeout:timeout=0x7530}=_0x10f5f1,_0x184501=_activeAK;if(!_0x184501)throw CliErrors[_0xfb5a89(0x1ee)](_0xfb5a89(0x241)+PRODUCT_CONFIG[_0xfb5a89(0x1e6)]+'.');const _0x337630=getSkillHubDomain()[_0xfb5a89(0x22f)](/\/$/,''),_0x385d7b=new URL(_0x2820d3,_0x337630+'/');if(_0x35df21)for(const [_0x56e468,_0x4efced]of Object[_0xfb5a89(0x23e)](_0x35df21)){_0x4efced!==undefined&&_0x4efced!==null&&_0x385d7b[_0xfb5a89(0x1ec)]['set'](_0x56e468,String(_0x4efced));}const _0x188dd7=new AbortController(),_0x4f2e9f=setTimeout(()=>_0x188dd7['abort'](),timeout);try{const _0x55c1ce=await fetch(_0x385d7b[_0xfb5a89(0x21c)](),{'method':method,'headers':{'Accept':_0xfb5a89(0x226),'X-Invoke-Source':PRODUCT_CONFIG[_0xfb5a89(0x24f)],'X-User-AK':_0x184501,...headers},'body':_0x1de546,'signal':_0x188dd7['signal']});let _0x35dd32;try{_0x35dd32=await _0x55c1ce['json']();}catch{throw CliErrors['apiError'](_0xfb5a89(0x20e)+_0x55c1ce[_0xfb5a89(0x214)]+')',_0x55c1ce['status']>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x45cedb=!_0x55c1ce['ok']||_0x35dd32?.[_0xfb5a89(0x23b)]===![]||typeof _0x35dd32?.[_0xfb5a89(0x20c)]===_0xfb5a89(0x1eb)&&_0x35dd32[_0xfb5a89(0x20c)]>=0x190;if(_0x45cedb)throw CliErrors[_0xfb5a89(0x246)](_0x35dd32?.[_0xfb5a89(0x212)]||_0x35dd32?.[_0xfb5a89(0x21e)]||_0x35dd32?.[_0xfb5a89(0x1dc)]||'SkillHub\x20API\x20error:\x20'+_0x55c1ce[_0xfb5a89(0x214)],_0x35dd32?.[_0xfb5a89(0x1fa)]?'SkillHub\x20error\x20code:\x20'+_0x35dd32[_0xfb5a89(0x1fa)]:undefined);return _0x35dd32?.[_0xfb5a89(0x255)]??_0x35dd32;}catch(_0x3e2208){if(_0x3e2208 instanceof Error&&_0x3e2208[_0xfb5a89(0x1de)]==='AbortError')throw CliErrors[_0xfb5a89(0x246)](_0xfb5a89(0x1db)+_0x385d7b[_0xfb5a89(0x21c)]());throw _0x3e2208;}finally{clearTimeout(_0x4f2e9f);}}async function skillHubBinaryRequest(_0x2ae151,_0x5f22d6={}){const _0x3ef0d5=a65_0x40e6,{query:_0x5d51c3,headers:headers={},timeout:timeout=0x7530}=_0x5f22d6,_0x4857d4=_activeAK;if(!_0x4857d4)throw CliErrors[_0x3ef0d5(0x1ee)](_0x3ef0d5(0x241)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x55c870=getSkillHubDomain()[_0x3ef0d5(0x22f)](/\/$/,''),_0x56a442=new URL(_0x2ae151,_0x55c870+'/');if(_0x5d51c3)for(const [_0x12c688,_0x685491]of Object[_0x3ef0d5(0x23e)](_0x5d51c3)){_0x685491!==undefined&&_0x685491!==null&&_0x56a442[_0x3ef0d5(0x1ec)]['set'](_0x12c688,String(_0x685491));}const _0x51ce2a=new AbortController(),_0x5defd9=setTimeout(()=>_0x51ce2a[_0x3ef0d5(0x231)](),timeout);try{const _0x501bf2=await fetch(_0x56a442[_0x3ef0d5(0x21c)](),{'method':_0x3ef0d5(0x1e7),'headers':{'Accept':_0x3ef0d5(0x232),'X-Invoke-Source':PRODUCT_CONFIG[_0x3ef0d5(0x24f)],'X-User-AK':_0x4857d4,...headers},'signal':_0x51ce2a['signal']});if(!_0x501bf2['ok']){let _0x298d6f;try{const _0x8c4ce5=await _0x501bf2[_0x3ef0d5(0x24b)]();_0x298d6f=_0x8c4ce5[_0x3ef0d5(0x212)]||_0x8c4ce5['message']||_0x8c4ce5[_0x3ef0d5(0x1dc)]||_0x8c4ce5[_0x3ef0d5(0x1fa)];}catch{_0x298d6f=await _0x501bf2[_0x3ef0d5(0x210)]()[_0x3ef0d5(0x1fb)](()=>undefined);}throw CliErrors['apiError'](_0x298d6f||'SkillHub\x20API\x20error:\x20'+_0x501bf2[_0x3ef0d5(0x214)],_0x3ef0d5(0x1f8)+_0x56a442['toString']());}return Buffer[_0x3ef0d5(0x222)](await _0x501bf2[_0x3ef0d5(0x201)]());}catch(_0xb02e1e){if(_0xb02e1e instanceof Error&&_0xb02e1e[_0x3ef0d5(0x1de)]===_0x3ef0d5(0x21f))throw CliErrors[_0x3ef0d5(0x246)](_0x3ef0d5(0x1db)+_0x56a442[_0x3ef0d5(0x21c)]());throw _0xb02e1e;}finally{clearTimeout(_0x5defd9);}}export async function getBffScriptInfo(_0xf0a4c7){const _0x295a7b=a65_0x40e6,_0x59d518=await apiRequest(_0x295a7b(0x237)+_0xf0a4c7);if(!_0x59d518[_0x295a7b(0x255)])throw CliErrors[_0x295a7b(0x243)]('BFF\x20script\x20not\x20found:\x20id='+_0xf0a4c7);return _0x59d518['data'];}export async function getSqlQueryInfo(_0x5d7fb4,_0x4f695e){const _0x1c2853=a65_0x40e6,_0xe5aad9=await apiRequest(_0x1c2853(0x242),{'method':'POST','body':{'appCode':_0x5d7fb4,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x4f695e}}),_0x3b705f=_0xe5aad9['data'],_0x385efb=_0x3b705f&&typeof _0x3b705f===_0x1c2853(0x24e)&&'tableData'in _0x3b705f?_0x3b705f[_0x1c2853(0x215)]?.[0x0]:_0x3b705f&&typeof _0x3b705f==='object'&&_0x1c2853(0x208)in _0x3b705f?_0x3b705f:undefined;if(!_0x385efb)throw CliErrors[_0x1c2853(0x243)](_0x1c2853(0x247)+_0x4f695e);return _0x385efb;}function isRemoteAppItem(_0x23db51){const _0x1ebfa9=a65_0x40e6;return!!_0x23db51&&typeof _0x23db51===_0x1ebfa9(0x24e)&&typeof _0x23db51[_0x1ebfa9(0x238)]===_0x1ebfa9(0x220)&&typeof _0x23db51['appName']===_0x1ebfa9(0x220);}function extractRemoteAppItems(_0x271700){const _0x535da7=a65_0x40e6;if(Array['isArray'](_0x271700))return _0x271700[_0x535da7(0x22e)](isRemoteAppItem);if(!_0x271700||typeof _0x271700!==_0x535da7(0x24e))throw CliErrors[_0x535da7(0x246)](_0x535da7(0x219));const _0x348b67=_0x271700;if(Array[_0x535da7(0x1fc)](_0x348b67[_0x535da7(0x215)]))return _0x348b67['tableData']['filter'](isRemoteAppItem);if(_0x348b67[_0x535da7(0x255)]&&typeof _0x348b67[_0x535da7(0x255)]===_0x535da7(0x24e)){const _0x19767f=_0x348b67[_0x535da7(0x255)];if(Array['isArray'](_0x19767f[_0x535da7(0x215)]))return _0x19767f[_0x535da7(0x215)][_0x535da7(0x22e)](isRemoteAppItem);}throw CliErrors[_0x535da7(0x246)](_0x535da7(0x236));}export async function getMyApps(){const _0xdc6181=a65_0x40e6,_0x18357c=await apiRequest(_0xdc6181(0x239));return extractRemoteAppItems(_0x18357c['data']);}export async function getLoginUserInfo(){const _0x6736fe=a65_0x40e6,_0x2e2001=await apiRequest(_0x6736fe(0x224));if(!_0x2e2001[_0x6736fe(0x255)]||typeof _0x2e2001[_0x6736fe(0x255)]!=='object'||Array[_0x6736fe(0x1fc)](_0x2e2001[_0x6736fe(0x255)]))throw CliErrors['apiError'](_0x6736fe(0x216));return _0x2e2001[_0x6736fe(0x255)];}export async function listDatasets(_0x45cb56,_0x83a5a0){const _0x3ce80f=a65_0x40e6,_0x4aee88=await apiRequest(_0x3ce80f(0x244),{'method':_0x3ce80f(0x228),'body':{'appCode':_0x45cb56,..._0x83a5a0?.[_0x3ce80f(0x20c)]&&{'code':_0x83a5a0['code']},..._0x83a5a0?.[_0x3ce80f(0x1de)]&&{'name':_0x83a5a0[_0x3ce80f(0x1de)]}}});return extractList(_0x4aee88[_0x3ce80f(0x255)]);}export async function getDatasetDetail(_0x4bf461){const _0x46d6fe=a65_0x40e6,_0x29f745=/^\d+$/[_0x46d6fe(0x24d)](_0x4bf461)?'id':'code',_0x58fa41=await apiRequest('/client/dataset/query?'+_0x29f745+'='+_0x4bf461);return _0x58fa41[_0x46d6fe(0x255)];}export async function getDatasetSdkUsageDoc(_0x1bb73f,_0x5dc293){const _0x9510cf=a65_0x40e6,_0x111425=await toolboxRequest(_0x9510cf(0x1df),{'datasetCode':_0x1bb73f,'appCode':_0x5dc293});return typeof _0x111425?.[_0x9510cf(0x1e8)]===_0x9510cf(0x220)?_0x111425[_0x9510cf(0x1e8)]:'';}export async function listRuntimeArtifacts(_0x21ed2b,_0x7b74c){const _0x6c0d4f=a65_0x40e6,_0x567960=new URLSearchParams({'appCode':_0x21ed2b});if(_0x7b74c?.[_0x6c0d4f(0x20a)])_0x567960[_0x6c0d4f(0x21b)](_0x6c0d4f(0x20a),_0x7b74c['artifactType']);if(_0x7b74c?.[_0x6c0d4f(0x1e5)])_0x567960[_0x6c0d4f(0x21b)](_0x6c0d4f(0x1e5),_0x7b74c['source']);if(_0x7b74c?.['favorite']!==undefined)_0x567960[_0x6c0d4f(0x21b)]('favorite',String(_0x7b74c['favorite']));const _0x41215a=await apiRequest(_0x6c0d4f(0x227)+_0x567960['toString']());return Array[_0x6c0d4f(0x1fc)](_0x41215a['data'])?_0x41215a[_0x6c0d4f(0x255)]:[];}export async function getRuntimeArtifact(_0x1333a6,_0x295cf0){const _0x43da8b=a65_0x40e6,_0x2bbedd=await apiRequest(_0x43da8b(0x235)+_0x1333a6+_0x43da8b(0x234)+encodeURIComponent(_0x295cf0));if(!_0x2bbedd[_0x43da8b(0x255)])throw CliErrors[_0x43da8b(0x243)](_0x43da8b(0x223)+_0x1333a6);return _0x2bbedd[_0x43da8b(0x255)];}export async function createRuntimeArtifact(_0xbec1ae,_0x1bb9fe){const _0x11a380=a65_0x40e6,_0x2f4478=await apiRequest(_0x11a380(0x22b),{'method':_0x11a380(0x228),'body':{'appCode':_0xbec1ae,..._0x1bb9fe}});return _0x2f4478[_0x11a380(0x255)];}export async function updateRuntimeArtifact(_0xc05def,_0x1bc353,_0x5c0397){const _0xfba1c0=a65_0x40e6,_0xb48c46=await apiRequest(_0xfba1c0(0x235)+_0xc05def+'/update',{'method':_0xfba1c0(0x228),'body':{'appCode':_0x1bc353,..._0x5c0397}});return _0xb48c46[_0xfba1c0(0x255)];}export async function listPersonalBffs(_0x1396d1){const _0x2fcf2d=a65_0x40e6,_0x3268d7=await apiRequest(_0x2fcf2d(0x23d)+encodeURIComponent(_0x1396d1));return Array['isArray'](_0x3268d7[_0x2fcf2d(0x255)])?_0x3268d7[_0x2fcf2d(0x255)]:[];}export async function getPersonalBff(_0x512a37,_0x2799a0){const _0x377703=a65_0x40e6,_0x14932b=await apiRequest('/client/runtime-bff/personal/'+_0x512a37+_0x377703(0x234)+encodeURIComponent(_0x2799a0));if(!_0x14932b[_0x377703(0x255)])throw CliErrors[_0x377703(0x243)](_0x377703(0x1e1)+_0x512a37);return _0x14932b[_0x377703(0x255)];}export async function createPersonalBff(_0x350ff2,_0x4bfb15){const _0x5e18be=a65_0x40e6,_0x47509b=await apiRequest(_0x5e18be(0x254),{'method':_0x5e18be(0x228),'body':{'appCode':_0x350ff2,..._0x4bfb15}});return _0x47509b['data'];}export async function updatePersonalBff(_0x415c8f,_0x2f69fe,_0x496e0c){const _0x16b4c4=a65_0x40e6,_0x5df68a=await apiRequest('/client/runtime-bff/personal/'+_0x415c8f+_0x16b4c4(0x1e4),{'method':_0x16b4c4(0x228),'body':{'appCode':_0x2f69fe,..._0x496e0c}});return _0x5df68a[_0x16b4c4(0x255)];}export async function executePersonalBff(_0x3331b2,_0x8150ce,_0x15af12){const _0x2a7343=a65_0x40e6,_0x55bdd8=await apiRequest(_0x2a7343(0x203)+_0x3331b2+_0x2a7343(0x205)+encodeURIComponent(_0x8150ce),{'method':'POST','body':_0x15af12});return _0x55bdd8['data'];}export async function listPersonalKnowledgeBaseItems(_0x99a7a1){const _0x136a68=a65_0x40e6,_0x488da2=await apiRequest(_0x136a68(0x23f)+encodeURIComponent(_0x99a7a1));return Array[_0x136a68(0x1fc)](_0x488da2[_0x136a68(0x255)])?_0x488da2[_0x136a68(0x255)]:[];}export async function getPersonalKnowledgeBaseItem(_0x478de4,_0x3d0dc9){const _0x29f0b2=a65_0x40e6,_0x5efe1a=await apiRequest('/client/knowledge-base/personal/'+_0x478de4+_0x29f0b2(0x234)+encodeURIComponent(_0x3d0dc9));if(!_0x5efe1a['data'])throw CliErrors['validation']('Knowledge-base\x20entry\x20not\x20found:\x20id='+_0x478de4);return _0x5efe1a[_0x29f0b2(0x255)];}export async function createPersonalKnowledgeBaseItem(_0x535259,_0x17f0b6){const _0xe6dc81=a65_0x40e6,_0x689295=await apiRequest('/client/knowledge-base/personal/create',{'method':_0xe6dc81(0x228),'body':{'appCode':_0x535259,..._0x17f0b6}});return _0x689295[_0xe6dc81(0x255)];}export async function updatePersonalKnowledgeBaseItem(_0xed4eb8,_0x1ceec0,_0x2c57ec){const _0xc657c1=a65_0x40e6,_0x2983c3=await apiRequest('/client/knowledge-base/personal/'+_0xed4eb8+_0xc657c1(0x1e4),{'method':'POST','body':{'appCode':_0x1ceec0,..._0x2c57ec}});return _0x2983c3[_0xc657c1(0x255)];}export async function searchKnowledgeBase(_0x1d427a,_0x5e10d2){const _0x4e9714=a65_0x40e6,_0x31b14b=await apiRequest(_0x4e9714(0x250),{'method':'POST','body':{'appCode':_0x1d427a,'query':_0x5e10d2[_0x4e9714(0x1e3)],..._0x5e10d2[_0x4e9714(0x1f1)]!==undefined?{'topK':_0x5e10d2[_0x4e9714(0x1f1)]}:{}}});return Array[_0x4e9714(0x1fc)](_0x31b14b[_0x4e9714(0x255)])?_0x31b14b['data']:[];}export async function listRuntimeSkills(_0x26ceef){const _0x2e6613=a65_0x40e6,_0x435f91=await skillHubJsonRequest(_0x2e6613(0x206)+encodeURIComponent(_0x26ceef[_0x2e6613(0x238)])+_0x2e6613(0x252),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x26ceef['appCode'],_0x435f91,_0x26ceef['scope']??'all',_0x26ceef[_0x2e6613(0x20c)]);}export async function listPersonalRuntimeSkills(_0x15f228){const _0x56c668=a65_0x40e6;return(await listRuntimeSkills({'appCode':_0x15f228,'scope':'personal'}))[_0x56c668(0x1fe)];}export async function listCompanyRuntimeSkills(_0x12f094){const _0x339811=a65_0x40e6;return(await listRuntimeSkills({'appCode':_0x12f094,'scope':_0x339811(0x1e0)}))['company'];}export async function listVisibleRuntimeSkills(_0x10ab57){const _0x2cca41=a65_0x40e6;return(await listRuntimeSkills({'appCode':_0x10ab57,'scope':_0x2cca41(0x1e2)}))[_0x2cca41(0x1f0)];}export async function createPersonalRuntimeSkill(_0x38793c,_0x208589){return publishRuntimeSkill(_0x38793c,_0x208589);}export async function updatePersonalRuntimeSkill(_0x309a2d,_0x24ace3,_0x5009a8){const _0x4ad993=a65_0x40e6;return publishRuntimeSkill(_0x24ace3,{..._0x5009a8,'skillCode':_0x5009a8[_0x4ad993(0x1f3)]??_0x309a2d});}export async function downloadRuntimeSkillPackage(_0x2fc9f9,_0x474447,_0x47a7c1,_0x48f6a3){const _0x4ffff0=a65_0x40e6;void _0x2fc9f9;const _0x366c71=_0x48f6a3?_0x4ffff0(0x1f9)+encodeURIComponent(_0x47a7c1)+'/'+encodeURIComponent(_0x474447)+_0x4ffff0(0x1ed)+encodeURIComponent(_0x48f6a3)+_0x4ffff0(0x240):_0x4ffff0(0x1f9)+encodeURIComponent(_0x47a7c1)+'/'+encodeURIComponent(_0x474447)+_0x4ffff0(0x240);return skillHubBinaryRequest(_0x366c71);}async function publishRuntimeSkill(_0x36f537,_0x7e0994){const _0x310fc5=a65_0x40e6,_0x2089a9=new FormData();_0x2089a9[_0x310fc5(0x21b)](_0x310fc5(0x1f5),runtimeSkillPackageFile(_0x7e0994)),_0x2089a9[_0x310fc5(0x21b)](_0x310fc5(0x1f2),'PRIVATE');const _0x18f41a=await skillHubJsonRequest(_0x310fc5(0x1f9)+encodeURIComponent(_0x36f537)+_0x310fc5(0x24c),{'method':_0x310fc5(0x228),'body':_0x2089a9});return{'appCode':_0x18f41a['namespace']??_0x36f537,'skillCode':_0x18f41a[_0x310fc5(0x1f6)]??_0x7e0994['skillCode']??'','skillName':_0x7e0994[_0x310fc5(0x202)]??_0x18f41a[_0x310fc5(0x1f6)]??_0x7e0994['skillCode'],'description':_0x7e0994['description'],'scope':skillHubVisibilityToScope(_0x18f41a[_0x310fc5(0x1f2)])??_0x310fc5(0x1fe),'version':_0x18f41a['version']??_0x7e0994[_0x310fc5(0x200)],'tags':_0x7e0994[_0x310fc5(0x225)],'content':_0x7e0994[_0x310fc5(0x21a)]};}function runtimeSkillPackageFile(_0x104b21){const _0x43e101=a65_0x40e6;if(!_0x104b21[_0x43e101(0x229)])throw CliErrors[_0x43e101(0x243)](_0x43e101(0x20f));const _0x311a2b=Buffer[_0x43e101(0x222)](_0x104b21['packageBase64'],_0x43e101(0x22a)),_0x207138=new Blob([_0x311a2b],{'type':_0x43e101(0x23c)}),_0x121eb2=(_0x104b21[_0x43e101(0x1f3)]||_0x43e101(0x248))+'.zip';if(typeof File!==_0x43e101(0x20b))return new File([_0x207138],_0x121eb2,{'type':'application/zip'});return _0x207138;}function normalizeSkillHubRuntimeListResponse(_0x3488eb,_0x203d7c,_0x4f820a,_0x59b6c2){const _0x5282b3=a65_0x40e6,_0x172399=Array[_0x5282b3(0x1fc)](_0x203d7c)?_0x203d7c:Array['isArray'](_0x203d7c?.['items'])?_0x203d7c['items']:[],_0x30951b=_0x59b6c2?.[_0x5282b3(0x1fd)](),_0xec48b=_0x172399[_0x5282b3(0x22e)](_0x29acc6=>!_0x30951b||_0x29acc6[_0x5282b3(0x1f6)]===_0x30951b)[_0x5282b3(0x209)](skillHubRuntimeItemToRuntimeSkill)['filter'](_0x35896e=>Boolean(_0x35896e)),_0x12f589=_0xec48b[_0x5282b3(0x22e)](_0x3f6231=>_0x3f6231[_0x5282b3(0x23a)]===_0x5282b3(0x1fe)),_0x16f78b=_0xec48b[_0x5282b3(0x22e)](_0x14761b=>_0x14761b[_0x5282b3(0x23a)]===_0x5282b3(0x1e0));return{'appCode':_0x3488eb,'personal':_0x4f820a===_0x5282b3(0x1e0)?[]:_0x12f589,'company':_0x4f820a===_0x5282b3(0x1fe)?[]:_0x16f78b,'effective':buildEffectiveRuntimeSkills(_0x12f589,_0x16f78b,_0x4f820a)};}function skillHubRuntimeItemToRuntimeSkill(_0x4a36f9){const _0x308e8d=a65_0x40e6,_0x3fdd4c=_0x4a36f9[_0x308e8d(0x1f6)]?.[_0x308e8d(0x1fd)](),_0x169b9f=skillHubVisibilityToScope(_0x4a36f9[_0x308e8d(0x1f2)]);if(!_0x3fdd4c||!_0x169b9f)return undefined;return{'id':_0x4a36f9['id'],'appCode':_0x4a36f9['namespace'],'skillCode':_0x3fdd4c,'skillName':_0x4a36f9[_0x308e8d(0x233)]??_0x3fdd4c,'description':_0x4a36f9[_0x308e8d(0x20d)],'scope':_0x169b9f,'version':skillHubRuntimeItemVersion(_0x4a36f9),'status':_0x4a36f9[_0x308e8d(0x214)]};}function skillHubVisibilityToScope(_0x450417){const _0x3df2fb=a65_0x40e6;if(_0x450417===_0x3df2fb(0x251))return'personal';if(_0x450417==='NAMESPACE_ONLY')return'company';return undefined;}function skillHubRuntimeItemVersion(_0x3e7366){const _0x5dd566=a65_0x40e6;return _0x3e7366[_0x5dd566(0x22d)]?.[_0x5dd566(0x200)]??_0x3e7366[_0x5dd566(0x21d)]?.['version']??_0x3e7366[_0x5dd566(0x221)]?.['version'];}function buildEffectiveRuntimeSkills(_0x4ba20b,_0x34c229,_0x2cbfc0){const _0x177c9e=a65_0x40e6;if(_0x2cbfc0===_0x177c9e(0x1fe))return _0x4ba20b;if(_0x2cbfc0===_0x177c9e(0x1e0))return _0x34c229;const _0x33d18c=new Map();for(const _0x1bf13f of _0x34c229){_0x33d18c[_0x177c9e(0x21b)](_0x1bf13f[_0x177c9e(0x1f3)],_0x1bf13f);}for(const _0x14857d of _0x4ba20b){_0x33d18c['set'](_0x14857d[_0x177c9e(0x1f3)],_0x14857d);}return Array[_0x177c9e(0x222)](_0x33d18c['values']());}function normalizeRuntimeSkillListResponse(_0x5d032b,_0x1ec4d8){const _0x2a7641=a65_0x40e6;if(Array['isArray'](_0x1ec4d8)){const _0x478950=_0x1ec4d8['filter'](_0x3c3142=>_0x3c3142[_0x2a7641(0x23a)]==='personal'),_0x1f503b=_0x1ec4d8[_0x2a7641(0x22e)](_0x5562cc=>_0x5562cc[_0x2a7641(0x23a)]===_0x2a7641(0x1e0));return{'appCode':_0x5d032b,'personal':_0x478950,'company':_0x1f503b,'effective':[..._0x1f503b,..._0x478950]};}return{'appCode':_0x1ec4d8?.[_0x2a7641(0x238)]??_0x5d032b,'personal':Array['isArray'](_0x1ec4d8?.['personal'])?_0x1ec4d8[_0x2a7641(0x1fe)]:[],'company':Array['isArray'](_0x1ec4d8?.[_0x2a7641(0x1e0)])?_0x1ec4d8['company']:[],'effective':Array[_0x2a7641(0x1fc)](_0x1ec4d8?.[_0x2a7641(0x1f0)])?_0x1ec4d8[_0x2a7641(0x1f0)]:[]};}
@@ -1 +1 @@
1
- function a66_0x3259(){const _0x5e0a65=['get','set','3336DUtHcc','dbtableConfig','677510LXEHaq','225wPXZAT','1023UCHVDF','9229797PjhdXc','dbName','25977TWHKEE','entries','66hUquHj','dbId','has','map','5138043KHvjPh','612984QuFbgD','16828etEKPA','40844gmmmaF'];a66_0x3259=function(){return _0x5e0a65;};return a66_0x3259();}(function(_0x30ca0f,_0xa8e7b5){const _0x4a77b1=a66_0x5a0f,_0x54595e=_0x30ca0f();while(!![]){try{const _0xb6004a=parseInt(_0x4a77b1(0x1c0))/0x1*(-parseInt(_0x4a77b1(0x1cd))/0x2)+-parseInt(_0x4a77b1(0x1d1))/0x3+-parseInt(_0x4a77b1(0x1c1))/0x4*(parseInt(_0x4a77b1(0x1c7))/0x5)+-parseInt(_0x4a77b1(0x1d2))/0x6+parseInt(_0x4a77b1(0x1cb))/0x7*(-parseInt(_0x4a77b1(0x1c4))/0x8)+-parseInt(_0x4a77b1(0x1c9))/0x9+parseInt(_0x4a77b1(0x1c6))/0xa*(parseInt(_0x4a77b1(0x1c8))/0xb);if(_0xb6004a===_0xa8e7b5)break;else _0x54595e['push'](_0x54595e['shift']());}catch(_0x3362ad){_0x54595e['push'](_0x54595e['shift']());}}}(a66_0x3259,0xdb46f));function a66_0x5a0f(_0x10f28a,_0xad1d74){_0x10f28a=_0x10f28a-0x1c0;const _0x325960=a66_0x3259();let _0x5a0fc2=_0x325960[_0x10f28a];return _0x5a0fc2;}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x47dce0){const _0x79793b=a66_0x5a0f;if(cache[_0x79793b(0x1cf)](_0x47dce0))return cache[_0x79793b(0x1c2)](_0x47dce0);const _0x4d2ac0=await listDatasets(_0x47dce0),_0x22bcc3=new Map();for(const _0x2b689c of _0x4d2ac0){const _0xd0be7=_0x2b689c[_0x79793b(0x1c5)];_0xd0be7?.['dbId']!=null&&_0x22bcc3[_0x79793b(0x1c3)](_0xd0be7[_0x79793b(0x1ce)],_0xd0be7['dbName']??'db-'+_0xd0be7[_0x79793b(0x1ce)]);}const _0x2e2325=[..._0x22bcc3[_0x79793b(0x1cc)]()][_0x79793b(0x1d0)](([_0x4b589c,_0x3267d4])=>({'dbId':_0x4b589c,'dbName':_0x3267d4}));return cache[_0x79793b(0x1c3)](_0x47dce0,_0x2e2325),_0x2e2325;}export async function getDbName(_0x3669ba,_0x2e8998){const _0x535b2a=a66_0x5a0f;try{const _0x6eb5fd=await listDatabases(_0x3669ba);return _0x6eb5fd['find'](_0xabf3cc=>_0xabf3cc[_0x535b2a(0x1ce)]===_0x2e8998)?.[_0x535b2a(0x1ca)];}catch{return undefined;}}
1
+ (function(_0x200ef5,_0x5b7c3d){const _0x3810e7=a66_0x14c5,_0x548599=_0x200ef5();while(!![]){try{const _0x4e6a80=-parseInt(_0x3810e7(0x8a))/0x1+-parseInt(_0x3810e7(0x8d))/0x2+-parseInt(_0x3810e7(0x8e))/0x3+parseInt(_0x3810e7(0x8c))/0x4*(parseInt(_0x3810e7(0x96))/0x5)+parseInt(_0x3810e7(0x90))/0x6*(parseInt(_0x3810e7(0x99))/0x7)+-parseInt(_0x3810e7(0x93))/0x8+parseInt(_0x3810e7(0x95))/0x9*(parseInt(_0x3810e7(0x8f))/0xa);if(_0x4e6a80===_0x5b7c3d)break;else _0x548599['push'](_0x548599['shift']());}catch(_0x533406){_0x548599['push'](_0x548599['shift']());}}}(a66_0x5c67,0xd48f6));function a66_0x5c67(){const _0x27dc7f=['has','4fkCiqB','813922wxzetA','2668332EombbJ','100GuNcWu','66eWJdSj','find','map','11228064omJRuN','dbName','3238497JPClxG','1427120uYnzKT','set','dbtableConfig','94808GSzPYX','dbId','462179iHzmBH'];a66_0x5c67=function(){return _0x27dc7f;};return a66_0x5c67();}function a66_0x14c5(_0x4e11dd,_0x240b60){_0x4e11dd=_0x4e11dd-0x8a;const _0x5c67cd=a66_0x5c67();let _0x14c53f=_0x5c67cd[_0x4e11dd];return _0x14c53f;}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x1162ce){const _0x53f30c=a66_0x14c5;if(cache[_0x53f30c(0x8b)](_0x1162ce))return cache['get'](_0x1162ce);const _0x32c02f=await listDatasets(_0x1162ce),_0x235c9c=new Map();for(const _0x32c14b of _0x32c02f){const _0x1fce84=_0x32c14b[_0x53f30c(0x98)];_0x1fce84?.['dbId']!=null&&_0x235c9c[_0x53f30c(0x97)](_0x1fce84[_0x53f30c(0x9a)],_0x1fce84[_0x53f30c(0x94)]??'db-'+_0x1fce84['dbId']);}const _0x10b2d8=[..._0x235c9c['entries']()][_0x53f30c(0x92)](([_0x3fb983,_0x243677])=>({'dbId':_0x3fb983,'dbName':_0x243677}));return cache['set'](_0x1162ce,_0x10b2d8),_0x10b2d8;}export async function getDbName(_0x29de69,_0x12936d){const _0x56fa96=a66_0x14c5;try{const _0x229290=await listDatabases(_0x29de69);return _0x229290[_0x56fa96(0x91)](_0x30e4eb=>_0x30e4eb['dbId']===_0x12936d)?.[_0x56fa96(0x94)];}catch{return undefined;}}
@@ -1 +1 @@
1
- (function(_0x5e4cb6,_0xdea60c){const _0x292bc5=a67_0x4843,_0x5196d4=_0x5e4cb6();while(!![]){try{const _0x3d3eeb=-parseInt(_0x292bc5(0xff))/0x1*(-parseInt(_0x292bc5(0xf6))/0x2)+-parseInt(_0x292bc5(0xfa))/0x3*(parseInt(_0x292bc5(0xd9))/0x4)+-parseInt(_0x292bc5(0xed))/0x5*(parseInt(_0x292bc5(0xfd))/0x6)+parseInt(_0x292bc5(0xe0))/0x7+-parseInt(_0x292bc5(0xf3))/0x8*(-parseInt(_0x292bc5(0xd7))/0x9)+parseInt(_0x292bc5(0xe8))/0xa+-parseInt(_0x292bc5(0xd8))/0xb*(parseInt(_0x292bc5(0xf7))/0xc);if(_0x3d3eeb===_0xdea60c)break;else _0x5196d4['push'](_0x5196d4['shift']());}catch(_0x1ec1c0){_0x5196d4['push'](_0x5196d4['shift']());}}}(a67_0x34fb,0x77903));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';function a67_0x34fb(){const _0x28444e=['delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','5536853UQEEka','string','update','column','batchCreate','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','invokeSource',']\x20must\x20be\x20an\x20object.','5227060QatYgn','dataset_','data\x20aggregate\x20--params.aggregate[','\x22.\x20','execute','11575VEOASr','field','sql','object','delete','isArray','210016OJExyX','aggregate','trim','125422UIEJdi','12AZsANh','validation','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','814179xZVUBX','models','env','144pWyOtX','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','4vCyaWM','getOne','63DjFVnS','4277053ZuIVpc','12GSXADZ','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','accessKey','function','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27'];a67_0x34fb=function(){return _0x28444e;};return a67_0x34fb();}import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x26d0e5){const _0x14d842=a67_0x4843;_client=createClient({'appCode':_0x26d0e5['appCode'],'env':_0x26d0e5[_0x14d842(0xfc)],'authMode':_0x26d0e5['authMode'],..._0x26d0e5[_0x14d842(0xdb)]?{'accessKey':_0x26d0e5[_0x14d842(0xdb)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x14d842(0xe6)]}}});}function a67_0x4843(_0x4dd0b2,_0x2886e5){_0x4dd0b2=_0x4dd0b2-0xd6;const _0x34fb83=a67_0x34fb();let _0x484329=_0x34fb83[_0x4dd0b2];return _0x484329;}function ensureClient(){const _0x4c52ae=a67_0x4843;if(!_client)throw new Error(_0x4c52ae(0xdd));return _client;}function normalizeAggregateParams(_0x59807a){const _0x42bdac=a67_0x4843,_0x4184c0=_0x59807a[_0x42bdac(0xf4)];if(_0x4184c0===undefined)return _0x59807a;if(!Array[_0x42bdac(0xf2)](_0x4184c0))throw CliErrors[_0x42bdac(0xf8)](_0x42bdac(0xe5));return{..._0x59807a,'aggregate':_0x4184c0['map']((_0x5c9bf0,_0x1c58d8)=>{const _0x1e24f7=_0x42bdac;if(!_0x5c9bf0||typeof _0x5c9bf0!==_0x1e24f7(0xf0)||Array['isArray'](_0x5c9bf0))throw CliErrors['validation'](_0x1e24f7(0xea)+_0x1c58d8+_0x1e24f7(0xe7));const _0x4b20ae=_0x5c9bf0[_0x1e24f7(0xe3)]??_0x5c9bf0[_0x1e24f7(0xee)];if(typeof _0x4b20ae!==_0x1e24f7(0xe1)||_0x4b20ae[_0x1e24f7(0xf5)]()==='')throw CliErrors[_0x1e24f7(0xf8)](_0x1e24f7(0xea)+_0x1c58d8+']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.');const _0x2ca3c0={..._0x5c9bf0,'column':_0x4b20ae};return delete _0x2ca3c0[_0x1e24f7(0xee)],_0x2ca3c0;})};}export async function executeData(_0x40c3e7,_0x2b51c5,_0x3af5ff){const _0x55b214=a67_0x4843,_0x57ca38=ensureClient(),_0x5e6e67=_0x55b214(0xe9)+_0x40c3e7,_0x2aa5a7=_0x57ca38[_0x55b214(0xfb)][_0x5e6e67];if(!_0x2aa5a7||typeof _0x2aa5a7[_0x2b51c5]!==_0x55b214(0xdc))throw new Error(_0x55b214(0xf9)+_0x2b51c5+_0x55b214(0xeb)+_0x55b214(0xda));if(_0x2b51c5===_0x55b214(0xe4))return _0x2aa5a7[_0x55b214(0xe4)](parseBatchCreateItemsFromParams(_0x3af5ff));const _0x319a81=_0x3af5ff!==undefined&&_0x3af5ff!==null&&!Array['isArray'](_0x3af5ff)?_0x3af5ff:{};switch(_0x2b51c5){case _0x55b214(0xd6):{const _0x441371=_0x319a81['id'];if(_0x441371===undefined||_0x441371===null)throw new Error(_0x55b214(0xfe));return _0x2aa5a7[_0x55b214(0xd6)](_0x441371);}case _0x55b214(0xe2):{const {id:_0x3a4268,..._0x3a1851}=_0x319a81;if(_0x3a4268===undefined||_0x3a4268===null)throw new Error(_0x55b214(0xde));return _0x2aa5a7[_0x55b214(0xe2)](_0x3a4268,_0x3a1851);}case'delete':{const _0x266534=_0x319a81['id'];if(_0x266534===undefined||_0x266534===null)throw new Error(_0x55b214(0xdf));return _0x2aa5a7[_0x55b214(0xf1)](_0x266534);}case _0x55b214(0xf4):return _0x2aa5a7[_0x55b214(0xf4)](normalizeAggregateParams(_0x319a81));default:return _0x2aa5a7[_0x2b51c5](_0x319a81);}}export async function executeSdkSql(_0x699436,_0x21dd43){const _0x17e3c8=a67_0x4843,_0x57e05d=ensureClient();return _0x57e05d[_0x17e3c8(0xef)][_0x17e3c8(0xec)]({'sqlCode':_0x699436,'params':_0x21dd43});}export async function executeSdkBff(_0x2e1dde,_0x618700){const _0x79791d=ensureClient();return _0x79791d['bff']['execute']({'scriptName':_0x2e1dde,'params':_0x618700});}
1
+ (function(_0x59bb1a,_0x1b1a84){const _0x245bb6=a67_0x41bc,_0x26192f=_0x59bb1a();while(!![]){try{const _0x333f5d=-parseInt(_0x245bb6(0x96))/0x1*(parseInt(_0x245bb6(0xa7))/0x2)+parseInt(_0x245bb6(0x9d))/0x3+-parseInt(_0x245bb6(0xa2))/0x4*(parseInt(_0x245bb6(0x9e))/0x5)+parseInt(_0x245bb6(0x8c))/0x6+-parseInt(_0x245bb6(0x9c))/0x7*(parseInt(_0x245bb6(0x89))/0x8)+-parseInt(_0x245bb6(0x9b))/0x9*(parseInt(_0x245bb6(0x97))/0xa)+-parseInt(_0x245bb6(0x99))/0xb*(-parseInt(_0x245bb6(0x98))/0xc);if(_0x333f5d===_0x1b1a84)break;else _0x26192f['push'](_0x26192f['shift']());}catch(_0x52680d){_0x26192f['push'](_0x26192f['shift']());}}}(a67_0xd0c2,0x94458));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';function a67_0xd0c2(){const _0x4d9679=[']\x20must\x20be\x20an\x20object.','sql',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','\x22.\x20','29211mUscUk','5570yILohE','36FtknOG','7345943gNCduc','function','4491gdvNgQ','7nPuyQa','681408rlMMza','204495BkDOXi','data\x20aggregate\x20--params.aggregate[','batchCreate','execute','44yqcIMH','models','invokeSource','dataset_','getOne','52vtoioY','delete','env','column','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','appCode','update','aggregate','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','trim','3920888sSmcuk','isArray','authMode','2125044vgasDy','validation','accessKey','field','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27'];a67_0xd0c2=function(){return _0x4d9679;};return a67_0xd0c2();}import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;function a67_0x41bc(_0x122ddf,_0x294476){_0x122ddf=_0x122ddf-0x84;const _0xd0c2e6=a67_0xd0c2();let _0x41bc11=_0xd0c2e6[_0x122ddf];return _0x41bc11;}export function initSdkClient(_0x5c146a){const _0x3f70e8=a67_0x41bc;_client=createClient({'appCode':_0x5c146a[_0x3f70e8(0xac)],'env':_0x5c146a[_0x3f70e8(0xa9)],'authMode':_0x5c146a[_0x3f70e8(0x8b)],..._0x5c146a[_0x3f70e8(0x8e)]?{'accessKey':_0x5c146a['accessKey']}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x3f70e8(0xa4)]}}});}function ensureClient(){const _0x512e43=a67_0x41bc;if(!_client)throw new Error(_0x512e43(0x94));return _client;}function normalizeAggregateParams(_0x516656){const _0x3f304a=a67_0x41bc,_0x3d4435=_0x516656[_0x3f304a(0x84)];if(_0x3d4435===undefined)return _0x516656;if(!Array[_0x3f304a(0x8a)](_0x3d4435))throw CliErrors[_0x3f304a(0x8d)](_0x3f304a(0x86));return{..._0x516656,'aggregate':_0x3d4435['map']((_0x675007,_0xeab98a)=>{const _0xaaa99c=_0x3f304a;if(!_0x675007||typeof _0x675007!=='object'||Array[_0xaaa99c(0x8a)](_0x675007))throw CliErrors[_0xaaa99c(0x8d)]('data\x20aggregate\x20--params.aggregate['+_0xeab98a+_0xaaa99c(0x91));const _0x4e0d98=_0x675007[_0xaaa99c(0xaa)]??_0x675007[_0xaaa99c(0x8f)];if(typeof _0x4e0d98!=='string'||_0x4e0d98[_0xaaa99c(0x88)]()==='')throw CliErrors[_0xaaa99c(0x8d)](_0xaaa99c(0x9f)+_0xeab98a+_0xaaa99c(0x93));const _0x179915={..._0x675007,'column':_0x4e0d98};return delete _0x179915['field'],_0x179915;})};}export async function executeData(_0x43dab6,_0x24e4e3,_0x20f1e2){const _0x18158f=a67_0x41bc,_0x3472f2=ensureClient(),_0x4a5502=_0x18158f(0xa5)+_0x43dab6,_0x289eb4=_0x3472f2[_0x18158f(0xa3)][_0x4a5502];if(!_0x289eb4||typeof _0x289eb4[_0x24e4e3]!==_0x18158f(0x9a))throw new Error(_0x18158f(0x87)+_0x24e4e3+_0x18158f(0x95)+_0x18158f(0xab));if(_0x24e4e3===_0x18158f(0xa0))return _0x289eb4['batchCreate'](parseBatchCreateItemsFromParams(_0x20f1e2));const _0x2d218e=_0x20f1e2!==undefined&&_0x20f1e2!==null&&!Array[_0x18158f(0x8a)](_0x20f1e2)?_0x20f1e2:{};switch(_0x24e4e3){case _0x18158f(0xa6):{const _0x4fec1b=_0x2d218e['id'];if(_0x4fec1b===undefined||_0x4fec1b===null)throw new Error('getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x289eb4[_0x18158f(0xa6)](_0x4fec1b);}case _0x18158f(0xad):{const {id:_0x348513,..._0x3b3135}=_0x2d218e;if(_0x348513===undefined||_0x348513===null)throw new Error(_0x18158f(0x90));return _0x289eb4['update'](_0x348513,_0x3b3135);}case _0x18158f(0xa8):{const _0x4c31ba=_0x2d218e['id'];if(_0x4c31ba===undefined||_0x4c31ba===null)throw new Error(_0x18158f(0x85));return _0x289eb4[_0x18158f(0xa8)](_0x4c31ba);}case'aggregate':return _0x289eb4['aggregate'](normalizeAggregateParams(_0x2d218e));default:return _0x289eb4[_0x24e4e3](_0x2d218e);}}export async function executeSdkSql(_0x3c254a,_0x3a0e8d){const _0x1863f0=a67_0x41bc,_0x4e87ff=ensureClient();return _0x4e87ff[_0x1863f0(0x92)][_0x1863f0(0xa1)]({'sqlCode':_0x3c254a,'params':_0x3a0e8d});}export async function executeSdkBff(_0x401460,_0x3f3a62){const _0x9b3272=ensureClient();return _0x9b3272['bff']['execute']({'scriptName':_0x401460,'params':_0x3f3a62});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a68_0x3c7f84=a68_0x1c2b;(function(_0x6ffa6d,_0x13455e){const _0x4df33c=a68_0x1c2b,_0x4ff33b=_0x6ffa6d();while(!![]){try{const _0x55a1e8=-parseInt(_0x4df33c(0x1f5))/0x1*(-parseInt(_0x4df33c(0x1e8))/0x2)+-parseInt(_0x4df33c(0x1e5))/0x3*(-parseInt(_0x4df33c(0x1e9))/0x4)+parseInt(_0x4df33c(0x1ee))/0x5+-parseInt(_0x4df33c(0x1ef))/0x6*(parseInt(_0x4df33c(0x1f4))/0x7)+-parseInt(_0x4df33c(0x1f1))/0x8+parseInt(_0x4df33c(0x1f2))/0x9+-parseInt(_0x4df33c(0x1f0))/0xa*(parseInt(_0x4df33c(0x1eb))/0xb);if(_0x55a1e8===_0x13455e)break;else _0x4ff33b['push'](_0x4ff33b['shift']());}catch(_0x2a3623){_0x4ff33b['push'](_0x4ff33b['shift']());}}}(a68_0x518f,0xcc614));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';function a68_0x518f(){const _0x5b6825=['1876sHFswg','953759RuRhXG','Set\x20appcode\x20via\x20--appcode\x20or\x20','4350687wcltZm','\x20or\x20run\x20`','Configure\x20accessKey\x20in\x20','2Cdyraf','4cIyoel','newConfigFileName','14289mLqBPI','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','\x20file.','7321615izWOtb','5400RBOkHH','20170jrqmcG','4723168GSWBEJ','3784572jnuLKA','\x20auth\x20login`.'];a68_0x518f=function(){return _0x5b6825;};return a68_0x518f();}export{CliError};function a68_0x1c2b(_0x1917a8,_0x2f33ef){_0x1917a8=_0x1917a8-0x1e5;const _0x518fee=a68_0x518f();let _0x1c2b53=_0x518fee[_0x1917a8];return _0x1c2b53;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a68_0x3c7f84(0x1e7)+PRODUCT_CONFIG['newConfigFileName']+a68_0x3c7f84(0x1e6)+CLI_BIN_NAME+a68_0x3c7f84(0x1f3),'configMissingHint':a68_0x3c7f84(0x1f6)+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':a68_0x3c7f84(0x1ec)+PRODUCT_CONFIG[a68_0x3c7f84(0x1ea)]+a68_0x3c7f84(0x1ed)});
1
+ const a68_0x31ff3a=a68_0x57df;function a68_0xf2df(){const _0x171830=['\x20file.','newConfigFileName','1857015MdlzwF','2238592LNjhBz','328794AYTxDD','Configure\x20accessKey\x20in\x20','2242626UVTzdY','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','12uEJPxq','18842400yeVTuQ','2IgaAqz','Set\x20appcode\x20via\x20--appcode\x20or\x20','5895190ETkkVM','573639eCxeXc'];a68_0xf2df=function(){return _0x171830;};return a68_0xf2df();}(function(_0x1ca818,_0x734231){const _0x3b2c30=a68_0x57df,_0x1d3d94=_0x1ca818();while(!![]){try{const _0x5207f5=-parseInt(_0x3b2c30(0x100))/0x1*(parseInt(_0x3b2c30(0x10b))/0x2)+parseInt(_0x3b2c30(0x105))/0x3*(-parseInt(_0x3b2c30(0x109))/0x4)+-parseInt(_0x3b2c30(0x103))/0x5+parseInt(_0x3b2c30(0x107))/0x6+-parseInt(_0x3b2c30(0xff))/0x7+parseInt(_0x3b2c30(0x104))/0x8+parseInt(_0x3b2c30(0x10a))/0x9;if(_0x5207f5===_0x734231)break;else _0x1d3d94['push'](_0x1d3d94['shift']());}catch(_0x164a23){_0x1d3d94['push'](_0x1d3d94['shift']());}}}(a68_0xf2df,0x9a195));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};function a68_0x57df(_0xa9282f,_0x52b983){_0xa9282f=_0xa9282f-0xff;const _0xf2df11=a68_0xf2df();let _0x57df26=_0xf2df11[_0xa9282f];return _0x57df26;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a68_0x31ff3a(0x106)+PRODUCT_CONFIG[a68_0x31ff3a(0x102)]+'\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20auth\x20login`.','configMissingHint':a68_0x31ff3a(0x10c)+PRODUCT_CONFIG[a68_0x31ff3a(0x102)]+'.','notInProjectHint':a68_0x31ff3a(0x108)+PRODUCT_CONFIG['newConfigFileName']+a68_0x31ff3a(0x101)});
@@ -1 +1 @@
1
- function a69_0x515d(_0x2eda85,_0x1aad1a){_0x2eda85=_0x2eda85-0xd3;var _0x3a2121=a69_0x3a21();var _0x515d8d=_0x3a2121[_0x2eda85];return _0x515d8d;}(function(_0x4c64d9,_0x20d840){var _0x2c3847=a69_0x515d,_0x309eb3=_0x4c64d9();while(!![]){try{var _0x8c93ad=parseInt(_0x2c3847(0xd3))/0x1+-parseInt(_0x2c3847(0xdb))/0x2+parseInt(_0x2c3847(0xd5))/0x3+parseInt(_0x2c3847(0xd9))/0x4+parseInt(_0x2c3847(0xda))/0x5*(parseInt(_0x2c3847(0xd7))/0x6)+parseInt(_0x2c3847(0xd6))/0x7*(parseInt(_0x2c3847(0xd4))/0x8)+-parseInt(_0x2c3847(0xd8))/0x9*(parseInt(_0x2c3847(0xdc))/0xa);if(_0x8c93ad===_0x20d840)break;else _0x309eb3['push'](_0x309eb3['shift']());}catch(_0x4869e8){_0x309eb3['push'](_0x309eb3['shift']());}}}(a69_0x3a21,0x5d92d));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a69_0x3a0906}from'@lovrabet/cli-framework';export function buildAllFlags(_0x44e468){return a69_0x3a0906(_0x44e468,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a69_0x3a21(){var _0x12975c=['7sXOMfA','66uRcZns','30726flNyOV','752168yvdVqX','22895CZxjMi','1413558kojVsv','1840LfIqLF','301816CCcFOs','3696744dDGhAb','2147736xXjLKK'];a69_0x3a21=function(){return _0x12975c;};return a69_0x3a21();}
1
+ function a69_0xd618(_0x4664bc,_0x1663ff){_0x4664bc=_0x4664bc-0x1af;var _0x5b9ce7=a69_0x5b9c();var _0xd618dd=_0x5b9ce7[_0x4664bc];return _0xd618dd;}function a69_0x5b9c(){var _0x1d5254=['1hxKhfN','632884kKAoOq','1388300JZNpbL','5kpSlEN','761241fnzTeY','6QAcZTc','3400912pbUsuc','132dqyMRs','45tFgKuf','2855895WTCCys','304909UtFNMP','1402118NwVikw'];a69_0x5b9c=function(){return _0x1d5254;};return a69_0x5b9c();}(function(_0x421491,_0xbc6e16){var _0x43c501=a69_0xd618,_0x527cd9=_0x421491();while(!![]){try{var _0x282aca=parseInt(_0x43c501(0x1b9))/0x1*(parseInt(_0x43c501(0x1b8))/0x2)+parseInt(_0x43c501(0x1b1))/0x3+parseInt(_0x43c501(0x1ba))/0x4*(-parseInt(_0x43c501(0x1b0))/0x5)+parseInt(_0x43c501(0x1b2))/0x6*(-parseInt(_0x43c501(0x1b6))/0x7)+parseInt(_0x43c501(0x1b3))/0x8+parseInt(_0x43c501(0x1b5))/0x9*(-parseInt(_0x43c501(0x1af))/0xa)+parseInt(_0x43c501(0x1b7))/0xb*(parseInt(_0x43c501(0x1b4))/0xc);if(_0x282aca===_0xbc6e16)break;else _0x527cd9['push'](_0x527cd9['shift']());}catch(_0x2a0355){_0x527cd9['push'](_0x527cd9['shift']());}}}(a69_0x5b9c,0x67a19));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a69_0x23909e}from'@lovrabet/cli-framework';export function buildAllFlags(_0x452c22){return a69_0x23909e(_0x452c22,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- function a70_0x59c9(){const _0x4318ee=['body','650049LcpCSO','105zivuFm','13020Whzeqc','31364010cRpEga','2oyumij','263034TrPQiG','59203DqtTDZ','6324568PFEEeU','7jglNFg','7108336AxUjNB'];a70_0x59c9=function(){return _0x4318ee;};return a70_0x59c9();}function a70_0x4380(_0x1a2010,_0x1a0696){_0x1a2010=_0x1a2010-0xe2;const _0x59c9b3=a70_0x59c9();let _0x438033=_0x59c9b3[_0x1a2010];return _0x438033;}(function(_0x26e51d,_0x7bae6c){const _0x31f6e2=a70_0x4380,_0x4debe4=_0x26e51d();while(!![]){try{const _0x45a746=-parseInt(_0x31f6e2(0xea))/0x1*(-parseInt(_0x31f6e2(0xe8))/0x2)+parseInt(_0x31f6e2(0xe4))/0x3+-parseInt(_0x31f6e2(0xe2))/0x4+-parseInt(_0x31f6e2(0xe5))/0x5*(-parseInt(_0x31f6e2(0xe6))/0x6)+-parseInt(_0x31f6e2(0xec))/0x7*(parseInt(_0x31f6e2(0xeb))/0x8)+parseInt(_0x31f6e2(0xe9))/0x9+parseInt(_0x31f6e2(0xe7))/0xa;if(_0x45a746===_0x7bae6c)break;else _0x4debe4['push'](_0x4debe4['shift']());}catch(_0x4c2a78){_0x4debe4['push'](_0x4debe4['shift']());}}}(a70_0x59c9,0xe0784));export function dryRun(_0x443f88,_0x455f39){const _0x18bb25={'method':_0x443f88,'url':_0x455f39},_0xefa13b={'body'(_0x436246){const _0x567839=a70_0x4380;return _0x18bb25[_0x567839(0xe3)]=_0x436246,_0xefa13b;},'description'(_0x24a06b){return _0x18bb25['description']=_0x24a06b,_0xefa13b;},'build'(){return{..._0x18bb25};}};return _0xefa13b;}
1
+ function a70_0x24ff(_0x2dabde,_0x1e74b1){_0x2dabde=_0x2dabde-0x180;const _0x369c78=a70_0x369c();let _0x24ffd2=_0x369c78[_0x2dabde];return _0x24ffd2;}function a70_0x369c(){const _0x362b56=['40024oojcNw','8226790YEloVe','13792ULoTte','42YYpoHQ','5PBdbQK','3093607DaNmDx','829465vIcqmc','3669132LHBHxy','body','38AKlaer','81QxXThb','1003725vrNLOA','description'];a70_0x369c=function(){return _0x362b56;};return a70_0x369c();}(function(_0x3b3fd1,_0x335929){const _0x25ef35=a70_0x24ff,_0xc1b0ee=_0x3b3fd1();while(!![]){try{const _0x157157=-parseInt(_0x25ef35(0x18c))/0x1*(parseInt(_0x25ef35(0x185))/0x2)+parseInt(_0x25ef35(0x181))/0x3+parseInt(_0x25ef35(0x18a))/0x4*(-parseInt(_0x25ef35(0x187))/0x5)+-parseInt(_0x25ef35(0x186))/0x6*(-parseInt(_0x25ef35(0x189))/0x7)+parseInt(_0x25ef35(0x183))/0x8*(-parseInt(_0x25ef35(0x180))/0x9)+parseInt(_0x25ef35(0x184))/0xa+-parseInt(_0x25ef35(0x188))/0xb;if(_0x157157===_0x335929)break;else _0xc1b0ee['push'](_0xc1b0ee['shift']());}catch(_0x17b920){_0xc1b0ee['push'](_0xc1b0ee['shift']());}}}(a70_0x369c,0x75764));export function dryRun(_0x33930e,_0x249340){const _0x20a059={'method':_0x33930e,'url':_0x249340},_0x5a0c71={'body'(_0x41ac5f){const _0x51195f=a70_0x24ff;return _0x20a059[_0x51195f(0x18b)]=_0x41ac5f,_0x5a0c71;},'description'(_0x86b8){const _0x5701d5=a70_0x24ff;return _0x20a059[_0x5701d5(0x182)]=_0x86b8,_0x5a0c71;},'build'(){return{..._0x20a059};}};return _0x5a0c71;}
@@ -1 +1 @@
1
- function a71_0x1a57(){const _0x5ca606=['298044MOFxPt','10QtWZcN','4787742eRTjXZ','1452493YtivgO','40IAhQOG','1673111VvgBEI','validateFlags','8lCUBTE','29116740oTKtGR','80DUlDas','4648LkZkVP','7GhgWuG','parseFlags','6191523wKqrIv'];a71_0x1a57=function(){return _0x5ca606;};return a71_0x1a57();}const a71_0x3aff92=a71_0x1415;function a71_0x1415(_0x59ec04,_0x5671ee){_0x59ec04=_0x59ec04-0xfe;const _0x1a57a8=a71_0x1a57();let _0x141514=_0x1a57a8[_0x59ec04];return _0x141514;}(function(_0x5ef949,_0x178862){const _0x224d18=a71_0x1415,_0x5ef138=_0x5ef949();while(!![]){try{const _0x27338e=parseInt(_0x224d18(0x106))/0x1+-parseInt(_0x224d18(0x104))/0x2*(-parseInt(_0x224d18(0x103))/0x3)+parseInt(_0x224d18(0xff))/0x4*(-parseInt(_0x224d18(0x107))/0x5)+parseInt(_0x224d18(0x105))/0x6*(parseInt(_0x224d18(0x100))/0x7)+-parseInt(_0x224d18(0x10a))/0x8*(parseInt(_0x224d18(0x102))/0x9)+-parseInt(_0x224d18(0xfe))/0xa*(-parseInt(_0x224d18(0x108))/0xb)+-parseInt(_0x224d18(0x10b))/0xc;if(_0x27338e===_0x178862)break;else _0x5ef138['push'](_0x5ef138['shift']());}catch(_0x37d150){_0x5ef138['push'](_0x5ef138['shift']());}}}(a71_0x1a57,0xcd2a8));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a71_0x3aff92(0x101)];export const validateFlags=helpers[a71_0x3aff92(0x109)];
1
+ const a71_0x23f955=a71_0x1bac;(function(_0x2b6b4e,_0x17fb1c){const _0x39235f=a71_0x1bac,_0x2acdd6=_0x2b6b4e();while(!![]){try{const _0x14abfc=-parseInt(_0x39235f(0xae))/0x1*(-parseInt(_0x39235f(0xa8))/0x2)+-parseInt(_0x39235f(0xaf))/0x3*(-parseInt(_0x39235f(0xa6))/0x4)+parseInt(_0x39235f(0xa7))/0x5+-parseInt(_0x39235f(0xaa))/0x6+parseInt(_0x39235f(0xab))/0x7+parseInt(_0x39235f(0xac))/0x8*(parseInt(_0x39235f(0xa9))/0x9)+parseInt(_0x39235f(0xa4))/0xa*(-parseInt(_0x39235f(0xb0))/0xb);if(_0x14abfc===_0x17fb1c)break;else _0x2acdd6['push'](_0x2acdd6['shift']());}catch(_0x5c31cb){_0x2acdd6['push'](_0x2acdd6['shift']());}}}(a71_0x4d16,0xbeb90));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a71_0x23f955(0xa5)];function a71_0x1bac(_0x21c82d,_0x4c68ab){_0x21c82d=_0x21c82d-0xa4;const _0x4d16fe=a71_0x4d16();let _0x1bacad=_0x4d16fe[_0x21c82d];return _0x1bacad;}function a71_0x4d16(){const _0x2d9dc3=['4ZUvzHY','6053065CXiQOJ','44BMRadp','15228tYYEdd','8794764rsMVQE','100212elPWxN','6112ALMAiQ','validateFlags','43735tTmcMW','151257fmAnvI','1008238NehnJk','140pGvynF','parseFlags'];a71_0x4d16=function(){return _0x2d9dc3;};return a71_0x4d16();}export const validateFlags=helpers[a71_0x23f955(0xad)];
@@ -1 +1 @@
1
- (function(_0x19868c,_0x195fab){const _0x285330=a72_0x1be7,_0x5cb89d=_0x19868c();while(!![]){try{const _0x1b978f=-parseInt(_0x285330(0xd0))/0x1*(-parseInt(_0x285330(0xce))/0x2)+-parseInt(_0x285330(0xc0))/0x3+-parseInt(_0x285330(0xcb))/0x4+-parseInt(_0x285330(0xc9))/0x5*(parseInt(_0x285330(0xc6))/0x6)+parseInt(_0x285330(0xc2))/0x7+parseInt(_0x285330(0xd1))/0x8+parseInt(_0x285330(0xcf))/0x9;if(_0x1b978f===_0x195fab)break;else _0x5cb89d['push'](_0x5cb89d['shift']());}catch(_0x2b88a8){_0x5cb89d['push'](_0x5cb89d['shift']());}}}(a72_0x4392,0xad34e));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a72_0x1be7(_0x396f76,_0x5147e1){_0x396f76=_0x396f76-0xc0;const _0x439232=a72_0x4392();let _0x1be758=_0x439232[_0x396f76];return _0x1be758;}import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a72_0x4392(){const _0x3ed92e=['829995RIBJTw','newConfigFileName','4817184GzQeev','map','has','6AjvxQa','10026072KpvUVs','104474pIXIja','3038576embFen','946728ArXVxN','filter','4116511NmBDKl','\x20or\x20--appcode).','Requires\x20appcode\x20(set\x20via\x20','service','6AJGEUQ','generateFullHelp','get'];a72_0x4392=function(){return _0x3ed92e;};return a72_0x4392();}import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x147c91=a72_0x1be7;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[...serviceRegistry,...safeListDynamicServiceEntries()],'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x147c91(0xc4)+PRODUCT_CONFIG[_0x147c91(0xca)]+_0x147c91(0xc3)});}export function generateCommandHelp(_0x59d841){return createGenerators()['generateCommandHelp'](_0x59d841);}export function generateServiceHelp(_0x1ac1e4){return createGenerators()['generateServiceHelp'](_0x1ac1e4);}export function generateFullHelp(){const _0x5ba19a=a72_0x1be7;return createGenerators()[_0x5ba19a(0xc7)]();}function getAnyServiceEntry(_0x36e499){const _0x1d3d2a=getServiceEntry(_0x36e499);if(_0x1d3d2a)return _0x1d3d2a;try{return getDynamicServiceEntry(_0x36e499);}catch{return undefined;}}function getAnyServiceDefinitions(_0x1c2286){const _0x1ac0f1=a72_0x1be7,_0x5ca3f9=serviceGroups[_0x1ac0f1(0xc8)](_0x1c2286);if(_0x5ca3f9)return _0x5ca3f9;try{return getDynamicServiceDefinitions(_0x1c2286);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x1861cb=a72_0x1be7,_0x2af6cf=new Set(serviceRegistry[_0x1861cb(0xcc)](_0x37817d=>_0x37817d[_0x1861cb(0xc5)]));try{return listDynamicServiceEntries()[_0x1861cb(0xc1)](_0x12b0cf=>!_0x2af6cf[_0x1861cb(0xcd)](_0x12b0cf[_0x1861cb(0xc5)]));}catch{return[];}}
1
+ (function(_0x130e9f,_0x47dbd0){const _0xae29a3=a72_0x47f3,_0x2d4dfc=_0x130e9f();while(!![]){try{const _0x1cd997=-parseInt(_0xae29a3(0x1d0))/0x1+-parseInt(_0xae29a3(0x1d5))/0x2*(-parseInt(_0xae29a3(0x1c9))/0x3)+-parseInt(_0xae29a3(0x1d3))/0x4*(parseInt(_0xae29a3(0x1c8))/0x5)+-parseInt(_0xae29a3(0x1ce))/0x6*(-parseInt(_0xae29a3(0x1c6))/0x7)+parseInt(_0xae29a3(0x1ca))/0x8*(parseInt(_0xae29a3(0x1d4))/0x9)+parseInt(_0xae29a3(0x1c5))/0xa*(-parseInt(_0xae29a3(0x1cd))/0xb)+parseInt(_0xae29a3(0x1cc))/0xc;if(_0x1cd997===_0x47dbd0)break;else _0x2d4dfc['push'](_0x2d4dfc['shift']());}catch(_0x5b505e){_0x2d4dfc['push'](_0x2d4dfc['shift']());}}}(a72_0x2cbc,0xe8369));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a72_0x2cbc(){const _0x5d068f=['generateFullHelp','436MMZInB','27SynXXf','422398MwajdQ','85990NfxDfA','533701vxzboO','service','37220HhzEVy','3mtbYbu','1499704AEINoF','\x20or\x20--appcode).','13270632IvSuAn','209EXBUqu','108FRRfOs','generateServiceHelp','1325926gDQMpL','filter'];a72_0x2cbc=function(){return _0x5d068f;};return a72_0x2cbc();}import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x435b3e=a72_0x47f3;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[...serviceRegistry,...safeListDynamicServiceEntries()],'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20'+PRODUCT_CONFIG['newConfigFileName']+_0x435b3e(0x1cb)});}export function generateCommandHelp(_0x552ca4){return createGenerators()['generateCommandHelp'](_0x552ca4);}export function generateServiceHelp(_0x13bd28){const _0x159ed4=a72_0x47f3;return createGenerators()[_0x159ed4(0x1cf)](_0x13bd28);}export function generateFullHelp(){const _0x4967a3=a72_0x47f3;return createGenerators()[_0x4967a3(0x1d2)]();}function getAnyServiceEntry(_0x1eb262){const _0x59c15a=getServiceEntry(_0x1eb262);if(_0x59c15a)return _0x59c15a;try{return getDynamicServiceEntry(_0x1eb262);}catch{return undefined;}}function getAnyServiceDefinitions(_0x402641){const _0x303d79=serviceGroups['get'](_0x402641);if(_0x303d79)return _0x303d79;try{return getDynamicServiceDefinitions(_0x402641);}catch{return undefined;}}function a72_0x47f3(_0x31ab98,_0x178499){_0x31ab98=_0x31ab98-0x1c5;const _0x2cbce0=a72_0x2cbc();let _0x47f3e3=_0x2cbce0[_0x31ab98];return _0x47f3e3;}function safeListDynamicServiceEntries(){const _0x5a8ed7=a72_0x47f3,_0x15cc9a=new Set(serviceRegistry['map'](_0x2f535d=>_0x2f535d[_0x5a8ed7(0x1c7)]));try{return listDynamicServiceEntries()[_0x5a8ed7(0x1d1)](_0x12ad23=>!_0x15cc9a['has'](_0x12ad23[_0x5a8ed7(0x1c7)]));}catch{return[];}}
@@ -1 +1 @@
1
- (function(_0x5cc56d,_0x52fd86){var _0x5f5ae3=a73_0x2853,_0x536e8a=_0x5cc56d();while(!![]){try{var _0x155b08=parseInt(_0x5f5ae3(0x1c9))/0x1*(parseInt(_0x5f5ae3(0x1cf))/0x2)+-parseInt(_0x5f5ae3(0x1cc))/0x3+-parseInt(_0x5f5ae3(0x1cb))/0x4+parseInt(_0x5f5ae3(0x1ca))/0x5+parseInt(_0x5f5ae3(0x1c8))/0x6*(-parseInt(_0x5f5ae3(0x1d0))/0x7)+-parseInt(_0x5f5ae3(0x1cd))/0x8+parseInt(_0x5f5ae3(0x1ce))/0x9;if(_0x155b08===_0x52fd86)break;else _0x536e8a['push'](_0x536e8a['shift']());}catch(_0x4a4221){_0x536e8a['push'](_0x536e8a['shift']());}}}(a73_0x42ec,0xc1ec3));function a73_0x42ec(){var _0x50a624=['6521910AHWmlx','349tKUWxS','5068100QWprFi','201520sbSWNi','3206007XQOGHj','276472hGXyeE','12792141MlgBOP','3438BKixMH','7oSNhXF'];a73_0x42ec=function(){return _0x50a624;};return a73_0x42ec();}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a73_0x2853(_0x5d067c,_0x5c750a){_0x5d067c=_0x5d067c-0x1c8;var _0x42ecde=a73_0x42ec();var _0x2853e3=_0x42ecde[_0x5d067c];return _0x2853e3;}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
1
+ (function(_0x4fb948,_0x3fdd7c){var _0x1eb0ba=a73_0x5dfa,_0x4dda90=_0x4fb948();while(!![]){try{var _0x3576ac=parseInt(_0x1eb0ba(0x1c6))/0x1*(-parseInt(_0x1eb0ba(0x1c4))/0x2)+-parseInt(_0x1eb0ba(0x1c2))/0x3+-parseInt(_0x1eb0ba(0x1c7))/0x4+-parseInt(_0x1eb0ba(0x1c9))/0x5*(parseInt(_0x1eb0ba(0x1c8))/0x6)+parseInt(_0x1eb0ba(0x1c3))/0x7*(parseInt(_0x1eb0ba(0x1c5))/0x8)+-parseInt(_0x1eb0ba(0x1be))/0x9*(parseInt(_0x1eb0ba(0x1c1))/0xa)+parseInt(_0x1eb0ba(0x1c0))/0xb*(parseInt(_0x1eb0ba(0x1bf))/0xc);if(_0x3576ac===_0x3fdd7c)break;else _0x4dda90['push'](_0x4dda90['shift']());}catch(_0x14fe8d){_0x4dda90['push'](_0x4dda90['shift']());}}}(a73_0x6e59,0x761f5));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a73_0x6e59(){var _0x7f9612=['59226lkcPls','3149308SuiRjN','108sNRhpY','262940IkNsTg','1089KwlIug','121488jXAGZA','4411myTbVs','66530ifXgKQ','2733510LetSfk','16793hSQrrC','10zXhJZO','568kGiUcS'];a73_0x6e59=function(){return _0x7f9612;};return a73_0x6e59();}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a73_0x5dfa(_0x40fcfe,_0x20df48){_0x40fcfe=_0x40fcfe-0x1be;var _0x6e5917=a73_0x6e59();var _0x5dfabf=_0x6e5917[_0x40fcfe];return _0x5dfabf;}export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';