@lovrabet/lovrabet-cli 2.2.4-beta.1 → 2.2.4-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 (162) 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/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/notification/config-list.js +1 -1
  36. package/lib/commands/notification/index.js +1 -1
  37. package/lib/commands/notification/shared.js +1 -1
  38. package/lib/commands/ocr/index.js +1 -1
  39. package/lib/commands/permit/dataset-get.js +1 -1
  40. package/lib/commands/permit/dataset-set.js +1 -1
  41. package/lib/commands/permit/index.js +1 -1
  42. package/lib/commands/permit/page-get.js +1 -1
  43. package/lib/commands/permit/page-set.js +1 -1
  44. package/lib/commands/permit/role-menus-set.js +1 -1
  45. package/lib/commands/permit/role-menus.js +1 -1
  46. package/lib/commands/permit/shared.js +1 -1
  47. package/lib/commands/personal-bff/index.js +1 -1
  48. package/lib/commands/registry.js +1 -1
  49. package/lib/commands/role/create.js +1 -1
  50. package/lib/commands/role/delete.js +1 -1
  51. package/lib/commands/role/detail.js +1 -1
  52. package/lib/commands/role/index.js +1 -1
  53. package/lib/commands/role/list.js +1 -1
  54. package/lib/commands/role/shared.js +1 -1
  55. package/lib/commands/role/update.js +1 -1
  56. package/lib/commands/role/user-add.js +1 -1
  57. package/lib/commands/role/user-remove.js +1 -1
  58. package/lib/commands/schedule/index.js +1 -1
  59. package/lib/commands/schema.js +1 -1
  60. package/lib/commands/service/dynamic.js +1 -1
  61. package/lib/commands/service/function-name-adapter.js +1 -1
  62. package/lib/commands/service/index.js +1 -1
  63. package/lib/commands/service/registry.js +1 -1
  64. package/lib/commands/skill/commands/create.js +1 -1
  65. package/lib/commands/skill/commands/diagram.js +1 -1
  66. package/lib/commands/skill/commands/install.js +1 -1
  67. package/lib/commands/skill/commands/list.js +1 -1
  68. package/lib/commands/skill/commands/push.js +1 -1
  69. package/lib/commands/skill/commands/validate.js +1 -1
  70. package/lib/commands/skill/diagram.js +1 -1
  71. package/lib/commands/skill/flags.js +1 -1
  72. package/lib/commands/skill/index.js +1 -1
  73. package/lib/commands/skill/manifest-helpers.js +1 -1
  74. package/lib/commands/skill/push-execute.js +1 -1
  75. package/lib/commands/skill/push-flow-helpers.js +1 -1
  76. package/lib/commands/skill/push-retarget.js +1 -1
  77. package/lib/commands/skill/scopes.js +1 -1
  78. package/lib/commands/skill/summary.js +1 -1
  79. package/lib/commands/skill/templates.js +1 -1
  80. package/lib/commands/skill/validate.js +1 -1
  81. package/lib/commands/sql/detail.js +1 -1
  82. package/lib/commands/sql/exec.js +1 -1
  83. package/lib/commands/sql/index.js +1 -1
  84. package/lib/commands/update.d.ts +19 -0
  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/schema.js +1 -1
  90. package/lib/constant/app.js +1 -1
  91. package/lib/constant/auth-mode.js +1 -1
  92. package/lib/constant/cli.js +1 -1
  93. package/lib/constant/defaults.js +1 -1
  94. package/lib/constant/distribution.js +1 -1
  95. package/lib/constant/domain.js +1 -1
  96. package/lib/constant/env.js +1 -1
  97. package/lib/constant/output.js +1 -1
  98. package/lib/constant/product.js +1 -1
  99. package/lib/constant/risk.js +1 -1
  100. package/lib/constant/url.js +1 -1
  101. package/lib/context.js +1 -1
  102. package/lib/core/api-client.js +1 -1
  103. package/lib/core/db-resolver.js +1 -1
  104. package/lib/core/sdk-client.js +1 -1
  105. package/lib/errors.js +1 -1
  106. package/lib/framework/build-all-flags.js +1 -1
  107. package/lib/framework/dryrun.js +1 -1
  108. package/lib/framework/flags.js +1 -1
  109. package/lib/framework/help.js +1 -1
  110. package/lib/framework/index.js +1 -1
  111. package/lib/framework/output.js +1 -1
  112. package/lib/framework/preparse.js +1 -1
  113. package/lib/framework/rate-limit.js +1 -1
  114. package/lib/framework/raw-flags.js +1 -1
  115. package/lib/framework/response.js +1 -1
  116. package/lib/framework/runner-confirmation.js +1 -1
  117. package/lib/framework/runner-error.js +1 -1
  118. package/lib/framework/runner.js +1 -1
  119. package/lib/framework/schema-export.js +1 -1
  120. package/lib/framework/service-order.js +1 -1
  121. package/lib/framework/types.js +1 -1
  122. package/lib/generated/build-info.d.ts +4 -4
  123. package/lib/generated/build-info.js +1 -1
  124. package/lib/help.js +1 -1
  125. package/lib/postinstall.js +1 -1
  126. package/lib/runtime/confirmation.js +1 -1
  127. package/lib/runtime/event.js +1 -1
  128. package/lib/runtime/index.js +1 -1
  129. package/lib/runtime/queue.js +1 -1
  130. package/lib/runtime/resolve.js +1 -1
  131. package/lib/skills/builtin-skill.js +1 -1
  132. package/lib/skills/npx-skills-add.js +1 -1
  133. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  134. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  135. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  136. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  137. package/lib/skills/runtime-skill-sync/links.js +1 -1
  138. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  139. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  140. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  141. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  142. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  143. package/lib/skills/runtime-skill-sync/push.js +1 -1
  144. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  145. package/lib/skills/runtime-skill-sync/types.d.ts +1 -0
  146. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  147. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  148. package/lib/skills/runtime-skill-sync.js +1 -1
  149. package/lib/skills/skill-presence.js +1 -1
  150. package/lib/utils/apply-jq-filter.js +1 -1
  151. package/lib/utils/logger.js +1 -1
  152. package/lib/utils/lossless-json.js +1 -1
  153. package/lib/utils/params.js +1 -1
  154. package/lib/utils/platform.js +1 -1
  155. package/lib/utils/update-notice.js +1 -1
  156. package/lib/utils/version.js +1 -1
  157. package/lib/utils/write-cli-side-channel.js +1 -1
  158. package/package.json +1 -1
  159. package/skills/lovrabet/SKILL.md +5 -5
  160. package/skills/lovrabet/references/lovrabet-ocr-workflow.md +17 -2
  161. package/skills/lovrabet/references/lovrabet-skill-authoring.md +5 -4
  162. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a83_0x5e6f61=a83_0xaf46;(function(_0x57241a,_0x514025){const _0x421ca1=a83_0xaf46,_0x41bbe7=_0x57241a();while(!![]){try{const _0xdd8e42=parseInt(_0x421ca1(0x1cc))/0x1*(-parseInt(_0x421ca1(0x1d7))/0x2)+-parseInt(_0x421ca1(0x1f1))/0x3*(parseInt(_0x421ca1(0x212))/0x4)+parseInt(_0x421ca1(0x1d4))/0x5+parseInt(_0x421ca1(0x210))/0x6+-parseInt(_0x421ca1(0x1ea))/0x7*(parseInt(_0x421ca1(0x20e))/0x8)+parseInt(_0x421ca1(0x211))/0x9+parseInt(_0x421ca1(0x1cb))/0xa*(parseInt(_0x421ca1(0x1c7))/0xb);if(_0xdd8e42===_0x514025)break;else _0x41bbe7['push'](_0x41bbe7['shift']());}catch(_0x3b0c48){_0x41bbe7['push'](_0x41bbe7['shift']());}}}(a83_0x3c97,0x5ef5d));import{spawnSync}from'node:child_process';import a83_0x17e629 from'semver';function a83_0x3c97(){const _0x46c061=['\x20is\x20current.',']:\x20','object','Update\x20failed:\x20','inherit','valid','reason','stderr','log','validation','nonInteractive','Install\x20a\x20specific\x20CLI\x20version','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','map','str','Already\x20on\x20requested\x20version\x20(v','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','/-/package/','npm','message','current','Checking\x20CLI\x20Built-in\x20Skill...','4762664FCZYdY','pipe','386490NBzlEB','4991130VFJfPa','6568OKhphc','INSTALL_FAILED','77AyTWFO','stdout','/dist-tags','update','1147990hFOsng','1EDuhhZ','Current\x20version:\x20','find','source','warn','skillVersion','trim','\x20->\x20','2123740eCKChg','boolean','beta','1407524QtSXOY','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20','Version\x20comparison\x20failed:\x20','\x20\x20CLI\x20Built-in\x20Skill\x20','Updating\x20','\x20\x20Run\x20manually:\x20','code','length','filter','error','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','join','status','unknown','version','repairCommand','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','bool','7BJLvDU','latest','install','entries','\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','json','291jRpRZA','state','fromEntries','toString','exit\x20','Checking\x20npm\x20dist-tags...','timeout'];a83_0x3c97=function(){return _0x46c061;};return a83_0x3c97();}import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';function a83_0xaf46(_0x255a5b,_0x5897be){_0x255a5b=_0x255a5b-0x1c6;const _0x3c978c=a83_0x3c97();let _0xaf467e=_0x3c978c[_0x255a5b];return _0xaf467e;}const updateFlags=[{'name':a83_0x5e6f61(0x1eb),'type':a83_0x5e6f61(0x1d5),'description':a83_0x5e6f61(0x204),'default':![]},{'name':a83_0x5e6f61(0x1d6),'type':a83_0x5e6f61(0x1d5),'description':a83_0x5e6f61(0x1e2),'default':![]},{'name':a83_0x5e6f61(0x1e6),'type':'string','description':a83_0x5e6f61(0x203)}];function getRequestedVersion(_0x2066e2){const _0x1fda0f=a83_0x5e6f61,_0x52b830=_0x2066e2[_0x1fda0f(0x206)]('version')[_0x1fda0f(0x1d2)]();if(_0x52b830)return _0x52b830;return String(_0x2066e2['args']?.[0x0]??'')['trim']();}async function validateUpdateFlags(_0x4a4be7){const _0x35a1af=a83_0x5e6f61,_0x266954=getRequestedVersion(_0x4a4be7),_0x1bfc9f=[_0x4a4be7[_0x35a1af(0x1e9)]('latest')?'latest':'',_0x4a4be7[_0x35a1af(0x1e9)]('beta')?_0x35a1af(0x1d6):'',_0x266954?_0x35a1af(0x1e6):''][_0x35a1af(0x1e0)](Boolean);if(_0x1bfc9f[_0x35a1af(0x1df)]>0x1)throw CliErrors[_0x35a1af(0x201)](_0x35a1af(0x1ef),_0x35a1af(0x1d8));if(_0x266954&&!a83_0x17e629[_0x35a1af(0x1fd)](_0x266954))throw CliErrors[_0x35a1af(0x201)]('Invalid\x20version:\x20'+_0x266954,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x2e802f=a83_0x5e6f61;try{const _0x3d77d3=NPM_REGISTRY_BASE_URL+_0x2e802f(0x209)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x2e802f(0x1c9),_0x2045e0=await fetch(_0x3d77d3,{'signal':AbortSignal[_0x2e802f(0x1f7)](0x2710)});if(!_0x2045e0['ok'])return null;const _0x3b72be=await _0x2045e0[_0x2e802f(0x1f0)]();if(!_0x3b72be||typeof _0x3b72be!==_0x2e802f(0x1fa))return null;return Object[_0x2e802f(0x1f3)](Object[_0x2e802f(0x1ed)](_0x3b72be)['filter'](([,_0x4608ac])=>typeof _0x4608ac==='string'&&_0x4608ac[_0x2e802f(0x1d2)]())[_0x2e802f(0x205)](([_0xccf13b,_0x5a3403])=>[_0xccf13b,String(_0x5a3403)[_0x2e802f(0x1d2)]()]));}catch{return null;}}async function resolveTargetVersion(_0x44cbf1){const _0x33f892=a83_0x5e6f61,_0x43f189=getRequestedVersion(_0x44cbf1);if(_0x43f189)return{'version':_0x43f189,'source':_0x33f892(0x1e6)};const _0x3f76b6=_0x44cbf1['bool'](_0x33f892(0x1d6))?_0x33f892(0x1d6):_0x33f892(0x1eb),_0x39b843=await fetchNpmDistTags(),_0x1ec404=_0x39b843?.[_0x3f76b6];if(!_0x1ec404)return null;return{'version':_0x1ec404,'source':_0x3f76b6};}function shouldInstallTarget(_0x4ef82c,_0x18e007){const _0xcbe6b3=a83_0x5e6f61;if(_0x18e007[_0xcbe6b3(0x1cf)]===_0xcbe6b3(0x1e6)||_0x18e007[_0xcbe6b3(0x1cf)]==='beta')return!a83_0x17e629['eq'](_0x4ef82c,_0x18e007[_0xcbe6b3(0x1e6)]);return a83_0x17e629['lt'](_0x4ef82c,_0x18e007[_0xcbe6b3(0x1e6)]);}function installCliPackage(_0x2a9b17,_0x52773f){const _0x344df1=a83_0x5e6f61,_0x186e9f=resolveNpmBin(_0x344df1(0x20a)),_0x11929f=[_0x344df1(0x1ec),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x2a9b17];console[_0x344df1(0x200)]('*\x20'+[_0x186e9f,..._0x11929f][_0x344df1(0x1e3)]('\x20'));const _0x4910d6=spawnSync(_0x186e9f,_0x11929f,{'cwd':process['cwd'](),'stdio':_0x52773f?_0x344df1(0x20f):_0x344df1(0x1fc),'env':process.env,'shell':![]});if(_0x4910d6['status']===0x0)return{'ok':!![]};let _0x256dff=_0x4910d6['error']?.[_0x344df1(0x20b)]||_0x344df1(0x1f5)+(_0x4910d6[_0x344df1(0x1e4)]??_0x344df1(0x1e5));if(_0x52773f){const _0x3ccb73=_0x4910d6['stderr']?_0x4910d6[_0x344df1(0x1ff)][_0x344df1(0x1f4)]()[_0x344df1(0x1d2)]():'',_0x2f4dc9=_0x4910d6[_0x344df1(0x1c8)]?_0x4910d6[_0x344df1(0x1c8)][_0x344df1(0x1f4)]()['trim']():'';if(_0x3ccb73)_0x256dff=_0x3ccb73;else{if(_0x2f4dc9)_0x256dff=_0x2f4dc9;}}return{'ok':![],'error':_0x256dff};}function repairCurrentBuiltinSkill(_0x5dbda5){const _0x5ee415=a83_0x5e6f61;console[_0x5ee415(0x200)](_0x5ee415(0x20d));const _0x4bf2f4=installBuiltinSkill({'stdio':_0x5dbda5?_0x5ee415(0x20f):_0x5ee415(0x1fc)});if(_0x4bf2f4['ok'])return console['log'](_0x5ee415(0x1db)+_0x4bf2f4[_0x5ee415(0x1d1)]+_0x5ee415(0x1f8)),!![];return console[_0x5ee415(0x1d0)](_0x5ee415(0x1ee)+(_0x4bf2f4[_0x5ee415(0x1de)]||_0x5ee415(0x1c6))+_0x5ee415(0x1f9)+(_0x4bf2f4[_0x5ee415(0x1e1)]||_0x5ee415(0x1e5))),console[_0x5ee415(0x200)](_0x5ee415(0x1dd)+_0x4bf2f4[_0x5ee415(0x1e7)]),![];}function verifyUpdatedBuiltinSkill(_0x1addce){const _0x398072=a83_0x5e6f61;console['log'](_0x398072(0x20d));const _0x1a134e=inspectInstalledBuiltinSkillVersion(_0x1addce);if(_0x1a134e[_0x398072(0x1f2)]===_0x398072(0x20c))return console[_0x398072(0x200)]('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x1addce+_0x398072(0x1f8)),!![];console[_0x398072(0x1d0)](_0x398072(0x1d9)+_0x1a134e[_0x398072(0x1f2)]+'.');if(_0x1a134e['reason'])console['warn']('\x20\x20'+_0x1a134e[_0x398072(0x1fe)]);return console['log']('\x20\x20Run\x20manually:\x20'+_0x1a134e[_0x398072(0x1e7)]),![];}async function execute(_0x14344b){const _0x1c9565=a83_0x5e6f61;await validateUpdateFlags(_0x14344b);const _0x29cac6=getCliVersion();console[_0x1c9565(0x200)](_0x1c9565(0x1cd)+_0x29cac6),console[_0x1c9565(0x200)](_0x1c9565(0x1f6));const _0x4c0119=await resolveTargetVersion(_0x14344b);if(!_0x4c0119){const _0x4ec765=_0x14344b[_0x1c9565(0x1e9)](_0x1c9565(0x1d6))?_0x1c9565(0x1d6):'latest',_0x1dbdb7='Unable\x20to\x20resolve\x20'+_0x4ec765+'\x20version\x20from\x20npm.';return console[_0x1c9565(0x1d0)](_0x1dbdb7),console[_0x1c9565(0x200)](_0x1c9565(0x208)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4ec765),{'ok':![]};}const _0x451fbe=[_0x29cac6,_0x4c0119['version']][_0x1c9565(0x1ce)](_0x145ae6=>!a83_0x17e629['valid'](_0x145ae6));if(_0x451fbe)return console[_0x1c9565(0x1d0)](_0x1c9565(0x1da)+_0x451fbe+'.'),{'ok':![]};if(!shouldInstallTarget(_0x29cac6,_0x4c0119)){const _0x459b6a=_0x4c0119[_0x1c9565(0x1cf)]==='version'?_0x1c9565(0x207)+_0x4c0119[_0x1c9565(0x1e6)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x4c0119[_0x1c9565(0x1e6)]+').';return console[_0x1c9565(0x200)](_0x459b6a),{'ok':repairCurrentBuiltinSkill(_0x14344b['nonInteractive'])};}console[_0x1c9565(0x200)](_0x1c9565(0x1dc)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x29cac6+_0x1c9565(0x1d3)+_0x4c0119[_0x1c9565(0x1e6)]);const _0x52ed9f=installCliPackage(_0x4c0119[_0x1c9565(0x1e6)],_0x14344b[_0x1c9565(0x202)]);if(!_0x52ed9f['ok']){const _0x32fe41=_0x1c9565(0x1fb)+(_0x52ed9f[_0x1c9565(0x1e1)]||_0x1c9565(0x1e5));return console[_0x1c9565(0x1e1)](_0x32fe41),console[_0x1c9565(0x200)]('\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4c0119[_0x1c9565(0x1e6)]),{'ok':![]};}return console[_0x1c9565(0x200)]('Updated\x20to\x20v'+_0x4c0119[_0x1c9565(0x1e6)]+'.'),console['log'](_0x1c9565(0x1e8)),{'ok':verifyUpdatedBuiltinSkill(_0x4c0119[_0x1c9565(0x1e6)])};}export const updateDefinition={'service':a83_0x5e6f61(0x1ca),'command':'run','description':'从\x20npm\x20更新\x20'+CLI_BIN_NAME+'\x20CLI','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a83_0x3bd49f=a83_0x5ba7;(function(_0x103e22,_0x27192b){const _0x1b8f66=a83_0x5ba7,_0x4a5e34=_0x103e22();while(!![]){try{const _0x56a3cd=parseInt(_0x1b8f66(0x229))/0x1*(-parseInt(_0x1b8f66(0x1fa))/0x2)+parseInt(_0x1b8f66(0x23a))/0x3*(parseInt(_0x1b8f66(0x1f8))/0x4)+parseInt(_0x1b8f66(0x1ee))/0x5+parseInt(_0x1b8f66(0x22f))/0x6+-parseInt(_0x1b8f66(0x217))/0x7*(parseInt(_0x1b8f66(0x21f))/0x8)+parseInt(_0x1b8f66(0x213))/0x9+parseInt(_0x1b8f66(0x22c))/0xa*(parseInt(_0x1b8f66(0x239))/0xb);if(_0x56a3cd===_0x27192b)break;else _0x4a5e34['push'](_0x4a5e34['shift']());}catch(_0x5bbf3e){_0x4a5e34['push'](_0x4a5e34['shift']());}}}(a83_0x4ee0,0x6969d));import{spawnSync}from'node:child_process';import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import a83_0x172b6f from'semver';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':a83_0x3bd49f(0x226),'type':a83_0x3bd49f(0x21e),'description':a83_0x3bd49f(0x1f5),'default':![]},{'name':'beta','type':a83_0x3bd49f(0x21e),'description':a83_0x3bd49f(0x21a),'default':![]},{'name':a83_0x3bd49f(0x212),'type':a83_0x3bd49f(0x1f1),'description':'Install\x20a\x20specific\x20CLI\x20version'}];function getRequestedVersion(_0x4e6689){const _0x34721f=a83_0x3bd49f,_0x25ab03=_0x4e6689[_0x34721f(0x234)](_0x34721f(0x212))[_0x34721f(0x20a)]();if(_0x25ab03)return _0x25ab03;return String(_0x4e6689[_0x34721f(0x210)]?.[0x0]??'')['trim']();}async function validateUpdateFlags(_0x2a35f5){const _0x5436e5=a83_0x3bd49f,_0x257552=getRequestedVersion(_0x2a35f5),_0x1c9a24=[_0x2a35f5[_0x5436e5(0x202)](_0x5436e5(0x226))?'latest':'',_0x2a35f5['bool'](_0x5436e5(0x22b))?'beta':'',_0x257552?_0x5436e5(0x212):'']['filter'](Boolean);if(_0x1c9a24[_0x5436e5(0x20d)]>0x1)throw CliErrors['validation'](_0x5436e5(0x1f6),'Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.');if(_0x257552&&!a83_0x172b6f['valid'](_0x257552))throw CliErrors[_0x5436e5(0x21d)](_0x5436e5(0x219)+_0x257552,_0x5436e5(0x1f4));}async function fetchNpmDistTags(){const _0xec81c5=a83_0x3bd49f;try{const _0x580b71=NPM_REGISTRY_BASE_URL+_0xec81c5(0x204)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0xec81c5(0x232),_0x3cf3af=await fetch(_0x580b71,{'signal':AbortSignal[_0xec81c5(0x20e)](0x2710)});if(!_0x3cf3af['ok'])return null;const _0x55094e=await _0x3cf3af[_0xec81c5(0x1e9)]();if(!_0x55094e||typeof _0x55094e!==_0xec81c5(0x214))return null;return Object[_0xec81c5(0x201)](Object[_0xec81c5(0x206)](_0x55094e)[_0xec81c5(0x1f2)](([,_0x4fa24f])=>typeof _0x4fa24f===_0xec81c5(0x1f1)&&_0x4fa24f['trim']())['map'](([_0x41a41e,_0x4e988b])=>[_0x41a41e,String(_0x4e988b)['trim']()]));}catch{return null;}}function a83_0x4ee0(){const _0x2919c9=['Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','\x20\x20Run\x20manually:\x20','Checking\x20npm\x20dist-tags...','validation','boolean','4386864QAVszl','error','@lovrabet/lovrabet-cli','从\x20npm\x20更新\x20','toString','basename','exit\x20','latest','pipe','node_modules','2wbUHdk','Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20','beta','56580CzJOVQ','@lovrabet\x5clovrabet-cli','find','473622zwoDMJ','write','\x20->\x20','/dist-tags',']:\x20','str','valid','\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','Update\x20failed:\x20','current','1419WlDhts','798807TbRfdm','unknown','\x20\x20CLI\x20Built-in\x20Skill\x20','\x20is\x20current.','json','reason','update','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','state','55720MMrFQF','install','lib','string','filter','platform','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','run','4usfYTy','Current\x20version:\x20','355458xRxNEW','repairCommand','dirname','Already\x20on\x20requested\x20version\x20(v','cwd','\x20version\x20from\x20npm.','stderr','fromEntries','bool','source','/-/package/','code','entries','status','\x20CLI','read','trim','Version\x20comparison\x20failed:\x20','Checking\x20CLI\x20Built-in\x20Skill...','length','timeout','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','args','stdout','version','2244213bBNDOc','object','warn','log','7WsAfZL','nonInteractive','Invalid\x20version:\x20'];a83_0x4ee0=function(){return _0x2919c9;};return a83_0x4ee0();}async function resolveTargetVersion(_0x3fa0ba){const _0x5e5016=a83_0x3bd49f,_0x3024b2=getRequestedVersion(_0x3fa0ba);if(_0x3024b2)return{'version':_0x3024b2,'source':_0x5e5016(0x212)};const _0x204c32=_0x3fa0ba[_0x5e5016(0x202)]('beta')?'beta':'latest',_0x56e43d=await fetchNpmDistTags(),_0x204bb7=_0x56e43d?.[_0x204c32];if(!_0x204bb7)return null;return{'version':_0x204bb7,'source':_0x204c32};}function shouldInstallTarget(_0xa91a3,_0x54472c){const _0x2e33ff=a83_0x3bd49f;if(_0x54472c[_0x2e33ff(0x203)]===_0x2e33ff(0x212)||_0x54472c[_0x2e33ff(0x203)]===_0x2e33ff(0x22b))return!a83_0x172b6f['eq'](_0xa91a3,_0x54472c[_0x2e33ff(0x212)]);return a83_0x172b6f['lt'](_0xa91a3,_0x54472c[_0x2e33ff(0x212)]);}export function installCliPackage(_0x284d04,_0x504f73,_0x6679af=resolveCurrentCliNpmPrefix()){const _0x28b7ce=a83_0x3bd49f,_0x28ba29=resolveNpmBin('npm'),_0x3352cc=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x284d04,_0x1e9bbf=[_0x28b7ce(0x1ef),'-g',_0x3352cc],_0x569009=runNpmInstall(_0x28ba29,_0x1e9bbf,_0x504f73);if(_0x569009['ok']||!isNpmPrefixPermissionError(_0x569009[_0x28b7ce(0x220)]))return _0x569009;if(!_0x6679af||_0x569009[_0x28b7ce(0x220)]?.['toLowerCase']()['includes'](_0x6679af['toLowerCase']()))return _0x569009;return console[_0x28b7ce(0x215)](_0x28b7ce(0x22a)+_0x6679af),runNpmInstall(_0x28ba29,[..._0x1e9bbf,'--prefix',_0x6679af],_0x504f73);}export function resolveCurrentCliNpmPrefix(_0x440008=fileURLToPath(import.meta.url),_0x42dc27=process[a83_0x3bd49f(0x1f3)]){const _0x596f73=a83_0x3bd49f,_0x138372=_0x42dc27==='win32'?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x4ecd7f=_0x138372[_0x596f73(0x1fc)](_0x138372[_0x596f73(0x1fc)](_0x138372[_0x596f73(0x1fc)](_0x440008))),_0x3240a9=_0x42dc27==='win32'?_0x596f73(0x22d):_0x596f73(0x221);let _0x58c5b0=_0x138372['dirname'](_0x4ecd7f);while(!![]){if(_0x138372[_0x596f73(0x224)](_0x58c5b0)===_0x596f73(0x228)&&_0x138372['relative'](_0x58c5b0,_0x4ecd7f)===_0x3240a9){const _0x5459b5=_0x138372[_0x596f73(0x1fc)](_0x58c5b0);return _0x138372[_0x596f73(0x224)](_0x5459b5)===_0x596f73(0x1f0)?_0x138372['dirname'](_0x5459b5):_0x5459b5;}const _0x25f2b=_0x138372['dirname'](_0x58c5b0);if(_0x25f2b===_0x58c5b0)return null;_0x58c5b0=_0x25f2b;}}function runNpmInstall(_0x40502b,_0xef4425,_0x2cda15){const _0x36c371=a83_0x3bd49f;console['log']('*\x20'+[_0x40502b,..._0xef4425]['join']('\x20'));const _0x49de70=spawnSync(_0x40502b,_0xef4425,{'cwd':process[_0x36c371(0x1fe)](),'stdio':_0x36c371(0x227),'env':process.env,'shell':![]}),_0x6f9c0c=_0x49de70[_0x36c371(0x200)]?_0x49de70[_0x36c371(0x200)][_0x36c371(0x223)]()['trim']():'',_0x52d338=_0x49de70[_0x36c371(0x211)]?_0x49de70[_0x36c371(0x211)][_0x36c371(0x223)]()[_0x36c371(0x20a)]():'';if(!_0x2cda15){if(_0x52d338)process[_0x36c371(0x211)][_0x36c371(0x230)](_0x52d338+'\x0a');if(_0x6f9c0c)process['stderr'][_0x36c371(0x230)](_0x6f9c0c+'\x0a');}if(_0x49de70[_0x36c371(0x207)]===0x0)return{'ok':!![]};const _0x49de5f=_0x49de70[_0x36c371(0x220)]?.['message']||_0x6f9c0c||_0x52d338||_0x36c371(0x225)+(_0x49de70['status']??'unknown');return{'ok':![],'error':_0x49de5f};}function isNpmPrefixPermissionError(_0x10e00a){return Boolean(_0x10e00a&&/\b(?:EACCES|EPERM)\b/['test'](_0x10e00a));}function repairCurrentBuiltinSkill(_0x40e35a){const _0x53f739=a83_0x3bd49f;console[_0x53f739(0x216)](_0x53f739(0x20c));const _0xc9edfd=installBuiltinSkill({'stdio':_0x40e35a?_0x53f739(0x227):'inherit'});if(_0xc9edfd['ok'])return console['log'](_0x53f739(0x1e7)+_0xc9edfd['skillVersion']+_0x53f739(0x1e8)),!![];return console[_0x53f739(0x215)](_0x53f739(0x236)+(_0xc9edfd[_0x53f739(0x205)]||'INSTALL_FAILED')+_0x53f739(0x233)+(_0xc9edfd[_0x53f739(0x220)]||_0x53f739(0x1e6))),console[_0x53f739(0x216)](_0x53f739(0x21b)+_0xc9edfd[_0x53f739(0x1fb)]),![];}function verifyUpdatedBuiltinSkill(_0x30b5fe){const _0x15a9cc=a83_0x3bd49f;console[_0x15a9cc(0x216)](_0x15a9cc(0x20c));const _0x201b6d=inspectInstalledBuiltinSkillVersion(_0x30b5fe);if(_0x201b6d[_0x15a9cc(0x1ed)]===_0x15a9cc(0x238))return console['log']('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x30b5fe+_0x15a9cc(0x1e8)),!![];console[_0x15a9cc(0x215)]('\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20'+_0x201b6d[_0x15a9cc(0x1ed)]+'.');if(_0x201b6d['reason'])console[_0x15a9cc(0x215)]('\x20\x20'+_0x201b6d[_0x15a9cc(0x1ea)]);return console['log'](_0x15a9cc(0x21b)+_0x201b6d[_0x15a9cc(0x1fb)]),![];}async function execute(_0x45a0c5){const _0x46eca2=a83_0x3bd49f;await validateUpdateFlags(_0x45a0c5);const _0x3250ac=getCliVersion();console[_0x46eca2(0x216)](_0x46eca2(0x1f9)+_0x3250ac),console['log'](_0x46eca2(0x21c));const _0x33376f=await resolveTargetVersion(_0x45a0c5);if(!_0x33376f){const _0x471cad=_0x45a0c5[_0x46eca2(0x202)]('beta')?_0x46eca2(0x22b):_0x46eca2(0x226),_0x47f400='Unable\x20to\x20resolve\x20'+_0x471cad+_0x46eca2(0x1ff);return console['warn'](_0x47f400),console[_0x46eca2(0x216)](_0x46eca2(0x1ec)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x471cad),{'ok':![]};}const _0x22be6a=[_0x3250ac,_0x33376f['version']][_0x46eca2(0x22e)](_0x3ba934=>!a83_0x172b6f[_0x46eca2(0x235)](_0x3ba934));if(_0x22be6a)return console[_0x46eca2(0x215)](_0x46eca2(0x20b)+_0x22be6a+'.'),{'ok':![]};if(!shouldInstallTarget(_0x3250ac,_0x33376f)){const _0xaaec98=_0x33376f['source']===_0x46eca2(0x212)?_0x46eca2(0x1fd)+_0x33376f[_0x46eca2(0x212)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x33376f[_0x46eca2(0x212)]+').';return console[_0x46eca2(0x216)](_0xaaec98),{'ok':repairCurrentBuiltinSkill(_0x45a0c5[_0x46eca2(0x218)])};}console[_0x46eca2(0x216)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x3250ac+_0x46eca2(0x231)+_0x33376f[_0x46eca2(0x212)]);const _0x2a24f5=installCliPackage(_0x33376f[_0x46eca2(0x212)],_0x45a0c5['nonInteractive']);if(!_0x2a24f5['ok']){const _0x66db79=_0x46eca2(0x237)+(_0x2a24f5['error']||_0x46eca2(0x1e6));return console['error'](_0x66db79),console[_0x46eca2(0x216)]('\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x33376f[_0x46eca2(0x212)]),{'ok':![]};}return console[_0x46eca2(0x216)]('Updated\x20to\x20v'+_0x33376f[_0x46eca2(0x212)]+'.'),console[_0x46eca2(0x216)](_0x46eca2(0x20f)),{'ok':verifyUpdatedBuiltinSkill(_0x33376f['version'])};}function a83_0x5ba7(_0x736f25,_0x57dedf){_0x736f25=_0x736f25-0x1e6;const _0x4ee0f9=a83_0x4ee0();let _0x5ba706=_0x4ee0f9[_0x736f25];return _0x5ba706;}export const updateDefinition={'service':a83_0x3bd49f(0x1eb),'command':a83_0x3bd49f(0x1f7),'description':a83_0x3bd49f(0x222)+CLI_BIN_NAME+a83_0x3bd49f(0x208),'risk':a83_0x3bd49f(0x209),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- function a84_0x4c0f(_0x275a96,_0x401b0f){_0x275a96=_0x275a96-0xcc;const _0x15cbd4=a84_0x15cb();let _0x4c0fbc=_0x15cbd4[_0x275a96];return _0x4c0fbc;}const a84_0xbf0e20=a84_0x4c0f;function a84_0x15cb(){const _0x522478=['将当前\x20AccessKey\x20所属的平台用户绑定到指定协同生态外部账号;已有同\x20provider\x20绑定可能被替换。','1610919dKVJYH','user-account','1256115ioBaev','Pass\x20one\x20of:\x20','16aKCHgr','External\x20account\x20provider','apiError','POST','23086740fyeJrK','5149980jxVXTP','Bound\x20current\x20user\x20to\x20external\x20provider\x20account.','Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.','--account-id\x20cannot\x20be\x20empty.','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','7502022TUNGdG','write','External\x20account\x20binding\x20was\x20not\x20confirmed.','provider','string','account-id','toLowerCase','str','50769FtXzIv','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.','External\x20account\x20ID\x20for\x20the\x20selected\x20provider','trim','bind','1619555utIuba','16NsvzFQ','58tfpLYf'];a84_0x15cb=function(){return _0x522478;};return a84_0x15cb();}(function(_0xbd428f,_0xf2620f){const _0x1e5d05=a84_0x4c0f,_0x5369e1=_0xbd428f();while(!![]){try{const _0x3e9892=-parseInt(_0x1e5d05(0xdf))/0x1+-parseInt(_0x1e5d05(0xdd))/0x2*(-parseInt(_0x1e5d05(0xd6))/0x3)+parseInt(_0x1e5d05(0xdc))/0x4*(parseInt(_0x1e5d05(0xe1))/0x5)+-parseInt(_0x1e5d05(0xe8))/0x6+-parseInt(_0x1e5d05(0xdb))/0x7*(-parseInt(_0x1e5d05(0xe3))/0x8)+-parseInt(_0x1e5d05(0xce))/0x9+parseInt(_0x1e5d05(0xe7))/0xa;if(_0x3e9892===_0xf2620f)break;else _0x5369e1['push'](_0x5369e1['shift']());}catch(_0x25b791){_0x5369e1['push'](_0x5369e1['shift']());}}}(a84_0x15cb,0xeb6a0));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING=a84_0xbf0e20(0xcd),SUPPORTED_PROVIDERS=['dingtalk'];function readBindingInput(_0x5b6ea3){const _0x3e5f79=a84_0xbf0e20,_0x2db87c=_0x5b6ea3[_0x3e5f79(0xd5)](_0x3e5f79(0xd1))[_0x3e5f79(0xd9)]()[_0x3e5f79(0xd4)]();if(!SUPPORTED_PROVIDERS['includes'](_0x2db87c))throw CliErrors['validation']('Unsupported\x20provider:\x20'+(_0x2db87c||'(empty)')+'.',_0x3e5f79(0xe2)+SUPPORTED_PROVIDERS['join'](',\x20')+'.');const _0x60d9da=_0x5b6ea3[_0x3e5f79(0xd5)](_0x3e5f79(0xd3))['trim']();if(!_0x60d9da)throw CliErrors['validation'](_0x3e5f79(0xcc),_0x3e5f79(0xea));return{'provider':_0x2db87c,'accountId':_0x60d9da};}function buildBindingData(_0x5e5ecb,_0x1b3ff1,_0x11ea1a){const _0x1238c9=a84_0xbf0e20;return{'operation':_0x1238c9(0xda),'selector':{'provider':_0x5e5ecb,'accountId':_0x1b3ff1},'before':null,'after':{'provider':_0x5e5ecb,'accountId':_0x1b3ff1,'bound':!![]},'dryRun':_0x11ea1a,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a84_0xbf0e20(0xe0),'command':a84_0xbf0e20(0xda),'description':'Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','risk':a84_0xbf0e20(0xcf),'confirmationDescription':a84_0xbf0e20(0xde),'requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':a84_0xbf0e20(0xd1),'type':a84_0xbf0e20(0xd2),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a84_0xbf0e20(0xe4)},{'name':'account-id','type':'string','required':!![],'description':a84_0xbf0e20(0xd8)}],async 'validate'(_0x42ccf4){readBindingInput(_0x42ccf4);},async 'dryRun'(_0x3fc5fd){const _0x5897f3=a84_0xbf0e20,{provider:_0x2aa2df,accountId:_0x4f0b42}=readBindingInput(_0x3fc5fd);return{...buildBindingData(_0x2aa2df,_0x4f0b42,!![]),'method':_0x5897f3(0xe6),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x2aa2df,'accountId':_0x4f0b42}};},async 'execute'(_0x2837be){const _0x10b340=a84_0xbf0e20,{provider:_0x15ab0e,accountId:_0x5f5929}=readBindingInput(_0x2837be),_0x1f0777=await bindExternalUserAccount(_0x15ab0e,_0x5f5929);if(_0x1f0777!==!![])throw CliErrors[_0x10b340(0xe5)](_0x10b340(0xd0),_0x10b340(0xd7));return{'ok':!![],'data':buildBindingData(_0x15ab0e,_0x5f5929,![]),'message':_0x10b340(0xe9)};}};
1
+ const a84_0x3d6cb0=a84_0x3f28;(function(_0x4e36bb,_0x50f088){const _0x1a46de=a84_0x3f28,_0x356963=_0x4e36bb();while(!![]){try{const _0x12b7de=parseInt(_0x1a46de(0x1e8))/0x1*(-parseInt(_0x1a46de(0x1f6))/0x2)+-parseInt(_0x1a46de(0x1d2))/0x3*(-parseInt(_0x1a46de(0x1d6))/0x4)+-parseInt(_0x1a46de(0x1e4))/0x5+parseInt(_0x1a46de(0x1e7))/0x6*(-parseInt(_0x1a46de(0x1d4))/0x7)+-parseInt(_0x1a46de(0x1f2))/0x8*(parseInt(_0x1a46de(0x1d1))/0x9)+parseInt(_0x1a46de(0x1d9))/0xa*(parseInt(_0x1a46de(0x1db))/0xb)+parseInt(_0x1a46de(0x1f5))/0xc*(parseInt(_0x1a46de(0x1dc))/0xd);if(_0x12b7de===_0x50f088)break;else _0x356963['push'](_0x356963['shift']());}catch(_0x4d7366){_0x356963['push'](_0x356963['shift']());}}}(a84_0x1046,0x9cb76));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';function a84_0x3f28(_0x29391c,_0x532c68){_0x29391c=_0x29391c-0x1d1;const _0x1046cb=a84_0x1046();let _0x3f283a=_0x1046cb[_0x29391c];return _0x3f283a;}import{CliErrors}from'../../errors.js';function a84_0x1046(){const _0x28d51f=['The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','bind','2532GdqOSE','126onHPLj','trim','333pkqrro','3daLKHj','string','7fFQKSG','write','1153548coQwYe','join','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','4909170XGQdUo','validation','22ozjFFY','46891VYIvCZ','--account-id\x20cannot\x20be\x20empty.','user-account','Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.','POST','Pass\x20one\x20of:\x20','(empty)','External\x20account\x20ID\x20for\x20the\x20selected\x20provider','562275dMiWAW','dingtalk','将当前\x20AccessKey\x20所属的平台用户绑定到指定协同生态外部账号;已有同\x20provider\x20绑定可能被替换。','5781702jgebOZ','3737FLAlzl','External\x20account\x20provider','str','includes','External\x20account\x20binding\x20was\x20not\x20confirmed.','provider','apiError','Bound\x20current\x20user\x20to\x20external\x20provider\x20account.','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.','account-id','16840uxIVKY'];a84_0x1046=function(){return _0x28d51f;};return a84_0x1046();}const CURRENT_BINDING_WARNING=a84_0x3d6cb0(0x1f3),SUPPORTED_PROVIDERS=[a84_0x3d6cb0(0x1e5)];function readBindingInput(_0x488302){const _0x49fb09=a84_0x3d6cb0,_0x3d2cf0=_0x488302[_0x49fb09(0x1ea)](_0x49fb09(0x1ed))[_0x49fb09(0x1f7)]()['toLowerCase']();if(!SUPPORTED_PROVIDERS[_0x49fb09(0x1eb)](_0x3d2cf0))throw CliErrors[_0x49fb09(0x1da)]('Unsupported\x20provider:\x20'+(_0x3d2cf0||_0x49fb09(0x1e2))+'.',_0x49fb09(0x1e1)+SUPPORTED_PROVIDERS[_0x49fb09(0x1d7)](',\x20')+'.');const _0x361699=_0x488302[_0x49fb09(0x1ea)](_0x49fb09(0x1f1))[_0x49fb09(0x1f7)]();if(!_0x361699)throw CliErrors[_0x49fb09(0x1da)](_0x49fb09(0x1dd),_0x49fb09(0x1df));return{'provider':_0x3d2cf0,'accountId':_0x361699};}function buildBindingData(_0x281551,_0x2b5239,_0x475bcc){const _0x237be0=a84_0x3d6cb0;return{'operation':_0x237be0(0x1f4),'selector':{'provider':_0x281551,'accountId':_0x2b5239},'before':null,'after':{'provider':_0x281551,'accountId':_0x2b5239,'bound':!![]},'dryRun':_0x475bcc,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a84_0x3d6cb0(0x1de),'command':a84_0x3d6cb0(0x1f4),'description':a84_0x3d6cb0(0x1d8),'risk':a84_0x3d6cb0(0x1d5),'confirmationDescription':a84_0x3d6cb0(0x1e6),'requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':a84_0x3d6cb0(0x1ed),'type':a84_0x3d6cb0(0x1d3),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a84_0x3d6cb0(0x1e9)},{'name':a84_0x3d6cb0(0x1f1),'type':'string','required':!![],'description':a84_0x3d6cb0(0x1e3)}],async 'validate'(_0xb1ba2c){readBindingInput(_0xb1ba2c);},async 'dryRun'(_0xacde08){const _0x168136=a84_0x3d6cb0,{provider:_0x4bd2f2,accountId:_0x59dee1}=readBindingInput(_0xacde08);return{...buildBindingData(_0x4bd2f2,_0x59dee1,!![]),'method':_0x168136(0x1e0),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x4bd2f2,'accountId':_0x59dee1}};},async 'execute'(_0x4ac234){const _0x168a62=a84_0x3d6cb0,{provider:_0x2a7fc7,accountId:_0x4fd393}=readBindingInput(_0x4ac234),_0x46a46f=await bindExternalUserAccount(_0x2a7fc7,_0x4fd393);if(_0x46a46f!==!![])throw CliErrors[_0x168a62(0x1ee)](_0x168a62(0x1ec),_0x168a62(0x1f0));return{'ok':!![],'data':buildBindingData(_0x2a7fc7,_0x4fd393,![]),'message':_0x168a62(0x1ef)};}};
@@ -1 +1 @@
1
- (function(_0xa01a89,_0x132457){const _0x4cbcb1=a85_0x2e9f,_0x1f7d9c=_0xa01a89();while(!![]){try{const _0x4a5744=-parseInt(_0x4cbcb1(0x187))/0x1*(parseInt(_0x4cbcb1(0x183))/0x2)+-parseInt(_0x4cbcb1(0x180))/0x3+parseInt(_0x4cbcb1(0x18a))/0x4*(parseInt(_0x4cbcb1(0x185))/0x5)+parseInt(_0x4cbcb1(0x182))/0x6*(-parseInt(_0x4cbcb1(0x17f))/0x7)+-parseInt(_0x4cbcb1(0x188))/0x8+-parseInt(_0x4cbcb1(0x181))/0x9*(-parseInt(_0x4cbcb1(0x184))/0xa)+-parseInt(_0x4cbcb1(0x189))/0xb*(-parseInt(_0x4cbcb1(0x186))/0xc);if(_0x4a5744===_0x132457)break;else _0x1f7d9c['push'](_0x1f7d9c['shift']());}catch(_0x5b68cb){_0x1f7d9c['push'](_0x1f7d9c['shift']());}}}(a85_0x474b,0xa44df));function a85_0x474b(){const _0x1b7c63=['9jELQPR','138EuLcfK','30syFVcq','5472420xNPlke','5DpyqDd','12auEpWF','33071MgPUhI','805424zYJUiS','28951318quAwki','542300HDMEFT','360325uUevZf','2583288NhPTAS'];a85_0x474b=function(){return _0x1b7c63;};return a85_0x474b();}import{bindUserAccount}from'../../commands/user-account/bind.js';function a85_0x2e9f(_0x4ef138,_0x2eaee7){_0x4ef138=_0x4ef138-0x17f;const _0x474ba7=a85_0x474b();let _0x2e9ff8=_0x474ba7[_0x4ef138];return _0x2e9ff8;}export const userAccountDefinitions=[bindUserAccount];
1
+ function a85_0x24e4(_0x566d22,_0x549b1f){_0x566d22=_0x566d22-0x1a1;const _0x20b9d6=a85_0x20b9();let _0x24e423=_0x20b9d6[_0x566d22];return _0x24e423;}(function(_0xd45880,_0x25862d){const _0x4779b6=a85_0x24e4,_0x195154=_0xd45880();while(!![]){try{const _0x4d9a92=-parseInt(_0x4779b6(0x1a8))/0x1+-parseInt(_0x4779b6(0x1a9))/0x2+parseInt(_0x4779b6(0x1a7))/0x3*(parseInt(_0x4779b6(0x1a4))/0x4)+-parseInt(_0x4779b6(0x1a6))/0x5+parseInt(_0x4779b6(0x1a3))/0x6*(-parseInt(_0x4779b6(0x1a1))/0x7)+parseInt(_0x4779b6(0x1a2))/0x8+parseInt(_0x4779b6(0x1aa))/0x9*(parseInt(_0x4779b6(0x1a5))/0xa);if(_0x4d9a92===_0x25862d)break;else _0x195154['push'](_0x195154['shift']());}catch(_0x3f944c){_0x195154['push'](_0x195154['shift']());}}}(a85_0x20b9,0x8f0ce));import{bindUserAccount}from'../../commands/user-account/bind.js';export const userAccountDefinitions=[bindUserAccount];function a85_0x20b9(){const _0x16a73a=['461388ZVCNUN','1524530PaSype','90ywCWnY','7AESBBs','2822856GfiNbA','533688tMypZS','12efjBTo','1093940iInxAC','625285zmaKdF','576795ldVmCv'];a85_0x20b9=function(){return _0x16a73a;};return a85_0x20b9();}
@@ -1 +1 @@
1
- const a86_0x374494=a86_0x4134;(function(_0x3f2ac2,_0x110355){const _0x35bc6d=a86_0x4134,_0x4ce8ba=_0x3f2ac2();while(!![]){try{const _0x347da1=parseInt(_0x35bc6d(0xa4))/0x1*(parseInt(_0x35bc6d(0xb8))/0x2)+parseInt(_0x35bc6d(0xb5))/0x3*(-parseInt(_0x35bc6d(0xab))/0x4)+parseInt(_0x35bc6d(0xc9))/0x5+parseInt(_0x35bc6d(0xc1))/0x6*(-parseInt(_0x35bc6d(0xad))/0x7)+parseInt(_0x35bc6d(0xa7))/0x8*(parseInt(_0x35bc6d(0xb4))/0x9)+-parseInt(_0x35bc6d(0xb7))/0xa+parseInt(_0x35bc6d(0x92))/0xb;if(_0x347da1===_0x110355)break;else _0x4ce8ba['push'](_0x4ce8ba['shift']());}catch(_0x4a7fdb){_0x4ce8ba['push'](_0x4ce8ba['shift']());}}}(a86_0x2285,0x2e011));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':a86_0x374494(0xa2),'type':a86_0x374494(0xa1),'description':'App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default'},{'name':a86_0x374494(0xaa),'type':a86_0x374494(0xa1),'description':a86_0x374494(0xc0)},{'name':a86_0x374494(0xa9),'type':'string','description':a86_0x374494(0x9d),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x2ce659,_0x1fb14f){const _0x54261f=a86_0x374494,_0x15137c=_0x2ce659[_0x54261f(0xa8)](_0x54261f(0xa2))[_0x54261f(0xc4)](),_0x5f2d30=_0x2ce659[_0x54261f(0xa8)]('appcode')[_0x54261f(0xc4)](),_0x364831=_0x2ce659[_0x54261f(0xa8)]('env')['trim'](),_0x225546=resolveWorkspaceEnv(_0x364831||_0x2ce659[_0x54261f(0xc3)]||DEFAULT_CONFIG_VALUES[_0x54261f(0xa9)]);if(!_0x15137c&&!_0x5f2d30)throw CliErrors[_0x54261f(0x9a)](_0x54261f(0xb9),_0x54261f(0xa3)+CLI_BIN_NAME+'\x20workspace\x20'+_0x1fb14f+'\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20'+CLI_BIN_NAME+'\x20workspace\x20'+_0x1fb14f+'\x20--appcode\x20<code>\x20[--env\x20daily]');if(_0x15137c&&_0x5f2d30)throw CliErrors[_0x54261f(0x9a)]('Conflicting\x20workspace\x20app\x20selectors.',_0x54261f(0x94));const _0x118dcd=resolveWriteConfigPath(_0x54261f(0xb2)),_0x2962cf=readConfigFile(_0x118dcd);assertWorkspaceCommandState(_0x1fb14f,_0x2962cf);const _0x1a1eb7=_0x5f2d30||await resolveRemoteAppCode({'command':_0x1fb14f,'appName':_0x15137c,'env':_0x225546,'accessKey':_0x2ce659['accessKey']});return writeWorkspaceConfig({'command':_0x1fb14f,'appName':_0x15137c,'appcode':_0x1a1eb7,'env':_0x225546,'shouldWriteEnv':!!_0x364831,'accessKey':_0x2ce659[_0x54261f(0xb1)]},_0x118dcd,_0x2962cf),{'ok':!![],'data':{'configPath':_0x118dcd,'app':_0x15137c||null,'appcode':_0x1a1eb7,'env':_0x364831?_0x225546:null,'accessKeyWritten':![],'command':_0x54261f(0x96)+_0x1fb14f},'message':buildWorkspaceMessage(_0x118dcd,_0x15137c,_0x1a1eb7,_0x364831?_0x225546:undefined)};}async function resolveRemoteAppCode(_0x4dd527){const _0x4b7f62=a86_0x374494;if(!_0x4dd527[_0x4b7f62(0xb1)])throw CliErrors['authRequired']('Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20'+CLI_BIN_NAME+_0x4b7f62(0x93)+_0x4dd527[_0x4b7f62(0x99)]+'.');const {setActiveAK:_0x1c5460}=await import('../../core/api-client.js'),{getRemoteAppList:_0x2cd845}=await import(_0x4b7f62(0xc5));_0x1c5460(_0x4dd527[_0x4b7f62(0xb1)]);const _0x3ec012=await _0x2cd845({'env':_0x4dd527[_0x4b7f62(0xa9)],'accessKey':_0x4dd527[_0x4b7f62(0xb1)],'noCache':![]}),_0x5ec92a=findAppByName(_0x3ec012[_0x4b7f62(0xb6)],_0x4dd527[_0x4b7f62(0xbb)]);if(_0x5ec92a&&!isRuntimeAccessibleApp(_0x5ec92a))throw runtimeInaccessibleAppError(_0x5ec92a,'\x22'+_0x4dd527['appName']+'\x22');const _0x349dfe=_0x5ec92a?.[_0x4b7f62(0xa6)]?.['trim']();if(_0x349dfe)return _0x349dfe;const _0x46f2a7=_0x3ec012[_0x4b7f62(0xb6)]['map'](_0x2e1645=>_0x2e1645[_0x4b7f62(0xbb)])[_0x4b7f62(0xc7)](Boolean),_0x4d8e78=_0x46f2a7[_0x4b7f62(0xac)]?_0x4b7f62(0xcd)+Array[_0x4b7f62(0xba)](new Set(_0x46f2a7))[_0x4b7f62(0xcf)](',\x20')+'.':_0x4b7f62(0xca)+CLI_BIN_NAME+_0x4b7f62(0xa5);throw CliErrors[_0x4b7f62(0x9a)](_0x4b7f62(0xbd)+_0x4dd527['appName']+_0x4b7f62(0xc6),_0x4d8e78);}function writeWorkspaceConfig(_0x187663,_0xe6ac18,_0x76228c){const _0x212e3c=a86_0x374494;_0x187663['shouldWriteEnv']&&(_0x76228c[_0x212e3c(0xa9)]=_0x187663[_0x212e3c(0xa9)]);if(_0x187663['appName']){const _0x530567=isRecord(_0x76228c[_0x212e3c(0xb0)])?{..._0x76228c[_0x212e3c(0xb0)]}:{},_0x4ed425=isRecord(_0x530567[_0x187663['appName']])?_0x530567[_0x187663['appName']]:{};return _0x530567[_0x187663['appName']]={..._0x4ed425,'appcode':_0x187663[_0x212e3c(0xaa)]},_0x76228c[_0x212e3c(0xb0)]=_0x530567,_0x76228c[_0x212e3c(0x9f)]=_0x187663['appName'],delete _0x76228c[_0x212e3c(0xaa)],delete _0x76228c[_0x212e3c(0xa2)],writeAndReturn(_0xe6ac18,_0x76228c);}return _0x76228c['appcode']=_0x187663[_0x212e3c(0xaa)],delete _0x76228c['defaultApp'],delete _0x76228c[_0x212e3c(0xa2)],writeAndReturn(_0xe6ac18,_0x76228c);}function writeAndReturn(_0x4c2814,_0x226b2a){return writeConfigFile(_0x4c2814,_0x226b2a),_0x4c2814;}function resolveWorkspaceEnv(_0x17f073){const _0x26a30e=a86_0x374494;if(RUNTIME_ENV_VALUES[_0x26a30e(0x9e)](_0x17f073))return _0x17f073;throw CliErrors[_0x26a30e(0x9a)](_0x26a30e(0xbc)+_0x17f073+_0x26a30e(0xd0)+RUNTIME_ENV_VALUES[_0x26a30e(0xcf)](',\x20'));}function a86_0x2285(){const _0x4d3e24=['Target\x20environment','includes','defaultApp','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','string','app','Usage:\x20','1qxYXvX','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','appCode','2819272xFQlwG','str','env','appcode','104ujlqpK','length','3885nVEkgk','Workspace\x20configured.\x0aConfig\x20file:\x20','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','apps','accessKey','project','为尚未绑定应用的当前工作目录初始化应用上下文','9TNMfBR','29205xDPFKC','items','2898260YnVIDU','713478UtpePv','Missing\x20workspace\x20app\x20selector.','from','appName','Invalid\x20env\x20\x22','App\x20\x22','将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','Workspace\x20app\x20context\x20is\x20already\x20initialized.','App\x20code\x20to\x20bind\x20directly','3978ZHnPsy','workspace','envName','trim','../../commands/app/remote-source.js','\x22\x20not\x20found.','filter','Use\x20`','1209195tRcrBO','Run\x20`','\x0aDefault\x20app:\x20','init','Available\x20apps:\x20','\x0aAccessKey:\x20not\x20written','join','\x22.\x20Allowed:\x20','1631817GPeUqM','\x20workspace\x20','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','isArray','workspace\x20','修改当前工作目录已有绑定的应用上下文','\x0aEnv:\x20','command','validation','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','use'];a86_0x2285=function(){return _0x4d3e24;};return a86_0x2285();}function buildWorkspaceMessage(_0x977bc,_0x5816c0,_0x46e658,_0x46fa66){const _0x20cc45=a86_0x374494,_0xb2eec6=_0x5816c0?_0x5816c0+'\x20('+_0x46e658+')':_0x46e658,_0x590b13=_0x46fa66?_0x20cc45(0x98)+_0x46fa66:'';return _0x20cc45(0xae)+_0x977bc+_0x20cc45(0xcb)+_0xb2eec6+_0x590b13+_0x20cc45(0xce);}function isRecord(_0x2142c0){const _0x3e07f2=a86_0x374494;return typeof _0x2142c0==='object'&&_0x2142c0!==null&&!Array[_0x3e07f2(0x95)](_0x2142c0);}function hasWorkspaceAppBinding(_0x14833b){const _0x5230f7=a86_0x374494;if(typeof _0x14833b[_0x5230f7(0xaa)]===_0x5230f7(0xa1)&&_0x14833b['appcode'][_0x5230f7(0xc4)]()[_0x5230f7(0xac)]>0x0)return!![];if(typeof _0x14833b['defaultApp']!==_0x5230f7(0xa1)||!_0x14833b[_0x5230f7(0x9f)][_0x5230f7(0xc4)]())return![];if(!isRecord(_0x14833b[_0x5230f7(0xb0)]))return![];const _0x75dcd1=_0x14833b[_0x5230f7(0xb0)][_0x14833b[_0x5230f7(0x9f)]['trim']()];return isRecord(_0x75dcd1)&&typeof _0x75dcd1[_0x5230f7(0xaa)]===_0x5230f7(0xa1)&&_0x75dcd1[_0x5230f7(0xaa)]['trim']()[_0x5230f7(0xac)]>0x0;}function assertWorkspaceCommandState(_0xe41724,_0x4fb4a9){const _0x59d634=a86_0x374494,_0x4b245b=hasWorkspaceAppBinding(_0x4fb4a9);if(_0xe41724===_0x59d634(0xcc)&&_0x4b245b)throw CliErrors['validation'](_0x59d634(0xbf),_0x59d634(0xc8)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`'+CLI_BIN_NAME+_0x59d634(0xa0));if(_0xe41724===_0x59d634(0x9c)&&!_0x4b245b)throw CliErrors['validation']('Workspace\x20app\x20context\x20is\x20not\x20initialized.',_0x59d634(0xca)+CLI_BIN_NAME+_0x59d634(0xaf)+CLI_BIN_NAME+_0x59d634(0x9b));}function makeWorkspaceCommand(_0x4a0c25){const _0x3e7c14=a86_0x374494;return{'service':_0x3e7c14(0xc2),'command':_0x4a0c25,'description':_0x4a0c25==='init'?_0x3e7c14(0xb3):_0x3e7c14(0x97),'risk':'write','confirmationDescription':_0x4a0c25===_0x3e7c14(0xcc)?'将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。':_0x3e7c14(0xbe),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x344f74){return executeWorkspaceUse(_0x344f74,_0x4a0c25);}};}function a86_0x4134(_0x15dc58,_0x7538ff){_0x15dc58=_0x15dc58-0x92;const _0x2285cc=a86_0x2285();let _0x4134c9=_0x2285cc[_0x15dc58];return _0x4134c9;}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand('use')];
1
+ const a86_0x3dd84c=a86_0x5c04;(function(_0x334d4f,_0x640217){const _0x56f556=a86_0x5c04,_0x105a1e=_0x334d4f();while(!![]){try{const _0x53117d=-parseInt(_0x56f556(0x193))/0x1+parseInt(_0x56f556(0x18d))/0x2*(-parseInt(_0x56f556(0x16d))/0x3)+parseInt(_0x56f556(0x160))/0x4*(parseInt(_0x56f556(0x192))/0x5)+-parseInt(_0x56f556(0x175))/0x6+-parseInt(_0x56f556(0x15d))/0x7*(parseInt(_0x56f556(0x169))/0x8)+parseInt(_0x56f556(0x17f))/0x9+parseInt(_0x56f556(0x16a))/0xa;if(_0x53117d===_0x640217)break;else _0x105a1e['push'](_0x105a1e['shift']());}catch(_0x4b372b){_0x105a1e['push'](_0x105a1e['shift']());}}}(a86_0x5c20,0xd96b1));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':a86_0x3dd84c(0x17b),'type':a86_0x3dd84c(0x17e),'description':a86_0x3dd84c(0x17d)},{'name':a86_0x3dd84c(0x194),'type':'string','description':'App\x20code\x20to\x20bind\x20directly'},{'name':a86_0x3dd84c(0x168),'type':a86_0x3dd84c(0x17e),'description':a86_0x3dd84c(0x164),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x5c0305,_0x1be1ef){const _0x39866e=a86_0x3dd84c,_0x5806bb=_0x5c0305['str']('app')[_0x39866e(0x180)](),_0x32d8e2=_0x5c0305[_0x39866e(0x191)]('appcode')[_0x39866e(0x180)](),_0x48c6e2=_0x5c0305[_0x39866e(0x191)](_0x39866e(0x168))[_0x39866e(0x180)](),_0x4eb3d8=resolveWorkspaceEnv(_0x48c6e2||_0x5c0305[_0x39866e(0x190)]||DEFAULT_CONFIG_VALUES[_0x39866e(0x168)]);if(!_0x5806bb&&!_0x32d8e2)throw CliErrors[_0x39866e(0x170)](_0x39866e(0x187),'Usage:\x20'+CLI_BIN_NAME+'\x20workspace\x20'+_0x1be1ef+_0x39866e(0x18e)+CLI_BIN_NAME+_0x39866e(0x16f)+_0x1be1ef+'\x20--appcode\x20<code>\x20[--env\x20daily]');if(_0x5806bb&&_0x32d8e2)throw CliErrors[_0x39866e(0x170)](_0x39866e(0x195),'Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.');const _0x5e3d21=resolveWriteConfigPath(_0x39866e(0x167)),_0x3cd782=readConfigFile(_0x5e3d21);assertWorkspaceCommandState(_0x1be1ef,_0x3cd782);const _0x2cc667=_0x32d8e2||await resolveRemoteAppCode({'command':_0x1be1ef,'appName':_0x5806bb,'env':_0x4eb3d8,'accessKey':_0x5c0305['accessKey']});return writeWorkspaceConfig({'command':_0x1be1ef,'appName':_0x5806bb,'appcode':_0x2cc667,'env':_0x4eb3d8,'shouldWriteEnv':!!_0x48c6e2,'accessKey':_0x5c0305['accessKey']},_0x5e3d21,_0x3cd782),{'ok':!![],'data':{'configPath':_0x5e3d21,'app':_0x5806bb||null,'appcode':_0x2cc667,'env':_0x48c6e2?_0x4eb3d8:null,'accessKeyWritten':![],'command':_0x39866e(0x178)+_0x1be1ef},'message':buildWorkspaceMessage(_0x5e3d21,_0x5806bb,_0x2cc667,_0x48c6e2?_0x4eb3d8:undefined)};}async function resolveRemoteAppCode(_0x42ec35){const _0x42cabd=a86_0x3dd84c;if(!_0x42ec35[_0x42cabd(0x15f)])throw CliErrors[_0x42cabd(0x196)](_0x42cabd(0x189)+CLI_BIN_NAME+_0x42cabd(0x16f)+_0x42ec35[_0x42cabd(0x186)]+'.');const {setActiveAK:_0x2cf877}=await import('../../core/api-client.js'),{getRemoteAppList:_0xfef9e}=await import(_0x42cabd(0x17a));_0x2cf877(_0x42ec35[_0x42cabd(0x15f)]);const _0x571552=await _0xfef9e({'env':_0x42ec35[_0x42cabd(0x168)],'accessKey':_0x42ec35['accessKey'],'noCache':![]}),_0x1fc3d3=findAppByName(_0x571552[_0x42cabd(0x17c)],_0x42ec35[_0x42cabd(0x172)]);if(_0x1fc3d3&&!isRuntimeAccessibleApp(_0x1fc3d3))throw runtimeInaccessibleAppError(_0x1fc3d3,'\x22'+_0x42ec35[_0x42cabd(0x172)]+'\x22');const _0x55122c=_0x1fc3d3?.[_0x42cabd(0x18a)]?.[_0x42cabd(0x180)]();if(_0x55122c)return _0x55122c;const _0x366c3b=_0x571552[_0x42cabd(0x17c)]['map'](_0x10d03f=>_0x10d03f[_0x42cabd(0x172)])[_0x42cabd(0x165)](Boolean),_0x1be96a=_0x366c3b[_0x42cabd(0x179)]?_0x42cabd(0x182)+Array[_0x42cabd(0x15c)](new Set(_0x366c3b))[_0x42cabd(0x16b)](',\x20')+'.':_0x42cabd(0x173)+CLI_BIN_NAME+_0x42cabd(0x162);throw CliErrors[_0x42cabd(0x170)](_0x42cabd(0x197)+_0x42ec35[_0x42cabd(0x172)]+'\x22\x20not\x20found.',_0x1be96a);}function writeWorkspaceConfig(_0x58a504,_0x4df85a,_0xadad31){const _0x43c505=a86_0x3dd84c;_0x58a504[_0x43c505(0x161)]&&(_0xadad31[_0x43c505(0x168)]=_0x58a504[_0x43c505(0x168)]);if(_0x58a504['appName']){const _0x9f3abc=isRecord(_0xadad31[_0x43c505(0x176)])?{..._0xadad31[_0x43c505(0x176)]}:{},_0x45ab0b=isRecord(_0x9f3abc[_0x58a504[_0x43c505(0x172)]])?_0x9f3abc[_0x58a504[_0x43c505(0x172)]]:{};return _0x9f3abc[_0x58a504[_0x43c505(0x172)]]={..._0x45ab0b,'appcode':_0x58a504['appcode']},_0xadad31[_0x43c505(0x176)]=_0x9f3abc,_0xadad31[_0x43c505(0x166)]=_0x58a504[_0x43c505(0x172)],delete _0xadad31[_0x43c505(0x194)],delete _0xadad31[_0x43c505(0x17b)],writeAndReturn(_0x4df85a,_0xadad31);}return _0xadad31['appcode']=_0x58a504[_0x43c505(0x194)],delete _0xadad31[_0x43c505(0x166)],delete _0xadad31[_0x43c505(0x17b)],writeAndReturn(_0x4df85a,_0xadad31);}function a86_0x5c04(_0x3cfcfc,_0x4ed703){_0x3cfcfc=_0x3cfcfc-0x15c;const _0x5c208a=a86_0x5c20();let _0x5c04d7=_0x5c208a[_0x3cfcfc];return _0x5c04d7;}function writeAndReturn(_0x1831d8,_0x41c55c){return writeConfigFile(_0x1831d8,_0x41c55c),_0x1831d8;}function resolveWorkspaceEnv(_0x51ea0b){const _0x3d0887=a86_0x3dd84c;if(RUNTIME_ENV_VALUES[_0x3d0887(0x18c)](_0x51ea0b))return _0x51ea0b;throw CliErrors[_0x3d0887(0x170)]('Invalid\x20env\x20\x22'+_0x51ea0b+_0x3d0887(0x181)+RUNTIME_ENV_VALUES[_0x3d0887(0x16b)](',\x20'));}function buildWorkspaceMessage(_0x4f694e,_0x53adf6,_0x3460c2,_0x1e20fa){const _0x167cf9=a86_0x3dd84c,_0x19c821=_0x53adf6?_0x53adf6+'\x20('+_0x3460c2+')':_0x3460c2,_0x3bb868=_0x1e20fa?_0x167cf9(0x18f)+_0x1e20fa:'';return _0x167cf9(0x15e)+_0x4f694e+_0x167cf9(0x183)+_0x19c821+_0x3bb868+_0x167cf9(0x177);}function isRecord(_0x2693c2){const _0x48a140=a86_0x3dd84c;return typeof _0x2693c2==='object'&&_0x2693c2!==null&&!Array[_0x48a140(0x185)](_0x2693c2);}function hasWorkspaceAppBinding(_0x8f26e3){const _0x35da36=a86_0x3dd84c;if(typeof _0x8f26e3[_0x35da36(0x194)]===_0x35da36(0x17e)&&_0x8f26e3['appcode'][_0x35da36(0x180)]()['length']>0x0)return!![];if(typeof _0x8f26e3['defaultApp']!==_0x35da36(0x17e)||!_0x8f26e3[_0x35da36(0x166)]['trim']())return![];if(!isRecord(_0x8f26e3[_0x35da36(0x176)]))return![];const _0x242ca4=_0x8f26e3[_0x35da36(0x176)][_0x8f26e3['defaultApp'][_0x35da36(0x180)]()];return isRecord(_0x242ca4)&&typeof _0x242ca4[_0x35da36(0x194)]===_0x35da36(0x17e)&&_0x242ca4['appcode'][_0x35da36(0x180)]()[_0x35da36(0x179)]>0x0;}function a86_0x5c20(){const _0x43d3d0=['将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','includes','2lZkbMZ','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','\x0aEnv:\x20','envName','str','10NPnpZo','1424708eZtCGG','appcode','Conflicting\x20workspace\x20app\x20selectors.','authRequired','App\x20\x22','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','from','133AKXQLY','Workspace\x20configured.\x0aConfig\x20file:\x20','accessKey','1435388rCRhkG','shouldWriteEnv','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','Use\x20`','Target\x20environment','filter','defaultApp','project','env','101392xKPvxi','26220950UmhaLa','join','use','2141481lvroGe','Workspace\x20app\x20context\x20is\x20not\x20initialized.','\x20workspace\x20','validation','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','appName','Run\x20`','init','7017990jwPnSj','apps','\x0aAccessKey:\x20not\x20written','workspace\x20','length','../../commands/app/remote-source.js','app','items','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','string','9897858efBhyD','trim','\x22.\x20Allowed:\x20','Available\x20apps:\x20','\x0aDefault\x20app:\x20','将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','isArray','command','Missing\x20workspace\x20app\x20selector.','为尚未绑定应用的当前工作目录初始化应用上下文','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','appCode'];a86_0x5c20=function(){return _0x43d3d0;};return a86_0x5c20();}function assertWorkspaceCommandState(_0x4ff4bd,_0xa9d69c){const _0x5ce859=a86_0x3dd84c,_0x324131=hasWorkspaceAppBinding(_0xa9d69c);if(_0x4ff4bd===_0x5ce859(0x174)&&_0x324131)throw CliErrors['validation']('Workspace\x20app\x20context\x20is\x20already\x20initialized.',_0x5ce859(0x163)+CLI_BIN_NAME+_0x5ce859(0x171)+CLI_BIN_NAME+_0x5ce859(0x198));if(_0x4ff4bd==='use'&&!_0x324131)throw CliErrors[_0x5ce859(0x170)](_0x5ce859(0x16e),_0x5ce859(0x173)+CLI_BIN_NAME+'\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20first.');}function makeWorkspaceCommand(_0x5c8a13){const _0x24865a=a86_0x3dd84c;return{'service':'workspace','command':_0x5c8a13,'description':_0x5c8a13===_0x24865a(0x174)?_0x24865a(0x188):'修改当前工作目录已有绑定的应用上下文','risk':'write','confirmationDescription':_0x5c8a13===_0x24865a(0x174)?_0x24865a(0x18b):_0x24865a(0x184),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x4fc187){return executeWorkspaceUse(_0x4fc187,_0x5c8a13);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a86_0x3dd84c(0x174)),makeWorkspaceCommand(a86_0x3dd84c(0x16c))];
@@ -1 +1 @@
1
- const a87_0x690de2=a87_0x4b20;(function(_0x1689d2,_0x5bea82){const _0x26cc2f=a87_0x4b20,_0x580f3e=_0x1689d2();while(!![]){try{const _0x483bbd=parseInt(_0x26cc2f(0xe9))/0x1+parseInt(_0x26cc2f(0xda))/0x2*(parseInt(_0x26cc2f(0xee))/0x3)+parseInt(_0x26cc2f(0xde))/0x4*(parseInt(_0x26cc2f(0xe8))/0x5)+-parseInt(_0x26cc2f(0xe2))/0x6*(-parseInt(_0x26cc2f(0xe3))/0x7)+-parseInt(_0x26cc2f(0xe6))/0x8+parseInt(_0x26cc2f(0xec))/0x9+-parseInt(_0x26cc2f(0xdc))/0xa*(parseInt(_0x26cc2f(0xe1))/0xb);if(_0x483bbd===_0x5bea82)break;else _0x580f3e['push'](_0x580f3e['shift']());}catch(_0x1bf5f9){_0x580f3e['push'](_0x580f3e['shift']());}}}(a87_0x5702,0x58411));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';function a87_0x5702(){const _0x1b650b=['Target\x20environment','Override\x20API\x20domain','189598scxSsn','Default\x20page\x20size','9749340JKKylh','filter','38652pXgubL','Default\x20output\x20format',';\x20local\x20alias:\x20apps.<alias>.appcode','11jRNPed','24WfAZZO','860083Tkwqbt','format','cliSettableTopLevel','5673576KtVhWo','Access\x20key\x20(client-ak\x20auth)','175Xycxvi','481301lAsJKn','Config\x20key.\x20Top-level:\x20','riskLevel','1492596NoanMA','Risk\x20level','18KbrQtE','Override\x20runtime\x20domain','locale','has','Locale','fromEntries','env','map','enumValues','join','defaultValue','entries'];a87_0x5702=function(){return _0x1b650b;};return a87_0x5702();}export const CONFIG_FIELD_SCHEMAS={'env':{'description':a87_0x690de2(0xd8),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x690de2(0xf4)],'importable':!![]},'format':{'description':a87_0x690de2(0xdf),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x690de2(0xe4)],'importable':!![]},'pageSize':{'description':a87_0x690de2(0xdb),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a87_0x690de2(0xd9),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a87_0x690de2(0xef),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':'Override\x20SkillHub\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a87_0x690de2(0xe7),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a87_0x690de2(0xed),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x690de2(0xeb)],'importable':!![]},'locale':{'description':a87_0x690de2(0xf2),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x690de2(0xf0)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a87_0x690de2(0xd7)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x564bb9])=>_0x564bb9[a87_0x690de2(0xe5)])['map'](([_0x37665c])=>_0x37665c));export const CONFIG_ENUM_VALUES=Object[a87_0x690de2(0xf3)](Object['entries'](CONFIG_FIELD_SCHEMAS)[a87_0x690de2(0xdd)](([,_0x4e07e5])=>_0x4e07e5[a87_0x690de2(0xf6)])[a87_0x690de2(0xf5)](([_0x2951da,_0x42c248])=>[_0x2951da,[..._0x42c248[a87_0x690de2(0xf6)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a87_0x690de2(0xd7)](CONFIG_FIELD_SCHEMAS)[a87_0x690de2(0xdd)](([,_0x42bced])=>_0x42bced['importable'])['map'](([_0x23978e])=>_0x23978e);export function getConfigFieldSchema(_0x5b1690){return CONFIG_FIELD_SCHEMAS[_0x5b1690];}export function getConfigEnumValues(_0x2b07d3){const _0x2f0180=a87_0x690de2;return getConfigFieldSchema(_0x2b07d3)?.[_0x2f0180(0xf6)];}function a87_0x4b20(_0x59c66c,_0x1100e6){_0x59c66c=_0x59c66c-0xd7;const _0x57023d=a87_0x5702();let _0x4b20af=_0x57023d[_0x59c66c];return _0x4b20af;}export function getConfigDefaultValue(_0x3680f6){const _0x2b41cb=a87_0x690de2;return getConfigFieldSchema(_0x3680f6)?.[_0x2b41cb(0xf8)];}export function isTopLevelConfigKey(_0x47c790){const _0x332a9c=a87_0x690de2;return TOP_LEVEL_CONFIG_KEYS[_0x332a9c(0xf1)](_0x47c790);}export function isLegacyCompatConfigKey(_0x339c4a){return getConfigFieldSchema(_0x339c4a)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0xdf3bc){const _0x1e1b9a=a87_0x690de2;return[..._0xdf3bc][_0x1e1b9a(0xf7)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x5322f4=a87_0x690de2;return _0x5322f4(0xea)+getTopLevelConfigKeySummary()+_0x5322f4(0xe0);}export function buildAppProfileListFields(_0xca06d8){return{'env':_0xca06d8,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a87_0x1e05fd=a87_0x3c77;(function(_0x6e5fe1,_0x569fb7){const _0x310b82=a87_0x3c77,_0x1be4e0=_0x6e5fe1();while(!![]){try{const _0x2a6eea=parseInt(_0x310b82(0x1f6))/0x1+-parseInt(_0x310b82(0x1ed))/0x2+-parseInt(_0x310b82(0x205))/0x3+-parseInt(_0x310b82(0x204))/0x4*(parseInt(_0x310b82(0x1f9))/0x5)+-parseInt(_0x310b82(0x1fb))/0x6+parseInt(_0x310b82(0x1fd))/0x7+-parseInt(_0x310b82(0x208))/0x8*(-parseInt(_0x310b82(0x1f1))/0x9);if(_0x2a6eea===_0x569fb7)break;else _0x1be4e0['push'](_0x1be4e0['shift']());}catch(_0x3f22be){_0x1be4e0['push'](_0x1be4e0['shift']());}}}(a87_0x5398,0xf2000));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a87_0x1e05fd(0x1f8),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x1e05fd(0x1fa)],'importable':!![]},'format':{'description':a87_0x1e05fd(0x1ee),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['format'],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a87_0x1e05fd(0x1fc),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a87_0x1e05fd(0x1f5),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a87_0x1e05fd(0x201),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a87_0x1e05fd(0x1f2),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a87_0x1e05fd(0x1f3),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x1e05fd(0x1f4)],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a87_0x1e05fd(0x209)](CONFIG_FIELD_SCHEMAS)[a87_0x1e05fd(0x203)](([,_0x4f808f])=>_0x4f808f['cliSettableTopLevel'])[a87_0x1e05fd(0x202)](([_0x4b46f6])=>_0x4b46f6));export const CONFIG_ENUM_VALUES=Object[a87_0x1e05fd(0x1ef)](Object[a87_0x1e05fd(0x209)](CONFIG_FIELD_SCHEMAS)[a87_0x1e05fd(0x203)](([,_0x59ea80])=>_0x59ea80[a87_0x1e05fd(0x207)])['map'](([_0x5b8397,_0x5a37fa])=>[_0x5b8397,[..._0x5a37fa[a87_0x1e05fd(0x207)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a87_0x1e05fd(0x209)](CONFIG_FIELD_SCHEMAS)[a87_0x1e05fd(0x203)](([,_0x10ed7d])=>_0x10ed7d['importable'])[a87_0x1e05fd(0x202)](([_0x176ef3])=>_0x176ef3);export function getConfigFieldSchema(_0x22b0ab){return CONFIG_FIELD_SCHEMAS[_0x22b0ab];}export function getConfigEnumValues(_0x2ae1e1){return getConfigFieldSchema(_0x2ae1e1)?.['enumValues'];}function a87_0x3c77(_0x5e13f2,_0xd20615){_0x5e13f2=_0x5e13f2-0x1ed;const _0x53989e=a87_0x5398();let _0x3c7778=_0x53989e[_0x5e13f2];return _0x3c7778;}export function getConfigDefaultValue(_0x5becb6){const _0x562b7d=a87_0x1e05fd;return getConfigFieldSchema(_0x5becb6)?.[_0x562b7d(0x1f0)];}export function isTopLevelConfigKey(_0x4fd585){const _0x2a6df9=a87_0x1e05fd;return TOP_LEVEL_CONFIG_KEYS[_0x2a6df9(0x200)](_0x4fd585);}export function isLegacyCompatConfigKey(_0x5e6b19){const _0x548018=a87_0x1e05fd;return getConfigFieldSchema(_0x5e6b19)?.[_0x548018(0x1fe)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}function a87_0x5398(){const _0x34bd9b=['filter','76892ubiXfc','3843750LFLwxu','Config\x20key.\x20Top-level:\x20','enumValues','8MNRBct','entries','2619928CtkmYC','Default\x20output\x20format','fromEntries','defaultValue','22333977MhDdIA','Access\x20key\x20(client-ak\x20auth)','Risk\x20level','riskLevel','Override\x20runtime\x20domain','1809020GxBHan',';\x20local\x20alias:\x20apps.<alias>.appcode','Target\x20environment','225GZBxXX','env','9382212fLerQt','Override\x20API\x20domain','12044270ngSjWP','legacyCompatOnly','join','has','Override\x20SkillHub\x20domain','map'];a87_0x5398=function(){return _0x34bd9b;};return a87_0x5398();}export function formatConfigKeyList(_0x4349da){const _0x4eb322=a87_0x1e05fd;return[..._0x4349da][_0x4eb322(0x1ff)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x5e51ae=a87_0x1e05fd;return _0x5e51ae(0x206)+getTopLevelConfigKeySummary()+_0x5e51ae(0x1f7);}export function buildAppProfileListFields(_0x124567){return{'env':_0x124567,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- const a88_0x2f8de5=a88_0x167f;function a88_0x167f(_0x4fddb2,_0xf273ba){_0x4fddb2=_0x4fddb2-0x1a2;const _0x598e30=a88_0x598e();let _0x167f1b=_0x598e30[_0x4fddb2];return _0x167f1b;}(function(_0x4239e7,_0x5e0804){const _0x59604f=a88_0x167f,_0x50f9bd=_0x4239e7();while(!![]){try{const _0xfc8d3f=parseInt(_0x59604f(0x1a7))/0x1*(parseInt(_0x59604f(0x1a4))/0x2)+parseInt(_0x59604f(0x1a2))/0x3*(parseInt(_0x59604f(0x1ad))/0x4)+parseInt(_0x59604f(0x1ab))/0x5+-parseInt(_0x59604f(0x1ac))/0x6+parseInt(_0x59604f(0x1aa))/0x7+-parseInt(_0x59604f(0x1a5))/0x8+-parseInt(_0x59604f(0x1a8))/0x9;if(_0xfc8d3f===_0x5e0804)break;else _0x50f9bd['push'](_0x50f9bd['shift']());}catch(_0x5c08a9){_0x50f9bd['push'](_0x50f9bd['shift']());}}}(a88_0x598e,0xb4f18));function a88_0x598e(){const _0x1fa2cd=['9146862kRbxSL','UNPUBLISH','6140141rUYJsu','6444095URaZuL','1014486VZZZWO','703244JFIryX','9ImFaaz','PUBLISHED','12472bnrQVg','8579488ElXKrJ','Published','49hJTdDr'];a88_0x598e=function(){return _0x1fa2cd;};return a88_0x598e();}export const APP_PUBLISH_STATUS={'Published':a88_0x2f8de5(0x1a3),'Unpublished':a88_0x2f8de5(0x1a9)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a88_0x2f8de5(0x1a6)];
1
+ const a88_0x4792a8=a88_0x1dc1;(function(_0x36812a,_0x548c7d){const _0x277319=a88_0x1dc1,_0x16dc3c=_0x36812a();while(!![]){try{const _0x3a4a4b=-parseInt(_0x277319(0x102))/0x1+parseInt(_0x277319(0xfb))/0x2*(-parseInt(_0x277319(0x104))/0x3)+-parseInt(_0x277319(0x105))/0x4+-parseInt(_0x277319(0xff))/0x5*(parseInt(_0x277319(0x107))/0x6)+parseInt(_0x277319(0xfe))/0x7+-parseInt(_0x277319(0x106))/0x8*(-parseInt(_0x277319(0xfd))/0x9)+-parseInt(_0x277319(0x103))/0xa*(parseInt(_0x277319(0x100))/0xb);if(_0x3a4a4b===_0x548c7d)break;else _0x16dc3c['push'](_0x16dc3c['shift']());}catch(_0x307fcb){_0x16dc3c['push'](_0x16dc3c['shift']());}}}(a88_0x4254,0x8c547));function a88_0x1dc1(_0x415fb5,_0x5b6e51){_0x415fb5=_0x415fb5-0xfb;const _0x4254e=a88_0x4254();let _0x1dc15c=_0x4254e[_0x415fb5];return _0x1dc15c;}export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a88_0x4792a8(0xfc)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a88_0x4792a8(0x101)];function a88_0x4254(){const _0x48169c=['11fwZkBv','Published','120060hByjvw','387690XMGHkc','764433mETBrZ','150796SGOcBO','4005544GWmGMf','144HNNIjw','6Yiwcwc','UNPUBLISH','18QecnJG','6441498LeemXp','80385RhurYL'];a88_0x4254=function(){return _0x48169c;};return a88_0x4254();}
@@ -1 +1 @@
1
- const a89_0x4f9c4d=a89_0x4ca8;function a89_0x4ca8(_0x4a43e0,_0x1d278e){_0x4a43e0=_0x4a43e0-0x84;const _0x2a95a9=a89_0x2a95();let _0x4ca84e=_0x2a95a9[_0x4a43e0];return _0x4ca84e;}(function(_0x33ed4a,_0x40edbe){const _0x26ce01=a89_0x4ca8,_0x35264f=_0x33ed4a();while(!![]){try{const _0x7e511f=-parseInt(_0x26ce01(0x8d))/0x1*(parseInt(_0x26ce01(0x84))/0x2)+-parseInt(_0x26ce01(0x89))/0x3+parseInt(_0x26ce01(0x88))/0x4*(-parseInt(_0x26ce01(0x8b))/0x5)+parseInt(_0x26ce01(0x86))/0x6*(parseInt(_0x26ce01(0x8e))/0x7)+-parseInt(_0x26ce01(0x87))/0x8+parseInt(_0x26ce01(0x85))/0x9+parseInt(_0x26ce01(0x8c))/0xa;if(_0x7e511f===_0x40edbe)break;else _0x35264f['push'](_0x35264f['shift']());}catch(_0x3c2b4a){_0x35264f['push'](_0x35264f['shift']());}}}(a89_0x2a95,0x5e098));function a89_0x2a95(){const _0x4bf143=['3366925JhPRcQ','19971700RwWfCb','329UpvEEE','1735251LwInIN','3172HDmWFK','1833147cnaTDE','12YxoRIG','4100968luITkJ','4oJZEEX','1810989VWxwZK','client-ak'];a89_0x2a95=function(){return _0x4bf143;};return a89_0x2a95();}export const AUTH_MODE={'ClientAk':a89_0x4f9c4d(0x8a)};export function isAuthMode(_0x179e08){return _0x179e08===AUTH_MODE['ClientAk'];}
1
+ const a89_0x59fc1e=a89_0x6f6b;(function(_0x4f1af2,_0x4d761c){const _0x23534a=a89_0x6f6b,_0x12ab22=_0x4f1af2();while(!![]){try{const _0x3eaefb=-parseInt(_0x23534a(0x146))/0x1*(parseInt(_0x23534a(0x14a))/0x2)+-parseInt(_0x23534a(0x148))/0x3+parseInt(_0x23534a(0x14c))/0x4+-parseInt(_0x23534a(0x14b))/0x5*(parseInt(_0x23534a(0x145))/0x6)+-parseInt(_0x23534a(0x143))/0x7+parseInt(_0x23534a(0x144))/0x8*(-parseInt(_0x23534a(0x147))/0x9)+parseInt(_0x23534a(0x141))/0xa*(parseInt(_0x23534a(0x14d))/0xb);if(_0x3eaefb===_0x4d761c)break;else _0x12ab22['push'](_0x12ab22['shift']());}catch(_0x39b943){_0x12ab22['push'](_0x12ab22['shift']());}}}(a89_0x178a,0xcafd2));export const AUTH_MODE={'ClientAk':a89_0x59fc1e(0x149)};function a89_0x6f6b(_0x5408f5,_0x117e00){_0x5408f5=_0x5408f5-0x141;const _0x178a36=a89_0x178a();let _0x6f6b14=_0x178a36[_0x5408f5];return _0x6f6b14;}export function isAuthMode(_0x1b619a){const _0x2499bb=a89_0x59fc1e;return _0x1b619a===AUTH_MODE[_0x2499bb(0x142)];}function a89_0x178a(){const _0x257b45=['4771797HuhNbl','client-ak','2ztrpeb','1103570hvaaHS','2193260gwAXjY','23916629pQagab','20QcYJcM','ClientAk','9886079lujpMT','18256VbHbQd','12ICEaeA','123551LhXjLa','1962ZpKvdm'];a89_0x178a=function(){return _0x257b45;};return a89_0x178a();}
@@ -1 +1 @@
1
- const a90_0x341928=a90_0x2d68;(function(_0x515471,_0x3197fb){const _0x1fd73a=a90_0x2d68,_0x1ed574=_0x515471();while(!![]){try{const _0x1aa247=-parseInt(_0x1fd73a(0xc5))/0x1*(-parseInt(_0x1fd73a(0xdf))/0x2)+-parseInt(_0x1fd73a(0xd0))/0x3*(parseInt(_0x1fd73a(0xde))/0x4)+-parseInt(_0x1fd73a(0xc6))/0x5*(-parseInt(_0x1fd73a(0xcc))/0x6)+-parseInt(_0x1fd73a(0xb5))/0x7*(parseInt(_0x1fd73a(0xaf))/0x8)+parseInt(_0x1fd73a(0xc7))/0x9*(parseInt(_0x1fd73a(0xd7))/0xa)+-parseInt(_0x1fd73a(0xcd))/0xb+parseInt(_0x1fd73a(0xbd))/0xc;if(_0x1aa247===_0x3197fb)break;else _0x1ed574['push'](_0x1ed574['shift']());}catch(_0x4e284f){_0x1ed574['push'](_0x1ed574['shift']());}}}(a90_0x2e8e,0x4cfc4));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a90_0x341928(0xb2)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a90_0x341928(0xb8)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a90_0x341928(0xc2),'meowKey':'appcode','type':a90_0x341928(0xda),'description':a90_0x341928(0xd6),'hint':a90_0x341928(0xcb)},{'name':a90_0x341928(0xba),'meowKey':a90_0x341928(0xba),'type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':a90_0x341928(0xb3)},{'name':'env','meowKey':a90_0x341928(0xcf),'type':a90_0x341928(0xda),'description':a90_0x341928(0xca),'hint':a90_0x341928(0xbb)},{'name':'format','meowKey':'format','type':a90_0x341928(0xda),'description':a90_0x341928(0xd8),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a90_0x341928(0xda),'description':a90_0x341928(0xce),'hint':a90_0x341928(0xc1)},{'name':a90_0x341928(0xc3),'meowKey':a90_0x341928(0xd1),'type':a90_0x341928(0xb7),'description':'Preview\x20operation\x20without\x20executing'},{'name':a90_0x341928(0xbc),'meowKey':a90_0x341928(0xbc),'type':a90_0x341928(0xb7),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a90_0x341928(0xd9),'meowKey':a90_0x341928(0xd5),'type':'boolean','description':a90_0x341928(0xb1)},{'name':a90_0x341928(0xbe),'meowKey':a90_0x341928(0xbe),'type':'boolean','description':a90_0x341928(0xc8)},{'name':'ci','meowKey':'ci','type':a90_0x341928(0xb7),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':'help','meowKey':'help','type':'boolean','description':a90_0x341928(0xd3)},{'name':'id','meowKey':'id','type':a90_0x341928(0xda),'description':a90_0x341928(0xc0),'hidden':!![]},{'name':'name','meowKey':a90_0x341928(0xd2),'type':'string','description':a90_0x341928(0xc9),'hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a90_0x341928(0xda),'description':a90_0x341928(0xdb),'hidden':!![]},{'name':'params','meowKey':a90_0x341928(0xad),'type':'string','description':a90_0x341928(0xdc),'hidden':!![]},{'name':'verbose','meowKey':a90_0x341928(0xae),'type':a90_0x341928(0xb7),'description':a90_0x341928(0xbf),'hidden':!![]},{'name':a90_0x341928(0xb0),'meowKey':'clear','type':'boolean','description':a90_0x341928(0xd4),'hidden':!![]}];function a90_0x2d68(_0x13b3a6,_0x4901b4){_0x13b3a6=_0x13b3a6-0xad;const _0x2e8e51=a90_0x2e8e();let _0x2d68e1=_0x2e8e51[_0x13b3a6];return _0x2d68e1;}export const PIPELINE_FLAG_NAMES=new Set([a90_0x341928(0xc2),a90_0x341928(0xba),a90_0x341928(0xcf),a90_0x341928(0xc4),'jq','dry-run',a90_0x341928(0xbc),a90_0x341928(0xd9),'ci']);function a90_0x2e8e(){const _0x229400=['7ORFvGP','meowKey','boolean','cliDisplayName','map','app','production\x20|\x20development\x20|\x20daily','yes','3459072OdSdXo','global','Verbose\x20output','Record\x20ID','<expr>','appcode','dry-run','format','3GKiWEG','510AgbMZs','64314MnHUjS','Use\x20global\x20config\x20scope','Name\x20filter','Environment','<code>','22488Pbkvhf','4551811vRlADZ','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','env','1074729KDUPDJ','dryRun','name','Show\x20help','Clear\x20output','nonInteractive','Override\x20appcode','300AfosCM','Output\x20format','non-interactive','string','SQL\x20query\x20code','JSON\x20params\x20for\x20execute\x20commands','type','4cDKxcB','146892JOgZDd','params','verbose','143152fhuSBf','clear','Force\x20non-interactive\x20mode\x20(CI)','cliBinName','<name>','fromEntries'];a90_0x2e8e=function(){return _0x229400;};return a90_0x2e8e();}export function buildMeowFlags(){const _0x2499c4=a90_0x341928;return Object[_0x2499c4(0xb4)](GLOBAL_FLAGS[_0x2499c4(0xb9)](_0xfaf619=>[_0xfaf619[_0x2499c4(0xb6)],{'type':_0xfaf619[_0x2499c4(0xdd)]}]));}
1
+ function a90_0x5dda(_0xfd733c,_0x129f2e){_0xfd733c=_0xfd733c-0xe4;const _0x4c387b=a90_0x4c38();let _0x5dda3a=_0x4c387b[_0xfd733c];return _0x5dda3a;}function a90_0x4c38(){const _0x5d56b1=['fromEntries','3065288VvIKxG','help','528ERxCnn','yes','dry-run','Output\x20format','appcode','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','Name\x20filter','Preview\x20operation\x20without\x20executing','clear','sqlcode','Alias\x20for\x20--non-interactive','4491399qNuyRI','map','99mIHqFW','cliDisplayName','type','891001DuRbGi','format','env','global','non-interactive','<code>','boolean','Verbose\x20output','json\x20|\x20pretty\x20|\x20compress','11175lChHbl','string','production\x20|\x20development\x20|\x20daily','1281848hpnufJ','1611561TIRQnN','Skip\x20confirmation\x20for\x20high-risk\x20writes','SQL\x20query\x20code','Record\x20ID','meowKey','name','1877980GIcAqr','cliBinName','app','<name>','verbose','params'];a90_0x4c38=function(){return _0x5d56b1;};return a90_0x4c38();}const a90_0x417fc5=a90_0x5dda;(function(_0x1cc828,_0x4b3fea){const _0x59bee8=a90_0x5dda,_0x1bfe18=_0x1cc828();while(!![]){try{const _0x43bd73=parseInt(_0x59bee8(0x10c))/0x1+parseInt(_0x59bee8(0xf3))/0x2+parseInt(_0x59bee8(0x107))/0x3+-parseInt(_0x59bee8(0xfa))/0x4+parseInt(_0x59bee8(0xe9))/0x5*(parseInt(_0x59bee8(0xfc))/0x6)+-parseInt(_0x59bee8(0xed))/0x7+parseInt(_0x59bee8(0xec))/0x8*(-parseInt(_0x59bee8(0x109))/0x9);if(_0x43bd73===_0x4b3fea)break;else _0x1bfe18['push'](_0x1bfe18['shift']());}catch(_0x23ea9d){_0x1bfe18['push'](_0x1bfe18['shift']());}}}(a90_0x4c38,0xbab2e));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a90_0x417fc5(0xf4)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a90_0x417fc5(0x10a)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a90_0x417fc5(0x100),'meowKey':a90_0x417fc5(0x100),'type':a90_0x417fc5(0xea),'description':'Override\x20appcode','hint':a90_0x417fc5(0xe5)},{'name':a90_0x417fc5(0xf5),'meowKey':'app','type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':a90_0x417fc5(0xf6)},{'name':'env','meowKey':a90_0x417fc5(0x10e),'type':a90_0x417fc5(0xea),'description':'Environment','hint':a90_0x417fc5(0xeb)},{'name':'format','meowKey':'format','type':'string','description':a90_0x417fc5(0xff),'hint':a90_0x417fc5(0xe8)},{'name':'jq','meowKey':'jq','type':a90_0x417fc5(0xea),'description':a90_0x417fc5(0x101),'hint':'<expr>'},{'name':a90_0x417fc5(0xfe),'meowKey':'dryRun','type':a90_0x417fc5(0xe6),'description':a90_0x417fc5(0x103)},{'name':a90_0x417fc5(0xfd),'meowKey':a90_0x417fc5(0xfd),'type':'boolean','description':a90_0x417fc5(0xee)},{'name':'non-interactive','meowKey':'nonInteractive','type':'boolean','description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a90_0x417fc5(0x10f),'meowKey':a90_0x417fc5(0x10f),'type':a90_0x417fc5(0xe6),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a90_0x417fc5(0xe6),'description':a90_0x417fc5(0x106),'hidden':!![]},{'name':a90_0x417fc5(0xfb),'meowKey':'help','type':'boolean','description':'Show\x20help'},{'name':'id','meowKey':'id','type':a90_0x417fc5(0xea),'description':a90_0x417fc5(0xf0),'hidden':!![]},{'name':a90_0x417fc5(0xf2),'meowKey':a90_0x417fc5(0xf2),'type':a90_0x417fc5(0xea),'description':a90_0x417fc5(0x102),'hidden':!![]},{'name':a90_0x417fc5(0x105),'meowKey':a90_0x417fc5(0x105),'type':a90_0x417fc5(0xea),'description':a90_0x417fc5(0xef),'hidden':!![]},{'name':a90_0x417fc5(0xf8),'meowKey':a90_0x417fc5(0xf8),'type':a90_0x417fc5(0xea),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':'verbose','meowKey':a90_0x417fc5(0xf7),'type':a90_0x417fc5(0xe6),'description':a90_0x417fc5(0xe7),'hidden':!![]},{'name':a90_0x417fc5(0x104),'meowKey':a90_0x417fc5(0x104),'type':'boolean','description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a90_0x417fc5(0x100),a90_0x417fc5(0xf5),a90_0x417fc5(0x10e),a90_0x417fc5(0x10d),'jq',a90_0x417fc5(0xfe),a90_0x417fc5(0xfd),a90_0x417fc5(0xe4),'ci']);export function buildMeowFlags(){const _0x345788=a90_0x417fc5;return Object[_0x345788(0xf9)](GLOBAL_FLAGS[_0x345788(0x108)](_0x35da0a=>[_0x35da0a[_0x345788(0xf1)],{'type':_0x35da0a[_0x345788(0x10b)]}]));}
@@ -1 +1 @@
1
- const a91_0x38c13a=a91_0x3289;function a91_0x3289(_0x55e1f6,_0x258511){_0x55e1f6=_0x55e1f6-0xa7;const _0x33f066=a91_0x33f0();let _0x328957=_0x33f066[_0x55e1f6];return _0x328957;}function a91_0x33f0(){const _0x5cb893=['1688oTuolS','11064339ZRvRfM','3GCMnla','5655750YgamDs','4567764ExuWTG','11802160TeZZXw','write','en-US','compress','59951hoffUz','main','8421hNivvV','30SFlJDt','1751808caZUXN'];a91_0x33f0=function(){return _0x5cb893;};return a91_0x33f0();}(function(_0x1e7e9b,_0x98d43e){const _0x345e78=a91_0x3289,_0x1fdbdb=_0x1e7e9b();while(!![]){try{const _0x3a0c28=parseInt(_0x345e78(0xb4))/0x1*(parseInt(_0x345e78(0xa9))/0x2)+-parseInt(_0x345e78(0xad))/0x3*(-parseInt(_0x345e78(0xaf))/0x4)+parseInt(_0x345e78(0xae))/0x5+-parseInt(_0x345e78(0xaa))/0x6+-parseInt(_0x345e78(0xa8))/0x7*(-parseInt(_0x345e78(0xab))/0x8)+-parseInt(_0x345e78(0xac))/0x9+-parseInt(_0x345e78(0xb0))/0xa;if(_0x3a0c28===_0x98d43e)break;else _0x1fdbdb['push'](_0x1fdbdb['shift']());}catch(_0x355398){_0x1fdbdb['push'](_0x1fdbdb['shift']());}}}(a91_0x33f0,0xb0e9a));export const DEFAULT_APP_PROFILE_NAME=a91_0x38c13a(0xa7);export const DEFAULT_CONFIG_VALUES={'env':'production','format':'compress','locale':a91_0x38c13a(0xb2),'riskLevel':a91_0x38c13a(0xb1)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a91_0x38c13a(0xb3);
1
+ const a91_0x36d421=a91_0x41e4;(function(_0x3ea935,_0x296658){const _0x448861=a91_0x41e4,_0x4e9ef9=_0x3ea935();while(!![]){try{const _0x20531f=parseInt(_0x448861(0x16f))/0x1+-parseInt(_0x448861(0x169))/0x2*(-parseInt(_0x448861(0x168))/0x3)+parseInt(_0x448861(0x16a))/0x4+-parseInt(_0x448861(0x16e))/0x5+-parseInt(_0x448861(0x171))/0x6*(parseInt(_0x448861(0x16d))/0x7)+-parseInt(_0x448861(0x172))/0x8+-parseInt(_0x448861(0x16b))/0x9*(parseInt(_0x448861(0x173))/0xa);if(_0x20531f===_0x296658)break;else _0x4e9ef9['push'](_0x4e9ef9['shift']());}catch(_0x24e90b){_0x4e9ef9['push'](_0x4e9ef9['shift']());}}}(a91_0x2e7d,0xcb682));function a91_0x2e7d(){const _0x5dd0f9=['production','112zDNRTb','2135325edcMEY','1516612BKYqZq','write','424854sbwaMC','3057320pJNXKI','90GNPRmo','en-US','compress','6eczFpa','1223168oJEdXT','211708gEERnU','17379jrojMg'];a91_0x2e7d=function(){return _0x5dd0f9;};return a91_0x2e7d();}export const DEFAULT_APP_PROFILE_NAME='main';function a91_0x41e4(_0x2e90cc,_0x316780){_0x2e90cc=_0x2e90cc-0x167;const _0x2e7d7c=a91_0x2e7d();let _0x41e4d4=_0x2e7d7c[_0x2e90cc];return _0x41e4d4;}export const DEFAULT_CONFIG_VALUES={'env':a91_0x36d421(0x16c),'format':a91_0x36d421(0x167),'locale':a91_0x36d421(0x174),'riskLevel':a91_0x36d421(0x170)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
@@ -1 +1 @@
1
- const a92_0x49a272=a92_0x3e57;function a92_0x3e57(_0x2906b3,_0xe8ce74){_0x2906b3=_0x2906b3-0xe3;const _0x5568c3=a92_0x5568();let _0x3e573e=_0x5568c3[_0x2906b3];return _0x3e573e;}(function(_0x31e389,_0x502715){const _0x2d6838=a92_0x3e57,_0x5d70c4=_0x31e389();while(!![]){try{const _0x494996=parseInt(_0x2d6838(0xe6))/0x1*(-parseInt(_0x2d6838(0xec))/0x2)+parseInt(_0x2d6838(0xed))/0x3*(-parseInt(_0x2d6838(0xe5))/0x4)+parseInt(_0x2d6838(0xe4))/0x5+parseInt(_0x2d6838(0xe3))/0x6+-parseInt(_0x2d6838(0xe9))/0x7*(parseInt(_0x2d6838(0xeb))/0x8)+-parseInt(_0x2d6838(0xee))/0x9+parseInt(_0x2d6838(0xe7))/0xa;if(_0x494996===_0x502715)break;else _0x5d70c4['push'](_0x5d70c4['shift']());}catch(_0x35f76c){_0x5d70c4['push'](_0x5d70c4['shift']());}}}(a92_0x5568,0x1aade));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a92_0x49a272(0xea)];function a92_0x5568(){const _0x49944c=['237018hCjlqK','458307wSKqbA','1161432KTfPcw','73266StfCUf','751620vDfFNU','4RQguxK','1NCJnhT','5253880ltISlW','skillSource','1248233PDakfj','npmPackageName','8AfsciM'];a92_0x5568=function(){return _0x49944c;};return a92_0x5568();}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a92_0x49a272(0xe8)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];
1
+ const a92_0x1d47fc=a92_0xff6a;function a92_0xc846(){const _0x1ecb44=['143018DSysdJ','3UHKoAb','21ZQBeWt','119694SIKwfT','25137tUeFDN','1074500MGqYlP','380500tOGpOR','1496737PQcIwX','skillSource','npmRegistryBaseUrl','1pOOpwY','72BJJaGh','542056YyOZLX','npmPackageName','48LursbI'];a92_0xc846=function(){return _0x1ecb44;};return a92_0xc846();}(function(_0x4c7029,_0x24675b){const _0x22a9d6=a92_0xff6a,_0x9c760e=_0x4c7029();while(!![]){try{const _0x5c99e5=-parseInt(_0x22a9d6(0x1b0))/0x1*(parseInt(_0x22a9d6(0x1a6))/0x2)+-parseInt(_0x22a9d6(0x1a7))/0x3*(-parseInt(_0x22a9d6(0x1b2))/0x4)+-parseInt(_0x22a9d6(0x1ab))/0x5+-parseInt(_0x22a9d6(0x1a9))/0x6*(parseInt(_0x22a9d6(0x1a8))/0x7)+parseInt(_0x22a9d6(0x1b1))/0x8*(parseInt(_0x22a9d6(0x1aa))/0x9)+-parseInt(_0x22a9d6(0x1ac))/0xa+parseInt(_0x22a9d6(0x1ad))/0xb*(parseInt(_0x22a9d6(0x1a5))/0xc);if(_0x5c99e5===_0x24675b)break;else _0x9c760e['push'](_0x9c760e['shift']());}catch(_0x58a088){_0x9c760e['push'](_0x9c760e['shift']());}}}(a92_0xc846,0x4e465));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a92_0x1d47fc(0x1a4)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a92_0x1d47fc(0x1ae)];function a92_0xff6a(_0x570d64,_0x5b9a41){_0x570d64=_0x570d64-0x1a4;const _0xc84640=a92_0xc846();let _0xff6a17=_0xc84640[_0x570d64];return _0xff6a17;}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a92_0x1d47fc(0x1af)];
@@ -1 +1 @@
1
- const a93_0x32e95d=a93_0x6b9e;(function(_0x2a82cc,_0x52f667){const _0x176441=a93_0x6b9e,_0x24afd0=_0x2a82cc();while(!![]){try{const _0x19db1d=parseInt(_0x176441(0x1b6))/0x1*(-parseInt(_0x176441(0x1b7))/0x2)+parseInt(_0x176441(0x1bb))/0x3*(parseInt(_0x176441(0x1af))/0x4)+parseInt(_0x176441(0x1b9))/0x5+-parseInt(_0x176441(0x1b3))/0x6*(parseInt(_0x176441(0x1a8))/0x7)+parseInt(_0x176441(0x1b5))/0x8*(-parseInt(_0x176441(0x1ae))/0x9)+parseInt(_0x176441(0x1aa))/0xa+parseInt(_0x176441(0x1ac))/0xb;if(_0x19db1d===_0x52f667)break;else _0x24afd0['push'](_0x24afd0['shift']());}catch(_0xa2d91a){_0x24afd0['push'](_0x24afd0['shift']());}}}(a93_0x2e08,0x76232));import{getEnv,isProduction}from'../constant/env.js';function a93_0x2e08(){const _0x53440f=['2lZYLoK','271454NuTVAK','api','39740gKapPZ','nonProduction','1041438QsAjCI','userDomain','runtimeDomain','4151gwkpbC','skillHubDomain','906470TdXXkv','user','12198483CMLPis','skillhub','261kflMBZ','8weyGDa','runtime','apiDomain','production','8892vJNvFB','domains','73840AHaJzL'];a93_0x2e08=function(){return _0x53440f;};return a93_0x2e08();}import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x3d0c43){const _0x2b376c=a93_0x6b9e;customApiDomain=_0x3d0c43?.[_0x2b376c(0x1b1)],customUserDomain=_0x3d0c43?.[_0x2b376c(0x1bc)],customRuntimeDomain=_0x3d0c43?.[_0x2b376c(0x1a7)],customSkillHubDomain=_0x3d0c43?.[_0x2b376c(0x1a9)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x32e95d(0x1b4)][a93_0x32e95d(0x1b2)][a93_0x32e95d(0x1ab)]:PRODUCT_CONFIG[a93_0x32e95d(0x1b4)][a93_0x32e95d(0x1ba)]['user']);function a93_0x6b9e(_0x12d851,_0x46ab54){_0x12d851=_0x12d851-0x1a7;const _0x2e0876=a93_0x2e08();let _0x6b9e42=_0x2e0876[_0x12d851];return _0x6b9e42;}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a93_0x32e95d(0x1b2)][a93_0x32e95d(0x1b8)]:PRODUCT_CONFIG['domains']['nonProduction']['api']);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains']['production'][a93_0x32e95d(0x1b0)]:PRODUCT_CONFIG[a93_0x32e95d(0x1b4)][a93_0x32e95d(0x1ba)]['runtime']);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a93_0x32e95d(0x1b2)]['skillhub']:PRODUCT_CONFIG[a93_0x32e95d(0x1b4)][a93_0x32e95d(0x1ba)][a93_0x32e95d(0x1ad)]);
1
+ function a93_0x2f4c(_0x4f4ac4,_0x489543){_0x4f4ac4=_0x4f4ac4-0xd6;const _0x130912=a93_0x1309();let _0x2f4cad=_0x130912[_0x4f4ac4];return _0x2f4cad;}const a93_0x2d7b2e=a93_0x2f4c;(function(_0x1dd572,_0x5c6b15){const _0xf701a1=a93_0x2f4c,_0x28f38e=_0x1dd572();while(!![]){try{const _0x35da3a=-parseInt(_0xf701a1(0xdd))/0x1+parseInt(_0xf701a1(0xe6))/0x2*(parseInt(_0xf701a1(0xda))/0x3)+-parseInt(_0xf701a1(0xea))/0x4+-parseInt(_0xf701a1(0xe8))/0x5*(-parseInt(_0xf701a1(0xdc))/0x6)+parseInt(_0xf701a1(0xe9))/0x7*(-parseInt(_0xf701a1(0xd6))/0x8)+-parseInt(_0xf701a1(0xd7))/0x9*(-parseInt(_0xf701a1(0xe7))/0xa)+-parseInt(_0xf701a1(0xe0))/0xb*(-parseInt(_0xf701a1(0xe3))/0xc);if(_0x35da3a===_0x5c6b15)break;else _0x28f38e['push'](_0x28f38e['shift']());}catch(_0x22f517){_0x28f38e['push'](_0x28f38e['shift']());}}}(a93_0x1309,0x299ae));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;function a93_0x1309(){const _0x55f9ca=['skillHubDomain','121206moZhvC','10PQBROc','256615DLPcTF','7IKTkXw','1043616yXgZkl','1775384PzJmBg','2192787OXjMAj','nonProduction','runtime','3KoZsbp','apiDomain','30NKGSmN','316933WlBDNe','domains','userDomain','4502443lmlFEG','production','api','12aSEBze','user'];a93_0x1309=function(){return _0x55f9ca;};return a93_0x1309();}export function initDomains(_0xf993fc){const _0x459275=a93_0x2f4c;customApiDomain=_0xf993fc?.[_0x459275(0xdb)],customUserDomain=_0xf993fc?.[_0x459275(0xdf)],customRuntimeDomain=_0xf993fc?.['runtimeDomain'],customSkillHubDomain=_0xf993fc?.[_0x459275(0xe5)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x2d7b2e(0xde)][a93_0x2d7b2e(0xe1)][a93_0x2d7b2e(0xe4)]:PRODUCT_CONFIG[a93_0x2d7b2e(0xde)][a93_0x2d7b2e(0xd8)][a93_0x2d7b2e(0xe4)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x2d7b2e(0xde)][a93_0x2d7b2e(0xe1)][a93_0x2d7b2e(0xe2)]:PRODUCT_CONFIG[a93_0x2d7b2e(0xde)][a93_0x2d7b2e(0xd8)][a93_0x2d7b2e(0xe2)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x2d7b2e(0xde)][a93_0x2d7b2e(0xe1)][a93_0x2d7b2e(0xd9)]:PRODUCT_CONFIG[a93_0x2d7b2e(0xde)]['nonProduction'][a93_0x2d7b2e(0xd9)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x2d7b2e(0xde)]['production']['skillhub']:PRODUCT_CONFIG['domains'][a93_0x2d7b2e(0xd8)]['skillhub']);
@@ -1 +1 @@
1
- function a94_0x431d(){const _0x5e2a07=['588EjBsTz','12970xFtvyZ','375914ayYaDS','online','48SVrtzE','30228huccKg','daily','dev','3233007KtKrjx','production','4489397QfjvOX','182kGvveH','2227112OcXaef','15115CPSgrW','10UnJozo','development'];a94_0x431d=function(){return _0x5e2a07;};return a94_0x431d();}function a94_0x14f4(_0x98decf,_0x227d8f){_0x98decf=_0x98decf-0x180;const _0x431d68=a94_0x431d();let _0x14f4b0=_0x431d68[_0x98decf];return _0x14f4b0;}const a94_0x44f51c=a94_0x14f4;(function(_0x3b34f6,_0x3caa2a){const _0x4f67ea=a94_0x14f4,_0x230e12=_0x3b34f6();while(!![]){try{const _0x5c9a44=parseInt(_0x4f67ea(0x185))/0x1+parseInt(_0x4f67ea(0x184))/0x2*(-parseInt(_0x4f67ea(0x187))/0x3)+parseInt(_0x4f67ea(0x183))/0x4*(parseInt(_0x4f67ea(0x180))/0x5)+-parseInt(_0x4f67ea(0x188))/0x6*(parseInt(_0x4f67ea(0x18e))/0x7)+-parseInt(_0x4f67ea(0x18f))/0x8+parseInt(_0x4f67ea(0x18b))/0x9+parseInt(_0x4f67ea(0x181))/0xa*(-parseInt(_0x4f67ea(0x18d))/0xb);if(_0x5c9a44===_0x3caa2a)break;else _0x230e12['push'](_0x230e12['shift']());}catch(_0x403806){_0x230e12['push'](_0x230e12['shift']());}}}(a94_0x431d,0x3f0ce));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a94_0x44f51c(0x18c),a94_0x44f51c(0x182),a94_0x44f51c(0x189)];export function normalizeEnv(_0x1d33ba){const _0x424232=a94_0x44f51c;return _0x1d33ba===_0x424232(0x186)?'production':_0x1d33ba;}export function isProduction(_0x3604a1){const _0x2f4e54=a94_0x44f51c;return normalizeEnv(_0x3604a1)===_0x2f4e54(0x18c);}export function isDaily(_0x240345){return normalizeEnv(_0x240345)==='daily';}export function isDev(_0x5b32dd){const _0xbae70f=a94_0x44f51c,_0x1a9231=normalizeEnv(_0x5b32dd);return _0x1a9231==='development'||_0x1a9231===_0xbae70f(0x18a);}let env=normalizeEnv(productEnv('ENV')||a94_0x44f51c(0x18c));export function getEnv(){return env;}export function initEnv(_0x238b9e){env=normalizeEnv(_0x238b9e);}
1
+ const a94_0x3b4460=a94_0x3ff1;(function(_0x201ef3,_0xfc17a3){const _0x4d65a6=a94_0x3ff1,_0x257426=_0x201ef3();while(!![]){try{const _0x4234cf=-parseInt(_0x4d65a6(0x1b1))/0x1+-parseInt(_0x4d65a6(0x1a4))/0x2+parseInt(_0x4d65a6(0x1a6))/0x3*(parseInt(_0x4d65a6(0x1ab))/0x4)+parseInt(_0x4d65a6(0x1a9))/0x5+parseInt(_0x4d65a6(0x1b0))/0x6*(-parseInt(_0x4d65a6(0x1af))/0x7)+parseInt(_0x4d65a6(0x1a7))/0x8+-parseInt(_0x4d65a6(0x1ae))/0x9;if(_0x4234cf===_0xfc17a3)break;else _0x257426['push'](_0x257426['shift']());}catch(_0x3dab40){_0x257426['push'](_0x257426['shift']());}}}(a94_0x53c5,0xeb6ed));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=['production',a94_0x3b4460(0x1a8),a94_0x3b4460(0x1ad)];function a94_0x53c5(){const _0x36689e=['676268JVStXg','online','858378zIMiLy','13936952IFWWpY','development','3111360kTItZi','production','8hHqZPI','ENV','daily','6788385nNEeos','17787moROEi','312CVICDv','747779Dqzjlq'];a94_0x53c5=function(){return _0x36689e;};return a94_0x53c5();}function a94_0x3ff1(_0x1e3250,_0x41d8fb){_0x1e3250=_0x1e3250-0x1a4;const _0x53c5d3=a94_0x53c5();let _0x3ff19b=_0x53c5d3[_0x1e3250];return _0x3ff19b;}export function normalizeEnv(_0x219f36){const _0x24bdb1=a94_0x3b4460;return _0x219f36===_0x24bdb1(0x1a5)?_0x24bdb1(0x1aa):_0x219f36;}export function isProduction(_0xd01077){const _0xa97f75=a94_0x3b4460;return normalizeEnv(_0xd01077)===_0xa97f75(0x1aa);}export function isDaily(_0x2865be){const _0x508177=a94_0x3b4460;return normalizeEnv(_0x2865be)===_0x508177(0x1ad);}export function isDev(_0x287925){const _0x374241=a94_0x3b4460,_0x5dafe8=normalizeEnv(_0x287925);return _0x5dafe8===_0x374241(0x1a8)||_0x5dafe8==='dev';}let env=normalizeEnv(productEnv(a94_0x3b4460(0x1ac))||a94_0x3b4460(0x1aa));export function getEnv(){return env;}export function initEnv(_0x36f15a){env=normalizeEnv(_0x36f15a);}
@@ -1 +1 @@
1
- const a95_0x54ccd8=a95_0x555c;(function(_0x54fb4a,_0x23c10f){const _0x448465=a95_0x555c,_0x36ea4f=_0x54fb4a();while(!![]){try{const _0x210391=-parseInt(_0x448465(0xf6))/0x1+parseInt(_0x448465(0xfb))/0x2+parseInt(_0x448465(0xf4))/0x3*(parseInt(_0x448465(0xf3))/0x4)+parseInt(_0x448465(0xf7))/0x5+parseInt(_0x448465(0xf9))/0x6+parseInt(_0x448465(0xfa))/0x7+parseInt(_0x448465(0xf5))/0x8;if(_0x210391===_0x23c10f)break;else _0x36ea4f['push'](_0x36ea4f['shift']());}catch(_0x2a16be){_0x36ea4f['push'](_0x36ea4f['shift']());}}}(a95_0x2799,0x8832d));function a95_0x555c(_0x223753,_0x5d2278){_0x223753=_0x223753-0xf3;const _0x27993f=a95_0x2799();let _0x555c67=_0x27993f[_0x223753];return _0x555c67;}function a95_0x2799(){const _0x49e5d3=['894198reQzxz','3480827aTwFEz','427722MRsjPi','4KaHMov','214005TTBxvR','244384oSQftL','567511iobpeI','816710zWyAuk','compress'];a95_0x2799=function(){return _0x49e5d3;};return a95_0x2799();}export const OUTPUT_FORMAT_VALUES=['json','pretty',a95_0x54ccd8(0xf8)];
1
+ function a95_0x1d52(){const _0x580065=['2926752DfWlzZ','3DbMPBO','358890WxNyJJ','9050130VbnRzv','55900mMAoHg','8671720EIheDc','compress','18740130PNnByr','7svSqYs','5717540WWCKDm','1FZgQba','json'];a95_0x1d52=function(){return _0x580065;};return a95_0x1d52();}const a95_0x1ddac7=a95_0x18aa;(function(_0x1ec332,_0x2a42f0){const _0x212f57=a95_0x18aa,_0x3b986b=_0x1ec332();while(!![]){try{const _0x4dd591=parseInt(_0x212f57(0x6b))/0x1*(parseInt(_0x212f57(0x6f))/0x2)+-parseInt(_0x212f57(0x6e))/0x3*(-parseInt(_0x212f57(0x71))/0x4)+parseInt(_0x212f57(0x6a))/0x5+-parseInt(_0x212f57(0x6d))/0x6+-parseInt(_0x212f57(0x69))/0x7*(parseInt(_0x212f57(0x66))/0x8)+-parseInt(_0x212f57(0x70))/0x9+parseInt(_0x212f57(0x68))/0xa;if(_0x4dd591===_0x2a42f0)break;else _0x3b986b['push'](_0x3b986b['shift']());}catch(_0x55fad8){_0x3b986b['push'](_0x3b986b['shift']());}}}(a95_0x1d52,0x9ab0e));function a95_0x18aa(_0x494a8d,_0x56debf){_0x494a8d=_0x494a8d-0x66;const _0x1d527b=a95_0x1d52();let _0x18aae3=_0x1d527b[_0x494a8d];return _0x18aae3;}export const OUTPUT_FORMAT_VALUES=[a95_0x1ddac7(0x6c),'pretty',a95_0x1ddac7(0x67)];
@@ -1 +1 @@
1
- function a96_0x569b(_0x29694f,_0x4ca559){_0x29694f=_0x29694f-0x12e;const _0x5541a0=a96_0x5541();let _0x569bc6=_0x5541a0[_0x29694f];return _0x569bc6;}const a96_0x4b16d6=a96_0x569b;(function(_0x46571c,_0x13723c){const _0x45fe5c=a96_0x569b,_0x1dc495=_0x46571c();while(!![]){try{const _0x48f62d=parseInt(_0x45fe5c(0x130))/0x1*(-parseInt(_0x45fe5c(0x13b))/0x2)+parseInt(_0x45fe5c(0x13d))/0x3+parseInt(_0x45fe5c(0x13e))/0x4*(-parseInt(_0x45fe5c(0x146))/0x5)+parseInt(_0x45fe5c(0x131))/0x6+-parseInt(_0x45fe5c(0x12f))/0x7+-parseInt(_0x45fe5c(0x134))/0x8*(parseInt(_0x45fe5c(0x149))/0x9)+-parseInt(_0x45fe5c(0x137))/0xa*(-parseInt(_0x45fe5c(0x145))/0xb);if(_0x48f62d===_0x13723c)break;else _0x1dc495['push'](_0x1dc495['shift']());}catch(_0x7ed58b){_0x1dc495['push'](_0x1dc495['shift']());}}}(a96_0x5541,0x63193));export const PRODUCT_CONFIG={'cliBinName':a96_0x4b16d6(0x14d),'cliDisplayName':a96_0x4b16d6(0x148),'npmPackageName':a96_0x4b16d6(0x13a),'skillSource':a96_0x4b16d6(0x138),'internalSkillSource':'git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','globalSkillName':a96_0x4b16d6(0x14d),'npmRegistryBaseUrl':a96_0x4b16d6(0x143),'envPrefix':a96_0x4b16d6(0x144),'legacyEnvPrefixes':[a96_0x4b16d6(0x141)],'configFileNames':['.lovrabet.json',a96_0x4b16d6(0x132)],'newConfigFileName':a96_0x4b16d6(0x14a),'homeDirName':a96_0x4b16d6(0x136),'logFileName':a96_0x4b16d6(0x14c),'invokeSource':a96_0x4b16d6(0x14b),'userCenterDisplayName':a96_0x4b16d6(0x13c),'skipNpxSkillsEnvSuffix':a96_0x4b16d6(0x140),'domains':{'production':{'user':a96_0x4b16d6(0x142),'api':'https://api.lovrabet.com','runtime':'https://runtime.lovrabet.com','skillhub':a96_0x4b16d6(0x12e)},'nonProduction':{'user':a96_0x4b16d6(0x147),'api':a96_0x4b16d6(0x13f),'runtime':'https://daily-runtime.lovrabet.com','skillhub':a96_0x4b16d6(0x135)}},'accessKeyCreatePath':'/user/ak'};export function productEnvName(_0x470332){return PRODUCT_CONFIG['envPrefix']+'_'+_0x470332;}function a96_0x5541(){const _0x111924=['https://registry.npmjs.org','LOVRABET','3893802MllNOV','115lDvtJh','https://user-daily.lovrabet.com','Lovrabet\x20Runtime\x20CLI','348165PNGccu','.lovrabet.json','cli:lovrabet-runtime','.lovrabet-runtime.log','lovrabet','https://skills.lovrabet.com','931448vDlvIT','123699ZSypMo','2093502JIbUCz','.lovrabetrc','legacyEnvPrefixes','88vsywtL','https://skills-daily.lovrabet.com','.lovrabet','20Gjuywg','lovrabet/lovrabet-cli','map','@lovrabet/lovrabet-cli','6qXUhXy','Lovrabet\x20User\x20Center','1928574Xrbnit','63328EiMCwN','https://daily-api.lovrabet.com','SKIP_NPX_SKILLS','RABETBASE','https://user.lovrabet.com'];a96_0x5541=function(){return _0x111924;};return a96_0x5541();}export function productEnvNames(_0x4d2af4){const _0x53e031=a96_0x4b16d6;return[productEnvName(_0x4d2af4),...PRODUCT_CONFIG[_0x53e031(0x133)][_0x53e031(0x139)](_0x1bfea4=>_0x1bfea4+'_'+_0x4d2af4)];}export function productEnv(_0x263390){for(const _0x518971 of productEnvNames(_0x263390)){const _0x4a1d0c=process.env[_0x518971];if(_0x4a1d0c!==undefined)return _0x4a1d0c;}return undefined;}
1
+ const a96_0x408298=a96_0x1d9d;(function(_0x2c0cfe,_0x120abd){const _0x231ab1=a96_0x1d9d,_0x3c1ca4=_0x2c0cfe();while(!![]){try{const _0x35e77c=parseInt(_0x231ab1(0x7d))/0x1*(-parseInt(_0x231ab1(0x83))/0x2)+-parseInt(_0x231ab1(0x82))/0x3*(-parseInt(_0x231ab1(0x8f))/0x4)+parseInt(_0x231ab1(0x7b))/0x5*(parseInt(_0x231ab1(0x81))/0x6)+parseInt(_0x231ab1(0x88))/0x7*(-parseInt(_0x231ab1(0x84))/0x8)+-parseInt(_0x231ab1(0x7a))/0x9+parseInt(_0x231ab1(0x8d))/0xa+-parseInt(_0x231ab1(0x90))/0xb;if(_0x35e77c===_0x120abd)break;else _0x3c1ca4['push'](_0x3c1ca4['shift']());}catch(_0x43f0bc){_0x3c1ca4['push'](_0x3c1ca4['shift']());}}}(a96_0x3727,0x36239));function a96_0x1d9d(_0x5e635f,_0x3038cc){_0x5e635f=_0x5e635f-0x70;const _0x372769=a96_0x3727();let _0x1d9d83=_0x372769[_0x5e635f];return _0x1d9d83;}function a96_0x3727(){const _0x347193=['54246rsxWWf','8Rsmcko','.lovrabetrc','https://user.lovrabet.com','https://daily-api.lovrabet.com','90223rHWrur','https://registry.npmjs.org','https://daily-runtime.lovrabet.com','envPrefix','map','1824750YzDfES','SKIP_NPX_SKILLS','151576YKmUtO','459349tDMYYJ','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','https://user-daily.lovrabet.com','RABETBASE','LOVRABET','/user/ak','lovrabet','legacyEnvPrefixes','https://runtime.lovrabet.com','https://skills.lovrabet.com','.lovrabet-runtime.log','2037915tkgGBR','475235LwzDKb','https://skills-daily.lovrabet.com','5jwOAUN','cli:lovrabet-runtime','.lovrabet','@lovrabet/lovrabet-cli','24MbxHZY','6cPukua'];a96_0x3727=function(){return _0x347193;};return a96_0x3727();}export const PRODUCT_CONFIG={'cliBinName':a96_0x408298(0x75),'cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':a96_0x408298(0x80),'skillSource':'lovrabet/lovrabet-cli','internalSkillSource':a96_0x408298(0x70),'globalSkillName':'lovrabet','npmRegistryBaseUrl':a96_0x408298(0x89),'envPrefix':a96_0x408298(0x73),'legacyEnvPrefixes':[a96_0x408298(0x72)],'configFileNames':['.lovrabet.json',a96_0x408298(0x85)],'newConfigFileName':'.lovrabet.json','homeDirName':a96_0x408298(0x7f),'logFileName':a96_0x408298(0x79),'invokeSource':a96_0x408298(0x7e),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a96_0x408298(0x8e),'domains':{'production':{'user':a96_0x408298(0x86),'api':'https://api.lovrabet.com','runtime':a96_0x408298(0x77),'skillhub':a96_0x408298(0x78)},'nonProduction':{'user':a96_0x408298(0x71),'api':a96_0x408298(0x87),'runtime':a96_0x408298(0x8a),'skillhub':a96_0x408298(0x7c)}},'accessKeyCreatePath':a96_0x408298(0x74)};export function productEnvName(_0x4c7cdd){const _0x501ea8=a96_0x408298;return PRODUCT_CONFIG[_0x501ea8(0x8b)]+'_'+_0x4c7cdd;}export function productEnvNames(_0xe98f93){const _0x369fbc=a96_0x408298;return[productEnvName(_0xe98f93),...PRODUCT_CONFIG[_0x369fbc(0x76)][_0x369fbc(0x8c)](_0x17b9fa=>_0x17b9fa+'_'+_0xe98f93)];}export function productEnv(_0x35e983){for(const _0x1ed3f0 of productEnvNames(_0x35e983)){const _0x35dbac=process.env[_0x1ed3f0];if(_0x35dbac!==undefined)return _0x35dbac;}return undefined;}
@@ -1 +1 @@
1
- function a97_0x1241(){const _0xeca1fa=['write','148337mIwTYr','92730XTxtiD','2614515gNzhRI','13836861ZKrtNB','2379764tFOfgW','849aaZZCV','read','1868376hNOWef','42BDbukW','974GELgJA'];a97_0x1241=function(){return _0xeca1fa;};return a97_0x1241();}function a97_0x3ec6(_0x5cc058,_0x394002){_0x5cc058=_0x5cc058-0x199;const _0x1241ac=a97_0x1241();let _0x3ec682=_0x1241ac[_0x5cc058];return _0x3ec682;}const a97_0x1e659c=a97_0x3ec6;(function(_0x4a70bd,_0xd030e0){const _0x4844ce=a97_0x3ec6,_0x5e4c5b=_0x4a70bd();while(!![]){try{const _0x5df0e2=-parseInt(_0x4844ce(0x1a1))/0x1+-parseInt(_0x4844ce(0x19e))/0x2*(-parseInt(_0x4844ce(0x19a))/0x3)+-parseInt(_0x4844ce(0x199))/0x4+-parseInt(_0x4844ce(0x1a2))/0x5+-parseInt(_0x4844ce(0x19d))/0x6*(-parseInt(_0x4844ce(0x1a0))/0x7)+-parseInt(_0x4844ce(0x19c))/0x8+parseInt(_0x4844ce(0x1a3))/0x9;if(_0x5df0e2===_0xd030e0)break;else _0x5e4c5b['push'](_0x5e4c5b['shift']());}catch(_0x2f986f){_0x5e4c5b['push'](_0x5e4c5b['shift']());}}}(a97_0x1241,0x5ca4a));export const RISK_LEVEL_VALUES=[a97_0x1e659c(0x19b),a97_0x1e659c(0x19f),'high-risk-write'];
1
+ function a97_0xd432(_0x476ba7,_0x38d524){_0x476ba7=_0x476ba7-0x1c9;const _0x5605c1=a97_0x5605();let _0xd43294=_0x5605c1[_0x476ba7];return _0xd43294;}const a97_0x1f36d4=a97_0xd432;function a97_0x5605(){const _0x49c40c=['15815iGMutf','135887IAJNmE','81JtnTwx','3lbNsCG','read','17739469CKRJsT','write','12XIQkNM','21455ijAWjV','918746SQIUVu','4wDEKdz','7936080ikmeWm','458792sgInqJ','570irCsck'];a97_0x5605=function(){return _0x49c40c;};return a97_0x5605();}(function(_0x48d1b3,_0x2a5a99){const _0x5f0553=a97_0xd432,_0x7d590a=_0x48d1b3();while(!![]){try{const _0x11a3fe=parseInt(_0x5f0553(0x1d1))/0x1+parseInt(_0x5f0553(0x1cb))/0x2*(parseInt(_0x5f0553(0x1d3))/0x3)+parseInt(_0x5f0553(0x1cc))/0x4*(parseInt(_0x5f0553(0x1d0))/0x5)+parseInt(_0x5f0553(0x1cf))/0x6*(parseInt(_0x5f0553(0x1ca))/0x7)+parseInt(_0x5f0553(0x1ce))/0x8*(parseInt(_0x5f0553(0x1d2))/0x9)+parseInt(_0x5f0553(0x1cd))/0xa+parseInt(_0x5f0553(0x1d5))/0xb*(-parseInt(_0x5f0553(0x1c9))/0xc);if(_0x11a3fe===_0x2a5a99)break;else _0x7d590a['push'](_0x7d590a['shift']());}catch(_0x2425b0){_0x7d590a['push'](_0x7d590a['shift']());}}}(a97_0x5605,0x8f3ac));export const RISK_LEVEL_VALUES=[a97_0x1f36d4(0x1d4),a97_0x1f36d4(0x1d6),'high-risk-write'];
@@ -1 +1 @@
1
- function a98_0x444c(){const _0x1557b2=['3256150aYqTFu','345IIznZE','126186YivBhT','2DajhcZ','3106740wINsmj','18820626gJKpeG','242773lVLfMc','3491432NwiEfi','9OMzVNc','domains','38524TBbjvi','371aYidjU'];a98_0x444c=function(){return _0x1557b2;};return a98_0x444c();}const a98_0x20aec4=a98_0xdfb3;function a98_0xdfb3(_0x5787b6,_0x43898e){_0x5787b6=_0x5787b6-0x180;const _0x444c9c=a98_0x444c();let _0xdfb3a7=_0x444c9c[_0x5787b6];return _0xdfb3a7;}(function(_0x456802,_0x41d58a){const _0x43202a=a98_0xdfb3,_0x4e1d2b=_0x456802();while(!![]){try{const _0x50c246=parseInt(_0x43202a(0x182))/0x1*(parseInt(_0x43202a(0x18b))/0x2)+parseInt(_0x43202a(0x189))/0x3*(parseInt(_0x43202a(0x186))/0x4)+parseInt(_0x43202a(0x180))/0x5+-parseInt(_0x43202a(0x18a))/0x6*(-parseInt(_0x43202a(0x187))/0x7)+-parseInt(_0x43202a(0x183))/0x8+-parseInt(_0x43202a(0x184))/0x9*(parseInt(_0x43202a(0x188))/0xa)+-parseInt(_0x43202a(0x181))/0xb;if(_0x50c246===_0x41d58a)break;else _0x4e1d2b['push'](_0x4e1d2b['shift']());}catch(_0xde0382){_0x4e1d2b['push'](_0x4e1d2b['shift']());}}}(a98_0x444c,0x95bc7));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a98_0x20aec4(0x185)]['production']['user']+PRODUCT_CONFIG['accessKeyCreatePath'];
1
+ const a98_0x1aa2b1=a98_0x8559;(function(_0x4da77f,_0x49ae45){const _0x9ba3e0=a98_0x8559,_0xe4f591=_0x4da77f();while(!![]){try{const _0x26cfaf=-parseInt(_0x9ba3e0(0x132))/0x1+-parseInt(_0x9ba3e0(0x133))/0x2*(parseInt(_0x9ba3e0(0x138))/0x3)+-parseInt(_0x9ba3e0(0x13d))/0x4+-parseInt(_0x9ba3e0(0x13c))/0x5*(parseInt(_0x9ba3e0(0x13b))/0x6)+parseInt(_0x9ba3e0(0x134))/0x7*(-parseInt(_0x9ba3e0(0x136))/0x8)+parseInt(_0x9ba3e0(0x131))/0x9*(-parseInt(_0x9ba3e0(0x13a))/0xa)+parseInt(_0x9ba3e0(0x130))/0xb*(parseInt(_0x9ba3e0(0x139))/0xc);if(_0x26cfaf===_0x49ae45)break;else _0xe4f591['push'](_0xe4f591['shift']());}catch(_0x146f67){_0xe4f591['push'](_0xe4f591['shift']());}}}(a98_0x2482,0xc1557));import{PRODUCT_CONFIG}from'../constant/product.js';function a98_0x8559(_0x54c659,_0x4f77d4){_0x54c659=_0x54c659-0x130;const _0x2482b9=a98_0x2482();let _0x85595e=_0x2482b9[_0x54c659];return _0x85595e;}function a98_0x2482(){const _0x208f9c=['25182oXuhIv','1875GuzgLu','4646968MtXHqW','49896YvBbOk','19818yxbQiO','1248550JfXqGI','56230CGMUsu','7HmgSSr','user','9916264FrKFzD','domains','21GJWrQG','19068astWom','4520GBMeSg'];a98_0x2482=function(){return _0x208f9c;};return a98_0x2482();}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a98_0x1aa2b1(0x137)]['production'][a98_0x1aa2b1(0x135)]+PRODUCT_CONFIG['accessKeyCreatePath'];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a99_0x39be67=a99_0x4ac8;(function(_0x350b25,_0x472f1d){const _0x37f51b=a99_0x4ac8,_0xa1245c=_0x350b25();while(!![]){try{const _0x2e9fc1=parseInt(_0x37f51b(0x117))/0x1+-parseInt(_0x37f51b(0x14b))/0x2+parseInt(_0x37f51b(0x133))/0x3*(parseInt(_0x37f51b(0x122))/0x4)+parseInt(_0x37f51b(0x152))/0x5*(-parseInt(_0x37f51b(0x14a))/0x6)+-parseInt(_0x37f51b(0x120))/0x7+parseInt(_0x37f51b(0x128))/0x8+-parseInt(_0x37f51b(0x13f))/0x9*(-parseInt(_0x37f51b(0x132))/0xa);if(_0x2e9fc1===_0x472f1d)break;else _0xa1245c['push'](_0xa1245c['shift']());}catch(_0x11fc89){_0xa1245c['push'](_0xa1245c['shift']());}}}(a99_0x1e52,0xa10f3));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a99_0x39be67(0x10e)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a99_0x39be67(0x119)];function resolveConfigPath(_0x3716f1){for(const _0x3d24d8 of CONFIG_NAMES){const _0x30f1cf=resolve(_0x3716f1,_0x3d24d8);if(existsSync(_0x30f1cf))return _0x30f1cf;}return undefined;}export function resolveWriteConfigPath(_0x4cd3be){const _0x39a317=a99_0x39be67,_0x4715bb=_0x4cd3be===_0x39a317(0x149)?process[_0x39a317(0x146)]():homedir(),_0x1227f6=resolveConfigPath(_0x4715bb);return _0x1227f6??resolve(_0x4715bb,NEW_CONFIG_NAME);}export function readConfigFile(_0x10533a){const _0xc8fad0=a99_0x39be67;try{if(existsSync(_0x10533a)){const _0x26bb46=readFileSync(_0x10533a,{'encoding':_0xc8fad0(0x125)});if(_0x26bb46){const _0x3767e4=JSON[_0xc8fad0(0x111)](_0x26bb46);return migrateOnlineEnv(_0x10533a,_0x3767e4),_0x3767e4;}}}catch{}return{};}function migrateOnlineEnv(_0x21982f,_0xc2bc44){const _0x4743ad=a99_0x39be67;let _0x5e75e6=![];_0xc2bc44[_0x4743ad(0x124)]==='online'&&(_0xc2bc44[_0x4743ad(0x124)]=_0x4743ad(0x10d),_0x5e75e6=!![]);if(_0xc2bc44[_0x4743ad(0x13a)]&&typeof _0xc2bc44['apps']===_0x4743ad(0x13c))for(const _0x5e8a00 of Object[_0x4743ad(0x141)](_0xc2bc44['apps'])){_0x5e8a00&&_0x5e8a00[_0x4743ad(0x124)]===_0x4743ad(0x143)&&(_0x5e8a00[_0x4743ad(0x124)]=_0x4743ad(0x10d),_0x5e75e6=!![]);}if(_0x5e75e6)try{writeConfigFile(_0x21982f,_0xc2bc44);}catch{}}export function writeConfigFile(_0x48af1e,_0x2e0058){const _0x12fa98=a99_0x39be67,_0x88d2bb=dirname(_0x48af1e);!existsSync(_0x88d2bb)&&mkdirSync(_0x88d2bb,{'recursive':!![]});const _0x269a7e=_0x48af1e+_0x12fa98(0x130);try{writeFileSync(_0x269a7e,JSON[_0x12fa98(0x10b)](_0x2e0058,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x269a7e,_0x48af1e);}catch(_0x5c0bf7){if(_0x5c0bf7['code']==='EPERM'||_0x5c0bf7[_0x12fa98(0x11b)]===_0x12fa98(0x142)||_0x5c0bf7[_0x12fa98(0x11b)]===_0x12fa98(0x10f)){writeFileSync(_0x48af1e,JSON[_0x12fa98(0x10b)](_0x2e0058,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x269a7e);}catch{}}else throw _0x5c0bf7;}}catch(_0x494f98){try{unlinkSync(_0x269a7e);}catch{}throw _0x494f98;}}export function isNonInteractiveMode(_0x4d7ccb){const _0x3398aa=a99_0x39be67;return!!(_0x4d7ccb['nonInteractive']||_0x4d7ccb['ci']||productEnvNames('CI')['some'](_0xf21ffb=>process.env[_0xf21ffb]===_0x3398aa(0x129))||process.env.CI===_0x3398aa(0x129)||!process[_0x3398aa(0x11f)][_0x3398aa(0x131)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x2ae935=a99_0x39be67;if(!process[_0x2ae935(0x114)]['isTTY'])return![];try{const _0x38593d=process['stdin'][_0x2ae935(0x118)];return process[_0x2ae935(0x114)][_0x2ae935(0x115)](!![]),process[_0x2ae935(0x114)][_0x2ae935(0x115)](_0x38593d??![]),!![];}catch{return![];}}export async function createContext(_0xbeac96){const _0x254e1a=a99_0x39be67,_0x4b0dbb=readRawConfig(),_0x46f419=buildConfig(_0x4b0dbb,_0xbeac96);await initGlobalEnvironment(_0x46f419);const {getUserDomain:_0x11b26b,getApiDomain:_0x345e2c}=await import('./constant/domain.js'),_0x15dfa1={'apiDomain':_0x345e2c(),'userDomain':_0x11b26b()},_0x169d40=await buildAuth(_0x46f419);logger[_0x254e1a(0x13b)](process[_0x254e1a(0x146)]());const _0x585917=(CLI_BIN_NAME+'\x20'+process[_0x254e1a(0x134)][_0x254e1a(0x10c)](0x2)['join']('\x20'))[_0x254e1a(0x151)]();logger[_0x254e1a(0x14f)](_0x585917);const _0x5b596b=isNonInteractiveMode(_0xbeac96);return{'config':_0x46f419,'auth':_0x169d40,'logger':logger,'env':_0x15dfa1,'nonInteractive':_0x5b596b};}export function buildConfigFromFlags(_0x4cabd2){return buildConfig(readRawConfig(),_0x4cabd2);}export function getLocalAppAliases(_0x56208c){const _0x471b4a=a99_0x39be67;return _0x56208c[_0x471b4a(0x13a)]&&typeof _0x56208c[_0x471b4a(0x13a)]===_0x471b4a(0x13c)?_0x56208c['apps']:{};}export function resolveLocalAppAliasCode(_0x4ad5da,_0x26646f){const _0xb00b4a=a99_0x39be67;if(!_0x26646f)return undefined;const _0x3d40f1=getLocalAppAliases(_0x4ad5da)[_0x26646f],_0x69dd99=_0x3d40f1?.[_0xb00b4a(0x116)];return typeof _0x69dd99===_0xb00b4a(0x150)&&_0x69dd99[_0xb00b4a(0x151)]()?_0x69dd99['trim']():undefined;}export function readAppCodeFromConfig(){const _0x3021d0=a99_0x39be67,_0x31fd63=readRawConfig(),_0x2e237b=_0x31fd63[_0x3021d0(0x116)]??_0x31fd63['app'];if(typeof _0x2e237b===_0x3021d0(0x150)&&_0x2e237b[_0x3021d0(0x151)]())return _0x2e237b['trim']();const _0x39879c=resolveLocalAppAliasCode(_0x31fd63,typeof _0x31fd63['defaultApp']===_0x3021d0(0x150)?_0x31fd63[_0x3021d0(0x11a)]:undefined);if(_0x39879c)return _0x39879c;const _0x46e506=normalizeEnv(String(_0x31fd63[_0x3021d0(0x124)]||'production')),_0x2a5610=isDaily(_0x46e506)?_0x3021d0(0x140):isDev(_0x46e506)?_0x3021d0(0x12b):_0x3021d0(0x10d),_0x4ab86f=resolveCachedAppCode(typeof _0x31fd63[_0x3021d0(0x11a)]==='string'?_0x31fd63['defaultApp']:undefined,_0x2a5610,typeof _0x31fd63[_0x3021d0(0x138)]==='string'?_0x31fd63['accessKey']:undefined);if(_0x4ab86f)return _0x4ab86f;const _0x3fb5c9=Object[_0x3021d0(0x141)](getLocalAppAliases(_0x31fd63))[_0x3021d0(0x153)](_0x3e9106=>_0x3e9106?.[_0x3021d0(0x116)]);return typeof _0x3fb5c9?.['appcode']===_0x3021d0(0x150)&&_0x3fb5c9[_0x3021d0(0x116)][_0x3021d0(0x151)]()?_0x3fb5c9[_0x3021d0(0x116)][_0x3021d0(0x151)]():undefined;}export function readScopedConfig(_0x367d34){const _0x5635aa=a99_0x39be67,_0x23aeed=_0x367d34[_0x5635aa(0x12f)]?_0x5635aa(0x12f):_0x5635aa(0x149);return readConfigFile(resolveWriteConfigPath(_0x23aeed));}export function writeScopedConfig(_0x4192ca,_0x2967ff){const _0x581a39=a99_0x39be67,_0x30b4d7=_0x2967ff[_0x581a39(0x12f)]?_0x581a39(0x12f):_0x581a39(0x149);writeConfigFile(resolveWriteConfigPath(_0x30b4d7),_0x4192ca);}export async function initGlobalEnvironment(_0x104262){const _0x1f04dd=a99_0x39be67,{initEnv:_0x58d5f5}=await import('./constant/env.js');_0x58d5f5(_0x104262[_0x1f04dd(0x124)]);const {initDomains:_0x31e93d}=await import('./constant/domain.js');_0x31e93d({'apiDomain':_0x104262[_0x1f04dd(0x145)][_0x1f04dd(0x112)]||_0x104262[_0x1f04dd(0x145)][_0x1f04dd(0x13e)]||undefined,'userDomain':_0x104262[_0x1f04dd(0x145)][_0x1f04dd(0x147)]||undefined,'runtimeDomain':_0x104262[_0x1f04dd(0x145)][_0x1f04dd(0x136)]||undefined,'skillHubDomain':_0x104262['raw']['skillHubDomain']||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x195326){const _0x1a9d08=a99_0x39be67;if(!existsSync(_0x195326))return{'status':'missing'};try{const _0x115a06=readFileSync(_0x195326,{'encoding':_0x1a9d08(0x125)});if(!_0x115a06?.[_0x1a9d08(0x151)]())return{'status':_0x1a9d08(0x11e)};const _0x4407ad=JSON['parse'](_0x115a06);return{'status':'ok','data':_0x4407ad};}catch(_0x5d6d92){return{'status':_0x1a9d08(0x14d),'message':_0x5d6d92 instanceof Error?_0x5d6d92[_0x1a9d08(0x11d)]:String(_0x5d6d92)};}}export function loadRawConfigLayers(_0x44eea0){const _0x338a2e=a99_0x39be67;let _0x567641={},_0xd5d547={},_0x578327,_0x5ae9a6;try{_0x578327=resolveConfigPath(homedir());if(_0x578327){const _0x5003f1=readFileSync(_0x578327,{'encoding':_0x338a2e(0x125)});if(_0x5003f1)_0x567641=JSON[_0x338a2e(0x111)](_0x5003f1);}}catch{}try{const _0x191d66=_0x44eea0||process[_0x338a2e(0x146)]();_0x5ae9a6=resolveConfigPath(_0x191d66);if(_0x5ae9a6){const _0x141489=readFileSync(_0x5ae9a6,{'encoding':'utf8'});if(_0x141489)_0xd5d547=JSON[_0x338a2e(0x111)](_0x141489);}}catch{}return{'globalPath':_0x578327,'projectPath':_0x5ae9a6,'globalConfig':_0x567641,'projectConfig':_0xd5d547};}function a99_0x4ac8(_0x28b5c7,_0x185f0b){_0x28b5c7=_0x28b5c7-0x10b;const _0x1e522a=a99_0x1e52();let _0x4ac845=_0x1e522a[_0x28b5c7];return _0x4ac845;}function mergeRawConfigLayers(_0x26b82d){const _0x5b515c=a99_0x39be67,{globalConfig:_0x1c2c6c,projectConfig:_0x566bf1}=_0x26b82d;if(_0x566bf1[_0x5b515c(0x113)]===![]){const _0xe4618b={..._0x566bf1};return delete _0xe4618b[_0x5b515c(0x113)],_0xe4618b;}const _0x175011={..._0x1c2c6c,..._0x566bf1};if(_0x5b515c(0x11a)in _0x566bf1)_0x175011[_0x5b515c(0x11a)]=_0x566bf1['defaultApp'];else _0x1c2c6c[_0x5b515c(0x11a)]&&(_0x175011[_0x5b515c(0x11a)]=_0x1c2c6c[_0x5b515c(0x11a)]);return _0x175011;}function a99_0x1e52(){const _0xa45f45=['6350IKMlkO','6lGzsFP','argv','ACCESS_KEY','runtimeDomain','locale','accessKey','APPCODE','apps','setLogPath','object','pageSize','host','18477tfBsDD','daily','values','EXDEV','online','explicit','raw','cwd','userDomain','riskLevel','project','162NnTOQk','2071804abyMJu','format','error','ENV','setRawCommand','string','trim','15550HhLeEE','find','local-alias','top-level','stringify','slice','production','configFileNames','EACCES','projectConfig','parse','apiDomain','inherit','stdin','setRawMode','appcode','64182OZgRvy','isRaw','newConfigFileName','defaultApp','code','VERBOSE','message','empty','stdout','5286043DNMmQU','high-risk-write','432248pKejdV','globalConfig','env','utf8','maxRisk','app','7606072YelgGl','true','PAGE_SIZE','development','FORMAT','read','authRequired','global','.tmp','isTTY'];a99_0x1e52=function(){return _0xa45f45;};return a99_0x1e52();}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0xe613db){return mergeRawConfigLayers(loadRawConfigLayers(_0xe613db));}export function readRawConfigWithLayers(_0x34d1ba){const _0x1e9c78=loadRawConfigLayers(_0x34d1ba);return{'config':mergeRawConfigLayers(_0x1e9c78),'layers':_0x1e9c78};}export function resolveDefaultAppSource(_0x277fe9){const _0xa25cbb=a99_0x39be67;if(_0xa25cbb(0x11a)in _0x277fe9[_0xa25cbb(0x110)])return'project';if(_0x277fe9['projectConfig']['inherit']===![])return null;if(_0x277fe9[_0xa25cbb(0x123)]['defaultApp'])return _0xa25cbb(0x12f);return null;}function buildConfig(_0x9e7c11,_0x141b8c){const _0x1b1567=a99_0x39be67,_0xbb61d7=_0x9e7c11[_0x1b1567(0x11a)]||undefined,_0x440af0=_0x141b8c[_0x1b1567(0x127)]||env('APP')||undefined,_0x48546d=_0x440af0||_0xbb61d7||undefined,_0x26dbf1=env(_0x1b1567(0x135))||_0x9e7c11['accessKey']||undefined,_0x34ed0f=_0x141b8c[_0x1b1567(0x124)]||env(_0x1b1567(0x14e))||_0x9e7c11['env']||DEFAULT_CONFIG_VALUES[_0x1b1567(0x124)],_0x3d3ee9=normalizeEnv(String(_0x34ed0f)),_0x17dd69=isDaily(_0x3d3ee9)?_0x1b1567(0x140):isDev(_0x3d3ee9)?_0x1b1567(0x12b):'production',_0x1dbe6b=typeof _0x141b8c[_0x1b1567(0x116)]===_0x1b1567(0x150)?_0x141b8c[_0x1b1567(0x116)]:undefined,_0x1defd3=env(_0x1b1567(0x139)),_0x11e258=_0x440af0?undefined:_0x9e7c11[_0x1b1567(0x116)]||_0x9e7c11[_0x1b1567(0x127)]||undefined,_0x5e24a6=_0x440af0||(_0x11e258?undefined:_0xbb61d7),_0x32c524=resolveLocalAppAliasCode(_0x9e7c11,_0x5e24a6),_0x320759=resolveCachedAppCode(_0x5e24a6,_0x17dd69,_0x26dbf1),_0x44756c=_0x1dbe6b||_0x1defd3||_0x11e258||_0x32c524||_0x320759||undefined,_0x38e3ff=_0x1dbe6b?_0x1b1567(0x144):_0x1defd3?_0x1b1567(0x124):_0x11e258?_0x1b1567(0x155):_0x32c524?_0x1b1567(0x154):_0x320759?'cache':undefined,_0x30351b=_0x9e7c11['locale']||DEFAULT_CONFIG_VALUES[_0x1b1567(0x137)],_0xd345cf=undefined,_0x2d0bdf=_0x141b8c['format']||env(_0x1b1567(0x12c))||_0x9e7c11[_0x1b1567(0x14c)],_0x1130f6=normalizeLegacyOutputFormat(_0x2d0bdf),_0x460907=env(_0x1b1567(0x12a))||_0x9e7c11[_0x1b1567(0x13d)],_0x251f11=_0x460907?Number(_0x460907)||undefined:undefined,_0x43342e=_0x9e7c11[_0x1b1567(0x148)]||_0x9e7c11[_0x1b1567(0x126)],_0x48c25b=_0x43342e===_0x1b1567(0x12d)||_0x43342e==='write'||_0x43342e===_0x1b1567(0x121)?_0x43342e:DEFAULT_CONFIG_VALUES['riskLevel'],_0x3f2d35=env(_0x1b1567(0x11c)),_0x5dd572=_0x3f2d35==='1'||_0x3f2d35===_0x1b1567(0x129);return{'appCode':typeof _0x44756c===_0x1b1567(0x150)&&_0x44756c[_0x1b1567(0x151)]()?_0x44756c['trim']():undefined,'appCodeSource':_0x38e3ff,'env':_0x17dd69,'locale':_0x30351b,'cookie':_0xd345cf,'accessKey':_0x26dbf1,'format':_0x1130f6,'pageSize':_0x251f11,'riskLevel':_0x48c25b,'verbose':_0x5dd572,'defaultApp':_0xbb61d7,'currentApp':typeof _0x48546d===_0x1b1567(0x150)?_0x48546d:undefined,'raw':_0x9e7c11};}function env(_0x435970){return productEnv(_0x435970);}async function buildAuth(_0x442c03){const _0x419b3e='',_0x2d7c6d=!!_0x442c03['accessKey'];return{'cookie':_0x419b3e,'isLoggedIn':_0x2d7c6d,async 'getOrLogin'(){const _0x85ed6d=a99_0x4ac8;if(_0x2d7c6d)return _0x419b3e;throw CliErrors[_0x85ed6d(0x12e)]();}};}
1
+ const a99_0x17b8e6=a99_0x38c1;(function(_0x3624aa,_0x59b4f6){const _0x845aca=a99_0x38c1,_0x368330=_0x3624aa();while(!![]){try{const _0x507cf9=parseInt(_0x845aca(0xd4))/0x1*(-parseInt(_0x845aca(0xff))/0x2)+-parseInt(_0x845aca(0x10c))/0x3+parseInt(_0x845aca(0xce))/0x4+parseInt(_0x845aca(0x106))/0x5+-parseInt(_0x845aca(0xf9))/0x6+-parseInt(_0x845aca(0x10f))/0x7*(parseInt(_0x845aca(0x10a))/0x8)+-parseInt(_0x845aca(0xed))/0x9*(-parseInt(_0x845aca(0xfb))/0xa);if(_0x507cf9===_0x59b4f6)break;else _0x368330['push'](_0x368330['shift']());}catch(_0x5f0f07){_0x368330['push'](_0x368330['shift']());}}}(a99_0xd4e0,0x5f2be));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];function a99_0x38c1(_0x567317,_0x1c6212){_0x567317=_0x567317-0xcc;const _0xd4e0b3=a99_0xd4e0();let _0x38c111=_0xd4e0b3[_0x567317];return _0x38c111;}export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a99_0x17b8e6(0xdd)];function resolveConfigPath(_0x3dc3d4){for(const _0x51bee4 of CONFIG_NAMES){const _0x489dac=resolve(_0x3dc3d4,_0x51bee4);if(existsSync(_0x489dac))return _0x489dac;}return undefined;}export function resolveWriteConfigPath(_0x5789f2){const _0x55d2bc=a99_0x17b8e6,_0x5afa83=_0x5789f2===_0x55d2bc(0xee)?process['cwd']():homedir(),_0x4623c0=resolveConfigPath(_0x5afa83);return _0x4623c0??resolve(_0x5afa83,NEW_CONFIG_NAME);}export function readConfigFile(_0x5e0359){const _0x75e3f6=a99_0x17b8e6;try{if(existsSync(_0x5e0359)){const _0x3c905f=readFileSync(_0x5e0359,{'encoding':_0x75e3f6(0x116)});if(_0x3c905f){const _0x4fd337=JSON[_0x75e3f6(0x108)](_0x3c905f);return migrateOnlineEnv(_0x5e0359,_0x4fd337),_0x4fd337;}}}catch{}return{};}function migrateOnlineEnv(_0x26ef11,_0x4cef28){const _0x33539a=a99_0x17b8e6;let _0x1a5308=![];_0x4cef28[_0x33539a(0x110)]===_0x33539a(0xd6)&&(_0x4cef28[_0x33539a(0x110)]=_0x33539a(0xf0),_0x1a5308=!![]);if(_0x4cef28['apps']&&typeof _0x4cef28['apps']===_0x33539a(0xf2))for(const _0x5d3c7a of Object['values'](_0x4cef28[_0x33539a(0xe9)])){_0x5d3c7a&&_0x5d3c7a[_0x33539a(0x110)]===_0x33539a(0xd6)&&(_0x5d3c7a[_0x33539a(0x110)]=_0x33539a(0xf0),_0x1a5308=!![]);}if(_0x1a5308)try{writeConfigFile(_0x26ef11,_0x4cef28);}catch{}}export function writeConfigFile(_0x4d1c3,_0x563ed7){const _0x309530=a99_0x17b8e6,_0x507134=dirname(_0x4d1c3);!existsSync(_0x507134)&&mkdirSync(_0x507134,{'recursive':!![]});const _0x131a77=_0x4d1c3+_0x309530(0x104);try{writeFileSync(_0x131a77,JSON[_0x309530(0xdb)](_0x563ed7,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x131a77,_0x4d1c3);}catch(_0x3f9534){if(_0x3f9534[_0x309530(0xec)]===_0x309530(0x111)||_0x3f9534['code']===_0x309530(0x10e)||_0x3f9534['code']===_0x309530(0x102)){writeFileSync(_0x4d1c3,JSON[_0x309530(0xdb)](_0x563ed7,null,0x2)+'\x0a',{'encoding':_0x309530(0x116)});try{unlinkSync(_0x131a77);}catch{}}else throw _0x3f9534;}}catch(_0x5d8c1d){try{unlinkSync(_0x131a77);}catch{}throw _0x5d8c1d;}}export function isNonInteractiveMode(_0x5c6b9d){const _0x3b9d84=a99_0x17b8e6;return!!(_0x5c6b9d[_0x3b9d84(0xf6)]||_0x5c6b9d['ci']||productEnvNames('CI')[_0x3b9d84(0x115)](_0x2522e7=>process.env[_0x2522e7]===_0x3b9d84(0xd9))||process.env.CI===_0x3b9d84(0xd9)||!process[_0x3b9d84(0xf4)][_0x3b9d84(0xfd)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x39dd1f=a99_0x17b8e6;if(!process['stdin'][_0x39dd1f(0xfd)])return![];try{const _0x4705cd=process[_0x39dd1f(0xe3)][_0x39dd1f(0x107)];return process[_0x39dd1f(0xe3)][_0x39dd1f(0x112)](!![]),process[_0x39dd1f(0xe3)][_0x39dd1f(0x112)](_0x4705cd??![]),!![];}catch{return![];}}export async function createContext(_0x34610b){const _0x25b0d9=a99_0x17b8e6,_0x27d208=readRawConfig(),_0x49d090=buildConfig(_0x27d208,_0x34610b);await initGlobalEnvironment(_0x49d090);const {getUserDomain:_0xc86780,getApiDomain:_0x45cb02}=await import(_0x25b0d9(0xf5)),_0x4312e2={'apiDomain':_0x45cb02(),'userDomain':_0xc86780()},_0x13edc8=await buildAuth(_0x49d090);logger[_0x25b0d9(0xeb)](process[_0x25b0d9(0xe0)]());const _0x4dda7a=(CLI_BIN_NAME+'\x20'+process[_0x25b0d9(0xf1)][_0x25b0d9(0xd5)](0x2)[_0x25b0d9(0x105)]('\x20'))[_0x25b0d9(0xf7)]();logger[_0x25b0d9(0xfe)](_0x4dda7a);const _0x365119=isNonInteractiveMode(_0x34610b);return{'config':_0x49d090,'auth':_0x13edc8,'logger':logger,'env':_0x4312e2,'nonInteractive':_0x365119};}export function buildConfigFromFlags(_0x245cd8){return buildConfig(readRawConfig(),_0x245cd8);}export function getLocalAppAliases(_0x3496a3){const _0x4622e1=a99_0x17b8e6;return _0x3496a3['apps']&&typeof _0x3496a3['apps']===_0x4622e1(0xf2)?_0x3496a3[_0x4622e1(0xe9)]:{};}export function resolveLocalAppAliasCode(_0x525b27,_0x463ae2){const _0x3111e8=a99_0x17b8e6;if(!_0x463ae2)return undefined;const _0x4499ec=getLocalAppAliases(_0x525b27)[_0x463ae2],_0x445c10=_0x4499ec?.['appcode'];return typeof _0x445c10==='string'&&_0x445c10[_0x3111e8(0xf7)]()?_0x445c10['trim']():undefined;}export function readAppCodeFromConfig(){const _0x4097f4=a99_0x17b8e6,_0x90248=readRawConfig(),_0x4441ad=_0x90248[_0x4097f4(0x114)]??_0x90248[_0x4097f4(0xfc)];if(typeof _0x4441ad==='string'&&_0x4441ad[_0x4097f4(0xf7)]())return _0x4441ad['trim']();const _0x271843=resolveLocalAppAliasCode(_0x90248,typeof _0x90248[_0x4097f4(0x117)]==='string'?_0x90248[_0x4097f4(0x117)]:undefined);if(_0x271843)return _0x271843;const _0x106bce=normalizeEnv(String(_0x90248[_0x4097f4(0x110)]||_0x4097f4(0xf0))),_0x34c51d=isDaily(_0x106bce)?_0x4097f4(0x101):isDev(_0x106bce)?_0x4097f4(0x103):_0x4097f4(0xf0),_0xfc120=resolveCachedAppCode(typeof _0x90248[_0x4097f4(0x117)]===_0x4097f4(0x10d)?_0x90248[_0x4097f4(0x117)]:undefined,_0x34c51d,typeof _0x90248[_0x4097f4(0xcf)]===_0x4097f4(0x10d)?_0x90248['accessKey']:undefined);if(_0xfc120)return _0xfc120;const _0x53c3d5=Object[_0x4097f4(0xe8)](getLocalAppAliases(_0x90248))[_0x4097f4(0xcc)](_0x18e791=>_0x18e791?.[_0x4097f4(0x114)]);return typeof _0x53c3d5?.['appcode']==='string'&&_0x53c3d5['appcode'][_0x4097f4(0xf7)]()?_0x53c3d5[_0x4097f4(0x114)][_0x4097f4(0xf7)]():undefined;}export function readScopedConfig(_0x2923e2){const _0x57c746=a99_0x17b8e6,_0x29173a=_0x2923e2[_0x57c746(0xf3)]?'global':'project';return readConfigFile(resolveWriteConfigPath(_0x29173a));}export function writeScopedConfig(_0x928586,_0x1ce485){const _0x55314c=a99_0x17b8e6,_0x5a114b=_0x1ce485['global']?_0x55314c(0xf3):_0x55314c(0xee);writeConfigFile(resolveWriteConfigPath(_0x5a114b),_0x928586);}export async function initGlobalEnvironment(_0x1925c3){const _0x293158=a99_0x17b8e6,{initEnv:_0x5c2649}=await import(_0x293158(0xde));_0x5c2649(_0x1925c3[_0x293158(0x110)]);const {initDomains:_0x1b9a11}=await import(_0x293158(0xf5));_0x1b9a11({'apiDomain':_0x1925c3[_0x293158(0xd1)]['apiDomain']||_0x1925c3[_0x293158(0xd1)][_0x293158(0xda)]||undefined,'userDomain':_0x1925c3[_0x293158(0xd1)]['userDomain']||undefined,'runtimeDomain':_0x1925c3['raw']['runtimeDomain']||undefined,'skillHubDomain':_0x1925c3[_0x293158(0xd1)][_0x293158(0xfa)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x132655){const _0x19022e=a99_0x17b8e6;if(!existsSync(_0x132655))return{'status':'missing'};try{const _0x2e73ec=readFileSync(_0x132655,{'encoding':'utf8'});if(!_0x2e73ec?.[_0x19022e(0xf7)]())return{'status':_0x19022e(0xdf)};const _0x51969f=JSON[_0x19022e(0x108)](_0x2e73ec);return{'status':'ok','data':_0x51969f};}catch(_0x3c24f0){return{'status':_0x19022e(0xd0),'message':_0x3c24f0 instanceof Error?_0x3c24f0['message']:String(_0x3c24f0)};}}export function loadRawConfigLayers(_0x521b84){const _0x471a36=a99_0x17b8e6;let _0x45174c={},_0x4b0436={},_0x33bbda,_0x4fe052;try{_0x33bbda=resolveConfigPath(homedir());if(_0x33bbda){const _0x2aba5b=readFileSync(_0x33bbda,{'encoding':_0x471a36(0x116)});if(_0x2aba5b)_0x45174c=JSON[_0x471a36(0x108)](_0x2aba5b);}}catch{}try{const _0x1fe1a9=_0x521b84||process[_0x471a36(0xe0)]();_0x4fe052=resolveConfigPath(_0x1fe1a9);if(_0x4fe052){const _0x55cabb=readFileSync(_0x4fe052,{'encoding':_0x471a36(0x116)});if(_0x55cabb)_0x4b0436=JSON['parse'](_0x55cabb);}}catch{}return{'globalPath':_0x33bbda,'projectPath':_0x4fe052,'globalConfig':_0x45174c,'projectConfig':_0x4b0436};}function mergeRawConfigLayers(_0x57a212){const _0x3ebea0=a99_0x17b8e6,{globalConfig:_0x1ff7f7,projectConfig:_0x340b13}=_0x57a212;if(_0x340b13[_0x3ebea0(0xd2)]===![]){const _0x2bb0d3={..._0x340b13};return delete _0x2bb0d3[_0x3ebea0(0xd2)],_0x2bb0d3;}const _0x4ebc4b={..._0x1ff7f7,..._0x340b13};if('defaultApp'in _0x340b13)_0x4ebc4b['defaultApp']=_0x340b13[_0x3ebea0(0x117)];else _0x1ff7f7[_0x3ebea0(0x117)]&&(_0x4ebc4b[_0x3ebea0(0x117)]=_0x1ff7f7[_0x3ebea0(0x117)]);return _0x4ebc4b;}export function isInProject(){return!!getProjectConfigPath();}function a99_0xd4e0(){const _0x360e8f=['2bjPohf','ENV','daily','EACCES','development','.tmp','join','1230290vchffV','isRaw','parse','VERBOSE','16SzDoDW','PAGE_SIZE','717fYPMNY','string','EXDEV','60193hSYYmR','env','EPERM','setRawMode','top-level','appcode','some','utf8','defaultApp','find','maxRisk','856156wrwryC','accessKey','error','raw','inherit','locale','754165oiLOlM','slice','online','format','pageSize','true','host','stringify','APPCODE','newConfigFileName','./constant/env.js','empty','cwd','cache','globalConfig','stdin','projectConfig','FORMAT','riskLevel','local-alias','values','apps','write','setLogPath','code','5093559ulEZmm','project','APP','production','argv','object','global','stdout','./constant/domain.js','nonInteractive','trim','high-risk-write','2583450jtRlcz','skillHubDomain','20TQboNR','app','isTTY','setRawCommand'];a99_0xd4e0=function(){return _0x360e8f;};return a99_0xd4e0();}export function readRawConfig(_0x58e757){return mergeRawConfigLayers(loadRawConfigLayers(_0x58e757));}export function readRawConfigWithLayers(_0x42f3c9){const _0x467e69=loadRawConfigLayers(_0x42f3c9);return{'config':mergeRawConfigLayers(_0x467e69),'layers':_0x467e69};}export function resolveDefaultAppSource(_0x54c010){const _0x3ec547=a99_0x17b8e6;if(_0x3ec547(0x117)in _0x54c010[_0x3ec547(0xe4)])return'project';if(_0x54c010[_0x3ec547(0xe4)]['inherit']===![])return null;if(_0x54c010[_0x3ec547(0xe2)][_0x3ec547(0x117)])return _0x3ec547(0xf3);return null;}function buildConfig(_0x4d5582,_0x380686){const _0x158ba2=a99_0x17b8e6,_0x17a17a=_0x4d5582[_0x158ba2(0x117)]||undefined,_0x19f37b=_0x380686[_0x158ba2(0xfc)]||env(_0x158ba2(0xef))||undefined,_0x3e3e0b=_0x19f37b||_0x17a17a||undefined,_0x40540f=env('ACCESS_KEY')||_0x4d5582[_0x158ba2(0xcf)]||undefined,_0x2d52c7=_0x380686['env']||env(_0x158ba2(0x100))||_0x4d5582[_0x158ba2(0x110)]||DEFAULT_CONFIG_VALUES[_0x158ba2(0x110)],_0x183d00=normalizeEnv(String(_0x2d52c7)),_0x3da086=isDaily(_0x183d00)?_0x158ba2(0x101):isDev(_0x183d00)?'development':_0x158ba2(0xf0),_0x5a109f=typeof _0x380686[_0x158ba2(0x114)]===_0x158ba2(0x10d)?_0x380686[_0x158ba2(0x114)]:undefined,_0x12f2f0=env(_0x158ba2(0xdc)),_0x1b922f=_0x19f37b?undefined:_0x4d5582[_0x158ba2(0x114)]||_0x4d5582['app']||undefined,_0x2edc84=_0x19f37b||(_0x1b922f?undefined:_0x17a17a),_0x11c1c7=resolveLocalAppAliasCode(_0x4d5582,_0x2edc84),_0x17490d=resolveCachedAppCode(_0x2edc84,_0x3da086,_0x40540f),_0x1593ea=_0x5a109f||_0x12f2f0||_0x1b922f||_0x11c1c7||_0x17490d||undefined,_0x209d91=_0x5a109f?'explicit':_0x12f2f0?_0x158ba2(0x110):_0x1b922f?_0x158ba2(0x113):_0x11c1c7?_0x158ba2(0xe7):_0x17490d?_0x158ba2(0xe1):undefined,_0x59d7a8=_0x4d5582[_0x158ba2(0xd3)]||DEFAULT_CONFIG_VALUES[_0x158ba2(0xd3)],_0x9f2dc1=undefined,_0x110b42=_0x380686[_0x158ba2(0xd7)]||env(_0x158ba2(0xe5))||_0x4d5582[_0x158ba2(0xd7)],_0x3ba33f=normalizeLegacyOutputFormat(_0x110b42),_0xfd704d=env(_0x158ba2(0x10b))||_0x4d5582[_0x158ba2(0xd8)],_0x2926bd=_0xfd704d?Number(_0xfd704d)||undefined:undefined,_0x2e831d=_0x4d5582[_0x158ba2(0xe6)]||_0x4d5582[_0x158ba2(0xcd)],_0x2913bf=_0x2e831d==='read'||_0x2e831d===_0x158ba2(0xea)||_0x2e831d===_0x158ba2(0xf8)?_0x2e831d:DEFAULT_CONFIG_VALUES[_0x158ba2(0xe6)],_0x306f54=env(_0x158ba2(0x109)),_0x2def58=_0x306f54==='1'||_0x306f54==='true';return{'appCode':typeof _0x1593ea===_0x158ba2(0x10d)&&_0x1593ea[_0x158ba2(0xf7)]()?_0x1593ea['trim']():undefined,'appCodeSource':_0x209d91,'env':_0x3da086,'locale':_0x59d7a8,'cookie':_0x9f2dc1,'accessKey':_0x40540f,'format':_0x3ba33f,'pageSize':_0x2926bd,'riskLevel':_0x2913bf,'verbose':_0x2def58,'defaultApp':_0x17a17a,'currentApp':typeof _0x3e3e0b==='string'?_0x3e3e0b:undefined,'raw':_0x4d5582};}function env(_0x4e1265){return productEnv(_0x4e1265);}async function buildAuth(_0x3ec2a7){const _0x530c40=a99_0x17b8e6,_0x2c4b96='',_0x1539c2=!!_0x3ec2a7[_0x530c40(0xcf)];return{'cookie':_0x2c4b96,'isLoggedIn':_0x1539c2,async 'getOrLogin'(){if(_0x1539c2)return _0x2c4b96;throw CliErrors['authRequired']();}};}