@lovrabet/lovrabet-cli 2.2.6 → 2.2.7-beta.1

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 (158) 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/zip-codec.js +1 -1
  145. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  146. package/lib/skills/runtime-skill-sync.js +1 -1
  147. package/lib/skills/skill-presence.js +1 -1
  148. package/lib/utils/apply-jq-filter.js +1 -1
  149. package/lib/utils/logger.js +1 -1
  150. package/lib/utils/lossless-json.js +1 -1
  151. package/lib/utils/params.js +1 -1
  152. package/lib/utils/platform.js +1 -1
  153. package/lib/utils/update-notice.js +1 -1
  154. package/lib/utils/version.js +1 -1
  155. package/lib/utils/write-cli-side-channel.js +1 -1
  156. package/package.json +1 -1
  157. package/skills/lovrabet/SKILL.md +1 -1
  158. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a84_0x14f957=a84_0x8793;(function(_0x509815,_0x4fb57b){const _0x5d4f14=a84_0x8793,_0x18f1b2=_0x509815();while(!![]){try{const _0x1114a4=parseInt(_0x5d4f14(0xa8))/0x1*(-parseInt(_0x5d4f14(0x9f))/0x2)+parseInt(_0x5d4f14(0xa4))/0x3*(-parseInt(_0x5d4f14(0xae))/0x4)+-parseInt(_0x5d4f14(0xa2))/0x5*(parseInt(_0x5d4f14(0x9d))/0x6)+parseInt(_0x5d4f14(0xa7))/0x7*(-parseInt(_0x5d4f14(0x9b))/0x8)+parseInt(_0x5d4f14(0xa3))/0x9*(parseInt(_0x5d4f14(0xac))/0xa)+parseInt(_0x5d4f14(0x97))/0xb+parseInt(_0x5d4f14(0xaa))/0xc;if(_0x1114a4===_0x4fb57b)break;else _0x18f1b2['push'](_0x18f1b2['shift']());}catch(_0x1e0f7a){_0x18f1b2['push'](_0x18f1b2['shift']());}}}(a84_0x19a6,0x74bc4));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING=a84_0x14f957(0xa9),SUPPORTED_PROVIDERS=[a84_0x14f957(0xaf)];function a84_0x19a6(){const _0x186916=['1260476FHzgYH','1nHWguh','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','31585320xKXIMc','string','298530VNYSDL','includes','103916MmQDqE','dingtalk','--account-id\x20cannot\x20be\x20empty.','bind','将当前\x20AccessKey\x20所属的平台用户绑定到指定协同生态外部账号;已有同\x20provider\x20绑定可能被替换。','5381508xODQBD','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','trim','account-id','32nGvnTA','Pass\x20one\x20of:\x20','6buWBkx','join','1307918qWGkQO','write','External\x20account\x20provider','3116790kUEqDO','9TJcQqE','78sGIzDu','POST','toLowerCase'];a84_0x19a6=function(){return _0x186916;};return a84_0x19a6();}function readBindingInput(_0x2e0523){const _0x7bb1a9=a84_0x14f957,_0x51a70a=_0x2e0523['str']('provider')[_0x7bb1a9(0x99)]()[_0x7bb1a9(0xa6)]();if(!SUPPORTED_PROVIDERS[_0x7bb1a9(0xad)](_0x51a70a))throw CliErrors['validation']('Unsupported\x20provider:\x20'+(_0x51a70a||'(empty)')+'.',_0x7bb1a9(0x9c)+SUPPORTED_PROVIDERS[_0x7bb1a9(0x9e)](',\x20')+'.');const _0x4af7fc=_0x2e0523['str'](_0x7bb1a9(0x9a))['trim']();if(!_0x4af7fc)throw CliErrors['validation'](_0x7bb1a9(0xb0),'Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.');return{'provider':_0x51a70a,'accountId':_0x4af7fc};}function buildBindingData(_0x148429,_0x11c7f4,_0x302d58){const _0x991327=a84_0x14f957;return{'operation':_0x991327(0x95),'selector':{'provider':_0x148429,'accountId':_0x11c7f4},'before':null,'after':{'provider':_0x148429,'accountId':_0x11c7f4,'bound':!![]},'dryRun':_0x302d58,'warnings':[CURRENT_BINDING_WARNING]};}function a84_0x8793(_0x40d9a0,_0xa71c1a){_0x40d9a0=_0x40d9a0-0x95;const _0x19a66c=a84_0x19a6();let _0x879396=_0x19a66c[_0x40d9a0];return _0x879396;}export const bindUserAccount={'service':'user-account','command':'bind','description':a84_0x14f957(0x98),'risk':a84_0x14f957(0xa0),'confirmationDescription':a84_0x14f957(0x96),'requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':'provider','type':a84_0x14f957(0xab),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a84_0x14f957(0xa1)},{'name':a84_0x14f957(0x9a),'type':a84_0x14f957(0xab),'required':!![],'description':'External\x20account\x20ID\x20for\x20the\x20selected\x20provider'}],async 'validate'(_0x394a73){readBindingInput(_0x394a73);},async 'dryRun'(_0x475f31){const _0x16ab40=a84_0x14f957,{provider:_0x433064,accountId:_0x28404e}=readBindingInput(_0x475f31);return{...buildBindingData(_0x433064,_0x28404e,!![]),'method':_0x16ab40(0xa5),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x433064,'accountId':_0x28404e}};},async 'execute'(_0x198c27){const {provider:_0x21abb5,accountId:_0xb81e13}=readBindingInput(_0x198c27),_0x3388fc=await bindExternalUserAccount(_0x21abb5,_0xb81e13);if(_0x3388fc!==!![])throw CliErrors['apiError']('External\x20account\x20binding\x20was\x20not\x20confirmed.','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.');return{'ok':!![],'data':buildBindingData(_0x21abb5,_0xb81e13,![]),'message':'Bound\x20current\x20user\x20to\x20external\x20provider\x20account.'};}};
1
+ const a84_0x2549b8=a84_0x100f;(function(_0x3b2021,_0xb7dc07){const _0x57b2f4=a84_0x100f,_0x1545fe=_0x3b2021();while(!![]){try{const _0x4369ad=-parseInt(_0x57b2f4(0xe8))/0x1*(parseInt(_0x57b2f4(0xd8))/0x2)+-parseInt(_0x57b2f4(0xd6))/0x3*(parseInt(_0x57b2f4(0xed))/0x4)+-parseInt(_0x57b2f4(0xf2))/0x5+-parseInt(_0x57b2f4(0xe2))/0x6+-parseInt(_0x57b2f4(0xe1))/0x7+parseInt(_0x57b2f4(0xf4))/0x8*(parseInt(_0x57b2f4(0xee))/0x9)+parseInt(_0x57b2f4(0xe4))/0xa;if(_0x4369ad===_0xb7dc07)break;else _0x1545fe['push'](_0x1545fe['shift']());}catch(_0x44e0cb){_0x1545fe['push'](_0x1545fe['shift']());}}}(a84_0x310c,0xcb882));function a84_0x100f(_0x202f81,_0x24ea11){_0x202f81=_0x202f81-0xd2;const _0x310c57=a84_0x310c();let _0x100f44=_0x310c57[_0x202f81];return _0x100f44;}import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING=a84_0x2549b8(0xea),SUPPORTED_PROVIDERS=[a84_0x2549b8(0xec)];function readBindingInput(_0x465462){const _0x35ef7e=a84_0x2549b8,_0x1a3f09=_0x465462['str']('provider')[_0x35ef7e(0xf3)]()['toLowerCase']();if(!SUPPORTED_PROVIDERS[_0x35ef7e(0xd4)](_0x1a3f09))throw CliErrors[_0x35ef7e(0xdc)](_0x35ef7e(0xdd)+(_0x1a3f09||_0x35ef7e(0xd2))+'.',_0x35ef7e(0xe7)+SUPPORTED_PROVIDERS[_0x35ef7e(0xe5)](',\x20')+'.');const _0x737e89=_0x465462[_0x35ef7e(0xeb)](_0x35ef7e(0xdb))[_0x35ef7e(0xf3)]();if(!_0x737e89)throw CliErrors[_0x35ef7e(0xdc)](_0x35ef7e(0xe6),_0x35ef7e(0xef));return{'provider':_0x1a3f09,'accountId':_0x737e89};}function a84_0x310c(){const _0x25fa4f=['Unsupported\x20provider:\x20','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.','External\x20account\x20provider','string','10627379aCPbbR','4529604OHUuYK','write','49176040tOQKyE','join','--account-id\x20cannot\x20be\x20empty.','Pass\x20one\x20of:\x20','75266YwSULl','将当前\x20AccessKey\x20所属的平台用户绑定到指定协同生态外部账号;已有同\x20provider\x20绑定可能被替换。','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','str','dingtalk','5156qGSxDx','343890lCtDoS','Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.','External\x20account\x20binding\x20was\x20not\x20confirmed.','user-account','4882990GssycP','trim','40rJhUyT','(empty)','bind','includes','POST','2211FIwabi','apiError','2hpwAVp','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','Bound\x20current\x20user\x20to\x20external\x20provider\x20account.','account-id','validation'];a84_0x310c=function(){return _0x25fa4f;};return a84_0x310c();}function buildBindingData(_0x367e3c,_0x5a7ab0,_0x58ca6d){return{'operation':'bind','selector':{'provider':_0x367e3c,'accountId':_0x5a7ab0},'before':null,'after':{'provider':_0x367e3c,'accountId':_0x5a7ab0,'bound':!![]},'dryRun':_0x58ca6d,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a84_0x2549b8(0xf1),'command':a84_0x2549b8(0xd3),'description':a84_0x2549b8(0xd9),'risk':a84_0x2549b8(0xe3),'confirmationDescription':a84_0x2549b8(0xe9),'requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':'provider','type':a84_0x2549b8(0xe0),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a84_0x2549b8(0xdf)},{'name':a84_0x2549b8(0xdb),'type':a84_0x2549b8(0xe0),'required':!![],'description':'External\x20account\x20ID\x20for\x20the\x20selected\x20provider'}],async 'validate'(_0x382929){readBindingInput(_0x382929);},async 'dryRun'(_0x938722){const _0x5c6f38=a84_0x2549b8,{provider:_0x255965,accountId:_0x1c3784}=readBindingInput(_0x938722);return{...buildBindingData(_0x255965,_0x1c3784,!![]),'method':_0x5c6f38(0xd5),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x255965,'accountId':_0x1c3784}};},async 'execute'(_0x5d2a08){const _0x25e2ba=a84_0x2549b8,{provider:_0x5ac206,accountId:_0xe76997}=readBindingInput(_0x5d2a08),_0x2c932e=await bindExternalUserAccount(_0x5ac206,_0xe76997);if(_0x2c932e!==!![])throw CliErrors[_0x25e2ba(0xd7)](_0x25e2ba(0xf0),_0x25e2ba(0xde));return{'ok':!![],'data':buildBindingData(_0x5ac206,_0xe76997,![]),'message':_0x25e2ba(0xda)};}};
@@ -1 +1 @@
1
- function a85_0x541c(_0x47396d,_0x5933dc){_0x47396d=_0x47396d-0x1d4;const _0x43a918=a85_0x43a9();let _0x541c55=_0x43a918[_0x47396d];return _0x541c55;}function a85_0x43a9(){const _0x525026=['447192JVcbzm','9HqtoHR','146441EjAyeO','10JTGOlR','264EkAVTQ','1841670TVzfVd','409570fWMxso','8206056wvFbje','134769ugvfTT','1536210KyAfPQ','136RcqrAq','7FEOQZC'];a85_0x43a9=function(){return _0x525026;};return a85_0x43a9();}(function(_0x38bfd6,_0x535efa){const _0x42ca7f=a85_0x541c,_0x3a2225=_0x38bfd6();while(!![]){try{const _0x25717b=parseInt(_0x42ca7f(0x1db))/0x1*(-parseInt(_0x42ca7f(0x1dc))/0x2)+-parseInt(_0x42ca7f(0x1d5))/0x3*(-parseInt(_0x42ca7f(0x1d7))/0x4)+-parseInt(_0x42ca7f(0x1df))/0x5+-parseInt(_0x42ca7f(0x1d6))/0x6+-parseInt(_0x42ca7f(0x1d8))/0x7*(-parseInt(_0x42ca7f(0x1d4))/0x8)+-parseInt(_0x42ca7f(0x1da))/0x9*(-parseInt(_0x42ca7f(0x1de))/0xa)+-parseInt(_0x42ca7f(0x1dd))/0xb*(parseInt(_0x42ca7f(0x1d9))/0xc);if(_0x25717b===_0x535efa)break;else _0x3a2225['push'](_0x3a2225['shift']());}catch(_0xb1b561){_0x3a2225['push'](_0x3a2225['shift']());}}}(a85_0x43a9,0xbcaa0));import{bindUserAccount}from'../../commands/user-account/bind.js';export const userAccountDefinitions=[bindUserAccount];
1
+ (function(_0x2ebc15,_0x421373){const _0x5f330f=a85_0x10a4,_0x5b02b8=_0x2ebc15();while(!![]){try{const _0x1e9ee3=parseInt(_0x5f330f(0x123))/0x1+parseInt(_0x5f330f(0x12b))/0x2*(parseInt(_0x5f330f(0x127))/0x3)+parseInt(_0x5f330f(0x125))/0x4*(-parseInt(_0x5f330f(0x124))/0x5)+parseInt(_0x5f330f(0x128))/0x6+parseInt(_0x5f330f(0x126))/0x7+-parseInt(_0x5f330f(0x129))/0x8+parseInt(_0x5f330f(0x12a))/0x9;if(_0x1e9ee3===_0x421373)break;else _0x5b02b8['push'](_0x5b02b8['shift']());}catch(_0x431182){_0x5b02b8['push'](_0x5b02b8['shift']());}}}(a85_0x20e0,0xb578b));function a85_0x10a4(_0xe171c,_0x52f735){_0xe171c=_0xe171c-0x123;const _0x20e0be=a85_0x20e0();let _0x10a4c6=_0x20e0be[_0xe171c];return _0x10a4c6;}import{bindUserAccount}from'../../commands/user-account/bind.js';function a85_0x20e0(){const _0x304152=['8531712VauzQh','9477896raddvr','2169909swWUVN','57250nlBvoF','59894VRCfIP','681385NxUggG','8IvXoyf','1139432dkAKcQ','33BTPHoP'];a85_0x20e0=function(){return _0x304152;};return a85_0x20e0();}export const userAccountDefinitions=[bindUserAccount];
@@ -1 +1 @@
1
- const a86_0x5306fe=a86_0x5525;(function(_0x3f68dc,_0x41e0dc){const _0xa145b7=a86_0x5525,_0xbc871d=_0x3f68dc();while(!![]){try{const _0xab9899=-parseInt(_0xa145b7(0x1d1))/0x1*(-parseInt(_0xa145b7(0x1ca))/0x2)+parseInt(_0xa145b7(0x1c3))/0x3*(parseInt(_0xa145b7(0x1ee))/0x4)+-parseInt(_0xa145b7(0x1c6))/0x5*(parseInt(_0xa145b7(0x1fc))/0x6)+parseInt(_0xa145b7(0x1f4))/0x7+parseInt(_0xa145b7(0x1e8))/0x8+-parseInt(_0xa145b7(0x1d2))/0x9+-parseInt(_0xa145b7(0x1ec))/0xa*(parseInt(_0xa145b7(0x1d0))/0xb);if(_0xab9899===_0x41e0dc)break;else _0xbc871d['push'](_0xbc871d['shift']());}catch(_0x3f3bb2){_0xbc871d['push'](_0xbc871d['shift']());}}}(a86_0x3fb5,0xbfc2a));function a86_0x3fb5(){const _0x3b5fec=['Workspace\x20app\x20context\x20is\x20not\x20initialized.','\x20workspace\x20','items','init','app','将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','39312VclvQH','Missing\x20workspace\x20app\x20selector.','appName','authRequired','Conflicting\x20workspace\x20app\x20selectors.','appCode','为尚未绑定应用的当前工作目录初始化应用上下文','env','3zSASLh','workspace','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','830MLjWyI','Target\x20environment','\x22\x20not\x20found.','defaultApp','767818WvDmoP','apps','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','Workspace\x20app\x20context\x20is\x20already\x20initialized.','str','Invalid\x20env\x20\x22','11rGryog','2kXFaTn','11115423jBkgPE','appcode','accessKey','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','\x0aAccessKey:\x20not\x20written','shouldWriteEnv','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','length','trim','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','command','map','validation','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','workspace\x20','Run\x20`','Use\x20`','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','use','../../commands/app/remote-source.js','将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','11710512ZcjNVd','string','\x0aEnv:\x20','envName','14711570ZGmOIC','Usage:\x20','4408744VGjVxP','App\x20\x22','includes','write','App\x20code\x20to\x20bind\x20directly','修改当前工作目录已有绑定的应用上下文','8718276QlMuOY','Workspace\x20configured.\x0aConfig\x20file:\x20'];a86_0x3fb5=function(){return _0x3b5fec;};return a86_0x3fb5();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';function a86_0x5525(_0x137e47,_0x107586){_0x137e47=_0x137e47-0x1bf;const _0x3fb5eb=a86_0x3fb5();let _0x552564=_0x3fb5eb[_0x137e47];return _0x552564;}import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a86_0x5306fe(0x1fa),'type':'string','description':a86_0x5306fe(0x1d8)},{'name':a86_0x5306fe(0x1d3),'type':a86_0x5306fe(0x1e9),'description':a86_0x5306fe(0x1f2)},{'name':'env','type':a86_0x5306fe(0x1e9),'description':a86_0x5306fe(0x1c7),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x224325,_0x39ea2a){const _0x1658bd=a86_0x5306fe,_0x7e2f47=_0x224325[_0x1658bd(0x1ce)]('app')['trim'](),_0x3c72c3=_0x224325[_0x1658bd(0x1ce)](_0x1658bd(0x1d3))['trim'](),_0x5096f7=_0x224325[_0x1658bd(0x1ce)](_0x1658bd(0x1c2))[_0x1658bd(0x1db)](),_0x28aa22=resolveWorkspaceEnv(_0x5096f7||_0x224325[_0x1658bd(0x1eb)]||DEFAULT_CONFIG_VALUES[_0x1658bd(0x1c2)]);if(!_0x7e2f47&&!_0x3c72c3)throw CliErrors[_0x1658bd(0x1df)](_0x1658bd(0x1fd),_0x1658bd(0x1ed)+CLI_BIN_NAME+'\x20workspace\x20'+_0x39ea2a+_0x1658bd(0x1e4)+CLI_BIN_NAME+_0x1658bd(0x1f7)+_0x39ea2a+'\x20--appcode\x20<code>\x20[--env\x20daily]');if(_0x7e2f47&&_0x3c72c3)throw CliErrors[_0x1658bd(0x1df)](_0x1658bd(0x1bf),'Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.');const _0x2c3de8=resolveWriteConfigPath('project'),_0x2ccbc2=readConfigFile(_0x2c3de8);assertWorkspaceCommandState(_0x39ea2a,_0x2ccbc2);const _0x258d28=_0x3c72c3||await resolveRemoteAppCode({'command':_0x39ea2a,'appName':_0x7e2f47,'env':_0x28aa22,'accessKey':_0x224325['accessKey']});return writeWorkspaceConfig({'command':_0x39ea2a,'appName':_0x7e2f47,'appcode':_0x258d28,'env':_0x28aa22,'shouldWriteEnv':!!_0x5096f7,'accessKey':_0x224325['accessKey']},_0x2c3de8,_0x2ccbc2),{'ok':!![],'data':{'configPath':_0x2c3de8,'app':_0x7e2f47||null,'appcode':_0x258d28,'env':_0x5096f7?_0x28aa22:null,'accessKeyWritten':![],'command':_0x1658bd(0x1e1)+_0x39ea2a},'message':buildWorkspaceMessage(_0x2c3de8,_0x7e2f47,_0x258d28,_0x5096f7?_0x28aa22:undefined)};}async function resolveRemoteAppCode(_0x206989){const _0x2aca92=a86_0x5306fe;if(!_0x206989['accessKey'])throw CliErrors[_0x2aca92(0x1ff)](_0x2aca92(0x1cc)+CLI_BIN_NAME+_0x2aca92(0x1f7)+_0x206989[_0x2aca92(0x1dd)]+'.');const {setActiveAK:_0x492eb3}=await import('../../core/api-client.js'),{getRemoteAppList:_0x3e7e51}=await import(_0x2aca92(0x1e6));_0x492eb3(_0x206989[_0x2aca92(0x1d4)]);const _0x10a81c=await _0x3e7e51({'env':_0x206989[_0x2aca92(0x1c2)],'accessKey':_0x206989[_0x2aca92(0x1d4)],'noCache':![]}),_0x3c9546=findAppByName(_0x10a81c[_0x2aca92(0x1f8)],_0x206989[_0x2aca92(0x1fe)]);if(_0x3c9546&&!isRuntimeAccessibleApp(_0x3c9546))throw runtimeInaccessibleAppError(_0x3c9546,'\x22'+_0x206989[_0x2aca92(0x1fe)]+'\x22');const _0x313b7c=_0x3c9546?.[_0x2aca92(0x1c0)]?.[_0x2aca92(0x1db)]();if(_0x313b7c)return _0x313b7c;const _0x31e191=_0x10a81c[_0x2aca92(0x1f8)][_0x2aca92(0x1de)](_0x3ba918=>_0x3ba918['appName'])['filter'](Boolean),_0x5a0ff6=_0x31e191['length']?'Available\x20apps:\x20'+Array['from'](new Set(_0x31e191))['join'](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+_0x2aca92(0x1e0);throw CliErrors[_0x2aca92(0x1df)](_0x2aca92(0x1ef)+_0x206989['appName']+_0x2aca92(0x1c8),_0x5a0ff6);}function writeWorkspaceConfig(_0x393802,_0x2ad369,_0x5a1557){const _0x4f44a3=a86_0x5306fe;_0x393802[_0x4f44a3(0x1d7)]&&(_0x5a1557[_0x4f44a3(0x1c2)]=_0x393802[_0x4f44a3(0x1c2)]);if(_0x393802['appName']){const _0x211c92=isRecord(_0x5a1557[_0x4f44a3(0x1cb)])?{..._0x5a1557[_0x4f44a3(0x1cb)]}:{},_0x4e3b19=isRecord(_0x211c92[_0x393802['appName']])?_0x211c92[_0x393802[_0x4f44a3(0x1fe)]]:{};return _0x211c92[_0x393802[_0x4f44a3(0x1fe)]]={..._0x4e3b19,'appcode':_0x393802['appcode']},_0x5a1557[_0x4f44a3(0x1cb)]=_0x211c92,_0x5a1557['defaultApp']=_0x393802[_0x4f44a3(0x1fe)],delete _0x5a1557[_0x4f44a3(0x1d3)],delete _0x5a1557[_0x4f44a3(0x1fa)],writeAndReturn(_0x2ad369,_0x5a1557);}return _0x5a1557[_0x4f44a3(0x1d3)]=_0x393802[_0x4f44a3(0x1d3)],delete _0x5a1557[_0x4f44a3(0x1c9)],delete _0x5a1557[_0x4f44a3(0x1fa)],writeAndReturn(_0x2ad369,_0x5a1557);}function writeAndReturn(_0x33749d,_0x9c998e){return writeConfigFile(_0x33749d,_0x9c998e),_0x33749d;}function resolveWorkspaceEnv(_0x40c30e){const _0x32bfde=a86_0x5306fe;if(RUNTIME_ENV_VALUES[_0x32bfde(0x1f0)](_0x40c30e))return _0x40c30e;throw CliErrors['validation'](_0x32bfde(0x1cf)+_0x40c30e+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x346ae0,_0x200354,_0x5f4be1,_0x5a90ad){const _0x7c640f=a86_0x5306fe,_0x1a95db=_0x200354?_0x200354+'\x20('+_0x5f4be1+')':_0x5f4be1,_0x29f212=_0x5a90ad?_0x7c640f(0x1ea)+_0x5a90ad:'';return _0x7c640f(0x1f5)+_0x346ae0+'\x0aDefault\x20app:\x20'+_0x1a95db+_0x29f212+_0x7c640f(0x1d6);}function isRecord(_0x3fcf14){return typeof _0x3fcf14==='object'&&_0x3fcf14!==null&&!Array['isArray'](_0x3fcf14);}function hasWorkspaceAppBinding(_0x12f844){const _0x121f5b=a86_0x5306fe;if(typeof _0x12f844[_0x121f5b(0x1d3)]===_0x121f5b(0x1e9)&&_0x12f844[_0x121f5b(0x1d3)][_0x121f5b(0x1db)]()[_0x121f5b(0x1da)]>0x0)return!![];if(typeof _0x12f844[_0x121f5b(0x1c9)]!=='string'||!_0x12f844[_0x121f5b(0x1c9)][_0x121f5b(0x1db)]())return![];if(!isRecord(_0x12f844[_0x121f5b(0x1cb)]))return![];const _0x29c8ba=_0x12f844[_0x121f5b(0x1cb)][_0x12f844[_0x121f5b(0x1c9)][_0x121f5b(0x1db)]()];return isRecord(_0x29c8ba)&&typeof _0x29c8ba[_0x121f5b(0x1d3)]==='string'&&_0x29c8ba['appcode'][_0x121f5b(0x1db)]()[_0x121f5b(0x1da)]>0x0;}function assertWorkspaceCommandState(_0x1543fa,_0x154b8e){const _0x1ddc63=a86_0x5306fe,_0x4ac1d8=hasWorkspaceAppBinding(_0x154b8e);if(_0x1543fa===_0x1ddc63(0x1f9)&&_0x4ac1d8)throw CliErrors[_0x1ddc63(0x1df)](_0x1ddc63(0x1cd),_0x1ddc63(0x1e3)+CLI_BIN_NAME+_0x1ddc63(0x1d5)+CLI_BIN_NAME+_0x1ddc63(0x1dc));if(_0x1543fa===_0x1ddc63(0x1e5)&&!_0x4ac1d8)throw CliErrors[_0x1ddc63(0x1df)](_0x1ddc63(0x1f6),_0x1ddc63(0x1e2)+CLI_BIN_NAME+_0x1ddc63(0x1c5)+CLI_BIN_NAME+_0x1ddc63(0x1d9));}function makeWorkspaceCommand(_0x902f38){const _0x2efdb5=a86_0x5306fe;return{'service':_0x2efdb5(0x1c4),'command':_0x902f38,'description':_0x902f38===_0x2efdb5(0x1f9)?_0x2efdb5(0x1c1):_0x2efdb5(0x1f3),'risk':_0x2efdb5(0x1f1),'confirmationDescription':_0x902f38===_0x2efdb5(0x1f9)?_0x2efdb5(0x1fb):_0x2efdb5(0x1e7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x4c2515){return executeWorkspaceUse(_0x4c2515,_0x902f38);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a86_0x5306fe(0x1f9)),makeWorkspaceCommand(a86_0x5306fe(0x1e5))];
1
+ const a86_0x136f72=a86_0x3a2d;(function(_0x26293b,_0x3b1d08){const _0x1ecfb8=a86_0x3a2d,_0xde867e=_0x26293b();while(!![]){try{const _0xe1d6a5=parseInt(_0x1ecfb8(0x9e))/0x1+parseInt(_0x1ecfb8(0x95))/0x2+-parseInt(_0x1ecfb8(0x92))/0x3*(-parseInt(_0x1ecfb8(0x9a))/0x4)+-parseInt(_0x1ecfb8(0xa2))/0x5*(-parseInt(_0x1ecfb8(0xae))/0x6)+-parseInt(_0x1ecfb8(0xb3))/0x7+parseInt(_0x1ecfb8(0xc4))/0x8+-parseInt(_0x1ecfb8(0xa4))/0x9*(parseInt(_0x1ecfb8(0xb9))/0xa);if(_0xe1d6a5===_0x3b1d08)break;else _0xde867e['push'](_0xde867e['shift']());}catch(_0x52c3cf){_0xde867e['push'](_0xde867e['shift']());}}}(a86_0x7d6d,0x6c81e));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_0x136f72(0xcb),'description':a86_0x136f72(0xa6)},{'name':a86_0x136f72(0xc7),'type':'string','description':a86_0x136f72(0x97)},{'name':'env','type':a86_0x136f72(0xcb),'description':a86_0x136f72(0x9b),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x17983e,_0x32cd61){const _0x1d3410=a86_0x136f72,_0x1bee90=_0x17983e['str'](_0x1d3410(0xad))[_0x1d3410(0xa5)](),_0x28590e=_0x17983e[_0x1d3410(0x94)](_0x1d3410(0xc7))[_0x1d3410(0xa5)](),_0x596427=_0x17983e[_0x1d3410(0x94)](_0x1d3410(0xbf))[_0x1d3410(0xa5)](),_0x50d04d=resolveWorkspaceEnv(_0x596427||_0x17983e['envName']||DEFAULT_CONFIG_VALUES[_0x1d3410(0xbf)]);if(!_0x1bee90&&!_0x28590e)throw CliErrors[_0x1d3410(0x91)](_0x1d3410(0x9c),_0x1d3410(0xc5)+CLI_BIN_NAME+_0x1d3410(0xa1)+_0x32cd61+_0x1d3410(0xc8)+CLI_BIN_NAME+_0x1d3410(0xa1)+_0x32cd61+_0x1d3410(0xbe));if(_0x1bee90&&_0x28590e)throw CliErrors[_0x1d3410(0x91)](_0x1d3410(0xb4),_0x1d3410(0xce));const _0x5bd856=resolveWriteConfigPath(_0x1d3410(0xb0)),_0x5da177=readConfigFile(_0x5bd856);assertWorkspaceCommandState(_0x32cd61,_0x5da177);const _0x276092=_0x28590e||await resolveRemoteAppCode({'command':_0x32cd61,'appName':_0x1bee90,'env':_0x50d04d,'accessKey':_0x17983e['accessKey']});return writeWorkspaceConfig({'command':_0x32cd61,'appName':_0x1bee90,'appcode':_0x276092,'env':_0x50d04d,'shouldWriteEnv':!!_0x596427,'accessKey':_0x17983e[_0x1d3410(0xbd)]},_0x5bd856,_0x5da177),{'ok':!![],'data':{'configPath':_0x5bd856,'app':_0x1bee90||null,'appcode':_0x276092,'env':_0x596427?_0x50d04d:null,'accessKeyWritten':![],'command':_0x1d3410(0xca)+_0x32cd61},'message':buildWorkspaceMessage(_0x5bd856,_0x1bee90,_0x276092,_0x596427?_0x50d04d:undefined)};}async function resolveRemoteAppCode(_0x127f5a){const _0xccf97=a86_0x136f72;if(!_0x127f5a[_0xccf97(0xbd)])throw CliErrors[_0xccf97(0xa7)](_0xccf97(0x96)+CLI_BIN_NAME+_0xccf97(0xa1)+_0x127f5a[_0xccf97(0xa8)]+'.');const {setActiveAK:_0x5ab9f0}=await import(_0xccf97(0xc9)),{getRemoteAppList:_0x4ce93a}=await import(_0xccf97(0xab));_0x5ab9f0(_0x127f5a[_0xccf97(0xbd)]);const _0x4066f2=await _0x4ce93a({'env':_0x127f5a[_0xccf97(0xbf)],'accessKey':_0x127f5a['accessKey'],'noCache':![]}),_0x4b5286=findAppByName(_0x4066f2[_0xccf97(0xa0)],_0x127f5a[_0xccf97(0xaa)]);if(_0x4b5286&&!isRuntimeAccessibleApp(_0x4b5286))throw runtimeInaccessibleAppError(_0x4b5286,'\x22'+_0x127f5a[_0xccf97(0xaa)]+'\x22');const _0x2104be=_0x4b5286?.[_0xccf97(0x93)]?.[_0xccf97(0xa5)]();if(_0x2104be)return _0x2104be;const _0x917e20=_0x4066f2[_0xccf97(0xa0)][_0xccf97(0x9f)](_0x4bdc42=>_0x4bdc42['appName'])['filter'](Boolean),_0x1ce838=_0x917e20[_0xccf97(0x9d)]?'Available\x20apps:\x20'+Array[_0xccf97(0xc3)](new Set(_0x917e20))[_0xccf97(0xcd)](',\x20')+'.':_0xccf97(0xc0)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.';throw CliErrors[_0xccf97(0x91)]('App\x20\x22'+_0x127f5a[_0xccf97(0xaa)]+_0xccf97(0xba),_0x1ce838);}function writeWorkspaceConfig(_0x57d81c,_0x54be99,_0x16ef83){const _0x252642=a86_0x136f72;_0x57d81c['shouldWriteEnv']&&(_0x16ef83[_0x252642(0xbf)]=_0x57d81c[_0x252642(0xbf)]);if(_0x57d81c['appName']){const _0x47b85d=isRecord(_0x16ef83[_0x252642(0xbb)])?{..._0x16ef83[_0x252642(0xbb)]}:{},_0x2ce6d1=isRecord(_0x47b85d[_0x57d81c[_0x252642(0xaa)]])?_0x47b85d[_0x57d81c[_0x252642(0xaa)]]:{};return _0x47b85d[_0x57d81c[_0x252642(0xaa)]]={..._0x2ce6d1,'appcode':_0x57d81c[_0x252642(0xc7)]},_0x16ef83[_0x252642(0xbb)]=_0x47b85d,_0x16ef83[_0x252642(0xc1)]=_0x57d81c[_0x252642(0xaa)],delete _0x16ef83[_0x252642(0xc7)],delete _0x16ef83['app'],writeAndReturn(_0x54be99,_0x16ef83);}return _0x16ef83[_0x252642(0xc7)]=_0x57d81c[_0x252642(0xc7)],delete _0x16ef83[_0x252642(0xc1)],delete _0x16ef83[_0x252642(0xad)],writeAndReturn(_0x54be99,_0x16ef83);}function writeAndReturn(_0x3c1ca1,_0x18f637){return writeConfigFile(_0x3c1ca1,_0x18f637),_0x3c1ca1;}function resolveWorkspaceEnv(_0x5d228a){const _0x18e680=a86_0x136f72;if(RUNTIME_ENV_VALUES[_0x18e680(0xc6)](_0x5d228a))return _0x5d228a;throw CliErrors[_0x18e680(0x91)](_0x18e680(0xc2)+_0x5d228a+_0x18e680(0x98)+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x16de84,_0x2075d5,_0x4f2d46,_0x57297c){const _0x1b19f4=a86_0x136f72,_0x5971f3=_0x2075d5?_0x2075d5+'\x20('+_0x4f2d46+')':_0x4f2d46,_0x313500=_0x57297c?_0x1b19f4(0x90)+_0x57297c:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x16de84+_0x1b19f4(0xb7)+_0x5971f3+_0x313500+_0x1b19f4(0xaf);}function isRecord(_0x2f7c03){const _0x4cf665=a86_0x136f72;return typeof _0x2f7c03===_0x4cf665(0xa3)&&_0x2f7c03!==null&&!Array['isArray'](_0x2f7c03);}function hasWorkspaceAppBinding(_0x2ed620){const _0x115246=a86_0x136f72;if(typeof _0x2ed620['appcode']===_0x115246(0xcb)&&_0x2ed620['appcode'][_0x115246(0xa5)]()[_0x115246(0x9d)]>0x0)return!![];if(typeof _0x2ed620[_0x115246(0xc1)]!==_0x115246(0xcb)||!_0x2ed620[_0x115246(0xc1)][_0x115246(0xa5)]())return![];if(!isRecord(_0x2ed620[_0x115246(0xbb)]))return![];const _0xd3a589=_0x2ed620['apps'][_0x2ed620['defaultApp'][_0x115246(0xa5)]()];return isRecord(_0xd3a589)&&typeof _0xd3a589[_0x115246(0xc7)]===_0x115246(0xcb)&&_0xd3a589['appcode'][_0x115246(0xa5)]()[_0x115246(0x9d)]>0x0;}function assertWorkspaceCommandState(_0x132058,_0x3ccf70){const _0x365ab6=a86_0x136f72,_0x3dc70f=hasWorkspaceAppBinding(_0x3ccf70);if(_0x132058===_0x365ab6(0xb5)&&_0x3dc70f)throw CliErrors[_0x365ab6(0x91)]('Workspace\x20app\x20context\x20is\x20already\x20initialized.',_0x365ab6(0xb2)+CLI_BIN_NAME+_0x365ab6(0xb1)+CLI_BIN_NAME+'\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.');if(_0x132058==='use'&&!_0x3dc70f)throw CliErrors[_0x365ab6(0x91)](_0x365ab6(0xa9),_0x365ab6(0xc0)+CLI_BIN_NAME+_0x365ab6(0xb6)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20first.');}function makeWorkspaceCommand(_0x489226){const _0x2a6469=a86_0x136f72;return{'service':_0x2a6469(0xcc),'command':_0x489226,'description':_0x489226===_0x2a6469(0xb5)?_0x2a6469(0xb8):_0x2a6469(0xac),'risk':'write','confirmationDescription':_0x489226===_0x2a6469(0xb5)?_0x2a6469(0x99):_0x2a6469(0xcf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x4ad083){return executeWorkspaceUse(_0x4ad083,_0x489226);}};}function a86_0x3a2d(_0x40fc5d,_0x2fa197){_0x40fc5d=_0x40fc5d-0x90;const _0x7d6d1b=a86_0x7d6d();let _0x3a2d51=_0x7d6d1b[_0x40fc5d];return _0x3a2d51;}function a86_0x7d6d(){const _0x5c23f7=['Usage:\x20','includes','appcode','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','../../core/api-client.js','workspace\x20','string','workspace','join','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','\x0aEnv:\x20','validation','3vFcMfs','appCode','str','884080dZNTME','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','App\x20code\x20to\x20bind\x20directly','\x22.\x20Allowed:\x20','将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','1024864mvgEWf','Target\x20environment','Missing\x20workspace\x20app\x20selector.','length','319722lWbere','map','items','\x20workspace\x20','74290uOcdWo','object','360UgGhBt','trim','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','authRequired','command','Workspace\x20app\x20context\x20is\x20not\x20initialized.','appName','../../commands/app/remote-source.js','修改当前工作目录已有绑定的应用上下文','app','6AXSlqW','\x0aAccessKey:\x20not\x20written','project','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','Use\x20`','3132171fmWMOB','Conflicting\x20workspace\x20app\x20selectors.','init','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','\x0aDefault\x20app:\x20','为尚未绑定应用的当前工作目录初始化应用上下文','64790BKouOW','\x22\x20not\x20found.','apps','use','accessKey','\x20--appcode\x20<code>\x20[--env\x20daily]','env','Run\x20`','defaultApp','Invalid\x20env\x20\x22','from','945784MPCkco'];a86_0x7d6d=function(){return _0x5c23f7;};return a86_0x7d6d();}export const workspaceDefinitions=[makeWorkspaceCommand(a86_0x136f72(0xb5)),makeWorkspaceCommand(a86_0x136f72(0xbc))];
@@ -1 +1 @@
1
- const a87_0x41171d=a87_0x29b2;(function(_0xc45eaf,_0x774a8){const _0x1e198f=a87_0x29b2,_0x1186b2=_0xc45eaf();while(!![]){try{const _0x4546a0=-parseInt(_0x1e198f(0x1f4))/0x1*(-parseInt(_0x1e198f(0x1dd))/0x2)+parseInt(_0x1e198f(0x1ea))/0x3+-parseInt(_0x1e198f(0x1f1))/0x4+-parseInt(_0x1e198f(0x1e3))/0x5*(-parseInt(_0x1e198f(0x1e9))/0x6)+parseInt(_0x1e198f(0x1de))/0x7+parseInt(_0x1e198f(0x1f3))/0x8+parseInt(_0x1e198f(0x1e7))/0x9*(-parseInt(_0x1e198f(0x1fe))/0xa);if(_0x4546a0===_0x774a8)break;else _0x1186b2['push'](_0x1186b2['shift']());}catch(_0x51df4d){_0x1186b2['push'](_0x1186b2['shift']());}}}(a87_0xd3c9,0xca442));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_0x41171d(0x1e1)],'importable':!![]},'format':{'description':a87_0x41171d(0x1f2),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x41171d(0x1f5)],'importable':!![]},'pageSize':{'description':a87_0x41171d(0x1e6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a87_0x41171d(0x1fd),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a87_0x41171d(0x1e8),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':'Override\x20runtime\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a87_0x41171d(0x1df),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a87_0x41171d(0x1ee),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a87_0x41171d(0x1e2),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x41171d(0x1f6)],'importable':!![]},'locale':{'description':a87_0x41171d(0x1e0),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x41171d(0x1fa)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)[a87_0x41171d(0x1fb)](([,_0x42bfbf])=>_0x42bfbf[a87_0x41171d(0x1e4)])['map'](([_0x36983c])=>_0x36983c));export const CONFIG_ENUM_VALUES=Object[a87_0x41171d(0x1f7)](Object[a87_0x41171d(0x1ec)](CONFIG_FIELD_SCHEMAS)[a87_0x41171d(0x1fb)](([,_0x19b848])=>_0x19b848[a87_0x41171d(0x1dc)])['map'](([_0x38781b,_0x4df367])=>[_0x38781b,[..._0x4df367[a87_0x41171d(0x1dc)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a87_0x41171d(0x1ec)](CONFIG_FIELD_SCHEMAS)[a87_0x41171d(0x1fb)](([,_0x375ec3])=>_0x375ec3[a87_0x41171d(0x1f8)])[a87_0x41171d(0x1e5)](([_0x15d24b])=>_0x15d24b);export function getConfigFieldSchema(_0x11cf70){return CONFIG_FIELD_SCHEMAS[_0x11cf70];}export function getConfigEnumValues(_0x11e9c6){const _0xeb043=a87_0x41171d;return getConfigFieldSchema(_0x11e9c6)?.[_0xeb043(0x1dc)];}export function getConfigDefaultValue(_0x416344){const _0x1781d3=a87_0x41171d;return getConfigFieldSchema(_0x416344)?.[_0x1781d3(0x1f9)];}export function isTopLevelConfigKey(_0xbd4a4f){const _0x1f9c3e=a87_0x41171d;return TOP_LEVEL_CONFIG_KEYS[_0x1f9c3e(0x1ed)](_0xbd4a4f);}export function isLegacyCompatConfigKey(_0xde4240){const _0x4cef1f=a87_0x41171d;return getConfigFieldSchema(_0xde4240)?.[_0x4cef1f(0x1ef)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}function a87_0xd3c9(){const _0x39afd1=['Risk\x20level','110BPpOPW','cliSettableTopLevel','map','Default\x20page\x20size','9udoapb','Override\x20user\x20domain','302394HayiWn','7926pEVBJA','Config\x20key.\x20Top-level:\x20','entries','has','Access\x20key\x20(client-ak\x20auth)','legacyCompatOnly',';\x20local\x20alias:\x20apps.<alias>.appcode','3105008TUxOGk','Default\x20output\x20format','8947584XTSPmc','1vkEOjq','format','riskLevel','fromEntries','importable','defaultValue','locale','filter','join','Override\x20API\x20domain','9095810QKwKGV','enumValues','13538xRnOaW','1943746gwurha','Override\x20SkillHub\x20domain','Locale','env'];a87_0xd3c9=function(){return _0x39afd1;};return a87_0xd3c9();}export function formatConfigKeyList(_0x2e2920){const _0x3fd33f=a87_0x41171d;return[..._0x2e2920][_0x3fd33f(0x1fc)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}function a87_0x29b2(_0x37aa44,_0x58ae73){_0x37aa44=_0x37aa44-0x1dc;const _0xd3c984=a87_0xd3c9();let _0x29b2e5=_0xd3c984[_0x37aa44];return _0x29b2e5;}export function getConfigCommandKeyDescription(){const _0x388631=a87_0x41171d;return _0x388631(0x1eb)+getTopLevelConfigKeySummary()+_0x388631(0x1f0);}export function buildAppProfileListFields(_0x1e3ddc){return{'env':_0x1e3ddc,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a87_0x1b39d9=a87_0x1c95;(function(_0x346799,_0x35a3a3){const _0x3acece=a87_0x1c95,_0x2c12c5=_0x346799();while(!![]){try{const _0x222e43=-parseInt(_0x3acece(0x116))/0x1+-parseInt(_0x3acece(0x113))/0x2*(parseInt(_0x3acece(0x102))/0x3)+-parseInt(_0x3acece(0xfa))/0x4+-parseInt(_0x3acece(0xf9))/0x5*(-parseInt(_0x3acece(0x118))/0x6)+-parseInt(_0x3acece(0x111))/0x7*(-parseInt(_0x3acece(0x109))/0x8)+-parseInt(_0x3acece(0x10e))/0x9*(-parseInt(_0x3acece(0x10c))/0xa)+-parseInt(_0x3acece(0xfc))/0xb*(-parseInt(_0x3acece(0x112))/0xc);if(_0x222e43===_0x35a3a3)break;else _0x2c12c5['push'](_0x2c12c5['shift']());}catch(_0x551b27){_0x2c12c5['push'](_0x2c12c5['shift']());}}}(a87_0x344b,0x9923b));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a87_0x1b39d9(0xfd),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x1b39d9(0x10f)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['format'],'importable':!![]},'pageSize':{'description':a87_0x1b39d9(0x100),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a87_0x1b39d9(0x103),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a87_0x1b39d9(0x10b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a87_0x1b39d9(0x106),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a87_0x1b39d9(0x114),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a87_0x1b39d9(0x10d),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a87_0x1b39d9(0x110),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x1b39d9(0x105)],'importable':!![]},'locale':{'description':a87_0x1b39d9(0xff),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a87_0x1b39d9(0xfb)](CONFIG_FIELD_SCHEMAS)[a87_0x1b39d9(0x108)](([,_0x5a6054])=>_0x5a6054[a87_0x1b39d9(0x115)])['map'](([_0x34333d])=>_0x34333d));export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object[a87_0x1b39d9(0xfb)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x87668b])=>_0x87668b[a87_0x1b39d9(0xfe)])[a87_0x1b39d9(0x101)](([_0x24db97,_0x49802d])=>[_0x24db97,[..._0x49802d[a87_0x1b39d9(0xfe)]||[]]]));function a87_0x344b(){const _0xd19633=['Access\x20key\x20(client-ak\x20auth)','135XOheYG','env','Risk\x20level','7cequgU','58332GDWuXo','65752vueImT','Override\x20SkillHub\x20domain','cliSettableTopLevel','470872xQrcqV','join','450798JcbOKU','25EBsRRl','3975904wxzblV','entries','5434nsvtKI','Target\x20environment','enumValues','Locale','Default\x20page\x20size','map','99HXaHDu','Override\x20API\x20domain','importable','riskLevel','Override\x20runtime\x20domain','legacyCompatOnly','filter','2330008fnqIBl','defaultValue','Override\x20user\x20domain','72510ORDhCb'];a87_0x344b=function(){return _0xd19633;};return a87_0x344b();}export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a87_0x1b39d9(0xfb)](CONFIG_FIELD_SCHEMAS)[a87_0x1b39d9(0x108)](([,_0x22ee47])=>_0x22ee47[a87_0x1b39d9(0x104)])[a87_0x1b39d9(0x101)](([_0x36ae0d])=>_0x36ae0d);export function getConfigFieldSchema(_0x11e7be){return CONFIG_FIELD_SCHEMAS[_0x11e7be];}export function getConfigEnumValues(_0x1a3881){const _0x5274d9=a87_0x1b39d9;return getConfigFieldSchema(_0x1a3881)?.[_0x5274d9(0xfe)];}export function getConfigDefaultValue(_0x186429){const _0x1f2b9e=a87_0x1b39d9;return getConfigFieldSchema(_0x186429)?.[_0x1f2b9e(0x10a)];}export function isTopLevelConfigKey(_0x33b918){return TOP_LEVEL_CONFIG_KEYS['has'](_0x33b918);}export function isLegacyCompatConfigKey(_0x31b5ba){const _0x5e62bc=a87_0x1b39d9;return getConfigFieldSchema(_0x31b5ba)?.[_0x5e62bc(0x107)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x225420){const _0x4ec9ee=a87_0x1b39d9;return[..._0x225420][_0x4ec9ee(0x117)](',\x20');}function a87_0x1c95(_0x40dee0,_0x272d4c){_0x40dee0=_0x40dee0-0xf9;const _0x344bd6=a87_0x344b();let _0x1c95b8=_0x344bd6[_0x40dee0];return _0x1c95b8;}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0x29d06d){return{'env':_0x29d06d,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- const a88_0x31fbd8=a88_0x1b45;(function(_0x414d71,_0x15212f){const _0x3ce6f6=a88_0x1b45,_0x368f0a=_0x414d71();while(!![]){try{const _0x4d92c9=parseInt(_0x3ce6f6(0x67))/0x1+parseInt(_0x3ce6f6(0x6a))/0x2*(parseInt(_0x3ce6f6(0x6d))/0x3)+-parseInt(_0x3ce6f6(0x69))/0x4+-parseInt(_0x3ce6f6(0x6f))/0x5+parseInt(_0x3ce6f6(0x71))/0x6+parseInt(_0x3ce6f6(0x6c))/0x7+-parseInt(_0x3ce6f6(0x6b))/0x8*(-parseInt(_0x3ce6f6(0x66))/0x9);if(_0x4d92c9===_0x15212f)break;else _0x368f0a['push'](_0x368f0a['shift']());}catch(_0xdc2f44){_0x368f0a['push'](_0x368f0a['shift']());}}}(a88_0xf941,0x3b980));export const APP_PUBLISH_STATUS={'Published':a88_0x31fbd8(0x68),'Unpublished':a88_0x31fbd8(0x70)};function a88_0x1b45(_0x247f75,_0x4fa495){_0x247f75=_0x247f75-0x66;const _0xf941c2=a88_0xf941();let _0x1b4519=_0xf941c2[_0x247f75];return _0x1b4519;}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a88_0x31fbd8(0x6e)];function a88_0xf941(){const _0x522ded=['122316FHQMNJ','9ZvDpTo','75248XyUYfS','PUBLISHED','106880rPYpyc','106xDIEXs','603488zFaoDa','1133377jeUFlG','14394gFpAgi','Published','1582295ixrMun','UNPUBLISH'];a88_0xf941=function(){return _0x522ded;};return a88_0xf941();}
1
+ const a88_0x5170a3=a88_0x12b1;(function(_0x1c1cf0,_0xe43c64){const _0xdcc16b=a88_0x12b1,_0xc14372=_0x1c1cf0();while(!![]){try{const _0x52d889=-parseInt(_0xdcc16b(0x193))/0x1*(parseInt(_0xdcc16b(0x191))/0x2)+-parseInt(_0xdcc16b(0x18e))/0x3+parseInt(_0xdcc16b(0x190))/0x4+-parseInt(_0xdcc16b(0x18f))/0x5*(-parseInt(_0xdcc16b(0x18d))/0x6)+parseInt(_0xdcc16b(0x195))/0x7+-parseInt(_0xdcc16b(0x18c))/0x8+parseInt(_0xdcc16b(0x194))/0x9;if(_0x52d889===_0xe43c64)break;else _0xc14372['push'](_0xc14372['shift']());}catch(_0x19a7c0){_0xc14372['push'](_0xc14372['shift']());}}}(a88_0x8697,0x7db95));function a88_0x12b1(_0x2c198f,_0x38ff89){_0x2c198f=_0x2c198f-0x18c;const _0x86979=a88_0x8697();let _0x12b14d=_0x86979[_0x2c198f];return _0x12b14d;}export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a88_0x5170a3(0x192)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];function a88_0x8697(){const _0x2098f0=['1eugjlj','14279112setOSW','5296221UHrIoB','7508232ZVyXGr','6kVCpoP','2800056DEHKHz','3247980nmVpha','482860fCdjJw','1453272dzfUIC','UNPUBLISH'];a88_0x8697=function(){return _0x2098f0;};return a88_0x8697();}
@@ -1 +1 @@
1
- const a89_0x178754=a89_0x4925;function a89_0x4925(_0x22c802,_0x2a0802){_0x22c802=_0x22c802-0x152;const _0x36ed18=a89_0x36ed();let _0x4925ad=_0x36ed18[_0x22c802];return _0x4925ad;}(function(_0xf56845,_0xfc1f97){const _0x40cc60=a89_0x4925,_0x3a7403=_0xf56845();while(!![]){try{const _0x854283=-parseInt(_0x40cc60(0x158))/0x1*(parseInt(_0x40cc60(0x156))/0x2)+-parseInt(_0x40cc60(0x15a))/0x3*(-parseInt(_0x40cc60(0x154))/0x4)+-parseInt(_0x40cc60(0x157))/0x5+-parseInt(_0x40cc60(0x15b))/0x6+-parseInt(_0x40cc60(0x152))/0x7+-parseInt(_0x40cc60(0x15c))/0x8+parseInt(_0x40cc60(0x155))/0x9;if(_0x854283===_0xfc1f97)break;else _0x3a7403['push'](_0x3a7403['shift']());}catch(_0x1c8f21){_0x3a7403['push'](_0x3a7403['shift']());}}}(a89_0x36ed,0xc5505));export const AUTH_MODE={'ClientAk':a89_0x178754(0x153)};function a89_0x36ed(){const _0x2b988e=['20831058JKiEpx','2024234vXZafp','1570980EkZhun','1qKfgmv','ClientAk','315708SfZHfS','1801026cOdKlA','2457920knAuTu','5848311gCupiK','client-ak','48KIFLno'];a89_0x36ed=function(){return _0x2b988e;};return a89_0x36ed();}export function isAuthMode(_0x5de049){const _0xc0662c=a89_0x178754;return _0x5de049===AUTH_MODE[_0xc0662c(0x159)];}
1
+ const a89_0xeb9b12=a89_0x4e61;(function(_0x734c46,_0x5f4766){const _0x465ea0=a89_0x4e61,_0x5f6902=_0x734c46();while(!![]){try{const _0x36ae47=parseInt(_0x465ea0(0x123))/0x1+parseInt(_0x465ea0(0x128))/0x2*(-parseInt(_0x465ea0(0x126))/0x3)+parseInt(_0x465ea0(0x122))/0x4+-parseInt(_0x465ea0(0x127))/0x5*(-parseInt(_0x465ea0(0x12b))/0x6)+-parseInt(_0x465ea0(0x125))/0x7+parseInt(_0x465ea0(0x129))/0x8+parseInt(_0x465ea0(0x124))/0x9;if(_0x36ae47===_0x5f4766)break;else _0x5f6902['push'](_0x5f6902['shift']());}catch(_0x3382e0){_0x5f6902['push'](_0x5f6902['shift']());}}}(a89_0x4a7f,0x219e0));export const AUTH_MODE={'ClientAk':a89_0xeb9b12(0x12c)};function a89_0x4e61(_0x252890,_0x3bc88a){_0x252890=_0x252890-0x122;const _0x4a7fe5=a89_0x4a7f();let _0x4e616d=_0x4a7fe5[_0x252890];return _0x4e616d;}function a89_0x4a7f(){const _0xdf9f45=['client-ak','76360YPIoVa','148747hHmdpl','330444BcJGAR','1540749zJdHXf','15cdjZeQ','5MjJuFl','106906CtBplV','1902272cdqGzf','ClientAk','1096386OrwTXf'];a89_0x4a7f=function(){return _0xdf9f45;};return a89_0x4a7f();}export function isAuthMode(_0x40d10c){const _0x1d63d0=a89_0xeb9b12;return _0x40d10c===AUTH_MODE[_0x1d63d0(0x12a)];}
@@ -1 +1 @@
1
- function a90_0x2487(_0x2d57c6,_0x5d043b){_0x2d57c6=_0x2d57c6-0xea;const _0x157fc8=a90_0x157f();let _0x24872e=_0x157fc8[_0x2d57c6];return _0x24872e;}const a90_0x4a4b76=a90_0x2487;(function(_0x12192a,_0x1a12f9){const _0x51db5f=a90_0x2487,_0x142519=_0x12192a();while(!![]){try{const _0x59b084=parseInt(_0x51db5f(0xec))/0x1+-parseInt(_0x51db5f(0x115))/0x2+parseInt(_0x51db5f(0x112))/0x3+parseInt(_0x51db5f(0xfb))/0x4+parseInt(_0x51db5f(0xf5))/0x5*(parseInt(_0x51db5f(0xf6))/0x6)+parseInt(_0x51db5f(0xeb))/0x7+parseInt(_0x51db5f(0x104))/0x8*(-parseInt(_0x51db5f(0x103))/0x9);if(_0x59b084===_0x1a12f9)break;else _0x142519['push'](_0x142519['shift']());}catch(_0x5caeb2){_0x142519['push'](_0x142519['shift']());}}}(a90_0x157f,0x31f29));function a90_0x157f(){const _0x1503e2=['dry-run','verbose','appcode','Select\x20app\x20profile\x20by\x20name','807224unDqIh','app','params','SQL\x20query\x20code','env','meowKey','json\x20|\x20pretty\x20|\x20compress','dryRun','6433281hbeOGK','8QoICIg','Alias\x20for\x20--non-interactive','JSON\x20params\x20for\x20execute\x20commands','cliDisplayName','<code>','non-interactive','yes','production\x20|\x20development\x20|\x20daily','fromEntries','boolean','Use\x20global\x20config\x20scope','Output\x20format','name','string','307719IEOZxh','type','Clear\x20output','451586auWMxn','help','Preview\x20operation\x20without\x20executing','map','Environment','2290981MdUizx','368145rzRrBB','Record\x20ID','Verbose\x20output','format','<name>','sqlcode','<expr>','clear','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','100AJknlB','43614NzVkZU'];a90_0x157f=function(){return _0x1503e2;};return a90_0x157f();}import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a90_0x4a4b76(0x107)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a90_0x4a4b76(0xf9),'meowKey':a90_0x4a4b76(0xf9),'type':a90_0x4a4b76(0x111),'description':'Override\x20appcode','hint':a90_0x4a4b76(0x108)},{'name':a90_0x4a4b76(0xfc),'meowKey':'app','type':a90_0x4a4b76(0x111),'description':a90_0x4a4b76(0xfa),'hint':a90_0x4a4b76(0xf0)},{'name':a90_0x4a4b76(0xff),'meowKey':a90_0x4a4b76(0xff),'type':'string','description':a90_0x4a4b76(0xea),'hint':a90_0x4a4b76(0x10b)},{'name':'format','meowKey':a90_0x4a4b76(0xef),'type':'string','description':a90_0x4a4b76(0x10f),'hint':a90_0x4a4b76(0x101)},{'name':'jq','meowKey':'jq','type':'string','description':a90_0x4a4b76(0xf4),'hint':a90_0x4a4b76(0xf2)},{'name':a90_0x4a4b76(0xf7),'meowKey':a90_0x4a4b76(0x102),'type':a90_0x4a4b76(0x10d),'description':a90_0x4a4b76(0x117)},{'name':a90_0x4a4b76(0x10a),'meowKey':'yes','type':a90_0x4a4b76(0x10d),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a90_0x4a4b76(0x109),'meowKey':'nonInteractive','type':a90_0x4a4b76(0x10d),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':'global','type':a90_0x4a4b76(0x10d),'description':a90_0x4a4b76(0x10e)},{'name':'ci','meowKey':'ci','type':'boolean','description':a90_0x4a4b76(0x105),'hidden':!![]},{'name':a90_0x4a4b76(0x116),'meowKey':a90_0x4a4b76(0x116),'type':a90_0x4a4b76(0x10d),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':'string','description':a90_0x4a4b76(0xed),'hidden':!![]},{'name':'name','meowKey':a90_0x4a4b76(0x110),'type':a90_0x4a4b76(0x111),'description':'Name\x20filter','hidden':!![]},{'name':'sqlcode','meowKey':a90_0x4a4b76(0xf1),'type':'string','description':a90_0x4a4b76(0xfe),'hidden':!![]},{'name':a90_0x4a4b76(0xfd),'meowKey':a90_0x4a4b76(0xfd),'type':a90_0x4a4b76(0x111),'description':a90_0x4a4b76(0x106),'hidden':!![]},{'name':a90_0x4a4b76(0xf8),'meowKey':a90_0x4a4b76(0xf8),'type':'boolean','description':a90_0x4a4b76(0xee),'hidden':!![]},{'name':a90_0x4a4b76(0xf3),'meowKey':a90_0x4a4b76(0xf3),'type':a90_0x4a4b76(0x10d),'description':a90_0x4a4b76(0x114),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode','app',a90_0x4a4b76(0xff),a90_0x4a4b76(0xef),'jq',a90_0x4a4b76(0xf7),a90_0x4a4b76(0x10a),a90_0x4a4b76(0x109),'ci']);export function buildMeowFlags(){const _0x4e4d05=a90_0x4a4b76;return Object[_0x4e4d05(0x10c)](GLOBAL_FLAGS[_0x4e4d05(0x118)](_0x414fc2=>[_0x414fc2[_0x4e4d05(0x100)],{'type':_0x414fc2[_0x4e4d05(0x113)]}]));}
1
+ const a90_0x672207=a90_0x3978;(function(_0x46a146,_0xb50c29){const _0x47c7e4=a90_0x3978,_0x53ab87=_0x46a146();while(!![]){try{const _0xc781e0=parseInt(_0x47c7e4(0x16c))/0x1+parseInt(_0x47c7e4(0x17d))/0x2+-parseInt(_0x47c7e4(0x166))/0x3+parseInt(_0x47c7e4(0x174))/0x4+parseInt(_0x47c7e4(0x16a))/0x5*(parseInt(_0x47c7e4(0x183))/0x6)+-parseInt(_0x47c7e4(0x17b))/0x7+-parseInt(_0x47c7e4(0x163))/0x8*(parseInt(_0x47c7e4(0x168))/0x9);if(_0xc781e0===_0xb50c29)break;else _0x53ab87['push'](_0x53ab87['shift']());}catch(_0xfccffa){_0x53ab87['push'](_0x53ab87['shift']());}}}(a90_0x427e,0xd362e));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a90_0x672207(0x16f)];function a90_0x3978(_0x4ac7b0,_0x5036c2){_0x4ac7b0=_0x4ac7b0-0x161;const _0x427ee9=a90_0x427e();let _0x397816=_0x427ee9[_0x4ac7b0];return _0x397816;}export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a90_0x672207(0x162)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a90_0x427e(){const _0x3562fc=['non-interactive','<code>','534CnqbxZ','<name>','JSON\x20params\x20for\x20execute\x20commands','production\x20|\x20development\x20|\x20daily','sqlcode','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','Select\x20app\x20profile\x20by\x20name','dryRun','Name\x20filter','appcode','clear','Environment','json\x20|\x20pretty\x20|\x20compress','env','boolean','cliDisplayName','24GufyHm','dry-run','params','4346142fpVOtk','type','890523yObXIV','map','95385xZdryq','help','342033UTasQf','app','string','cliBinName','meowKey','yes','Use\x20global\x20config\x20scope','name','3980640cGFSiQ','Output\x20format','format','Verbose\x20output','<expr>','nonInteractive','SQL\x20query\x20code','10283315NlLRcN','global','2090784ZfPmSI','verbose','Preview\x20operation\x20without\x20executing','Clear\x20output'];a90_0x427e=function(){return _0x3562fc;};return a90_0x427e();}export const GLOBAL_FLAGS=[{'name':a90_0x672207(0x18c),'meowKey':a90_0x672207(0x18c),'type':a90_0x672207(0x16e),'description':'Override\x20appcode','hint':a90_0x672207(0x182)},{'name':a90_0x672207(0x16d),'meowKey':'app','type':a90_0x672207(0x16e),'description':a90_0x672207(0x189),'hint':a90_0x672207(0x184)},{'name':a90_0x672207(0x190),'meowKey':a90_0x672207(0x190),'type':a90_0x672207(0x16e),'description':a90_0x672207(0x18e),'hint':a90_0x672207(0x186)},{'name':'format','meowKey':a90_0x672207(0x176),'type':a90_0x672207(0x16e),'description':a90_0x672207(0x175),'hint':a90_0x672207(0x18f)},{'name':'jq','meowKey':'jq','type':a90_0x672207(0x16e),'description':a90_0x672207(0x188),'hint':a90_0x672207(0x178)},{'name':'dry-run','meowKey':a90_0x672207(0x18a),'type':'boolean','description':a90_0x672207(0x17f)},{'name':a90_0x672207(0x171),'meowKey':a90_0x672207(0x171),'type':a90_0x672207(0x161),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a90_0x672207(0x181),'meowKey':a90_0x672207(0x179),'type':'boolean','description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a90_0x672207(0x17c),'meowKey':'global','type':a90_0x672207(0x161),'description':a90_0x672207(0x172)},{'name':'ci','meowKey':'ci','type':a90_0x672207(0x161),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a90_0x672207(0x16b),'meowKey':a90_0x672207(0x16b),'type':'boolean','description':'Show\x20help'},{'name':'id','meowKey':'id','type':a90_0x672207(0x16e),'description':'Record\x20ID','hidden':!![]},{'name':'name','meowKey':a90_0x672207(0x173),'type':a90_0x672207(0x16e),'description':a90_0x672207(0x18b),'hidden':!![]},{'name':a90_0x672207(0x187),'meowKey':'sqlcode','type':a90_0x672207(0x16e),'description':a90_0x672207(0x17a),'hidden':!![]},{'name':'params','meowKey':a90_0x672207(0x165),'type':a90_0x672207(0x16e),'description':a90_0x672207(0x185),'hidden':!![]},{'name':'verbose','meowKey':a90_0x672207(0x17e),'type':a90_0x672207(0x161),'description':a90_0x672207(0x177),'hidden':!![]},{'name':a90_0x672207(0x18d),'meowKey':a90_0x672207(0x18d),'type':'boolean','description':a90_0x672207(0x180),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a90_0x672207(0x18c),a90_0x672207(0x16d),a90_0x672207(0x190),a90_0x672207(0x176),'jq',a90_0x672207(0x164),a90_0x672207(0x171),a90_0x672207(0x181),'ci']);export function buildMeowFlags(){const _0x398b98=a90_0x672207;return Object['fromEntries'](GLOBAL_FLAGS[_0x398b98(0x169)](_0x2085f9=>[_0x2085f9[_0x398b98(0x170)],{'type':_0x2085f9[_0x398b98(0x167)]}]));}
@@ -1 +1 @@
1
- const a91_0x5d75fd=a91_0x2509;function a91_0x2509(_0x1e261a,_0xfaf89){_0x1e261a=_0x1e261a-0x1b3;const _0x11157a=a91_0x1115();let _0x250929=_0x11157a[_0x1e261a];return _0x250929;}function a91_0x1115(){const _0x947440=['en-US','write','12oFfdhz','main','1367004vJsRHh','1851367Jpclik','4031019iaRfvw','compress','168645kpNokr','86081JweZIu','production','673365SwLGnX','103886gpcVDw','8mqCjJC'];a91_0x1115=function(){return _0x947440;};return a91_0x1115();}(function(_0x2fc430,_0x4f8d35){const _0x5b2c77=a91_0x2509,_0x1ccdda=_0x2fc430();while(!![]){try{const _0x3ba591=parseInt(_0x5b2c77(0x1c0))/0x1+-parseInt(_0x5b2c77(0x1b5))/0x2+parseInt(_0x5b2c77(0x1bf))/0x3*(-parseInt(_0x5b2c77(0x1b9))/0x4)+-parseInt(_0x5b2c77(0x1b4))/0x5+parseInt(_0x5b2c77(0x1bb))/0x6+parseInt(_0x5b2c77(0x1bc))/0x7*(-parseInt(_0x5b2c77(0x1b6))/0x8)+parseInt(_0x5b2c77(0x1bd))/0x9;if(_0x3ba591===_0x4f8d35)break;else _0x1ccdda['push'](_0x1ccdda['shift']());}catch(_0x59706e){_0x1ccdda['push'](_0x1ccdda['shift']());}}}(a91_0x1115,0x22af0));export const DEFAULT_APP_PROFILE_NAME=a91_0x5d75fd(0x1ba);export const DEFAULT_CONFIG_VALUES={'env':a91_0x5d75fd(0x1b3),'format':a91_0x5d75fd(0x1be),'locale':a91_0x5d75fd(0x1b7),'riskLevel':a91_0x5d75fd(0x1b8)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a91_0x5d75fd(0x1be);
1
+ const a91_0x5564a6=a91_0x31c2;(function(_0x2b7562,_0x119aa9){const _0x138ca6=a91_0x31c2,_0x10c645=_0x2b7562();while(!![]){try{const _0x5531ac=parseInt(_0x138ca6(0x12c))/0x1+-parseInt(_0x138ca6(0x129))/0x2+-parseInt(_0x138ca6(0x12b))/0x3*(-parseInt(_0x138ca6(0x12a))/0x4)+-parseInt(_0x138ca6(0x127))/0x5*(parseInt(_0x138ca6(0x131))/0x6)+parseInt(_0x138ca6(0x12d))/0x7+-parseInt(_0x138ca6(0x130))/0x8*(-parseInt(_0x138ca6(0x12f))/0x9)+-parseInt(_0x138ca6(0x128))/0xa;if(_0x5531ac===_0x119aa9)break;else _0x10c645['push'](_0x10c645['shift']());}catch(_0x2f97a6){_0x10c645['push'](_0x10c645['shift']());}}}(a91_0x25a7,0xc6f42));export const DEFAULT_APP_PROFILE_NAME='main';function a91_0x31c2(_0x3969d8,_0x3930b2){_0x3969d8=_0x3969d8-0x126;const _0x25a7e0=a91_0x25a7();let _0x31c20b=_0x25a7e0[_0x3969d8];return _0x31c20b;}export const DEFAULT_CONFIG_VALUES={'env':a91_0x5564a6(0x12e),'format':a91_0x5564a6(0x126),'locale':'en-US','riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a91_0x5564a6(0x126);function a91_0x25a7(){const _0x111c4c=['7693518tXSnsr','production','4974741xDVfXy','16ADvMTp','1446BfJZda','compress','20245yEFPfg','20658510guBxVA','2254966SXZuDP','113128jADCUm','159bXlZCk','1280539fyFjKt'];a91_0x25a7=function(){return _0x111c4c;};return a91_0x25a7();}
@@ -1 +1 @@
1
- const a92_0x183ffd=a92_0x5aac;(function(_0x5eac12,_0x16e460){const _0x4fe061=a92_0x5aac,_0x183846=_0x5eac12();while(!![]){try{const _0x174d1e=parseInt(_0x4fe061(0xa6))/0x1+parseInt(_0x4fe061(0xab))/0x2*(-parseInt(_0x4fe061(0xa7))/0x3)+parseInt(_0x4fe061(0xaa))/0x4+-parseInt(_0x4fe061(0xac))/0x5+-parseInt(_0x4fe061(0xa5))/0x6*(parseInt(_0x4fe061(0xae))/0x7)+-parseInt(_0x4fe061(0xa4))/0x8+parseInt(_0x4fe061(0xa9))/0x9*(parseInt(_0x4fe061(0xa8))/0xa);if(_0x174d1e===_0x16e460)break;else _0x183846['push'](_0x183846['shift']());}catch(_0x4c002d){_0x183846['push'](_0x183846['shift']());}}}(a92_0x2782,0xf4224));import{PRODUCT_CONFIG}from'../constant/product.js';function a92_0x2782(){const _0x26ba5b=['npmRegistryBaseUrl','6247648QItpHs','6pHbVeC','31210lcgUID','1191euCeDD','5870HXgvdO','70758SaMGau','577016BfuSTb','7262xVyTnr','3233720YNNRfY','npmPackageName','6448953CGSAIU','skillSource'];a92_0x2782=function(){return _0x26ba5b;};return a92_0x2782();}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a92_0x183ffd(0xad)];function a92_0x5aac(_0x344b3f,_0x211550){_0x344b3f=_0x344b3f-0xa3;const _0x27822a=a92_0x2782();let _0x5aacd6=_0x27822a[_0x344b3f];return _0x5aacd6;}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a92_0x183ffd(0xaf)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a92_0x183ffd(0xa3)];
1
+ const a92_0x263027=a92_0x1ae1;(function(_0x1e9cb4,_0x5b1995){const _0x39992b=a92_0x1ae1,_0x22ed0f=_0x1e9cb4();while(!![]){try{const _0x43824c=parseInt(_0x39992b(0x186))/0x1+-parseInt(_0x39992b(0x17c))/0x2*(-parseInt(_0x39992b(0x183))/0x3)+-parseInt(_0x39992b(0x17d))/0x4+-parseInt(_0x39992b(0x17f))/0x5*(-parseInt(_0x39992b(0x185))/0x6)+parseInt(_0x39992b(0x17e))/0x7+parseInt(_0x39992b(0x184))/0x8+-parseInt(_0x39992b(0x181))/0x9;if(_0x43824c===_0x5b1995)break;else _0x22ed0f['push'](_0x22ed0f['shift']());}catch(_0x478bb1){_0x22ed0f['push'](_0x22ed0f['shift']());}}}(a92_0x5301,0x1a535));import{PRODUCT_CONFIG}from'../constant/product.js';function a92_0x1ae1(_0x8c70a4,_0x810d59){_0x8c70a4=_0x8c70a4-0x17c;const _0x5301c5=a92_0x5301();let _0x1ae174=_0x5301c5[_0x8c70a4];return _0x1ae174;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a92_0x263027(0x182)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];function a92_0x5301(){const _0x1cf98f=['81576dBagnU','304934spXlYV','5gRfvmE','npmRegistryBaseUrl','3806901vhiHSF','npmPackageName','6hjhRWs','1236872goYqbx','106878ystADd','139346IDwnHb','195882PhmJMb'];a92_0x5301=function(){return _0x1cf98f;};return a92_0x5301();}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a92_0x263027(0x180)];
@@ -1 +1 @@
1
- const a93_0x3af66f=a93_0x6b7a;function a93_0x6b7a(_0x365ee6,_0x822de2){_0x365ee6=_0x365ee6-0x1bb;const _0x458eb6=a93_0x458e();let _0x6b7ae8=_0x458eb6[_0x365ee6];return _0x6b7ae8;}(function(_0x182046,_0x52e83c){const _0x127370=a93_0x6b7a,_0x3c32bc=_0x182046();while(!![]){try{const _0x5ee9a3=-parseInt(_0x127370(0x1c6))/0x1+parseInt(_0x127370(0x1be))/0x2*(parseInt(_0x127370(0x1bb))/0x3)+parseInt(_0x127370(0x1c4))/0x4+-parseInt(_0x127370(0x1c2))/0x5*(parseInt(_0x127370(0x1c0))/0x6)+parseInt(_0x127370(0x1cb))/0x7+parseInt(_0x127370(0x1bf))/0x8+-parseInt(_0x127370(0x1bc))/0x9;if(_0x5ee9a3===_0x52e83c)break;else _0x3c32bc['push'](_0x3c32bc['shift']());}catch(_0x22f57f){_0x3c32bc['push'](_0x3c32bc['shift']());}}}(a93_0x458e,0xbd2a7));function a93_0x458e(){const _0x521cbc=['apiDomain','user','289164kLLFHu','6683661GSdrFG','userDomain','16AZMAzK','5088184isHtFQ','402vcnIXm','production','64510UyUpie','domains','4091828koMyQt','nonProduction','718945UIoNSc','skillHubDomain','api','runtime','skillhub','4695229WcdQiY'];a93_0x458e=function(){return _0x521cbc;};return a93_0x458e();}import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x1ba1a4){const _0x5d9a95=a93_0x6b7a;customApiDomain=_0x1ba1a4?.[_0x5d9a95(0x1cc)],customUserDomain=_0x1ba1a4?.[_0x5d9a95(0x1bd)],customRuntimeDomain=_0x1ba1a4?.['runtimeDomain'],customSkillHubDomain=_0x1ba1a4?.[_0x5d9a95(0x1c7)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x3af66f(0x1c3)][a93_0x3af66f(0x1c1)][a93_0x3af66f(0x1cd)]:PRODUCT_CONFIG['domains']['nonProduction'][a93_0x3af66f(0x1cd)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a93_0x3af66f(0x1c1)][a93_0x3af66f(0x1c8)]:PRODUCT_CONFIG[a93_0x3af66f(0x1c3)]['nonProduction'][a93_0x3af66f(0x1c8)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x3af66f(0x1c3)]['production'][a93_0x3af66f(0x1c9)]:PRODUCT_CONFIG[a93_0x3af66f(0x1c3)][a93_0x3af66f(0x1c5)]['runtime']);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x3af66f(0x1c3)]['production'][a93_0x3af66f(0x1ca)]:PRODUCT_CONFIG[a93_0x3af66f(0x1c3)][a93_0x3af66f(0x1c5)][a93_0x3af66f(0x1ca)]);
1
+ const a93_0x3e1237=a93_0x3d3a;(function(_0x5a1cd5,_0x813d39){const _0x15a662=a93_0x3d3a,_0x2d4abf=_0x5a1cd5();while(!![]){try{const _0x4e88e8=parseInt(_0x15a662(0xa2))/0x1*(-parseInt(_0x15a662(0xa3))/0x2)+parseInt(_0x15a662(0x93))/0x3+-parseInt(_0x15a662(0x94))/0x4+parseInt(_0x15a662(0x92))/0x5*(-parseInt(_0x15a662(0xa0))/0x6)+parseInt(_0x15a662(0x97))/0x7*(-parseInt(_0x15a662(0x99))/0x8)+-parseInt(_0x15a662(0x95))/0x9*(-parseInt(_0x15a662(0x90))/0xa)+parseInt(_0x15a662(0x98))/0xb*(parseInt(_0x15a662(0x9d))/0xc);if(_0x4e88e8===_0x813d39)break;else _0x2d4abf['push'](_0x2d4abf['shift']());}catch(_0x13a0aa){_0x2d4abf['push'](_0x2d4abf['shift']());}}}(a93_0xf6fe,0x4612d));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x392608){const _0x33f6b8=a93_0x3d3a;customApiDomain=_0x392608?.[_0x33f6b8(0x91)],customUserDomain=_0x392608?.['userDomain'],customRuntimeDomain=_0x392608?.[_0x33f6b8(0x9a)],customSkillHubDomain=_0x392608?.[_0x33f6b8(0x8f)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x3e1237(0xa1)][a93_0x3e1237(0x9e)][a93_0x3e1237(0x96)]:PRODUCT_CONFIG[a93_0x3e1237(0xa1)][a93_0x3e1237(0x9b)][a93_0x3e1237(0x96)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x3e1237(0xa1)]['production'][a93_0x3e1237(0x9c)]:PRODUCT_CONFIG[a93_0x3e1237(0xa1)][a93_0x3e1237(0x9b)][a93_0x3e1237(0x9c)]);function a93_0x3d3a(_0x5150e6,_0x5d6921){_0x5150e6=_0x5150e6-0x8f;const _0xf6fe38=a93_0xf6fe();let _0x3d3ab2=_0xf6fe38[_0x5150e6];return _0x3d3ab2;}function a93_0xf6fe(){const _0x45b0aa=['runtimeDomain','nonProduction','api','2589972spNLst','production','runtime','12oqadNL','domains','299xDiysE','8bniccq','skillHubDomain','60GQzvDK','apiDomain','603010bJgSmy','1363398PVIegT','1417600FRcxBF','113976XQjCDx','user','182679AutJfu','22INjjVA','24fhRHPT'];a93_0xf6fe=function(){return _0x45b0aa;};return a93_0xf6fe();}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x3e1237(0xa1)][a93_0x3e1237(0x9e)][a93_0x3e1237(0x9f)]:PRODUCT_CONFIG['domains']['nonProduction'][a93_0x3e1237(0x9f)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x3e1237(0xa1)][a93_0x3e1237(0x9e)]['skillhub']:PRODUCT_CONFIG[a93_0x3e1237(0xa1)][a93_0x3e1237(0x9b)]['skillhub']);
@@ -1 +1 @@
1
- const a94_0x2029c4=a94_0x368d;(function(_0x21c94e,_0x5024d9){const _0x1606ae=a94_0x368d,_0x1c6c03=_0x21c94e();while(!![]){try{const _0xe57ee0=-parseInt(_0x1606ae(0xda))/0x1*(-parseInt(_0x1606ae(0xd7))/0x2)+-parseInt(_0x1606ae(0xd9))/0x3+parseInt(_0x1606ae(0xd8))/0x4+parseInt(_0x1606ae(0xde))/0x5+parseInt(_0x1606ae(0xdc))/0x6*(parseInt(_0x1606ae(0xdb))/0x7)+parseInt(_0x1606ae(0xe5))/0x8*(-parseInt(_0x1606ae(0xdd))/0x9)+parseInt(_0x1606ae(0xe1))/0xa*(-parseInt(_0x1606ae(0xe4))/0xb);if(_0xe57ee0===_0x5024d9)break;else _0x1c6c03['push'](_0x1c6c03['shift']());}catch(_0x8c4027){_0x1c6c03['push'](_0x1c6c03['shift']());}}}(a94_0x5996,0x836e7));import{productEnv}from'../constant/product.js';function a94_0x368d(_0x55dc7e,_0x556b04){_0x55dc7e=_0x55dc7e-0xd7;const _0x59965d=a94_0x5996();let _0x368d18=_0x59965d[_0x55dc7e];return _0x368d18;}export const RUNTIME_ENV_VALUES=[a94_0x2029c4(0xdf),a94_0x2029c4(0xe7),'daily'];export function normalizeEnv(_0x5af66e){const _0x55b587=a94_0x2029c4;return _0x5af66e===_0x55b587(0xe0)?_0x55b587(0xdf):_0x5af66e;}export function isProduction(_0x4ff016){return normalizeEnv(_0x4ff016)==='production';}export function isDaily(_0xc78f84){const _0x8c4e7a=a94_0x2029c4;return normalizeEnv(_0xc78f84)===_0x8c4e7a(0xe6);}export function isDev(_0x3c4318){const _0x2e62d8=a94_0x2029c4,_0x351914=normalizeEnv(_0x3c4318);return _0x351914==='development'||_0x351914===_0x2e62d8(0xe3);}let env=normalizeEnv(productEnv(a94_0x2029c4(0xe2))||a94_0x2029c4(0xdf));export function getEnv(){return env;}function a94_0x5996(){const _0x3f4bd2=['733302QjnDDF','9tMbSaL','4818210aIyDvW','production','online','4430FMDXXJ','ENV','dev','3058XNeMSw','7006424hyUocj','daily','development','470curMVy','1928204jLNjQG','2778585hFxzbl','3811DYDVmW','7xMkxrQ'];a94_0x5996=function(){return _0x3f4bd2;};return a94_0x5996();}export function initEnv(_0x19339e){env=normalizeEnv(_0x19339e);}
1
+ function a94_0x1f74(){const _0x2008c1=['76170FjvZmi','dev','production','100AltClL','5034pVTMHq','2060724CpVvBg','1413FXTEfm','13755IeLywd','1191659cSwPaL','31976vvTZGh','242SkRUCj','21893030cuFFIu','daily','development'];a94_0x1f74=function(){return _0x2008c1;};return a94_0x1f74();}const a94_0x262bc4=a94_0x3aa3;(function(_0x50885c,_0x49bb91){const _0x3dea1d=a94_0x3aa3,_0x5f0db9=_0x50885c();while(!![]){try{const _0x3c5c5d=parseInt(_0x3dea1d(0x1c7))/0x1*(-parseInt(_0x3dea1d(0x1cf))/0x2)+-parseInt(_0x3dea1d(0x1c4))/0x3*(parseInt(_0x3dea1d(0x1ce))/0x4)+parseInt(_0x3dea1d(0x1cb))/0x5+-parseInt(_0x3dea1d(0x1c2))/0x6+-parseInt(_0x3dea1d(0x1c5))/0x7+-parseInt(_0x3dea1d(0x1c6))/0x8*(parseInt(_0x3dea1d(0x1c3))/0x9)+parseInt(_0x3dea1d(0x1c8))/0xa;if(_0x3c5c5d===_0x49bb91)break;else _0x5f0db9['push'](_0x5f0db9['shift']());}catch(_0x5e80c1){_0x5f0db9['push'](_0x5f0db9['shift']());}}}(a94_0x1f74,0x52e7a));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a94_0x262bc4(0x1cd),a94_0x262bc4(0x1ca),a94_0x262bc4(0x1c9)];export function normalizeEnv(_0x3f9fab){return _0x3f9fab==='online'?'production':_0x3f9fab;}export function isProduction(_0x746fe){const _0x17ac7c=a94_0x262bc4;return normalizeEnv(_0x746fe)===_0x17ac7c(0x1cd);}function a94_0x3aa3(_0x5d9892,_0x104da5){_0x5d9892=_0x5d9892-0x1c2;const _0x1f745e=a94_0x1f74();let _0x3aa376=_0x1f745e[_0x5d9892];return _0x3aa376;}export function isDaily(_0x5c7024){const _0x3fe56d=a94_0x262bc4;return normalizeEnv(_0x5c7024)===_0x3fe56d(0x1c9);}export function isDev(_0x5b0a72){const _0x4cf69e=a94_0x262bc4,_0x4b3d0c=normalizeEnv(_0x5b0a72);return _0x4b3d0c===_0x4cf69e(0x1ca)||_0x4b3d0c===_0x4cf69e(0x1cc);}let env=normalizeEnv(productEnv('ENV')||a94_0x262bc4(0x1cd));export function getEnv(){return env;}export function initEnv(_0x2c07e8){env=normalizeEnv(_0x2c07e8);}
@@ -1 +1 @@
1
- function a95_0x588f(_0x71bb8c,_0x59e3a4){_0x71bb8c=_0x71bb8c-0x120;const _0x57b004=a95_0x57b0();let _0x588fd5=_0x57b004[_0x71bb8c];return _0x588fd5;}function a95_0x57b0(){const _0x2a7db7=['compress','152000RmrtgY','1943862CNkRwA','263061oMnbdY','803085AJDrTQ','5128605oIwFli','304RHRCdv','8wPMnhS','pretty','524931BWvcvu','46879BUOcyw'];a95_0x57b0=function(){return _0x2a7db7;};return a95_0x57b0();}const a95_0x3c3441=a95_0x588f;(function(_0x457905,_0x3175ea){const _0x182880=a95_0x588f,_0x370a1a=_0x457905();while(!![]){try{const _0x7f92d0=-parseInt(_0x182880(0x125))/0x1+parseInt(_0x182880(0x123))/0x2+parseInt(_0x182880(0x120))/0x3+-parseInt(_0x182880(0x129))/0x4*(parseInt(_0x182880(0x126))/0x5)+-parseInt(_0x182880(0x124))/0x6+-parseInt(_0x182880(0x121))/0x7*(-parseInt(_0x182880(0x128))/0x8)+parseInt(_0x182880(0x127))/0x9;if(_0x7f92d0===_0x3175ea)break;else _0x370a1a['push'](_0x370a1a['shift']());}catch(_0x58d9d8){_0x370a1a['push'](_0x370a1a['shift']());}}}(a95_0x57b0,0x28c7c));export const OUTPUT_FORMAT_VALUES=['json',a95_0x3c3441(0x12a),a95_0x3c3441(0x122)];
1
+ function a95_0x2cb2(){const _0x4d580c=['192858ELVjbB','55845iPATSa','4FQJQKn','28lOBYYD','26230TSQsbh','1650306tOBIjo','1165660oCdoYT','pretty','compress','49YfrRas','1302498fOUuhj','328872wPRuyT','json'];a95_0x2cb2=function(){return _0x4d580c;};return a95_0x2cb2();}const a95_0x5942f3=a95_0x5a58;function a95_0x5a58(_0x29229e,_0x403a61){_0x29229e=_0x29229e-0x1c8;const _0x2cb2e6=a95_0x2cb2();let _0x5a5863=_0x2cb2e6[_0x29229e];return _0x5a5863;}(function(_0x14c7cf,_0x68b455){const _0x214886=a95_0x5a58,_0x408f7e=_0x14c7cf();while(!![]){try{const _0x145d9d=parseInt(_0x214886(0x1d1))/0x1*(parseInt(_0x214886(0x1d3))/0x2)+parseInt(_0x214886(0x1d2))/0x3*(parseInt(_0x214886(0x1d4))/0x4)+parseInt(_0x214886(0x1c8))/0x5+-parseInt(_0x214886(0x1c9))/0x6+parseInt(_0x214886(0x1cd))/0x7*(parseInt(_0x214886(0x1cf))/0x8)+-parseInt(_0x214886(0x1ce))/0x9+-parseInt(_0x214886(0x1ca))/0xa;if(_0x145d9d===_0x68b455)break;else _0x408f7e['push'](_0x408f7e['shift']());}catch(_0x529550){_0x408f7e['push'](_0x408f7e['shift']());}}}(a95_0x2cb2,0x42933));export const OUTPUT_FORMAT_VALUES=[a95_0x5942f3(0x1d0),a95_0x5942f3(0x1cb),a95_0x5942f3(0x1cc)];
@@ -1 +1 @@
1
- const a96_0x5c40a2=a96_0x2a14;function a96_0x5881(){const _0x4cebb4=['2725565LDtbnr','.lovrabet-runtime.log','.lovrabetrc','https://skills-daily.lovrabet.com','.lovrabet.json','https://user.lovrabet.com','256808tOPVSi','https://user-daily.lovrabet.com','map','.lovrabet','6OftkZu','6CSKgBz','https://daily-api.lovrabet.com','1782064DjCLEI','https://daily-runtime.lovrabet.com','RABETBASE','1277241suoLMM','679842zivLFo','189800eWQMxN','LOVRABET','lovrabet','Lovrabet\x20Runtime\x20CLI','https://registry.npmjs.org','1212843mQMydG','legacyEnvPrefixes','cli:lovrabet-runtime','envPrefix','Lovrabet\x20User\x20Center','https://runtime.lovrabet.com','SKIP_NPX_SKILLS'];a96_0x5881=function(){return _0x4cebb4;};return a96_0x5881();}(function(_0x5ba8e2,_0x1f30c2){const _0x340f9f=a96_0x2a14,_0x3c7dab=_0x5ba8e2();while(!![]){try{const _0x1fd944=-parseInt(_0x340f9f(0x152))/0x1*(-parseInt(_0x340f9f(0x14a))/0x2)+-parseInt(_0x340f9f(0x157))/0x3+parseInt(_0x340f9f(0x14d))/0x4+parseInt(_0x340f9f(0x15e))/0x5*(-parseInt(_0x340f9f(0x14b))/0x6)+parseInt(_0x340f9f(0x150))/0x7+parseInt(_0x340f9f(0x146))/0x8+parseInt(_0x340f9f(0x151))/0x9;if(_0x1fd944===_0x1f30c2)break;else _0x3c7dab['push'](_0x3c7dab['shift']());}catch(_0x43ffe3){_0x3c7dab['push'](_0x3c7dab['shift']());}}}(a96_0x5881,0x56d28));export const PRODUCT_CONFIG={'cliBinName':a96_0x5c40a2(0x154),'cliDisplayName':a96_0x5c40a2(0x155),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':'lovrabet/lovrabet-cli','internalSkillSource':'git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','globalSkillName':a96_0x5c40a2(0x154),'npmRegistryBaseUrl':a96_0x5c40a2(0x156),'envPrefix':a96_0x5c40a2(0x153),'legacyEnvPrefixes':[a96_0x5c40a2(0x14f)],'configFileNames':[a96_0x5c40a2(0x144),a96_0x5c40a2(0x142)],'newConfigFileName':'.lovrabet.json','homeDirName':a96_0x5c40a2(0x149),'logFileName':a96_0x5c40a2(0x141),'invokeSource':a96_0x5c40a2(0x159),'userCenterDisplayName':a96_0x5c40a2(0x15b),'skipNpxSkillsEnvSuffix':a96_0x5c40a2(0x15d),'domains':{'production':{'user':a96_0x5c40a2(0x145),'api':'https://api.lovrabet.com','runtime':a96_0x5c40a2(0x15c),'skillhub':'https://skills.lovrabet.com'},'nonProduction':{'user':a96_0x5c40a2(0x147),'api':a96_0x5c40a2(0x14c),'runtime':a96_0x5c40a2(0x14e),'skillhub':a96_0x5c40a2(0x143)}},'accessKeyCreatePath':'/user/ak'};export function productEnvName(_0x4212c3){const _0x4fcec9=a96_0x5c40a2;return PRODUCT_CONFIG[_0x4fcec9(0x15a)]+'_'+_0x4212c3;}function a96_0x2a14(_0x25084b,_0x5c0cae){_0x25084b=_0x25084b-0x141;const _0x5881e6=a96_0x5881();let _0x2a1461=_0x5881e6[_0x25084b];return _0x2a1461;}export function productEnvNames(_0x4f9a1a){const _0x84421f=a96_0x5c40a2;return[productEnvName(_0x4f9a1a),...PRODUCT_CONFIG[_0x84421f(0x158)][_0x84421f(0x148)](_0x28f310=>_0x28f310+'_'+_0x4f9a1a)];}export function productEnv(_0x44de51){for(const _0x128158 of productEnvNames(_0x44de51)){const _0x598a24=process.env[_0x128158];if(_0x598a24!==undefined)return _0x598a24;}return undefined;}
1
+ const a96_0x3eee3b=a96_0x195d;(function(_0x5819a6,_0x1e8c46){const _0x52d14f=a96_0x195d,_0x10ecce=_0x5819a6();while(!![]){try{const _0x4caf7b=-parseInt(_0x52d14f(0x111))/0x1+-parseInt(_0x52d14f(0x126))/0x2+parseInt(_0x52d14f(0x129))/0x3*(-parseInt(_0x52d14f(0x122))/0x4)+-parseInt(_0x52d14f(0x11c))/0x5*(-parseInt(_0x52d14f(0x114))/0x6)+-parseInt(_0x52d14f(0x124))/0x7*(-parseInt(_0x52d14f(0x11e))/0x8)+-parseInt(_0x52d14f(0x113))/0x9+parseInt(_0x52d14f(0x121))/0xa*(parseInt(_0x52d14f(0x127))/0xb);if(_0x4caf7b===_0x1e8c46)break;else _0x10ecce['push'](_0x10ecce['shift']());}catch(_0xa81af2){_0x10ecce['push'](_0x10ecce['shift']());}}}(a96_0x27b7,0x53c06));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a96_0x3eee3b(0x120),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':'lovrabet/lovrabet-cli','internalSkillSource':a96_0x3eee3b(0x125),'globalSkillName':a96_0x3eee3b(0x128),'npmRegistryBaseUrl':a96_0x3eee3b(0x11f),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a96_0x3eee3b(0x119)],'configFileNames':[a96_0x3eee3b(0x115),'.lovrabetrc'],'newConfigFileName':a96_0x3eee3b(0x115),'homeDirName':a96_0x3eee3b(0x117),'logFileName':a96_0x3eee3b(0x11b),'invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a96_0x3eee3b(0x118),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':a96_0x3eee3b(0x11a),'api':a96_0x3eee3b(0x112),'runtime':'https://runtime.lovrabet.com','skillhub':a96_0x3eee3b(0x11d)},'nonProduction':{'user':a96_0x3eee3b(0x116),'api':'https://daily-api.lovrabet.com','runtime':'https://daily-runtime.lovrabet.com','skillhub':'https://skills-daily.lovrabet.com'}},'accessKeyCreatePath':'/user/ak'};function a96_0x195d(_0x403d38,_0x3ce129){_0x403d38=_0x403d38-0x111;const _0x27b728=a96_0x27b7();let _0x195d1a=_0x27b728[_0x403d38];return _0x195d1a;}export function productEnvName(_0x508421){return PRODUCT_CONFIG['envPrefix']+'_'+_0x508421;}export function productEnvNames(_0x2f6952){const _0x2c6386=a96_0x3eee3b;return[productEnvName(_0x2f6952),...PRODUCT_CONFIG[_0x2c6386(0x123)]['map'](_0x3fd249=>_0x3fd249+'_'+_0x2f6952)];}export function productEnv(_0x52894d){for(const _0x36ca55 of productEnvNames(_0x52894d)){const _0x132c82=process.env[_0x36ca55];if(_0x132c82!==undefined)return _0x132c82;}return undefined;}function a96_0x27b7(){const _0x2449c3=['3GzdQzV','302137VtNUFp','https://api.lovrabet.com','5652027QAPUGX','452058xVVpdH','.lovrabet.json','https://user-daily.lovrabet.com','.lovrabet','Lovrabet\x20User\x20Center','RABETBASE','https://user.lovrabet.com','.lovrabet-runtime.log','5vwVSot','https://skills.lovrabet.com','362344lWvMma','https://registry.npmjs.org','Lovrabet\x20Runtime\x20CLI','10Yrfmdp','548116pBXnyI','legacyEnvPrefixes','77kyfLZX','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','700306zpErKT','13054822YntTao','lovrabet'];a96_0x27b7=function(){return _0x2449c3;};return a96_0x27b7();}
@@ -1 +1 @@
1
- function a97_0x4b67(_0x23a3cc,_0x1c5570){_0x23a3cc=_0x23a3cc-0x121;const _0x2179a6=a97_0x2179();let _0x4b67c6=_0x2179a6[_0x23a3cc];return _0x4b67c6;}const a97_0x1ceac9=a97_0x4b67;function a97_0x2179(){const _0x17405c=['4709873uteXNt','4881132xceqbB','3559984xkLszo','15sitbGL','223506obKcnE','read','469124muKtWL','1404910MXuqhw','1iPhDLt','3840306SMnEyl'];a97_0x2179=function(){return _0x17405c;};return a97_0x2179();}(function(_0x5ae037,_0x550b91){const _0x43accf=a97_0x4b67,_0x34b81d=_0x5ae037();while(!![]){try{const _0x394390=parseInt(_0x43accf(0x123))/0x1*(-parseInt(_0x43accf(0x129))/0x2)+parseInt(_0x43accf(0x128))/0x3*(-parseInt(_0x43accf(0x121))/0x4)+-parseInt(_0x43accf(0x122))/0x5+parseInt(_0x43accf(0x124))/0x6+parseInt(_0x43accf(0x125))/0x7+-parseInt(_0x43accf(0x127))/0x8+parseInt(_0x43accf(0x126))/0x9;if(_0x394390===_0x550b91)break;else _0x34b81d['push'](_0x34b81d['shift']());}catch(_0x3e777d){_0x34b81d['push'](_0x34b81d['shift']());}}}(a97_0x2179,0x693fc));export const RISK_LEVEL_VALUES=[a97_0x1ceac9(0x12a),'write','high-risk-write'];
1
+ const a97_0x1f344e=a97_0x10af;function a97_0x114b(){const _0x58c748=['65nluCEM','1098WRaJaW','21gmIQvN','20430UheyCG','3135790MaHmit','314460dxfzCL','3fJYAtp','write','845768LMfHUm','69956paXCVp','2213046YCwrSX'];a97_0x114b=function(){return _0x58c748;};return a97_0x114b();}function a97_0x10af(_0x9e4aa7,_0x462ced){_0x9e4aa7=_0x9e4aa7-0x140;const _0x114bbe=a97_0x114b();let _0x10af2a=_0x114bbe[_0x9e4aa7];return _0x10af2a;}(function(_0x2b254b,_0x59172f){const _0x25c404=a97_0x10af,_0x2539b0=_0x2b254b();while(!![]){try{const _0x39139f=-parseInt(_0x25c404(0x146))/0x1*(parseInt(_0x25c404(0x147))/0x2)+-parseInt(_0x25c404(0x141))/0x3*(parseInt(_0x25c404(0x144))/0x4)+-parseInt(_0x25c404(0x149))/0x5+-parseInt(_0x25c404(0x140))/0x6*(-parseInt(_0x25c404(0x148))/0x7)+parseInt(_0x25c404(0x143))/0x8+parseInt(_0x25c404(0x145))/0x9+-parseInt(_0x25c404(0x14a))/0xa;if(_0x39139f===_0x59172f)break;else _0x2539b0['push'](_0x2539b0['shift']());}catch(_0x254129){_0x2539b0['push'](_0x2539b0['shift']());}}}(a97_0x114b,0x21b16));export const RISK_LEVEL_VALUES=['read',a97_0x1f344e(0x142),'high-risk-write'];
@@ -1 +1 @@
1
- function a98_0xbffc(_0x151d19,_0x5b8f84){_0x151d19=_0x151d19-0x16e;const _0x50e2d3=a98_0x50e2();let _0xbffc85=_0x50e2d3[_0x151d19];return _0xbffc85;}const a98_0x39e0cd=a98_0xbffc;(function(_0x322cae,_0x546797){const _0x1188b8=a98_0xbffc,_0x19e939=_0x322cae();while(!![]){try{const _0x1e3493=parseInt(_0x1188b8(0x178))/0x1+-parseInt(_0x1188b8(0x177))/0x2*(parseInt(_0x1188b8(0x16e))/0x3)+-parseInt(_0x1188b8(0x174))/0x4+-parseInt(_0x1188b8(0x17a))/0x5+-parseInt(_0x1188b8(0x173))/0x6*(parseInt(_0x1188b8(0x16f))/0x7)+parseInt(_0x1188b8(0x179))/0x8+parseInt(_0x1188b8(0x171))/0x9;if(_0x1e3493===_0x546797)break;else _0x19e939['push'](_0x19e939['shift']());}catch(_0x41d46e){_0x19e939['push'](_0x19e939['shift']());}}}(a98_0x50e2,0xd48ee));import{PRODUCT_CONFIG}from'../constant/product.js';function a98_0x50e2(){const _0x42ed31=['1498836GCKXlf','8813608PGmGjL','6984400IaVRqg','120051WUEjRW','217wXYcks','accessKeyCreatePath','10829916KoQsca','production','122214nyeXxJ','2659208JicdqE','domains','user','12IMUBlw'];a98_0x50e2=function(){return _0x42ed31;};return a98_0x50e2();}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a98_0x39e0cd(0x175)][a98_0x39e0cd(0x172)][a98_0x39e0cd(0x176)]+PRODUCT_CONFIG[a98_0x39e0cd(0x170)];
1
+ const a98_0x49689f=a98_0x64e4;function a98_0x64e4(_0x364fa5,_0x40586a){_0x364fa5=_0x364fa5-0xe3;const _0x42e1f6=a98_0x42e1();let _0x64e404=_0x42e1f6[_0x364fa5];return _0x64e404;}(function(_0x1f37c6,_0x3ffc10){const _0x36d589=a98_0x64e4,_0x365a5f=_0x1f37c6();while(!![]){try{const _0x5940b8=parseInt(_0x36d589(0xf0))/0x1+parseInt(_0x36d589(0xe3))/0x2+parseInt(_0x36d589(0xe6))/0x3+parseInt(_0x36d589(0xe5))/0x4*(parseInt(_0x36d589(0xed))/0x5)+-parseInt(_0x36d589(0xec))/0x6*(parseInt(_0x36d589(0xe7))/0x7)+parseInt(_0x36d589(0xe8))/0x8*(-parseInt(_0x36d589(0xea))/0x9)+-parseInt(_0x36d589(0xe9))/0xa;if(_0x5940b8===_0x3ffc10)break;else _0x365a5f['push'](_0x365a5f['shift']());}catch(_0x453ace){_0x365a5f['push'](_0x365a5f['shift']());}}}(a98_0x42e1,0x364d1));function a98_0x42e1(){const _0x427cf8=['user','66NMiXfY','5GglpcV','accessKeyCreatePath','domains','251213vFsbiZ','277088aYSKUG','production','1293628Ziaqwv','1088145HKziYb','263949tybKvR','59664iMXweX','4312270azgoWU','9AiefOQ'];a98_0x42e1=function(){return _0x427cf8;};return a98_0x42e1();}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a98_0x49689f(0xef)][a98_0x49689f(0xe4)][a98_0x49689f(0xeb)]+PRODUCT_CONFIG[a98_0x49689f(0xee)];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- function a99_0x1a21(){const _0x3869b8=['authRequired','APP','true','inherit','locale','35oKKArH','error','FORMAT','some','trim','apps','development','isTTY','173821ESPDIR','app','local-alias','string','./constant/env.js','riskLevel','object','stdin','EXDEV','global','projectConfig','values','join','stringify','./constant/domain.js','cwd','message','setLogPath','EPERM','accessKey','slice','code','925944NUrWZD','daily','newConfigFileName','stdout','find','PAGE_SIZE','read','ACCESS_KEY','format','8Qnqluh','setRawMode','parse','configFileNames','globalConfig','top-level','maxRisk','14166020XqLWUS','project','skillHubDomain','4000356LAYciV','argv','runtimeDomain','3805479nMCAfe','appcode','.tmp','1271814lnHoae','isRaw','env','write','raw','defaultApp','5580HamQxT','utf8','production','10QaonjM','pageSize'];a99_0x1a21=function(){return _0x3869b8;};return a99_0x1a21();}const a99_0x1a7dd6=a99_0x949c;(function(_0x27d3cd,_0x50a419){const _0x5567bd=a99_0x949c,_0x370f97=_0x27d3cd();while(!![]){try{const _0x40ce91=-parseInt(_0x5567bd(0x76))/0x1*(-parseInt(_0x5567bd(0x67))/0x2)+parseInt(_0x5567bd(0xa5))/0x3+-parseInt(_0x5567bd(0x9f))/0x4+parseInt(_0x5567bd(0xab))/0x5+parseInt(_0x5567bd(0x8c))/0x6*(-parseInt(_0x5567bd(0x6e))/0x7)+parseInt(_0x5567bd(0x95))/0x8*(-parseInt(_0x5567bd(0xa2))/0x9)+parseInt(_0x5567bd(0x9c))/0xa;if(_0x40ce91===_0x50a419)break;else _0x370f97['push'](_0x370f97['shift']());}catch(_0x3430e6){_0x370f97['push'](_0x370f97['shift']());}}}(a99_0x1a21,0x7e07d));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a99_0x949c(_0x1d4a91,_0x4e5874){_0x1d4a91=_0x1d4a91-0x66;const _0x1a211c=a99_0x1a21();let _0x949cfd=_0x1a211c[_0x1d4a91];return _0x949cfd;}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_0x1a7dd6(0x98)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a99_0x1a7dd6(0x8e)];function resolveConfigPath(_0x56c4d5){for(const _0x23ba1d of CONFIG_NAMES){const _0x2c5811=resolve(_0x56c4d5,_0x23ba1d);if(existsSync(_0x2c5811))return _0x2c5811;}return undefined;}export function resolveWriteConfigPath(_0x2ab1e5){const _0x2fb3ed=a99_0x1a7dd6,_0x318ed0=_0x2ab1e5==='project'?process[_0x2fb3ed(0x85)]():homedir(),_0xd28292=resolveConfigPath(_0x318ed0);return _0xd28292??resolve(_0x318ed0,NEW_CONFIG_NAME);}export function readConfigFile(_0x148098){const _0x178d4c=a99_0x1a7dd6;try{if(existsSync(_0x148098)){const _0x1bbfc5=readFileSync(_0x148098,{'encoding':_0x178d4c(0xac)});if(_0x1bbfc5){const _0x3cd9f2=JSON[_0x178d4c(0x97)](_0x1bbfc5);return migrateOnlineEnv(_0x148098,_0x3cd9f2),_0x3cd9f2;}}}catch{}return{};}function migrateOnlineEnv(_0x1673b8,_0xc04a75){const _0x513388=a99_0x1a7dd6;let _0x3231a8=![];_0xc04a75['env']==='online'&&(_0xc04a75[_0x513388(0xa7)]=_0x513388(0x66),_0x3231a8=!![]);if(_0xc04a75[_0x513388(0x73)]&&typeof _0xc04a75[_0x513388(0x73)]===_0x513388(0x7c))for(const _0x119887 of Object[_0x513388(0x81)](_0xc04a75[_0x513388(0x73)])){_0x119887&&_0x119887['env']==='online'&&(_0x119887[_0x513388(0xa7)]=_0x513388(0x66),_0x3231a8=!![]);}if(_0x3231a8)try{writeConfigFile(_0x1673b8,_0xc04a75);}catch{}}export function writeConfigFile(_0x130bd0,_0x3fb908){const _0x486322=a99_0x1a7dd6,_0xd0eb09=dirname(_0x130bd0);!existsSync(_0xd0eb09)&&mkdirSync(_0xd0eb09,{'recursive':!![]});const _0x5b16b9=_0x130bd0+_0x486322(0xa4);try{writeFileSync(_0x5b16b9,JSON[_0x486322(0x83)](_0x3fb908,null,0x2)+'\x0a',{'encoding':_0x486322(0xac),'mode':0x180});try{renameSync(_0x5b16b9,_0x130bd0);}catch(_0x2060e7){if(_0x2060e7[_0x486322(0x8b)]===_0x486322(0x88)||_0x2060e7[_0x486322(0x8b)]===_0x486322(0x7e)||_0x2060e7[_0x486322(0x8b)]==='EACCES'){writeFileSync(_0x130bd0,JSON[_0x486322(0x83)](_0x3fb908,null,0x2)+'\x0a',{'encoding':_0x486322(0xac)});try{unlinkSync(_0x5b16b9);}catch{}}else throw _0x2060e7;}}catch(_0x1b3a6b){try{unlinkSync(_0x5b16b9);}catch{}throw _0x1b3a6b;}}export function isNonInteractiveMode(_0x12d2ac){const _0xca34d4=a99_0x1a7dd6;return!!(_0x12d2ac['nonInteractive']||_0x12d2ac['ci']||productEnvNames('CI')[_0xca34d4(0x71)](_0x47451e=>process.env[_0x47451e]==='true')||process.env.CI===_0xca34d4(0x6b)||!process[_0xca34d4(0x8f)][_0xca34d4(0x75)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x568c6f=a99_0x1a7dd6;if(!process[_0x568c6f(0x7d)][_0x568c6f(0x75)])return![];try{const _0x378c58=process['stdin'][_0x568c6f(0xa6)];return process[_0x568c6f(0x7d)]['setRawMode'](!![]),process[_0x568c6f(0x7d)][_0x568c6f(0x96)](_0x378c58??![]),!![];}catch{return![];}}export async function createContext(_0x453650){const _0x10b57a=a99_0x1a7dd6,_0x329101=readRawConfig(),_0x18e0ce=buildConfig(_0x329101,_0x453650);await initGlobalEnvironment(_0x18e0ce);const {getUserDomain:_0x5c683f,getApiDomain:_0x39e89d}=await import(_0x10b57a(0x84)),_0x3b799e={'apiDomain':_0x39e89d(),'userDomain':_0x5c683f()},_0x58d5d6=await buildAuth(_0x18e0ce);logger[_0x10b57a(0x87)](process[_0x10b57a(0x85)]());const _0x4d48dc=(CLI_BIN_NAME+'\x20'+process[_0x10b57a(0xa0)][_0x10b57a(0x8a)](0x2)[_0x10b57a(0x82)]('\x20'))[_0x10b57a(0x72)]();logger['setRawCommand'](_0x4d48dc);const _0x152582=isNonInteractiveMode(_0x453650);return{'config':_0x18e0ce,'auth':_0x58d5d6,'logger':logger,'env':_0x3b799e,'nonInteractive':_0x152582};}export function buildConfigFromFlags(_0x3bd514){return buildConfig(readRawConfig(),_0x3bd514);}export function getLocalAppAliases(_0x25daff){const _0x533086=a99_0x1a7dd6;return _0x25daff[_0x533086(0x73)]&&typeof _0x25daff[_0x533086(0x73)]===_0x533086(0x7c)?_0x25daff['apps']:{};}export function resolveLocalAppAliasCode(_0x391281,_0x2c2297){const _0x5cd4b9=a99_0x1a7dd6;if(!_0x2c2297)return undefined;const _0x24bedd=getLocalAppAliases(_0x391281)[_0x2c2297],_0x23b918=_0x24bedd?.[_0x5cd4b9(0xa3)];return typeof _0x23b918==='string'&&_0x23b918[_0x5cd4b9(0x72)]()?_0x23b918['trim']():undefined;}export function readAppCodeFromConfig(){const _0x20884c=a99_0x1a7dd6,_0x51243e=readRawConfig(),_0x476e6d=_0x51243e[_0x20884c(0xa3)]??_0x51243e[_0x20884c(0x77)];if(typeof _0x476e6d==='string'&&_0x476e6d[_0x20884c(0x72)]())return _0x476e6d['trim']();const _0x60dc70=resolveLocalAppAliasCode(_0x51243e,typeof _0x51243e[_0x20884c(0xaa)]===_0x20884c(0x79)?_0x51243e[_0x20884c(0xaa)]:undefined);if(_0x60dc70)return _0x60dc70;const _0x57058c=normalizeEnv(String(_0x51243e[_0x20884c(0xa7)]||'production')),_0x4bd321=isDaily(_0x57058c)?_0x20884c(0x8d):isDev(_0x57058c)?_0x20884c(0x74):_0x20884c(0x66),_0x7c6f1a=resolveCachedAppCode(typeof _0x51243e[_0x20884c(0xaa)]===_0x20884c(0x79)?_0x51243e[_0x20884c(0xaa)]:undefined,_0x4bd321,typeof _0x51243e['accessKey']==='string'?_0x51243e['accessKey']:undefined);if(_0x7c6f1a)return _0x7c6f1a;const _0x344139=Object[_0x20884c(0x81)](getLocalAppAliases(_0x51243e))[_0x20884c(0x90)](_0x55bbba=>_0x55bbba?.[_0x20884c(0xa3)]);return typeof _0x344139?.[_0x20884c(0xa3)]===_0x20884c(0x79)&&_0x344139['appcode'][_0x20884c(0x72)]()?_0x344139[_0x20884c(0xa3)][_0x20884c(0x72)]():undefined;}export function readScopedConfig(_0x34d64a){const _0x55f590=a99_0x1a7dd6,_0x531402=_0x34d64a['global']?_0x55f590(0x7f):_0x55f590(0x9d);return readConfigFile(resolveWriteConfigPath(_0x531402));}export function writeScopedConfig(_0x190dfa,_0x44fb64){const _0xf04e9=a99_0x1a7dd6,_0xeb22ac=_0x44fb64[_0xf04e9(0x7f)]?_0xf04e9(0x7f):_0xf04e9(0x9d);writeConfigFile(resolveWriteConfigPath(_0xeb22ac),_0x190dfa);}export async function initGlobalEnvironment(_0x4aefbc){const _0x57fce3=a99_0x1a7dd6,{initEnv:_0x18dbe6}=await import(_0x57fce3(0x7a));_0x18dbe6(_0x4aefbc[_0x57fce3(0xa7)]);const {initDomains:_0x5e1120}=await import(_0x57fce3(0x84));_0x5e1120({'apiDomain':_0x4aefbc[_0x57fce3(0xa9)]['apiDomain']||_0x4aefbc[_0x57fce3(0xa9)]['host']||undefined,'userDomain':_0x4aefbc[_0x57fce3(0xa9)]['userDomain']||undefined,'runtimeDomain':_0x4aefbc[_0x57fce3(0xa9)][_0x57fce3(0xa1)]||undefined,'skillHubDomain':_0x4aefbc[_0x57fce3(0xa9)][_0x57fce3(0x9e)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x37e7e5){const _0x435009=a99_0x1a7dd6;if(!existsSync(_0x37e7e5))return{'status':'missing'};try{const _0x4d5781=readFileSync(_0x37e7e5,{'encoding':_0x435009(0xac)});if(!_0x4d5781?.[_0x435009(0x72)]())return{'status':'empty'};const _0x810f30=JSON[_0x435009(0x97)](_0x4d5781);return{'status':'ok','data':_0x810f30};}catch(_0x4b5496){return{'status':_0x435009(0x6f),'message':_0x4b5496 instanceof Error?_0x4b5496[_0x435009(0x86)]:String(_0x4b5496)};}}export function loadRawConfigLayers(_0x949b2){const _0x411dd6=a99_0x1a7dd6;let _0x58d4e8={},_0x50c000={},_0x50db3c,_0x4ce400;try{_0x50db3c=resolveConfigPath(homedir());if(_0x50db3c){const _0x4110bc=readFileSync(_0x50db3c,{'encoding':'utf8'});if(_0x4110bc)_0x58d4e8=JSON['parse'](_0x4110bc);}}catch{}try{const _0x2ac6d4=_0x949b2||process[_0x411dd6(0x85)]();_0x4ce400=resolveConfigPath(_0x2ac6d4);if(_0x4ce400){const _0x195100=readFileSync(_0x4ce400,{'encoding':_0x411dd6(0xac)});if(_0x195100)_0x50c000=JSON[_0x411dd6(0x97)](_0x195100);}}catch{}return{'globalPath':_0x50db3c,'projectPath':_0x4ce400,'globalConfig':_0x58d4e8,'projectConfig':_0x50c000};}function mergeRawConfigLayers(_0x228ed4){const _0x25e17e=a99_0x1a7dd6,{globalConfig:_0x502511,projectConfig:_0x5b18c5}=_0x228ed4;if(_0x5b18c5[_0x25e17e(0x6c)]===![]){const _0x27219a={..._0x5b18c5};return delete _0x27219a[_0x25e17e(0x6c)],_0x27219a;}const _0x529426={..._0x502511,..._0x5b18c5};if('defaultApp'in _0x5b18c5)_0x529426[_0x25e17e(0xaa)]=_0x5b18c5[_0x25e17e(0xaa)];else _0x502511[_0x25e17e(0xaa)]&&(_0x529426[_0x25e17e(0xaa)]=_0x502511[_0x25e17e(0xaa)]);return _0x529426;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x25aab0){return mergeRawConfigLayers(loadRawConfigLayers(_0x25aab0));}export function readRawConfigWithLayers(_0x3a49b7){const _0x4e393f=loadRawConfigLayers(_0x3a49b7);return{'config':mergeRawConfigLayers(_0x4e393f),'layers':_0x4e393f};}export function resolveDefaultAppSource(_0x34d7c5){const _0x5ca720=a99_0x1a7dd6;if(_0x5ca720(0xaa)in _0x34d7c5['projectConfig'])return _0x5ca720(0x9d);if(_0x34d7c5[_0x5ca720(0x80)][_0x5ca720(0x6c)]===![])return null;if(_0x34d7c5[_0x5ca720(0x99)][_0x5ca720(0xaa)])return _0x5ca720(0x7f);return null;}function buildConfig(_0x70237a,_0x246019){const _0x480b6a=a99_0x1a7dd6,_0x37305e=_0x70237a['defaultApp']||undefined,_0xdc2309=_0x246019[_0x480b6a(0x77)]||env(_0x480b6a(0x6a))||undefined,_0x258469=_0xdc2309||_0x37305e||undefined,_0x494119=env(_0x480b6a(0x93))||_0x70237a[_0x480b6a(0x89)]||undefined,_0x4a19ea=_0x246019[_0x480b6a(0xa7)]||env('ENV')||_0x70237a[_0x480b6a(0xa7)]||DEFAULT_CONFIG_VALUES[_0x480b6a(0xa7)],_0x39783f=normalizeEnv(String(_0x4a19ea)),_0x2ec8b5=isDaily(_0x39783f)?'daily':isDev(_0x39783f)?_0x480b6a(0x74):'production',_0xab3338=typeof _0x246019[_0x480b6a(0xa3)]===_0x480b6a(0x79)?_0x246019['appcode']:undefined,_0x45ae58=env('APPCODE'),_0x103701=_0xdc2309?undefined:_0x70237a[_0x480b6a(0xa3)]||_0x70237a['app']||undefined,_0x5cac37=_0xdc2309||(_0x103701?undefined:_0x37305e),_0x190f47=resolveLocalAppAliasCode(_0x70237a,_0x5cac37),_0x53b185=resolveCachedAppCode(_0x5cac37,_0x2ec8b5,_0x494119),_0xe0c130=_0xab3338||_0x45ae58||_0x103701||_0x190f47||_0x53b185||undefined,_0x5059ba=_0xab3338?'explicit':_0x45ae58?_0x480b6a(0xa7):_0x103701?_0x480b6a(0x9a):_0x190f47?_0x480b6a(0x78):_0x53b185?'cache':undefined,_0x3cd840=_0x70237a[_0x480b6a(0x6d)]||DEFAULT_CONFIG_VALUES[_0x480b6a(0x6d)],_0xb7de10=undefined,_0x237a14=_0x246019[_0x480b6a(0x94)]||env(_0x480b6a(0x70))||_0x70237a[_0x480b6a(0x94)],_0x2e27ee=normalizeLegacyOutputFormat(_0x237a14),_0x1b62c3=env(_0x480b6a(0x91))||_0x70237a[_0x480b6a(0x68)],_0x3c03d0=_0x1b62c3?Number(_0x1b62c3)||undefined:undefined,_0x53ef5b=_0x70237a['riskLevel']||_0x70237a[_0x480b6a(0x9b)],_0x27dfd8=_0x53ef5b===_0x480b6a(0x92)||_0x53ef5b===_0x480b6a(0xa8)||_0x53ef5b==='high-risk-write'?_0x53ef5b:DEFAULT_CONFIG_VALUES[_0x480b6a(0x7b)],_0x3e16c1=env('VERBOSE'),_0x27e37e=_0x3e16c1==='1'||_0x3e16c1===_0x480b6a(0x6b);return{'appCode':typeof _0xe0c130==='string'&&_0xe0c130['trim']()?_0xe0c130['trim']():undefined,'appCodeSource':_0x5059ba,'env':_0x2ec8b5,'locale':_0x3cd840,'cookie':_0xb7de10,'accessKey':_0x494119,'format':_0x2e27ee,'pageSize':_0x3c03d0,'riskLevel':_0x27dfd8,'verbose':_0x27e37e,'defaultApp':_0x37305e,'currentApp':typeof _0x258469===_0x480b6a(0x79)?_0x258469:undefined,'raw':_0x70237a};}function env(_0x699b33){return productEnv(_0x699b33);}async function buildAuth(_0x41031d){const _0x196314=a99_0x1a7dd6,_0x24ea9a='',_0x180070=!!_0x41031d[_0x196314(0x89)];return{'cookie':_0x24ea9a,'isLoggedIn':_0x180070,async 'getOrLogin'(){const _0x349586=_0x196314;if(_0x180070)return _0x24ea9a;throw CliErrors[_0x349586(0x69)]();}};}
1
+ const a99_0x36085e=a99_0x4b72;(function(_0x478059,_0x3456f0){const _0x4bb62c=a99_0x4b72,_0x4c9bf2=_0x478059();while(!![]){try{const _0x2f1c8f=parseInt(_0x4bb62c(0x21a))/0x1+parseInt(_0x4bb62c(0x22d))/0x2*(parseInt(_0x4bb62c(0x213))/0x3)+parseInt(_0x4bb62c(0x1f5))/0x4+parseInt(_0x4bb62c(0x231))/0x5*(-parseInt(_0x4bb62c(0x1f9))/0x6)+parseInt(_0x4bb62c(0x1fd))/0x7+parseInt(_0x4bb62c(0x203))/0x8*(-parseInt(_0x4bb62c(0x1f0))/0x9)+-parseInt(_0x4bb62c(0x21b))/0xa;if(_0x2f1c8f===_0x3456f0)break;else _0x4c9bf2['push'](_0x4c9bf2['shift']());}catch(_0x15f694){_0x4c9bf2['push'](_0x4c9bf2['shift']());}}}(a99_0x5cb9,0x2d41a));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a99_0x36085e(0x22e)];function resolveConfigPath(_0x39e47c){for(const _0x16fe5a of CONFIG_NAMES){const _0x592701=resolve(_0x39e47c,_0x16fe5a);if(existsSync(_0x592701))return _0x592701;}return undefined;}export function resolveWriteConfigPath(_0x464b61){const _0x3a61c3=a99_0x36085e,_0x17a0f9=_0x464b61===_0x3a61c3(0x1fb)?process[_0x3a61c3(0x214)]():homedir(),_0x3f13d9=resolveConfigPath(_0x17a0f9);return _0x3f13d9??resolve(_0x17a0f9,NEW_CONFIG_NAME);}export function readConfigFile(_0x553561){const _0x543c88=a99_0x36085e;try{if(existsSync(_0x553561)){const _0x761fd=readFileSync(_0x553561,{'encoding':_0x543c88(0x216)});if(_0x761fd){const _0x330377=JSON[_0x543c88(0x1fe)](_0x761fd);return migrateOnlineEnv(_0x553561,_0x330377),_0x330377;}}}catch{}return{};}function migrateOnlineEnv(_0x220810,_0x19349d){const _0x500b87=a99_0x36085e;let _0x491893=![];_0x19349d['env']===_0x500b87(0x20b)&&(_0x19349d[_0x500b87(0x1f1)]=_0x500b87(0x228),_0x491893=!![]);if(_0x19349d[_0x500b87(0x21d)]&&typeof _0x19349d[_0x500b87(0x21d)]===_0x500b87(0x21f))for(const _0x5d692f of Object[_0x500b87(0x20e)](_0x19349d[_0x500b87(0x21d)])){_0x5d692f&&_0x5d692f[_0x500b87(0x1f1)]==='online'&&(_0x5d692f['env']='production',_0x491893=!![]);}if(_0x491893)try{writeConfigFile(_0x220810,_0x19349d);}catch{}}export function writeConfigFile(_0x43458a,_0x569e14){const _0x552e05=a99_0x36085e,_0x1c5b8e=dirname(_0x43458a);!existsSync(_0x1c5b8e)&&mkdirSync(_0x1c5b8e,{'recursive':!![]});const _0x312d5a=_0x43458a+_0x552e05(0x1fa);try{writeFileSync(_0x312d5a,JSON['stringify'](_0x569e14,null,0x2)+'\x0a',{'encoding':_0x552e05(0x216),'mode':0x180});try{renameSync(_0x312d5a,_0x43458a);}catch(_0x2fd416){if(_0x2fd416[_0x552e05(0x222)]===_0x552e05(0x20d)||_0x2fd416[_0x552e05(0x222)]===_0x552e05(0x1f2)||_0x2fd416[_0x552e05(0x222)]==='EACCES'){writeFileSync(_0x43458a,JSON[_0x552e05(0x219)](_0x569e14,null,0x2)+'\x0a',{'encoding':_0x552e05(0x216)});try{unlinkSync(_0x312d5a);}catch{}}else throw _0x2fd416;}}catch(_0x583b15){try{unlinkSync(_0x312d5a);}catch{}throw _0x583b15;}}export function isNonInteractiveMode(_0x5bdc60){const _0x7760bc=a99_0x36085e;return!!(_0x5bdc60['nonInteractive']||_0x5bdc60['ci']||productEnvNames('CI')[_0x7760bc(0x217)](_0x4e7347=>process.env[_0x4e7347]===_0x7760bc(0x212))||process.env.CI===_0x7760bc(0x212)||!process[_0x7760bc(0x207)][_0x7760bc(0x208)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x3e9ca1=a99_0x36085e;if(!process[_0x3e9ca1(0x21c)][_0x3e9ca1(0x208)])return![];try{const _0x2a1e1f=process[_0x3e9ca1(0x21c)]['isRaw'];return process['stdin'][_0x3e9ca1(0x225)](!![]),process['stdin'][_0x3e9ca1(0x225)](_0x2a1e1f??![]),!![];}catch{return![];}}export async function createContext(_0x4e8f5d){const _0x3d42a0=a99_0x36085e,_0x55dc3a=readRawConfig(),_0x2d1bb6=buildConfig(_0x55dc3a,_0x4e8f5d);await initGlobalEnvironment(_0x2d1bb6);const {getUserDomain:_0x5c6dd7,getApiDomain:_0x21f5e}=await import('./constant/domain.js'),_0x58d65e={'apiDomain':_0x21f5e(),'userDomain':_0x5c6dd7()},_0xbb15b8=await buildAuth(_0x2d1bb6);logger[_0x3d42a0(0x218)](process[_0x3d42a0(0x214)]());const _0x2cc846=(CLI_BIN_NAME+'\x20'+process[_0x3d42a0(0x204)][_0x3d42a0(0x1f8)](0x2)[_0x3d42a0(0x226)]('\x20'))[_0x3d42a0(0x230)]();logger[_0x3d42a0(0x210)](_0x2cc846);const _0x80b1dd=isNonInteractiveMode(_0x4e8f5d);return{'config':_0x2d1bb6,'auth':_0xbb15b8,'logger':logger,'env':_0x58d65e,'nonInteractive':_0x80b1dd};}export function buildConfigFromFlags(_0x6c26c5){return buildConfig(readRawConfig(),_0x6c26c5);}export function getLocalAppAliases(_0x3fa166){const _0x3b3480=a99_0x36085e;return _0x3fa166[_0x3b3480(0x21d)]&&typeof _0x3fa166['apps']==='object'?_0x3fa166[_0x3b3480(0x21d)]:{};}export function resolveLocalAppAliasCode(_0x5d80f5,_0x331380){const _0x1a943a=a99_0x36085e;if(!_0x331380)return undefined;const _0x4565cf=getLocalAppAliases(_0x5d80f5)[_0x331380],_0x229b0=_0x4565cf?.[_0x1a943a(0x21e)];return typeof _0x229b0===_0x1a943a(0x1f4)&&_0x229b0[_0x1a943a(0x230)]()?_0x229b0[_0x1a943a(0x230)]():undefined;}export function readAppCodeFromConfig(){const _0x763a9a=a99_0x36085e,_0x55d0ad=readRawConfig(),_0x5daa5f=_0x55d0ad[_0x763a9a(0x21e)]??_0x55d0ad[_0x763a9a(0x224)];if(typeof _0x5daa5f===_0x763a9a(0x1f4)&&_0x5daa5f['trim']())return _0x5daa5f[_0x763a9a(0x230)]();const _0x96a370=resolveLocalAppAliasCode(_0x55d0ad,typeof _0x55d0ad[_0x763a9a(0x205)]===_0x763a9a(0x1f4)?_0x55d0ad[_0x763a9a(0x205)]:undefined);if(_0x96a370)return _0x96a370;const _0x1a6744=normalizeEnv(String(_0x55d0ad[_0x763a9a(0x1f1)]||'production')),_0x256a2d=isDaily(_0x1a6744)?_0x763a9a(0x220):isDev(_0x1a6744)?_0x763a9a(0x20c):_0x763a9a(0x228),_0xc92652=resolveCachedAppCode(typeof _0x55d0ad[_0x763a9a(0x205)]===_0x763a9a(0x1f4)?_0x55d0ad['defaultApp']:undefined,_0x256a2d,typeof _0x55d0ad[_0x763a9a(0x211)]===_0x763a9a(0x1f4)?_0x55d0ad['accessKey']:undefined);if(_0xc92652)return _0xc92652;const _0x15c054=Object[_0x763a9a(0x20e)](getLocalAppAliases(_0x55d0ad))[_0x763a9a(0x234)](_0x402cf4=>_0x402cf4?.[_0x763a9a(0x21e)]);return typeof _0x15c054?.['appcode']===_0x763a9a(0x1f4)&&_0x15c054[_0x763a9a(0x21e)][_0x763a9a(0x230)]()?_0x15c054[_0x763a9a(0x21e)][_0x763a9a(0x230)]():undefined;}export function readScopedConfig(_0x5ce501){const _0x2c2b1b=a99_0x36085e,_0x3664d5=_0x5ce501['global']?_0x2c2b1b(0x200):'project';return readConfigFile(resolveWriteConfigPath(_0x3664d5));}export function writeScopedConfig(_0x56c0fa,_0xe98655){const _0x3bf369=a99_0x36085e,_0x436d4e=_0xe98655[_0x3bf369(0x200)]?_0x3bf369(0x200):_0x3bf369(0x1fb);writeConfigFile(resolveWriteConfigPath(_0x436d4e),_0x56c0fa);}export async function initGlobalEnvironment(_0x2f2403){const _0x2624a5=a99_0x36085e,{initEnv:_0xec0a18}=await import(_0x2624a5(0x215));_0xec0a18(_0x2f2403['env']);const {initDomains:_0x30cf54}=await import(_0x2624a5(0x202));_0x30cf54({'apiDomain':_0x2f2403[_0x2624a5(0x22a)][_0x2624a5(0x235)]||_0x2f2403[_0x2624a5(0x22a)][_0x2624a5(0x20a)]||undefined,'userDomain':_0x2f2403['raw'][_0x2624a5(0x232)]||undefined,'runtimeDomain':_0x2f2403[_0x2624a5(0x22a)][_0x2624a5(0x223)]||undefined,'skillHubDomain':_0x2f2403[_0x2624a5(0x22a)]['skillHubDomain']||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x5948e5){const _0x2137b7=a99_0x36085e;if(!existsSync(_0x5948e5))return{'status':'missing'};try{const _0x1e9e74=readFileSync(_0x5948e5,{'encoding':_0x2137b7(0x216)});if(!_0x1e9e74?.[_0x2137b7(0x230)]())return{'status':_0x2137b7(0x20f)};const _0x51d87e=JSON[_0x2137b7(0x1fe)](_0x1e9e74);return{'status':'ok','data':_0x51d87e};}catch(_0x4209c0){return{'status':'error','message':_0x4209c0 instanceof Error?_0x4209c0[_0x2137b7(0x22b)]:String(_0x4209c0)};}}function a99_0x5cb9(){const _0x4e0541=['code','runtimeDomain','app','setRawMode','join','cache','production','inherit','raw','message','projectConfig','662ZcjGqH','newConfigFileName','read','trim','10mZHOcV','userDomain','PAGE_SIZE','find','apiDomain','25209ACtRzZ','env','EXDEV','APP','string','304276VOBcmC','format','riskLevel','slice','658632XZwGNz','.tmp','project','APPCODE','297773vlNMbK','parse','high-risk-write','global','FORMAT','./constant/domain.js','264Vwkhxs','argv','defaultApp','pageSize','stdout','isTTY','locale','host','online','development','EPERM','values','empty','setRawCommand','accessKey','true','1788hsXVAu','cwd','./constant/env.js','utf8','some','setLogPath','stringify','342924XqPRMS','1614610miakVs','stdin','apps','appcode','object','daily','ENV'];a99_0x5cb9=function(){return _0x4e0541;};return a99_0x5cb9();}export function loadRawConfigLayers(_0x2b0b9e){const _0x485519=a99_0x36085e;let _0x3364bd={},_0x244d2d={},_0x1cc118,_0x8f28b0;try{_0x1cc118=resolveConfigPath(homedir());if(_0x1cc118){const _0x216692=readFileSync(_0x1cc118,{'encoding':_0x485519(0x216)});if(_0x216692)_0x3364bd=JSON[_0x485519(0x1fe)](_0x216692);}}catch{}try{const _0x27f447=_0x2b0b9e||process[_0x485519(0x214)]();_0x8f28b0=resolveConfigPath(_0x27f447);if(_0x8f28b0){const _0x24f71b=readFileSync(_0x8f28b0,{'encoding':_0x485519(0x216)});if(_0x24f71b)_0x244d2d=JSON[_0x485519(0x1fe)](_0x24f71b);}}catch{}return{'globalPath':_0x1cc118,'projectPath':_0x8f28b0,'globalConfig':_0x3364bd,'projectConfig':_0x244d2d};}function mergeRawConfigLayers(_0x59bba0){const _0x11e973=a99_0x36085e,{globalConfig:_0x5698b7,projectConfig:_0x900ed}=_0x59bba0;if(_0x900ed[_0x11e973(0x229)]===![]){const _0x880952={..._0x900ed};return delete _0x880952['inherit'],_0x880952;}const _0x317b5b={..._0x5698b7,..._0x900ed};if(_0x11e973(0x205)in _0x900ed)_0x317b5b[_0x11e973(0x205)]=_0x900ed[_0x11e973(0x205)];else _0x5698b7[_0x11e973(0x205)]&&(_0x317b5b[_0x11e973(0x205)]=_0x5698b7['defaultApp']);return _0x317b5b;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x4d8011){return mergeRawConfigLayers(loadRawConfigLayers(_0x4d8011));}export function readRawConfigWithLayers(_0x547633){const _0x5e4e6d=loadRawConfigLayers(_0x547633);return{'config':mergeRawConfigLayers(_0x5e4e6d),'layers':_0x5e4e6d};}export function resolveDefaultAppSource(_0x414c29){const _0x5a4075=a99_0x36085e;if(_0x5a4075(0x205)in _0x414c29[_0x5a4075(0x22c)])return _0x5a4075(0x1fb);if(_0x414c29[_0x5a4075(0x22c)][_0x5a4075(0x229)]===![])return null;if(_0x414c29['globalConfig'][_0x5a4075(0x205)])return _0x5a4075(0x200);return null;}function buildConfig(_0xd970d6,_0xdcd355){const _0x429295=a99_0x36085e,_0x32beb7=_0xd970d6[_0x429295(0x205)]||undefined,_0x33fd0f=_0xdcd355['app']||env(_0x429295(0x1f3))||undefined,_0x4957b9=_0x33fd0f||_0x32beb7||undefined,_0xdcf4a6=env('ACCESS_KEY')||_0xd970d6[_0x429295(0x211)]||undefined,_0x32af0d=_0xdcd355[_0x429295(0x1f1)]||env(_0x429295(0x221))||_0xd970d6['env']||DEFAULT_CONFIG_VALUES[_0x429295(0x1f1)],_0x3de1dc=normalizeEnv(String(_0x32af0d)),_0x45ea1a=isDaily(_0x3de1dc)?'daily':isDev(_0x3de1dc)?_0x429295(0x20c):'production',_0x471e95=typeof _0xdcd355[_0x429295(0x21e)]==='string'?_0xdcd355[_0x429295(0x21e)]:undefined,_0x18fa85=env(_0x429295(0x1fc)),_0x48d523=_0x33fd0f?undefined:_0xd970d6[_0x429295(0x21e)]||_0xd970d6[_0x429295(0x224)]||undefined,_0x320f07=_0x33fd0f||(_0x48d523?undefined:_0x32beb7),_0x1b47a1=resolveLocalAppAliasCode(_0xd970d6,_0x320f07),_0x3dc3d9=resolveCachedAppCode(_0x320f07,_0x45ea1a,_0xdcf4a6),_0x36eef3=_0x471e95||_0x18fa85||_0x48d523||_0x1b47a1||_0x3dc3d9||undefined,_0x53b5e6=_0x471e95?'explicit':_0x18fa85?_0x429295(0x1f1):_0x48d523?'top-level':_0x1b47a1?'local-alias':_0x3dc3d9?_0x429295(0x227):undefined,_0x5737fe=_0xd970d6[_0x429295(0x209)]||DEFAULT_CONFIG_VALUES[_0x429295(0x209)],_0x373d25=undefined,_0x14355b=_0xdcd355[_0x429295(0x1f6)]||env(_0x429295(0x201))||_0xd970d6[_0x429295(0x1f6)],_0x19dd3f=normalizeLegacyOutputFormat(_0x14355b),_0x38f78a=env(_0x429295(0x233))||_0xd970d6[_0x429295(0x206)],_0x118d92=_0x38f78a?Number(_0x38f78a)||undefined:undefined,_0x495e5b=_0xd970d6[_0x429295(0x1f7)]||_0xd970d6['maxRisk'],_0x1022f2=_0x495e5b===_0x429295(0x22f)||_0x495e5b==='write'||_0x495e5b===_0x429295(0x1ff)?_0x495e5b:DEFAULT_CONFIG_VALUES['riskLevel'],_0x5bbc22=env('VERBOSE'),_0x51813b=_0x5bbc22==='1'||_0x5bbc22===_0x429295(0x212);return{'appCode':typeof _0x36eef3===_0x429295(0x1f4)&&_0x36eef3[_0x429295(0x230)]()?_0x36eef3['trim']():undefined,'appCodeSource':_0x53b5e6,'env':_0x45ea1a,'locale':_0x5737fe,'cookie':_0x373d25,'accessKey':_0xdcf4a6,'format':_0x19dd3f,'pageSize':_0x118d92,'riskLevel':_0x1022f2,'verbose':_0x51813b,'defaultApp':_0x32beb7,'currentApp':typeof _0x4957b9===_0x429295(0x1f4)?_0x4957b9:undefined,'raw':_0xd970d6};}function a99_0x4b72(_0x2e754d,_0x2edecf){_0x2e754d=_0x2e754d-0x1f0;const _0x5cb97c=a99_0x5cb9();let _0x4b72bd=_0x5cb97c[_0x2e754d];return _0x4b72bd;}function env(_0x17011f){return productEnv(_0x17011f);}async function buildAuth(_0x1990e8){const _0x46631e=a99_0x36085e,_0x25532b='',_0x4e9471=!!_0x1990e8[_0x46631e(0x211)];return{'cookie':_0x25532b,'isLoggedIn':_0x4e9471,async 'getOrLogin'(){if(_0x4e9471)return _0x25532b;throw CliErrors['authRequired']();}};}