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

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_0x5ea453=a53_0x42df;(function(_0x416315,_0x5ecb54){const _0x7b24dc=a53_0x42df,_0x481291=_0x416315();while(!![]){try{const _0x5179bd=-parseInt(_0x7b24dc(0x1b6))/0x1+parseInt(_0x7b24dc(0x1b4))/0x2+parseInt(_0x7b24dc(0x1b3))/0x3*(parseInt(_0x7b24dc(0x1bd))/0x4)+-parseInt(_0x7b24dc(0x1b8))/0x5+parseInt(_0x7b24dc(0x1b7))/0x6*(parseInt(_0x7b24dc(0x1b9))/0x7)+parseInt(_0x7b24dc(0x1ba))/0x8+parseInt(_0x7b24dc(0x1bb))/0x9;if(_0x5179bd===_0x5ecb54)break;else _0x481291['push'](_0x481291['shift']());}catch(_0x24d873){_0x481291['push'](_0x481291['shift']());}}}(a53_0xb771,0xc5f41));function a53_0xb771(){const _0x4d023e=['4HczmmA','2971704eacNMb','1260978BTemYa','PUBLISHED','964742ngVMBX','36426wqVUal','5066625FqxBJs','623WIYiMX','4860936NxmVsP','179019unWFUO','UNPUBLISH'];a53_0xb771=function(){return _0x4d023e;};return a53_0xb771();}function a53_0x42df(_0x1679f8,_0x458bd1){_0x1679f8=_0x1679f8-0x1b3;const _0xb77158=a53_0xb771();let _0x42df41=_0xb77158[_0x1679f8];return _0x42df41;}export const APP_PUBLISH_STATUS={'Published':a53_0x5ea453(0x1b5),'Unpublished':a53_0x5ea453(0x1bc)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];
@@ -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_0x4d46c2=a54_0x3507;(function(_0x1e8985,_0x3fbdae){const _0x4cd502=a54_0x3507,_0x47600d=_0x1e8985();while(!![]){try{const _0x1295da=-parseInt(_0x4cd502(0x1ef))/0x1+parseInt(_0x4cd502(0x1f0))/0x2*(parseInt(_0x4cd502(0x1f3))/0x3)+-parseInt(_0x4cd502(0x1f1))/0x4*(-parseInt(_0x4cd502(0x1f4))/0x5)+-parseInt(_0x4cd502(0x1ee))/0x6*(parseInt(_0x4cd502(0x1ea))/0x7)+parseInt(_0x4cd502(0x1eb))/0x8+parseInt(_0x4cd502(0x1f2))/0x9*(parseInt(_0x4cd502(0x1ed))/0xa)+parseInt(_0x4cd502(0x1ec))/0xb;if(_0x1295da===_0x3fbdae)break;else _0x47600d['push'](_0x47600d['shift']());}catch(_0x4d6b26){_0x47600d['push'](_0x47600d['shift']());}}}(a54_0xcd85,0x8ad1f));function a54_0x3507(_0x42757a,_0x379be0){_0x42757a=_0x42757a-0x1e9;const _0xcd8584=a54_0xcd85();let _0x350730=_0xcd8584[_0x42757a];return _0x350730;}export const AUTH_MODE={'ClientAk':a54_0x4d46c2(0x1e9)};export function isAuthMode(_0x571a06){return _0x571a06===AUTH_MODE['ClientAk'];}function a54_0xcd85(){const _0x54e5c7=['6fyGxTs','485PPGSHX','client-ak','91gLoRwM','7855848teJnds','266486IMuHjd','20kpdGVe','181074KejmhE','1105284bbheMe','311516aYqSza','24564BLYHrF','687681inVWzu'];a54_0xcd85=function(){return _0x54e5c7;};return a54_0xcd85();}
@@ -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_0x346dad=a55_0x3644;function a55_0x443c(){const _0x2c795c=['10fQcfES','2956140DBFUxd','cliDisplayName','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','Record\x20ID','JSON\x20params\x20for\x20execute\x20commands','198363QioGwu','<expr>','234311NYrRSq','Name\x20filter','cliBinName','<code>','Alias\x20for\x20--non-interactive','Skip\x20confirmation\x20for\x20high-risk\x20writes','Override\x20appcode','help','SQL\x20query\x20code','string','app','production\x20|\x20development\x20|\x20daily','fromEntries','yes','929349pCCHRS','Output\x20format','dry-run','20bmGvJG','dryRun','Preview\x20operation\x20without\x20executing','format','json\x20|\x20pretty\x20|\x20compress','name','non-interactive','params','verbose','Verbose\x20output','<name>','32JJCcVu','clear','boolean','env','appcode','268545jVGwfe','5148792GvxvBp','329jhnWEm','sqlcode','Select\x20app\x20profile\x20by\x20name','33296JZTllP'];a55_0x443c=function(){return _0x2c795c;};return a55_0x443c();}(function(_0x549e1a,_0x3b5027){const _0x5943df=a55_0x3644,_0x1fe546=_0x549e1a();while(!![]){try{const _0x1f1747=-parseInt(_0x5943df(0xb6))/0x1+parseInt(_0x5943df(0xb9))/0x2*(parseInt(_0x5943df(0xd5))/0x3)+-parseInt(_0x5943df(0xc4))/0x4*(-parseInt(_0x5943df(0xc9))/0x5)+parseInt(_0x5943df(0xca))/0x6+parseInt(_0x5943df(0xcb))/0x7*(-parseInt(_0x5943df(0xce))/0x8)+-parseInt(_0x5943df(0xd0))/0x9*(parseInt(_0x5943df(0xcf))/0xa)+-parseInt(_0x5943df(0xd7))/0xb;if(_0x1f1747===_0x3b5027)break;else _0x1fe546['push'](_0x1fe546['shift']());}catch(_0x51b992){_0x1fe546['push'](_0x1fe546['shift']());}}}(a55_0x443c,0x73cb2));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a55_0x346dad(0xd9)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a55_0x346dad(0xd1)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a55_0x346dad(0xc8),'meowKey':a55_0x346dad(0xc8),'type':'string','description':a55_0x346dad(0xdd),'hint':a55_0x346dad(0xda)},{'name':a55_0x346dad(0xe1),'meowKey':a55_0x346dad(0xe1),'type':a55_0x346dad(0xe0),'description':a55_0x346dad(0xcd),'hint':a55_0x346dad(0xc3)},{'name':'env','meowKey':a55_0x346dad(0xc7),'type':a55_0x346dad(0xe0),'description':'Environment','hint':a55_0x346dad(0xb3)},{'name':a55_0x346dad(0xbc),'meowKey':'format','type':a55_0x346dad(0xe0),'description':a55_0x346dad(0xb7),'hint':a55_0x346dad(0xbd)},{'name':'jq','meowKey':'jq','type':a55_0x346dad(0xe0),'description':a55_0x346dad(0xd2),'hint':a55_0x346dad(0xd6)},{'name':a55_0x346dad(0xb8),'meowKey':a55_0x346dad(0xba),'type':a55_0x346dad(0xc6),'description':a55_0x346dad(0xbb)},{'name':a55_0x346dad(0xb5),'meowKey':a55_0x346dad(0xb5),'type':'boolean','description':a55_0x346dad(0xdc)},{'name':'non-interactive','meowKey':'nonInteractive','type':'boolean','description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':'global','type':a55_0x346dad(0xc6),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a55_0x346dad(0xc6),'description':a55_0x346dad(0xdb),'hidden':!![]},{'name':a55_0x346dad(0xde),'meowKey':a55_0x346dad(0xde),'type':a55_0x346dad(0xc6),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':'string','description':a55_0x346dad(0xd3),'hidden':!![]},{'name':a55_0x346dad(0xbe),'meowKey':a55_0x346dad(0xbe),'type':a55_0x346dad(0xe0),'description':a55_0x346dad(0xd8),'hidden':!![]},{'name':a55_0x346dad(0xcc),'meowKey':a55_0x346dad(0xcc),'type':a55_0x346dad(0xe0),'description':a55_0x346dad(0xdf),'hidden':!![]},{'name':a55_0x346dad(0xc0),'meowKey':a55_0x346dad(0xc0),'type':a55_0x346dad(0xe0),'description':a55_0x346dad(0xd4),'hidden':!![]},{'name':a55_0x346dad(0xc1),'meowKey':a55_0x346dad(0xc1),'type':a55_0x346dad(0xc6),'description':a55_0x346dad(0xc2),'hidden':!![]},{'name':a55_0x346dad(0xc5),'meowKey':a55_0x346dad(0xc5),'type':'boolean','description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a55_0x346dad(0xc8),'app',a55_0x346dad(0xc7),a55_0x346dad(0xbc),'jq','dry-run','yes',a55_0x346dad(0xbf),'ci']);function a55_0x3644(_0x43c9b9,_0x569f61){_0x43c9b9=_0x43c9b9-0xb3;const _0x443cb8=a55_0x443c();let _0x3644e2=_0x443cb8[_0x43c9b9];return _0x3644e2;}export function buildMeowFlags(){const _0x19e684=a55_0x346dad;return Object[_0x19e684(0xb4)](GLOBAL_FLAGS['map'](_0x502a01=>[_0x502a01['meowKey'],{'type':_0x502a01['type']}]));}
@@ -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_0xc4fe(){const _0x5c72f0=['compress','4795721hcYryT','write','29524CMkUXw','production','2834577GiYCta','307146ttSrVn','27522180gBmFbK','24cIMEBi','8idiuVF','20376seTJyn','6hbrNdq','en-US','4648045bggCNx'];a56_0xc4fe=function(){return _0x5c72f0;};return a56_0xc4fe();}const a56_0x1cdeff=a56_0x2d98;(function(_0x26edb4,_0x54a7e7){const _0x2493f9=a56_0x2d98,_0x4880cf=_0x26edb4();while(!![]){try{const _0x30498c=parseInt(_0x2493f9(0xc9))/0x1*(-parseInt(_0x2493f9(0xc7))/0x2)+-parseInt(_0x2493f9(0xc5))/0x3+-parseInt(_0x2493f9(0xc2))/0x4+parseInt(_0x2493f9(0xcc))/0x5*(-parseInt(_0x2493f9(0xca))/0x6)+parseInt(_0x2493f9(0xc0))/0x7*(-parseInt(_0x2493f9(0xc8))/0x8)+-parseInt(_0x2493f9(0xc4))/0x9+parseInt(_0x2493f9(0xc6))/0xa;if(_0x30498c===_0x54a7e7)break;else _0x4880cf['push'](_0x4880cf['shift']());}catch(_0x31d891){_0x4880cf['push'](_0x4880cf['shift']());}}}(a56_0xc4fe,0x72536));function a56_0x2d98(_0x1dabaa,_0x1ff2d5){_0x1dabaa=_0x1dabaa-0xbf;const _0xc4fe78=a56_0xc4fe();let _0x2d98af=_0xc4fe78[_0x1dabaa];return _0x2d98af;}export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':a56_0x1cdeff(0xc3),'format':a56_0x1cdeff(0xbf),'locale':a56_0x1cdeff(0xcb),'riskLevel':a56_0x1cdeff(0xc1)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a56_0x1cdeff(0xbf);
@@ -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_0x4fc835=a57_0x4fb5;(function(_0x12eec9,_0x1d0afe){const _0x5aa236=a57_0x4fb5,_0x2fb395=_0x12eec9();while(!![]){try{const _0x484078=-parseInt(_0x5aa236(0x175))/0x1*(-parseInt(_0x5aa236(0x176))/0x2)+-parseInt(_0x5aa236(0x17c))/0x3*(parseInt(_0x5aa236(0x177))/0x4)+parseInt(_0x5aa236(0x179))/0x5*(parseInt(_0x5aa236(0x17f))/0x6)+-parseInt(_0x5aa236(0x17d))/0x7+parseInt(_0x5aa236(0x181))/0x8*(parseInt(_0x5aa236(0x17b))/0x9)+parseInt(_0x5aa236(0x178))/0xa+-parseInt(_0x5aa236(0x17a))/0xb;if(_0x484078===_0x1d0afe)break;else _0x2fb395['push'](_0x2fb395['shift']());}catch(_0x4e2eaf){_0x2fb395['push'](_0x2fb395['shift']());}}}(a57_0x3335,0xe4bea));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a57_0x4fc835(0x180)];function a57_0x3335(){const _0x3eeac3=['198TyrDda','33ezZaqG','2830219TWsyKj','npmRegistryBaseUrl','4197630ndqdkH','npmPackageName','548672SJIPzs','6502JRUfSM','96NGvWaJ','6580gfXVbC','10842440NZwzRf','10cUmZiZ','32395528iKyBBm'];a57_0x3335=function(){return _0x3eeac3;};return a57_0x3335();}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];function a57_0x4fb5(_0x1f136e,_0x12be69){_0x1f136e=_0x1f136e-0x175;const _0x333514=a57_0x3335();let _0x4fb59e=_0x333514[_0x1f136e];return _0x4fb59e;}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a57_0x4fc835(0x17e)];
@@ -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_0x50f648=a58_0x267a;function a58_0x267a(_0x445f79,_0x3ec232){_0x445f79=_0x445f79-0x8f;const _0x5f2a69=a58_0x5f2a();let _0x267abf=_0x5f2a69[_0x445f79];return _0x267abf;}(function(_0x5eec66,_0x25f8f7){const _0x272de8=a58_0x267a,_0xa185d7=_0x5eec66();while(!![]){try{const _0x270350=parseInt(_0x272de8(0x95))/0x1*(parseInt(_0x272de8(0x92))/0x2)+parseInt(_0x272de8(0x94))/0x3+-parseInt(_0x272de8(0x9f))/0x4+-parseInt(_0x272de8(0x9e))/0x5+-parseInt(_0x272de8(0x91))/0x6*(-parseInt(_0x272de8(0x98))/0x7)+parseInt(_0x272de8(0x93))/0x8*(-parseInt(_0x272de8(0x9c))/0x9)+parseInt(_0x272de8(0x99))/0xa;if(_0x270350===_0x25f8f7)break;else _0xa185d7['push'](_0xa185d7['shift']());}catch(_0x278391){_0xa185d7['push'](_0xa185d7['shift']());}}}(a58_0x5f2a,0x9dcba));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x11372b){const _0x47cbf=a58_0x267a;customApiDomain=_0x11372b?.[_0x47cbf(0x9a)],customUserDomain=_0x11372b?.['userDomain'],customRuntimeDomain=_0x11372b?.['runtimeDomain'],customSkillHubDomain=_0x11372b?.[_0x47cbf(0xa0)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x50f648(0x96)]['production'][a58_0x50f648(0xa1)]:PRODUCT_CONFIG[a58_0x50f648(0x96)][a58_0x50f648(0x90)][a58_0x50f648(0xa1)]);function a58_0x5f2a(){const _0x578609=['30XrxkLj','domains','production','1981YEQKaG','15429950RCGrcf','apiDomain','runtime','619713JGaNpB','api','5163715gZCZZS','585420PtSVwY','skillHubDomain','user','skillhub','nonProduction','3282VNPaQQ','10484EgsahQ','104NVSWnV','2596539kPfdjv'];a58_0x5f2a=function(){return _0x578609;};return a58_0x5f2a();}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x50f648(0x96)][a58_0x50f648(0x97)][a58_0x50f648(0x9d)]:PRODUCT_CONFIG[a58_0x50f648(0x96)][a58_0x50f648(0x90)][a58_0x50f648(0x9d)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x50f648(0x96)][a58_0x50f648(0x97)][a58_0x50f648(0x9b)]:PRODUCT_CONFIG['domains'][a58_0x50f648(0x90)]['runtime']);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x50f648(0x96)][a58_0x50f648(0x97)][a58_0x50f648(0x8f)]:PRODUCT_CONFIG[a58_0x50f648(0x96)]['nonProduction']['skillhub']);
@@ -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
+ const a59_0x4ffaf4=a59_0x3009;(function(_0x5b3db9,_0x524c63){const _0x3de27d=a59_0x3009,_0x3fc5e0=_0x5b3db9();while(!![]){try{const _0x55efc0=-parseInt(_0x3de27d(0xd0))/0x1*(-parseInt(_0x3de27d(0xce))/0x2)+parseInt(_0x3de27d(0xc8))/0x3+parseInt(_0x3de27d(0xcf))/0x4*(-parseInt(_0x3de27d(0xcd))/0x5)+-parseInt(_0x3de27d(0xc5))/0x6*(parseInt(_0x3de27d(0xd3))/0x7)+-parseInt(_0x3de27d(0xc6))/0x8*(-parseInt(_0x3de27d(0xc3))/0x9)+parseInt(_0x3de27d(0xc9))/0xa*(-parseInt(_0x3de27d(0xcc))/0xb)+-parseInt(_0x3de27d(0xcb))/0xc*(-parseInt(_0x3de27d(0xca))/0xd);if(_0x55efc0===_0x524c63)break;else _0x3fc5e0['push'](_0x3fc5e0['shift']());}catch(_0x2afede){_0x3fc5e0['push'](_0x3fc5e0['shift']());}}}(a59_0x3f91,0xd6cde));import{productEnv}from'../constant/product.js';function a59_0x3f91(){const _0x1a41f4=['1020NQtcSG','19925347uxuawb','12RQmWPi','160996qkTMLW','5cxHXQA','3836iEeFTV','1611892JyMukp','157oxMrMg','development','daily','531804EDassV','online','155313BrEpil','ENV','114aMXdCv','568FQJyDV','production','3480177PlPCZk'];a59_0x3f91=function(){return _0x1a41f4;};return a59_0x3f91();}export const RUNTIME_ENV_VALUES=[a59_0x4ffaf4(0xc7),a59_0x4ffaf4(0xd1),a59_0x4ffaf4(0xd2)];export function normalizeEnv(_0x706010){const _0x579d7e=a59_0x4ffaf4;return _0x706010===_0x579d7e(0xd4)?'production':_0x706010;}export function isProduction(_0x3554be){const _0x4aed08=a59_0x4ffaf4;return normalizeEnv(_0x3554be)===_0x4aed08(0xc7);}export function isDaily(_0x22bf1f){const _0x5a1e2e=a59_0x4ffaf4;return normalizeEnv(_0x22bf1f)===_0x5a1e2e(0xd2);}function a59_0x3009(_0x49c164,_0x43343f){_0x49c164=_0x49c164-0xc3;const _0x3f91ae=a59_0x3f91();let _0x300979=_0x3f91ae[_0x49c164];return _0x300979;}export function isDev(_0x12298a){const _0x2b4d55=a59_0x4ffaf4,_0xe8c8b=normalizeEnv(_0x12298a);return _0xe8c8b===_0x2b4d55(0xd1)||_0xe8c8b==='dev';}let env=normalizeEnv(productEnv(a59_0x4ffaf4(0xc4))||a59_0x4ffaf4(0xc7));export function getEnv(){return env;}export function initEnv(_0x2c8353){env=normalizeEnv(_0x2c8353);}
@@ -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
+ const a60_0x2f622b=a60_0x26a7;(function(_0x14cf02,_0x98f446){const _0x2ee42a=a60_0x26a7,_0x297b72=_0x14cf02();while(!![]){try{const _0x2bc91e=parseInt(_0x2ee42a(0x165))/0x1*(parseInt(_0x2ee42a(0x163))/0x2)+parseInt(_0x2ee42a(0x15e))/0x3*(parseInt(_0x2ee42a(0x15b))/0x4)+parseInt(_0x2ee42a(0x15d))/0x5*(parseInt(_0x2ee42a(0x15c))/0x6)+parseInt(_0x2ee42a(0x160))/0x7+parseInt(_0x2ee42a(0x161))/0x8+-parseInt(_0x2ee42a(0x164))/0x9+-parseInt(_0x2ee42a(0x162))/0xa;if(_0x2bc91e===_0x98f446)break;else _0x297b72['push'](_0x297b72['shift']());}catch(_0x4d4e5f){_0x297b72['push'](_0x297b72['shift']());}}}(a60_0x51ff,0x86949));export const OUTPUT_FORMAT_VALUES=[a60_0x2f622b(0x15f),'pretty',a60_0x2f622b(0x15a)];function a60_0x26a7(_0x15a85c,_0x1e9348){_0x15a85c=_0x15a85c-0x15a;const _0x51ffe3=a60_0x51ff();let _0x26a774=_0x51ffe3[_0x15a85c];return _0x26a774;}function a60_0x51ff(){const _0x31fcf1=['8976006nnkpwy','31GQdpLB','compress','8hrjhzq','1945266oAPouN','15hrGics','492123sTxwTE','json','4980388rdZVcM','6821488VvVuGh','17302840ConLFW','26708CMoMNK'];a60_0x51ff=function(){return _0x31fcf1;};return a60_0x51ff();}
@@ -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
+ const a61_0x51a6d2=a61_0x5a61;(function(_0x374d57,_0x3d8610){const _0x5751e1=a61_0x5a61,_0x22c868=_0x374d57();while(!![]){try{const _0x475f18=-parseInt(_0x5751e1(0x17e))/0x1+-parseInt(_0x5751e1(0x179))/0x2*(parseInt(_0x5751e1(0x169))/0x3)+-parseInt(_0x5751e1(0x172))/0x4+parseInt(_0x5751e1(0x175))/0x5*(-parseInt(_0x5751e1(0x17d))/0x6)+parseInt(_0x5751e1(0x180))/0x7+parseInt(_0x5751e1(0x17a))/0x8*(-parseInt(_0x5751e1(0x171))/0x9)+parseInt(_0x5751e1(0x178))/0xa*(parseInt(_0x5751e1(0x16b))/0xb);if(_0x475f18===_0x3d8610)break;else _0x22c868['push'](_0x22c868['shift']());}catch(_0x474bc8){_0x22c868['push'](_0x22c868['shift']());}}}(a61_0x14bb,0xbc7ea));function a61_0x5a61(_0x28bef5,_0x4b77d1){_0x28bef5=_0x28bef5-0x162;const _0x14bb6a=a61_0x14bb();let _0x5a61f2=_0x14bb6a[_0x28bef5];return _0x5a61f2;}export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a61_0x51a6d2(0x173),'npmPackageName':a61_0x51a6d2(0x17b),'skillSource':'lovrabet/lovrabet-cli','npmRegistryBaseUrl':a61_0x51a6d2(0x16e),'envPrefix':a61_0x51a6d2(0x174),'legacyEnvPrefixes':[a61_0x51a6d2(0x162)],'configFileNames':[a61_0x51a6d2(0x164),a61_0x51a6d2(0x17f)],'newConfigFileName':'.lovrabet.json','homeDirName':a61_0x51a6d2(0x177),'logFileName':'.lovrabet-runtime.log','invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a61_0x51a6d2(0x163),'skipNpxSkillsEnvSuffix':a61_0x51a6d2(0x176),'domains':{'production':{'user':a61_0x51a6d2(0x16d),'api':a61_0x51a6d2(0x16a),'runtime':a61_0x51a6d2(0x165),'skillhub':a61_0x51a6d2(0x168)},'nonProduction':{'user':a61_0x51a6d2(0x16c),'api':'https://daily-api.lovrabet.com','runtime':a61_0x51a6d2(0x167),'skillhub':'https://skills-daily.lovrabet.com'}},'accessKeyCreatePath':a61_0x51a6d2(0x170)};export function productEnvName(_0x3abd9b){const _0x100998=a61_0x51a6d2;return PRODUCT_CONFIG[_0x100998(0x166)]+'_'+_0x3abd9b;}export function productEnvNames(_0x32d965){const _0x2c3433=a61_0x51a6d2;return[productEnvName(_0x32d965),...PRODUCT_CONFIG[_0x2c3433(0x16f)][_0x2c3433(0x17c)](_0x19d66f=>_0x19d66f+'_'+_0x32d965)];}function a61_0x14bb(){const _0x468dc1=['55847bdKscK','https://user-daily.lovrabet.com','https://user.lovrabet.com','https://registry.npmjs.org','legacyEnvPrefixes','/user/ak','1694997xXMsYQ','5278216yIlDJv','Lovrabet\x20Runtime\x20CLI','LOVRABET','2914745JFbhjv','SKIP_NPX_SKILLS','.lovrabet','7230AzuYOo','2rkxRrD','8yfSKHv','@lovrabet/lovrabet-cli','map','6bscEtw','1119096GkCMHt','.lovrabetrc','3307612OzDxUD','RABETBASE','Lovrabet\x20User\x20Center','.lovrabet.json','https://runtime.lovrabet.com','envPrefix','https://daily-runtime.lovrabet.com','https://skills.lovrabet.com','483543PamRsS','https://api.lovrabet.com'];a61_0x14bb=function(){return _0x468dc1;};return a61_0x14bb();}export function productEnv(_0x4b16b9){for(const _0x9bb19 of productEnvNames(_0x4b16b9)){const _0x3c987b=process.env[_0x9bb19];if(_0x3c987b!==undefined)return _0x3c987b;}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
+ const a62_0x4d3244=a62_0x4eeb;(function(_0x15159d,_0xf431aa){const _0x25f407=a62_0x4eeb,_0x193aec=_0x15159d();while(!![]){try{const _0x344d17=-parseInt(_0x25f407(0xa7))/0x1*(parseInt(_0x25f407(0xa1))/0x2)+parseInt(_0x25f407(0xa6))/0x3*(-parseInt(_0x25f407(0xa5))/0x4)+-parseInt(_0x25f407(0xa3))/0x5*(parseInt(_0x25f407(0xa0))/0x6)+parseInt(_0x25f407(0xa4))/0x7+-parseInt(_0x25f407(0xab))/0x8*(parseInt(_0x25f407(0xac))/0x9)+parseInt(_0x25f407(0x9f))/0xa*(parseInt(_0x25f407(0xa8))/0xb)+parseInt(_0x25f407(0xaa))/0xc;if(_0x344d17===_0xf431aa)break;else _0x193aec['push'](_0x193aec['shift']());}catch(_0x43f51e){_0x193aec['push'](_0x193aec['shift']());}}}(a62_0x5364,0x831d6));function a62_0x4eeb(_0x32d669,_0x211d7a){_0x32d669=_0x32d669-0x9f;const _0x53643d=a62_0x5364();let _0x4eeb43=_0x53643d[_0x32d669];return _0x4eeb43;}export const RISK_LEVEL_VALUES=[a62_0x4d3244(0xa2),'write',a62_0x4d3244(0xa9)];function a62_0x5364(){const _0x4f3f81=['31460988FZkfBI','16EySidL','1443114TPLPVo','19450cApzsp','366HdPukY','13978OLFmYg','read','67630QBIpwo','5611410iEAsAu','604tWyPuh','17079vGZELL','133cvfYSP','275zmNPvI','high-risk-write'];a62_0x5364=function(){return _0x4f3f81;};return a62_0x5364();}
@@ -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_0x749e03=a63_0x75d6;(function(_0x3b0a66,_0xcbd2f){const _0x40c294=a63_0x75d6,_0x5b851f=_0x3b0a66();while(!![]){try{const _0x4e2ccd=parseInt(_0x40c294(0x169))/0x1*(parseInt(_0x40c294(0x166))/0x2)+-parseInt(_0x40c294(0x170))/0x3+-parseInt(_0x40c294(0x165))/0x4*(-parseInt(_0x40c294(0x16f))/0x5)+-parseInt(_0x40c294(0x172))/0x6*(-parseInt(_0x40c294(0x16d))/0x7)+parseInt(_0x40c294(0x16e))/0x8+-parseInt(_0x40c294(0x167))/0x9*(-parseInt(_0x40c294(0x16c))/0xa)+parseInt(_0x40c294(0x168))/0xb*(-parseInt(_0x40c294(0x16b))/0xc);if(_0x4e2ccd===_0xcbd2f)break;else _0x5b851f['push'](_0x5b851f['shift']());}catch(_0x448da4){_0x5b851f['push'](_0x5b851f['shift']());}}}(a63_0x162a,0x7d0fa));import{PRODUCT_CONFIG}from'../constant/product.js';function a63_0x162a(){const _0x5e66a6=['754272eVixVt','10ePnlIm','314823KOCwub','accessKeyCreatePath','366504MDVCjC','5804XUPaYn','344782fQqdvF','9gUVqxI','258841ggSgJY','1Tctzsu','domains','708fZwZiE','7585990myrMBI','112fmqgAX'];a63_0x162a=function(){return _0x5e66a6;};return a63_0x162a();}function a63_0x75d6(_0x9b079e,_0xe0abf3){_0x9b079e=_0x9b079e-0x165;const _0x162aae=a63_0x162a();let _0x75d61f=_0x162aae[_0x9b079e];return _0x75d61f;}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a63_0x749e03(0x16a)]['production']['user']+PRODUCT_CONFIG[a63_0x749e03(0x171)];
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_0x2adc54=a64_0x4b17;(function(_0x28d1e3,_0x4985fe){const _0x4e6fac=a64_0x4b17,_0x45cec5=_0x28d1e3();while(!![]){try{const _0x4c6cda=-parseInt(_0x4e6fac(0x178))/0x1+parseInt(_0x4e6fac(0x197))/0x2+-parseInt(_0x4e6fac(0x179))/0x3+-parseInt(_0x4e6fac(0x162))/0x4+-parseInt(_0x4e6fac(0x186))/0x5+parseInt(_0x4e6fac(0x188))/0x6*(-parseInt(_0x4e6fac(0x174))/0x7)+parseInt(_0x4e6fac(0x161))/0x8;if(_0x4c6cda===_0x4985fe)break;else _0x45cec5['push'](_0x45cec5['shift']());}catch(_0x2b151f){_0x45cec5['push'](_0x45cec5['shift']());}}}(a64_0x3ea4,0xb13e9));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';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_0x2adc54(0x198)];function a64_0x4b17(_0x22d4bc,_0x479a3e){_0x22d4bc=_0x22d4bc-0x159;const _0x3ea486=a64_0x3ea4();let _0x4b1704=_0x3ea486[_0x22d4bc];return _0x4b1704;}export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a64_0x2adc54(0x184)];function resolveConfigPath(_0x452195){for(const _0xa8cff0 of CONFIG_NAMES){const _0xd2b6b0=resolve(_0x452195,_0xa8cff0);if(existsSync(_0xd2b6b0))return _0xd2b6b0;}return undefined;}export function resolveWriteConfigPath(_0x27f80b){const _0x380dce=a64_0x2adc54,_0x221b43=_0x27f80b===_0x380dce(0x171)?process['cwd']():homedir(),_0x5ee4c2=resolveConfigPath(_0x221b43);return _0x5ee4c2??resolve(_0x221b43,NEW_CONFIG_NAME);}export function readConfigFile(_0x5ee71d){const _0x427601=a64_0x2adc54;try{if(existsSync(_0x5ee71d)){const _0x445bdb=readFileSync(_0x5ee71d,{'encoding':_0x427601(0x193)});if(_0x445bdb){const _0x564203=JSON[_0x427601(0x182)](_0x445bdb);return migrateOnlineEnv(_0x5ee71d,_0x564203),_0x564203;}}}catch{}return{};}function migrateOnlineEnv(_0x5a3177,_0x331a66){const _0x10fc95=a64_0x2adc54;let _0x52444f=![];_0x331a66[_0x10fc95(0x17d)]==='online'&&(_0x331a66[_0x10fc95(0x17d)]=_0x10fc95(0x175),_0x52444f=!![]);if(_0x331a66[_0x10fc95(0x18d)]&&typeof _0x331a66[_0x10fc95(0x18d)]===_0x10fc95(0x18b))for(const _0x24a6d7 of Object[_0x10fc95(0x19a)](_0x331a66['apps'])){_0x24a6d7&&_0x24a6d7[_0x10fc95(0x17d)]===_0x10fc95(0x167)&&(_0x24a6d7[_0x10fc95(0x17d)]=_0x10fc95(0x175),_0x52444f=!![]);}if(_0x52444f)try{writeConfigFile(_0x5a3177,_0x331a66);}catch{}}export function writeConfigFile(_0x14e8b1,_0x64ffcb){const _0x409989=a64_0x2adc54,_0x5944e9=dirname(_0x14e8b1);!existsSync(_0x5944e9)&&mkdirSync(_0x5944e9,{'recursive':!![]});const _0x847465=_0x14e8b1+_0x409989(0x195);try{writeFileSync(_0x847465,JSON['stringify'](_0x64ffcb,null,0x2)+'\x0a',{'encoding':_0x409989(0x193),'mode':0x180});try{renameSync(_0x847465,_0x14e8b1);}catch(_0x24ef79){if(_0x24ef79[_0x409989(0x159)]===_0x409989(0x187)||_0x24ef79[_0x409989(0x159)]===_0x409989(0x18f)||_0x24ef79[_0x409989(0x159)]===_0x409989(0x176)){writeFileSync(_0x14e8b1,JSON[_0x409989(0x16a)](_0x64ffcb,null,0x2)+'\x0a',{'encoding':_0x409989(0x193)});try{unlinkSync(_0x847465);}catch{}}else throw _0x24ef79;}}catch(_0x230027){try{unlinkSync(_0x847465);}catch{}throw _0x230027;}}export function isNonInteractiveMode(_0x59c065){const _0x354cb3=a64_0x2adc54;return!!(_0x59c065['nonInteractive']||_0x59c065['ci']||productEnvNames('CI')[_0x354cb3(0x19e)](_0x6510dd=>process.env[_0x6510dd]===_0x354cb3(0x19b))||process.env.CI===_0x354cb3(0x19b)||!process[_0x354cb3(0x192)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x511ea4=a64_0x2adc54;if(!process['stdin'][_0x511ea4(0x199)])return![];try{const _0x99d898=process[_0x511ea4(0x15a)][_0x511ea4(0x18a)];return process[_0x511ea4(0x15a)]['setRawMode'](!![]),process['stdin'][_0x511ea4(0x1a2)](_0x99d898??![]),!![];}catch{return![];}}export async function createContext(_0xb387fd){const _0x2d5692=a64_0x2adc54,_0x4d8258=readRawConfig(),_0x45a947=buildConfig(_0x4d8258,_0xb387fd);await initGlobalEnvironment(_0x45a947);const {getUserDomain:_0x50f3e8,getApiDomain:_0x14dcb1}=await import(_0x2d5692(0x185)),_0x9e8966={'apiDomain':_0x14dcb1(),'userDomain':_0x50f3e8()},_0x2f1035=await buildAuth(_0x45a947);logger[_0x2d5692(0x15d)](process[_0x2d5692(0x173)]());const _0x2484f0=(CLI_BIN_NAME+'\x20'+process['argv']['slice'](0x2)[_0x2d5692(0x163)]('\x20'))['trim']();logger[_0x2d5692(0x183)](_0x2484f0);const _0x342b05=isNonInteractiveMode(_0xb387fd);return{'config':_0x45a947,'auth':_0x2f1035,'logger':logger,'env':_0x9e8966,'nonInteractive':_0x342b05};}export function buildConfigFromFlags(_0x1c006c){return buildConfig(readRawConfig(),_0x1c006c);}export function getLocalAppAliases(_0x3d322b){const _0x4bd94a=a64_0x2adc54;return _0x3d322b[_0x4bd94a(0x18d)]&&typeof _0x3d322b[_0x4bd94a(0x18d)]==='object'?_0x3d322b[_0x4bd94a(0x18d)]:{};}export function resolveLocalAppAliasCode(_0x36e950,_0x40a51b){const _0x2a131f=a64_0x2adc54;if(!_0x40a51b)return undefined;const _0x4ae021=getLocalAppAliases(_0x36e950)[_0x40a51b],_0xf57279=_0x4ae021?.['appcode'];return typeof _0xf57279===_0x2a131f(0x160)&&_0xf57279['trim']()?_0xf57279[_0x2a131f(0x16c)]():undefined;}export function readAppCodeFromConfig(){const _0x13fe99=a64_0x2adc54,_0x2b0474=readRawConfig(),_0x5711ea=_0x2b0474['appcode']??_0x2b0474['app'];if(typeof _0x5711ea==='string'&&_0x5711ea[_0x13fe99(0x16c)]())return _0x5711ea[_0x13fe99(0x16c)]();const _0x2c7eef=resolveLocalAppAliasCode(_0x2b0474,typeof _0x2b0474[_0x13fe99(0x1a0)]===_0x13fe99(0x160)?_0x2b0474[_0x13fe99(0x1a0)]:undefined);if(_0x2c7eef)return _0x2c7eef;const _0x41277b=normalizeEnv(String(_0x2b0474[_0x13fe99(0x17d)]||'production')),_0x3e670a=isDaily(_0x41277b)?_0x13fe99(0x194):isDev(_0x41277b)?_0x13fe99(0x1a1):_0x13fe99(0x175),_0x467b6a=resolveCachedAppCode(typeof _0x2b0474[_0x13fe99(0x1a0)]===_0x13fe99(0x160)?_0x2b0474[_0x13fe99(0x1a0)]:undefined,_0x3e670a,typeof _0x2b0474[_0x13fe99(0x17c)]===_0x13fe99(0x160)?_0x2b0474['accessKey']:undefined);if(_0x467b6a)return _0x467b6a;const _0x38454f=Object['values'](getLocalAppAliases(_0x2b0474))[_0x13fe99(0x1a3)](_0x4b4bf7=>_0x4b4bf7?.['appcode']);return typeof _0x38454f?.['appcode']===_0x13fe99(0x160)&&_0x38454f[_0x13fe99(0x196)][_0x13fe99(0x16c)]()?_0x38454f[_0x13fe99(0x196)][_0x13fe99(0x16c)]():undefined;}export function readScopedConfig(_0x305877){const _0xb76a74=a64_0x2adc54,_0x11578b=_0x305877[_0xb76a74(0x18c)]?_0xb76a74(0x18c):_0xb76a74(0x171);return readConfigFile(resolveWriteConfigPath(_0x11578b));}export function writeScopedConfig(_0x1c44d3,_0x35c1cb){const _0x1b850e=a64_0x2adc54,_0x3582b7=_0x35c1cb[_0x1b850e(0x18c)]?_0x1b850e(0x18c):'project';writeConfigFile(resolveWriteConfigPath(_0x3582b7),_0x1c44d3);}function a64_0x3ea4(){const _0x9b9397=['setRawMode','find','code','stdin','userDomain','raw','setLogPath','read','ACCESS_KEY','string','16582288DAZHyK','494664ZkmwkJ','join','write','runtimeDomain','APPCODE','online','explicit','high-risk-write','stringify','maxRisk','trim','host','projectConfig','APP','error','project','pageSize','cwd','98161rfRPMm','production','EACCES','empty','618303MPeNtb','57375TltxoG','apiDomain','riskLevel','accessKey','env','PAGE_SIZE','inherit','FORMAT','format','parse','setRawCommand','newConfigFileName','./constant/domain.js','4953095PKfnTu','EPERM','60aRbMEj','top-level','isRaw','object','global','apps','local-alias','EXDEV','cache','authRequired','stdout','utf8','daily','.tmp','appcode','1090300IYJjpK','configFileNames','isTTY','values','true','locale','app','some','globalConfig','defaultApp','development'];a64_0x3ea4=function(){return _0x9b9397;};return a64_0x3ea4();}export async function initGlobalEnvironment(_0x26cbae){const _0x175e6a=a64_0x2adc54,{initEnv:_0x1a043b}=await import('./constant/env.js');_0x1a043b(_0x26cbae[_0x175e6a(0x17d)]);const {initDomains:_0x53be53}=await import(_0x175e6a(0x185));_0x53be53({'apiDomain':_0x26cbae[_0x175e6a(0x15c)][_0x175e6a(0x17a)]||_0x26cbae[_0x175e6a(0x15c)][_0x175e6a(0x16d)]||undefined,'userDomain':_0x26cbae[_0x175e6a(0x15c)][_0x175e6a(0x15b)]||undefined,'runtimeDomain':_0x26cbae['raw'][_0x175e6a(0x165)]||undefined,'skillHubDomain':_0x26cbae[_0x175e6a(0x15c)]['skillHubDomain']||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x311625){const _0x2e9a8a=a64_0x2adc54;if(!existsSync(_0x311625))return{'status':'missing'};try{const _0x58ec04=readFileSync(_0x311625,{'encoding':'utf8'});if(!_0x58ec04?.['trim']())return{'status':_0x2e9a8a(0x177)};const _0x5ae210=JSON[_0x2e9a8a(0x182)](_0x58ec04);return{'status':'ok','data':_0x5ae210};}catch(_0x18878a){return{'status':_0x2e9a8a(0x170),'message':_0x18878a instanceof Error?_0x18878a['message']:String(_0x18878a)};}}export function loadRawConfigLayers(_0x1b27c1){const _0x143ab6=a64_0x2adc54;let _0x123a9a={},_0x5670cc={},_0x2a47cd,_0x326d9b;try{_0x2a47cd=resolveConfigPath(homedir());if(_0x2a47cd){const _0x544c6e=readFileSync(_0x2a47cd,{'encoding':'utf8'});if(_0x544c6e)_0x123a9a=JSON[_0x143ab6(0x182)](_0x544c6e);}}catch{}try{const _0x3be241=_0x1b27c1||process[_0x143ab6(0x173)]();_0x326d9b=resolveConfigPath(_0x3be241);if(_0x326d9b){const _0x28f500=readFileSync(_0x326d9b,{'encoding':_0x143ab6(0x193)});if(_0x28f500)_0x5670cc=JSON['parse'](_0x28f500);}}catch{}return{'globalPath':_0x2a47cd,'projectPath':_0x326d9b,'globalConfig':_0x123a9a,'projectConfig':_0x5670cc};}function mergeRawConfigLayers(_0x575463){const _0x44a0ce=a64_0x2adc54,{globalConfig:_0xa5f3ad,projectConfig:_0x4ffa92}=_0x575463;if(_0x4ffa92['inherit']===![]){const _0x181d81={..._0x4ffa92};return delete _0x181d81[_0x44a0ce(0x17f)],_0x181d81;}const _0xc7344e={..._0xa5f3ad,..._0x4ffa92};if(_0x44a0ce(0x1a0)in _0x4ffa92)_0xc7344e[_0x44a0ce(0x1a0)]=_0x4ffa92['defaultApp'];else _0xa5f3ad[_0x44a0ce(0x1a0)]&&(_0xc7344e[_0x44a0ce(0x1a0)]=_0xa5f3ad[_0x44a0ce(0x1a0)]);return _0xc7344e;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x58074d){return mergeRawConfigLayers(loadRawConfigLayers(_0x58074d));}export function readRawConfigWithLayers(_0x176ebd){const _0xe6a2e=loadRawConfigLayers(_0x176ebd);return{'config':mergeRawConfigLayers(_0xe6a2e),'layers':_0xe6a2e};}export function resolveDefaultAppSource(_0x54a549){const _0x2021aa=a64_0x2adc54;if(_0x2021aa(0x1a0)in _0x54a549[_0x2021aa(0x16e)])return _0x2021aa(0x171);if(_0x54a549[_0x2021aa(0x16e)][_0x2021aa(0x17f)]===![])return null;if(_0x54a549[_0x2021aa(0x19f)][_0x2021aa(0x1a0)])return _0x2021aa(0x18c);return null;}function buildConfig(_0x3f3079,_0x14b8cb){const _0x4eb6e9=a64_0x2adc54,_0x4513f1=_0x3f3079[_0x4eb6e9(0x1a0)]||undefined,_0x18f4c1=_0x14b8cb[_0x4eb6e9(0x19d)]||env(_0x4eb6e9(0x16f))||undefined,_0x965a33=_0x18f4c1||_0x4513f1||undefined,_0x484563=env(_0x4eb6e9(0x15f))||_0x3f3079[_0x4eb6e9(0x17c)]||undefined,_0x2566fe=_0x14b8cb[_0x4eb6e9(0x17d)]||env('ENV')||_0x3f3079[_0x4eb6e9(0x17d)]||DEFAULT_CONFIG_VALUES[_0x4eb6e9(0x17d)],_0x4084ce=normalizeEnv(String(_0x2566fe)),_0x48d566=isDaily(_0x4084ce)?_0x4eb6e9(0x194):isDev(_0x4084ce)?'development':_0x4eb6e9(0x175),_0x20edcb=resolveLocalAppAliasCode(_0x3f3079,_0x965a33),_0x3f0c6b=resolveCachedAppCode(_0x965a33,_0x48d566,_0x484563),_0x21671d=typeof _0x14b8cb[_0x4eb6e9(0x196)]==='string'?_0x14b8cb[_0x4eb6e9(0x196)]:undefined,_0x53d40a=env(_0x4eb6e9(0x166)),_0x7c5da3=_0x18f4c1?undefined:_0x3f3079[_0x4eb6e9(0x196)]||_0x3f3079[_0x4eb6e9(0x19d)]||undefined,_0x1e7d80=_0x21671d||_0x53d40a||_0x20edcb||_0x3f0c6b||_0x7c5da3||undefined,_0x1428a1=_0x21671d?_0x4eb6e9(0x168):_0x53d40a?_0x4eb6e9(0x17d):_0x20edcb?_0x4eb6e9(0x18e):_0x3f0c6b?_0x4eb6e9(0x190):_0x7c5da3?_0x4eb6e9(0x189):undefined,_0x5cc972=_0x3f3079[_0x4eb6e9(0x19c)]||DEFAULT_CONFIG_VALUES['locale'],_0x16b774=undefined,_0x692eb0=_0x14b8cb[_0x4eb6e9(0x181)]||env(_0x4eb6e9(0x180))||_0x3f3079[_0x4eb6e9(0x181)],_0x3a670c=normalizeLegacyOutputFormat(_0x692eb0),_0x371f99=env(_0x4eb6e9(0x17e))||_0x3f3079[_0x4eb6e9(0x172)],_0x5e0149=_0x371f99?Number(_0x371f99)||undefined:undefined,_0x9ce466=_0x3f3079[_0x4eb6e9(0x17b)]||_0x3f3079[_0x4eb6e9(0x16b)],_0x3ddb7c=_0x9ce466===_0x4eb6e9(0x15e)||_0x9ce466===_0x4eb6e9(0x164)||_0x9ce466===_0x4eb6e9(0x169)?_0x9ce466:DEFAULT_CONFIG_VALUES[_0x4eb6e9(0x17b)],_0x5915c8=env('VERBOSE'),_0x1e5998=_0x5915c8==='1'||_0x5915c8===_0x4eb6e9(0x19b);return{'appCode':typeof _0x1e7d80===_0x4eb6e9(0x160)&&_0x1e7d80[_0x4eb6e9(0x16c)]()?_0x1e7d80[_0x4eb6e9(0x16c)]():undefined,'appCodeSource':_0x1428a1,'env':_0x48d566,'locale':_0x5cc972,'cookie':_0x16b774,'accessKey':_0x484563,'format':_0x3a670c,'pageSize':_0x5e0149,'riskLevel':_0x3ddb7c,'verbose':_0x1e5998,'defaultApp':_0x4513f1,'currentApp':typeof _0x965a33===_0x4eb6e9(0x160)?_0x965a33:undefined,'raw':_0x3f3079};}function env(_0xcd549){return productEnv(_0xcd549);}async function buildAuth(_0x478895){const _0x5c133d=a64_0x2adc54,_0x21a522='',_0x4f8db0=!!_0x478895[_0x5c133d(0x17c)];return{'cookie':_0x21a522,'isLoggedIn':_0x4f8db0,async 'getOrLogin'(){const _0x5249ed=_0x5c133d;if(_0x4f8db0)return _0x21a522;throw CliErrors[_0x5249ed(0x191)]();}};}
@@ -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(_0x20cca2,_0x552caa){const _0x22ec98=a65_0x4266,_0x8db34c=_0x20cca2();while(!![]){try{const _0x2f89e6=-parseInt(_0x22ec98(0x1a5))/0x1+parseInt(_0x22ec98(0x17b))/0x2*(parseInt(_0x22ec98(0x166))/0x3)+-parseInt(_0x22ec98(0x16c))/0x4*(-parseInt(_0x22ec98(0x1b9))/0x5)+parseInt(_0x22ec98(0x161))/0x6*(-parseInt(_0x22ec98(0x188))/0x7)+parseInt(_0x22ec98(0x186))/0x8+parseInt(_0x22ec98(0x1ae))/0x9+-parseInt(_0x22ec98(0x18a))/0xa;if(_0x2f89e6===_0x552caa)break;else _0x8db34c['push'](_0x8db34c['shift']());}catch(_0x410ed3){_0x8db34c['push'](_0x8db34c['shift']());}}}(a65_0x2856,0x734f4));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(_0x4acc26){_activeAK=_0x4acc26||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x2b05a2,_0x50e136={}){const _0x16d15e=a65_0x4266,{method:method=_0x16d15e(0x1ab),body:_0x3ff897,headers:headers={},timeout:timeout=0x7530}=_0x50e136,_0x15c513=_activeAK,_0x183878=getRuntimeDomain();if(!_0x15c513)throw CliErrors[_0x16d15e(0x1d9)](_0x16d15e(0x15e)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0xdee677=''+_0x183878+_0x2b05a2,_0x3d425c={'X-User-AK':_0x15c513},_0x3b6ae8=new AbortController(),_0x193316=setTimeout(()=>_0x3b6ae8[_0x16d15e(0x187)](),timeout);try{const _0x55d99d=await fetch(_0xdee677,{'method':method,'headers':{'Content-Type':_0x16d15e(0x160),'X-Invoke-Source':PRODUCT_CONFIG[_0x16d15e(0x1aa)],..._0x3d425c,...headers},'body':_0x3ff897?JSON[_0x16d15e(0x174)](_0x3ff897):undefined,'signal':_0x3b6ae8[_0x16d15e(0x176)]});let _0xafc45e;try{_0xafc45e=await _0x55d99d[_0x16d15e(0x1a6)]();}catch{throw CliErrors['apiError'](_0x16d15e(0x19c)+_0x55d99d[_0x16d15e(0x18c)]+')',_0x55d99d[_0x16d15e(0x18c)]>=0x190?_0x16d15e(0x1b8):undefined);}if(!_0x55d99d['ok']||_0xafc45e[_0x16d15e(0x17f)]===![])throw CliErrors['apiError'](_0xafc45e[_0x16d15e(0x191)]||_0xafc45e[_0x16d15e(0x19a)]||'API\x20error:\x20'+_0x55d99d[_0x16d15e(0x18c)],_0xafc45e[_0x16d15e(0x16f)]?_0x16d15e(0x1c4)+_0xafc45e[_0x16d15e(0x16f)]:undefined);return _0xafc45e;}catch(_0x514ee3){if(_0x514ee3 instanceof Error&&_0x514ee3[_0x16d15e(0x1b0)]===_0x16d15e(0x196))throw CliErrors[_0x16d15e(0x1be)](_0x16d15e(0x197)+_0xdee677);throw _0x514ee3;}finally{clearTimeout(_0x193316);}}async function apiBinaryRequest(_0xe06ab1,_0x28a9bb={}){const _0x4fd1f5=a65_0x4266,{method:method=_0x4fd1f5(0x1ab),headers:headers={},timeout:timeout=0x7530}=_0x28a9bb,_0x4fef7c=_activeAK,_0x557178=getRuntimeDomain();if(!_0x4fef7c)throw CliErrors[_0x4fd1f5(0x1d9)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x4fd1f5(0x1c1)]+'.');const _0x2c5b42=''+_0x557178+_0xe06ab1,_0xc31282=new AbortController(),_0x2e7d06=setTimeout(()=>_0xc31282[_0x4fd1f5(0x187)](),timeout);try{const _0xacd8ca=await fetch(_0x2c5b42,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x4fef7c,...headers},'signal':_0xc31282[_0x4fd1f5(0x176)]});if(!_0xacd8ca['ok']){let _0x4e39e5;try{const _0x1aff65=await _0xacd8ca[_0x4fd1f5(0x1a6)]();_0x4e39e5=_0x1aff65[_0x4fd1f5(0x191)]||_0x1aff65[_0x4fd1f5(0x19a)]||_0x1aff65[_0x4fd1f5(0x16f)];}catch{_0x4e39e5=await _0xacd8ca[_0x4fd1f5(0x1cb)]()['catch'](()=>undefined);}throw CliErrors['apiError'](_0x4e39e5||_0x4fd1f5(0x172)+_0xacd8ca['status'],_0x4fd1f5(0x1cd)+_0x2c5b42);}return Buffer[_0x4fd1f5(0x199)](await _0xacd8ca[_0x4fd1f5(0x1a1)]());}catch(_0x156091){if(_0x156091 instanceof Error&&_0x156091['name']===_0x4fd1f5(0x196))throw CliErrors[_0x4fd1f5(0x1be)](_0x4fd1f5(0x197)+_0x2c5b42);throw _0x156091;}finally{clearTimeout(_0x2e7d06);}}async function toolboxRequest(_0x18cf24,_0xc3870c,_0x4af46b={}){const _0x24c762=a65_0x4266,{method:method=_0x24c762(0x1ab),headers:headers={},timeout:timeout=0x7530}=_0x4af46b,_0x42f2e9=_activeAK;if(!_0x42f2e9)throw CliErrors[_0x24c762(0x1d9)](_0x24c762(0x15e)+PRODUCT_CONFIG[_0x24c762(0x1c1)]+'.');const _0x402d37=getApiDomain()[_0x24c762(0x1cc)](/\/$/,''),_0x29582d=new URL(_0x18cf24,_0x402d37+_0x24c762(0x1b6));if(_0xc3870c)for(const [_0x3b8260,_0x38be29]of Object[_0x24c762(0x198)](_0xc3870c)){_0x38be29!==undefined&&_0x38be29!==null&&_0x29582d[_0x24c762(0x16d)]['set'](_0x3b8260,String(_0x38be29));}const _0xfe2267=new AbortController(),_0x22c876=setTimeout(()=>_0xfe2267[_0x24c762(0x187)](),timeout);try{const _0x2faa27=await fetch(_0x29582d,{'method':method,'headers':{'Content-Type':_0x24c762(0x160),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x42f2e9,...headers},'signal':_0xfe2267[_0x24c762(0x176)]});let _0x56fb55;try{_0x56fb55=await _0x2faa27[_0x24c762(0x1a6)]();}catch{throw CliErrors[_0x24c762(0x1be)]('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x2faa27['status']+')',_0x2faa27[_0x24c762(0x18c)]>=0x190?_0x24c762(0x1b8):undefined);}if(!_0x2faa27['ok']){const _0x18eb28=_0x56fb55&&typeof _0x56fb55===_0x24c762(0x18d)?_0x56fb55:{};throw CliErrors['apiError'](_0x18eb28[_0x24c762(0x191)]||_0x18eb28[_0x24c762(0x19a)]||_0x24c762(0x19e)+_0x2faa27[_0x24c762(0x18c)],_0x18eb28['errorCode']?_0x24c762(0x162)+_0x18eb28[_0x24c762(0x16f)]:undefined);}if(_0x56fb55&&typeof _0x56fb55==='object'&&_0x24c762(0x17f)in _0x56fb55&&typeof _0x56fb55['success']===_0x24c762(0x1c7)){const _0x170a2a=_0x56fb55;if(!_0x170a2a['success'])throw CliErrors['apiError'](_0x170a2a[_0x24c762(0x191)]||_0x170a2a[_0x24c762(0x19a)]||_0x24c762(0x1d7),_0x170a2a[_0x24c762(0x16f)]?_0x24c762(0x162)+_0x170a2a[_0x24c762(0x16f)]:undefined);return _0x170a2a[_0x24c762(0x17e)];}return _0x56fb55;}catch(_0x3d2df0){if(_0x3d2df0 instanceof Error&&_0x3d2df0[_0x24c762(0x1b0)]===_0x24c762(0x196))throw CliErrors['apiError'](_0x24c762(0x197)+_0x29582d[_0x24c762(0x178)]());throw _0x3d2df0;}finally{clearTimeout(_0x22c876);}}async function skillHubJsonRequest(_0x30d0ef,_0x3f848a={}){const _0x3a9ea9=a65_0x4266,{method:method='GET',query:_0x218053,body:_0x2e1e98,headers:headers={},timeout:timeout=0x7530}=_0x3f848a,_0x3b559d=_activeAK;if(!_0x3b559d)throw CliErrors[_0x3a9ea9(0x1d9)](_0x3a9ea9(0x15e)+PRODUCT_CONFIG[_0x3a9ea9(0x1c1)]+'.');const _0x1f575a=getSkillHubDomain()[_0x3a9ea9(0x1cc)](/\/$/,''),_0x3b2896=new URL(_0x30d0ef,_0x1f575a+'/');if(_0x218053)for(const [_0x563ae2,_0x377ce2]of Object[_0x3a9ea9(0x198)](_0x218053)){_0x377ce2!==undefined&&_0x377ce2!==null&&_0x3b2896[_0x3a9ea9(0x16d)][_0x3a9ea9(0x189)](_0x563ae2,String(_0x377ce2));}const _0xf623b4=new AbortController(),_0x3087a1=setTimeout(()=>_0xf623b4['abort'](),timeout);try{const _0x1dfdc9=await fetch(_0x3b2896[_0x3a9ea9(0x178)](),{'method':method,'headers':{'Accept':_0x3a9ea9(0x160),'X-Invoke-Source':PRODUCT_CONFIG[_0x3a9ea9(0x1aa)],'X-User-AK':_0x3b559d,...headers},'body':_0x2e1e98,'signal':_0xf623b4[_0x3a9ea9(0x176)]});let _0x4cbf60;try{_0x4cbf60=await _0x1dfdc9[_0x3a9ea9(0x1a6)]();}catch{throw CliErrors[_0x3a9ea9(0x1be)](_0x3a9ea9(0x1c9)+_0x1dfdc9[_0x3a9ea9(0x18c)]+')',_0x1dfdc9['status']>=0x190?_0x3a9ea9(0x1b8):undefined);}const _0x2138d1=!_0x1dfdc9['ok']||_0x4cbf60?.[_0x3a9ea9(0x17f)]===![]||typeof _0x4cbf60?.['code']===_0x3a9ea9(0x170)&&_0x4cbf60[_0x3a9ea9(0x164)]>=0x190;if(_0x2138d1)throw CliErrors[_0x3a9ea9(0x1be)](_0x4cbf60?.[_0x3a9ea9(0x191)]||_0x4cbf60?.[_0x3a9ea9(0x19a)]||_0x4cbf60?.[_0x3a9ea9(0x1b1)]||_0x3a9ea9(0x192)+_0x1dfdc9['status'],_0x4cbf60?.[_0x3a9ea9(0x16f)]?_0x3a9ea9(0x1c3)+_0x4cbf60[_0x3a9ea9(0x16f)]:undefined);return _0x4cbf60?.[_0x3a9ea9(0x17e)]??_0x4cbf60;}catch(_0x2ae064){if(_0x2ae064 instanceof Error&&_0x2ae064['name']===_0x3a9ea9(0x196))throw CliErrors[_0x3a9ea9(0x1be)](_0x3a9ea9(0x197)+_0x3b2896[_0x3a9ea9(0x178)]());throw _0x2ae064;}finally{clearTimeout(_0x3087a1);}}function a65_0x2856(){const _0x177dc1=['effective','isArray','publishedVersion','Artifact\x20not\x20found:\x20id=','company','4dyjmsh','searchParams','NAMESPACE_ONLY','errorCode','number','skillCode','API\x20error:\x20','appCode','stringify','filter','signal','/download','toString','POST','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','2LxWSuc','/client/knowledge-base/personal/','query','data','success','catch','/publish','undefined','description','PRIVATE','topK','5018352yuuECw','abort','7rfWLiu','set','11076690RwdxJz','artifactType','status','object','validation','/client/dataset/query?','packageBase64','errorMsg','SkillHub\x20API\x20error:\x20','/versions/','favorite','/client/sql/query','AbortError','Request\x20timeout:\x20','entries','from','message','?appCode=','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/api/cli/v1/skills/','Toolbox\x20API\x20error:\x20','namespace','visibility','arrayBuffer','/skills','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','slug','114203LINqXS','json','tableData','skill','source','invokeSource','GET','Knowledge-base\x20entry\x20not\x20found:\x20id=','markdown','6634485tmCyKJ','string','name','msg','BFF\x20script\x20not\x20found:\x20id=','values','version','Missing\x20Skill\x20package\x20payload.','/api/node-toolbox/','/client/dataset/list','Check\x20your\x20credentials\x20and\x20try\x20again.','3803585DWgbvf','/client/artifact/','/client/artifact/list?','/client/runtime-bff/personal/','/client/knowledge-base/search','apiError','appName','trim','newConfigFileName','/client/app/my-apps','SkillHub\x20error\x20code:\x20','API\x20error\x20code:\x20','file','/update','boolean','api-doc-generator','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','application/octet-stream','text','replace','Download\x20failed:\x20','content','/client/runtime-bff/personal/list?appCode=','application/zip','scope','tags','items','displayName','map','summary','Toolbox\x20API\x20error','SQL\x20query\x20not\x20found:\x20','authRequired','all','base64','/client/artifact/create','personal','Configure\x20accessKey\x20in\x20','test','application/json','5475198fRuqJn','Toolbox\x20error\x20code:\x20','/client/bff/query/','code','/client/user/loginUserInfo','1444611oxbROU'];a65_0x2856=function(){return _0x177dc1;};return a65_0x2856();}async function skillHubBinaryRequest(_0x20feba,_0x147b27={}){const _0x833cb4=a65_0x4266,{query:_0x5f5605,headers:headers={},timeout:timeout=0x7530}=_0x147b27,_0x11c738=_activeAK;if(!_0x11c738)throw CliErrors[_0x833cb4(0x1d9)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x833cb4(0x1c1)]+'.');const _0x36ad37=getSkillHubDomain()[_0x833cb4(0x1cc)](/\/$/,''),_0x4889e4=new URL(_0x20feba,_0x36ad37+'/');if(_0x5f5605)for(const [_0x300db9,_0x59587f]of Object[_0x833cb4(0x198)](_0x5f5605)){_0x59587f!==undefined&&_0x59587f!==null&&_0x4889e4[_0x833cb4(0x16d)][_0x833cb4(0x189)](_0x300db9,String(_0x59587f));}const _0x1adf80=new AbortController(),_0x12b59b=setTimeout(()=>_0x1adf80[_0x833cb4(0x187)](),timeout);try{const _0x3c2b36=await fetch(_0x4889e4[_0x833cb4(0x178)](),{'method':_0x833cb4(0x1ab),'headers':{'Accept':_0x833cb4(0x1ca),'X-Invoke-Source':PRODUCT_CONFIG[_0x833cb4(0x1aa)],'X-User-AK':_0x11c738,...headers},'signal':_0x1adf80['signal']});if(!_0x3c2b36['ok']){let _0x5bcbc4;try{const _0x5aee5d=await _0x3c2b36[_0x833cb4(0x1a6)]();_0x5bcbc4=_0x5aee5d[_0x833cb4(0x191)]||_0x5aee5d['message']||_0x5aee5d[_0x833cb4(0x1b1)]||_0x5aee5d[_0x833cb4(0x16f)];}catch{_0x5bcbc4=await _0x3c2b36[_0x833cb4(0x1cb)]()[_0x833cb4(0x180)](()=>undefined);}throw CliErrors['apiError'](_0x5bcbc4||'SkillHub\x20API\x20error:\x20'+_0x3c2b36[_0x833cb4(0x18c)],_0x833cb4(0x1cd)+_0x4889e4['toString']());}return Buffer[_0x833cb4(0x199)](await _0x3c2b36[_0x833cb4(0x1a1)]());}catch(_0x14892e){if(_0x14892e instanceof Error&&_0x14892e[_0x833cb4(0x1b0)]===_0x833cb4(0x196))throw CliErrors['apiError']('Request\x20timeout:\x20'+_0x4889e4[_0x833cb4(0x178)]());throw _0x14892e;}finally{clearTimeout(_0x12b59b);}}export async function getBffScriptInfo(_0x48c49e){const _0x282cd=a65_0x4266,_0x2d8fee=await apiRequest(_0x282cd(0x163)+_0x48c49e);if(!_0x2d8fee[_0x282cd(0x17e)])throw CliErrors[_0x282cd(0x18e)](_0x282cd(0x1b2)+_0x48c49e);return _0x2d8fee[_0x282cd(0x17e)];}function a65_0x4266(_0x55b353,_0x3b74ec){_0x55b353=_0x55b353-0x15a;const _0x2856f7=a65_0x2856();let _0x426639=_0x2856f7[_0x55b353];return _0x426639;}export async function getSqlQueryInfo(_0xa266ea,_0x50af1e){const _0x48e5cf=a65_0x4266,_0x15d3cd=await apiRequest(_0x48e5cf(0x195),{'method':'POST','body':{'appCode':_0xa266ea,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x50af1e}}),_0x35c524=_0x15d3cd['data'],_0x1b9212=_0x35c524&&typeof _0x35c524===_0x48e5cf(0x18d)&&_0x48e5cf(0x1a7)in _0x35c524?_0x35c524[_0x48e5cf(0x1a7)]?.[0x0]:_0x35c524&&typeof _0x35c524==='object'&&'sqlCode'in _0x35c524?_0x35c524:undefined;if(!_0x1b9212)throw CliErrors[_0x48e5cf(0x18e)](_0x48e5cf(0x1d8)+_0x50af1e);return _0x1b9212;}function isRemoteAppItem(_0x2bf9e9){const _0x3c2f72=a65_0x4266;return!!_0x2bf9e9&&typeof _0x2bf9e9==='object'&&typeof _0x2bf9e9['appCode']===_0x3c2f72(0x1af)&&typeof _0x2bf9e9[_0x3c2f72(0x1bf)]==='string';}function extractRemoteAppItems(_0x1af9e7){const _0x165e2c=a65_0x4266;if(Array[_0x165e2c(0x168)](_0x1af9e7))return _0x1af9e7[_0x165e2c(0x175)](isRemoteAppItem);if(!_0x1af9e7||typeof _0x1af9e7!==_0x165e2c(0x18d))throw CliErrors[_0x165e2c(0x1be)]('Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.');const _0x5ba001=_0x1af9e7;if(Array[_0x165e2c(0x168)](_0x5ba001[_0x165e2c(0x1a7)]))return _0x5ba001[_0x165e2c(0x1a7)][_0x165e2c(0x175)](isRemoteAppItem);if(_0x5ba001[_0x165e2c(0x17e)]&&typeof _0x5ba001[_0x165e2c(0x17e)]===_0x165e2c(0x18d)){const _0x58a5c1=_0x5ba001[_0x165e2c(0x17e)];if(Array[_0x165e2c(0x168)](_0x58a5c1[_0x165e2c(0x1a7)]))return _0x58a5c1[_0x165e2c(0x1a7)][_0x165e2c(0x175)](isRemoteAppItem);}throw CliErrors[_0x165e2c(0x1be)](_0x165e2c(0x17a));}export async function getMyApps(){const _0x1a67b4=a65_0x4266,_0xceddf0=await apiRequest(_0x1a67b4(0x1c2));return extractRemoteAppItems(_0xceddf0[_0x1a67b4(0x17e)]);}export async function getLoginUserInfo(){const _0x35146a=a65_0x4266,_0x28975c=await apiRequest(_0x35146a(0x165));if(!_0x28975c[_0x35146a(0x17e)]||typeof _0x28975c[_0x35146a(0x17e)]!==_0x35146a(0x18d)||Array[_0x35146a(0x168)](_0x28975c[_0x35146a(0x17e)]))throw CliErrors[_0x35146a(0x1be)](_0x35146a(0x1a3));return _0x28975c[_0x35146a(0x17e)];}export async function listDatasets(_0x404ef8,_0x4c94ea){const _0x23a2c4=a65_0x4266,_0x15f61c=await apiRequest(_0x23a2c4(0x1b7),{'method':_0x23a2c4(0x179),'body':{'appCode':_0x404ef8,..._0x4c94ea?.[_0x23a2c4(0x164)]&&{'code':_0x4c94ea[_0x23a2c4(0x164)]},..._0x4c94ea?.[_0x23a2c4(0x1b0)]&&{'name':_0x4c94ea[_0x23a2c4(0x1b0)]}}});return extractList(_0x15f61c[_0x23a2c4(0x17e)]);}export async function getDatasetDetail(_0x14ab12){const _0x19243e=a65_0x4266,_0x3b5dd3=/^\d+$/[_0x19243e(0x15f)](_0x14ab12)?'id':_0x19243e(0x164),_0x33240e=await apiRequest(_0x19243e(0x18f)+_0x3b5dd3+'='+_0x14ab12);return _0x33240e['data'];}export async function getDatasetSdkUsageDoc(_0xbd298b,_0x50e313){const _0x8716f2=a65_0x4266,_0x570144=await toolboxRequest(_0x8716f2(0x1c8),{'datasetCode':_0xbd298b,'appCode':_0x50e313});return typeof _0x570144?.[_0x8716f2(0x1ad)]===_0x8716f2(0x1af)?_0x570144[_0x8716f2(0x1ad)]:'';}export async function listRuntimeArtifacts(_0x40a271,_0x4c0cbf){const _0x100c07=a65_0x4266,_0x15224d=new URLSearchParams({'appCode':_0x40a271});if(_0x4c0cbf?.['artifactType'])_0x15224d['set'](_0x100c07(0x18b),_0x4c0cbf[_0x100c07(0x18b)]);if(_0x4c0cbf?.[_0x100c07(0x1a9)])_0x15224d[_0x100c07(0x189)](_0x100c07(0x1a9),_0x4c0cbf['source']);if(_0x4c0cbf?.[_0x100c07(0x194)]!==undefined)_0x15224d[_0x100c07(0x189)]('favorite',String(_0x4c0cbf[_0x100c07(0x194)]));const _0x1b7416=await apiRequest(_0x100c07(0x1bb)+_0x15224d['toString']());return Array['isArray'](_0x1b7416[_0x100c07(0x17e)])?_0x1b7416[_0x100c07(0x17e)]:[];}export async function getRuntimeArtifact(_0x504971,_0x352cd2){const _0x3862cc=a65_0x4266,_0x2291eb=await apiRequest('/client/artifact/'+_0x504971+_0x3862cc(0x19b)+encodeURIComponent(_0x352cd2));if(!_0x2291eb[_0x3862cc(0x17e)])throw CliErrors[_0x3862cc(0x18e)](_0x3862cc(0x16a)+_0x504971);return _0x2291eb[_0x3862cc(0x17e)];}export async function createRuntimeArtifact(_0x490e5f,_0x21b767){const _0x492b51=a65_0x4266,_0x1b5a7c=await apiRequest(_0x492b51(0x15c),{'method':_0x492b51(0x179),'body':{'appCode':_0x490e5f,..._0x21b767}});return _0x1b5a7c[_0x492b51(0x17e)];}export async function updateRuntimeArtifact(_0x2d3c54,_0x185c4f,_0x48074b){const _0x389f93=a65_0x4266,_0x3b556a=await apiRequest(_0x389f93(0x1ba)+_0x2d3c54+_0x389f93(0x1c6),{'method':_0x389f93(0x179),'body':{'appCode':_0x185c4f,..._0x48074b}});return _0x3b556a['data'];}export async function listPersonalBffs(_0x2b0031){const _0x59c0a7=a65_0x4266,_0x328e43=await apiRequest(_0x59c0a7(0x1cf)+encodeURIComponent(_0x2b0031));return Array[_0x59c0a7(0x168)](_0x328e43['data'])?_0x328e43['data']:[];}export async function getPersonalBff(_0x123912,_0x254a0c){const _0x3f15e7=a65_0x4266,_0x10a67f=await apiRequest('/client/runtime-bff/personal/'+_0x123912+_0x3f15e7(0x19b)+encodeURIComponent(_0x254a0c));if(!_0x10a67f[_0x3f15e7(0x17e)])throw CliErrors[_0x3f15e7(0x18e)]('Personal\x20BFF\x20not\x20found:\x20id='+_0x123912);return _0x10a67f[_0x3f15e7(0x17e)];}export async function createPersonalBff(_0x290909,_0x38fc34){const _0x50eb6d=a65_0x4266,_0x58c6ea=await apiRequest('/client/runtime-bff/personal/create',{'method':'POST','body':{'appCode':_0x290909,..._0x38fc34}});return _0x58c6ea[_0x50eb6d(0x17e)];}export async function updatePersonalBff(_0x1607be,_0x48bcbf,_0xfce112){const _0x5d6b40=a65_0x4266,_0x277af6=await apiRequest(_0x5d6b40(0x1bc)+_0x1607be+'/update',{'method':_0x5d6b40(0x179),'body':{'appCode':_0x48bcbf,..._0xfce112}});return _0x277af6[_0x5d6b40(0x17e)];}export async function executePersonalBff(_0x3512cd,_0x1c2683,_0x3f2d8e){const _0x5010a1=a65_0x4266,_0x1ca430=await apiRequest(_0x5010a1(0x1bc)+_0x3512cd+'/execute?appCode='+encodeURIComponent(_0x1c2683),{'method':'POST','body':_0x3f2d8e});return _0x1ca430[_0x5010a1(0x17e)];}export async function listPersonalKnowledgeBaseItems(_0x40a3ce){const _0x3cd924=a65_0x4266,_0x583b9d=await apiRequest('/client/knowledge-base/personal/list?appCode='+encodeURIComponent(_0x40a3ce));return Array[_0x3cd924(0x168)](_0x583b9d['data'])?_0x583b9d['data']:[];}export async function getPersonalKnowledgeBaseItem(_0x1a4091,_0x43e4dd){const _0x31243b=a65_0x4266,_0xa4bf15=await apiRequest(_0x31243b(0x17c)+_0x1a4091+_0x31243b(0x19b)+encodeURIComponent(_0x43e4dd));if(!_0xa4bf15[_0x31243b(0x17e)])throw CliErrors[_0x31243b(0x18e)](_0x31243b(0x1ac)+_0x1a4091);return _0xa4bf15[_0x31243b(0x17e)];}export async function createPersonalKnowledgeBaseItem(_0x112b8a,_0xc922d2){const _0x382ce3=a65_0x4266,_0x4e298a=await apiRequest('/client/knowledge-base/personal/create',{'method':_0x382ce3(0x179),'body':{'appCode':_0x112b8a,..._0xc922d2}});return _0x4e298a[_0x382ce3(0x17e)];}export async function updatePersonalKnowledgeBaseItem(_0x4617a9,_0x4d37a3,_0x2baf84){const _0x3153e3=a65_0x4266,_0x286415=await apiRequest(_0x3153e3(0x17c)+_0x4617a9+'/update',{'method':_0x3153e3(0x179),'body':{'appCode':_0x4d37a3,..._0x2baf84}});return _0x286415[_0x3153e3(0x17e)];}export async function searchKnowledgeBase(_0x4a90cf,_0x1a2218){const _0x584441=a65_0x4266,_0x5eb2df=await apiRequest(_0x584441(0x1bd),{'method':_0x584441(0x179),'body':{'appCode':_0x4a90cf,'query':_0x1a2218[_0x584441(0x17d)],..._0x1a2218[_0x584441(0x185)]!==undefined?{'topK':_0x1a2218[_0x584441(0x185)]}:{}}});return Array[_0x584441(0x168)](_0x5eb2df['data'])?_0x5eb2df['data']:[];}export async function listRuntimeSkills(_0x44d471){const _0x589823=a65_0x4266,_0x585853=await skillHubJsonRequest('/api/runtime/v1/namespaces/'+encodeURIComponent(_0x44d471['appCode'])+_0x589823(0x1a2),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x44d471['appCode'],_0x585853,_0x44d471[_0x589823(0x1d1)]??_0x589823(0x15a),_0x44d471[_0x589823(0x164)]);}export async function listPersonalRuntimeSkills(_0x280239){const _0x25441c=a65_0x4266;return(await listRuntimeSkills({'appCode':_0x280239,'scope':_0x25441c(0x15d)}))[_0x25441c(0x15d)];}export async function listCompanyRuntimeSkills(_0x4f160e){const _0x5980b7=a65_0x4266;return(await listRuntimeSkills({'appCode':_0x4f160e,'scope':_0x5980b7(0x16b)}))[_0x5980b7(0x16b)];}export async function listVisibleRuntimeSkills(_0x299e6a){const _0xfa5cc8=a65_0x4266;return(await listRuntimeSkills({'appCode':_0x299e6a,'scope':_0xfa5cc8(0x15a)}))[_0xfa5cc8(0x167)];}export async function createPersonalRuntimeSkill(_0x203d29,_0x2fdfa3){return publishRuntimeSkill(_0x203d29,_0x2fdfa3);}export async function updatePersonalRuntimeSkill(_0x1f5305,_0x3559ff,_0x512f19){const _0x1a5983=a65_0x4266;return publishRuntimeSkill(_0x3559ff,{..._0x512f19,'skillCode':_0x512f19[_0x1a5983(0x171)]??_0x1f5305});}export async function downloadRuntimeSkillPackage(_0x230618,_0x4960e4,_0x2989c0,_0x4f87f1){const _0x143e38=a65_0x4266;void _0x230618;const _0x3bea61=_0x4f87f1?_0x143e38(0x19d)+encodeURIComponent(_0x2989c0)+'/'+encodeURIComponent(_0x4960e4)+_0x143e38(0x193)+encodeURIComponent(_0x4f87f1)+_0x143e38(0x177):_0x143e38(0x19d)+encodeURIComponent(_0x2989c0)+'/'+encodeURIComponent(_0x4960e4)+_0x143e38(0x177);return skillHubBinaryRequest(_0x3bea61);}async function publishRuntimeSkill(_0x20f8f3,_0xf30913){const _0x590c25=a65_0x4266,_0x1d42e7=new FormData();_0x1d42e7['set'](_0x590c25(0x1c5),runtimeSkillPackageFile(_0xf30913)),_0x1d42e7['set'](_0x590c25(0x1a0),_0x590c25(0x184));const _0x570e5a=await skillHubJsonRequest(_0x590c25(0x19d)+encodeURIComponent(_0x20f8f3)+_0x590c25(0x181),{'method':_0x590c25(0x179),'body':_0x1d42e7});return{'appCode':_0x570e5a['namespace']??_0x20f8f3,'skillCode':_0x570e5a[_0x590c25(0x1a4)]??_0xf30913['skillCode']??'','skillName':_0xf30913['skillName']??_0x570e5a[_0x590c25(0x1a4)]??_0xf30913[_0x590c25(0x171)],'description':_0xf30913[_0x590c25(0x183)],'scope':skillHubVisibilityToScope(_0x570e5a[_0x590c25(0x1a0)])??_0x590c25(0x15d),'version':_0x570e5a['version']??_0xf30913['version'],'tags':_0xf30913[_0x590c25(0x1d2)],'content':_0xf30913[_0x590c25(0x1ce)]};}function runtimeSkillPackageFile(_0x38e8c2){const _0x4b5991=a65_0x4266;if(!_0x38e8c2[_0x4b5991(0x190)])throw CliErrors['validation'](_0x4b5991(0x1b5));const _0x71f607=Buffer[_0x4b5991(0x199)](_0x38e8c2['packageBase64'],_0x4b5991(0x15b)),_0x15d86a=new Blob([_0x71f607],{'type':_0x4b5991(0x1d0)}),_0x50767d=(_0x38e8c2[_0x4b5991(0x171)]||_0x4b5991(0x1a8))+'.zip';if(typeof File!==_0x4b5991(0x182))return new File([_0x15d86a],_0x50767d,{'type':_0x4b5991(0x1d0)});return _0x15d86a;}function normalizeSkillHubRuntimeListResponse(_0x392d1e,_0x5bfb59,_0x5db9f3,_0x9d88c){const _0x1da1b2=a65_0x4266,_0x25765a=Array[_0x1da1b2(0x168)](_0x5bfb59)?_0x5bfb59:Array[_0x1da1b2(0x168)](_0x5bfb59?.[_0x1da1b2(0x1d3)])?_0x5bfb59['items']:[],_0x31cb5d=_0x9d88c?.[_0x1da1b2(0x1c0)](),_0x17ba7d=_0x25765a['filter'](_0xc08117=>!_0x31cb5d||_0xc08117['slug']===_0x31cb5d)[_0x1da1b2(0x1d5)](skillHubRuntimeItemToRuntimeSkill)['filter'](_0x2c1740=>Boolean(_0x2c1740)),_0x2aed80=_0x17ba7d[_0x1da1b2(0x175)](_0x1782e8=>_0x1782e8['scope']===_0x1da1b2(0x15d)),_0x14407c=_0x17ba7d['filter'](_0x183eea=>_0x183eea['scope']===_0x1da1b2(0x16b));return{'appCode':_0x392d1e,'personal':_0x5db9f3===_0x1da1b2(0x16b)?[]:_0x2aed80,'company':_0x5db9f3===_0x1da1b2(0x15d)?[]:_0x14407c,'effective':buildEffectiveRuntimeSkills(_0x2aed80,_0x14407c,_0x5db9f3)};}function skillHubRuntimeItemToRuntimeSkill(_0x3f7eec){const _0x5f03cf=a65_0x4266,_0x4983be=_0x3f7eec['slug']?.['trim'](),_0x226da1=skillHubVisibilityToScope(_0x3f7eec['visibility']);if(!_0x4983be||!_0x226da1)return undefined;return{'id':_0x3f7eec['id'],'appCode':_0x3f7eec[_0x5f03cf(0x19f)],'skillCode':_0x4983be,'skillName':_0x3f7eec[_0x5f03cf(0x1d4)]??_0x4983be,'description':_0x3f7eec[_0x5f03cf(0x1d6)],'scope':_0x226da1,'version':skillHubRuntimeItemVersion(_0x3f7eec),'status':_0x3f7eec[_0x5f03cf(0x18c)]};}function skillHubVisibilityToScope(_0x3b38a4){const _0x3317fc=a65_0x4266;if(_0x3b38a4===_0x3317fc(0x184))return'personal';if(_0x3b38a4===_0x3317fc(0x16e))return _0x3317fc(0x16b);return undefined;}function skillHubRuntimeItemVersion(_0x4b0360){const _0x47905a=a65_0x4266;return _0x4b0360[_0x47905a(0x169)]?.[_0x47905a(0x1b4)]??_0x4b0360['headlineVersion']?.[_0x47905a(0x1b4)]??_0x4b0360['ownerPreviewVersion']?.[_0x47905a(0x1b4)];}function buildEffectiveRuntimeSkills(_0x130ef4,_0x4ec40a,_0x41e014){const _0xd25755=a65_0x4266;if(_0x41e014==='personal')return _0x130ef4;if(_0x41e014===_0xd25755(0x16b))return _0x4ec40a;const _0x47a7d4=new Map();for(const _0xfa824f of _0x4ec40a){_0x47a7d4[_0xd25755(0x189)](_0xfa824f[_0xd25755(0x171)],_0xfa824f);}for(const _0x15cf26 of _0x130ef4){_0x47a7d4['set'](_0x15cf26[_0xd25755(0x171)],_0x15cf26);}return Array[_0xd25755(0x199)](_0x47a7d4[_0xd25755(0x1b3)]());}function normalizeRuntimeSkillListResponse(_0x15367d,_0x8e5f78){const _0x3d26a2=a65_0x4266;if(Array[_0x3d26a2(0x168)](_0x8e5f78)){const _0x40aae4=_0x8e5f78[_0x3d26a2(0x175)](_0x49ddbf=>_0x49ddbf[_0x3d26a2(0x1d1)]===_0x3d26a2(0x15d)),_0x31f306=_0x8e5f78[_0x3d26a2(0x175)](_0xaa0fc1=>_0xaa0fc1[_0x3d26a2(0x1d1)]===_0x3d26a2(0x16b));return{'appCode':_0x15367d,'personal':_0x40aae4,'company':_0x31f306,'effective':[..._0x31f306,..._0x40aae4]};}return{'appCode':_0x8e5f78?.[_0x3d26a2(0x173)]??_0x15367d,'personal':Array['isArray'](_0x8e5f78?.['personal'])?_0x8e5f78[_0x3d26a2(0x15d)]:[],'company':Array[_0x3d26a2(0x168)](_0x8e5f78?.[_0x3d26a2(0x16b)])?_0x8e5f78[_0x3d26a2(0x16b)]:[],'effective':Array[_0x3d26a2(0x168)](_0x8e5f78?.[_0x3d26a2(0x167)])?_0x8e5f78[_0x3d26a2(0x167)]:[]};}
@@ -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(_0x481778,_0x7c0e45){const _0x1b6ae2=a66_0x4a38,_0x37aab6=_0x481778();while(!![]){try{const _0x4852f5=parseInt(_0x1b6ae2(0x115))/0x1*(-parseInt(_0x1b6ae2(0x11b))/0x2)+-parseInt(_0x1b6ae2(0x118))/0x3+parseInt(_0x1b6ae2(0x11a))/0x4+-parseInt(_0x1b6ae2(0x114))/0x5*(-parseInt(_0x1b6ae2(0x112))/0x6)+parseInt(_0x1b6ae2(0x11f))/0x7*(parseInt(_0x1b6ae2(0x11d))/0x8)+-parseInt(_0x1b6ae2(0x116))/0x9*(parseInt(_0x1b6ae2(0x124))/0xa)+-parseInt(_0x1b6ae2(0x11c))/0xb*(-parseInt(_0x1b6ae2(0x11e))/0xc);if(_0x4852f5===_0x7c0e45)break;else _0x37aab6['push'](_0x37aab6['shift']());}catch(_0x5adb2d){_0x37aab6['push'](_0x37aab6['shift']());}}}(a66_0x5e1e,0x75d98));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x1a141b){const _0x5a79e5=a66_0x4a38;if(cache[_0x5a79e5(0x121)](_0x1a141b))return cache[_0x5a79e5(0x125)](_0x1a141b);const _0x22abc8=await listDatasets(_0x1a141b),_0x2e9e59=new Map();for(const _0x4345b4 of _0x22abc8){const _0x4f1302=_0x4345b4[_0x5a79e5(0x123)];_0x4f1302?.['dbId']!=null&&_0x2e9e59['set'](_0x4f1302[_0x5a79e5(0x119)],_0x4f1302[_0x5a79e5(0x122)]??_0x5a79e5(0x126)+_0x4f1302[_0x5a79e5(0x119)]);}const _0x2d3988=[..._0x2e9e59[_0x5a79e5(0x117)]()][_0x5a79e5(0x113)](([_0x32fc9a,_0x21e3e6])=>({'dbId':_0x32fc9a,'dbName':_0x21e3e6}));return cache[_0x5a79e5(0x111)](_0x1a141b,_0x2d3988),_0x2d3988;}function a66_0x4a38(_0x109dff,_0x4ff517){_0x109dff=_0x109dff-0x111;const _0x5e1ef3=a66_0x5e1e();let _0x4a3858=_0x5e1ef3[_0x109dff];return _0x4a3858;}function a66_0x5e1e(){const _0x45adbe=['has','dbName','dbtableConfig','40LHFofq','get','db-','set','24qAkOru','map','268505zCMmil','774JjtjOt','1915209gmLjWf','entries','2089509tJJnEK','dbId','3611008zkjflu','1692yYIxQL','264zepmmD','2172568OTZttf','648048ulSMXI','7MHimUS','find'];a66_0x5e1e=function(){return _0x45adbe;};return a66_0x5e1e();}export async function getDbName(_0x153c72,_0x301b4e){const _0x550ce2=a66_0x4a38;try{const _0x34ce59=await listDatabases(_0x153c72);return _0x34ce59[_0x550ce2(0x120)](_0xba28cb=>_0xba28cb[_0x550ce2(0x119)]===_0x301b4e)?.[_0x550ce2(0x122)];}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(_0x11e161,_0x1dd758){const _0x5834d7=a67_0x2d90,_0x59f4dc=_0x11e161();while(!![]){try{const _0x380fee=parseInt(_0x5834d7(0x1ce))/0x1*(-parseInt(_0x5834d7(0x1b9))/0x2)+-parseInt(_0x5834d7(0x1b7))/0x3+parseInt(_0x5834d7(0x1b4))/0x4*(-parseInt(_0x5834d7(0x1af))/0x5)+parseInt(_0x5834d7(0x1b3))/0x6+-parseInt(_0x5834d7(0x1c6))/0x7*(-parseInt(_0x5834d7(0x1cd))/0x8)+parseInt(_0x5834d7(0x1d6))/0x9*(-parseInt(_0x5834d7(0x1c0))/0xa)+parseInt(_0x5834d7(0x1d5))/0xb*(parseInt(_0x5834d7(0x1d3))/0xc);if(_0x380fee===_0x1dd758)break;else _0x59f4dc['push'](_0x59f4dc['shift']());}catch(_0x22c6c0){_0x59f4dc['push'](_0x59f4dc['shift']());}}}(a67_0x57bd,0x1b863));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';function a67_0x57bd(){const _0x29a7af=['batchCreate','object','validation','12VVhawJ','bff','3535697rdJCpb','1269YaNbpC','5155zsBaZx','field','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','30018yveUto','68XvluKQ','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','string','448971GIHcIB','sql','2kAaFoE','execute','delete','data\x20aggregate\x20--params.aggregate[','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','getOne','isArray','6010VLIxnL','accessKey',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22',']\x20must\x20be\x20an\x20object.','91acfXAC','aggregate','models','map','env','\x22.\x20','update','125192LpKBRM','165203ficKjr','dataset_'];a67_0x57bd=function(){return _0x29a7af;};return a67_0x57bd();}import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;function a67_0x2d90(_0x2080da,_0xf4e853){_0x2080da=_0x2080da-0x1af;const _0x57bd2b=a67_0x57bd();let _0x2d9036=_0x57bd2b[_0x2080da];return _0x2d9036;}export function initSdkClient(_0x47deb4){const _0xe96213=a67_0x2d90;_client=createClient({'appCode':_0x47deb4['appCode'],'env':_0x47deb4[_0xe96213(0x1ca)],'authMode':_0x47deb4['authMode'],..._0x47deb4['accessKey']?{'accessKey':_0x47deb4[_0xe96213(0x1c1)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource']}}});}function ensureClient(){const _0x473228=a67_0x2d90;if(!_client)throw new Error(_0x473228(0x1bd));return _client;}function normalizeAggregateParams(_0x1a653a){const _0x1ef570=a67_0x2d90,_0x2c16c5=_0x1a653a['aggregate'];if(_0x2c16c5===undefined)return _0x1a653a;if(!Array['isArray'](_0x2c16c5))throw CliErrors[_0x1ef570(0x1d2)]('data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.');return{..._0x1a653a,'aggregate':_0x2c16c5[_0x1ef570(0x1c9)]((_0x25e1f4,_0x41dfa7)=>{const _0x58b7e4=_0x1ef570;if(!_0x25e1f4||typeof _0x25e1f4!==_0x58b7e4(0x1d1)||Array[_0x58b7e4(0x1bf)](_0x25e1f4))throw CliErrors[_0x58b7e4(0x1d2)](_0x58b7e4(0x1bc)+_0x41dfa7+_0x58b7e4(0x1c5));const _0x46c216=_0x25e1f4['column']??_0x25e1f4[_0x58b7e4(0x1b0)];if(typeof _0x46c216!==_0x58b7e4(0x1b6)||_0x46c216['trim']()==='')throw CliErrors[_0x58b7e4(0x1d2)]('data\x20aggregate\x20--params.aggregate['+_0x41dfa7+_0x58b7e4(0x1c2));const _0x26f27d={..._0x25e1f4,'column':_0x46c216};return delete _0x26f27d['field'],_0x26f27d;})};}export async function executeData(_0x176abc,_0x148055,_0x460006){const _0xf0929a=a67_0x2d90,_0x359341=ensureClient(),_0x71e515=_0xf0929a(0x1cf)+_0x176abc,_0x103035=_0x359341[_0xf0929a(0x1c8)][_0x71e515];if(!_0x103035||typeof _0x103035[_0x148055]!=='function')throw new Error(_0xf0929a(0x1c4)+_0x148055+_0xf0929a(0x1cb)+_0xf0929a(0x1b5));if(_0x148055==='batchCreate')return _0x103035[_0xf0929a(0x1d0)](parseBatchCreateItemsFromParams(_0x460006));const _0x598d0f=_0x460006!==undefined&&_0x460006!==null&&!Array[_0xf0929a(0x1bf)](_0x460006)?_0x460006:{};switch(_0x148055){case'getOne':{const _0x22d62b=_0x598d0f['id'];if(_0x22d62b===undefined||_0x22d62b===null)throw new Error(_0xf0929a(0x1b1));return _0x103035[_0xf0929a(0x1be)](_0x22d62b);}case _0xf0929a(0x1cc):{const {id:_0x1b1d1d,..._0x344949}=_0x598d0f;if(_0x1b1d1d===undefined||_0x1b1d1d===null)throw new Error(_0xf0929a(0x1c3));return _0x103035[_0xf0929a(0x1cc)](_0x1b1d1d,_0x344949);}case _0xf0929a(0x1bb):{const _0x43d02b=_0x598d0f['id'];if(_0x43d02b===undefined||_0x43d02b===null)throw new Error(_0xf0929a(0x1b2));return _0x103035[_0xf0929a(0x1bb)](_0x43d02b);}case'aggregate':return _0x103035[_0xf0929a(0x1c7)](normalizeAggregateParams(_0x598d0f));default:return _0x103035[_0x148055](_0x598d0f);}}export async function executeSdkSql(_0x3be84e,_0x4f74a8){const _0x3651ef=a67_0x2d90,_0x130549=ensureClient();return _0x130549[_0x3651ef(0x1b8)][_0x3651ef(0x1ba)]({'sqlCode':_0x3be84e,'params':_0x4f74a8});}export async function executeSdkBff(_0x24287c,_0x5055a9){const _0x2fd3fa=a67_0x2d90,_0x55e21e=ensureClient();return _0x55e21e[_0x2fd3fa(0x1d4)][_0x2fd3fa(0x1ba)]({'scriptName':_0x24287c,'params':_0x5055a9});}
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_0x52315d=a68_0x172b;function a68_0x29cb(){const _0x2c4ed5=['119457hRYAah','\x20auth\x20login`.','Set\x20appcode\x20via\x20--appcode\x20or\x20','6qAEoMA','1176380EDvRkT','205144xlzGqL','175RHjAMX','newConfigFileName','11zRFPzQ','1772352QnwwFF','658vjdJXg','590SjannD','926945qoeDIi','3620988MDjbDj','\x20or\x20run\x20`','4067PvEKwo'];a68_0x29cb=function(){return _0x2c4ed5;};return a68_0x29cb();}(function(_0x37725e,_0x27dcaf){const _0x2fe087=a68_0x172b,_0x464c04=_0x37725e();while(!![]){try{const _0x2a3b1e=-parseInt(_0x2fe087(0x160))/0x1*(-parseInt(_0x2fe087(0x16b))/0x2)+-parseInt(_0x2fe087(0x16a))/0x3+-parseInt(_0x2fe087(0x165))/0x4+-parseInt(_0x2fe087(0x16d))/0x5*(parseInt(_0x2fe087(0x164))/0x6)+parseInt(_0x2fe087(0x167))/0x7*(-parseInt(_0x2fe087(0x166))/0x8)+-parseInt(_0x2fe087(0x161))/0x9*(-parseInt(_0x2fe087(0x16c))/0xa)+parseInt(_0x2fe087(0x169))/0xb*(parseInt(_0x2fe087(0x16e))/0xc);if(_0x2a3b1e===_0x27dcaf)break;else _0x464c04['push'](_0x464c04['shift']());}catch(_0x1e8bfd){_0x464c04['push'](_0x464c04['shift']());}}}(a68_0x29cb,0xadb84));function a68_0x172b(_0x201628,_0x13c486){_0x201628=_0x201628-0x15f;const _0x29cb64=a68_0x29cb();let _0x172b3e=_0x29cb64[_0x201628];return _0x172b3e;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[a68_0x52315d(0x168)]+a68_0x52315d(0x15f)+CLI_BIN_NAME+a68_0x52315d(0x162),'configMissingHint':a68_0x52315d(0x163)+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20'+PRODUCT_CONFIG[a68_0x52315d(0x168)]+'\x20file.'});
@@ -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_0x17e2(){var _0x5fc084=['399588MIfTRx','3198728rNhNgr','24Qatzpl','10JnNZGD','4636192Bmsmfs','638919SlZBwZ','21lmitve','31190aOGGIH','65BxbPaU','94SiJZAA','253122OzNeHp','4275056AzqGNb'];a69_0x17e2=function(){return _0x5fc084;};return a69_0x17e2();}function a69_0x5bda(_0x27d955,_0x40a67c){_0x27d955=_0x27d955-0x151;var _0x17e26c=a69_0x17e2();var _0x5bdab9=_0x17e26c[_0x27d955];return _0x5bdab9;}(function(_0x5bf8d4,_0x1a5832){var _0x14aeb0=a69_0x5bda,_0x8fbe9e=_0x5bf8d4();while(!![]){try{var _0x37fdb7=-parseInt(_0x14aeb0(0x153))/0x1*(parseInt(_0x14aeb0(0x155))/0x2)+parseInt(_0x14aeb0(0x158))/0x3+-parseInt(_0x14aeb0(0x159))/0x4+parseInt(_0x14aeb0(0x154))/0x5*(parseInt(_0x14aeb0(0x156))/0x6)+-parseInt(_0x14aeb0(0x152))/0x7*(-parseInt(_0x14aeb0(0x157))/0x8)+parseInt(_0x14aeb0(0x151))/0x9*(parseInt(_0x14aeb0(0x15b))/0xa)+-parseInt(_0x14aeb0(0x15c))/0xb*(-parseInt(_0x14aeb0(0x15a))/0xc);if(_0x37fdb7===_0x1a5832)break;else _0x8fbe9e['push'](_0x8fbe9e['shift']());}catch(_0x4badc5){_0x8fbe9e['push'](_0x8fbe9e['shift']());}}}(a69_0x17e2,0xe3ce8));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a69_0x12fbf0}from'@lovrabet/cli-framework';export function buildAllFlags(_0x13ec18){return a69_0x12fbf0(_0x13ec18,{'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_0x2362(_0x48c1bc,_0x1d6fb1){_0x48c1bc=_0x48c1bc-0xcb;const _0x4b900c=a70_0x4b90();let _0x2362d1=_0x4b900c[_0x48c1bc];return _0x2362d1;}(function(_0x5785b1,_0x26abc0){const _0x50f827=a70_0x2362,_0x315cc6=_0x5785b1();while(!![]){try{const _0x7979c3=parseInt(_0x50f827(0xd4))/0x1*(-parseInt(_0x50f827(0xd2))/0x2)+-parseInt(_0x50f827(0xd3))/0x3*(parseInt(_0x50f827(0xd0))/0x4)+-parseInt(_0x50f827(0xcd))/0x5+-parseInt(_0x50f827(0xce))/0x6*(-parseInt(_0x50f827(0xcf))/0x7)+-parseInt(_0x50f827(0xd6))/0x8+-parseInt(_0x50f827(0xd5))/0x9*(parseInt(_0x50f827(0xcc))/0xa)+-parseInt(_0x50f827(0xd1))/0xb*(-parseInt(_0x50f827(0xd7))/0xc);if(_0x7979c3===_0x26abc0)break;else _0x315cc6['push'](_0x315cc6['shift']());}catch(_0x5ec7a7){_0x315cc6['push'](_0x315cc6['shift']());}}}(a70_0x4b90,0x50ab7));function a70_0x4b90(){const _0xc35eda=['632088ZTMIqj','168WVYARE','description','170790ujjXtI','313945EmRZeL','486SYXJHN','11053avyCOc','8gsjWrp','988394INMAVr','432154JfgwDK','372483VccHGM','3DiScYx','9uUPUgE'];a70_0x4b90=function(){return _0xc35eda;};return a70_0x4b90();}export function dryRun(_0x1ca968,_0x14f1bf){const _0x44cff4={'method':_0x1ca968,'url':_0x14f1bf},_0x5ae11b={'body'(_0x8b8105){return _0x44cff4['body']=_0x8b8105,_0x5ae11b;},'description'(_0x2bcdca){const _0x2e09b9=a70_0x2362;return _0x44cff4[_0x2e09b9(0xcb)]=_0x2bcdca,_0x5ae11b;},'build'(){return{..._0x44cff4};}};return _0x5ae11b;}
@@ -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_0x5858a1=a71_0x4152;function a71_0x4152(_0x5e3928,_0x1eb660){_0x5e3928=_0x5e3928-0x1de;const _0x4dcfe0=a71_0x4dcf();let _0x415281=_0x4dcfe0[_0x5e3928];return _0x415281;}(function(_0x12c568,_0x430c8a){const _0x306559=a71_0x4152,_0x153fc3=_0x12c568();while(!![]){try{const _0x5a83d4=parseInt(_0x306559(0x1e0))/0x1*(-parseInt(_0x306559(0x1e2))/0x2)+-parseInt(_0x306559(0x1e5))/0x3*(-parseInt(_0x306559(0x1e7))/0x4)+parseInt(_0x306559(0x1e8))/0x5*(parseInt(_0x306559(0x1e4))/0x6)+-parseInt(_0x306559(0x1e3))/0x7*(-parseInt(_0x306559(0x1eb))/0x8)+parseInt(_0x306559(0x1de))/0x9+parseInt(_0x306559(0x1ea))/0xa+-parseInt(_0x306559(0x1e6))/0xb*(parseInt(_0x306559(0x1e1))/0xc);if(_0x5a83d4===_0x430c8a)break;else _0x153fc3['push'](_0x153fc3['shift']());}catch(_0x10ab00){_0x153fc3['push'](_0x153fc3['shift']());}}}(a71_0x4dcf,0x4445d));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a71_0x4dcf(){const _0x41d222=['301128RJLDSr','4327803biNPMV','parseFlags','1069YWxPMB','12jmxofr','998URppRa','35Sgcvlv','6VadUAY','393plrvIQ','5729383wOZjNG','14180dzvgwK','422585XqaQIB','validateFlags','1159450AVIbVK'];a71_0x4dcf=function(){return _0x41d222;};return a71_0x4dcf();}export const parseFlags=helpers[a71_0x5858a1(0x1df)];export const validateFlags=helpers[a71_0x5858a1(0x1e9)];
@@ -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 a72_0x3c67(_0x4101ce,_0x852349){_0x4101ce=_0x4101ce-0xce;const _0x20ecfe=a72_0x20ec();let _0x3c676c=_0x20ecfe[_0x4101ce];return _0x3c676c;}(function(_0x1daf74,_0x35cdc3){const _0x2880da=a72_0x3c67,_0x30c094=_0x1daf74();while(!![]){try{const _0x1dcfdb=-parseInt(_0x2880da(0xd0))/0x1*(-parseInt(_0x2880da(0xda))/0x2)+parseInt(_0x2880da(0xd9))/0x3*(parseInt(_0x2880da(0xdb))/0x4)+parseInt(_0x2880da(0xd7))/0x5+parseInt(_0x2880da(0xcf))/0x6+parseInt(_0x2880da(0xd3))/0x7+parseInt(_0x2880da(0xdd))/0x8*(parseInt(_0x2880da(0xd1))/0x9)+-parseInt(_0x2880da(0xd2))/0xa*(parseInt(_0x2880da(0xdc))/0xb);if(_0x1dcfdb===_0x35cdc3)break;else _0x30c094['push'](_0x30c094['shift']());}catch(_0x56823f){_0x30c094['push'](_0x30c094['shift']());}}}(a72_0x20ec,0xe9783));import{createHelpGenerators}from'@lovrabet/cli-framework';function a72_0x20ec(){const _0x389e26=['8083257zgiUtC','generateFullHelp','filter','map','1746430coWLJk','Requires\x20appcode\x20(set\x20via\x20','93399XfxUnX','111432JYARcz','152gNKOog','112981IpOpho','744wOAjGU','service','3335670ZLWezW','6iqzQWn','19692dnkBBe','2750dyDlju'];a72_0x20ec=function(){return _0x389e26;};return a72_0x20ec();}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';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 _0x219d72=a72_0x3c67;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[...serviceRegistry,...safeListDynamicServiceEntries()],'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x219d72(0xd8)+PRODUCT_CONFIG['newConfigFileName']+'\x20or\x20--appcode).'});}export function generateCommandHelp(_0x2ff975){return createGenerators()['generateCommandHelp'](_0x2ff975);}export function generateServiceHelp(_0x1912f4){return createGenerators()['generateServiceHelp'](_0x1912f4);}export function generateFullHelp(){const _0x42a019=a72_0x3c67;return createGenerators()[_0x42a019(0xd4)]();}function getAnyServiceEntry(_0x3ed30f){const _0x44b698=getServiceEntry(_0x3ed30f);if(_0x44b698)return _0x44b698;try{return getDynamicServiceEntry(_0x3ed30f);}catch{return undefined;}}function getAnyServiceDefinitions(_0x4c2645){const _0x5c9abb=serviceGroups['get'](_0x4c2645);if(_0x5c9abb)return _0x5c9abb;try{return getDynamicServiceDefinitions(_0x4c2645);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x9b77a0=a72_0x3c67,_0x119c9c=new Set(serviceRegistry[_0x9b77a0(0xd6)](_0x37584f=>_0x37584f[_0x9b77a0(0xce)]));try{return listDynamicServiceEntries()[_0x9b77a0(0xd5)](_0x5b6c0c=>!_0x119c9c['has'](_0x5b6c0c[_0x9b77a0(0xce)]));}catch{return[];}}