@lovrabet/lovrabet-cli 2.1.23-beta.4 → 2.2.0

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 (169) hide show
  1. package/README.md +13 -10
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/api-doc/index.js +1 -1
  4. package/lib/commands/app/cache.js +1 -1
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.js +1 -1
  10. package/lib/commands/app-config/get.js +1 -1
  11. package/lib/commands/app-config/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/shared.js +1 -1
  26. package/lib/commands/data/index.js +1 -1
  27. package/lib/commands/dataset/detail.js +1 -1
  28. package/lib/commands/dataset/index.js +1 -1
  29. package/lib/commands/dataset/list.js +1 -1
  30. package/lib/commands/dataset/sdk-doc.js +1 -1
  31. package/lib/commands/doctor.js +1 -1
  32. package/lib/commands/file/index.js +1 -1
  33. package/lib/commands/init.js +1 -1
  34. package/lib/commands/kb/index.js +1 -1
  35. package/lib/commands/logs/index.js +1 -1
  36. package/lib/commands/ocr/index.js +1 -1
  37. package/lib/commands/personal-bff/index.js +1 -1
  38. package/lib/commands/registry.js +1 -1
  39. package/lib/commands/schedule/index.js +1 -1
  40. package/lib/commands/schema.js +1 -1
  41. package/lib/commands/service/dynamic.js +1 -1
  42. package/lib/commands/service/function-name-adapter.js +1 -1
  43. package/lib/commands/service/index.js +1 -1
  44. package/lib/commands/service/registry.js +1 -1
  45. package/lib/commands/skill/commands/create.js +1 -1
  46. package/lib/commands/skill/commands/diagram.js +1 -1
  47. package/lib/commands/skill/commands/install.js +1 -1
  48. package/lib/commands/skill/commands/list.js +1 -1
  49. package/lib/commands/skill/commands/push.js +1 -1
  50. package/lib/commands/skill/commands/validate.js +1 -1
  51. package/lib/commands/skill/diagram.js +1 -1
  52. package/lib/commands/skill/flags.js +1 -1
  53. package/lib/commands/skill/index.js +1 -1
  54. package/lib/commands/skill/manifest-helpers.js +1 -1
  55. package/lib/commands/skill/push-execute.js +1 -1
  56. package/lib/commands/skill/push-flow-helpers.js +1 -1
  57. package/lib/commands/skill/push-retarget.js +1 -1
  58. package/lib/commands/skill/scopes.js +1 -1
  59. package/lib/commands/skill/summary.js +1 -1
  60. package/lib/commands/skill/templates.js +1 -1
  61. package/lib/commands/skill/validate.js +1 -1
  62. package/lib/commands/sql/detail.js +1 -1
  63. package/lib/commands/sql/exec.js +1 -1
  64. package/lib/commands/sql/index.js +1 -1
  65. package/lib/commands/update.d.ts +2 -2
  66. package/lib/commands/update.js +1 -1
  67. package/lib/commands/workspace/index.js +1 -1
  68. package/lib/config/schema.js +1 -1
  69. package/lib/constant/app.js +1 -1
  70. package/lib/constant/auth-mode.js +1 -1
  71. package/lib/constant/cli.js +1 -1
  72. package/lib/constant/defaults.js +1 -1
  73. package/lib/constant/distribution.js +1 -1
  74. package/lib/constant/domain.js +1 -1
  75. package/lib/constant/env.js +1 -1
  76. package/lib/constant/output.js +1 -1
  77. package/lib/constant/product.js +1 -1
  78. package/lib/constant/risk.js +1 -1
  79. package/lib/constant/url.js +1 -1
  80. package/lib/context.js +1 -1
  81. package/lib/core/api-client.js +1 -1
  82. package/lib/core/db-resolver.js +1 -1
  83. package/lib/core/sdk-client.js +1 -1
  84. package/lib/errors.js +1 -1
  85. package/lib/framework/build-all-flags.js +1 -1
  86. package/lib/framework/dryrun.js +1 -1
  87. package/lib/framework/flags.js +1 -1
  88. package/lib/framework/help.js +1 -1
  89. package/lib/framework/index.js +1 -1
  90. package/lib/framework/output.js +1 -1
  91. package/lib/framework/preparse.js +1 -1
  92. package/lib/framework/rate-limit.js +1 -1
  93. package/lib/framework/raw-flags.js +1 -1
  94. package/lib/framework/response.js +1 -1
  95. package/lib/framework/runner-confirmation.js +1 -1
  96. package/lib/framework/runner-error.js +1 -1
  97. package/lib/framework/runner.js +1 -1
  98. package/lib/framework/schema-export.js +1 -1
  99. package/lib/framework/service-order.js +1 -1
  100. package/lib/framework/types.js +1 -1
  101. package/lib/generated/build-info.d.ts +4 -4
  102. package/lib/generated/build-info.js +1 -1
  103. package/lib/help.js +1 -1
  104. package/lib/postinstall.d.ts +2 -0
  105. package/lib/postinstall.js +1 -0
  106. package/lib/runtime/confirmation.js +1 -1
  107. package/lib/runtime/event.js +1 -1
  108. package/lib/runtime/index.js +1 -1
  109. package/lib/runtime/queue.js +1 -1
  110. package/lib/runtime/resolve.js +1 -1
  111. package/lib/skills/builtin-skill.d.ts +37 -0
  112. package/lib/skills/builtin-skill.js +1 -0
  113. package/lib/skills/npx-skills-add.d.ts +3 -1
  114. package/lib/skills/npx-skills-add.js +1 -1
  115. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  116. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  117. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  118. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  119. package/lib/skills/runtime-skill-sync/links.js +1 -1
  120. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  121. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  122. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  123. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  124. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  125. package/lib/skills/runtime-skill-sync/push.js +1 -1
  126. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  127. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  128. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  129. package/lib/skills/runtime-skill-sync.js +1 -1
  130. package/lib/skills/skill-presence.js +1 -1
  131. package/lib/utils/apply-jq-filter.js +1 -1
  132. package/lib/utils/logger.js +1 -1
  133. package/lib/utils/lossless-json.js +1 -1
  134. package/lib/utils/params.js +1 -1
  135. package/lib/utils/platform.js +1 -1
  136. package/lib/utils/update-notice.js +1 -1
  137. package/lib/utils/version.js +1 -1
  138. package/lib/utils/write-cli-side-channel.js +1 -1
  139. package/package.json +14 -3
  140. package/scripts/postinstall.mjs +24 -0
  141. package/skills/lovrabet/SKILL.md +702 -0
  142. package/skills/lovrabet/guides/app-resolution.md +165 -0
  143. package/skills/lovrabet/guides/dataset-and-data-workflow.md +170 -0
  144. package/skills/lovrabet/guides/sql-and-bff-workflow.md +132 -0
  145. package/skills/lovrabet/guides/troubleshooting.md +91 -0
  146. package/skills/lovrabet/references/dataset-discovery-workflow.md +160 -0
  147. package/skills/lovrabet/references/instant-api-workflow.md +259 -0
  148. package/skills/lovrabet/references/lovrabet-app-config.md +51 -0
  149. package/skills/lovrabet/references/lovrabet-app.md +113 -0
  150. package/skills/lovrabet/references/lovrabet-auth.md +136 -0
  151. package/skills/lovrabet/references/lovrabet-bff-workflow.md +139 -0
  152. package/skills/lovrabet/references/lovrabet-config-commands.md +104 -0
  153. package/skills/lovrabet/references/lovrabet-config.md +124 -0
  154. package/skills/lovrabet/references/lovrabet-doctor.md +26 -0
  155. package/skills/lovrabet/references/lovrabet-file-workflow.md +62 -0
  156. package/skills/lovrabet/references/lovrabet-kb-workflow.md +78 -0
  157. package/skills/lovrabet/references/lovrabet-logs.md +19 -0
  158. package/skills/lovrabet/references/lovrabet-ocr-workflow.md +83 -0
  159. package/skills/lovrabet/references/lovrabet-output-format-jq.md +40 -0
  160. package/skills/lovrabet/references/lovrabet-personal-bff-workflow.md +108 -0
  161. package/skills/lovrabet/references/lovrabet-schedule-workflow.md +175 -0
  162. package/skills/lovrabet/references/lovrabet-service-tree.md +279 -0
  163. package/skills/lovrabet/references/lovrabet-skill-authoring.md +128 -0
  164. package/skills/lovrabet/references/lovrabet-skill-install.md +34 -0
  165. package/skills/lovrabet/references/lovrabet-skill-sync.md +146 -0
  166. package/skills/lovrabet/references/lovrabet-sql-workflow.md +111 -0
  167. package/skills/lovrabet/references/lovrabet-update.md +34 -0
  168. package/skills/lovrabet/references/lovrabet-workspace.md +82 -0
  169. package/skills/lovrabet.manifest.json +38 -0
@@ -1 +1 @@
1
- function a64_0x27be(_0x4460b5,_0x23691b){_0x4460b5=_0x4460b5-0x131;const _0x356259=a64_0x3562();let _0x27be6c=_0x356259[_0x4460b5];return _0x27be6c;}const a64_0x1ddcd0=a64_0x27be;(function(_0x13fd39,_0x1eaadb){const _0x5c5c74=a64_0x27be,_0x455d0b=_0x13fd39();while(!![]){try{const _0x226bb3=parseInt(_0x5c5c74(0x165))/0x1+parseInt(_0x5c5c74(0x13c))/0x2*(-parseInt(_0x5c5c74(0x140))/0x3)+parseInt(_0x5c5c74(0x150))/0x4+-parseInt(_0x5c5c74(0x15c))/0x5+parseInt(_0x5c5c74(0x171))/0x6*(parseInt(_0x5c5c74(0x177))/0x7)+-parseInt(_0x5c5c74(0x145))/0x8+-parseInt(_0x5c5c74(0x173))/0x9*(-parseInt(_0x5c5c74(0x169))/0xa);if(_0x226bb3===_0x1eaadb)break;else _0x455d0b['push'](_0x455d0b['shift']());}catch(_0x570982){_0x455d0b['push'](_0x455d0b['shift']());}}}(a64_0x3562,0x25dc2));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a64_0x1ddcd0(0x14f),'type':a64_0x1ddcd0(0x13a),'description':a64_0x1ddcd0(0x139)},{'name':a64_0x1ddcd0(0x144),'type':a64_0x1ddcd0(0x13a),'description':a64_0x1ddcd0(0x15d)},{'name':'env','type':a64_0x1ddcd0(0x13a),'description':a64_0x1ddcd0(0x155),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x5bfa4a,_0x42f922){const _0x50403d=a64_0x1ddcd0,_0x52cf93=_0x5bfa4a['str'](_0x50403d(0x14f))[_0x50403d(0x154)](),_0x2ef25f=_0x5bfa4a[_0x50403d(0x16d)](_0x50403d(0x144))[_0x50403d(0x154)](),_0x5cf6d9=_0x5bfa4a['str'](_0x50403d(0x174))[_0x50403d(0x154)](),_0x3158f3=resolveWorkspaceEnv(_0x5cf6d9||_0x5bfa4a[_0x50403d(0x152)]||DEFAULT_CONFIG_VALUES['env']);if(!_0x52cf93&&!_0x2ef25f)throw CliErrors['validation'](_0x50403d(0x13b),_0x50403d(0x137)+CLI_BIN_NAME+'\x20workspace\x20'+_0x42f922+_0x50403d(0x132)+CLI_BIN_NAME+_0x50403d(0x136)+_0x42f922+_0x50403d(0x164));if(_0x52cf93&&_0x2ef25f)throw CliErrors[_0x50403d(0x16b)](_0x50403d(0x172),_0x50403d(0x141));const _0x5a33dd=resolveWriteConfigPath(_0x50403d(0x134)),_0x525961=readConfigFile(_0x5a33dd);assertWorkspaceCommandState(_0x42f922,_0x525961);const _0x537a30=_0x2ef25f||await resolveRemoteAppCode({'command':_0x42f922,'appName':_0x52cf93,'env':_0x3158f3,'accessKey':_0x5bfa4a['accessKey']});return writeWorkspaceConfig({'command':_0x42f922,'appName':_0x52cf93,'appcode':_0x537a30,'env':_0x3158f3,'shouldWriteEnv':!!_0x5cf6d9,'accessKey':_0x5bfa4a['accessKey']},_0x5a33dd,_0x525961),{'ok':!![],'data':{'configPath':_0x5a33dd,'app':_0x52cf93||null,'appcode':_0x537a30,'env':_0x5cf6d9?_0x3158f3:null,'accessKeyWritten':![],'command':_0x50403d(0x146)+_0x42f922},'message':buildWorkspaceMessage(_0x5a33dd,_0x52cf93,_0x537a30,_0x5cf6d9?_0x3158f3:undefined)};}async function resolveRemoteAppCode(_0x393fb2){const _0x271ed8=a64_0x1ddcd0;if(!_0x393fb2[_0x271ed8(0x131)])throw CliErrors[_0x271ed8(0x16c)](_0x271ed8(0x14a)+CLI_BIN_NAME+'\x20workspace\x20'+_0x393fb2[_0x271ed8(0x168)]+'.');const {setActiveAK:_0x5a475c}=await import(_0x271ed8(0x138)),{getRemoteAppList:_0x1b7716}=await import(_0x271ed8(0x15b));_0x5a475c(_0x393fb2[_0x271ed8(0x131)]);const _0x58e746=await _0x1b7716({'env':_0x393fb2[_0x271ed8(0x174)],'accessKey':_0x393fb2[_0x271ed8(0x131)],'noCache':![]}),_0x111525=findAppByName(_0x58e746[_0x271ed8(0x167)],_0x393fb2[_0x271ed8(0x149)]);if(_0x111525&&!isRuntimeAccessibleApp(_0x111525))throw runtimeInaccessibleAppError(_0x111525,'\x22'+_0x393fb2[_0x271ed8(0x149)]+'\x22');const _0x268852=_0x111525?.[_0x271ed8(0x14c)]?.[_0x271ed8(0x154)]();if(_0x268852)return _0x268852;const _0x503b15=_0x58e746[_0x271ed8(0x167)][_0x271ed8(0x16e)](_0x556090=>_0x556090[_0x271ed8(0x149)])['filter'](Boolean),_0x19abe8=_0x503b15[_0x271ed8(0x156)]?_0x271ed8(0x13f)+Array[_0x271ed8(0x16f)](new Set(_0x503b15))[_0x271ed8(0x14d)](',\x20')+'.':_0x271ed8(0x151)+CLI_BIN_NAME+_0x271ed8(0x135);throw CliErrors[_0x271ed8(0x16b)](_0x271ed8(0x163)+_0x393fb2[_0x271ed8(0x149)]+_0x271ed8(0x175),_0x19abe8);}function writeWorkspaceConfig(_0x4fcac2,_0x3e7eea,_0x3a7f27){const _0xa5dec1=a64_0x1ddcd0;_0x4fcac2[_0xa5dec1(0x13e)]&&(_0x3a7f27['env']=_0x4fcac2['env']);if(_0x4fcac2['appName']){const _0x5b3c5e=isRecord(_0x3a7f27['apps'])?{..._0x3a7f27[_0xa5dec1(0x15e)]}:{},_0x107728=isRecord(_0x5b3c5e[_0x4fcac2['appName']])?_0x5b3c5e[_0x4fcac2[_0xa5dec1(0x149)]]:{};return _0x5b3c5e[_0x4fcac2[_0xa5dec1(0x149)]]={..._0x107728,'appcode':_0x4fcac2[_0xa5dec1(0x144)]},_0x3a7f27['apps']=_0x5b3c5e,_0x3a7f27[_0xa5dec1(0x13d)]=_0x4fcac2[_0xa5dec1(0x149)],delete _0x3a7f27[_0xa5dec1(0x144)],delete _0x3a7f27[_0xa5dec1(0x14f)],writeAndReturn(_0x3e7eea,_0x3a7f27);}return _0x3a7f27['appcode']=_0x4fcac2[_0xa5dec1(0x144)],delete _0x3a7f27[_0xa5dec1(0x13d)],delete _0x3a7f27[_0xa5dec1(0x14f)],writeAndReturn(_0x3e7eea,_0x3a7f27);}function writeAndReturn(_0x32fb91,_0x1ac87d){return writeConfigFile(_0x32fb91,_0x1ac87d),_0x32fb91;}function resolveWorkspaceEnv(_0x2f62a0){const _0x3474a7=a64_0x1ddcd0;if(RUNTIME_ENV_VALUES['includes'](_0x2f62a0))return _0x2f62a0;throw CliErrors['validation'](_0x3474a7(0x142)+_0x2f62a0+_0x3474a7(0x16a)+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x2d5879,_0x36274a,_0x1cce15,_0x17f5f9){const _0x421972=a64_0x1ddcd0,_0x3b6248=_0x36274a?_0x36274a+'\x20('+_0x1cce15+')':_0x1cce15,_0x34cee7=_0x17f5f9?_0x421972(0x161)+_0x17f5f9:'';return _0x421972(0x14e)+_0x2d5879+_0x421972(0x166)+_0x3b6248+_0x34cee7+_0x421972(0x133);}function isRecord(_0x4d19b4){const _0x22bddc=a64_0x1ddcd0;return typeof _0x4d19b4===_0x22bddc(0x148)&&_0x4d19b4!==null&&!Array['isArray'](_0x4d19b4);}function hasWorkspaceAppBinding(_0x73ed06){const _0x1d29d3=a64_0x1ddcd0;if(typeof _0x73ed06[_0x1d29d3(0x144)]===_0x1d29d3(0x13a)&&_0x73ed06[_0x1d29d3(0x144)][_0x1d29d3(0x154)]()['length']>0x0)return!![];if(typeof _0x73ed06[_0x1d29d3(0x13d)]!==_0x1d29d3(0x13a)||!_0x73ed06[_0x1d29d3(0x13d)][_0x1d29d3(0x154)]())return![];if(!isRecord(_0x73ed06[_0x1d29d3(0x15e)]))return![];const _0x506d48=_0x73ed06['apps'][_0x73ed06['defaultApp'][_0x1d29d3(0x154)]()];return isRecord(_0x506d48)&&typeof _0x506d48[_0x1d29d3(0x144)]==='string'&&_0x506d48['appcode'][_0x1d29d3(0x154)]()[_0x1d29d3(0x156)]>0x0;}function assertWorkspaceCommandState(_0x38277e,_0x440230){const _0x400385=a64_0x1ddcd0,_0x731639=hasWorkspaceAppBinding(_0x440230);if(_0x38277e==='init'&&_0x731639)throw CliErrors[_0x400385(0x16b)](_0x400385(0x143),'Use\x20`'+CLI_BIN_NAME+_0x400385(0x158)+CLI_BIN_NAME+_0x400385(0x176));if(_0x38277e===_0x400385(0x162)&&!_0x731639)throw CliErrors[_0x400385(0x16b)]('Workspace\x20app\x20context\x20is\x20not\x20initialized.',_0x400385(0x151)+CLI_BIN_NAME+_0x400385(0x153)+CLI_BIN_NAME+_0x400385(0x15a));}function makeWorkspaceCommand(_0x9b9bb6){const _0x3bea81=a64_0x1ddcd0;return{'service':_0x3bea81(0x157),'command':_0x9b9bb6,'description':_0x9b9bb6===_0x3bea81(0x147)?_0x3bea81(0x159):_0x3bea81(0x160),'risk':_0x3bea81(0x14b),'confirmationDescription':_0x9b9bb6==='init'?_0x3bea81(0x170):_0x3bea81(0x15f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x71e539){return executeWorkspaceUse(_0x71e539,_0x9b9bb6);}};}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand(a64_0x1ddcd0(0x162))];function a64_0x3562(){const _0x345c04=['\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','../../commands/app/remote-source.js','905675Ejkwov','App\x20code\x20to\x20bind\x20directly','apps','将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','修改当前工作目录已有绑定的应用上下文','\x0aEnv:\x20','use','App\x20\x22','\x20--appcode\x20<code>\x20[--env\x20daily]','185650ARMFBi','\x0aDefault\x20app:\x20','items','command','20eAsblj','\x22.\x20Allowed:\x20','validation','authRequired','str','map','from','将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','31422QZsEiv','Conflicting\x20workspace\x20app\x20selectors.','2076264WCZyzS','env','\x22\x20not\x20found.','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','168tXNfri','accessKey','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','\x0aAccessKey:\x20not\x20written','project','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','\x20workspace\x20','Usage:\x20','../../core/api-client.js','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','string','Missing\x20workspace\x20app\x20selector.','2OLfjQG','defaultApp','shouldWriteEnv','Available\x20apps:\x20','668685ZOutOR','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','Invalid\x20env\x20\x22','Workspace\x20app\x20context\x20is\x20already\x20initialized.','appcode','2370280LSBjDk','workspace\x20','init','object','appName','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','write','appCode','join','Workspace\x20configured.\x0aConfig\x20file:\x20','app','330636SGgSSI','Run\x20`','envName','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','trim','Target\x20environment','length','workspace','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','为尚未绑定应用的当前工作目录初始化应用上下文'];a64_0x3562=function(){return _0x345c04;};return a64_0x3562();}
1
+ const a64_0x1a424b=a64_0x2609;(function(_0x5e2756,_0x4dc507){const _0x4c118e=a64_0x2609,_0x133e22=_0x5e2756();while(!![]){try{const _0x1879a1=-parseInt(_0x4c118e(0x1eb))/0x1+parseInt(_0x4c118e(0x1e6))/0x2+parseInt(_0x4c118e(0x1cb))/0x3*(parseInt(_0x4c118e(0x1e3))/0x4)+-parseInt(_0x4c118e(0x1d8))/0x5+parseInt(_0x4c118e(0x1f6))/0x6*(parseInt(_0x4c118e(0x1f7))/0x7)+-parseInt(_0x4c118e(0x1c8))/0x8*(parseInt(_0x4c118e(0x1df))/0x9)+-parseInt(_0x4c118e(0x1e5))/0xa*(parseInt(_0x4c118e(0x1b9))/0xb);if(_0x1879a1===_0x4dc507)break;else _0x133e22['push'](_0x133e22['shift']());}catch(_0x383b7f){_0x133e22['push'](_0x133e22['shift']());}}}(a64_0x5a81,0xa7362));function a64_0x2609(_0x51ac8a,_0x113065){_0x51ac8a=_0x51ac8a-0x1b7;const _0x5a812b=a64_0x5a81();let _0x2609ea=_0x5a812b[_0x51ac8a];return _0x2609ea;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a64_0x1a424b(0x1d3),'type':a64_0x1a424b(0x1ca),'description':a64_0x1a424b(0x1ee)},{'name':a64_0x1a424b(0x1f4),'type':a64_0x1a424b(0x1ca),'description':a64_0x1a424b(0x1f2)},{'name':a64_0x1a424b(0x1c0),'type':a64_0x1a424b(0x1ca),'description':a64_0x1a424b(0x1c4),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x1f36e9,_0x1f6b8d){const _0x1bdbd6=a64_0x1a424b,_0x24b652=_0x1f36e9['str'](_0x1bdbd6(0x1d3))['trim'](),_0x3c256d=_0x1f36e9['str'](_0x1bdbd6(0x1f4))[_0x1bdbd6(0x1be)](),_0x263cd8=_0x1f36e9['str'](_0x1bdbd6(0x1c0))[_0x1bdbd6(0x1be)](),_0x2e21c3=resolveWorkspaceEnv(_0x263cd8||_0x1f36e9[_0x1bdbd6(0x1d7)]||DEFAULT_CONFIG_VALUES['env']);if(!_0x24b652&&!_0x3c256d)throw CliErrors['validation'](_0x1bdbd6(0x1c2),_0x1bdbd6(0x1f1)+CLI_BIN_NAME+'\x20workspace\x20'+_0x1f6b8d+_0x1bdbd6(0x1ce)+CLI_BIN_NAME+_0x1bdbd6(0x1f9)+_0x1f6b8d+_0x1bdbd6(0x1f5));if(_0x24b652&&_0x3c256d)throw CliErrors[_0x1bdbd6(0x1d0)](_0x1bdbd6(0x1ba),_0x1bdbd6(0x1d4));const _0x26d2b0=resolveWriteConfigPath(_0x1bdbd6(0x1ec)),_0x5a8b7b=readConfigFile(_0x26d2b0);assertWorkspaceCommandState(_0x1f6b8d,_0x5a8b7b);const _0x4339c3=_0x3c256d||await resolveRemoteAppCode({'command':_0x1f6b8d,'appName':_0x24b652,'env':_0x2e21c3,'accessKey':_0x1f36e9[_0x1bdbd6(0x1c5)]});return writeWorkspaceConfig({'command':_0x1f6b8d,'appName':_0x24b652,'appcode':_0x4339c3,'env':_0x2e21c3,'shouldWriteEnv':!!_0x263cd8,'accessKey':_0x1f36e9[_0x1bdbd6(0x1c5)]},_0x26d2b0,_0x5a8b7b),{'ok':!![],'data':{'configPath':_0x26d2b0,'app':_0x24b652||null,'appcode':_0x4339c3,'env':_0x263cd8?_0x2e21c3:null,'accessKeyWritten':![],'command':_0x1bdbd6(0x1f3)+_0x1f6b8d},'message':buildWorkspaceMessage(_0x26d2b0,_0x24b652,_0x4339c3,_0x263cd8?_0x2e21c3:undefined)};}function a64_0x5a81(){const _0x2236b6=['shouldWriteEnv','trim','items','env','App\x20\x22','Missing\x20workspace\x20app\x20selector.','\x0aAccessKey:\x20not\x20written','Target\x20environment','accessKey','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','apps','40ZUPSRY','Use\x20`','string','126akYwLD','map','Available\x20apps:\x20','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','filter','validation','use','修改当前工作目录已有绑定的应用上下文','app','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','\x22\x20not\x20found.','length','envName','3705540AelkHg','../../commands/app/remote-source.js','from','defaultApp','init','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','appName','93069RKwPBG','Workspace\x20app\x20context\x20is\x20already\x20initialized.','将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','103432GiYNfs','write','670WxsOAe','2599084JoFffK','command','Run\x20`','../../core/api-client.js','object','533234bvelze','project','将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','isArray','Usage:\x20','App\x20code\x20to\x20bind\x20directly','workspace\x20','appcode','\x20--appcode\x20<code>\x20[--env\x20daily]','778446iCqUpN','56FiruvU','\x22.\x20Allowed:\x20','\x20workspace\x20','Invalid\x20env\x20\x22','workspace','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','231913LuwhDS','Conflicting\x20workspace\x20app\x20selectors.','includes','为尚未绑定应用的当前工作目录初始化应用上下文'];a64_0x5a81=function(){return _0x2236b6;};return a64_0x5a81();}async function resolveRemoteAppCode(_0xcb3b20){const _0x3792dd=a64_0x1a424b;if(!_0xcb3b20[_0x3792dd(0x1c5)])throw CliErrors['authRequired'](_0x3792dd(0x1ef)+CLI_BIN_NAME+_0x3792dd(0x1f9)+_0xcb3b20[_0x3792dd(0x1e7)]+'.');const {setActiveAK:_0x2393c3}=await import(_0x3792dd(0x1e9)),{getRemoteAppList:_0x25d1e2}=await import(_0x3792dd(0x1d9));_0x2393c3(_0xcb3b20[_0x3792dd(0x1c5)]);const _0x26e3b5=await _0x25d1e2({'env':_0xcb3b20[_0x3792dd(0x1c0)],'accessKey':_0xcb3b20[_0x3792dd(0x1c5)],'noCache':![]}),_0x2e2363=findAppByName(_0x26e3b5[_0x3792dd(0x1bf)],_0xcb3b20['appName']);if(_0x2e2363&&!isRuntimeAccessibleApp(_0x2e2363))throw runtimeInaccessibleAppError(_0x2e2363,'\x22'+_0xcb3b20[_0x3792dd(0x1de)]+'\x22');const _0x3a1767=_0x2e2363?.['appCode']?.[_0x3792dd(0x1be)]();if(_0x3a1767)return _0x3a1767;const _0x1f0e56=_0x26e3b5[_0x3792dd(0x1bf)][_0x3792dd(0x1cc)](_0x57d468=>_0x57d468[_0x3792dd(0x1de)])[_0x3792dd(0x1cf)](Boolean),_0x3f657f=_0x1f0e56[_0x3792dd(0x1d6)]?_0x3792dd(0x1cd)+Array[_0x3792dd(0x1da)](new Set(_0x1f0e56))['join'](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+_0x3792dd(0x1e2);throw CliErrors[_0x3792dd(0x1d0)](_0x3792dd(0x1c1)+_0xcb3b20[_0x3792dd(0x1de)]+_0x3792dd(0x1d5),_0x3f657f);}function writeWorkspaceConfig(_0x33ea0c,_0x22f75e,_0x5e2574){const _0x55a419=a64_0x1a424b;_0x33ea0c[_0x55a419(0x1bd)]&&(_0x5e2574['env']=_0x33ea0c[_0x55a419(0x1c0)]);if(_0x33ea0c[_0x55a419(0x1de)]){const _0x38210f=isRecord(_0x5e2574[_0x55a419(0x1c7)])?{..._0x5e2574[_0x55a419(0x1c7)]}:{},_0x853cb7=isRecord(_0x38210f[_0x33ea0c[_0x55a419(0x1de)]])?_0x38210f[_0x33ea0c[_0x55a419(0x1de)]]:{};return _0x38210f[_0x33ea0c['appName']]={..._0x853cb7,'appcode':_0x33ea0c[_0x55a419(0x1f4)]},_0x5e2574[_0x55a419(0x1c7)]=_0x38210f,_0x5e2574[_0x55a419(0x1db)]=_0x33ea0c[_0x55a419(0x1de)],delete _0x5e2574['appcode'],delete _0x5e2574[_0x55a419(0x1d3)],writeAndReturn(_0x22f75e,_0x5e2574);}return _0x5e2574['appcode']=_0x33ea0c[_0x55a419(0x1f4)],delete _0x5e2574[_0x55a419(0x1db)],delete _0x5e2574[_0x55a419(0x1d3)],writeAndReturn(_0x22f75e,_0x5e2574);}function writeAndReturn(_0x4346a8,_0x4ac2d4){return writeConfigFile(_0x4346a8,_0x4ac2d4),_0x4346a8;}function resolveWorkspaceEnv(_0x4f7dad){const _0x4c272f=a64_0x1a424b;if(RUNTIME_ENV_VALUES[_0x4c272f(0x1bb)](_0x4f7dad))return _0x4f7dad;throw CliErrors[_0x4c272f(0x1d0)](_0x4c272f(0x1fa)+_0x4f7dad+_0x4c272f(0x1f8)+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x4f824a,_0x1b49bc,_0x24d725,_0x3e3044){const _0x1124b6=a64_0x1a424b,_0x3467f2=_0x1b49bc?_0x1b49bc+'\x20('+_0x24d725+')':_0x24d725,_0x29e229=_0x3e3044?'\x0aEnv:\x20'+_0x3e3044:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x4f824a+'\x0aDefault\x20app:\x20'+_0x3467f2+_0x29e229+_0x1124b6(0x1c3);}function isRecord(_0x332464){const _0x492738=a64_0x1a424b;return typeof _0x332464===_0x492738(0x1ea)&&_0x332464!==null&&!Array[_0x492738(0x1f0)](_0x332464);}function hasWorkspaceAppBinding(_0x10f6a8){const _0x3d6eae=a64_0x1a424b;if(typeof _0x10f6a8['appcode']==='string'&&_0x10f6a8['appcode'][_0x3d6eae(0x1be)]()[_0x3d6eae(0x1d6)]>0x0)return!![];if(typeof _0x10f6a8[_0x3d6eae(0x1db)]!==_0x3d6eae(0x1ca)||!_0x10f6a8[_0x3d6eae(0x1db)][_0x3d6eae(0x1be)]())return![];if(!isRecord(_0x10f6a8['apps']))return![];const _0x4b8fb3=_0x10f6a8[_0x3d6eae(0x1c7)][_0x10f6a8[_0x3d6eae(0x1db)][_0x3d6eae(0x1be)]()];return isRecord(_0x4b8fb3)&&typeof _0x4b8fb3[_0x3d6eae(0x1f4)]==='string'&&_0x4b8fb3[_0x3d6eae(0x1f4)][_0x3d6eae(0x1be)]()['length']>0x0;}function assertWorkspaceCommandState(_0x28f320,_0x42d932){const _0x5e40a8=a64_0x1a424b,_0x49685f=hasWorkspaceAppBinding(_0x42d932);if(_0x28f320===_0x5e40a8(0x1dc)&&_0x49685f)throw CliErrors[_0x5e40a8(0x1d0)](_0x5e40a8(0x1e0),_0x5e40a8(0x1c9)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`'+CLI_BIN_NAME+_0x5e40a8(0x1c6));if(_0x28f320===_0x5e40a8(0x1d1)&&!_0x49685f)throw CliErrors['validation']('Workspace\x20app\x20context\x20is\x20not\x20initialized.',_0x5e40a8(0x1e8)+CLI_BIN_NAME+_0x5e40a8(0x1dd)+CLI_BIN_NAME+_0x5e40a8(0x1b8));}function makeWorkspaceCommand(_0xc7ad0b){const _0x10206a=a64_0x1a424b;return{'service':_0x10206a(0x1b7),'command':_0xc7ad0b,'description':_0xc7ad0b===_0x10206a(0x1dc)?_0x10206a(0x1bc):_0x10206a(0x1d2),'risk':_0x10206a(0x1e4),'confirmationDescription':_0xc7ad0b===_0x10206a(0x1dc)?_0x10206a(0x1e1):_0x10206a(0x1ed),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x35dbc9){return executeWorkspaceUse(_0x35dbc9,_0xc7ad0b);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a64_0x1a424b(0x1dc)),makeWorkspaceCommand(a64_0x1a424b(0x1d1))];
@@ -1 +1 @@
1
- const a65_0x17d527=a65_0x2606;(function(_0x23783a,_0x35b74e){const _0x41e2fd=a65_0x2606,_0x47ef7f=_0x23783a();while(!![]){try{const _0x1d19f3=parseInt(_0x41e2fd(0x11a))/0x1*(parseInt(_0x41e2fd(0x12f))/0x2)+-parseInt(_0x41e2fd(0x11d))/0x3*(-parseInt(_0x41e2fd(0x130))/0x4)+-parseInt(_0x41e2fd(0x12b))/0x5*(parseInt(_0x41e2fd(0x128))/0x6)+-parseInt(_0x41e2fd(0x139))/0x7+-parseInt(_0x41e2fd(0x11f))/0x8*(parseInt(_0x41e2fd(0x12a))/0x9)+parseInt(_0x41e2fd(0x136))/0xa*(parseInt(_0x41e2fd(0x125))/0xb)+parseInt(_0x41e2fd(0x127))/0xc*(-parseInt(_0x41e2fd(0x13d))/0xd);if(_0x1d19f3===_0x35b74e)break;else _0x47ef7f['push'](_0x47ef7f['shift']());}catch(_0x389fdc){_0x47ef7f['push'](_0x47ef7f['shift']());}}}(a65_0x4635,0xf3d7b));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';function a65_0x2606(_0x4ceb8e,_0x4a7172){_0x4ceb8e=_0x4ceb8e-0x119;const _0x4635c1=a65_0x4635();let _0x26066e=_0x4635c1[_0x4ceb8e];return _0x26066e;}export const CONFIG_FIELD_SCHEMAS={'env':{'description':a65_0x17d527(0x12d),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x17d527(0x126)],'importable':!![]},'format':{'description':a65_0x17d527(0x137),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x17d527(0x120)],'importable':!![]},'pageSize':{'description':a65_0x17d527(0x132),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a65_0x17d527(0x129),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a65_0x17d527(0x13b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':'Override\x20runtime\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a65_0x17d527(0x12c),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a65_0x17d527(0x138),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a65_0x17d527(0x13c),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x17d527(0x119)],'importable':!![]},'locale':{'description':a65_0x17d527(0x131),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x17d527(0x123)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x423763])=>_0x423763[a65_0x17d527(0x134)])[a65_0x17d527(0x12e)](([_0x7ab04c])=>_0x7ab04c));export const CONFIG_ENUM_VALUES=Object[a65_0x17d527(0x121)](Object['entries'](CONFIG_FIELD_SCHEMAS)[a65_0x17d527(0x11e)](([,_0x1351af])=>_0x1351af[a65_0x17d527(0x11b)])[a65_0x17d527(0x12e)](([_0x525937,_0x11f7d5])=>[_0x525937,[..._0x11f7d5[a65_0x17d527(0x11b)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a65_0x17d527(0x13a)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x2f2cc8])=>_0x2f2cc8[a65_0x17d527(0x135)])[a65_0x17d527(0x12e)](([_0x14ca4b])=>_0x14ca4b);export function getConfigFieldSchema(_0x46cf94){return CONFIG_FIELD_SCHEMAS[_0x46cf94];}export function getConfigEnumValues(_0x2037d4){const _0x5520a1=a65_0x17d527;return getConfigFieldSchema(_0x2037d4)?.[_0x5520a1(0x11b)];}export function getConfigDefaultValue(_0x357bf9){const _0x256680=a65_0x17d527;return getConfigFieldSchema(_0x357bf9)?.[_0x256680(0x124)];}export function isTopLevelConfigKey(_0x261726){const _0x3ffded=a65_0x17d527;return TOP_LEVEL_CONFIG_KEYS[_0x3ffded(0x11c)](_0x261726);}export function isLegacyCompatConfigKey(_0xc51a49){return getConfigFieldSchema(_0xc51a49)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x4b08ea){const _0x59ebe5=a65_0x17d527;return[..._0x4b08ea][_0x59ebe5(0x133)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0xa5aa55=a65_0x17d527;return _0xa5aa55(0x122)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0x30d31a){return{'env':_0x30d31a,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}function a65_0x4635(){const _0x10ba63=['Override\x20API\x20domain','117kdaRgY','95uHiwHf','Override\x20SkillHub\x20domain','Target\x20environment','map','2keyMLL','975724ljucnz','Locale','Default\x20page\x20size','join','cliSettableTopLevel','importable','50YeuPYy','Default\x20output\x20format','Access\x20key\x20(client-ak\x20auth)','2545438cGtvZk','entries','Override\x20user\x20domain','Risk\x20level','24050sdbWwF','riskLevel','1494526OAqugV','enumValues','has','3xINmsT','filter','377952HdeyzH','format','fromEntries','Config\x20key.\x20Top-level:\x20','locale','defaultValue','4366835LkauRE','env','804zJxPxa','512478tMuHyO'];a65_0x4635=function(){return _0x10ba63;};return a65_0x4635();}
1
+ const a65_0x4a38b3=a65_0x31d3;(function(_0x59a4e6,_0x2e9d16){const _0x594f95=a65_0x31d3,_0x5912c3=_0x59a4e6();while(!![]){try{const _0x5f1589=parseInt(_0x594f95(0x97))/0x1+parseInt(_0x594f95(0x84))/0x2+parseInt(_0x594f95(0x86))/0x3*(-parseInt(_0x594f95(0x96))/0x4)+-parseInt(_0x594f95(0x9b))/0x5*(-parseInt(_0x594f95(0x82))/0x6)+-parseInt(_0x594f95(0x87))/0x7+parseInt(_0x594f95(0x89))/0x8*(parseInt(_0x594f95(0x99))/0x9)+-parseInt(_0x594f95(0x92))/0xa*(parseInt(_0x594f95(0x98))/0xb);if(_0x5f1589===_0x2e9d16)break;else _0x5912c3['push'](_0x5912c3['shift']());}catch(_0x14186a){_0x5912c3['push'](_0x5912c3['shift']());}}}(a65_0x5afa,0x6fcbb));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_0x4a38b3(0x85),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x4a38b3(0x9a)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['format'],'importable':!![]},'pageSize':{'description':a65_0x4a38b3(0x7f),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a65_0x4a38b3(0x7d),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a65_0x4a38b3(0x80),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a65_0x4a38b3(0x8b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':'Override\x20SkillHub\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a65_0x4a38b3(0x8a),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x4a38b3(0x83)],'importable':!![]},'locale':{'description':a65_0x4a38b3(0x8d),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x4a38b3(0x94)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a65_0x4a38b3(0x93)](CONFIG_FIELD_SCHEMAS)[a65_0x4a38b3(0x91)](([,_0x395c69])=>_0x395c69[a65_0x4a38b3(0x8e)])[a65_0x4a38b3(0x7c)](([_0x5ebba6])=>_0x5ebba6));export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object[a65_0x4a38b3(0x93)](CONFIG_FIELD_SCHEMAS)[a65_0x4a38b3(0x91)](([,_0x5b69e3])=>_0x5b69e3['enumValues'])['map'](([_0x2aff65,_0x14daf0])=>[_0x2aff65,[..._0x14daf0[a65_0x4a38b3(0x8f)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a65_0x4a38b3(0x93)](CONFIG_FIELD_SCHEMAS)[a65_0x4a38b3(0x91)](([,_0xa9c177])=>_0xa9c177[a65_0x4a38b3(0x7e)])[a65_0x4a38b3(0x7c)](([_0x6c0ae1])=>_0x6c0ae1);export function getConfigFieldSchema(_0x355b93){return CONFIG_FIELD_SCHEMAS[_0x355b93];}export function getConfigEnumValues(_0x8446ad){const _0x2faea0=a65_0x4a38b3;return getConfigFieldSchema(_0x8446ad)?.[_0x2faea0(0x8f)];}export function getConfigDefaultValue(_0x33aa55){const _0x37f180=a65_0x4a38b3;return getConfigFieldSchema(_0x33aa55)?.[_0x37f180(0x81)];}export function isTopLevelConfigKey(_0x5af1b2){const _0xb8d232=a65_0x4a38b3;return TOP_LEVEL_CONFIG_KEYS[_0xb8d232(0x90)](_0x5af1b2);}export function isLegacyCompatConfigKey(_0x26c5fe){const _0x370a4d=a65_0x4a38b3;return getConfigFieldSchema(_0x26c5fe)?.[_0x370a4d(0x88)]===!![];}function a65_0x5afa(){const _0xd006df=['Default\x20page\x20size','Override\x20user\x20domain','defaultValue','2215494rYMYjh','riskLevel','1061012rXOiPc','Target\x20environment','701007YZDVHR','4739343QRYxyO','legacyCompatOnly','8DezNNr','Risk\x20level','Override\x20runtime\x20domain','Config\x20key.\x20Top-level:\x20','Locale','cliSettableTopLevel','enumValues','has','filter','14530HycaqN','entries','locale','join','4ySGxYb','550035XGnTcW','6281VEkfIv','3413313YcOwWI','env','10dnCGbM','map','Override\x20API\x20domain','importable'];a65_0x5afa=function(){return _0xd006df;};return a65_0x5afa();}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x416665){const _0x40d3b5=a65_0x4a38b3;return[..._0x416665][_0x40d3b5(0x95)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0xdca5ef=a65_0x4a38b3;return _0xdca5ef(0x8c)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}function a65_0x31d3(_0x4a1da2,_0x164a3a){_0x4a1da2=_0x4a1da2-0x7c;const _0x5afa7c=a65_0x5afa();let _0x31d3df=_0x5afa7c[_0x4a1da2];return _0x31d3df;}export function buildAppProfileListFields(_0x48091f){return{'env':_0x48091f,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- const a66_0x34e54f=a66_0x28c4;function a66_0x209e(){const _0x5ecb37=['57774VoDaaj','8KDUywA','460KaBugX','99316DdJxda','PUBLISHED','171OzDKgS','17616360mXxgIn','UNPUBLISH','107721DLgVxc','7163072pRWQkY','55362tnqaKL','4027692sDGYmt','24hIxNVx','66uAAzlE'];a66_0x209e=function(){return _0x5ecb37;};return a66_0x209e();}(function(_0x1865f9,_0x20a793){const _0x469097=a66_0x28c4,_0x2b02cc=_0x1865f9();while(!![]){try{const _0x19926d=parseInt(_0x469097(0xee))/0x1*(parseInt(_0x469097(0xe2))/0x2)+-parseInt(_0x469097(0xe7))/0x3*(parseInt(_0x469097(0xe5))/0x4)+parseInt(_0x469097(0xe4))/0x5*(parseInt(_0x469097(0xec))/0x6)+parseInt(_0x469097(0xeb))/0x7+parseInt(_0x469097(0xe3))/0x8*(-parseInt(_0x469097(0xea))/0x9)+parseInt(_0x469097(0xe8))/0xa+parseInt(_0x469097(0xef))/0xb*(-parseInt(_0x469097(0xed))/0xc);if(_0x19926d===_0x20a793)break;else _0x2b02cc['push'](_0x2b02cc['shift']());}catch(_0x4dc618){_0x2b02cc['push'](_0x2b02cc['shift']());}}}(a66_0x209e,0xd8514));export const APP_PUBLISH_STATUS={'Published':a66_0x34e54f(0xe6),'Unpublished':a66_0x34e54f(0xe9)};function a66_0x28c4(_0x1e6aee,_0x5071c0){_0x1e6aee=_0x1e6aee-0xe2;const _0x209ee4=a66_0x209e();let _0x28c47d=_0x209ee4[_0x1e6aee];return _0x28c47d;}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];
1
+ const a66_0x358885=a66_0x3ce4;function a66_0x3ce4(_0x325206,_0x2fa022){_0x325206=_0x325206-0x164;const _0x2915d1=a66_0x2915();let _0x3ce40b=_0x2915d1[_0x325206];return _0x3ce40b;}(function(_0x3b87ba,_0x4bc12b){const _0x40091d=a66_0x3ce4,_0xfcf693=_0x3b87ba();while(!![]){try{const _0x4e7f99=-parseInt(_0x40091d(0x16a))/0x1+parseInt(_0x40091d(0x167))/0x2*(parseInt(_0x40091d(0x164))/0x3)+parseInt(_0x40091d(0x16f))/0x4+-parseInt(_0x40091d(0x169))/0x5*(parseInt(_0x40091d(0x16c))/0x6)+parseInt(_0x40091d(0x16d))/0x7*(-parseInt(_0x40091d(0x168))/0x8)+-parseInt(_0x40091d(0x165))/0x9+-parseInt(_0x40091d(0x16b))/0xa*(-parseInt(_0x40091d(0x16e))/0xb);if(_0x4e7f99===_0x4bc12b)break;else _0xfcf693['push'](_0xfcf693['shift']());}catch(_0x475dc4){_0xfcf693['push'](_0xfcf693['shift']());}}}(a66_0x2915,0x9943c));export const APP_PUBLISH_STATUS={'Published':a66_0x358885(0x166),'Unpublished':'UNPUBLISH'};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];function a66_0x2915(){const _0x5642ea=['829950kDkYQd','3428073IFkjWI','PUBLISHED','2sjtdQc','54024OqFrhI','2485VxUePK','669936iJhKrc','32730KtgSen','7578zKHQaD','7pDktBf','3377dUBaoR','4126432UDrBLf'];a66_0x2915=function(){return _0x5642ea;};return a66_0x2915();}
@@ -1 +1 @@
1
- function a67_0x3cae(){const _0x7638a4=['3455224ttsnzO','ClientAk','749220JhxDBp','9dALsMg','7WjNYdc','522438vafMhi','5348sHSISo','client-ak','194069BfuPTC','6033070JxBJwc','1555nDoUht','1249794RkaDUS'];a67_0x3cae=function(){return _0x7638a4;};return a67_0x3cae();}function a67_0x32b7(_0x14938e,_0x4eac81){_0x14938e=_0x14938e-0x134;const _0x3caecf=a67_0x3cae();let _0x32b70c=_0x3caecf[_0x14938e];return _0x32b70c;}const a67_0xa43574=a67_0x32b7;(function(_0x531671,_0x159c65){const _0x1ea12e=a67_0x32b7,_0x2a7104=_0x531671();while(!![]){try{const _0x259fc9=-parseInt(_0x1ea12e(0x13e))/0x1+parseInt(_0x1ea12e(0x138))/0x2+parseInt(_0x1ea12e(0x13b))/0x3+-parseInt(_0x1ea12e(0x13c))/0x4*(parseInt(_0x1ea12e(0x134))/0x5)+parseInt(_0x1ea12e(0x135))/0x6+parseInt(_0x1ea12e(0x13a))/0x7*(-parseInt(_0x1ea12e(0x136))/0x8)+-parseInt(_0x1ea12e(0x139))/0x9*(-parseInt(_0x1ea12e(0x13f))/0xa);if(_0x259fc9===_0x159c65)break;else _0x2a7104['push'](_0x2a7104['shift']());}catch(_0x53dd36){_0x2a7104['push'](_0x2a7104['shift']());}}}(a67_0x3cae,0x4dc77));export const AUTH_MODE={'ClientAk':a67_0xa43574(0x13d)};export function isAuthMode(_0x2b2277){const _0x56ae1a=a67_0xa43574;return _0x2b2277===AUTH_MODE[_0x56ae1a(0x137)];}
1
+ const a67_0x1368ae=a67_0x5a8e;(function(_0x46f8ad,_0x535871){const _0x56cc0e=a67_0x5a8e,_0x254bc1=_0x46f8ad();while(!![]){try{const _0x3f2860=parseInt(_0x56cc0e(0x103))/0x1*(parseInt(_0x56cc0e(0x102))/0x2)+-parseInt(_0x56cc0e(0x108))/0x3*(-parseInt(_0x56cc0e(0x106))/0x4)+-parseInt(_0x56cc0e(0x101))/0x5+parseInt(_0x56cc0e(0x10a))/0x6+-parseInt(_0x56cc0e(0xff))/0x7+-parseInt(_0x56cc0e(0x104))/0x8+-parseInt(_0x56cc0e(0x107))/0x9*(-parseInt(_0x56cc0e(0x100))/0xa);if(_0x3f2860===_0x535871)break;else _0x254bc1['push'](_0x254bc1['shift']());}catch(_0x2c0c5b){_0x254bc1['push'](_0x254bc1['shift']());}}}(a67_0x1058,0x4b540));function a67_0x1058(){const _0x1dde6e=['43kpKUHx','4093056jjwDSH','client-ak','118980CIjhSM','17838vxukZj','45KWBtkL','ClientAk','2346654Wrikbe','1100939NWdECp','1380Jzghqf','2555080vPFdbp','17566TQeQxX'];a67_0x1058=function(){return _0x1dde6e;};return a67_0x1058();}export const AUTH_MODE={'ClientAk':a67_0x1368ae(0x105)};function a67_0x5a8e(_0x22944f,_0x232dce){_0x22944f=_0x22944f-0xff;const _0x1058f8=a67_0x1058();let _0x5a8e13=_0x1058f8[_0x22944f];return _0x5a8e13;}export function isAuthMode(_0x2bb871){const _0x3265c5=a67_0x1368ae;return _0x2bb871===AUTH_MODE[_0x3265c5(0x109)];}
@@ -1 +1 @@
1
- const a68_0x2f138a=a68_0x2c62;function a68_0x2c62(_0x2de964,_0x33b0ab){_0x2de964=_0x2de964-0x78;const _0x324435=a68_0x3244();let _0x2c6230=_0x324435[_0x2de964];return _0x2c6230;}function a68_0x3244(){const _0x975863=['21fAAkTv','params','541182EBExXJ','<expr>','<code>','Force\x20non-interactive\x20mode\x20(CI)','map','1215edYFPH','Verbose\x20output','production\x20|\x20development\x20|\x20daily','11ATyDiv','1308040ILjeYM','clear','Name\x20filter','Show\x20help','10HnyHNP','type','app','nonInteractive','Output\x20format','env','fromEntries','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','sqlcode','JSON\x20params\x20for\x20execute\x20commands','dry-run','boolean','format','string','global','4aDdhKv','Alias\x20for\x20--non-interactive','Override\x20appcode','appcode','Clear\x20output','Use\x20global\x20config\x20scope','dryRun','yes','59280NmZkWe','meowKey','3403915fzGOPS','verbose','Skip\x20confirmation\x20for\x20high-risk\x20writes','Select\x20app\x20profile\x20by\x20name','17405820QvSzyf','non-interactive','632803KAKPmu','help','SQL\x20query\x20code','<name>','Preview\x20operation\x20without\x20executing','1929570BxYttS','json\x20|\x20pretty\x20|\x20compress','cliDisplayName','name','Environment'];a68_0x3244=function(){return _0x975863;};return a68_0x3244();}(function(_0x16259a,_0x584e38){const _0x508a0d=a68_0x2c62,_0x448ce3=_0x16259a();while(!![]){try{const _0x13e776=-parseInt(_0x508a0d(0x96))/0x1+-parseInt(_0x508a0d(0xaf))/0x2*(parseInt(_0x508a0d(0xa2))/0x3)+-parseInt(_0x508a0d(0x86))/0x4*(-parseInt(_0x508a0d(0x90))/0x5)+-parseInt(_0x508a0d(0x9b))/0x6*(parseInt(_0x508a0d(0xa0))/0x7)+-parseInt(_0x508a0d(0x8e))/0x8*(-parseInt(_0x508a0d(0xa7))/0x9)+-parseInt(_0x508a0d(0xab))/0xa*(parseInt(_0x508a0d(0xaa))/0xb)+parseInt(_0x508a0d(0x94))/0xc;if(_0x13e776===_0x584e38)break;else _0x448ce3['push'](_0x448ce3['shift']());}catch(_0x4f2763){_0x448ce3['push'](_0x448ce3['shift']());}}}(a68_0x3244,0x7a608));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a68_0x2f138a(0x9d)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a68_0x2f138a(0x89),'meowKey':a68_0x2f138a(0x89),'type':a68_0x2f138a(0x84),'description':a68_0x2f138a(0x88),'hint':a68_0x2f138a(0xa4)},{'name':a68_0x2f138a(0x79),'meowKey':'app','type':'string','description':a68_0x2f138a(0x93),'hint':a68_0x2f138a(0x99)},{'name':a68_0x2f138a(0x7c),'meowKey':a68_0x2f138a(0x7c),'type':a68_0x2f138a(0x84),'description':a68_0x2f138a(0x9f),'hint':a68_0x2f138a(0xa9)},{'name':a68_0x2f138a(0x83),'meowKey':a68_0x2f138a(0x83),'type':a68_0x2f138a(0x84),'description':a68_0x2f138a(0x7b),'hint':a68_0x2f138a(0x9c)},{'name':'jq','meowKey':'jq','type':a68_0x2f138a(0x84),'description':a68_0x2f138a(0x7e),'hint':a68_0x2f138a(0xa3)},{'name':a68_0x2f138a(0x81),'meowKey':a68_0x2f138a(0x8c),'type':a68_0x2f138a(0x82),'description':a68_0x2f138a(0x9a)},{'name':a68_0x2f138a(0x8d),'meowKey':'yes','type':a68_0x2f138a(0x82),'description':a68_0x2f138a(0x92)},{'name':a68_0x2f138a(0x95),'meowKey':a68_0x2f138a(0x7a),'type':a68_0x2f138a(0x82),'description':a68_0x2f138a(0xa5)},{'name':'global','meowKey':a68_0x2f138a(0x85),'type':a68_0x2f138a(0x82),'description':a68_0x2f138a(0x8b)},{'name':'ci','meowKey':'ci','type':a68_0x2f138a(0x82),'description':a68_0x2f138a(0x87),'hidden':!![]},{'name':a68_0x2f138a(0x97),'meowKey':'help','type':'boolean','description':a68_0x2f138a(0xae)},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':'name','meowKey':a68_0x2f138a(0x9e),'type':a68_0x2f138a(0x84),'description':a68_0x2f138a(0xad),'hidden':!![]},{'name':a68_0x2f138a(0x7f),'meowKey':a68_0x2f138a(0x7f),'type':a68_0x2f138a(0x84),'description':a68_0x2f138a(0x98),'hidden':!![]},{'name':a68_0x2f138a(0xa1),'meowKey':'params','type':a68_0x2f138a(0x84),'description':a68_0x2f138a(0x80),'hidden':!![]},{'name':a68_0x2f138a(0x91),'meowKey':a68_0x2f138a(0x91),'type':'boolean','description':a68_0x2f138a(0xa8),'hidden':!![]},{'name':a68_0x2f138a(0xac),'meowKey':a68_0x2f138a(0xac),'type':a68_0x2f138a(0x82),'description':a68_0x2f138a(0x8a),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a68_0x2f138a(0x89),'app',a68_0x2f138a(0x7c),a68_0x2f138a(0x83),'jq',a68_0x2f138a(0x81),'yes',a68_0x2f138a(0x95),'ci']);export function buildMeowFlags(){const _0x133c56=a68_0x2f138a;return Object[_0x133c56(0x7d)](GLOBAL_FLAGS[_0x133c56(0xa6)](_0x4a5469=>[_0x4a5469[_0x133c56(0x8f)],{'type':_0x4a5469[_0x133c56(0x78)]}]));}
1
+ const a68_0x51982e=a68_0x1175;(function(_0x23f791,_0x4da9c3){const _0x38b7f6=a68_0x1175,_0x3d4bfb=_0x23f791();while(!![]){try{const _0x1765a0=parseInt(_0x38b7f6(0x1cd))/0x1*(-parseInt(_0x38b7f6(0x1d5))/0x2)+-parseInt(_0x38b7f6(0x1c7))/0x3+parseInt(_0x38b7f6(0x1df))/0x4+parseInt(_0x38b7f6(0x1ca))/0x5+-parseInt(_0x38b7f6(0x1ea))/0x6*(-parseInt(_0x38b7f6(0x1db))/0x7)+-parseInt(_0x38b7f6(0x1eb))/0x8+-parseInt(_0x38b7f6(0x1d9))/0x9*(-parseInt(_0x38b7f6(0x1d6))/0xa);if(_0x1765a0===_0x4da9c3)break;else _0x3d4bfb['push'](_0x3d4bfb['shift']());}catch(_0x4dc61a){_0x3d4bfb['push'](_0x3d4bfb['shift']());}}}(a68_0xef75,0x65e02));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a68_0x51982e(0x1f4)];function a68_0x1175(_0x12415e,_0x56107e){_0x12415e=_0x12415e-0x1c6;const _0xef75da=a68_0xef75();let _0x117509=_0xef75da[_0x12415e];return _0x117509;}export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a68_0x51982e(0x1f5)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a68_0xef75(){const _0x59c123=['non-interactive','2jghhjO','30ddwyWJ','sqlcode','verbose','738729sqBxaB','Show\x20help','3571099FnnbrM','production\x20|\x20development\x20|\x20daily','Environment','<code>','1474972QXzWus','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','name','Output\x20format','Name\x20filter','string','global','app','Verbose\x20output','dryRun','Use\x20global\x20config\x20scope','6ckzpJd','2942504DzIOuq','<name>','appcode','map','yes','JSON\x20params\x20for\x20execute\x20commands','<expr>','boolean','Skip\x20confirmation\x20for\x20high-risk\x20writes','cliBinName','cliDisplayName','params','2226048NacOXz','env','clear','3318005yfYqiY','meowKey','dry-run','261633kpbrde','json\x20|\x20pretty\x20|\x20compress','format','type','Clear\x20output','fromEntries','Override\x20appcode'];a68_0xef75=function(){return _0x59c123;};return a68_0xef75();}export const GLOBAL_FLAGS=[{'name':a68_0x51982e(0x1ed),'meowKey':a68_0x51982e(0x1ed),'type':a68_0x51982e(0x1e4),'description':a68_0x51982e(0x1d3),'hint':a68_0x51982e(0x1de)},{'name':'app','meowKey':a68_0x51982e(0x1e6),'type':a68_0x51982e(0x1e4),'description':'Select\x20app\x20profile\x20by\x20name','hint':a68_0x51982e(0x1ec)},{'name':a68_0x51982e(0x1c8),'meowKey':a68_0x51982e(0x1c8),'type':a68_0x51982e(0x1e4),'description':a68_0x51982e(0x1dd),'hint':a68_0x51982e(0x1dc)},{'name':a68_0x51982e(0x1cf),'meowKey':a68_0x51982e(0x1cf),'type':a68_0x51982e(0x1e4),'description':a68_0x51982e(0x1e2),'hint':a68_0x51982e(0x1ce)},{'name':'jq','meowKey':'jq','type':a68_0x51982e(0x1e4),'description':a68_0x51982e(0x1e0),'hint':a68_0x51982e(0x1f1)},{'name':'dry-run','meowKey':a68_0x51982e(0x1e8),'type':a68_0x51982e(0x1f2),'description':'Preview\x20operation\x20without\x20executing'},{'name':a68_0x51982e(0x1ef),'meowKey':'yes','type':a68_0x51982e(0x1f2),'description':a68_0x51982e(0x1f3)},{'name':'non-interactive','meowKey':'nonInteractive','type':a68_0x51982e(0x1f2),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a68_0x51982e(0x1e5),'meowKey':'global','type':a68_0x51982e(0x1f2),'description':a68_0x51982e(0x1e9)},{'name':'ci','meowKey':'ci','type':a68_0x51982e(0x1f2),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':'help','meowKey':'help','type':'boolean','description':a68_0x51982e(0x1da)},{'name':'id','meowKey':'id','type':a68_0x51982e(0x1e4),'description':'Record\x20ID','hidden':!![]},{'name':a68_0x51982e(0x1e1),'meowKey':a68_0x51982e(0x1e1),'type':a68_0x51982e(0x1e4),'description':a68_0x51982e(0x1e3),'hidden':!![]},{'name':a68_0x51982e(0x1d7),'meowKey':a68_0x51982e(0x1d7),'type':a68_0x51982e(0x1e4),'description':'SQL\x20query\x20code','hidden':!![]},{'name':a68_0x51982e(0x1c6),'meowKey':'params','type':a68_0x51982e(0x1e4),'description':a68_0x51982e(0x1f0),'hidden':!![]},{'name':a68_0x51982e(0x1d8),'meowKey':'verbose','type':a68_0x51982e(0x1f2),'description':a68_0x51982e(0x1e7),'hidden':!![]},{'name':a68_0x51982e(0x1c9),'meowKey':a68_0x51982e(0x1c9),'type':a68_0x51982e(0x1f2),'description':a68_0x51982e(0x1d1),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a68_0x51982e(0x1ed),'app',a68_0x51982e(0x1c8),a68_0x51982e(0x1cf),'jq',a68_0x51982e(0x1cc),a68_0x51982e(0x1ef),a68_0x51982e(0x1d4),'ci']);export function buildMeowFlags(){const _0x305f45=a68_0x51982e;return Object[_0x305f45(0x1d2)](GLOBAL_FLAGS[_0x305f45(0x1ee)](_0x155aeb=>[_0x155aeb[_0x305f45(0x1cb)],{'type':_0x155aeb[_0x305f45(0x1d0)]}]));}
@@ -1 +1 @@
1
- function a69_0x2082(){const _0x128c2c=['8VfgMrE','6ILyyEe','1980803wWByWO','main','write','compress','2080xnPYBy','92TVqXRD','en-US','8sqxpyb','production','107760PjHdKJ','532995sPgEhB','6681123Lqzclx','257812sdwnCB','6047503qSNmtU','20JfUzWj','128091NaDHQy'];a69_0x2082=function(){return _0x128c2c;};return a69_0x2082();}function a69_0x5edd(_0x134da9,_0x5b24f4){_0x134da9=_0x134da9-0x116;const _0x208283=a69_0x2082();let _0x5edda9=_0x208283[_0x134da9];return _0x5edda9;}const a69_0x55f684=a69_0x5edd;(function(_0x4fbe1f,_0x55dd12){const _0x31dcff=a69_0x5edd,_0x3cadda=_0x4fbe1f();while(!![]){try{const _0xe41dd8=parseInt(_0x31dcff(0x11f))/0x1*(-parseInt(_0x31dcff(0x124))/0x2)+-parseInt(_0x31dcff(0x127))/0x3*(-parseInt(_0x31dcff(0x11d))/0x4)+-parseInt(_0x31dcff(0x122))/0x5*(-parseInt(_0x31dcff(0x117))/0x6)+parseInt(_0x31dcff(0x125))/0x7*(parseInt(_0x31dcff(0x116))/0x8)+parseInt(_0x31dcff(0x123))/0x9+-parseInt(_0x31dcff(0x126))/0xa*(-parseInt(_0x31dcff(0x118))/0xb)+parseInt(_0x31dcff(0x121))/0xc*(-parseInt(_0x31dcff(0x11c))/0xd);if(_0xe41dd8===_0x55dd12)break;else _0x3cadda['push'](_0x3cadda['shift']());}catch(_0x36f324){_0x3cadda['push'](_0x3cadda['shift']());}}}(a69_0x2082,0x8f4fc));export const DEFAULT_APP_PROFILE_NAME=a69_0x55f684(0x119);export const DEFAULT_CONFIG_VALUES={'env':a69_0x55f684(0x120),'format':a69_0x55f684(0x11b),'locale':a69_0x55f684(0x11e),'riskLevel':a69_0x55f684(0x11a)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
1
+ const a69_0x55790c=a69_0x1dc8;(function(_0xb7e4d4,_0x2c87fb){const _0x426963=a69_0x1dc8,_0x51997f=_0xb7e4d4();while(!![]){try{const _0x330cef=parseInt(_0x426963(0x10b))/0x1*(parseInt(_0x426963(0x110))/0x2)+parseInt(_0x426963(0x116))/0x3+-parseInt(_0x426963(0x111))/0x4*(-parseInt(_0x426963(0x114))/0x5)+-parseInt(_0x426963(0x119))/0x6+-parseInt(_0x426963(0x112))/0x7*(parseInt(_0x426963(0x10d))/0x8)+-parseInt(_0x426963(0x10c))/0x9*(-parseInt(_0x426963(0x113))/0xa)+parseInt(_0x426963(0x10f))/0xb*(-parseInt(_0x426963(0x115))/0xc);if(_0x330cef===_0x2c87fb)break;else _0x51997f['push'](_0x51997f['shift']());}catch(_0x23c826){_0x51997f['push'](_0x51997f['shift']());}}}(a69_0x7fdc,0x411b7));export const DEFAULT_APP_PROFILE_NAME=a69_0x55790c(0x117);function a69_0x7fdc(){const _0x2f5536=['414YCYUNE','16fgjnrS','write','4201351iPTVcH','78sXAeiX','25948vXbjoH','1535261LEYPvV','102950jYpRMN','145hsfhKV','12TWYsjs','937947ZVyDhz','main','compress','1067862YigbiN','production','7459HGXtYl'];a69_0x7fdc=function(){return _0x2f5536;};return a69_0x7fdc();}export const DEFAULT_CONFIG_VALUES={'env':a69_0x55790c(0x11a),'format':a69_0x55790c(0x118),'locale':'en-US','riskLevel':a69_0x55790c(0x10e)};function a69_0x1dc8(_0x2bba07,_0x8268c5){_0x2bba07=_0x2bba07-0x10b;const _0x7fdc08=a69_0x7fdc();let _0x1dc8ad=_0x7fdc08[_0x2bba07];return _0x1dc8ad;}export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
@@ -1 +1 @@
1
- const a70_0x34ad57=a70_0x4baf;(function(_0x5a814a,_0x1048c0){const _0x22d9de=a70_0x4baf,_0x2a3fb3=_0x5a814a();while(!![]){try{const _0x4acd75=-parseInt(_0x22d9de(0x1c3))/0x1*(-parseInt(_0x22d9de(0x1bd))/0x2)+-parseInt(_0x22d9de(0x1c1))/0x3+parseInt(_0x22d9de(0x1c0))/0x4+-parseInt(_0x22d9de(0x1bb))/0x5+-parseInt(_0x22d9de(0x1bc))/0x6+-parseInt(_0x22d9de(0x1be))/0x7*(parseInt(_0x22d9de(0x1bf))/0x8)+-parseInt(_0x22d9de(0x1ba))/0x9*(-parseInt(_0x22d9de(0x1c4))/0xa);if(_0x4acd75===_0x1048c0)break;else _0x2a3fb3['push'](_0x2a3fb3['shift']());}catch(_0x2e24bf){_0x2a3fb3['push'](_0x2a3fb3['shift']());}}}(a70_0x2305,0xc0f70));function a70_0x4baf(_0x5726af,_0x12e826){_0x5726af=_0x5726af-0x1ba;const _0x2305f4=a70_0x2305();let _0x4baf73=_0x2305f4[_0x5726af];return _0x4baf73;}import{PRODUCT_CONFIG}from'../constant/product.js';function a70_0x2305(){const _0x6a61e7=['skillSource','415983FtdjPA','13234160qKHcEn','9tSjhja','7004760zCdwPp','3698454baOFwK','4wupRnY','7sUpabG','998440FAzgnS','5989352GjPqhV','2160510lqFEZR'];a70_0x2305=function(){return _0x6a61e7;};return a70_0x2305();}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a70_0x34ad57(0x1c2)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];
1
+ const a70_0x588526=a70_0x4ece;function a70_0x44c2(){const _0x104200=['5650051LaXdAE','3fuAsBh','5nDScpd','9GMCfuQ','skillSource','npmRegistryBaseUrl','3571480ArOafj','1075110HxliHk','275580MYqAbC','2683270WCVave','207678KUHapH','6xJhyAa','12mocRnn','npmPackageName','597660rLTXcC'];a70_0x44c2=function(){return _0x104200;};return a70_0x44c2();}(function(_0x409667,_0x394ee7){const _0x208973=a70_0x4ece,_0x2c5a81=_0x409667();while(!![]){try{const _0x11a95c=-parseInt(_0x208973(0x11d))/0x1*(parseInt(_0x208973(0x117))/0x2)+-parseInt(_0x208973(0x118))/0x3*(-parseInt(_0x208973(0x124))/0x4)+-parseInt(_0x208973(0x11e))/0x5*(parseInt(_0x208973(0x123))/0x6)+-parseInt(_0x208973(0x11b))/0x7+parseInt(_0x208973(0x122))/0x8+-parseInt(_0x208973(0x11f))/0x9*(parseInt(_0x208973(0x116))/0xa)+parseInt(_0x208973(0x11c))/0xb*(parseInt(_0x208973(0x119))/0xc);if(_0x11a95c===_0x394ee7)break;else _0x2c5a81['push'](_0x2c5a81['shift']());}catch(_0x1fb40f){_0x2c5a81['push'](_0x2c5a81['shift']());}}}(a70_0x44c2,0x3de11));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a70_0x588526(0x11a)];function a70_0x4ece(_0x152dc5,_0x24aeec){_0x152dc5=_0x152dc5-0x116;const _0x44c2ce=a70_0x44c2();let _0x4ece17=_0x44c2ce[_0x152dc5];return _0x4ece17;}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a70_0x588526(0x120)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a70_0x588526(0x121)];
@@ -1 +1 @@
1
- const a71_0x4c471e=a71_0x5606;(function(_0x15bb05,_0x4f88c7){const _0x13a86a=a71_0x5606,_0x30d685=_0x15bb05();while(!![]){try{const _0x78af32=parseInt(_0x13a86a(0xb6))/0x1+parseInt(_0x13a86a(0xb3))/0x2*(parseInt(_0x13a86a(0xc7))/0x3)+parseInt(_0x13a86a(0xc4))/0x4+-parseInt(_0x13a86a(0xbe))/0x5*(-parseInt(_0x13a86a(0xc5))/0x6)+parseInt(_0x13a86a(0xb4))/0x7*(-parseInt(_0x13a86a(0xbf))/0x8)+parseInt(_0x13a86a(0xc2))/0x9*(parseInt(_0x13a86a(0xb7))/0xa)+parseInt(_0x13a86a(0xc3))/0xb*(-parseInt(_0x13a86a(0xb9))/0xc);if(_0x78af32===_0x4f88c7)break;else _0x30d685['push'](_0x30d685['shift']());}catch(_0x5ca90a){_0x30d685['push'](_0x30d685['shift']());}}}(a71_0x24af,0x850e5));function a71_0x5606(_0x31cb6d,_0x49b3f7){_0x31cb6d=_0x31cb6d-0xb2;const _0x24af0f=a71_0x24af();let _0x560691=_0x24af0f[_0x31cb6d];return _0x560691;}import{getEnv,isProduction}from'../constant/env.js';function a71_0x24af(){const _0x362d30=['api','production','171EyzPoK','18852493HpOEaU','3233784ZOYaGl','14226WcDgvM','apiDomain','6CwMVwi','runtime','900002auNuoA','1911224EDszyb','skillhub','548506mNtFMT','9070ptMiYf','userDomain','12CoVIWq','user','domains','nonProduction','skillHubDomain','1695zjrmxj','24WIdQrs'];a71_0x24af=function(){return _0x362d30;};return a71_0x24af();}import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x10359e){const _0x1cc015=a71_0x5606;customApiDomain=_0x10359e?.[_0x1cc015(0xc6)],customUserDomain=_0x10359e?.[_0x1cc015(0xb8)],customRuntimeDomain=_0x10359e?.['runtimeDomain'],customSkillHubDomain=_0x10359e?.[_0x1cc015(0xbd)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x4c471e(0xbb)][a71_0x4c471e(0xc1)][a71_0x4c471e(0xba)]:PRODUCT_CONFIG[a71_0x4c471e(0xbb)][a71_0x4c471e(0xbc)]['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x4c471e(0xbb)][a71_0x4c471e(0xc1)][a71_0x4c471e(0xc0)]:PRODUCT_CONFIG[a71_0x4c471e(0xbb)][a71_0x4c471e(0xbc)]['api']);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x4c471e(0xbb)][a71_0x4c471e(0xc1)][a71_0x4c471e(0xb2)]:PRODUCT_CONFIG[a71_0x4c471e(0xbb)]['nonProduction'][a71_0x4c471e(0xb2)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x4c471e(0xbb)][a71_0x4c471e(0xc1)]['skillhub']:PRODUCT_CONFIG[a71_0x4c471e(0xbb)][a71_0x4c471e(0xbc)][a71_0x4c471e(0xb5)]);
1
+ const a71_0x41a7f0=a71_0x5959;(function(_0x24b311,_0xc4f289){const _0x1879a3=a71_0x5959,_0x2fa9bc=_0x24b311();while(!![]){try{const _0x2ea43a=-parseInt(_0x1879a3(0xf9))/0x1*(parseInt(_0x1879a3(0xec))/0x2)+parseInt(_0x1879a3(0xe8))/0x3*(parseInt(_0x1879a3(0xf1))/0x4)+-parseInt(_0x1879a3(0xe9))/0x5+-parseInt(_0x1879a3(0xfc))/0x6*(-parseInt(_0x1879a3(0xe6))/0x7)+parseInt(_0x1879a3(0xfb))/0x8*(parseInt(_0x1879a3(0xf5))/0x9)+-parseInt(_0x1879a3(0xef))/0xa+-parseInt(_0x1879a3(0xf8))/0xb*(-parseInt(_0x1879a3(0xfa))/0xc);if(_0x2ea43a===_0xc4f289)break;else _0x2fa9bc['push'](_0x2fa9bc['shift']());}catch(_0xabdeec){_0x2fa9bc['push'](_0x2fa9bc['shift']());}}}(a71_0x1da1,0x2aaa2));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x403d4b){const _0x36ee3a=a71_0x5959;customApiDomain=_0x403d4b?.[_0x36ee3a(0xf3)],customUserDomain=_0x403d4b?.[_0x36ee3a(0xed)],customRuntimeDomain=_0x403d4b?.[_0x36ee3a(0xf2)],customSkillHubDomain=_0x403d4b?.[_0x36ee3a(0xee)];}function a71_0x1da1(){const _0x3cab95=['52jdrMfr','userDomain','skillHubDomain','1383160Bvqgfx','production','904WKnqDu','runtimeDomain','apiDomain','runtime','3879cFqJBy','api','nonProduction','286yCEEtp','4124eVRpGa','99096VsOvJu','1928NqVElE','6264yzRRAi','609KUEBWh','domains','1566PHKebK','535425gzNOJG','user','skillhub'];a71_0x1da1=function(){return _0x3cab95;};return a71_0x1da1();}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x41a7f0(0xe7)][a71_0x41a7f0(0xf0)][a71_0x41a7f0(0xea)]:PRODUCT_CONFIG[a71_0x41a7f0(0xe7)][a71_0x41a7f0(0xf7)][a71_0x41a7f0(0xea)]);function a71_0x5959(_0x6b1b77,_0x288a5e){_0x6b1b77=_0x6b1b77-0xe6;const _0x1da1aa=a71_0x1da1();let _0x59590d=_0x1da1aa[_0x6b1b77];return _0x59590d;}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x41a7f0(0xe7)][a71_0x41a7f0(0xf0)]['api']:PRODUCT_CONFIG[a71_0x41a7f0(0xe7)][a71_0x41a7f0(0xf7)][a71_0x41a7f0(0xf6)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x41a7f0(0xe7)][a71_0x41a7f0(0xf0)][a71_0x41a7f0(0xf4)]:PRODUCT_CONFIG[a71_0x41a7f0(0xe7)][a71_0x41a7f0(0xf7)][a71_0x41a7f0(0xf4)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x41a7f0(0xe7)][a71_0x41a7f0(0xf0)][a71_0x41a7f0(0xeb)]:PRODUCT_CONFIG['domains']['nonProduction']['skillhub']);
@@ -1 +1 @@
1
- const a72_0x310f2d=a72_0x1848;(function(_0x5a8866,_0x7b7b7d){const _0x468824=a72_0x1848,_0x1ac6ca=_0x5a8866();while(!![]){try{const _0x582899=parseInt(_0x468824(0xe2))/0x1+parseInt(_0x468824(0xe7))/0x2+parseInt(_0x468824(0xe6))/0x3*(parseInt(_0x468824(0xe1))/0x4)+parseInt(_0x468824(0xe3))/0x5*(-parseInt(_0x468824(0xe5))/0x6)+parseInt(_0x468824(0xec))/0x7+parseInt(_0x468824(0xe8))/0x8*(-parseInt(_0x468824(0xea))/0x9)+-parseInt(_0x468824(0xeb))/0xa;if(_0x582899===_0x7b7b7d)break;else _0x1ac6ca['push'](_0x1ac6ca['shift']());}catch(_0x4e8c1a){_0x1ac6ca['push'](_0x1ac6ca['shift']());}}}(a72_0x3b0a,0x8cfc6));import{productEnv}from'../constant/product.js';function a72_0x3b0a(){const _0x51e752=['266583ITsAZd','1997048uMHvMR','3904LbLYBc','development','5310KoSfCa','13205630WLZddw','7847812KiQldL','dev','daily','production','28XDMFfm','583820WViWxL','435rLFjpY','online','78588ZLdEHe'];a72_0x3b0a=function(){return _0x51e752;};return a72_0x3b0a();}function a72_0x1848(_0x176cda,_0x469cf8){_0x176cda=_0x176cda-0xe0;const _0x3b0a9b=a72_0x3b0a();let _0x18481a=_0x3b0a9b[_0x176cda];return _0x18481a;}export const RUNTIME_ENV_VALUES=['production',a72_0x310f2d(0xe9),a72_0x310f2d(0xee)];export function normalizeEnv(_0x3fed90){const _0x36a94a=a72_0x310f2d;return _0x3fed90===_0x36a94a(0xe4)?'production':_0x3fed90;}export function isProduction(_0x2b1b6e){const _0x27a69e=a72_0x310f2d;return normalizeEnv(_0x2b1b6e)===_0x27a69e(0xe0);}export function isDaily(_0xb0b014){const _0x464bfc=a72_0x310f2d;return normalizeEnv(_0xb0b014)===_0x464bfc(0xee);}export function isDev(_0x2e1a11){const _0xa2c70c=a72_0x310f2d,_0x2bc150=normalizeEnv(_0x2e1a11);return _0x2bc150===_0xa2c70c(0xe9)||_0x2bc150===_0xa2c70c(0xed);}let env=normalizeEnv(productEnv('ENV')||a72_0x310f2d(0xe0));export function getEnv(){return env;}export function initEnv(_0x38e688){env=normalizeEnv(_0x38e688);}
1
+ const a72_0x3d009e=a72_0x4711;(function(_0x35c313,_0x44f414){const _0x4289b4=a72_0x4711,_0x524ea4=_0x35c313();while(!![]){try{const _0x5389c3=-parseInt(_0x4289b4(0x1a7))/0x1+-parseInt(_0x4289b4(0x1ac))/0x2+parseInt(_0x4289b4(0x1af))/0x3*(-parseInt(_0x4289b4(0x1a1))/0x4)+-parseInt(_0x4289b4(0x1a2))/0x5*(-parseInt(_0x4289b4(0x1a0))/0x6)+-parseInt(_0x4289b4(0x1a8))/0x7*(-parseInt(_0x4289b4(0x1b0))/0x8)+parseInt(_0x4289b4(0x1a6))/0x9*(parseInt(_0x4289b4(0x1ad))/0xa)+parseInt(_0x4289b4(0x1ae))/0xb;if(_0x5389c3===_0x44f414)break;else _0x524ea4['push'](_0x524ea4['shift']());}catch(_0x3d85ec){_0x524ea4['push'](_0x524ea4['shift']());}}}(a72_0x38bd,0x3d73b));function a72_0x38bd(){const _0x38de8b=['489749QosJZu','89488PNCdxb','production','development','online','25140MqxfwA','1510FROHBD','4974992Ddtfjy','200211ITIqfy','168MGFtxA','7926RbZSIS','12wweIel','410FPoFHe','dev','daily','ENV','7461UXcYWD'];a72_0x38bd=function(){return _0x38de8b;};return a72_0x38bd();}import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a72_0x3d009e(0x1a9),a72_0x3d009e(0x1aa),a72_0x3d009e(0x1a4)];function a72_0x4711(_0x4c8458,_0x253371){_0x4c8458=_0x4c8458-0x1a0;const _0x38bd87=a72_0x38bd();let _0x47116c=_0x38bd87[_0x4c8458];return _0x47116c;}export function normalizeEnv(_0xd156bf){const _0x59b494=a72_0x3d009e;return _0xd156bf===_0x59b494(0x1ab)?_0x59b494(0x1a9):_0xd156bf;}export function isProduction(_0x35198a){const _0x16c428=a72_0x3d009e;return normalizeEnv(_0x35198a)===_0x16c428(0x1a9);}export function isDaily(_0x5e26a7){const _0x32b304=a72_0x3d009e;return normalizeEnv(_0x5e26a7)===_0x32b304(0x1a4);}export function isDev(_0x41c9c8){const _0x5b2f86=a72_0x3d009e,_0x54d3de=normalizeEnv(_0x41c9c8);return _0x54d3de==='development'||_0x54d3de===_0x5b2f86(0x1a3);}let env=normalizeEnv(productEnv(a72_0x3d009e(0x1a5))||a72_0x3d009e(0x1a9));export function getEnv(){return env;}export function initEnv(_0x1a4327){env=normalizeEnv(_0x1a4327);}
@@ -1 +1 @@
1
- function a73_0x36bd(_0x495541,_0x1db076){_0x495541=_0x495541-0x18e;const _0x317623=a73_0x3176();let _0x36bd9e=_0x317623[_0x495541];return _0x36bd9e;}function a73_0x3176(){const _0x2c125d=['465450CeriHB','3slVdij','1109545qtxcjZ','6HAZlsu','pretty','compress','84136oVhYUJ','1337013tFUUND','285157tNmhse','496880TAgUGe','157514lxlYGe'];a73_0x3176=function(){return _0x2c125d;};return a73_0x3176();}const a73_0x565e1c=a73_0x36bd;(function(_0x12c57d,_0x5020de){const _0x45eb35=a73_0x36bd,_0x5c6adf=_0x12c57d();while(!![]){try{const _0x43b748=parseInt(_0x45eb35(0x194))/0x1+-parseInt(_0x45eb35(0x197))/0x2+-parseInt(_0x45eb35(0x198))/0x3*(parseInt(_0x45eb35(0x192))/0x4)+parseInt(_0x45eb35(0x18e))/0x5+parseInt(_0x45eb35(0x18f))/0x6*(-parseInt(_0x45eb35(0x196))/0x7)+parseInt(_0x45eb35(0x195))/0x8+-parseInt(_0x45eb35(0x193))/0x9;if(_0x43b748===_0x5020de)break;else _0x5c6adf['push'](_0x5c6adf['shift']());}catch(_0x4ae1aa){_0x5c6adf['push'](_0x5c6adf['shift']());}}}(a73_0x3176,0x233e6));export const OUTPUT_FORMAT_VALUES=['json',a73_0x565e1c(0x190),a73_0x565e1c(0x191)];
1
+ const a73_0x2100e8=a73_0x287e;function a73_0x287e(_0x24d31e,_0xef19dd){_0x24d31e=_0x24d31e-0xbd;const _0x40b1f1=a73_0x40b1();let _0x287e18=_0x40b1f1[_0x24d31e];return _0x287e18;}(function(_0xce0e1d,_0x3d61ac){const _0x3e049e=a73_0x287e,_0x4f4449=_0xce0e1d();while(!![]){try{const _0x3525d1=parseInt(_0x3e049e(0xc9))/0x1+parseInt(_0x3e049e(0xc8))/0x2+-parseInt(_0x3e049e(0xc7))/0x3*(-parseInt(_0x3e049e(0xbe))/0x4)+-parseInt(_0x3e049e(0xc0))/0x5*(parseInt(_0x3e049e(0xbd))/0x6)+parseInt(_0x3e049e(0xc1))/0x7+-parseInt(_0x3e049e(0xc3))/0x8*(parseInt(_0x3e049e(0xbf))/0x9)+-parseInt(_0x3e049e(0xc6))/0xa*(parseInt(_0x3e049e(0xc2))/0xb);if(_0x3525d1===_0x3d61ac)break;else _0x4f4449['push'](_0x4f4449['shift']());}catch(_0x16495f){_0x4f4449['push'](_0x4f4449['shift']());}}}(a73_0x40b1,0xb3457));function a73_0x40b1(){const _0x2ef447=['4268308DAhfUw','1328kmhFzb','pretty','json','40BJtOHQ','15OeQqIv','2172038gGUfdk','466666LDTkbQ','45132odZpBz','101168CdUReD','882mukJwT','485JDKxWk','9472148YfemHy'];a73_0x40b1=function(){return _0x2ef447;};return a73_0x40b1();}export const OUTPUT_FORMAT_VALUES=[a73_0x2100e8(0xc5),a73_0x2100e8(0xc4),'compress'];
@@ -1 +1 @@
1
- function a74_0x247e(_0x531147,_0x37169d){_0x531147=_0x531147-0x6c;const _0x623628=a74_0x6236();let _0x247eae=_0x623628[_0x531147];return _0x247eae;}const a74_0x533cd4=a74_0x247e;(function(_0x2890e5,_0x583937){const _0x25e961=a74_0x247e,_0x4c4b5c=_0x2890e5();while(!![]){try{const _0x348ea2=-parseInt(_0x25e961(0x86))/0x1*(-parseInt(_0x25e961(0x7e))/0x2)+-parseInt(_0x25e961(0x72))/0x3*(parseInt(_0x25e961(0x78))/0x4)+parseInt(_0x25e961(0x7a))/0x5+parseInt(_0x25e961(0x71))/0x6*(-parseInt(_0x25e961(0x6c))/0x7)+-parseInt(_0x25e961(0x73))/0x8+parseInt(_0x25e961(0x6e))/0x9*(-parseInt(_0x25e961(0x7b))/0xa)+-parseInt(_0x25e961(0x82))/0xb*(-parseInt(_0x25e961(0x6f))/0xc);if(_0x348ea2===_0x583937)break;else _0x4c4b5c['push'](_0x4c4b5c['shift']());}catch(_0x3e4244){_0x4c4b5c['push'](_0x4c4b5c['shift']());}}}(a74_0x6236,0x499d7));function a74_0x6236(){const _0x5cc2ba=['RABETBASE','1352232PaWfFE','75PrWgRz','446752LvXjRi','https://user-daily.lovrabet.com','https://user.lovrabet.com','lovrabet','.lovrabet-runtime.log','14860dgTlgP','map','2303895QzVPHc','80XbKJzD','https://runtime.lovrabet.com','https://daily-runtime.lovrabet.com','27422QRUAgK','LOVRABET','envPrefix','/user/ak','1292126mQjoZt','https://api.lovrabet.com','.lovrabet.json','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','3oTQqOV','cli:lovrabet-runtime','Lovrabet\x20Runtime\x20CLI','14pZeMJm','https://registry.npmjs.org','476082VgUIFX','84NxQvPu'];a74_0x6236=function(){return _0x5cc2ba;};return a74_0x6236();}export const PRODUCT_CONFIG={'cliBinName':a74_0x533cd4(0x76),'cliDisplayName':a74_0x533cd4(0x88),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':'lovrabet/lovrabet-cli','internalSkillSource':a74_0x533cd4(0x85),'globalSkillName':a74_0x533cd4(0x76),'npmRegistryBaseUrl':a74_0x533cd4(0x6d),'envPrefix':a74_0x533cd4(0x7f),'legacyEnvPrefixes':[a74_0x533cd4(0x70)],'configFileNames':[a74_0x533cd4(0x84),'.lovrabetrc'],'newConfigFileName':'.lovrabet.json','homeDirName':'.lovrabet','logFileName':a74_0x533cd4(0x77),'invokeSource':a74_0x533cd4(0x87),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':a74_0x533cd4(0x75),'api':a74_0x533cd4(0x83),'runtime':a74_0x533cd4(0x7c),'skillhub':'https://skills.lovrabet.com'},'nonProduction':{'user':a74_0x533cd4(0x74),'api':'https://daily-api.lovrabet.com','runtime':a74_0x533cd4(0x7d),'skillhub':'https://skills-daily.lovrabet.com'}},'accessKeyCreatePath':a74_0x533cd4(0x81)};export function productEnvName(_0x556fc3){const _0x37bbd1=a74_0x533cd4;return PRODUCT_CONFIG[_0x37bbd1(0x80)]+'_'+_0x556fc3;}export function productEnvNames(_0x2457e4){const _0x312c7d=a74_0x533cd4;return[productEnvName(_0x2457e4),...PRODUCT_CONFIG['legacyEnvPrefixes'][_0x312c7d(0x79)](_0x2a1dca=>_0x2a1dca+'_'+_0x2457e4)];}export function productEnv(_0x41e02f){for(const _0x5e4cd6 of productEnvNames(_0x41e02f)){const _0x12af70=process.env[_0x5e4cd6];if(_0x12af70!==undefined)return _0x12af70;}return undefined;}
1
+ const a74_0x3f6ab5=a74_0x41eb;function a74_0x41eb(_0x34fbe0,_0x2e1c63){_0x34fbe0=_0x34fbe0-0xbc;const _0x46e060=a74_0x46e0();let _0x41eb1e=_0x46e060[_0x34fbe0];return _0x41eb1e;}(function(_0x1c0c87,_0x21af29){const _0x5e7fd2=a74_0x41eb,_0x682dec=_0x1c0c87();while(!![]){try{const _0x48bc07=-parseInt(_0x5e7fd2(0xd3))/0x1+-parseInt(_0x5e7fd2(0xc7))/0x2+-parseInt(_0x5e7fd2(0xce))/0x3+parseInt(_0x5e7fd2(0xbf))/0x4*(-parseInt(_0x5e7fd2(0xc0))/0x5)+-parseInt(_0x5e7fd2(0xc6))/0x6*(parseInt(_0x5e7fd2(0xc8))/0x7)+-parseInt(_0x5e7fd2(0xcf))/0x8+-parseInt(_0x5e7fd2(0xcb))/0x9*(-parseInt(_0x5e7fd2(0xd6))/0xa);if(_0x48bc07===_0x21af29)break;else _0x682dec['push'](_0x682dec['shift']());}catch(_0x2a07af){_0x682dec['push'](_0x682dec['shift']());}}}(a74_0x46e0,0x666c4));function a74_0x46e0(){const _0x33d05b=['SKIP_NPX_SKILLS','https://daily-runtime.lovrabet.com','.lovrabet','legacyEnvPrefixes','LOVRABET','1297004tyjZYk','5bEWcvb','https://user.lovrabet.com','https://skills.lovrabet.com','map','https://registry.npmjs.org','Lovrabet\x20User\x20Center','66KIEFJd','1484780JeuxyM','237545lRObaN','.lovrabet.json','RABETBASE','31287807bVUUro','https://api.lovrabet.com','https://daily-api.lovrabet.com','2050479vLnDoi','6242832VBVDho','https://user-daily.lovrabet.com','.lovrabetrc','lovrabet/lovrabet-cli','153126QhNsOv','cli:lovrabet-runtime','https://skills-daily.lovrabet.com','10CaoBBM','https://runtime.lovrabet.com'];a74_0x46e0=function(){return _0x33d05b;};return a74_0x46e0();}export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':'@lovrabet/lovrabet-cli','skillSource':a74_0x3f6ab5(0xd2),'internalSkillSource':'git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','globalSkillName':'lovrabet','npmRegistryBaseUrl':a74_0x3f6ab5(0xc4),'envPrefix':a74_0x3f6ab5(0xbe),'legacyEnvPrefixes':[a74_0x3f6ab5(0xca)],'configFileNames':[a74_0x3f6ab5(0xc9),a74_0x3f6ab5(0xd1)],'newConfigFileName':'.lovrabet.json','homeDirName':a74_0x3f6ab5(0xbc),'logFileName':'.lovrabet-runtime.log','invokeSource':a74_0x3f6ab5(0xd4),'userCenterDisplayName':a74_0x3f6ab5(0xc5),'skipNpxSkillsEnvSuffix':a74_0x3f6ab5(0xd8),'domains':{'production':{'user':a74_0x3f6ab5(0xc1),'api':a74_0x3f6ab5(0xcc),'runtime':a74_0x3f6ab5(0xd7),'skillhub':a74_0x3f6ab5(0xc2)},'nonProduction':{'user':a74_0x3f6ab5(0xd0),'api':a74_0x3f6ab5(0xcd),'runtime':a74_0x3f6ab5(0xd9),'skillhub':a74_0x3f6ab5(0xd5)}},'accessKeyCreatePath':'/user/ak'};export function productEnvName(_0x916d6f){return PRODUCT_CONFIG['envPrefix']+'_'+_0x916d6f;}export function productEnvNames(_0x25747a){const _0x3b8909=a74_0x3f6ab5;return[productEnvName(_0x25747a),...PRODUCT_CONFIG[_0x3b8909(0xbd)][_0x3b8909(0xc3)](_0x5bb526=>_0x5bb526+'_'+_0x25747a)];}export function productEnv(_0x138161){for(const _0x11fc12 of productEnvNames(_0x138161)){const _0x4d3ef4=process.env[_0x11fc12];if(_0x4d3ef4!==undefined)return _0x4d3ef4;}return undefined;}
@@ -1 +1 @@
1
- function a75_0x2bd0(){const _0x5072e1=['42VILQwX','1018iLTWKR','14012120AMGrue','430YmWvlt','write','5823EBycNx','302600xofLRl','1374149DULiBE','31716223CBQdBf','high-risk-write','1960368SaFRjD','54588sGElcX','189WqdJTn'];a75_0x2bd0=function(){return _0x5072e1;};return a75_0x2bd0();}const a75_0x55bf28=a75_0x2e2c;function a75_0x2e2c(_0x2e996e,_0x5baa29){_0x2e996e=_0x2e996e-0x120;const _0x2bd051=a75_0x2bd0();let _0x2e2cd6=_0x2bd051[_0x2e996e];return _0x2e2cd6;}(function(_0x2d1276,_0x3b4a08){const _0x35228a=a75_0x2e2c,_0x4be16d=_0x2d1276();while(!![]){try{const _0x5381ff=parseInt(_0x35228a(0x127))/0x1+-parseInt(_0x35228a(0x12b))/0x2*(-parseInt(_0x35228a(0x122))/0x3)+parseInt(_0x35228a(0x128))/0x4*(parseInt(_0x35228a(0x120))/0x5)+parseInt(_0x35228a(0x12a))/0x6*(-parseInt(_0x35228a(0x124))/0x7)+parseInt(_0x35228a(0x12c))/0x8+parseInt(_0x35228a(0x129))/0x9*(-parseInt(_0x35228a(0x123))/0xa)+-parseInt(_0x35228a(0x125))/0xb;if(_0x5381ff===_0x3b4a08)break;else _0x4be16d['push'](_0x4be16d['shift']());}catch(_0x5a1a75){_0x4be16d['push'](_0x4be16d['shift']());}}}(a75_0x2bd0,0xef670));export const RISK_LEVEL_VALUES=['read',a75_0x55bf28(0x121),a75_0x55bf28(0x126)];
1
+ function a75_0x2903(){const _0x509399=['2175200AVBDRl','3vatbuu','5795408lmHXao','4GZDsCf','1292932sspkCF','404068hEDkag','write','4149Ggjjac','28060zJtUPn','30433161PRRaDI','126pJSdaT','386213LPYEXP'];a75_0x2903=function(){return _0x509399;};return a75_0x2903();}const a75_0x1b9c8b=a75_0x73ce;(function(_0x37303c,_0xaf906e){const _0x453101=a75_0x73ce,_0x11d04e=_0x37303c();while(!![]){try{const _0x34b6c0=parseInt(_0x453101(0x9b))/0x1*(-parseInt(_0x453101(0x93))/0x2)+-parseInt(_0x453101(0x9d))/0x3*(-parseInt(_0x453101(0x94))/0x4)+parseInt(_0x453101(0x9c))/0x5+-parseInt(_0x453101(0x9a))/0x6*(parseInt(_0x453101(0x95))/0x7)+parseInt(_0x453101(0x92))/0x8+-parseInt(_0x453101(0x97))/0x9*(parseInt(_0x453101(0x98))/0xa)+parseInt(_0x453101(0x99))/0xb;if(_0x34b6c0===_0xaf906e)break;else _0x11d04e['push'](_0x11d04e['shift']());}catch(_0x40b6f5){_0x11d04e['push'](_0x11d04e['shift']());}}}(a75_0x2903,0xed192));function a75_0x73ce(_0x4c7183,_0x302fde){_0x4c7183=_0x4c7183-0x92;const _0x2903fc=a75_0x2903();let _0x73ce99=_0x2903fc[_0x4c7183];return _0x73ce99;}export const RISK_LEVEL_VALUES=['read',a75_0x1b9c8b(0x96),'high-risk-write'];
@@ -1 +1 @@
1
- const a76_0x11ecd2=a76_0x2fff;function a76_0x2fff(_0x2ace68,_0x26d4b7){_0x2ace68=_0x2ace68-0x191;const _0x274113=a76_0x2741();let _0x2fff68=_0x274113[_0x2ace68];return _0x2fff68;}(function(_0x191fb8,_0x133481){const _0x22be34=a76_0x2fff,_0x557838=_0x191fb8();while(!![]){try{const _0x5a2779=-parseInt(_0x22be34(0x19d))/0x1*(parseInt(_0x22be34(0x191))/0x2)+parseInt(_0x22be34(0x197))/0x3*(-parseInt(_0x22be34(0x1a0))/0x4)+-parseInt(_0x22be34(0x19e))/0x5*(parseInt(_0x22be34(0x193))/0x6)+-parseInt(_0x22be34(0x19b))/0x7+parseInt(_0x22be34(0x199))/0x8+-parseInt(_0x22be34(0x19f))/0x9*(parseInt(_0x22be34(0x198))/0xa)+-parseInt(_0x22be34(0x195))/0xb*(-parseInt(_0x22be34(0x19c))/0xc);if(_0x5a2779===_0x133481)break;else _0x557838['push'](_0x557838['shift']());}catch(_0x17b9c7){_0x557838['push'](_0x557838['shift']());}}}(a76_0x2741,0x3abdb));import{PRODUCT_CONFIG}from'../constant/product.js';function a76_0x2741(){const _0x1de26e=['domains','258jIFaWK','user','69883phMExy','production','3XBzzcD','27660wZZaTe','3121424kgKfXu','accessKeyCreatePath','1997793kSxcqT','1776hfrEwl','3833bUcYkw','15395QPblHu','666JFCFLe','1056760uGYWtl','106TUcAIw'];a76_0x2741=function(){return _0x1de26e;};return a76_0x2741();}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a76_0x11ecd2(0x192)][a76_0x11ecd2(0x196)][a76_0x11ecd2(0x194)]+PRODUCT_CONFIG[a76_0x11ecd2(0x19a)];
1
+ function a76_0x1ea1(_0x48d9de,_0x32a415){_0x48d9de=_0x48d9de-0x178;const _0xd224bb=a76_0xd224();let _0x1ea1dc=_0xd224bb[_0x48d9de];return _0x1ea1dc;}const a76_0x225386=a76_0x1ea1;(function(_0x30f547,_0x51074c){const _0x571cfb=a76_0x1ea1,_0x2503bc=_0x30f547();while(!![]){try{const _0xd5bd17=-parseInt(_0x571cfb(0x183))/0x1*(-parseInt(_0x571cfb(0x179))/0x2)+-parseInt(_0x571cfb(0x178))/0x3+parseInt(_0x571cfb(0x182))/0x4+parseInt(_0x571cfb(0x184))/0x5+-parseInt(_0x571cfb(0x17c))/0x6+-parseInt(_0x571cfb(0x17b))/0x7*(parseInt(_0x571cfb(0x17f))/0x8)+-parseInt(_0x571cfb(0x17d))/0x9;if(_0xd5bd17===_0x51074c)break;else _0x2503bc['push'](_0x2503bc['shift']());}catch(_0x4967fe){_0x2503bc['push'](_0x2503bc['shift']());}}}(a76_0xd224,0xe919c));function a76_0xd224(){const _0xe54990=['10474209dcFwrb','domains','507112ShZcZP','accessKeyCreatePath','production','3422296bPaEpN','23VCXsCs','4265810WUQDQc','36204ljanIZ','84430asAtTv','user','7HCdaIw','2913858kZFpJO'];a76_0xd224=function(){return _0xe54990;};return a76_0xd224();}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a76_0x225386(0x17e)][a76_0x225386(0x181)][a76_0x225386(0x17a)]+PRODUCT_CONFIG[a76_0x225386(0x180)];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a77_0x56e95f=a77_0x1ce2;(function(_0x5351f0,_0x24fe41){const _0x5bdd1c=a77_0x1ce2,_0x5657fc=_0x5351f0();while(!![]){try{const _0xa5523c=-parseInt(_0x5bdd1c(0x10a))/0x1*(-parseInt(_0x5bdd1c(0x109))/0x2)+parseInt(_0x5bdd1c(0x10b))/0x3*(-parseInt(_0x5bdd1c(0x126))/0x4)+-parseInt(_0x5bdd1c(0x12e))/0x5+parseInt(_0x5bdd1c(0xf2))/0x6+-parseInt(_0x5bdd1c(0x11e))/0x7+parseInt(_0x5bdd1c(0x11f))/0x8+parseInt(_0x5bdd1c(0x112))/0x9;if(_0xa5523c===_0x24fe41)break;else _0x5657fc['push'](_0x5657fc['shift']());}catch(_0x2af89c){_0x5657fc['push'](_0x5657fc['shift']());}}}(a77_0x1c12,0xe5b62));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a77_0x1c12(){const _0x1381e9=['PAGE_SIZE','6646692hmONFS','setRawMode','setRawCommand','development','.tmp','riskLevel','isRaw','code','ACCESS_KEY','global','locale','production','maxRisk','stringify','slice','apiDomain','true','nonInteractive','string','raw','APP','trim','userDomain','546628SdjIMv','1NTEwTg','5433OGvaOC','apps','EXDEV','missing','parse','online','isTTY','17683353hwtPGH','values','defaultApp','skillHubDomain','env','projectConfig','app','argv','top-level','error','empty','read','10086013ptKLFS','6579448cIZlck','join','pageSize','object','FORMAT','VERBOSE','inherit','892mWkVvn','cache','stdin','EACCES','./constant/domain.js','globalConfig','utf8','newConfigFileName','6913670NmAHRy','cwd','some','accessKey','local-alias','project','appcode','format','explicit','daily','runtimeDomain','configFileNames'];a77_0x1c12=function(){return _0x1381e9;};return a77_0x1c12();}import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a77_0x56e95f(0x139)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a77_0x56e95f(0x12d)];function resolveConfigPath(_0x4d2fe3){for(const _0xffd025 of CONFIG_NAMES){const _0x575bac=resolve(_0x4d2fe3,_0xffd025);if(existsSync(_0x575bac))return _0x575bac;}return undefined;}export function resolveWriteConfigPath(_0x5856d0){const _0x24e411=a77_0x56e95f,_0x226f74=_0x5856d0===_0x24e411(0x133)?process['cwd']():homedir(),_0x3a0176=resolveConfigPath(_0x226f74);return _0x3a0176??resolve(_0x226f74,NEW_CONFIG_NAME);}export function readConfigFile(_0x600282){const _0x5da2f9=a77_0x56e95f;try{if(existsSync(_0x600282)){const _0x21587a=readFileSync(_0x600282,{'encoding':_0x5da2f9(0x12c)});if(_0x21587a){const _0x5971dd=JSON[_0x5da2f9(0x10f)](_0x21587a);return migrateOnlineEnv(_0x600282,_0x5971dd),_0x5971dd;}}}catch{}return{};}function migrateOnlineEnv(_0x4413e9,_0x21c4b9){const _0x2c99c1=a77_0x56e95f;let _0x3e4d9b=![];_0x21c4b9[_0x2c99c1(0x116)]==='online'&&(_0x21c4b9[_0x2c99c1(0x116)]=_0x2c99c1(0xfd),_0x3e4d9b=!![]);if(_0x21c4b9['apps']&&typeof _0x21c4b9[_0x2c99c1(0x10c)]===_0x2c99c1(0x122))for(const _0x1d5131 of Object[_0x2c99c1(0x113)](_0x21c4b9['apps'])){_0x1d5131&&_0x1d5131['env']===_0x2c99c1(0x110)&&(_0x1d5131[_0x2c99c1(0x116)]=_0x2c99c1(0xfd),_0x3e4d9b=!![]);}if(_0x3e4d9b)try{writeConfigFile(_0x4413e9,_0x21c4b9);}catch{}}export function writeConfigFile(_0x3aed56,_0x4b5722){const _0x2279aa=a77_0x56e95f,_0x28783a=dirname(_0x3aed56);!existsSync(_0x28783a)&&mkdirSync(_0x28783a,{'recursive':!![]});const _0xf1a298=_0x3aed56+_0x2279aa(0xf6);try{writeFileSync(_0xf1a298,JSON[_0x2279aa(0xff)](_0x4b5722,null,0x2)+'\x0a',{'encoding':_0x2279aa(0x12c),'mode':0x180});try{renameSync(_0xf1a298,_0x3aed56);}catch(_0x222371){if(_0x222371[_0x2279aa(0xf9)]==='EPERM'||_0x222371[_0x2279aa(0xf9)]===_0x2279aa(0x10d)||_0x222371['code']===_0x2279aa(0x129)){writeFileSync(_0x3aed56,JSON[_0x2279aa(0xff)](_0x4b5722,null,0x2)+'\x0a',{'encoding':_0x2279aa(0x12c)});try{unlinkSync(_0xf1a298);}catch{}}else throw _0x222371;}}catch(_0x53c70c){try{unlinkSync(_0xf1a298);}catch{}throw _0x53c70c;}}export function isNonInteractiveMode(_0x218ce3){const _0x74c22e=a77_0x56e95f;return!!(_0x218ce3[_0x74c22e(0x103)]||_0x218ce3['ci']||productEnvNames('CI')[_0x74c22e(0x130)](_0x435bfe=>process.env[_0x435bfe]===_0x74c22e(0x102))||process.env.CI===_0x74c22e(0x102)||!process['stdout'][_0x74c22e(0x111)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0xf478ca=a77_0x56e95f;if(!process[_0xf478ca(0x128)][_0xf478ca(0x111)])return![];try{const _0x50c3a4=process[_0xf478ca(0x128)][_0xf478ca(0xf8)];return process[_0xf478ca(0x128)][_0xf478ca(0xf3)](!![]),process[_0xf478ca(0x128)]['setRawMode'](_0x50c3a4??![]),!![];}catch{return![];}}function a77_0x1ce2(_0x3d21e9,_0x92f3c){_0x3d21e9=_0x3d21e9-0xf2;const _0x1c1208=a77_0x1c12();let _0x1ce2e8=_0x1c1208[_0x3d21e9];return _0x1ce2e8;}export async function createContext(_0x241c78){const _0x3f6115=a77_0x56e95f,_0x58f1b6=readRawConfig(),_0x5588c4=buildConfig(_0x58f1b6,_0x241c78);await initGlobalEnvironment(_0x5588c4);const {getUserDomain:_0x5e2662,getApiDomain:_0x1a47e8}=await import(_0x3f6115(0x12a)),_0x3ef61e={'apiDomain':_0x1a47e8(),'userDomain':_0x5e2662()},_0x23a1f4=await buildAuth(_0x5588c4);logger['setLogPath'](process[_0x3f6115(0x12f)]());const _0x433466=(CLI_BIN_NAME+'\x20'+process[_0x3f6115(0x119)][_0x3f6115(0x100)](0x2)[_0x3f6115(0x120)]('\x20'))[_0x3f6115(0x107)]();logger[_0x3f6115(0xf4)](_0x433466);const _0x4498fd=isNonInteractiveMode(_0x241c78);return{'config':_0x5588c4,'auth':_0x23a1f4,'logger':logger,'env':_0x3ef61e,'nonInteractive':_0x4498fd};}export function buildConfigFromFlags(_0x5e3caa){return buildConfig(readRawConfig(),_0x5e3caa);}export function getLocalAppAliases(_0x9327fc){const _0x441151=a77_0x56e95f;return _0x9327fc[_0x441151(0x10c)]&&typeof _0x9327fc['apps']===_0x441151(0x122)?_0x9327fc[_0x441151(0x10c)]:{};}export function resolveLocalAppAliasCode(_0x42d826,_0x39cb12){const _0xc5232=a77_0x56e95f;if(!_0x39cb12)return undefined;const _0x21f6e1=getLocalAppAliases(_0x42d826)[_0x39cb12],_0x236721=_0x21f6e1?.[_0xc5232(0x134)];return typeof _0x236721==='string'&&_0x236721[_0xc5232(0x107)]()?_0x236721[_0xc5232(0x107)]():undefined;}export function readAppCodeFromConfig(){const _0x167f09=a77_0x56e95f,_0x544728=readRawConfig(),_0x37b1ab=_0x544728[_0x167f09(0x134)]??_0x544728[_0x167f09(0x118)];if(typeof _0x37b1ab===_0x167f09(0x104)&&_0x37b1ab[_0x167f09(0x107)]())return _0x37b1ab['trim']();const _0x2e9fc1=resolveLocalAppAliasCode(_0x544728,typeof _0x544728[_0x167f09(0x114)]==='string'?_0x544728['defaultApp']:undefined);if(_0x2e9fc1)return _0x2e9fc1;const _0x2379cd=normalizeEnv(String(_0x544728[_0x167f09(0x116)]||_0x167f09(0xfd))),_0x34c1f3=isDaily(_0x2379cd)?_0x167f09(0x137):isDev(_0x2379cd)?_0x167f09(0xf5):_0x167f09(0xfd),_0x7f86f9=resolveCachedAppCode(typeof _0x544728[_0x167f09(0x114)]===_0x167f09(0x104)?_0x544728[_0x167f09(0x114)]:undefined,_0x34c1f3,typeof _0x544728['accessKey']===_0x167f09(0x104)?_0x544728[_0x167f09(0x131)]:undefined);if(_0x7f86f9)return _0x7f86f9;const _0x1b5bfe=Object[_0x167f09(0x113)](getLocalAppAliases(_0x544728))['find'](_0x2ec47f=>_0x2ec47f?.[_0x167f09(0x134)]);return typeof _0x1b5bfe?.[_0x167f09(0x134)]===_0x167f09(0x104)&&_0x1b5bfe[_0x167f09(0x134)]['trim']()?_0x1b5bfe[_0x167f09(0x134)][_0x167f09(0x107)]():undefined;}export function readScopedConfig(_0xe6029){const _0x143f7b=_0xe6029['global']?'global':'project';return readConfigFile(resolveWriteConfigPath(_0x143f7b));}export function writeScopedConfig(_0x154807,_0x30b187){const _0x30601d=a77_0x56e95f,_0x392a23=_0x30b187[_0x30601d(0xfb)]?'global':_0x30601d(0x133);writeConfigFile(resolveWriteConfigPath(_0x392a23),_0x154807);}export async function initGlobalEnvironment(_0x3288ef){const _0x5b767f=a77_0x56e95f,{initEnv:_0x5884aa}=await import('./constant/env.js');_0x5884aa(_0x3288ef[_0x5b767f(0x116)]);const {initDomains:_0x3b43b4}=await import(_0x5b767f(0x12a));_0x3b43b4({'apiDomain':_0x3288ef['raw'][_0x5b767f(0x101)]||_0x3288ef['raw']['host']||undefined,'userDomain':_0x3288ef[_0x5b767f(0x105)][_0x5b767f(0x108)]||undefined,'runtimeDomain':_0x3288ef[_0x5b767f(0x105)][_0x5b767f(0x138)]||undefined,'skillHubDomain':_0x3288ef[_0x5b767f(0x105)][_0x5b767f(0x115)]||undefined});}export function getProjectConfigPath(){const _0x3662dc=a77_0x56e95f;return resolveConfigPath(process[_0x3662dc(0x12f)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x266914){const _0x164d33=a77_0x56e95f;if(!existsSync(_0x266914))return{'status':_0x164d33(0x10e)};try{const _0x144371=readFileSync(_0x266914,{'encoding':_0x164d33(0x12c)});if(!_0x144371?.[_0x164d33(0x107)]())return{'status':_0x164d33(0x11c)};const _0xccdd13=JSON[_0x164d33(0x10f)](_0x144371);return{'status':'ok','data':_0xccdd13};}catch(_0x16c364){return{'status':_0x164d33(0x11b),'message':_0x16c364 instanceof Error?_0x16c364['message']:String(_0x16c364)};}}export function loadRawConfigLayers(_0x5f0dfb){const _0x9e7fac=a77_0x56e95f;let _0x4c6d3a={},_0x412662={},_0x319821,_0x5ef336;try{_0x319821=resolveConfigPath(homedir());if(_0x319821){const _0x351941=readFileSync(_0x319821,{'encoding':_0x9e7fac(0x12c)});if(_0x351941)_0x4c6d3a=JSON[_0x9e7fac(0x10f)](_0x351941);}}catch{}try{const _0x1b86db=_0x5f0dfb||process[_0x9e7fac(0x12f)]();_0x5ef336=resolveConfigPath(_0x1b86db);if(_0x5ef336){const _0x7b8147=readFileSync(_0x5ef336,{'encoding':_0x9e7fac(0x12c)});if(_0x7b8147)_0x412662=JSON['parse'](_0x7b8147);}}catch{}return{'globalPath':_0x319821,'projectPath':_0x5ef336,'globalConfig':_0x4c6d3a,'projectConfig':_0x412662};}function mergeRawConfigLayers(_0x1cf10d){const _0x324ce5=a77_0x56e95f,{globalConfig:_0x14c750,projectConfig:_0x414872}=_0x1cf10d;if(_0x414872[_0x324ce5(0x125)]===![]){const _0x44eedb={..._0x414872};return delete _0x44eedb[_0x324ce5(0x125)],_0x44eedb;}const _0x12cb74={..._0x14c750,..._0x414872};if(_0x324ce5(0x114)in _0x414872)_0x12cb74[_0x324ce5(0x114)]=_0x414872['defaultApp'];else _0x14c750[_0x324ce5(0x114)]&&(_0x12cb74['defaultApp']=_0x14c750[_0x324ce5(0x114)]);return _0x12cb74;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x49e6be){return mergeRawConfigLayers(loadRawConfigLayers(_0x49e6be));}export function readRawConfigWithLayers(_0x52acd5){const _0x2d9565=loadRawConfigLayers(_0x52acd5);return{'config':mergeRawConfigLayers(_0x2d9565),'layers':_0x2d9565};}export function resolveDefaultAppSource(_0x3742f1){const _0x325da0=a77_0x56e95f;if('defaultApp'in _0x3742f1[_0x325da0(0x117)])return _0x325da0(0x133);if(_0x3742f1['projectConfig']['inherit']===![])return null;if(_0x3742f1[_0x325da0(0x12b)][_0x325da0(0x114)])return'global';return null;}function buildConfig(_0x4466ee,_0x193bda){const _0x92dcf=a77_0x56e95f,_0x1593de=_0x4466ee['defaultApp']||undefined,_0x41335d=_0x193bda[_0x92dcf(0x118)]||env(_0x92dcf(0x106))||undefined,_0x3cead0=_0x41335d||_0x1593de||undefined,_0x1217cf=env(_0x92dcf(0xfa))||_0x4466ee[_0x92dcf(0x131)]||undefined,_0x3d24e6=_0x193bda['env']||env('ENV')||_0x4466ee[_0x92dcf(0x116)]||DEFAULT_CONFIG_VALUES['env'],_0x37aaf7=normalizeEnv(String(_0x3d24e6)),_0x5460ae=isDaily(_0x37aaf7)?_0x92dcf(0x137):isDev(_0x37aaf7)?'development':_0x92dcf(0xfd),_0x261d11=typeof _0x193bda['appcode']===_0x92dcf(0x104)?_0x193bda[_0x92dcf(0x134)]:undefined,_0x7bd1e0=env('APPCODE'),_0x3cac4b=_0x41335d?undefined:_0x4466ee[_0x92dcf(0x134)]||_0x4466ee['app']||undefined,_0x3cb38f=_0x41335d||(_0x3cac4b?undefined:_0x1593de),_0x53aff3=resolveLocalAppAliasCode(_0x4466ee,_0x3cb38f),_0x617294=resolveCachedAppCode(_0x3cb38f,_0x5460ae,_0x1217cf),_0x2885e2=_0x261d11||_0x7bd1e0||_0x3cac4b||_0x53aff3||_0x617294||undefined,_0x216222=_0x261d11?_0x92dcf(0x136):_0x7bd1e0?_0x92dcf(0x116):_0x3cac4b?_0x92dcf(0x11a):_0x53aff3?_0x92dcf(0x132):_0x617294?_0x92dcf(0x127):undefined,_0x4c521b=_0x4466ee[_0x92dcf(0xfc)]||DEFAULT_CONFIG_VALUES['locale'],_0x3c1d7b=undefined,_0x529e2c=_0x193bda[_0x92dcf(0x135)]||env(_0x92dcf(0x123))||_0x4466ee[_0x92dcf(0x135)],_0x150360=normalizeLegacyOutputFormat(_0x529e2c),_0x1b049a=env(_0x92dcf(0x13a))||_0x4466ee[_0x92dcf(0x121)],_0x4be4ff=_0x1b049a?Number(_0x1b049a)||undefined:undefined,_0x1fe406=_0x4466ee['riskLevel']||_0x4466ee[_0x92dcf(0xfe)],_0x470f07=_0x1fe406===_0x92dcf(0x11d)||_0x1fe406==='write'||_0x1fe406==='high-risk-write'?_0x1fe406:DEFAULT_CONFIG_VALUES[_0x92dcf(0xf7)],_0x11598a=env(_0x92dcf(0x124)),_0x2c65ea=_0x11598a==='1'||_0x11598a===_0x92dcf(0x102);return{'appCode':typeof _0x2885e2==='string'&&_0x2885e2[_0x92dcf(0x107)]()?_0x2885e2[_0x92dcf(0x107)]():undefined,'appCodeSource':_0x216222,'env':_0x5460ae,'locale':_0x4c521b,'cookie':_0x3c1d7b,'accessKey':_0x1217cf,'format':_0x150360,'pageSize':_0x4be4ff,'riskLevel':_0x470f07,'verbose':_0x2c65ea,'defaultApp':_0x1593de,'currentApp':typeof _0x3cead0===_0x92dcf(0x104)?_0x3cead0:undefined,'raw':_0x4466ee};}function env(_0x3c86a8){return productEnv(_0x3c86a8);}async function buildAuth(_0x15329e){const _0x17a0bf='',_0x5f5d2e=!!_0x15329e['accessKey'];return{'cookie':_0x17a0bf,'isLoggedIn':_0x5f5d2e,async 'getOrLogin'(){if(_0x5f5d2e)return _0x17a0bf;throw CliErrors['authRequired']();}};}
1
+ const a77_0x13299d=a77_0x3b8b;(function(_0x44ca44,_0x3f0f44){const _0x3b3ba9=a77_0x3b8b,_0x221d6d=_0x44ca44();while(!![]){try{const _0x4c8bb1=parseInt(_0x3b3ba9(0x198))/0x1+parseInt(_0x3b3ba9(0x15b))/0x2*(parseInt(_0x3b3ba9(0x19b))/0x3)+-parseInt(_0x3b3ba9(0x170))/0x4*(-parseInt(_0x3b3ba9(0x168))/0x5)+-parseInt(_0x3b3ba9(0x171))/0x6+-parseInt(_0x3b3ba9(0x177))/0x7*(-parseInt(_0x3b3ba9(0x17e))/0x8)+-parseInt(_0x3b3ba9(0x16c))/0x9*(-parseInt(_0x3b3ba9(0x190))/0xa)+-parseInt(_0x3b3ba9(0x162))/0xb;if(_0x4c8bb1===_0x3f0f44)break;else _0x221d6d['push'](_0x221d6d['shift']());}catch(_0x16b2fc){_0x221d6d['push'](_0x221d6d['shift']());}}}(a77_0x1bbe,0x87d09));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a77_0x3b8b(_0x4b415c,_0x459c42){_0x4b415c=_0x4b415c-0x154;const _0x1bbe6d=a77_0x1bbe();let _0x3b8b8d=_0x1bbe6d[_0x4b415c];return _0x3b8b8d;}import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';function a77_0x1bbe(){const _0x495686=['development','stringify','empty','16DbxhxJ','154206haMgHD','production','isRaw','./constant/domain.js','EPERM','skillHubDomain','37429wItctd','join','configFileNames','globalConfig','online','defaultApp','accessKey','1352rKIbsP','error','VERBOSE','FORMAT','EACCES','projectConfig','raw','high-risk-write','isTTY','env','project','EXDEV','PAGE_SIZE','slice','runtimeDomain','inherit','cwd','message','10pfhtjw','APP','apiDomain','setLogPath','setRawMode','utf8','format','true','459840pyScYL','write','pageSize','24blwWVf','./constant/env.js','newConfigFileName','riskLevel','setRawCommand','daily','some','locale','trim','apps','app','string','parse','authRequired','nonInteractive','34864ygyrqO','APPCODE','maxRisk','global','code','missing','stdin','21579052bPylTw','local-alias','top-level','userDomain','find','read','1093225GdGvcQ','stdout','appcode','object','1495899CVqZRh'];a77_0x1bbe=function(){return _0x495686;};return a77_0x1bbe();}export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a77_0x13299d(0x179)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a77_0x13299d(0x19d)];function resolveConfigPath(_0x2c8a8c){for(const _0x1d3e20 of CONFIG_NAMES){const _0x22142e=resolve(_0x2c8a8c,_0x1d3e20);if(existsSync(_0x22142e))return _0x22142e;}return undefined;}export function resolveWriteConfigPath(_0x19a461){const _0x50728d=a77_0x13299d,_0x5273ba=_0x19a461==='project'?process[_0x50728d(0x18e)]():homedir(),_0x4873e8=resolveConfigPath(_0x5273ba);return _0x4873e8??resolve(_0x5273ba,NEW_CONFIG_NAME);}export function readConfigFile(_0x50a8b9){const _0x302ecb=a77_0x13299d;try{if(existsSync(_0x50a8b9)){const _0x270aa9=readFileSync(_0x50a8b9,{'encoding':_0x302ecb(0x195)});if(_0x270aa9){const _0x461327=JSON['parse'](_0x270aa9);return migrateOnlineEnv(_0x50a8b9,_0x461327),_0x461327;}}}catch{}return{};}function migrateOnlineEnv(_0x393821,_0x1c61ba){const _0x347aab=a77_0x13299d;let _0x410ce3=![];_0x1c61ba[_0x347aab(0x187)]===_0x347aab(0x17b)&&(_0x1c61ba[_0x347aab(0x187)]=_0x347aab(0x172),_0x410ce3=!![]);if(_0x1c61ba['apps']&&typeof _0x1c61ba[_0x347aab(0x155)]===_0x347aab(0x16b))for(const _0x5664ff of Object['values'](_0x1c61ba[_0x347aab(0x155)])){_0x5664ff&&_0x5664ff[_0x347aab(0x187)]==='online'&&(_0x5664ff['env']=_0x347aab(0x172),_0x410ce3=!![]);}if(_0x410ce3)try{writeConfigFile(_0x393821,_0x1c61ba);}catch{}}export function writeConfigFile(_0x26a85d,_0x306445){const _0x4fdfb5=a77_0x13299d,_0x50903d=dirname(_0x26a85d);!existsSync(_0x50903d)&&mkdirSync(_0x50903d,{'recursive':!![]});const _0x1ad806=_0x26a85d+'.tmp';try{writeFileSync(_0x1ad806,JSON[_0x4fdfb5(0x16e)](_0x306445,null,0x2)+'\x0a',{'encoding':_0x4fdfb5(0x195),'mode':0x180});try{renameSync(_0x1ad806,_0x26a85d);}catch(_0x4d708b){if(_0x4d708b[_0x4fdfb5(0x15f)]===_0x4fdfb5(0x175)||_0x4d708b['code']===_0x4fdfb5(0x189)||_0x4d708b[_0x4fdfb5(0x15f)]===_0x4fdfb5(0x182)){writeFileSync(_0x26a85d,JSON[_0x4fdfb5(0x16e)](_0x306445,null,0x2)+'\x0a',{'encoding':_0x4fdfb5(0x195)});try{unlinkSync(_0x1ad806);}catch{}}else throw _0x4d708b;}}catch(_0x4cf370){try{unlinkSync(_0x1ad806);}catch{}throw _0x4cf370;}}export function isNonInteractiveMode(_0x16bd3f){const _0x5864f4=a77_0x13299d;return!!(_0x16bd3f[_0x5864f4(0x15a)]||_0x16bd3f['ci']||productEnvNames('CI')[_0x5864f4(0x1a1)](_0x57f204=>process.env[_0x57f204]===_0x5864f4(0x197))||process.env.CI===_0x5864f4(0x197)||!process[_0x5864f4(0x169)][_0x5864f4(0x186)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x74d562=a77_0x13299d;if(!process[_0x74d562(0x161)][_0x74d562(0x186)])return![];try{const _0x55e4e9=process[_0x74d562(0x161)][_0x74d562(0x173)];return process[_0x74d562(0x161)][_0x74d562(0x194)](!![]),process[_0x74d562(0x161)][_0x74d562(0x194)](_0x55e4e9??![]),!![];}catch{return![];}}export async function createContext(_0x1f7c61){const _0x30eada=a77_0x13299d,_0x4a9d82=readRawConfig(),_0x7bd6=buildConfig(_0x4a9d82,_0x1f7c61);await initGlobalEnvironment(_0x7bd6);const {getUserDomain:_0x15686d,getApiDomain:_0xf958f8}=await import(_0x30eada(0x174)),_0x31d537={'apiDomain':_0xf958f8(),'userDomain':_0x15686d()},_0x555402=await buildAuth(_0x7bd6);logger[_0x30eada(0x193)](process[_0x30eada(0x18e)]());const _0x2a9742=(CLI_BIN_NAME+'\x20'+process['argv'][_0x30eada(0x18b)](0x2)[_0x30eada(0x178)]('\x20'))[_0x30eada(0x154)]();logger[_0x30eada(0x19f)](_0x2a9742);const _0x174b5c=isNonInteractiveMode(_0x1f7c61);return{'config':_0x7bd6,'auth':_0x555402,'logger':logger,'env':_0x31d537,'nonInteractive':_0x174b5c};}export function buildConfigFromFlags(_0x34b2d1){return buildConfig(readRawConfig(),_0x34b2d1);}export function getLocalAppAliases(_0x22b8e5){const _0xa3735c=a77_0x13299d;return _0x22b8e5[_0xa3735c(0x155)]&&typeof _0x22b8e5[_0xa3735c(0x155)]==='object'?_0x22b8e5[_0xa3735c(0x155)]:{};}export function resolveLocalAppAliasCode(_0x17c226,_0xfb2485){const _0x323398=a77_0x13299d;if(!_0xfb2485)return undefined;const _0x556835=getLocalAppAliases(_0x17c226)[_0xfb2485],_0x143aee=_0x556835?.['appcode'];return typeof _0x143aee===_0x323398(0x157)&&_0x143aee['trim']()?_0x143aee['trim']():undefined;}export function readAppCodeFromConfig(){const _0x31df80=a77_0x13299d,_0x1d79a8=readRawConfig(),_0x2e1328=_0x1d79a8[_0x31df80(0x16a)]??_0x1d79a8[_0x31df80(0x156)];if(typeof _0x2e1328===_0x31df80(0x157)&&_0x2e1328['trim']())return _0x2e1328[_0x31df80(0x154)]();const _0x1b05ef=resolveLocalAppAliasCode(_0x1d79a8,typeof _0x1d79a8[_0x31df80(0x17c)]==='string'?_0x1d79a8[_0x31df80(0x17c)]:undefined);if(_0x1b05ef)return _0x1b05ef;const _0x2ca5b7=normalizeEnv(String(_0x1d79a8[_0x31df80(0x187)]||_0x31df80(0x172))),_0x58d9e8=isDaily(_0x2ca5b7)?'daily':isDev(_0x2ca5b7)?_0x31df80(0x16d):_0x31df80(0x172),_0x4d5a7c=resolveCachedAppCode(typeof _0x1d79a8[_0x31df80(0x17c)]===_0x31df80(0x157)?_0x1d79a8[_0x31df80(0x17c)]:undefined,_0x58d9e8,typeof _0x1d79a8[_0x31df80(0x17d)]===_0x31df80(0x157)?_0x1d79a8[_0x31df80(0x17d)]:undefined);if(_0x4d5a7c)return _0x4d5a7c;const _0x450c08=Object['values'](getLocalAppAliases(_0x1d79a8))[_0x31df80(0x166)](_0x11ba9d=>_0x11ba9d?.['appcode']);return typeof _0x450c08?.[_0x31df80(0x16a)]===_0x31df80(0x157)&&_0x450c08[_0x31df80(0x16a)][_0x31df80(0x154)]()?_0x450c08['appcode'][_0x31df80(0x154)]():undefined;}export function readScopedConfig(_0x347811){const _0x5ba1b7=_0x347811['global']?'global':'project';return readConfigFile(resolveWriteConfigPath(_0x5ba1b7));}export function writeScopedConfig(_0x4edf2e,_0x147c20){const _0x3ef923=a77_0x13299d,_0x230322=_0x147c20[_0x3ef923(0x15e)]?_0x3ef923(0x15e):'project';writeConfigFile(resolveWriteConfigPath(_0x230322),_0x4edf2e);}export async function initGlobalEnvironment(_0x4379c8){const _0xc3645=a77_0x13299d,{initEnv:_0x1dba6b}=await import(_0xc3645(0x19c));_0x1dba6b(_0x4379c8['env']);const {initDomains:_0xb85a53}=await import(_0xc3645(0x174));_0xb85a53({'apiDomain':_0x4379c8[_0xc3645(0x184)][_0xc3645(0x192)]||_0x4379c8[_0xc3645(0x184)]['host']||undefined,'userDomain':_0x4379c8[_0xc3645(0x184)][_0xc3645(0x165)]||undefined,'runtimeDomain':_0x4379c8[_0xc3645(0x184)][_0xc3645(0x18c)]||undefined,'skillHubDomain':_0x4379c8['raw'][_0xc3645(0x176)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x1e064f){const _0x3d8b70=a77_0x13299d;if(!existsSync(_0x1e064f))return{'status':_0x3d8b70(0x160)};try{const _0x320f7c=readFileSync(_0x1e064f,{'encoding':'utf8'});if(!_0x320f7c?.[_0x3d8b70(0x154)]())return{'status':_0x3d8b70(0x16f)};const _0x5b55dd=JSON[_0x3d8b70(0x158)](_0x320f7c);return{'status':'ok','data':_0x5b55dd};}catch(_0x2e9d70){return{'status':_0x3d8b70(0x17f),'message':_0x2e9d70 instanceof Error?_0x2e9d70[_0x3d8b70(0x18f)]:String(_0x2e9d70)};}}export function loadRawConfigLayers(_0x36b825){const _0x32f2f5=a77_0x13299d;let _0x46f314={},_0x2d8946={},_0x53b204,_0x49cb42;try{_0x53b204=resolveConfigPath(homedir());if(_0x53b204){const _0x413a0b=readFileSync(_0x53b204,{'encoding':_0x32f2f5(0x195)});if(_0x413a0b)_0x46f314=JSON['parse'](_0x413a0b);}}catch{}try{const _0x2567b1=_0x36b825||process['cwd']();_0x49cb42=resolveConfigPath(_0x2567b1);if(_0x49cb42){const _0x413808=readFileSync(_0x49cb42,{'encoding':_0x32f2f5(0x195)});if(_0x413808)_0x2d8946=JSON[_0x32f2f5(0x158)](_0x413808);}}catch{}return{'globalPath':_0x53b204,'projectPath':_0x49cb42,'globalConfig':_0x46f314,'projectConfig':_0x2d8946};}function mergeRawConfigLayers(_0x137739){const _0x348c4c=a77_0x13299d,{globalConfig:_0x40217b,projectConfig:_0x108301}=_0x137739;if(_0x108301[_0x348c4c(0x18d)]===![]){const _0x2a3612={..._0x108301};return delete _0x2a3612['inherit'],_0x2a3612;}const _0x530092={..._0x40217b,..._0x108301};if(_0x348c4c(0x17c)in _0x108301)_0x530092[_0x348c4c(0x17c)]=_0x108301[_0x348c4c(0x17c)];else _0x40217b[_0x348c4c(0x17c)]&&(_0x530092['defaultApp']=_0x40217b[_0x348c4c(0x17c)]);return _0x530092;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x434e17){return mergeRawConfigLayers(loadRawConfigLayers(_0x434e17));}export function readRawConfigWithLayers(_0x478f68){const _0x5bfc12=loadRawConfigLayers(_0x478f68);return{'config':mergeRawConfigLayers(_0x5bfc12),'layers':_0x5bfc12};}export function resolveDefaultAppSource(_0x2abff7){const _0x1a04ae=a77_0x13299d;if(_0x1a04ae(0x17c)in _0x2abff7[_0x1a04ae(0x183)])return _0x1a04ae(0x188);if(_0x2abff7[_0x1a04ae(0x183)][_0x1a04ae(0x18d)]===![])return null;if(_0x2abff7[_0x1a04ae(0x17a)][_0x1a04ae(0x17c)])return _0x1a04ae(0x15e);return null;}function buildConfig(_0x1dfbbe,_0x380c41){const _0x5108a3=a77_0x13299d,_0x2fcd5d=_0x1dfbbe['defaultApp']||undefined,_0x3d3d28=_0x380c41[_0x5108a3(0x156)]||env(_0x5108a3(0x191))||undefined,_0x16ad4c=_0x3d3d28||_0x2fcd5d||undefined,_0x33bbcd=env('ACCESS_KEY')||_0x1dfbbe[_0x5108a3(0x17d)]||undefined,_0x433d2e=_0x380c41[_0x5108a3(0x187)]||env('ENV')||_0x1dfbbe[_0x5108a3(0x187)]||DEFAULT_CONFIG_VALUES['env'],_0x13f760=normalizeEnv(String(_0x433d2e)),_0x1d1048=isDaily(_0x13f760)?_0x5108a3(0x1a0):isDev(_0x13f760)?_0x5108a3(0x16d):_0x5108a3(0x172),_0x3733c8=typeof _0x380c41['appcode']===_0x5108a3(0x157)?_0x380c41[_0x5108a3(0x16a)]:undefined,_0x20c2a6=env(_0x5108a3(0x15c)),_0x5219f9=_0x3d3d28?undefined:_0x1dfbbe[_0x5108a3(0x16a)]||_0x1dfbbe[_0x5108a3(0x156)]||undefined,_0x5ddd66=_0x3d3d28||(_0x5219f9?undefined:_0x2fcd5d),_0x2ab942=resolveLocalAppAliasCode(_0x1dfbbe,_0x5ddd66),_0x3e507f=resolveCachedAppCode(_0x5ddd66,_0x1d1048,_0x33bbcd),_0x39d777=_0x3733c8||_0x20c2a6||_0x5219f9||_0x2ab942||_0x3e507f||undefined,_0x13ecf6=_0x3733c8?'explicit':_0x20c2a6?_0x5108a3(0x187):_0x5219f9?_0x5108a3(0x164):_0x2ab942?_0x5108a3(0x163):_0x3e507f?'cache':undefined,_0x3ebee5=_0x1dfbbe['locale']||DEFAULT_CONFIG_VALUES[_0x5108a3(0x1a2)],_0x1f626c=undefined,_0x25b4ef=_0x380c41[_0x5108a3(0x196)]||env(_0x5108a3(0x181))||_0x1dfbbe['format'],_0x228f1d=normalizeLegacyOutputFormat(_0x25b4ef),_0x1a1eef=env(_0x5108a3(0x18a))||_0x1dfbbe[_0x5108a3(0x19a)],_0x23ca1d=_0x1a1eef?Number(_0x1a1eef)||undefined:undefined,_0x42593f=_0x1dfbbe[_0x5108a3(0x19e)]||_0x1dfbbe[_0x5108a3(0x15d)],_0xa6309b=_0x42593f===_0x5108a3(0x167)||_0x42593f===_0x5108a3(0x199)||_0x42593f===_0x5108a3(0x185)?_0x42593f:DEFAULT_CONFIG_VALUES['riskLevel'],_0x3e3408=env(_0x5108a3(0x180)),_0x512c60=_0x3e3408==='1'||_0x3e3408==='true';return{'appCode':typeof _0x39d777===_0x5108a3(0x157)&&_0x39d777[_0x5108a3(0x154)]()?_0x39d777['trim']():undefined,'appCodeSource':_0x13ecf6,'env':_0x1d1048,'locale':_0x3ebee5,'cookie':_0x1f626c,'accessKey':_0x33bbcd,'format':_0x228f1d,'pageSize':_0x23ca1d,'riskLevel':_0xa6309b,'verbose':_0x512c60,'defaultApp':_0x2fcd5d,'currentApp':typeof _0x16ad4c===_0x5108a3(0x157)?_0x16ad4c:undefined,'raw':_0x1dfbbe};}function env(_0x2ace01){return productEnv(_0x2ace01);}async function buildAuth(_0x1e8d63){const _0x432702=a77_0x13299d,_0x37a10f='',_0x34a345=!!_0x1e8d63[_0x432702(0x17d)];return{'cookie':_0x37a10f,'isLoggedIn':_0x34a345,async 'getOrLogin'(){const _0x52a57e=_0x432702;if(_0x34a345)return _0x37a10f;throw CliErrors[_0x52a57e(0x159)]();}};}