@lovrabet/lovrabet-cli 2.3.0-beta.6 → 2.3.0

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 (164) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/init.js +1 -1
  25. package/lib/commands/config/shared.js +1 -1
  26. package/lib/commands/data/index.js +1 -1
  27. package/lib/commands/dataset/detail.js +1 -1
  28. package/lib/commands/dataset/index.js +1 -1
  29. package/lib/commands/dataset/list.js +1 -1
  30. package/lib/commands/dataset/sdk-doc.js +1 -1
  31. package/lib/commands/doctor.js +1 -1
  32. package/lib/commands/file/index.js +1 -1
  33. package/lib/commands/init.js +1 -1
  34. package/lib/commands/kb/index.js +1 -1
  35. package/lib/commands/logs/index.js +1 -1
  36. package/lib/commands/notification/config-list.js +1 -1
  37. package/lib/commands/notification/index.js +1 -1
  38. package/lib/commands/notification/shared.js +1 -1
  39. package/lib/commands/ocr/index.js +1 -1
  40. package/lib/commands/permit/dataset-get.js +1 -1
  41. package/lib/commands/permit/dataset-set.js +1 -1
  42. package/lib/commands/permit/index.js +1 -1
  43. package/lib/commands/permit/page-get.js +1 -1
  44. package/lib/commands/permit/page-set.js +1 -1
  45. package/lib/commands/permit/role-menus-set.js +1 -1
  46. package/lib/commands/permit/role-menus.js +1 -1
  47. package/lib/commands/permit/shared.js +1 -1
  48. package/lib/commands/personal-bff/index.js +1 -1
  49. package/lib/commands/registry.js +1 -1
  50. package/lib/commands/role/create.js +1 -1
  51. package/lib/commands/role/delete.js +1 -1
  52. package/lib/commands/role/detail.js +1 -1
  53. package/lib/commands/role/index.js +1 -1
  54. package/lib/commands/role/list.js +1 -1
  55. package/lib/commands/role/shared.js +1 -1
  56. package/lib/commands/role/update.js +1 -1
  57. package/lib/commands/role/user-add.js +1 -1
  58. package/lib/commands/role/user-remove.js +1 -1
  59. package/lib/commands/schedule/index.js +1 -1
  60. package/lib/commands/schema.js +1 -1
  61. package/lib/commands/service/dynamic.js +1 -1
  62. package/lib/commands/service/function-name-adapter.js +1 -1
  63. package/lib/commands/service/index.js +1 -1
  64. package/lib/commands/service/registry.js +1 -1
  65. package/lib/commands/skill/commands/create.js +1 -1
  66. package/lib/commands/skill/commands/diagram.js +1 -1
  67. package/lib/commands/skill/commands/install.js +1 -1
  68. package/lib/commands/skill/commands/list.js +1 -1
  69. package/lib/commands/skill/commands/push.js +1 -1
  70. package/lib/commands/skill/commands/validate.js +1 -1
  71. package/lib/commands/skill/diagram.js +1 -1
  72. package/lib/commands/skill/flags.js +1 -1
  73. package/lib/commands/skill/index.js +1 -1
  74. package/lib/commands/skill/manifest-helpers.js +1 -1
  75. package/lib/commands/skill/push-execute.js +1 -1
  76. package/lib/commands/skill/push-flow-helpers.js +1 -1
  77. package/lib/commands/skill/push-retarget.js +1 -1
  78. package/lib/commands/skill/scopes.js +1 -1
  79. package/lib/commands/skill/summary.js +1 -1
  80. package/lib/commands/skill/templates.js +1 -1
  81. package/lib/commands/skill/validate.js +1 -1
  82. package/lib/commands/sql/detail.js +1 -1
  83. package/lib/commands/sql/exec.js +1 -1
  84. package/lib/commands/sql/index.js +1 -1
  85. package/lib/commands/update.js +1 -1
  86. package/lib/commands/user-account/bind.js +1 -1
  87. package/lib/commands/user-account/index.js +1 -1
  88. package/lib/commands/workspace/index.js +1 -1
  89. package/lib/config/domain-config.js +1 -1
  90. package/lib/config/schema.js +1 -1
  91. package/lib/constant/app.js +1 -1
  92. package/lib/constant/auth-mode.js +1 -1
  93. package/lib/constant/cli.js +1 -1
  94. package/lib/constant/defaults.js +1 -1
  95. package/lib/constant/distribution.js +1 -1
  96. package/lib/constant/domain.js +1 -1
  97. package/lib/constant/env.js +1 -1
  98. package/lib/constant/output.js +1 -1
  99. package/lib/constant/product.js +1 -1
  100. package/lib/constant/region.js +1 -1
  101. package/lib/constant/risk.js +1 -1
  102. package/lib/constant/url.js +1 -1
  103. package/lib/context.js +1 -1
  104. package/lib/core/api-client.js +1 -1
  105. package/lib/core/db-resolver.js +1 -1
  106. package/lib/core/sdk-client.js +1 -1
  107. package/lib/errors.js +1 -1
  108. package/lib/framework/build-all-flags.js +1 -1
  109. package/lib/framework/dryrun.js +1 -1
  110. package/lib/framework/flags.js +1 -1
  111. package/lib/framework/help.js +1 -1
  112. package/lib/framework/index.js +1 -1
  113. package/lib/framework/output.js +1 -1
  114. package/lib/framework/preparse.js +1 -1
  115. package/lib/framework/rate-limit.js +1 -1
  116. package/lib/framework/raw-flags.js +1 -1
  117. package/lib/framework/response.js +1 -1
  118. package/lib/framework/runner-confirmation.js +1 -1
  119. package/lib/framework/runner-error.js +1 -1
  120. package/lib/framework/runner.js +1 -1
  121. package/lib/framework/schema-export.js +1 -1
  122. package/lib/framework/service-order.js +1 -1
  123. package/lib/framework/types.js +1 -1
  124. package/lib/generated/build-info.d.ts +4 -4
  125. package/lib/generated/build-info.js +1 -1
  126. package/lib/help.js +1 -1
  127. package/lib/postinstall.js +1 -1
  128. package/lib/runtime/confirmation.js +1 -1
  129. package/lib/runtime/event.js +1 -1
  130. package/lib/runtime/index.js +1 -1
  131. package/lib/runtime/queue.js +1 -1
  132. package/lib/runtime/resolve.js +1 -1
  133. package/lib/skills/builtin-skill.js +1 -1
  134. package/lib/skills/npx-skills-add.js +1 -1
  135. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  136. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  137. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  138. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  139. package/lib/skills/runtime-skill-sync/links.js +1 -1
  140. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  141. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  142. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  143. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  144. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  145. package/lib/skills/runtime-skill-sync/push.js +1 -1
  146. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  147. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  148. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  149. package/lib/skills/runtime-skill-sync.js +1 -1
  150. package/lib/skills/skill-presence.js +1 -1
  151. package/lib/utils/access-key-redaction.js +1 -1
  152. package/lib/utils/apply-jq-filter.js +1 -1
  153. package/lib/utils/cli-version-check.js +1 -1
  154. package/lib/utils/cli-version-policy.js +1 -1
  155. package/lib/utils/logger.js +1 -1
  156. package/lib/utils/lossless-json.js +1 -1
  157. package/lib/utils/params.js +1 -1
  158. package/lib/utils/platform.js +1 -1
  159. package/lib/utils/update-notice.js +1 -1
  160. package/lib/utils/version.js +1 -1
  161. package/lib/utils/write-cli-side-channel.js +1 -1
  162. package/package.json +1 -1
  163. package/skills/lovrabet/SKILL.md +1 -1
  164. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- function a84_0x3fff(_0x331cf5,_0x21fa56){_0x331cf5=_0x331cf5-0xe8;const _0x17fd1d=a84_0x17fd();let _0x3fff0f=_0x17fd1d[_0x331cf5];return _0x3fff0f;}const a84_0x1142ec=a84_0x3fff;(function(_0x309e11,_0x699dd5){const _0x3f6455=a84_0x3fff,_0x3d1274=_0x309e11();while(!![]){try{const _0x440577=parseInt(_0x3f6455(0xf5))/0x1+-parseInt(_0x3f6455(0x138))/0x2*(-parseInt(_0x3f6455(0x10c))/0x3)+-parseInt(_0x3f6455(0x13c))/0x4+parseInt(_0x3f6455(0x12d))/0x5*(-parseInt(_0x3f6455(0x136))/0x6)+-parseInt(_0x3f6455(0x126))/0x7+parseInt(_0x3f6455(0x104))/0x8*(-parseInt(_0x3f6455(0xf1))/0x9)+-parseInt(_0x3f6455(0x124))/0xa*(-parseInt(_0x3f6455(0x119))/0xb);if(_0x440577===_0x699dd5)break;else _0x3d1274['push'](_0x3d1274['shift']());}catch(_0x5868f0){_0x3d1274['push'](_0x3d1274['shift']());}}}(a84_0x17fd,0x9dc0f));import{spawnSync}from'node:child_process';import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import a84_0x51279e from'semver';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':a84_0x1142ec(0x115),'type':'boolean','description':a84_0x1142ec(0x13a),'default':![]},{'name':'beta','type':a84_0x1142ec(0x12f),'description':a84_0x1142ec(0xfc),'default':![]},{'name':a84_0x1142ec(0x143),'type':a84_0x1142ec(0x10b),'description':a84_0x1142ec(0x131)}];function getRequestedVersion(_0x26797c){const _0x50b51b=a84_0x1142ec,_0x3b848f=_0x26797c[_0x50b51b(0xf0)](_0x50b51b(0x143))[_0x50b51b(0x13f)]();if(_0x3b848f)return _0x3b848f;return String(_0x26797c[_0x50b51b(0x123)]?.[0x0]??'')[_0x50b51b(0x13f)]();}async function validateUpdateFlags(_0x35afcb){const _0x1fb3b6=a84_0x1142ec,_0x445e23=getRequestedVersion(_0x35afcb),_0x4f18f0=[_0x35afcb[_0x1fb3b6(0x11c)]('latest')?_0x1fb3b6(0x115):'',_0x35afcb[_0x1fb3b6(0x11c)]('beta')?_0x1fb3b6(0xf6):'',_0x445e23?'version':''][_0x1fb3b6(0xfa)](Boolean);if(_0x4f18f0['length']>0x1)throw CliErrors[_0x1fb3b6(0x135)](_0x1fb3b6(0x111),_0x1fb3b6(0x11b));if(_0x445e23&&!a84_0x51279e[_0x1fb3b6(0x133)](_0x445e23))throw CliErrors[_0x1fb3b6(0x135)](_0x1fb3b6(0x12a)+_0x445e23,_0x1fb3b6(0x141));}async function fetchNpmDistTags(){const _0x4ececf=a84_0x1142ec;try{const _0x5ad88e=NPM_REGISTRY_BASE_URL+_0x4ececf(0x129)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x1e2b63=await fetch(_0x5ad88e,{'signal':AbortSignal[_0x4ececf(0xed)](0x2710)});if(!_0x1e2b63['ok'])return null;const _0xebb9fb=await _0x1e2b63['json']();if(!_0xebb9fb||typeof _0xebb9fb!==_0x4ececf(0xf9))return null;return Object[_0x4ececf(0x11e)](Object[_0x4ececf(0x13b)](_0xebb9fb)[_0x4ececf(0xfa)](([,_0x2816aa])=>typeof _0x2816aa===_0x4ececf(0x10b)&&_0x2816aa[_0x4ececf(0x13f)]())[_0x4ececf(0x118)](([_0xe081d,_0x19d382])=>[_0xe081d,String(_0x19d382)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0xfa4a6a){const _0x3e0f21=a84_0x1142ec,_0x58adc0=getRequestedVersion(_0xfa4a6a);if(_0x58adc0)return{'version':_0x58adc0,'source':'version'};const _0x3fc03d=_0xfa4a6a[_0x3e0f21(0x11c)](_0x3e0f21(0xf6))?_0x3e0f21(0xf6):_0x3e0f21(0x115),_0x424b24=await fetchNpmDistTags(),_0x13ef2b=_0x424b24?.[_0x3fc03d];if(!_0x13ef2b)return null;return{'version':_0x13ef2b,'source':_0x3fc03d};}function shouldInstallTarget(_0x1aae97,_0x2c7e33){const _0x58d0fb=a84_0x1142ec;if(_0x2c7e33['source']==='version'||_0x2c7e33['source']===_0x58d0fb(0xf6))return!a84_0x51279e['eq'](_0x1aae97,_0x2c7e33[_0x58d0fb(0x143)]);return a84_0x51279e['lt'](_0x1aae97,_0x2c7e33[_0x58d0fb(0x143)]);}export function installCliPackage(_0xe361b,_0x38b21,_0x469665=resolveCurrentCliNpmPrefix()){const _0x52c45f=a84_0x1142ec,_0x12326a=resolveNpmBin(_0x52c45f(0xfe)),_0x315624=LOVRABET_NPM_PACKAGE_NAME+'@'+_0xe361b,_0x453d32=['install','-g',_0x315624],_0x4d4f08=runNpmInstall(_0x12326a,_0x453d32,_0x38b21);if(_0x4d4f08['ok']||!isNpmPrefixPermissionError(_0x4d4f08['error']))return _0x4d4f08;if(!_0x469665||_0x4d4f08[_0x52c45f(0xf2)]?.[_0x52c45f(0x120)]()[_0x52c45f(0x12b)](_0x469665['toLowerCase']()))return _0x4d4f08;return console[_0x52c45f(0x116)](_0x52c45f(0x125)+_0x469665),runNpmInstall(_0x12326a,[..._0x453d32,_0x52c45f(0xec),_0x469665],_0x38b21);}export function resolveCurrentCliNpmPrefix(_0x18d770=fileURLToPath(import.meta.url),_0x3b9a2b=process[a84_0x1142ec(0x108)]){const _0x4f930b=a84_0x1142ec,_0x67640a=_0x3b9a2b==='win32'?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x5355ea=_0x67640a[_0x4f930b(0x10f)](_0x67640a[_0x4f930b(0x10f)](_0x67640a[_0x4f930b(0x10f)](_0x18d770))),_0x2a1fa6=_0x3b9a2b==='win32'?_0x4f930b(0x112):'@lovrabet/lovrabet-cli';let _0x3ff42a=_0x67640a['dirname'](_0x5355ea);while(!![]){if(_0x67640a['basename'](_0x3ff42a)==='node_modules'&&_0x67640a[_0x4f930b(0xf4)](_0x3ff42a,_0x5355ea)===_0x2a1fa6){const _0x292819=_0x67640a[_0x4f930b(0x10f)](_0x3ff42a);return _0x67640a[_0x4f930b(0x109)](_0x292819)===_0x4f930b(0x102)?_0x67640a[_0x4f930b(0x10f)](_0x292819):_0x292819;}const _0x5abdaf=_0x67640a[_0x4f930b(0x10f)](_0x3ff42a);if(_0x5abdaf===_0x3ff42a)return null;_0x3ff42a=_0x5abdaf;}}function runNpmInstall(_0x3f973a,_0x54b6d2,_0x1d4245){const _0x60752=a84_0x1142ec;console[_0x60752(0x137)]('*\x20'+[_0x3f973a,..._0x54b6d2][_0x60752(0x13e)]('\x20'));const _0x1e6237=spawnSync(_0x3f973a,_0x54b6d2,{'cwd':process[_0x60752(0x101)](),'stdio':_0x60752(0xea),'env':process.env,'shell':![]}),_0x1d2aac=_0x1e6237['stderr']?_0x1e6237[_0x60752(0x122)][_0x60752(0x11d)]()['trim']():'',_0x40ee3e=_0x1e6237[_0x60752(0xfb)]?_0x1e6237[_0x60752(0xfb)][_0x60752(0x11d)]()[_0x60752(0x13f)]():'';if(!_0x1d4245){if(_0x40ee3e)process[_0x60752(0xfb)][_0x60752(0x128)](_0x40ee3e+'\x0a');if(_0x1d2aac)process[_0x60752(0x122)][_0x60752(0x128)](_0x1d2aac+'\x0a');}if(_0x1e6237['status']===0x0)return{'ok':!![]};const _0x45dcd3=_0x1e6237[_0x60752(0xf2)]?.[_0x60752(0x11f)]||_0x1d2aac||_0x40ee3e||'exit\x20'+(_0x1e6237['status']??_0x60752(0x144));return{'ok':![],'error':_0x45dcd3};}function a84_0x17fd(){const _0x27b660=['version','unknown','\x20\x20CLI\x20Built-in\x20Skill\x20','Update\x20the\x20','CLI\x20updated\x20to\x20v','state','pipe','skillVersion','--prefix','timeout','CLI\x20is\x20up\x20to\x20date,\x20but\x20Built-in\x20Skill\x20repair\x20failed.','read','str','4032yNtpUi','error','inherit','relative','475155hEWxXp','beta','\x20version\x20from\x20npm.','nonInteractive','object','filter','stdout','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','Checking\x20CLI\x20Built-in\x20Skill...','npm','Version\x20comparison\x20failed:\x20',',\x20but\x20Built-in\x20Skill\x20verification\x20failed.','cwd','lib',']:\x20','5128bORrhJ','current','code','\x20->\x20','platform','basename','Updated\x20to\x20v','string','25788HqouBD','Updating\x20','repairCommand','dirname','reason','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','@lovrabet\x5clovrabet-cli','Update\x20failed:\x20','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','latest','warn','\x20\x20Run\x20manually:\x20','map','3993EPpkym','find','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','bool','toString','fromEntries','message','toLowerCase','\x20CLI\x20from\x20npm','stderr','args','52770OgBARG','Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20','214648XymcFU','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','write','/-/package/','Invalid\x20version:\x20','includes','Unable\x20to\x20resolve\x20','5905pevwZm','Already\x20on\x20requested\x20version\x20(v','boolean','run','Install\x20a\x20specific\x20CLI\x20version','\x20is\x20current.','valid','Current\x20version:\x20','validation','5844EYkXWh','log','6zUzzez','\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','entries','1208836unmwpa','update','join','trim','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Checking\x20npm\x20dist-tags...'];a84_0x17fd=function(){return _0x27b660;};return a84_0x17fd();}function isNpmPrefixPermissionError(_0x30be60){return Boolean(_0x30be60&&/\b(?:EACCES|EPERM)\b/['test'](_0x30be60));}function repairCurrentBuiltinSkill(_0x70e904){const _0x4b45f4=a84_0x1142ec;console['log']('Checking\x20CLI\x20Built-in\x20Skill...');const _0x39d43f=installBuiltinSkill({'stdio':_0x70e904?_0x4b45f4(0xea):_0x4b45f4(0xf3)});if(_0x39d43f['ok'])return console[_0x4b45f4(0x137)](_0x4b45f4(0x145)+_0x39d43f[_0x4b45f4(0xeb)]+_0x4b45f4(0x132)),!![];return console[_0x4b45f4(0x116)]('\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20['+(_0x39d43f[_0x4b45f4(0x106)]||'INSTALL_FAILED')+_0x4b45f4(0x103)+(_0x39d43f[_0x4b45f4(0xf2)]||'unknown')),console[_0x4b45f4(0x137)]('\x20\x20Run\x20manually:\x20'+_0x39d43f['repairCommand']),![];}function verifyUpdatedBuiltinSkill(_0x3642b6){const _0x25a5a7=a84_0x1142ec;console['log'](_0x25a5a7(0xfd));const _0x41cc4e=inspectInstalledBuiltinSkillVersion(_0x3642b6);if(_0x41cc4e[_0x25a5a7(0xe9)]===_0x25a5a7(0x105))return console[_0x25a5a7(0x137)](_0x25a5a7(0x145)+_0x3642b6+_0x25a5a7(0x132)),!![];console['warn'](_0x25a5a7(0x139)+_0x41cc4e[_0x25a5a7(0xe9)]+'.');if(_0x41cc4e[_0x25a5a7(0x110)])console['warn']('\x20\x20'+_0x41cc4e[_0x25a5a7(0x110)]);return console['log'](_0x25a5a7(0x117)+_0x41cc4e[_0x25a5a7(0x10e)]),![];}async function execute(_0x787f44){const _0x29450f=a84_0x1142ec;await validateUpdateFlags(_0x787f44);const _0x3656ec=getCliVersion();console['log'](_0x29450f(0x134)+_0x3656ec),console[_0x29450f(0x137)](_0x29450f(0x142));const _0x2ccc2f=await resolveTargetVersion(_0x787f44);if(!_0x2ccc2f){const _0x8d32cf=_0x787f44[_0x29450f(0x11c)](_0x29450f(0xf6))?_0x29450f(0xf6):'latest',_0x36a342=_0x29450f(0x12c)+_0x8d32cf+_0x29450f(0xf7);return console[_0x29450f(0x116)](_0x36a342),console[_0x29450f(0x137)](_0x29450f(0x127)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x8d32cf),{'ok':![],'message':_0x36a342};}const _0x40f666=[_0x3656ec,_0x2ccc2f[_0x29450f(0x143)]][_0x29450f(0x11a)](_0x2898d4=>!a84_0x51279e[_0x29450f(0x133)](_0x2898d4));if(_0x40f666){const _0x24cad2=_0x29450f(0xff)+_0x40f666+'.';return console[_0x29450f(0x116)](_0x24cad2),{'ok':![],'message':_0x24cad2};}if(!shouldInstallTarget(_0x3656ec,_0x2ccc2f)){const _0x3c78eb=_0x2ccc2f['source']==='version'?_0x29450f(0x12e)+_0x2ccc2f['version']+').':'Already\x20up\x20to\x20date\x20(v'+_0x2ccc2f[_0x29450f(0x143)]+').';return console[_0x29450f(0x137)](_0x3c78eb),repairCurrentBuiltinSkill(_0x787f44[_0x29450f(0xf8)])?{'ok':!![]}:{'ok':![],'message':_0x29450f(0xee)};}console[_0x29450f(0x137)](_0x29450f(0x10d)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x3656ec+_0x29450f(0x107)+_0x2ccc2f[_0x29450f(0x143)]);const _0x18a8d6=installCliPackage(_0x2ccc2f[_0x29450f(0x143)],_0x787f44[_0x29450f(0xf8)]);if(!_0x18a8d6['ok']){const _0x36a23d=_0x29450f(0x113)+(_0x18a8d6[_0x29450f(0xf2)]||'unknown');return console[_0x29450f(0xf2)](_0x36a23d),console['log'](_0x29450f(0x140)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x2ccc2f[_0x29450f(0x143)]),{'ok':![],'message':_0x36a23d};}return console[_0x29450f(0x137)](_0x29450f(0x10a)+_0x2ccc2f['version']+'.'),console[_0x29450f(0x137)](_0x29450f(0x114)),verifyUpdatedBuiltinSkill(_0x2ccc2f[_0x29450f(0x143)])?{'ok':!![]}:{'ok':![],'message':_0x29450f(0xe8)+_0x2ccc2f[_0x29450f(0x143)]+_0x29450f(0x100)};}export const updateDefinition={'service':a84_0x1142ec(0x13d),'command':a84_0x1142ec(0x130),'description':a84_0x1142ec(0x146)+CLI_BIN_NAME+a84_0x1142ec(0x121),'risk':a84_0x1142ec(0xef),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a84_0x1daedc=a84_0x4ee6;(function(_0x52cf2d,_0x13f684){const _0x14cd12=a84_0x4ee6,_0x2e6085=_0x52cf2d();while(!![]){try{const _0x39641f=-parseInt(_0x14cd12(0x12f))/0x1+parseInt(_0x14cd12(0x119))/0x2*(-parseInt(_0x14cd12(0x107))/0x3)+-parseInt(_0x14cd12(0x116))/0x4+-parseInt(_0x14cd12(0xe9))/0x5*(-parseInt(_0x14cd12(0x112))/0x6)+-parseInt(_0x14cd12(0xfb))/0x7+-parseInt(_0x14cd12(0x132))/0x8+parseInt(_0x14cd12(0xf7))/0x9;if(_0x39641f===_0x13f684)break;else _0x2e6085['push'](_0x2e6085['shift']());}catch(_0x3f3abc){_0x2e6085['push'](_0x2e6085['shift']());}}}(a84_0x2d6e,0xa20bd));import{spawnSync}from'node:child_process';import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import a84_0x2a3050 from'semver';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a84_0x4ee6(_0x1fecd9,_0x1aa302){_0x1fecd9=_0x1fecd9-0xda;const _0x2d6eeb=a84_0x2d6e();let _0x4ee61f=_0x2d6eeb[_0x1fecd9];return _0x4ee61f;}import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':a84_0x1daedc(0xfe),'type':'boolean','description':a84_0x1daedc(0x131),'default':![]},{'name':'beta','type':a84_0x1daedc(0xe4),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':a84_0x1daedc(0x130),'type':a84_0x1daedc(0x10b),'description':'Install\x20a\x20specific\x20CLI\x20version'}];function getRequestedVersion(_0x2a6b10){const _0x2932a0=a84_0x1daedc,_0x32096a=_0x2a6b10[_0x2932a0(0xdf)](_0x2932a0(0x130))[_0x2932a0(0xff)]();if(_0x32096a)return _0x32096a;return String(_0x2a6b10[_0x2932a0(0xfc)]?.[0x0]??'')[_0x2932a0(0xff)]();}async function validateUpdateFlags(_0x48c2bc){const _0x1d971e=a84_0x1daedc,_0x1f06e8=getRequestedVersion(_0x48c2bc),_0x1aecc8=[_0x48c2bc[_0x1d971e(0xeb)](_0x1d971e(0xfe))?_0x1d971e(0xfe):'',_0x48c2bc[_0x1d971e(0xeb)](_0x1d971e(0xde))?_0x1d971e(0xde):'',_0x1f06e8?_0x1d971e(0x130):''][_0x1d971e(0x10d)](Boolean);if(_0x1aecc8[_0x1d971e(0x129)]>0x1)throw CliErrors[_0x1d971e(0x106)]('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.');if(_0x1f06e8&&!a84_0x2a3050['valid'](_0x1f06e8))throw CliErrors[_0x1d971e(0x106)](_0x1d971e(0xe6)+_0x1f06e8,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x26751f=a84_0x1daedc;try{const _0x1cb7ce=NPM_REGISTRY_BASE_URL+_0x26751f(0x118)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x2b0904=await fetch(_0x1cb7ce,{'signal':AbortSignal[_0x26751f(0x115)](0x2710)});if(!_0x2b0904['ok'])return null;const _0x2221b5=await _0x2b0904[_0x26751f(0xdd)]();if(!_0x2221b5||typeof _0x2221b5!==_0x26751f(0xee))return null;return Object['fromEntries'](Object[_0x26751f(0x11d)](_0x2221b5)[_0x26751f(0x10d)](([,_0x2fe360])=>typeof _0x2fe360===_0x26751f(0x10b)&&_0x2fe360[_0x26751f(0xff)]())[_0x26751f(0x108)](([_0x682e0f,_0x2ccc7e])=>[_0x682e0f,String(_0x2ccc7e)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0x247472){const _0x1bf9b9=a84_0x1daedc,_0x4a4c9a=getRequestedVersion(_0x247472);if(_0x4a4c9a)return{'version':_0x4a4c9a,'source':_0x1bf9b9(0x130)};const _0x27fbfb=_0x247472[_0x1bf9b9(0xeb)](_0x1bf9b9(0xde))?_0x1bf9b9(0xde):_0x1bf9b9(0xfe),_0x1b77ba=await fetchNpmDistTags(),_0x17ff86=_0x1b77ba?.[_0x27fbfb];if(!_0x17ff86)return null;return{'version':_0x17ff86,'source':_0x27fbfb};}function shouldInstallTarget(_0x127ced,_0x2c282d){const _0x323f0a=a84_0x1daedc;if(_0x2c282d['source']===_0x323f0a(0x130)||_0x2c282d[_0x323f0a(0xf3)]===_0x323f0a(0xde))return!a84_0x2a3050['eq'](_0x127ced,_0x2c282d[_0x323f0a(0x130)]);return a84_0x2a3050['lt'](_0x127ced,_0x2c282d[_0x323f0a(0x130)]);}export function installCliPackage(_0x48035d,_0x1df358,_0x180b7f=resolveCurrentCliNpmPrefix()){const _0x1fd189=a84_0x1daedc,_0x1fdc86=resolveNpmBin(_0x1fd189(0x11c)),_0x1aa506=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x48035d,_0x3f2b42=[_0x1fd189(0x11e),'-g',_0x1aa506],_0xb35445=runNpmInstall(_0x1fdc86,_0x3f2b42,_0x1df358);if(_0xb35445['ok']||!isNpmPrefixPermissionError(_0xb35445['error']))return _0xb35445;if(!_0x180b7f||_0xb35445[_0x1fd189(0x100)]?.[_0x1fd189(0xe0)]()['includes'](_0x180b7f[_0x1fd189(0xe0)]()))return _0xb35445;return console[_0x1fd189(0x124)](_0x1fd189(0xf0)+_0x180b7f),runNpmInstall(_0x1fdc86,[..._0x3f2b42,_0x1fd189(0xdb),_0x180b7f],_0x1df358);}export function resolveCurrentCliNpmPrefix(_0x181c81=fileURLToPath(import.meta.url),_0x2bd8de=process[a84_0x1daedc(0x11a)]){const _0x122354=a84_0x1daedc,_0x3bb4f5=_0x2bd8de===_0x122354(0xea)?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x5271a6=_0x3bb4f5['dirname'](_0x3bb4f5['dirname'](_0x3bb4f5[_0x122354(0xdc)](_0x181c81))),_0xc1fb40=_0x2bd8de===_0x122354(0xea)?_0x122354(0x122):'@lovrabet/lovrabet-cli';let _0x106911=_0x3bb4f5[_0x122354(0xdc)](_0x5271a6);while(!![]){if(_0x3bb4f5[_0x122354(0xef)](_0x106911)===_0x122354(0x11f)&&_0x3bb4f5['relative'](_0x106911,_0x5271a6)===_0xc1fb40){const _0x4ce2c2=_0x3bb4f5[_0x122354(0xdc)](_0x106911);return _0x3bb4f5[_0x122354(0xef)](_0x4ce2c2)==='lib'?_0x3bb4f5[_0x122354(0xdc)](_0x4ce2c2):_0x4ce2c2;}const _0x146508=_0x3bb4f5[_0x122354(0xdc)](_0x106911);if(_0x146508===_0x106911)return null;_0x106911=_0x146508;}}function runNpmInstall(_0x3684f1,_0x34197d,_0x4bb2a7){const _0x403e17=a84_0x1daedc;console[_0x403e17(0xf8)]('*\x20'+[_0x3684f1,..._0x34197d]['join']('\x20'));const _0x4007dd=spawnSync(_0x3684f1,_0x34197d,{'cwd':process[_0x403e17(0xfa)](),'stdio':_0x403e17(0x111),'env':process.env,'shell':![]}),_0x2b0255=_0x4007dd[_0x403e17(0x117)]?_0x4007dd[_0x403e17(0x117)][_0x403e17(0x12a)]()[_0x403e17(0xff)]():'',_0x2e9912=_0x4007dd[_0x403e17(0x123)]?_0x4007dd[_0x403e17(0x123)][_0x403e17(0x12a)]()['trim']():'';if(!_0x4bb2a7){if(_0x2e9912)process[_0x403e17(0x123)][_0x403e17(0xe8)](_0x2e9912+'\x0a');if(_0x2b0255)process[_0x403e17(0x117)][_0x403e17(0xe8)](_0x2b0255+'\x0a');}if(_0x4007dd[_0x403e17(0xe2)]===0x0)return{'ok':!![]};const _0x4890ed=_0x4007dd[_0x403e17(0x100)]?.[_0x403e17(0x12c)]||_0x2b0255||_0x2e9912||_0x403e17(0x114)+(_0x4007dd[_0x403e17(0xe2)]??'unknown');return{'ok':![],'error':_0x4890ed};}function isNpmPrefixPermissionError(_0x3e581e){return Boolean(_0x3e581e&&/\b(?:EACCES|EPERM)\b/['test'](_0x3e581e));}function repairCurrentBuiltinSkill(_0x50ebbd){const _0x3e1466=a84_0x1daedc;console[_0x3e1466(0xf8)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x2faec4=installBuiltinSkill({'stdio':_0x50ebbd?_0x3e1466(0x111):_0x3e1466(0x120)});if(_0x2faec4['ok'])return console['log'](_0x3e1466(0x105)+_0x2faec4['skillVersion']+_0x3e1466(0x133)),!![];return console['warn'](_0x3e1466(0xe3)+(_0x2faec4[_0x3e1466(0x10f)]||_0x3e1466(0x12e))+']:\x20'+(_0x2faec4[_0x3e1466(0x100)]||_0x3e1466(0xf1))),console[_0x3e1466(0xf8)]('\x20\x20Run\x20manually:\x20'+_0x2faec4[_0x3e1466(0x10a)]),![];}function a84_0x2d6e(){const _0x163732=['Already\x20on\x20requested\x20version\x20(v','length','toString','Already\x20up\x20to\x20date\x20(v','message','Version\x20comparison\x20failed:\x20','INSTALL_FAILED','590572ijpLTs','version','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','5508200zYpAqx','\x20is\x20current.','Update\x20the\x20','--prefix','dirname','json','beta','str','toLowerCase','\x20\x20Run\x20manually:\x20','status','\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','boolean','\x20CLI\x20from\x20npm','Invalid\x20version:\x20','Updated\x20to\x20v','write','15Tkzcds','win32','bool','find','reason','object','basename','Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20','unknown','Unable\x20to\x20resolve\x20','source','\x20->\x20','CLI\x20is\x20up\x20to\x20date,\x20but\x20Built-in\x20Skill\x20repair\x20failed.',',\x20but\x20Built-in\x20Skill\x20verification\x20failed.','34663968JcFRPF','log','Checking\x20CLI\x20Built-in\x20Skill...','cwd','4531660GasYSp','args','Updating\x20','latest','trim','error','\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20','state','read','valid','\x20\x20CLI\x20Built-in\x20Skill\x20','validation','219021Tgpjwh','map','run','repairCommand','string','CLI\x20updated\x20to\x20v','filter','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','code','update','pipe','535476DHVgYV','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','exit\x20','timeout','5240204AQJTFY','stderr','/-/package/','6MkVOzn','platform','Current\x20version:\x20','npm','entries','install','node_modules','inherit','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','@lovrabet\x5clovrabet-cli','stdout','warn','nonInteractive','Update\x20failed:\x20','Checking\x20npm\x20dist-tags...'];a84_0x2d6e=function(){return _0x163732;};return a84_0x2d6e();}function verifyUpdatedBuiltinSkill(_0x327c6b){const _0x3d82ab=a84_0x1daedc;console['log'](_0x3d82ab(0xf9));const _0x39db8e=inspectInstalledBuiltinSkillVersion(_0x327c6b);if(_0x39db8e[_0x3d82ab(0x102)]==='current')return console[_0x3d82ab(0xf8)]('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x327c6b+_0x3d82ab(0x133)),!![];console[_0x3d82ab(0x124)](_0x3d82ab(0x101)+_0x39db8e[_0x3d82ab(0x102)]+'.');if(_0x39db8e[_0x3d82ab(0xed)])console[_0x3d82ab(0x124)]('\x20\x20'+_0x39db8e[_0x3d82ab(0xed)]);return console['log'](_0x3d82ab(0xe1)+_0x39db8e[_0x3d82ab(0x10a)]),![];}async function execute(_0x3779e2){const _0xa41b45=a84_0x1daedc;await validateUpdateFlags(_0x3779e2);const _0x2171c0=getCliVersion();console[_0xa41b45(0xf8)](_0xa41b45(0x11b)+_0x2171c0),console['log'](_0xa41b45(0x127));const _0x4b277a=await resolveTargetVersion(_0x3779e2);if(!_0x4b277a){const _0x41d198=_0x3779e2[_0xa41b45(0xeb)](_0xa41b45(0xde))?_0xa41b45(0xde):_0xa41b45(0xfe),_0x28048a=_0xa41b45(0xf2)+_0x41d198+'\x20version\x20from\x20npm.';return console[_0xa41b45(0x124)](_0x28048a),console[_0xa41b45(0xf8)](_0xa41b45(0x121)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x41d198),{'ok':![],'message':_0x28048a};}const _0x1a893f=[_0x2171c0,_0x4b277a['version']][_0xa41b45(0xec)](_0x13fd4b=>!a84_0x2a3050[_0xa41b45(0x104)](_0x13fd4b));if(_0x1a893f){const _0x2645c7=_0xa41b45(0x12d)+_0x1a893f+'.';return console['warn'](_0x2645c7),{'ok':![],'message':_0x2645c7};}if(!shouldInstallTarget(_0x2171c0,_0x4b277a)){const _0x568c51=_0x4b277a[_0xa41b45(0xf3)]==='version'?_0xa41b45(0x128)+_0x4b277a[_0xa41b45(0x130)]+').':_0xa41b45(0x12b)+_0x4b277a[_0xa41b45(0x130)]+').';return console[_0xa41b45(0xf8)](_0x568c51),repairCurrentBuiltinSkill(_0x3779e2[_0xa41b45(0x125)])?{'ok':!![]}:{'ok':![],'message':_0xa41b45(0xf5)};}console[_0xa41b45(0xf8)](_0xa41b45(0xfd)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x2171c0+_0xa41b45(0xf4)+_0x4b277a[_0xa41b45(0x130)]);const _0x1f9873=installCliPackage(_0x4b277a['version'],_0x3779e2['nonInteractive']);if(!_0x1f9873['ok']){const _0x203518=_0xa41b45(0x126)+(_0x1f9873[_0xa41b45(0x100)]||_0xa41b45(0xf1));return console['error'](_0x203518),console[_0xa41b45(0xf8)](_0xa41b45(0x113)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4b277a[_0xa41b45(0x130)]),{'ok':![],'message':_0x203518};}return console[_0xa41b45(0xf8)](_0xa41b45(0xe7)+_0x4b277a['version']+'.'),console[_0xa41b45(0xf8)](_0xa41b45(0x10e)),verifyUpdatedBuiltinSkill(_0x4b277a['version'])?{'ok':!![]}:{'ok':![],'message':_0xa41b45(0x10c)+_0x4b277a[_0xa41b45(0x130)]+_0xa41b45(0xf6)};}export const updateDefinition={'service':a84_0x1daedc(0x110),'command':a84_0x1daedc(0x109),'description':a84_0x1daedc(0xda)+CLI_BIN_NAME+a84_0x1daedc(0xe5),'risk':a84_0x1daedc(0x103),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- function a85_0x4ce5(){const _0x1c9b61=['POST','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.','6124188zDXksk','dingtalk','Binds\x20the\x20platform\x20user\x20of\x20the\x20current\x20AccessKey\x20to\x20the\x20given\x20collaboration-provider\x20account.\x20An\x20existing\x20bind\x20for\x20the\x20same\x20provider\x20may\x20be\x20replaced.','206446atZvDl','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','6yABwFo','bind','str','340QATXRw','validation','1448cXsumg','join','includes','(empty)','40GybXps','209uVsSsf','463690oJVllr','Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.','--account-id\x20cannot\x20be\x20empty.','441783xwUvDY','account-id','user-account','External\x20account\x20provider','3421558himpmn','Pass\x20one\x20of:\x20','apiError','1MImkWx','trim','string','2775849vDkmcO'];a85_0x4ce5=function(){return _0x1c9b61;};return a85_0x4ce5();}const a85_0x4b6fc0=a85_0xa356;(function(_0x18f19b,_0x3db803){const _0x1df7bc=a85_0xa356,_0x4c8b98=_0x18f19b();while(!![]){try{const _0xd8f4a5=parseInt(_0x1df7bc(0x160))/0x1*(parseInt(_0x1df7bc(0x149))/0x2)+parseInt(_0x1df7bc(0x163))/0x3+-parseInt(_0x1df7bc(0x150))/0x4*(parseInt(_0x1df7bc(0x14e))/0x5)+parseInt(_0x1df7bc(0x14b))/0x6*(-parseInt(_0x1df7bc(0x15d))/0x7)+-parseInt(_0x1df7bc(0x154))/0x8*(parseInt(_0x1df7bc(0x159))/0x9)+-parseInt(_0x1df7bc(0x156))/0xa*(-parseInt(_0x1df7bc(0x155))/0xb)+-parseInt(_0x1df7bc(0x146))/0xc;if(_0xd8f4a5===_0x3db803)break;else _0x4c8b98['push'](_0x4c8b98['shift']());}catch(_0x205186){_0x4c8b98['push'](_0x4c8b98['shift']());}}}(a85_0x4ce5,0x9c543));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';function a85_0xa356(_0x519eeb,_0x1ea78d){_0x519eeb=_0x519eeb-0x144;const _0x4ce527=a85_0x4ce5();let _0xa356a4=_0x4ce527[_0x519eeb];return _0xa356a4;}import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING='The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.',SUPPORTED_PROVIDERS=[a85_0x4b6fc0(0x147)];function readBindingInput(_0x2d1ffd){const _0x1308ec=a85_0x4b6fc0,_0x1a03d5=_0x2d1ffd[_0x1308ec(0x14d)]('provider')['trim']()['toLowerCase']();if(!SUPPORTED_PROVIDERS[_0x1308ec(0x152)](_0x1a03d5))throw CliErrors[_0x1308ec(0x14f)]('Unsupported\x20provider:\x20'+(_0x1a03d5||_0x1308ec(0x153))+'.',_0x1308ec(0x15e)+SUPPORTED_PROVIDERS[_0x1308ec(0x151)](',\x20')+'.');const _0x5217bd=_0x2d1ffd[_0x1308ec(0x14d)]('account-id')[_0x1308ec(0x161)]();if(!_0x5217bd)throw CliErrors[_0x1308ec(0x14f)](_0x1308ec(0x158),_0x1308ec(0x157));return{'provider':_0x1a03d5,'accountId':_0x5217bd};}function buildBindingData(_0x255785,_0x1557ff,_0x760fbb){const _0x49095c=a85_0x4b6fc0;return{'operation':_0x49095c(0x14c),'selector':{'provider':_0x255785,'accountId':_0x1557ff},'before':null,'after':{'provider':_0x255785,'accountId':_0x1557ff,'bound':!![]},'dryRun':_0x760fbb,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a85_0x4b6fc0(0x15b),'command':a85_0x4b6fc0(0x14c),'description':a85_0x4b6fc0(0x14a),'risk':'write','confirmationDescription':a85_0x4b6fc0(0x148),'requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':'provider','type':a85_0x4b6fc0(0x162),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a85_0x4b6fc0(0x15c)},{'name':a85_0x4b6fc0(0x15a),'type':a85_0x4b6fc0(0x162),'required':!![],'description':'External\x20account\x20ID\x20for\x20the\x20selected\x20provider'}],async 'validate'(_0x285d7a){readBindingInput(_0x285d7a);},async 'dryRun'(_0x1a581f){const _0x3bd3e8=a85_0x4b6fc0,{provider:_0x5f2a2b,accountId:_0x34b79d}=readBindingInput(_0x1a581f);return{...buildBindingData(_0x5f2a2b,_0x34b79d,!![]),'method':_0x3bd3e8(0x144),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x5f2a2b,'accountId':_0x34b79d}};},async 'execute'(_0x4fa55f){const _0x376e33=a85_0x4b6fc0,{provider:_0x39ddbd,accountId:_0x4bf23a}=readBindingInput(_0x4fa55f),_0x567abe=await bindExternalUserAccount(_0x39ddbd,_0x4bf23a);if(_0x567abe!==!![])throw CliErrors[_0x376e33(0x15f)]('External\x20account\x20binding\x20was\x20not\x20confirmed.',_0x376e33(0x145));return{'ok':!![],'data':buildBindingData(_0x39ddbd,_0x4bf23a,![]),'message':'Bound\x20current\x20user\x20to\x20external\x20provider\x20account.'};}};
1
+ const a85_0x4c2d62=a85_0x6963;function a85_0xb4b1(){const _0x2121a9=['Pass\x20one\x20of:\x20','string','account-id','13320kQQRDl','validation','trim','str','Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.','write','7UDlerp','(empty)','1pAiPmm','External\x20account\x20ID\x20for\x20the\x20selected\x20provider','includes','--account-id\x20cannot\x20be\x20empty.','148252TsPOXV','dingtalk','505704BFBRYq','1707222RRDYvW','External\x20account\x20provider','4630zpxvlA','108LBeeig','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.','user-account','70995hTeNqB','8355424aOrmnn','Unsupported\x20provider:\x20','toLowerCase','bind','provider','Binds\x20the\x20platform\x20user\x20of\x20the\x20current\x20AccessKey\x20to\x20the\x20given\x20collaboration-provider\x20account.\x20An\x20existing\x20bind\x20for\x20the\x20same\x20provider\x20may\x20be\x20replaced.','join','3831520SLpPim'];a85_0xb4b1=function(){return _0x2121a9;};return a85_0xb4b1();}function a85_0x6963(_0x5eda95,_0x4a41ea){_0x5eda95=_0x5eda95-0x168;const _0xb4b16=a85_0xb4b1();let _0x6963b3=_0xb4b16[_0x5eda95];return _0x6963b3;}(function(_0x4dfb15,_0xd4acab){const _0x45d648=a85_0x6963,_0x370e36=_0x4dfb15();while(!![]){try{const _0x304aae=-parseInt(_0x45d648(0x179))/0x1*(-parseInt(_0x45d648(0x17d))/0x2)+-parseInt(_0x45d648(0x17f))/0x3+parseInt(_0x45d648(0x16d))/0x4+parseInt(_0x45d648(0x186))/0x5*(-parseInt(_0x45d648(0x183))/0x6)+parseInt(_0x45d648(0x177))/0x7*(parseInt(_0x45d648(0x187))/0x8)+parseInt(_0x45d648(0x171))/0x9*(-parseInt(_0x45d648(0x182))/0xa)+-parseInt(_0x45d648(0x180))/0xb;if(_0x304aae===_0xd4acab)break;else _0x370e36['push'](_0x370e36['shift']());}catch(_0x1383d0){_0x370e36['push'](_0x370e36['shift']());}}}(a85_0xb4b1,0xc6342));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING='The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.',SUPPORTED_PROVIDERS=[a85_0x4c2d62(0x17e)];function readBindingInput(_0x125fb1){const _0x1aa814=a85_0x4c2d62,_0x5d12f2=_0x125fb1[_0x1aa814(0x174)](_0x1aa814(0x16a))[_0x1aa814(0x173)]()[_0x1aa814(0x168)]();if(!SUPPORTED_PROVIDERS[_0x1aa814(0x17b)](_0x5d12f2))throw CliErrors['validation'](_0x1aa814(0x188)+(_0x5d12f2||_0x1aa814(0x178))+'.',_0x1aa814(0x16e)+SUPPORTED_PROVIDERS[_0x1aa814(0x16c)](',\x20')+'.');const _0x3a1df3=_0x125fb1[_0x1aa814(0x174)](_0x1aa814(0x170))[_0x1aa814(0x173)]();if(!_0x3a1df3)throw CliErrors[_0x1aa814(0x172)](_0x1aa814(0x17c),_0x1aa814(0x175));return{'provider':_0x5d12f2,'accountId':_0x3a1df3};}function buildBindingData(_0x4e3e8c,_0x4c0879,_0x2a453c){return{'operation':'bind','selector':{'provider':_0x4e3e8c,'accountId':_0x4c0879},'before':null,'after':{'provider':_0x4e3e8c,'accountId':_0x4c0879,'bound':!![]},'dryRun':_0x2a453c,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a85_0x4c2d62(0x185),'command':a85_0x4c2d62(0x169),'description':'Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','risk':a85_0x4c2d62(0x176),'confirmationDescription':a85_0x4c2d62(0x16b),'requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':a85_0x4c2d62(0x16a),'type':a85_0x4c2d62(0x16f),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a85_0x4c2d62(0x181)},{'name':a85_0x4c2d62(0x170),'type':a85_0x4c2d62(0x16f),'required':!![],'description':a85_0x4c2d62(0x17a)}],async 'validate'(_0xbc85cf){readBindingInput(_0xbc85cf);},async 'dryRun'(_0x5adeb7){const {provider:_0x1cdacd,accountId:_0x118567}=readBindingInput(_0x5adeb7);return{...buildBindingData(_0x1cdacd,_0x118567,!![]),'method':'POST','url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x1cdacd,'accountId':_0x118567}};},async 'execute'(_0x57e21f){const _0x46d986=a85_0x4c2d62,{provider:_0x53f794,accountId:_0x122bc2}=readBindingInput(_0x57e21f),_0x42e251=await bindExternalUserAccount(_0x53f794,_0x122bc2);if(_0x42e251!==!![])throw CliErrors['apiError']('External\x20account\x20binding\x20was\x20not\x20confirmed.',_0x46d986(0x184));return{'ok':!![],'data':buildBindingData(_0x53f794,_0x122bc2,![]),'message':'Bound\x20current\x20user\x20to\x20external\x20provider\x20account.'};}};
@@ -1 +1 @@
1
- (function(_0x4829e4,_0x2ae9cf){const _0x17bc37=a86_0x24e7,_0x40bdab=_0x4829e4();while(!![]){try{const _0x323707=parseInt(_0x17bc37(0x134))/0x1*(parseInt(_0x17bc37(0x136))/0x2)+parseInt(_0x17bc37(0x139))/0x3+parseInt(_0x17bc37(0x137))/0x4+parseInt(_0x17bc37(0x133))/0x5*(parseInt(_0x17bc37(0x131))/0x6)+parseInt(_0x17bc37(0x135))/0x7+parseInt(_0x17bc37(0x138))/0x8*(parseInt(_0x17bc37(0x130))/0x9)+-parseInt(_0x17bc37(0x132))/0xa;if(_0x323707===_0x2ae9cf)break;else _0x40bdab['push'](_0x40bdab['shift']());}catch(_0x4f8bbd){_0x40bdab['push'](_0x40bdab['shift']());}}}(a86_0x12bc,0x8f18d));function a86_0x24e7(_0x3027fc,_0x4ff8fd){_0x3027fc=_0x3027fc-0x130;const _0x12bc8a=a86_0x12bc();let _0x24e748=_0x12bc8a[_0x3027fc];return _0x24e748;}function a86_0x12bc(){const _0x1acf91=['2820990JyKYBv','13383wRoOEG','12246PTsPFR','21671070HvpPQm','750qzvoTl','4757rejxBT','2380742YvhWBK','154eleKon','554568RlIubs','3560BzBvnH'];a86_0x12bc=function(){return _0x1acf91;};return a86_0x12bc();}import{bindUserAccount}from'../../commands/user-account/bind.js';export const userAccountDefinitions=[bindUserAccount];
1
+ (function(_0x1c4694,_0x5f4fc7){const _0x220286=a86_0x5d81,_0x531011=_0x1c4694();while(!![]){try{const _0x34fc74=-parseInt(_0x220286(0xfb))/0x1*(-parseInt(_0x220286(0x100))/0x2)+parseInt(_0x220286(0xfe))/0x3+-parseInt(_0x220286(0xfc))/0x4+-parseInt(_0x220286(0x102))/0x5*(-parseInt(_0x220286(0x103))/0x6)+parseInt(_0x220286(0xff))/0x7*(-parseInt(_0x220286(0xfa))/0x8)+parseInt(_0x220286(0xfd))/0x9+-parseInt(_0x220286(0x101))/0xa;if(_0x34fc74===_0x5f4fc7)break;else _0x531011['push'](_0x531011['shift']());}catch(_0x58c98d){_0x531011['push'](_0x531011['shift']());}}}(a86_0x38d3,0xd9a6c));function a86_0x5d81(_0x17d19e,_0x1cb5de){_0x17d19e=_0x17d19e-0xfa;const _0x38d363=a86_0x38d3();let _0x5d819a=_0x38d363[_0x17d19e];return _0x5d819a;}import{bindUserAccount}from'../../commands/user-account/bind.js';function a86_0x38d3(){const _0x54974c=['13391QbZqxy','458XgifBP','8344930gUkxVz','24530MYZzNP','492cbRioO','3688kblYGo','2961LYQDOt','2775444SUQTot','15385734PtmRDH','1535580iNJMqt'];a86_0x38d3=function(){return _0x54974c;};return a86_0x38d3();}export const userAccountDefinitions=[bindUserAccount];
@@ -1 +1 @@
1
- const a87_0x468123=a87_0x432b;function a87_0x181e(){const _0x440296=['814175cGeEzw','project','filter','from','envName','../../core/api-client.js','authRequired','\x20workspace\x20','\x0aEnv:\x20','\x0aAccessKey:\x20not\x20written','length','accessKey','validation','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','8PLkkEt','Usage:\x20','\x22.\x20Allowed:\x20','use','string','../../commands/app/remote-source.js','1418600qqsmTp','app','env','appcode','items','\x0aDefault\x20app:\x20','137921yyQTsA','420388IPgFGX','str','Use\x20`','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','includes','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','trim','defaultApp','\x22\x20not\x20found.','1594746OZGLHm','init','Run\x20`','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','apps','join','command','Target\x20environment','appName','67271gCQSym','Available\x20apps:\x20','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','map','shouldWriteEnv','131235WHvTBy','Writes\x20Lovrabet\x20project\x20config\x20in\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet,\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default'];a87_0x181e=function(){return _0x440296;};return a87_0x181e();}(function(_0x2be650,_0x1bf866){const _0x10a168=a87_0x432b,_0x3d5853=_0x2be650();while(!![]){try{const _0x19f52b=parseInt(_0x10a168(0x1a8))/0x1*(-parseInt(_0x10a168(0x1be))/0x2)+-parseInt(_0x10a168(0x1ad))/0x3+-parseInt(_0x10a168(0x1cb))/0x4+parseInt(_0x10a168(0x1b0))/0x5+parseInt(_0x10a168(0x1d5))/0x6+-parseInt(_0x10a168(0x1ca))/0x7+parseInt(_0x10a168(0x1c4))/0x8;if(_0x19f52b===_0x1bf866)break;else _0x3d5853['push'](_0x3d5853['shift']());}catch(_0x488cb1){_0x3d5853['push'](_0x3d5853['shift']());}}}(a87_0x181e,0x29182));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a87_0x468123(0x1c5),'type':a87_0x468123(0x1c2),'description':a87_0x468123(0x1af)},{'name':a87_0x468123(0x1c7),'type':a87_0x468123(0x1c2),'description':'App\x20code\x20to\x20bind\x20directly'},{'name':a87_0x468123(0x1c6),'type':a87_0x468123(0x1c2),'description':a87_0x468123(0x1a6),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x5de34a,_0x563eea){const _0x291a80=a87_0x468123,_0x111a84=_0x5de34a['str'](_0x291a80(0x1c5))[_0x291a80(0x1d2)](),_0x525350=_0x5de34a[_0x291a80(0x1cc)](_0x291a80(0x1c7))[_0x291a80(0x1d2)](),_0x1e0cd6=_0x5de34a[_0x291a80(0x1cc)](_0x291a80(0x1c6))[_0x291a80(0x1d2)](),_0xa82582=resolveWorkspaceEnv(_0x1e0cd6||_0x5de34a[_0x291a80(0x1b4)]||DEFAULT_CONFIG_VALUES[_0x291a80(0x1c6)]);if(!_0x111a84&&!_0x525350)throw CliErrors[_0x291a80(0x1bc)]('Missing\x20workspace\x20app\x20selector.',_0x291a80(0x1bf)+CLI_BIN_NAME+'\x20workspace\x20'+_0x563eea+_0x291a80(0x1bd)+CLI_BIN_NAME+_0x291a80(0x1b7)+_0x563eea+'\x20--appcode\x20<code>\x20[--env\x20daily]');if(_0x111a84&&_0x525350)throw CliErrors[_0x291a80(0x1bc)]('Conflicting\x20workspace\x20app\x20selectors.',_0x291a80(0x1d8));const _0x40f4d4=resolveWriteConfigPath(_0x291a80(0x1b1)),_0x21dbbf=readConfigFile(_0x40f4d4);assertWorkspaceCommandState(_0x563eea,_0x21dbbf);const _0x18d897=_0x525350||await resolveRemoteAppCode({'command':_0x563eea,'appName':_0x111a84,'env':_0xa82582,'accessKey':_0x5de34a[_0x291a80(0x1bb)]});return writeWorkspaceConfig({'command':_0x563eea,'appName':_0x111a84,'appcode':_0x18d897,'env':_0xa82582,'shouldWriteEnv':!!_0x1e0cd6,'accessKey':_0x5de34a[_0x291a80(0x1bb)]},_0x40f4d4,_0x21dbbf),{'ok':!![],'data':{'configPath':_0x40f4d4,'app':_0x111a84||null,'appcode':_0x18d897,'env':_0x1e0cd6?_0xa82582:null,'accessKeyWritten':![],'command':'workspace\x20'+_0x563eea},'message':buildWorkspaceMessage(_0x40f4d4,_0x111a84,_0x18d897,_0x1e0cd6?_0xa82582:undefined)};}function a87_0x432b(_0xaa8ab5,_0x2045ab){_0xaa8ab5=_0xaa8ab5-0x1a2;const _0x181ed3=a87_0x181e();let _0x432b9d=_0x181ed3[_0xaa8ab5];return _0x432b9d;}async function resolveRemoteAppCode(_0xbb0fde){const _0x55adf8=a87_0x468123;if(!_0xbb0fde[_0x55adf8(0x1bb)])throw CliErrors[_0x55adf8(0x1b6)](_0x55adf8(0x1ce)+CLI_BIN_NAME+_0x55adf8(0x1b7)+_0xbb0fde[_0x55adf8(0x1a5)]+'.');const {setActiveAK:_0x242300}=await import(_0x55adf8(0x1b5)),{getRemoteAppList:_0x6320db}=await import(_0x55adf8(0x1c3));_0x242300(_0xbb0fde[_0x55adf8(0x1bb)]);const _0xb822f3=await _0x6320db({'env':_0xbb0fde[_0x55adf8(0x1c6)],'accessKey':_0xbb0fde[_0x55adf8(0x1bb)],'noCache':![]}),_0x53a40f=findAppByName(_0xb822f3[_0x55adf8(0x1c8)],_0xbb0fde['appName']);if(_0x53a40f&&!isRuntimeAccessibleApp(_0x53a40f))throw runtimeInaccessibleAppError(_0x53a40f,'\x22'+_0xbb0fde[_0x55adf8(0x1a7)]+'\x22');const _0xcc4b9c=_0x53a40f?.['appCode']?.[_0x55adf8(0x1d2)]();if(_0xcc4b9c)return _0xcc4b9c;const _0x3c575b=_0xb822f3[_0x55adf8(0x1c8)][_0x55adf8(0x1ab)](_0x1c42f9=>_0x1c42f9[_0x55adf8(0x1a7)])[_0x55adf8(0x1b2)](Boolean),_0x357cbb=_0x3c575b[_0x55adf8(0x1ba)]?_0x55adf8(0x1a9)+Array[_0x55adf8(0x1b3)](new Set(_0x3c575b))['join'](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+_0x55adf8(0x1d1);throw CliErrors[_0x55adf8(0x1bc)]('App\x20\x22'+_0xbb0fde[_0x55adf8(0x1a7)]+_0x55adf8(0x1d4),_0x357cbb);}function writeWorkspaceConfig(_0x388458,_0x42a703,_0x1e9a0b){const _0x528c10=a87_0x468123;_0x388458[_0x528c10(0x1ac)]&&(_0x1e9a0b[_0x528c10(0x1c6)]=_0x388458[_0x528c10(0x1c6)]);if(_0x388458['appName']){const _0x1b64df=isRecord(_0x1e9a0b[_0x528c10(0x1a3)])?{..._0x1e9a0b[_0x528c10(0x1a3)]}:{},_0xe82e3b=isRecord(_0x1b64df[_0x388458[_0x528c10(0x1a7)]])?_0x1b64df[_0x388458[_0x528c10(0x1a7)]]:{};return _0x1b64df[_0x388458[_0x528c10(0x1a7)]]={..._0xe82e3b,'appcode':_0x388458[_0x528c10(0x1c7)]},_0x1e9a0b['apps']=_0x1b64df,_0x1e9a0b[_0x528c10(0x1d3)]=_0x388458[_0x528c10(0x1a7)],delete _0x1e9a0b['appcode'],delete _0x1e9a0b['app'],writeAndReturn(_0x42a703,_0x1e9a0b);}return _0x1e9a0b[_0x528c10(0x1c7)]=_0x388458[_0x528c10(0x1c7)],delete _0x1e9a0b[_0x528c10(0x1d3)],delete _0x1e9a0b[_0x528c10(0x1c5)],writeAndReturn(_0x42a703,_0x1e9a0b);}function writeAndReturn(_0x5dccda,_0x4eb4ec){return writeConfigFile(_0x5dccda,_0x4eb4ec),_0x5dccda;}function resolveWorkspaceEnv(_0x5966d7){const _0x32b57c=a87_0x468123;if(RUNTIME_ENV_VALUES[_0x32b57c(0x1cf)](_0x5966d7))return _0x5966d7;throw CliErrors[_0x32b57c(0x1bc)]('Invalid\x20env\x20\x22'+_0x5966d7+_0x32b57c(0x1c0)+RUNTIME_ENV_VALUES[_0x32b57c(0x1a4)](',\x20'));}function buildWorkspaceMessage(_0x442d3a,_0x3c4c67,_0x3ce9f6,_0xbf2c94){const _0x14e3eb=a87_0x468123,_0x3cc37c=_0x3c4c67?_0x3c4c67+'\x20('+_0x3ce9f6+')':_0x3ce9f6,_0x4e7243=_0xbf2c94?_0x14e3eb(0x1b8)+_0xbf2c94:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x442d3a+_0x14e3eb(0x1c9)+_0x3cc37c+_0x4e7243+_0x14e3eb(0x1b9);}function isRecord(_0xc8a79d){return typeof _0xc8a79d==='object'&&_0xc8a79d!==null&&!Array['isArray'](_0xc8a79d);}function hasWorkspaceAppBinding(_0xefc987){const _0x1264fc=a87_0x468123;if(typeof _0xefc987[_0x1264fc(0x1c7)]===_0x1264fc(0x1c2)&&_0xefc987[_0x1264fc(0x1c7)][_0x1264fc(0x1d2)]()[_0x1264fc(0x1ba)]>0x0)return!![];if(typeof _0xefc987[_0x1264fc(0x1d3)]!==_0x1264fc(0x1c2)||!_0xefc987[_0x1264fc(0x1d3)][_0x1264fc(0x1d2)]())return![];if(!isRecord(_0xefc987['apps']))return![];const _0x11f5fa=_0xefc987[_0x1264fc(0x1a3)][_0xefc987[_0x1264fc(0x1d3)][_0x1264fc(0x1d2)]()];return isRecord(_0x11f5fa)&&typeof _0x11f5fa[_0x1264fc(0x1c7)]===_0x1264fc(0x1c2)&&_0x11f5fa[_0x1264fc(0x1c7)]['trim']()[_0x1264fc(0x1ba)]>0x0;}function assertWorkspaceCommandState(_0x109665,_0x51591c){const _0x3b7644=a87_0x468123,_0x5e58f9=hasWorkspaceAppBinding(_0x51591c);if(_0x109665===_0x3b7644(0x1d6)&&_0x5e58f9)throw CliErrors['validation']('Workspace\x20app\x20context\x20is\x20already\x20initialized.',_0x3b7644(0x1cd)+CLI_BIN_NAME+_0x3b7644(0x1aa)+CLI_BIN_NAME+_0x3b7644(0x1d0));if(_0x109665==='use'&&!_0x5e58f9)throw CliErrors[_0x3b7644(0x1bc)]('Workspace\x20app\x20context\x20is\x20not\x20initialized.',_0x3b7644(0x1d7)+CLI_BIN_NAME+'\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`'+CLI_BIN_NAME+_0x3b7644(0x1a2));}function makeWorkspaceCommand(_0x16d3da){const _0x3cf01a=a87_0x468123;return{'service':'workspace','command':_0x16d3da,'description':_0x16d3da===_0x3cf01a(0x1d6)?'Initialize\x20app\x20context\x20for\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet':'Change\x20the\x20app\x20context\x20already\x20bound\x20to\x20the\x20current\x20working\x20directory','risk':'write','confirmationDescription':_0x16d3da===_0x3cf01a(0x1d6)?_0x3cf01a(0x1ae):'Updates\x20the\x20app\x20binding\x20already\x20present\x20in\x20the\x20current\x20working\x20directory\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x2d98ac){return executeWorkspaceUse(_0x2d98ac,_0x16d3da);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a87_0x468123(0x1d6)),makeWorkspaceCommand(a87_0x468123(0x1c1))];
1
+ const a87_0x328a45=a87_0x5301;(function(_0x1ff37e,_0x2290b5){const _0xd1b547=a87_0x5301,_0x216e1b=_0x1ff37e();while(!![]){try{const _0x364de4=-parseInt(_0xd1b547(0x13d))/0x1*(-parseInt(_0xd1b547(0x121))/0x2)+-parseInt(_0xd1b547(0x11b))/0x3+parseInt(_0xd1b547(0x12e))/0x4*(parseInt(_0xd1b547(0x120))/0x5)+parseInt(_0xd1b547(0x12f))/0x6+parseInt(_0xd1b547(0x112))/0x7*(parseInt(_0xd1b547(0x137))/0x8)+parseInt(_0xd1b547(0x111))/0x9+-parseInt(_0xd1b547(0x147))/0xa;if(_0x364de4===_0x2290b5)break;else _0x216e1b['push'](_0x216e1b['shift']());}catch(_0x1e6ab4){_0x216e1b['push'](_0x216e1b['shift']());}}}(a87_0x36dc,0x6ce35));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';function a87_0x5301(_0x31366e,_0x2a8e8a){_0x31366e=_0x31366e-0x10c;const _0x36dc1c=a87_0x36dc();let _0x5301ed=_0x36dc1c[_0x31366e];return _0x5301ed;}function a87_0x36dc(){const _0x343f50=['110QMBQCA','8zGhVHI','shouldWriteEnv','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','join','object','workspace','\x22.\x20Allowed:\x20','accessKey','appcode','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','trim','Run\x20`','Available\x20apps:\x20','34024qBCEfa','2588496rSudSu','appCode','appName','Invalid\x20env\x20\x22','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','string','App\x20\x22','init','56Xmvspg','Workspace\x20app\x20context\x20is\x20not\x20initialized.','\x20workspace\x20','use','authRequired','command','134858wxKshZ','Usage:\x20','write','apps','includes','from','length','app','Workspace\x20app\x20context\x20is\x20already\x20initialized.','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','8309140GXTQcr','map','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','Writes\x20Lovrabet\x20project\x20config\x20in\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet,\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','App\x20code\x20to\x20bind\x20directly','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','workspace\x20','\x0aAccessKey:\x20not\x20written','1802196DyERMe','800926MnLNsn','../../commands/app/remote-source.js','\x0aDefault\x20app:\x20','defaultApp','\x20--appcode\x20<code>\x20[--env\x20daily]','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','str','Target\x20environment','validation','2646693PAjNPS','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','items','env','Use\x20`'];a87_0x36dc=function(){return _0x343f50;};return a87_0x36dc();}import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':'app','type':a87_0x328a45(0x134),'description':a87_0x328a45(0x149)},{'name':'appcode','type':a87_0x328a45(0x134),'description':a87_0x328a45(0x10d)},{'name':a87_0x328a45(0x11e),'type':a87_0x328a45(0x134),'description':a87_0x328a45(0x119),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x4d6094,_0x5bcc63){const _0x40043c=a87_0x328a45,_0x10a7f7=_0x4d6094['str'](_0x40043c(0x144))[_0x40043c(0x12b)](),_0x66fdb8=_0x4d6094[_0x40043c(0x118)](_0x40043c(0x129))['trim'](),_0x52f623=_0x4d6094[_0x40043c(0x118)]('env')[_0x40043c(0x12b)](),_0xc97733=resolveWorkspaceEnv(_0x52f623||_0x4d6094['envName']||DEFAULT_CONFIG_VALUES[_0x40043c(0x11e)]);if(!_0x10a7f7&&!_0x66fdb8)throw CliErrors[_0x40043c(0x11a)]('Missing\x20workspace\x20app\x20selector.',_0x40043c(0x13e)+CLI_BIN_NAME+'\x20workspace\x20'+_0x5bcc63+_0x40043c(0x10e)+CLI_BIN_NAME+'\x20workspace\x20'+_0x5bcc63+_0x40043c(0x116));if(_0x10a7f7&&_0x66fdb8)throw CliErrors[_0x40043c(0x11a)]('Conflicting\x20workspace\x20app\x20selectors.',_0x40043c(0x133));const _0x435473=resolveWriteConfigPath('project'),_0x1a0c9d=readConfigFile(_0x435473);assertWorkspaceCommandState(_0x5bcc63,_0x1a0c9d);const _0x4bd35f=_0x66fdb8||await resolveRemoteAppCode({'command':_0x5bcc63,'appName':_0x10a7f7,'env':_0xc97733,'accessKey':_0x4d6094[_0x40043c(0x128)]});return writeWorkspaceConfig({'command':_0x5bcc63,'appName':_0x10a7f7,'appcode':_0x4bd35f,'env':_0xc97733,'shouldWriteEnv':!!_0x52f623,'accessKey':_0x4d6094[_0x40043c(0x128)]},_0x435473,_0x1a0c9d),{'ok':!![],'data':{'configPath':_0x435473,'app':_0x10a7f7||null,'appcode':_0x4bd35f,'env':_0x52f623?_0xc97733:null,'accessKeyWritten':![],'command':_0x40043c(0x10f)+_0x5bcc63},'message':buildWorkspaceMessage(_0x435473,_0x10a7f7,_0x4bd35f,_0x52f623?_0xc97733:undefined)};}async function resolveRemoteAppCode(_0x489822){const _0x31a6e7=a87_0x328a45;if(!_0x489822['accessKey'])throw CliErrors[_0x31a6e7(0x13b)](_0x31a6e7(0x117)+CLI_BIN_NAME+_0x31a6e7(0x139)+_0x489822[_0x31a6e7(0x13c)]+'.');const {setActiveAK:_0x441b90}=await import('../../core/api-client.js'),{getRemoteAppList:_0x353790}=await import(_0x31a6e7(0x113));_0x441b90(_0x489822[_0x31a6e7(0x128)]);const _0x22ca10=await _0x353790({'env':_0x489822[_0x31a6e7(0x11e)],'accessKey':_0x489822[_0x31a6e7(0x128)],'noCache':![]}),_0x59c8d5=findAppByName(_0x22ca10[_0x31a6e7(0x11d)],_0x489822[_0x31a6e7(0x131)]);if(_0x59c8d5&&!isRuntimeAccessibleApp(_0x59c8d5))throw runtimeInaccessibleAppError(_0x59c8d5,'\x22'+_0x489822[_0x31a6e7(0x131)]+'\x22');const _0x9d3b53=_0x59c8d5?.[_0x31a6e7(0x130)]?.[_0x31a6e7(0x12b)]();if(_0x9d3b53)return _0x9d3b53;const _0x3eaf38=_0x22ca10[_0x31a6e7(0x11d)][_0x31a6e7(0x148)](_0x1fcd44=>_0x1fcd44[_0x31a6e7(0x131)])['filter'](Boolean),_0x1e96d3=_0x3eaf38[_0x31a6e7(0x143)]?_0x31a6e7(0x12d)+Array[_0x31a6e7(0x142)](new Set(_0x3eaf38))[_0x31a6e7(0x124)](',\x20')+'.':_0x31a6e7(0x12c)+CLI_BIN_NAME+_0x31a6e7(0x123);throw CliErrors['validation'](_0x31a6e7(0x135)+_0x489822[_0x31a6e7(0x131)]+'\x22\x20not\x20found.',_0x1e96d3);}function writeWorkspaceConfig(_0x197f7b,_0x1a15ad,_0xf7db2c){const _0x49153f=a87_0x328a45;_0x197f7b[_0x49153f(0x122)]&&(_0xf7db2c[_0x49153f(0x11e)]=_0x197f7b[_0x49153f(0x11e)]);if(_0x197f7b['appName']){const _0x263870=isRecord(_0xf7db2c[_0x49153f(0x140)])?{..._0xf7db2c[_0x49153f(0x140)]}:{},_0x801c41=isRecord(_0x263870[_0x197f7b['appName']])?_0x263870[_0x197f7b[_0x49153f(0x131)]]:{};return _0x263870[_0x197f7b[_0x49153f(0x131)]]={..._0x801c41,'appcode':_0x197f7b[_0x49153f(0x129)]},_0xf7db2c[_0x49153f(0x140)]=_0x263870,_0xf7db2c[_0x49153f(0x115)]=_0x197f7b[_0x49153f(0x131)],delete _0xf7db2c[_0x49153f(0x129)],delete _0xf7db2c[_0x49153f(0x144)],writeAndReturn(_0x1a15ad,_0xf7db2c);}return _0xf7db2c[_0x49153f(0x129)]=_0x197f7b[_0x49153f(0x129)],delete _0xf7db2c['defaultApp'],delete _0xf7db2c[_0x49153f(0x144)],writeAndReturn(_0x1a15ad,_0xf7db2c);}function writeAndReturn(_0x25e34c,_0xf10d15){return writeConfigFile(_0x25e34c,_0xf10d15),_0x25e34c;}function resolveWorkspaceEnv(_0x487cd9){const _0x1b7b3e=a87_0x328a45;if(RUNTIME_ENV_VALUES[_0x1b7b3e(0x141)](_0x487cd9))return _0x487cd9;throw CliErrors[_0x1b7b3e(0x11a)](_0x1b7b3e(0x132)+_0x487cd9+_0x1b7b3e(0x127)+RUNTIME_ENV_VALUES[_0x1b7b3e(0x124)](',\x20'));}function buildWorkspaceMessage(_0x3bf56d,_0x3009ca,_0x5ee713,_0xebf214){const _0x481147=a87_0x328a45,_0x42d6b8=_0x3009ca?_0x3009ca+'\x20('+_0x5ee713+')':_0x5ee713,_0x2a0f00=_0xebf214?'\x0aEnv:\x20'+_0xebf214:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x3bf56d+_0x481147(0x114)+_0x42d6b8+_0x2a0f00+_0x481147(0x110);}function isRecord(_0x3e2f98){const _0x3705ac=a87_0x328a45;return typeof _0x3e2f98===_0x3705ac(0x125)&&_0x3e2f98!==null&&!Array['isArray'](_0x3e2f98);}function hasWorkspaceAppBinding(_0x2b3be3){const _0x23b6fd=a87_0x328a45;if(typeof _0x2b3be3[_0x23b6fd(0x129)]==='string'&&_0x2b3be3['appcode'][_0x23b6fd(0x12b)]()[_0x23b6fd(0x143)]>0x0)return!![];if(typeof _0x2b3be3[_0x23b6fd(0x115)]!=='string'||!_0x2b3be3[_0x23b6fd(0x115)][_0x23b6fd(0x12b)]())return![];if(!isRecord(_0x2b3be3[_0x23b6fd(0x140)]))return![];const _0x2d3255=_0x2b3be3['apps'][_0x2b3be3[_0x23b6fd(0x115)][_0x23b6fd(0x12b)]()];return isRecord(_0x2d3255)&&typeof _0x2d3255[_0x23b6fd(0x129)]===_0x23b6fd(0x134)&&_0x2d3255[_0x23b6fd(0x129)][_0x23b6fd(0x12b)]()[_0x23b6fd(0x143)]>0x0;}function assertWorkspaceCommandState(_0x500360,_0xdb43d8){const _0x4c3d62=a87_0x328a45,_0x19916b=hasWorkspaceAppBinding(_0xdb43d8);if(_0x500360===_0x4c3d62(0x136)&&_0x19916b)throw CliErrors[_0x4c3d62(0x11a)](_0x4c3d62(0x145),_0x4c3d62(0x11f)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`'+CLI_BIN_NAME+_0x4c3d62(0x12a));if(_0x500360===_0x4c3d62(0x13a)&&!_0x19916b)throw CliErrors[_0x4c3d62(0x11a)](_0x4c3d62(0x138),'Run\x20`'+CLI_BIN_NAME+_0x4c3d62(0x146)+CLI_BIN_NAME+_0x4c3d62(0x11c));}function makeWorkspaceCommand(_0x28b6ca){const _0x2c7ede=a87_0x328a45;return{'service':_0x2c7ede(0x126),'command':_0x28b6ca,'description':_0x28b6ca===_0x2c7ede(0x136)?'Initialize\x20app\x20context\x20for\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet':'Change\x20the\x20app\x20context\x20already\x20bound\x20to\x20the\x20current\x20working\x20directory','risk':_0x2c7ede(0x13f),'confirmationDescription':_0x28b6ca===_0x2c7ede(0x136)?_0x2c7ede(0x10c):'Updates\x20the\x20app\x20binding\x20already\x20present\x20in\x20the\x20current\x20working\x20directory\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x9c528f){return executeWorkspaceUse(_0x9c528f,_0x28b6ca);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a87_0x328a45(0x136)),makeWorkspaceCommand(a87_0x328a45(0x13a))];
@@ -1 +1 @@
1
- function a88_0x590a(_0x5aa323,_0x1ef857){_0x5aa323=_0x5aa323-0x1f4;const _0x288a91=a88_0x288a();let _0x590aec=_0x288a91[_0x5aa323];return _0x590aec;}const a88_0x436f52=a88_0x590a;(function(_0x4d57d1,_0x425500){const _0x2b2454=a88_0x590a,_0xd7776a=_0x4d57d1();while(!![]){try{const _0x18a608=-parseInt(_0x2b2454(0x21b))/0x1+-parseInt(_0x2b2454(0x1f4))/0x2+-parseInt(_0x2b2454(0x1f8))/0x3+-parseInt(_0x2b2454(0x1fd))/0x4+parseInt(_0x2b2454(0x222))/0x5+-parseInt(_0x2b2454(0x200))/0x6+parseInt(_0x2b2454(0x20c))/0x7;if(_0x18a608===_0x425500)break;else _0xd7776a['push'](_0xd7776a['shift']());}catch(_0x9d8d0f){_0xd7776a['push'](_0xd7776a['shift']());}}}(a88_0x288a,0x687d1));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=[a88_0x436f52(0x205),a88_0x436f52(0x20f),a88_0x436f52(0x21f),a88_0x436f52(0x206),a88_0x436f52(0x21a)];const DOMAIN_FLAGS={'userDomain':a88_0x436f52(0x221),'apiDomain':a88_0x436f52(0x21d),'runtimeDomain':a88_0x436f52(0x209),'skillDomain':a88_0x436f52(0x21c),'kbDomain':a88_0x436f52(0x1ff)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a88_0x436f52(0x1f5),'platformDomain',a88_0x436f52(0x214)];export function normalizeDomainOrigin(_0x2de69c,_0x5d6165){const _0x2fdf11=a88_0x436f52;if(typeof _0x5d6165!==_0x2fdf11(0x1f7)||!_0x5d6165[_0x2fdf11(0x1fe)]())throw CliErrors[_0x2fdf11(0x1f9)](_0x2fdf11(0x216)+_0x2de69c+_0x2fdf11(0x20d));let _0x3c86b6;try{_0x3c86b6=new URL(_0x5d6165[_0x2fdf11(0x1fe)]());}catch{throw CliErrors['validation'](_0x2fdf11(0x216)+_0x2de69c+_0x2fdf11(0x20e)+_0x5d6165+_0x2fdf11(0x21e));}if(_0x3c86b6[_0x2fdf11(0x210)]!==_0x2fdf11(0x1f6)||_0x3c86b6['username']||_0x3c86b6['password']||_0x3c86b6[_0x2fdf11(0x211)]!=='/'&&_0x3c86b6[_0x2fdf11(0x211)]!==''||_0x3c86b6[_0x2fdf11(0x201)]||_0x3c86b6[_0x2fdf11(0x215)])throw CliErrors[_0x2fdf11(0x1f9)](_0x2fdf11(0x216)+_0x2de69c+_0x2fdf11(0x204),'For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.');return _0x3c86b6[_0x2fdf11(0x1fc)];}export function readDomainConfig(_0x546ec5){const _0x58f9f4=a88_0x436f52,_0x2d504f=isAbsolute(_0x546ec5)?_0x546ec5:resolve(process[_0x58f9f4(0x202)](),_0x546ec5);if(!existsSync(_0x2d504f))throw CliErrors[_0x58f9f4(0x1f9)](_0x58f9f4(0x217)+_0x2d504f);let _0x599b90;try{_0x599b90=JSON['parse'](readFileSync(_0x2d504f,_0x58f9f4(0x208)));}catch{throw CliErrors['validation']('Invalid\x20domain\x20config\x20JSON:\x20'+_0x2d504f);}if(!_0x599b90||typeof _0x599b90!==_0x58f9f4(0x220)||Array[_0x58f9f4(0x203)](_0x599b90))throw CliErrors[_0x58f9f4(0x1f9)](_0x58f9f4(0x219));const _0x54ef48=_0x599b90,_0x4b5032=Object[_0x58f9f4(0x213)](_0x54ef48)[_0x58f9f4(0x20a)](_0x3ea7e6=>!DOMAIN_CONFIG_FIELDS[_0x58f9f4(0x218)](_0x3ea7e6));if(_0x4b5032['length']>0x0)throw CliErrors['validation'](_0x58f9f4(0x212)+_0x4b5032[_0x58f9f4(0x20b)](',\x20'),_0x58f9f4(0x1fb)+DOMAIN_CONFIG_FIELDS[_0x58f9f4(0x20b)](',\x20'));const _0x2a7706={};for(const _0x2dfdbb of DOMAIN_CONFIG_FIELDS){_0x54ef48[_0x2dfdbb]!==undefined&&(_0x2a7706[_0x2dfdbb]=normalizeDomainOrigin(_0x2dfdbb,_0x54ef48[_0x2dfdbb]));}if(Object[_0x58f9f4(0x213)](_0x2a7706)[_0x58f9f4(0x1fa)]===0x0)throw CliErrors[_0x58f9f4(0x1f9)]('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return _0x2a7706;}function a88_0x288a(){const _0x584589=['string','149397VyYZmm','validation','length','Allowed\x20fields:\x20','origin','1848360BXfuOK','trim','kb-domain','4120812aXaZTc','search','cwd','isArray',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','userDomain','skillDomain','str','utf8','runtime-domain','filter','join','14357504bHNZHR',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.',':\x20\x22','apiDomain','protocol','pathname','Unsupported\x20domain\x20config\x20field(s):\x20','keys','skillHubDomain','hash','Invalid\x20','Domain\x20config\x20file\x20not\x20found:\x20','includes','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','kbDomain','19176wRCjIB','skill-domain','api-domain','\x22\x20is\x20not\x20a\x20valid\x20URL.','runtimeDomain','object','user-domain','1883050gXOrCo','1563660EOiqgq','agentDomain','https:'];a88_0x288a=function(){return _0x584589;};return a88_0x288a();}export function resolveDomainFlags(_0x5d17f1){const _0x27b935=a88_0x436f52,_0x2951ee=(_0x5d17f1[_0x27b935(0x207)]('domain-config')||'')[_0x27b935(0x1fe)](),_0x216ca8=_0x2951ee?readDomainConfig(_0x2951ee):{};for(const _0x431953 of DOMAIN_CONFIG_FIELDS){const _0x135a3b=(_0x5d17f1[_0x27b935(0x207)](DOMAIN_FLAGS[_0x431953])||'')[_0x27b935(0x1fe)]();if(_0x135a3b)_0x216ca8[_0x431953]=normalizeDomainOrigin(_0x431953,_0x135a3b);}return _0x216ca8;}
1
+ const a88_0x40df74=a88_0x1df4;(function(_0x4a38db,_0x2c10f7){const _0x95c114=a88_0x1df4,_0xa307d4=_0x4a38db();while(!![]){try{const _0x28487f=parseInt(_0x95c114(0x170))/0x1*(parseInt(_0x95c114(0x168))/0x2)+parseInt(_0x95c114(0x15d))/0x3+-parseInt(_0x95c114(0x188))/0x4*(parseInt(_0x95c114(0x15f))/0x5)+parseInt(_0x95c114(0x180))/0x6+-parseInt(_0x95c114(0x174))/0x7+parseInt(_0x95c114(0x184))/0x8*(-parseInt(_0x95c114(0x166))/0x9)+parseInt(_0x95c114(0x169))/0xa;if(_0x28487f===_0x2c10f7)break;else _0xa307d4['push'](_0xa307d4['shift']());}catch(_0x1088f0){_0xa307d4['push'](_0xa307d4['shift']());}}}(a88_0xb018,0xc4212));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';function a88_0x1df4(_0xd9144b,_0x441f4c){_0xd9144b=_0xd9144b-0x15d;const _0xb018ea=a88_0xb018();let _0x1df4f1=_0xb018ea[_0xd9144b];return _0x1df4f1;}function a88_0xb018(){const _0x2e19d7=['skillDomain','45JKtJoH','validation','4diTzrx','35455380TrLCcV','userDomain','filter','password','agentDomain','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','keys','184301byPgkQ','apiDomain','domain-config','kb-domain','7485520uBzbPU','trim','Invalid\x20',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','includes','join','object','origin','utf8','length','Invalid\x20domain\x20config\x20JSON:\x20','4627950vgXSso','kbDomain','protocol',':\x20\x22','2447544fsYtfr','parse','hash','runtimeDomain','5137600wFkOsH','Unsupported\x20domain\x20config\x20field(s):\x20','Domain\x20config\x20file\x20not\x20found:\x20','isArray','user-domain','4068NopyDY','Allowed\x20fields:\x20','5rdbYqa','search','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','api-domain','pathname','str'];a88_0xb018=function(){return _0x2e19d7;};return a88_0xb018();}export const DOMAIN_CONFIG_FIELDS=[a88_0x40df74(0x16a),a88_0x40df74(0x171),a88_0x40df74(0x187),a88_0x40df74(0x165),a88_0x40df74(0x181)];const DOMAIN_FLAGS={'userDomain':a88_0x40df74(0x18c),'apiDomain':a88_0x40df74(0x162),'runtimeDomain':'runtime-domain','skillDomain':'skill-domain','kbDomain':a88_0x40df74(0x173)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a88_0x40df74(0x16d),'platformDomain','skillHubDomain'];export function normalizeDomainOrigin(_0x46b81b,_0x1b10c8){const _0x34e1b0=a88_0x40df74;if(typeof _0x1b10c8!=='string'||!_0x1b10c8['trim']())throw CliErrors['validation']('Invalid\x20'+_0x46b81b+_0x34e1b0(0x177));let _0x5070e7;try{_0x5070e7=new URL(_0x1b10c8['trim']());}catch{throw CliErrors['validation'](_0x34e1b0(0x176)+_0x46b81b+_0x34e1b0(0x183)+_0x1b10c8+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x5070e7[_0x34e1b0(0x182)]!=='https:'||_0x5070e7['username']||_0x5070e7[_0x34e1b0(0x16c)]||_0x5070e7[_0x34e1b0(0x163)]!=='/'&&_0x5070e7['pathname']!==''||_0x5070e7[_0x34e1b0(0x160)]||_0x5070e7[_0x34e1b0(0x186)])throw CliErrors[_0x34e1b0(0x167)](_0x34e1b0(0x176)+_0x46b81b+_0x34e1b0(0x178),_0x34e1b0(0x16e));return _0x5070e7[_0x34e1b0(0x17c)];}export function readDomainConfig(_0x40e715){const _0x1e4fb4=a88_0x40df74,_0x25f15d=isAbsolute(_0x40e715)?_0x40e715:resolve(process['cwd'](),_0x40e715);if(!existsSync(_0x25f15d))throw CliErrors[_0x1e4fb4(0x167)](_0x1e4fb4(0x18a)+_0x25f15d);let _0xda6166;try{_0xda6166=JSON[_0x1e4fb4(0x185)](readFileSync(_0x25f15d,_0x1e4fb4(0x17d)));}catch{throw CliErrors[_0x1e4fb4(0x167)](_0x1e4fb4(0x17f)+_0x25f15d);}if(!_0xda6166||typeof _0xda6166!==_0x1e4fb4(0x17b)||Array[_0x1e4fb4(0x18b)](_0xda6166))throw CliErrors['validation'](_0x1e4fb4(0x161));const _0x51393a=_0xda6166,_0x164b0a=Object[_0x1e4fb4(0x16f)](_0x51393a)[_0x1e4fb4(0x16b)](_0xbca1d1=>!DOMAIN_CONFIG_FIELDS[_0x1e4fb4(0x179)](_0xbca1d1));if(_0x164b0a[_0x1e4fb4(0x17e)]>0x0)throw CliErrors['validation'](_0x1e4fb4(0x189)+_0x164b0a[_0x1e4fb4(0x17a)](',\x20'),_0x1e4fb4(0x15e)+DOMAIN_CONFIG_FIELDS[_0x1e4fb4(0x17a)](',\x20'));const _0x4ee29f={};for(const _0x4f7cb7 of DOMAIN_CONFIG_FIELDS){_0x51393a[_0x4f7cb7]!==undefined&&(_0x4ee29f[_0x4f7cb7]=normalizeDomainOrigin(_0x4f7cb7,_0x51393a[_0x4f7cb7]));}if(Object[_0x1e4fb4(0x16f)](_0x4ee29f)[_0x1e4fb4(0x17e)]===0x0)throw CliErrors[_0x1e4fb4(0x167)]('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return _0x4ee29f;}export function resolveDomainFlags(_0x4ae9ba){const _0x4b13e8=a88_0x40df74,_0x3baa9e=(_0x4ae9ba['str'](_0x4b13e8(0x172))||'')[_0x4b13e8(0x175)](),_0x3b0f54=_0x3baa9e?readDomainConfig(_0x3baa9e):{};for(const _0x5a0eab of DOMAIN_CONFIG_FIELDS){const _0x5e58bd=(_0x4ae9ba[_0x4b13e8(0x164)](DOMAIN_FLAGS[_0x5a0eab])||'')[_0x4b13e8(0x175)]();if(_0x5e58bd)_0x3b0f54[_0x5a0eab]=normalizeDomainOrigin(_0x5a0eab,_0x5e58bd);}return _0x3b0f54;}
@@ -1 +1 @@
1
- const a89_0x7b006e=a89_0x11f2;(function(_0x105775,_0xbd05eb){const _0x326e14=a89_0x11f2,_0x594b6c=_0x105775();while(!![]){try{const _0x5057b1=parseInt(_0x326e14(0x17a))/0x1*(parseInt(_0x326e14(0x172))/0x2)+parseInt(_0x326e14(0x192))/0x3*(-parseInt(_0x326e14(0x17e))/0x4)+parseInt(_0x326e14(0x17b))/0x5+parseInt(_0x326e14(0x16d))/0x6+parseInt(_0x326e14(0x194))/0x7+parseInt(_0x326e14(0x16e))/0x8*(parseInt(_0x326e14(0x16f))/0x9)+parseInt(_0x326e14(0x18b))/0xa*(parseInt(_0x326e14(0x190))/0xb);if(_0x5057b1===_0xbd05eb)break;else _0x594b6c['push'](_0x594b6c['shift']());}catch(_0x15f54c){_0x594b6c['push'](_0x594b6c['shift']());}}}(a89_0x38b9,0x49026));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export const CONFIG_FIELD_SCHEMAS={'region':{'description':a89_0x7b006e(0x18a),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':ENABLED_LOVRABET_REGION_VALUES,'defaultValue':DEFAULT_LOVRABET_REGION,'importable':!![]},'env':{'description':a89_0x7b006e(0x189),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x7b006e(0x193)],'importable':!![]},'format':{'description':a89_0x7b006e(0x179),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x7b006e(0x182)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a89_0x7b006e(0x178),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a89_0x7b006e(0x184),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a89_0x7b006e(0x17d),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillDomain':{'description':a89_0x7b006e(0x176),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'kbDomain':{'description':a89_0x7b006e(0x186),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a89_0x7b006e(0x180),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a89_0x7b006e(0x171),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x7b006e(0x191)],'importable':!![]},'nativeToolAvailable':{'description':a89_0x7b006e(0x173),'topLevel':!![],'defaultValue':![]},'locale':{'description':a89_0x7b006e(0x17c),'topLevel':!![],'cliSettableTopLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x7b006e(0x18d)],'importable':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a89_0x7b006e(0x18c)](CONFIG_FIELD_SCHEMAS)[a89_0x7b006e(0x18e)](([,_0x3272d7])=>_0x3272d7[a89_0x7b006e(0x18f)])[a89_0x7b006e(0x17f)](([_0x4bdc65])=>_0x4bdc65));export const CLI_PROTECTED_CONFIG_KEYS=new Set([a89_0x7b006e(0x191),a89_0x7b006e(0x183)]);function a89_0x38b9(){const _0x4a5c48=['has','Config\x20key.\x20Top-level:\x20','Target\x20environment','Lovrabet\x20region','270VMrxgR','entries','locale','filter','cliSettableTopLevel','165693OOJHox','riskLevel','159381XFELHm','env','415079WGJdkd','207306UhIoQD','14496jBAjUV','36hCKVwX','en-US','Risk\x20level','2KYBhah','Native\x20Lovrabet\x20tool\x20availability\x20in\x20the\x20current\x20execution\x20host','enumValues','legacyCompatOnly','Override\x20SkillHub\x20domain',';\x20local\x20alias:\x20apps.<alias>.appcode','Override\x20API\x20domain','Default\x20output\x20format','47717MBjMCO','842740TMFksC','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','Override\x20runtime\x20domain','32ARqvZv','map','Access\x20key\x20(client-ak\x20auth)','join','format','nativeToolAvailable','Override\x20user\x20domain','zh-CN','Override\x20knowledge-base\x20domain'];a89_0x38b9=function(){return _0x4a5c48;};return a89_0x38b9();}export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object[a89_0x7b006e(0x18c)](CONFIG_FIELD_SCHEMAS)[a89_0x7b006e(0x18e)](([,_0x350a24])=>_0x350a24[a89_0x7b006e(0x174)])[a89_0x7b006e(0x17f)](([_0x970285,_0x204420])=>[_0x970285,[..._0x204420[a89_0x7b006e(0x174)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a89_0x7b006e(0x18c)](CONFIG_FIELD_SCHEMAS)[a89_0x7b006e(0x18e)](([,_0x143a6e])=>_0x143a6e['importable'])['map'](([_0x11418f])=>_0x11418f);export function getConfigFieldSchema(_0x5ae2ea){return CONFIG_FIELD_SCHEMAS[_0x5ae2ea];}export function getConfigEnumValues(_0x539b13){const _0x48127e=a89_0x7b006e;return getConfigFieldSchema(_0x539b13)?.[_0x48127e(0x174)];}export function getConfigDefaultValue(_0x2c2a50){return getConfigFieldSchema(_0x2c2a50)?.['defaultValue'];}export function isTopLevelConfigKey(_0xf9f312){const _0x28c306=a89_0x7b006e;return TOP_LEVEL_CONFIG_KEYS[_0x28c306(0x187)](_0xf9f312);}export function isCliProtectedConfigKey(_0x4eb04a){const _0x38f9d4=a89_0x7b006e;return CLI_PROTECTED_CONFIG_KEYS[_0x38f9d4(0x187)](_0x4eb04a);}const LOCALE_MAP={'zh':a89_0x7b006e(0x185),'zh-cn':a89_0x7b006e(0x185),'zh_cn':'zh-CN','en':a89_0x7b006e(0x170),'en-us':a89_0x7b006e(0x170),'en_us':a89_0x7b006e(0x170)};export function normalizeLocale(_0x5ae64c){if(!_0x5ae64c)return null;return LOCALE_MAP[_0x5ae64c['toLowerCase']()]??null;}export function isLegacyCompatConfigKey(_0x53b48a){const _0x26c418=a89_0x7b006e;return getConfigFieldSchema(_0x53b48a)?.[_0x26c418(0x175)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x1e2910){const _0x47fcc7=a89_0x7b006e;return[..._0x1e2910][_0x47fcc7(0x181)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x4a484f=a89_0x7b006e;return _0x4a484f(0x188)+getTopLevelConfigKeySummary()+_0x4a484f(0x177);}function a89_0x11f2(_0x1503a2,_0x13a5a6){_0x1503a2=_0x1503a2-0x16d;const _0x38b9ee=a89_0x38b9();let _0x11f243=_0x38b9ee[_0x1503a2];return _0x11f243;}export function buildAppProfileListFields(_0x5936ac){return{'env':_0x5936ac,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a89_0x57d968=a89_0x2169;(function(_0x5e5ff2,_0x1f96b0){const _0x1b7e13=a89_0x2169,_0x5ba5d3=_0x5e5ff2();while(!![]){try{const _0x585d33=-parseInt(_0x1b7e13(0x13b))/0x1*(parseInt(_0x1b7e13(0x11d))/0x2)+parseInt(_0x1b7e13(0x13a))/0x3*(-parseInt(_0x1b7e13(0x135))/0x4)+parseInt(_0x1b7e13(0x128))/0x5*(-parseInt(_0x1b7e13(0x130))/0x6)+-parseInt(_0x1b7e13(0x122))/0x7+parseInt(_0x1b7e13(0x11b))/0x8*(parseInt(_0x1b7e13(0x13d))/0x9)+-parseInt(_0x1b7e13(0x120))/0xa+-parseInt(_0x1b7e13(0x121))/0xb*(-parseInt(_0x1b7e13(0x11f))/0xc);if(_0x585d33===_0x1f96b0)break;else _0x5ba5d3['push'](_0x5ba5d3['shift']());}catch(_0x4b6cb9){_0x5ba5d3['push'](_0x5ba5d3['shift']());}}}(a89_0x437d,0x574e7));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export const CONFIG_FIELD_SCHEMAS={'region':{'description':a89_0x57d968(0x11c),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':ENABLED_LOVRABET_REGION_VALUES,'defaultValue':DEFAULT_LOVRABET_REGION,'importable':!![]},'env':{'description':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x57d968(0x11a)],'importable':!![]},'format':{'description':a89_0x57d968(0x138),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x57d968(0x12d)],'importable':!![]},'pageSize':{'description':a89_0x57d968(0x132),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a89_0x57d968(0x12f),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a89_0x57d968(0x124),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a89_0x57d968(0x140),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillDomain':{'description':'Override\x20SkillHub\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'kbDomain':{'description':a89_0x57d968(0x12e),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a89_0x57d968(0x139),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'nativeToolAvailable':{'description':a89_0x57d968(0x13c),'topLevel':!![],'defaultValue':![]},'locale':{'description':a89_0x57d968(0x129),'topLevel':!![],'cliSettableTopLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x57d968(0x12a)],'importable':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a89_0x57d968(0x133)](CONFIG_FIELD_SCHEMAS)[a89_0x57d968(0x127)](([,_0x3697bf])=>_0x3697bf[a89_0x57d968(0x131)])['map'](([_0x38aa21])=>_0x38aa21));export const CLI_PROTECTED_CONFIG_KEYS=new Set(['riskLevel',a89_0x57d968(0x12c)]);export const CONFIG_ENUM_VALUES=Object[a89_0x57d968(0x137)](Object[a89_0x57d968(0x133)](CONFIG_FIELD_SCHEMAS)[a89_0x57d968(0x127)](([,_0x57e25d])=>_0x57e25d[a89_0x57d968(0x125)])[a89_0x57d968(0x134)](([_0x180db3,_0x4d05ca])=>[_0x180db3,[..._0x4d05ca[a89_0x57d968(0x125)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a89_0x57d968(0x133)](CONFIG_FIELD_SCHEMAS)[a89_0x57d968(0x127)](([,_0x24ad98])=>_0x24ad98[a89_0x57d968(0x123)])[a89_0x57d968(0x134)](([_0x4d4b9d])=>_0x4d4b9d);export function getConfigFieldSchema(_0x631017){return CONFIG_FIELD_SCHEMAS[_0x631017];}export function getConfigEnumValues(_0x33cda7){const _0x1b8493=a89_0x57d968;return getConfigFieldSchema(_0x33cda7)?.[_0x1b8493(0x125)];}export function getConfigDefaultValue(_0x3316cb){return getConfigFieldSchema(_0x3316cb)?.['defaultValue'];}export function isTopLevelConfigKey(_0x2f3c15){const _0x379d77=a89_0x57d968;return TOP_LEVEL_CONFIG_KEYS[_0x379d77(0x11e)](_0x2f3c15);}export function isCliProtectedConfigKey(_0x13e84d){const _0x5db593=a89_0x57d968;return CLI_PROTECTED_CONFIG_KEYS[_0x5db593(0x11e)](_0x13e84d);}const LOCALE_MAP={'zh':a89_0x57d968(0x12b),'zh-cn':a89_0x57d968(0x12b),'zh_cn':a89_0x57d968(0x12b),'en':a89_0x57d968(0x136),'en-us':a89_0x57d968(0x136),'en_us':'en-US'};export function normalizeLocale(_0x15bfbe){const _0x19255c=a89_0x57d968;if(!_0x15bfbe)return null;return LOCALE_MAP[_0x15bfbe[_0x19255c(0x126)]()]??null;}function a89_0x437d(){const _0x2bc66d=['join','Override\x20runtime\x20domain','env','2629976ombdPy','Lovrabet\x20region','2ogJwbe','has','8081676KzSEOn','4369540zTJRqt','33WBcHSv','2148496FdgZCl','importable','Override\x20user\x20domain','enumValues','toLowerCase','filter','1189945bjAnwK','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','locale','zh-CN','nativeToolAvailable','format','Override\x20knowledge-base\x20domain','Override\x20API\x20domain','18Mmbypb','cliSettableTopLevel','Default\x20page\x20size','entries','map','24lmaqSU','en-US','fromEntries','Default\x20output\x20format','Access\x20key\x20(client-ak\x20auth)','352113jitjbw','158231iHPZvg','Native\x20Lovrabet\x20tool\x20availability\x20in\x20the\x20current\x20execution\x20host','18vBocLI','legacyCompatOnly'];a89_0x437d=function(){return _0x2bc66d;};return a89_0x437d();}export function isLegacyCompatConfigKey(_0x44e51f){const _0x21e4e5=a89_0x57d968;return getConfigFieldSchema(_0x44e51f)?.[_0x21e4e5(0x13e)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x253be1){const _0x6e8518=a89_0x57d968;return[..._0x253be1][_0x6e8518(0x13f)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}function a89_0x2169(_0x1899d5,_0x16d20e){_0x1899d5=_0x1899d5-0x11a;const _0x437d03=a89_0x437d();let _0x216988=_0x437d03[_0x1899d5];return _0x216988;}export function buildAppProfileListFields(_0xd0f938){return{'env':_0xd0f938,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- const a90_0x3a0f50=a90_0x4710;function a90_0x4710(_0x3e5702,_0x1bc917){_0x3e5702=_0x3e5702-0x12d;const _0x129bf0=a90_0x129b();let _0x471040=_0x129bf0[_0x3e5702];return _0x471040;}function a90_0x129b(){const _0x23b5b6=['1jUAgvN','UNPUBLISH','496728ofAATU','985538PFchDK','4012866jDsJQq','Published','PUBLISHED','61888ezBUnu','919350HznGAu','2013930sRXuaH','231UrODMW','1684476fwqOYi'];a90_0x129b=function(){return _0x23b5b6;};return a90_0x129b();}(function(_0x35f7af,_0x41912f){const _0xfdc6cf=a90_0x4710,_0x385c89=_0x35f7af();while(!![]){try{const _0x5032fa=-parseInt(_0xfdc6cf(0x138))/0x1*(parseInt(_0xfdc6cf(0x12f))/0x2)+parseInt(_0xfdc6cf(0x134))/0x3+parseInt(_0xfdc6cf(0x12e))/0x4+parseInt(_0xfdc6cf(0x135))/0x5+-parseInt(_0xfdc6cf(0x137))/0x6+parseInt(_0xfdc6cf(0x136))/0x7*(-parseInt(_0xfdc6cf(0x133))/0x8)+parseInt(_0xfdc6cf(0x130))/0x9;if(_0x5032fa===_0x41912f)break;else _0x385c89['push'](_0x385c89['shift']());}catch(_0x4c3db4){_0x385c89['push'](_0x385c89['shift']());}}}(a90_0x129b,0x3d279));export const APP_PUBLISH_STATUS={'Published':a90_0x3a0f50(0x132),'Unpublished':a90_0x3a0f50(0x12d)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a90_0x3a0f50(0x131)];
1
+ function a90_0x4c17(_0x59975e,_0x23f189){_0x59975e=_0x59975e-0x1ca;const _0x18a7a7=a90_0x18a7();let _0x4c1744=_0x18a7a7[_0x59975e];return _0x4c1744;}const a90_0x1110ba=a90_0x4c17;(function(_0x2e1272,_0x17f0f3){const _0x42046f=a90_0x4c17,_0x7aff9e=_0x2e1272();while(!![]){try{const _0x3bdab5=parseInt(_0x42046f(0x1d2))/0x1+-parseInt(_0x42046f(0x1cd))/0x2*(-parseInt(_0x42046f(0x1cb))/0x3)+parseInt(_0x42046f(0x1d3))/0x4*(parseInt(_0x42046f(0x1d0))/0x5)+-parseInt(_0x42046f(0x1ce))/0x6*(-parseInt(_0x42046f(0x1d5))/0x7)+parseInt(_0x42046f(0x1cc))/0x8+-parseInt(_0x42046f(0x1cf))/0x9+-parseInt(_0x42046f(0x1ca))/0xa;if(_0x3bdab5===_0x17f0f3)break;else _0x7aff9e['push'](_0x7aff9e['shift']());}catch(_0x57dcd5){_0x7aff9e['push'](_0x7aff9e['shift']());}}}(a90_0x18a7,0xe7dea));export const APP_PUBLISH_STATUS={'Published':a90_0x1110ba(0x1d1),'Unpublished':a90_0x1110ba(0x1d4)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a90_0x1110ba(0x1d6)];function a90_0x18a7(){const _0x5bb44b=['14PkveNE','492138KfvgxZ','15421050cGLetM','5107730mvAxHn','PUBLISHED','75703nyVDve','4ZtYMKO','UNPUBLISH','126FoIXBn','Published','14968230WCaphN','639186FHPUTL','759312HtXxuk'];a90_0x18a7=function(){return _0x5bb44b;};return a90_0x18a7();}
@@ -1 +1 @@
1
- const a91_0x4731e4=a91_0x1151;function a91_0x1151(_0x3b88f2,_0x478de0){_0x3b88f2=_0x3b88f2-0x13f;const _0x41d82d=a91_0x41d8();let _0x11517d=_0x41d82d[_0x3b88f2];return _0x11517d;}function a91_0x41d8(){const _0x515d69=['13252jgDGrS','15448xPmMAr','446211JQlwUJ','10wWuIpJ','2iGaQlx','client-ak','2509551NtePbQ','1873296xllIUG','313751dMWINb','707IxeihQ','455msDfJJ','428481ZxtcgO'];a91_0x41d8=function(){return _0x515d69;};return a91_0x41d8();}(function(_0x40856a,_0x592ad3){const _0x60315d=a91_0x1151,_0x1cbcc7=_0x40856a();while(!![]){try{const _0x1c705f=-parseInt(_0x60315d(0x148))/0x1+parseInt(_0x60315d(0x144))/0x2*(-parseInt(_0x60315d(0x13f))/0x3)+-parseInt(_0x60315d(0x140))/0x4*(-parseInt(_0x60315d(0x14a))/0x5)+parseInt(_0x60315d(0x147))/0x6+parseInt(_0x60315d(0x149))/0x7*(parseInt(_0x60315d(0x141))/0x8)+-parseInt(_0x60315d(0x142))/0x9*(-parseInt(_0x60315d(0x143))/0xa)+-parseInt(_0x60315d(0x146))/0xb;if(_0x1c705f===_0x592ad3)break;else _0x1cbcc7['push'](_0x1cbcc7['shift']());}catch(_0x19d71f){_0x1cbcc7['push'](_0x1cbcc7['shift']());}}}(a91_0x41d8,0x2a616));export const AUTH_MODE={'ClientAk':a91_0x4731e4(0x145)};export function isAuthMode(_0xb5845){return _0xb5845===AUTH_MODE['ClientAk'];}
1
+ (function(_0x5203da,_0x5908a2){const _0x8f937d=a91_0x268a,_0x4eb212=_0x5203da();while(!![]){try{const _0x2e0cc4=parseInt(_0x8f937d(0x75))/0x1+-parseInt(_0x8f937d(0x74))/0x2+-parseInt(_0x8f937d(0x71))/0x3*(-parseInt(_0x8f937d(0x78))/0x4)+parseInt(_0x8f937d(0x77))/0x5*(-parseInt(_0x8f937d(0x73))/0x6)+-parseInt(_0x8f937d(0x7a))/0x7+parseInt(_0x8f937d(0x79))/0x8*(parseInt(_0x8f937d(0x76))/0x9)+parseInt(_0x8f937d(0x72))/0xa;if(_0x2e0cc4===_0x5908a2)break;else _0x4eb212['push'](_0x4eb212['shift']());}catch(_0x3172c3){_0x4eb212['push'](_0x4eb212['shift']());}}}(a91_0x4804,0x285f2));export const AUTH_MODE={'ClientAk':'client-ak'};function a91_0x268a(_0x6d4d6f,_0x20b56e){_0x6d4d6f=_0x6d4d6f-0x71;const _0x480427=a91_0x4804();let _0x268a77=_0x480427[_0x6d4d6f];return _0x268a77;}export function isAuthMode(_0x171fb9){const _0x4f85d8=a91_0x268a;return _0x171fb9===AUTH_MODE[_0x4f85d8(0x7b)];}function a91_0x4804(){const _0x248986=['51eTkzUI','3252970kNXKpa','18FRxPhD','107326gCMsoa','10317yVPWbe','44703pLrzVD','142645MtAkSf','44440vpJeiw','160abadWk','2234484yHNOeG','ClientAk'];a91_0x4804=function(){return _0x248986;};return a91_0x4804();}
@@ -1 +1 @@
1
- const a92_0x2b3ccd=a92_0x30b7;(function(_0x4d1b19,_0x3d4cc1){const _0x5da8df=a92_0x30b7,_0x1f1fde=_0x4d1b19();while(!![]){try{const _0x18c033=parseInt(_0x5da8df(0x151))/0x1*(parseInt(_0x5da8df(0x13c))/0x2)+-parseInt(_0x5da8df(0x14a))/0x3*(-parseInt(_0x5da8df(0x145))/0x4)+parseInt(_0x5da8df(0x140))/0x5+-parseInt(_0x5da8df(0x152))/0x6+parseInt(_0x5da8df(0x144))/0x7*(-parseInt(_0x5da8df(0x126))/0x8)+-parseInt(_0x5da8df(0x14e))/0x9*(-parseInt(_0x5da8df(0x146))/0xa)+parseInt(_0x5da8df(0x129))/0xb;if(_0x18c033===_0x3d4cc1)break;else _0x1f1fde['push'](_0x1f1fde['shift']());}catch(_0x5770b4){_0x1f1fde['push'](_0x1f1fde['shift']());}}}(a92_0x2339,0x54efe));import{PRODUCT_CONFIG}from'../constant/product.js';function a92_0x30b7(_0x5e6f95,_0x747d48){_0x5e6f95=_0x5e6f95-0x125;const _0x23390d=a92_0x2339();let _0x30b74b=_0x23390d[_0x5e6f95];return _0x30b74b;}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a92_0x2b3ccd(0x13d)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a92_0x2339(){const _0x3f8764=['verbose','Environment','1460900oVsgwF','json\x20|\x20pretty\x20|\x20compress','boolean','Override\x20appcode','7kQGkNj','136156YkMGGN','908600sioCDz','Use\x20global\x20config\x20scope','Record\x20ID','yes','3wWOUvf','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','meowKey','<name>','18AqMbQE','Show\x20help','clear','277lazRTT','3498306iJEWyz','Preview\x20operation\x20without\x20executing','string','4019912YylVlM','format','nonInteractive','9513240EYiCem','map','help','<code>','Clear\x20output','Skip\x20confirmation\x20for\x20high-risk\x20writes','name','params','dry-run','sqlcode','type','app','dryRun','production\x20|\x20development\x20|\x20daily','global','appcode','env','Name\x20filter','<expr>','438kPuZbn','cliDisplayName'];a92_0x2339=function(){return _0x3f8764;};return a92_0x2339();}export const GLOBAL_FLAGS=[{'name':a92_0x2b3ccd(0x138),'meowKey':'appcode','type':'string','description':a92_0x2b3ccd(0x143),'hint':a92_0x2b3ccd(0x12c)},{'name':'app','meowKey':a92_0x2b3ccd(0x134),'type':a92_0x2b3ccd(0x125),'description':'Select\x20app\x20profile\x20by\x20name','hint':a92_0x2b3ccd(0x14d)},{'name':'env','meowKey':a92_0x2b3ccd(0x139),'type':a92_0x2b3ccd(0x125),'description':a92_0x2b3ccd(0x13f),'hint':a92_0x2b3ccd(0x136)},{'name':a92_0x2b3ccd(0x127),'meowKey':a92_0x2b3ccd(0x127),'type':a92_0x2b3ccd(0x125),'description':'Output\x20format','hint':a92_0x2b3ccd(0x141)},{'name':'jq','meowKey':'jq','type':a92_0x2b3ccd(0x125),'description':a92_0x2b3ccd(0x14b),'hint':a92_0x2b3ccd(0x13b)},{'name':a92_0x2b3ccd(0x131),'meowKey':a92_0x2b3ccd(0x135),'type':a92_0x2b3ccd(0x142),'description':a92_0x2b3ccd(0x153)},{'name':'yes','meowKey':a92_0x2b3ccd(0x149),'type':a92_0x2b3ccd(0x142),'description':a92_0x2b3ccd(0x12e)},{'name':'non-interactive','meowKey':a92_0x2b3ccd(0x128),'type':a92_0x2b3ccd(0x142),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a92_0x2b3ccd(0x137),'meowKey':a92_0x2b3ccd(0x137),'type':a92_0x2b3ccd(0x142),'description':a92_0x2b3ccd(0x147)},{'name':'ci','meowKey':'ci','type':a92_0x2b3ccd(0x142),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a92_0x2b3ccd(0x12b),'meowKey':a92_0x2b3ccd(0x12b),'type':a92_0x2b3ccd(0x142),'description':a92_0x2b3ccd(0x14f)},{'name':'id','meowKey':'id','type':a92_0x2b3ccd(0x125),'description':a92_0x2b3ccd(0x148),'hidden':!![]},{'name':a92_0x2b3ccd(0x12f),'meowKey':a92_0x2b3ccd(0x12f),'type':a92_0x2b3ccd(0x125),'description':a92_0x2b3ccd(0x13a),'hidden':!![]},{'name':a92_0x2b3ccd(0x132),'meowKey':a92_0x2b3ccd(0x132),'type':a92_0x2b3ccd(0x125),'description':'SQL\x20query\x20code','hidden':!![]},{'name':'params','meowKey':a92_0x2b3ccd(0x130),'type':a92_0x2b3ccd(0x125),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':'verbose','meowKey':a92_0x2b3ccd(0x13e),'type':a92_0x2b3ccd(0x142),'description':'Verbose\x20output','hidden':!![]},{'name':'clear','meowKey':a92_0x2b3ccd(0x150),'type':a92_0x2b3ccd(0x142),'description':a92_0x2b3ccd(0x12d),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a92_0x2b3ccd(0x138),'app','env',a92_0x2b3ccd(0x127),'jq',a92_0x2b3ccd(0x131),'yes','non-interactive','ci']);export function buildMeowFlags(){const _0x31766c=a92_0x2b3ccd;return Object['fromEntries'](GLOBAL_FLAGS[_0x31766c(0x12a)](_0x4c8b66=>[_0x4c8b66[_0x31766c(0x14c)],{'type':_0x4c8b66[_0x31766c(0x133)]}]));}
1
+ const a92_0x54c82b=a92_0x1874;(function(_0x1c23d2,_0x5f1e81){const _0x35db90=a92_0x1874,_0x44f4a8=_0x1c23d2();while(!![]){try{const _0x5444be=parseInt(_0x35db90(0x105))/0x1*(-parseInt(_0x35db90(0x11b))/0x2)+parseInt(_0x35db90(0x11a))/0x3+-parseInt(_0x35db90(0x100))/0x4*(parseInt(_0x35db90(0xfb))/0x5)+parseInt(_0x35db90(0x121))/0x6+-parseInt(_0x35db90(0xfa))/0x7+parseInt(_0x35db90(0x11f))/0x8+-parseInt(_0x35db90(0x104))/0x9*(parseInt(_0x35db90(0x114))/0xa);if(_0x5444be===_0x5f1e81)break;else _0x44f4a8['push'](_0x44f4a8['shift']());}catch(_0x55c995){_0x44f4a8['push'](_0x44f4a8['shift']());}}}(a92_0x3776,0xef989));import{PRODUCT_CONFIG}from'../constant/product.js';function a92_0x1874(_0x104d5b,_0x30284a){_0x104d5b=_0x104d5b-0xf9;const _0x377677=a92_0x3776();let _0x1874f0=_0x377677[_0x104d5b];return _0x1874f0;}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a92_0x54c82b(0xfd)];function a92_0x3776(){const _0x456517=['<name>','type','yes','clear','boolean','3395580pzGmPT','4jVgiEg','non-interactive','meowKey','string','1189512BtPJZH','appcode','11270250nyRjUp','Override\x20appcode','format','SQL\x20query\x20code','dry-run','Record\x20ID','5449556FiaqOZ','40PWqZkR','production\x20|\x20development\x20|\x20daily','cliBinName','verbose','params','270128MmKWVs','Preview\x20operation\x20without\x20executing','Name\x20filter','JSON\x20params\x20for\x20execute\x20commands','9eZAdfM','84358LUZRal','Skip\x20confirmation\x20for\x20high-risk\x20writes','<code>','json\x20|\x20pretty\x20|\x20compress','Force\x20non-interactive\x20mode\x20(CI)','cliDisplayName','env','fromEntries','global','name','<expr>','app','nonInteractive','Alias\x20for\x20--non-interactive','help','6900590ZoTTEI'];a92_0x3776=function(){return _0x456517;};return a92_0x3776();}export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a92_0x54c82b(0x10a)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a92_0x54c82b(0x120),'meowKey':a92_0x54c82b(0x120),'type':a92_0x54c82b(0x11e),'description':a92_0x54c82b(0x122),'hint':a92_0x54c82b(0x107)},{'name':'app','meowKey':a92_0x54c82b(0x110),'type':a92_0x54c82b(0x11e),'description':'Select\x20app\x20profile\x20by\x20name','hint':a92_0x54c82b(0x115)},{'name':a92_0x54c82b(0x10b),'meowKey':a92_0x54c82b(0x10b),'type':a92_0x54c82b(0x11e),'description':'Environment','hint':a92_0x54c82b(0xfc)},{'name':'format','meowKey':a92_0x54c82b(0x123),'type':'string','description':'Output\x20format','hint':a92_0x54c82b(0x108)},{'name':'jq','meowKey':'jq','type':'string','description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a92_0x54c82b(0x10f)},{'name':a92_0x54c82b(0x125),'meowKey':'dryRun','type':a92_0x54c82b(0x119),'description':a92_0x54c82b(0x101)},{'name':'yes','meowKey':a92_0x54c82b(0x117),'type':a92_0x54c82b(0x119),'description':a92_0x54c82b(0x106)},{'name':a92_0x54c82b(0x11c),'meowKey':a92_0x54c82b(0x111),'type':a92_0x54c82b(0x119),'description':a92_0x54c82b(0x109)},{'name':'global','meowKey':a92_0x54c82b(0x10d),'type':a92_0x54c82b(0x119),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a92_0x54c82b(0x119),'description':a92_0x54c82b(0x112),'hidden':!![]},{'name':'help','meowKey':a92_0x54c82b(0x113),'type':a92_0x54c82b(0x119),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':'string','description':a92_0x54c82b(0xf9),'hidden':!![]},{'name':'name','meowKey':a92_0x54c82b(0x10e),'type':a92_0x54c82b(0x11e),'description':a92_0x54c82b(0x102),'hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a92_0x54c82b(0x11e),'description':a92_0x54c82b(0x124),'hidden':!![]},{'name':a92_0x54c82b(0xff),'meowKey':a92_0x54c82b(0xff),'type':a92_0x54c82b(0x11e),'description':a92_0x54c82b(0x103),'hidden':!![]},{'name':a92_0x54c82b(0xfe),'meowKey':a92_0x54c82b(0xfe),'type':a92_0x54c82b(0x119),'description':'Verbose\x20output','hidden':!![]},{'name':'clear','meowKey':a92_0x54c82b(0x118),'type':a92_0x54c82b(0x119),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a92_0x54c82b(0x120),a92_0x54c82b(0x110),a92_0x54c82b(0x10b),a92_0x54c82b(0x123),'jq',a92_0x54c82b(0x125),a92_0x54c82b(0x117),'non-interactive','ci']);export function buildMeowFlags(){const _0x3e564c=a92_0x54c82b;return Object[_0x3e564c(0x10c)](GLOBAL_FLAGS['map'](_0x50c34e=>[_0x50c34e[_0x3e564c(0x11d)],{'type':_0x50c34e[_0x3e564c(0x116)]}]));}
@@ -1 +1 @@
1
- const a93_0x4ea923=a93_0x4f85;(function(_0x246ae8,_0x47aae8){const _0x57aeca=a93_0x4f85,_0x3689f8=_0x246ae8();while(!![]){try{const _0xf0336=-parseInt(_0x57aeca(0x79))/0x1+-parseInt(_0x57aeca(0x74))/0x2+-parseInt(_0x57aeca(0x7a))/0x3*(-parseInt(_0x57aeca(0x78))/0x4)+-parseInt(_0x57aeca(0x73))/0x5+parseInt(_0x57aeca(0x71))/0x6+parseInt(_0x57aeca(0x76))/0x7*(parseInt(_0x57aeca(0x70))/0x8)+parseInt(_0x57aeca(0x6e))/0x9;if(_0xf0336===_0x47aae8)break;else _0x3689f8['push'](_0x3689f8['shift']());}catch(_0x39f5fe){_0x3689f8['push'](_0x3689f8['shift']());}}}(a93_0x45ca,0xb8bf2));export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':a93_0x4ea923(0x6f),'format':a93_0x4ea923(0x72),'locale':a93_0x4ea923(0x75),'riskLevel':a93_0x4ea923(0x77)};function a93_0x4f85(_0x269132,_0x171b0d){_0x269132=_0x269132-0x6e;const _0x45ca60=a93_0x45ca();let _0x4f8508=_0x45ca60[_0x269132];return _0x4f8508;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a93_0x4ea923(0x72);function a93_0x45ca(){const _0x5a755f=['14iNliHG','write','74680wkBmyu','1013255CLKCmN','51itWIyz','9897039wbRTRF','production','1344104vJEZzQ','4233204NfmrZk','compress','1179330hbLkvW','905556jgGUNQ','en-US'];a93_0x45ca=function(){return _0x5a755f;};return a93_0x45ca();}
1
+ function a93_0x378e(_0x4816d4,_0x260901){_0x4816d4=_0x4816d4-0x12e;const _0x1c849a=a93_0x1c84();let _0x378e61=_0x1c849a[_0x4816d4];return _0x378e61;}const a93_0x4b25a9=a93_0x378e;(function(_0x2da208,_0x91b965){const _0x2a067f=a93_0x378e,_0x4f220c=_0x2da208();while(!![]){try{const _0x3e6596=-parseInt(_0x2a067f(0x131))/0x1*(-parseInt(_0x2a067f(0x135))/0x2)+-parseInt(_0x2a067f(0x13a))/0x3*(-parseInt(_0x2a067f(0x13c))/0x4)+-parseInt(_0x2a067f(0x134))/0x5*(-parseInt(_0x2a067f(0x12f))/0x6)+-parseInt(_0x2a067f(0x139))/0x7*(-parseInt(_0x2a067f(0x133))/0x8)+parseInt(_0x2a067f(0x130))/0x9+-parseInt(_0x2a067f(0x13b))/0xa+-parseInt(_0x2a067f(0x12e))/0xb;if(_0x3e6596===_0x91b965)break;else _0x4f220c['push'](_0x4f220c['shift']());}catch(_0x1a0f45){_0x4f220c['push'](_0x4f220c['shift']());}}}(a93_0x1c84,0xd2b62));export const DEFAULT_APP_PROFILE_NAME=a93_0x4b25a9(0x132);export const DEFAULT_CONFIG_VALUES={'env':a93_0x4b25a9(0x137),'format':'compress','locale':a93_0x4b25a9(0x136),'riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a93_0x4b25a9(0x138);function a93_0x1c84(){const _0x2efc33=['27879DZCSpg','15937580sPVsyI','192aFQfWO','28008409rQJKyP','2550ZnOUwB','9771660uGKSzI','151ghWGAK','main','352ZrBGaY','8925gjFHZf','19492TNCiDN','en-US','production','compress','197428rqlqqa'];a93_0x1c84=function(){return _0x2efc33;};return a93_0x1c84();}
@@ -1 +1 @@
1
- const a94_0x349a21=a94_0x27eb;(function(_0x31d0a7,_0x5bef09){const _0x40659e=a94_0x27eb,_0x3c42c0=_0x31d0a7();while(!![]){try{const _0xc0341f=parseInt(_0x40659e(0x18e))/0x1+-parseInt(_0x40659e(0x186))/0x2+parseInt(_0x40659e(0x18b))/0x3*(parseInt(_0x40659e(0x18a))/0x4)+parseInt(_0x40659e(0x184))/0x5+parseInt(_0x40659e(0x182))/0x6+-parseInt(_0x40659e(0x180))/0x7*(-parseInt(_0x40659e(0x18d))/0x8)+-parseInt(_0x40659e(0x181))/0x9*(parseInt(_0x40659e(0x188))/0xa);if(_0xc0341f===_0x5bef09)break;else _0x3c42c0['push'](_0x3c42c0['shift']());}catch(_0x3f7dd0){_0x3c42c0['push'](_0x3c42c0['shift']());}}}(a94_0x450b,0xd9f59));import{PRODUCT_CONFIG}from'../constant/product.js';function a94_0x27eb(_0x3d344f,_0x4325c8){_0x3d344f=_0x3d344f-0x180;const _0x450b13=a94_0x450b();let _0x27ebe3=_0x450b13[_0x3d344f];return _0x27ebe3;}function a94_0x450b(){const _0x58db00=['406020ThrKOQ','177618SdNOzR','36YASTwe','2842992UISbuh','npmRegistryBaseUrl','1613025lDVbJS','npmPackageName','444354kmZhCu','/dist/lovrabet-cli/config/index.json','6384610fsiZZo','skillSource','4JvnNxv','4506339vppDOw','cliCdnBaseUrl','304CwPfcR'];a94_0x450b=function(){return _0x58db00;};return a94_0x450b();}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a94_0x349a21(0x185)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a94_0x349a21(0x189)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a94_0x349a21(0x183)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a94_0x349a21(0x18c)];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a94_0x349a21(0x187);
1
+ const a94_0x2d201b=a94_0x2939;(function(_0x47fc02,_0x4d74c1){const _0x3d1619=a94_0x2939,_0x734fa1=_0x47fc02();while(!![]){try{const _0x5d4afc=-parseInt(_0x3d1619(0xb3))/0x1+parseInt(_0x3d1619(0xa9))/0x2*(-parseInt(_0x3d1619(0xaa))/0x3)+-parseInt(_0x3d1619(0xb6))/0x4+parseInt(_0x3d1619(0xa8))/0x5*(-parseInt(_0x3d1619(0xb7))/0x6)+-parseInt(_0x3d1619(0xb1))/0x7*(-parseInt(_0x3d1619(0xb4))/0x8)+parseInt(_0x3d1619(0xb5))/0x9*(parseInt(_0x3d1619(0xaf))/0xa)+parseInt(_0x3d1619(0xad))/0xb;if(_0x5d4afc===_0x4d74c1)break;else _0x734fa1['push'](_0x734fa1['shift']());}catch(_0x4115ec){_0x734fa1['push'](_0x734fa1['shift']());}}}(a94_0x5b5a,0x77222));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a94_0x2d201b(0xb0)];function a94_0x5b5a(){const _0x4cf002=['npmPackageName','13517cbjwCY','/dist/lovrabet-cli/config/index.json','838500fvIOwX','2776BlZpHP','3005523cOROJd','1081868QuMlew','102PRZAFS','199345uFwruZ','303988RFIbtR','6TfBkgO','skillSource','npmRegistryBaseUrl','17321634dOAfQv','cliCdnBaseUrl','10kokROQ'];a94_0x5b5a=function(){return _0x4cf002;};return a94_0x5b5a();}function a94_0x2939(_0x242ba3,_0x28bb34){_0x242ba3=_0x242ba3-0xa8;const _0x5b5a96=a94_0x5b5a();let _0x2939e8=_0x5b5a96[_0x242ba3];return _0x2939e8;}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a94_0x2d201b(0xab)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a94_0x2d201b(0xac)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a94_0x2d201b(0xae)];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a94_0x2d201b(0xb2);
@@ -1 +1 @@
1
- const a95_0x22ec9d=a95_0x5b0c;(function(_0x5ac5c8,_0x42e67a){const _0x229caa=a95_0x5b0c,_0x424530=_0x5ac5c8();while(!![]){try{const _0x59108e=-parseInt(_0x229caa(0x196))/0x1*(-parseInt(_0x229caa(0x194))/0x2)+-parseInt(_0x229caa(0x197))/0x3+parseInt(_0x229caa(0x192))/0x4*(parseInt(_0x229caa(0x189))/0x5)+parseInt(_0x229caa(0x193))/0x6+parseInt(_0x229caa(0x199))/0x7+parseInt(_0x229caa(0x190))/0x8*(-parseInt(_0x229caa(0x18d))/0x9)+-parseInt(_0x229caa(0x191))/0xa*(parseInt(_0x229caa(0x18c))/0xb);if(_0x59108e===_0x42e67a)break;else _0x424530['push'](_0x424530['shift']());}catch(_0x5e79d6){_0x424530['push'](_0x424530['shift']());}}}(a95_0x5dc4,0xe8e39));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';function a95_0x5dc4(){const _0x9ebc40=['12810007AQnGZj','api','4535325gPorRL','region','nonProduction','9647HpKOOz','27Ifrkol','runtimeDomain','user','4206832VWgmHq','21550JnANKF','4jRkwdx','5600490qKGaNp','56454ZzpCTo','runtime','29aFOuUJ','202962IEfatg','skillDomain'];a95_0x5dc4=function(){return _0x9ebc40;};return a95_0x5dc4();}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x429638){const _0x5b08a8=a95_0x5b0c;customApiDomain=_0x429638?.['apiDomain'],customUserDomain=_0x429638?.['userDomain'],customRuntimeDomain=_0x429638?.[_0x5b08a8(0x18e)],customSkillDomain=_0x429638?.[_0x5b08a8(0x198)],customKbDomain=_0x429638?.['kbDomain'],activeRegion=_0x429638?.[_0x5b08a8(0x18a)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>PRODUCT_CONFIG['regionDomains'][activeRegion][isProduction(getEnv())?'production':a95_0x22ec9d(0x18b)];export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a95_0x22ec9d(0x18f)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a95_0x22ec9d(0x188)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a95_0x22ec9d(0x195)];function a95_0x5b0c(_0x1ac13b,_0x4b758b){_0x1ac13b=_0x1ac13b-0x188;const _0x5dc4db=a95_0x5dc4();let _0x5b0cba=_0x5dc4db[_0x1ac13b];return _0x5b0cba;}export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbDomain=()=>customKbDomain||getActiveRegionDomains()['kb'];
1
+ function a95_0x4f1f(){const _0x48e2e6=['runtime','apiDomain','18936050HGFupT','3018KlfApS','16457ZReWwX','6185735UxeUqF','production','14070060GwJJCB','api','2keewrn','regionDomains','userDomain','4Auxulr','2089251yebxPZ','nonProduction','kbDomain','1677176FIoiEw','13879344qiNSgb'];a95_0x4f1f=function(){return _0x48e2e6;};return a95_0x4f1f();}const a95_0x5a5705=a95_0x1787;function a95_0x1787(_0x4cf876,_0x119b16){_0x4cf876=_0x4cf876-0x7e;const _0x4f1fd8=a95_0x4f1f();let _0x17878a=_0x4f1fd8[_0x4cf876];return _0x17878a;}(function(_0x4e8523,_0x3e12bf){const _0x1f603f=a95_0x1787,_0x8cf055=_0x4e8523();while(!![]){try{const _0x5e2a39=-parseInt(_0x1f603f(0x8f))/0x1*(-parseInt(_0x1f603f(0x88))/0x2)+parseInt(_0x1f603f(0x8c))/0x3*(parseInt(_0x1f603f(0x8b))/0x4)+-parseInt(_0x1f603f(0x84))/0x5+-parseInt(_0x1f603f(0x82))/0x6*(-parseInt(_0x1f603f(0x83))/0x7)+-parseInt(_0x1f603f(0x7e))/0x8+-parseInt(_0x1f603f(0x86))/0x9+parseInt(_0x1f603f(0x81))/0xa;if(_0x5e2a39===_0x3e12bf)break;else _0x8cf055['push'](_0x8cf055['shift']());}catch(_0x3d0b2c){_0x8cf055['push'](_0x8cf055['shift']());}}}(a95_0x4f1f,0xdf3aa));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x4ed887){const _0x558581=a95_0x1787;customApiDomain=_0x4ed887?.[_0x558581(0x80)],customUserDomain=_0x4ed887?.[_0x558581(0x8a)],customRuntimeDomain=_0x4ed887?.['runtimeDomain'],customSkillDomain=_0x4ed887?.['skillDomain'],customKbDomain=_0x4ed887?.[_0x558581(0x8e)],activeRegion=_0x4ed887?.['region']??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>PRODUCT_CONFIG[a95_0x5a5705(0x89)][activeRegion][isProduction(getEnv())?a95_0x5a5705(0x85):a95_0x5a5705(0x8d)];export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()['user'];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a95_0x5a5705(0x87)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a95_0x5a5705(0x7f)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbDomain=()=>customKbDomain||getActiveRegionDomains()['kb'];
@@ -1 +1 @@
1
- const a96_0x43213f=a96_0x2f4b;(function(_0x11272d,_0x38fbdc){const _0x381754=a96_0x2f4b,_0x3ce394=_0x11272d();while(!![]){try{const _0x14b55d=parseInt(_0x381754(0x166))/0x1+parseInt(_0x381754(0x169))/0x2+-parseInt(_0x381754(0x16d))/0x3*(parseInt(_0x381754(0x161))/0x4)+parseInt(_0x381754(0x16a))/0x5*(-parseInt(_0x381754(0x164))/0x6)+parseInt(_0x381754(0x160))/0x7+-parseInt(_0x381754(0x16f))/0x8*(parseInt(_0x381754(0x163))/0x9)+parseInt(_0x381754(0x16b))/0xa;if(_0x14b55d===_0x38fbdc)break;else _0x3ce394['push'](_0x3ce394['shift']());}catch(_0x284892){_0x3ce394['push'](_0x3ce394['shift']());}}}(a96_0x31e8,0x5babe));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a96_0x43213f(0x162),a96_0x43213f(0x167),'daily'];export function normalizeEnv(_0x509381){const _0x6362b6=a96_0x43213f;return _0x509381===_0x6362b6(0x165)?_0x6362b6(0x162):_0x509381;}export function isProduction(_0x3f1446){const _0x13e67c=a96_0x43213f;return normalizeEnv(_0x3f1446)===_0x13e67c(0x162);}export function isDaily(_0x3188d3){const _0xc1876a=a96_0x43213f;return normalizeEnv(_0x3188d3)===_0xc1876a(0x16c);}export function isDev(_0xfc0063){const _0x1a0cc4=a96_0x43213f,_0x2ad5a0=normalizeEnv(_0xfc0063);return _0x2ad5a0==='development'||_0x2ad5a0===_0x1a0cc4(0x168);}let env=normalizeEnv(productEnv(a96_0x43213f(0x16e))||a96_0x43213f(0x162));export function getEnv(){return env;}function a96_0x31e8(){const _0x36babe=['710585zSZDac','4765200AnOFhb','daily','1770ryEgOT','ENV','10136rCBBrE','5006547KiQMPC','680PsjsHH','production','1791rghbEC','30OuSQpt','online','114930YIPiWp','development','dev','263666DBhpCy'];a96_0x31e8=function(){return _0x36babe;};return a96_0x31e8();}function a96_0x2f4b(_0x306934,_0x1b0da7){_0x306934=_0x306934-0x160;const _0x31e8e2=a96_0x31e8();let _0x2f4bac=_0x31e8e2[_0x306934];return _0x2f4bac;}export function initEnv(_0x44a0ed){env=normalizeEnv(_0x44a0ed);}
1
+ const a96_0x14ccbb=a96_0xfb73;(function(_0x289a6b,_0x14d69a){const _0x1484be=a96_0xfb73,_0x5dbcb2=_0x289a6b();while(!![]){try{const _0xa8412c=parseInt(_0x1484be(0x13d))/0x1*(parseInt(_0x1484be(0x137))/0x2)+parseInt(_0x1484be(0x13a))/0x3*(-parseInt(_0x1484be(0x139))/0x4)+parseInt(_0x1484be(0x141))/0x5+-parseInt(_0x1484be(0x138))/0x6*(parseInt(_0x1484be(0x140))/0x7)+-parseInt(_0x1484be(0x142))/0x8*(-parseInt(_0x1484be(0x13f))/0x9)+parseInt(_0x1484be(0x13b))/0xa*(parseInt(_0x1484be(0x145))/0xb)+-parseInt(_0x1484be(0x135))/0xc*(-parseInt(_0x1484be(0x136))/0xd);if(_0xa8412c===_0x14d69a)break;else _0x5dbcb2['push'](_0x5dbcb2['shift']());}catch(_0x23a9a7){_0x5dbcb2['push'](_0x5dbcb2['shift']());}}}(a96_0x25a7,0x27e5c));import{productEnv}from'../constant/product.js';function a96_0xfb73(_0x4e2b3f,_0x3d71b5){_0x4e2b3f=_0x4e2b3f-0x135;const _0x25a7c7=a96_0x25a7();let _0xfb731c=_0x25a7c7[_0x4e2b3f];return _0xfb731c;}export const RUNTIME_ENV_VALUES=['production',a96_0x14ccbb(0x144),a96_0x14ccbb(0x147)];export function normalizeEnv(_0x28b2d3){const _0x3807c3=a96_0x14ccbb;return _0x28b2d3===_0x3807c3(0x143)?_0x3807c3(0x13c):_0x28b2d3;}export function isProduction(_0x2da840){const _0x24de88=a96_0x14ccbb;return normalizeEnv(_0x2da840)===_0x24de88(0x13c);}export function isDaily(_0x531364){const _0x1c3d1d=a96_0x14ccbb;return normalizeEnv(_0x531364)===_0x1c3d1d(0x147);}function a96_0x25a7(){const _0xb6b1c2=['development','1034OUptGH','ENV','daily','132nCgEVG','82901nVdKfw','1252aXmCua','6BubKZY','3316BGSZfv','687cKazXJ','2260aktPJJ','production','312grEyCP','dev','1173303hVqsdl','697900oRgNGb','179455sCScfO','8APTgbg','online'];a96_0x25a7=function(){return _0xb6b1c2;};return a96_0x25a7();}export function isDev(_0x4102b1){const _0x52cca0=a96_0x14ccbb,_0x1b862c=normalizeEnv(_0x4102b1);return _0x1b862c===_0x52cca0(0x144)||_0x1b862c===_0x52cca0(0x13e);}let env=normalizeEnv(productEnv(a96_0x14ccbb(0x146))||a96_0x14ccbb(0x13c));export function getEnv(){return env;}export function initEnv(_0x1b4b4a){env=normalizeEnv(_0x1b4b4a);}
@@ -1 +1 @@
1
- const a97_0x163db2=a97_0x105a;(function(_0xb85c54,_0x335379){const _0x4a3d0e=a97_0x105a,_0x911aa8=_0xb85c54();while(!![]){try{const _0x2271a5=parseInt(_0x4a3d0e(0x1f3))/0x1*(-parseInt(_0x4a3d0e(0x1fb))/0x2)+-parseInt(_0x4a3d0e(0x1f1))/0x3*(parseInt(_0x4a3d0e(0x1fe))/0x4)+-parseInt(_0x4a3d0e(0x1f8))/0x5*(parseInt(_0x4a3d0e(0x1f5))/0x6)+-parseInt(_0x4a3d0e(0x1fa))/0x7+parseInt(_0x4a3d0e(0x1fc))/0x8*(-parseInt(_0x4a3d0e(0x1f4))/0x9)+-parseInt(_0x4a3d0e(0x1f0))/0xa*(parseInt(_0x4a3d0e(0x1f7))/0xb)+parseInt(_0x4a3d0e(0x1f6))/0xc*(parseInt(_0x4a3d0e(0x1f9))/0xd);if(_0x2271a5===_0x335379)break;else _0x911aa8['push'](_0x911aa8['shift']());}catch(_0x524ed5){_0x911aa8['push'](_0x911aa8['shift']());}}}(a97_0x562c,0xe76a2));function a97_0x105a(_0x470a84,_0x196980){_0x470a84=_0x470a84-0x1f0;const _0x562cb7=a97_0x562c();let _0x105a43=_0x562cb7[_0x470a84];return _0x105a43;}export const OUTPUT_FORMAT_VALUES=['json',a97_0x163db2(0x1f2),a97_0x163db2(0x1fd)];function a97_0x562c(){const _0x161205=['251NCwbDu','1341aSGyrT','6pyxLno','36eNTKYp','88UenZil','2917995ZWkEJU','21795982yABQOs','8018962GzKIqF','1424jzCJyh','18824zLKXFl','compress','24qRfshJ','1917260ZmCAwr','144843NgbnRy','pretty'];a97_0x562c=function(){return _0x161205;};return a97_0x562c();}
1
+ function a97_0x18a3(_0x4bbb05,_0x5ca527){_0x4bbb05=_0x4bbb05-0x65;const _0x5d71b9=a97_0x5d71();let _0x18a393=_0x5d71b9[_0x4bbb05];return _0x18a393;}const a97_0x35a51e=a97_0x18a3;function a97_0x5d71(){const _0x13c11d=['67420dKZBNV','1124255PdtvwI','735160Mfafvi','30289GYbdCg','965064LexLwY','5349rSegCR','22527sTMEeE','compress','472YSVqIT','226bEQPmB','1670NDRgAu'];a97_0x5d71=function(){return _0x13c11d;};return a97_0x5d71();}(function(_0x1a0e82,_0x292e90){const _0x522e35=a97_0x18a3,_0x595200=_0x1a0e82();while(!![]){try{const _0x116ef9=-parseInt(_0x522e35(0x6e))/0x1+-parseInt(_0x522e35(0x6c))/0x2*(parseInt(_0x522e35(0x68))/0x3)+-parseInt(_0x522e35(0x65))/0x4+-parseInt(_0x522e35(0x6f))/0x5+parseInt(_0x522e35(0x67))/0x6+parseInt(_0x522e35(0x66))/0x7*(parseInt(_0x522e35(0x6b))/0x8)+-parseInt(_0x522e35(0x69))/0x9*(-parseInt(_0x522e35(0x6d))/0xa);if(_0x116ef9===_0x292e90)break;else _0x595200['push'](_0x595200['shift']());}catch(_0x29fff8){_0x595200['push'](_0x595200['shift']());}}}(a97_0x5d71,0x263b6));export const OUTPUT_FORMAT_VALUES=['json','pretty',a97_0x35a51e(0x6a)];
@@ -1 +1 @@
1
- function a98_0x2c87(){const _0x4a024a=['https://skills.lovrabet.id','lovrabet','/user/ak','https://user.lovrabet.com','11565LimrnA','894714NTwRxl','LOVRABET','https://skills-daily.lovrabet.id','https://skills-daily.lovrabet.com','https://daily-runtime.lovrabet.id','https://g.lovrabet.com','.lovrabet','https://daily-api.lovrabet.com','2915316Glkkmy','https://user-daily.lovrabet.id','https://user.lovrabet.id','Lovrabet\x20Runtime\x20CLI','https://api.lovrabet.id','@lovrabet/lovrabet-cli','5634960NtiERk','SKIP_NPX_SKILLS','https://api.lovrabet.ai','lovrabet/lovrabet-cli','https://runtime.lovrabet.ai','26432HOVFqK','https://daily-api.lovrabet.ai','https://daily-runtime.lovrabet.ai','cli:lovrabet-runtime','https://user.lovrabet.ai','https://daily-runtime.lovrabet.com','legacyEnvPrefixes','.lovrabet.json','https://skills-daily.lovrabet.ai','795cQlgMx','2662961xWOmGR','envPrefix','https://registry.npmjs.org','5140kdYaWa','https://runtime.lovrabet.com','https://user-daily.lovrabet.ai','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','6070790bpjThs','Lovrabet\x20User\x20Center','https://runtime.lovrabet.id'];a98_0x2c87=function(){return _0x4a024a;};return a98_0x2c87();}function a98_0x57dc(_0x14265f,_0x408f77){_0x14265f=_0x14265f-0xa5;const _0x2c87bd=a98_0x2c87();let _0x57dc1c=_0x2c87bd[_0x14265f];return _0x57dc1c;}const a98_0xe90c5f=a98_0x57dc;(function(_0x319e8a,_0x39c0e1){const _0x8d45b1=a98_0x57dc,_0x4ff9bd=_0x319e8a();while(!![]){try{const _0x417265=parseInt(_0x8d45b1(0xc2))/0x1+parseInt(_0x8d45b1(0xca))/0x2+-parseInt(_0x8d45b1(0xb2))/0x3*(-parseInt(_0x8d45b1(0xb6))/0x4)+parseInt(_0x8d45b1(0xba))/0x5+parseInt(_0x8d45b1(0xd0))/0x6+parseInt(_0x8d45b1(0xb3))/0x7+-parseInt(_0x8d45b1(0xa9))/0x8*(parseInt(_0x8d45b1(0xc1))/0x9);if(_0x417265===_0x39c0e1)break;else _0x4ff9bd['push'](_0x4ff9bd['shift']());}catch(_0x64c4f3){_0x4ff9bd['push'](_0x4ff9bd['shift']());}}}(a98_0x2c87,0xef806));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a98_0xe90c5f(0xcd),'npmPackageName':a98_0xe90c5f(0xcf),'skillSource':a98_0xe90c5f(0xa7),'internalSkillSource':a98_0xe90c5f(0xb9),'globalSkillName':a98_0xe90c5f(0xbe),'npmRegistryBaseUrl':a98_0xe90c5f(0xb5),'cliCdnBaseUrl':a98_0xe90c5f(0xc7),'envPrefix':a98_0xe90c5f(0xc3),'legacyEnvPrefixes':['RABETBASE'],'configFileNames':['.lovrabet.json'],'newConfigFileName':a98_0xe90c5f(0xb0),'homeDirName':a98_0xe90c5f(0xc8),'logFileName':'.lovrabet-runtime.log','invokeSource':a98_0xe90c5f(0xac),'userCenterDisplayName':a98_0xe90c5f(0xbb),'skipNpxSkillsEnvSuffix':a98_0xe90c5f(0xa5),'regionDomains':{'cn':{'production':{'user':a98_0xe90c5f(0xc0),'api':'https://api.lovrabet.com','runtime':a98_0xe90c5f(0xb7),'skill':'https://skills.lovrabet.com','kb':a98_0xe90c5f(0xb7)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':a98_0xe90c5f(0xc9),'runtime':a98_0xe90c5f(0xae),'skill':a98_0xe90c5f(0xc5),'kb':a98_0xe90c5f(0xae)}},'id':{'production':{'user':a98_0xe90c5f(0xcc),'api':a98_0xe90c5f(0xce),'runtime':a98_0xe90c5f(0xbc),'skill':a98_0xe90c5f(0xbd),'kb':a98_0xe90c5f(0xbc)},'nonProduction':{'user':a98_0xe90c5f(0xcb),'api':'https://daily-api.lovrabet.id','runtime':'https://daily-runtime.lovrabet.id','skill':a98_0xe90c5f(0xc4),'kb':a98_0xe90c5f(0xc6)}},'global':{'production':{'user':a98_0xe90c5f(0xad),'api':a98_0xe90c5f(0xa6),'runtime':'https://runtime.lovrabet.ai','skill':'https://skills.lovrabet.ai','kb':a98_0xe90c5f(0xa8)},'nonProduction':{'user':a98_0xe90c5f(0xb8),'api':a98_0xe90c5f(0xaa),'runtime':a98_0xe90c5f(0xab),'skill':a98_0xe90c5f(0xb1),'kb':'https://daily-runtime.lovrabet.ai'}}},'accessKeyCreatePath':a98_0xe90c5f(0xbf)};export function productEnvName(_0x52c883){const _0x1f27fd=a98_0xe90c5f;return PRODUCT_CONFIG[_0x1f27fd(0xb4)]+'_'+_0x52c883;}export function productEnvNames(_0x3a412e){const _0x42e5c8=a98_0xe90c5f;return[productEnvName(_0x3a412e),...PRODUCT_CONFIG[_0x42e5c8(0xaf)]['map'](_0x49d077=>_0x49d077+'_'+_0x3a412e)];}export function productEnv(_0x2e20e3){for(const _0x50883b of productEnvNames(_0x2e20e3)){const _0x24f768=process.env[_0x50883b];if(_0x24f768!==undefined)return _0x24f768;}return undefined;}
1
+ const a98_0x2d7703=a98_0xf17e;(function(_0x2c2cac,_0x10f9a8){const _0x495822=a98_0xf17e,_0x52f14e=_0x2c2cac();while(!![]){try{const _0x49810c=parseInt(_0x495822(0x8d))/0x1*(-parseInt(_0x495822(0x8f))/0x2)+-parseInt(_0x495822(0x94))/0x3+parseInt(_0x495822(0xa6))/0x4*(parseInt(_0x495822(0xb0))/0x5)+parseInt(_0x495822(0x86))/0x6*(-parseInt(_0x495822(0xa2))/0x7)+-parseInt(_0x495822(0x83))/0x8*(-parseInt(_0x495822(0xa7))/0x9)+parseInt(_0x495822(0x9c))/0xa*(-parseInt(_0x495822(0x90))/0xb)+parseInt(_0x495822(0x8b))/0xc;if(_0x49810c===_0x10f9a8)break;else _0x52f14e['push'](_0x52f14e['shift']());}catch(_0x4a0721){_0x52f14e['push'](_0x52f14e['shift']());}}}(a98_0x4bd7,0x6f2a0));export const PRODUCT_CONFIG={'cliBinName':a98_0x2d7703(0xaa),'cliDisplayName':a98_0x2d7703(0xa8),'npmPackageName':a98_0x2d7703(0x88),'skillSource':a98_0x2d7703(0x9f),'internalSkillSource':'git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','globalSkillName':a98_0x2d7703(0xaa),'npmRegistryBaseUrl':a98_0x2d7703(0xa4),'cliCdnBaseUrl':a98_0x2d7703(0x96),'envPrefix':a98_0x2d7703(0x93),'legacyEnvPrefixes':[a98_0x2d7703(0xaf)],'configFileNames':[a98_0x2d7703(0x8a)],'newConfigFileName':a98_0x2d7703(0x8a),'homeDirName':a98_0x2d7703(0x89),'logFileName':a98_0x2d7703(0x8e),'invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a98_0x2d7703(0xa1),'skipNpxSkillsEnvSuffix':a98_0x2d7703(0xae),'regionDomains':{'cn':{'production':{'user':a98_0x2d7703(0xad),'api':'https://api.lovrabet.com','runtime':a98_0x2d7703(0x97),'skill':a98_0x2d7703(0x98),'kb':a98_0x2d7703(0x97)},'nonProduction':{'user':a98_0x2d7703(0x87),'api':a98_0x2d7703(0x85),'runtime':'https://daily-runtime.lovrabet.com','skill':a98_0x2d7703(0xa9),'kb':a98_0x2d7703(0x95)}},'id':{'production':{'user':a98_0x2d7703(0x9b),'api':a98_0x2d7703(0x92),'runtime':a98_0x2d7703(0x9e),'skill':a98_0x2d7703(0xa3),'kb':a98_0x2d7703(0x9e)},'nonProduction':{'user':'https://user-daily.lovrabet.id','api':a98_0x2d7703(0xa0),'runtime':a98_0x2d7703(0xab),'skill':a98_0x2d7703(0xac),'kb':a98_0x2d7703(0xab)}},'global':{'production':{'user':a98_0x2d7703(0x9a),'api':'https://api.lovrabet.ai','runtime':'https://runtime.lovrabet.ai','skill':a98_0x2d7703(0x8c),'kb':a98_0x2d7703(0x9d)},'nonProduction':{'user':'https://user-daily.lovrabet.ai','api':a98_0x2d7703(0x91),'runtime':a98_0x2d7703(0xa5),'skill':'https://skills-daily.lovrabet.ai','kb':a98_0x2d7703(0xa5)}}},'accessKeyCreatePath':a98_0x2d7703(0x84)};function a98_0x4bd7(){const _0x13275f=['https://daily-runtime.lovrabet.id','https://skills-daily.lovrabet.id','https://user.lovrabet.com','SKIP_NPX_SKILLS','RABETBASE','20435nLreVz','806152EzNEYe','/user/ak','https://daily-api.lovrabet.com','178098BGOPvn','https://user-daily.lovrabet.com','@lovrabet/lovrabet-cli','.lovrabet','.lovrabet.json','21350148JrxoRH','https://skills.lovrabet.ai','1QPPwwj','.lovrabet-runtime.log','233068dmorJN','4853618uAnnhC','https://daily-api.lovrabet.ai','https://api.lovrabet.id','LOVRABET','2716686kIwwLr','https://daily-runtime.lovrabet.com','https://g.lovrabet.com','https://runtime.lovrabet.com','https://skills.lovrabet.com','envPrefix','https://user.lovrabet.ai','https://user.lovrabet.id','10zKwcbJ','https://runtime.lovrabet.ai','https://runtime.lovrabet.id','lovrabet/lovrabet-cli','https://daily-api.lovrabet.id','Lovrabet\x20User\x20Center','49MhHKHk','https://skills.lovrabet.id','https://registry.npmjs.org','https://daily-runtime.lovrabet.ai','44hFavTi','27AFrWlZ','Lovrabet\x20Runtime\x20CLI','https://skills-daily.lovrabet.com','lovrabet'];a98_0x4bd7=function(){return _0x13275f;};return a98_0x4bd7();}export function productEnvName(_0x5c2ddc){const _0x448cf9=a98_0x2d7703;return PRODUCT_CONFIG[_0x448cf9(0x99)]+'_'+_0x5c2ddc;}export function productEnvNames(_0x5e0930){return[productEnvName(_0x5e0930),...PRODUCT_CONFIG['legacyEnvPrefixes']['map'](_0x5cc4ea=>_0x5cc4ea+'_'+_0x5e0930)];}function a98_0xf17e(_0x243969,_0x2139fb){_0x243969=_0x243969-0x83;const _0x4bd758=a98_0x4bd7();let _0xf17ed8=_0x4bd758[_0x243969];return _0xf17ed8;}export function productEnv(_0x334aba){for(const _0x27fdd4 of productEnvNames(_0x334aba)){const _0xa1bf8f=process.env[_0x27fdd4];if(_0xa1bf8f!==undefined)return _0xa1bf8f;}return undefined;}
@@ -1 +1 @@
1
- const a99_0x20678f=a99_0x2f0c;(function(_0x2e2745,_0xb9fc18){const _0x19606e=a99_0x2f0c,_0x29c0f7=_0x2e2745();while(!![]){try{const _0x187f2a=parseInt(_0x19606e(0x100))/0x1*(parseInt(_0x19606e(0xf5))/0x2)+-parseInt(_0x19606e(0x103))/0x3*(-parseInt(_0x19606e(0xfe))/0x4)+parseInt(_0x19606e(0xff))/0x5*(-parseInt(_0x19606e(0xf3))/0x6)+-parseInt(_0x19606e(0x102))/0x7+-parseInt(_0x19606e(0xf7))/0x8*(-parseInt(_0x19606e(0xf4))/0x9)+-parseInt(_0x19606e(0xf9))/0xa*(parseInt(_0x19606e(0xfa))/0xb)+-parseInt(_0x19606e(0xfd))/0xc;if(_0x187f2a===_0xb9fc18)break;else _0x29c0f7['push'](_0x29c0f7['shift']());}catch(_0x16a1fd){_0x29c0f7['push'](_0x29c0f7['shift']());}}}(a99_0x3b28,0x540b3));function a99_0x2f0c(_0x54805c,_0x1789d6){_0x54805c=_0x54805c-0xf3;const _0x3b28a7=a99_0x3b28();let _0x2f0cf2=_0x3b28a7[_0x54805c];return _0x2f0cf2;}export const LOVRABET_REGION_VALUES=['cn','id',a99_0x20678f(0xfb)];export const ENABLED_LOVRABET_REGION_VALUES=['cn','id'];export const DEFAULT_LOVRABET_REGION='cn';export function isLovrabetRegion(_0x56453e){const _0x45ef2e=a99_0x20678f;return typeof _0x56453e===_0x45ef2e(0xf8)&&LOVRABET_REGION_VALUES['includes'](_0x56453e);}function a99_0x3b28(){const _0x28ff8f=['993251YLBjii','628707IzGedz','6HpebAL','18ToPXlz','1351824MQktiV','indonesia','769864BwhGRW','string','2854600WdCkYt','11SOvayo','global','china','1480536WIsSwR','8qEelDv','1962710CIeVAa','1dWAvQv','includes'];a99_0x3b28=function(){return _0x28ff8f;};return a99_0x3b28();}export function isEnabledLovrabetRegion(_0x46ae5a){const _0xfdec0a=a99_0x20678f;return typeof _0x46ae5a===_0xfdec0a(0xf8)&&ENABLED_LOVRABET_REGION_VALUES[_0xfdec0a(0x101)](_0x46ae5a);}export function normalizeLovrabetRegion(_0xa80396){const _0x1e06e6=a99_0x20678f;if(_0xa80396===_0x1e06e6(0xfc))return'cn';if(_0xa80396===_0x1e06e6(0xf6))return'id';return isLovrabetRegion(_0xa80396)?_0xa80396:DEFAULT_LOVRABET_REGION;}
1
+ const a99_0x3796cc=a99_0x2dc1;(function(_0x961237,_0xd2cdb0){const _0x32832e=a99_0x2dc1,_0x5849b3=_0x961237();while(!![]){try{const _0x238449=parseInt(_0x32832e(0xd3))/0x1+-parseInt(_0x32832e(0xce))/0x2*(parseInt(_0x32832e(0xcc))/0x3)+parseInt(_0x32832e(0xcf))/0x4*(parseInt(_0x32832e(0xd0))/0x5)+-parseInt(_0x32832e(0xd2))/0x6*(-parseInt(_0x32832e(0xcd))/0x7)+parseInt(_0x32832e(0xd6))/0x8*(parseInt(_0x32832e(0xc8))/0x9)+parseInt(_0x32832e(0xc9))/0xa+-parseInt(_0x32832e(0xd1))/0xb;if(_0x238449===_0xd2cdb0)break;else _0x5849b3['push'](_0x5849b3['shift']());}catch(_0x35a940){_0x5849b3['push'](_0x5849b3['shift']());}}}(a99_0x3b76,0xe11d7));export const LOVRABET_REGION_VALUES=['cn','id',a99_0x3796cc(0xd5)];export const ENABLED_LOVRABET_REGION_VALUES=['cn','id'];export const DEFAULT_LOVRABET_REGION='cn';function a99_0x3b76(){const _0x12a875=['807284pXrepj','124Ewfnxv','212390DZGkgM','39165973SBKUVy','6294eeievV','429974bEfFxt','includes','global','24pCNOjh','1042713SSuRnn','17124720jRlFfJ','string','indonesia','3WWxNAD','7203ZLiteb'];a99_0x3b76=function(){return _0x12a875;};return a99_0x3b76();}export function isLovrabetRegion(_0x2eb43d){const _0x17cf6c=a99_0x3796cc;return typeof _0x2eb43d===_0x17cf6c(0xca)&&LOVRABET_REGION_VALUES[_0x17cf6c(0xd4)](_0x2eb43d);}export function isEnabledLovrabetRegion(_0x449c2a){const _0x4e482b=a99_0x3796cc;return typeof _0x449c2a===_0x4e482b(0xca)&&ENABLED_LOVRABET_REGION_VALUES[_0x4e482b(0xd4)](_0x449c2a);}function a99_0x2dc1(_0x58a62c,_0xd4400){_0x58a62c=_0x58a62c-0xc8;const _0x3b767f=a99_0x3b76();let _0x2dc14e=_0x3b767f[_0x58a62c];return _0x2dc14e;}export function normalizeLovrabetRegion(_0x40bbb8){const _0x391f14=a99_0x3796cc;if(_0x40bbb8==='china')return'cn';if(_0x40bbb8===_0x391f14(0xcb))return'id';return isLovrabetRegion(_0x40bbb8)?_0x40bbb8:DEFAULT_LOVRABET_REGION;}
@@ -1 +1 @@
1
- const a100_0xd32a91=a100_0x3101;function a100_0x3101(_0x5a7d2e,_0x334c57){_0x5a7d2e=_0x5a7d2e-0x18c;const _0x2ccdb5=a100_0x2ccd();let _0x310168=_0x2ccdb5[_0x5a7d2e];return _0x310168;}(function(_0x31303a,_0x394e1f){const _0xe9e43a=a100_0x3101,_0x595361=_0x31303a();while(!![]){try{const _0x4f868c=parseInt(_0xe9e43a(0x196))/0x1+parseInt(_0xe9e43a(0x191))/0x2+parseInt(_0xe9e43a(0x18f))/0x3+parseInt(_0xe9e43a(0x18c))/0x4*(parseInt(_0xe9e43a(0x193))/0x5)+parseInt(_0xe9e43a(0x18d))/0x6*(parseInt(_0xe9e43a(0x190))/0x7)+parseInt(_0xe9e43a(0x18e))/0x8*(parseInt(_0xe9e43a(0x198))/0x9)+parseInt(_0xe9e43a(0x197))/0xa*(-parseInt(_0xe9e43a(0x192))/0xb);if(_0x4f868c===_0x394e1f)break;else _0x595361['push'](_0x595361['shift']());}catch(_0x45af73){_0x595361['push'](_0x595361['shift']());}}}(a100_0x2ccd,0x4912b));export const RISK_LEVEL_VALUES=[a100_0xd32a91(0x195),a100_0xd32a91(0x194),'high-risk-write'];function a100_0x2ccd(){const _0x473e51=['525666FJMkpL','540iNuaPu','9HrXmpq','20aDlzhr','924toulvf','3976536oLjYrF','630936tgEIrw','23366wgzxLD','324858zNVWKU','381931WgZqtI','264715JhLGoc','write','read'];a100_0x2ccd=function(){return _0x473e51;};return a100_0x2ccd();}
1
+ function a100_0x3af6(_0x46baf3,_0x412e08){_0x46baf3=_0x46baf3-0x14c;const _0x32e6e5=a100_0x32e6();let _0x3af6d3=_0x32e6e5[_0x46baf3];return _0x3af6d3;}const a100_0x335d0f=a100_0x3af6;function a100_0x32e6(){const _0x2b17c3=['4zbDJiR','high-risk-write','2iRsoqt','1320250wQmbjD','2001081amZmJf','write','308719vljzAc','574736TPLCAj','1030wrUTXJ','762370GjrSkF','32787zBdGFo','4531590DsEaVd'];a100_0x32e6=function(){return _0x2b17c3;};return a100_0x32e6();}(function(_0x50eb84,_0x130289){const _0x2fd25f=a100_0x3af6,_0x597289=_0x50eb84();while(!![]){try{const _0xf65d31=-parseInt(_0x2fd25f(0x156))/0x1*(parseInt(_0x2fd25f(0x152))/0x2)+parseInt(_0x2fd25f(0x154))/0x3*(-parseInt(_0x2fd25f(0x150))/0x4)+parseInt(_0x2fd25f(0x153))/0x5+parseInt(_0x2fd25f(0x14f))/0x6+-parseInt(_0x2fd25f(0x14d))/0x7+parseInt(_0x2fd25f(0x157))/0x8+parseInt(_0x2fd25f(0x14e))/0x9*(parseInt(_0x2fd25f(0x14c))/0xa);if(_0xf65d31===_0x130289)break;else _0x597289['push'](_0x597289['shift']());}catch(_0x112eb1){_0x597289['push'](_0x597289['shift']());}}}(a100_0x32e6,0x5d322));export const RISK_LEVEL_VALUES=['read',a100_0x335d0f(0x155),a100_0x335d0f(0x151)];
@@ -1 +1 @@
1
- (function(_0x2d4169,_0x559538){const _0x4c461e=a101_0x5ba1,_0xda2b56=_0x2d4169();while(!![]){try{const _0x2a5186=parseInt(_0x4c461e(0x81))/0x1+-parseInt(_0x4c461e(0x7e))/0x2+parseInt(_0x4c461e(0x7d))/0x3+parseInt(_0x4c461e(0x7c))/0x4+parseInt(_0x4c461e(0x84))/0x5*(-parseInt(_0x4c461e(0x86))/0x6)+parseInt(_0x4c461e(0x85))/0x7+-parseInt(_0x4c461e(0x82))/0x8;if(_0x2a5186===_0x559538)break;else _0xda2b56['push'](_0xda2b56['shift']());}catch(_0x1b3159){_0xda2b56['push'](_0xda2b56['shift']());}}}(a101_0x3fa0,0xd793a));function a101_0x3fa0(){const _0x491586=['regionDomains','user','415579GWqtah','4890232SoXQPH','accessKeyCreatePath','30365ODWCFL','6889589CjoTTf','438OhWifg','production','375948WbcsdN','2268756bHUKlp','624870gdeJue'];a101_0x3fa0=function(){return _0x491586;};return a101_0x3fa0();}import{PRODUCT_CONFIG}from'../constant/product.js';function a101_0x5ba1(_0x369797,_0x43c7e5){_0x369797=_0x369797-0x7b;const _0x3fa0b5=a101_0x3fa0();let _0x5ba185=_0x3fa0b5[_0x369797];return _0x5ba185;}import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';export function getUserAccessKeyCreateUrl(_0x249f30=DEFAULT_LOVRABET_REGION){const _0x37c4f9=a101_0x5ba1,_0x17cfe8=PRODUCT_CONFIG[_0x37c4f9(0x7f)][_0x249f30][_0x37c4f9(0x7b)][_0x37c4f9(0x80)];return''+_0x17cfe8+PRODUCT_CONFIG[_0x37c4f9(0x83)];}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();
1
+ (function(_0x59717a,_0x3bb5de){const _0x43aff7=a101_0x3260,_0x368331=_0x59717a();while(!![]){try{const _0x2ca388=parseInt(_0x43aff7(0x1af))/0x1*(-parseInt(_0x43aff7(0x1a7))/0x2)+-parseInt(_0x43aff7(0x1b1))/0x3*(parseInt(_0x43aff7(0x1ad))/0x4)+parseInt(_0x43aff7(0x1ab))/0x5+parseInt(_0x43aff7(0x1b4))/0x6*(-parseInt(_0x43aff7(0x1ac))/0x7)+-parseInt(_0x43aff7(0x1a8))/0x8+parseInt(_0x43aff7(0x1ae))/0x9+parseInt(_0x43aff7(0x1aa))/0xa*(parseInt(_0x43aff7(0x1b2))/0xb);if(_0x2ca388===_0x3bb5de)break;else _0x368331['push'](_0x368331['shift']());}catch(_0x3e1873){_0x368331['push'](_0x368331['shift']());}}}(a101_0x3128,0x8e2c8));import{PRODUCT_CONFIG}from'../constant/product.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';function a101_0x3260(_0x416f91,_0x513c99){_0x416f91=_0x416f91-0x1a7;const _0x3128e3=a101_0x3128();let _0x326096=_0x3128e3[_0x416f91];return _0x326096;}function a101_0x3128(){const _0x4383bd=['user','4350ZyzDxu','28433867IzXXJR','regionDomains','4442658GOkfxH','28tSleoV','8628832hrtjNG','production','10NnINAe','1992475pITwAN','7ydlHoH','1436iKZPEg','5926743TFIfPt','51427dqvfor'];a101_0x3128=function(){return _0x4383bd;};return a101_0x3128();}export function getUserAccessKeyCreateUrl(_0x55bc07=DEFAULT_LOVRABET_REGION){const _0x17d412=a101_0x3260,_0x21d104=PRODUCT_CONFIG[_0x17d412(0x1b3)][_0x55bc07][_0x17d412(0x1a9)][_0x17d412(0x1b0)];return''+_0x21d104+PRODUCT_CONFIG['accessKeyCreatePath'];}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();