@lovrabet/lovrabet-cli 2.3.0-beta.1 → 2.3.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
- const a84_0x42cbf6=a84_0x504d;(function(_0x3ab67e,_0x58ebe8){const _0x2e027e=a84_0x504d,_0x4c3388=_0x3ab67e();while(!![]){try{const _0x2e1406=parseInt(_0x2e027e(0x13c))/0x1+parseInt(_0x2e027e(0x163))/0x2*(-parseInt(_0x2e027e(0x14d))/0x3)+-parseInt(_0x2e027e(0x177))/0x4*(-parseInt(_0x2e027e(0x167))/0x5)+-parseInt(_0x2e027e(0x18e))/0x6*(-parseInt(_0x2e027e(0x18d))/0x7)+-parseInt(_0x2e027e(0x192))/0x8+parseInt(_0x2e027e(0x13b))/0x9*(parseInt(_0x2e027e(0x184))/0xa)+-parseInt(_0x2e027e(0x182))/0xb;if(_0x2e1406===_0x58ebe8)break;else _0x4c3388['push'](_0x4c3388['shift']());}catch(_0x426219){_0x4c3388['push'](_0x4c3388['shift']());}}}(a84_0x9d17,0x95159));import{spawnSync}from'node:child_process';import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import a84_0x3fad26 from'semver';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a84_0x504d(_0x2e3997,_0xeb5802){_0x2e3997=_0x2e3997-0x13a;const _0x9d1727=a84_0x9d17();let _0x504dc4=_0x9d1727[_0x2e3997];return _0x504dc4;}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_0x42cbf6(0x150),'type':a84_0x42cbf6(0x162),'description':a84_0x42cbf6(0x14a),'default':![]},{'name':a84_0x42cbf6(0x157),'type':a84_0x42cbf6(0x162),'description':a84_0x42cbf6(0x158),'default':![]},{'name':a84_0x42cbf6(0x164),'type':a84_0x42cbf6(0x17b),'description':a84_0x42cbf6(0x149)}];function getRequestedVersion(_0x1526d6){const _0x4489cb=a84_0x42cbf6,_0x3f1206=_0x1526d6[_0x4489cb(0x159)](_0x4489cb(0x164))[_0x4489cb(0x160)]();if(_0x3f1206)return _0x3f1206;return String(_0x1526d6['args']?.[0x0]??'')['trim']();}async function validateUpdateFlags(_0x2eacf3){const _0x214c9b=a84_0x42cbf6,_0x30ae12=getRequestedVersion(_0x2eacf3),_0x17de3f=[_0x2eacf3[_0x214c9b(0x16e)]('latest')?'latest':'',_0x2eacf3[_0x214c9b(0x16e)]('beta')?_0x214c9b(0x157):'',_0x30ae12?'version':''][_0x214c9b(0x165)](Boolean);if(_0x17de3f[_0x214c9b(0x15d)]>0x1)throw CliErrors[_0x214c9b(0x13f)]('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.',_0x214c9b(0x172));if(_0x30ae12&&!a84_0x3fad26[_0x214c9b(0x156)](_0x30ae12))throw CliErrors['validation'](_0x214c9b(0x153)+_0x30ae12,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x3ea2d4=a84_0x42cbf6;try{const _0xc0e6d5=NPM_REGISTRY_BASE_URL+_0x3ea2d4(0x180)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x3ea2d4(0x140),_0x3af270=await fetch(_0xc0e6d5,{'signal':AbortSignal[_0x3ea2d4(0x178)](0x2710)});if(!_0x3af270['ok'])return null;const _0x467f49=await _0x3af270[_0x3ea2d4(0x15f)]();if(!_0x467f49||typeof _0x467f49!==_0x3ea2d4(0x13e))return null;return Object[_0x3ea2d4(0x174)](Object[_0x3ea2d4(0x15e)](_0x467f49)[_0x3ea2d4(0x165)](([,_0x42abea])=>typeof _0x42abea===_0x3ea2d4(0x17b)&&_0x42abea[_0x3ea2d4(0x160)]())['map'](([_0xfbc321,_0x11a9bc])=>[_0xfbc321,String(_0x11a9bc)[_0x3ea2d4(0x160)]()]));}catch{return null;}}function a84_0x9d17(){const _0x156f9c=['npm','read','6972lNVuOZ','7278gLFakP','Checking\x20CLI\x20Built-in\x20Skill...','@lovrabet/lovrabet-cli','code','1279792KuPkuU','Update\x20failed:\x20','18jEoYVT','653067enkMYO','exit\x20','object','validation','/dist-tags','dirname','cwd','relative','win32','nonInteractive','message','Updating\x20','update','Install\x20a\x20specific\x20CLI\x20version','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','\x20\x20Run\x20manually:\x20','test','72456WLUZDM','Updated\x20to\x20v','skillVersion','latest','state','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','Invalid\x20version:\x20','source','stderr','valid','beta','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','str','log',']:\x20','inherit','length','entries','json','trim','\x20\x20CLI\x20Built-in\x20Skill\x20','boolean','44CkEfTG','version','filter','Already\x20on\x20requested\x20version\x20(v','5XCFOLy','install','\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','stdout','repairCommand','write','\x20CLI\x20from\x20npm','bool','Version\x20comparison\x20failed:\x20','\x20is\x20current.','unknown','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','includes','fromEntries','basename','Unable\x20to\x20resolve\x20','640748mCHSLQ','timeout','current','platform','string','--prefix','@lovrabet\x5clovrabet-cli','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','INSTALL_FAILED','/-/package/','warn','14203409AlOBzQ','toString','2858920nXuFRP','Already\x20up\x20to\x20date\x20(v','\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20','Current\x20version:\x20','pipe','Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20','error'];a84_0x9d17=function(){return _0x156f9c;};return a84_0x9d17();}async function resolveTargetVersion(_0x11e5f2){const _0x252026=a84_0x42cbf6,_0x510cae=getRequestedVersion(_0x11e5f2);if(_0x510cae)return{'version':_0x510cae,'source':_0x252026(0x164)};const _0x36d998=_0x11e5f2['bool'](_0x252026(0x157))?_0x252026(0x157):'latest',_0xeb13b8=await fetchNpmDistTags(),_0x14e1e3=_0xeb13b8?.[_0x36d998];if(!_0x14e1e3)return null;return{'version':_0x14e1e3,'source':_0x36d998};}function shouldInstallTarget(_0x4329e6,_0x3fa0a3){const _0x2add1c=a84_0x42cbf6;if(_0x3fa0a3[_0x2add1c(0x154)]===_0x2add1c(0x164)||_0x3fa0a3['source']==='beta')return!a84_0x3fad26['eq'](_0x4329e6,_0x3fa0a3['version']);return a84_0x3fad26['lt'](_0x4329e6,_0x3fa0a3[_0x2add1c(0x164)]);}export function installCliPackage(_0x857f06,_0x233170,_0x2117e1=resolveCurrentCliNpmPrefix()){const _0x465294=a84_0x42cbf6,_0x136217=resolveNpmBin(_0x465294(0x18b)),_0x50dcd8=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x857f06,_0x3abe2c=[_0x465294(0x168),'-g',_0x50dcd8],_0x4a9158=runNpmInstall(_0x136217,_0x3abe2c,_0x233170);if(_0x4a9158['ok']||!isNpmPrefixPermissionError(_0x4a9158[_0x465294(0x18a)]))return _0x4a9158;if(!_0x2117e1||_0x4a9158[_0x465294(0x18a)]?.['toLowerCase']()[_0x465294(0x173)](_0x2117e1['toLowerCase']()))return _0x4a9158;return console[_0x465294(0x181)](_0x465294(0x189)+_0x2117e1),runNpmInstall(_0x136217,[..._0x3abe2c,_0x465294(0x17c),_0x2117e1],_0x233170);}export function resolveCurrentCliNpmPrefix(_0x2993de=fileURLToPath(import.meta.url),_0xd4dd04=process[a84_0x42cbf6(0x17a)]){const _0x5a7297=a84_0x42cbf6,_0x502eb9=_0xd4dd04==='win32'?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x289085=_0x502eb9[_0x5a7297(0x141)](_0x502eb9[_0x5a7297(0x141)](_0x502eb9[_0x5a7297(0x141)](_0x2993de))),_0x327f3b=_0xd4dd04===_0x5a7297(0x144)?_0x5a7297(0x17d):_0x5a7297(0x190);let _0x5c7094=_0x502eb9['dirname'](_0x289085);while(!![]){if(_0x502eb9[_0x5a7297(0x175)](_0x5c7094)==='node_modules'&&_0x502eb9[_0x5a7297(0x143)](_0x5c7094,_0x289085)===_0x327f3b){const _0x24e492=_0x502eb9['dirname'](_0x5c7094);return _0x502eb9['basename'](_0x24e492)==='lib'?_0x502eb9[_0x5a7297(0x141)](_0x24e492):_0x24e492;}const _0x319c18=_0x502eb9[_0x5a7297(0x141)](_0x5c7094);if(_0x319c18===_0x5c7094)return null;_0x5c7094=_0x319c18;}}function runNpmInstall(_0x11680a,_0x20c99b,_0xac7db5){const _0x2f0fa6=a84_0x42cbf6;console[_0x2f0fa6(0x15a)]('*\x20'+[_0x11680a,..._0x20c99b]['join']('\x20'));const _0x4dcb87=spawnSync(_0x11680a,_0x20c99b,{'cwd':process[_0x2f0fa6(0x142)](),'stdio':_0x2f0fa6(0x188),'env':process.env,'shell':![]}),_0x19b618=_0x4dcb87[_0x2f0fa6(0x155)]?_0x4dcb87[_0x2f0fa6(0x155)]['toString']()['trim']():'',_0x8bdac6=_0x4dcb87[_0x2f0fa6(0x16a)]?_0x4dcb87['stdout'][_0x2f0fa6(0x183)]()['trim']():'';if(!_0xac7db5){if(_0x8bdac6)process[_0x2f0fa6(0x16a)][_0x2f0fa6(0x16c)](_0x8bdac6+'\x0a');if(_0x19b618)process['stderr'][_0x2f0fa6(0x16c)](_0x19b618+'\x0a');}if(_0x4dcb87['status']===0x0)return{'ok':!![]};const _0x376817=_0x4dcb87[_0x2f0fa6(0x18a)]?.[_0x2f0fa6(0x146)]||_0x19b618||_0x8bdac6||_0x2f0fa6(0x13d)+(_0x4dcb87['status']??_0x2f0fa6(0x171));return{'ok':![],'error':_0x376817};}function isNpmPrefixPermissionError(_0x41aa0d){const _0x5e7bfa=a84_0x42cbf6;return Boolean(_0x41aa0d&&/\b(?:EACCES|EPERM)\b/[_0x5e7bfa(0x14c)](_0x41aa0d));}function repairCurrentBuiltinSkill(_0x38419b){const _0x487c5a=a84_0x42cbf6;console[_0x487c5a(0x15a)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0xd354bb=installBuiltinSkill({'stdio':_0x38419b?_0x487c5a(0x188):_0x487c5a(0x15c)});if(_0xd354bb['ok'])return console['log'](_0x487c5a(0x161)+_0xd354bb[_0x487c5a(0x14f)]+_0x487c5a(0x170)),!![];return console[_0x487c5a(0x181)](_0x487c5a(0x169)+(_0xd354bb[_0x487c5a(0x191)]||_0x487c5a(0x17f))+_0x487c5a(0x15b)+(_0xd354bb[_0x487c5a(0x18a)]||'unknown')),console[_0x487c5a(0x15a)]('\x20\x20Run\x20manually:\x20'+_0xd354bb[_0x487c5a(0x16b)]),![];}function verifyUpdatedBuiltinSkill(_0x5e1935){const _0x23222a=a84_0x42cbf6;console['log'](_0x23222a(0x18f));const _0x3b3ccb=inspectInstalledBuiltinSkillVersion(_0x5e1935);if(_0x3b3ccb[_0x23222a(0x151)]===_0x23222a(0x179))return console[_0x23222a(0x15a)](_0x23222a(0x161)+_0x5e1935+'\x20is\x20current.'),!![];console['warn'](_0x23222a(0x186)+_0x3b3ccb['state']+'.');if(_0x3b3ccb['reason'])console[_0x23222a(0x181)]('\x20\x20'+_0x3b3ccb['reason']);return console[_0x23222a(0x15a)](_0x23222a(0x14b)+_0x3b3ccb['repairCommand']),![];}async function execute(_0x2c5ed8){const _0x13b72a=a84_0x42cbf6;await validateUpdateFlags(_0x2c5ed8);const _0x57b31e=getCliVersion();console[_0x13b72a(0x15a)](_0x13b72a(0x187)+_0x57b31e),console[_0x13b72a(0x15a)]('Checking\x20npm\x20dist-tags...');const _0x41a55f=await resolveTargetVersion(_0x2c5ed8);if(!_0x41a55f){const _0x2ffc6=_0x2c5ed8['bool']('beta')?_0x13b72a(0x157):_0x13b72a(0x150),_0x43a2ce=_0x13b72a(0x176)+_0x2ffc6+'\x20version\x20from\x20npm.';return console[_0x13b72a(0x181)](_0x43a2ce),console[_0x13b72a(0x15a)](_0x13b72a(0x152)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x2ffc6),{'ok':![]};}const _0x1c47e3=[_0x57b31e,_0x41a55f[_0x13b72a(0x164)]]['find'](_0x4c3d2e=>!a84_0x3fad26[_0x13b72a(0x156)](_0x4c3d2e));if(_0x1c47e3)return console[_0x13b72a(0x181)](_0x13b72a(0x16f)+_0x1c47e3+'.'),{'ok':![]};if(!shouldInstallTarget(_0x57b31e,_0x41a55f)){const _0x5556be=_0x41a55f[_0x13b72a(0x154)]===_0x13b72a(0x164)?_0x13b72a(0x166)+_0x41a55f['version']+').':_0x13b72a(0x185)+_0x41a55f['version']+').';return console['log'](_0x5556be),{'ok':repairCurrentBuiltinSkill(_0x2c5ed8[_0x13b72a(0x145)])};}console['log'](_0x13b72a(0x147)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x57b31e+'\x20->\x20'+_0x41a55f['version']);const _0x4e33a5=installCliPackage(_0x41a55f[_0x13b72a(0x164)],_0x2c5ed8[_0x13b72a(0x145)]);if(!_0x4e33a5['ok']){const _0x532696=_0x13b72a(0x13a)+(_0x4e33a5[_0x13b72a(0x18a)]||'unknown');return console[_0x13b72a(0x18a)](_0x532696),console[_0x13b72a(0x15a)]('\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x41a55f['version']),{'ok':![]};}return console['log'](_0x13b72a(0x14e)+_0x41a55f['version']+'.'),console[_0x13b72a(0x15a)](_0x13b72a(0x17e)),{'ok':verifyUpdatedBuiltinSkill(_0x41a55f['version'])};}export const updateDefinition={'service':a84_0x42cbf6(0x148),'command':'run','description':'Update\x20the\x20'+CLI_BIN_NAME+a84_0x42cbf6(0x16d),'risk':a84_0x42cbf6(0x18c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a84_0x362b72=a84_0xd65c;(function(_0x59101f,_0x10d300){const _0xfd3942=a84_0xd65c,_0x40e00f=_0x59101f();while(!![]){try{const _0x53e2f9=parseInt(_0xfd3942(0x14c))/0x1+-parseInt(_0xfd3942(0x13a))/0x2*(parseInt(_0xfd3942(0x13d))/0x3)+parseInt(_0xfd3942(0x173))/0x4*(-parseInt(_0xfd3942(0x159))/0x5)+parseInt(_0xfd3942(0x18e))/0x6+parseInt(_0xfd3942(0x155))/0x7+parseInt(_0xfd3942(0x169))/0x8+parseInt(_0xfd3942(0x17a))/0x9;if(_0x53e2f9===_0x10d300)break;else _0x40e00f['push'](_0x40e00f['shift']());}catch(_0x425a66){_0x40e00f['push'](_0x40e00f['shift']());}}}(a84_0x2128,0xa1277));import{spawnSync}from'node:child_process';import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import a84_0x34d186 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';function a84_0x2128(){const _0x410946=['\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20','read','Already\x20on\x20requested\x20version\x20(v','\x20\x20CLI\x20Built-in\x20Skill\x20','write','\x20\x20Run\x20manually:\x20','\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','json','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','289224BOKpBc','/dist-tags','node_modules','repairCommand','test','\x20CLI\x20from\x20npm','dirname','2PLkLmm','Unable\x20to\x20resolve\x20','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','831213tJeNPx','message','status','@lovrabet\x5clovrabet-cli','args','basename','bool','Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20','valid','version','install','--prefix','validation','Current\x20version:\x20','code','469339yzbcKa','str','includes','Version\x20comparison\x20failed:\x20','timeout','\x20->\x20','pipe','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','state','6251756ZWEtAD','\x20is\x20current.','run','entries','3895QIqKnC','join','skillVersion','Already\x20up\x20to\x20date\x20(v','log','latest','current','update','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','toString','fromEntries','relative','trim','error','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','beta','744760mDWigR','nonInteractive','platform','lib','Update\x20the\x20','\x20version\x20from\x20npm.','source','Install\x20a\x20specific\x20CLI\x20version','unknown','Checking\x20CLI\x20Built-in\x20Skill...','5732hwHAHy','stdout','map','stderr','warn','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','Updated\x20to\x20v','4947471BWvdlB','win32','toLowerCase','Invalid\x20version:\x20','length','string','inherit','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','Checking\x20npm\x20dist-tags...','object','/-/package/'];a84_0x2128=function(){return _0x410946;};return a84_0x2128();}import{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':'latest','type':'boolean','description':a84_0x362b72(0x181),'default':![]},{'name':a84_0x362b72(0x168),'type':'boolean','description':a84_0x362b72(0x18d),'default':![]},{'name':'version','type':a84_0x362b72(0x17f),'description':a84_0x362b72(0x170)}];function getRequestedVersion(_0x8cd41d){const _0xec2b8f=a84_0x362b72,_0xb8bf49=_0x8cd41d[_0xec2b8f(0x14d)](_0xec2b8f(0x146))[_0xec2b8f(0x165)]();if(_0xb8bf49)return _0xb8bf49;return String(_0x8cd41d[_0xec2b8f(0x141)]?.[0x0]??'')['trim']();}async function validateUpdateFlags(_0x24b670){const _0x597599=a84_0x362b72,_0x167b0c=getRequestedVersion(_0x24b670),_0x5e0c43=[_0x24b670[_0x597599(0x143)](_0x597599(0x15e))?_0x597599(0x15e):'',_0x24b670['bool'](_0x597599(0x168))?'beta':'',_0x167b0c?_0x597599(0x146):'']['filter'](Boolean);if(_0x5e0c43[_0x597599(0x17e)]>0x1)throw CliErrors[_0x597599(0x149)](_0x597599(0x178),_0x597599(0x161));if(_0x167b0c&&!a84_0x34d186[_0x597599(0x145)](_0x167b0c))throw CliErrors['validation'](_0x597599(0x17d)+_0x167b0c,_0x597599(0x153));}async function fetchNpmDistTags(){const _0x23ee8c=a84_0x362b72;try{const _0x394bb1=NPM_REGISTRY_BASE_URL+_0x23ee8c(0x184)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x23ee8c(0x134),_0x19f1be=await fetch(_0x394bb1,{'signal':AbortSignal[_0x23ee8c(0x150)](0x2710)});if(!_0x19f1be['ok'])return null;const _0x202ea6=await _0x19f1be[_0x23ee8c(0x18c)]();if(!_0x202ea6||typeof _0x202ea6!==_0x23ee8c(0x183))return null;return Object[_0x23ee8c(0x163)](Object[_0x23ee8c(0x158)](_0x202ea6)['filter'](([,_0x3cc4a0])=>typeof _0x3cc4a0==='string'&&_0x3cc4a0[_0x23ee8c(0x165)]())[_0x23ee8c(0x175)](([_0x3c877b,_0x43d368])=>[_0x3c877b,String(_0x43d368)[_0x23ee8c(0x165)]()]));}catch{return null;}}async function resolveTargetVersion(_0x18b13e){const _0x5466e6=a84_0x362b72,_0x26dab2=getRequestedVersion(_0x18b13e);if(_0x26dab2)return{'version':_0x26dab2,'source':_0x5466e6(0x146)};const _0x2b1cce=_0x18b13e[_0x5466e6(0x143)](_0x5466e6(0x168))?'beta':_0x5466e6(0x15e),_0x17612f=await fetchNpmDistTags(),_0xa6b358=_0x17612f?.[_0x2b1cce];if(!_0xa6b358)return null;return{'version':_0xa6b358,'source':_0x2b1cce};}function shouldInstallTarget(_0x3806ae,_0x4c2a69){const _0x3f0d29=a84_0x362b72;if(_0x4c2a69[_0x3f0d29(0x16f)]===_0x3f0d29(0x146)||_0x4c2a69[_0x3f0d29(0x16f)]===_0x3f0d29(0x168))return!a84_0x34d186['eq'](_0x3806ae,_0x4c2a69[_0x3f0d29(0x146)]);return a84_0x34d186['lt'](_0x3806ae,_0x4c2a69[_0x3f0d29(0x146)]);}export function installCliPackage(_0x369014,_0x1dcd81,_0x4ede5a=resolveCurrentCliNpmPrefix()){const _0xd14588=a84_0x362b72,_0x5c2797=resolveNpmBin('npm'),_0x41c0d2=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x369014,_0xbaa5a4=[_0xd14588(0x147),'-g',_0x41c0d2],_0x1aa735=runNpmInstall(_0x5c2797,_0xbaa5a4,_0x1dcd81);if(_0x1aa735['ok']||!isNpmPrefixPermissionError(_0x1aa735[_0xd14588(0x166)]))return _0x1aa735;if(!_0x4ede5a||_0x1aa735[_0xd14588(0x166)]?.['toLowerCase']()[_0xd14588(0x14e)](_0x4ede5a[_0xd14588(0x17c)]()))return _0x1aa735;return console[_0xd14588(0x177)](_0xd14588(0x144)+_0x4ede5a),runNpmInstall(_0x5c2797,[..._0xbaa5a4,_0xd14588(0x148),_0x4ede5a],_0x1dcd81);}function a84_0xd65c(_0xb7da79,_0x56dc23){_0xb7da79=_0xb7da79-0x134;const _0x212855=a84_0x2128();let _0xd65cc1=_0x212855[_0xb7da79];return _0xd65cc1;}export function resolveCurrentCliNpmPrefix(_0x30171b=fileURLToPath(import.meta.url),_0x17b0fa=process[a84_0x362b72(0x16b)]){const _0x67efc1=a84_0x362b72,_0x21d353=_0x17b0fa==='win32'?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x11c4c5=_0x21d353[_0x67efc1(0x139)](_0x21d353[_0x67efc1(0x139)](_0x21d353[_0x67efc1(0x139)](_0x30171b))),_0x4bd1d5=_0x17b0fa===_0x67efc1(0x17b)?_0x67efc1(0x140):'@lovrabet/lovrabet-cli';let _0x117502=_0x21d353['dirname'](_0x11c4c5);while(!![]){if(_0x21d353[_0x67efc1(0x142)](_0x117502)===_0x67efc1(0x135)&&_0x21d353[_0x67efc1(0x164)](_0x117502,_0x11c4c5)===_0x4bd1d5){const _0xf2de24=_0x21d353[_0x67efc1(0x139)](_0x117502);return _0x21d353[_0x67efc1(0x142)](_0xf2de24)===_0x67efc1(0x16c)?_0x21d353[_0x67efc1(0x139)](_0xf2de24):_0xf2de24;}const _0x297424=_0x21d353[_0x67efc1(0x139)](_0x117502);if(_0x297424===_0x117502)return null;_0x117502=_0x297424;}}function runNpmInstall(_0x3ead9f,_0x10c24b,_0x136e70){const _0x1e9813=a84_0x362b72;console['log']('*\x20'+[_0x3ead9f,..._0x10c24b][_0x1e9813(0x15a)]('\x20'));const _0x1b8cbb=spawnSync(_0x3ead9f,_0x10c24b,{'cwd':process['cwd'](),'stdio':'pipe','env':process.env,'shell':![]}),_0x181588=_0x1b8cbb[_0x1e9813(0x176)]?_0x1b8cbb[_0x1e9813(0x176)]['toString']()[_0x1e9813(0x165)]():'',_0x232918=_0x1b8cbb[_0x1e9813(0x174)]?_0x1b8cbb[_0x1e9813(0x174)][_0x1e9813(0x162)]()[_0x1e9813(0x165)]():'';if(!_0x136e70){if(_0x232918)process[_0x1e9813(0x174)][_0x1e9813(0x189)](_0x232918+'\x0a');if(_0x181588)process['stderr'][_0x1e9813(0x189)](_0x181588+'\x0a');}if(_0x1b8cbb[_0x1e9813(0x13f)]===0x0)return{'ok':!![]};const _0x3ad4c6=_0x1b8cbb[_0x1e9813(0x166)]?.[_0x1e9813(0x13e)]||_0x181588||_0x232918||'exit\x20'+(_0x1b8cbb['status']??_0x1e9813(0x171));return{'ok':![],'error':_0x3ad4c6};}function isNpmPrefixPermissionError(_0xef0520){const _0x338169=a84_0x362b72;return Boolean(_0xef0520&&/\b(?:EACCES|EPERM)\b/[_0x338169(0x137)](_0xef0520));}function repairCurrentBuiltinSkill(_0x1a61e8){const _0x1a9904=a84_0x362b72;console[_0x1a9904(0x15d)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x182449=installBuiltinSkill({'stdio':_0x1a61e8?_0x1a9904(0x152):_0x1a9904(0x180)});if(_0x182449['ok'])return console[_0x1a9904(0x15d)]('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x182449[_0x1a9904(0x15b)]+'\x20is\x20current.'),!![];return console['warn'](_0x1a9904(0x18b)+(_0x182449[_0x1a9904(0x14b)]||'INSTALL_FAILED')+']:\x20'+(_0x182449[_0x1a9904(0x166)]||_0x1a9904(0x171))),console[_0x1a9904(0x15d)]('\x20\x20Run\x20manually:\x20'+_0x182449[_0x1a9904(0x136)]),![];}function verifyUpdatedBuiltinSkill(_0x5a41b2){const _0x19e4d2=a84_0x362b72;console[_0x19e4d2(0x15d)](_0x19e4d2(0x172));const _0x315253=inspectInstalledBuiltinSkillVersion(_0x5a41b2);if(_0x315253[_0x19e4d2(0x154)]===_0x19e4d2(0x15f))return console[_0x19e4d2(0x15d)](_0x19e4d2(0x188)+_0x5a41b2+_0x19e4d2(0x156)),!![];console['warn'](_0x19e4d2(0x185)+_0x315253[_0x19e4d2(0x154)]+'.');if(_0x315253['reason'])console[_0x19e4d2(0x177)]('\x20\x20'+_0x315253['reason']);return console[_0x19e4d2(0x15d)](_0x19e4d2(0x18a)+_0x315253['repairCommand']),![];}async function execute(_0x33aeff){const _0x3c8e7b=a84_0x362b72;await validateUpdateFlags(_0x33aeff);const _0x5a9d5d=getCliVersion();console['log'](_0x3c8e7b(0x14a)+_0x5a9d5d),console[_0x3c8e7b(0x15d)](_0x3c8e7b(0x182));const _0x1fbcd8=await resolveTargetVersion(_0x33aeff);if(!_0x1fbcd8){const _0x361310=_0x33aeff[_0x3c8e7b(0x143)](_0x3c8e7b(0x168))?_0x3c8e7b(0x168):_0x3c8e7b(0x15e),_0xc8abd7=_0x3c8e7b(0x13b)+_0x361310+_0x3c8e7b(0x16e);return console[_0x3c8e7b(0x177)](_0xc8abd7),console[_0x3c8e7b(0x15d)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x361310),{'ok':![]};}const _0x421301=[_0x5a9d5d,_0x1fbcd8[_0x3c8e7b(0x146)]]['find'](_0x52c97e=>!a84_0x34d186[_0x3c8e7b(0x145)](_0x52c97e));if(_0x421301)return console[_0x3c8e7b(0x177)](_0x3c8e7b(0x14f)+_0x421301+'.'),{'ok':![]};if(!shouldInstallTarget(_0x5a9d5d,_0x1fbcd8)){const _0x5b6c13=_0x1fbcd8[_0x3c8e7b(0x16f)]===_0x3c8e7b(0x146)?_0x3c8e7b(0x187)+_0x1fbcd8[_0x3c8e7b(0x146)]+').':_0x3c8e7b(0x15c)+_0x1fbcd8[_0x3c8e7b(0x146)]+').';return console[_0x3c8e7b(0x15d)](_0x5b6c13),{'ok':repairCurrentBuiltinSkill(_0x33aeff['nonInteractive'])};}console['log']('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x5a9d5d+_0x3c8e7b(0x151)+_0x1fbcd8['version']);const _0x25d92f=installCliPackage(_0x1fbcd8[_0x3c8e7b(0x146)],_0x33aeff[_0x3c8e7b(0x16a)]);if(!_0x25d92f['ok']){const _0x1cb4f6='Update\x20failed:\x20'+(_0x25d92f['error']||_0x3c8e7b(0x171));return console[_0x3c8e7b(0x166)](_0x1cb4f6),console[_0x3c8e7b(0x15d)](_0x3c8e7b(0x167)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x1fbcd8[_0x3c8e7b(0x146)]),{'ok':![]};}return console[_0x3c8e7b(0x15d)](_0x3c8e7b(0x179)+_0x1fbcd8['version']+'.'),console['log'](_0x3c8e7b(0x13c)),{'ok':verifyUpdatedBuiltinSkill(_0x1fbcd8[_0x3c8e7b(0x146)])};}export const updateDefinition={'service':a84_0x362b72(0x160),'command':a84_0x362b72(0x157),'description':a84_0x362b72(0x16d)+CLI_BIN_NAME+a84_0x362b72(0x138),'risk':a84_0x362b72(0x186),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- const a85_0x5133c4=a85_0x45ee;(function(_0x5d3947,_0x24c3c9){const _0x45ab29=a85_0x45ee,_0x5ae14b=_0x5d3947();while(!![]){try{const _0x3210e5=parseInt(_0x45ab29(0xeb))/0x1+parseInt(_0x45ab29(0xe0))/0x2+-parseInt(_0x45ab29(0xe7))/0x3+-parseInt(_0x45ab29(0xe8))/0x4+-parseInt(_0x45ab29(0xe6))/0x5*(-parseInt(_0x45ab29(0xdb))/0x6)+parseInt(_0x45ab29(0xee))/0x7*(parseInt(_0x45ab29(0xf4))/0x8)+parseInt(_0x45ab29(0xd9))/0x9*(-parseInt(_0x45ab29(0xf7))/0xa);if(_0x3210e5===_0x24c3c9)break;else _0x5ae14b['push'](_0x5ae14b['shift']());}catch(_0x57c29f){_0x5ae14b['push'](_0x5ae14b['shift']());}}}(a85_0x4435,0x9e718));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_0x5133c4(0xf0)];function readBindingInput(_0x4a5568){const _0x2fdbe8=a85_0x5133c4,_0x55768e=_0x4a5568['str']('provider')[_0x2fdbe8(0xed)]()['toLowerCase']();if(!SUPPORTED_PROVIDERS[_0x2fdbe8(0xdc)](_0x55768e))throw CliErrors[_0x2fdbe8(0xf6)](_0x2fdbe8(0xf2)+(_0x55768e||_0x2fdbe8(0xef))+'.',_0x2fdbe8(0xe3)+SUPPORTED_PROVIDERS[_0x2fdbe8(0xe1)](',\x20')+'.');const _0x4e0000=_0x4a5568['str'](_0x2fdbe8(0xdd))[_0x2fdbe8(0xed)]();if(!_0x4e0000)throw CliErrors[_0x2fdbe8(0xf6)](_0x2fdbe8(0xe2),_0x2fdbe8(0xe5));return{'provider':_0x55768e,'accountId':_0x4e0000};}function buildBindingData(_0x27dad8,_0x5698e4,_0x392d52){const _0x4e497=a85_0x5133c4;return{'operation':_0x4e497(0xec),'selector':{'provider':_0x27dad8,'accountId':_0x5698e4},'before':null,'after':{'provider':_0x27dad8,'accountId':_0x5698e4,'bound':!![]},'dryRun':_0x392d52,'warnings':[CURRENT_BINDING_WARNING]};}function a85_0x45ee(_0x3b357e,_0x3b7f6c){_0x3b357e=_0x3b357e-0xd9;const _0x44357c=a85_0x4435();let _0x45ee4a=_0x44357c[_0x3b357e];return _0x45ee4a;}function a85_0x4435(){const _0x48f1ca=['POST','1097847MNufJd','bind','trim','925092vwFRgL','(empty)','dingtalk','string','Unsupported\x20provider:\x20','provider','56xchnUm','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.','validation','710ooScjC','Binds\x20the\x20platform\x20user\x20of\x20the\x20current\x20AccessKey\x20to\x20the\x20given\x20collaboration-provider\x20account.\x20An\x20existing\x20bind\x20for\x20the\x20same\x20provider\x20may\x20be\x20replaced.','83646IYFdAT','External\x20account\x20ID\x20for\x20the\x20selected\x20provider','30OdHguR','includes','account-id','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','Bound\x20current\x20user\x20to\x20external\x20provider\x20account.','439628AfcTRq','join','--account-id\x20cannot\x20be\x20empty.','Pass\x20one\x20of:\x20','user-account','Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.','228815NEPgwS','1919889UfHeqQ','2090988imoNTw','write'];a85_0x4435=function(){return _0x48f1ca;};return a85_0x4435();}export const bindUserAccount={'service':a85_0x5133c4(0xe4),'command':a85_0x5133c4(0xec),'description':a85_0x5133c4(0xde),'risk':a85_0x5133c4(0xe9),'confirmationDescription':a85_0x5133c4(0xf8),'requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':a85_0x5133c4(0xf3),'type':a85_0x5133c4(0xf1),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':'External\x20account\x20provider'},{'name':a85_0x5133c4(0xdd),'type':a85_0x5133c4(0xf1),'required':!![],'description':a85_0x5133c4(0xda)}],async 'validate'(_0x499ed0){readBindingInput(_0x499ed0);},async 'dryRun'(_0x54f76b){const _0x33e030=a85_0x5133c4,{provider:_0x47f286,accountId:_0x39d134}=readBindingInput(_0x54f76b);return{...buildBindingData(_0x47f286,_0x39d134,!![]),'method':_0x33e030(0xea),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x47f286,'accountId':_0x39d134}};},async 'execute'(_0xead88f){const _0x50ab33=a85_0x5133c4,{provider:_0x2a89b1,accountId:_0x180b1c}=readBindingInput(_0xead88f),_0x5729c0=await bindExternalUserAccount(_0x2a89b1,_0x180b1c);if(_0x5729c0!==!![])throw CliErrors['apiError']('External\x20account\x20binding\x20was\x20not\x20confirmed.',_0x50ab33(0xf5));return{'ok':!![],'data':buildBindingData(_0x2a89b1,_0x180b1c,![]),'message':_0x50ab33(0xdf)};}};
1
+ function a85_0x2deb(){const _0x376377=['The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','885878vhvGWm','validation','Pass\x20one\x20of:\x20','12390ODeGms','user-account','apiError','355TUGMJx','5337772UzNjsx','375214cRIWqQ','1758456uLEskD','account-id','--account-id\x20cannot\x20be\x20empty.','trim','str','POST','External\x20account\x20provider','External\x20account\x20binding\x20was\x20not\x20confirmed.','Unsupported\x20provider:\x20','549379DFPfWN','26905460pbbCzz','Binds\x20the\x20platform\x20user\x20of\x20the\x20current\x20AccessKey\x20to\x20the\x20given\x20collaboration-provider\x20account.\x20An\x20existing\x20bind\x20for\x20the\x20same\x20provider\x20may\x20be\x20replaced.','string','includes','15AQbKDS','External\x20account\x20ID\x20for\x20the\x20selected\x20provider','120CxcSpN','provider'];a85_0x2deb=function(){return _0x376377;};return a85_0x2deb();}function a85_0x3706(_0x4a25aa,_0x411876){_0x4a25aa=_0x4a25aa-0xbb;const _0x2debd1=a85_0x2deb();let _0x3706a8=_0x2debd1[_0x4a25aa];return _0x3706a8;}const a85_0x470313=a85_0x3706;(function(_0x32b032,_0x1d3ae1){const _0x4e5255=a85_0x3706,_0xc1990b=_0x32b032();while(!![]){try{const _0x57f9b6=-parseInt(_0x4e5255(0xcc))/0x1+parseInt(_0x4e5255(0xc2))/0x2*(parseInt(_0x4e5255(0xd1))/0x3)+parseInt(_0x4e5255(0xc1))/0x4+-parseInt(_0x4e5255(0xc0))/0x5*(parseInt(_0x4e5255(0xbd))/0x6)+-parseInt(_0x4e5255(0xd6))/0x7*(-parseInt(_0x4e5255(0xd3))/0x8)+parseInt(_0x4e5255(0xc3))/0x9+-parseInt(_0x4e5255(0xcd))/0xa;if(_0x57f9b6===_0x1d3ae1)break;else _0xc1990b['push'](_0xc1990b['shift']());}catch(_0x402c6f){_0xc1990b['push'](_0xc1990b['shift']());}}}(a85_0x2deb,0xef2b0));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING=a85_0x470313(0xd5),SUPPORTED_PROVIDERS=['dingtalk'];function readBindingInput(_0x4cdf51){const _0x15ce4a=a85_0x470313,_0x197016=_0x4cdf51[_0x15ce4a(0xc7)](_0x15ce4a(0xd4))[_0x15ce4a(0xc6)]()['toLowerCase']();if(!SUPPORTED_PROVIDERS[_0x15ce4a(0xd0)](_0x197016))throw CliErrors[_0x15ce4a(0xbb)](_0x15ce4a(0xcb)+(_0x197016||'(empty)')+'.',_0x15ce4a(0xbc)+SUPPORTED_PROVIDERS['join'](',\x20')+'.');const _0x39c8d6=_0x4cdf51[_0x15ce4a(0xc7)](_0x15ce4a(0xc4))[_0x15ce4a(0xc6)]();if(!_0x39c8d6)throw CliErrors[_0x15ce4a(0xbb)](_0x15ce4a(0xc5),'Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.');return{'provider':_0x197016,'accountId':_0x39c8d6};}function buildBindingData(_0x1bbf0f,_0x2f93d9,_0x5e946c){return{'operation':'bind','selector':{'provider':_0x1bbf0f,'accountId':_0x2f93d9},'before':null,'after':{'provider':_0x1bbf0f,'accountId':_0x2f93d9,'bound':!![]},'dryRun':_0x5e946c,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a85_0x470313(0xbe),'command':'bind','description':'Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','risk':'write','confirmationDescription':a85_0x470313(0xce),'requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':'provider','type':'string','required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a85_0x470313(0xc9)},{'name':a85_0x470313(0xc4),'type':a85_0x470313(0xcf),'required':!![],'description':a85_0x470313(0xd2)}],async 'validate'(_0x4e4508){readBindingInput(_0x4e4508);},async 'dryRun'(_0xa97d3a){const _0x2f19b9=a85_0x470313,{provider:_0x2c9645,accountId:_0x322541}=readBindingInput(_0xa97d3a);return{...buildBindingData(_0x2c9645,_0x322541,!![]),'method':_0x2f19b9(0xc8),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x2c9645,'accountId':_0x322541}};},async 'execute'(_0x234730){const _0x5f0aca=a85_0x470313,{provider:_0x268057,accountId:_0x174d04}=readBindingInput(_0x234730),_0x2dfc5a=await bindExternalUserAccount(_0x268057,_0x174d04);if(_0x2dfc5a!==!![])throw CliErrors[_0x5f0aca(0xbf)](_0x5f0aca(0xca),'Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.');return{'ok':!![],'data':buildBindingData(_0x268057,_0x174d04,![]),'message':'Bound\x20current\x20user\x20to\x20external\x20provider\x20account.'};}};
@@ -1 +1 @@
1
- function a86_0x43ff(_0x443e05,_0x401aaf){_0x443e05=_0x443e05-0x1d4;const _0x5cbfc7=a86_0x5cbf();let _0x43ffd2=_0x5cbfc7[_0x443e05];return _0x43ffd2;}(function(_0x24251d,_0x2ae073){const _0x308cda=a86_0x43ff,_0x5f2a58=_0x24251d();while(!![]){try{const _0x2f8072=parseInt(_0x308cda(0x1d5))/0x1*(-parseInt(_0x308cda(0x1de))/0x2)+parseInt(_0x308cda(0x1da))/0x3+-parseInt(_0x308cda(0x1d7))/0x4+-parseInt(_0x308cda(0x1d8))/0x5*(parseInt(_0x308cda(0x1df))/0x6)+-parseInt(_0x308cda(0x1d9))/0x7*(parseInt(_0x308cda(0x1d4))/0x8)+parseInt(_0x308cda(0x1dd))/0x9*(parseInt(_0x308cda(0x1dc))/0xa)+parseInt(_0x308cda(0x1db))/0xb*(parseInt(_0x308cda(0x1d6))/0xc);if(_0x2f8072===_0x2ae073)break;else _0x5f2a58['push'](_0x5f2a58['shift']());}catch(_0x1fe245){_0x5f2a58['push'](_0x5f2a58['shift']());}}}(a86_0x5cbf,0xbf665));import{bindUserAccount}from'../../commands/user-account/bind.js';export const userAccountDefinitions=[bindUserAccount];function a86_0x5cbf(){const _0x27d5e9=['9709931jZqlfs','106323kmiSRM','5962ypuzbm','10VFYEkx','3152205upNRtp','358886IynjCj','18iPDMti','8YjgFkz','2XFfEnn','88596LvNdRY','3494248PfwyOW','1639530rZtWFa'];a86_0x5cbf=function(){return _0x27d5e9;};return a86_0x5cbf();}
1
+ function a86_0x44c1(){const _0x190349=['50885UcRiXA','228LVxTVj','30HbnOWQ','47641zqaVTW','127567ubVYGZ','267975rJuvcF','2106RHDdjq','4004ExVFMO','12POYiCq','12048qlvsDM','554031iJLkTO','8TneqQl'];a86_0x44c1=function(){return _0x190349;};return a86_0x44c1();}(function(_0x22dc49,_0x23d956){const _0x321507=a86_0x8918,_0x2588a4=_0x22dc49();while(!![]){try{const _0x423241=parseInt(_0x321507(0x1d8))/0x1*(-parseInt(_0x321507(0x1d4))/0x2)+parseInt(_0x321507(0x1da))/0x3+-parseInt(_0x321507(0x1d1))/0x4*(parseInt(_0x321507(0x1d5))/0x5)+parseInt(_0x321507(0x1cf))/0x6*(parseInt(_0x321507(0x1d0))/0x7)+-parseInt(_0x321507(0x1d2))/0x8+-parseInt(_0x321507(0x1d3))/0x9*(parseInt(_0x321507(0x1d7))/0xa)+-parseInt(_0x321507(0x1d9))/0xb*(-parseInt(_0x321507(0x1d6))/0xc);if(_0x423241===_0x23d956)break;else _0x2588a4['push'](_0x2588a4['shift']());}catch(_0x2f7ddb){_0x2588a4['push'](_0x2588a4['shift']());}}}(a86_0x44c1,0x192fa));import{bindUserAccount}from'../../commands/user-account/bind.js';function a86_0x8918(_0x5791c8,_0x31bb30){_0x5791c8=_0x5791c8-0x1cf;const _0x44c152=a86_0x44c1();let _0x891890=_0x44c152[_0x5791c8];return _0x891890;}export const userAccountDefinitions=[bindUserAccount];
@@ -1 +1 @@
1
- const a87_0x457069=a87_0x5d27;(function(_0x3c8140,_0xebaa29){const _0x37309c=a87_0x5d27,_0x56c7ac=_0x3c8140();while(!![]){try{const _0x4094cb=-parseInt(_0x37309c(0x146))/0x1*(parseInt(_0x37309c(0x171))/0x2)+-parseInt(_0x37309c(0x145))/0x3*(parseInt(_0x37309c(0x16e))/0x4)+-parseInt(_0x37309c(0x151))/0x5+-parseInt(_0x37309c(0x153))/0x6+-parseInt(_0x37309c(0x160))/0x7*(-parseInt(_0x37309c(0x16f))/0x8)+parseInt(_0x37309c(0x143))/0x9*(parseInt(_0x37309c(0x158))/0xa)+parseInt(_0x37309c(0x13c))/0xb;if(_0x4094cb===_0xebaa29)break;else _0x56c7ac['push'](_0x56c7ac['shift']());}catch(_0x3f82a7){_0x56c7ac['push'](_0x56c7ac['shift']());}}}(a87_0x4042,0xdc0e4));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':'app','type':a87_0x457069(0x147),'description':a87_0x457069(0x150)},{'name':a87_0x457069(0x142),'type':a87_0x457069(0x147),'description':a87_0x457069(0x137)},{'name':a87_0x457069(0x15f),'type':a87_0x457069(0x147),'description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x38fb41,_0x9e22d7){const _0x42221d=a87_0x457069,_0x4c4ee9=_0x38fb41['str']('app')[_0x42221d(0x167)](),_0x5e6d00=_0x38fb41[_0x42221d(0x144)](_0x42221d(0x142))[_0x42221d(0x167)](),_0x435567=_0x38fb41[_0x42221d(0x144)](_0x42221d(0x15f))[_0x42221d(0x167)](),_0x1307e5=resolveWorkspaceEnv(_0x435567||_0x38fb41[_0x42221d(0x165)]||DEFAULT_CONFIG_VALUES[_0x42221d(0x15f)]);if(!_0x4c4ee9&&!_0x5e6d00)throw CliErrors['validation'](_0x42221d(0x16d),_0x42221d(0x157)+CLI_BIN_NAME+_0x42221d(0x172)+_0x9e22d7+_0x42221d(0x13b)+CLI_BIN_NAME+_0x42221d(0x172)+_0x9e22d7+'\x20--appcode\x20<code>\x20[--env\x20daily]');if(_0x4c4ee9&&_0x5e6d00)throw CliErrors[_0x42221d(0x166)](_0x42221d(0x13a),'Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.');const _0x1ab3ee=resolveWriteConfigPath(_0x42221d(0x15e)),_0xa449e9=readConfigFile(_0x1ab3ee);assertWorkspaceCommandState(_0x9e22d7,_0xa449e9);const _0x3fb5ac=_0x5e6d00||await resolveRemoteAppCode({'command':_0x9e22d7,'appName':_0x4c4ee9,'env':_0x1307e5,'accessKey':_0x38fb41[_0x42221d(0x15c)]});return writeWorkspaceConfig({'command':_0x9e22d7,'appName':_0x4c4ee9,'appcode':_0x3fb5ac,'env':_0x1307e5,'shouldWriteEnv':!!_0x435567,'accessKey':_0x38fb41[_0x42221d(0x15c)]},_0x1ab3ee,_0xa449e9),{'ok':!![],'data':{'configPath':_0x1ab3ee,'app':_0x4c4ee9||null,'appcode':_0x3fb5ac,'env':_0x435567?_0x1307e5:null,'accessKeyWritten':![],'command':_0x42221d(0x15d)+_0x9e22d7},'message':buildWorkspaceMessage(_0x1ab3ee,_0x4c4ee9,_0x3fb5ac,_0x435567?_0x1307e5:undefined)};}async function resolveRemoteAppCode(_0xc1545f){const _0xef963a=a87_0x457069;if(!_0xc1545f[_0xef963a(0x15c)])throw CliErrors[_0xef963a(0x16b)](_0xef963a(0x14d)+CLI_BIN_NAME+_0xef963a(0x172)+_0xc1545f[_0xef963a(0x136)]+'.');const {setActiveAK:_0x487a64}=await import('../../core/api-client.js'),{getRemoteAppList:_0x3d7608}=await import(_0xef963a(0x173));_0x487a64(_0xc1545f[_0xef963a(0x15c)]);const _0x40677a=await _0x3d7608({'env':_0xc1545f[_0xef963a(0x15f)],'accessKey':_0xc1545f[_0xef963a(0x15c)],'noCache':![]}),_0x46c3e2=findAppByName(_0x40677a[_0xef963a(0x16c)],_0xc1545f[_0xef963a(0x15b)]);if(_0x46c3e2&&!isRuntimeAccessibleApp(_0x46c3e2))throw runtimeInaccessibleAppError(_0x46c3e2,'\x22'+_0xc1545f[_0xef963a(0x15b)]+'\x22');const _0x4b29e0=_0x46c3e2?.['appCode']?.[_0xef963a(0x167)]();if(_0x4b29e0)return _0x4b29e0;const _0x58e2e5=_0x40677a['items'][_0xef963a(0x159)](_0xbe01a7=>_0xbe01a7[_0xef963a(0x15b)])['filter'](Boolean),_0x146209=_0x58e2e5[_0xef963a(0x140)]?'Available\x20apps:\x20'+Array[_0xef963a(0x161)](new Set(_0x58e2e5))[_0xef963a(0x149)](',\x20')+'.':_0xef963a(0x14e)+CLI_BIN_NAME+_0xef963a(0x139);throw CliErrors[_0xef963a(0x166)]('App\x20\x22'+_0xc1545f[_0xef963a(0x15b)]+_0xef963a(0x15a),_0x146209);}function writeWorkspaceConfig(_0x153530,_0x56b8fd,_0x282d47){const _0x576158=a87_0x457069;_0x153530[_0x576158(0x13f)]&&(_0x282d47[_0x576158(0x15f)]=_0x153530[_0x576158(0x15f)]);if(_0x153530[_0x576158(0x15b)]){const _0x60be1f=isRecord(_0x282d47[_0x576158(0x141)])?{..._0x282d47['apps']}:{},_0x3c0525=isRecord(_0x60be1f[_0x153530['appName']])?_0x60be1f[_0x153530[_0x576158(0x15b)]]:{};return _0x60be1f[_0x153530['appName']]={..._0x3c0525,'appcode':_0x153530[_0x576158(0x142)]},_0x282d47['apps']=_0x60be1f,_0x282d47['defaultApp']=_0x153530[_0x576158(0x15b)],delete _0x282d47[_0x576158(0x142)],delete _0x282d47[_0x576158(0x14b)],writeAndReturn(_0x56b8fd,_0x282d47);}return _0x282d47[_0x576158(0x142)]=_0x153530['appcode'],delete _0x282d47[_0x576158(0x162)],delete _0x282d47[_0x576158(0x14b)],writeAndReturn(_0x56b8fd,_0x282d47);}function writeAndReturn(_0xb258d8,_0x5f3c4b){return writeConfigFile(_0xb258d8,_0x5f3c4b),_0xb258d8;}function resolveWorkspaceEnv(_0x46b285){const _0x19cbfc=a87_0x457069;if(RUNTIME_ENV_VALUES[_0x19cbfc(0x13d)](_0x46b285))return _0x46b285;throw CliErrors[_0x19cbfc(0x166)]('Invalid\x20env\x20\x22'+_0x46b285+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x19cbfc(0x149)](',\x20'));}function a87_0x5d27(_0x39b17a,_0x40ea5d){_0x39b17a=_0x39b17a-0x136;const _0x404287=a87_0x4042();let _0x5d271a=_0x404287[_0x39b17a];return _0x5d271a;}function buildWorkspaceMessage(_0xe8b0db,_0x158e18,_0x4492bd,_0x10acdb){const _0x5b941f=a87_0x457069,_0x18719d=_0x158e18?_0x158e18+'\x20('+_0x4492bd+')':_0x4492bd,_0x1100d8=_0x10acdb?_0x5b941f(0x163)+_0x10acdb:'';return _0x5b941f(0x13e)+_0xe8b0db+_0x5b941f(0x14a)+_0x18719d+_0x1100d8+_0x5b941f(0x155);}function isRecord(_0x571911){const _0x54499f=a87_0x457069;return typeof _0x571911==='object'&&_0x571911!==null&&!Array[_0x54499f(0x14c)](_0x571911);}function hasWorkspaceAppBinding(_0x1de83e){const _0x5640b1=a87_0x457069;if(typeof _0x1de83e[_0x5640b1(0x142)]===_0x5640b1(0x147)&&_0x1de83e['appcode'][_0x5640b1(0x167)]()[_0x5640b1(0x140)]>0x0)return!![];if(typeof _0x1de83e[_0x5640b1(0x162)]!==_0x5640b1(0x147)||!_0x1de83e[_0x5640b1(0x162)][_0x5640b1(0x167)]())return![];if(!isRecord(_0x1de83e[_0x5640b1(0x141)]))return![];const _0x4de46f=_0x1de83e[_0x5640b1(0x141)][_0x1de83e[_0x5640b1(0x162)][_0x5640b1(0x167)]()];return isRecord(_0x4de46f)&&typeof _0x4de46f[_0x5640b1(0x142)]==='string'&&_0x4de46f[_0x5640b1(0x142)][_0x5640b1(0x167)]()['length']>0x0;}function a87_0x4042(){const _0x3a7ef7=['App\x20code\x20to\x20bind\x20directly','Change\x20the\x20app\x20context\x20already\x20bound\x20to\x20the\x20current\x20working\x20directory','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','Conflicting\x20workspace\x20app\x20selectors.','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','20317330RwkgQa','includes','Workspace\x20configured.\x0aConfig\x20file:\x20','shouldWriteEnv','length','apps','appcode','9frPOoV','str','3LQqFhM','49TDOcCv','string','workspace','join','\x0aDefault\x20app:\x20','app','isArray','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','Run\x20`','Updates\x20the\x20app\x20binding\x20already\x20present\x20in\x20the\x20current\x20working\x20directory\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','5923890AYsQTZ','Workspace\x20app\x20context\x20is\x20not\x20initialized.','565272igsYtr','Initialize\x20app\x20context\x20for\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet','\x0aAccessKey:\x20not\x20written','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','Usage:\x20','17569430nMDnEI','map','\x22\x20not\x20found.','appName','accessKey','workspace\x20','project','env','2373fdTbfl','from','defaultApp','\x0aEnv:\x20','init','envName','validation','trim','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','use','Workspace\x20app\x20context\x20is\x20already\x20initialized.','authRequired','items','Missing\x20workspace\x20app\x20selector.','4977828iDksRf','15160VyNVgE','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','33534waqWLZ','\x20workspace\x20','../../commands/app/remote-source.js','command'];a87_0x4042=function(){return _0x3a7ef7;};return a87_0x4042();}function assertWorkspaceCommandState(_0xbe3e7c,_0x322224){const _0xa11225=a87_0x457069,_0x4aaeca=hasWorkspaceAppBinding(_0x322224);if(_0xbe3e7c===_0xa11225(0x164)&&_0x4aaeca)throw CliErrors[_0xa11225(0x166)](_0xa11225(0x16a),'Use\x20`'+CLI_BIN_NAME+_0xa11225(0x168)+CLI_BIN_NAME+'\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.');if(_0xbe3e7c==='use'&&!_0x4aaeca)throw CliErrors[_0xa11225(0x166)](_0xa11225(0x152),_0xa11225(0x14e)+CLI_BIN_NAME+_0xa11225(0x156)+CLI_BIN_NAME+_0xa11225(0x170));}function makeWorkspaceCommand(_0x230757){const _0x14741a=a87_0x457069;return{'service':_0x14741a(0x148),'command':_0x230757,'description':_0x230757==='init'?_0x14741a(0x154):_0x14741a(0x138),'risk':'write','confirmationDescription':_0x230757===_0x14741a(0x164)?'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.':_0x14741a(0x14f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x5bf466){return executeWorkspaceUse(_0x5bf466,_0x230757);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a87_0x457069(0x164)),makeWorkspaceCommand(a87_0x457069(0x169))];
1
+ const a87_0x1ec8b5=a87_0xe47f;(function(_0xa418bd,_0xaaa7fc){const _0x337817=a87_0xe47f,_0x24b6ed=_0xa418bd();while(!![]){try{const _0x117810=parseInt(_0x337817(0xd0))/0x1+-parseInt(_0x337817(0xd3))/0x2+parseInt(_0x337817(0xba))/0x3*(-parseInt(_0x337817(0xe4))/0x4)+-parseInt(_0x337817(0xb3))/0x5+parseInt(_0x337817(0xb5))/0x6+parseInt(_0x337817(0xe5))/0x7+parseInt(_0x337817(0xe8))/0x8*(parseInt(_0x337817(0xdc))/0x9);if(_0x117810===_0xaaa7fc)break;else _0x24b6ed['push'](_0x24b6ed['shift']());}catch(_0x3e6c7f){_0x24b6ed['push'](_0x24b6ed['shift']());}}}(a87_0x265e,0xd6ccb));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';function a87_0x265e(){const _0x24a3f1=['\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','App\x20\x22','isArray','74248ybcgDS','1437401gQJCnj','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','\x20workspace\x20','204712OoSFDW','appName','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.','join','length','defaultApp','envName','../../commands/app/remote-source.js','appcode','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','4084605rGurwG','shouldWriteEnv','4686324oMbHrG','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','str','includes','39MudStL','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','\x22\x20not\x20found.','Conflicting\x20workspace\x20app\x20selectors.','Usage:\x20','apps','Use\x20`','object','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','accessKey','filter','items','Missing\x20workspace\x20app\x20selector.','trim','Workspace\x20app\x20context\x20is\x20not\x20initialized.','validation','map','command','\x20--appcode\x20<code>\x20[--env\x20daily]','\x22.\x20Allowed:\x20','env','string','648586wXYvvv','workspace','Updates\x20the\x20app\x20binding\x20already\x20present\x20in\x20the\x20current\x20working\x20directory\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','878036AXPdZV','Target\x20environment','authRequired','init','app','appCode','App\x20code\x20to\x20bind\x20directly','write','Change\x20the\x20app\x20context\x20already\x20bound\x20to\x20the\x20current\x20working\x20directory','261vHZtfd','Available\x20apps:\x20','Initialize\x20app\x20context\x20for\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet','from','project'];a87_0x265e=function(){return _0x24a3f1;};return a87_0x265e();}function a87_0xe47f(_0x37ce3d,_0x1f9b70){_0x37ce3d=_0x37ce3d-0xaf;const _0x265e6c=a87_0x265e();let _0xe47fd4=_0x265e6c[_0x37ce3d];return _0xe47fd4;}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_0x1ec8b5(0xd7),'type':'string','description':a87_0x1ec8b5(0xc2)},{'name':a87_0x1ec8b5(0xb1),'type':a87_0x1ec8b5(0xcf),'description':a87_0x1ec8b5(0xd9)},{'name':a87_0x1ec8b5(0xce),'type':'string','description':a87_0x1ec8b5(0xd4),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x51803d,_0x274aa5){const _0x708c19=a87_0x1ec8b5,_0x4f3613=_0x51803d['str']('app')[_0x708c19(0xc7)](),_0x31faf0=_0x51803d[_0x708c19(0xb8)](_0x708c19(0xb1))[_0x708c19(0xc7)](),_0x1f1bbc=_0x51803d[_0x708c19(0xb8)](_0x708c19(0xce))[_0x708c19(0xc7)](),_0x54fa20=resolveWorkspaceEnv(_0x1f1bbc||_0x51803d[_0x708c19(0xaf)]||DEFAULT_CONFIG_VALUES[_0x708c19(0xce)]);if(!_0x4f3613&&!_0x31faf0)throw CliErrors['validation'](_0x708c19(0xc6),_0x708c19(0xbe)+CLI_BIN_NAME+_0x708c19(0xe7)+_0x274aa5+_0x708c19(0xbb)+CLI_BIN_NAME+'\x20workspace\x20'+_0x274aa5+_0x708c19(0xcc));if(_0x4f3613&&_0x31faf0)throw CliErrors[_0x708c19(0xc9)](_0x708c19(0xbd),_0x708c19(0xb2));const _0x358beb=resolveWriteConfigPath(_0x708c19(0xe0)),_0x438319=readConfigFile(_0x358beb);assertWorkspaceCommandState(_0x274aa5,_0x438319);const _0x540014=_0x31faf0||await resolveRemoteAppCode({'command':_0x274aa5,'appName':_0x4f3613,'env':_0x54fa20,'accessKey':_0x51803d[_0x708c19(0xc3)]});return writeWorkspaceConfig({'command':_0x274aa5,'appName':_0x4f3613,'appcode':_0x540014,'env':_0x54fa20,'shouldWriteEnv':!!_0x1f1bbc,'accessKey':_0x51803d[_0x708c19(0xc3)]},_0x358beb,_0x438319),{'ok':!![],'data':{'configPath':_0x358beb,'app':_0x4f3613||null,'appcode':_0x540014,'env':_0x1f1bbc?_0x54fa20:null,'accessKeyWritten':![],'command':'workspace\x20'+_0x274aa5},'message':buildWorkspaceMessage(_0x358beb,_0x4f3613,_0x540014,_0x1f1bbc?_0x54fa20:undefined)};}async function resolveRemoteAppCode(_0x4bc97b){const _0x3c1f54=a87_0x1ec8b5;if(!_0x4bc97b['accessKey'])throw CliErrors[_0x3c1f54(0xd5)](_0x3c1f54(0xb6)+CLI_BIN_NAME+_0x3c1f54(0xe7)+_0x4bc97b[_0x3c1f54(0xcb)]+'.');const {setActiveAK:_0x58686e}=await import('../../core/api-client.js'),{getRemoteAppList:_0x2895da}=await import(_0x3c1f54(0xb0));_0x58686e(_0x4bc97b[_0x3c1f54(0xc3)]);const _0x2a6971=await _0x2895da({'env':_0x4bc97b['env'],'accessKey':_0x4bc97b[_0x3c1f54(0xc3)],'noCache':![]}),_0x38d258=findAppByName(_0x2a6971[_0x3c1f54(0xc5)],_0x4bc97b[_0x3c1f54(0xe9)]);if(_0x38d258&&!isRuntimeAccessibleApp(_0x38d258))throw runtimeInaccessibleAppError(_0x38d258,'\x22'+_0x4bc97b[_0x3c1f54(0xe9)]+'\x22');const _0x29e3a1=_0x38d258?.[_0x3c1f54(0xd8)]?.[_0x3c1f54(0xc7)]();if(_0x29e3a1)return _0x29e3a1;const _0x530ab9=_0x2a6971[_0x3c1f54(0xc5)][_0x3c1f54(0xca)](_0x20406d=>_0x20406d[_0x3c1f54(0xe9)])[_0x3c1f54(0xc4)](Boolean),_0x3d3347=_0x530ab9['length']?_0x3c1f54(0xdd)+Array[_0x3c1f54(0xdf)](new Set(_0x530ab9))[_0x3c1f54(0xeb)](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.';throw CliErrors[_0x3c1f54(0xc9)](_0x3c1f54(0xe2)+_0x4bc97b[_0x3c1f54(0xe9)]+_0x3c1f54(0xbc),_0x3d3347);}function writeWorkspaceConfig(_0xc521a0,_0x5af623,_0x5b5d26){const _0x712426=a87_0x1ec8b5;_0xc521a0[_0x712426(0xb4)]&&(_0x5b5d26[_0x712426(0xce)]=_0xc521a0[_0x712426(0xce)]);if(_0xc521a0[_0x712426(0xe9)]){const _0x447924=isRecord(_0x5b5d26[_0x712426(0xbf)])?{..._0x5b5d26[_0x712426(0xbf)]}:{},_0x12eb13=isRecord(_0x447924[_0xc521a0[_0x712426(0xe9)]])?_0x447924[_0xc521a0[_0x712426(0xe9)]]:{};return _0x447924[_0xc521a0['appName']]={..._0x12eb13,'appcode':_0xc521a0[_0x712426(0xb1)]},_0x5b5d26[_0x712426(0xbf)]=_0x447924,_0x5b5d26['defaultApp']=_0xc521a0[_0x712426(0xe9)],delete _0x5b5d26['appcode'],delete _0x5b5d26[_0x712426(0xd7)],writeAndReturn(_0x5af623,_0x5b5d26);}return _0x5b5d26[_0x712426(0xb1)]=_0xc521a0[_0x712426(0xb1)],delete _0x5b5d26[_0x712426(0xed)],delete _0x5b5d26['app'],writeAndReturn(_0x5af623,_0x5b5d26);}function writeAndReturn(_0x32aafd,_0x2422b4){return writeConfigFile(_0x32aafd,_0x2422b4),_0x32aafd;}function resolveWorkspaceEnv(_0x17282f){const _0x4d935d=a87_0x1ec8b5;if(RUNTIME_ENV_VALUES[_0x4d935d(0xb9)](_0x17282f))return _0x17282f;throw CliErrors['validation']('Invalid\x20env\x20\x22'+_0x17282f+_0x4d935d(0xcd)+RUNTIME_ENV_VALUES[_0x4d935d(0xeb)](',\x20'));}function buildWorkspaceMessage(_0x2f6718,_0x1b7954,_0x43b40d,_0xbe4293){const _0x3d03b6=_0x1b7954?_0x1b7954+'\x20('+_0x43b40d+')':_0x43b40d,_0x591eda=_0xbe4293?'\x0aEnv:\x20'+_0xbe4293:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x2f6718+'\x0aDefault\x20app:\x20'+_0x3d03b6+_0x591eda+'\x0aAccessKey:\x20not\x20written';}function isRecord(_0x2ef827){const _0x2513de=a87_0x1ec8b5;return typeof _0x2ef827===_0x2513de(0xc1)&&_0x2ef827!==null&&!Array[_0x2513de(0xe3)](_0x2ef827);}function hasWorkspaceAppBinding(_0x4f925d){const _0xd9b31a=a87_0x1ec8b5;if(typeof _0x4f925d[_0xd9b31a(0xb1)]==='string'&&_0x4f925d['appcode'][_0xd9b31a(0xc7)]()[_0xd9b31a(0xec)]>0x0)return!![];if(typeof _0x4f925d[_0xd9b31a(0xed)]!=='string'||!_0x4f925d[_0xd9b31a(0xed)][_0xd9b31a(0xc7)]())return![];if(!isRecord(_0x4f925d[_0xd9b31a(0xbf)]))return![];const _0x51ff60=_0x4f925d[_0xd9b31a(0xbf)][_0x4f925d['defaultApp'][_0xd9b31a(0xc7)]()];return isRecord(_0x51ff60)&&typeof _0x51ff60[_0xd9b31a(0xb1)]==='string'&&_0x51ff60[_0xd9b31a(0xb1)][_0xd9b31a(0xc7)]()[_0xd9b31a(0xec)]>0x0;}function assertWorkspaceCommandState(_0xf12354,_0x44da96){const _0x590e43=a87_0x1ec8b5,_0x1ab62c=hasWorkspaceAppBinding(_0x44da96);if(_0xf12354===_0x590e43(0xd6)&&_0x1ab62c)throw CliErrors['validation']('Workspace\x20app\x20context\x20is\x20already\x20initialized.',_0x590e43(0xc0)+CLI_BIN_NAME+_0x590e43(0xe6)+CLI_BIN_NAME+'\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.');if(_0xf12354==='use'&&!_0x1ab62c)throw CliErrors['validation'](_0x590e43(0xc8),'Run\x20`'+CLI_BIN_NAME+_0x590e43(0xe1)+CLI_BIN_NAME+_0x590e43(0xb7));}function makeWorkspaceCommand(_0x36eb0e){const _0x42b421=a87_0x1ec8b5;return{'service':_0x42b421(0xd1),'command':_0x36eb0e,'description':_0x36eb0e==='init'?_0x42b421(0xde):_0x42b421(0xdb),'risk':_0x42b421(0xda),'confirmationDescription':_0x36eb0e===_0x42b421(0xd6)?_0x42b421(0xea):_0x42b421(0xd2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x46be75){return executeWorkspaceUse(_0x46be75,_0x36eb0e);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a87_0x1ec8b5(0xd6)),makeWorkspaceCommand('use')];
@@ -1 +1 @@
1
- const a88_0x5ced67=a88_0x23b7;(function(_0x15bb45,_0x56fcbf){const _0x36e2ad=a88_0x23b7,_0x52ff9a=_0x15bb45();while(!![]){try{const _0x1f60b2=parseInt(_0x36e2ad(0x179))/0x1+-parseInt(_0x36e2ad(0x187))/0x2+parseInt(_0x36e2ad(0x186))/0x3+parseInt(_0x36e2ad(0x18c))/0x4*(parseInt(_0x36e2ad(0x17a))/0x5)+-parseInt(_0x36e2ad(0x16c))/0x6*(parseInt(_0x36e2ad(0x178))/0x7)+-parseInt(_0x36e2ad(0x180))/0x8*(parseInt(_0x36e2ad(0x15e))/0x9)+parseInt(_0x36e2ad(0x183))/0xa*(parseInt(_0x36e2ad(0x162))/0xb);if(_0x1f60b2===_0x56fcbf)break;else _0x52ff9a['push'](_0x52ff9a['shift']());}catch(_0x27acdb){_0x52ff9a['push'](_0x52ff9a['shift']());}}}(a88_0x198b,0x5f4f9));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';function a88_0x198b(){const _0x1544bb=[':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','https:','length','7GqXvOq','248616iGkqss','50UseOzD','password','filter','includes','Domain\x20config\x20file\x20not\x20found:\x20','agentDomain','199384pkjqcx','kb-domain','parse','9446290ysfAdN','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','isArray','22917YXDkMN','889834MZOdrw','Unsupported\x20domain\x20config\x20field(s):\x20','skill-domain','Invalid\x20','trim','3332kfYbqk','pathname','runtime-domain','Invalid\x20domain\x20config\x20JSON:\x20','object','99Bjckkd','origin','user-domain','kbDomain','11QnCkHT','skillHubDomain',':\x20\x22','string','cwd','userDomain','str','apiDomain','platformDomain','validation','598506Tjdtop','utf8','keys','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','Allowed\x20fields:\x20','join','hash','\x22\x20is\x20not\x20a\x20valid\x20URL.','search'];a88_0x198b=function(){return _0x1544bb;};return a88_0x198b();}export const DOMAIN_CONFIG_FIELDS=[a88_0x5ced67(0x167),a88_0x5ced67(0x169),'runtimeDomain','skillDomain',a88_0x5ced67(0x161)];const DOMAIN_FLAGS={'userDomain':a88_0x5ced67(0x160),'apiDomain':'api-domain','runtimeDomain':a88_0x5ced67(0x18e),'skillDomain':a88_0x5ced67(0x189),'kbDomain':a88_0x5ced67(0x181)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a88_0x5ced67(0x17f),a88_0x5ced67(0x16a),a88_0x5ced67(0x163)];function a88_0x23b7(_0x4d9910,_0x35612b){_0x4d9910=_0x4d9910-0x15d;const _0x198b3f=a88_0x198b();let _0x23b7bb=_0x198b3f[_0x4d9910];return _0x23b7bb;}export function normalizeDomainOrigin(_0x1a8e29,_0x37fd68){const _0x274ae5=a88_0x5ced67;if(typeof _0x37fd68!==_0x274ae5(0x165)||!_0x37fd68['trim']())throw CliErrors['validation']('Invalid\x20'+_0x1a8e29+_0x274ae5(0x175));let _0x40b123;try{_0x40b123=new URL(_0x37fd68[_0x274ae5(0x18b)]());}catch{throw CliErrors[_0x274ae5(0x16b)]('Invalid\x20'+_0x1a8e29+_0x274ae5(0x164)+_0x37fd68+_0x274ae5(0x173));}if(_0x40b123['protocol']!==_0x274ae5(0x176)||_0x40b123['username']||_0x40b123[_0x274ae5(0x17b)]||_0x40b123[_0x274ae5(0x18d)]!=='/'&&_0x40b123['pathname']!==''||_0x40b123[_0x274ae5(0x174)]||_0x40b123[_0x274ae5(0x172)])throw CliErrors['validation'](_0x274ae5(0x18a)+_0x1a8e29+':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.');return _0x40b123[_0x274ae5(0x15f)];}export function readDomainConfig(_0x128857){const _0x297bc9=a88_0x5ced67,_0x29d599=isAbsolute(_0x128857)?_0x128857:resolve(process[_0x297bc9(0x166)](),_0x128857);if(!existsSync(_0x29d599))throw CliErrors[_0x297bc9(0x16b)](_0x297bc9(0x17e)+_0x29d599);let _0xe59b41;try{_0xe59b41=JSON[_0x297bc9(0x182)](readFileSync(_0x29d599,_0x297bc9(0x16d)));}catch{throw CliErrors[_0x297bc9(0x16b)](_0x297bc9(0x18f)+_0x29d599);}if(!_0xe59b41||typeof _0xe59b41!==_0x297bc9(0x15d)||Array[_0x297bc9(0x185)](_0xe59b41))throw CliErrors[_0x297bc9(0x16b)](_0x297bc9(0x16f));const _0x46dfce=_0xe59b41,_0x4a372e=Object[_0x297bc9(0x16e)](_0x46dfce)[_0x297bc9(0x17c)](_0x4d6397=>!DOMAIN_CONFIG_FIELDS[_0x297bc9(0x17d)](_0x4d6397));if(_0x4a372e['length']>0x0)throw CliErrors['validation'](_0x297bc9(0x188)+_0x4a372e[_0x297bc9(0x171)](',\x20'),_0x297bc9(0x170)+DOMAIN_CONFIG_FIELDS[_0x297bc9(0x171)](',\x20'));const _0x2c5017={};for(const _0x2b7f38 of DOMAIN_CONFIG_FIELDS){_0x46dfce[_0x2b7f38]!==undefined&&(_0x2c5017[_0x2b7f38]=normalizeDomainOrigin(_0x2b7f38,_0x46dfce[_0x2b7f38]));}if(Object['keys'](_0x2c5017)[_0x297bc9(0x177)]===0x0)throw CliErrors['validation'](_0x297bc9(0x184));return _0x2c5017;}export function resolveDomainFlags(_0x29c1fc){const _0x20f8ee=a88_0x5ced67,_0x515bbe=(_0x29c1fc[_0x20f8ee(0x168)]('domain-config')||'')[_0x20f8ee(0x18b)](),_0x373ad9=_0x515bbe?readDomainConfig(_0x515bbe):{};for(const _0x15d3da of DOMAIN_CONFIG_FIELDS){const _0xd71d1e=(_0x29c1fc[_0x20f8ee(0x168)](DOMAIN_FLAGS[_0x15d3da])||'')['trim']();if(_0xd71d1e)_0x373ad9[_0x15d3da]=normalizeDomainOrigin(_0x15d3da,_0xd71d1e);}return _0x373ad9;}
1
+ const a88_0x376d77=a88_0x3eff;(function(_0x17d843,_0x3d20d7){const _0xd091fa=a88_0x3eff,_0x270cd6=_0x17d843();while(!![]){try{const _0x456780=-parseInt(_0xd091fa(0x165))/0x1*(parseInt(_0xd091fa(0x187))/0x2)+-parseInt(_0xd091fa(0x179))/0x3+-parseInt(_0xd091fa(0x185))/0x4*(-parseInt(_0xd091fa(0x18e))/0x5)+parseInt(_0xd091fa(0x161))/0x6+-parseInt(_0xd091fa(0x16e))/0x7+-parseInt(_0xd091fa(0x17b))/0x8*(-parseInt(_0xd091fa(0x173))/0x9)+-parseInt(_0xd091fa(0x18c))/0xa;if(_0x456780===_0x3d20d7)break;else _0x270cd6['push'](_0x270cd6['shift']());}catch(_0x53d7e2){_0x270cd6['push'](_0x270cd6['shift']());}}}(a88_0x42b7,0xca45b));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=[a88_0x376d77(0x17a),a88_0x376d77(0x186),a88_0x376d77(0x162),'skillDomain','kbDomain'];const DOMAIN_FLAGS={'userDomain':a88_0x376d77(0x16f),'apiDomain':a88_0x376d77(0x171),'runtimeDomain':a88_0x376d77(0x174),'skillDomain':a88_0x376d77(0x16b),'kbDomain':a88_0x376d77(0x176)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a88_0x376d77(0x18d),a88_0x376d77(0x172),'skillHubDomain'];export function normalizeDomainOrigin(_0xee724b,_0x27ecc2){const _0x444b3b=a88_0x376d77;if(typeof _0x27ecc2!=='string'||!_0x27ecc2[_0x444b3b(0x16a)]())throw CliErrors['validation'](_0x444b3b(0x169)+_0xee724b+_0x444b3b(0x175));let _0xa7ff55;try{_0xa7ff55=new URL(_0x27ecc2[_0x444b3b(0x16a)]());}catch{throw CliErrors['validation'](_0x444b3b(0x169)+_0xee724b+_0x444b3b(0x182)+_0x27ecc2+_0x444b3b(0x16c));}if(_0xa7ff55['protocol']!==_0x444b3b(0x17c)||_0xa7ff55[_0x444b3b(0x167)]||_0xa7ff55[_0x444b3b(0x180)]||_0xa7ff55[_0x444b3b(0x164)]!=='/'&&_0xa7ff55[_0x444b3b(0x164)]!==''||_0xa7ff55[_0x444b3b(0x178)]||_0xa7ff55[_0x444b3b(0x163)])throw CliErrors[_0x444b3b(0x168)](_0x444b3b(0x169)+_0xee724b+':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.',_0x444b3b(0x17e));return _0xa7ff55['origin'];}function a88_0x3eff(_0x2b153a,_0x2c4e9e){_0x2b153a=_0x2b153a-0x161;const _0x42b772=a88_0x42b7();let _0x3eff0b=_0x42b772[_0x2b153a];return _0x3eff0b;}function a88_0x42b7(){const _0xeedd4c=['parse','api-domain','platformDomain','279kpIgIG','runtime-domain',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','kb-domain','length','search','794031ntNUSR','userDomain','239176nATUhZ','https:','object','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','Invalid\x20domain\x20config\x20JSON:\x20','password','join',':\x20\x22','str','filter','230452diVFYc','apiDomain','825326zixMHi','keys','isArray','utf8','Allowed\x20fields:\x20','8607250hEMgTN','agentDomain','130iNPvZr','8082774TZKoyi','runtimeDomain','hash','pathname','1ejJUiL','domain-config','username','validation','Invalid\x20','trim','skill-domain','\x22\x20is\x20not\x20a\x20valid\x20URL.','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','9837114qBBMBr','user-domain'];a88_0x42b7=function(){return _0xeedd4c;};return a88_0x42b7();}export function readDomainConfig(_0x188046){const _0x1a7904=a88_0x376d77,_0x40ad71=isAbsolute(_0x188046)?_0x188046:resolve(process['cwd'](),_0x188046);if(!existsSync(_0x40ad71))throw CliErrors[_0x1a7904(0x168)]('Domain\x20config\x20file\x20not\x20found:\x20'+_0x40ad71);let _0x594942;try{_0x594942=JSON[_0x1a7904(0x170)](readFileSync(_0x40ad71,_0x1a7904(0x18a)));}catch{throw CliErrors['validation'](_0x1a7904(0x17f)+_0x40ad71);}if(!_0x594942||typeof _0x594942!==_0x1a7904(0x17d)||Array[_0x1a7904(0x189)](_0x594942))throw CliErrors['validation'](_0x1a7904(0x16d));const _0x417047=_0x594942,_0x3e5515=Object['keys'](_0x417047)[_0x1a7904(0x184)](_0x1a1d4b=>!DOMAIN_CONFIG_FIELDS['includes'](_0x1a1d4b));if(_0x3e5515[_0x1a7904(0x177)]>0x0)throw CliErrors[_0x1a7904(0x168)]('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x3e5515['join'](',\x20'),_0x1a7904(0x18b)+DOMAIN_CONFIG_FIELDS[_0x1a7904(0x181)](',\x20'));const _0x19166a={};for(const _0x2c4451 of DOMAIN_CONFIG_FIELDS){_0x417047[_0x2c4451]!==undefined&&(_0x19166a[_0x2c4451]=normalizeDomainOrigin(_0x2c4451,_0x417047[_0x2c4451]));}if(Object[_0x1a7904(0x188)](_0x19166a)[_0x1a7904(0x177)]===0x0)throw CliErrors[_0x1a7904(0x168)]('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return _0x19166a;}export function resolveDomainFlags(_0x5b8e07){const _0x1de4c8=a88_0x376d77,_0x3c30f1=(_0x5b8e07[_0x1de4c8(0x183)](_0x1de4c8(0x166))||'')[_0x1de4c8(0x16a)](),_0xea021c=_0x3c30f1?readDomainConfig(_0x3c30f1):{};for(const _0x5f35dc of DOMAIN_CONFIG_FIELDS){const _0x103db3=(_0x5b8e07[_0x1de4c8(0x183)](DOMAIN_FLAGS[_0x5f35dc])||'')[_0x1de4c8(0x16a)]();if(_0x103db3)_0xea021c[_0x5f35dc]=normalizeDomainOrigin(_0x5f35dc,_0x103db3);}return _0xea021c;}
@@ -1 +1 @@
1
- const a89_0x4da1c7=a89_0x5035;(function(_0x188d13,_0x15eee2){const _0x3a8ce3=a89_0x5035,_0x40c4ef=_0x188d13();while(!![]){try{const _0x3dd45f=parseInt(_0x3a8ce3(0x202))/0x1+parseInt(_0x3a8ce3(0x1ec))/0x2*(-parseInt(_0x3a8ce3(0x204))/0x3)+-parseInt(_0x3a8ce3(0x1fb))/0x4+-parseInt(_0x3a8ce3(0x200))/0x5*(parseInt(_0x3a8ce3(0x1fa))/0x6)+-parseInt(_0x3a8ce3(0x1f1))/0x7+parseInt(_0x3a8ce3(0x1fe))/0x8+parseInt(_0x3a8ce3(0x1fd))/0x9;if(_0x3dd45f===_0x15eee2)break;else _0x40c4ef['push'](_0x40c4ef['shift']());}catch(_0x2424ff){_0x40c4ef['push'](_0x40c4ef['shift']());}}}(a89_0xe3de,0xe038c));function a89_0xe3de(){const _0x50e1d2=['entries','783MCLGgO','Default\x20page\x20size','defaultValue','Access\x20key\x20(client-ak\x20auth)','Lovrabet\x20region','legacyCompatOnly','Target\x20environment','riskLevel','5436vNTftk','Risk\x20level','Override\x20SkillHub\x20domain','map','locale','11863397QzxnDU','has','filter',';\x20local\x20alias:\x20apps.<alias>.appcode','Override\x20knowledge-base\x20domain','cliSettableTopLevel','Override\x20user\x20domain','enumValues','importable','6jcSwbn','1968324lOHrwS','zh-CN','31224240WIITLY','679680IQOjBt','Config\x20key.\x20Top-level:\x20','6082085AdlYzM','Default\x20output\x20format','1476759GCpmfK'];a89_0xe3de=function(){return _0x50e1d2;};return a89_0xe3de();}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_0x4da1c7(0x208),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':ENABLED_LOVRABET_REGION_VALUES,'defaultValue':DEFAULT_LOVRABET_REGION,'importable':!![]},'env':{'description':a89_0x4da1c7(0x1ea),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':a89_0x4da1c7(0x201),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['format'],'importable':!![]},'pageSize':{'description':a89_0x4da1c7(0x205),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a89_0x4da1c7(0x1f7),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':'Override\x20runtime\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillDomain':{'description':a89_0x4da1c7(0x1ee),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'kbDomain':{'description':a89_0x4da1c7(0x1f5),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a89_0x4da1c7(0x207),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a89_0x4da1c7(0x1ed),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x4da1c7(0x1eb)],'importable':!![]},'locale':{'description':'App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','topLevel':!![],'cliSettableTopLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x4da1c7(0x1f0)],'importable':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a89_0x4da1c7(0x203)](CONFIG_FIELD_SCHEMAS)[a89_0x4da1c7(0x1f3)](([,_0x19a358])=>_0x19a358[a89_0x4da1c7(0x1f6)])[a89_0x4da1c7(0x1ef)](([_0x332a5d])=>_0x332a5d));export const CLI_PROTECTED_CONFIG_KEYS=new Set([a89_0x4da1c7(0x1eb)]);export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object[a89_0x4da1c7(0x203)](CONFIG_FIELD_SCHEMAS)[a89_0x4da1c7(0x1f3)](([,_0x5ea889])=>_0x5ea889[a89_0x4da1c7(0x1f8)])[a89_0x4da1c7(0x1ef)](([_0x32120d,_0x97a3ee])=>[_0x32120d,[..._0x97a3ee[a89_0x4da1c7(0x1f8)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a89_0x4da1c7(0x203)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x4b739f])=>_0x4b739f[a89_0x4da1c7(0x1f9)])['map'](([_0x20d61a])=>_0x20d61a);export function getConfigFieldSchema(_0x1d30ef){return CONFIG_FIELD_SCHEMAS[_0x1d30ef];}export function getConfigEnumValues(_0x292a77){return getConfigFieldSchema(_0x292a77)?.['enumValues'];}export function getConfigDefaultValue(_0x5796a0){const _0x5625b6=a89_0x4da1c7;return getConfigFieldSchema(_0x5796a0)?.[_0x5625b6(0x206)];}function a89_0x5035(_0x2e246,_0x878d7){_0x2e246=_0x2e246-0x1e9;const _0xe3def8=a89_0xe3de();let _0x503546=_0xe3def8[_0x2e246];return _0x503546;}export function isTopLevelConfigKey(_0x531df3){const _0x2106c0=a89_0x4da1c7;return TOP_LEVEL_CONFIG_KEYS[_0x2106c0(0x1f2)](_0x531df3);}export function isCliProtectedConfigKey(_0x500c62){return CLI_PROTECTED_CONFIG_KEYS['has'](_0x500c62);}const LOCALE_MAP={'zh':a89_0x4da1c7(0x1fc),'zh-cn':a89_0x4da1c7(0x1fc),'zh_cn':a89_0x4da1c7(0x1fc),'en':'en-US','en-us':'en-US','en_us':'en-US'};export function normalizeLocale(_0x4f7cea){if(!_0x4f7cea)return null;return LOCALE_MAP[_0x4f7cea['toLowerCase']()]??null;}export function isLegacyCompatConfigKey(_0x3a7286){const _0x5eaca7=a89_0x4da1c7;return getConfigFieldSchema(_0x3a7286)?.[_0x5eaca7(0x1e9)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x585b7a){return[..._0x585b7a]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x49ada1=a89_0x4da1c7;return _0x49ada1(0x1ff)+getTopLevelConfigKeySummary()+_0x49ada1(0x1f4);}export function buildAppProfileListFields(_0x2862c2){return{'env':_0x2862c2,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a89_0x4a5db2=a89_0x1d3e;(function(_0xf7d21,_0x2ae5e9){const _0x5d73c9=a89_0x1d3e,_0x3ba179=_0xf7d21();while(!![]){try{const _0x3dd3cb=-parseInt(_0x5d73c9(0xaa))/0x1+parseInt(_0x5d73c9(0xad))/0x2+parseInt(_0x5d73c9(0xb9))/0x3*(parseInt(_0x5d73c9(0xb4))/0x4)+-parseInt(_0x5d73c9(0xa4))/0x5+-parseInt(_0x5d73c9(0xbf))/0x6+-parseInt(_0x5d73c9(0xba))/0x7*(parseInt(_0x5d73c9(0x9f))/0x8)+parseInt(_0x5d73c9(0xb7))/0x9*(parseInt(_0x5d73c9(0xa5))/0xa);if(_0x3dd3cb===_0x2ae5e9)break;else _0x3ba179['push'](_0x3ba179['shift']());}catch(_0x91719a){_0x3ba179['push'](_0x3ba179['shift']());}}}(a89_0x7040,0x516e2));function a89_0x1d3e(_0x2c2177,_0x2e1bd1){_0x2c2177=_0x2c2177-0x9e;const _0x7040a0=a89_0x7040();let _0x1d3e6b=_0x7040a0[_0x2c2177];return _0x1d3e6b;}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_0x4a5db2(0xa6),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':ENABLED_LOVRABET_REGION_VALUES,'defaultValue':DEFAULT_LOVRABET_REGION,'importable':!![]},'env':{'description':a89_0x4a5db2(0x9e),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x4a5db2(0xb8)],'importable':!![]},'format':{'description':a89_0x4a5db2(0xa3),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x4a5db2(0xc1)],'importable':!![]},'pageSize':{'description':a89_0x4a5db2(0xbd),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a89_0x4a5db2(0xc5),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a89_0x4a5db2(0xb6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a89_0x4a5db2(0xa1),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillDomain':{'description':a89_0x4a5db2(0xab),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'kbDomain':{'description':a89_0x4a5db2(0xaf),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a89_0x4a5db2(0xa9),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a89_0x4a5db2(0xbe),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x4a5db2(0xbc)],'importable':!![]},'locale':{'description':a89_0x4a5db2(0xc3),'topLevel':!![],'cliSettableTopLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x4a5db2(0xc4)],'importable':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a89_0x4a5db2(0xa8)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x7b3353])=>_0x7b3353['cliSettableTopLevel'])[a89_0x4a5db2(0xb0)](([_0xe2b580])=>_0xe2b580));export const CLI_PROTECTED_CONFIG_KEYS=new Set(['riskLevel']);export const CONFIG_ENUM_VALUES=Object[a89_0x4a5db2(0xa7)](Object[a89_0x4a5db2(0xa8)](CONFIG_FIELD_SCHEMAS)[a89_0x4a5db2(0xb5)](([,_0x5949e4])=>_0x5949e4[a89_0x4a5db2(0xa0)])[a89_0x4a5db2(0xb0)](([_0x2ec4b1,_0x2f01e9])=>[_0x2ec4b1,[..._0x2f01e9[a89_0x4a5db2(0xa0)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a89_0x4a5db2(0xa8)](CONFIG_FIELD_SCHEMAS)[a89_0x4a5db2(0xb5)](([,_0x19333a])=>_0x19333a[a89_0x4a5db2(0xa2)])[a89_0x4a5db2(0xb0)](([_0x25afbe])=>_0x25afbe);export function getConfigFieldSchema(_0x593a02){return CONFIG_FIELD_SCHEMAS[_0x593a02];}export function getConfigEnumValues(_0x556f28){return getConfigFieldSchema(_0x556f28)?.['enumValues'];}export function getConfigDefaultValue(_0x173135){const _0x44b3b2=a89_0x4a5db2;return getConfigFieldSchema(_0x173135)?.[_0x44b3b2(0xbb)];}export function isTopLevelConfigKey(_0x4bcb3e){const _0x7882e3=a89_0x4a5db2;return TOP_LEVEL_CONFIG_KEYS[_0x7882e3(0xae)](_0x4bcb3e);}export function isCliProtectedConfigKey(_0x5cf313){const _0x43a400=a89_0x4a5db2;return CLI_PROTECTED_CONFIG_KEYS[_0x43a400(0xae)](_0x5cf313);}const LOCALE_MAP={'zh':'zh-CN','zh-cn':a89_0x4a5db2(0xb3),'zh_cn':'zh-CN','en':'en-US','en-us':'en-US','en_us':a89_0x4a5db2(0xc2)};export function normalizeLocale(_0x4d97d2){const _0x586c1f=a89_0x4a5db2;if(!_0x4d97d2)return null;return LOCALE_MAP[_0x4d97d2[_0x586c1f(0xb2)]()]??null;}export function isLegacyCompatConfigKey(_0x8ef50a){return getConfigFieldSchema(_0x8ef50a)?.['legacyCompatOnly']===!![];}function a89_0x7040(){const _0x258537=['927KJjCkQ','env','6dWrJFX','7HkcJly','defaultValue','riskLevel','Default\x20page\x20size','Risk\x20level','241800jwzUbT','Config\x20key.\x20Top-level:\x20','format','en-US','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','locale','Override\x20API\x20domain','Target\x20environment','4634864oarIsN','enumValues','Override\x20runtime\x20domain','importable','Default\x20output\x20format','801175QgMJiv','61550IgUsSZ','Lovrabet\x20region','fromEntries','entries','Access\x20key\x20(client-ak\x20auth)','653702izLUEK','Override\x20SkillHub\x20domain','join','1020276FNzQwc','has','Override\x20knowledge-base\x20domain','map',';\x20local\x20alias:\x20apps.<alias>.appcode','toLowerCase','zh-CN','1246060URMvrY','filter','Override\x20user\x20domain'];a89_0x7040=function(){return _0x258537;};return a89_0x7040();}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x51fe92){const _0x30708e=a89_0x4a5db2;return[..._0x51fe92][_0x30708e(0xac)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x2b805e=a89_0x4a5db2;return _0x2b805e(0xc0)+getTopLevelConfigKeySummary()+_0x2b805e(0xb1);}export function buildAppProfileListFields(_0x78338e){return{'env':_0x78338e,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- const a90_0x10e343=a90_0x23d0;(function(_0x4f8e67,_0x13086a){const _0x40df34=a90_0x23d0,_0x5d235c=_0x4f8e67();while(!![]){try{const _0x20ea64=parseInt(_0x40df34(0x1bf))/0x1*(parseInt(_0x40df34(0x1cb))/0x2)+parseInt(_0x40df34(0x1c4))/0x3*(parseInt(_0x40df34(0x1c8))/0x4)+-parseInt(_0x40df34(0x1c7))/0x5+-parseInt(_0x40df34(0x1c1))/0x6*(parseInt(_0x40df34(0x1c9))/0x7)+-parseInt(_0x40df34(0x1c5))/0x8+parseInt(_0x40df34(0x1c2))/0x9*(-parseInt(_0x40df34(0x1ca))/0xa)+parseInt(_0x40df34(0x1c3))/0xb*(parseInt(_0x40df34(0x1c0))/0xc);if(_0x20ea64===_0x13086a)break;else _0x5d235c['push'](_0x5d235c['shift']());}catch(_0x3b8e22){_0x5d235c['push'](_0x5d235c['shift']());}}}(a90_0x554b,0x77cf8));export const APP_PUBLISH_STATUS={'Published':a90_0x10e343(0x1be),'Unpublished':'UNPUBLISH'};function a90_0x554b(){const _0x53148c=['3395MwNkCV','1894660ssJZhU','5332DqxzZZ','PUBLISHED','358DqVuzw','1639140SSFctH','6978gcPNdJ','9PjpIbb','33wzNLth','30147GRrlQD','3647256fJibuv','Published','1385150ZIZRUY','244daukDb'];a90_0x554b=function(){return _0x53148c;};return a90_0x554b();}function a90_0x23d0(_0x2e7389,_0x45d0bb){_0x2e7389=_0x2e7389-0x1be;const _0x554bea=a90_0x554b();let _0x23d0e6=_0x554bea[_0x2e7389];return _0x23d0e6;}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a90_0x10e343(0x1c6)];
1
+ const a90_0x353431=a90_0x2590;(function(_0x19e6f5,_0x1e33f9){const _0x2b5e4f=a90_0x2590,_0x16fea5=_0x19e6f5();while(!![]){try{const _0x11aef5=parseInt(_0x2b5e4f(0xc4))/0x1*(parseInt(_0x2b5e4f(0xc9))/0x2)+parseInt(_0x2b5e4f(0xc5))/0x3+parseInt(_0x2b5e4f(0xc6))/0x4+-parseInt(_0x2b5e4f(0xc3))/0x5+parseInt(_0x2b5e4f(0xc8))/0x6+parseInt(_0x2b5e4f(0xc2))/0x7*(parseInt(_0x2b5e4f(0xc0))/0x8)+parseInt(_0x2b5e4f(0xca))/0x9*(-parseInt(_0x2b5e4f(0xc1))/0xa);if(_0x11aef5===_0x1e33f9)break;else _0x16fea5['push'](_0x16fea5['shift']());}catch(_0x31be71){_0x16fea5['push'](_0x16fea5['shift']());}}}(a90_0x5477,0x9a940));export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a90_0x353431(0xcb)};function a90_0x2590(_0x5457da,_0x58612c){_0x5457da=_0x5457da-0xc0;const _0x547741=a90_0x5477();let _0x25905d=_0x547741[_0x5457da];return _0x25905d;}function a90_0x5477(){const _0x340ca9=['220462FowciG','18790047WJVKbW','UNPUBLISH','2152120qfWcos','10xrCjsf','28zFRQLE','1999310rsFOdC','8ajXcBy','874692KhXnvd','2973420KGZRpJ','Published','767820HOVGYE'];a90_0x5477=function(){return _0x340ca9;};return a90_0x5477();}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a90_0x353431(0xc7)];
@@ -1 +1 @@
1
- const a91_0x2c1aba=a91_0x3a15;(function(_0x90ea11,_0x23e565){const _0x2b03ba=a91_0x3a15,_0x54e440=_0x90ea11();while(!![]){try{const _0x3f0c73=-parseInt(_0x2b03ba(0x14c))/0x1*(-parseInt(_0x2b03ba(0x148))/0x2)+-parseInt(_0x2b03ba(0x149))/0x3+-parseInt(_0x2b03ba(0x147))/0x4*(-parseInt(_0x2b03ba(0x145))/0x5)+-parseInt(_0x2b03ba(0x150))/0x6*(parseInt(_0x2b03ba(0x14b))/0x7)+-parseInt(_0x2b03ba(0x151))/0x8+parseInt(_0x2b03ba(0x146))/0x9*(-parseInt(_0x2b03ba(0x14f))/0xa)+-parseInt(_0x2b03ba(0x14d))/0xb*(-parseInt(_0x2b03ba(0x152))/0xc);if(_0x3f0c73===_0x23e565)break;else _0x54e440['push'](_0x54e440['shift']());}catch(_0x211ee3){_0x54e440['push'](_0x54e440['shift']());}}}(a91_0x106c,0x6165d));function a91_0x3a15(_0x3708e1,_0x12d8ce){_0x3708e1=_0x3708e1-0x145;const _0x106cf9=a91_0x106c();let _0x3a1589=_0x106cf9[_0x3708e1];return _0x3a1589;}export const AUTH_MODE={'ClientAk':a91_0x2c1aba(0x14e)};function a91_0x106c(){const _0xddbd26=['client-ak','10gedxwV','83982YtvXxu','1345912WxRhZD','12kFREJj','63725OOOwsF','6543729FCxZga','4AGBuYj','10vcHMxZ','1465251vBEkZp','ClientAk','14zmdWwN','66545YAzvsP','16117222jpoojA'];a91_0x106c=function(){return _0xddbd26;};return a91_0x106c();}export function isAuthMode(_0x3c6f){const _0x388960=a91_0x2c1aba;return _0x3c6f===AUTH_MODE[_0x388960(0x14a)];}
1
+ function a91_0x37f6(_0x31ffa9,_0x3202de){_0x31ffa9=_0x31ffa9-0x1b0;const _0x59c2fd=a91_0x59c2();let _0x37f65f=_0x59c2fd[_0x31ffa9];return _0x37f65f;}const a91_0x12f8fe=a91_0x37f6;(function(_0x173496,_0x3a39cd){const _0x1f650b=a91_0x37f6,_0x189d68=_0x173496();while(!![]){try{const _0x4d354c=parseInt(_0x1f650b(0x1b8))/0x1*(-parseInt(_0x1f650b(0x1b1))/0x2)+-parseInt(_0x1f650b(0x1b9))/0x3*(parseInt(_0x1f650b(0x1bb))/0x4)+-parseInt(_0x1f650b(0x1b7))/0x5+-parseInt(_0x1f650b(0x1b5))/0x6*(-parseInt(_0x1f650b(0x1b0))/0x7)+parseInt(_0x1f650b(0x1b2))/0x8*(-parseInt(_0x1f650b(0x1bd))/0x9)+-parseInt(_0x1f650b(0x1b3))/0xa+parseInt(_0x1f650b(0x1ba))/0xb*(parseInt(_0x1f650b(0x1b6))/0xc);if(_0x4d354c===_0x3a39cd)break;else _0x189d68['push'](_0x189d68['shift']());}catch(_0x86d7f9){_0x189d68['push'](_0x189d68['shift']());}}}(a91_0x59c2,0x3cfa9));export const AUTH_MODE={'ClientAk':a91_0x12f8fe(0x1bc)};export function isAuthMode(_0x37a546){const _0x235f53=a91_0x12f8fe;return _0x37a546===AUTH_MODE[_0x235f53(0x1b4)];}function a91_0x59c2(){const _0x1d454c=['15366164FpfVuT','4elQUee','client-ak','9eYIdqy','1610zIUqvw','276028wzfgtA','2522072AvNwvA','3908200qsdeeM','ClientAk','3972fvJWAE','12noTWzX','622855fIZnFs','2ebLgnG','578211txDvQQ'];a91_0x59c2=function(){return _0x1d454c;};return a91_0x59c2();}
@@ -1 +1 @@
1
- function a92_0x5d02(_0x5f3de8,_0x4d322f){_0x5f3de8=_0x5f3de8-0x149;const _0x528d14=a92_0x528d();let _0x5d020e=_0x528d14[_0x5f3de8];return _0x5d020e;}const a92_0x468936=a92_0x5d02;(function(_0xe7bd06,_0x3091b7){const _0x26eef8=a92_0x5d02,_0x30950f=_0xe7bd06();while(!![]){try{const _0x24cfb5=-parseInt(_0x26eef8(0x179))/0x1+-parseInt(_0x26eef8(0x157))/0x2*(parseInt(_0x26eef8(0x151))/0x3)+-parseInt(_0x26eef8(0x150))/0x4+-parseInt(_0x26eef8(0x149))/0x5+parseInt(_0x26eef8(0x159))/0x6+-parseInt(_0x26eef8(0x161))/0x7*(-parseInt(_0x26eef8(0x162))/0x8)+parseInt(_0x26eef8(0x15f))/0x9;if(_0x24cfb5===_0x3091b7)break;else _0x30950f['push'](_0x30950f['shift']());}catch(_0x1a7e6a){_0x30950f['push'](_0x30950f['shift']());}}}(a92_0x528d,0x20768));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a92_0x468936(0x17a)];function a92_0x528d(){const _0x37b96d=['1566fxiaaX','params','yes','global','env','<expr>','7698285PCrxlh','<name>','14eGAHUL','302552KiPqsO','Clear\x20output','non-interactive','dry-run','Record\x20ID','production\x20|\x20development\x20|\x20daily','string','verbose','Preview\x20operation\x20without\x20executing','Name\x20filter','name','map','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','SQL\x20query\x20code','fromEntries','format','help','nonInteractive','meowKey','json\x20|\x20pretty\x20|\x20compress','JSON\x20params\x20for\x20execute\x20commands','app','type','187323TNxwtK','cliBinName','1186200BCtHQM','Use\x20global\x20config\x20scope','dryRun','boolean','Override\x20appcode','Output\x20format','Verbose\x20output','532600IDgChT','721749EDEHnD','appcode','Force\x20non-interactive\x20mode\x20(CI)','sqlcode','Show\x20help','Select\x20app\x20profile\x20by\x20name','2MugJPC','cliDisplayName'];a92_0x528d=function(){return _0x37b96d;};return a92_0x528d();}export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a92_0x468936(0x158)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a92_0x468936(0x152),'meowKey':a92_0x468936(0x152),'type':'string','description':a92_0x468936(0x14d),'hint':'<code>'},{'name':a92_0x468936(0x177),'meowKey':a92_0x468936(0x177),'type':a92_0x468936(0x168),'description':a92_0x468936(0x156),'hint':a92_0x468936(0x160)},{'name':a92_0x468936(0x15d),'meowKey':'env','type':'string','description':'Environment','hint':a92_0x468936(0x167)},{'name':'format','meowKey':'format','type':a92_0x468936(0x168),'description':a92_0x468936(0x14e),'hint':a92_0x468936(0x175)},{'name':'jq','meowKey':'jq','type':a92_0x468936(0x168),'description':a92_0x468936(0x16e),'hint':a92_0x468936(0x15e)},{'name':a92_0x468936(0x165),'meowKey':a92_0x468936(0x14b),'type':a92_0x468936(0x14c),'description':a92_0x468936(0x16a)},{'name':a92_0x468936(0x15b),'meowKey':a92_0x468936(0x15b),'type':'boolean','description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a92_0x468936(0x164),'meowKey':a92_0x468936(0x173),'type':'boolean','description':a92_0x468936(0x153)},{'name':a92_0x468936(0x15c),'meowKey':'global','type':a92_0x468936(0x14c),'description':a92_0x468936(0x14a)},{'name':'ci','meowKey':'ci','type':a92_0x468936(0x14c),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a92_0x468936(0x172),'meowKey':'help','type':a92_0x468936(0x14c),'description':a92_0x468936(0x155)},{'name':'id','meowKey':'id','type':a92_0x468936(0x168),'description':a92_0x468936(0x166),'hidden':!![]},{'name':a92_0x468936(0x16c),'meowKey':'name','type':a92_0x468936(0x168),'description':a92_0x468936(0x16b),'hidden':!![]},{'name':a92_0x468936(0x154),'meowKey':'sqlcode','type':a92_0x468936(0x168),'description':a92_0x468936(0x16f),'hidden':!![]},{'name':a92_0x468936(0x15a),'meowKey':'params','type':a92_0x468936(0x168),'description':a92_0x468936(0x176),'hidden':!![]},{'name':a92_0x468936(0x169),'meowKey':a92_0x468936(0x169),'type':a92_0x468936(0x14c),'description':a92_0x468936(0x14f),'hidden':!![]},{'name':'clear','meowKey':'clear','type':a92_0x468936(0x14c),'description':a92_0x468936(0x163),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a92_0x468936(0x152),'app',a92_0x468936(0x15d),a92_0x468936(0x171),'jq',a92_0x468936(0x165),a92_0x468936(0x15b),a92_0x468936(0x164),'ci']);export function buildMeowFlags(){const _0x37390d=a92_0x468936;return Object[_0x37390d(0x170)](GLOBAL_FLAGS[_0x37390d(0x16d)](_0x38f295=>[_0x38f295[_0x37390d(0x174)],{'type':_0x38f295[_0x37390d(0x178)]}]));}
1
+ function a92_0x1612(_0xb7d7c7,_0x2260de){_0xb7d7c7=_0xb7d7c7-0xf2;const _0x1b336e=a92_0x1b33();let _0x16124a=_0x1b336e[_0xb7d7c7];return _0x16124a;}const a92_0x21fe3a=a92_0x1612;(function(_0x6fedcc,_0x2f399f){const _0x32237b=a92_0x1612,_0x27a8c7=_0x6fedcc();while(!![]){try{const _0x4f3e6a=parseInt(_0x32237b(0xf5))/0x1+parseInt(_0x32237b(0x11c))/0x2+parseInt(_0x32237b(0x111))/0x3*(parseInt(_0x32237b(0x110))/0x4)+-parseInt(_0x32237b(0xfc))/0x5+parseInt(_0x32237b(0xf9))/0x6*(parseInt(_0x32237b(0xff))/0x7)+parseInt(_0x32237b(0xf4))/0x8*(parseInt(_0x32237b(0xf6))/0x9)+-parseInt(_0x32237b(0x11f))/0xa;if(_0x4f3e6a===_0x2f399f)break;else _0x27a8c7['push'](_0x27a8c7['shift']());}catch(_0x22b208){_0x27a8c7['push'](_0x27a8c7['shift']());}}}(a92_0x1b33,0xb579f));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a92_0x21fe3a(0x112)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a92_0x21fe3a(0x109)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a92_0x21fe3a(0x106),'meowKey':a92_0x21fe3a(0x106),'type':'string','description':a92_0x21fe3a(0x118),'hint':a92_0x21fe3a(0x115)},{'name':a92_0x21fe3a(0x114),'meowKey':a92_0x21fe3a(0x114),'type':a92_0x21fe3a(0x10d),'description':a92_0x21fe3a(0x10e),'hint':a92_0x21fe3a(0x101)},{'name':'env','meowKey':a92_0x21fe3a(0xf2),'type':a92_0x21fe3a(0x10d),'description':a92_0x21fe3a(0x10a),'hint':a92_0x21fe3a(0x104)},{'name':a92_0x21fe3a(0x107),'meowKey':a92_0x21fe3a(0x107),'type':a92_0x21fe3a(0x10d),'description':a92_0x21fe3a(0x105),'hint':a92_0x21fe3a(0x10b)},{'name':'jq','meowKey':'jq','type':a92_0x21fe3a(0x10d),'description':a92_0x21fe3a(0x120),'hint':'<expr>'},{'name':a92_0x21fe3a(0x11d),'meowKey':'dryRun','type':a92_0x21fe3a(0x100),'description':a92_0x21fe3a(0x10f)},{'name':a92_0x21fe3a(0x11b),'meowKey':'yes','type':'boolean','description':a92_0x21fe3a(0x108)},{'name':a92_0x21fe3a(0xf8),'meowKey':a92_0x21fe3a(0xfa),'type':a92_0x21fe3a(0x100),'description':a92_0x21fe3a(0x103)},{'name':a92_0x21fe3a(0x102),'meowKey':a92_0x21fe3a(0x102),'type':'boolean','description':a92_0x21fe3a(0x119)},{'name':'ci','meowKey':'ci','type':a92_0x21fe3a(0x100),'description':a92_0x21fe3a(0x11e),'hidden':!![]},{'name':'help','meowKey':a92_0x21fe3a(0xf7),'type':a92_0x21fe3a(0x100),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':a92_0x21fe3a(0x117),'meowKey':a92_0x21fe3a(0x117),'type':'string','description':'Name\x20filter','hidden':!![]},{'name':a92_0x21fe3a(0xfe),'meowKey':'sqlcode','type':a92_0x21fe3a(0x10d),'description':'SQL\x20query\x20code','hidden':!![]},{'name':a92_0x21fe3a(0xfb),'meowKey':'params','type':'string','description':a92_0x21fe3a(0x10c),'hidden':!![]},{'name':a92_0x21fe3a(0xf3),'meowKey':a92_0x21fe3a(0xf3),'type':a92_0x21fe3a(0x100),'description':'Verbose\x20output','hidden':!![]},{'name':a92_0x21fe3a(0x116),'meowKey':a92_0x21fe3a(0x116),'type':a92_0x21fe3a(0x100),'description':a92_0x21fe3a(0xfd),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a92_0x21fe3a(0x106),a92_0x21fe3a(0x114),a92_0x21fe3a(0xf2),a92_0x21fe3a(0x107),'jq',a92_0x21fe3a(0x11d),a92_0x21fe3a(0x11b),a92_0x21fe3a(0xf8),'ci']);export function buildMeowFlags(){const _0x319f17=a92_0x21fe3a;return Object[_0x319f17(0x11a)](GLOBAL_FLAGS['map'](_0x3d8a4f=>[_0x3d8a4f[_0x319f17(0x113)],{'type':_0x3d8a4f['type']}]));}function a92_0x1b33(){const _0x5b4cc2=['Use\x20global\x20config\x20scope','fromEntries','yes','574700IttacY','dry-run','Alias\x20for\x20--non-interactive','10960340VasCHB','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','env','verbose','5056928KzEqLD','30144DbZEvH','18bIMHDA','help','non-interactive','13938prGCDk','nonInteractive','params','3741100iMHXqf','Clear\x20output','sqlcode','14rtZzJf','boolean','<name>','global','Force\x20non-interactive\x20mode\x20(CI)','production\x20|\x20development\x20|\x20daily','Output\x20format','appcode','format','Skip\x20confirmation\x20for\x20high-risk\x20writes','cliDisplayName','Environment','json\x20|\x20pretty\x20|\x20compress','JSON\x20params\x20for\x20execute\x20commands','string','Select\x20app\x20profile\x20by\x20name','Preview\x20operation\x20without\x20executing','4lVeWDg','3003627acjSrU','cliBinName','meowKey','app','<code>','clear','name','Override\x20appcode'];a92_0x1b33=function(){return _0x5b4cc2;};return a92_0x1b33();}
@@ -1 +1 @@
1
- const a93_0x88b5ee=a93_0x38c4;(function(_0x8653d4,_0xc2696c){const _0x9e0148=a93_0x38c4,_0x2ae6b1=_0x8653d4();while(!![]){try{const _0x247bdf=-parseInt(_0x9e0148(0x18e))/0x1+parseInt(_0x9e0148(0x18b))/0x2+-parseInt(_0x9e0148(0x18c))/0x3+-parseInt(_0x9e0148(0x18f))/0x4*(parseInt(_0x9e0148(0x18d))/0x5)+-parseInt(_0x9e0148(0x190))/0x6*(-parseInt(_0x9e0148(0x191))/0x7)+-parseInt(_0x9e0148(0x197))/0x8+-parseInt(_0x9e0148(0x198))/0x9*(-parseInt(_0x9e0148(0x192))/0xa);if(_0x247bdf===_0xc2696c)break;else _0x2ae6b1['push'](_0x2ae6b1['shift']());}catch(_0x2cc911){_0x2ae6b1['push'](_0x2ae6b1['shift']());}}}(a93_0x4a8b,0x882a9));export const DEFAULT_APP_PROFILE_NAME=a93_0x88b5ee(0x195);function a93_0x4a8b(){const _0x5ccab7=['2356264XdQXUI','27gNCDxl','write','770262ewybYE','432186EsxyIm','21405cShyMR','873123FTDpBm','428JmIUWF','427746PMlMHe','70oVSpna','4098270EcgloS','compress','production','main','en-US'];a93_0x4a8b=function(){return _0x5ccab7;};return a93_0x4a8b();}function a93_0x38c4(_0x3cd15c,_0x32718b){_0x3cd15c=_0x3cd15c-0x18a;const _0x4a8be9=a93_0x4a8b();let _0x38c4cb=_0x4a8be9[_0x3cd15c];return _0x38c4cb;}export const DEFAULT_CONFIG_VALUES={'env':a93_0x88b5ee(0x194),'format':a93_0x88b5ee(0x193),'locale':a93_0x88b5ee(0x196),'riskLevel':a93_0x88b5ee(0x18a)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a93_0x88b5ee(0x193);
1
+ function a93_0x7523(_0x3080d2,_0x37299d){_0x3080d2=_0x3080d2-0xa2;const _0x355e75=a93_0x355e();let _0x752306=_0x355e75[_0x3080d2];return _0x752306;}function a93_0x355e(){const _0x4af852=['9226930tTVYbM','144338RjfLem','compress','write','main','712870vPbiFD','6457508TJmEua','2080808flXZTj','21ZzFdMQ','7IMJsEH','60HTDFiC','18869064uFoErP','339974GXyUlR','9WgwCYI','11SsHDrb'];a93_0x355e=function(){return _0x4af852;};return a93_0x355e();}const a93_0x480a61=a93_0x7523;(function(_0x55df99,_0x7b50d){const _0x56b542=a93_0x7523,_0x3c7bdf=_0x55df99();while(!![]){try{const _0x50f1ae=parseInt(_0x56b542(0xaf))/0x1+parseInt(_0x56b542(0xa4))/0x2*(-parseInt(_0x56b542(0xab))/0x3)+parseInt(_0x56b542(0xa9))/0x4+parseInt(_0x56b542(0xa8))/0x5*(-parseInt(_0x56b542(0xad))/0x6)+-parseInt(_0x56b542(0xac))/0x7*(-parseInt(_0x56b542(0xaa))/0x8)+parseInt(_0x56b542(0xb0))/0x9*(-parseInt(_0x56b542(0xa3))/0xa)+parseInt(_0x56b542(0xa2))/0xb*(parseInt(_0x56b542(0xae))/0xc);if(_0x50f1ae===_0x7b50d)break;else _0x3c7bdf['push'](_0x3c7bdf['shift']());}catch(_0x1662f0){_0x3c7bdf['push'](_0x3c7bdf['shift']());}}}(a93_0x355e,0xe3d8a));export const DEFAULT_APP_PROFILE_NAME=a93_0x480a61(0xa7);export const DEFAULT_CONFIG_VALUES={'env':'production','format':a93_0x480a61(0xa5),'locale':'en-US','riskLevel':a93_0x480a61(0xa6)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a93_0x480a61(0xa5);
@@ -1 +1 @@
1
- const a94_0x21871a=a94_0x4b5e;function a94_0x4b5e(_0x4ba515,_0x40e7cc){_0x4ba515=_0x4ba515-0x177;const _0x3cb650=a94_0x3cb6();let _0x4b5e93=_0x3cb650[_0x4ba515];return _0x4b5e93;}(function(_0x203278,_0x49ef8a){const _0xc955cb=a94_0x4b5e,_0x5636de=_0x203278();while(!![]){try{const _0x2758e2=-parseInt(_0xc955cb(0x181))/0x1*(parseInt(_0xc955cb(0x180))/0x2)+parseInt(_0xc955cb(0x178))/0x3+parseInt(_0xc955cb(0x17f))/0x4*(parseInt(_0xc955cb(0x177))/0x5)+parseInt(_0xc955cb(0x17b))/0x6+parseInt(_0xc955cb(0x17c))/0x7+-parseInt(_0xc955cb(0x179))/0x8*(parseInt(_0xc955cb(0x17d))/0x9)+-parseInt(_0xc955cb(0x17e))/0xa*(parseInt(_0xc955cb(0x17a))/0xb);if(_0x2758e2===_0x49ef8a)break;else _0x5636de['push'](_0x5636de['shift']());}catch(_0x51bf1f){_0x5636de['push'](_0x5636de['shift']());}}}(a94_0x3cb6,0xbf596));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a94_0x21871a(0x183)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a94_0x21871a(0x182)];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+'/dist/lovrabet-cli/config/index.json';function a94_0x3cb6(){const _0x35ba4b=['286wrOjvw','5479ZPsLZv','cliCdnBaseUrl','skillSource','42235YlFxIx','2630580wqhjYH','112jGMZeG','649XgfKma','7737900fYLZaF','10124982nzpdoO','124839excGAN','567220zOCHfe','708GUSFoL'];a94_0x3cb6=function(){return _0x35ba4b;};return a94_0x3cb6();}
1
+ const a94_0x3c3d85=a94_0x47a9;(function(_0x507e28,_0x28fbc3){const _0x23f355=a94_0x47a9,_0x1d1369=_0x507e28();while(!![]){try{const _0x44c666=-parseInt(_0x23f355(0x112))/0x1+-parseInt(_0x23f355(0x119))/0x2*(-parseInt(_0x23f355(0x117))/0x3)+parseInt(_0x23f355(0x114))/0x4+parseInt(_0x23f355(0x113))/0x5+-parseInt(_0x23f355(0x115))/0x6+-parseInt(_0x23f355(0x11b))/0x7*(parseInt(_0x23f355(0x11a))/0x8)+parseInt(_0x23f355(0x118))/0x9;if(_0x44c666===_0x28fbc3)break;else _0x1d1369['push'](_0x1d1369['shift']());}catch(_0x30cbce){_0x1d1369['push'](_0x1d1369['shift']());}}}(a94_0x67f3,0x822a0));function a94_0x67f3(){const _0x2b1f2f=['cliCdnBaseUrl','npmRegistryBaseUrl','1037141XUisZY','1304580qlhKmM','933956GQXmje','6155100skLQOO','skillSource','3oOqqUM','16766613GJJWVn','687506kkZbBZ','736dXlheS','7987vmPIpA'];a94_0x67f3=function(){return _0x2b1f2f;};return a94_0x67f3();}import{PRODUCT_CONFIG}from'../constant/product.js';function a94_0x47a9(_0x1d1c9f,_0x120564){_0x1d1c9f=_0x1d1c9f-0x111;const _0x67f3be=a94_0x67f3();let _0x47a961=_0x67f3be[_0x1d1c9f];return _0x47a961;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a94_0x3c3d85(0x116)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a94_0x3c3d85(0x111)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a94_0x3c3d85(0x11c)];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+'/dist/lovrabet-cli/config/index.json';
@@ -1 +1 @@
1
- const a95_0x2d99b5=a95_0x3ce7;(function(_0x2659be,_0x310b2b){const _0x3ffcb1=a95_0x3ce7,_0x3a1e5f=_0x2659be();while(!![]){try{const _0x2357a4=parseInt(_0x3ffcb1(0xa3))/0x1*(parseInt(_0x3ffcb1(0xa7))/0x2)+parseInt(_0x3ffcb1(0xa2))/0x3*(parseInt(_0x3ffcb1(0xa1))/0x4)+-parseInt(_0x3ffcb1(0xa0))/0x5+parseInt(_0x3ffcb1(0xa5))/0x6*(-parseInt(_0x3ffcb1(0xa6))/0x7)+-parseInt(_0x3ffcb1(0xa4))/0x8*(-parseInt(_0x3ffcb1(0xad))/0x9)+-parseInt(_0x3ffcb1(0xac))/0xa+parseInt(_0x3ffcb1(0xae))/0xb*(parseInt(_0x3ffcb1(0xa8))/0xc);if(_0x2357a4===_0x310b2b)break;else _0x3a1e5f['push'](_0x3a1e5f['shift']());}catch(_0x20914a){_0x3a1e5f['push'](_0x3a1e5f['shift']());}}}(a95_0x56f5,0xacfe7));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(_0x119b4b){const _0x149699=a95_0x3ce7;customApiDomain=_0x119b4b?.[_0x149699(0x9f)],customUserDomain=_0x119b4b?.[_0x149699(0xaa)],customRuntimeDomain=_0x119b4b?.['runtimeDomain'],customSkillDomain=_0x119b4b?.[_0x149699(0x9c)],customKbDomain=_0x119b4b?.[_0x149699(0xa9)],activeRegion=_0x119b4b?.[_0x149699(0xab)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>PRODUCT_CONFIG[a95_0x2d99b5(0xaf)][activeRegion][isProduction(getEnv())?'production':'nonProduction'];export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a95_0x2d99b5(0x9e)];function a95_0x56f5(){const _0x103028=['14BQlxCF','2dtYzJK','3614328znpsLW','kbDomain','userDomain','region','13897210eyhQIa','234hjWqqJ','55JheNND','regionDomains','skillDomain','api','user','apiDomain','5606735NgrgfF','8BdEabu','2047416sIcYaa','406117hcNOXt','75608wERvqf','909318yIbUtL'];a95_0x56f5=function(){return _0x103028;};return a95_0x56f5();}export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a95_0x2d99b5(0x9d)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()['runtime'];function a95_0x3ce7(_0x38c9de,_0x18552a){_0x38c9de=_0x38c9de-0x9c;const _0x56f5cc=a95_0x56f5();let _0x3ce79b=_0x56f5cc[_0x38c9de];return _0x3ce79b;}export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbDomain=()=>customKbDomain||getActiveRegionDomains()['kb'];
1
+ const a95_0x6be21d=a95_0x4a38;function a95_0x1cbe(){const _0x51e1ea=['userDomain','6148024jGzODX','runtimeDomain','776788pyMCQV','8946170iDtaBW','production','nonProduction','api','skill','2HsHxsZ','3065091qCrfTI','region','kbDomain','4041096ALpLDN','runtime','regionDomains','16BONpsh','2865534SvbsZO','apiDomain','36585432VdrZeu'];a95_0x1cbe=function(){return _0x51e1ea;};return a95_0x1cbe();}(function(_0x565cf8,_0x1dbf54){const _0x537a52=a95_0x4a38,_0x73fd03=_0x565cf8();while(!![]){try{const _0x22683f=parseInt(_0x537a52(0xb7))/0x1*(parseInt(_0x537a52(0xa9))/0x2)+parseInt(_0x537a52(0xaa))/0x3+parseInt(_0x537a52(0xb5))/0x4+parseInt(_0x537a52(0xb8))/0x5+parseInt(_0x537a52(0xad))/0x6+-parseInt(_0x537a52(0xb1))/0x7*(parseInt(_0x537a52(0xb0))/0x8)+-parseInt(_0x537a52(0xb3))/0x9;if(_0x22683f===_0x1dbf54)break;else _0x73fd03['push'](_0x73fd03['shift']());}catch(_0x3869ce){_0x73fd03['push'](_0x73fd03['shift']());}}}(a95_0x1cbe,0xdf425));function a95_0x4a38(_0x5408c5,_0x1d17b1){_0x5408c5=_0x5408c5-0xa8;const _0x1cbe87=a95_0x1cbe();let _0x4a3859=_0x1cbe87[_0x5408c5];return _0x4a3859;}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(_0x56269b){const _0x12225c=a95_0x4a38;customApiDomain=_0x56269b?.[_0x12225c(0xb2)],customUserDomain=_0x56269b?.[_0x12225c(0xb4)],customRuntimeDomain=_0x56269b?.[_0x12225c(0xb6)],customSkillDomain=_0x56269b?.['skillDomain'],customKbDomain=_0x56269b?.[_0x12225c(0xac)],activeRegion=_0x56269b?.[_0x12225c(0xab)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>PRODUCT_CONFIG[a95_0x6be21d(0xaf)][activeRegion][isProduction(getEnv())?a95_0x6be21d(0xb9):a95_0x6be21d(0xba)];export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()['user'];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a95_0x6be21d(0xbb)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a95_0x6be21d(0xae)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a95_0x6be21d(0xa8)];export const getKbDomain=()=>customKbDomain||getActiveRegionDomains()['kb'];
@@ -1 +1 @@
1
- const a96_0x49cde4=a96_0xfa78;(function(_0x16854c,_0x363c48){const _0x405d91=a96_0xfa78,_0x583a69=_0x16854c();while(!![]){try{const _0x1b09d9=parseInt(_0x405d91(0x171))/0x1+parseInt(_0x405d91(0x170))/0x2*(-parseInt(_0x405d91(0x176))/0x3)+-parseInt(_0x405d91(0x173))/0x4+parseInt(_0x405d91(0x172))/0x5+-parseInt(_0x405d91(0x16b))/0x6*(parseInt(_0x405d91(0x175))/0x7)+-parseInt(_0x405d91(0x16a))/0x8*(parseInt(_0x405d91(0x16c))/0x9)+parseInt(_0x405d91(0x16e))/0xa;if(_0x1b09d9===_0x363c48)break;else _0x583a69['push'](_0x583a69['shift']());}catch(_0x1599c7){_0x583a69['push'](_0x583a69['shift']());}}}(a96_0x42c4,0xce9f5));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=['production',a96_0x49cde4(0x174),a96_0x49cde4(0x16d)];export function normalizeEnv(_0x35de54){const _0x1db8a2=a96_0x49cde4;return _0x35de54===_0x1db8a2(0x177)?_0x1db8a2(0x16f):_0x35de54;}export function isProduction(_0x125ec3){const _0x71ca46=a96_0x49cde4;return normalizeEnv(_0x125ec3)===_0x71ca46(0x16f);}function a96_0xfa78(_0x17bc6a,_0x1baeeb){_0x17bc6a=_0x17bc6a-0x16a;const _0x42c411=a96_0x42c4();let _0xfa781a=_0x42c411[_0x17bc6a];return _0xfa781a;}export function isDaily(_0x5e6951){return normalizeEnv(_0x5e6951)==='daily';}export function isDev(_0x43b0bd){const _0x450d45=a96_0x49cde4,_0x16763d=normalizeEnv(_0x43b0bd);return _0x16763d===_0x450d45(0x174)||_0x16763d==='dev';}function a96_0x42c4(){const _0x38d331=['2512242XJFVvA','9qtTBdJ','daily','20675650zgWkVG','production','2CfemZD','1010117zCMflr','2429755zebNEK','907508CkcvHS','development','21mbGzDd','1388703qmpmnn','online','6171272HUdcfu'];a96_0x42c4=function(){return _0x38d331;};return a96_0x42c4();}let env=normalizeEnv(productEnv('ENV')||a96_0x49cde4(0x16f));export function getEnv(){return env;}export function initEnv(_0x158b22){env=normalizeEnv(_0x158b22);}
1
+ const a96_0x3d1d5e=a96_0x10c9;(function(_0x29a0fd,_0x54655d){const _0xb5b7e7=a96_0x10c9,_0x12c692=_0x29a0fd();while(!![]){try{const _0x498f25=parseInt(_0xb5b7e7(0x17b))/0x1+parseInt(_0xb5b7e7(0x181))/0x2*(parseInt(_0xb5b7e7(0x179))/0x3)+parseInt(_0xb5b7e7(0x17d))/0x4*(parseInt(_0xb5b7e7(0x186))/0x5)+parseInt(_0xb5b7e7(0x17c))/0x6+-parseInt(_0xb5b7e7(0x184))/0x7*(-parseInt(_0xb5b7e7(0x182))/0x8)+parseInt(_0xb5b7e7(0x17a))/0x9+-parseInt(_0xb5b7e7(0x187))/0xa;if(_0x498f25===_0x54655d)break;else _0x12c692['push'](_0x12c692['shift']());}catch(_0x1241ae){_0x12c692['push'](_0x12c692['shift']());}}}(a96_0x2089,0xa45de));function a96_0x2089(){const _0x5e0347=['299788CJSNoG','ENV','production','daily','39434GyxPKJ','8pYsLyt','online','2444197hcNZAN','development','55cSmdMh','20801250OPBpmy','18MnEdck','5061042SveJow','840460SoaNRS','352098eLIRcN'];a96_0x2089=function(){return _0x5e0347;};return a96_0x2089();}import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a96_0x3d1d5e(0x17f),a96_0x3d1d5e(0x185),a96_0x3d1d5e(0x180)];export function normalizeEnv(_0x386a83){const _0x5c7343=a96_0x3d1d5e;return _0x386a83===_0x5c7343(0x183)?_0x5c7343(0x17f):_0x386a83;}export function isProduction(_0xea7958){const _0x5d2d34=a96_0x3d1d5e;return normalizeEnv(_0xea7958)===_0x5d2d34(0x17f);}export function isDaily(_0x3e6db0){const _0xc0f71e=a96_0x3d1d5e;return normalizeEnv(_0x3e6db0)===_0xc0f71e(0x180);}function a96_0x10c9(_0x3f27cf,_0x5f019f){_0x3f27cf=_0x3f27cf-0x179;const _0x208974=a96_0x2089();let _0x10c9f2=_0x208974[_0x3f27cf];return _0x10c9f2;}export function isDev(_0x54e790){const _0x4f6f9c=a96_0x3d1d5e,_0x54aeb9=normalizeEnv(_0x54e790);return _0x54aeb9===_0x4f6f9c(0x185)||_0x54aeb9==='dev';}let env=normalizeEnv(productEnv(a96_0x3d1d5e(0x17e))||a96_0x3d1d5e(0x17f));export function getEnv(){return env;}export function initEnv(_0x23fb29){env=normalizeEnv(_0x23fb29);}
@@ -1 +1 @@
1
- const a97_0x5a7fb3=a97_0x5cc0;function a97_0x5cc0(_0x49c7b2,_0x4d094a){_0x49c7b2=_0x49c7b2-0xb3;const _0x4f201a=a97_0x4f20();let _0x5cc0f5=_0x4f201a[_0x49c7b2];return _0x5cc0f5;}(function(_0x267df6,_0x5b6b1c){const _0x57c70f=a97_0x5cc0,_0x4c26e0=_0x267df6();while(!![]){try{const _0x3a763e=-parseInt(_0x57c70f(0xbd))/0x1*(-parseInt(_0x57c70f(0xbc))/0x2)+parseInt(_0x57c70f(0xbe))/0x3+-parseInt(_0x57c70f(0xb8))/0x4*(parseInt(_0x57c70f(0xb6))/0x5)+-parseInt(_0x57c70f(0xb9))/0x6*(parseInt(_0x57c70f(0xbb))/0x7)+-parseInt(_0x57c70f(0xb7))/0x8*(-parseInt(_0x57c70f(0xc0))/0x9)+parseInt(_0x57c70f(0xb5))/0xa*(parseInt(_0x57c70f(0xba))/0xb)+-parseInt(_0x57c70f(0xb4))/0xc*(parseInt(_0x57c70f(0xbf))/0xd);if(_0x3a763e===_0x5b6b1c)break;else _0x4c26e0['push'](_0x4c26e0['shift']());}catch(_0x2e94ea){_0x4c26e0['push'](_0x4c26e0['shift']());}}}(a97_0x4f20,0x588d6));export const OUTPUT_FORMAT_VALUES=[a97_0x5a7fb3(0xb3),a97_0x5a7fb3(0xc1),'compress'];function a97_0x4f20(){const _0x563703=['2lMkVwx','1691937MvDOCV','52GMNCHe','27tIzpKT','pretty','json','369348owljYG','319030nZxNfI','20mUehXI','472664STzHNO','369768voERNS','426blkeAu','11WWgBHx','777lDPIuy','90344ZBNkOL'];a97_0x4f20=function(){return _0x563703;};return a97_0x4f20();}
1
+ const a97_0x4adb6f=a97_0x5e93;(function(_0x46b5b9,_0x11d715){const _0x1ddde8=a97_0x5e93,_0x2822e1=_0x46b5b9();while(!![]){try{const _0x445903=-parseInt(_0x1ddde8(0x1f6))/0x1+-parseInt(_0x1ddde8(0x1f7))/0x2*(-parseInt(_0x1ddde8(0x1f0))/0x3)+-parseInt(_0x1ddde8(0x1f3))/0x4+parseInt(_0x1ddde8(0x1f1))/0x5*(-parseInt(_0x1ddde8(0x1f4))/0x6)+-parseInt(_0x1ddde8(0x1ef))/0x7+-parseInt(_0x1ddde8(0x1f2))/0x8*(-parseInt(_0x1ddde8(0x1ed))/0x9)+parseInt(_0x1ddde8(0x1eb))/0xa*(parseInt(_0x1ddde8(0x1ee))/0xb);if(_0x445903===_0x11d715)break;else _0x2822e1['push'](_0x2822e1['shift']());}catch(_0x7c800){_0x2822e1['push'](_0x2822e1['shift']());}}}(a97_0x2912,0xda751));function a97_0x5e93(_0x267d1f,_0x346f82){_0x267d1f=_0x267d1f-0x1eb;const _0x291281=a97_0x2912();let _0x5e93a2=_0x291281[_0x267d1f];return _0x5e93a2;}export const OUTPUT_FORMAT_VALUES=[a97_0x4adb6f(0x1f5),a97_0x4adb6f(0x1ec),'compress'];function a97_0x2912(){const _0x2d2648=['14334Ouenkc','14972360BGYytM','pretty','117fMYyni','33mVUWSd','6159902CHYWNY','9OyrTZm','1105140LAiTHT','72264KjQmPW','4846036sHwKBt','30fLdAPS','json','539202pPfDYn'];a97_0x2912=function(){return _0x2d2648;};return a97_0x2912();}
@@ -1 +1 @@
1
- const a98_0x40f711=a98_0x5385;function a98_0x4eb8(){const _0x5bb019=['/user/ak','.lovrabet.json','17639838YTDkTs','https://runtime.lovrabet.ai','https://g.lovrabet.com','https://skills-daily.lovrabet.id','3224697Yvdiap','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','https://user.lovrabet.id','1192073HKbYya','LOVRABET','legacyEnvPrefixes','lovrabet','lovrabet/lovrabet-cli','https://registry.npmjs.org','https://daily-api.lovrabet.ai','2442694ruyyiT','https://user-daily.lovrabet.com','https://daily-api.lovrabet.id','RABETBASE','775575whPLWD','https://skills-daily.lovrabet.com','https://skills.lovrabet.ai','https://daily-runtime.lovrabet.com','https://daily-runtime.lovrabet.id','https://user-daily.lovrabet.id','https://daily-api.lovrabet.com','https://runtime.lovrabet.id','https://user.lovrabet.ai','https://api.lovrabet.id','https://skills.lovrabet.id','@lovrabet/lovrabet-cli','8bKWmQj','https://user.lovrabet.com','.lovrabet-runtime.log','cli:lovrabet-runtime','5000064RZwCjC','208965NRkQef','https://skills.lovrabet.com','https://runtime.lovrabet.com','map','https://daily-runtime.lovrabet.ai','40BMFWAO'];a98_0x4eb8=function(){return _0x5bb019;};return a98_0x4eb8();}(function(_0x292f0f,_0x14b6d3){const _0x50a090=a98_0x5385,_0x4c05d8=_0x292f0f();while(!![]){try{const _0x356ceb=parseInt(_0x50a090(0x1a5))/0x1+parseInt(_0x50a090(0x1ac))/0x2+parseInt(_0x50a090(0x1b0))/0x3+-parseInt(_0x50a090(0x1c6))/0x4*(parseInt(_0x50a090(0x1c1))/0x5)+parseInt(_0x50a090(0x1c0))/0x6+-parseInt(_0x50a090(0x1cd))/0x7*(parseInt(_0x50a090(0x1bc))/0x8)+-parseInt(_0x50a090(0x1c9))/0x9;if(_0x356ceb===_0x14b6d3)break;else _0x4c05d8['push'](_0x4c05d8['shift']());}catch(_0x39ebdf){_0x4c05d8['push'](_0x4c05d8['shift']());}}}(a98_0x4eb8,0xa2c52));export const PRODUCT_CONFIG={'cliBinName':a98_0x40f711(0x1a8),'cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':a98_0x40f711(0x1bb),'skillSource':a98_0x40f711(0x1a9),'internalSkillSource':a98_0x40f711(0x1a3),'globalSkillName':a98_0x40f711(0x1a8),'npmRegistryBaseUrl':a98_0x40f711(0x1aa),'cliCdnBaseUrl':a98_0x40f711(0x1cb),'envPrefix':a98_0x40f711(0x1a6),'legacyEnvPrefixes':[a98_0x40f711(0x1af)],'configFileNames':[a98_0x40f711(0x1c8)],'newConfigFileName':a98_0x40f711(0x1c8),'homeDirName':'.lovrabet','logFileName':a98_0x40f711(0x1be),'invokeSource':a98_0x40f711(0x1bf),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','regionDomains':{'cn':{'production':{'user':a98_0x40f711(0x1bd),'api':'https://api.lovrabet.com','runtime':a98_0x40f711(0x1c3),'skill':a98_0x40f711(0x1c2),'kb':a98_0x40f711(0x1c3)},'nonProduction':{'user':a98_0x40f711(0x1ad),'api':a98_0x40f711(0x1b6),'runtime':a98_0x40f711(0x1b3),'skill':a98_0x40f711(0x1b1),'kb':a98_0x40f711(0x1b3)}},'id':{'production':{'user':a98_0x40f711(0x1a4),'api':a98_0x40f711(0x1b9),'runtime':a98_0x40f711(0x1b7),'skill':a98_0x40f711(0x1ba),'kb':'https://runtime.lovrabet.id'},'nonProduction':{'user':a98_0x40f711(0x1b5),'api':a98_0x40f711(0x1ae),'runtime':'https://daily-runtime.lovrabet.id','skill':a98_0x40f711(0x1cc),'kb':a98_0x40f711(0x1b4)}},'global':{'production':{'user':a98_0x40f711(0x1b8),'api':'https://api.lovrabet.ai','runtime':a98_0x40f711(0x1ca),'skill':a98_0x40f711(0x1b2),'kb':'https://runtime.lovrabet.ai'},'nonProduction':{'user':'https://user-daily.lovrabet.ai','api':a98_0x40f711(0x1ab),'runtime':a98_0x40f711(0x1c5),'skill':'https://skills-daily.lovrabet.ai','kb':'https://daily-runtime.lovrabet.ai'}}},'accessKeyCreatePath':a98_0x40f711(0x1c7)};export function productEnvName(_0x452cbe){return PRODUCT_CONFIG['envPrefix']+'_'+_0x452cbe;}function a98_0x5385(_0x31e518,_0x3fc21d){_0x31e518=_0x31e518-0x1a3;const _0x4eb8a2=a98_0x4eb8();let _0x5385d7=_0x4eb8a2[_0x31e518];return _0x5385d7;}export function productEnvNames(_0x189918){const _0x7470f8=a98_0x40f711;return[productEnvName(_0x189918),...PRODUCT_CONFIG[_0x7470f8(0x1a7)][_0x7470f8(0x1c4)](_0x549aee=>_0x549aee+'_'+_0x189918)];}export function productEnv(_0x16b433){for(const _0x475d3c of productEnvNames(_0x16b433)){const _0x211eb6=process.env[_0x475d3c];if(_0x211eb6!==undefined)return _0x211eb6;}return undefined;}
1
+ const a98_0x1ce73a=a98_0x2cea;function a98_0x2cea(_0x27dfbf,_0x3fbfae){_0x27dfbf=_0x27dfbf-0x87;const _0x5aa071=a98_0x5aa0();let _0x2ceaec=_0x5aa071[_0x27dfbf];return _0x2ceaec;}(function(_0xbc2f6,_0x338724){const _0x1d6aae=a98_0x2cea,_0x123a71=_0xbc2f6();while(!![]){try{const _0x16b79f=parseInt(_0x1d6aae(0xa8))/0x1*(-parseInt(_0x1d6aae(0x9c))/0x2)+parseInt(_0x1d6aae(0x88))/0x3*(parseInt(_0x1d6aae(0x92))/0x4)+parseInt(_0x1d6aae(0x96))/0x5+parseInt(_0x1d6aae(0x9a))/0x6*(parseInt(_0x1d6aae(0x8c))/0x7)+parseInt(_0x1d6aae(0x8d))/0x8+parseInt(_0x1d6aae(0xa9))/0x9+-parseInt(_0x1d6aae(0x94))/0xa;if(_0x16b79f===_0x338724)break;else _0x123a71['push'](_0x123a71['shift']());}catch(_0x5b1fed){_0x123a71['push'](_0x123a71['shift']());}}}(a98_0x5aa0,0xe9b2f));export const PRODUCT_CONFIG={'cliBinName':a98_0x1ce73a(0xab),'cliDisplayName':a98_0x1ce73a(0xa6),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':a98_0x1ce73a(0x8e),'internalSkillSource':a98_0x1ce73a(0xa0),'globalSkillName':a98_0x1ce73a(0xab),'npmRegistryBaseUrl':a98_0x1ce73a(0xa4),'cliCdnBaseUrl':'https://g.lovrabet.com','envPrefix':a98_0x1ce73a(0xac),'legacyEnvPrefixes':[a98_0x1ce73a(0x90)],'configFileNames':[a98_0x1ce73a(0xb2)],'newConfigFileName':a98_0x1ce73a(0xb2),'homeDirName':a98_0x1ce73a(0xaf),'logFileName':a98_0x1ce73a(0x87),'invokeSource':a98_0x1ce73a(0x89),'userCenterDisplayName':a98_0x1ce73a(0x97),'skipNpxSkillsEnvSuffix':a98_0x1ce73a(0x99),'regionDomains':{'cn':{'production':{'user':a98_0x1ce73a(0x8b),'api':a98_0x1ce73a(0x91),'runtime':a98_0x1ce73a(0xa2),'skill':'https://skills.lovrabet.com','kb':a98_0x1ce73a(0xa2)},'nonProduction':{'user':a98_0x1ce73a(0xa1),'api':a98_0x1ce73a(0xae),'runtime':a98_0x1ce73a(0xa7),'skill':'https://skills-daily.lovrabet.com','kb':a98_0x1ce73a(0xa7)}},'id':{'production':{'user':a98_0x1ce73a(0xa5),'api':a98_0x1ce73a(0xb1),'runtime':a98_0x1ce73a(0xaa),'skill':a98_0x1ce73a(0xa3),'kb':a98_0x1ce73a(0xaa)},'nonProduction':{'user':a98_0x1ce73a(0x9d),'api':'https://daily-api.lovrabet.id','runtime':a98_0x1ce73a(0x8a),'skill':a98_0x1ce73a(0xb3),'kb':'https://daily-runtime.lovrabet.id'}},'global':{'production':{'user':a98_0x1ce73a(0xb0),'api':a98_0x1ce73a(0x93),'runtime':'https://runtime.lovrabet.ai','skill':'https://skills.lovrabet.ai','kb':a98_0x1ce73a(0x9f)},'nonProduction':{'user':a98_0x1ce73a(0x9b),'api':a98_0x1ce73a(0x8f),'runtime':'https://daily-runtime.lovrabet.ai','skill':a98_0x1ce73a(0xb4),'kb':'https://daily-runtime.lovrabet.ai'}}},'accessKeyCreatePath':a98_0x1ce73a(0x95)};function a98_0x5aa0(){const _0x2afe23=['168eEMuQp','https://api.lovrabet.ai','56435600jetQUh','/user/ak','4015110OjUDYQ','Lovrabet\x20User\x20Center','envPrefix','SKIP_NPX_SKILLS','12nvUqWU','https://user-daily.lovrabet.ai','44866oCVPGk','https://user-daily.lovrabet.id','map','https://runtime.lovrabet.ai','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','https://user-daily.lovrabet.com','https://runtime.lovrabet.com','https://skills.lovrabet.id','https://registry.npmjs.org','https://user.lovrabet.id','Lovrabet\x20Runtime\x20CLI','https://daily-runtime.lovrabet.com','1EMkOpA','16508475auqtgK','https://runtime.lovrabet.id','lovrabet','LOVRABET','legacyEnvPrefixes','https://daily-api.lovrabet.com','.lovrabet','https://user.lovrabet.ai','https://api.lovrabet.id','.lovrabet.json','https://skills-daily.lovrabet.id','https://skills-daily.lovrabet.ai','.lovrabet-runtime.log','26208tjSTiT','cli:lovrabet-runtime','https://daily-runtime.lovrabet.id','https://user.lovrabet.com','6317374nDcExb','14512408pqQnYv','lovrabet/lovrabet-cli','https://daily-api.lovrabet.ai','RABETBASE','https://api.lovrabet.com'];a98_0x5aa0=function(){return _0x2afe23;};return a98_0x5aa0();}export function productEnvName(_0x543a87){const _0x404231=a98_0x1ce73a;return PRODUCT_CONFIG[_0x404231(0x98)]+'_'+_0x543a87;}export function productEnvNames(_0x1887e9){const _0x17c195=a98_0x1ce73a;return[productEnvName(_0x1887e9),...PRODUCT_CONFIG[_0x17c195(0xad)][_0x17c195(0x9e)](_0x52a3cb=>_0x52a3cb+'_'+_0x1887e9)];}export function productEnv(_0xcbbf12){for(const _0x1b414e of productEnvNames(_0xcbbf12)){const _0x2c1bc4=process.env[_0x1b414e];if(_0x2c1bc4!==undefined)return _0x2c1bc4;}return undefined;}
@@ -1 +1 @@
1
- function a99_0x5819(_0x1738ba,_0x49966a){_0x1738ba=_0x1738ba-0xb3;const _0x3ac511=a99_0x3ac5();let _0x5819eb=_0x3ac511[_0x1738ba];return _0x5819eb;}const a99_0x7f6883=a99_0x5819;(function(_0x112400,_0x55a6bf){const _0x1dc6f0=a99_0x5819,_0x23310b=_0x112400();while(!![]){try{const _0x1b34df=-parseInt(_0x1dc6f0(0xbc))/0x1*(parseInt(_0x1dc6f0(0xbd))/0x2)+-parseInt(_0x1dc6f0(0xb8))/0x3+-parseInt(_0x1dc6f0(0xb9))/0x4+parseInt(_0x1dc6f0(0xb6))/0x5*(parseInt(_0x1dc6f0(0xbe))/0x6)+-parseInt(_0x1dc6f0(0xba))/0x7+parseInt(_0x1dc6f0(0xbf))/0x8*(parseInt(_0x1dc6f0(0xb5))/0x9)+parseInt(_0x1dc6f0(0xb4))/0xa;if(_0x1b34df===_0x55a6bf)break;else _0x23310b['push'](_0x23310b['shift']());}catch(_0x39e0ed){_0x23310b['push'](_0x23310b['shift']());}}}(a99_0x3ac5,0x6dfb4));function a99_0x3ac5(){const _0xfb8aea=['3337019OnCGid','global','1GFizdL','1588438UxPsjB','126QvXMhn','5924744opdfkM','indonesia','china','12113900yKYGQU','9QlglCm','181285hePkCZ','string','1950882NtUCaQ','1366664qrRIkJ'];a99_0x3ac5=function(){return _0xfb8aea;};return a99_0x3ac5();}export const LOVRABET_REGION_VALUES=['cn','id',a99_0x7f6883(0xbb)];export const ENABLED_LOVRABET_REGION_VALUES=['cn','id'];export const DEFAULT_LOVRABET_REGION='cn';export function isLovrabetRegion(_0x1eb11e){const _0xe99402=a99_0x7f6883;return typeof _0x1eb11e===_0xe99402(0xb7)&&LOVRABET_REGION_VALUES['includes'](_0x1eb11e);}export function isEnabledLovrabetRegion(_0x22aaae){const _0x12220c=a99_0x7f6883;return typeof _0x22aaae===_0x12220c(0xb7)&&ENABLED_LOVRABET_REGION_VALUES['includes'](_0x22aaae);}export function normalizeLovrabetRegion(_0x26b18d){const _0x3bed14=a99_0x7f6883;if(_0x26b18d===_0x3bed14(0xb3))return'cn';if(_0x26b18d===_0x3bed14(0xc0))return'id';return isLovrabetRegion(_0x26b18d)?_0x26b18d:DEFAULT_LOVRABET_REGION;}
1
+ const a99_0x2808ef=a99_0xb037;function a99_0xb037(_0x26600e,_0x302ade){_0x26600e=_0x26600e-0x184;const _0x407ad4=a99_0x407a();let _0xb037b2=_0x407ad4[_0x26600e];return _0xb037b2;}(function(_0x1fb04b,_0x28be88){const _0x5eeb29=a99_0xb037,_0x448282=_0x1fb04b();while(!![]){try{const _0x1e2d0c=parseInt(_0x5eeb29(0x18b))/0x1*(-parseInt(_0x5eeb29(0x18e))/0x2)+parseInt(_0x5eeb29(0x192))/0x3*(-parseInt(_0x5eeb29(0x185))/0x4)+parseInt(_0x5eeb29(0x18a))/0x5*(-parseInt(_0x5eeb29(0x191))/0x6)+parseInt(_0x5eeb29(0x190))/0x7*(parseInt(_0x5eeb29(0x186))/0x8)+-parseInt(_0x5eeb29(0x18c))/0x9*(parseInt(_0x5eeb29(0x184))/0xa)+-parseInt(_0x5eeb29(0x189))/0xb+parseInt(_0x5eeb29(0x18d))/0xc;if(_0x1e2d0c===_0x28be88)break;else _0x448282['push'](_0x448282['shift']());}catch(_0x1ba5ce){_0x448282['push'](_0x448282['shift']());}}}(a99_0x407a,0xc3d28));export const LOVRABET_REGION_VALUES=['cn','id',a99_0x2808ef(0x187)];function a99_0x407a(){const _0x4ef073=['1HoWftC','1089hOUttu','43815036ggwDzZ','503618sXDNMY','indonesia','7792393ZdWIpr','5454alYMvz','72963LvJlQx','string','62030TXitMU','88NthRwW','8YhpxsR','global','includes','10385859YnqhOC','8145vCQddl'];a99_0x407a=function(){return _0x4ef073;};return a99_0x407a();}export const ENABLED_LOVRABET_REGION_VALUES=['cn','id'];export const DEFAULT_LOVRABET_REGION='cn';export function isLovrabetRegion(_0x250e6f){const _0x5f3222=a99_0x2808ef;return typeof _0x250e6f===_0x5f3222(0x193)&&LOVRABET_REGION_VALUES[_0x5f3222(0x188)](_0x250e6f);}export function isEnabledLovrabetRegion(_0x4e9ae9){const _0x50dcf0=a99_0x2808ef;return typeof _0x4e9ae9===_0x50dcf0(0x193)&&ENABLED_LOVRABET_REGION_VALUES['includes'](_0x4e9ae9);}export function normalizeLovrabetRegion(_0x1686a2){const _0x1ef083=a99_0x2808ef;if(_0x1686a2==='china')return'cn';if(_0x1686a2===_0x1ef083(0x18f))return'id';return isLovrabetRegion(_0x1686a2)?_0x1686a2:DEFAULT_LOVRABET_REGION;}
@@ -1 +1 @@
1
- function a100_0x10e0(_0x4e577d,_0x4d7c40){_0x4e577d=_0x4e577d-0x1ef;const _0x12db32=a100_0x12db();let _0x10e074=_0x12db32[_0x4e577d];return _0x10e074;}const a100_0x253ac7=a100_0x10e0;(function(_0x54cbc3,_0x5db750){const _0x47980b=a100_0x10e0,_0x275ed6=_0x54cbc3();while(!![]){try{const _0x399edd=-parseInt(_0x47980b(0x1f1))/0x1*(parseInt(_0x47980b(0x1f3))/0x2)+-parseInt(_0x47980b(0x1f9))/0x3*(-parseInt(_0x47980b(0x1f2))/0x4)+-parseInt(_0x47980b(0x1fa))/0x5+parseInt(_0x47980b(0x1f4))/0x6*(parseInt(_0x47980b(0x1ef))/0x7)+-parseInt(_0x47980b(0x1f6))/0x8+-parseInt(_0x47980b(0x1f7))/0x9+parseInt(_0x47980b(0x1f5))/0xa;if(_0x399edd===_0x5db750)break;else _0x275ed6['push'](_0x275ed6['shift']());}catch(_0xc1e9f1){_0x275ed6['push'](_0x275ed6['shift']());}}}(a100_0x12db,0xd9947));export const RISK_LEVEL_VALUES=[a100_0x253ac7(0x1f0),a100_0x253ac7(0x1f8),'high-risk-write'];function a100_0x12db(){const _0x2c9b61=['80686dMFGjv','3288sUebQD','49269360OSpOoX','1309320zEIEpV','13948839fbwmuP','write','75KFyHJa','7171760sqwVlz','1687pwKLmA','read','38PPGuyO','82100UCbDIz'];a100_0x12db=function(){return _0x2c9b61;};return a100_0x12db();}
1
+ function a100_0xeb1f(){const _0x3afa8d=['30LcNMpS','1624462fsFdFf','306226UGVOpB','read','8769368ghbHGG','267505SHqVDd','168212CZxRwf','1550AqjGZB','12gxfvJk','high-risk-write','5NGUDGh','41157PvWsnW','21640696iTDvUs'];a100_0xeb1f=function(){return _0x3afa8d;};return a100_0xeb1f();}const a100_0x26595d=a100_0x30e1;(function(_0x376e30,_0x2d6524){const _0x38a1b2=a100_0x30e1,_0x1d7781=_0x376e30();while(!![]){try{const _0x34212b=parseInt(_0x38a1b2(0x11c))/0x1+-parseInt(_0x38a1b2(0x119))/0x2*(parseInt(_0x38a1b2(0x11f))/0x3)+-parseInt(_0x38a1b2(0x11d))/0x4*(parseInt(_0x38a1b2(0x121))/0x5)+parseInt(_0x38a1b2(0x117))/0x6*(parseInt(_0x38a1b2(0x118))/0x7)+parseInt(_0x38a1b2(0x11b))/0x8+-parseInt(_0x38a1b2(0x122))/0x9*(-parseInt(_0x38a1b2(0x11e))/0xa)+-parseInt(_0x38a1b2(0x123))/0xb;if(_0x34212b===_0x2d6524)break;else _0x1d7781['push'](_0x1d7781['shift']());}catch(_0x2df066){_0x1d7781['push'](_0x1d7781['shift']());}}}(a100_0xeb1f,0x952a4));function a100_0x30e1(_0x40a724,_0x12497a){_0x40a724=_0x40a724-0x117;const _0xeb1f3d=a100_0xeb1f();let _0x30e17f=_0xeb1f3d[_0x40a724];return _0x30e17f;}export const RISK_LEVEL_VALUES=[a100_0x26595d(0x11a),'write',a100_0x26595d(0x120)];
@@ -1 +1 @@
1
- (function(_0x1247bf,_0x366169){const _0x1000e0=a101_0x215f,_0x4aa6c4=_0x1247bf();while(!![]){try{const _0x13d8dd=parseInt(_0x1000e0(0x1ba))/0x1*(-parseInt(_0x1000e0(0x1c2))/0x2)+-parseInt(_0x1000e0(0x1b8))/0x3*(parseInt(_0x1000e0(0x1b7))/0x4)+parseInt(_0x1000e0(0x1bb))/0x5*(parseInt(_0x1000e0(0x1be))/0x6)+-parseInt(_0x1000e0(0x1b6))/0x7*(parseInt(_0x1000e0(0x1bc))/0x8)+parseInt(_0x1000e0(0x1c3))/0x9*(-parseInt(_0x1000e0(0x1b9))/0xa)+-parseInt(_0x1000e0(0x1c4))/0xb*(-parseInt(_0x1000e0(0x1c1))/0xc)+-parseInt(_0x1000e0(0x1bd))/0xd*(-parseInt(_0x1000e0(0x1c0))/0xe);if(_0x13d8dd===_0x366169)break;else _0x4aa6c4['push'](_0x4aa6c4['shift']());}catch(_0x5ae20a){_0x4aa6c4['push'](_0x4aa6c4['shift']());}}}(a101_0xc4c2,0x20e86));import{PRODUCT_CONFIG}from'../constant/product.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';export function getUserAccessKeyCreateUrl(_0x699541=DEFAULT_LOVRABET_REGION){const _0x5b2b18=a101_0x215f,_0x5fc3e9=PRODUCT_CONFIG[_0x5b2b18(0x1bf)][_0x699541][_0x5b2b18(0x1b5)][_0x5b2b18(0x1c5)];return''+_0x5fc3e9+PRODUCT_CONFIG[_0x5b2b18(0x1c6)];}function a101_0xc4c2(){const _0x158843=['412VdgAjy','4209dHxpGU','4510FGDEKd','1MjgfyT','31385OaqJLM','24nhUkLR','13pLppqn','36odJfIx','regionDomains','6058696mePHJs','12YgEjFj','76958egEeZT','1089EcAVUx','1713745LLUnXP','user','accessKeyCreatePath','production','592368YlHOuQ'];a101_0xc4c2=function(){return _0x158843;};return a101_0xc4c2();}function a101_0x215f(_0x14fc7a,_0x3ab435){_0x14fc7a=_0x14fc7a-0x1b5;const _0xc4c289=a101_0xc4c2();let _0x215ff3=_0xc4c289[_0x14fc7a];return _0x215ff3;}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();
1
+ (function(_0x4d9415,_0x343ce6){const _0x5a47c4=a101_0x26c3,_0x313f79=_0x4d9415();while(!![]){try{const _0x5bd37d=-parseInt(_0x5a47c4(0xd7))/0x1*(parseInt(_0x5a47c4(0xd4))/0x2)+-parseInt(_0x5a47c4(0xd5))/0x3*(parseInt(_0x5a47c4(0xd0))/0x4)+parseInt(_0x5a47c4(0xda))/0x5+-parseInt(_0x5a47c4(0xd9))/0x6*(-parseInt(_0x5a47c4(0xce))/0x7)+parseInt(_0x5a47c4(0xd8))/0x8+parseInt(_0x5a47c4(0xd6))/0x9+-parseInt(_0x5a47c4(0xdb))/0xa*(parseInt(_0x5a47c4(0xd2))/0xb);if(_0x5bd37d===_0x343ce6)break;else _0x313f79['push'](_0x313f79['shift']());}catch(_0x20a2ea){_0x313f79['push'](_0x313f79['shift']());}}}(a101_0x3e77,0x41360));import{PRODUCT_CONFIG}from'../constant/product.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';function a101_0x3e77(){const _0x3357ec=['regionDomains','155368pZHDXd','user','3421mYQkAI','production','1906VAttWD','12cQUwQc','100782CjTyVn','296NjOACb','4116736uwXLBr','6IQmwhz','1837520dINKLw','14130kgNNCi','accessKeyCreatePath','1754963uQUhuC'];a101_0x3e77=function(){return _0x3357ec;};return a101_0x3e77();}function a101_0x26c3(_0x658c49,_0x43c9fe){_0x658c49=_0x658c49-0xce;const _0x3e77aa=a101_0x3e77();let _0x26c331=_0x3e77aa[_0x658c49];return _0x26c331;}export function getUserAccessKeyCreateUrl(_0x3faf77=DEFAULT_LOVRABET_REGION){const _0x519fd2=a101_0x26c3,_0x11f490=PRODUCT_CONFIG[_0x519fd2(0xcf)][_0x3faf77][_0x519fd2(0xd3)][_0x519fd2(0xd1)];return''+_0x11f490+PRODUCT_CONFIG[_0x519fd2(0xdc)];}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();