@lovrabet/lovrabet-cli 2.1.23-beta.2 → 2.1.23-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) 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/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schedule/index.js +1 -1
  39. package/lib/commands/schema.js +1 -1
  40. package/lib/commands/service/dynamic.js +1 -1
  41. package/lib/commands/service/function-name-adapter.js +1 -1
  42. package/lib/commands/service/index.js +1 -1
  43. package/lib/commands/service/registry.js +1 -1
  44. package/lib/commands/skill/commands/create.js +1 -1
  45. package/lib/commands/skill/commands/diagram.js +1 -1
  46. package/lib/commands/skill/commands/install.js +1 -1
  47. package/lib/commands/skill/commands/list.js +1 -1
  48. package/lib/commands/skill/commands/push.js +1 -1
  49. package/lib/commands/skill/commands/validate.js +1 -1
  50. package/lib/commands/skill/diagram.js +1 -1
  51. package/lib/commands/skill/flags.js +1 -1
  52. package/lib/commands/skill/index.js +1 -1
  53. package/lib/commands/skill/manifest-helpers.js +1 -1
  54. package/lib/commands/skill/push-execute.js +1 -1
  55. package/lib/commands/skill/push-flow-helpers.js +1 -1
  56. package/lib/commands/skill/push-retarget.js +1 -1
  57. package/lib/commands/skill/scopes.js +1 -1
  58. package/lib/commands/skill/summary.js +1 -1
  59. package/lib/commands/skill/templates.js +1 -1
  60. package/lib/commands/skill/validate.js +1 -1
  61. package/lib/commands/sql/detail.js +1 -1
  62. package/lib/commands/sql/exec.js +1 -1
  63. package/lib/commands/sql/index.js +1 -1
  64. package/lib/commands/update.js +1 -1
  65. package/lib/commands/workspace/index.js +1 -1
  66. package/lib/config/schema.js +1 -1
  67. package/lib/constant/app.js +1 -1
  68. package/lib/constant/auth-mode.js +1 -1
  69. package/lib/constant/cli.js +1 -1
  70. package/lib/constant/defaults.js +1 -1
  71. package/lib/constant/distribution.js +1 -1
  72. package/lib/constant/domain.js +1 -1
  73. package/lib/constant/env.js +1 -1
  74. package/lib/constant/output.js +1 -1
  75. package/lib/constant/product.d.ts +14 -0
  76. package/lib/constant/product.js +1 -1
  77. package/lib/constant/risk.js +1 -1
  78. package/lib/constant/url.js +1 -1
  79. package/lib/context.js +1 -1
  80. package/lib/core/api-client.js +1 -1
  81. package/lib/core/db-resolver.js +1 -1
  82. package/lib/core/sdk-client.js +1 -1
  83. package/lib/errors.js +1 -1
  84. package/lib/framework/build-all-flags.js +1 -1
  85. package/lib/framework/dryrun.js +1 -1
  86. package/lib/framework/flags.js +1 -1
  87. package/lib/framework/help.js +1 -1
  88. package/lib/framework/index.js +1 -1
  89. package/lib/framework/output.js +1 -1
  90. package/lib/framework/preparse.js +1 -1
  91. package/lib/framework/rate-limit.js +1 -1
  92. package/lib/framework/raw-flags.js +1 -1
  93. package/lib/framework/response.js +1 -1
  94. package/lib/framework/runner-confirmation.js +1 -1
  95. package/lib/framework/runner-error.js +1 -1
  96. package/lib/framework/runner.js +1 -1
  97. package/lib/framework/schema-export.js +1 -1
  98. package/lib/framework/service-order.js +1 -1
  99. package/lib/framework/types.js +1 -1
  100. package/lib/generated/build-info.d.ts +4 -4
  101. package/lib/generated/build-info.js +1 -1
  102. package/lib/help.js +1 -1
  103. package/lib/runtime/confirmation.js +1 -1
  104. package/lib/runtime/event.js +1 -1
  105. package/lib/runtime/index.js +1 -1
  106. package/lib/runtime/queue.js +1 -1
  107. package/lib/runtime/resolve.js +1 -1
  108. package/lib/skills/npx-skills-add.d.ts +30 -0
  109. package/lib/skills/npx-skills-add.js +1 -1
  110. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  111. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  112. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  113. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  114. package/lib/skills/runtime-skill-sync/links.js +1 -1
  115. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  116. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  117. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  118. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  119. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  120. package/lib/skills/runtime-skill-sync/push.js +1 -1
  121. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  122. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  123. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  124. package/lib/skills/runtime-skill-sync.js +1 -1
  125. package/lib/skills/skill-presence.d.ts +48 -0
  126. package/lib/skills/skill-presence.js +1 -0
  127. package/lib/utils/apply-jq-filter.js +1 -1
  128. package/lib/utils/logger.js +1 -1
  129. package/lib/utils/lossless-json.js +1 -1
  130. package/lib/utils/params.js +1 -1
  131. package/lib/utils/platform.js +1 -1
  132. package/lib/utils/update-notice.js +1 -1
  133. package/lib/utils/version.js +1 -1
  134. package/lib/utils/write-cli-side-channel.js +1 -1
  135. package/package.json +1 -1
@@ -1 +1 @@
1
- const a64_0x2bafa8=a64_0x2e68;(function(_0x35425e,_0x3e2b7c){const _0x12fe6f=a64_0x2e68,_0x4ef924=_0x35425e();while(!![]){try{const _0x345234=-parseInt(_0x12fe6f(0x74))/0x1*(-parseInt(_0x12fe6f(0x84))/0x2)+-parseInt(_0x12fe6f(0xa1))/0x3*(parseInt(_0x12fe6f(0x90))/0x4)+parseInt(_0x12fe6f(0x87))/0x5+-parseInt(_0x12fe6f(0x76))/0x6*(-parseInt(_0x12fe6f(0x8c))/0x7)+parseInt(_0x12fe6f(0xa7))/0x8*(-parseInt(_0x12fe6f(0x9c))/0x9)+-parseInt(_0x12fe6f(0x9f))/0xa*(-parseInt(_0x12fe6f(0x93))/0xb)+parseInt(_0x12fe6f(0x85))/0xc*(-parseInt(_0x12fe6f(0xab))/0xd);if(_0x345234===_0x3e2b7c)break;else _0x4ef924['push'](_0x4ef924['shift']());}catch(_0x37ec53){_0x4ef924['push'](_0x4ef924['shift']());}}}(a64_0x1548,0x58fe8));import{CLI_BIN_NAME}from'../../constant/cli.js';function a64_0x1548(){const _0x4d7ad7=['96jqOcbg','84GXtPGb','Workspace\x20app\x20context\x20is\x20not\x20initialized.','1636345SOBrkK','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','Usage:\x20','\x20workspace\x20','Use\x20`','35RUToPZ','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','28yXHyrm','command','join','2532178CUhAJb','env','write','Run\x20`','\x20--appcode\x20<code>\x20[--env\x20daily]','accessKey','object','Conflicting\x20workspace\x20app\x20selectors.','isArray','9kdfccy','将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','appCode','20MaplQJ','length','78747fLzswD','filter','appcode','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','trim','1732264VPtZLB','items','map','defaultApp','1573663VVCPKd','Target\x20environment','appName','use','validation','../../commands/app/remote-source.js','authRequired','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','apps','Available\x20apps:\x20','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','10991rsfDkT','from','356304TPLjDk','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','project','app','init','workspace','str','workspace\x20','\x0aAccessKey:\x20not\x20written','Workspace\x20app\x20context\x20is\x20already\x20initialized.','string','\x22.\x20Allowed:\x20','envName','../../core/api-client.js'];a64_0x1548=function(){return _0x4d7ad7;};return a64_0x1548();}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';function a64_0x2e68(_0x27b970,_0x29638d){_0x27b970=_0x27b970-0x72;const _0x15482a=a64_0x1548();let _0x2e6821=_0x15482a[_0x27b970];return _0x2e6821;}import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':'app','type':'string','description':a64_0x2bafa8(0x77)},{'name':a64_0x2bafa8(0xa3),'type':'string','description':'App\x20code\x20to\x20bind\x20directly'},{'name':'env','type':a64_0x2bafa8(0x80),'description':a64_0x2bafa8(0xac),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x26dc90,_0x3b41ea){const _0x10dcef=a64_0x2bafa8,_0x571392=_0x26dc90['str']('app')[_0x10dcef(0xa6)](),_0x5ea496=_0x26dc90[_0x10dcef(0x7c)](_0x10dcef(0xa3))[_0x10dcef(0xa6)](),_0xc050fe=_0x26dc90[_0x10dcef(0x7c)]('env')[_0x10dcef(0xa6)](),_0x17e89a=resolveWorkspaceEnv(_0xc050fe||_0x26dc90[_0x10dcef(0x82)]||DEFAULT_CONFIG_VALUES[_0x10dcef(0x94)]);if(!_0x571392&&!_0x5ea496)throw CliErrors[_0x10dcef(0xaf)]('Missing\x20workspace\x20app\x20selector.',_0x10dcef(0x89)+CLI_BIN_NAME+_0x10dcef(0x8a)+_0x3b41ea+_0x10dcef(0x88)+CLI_BIN_NAME+'\x20workspace\x20'+_0x3b41ea+_0x10dcef(0x97));if(_0x571392&&_0x5ea496)throw CliErrors['validation'](_0x10dcef(0x9a),_0x10dcef(0x8d));const _0x26b232=resolveWriteConfigPath(_0x10dcef(0x78)),_0x1c461c=readConfigFile(_0x26b232);assertWorkspaceCommandState(_0x3b41ea,_0x1c461c);const _0x47de24=_0x5ea496||await resolveRemoteAppCode({'command':_0x3b41ea,'appName':_0x571392,'env':_0x17e89a,'accessKey':_0x26dc90[_0x10dcef(0x98)]});return writeWorkspaceConfig({'command':_0x3b41ea,'appName':_0x571392,'appcode':_0x47de24,'env':_0x17e89a,'shouldWriteEnv':!!_0xc050fe,'accessKey':_0x26dc90['accessKey']},_0x26b232,_0x1c461c),{'ok':!![],'data':{'configPath':_0x26b232,'app':_0x571392||null,'appcode':_0x47de24,'env':_0xc050fe?_0x17e89a:null,'accessKeyWritten':![],'command':_0x10dcef(0x7d)+_0x3b41ea},'message':buildWorkspaceMessage(_0x26b232,_0x571392,_0x47de24,_0xc050fe?_0x17e89a:undefined)};}async function resolveRemoteAppCode(_0x292fcb){const _0x502233=a64_0x2bafa8;if(!_0x292fcb[_0x502233(0x98)])throw CliErrors[_0x502233(0xb1)](_0x502233(0xb2)+CLI_BIN_NAME+_0x502233(0x8a)+_0x292fcb[_0x502233(0x91)]+'.');const {setActiveAK:_0x5167ba}=await import(_0x502233(0x83)),{getRemoteAppList:_0x2330a2}=await import(_0x502233(0xb0));_0x5167ba(_0x292fcb['accessKey']);const _0x1ada23=await _0x2330a2({'env':_0x292fcb[_0x502233(0x94)],'accessKey':_0x292fcb[_0x502233(0x98)],'noCache':![]}),_0x5f5731=findAppByName(_0x1ada23['items'],_0x292fcb[_0x502233(0xad)]);if(_0x5f5731&&!isRuntimeAccessibleApp(_0x5f5731))throw runtimeInaccessibleAppError(_0x5f5731,'\x22'+_0x292fcb[_0x502233(0xad)]+'\x22');const _0x1640a7=_0x5f5731?.[_0x502233(0x9e)]?.[_0x502233(0xa6)]();if(_0x1640a7)return _0x1640a7;const _0x3a8784=_0x1ada23[_0x502233(0xa8)][_0x502233(0xa9)](_0x5bb33c=>_0x5bb33c['appName'])[_0x502233(0xa2)](Boolean),_0x120e0b=_0x3a8784[_0x502233(0xa0)]?_0x502233(0x72)+Array[_0x502233(0x75)](new Set(_0x3a8784))[_0x502233(0x92)](',\x20')+'.':_0x502233(0x96)+CLI_BIN_NAME+_0x502233(0xa4);throw CliErrors[_0x502233(0xaf)]('App\x20\x22'+_0x292fcb[_0x502233(0xad)]+'\x22\x20not\x20found.',_0x120e0b);}function writeWorkspaceConfig(_0xa13416,_0x1f3958,_0x21ab07){const _0x1d21e5=a64_0x2bafa8;_0xa13416['shouldWriteEnv']&&(_0x21ab07[_0x1d21e5(0x94)]=_0xa13416[_0x1d21e5(0x94)]);if(_0xa13416['appName']){const _0x30863c=isRecord(_0x21ab07['apps'])?{..._0x21ab07[_0x1d21e5(0xb3)]}:{},_0x431a20=isRecord(_0x30863c[_0xa13416[_0x1d21e5(0xad)]])?_0x30863c[_0xa13416[_0x1d21e5(0xad)]]:{};return _0x30863c[_0xa13416[_0x1d21e5(0xad)]]={..._0x431a20,'appcode':_0xa13416[_0x1d21e5(0xa3)]},_0x21ab07['apps']=_0x30863c,_0x21ab07[_0x1d21e5(0xaa)]=_0xa13416[_0x1d21e5(0xad)],delete _0x21ab07[_0x1d21e5(0xa3)],delete _0x21ab07['app'],writeAndReturn(_0x1f3958,_0x21ab07);}return _0x21ab07['appcode']=_0xa13416[_0x1d21e5(0xa3)],delete _0x21ab07[_0x1d21e5(0xaa)],delete _0x21ab07[_0x1d21e5(0x79)],writeAndReturn(_0x1f3958,_0x21ab07);}function writeAndReturn(_0x203aa3,_0x51a936){return writeConfigFile(_0x203aa3,_0x51a936),_0x203aa3;}function resolveWorkspaceEnv(_0x17bc3f){const _0x20746e=a64_0x2bafa8;if(RUNTIME_ENV_VALUES['includes'](_0x17bc3f))return _0x17bc3f;throw CliErrors[_0x20746e(0xaf)]('Invalid\x20env\x20\x22'+_0x17bc3f+_0x20746e(0x81)+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x4d508b,_0x314072,_0x1fa8e1,_0x1e689c){const _0x359ccb=a64_0x2bafa8,_0x370f6d=_0x314072?_0x314072+'\x20('+_0x1fa8e1+')':_0x1fa8e1,_0x41c882=_0x1e689c?'\x0aEnv:\x20'+_0x1e689c:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x4d508b+'\x0aDefault\x20app:\x20'+_0x370f6d+_0x41c882+_0x359ccb(0x7e);}function isRecord(_0x2ce193){const _0x3dcc23=a64_0x2bafa8;return typeof _0x2ce193===_0x3dcc23(0x99)&&_0x2ce193!==null&&!Array[_0x3dcc23(0x9b)](_0x2ce193);}function hasWorkspaceAppBinding(_0x568b4c){const _0x1e44dd=a64_0x2bafa8;if(typeof _0x568b4c[_0x1e44dd(0xa3)]===_0x1e44dd(0x80)&&_0x568b4c[_0x1e44dd(0xa3)]['trim']()[_0x1e44dd(0xa0)]>0x0)return!![];if(typeof _0x568b4c[_0x1e44dd(0xaa)]!==_0x1e44dd(0x80)||!_0x568b4c['defaultApp'][_0x1e44dd(0xa6)]())return![];if(!isRecord(_0x568b4c[_0x1e44dd(0xb3)]))return![];const _0x19170b=_0x568b4c['apps'][_0x568b4c['defaultApp'][_0x1e44dd(0xa6)]()];return isRecord(_0x19170b)&&typeof _0x19170b['appcode']===_0x1e44dd(0x80)&&_0x19170b[_0x1e44dd(0xa3)][_0x1e44dd(0xa6)]()[_0x1e44dd(0xa0)]>0x0;}function assertWorkspaceCommandState(_0xb9085d,_0xccf22a){const _0x40cc1e=a64_0x2bafa8,_0x56368e=hasWorkspaceAppBinding(_0xccf22a);if(_0xb9085d==='init'&&_0x56368e)throw CliErrors[_0x40cc1e(0xaf)](_0x40cc1e(0x7f),_0x40cc1e(0x8b)+CLI_BIN_NAME+_0x40cc1e(0x73)+CLI_BIN_NAME+_0x40cc1e(0xa5));if(_0xb9085d===_0x40cc1e(0xae)&&!_0x56368e)throw CliErrors[_0x40cc1e(0xaf)](_0x40cc1e(0x86),'Run\x20`'+CLI_BIN_NAME+_0x40cc1e(0x8f)+CLI_BIN_NAME+_0x40cc1e(0x8e));}function makeWorkspaceCommand(_0xf9810a){const _0x24ac9d=a64_0x2bafa8;return{'service':_0x24ac9d(0x7b),'command':_0xf9810a,'description':_0xf9810a===_0x24ac9d(0x7a)?'为尚未绑定应用的当前工作目录初始化应用上下文':'修改当前工作目录已有绑定的应用上下文','risk':_0x24ac9d(0x95),'confirmationDescription':_0xf9810a==='init'?_0x24ac9d(0x9d):'将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0xdcfd58){return executeWorkspaceUse(_0xdcfd58,_0xf9810a);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a64_0x2bafa8(0x7a)),makeWorkspaceCommand(a64_0x2bafa8(0xae))];
1
+ const a64_0x478d00=a64_0x5cd9;(function(_0x39c500,_0xc88ca7){const _0x27fe66=a64_0x5cd9,_0x2e2f17=_0x39c500();while(!![]){try{const _0x5e3cb4=parseInt(_0x27fe66(0x173))/0x1*(parseInt(_0x27fe66(0x19b))/0x2)+-parseInt(_0x27fe66(0x171))/0x3*(parseInt(_0x27fe66(0x183))/0x4)+-parseInt(_0x27fe66(0x1a3))/0x5*(parseInt(_0x27fe66(0x176))/0x6)+-parseInt(_0x27fe66(0x188))/0x7*(-parseInt(_0x27fe66(0x197))/0x8)+-parseInt(_0x27fe66(0x1b0))/0x9*(parseInt(_0x27fe66(0x172))/0xa)+parseInt(_0x27fe66(0x1a2))/0xb*(parseInt(_0x27fe66(0x1aa))/0xc)+parseInt(_0x27fe66(0x1a5))/0xd;if(_0x5e3cb4===_0xc88ca7)break;else _0x2e2f17['push'](_0x2e2f17['shift']());}catch(_0x298b0a){_0x2e2f17['push'](_0x2e2f17['shift']());}}}(a64_0x1c86,0xe5322));import{CLI_BIN_NAME}from'../../constant/cli.js';function a64_0x5cd9(_0x30c886,_0x370644){_0x30c886=_0x30c886-0x170;const _0x1c86e0=a64_0x1c86();let _0x5cd9d4=_0x1c86e0[_0x30c886];return _0x5cd9d4;}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':a64_0x478d00(0x19d),'type':'string','description':a64_0x478d00(0x194)},{'name':a64_0x478d00(0x1b1),'type':'string','description':a64_0x478d00(0x178)},{'name':a64_0x478d00(0x184),'type':a64_0x478d00(0x189),'description':a64_0x478d00(0x1a4),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x32da31,_0x4c7c08){const _0x292015=a64_0x478d00,_0x13ca7e=_0x32da31['str']('app')[_0x292015(0x18f)](),_0x5ed3d3=_0x32da31[_0x292015(0x170)](_0x292015(0x1b1))['trim'](),_0x1d49dc=_0x32da31[_0x292015(0x170)]('env')[_0x292015(0x18f)](),_0x5a5be0=resolveWorkspaceEnv(_0x1d49dc||_0x32da31['envName']||DEFAULT_CONFIG_VALUES['env']);if(!_0x13ca7e&&!_0x5ed3d3)throw CliErrors[_0x292015(0x19f)](_0x292015(0x1a6),_0x292015(0x1a1)+CLI_BIN_NAME+'\x20workspace\x20'+_0x4c7c08+_0x292015(0x1a8)+CLI_BIN_NAME+_0x292015(0x18c)+_0x4c7c08+_0x292015(0x18a));if(_0x13ca7e&&_0x5ed3d3)throw CliErrors[_0x292015(0x19f)]('Conflicting\x20workspace\x20app\x20selectors.','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.');const _0x47f97b=resolveWriteConfigPath(_0x292015(0x19c)),_0x22ad06=readConfigFile(_0x47f97b);assertWorkspaceCommandState(_0x4c7c08,_0x22ad06);const _0x45ca4b=_0x5ed3d3||await resolveRemoteAppCode({'command':_0x4c7c08,'appName':_0x13ca7e,'env':_0x5a5be0,'accessKey':_0x32da31[_0x292015(0x193)]});return writeWorkspaceConfig({'command':_0x4c7c08,'appName':_0x13ca7e,'appcode':_0x45ca4b,'env':_0x5a5be0,'shouldWriteEnv':!!_0x1d49dc,'accessKey':_0x32da31[_0x292015(0x193)]},_0x47f97b,_0x22ad06),{'ok':!![],'data':{'configPath':_0x47f97b,'app':_0x13ca7e||null,'appcode':_0x45ca4b,'env':_0x1d49dc?_0x5a5be0:null,'accessKeyWritten':![],'command':_0x292015(0x174)+_0x4c7c08},'message':buildWorkspaceMessage(_0x47f97b,_0x13ca7e,_0x45ca4b,_0x1d49dc?_0x5a5be0:undefined)};}async function resolveRemoteAppCode(_0x2e5c68){const _0x43e3c7=a64_0x478d00;if(!_0x2e5c68[_0x43e3c7(0x193)])throw CliErrors[_0x43e3c7(0x17c)](_0x43e3c7(0x1ad)+CLI_BIN_NAME+_0x43e3c7(0x18c)+_0x2e5c68[_0x43e3c7(0x195)]+'.');const {setActiveAK:_0x517efa}=await import('../../core/api-client.js'),{getRemoteAppList:_0x34834a}=await import(_0x43e3c7(0x190));_0x517efa(_0x2e5c68[_0x43e3c7(0x193)]);const _0x2b8123=await _0x34834a({'env':_0x2e5c68[_0x43e3c7(0x184)],'accessKey':_0x2e5c68['accessKey'],'noCache':![]}),_0x1b805d=findAppByName(_0x2b8123[_0x43e3c7(0x191)],_0x2e5c68['appName']);if(_0x1b805d&&!isRuntimeAccessibleApp(_0x1b805d))throw runtimeInaccessibleAppError(_0x1b805d,'\x22'+_0x2e5c68['appName']+'\x22');const _0x1ebaef=_0x1b805d?.[_0x43e3c7(0x18d)]?.[_0x43e3c7(0x18f)]();if(_0x1ebaef)return _0x1ebaef;const _0x355880=_0x2b8123[_0x43e3c7(0x191)][_0x43e3c7(0x175)](_0x5c167d=>_0x5c167d[_0x43e3c7(0x17e)])[_0x43e3c7(0x1b2)](Boolean),_0x49a677=_0x355880[_0x43e3c7(0x17f)]?_0x43e3c7(0x19a)+Array['from'](new Set(_0x355880))[_0x43e3c7(0x181)](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+_0x43e3c7(0x18b);throw CliErrors[_0x43e3c7(0x19f)](_0x43e3c7(0x19e)+_0x2e5c68[_0x43e3c7(0x17e)]+_0x43e3c7(0x182),_0x49a677);}function writeWorkspaceConfig(_0x18b526,_0xecb57f,_0x20d2fa){const _0x3161a0=a64_0x478d00;_0x18b526[_0x3161a0(0x1af)]&&(_0x20d2fa[_0x3161a0(0x184)]=_0x18b526[_0x3161a0(0x184)]);if(_0x18b526[_0x3161a0(0x17e)]){const _0x4a1b23=isRecord(_0x20d2fa['apps'])?{..._0x20d2fa[_0x3161a0(0x186)]}:{},_0x54993a=isRecord(_0x4a1b23[_0x18b526[_0x3161a0(0x17e)]])?_0x4a1b23[_0x18b526[_0x3161a0(0x17e)]]:{};return _0x4a1b23[_0x18b526[_0x3161a0(0x17e)]]={..._0x54993a,'appcode':_0x18b526[_0x3161a0(0x1b1)]},_0x20d2fa[_0x3161a0(0x186)]=_0x4a1b23,_0x20d2fa[_0x3161a0(0x1ab)]=_0x18b526[_0x3161a0(0x17e)],delete _0x20d2fa[_0x3161a0(0x1b1)],delete _0x20d2fa['app'],writeAndReturn(_0xecb57f,_0x20d2fa);}return _0x20d2fa[_0x3161a0(0x1b1)]=_0x18b526['appcode'],delete _0x20d2fa[_0x3161a0(0x1ab)],delete _0x20d2fa[_0x3161a0(0x19d)],writeAndReturn(_0xecb57f,_0x20d2fa);}function writeAndReturn(_0x5e19a6,_0x2fc505){return writeConfigFile(_0x5e19a6,_0x2fc505),_0x5e19a6;}function resolveWorkspaceEnv(_0x406f1d){const _0xae424a=a64_0x478d00;if(RUNTIME_ENV_VALUES['includes'](_0x406f1d))return _0x406f1d;throw CliErrors[_0xae424a(0x19f)](_0xae424a(0x180)+_0x406f1d+_0xae424a(0x192)+RUNTIME_ENV_VALUES[_0xae424a(0x181)](',\x20'));}function buildWorkspaceMessage(_0x5ca072,_0x4b5cd6,_0x2597dc,_0x14c47a){const _0x32eff9=a64_0x478d00,_0x48cdd0=_0x4b5cd6?_0x4b5cd6+'\x20('+_0x2597dc+')':_0x2597dc,_0x2f38b4=_0x14c47a?_0x32eff9(0x1ac)+_0x14c47a:'';return _0x32eff9(0x17a)+_0x5ca072+_0x32eff9(0x17d)+_0x48cdd0+_0x2f38b4+_0x32eff9(0x196);}function a64_0x1c86(){const _0x2e2b6d=['Usage:\x20','159335daHyee','95915rVULOc','Target\x20environment','19334757bYHQxK','Missing\x20workspace\x20app\x20selector.','use','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','1344ycpMEO','defaultApp','\x0aEnv:\x20','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','init','shouldWriteEnv','180zERdLH','appcode','filter','str','81GNDnKg','792580owfaaN','19781GAFMxx','workspace\x20','map','420pqInEB','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','App\x20code\x20to\x20bind\x20directly','isArray','Workspace\x20configured.\x0aConfig\x20file:\x20','Use\x20`','authRequired','\x0aDefault\x20app:\x20','appName','length','Invalid\x20env\x20\x22','join','\x22\x20not\x20found.','251780iboGRw','env','workspace','apps','Workspace\x20app\x20context\x20is\x20not\x20initialized.','24731ZvJgIe','string','\x20--appcode\x20<code>\x20[--env\x20daily]','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','\x20workspace\x20','appCode','将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','trim','../../commands/app/remote-source.js','items','\x22.\x20Allowed:\x20','accessKey','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','command','\x0aAccessKey:\x20not\x20written','3368zYVISo','Run\x20`','修改当前工作目录已有绑定的应用上下文','Available\x20apps:\x20','98UhaNGE','project','app','App\x20\x22','validation','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.'];a64_0x1c86=function(){return _0x2e2b6d;};return a64_0x1c86();}function isRecord(_0x314d8e){const _0x263641=a64_0x478d00;return typeof _0x314d8e==='object'&&_0x314d8e!==null&&!Array[_0x263641(0x179)](_0x314d8e);}function hasWorkspaceAppBinding(_0x1d93d5){const _0x165017=a64_0x478d00;if(typeof _0x1d93d5['appcode']===_0x165017(0x189)&&_0x1d93d5[_0x165017(0x1b1)][_0x165017(0x18f)]()[_0x165017(0x17f)]>0x0)return!![];if(typeof _0x1d93d5[_0x165017(0x1ab)]!==_0x165017(0x189)||!_0x1d93d5[_0x165017(0x1ab)][_0x165017(0x18f)]())return![];if(!isRecord(_0x1d93d5[_0x165017(0x186)]))return![];const _0x3581b0=_0x1d93d5['apps'][_0x1d93d5['defaultApp'][_0x165017(0x18f)]()];return isRecord(_0x3581b0)&&typeof _0x3581b0['appcode']==='string'&&_0x3581b0[_0x165017(0x1b1)][_0x165017(0x18f)]()[_0x165017(0x17f)]>0x0;}function assertWorkspaceCommandState(_0x33429c,_0x3619cc){const _0x10911b=a64_0x478d00,_0x4276f2=hasWorkspaceAppBinding(_0x3619cc);if(_0x33429c==='init'&&_0x4276f2)throw CliErrors[_0x10911b(0x19f)]('Workspace\x20app\x20context\x20is\x20already\x20initialized.',_0x10911b(0x17b)+CLI_BIN_NAME+_0x10911b(0x1a9)+CLI_BIN_NAME+'\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.');if(_0x33429c===_0x10911b(0x1a7)&&!_0x4276f2)throw CliErrors[_0x10911b(0x19f)](_0x10911b(0x187),_0x10911b(0x198)+CLI_BIN_NAME+_0x10911b(0x177)+CLI_BIN_NAME+_0x10911b(0x1a0));}function makeWorkspaceCommand(_0x5a32bd){const _0x4293e0=a64_0x478d00;return{'service':_0x4293e0(0x185),'command':_0x5a32bd,'description':_0x5a32bd===_0x4293e0(0x1ae)?'为尚未绑定应用的当前工作目录初始化应用上下文':_0x4293e0(0x199),'risk':'write','confirmationDescription':_0x5a32bd===_0x4293e0(0x1ae)?_0x4293e0(0x18e):'将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x3117c4){return executeWorkspaceUse(_0x3117c4,_0x5a32bd);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a64_0x478d00(0x1ae)),makeWorkspaceCommand(a64_0x478d00(0x1a7))];
@@ -1 +1 @@
1
- const a65_0x14c232=a65_0x2052;(function(_0x11bfcf,_0x537e91){const _0x532b57=a65_0x2052,_0x3eba6d=_0x11bfcf();while(!![]){try{const _0x327fce=-parseInt(_0x532b57(0x190))/0x1+-parseInt(_0x532b57(0x196))/0x2*(parseInt(_0x532b57(0x198))/0x3)+-parseInt(_0x532b57(0x199))/0x4+-parseInt(_0x532b57(0x189))/0x5+parseInt(_0x532b57(0x193))/0x6+parseInt(_0x532b57(0x192))/0x7+parseInt(_0x532b57(0x195))/0x8;if(_0x327fce===_0x537e91)break;else _0x3eba6d['push'](_0x3eba6d['shift']());}catch(_0x55370e){_0x3eba6d['push'](_0x3eba6d['shift']());}}}(a65_0x3633,0x51416));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';function a65_0x3633(){const _0x164b7b=['env','630078UcQZKE','defaultValue','1838690WcKGBx','2479794zezeNT','map','12562224TIYvbM','218OBeBnH','Risk\x20level','12066qGQvFT','2057816GFXrCW','Override\x20API\x20domain','Override\x20SkillHub\x20domain','locale',';\x20local\x20alias:\x20apps.<alias>.appcode','join','Default\x20page\x20size','entries','Override\x20runtime\x20domain','Access\x20key\x20(client-ak\x20auth)','Locale','cliSettableTopLevel','1652475zrNVKM','enumValues','riskLevel','Target\x20environment','Default\x20output\x20format','importable'];a65_0x3633=function(){return _0x164b7b;};return a65_0x3633();}import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a65_0x14c232(0x18c),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x14c232(0x18f)],'importable':!![]},'format':{'description':a65_0x14c232(0x18d),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['format'],'importable':!![]},'pageSize':{'description':a65_0x14c232(0x183),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a65_0x14c232(0x19a),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a65_0x14c232(0x185),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a65_0x14c232(0x19b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a65_0x14c232(0x186),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a65_0x14c232(0x197),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x14c232(0x18b)],'importable':!![]},'locale':{'description':a65_0x14c232(0x187),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x14c232(0x180)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a65_0x14c232(0x184)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x4a8da4])=>_0x4a8da4[a65_0x14c232(0x188)])[a65_0x14c232(0x194)](([_0x4fc663])=>_0x4fc663));function a65_0x2052(_0x129b2b,_0x5a87f9){_0x129b2b=_0x129b2b-0x180;const _0x363354=a65_0x3633();let _0x20528d=_0x363354[_0x129b2b];return _0x20528d;}export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object[a65_0x14c232(0x184)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0xf03a2f])=>_0xf03a2f['enumValues'])['map'](([_0xa142cb,_0x5aea8b])=>[_0xa142cb,[..._0x5aea8b['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a65_0x14c232(0x184)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0xda1e66])=>_0xda1e66[a65_0x14c232(0x18e)])['map'](([_0x11838a])=>_0x11838a);export function getConfigFieldSchema(_0x489841){return CONFIG_FIELD_SCHEMAS[_0x489841];}export function getConfigEnumValues(_0x3db5f5){const _0x1c95f0=a65_0x14c232;return getConfigFieldSchema(_0x3db5f5)?.[_0x1c95f0(0x18a)];}export function getConfigDefaultValue(_0xc8501a){const _0x59ca55=a65_0x14c232;return getConfigFieldSchema(_0xc8501a)?.[_0x59ca55(0x191)];}export function isTopLevelConfigKey(_0x134938){return TOP_LEVEL_CONFIG_KEYS['has'](_0x134938);}export function isLegacyCompatConfigKey(_0x1cde37){return getConfigFieldSchema(_0x1cde37)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x4ea290){const _0x10bbd1=a65_0x14c232;return[..._0x4ea290][_0x10bbd1(0x182)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x1ccc21=a65_0x14c232;return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+_0x1ccc21(0x181);}export function buildAppProfileListFields(_0x2fdea6){return{'env':_0x2fdea6,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a65_0x1db613=a65_0x5cac;(function(_0x5ebf56,_0x5dab0c){const _0x5e7387=a65_0x5cac,_0x3df7c4=_0x5ebf56();while(!![]){try{const _0x135d88=-parseInt(_0x5e7387(0xe7))/0x1+-parseInt(_0x5e7387(0xde))/0x2*(parseInt(_0x5e7387(0xd8))/0x3)+parseInt(_0x5e7387(0xcf))/0x4*(parseInt(_0x5e7387(0xdc))/0x5)+-parseInt(_0x5e7387(0xd7))/0x6+parseInt(_0x5e7387(0xe2))/0x7*(parseInt(_0x5e7387(0xd3))/0x8)+parseInt(_0x5e7387(0xd2))/0x9*(parseInt(_0x5e7387(0xe1))/0xa)+-parseInt(_0x5e7387(0xe3))/0xb;if(_0x135d88===_0x5dab0c)break;else _0x3df7c4['push'](_0x3df7c4['shift']());}catch(_0x413886){_0x3df7c4['push'](_0x3df7c4['shift']());}}}(a65_0x2356,0x5dabd));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':a65_0x1db613(0xea),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x1db613(0xe4)],'importable':!![]},'format':{'description':a65_0x1db613(0xd9),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x1db613(0xe0)],'importable':!![]},'pageSize':{'description':a65_0x1db613(0xd4),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a65_0x1db613(0xef),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a65_0x1db613(0xda),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a65_0x1db613(0xed),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a65_0x1db613(0xeb),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a65_0x1db613(0xd6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a65_0x1db613(0xee),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x1db613(0xe9)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a65_0x1db613(0xd0)](CONFIG_FIELD_SCHEMAS)[a65_0x1db613(0xd5)](([,_0x316402])=>_0x316402[a65_0x1db613(0xdf)])[a65_0x1db613(0xe5)](([_0x8e8b23])=>_0x8e8b23));function a65_0x5cac(_0x241507,_0x32b51d){_0x241507=_0x241507-0xcf;const _0x2356de=a65_0x2356();let _0x5cac24=_0x2356de[_0x241507];return _0x5cac24;}export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object[a65_0x1db613(0xd0)](CONFIG_FIELD_SCHEMAS)[a65_0x1db613(0xd5)](([,_0x457145])=>_0x457145[a65_0x1db613(0xec)])[a65_0x1db613(0xe5)](([_0x299fcf,_0x4f2cc9])=>[_0x299fcf,[..._0x4f2cc9[a65_0x1db613(0xec)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a65_0x1db613(0xd0)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x49cd72])=>_0x49cd72[a65_0x1db613(0xd1)])['map'](([_0x161fd5])=>_0x161fd5);export function getConfigFieldSchema(_0x58e8a8){return CONFIG_FIELD_SCHEMAS[_0x58e8a8];}export function getConfigEnumValues(_0x5e095d){const _0x50df0b=a65_0x1db613;return getConfigFieldSchema(_0x5e095d)?.[_0x50df0b(0xec)];}export function getConfigDefaultValue(_0xfd0740){const _0x499c12=a65_0x1db613;return getConfigFieldSchema(_0xfd0740)?.[_0x499c12(0xdd)];}export function isTopLevelConfigKey(_0x29f1ad){return TOP_LEVEL_CONFIG_KEYS['has'](_0x29f1ad);}export function isLegacyCompatConfigKey(_0x8c8e39){const _0x29ea25=a65_0x1db613;return getConfigFieldSchema(_0x8c8e39)?.[_0x29ea25(0xe6)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x5aad0e){const _0x55687d=a65_0x1db613;return[..._0x5aad0e][_0x55687d(0xdb)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x4132d5=a65_0x1db613;return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+_0x4132d5(0xe8);}function a65_0x2356(){const _0x511997=['Override\x20user\x20domain','join','2683015bEYLUM','defaultValue','418346xdsqIF','cliSettableTopLevel','format','10wuAGaP','3929065CDblLn','5996683vXSsta','env','map','legacyCompatOnly','153137UWGynm',';\x20local\x20alias:\x20apps.<alias>.appcode','locale','Target\x20environment','Override\x20SkillHub\x20domain','enumValues','Override\x20runtime\x20domain','Risk\x20level','Override\x20API\x20domain','4PmssiA','entries','importable','2952477qSHZTT','8EEfyhW','Default\x20page\x20size','filter','Access\x20key\x20(client-ak\x20auth)','808866dXvTrv','3rtxJZG','Default\x20output\x20format'];a65_0x2356=function(){return _0x511997;};return a65_0x2356();}export function buildAppProfileListFields(_0x3ce96d){return{'env':_0x3ce96d,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- const a66_0x20cce7=a66_0x516a;(function(_0x211dee,_0x439552){const _0x2f7239=a66_0x516a,_0x4f4977=_0x211dee();while(!![]){try{const _0x168fa0=parseInt(_0x2f7239(0x1b1))/0x1*(parseInt(_0x2f7239(0x1b0))/0x2)+-parseInt(_0x2f7239(0x1a8))/0x3+-parseInt(_0x2f7239(0x1af))/0x4+-parseInt(_0x2f7239(0x1b2))/0x5+-parseInt(_0x2f7239(0x1aa))/0x6*(-parseInt(_0x2f7239(0x1ac))/0x7)+-parseInt(_0x2f7239(0x1ab))/0x8*(-parseInt(_0x2f7239(0x1a9))/0x9)+parseInt(_0x2f7239(0x1b4))/0xa*(parseInt(_0x2f7239(0x1ae))/0xb);if(_0x168fa0===_0x439552)break;else _0x4f4977['push'](_0x4f4977['shift']());}catch(_0x469da0){_0x4f4977['push'](_0x4f4977['shift']());}}}(a66_0x3924,0xa3817));function a66_0x516a(_0x2ac52f,_0x29993c){_0x2ac52f=_0x2ac52f-0x1a8;const _0x3924ca=a66_0x3924();let _0x516a25=_0x3924ca[_0x2ac52f];return _0x516a25;}export const APP_PUBLISH_STATUS={'Published':a66_0x20cce7(0x1b5),'Unpublished':a66_0x20cce7(0x1b3)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a66_0x20cce7(0x1ad)];function a66_0x3924(){const _0x375543=['UNPUBLISH','30970HsoLMY','PUBLISHED','1760061qnMjWt','9uvsbSC','936yIszbj','10154904BMPEXr','18634VkyLuA','Published','5412ChcMKr','5284964yxuLno','204902RLzQis','1eHjYOi','3665815ozexyj'];a66_0x3924=function(){return _0x375543;};return a66_0x3924();}
1
+ const a66_0x58b277=a66_0x2f23;function a66_0x2f23(_0x2f39c8,_0x305d40){_0x2f39c8=_0x2f39c8-0x1b6;const _0x2d2d9b=a66_0x2d2d();let _0x2f2391=_0x2d2d9b[_0x2f39c8];return _0x2f2391;}(function(_0xf4ffe7,_0x47f8e4){const _0x16bc10=a66_0x2f23,_0x3671d8=_0xf4ffe7();while(!![]){try{const _0x5e177f=parseInt(_0x16bc10(0x1b7))/0x1+-parseInt(_0x16bc10(0x1bb))/0x2*(-parseInt(_0x16bc10(0x1bc))/0x3)+parseInt(_0x16bc10(0x1b6))/0x4*(-parseInt(_0x16bc10(0x1bd))/0x5)+parseInt(_0x16bc10(0x1b8))/0x6*(-parseInt(_0x16bc10(0x1c1))/0x7)+parseInt(_0x16bc10(0x1be))/0x8+parseInt(_0x16bc10(0x1b9))/0x9*(-parseInt(_0x16bc10(0x1ba))/0xa)+parseInt(_0x16bc10(0x1c0))/0xb;if(_0x5e177f===_0x47f8e4)break;else _0x3671d8['push'](_0x3671d8['shift']());}catch(_0x586db9){_0x3671d8['push'](_0x3671d8['shift']());}}}(a66_0x2d2d,0xb0b15));function a66_0x2d2d(){const _0x470da0=['UNPUBLISH','9438451izFANe','7KvNGQG','8HaeKWK','461470GSThOw','3149106EOMbtD','8910369VOzEBd','10lCgTGD','6tsgXML','603453ZJVEcY','2091035pPBIfS','9216600hXUVVh'];a66_0x2d2d=function(){return _0x470da0;};return a66_0x2d2d();}export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a66_0x58b277(0x1bf)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];
@@ -1 +1 @@
1
- (function(_0x552477,_0x145773){const _0x7ade99=a67_0x3804,_0x7bd0eb=_0x552477();while(!![]){try{const _0x19ca8d=parseInt(_0x7ade99(0x1e8))/0x1*(-parseInt(_0x7ade99(0x1df))/0x2)+parseInt(_0x7ade99(0x1e4))/0x3+parseInt(_0x7ade99(0x1e0))/0x4+parseInt(_0x7ade99(0x1e2))/0x5*(parseInt(_0x7ade99(0x1e3))/0x6)+-parseInt(_0x7ade99(0x1e7))/0x7*(-parseInt(_0x7ade99(0x1e5))/0x8)+-parseInt(_0x7ade99(0x1e9))/0x9+-parseInt(_0x7ade99(0x1e6))/0xa*(parseInt(_0x7ade99(0x1e1))/0xb);if(_0x19ca8d===_0x145773)break;else _0x7bd0eb['push'](_0x7bd0eb['shift']());}catch(_0x4b724e){_0x7bd0eb['push'](_0x7bd0eb['shift']());}}}(a67_0x2d44,0x746e7));function a67_0x3804(_0x2bc002,_0x1b3979){_0x2bc002=_0x2bc002-0x1df;const _0x2d4402=a67_0x2d44();let _0x38049b=_0x2d4402[_0x2bc002];return _0x38049b;}export const AUTH_MODE={'ClientAk':'client-ak'};function a67_0x2d44(){const _0x13da57=['1894448gurKtt','1100fFmjtd','14415ngmlXf','468LtkaPA','2384070gnziBB','16AzZrPU','54190utVycr','1536437wQyyBs','4157OXWlSd','1859985bRYHgQ','340JFMzYa'];a67_0x2d44=function(){return _0x13da57;};return a67_0x2d44();}export function isAuthMode(_0x420cc7){return _0x420cc7===AUTH_MODE['ClientAk'];}
1
+ const a67_0x5fee1c=a67_0x16ef;(function(_0x13c1a9,_0x336456){const _0x1e4108=a67_0x16ef,_0x4d9ef3=_0x13c1a9();while(!![]){try{const _0x208166=-parseInt(_0x1e4108(0xcc))/0x1+-parseInt(_0x1e4108(0xcf))/0x2+-parseInt(_0x1e4108(0xd4))/0x3*(parseInt(_0x1e4108(0xd1))/0x4)+parseInt(_0x1e4108(0xce))/0x5*(-parseInt(_0x1e4108(0xd0))/0x6)+parseInt(_0x1e4108(0xd2))/0x7+-parseInt(_0x1e4108(0xd7))/0x8+parseInt(_0x1e4108(0xcd))/0x9*(parseInt(_0x1e4108(0xd5))/0xa);if(_0x208166===_0x336456)break;else _0x4d9ef3['push'](_0x4d9ef3['shift']());}catch(_0x4460ad){_0x4d9ef3['push'](_0x4d9ef3['shift']());}}}(a67_0x1f6a,0x5722e));function a67_0x1f6a(){const _0x4b92af=['316760zQaCJy','ClientAk','2222192DFKzlX','100931EvJueH','243nEYhyO','126935tGQykZ','48856TnzcyC','156LargCV','12iBnntj','4887505NEdMnI','client-ak','133362fwFPFe'];a67_0x1f6a=function(){return _0x4b92af;};return a67_0x1f6a();}export const AUTH_MODE={'ClientAk':a67_0x5fee1c(0xd3)};function a67_0x16ef(_0x5bd626,_0x407cd5){_0x5bd626=_0x5bd626-0xcc;const _0x1f6a07=a67_0x1f6a();let _0x16ef54=_0x1f6a07[_0x5bd626];return _0x16ef54;}export function isAuthMode(_0x4745db){const _0x3551fc=a67_0x5fee1c;return _0x4745db===AUTH_MODE[_0x3551fc(0xd6)];}
@@ -1 +1 @@
1
- function a68_0x6361(){const _0x4afee9=['global','2UUuZBK','non-interactive','params','fromEntries','name','698583bqSnaD','appcode','Record\x20ID','dryRun','yes','2944596CIDsAR','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','Environment','production\x20|\x20development\x20|\x20daily','Skip\x20confirmation\x20for\x20high-risk\x20writes','8872eEdwux','5251582cdurKP','154nrcDdM','dry-run','cliDisplayName','Output\x20format','SQL\x20query\x20code','1402530whpwGm','Preview\x20operation\x20without\x20executing','string','cliBinName','Name\x20filter','70mkTqdw','env','Force\x20non-interactive\x20mode\x20(CI)','format','1622028JztnSI','<expr>','meowKey','Override\x20appcode','<name>','<code>','Verbose\x20output','36sTIfZF','JSON\x20params\x20for\x20execute\x20commands','boolean','verbose','clear','Show\x20help','113060lgOHqS','help','sqlcode','app','8htubsi','Select\x20app\x20profile\x20by\x20name'];a68_0x6361=function(){return _0x4afee9;};return a68_0x6361();}const a68_0x490251=a68_0x22db;(function(_0x168d62,_0x30f2fa){const _0x402d9a=a68_0x22db,_0x819ba9=_0x168d62();while(!![]){try{const _0x4683df=-parseInt(_0x402d9a(0x106))/0x1*(-parseInt(_0x402d9a(0x101))/0x2)+-parseInt(_0x402d9a(0xd8))/0x3+parseInt(_0x402d9a(0xdd))/0x4*(parseInt(_0x402d9a(0xe9))/0x5)+-parseInt(_0x402d9a(0xe4))/0x6+parseInt(_0x402d9a(0xde))/0x7*(-parseInt(_0x402d9a(0xfe))/0x8)+parseInt(_0x402d9a(0xf4))/0x9*(-parseInt(_0x402d9a(0xfa))/0xa)+-parseInt(_0x402d9a(0xdf))/0xb*(-parseInt(_0x402d9a(0xed))/0xc);if(_0x4683df===_0x30f2fa)break;else _0x819ba9['push'](_0x819ba9['shift']());}catch(_0x522924){_0x819ba9['push'](_0x819ba9['shift']());}}}(a68_0x6361,0x953c0));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a68_0x490251(0xe7)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a68_0x490251(0xe1)];function a68_0x22db(_0x1c1405,_0x47e6f6){_0x1c1405=_0x1c1405-0xd4;const _0x636162=a68_0x6361();let _0x22db11=_0x636162[_0x1c1405];return _0x22db11;}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a68_0x490251(0xd4),'meowKey':a68_0x490251(0xd4),'type':a68_0x490251(0xe6),'description':a68_0x490251(0xf0),'hint':a68_0x490251(0xf2)},{'name':'app','meowKey':a68_0x490251(0xfd),'type':'string','description':a68_0x490251(0xff),'hint':a68_0x490251(0xf1)},{'name':a68_0x490251(0xea),'meowKey':a68_0x490251(0xea),'type':'string','description':a68_0x490251(0xda),'hint':a68_0x490251(0xdb)},{'name':'format','meowKey':a68_0x490251(0xec),'type':a68_0x490251(0xe6),'description':a68_0x490251(0xe2),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a68_0x490251(0xe6),'description':a68_0x490251(0xd9),'hint':a68_0x490251(0xee)},{'name':a68_0x490251(0xe0),'meowKey':a68_0x490251(0xd6),'type':'boolean','description':a68_0x490251(0xe5)},{'name':a68_0x490251(0xd7),'meowKey':a68_0x490251(0xd7),'type':a68_0x490251(0xf6),'description':a68_0x490251(0xdc)},{'name':a68_0x490251(0x102),'meowKey':'nonInteractive','type':'boolean','description':a68_0x490251(0xeb)},{'name':a68_0x490251(0x100),'meowKey':a68_0x490251(0x100),'type':a68_0x490251(0xf6),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a68_0x490251(0xf6),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':'help','meowKey':a68_0x490251(0xfb),'type':a68_0x490251(0xf6),'description':a68_0x490251(0xf9)},{'name':'id','meowKey':'id','type':a68_0x490251(0xe6),'description':a68_0x490251(0xd5),'hidden':!![]},{'name':a68_0x490251(0x105),'meowKey':a68_0x490251(0x105),'type':a68_0x490251(0xe6),'description':a68_0x490251(0xe8),'hidden':!![]},{'name':'sqlcode','meowKey':a68_0x490251(0xfc),'type':a68_0x490251(0xe6),'description':a68_0x490251(0xe3),'hidden':!![]},{'name':a68_0x490251(0x103),'meowKey':a68_0x490251(0x103),'type':'string','description':a68_0x490251(0xf5),'hidden':!![]},{'name':a68_0x490251(0xf7),'meowKey':a68_0x490251(0xf7),'type':'boolean','description':a68_0x490251(0xf3),'hidden':!![]},{'name':a68_0x490251(0xf8),'meowKey':a68_0x490251(0xf8),'type':a68_0x490251(0xf6),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a68_0x490251(0xd4),'app',a68_0x490251(0xea),a68_0x490251(0xec),'jq','dry-run',a68_0x490251(0xd7),a68_0x490251(0x102),'ci']);export function buildMeowFlags(){const _0x53dbb9=a68_0x490251;return Object[_0x53dbb9(0x104)](GLOBAL_FLAGS['map'](_0x3368b8=>[_0x3368b8[_0x53dbb9(0xef)],{'type':_0x3368b8['type']}]));}
1
+ function a68_0x21e8(_0x1e931c,_0x3dc96d){_0x1e931c=_0x1e931c-0x160;const _0x1e6713=a68_0x1e67();let _0x21e8f2=_0x1e6713[_0x1e931c];return _0x21e8f2;}const a68_0x2491ba=a68_0x21e8;(function(_0x3e0b85,_0x29ecc2){const _0x4c65b0=a68_0x21e8,_0x1c4801=_0x3e0b85();while(!![]){try{const _0x3aecae=-parseInt(_0x4c65b0(0x16d))/0x1*(parseInt(_0x4c65b0(0x186))/0x2)+parseInt(_0x4c65b0(0x17e))/0x3+parseInt(_0x4c65b0(0x173))/0x4*(-parseInt(_0x4c65b0(0x166))/0x5)+-parseInt(_0x4c65b0(0x17b))/0x6*(-parseInt(_0x4c65b0(0x163))/0x7)+-parseInt(_0x4c65b0(0x161))/0x8*(parseInt(_0x4c65b0(0x189))/0x9)+parseInt(_0x4c65b0(0x165))/0xa+parseInt(_0x4c65b0(0x182))/0xb;if(_0x3aecae===_0x29ecc2)break;else _0x1c4801['push'](_0x1c4801['shift']());}catch(_0x2f7198){_0x1c4801['push'](_0x1c4801['shift']());}}}(a68_0x1e67,0xe295f));function a68_0x1e67(){const _0x14e9f0=['Clear\x20output','Select\x20app\x20profile\x20by\x20name','json\x20|\x20pretty\x20|\x20compress','Output\x20format','string','Use\x20global\x20config\x20scope','cliBinName','boolean','Environment','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','name','sqlcode','96144MxEhxb','help','441FrCGIg','Force\x20non-interactive\x20mode\x20(CI)','11434020emYaFj','108005PlWwRR','Record\x20ID','Preview\x20operation\x20without\x20executing','params','format','non-interactive','app','2141FKesJU','<code>','yes','Name\x20filter','SQL\x20query\x20code','dry-run','132wuRZDF','cliDisplayName','<expr>','clear','<name>','JSON\x20params\x20for\x20execute\x20commands','dryRun','verbose','22314YhxWyk','Skip\x20confirmation\x20for\x20high-risk\x20writes','map','5196285aaBJEP','nonInteractive','appcode','meowKey','14733719dZXUyk','global','Alias\x20for\x20--non-interactive','production\x20|\x20development\x20|\x20daily','1714HIxdXL','env','Show\x20help','729gEkXyZ'];a68_0x1e67=function(){return _0x14e9f0;};return a68_0x1e67();}import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a68_0x2491ba(0x190)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a68_0x2491ba(0x174)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a68_0x2491ba(0x180),'meowKey':a68_0x2491ba(0x180),'type':a68_0x2491ba(0x18e),'description':'Override\x20appcode','hint':a68_0x2491ba(0x16e)},{'name':'app','meowKey':'app','type':a68_0x2491ba(0x18e),'description':a68_0x2491ba(0x18b),'hint':a68_0x2491ba(0x177)},{'name':a68_0x2491ba(0x187),'meowKey':a68_0x2491ba(0x187),'type':'string','description':a68_0x2491ba(0x192),'hint':a68_0x2491ba(0x185)},{'name':a68_0x2491ba(0x16a),'meowKey':a68_0x2491ba(0x16a),'type':a68_0x2491ba(0x18e),'description':a68_0x2491ba(0x18d),'hint':a68_0x2491ba(0x18c)},{'name':'jq','meowKey':'jq','type':a68_0x2491ba(0x18e),'description':a68_0x2491ba(0x193),'hint':a68_0x2491ba(0x175)},{'name':'dry-run','meowKey':a68_0x2491ba(0x179),'type':a68_0x2491ba(0x191),'description':a68_0x2491ba(0x168)},{'name':a68_0x2491ba(0x16f),'meowKey':a68_0x2491ba(0x16f),'type':a68_0x2491ba(0x191),'description':a68_0x2491ba(0x17c)},{'name':a68_0x2491ba(0x16b),'meowKey':a68_0x2491ba(0x17f),'type':a68_0x2491ba(0x191),'description':a68_0x2491ba(0x164)},{'name':a68_0x2491ba(0x183),'meowKey':'global','type':'boolean','description':a68_0x2491ba(0x18f)},{'name':'ci','meowKey':'ci','type':'boolean','description':a68_0x2491ba(0x184),'hidden':!![]},{'name':a68_0x2491ba(0x162),'meowKey':a68_0x2491ba(0x162),'type':'boolean','description':a68_0x2491ba(0x188)},{'name':'id','meowKey':'id','type':a68_0x2491ba(0x18e),'description':a68_0x2491ba(0x167),'hidden':!![]},{'name':a68_0x2491ba(0x194),'meowKey':a68_0x2491ba(0x194),'type':'string','description':a68_0x2491ba(0x170),'hidden':!![]},{'name':a68_0x2491ba(0x160),'meowKey':a68_0x2491ba(0x160),'type':a68_0x2491ba(0x18e),'description':a68_0x2491ba(0x171),'hidden':!![]},{'name':a68_0x2491ba(0x169),'meowKey':a68_0x2491ba(0x169),'type':a68_0x2491ba(0x18e),'description':a68_0x2491ba(0x178),'hidden':!![]},{'name':a68_0x2491ba(0x17a),'meowKey':a68_0x2491ba(0x17a),'type':a68_0x2491ba(0x191),'description':'Verbose\x20output','hidden':!![]},{'name':'clear','meowKey':a68_0x2491ba(0x176),'type':a68_0x2491ba(0x191),'description':a68_0x2491ba(0x18a),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a68_0x2491ba(0x180),a68_0x2491ba(0x16c),a68_0x2491ba(0x187),'format','jq',a68_0x2491ba(0x172),a68_0x2491ba(0x16f),a68_0x2491ba(0x16b),'ci']);export function buildMeowFlags(){const _0x47783b=a68_0x2491ba;return Object['fromEntries'](GLOBAL_FLAGS[_0x47783b(0x17d)](_0x3292a8=>[_0x3292a8[_0x47783b(0x181)],{'type':_0x3292a8['type']}]));}
@@ -1 +1 @@
1
- const a69_0x1f1375=a69_0x2037;(function(_0x1294d8,_0x7900be){const _0x323415=a69_0x2037,_0x5e51b1=_0x1294d8();while(!![]){try{const _0x2a098d=parseInt(_0x323415(0xde))/0x1*(parseInt(_0x323415(0xd7))/0x2)+-parseInt(_0x323415(0xe1))/0x3+parseInt(_0x323415(0xd6))/0x4+-parseInt(_0x323415(0xd8))/0x5+parseInt(_0x323415(0xda))/0x6+parseInt(_0x323415(0xdf))/0x7*(-parseInt(_0x323415(0xe2))/0x8)+-parseInt(_0x323415(0xdb))/0x9*(-parseInt(_0x323415(0xd5))/0xa);if(_0x2a098d===_0x7900be)break;else _0x5e51b1['push'](_0x5e51b1['shift']());}catch(_0x369a74){_0x5e51b1['push'](_0x5e51b1['shift']());}}}(a69_0x4c44,0x3d520));export const DEFAULT_APP_PROFILE_NAME=a69_0x1f1375(0xdd);function a69_0x4c44(){const _0x41c07f=['80aiKQBN','1847868QkTZFx','1270MZtATk','909080QSkfVu','write','66666iXBMkr','195516Mzgzty','en-US','main','649ywlWlV','602Vailic','compress','659727QPkImX','37776puBNWr'];a69_0x4c44=function(){return _0x41c07f;};return a69_0x4c44();}export const DEFAULT_CONFIG_VALUES={'env':'production','format':'compress','locale':a69_0x1f1375(0xdc),'riskLevel':a69_0x1f1375(0xd9)};function a69_0x2037(_0x11365f,_0x367ccb){_0x11365f=_0x11365f-0xd5;const _0x4c44fc=a69_0x4c44();let _0x203788=_0x4c44fc[_0x11365f];return _0x203788;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a69_0x1f1375(0xe0);
1
+ const a69_0x229905=a69_0x5857;function a69_0x1d42(){const _0x103ea0=['29756RlCLdI','12yBOnXN','main','2356802pUGoBK','3357774QpWrOn','116iUkmzR','1831490fSCsjy','1160vYxOlR','660GZysQW','15110304NUuUak','1227366MxzZgP','compress','production','write'];a69_0x1d42=function(){return _0x103ea0;};return a69_0x1d42();}(function(_0x548895,_0x27a8fe){const _0x430d43=a69_0x5857,_0x13c5ad=_0x548895();while(!![]){try{const _0x47c591=parseInt(_0x430d43(0x1cd))/0x1*(-parseInt(_0x430d43(0x1c1))/0x2)+parseInt(_0x430d43(0x1cc))/0x3+-parseInt(_0x430d43(0x1c8))/0x4*(parseInt(_0x430d43(0x1c2))/0x5)+parseInt(_0x430d43(0x1c9))/0x6*(-parseInt(_0x430d43(0x1cb))/0x7)+parseInt(_0x430d43(0x1c3))/0x8+-parseInt(_0x430d43(0x1c4))/0x9+-parseInt(_0x430d43(0x1c0))/0xa;if(_0x47c591===_0x27a8fe)break;else _0x13c5ad['push'](_0x13c5ad['shift']());}catch(_0x1506cb){_0x13c5ad['push'](_0x13c5ad['shift']());}}}(a69_0x1d42,0xebd23));export const DEFAULT_APP_PROFILE_NAME=a69_0x229905(0x1ca);export const DEFAULT_CONFIG_VALUES={'env':a69_0x229905(0x1c6),'format':a69_0x229905(0x1c5),'locale':'en-US','riskLevel':a69_0x229905(0x1c7)};function a69_0x5857(_0x267ffa,_0x171639){_0x267ffa=_0x267ffa-0x1c0;const _0x1d4211=a69_0x1d42();let _0x585767=_0x1d4211[_0x267ffa];return _0x585767;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a69_0x229905(0x1c5);
@@ -1 +1 @@
1
- function a70_0x407e(_0x1c98c0,_0x4fbb89){_0x1c98c0=_0x1c98c0-0x1c6;const _0x23e9a0=a70_0x23e9();let _0x407e61=_0x23e9a0[_0x1c98c0];return _0x407e61;}const a70_0x3ddd0b=a70_0x407e;(function(_0x22a082,_0x5149df){const _0x13daf2=a70_0x407e,_0x3661d5=_0x22a082();while(!![]){try{const _0xe79dde=parseInt(_0x13daf2(0x1cd))/0x1+parseInt(_0x13daf2(0x1c8))/0x2+parseInt(_0x13daf2(0x1c7))/0x3+-parseInt(_0x13daf2(0x1cc))/0x4*(-parseInt(_0x13daf2(0x1ce))/0x5)+-parseInt(_0x13daf2(0x1d0))/0x6+parseInt(_0x13daf2(0x1c6))/0x7*(-parseInt(_0x13daf2(0x1ca))/0x8)+parseInt(_0x13daf2(0x1d1))/0x9*(-parseInt(_0x13daf2(0x1cf))/0xa);if(_0xe79dde===_0x5149df)break;else _0x3661d5['push'](_0x3661d5['shift']());}catch(_0x3938c8){_0x3661d5['push'](_0x3661d5['shift']());}}}(a70_0x23e9,0x243fa));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a70_0x3ddd0b(0x1c9)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a70_0x3ddd0b(0x1cb)];function a70_0x23e9(){const _0x2dd914=['skillSource','380876MbTuQK','228054pkgAsb','15jhfajB','10Rghrzg','770604LRdBNe','5286672mXrTKq','7056GszWtV','837990oXinCr','384470mmIKwQ','npmPackageName','960mJyhQh'];a70_0x23e9=function(){return _0x2dd914;};return a70_0x23e9();}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];
1
+ const a70_0x5cc339=a70_0x3856;function a70_0x2696(){const _0x51c103=['131892smHFOS','11YjqauC','400534RfgZDb','1WcfLbL','341644zFkPVk','3876130SiRgtJ','npmRegistryBaseUrl','15VgIPfz','npmPackageName','18PQxlqL','154609kbxuLt','325209olsSyp','521704thzTce'];a70_0x2696=function(){return _0x51c103;};return a70_0x2696();}(function(_0x10a218,_0x4ea3ff){const _0xef3136=a70_0x3856,_0x12b80d=_0x10a218();while(!![]){try{const _0x52e2aa=parseInt(_0xef3136(0x17d))/0x1*(parseInt(_0xef3136(0x17c))/0x2)+-parseInt(_0xef3136(0x178))/0x3+parseInt(_0xef3136(0x17e))/0x4*(-parseInt(_0xef3136(0x174))/0x5)+parseInt(_0xef3136(0x17a))/0x6+parseInt(_0xef3136(0x177))/0x7+parseInt(_0xef3136(0x179))/0x8*(-parseInt(_0xef3136(0x176))/0x9)+parseInt(_0xef3136(0x172))/0xa*(parseInt(_0xef3136(0x17b))/0xb);if(_0x52e2aa===_0x4ea3ff)break;else _0x12b80d['push'](_0x12b80d['shift']());}catch(_0x2e6428){_0x12b80d['push'](_0x12b80d['shift']());}}}(a70_0x2696,0x216b7));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a70_0x5cc339(0x175)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];function a70_0x3856(_0x2b9da1,_0x1e045a){_0x2b9da1=_0x2b9da1-0x172;const _0x2696bb=a70_0x2696();let _0x3856a0=_0x2696bb[_0x2b9da1];return _0x3856a0;}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a70_0x5cc339(0x173)];
@@ -1 +1 @@
1
- const a71_0xd4ab2b=a71_0x41a7;(function(_0x117b59,_0x3921c3){const _0x5b000a=a71_0x41a7,_0x57f289=_0x117b59();while(!![]){try{const _0x1475d9=-parseInt(_0x5b000a(0x189))/0x1+parseInt(_0x5b000a(0x186))/0x2+parseInt(_0x5b000a(0x187))/0x3*(-parseInt(_0x5b000a(0x17e))/0x4)+-parseInt(_0x5b000a(0x183))/0x5*(-parseInt(_0x5b000a(0x184))/0x6)+-parseInt(_0x5b000a(0x17d))/0x7*(-parseInt(_0x5b000a(0x179))/0x8)+parseInt(_0x5b000a(0x180))/0x9+-parseInt(_0x5b000a(0x17b))/0xa*(parseInt(_0x5b000a(0x18a))/0xb);if(_0x1475d9===_0x3921c3)break;else _0x57f289['push'](_0x57f289['shift']());}catch(_0x32d413){_0x57f289['push'](_0x57f289['shift']());}}}(a71_0x476b,0xbcb65));import{getEnv,isProduction}from'../constant/env.js';function a71_0x41a7(_0xbe9c87,_0x2a466c){_0xbe9c87=_0xbe9c87-0x178;const _0x476bfb=a71_0x476b();let _0x41a7d3=_0x476bfb[_0xbe9c87];return _0x41a7d3;}import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x5ba019){const _0x5d24fe=a71_0x41a7;customApiDomain=_0x5ba019?.['apiDomain'],customUserDomain=_0x5ba019?.[_0x5d24fe(0x17f)],customRuntimeDomain=_0x5ba019?.[_0x5d24fe(0x178)],customSkillHubDomain=_0x5ba019?.[_0x5d24fe(0x185)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0xd4ab2b(0x18b)][a71_0xd4ab2b(0x18c)][a71_0xd4ab2b(0x181)]:PRODUCT_CONFIG[a71_0xd4ab2b(0x18b)][a71_0xd4ab2b(0x188)]['user']);function a71_0x476b(){const _0x38a4aa=['904044GLTwHL','skillHubDomain','748748qKGzfh','63LTEJVd','nonProduction','866012SUEDEm','2545631CHeTlL','domains','production','runtimeDomain','8fvDNEf','runtime','40RDMBWm','api','8497349GgWTff','60708xLPJFu','userDomain','4875543QPmWvu','user','skillhub','25qCnipw'];a71_0x476b=function(){return _0x38a4aa;};return a71_0x476b();}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a71_0xd4ab2b(0x18c)]['api']:PRODUCT_CONFIG[a71_0xd4ab2b(0x18b)][a71_0xd4ab2b(0x188)][a71_0xd4ab2b(0x17c)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a71_0xd4ab2b(0x18c)][a71_0xd4ab2b(0x17a)]:PRODUCT_CONFIG['domains'][a71_0xd4ab2b(0x188)][a71_0xd4ab2b(0x17a)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0xd4ab2b(0x18b)][a71_0xd4ab2b(0x18c)][a71_0xd4ab2b(0x182)]:PRODUCT_CONFIG[a71_0xd4ab2b(0x18b)][a71_0xd4ab2b(0x188)][a71_0xd4ab2b(0x182)]);
1
+ const a71_0x3f3131=a71_0x1c57;(function(_0x5e07aa,_0x24a50e){const _0x34f3fd=a71_0x1c57,_0x2d8704=_0x5e07aa();while(!![]){try{const _0x48fd21=parseInt(_0x34f3fd(0xeb))/0x1*(-parseInt(_0x34f3fd(0xf3))/0x2)+parseInt(_0x34f3fd(0xf4))/0x3+parseInt(_0x34f3fd(0xe5))/0x4+parseInt(_0x34f3fd(0xf5))/0x5+parseInt(_0x34f3fd(0xea))/0x6+parseInt(_0x34f3fd(0xed))/0x7+-parseInt(_0x34f3fd(0xf1))/0x8;if(_0x48fd21===_0x24a50e)break;else _0x2d8704['push'](_0x2d8704['shift']());}catch(_0x26af66){_0x2d8704['push'](_0x2d8704['shift']());}}}(a71_0x5a82,0x88470));import{getEnv,isProduction}from'../constant/env.js';function a71_0x1c57(_0x3395ba,_0x6d46ca){_0x3395ba=_0x3395ba-0xe5;const _0x5a82ae=a71_0x5a82();let _0x1c57ae=_0x5a82ae[_0x3395ba];return _0x1c57ae;}function a71_0x5a82(){const _0x3da733=['481885ZAODgy','583832ouhFtA','api','skillhub','runtime','user','1180428vMcQGH','76714MICZlE','production','705446tMpGfF','skillHubDomain','runtimeDomain','domains','2413776GyXKil','nonProduction','18sTWkPo','3031467moIfXb'];a71_0x5a82=function(){return _0x3da733;};return a71_0x5a82();}import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x5dd6fb){const _0x3dbd48=a71_0x1c57;customApiDomain=_0x5dd6fb?.['apiDomain'],customUserDomain=_0x5dd6fb?.['userDomain'],customRuntimeDomain=_0x5dd6fb?.[_0x3dbd48(0xef)],customSkillHubDomain=_0x5dd6fb?.[_0x3dbd48(0xee)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x3f3131(0xf0)][a71_0x3f3131(0xec)][a71_0x3f3131(0xe9)]:PRODUCT_CONFIG['domains'][a71_0x3f3131(0xf2)][a71_0x3f3131(0xe9)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains']['production'][a71_0x3f3131(0xe6)]:PRODUCT_CONFIG['domains'][a71_0x3f3131(0xf2)][a71_0x3f3131(0xe6)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains']['production']['runtime']:PRODUCT_CONFIG['domains'][a71_0x3f3131(0xf2)][a71_0x3f3131(0xe8)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x3f3131(0xf0)]['production'][a71_0x3f3131(0xe7)]:PRODUCT_CONFIG[a71_0x3f3131(0xf0)][a71_0x3f3131(0xf2)][a71_0x3f3131(0xe7)]);
@@ -1 +1 @@
1
- const a72_0x473234=a72_0x3b8e;(function(_0x23f354,_0x3d920f){const _0x4ea84f=a72_0x3b8e,_0x2f83cc=_0x23f354();while(!![]){try{const _0x486355=parseInt(_0x4ea84f(0x189))/0x1+parseInt(_0x4ea84f(0x18a))/0x2+parseInt(_0x4ea84f(0x186))/0x3*(-parseInt(_0x4ea84f(0x17f))/0x4)+parseInt(_0x4ea84f(0x17e))/0x5*(-parseInt(_0x4ea84f(0x17d))/0x6)+-parseInt(_0x4ea84f(0x185))/0x7+-parseInt(_0x4ea84f(0x181))/0x8*(-parseInt(_0x4ea84f(0x18c))/0x9)+-parseInt(_0x4ea84f(0x180))/0xa*(-parseInt(_0x4ea84f(0x182))/0xb);if(_0x486355===_0x3d920f)break;else _0x2f83cc['push'](_0x2f83cc['shift']());}catch(_0x326a55){_0x2f83cc['push'](_0x2f83cc['shift']());}}}(a72_0x553c,0x63a65));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a72_0x473234(0x184),a72_0x473234(0x187),'daily'];export function normalizeEnv(_0x36b8e6){const _0x3751e7=a72_0x473234;return _0x36b8e6===_0x3751e7(0x188)?'production':_0x36b8e6;}function a72_0x553c(){const _0x381875=['production','5452265ERdeJM','3DqOHcu','development','online','444031JikkEy','425982VgFBji','daily','9JeypLe','24lBxlnC','437305BQuAvR','2301436BnSTvd','22530ByomQc','4198016LsBUng','4543ELdLAp','ENV'];a72_0x553c=function(){return _0x381875;};return a72_0x553c();}export function isProduction(_0x266a68){const _0x3005d3=a72_0x473234;return normalizeEnv(_0x266a68)===_0x3005d3(0x184);}export function isDaily(_0x35479e){const _0x179297=a72_0x473234;return normalizeEnv(_0x35479e)===_0x179297(0x18b);}function a72_0x3b8e(_0x35eedb,_0x43f7a5){_0x35eedb=_0x35eedb-0x17d;const _0x553c19=a72_0x553c();let _0x3b8e53=_0x553c19[_0x35eedb];return _0x3b8e53;}export function isDev(_0x3b43a6){const _0x1b1e90=a72_0x473234,_0x46d36f=normalizeEnv(_0x3b43a6);return _0x46d36f===_0x1b1e90(0x187)||_0x46d36f==='dev';}let env=normalizeEnv(productEnv(a72_0x473234(0x183))||a72_0x473234(0x184));export function getEnv(){return env;}export function initEnv(_0x443e42){env=normalizeEnv(_0x443e42);}
1
+ const a72_0x15b52a=a72_0x45eb;(function(_0x26916b,_0x2da00a){const _0x22b3d1=a72_0x45eb,_0x2f349e=_0x26916b();while(!![]){try{const _0x361774=parseInt(_0x22b3d1(0x174))/0x1+parseInt(_0x22b3d1(0x171))/0x2*(parseInt(_0x22b3d1(0x16b))/0x3)+-parseInt(_0x22b3d1(0x169))/0x4+-parseInt(_0x22b3d1(0x16f))/0x5+parseInt(_0x22b3d1(0x172))/0x6*(-parseInt(_0x22b3d1(0x167))/0x7)+-parseInt(_0x22b3d1(0x16a))/0x8*(-parseInt(_0x22b3d1(0x175))/0x9)+-parseInt(_0x22b3d1(0x168))/0xa*(-parseInt(_0x22b3d1(0x16e))/0xb);if(_0x361774===_0x2da00a)break;else _0x2f349e['push'](_0x2f349e['shift']());}catch(_0x561315){_0x2f349e['push'](_0x2f349e['shift']());}}}(a72_0x30bb,0x241d9));function a72_0x30bb(){const _0x45a8d2=['95773wFKlKi','9Hehzoq','3892MvXCnl','30mJpZOo','1160624GMdcIb','1110464uzNrFo','497346DokYom','production','daily','1385637FuPjcn','586115XpUzsO','development','2CTmtaW','2406FQDvYC','dev'];a72_0x30bb=function(){return _0x45a8d2;};return a72_0x30bb();}import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a72_0x15b52a(0x16c),a72_0x15b52a(0x170),a72_0x15b52a(0x16d)];export function normalizeEnv(_0x2eb197){return _0x2eb197==='online'?'production':_0x2eb197;}export function isProduction(_0x5f17df){const _0x554e56=a72_0x15b52a;return normalizeEnv(_0x5f17df)===_0x554e56(0x16c);}export function isDaily(_0xafb7d2){return normalizeEnv(_0xafb7d2)==='daily';}export function isDev(_0x1ce392){const _0x36959f=a72_0x15b52a,_0x164aae=normalizeEnv(_0x1ce392);return _0x164aae==='development'||_0x164aae===_0x36959f(0x173);}let env=normalizeEnv(productEnv('ENV')||a72_0x15b52a(0x16c));export function getEnv(){return env;}function a72_0x45eb(_0xba769b,_0xc80566){_0xba769b=_0xba769b-0x167;const _0x30bbec=a72_0x30bb();let _0x45eb49=_0x30bbec[_0xba769b];return _0x45eb49;}export function initEnv(_0x1e775a){env=normalizeEnv(_0x1e775a);}
@@ -1 +1 @@
1
- const a73_0x2dd958=a73_0xf9e7;(function(_0xfe0594,_0x159f93){const _0x4e1ee8=a73_0xf9e7,_0x8fe879=_0xfe0594();while(!![]){try{const _0x2ea570=parseInt(_0x4e1ee8(0x1f8))/0x1+-parseInt(_0x4e1ee8(0x1ee))/0x2+parseInt(_0x4e1ee8(0x1f0))/0x3+parseInt(_0x4e1ee8(0x1f4))/0x4+parseInt(_0x4e1ee8(0x1f7))/0x5*(-parseInt(_0x4e1ee8(0x1ef))/0x6)+parseInt(_0x4e1ee8(0x1f2))/0x7*(parseInt(_0x4e1ee8(0x1f6))/0x8)+parseInt(_0x4e1ee8(0x1f1))/0x9;if(_0x2ea570===_0x159f93)break;else _0x8fe879['push'](_0x8fe879['shift']());}catch(_0x537e09){_0x8fe879['push'](_0x8fe879['shift']());}}}(a73_0x5bc6,0x3e866));export const OUTPUT_FORMAT_VALUES=[a73_0x2dd958(0x1f5),a73_0x2dd958(0x1f3),'compress'];function a73_0xf9e7(_0x53a24c,_0x23fcad){_0x53a24c=_0x53a24c-0x1ee;const _0x5bc6fc=a73_0x5bc6();let _0xf9e7e7=_0x5bc6fc[_0x53a24c];return _0xf9e7e7;}function a73_0x5bc6(){const _0x442e76=['103286gbZIZl','498892fXgNCA','86382zsKKWV','710154AbpHxP','742356ftSbYm','4963FQSMNw','pretty','1076080NajyBZ','json','176BUJoUh','70eMxpHZ'];a73_0x5bc6=function(){return _0x442e76;};return a73_0x5bc6();}
1
+ const a73_0xd8ef68=a73_0x11a2;function a73_0x11a2(_0x345c0d,_0x3990d9){_0x345c0d=_0x345c0d-0x1a7;const _0xd54bdd=a73_0xd54b();let _0x11a2d6=_0xd54bdd[_0x345c0d];return _0x11a2d6;}(function(_0x211b2a,_0x3f15c8){const _0x4c4c4f=a73_0x11a2,_0x475131=_0x211b2a();while(!![]){try{const _0x23c6a1=parseInt(_0x4c4c4f(0x1ae))/0x1+-parseInt(_0x4c4c4f(0x1a9))/0x2*(-parseInt(_0x4c4c4f(0x1ac))/0x3)+-parseInt(_0x4c4c4f(0x1ad))/0x4*(-parseInt(_0x4c4c4f(0x1b2))/0x5)+-parseInt(_0x4c4c4f(0x1b1))/0x6+parseInt(_0x4c4c4f(0x1b3))/0x7*(parseInt(_0x4c4c4f(0x1af))/0x8)+-parseInt(_0x4c4c4f(0x1a7))/0x9+-parseInt(_0x4c4c4f(0x1aa))/0xa;if(_0x23c6a1===_0x3f15c8)break;else _0x475131['push'](_0x475131['shift']());}catch(_0xfa29b0){_0x475131['push'](_0x475131['shift']());}}}(a73_0xd54b,0xa0c81));export const OUTPUT_FORMAT_VALUES=[a73_0xd8ef68(0x1b0),a73_0xd8ef68(0x1a8),a73_0xd8ef68(0x1ab)];function a73_0xd54b(){const _0x219a48=['20CmGYsP','14BmqbGf','8470935XjPyiU','pretty','1222274IasSus','3408370qaSnZf','compress','3KMstvy','602152eURVaW','1110492NwRcOO','1679344GDUAbJ','json','4818024rOgmDA'];a73_0xd54b=function(){return _0x219a48;};return a73_0xd54b();}
@@ -18,6 +18,20 @@ export declare const PRODUCT_CONFIG: {
18
18
  readonly npmPackageName: "@lovrabet/lovrabet-cli";
19
19
  /** Published CLI Built-in Skill source consumed by `npx skills add`. */
20
20
  readonly skillSource: "lovrabet/lovrabet-cli";
21
+ /**
22
+ * Internal CodeUp Git source that installs the same global Skill as `skillSource`.
23
+ *
24
+ * Used to recognize internal installs when verifying install state; it is not an
25
+ * install target for published flows.
26
+ */
27
+ readonly internalSkillSource: "git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git";
28
+ /**
29
+ * Global Skill directory name produced by installing `skillSource`.
30
+ *
31
+ * Not derivable from `skillSource` (`lovrabet/lovrabet-cli` installs `lovrabet`),
32
+ * so it is declared explicitly instead of inferred from the repo slug.
33
+ */
34
+ readonly globalSkillName: "lovrabet";
21
35
  /** Npm registry base URL used for update dist-tag resolution. */
22
36
  readonly npmRegistryBaseUrl: "https://registry.npmjs.org";
23
37
  /** Main environment variable prefix, without trailing underscore. */
@@ -1 +1 @@
1
- const a74_0x7107a9=a74_0x5a29;function a74_0x1a13(){const _0xcdea8f=['SKIP_NPX_SKILLS','https://skills.lovrabet.com','https://user-daily.lovrabet.com','20419fHLoSa','lovrabet','@lovrabet/lovrabet-cli','18364QulMgH','9362CwkmCD','/user/ak','envPrefix','669zwzsEE','LOVRABET','1764NDBNpv','9JXVnmt','Lovrabet\x20Runtime\x20CLI','https://user.lovrabet.com','https://skills-daily.lovrabet.com','1086450BkINIW','https://api.lovrabet.com','.lovrabet-runtime.log','943555ARHPYF','https://daily-runtime.lovrabet.com','cli:lovrabet-runtime','RABETBASE','legacyEnvPrefixes','.lovrabet.json','3159088XUkXPg','.lovrabet','92twdbgQ','13404413QokQYW','https://daily-api.lovrabet.com','https://runtime.lovrabet.com'];a74_0x1a13=function(){return _0xcdea8f;};return a74_0x1a13();}(function(_0x4f40a5,_0x473db0){const _0x3b68e5=a74_0x5a29,_0x2b700d=_0x4f40a5();while(!![]){try{const _0x330fc5=-parseInt(_0x3b68e5(0xff))/0x1*(parseInt(_0x3b68e5(0xf4))/0x2)+-parseInt(_0x3b68e5(0x102))/0x3*(parseInt(_0x3b68e5(0xfe))/0x4)+-parseInt(_0x3b68e5(0x10c))/0x5+parseInt(_0x3b68e5(0x104))/0x6*(parseInt(_0x3b68e5(0xfb))/0x7)+parseInt(_0x3b68e5(0x112))/0x8*(parseInt(_0x3b68e5(0x105))/0x9)+-parseInt(_0x3b68e5(0x109))/0xa+parseInt(_0x3b68e5(0xf5))/0xb;if(_0x330fc5===_0x473db0)break;else _0x2b700d['push'](_0x2b700d['shift']());}catch(_0x534e60){_0x2b700d['push'](_0x2b700d['shift']());}}}(a74_0x1a13,0xaf9a2));function a74_0x5a29(_0x181568,_0xdd62b3){_0x181568=_0x181568-0xf3;const _0x1a1301=a74_0x1a13();let _0x5a296d=_0x1a1301[_0x181568];return _0x5a296d;}export const PRODUCT_CONFIG={'cliBinName':a74_0x7107a9(0xfc),'cliDisplayName':a74_0x7107a9(0x106),'npmPackageName':a74_0x7107a9(0xfd),'skillSource':'lovrabet/lovrabet-cli','npmRegistryBaseUrl':'https://registry.npmjs.org','envPrefix':a74_0x7107a9(0x103),'legacyEnvPrefixes':[a74_0x7107a9(0x10f)],'configFileNames':[a74_0x7107a9(0x111),'.lovrabetrc'],'newConfigFileName':a74_0x7107a9(0x111),'homeDirName':a74_0x7107a9(0xf3),'logFileName':a74_0x7107a9(0x10b),'invokeSource':a74_0x7107a9(0x10e),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a74_0x7107a9(0xf8),'domains':{'production':{'user':a74_0x7107a9(0x107),'api':a74_0x7107a9(0x10a),'runtime':a74_0x7107a9(0xf7),'skillhub':a74_0x7107a9(0xf9)},'nonProduction':{'user':a74_0x7107a9(0xfa),'api':a74_0x7107a9(0xf6),'runtime':a74_0x7107a9(0x10d),'skillhub':a74_0x7107a9(0x108)}},'accessKeyCreatePath':a74_0x7107a9(0x100)};export function productEnvName(_0x17a30c){const _0x2a52cf=a74_0x7107a9;return PRODUCT_CONFIG[_0x2a52cf(0x101)]+'_'+_0x17a30c;}export function productEnvNames(_0x40fde6){const _0x536ab1=a74_0x7107a9;return[productEnvName(_0x40fde6),...PRODUCT_CONFIG[_0x536ab1(0x110)]['map'](_0x3ddaeb=>_0x3ddaeb+'_'+_0x40fde6)];}export function productEnv(_0x4125f3){for(const _0x18ff8d of productEnvNames(_0x4125f3)){const _0x514e0a=process.env[_0x18ff8d];if(_0x514e0a!==undefined)return _0x514e0a;}return undefined;}
1
+ const a74_0x43cd41=a74_0x5aee;(function(_0x46a056,_0xac3e74){const _0x11f779=a74_0x5aee,_0x4dfdb1=_0x46a056();while(!![]){try{const _0x2fe823=-parseInt(_0x11f779(0x12e))/0x1+-parseInt(_0x11f779(0x127))/0x2*(-parseInt(_0x11f779(0x122))/0x3)+-parseInt(_0x11f779(0x125))/0x4+-parseInt(_0x11f779(0x12d))/0x5*(parseInt(_0x11f779(0x134))/0x6)+parseInt(_0x11f779(0x121))/0x7*(-parseInt(_0x11f779(0x133))/0x8)+parseInt(_0x11f779(0x130))/0x9*(-parseInt(_0x11f779(0x137))/0xa)+-parseInt(_0x11f779(0x124))/0xb*(-parseInt(_0x11f779(0x126))/0xc);if(_0x2fe823===_0xac3e74)break;else _0x4dfdb1['push'](_0x4dfdb1['shift']());}catch(_0xc8b13a){_0x4dfdb1['push'](_0x4dfdb1['shift']());}}}(a74_0x3ee4,0x6f945));function a74_0x5aee(_0x2f19e3,_0x48e05){_0x2f19e3=_0x2f19e3-0x116;const _0x3ee4b7=a74_0x3ee4();let _0x5aeed7=_0x3ee4b7[_0x2f19e3];return _0x5aeed7;}function a74_0x3ee4(){const _0x3e7fd0=['15ljoOYY','442694icZahk','/user/ak','1826919heTIBU','.lovrabetrc','LOVRABET','24aseDzk','1662582rvCaNX','RABETBASE','https://user.lovrabet.com','30XHIKbj','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','https://api.lovrabet.com','@lovrabet/lovrabet-cli','cli:lovrabet-runtime','.lovrabet.json','https://skills.lovrabet.com','Lovrabet\x20Runtime\x20CLI','https://user-daily.lovrabet.com','https://runtime.lovrabet.com','map','lovrabet','Lovrabet\x20User\x20Center','432831TnaAQv','21sXSfNX','https://skills-daily.lovrabet.com','11kFDkqR','2946192qCbTDO','29037360MCcDbp','240644sKgBVK','envPrefix','https://daily-runtime.lovrabet.com','https://registry.npmjs.org','https://daily-api.lovrabet.com','lovrabet/lovrabet-cli'];a74_0x3ee4=function(){return _0x3e7fd0;};return a74_0x3ee4();}export const PRODUCT_CONFIG={'cliBinName':a74_0x43cd41(0x11f),'cliDisplayName':a74_0x43cd41(0x11b),'npmPackageName':a74_0x43cd41(0x117),'skillSource':a74_0x43cd41(0x12c),'internalSkillSource':a74_0x43cd41(0x138),'globalSkillName':a74_0x43cd41(0x11f),'npmRegistryBaseUrl':a74_0x43cd41(0x12a),'envPrefix':a74_0x43cd41(0x132),'legacyEnvPrefixes':[a74_0x43cd41(0x135)],'configFileNames':[a74_0x43cd41(0x119),a74_0x43cd41(0x131)],'newConfigFileName':a74_0x43cd41(0x119),'homeDirName':'.lovrabet','logFileName':'.lovrabet-runtime.log','invokeSource':a74_0x43cd41(0x118),'userCenterDisplayName':a74_0x43cd41(0x120),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':a74_0x43cd41(0x136),'api':a74_0x43cd41(0x116),'runtime':a74_0x43cd41(0x11d),'skillhub':a74_0x43cd41(0x11a)},'nonProduction':{'user':a74_0x43cd41(0x11c),'api':a74_0x43cd41(0x12b),'runtime':a74_0x43cd41(0x129),'skillhub':a74_0x43cd41(0x123)}},'accessKeyCreatePath':a74_0x43cd41(0x12f)};export function productEnvName(_0x590a1f){const _0x5a0c0a=a74_0x43cd41;return PRODUCT_CONFIG[_0x5a0c0a(0x128)]+'_'+_0x590a1f;}export function productEnvNames(_0x3bbf8d){const _0x45dbd1=a74_0x43cd41;return[productEnvName(_0x3bbf8d),...PRODUCT_CONFIG['legacyEnvPrefixes'][_0x45dbd1(0x11e)](_0x188d1e=>_0x188d1e+'_'+_0x3bbf8d)];}export function productEnv(_0x23012d){for(const _0x5c405d of productEnvNames(_0x23012d)){const _0x52d93e=process.env[_0x5c405d];if(_0x52d93e!==undefined)return _0x52d93e;}return undefined;}
@@ -1 +1 @@
1
- const a75_0x50c60b=a75_0x58c8;function a75_0x58c8(_0x2f3be5,_0xd3ae68){_0x2f3be5=_0x2f3be5-0xc5;const _0x4febf0=a75_0x4feb();let _0x58c81a=_0x4febf0[_0x2f3be5];return _0x58c81a;}(function(_0x36f890,_0x4c8be3){const _0xe7f3a3=a75_0x58c8,_0x4d73fc=_0x36f890();while(!![]){try{const _0x49dd9f=parseInt(_0xe7f3a3(0xca))/0x1+-parseInt(_0xe7f3a3(0xd0))/0x2*(parseInt(_0xe7f3a3(0xc8))/0x3)+parseInt(_0xe7f3a3(0xcb))/0x4*(parseInt(_0xe7f3a3(0xcf))/0x5)+parseInt(_0xe7f3a3(0xc9))/0x6+parseInt(_0xe7f3a3(0xcc))/0x7+-parseInt(_0xe7f3a3(0xc7))/0x8*(parseInt(_0xe7f3a3(0xcd))/0x9)+parseInt(_0xe7f3a3(0xc6))/0xa*(-parseInt(_0xe7f3a3(0xce))/0xb);if(_0x49dd9f===_0x4c8be3)break;else _0x4d73fc['push'](_0x4d73fc['shift']());}catch(_0x13ace6){_0x4d73fc['push'](_0x4d73fc['shift']());}}}(a75_0x4feb,0xec151));function a75_0x4feb(){const _0x58354e=['14569588YQKTWF','3090725ltrftE','4LkNrLy','high-risk-write','10AOdtvd','8gnXZpB','2856312EBgoqI','1961340VjxCZU','419714iKZLbP','12VYaMga','12526227cRAScy','1753119UKcHDa'];a75_0x4feb=function(){return _0x58354e;};return a75_0x4feb();}export const RISK_LEVEL_VALUES=['read','write',a75_0x50c60b(0xc5)];
1
+ const a75_0x473f61=a75_0x5552;function a75_0x9d49(){const _0x5d3e1f=['2930RAIZlO','58eubZAY','840288MpuUBx','high-risk-write','11ldRWfs','292691iKDZXh','write','read','174993pSylBN','4HuimKc','10053VKPfHW','628491XZPLaB','8dduVpM','6541UwPcnd','3206635pInPKv','6lLgLxp'];a75_0x9d49=function(){return _0x5d3e1f;};return a75_0x9d49();}function a75_0x5552(_0x39acd6,_0x583b03){_0x39acd6=_0x39acd6-0x19f;const _0x9d4975=a75_0x9d49();let _0x555236=_0x9d4975[_0x39acd6];return _0x555236;}(function(_0x818c47,_0x2f41a7){const _0x36e95b=a75_0x5552,_0x577315=_0x818c47();while(!![]){try{const _0x19e9ac=-parseInt(_0x36e95b(0x1a7))/0x1*(parseInt(_0x36e95b(0x1ab))/0x2)+-parseInt(_0x36e95b(0x1a5))/0x3*(-parseInt(_0x36e95b(0x1a3))/0x4)+-parseInt(_0x36e95b(0x1a8))/0x5*(-parseInt(_0x36e95b(0x1a9))/0x6)+parseInt(_0x36e95b(0x19f))/0x7*(-parseInt(_0x36e95b(0x1a6))/0x8)+-parseInt(_0x36e95b(0x1a4))/0x9*(parseInt(_0x36e95b(0x1aa))/0xa)+parseInt(_0x36e95b(0x1ae))/0xb*(parseInt(_0x36e95b(0x1ac))/0xc)+-parseInt(_0x36e95b(0x1a2))/0xd;if(_0x19e9ac===_0x2f41a7)break;else _0x577315['push'](_0x577315['shift']());}catch(_0x42418e){_0x577315['push'](_0x577315['shift']());}}}(a75_0x9d49,0x551bc));export const RISK_LEVEL_VALUES=[a75_0x473f61(0x1a1),a75_0x473f61(0x1a0),a75_0x473f61(0x1ad)];
@@ -1 +1 @@
1
- function a76_0x4dd3(){const _0x34a700=['4UzeCbK','151704SgadHI','1016286bxupUv','6CfPdGF','accessKeyCreatePath','45408lJykjh','880048kRyOid','domains','user','1232406VAaUbv','196285UfuuCB','832314tskCWt'];a76_0x4dd3=function(){return _0x34a700;};return a76_0x4dd3();}const a76_0x42445e=a76_0x596b;(function(_0x334fb4,_0x1a2cbb){const _0x5a5388=a76_0x596b,_0xcce771=_0x334fb4();while(!![]){try{const _0x5eddc5=-parseInt(_0x5a5388(0xbf))/0x1*(-parseInt(_0x5a5388(0xc1))/0x2)+-parseInt(_0x5a5388(0xc9))/0x3+parseInt(_0x5a5388(0xc8))/0x4*(parseInt(_0x5a5388(0xc6))/0x5)+-parseInt(_0x5a5388(0xbe))/0x6+parseInt(_0x5a5388(0xc7))/0x7+-parseInt(_0x5a5388(0xc2))/0x8+parseInt(_0x5a5388(0xc5))/0x9;if(_0x5eddc5===_0x1a2cbb)break;else _0xcce771['push'](_0xcce771['shift']());}catch(_0x5a16b2){_0xcce771['push'](_0xcce771['shift']());}}}(a76_0x4dd3,0x18bf2));import{PRODUCT_CONFIG}from'../constant/product.js';function a76_0x596b(_0x4c5e32,_0x2911e8){_0x4c5e32=_0x4c5e32-0xbe;const _0x4dd35c=a76_0x4dd3();let _0x596bb1=_0x4dd35c[_0x4c5e32];return _0x596bb1;}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a76_0x42445e(0xc3)]['production'][a76_0x42445e(0xc4)]+PRODUCT_CONFIG[a76_0x42445e(0xc0)];
1
+ function a76_0x326c(){const _0xf2b0d7=['domains','3saXClU','3805533YcdyHm','2850ZbpqWX','17639060tUwNQP','7308140cMhLlw','371731dTxsTp','production','4931176osNQDs','2152152OzUwUA','8425PJfSil','16sRIUSI'];a76_0x326c=function(){return _0xf2b0d7;};return a76_0x326c();}function a76_0x1066(_0x33551b,_0x4353ba){_0x33551b=_0x33551b-0x77;const _0x326cd7=a76_0x326c();let _0x1066aa=_0x326cd7[_0x33551b];return _0x1066aa;}const a76_0x31b963=a76_0x1066;(function(_0x360536,_0x246ee5){const _0x54f84a=a76_0x1066,_0x2d3e68=_0x360536();while(!![]){try{const _0x3b2f73=-parseInt(_0x54f84a(0x77))/0x1+parseInt(_0x54f84a(0x7a))/0x2+-parseInt(_0x54f84a(0x7e))/0x3*(parseInt(_0x54f84a(0x79))/0x4)+parseInt(_0x54f84a(0x7b))/0x5*(-parseInt(_0x54f84a(0x80))/0x6)+parseInt(_0x54f84a(0x82))/0x7+-parseInt(_0x54f84a(0x7c))/0x8*(parseInt(_0x54f84a(0x7f))/0x9)+parseInt(_0x54f84a(0x81))/0xa;if(_0x3b2f73===_0x246ee5)break;else _0x2d3e68['push'](_0x2d3e68['shift']());}catch(_0x2e56b5){_0x2d3e68['push'](_0x2d3e68['shift']());}}}(a76_0x326c,0x9aa54));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a76_0x31b963(0x7d)][a76_0x31b963(0x78)]['user']+PRODUCT_CONFIG['accessKeyCreatePath'];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a77_0x2d9e1f=a77_0x4abe;(function(_0x2d33e5,_0x279023){const _0x48215d=a77_0x4abe,_0xac1495=_0x2d33e5();while(!![]){try{const _0x29e62b=parseInt(_0x48215d(0x150))/0x1*(parseInt(_0x48215d(0x186))/0x2)+parseInt(_0x48215d(0x197))/0x3+parseInt(_0x48215d(0x194))/0x4*(parseInt(_0x48215d(0x159))/0x5)+parseInt(_0x48215d(0x16f))/0x6+-parseInt(_0x48215d(0x183))/0x7+-parseInt(_0x48215d(0x192))/0x8*(parseInt(_0x48215d(0x15e))/0x9)+parseInt(_0x48215d(0x161))/0xa*(parseInt(_0x48215d(0x171))/0xb);if(_0x29e62b===_0x279023)break;else _0xac1495['push'](_0xac1495['shift']());}catch(_0x5428e8){_0xac1495['push'](_0xac1495['shift']());}}}(a77_0x45cc,0xabf71));function a77_0x4abe(_0x52d427,_0x5538fe){_0x52d427=_0x52d427-0x14d;const _0x45cc38=a77_0x45cc();let _0x4abee3=_0x45cc38[_0x52d427];return _0x4abee3;}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';function a77_0x45cc(){const _0x361ce4=['development','15934NkYEvT','production','join','missing','env','./constant/domain.js','parse','configFileNames','authRequired','online','projectConfig','apps','376744BXNkCI','stringify','67988qGxfJx','appcode','pageSize','1358670zlnPMd','riskLevel','read','message','local-alias','25SmFekm','inherit','EACCES','project','slice','APPCODE','setRawCommand','string','global','5XBDBbW','code','explicit','values','raw','18rGzXDC','write','utf8','289900jhoPiT','daily','userDomain','./constant/env.js','empty','VERBOSE','top-level','app','cache','newConfigFileName','PAGE_SIZE','trim','true','APP','185760mjIdqY','some','253CKNFqr','skillHubDomain','globalConfig','accessKey','cwd','host','setRawMode','EXDEV','isTTY','object','EPERM','format','nonInteractive','error','defaultApp','ENV','.tmp','stdin','3977659sekLdf','locale'];a77_0x45cc=function(){return _0x361ce4;};return a77_0x45cc();}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[a77_0x2d9e1f(0x18d)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a77_0x2d9e1f(0x16a)];function resolveConfigPath(_0x2d5850){for(const _0x3ccbf6 of CONFIG_NAMES){const _0x119400=resolve(_0x2d5850,_0x3ccbf6);if(existsSync(_0x119400))return _0x119400;}return undefined;}export function resolveWriteConfigPath(_0xce5c56){const _0x35a4df=a77_0x2d9e1f,_0x43abd6=_0xce5c56===_0x35a4df(0x153)?process[_0x35a4df(0x175)]():homedir(),_0x3ebdc2=resolveConfigPath(_0x43abd6);return _0x3ebdc2??resolve(_0x43abd6,NEW_CONFIG_NAME);}export function readConfigFile(_0x1f4269){const _0x4071ca=a77_0x2d9e1f;try{if(existsSync(_0x1f4269)){const _0x5e0aa5=readFileSync(_0x1f4269,{'encoding':_0x4071ca(0x160)});if(_0x5e0aa5){const _0x1572c1=JSON[_0x4071ca(0x18c)](_0x5e0aa5);return migrateOnlineEnv(_0x1f4269,_0x1572c1),_0x1572c1;}}}catch{}return{};}function migrateOnlineEnv(_0x5a0449,_0x49e828){const _0x22094a=a77_0x2d9e1f;let _0x247cd3=![];_0x49e828[_0x22094a(0x18a)]===_0x22094a(0x18f)&&(_0x49e828[_0x22094a(0x18a)]=_0x22094a(0x187),_0x247cd3=!![]);if(_0x49e828['apps']&&typeof _0x49e828['apps']===_0x22094a(0x17a))for(const _0xdb7c0f of Object[_0x22094a(0x15c)](_0x49e828[_0x22094a(0x191)])){_0xdb7c0f&&_0xdb7c0f[_0x22094a(0x18a)]===_0x22094a(0x18f)&&(_0xdb7c0f[_0x22094a(0x18a)]=_0x22094a(0x187),_0x247cd3=!![]);}if(_0x247cd3)try{writeConfigFile(_0x5a0449,_0x49e828);}catch{}}export function writeConfigFile(_0x3877be,_0x6f4c4f){const _0x3239d1=a77_0x2d9e1f,_0x1770b6=dirname(_0x3877be);!existsSync(_0x1770b6)&&mkdirSync(_0x1770b6,{'recursive':!![]});const _0x1fed2f=_0x3877be+_0x3239d1(0x181);try{writeFileSync(_0x1fed2f,JSON[_0x3239d1(0x193)](_0x6f4c4f,null,0x2)+'\x0a',{'encoding':_0x3239d1(0x160),'mode':0x180});try{renameSync(_0x1fed2f,_0x3877be);}catch(_0x1f8e74){if(_0x1f8e74[_0x3239d1(0x15a)]===_0x3239d1(0x17b)||_0x1f8e74[_0x3239d1(0x15a)]===_0x3239d1(0x178)||_0x1f8e74[_0x3239d1(0x15a)]===_0x3239d1(0x152)){writeFileSync(_0x3877be,JSON[_0x3239d1(0x193)](_0x6f4c4f,null,0x2)+'\x0a',{'encoding':_0x3239d1(0x160)});try{unlinkSync(_0x1fed2f);}catch{}}else throw _0x1f8e74;}}catch(_0x397ad6){try{unlinkSync(_0x1fed2f);}catch{}throw _0x397ad6;}}export function isNonInteractiveMode(_0x4b1480){const _0x569099=a77_0x2d9e1f;return!!(_0x4b1480[_0x569099(0x17d)]||_0x4b1480['ci']||productEnvNames('CI')[_0x569099(0x170)](_0x503b3d=>process.env[_0x503b3d]===_0x569099(0x16d))||process.env.CI===_0x569099(0x16d)||!process['stdout'][_0x569099(0x179)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5d2f36=a77_0x2d9e1f;if(!process[_0x5d2f36(0x182)][_0x5d2f36(0x179)])return![];try{const _0x13db92=process[_0x5d2f36(0x182)]['isRaw'];return process[_0x5d2f36(0x182)][_0x5d2f36(0x177)](!![]),process[_0x5d2f36(0x182)]['setRawMode'](_0x13db92??![]),!![];}catch{return![];}}export async function createContext(_0x360aae){const _0x282c12=a77_0x2d9e1f,_0x48cf43=readRawConfig(),_0x26a857=buildConfig(_0x48cf43,_0x360aae);await initGlobalEnvironment(_0x26a857);const {getUserDomain:_0x39f78,getApiDomain:_0x401f8e}=await import(_0x282c12(0x18b)),_0x32da19={'apiDomain':_0x401f8e(),'userDomain':_0x39f78()},_0x2b29a4=await buildAuth(_0x26a857);logger['setLogPath'](process[_0x282c12(0x175)]());const _0x165ff6=(CLI_BIN_NAME+'\x20'+process['argv'][_0x282c12(0x154)](0x2)[_0x282c12(0x188)]('\x20'))['trim']();logger[_0x282c12(0x156)](_0x165ff6);const _0x2ec1b4=isNonInteractiveMode(_0x360aae);return{'config':_0x26a857,'auth':_0x2b29a4,'logger':logger,'env':_0x32da19,'nonInteractive':_0x2ec1b4};}export function buildConfigFromFlags(_0x381399){return buildConfig(readRawConfig(),_0x381399);}export function getLocalAppAliases(_0x4835aa){const _0x31868b=a77_0x2d9e1f;return _0x4835aa[_0x31868b(0x191)]&&typeof _0x4835aa[_0x31868b(0x191)]===_0x31868b(0x17a)?_0x4835aa[_0x31868b(0x191)]:{};}export function resolveLocalAppAliasCode(_0x1b70c3,_0x474549){const _0x1bf970=a77_0x2d9e1f;if(!_0x474549)return undefined;const _0xb5d8c4=getLocalAppAliases(_0x1b70c3)[_0x474549],_0x4144d3=_0xb5d8c4?.[_0x1bf970(0x195)];return typeof _0x4144d3===_0x1bf970(0x157)&&_0x4144d3[_0x1bf970(0x16c)]()?_0x4144d3['trim']():undefined;}export function readAppCodeFromConfig(){const _0x61f4ad=a77_0x2d9e1f,_0x3532e8=readRawConfig(),_0x5ca9e8=_0x3532e8['appcode']??_0x3532e8[_0x61f4ad(0x168)];if(typeof _0x5ca9e8==='string'&&_0x5ca9e8[_0x61f4ad(0x16c)]())return _0x5ca9e8['trim']();const _0x582050=resolveLocalAppAliasCode(_0x3532e8,typeof _0x3532e8[_0x61f4ad(0x17f)]===_0x61f4ad(0x157)?_0x3532e8[_0x61f4ad(0x17f)]:undefined);if(_0x582050)return _0x582050;const _0x34a1d5=normalizeEnv(String(_0x3532e8[_0x61f4ad(0x18a)]||'production')),_0x8d2274=isDaily(_0x34a1d5)?_0x61f4ad(0x162):isDev(_0x34a1d5)?_0x61f4ad(0x185):'production',_0x29033c=resolveCachedAppCode(typeof _0x3532e8[_0x61f4ad(0x17f)]===_0x61f4ad(0x157)?_0x3532e8['defaultApp']:undefined,_0x8d2274,typeof _0x3532e8[_0x61f4ad(0x174)]===_0x61f4ad(0x157)?_0x3532e8[_0x61f4ad(0x174)]:undefined);if(_0x29033c)return _0x29033c;const _0x281d42=Object[_0x61f4ad(0x15c)](getLocalAppAliases(_0x3532e8))['find'](_0x2c99b0=>_0x2c99b0?.[_0x61f4ad(0x195)]);return typeof _0x281d42?.[_0x61f4ad(0x195)]===_0x61f4ad(0x157)&&_0x281d42[_0x61f4ad(0x195)][_0x61f4ad(0x16c)]()?_0x281d42[_0x61f4ad(0x195)][_0x61f4ad(0x16c)]():undefined;}export function readScopedConfig(_0x1a7747){const _0x1acca=a77_0x2d9e1f,_0x5dc984=_0x1a7747[_0x1acca(0x158)]?_0x1acca(0x158):_0x1acca(0x153);return readConfigFile(resolveWriteConfigPath(_0x5dc984));}export function writeScopedConfig(_0x1d7413,_0x399ad4){const _0x156eda=a77_0x2d9e1f,_0x395667=_0x399ad4[_0x156eda(0x158)]?_0x156eda(0x158):_0x156eda(0x153);writeConfigFile(resolveWriteConfigPath(_0x395667),_0x1d7413);}export async function initGlobalEnvironment(_0x3539f8){const _0x1890ac=a77_0x2d9e1f,{initEnv:_0xf92fcc}=await import(_0x1890ac(0x164));_0xf92fcc(_0x3539f8[_0x1890ac(0x18a)]);const {initDomains:_0x1a6d2a}=await import(_0x1890ac(0x18b));_0x1a6d2a({'apiDomain':_0x3539f8['raw']['apiDomain']||_0x3539f8[_0x1890ac(0x15d)][_0x1890ac(0x176)]||undefined,'userDomain':_0x3539f8[_0x1890ac(0x15d)][_0x1890ac(0x163)]||undefined,'runtimeDomain':_0x3539f8[_0x1890ac(0x15d)]['runtimeDomain']||undefined,'skillHubDomain':_0x3539f8[_0x1890ac(0x15d)][_0x1890ac(0x172)]||undefined});}export function getProjectConfigPath(){const _0x477a28=a77_0x2d9e1f;return resolveConfigPath(process[_0x477a28(0x175)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x10440a){const _0x16fc6c=a77_0x2d9e1f;if(!existsSync(_0x10440a))return{'status':_0x16fc6c(0x189)};try{const _0xa30138=readFileSync(_0x10440a,{'encoding':_0x16fc6c(0x160)});if(!_0xa30138?.['trim']())return{'status':_0x16fc6c(0x165)};const _0x37b1d0=JSON[_0x16fc6c(0x18c)](_0xa30138);return{'status':'ok','data':_0x37b1d0};}catch(_0x300414){return{'status':_0x16fc6c(0x17e),'message':_0x300414 instanceof Error?_0x300414[_0x16fc6c(0x14e)]:String(_0x300414)};}}export function loadRawConfigLayers(_0x111c3b){const _0x3f7e91=a77_0x2d9e1f;let _0xdc1673={},_0x58e4ea={},_0x329ad0,_0x5752fc;try{_0x329ad0=resolveConfigPath(homedir());if(_0x329ad0){const _0x20611e=readFileSync(_0x329ad0,{'encoding':_0x3f7e91(0x160)});if(_0x20611e)_0xdc1673=JSON[_0x3f7e91(0x18c)](_0x20611e);}}catch{}try{const _0x1360e7=_0x111c3b||process[_0x3f7e91(0x175)]();_0x5752fc=resolveConfigPath(_0x1360e7);if(_0x5752fc){const _0x34cdcf=readFileSync(_0x5752fc,{'encoding':'utf8'});if(_0x34cdcf)_0x58e4ea=JSON[_0x3f7e91(0x18c)](_0x34cdcf);}}catch{}return{'globalPath':_0x329ad0,'projectPath':_0x5752fc,'globalConfig':_0xdc1673,'projectConfig':_0x58e4ea};}function mergeRawConfigLayers(_0x38377c){const _0x4b0167=a77_0x2d9e1f,{globalConfig:_0x1d3f80,projectConfig:_0x5a5539}=_0x38377c;if(_0x5a5539[_0x4b0167(0x151)]===![]){const _0x266d64={..._0x5a5539};return delete _0x266d64[_0x4b0167(0x151)],_0x266d64;}const _0x25ee6c={..._0x1d3f80,..._0x5a5539};if(_0x4b0167(0x17f)in _0x5a5539)_0x25ee6c[_0x4b0167(0x17f)]=_0x5a5539[_0x4b0167(0x17f)];else _0x1d3f80[_0x4b0167(0x17f)]&&(_0x25ee6c['defaultApp']=_0x1d3f80['defaultApp']);return _0x25ee6c;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x3d095f){return mergeRawConfigLayers(loadRawConfigLayers(_0x3d095f));}export function readRawConfigWithLayers(_0x2c5dce){const _0x30f584=loadRawConfigLayers(_0x2c5dce);return{'config':mergeRawConfigLayers(_0x30f584),'layers':_0x30f584};}export function resolveDefaultAppSource(_0x2e0056){const _0x1421ff=a77_0x2d9e1f;if(_0x1421ff(0x17f)in _0x2e0056[_0x1421ff(0x190)])return _0x1421ff(0x153);if(_0x2e0056['projectConfig'][_0x1421ff(0x151)]===![])return null;if(_0x2e0056[_0x1421ff(0x173)][_0x1421ff(0x17f)])return _0x1421ff(0x158);return null;}function buildConfig(_0x55b6df,_0x2e67c2){const _0x2dea5a=a77_0x2d9e1f,_0x574bf5=_0x55b6df[_0x2dea5a(0x17f)]||undefined,_0x4408f6=_0x2e67c2[_0x2dea5a(0x168)]||env(_0x2dea5a(0x16e))||undefined,_0x409cd4=_0x4408f6||_0x574bf5||undefined,_0x583518=env('ACCESS_KEY')||_0x55b6df[_0x2dea5a(0x174)]||undefined,_0x3c7870=_0x2e67c2[_0x2dea5a(0x18a)]||env(_0x2dea5a(0x180))||_0x55b6df[_0x2dea5a(0x18a)]||DEFAULT_CONFIG_VALUES[_0x2dea5a(0x18a)],_0x49b449=normalizeEnv(String(_0x3c7870)),_0x3fe6d9=isDaily(_0x49b449)?_0x2dea5a(0x162):isDev(_0x49b449)?_0x2dea5a(0x185):_0x2dea5a(0x187),_0x33535c=typeof _0x2e67c2[_0x2dea5a(0x195)]===_0x2dea5a(0x157)?_0x2e67c2[_0x2dea5a(0x195)]:undefined,_0x10f7d8=env(_0x2dea5a(0x155)),_0x1a12c6=_0x4408f6?undefined:_0x55b6df[_0x2dea5a(0x195)]||_0x55b6df[_0x2dea5a(0x168)]||undefined,_0x19698e=_0x4408f6||(_0x1a12c6?undefined:_0x574bf5),_0x2200ac=resolveLocalAppAliasCode(_0x55b6df,_0x19698e),_0x43b070=resolveCachedAppCode(_0x19698e,_0x3fe6d9,_0x583518),_0x40f805=_0x33535c||_0x10f7d8||_0x1a12c6||_0x2200ac||_0x43b070||undefined,_0x1bf3fb=_0x33535c?_0x2dea5a(0x15b):_0x10f7d8?_0x2dea5a(0x18a):_0x1a12c6?_0x2dea5a(0x167):_0x2200ac?_0x2dea5a(0x14f):_0x43b070?_0x2dea5a(0x169):undefined,_0x5731e0=_0x55b6df[_0x2dea5a(0x184)]||DEFAULT_CONFIG_VALUES['locale'],_0x55afa7=undefined,_0x22fcbf=_0x2e67c2[_0x2dea5a(0x17c)]||env('FORMAT')||_0x55b6df[_0x2dea5a(0x17c)],_0x2e5984=normalizeLegacyOutputFormat(_0x22fcbf),_0x5591fc=env(_0x2dea5a(0x16b))||_0x55b6df[_0x2dea5a(0x196)],_0x45540a=_0x5591fc?Number(_0x5591fc)||undefined:undefined,_0x1942ff=_0x55b6df['riskLevel']||_0x55b6df['maxRisk'],_0xbf1c75=_0x1942ff===_0x2dea5a(0x14d)||_0x1942ff===_0x2dea5a(0x15f)||_0x1942ff==='high-risk-write'?_0x1942ff:DEFAULT_CONFIG_VALUES[_0x2dea5a(0x198)],_0x38ef59=env(_0x2dea5a(0x166)),_0x55c78b=_0x38ef59==='1'||_0x38ef59===_0x2dea5a(0x16d);return{'appCode':typeof _0x40f805==='string'&&_0x40f805[_0x2dea5a(0x16c)]()?_0x40f805[_0x2dea5a(0x16c)]():undefined,'appCodeSource':_0x1bf3fb,'env':_0x3fe6d9,'locale':_0x5731e0,'cookie':_0x55afa7,'accessKey':_0x583518,'format':_0x2e5984,'pageSize':_0x45540a,'riskLevel':_0xbf1c75,'verbose':_0x55c78b,'defaultApp':_0x574bf5,'currentApp':typeof _0x409cd4===_0x2dea5a(0x157)?_0x409cd4:undefined,'raw':_0x55b6df};}function env(_0x5a613b){return productEnv(_0x5a613b);}async function buildAuth(_0x5b0f01){const _0x37ac28='',_0x3fab35=!!_0x5b0f01['accessKey'];return{'cookie':_0x37ac28,'isLoggedIn':_0x3fab35,async 'getOrLogin'(){const _0x55ecfb=a77_0x4abe;if(_0x3fab35)return _0x37ac28;throw CliErrors[_0x55ecfb(0x18e)]();}};}
1
+ const a77_0x655136=a77_0x105c;(function(_0x5183f9,_0x16cd52){const _0x5e2b4a=a77_0x105c,_0x3410e4=_0x5183f9();while(!![]){try{const _0x2ffdd9=-parseInt(_0x5e2b4a(0x1a6))/0x1+-parseInt(_0x5e2b4a(0x1bf))/0x2+parseInt(_0x5e2b4a(0x1ad))/0x3+parseInt(_0x5e2b4a(0x19d))/0x4+parseInt(_0x5e2b4a(0x198))/0x5*(parseInt(_0x5e2b4a(0x1c2))/0x6)+-parseInt(_0x5e2b4a(0x190))/0x7+parseInt(_0x5e2b4a(0x1af))/0x8*(-parseInt(_0x5e2b4a(0x1a8))/0x9);if(_0x2ffdd9===_0x16cd52)break;else _0x3410e4['push'](_0x3410e4['shift']());}catch(_0x335d60){_0x3410e4['push'](_0x3410e4['shift']());}}}(a77_0x1e99,0xcdfe8));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';function a77_0x1e99(){const _0x226356=['format','error','read','apps','object','true','8264915SINmRX','online','pageSize','VERBOSE','stdin','4291760JAvhoc','global','projectConfig','app','EXDEV','riskLevel','userDomain','some','newConfigFileName','1258004NfYTGy','./constant/domain.js','82863IDmyOC','APPCODE','env','defaultApp','stringify','4626765lKCAiA','runtimeDomain','216PBrGit','raw','code','project','authRequired','globalConfig','values','slice','high-risk-write','development','accessKey','inherit','message','locale','string','setRawMode','1448074oLbWZJ','.tmp','host','6XmGlDG','utf8','ENV','stdout','join','parse','appcode','maxRisk','configFileNames','trim','empty','./constant/env.js','cache','FORMAT','apiDomain','find','production','nonInteractive','EACCES','top-level','setLogPath','setRawCommand','isTTY','8356572MjJFXN','cwd'];a77_0x1e99=function(){return _0x226356;};return a77_0x1e99();}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[a77_0x655136(0x1ca)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a77_0x655136(0x1a5)];function resolveConfigPath(_0x3f7269){for(const _0x237863 of CONFIG_NAMES){const _0x1cc8d0=resolve(_0x3f7269,_0x237863);if(existsSync(_0x1cc8d0))return _0x1cc8d0;}return undefined;}export function resolveWriteConfigPath(_0x175620){const _0x154663=a77_0x655136,_0x151f4d=_0x175620===_0x154663(0x1b2)?process['cwd']():homedir(),_0x2b32cc=resolveConfigPath(_0x151f4d);return _0x2b32cc??resolve(_0x151f4d,NEW_CONFIG_NAME);}export function readConfigFile(_0x146206){const _0x11321b=a77_0x655136;try{if(existsSync(_0x146206)){const _0x495da0=readFileSync(_0x146206,{'encoding':_0x11321b(0x1c3)});if(_0x495da0){const _0x45e107=JSON['parse'](_0x495da0);return migrateOnlineEnv(_0x146206,_0x45e107),_0x45e107;}}}catch{}return{};}function a77_0x105c(_0x286e98,_0x5c064e){_0x286e98=_0x286e98-0x18d;const _0x1e992d=a77_0x1e99();let _0x105c37=_0x1e992d[_0x286e98];return _0x105c37;}function migrateOnlineEnv(_0x280c9f,_0x2b7ef9){const _0x42b040=a77_0x655136;let _0x43a55b=![];_0x2b7ef9[_0x42b040(0x1aa)]===_0x42b040(0x199)&&(_0x2b7ef9[_0x42b040(0x1aa)]=_0x42b040(0x1d2),_0x43a55b=!![]);if(_0x2b7ef9[_0x42b040(0x195)]&&typeof _0x2b7ef9[_0x42b040(0x195)]==='object')for(const _0x536cb6 of Object[_0x42b040(0x1b5)](_0x2b7ef9['apps'])){_0x536cb6&&_0x536cb6[_0x42b040(0x1aa)]===_0x42b040(0x199)&&(_0x536cb6[_0x42b040(0x1aa)]=_0x42b040(0x1d2),_0x43a55b=!![]);}if(_0x43a55b)try{writeConfigFile(_0x280c9f,_0x2b7ef9);}catch{}}export function writeConfigFile(_0x212675,_0x23590d){const _0x5dc51a=a77_0x655136,_0x1a9b76=dirname(_0x212675);!existsSync(_0x1a9b76)&&mkdirSync(_0x1a9b76,{'recursive':!![]});const _0x146256=_0x212675+_0x5dc51a(0x1c0);try{writeFileSync(_0x146256,JSON['stringify'](_0x23590d,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x146256,_0x212675);}catch(_0x4639ab){if(_0x4639ab[_0x5dc51a(0x1b1)]==='EPERM'||_0x4639ab[_0x5dc51a(0x1b1)]===_0x5dc51a(0x1a1)||_0x4639ab[_0x5dc51a(0x1b1)]===_0x5dc51a(0x1d4)){writeFileSync(_0x212675,JSON[_0x5dc51a(0x1ac)](_0x23590d,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x146256);}catch{}}else throw _0x4639ab;}}catch(_0x571058){try{unlinkSync(_0x146256);}catch{}throw _0x571058;}}export function isNonInteractiveMode(_0x1fc2d6){const _0x513496=a77_0x655136;return!!(_0x1fc2d6[_0x513496(0x1d3)]||_0x1fc2d6['ci']||productEnvNames('CI')[_0x513496(0x1a4)](_0x423be6=>process.env[_0x423be6]===_0x513496(0x197))||process.env.CI==='true'||!process[_0x513496(0x1c5)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x67a544=a77_0x655136;if(!process['stdin'][_0x67a544(0x18f)])return![];try{const _0x4361a3=process['stdin']['isRaw'];return process[_0x67a544(0x19c)][_0x67a544(0x1be)](!![]),process[_0x67a544(0x19c)][_0x67a544(0x1be)](_0x4361a3??![]),!![];}catch{return![];}}export async function createContext(_0x48fe64){const _0x5d4295=a77_0x655136,_0xf22309=readRawConfig(),_0x3f6c3a=buildConfig(_0xf22309,_0x48fe64);await initGlobalEnvironment(_0x3f6c3a);const {getUserDomain:_0x20a9ae,getApiDomain:_0x332581}=await import(_0x5d4295(0x1a7)),_0xa95b8={'apiDomain':_0x332581(),'userDomain':_0x20a9ae()},_0x376aa0=await buildAuth(_0x3f6c3a);logger[_0x5d4295(0x18d)](process['cwd']());const _0x59bdca=(CLI_BIN_NAME+'\x20'+process['argv'][_0x5d4295(0x1b6)](0x2)[_0x5d4295(0x1c6)]('\x20'))[_0x5d4295(0x1cb)]();logger[_0x5d4295(0x18e)](_0x59bdca);const _0x16e94a=isNonInteractiveMode(_0x48fe64);return{'config':_0x3f6c3a,'auth':_0x376aa0,'logger':logger,'env':_0xa95b8,'nonInteractive':_0x16e94a};}export function buildConfigFromFlags(_0x5ec32c){return buildConfig(readRawConfig(),_0x5ec32c);}export function getLocalAppAliases(_0x20f856){const _0x1458a5=a77_0x655136;return _0x20f856[_0x1458a5(0x195)]&&typeof _0x20f856['apps']===_0x1458a5(0x196)?_0x20f856[_0x1458a5(0x195)]:{};}export function resolveLocalAppAliasCode(_0x359f91,_0x4a4ac5){const _0x587a99=a77_0x655136;if(!_0x4a4ac5)return undefined;const _0x268f48=getLocalAppAliases(_0x359f91)[_0x4a4ac5],_0x3dfab1=_0x268f48?.[_0x587a99(0x1c8)];return typeof _0x3dfab1===_0x587a99(0x1bd)&&_0x3dfab1[_0x587a99(0x1cb)]()?_0x3dfab1[_0x587a99(0x1cb)]():undefined;}export function readAppCodeFromConfig(){const _0x3d6c43=a77_0x655136,_0x115cda=readRawConfig(),_0x5695b0=_0x115cda[_0x3d6c43(0x1c8)]??_0x115cda[_0x3d6c43(0x1a0)];if(typeof _0x5695b0===_0x3d6c43(0x1bd)&&_0x5695b0[_0x3d6c43(0x1cb)]())return _0x5695b0['trim']();const _0x551e31=resolveLocalAppAliasCode(_0x115cda,typeof _0x115cda['defaultApp']===_0x3d6c43(0x1bd)?_0x115cda[_0x3d6c43(0x1ab)]:undefined);if(_0x551e31)return _0x551e31;const _0xc2a60e=normalizeEnv(String(_0x115cda[_0x3d6c43(0x1aa)]||_0x3d6c43(0x1d2))),_0x42d5d1=isDaily(_0xc2a60e)?'daily':isDev(_0xc2a60e)?_0x3d6c43(0x1b8):_0x3d6c43(0x1d2),_0x39f7bd=resolveCachedAppCode(typeof _0x115cda[_0x3d6c43(0x1ab)]===_0x3d6c43(0x1bd)?_0x115cda[_0x3d6c43(0x1ab)]:undefined,_0x42d5d1,typeof _0x115cda[_0x3d6c43(0x1b9)]===_0x3d6c43(0x1bd)?_0x115cda[_0x3d6c43(0x1b9)]:undefined);if(_0x39f7bd)return _0x39f7bd;const _0x21d1b9=Object[_0x3d6c43(0x1b5)](getLocalAppAliases(_0x115cda))[_0x3d6c43(0x1d1)](_0x176807=>_0x176807?.[_0x3d6c43(0x1c8)]);return typeof _0x21d1b9?.['appcode']===_0x3d6c43(0x1bd)&&_0x21d1b9['appcode'][_0x3d6c43(0x1cb)]()?_0x21d1b9[_0x3d6c43(0x1c8)][_0x3d6c43(0x1cb)]():undefined;}export function readScopedConfig(_0x38b4ed){const _0x8cb00a=a77_0x655136,_0x33f165=_0x38b4ed[_0x8cb00a(0x19e)]?_0x8cb00a(0x19e):_0x8cb00a(0x1b2);return readConfigFile(resolveWriteConfigPath(_0x33f165));}export function writeScopedConfig(_0x3801b9,_0x5e2511){const _0x141ba4=a77_0x655136,_0x382647=_0x5e2511[_0x141ba4(0x19e)]?'global':_0x141ba4(0x1b2);writeConfigFile(resolveWriteConfigPath(_0x382647),_0x3801b9);}export async function initGlobalEnvironment(_0x96dbc7){const _0x269a39=a77_0x655136,{initEnv:_0x5bb592}=await import(_0x269a39(0x1cd));_0x5bb592(_0x96dbc7[_0x269a39(0x1aa)]);const {initDomains:_0x4c36d3}=await import(_0x269a39(0x1a7));_0x4c36d3({'apiDomain':_0x96dbc7[_0x269a39(0x1b0)][_0x269a39(0x1d0)]||_0x96dbc7['raw'][_0x269a39(0x1c1)]||undefined,'userDomain':_0x96dbc7['raw'][_0x269a39(0x1a3)]||undefined,'runtimeDomain':_0x96dbc7[_0x269a39(0x1b0)][_0x269a39(0x1ae)]||undefined,'skillHubDomain':_0x96dbc7[_0x269a39(0x1b0)]['skillHubDomain']||undefined});}export function getProjectConfigPath(){const _0x2e6563=a77_0x655136;return resolveConfigPath(process[_0x2e6563(0x191)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x2f400b){const _0x55da38=a77_0x655136;if(!existsSync(_0x2f400b))return{'status':'missing'};try{const _0x19d9a4=readFileSync(_0x2f400b,{'encoding':'utf8'});if(!_0x19d9a4?.[_0x55da38(0x1cb)]())return{'status':_0x55da38(0x1cc)};const _0x2bb00e=JSON[_0x55da38(0x1c7)](_0x19d9a4);return{'status':'ok','data':_0x2bb00e};}catch(_0x19bac3){return{'status':_0x55da38(0x193),'message':_0x19bac3 instanceof Error?_0x19bac3[_0x55da38(0x1bb)]:String(_0x19bac3)};}}export function loadRawConfigLayers(_0x130144){const _0x3a2c02=a77_0x655136;let _0x399a17={},_0x390791={},_0xb997d5,_0x5e9492;try{_0xb997d5=resolveConfigPath(homedir());if(_0xb997d5){const _0x3f9ed5=readFileSync(_0xb997d5,{'encoding':_0x3a2c02(0x1c3)});if(_0x3f9ed5)_0x399a17=JSON['parse'](_0x3f9ed5);}}catch{}try{const _0x334f0f=_0x130144||process['cwd']();_0x5e9492=resolveConfigPath(_0x334f0f);if(_0x5e9492){const _0x1940c7=readFileSync(_0x5e9492,{'encoding':_0x3a2c02(0x1c3)});if(_0x1940c7)_0x390791=JSON[_0x3a2c02(0x1c7)](_0x1940c7);}}catch{}return{'globalPath':_0xb997d5,'projectPath':_0x5e9492,'globalConfig':_0x399a17,'projectConfig':_0x390791};}function mergeRawConfigLayers(_0x42738d){const _0x20f8ed=a77_0x655136,{globalConfig:_0x272cb1,projectConfig:_0x410a0d}=_0x42738d;if(_0x410a0d[_0x20f8ed(0x1ba)]===![]){const _0x29cfcc={..._0x410a0d};return delete _0x29cfcc[_0x20f8ed(0x1ba)],_0x29cfcc;}const _0x487bd3={..._0x272cb1,..._0x410a0d};if('defaultApp'in _0x410a0d)_0x487bd3[_0x20f8ed(0x1ab)]=_0x410a0d[_0x20f8ed(0x1ab)];else _0x272cb1[_0x20f8ed(0x1ab)]&&(_0x487bd3[_0x20f8ed(0x1ab)]=_0x272cb1[_0x20f8ed(0x1ab)]);return _0x487bd3;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x5e05f9){return mergeRawConfigLayers(loadRawConfigLayers(_0x5e05f9));}export function readRawConfigWithLayers(_0x446ed7){const _0x24ea49=loadRawConfigLayers(_0x446ed7);return{'config':mergeRawConfigLayers(_0x24ea49),'layers':_0x24ea49};}export function resolveDefaultAppSource(_0x51571d){const _0x1e7c0b=a77_0x655136;if('defaultApp'in _0x51571d['projectConfig'])return _0x1e7c0b(0x1b2);if(_0x51571d[_0x1e7c0b(0x19f)][_0x1e7c0b(0x1ba)]===![])return null;if(_0x51571d[_0x1e7c0b(0x1b4)][_0x1e7c0b(0x1ab)])return _0x1e7c0b(0x19e);return null;}function buildConfig(_0x3e4ff4,_0x269373){const _0x25ec01=a77_0x655136,_0xe809b7=_0x3e4ff4['defaultApp']||undefined,_0x264897=_0x269373['app']||env('APP')||undefined,_0x55a8ce=_0x264897||_0xe809b7||undefined,_0x277815=env('ACCESS_KEY')||_0x3e4ff4[_0x25ec01(0x1b9)]||undefined,_0x184cac=_0x269373['env']||env(_0x25ec01(0x1c4))||_0x3e4ff4[_0x25ec01(0x1aa)]||DEFAULT_CONFIG_VALUES[_0x25ec01(0x1aa)],_0x471d2b=normalizeEnv(String(_0x184cac)),_0x35b391=isDaily(_0x471d2b)?'daily':isDev(_0x471d2b)?_0x25ec01(0x1b8):'production',_0x11e283=typeof _0x269373[_0x25ec01(0x1c8)]===_0x25ec01(0x1bd)?_0x269373['appcode']:undefined,_0xab2687=env(_0x25ec01(0x1a9)),_0x33a808=_0x264897?undefined:_0x3e4ff4[_0x25ec01(0x1c8)]||_0x3e4ff4[_0x25ec01(0x1a0)]||undefined,_0x188a0b=_0x264897||(_0x33a808?undefined:_0xe809b7),_0x28a55c=resolveLocalAppAliasCode(_0x3e4ff4,_0x188a0b),_0x564fc1=resolveCachedAppCode(_0x188a0b,_0x35b391,_0x277815),_0x4706fa=_0x11e283||_0xab2687||_0x33a808||_0x28a55c||_0x564fc1||undefined,_0x5a5467=_0x11e283?'explicit':_0xab2687?_0x25ec01(0x1aa):_0x33a808?_0x25ec01(0x1d5):_0x28a55c?'local-alias':_0x564fc1?_0x25ec01(0x1ce):undefined,_0x340ea5=_0x3e4ff4[_0x25ec01(0x1bc)]||DEFAULT_CONFIG_VALUES['locale'],_0x5e4dec=undefined,_0x5601c7=_0x269373['format']||env(_0x25ec01(0x1cf))||_0x3e4ff4[_0x25ec01(0x192)],_0x1ec1ec=normalizeLegacyOutputFormat(_0x5601c7),_0x32a659=env('PAGE_SIZE')||_0x3e4ff4[_0x25ec01(0x19a)],_0x4cc839=_0x32a659?Number(_0x32a659)||undefined:undefined,_0x23483b=_0x3e4ff4[_0x25ec01(0x1a2)]||_0x3e4ff4[_0x25ec01(0x1c9)],_0x16b7f1=_0x23483b===_0x25ec01(0x194)||_0x23483b==='write'||_0x23483b===_0x25ec01(0x1b7)?_0x23483b:DEFAULT_CONFIG_VALUES[_0x25ec01(0x1a2)],_0x1b299c=env(_0x25ec01(0x19b)),_0x23a994=_0x1b299c==='1'||_0x1b299c===_0x25ec01(0x197);return{'appCode':typeof _0x4706fa===_0x25ec01(0x1bd)&&_0x4706fa[_0x25ec01(0x1cb)]()?_0x4706fa[_0x25ec01(0x1cb)]():undefined,'appCodeSource':_0x5a5467,'env':_0x35b391,'locale':_0x340ea5,'cookie':_0x5e4dec,'accessKey':_0x277815,'format':_0x1ec1ec,'pageSize':_0x4cc839,'riskLevel':_0x16b7f1,'verbose':_0x23a994,'defaultApp':_0xe809b7,'currentApp':typeof _0x55a8ce===_0x25ec01(0x1bd)?_0x55a8ce:undefined,'raw':_0x3e4ff4};}function env(_0x59a48a){return productEnv(_0x59a48a);}async function buildAuth(_0x4129cd){const _0x4fcb1b=a77_0x655136,_0x3a3bda='',_0x27e00a=!!_0x4129cd[_0x4fcb1b(0x1b9)];return{'cookie':_0x3a3bda,'isLoggedIn':_0x27e00a,async 'getOrLogin'(){const _0xe7e58e=_0x4fcb1b;if(_0x27e00a)return _0x3a3bda;throw CliErrors[_0xe7e58e(0x1b3)]();}};}