@lovrabet/lovrabet-cli 2.2.4-beta.1 → 2.2.4-beta.2

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 (160) 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.js +1 -1
  85. package/lib/commands/user-account/bind.js +1 -1
  86. package/lib/commands/user-account/index.js +1 -1
  87. package/lib/commands/workspace/index.js +1 -1
  88. package/lib/config/schema.js +1 -1
  89. package/lib/constant/app.js +1 -1
  90. package/lib/constant/auth-mode.js +1 -1
  91. package/lib/constant/cli.js +1 -1
  92. package/lib/constant/defaults.js +1 -1
  93. package/lib/constant/distribution.js +1 -1
  94. package/lib/constant/domain.js +1 -1
  95. package/lib/constant/env.js +1 -1
  96. package/lib/constant/output.js +1 -1
  97. package/lib/constant/product.js +1 -1
  98. package/lib/constant/risk.js +1 -1
  99. package/lib/constant/url.js +1 -1
  100. package/lib/context.js +1 -1
  101. package/lib/core/api-client.js +1 -1
  102. package/lib/core/db-resolver.js +1 -1
  103. package/lib/core/sdk-client.js +1 -1
  104. package/lib/errors.js +1 -1
  105. package/lib/framework/build-all-flags.js +1 -1
  106. package/lib/framework/dryrun.js +1 -1
  107. package/lib/framework/flags.js +1 -1
  108. package/lib/framework/help.js +1 -1
  109. package/lib/framework/index.js +1 -1
  110. package/lib/framework/output.js +1 -1
  111. package/lib/framework/preparse.js +1 -1
  112. package/lib/framework/rate-limit.js +1 -1
  113. package/lib/framework/raw-flags.js +1 -1
  114. package/lib/framework/response.js +1 -1
  115. package/lib/framework/runner-confirmation.js +1 -1
  116. package/lib/framework/runner-error.js +1 -1
  117. package/lib/framework/runner.js +1 -1
  118. package/lib/framework/schema-export.js +1 -1
  119. package/lib/framework/service-order.js +1 -1
  120. package/lib/framework/types.js +1 -1
  121. package/lib/generated/build-info.d.ts +4 -4
  122. package/lib/generated/build-info.js +1 -1
  123. package/lib/help.js +1 -1
  124. package/lib/postinstall.js +1 -1
  125. package/lib/runtime/confirmation.js +1 -1
  126. package/lib/runtime/event.js +1 -1
  127. package/lib/runtime/index.js +1 -1
  128. package/lib/runtime/queue.js +1 -1
  129. package/lib/runtime/resolve.js +1 -1
  130. package/lib/skills/builtin-skill.js +1 -1
  131. package/lib/skills/npx-skills-add.js +1 -1
  132. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  133. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  134. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  135. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  136. package/lib/skills/runtime-skill-sync/links.js +1 -1
  137. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  138. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  139. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  140. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  141. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  142. package/lib/skills/runtime-skill-sync/push.js +1 -1
  143. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  144. package/lib/skills/runtime-skill-sync/types.d.ts +1 -0
  145. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  146. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  147. package/lib/skills/runtime-skill-sync.js +1 -1
  148. package/lib/skills/skill-presence.js +1 -1
  149. package/lib/utils/apply-jq-filter.js +1 -1
  150. package/lib/utils/logger.js +1 -1
  151. package/lib/utils/lossless-json.js +1 -1
  152. package/lib/utils/params.js +1 -1
  153. package/lib/utils/platform.js +1 -1
  154. package/lib/utils/update-notice.js +1 -1
  155. package/lib/utils/version.js +1 -1
  156. package/lib/utils/write-cli-side-channel.js +1 -1
  157. package/package.json +1 -1
  158. package/skills/lovrabet/SKILL.md +2 -2
  159. package/skills/lovrabet/references/lovrabet-skill-authoring.md +5 -4
  160. 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_0x16f720=a83_0x4f77;(function(_0xdb013c,_0x1110d9){const _0xc390d7=a83_0x4f77,_0xa97f9c=_0xdb013c();while(!![]){try{const _0x4b1684=-parseInt(_0xc390d7(0xdf))/0x1*(-parseInt(_0xc390d7(0xb6))/0x2)+parseInt(_0xc390d7(0xc8))/0x3+-parseInt(_0xc390d7(0xaf))/0x4*(-parseInt(_0xc390d7(0xbf))/0x5)+-parseInt(_0xc390d7(0xc3))/0x6+parseInt(_0xc390d7(0xd8))/0x7+-parseInt(_0xc390d7(0xbd))/0x8+parseInt(_0xc390d7(0xc5))/0x9*(-parseInt(_0xc390d7(0xcb))/0xa);if(_0x4b1684===_0x1110d9)break;else _0xa97f9c['push'](_0xa97f9c['shift']());}catch(_0x58c3f2){_0xa97f9c['push'](_0xa97f9c['shift']());}}}(a83_0x1969,0x84257));import{spawnSync}from'node:child_process';import a83_0x578d75 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';function a83_0x1969(){const _0x44ac5b=['find','/-/package/','latest','Updating\x20','validation','Already\x20on\x20requested\x20version\x20(v','383464ADUbqj','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20','Unable\x20to\x20resolve\x20','current','Invalid\x20version:\x20','boolean','3644888tPoqSr','\x20\x20CLI\x20Built-in\x20Skill\x20','10nOufaz','stderr','string','\x20->\x20','2847702iibAJJ','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','117NVqcWn','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','object','1520676XdfukR','trim','\x20\x20Run\x20manually:\x20','884960CidekU','Update\x20failed:\x20','state','unknown','log','message','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','\x20is\x20current.','read','map','repairCommand','error','status','4716173UABZHp','fromEntries',']:\x20','\x20CLI','run','skillVersion','filter','4aESFhh','beta','str','stdout','pipe','timeout','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','inherit','\x20version\x20from\x20npm.','exit\x20','warn','bool','version','Checking\x20CLI\x20Built-in\x20Skill...','reason','toString','Checking\x20npm\x20dist-tags...','update','Install\x20a\x20specific\x20CLI\x20version','source','nonInteractive','1348776mjihhV'];a83_0x1969=function(){return _0x44ac5b;};return a83_0x1969();}import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':a83_0x16f720(0xb2),'type':'boolean','description':a83_0x16f720(0xa0),'default':![]},{'name':'beta','type':a83_0x16f720(0xbc),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':a83_0x16f720(0xa6),'type':'string','description':a83_0x16f720(0xac)}];function getRequestedVersion(_0xd97d2d){const _0x1209d7=a83_0x16f720,_0x40ac90=_0xd97d2d[_0x1209d7(0x9c)](_0x1209d7(0xa6))['trim']();if(_0x40ac90)return _0x40ac90;return String(_0xd97d2d['args']?.[0x0]??'')[_0x1209d7(0xc9)]();}async function validateUpdateFlags(_0x5270dc){const _0x59be0b=a83_0x16f720,_0x301957=getRequestedVersion(_0x5270dc),_0x2b6662=[_0x5270dc[_0x59be0b(0xa5)](_0x59be0b(0xb2))?_0x59be0b(0xb2):'',_0x5270dc[_0x59be0b(0xa5)](_0x59be0b(0x9b))?_0x59be0b(0x9b):'',_0x301957?'version':'']['filter'](Boolean);if(_0x2b6662['length']>0x1)throw CliErrors[_0x59be0b(0xb4)]('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.',_0x59be0b(0xb7));if(_0x301957&&!a83_0x578d75['valid'](_0x301957))throw CliErrors[_0x59be0b(0xb4)](_0x59be0b(0xbb)+_0x301957,_0x59be0b(0xd1));}async function fetchNpmDistTags(){const _0x1a5d47=a83_0x16f720;try{const _0xbfb576=NPM_REGISTRY_BASE_URL+_0x1a5d47(0xb1)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x47b965=await fetch(_0xbfb576,{'signal':AbortSignal[_0x1a5d47(0x9f)](0x2710)});if(!_0x47b965['ok'])return null;const _0x13635e=await _0x47b965['json']();if(!_0x13635e||typeof _0x13635e!==_0x1a5d47(0xc7))return null;return Object[_0x1a5d47(0xd9)](Object['entries'](_0x13635e)[_0x1a5d47(0xde)](([,_0x3d0205])=>typeof _0x3d0205===_0x1a5d47(0xc1)&&_0x3d0205[_0x1a5d47(0xc9)]())[_0x1a5d47(0xd4)](([_0x814e77,_0xf9d1cb])=>[_0x814e77,String(_0xf9d1cb)[_0x1a5d47(0xc9)]()]));}catch{return null;}}async function resolveTargetVersion(_0x5f5c11){const _0x350ad6=a83_0x16f720,_0xb499ea=getRequestedVersion(_0x5f5c11);if(_0xb499ea)return{'version':_0xb499ea,'source':'version'};const _0x53de07=_0x5f5c11[_0x350ad6(0xa5)]('beta')?'beta':_0x350ad6(0xb2),_0xb2910c=await fetchNpmDistTags(),_0xfbcec6=_0xb2910c?.[_0x53de07];if(!_0xfbcec6)return null;return{'version':_0xfbcec6,'source':_0x53de07};}function shouldInstallTarget(_0x21f3bb,_0x4b39b8){const _0x4b3e03=a83_0x16f720;if(_0x4b39b8[_0x4b3e03(0xad)]===_0x4b3e03(0xa6)||_0x4b39b8[_0x4b3e03(0xad)]===_0x4b3e03(0x9b))return!a83_0x578d75['eq'](_0x21f3bb,_0x4b39b8[_0x4b3e03(0xa6)]);return a83_0x578d75['lt'](_0x21f3bb,_0x4b39b8[_0x4b3e03(0xa6)]);}function installCliPackage(_0x5f1877,_0x23c992){const _0x1bd7cc=a83_0x16f720,_0x2ce12b=resolveNpmBin('npm'),_0x4484fd=['install','-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x5f1877];console[_0x1bd7cc(0xcf)]('*\x20'+[_0x2ce12b,..._0x4484fd]['join']('\x20'));const _0x516541=spawnSync(_0x2ce12b,_0x4484fd,{'cwd':process['cwd'](),'stdio':_0x23c992?'pipe':'inherit','env':process.env,'shell':![]});if(_0x516541[_0x1bd7cc(0xd7)]===0x0)return{'ok':!![]};let _0x20104e=_0x516541['error']?.[_0x1bd7cc(0xd0)]||_0x1bd7cc(0xa3)+(_0x516541['status']??'unknown');if(_0x23c992){const _0x8a97a9=_0x516541[_0x1bd7cc(0xc0)]?_0x516541[_0x1bd7cc(0xc0)][_0x1bd7cc(0xa9)]()['trim']():'',_0x5f506a=_0x516541[_0x1bd7cc(0x9d)]?_0x516541[_0x1bd7cc(0x9d)][_0x1bd7cc(0xa9)]()[_0x1bd7cc(0xc9)]():'';if(_0x8a97a9)_0x20104e=_0x8a97a9;else{if(_0x5f506a)_0x20104e=_0x5f506a;}}return{'ok':![],'error':_0x20104e};}function a83_0x4f77(_0x29fceb,_0x206ebc){_0x29fceb=_0x29fceb-0x9b;const _0x19696e=a83_0x1969();let _0x4f7737=_0x19696e[_0x29fceb];return _0x4f7737;}function repairCurrentBuiltinSkill(_0x235f61){const _0x239c38=a83_0x16f720;console[_0x239c38(0xcf)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x319850=installBuiltinSkill({'stdio':_0x235f61?_0x239c38(0x9e):_0x239c38(0xa1)});if(_0x319850['ok'])return console[_0x239c38(0xcf)](_0x239c38(0xbe)+_0x319850[_0x239c38(0xdd)]+'\x20is\x20current.'),!![];return console[_0x239c38(0xa4)]('\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20['+(_0x319850['code']||'INSTALL_FAILED')+_0x239c38(0xda)+(_0x319850[_0x239c38(0xd6)]||'unknown')),console[_0x239c38(0xcf)]('\x20\x20Run\x20manually:\x20'+_0x319850['repairCommand']),![];}function verifyUpdatedBuiltinSkill(_0x195e8a){const _0x5c1f00=a83_0x16f720;console['log'](_0x5c1f00(0xa7));const _0x25d9ed=inspectInstalledBuiltinSkillVersion(_0x195e8a);if(_0x25d9ed[_0x5c1f00(0xcd)]===_0x5c1f00(0xba))return console[_0x5c1f00(0xcf)](_0x5c1f00(0xbe)+_0x195e8a+_0x5c1f00(0xd2)),!![];console[_0x5c1f00(0xa4)](_0x5c1f00(0xb8)+_0x25d9ed[_0x5c1f00(0xcd)]+'.');if(_0x25d9ed[_0x5c1f00(0xa8)])console['warn']('\x20\x20'+_0x25d9ed[_0x5c1f00(0xa8)]);return console['log'](_0x5c1f00(0xca)+_0x25d9ed[_0x5c1f00(0xd5)]),![];}async function execute(_0x210366){const _0x14f51f=a83_0x16f720;await validateUpdateFlags(_0x210366);const _0x2b0be7=getCliVersion();console['log']('Current\x20version:\x20'+_0x2b0be7),console[_0x14f51f(0xcf)](_0x14f51f(0xaa));const _0x30cf48=await resolveTargetVersion(_0x210366);if(!_0x30cf48){const _0x4ebfae=_0x210366[_0x14f51f(0xa5)]('beta')?_0x14f51f(0x9b):_0x14f51f(0xb2),_0x58e794=_0x14f51f(0xb9)+_0x4ebfae+_0x14f51f(0xa2);return console[_0x14f51f(0xa4)](_0x58e794),console[_0x14f51f(0xcf)](_0x14f51f(0xc6)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4ebfae),{'ok':![]};}const _0x5e357c=[_0x2b0be7,_0x30cf48[_0x14f51f(0xa6)]][_0x14f51f(0xb0)](_0x26094b=>!a83_0x578d75['valid'](_0x26094b));if(_0x5e357c)return console['warn']('Version\x20comparison\x20failed:\x20'+_0x5e357c+'.'),{'ok':![]};if(!shouldInstallTarget(_0x2b0be7,_0x30cf48)){const _0x3bd1f0=_0x30cf48[_0x14f51f(0xad)]===_0x14f51f(0xa6)?_0x14f51f(0xb5)+_0x30cf48[_0x14f51f(0xa6)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x30cf48['version']+').';return console[_0x14f51f(0xcf)](_0x3bd1f0),{'ok':repairCurrentBuiltinSkill(_0x210366[_0x14f51f(0xae)])};}console['log'](_0x14f51f(0xb3)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x2b0be7+_0x14f51f(0xc2)+_0x30cf48['version']);const _0x34c1dc=installCliPackage(_0x30cf48[_0x14f51f(0xa6)],_0x210366[_0x14f51f(0xae)]);if(!_0x34c1dc['ok']){const _0x3da7ec=_0x14f51f(0xcc)+(_0x34c1dc[_0x14f51f(0xd6)]||_0x14f51f(0xce));return console['error'](_0x3da7ec),console[_0x14f51f(0xcf)]('\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x30cf48[_0x14f51f(0xa6)]),{'ok':![]};}return console[_0x14f51f(0xcf)]('Updated\x20to\x20v'+_0x30cf48[_0x14f51f(0xa6)]+'.'),console[_0x14f51f(0xcf)](_0x14f51f(0xc4)),{'ok':verifyUpdatedBuiltinSkill(_0x30cf48['version'])};}export const updateDefinition={'service':a83_0x16f720(0xab),'command':a83_0x16f720(0xdc),'description':'从\x20npm\x20更新\x20'+CLI_BIN_NAME+a83_0x16f720(0xdb),'risk':a83_0x16f720(0xd3),'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_0x5b2907=a84_0x3a14;(function(_0x28195c,_0x20b552){const _0x366084=a84_0x3a14,_0x13926=_0x28195c();while(!![]){try{const _0x27eaca=parseInt(_0x366084(0x19f))/0x1*(parseInt(_0x366084(0x185))/0x2)+-parseInt(_0x366084(0x18c))/0x3*(-parseInt(_0x366084(0x19a))/0x4)+parseInt(_0x366084(0x19b))/0x5*(parseInt(_0x366084(0x1a1))/0x6)+parseInt(_0x366084(0x196))/0x7+parseInt(_0x366084(0x189))/0x8+-parseInt(_0x366084(0x190))/0x9+-parseInt(_0x366084(0x194))/0xa;if(_0x27eaca===_0x20b552)break;else _0x13926['push'](_0x13926['shift']());}catch(_0xaffea2){_0x13926['push'](_0x13926['shift']());}}}(a84_0xd78e,0xf0ffc));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';function a84_0x3a14(_0xe826a3,_0xf77788){_0xe826a3=_0xe826a3-0x185;const _0xd78e7f=a84_0xd78e();let _0x3a14ac=_0xd78e7f[_0xe826a3];return _0x3a14ac;}import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING=a84_0x5b2907(0x188),SUPPORTED_PROVIDERS=[a84_0x5b2907(0x18b)];function readBindingInput(_0x10d67d){const _0x216f36=a84_0x5b2907,_0x1522aa=_0x10d67d[_0x216f36(0x18e)](_0x216f36(0x19d))['trim']()[_0x216f36(0x1a3)]();if(!SUPPORTED_PROVIDERS['includes'](_0x1522aa))throw CliErrors[_0x216f36(0x1a0)](_0x216f36(0x197)+(_0x1522aa||_0x216f36(0x18f))+'.',_0x216f36(0x19e)+SUPPORTED_PROVIDERS[_0x216f36(0x186)](',\x20')+'.');const _0x511670=_0x10d67d[_0x216f36(0x18e)](_0x216f36(0x192))[_0x216f36(0x195)]();if(!_0x511670)throw CliErrors[_0x216f36(0x1a0)](_0x216f36(0x18d),'Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.');return{'provider':_0x1522aa,'accountId':_0x511670};}function buildBindingData(_0x5ebec,_0xbabfc4,_0x52d8f6){return{'operation':'bind','selector':{'provider':_0x5ebec,'accountId':_0xbabfc4},'before':null,'after':{'provider':_0x5ebec,'accountId':_0xbabfc4,'bound':!![]},'dryRun':_0x52d8f6,'warnings':[CURRENT_BINDING_WARNING]};}function a84_0xd78e(){const _0x11f8ea=['Unsupported\x20provider:\x20','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','bind','88zCQDEp','5XeIGne','string','provider','Pass\x20one\x20of:\x20','60141WMkYUg','validation','1746888RyZPfQ','External\x20account\x20binding\x20was\x20not\x20confirmed.','toLowerCase','6ueazxA','join','Bound\x20current\x20user\x20to\x20external\x20provider\x20account.','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','3902440HRFfQJ','write','dingtalk','119967TYEaXv','--account-id\x20cannot\x20be\x20empty.','str','(empty)','5259348xllYIv','user-account','account-id','apiError','10382960YETaHV','trim','5394662HgGYKE'];a84_0xd78e=function(){return _0x11f8ea;};return a84_0xd78e();}export const bindUserAccount={'service':a84_0x5b2907(0x191),'command':a84_0x5b2907(0x199),'description':a84_0x5b2907(0x198),'risk':a84_0x5b2907(0x18a),'confirmationDescription':'将当前\x20AccessKey\x20所属的平台用户绑定到指定协同生态外部账号;已有同\x20provider\x20绑定可能被替换。','requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':a84_0x5b2907(0x19d),'type':a84_0x5b2907(0x19c),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':'External\x20account\x20provider'},{'name':a84_0x5b2907(0x192),'type':a84_0x5b2907(0x19c),'required':!![],'description':'External\x20account\x20ID\x20for\x20the\x20selected\x20provider'}],async 'validate'(_0x169251){readBindingInput(_0x169251);},async 'dryRun'(_0x3b9c47){const {provider:_0x51d289,accountId:_0x99ee18}=readBindingInput(_0x3b9c47);return{...buildBindingData(_0x51d289,_0x99ee18,!![]),'method':'POST','url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x51d289,'accountId':_0x99ee18}};},async 'execute'(_0x35d132){const _0x4cb1f4=a84_0x5b2907,{provider:_0x1d8690,accountId:_0x20fcc0}=readBindingInput(_0x35d132),_0x56d90e=await bindExternalUserAccount(_0x1d8690,_0x20fcc0);if(_0x56d90e!==!![])throw CliErrors[_0x4cb1f4(0x193)](_0x4cb1f4(0x1a2),'Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.');return{'ok':!![],'data':buildBindingData(_0x1d8690,_0x20fcc0,![]),'message':_0x4cb1f4(0x187)};}};
@@ -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(_0x591a77,_0x179efc){const _0x3e485e=a85_0x5218,_0x3be2fb=_0x591a77();while(!![]){try{const _0x33e71a=-parseInt(_0x3e485e(0x8d))/0x1+parseInt(_0x3e485e(0x8c))/0x2+parseInt(_0x3e485e(0x8b))/0x3+parseInt(_0x3e485e(0x90))/0x4+parseInt(_0x3e485e(0x8f))/0x5*(-parseInt(_0x3e485e(0x91))/0x6)+parseInt(_0x3e485e(0x92))/0x7+-parseInt(_0x3e485e(0x8e))/0x8;if(_0x33e71a===_0x179efc)break;else _0x3be2fb['push'](_0x3be2fb['shift']());}catch(_0x181dc8){_0x3be2fb['push'](_0x3be2fb['shift']());}}}(a85_0x31d3,0xf25fb));function a85_0x5218(_0x393deb,_0x2a8bc4){_0x393deb=_0x393deb-0x8b;const _0x31d3d9=a85_0x31d3();let _0x5218d0=_0x31d3d9[_0x393deb];return _0x5218d0;}function a85_0x31d3(){const _0x561933=['4326200vTPeUb','3655WMHjRT','5410968MgQtzR','14304YJvfVX','2531522SgKVMd','3873684TzXjhp','1780002RAkZoH','619375KmimWl'];a85_0x31d3=function(){return _0x561933;};return a85_0x31d3();}import{bindUserAccount}from'../../commands/user-account/bind.js';export const userAccountDefinitions=[bindUserAccount];
@@ -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_0x10e23c=a86_0x4e50;(function(_0x5c2643,_0x13f459){const _0x23775f=a86_0x4e50,_0x1910c7=_0x5c2643();while(!![]){try{const _0x4efb16=-parseInt(_0x23775f(0x18e))/0x1+-parseInt(_0x23775f(0x1b4))/0x2+parseInt(_0x23775f(0x19c))/0x3+parseInt(_0x23775f(0x1a7))/0x4*(parseInt(_0x23775f(0x1c7))/0x5)+parseInt(_0x23775f(0x19b))/0x6*(parseInt(_0x23775f(0x1b8))/0x7)+-parseInt(_0x23775f(0x1a1))/0x8*(parseInt(_0x23775f(0x1b2))/0x9)+parseInt(_0x23775f(0x1bd))/0xa;if(_0x4efb16===_0x13f459)break;else _0x1910c7['push'](_0x1910c7['shift']());}catch(_0x3a0ed5){_0x1910c7['push'](_0x1910c7['shift']());}}}(a86_0x1555,0x45c28));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':'app','type':a86_0x10e23c(0x191),'description':a86_0x10e23c(0x19f)},{'name':a86_0x10e23c(0x1b5),'type':a86_0x10e23c(0x191),'description':a86_0x10e23c(0x1c6)},{'name':a86_0x10e23c(0x1c0),'type':a86_0x10e23c(0x191),'description':a86_0x10e23c(0x1a6),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x4ab276,_0x3a5811){const _0x2ed279=a86_0x10e23c,_0x3831b3=_0x4ab276['str'](_0x2ed279(0x1c8))['trim'](),_0x4d76f0=_0x4ab276[_0x2ed279(0x1af)](_0x2ed279(0x1b5))[_0x2ed279(0x1ca)](),_0x526531=_0x4ab276[_0x2ed279(0x1af)](_0x2ed279(0x1c0))[_0x2ed279(0x1ca)](),_0x226f45=resolveWorkspaceEnv(_0x526531||_0x4ab276[_0x2ed279(0x1be)]||DEFAULT_CONFIG_VALUES['env']);if(!_0x3831b3&&!_0x4d76f0)throw CliErrors['validation'](_0x2ed279(0x190),'Usage:\x20'+CLI_BIN_NAME+'\x20workspace\x20'+_0x3a5811+_0x2ed279(0x1c3)+CLI_BIN_NAME+_0x2ed279(0x1b0)+_0x3a5811+_0x2ed279(0x1a4));if(_0x3831b3&&_0x4d76f0)throw CliErrors['validation'](_0x2ed279(0x197),_0x2ed279(0x1bb));const _0x240753=resolveWriteConfigPath('project'),_0xcc7609=readConfigFile(_0x240753);assertWorkspaceCommandState(_0x3a5811,_0xcc7609);const _0x25b26e=_0x4d76f0||await resolveRemoteAppCode({'command':_0x3a5811,'appName':_0x3831b3,'env':_0x226f45,'accessKey':_0x4ab276['accessKey']});return writeWorkspaceConfig({'command':_0x3a5811,'appName':_0x3831b3,'appcode':_0x25b26e,'env':_0x226f45,'shouldWriteEnv':!!_0x526531,'accessKey':_0x4ab276['accessKey']},_0x240753,_0xcc7609),{'ok':!![],'data':{'configPath':_0x240753,'app':_0x3831b3||null,'appcode':_0x25b26e,'env':_0x526531?_0x226f45:null,'accessKeyWritten':![],'command':_0x2ed279(0x1cc)+_0x3a5811},'message':buildWorkspaceMessage(_0x240753,_0x3831b3,_0x25b26e,_0x526531?_0x226f45:undefined)};}async function resolveRemoteAppCode(_0x34ea94){const _0xa54414=a86_0x10e23c;if(!_0x34ea94[_0xa54414(0x1cf)])throw CliErrors[_0xa54414(0x1cb)]('Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20'+CLI_BIN_NAME+_0xa54414(0x1b0)+_0x34ea94[_0xa54414(0x1a0)]+'.');const {setActiveAK:_0xd023af}=await import(_0xa54414(0x1a3)),{getRemoteAppList:_0x2888d0}=await import(_0xa54414(0x1ba));_0xd023af(_0x34ea94[_0xa54414(0x1cf)]);const _0x453199=await _0x2888d0({'env':_0x34ea94[_0xa54414(0x1c0)],'accessKey':_0x34ea94[_0xa54414(0x1cf)],'noCache':![]}),_0x4ebb03=findAppByName(_0x453199[_0xa54414(0x1a9)],_0x34ea94[_0xa54414(0x1b1)]);if(_0x4ebb03&&!isRuntimeAccessibleApp(_0x4ebb03))throw runtimeInaccessibleAppError(_0x4ebb03,'\x22'+_0x34ea94[_0xa54414(0x1b1)]+'\x22');const _0x34b9be=_0x4ebb03?.['appCode']?.[_0xa54414(0x1ca)]();if(_0x34b9be)return _0x34b9be;const _0x2d630d=_0x453199['items'][_0xa54414(0x1aa)](_0x54b766=>_0x54b766[_0xa54414(0x1b1)])[_0xa54414(0x1ad)](Boolean),_0x2f65d9=_0x2d630d['length']?'Available\x20apps:\x20'+Array[_0xa54414(0x1c5)](new Set(_0x2d630d))[_0xa54414(0x1bc)](',\x20')+'.':_0xa54414(0x196)+CLI_BIN_NAME+_0xa54414(0x1a8);throw CliErrors[_0xa54414(0x19e)]('App\x20\x22'+_0x34ea94['appName']+_0xa54414(0x192),_0x2f65d9);}function writeWorkspaceConfig(_0x3daff9,_0x53a5a1,_0x16a2bd){const _0x11a0a9=a86_0x10e23c;_0x3daff9[_0x11a0a9(0x1b6)]&&(_0x16a2bd[_0x11a0a9(0x1c0)]=_0x3daff9[_0x11a0a9(0x1c0)]);if(_0x3daff9['appName']){const _0x2c7707=isRecord(_0x16a2bd[_0x11a0a9(0x1ac)])?{..._0x16a2bd[_0x11a0a9(0x1ac)]}:{},_0x292dcd=isRecord(_0x2c7707[_0x3daff9[_0x11a0a9(0x1b1)]])?_0x2c7707[_0x3daff9['appName']]:{};return _0x2c7707[_0x3daff9[_0x11a0a9(0x1b1)]]={..._0x292dcd,'appcode':_0x3daff9[_0x11a0a9(0x1b5)]},_0x16a2bd[_0x11a0a9(0x1ac)]=_0x2c7707,_0x16a2bd[_0x11a0a9(0x193)]=_0x3daff9[_0x11a0a9(0x1b1)],delete _0x16a2bd[_0x11a0a9(0x1b5)],delete _0x16a2bd['app'],writeAndReturn(_0x53a5a1,_0x16a2bd);}return _0x16a2bd[_0x11a0a9(0x1b5)]=_0x3daff9[_0x11a0a9(0x1b5)],delete _0x16a2bd[_0x11a0a9(0x193)],delete _0x16a2bd[_0x11a0a9(0x1c8)],writeAndReturn(_0x53a5a1,_0x16a2bd);}function writeAndReturn(_0x5c85e0,_0x4cc569){return writeConfigFile(_0x5c85e0,_0x4cc569),_0x5c85e0;}function resolveWorkspaceEnv(_0x1aee79){const _0xfbe54=a86_0x10e23c;if(RUNTIME_ENV_VALUES[_0xfbe54(0x1bf)](_0x1aee79))return _0x1aee79;throw CliErrors['validation'](_0xfbe54(0x1ab)+_0x1aee79+_0xfbe54(0x1b7)+RUNTIME_ENV_VALUES[_0xfbe54(0x1bc)](',\x20'));}function buildWorkspaceMessage(_0x40ddc2,_0x56e9a1,_0x484789,_0x4b6219){const _0x2e49f1=a86_0x10e23c,_0x17ed5d=_0x56e9a1?_0x56e9a1+'\x20('+_0x484789+')':_0x484789,_0x33f96b=_0x4b6219?_0x2e49f1(0x199)+_0x4b6219:'';return _0x2e49f1(0x1c9)+_0x40ddc2+_0x2e49f1(0x18f)+_0x17ed5d+_0x33f96b+_0x2e49f1(0x198);}function isRecord(_0x22bdd3){const _0x4c74e6=a86_0x10e23c;return typeof _0x22bdd3===_0x4c74e6(0x1a5)&&_0x22bdd3!==null&&!Array[_0x4c74e6(0x1c4)](_0x22bdd3);}function hasWorkspaceAppBinding(_0x26522a){const _0xad7a66=a86_0x10e23c;if(typeof _0x26522a[_0xad7a66(0x1b5)]===_0xad7a66(0x191)&&_0x26522a[_0xad7a66(0x1b5)]['trim']()['length']>0x0)return!![];if(typeof _0x26522a[_0xad7a66(0x193)]!==_0xad7a66(0x191)||!_0x26522a[_0xad7a66(0x193)][_0xad7a66(0x1ca)]())return![];if(!isRecord(_0x26522a[_0xad7a66(0x1ac)]))return![];const _0x56e791=_0x26522a[_0xad7a66(0x1ac)][_0x26522a[_0xad7a66(0x193)]['trim']()];return isRecord(_0x56e791)&&typeof _0x56e791[_0xad7a66(0x1b5)]===_0xad7a66(0x191)&&_0x56e791[_0xad7a66(0x1b5)][_0xad7a66(0x1ca)]()['length']>0x0;}function assertWorkspaceCommandState(_0x277da3,_0x21c50a){const _0x3651a5=a86_0x10e23c,_0x127290=hasWorkspaceAppBinding(_0x21c50a);if(_0x277da3===_0x3651a5(0x1ce)&&_0x127290)throw CliErrors[_0x3651a5(0x19e)](_0x3651a5(0x1b9),_0x3651a5(0x1a2)+CLI_BIN_NAME+_0x3651a5(0x195)+CLI_BIN_NAME+_0x3651a5(0x194));if(_0x277da3==='use'&&!_0x127290)throw CliErrors[_0x3651a5(0x19e)](_0x3651a5(0x19d),_0x3651a5(0x196)+CLI_BIN_NAME+'\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`'+CLI_BIN_NAME+_0x3651a5(0x1b3));}function a86_0x4e50(_0x58f56b,_0x52e01f){_0x58f56b=_0x58f56b-0x18e;const _0x155587=a86_0x1555();let _0x4e500b=_0x155587[_0x58f56b];return _0x4e500b;}function makeWorkspaceCommand(_0x470db5){const _0x3f404d=a86_0x10e23c;return{'service':_0x3f404d(0x19a),'command':_0x470db5,'description':_0x470db5===_0x3f404d(0x1ce)?'为尚未绑定应用的当前工作目录初始化应用上下文':_0x3f404d(0x1ae),'risk':_0x3f404d(0x1c2),'confirmationDescription':_0x470db5===_0x3f404d(0x1ce)?_0x3f404d(0x1c1):'将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x9d6d03){return executeWorkspaceUse(_0x9d6d03,_0x470db5);}};}function a86_0x1555(){const _0x2d17e0=['将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','write','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','isArray','from','App\x20code\x20to\x20bind\x20directly','80PfCmgU','app','Workspace\x20configured.\x0aConfig\x20file:\x20','trim','authRequired','workspace\x20','use','init','accessKey','524448cmOIpB','\x0aDefault\x20app:\x20','Missing\x20workspace\x20app\x20selector.','string','\x22\x20not\x20found.','defaultApp','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','Run\x20`','Conflicting\x20workspace\x20app\x20selectors.','\x0aAccessKey:\x20not\x20written','\x0aEnv:\x20','workspace','6WZpMpo','789657bNmRmd','Workspace\x20app\x20context\x20is\x20not\x20initialized.','validation','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','command','14040zptzgd','Use\x20`','../../core/api-client.js','\x20--appcode\x20<code>\x20[--env\x20daily]','object','Target\x20environment','119452AlbPHy','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','items','map','Invalid\x20env\x20\x22','apps','filter','修改当前工作目录已有绑定的应用上下文','str','\x20workspace\x20','appName','1323rOSadV','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','233346JuBweQ','appcode','shouldWriteEnv','\x22.\x20Allowed:\x20','342440XGTTzw','Workspace\x20app\x20context\x20is\x20already\x20initialized.','../../commands/app/remote-source.js','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','join','3948950VSoFnd','envName','includes','env'];a86_0x1555=function(){return _0x2d17e0;};return a86_0x1555();}export const workspaceDefinitions=[makeWorkspaceCommand(a86_0x10e23c(0x1ce)),makeWorkspaceCommand(a86_0x10e23c(0x1cd))];
@@ -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_0x4c26ae=a87_0x4f04;(function(_0x4ea87b,_0x211f02){const _0x1fea30=a87_0x4f04,_0x246587=_0x4ea87b();while(!![]){try{const _0x100311=-parseInt(_0x1fea30(0xde))/0x1+-parseInt(_0x1fea30(0xe3))/0x2+parseInt(_0x1fea30(0xd2))/0x3+-parseInt(_0x1fea30(0xdd))/0x4+parseInt(_0x1fea30(0xdb))/0x5*(parseInt(_0x1fea30(0xce))/0x6)+parseInt(_0x1fea30(0xdf))/0x7+parseInt(_0x1fea30(0xd9))/0x8;if(_0x100311===_0x211f02)break;else _0x246587['push'](_0x246587['shift']());}catch(_0x6fda6b){_0x246587['push'](_0x246587['shift']());}}}(a87_0x225f,0x5f72e));function a87_0x4f04(_0x86db2c,_0xecf491){_0x86db2c=_0x86db2c-0xcc;const _0x225f48=a87_0x225f();let _0x4f0499=_0x225f48[_0x86db2c];return _0x4f0499;}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':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x4c26ae(0xd0)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x4c26ae(0xd6)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':'Override\x20runtime\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':'Override\x20SkillHub\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a87_0x4c26ae(0xd4),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a87_0x4c26ae(0xcc),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x4c26ae(0xd5)],'importable':!![]},'locale':{'description':a87_0x4c26ae(0xe0),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x4c26ae(0xda)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)[a87_0x4c26ae(0xe2)](([,_0x3aa36b])=>_0x3aa36b[a87_0x4c26ae(0xdc)])['map'](([_0x5cb21c])=>_0x5cb21c));export const CONFIG_ENUM_VALUES=Object[a87_0x4c26ae(0xd3)](Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x3822f6])=>_0x3822f6[a87_0x4c26ae(0xcf)])[a87_0x4c26ae(0xd7)](([_0x24a41a,_0x3f7a02])=>[_0x24a41a,[..._0x3f7a02[a87_0x4c26ae(0xcf)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a87_0x4c26ae(0xe1)](CONFIG_FIELD_SCHEMAS)[a87_0x4c26ae(0xe2)](([,_0x50ec46])=>_0x50ec46['importable'])['map'](([_0x369a7a])=>_0x369a7a);export function getConfigFieldSchema(_0x5e591e){return CONFIG_FIELD_SCHEMAS[_0x5e591e];}export function getConfigEnumValues(_0x25da70){return getConfigFieldSchema(_0x25da70)?.['enumValues'];}export function getConfigDefaultValue(_0x99480f){const _0xc90048=a87_0x4c26ae;return getConfigFieldSchema(_0x99480f)?.[_0xc90048(0xcd)];}export function isTopLevelConfigKey(_0x334fcb){const _0x573041=a87_0x4c26ae;return TOP_LEVEL_CONFIG_KEYS[_0x573041(0xd8)](_0x334fcb);}export function isLegacyCompatConfigKey(_0x410cc8){return getConfigFieldSchema(_0x410cc8)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x41d1b3){const _0x537092=a87_0x4c26ae;return[..._0x41d1b3][_0x537092(0xe4)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}function a87_0x225f(){const _0x357dbc=['276maBqqh','enumValues','env',';\x20local\x20alias:\x20apps.<alias>.appcode','1143393zjSTsD','fromEntries','Access\x20key\x20(client-ak\x20auth)','riskLevel','format','map','has','8804864uxnJmV','locale','27325HarJYD','cliSettableTopLevel','1533432TrwMyd','629324QuwVTm','1359267YmaOGz','Locale','entries','filter','1047340veisdA','join','Risk\x20level','defaultValue'];a87_0x225f=function(){return _0x357dbc;};return a87_0x225f();}export function getConfigCommandKeyDescription(){const _0x26a234=a87_0x4c26ae;return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+_0x26a234(0xd1);}export function buildAppProfileListFields(_0x43b616){return{'env':_0x43b616,'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_0x559fff=a88_0x4648;function a88_0x4648(_0x16be80,_0x18af59){_0x16be80=_0x16be80-0xbe;const _0x55031c=a88_0x5503();let _0x46488d=_0x55031c[_0x16be80];return _0x46488d;}(function(_0x5518cc,_0x5d99da){const _0x273a69=a88_0x4648,_0x498685=_0x5518cc();while(!![]){try{const _0x4e80da=-parseInt(_0x273a69(0xca))/0x1+parseInt(_0x273a69(0xc6))/0x2*(-parseInt(_0x273a69(0xc3))/0x3)+-parseInt(_0x273a69(0xc7))/0x4+parseInt(_0x273a69(0xc5))/0x5+parseInt(_0x273a69(0xbf))/0x6*(parseInt(_0x273a69(0xcb))/0x7)+-parseInt(_0x273a69(0xc1))/0x8*(parseInt(_0x273a69(0xbe))/0x9)+parseInt(_0x273a69(0xc4))/0xa*(parseInt(_0x273a69(0xc9))/0xb);if(_0x4e80da===_0x5d99da)break;else _0x498685['push'](_0x498685['shift']());}catch(_0xde3791){_0x498685['push'](_0x498685['shift']());}}}(a88_0x5503,0x7cc60));export const APP_PUBLISH_STATUS={'Published':a88_0x559fff(0xc8),'Unpublished':a88_0x559fff(0xc2)};function a88_0x5503(){const _0x387c5c=['9ePawwi','1499028fTSRBT','Published','3871136QRgoHn','UNPUBLISH','87YWOWns','10xyPNeM','1604995Yiiwkw','20744vSAjiS','2500344SSwQKG','PUBLISHED','18613716SKehLm','841831XOBvEE','21MBzWlV'];a88_0x5503=function(){return _0x387c5c;};return a88_0x5503();}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a88_0x559fff(0xc0)];
@@ -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
+ function a89_0x3c57(_0x2f2a04,_0x37d6a9){_0x2f2a04=_0x2f2a04-0x113;const _0x36f392=a89_0x36f3();let _0x3c5742=_0x36f392[_0x2f2a04];return _0x3c5742;}function a89_0x36f3(){const _0x34c49d=['4483736WtaWMF','1734042evzuTb','468594BKlzDD','813218rEWfrv','1597790zNYcmz','48Rjfwln','818IhpEDn','170301wdYdqm','ClientAk','42MbAqbv','client-ak'];a89_0x36f3=function(){return _0x34c49d;};return a89_0x36f3();}const a89_0x27bf22=a89_0x3c57;(function(_0x6d57f7,_0x5c8ef3){const _0x4df8fb=a89_0x3c57,_0x55874a=_0x6d57f7();while(!![]){try{const _0x3b4617=-parseInt(_0x4df8fb(0x11d))/0x1*(-parseInt(_0x4df8fb(0x11a))/0x2)+parseInt(_0x4df8fb(0x11b))/0x3*(-parseInt(_0x4df8fb(0x119))/0x4)+parseInt(_0x4df8fb(0x118))/0x5+parseInt(_0x4df8fb(0x115))/0x6+-parseInt(_0x4df8fb(0x117))/0x7+parseInt(_0x4df8fb(0x114))/0x8+parseInt(_0x4df8fb(0x116))/0x9;if(_0x3b4617===_0x5c8ef3)break;else _0x55874a['push'](_0x55874a['shift']());}catch(_0x2374dd){_0x55874a['push'](_0x55874a['shift']());}}}(a89_0x36f3,0x6ba42));export const AUTH_MODE={'ClientAk':a89_0x27bf22(0x113)};export function isAuthMode(_0x58b4ef){const _0xb21a0e=a89_0x27bf22;return _0x58b4ef===AUTH_MODE[_0xb21a0e(0x11c)];}
@@ -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
+ const a90_0x127162=a90_0x2462;(function(_0x25a8d0,_0x446dcf){const _0xc24519=a90_0x2462,_0x49c021=_0x25a8d0();while(!![]){try{const _0x43d092=parseInt(_0xc24519(0x110))/0x1+-parseInt(_0xc24519(0x104))/0x2+parseInt(_0xc24519(0x119))/0x3*(parseInt(_0xc24519(0xfc))/0x4)+-parseInt(_0xc24519(0x108))/0x5+-parseInt(_0xc24519(0xf0))/0x6*(parseInt(_0xc24519(0x10a))/0x7)+-parseInt(_0xc24519(0x109))/0x8*(parseInt(_0xc24519(0x114))/0x9)+parseInt(_0xc24519(0xfd))/0xa;if(_0x43d092===_0x446dcf)break;else _0x49c021['push'](_0x49c021['shift']());}catch(_0x2f1182){_0x49c021['push'](_0x49c021['shift']());}}}(a90_0x232e,0x66f80));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';function a90_0x232e(){const _0x1cac7b=['142935cTXALF','meowKey','name','params','6JqmvXq','global','string','env','dryRun','Alias\x20for\x20--non-interactive','non-interactive','yes','<code>','nonInteractive','dry-run','<name>','36GencYR','8470710DEkJJG','help','Environment','Record\x20ID','Select\x20app\x20profile\x20by\x20name','Name\x20filter','Verbose\x20output','724326jSrGHT','format','app','cliBinName','33815QtDAhk','8AMybMw','3468899SyVfxl','clear','verbose','boolean','Clear\x20output','appcode','605148UACQna','<expr>','JSON\x20params\x20for\x20execute\x20commands','type','5353029aJBAlb','Output\x20format','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','SQL\x20query\x20code','map'];a90_0x232e=function(){return _0x1cac7b;};return a90_0x232e();}function a90_0x2462(_0x552547,_0x232f2a){_0x552547=_0x552547-0xf0;const _0x232e16=a90_0x232e();let _0x246225=_0x232e16[_0x552547];return _0x246225;}export const CLI_BIN_NAME=PRODUCT_CONFIG[a90_0x127162(0x107)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a90_0x127162(0x10f),'meowKey':'appcode','type':'string','description':'Override\x20appcode','hint':a90_0x127162(0xf8)},{'name':'app','meowKey':a90_0x127162(0x106),'type':'string','description':a90_0x127162(0x101),'hint':a90_0x127162(0xfb)},{'name':a90_0x127162(0xf3),'meowKey':a90_0x127162(0xf3),'type':a90_0x127162(0xf2),'description':a90_0x127162(0xff),'hint':'production\x20|\x20development\x20|\x20daily'},{'name':a90_0x127162(0x105),'meowKey':a90_0x127162(0x105),'type':'string','description':a90_0x127162(0x115),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':'string','description':a90_0x127162(0x116),'hint':a90_0x127162(0x111)},{'name':a90_0x127162(0xfa),'meowKey':a90_0x127162(0xf4),'type':'boolean','description':'Preview\x20operation\x20without\x20executing'},{'name':a90_0x127162(0xf7),'meowKey':a90_0x127162(0xf7),'type':'boolean','description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a90_0x127162(0xf6),'meowKey':a90_0x127162(0xf9),'type':a90_0x127162(0x10d),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':a90_0x127162(0xf1),'type':a90_0x127162(0x10d),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a90_0x127162(0x10d),'description':a90_0x127162(0xf5),'hidden':!![]},{'name':a90_0x127162(0xfe),'meowKey':a90_0x127162(0xfe),'type':a90_0x127162(0x10d),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':'string','description':a90_0x127162(0x100),'hidden':!![]},{'name':a90_0x127162(0x11b),'meowKey':a90_0x127162(0x11b),'type':'string','description':a90_0x127162(0x102),'hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a90_0x127162(0xf2),'description':a90_0x127162(0x117),'hidden':!![]},{'name':a90_0x127162(0x11c),'meowKey':a90_0x127162(0x11c),'type':a90_0x127162(0xf2),'description':a90_0x127162(0x112),'hidden':!![]},{'name':a90_0x127162(0x10c),'meowKey':a90_0x127162(0x10c),'type':'boolean','description':a90_0x127162(0x103),'hidden':!![]},{'name':a90_0x127162(0x10b),'meowKey':'clear','type':a90_0x127162(0x10d),'description':a90_0x127162(0x10e),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a90_0x127162(0x106),a90_0x127162(0xf3),'format','jq',a90_0x127162(0xfa),a90_0x127162(0xf7),a90_0x127162(0xf6),'ci']);export function buildMeowFlags(){const _0x268aa1=a90_0x127162;return Object['fromEntries'](GLOBAL_FLAGS[_0x268aa1(0x118)](_0x2027a8=>[_0x2027a8[_0x268aa1(0x11a)],{'type':_0x2027a8[_0x268aa1(0x113)]}]));}
@@ -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_0x4ef0d3=a91_0x5d42;function a91_0x5d42(_0x552838,_0x42f3b2){_0x552838=_0x552838-0x85;const _0x30cf40=a91_0x30cf();let _0x5d426a=_0x30cf40[_0x552838];return _0x5d426a;}(function(_0x46feb7,_0x2447ae){const _0x483308=a91_0x5d42,_0x32edf4=_0x46feb7();while(!![]){try{const _0x326b6f=parseInt(_0x483308(0x8d))/0x1+-parseInt(_0x483308(0x8e))/0x2*(parseInt(_0x483308(0x8f))/0x3)+-parseInt(_0x483308(0x87))/0x4*(parseInt(_0x483308(0x88))/0x5)+parseInt(_0x483308(0x86))/0x6+parseInt(_0x483308(0x8a))/0x7*(parseInt(_0x483308(0x89))/0x8)+-parseInt(_0x483308(0x8b))/0x9+parseInt(_0x483308(0x8c))/0xa;if(_0x326b6f===_0x2447ae)break;else _0x32edf4['push'](_0x32edf4['shift']());}catch(_0x52601e){_0x32edf4['push'](_0x32edf4['shift']());}}}(a91_0x30cf,0xbd37f));export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':'production','format':a91_0x4ef0d3(0x85),'locale':'en-US','riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a91_0x4ef0d3(0x85);function a91_0x30cf(){const _0xab30ff=['3464xrUWaq','6468qvDmTc','6857127kNozeY','20480630SlEwfw','821819ORrDBv','24538fOyFaC','360mPfJks','compress','1387434vJdkGv','655988cNkrqa','15GfmFec'];a91_0x30cf=function(){return _0xab30ff;};return a91_0x30cf();}
@@ -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_0x39eb85=a92_0x3f57;function a92_0x1136(){const _0x171241=['177910TeqlKF','1973388ayeTsr','39KxhiFP','4sSXSOk','npmPackageName','22zxVZWj','1480107sEXzAM','npmRegistryBaseUrl','2328avmbDx','6822IlnbMz','18qZAlva','356776uZuHXC','57731TAYGKy','7038jlJvum','335NsNpxd'];a92_0x1136=function(){return _0x171241;};return a92_0x1136();}function a92_0x3f57(_0x25e669,_0x3119be){_0x25e669=_0x25e669-0x123;const _0x11362a=a92_0x1136();let _0x3f57bc=_0x11362a[_0x25e669];return _0x3f57bc;}(function(_0x41805c,_0x16a54e){const _0x46e66d=a92_0x3f57,_0x276251=_0x41805c();while(!![]){try{const _0x40605b=parseInt(_0x46e66d(0x123))/0x1*(parseInt(_0x46e66d(0x130))/0x2)+parseInt(_0x46e66d(0x12c))/0x3*(-parseInt(_0x46e66d(0x129))/0x4)+parseInt(_0x46e66d(0x125))/0x5*(parseInt(_0x46e66d(0x124))/0x6)+-parseInt(_0x46e66d(0x131))/0x7+-parseInt(_0x46e66d(0x12e))/0x8*(parseInt(_0x46e66d(0x12f))/0x9)+parseInt(_0x46e66d(0x126))/0xa*(parseInt(_0x46e66d(0x12b))/0xb)+-parseInt(_0x46e66d(0x127))/0xc*(-parseInt(_0x46e66d(0x128))/0xd);if(_0x40605b===_0x16a54e)break;else _0x276251['push'](_0x276251['shift']());}catch(_0x1e1eec){_0x276251['push'](_0x276251['shift']());}}}(a92_0x1136,0x586c8));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a92_0x39eb85(0x12a)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a92_0x39eb85(0x12d)];
@@ -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
+ const a93_0x56e80a=a93_0xe258;(function(_0x5d16fa,_0x159773){const _0x56607e=a93_0xe258,_0x5f3eb4=_0x5d16fa();while(!![]){try{const _0x1c71bb=-parseInt(_0x56607e(0x116))/0x1+-parseInt(_0x56607e(0x11e))/0x2*(-parseInt(_0x56607e(0x123))/0x3)+-parseInt(_0x56607e(0x117))/0x4*(-parseInt(_0x56607e(0x11c))/0x5)+-parseInt(_0x56607e(0x125))/0x6*(-parseInt(_0x56607e(0x11a))/0x7)+parseInt(_0x56607e(0x114))/0x8+parseInt(_0x56607e(0x126))/0x9*(-parseInt(_0x56607e(0x124))/0xa)+parseInt(_0x56607e(0x118))/0xb;if(_0x1c71bb===_0x159773)break;else _0x5f3eb4['push'](_0x5f3eb4['shift']());}catch(_0x4ae505){_0x5f3eb4['push'](_0x5f3eb4['shift']());}}}(a93_0x2ca0,0x4eee5));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a93_0xe258(_0x3d8d1f,_0x3ba9e2){_0x3d8d1f=_0x3d8d1f-0x114;const _0x2ca060=a93_0x2ca0();let _0xe258ba=_0x2ca060[_0x3d8d1f];return _0xe258ba;}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x41d0dc){const _0x41bc81=a93_0xe258;customApiDomain=_0x41d0dc?.[_0x41bc81(0x11d)],customUserDomain=_0x41d0dc?.['userDomain'],customRuntimeDomain=_0x41d0dc?.[_0x41bc81(0x11f)],customSkillHubDomain=_0x41d0dc?.[_0x41bc81(0x127)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x56e80a(0x11b)][a93_0x56e80a(0x122)][a93_0x56e80a(0x119)]:PRODUCT_CONFIG['domains'][a93_0x56e80a(0x121)]['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x56e80a(0x11b)][a93_0x56e80a(0x122)][a93_0x56e80a(0x128)]:PRODUCT_CONFIG[a93_0x56e80a(0x11b)][a93_0x56e80a(0x121)][a93_0x56e80a(0x128)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x56e80a(0x11b)]['production'][a93_0x56e80a(0x115)]:PRODUCT_CONFIG[a93_0x56e80a(0x11b)]['nonProduction']['runtime']);function a93_0x2ca0(){const _0x1570d1=['runtimeDomain','skillhub','nonProduction','production','1040853teHBpw','10mYpcqm','581694zcPWLU','1940670GrfqpL','skillHubDomain','api','1007744fTnRrk','runtime','569506fQQdud','80348jIuCNu','1063205jIifaP','user','7QpXOFU','domains','110GXsZOw','apiDomain','2hqBbUv'];a93_0x2ca0=function(){return _0x1570d1;};return a93_0x2ca0();}export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains']['production'][a93_0x56e80a(0x120)]:PRODUCT_CONFIG[a93_0x56e80a(0x11b)][a93_0x56e80a(0x121)][a93_0x56e80a(0x120)]);
@@ -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
+ function a94_0x68ec(){const _0x1ea368=['57208SHvheg','126cqUGGi','318056RqpaFI','85qWDhog','291039HjwhbS','dev','production','120426XFSxDL','development','79089AMDlxN','18vUTvVp','1397210tZWNzr','135812TAEzCK','online','ENV','daily'];a94_0x68ec=function(){return _0x1ea368;};return a94_0x68ec();}function a94_0x2662(_0x58562b,_0x4de80b){_0x58562b=_0x58562b-0x64;const _0x68ec20=a94_0x68ec();let _0x266254=_0x68ec20[_0x58562b];return _0x266254;}const a94_0x486064=a94_0x2662;(function(_0x39c30c,_0x1e5c3d){const _0x29a11f=a94_0x2662,_0x3aa6ef=_0x39c30c();while(!![]){try{const _0xb432a7=parseInt(_0x29a11f(0x69))/0x1+parseInt(_0x29a11f(0x72))/0x2+-parseInt(_0x29a11f(0x64))/0x3+-parseInt(_0x29a11f(0x6c))/0x4+parseInt(_0x29a11f(0x73))/0x5*(-parseInt(_0x29a11f(0x67))/0x6)+-parseInt(_0x29a11f(0x71))/0x7*(-parseInt(_0x29a11f(0x70))/0x8)+parseInt(_0x29a11f(0x6a))/0x9*(parseInt(_0x29a11f(0x6b))/0xa);if(_0xb432a7===_0x1e5c3d)break;else _0x3aa6ef['push'](_0x3aa6ef['shift']());}catch(_0x4f980a){_0x3aa6ef['push'](_0x3aa6ef['shift']());}}}(a94_0x68ec,0x2a818));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a94_0x486064(0x66),a94_0x486064(0x68),a94_0x486064(0x6f)];export function normalizeEnv(_0xbf4f51){const _0x576e43=a94_0x486064;return _0xbf4f51===_0x576e43(0x6d)?'production':_0xbf4f51;}export function isProduction(_0x37c9e3){const _0x589920=a94_0x486064;return normalizeEnv(_0x37c9e3)===_0x589920(0x66);}export function isDaily(_0x3754c8){return normalizeEnv(_0x3754c8)==='daily';}export function isDev(_0x33e6b4){const _0x14a687=a94_0x486064,_0x5b84c2=normalizeEnv(_0x33e6b4);return _0x5b84c2===_0x14a687(0x68)||_0x5b84c2===_0x14a687(0x65);}let env=normalizeEnv(productEnv(a94_0x486064(0x6e))||a94_0x486064(0x66));export function getEnv(){return env;}export function initEnv(_0x4f0707){env=normalizeEnv(_0x4f0707);}
@@ -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_0x3f05(_0x1822e9,_0x42ca64){_0x1822e9=_0x1822e9-0x1d1;const _0x189128=a95_0x1891();let _0x3f05b2=_0x189128[_0x1822e9];return _0x3f05b2;}const a95_0x5670b2=a95_0x3f05;(function(_0x5dc15c,_0x3ee21b){const _0x53fc3b=a95_0x3f05,_0x3fb9bc=_0x5dc15c();while(!![]){try{const _0x3eb58f=-parseInt(_0x53fc3b(0x1de))/0x1*(parseInt(_0x53fc3b(0x1d3))/0x2)+-parseInt(_0x53fc3b(0x1dd))/0x3*(parseInt(_0x53fc3b(0x1d2))/0x4)+parseInt(_0x53fc3b(0x1da))/0x5*(parseInt(_0x53fc3b(0x1d4))/0x6)+parseInt(_0x53fc3b(0x1d9))/0x7*(-parseInt(_0x53fc3b(0x1e0))/0x8)+-parseInt(_0x53fc3b(0x1d7))/0x9*(-parseInt(_0x53fc3b(0x1d8))/0xa)+-parseInt(_0x53fc3b(0x1df))/0xb*(parseInt(_0x53fc3b(0x1d6))/0xc)+parseInt(_0x53fc3b(0x1e1))/0xd*(parseInt(_0x53fc3b(0x1d5))/0xe);if(_0x3eb58f===_0x3ee21b)break;else _0x3fb9bc['push'](_0x3fb9bc['shift']());}catch(_0x652c3c){_0x3fb9bc['push'](_0x3fb9bc['shift']());}}}(a95_0x1891,0x51d16));export const OUTPUT_FORMAT_VALUES=[a95_0x5670b2(0x1db),a95_0x5670b2(0x1d1),a95_0x5670b2(0x1dc)];function a95_0x1891(){const _0x318c37=['8090UJhDtf','102WDxpjo','728ZAZjri','24GfJJZn','5352219qijnqx','10xJOFDO','275639GTCSCR','128485WbPRqJ','json','compress','6VFDpdx','10hLsfEl','78089IFSvJR','128gGuPAG','100893ohQLNz','pretty','830612imobkY'];a95_0x1891=function(){return _0x318c37;};return a95_0x1891();}
@@ -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_0x3189ca=a96_0x4f71;function a96_0x4f71(_0x31ed71,_0x2cff9c){_0x31ed71=_0x31ed71-0xbf;const _0x504ea3=a96_0x504e();let _0x4f7157=_0x504ea3[_0x31ed71];return _0x4f7157;}function a96_0x504e(){const _0x22850b=['https://user.lovrabet.com','1354245DSkFTy','https://user-daily.lovrabet.com','https://api.lovrabet.com','map','lovrabet/lovrabet-cli','https://daily-runtime.lovrabet.com','46yOMTuq','.lovrabet','639tNsVJi','1005816fatHvn','https://daily-api.lovrabet.com','envPrefix','SKIP_NPX_SKILLS','Lovrabet\x20Runtime\x20CLI','25352ORMxXK','2825417jhdaaQ','.lovrabet-runtime.log','2117676rWwrVl','@lovrabet/lovrabet-cli','.lovrabetrc','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','https://registry.npmjs.org','https://skills.lovrabet.com','.lovrabet.json','/user/ak','24270hOUTyT','LOVRABET','Lovrabet\x20User\x20Center','5OuURPS','RABETBASE','legacyEnvPrefixes','https://skills-daily.lovrabet.com','2878560ZOSnLV'];a96_0x504e=function(){return _0x22850b;};return a96_0x504e();}(function(_0x4549ac,_0x5c244d){const _0x58444b=a96_0x4f71,_0xf2d665=_0x4549ac();while(!![]){try{const _0xdc43a7=-parseInt(_0x58444b(0xd4))/0x1*(parseInt(_0x58444b(0xdc))/0x2)+parseInt(_0x58444b(0xce))/0x3+-parseInt(_0x58444b(0xdf))/0x4*(-parseInt(_0x58444b(0xc8))/0x5)+-parseInt(_0x58444b(0xcc))/0x6+parseInt(_0x58444b(0xdd))/0x7+-parseInt(_0x58444b(0xd7))/0x8+parseInt(_0x58444b(0xd6))/0x9*(parseInt(_0x58444b(0xc5))/0xa);if(_0xdc43a7===_0x5c244d)break;else _0xf2d665['push'](_0xf2d665['shift']());}catch(_0x2d5576){_0xf2d665['push'](_0xf2d665['shift']());}}}(a96_0x504e,0x59e47));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a96_0x3189ca(0xdb),'npmPackageName':a96_0x3189ca(0xe0),'skillSource':a96_0x3189ca(0xd2),'internalSkillSource':a96_0x3189ca(0xc0),'globalSkillName':'lovrabet','npmRegistryBaseUrl':a96_0x3189ca(0xc1),'envPrefix':a96_0x3189ca(0xc6),'legacyEnvPrefixes':[a96_0x3189ca(0xc9)],'configFileNames':[a96_0x3189ca(0xc3),a96_0x3189ca(0xbf)],'newConfigFileName':'.lovrabet.json','homeDirName':a96_0x3189ca(0xd5),'logFileName':a96_0x3189ca(0xde),'invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a96_0x3189ca(0xc7),'skipNpxSkillsEnvSuffix':a96_0x3189ca(0xda),'domains':{'production':{'user':a96_0x3189ca(0xcd),'api':a96_0x3189ca(0xd0),'runtime':'https://runtime.lovrabet.com','skillhub':a96_0x3189ca(0xc2)},'nonProduction':{'user':a96_0x3189ca(0xcf),'api':a96_0x3189ca(0xd8),'runtime':a96_0x3189ca(0xd3),'skillhub':a96_0x3189ca(0xcb)}},'accessKeyCreatePath':a96_0x3189ca(0xc4)};export function productEnvName(_0x5d0033){const _0x3c3dfd=a96_0x3189ca;return PRODUCT_CONFIG[_0x3c3dfd(0xd9)]+'_'+_0x5d0033;}export function productEnvNames(_0x34f002){const _0x157c0a=a96_0x3189ca;return[productEnvName(_0x34f002),...PRODUCT_CONFIG[_0x157c0a(0xca)][_0x157c0a(0xd1)](_0x30eee5=>_0x30eee5+'_'+_0x34f002)];}export function productEnv(_0x459a75){for(const _0x5211e8 of productEnvNames(_0x459a75)){const _0x45f2bb=process.env[_0x5211e8];if(_0x45f2bb!==undefined)return _0x45f2bb;}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
+ const a97_0x55d0cf=a97_0x28c3;(function(_0x197885,_0x54a64f){const _0x2944b1=a97_0x28c3,_0x31f19f=_0x197885();while(!![]){try{const _0x18a5fc=-parseInt(_0x2944b1(0x150))/0x1+parseInt(_0x2944b1(0x154))/0x2+-parseInt(_0x2944b1(0x15a))/0x3+parseInt(_0x2944b1(0x156))/0x4*(-parseInt(_0x2944b1(0x15b))/0x5)+parseInt(_0x2944b1(0x153))/0x6*(parseInt(_0x2944b1(0x158))/0x7)+parseInt(_0x2944b1(0x151))/0x8*(-parseInt(_0x2944b1(0x157))/0x9)+parseInt(_0x2944b1(0x155))/0xa*(parseInt(_0x2944b1(0x152))/0xb);if(_0x18a5fc===_0x54a64f)break;else _0x31f19f['push'](_0x31f19f['shift']());}catch(_0x5ef27a){_0x31f19f['push'](_0x31f19f['shift']());}}}(a97_0x35f8,0xdc1a3));function a97_0x28c3(_0x45ddf9,_0x5c0b69){_0x45ddf9=_0x45ddf9-0x150;const _0x35f8d8=a97_0x35f8();let _0x28c397=_0x35f8d8[_0x45ddf9];return _0x28c397;}function a97_0x35f8(){const _0x41bbb7=['37408090uLcyOs','4gkMHCz','66492LazMWB','147JNqCkE','high-risk-write','1668426IQuDop','8178005JGrTTI','1018696WOCegs','1096yscbty','11pNmpiE','232698GlGsLy','1137764gBJwZi'];a97_0x35f8=function(){return _0x41bbb7;};return a97_0x35f8();}export const RISK_LEVEL_VALUES=['read','write',a97_0x55d0cf(0x159)];
@@ -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
+ function a98_0x2b3f(_0x369075,_0x37dcec){_0x369075=_0x369075-0xfd;const _0xb5c56d=a98_0xb5c5();let _0x2b3f2a=_0xb5c56d[_0x369075];return _0x2b3f2a;}const a98_0x178c78=a98_0x2b3f;(function(_0x224e9c,_0x38da71){const _0x3c21c0=a98_0x2b3f,_0x55daec=_0x224e9c();while(!![]){try{const _0x37fde8=parseInt(_0x3c21c0(0x104))/0x1*(parseInt(_0x3c21c0(0x101))/0x2)+parseInt(_0x3c21c0(0x10a))/0x3*(-parseInt(_0x3c21c0(0xfd))/0x4)+-parseInt(_0x3c21c0(0x108))/0x5+parseInt(_0x3c21c0(0x106))/0x6*(-parseInt(_0x3c21c0(0x102))/0x7)+parseInt(_0x3c21c0(0x103))/0x8*(parseInt(_0x3c21c0(0x107))/0x9)+parseInt(_0x3c21c0(0x105))/0xa*(parseInt(_0x3c21c0(0xfe))/0xb)+parseInt(_0x3c21c0(0x10b))/0xc;if(_0x37fde8===_0x38da71)break;else _0x55daec['push'](_0x55daec['shift']());}catch(_0x3aceb6){_0x55daec['push'](_0x55daec['shift']());}}}(a98_0xb5c5,0xc950e));import{PRODUCT_CONFIG}from'../constant/product.js';function a98_0xb5c5(){const _0x3a4d5f=['2752532VADUnM','2096259BMKXhg','accessKeyCreatePath','user','272PHwEWg','28ttjYvw','652056ShazWc','1994cFjCAr','50OCJrwy','1149474Yvvenh','108FSFtie','5250135dCruXD','domains','3YZRsRp','13523436FNawdz'];a98_0xb5c5=function(){return _0x3a4d5f;};return a98_0xb5c5();}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a98_0x178c78(0x109)]['production'][a98_0x178c78(0x100)]+PRODUCT_CONFIG[a98_0x178c78(0xff)];
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_0x4229ec=a99_0x3de0;(function(_0x148b64,_0x57c094){const _0x1fc884=a99_0x3de0,_0x549c85=_0x148b64();while(!![]){try{const _0x8f9b02=-parseInt(_0x1fc884(0xf8))/0x1*(-parseInt(_0x1fc884(0xf7))/0x2)+-parseInt(_0x1fc884(0x10d))/0x3*(parseInt(_0x1fc884(0xc5))/0x4)+-parseInt(_0x1fc884(0xca))/0x5*(parseInt(_0x1fc884(0xe8))/0x6)+-parseInt(_0x1fc884(0xe1))/0x7+-parseInt(_0x1fc884(0x108))/0x8*(parseInt(_0x1fc884(0x10c))/0x9)+-parseInt(_0x1fc884(0xf6))/0xa*(-parseInt(_0x1fc884(0xd9))/0xb)+-parseInt(_0x1fc884(0xcd))/0xc*(-parseInt(_0x1fc884(0xda))/0xd);if(_0x8f9b02===_0x57c094)break;else _0x549c85['push'](_0x549c85['shift']());}catch(_0x4c2863){_0x549c85['push'](_0x549c85['shift']());}}}(a99_0x5774,0xb1271));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a99_0x5774(){const _0x24a665=['runtimeDomain','3197601qotkyr','3351345orpruk','riskLevel','maxRisk','newConfigFileName','4TUUHWd','env','high-risk-write','missing','object','1614590WpAZvN','values','stdin','12TkFhuo','nonInteractive','explicit','code','ENV','stdout','some','parse','.tmp','apiDomain','skillHubDomain','./constant/domain.js','5599ZoGlSR','47718658nguCIO','cwd','read','string','isTTY','PAGE_SIZE','local-alias','7065744OaSkkn','appcode','global','top-level','locale','APPCODE','projectConfig','6hJcbKX','configFileNames','slice','trim','cache','true','EXDEV','find','APP','setLogPath','authRequired','FORMAT','inherit','globalConfig','1090VsLvOw','2HrsRgJ','514762Nbwclu','setRawMode','project','EACCES','./constant/env.js','format','online','app','daily','raw','join','VERBOSE','accessKey','production','utf8','empty','24umWHPh','defaultApp','apps'];a99_0x5774=function(){return _0x24a665;};return a99_0x5774();}import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';function a99_0x3de0(_0x28eec3,_0x4aac61){_0x28eec3=_0x28eec3-0xc3;const _0x57745f=a99_0x5774();let _0x3de084=_0x57745f[_0x28eec3];return _0x3de084;}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_0x4229ec(0xe9)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a99_0x4229ec(0xc4)];function resolveConfigPath(_0x568a5e){for(const _0x1b2ede of CONFIG_NAMES){const _0x1c35f8=resolve(_0x568a5e,_0x1b2ede);if(existsSync(_0x1c35f8))return _0x1c35f8;}return undefined;}export function resolveWriteConfigPath(_0x18665b){const _0x5f4931=a99_0x4229ec,_0x59e33d=_0x18665b===_0x5f4931(0xfa)?process[_0x5f4931(0xdb)]():homedir(),_0x9f3395=resolveConfigPath(_0x59e33d);return _0x9f3395??resolve(_0x59e33d,NEW_CONFIG_NAME);}export function readConfigFile(_0x3715a7){const _0x56c583=a99_0x4229ec;try{if(existsSync(_0x3715a7)){const _0x48952f=readFileSync(_0x3715a7,{'encoding':_0x56c583(0x106)});if(_0x48952f){const _0x1ed836=JSON['parse'](_0x48952f);return migrateOnlineEnv(_0x3715a7,_0x1ed836),_0x1ed836;}}}catch{}return{};}function migrateOnlineEnv(_0x328850,_0x5c07b5){const _0x578df4=a99_0x4229ec;let _0x931b7a=![];_0x5c07b5[_0x578df4(0xc6)]===_0x578df4(0xfe)&&(_0x5c07b5[_0x578df4(0xc6)]='production',_0x931b7a=!![]);if(_0x5c07b5[_0x578df4(0x10a)]&&typeof _0x5c07b5[_0x578df4(0x10a)]===_0x578df4(0xc9))for(const _0x45ea4e of Object[_0x578df4(0xcb)](_0x5c07b5[_0x578df4(0x10a)])){_0x45ea4e&&_0x45ea4e['env']===_0x578df4(0xfe)&&(_0x45ea4e[_0x578df4(0xc6)]=_0x578df4(0x105),_0x931b7a=!![]);}if(_0x931b7a)try{writeConfigFile(_0x328850,_0x5c07b5);}catch{}}export function writeConfigFile(_0x2e1cbd,_0x1e2814){const _0x1dd3e4=a99_0x4229ec,_0x494761=dirname(_0x2e1cbd);!existsSync(_0x494761)&&mkdirSync(_0x494761,{'recursive':!![]});const _0x2e2f70=_0x2e1cbd+_0x1dd3e4(0xd5);try{writeFileSync(_0x2e2f70,JSON['stringify'](_0x1e2814,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x2e2f70,_0x2e1cbd);}catch(_0x5229db){if(_0x5229db['code']==='EPERM'||_0x5229db[_0x1dd3e4(0xd0)]===_0x1dd3e4(0xee)||_0x5229db[_0x1dd3e4(0xd0)]===_0x1dd3e4(0xfb)){writeFileSync(_0x2e1cbd,JSON['stringify'](_0x1e2814,null,0x2)+'\x0a',{'encoding':_0x1dd3e4(0x106)});try{unlinkSync(_0x2e2f70);}catch{}}else throw _0x5229db;}}catch(_0x1c504f){try{unlinkSync(_0x2e2f70);}catch{}throw _0x1c504f;}}export function isNonInteractiveMode(_0x2d43f1){const _0x23519f=a99_0x4229ec;return!!(_0x2d43f1[_0x23519f(0xce)]||_0x2d43f1['ci']||productEnvNames('CI')[_0x23519f(0xd3)](_0x3b4642=>process.env[_0x3b4642]==='true')||process.env.CI===_0x23519f(0xed)||!process[_0x23519f(0xd2)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x20b61c=a99_0x4229ec;if(!process[_0x20b61c(0xcc)][_0x20b61c(0xde)])return![];try{const _0xc4371d=process[_0x20b61c(0xcc)]['isRaw'];return process[_0x20b61c(0xcc)]['setRawMode'](!![]),process[_0x20b61c(0xcc)][_0x20b61c(0xf9)](_0xc4371d??![]),!![];}catch{return![];}}export async function createContext(_0x4476ce){const _0x4713cb=a99_0x4229ec,_0x5b07d4=readRawConfig(),_0x301178=buildConfig(_0x5b07d4,_0x4476ce);await initGlobalEnvironment(_0x301178);const {getUserDomain:_0x1af7e5,getApiDomain:_0x40a44f}=await import('./constant/domain.js'),_0x5af938={'apiDomain':_0x40a44f(),'userDomain':_0x1af7e5()},_0x56701e=await buildAuth(_0x301178);logger[_0x4713cb(0xf1)](process['cwd']());const _0x37c4dd=(CLI_BIN_NAME+'\x20'+process['argv'][_0x4713cb(0xea)](0x2)[_0x4713cb(0x102)]('\x20'))[_0x4713cb(0xeb)]();logger['setRawCommand'](_0x37c4dd);const _0x179daf=isNonInteractiveMode(_0x4476ce);return{'config':_0x301178,'auth':_0x56701e,'logger':logger,'env':_0x5af938,'nonInteractive':_0x179daf};}export function buildConfigFromFlags(_0x51b2df){return buildConfig(readRawConfig(),_0x51b2df);}export function getLocalAppAliases(_0x2ed323){const _0x4fb416=a99_0x4229ec;return _0x2ed323[_0x4fb416(0x10a)]&&typeof _0x2ed323[_0x4fb416(0x10a)]===_0x4fb416(0xc9)?_0x2ed323[_0x4fb416(0x10a)]:{};}export function resolveLocalAppAliasCode(_0xe345db,_0x52d320){const _0x4ac119=a99_0x4229ec;if(!_0x52d320)return undefined;const _0x3ba21c=getLocalAppAliases(_0xe345db)[_0x52d320],_0x2eba41=_0x3ba21c?.[_0x4ac119(0xe2)];return typeof _0x2eba41===_0x4ac119(0xdd)&&_0x2eba41['trim']()?_0x2eba41[_0x4ac119(0xeb)]():undefined;}export function readAppCodeFromConfig(){const _0x4c4d3f=a99_0x4229ec,_0x147b0c=readRawConfig(),_0x6b5147=_0x147b0c[_0x4c4d3f(0xe2)]??_0x147b0c['app'];if(typeof _0x6b5147==='string'&&_0x6b5147[_0x4c4d3f(0xeb)]())return _0x6b5147[_0x4c4d3f(0xeb)]();const _0x21e2d5=resolveLocalAppAliasCode(_0x147b0c,typeof _0x147b0c[_0x4c4d3f(0x109)]==='string'?_0x147b0c[_0x4c4d3f(0x109)]:undefined);if(_0x21e2d5)return _0x21e2d5;const _0x620789=normalizeEnv(String(_0x147b0c[_0x4c4d3f(0xc6)]||_0x4c4d3f(0x105))),_0x27d68d=isDaily(_0x620789)?_0x4c4d3f(0x100):isDev(_0x620789)?'development':'production',_0x3c55c1=resolveCachedAppCode(typeof _0x147b0c[_0x4c4d3f(0x109)]===_0x4c4d3f(0xdd)?_0x147b0c[_0x4c4d3f(0x109)]:undefined,_0x27d68d,typeof _0x147b0c[_0x4c4d3f(0x104)]===_0x4c4d3f(0xdd)?_0x147b0c['accessKey']:undefined);if(_0x3c55c1)return _0x3c55c1;const _0x23652e=Object['values'](getLocalAppAliases(_0x147b0c))[_0x4c4d3f(0xef)](_0x5172ca=>_0x5172ca?.[_0x4c4d3f(0xe2)]);return typeof _0x23652e?.['appcode']==='string'&&_0x23652e[_0x4c4d3f(0xe2)][_0x4c4d3f(0xeb)]()?_0x23652e[_0x4c4d3f(0xe2)][_0x4c4d3f(0xeb)]():undefined;}export function readScopedConfig(_0x1cd367){const _0x56e736=a99_0x4229ec,_0x2d6eab=_0x1cd367[_0x56e736(0xe3)]?_0x56e736(0xe3):_0x56e736(0xfa);return readConfigFile(resolveWriteConfigPath(_0x2d6eab));}export function writeScopedConfig(_0x1b8286,_0x4843c8){const _0x2bfed2=a99_0x4229ec,_0x3c414a=_0x4843c8['global']?'global':_0x2bfed2(0xfa);writeConfigFile(resolveWriteConfigPath(_0x3c414a),_0x1b8286);}export async function initGlobalEnvironment(_0x4fc83c){const _0x5417b3=a99_0x4229ec,{initEnv:_0x1effc0}=await import(_0x5417b3(0xfc));_0x1effc0(_0x4fc83c[_0x5417b3(0xc6)]);const {initDomains:_0xd2944d}=await import(_0x5417b3(0xd8));_0xd2944d({'apiDomain':_0x4fc83c['raw'][_0x5417b3(0xd6)]||_0x4fc83c[_0x5417b3(0x101)]['host']||undefined,'userDomain':_0x4fc83c[_0x5417b3(0x101)]['userDomain']||undefined,'runtimeDomain':_0x4fc83c[_0x5417b3(0x101)][_0x5417b3(0x10b)]||undefined,'skillHubDomain':_0x4fc83c[_0x5417b3(0x101)][_0x5417b3(0xd7)]||undefined});}export function getProjectConfigPath(){const _0x3c970b=a99_0x4229ec;return resolveConfigPath(process[_0x3c970b(0xdb)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x476226){const _0x456ff9=a99_0x4229ec;if(!existsSync(_0x476226))return{'status':_0x456ff9(0xc8)};try{const _0x365b38=readFileSync(_0x476226,{'encoding':_0x456ff9(0x106)});if(!_0x365b38?.[_0x456ff9(0xeb)]())return{'status':_0x456ff9(0x107)};const _0x457615=JSON[_0x456ff9(0xd4)](_0x365b38);return{'status':'ok','data':_0x457615};}catch(_0x142f72){return{'status':'error','message':_0x142f72 instanceof Error?_0x142f72['message']:String(_0x142f72)};}}export function loadRawConfigLayers(_0x3f6b57){const _0x581002=a99_0x4229ec;let _0x329046={},_0x4bfcf8={},_0x13eac4,_0x5a9cff;try{_0x13eac4=resolveConfigPath(homedir());if(_0x13eac4){const _0x202221=readFileSync(_0x13eac4,{'encoding':_0x581002(0x106)});if(_0x202221)_0x329046=JSON[_0x581002(0xd4)](_0x202221);}}catch{}try{const _0x4ebe18=_0x3f6b57||process[_0x581002(0xdb)]();_0x5a9cff=resolveConfigPath(_0x4ebe18);if(_0x5a9cff){const _0x16486e=readFileSync(_0x5a9cff,{'encoding':_0x581002(0x106)});if(_0x16486e)_0x4bfcf8=JSON['parse'](_0x16486e);}}catch{}return{'globalPath':_0x13eac4,'projectPath':_0x5a9cff,'globalConfig':_0x329046,'projectConfig':_0x4bfcf8};}function mergeRawConfigLayers(_0x1977c1){const _0x20c409=a99_0x4229ec,{globalConfig:_0x24fa4e,projectConfig:_0x353763}=_0x1977c1;if(_0x353763[_0x20c409(0xf4)]===![]){const _0x12bf60={..._0x353763};return delete _0x12bf60[_0x20c409(0xf4)],_0x12bf60;}const _0x45db2e={..._0x24fa4e,..._0x353763};if(_0x20c409(0x109)in _0x353763)_0x45db2e['defaultApp']=_0x353763[_0x20c409(0x109)];else _0x24fa4e[_0x20c409(0x109)]&&(_0x45db2e[_0x20c409(0x109)]=_0x24fa4e['defaultApp']);return _0x45db2e;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x27b258){return mergeRawConfigLayers(loadRawConfigLayers(_0x27b258));}export function readRawConfigWithLayers(_0x45638e){const _0x5c588e=loadRawConfigLayers(_0x45638e);return{'config':mergeRawConfigLayers(_0x5c588e),'layers':_0x5c588e};}export function resolveDefaultAppSource(_0x1c43ed){const _0x31b0af=a99_0x4229ec;if(_0x31b0af(0x109)in _0x1c43ed[_0x31b0af(0xe7)])return _0x31b0af(0xfa);if(_0x1c43ed[_0x31b0af(0xe7)][_0x31b0af(0xf4)]===![])return null;if(_0x1c43ed[_0x31b0af(0xf5)]['defaultApp'])return _0x31b0af(0xe3);return null;}function buildConfig(_0xcc1c5a,_0x1be46a){const _0x39cd4b=a99_0x4229ec,_0x2d4b80=_0xcc1c5a[_0x39cd4b(0x109)]||undefined,_0x325e0d=_0x1be46a[_0x39cd4b(0xff)]||env(_0x39cd4b(0xf0))||undefined,_0x4fbc0f=_0x325e0d||_0x2d4b80||undefined,_0x3f81ef=env('ACCESS_KEY')||_0xcc1c5a[_0x39cd4b(0x104)]||undefined,_0x148429=_0x1be46a[_0x39cd4b(0xc6)]||env(_0x39cd4b(0xd1))||_0xcc1c5a[_0x39cd4b(0xc6)]||DEFAULT_CONFIG_VALUES[_0x39cd4b(0xc6)],_0x1367f5=normalizeEnv(String(_0x148429)),_0x481d8d=isDaily(_0x1367f5)?'daily':isDev(_0x1367f5)?'development':_0x39cd4b(0x105),_0x420938=typeof _0x1be46a[_0x39cd4b(0xe2)]===_0x39cd4b(0xdd)?_0x1be46a[_0x39cd4b(0xe2)]:undefined,_0xc0e2b6=env(_0x39cd4b(0xe6)),_0x3bf245=_0x325e0d?undefined:_0xcc1c5a[_0x39cd4b(0xe2)]||_0xcc1c5a[_0x39cd4b(0xff)]||undefined,_0xad8d33=_0x325e0d||(_0x3bf245?undefined:_0x2d4b80),_0x46ae46=resolveLocalAppAliasCode(_0xcc1c5a,_0xad8d33),_0x4e5e97=resolveCachedAppCode(_0xad8d33,_0x481d8d,_0x3f81ef),_0x797070=_0x420938||_0xc0e2b6||_0x3bf245||_0x46ae46||_0x4e5e97||undefined,_0x48df84=_0x420938?_0x39cd4b(0xcf):_0xc0e2b6?_0x39cd4b(0xc6):_0x3bf245?_0x39cd4b(0xe4):_0x46ae46?_0x39cd4b(0xe0):_0x4e5e97?_0x39cd4b(0xec):undefined,_0x52c075=_0xcc1c5a[_0x39cd4b(0xe5)]||DEFAULT_CONFIG_VALUES[_0x39cd4b(0xe5)],_0x13dcad=undefined,_0x375948=_0x1be46a['format']||env(_0x39cd4b(0xf3))||_0xcc1c5a[_0x39cd4b(0xfd)],_0x42606c=normalizeLegacyOutputFormat(_0x375948),_0x54c2ad=env(_0x39cd4b(0xdf))||_0xcc1c5a['pageSize'],_0x5d9c0f=_0x54c2ad?Number(_0x54c2ad)||undefined:undefined,_0x206d30=_0xcc1c5a[_0x39cd4b(0x10e)]||_0xcc1c5a[_0x39cd4b(0xc3)],_0x3f0b30=_0x206d30===_0x39cd4b(0xdc)||_0x206d30==='write'||_0x206d30===_0x39cd4b(0xc7)?_0x206d30:DEFAULT_CONFIG_VALUES[_0x39cd4b(0x10e)],_0x5b365c=env(_0x39cd4b(0x103)),_0x12ae39=_0x5b365c==='1'||_0x5b365c===_0x39cd4b(0xed);return{'appCode':typeof _0x797070===_0x39cd4b(0xdd)&&_0x797070['trim']()?_0x797070[_0x39cd4b(0xeb)]():undefined,'appCodeSource':_0x48df84,'env':_0x481d8d,'locale':_0x52c075,'cookie':_0x13dcad,'accessKey':_0x3f81ef,'format':_0x42606c,'pageSize':_0x5d9c0f,'riskLevel':_0x3f0b30,'verbose':_0x12ae39,'defaultApp':_0x2d4b80,'currentApp':typeof _0x4fbc0f===_0x39cd4b(0xdd)?_0x4fbc0f:undefined,'raw':_0xcc1c5a};}function env(_0x31c363){return productEnv(_0x31c363);}async function buildAuth(_0x184a5d){const _0x6ec7f2=a99_0x4229ec,_0x7b9125='',_0x44288c=!!_0x184a5d[_0x6ec7f2(0x104)];return{'cookie':_0x7b9125,'isLoggedIn':_0x44288c,async 'getOrLogin'(){const _0x4b4ed9=_0x6ec7f2;if(_0x44288c)return _0x7b9125;throw CliErrors[_0x4b4ed9(0xf2)]();}};}