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

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_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
+ const a53_0x4189f3=a53_0x51d0;(function(_0xe8a165,_0x4d677f){const _0x5261b9=a53_0x51d0,_0xc7569a=_0xe8a165();while(!![]){try{const _0x2be4ff=-parseInt(_0x5261b9(0xb2))/0x1+-parseInt(_0x5261b9(0xa9))/0x2+-parseInt(_0x5261b9(0xad))/0x3*(parseInt(_0x5261b9(0xb0))/0x4)+parseInt(_0x5261b9(0xae))/0x5*(parseInt(_0x5261b9(0xb1))/0x6)+parseInt(_0x5261b9(0xab))/0x7*(parseInt(_0x5261b9(0xaa))/0x8)+parseInt(_0x5261b9(0xaf))/0x9*(parseInt(_0x5261b9(0xb5))/0xa)+-parseInt(_0x5261b9(0xb4))/0xb*(-parseInt(_0x5261b9(0xb6))/0xc);if(_0x2be4ff===_0x4d677f)break;else _0xc7569a['push'](_0xc7569a['shift']());}catch(_0x218302){_0xc7569a['push'](_0xc7569a['shift']());}}}(a53_0x1776,0xb9c53));function a53_0x51d0(_0x39c9f2,_0x242d1a){_0x39c9f2=_0x39c9f2-0xa9;const _0x177694=a53_0x1776();let _0x51d0c4=_0x177694[_0x39c9f2];return _0x51d0c4;}export const APP_PUBLISH_STATUS={'Published':a53_0x4189f3(0xac),'Unpublished':'UNPUBLISH'};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a53_0x4189f3(0xb3)];function a53_0x1776(){const _0x4e3bbd=['53383slrtua','Published','374haycoU','420pObLsk','122700pgNpcR','2303236cxptbk','1249960kEuoFL','49nQHBmo','PUBLISHED','21iaKlEZ','1018495AOaazQ','120249TEfXRk','137320eVIKZo','6qmYdhv'];a53_0x1776=function(){return _0x4e3bbd;};return a53_0x1776();}
@@ -1 +1 @@
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
+ function a54_0x4e39(_0xe921d6,_0x4f8592){_0xe921d6=_0xe921d6-0x8e;const _0x344281=a54_0x3442();let _0x4e3987=_0x344281[_0xe921d6];return _0x4e3987;}const a54_0x50852c=a54_0x4e39;function a54_0x3442(){const _0x2436a7=['2164338aBdiRb','5pQoCqR','90258VEWbgP','17884933jXClSI','client-ak','67TOmagu','84IWjIKs','19332DiokdE','56HMMepP','669132rwSpEB','7587610EGZWnM','405932ceGvxH','ClientAk'];a54_0x3442=function(){return _0x2436a7;};return a54_0x3442();}(function(_0x61fa7b,_0x3ee9d2){const _0xbb2e5d=a54_0x4e39,_0x5d2ef0=_0x61fa7b();while(!![]){try{const _0xbfda24=-parseInt(_0xbb2e5d(0x96))/0x1*(-parseInt(_0xbb2e5d(0x98))/0x2)+-parseInt(_0xbb2e5d(0x91))/0x3+parseInt(_0xbb2e5d(0x8f))/0x4*(parseInt(_0xbb2e5d(0x92))/0x5)+parseInt(_0xbb2e5d(0x93))/0x6*(parseInt(_0xbb2e5d(0x97))/0x7)+parseInt(_0xbb2e5d(0x99))/0x8*(-parseInt(_0xbb2e5d(0x9a))/0x9)+-parseInt(_0xbb2e5d(0x8e))/0xa+parseInt(_0xbb2e5d(0x94))/0xb;if(_0xbfda24===_0x3ee9d2)break;else _0x5d2ef0['push'](_0x5d2ef0['shift']());}catch(_0xf1c1e3){_0x5d2ef0['push'](_0x5d2ef0['shift']());}}}(a54_0x3442,0x87781));export const AUTH_MODE={'ClientAk':a54_0x50852c(0x95)};export function isAuthMode(_0x4d6a33){const _0x2993ba=a54_0x50852c;return _0x4d6a33===AUTH_MODE[_0x2993ba(0x90)];}
@@ -1 +1 @@
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
+ function a55_0x1ba4(_0x13105e,_0x1a6e61){_0x13105e=_0x13105e-0x77;const _0x494312=a55_0x4943();let _0x1ba46=_0x494312[_0x13105e];return _0x1ba46;}const a55_0x538c65=a55_0x1ba4;(function(_0x18ff40,_0x58030c){const _0x187278=a55_0x1ba4,_0x2029b5=_0x18ff40();while(!![]){try{const _0x589366=parseInt(_0x187278(0x97))/0x1+-parseInt(_0x187278(0x95))/0x2*(parseInt(_0x187278(0x99))/0x3)+parseInt(_0x187278(0x91))/0x4+-parseInt(_0x187278(0x84))/0x5*(-parseInt(_0x187278(0xa0))/0x6)+-parseInt(_0x187278(0x7b))/0x7+parseInt(_0x187278(0x85))/0x8+-parseInt(_0x187278(0x86))/0x9;if(_0x589366===_0x58030c)break;else _0x2029b5['push'](_0x2029b5['shift']());}catch(_0x3dbf92){_0x2029b5['push'](_0x2029b5['shift']());}}}(a55_0x4943,0x50a5a));import{PRODUCT_CONFIG}from'../constant/product.js';function a55_0x4943(){const _0x466d81=['Preview\x20operation\x20without\x20executing','clear','appcode','Show\x20help','non-interactive','fromEntries','dryRun','Verbose\x20output','env','1891156ohTqGL','help','json\x20|\x20pretty\x20|\x20compress','Skip\x20confirmation\x20for\x20high-risk\x20writes','2eUKPZw','Select\x20app\x20profile\x20by\x20name','615133YZnkZd','cliBinName','1156182EtnVGz','Output\x20format','boolean','JSON\x20params\x20for\x20execute\x20commands','SQL\x20query\x20code','yes','verbose','10542KFjlHS','format','production\x20|\x20development\x20|\x20daily','name','nonInteractive','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','params','type','string','456078UYrXjo','Clear\x20output','dry-run','<code>','app','Use\x20global\x20config\x20scope','map','Name\x20filter','global','1070urDAlH','1909520JzdXJs','8295588eZSobO','Environment'];a55_0x4943=function(){return _0x466d81;};return a55_0x4943();}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a55_0x538c65(0x98)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a55_0x538c65(0x8a),'meowKey':a55_0x538c65(0x8a),'type':'string','description':'Override\x20appcode','hint':a55_0x538c65(0x7e)},{'name':a55_0x538c65(0x7f),'meowKey':a55_0x538c65(0x7f),'type':a55_0x538c65(0x7a),'description':a55_0x538c65(0x96),'hint':'<name>'},{'name':a55_0x538c65(0x90),'meowKey':a55_0x538c65(0x90),'type':a55_0x538c65(0x7a),'description':a55_0x538c65(0x87),'hint':a55_0x538c65(0xa2)},{'name':a55_0x538c65(0xa1),'meowKey':a55_0x538c65(0xa1),'type':a55_0x538c65(0x7a),'description':a55_0x538c65(0x9a),'hint':a55_0x538c65(0x93)},{'name':'jq','meowKey':'jq','type':a55_0x538c65(0x7a),'description':a55_0x538c65(0x77),'hint':'<expr>'},{'name':a55_0x538c65(0x7d),'meowKey':a55_0x538c65(0x8e),'type':a55_0x538c65(0x9b),'description':a55_0x538c65(0x88)},{'name':a55_0x538c65(0x9e),'meowKey':a55_0x538c65(0x9e),'type':a55_0x538c65(0x9b),'description':a55_0x538c65(0x94)},{'name':'non-interactive','meowKey':a55_0x538c65(0xa4),'type':a55_0x538c65(0x9b),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a55_0x538c65(0x83),'meowKey':a55_0x538c65(0x83),'type':a55_0x538c65(0x9b),'description':a55_0x538c65(0x80)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':'help','meowKey':a55_0x538c65(0x92),'type':a55_0x538c65(0x9b),'description':a55_0x538c65(0x8b)},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':a55_0x538c65(0xa3),'meowKey':a55_0x538c65(0xa3),'type':a55_0x538c65(0x7a),'description':a55_0x538c65(0x82),'hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':'string','description':a55_0x538c65(0x9d),'hidden':!![]},{'name':a55_0x538c65(0x78),'meowKey':'params','type':a55_0x538c65(0x7a),'description':a55_0x538c65(0x9c),'hidden':!![]},{'name':'verbose','meowKey':a55_0x538c65(0x9f),'type':a55_0x538c65(0x9b),'description':a55_0x538c65(0x8f),'hidden':!![]},{'name':a55_0x538c65(0x89),'meowKey':a55_0x538c65(0x89),'type':'boolean','description':a55_0x538c65(0x7c),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode','app',a55_0x538c65(0x90),a55_0x538c65(0xa1),'jq',a55_0x538c65(0x7d),a55_0x538c65(0x9e),a55_0x538c65(0x8c),'ci']);export function buildMeowFlags(){const _0x13a96e=a55_0x538c65;return Object[_0x13a96e(0x8d)](GLOBAL_FLAGS[_0x13a96e(0x81)](_0x536251=>[_0x536251['meowKey'],{'type':_0x536251[_0x13a96e(0x79)]}]));}
@@ -1 +1 @@
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
+ const a56_0x5230d7=a56_0x1a75;function a56_0x1438(){const _0x495f20=['205YOkqNR','9MGhXkE','production','93542HjGhmQ','1292550yTXpQQ','898990shzndz','2795024dbTzqd','compress','write','27228grpJGa','3157428tWdIIR','2xoowvp','589290cIqsbI'];a56_0x1438=function(){return _0x495f20;};return a56_0x1438();}(function(_0x329ac6,_0xf72649){const _0x416a8e=a56_0x1a75,_0x1147bd=_0x329ac6();while(!![]){try{const _0xa5c303=-parseInt(_0x416a8e(0x175))/0x1*(-parseInt(_0x416a8e(0x17a))/0x2)+-parseInt(_0x416a8e(0x176))/0x3+parseInt(_0x416a8e(0x173))/0x4*(-parseInt(_0x416a8e(0x177))/0x5)+parseInt(_0x416a8e(0x174))/0x6+-parseInt(_0x416a8e(0x17b))/0x7+parseInt(_0x416a8e(0x17d))/0x8+-parseInt(_0x416a8e(0x178))/0x9*(-parseInt(_0x416a8e(0x17c))/0xa);if(_0xa5c303===_0xf72649)break;else _0x1147bd['push'](_0x1147bd['shift']());}catch(_0x2c9466){_0x1147bd['push'](_0x1147bd['shift']());}}}(a56_0x1438,0x6162a));export const DEFAULT_APP_PROFILE_NAME='main';function a56_0x1a75(_0x4328b5,_0x2c0393){_0x4328b5=_0x4328b5-0x173;const _0x143800=a56_0x1438();let _0x1a75ce=_0x143800[_0x4328b5];return _0x1a75ce;}export const DEFAULT_CONFIG_VALUES={'env':a56_0x5230d7(0x179),'format':'compress','locale':'en-US','riskLevel':a56_0x5230d7(0x17f)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a56_0x5230d7(0x17e);
@@ -1 +1 @@
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
+ const a57_0x18290f=a57_0x5ded;(function(_0x44827e,_0x2615f1){const _0x434a39=a57_0x5ded,_0x499609=_0x44827e();while(!![]){try{const _0xf9246=-parseInt(_0x434a39(0x140))/0x1+parseInt(_0x434a39(0x136))/0x2+parseInt(_0x434a39(0x137))/0x3*(-parseInt(_0x434a39(0x141))/0x4)+parseInt(_0x434a39(0x13a))/0x5+parseInt(_0x434a39(0x13b))/0x6*(parseInt(_0x434a39(0x139))/0x7)+parseInt(_0x434a39(0x13c))/0x8+parseInt(_0x434a39(0x13d))/0x9*(-parseInt(_0x434a39(0x13e))/0xa);if(_0xf9246===_0x2615f1)break;else _0x499609['push'](_0x499609['shift']());}catch(_0x132cf7){_0x499609['push'](_0x499609['shift']());}}}(a57_0x3617,0xcba10));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a57_0x18290f(0x13f)];function a57_0x3617(){const _0x4bfad7=['6442670iNkOfa','36NVbkeV','11567648oqifcw','18qLDGmP','6257890qzmQFe','npmPackageName','1666152hhVjoH','1396Wixxgm','npmRegistryBaseUrl','2592460SjPISM','2766OIFbCP','skillSource','49994PJbLYR'];a57_0x3617=function(){return _0x4bfad7;};return a57_0x3617();}function a57_0x5ded(_0xccba0e,_0x1d5adb){_0xccba0e=_0xccba0e-0x135;const _0x3617ef=a57_0x3617();let _0x5ded0b=_0x3617ef[_0xccba0e];return _0x5ded0b;}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a57_0x18290f(0x138)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a57_0x18290f(0x135)];
@@ -1 +1 @@
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
+ const a58_0x58cc2d=a58_0x1d0a;function a58_0xffa0(){const _0x1308ff=['domains','8148078IQcqTs','619zkyirP','301zzPcqc','user','skillhub','production','runtimeDomain','nonProduction','489610bkzSLo','apiDomain','8tPbiax','1987945LRqnmy','166734zEHcgV','5876120PVxfIM','api','966255okEvIE','2074QnmwdQ','121oXniGb','userDomain'];a58_0xffa0=function(){return _0x1308ff;};return a58_0xffa0();}(function(_0x15c584,_0x40932e){const _0x1e0ad0=a58_0x1d0a,_0x563f60=_0x15c584();while(!![]){try{const _0x100170=-parseInt(_0x1e0ad0(0x1e0))/0x1*(-parseInt(_0x1e0ad0(0x1ef))/0x2)+parseInt(_0x1e0ad0(0x1ee))/0x3+-parseInt(_0x1e0ad0(0x1e9))/0x4*(parseInt(_0x1e0ad0(0x1ea))/0x5)+parseInt(_0x1e0ad0(0x1eb))/0x6*(parseInt(_0x1e0ad0(0x1e1))/0x7)+parseInt(_0x1e0ad0(0x1ec))/0x8+-parseInt(_0x1e0ad0(0x1df))/0x9+-parseInt(_0x1e0ad0(0x1e7))/0xa*(parseInt(_0x1e0ad0(0x1f0))/0xb);if(_0x100170===_0x40932e)break;else _0x563f60['push'](_0x563f60['shift']());}catch(_0x1a679f){_0x563f60['push'](_0x563f60['shift']());}}}(a58_0xffa0,0x9fc03));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x20c7e3){const _0x2b2844=a58_0x1d0a;customApiDomain=_0x20c7e3?.[_0x2b2844(0x1e8)],customUserDomain=_0x20c7e3?.[_0x2b2844(0x1f1)],customRuntimeDomain=_0x20c7e3?.[_0x2b2844(0x1e5)],customSkillHubDomain=_0x20c7e3?.['skillHubDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x58cc2d(0x1de)][a58_0x58cc2d(0x1e4)][a58_0x58cc2d(0x1e2)]:PRODUCT_CONFIG[a58_0x58cc2d(0x1de)][a58_0x58cc2d(0x1e6)][a58_0x58cc2d(0x1e2)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x58cc2d(0x1de)]['production'][a58_0x58cc2d(0x1ed)]:PRODUCT_CONFIG[a58_0x58cc2d(0x1de)]['nonProduction'][a58_0x58cc2d(0x1ed)]);function a58_0x1d0a(_0x41bf94,_0x4a3c32){_0x41bf94=_0x41bf94-0x1de;const _0xffa0c1=a58_0xffa0();let _0x1d0a2c=_0xffa0c1[_0x41bf94];return _0x1d0a2c;}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x58cc2d(0x1de)]['production']['runtime']:PRODUCT_CONFIG['domains'][a58_0x58cc2d(0x1e6)]['runtime']);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x58cc2d(0x1de)][a58_0x58cc2d(0x1e4)][a58_0x58cc2d(0x1e3)]:PRODUCT_CONFIG['domains'][a58_0x58cc2d(0x1e6)][a58_0x58cc2d(0x1e3)]);
@@ -1 +1 @@
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
+ const a59_0x55fec7=a59_0x5b48;(function(_0x420c06,_0x476380){const _0x1ba9e0=a59_0x5b48,_0x39faba=_0x420c06();while(!![]){try{const _0x3af713=-parseInt(_0x1ba9e0(0x9b))/0x1*(parseInt(_0x1ba9e0(0xa2))/0x2)+-parseInt(_0x1ba9e0(0x9e))/0x3*(-parseInt(_0x1ba9e0(0xa3))/0x4)+parseInt(_0x1ba9e0(0xa0))/0x5*(parseInt(_0x1ba9e0(0xac))/0x6)+parseInt(_0x1ba9e0(0xaa))/0x7*(-parseInt(_0x1ba9e0(0xa9))/0x8)+parseInt(_0x1ba9e0(0xa4))/0x9*(parseInt(_0x1ba9e0(0x9d))/0xa)+-parseInt(_0x1ba9e0(0xa5))/0xb*(-parseInt(_0x1ba9e0(0xa1))/0xc)+-parseInt(_0x1ba9e0(0xa8))/0xd;if(_0x3af713===_0x476380)break;else _0x39faba['push'](_0x39faba['shift']());}catch(_0x1885d3){_0x39faba['push'](_0x39faba['shift']());}}}(a59_0x2e8d,0x1a0d3));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a59_0x55fec7(0x9f),a59_0x55fec7(0xa6),'daily'];export function normalizeEnv(_0x333348){const _0x9e77a=a59_0x55fec7;return _0x333348===_0x9e77a(0xa7)?_0x9e77a(0x9f):_0x333348;}function a59_0x2e8d(){const _0x42a051=['59890IOojeI','147CkSeDS','production','5AfBzHz','44136JnuyxY','12zHrUQb','10012udZmcR','306pGXXau','506LWskaI','development','online','6867341BJZzRw','47368jrViDW','28kqosMI','dev','1024014IZhEUQ','1247Efbaie','daily'];a59_0x2e8d=function(){return _0x42a051;};return a59_0x2e8d();}export function isProduction(_0x5ba797){const _0x36e55a=a59_0x55fec7;return normalizeEnv(_0x5ba797)===_0x36e55a(0x9f);}export function isDaily(_0xc773d5){const _0x3e7802=a59_0x55fec7;return normalizeEnv(_0xc773d5)===_0x3e7802(0x9c);}function a59_0x5b48(_0x4c80d5,_0x5ba19b){_0x4c80d5=_0x4c80d5-0x9b;const _0x2e8d46=a59_0x2e8d();let _0x5b489b=_0x2e8d46[_0x4c80d5];return _0x5b489b;}export function isDev(_0x472b56){const _0x16f980=a59_0x55fec7,_0xa4066b=normalizeEnv(_0x472b56);return _0xa4066b==='development'||_0xa4066b===_0x16f980(0xab);}let env=normalizeEnv(productEnv('ENV')||a59_0x55fec7(0x9f));export function getEnv(){return env;}export function initEnv(_0x33982f){env=normalizeEnv(_0x33982f);}
@@ -1 +1 @@
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
+ const a60_0x40f3fc=a60_0x5092;function a60_0x5092(_0x58d103,_0x4b6e4c){_0x58d103=_0x58d103-0x155;const _0x3325a7=a60_0x3325();let _0x509270=_0x3325a7[_0x58d103];return _0x509270;}(function(_0x10e396,_0x53feec){const _0x310fd0=a60_0x5092,_0x4f51ae=_0x10e396();while(!![]){try{const _0x1d4e8e=parseInt(_0x310fd0(0x158))/0x1*(parseInt(_0x310fd0(0x157))/0x2)+parseInt(_0x310fd0(0x159))/0x3+-parseInt(_0x310fd0(0x155))/0x4+parseInt(_0x310fd0(0x15f))/0x5*(parseInt(_0x310fd0(0x15a))/0x6)+parseInt(_0x310fd0(0x15b))/0x7+-parseInt(_0x310fd0(0x161))/0x8+-parseInt(_0x310fd0(0x15e))/0x9*(parseInt(_0x310fd0(0x160))/0xa);if(_0x1d4e8e===_0x53feec)break;else _0x4f51ae['push'](_0x4f51ae['shift']());}catch(_0x97ef25){_0x4f51ae['push'](_0x4f51ae['shift']());}}}(a60_0x3325,0x8b6b6));function a60_0x3325(){const _0x5eab8b=['4244104STLlJB','json','1060174rytOGu','2CFMiUe','2522397PimmhP','12yzsvNx','1867859mpnuSV','compress','pretty','414PlZLHb','2403825ChxVoZ','312530fPCgxt','476912hQEUNu'];a60_0x3325=function(){return _0x5eab8b;};return a60_0x3325();}export const OUTPUT_FORMAT_VALUES=[a60_0x40f3fc(0x156),a60_0x40f3fc(0x15d),a60_0x40f3fc(0x15c)];
@@ -1 +1 @@
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
+ function a61_0x5af0(){const _0x274cd4=['305245VhkdVv','2241760xHtjCT','https://skills.lovrabet.com','3071979tolNse','https://skills-daily.lovrabet.com','lovrabet','126528RdeTIz','RABETBASE','.lovrabet.json','3ZVbDPI','map','https://api.lovrabet.com','@lovrabet/lovrabet-cli','https://runtime.lovrabet.com','.lovrabetrc','186962wsfDrj','https://user.lovrabet.com','1597735WEvEXA','7itxDHx','1526010kvvNBm','lovrabet/lovrabet-cli','legacyEnvPrefixes','Lovrabet\x20User\x20Center','https://registry.npmjs.org','Lovrabet\x20Runtime\x20CLI'];a61_0x5af0=function(){return _0x274cd4;};return a61_0x5af0();}function a61_0x4760(_0x1d2f1f,_0x2c8e70){_0x1d2f1f=_0x1d2f1f-0x1c2;const _0x5af0ae=a61_0x5af0();let _0x47601d=_0x5af0ae[_0x1d2f1f];return _0x47601d;}const a61_0x5809a5=a61_0x4760;(function(_0x322618,_0x3c73a2){const _0x564e8d=a61_0x4760,_0xab3163=_0x322618();while(!![]){try{const _0x21710b=parseInt(_0x564e8d(0x1d8))/0x1+-parseInt(_0x564e8d(0x1ce))/0x2+parseInt(_0x564e8d(0x1c8))/0x3*(-parseInt(_0x564e8d(0x1c5))/0x4)+-parseInt(_0x564e8d(0x1d0))/0x5+parseInt(_0x564e8d(0x1d2))/0x6+parseInt(_0x564e8d(0x1d1))/0x7*(-parseInt(_0x564e8d(0x1d9))/0x8)+parseInt(_0x564e8d(0x1c2))/0x9;if(_0x21710b===_0x3c73a2)break;else _0xab3163['push'](_0xab3163['shift']());}catch(_0x5124f8){_0xab3163['push'](_0xab3163['shift']());}}}(a61_0x5af0,0x2af9f));export const PRODUCT_CONFIG={'cliBinName':a61_0x5809a5(0x1c4),'cliDisplayName':a61_0x5809a5(0x1d7),'npmPackageName':a61_0x5809a5(0x1cb),'skillSource':a61_0x5809a5(0x1d3),'npmRegistryBaseUrl':a61_0x5809a5(0x1d6),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a61_0x5809a5(0x1c6)],'configFileNames':[a61_0x5809a5(0x1c7),a61_0x5809a5(0x1cd)],'newConfigFileName':a61_0x5809a5(0x1c7),'homeDirName':'.lovrabet','logFileName':'.lovrabet-runtime.log','invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a61_0x5809a5(0x1d5),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':a61_0x5809a5(0x1cf),'api':a61_0x5809a5(0x1ca),'runtime':a61_0x5809a5(0x1cc),'skillhub':a61_0x5809a5(0x1da)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':'https://daily-api.lovrabet.com','runtime':'https://daily-runtime.lovrabet.com','skillhub':a61_0x5809a5(0x1c3)}},'accessKeyCreatePath':'/user/ak'};export function productEnvName(_0x3c8fff){return PRODUCT_CONFIG['envPrefix']+'_'+_0x3c8fff;}export function productEnvNames(_0x52ef21){const _0x4af2b0=a61_0x5809a5;return[productEnvName(_0x52ef21),...PRODUCT_CONFIG[_0x4af2b0(0x1d4)][_0x4af2b0(0x1c9)](_0x5dd3f3=>_0x5dd3f3+'_'+_0x52ef21)];}export function productEnv(_0x26deea){for(const _0x4205aa of productEnvNames(_0x26deea)){const _0x3fa8b8=process.env[_0x4205aa];if(_0x3fa8b8!==undefined)return _0x3fa8b8;}return undefined;}
@@ -1 +1 @@
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
+ function a62_0x5f5a(){const _0x967837=['6069074UQuLcP','7256180JEzobQ','861180cnFNBm','9hsAtlX','write','read','5AVSOAK','1727634rDeAQh','12GaMEEl','449kLdKsb','4FsBcvI','3136456LAqwLm','821527BneArl','402oVDndC'];a62_0x5f5a=function(){return _0x967837;};return a62_0x5f5a();}function a62_0x566a(_0x358f59,_0x3a319b){_0x358f59=_0x358f59-0x7e;const _0x5f5ad2=a62_0x5f5a();let _0x566ac9=_0x5f5ad2[_0x358f59];return _0x566ac9;}const a62_0x16ce95=a62_0x566a;(function(_0x5ca99f,_0x5ee91d){const _0xc2087d=a62_0x566a,_0x441e5c=_0x5ca99f();while(!![]){try{const _0x3c9c40=parseInt(_0xc2087d(0x85))/0x1*(-parseInt(_0xc2087d(0x89))/0x2)+-parseInt(_0xc2087d(0x7e))/0x3*(-parseInt(_0xc2087d(0x86))/0x4)+-parseInt(_0xc2087d(0x82))/0x5*(-parseInt(_0xc2087d(0x83))/0x6)+parseInt(_0xc2087d(0x88))/0x7+-parseInt(_0xc2087d(0x87))/0x8+parseInt(_0xc2087d(0x7f))/0x9*(parseInt(_0xc2087d(0x8b))/0xa)+-parseInt(_0xc2087d(0x8a))/0xb*(parseInt(_0xc2087d(0x84))/0xc);if(_0x3c9c40===_0x5ee91d)break;else _0x441e5c['push'](_0x441e5c['shift']());}catch(_0x5c2da0){_0x441e5c['push'](_0x441e5c['shift']());}}}(a62_0x5f5a,0x5dbc2));export const RISK_LEVEL_VALUES=[a62_0x16ce95(0x81),a62_0x16ce95(0x80),'high-risk-write'];
@@ -1 +1 @@
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)];
1
+ const a63_0x2257f4=a63_0xa79a;function a63_0xa79a(_0x41ff66,_0x5a3f56){_0x41ff66=_0x41ff66-0x194;const _0x5cd7d4=a63_0x5cd7();let _0xa79a19=_0x5cd7d4[_0x41ff66];return _0xa79a19;}(function(_0x148e13,_0x4b42d7){const _0xb9f66e=a63_0xa79a,_0x41a9bc=_0x148e13();while(!![]){try{const _0x5a5c03=-parseInt(_0xb9f66e(0x1a1))/0x1+-parseInt(_0xb9f66e(0x19c))/0x2*(parseInt(_0xb9f66e(0x194))/0x3)+parseInt(_0xb9f66e(0x197))/0x4+-parseInt(_0xb9f66e(0x196))/0x5*(-parseInt(_0xb9f66e(0x19a))/0x6)+-parseInt(_0xb9f66e(0x198))/0x7+parseInt(_0xb9f66e(0x19d))/0x8*(parseInt(_0xb9f66e(0x195))/0x9)+-parseInt(_0xb9f66e(0x19e))/0xa*(parseInt(_0xb9f66e(0x19f))/0xb);if(_0x5a5c03===_0x4b42d7)break;else _0x41a9bc['push'](_0x41a9bc['shift']());}catch(_0x3e02de){_0x41a9bc['push'](_0x41a9bc['shift']());}}}(a63_0x5cd7,0xf2e92));import{PRODUCT_CONFIG}from'../constant/product.js';function a63_0x5cd7(){const _0x115fc3=['production','21262xonSkp','103456kLfIgt','1750GetsyA','33352XhKdho','accessKeyCreatePath','847243iZpcNL','267AxeUvp','1098iUFLQv','5KExXVI','1714268aMziws','2363865gwVPfP','domains','9902328MTtSnB'];a63_0x5cd7=function(){return _0x115fc3;};return a63_0x5cd7();}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a63_0x2257f4(0x199)][a63_0x2257f4(0x19b)]['user']+PRODUCT_CONFIG[a63_0x2257f4(0x1a0)];
package/lib/context.js CHANGED
@@ -1 +1 @@
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
+ const a64_0x59ce73=a64_0x540a;(function(_0x5a2309,_0x16c06a){const _0x118ab4=a64_0x540a,_0x639486=_0x5a2309();while(!![]){try{const _0x333406=parseInt(_0x118ab4(0x237))/0x1*(-parseInt(_0x118ab4(0x233))/0x2)+-parseInt(_0x118ab4(0x236))/0x3*(-parseInt(_0x118ab4(0x227))/0x4)+parseInt(_0x118ab4(0x210))/0x5*(-parseInt(_0x118ab4(0x20d))/0x6)+parseInt(_0x118ab4(0x230))/0x7*(-parseInt(_0x118ab4(0x1fe))/0x8)+parseInt(_0x118ab4(0x211))/0x9*(parseInt(_0x118ab4(0x20b))/0xa)+-parseInt(_0x118ab4(0x22a))/0xb*(-parseInt(_0x118ab4(0x20f))/0xc)+parseInt(_0x118ab4(0x208))/0xd*(parseInt(_0x118ab4(0x21f))/0xe);if(_0x333406===_0x16c06a)break;else _0x639486['push'](_0x639486['shift']());}catch(_0x3ace5a){_0x639486['push'](_0x639486['shift']());}}}(a64_0x18f5,0xba5f5));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';function a64_0x540a(_0xeb7ff8,_0x2231ad){_0xeb7ff8=_0xeb7ff8-0x1f4;const _0x18f593=a64_0x18f5();let _0x540a4=_0x18f593[_0xeb7ff8];return _0x540a4;}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_0x59ce73(0x224)];function a64_0x18f5(){const _0x578233=['daily','45514zZLwlv','production','stdin','setRawCommand','accessKey','configFileNames','values','true','4933104HjRVUV','isTTY','FORMAT','3949pBkkuu','global','online','apiDomain','defaultApp','skillHubDomain','4482464Kjogly','some','read','1761282NtOkSR','setRawMode','utf8','3yAwQqh','1cTJgKW','projectConfig','trim','string','missing','EACCES','slice','local-alias','APP','cache','find','host','riskLevel','locale','write','ENV','empty','raw','error','maxRisk','8SqRRGf','.tmp','top-level','appcode','parse','setLogPath','APPCODE','EPERM','project','stdout','9308SPcMSA','development','apps','582330AgFqoe','cwd','2959056esBdcf','object','4836GLikyC','15iDrHdx','9OgMqCo','runtimeDomain','code','userDomain','inherit','pageSize','format','high-risk-write','newConfigFileName','env','./constant/domain.js','globalConfig','./constant/env.js'];a64_0x18f5=function(){return _0x578233;};return a64_0x18f5();}export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a64_0x59ce73(0x219)];function resolveConfigPath(_0x31a756){for(const _0x2e9f77 of CONFIG_NAMES){const _0x5d0eeb=resolve(_0x31a756,_0x2e9f77);if(existsSync(_0x5d0eeb))return _0x5d0eeb;}return undefined;}export function resolveWriteConfigPath(_0x496a14){const _0x14bc68=a64_0x59ce73,_0x50cbb3=_0x496a14===_0x14bc68(0x206)?process[_0x14bc68(0x20c)]():homedir(),_0x238a0d=resolveConfigPath(_0x50cbb3);return _0x238a0d??resolve(_0x50cbb3,NEW_CONFIG_NAME);}export function readConfigFile(_0x1b6d68){const _0x2e7061=a64_0x59ce73;try{if(existsSync(_0x1b6d68)){const _0x4c5bed=readFileSync(_0x1b6d68,{'encoding':'utf8'});if(_0x4c5bed){const _0x2fd4bf=JSON[_0x2e7061(0x202)](_0x4c5bed);return migrateOnlineEnv(_0x1b6d68,_0x2fd4bf),_0x2fd4bf;}}}catch{}return{};}function migrateOnlineEnv(_0xe5c761,_0x65143d){const _0x4d95ea=a64_0x59ce73;let _0x52ab5e=![];_0x65143d[_0x4d95ea(0x21a)]==='online'&&(_0x65143d['env']=_0x4d95ea(0x220),_0x52ab5e=!![]);if(_0x65143d[_0x4d95ea(0x20a)]&&typeof _0x65143d[_0x4d95ea(0x20a)]===_0x4d95ea(0x20e))for(const _0x5d24f3 of Object[_0x4d95ea(0x225)](_0x65143d[_0x4d95ea(0x20a)])){_0x5d24f3&&_0x5d24f3[_0x4d95ea(0x21a)]===_0x4d95ea(0x22c)&&(_0x5d24f3[_0x4d95ea(0x21a)]=_0x4d95ea(0x220),_0x52ab5e=!![]);}if(_0x52ab5e)try{writeConfigFile(_0xe5c761,_0x65143d);}catch{}}export function writeConfigFile(_0xde0d65,_0x4bae48){const _0x2f5e05=a64_0x59ce73,_0x1d841e=dirname(_0xde0d65);!existsSync(_0x1d841e)&&mkdirSync(_0x1d841e,{'recursive':!![]});const _0x161a8a=_0xde0d65+_0x2f5e05(0x1ff);try{writeFileSync(_0x161a8a,JSON['stringify'](_0x4bae48,null,0x2)+'\x0a',{'encoding':_0x2f5e05(0x235),'mode':0x180});try{renameSync(_0x161a8a,_0xde0d65);}catch(_0x212bac){if(_0x212bac[_0x2f5e05(0x213)]===_0x2f5e05(0x205)||_0x212bac[_0x2f5e05(0x213)]==='EXDEV'||_0x212bac[_0x2f5e05(0x213)]===_0x2f5e05(0x23c)){writeFileSync(_0xde0d65,JSON['stringify'](_0x4bae48,null,0x2)+'\x0a',{'encoding':_0x2f5e05(0x235)});try{unlinkSync(_0x161a8a);}catch{}}else throw _0x212bac;}}catch(_0x6560ac){try{unlinkSync(_0x161a8a);}catch{}throw _0x6560ac;}}export function isNonInteractiveMode(_0x51a8b9){const _0x10a486=a64_0x59ce73;return!!(_0x51a8b9['nonInteractive']||_0x51a8b9['ci']||productEnvNames('CI')[_0x10a486(0x231)](_0x8189b7=>process.env[_0x8189b7]===_0x10a486(0x226))||process.env.CI===_0x10a486(0x226)||!process[_0x10a486(0x207)][_0x10a486(0x228)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0xcdc855=a64_0x59ce73;if(!process[_0xcdc855(0x221)]['isTTY'])return![];try{const _0x3ffbf6=process[_0xcdc855(0x221)]['isRaw'];return process[_0xcdc855(0x221)][_0xcdc855(0x234)](!![]),process[_0xcdc855(0x221)][_0xcdc855(0x234)](_0x3ffbf6??![]),!![];}catch{return![];}}export async function createContext(_0x37258c){const _0x522613=a64_0x59ce73,_0x38fd55=readRawConfig(),_0x11d3a6=buildConfig(_0x38fd55,_0x37258c);await initGlobalEnvironment(_0x11d3a6);const {getUserDomain:_0x23b460,getApiDomain:_0x43f154}=await import('./constant/domain.js'),_0x533ac8={'apiDomain':_0x43f154(),'userDomain':_0x23b460()},_0xc0b2f1=await buildAuth(_0x11d3a6);logger[_0x522613(0x203)](process[_0x522613(0x20c)]());const _0x5e5eed=(CLI_BIN_NAME+'\x20'+process['argv'][_0x522613(0x23d)](0x2)['join']('\x20'))['trim']();logger[_0x522613(0x222)](_0x5e5eed);const _0x4ea7e6=isNonInteractiveMode(_0x37258c);return{'config':_0x11d3a6,'auth':_0xc0b2f1,'logger':logger,'env':_0x533ac8,'nonInteractive':_0x4ea7e6};}export function buildConfigFromFlags(_0xf10979){return buildConfig(readRawConfig(),_0xf10979);}export function getLocalAppAliases(_0x2c7dba){const _0x3046b6=a64_0x59ce73;return _0x2c7dba[_0x3046b6(0x20a)]&&typeof _0x2c7dba['apps']===_0x3046b6(0x20e)?_0x2c7dba[_0x3046b6(0x20a)]:{};}export function resolveLocalAppAliasCode(_0x47ff24,_0x302ec2){const _0x4a0a54=a64_0x59ce73;if(!_0x302ec2)return undefined;const _0x12fe89=getLocalAppAliases(_0x47ff24)[_0x302ec2],_0x5a43e4=_0x12fe89?.[_0x4a0a54(0x201)];return typeof _0x5a43e4===_0x4a0a54(0x23a)&&_0x5a43e4[_0x4a0a54(0x239)]()?_0x5a43e4['trim']():undefined;}export function readAppCodeFromConfig(){const _0xc81508=a64_0x59ce73,_0x2a9047=readRawConfig(),_0x44240b=_0x2a9047[_0xc81508(0x201)]??_0x2a9047['app'];if(typeof _0x44240b==='string'&&_0x44240b[_0xc81508(0x239)]())return _0x44240b[_0xc81508(0x239)]();const _0x180dad=resolveLocalAppAliasCode(_0x2a9047,typeof _0x2a9047['defaultApp']===_0xc81508(0x23a)?_0x2a9047[_0xc81508(0x22e)]:undefined);if(_0x180dad)return _0x180dad;const _0x113ec2=normalizeEnv(String(_0x2a9047[_0xc81508(0x21a)]||_0xc81508(0x220))),_0x31792a=isDaily(_0x113ec2)?_0xc81508(0x21e):isDev(_0x113ec2)?'development':_0xc81508(0x220),_0x21c499=resolveCachedAppCode(typeof _0x2a9047[_0xc81508(0x22e)]===_0xc81508(0x23a)?_0x2a9047[_0xc81508(0x22e)]:undefined,_0x31792a,typeof _0x2a9047['accessKey']==='string'?_0x2a9047[_0xc81508(0x223)]:undefined);if(_0x21c499)return _0x21c499;const _0x344f22=Object['values'](getLocalAppAliases(_0x2a9047))[_0xc81508(0x1f4)](_0x140502=>_0x140502?.[_0xc81508(0x201)]);return typeof _0x344f22?.[_0xc81508(0x201)]===_0xc81508(0x23a)&&_0x344f22['appcode'][_0xc81508(0x239)]()?_0x344f22[_0xc81508(0x201)]['trim']():undefined;}export function readScopedConfig(_0x54418b){const _0x3c7a3a=a64_0x59ce73,_0x1af2cc=_0x54418b[_0x3c7a3a(0x22b)]?'global':_0x3c7a3a(0x206);return readConfigFile(resolveWriteConfigPath(_0x1af2cc));}export function writeScopedConfig(_0x2ee88d,_0x34b8be){const _0x51becc=a64_0x59ce73,_0x561650=_0x34b8be['global']?_0x51becc(0x22b):_0x51becc(0x206);writeConfigFile(resolveWriteConfigPath(_0x561650),_0x2ee88d);}export async function initGlobalEnvironment(_0x25f58c){const _0x54573e=a64_0x59ce73,{initEnv:_0x3ab129}=await import(_0x54573e(0x21d));_0x3ab129(_0x25f58c['env']);const {initDomains:_0x1841ea}=await import(_0x54573e(0x21b));_0x1841ea({'apiDomain':_0x25f58c[_0x54573e(0x1fb)][_0x54573e(0x22d)]||_0x25f58c['raw'][_0x54573e(0x1f5)]||undefined,'userDomain':_0x25f58c[_0x54573e(0x1fb)][_0x54573e(0x214)]||undefined,'runtimeDomain':_0x25f58c[_0x54573e(0x1fb)][_0x54573e(0x212)]||undefined,'skillHubDomain':_0x25f58c[_0x54573e(0x1fb)][_0x54573e(0x22f)]||undefined});}export function getProjectConfigPath(){const _0x20daa9=a64_0x59ce73;return resolveConfigPath(process[_0x20daa9(0x20c)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x41bc63){const _0x134bc3=a64_0x59ce73;if(!existsSync(_0x41bc63))return{'status':_0x134bc3(0x23b)};try{const _0x40d6da=readFileSync(_0x41bc63,{'encoding':_0x134bc3(0x235)});if(!_0x40d6da?.[_0x134bc3(0x239)]())return{'status':_0x134bc3(0x1fa)};const _0x51c901=JSON[_0x134bc3(0x202)](_0x40d6da);return{'status':'ok','data':_0x51c901};}catch(_0x2bc7fc){return{'status':_0x134bc3(0x1fc),'message':_0x2bc7fc instanceof Error?_0x2bc7fc['message']:String(_0x2bc7fc)};}}export function loadRawConfigLayers(_0x4d0702){const _0x4c8448=a64_0x59ce73;let _0x545619={},_0x8dea51={},_0x5c02f8,_0x3827aa;try{_0x5c02f8=resolveConfigPath(homedir());if(_0x5c02f8){const _0x56f8a6=readFileSync(_0x5c02f8,{'encoding':'utf8'});if(_0x56f8a6)_0x545619=JSON[_0x4c8448(0x202)](_0x56f8a6);}}catch{}try{const _0x3ad57c=_0x4d0702||process[_0x4c8448(0x20c)]();_0x3827aa=resolveConfigPath(_0x3ad57c);if(_0x3827aa){const _0x28d3e8=readFileSync(_0x3827aa,{'encoding':_0x4c8448(0x235)});if(_0x28d3e8)_0x8dea51=JSON[_0x4c8448(0x202)](_0x28d3e8);}}catch{}return{'globalPath':_0x5c02f8,'projectPath':_0x3827aa,'globalConfig':_0x545619,'projectConfig':_0x8dea51};}function mergeRawConfigLayers(_0x37c425){const _0xc3e7b5=a64_0x59ce73,{globalConfig:_0x50630e,projectConfig:_0x1a85e2}=_0x37c425;if(_0x1a85e2['inherit']===![]){const _0x39cfb6={..._0x1a85e2};return delete _0x39cfb6[_0xc3e7b5(0x215)],_0x39cfb6;}const _0x1495f1={..._0x50630e,..._0x1a85e2};if(_0xc3e7b5(0x22e)in _0x1a85e2)_0x1495f1['defaultApp']=_0x1a85e2[_0xc3e7b5(0x22e)];else _0x50630e['defaultApp']&&(_0x1495f1[_0xc3e7b5(0x22e)]=_0x50630e['defaultApp']);return _0x1495f1;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x37cb50){return mergeRawConfigLayers(loadRawConfigLayers(_0x37cb50));}export function readRawConfigWithLayers(_0x3d199a){const _0x59725f=loadRawConfigLayers(_0x3d199a);return{'config':mergeRawConfigLayers(_0x59725f),'layers':_0x59725f};}export function resolveDefaultAppSource(_0x20b449){const _0xc453f3=a64_0x59ce73;if('defaultApp'in _0x20b449[_0xc453f3(0x238)])return'project';if(_0x20b449[_0xc453f3(0x238)][_0xc453f3(0x215)]===![])return null;if(_0x20b449[_0xc453f3(0x21c)]['defaultApp'])return'global';return null;}function buildConfig(_0x1097d2,_0x1e7900){const _0x288d68=a64_0x59ce73,_0x1d5fbe=_0x1097d2[_0x288d68(0x22e)]||undefined,_0xb478df=_0x1e7900['app']||env(_0x288d68(0x23f))||undefined,_0x471384=_0xb478df||_0x1d5fbe||undefined,_0x394c81=env('ACCESS_KEY')||_0x1097d2[_0x288d68(0x223)]||undefined,_0x2a28d3=_0x1e7900[_0x288d68(0x21a)]||env(_0x288d68(0x1f9))||_0x1097d2[_0x288d68(0x21a)]||DEFAULT_CONFIG_VALUES[_0x288d68(0x21a)],_0x4f98fd=normalizeEnv(String(_0x2a28d3)),_0x5e1b12=isDaily(_0x4f98fd)?'daily':isDev(_0x4f98fd)?_0x288d68(0x209):'production',_0x58762e=resolveLocalAppAliasCode(_0x1097d2,_0x471384),_0x4bb7c1=resolveCachedAppCode(_0x471384,_0x5e1b12,_0x394c81),_0x4311ee=typeof _0x1e7900[_0x288d68(0x201)]===_0x288d68(0x23a)?_0x1e7900[_0x288d68(0x201)]:undefined,_0xe1ec1f=env(_0x288d68(0x204)),_0x1ce152=_0xb478df?undefined:_0x1097d2['appcode']||_0x1097d2['app']||undefined,_0x1a5cdc=_0x4311ee||_0xe1ec1f||_0x58762e||_0x4bb7c1||_0x1ce152||undefined,_0x33f9c8=_0x4311ee?'explicit':_0xe1ec1f?_0x288d68(0x21a):_0x58762e?_0x288d68(0x23e):_0x4bb7c1?_0x288d68(0x240):_0x1ce152?_0x288d68(0x200):undefined,_0x4f442d=_0x1097d2['locale']||DEFAULT_CONFIG_VALUES[_0x288d68(0x1f7)],_0x4356c4=undefined,_0x58d05b=_0x1e7900['format']||env(_0x288d68(0x229))||_0x1097d2[_0x288d68(0x217)],_0x1a52fb=normalizeLegacyOutputFormat(_0x58d05b),_0x586ba9=env('PAGE_SIZE')||_0x1097d2[_0x288d68(0x216)],_0x165cc1=_0x586ba9?Number(_0x586ba9)||undefined:undefined,_0x471be1=_0x1097d2['riskLevel']||_0x1097d2[_0x288d68(0x1fd)],_0x51d03d=_0x471be1===_0x288d68(0x232)||_0x471be1===_0x288d68(0x1f8)||_0x471be1===_0x288d68(0x218)?_0x471be1:DEFAULT_CONFIG_VALUES[_0x288d68(0x1f6)],_0x106297=env('VERBOSE'),_0x3a79ae=_0x106297==='1'||_0x106297===_0x288d68(0x226);return{'appCode':typeof _0x1a5cdc===_0x288d68(0x23a)&&_0x1a5cdc[_0x288d68(0x239)]()?_0x1a5cdc['trim']():undefined,'appCodeSource':_0x33f9c8,'env':_0x5e1b12,'locale':_0x4f442d,'cookie':_0x4356c4,'accessKey':_0x394c81,'format':_0x1a52fb,'pageSize':_0x165cc1,'riskLevel':_0x51d03d,'verbose':_0x3a79ae,'defaultApp':_0x1d5fbe,'currentApp':typeof _0x471384===_0x288d68(0x23a)?_0x471384:undefined,'raw':_0x1097d2};}function env(_0x40e87c){return productEnv(_0x40e87c);}async function buildAuth(_0x119705){const _0x5558c7=a64_0x59ce73,_0x4cc76b='',_0x186001=!!_0x119705[_0x5558c7(0x223)];return{'cookie':_0x4cc76b,'isLoggedIn':_0x186001,async 'getOrLogin'(){if(_0x186001)return _0x4cc76b;throw CliErrors['authRequired']();}};}
@@ -1 +1 @@
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
+ (function(_0x185de4,_0x5c3e7f){const _0x394c67=a65_0x4b62,_0x3f9c10=_0x185de4();while(!![]){try{const _0xe63a7e=parseInt(_0x394c67(0x156))/0x1*(-parseInt(_0x394c67(0x14b))/0x2)+-parseInt(_0x394c67(0x122))/0x3*(-parseInt(_0x394c67(0x113))/0x4)+-parseInt(_0x394c67(0x12f))/0x5+-parseInt(_0x394c67(0x104))/0x6*(parseInt(_0x394c67(0x13e))/0x7)+parseInt(_0x394c67(0x103))/0x8+parseInt(_0x394c67(0x12a))/0x9*(parseInt(_0x394c67(0x121))/0xa)+-parseInt(_0x394c67(0x149))/0xb*(-parseInt(_0x394c67(0x137))/0xc);if(_0xe63a7e===_0x5c3e7f)break;else _0x3f9c10['push'](_0x3f9c10['shift']());}catch(_0x2acc7e){_0x3f9c10['push'](_0x3f9c10['shift']());}}}(a65_0x5be9,0x376b9));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(_0x568664){_activeAK=_0x568664||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x8011e9,_0x490a26={}){const _0x6a1f05=a65_0x4b62,{method:method='GET',body:_0x94f6ea,headers:headers={},timeout:timeout=0x7530}=_0x490a26,_0x488564=_activeAK,_0xd11bb7=getRuntimeDomain();if(!_0x488564)throw CliErrors[_0x6a1f05(0xf5)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x6a1f05(0x11b)]+'.');const _0x418297=''+_0xd11bb7+_0x8011e9,_0x4ec98b={'X-User-AK':_0x488564},_0x5cccc3=new AbortController(),_0x5261bd=setTimeout(()=>_0x5cccc3[_0x6a1f05(0x153)](),timeout);try{const _0x14fa92=await fetch(_0x418297,{'method':method,'headers':{'Content-Type':_0x6a1f05(0x13c),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],..._0x4ec98b,...headers},'body':_0x94f6ea?JSON[_0x6a1f05(0x14f)](_0x94f6ea):undefined,'signal':_0x5cccc3[_0x6a1f05(0x125)]});let _0x88a987;try{_0x88a987=await _0x14fa92[_0x6a1f05(0x127)]();}catch{throw CliErrors['apiError'](_0x6a1f05(0xf0)+_0x14fa92['status']+')',_0x14fa92[_0x6a1f05(0xfe)]>=0x190?_0x6a1f05(0xe5):undefined);}if(!_0x14fa92['ok']||_0x88a987[_0x6a1f05(0x13a)]===![])throw CliErrors[_0x6a1f05(0x152)](_0x88a987[_0x6a1f05(0x109)]||_0x88a987[_0x6a1f05(0x159)]||_0x6a1f05(0xfc)+_0x14fa92[_0x6a1f05(0xfe)],_0x88a987[_0x6a1f05(0x111)]?'API\x20error\x20code:\x20'+_0x88a987['errorCode']:undefined);return _0x88a987;}catch(_0x127bad){if(_0x127bad instanceof Error&&_0x127bad[_0x6a1f05(0x154)]==='AbortError')throw CliErrors[_0x6a1f05(0x152)]('Request\x20timeout:\x20'+_0x418297);throw _0x127bad;}finally{clearTimeout(_0x5261bd);}}async function apiBinaryRequest(_0x3c7c18,_0x535a5d={}){const _0x3a6a00=a65_0x4b62,{method:method=_0x3a6a00(0xe6),headers:headers={},timeout:timeout=0x7530}=_0x535a5d,_0x98a981=_activeAK,_0x4dfd81=getRuntimeDomain();if(!_0x98a981)throw CliErrors['authRequired'](_0x3a6a00(0xed)+PRODUCT_CONFIG[_0x3a6a00(0x11b)]+'.');const _0x114630=''+_0x4dfd81+_0x3c7c18,_0xb7fc69=new AbortController(),_0x4c007b=setTimeout(()=>_0xb7fc69[_0x3a6a00(0x153)](),timeout);try{const _0x2347b0=await fetch(_0x114630,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x3a6a00(0xff)],'X-User-AK':_0x98a981,...headers},'signal':_0xb7fc69['signal']});if(!_0x2347b0['ok']){let _0x345059;try{const _0x38445d=await _0x2347b0['json']();_0x345059=_0x38445d[_0x3a6a00(0x109)]||_0x38445d[_0x3a6a00(0x159)]||_0x38445d[_0x3a6a00(0x111)];}catch{_0x345059=await _0x2347b0[_0x3a6a00(0x11c)]()[_0x3a6a00(0x143)](()=>undefined);}throw CliErrors[_0x3a6a00(0x152)](_0x345059||'API\x20error:\x20'+_0x2347b0[_0x3a6a00(0xfe)],_0x3a6a00(0x124)+_0x114630);}return Buffer[_0x3a6a00(0xf3)](await _0x2347b0[_0x3a6a00(0x130)]());}catch(_0x15b79b){if(_0x15b79b instanceof Error&&_0x15b79b[_0x3a6a00(0x154)]===_0x3a6a00(0x132))throw CliErrors[_0x3a6a00(0x152)](_0x3a6a00(0x13d)+_0x114630);throw _0x15b79b;}finally{clearTimeout(_0x4c007b);}}async function toolboxRequest(_0x1c59b1,_0x3fa974,_0x4fadb1={}){const _0x205530=a65_0x4b62,{method:method=_0x205530(0xe6),headers:headers={},timeout:timeout=0x7530}=_0x4fadb1,_0x2cda85=_activeAK;if(!_0x2cda85)throw CliErrors[_0x205530(0xf5)](_0x205530(0xed)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x440b7f=getApiDomain()[_0x205530(0x10d)](/\/$/,''),_0x1fd470=new URL(_0x1c59b1,_0x440b7f+_0x205530(0xea));if(_0x3fa974)for(const [_0x2f0021,_0x177816]of Object[_0x205530(0x14c)](_0x3fa974)){_0x177816!==undefined&&_0x177816!==null&&_0x1fd470[_0x205530(0x114)][_0x205530(0x145)](_0x2f0021,String(_0x177816));}const _0x3c6062=new AbortController(),_0x34c28a=setTimeout(()=>_0x3c6062[_0x205530(0x153)](),timeout);try{const _0x1053ca=await fetch(_0x1fd470,{'method':method,'headers':{'Content-Type':_0x205530(0x13c),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x2cda85,...headers},'signal':_0x3c6062['signal']});let _0x1db308;try{_0x1db308=await _0x1053ca[_0x205530(0x127)]();}catch{throw CliErrors['apiError']('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x1053ca[_0x205530(0xfe)]+')',_0x1053ca[_0x205530(0xfe)]>=0x190?_0x205530(0xe5):undefined);}if(!_0x1053ca['ok']){const _0x2ba646=_0x1db308&&typeof _0x1db308===_0x205530(0xf1)?_0x1db308:{};throw CliErrors[_0x205530(0x152)](_0x2ba646[_0x205530(0x109)]||_0x2ba646[_0x205530(0x159)]||_0x205530(0xe4)+_0x1053ca[_0x205530(0xfe)],_0x2ba646['errorCode']?'Toolbox\x20error\x20code:\x20'+_0x2ba646[_0x205530(0x111)]:undefined);}if(_0x1db308&&typeof _0x1db308==='object'&&_0x205530(0x13a)in _0x1db308&&typeof _0x1db308[_0x205530(0x13a)]===_0x205530(0xf2)){const _0xdb9dcb=_0x1db308;if(!_0xdb9dcb[_0x205530(0x13a)])throw CliErrors[_0x205530(0x152)](_0xdb9dcb[_0x205530(0x109)]||_0xdb9dcb[_0x205530(0x159)]||_0x205530(0x112),_0xdb9dcb['errorCode']?_0x205530(0xf7)+_0xdb9dcb['errorCode']:undefined);return _0xdb9dcb[_0x205530(0x10c)];}return _0x1db308;}catch(_0x442a40){if(_0x442a40 instanceof Error&&_0x442a40['name']===_0x205530(0x132))throw CliErrors[_0x205530(0x152)](_0x205530(0x13d)+_0x1fd470[_0x205530(0x144)]());throw _0x442a40;}finally{clearTimeout(_0x34c28a);}}async function skillHubJsonRequest(_0x92564e,_0x523906={}){const _0x23bfa9=a65_0x4b62,{method:method=_0x23bfa9(0xe6),query:_0xd41ad6,body:_0x30ae26,headers:headers={},timeout:timeout=0x7530}=_0x523906,_0x1bd6ef=_activeAK;if(!_0x1bd6ef)throw CliErrors[_0x23bfa9(0xf5)](_0x23bfa9(0xed)+PRODUCT_CONFIG[_0x23bfa9(0x11b)]+'.');const _0x328525=getSkillHubDomain()[_0x23bfa9(0x10d)](/\/$/,''),_0x290474=new URL(_0x92564e,_0x328525+'/');if(_0xd41ad6)for(const [_0x1a0747,_0x3e8618]of Object[_0x23bfa9(0x14c)](_0xd41ad6)){_0x3e8618!==undefined&&_0x3e8618!==null&&_0x290474['searchParams'][_0x23bfa9(0x145)](_0x1a0747,String(_0x3e8618));}const _0x2ae4a0=new AbortController(),_0x219dc6=setTimeout(()=>_0x2ae4a0[_0x23bfa9(0x153)](),timeout);try{const _0x1ef8b3=await fetch(_0x290474[_0x23bfa9(0x144)](),{'method':method,'headers':{'Accept':_0x23bfa9(0x13c),'X-Invoke-Source':PRODUCT_CONFIG[_0x23bfa9(0xff)],'X-User-AK':_0x1bd6ef,...headers},'body':_0x30ae26,'signal':_0x2ae4a0[_0x23bfa9(0x125)]});let _0x36f7ab;try{_0x36f7ab=await _0x1ef8b3[_0x23bfa9(0x127)]();}catch{throw CliErrors[_0x23bfa9(0x152)](_0x23bfa9(0x12c)+_0x1ef8b3[_0x23bfa9(0xfe)]+')',_0x1ef8b3[_0x23bfa9(0xfe)]>=0x190?_0x23bfa9(0xe5):undefined);}const _0x31af68=!_0x1ef8b3['ok']||_0x36f7ab?.[_0x23bfa9(0x13a)]===![]||typeof _0x36f7ab?.[_0x23bfa9(0xe2)]===_0x23bfa9(0x118)&&_0x36f7ab[_0x23bfa9(0xe2)]>=0x190;if(_0x31af68)throw CliErrors[_0x23bfa9(0x152)](_0x36f7ab?.['errorMsg']||_0x36f7ab?.[_0x23bfa9(0x159)]||_0x36f7ab?.[_0x23bfa9(0x102)]||_0x23bfa9(0x146)+_0x1ef8b3[_0x23bfa9(0xfe)],_0x36f7ab?.[_0x23bfa9(0x111)]?_0x23bfa9(0x14d)+_0x36f7ab['errorCode']:undefined);return _0x36f7ab?.[_0x23bfa9(0x10c)]??_0x36f7ab;}catch(_0x12b12a){if(_0x12b12a instanceof Error&&_0x12b12a[_0x23bfa9(0x154)]==='AbortError')throw CliErrors['apiError']('Request\x20timeout:\x20'+_0x290474['toString']());throw _0x12b12a;}finally{clearTimeout(_0x219dc6);}}async function skillHubBinaryRequest(_0x35391d,_0x170f48={}){const _0x4021e8=a65_0x4b62,{query:_0x259fd6,headers:headers={},timeout:timeout=0x7530}=_0x170f48,_0x238097=_activeAK;if(!_0x238097)throw CliErrors['authRequired'](_0x4021e8(0xed)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x2e1042=getSkillHubDomain()[_0x4021e8(0x10d)](/\/$/,''),_0x176ebb=new URL(_0x35391d,_0x2e1042+'/');if(_0x259fd6)for(const [_0x3f8ce1,_0x48c01f]of Object[_0x4021e8(0x14c)](_0x259fd6)){_0x48c01f!==undefined&&_0x48c01f!==null&&_0x176ebb['searchParams'][_0x4021e8(0x145)](_0x3f8ce1,String(_0x48c01f));}const _0x24ef91=new AbortController(),_0x182f6e=setTimeout(()=>_0x24ef91['abort'](),timeout);try{const _0x427005=await fetch(_0x176ebb[_0x4021e8(0x144)](),{'method':_0x4021e8(0xe6),'headers':{'Accept':_0x4021e8(0x11f),'X-Invoke-Source':PRODUCT_CONFIG[_0x4021e8(0xff)],'X-User-AK':_0x238097,...headers},'signal':_0x24ef91[_0x4021e8(0x125)]});if(!_0x427005['ok']){let _0x5f3f3f;try{const _0x20d3e7=await _0x427005[_0x4021e8(0x127)]();_0x5f3f3f=_0x20d3e7[_0x4021e8(0x109)]||_0x20d3e7[_0x4021e8(0x159)]||_0x20d3e7[_0x4021e8(0x102)]||_0x20d3e7['errorCode'];}catch{_0x5f3f3f=await _0x427005['text']()['catch'](()=>undefined);}throw CliErrors[_0x4021e8(0x152)](_0x5f3f3f||'SkillHub\x20API\x20error:\x20'+_0x427005[_0x4021e8(0xfe)],_0x4021e8(0x124)+_0x176ebb[_0x4021e8(0x144)]());}return Buffer[_0x4021e8(0xf3)](await _0x427005['arrayBuffer']());}catch(_0x3f3e6c){if(_0x3f3e6c instanceof Error&&_0x3f3e6c[_0x4021e8(0x154)]===_0x4021e8(0x132))throw CliErrors[_0x4021e8(0x152)]('Request\x20timeout:\x20'+_0x176ebb[_0x4021e8(0x144)]());throw _0x3f3e6c;}finally{clearTimeout(_0x182f6e);}}export async function getBffScriptInfo(_0x5a6afe){const _0x6bb836=a65_0x4b62,_0x385bfd=await apiRequest(_0x6bb836(0x123)+_0x5a6afe);if(!_0x385bfd[_0x6bb836(0x10c)])throw CliErrors['validation']('BFF\x20script\x20not\x20found:\x20id='+_0x5a6afe);return _0x385bfd[_0x6bb836(0x10c)];}export async function getSqlQueryInfo(_0x72522,_0x3c5c38){const _0x4ae97d=a65_0x4b62,_0x4b49b3=await apiRequest(_0x4ae97d(0x108),{'method':'POST','body':{'appCode':_0x72522,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x3c5c38}}),_0x145f5b=_0x4b49b3[_0x4ae97d(0x10c)],_0xcf3aa0=_0x145f5b&&typeof _0x145f5b===_0x4ae97d(0xf1)&&'tableData'in _0x145f5b?_0x145f5b[_0x4ae97d(0x107)]?.[0x0]:_0x145f5b&&typeof _0x145f5b===_0x4ae97d(0xf1)&&_0x4ae97d(0x158)in _0x145f5b?_0x145f5b:undefined;if(!_0xcf3aa0)throw CliErrors[_0x4ae97d(0x13f)](_0x4ae97d(0x14e)+_0x3c5c38);return _0xcf3aa0;}function isRemoteAppItem(_0x26799f){const _0x4401f3=a65_0x4b62;return!!_0x26799f&&typeof _0x26799f===_0x4401f3(0xf1)&&typeof _0x26799f['appCode']===_0x4401f3(0x134)&&typeof _0x26799f[_0x4401f3(0x129)]==='string';}function extractRemoteAppItems(_0x16ce59){const _0x5aacc3=a65_0x4b62;if(Array[_0x5aacc3(0x12b)](_0x16ce59))return _0x16ce59[_0x5aacc3(0x117)](isRemoteAppItem);if(!_0x16ce59||typeof _0x16ce59!==_0x5aacc3(0xf1))throw CliErrors['apiError'](_0x5aacc3(0x141));const _0x448658=_0x16ce59;if(Array[_0x5aacc3(0x12b)](_0x448658[_0x5aacc3(0x107)]))return _0x448658[_0x5aacc3(0x107)][_0x5aacc3(0x117)](isRemoteAppItem);if(_0x448658[_0x5aacc3(0x10c)]&&typeof _0x448658['data']==='object'){const _0x4ebee7=_0x448658[_0x5aacc3(0x10c)];if(Array[_0x5aacc3(0x12b)](_0x4ebee7[_0x5aacc3(0x107)]))return _0x4ebee7[_0x5aacc3(0x107)][_0x5aacc3(0x117)](isRemoteAppItem);}throw CliErrors[_0x5aacc3(0x152)]('Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.');}export async function getMyApps(){const _0x1b2573=a65_0x4b62,_0x56a7d9=await apiRequest(_0x1b2573(0x142));return extractRemoteAppItems(_0x56a7d9[_0x1b2573(0x10c)]);}function a65_0x5be9(){const _0x1cf2c6=['391625VSHjYW','arrayBuffer','visibility','AbortError','trim','string','slug','skillCode','84tmEWcz','/download','skillName','success','/client/dataset/query?','application/json','Request\x20timeout:\x20','623jakmHU','validation','/update','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','/client/app/my-apps','catch','toString','set','SkillHub\x20API\x20error:\x20','headlineVersion','source','221771ffvDiM','/client/artifact/create','16364UtBqJS','entries','SkillHub\x20error\x20code:\x20','SQL\x20query\x20not\x20found:\x20','stringify','values','/client/artifact/list?','apiError','abort','name','favorite','52WgJiAh','publishedVersion','sqlCode','message','PRIVATE','version','displayName','code','namespace','Toolbox\x20API\x20error:\x20','Check\x20your\x20credentials\x20and\x20try\x20again.','GET','/client/runtime-bff/personal/list?appCode=','scope','Personal\x20BFF\x20not\x20found:\x20id=','/api/node-toolbox/','POST','undefined','Configure\x20accessKey\x20in\x20','artifactType','packageBase64','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','object','boolean','from','/client/knowledge-base/personal/create','authRequired','skill','Toolbox\x20error\x20code:\x20','Knowledge-base\x20entry\x20not\x20found:\x20id=','topK','/client/user/loginUserInfo','appCode','API\x20error:\x20','api-doc-generator','status','invokeSource','Missing\x20Skill\x20package\x20payload.','/publish','msg','2979280sRTzcN','15222rUdHsA','markdown','test','tableData','/client/sql/query','errorMsg','personal','/client/knowledge-base/search','data','replace','company','/client/runtime-bff/personal/create','/client/dataset/list','errorCode','Toolbox\x20API\x20error','20LfmpWv','searchParams','/api/cli/v1/skills/','?appCode=','filter','number','application/zip','/client/runtime-bff/personal/','newConfigFileName','text','items','.zip','application/octet-stream','/client/artifact/','10SFfmJi','132309qbdzYN','/client/bff/query/','Download\x20failed:\x20','signal','map','json','query','appName','2002779WUzbbe','isArray','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','tags','effective'];a65_0x5be9=function(){return _0x1cf2c6;};return a65_0x5be9();}export async function getLoginUserInfo(){const _0x1d9c1e=a65_0x4b62,_0x4d4e91=await apiRequest(_0x1d9c1e(0xfa));if(!_0x4d4e91[_0x1d9c1e(0x10c)]||typeof _0x4d4e91[_0x1d9c1e(0x10c)]!==_0x1d9c1e(0xf1)||Array[_0x1d9c1e(0x12b)](_0x4d4e91[_0x1d9c1e(0x10c)]))throw CliErrors[_0x1d9c1e(0x152)]('Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.');return _0x4d4e91[_0x1d9c1e(0x10c)];}export async function listDatasets(_0x5a8014,_0x4524ec){const _0x31d654=a65_0x4b62,_0x4c1660=await apiRequest(_0x31d654(0x110),{'method':_0x31d654(0xeb),'body':{'appCode':_0x5a8014,..._0x4524ec?.[_0x31d654(0xe2)]&&{'code':_0x4524ec[_0x31d654(0xe2)]},..._0x4524ec?.['name']&&{'name':_0x4524ec[_0x31d654(0x154)]}}});return extractList(_0x4c1660[_0x31d654(0x10c)]);}export async function getDatasetDetail(_0x292a65){const _0x22f33d=a65_0x4b62,_0x2f3dae=/^\d+$/[_0x22f33d(0x106)](_0x292a65)?'id':_0x22f33d(0xe2),_0x56d3d9=await apiRequest(_0x22f33d(0x13b)+_0x2f3dae+'='+_0x292a65);return _0x56d3d9[_0x22f33d(0x10c)];}function a65_0x4b62(_0x10c96f,_0x1e5569){_0x10c96f=_0x10c96f-0xdf;const _0x5be97c=a65_0x5be9();let _0x4b6209=_0x5be97c[_0x10c96f];return _0x4b6209;}export async function getDatasetSdkUsageDoc(_0x14448f,_0x518b87){const _0x48e1e6=a65_0x4b62,_0x2e118b=await toolboxRequest(_0x48e1e6(0xfd),{'datasetCode':_0x14448f,'appCode':_0x518b87});return typeof _0x2e118b?.[_0x48e1e6(0x105)]===_0x48e1e6(0x134)?_0x2e118b[_0x48e1e6(0x105)]:'';}export async function listRuntimeArtifacts(_0x40b360,_0x36522d){const _0x37eb65=a65_0x4b62,_0x20a5ff=new URLSearchParams({'appCode':_0x40b360});if(_0x36522d?.[_0x37eb65(0xee)])_0x20a5ff[_0x37eb65(0x145)](_0x37eb65(0xee),_0x36522d[_0x37eb65(0xee)]);if(_0x36522d?.[_0x37eb65(0x148)])_0x20a5ff[_0x37eb65(0x145)](_0x37eb65(0x148),_0x36522d['source']);if(_0x36522d?.[_0x37eb65(0x155)]!==undefined)_0x20a5ff[_0x37eb65(0x145)](_0x37eb65(0x155),String(_0x36522d[_0x37eb65(0x155)]));const _0x1aa3da=await apiRequest(_0x37eb65(0x151)+_0x20a5ff[_0x37eb65(0x144)]());return Array['isArray'](_0x1aa3da['data'])?_0x1aa3da[_0x37eb65(0x10c)]:[];}export async function getRuntimeArtifact(_0x366833,_0x633d34){const _0x1131fb=a65_0x4b62,_0x1c375d=await apiRequest(_0x1131fb(0x120)+_0x366833+_0x1131fb(0x116)+encodeURIComponent(_0x633d34));if(!_0x1c375d[_0x1131fb(0x10c)])throw CliErrors[_0x1131fb(0x13f)]('Artifact\x20not\x20found:\x20id='+_0x366833);return _0x1c375d[_0x1131fb(0x10c)];}export async function createRuntimeArtifact(_0x1d9cd8,_0x406862){const _0x1b43f2=a65_0x4b62,_0x19f5a4=await apiRequest(_0x1b43f2(0x14a),{'method':_0x1b43f2(0xeb),'body':{'appCode':_0x1d9cd8,..._0x406862}});return _0x19f5a4[_0x1b43f2(0x10c)];}export async function updateRuntimeArtifact(_0x1308c1,_0x55c160,_0x5cd1b6){const _0x52eb9e=a65_0x4b62,_0x491d1f=await apiRequest('/client/artifact/'+_0x1308c1+_0x52eb9e(0x140),{'method':'POST','body':{'appCode':_0x55c160,..._0x5cd1b6}});return _0x491d1f['data'];}export async function listPersonalBffs(_0x2cff1c){const _0x2130dc=a65_0x4b62,_0x453f18=await apiRequest(_0x2130dc(0xe7)+encodeURIComponent(_0x2cff1c));return Array[_0x2130dc(0x12b)](_0x453f18[_0x2130dc(0x10c)])?_0x453f18[_0x2130dc(0x10c)]:[];}export async function getPersonalBff(_0x2dcbac,_0x371783){const _0x51826a=a65_0x4b62,_0x269d29=await apiRequest(_0x51826a(0x11a)+_0x2dcbac+_0x51826a(0x116)+encodeURIComponent(_0x371783));if(!_0x269d29[_0x51826a(0x10c)])throw CliErrors[_0x51826a(0x13f)](_0x51826a(0xe9)+_0x2dcbac);return _0x269d29[_0x51826a(0x10c)];}export async function createPersonalBff(_0x5977e7,_0x4f67c9){const _0x622098=a65_0x4b62,_0x224133=await apiRequest(_0x622098(0x10f),{'method':'POST','body':{'appCode':_0x5977e7,..._0x4f67c9}});return _0x224133[_0x622098(0x10c)];}export async function updatePersonalBff(_0x1a3cc7,_0x1bf020,_0x15acf9){const _0x535c0e=a65_0x4b62,_0x541753=await apiRequest(_0x535c0e(0x11a)+_0x1a3cc7+'/update',{'method':_0x535c0e(0xeb),'body':{'appCode':_0x1bf020,..._0x15acf9}});return _0x541753[_0x535c0e(0x10c)];}export async function executePersonalBff(_0x4ae5ae,_0x170340,_0x610ac9){const _0x1cd8bb=a65_0x4b62,_0xf8cbe3=await apiRequest(_0x1cd8bb(0x11a)+_0x4ae5ae+'/execute?appCode='+encodeURIComponent(_0x170340),{'method':_0x1cd8bb(0xeb),'body':_0x610ac9});return _0xf8cbe3[_0x1cd8bb(0x10c)];}export async function listPersonalKnowledgeBaseItems(_0x38ce6f){const _0x3aa799=a65_0x4b62,_0x4a2006=await apiRequest('/client/knowledge-base/personal/list?appCode='+encodeURIComponent(_0x38ce6f));return Array[_0x3aa799(0x12b)](_0x4a2006[_0x3aa799(0x10c)])?_0x4a2006[_0x3aa799(0x10c)]:[];}export async function getPersonalKnowledgeBaseItem(_0x12bb8f,_0x424b09){const _0x46d38e=a65_0x4b62,_0x54b9f6=await apiRequest('/client/knowledge-base/personal/'+_0x12bb8f+_0x46d38e(0x116)+encodeURIComponent(_0x424b09));if(!_0x54b9f6[_0x46d38e(0x10c)])throw CliErrors['validation'](_0x46d38e(0xf8)+_0x12bb8f);return _0x54b9f6[_0x46d38e(0x10c)];}export async function createPersonalKnowledgeBaseItem(_0x3acbb4,_0x5ec569){const _0x276c19=a65_0x4b62,_0x5a5dbb=await apiRequest(_0x276c19(0xf4),{'method':_0x276c19(0xeb),'body':{'appCode':_0x3acbb4,..._0x5ec569}});return _0x5a5dbb[_0x276c19(0x10c)];}export async function updatePersonalKnowledgeBaseItem(_0x4a2d3d,_0x53ef9f,_0x35c1ba){const _0x2da741=a65_0x4b62,_0x5dc78e=await apiRequest('/client/knowledge-base/personal/'+_0x4a2d3d+_0x2da741(0x140),{'method':_0x2da741(0xeb),'body':{'appCode':_0x53ef9f,..._0x35c1ba}});return _0x5dc78e[_0x2da741(0x10c)];}export async function searchKnowledgeBase(_0x4c3700,_0x164816){const _0x451a38=a65_0x4b62,_0x2b58d6=await apiRequest(_0x451a38(0x10b),{'method':_0x451a38(0xeb),'body':{'appCode':_0x4c3700,'query':_0x164816[_0x451a38(0x128)],..._0x164816[_0x451a38(0xf9)]!==undefined?{'topK':_0x164816[_0x451a38(0xf9)]}:{}}});return Array[_0x451a38(0x12b)](_0x2b58d6[_0x451a38(0x10c)])?_0x2b58d6['data']:[];}export async function listRuntimeSkills(_0x18826b){const _0x7cbe4d=a65_0x4b62,_0x519902=await skillHubJsonRequest('/api/runtime/v1/namespaces/'+encodeURIComponent(_0x18826b[_0x7cbe4d(0xfb)])+'/skills',{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x18826b[_0x7cbe4d(0xfb)],_0x519902,_0x18826b[_0x7cbe4d(0xe8)]??'all',_0x18826b[_0x7cbe4d(0xe2)]);}export async function listPersonalRuntimeSkills(_0x5f5bc8){const _0x14c2ce=a65_0x4b62;return(await listRuntimeSkills({'appCode':_0x5f5bc8,'scope':'personal'}))[_0x14c2ce(0x10a)];}export async function listCompanyRuntimeSkills(_0x1c31cc){const _0x213ac5=a65_0x4b62;return(await listRuntimeSkills({'appCode':_0x1c31cc,'scope':_0x213ac5(0x10e)}))[_0x213ac5(0x10e)];}export async function listVisibleRuntimeSkills(_0x1f3782){const _0xb95b51=a65_0x4b62;return(await listRuntimeSkills({'appCode':_0x1f3782,'scope':'all'}))[_0xb95b51(0x12e)];}export async function createPersonalRuntimeSkill(_0x5e5c2a,_0x277bde){return publishRuntimeSkill(_0x5e5c2a,_0x277bde);}export async function updatePersonalRuntimeSkill(_0x323ea3,_0x5b6399,_0x5cbce5){const _0xc88bed=a65_0x4b62;return publishRuntimeSkill(_0x5b6399,{..._0x5cbce5,'skillCode':_0x5cbce5[_0xc88bed(0x136)]??_0x323ea3});}export async function downloadRuntimeSkillPackage(_0x5f2b52,_0x16caec,_0x51b4e3,_0x23dbeb){const _0x2f9974=a65_0x4b62;void _0x5f2b52;const _0x181f1a=_0x23dbeb?_0x2f9974(0x115)+encodeURIComponent(_0x51b4e3)+'/'+encodeURIComponent(_0x16caec)+'/versions/'+encodeURIComponent(_0x23dbeb)+_0x2f9974(0x138):_0x2f9974(0x115)+encodeURIComponent(_0x51b4e3)+'/'+encodeURIComponent(_0x16caec)+_0x2f9974(0x138);return skillHubBinaryRequest(_0x181f1a);}async function publishRuntimeSkill(_0xf9ae6d,_0x433c48){const _0xfbfe60=a65_0x4b62,_0x4d676f=new FormData();_0x4d676f[_0xfbfe60(0x145)]('file',runtimeSkillPackageFile(_0x433c48)),_0x4d676f['set'](_0xfbfe60(0x131),'PRIVATE');const _0x4c14e4=await skillHubJsonRequest(_0xfbfe60(0x115)+encodeURIComponent(_0xf9ae6d)+_0xfbfe60(0x101),{'method':_0xfbfe60(0xeb),'body':_0x4d676f});return{'appCode':_0x4c14e4[_0xfbfe60(0xe3)]??_0xf9ae6d,'skillCode':_0x4c14e4[_0xfbfe60(0x135)]??_0x433c48[_0xfbfe60(0x136)]??'','skillName':_0x433c48[_0xfbfe60(0x139)]??_0x4c14e4[_0xfbfe60(0x135)]??_0x433c48[_0xfbfe60(0x136)],'description':_0x433c48['description'],'scope':skillHubVisibilityToScope(_0x4c14e4[_0xfbfe60(0x131)])??_0xfbfe60(0x10a),'version':_0x4c14e4['version']??_0x433c48[_0xfbfe60(0xe0)],'tags':_0x433c48[_0xfbfe60(0x12d)],'content':_0x433c48['content']};}function runtimeSkillPackageFile(_0x5337a8){const _0x5d178e=a65_0x4b62;if(!_0x5337a8[_0x5d178e(0xef)])throw CliErrors[_0x5d178e(0x13f)](_0x5d178e(0x100));const _0x6a900f=Buffer[_0x5d178e(0xf3)](_0x5337a8[_0x5d178e(0xef)],'base64'),_0x47f089=new Blob([_0x6a900f],{'type':_0x5d178e(0x119)}),_0x1896c0=(_0x5337a8[_0x5d178e(0x136)]||_0x5d178e(0xf6))+_0x5d178e(0x11e);if(typeof File!==_0x5d178e(0xec))return new File([_0x47f089],_0x1896c0,{'type':_0x5d178e(0x119)});return _0x47f089;}function normalizeSkillHubRuntimeListResponse(_0xa08e7c,_0x43c2cb,_0xfde757,_0x4f941a){const _0x20c56e=a65_0x4b62,_0x12df8c=Array[_0x20c56e(0x12b)](_0x43c2cb)?_0x43c2cb:Array['isArray'](_0x43c2cb?.[_0x20c56e(0x11d)])?_0x43c2cb[_0x20c56e(0x11d)]:[],_0x23785e=_0x4f941a?.[_0x20c56e(0x133)](),_0x39c5=_0x12df8c[_0x20c56e(0x117)](_0x505398=>!_0x23785e||_0x505398[_0x20c56e(0x135)]===_0x23785e)[_0x20c56e(0x126)](skillHubRuntimeItemToRuntimeSkill)['filter'](_0x5c4ff2=>Boolean(_0x5c4ff2)),_0x578601=_0x39c5[_0x20c56e(0x117)](_0x40bf73=>_0x40bf73['scope']===_0x20c56e(0x10a)),_0x118eb6=_0x39c5[_0x20c56e(0x117)](_0x1b56b0=>_0x1b56b0[_0x20c56e(0xe8)]===_0x20c56e(0x10e));return{'appCode':_0xa08e7c,'personal':_0xfde757===_0x20c56e(0x10e)?[]:_0x578601,'company':_0xfde757===_0x20c56e(0x10a)?[]:_0x118eb6,'effective':buildEffectiveRuntimeSkills(_0x578601,_0x118eb6,_0xfde757)};}function skillHubRuntimeItemToRuntimeSkill(_0x3d35f7){const _0x2a5abb=a65_0x4b62,_0x2b088b=_0x3d35f7['slug']?.[_0x2a5abb(0x133)](),_0x5a890f=skillHubVisibilityToScope(_0x3d35f7[_0x2a5abb(0x131)]);if(!_0x2b088b||!_0x5a890f)return undefined;return{'id':_0x3d35f7['id'],'appCode':_0x3d35f7['namespace'],'skillCode':_0x2b088b,'skillName':_0x3d35f7[_0x2a5abb(0xe1)]??_0x2b088b,'description':_0x3d35f7['summary'],'scope':_0x5a890f,'version':skillHubRuntimeItemVersion(_0x3d35f7),'status':_0x3d35f7[_0x2a5abb(0xfe)]};}function skillHubVisibilityToScope(_0x2c2ea4){const _0xcf9485=a65_0x4b62;if(_0x2c2ea4===_0xcf9485(0xdf))return'personal';if(_0x2c2ea4==='NAMESPACE_ONLY')return _0xcf9485(0x10e);return undefined;}function skillHubRuntimeItemVersion(_0x7e882){const _0x7ae191=a65_0x4b62;return _0x7e882[_0x7ae191(0x157)]?.[_0x7ae191(0xe0)]??_0x7e882[_0x7ae191(0x147)]?.[_0x7ae191(0xe0)]??_0x7e882['ownerPreviewVersion']?.[_0x7ae191(0xe0)];}function buildEffectiveRuntimeSkills(_0x2ffc07,_0x510afc,_0x1e14e1){const _0x264f6d=a65_0x4b62;if(_0x1e14e1==='personal')return _0x2ffc07;if(_0x1e14e1===_0x264f6d(0x10e))return _0x510afc;const _0x55ffb6=new Map();for(const _0x56c7ec of _0x510afc){_0x55ffb6['set'](_0x56c7ec[_0x264f6d(0x136)],_0x56c7ec);}for(const _0x225096 of _0x2ffc07){_0x55ffb6[_0x264f6d(0x145)](_0x225096[_0x264f6d(0x136)],_0x225096);}return Array[_0x264f6d(0xf3)](_0x55ffb6[_0x264f6d(0x150)]());}function normalizeRuntimeSkillListResponse(_0x202ea0,_0xb2935a){const _0x5ec275=a65_0x4b62;if(Array[_0x5ec275(0x12b)](_0xb2935a)){const _0x367c82=_0xb2935a[_0x5ec275(0x117)](_0x40e314=>_0x40e314[_0x5ec275(0xe8)]===_0x5ec275(0x10a)),_0x4a98f8=_0xb2935a['filter'](_0xf28388=>_0xf28388[_0x5ec275(0xe8)]===_0x5ec275(0x10e));return{'appCode':_0x202ea0,'personal':_0x367c82,'company':_0x4a98f8,'effective':[..._0x4a98f8,..._0x367c82]};}return{'appCode':_0xb2935a?.[_0x5ec275(0xfb)]??_0x202ea0,'personal':Array['isArray'](_0xb2935a?.['personal'])?_0xb2935a[_0x5ec275(0x10a)]:[],'company':Array[_0x5ec275(0x12b)](_0xb2935a?.[_0x5ec275(0x10e)])?_0xb2935a[_0x5ec275(0x10e)]:[],'effective':Array[_0x5ec275(0x12b)](_0xb2935a?.['effective'])?_0xb2935a[_0x5ec275(0x12e)]:[]};}
@@ -1 +1 @@
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
+ function a66_0x58c9(_0x24f51c,_0xafce4a){_0x24f51c=_0x24f51c-0xca;const _0x38e34e=a66_0x38e3();let _0x58c936=_0x38e34e[_0x24f51c];return _0x58c936;}function a66_0x38e3(){const _0x1d59c6=['dbName','8091528ocplOb','entries','1365856hEJgET','501090RamulK','dbId','dbtableConfig','map','set','12TmanaC','12kGXgCJ','has','44910018bLUdtT','db-','6694744bYiLjU','2006152mmmKmn','3515830pbPRcZ'];a66_0x38e3=function(){return _0x1d59c6;};return a66_0x38e3();}(function(_0x29107c,_0x1eb9e5){const _0x2a850e=a66_0x58c9,_0x3803e3=_0x29107c();while(!![]){try{const _0xfca8b8=-parseInt(_0x2a850e(0xd7))/0x1+parseInt(_0x2a850e(0xcd))/0x2*(parseInt(_0x2a850e(0xd8))/0x3)+-parseInt(_0x2a850e(0xd2))/0x4+parseInt(_0x2a850e(0xd3))/0x5*(-parseInt(_0x2a850e(0xcc))/0x6)+-parseInt(_0x2a850e(0xd1))/0x7+-parseInt(_0x2a850e(0xd5))/0x8+parseInt(_0x2a850e(0xcf))/0x9;if(_0xfca8b8===_0x1eb9e5)break;else _0x3803e3['push'](_0x3803e3['shift']());}catch(_0x14e78b){_0x3803e3['push'](_0x3803e3['shift']());}}}(a66_0x38e3,0xb741f));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x3c08a0){const _0xefc38c=a66_0x58c9;if(cache[_0xefc38c(0xce)](_0x3c08a0))return cache['get'](_0x3c08a0);const _0x24786c=await listDatasets(_0x3c08a0),_0x335e87=new Map();for(const _0x10a804 of _0x24786c){const _0x27dd57=_0x10a804[_0xefc38c(0xda)];_0x27dd57?.[_0xefc38c(0xd9)]!=null&&_0x335e87[_0xefc38c(0xcb)](_0x27dd57['dbId'],_0x27dd57['dbName']??_0xefc38c(0xd0)+_0x27dd57[_0xefc38c(0xd9)]);}const _0x5e8b93=[..._0x335e87[_0xefc38c(0xd6)]()][_0xefc38c(0xca)](([_0x3abe3f,_0x5528f7])=>({'dbId':_0x3abe3f,'dbName':_0x5528f7}));return cache[_0xefc38c(0xcb)](_0x3c08a0,_0x5e8b93),_0x5e8b93;}export async function getDbName(_0x284581,_0x37576a){const _0x1789fa=a66_0x58c9;try{const _0x22459a=await listDatabases(_0x284581);return _0x22459a['find'](_0xeb03d9=>_0xeb03d9['dbId']===_0x37576a)?.[_0x1789fa(0xd4)];}catch{return undefined;}}
@@ -1 +1 @@
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});}
1
+ (function(_0x363d2e,_0x1cf42c){const _0x146862=a67_0x486b,_0x34250c=_0x363d2e();while(!![]){try{const _0x53e68e=-parseInt(_0x146862(0x1d8))/0x1+parseInt(_0x146862(0x1cc))/0x2+parseInt(_0x146862(0x1f0))/0x3*(-parseInt(_0x146862(0x1d2))/0x4)+parseInt(_0x146862(0x1e0))/0x5*(-parseInt(_0x146862(0x1c8))/0x6)+parseInt(_0x146862(0x1d7))/0x7+parseInt(_0x146862(0x1e2))/0x8+-parseInt(_0x146862(0x1de))/0x9*(-parseInt(_0x146862(0x1d3))/0xa);if(_0x53e68e===_0x1cf42c)break;else _0x34250c['push'](_0x34250c['shift']());}catch(_0x23946f){_0x34250c['push'](_0x34250c['shift']());}}}(a67_0x2683,0x2e4ce));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';function a67_0x486b(_0xb1bdec,_0x4c93ba){_0xb1bdec=_0xb1bdec-0x1c7;const _0x2683c9=a67_0x2683();let _0x486bbd=_0x2683c9[_0xb1bdec];return _0x486bbd;}import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;function a67_0x2683(){const _0x4edba4=['35BoZPlA','execute','1342408jLgKTK','delete','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','aggregate','validation','batchCreate','models','isArray','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','\x22.\x20','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','bff','function','3EhNksL','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','315324UyqUPs','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','data\x20aggregate\x20--params.aggregate[','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','356578CvHeCg','trim',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','update','map','field','1151412zMyLgD','70lPvPhC','appCode','getOne','string','178430HIfelq','55858GyEEiD','sql','dataset_','invokeSource','accessKey','authMode','680985KEhKoP','object'];a67_0x2683=function(){return _0x4edba4;};return a67_0x2683();}export function initSdkClient(_0x14620c){const _0x44b97f=a67_0x486b;_client=createClient({'appCode':_0x14620c[_0x44b97f(0x1d4)],'env':_0x14620c['env'],'authMode':_0x14620c[_0x44b97f(0x1dd)],..._0x14620c[_0x44b97f(0x1dc)]?{'accessKey':_0x14620c[_0x44b97f(0x1dc)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x44b97f(0x1db)]}}});}function ensureClient(){const _0x20d306=a67_0x486b;if(!_client)throw new Error(_0x20d306(0x1ed));return _client;}function normalizeAggregateParams(_0x5c2fe6){const _0x1ca5ee=a67_0x486b,_0xc70c84=_0x5c2fe6['aggregate'];if(_0xc70c84===undefined)return _0x5c2fe6;if(!Array[_0x1ca5ee(0x1e9)](_0xc70c84))throw CliErrors[_0x1ca5ee(0x1e6)](_0x1ca5ee(0x1e4));return{..._0x5c2fe6,'aggregate':_0xc70c84[_0x1ca5ee(0x1d0)]((_0x3a3f47,_0x2fb75d)=>{const _0x2dce45=_0x1ca5ee;if(!_0x3a3f47||typeof _0x3a3f47!==_0x2dce45(0x1df)||Array[_0x2dce45(0x1e9)](_0x3a3f47))throw CliErrors[_0x2dce45(0x1e6)](_0x2dce45(0x1ca)+_0x2fb75d+']\x20must\x20be\x20an\x20object.');const _0x223620=_0x3a3f47['column']??_0x3a3f47[_0x2dce45(0x1d1)];if(typeof _0x223620!==_0x2dce45(0x1d6)||_0x223620[_0x2dce45(0x1cd)]()==='')throw CliErrors['validation']('data\x20aggregate\x20--params.aggregate['+_0x2fb75d+_0x2dce45(0x1ce));const _0x581756={..._0x3a3f47,'column':_0x223620};return delete _0x581756[_0x2dce45(0x1d1)],_0x581756;})};}export async function executeData(_0x560d88,_0x585403,_0x4ad78e){const _0x16edd6=a67_0x486b,_0x15973f=ensureClient(),_0x567c7f=_0x16edd6(0x1da)+_0x560d88,_0xb7c2d5=_0x15973f[_0x16edd6(0x1e8)][_0x567c7f];if(!_0xb7c2d5||typeof _0xb7c2d5[_0x585403]!==_0x16edd6(0x1ef))throw new Error(_0x16edd6(0x1c9)+_0x585403+_0x16edd6(0x1ec)+_0x16edd6(0x1cb));if(_0x585403===_0x16edd6(0x1e7))return _0xb7c2d5[_0x16edd6(0x1e7)](parseBatchCreateItemsFromParams(_0x4ad78e));const _0x5494e6=_0x4ad78e!==undefined&&_0x4ad78e!==null&&!Array[_0x16edd6(0x1e9)](_0x4ad78e)?_0x4ad78e:{};switch(_0x585403){case _0x16edd6(0x1d5):{const _0x1c97e6=_0x5494e6['id'];if(_0x1c97e6===undefined||_0x1c97e6===null)throw new Error(_0x16edd6(0x1eb));return _0xb7c2d5[_0x16edd6(0x1d5)](_0x1c97e6);}case _0x16edd6(0x1cf):{const {id:_0x1e4530,..._0x9a09b8}=_0x5494e6;if(_0x1e4530===undefined||_0x1e4530===null)throw new Error(_0x16edd6(0x1ea));return _0xb7c2d5['update'](_0x1e4530,_0x9a09b8);}case _0x16edd6(0x1e3):{const _0x167109=_0x5494e6['id'];if(_0x167109===undefined||_0x167109===null)throw new Error(_0x16edd6(0x1c7));return _0xb7c2d5[_0x16edd6(0x1e3)](_0x167109);}case _0x16edd6(0x1e5):return _0xb7c2d5[_0x16edd6(0x1e5)](normalizeAggregateParams(_0x5494e6));default:return _0xb7c2d5[_0x585403](_0x5494e6);}}export async function executeSdkSql(_0x59ccd0,_0x21cae7){const _0x64514=a67_0x486b,_0x18178c=ensureClient();return _0x18178c[_0x64514(0x1d9)]['execute']({'sqlCode':_0x59ccd0,'params':_0x21cae7});}export async function executeSdkBff(_0x2dddc4,_0x501f82){const _0x6b6186=a67_0x486b,_0x38691d=ensureClient();return _0x38691d[_0x6b6186(0x1ee)][_0x6b6186(0x1e1)]({'scriptName':_0x2dddc4,'params':_0x501f82});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
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
+ const a68_0x886e04=a68_0x3c9b;(function(_0x56fb7a,_0x561f35){const _0x533991=a68_0x3c9b,_0x1e04fa=_0x56fb7a();while(!![]){try{const _0x310902=parseInt(_0x533991(0xab))/0x1*(-parseInt(_0x533991(0xad))/0x2)+parseInt(_0x533991(0xa2))/0x3+-parseInt(_0x533991(0xac))/0x4*(parseInt(_0x533991(0xb0))/0x5)+parseInt(_0x533991(0xa5))/0x6*(-parseInt(_0x533991(0xaf))/0x7)+-parseInt(_0x533991(0xa3))/0x8*(parseInt(_0x533991(0xa9))/0x9)+parseInt(_0x533991(0xaa))/0xa+parseInt(_0x533991(0xa4))/0xb;if(_0x310902===_0x561f35)break;else _0x1e04fa['push'](_0x1e04fa['shift']());}catch(_0xad3793){_0x1e04fa['push'](_0x1e04fa['shift']());}}}(a68_0x59f7,0x7e091));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a68_0x3c9b(_0xa09636,_0x2d31dd){_0xa09636=_0xa09636-0xa2;const _0x59f792=a68_0x59f7();let _0x3c9b13=_0x59f792[_0xa09636];return _0x3c9b13;}function a68_0x59f7(){const _0x2fa98d=['newConfigFileName','9VCMyzJ','1455690fPdwAh','7VzIuKq','3329536fNHJls','71762LCOMuo','\x20file.','413cAQlqD','5XdBEgm','\x20auth\x20login`.','283170YvgNkO','7802936hGavdt','36751352SSgxmN','102288FnZDHP','Configure\x20accessKey\x20in\x20','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20'];a68_0x59f7=function(){return _0x2fa98d;};return a68_0x59f7();}import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a68_0x886e04(0xa6)+PRODUCT_CONFIG['newConfigFileName']+'\x20or\x20run\x20`'+CLI_BIN_NAME+a68_0x886e04(0xb1),'configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20'+PRODUCT_CONFIG[a68_0x886e04(0xa8)]+'.','notInProjectHint':a68_0x886e04(0xa7)+PRODUCT_CONFIG[a68_0x886e04(0xa8)]+a68_0x886e04(0xae)});
@@ -1 +1 @@
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
+ (function(_0x195953,_0x49ca1a){var _0x404112=a69_0x4efc,_0x2b309c=_0x195953();while(!![]){try{var _0xc07d65=parseInt(_0x404112(0x9b))/0x1+parseInt(_0x404112(0xa0))/0x2*(-parseInt(_0x404112(0x9d))/0x3)+-parseInt(_0x404112(0x99))/0x4+-parseInt(_0x404112(0xa1))/0x5+parseInt(_0x404112(0x9c))/0x6*(parseInt(_0x404112(0x9e))/0x7)+-parseInt(_0x404112(0x9a))/0x8*(-parseInt(_0x404112(0x9f))/0x9)+parseInt(_0x404112(0x98))/0xa;if(_0xc07d65===_0x49ca1a)break;else _0x2b309c['push'](_0x2b309c['shift']());}catch(_0x167012){_0x2b309c['push'](_0x2b309c['shift']());}}}(a69_0x3fbe,0xbd8d5));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a69_0x4efc(_0x1baeb7,_0x3c467c){_0x1baeb7=_0x1baeb7-0x98;var _0x3fbe27=a69_0x3fbe();var _0x4efc7=_0x3fbe27[_0x1baeb7];return _0x4efc7;}import{buildAllFlags as a69_0x23cf8c}from'@lovrabet/cli-framework';export function buildAllFlags(_0x453406){return a69_0x23cf8c(_0x453406,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a69_0x3fbe(){var _0x17eef6=['869747KcZBiE','11892pSVbDj','12681FFjMso','2401MwPfnY','797931aXEHjj','526PfMZul','4263030EFkIFH','8792710FndXGs','3362796zpIlEg','104jLDiBx'];a69_0x3fbe=function(){return _0x17eef6;};return a69_0x3fbe();}
@@ -1 +1 @@
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
+ function a70_0x1b97(_0x2a0c27,_0x461ac7){_0x2a0c27=_0x2a0c27-0x113;const _0x11f598=a70_0x11f5();let _0x1b97f2=_0x11f598[_0x2a0c27];return _0x1b97f2;}(function(_0xe3bc73,_0x5c5ba1){const _0x3e53e8=a70_0x1b97,_0x3d3fcc=_0xe3bc73();while(!![]){try{const _0x2a6cd4=parseInt(_0x3e53e8(0x117))/0x1*(parseInt(_0x3e53e8(0x11a))/0x2)+parseInt(_0x3e53e8(0x119))/0x3+parseInt(_0x3e53e8(0x114))/0x4+parseInt(_0x3e53e8(0x11b))/0x5+-parseInt(_0x3e53e8(0x116))/0x6*(parseInt(_0x3e53e8(0x118))/0x7)+-parseInt(_0x3e53e8(0x11c))/0x8+-parseInt(_0x3e53e8(0x113))/0x9;if(_0x2a6cd4===_0x5c5ba1)break;else _0x3d3fcc['push'](_0x3d3fcc['shift']());}catch(_0x152c79){_0x3d3fcc['push'](_0x3d3fcc['shift']());}}}(a70_0x11f5,0xc9f0f));function a70_0x11f5(){const _0x2e9a71=['2881096eVbpOa','body','22490892vsZErZ','3394440CHHnKr','description','138mtPuEi','212331HhNcfe','101605TuBKcN','3375627WugNju','14fIoYFU','2799925iofIXu'];a70_0x11f5=function(){return _0x2e9a71;};return a70_0x11f5();}export function dryRun(_0x3111c1,_0x1251f8){const _0x3ae2d3={'method':_0x3111c1,'url':_0x1251f8},_0xec28a3={'body'(_0x2658de){const _0x238a40=a70_0x1b97;return _0x3ae2d3[_0x238a40(0x11d)]=_0x2658de,_0xec28a3;},'description'(_0xf0e43b){const _0x573148=a70_0x1b97;return _0x3ae2d3[_0x573148(0x115)]=_0xf0e43b,_0xec28a3;},'build'(){return{..._0x3ae2d3};}};return _0xec28a3;}
@@ -1 +1 @@
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
+ const a71_0xf38701=a71_0x28ee;function a71_0x17bb(){const _0x3f3fe5=['parseFlags','725610AGRoVh','1040130OLHCfw','301126CRwPBX','87MNiMAv','161162vJRVhm','7096MjHhaU','222350ifuVKN','248MQDLBp','47511wXOOfs'];a71_0x17bb=function(){return _0x3f3fe5;};return a71_0x17bb();}(function(_0x353ba5,_0x5cb96b){const _0x17612c=a71_0x28ee,_0x170bdc=_0x353ba5();while(!![]){try{const _0x299c1f=parseInt(_0x17612c(0x1ed))/0x1+-parseInt(_0x17612c(0x1ef))/0x2+-parseInt(_0x17612c(0x1ec))/0x3*(parseInt(_0x17612c(0x1ee))/0x4)+parseInt(_0x17612c(0x1f3))/0x5+parseInt(_0x17612c(0x1ea))/0x6+-parseInt(_0x17612c(0x1eb))/0x7+parseInt(_0x17612c(0x1f0))/0x8*(-parseInt(_0x17612c(0x1f1))/0x9);if(_0x299c1f===_0x5cb96b)break;else _0x170bdc['push'](_0x170bdc['shift']());}catch(_0x4e7d53){_0x170bdc['push'](_0x170bdc['shift']());}}}(a71_0x17bb,0x1af0f));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a71_0x28ee(_0x10e9ff,_0x13bc2b){_0x10e9ff=_0x10e9ff-0x1ea;const _0x17bb5b=a71_0x17bb();let _0x28ee9f=_0x17bb5b[_0x10e9ff];return _0x28ee9f;}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a71_0xf38701(0x1f2)];export const validateFlags=helpers['validateFlags'];
@@ -1 +1 @@
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[];}}
1
+ (function(_0x769971,_0x361ead){const _0x236723=a72_0x4919,_0x4f2262=_0x769971();while(!![]){try{const _0x32d52e=parseInt(_0x236723(0xf5))/0x1+-parseInt(_0x236723(0xf7))/0x2*(parseInt(_0x236723(0xef))/0x3)+parseInt(_0x236723(0xf4))/0x4+-parseInt(_0x236723(0xfc))/0x5+parseInt(_0x236723(0xfb))/0x6+-parseInt(_0x236723(0xf6))/0x7*(parseInt(_0x236723(0xfa))/0x8)+parseInt(_0x236723(0xf1))/0x9;if(_0x32d52e===_0x361ead)break;else _0x4f2262['push'](_0x4f2262['shift']());}catch(_0x1b2bda){_0x4f2262['push'](_0x4f2262['shift']());}}}(a72_0x3893,0x829fa));import{createHelpGenerators}from'@lovrabet/cli-framework';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 a72_0x4919(_0x5204e8,_0x27d1d8){_0x5204e8=_0x5204e8-0xef;const _0x3893e1=a72_0x3893();let _0x491901=_0x3893e1[_0x5204e8];return _0x491901;}function createGenerators(){const _0x24a8d8=a72_0x4919;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[...serviceRegistry,...safeListDynamicServiceEntries()],'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x24a8d8(0xf9)+PRODUCT_CONFIG[_0x24a8d8(0xf3)]+'\x20or\x20--appcode).'});}function a72_0x3893(){const _0x11919=['newConfigFileName','703312fqcRqf','12668cTOGpm','1064iotjSR','29844KlSpwW','generateServiceHelp','Requires\x20appcode\x20(set\x20via\x20','10864HxDjaF','1534944FUObJV','1242330rvqOnX','207VSRuWl','filter','14176926xZTLfn','service'];a72_0x3893=function(){return _0x11919;};return a72_0x3893();}export function generateCommandHelp(_0x477cd3){return createGenerators()['generateCommandHelp'](_0x477cd3);}export function generateServiceHelp(_0x4749d8){const _0x273f9d=a72_0x4919;return createGenerators()[_0x273f9d(0xf8)](_0x4749d8);}export function generateFullHelp(){return createGenerators()['generateFullHelp']();}function getAnyServiceEntry(_0x20102e){const _0x4ef160=getServiceEntry(_0x20102e);if(_0x4ef160)return _0x4ef160;try{return getDynamicServiceEntry(_0x20102e);}catch{return undefined;}}function getAnyServiceDefinitions(_0x1547f0){const _0x4dea85=serviceGroups['get'](_0x1547f0);if(_0x4dea85)return _0x4dea85;try{return getDynamicServiceDefinitions(_0x1547f0);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x218706=a72_0x4919,_0x4b8d0b=new Set(serviceRegistry['map'](_0x375d83=>_0x375d83[_0x218706(0xf2)]));try{return listDynamicServiceEntries()[_0x218706(0xf0)](_0xa45aae=>!_0x4b8d0b['has'](_0xa45aae['service']));}catch{return[];}}