@lovrabet/lovrabet-cli 2.1.6-beta.2 → 2.1.6-beta.3

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 a54_0x59e957=a54_0x4064;function a54_0x4064(_0x82cd94,_0x78d424){_0x82cd94=_0x82cd94-0x6e;const _0x4cfb06=a54_0x4cfb();let _0x40644c=_0x4cfb06[_0x82cd94];return _0x40644c;}(function(_0xefe449,_0x1da790){const _0x187751=a54_0x4064,_0xb664cd=_0xefe449();while(!![]){try{const _0x3a6b40=parseInt(_0x187751(0x75))/0x1*(-parseInt(_0x187751(0x74))/0x2)+-parseInt(_0x187751(0x71))/0x3+-parseInt(_0x187751(0x79))/0x4*(-parseInt(_0x187751(0x72))/0x5)+parseInt(_0x187751(0x76))/0x6*(-parseInt(_0x187751(0x70))/0x7)+-parseInt(_0x187751(0x6e))/0x8+-parseInt(_0x187751(0x7a))/0x9+-parseInt(_0x187751(0x77))/0xa*(-parseInt(_0x187751(0x6f))/0xb);if(_0x3a6b40===_0x1da790)break;else _0xb664cd['push'](_0xb664cd['shift']());}catch(_0x166669){_0xb664cd['push'](_0xb664cd['shift']());}}}(a54_0x4cfb,0x5b077));export const AUTH_MODE={'ClientAk':a54_0x59e957(0x78)};export function isAuthMode(_0x31373b){const _0xcc316a=a54_0x59e957;return _0x31373b===AUTH_MODE[_0xcc316a(0x73)];}function a54_0x4cfb(){const _0x231962=['30XwXgRV','client-ak','1453988QoXCwx','2792169DGcEAg','1455784vROtaW','6491782mcVlnu','21WwAahM','273027ALfOaZ','5mFjKXv','ClientAk','26Drmmrb','39174lvAAUd','1337286ncVNnD'];a54_0x4cfb=function(){return _0x231962;};return a54_0x4cfb();}
1
+ const a54_0x428325=a54_0x560f;(function(_0x29d288,_0x22f6e4){const _0xf2e67d=a54_0x560f,_0x4392af=_0x29d288();while(!![]){try{const _0x1ed863=-parseInt(_0xf2e67d(0x156))/0x1+-parseInt(_0xf2e67d(0x14a))/0x2*(-parseInt(_0xf2e67d(0x14f))/0x3)+parseInt(_0xf2e67d(0x154))/0x4*(parseInt(_0xf2e67d(0x155))/0x5)+parseInt(_0xf2e67d(0x14d))/0x6+parseInt(_0xf2e67d(0x152))/0x7+parseInt(_0xf2e67d(0x151))/0x8*(-parseInt(_0xf2e67d(0x14b))/0x9)+-parseInt(_0xf2e67d(0x14c))/0xa*(parseInt(_0xf2e67d(0x14e))/0xb);if(_0x1ed863===_0x22f6e4)break;else _0x4392af['push'](_0x4392af['shift']());}catch(_0x27628f){_0x4392af['push'](_0x4392af['shift']());}}}(a54_0x1092,0x41d9f));export const AUTH_MODE={'ClientAk':a54_0x428325(0x150)};export function isAuthMode(_0x9b2de9){const _0x17d266=a54_0x428325;return _0x9b2de9===AUTH_MODE[_0x17d266(0x153)];}function a54_0x560f(_0xdc4297,_0x54773e){_0xdc4297=_0xdc4297-0x14a;const _0x10926a=a54_0x1092();let _0x560f6b=_0x10926a[_0xdc4297];return _0x560f6b;}function a54_0x1092(){const _0x368def=['27flZRSR','6221770niZOcP','1154922yCyOlP','11OpVAUv','429IuwooX','client-ak','179352EFbtih','210490FeYeVb','ClientAk','4WLwiSa','2301695putzRV','85525oVdfKS','5060SPbpkN'];a54_0x1092=function(){return _0x368def;};return a54_0x1092();}
@@ -1 +1 @@
1
- const a55_0x18f2fe=a55_0x310a;(function(_0x33ffe9,_0x237426){const _0x5ba0f5=a55_0x310a,_0x185709=_0x33ffe9();while(!![]){try{const _0x37004c=parseInt(_0x5ba0f5(0x1ea))/0x1+-parseInt(_0x5ba0f5(0x1ec))/0x2+-parseInt(_0x5ba0f5(0x1d8))/0x3+parseInt(_0x5ba0f5(0x1f7))/0x4*(parseInt(_0x5ba0f5(0x1ce))/0x5)+-parseInt(_0x5ba0f5(0x1f8))/0x6+parseInt(_0x5ba0f5(0x1e3))/0x7+parseInt(_0x5ba0f5(0x1f6))/0x8*(parseInt(_0x5ba0f5(0x1f0))/0x9);if(_0x37004c===_0x237426)break;else _0x185709['push'](_0x185709['shift']());}catch(_0x37535d){_0x185709['push'](_0x185709['shift']());}}}(a55_0x14e7,0xe1c53));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a55_0x18f2fe(0x1d2)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a55_0x18f2fe(0x1fe)];function a55_0x310a(_0x5d8e7a,_0x220099){_0x5d8e7a=_0x5d8e7a-0x1cd;const _0x14e781=a55_0x14e7();let _0x310a64=_0x14e781[_0x5d8e7a];return _0x310a64;}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a55_0x18f2fe(0x1e8),'meowKey':a55_0x18f2fe(0x1e8),'type':a55_0x18f2fe(0x1fa),'description':a55_0x18f2fe(0x1e2),'hint':a55_0x18f2fe(0x1f9)},{'name':a55_0x18f2fe(0x1d9),'meowKey':a55_0x18f2fe(0x1d9),'type':'string','description':a55_0x18f2fe(0x1e4),'hint':a55_0x18f2fe(0x1eb)},{'name':'env','meowKey':a55_0x18f2fe(0x1f5),'type':a55_0x18f2fe(0x1fa),'description':a55_0x18f2fe(0x1ee),'hint':a55_0x18f2fe(0x1d3)},{'name':a55_0x18f2fe(0x1fc),'meowKey':a55_0x18f2fe(0x1fc),'type':a55_0x18f2fe(0x1fa),'description':a55_0x18f2fe(0x1e1),'hint':a55_0x18f2fe(0x1d6)},{'name':'jq','meowKey':'jq','type':a55_0x18f2fe(0x1fa),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a55_0x18f2fe(0x1e0)},{'name':a55_0x18f2fe(0x1d0),'meowKey':a55_0x18f2fe(0x1df),'type':a55_0x18f2fe(0x1e5),'description':a55_0x18f2fe(0x1d4)},{'name':a55_0x18f2fe(0x1e6),'meowKey':a55_0x18f2fe(0x1e6),'type':a55_0x18f2fe(0x1e5),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a55_0x18f2fe(0x1cd),'meowKey':a55_0x18f2fe(0x1fd),'type':a55_0x18f2fe(0x1e5),'description':a55_0x18f2fe(0x1d5)},{'name':a55_0x18f2fe(0x1e7),'meowKey':a55_0x18f2fe(0x1e7),'type':'boolean','description':a55_0x18f2fe(0x1ed)},{'name':'ci','meowKey':'ci','type':a55_0x18f2fe(0x1e5),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a55_0x18f2fe(0x1dc),'meowKey':a55_0x18f2fe(0x1dc),'type':a55_0x18f2fe(0x1e5),'description':a55_0x18f2fe(0x1db)},{'name':'id','meowKey':'id','type':a55_0x18f2fe(0x1fa),'description':a55_0x18f2fe(0x1cf),'hidden':!![]},{'name':a55_0x18f2fe(0x1f3),'meowKey':a55_0x18f2fe(0x1f3),'type':'string','description':a55_0x18f2fe(0x1fb),'hidden':!![]},{'name':'sqlcode','meowKey':a55_0x18f2fe(0x1ef),'type':a55_0x18f2fe(0x1fa),'description':a55_0x18f2fe(0x1dd),'hidden':!![]},{'name':a55_0x18f2fe(0x1da),'meowKey':'params','type':a55_0x18f2fe(0x1fa),'description':a55_0x18f2fe(0x1f2),'hidden':!![]},{'name':a55_0x18f2fe(0x1f1),'meowKey':a55_0x18f2fe(0x1f1),'type':a55_0x18f2fe(0x1e5),'description':a55_0x18f2fe(0x1d1),'hidden':!![]},{'name':'clear','meowKey':a55_0x18f2fe(0x1de),'type':a55_0x18f2fe(0x1e5),'description':a55_0x18f2fe(0x1d7),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a55_0x18f2fe(0x1d9),a55_0x18f2fe(0x1f5),a55_0x18f2fe(0x1fc),'jq',a55_0x18f2fe(0x1d0),a55_0x18f2fe(0x1e6),'non-interactive','ci']);function a55_0x14e7(){const _0x31763b=['Use\x20global\x20config\x20scope','Environment','sqlcode','598446DrMPSr','verbose','JSON\x20params\x20for\x20execute\x20commands','name','type','env','256mtsevZ','4npCgkH','10117458joiIEn','<code>','string','Name\x20filter','format','nonInteractive','cliDisplayName','non-interactive','6060055QlnFJz','Record\x20ID','dry-run','Verbose\x20output','cliBinName','production\x20|\x20development\x20|\x20daily','Preview\x20operation\x20without\x20executing','Force\x20non-interactive\x20mode\x20(CI)','json\x20|\x20pretty\x20|\x20compress','Clear\x20output','4118523BfpgUk','app','params','Show\x20help','help','SQL\x20query\x20code','clear','dryRun','<expr>','Output\x20format','Override\x20appcode','1647191hrDATW','Select\x20app\x20profile\x20by\x20name','boolean','yes','global','appcode','meowKey','1306305fPvdiX','<name>','1795196kikcss'];a55_0x14e7=function(){return _0x31763b;};return a55_0x14e7();}export function buildMeowFlags(){const _0x32aab2=a55_0x18f2fe;return Object['fromEntries'](GLOBAL_FLAGS['map'](_0x22ed11=>[_0x22ed11[_0x32aab2(0x1e9)],{'type':_0x22ed11[_0x32aab2(0x1f4)]}]));}
1
+ function a55_0xf8ea(){const _0x3dcba4=['sqlcode','dryRun','cliDisplayName','6OCIpwF','map','Show\x20help','app','3149408waqPgh','format','1554135EXyDgJ','Use\x20global\x20config\x20scope','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','<expr>','14IkqhlR','Alias\x20for\x20--non-interactive','Skip\x20confirmation\x20for\x20high-risk\x20writes','86390UbiUbx','666nxJQEo','Name\x20filter','yes','Output\x20format','Preview\x20operation\x20without\x20executing','<code>','non-interactive','verbose','fromEntries','json\x20|\x20pretty\x20|\x20compress','params','Clear\x20output','117SnptbM','JSON\x20params\x20for\x20execute\x20commands','appcode','2XfxJdp','string','type','Select\x20app\x20profile\x20by\x20name','env','production\x20|\x20development\x20|\x20daily','name','2317745WdyUJf','nonInteractive','1513418KOkUsQ','Force\x20non-interactive\x20mode\x20(CI)','17014049UhqdAn','global','<name>','dry-run','boolean','144PaWlxW','Record\x20ID','clear','119872SybZxm','Override\x20appcode'];a55_0xf8ea=function(){return _0x3dcba4;};return a55_0xf8ea();}const a55_0x1e1268=a55_0xd557;(function(_0x5c2c97,_0x351273){const _0x5757cf=a55_0xd557,_0x3cd287=_0x5c2c97();while(!![]){try{const _0x1684e7=-parseInt(_0x5757cf(0xf9))/0x1*(-parseInt(_0x5757cf(0x102))/0x2)+parseInt(_0x5757cf(0xf6))/0x3*(-parseInt(_0x5757cf(0x10c))/0x4)+-parseInt(_0x5757cf(0x100))/0x5*(parseInt(_0x5757cf(0x111))/0x6)+-parseInt(_0x5757cf(0xe6))/0x7*(-parseInt(_0x5757cf(0x115))/0x8)+-parseInt(_0x5757cf(0xea))/0x9*(-parseInt(_0x5757cf(0xe9))/0xa)+-parseInt(_0x5757cf(0x117))/0xb*(parseInt(_0x5757cf(0x109))/0xc)+parseInt(_0x5757cf(0x104))/0xd;if(_0x1684e7===_0x351273)break;else _0x3cd287['push'](_0x3cd287['shift']());}catch(_0x3ade80){_0x3cd287['push'](_0x3cd287['shift']());}}}(a55_0xf8ea,0xe0e14));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a55_0x1e1268(0x110)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a55_0x1e1268(0xf8),'meowKey':a55_0x1e1268(0xf8),'type':a55_0x1e1268(0xfa),'description':a55_0x1e1268(0x10d),'hint':a55_0x1e1268(0xef)},{'name':a55_0x1e1268(0x114),'meowKey':'app','type':a55_0x1e1268(0xfa),'description':a55_0x1e1268(0xfc),'hint':a55_0x1e1268(0x106)},{'name':a55_0x1e1268(0xfd),'meowKey':'env','type':a55_0x1e1268(0xfa),'description':'Environment','hint':a55_0x1e1268(0xfe)},{'name':a55_0x1e1268(0x116),'meowKey':a55_0x1e1268(0x116),'type':a55_0x1e1268(0xfa),'description':a55_0x1e1268(0xed),'hint':a55_0x1e1268(0xf3)},{'name':'jq','meowKey':'jq','type':a55_0x1e1268(0xfa),'description':a55_0x1e1268(0x119),'hint':a55_0x1e1268(0xe5)},{'name':a55_0x1e1268(0x107),'meowKey':a55_0x1e1268(0x10f),'type':a55_0x1e1268(0x108),'description':a55_0x1e1268(0xee)},{'name':'yes','meowKey':a55_0x1e1268(0xec),'type':a55_0x1e1268(0x108),'description':a55_0x1e1268(0xe8)},{'name':'non-interactive','meowKey':a55_0x1e1268(0x101),'type':'boolean','description':a55_0x1e1268(0x103)},{'name':a55_0x1e1268(0x105),'meowKey':a55_0x1e1268(0x105),'type':a55_0x1e1268(0x108),'description':a55_0x1e1268(0x118)},{'name':'ci','meowKey':'ci','type':a55_0x1e1268(0x108),'description':a55_0x1e1268(0xe7),'hidden':!![]},{'name':'help','meowKey':'help','type':a55_0x1e1268(0x108),'description':a55_0x1e1268(0x113)},{'name':'id','meowKey':'id','type':a55_0x1e1268(0xfa),'description':a55_0x1e1268(0x10a),'hidden':!![]},{'name':'name','meowKey':a55_0x1e1268(0xff),'type':'string','description':a55_0x1e1268(0xeb),'hidden':!![]},{'name':'sqlcode','meowKey':a55_0x1e1268(0x10e),'type':a55_0x1e1268(0xfa),'description':'SQL\x20query\x20code','hidden':!![]},{'name':a55_0x1e1268(0xf4),'meowKey':a55_0x1e1268(0xf4),'type':'string','description':a55_0x1e1268(0xf7),'hidden':!![]},{'name':a55_0x1e1268(0xf1),'meowKey':'verbose','type':'boolean','description':'Verbose\x20output','hidden':!![]},{'name':a55_0x1e1268(0x10b),'meowKey':a55_0x1e1268(0x10b),'type':a55_0x1e1268(0x108),'description':a55_0x1e1268(0xf5),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a55_0x1e1268(0xf8),'app','env',a55_0x1e1268(0x116),'jq',a55_0x1e1268(0x107),'yes',a55_0x1e1268(0xf0),'ci']);function a55_0xd557(_0x367058,_0x48fb8a){_0x367058=_0x367058-0xe5;const _0xf8eae0=a55_0xf8ea();let _0xd5576f=_0xf8eae0[_0x367058];return _0xd5576f;}export function buildMeowFlags(){const _0x1e7607=a55_0x1e1268;return Object[_0x1e7607(0xf2)](GLOBAL_FLAGS[_0x1e7607(0x112)](_0x42a125=>[_0x42a125['meowKey'],{'type':_0x42a125[_0x1e7607(0xfb)]}]));}
@@ -1 +1 @@
1
- const a56_0x5437da=a56_0x5708;(function(_0x217dd9,_0x1825f4){const _0x4d080c=a56_0x5708,_0x26cf83=_0x217dd9();while(!![]){try{const _0x47fe91=parseInt(_0x4d080c(0x189))/0x1+parseInt(_0x4d080c(0x18e))/0x2+parseInt(_0x4d080c(0x18c))/0x3+-parseInt(_0x4d080c(0x18b))/0x4*(-parseInt(_0x4d080c(0x184))/0x5)+-parseInt(_0x4d080c(0x188))/0x6+-parseInt(_0x4d080c(0x186))/0x7+parseInt(_0x4d080c(0x18d))/0x8*(-parseInt(_0x4d080c(0x187))/0x9);if(_0x47fe91===_0x1825f4)break;else _0x26cf83['push'](_0x26cf83['shift']());}catch(_0x4e4190){_0x26cf83['push'](_0x26cf83['shift']());}}}(a56_0x564a,0xdd2d8));function a56_0x5708(_0x508f62,_0x188eff){_0x508f62=_0x508f62-0x184;const _0x564ac7=a56_0x564a();let _0x5708d6=_0x564ac7[_0x508f62];return _0x5708d6;}export const DEFAULT_APP_PROFILE_NAME=a56_0x5437da(0x18a);export const DEFAULT_CONFIG_VALUES={'env':a56_0x5437da(0x18f),'format':a56_0x5437da(0x185),'locale':'en-US','riskLevel':'write'};function a56_0x564a(){const _0x3f1226=['10393734RIPufr','1424658vzNRsj','main','97080VCbgTs','2977515cZHVnF','7254088NTaNSw','1831956ltYEWO','production','235SUinjh','compress','154532wNCGEh','18oQSSdA'];a56_0x564a=function(){return _0x3f1226;};return a56_0x564a();}export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
1
+ const a56_0x2e12fd=a56_0x2046;(function(_0x74bef5,_0x21d23a){const _0x4cff68=a56_0x2046,_0x464a10=_0x74bef5();while(!![]){try{const _0x2e76bc=parseInt(_0x4cff68(0xa9))/0x1*(parseInt(_0x4cff68(0x9d))/0x2)+-parseInt(_0x4cff68(0xab))/0x3*(-parseInt(_0x4cff68(0xad))/0x4)+parseInt(_0x4cff68(0x9c))/0x5+-parseInt(_0x4cff68(0xa6))/0x6*(parseInt(_0x4cff68(0xa7))/0x7)+-parseInt(_0x4cff68(0xa4))/0x8*(parseInt(_0x4cff68(0xa2))/0x9)+-parseInt(_0x4cff68(0x9e))/0xa*(parseInt(_0x4cff68(0xa1))/0xb)+parseInt(_0x4cff68(0x9f))/0xc*(-parseInt(_0x4cff68(0xac))/0xd);if(_0x2e76bc===_0x21d23a)break;else _0x464a10['push'](_0x464a10['shift']());}catch(_0x21bae4){_0x464a10['push'](_0x464a10['shift']());}}}(a56_0x33f0,0x6308a));export const DEFAULT_APP_PROFILE_NAME=a56_0x2e12fd(0xa0);export const DEFAULT_CONFIG_VALUES={'env':a56_0x2e12fd(0xa3),'format':'compress','locale':a56_0x2e12fd(0xaa),'riskLevel':a56_0x2e12fd(0xa5)};function a56_0x33f0(){const _0x535668=['4GgFnGA','3880285lldvpZ','2ATCTSE','70xUejrr','228KiEMCf','main','110539vOXGys','522IimbjM','production','40024ZBmCyX','write','46014ZrhONq','7dswVwv','compress','554383GvLdat','en-US','2007063mYNkfz','838591khxrZS'];a56_0x33f0=function(){return _0x535668;};return a56_0x33f0();}function a56_0x2046(_0x48fa72,_0x6ff46a){_0x48fa72=_0x48fa72-0x9c;const _0x33f045=a56_0x33f0();let _0x20466=_0x33f045[_0x48fa72];return _0x20466;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a56_0x2e12fd(0xa8);
@@ -1 +1 @@
1
- const a57_0x31fb3f=a57_0x4e74;function a57_0x25f6(){const _0x1c6beb=['533626ekhURu','30xsGDQT','3247935EjBqvB','93934vcRkEi','npmRegistryBaseUrl','npmPackageName','1422542WabwAv','1662312FMGQMu','1336SuyMDF','skillSource','954338FtNAmE','12TrKUax','9549jOrzoB','27zGguwG'];a57_0x25f6=function(){return _0x1c6beb;};return a57_0x25f6();}function a57_0x4e74(_0xa97465,_0x1ad585){_0xa97465=_0xa97465-0x9f;const _0x25f68c=a57_0x25f6();let _0x4e74f8=_0x25f68c[_0xa97465];return _0x4e74f8;}(function(_0x181abc,_0x56f447){const _0x3dd718=a57_0x4e74,_0x121960=_0x181abc();while(!![]){try{const _0x220eea=parseInt(_0x3dd718(0xa6))/0x1+parseInt(_0x3dd718(0xa9))/0x2*(-parseInt(_0x3dd718(0xa5))/0x3)+parseInt(_0x3dd718(0x9f))/0x4+parseInt(_0x3dd718(0xa8))/0x5+parseInt(_0x3dd718(0xa3))/0x6*(-parseInt(_0x3dd718(0xa2))/0x7)+parseInt(_0x3dd718(0xa0))/0x8*(-parseInt(_0x3dd718(0xa4))/0x9)+-parseInt(_0x3dd718(0xa7))/0xa*(parseInt(_0x3dd718(0xac))/0xb);if(_0x220eea===_0x56f447)break;else _0x121960['push'](_0x121960['shift']());}catch(_0x41fe4f){_0x121960['push'](_0x121960['shift']());}}}(a57_0x25f6,0x5295b));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a57_0x31fb3f(0xab)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a57_0x31fb3f(0xa1)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a57_0x31fb3f(0xaa)];
1
+ function a57_0x5b65(_0x14c764,_0x2a67f8){_0x14c764=_0x14c764-0xb1;const _0xeec1ce=a57_0xeec1();let _0x5b6567=_0xeec1ce[_0x14c764];return _0x5b6567;}const a57_0x80e22=a57_0x5b65;(function(_0x265b22,_0x2a66ec){const _0x26300c=a57_0x5b65,_0x1b702a=_0x265b22();while(!![]){try{const _0x592f07=parseInt(_0x26300c(0xb1))/0x1*(parseInt(_0x26300c(0xb4))/0x2)+-parseInt(_0x26300c(0xbb))/0x3+-parseInt(_0x26300c(0xb9))/0x4+parseInt(_0x26300c(0xba))/0x5+-parseInt(_0x26300c(0xb6))/0x6*(parseInt(_0x26300c(0xb7))/0x7)+-parseInt(_0x26300c(0xb8))/0x8+-parseInt(_0x26300c(0xb2))/0x9*(-parseInt(_0x26300c(0xb5))/0xa);if(_0x592f07===_0x2a66ec)break;else _0x1b702a['push'](_0x1b702a['shift']());}catch(_0x44bdbe){_0x1b702a['push'](_0x1b702a['shift']());}}}(a57_0xeec1,0xa8554));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];function a57_0xeec1(){const _0x590e0c=['138062EfCEve','953415DyGvSH','npmRegistryBaseUrl','10AJEXwm','230ufwnuh','141882LLzCUn','161rxeiky','4234760ungqDG','3474028XyuJNW','2144320EXIRNx','2773362gYAFVu'];a57_0xeec1=function(){return _0x590e0c;};return a57_0xeec1();}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a57_0x80e22(0xb3)];
@@ -1 +1 @@
1
- function a58_0xbbed(_0x58a38f,_0x2e6945){_0x58a38f=_0x58a38f-0x1bc;const _0x1d80c6=a58_0x1d80();let _0xbbed62=_0x1d80c6[_0x58a38f];return _0xbbed62;}const a58_0x4a64c4=a58_0xbbed;(function(_0x2dd810,_0x1e0480){const _0x34fead=a58_0xbbed,_0x553b43=_0x2dd810();while(!![]){try{const _0x5f12be=parseInt(_0x34fead(0x1be))/0x1*(-parseInt(_0x34fead(0x1c6))/0x2)+-parseInt(_0x34fead(0x1c3))/0x3+parseInt(_0x34fead(0x1bc))/0x4+parseInt(_0x34fead(0x1c9))/0x5+-parseInt(_0x34fead(0x1c4))/0x6+parseInt(_0x34fead(0x1bd))/0x7+parseInt(_0x34fead(0x1bf))/0x8;if(_0x5f12be===_0x1e0480)break;else _0x553b43['push'](_0x553b43['shift']());}catch(_0x24ce55){_0x553b43['push'](_0x553b43['shift']());}}}(a58_0x1d80,0x1aacb));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x5802e6){const _0x41b476=a58_0xbbed;customApiDomain=_0x5802e6?.[_0x41b476(0x1ce)],customUserDomain=_0x5802e6?.[_0x41b476(0x1c7)],customRuntimeDomain=_0x5802e6?.[_0x41b476(0x1c8)],customSkillHubDomain=_0x5802e6?.[_0x41b476(0x1cd)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains']['production'][a58_0x4a64c4(0x1ca)]:PRODUCT_CONFIG[a58_0x4a64c4(0x1cb)][a58_0x4a64c4(0x1c1)][a58_0x4a64c4(0x1ca)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x4a64c4(0x1cb)][a58_0x4a64c4(0x1c2)][a58_0x4a64c4(0x1c5)]:PRODUCT_CONFIG[a58_0x4a64c4(0x1cb)][a58_0x4a64c4(0x1c1)][a58_0x4a64c4(0x1c5)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x4a64c4(0x1cb)]['production'][a58_0x4a64c4(0x1c0)]:PRODUCT_CONFIG[a58_0x4a64c4(0x1cb)][a58_0x4a64c4(0x1c1)]['runtime']);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x4a64c4(0x1cb)][a58_0x4a64c4(0x1c2)][a58_0x4a64c4(0x1cc)]:PRODUCT_CONFIG['domains'][a58_0x4a64c4(0x1c1)][a58_0x4a64c4(0x1cc)]);function a58_0x1d80(){const _0xb5e392=['userDomain','runtimeDomain','510530XBrZik','user','domains','skillhub','skillHubDomain','apiDomain','202356mfugrB','442820sZqQFr','1FfaBYm','1693288vollVW','runtime','nonProduction','production','236583XvRyoj','1199202qGgBop','api','79258hCJKdt'];a58_0x1d80=function(){return _0xb5e392;};return a58_0x1d80();}
1
+ const a58_0x52b43a=a58_0x1ba6;(function(_0x20a088,_0x3af729){const _0x4a586d=a58_0x1ba6,_0x8577fa=_0x20a088();while(!![]){try{const _0x2341b6=parseInt(_0x4a586d(0x122))/0x1*(-parseInt(_0x4a586d(0x12e))/0x2)+parseInt(_0x4a586d(0x12a))/0x3*(parseInt(_0x4a586d(0x12b))/0x4)+parseInt(_0x4a586d(0x120))/0x5*(-parseInt(_0x4a586d(0x123))/0x6)+parseInt(_0x4a586d(0x12c))/0x7*(-parseInt(_0x4a586d(0x12d))/0x8)+-parseInt(_0x4a586d(0x11f))/0x9*(-parseInt(_0x4a586d(0x128))/0xa)+-parseInt(_0x4a586d(0x11d))/0xb*(parseInt(_0x4a586d(0x129))/0xc)+-parseInt(_0x4a586d(0x126))/0xd*(-parseInt(_0x4a586d(0x12f))/0xe);if(_0x2341b6===_0x3af729)break;else _0x8577fa['push'](_0x8577fa['shift']());}catch(_0x247a81){_0x8577fa['push'](_0x8577fa['shift']());}}}(a58_0x3503,0x59e56));function a58_0x3503(){const _0x43397c=['30IVfHSp','24IpVaFc','34143mhrjpt','244MWfxli','21euwghE','1038608YRnkHY','4XECsaz','42OGzrNZ','skillHubDomain','nonProduction','production','api','runtimeDomain','3911699DLtoqk','runtime','1613529lJTXEM','2825855PaxiSX','userDomain','181924AlcNSS','6AvtmFJ','skillhub','user','5051995uWyQAI','domains'];a58_0x3503=function(){return _0x43397c;};return a58_0x3503();}import{getEnv,isProduction}from'../constant/env.js';function a58_0x1ba6(_0x3a6742,_0x175d93){_0x3a6742=_0x3a6742-0x118;const _0x350369=a58_0x3503();let _0x1ba6c5=_0x350369[_0x3a6742];return _0x1ba6c5;}import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x46edab){const _0x1810da=a58_0x1ba6;customApiDomain=_0x46edab?.['apiDomain'],customUserDomain=_0x46edab?.[_0x1810da(0x121)],customRuntimeDomain=_0x46edab?.[_0x1810da(0x11c)],customSkillHubDomain=_0x46edab?.[_0x1810da(0x118)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x52b43a(0x127)][a58_0x52b43a(0x11a)][a58_0x52b43a(0x125)]:PRODUCT_CONFIG[a58_0x52b43a(0x127)][a58_0x52b43a(0x119)][a58_0x52b43a(0x125)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x52b43a(0x127)][a58_0x52b43a(0x11a)][a58_0x52b43a(0x11b)]:PRODUCT_CONFIG[a58_0x52b43a(0x127)][a58_0x52b43a(0x119)]['api']);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x52b43a(0x127)][a58_0x52b43a(0x11a)]['runtime']:PRODUCT_CONFIG['domains'][a58_0x52b43a(0x119)][a58_0x52b43a(0x11e)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x52b43a(0x127)]['production'][a58_0x52b43a(0x124)]:PRODUCT_CONFIG[a58_0x52b43a(0x127)][a58_0x52b43a(0x119)][a58_0x52b43a(0x124)]);
@@ -1 +1 @@
1
- const a59_0x308c3c=a59_0x37c5;(function(_0xc5cad3,_0x3edaf5){const _0x3c8877=a59_0x37c5,_0x5c3c37=_0xc5cad3();while(!![]){try{const _0x34fd2b=parseInt(_0x3c8877(0x9a))/0x1*(parseInt(_0x3c8877(0x99))/0x2)+parseInt(_0x3c8877(0xa0))/0x3*(parseInt(_0x3c8877(0xa4))/0x4)+-parseInt(_0x3c8877(0xa6))/0x5+parseInt(_0x3c8877(0xa7))/0x6*(parseInt(_0x3c8877(0x9b))/0x7)+-parseInt(_0x3c8877(0x9e))/0x8*(parseInt(_0x3c8877(0xa1))/0x9)+parseInt(_0x3c8877(0x9f))/0xa+-parseInt(_0x3c8877(0xa2))/0xb;if(_0x34fd2b===_0x3edaf5)break;else _0x5c3c37['push'](_0x5c3c37['shift']());}catch(_0x254e23){_0x5c3c37['push'](_0x5c3c37['shift']());}}}(a59_0x15b2,0xc0ec8));function a59_0x37c5(_0x1b6736,_0x1d52b5){_0x1b6736=_0x1b6736-0x97;const _0x15b21a=a59_0x15b2();let _0x37c554=_0x15b21a[_0x1b6736];return _0x37c554;}import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a59_0x308c3c(0xa5),a59_0x308c3c(0x9d),a59_0x308c3c(0xa3)];export function normalizeEnv(_0x2544cf){const _0x46e404=a59_0x308c3c;return _0x2544cf===_0x46e404(0x97)?_0x46e404(0xa5):_0x2544cf;}export function isProduction(_0x1d6e8c){const _0x2ea404=a59_0x308c3c;return normalizeEnv(_0x1d6e8c)===_0x2ea404(0xa5);}function a59_0x15b2(){const _0xb2640b=['production','366310NRfkuE','2056926OPosqJ','online','dev','2uBtHVq','150637Ijyxtw','7JKCiRi','ENV','development','88gTvnjV','3833670DeqKWw','2800995FxLjbX','159597gUZSQA','8271439OEYbOa','daily','4YKGlNt'];a59_0x15b2=function(){return _0xb2640b;};return a59_0x15b2();}export function isDaily(_0x2f0de5){const _0x37751f=a59_0x308c3c;return normalizeEnv(_0x2f0de5)===_0x37751f(0xa3);}export function isDev(_0x474a9a){const _0x19240c=a59_0x308c3c,_0x463bde=normalizeEnv(_0x474a9a);return _0x463bde===_0x19240c(0x9d)||_0x463bde===_0x19240c(0x98);}let env=normalizeEnv(productEnv(a59_0x308c3c(0x9c))||a59_0x308c3c(0xa5));export function getEnv(){return env;}export function initEnv(_0x13b697){env=normalizeEnv(_0x13b697);}
1
+ const a59_0x5a2978=a59_0x5144;(function(_0x4989ea,_0x3345bf){const _0x31e5a4=a59_0x5144,_0x5fca08=_0x4989ea();while(!![]){try{const _0x4c0b74=-parseInt(_0x31e5a4(0x110))/0x1*(-parseInt(_0x31e5a4(0x113))/0x2)+parseInt(_0x31e5a4(0x114))/0x3+parseInt(_0x31e5a4(0x108))/0x4*(parseInt(_0x31e5a4(0x10f))/0x5)+-parseInt(_0x31e5a4(0x115))/0x6*(-parseInt(_0x31e5a4(0x117))/0x7)+parseInt(_0x31e5a4(0x10e))/0x8*(-parseInt(_0x31e5a4(0x112))/0x9)+-parseInt(_0x31e5a4(0x10c))/0xa+parseInt(_0x31e5a4(0x10d))/0xb*(-parseInt(_0x31e5a4(0x116))/0xc);if(_0x4c0b74===_0x3345bf)break;else _0x5fca08['push'](_0x5fca08['shift']());}catch(_0x3de220){_0x5fca08['push'](_0x5fca08['shift']());}}}(a59_0x3de7,0x6e16f));function a59_0x5144(_0x53d3d6,_0xd389d3){_0x53d3d6=_0x53d3d6-0x108;const _0x3de7ef=a59_0x3de7();let _0x5144bb=_0x3de7ef[_0x53d3d6];return _0x5144bb;}import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a59_0x5a2978(0x109),a59_0x5a2978(0x118),a59_0x5a2978(0x10a)];export function normalizeEnv(_0x1caf66){const _0x32df6a=a59_0x5a2978;return _0x1caf66===_0x32df6a(0x111)?_0x32df6a(0x109):_0x1caf66;}export function isProduction(_0xcef5cb){return normalizeEnv(_0xcef5cb)==='production';}export function isDaily(_0xe67b16){const _0xa0961b=a59_0x5a2978;return normalizeEnv(_0xe67b16)===_0xa0961b(0x10a);}function a59_0x3de7(){const _0x56ba1b=['32JNESiT','production','daily','ENV','964420LxbuOg','1201013lFqOrJ','5592ZZxGbK','149285gRhVeM','13232dUHGFt','online','3690naqiyt','16ZHglPT','2374755jowYhM','6irkIfz','132mmcCGG','6290725oMCKwa','development'];a59_0x3de7=function(){return _0x56ba1b;};return a59_0x3de7();}export function isDev(_0x227be4){const _0x5017ec=a59_0x5a2978,_0x1365ac=normalizeEnv(_0x227be4);return _0x1365ac===_0x5017ec(0x118)||_0x1365ac==='dev';}let env=normalizeEnv(productEnv(a59_0x5a2978(0x10b))||a59_0x5a2978(0x109));export function getEnv(){return env;}export function initEnv(_0x566aa9){env=normalizeEnv(_0x566aa9);}
@@ -1 +1 @@
1
- const a60_0x2f276f=a60_0x4e36;function a60_0x4e36(_0x4cd5ed,_0x35e6ba){_0x4cd5ed=_0x4cd5ed-0x7a;const _0x25a083=a60_0x25a0();let _0x4e360c=_0x25a083[_0x4cd5ed];return _0x4e360c;}function a60_0x25a0(){const _0x1e05fc=['26275110RFossM','71172eiFbrk','json','1794162BkQTmM','868DsqRtt','223440wcRzKt','1oHASgs','483260TSjkrM','5944pHVAAY','pretty','3141yhlYBs','6567850sqcayH'];a60_0x25a0=function(){return _0x1e05fc;};return a60_0x25a0();}(function(_0x1163ec,_0x4b6440){const _0xc241e5=a60_0x4e36,_0x43dcfd=_0x1163ec();while(!![]){try{const _0x9bfcc1=-parseInt(_0xc241e5(0x84))/0x1*(-parseInt(_0xc241e5(0x81))/0x2)+parseInt(_0xc241e5(0x83))/0x3+-parseInt(_0xc241e5(0x85))/0x4+parseInt(_0xc241e5(0x7d))/0x5+-parseInt(_0xc241e5(0x7f))/0x6*(-parseInt(_0xc241e5(0x82))/0x7)+-parseInt(_0xc241e5(0x7a))/0x8*(parseInt(_0xc241e5(0x7c))/0x9)+-parseInt(_0xc241e5(0x7e))/0xa;if(_0x9bfcc1===_0x4b6440)break;else _0x43dcfd['push'](_0x43dcfd['shift']());}catch(_0x5cca06){_0x43dcfd['push'](_0x43dcfd['shift']());}}}(a60_0x25a0,0xb6b62));export const OUTPUT_FORMAT_VALUES=[a60_0x2f276f(0x80),a60_0x2f276f(0x7b),'compress'];
1
+ function a60_0x16e4(_0x2f2d0f,_0x217d46){_0x2f2d0f=_0x2f2d0f-0x1f0;const _0x18a905=a60_0x18a9();let _0x16e481=_0x18a905[_0x2f2d0f];return _0x16e481;}const a60_0x41ac45=a60_0x16e4;function a60_0x18a9(){const _0x165b19=['3496HrWMcr','1317080KWrCTk','compress','1865360MHMWDV','17409880EGBIbQ','548229TDcBLw','6246KiQVUZ','225626aUCvRZ','6qlpTRs','pretty','4305700KdWBcS','json','7AvdEmU'];a60_0x18a9=function(){return _0x165b19;};return a60_0x18a9();}(function(_0x444878,_0xbd74ae){const _0x8a348d=a60_0x16e4,_0x34331c=_0x444878();while(!![]){try{const _0x59eeaf=parseInt(_0x8a348d(0x1f6))/0x1*(-parseInt(_0x8a348d(0x1f1))/0x2)+-parseInt(_0x8a348d(0x1fc))/0x3+parseInt(_0x8a348d(0x1f8))/0x4+parseInt(_0x8a348d(0x1fa))/0x5*(-parseInt(_0x8a348d(0x1f2))/0x6)+-parseInt(_0x8a348d(0x1f4))/0x7+-parseInt(_0x8a348d(0x1f7))/0x8*(-parseInt(_0x8a348d(0x1f0))/0x9)+parseInt(_0x8a348d(0x1fb))/0xa;if(_0x59eeaf===_0xbd74ae)break;else _0x34331c['push'](_0x34331c['shift']());}catch(_0x403d90){_0x34331c['push'](_0x34331c['shift']());}}}(a60_0x18a9,0x64d02));export const OUTPUT_FORMAT_VALUES=[a60_0x41ac45(0x1f5),a60_0x41ac45(0x1f3),a60_0x41ac45(0x1f9)];
@@ -1 +1 @@
1
- const a61_0x418bb7=a61_0x515c;(function(_0x179ea3,_0x44ae54){const _0x816690=a61_0x515c,_0x15cb22=_0x179ea3();while(!![]){try{const _0x509e8a=-parseInt(_0x816690(0x95))/0x1+parseInt(_0x816690(0x99))/0x2+-parseInt(_0x816690(0x90))/0x3*(parseInt(_0x816690(0xa1))/0x4)+-parseInt(_0x816690(0x92))/0x5*(-parseInt(_0x816690(0x97))/0x6)+-parseInt(_0x816690(0x98))/0x7+-parseInt(_0x816690(0x91))/0x8*(-parseInt(_0x816690(0xaf))/0x9)+-parseInt(_0x816690(0xa4))/0xa*(-parseInt(_0x816690(0xa5))/0xb);if(_0x509e8a===_0x44ae54)break;else _0x15cb22['push'](_0x15cb22['shift']());}catch(_0x239c08){_0x15cb22['push'](_0x15cb22['shift']());}}}(a61_0x49b7,0x1a4ac));export const PRODUCT_CONFIG={'cliBinName':a61_0x418bb7(0xa9),'cliDisplayName':a61_0x418bb7(0xab),'npmPackageName':a61_0x418bb7(0x9c),'skillSource':a61_0x418bb7(0x9e),'npmRegistryBaseUrl':a61_0x418bb7(0xad),'envPrefix':a61_0x418bb7(0xa8),'legacyEnvPrefixes':[a61_0x418bb7(0x9a)],'configFileNames':[a61_0x418bb7(0xb0),a61_0x418bb7(0x93)],'newConfigFileName':a61_0x418bb7(0xb0),'homeDirName':a61_0x418bb7(0x9b),'logFileName':'.lovrabet-runtime.log','invokeSource':a61_0x418bb7(0x9d),'userCenterDisplayName':a61_0x418bb7(0x9f),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':a61_0x418bb7(0xa7),'api':a61_0x418bb7(0x96),'runtime':a61_0x418bb7(0x94),'skillhub':'https://skills.lovrabet.com'},'nonProduction':{'user':a61_0x418bb7(0xaa),'api':a61_0x418bb7(0xae),'runtime':a61_0x418bb7(0xa2),'skillhub':a61_0x418bb7(0xac)}},'accessKeyCreatePath':a61_0x418bb7(0xa6)};function a61_0x515c(_0x564c6c,_0x56fbbd){_0x564c6c=_0x564c6c-0x90;const _0x49b77f=a61_0x49b7();let _0x515c92=_0x49b77f[_0x564c6c];return _0x515c92;}export function productEnvName(_0x502da2){return PRODUCT_CONFIG['envPrefix']+'_'+_0x502da2;}export function productEnvNames(_0xf39c02){const _0x329100=a61_0x418bb7;return[productEnvName(_0xf39c02),...PRODUCT_CONFIG[_0x329100(0xa0)][_0x329100(0xa3)](_0x1b8822=>_0x1b8822+'_'+_0xf39c02)];}export function productEnv(_0xf9ba2){for(const _0x39f530 of productEnvNames(_0xf9ba2)){const _0x3012af=process.env[_0x39f530];if(_0x3012af!==undefined)return _0x3012af;}return undefined;}function a61_0x49b7(){const _0x59e869=['1289218rkydRH','78040HeezXc','RABETBASE','.lovrabet','@lovrabet/lovrabet-cli','cli:lovrabet-runtime','lovrabet/lovrabet-cli','Lovrabet\x20User\x20Center','legacyEnvPrefixes','2076gOPwEV','https://daily-runtime.lovrabet.com','map','1012390KQGAZp','22gXhnUH','/user/ak','https://user.lovrabet.com','LOVRABET','lovrabet','https://user-daily.lovrabet.com','Lovrabet\x20Runtime\x20CLI','https://skills-daily.lovrabet.com','https://registry.npmjs.org','https://daily-api.lovrabet.com','94959Prjpcb','.lovrabet.json','93tBserG','152ujuBLt','55CYQCrS','.lovrabetrc','https://runtime.lovrabet.com','138390vxrQpR','https://api.lovrabet.com','2388kqpxIp'];a61_0x49b7=function(){return _0x59e869;};return a61_0x49b7();}
1
+ function a61_0x7779(_0x141b42,_0x288132){_0x141b42=_0x141b42-0x172;const _0x4f34e7=a61_0x4f34();let _0x777907=_0x4f34e7[_0x141b42];return _0x777907;}const a61_0x4c74da=a61_0x7779;(function(_0x9f3338,_0x1ae3a4){const _0x1cb00b=a61_0x7779,_0x1d5c78=_0x9f3338();while(!![]){try{const _0x262f18=-parseInt(_0x1cb00b(0x172))/0x1*(parseInt(_0x1cb00b(0x175))/0x2)+-parseInt(_0x1cb00b(0x17c))/0x3*(parseInt(_0x1cb00b(0x17a))/0x4)+parseInt(_0x1cb00b(0x191))/0x5+-parseInt(_0x1cb00b(0x179))/0x6*(-parseInt(_0x1cb00b(0x18b))/0x7)+-parseInt(_0x1cb00b(0x18a))/0x8*(parseInt(_0x1cb00b(0x178))/0x9)+parseInt(_0x1cb00b(0x187))/0xa*(parseInt(_0x1cb00b(0x18e))/0xb)+-parseInt(_0x1cb00b(0x17d))/0xc*(-parseInt(_0x1cb00b(0x174))/0xd);if(_0x262f18===_0x1ae3a4)break;else _0x1d5c78['push'](_0x1d5c78['shift']());}catch(_0x355e42){_0x1d5c78['push'](_0x1d5c78['shift']());}}}(a61_0x4f34,0xd186d));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a61_0x4c74da(0x189),'npmPackageName':a61_0x4c74da(0x173),'skillSource':'lovrabet/lovrabet-cli','npmRegistryBaseUrl':a61_0x4c74da(0x182),'envPrefix':a61_0x4c74da(0x18d),'legacyEnvPrefixes':[a61_0x4c74da(0x188)],'configFileNames':['.lovrabet.json',a61_0x4c74da(0x177)],'newConfigFileName':a61_0x4c74da(0x186),'homeDirName':a61_0x4c74da(0x180),'logFileName':a61_0x4c74da(0x181),'invokeSource':a61_0x4c74da(0x190),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a61_0x4c74da(0x185),'domains':{'production':{'user':a61_0x4c74da(0x176),'api':a61_0x4c74da(0x17f),'runtime':a61_0x4c74da(0x184),'skillhub':a61_0x4c74da(0x18c)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':'https://daily-api.lovrabet.com','runtime':a61_0x4c74da(0x17e),'skillhub':a61_0x4c74da(0x192)}},'accessKeyCreatePath':a61_0x4c74da(0x18f)};export function productEnvName(_0x37d126){return PRODUCT_CONFIG['envPrefix']+'_'+_0x37d126;}export function productEnvNames(_0x1199c3){const _0x4d8615=a61_0x4c74da;return[productEnvName(_0x1199c3),...PRODUCT_CONFIG[_0x4d8615(0x17b)][_0x4d8615(0x183)](_0x6b131d=>_0x6b131d+'_'+_0x1199c3)];}function a61_0x4f34(){const _0x46d91e=['https://api.lovrabet.com','.lovrabet','.lovrabet-runtime.log','https://registry.npmjs.org','map','https://runtime.lovrabet.com','SKIP_NPX_SKILLS','.lovrabet.json','10WvRTuF','RABETBASE','Lovrabet\x20Runtime\x20CLI','8XMowpc','450023voNObi','https://skills.lovrabet.com','LOVRABET','13400486TVPwfg','/user/ak','cli:lovrabet-runtime','2525550LKVbxX','https://skills-daily.lovrabet.com','3041KPTmyO','@lovrabet/lovrabet-cli','3204955LGtubp','444XOgCkn','https://user.lovrabet.com','.lovrabetrc','10147059LFEbVS','120cjArzV','116CKBOYR','legacyEnvPrefixes','61539INIhxj','12rbmoiC','https://daily-runtime.lovrabet.com'];a61_0x4f34=function(){return _0x46d91e;};return a61_0x4f34();}export function productEnv(_0x133768){for(const _0x4eb8ba of productEnvNames(_0x133768)){const _0x2a801b=process.env[_0x4eb8ba];if(_0x2a801b!==undefined)return _0x2a801b;}return undefined;}
@@ -1 +1 @@
1
- function a62_0x27d2(){const _0x253730=['749756GTomLi','143pCicVS','4956468aSUyWR','8560242izIJqa','12bPDRnI','91bidMMm','write','read','10RcOtHW','31812UHMlLf','high-risk-write','88faRlrv','941495bwtzKd','2641533ctpBPS','4134lyVFeS'];a62_0x27d2=function(){return _0x253730;};return a62_0x27d2();}function a62_0x58dd(_0x5b62fd,_0x306429){_0x5b62fd=_0x5b62fd-0x11e;const _0x27d227=a62_0x27d2();let _0x58ddec=_0x27d227[_0x5b62fd];return _0x58ddec;}const a62_0x44de6a=a62_0x58dd;(function(_0x16805f,_0x4afbb1){const _0x16cb3b=a62_0x58dd,_0x2a64a7=_0x16805f();while(!![]){try{const _0x416254=-parseInt(_0x16cb3b(0x128))/0x1*(parseInt(_0x16cb3b(0x122))/0x2)+-parseInt(_0x16cb3b(0x121))/0x3+parseInt(_0x16cb3b(0x125))/0x4+-parseInt(_0x16cb3b(0x120))/0x5*(-parseInt(_0x16cb3b(0x127))/0x6)+parseInt(_0x16cb3b(0x123))/0x7*(parseInt(_0x16cb3b(0x11f))/0x8)+parseInt(_0x16cb3b(0x126))/0x9*(-parseInt(_0x16cb3b(0x12b))/0xa)+parseInt(_0x16cb3b(0x124))/0xb*(-parseInt(_0x16cb3b(0x12c))/0xc);if(_0x416254===_0x4afbb1)break;else _0x2a64a7['push'](_0x2a64a7['shift']());}catch(_0x5883e6){_0x2a64a7['push'](_0x2a64a7['shift']());}}}(a62_0x27d2,0xb496e));export const RISK_LEVEL_VALUES=[a62_0x44de6a(0x12a),a62_0x44de6a(0x129),a62_0x44de6a(0x11e)];
1
+ function a62_0xd86e(_0x1bfafb,_0x4f1ecc){_0x1bfafb=_0x1bfafb-0x7f;const _0x15261e=a62_0x1526();let _0xd86e22=_0x15261e[_0x1bfafb];return _0xd86e22;}const a62_0x34585d=a62_0xd86e;function a62_0x1526(){const _0x4706b1=['2259668ywBapW','read','39512zICvGp','425570pVOpcU','9MrgHbQ','write','2358670UeZBgq','17107jWPuMy','3917418gmIIOo','3UuPfTW','1788DSLoGE','56FRgPbk','1438913cksgQt','78BabiNC'];a62_0x1526=function(){return _0x4706b1;};return a62_0x1526();}(function(_0x257993,_0x56784a){const _0x595f0d=a62_0xd86e,_0x1978fb=_0x257993();while(!![]){try{const _0xeb6037=-parseInt(_0x595f0d(0x7f))/0x1*(-parseInt(_0x595f0d(0x85))/0x2)+-parseInt(_0x595f0d(0x81))/0x3*(parseInt(_0x595f0d(0x86))/0x4)+parseInt(_0x595f0d(0x8c))/0x5+-parseInt(_0x595f0d(0x80))/0x6+parseInt(_0x595f0d(0x84))/0x7*(parseInt(_0x595f0d(0x83))/0x8)+parseInt(_0x595f0d(0x8a))/0x9*(-parseInt(_0x595f0d(0x89))/0xa)+parseInt(_0x595f0d(0x88))/0xb*(-parseInt(_0x595f0d(0x82))/0xc);if(_0xeb6037===_0x56784a)break;else _0x1978fb['push'](_0x1978fb['shift']());}catch(_0x562b23){_0x1978fb['push'](_0x1978fb['shift']());}}}(a62_0x1526,0xbef9b));export const RISK_LEVEL_VALUES=[a62_0x34585d(0x87),a62_0x34585d(0x8b),'high-risk-write'];
@@ -1 +1 @@
1
- const a63_0x8a3cd3=a63_0x3beb;function a63_0x4ccb(){const _0x53c636=['5612NrwlEi','33830NEsRrW','2572146SQSOEw','28760jVnyUJ','2745xHGhDz','production','5RFYmNW','1274684kGpYAD','337ENTJgv','4625439mspEJl','3524520PDpIQs','1771UZJPrD'];a63_0x4ccb=function(){return _0x53c636;};return a63_0x4ccb();}function a63_0x3beb(_0x3027f1,_0x4a7340){_0x3027f1=_0x3027f1-0x10d;const _0x4ccb4f=a63_0x4ccb();let _0x3beb2e=_0x4ccb4f[_0x3027f1];return _0x3beb2e;}(function(_0x13dde9,_0x301f73){const _0x4e8b5a=a63_0x3beb,_0x38ffd2=_0x13dde9();while(!![]){try{const _0x5866e7=-parseInt(_0x4e8b5a(0x112))/0x1*(-parseInt(_0x4e8b5a(0x116))/0x2)+parseInt(_0x4e8b5a(0x118))/0x3+parseInt(_0x4e8b5a(0x111))/0x4*(parseInt(_0x4e8b5a(0x110))/0x5)+-parseInt(_0x4e8b5a(0x114))/0x6+parseInt(_0x4e8b5a(0x113))/0x7+parseInt(_0x4e8b5a(0x10d))/0x8*(-parseInt(_0x4e8b5a(0x10e))/0x9)+parseInt(_0x4e8b5a(0x117))/0xa*(-parseInt(_0x4e8b5a(0x115))/0xb);if(_0x5866e7===_0x301f73)break;else _0x38ffd2['push'](_0x38ffd2['shift']());}catch(_0x80a472){_0x38ffd2['push'](_0x38ffd2['shift']());}}}(a63_0x4ccb,0x873a6));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG['domains'][a63_0x8a3cd3(0x10f)]['user']+PRODUCT_CONFIG['accessKeyCreatePath'];
1
+ function a63_0x2749(_0x343d8a,_0x5ceb9){_0x343d8a=_0x343d8a-0x19b;const _0x3b7aa5=a63_0x3b7a();let _0x274944=_0x3b7aa5[_0x343d8a];return _0x274944;}const a63_0x211e7c=a63_0x2749;function a63_0x3b7a(){const _0x35e0cb=['339193QNIpeI','520RQBqHw','user','4216EDmDcA','1851190fHOVDl','43425gjVkmM','19220860tTZeYs','22pYqEyH','8929080FcIdky','accessKeyCreatePath','4149kKAqmc','14847FMPASJ','594AnuMZM','domains'];a63_0x3b7a=function(){return _0x35e0cb;};return a63_0x3b7a();}(function(_0x1fb36d,_0x39519c){const _0x3c9613=a63_0x2749,_0x3ec0db=_0x1fb36d();while(!![]){try{const _0x58fda2=parseInt(_0x3c9613(0x19b))/0x1+parseInt(_0x3c9613(0x19f))/0x2+-parseInt(_0x3c9613(0x1a5))/0x3*(-parseInt(_0x3c9613(0x19c))/0x4)+parseInt(_0x3c9613(0x1a0))/0x5*(parseInt(_0x3c9613(0x1a7))/0x6)+parseInt(_0x3c9613(0x1a6))/0x7*(parseInt(_0x3c9613(0x19e))/0x8)+parseInt(_0x3c9613(0x1a3))/0x9+parseInt(_0x3c9613(0x1a1))/0xa*(-parseInt(_0x3c9613(0x1a2))/0xb);if(_0x58fda2===_0x39519c)break;else _0x3ec0db['push'](_0x3ec0db['shift']());}catch(_0x2daecb){_0x3ec0db['push'](_0x3ec0db['shift']());}}}(a63_0x3b7a,0x8b2fc));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a63_0x211e7c(0x1a8)]['production'][a63_0x211e7c(0x19d)]+PRODUCT_CONFIG[a63_0x211e7c(0x1a4)];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a64_0x3c1293=a64_0x530b;(function(_0x5b0343,_0x2e7a63){const _0x4aedbe=a64_0x530b,_0x5dd4d4=_0x5b0343();while(!![]){try{const _0x591832=-parseInt(_0x4aedbe(0x1c7))/0x1*(parseInt(_0x4aedbe(0x1d1))/0x2)+parseInt(_0x4aedbe(0x1b4))/0x3+parseInt(_0x4aedbe(0x1cc))/0x4+parseInt(_0x4aedbe(0x1e3))/0x5+-parseInt(_0x4aedbe(0x1ea))/0x6*(-parseInt(_0x4aedbe(0x1dc))/0x7)+-parseInt(_0x4aedbe(0x1cf))/0x8+parseInt(_0x4aedbe(0x1c1))/0x9;if(_0x591832===_0x2e7a63)break;else _0x5dd4d4['push'](_0x5dd4d4['shift']());}catch(_0x191718){_0x5dd4d4['push'](_0x5dd4d4['shift']());}}}(a64_0x339f,0xc0c3e));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_0x3c1293(0x1dd)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG['newConfigFileName'];function resolveConfigPath(_0x47c80a){for(const _0x19a809 of CONFIG_NAMES){const _0x127ac2=resolve(_0x47c80a,_0x19a809);if(existsSync(_0x127ac2))return _0x127ac2;}return undefined;}export function resolveWriteConfigPath(_0x3cb976){const _0x3e1441=a64_0x3c1293,_0x1afe8a=_0x3cb976===_0x3e1441(0x1e8)?process['cwd']():homedir(),_0x264ecd=resolveConfigPath(_0x1afe8a);return _0x264ecd??resolve(_0x1afe8a,NEW_CONFIG_NAME);}export function readConfigFile(_0x4ff0a8){const _0x2529cd=a64_0x3c1293;try{if(existsSync(_0x4ff0a8)){const _0x53d94e=readFileSync(_0x4ff0a8,{'encoding':_0x2529cd(0x1ab)});if(_0x53d94e){const _0x59c144=JSON[_0x2529cd(0x1a6)](_0x53d94e);return migrateOnlineEnv(_0x4ff0a8,_0x59c144),_0x59c144;}}}catch{}return{};}function migrateOnlineEnv(_0x3dcefc,_0x3c1edc){const _0x2a9ccb=a64_0x3c1293;let _0x2b557b=![];_0x3c1edc[_0x2a9ccb(0x1db)]===_0x2a9ccb(0x1a7)&&(_0x3c1edc['env']=_0x2a9ccb(0x1df),_0x2b557b=!![]);if(_0x3c1edc[_0x2a9ccb(0x1b3)]&&typeof _0x3c1edc[_0x2a9ccb(0x1b3)]===_0x2a9ccb(0x1c6))for(const _0x526aee of Object['values'](_0x3c1edc[_0x2a9ccb(0x1b3)])){_0x526aee&&_0x526aee[_0x2a9ccb(0x1db)]===_0x2a9ccb(0x1a7)&&(_0x526aee[_0x2a9ccb(0x1db)]=_0x2a9ccb(0x1df),_0x2b557b=!![]);}if(_0x2b557b)try{writeConfigFile(_0x3dcefc,_0x3c1edc);}catch{}}export function writeConfigFile(_0xae1bd0,_0x3b22a5){const _0x1e9bf9=a64_0x3c1293,_0x13a614=dirname(_0xae1bd0);!existsSync(_0x13a614)&&mkdirSync(_0x13a614,{'recursive':!![]});const _0x259fb8=_0xae1bd0+_0x1e9bf9(0x1bc);try{writeFileSync(_0x259fb8,JSON[_0x1e9bf9(0x1e0)](_0x3b22a5,null,0x2)+'\x0a',{'encoding':_0x1e9bf9(0x1ab),'mode':0x180});try{renameSync(_0x259fb8,_0xae1bd0);}catch(_0x2da3e5){if(_0x2da3e5[_0x1e9bf9(0x1d4)]===_0x1e9bf9(0x1bf)||_0x2da3e5[_0x1e9bf9(0x1d4)]===_0x1e9bf9(0x1e5)||_0x2da3e5['code']===_0x1e9bf9(0x1d3)){writeFileSync(_0xae1bd0,JSON['stringify'](_0x3b22a5,null,0x2)+'\x0a',{'encoding':_0x1e9bf9(0x1ab)});try{unlinkSync(_0x259fb8);}catch{}}else throw _0x2da3e5;}}catch(_0x5284ab){try{unlinkSync(_0x259fb8);}catch{}throw _0x5284ab;}}export function isNonInteractiveMode(_0x188861){const _0xc3a1a=a64_0x3c1293;return!!(_0x188861[_0xc3a1a(0x1c0)]||_0x188861['ci']||productEnvNames('CI')[_0xc3a1a(0x1a4)](_0x4e793a=>process.env[_0x4e793a]===_0xc3a1a(0x1cd))||process.env.CI===_0xc3a1a(0x1cd)||!process[_0xc3a1a(0x1e6)][_0xc3a1a(0x1e1)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x410b80=a64_0x3c1293;if(!process[_0x410b80(0x1a3)]['isTTY'])return![];try{const _0x3323fb=process[_0x410b80(0x1a3)][_0x410b80(0x1d6)];return process[_0x410b80(0x1a3)][_0x410b80(0x1c5)](!![]),process[_0x410b80(0x1a3)][_0x410b80(0x1c5)](_0x3323fb??![]),!![];}catch{return![];}}function a64_0x339f(){const _0x1a4bcb=['write','403948fNhFzh','true','runtimeDomain','10727144SaeJfw','trim','44SOoQze','slice','EACCES','code','development','isRaw','projectConfig','locale','maxRisk','globalConfig','env','609MCnWPY','configFileNames','empty','production','stringify','isTTY','./constant/domain.js','3503555FJQYHu','ENV','EXDEV','stdout','accessKey','project','error','43746AgVtcE','stdin','some','setLogPath','parse','online','defaultApp','APPCODE','argv','utf8','string','pageSize','message','format','inherit','FORMAT','cwd','apps','1340709RdnpKH','VERBOSE','raw','daily','find','skillHubDomain','app','ACCESS_KEY','.tmp','local-alias','appcode','EPERM','nonInteractive','4742271ceWurN','global','high-risk-write','cache','setRawMode','object','12699GBOrca','authRequired','join','read'];a64_0x339f=function(){return _0x1a4bcb;};return a64_0x339f();}export async function createContext(_0x392df1){const _0xdfa5f3=a64_0x3c1293,_0x597074=readRawConfig(),_0x4ab4d8=buildConfig(_0x597074,_0x392df1);await initGlobalEnvironment(_0x4ab4d8);const {getUserDomain:_0x463f54,getApiDomain:_0xb67fce}=await import(_0xdfa5f3(0x1e2)),_0xa2e2ef={'apiDomain':_0xb67fce(),'userDomain':_0x463f54()},_0x4f43fe=await buildAuth(_0x4ab4d8);logger[_0xdfa5f3(0x1a5)](process[_0xdfa5f3(0x1b2)]());const _0x2aacc3=(CLI_BIN_NAME+'\x20'+process[_0xdfa5f3(0x1aa)][_0xdfa5f3(0x1d2)](0x2)[_0xdfa5f3(0x1c9)]('\x20'))[_0xdfa5f3(0x1d0)]();logger['setRawCommand'](_0x2aacc3);const _0x454740=isNonInteractiveMode(_0x392df1);return{'config':_0x4ab4d8,'auth':_0x4f43fe,'logger':logger,'env':_0xa2e2ef,'nonInteractive':_0x454740};}export function buildConfigFromFlags(_0x288e74){return buildConfig(readRawConfig(),_0x288e74);}export function getLocalAppAliases(_0x6d3ae3){const _0x42966c=a64_0x3c1293;return _0x6d3ae3['apps']&&typeof _0x6d3ae3['apps']===_0x42966c(0x1c6)?_0x6d3ae3[_0x42966c(0x1b3)]:{};}export function resolveLocalAppAliasCode(_0x54e523,_0xa8ebc){const _0x3d9106=a64_0x3c1293;if(!_0xa8ebc)return undefined;const _0x4ad768=getLocalAppAliases(_0x54e523)[_0xa8ebc],_0x2d5a9b=_0x4ad768?.[_0x3d9106(0x1be)];return typeof _0x2d5a9b===_0x3d9106(0x1ac)&&_0x2d5a9b[_0x3d9106(0x1d0)]()?_0x2d5a9b[_0x3d9106(0x1d0)]():undefined;}export function readAppCodeFromConfig(){const _0x2d91f8=a64_0x3c1293,_0x5d15d1=readRawConfig(),_0xe969eb=_0x5d15d1[_0x2d91f8(0x1be)]??_0x5d15d1['app'];if(typeof _0xe969eb===_0x2d91f8(0x1ac)&&_0xe969eb[_0x2d91f8(0x1d0)]())return _0xe969eb[_0x2d91f8(0x1d0)]();const _0x4b5e7b=resolveLocalAppAliasCode(_0x5d15d1,typeof _0x5d15d1['defaultApp']==='string'?_0x5d15d1[_0x2d91f8(0x1a8)]:undefined);if(_0x4b5e7b)return _0x4b5e7b;const _0x5be7cf=normalizeEnv(String(_0x5d15d1['env']||_0x2d91f8(0x1df))),_0x9ee7c2=isDaily(_0x5be7cf)?_0x2d91f8(0x1b7):isDev(_0x5be7cf)?_0x2d91f8(0x1d5):'production',_0x1a7469=resolveCachedAppCode(typeof _0x5d15d1['defaultApp']==='string'?_0x5d15d1[_0x2d91f8(0x1a8)]:undefined,_0x9ee7c2,typeof _0x5d15d1['accessKey']==='string'?_0x5d15d1[_0x2d91f8(0x1e7)]:undefined);if(_0x1a7469)return _0x1a7469;const _0x1f1e03=Object['values'](getLocalAppAliases(_0x5d15d1))[_0x2d91f8(0x1b8)](_0x33b6d6=>_0x33b6d6?.[_0x2d91f8(0x1be)]);return typeof _0x1f1e03?.['appcode']===_0x2d91f8(0x1ac)&&_0x1f1e03[_0x2d91f8(0x1be)][_0x2d91f8(0x1d0)]()?_0x1f1e03['appcode'][_0x2d91f8(0x1d0)]():undefined;}export function readScopedConfig(_0x5b7895){const _0x30e879=a64_0x3c1293,_0x455a17=_0x5b7895[_0x30e879(0x1c2)]?'global':_0x30e879(0x1e8);return readConfigFile(resolveWriteConfigPath(_0x455a17));}export function writeScopedConfig(_0x4f6a69,_0x363b96){const _0x2ecec4=a64_0x3c1293,_0x7fff39=_0x363b96[_0x2ecec4(0x1c2)]?_0x2ecec4(0x1c2):_0x2ecec4(0x1e8);writeConfigFile(resolveWriteConfigPath(_0x7fff39),_0x4f6a69);}export async function initGlobalEnvironment(_0x5051e5){const _0x39295e=a64_0x3c1293,{initEnv:_0x578e22}=await import('./constant/env.js');_0x578e22(_0x5051e5['env']);const {initDomains:_0x5afd14}=await import('./constant/domain.js');_0x5afd14({'apiDomain':_0x5051e5[_0x39295e(0x1b6)]['apiDomain']||_0x5051e5[_0x39295e(0x1b6)]['host']||undefined,'userDomain':_0x5051e5[_0x39295e(0x1b6)]['userDomain']||undefined,'runtimeDomain':_0x5051e5[_0x39295e(0x1b6)][_0x39295e(0x1ce)]||undefined,'skillHubDomain':_0x5051e5[_0x39295e(0x1b6)][_0x39295e(0x1b9)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x241af7){const _0x281262=a64_0x3c1293;if(!existsSync(_0x241af7))return{'status':'missing'};try{const _0xf89f75=readFileSync(_0x241af7,{'encoding':_0x281262(0x1ab)});if(!_0xf89f75?.['trim']())return{'status':_0x281262(0x1de)};const _0x2add36=JSON[_0x281262(0x1a6)](_0xf89f75);return{'status':'ok','data':_0x2add36};}catch(_0x5d4dd1){return{'status':_0x281262(0x1e9),'message':_0x5d4dd1 instanceof Error?_0x5d4dd1[_0x281262(0x1ae)]:String(_0x5d4dd1)};}}export function loadRawConfigLayers(_0x3c9c11){const _0x3061ec=a64_0x3c1293;let _0xb5297a={},_0x46c9d7={},_0x2acbe0,_0x5f2784;try{_0x2acbe0=resolveConfigPath(homedir());if(_0x2acbe0){const _0x47ea51=readFileSync(_0x2acbe0,{'encoding':_0x3061ec(0x1ab)});if(_0x47ea51)_0xb5297a=JSON['parse'](_0x47ea51);}}catch{}try{const _0x509a29=_0x3c9c11||process[_0x3061ec(0x1b2)]();_0x5f2784=resolveConfigPath(_0x509a29);if(_0x5f2784){const _0xd4e593=readFileSync(_0x5f2784,{'encoding':_0x3061ec(0x1ab)});if(_0xd4e593)_0x46c9d7=JSON[_0x3061ec(0x1a6)](_0xd4e593);}}catch{}return{'globalPath':_0x2acbe0,'projectPath':_0x5f2784,'globalConfig':_0xb5297a,'projectConfig':_0x46c9d7};}function mergeRawConfigLayers(_0x578c0f){const _0x4e41c6=a64_0x3c1293,{globalConfig:_0x515be1,projectConfig:_0x438e5e}=_0x578c0f;if(_0x438e5e[_0x4e41c6(0x1b0)]===![]){const _0x1382b1={..._0x438e5e};return delete _0x1382b1[_0x4e41c6(0x1b0)],_0x1382b1;}const _0x189e5c={..._0x515be1,..._0x438e5e};if('defaultApp'in _0x438e5e)_0x189e5c['defaultApp']=_0x438e5e['defaultApp'];else _0x515be1[_0x4e41c6(0x1a8)]&&(_0x189e5c[_0x4e41c6(0x1a8)]=_0x515be1[_0x4e41c6(0x1a8)]);return _0x189e5c;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x4d90ee){return mergeRawConfigLayers(loadRawConfigLayers(_0x4d90ee));}export function readRawConfigWithLayers(_0x290e2f){const _0x3324c6=loadRawConfigLayers(_0x290e2f);return{'config':mergeRawConfigLayers(_0x3324c6),'layers':_0x3324c6};}export function resolveDefaultAppSource(_0x4caef8){const _0x3670f9=a64_0x3c1293;if(_0x3670f9(0x1a8)in _0x4caef8[_0x3670f9(0x1d7)])return _0x3670f9(0x1e8);if(_0x4caef8[_0x3670f9(0x1d7)][_0x3670f9(0x1b0)]===![])return null;if(_0x4caef8[_0x3670f9(0x1da)][_0x3670f9(0x1a8)])return _0x3670f9(0x1c2);return null;}function buildConfig(_0x564596,_0x1ff14d){const _0x4d07cb=a64_0x3c1293,_0x558ae9=_0x564596[_0x4d07cb(0x1a8)]||undefined,_0x146625=_0x1ff14d[_0x4d07cb(0x1ba)]||env('APP')||undefined,_0x5031fe=_0x146625||_0x558ae9||undefined,_0x3908a8=env(_0x4d07cb(0x1bb))||_0x564596[_0x4d07cb(0x1e7)]||undefined,_0x2d7e5e=_0x1ff14d[_0x4d07cb(0x1db)]||env(_0x4d07cb(0x1e4))||_0x564596[_0x4d07cb(0x1db)]||DEFAULT_CONFIG_VALUES[_0x4d07cb(0x1db)],_0x48b05c=normalizeEnv(String(_0x2d7e5e)),_0x28a29f=isDaily(_0x48b05c)?'daily':isDev(_0x48b05c)?_0x4d07cb(0x1d5):_0x4d07cb(0x1df),_0x43cfbb=resolveLocalAppAliasCode(_0x564596,_0x5031fe),_0x57efb5=resolveCachedAppCode(_0x5031fe,_0x28a29f,_0x3908a8),_0x9bf843=typeof _0x1ff14d[_0x4d07cb(0x1be)]===_0x4d07cb(0x1ac)?_0x1ff14d[_0x4d07cb(0x1be)]:undefined,_0x535a0f=env(_0x4d07cb(0x1a9)),_0x536446=_0x146625?undefined:_0x564596['appcode']||_0x564596[_0x4d07cb(0x1ba)]||undefined,_0x58ca50=_0x9bf843||_0x535a0f||_0x43cfbb||_0x57efb5||_0x536446||undefined,_0x1c550c=_0x9bf843?'explicit':_0x535a0f?_0x4d07cb(0x1db):_0x43cfbb?_0x4d07cb(0x1bd):_0x57efb5?_0x4d07cb(0x1c4):_0x536446?'top-level':undefined,_0x4f3881=_0x564596[_0x4d07cb(0x1d8)]||DEFAULT_CONFIG_VALUES['locale'],_0x119806=undefined,_0x3eb388=_0x1ff14d[_0x4d07cb(0x1af)]||env(_0x4d07cb(0x1b1))||_0x564596['format'],_0x110df4=normalizeLegacyOutputFormat(_0x3eb388),_0x2a8752=env('PAGE_SIZE')||_0x564596[_0x4d07cb(0x1ad)],_0x245a6b=_0x2a8752?Number(_0x2a8752)||undefined:undefined,_0x41de46=_0x564596['riskLevel']||_0x564596[_0x4d07cb(0x1d9)],_0x347f29=_0x41de46===_0x4d07cb(0x1ca)||_0x41de46===_0x4d07cb(0x1cb)||_0x41de46===_0x4d07cb(0x1c3)?_0x41de46:DEFAULT_CONFIG_VALUES['riskLevel'],_0x207b01=env(_0x4d07cb(0x1b5)),_0x5ec286=_0x207b01==='1'||_0x207b01==='true';return{'appCode':typeof _0x58ca50==='string'&&_0x58ca50['trim']()?_0x58ca50[_0x4d07cb(0x1d0)]():undefined,'appCodeSource':_0x1c550c,'env':_0x28a29f,'locale':_0x4f3881,'cookie':_0x119806,'accessKey':_0x3908a8,'format':_0x110df4,'pageSize':_0x245a6b,'riskLevel':_0x347f29,'verbose':_0x5ec286,'defaultApp':_0x558ae9,'currentApp':typeof _0x5031fe===_0x4d07cb(0x1ac)?_0x5031fe:undefined,'raw':_0x564596};}function a64_0x530b(_0x1e616a,_0xb67b65){_0x1e616a=_0x1e616a-0x1a3;const _0x339f42=a64_0x339f();let _0x530b9e=_0x339f42[_0x1e616a];return _0x530b9e;}function env(_0x33e10e){return productEnv(_0x33e10e);}async function buildAuth(_0x30ec4d){const _0x5d0600=a64_0x3c1293,_0x52be54='',_0x33a509=!!_0x30ec4d[_0x5d0600(0x1e7)];return{'cookie':_0x52be54,'isLoggedIn':_0x33a509,async 'getOrLogin'(){const _0x36ad57=_0x5d0600;if(_0x33a509)return _0x52be54;throw CliErrors[_0x36ad57(0x1c8)]();}};}
1
+ const a64_0x454d9a=a64_0x1a00;(function(_0x1b9547,_0x522677){const _0x3e67fd=a64_0x1a00,_0x8b5c04=_0x1b9547();while(!![]){try{const _0x31ef10=-parseInt(_0x3e67fd(0x10f))/0x1+parseInt(_0x3e67fd(0x104))/0x2+-parseInt(_0x3e67fd(0xe2))/0x3*(parseInt(_0x3e67fd(0xe0))/0x4)+parseInt(_0x3e67fd(0xdf))/0x5+-parseInt(_0x3e67fd(0xe7))/0x6+-parseInt(_0x3e67fd(0x106))/0x7+-parseInt(_0x3e67fd(0x114))/0x8*(-parseInt(_0x3e67fd(0xec))/0x9);if(_0x31ef10===_0x522677)break;else _0x8b5c04['push'](_0x8b5c04['shift']());}catch(_0x18e733){_0x8b5c04['push'](_0x8b5c04['shift']());}}}(a64_0x110f,0x41c97));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';function a64_0x1a00(_0x59471f,_0x5e4ade){_0x59471f=_0x59471f-0xd5;const _0x110f06=a64_0x110f();let _0x1a00bd=_0x110f06[_0x59471f];return _0x1a00bd;}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_0x454d9a(0xfe)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a64_0x454d9a(0xf1)];function resolveConfigPath(_0x5e7810){for(const _0x1d942a of CONFIG_NAMES){const _0x117604=resolve(_0x5e7810,_0x1d942a);if(existsSync(_0x117604))return _0x117604;}return undefined;}export function resolveWriteConfigPath(_0x269c25){const _0x2f9c6e=a64_0x454d9a,_0x4cac2f=_0x269c25===_0x2f9c6e(0x110)?process['cwd']():homedir(),_0x5f1ed8=resolveConfigPath(_0x4cac2f);return _0x5f1ed8??resolve(_0x4cac2f,NEW_CONFIG_NAME);}export function readConfigFile(_0x26f20b){const _0x3ca76a=a64_0x454d9a;try{if(existsSync(_0x26f20b)){const _0x33b9cc=readFileSync(_0x26f20b,{'encoding':_0x3ca76a(0x108)});if(_0x33b9cc){const _0x86ce85=JSON[_0x3ca76a(0xe3)](_0x33b9cc);return migrateOnlineEnv(_0x26f20b,_0x86ce85),_0x86ce85;}}}catch{}return{};}function migrateOnlineEnv(_0x108e07,_0x4f5ba8){const _0x512894=a64_0x454d9a;let _0x4c69de=![];_0x4f5ba8[_0x512894(0xf9)]===_0x512894(0x10d)&&(_0x4f5ba8[_0x512894(0xf9)]=_0x512894(0xfd),_0x4c69de=!![]);if(_0x4f5ba8[_0x512894(0xe9)]&&typeof _0x4f5ba8[_0x512894(0xe9)]===_0x512894(0x103))for(const _0xaffc84 of Object[_0x512894(0xf7)](_0x4f5ba8[_0x512894(0xe9)])){_0xaffc84&&_0xaffc84[_0x512894(0xf9)]===_0x512894(0x10d)&&(_0xaffc84[_0x512894(0xf9)]=_0x512894(0xfd),_0x4c69de=!![]);}if(_0x4c69de)try{writeConfigFile(_0x108e07,_0x4f5ba8);}catch{}}export function writeConfigFile(_0x55e3a1,_0x48139b){const _0x7f617f=a64_0x454d9a,_0x3ecd7a=dirname(_0x55e3a1);!existsSync(_0x3ecd7a)&&mkdirSync(_0x3ecd7a,{'recursive':!![]});const _0x251946=_0x55e3a1+_0x7f617f(0x100);try{writeFileSync(_0x251946,JSON['stringify'](_0x48139b,null,0x2)+'\x0a',{'encoding':_0x7f617f(0x108),'mode':0x180});try{renameSync(_0x251946,_0x55e3a1);}catch(_0x4ae91b){if(_0x4ae91b[_0x7f617f(0xfb)]===_0x7f617f(0xf5)||_0x4ae91b[_0x7f617f(0xfb)]===_0x7f617f(0xea)||_0x4ae91b['code']==='EACCES'){writeFileSync(_0x55e3a1,JSON[_0x7f617f(0xe6)](_0x48139b,null,0x2)+'\x0a',{'encoding':_0x7f617f(0x108)});try{unlinkSync(_0x251946);}catch{}}else throw _0x4ae91b;}}catch(_0xea53b5){try{unlinkSync(_0x251946);}catch{}throw _0xea53b5;}}export function isNonInteractiveMode(_0x9bddb7){const _0xba7188=a64_0x454d9a;return!!(_0x9bddb7['nonInteractive']||_0x9bddb7['ci']||productEnvNames('CI')['some'](_0x307bac=>process.env[_0x307bac]==='true')||process.env.CI===_0xba7188(0x112)||!process[_0xba7188(0xf2)][_0xba7188(0x118)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x32b253=a64_0x454d9a;if(!process['stdin']['isTTY'])return![];try{const _0x30dfbd=process[_0x32b253(0xfc)][_0x32b253(0xdd)];return process['stdin'][_0x32b253(0x116)](!![]),process[_0x32b253(0xfc)][_0x32b253(0x116)](_0x30dfbd??![]),!![];}catch{return![];}}export async function createContext(_0x153273){const _0x401511=a64_0x454d9a,_0x205bf9=readRawConfig(),_0x3c5965=buildConfig(_0x205bf9,_0x153273);await initGlobalEnvironment(_0x3c5965);const {getUserDomain:_0x704b1d,getApiDomain:_0xa3d6c5}=await import('./constant/domain.js'),_0x368b6d={'apiDomain':_0xa3d6c5(),'userDomain':_0x704b1d()},_0x1cc4ac=await buildAuth(_0x3c5965);logger['setLogPath'](process[_0x401511(0xd5)]());const _0x4a44dc=(CLI_BIN_NAME+'\x20'+process[_0x401511(0x111)]['slice'](0x2)[_0x401511(0x117)]('\x20'))[_0x401511(0x107)]();logger[_0x401511(0xee)](_0x4a44dc);const _0x548596=isNonInteractiveMode(_0x153273);return{'config':_0x3c5965,'auth':_0x1cc4ac,'logger':logger,'env':_0x368b6d,'nonInteractive':_0x548596};}export function buildConfigFromFlags(_0x44abb3){return buildConfig(readRawConfig(),_0x44abb3);}export function getLocalAppAliases(_0x177088){const _0x444abe=a64_0x454d9a;return _0x177088['apps']&&typeof _0x177088['apps']==='object'?_0x177088[_0x444abe(0xe9)]:{};}export function resolveLocalAppAliasCode(_0x586b85,_0x291219){const _0x4215da=a64_0x454d9a;if(!_0x291219)return undefined;const _0xe61f1e=getLocalAppAliases(_0x586b85)[_0x291219],_0x2a13c7=_0xe61f1e?.[_0x4215da(0x10e)];return typeof _0x2a13c7===_0x4215da(0xe5)&&_0x2a13c7[_0x4215da(0x107)]()?_0x2a13c7['trim']():undefined;}export function readAppCodeFromConfig(){const _0x5d8544=a64_0x454d9a,_0x36cf1e=readRawConfig(),_0x2619f0=_0x36cf1e[_0x5d8544(0x10e)]??_0x36cf1e[_0x5d8544(0xed)];if(typeof _0x2619f0===_0x5d8544(0xe5)&&_0x2619f0[_0x5d8544(0x107)]())return _0x2619f0[_0x5d8544(0x107)]();const _0x3468d7=resolveLocalAppAliasCode(_0x36cf1e,typeof _0x36cf1e[_0x5d8544(0x101)]===_0x5d8544(0xe5)?_0x36cf1e['defaultApp']:undefined);if(_0x3468d7)return _0x3468d7;const _0x3ab51d=normalizeEnv(String(_0x36cf1e[_0x5d8544(0xf9)]||_0x5d8544(0xfd))),_0x2c6d45=isDaily(_0x3ab51d)?_0x5d8544(0xeb):isDev(_0x3ab51d)?_0x5d8544(0xef):_0x5d8544(0xfd),_0x21d814=resolveCachedAppCode(typeof _0x36cf1e[_0x5d8544(0x101)]===_0x5d8544(0xe5)?_0x36cf1e['defaultApp']:undefined,_0x2c6d45,typeof _0x36cf1e['accessKey']===_0x5d8544(0xe5)?_0x36cf1e[_0x5d8544(0xd6)]:undefined);if(_0x21d814)return _0x21d814;const _0x1e4fae=Object[_0x5d8544(0xf7)](getLocalAppAliases(_0x36cf1e))['find'](_0x2e461c=>_0x2e461c?.[_0x5d8544(0x10e)]);return typeof _0x1e4fae?.[_0x5d8544(0x10e)]===_0x5d8544(0xe5)&&_0x1e4fae['appcode'][_0x5d8544(0x107)]()?_0x1e4fae[_0x5d8544(0x10e)][_0x5d8544(0x107)]():undefined;}export function readScopedConfig(_0x116948){const _0x352449=a64_0x454d9a,_0x256992=_0x116948[_0x352449(0xde)]?_0x352449(0xde):_0x352449(0x110);return readConfigFile(resolveWriteConfigPath(_0x256992));}export function writeScopedConfig(_0x881767,_0x3e490e){const _0x57b3af=a64_0x454d9a,_0x4413fd=_0x3e490e[_0x57b3af(0xde)]?_0x57b3af(0xde):_0x57b3af(0x110);writeConfigFile(resolveWriteConfigPath(_0x4413fd),_0x881767);}export async function initGlobalEnvironment(_0x50035a){const _0x57e86c=a64_0x454d9a,{initEnv:_0x512e6c}=await import(_0x57e86c(0xe4));_0x512e6c(_0x50035a[_0x57e86c(0xf9)]);const {initDomains:_0x5bd891}=await import(_0x57e86c(0x10c));_0x5bd891({'apiDomain':_0x50035a['raw']['apiDomain']||_0x50035a['raw'][_0x57e86c(0xfa)]||undefined,'userDomain':_0x50035a[_0x57e86c(0x105)][_0x57e86c(0xdb)]||undefined,'runtimeDomain':_0x50035a['raw'][_0x57e86c(0xd8)]||undefined,'skillHubDomain':_0x50035a['raw'][_0x57e86c(0xf0)]||undefined});}export function getProjectConfigPath(){const _0x578d50=a64_0x454d9a;return resolveConfigPath(process[_0x578d50(0xd5)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x3a87db){const _0x2bc620=a64_0x454d9a;if(!existsSync(_0x3a87db))return{'status':'missing'};try{const _0x38e980=readFileSync(_0x3a87db,{'encoding':_0x2bc620(0x108)});if(!_0x38e980?.['trim']())return{'status':_0x2bc620(0x10a)};const _0xbcc248=JSON[_0x2bc620(0xe3)](_0x38e980);return{'status':'ok','data':_0xbcc248};}catch(_0x157e4d){return{'status':_0x2bc620(0xf8),'message':_0x157e4d instanceof Error?_0x157e4d[_0x2bc620(0x102)]:String(_0x157e4d)};}}export function loadRawConfigLayers(_0x12d8c0){const _0x3b54ef=a64_0x454d9a;let _0x3b44dc={},_0x509a97={},_0x1d03ed,_0x290fb8;try{_0x1d03ed=resolveConfigPath(homedir());if(_0x1d03ed){const _0x2a7854=readFileSync(_0x1d03ed,{'encoding':_0x3b54ef(0x108)});if(_0x2a7854)_0x3b44dc=JSON[_0x3b54ef(0xe3)](_0x2a7854);}}catch{}try{const _0x8d7599=_0x12d8c0||process[_0x3b54ef(0xd5)]();_0x290fb8=resolveConfigPath(_0x8d7599);if(_0x290fb8){const _0x159b4b=readFileSync(_0x290fb8,{'encoding':'utf8'});if(_0x159b4b)_0x509a97=JSON[_0x3b54ef(0xe3)](_0x159b4b);}}catch{}return{'globalPath':_0x1d03ed,'projectPath':_0x290fb8,'globalConfig':_0x3b44dc,'projectConfig':_0x509a97};}function mergeRawConfigLayers(_0x45042d){const _0x1bdd95=a64_0x454d9a,{globalConfig:_0x4bfb96,projectConfig:_0x518436}=_0x45042d;if(_0x518436[_0x1bdd95(0xe1)]===![]){const _0x51ca0b={..._0x518436};return delete _0x51ca0b['inherit'],_0x51ca0b;}const _0x18f044={..._0x4bfb96,..._0x518436};if(_0x1bdd95(0x101)in _0x518436)_0x18f044['defaultApp']=_0x518436[_0x1bdd95(0x101)];else _0x4bfb96[_0x1bdd95(0x101)]&&(_0x18f044[_0x1bdd95(0x101)]=_0x4bfb96['defaultApp']);return _0x18f044;}export function isInProject(){return!!getProjectConfigPath();}function a64_0x110f(){const _0x2b7904=['values','error','env','host','code','stdin','production','configFileNames','APPCODE','.tmp','defaultApp','message','object','883332dNdqQb','raw','843269MBSaTq','trim','utf8','maxRisk','empty','projectConfig','./constant/domain.js','online','appcode','97572saMEqZ','project','argv','true','PAGE_SIZE','20848MusxsT','riskLevel','setRawMode','join','isTTY','cwd','accessKey','write','runtimeDomain','locale','format','userDomain','APP','isRaw','global','1825710QpsBCE','10776ZhBLkA','inherit','84fhjIea','parse','./constant/env.js','string','stringify','1572696DIHdlw','local-alias','apps','EXDEV','daily','63sZqfJT','app','setRawCommand','development','skillHubDomain','newConfigFileName','stdout','top-level','globalConfig','EPERM','ACCESS_KEY'];a64_0x110f=function(){return _0x2b7904;};return a64_0x110f();}export function readRawConfig(_0x40b06e){return mergeRawConfigLayers(loadRawConfigLayers(_0x40b06e));}export function readRawConfigWithLayers(_0x4ce667){const _0x220a31=loadRawConfigLayers(_0x4ce667);return{'config':mergeRawConfigLayers(_0x220a31),'layers':_0x220a31};}export function resolveDefaultAppSource(_0x32bbff){const _0x163b8c=a64_0x454d9a;if('defaultApp'in _0x32bbff['projectConfig'])return _0x163b8c(0x110);if(_0x32bbff[_0x163b8c(0x10b)][_0x163b8c(0xe1)]===![])return null;if(_0x32bbff[_0x163b8c(0xf4)][_0x163b8c(0x101)])return _0x163b8c(0xde);return null;}function buildConfig(_0x41ac26,_0x29ca5b){const _0x4b6bfd=a64_0x454d9a,_0x1def28=_0x41ac26['defaultApp']||undefined,_0x23a894=_0x29ca5b[_0x4b6bfd(0xed)]||env(_0x4b6bfd(0xdc))||undefined,_0x10d52f=_0x23a894||_0x1def28||undefined,_0x1b574f=env(_0x4b6bfd(0xf6))||_0x41ac26['accessKey']||undefined,_0x259a16=_0x29ca5b['env']||env('ENV')||_0x41ac26[_0x4b6bfd(0xf9)]||DEFAULT_CONFIG_VALUES[_0x4b6bfd(0xf9)],_0x1e4d48=normalizeEnv(String(_0x259a16)),_0x351f9f=isDaily(_0x1e4d48)?'daily':isDev(_0x1e4d48)?'development':_0x4b6bfd(0xfd),_0x4e60a0=resolveLocalAppAliasCode(_0x41ac26,_0x10d52f),_0x23e686=resolveCachedAppCode(_0x10d52f,_0x351f9f,_0x1b574f),_0x31e93f=typeof _0x29ca5b[_0x4b6bfd(0x10e)]===_0x4b6bfd(0xe5)?_0x29ca5b[_0x4b6bfd(0x10e)]:undefined,_0x30775f=env(_0x4b6bfd(0xff)),_0x26057b=_0x23a894?undefined:_0x41ac26[_0x4b6bfd(0x10e)]||_0x41ac26[_0x4b6bfd(0xed)]||undefined,_0x1929b3=_0x31e93f||_0x30775f||_0x4e60a0||_0x23e686||_0x26057b||undefined,_0x2fae13=_0x31e93f?'explicit':_0x30775f?_0x4b6bfd(0xf9):_0x4e60a0?_0x4b6bfd(0xe8):_0x23e686?'cache':_0x26057b?_0x4b6bfd(0xf3):undefined,_0x21caf9=_0x41ac26[_0x4b6bfd(0xd9)]||DEFAULT_CONFIG_VALUES['locale'],_0x51b44f=undefined,_0xd041ee=_0x29ca5b[_0x4b6bfd(0xda)]||env('FORMAT')||_0x41ac26[_0x4b6bfd(0xda)],_0x52407e=normalizeLegacyOutputFormat(_0xd041ee),_0x1f9788=env(_0x4b6bfd(0x113))||_0x41ac26['pageSize'],_0xe4abf9=_0x1f9788?Number(_0x1f9788)||undefined:undefined,_0x3ae0e9=_0x41ac26[_0x4b6bfd(0x115)]||_0x41ac26[_0x4b6bfd(0x109)],_0x1f5f65=_0x3ae0e9==='read'||_0x3ae0e9===_0x4b6bfd(0xd7)||_0x3ae0e9==='high-risk-write'?_0x3ae0e9:DEFAULT_CONFIG_VALUES[_0x4b6bfd(0x115)],_0x719723=env('VERBOSE'),_0x53b5f5=_0x719723==='1'||_0x719723===_0x4b6bfd(0x112);return{'appCode':typeof _0x1929b3==='string'&&_0x1929b3[_0x4b6bfd(0x107)]()?_0x1929b3[_0x4b6bfd(0x107)]():undefined,'appCodeSource':_0x2fae13,'env':_0x351f9f,'locale':_0x21caf9,'cookie':_0x51b44f,'accessKey':_0x1b574f,'format':_0x52407e,'pageSize':_0xe4abf9,'riskLevel':_0x1f5f65,'verbose':_0x53b5f5,'defaultApp':_0x1def28,'currentApp':typeof _0x10d52f==='string'?_0x10d52f:undefined,'raw':_0x41ac26};}function env(_0x336e35){return productEnv(_0x336e35);}async function buildAuth(_0x120236){const _0x1d288f=a64_0x454d9a,_0x52f2b0='',_0x56f5f0=!!_0x120236[_0x1d288f(0xd6)];return{'cookie':_0x52f2b0,'isLoggedIn':_0x56f5f0,async 'getOrLogin'(){if(_0x56f5f0)return _0x52f2b0;throw CliErrors['authRequired']();}};}
@@ -1 +1 @@
1
- (function(_0x302bd2,_0x11c92a){const _0x4beb22=a65_0x2c20,_0x5931cc=_0x302bd2();while(!![]){try{const _0x393928=parseInt(_0x4beb22(0x1e9))/0x1*(parseInt(_0x4beb22(0x20c))/0x2)+parseInt(_0x4beb22(0x1f5))/0x3+parseInt(_0x4beb22(0x1c4))/0x4+parseInt(_0x4beb22(0x233))/0x5*(-parseInt(_0x4beb22(0x1c7))/0x6)+-parseInt(_0x4beb22(0x1e5))/0x7+-parseInt(_0x4beb22(0x203))/0x8*(parseInt(_0x4beb22(0x1e8))/0x9)+parseInt(_0x4beb22(0x22b))/0xa*(-parseInt(_0x4beb22(0x1cc))/0xb);if(_0x393928===_0x11c92a)break;else _0x5931cc['push'](_0x5931cc['shift']());}catch(_0x13592e){_0x5931cc['push'](_0x5931cc['shift']());}}}(a65_0x1a1f,0xdb1a8));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(_0x237da5){_activeAK=_0x237da5||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x433418,_0x4ff836={}){const _0x1498fb=a65_0x2c20,{method:method='GET',body:_0x564bfd,headers:headers={},timeout:timeout=0x7530}=_0x4ff836,_0x211894=_activeAK,_0x197955=getRuntimeDomain();if(!_0x211894)throw CliErrors[_0x1498fb(0x1d0)](_0x1498fb(0x1c9)+PRODUCT_CONFIG[_0x1498fb(0x22d)]+'.');const _0x22108a=''+_0x197955+_0x433418,_0xf4ef7f={'X-User-AK':_0x211894},_0x21573f=new AbortController(),_0x3e676c=setTimeout(()=>_0x21573f[_0x1498fb(0x1fd)](),timeout);try{const _0x3c0819=await fetch(_0x22108a,{'method':method,'headers':{'Content-Type':_0x1498fb(0x214),'X-Invoke-Source':PRODUCT_CONFIG[_0x1498fb(0x1cd)],..._0xf4ef7f,...headers},'body':_0x564bfd?JSON[_0x1498fb(0x222)](_0x564bfd):undefined,'signal':_0x21573f[_0x1498fb(0x22a)]});let _0x175df9;try{_0x175df9=await _0x3c0819[_0x1498fb(0x1f1)]();}catch{throw CliErrors[_0x1498fb(0x204)](_0x1498fb(0x1e2)+_0x3c0819[_0x1498fb(0x1de)]+')',_0x3c0819['status']>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x3c0819['ok']||_0x175df9[_0x1498fb(0x1db)]===![])throw CliErrors[_0x1498fb(0x204)](_0x175df9[_0x1498fb(0x1e4)]||_0x175df9[_0x1498fb(0x1f4)]||_0x1498fb(0x1c1)+_0x3c0819[_0x1498fb(0x1de)],_0x175df9['errorCode']?'API\x20error\x20code:\x20'+_0x175df9[_0x1498fb(0x1c6)]:undefined);return _0x175df9;}catch(_0x2fdb77){if(_0x2fdb77 instanceof Error&&_0x2fdb77[_0x1498fb(0x1d4)]==='AbortError')throw CliErrors[_0x1498fb(0x204)]('Request\x20timeout:\x20'+_0x22108a);throw _0x2fdb77;}finally{clearTimeout(_0x3e676c);}}async function apiBinaryRequest(_0x3c1dd0,_0x4fe54a={}){const _0x187354=a65_0x2c20,{method:method=_0x187354(0x1ef),headers:headers={},timeout:timeout=0x7530}=_0x4fe54a,_0x3d6831=_activeAK,_0xa11b9c=getRuntimeDomain();if(!_0x3d6831)throw CliErrors[_0x187354(0x1d0)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x187354(0x22d)]+'.');const _0x209ff1=''+_0xa11b9c+_0x3c1dd0,_0x354c75=new AbortController(),_0x29f41d=setTimeout(()=>_0x354c75['abort'](),timeout);try{const _0x345968=await fetch(_0x209ff1,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x187354(0x1cd)],'X-User-AK':_0x3d6831,...headers},'signal':_0x354c75[_0x187354(0x22a)]});if(!_0x345968['ok']){let _0x5d5ee1;try{const _0x4553b0=await _0x345968[_0x187354(0x1f1)]();_0x5d5ee1=_0x4553b0['errorMsg']||_0x4553b0[_0x187354(0x1f4)]||_0x4553b0[_0x187354(0x1c6)];}catch{_0x5d5ee1=await _0x345968[_0x187354(0x1da)]()[_0x187354(0x1f9)](()=>undefined);}throw CliErrors[_0x187354(0x204)](_0x5d5ee1||_0x187354(0x1c1)+_0x345968['status'],_0x187354(0x1dc)+_0x209ff1);}return Buffer['from'](await _0x345968[_0x187354(0x1f0)]());}catch(_0x4f006c){if(_0x4f006c instanceof Error&&_0x4f006c[_0x187354(0x1d4)]==='AbortError')throw CliErrors[_0x187354(0x204)](_0x187354(0x1f8)+_0x209ff1);throw _0x4f006c;}finally{clearTimeout(_0x29f41d);}}async function toolboxRequest(_0x4a142a,_0x4553de,_0x38050c={}){const _0xf67732=a65_0x2c20,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x38050c,_0x182171=_activeAK;if(!_0x182171)throw CliErrors[_0xf67732(0x1d0)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0xf67732(0x22d)]+'.');const _0x41dcda=getApiDomain()[_0xf67732(0x223)](/\/$/,''),_0x111d10=new URL(_0x4a142a,_0x41dcda+_0xf67732(0x220));if(_0x4553de)for(const [_0x522d70,_0x200121]of Object['entries'](_0x4553de)){_0x200121!==undefined&&_0x200121!==null&&_0x111d10[_0xf67732(0x1f2)][_0xf67732(0x1c8)](_0x522d70,String(_0x200121));}const _0x48f1a3=new AbortController(),_0x517471=setTimeout(()=>_0x48f1a3[_0xf67732(0x1fd)](),timeout);try{const _0x3f385f=await fetch(_0x111d10,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0xf67732(0x1cd)],'X-User-AK':_0x182171,...headers},'signal':_0x48f1a3['signal']});let _0xfdbbda;try{_0xfdbbda=await _0x3f385f[_0xf67732(0x1f1)]();}catch{throw CliErrors[_0xf67732(0x204)](_0xf67732(0x236)+_0x3f385f[_0xf67732(0x1de)]+')',_0x3f385f[_0xf67732(0x1de)]>=0x190?_0xf67732(0x1d5):undefined);}if(!_0x3f385f['ok']){const _0x46d66a=_0xfdbbda&&typeof _0xfdbbda===_0xf67732(0x1ec)?_0xfdbbda:{};throw CliErrors[_0xf67732(0x204)](_0x46d66a[_0xf67732(0x1e4)]||_0x46d66a['message']||_0xf67732(0x1d9)+_0x3f385f[_0xf67732(0x1de)],_0x46d66a[_0xf67732(0x1c6)]?_0xf67732(0x22f)+_0x46d66a[_0xf67732(0x1c6)]:undefined);}if(_0xfdbbda&&typeof _0xfdbbda===_0xf67732(0x1ec)&&_0xf67732(0x1db)in _0xfdbbda&&typeof _0xfdbbda[_0xf67732(0x1db)]===_0xf67732(0x1cb)){const _0x32bcaa=_0xfdbbda;if(!_0x32bcaa['success'])throw CliErrors['apiError'](_0x32bcaa[_0xf67732(0x1e4)]||_0x32bcaa[_0xf67732(0x1f4)]||_0xf67732(0x1fb),_0x32bcaa[_0xf67732(0x1c6)]?_0xf67732(0x22f)+_0x32bcaa[_0xf67732(0x1c6)]:undefined);return _0x32bcaa[_0xf67732(0x218)];}return _0xfdbbda;}catch(_0x2fb992){if(_0x2fb992 instanceof Error&&_0x2fb992[_0xf67732(0x1d4)]===_0xf67732(0x219))throw CliErrors[_0xf67732(0x204)]('Request\x20timeout:\x20'+_0x111d10[_0xf67732(0x205)]());throw _0x2fb992;}finally{clearTimeout(_0x517471);}}async function skillHubJsonRequest(_0xadece5,_0x36dc54={}){const _0x15417c=a65_0x2c20,{method:method=_0x15417c(0x1ef),query:_0x156d6d,body:_0x3403d4,headers:headers={},timeout:timeout=0x7530}=_0x36dc54,_0x388e47=_activeAK;if(!_0x388e47)throw CliErrors[_0x15417c(0x1d0)](_0x15417c(0x1c9)+PRODUCT_CONFIG[_0x15417c(0x22d)]+'.');const _0x2361dd=getSkillHubDomain()[_0x15417c(0x223)](/\/$/,''),_0x1fbb2c=new URL(_0xadece5,_0x2361dd+'/');if(_0x156d6d)for(const [_0x26acf9,_0x4cd5f6]of Object[_0x15417c(0x22e)](_0x156d6d)){_0x4cd5f6!==undefined&&_0x4cd5f6!==null&&_0x1fbb2c['searchParams'][_0x15417c(0x1c8)](_0x26acf9,String(_0x4cd5f6));}const _0xca5d6e=new AbortController(),_0xe1b1b3=setTimeout(()=>_0xca5d6e[_0x15417c(0x1fd)](),timeout);try{const _0x1be947=await fetch(_0x1fbb2c[_0x15417c(0x205)](),{'method':method,'headers':{'Accept':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x15417c(0x1cd)],'X-User-AK':_0x388e47,...headers},'body':_0x3403d4,'signal':_0xca5d6e['signal']});let _0x2892b5;try{_0x2892b5=await _0x1be947[_0x15417c(0x1f1)]();}catch{throw CliErrors[_0x15417c(0x204)](_0x15417c(0x216)+_0x1be947[_0x15417c(0x1de)]+')',_0x1be947[_0x15417c(0x1de)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x27df22=!_0x1be947['ok']||_0x2892b5?.[_0x15417c(0x1db)]===![]||typeof _0x2892b5?.[_0x15417c(0x1e0)]==='number'&&_0x2892b5[_0x15417c(0x1e0)]>=0x190;if(_0x27df22)throw CliErrors[_0x15417c(0x204)](_0x2892b5?.[_0x15417c(0x1e4)]||_0x2892b5?.['message']||_0x2892b5?.[_0x15417c(0x1be)]||_0x15417c(0x1dd)+_0x1be947['status'],_0x2892b5?.[_0x15417c(0x1c6)]?_0x15417c(0x227)+_0x2892b5[_0x15417c(0x1c6)]:undefined);return _0x2892b5?.[_0x15417c(0x218)]??_0x2892b5;}catch(_0x177ce8){if(_0x177ce8 instanceof Error&&_0x177ce8[_0x15417c(0x1d4)]===_0x15417c(0x219))throw CliErrors[_0x15417c(0x204)](_0x15417c(0x1f8)+_0x1fbb2c[_0x15417c(0x205)]());throw _0x177ce8;}finally{clearTimeout(_0xe1b1b3);}}async function skillHubBinaryRequest(_0x51bd60,_0x39ce8a={}){const _0x4d804a=a65_0x2c20,{query:_0x1c9c54,headers:headers={},timeout:timeout=0x7530}=_0x39ce8a,_0x483290=_activeAK;if(!_0x483290)throw CliErrors['authRequired'](_0x4d804a(0x1c9)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x3e8009=getSkillHubDomain()[_0x4d804a(0x223)](/\/$/,''),_0x7590db=new URL(_0x51bd60,_0x3e8009+'/');if(_0x1c9c54)for(const [_0x1befbc,_0x25b8dc]of Object[_0x4d804a(0x22e)](_0x1c9c54)){_0x25b8dc!==undefined&&_0x25b8dc!==null&&_0x7590db[_0x4d804a(0x1f2)][_0x4d804a(0x1c8)](_0x1befbc,String(_0x25b8dc));}const _0x336078=new AbortController(),_0x597bfa=setTimeout(()=>_0x336078[_0x4d804a(0x1fd)](),timeout);try{const _0x270b46=await fetch(_0x7590db[_0x4d804a(0x205)](),{'method':'GET','headers':{'Accept':'application/octet-stream','X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x483290,...headers},'signal':_0x336078[_0x4d804a(0x22a)]});if(!_0x270b46['ok']){let _0x9b4e90;try{const _0x5d2ed8=await _0x270b46[_0x4d804a(0x1f1)]();_0x9b4e90=_0x5d2ed8['errorMsg']||_0x5d2ed8['message']||_0x5d2ed8[_0x4d804a(0x1be)]||_0x5d2ed8[_0x4d804a(0x1c6)];}catch{_0x9b4e90=await _0x270b46[_0x4d804a(0x1da)]()[_0x4d804a(0x1f9)](()=>undefined);}throw CliErrors['apiError'](_0x9b4e90||_0x4d804a(0x1dd)+_0x270b46[_0x4d804a(0x1de)],_0x4d804a(0x1dc)+_0x7590db['toString']());}return Buffer['from'](await _0x270b46['arrayBuffer']());}catch(_0x487d9e){if(_0x487d9e instanceof Error&&_0x487d9e[_0x4d804a(0x1d4)]===_0x4d804a(0x219))throw CliErrors[_0x4d804a(0x204)]('Request\x20timeout:\x20'+_0x7590db[_0x4d804a(0x205)]());throw _0x487d9e;}finally{clearTimeout(_0x597bfa);}}function a65_0x1a1f(){const _0x3a80de=['status','source','code','/client/dataset/list','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/update','errorMsg','7922180jYjvjY','undefined','appName','9BHuRLj','6740qHcwtu','version','?appCode=','object','base64','/client/runtime-bff/personal/create','GET','arrayBuffer','json','searchParams','appCode','message','3334782QwTPcA','values','/client/artifact/','Request\x20timeout:\x20','catch','/client/sql/query','Toolbox\x20API\x20error','query','abort','visibility','markdown','sqlCode','Artifact\x20not\x20found:\x20id=','SQL\x20query\x20not\x20found:\x20','7349432OWzGAI','apiError','toString','/client/artifact/create','packageBase64','application/zip','scope','string','/api/runtime/v1/namespaces/','356yqUmCx','BFF\x20script\x20not\x20found:\x20id=','headlineVersion','file','api-doc-generator','filter','/client/artifact/list?','/client/knowledge-base/search','application/json','/client/knowledge-base/personal/create','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/versions/','data','AbortError','from','/execute?appCode=','personal','effective','skillCode','skillName','/api/node-toolbox/','validation','stringify','replace','items','tableData','POST','SkillHub\x20error\x20code:\x20','/client/runtime-bff/personal/','topK','signal','4258510GUhQqn','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','newConfigFileName','entries','Toolbox\x20error\x20code:\x20','Knowledge-base\x20entry\x20not\x20found:\x20id=','favorite','all','95655KoGwYn','/client/knowledge-base/personal/list?appCode=','/client/app/my-apps','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/publish','content','skill','/client/knowledge-base/personal/','msg','trim','Missing\x20Skill\x20package\x20payload.','API\x20error:\x20','artifactType','slug','7081004taMRgC','tags','errorCode','222kogaAt','set','Configure\x20accessKey\x20in\x20','/client/runtime-bff/personal/list?appCode=','boolean','11fGoeUq','invokeSource','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','company','authRequired','publishedVersion','NAMESPACE_ONLY','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','name','Check\x20your\x20credentials\x20and\x20try\x20again.','isArray','ownerPreviewVersion','/api/cli/v1/skills/','Toolbox\x20API\x20error:\x20','text','success','Download\x20failed:\x20','SkillHub\x20API\x20error:\x20'];a65_0x1a1f=function(){return _0x3a80de;};return a65_0x1a1f();}export async function getBffScriptInfo(_0x13e7b6){const _0x1b3fab=a65_0x2c20,_0x18f25d=await apiRequest('/client/bff/query/'+_0x13e7b6);if(!_0x18f25d[_0x1b3fab(0x218)])throw CliErrors[_0x1b3fab(0x221)](_0x1b3fab(0x20d)+_0x13e7b6);return _0x18f25d[_0x1b3fab(0x218)];}export async function getSqlQueryInfo(_0x5eadf7,_0x45c8f6){const _0x521f18=a65_0x2c20,_0x5f529c=await apiRequest(_0x521f18(0x1fa),{'method':_0x521f18(0x226),'body':{'appCode':_0x5eadf7,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x45c8f6}}),_0x3d3d65=_0x5f529c['data'],_0x14845c=_0x3d3d65&&typeof _0x3d3d65==='object'&&'tableData'in _0x3d3d65?_0x3d3d65[_0x521f18(0x225)]?.[0x0]:_0x3d3d65&&typeof _0x3d3d65===_0x521f18(0x1ec)&&_0x521f18(0x200)in _0x3d3d65?_0x3d3d65:undefined;if(!_0x14845c)throw CliErrors[_0x521f18(0x221)](_0x521f18(0x202)+_0x45c8f6);return _0x14845c;}function isRemoteAppItem(_0x51aa04){const _0x3b56ce=a65_0x2c20;return!!_0x51aa04&&typeof _0x51aa04===_0x3b56ce(0x1ec)&&typeof _0x51aa04[_0x3b56ce(0x1f3)]===_0x3b56ce(0x20a)&&typeof _0x51aa04[_0x3b56ce(0x1e7)]===_0x3b56ce(0x20a);}function extractRemoteAppItems(_0x277ec9){const _0x1769b1=a65_0x2c20;if(Array[_0x1769b1(0x1d6)](_0x277ec9))return _0x277ec9[_0x1769b1(0x211)](isRemoteAppItem);if(!_0x277ec9||typeof _0x277ec9!==_0x1769b1(0x1ec))throw CliErrors['apiError'](_0x1769b1(0x1ce));const _0x2288d9=_0x277ec9;if(Array[_0x1769b1(0x1d6)](_0x2288d9[_0x1769b1(0x225)]))return _0x2288d9['tableData'][_0x1769b1(0x211)](isRemoteAppItem);if(_0x2288d9[_0x1769b1(0x218)]&&typeof _0x2288d9[_0x1769b1(0x218)]==='object'){const _0x3e5dcf=_0x2288d9[_0x1769b1(0x218)];if(Array[_0x1769b1(0x1d6)](_0x3e5dcf[_0x1769b1(0x225)]))return _0x3e5dcf[_0x1769b1(0x225)][_0x1769b1(0x211)](isRemoteAppItem);}throw CliErrors[_0x1769b1(0x204)](_0x1769b1(0x1d3));}export async function getMyApps(){const _0x4af1d3=a65_0x2c20,_0xad756a=await apiRequest(_0x4af1d3(0x235));return extractRemoteAppItems(_0xad756a[_0x4af1d3(0x218)]);}export async function getLoginUserInfo(){const _0x307d35=a65_0x2c20,_0x2aecce=await apiRequest('/client/user/loginUserInfo');if(!_0x2aecce[_0x307d35(0x218)]||typeof _0x2aecce[_0x307d35(0x218)]!=='object'||Array[_0x307d35(0x1d6)](_0x2aecce[_0x307d35(0x218)]))throw CliErrors[_0x307d35(0x204)](_0x307d35(0x22c));return _0x2aecce[_0x307d35(0x218)];}export async function listDatasets(_0x2a0496,_0x18cfa6){const _0x4e485b=a65_0x2c20,_0x244e98=await apiRequest(_0x4e485b(0x1e1),{'method':_0x4e485b(0x226),'body':{'appCode':_0x2a0496,..._0x18cfa6?.[_0x4e485b(0x1e0)]&&{'code':_0x18cfa6[_0x4e485b(0x1e0)]},..._0x18cfa6?.[_0x4e485b(0x1d4)]&&{'name':_0x18cfa6[_0x4e485b(0x1d4)]}}});return extractList(_0x244e98[_0x4e485b(0x218)]);}export async function getDatasetDetail(_0x5ce295){const _0x314f04=a65_0x2c20,_0xe5f74b=await apiRequest('/client/dataset/query?code='+encodeURIComponent(_0x5ce295));return _0xe5f74b[_0x314f04(0x218)];}export async function getDatasetSdkUsageDoc(_0x54a0c4,_0x51484b){const _0xd539c0=a65_0x2c20,_0x4c35fe=await toolboxRequest(_0xd539c0(0x210),{'datasetCode':_0x54a0c4,'appCode':_0x51484b});return typeof _0x4c35fe?.[_0xd539c0(0x1ff)]===_0xd539c0(0x20a)?_0x4c35fe[_0xd539c0(0x1ff)]:'';}export async function listRuntimeArtifacts(_0x34572d,_0x4302bc){const _0x5b3e52=a65_0x2c20,_0xa90f0d=new URLSearchParams({'appCode':_0x34572d});if(_0x4302bc?.[_0x5b3e52(0x1c2)])_0xa90f0d[_0x5b3e52(0x1c8)](_0x5b3e52(0x1c2),_0x4302bc[_0x5b3e52(0x1c2)]);if(_0x4302bc?.[_0x5b3e52(0x1df)])_0xa90f0d[_0x5b3e52(0x1c8)](_0x5b3e52(0x1df),_0x4302bc['source']);if(_0x4302bc?.['favorite']!==undefined)_0xa90f0d['set'](_0x5b3e52(0x231),String(_0x4302bc['favorite']));const _0x2ad75f=await apiRequest(_0x5b3e52(0x212)+_0xa90f0d['toString']());return Array['isArray'](_0x2ad75f['data'])?_0x2ad75f['data']:[];}export async function getRuntimeArtifact(_0x3446f1,_0x4c8833){const _0x9e99fa=a65_0x2c20,_0x55f95b=await apiRequest('/client/artifact/'+_0x3446f1+_0x9e99fa(0x1eb)+encodeURIComponent(_0x4c8833));if(!_0x55f95b[_0x9e99fa(0x218)])throw CliErrors[_0x9e99fa(0x221)](_0x9e99fa(0x201)+_0x3446f1);return _0x55f95b[_0x9e99fa(0x218)];}export async function createRuntimeArtifact(_0x3f9311,_0x569f4f){const _0x21ce72=a65_0x2c20,_0x35dbef=await apiRequest(_0x21ce72(0x206),{'method':_0x21ce72(0x226),'body':{'appCode':_0x3f9311,..._0x569f4f}});return _0x35dbef[_0x21ce72(0x218)];}export async function updateRuntimeArtifact(_0x5801aa,_0x2d9772,_0x88c1d7){const _0x2ae497=a65_0x2c20,_0x5ef8a5=await apiRequest(_0x2ae497(0x1f7)+_0x5801aa+_0x2ae497(0x1e3),{'method':_0x2ae497(0x226),'body':{'appCode':_0x2d9772,..._0x88c1d7}});return _0x5ef8a5['data'];}export async function listPersonalBffs(_0x16157b){const _0x3cf216=a65_0x2c20,_0x2d4323=await apiRequest(_0x3cf216(0x1ca)+encodeURIComponent(_0x16157b));return Array[_0x3cf216(0x1d6)](_0x2d4323[_0x3cf216(0x218)])?_0x2d4323[_0x3cf216(0x218)]:[];}export async function getPersonalBff(_0x333174,_0x57148c){const _0x3bd86f=a65_0x2c20,_0x9db528=await apiRequest(_0x3bd86f(0x228)+_0x333174+'?appCode='+encodeURIComponent(_0x57148c));if(!_0x9db528[_0x3bd86f(0x218)])throw CliErrors[_0x3bd86f(0x221)]('Personal\x20BFF\x20not\x20found:\x20id='+_0x333174);return _0x9db528[_0x3bd86f(0x218)];}export async function createPersonalBff(_0x459d88,_0x481dbc){const _0x2fbc52=a65_0x2c20,_0x8c91cf=await apiRequest(_0x2fbc52(0x1ee),{'method':_0x2fbc52(0x226),'body':{'appCode':_0x459d88,..._0x481dbc}});return _0x8c91cf[_0x2fbc52(0x218)];}export async function updatePersonalBff(_0x20ac6d,_0x3a69cb,_0x3ea14d){const _0x34f493=a65_0x2c20,_0x1ae3a8=await apiRequest('/client/runtime-bff/personal/'+_0x20ac6d+_0x34f493(0x1e3),{'method':_0x34f493(0x226),'body':{'appCode':_0x3a69cb,..._0x3ea14d}});return _0x1ae3a8[_0x34f493(0x218)];}export async function executePersonalBff(_0x22ebc3,_0x29e85b,_0x103eed){const _0x33f0f0=a65_0x2c20,_0x1818a4=await apiRequest('/client/runtime-bff/personal/'+_0x22ebc3+_0x33f0f0(0x21b)+encodeURIComponent(_0x29e85b),{'method':_0x33f0f0(0x226),'body':_0x103eed});return _0x1818a4[_0x33f0f0(0x218)];}export async function listPersonalKnowledgeBaseItems(_0x2ca243){const _0xdd691e=a65_0x2c20,_0x35fb29=await apiRequest(_0xdd691e(0x234)+encodeURIComponent(_0x2ca243));return Array[_0xdd691e(0x1d6)](_0x35fb29['data'])?_0x35fb29[_0xdd691e(0x218)]:[];}export async function getPersonalKnowledgeBaseItem(_0x38a4b1,_0x348528){const _0x53137a=a65_0x2c20,_0x31fb26=await apiRequest(_0x53137a(0x1bd)+_0x38a4b1+_0x53137a(0x1eb)+encodeURIComponent(_0x348528));if(!_0x31fb26[_0x53137a(0x218)])throw CliErrors['validation'](_0x53137a(0x230)+_0x38a4b1);return _0x31fb26['data'];}export async function createPersonalKnowledgeBaseItem(_0xf783db,_0x3c5308){const _0x4ef9ba=a65_0x2c20,_0x98e268=await apiRequest(_0x4ef9ba(0x215),{'method':'POST','body':{'appCode':_0xf783db,..._0x3c5308}});return _0x98e268[_0x4ef9ba(0x218)];}export async function updatePersonalKnowledgeBaseItem(_0x20183d,_0x63ed70,_0x3bae0a){const _0x186c39=a65_0x2c20,_0x3160da=await apiRequest(_0x186c39(0x1bd)+_0x20183d+_0x186c39(0x1e3),{'method':_0x186c39(0x226),'body':{'appCode':_0x63ed70,..._0x3bae0a}});return _0x3160da[_0x186c39(0x218)];}function a65_0x2c20(_0x5cff70,_0x2ca800){_0x5cff70=_0x5cff70-0x1bc;const _0x1a1f3b=a65_0x1a1f();let _0x2c20f8=_0x1a1f3b[_0x5cff70];return _0x2c20f8;}export async function searchKnowledgeBase(_0xfefdd1,_0x572245){const _0x3b670f=a65_0x2c20,_0x40294a=await apiRequest(_0x3b670f(0x213),{'method':_0x3b670f(0x226),'body':{'appCode':_0xfefdd1,'query':_0x572245[_0x3b670f(0x1fc)],..._0x572245[_0x3b670f(0x229)]!==undefined?{'topK':_0x572245['topK']}:{}}});return Array['isArray'](_0x40294a[_0x3b670f(0x218)])?_0x40294a['data']:[];}export async function listRuntimeSkills(_0x1a9277){const _0x5814fe=a65_0x2c20,_0x347fcb=await skillHubJsonRequest(_0x5814fe(0x20b)+encodeURIComponent(_0x1a9277[_0x5814fe(0x1f3)])+'/skills',{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x1a9277['appCode'],_0x347fcb,_0x1a9277['scope']??_0x5814fe(0x232),_0x1a9277[_0x5814fe(0x1e0)]);}export async function listPersonalRuntimeSkills(_0x19456b){const _0x5eac48=a65_0x2c20;return(await listRuntimeSkills({'appCode':_0x19456b,'scope':_0x5eac48(0x21c)}))[_0x5eac48(0x21c)];}export async function listCompanyRuntimeSkills(_0x48fb03){const _0x1a564e=a65_0x2c20;return(await listRuntimeSkills({'appCode':_0x48fb03,'scope':'company'}))[_0x1a564e(0x1cf)];}export async function listVisibleRuntimeSkills(_0xf36073){const _0x253413=a65_0x2c20;return(await listRuntimeSkills({'appCode':_0xf36073,'scope':_0x253413(0x232)}))['effective'];}export async function createPersonalRuntimeSkill(_0x17ba89,_0xc17aaa){return publishRuntimeSkill(_0x17ba89,_0xc17aaa);}export async function updatePersonalRuntimeSkill(_0x248b73,_0x230e11,_0x68194){const _0x290609=a65_0x2c20;return publishRuntimeSkill(_0x230e11,{..._0x68194,'skillCode':_0x68194[_0x290609(0x21e)]??_0x248b73});}export async function downloadRuntimeSkillPackage(_0xf63a4d,_0x23dd7d,_0x1db8e5,_0x34a78e){const _0x332571=a65_0x2c20;void _0xf63a4d;const _0x2a89b5=_0x34a78e?_0x332571(0x1d8)+encodeURIComponent(_0x1db8e5)+'/'+encodeURIComponent(_0x23dd7d)+_0x332571(0x217)+encodeURIComponent(_0x34a78e)+'/download':_0x332571(0x1d8)+encodeURIComponent(_0x1db8e5)+'/'+encodeURIComponent(_0x23dd7d)+'/download';return skillHubBinaryRequest(_0x2a89b5);}async function publishRuntimeSkill(_0x13de51,_0x2d7251){const _0x5499a8=a65_0x2c20,_0x429783=new FormData();_0x429783['set'](_0x5499a8(0x20f),runtimeSkillPackageFile(_0x2d7251)),_0x429783[_0x5499a8(0x1c8)](_0x5499a8(0x1fe),'PRIVATE');const _0x2abea3=await skillHubJsonRequest(_0x5499a8(0x1d8)+encodeURIComponent(_0x13de51)+_0x5499a8(0x237),{'method':_0x5499a8(0x226),'body':_0x429783});return{'appCode':_0x2abea3['namespace']??_0x13de51,'skillCode':_0x2abea3[_0x5499a8(0x1c3)]??_0x2d7251[_0x5499a8(0x21e)]??'','skillName':_0x2d7251[_0x5499a8(0x21f)]??_0x2abea3['slug']??_0x2d7251[_0x5499a8(0x21e)],'description':_0x2d7251['description'],'scope':skillHubVisibilityToScope(_0x2abea3[_0x5499a8(0x1fe)])??_0x5499a8(0x21c),'version':_0x2abea3[_0x5499a8(0x1ea)]??_0x2d7251[_0x5499a8(0x1ea)],'tags':_0x2d7251[_0x5499a8(0x1c5)],'content':_0x2d7251[_0x5499a8(0x238)]};}function runtimeSkillPackageFile(_0x13e7cd){const _0x40392a=a65_0x2c20;if(!_0x13e7cd['packageBase64'])throw CliErrors[_0x40392a(0x221)](_0x40392a(0x1c0));const _0x1f3285=Buffer[_0x40392a(0x21a)](_0x13e7cd[_0x40392a(0x207)],_0x40392a(0x1ed)),_0x11478a=new Blob([_0x1f3285],{'type':'application/zip'}),_0xa0bca6=(_0x13e7cd[_0x40392a(0x21e)]||_0x40392a(0x1bc))+'.zip';if(typeof File!==_0x40392a(0x1e6))return new File([_0x11478a],_0xa0bca6,{'type':_0x40392a(0x208)});return _0x11478a;}function normalizeSkillHubRuntimeListResponse(_0x13418,_0x521095,_0x1b59e6,_0x58940b){const _0x3e4694=a65_0x2c20,_0x363da4=Array[_0x3e4694(0x1d6)](_0x521095)?_0x521095:Array[_0x3e4694(0x1d6)](_0x521095?.[_0x3e4694(0x224)])?_0x521095[_0x3e4694(0x224)]:[],_0x1433b7=_0x58940b?.[_0x3e4694(0x1bf)](),_0x47ef7e=_0x363da4['filter'](_0x47a946=>!_0x1433b7||_0x47a946[_0x3e4694(0x1c3)]===_0x1433b7)['map'](skillHubRuntimeItemToRuntimeSkill)[_0x3e4694(0x211)](_0x55f220=>Boolean(_0x55f220)),_0x20e870=_0x47ef7e[_0x3e4694(0x211)](_0x5729b1=>_0x5729b1[_0x3e4694(0x209)]===_0x3e4694(0x21c)),_0xeb2398=_0x47ef7e[_0x3e4694(0x211)](_0x46d18f=>_0x46d18f[_0x3e4694(0x209)]===_0x3e4694(0x1cf));return{'appCode':_0x13418,'personal':_0x1b59e6===_0x3e4694(0x1cf)?[]:_0x20e870,'company':_0x1b59e6===_0x3e4694(0x21c)?[]:_0xeb2398,'effective':buildEffectiveRuntimeSkills(_0x20e870,_0xeb2398,_0x1b59e6)};}function skillHubRuntimeItemToRuntimeSkill(_0x41fb1b){const _0x11bf91=a65_0x2c20,_0x324220=_0x41fb1b['slug']?.['trim'](),_0x7ea978=skillHubVisibilityToScope(_0x41fb1b[_0x11bf91(0x1fe)]);if(!_0x324220||!_0x7ea978)return undefined;return{'id':_0x41fb1b['id'],'appCode':_0x41fb1b['namespace'],'skillCode':_0x324220,'skillName':_0x41fb1b['displayName']??_0x324220,'description':_0x41fb1b['summary'],'scope':_0x7ea978,'version':skillHubRuntimeItemVersion(_0x41fb1b),'status':_0x41fb1b[_0x11bf91(0x1de)]};}function skillHubVisibilityToScope(_0x28e0ed){const _0x2fe2d8=a65_0x2c20;if(_0x28e0ed==='PRIVATE')return _0x2fe2d8(0x21c);if(_0x28e0ed===_0x2fe2d8(0x1d2))return _0x2fe2d8(0x1cf);return undefined;}function skillHubRuntimeItemVersion(_0x1d1c5e){const _0x3f28e4=a65_0x2c20;return _0x1d1c5e[_0x3f28e4(0x1d1)]?.[_0x3f28e4(0x1ea)]??_0x1d1c5e[_0x3f28e4(0x20e)]?.[_0x3f28e4(0x1ea)]??_0x1d1c5e[_0x3f28e4(0x1d7)]?.['version'];}function buildEffectiveRuntimeSkills(_0x5c6cd9,_0x33c507,_0x56a6c1){const _0x10d5cf=a65_0x2c20;if(_0x56a6c1==='personal')return _0x5c6cd9;if(_0x56a6c1===_0x10d5cf(0x1cf))return _0x33c507;const _0xbac0fc=new Map();for(const _0x123a3b of _0x33c507){_0xbac0fc[_0x10d5cf(0x1c8)](_0x123a3b[_0x10d5cf(0x21e)],_0x123a3b);}for(const _0x57fad8 of _0x5c6cd9){_0xbac0fc[_0x10d5cf(0x1c8)](_0x57fad8[_0x10d5cf(0x21e)],_0x57fad8);}return Array[_0x10d5cf(0x21a)](_0xbac0fc[_0x10d5cf(0x1f6)]());}function normalizeRuntimeSkillListResponse(_0x37c8bb,_0x289722){const _0x16abfd=a65_0x2c20;if(Array[_0x16abfd(0x1d6)](_0x289722)){const _0x3d2535=_0x289722[_0x16abfd(0x211)](_0x102ddf=>_0x102ddf[_0x16abfd(0x209)]===_0x16abfd(0x21c)),_0xdda3d8=_0x289722['filter'](_0x5092bd=>_0x5092bd[_0x16abfd(0x209)]===_0x16abfd(0x1cf));return{'appCode':_0x37c8bb,'personal':_0x3d2535,'company':_0xdda3d8,'effective':[..._0xdda3d8,..._0x3d2535]};}return{'appCode':_0x289722?.[_0x16abfd(0x1f3)]??_0x37c8bb,'personal':Array[_0x16abfd(0x1d6)](_0x289722?.[_0x16abfd(0x21c)])?_0x289722[_0x16abfd(0x21c)]:[],'company':Array[_0x16abfd(0x1d6)](_0x289722?.[_0x16abfd(0x1cf)])?_0x289722[_0x16abfd(0x1cf)]:[],'effective':Array[_0x16abfd(0x1d6)](_0x289722?.[_0x16abfd(0x21d)])?_0x289722[_0x16abfd(0x21d)]:[]};}
1
+ (function(_0x398b2b,_0x3246ff){const _0x2de888=a65_0x346c,_0x20864b=_0x398b2b();while(!![]){try{const _0x422bb9=-parseInt(_0x2de888(0x150))/0x1*(-parseInt(_0x2de888(0x19b))/0x2)+parseInt(_0x2de888(0x185))/0x3+parseInt(_0x2de888(0x169))/0x4+-parseInt(_0x2de888(0x18d))/0x5+-parseInt(_0x2de888(0x183))/0x6+-parseInt(_0x2de888(0x13b))/0x7*(parseInt(_0x2de888(0x1a8))/0x8)+parseInt(_0x2de888(0x157))/0x9;if(_0x422bb9===_0x3246ff)break;else _0x20864b['push'](_0x20864b['shift']());}catch(_0x38b21a){_0x20864b['push'](_0x20864b['shift']());}}}(a65_0x327f,0xb7e5f));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(_0x66d17e){_activeAK=_0x66d17e||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x1054a7,_0x5f2bf8={}){const _0xa5d309=a65_0x346c,{method:method=_0xa5d309(0x18b),body:_0x5b9969,headers:headers={},timeout:timeout=0x7530}=_0x5f2bf8,_0x37e6ac=_activeAK,_0x461df3=getRuntimeDomain();if(!_0x37e6ac)throw CliErrors[_0xa5d309(0x176)](_0xa5d309(0x182)+PRODUCT_CONFIG[_0xa5d309(0x14d)]+'.');const _0x1619c7=''+_0x461df3+_0x1054a7,_0x3d61ee={'X-User-AK':_0x37e6ac},_0x584ac8=new AbortController(),_0x51c148=setTimeout(()=>_0x584ac8[_0xa5d309(0x197)](),timeout);try{const _0x2bb8d9=await fetch(_0x1619c7,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0xa5d309(0x16c)],..._0x3d61ee,...headers},'body':_0x5b9969?JSON[_0xa5d309(0x19a)](_0x5b9969):undefined,'signal':_0x584ac8[_0xa5d309(0x1a2)]});let _0x4d6004;try{_0x4d6004=await _0x2bb8d9[_0xa5d309(0x13f)]();}catch{throw CliErrors[_0xa5d309(0x15e)](_0xa5d309(0x16a)+_0x2bb8d9[_0xa5d309(0x149)]+')',_0x2bb8d9[_0xa5d309(0x149)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x2bb8d9['ok']||_0x4d6004[_0xa5d309(0x151)]===![])throw CliErrors[_0xa5d309(0x15e)](_0x4d6004[_0xa5d309(0x154)]||_0x4d6004['message']||_0xa5d309(0x196)+_0x2bb8d9[_0xa5d309(0x149)],_0x4d6004[_0xa5d309(0x1ac)]?'API\x20error\x20code:\x20'+_0x4d6004[_0xa5d309(0x1ac)]:undefined);return _0x4d6004;}catch(_0x469747){if(_0x469747 instanceof Error&&_0x469747[_0xa5d309(0x192)]===_0xa5d309(0x1a7))throw CliErrors[_0xa5d309(0x15e)](_0xa5d309(0x13e)+_0x1619c7);throw _0x469747;}finally{clearTimeout(_0x51c148);}}async function apiBinaryRequest(_0x221aa6,_0x464218={}){const _0x315fe6=a65_0x346c,{method:method=_0x315fe6(0x18b),headers:headers={},timeout:timeout=0x7530}=_0x464218,_0x40972f=_activeAK,_0x411070=getRuntimeDomain();if(!_0x40972f)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x315fe6(0x14d)]+'.');const _0x548414=''+_0x411070+_0x221aa6,_0x1ab187=new AbortController(),_0x10639c=setTimeout(()=>_0x1ab187[_0x315fe6(0x197)](),timeout);try{const _0x3ff27a=await fetch(_0x548414,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x315fe6(0x16c)],'X-User-AK':_0x40972f,...headers},'signal':_0x1ab187['signal']});if(!_0x3ff27a['ok']){let _0x213db3;try{const _0x2ffc54=await _0x3ff27a[_0x315fe6(0x13f)]();_0x213db3=_0x2ffc54['errorMsg']||_0x2ffc54[_0x315fe6(0x166)]||_0x2ffc54[_0x315fe6(0x1ac)];}catch{_0x213db3=await _0x3ff27a[_0x315fe6(0x156)]()[_0x315fe6(0x138)](()=>undefined);}throw CliErrors['apiError'](_0x213db3||_0x315fe6(0x196)+_0x3ff27a[_0x315fe6(0x149)],_0x315fe6(0x17e)+_0x548414);}return Buffer[_0x315fe6(0x170)](await _0x3ff27a[_0x315fe6(0x1aa)]());}catch(_0x2c7089){if(_0x2c7089 instanceof Error&&_0x2c7089[_0x315fe6(0x192)]===_0x315fe6(0x1a7))throw CliErrors[_0x315fe6(0x15e)](_0x315fe6(0x13e)+_0x548414);throw _0x2c7089;}finally{clearTimeout(_0x10639c);}}async function toolboxRequest(_0x17c6a9,_0x1c0cd0,_0x28b637={}){const _0x25b6e5=a65_0x346c,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x28b637,_0x39e452=_activeAK;if(!_0x39e452)throw CliErrors[_0x25b6e5(0x176)](_0x25b6e5(0x182)+PRODUCT_CONFIG[_0x25b6e5(0x14d)]+'.');const _0x461005=getApiDomain()[_0x25b6e5(0x134)](/\/$/,''),_0x138b66=new URL(_0x17c6a9,_0x461005+_0x25b6e5(0x190));if(_0x1c0cd0)for(const [_0x50f358,_0x5b55f2]of Object[_0x25b6e5(0x161)](_0x1c0cd0)){_0x5b55f2!==undefined&&_0x5b55f2!==null&&_0x138b66[_0x25b6e5(0x13c)][_0x25b6e5(0x140)](_0x50f358,String(_0x5b55f2));}const _0xb5480f=new AbortController(),_0x26b756=setTimeout(()=>_0xb5480f[_0x25b6e5(0x197)](),timeout);try{const _0x3d00b2=await fetch(_0x138b66,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x25b6e5(0x16c)],'X-User-AK':_0x39e452,...headers},'signal':_0xb5480f[_0x25b6e5(0x1a2)]});let _0x502712;try{_0x502712=await _0x3d00b2[_0x25b6e5(0x13f)]();}catch{throw CliErrors[_0x25b6e5(0x15e)](_0x25b6e5(0x19e)+_0x3d00b2[_0x25b6e5(0x149)]+')',_0x3d00b2['status']>=0x190?_0x25b6e5(0x193):undefined);}if(!_0x3d00b2['ok']){const _0x36d828=_0x502712&&typeof _0x502712===_0x25b6e5(0x1a0)?_0x502712:{};throw CliErrors[_0x25b6e5(0x15e)](_0x36d828['errorMsg']||_0x36d828[_0x25b6e5(0x166)]||_0x25b6e5(0x148)+_0x3d00b2[_0x25b6e5(0x149)],_0x36d828[_0x25b6e5(0x1ac)]?'Toolbox\x20error\x20code:\x20'+_0x36d828[_0x25b6e5(0x1ac)]:undefined);}if(_0x502712&&typeof _0x502712===_0x25b6e5(0x1a0)&&'success'in _0x502712&&typeof _0x502712['success']===_0x25b6e5(0x175)){const _0x12ab65=_0x502712;if(!_0x12ab65[_0x25b6e5(0x151)])throw CliErrors[_0x25b6e5(0x15e)](_0x12ab65['errorMsg']||_0x12ab65[_0x25b6e5(0x166)]||_0x25b6e5(0x15d),_0x12ab65[_0x25b6e5(0x1ac)]?_0x25b6e5(0x164)+_0x12ab65[_0x25b6e5(0x1ac)]:undefined);return _0x12ab65[_0x25b6e5(0x16f)];}return _0x502712;}catch(_0x33f174){if(_0x33f174 instanceof Error&&_0x33f174[_0x25b6e5(0x192)]===_0x25b6e5(0x1a7))throw CliErrors[_0x25b6e5(0x15e)]('Request\x20timeout:\x20'+_0x138b66[_0x25b6e5(0x177)]());throw _0x33f174;}finally{clearTimeout(_0x26b756);}}async function skillHubJsonRequest(_0x5d0662,_0x4ad97f={}){const _0xb7d7db=a65_0x346c,{method:method=_0xb7d7db(0x18b),query:_0x52cfd6,body:_0xf0fe3a,headers:headers={},timeout:timeout=0x7530}=_0x4ad97f,_0x532aef=_activeAK;if(!_0x532aef)throw CliErrors[_0xb7d7db(0x176)](_0xb7d7db(0x182)+PRODUCT_CONFIG[_0xb7d7db(0x14d)]+'.');const _0x5b5520=getSkillHubDomain()[_0xb7d7db(0x134)](/\/$/,''),_0x4bd693=new URL(_0x5d0662,_0x5b5520+'/');if(_0x52cfd6)for(const [_0x2f4e46,_0xdb6b7c]of Object[_0xb7d7db(0x161)](_0x52cfd6)){_0xdb6b7c!==undefined&&_0xdb6b7c!==null&&_0x4bd693[_0xb7d7db(0x13c)]['set'](_0x2f4e46,String(_0xdb6b7c));}const _0x188d0d=new AbortController(),_0x53d2ed=setTimeout(()=>_0x188d0d[_0xb7d7db(0x197)](),timeout);try{const _0xffae4d=await fetch(_0x4bd693[_0xb7d7db(0x177)](),{'method':method,'headers':{'Accept':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0xb7d7db(0x16c)],'X-User-AK':_0x532aef,...headers},'body':_0xf0fe3a,'signal':_0x188d0d['signal']});let _0x3b410e;try{_0x3b410e=await _0xffae4d[_0xb7d7db(0x13f)]();}catch{throw CliErrors[_0xb7d7db(0x15e)]('SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0xffae4d[_0xb7d7db(0x149)]+')',_0xffae4d[_0xb7d7db(0x149)]>=0x190?_0xb7d7db(0x193):undefined);}const _0x203a89=!_0xffae4d['ok']||_0x3b410e?.['success']===![]||typeof _0x3b410e?.[_0xb7d7db(0x191)]===_0xb7d7db(0x14e)&&_0x3b410e['code']>=0x190;if(_0x203a89)throw CliErrors[_0xb7d7db(0x15e)](_0x3b410e?.[_0xb7d7db(0x154)]||_0x3b410e?.['message']||_0x3b410e?.[_0xb7d7db(0x165)]||_0xb7d7db(0x1a5)+_0xffae4d[_0xb7d7db(0x149)],_0x3b410e?.[_0xb7d7db(0x1ac)]?_0xb7d7db(0x184)+_0x3b410e['errorCode']:undefined);return _0x3b410e?.[_0xb7d7db(0x16f)]??_0x3b410e;}catch(_0x17c8e5){if(_0x17c8e5 instanceof Error&&_0x17c8e5['name']===_0xb7d7db(0x1a7))throw CliErrors[_0xb7d7db(0x15e)]('Request\x20timeout:\x20'+_0x4bd693[_0xb7d7db(0x177)]());throw _0x17c8e5;}finally{clearTimeout(_0x53d2ed);}}async function skillHubBinaryRequest(_0x3350fb,_0x15053d={}){const _0x116b3f=a65_0x346c,{query:_0x41f490,headers:headers={},timeout:timeout=0x7530}=_0x15053d,_0x4ecca9=_activeAK;if(!_0x4ecca9)throw CliErrors[_0x116b3f(0x176)](_0x116b3f(0x182)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x336855=getSkillHubDomain()[_0x116b3f(0x134)](/\/$/,''),_0x39b22f=new URL(_0x3350fb,_0x336855+'/');if(_0x41f490)for(const [_0x1307c1,_0x340e7c]of Object[_0x116b3f(0x161)](_0x41f490)){_0x340e7c!==undefined&&_0x340e7c!==null&&_0x39b22f[_0x116b3f(0x13c)][_0x116b3f(0x140)](_0x1307c1,String(_0x340e7c));}const _0x214e22=new AbortController(),_0x50545b=setTimeout(()=>_0x214e22[_0x116b3f(0x197)](),timeout);try{const _0x560c49=await fetch(_0x39b22f[_0x116b3f(0x177)](),{'method':_0x116b3f(0x18b),'headers':{'Accept':_0x116b3f(0x141),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x4ecca9,...headers},'signal':_0x214e22[_0x116b3f(0x1a2)]});if(!_0x560c49['ok']){let _0x4ffba1;try{const _0x409771=await _0x560c49[_0x116b3f(0x13f)]();_0x4ffba1=_0x409771[_0x116b3f(0x154)]||_0x409771['message']||_0x409771[_0x116b3f(0x165)]||_0x409771[_0x116b3f(0x1ac)];}catch{_0x4ffba1=await _0x560c49['text']()[_0x116b3f(0x138)](()=>undefined);}throw CliErrors['apiError'](_0x4ffba1||_0x116b3f(0x1a5)+_0x560c49[_0x116b3f(0x149)],_0x116b3f(0x17e)+_0x39b22f[_0x116b3f(0x177)]());}return Buffer[_0x116b3f(0x170)](await _0x560c49[_0x116b3f(0x1aa)]());}catch(_0x21f190){if(_0x21f190 instanceof Error&&_0x21f190[_0x116b3f(0x192)]===_0x116b3f(0x1a7))throw CliErrors[_0x116b3f(0x15e)](_0x116b3f(0x13e)+_0x39b22f['toString']());throw _0x21f190;}finally{clearTimeout(_0x50545b);}}export async function getBffScriptInfo(_0x2db4d7){const _0x204ba4=a65_0x346c,_0x13a2a6=await apiRequest(_0x204ba4(0x16b)+_0x2db4d7);if(!_0x13a2a6[_0x204ba4(0x16f)])throw CliErrors[_0x204ba4(0x1a1)](_0x204ba4(0x163)+_0x2db4d7);return _0x13a2a6[_0x204ba4(0x16f)];}export async function getSqlQueryInfo(_0x382a68,_0x8d1c4a){const _0x1b4dae=a65_0x346c,_0x5e76b4=await apiRequest('/client/sql/query',{'method':_0x1b4dae(0x1ab),'body':{'appCode':_0x382a68,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x8d1c4a}}),_0x322b9b=_0x5e76b4['data'],_0x20c503=_0x322b9b&&typeof _0x322b9b===_0x1b4dae(0x1a0)&&_0x1b4dae(0x19f)in _0x322b9b?_0x322b9b[_0x1b4dae(0x19f)]?.[0x0]:_0x322b9b&&typeof _0x322b9b===_0x1b4dae(0x1a0)&&_0x1b4dae(0x14b)in _0x322b9b?_0x322b9b:undefined;if(!_0x20c503)throw CliErrors[_0x1b4dae(0x1a1)](_0x1b4dae(0x16d)+_0x8d1c4a);return _0x20c503;}function isRemoteAppItem(_0x425380){const _0x2e3e41=a65_0x346c;return!!_0x425380&&typeof _0x425380===_0x2e3e41(0x1a0)&&typeof _0x425380[_0x2e3e41(0x1a6)]===_0x2e3e41(0x143)&&typeof _0x425380[_0x2e3e41(0x1ad)]===_0x2e3e41(0x143);}function extractRemoteAppItems(_0x902a6a){const _0x458744=a65_0x346c;if(Array[_0x458744(0x178)](_0x902a6a))return _0x902a6a[_0x458744(0x13d)](isRemoteAppItem);if(!_0x902a6a||typeof _0x902a6a!==_0x458744(0x1a0))throw CliErrors[_0x458744(0x15e)]('Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.');const _0x4bdc8b=_0x902a6a;if(Array[_0x458744(0x178)](_0x4bdc8b[_0x458744(0x19f)]))return _0x4bdc8b[_0x458744(0x19f)][_0x458744(0x13d)](isRemoteAppItem);if(_0x4bdc8b[_0x458744(0x16f)]&&typeof _0x4bdc8b[_0x458744(0x16f)]===_0x458744(0x1a0)){const _0x334f3f=_0x4bdc8b[_0x458744(0x16f)];if(Array[_0x458744(0x178)](_0x334f3f[_0x458744(0x19f)]))return _0x334f3f[_0x458744(0x19f)][_0x458744(0x13d)](isRemoteAppItem);}throw CliErrors[_0x458744(0x15e)]('Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.');}export async function getMyApps(){const _0x2ffba2=a65_0x346c,_0x2d4767=await apiRequest(_0x2ffba2(0x1a4));return extractRemoteAppItems(_0x2d4767[_0x2ffba2(0x16f)]);}export async function getLoginUserInfo(){const _0x1266b1=a65_0x346c,_0x1dd1d6=await apiRequest('/client/user/loginUserInfo');if(!_0x1dd1d6[_0x1266b1(0x16f)]||typeof _0x1dd1d6[_0x1266b1(0x16f)]!==_0x1266b1(0x1a0)||Array[_0x1266b1(0x178)](_0x1dd1d6['data']))throw CliErrors[_0x1266b1(0x15e)]('Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.');return _0x1dd1d6[_0x1266b1(0x16f)];}export async function listDatasets(_0x1d6169,_0x34ce68){const _0x6c2cd9=a65_0x346c,_0x90b487=await apiRequest(_0x6c2cd9(0x152),{'method':_0x6c2cd9(0x1ab),'body':{'appCode':_0x1d6169,..._0x34ce68?.['code']&&{'code':_0x34ce68[_0x6c2cd9(0x191)]},..._0x34ce68?.['name']&&{'name':_0x34ce68[_0x6c2cd9(0x192)]}}});return extractList(_0x90b487[_0x6c2cd9(0x16f)]);}export async function getDatasetDetail(_0x121c88){const _0x52120b=a65_0x346c,_0x30a5b1=await apiRequest(_0x52120b(0x17d)+encodeURIComponent(_0x121c88));return _0x30a5b1['data'];}export async function getDatasetSdkUsageDoc(_0x3396ec,_0x2cd6ab){const _0x32e770=a65_0x346c,_0x4020c9=await toolboxRequest('api-doc-generator',{'datasetCode':_0x3396ec,'appCode':_0x2cd6ab});return typeof _0x4020c9?.['markdown']===_0x32e770(0x143)?_0x4020c9[_0x32e770(0x17c)]:'';}export async function listRuntimeArtifacts(_0xbf7e34,_0x14b582){const _0x31a9dc=a65_0x346c,_0x122125=new URLSearchParams({'appCode':_0xbf7e34});if(_0x14b582?.[_0x31a9dc(0x15c)])_0x122125['set']('artifactType',_0x14b582['artifactType']);if(_0x14b582?.[_0x31a9dc(0x14a)])_0x122125['set']('source',_0x14b582[_0x31a9dc(0x14a)]);if(_0x14b582?.[_0x31a9dc(0x17f)]!==undefined)_0x122125[_0x31a9dc(0x140)](_0x31a9dc(0x17f),String(_0x14b582['favorite']));const _0x1ab171=await apiRequest(_0x31a9dc(0x14c)+_0x122125['toString']());return Array[_0x31a9dc(0x178)](_0x1ab171[_0x31a9dc(0x16f)])?_0x1ab171[_0x31a9dc(0x16f)]:[];}export async function getRuntimeArtifact(_0x18fe55,_0x324200){const _0x3f5962=a65_0x346c,_0x288b01=await apiRequest(_0x3f5962(0x180)+_0x18fe55+_0x3f5962(0x15f)+encodeURIComponent(_0x324200));if(!_0x288b01[_0x3f5962(0x16f)])throw CliErrors[_0x3f5962(0x1a1)](_0x3f5962(0x167)+_0x18fe55);return _0x288b01[_0x3f5962(0x16f)];}export async function createRuntimeArtifact(_0x1a27aa,_0x5a4868){const _0x479140=a65_0x346c,_0x13bcbc=await apiRequest(_0x479140(0x19d),{'method':_0x479140(0x1ab),'body':{'appCode':_0x1a27aa,..._0x5a4868}});return _0x13bcbc[_0x479140(0x16f)];}export async function updateRuntimeArtifact(_0x20e824,_0xf8a716,_0x121e41){const _0xa0abda=a65_0x346c,_0x33a65e=await apiRequest(_0xa0abda(0x180)+_0x20e824+_0xa0abda(0x189),{'method':_0xa0abda(0x1ab),'body':{'appCode':_0xf8a716,..._0x121e41}});return _0x33a65e[_0xa0abda(0x16f)];}export async function listPersonalBffs(_0x4c8566){const _0x40ab61=a65_0x346c,_0x2c799d=await apiRequest(_0x40ab61(0x181)+encodeURIComponent(_0x4c8566));return Array['isArray'](_0x2c799d[_0x40ab61(0x16f)])?_0x2c799d[_0x40ab61(0x16f)]:[];}export async function getPersonalBff(_0x22b9de,_0x2700e4){const _0xf38127=a65_0x346c,_0x521c2f=await apiRequest(_0xf38127(0x187)+_0x22b9de+_0xf38127(0x15f)+encodeURIComponent(_0x2700e4));if(!_0x521c2f[_0xf38127(0x16f)])throw CliErrors['validation']('Personal\x20BFF\x20not\x20found:\x20id='+_0x22b9de);return _0x521c2f[_0xf38127(0x16f)];}export async function createPersonalBff(_0x289ce8,_0x287c9d){const _0x30ccce=a65_0x346c,_0x49d324=await apiRequest(_0x30ccce(0x144),{'method':_0x30ccce(0x1ab),'body':{'appCode':_0x289ce8,..._0x287c9d}});return _0x49d324[_0x30ccce(0x16f)];}export async function updatePersonalBff(_0xd3e409,_0x5200df,_0x5c68a9){const _0x4bc414=a65_0x346c,_0x246c97=await apiRequest(_0x4bc414(0x187)+_0xd3e409+_0x4bc414(0x189),{'method':_0x4bc414(0x1ab),'body':{'appCode':_0x5200df,..._0x5c68a9}});return _0x246c97[_0x4bc414(0x16f)];}export async function executePersonalBff(_0x3ad50f,_0x547aee,_0x49dc3b){const _0x5694ea=a65_0x346c,_0x2e95cd=await apiRequest(_0x5694ea(0x187)+_0x3ad50f+'/execute?appCode='+encodeURIComponent(_0x547aee),{'method':_0x5694ea(0x1ab),'body':_0x49dc3b});return _0x2e95cd[_0x5694ea(0x16f)];}export async function listPersonalKnowledgeBaseItems(_0x36e295){const _0x156199=a65_0x346c,_0x3b66ee=await apiRequest(_0x156199(0x142)+encodeURIComponent(_0x36e295));return Array[_0x156199(0x178)](_0x3b66ee[_0x156199(0x16f)])?_0x3b66ee[_0x156199(0x16f)]:[];}export async function getPersonalKnowledgeBaseItem(_0x4792c2,_0x5e658e){const _0x1ab944=a65_0x346c,_0x6614a=await apiRequest(_0x1ab944(0x171)+_0x4792c2+_0x1ab944(0x15f)+encodeURIComponent(_0x5e658e));if(!_0x6614a[_0x1ab944(0x16f)])throw CliErrors[_0x1ab944(0x1a1)](_0x1ab944(0x195)+_0x4792c2);return _0x6614a[_0x1ab944(0x16f)];}export async function createPersonalKnowledgeBaseItem(_0x191f26,_0x1b908c){const _0x1c0948=a65_0x346c,_0x1018b6=await apiRequest(_0x1c0948(0x1a3),{'method':_0x1c0948(0x1ab),'body':{'appCode':_0x191f26,..._0x1b908c}});return _0x1018b6[_0x1c0948(0x16f)];}export async function updatePersonalKnowledgeBaseItem(_0x3614e2,_0x520348,_0x43309e){const _0x2fe18d=a65_0x346c,_0x125bba=await apiRequest('/client/knowledge-base/personal/'+_0x3614e2+'/update',{'method':_0x2fe18d(0x1ab),'body':{'appCode':_0x520348,..._0x43309e}});return _0x125bba[_0x2fe18d(0x16f)];}export async function searchKnowledgeBase(_0x4f595b,_0x323a10){const _0x2d146e=a65_0x346c,_0x41a857=await apiRequest(_0x2d146e(0x146),{'method':_0x2d146e(0x1ab),'body':{'appCode':_0x4f595b,'query':_0x323a10[_0x2d146e(0x194)],..._0x323a10[_0x2d146e(0x168)]!==undefined?{'topK':_0x323a10[_0x2d146e(0x168)]}:{}}});return Array[_0x2d146e(0x178)](_0x41a857['data'])?_0x41a857[_0x2d146e(0x16f)]:[];}export async function listRuntimeSkills(_0x92d7f9){const _0x410341=a65_0x346c,_0x24947e=await skillHubJsonRequest(_0x410341(0x15b)+encodeURIComponent(_0x92d7f9['appCode'])+_0x410341(0x172),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x92d7f9[_0x410341(0x1a6)],_0x24947e,_0x92d7f9[_0x410341(0x145)]??'all',_0x92d7f9[_0x410341(0x191)]);}export async function listPersonalRuntimeSkills(_0x481697){const _0x422f5a=a65_0x346c;return(await listRuntimeSkills({'appCode':_0x481697,'scope':_0x422f5a(0x18e)}))[_0x422f5a(0x18e)];}export async function listCompanyRuntimeSkills(_0x3ea7ba){const _0x18b7de=a65_0x346c;return(await listRuntimeSkills({'appCode':_0x3ea7ba,'scope':_0x18b7de(0x199)}))[_0x18b7de(0x199)];}export async function listVisibleRuntimeSkills(_0x44c636){const _0x46f1c8=a65_0x346c;return(await listRuntimeSkills({'appCode':_0x44c636,'scope':_0x46f1c8(0x1ae)}))[_0x46f1c8(0x17b)];}export async function createPersonalRuntimeSkill(_0x3ccdaa,_0x57fe0e){return publishRuntimeSkill(_0x3ccdaa,_0x57fe0e);}export async function updatePersonalRuntimeSkill(_0x357d4d,_0x35b213,_0x4ae1d6){const _0x366db8=a65_0x346c;return publishRuntimeSkill(_0x35b213,{..._0x4ae1d6,'skillCode':_0x4ae1d6[_0x366db8(0x198)]??_0x357d4d});}export async function downloadRuntimeSkillPackage(_0x26bef7,_0x376b7c,_0x4a88e5,_0x19fd3e){const _0x3ed55a=a65_0x346c;void _0x26bef7;const _0x5a1e8f=_0x19fd3e?_0x3ed55a(0x18c)+encodeURIComponent(_0x4a88e5)+'/'+encodeURIComponent(_0x376b7c)+_0x3ed55a(0x135)+encodeURIComponent(_0x19fd3e)+_0x3ed55a(0x147):_0x3ed55a(0x18c)+encodeURIComponent(_0x4a88e5)+'/'+encodeURIComponent(_0x376b7c)+_0x3ed55a(0x147);return skillHubBinaryRequest(_0x5a1e8f);}async function publishRuntimeSkill(_0x28e6d0,_0xcc73c6){const _0x583615=a65_0x346c,_0x5148ba=new FormData();_0x5148ba[_0x583615(0x140)]('file',runtimeSkillPackageFile(_0xcc73c6)),_0x5148ba[_0x583615(0x140)](_0x583615(0x162),_0x583615(0x14f));const _0x52a551=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x28e6d0)+'/publish',{'method':_0x583615(0x1ab),'body':_0x5148ba});return{'appCode':_0x52a551[_0x583615(0x18a)]??_0x28e6d0,'skillCode':_0x52a551[_0x583615(0x136)]??_0xcc73c6[_0x583615(0x198)]??'','skillName':_0xcc73c6[_0x583615(0x139)]??_0x52a551[_0x583615(0x136)]??_0xcc73c6['skillCode'],'description':_0xcc73c6[_0x583615(0x155)],'scope':skillHubVisibilityToScope(_0x52a551[_0x583615(0x162)])??'personal','version':_0x52a551[_0x583615(0x137)]??_0xcc73c6['version'],'tags':_0xcc73c6[_0x583615(0x160)],'content':_0xcc73c6['content']};}function a65_0x327f(){const _0x331afb=['entries','visibility','BFF\x20script\x20not\x20found:\x20id=','Toolbox\x20error\x20code:\x20','msg','message','Artifact\x20not\x20found:\x20id=','topK','2833496TOfBmm','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/bff/query/','invokeSource','SQL\x20query\x20not\x20found:\x20','ownerPreviewVersion','data','from','/client/knowledge-base/personal/','/skills','displayName','publishedVersion','boolean','authRequired','toString','isArray','undefined','Missing\x20Skill\x20package\x20payload.','effective','markdown','/client/dataset/get-driven-data?code=','Download\x20failed:\x20','favorite','/client/artifact/','/client/runtime-bff/personal/list?appCode=','Configure\x20accessKey\x20in\x20','939084fqNcuT','SkillHub\x20error\x20code:\x20','544989nKhlws','items','/client/runtime-bff/personal/','skill','/update','namespace','GET','/api/cli/v1/skills/','6573810BsPzyc','personal','values','/api/node-toolbox/','code','name','Check\x20your\x20credentials\x20and\x20try\x20again.','query','Knowledge-base\x20entry\x20not\x20found:\x20id=','API\x20error:\x20','abort','skillCode','company','stringify','470KMKZXM','.zip','/client/artifact/create','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','tableData','object','validation','signal','/client/knowledge-base/personal/create','/client/app/my-apps','SkillHub\x20API\x20error:\x20','appCode','AbortError','7052040ccRvQz','application/zip','arrayBuffer','POST','errorCode','appName','all','replace','/versions/','slug','version','catch','skillName','packageBase64','7viqUQB','searchParams','filter','Request\x20timeout:\x20','json','set','application/octet-stream','/client/knowledge-base/personal/list?appCode=','string','/client/runtime-bff/personal/create','scope','/client/knowledge-base/search','/download','Toolbox\x20API\x20error:\x20','status','source','sqlCode','/client/artifact/list?','newConfigFileName','number','PRIVATE','2873NbRPgw','success','/client/dataset/list','trim','errorMsg','description','text','13867524mBmRej','base64','NAMESPACE_ONLY','headlineVersion','/api/runtime/v1/namespaces/','artifactType','Toolbox\x20API\x20error','apiError','?appCode=','tags'];a65_0x327f=function(){return _0x331afb;};return a65_0x327f();}function runtimeSkillPackageFile(_0xd3d443){const _0x28957b=a65_0x346c;if(!_0xd3d443[_0x28957b(0x13a)])throw CliErrors[_0x28957b(0x1a1)](_0x28957b(0x17a));const _0x2154f4=Buffer[_0x28957b(0x170)](_0xd3d443[_0x28957b(0x13a)],_0x28957b(0x158)),_0x30108d=new Blob([_0x2154f4],{'type':_0x28957b(0x1a9)}),_0xce70c=(_0xd3d443[_0x28957b(0x198)]||_0x28957b(0x188))+_0x28957b(0x19c);if(typeof File!==_0x28957b(0x179))return new File([_0x30108d],_0xce70c,{'type':_0x28957b(0x1a9)});return _0x30108d;}function normalizeSkillHubRuntimeListResponse(_0x437f43,_0x2b23d2,_0x29e21d,_0x5b8e92){const _0x1e2779=a65_0x346c,_0x140f6b=Array['isArray'](_0x2b23d2)?_0x2b23d2:Array['isArray'](_0x2b23d2?.[_0x1e2779(0x186)])?_0x2b23d2[_0x1e2779(0x186)]:[],_0x3c2724=_0x5b8e92?.['trim'](),_0x25f526=_0x140f6b[_0x1e2779(0x13d)](_0x4e40a1=>!_0x3c2724||_0x4e40a1[_0x1e2779(0x136)]===_0x3c2724)['map'](skillHubRuntimeItemToRuntimeSkill)[_0x1e2779(0x13d)](_0x5db319=>Boolean(_0x5db319)),_0x2492b=_0x25f526[_0x1e2779(0x13d)](_0x1c8d7e=>_0x1c8d7e[_0x1e2779(0x145)]===_0x1e2779(0x18e)),_0x12e43b=_0x25f526[_0x1e2779(0x13d)](_0x2cb9cd=>_0x2cb9cd['scope']==='company');return{'appCode':_0x437f43,'personal':_0x29e21d==='company'?[]:_0x2492b,'company':_0x29e21d===_0x1e2779(0x18e)?[]:_0x12e43b,'effective':buildEffectiveRuntimeSkills(_0x2492b,_0x12e43b,_0x29e21d)};}function skillHubRuntimeItemToRuntimeSkill(_0x489a88){const _0x459b9b=a65_0x346c,_0x37fe47=_0x489a88[_0x459b9b(0x136)]?.[_0x459b9b(0x153)](),_0x2a7250=skillHubVisibilityToScope(_0x489a88[_0x459b9b(0x162)]);if(!_0x37fe47||!_0x2a7250)return undefined;return{'id':_0x489a88['id'],'appCode':_0x489a88[_0x459b9b(0x18a)],'skillCode':_0x37fe47,'skillName':_0x489a88[_0x459b9b(0x173)]??_0x37fe47,'description':_0x489a88['summary'],'scope':_0x2a7250,'version':skillHubRuntimeItemVersion(_0x489a88),'status':_0x489a88[_0x459b9b(0x149)]};}function skillHubVisibilityToScope(_0xa8e470){const _0x553b16=a65_0x346c;if(_0xa8e470===_0x553b16(0x14f))return _0x553b16(0x18e);if(_0xa8e470===_0x553b16(0x159))return _0x553b16(0x199);return undefined;}function a65_0x346c(_0x4d8588,_0x1ae43b){_0x4d8588=_0x4d8588-0x134;const _0x327f28=a65_0x327f();let _0x346cd3=_0x327f28[_0x4d8588];return _0x346cd3;}function skillHubRuntimeItemVersion(_0x17a83f){const _0x4ee8d5=a65_0x346c;return _0x17a83f[_0x4ee8d5(0x174)]?.[_0x4ee8d5(0x137)]??_0x17a83f[_0x4ee8d5(0x15a)]?.[_0x4ee8d5(0x137)]??_0x17a83f[_0x4ee8d5(0x16e)]?.[_0x4ee8d5(0x137)];}function buildEffectiveRuntimeSkills(_0x2da474,_0x3b4681,_0x52a3ea){const _0x505966=a65_0x346c;if(_0x52a3ea===_0x505966(0x18e))return _0x2da474;if(_0x52a3ea===_0x505966(0x199))return _0x3b4681;const _0xb38b73=new Map();for(const _0x10cb9a of _0x3b4681){_0xb38b73[_0x505966(0x140)](_0x10cb9a[_0x505966(0x198)],_0x10cb9a);}for(const _0x21cb9c of _0x2da474){_0xb38b73[_0x505966(0x140)](_0x21cb9c[_0x505966(0x198)],_0x21cb9c);}return Array[_0x505966(0x170)](_0xb38b73[_0x505966(0x18f)]());}function normalizeRuntimeSkillListResponse(_0x5b0a20,_0x1eee32){const _0x4ca32a=a65_0x346c;if(Array[_0x4ca32a(0x178)](_0x1eee32)){const _0x4af5ff=_0x1eee32['filter'](_0x597bd7=>_0x597bd7[_0x4ca32a(0x145)]===_0x4ca32a(0x18e)),_0x5326d2=_0x1eee32[_0x4ca32a(0x13d)](_0x433ed2=>_0x433ed2[_0x4ca32a(0x145)]==='company');return{'appCode':_0x5b0a20,'personal':_0x4af5ff,'company':_0x5326d2,'effective':[..._0x5326d2,..._0x4af5ff]};}return{'appCode':_0x1eee32?.['appCode']??_0x5b0a20,'personal':Array['isArray'](_0x1eee32?.[_0x4ca32a(0x18e)])?_0x1eee32[_0x4ca32a(0x18e)]:[],'company':Array[_0x4ca32a(0x178)](_0x1eee32?.[_0x4ca32a(0x199)])?_0x1eee32[_0x4ca32a(0x199)]:[],'effective':Array[_0x4ca32a(0x178)](_0x1eee32?.[_0x4ca32a(0x17b)])?_0x1eee32[_0x4ca32a(0x17b)]:[]};}
@@ -1 +1 @@
1
- function a66_0x3791(_0x3a1425,_0x3b2682){_0x3a1425=_0x3a1425-0x88;const _0x5890fb=a66_0x5890();let _0x379125=_0x5890fb[_0x3a1425];return _0x379125;}(function(_0x36e365,_0x12e4ab){const _0xd9b84c=a66_0x3791,_0x420a59=_0x36e365();while(!![]){try{const _0x47a313=-parseInt(_0xd9b84c(0x88))/0x1*(-parseInt(_0xd9b84c(0x9a))/0x2)+-parseInt(_0xd9b84c(0x94))/0x3+-parseInt(_0xd9b84c(0x95))/0x4+-parseInt(_0xd9b84c(0x8f))/0x5*(-parseInt(_0xd9b84c(0x93))/0x6)+-parseInt(_0xd9b84c(0x97))/0x7*(-parseInt(_0xd9b84c(0x96))/0x8)+parseInt(_0xd9b84c(0x8a))/0x9+-parseInt(_0xd9b84c(0x8b))/0xa*(parseInt(_0xd9b84c(0x98))/0xb);if(_0x47a313===_0x12e4ab)break;else _0x420a59['push'](_0x420a59['shift']());}catch(_0x3a9355){_0x420a59['push'](_0x420a59['shift']());}}}(a66_0x5890,0x24e08));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x5a5592){const _0x171fc5=a66_0x3791;if(cache[_0x171fc5(0x8d)](_0x5a5592))return cache[_0x171fc5(0x92)](_0x5a5592);const _0x3d3623=await listDatasets(_0x5a5592),_0x3ec451=new Map();for(const _0x148c6d of _0x3d3623){const _0x512a80=_0x148c6d[_0x171fc5(0x90)];_0x512a80?.['dbId']!=null&&_0x3ec451[_0x171fc5(0x99)](_0x512a80[_0x171fc5(0x8e)],_0x512a80['dbName']??_0x171fc5(0x89)+_0x512a80[_0x171fc5(0x8e)]);}const _0x2eec3b=[..._0x3ec451[_0x171fc5(0x9c)]()][_0x171fc5(0x91)](([_0xf69458,_0xc5dc73])=>({'dbId':_0xf69458,'dbName':_0xc5dc73}));return cache[_0x171fc5(0x99)](_0x5a5592,_0x2eec3b),_0x2eec3b;}function a66_0x5890(){const _0x5371aa=['dbId','45mXhZws','dbtableConfig','map','get','97992JwLwyl','712395JUfMNz','1074536VGQEem','304gGmeJe','33726zvIeiO','7535WoZIoK','set','4YUvBmK','dbName','entries','88061AtCFUw','db-','1796292hIrNJL','710xihrQv','find','has'];a66_0x5890=function(){return _0x5371aa;};return a66_0x5890();}export async function getDbName(_0x5c0bca,_0x166b3a){const _0x25ddce=a66_0x3791;try{const _0x585610=await listDatabases(_0x5c0bca);return _0x585610[_0x25ddce(0x8c)](_0x4281d1=>_0x4281d1[_0x25ddce(0x8e)]===_0x166b3a)?.[_0x25ddce(0x9b)];}catch{return undefined;}}
1
+ (function(_0x16938e,_0x55107c){const _0x4d0176=a66_0x3c4f,_0xbef1eb=_0x16938e();while(!![]){try{const _0x24084a=-parseInt(_0x4d0176(0x1dc))/0x1+parseInt(_0x4d0176(0x1d8))/0x2+parseInt(_0x4d0176(0x1d6))/0x3+-parseInt(_0x4d0176(0x1d3))/0x4+-parseInt(_0x4d0176(0x1d2))/0x5+parseInt(_0x4d0176(0x1d4))/0x6*(parseInt(_0x4d0176(0x1dd))/0x7)+-parseInt(_0x4d0176(0x1d7))/0x8*(-parseInt(_0x4d0176(0x1de))/0x9);if(_0x24084a===_0x55107c)break;else _0xbef1eb['push'](_0xbef1eb['shift']());}catch(_0x4fb1eb){_0xbef1eb['push'](_0xbef1eb['shift']());}}}(a66_0x21ed,0x2813f));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a66_0x3c4f(_0xf28a9a,_0x4a5722){_0xf28a9a=_0xf28a9a-0x1d1;const _0x21edbd=a66_0x21ed();let _0x3c4f97=_0x21edbd[_0xf28a9a];return _0x3c4f97;}export async function listDatabases(_0x368246){const _0x535748=a66_0x3c4f;if(cache[_0x535748(0x1df)](_0x368246))return cache[_0x535748(0x1d9)](_0x368246);const _0x4c7dfa=await listDatasets(_0x368246),_0x516eb8=new Map();for(const _0x134732 of _0x4c7dfa){const _0x132fd0=_0x134732['dbtableConfig'];_0x132fd0?.['dbId']!=null&&_0x516eb8[_0x535748(0x1d5)](_0x132fd0[_0x535748(0x1d1)],_0x132fd0['dbName']??_0x535748(0x1e0)+_0x132fd0[_0x535748(0x1d1)]);}const _0x16ac80=[..._0x516eb8[_0x535748(0x1db)]()]['map'](([_0x1e723d,_0x282580])=>({'dbId':_0x1e723d,'dbName':_0x282580}));return cache[_0x535748(0x1d5)](_0x368246,_0x16ac80),_0x16ac80;}export async function getDbName(_0x32bd5f,_0x13e801){const _0x376e7b=a66_0x3c4f;try{const _0x320b35=await listDatabases(_0x32bd5f);return _0x320b35['find'](_0x5007c8=>_0x5007c8['dbId']===_0x13e801)?.[_0x376e7b(0x1da)];}catch{return undefined;}}function a66_0x21ed(){const _0x49ff50=['721WyjndV','132552TWEyfh','has','db-','dbId','750085pxTeWW','627304XeYMsJ','8322jJtRqI','set','542859jcSBiR','24IGaroJ','252712YPFXmt','get','dbName','entries','23352lPITqy'];a66_0x21ed=function(){return _0x49ff50;};return a66_0x21ed();}
@@ -1 +1 @@
1
- function a67_0x33e1(_0x13fba5,_0x460f54){_0x13fba5=_0x13fba5-0xe7;const _0xed05d3=a67_0xed05();let _0x33e1b2=_0xed05d3[_0x13fba5];return _0x33e1b2;}(function(_0x1308b9,_0x152c86){const _0x1af0fd=a67_0x33e1,_0x34db2d=_0x1308b9();while(!![]){try{const _0x374966=-parseInt(_0x1af0fd(0xfd))/0x1*(parseInt(_0x1af0fd(0xfa))/0x2)+-parseInt(_0x1af0fd(0xeb))/0x3*(-parseInt(_0x1af0fd(0x10c))/0x4)+-parseInt(_0x1af0fd(0xed))/0x5+-parseInt(_0x1af0fd(0xf5))/0x6+-parseInt(_0x1af0fd(0x100))/0x7+-parseInt(_0x1af0fd(0xfe))/0x8+parseInt(_0x1af0fd(0xf6))/0x9;if(_0x374966===_0x152c86)break;else _0x34db2d['push'](_0x34db2d['shift']());}catch(_0x5d4069){_0x34db2d['push'](_0x34db2d['shift']());}}}(a67_0xed05,0xcaef5));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x3c5692){const _0x4819dc=a67_0x33e1;_client=createClient({'appCode':_0x3c5692['appCode'],'env':_0x3c5692[_0x4819dc(0xf1)],'authMode':_0x3c5692[_0x4819dc(0x102)],..._0x3c5692['accessKey']?{'accessKey':_0x3c5692[_0x4819dc(0xee)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x4819dc(0x10a)]}}});}function ensureClient(){const _0x15f455=a67_0x33e1;if(!_client)throw new Error(_0x15f455(0xf7));return _client;}function normalizeAggregateParams(_0x44613b){const _0x55ce36=a67_0x33e1,_0x13d3fe=_0x44613b[_0x55ce36(0xf4)];if(_0x13d3fe===undefined)return _0x44613b;if(!Array[_0x55ce36(0xea)](_0x13d3fe))throw CliErrors['validation'](_0x55ce36(0x107));return{..._0x44613b,'aggregate':_0x13d3fe['map']((_0x49d996,_0x462d54)=>{const _0x17a2c9=_0x55ce36;if(!_0x49d996||typeof _0x49d996!==_0x17a2c9(0xec)||Array[_0x17a2c9(0xea)](_0x49d996))throw CliErrors[_0x17a2c9(0xff)](_0x17a2c9(0xe7)+_0x462d54+_0x17a2c9(0xfc));const _0x43c65b=_0x49d996[_0x17a2c9(0x10b)]??_0x49d996[_0x17a2c9(0x101)];if(typeof _0x43c65b!=='string'||_0x43c65b[_0x17a2c9(0xf0)]()==='')throw CliErrors[_0x17a2c9(0xff)](_0x17a2c9(0xe7)+_0x462d54+_0x17a2c9(0x106));const _0xd28273={..._0x49d996,'column':_0x43c65b};return delete _0xd28273['field'],_0xd28273;})};}export async function executeData(_0x22ee17,_0x419544,_0x483c44){const _0x2a2a8f=a67_0x33e1,_0x118ffd=ensureClient(),_0x38c274=_0x2a2a8f(0xfb)+_0x22ee17,_0x6b15ec=_0x118ffd['models'][_0x38c274];if(!_0x6b15ec||typeof _0x6b15ec[_0x419544]!=='function')throw new Error(_0x2a2a8f(0xf8)+_0x419544+_0x2a2a8f(0xf9)+_0x2a2a8f(0x105));if(_0x419544===_0x2a2a8f(0x108))return _0x6b15ec[_0x2a2a8f(0x108)](parseBatchCreateItemsFromParams(_0x483c44));const _0x32f8f4=_0x483c44!==undefined&&_0x483c44!==null&&!Array[_0x2a2a8f(0xea)](_0x483c44)?_0x483c44:{};switch(_0x419544){case _0x2a2a8f(0xe8):{const _0x59516e=_0x32f8f4['id'];if(_0x59516e===undefined||_0x59516e===null)throw new Error(_0x2a2a8f(0x104));return _0x6b15ec['getOne'](_0x59516e);}case _0x2a2a8f(0xef):{const {id:_0x6c67d0,..._0x1b21b9}=_0x32f8f4;if(_0x6c67d0===undefined||_0x6c67d0===null)throw new Error(_0x2a2a8f(0xf2));return _0x6b15ec['update'](_0x6c67d0,_0x1b21b9);}case'delete':{const _0x5626ba=_0x32f8f4['id'];if(_0x5626ba===undefined||_0x5626ba===null)throw new Error(_0x2a2a8f(0xe9));return _0x6b15ec[_0x2a2a8f(0xf3)](_0x5626ba);}case _0x2a2a8f(0xf4):return _0x6b15ec[_0x2a2a8f(0xf4)](normalizeAggregateParams(_0x32f8f4));default:return _0x6b15ec[_0x419544](_0x32f8f4);}}export async function executeSdkSql(_0x43de43,_0x26be8f){const _0x448b8f=a67_0x33e1,_0xa2eb26=ensureClient();return _0xa2eb26[_0x448b8f(0x103)]['execute']({'sqlCode':_0x43de43,'params':_0x26be8f});}function a67_0xed05(){const _0x3db58a=['SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','\x22.\x20','94JISNEn','dataset_',']\x20must\x20be\x20an\x20object.','25601VEGybx','462976JbvnXY','validation','3868893PHeruQ','field','authMode','sql','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','batchCreate','bff','invokeSource','column','11612ziPznz','data\x20aggregate\x20--params.aggregate[','getOne','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','isArray','756BteTmy','object','7724015JFDMem','accessKey','update','trim','env','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','delete','aggregate','1855776VaIsic','33908238NkNcvQ'];a67_0xed05=function(){return _0x3db58a;};return a67_0xed05();}export async function executeSdkBff(_0x335e6f,_0x3b062c){const _0x273d4a=a67_0x33e1,_0x522362=ensureClient();return _0x522362[_0x273d4a(0x109)]['execute']({'scriptName':_0x335e6f,'params':_0x3b062c});}
1
+ (function(_0x14bce7,_0x4a3e35){const _0x1aeb48=a67_0x5512,_0x3ad77a=_0x14bce7();while(!![]){try{const _0x4ab9d1=-parseInt(_0x1aeb48(0x146))/0x1+-parseInt(_0x1aeb48(0x154))/0x2*(parseInt(_0x1aeb48(0x134))/0x3)+-parseInt(_0x1aeb48(0x14d))/0x4+parseInt(_0x1aeb48(0x152))/0x5*(-parseInt(_0x1aeb48(0x149))/0x6)+-parseInt(_0x1aeb48(0x14e))/0x7+-parseInt(_0x1aeb48(0x147))/0x8*(parseInt(_0x1aeb48(0x155))/0x9)+-parseInt(_0x1aeb48(0x13c))/0xa*(-parseInt(_0x1aeb48(0x157))/0xb);if(_0x4ab9d1===_0x4a3e35)break;else _0x3ad77a['push'](_0x3ad77a['shift']());}catch(_0x4b30c7){_0x3ad77a['push'](_0x3ad77a['shift']());}}}(a67_0x52da,0x91fd8));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;function a67_0x5512(_0x3990a5,_0x325835){_0x3990a5=_0x3990a5-0x132;const _0x52dad5=a67_0x52da();let _0x551275=_0x52dad5[_0x3990a5];return _0x551275;}export function initSdkClient(_0x211e6a){const _0x315bcf=a67_0x5512;_client=createClient({'appCode':_0x211e6a['appCode'],'env':_0x211e6a['env'],'authMode':_0x211e6a[_0x315bcf(0x148)],..._0x211e6a[_0x315bcf(0x142)]?{'accessKey':_0x211e6a[_0x315bcf(0x142)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x315bcf(0x135)]}}});}function ensureClient(){const _0xf2df37=a67_0x5512;if(!_client)throw new Error(_0xf2df37(0x132));return _client;}function a67_0x52da(){const _0x37228f=['object','4770XHesOe','invokeSource','string','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','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','models','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','183070xuwRHS','\x22.\x20','function','trim','execute','getOne','accessKey','delete','column','field','771756lMbqNk','8UEvtvq','authMode','1542EoighX','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22',']\x20must\x20be\x20an\x20object.','2486932AYFwMS','1608082ddUwdT','map','validation','data\x20aggregate\x20--params.aggregate[','3110lhbjzc','sql','470fkuLci','7501293dOyYoP','aggregate','2156MvBsNj','isArray',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','dataset_','batchCreate','update','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.'];a67_0x52da=function(){return _0x37228f;};return a67_0x52da();}function normalizeAggregateParams(_0x490303){const _0x3af83d=a67_0x5512,_0x1aa8c5=_0x490303[_0x3af83d(0x156)];if(_0x1aa8c5===undefined)return _0x490303;if(!Array[_0x3af83d(0x158)](_0x1aa8c5))throw CliErrors[_0x3af83d(0x150)](_0x3af83d(0x14a));return{..._0x490303,'aggregate':_0x1aa8c5[_0x3af83d(0x14f)]((_0x48ae48,_0x51fbed)=>{const _0x239364=_0x3af83d;if(!_0x48ae48||typeof _0x48ae48!==_0x239364(0x133)||Array[_0x239364(0x158)](_0x48ae48))throw CliErrors[_0x239364(0x150)](_0x239364(0x151)+_0x51fbed+_0x239364(0x14c));const _0x43bbd8=_0x48ae48[_0x239364(0x144)]??_0x48ae48[_0x239364(0x145)];if(typeof _0x43bbd8!==_0x239364(0x136)||_0x43bbd8[_0x239364(0x13f)]()==='')throw CliErrors[_0x239364(0x150)]('data\x20aggregate\x20--params.aggregate['+_0x51fbed+_0x239364(0x159));const _0x17e865={..._0x48ae48,'column':_0x43bbd8};return delete _0x17e865[_0x239364(0x145)],_0x17e865;})};}export async function executeData(_0x5dc491,_0xd9b6a5,_0x1cdff3){const _0x2709a8=a67_0x5512,_0x16c45d=ensureClient(),_0x286b99=_0x2709a8(0x15a)+_0x5dc491,_0x4ff163=_0x16c45d[_0x2709a8(0x13a)][_0x286b99];if(!_0x4ff163||typeof _0x4ff163[_0xd9b6a5]!==_0x2709a8(0x13e))throw new Error(_0x2709a8(0x14b)+_0xd9b6a5+_0x2709a8(0x13d)+_0x2709a8(0x139));if(_0xd9b6a5===_0x2709a8(0x15b))return _0x4ff163[_0x2709a8(0x15b)](parseBatchCreateItemsFromParams(_0x1cdff3));const _0x321f31=_0x1cdff3!==undefined&&_0x1cdff3!==null&&!Array[_0x2709a8(0x158)](_0x1cdff3)?_0x1cdff3:{};switch(_0xd9b6a5){case _0x2709a8(0x141):{const _0x3bde2c=_0x321f31['id'];if(_0x3bde2c===undefined||_0x3bde2c===null)throw new Error(_0x2709a8(0x137));return _0x4ff163[_0x2709a8(0x141)](_0x3bde2c);}case _0x2709a8(0x15c):{const {id:_0x88e37c,..._0x324612}=_0x321f31;if(_0x88e37c===undefined||_0x88e37c===null)throw new Error(_0x2709a8(0x13b));return _0x4ff163[_0x2709a8(0x15c)](_0x88e37c,_0x324612);}case _0x2709a8(0x143):{const _0x38bb1a=_0x321f31['id'];if(_0x38bb1a===undefined||_0x38bb1a===null)throw new Error(_0x2709a8(0x138));return _0x4ff163[_0x2709a8(0x143)](_0x38bb1a);}case'aggregate':return _0x4ff163['aggregate'](normalizeAggregateParams(_0x321f31));default:return _0x4ff163[_0xd9b6a5](_0x321f31);}}export async function executeSdkSql(_0x12d1fa,_0x19748a){const _0x5d6811=a67_0x5512,_0x2aea78=ensureClient();return _0x2aea78[_0x5d6811(0x153)][_0x5d6811(0x140)]({'sqlCode':_0x12d1fa,'params':_0x19748a});}export async function executeSdkBff(_0x1f7330,_0x1be66){const _0x2c3e24=a67_0x5512,_0x271ba5=ensureClient();return _0x271ba5['bff'][_0x2c3e24(0x140)]({'scriptName':_0x1f7330,'params':_0x1be66});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a68_0x3b1c9d=a68_0x5f26;(function(_0x597205,_0x40243f){const _0x114c7e=a68_0x5f26,_0x3939dd=_0x597205();while(!![]){try{const _0xd3f7dd=-parseInt(_0x114c7e(0xc8))/0x1+parseInt(_0x114c7e(0xc0))/0x2+-parseInt(_0x114c7e(0xc6))/0x3*(parseInt(_0x114c7e(0xc4))/0x4)+parseInt(_0x114c7e(0xbe))/0x5+-parseInt(_0x114c7e(0xbf))/0x6*(-parseInt(_0x114c7e(0xca))/0x7)+-parseInt(_0x114c7e(0xbd))/0x8+-parseInt(_0x114c7e(0xc1))/0x9*(-parseInt(_0x114c7e(0xc7))/0xa);if(_0xd3f7dd===_0x40243f)break;else _0x3939dd['push'](_0x3939dd['shift']());}catch(_0x1c4039){_0x3939dd['push'](_0x3939dd['shift']());}}}(a68_0x51e6,0xbf7ff));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a68_0x5f26(_0x5591fb,_0x417138){_0x5591fb=_0x5591fb-0xbb;const _0x51e604=a68_0x51e6();let _0x5f2651=_0x51e604[_0x5591fb];return _0x5f2651;}import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};function a68_0x51e6(){const _0xc2c027=['Set\x20appcode\x20via\x20--appcode\x20or\x20','4bWtLJs','\x20auth\x20login`.','18555aqWhvA','53070atkDyH','1106254DcXNZd','\x20file.','21154hAbRcg','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','newConfigFileName','6218848uKNgKs','3349015kjsuTe','1170RBOiHY','6846ALuYuO','2394NWVrgN','Configure\x20accessKey\x20in\x20'];a68_0x51e6=function(){return _0xc2c027;};return a68_0x51e6();}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a68_0x3b1c9d(0xc2)+PRODUCT_CONFIG[a68_0x3b1c9d(0xbc)]+'\x20or\x20run\x20`'+CLI_BIN_NAME+a68_0x3b1c9d(0xc5),'configMissingHint':a68_0x3b1c9d(0xc3)+PRODUCT_CONFIG[a68_0x3b1c9d(0xbc)]+'.','notInProjectHint':a68_0x3b1c9d(0xbb)+PRODUCT_CONFIG['newConfigFileName']+a68_0x3b1c9d(0xc9)});
1
+ function a68_0x2686(){const _0x2f95ee=['5351046aWaAEG','newConfigFileName','5VmUADv','15813minqdk','Configure\x20accessKey\x20in\x20','1061508FUepcn','1780crFtDY','8nPUnyO','Set\x20appcode\x20via\x20--appcode\x20or\x20','14992659iSkzyN','\x20auth\x20login`.','6883219JEbMYF','10Saketp','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','407824awinkB','431796JaMJRv'];a68_0x2686=function(){return _0x2f95ee;};return a68_0x2686();}const a68_0x18c33b=a68_0x1c77;function a68_0x1c77(_0xdeafb9,_0x3ff403){_0xdeafb9=_0xdeafb9-0x10b;const _0x26866c=a68_0x2686();let _0x1c7732=_0x26866c[_0xdeafb9];return _0x1c7732;}(function(_0xcbede9,_0x414d3c){const _0x599c55=a68_0x1c77,_0x708c14=_0xcbede9();while(!![]){try{const _0x589f99=parseInt(_0x599c55(0x10f))/0x1+parseInt(_0x599c55(0x116))/0x2*(parseInt(_0x599c55(0x119))/0x3)+-parseInt(_0x599c55(0x118))/0x4+-parseInt(_0x599c55(0x10c))/0x5*(-parseInt(_0x599c55(0x11a))/0x6)+parseInt(_0x599c55(0x115))/0x7*(-parseInt(_0x599c55(0x111))/0x8)+parseInt(_0x599c55(0x10d))/0x9*(parseInt(_0x599c55(0x110))/0xa)+-parseInt(_0x599c55(0x113))/0xb;if(_0x589f99===_0x414d3c)break;else _0x708c14['push'](_0x708c14['shift']());}catch(_0x1fa74c){_0x708c14['push'](_0x708c14['shift']());}}}(a68_0x2686,0x833a9));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':a68_0x18c33b(0x10e)+PRODUCT_CONFIG[a68_0x18c33b(0x10b)]+'\x20or\x20run\x20`'+CLI_BIN_NAME+a68_0x18c33b(0x114),'configMissingHint':a68_0x18c33b(0x112)+PRODUCT_CONFIG[a68_0x18c33b(0x10b)]+'.','notInProjectHint':a68_0x18c33b(0x117)+PRODUCT_CONFIG[a68_0x18c33b(0x10b)]+'\x20file.'});
@@ -1 +1 @@
1
- (function(_0x9275ae,_0x179d0e){var _0x25f126=a69_0x30e5,_0x41f72b=_0x9275ae();while(!![]){try{var _0x2ab963=parseInt(_0x25f126(0x88))/0x1*(parseInt(_0x25f126(0x81))/0x2)+parseInt(_0x25f126(0x82))/0x3+parseInt(_0x25f126(0x83))/0x4+-parseInt(_0x25f126(0x8a))/0x5+parseInt(_0x25f126(0x89))/0x6+parseInt(_0x25f126(0x87))/0x7*(-parseInt(_0x25f126(0x84))/0x8)+-parseInt(_0x25f126(0x86))/0x9*(-parseInt(_0x25f126(0x85))/0xa);if(_0x2ab963===_0x179d0e)break;else _0x41f72b['push'](_0x41f72b['shift']());}catch(_0x517f17){_0x41f72b['push'](_0x41f72b['shift']());}}}(a69_0x1c52,0x6301d));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a69_0x2d9041}from'@lovrabet/cli-framework';export function buildAllFlags(_0x5b999d){return a69_0x2d9041(_0x5b999d,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a69_0x30e5(_0x5263a1,_0x410549){_0x5263a1=_0x5263a1-0x81;var _0x1c5276=a69_0x1c52();var _0x30e5a9=_0x1c5276[_0x5263a1];return _0x30e5a9;}function a69_0x1c52(){var _0x258737=['12XMIpqu','660162iuYYPb','91100ELQbPg','64rBExHH','88780dpEFOY','27HajFCX','272853tRTpAG','99967qrpoaU','550212WsyPEx','1218010hZVyjD'];a69_0x1c52=function(){return _0x258737;};return a69_0x1c52();}
1
+ function a69_0x10a0(_0x543832,_0x111e8a){_0x543832=_0x543832-0xd4;var _0x186f05=a69_0x186f();var _0x10a0a7=_0x186f05[_0x543832];return _0x10a0a7;}function a69_0x186f(){var _0x11548b=['820251aJrQdb','12qmAVNU','5380424YlbGwK','3770HVGgmn','38UJojSK','2656540RuWAOt','15499SQKaFJ','16542wNMbyT','1929275EKXved','1738017GQfTVV','7LuIJEj'];a69_0x186f=function(){return _0x11548b;};return a69_0x186f();}(function(_0x445b75,_0x132af5){var _0x6dd44=a69_0x10a0,_0x1d4be2=_0x445b75();while(!![]){try{var _0x16f36e=-parseInt(_0x6dd44(0xdb))/0x1*(-parseInt(_0x6dd44(0xde))/0x2)+-parseInt(_0x6dd44(0xd7))/0x3+parseInt(_0x6dd44(0xdc))/0x4+parseInt(_0x6dd44(0xd4))/0x5*(parseInt(_0x6dd44(0xd8))/0x6)+parseInt(_0x6dd44(0xd6))/0x7*(-parseInt(_0x6dd44(0xd9))/0x8)+parseInt(_0x6dd44(0xd5))/0x9+parseInt(_0x6dd44(0xda))/0xa*(-parseInt(_0x6dd44(0xdd))/0xb);if(_0x16f36e===_0x132af5)break;else _0x1d4be2['push'](_0x1d4be2['shift']());}catch(_0x423caa){_0x1d4be2['push'](_0x1d4be2['shift']());}}}(a69_0x186f,0x71cad));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a69_0x1fcef6}from'@lovrabet/cli-framework';export function buildAllFlags(_0x2f628d){return a69_0x1fcef6(_0x2f628d,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- function a70_0x51aa(){const _0x525be1=['396198emzMNA','2dwbEVe','1705vNTwYO','1712942GqmoZu','18zQBDeH','10qUdtAF','5372PRIZZy','684336vpIWkb','2240104tunJDM','description','2392296nrHeqU','1863029IcVXci'];a70_0x51aa=function(){return _0x525be1;};return a70_0x51aa();}(function(_0x3846dd,_0x36197c){const _0x2ac022=a70_0x47f8,_0x56ec78=_0x3846dd();while(!![]){try{const _0x42a370=parseInt(_0x2ac022(0x181))/0x1*(parseInt(_0x2ac022(0x180))/0x2)+-parseInt(_0x2ac022(0x17b))/0x3+-parseInt(_0x2ac022(0x17a))/0x4*(-parseInt(_0x2ac022(0x182))/0x5)+parseInt(_0x2ac022(0x17e))/0x6+-parseInt(_0x2ac022(0x17f))/0x7+parseInt(_0x2ac022(0x17c))/0x8*(-parseInt(_0x2ac022(0x178))/0x9)+-parseInt(_0x2ac022(0x179))/0xa*(-parseInt(_0x2ac022(0x183))/0xb);if(_0x42a370===_0x36197c)break;else _0x56ec78['push'](_0x56ec78['shift']());}catch(_0xdb250d){_0x56ec78['push'](_0x56ec78['shift']());}}}(a70_0x51aa,0x5680a));function a70_0x47f8(_0xd3c726,_0x13ef15){_0xd3c726=_0xd3c726-0x178;const _0x51aa1b=a70_0x51aa();let _0x47f8f3=_0x51aa1b[_0xd3c726];return _0x47f8f3;}export function dryRun(_0x41d8d6,_0x56cfd6){const _0x89cc1={'method':_0x41d8d6,'url':_0x56cfd6},_0x450f95={'body'(_0x275eb3){return _0x89cc1['body']=_0x275eb3,_0x450f95;},'description'(_0xc77ebf){const _0x27ece1=a70_0x47f8;return _0x89cc1[_0x27ece1(0x17d)]=_0xc77ebf,_0x450f95;},'build'(){return{..._0x89cc1};}};return _0x450f95;}
1
+ function a70_0x376a(){const _0x6c4fd6=['4680WsThGt','4001557BUmCcH','4682148hRhrMT','1651912xxvWeH','1981068QRHNLx','13955LHYgyc','body','768ilmcGm','44600WwNUCF','8374BkNzaq'];a70_0x376a=function(){return _0x6c4fd6;};return a70_0x376a();}function a70_0x1b87(_0x37b160,_0x56fbe0){_0x37b160=_0x37b160-0xc7;const _0x376a4a=a70_0x376a();let _0x1b87d0=_0x376a4a[_0x37b160];return _0x1b87d0;}(function(_0x51b099,_0x40dd6b){const _0xd2631a=a70_0x1b87,_0x13f26b=_0x51b099();while(!![]){try{const _0x4a0d1f=-parseInt(_0xd2631a(0xce))/0x1+-parseInt(_0xd2631a(0xc8))/0x2+-parseInt(_0xd2631a(0xc9))/0x3+-parseInt(_0xd2631a(0xcc))/0x4*(parseInt(_0xd2631a(0xca))/0x5)+-parseInt(_0xd2631a(0xc7))/0x6+parseInt(_0xd2631a(0xd0))/0x7+parseInt(_0xd2631a(0xcd))/0x8*(parseInt(_0xd2631a(0xcf))/0x9);if(_0x4a0d1f===_0x40dd6b)break;else _0x13f26b['push'](_0x13f26b['shift']());}catch(_0x326156){_0x13f26b['push'](_0x13f26b['shift']());}}}(a70_0x376a,0xa1117));export function dryRun(_0x2c6ec5,_0x361c76){const _0x19a481={'method':_0x2c6ec5,'url':_0x361c76},_0x5db359={'body'(_0x331424){const _0x5bf011=a70_0x1b87;return _0x19a481[_0x5bf011(0xcb)]=_0x331424,_0x5db359;},'description'(_0xebf0c5){return _0x19a481['description']=_0xebf0c5,_0x5db359;},'build'(){return{..._0x19a481};}};return _0x5db359;}
@@ -1 +1 @@
1
- const a71_0x380358=a71_0x1dda;(function(_0x10c62f,_0x267092){const _0x44a857=a71_0x1dda,_0x43b4fd=_0x10c62f();while(!![]){try{const _0x25b4dd=parseInt(_0x44a857(0x73))/0x1+parseInt(_0x44a857(0x72))/0x2*(-parseInt(_0x44a857(0x7a))/0x3)+-parseInt(_0x44a857(0x71))/0x4*(parseInt(_0x44a857(0x75))/0x5)+parseInt(_0x44a857(0x78))/0x6*(-parseInt(_0x44a857(0x70))/0x7)+-parseInt(_0x44a857(0x77))/0x8+parseInt(_0x44a857(0x7b))/0x9*(-parseInt(_0x44a857(0x76))/0xa)+parseInt(_0x44a857(0x74))/0xb;if(_0x25b4dd===_0x267092)break;else _0x43b4fd['push'](_0x43b4fd['shift']());}catch(_0x5842f5){_0x43b4fd['push'](_0x43b4fd['shift']());}}}(a71_0x4b86,0xa8140));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a71_0x1dda(_0x9ab5cf,_0x20481e){_0x9ab5cf=_0x9ab5cf-0x70;const _0x4b86c2=a71_0x4b86();let _0x1dda4b=_0x4b86c2[_0x9ab5cf];return _0x1dda4b;}function a71_0x4b86(){const _0xcda75d=['18HgUwhq','validateFlags','7491344LqXEMa','2436vGcyTP','146PWmBNg','1093223LHDPjZ','38513794OLybaP','9815OUWFPP','1099140ySntVZ','3565600GdmCfO','6CXVOEk','parseFlags','40062aBixar'];a71_0x4b86=function(){return _0xcda75d;};return a71_0x4b86();}export const parseFlags=helpers[a71_0x380358(0x79)];export const validateFlags=helpers[a71_0x380358(0x7c)];
1
+ const a71_0x21f053=a71_0x165a;(function(_0x2fdf29,_0x503e8b){const _0x57fb8d=a71_0x165a,_0x52d543=_0x2fdf29();while(!![]){try{const _0x2d4331=parseInt(_0x57fb8d(0x126))/0x1+-parseInt(_0x57fb8d(0x127))/0x2+-parseInt(_0x57fb8d(0x123))/0x3*(-parseInt(_0x57fb8d(0x120))/0x4)+parseInt(_0x57fb8d(0x122))/0x5+parseInt(_0x57fb8d(0x11e))/0x6*(-parseInt(_0x57fb8d(0x125))/0x7)+parseInt(_0x57fb8d(0x128))/0x8*(-parseInt(_0x57fb8d(0x11f))/0x9)+parseInt(_0x57fb8d(0x124))/0xa;if(_0x2d4331===_0x503e8b)break;else _0x52d543['push'](_0x52d543['shift']());}catch(_0x175a3d){_0x52d543['push'](_0x52d543['shift']());}}}(a71_0x1a7a,0x496e1));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a71_0x165a(_0x32ed74,_0x5b6425){_0x32ed74=_0x32ed74-0x11e;const _0x1a7a24=a71_0x1a7a();let _0x165aeb=_0x1a7a24[_0x32ed74];return _0x165aeb;}export const parseFlags=helpers[a71_0x21f053(0x121)];export const validateFlags=helpers[a71_0x21f053(0x129)];function a71_0x1a7a(){const _0x4fbf6d=['1295eEGnBw','32663RXqJQA','394482tGaGlJ','372560tjGjuZ','validateFlags','1320qGTfvn','9dvryzu','12azOWeP','parseFlags','1034935qJbHKK','31479bULewC','3141510GOhoIQ'];a71_0x1a7a=function(){return _0x4fbf6d;};return a71_0x1a7a();}
@@ -1 +1 @@
1
- (function(_0x2b6e47,_0x2e2021){const _0x345afd=a72_0x625e,_0x129d79=_0x2b6e47();while(!![]){try{const _0x2c4537=parseInt(_0x345afd(0x1a9))/0x1*(-parseInt(_0x345afd(0x1a7))/0x2)+-parseInt(_0x345afd(0x19c))/0x3*(parseInt(_0x345afd(0x1ab))/0x4)+-parseInt(_0x345afd(0x1a3))/0x5*(-parseInt(_0x345afd(0x1a4))/0x6)+-parseInt(_0x345afd(0x1a8))/0x7*(parseInt(_0x345afd(0x19e))/0x8)+-parseInt(_0x345afd(0x1a1))/0x9+parseInt(_0x345afd(0x198))/0xa*(-parseInt(_0x345afd(0x19d))/0xb)+-parseInt(_0x345afd(0x199))/0xc*(-parseInt(_0x345afd(0x19a))/0xd);if(_0x2c4537===_0x2e2021)break;else _0x129d79['push'](_0x129d79['shift']());}catch(_0x183dc1){_0x129d79['push'](_0x129d79['shift']());}}}(a72_0x2327,0x35e62));function a72_0x625e(_0x25a59d,_0xa901bf){_0x25a59d=_0x25a59d-0x198;const _0x232751=a72_0x2327();let _0x625e04=_0x232751[_0x25a59d];return _0x625e04;}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 createGenerators(){const _0x27ff05=a72_0x625e;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[...serviceRegistry,...safeListDynamicServiceEntries()],'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x27ff05(0x1a6)+PRODUCT_CONFIG[_0x27ff05(0x19b)]+_0x27ff05(0x1a0)});}export function generateCommandHelp(_0x5c9a1e){return createGenerators()['generateCommandHelp'](_0x5c9a1e);}export function generateServiceHelp(_0x34c647){const _0x5399be=a72_0x625e;return createGenerators()[_0x5399be(0x19f)](_0x34c647);}export function generateFullHelp(){const _0x4980ab=a72_0x625e;return createGenerators()[_0x4980ab(0x1ac)]();}function getAnyServiceEntry(_0x228156){const _0x161db2=getServiceEntry(_0x228156);if(_0x161db2)return _0x161db2;try{return getDynamicServiceEntry(_0x228156);}catch{return undefined;}}function getAnyServiceDefinitions(_0x5eb200){const _0xa96d31=serviceGroups['get'](_0x5eb200);if(_0xa96d31)return _0xa96d31;try{return getDynamicServiceDefinitions(_0x5eb200);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x1e7202=a72_0x625e,_0x5971a0=new Set(serviceRegistry[_0x1e7202(0x1ad)](_0x59d248=>_0x59d248[_0x1e7202(0x1a2)]));try{return listDynamicServiceEntries()[_0x1e7202(0x1a5)](_0x549eb=>!_0x5971a0[_0x1e7202(0x1aa)](_0x549eb[_0x1e7202(0x1a2)]));}catch{return[];}}function a72_0x2327(){const _0x2b11d1=['generateServiceHelp','\x20or\x20--appcode).','3210066EJqJFc','service','5390kDAhIc','378YBBGoX','filter','Requires\x20appcode\x20(set\x20via\x20','30242aDORax','14fWWzTN','27rJWqNc','has','95980CpkYtH','generateFullHelp','map','1570OwQuOl','4590948NAFUzN','52JuPVLG','newConfigFileName','27MjshnJ','17446hskGHH','590248NjgGfY'];a72_0x2327=function(){return _0x2b11d1;};return a72_0x2327();}
1
+ (function(_0x461972,_0xe08e8d){const _0x1a1924=a72_0x4006,_0x24a8f1=_0x461972();while(!![]){try{const _0x39ec42=parseInt(_0x1a1924(0x154))/0x1*(-parseInt(_0x1a1924(0x153))/0x2)+parseInt(_0x1a1924(0x14c))/0x3+parseInt(_0x1a1924(0x14f))/0x4*(parseInt(_0x1a1924(0x14e))/0x5)+parseInt(_0x1a1924(0x156))/0x6+-parseInt(_0x1a1924(0x14a))/0x7+parseInt(_0x1a1924(0x150))/0x8+-parseInt(_0x1a1924(0x155))/0x9;if(_0x39ec42===_0xe08e8d)break;else _0x24a8f1['push'](_0x24a8f1['shift']());}catch(_0x380be2){_0x24a8f1['push'](_0x24a8f1['shift']());}}}(a72_0x1d16,0xea2d1));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 createGenerators(){const _0x323bbf=a72_0x4006;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[...serviceRegistry,...safeListDynamicServiceEntries()],'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x323bbf(0x149)+PRODUCT_CONFIG[_0x323bbf(0x145)]+_0x323bbf(0x152)});}export function generateCommandHelp(_0x5206c7){const _0x1e19da=a72_0x4006;return createGenerators()[_0x1e19da(0x147)](_0x5206c7);}export function generateServiceHelp(_0x12ec17){return createGenerators()['generateServiceHelp'](_0x12ec17);}export function generateFullHelp(){const _0x2e1f70=a72_0x4006;return createGenerators()[_0x2e1f70(0x157)]();}function a72_0x4006(_0xbba9f4,_0x8720fe){_0xbba9f4=_0xbba9f4-0x145;const _0x1d1613=a72_0x1d16();let _0x4006b6=_0x1d1613[_0xbba9f4];return _0x4006b6;}function getAnyServiceEntry(_0x3cba0e){const _0xcba5b=getServiceEntry(_0x3cba0e);if(_0xcba5b)return _0xcba5b;try{return getDynamicServiceEntry(_0x3cba0e);}catch{return undefined;}}function a72_0x1d16(){const _0x5ed8a4=['map','\x20or\x20--appcode).','74134ewPJff','3BcuZvM','14431896BYcknG','62478vXssCL','generateFullHelp','newConfigFileName','get','generateCommandHelp','service','Requires\x20appcode\x20(set\x20via\x20','4163453KewEqz','has','2171181eBdYeh','filter','15DUxoMR','2497316EhFwya','5292656YNCrjG'];a72_0x1d16=function(){return _0x5ed8a4;};return a72_0x1d16();}function getAnyServiceDefinitions(_0x131c90){const _0x5616c6=a72_0x4006,_0x3421e3=serviceGroups[_0x5616c6(0x146)](_0x131c90);if(_0x3421e3)return _0x3421e3;try{return getDynamicServiceDefinitions(_0x131c90);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0xd5635=a72_0x4006,_0x95a4db=new Set(serviceRegistry[_0xd5635(0x151)](_0x465e5a=>_0x465e5a['service']));try{return listDynamicServiceEntries()[_0xd5635(0x14d)](_0xf6a36e=>!_0x95a4db[_0xd5635(0x14b)](_0xf6a36e[_0xd5635(0x148)]));}catch{return[];}}
@@ -1 +1 @@
1
- function a73_0x36c9(_0x58e02c,_0x121ac4){_0x58e02c=_0x58e02c-0xf9;var _0x1c539d=a73_0x1c53();var _0x36c94b=_0x1c539d[_0x58e02c];return _0x36c94b;}(function(_0x865a42,_0x58d359){var _0x3532ca=a73_0x36c9,_0x9ebecc=_0x865a42();while(!![]){try{var _0x180a31=parseInt(_0x3532ca(0xf9))/0x1+-parseInt(_0x3532ca(0x102))/0x2*(-parseInt(_0x3532ca(0xfa))/0x3)+-parseInt(_0x3532ca(0xff))/0x4*(-parseInt(_0x3532ca(0x101))/0x5)+parseInt(_0x3532ca(0xfb))/0x6+-parseInt(_0x3532ca(0xfc))/0x7+parseInt(_0x3532ca(0xfe))/0x8*(-parseInt(_0x3532ca(0xfd))/0x9)+-parseInt(_0x3532ca(0x100))/0xa;if(_0x180a31===_0x58d359)break;else _0x9ebecc['push'](_0x9ebecc['shift']());}catch(_0x5763e7){_0x9ebecc['push'](_0x9ebecc['shift']());}}}(a73_0x1c53,0x4b318));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a73_0x1c53(){var _0x35c65e=['13564qobptO','5443590axYYdZ','345jaaaPR','103438azGYyy','257631plzBxY','12cOqIUq','1852650ArbZVx','902020hBTEOO','9bCZqlP','208400ktnLHv'];a73_0x1c53=function(){return _0x35c65e;};return a73_0x1c53();}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
1
+ (function(_0x339794,_0x4056a1){var _0x4f74b3=a73_0x32eb,_0x6906fa=_0x339794();while(!![]){try{var _0x23bdc1=parseInt(_0x4f74b3(0x72))/0x1+parseInt(_0x4f74b3(0x76))/0x2*(parseInt(_0x4f74b3(0x73))/0x3)+-parseInt(_0x4f74b3(0x77))/0x4+-parseInt(_0x4f74b3(0x71))/0x5+parseInt(_0x4f74b3(0x70))/0x6*(parseInt(_0x4f74b3(0x78))/0x7)+-parseInt(_0x4f74b3(0x74))/0x8+parseInt(_0x4f74b3(0x75))/0x9;if(_0x23bdc1===_0x4056a1)break;else _0x6906fa['push'](_0x6906fa['shift']());}catch(_0xcd94a2){_0x6906fa['push'](_0x6906fa['shift']());}}}(a73_0x3bd3,0x4dd48));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a73_0x3bd3(){var _0x1bbfa9=['14FLAjlX','742362uqoUTY','1841125bcFsHK','129621KNDVOX','114ZeEttV','2344704rFvavO','6349113eHHXZd','17594yzIcSD','1746852njqOqI'];a73_0x3bd3=function(){return _0x1bbfa9;};return a73_0x3bd3();}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';function a73_0x32eb(_0x10ceb8,_0x27d7b4){_0x10ceb8=_0x10ceb8-0x70;var _0x3bd38f=a73_0x3bd3();var _0x32ebdf=_0x3bd38f[_0x10ceb8];return _0x32ebdf;}export{riskLevelOrder,isValidFormat}from'../framework/types.js';