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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/notification/config-list.js +1 -1
  36. package/lib/commands/notification/index.js +1 -1
  37. package/lib/commands/notification/shared.js +1 -1
  38. package/lib/commands/ocr/index.js +1 -1
  39. package/lib/commands/permit/dataset-get.js +1 -1
  40. package/lib/commands/permit/dataset-set.js +1 -1
  41. package/lib/commands/permit/index.js +1 -1
  42. package/lib/commands/permit/page-get.js +1 -1
  43. package/lib/commands/permit/page-set.js +1 -1
  44. package/lib/commands/permit/role-menus-set.js +1 -1
  45. package/lib/commands/permit/role-menus.js +1 -1
  46. package/lib/commands/permit/shared.js +1 -1
  47. package/lib/commands/personal-bff/index.js +1 -1
  48. package/lib/commands/registry.js +1 -1
  49. package/lib/commands/role/create.js +1 -1
  50. package/lib/commands/role/delete.js +1 -1
  51. package/lib/commands/role/detail.js +1 -1
  52. package/lib/commands/role/index.js +1 -1
  53. package/lib/commands/role/list.js +1 -1
  54. package/lib/commands/role/shared.js +1 -1
  55. package/lib/commands/role/update.js +1 -1
  56. package/lib/commands/role/user-add.js +1 -1
  57. package/lib/commands/role/user-remove.js +1 -1
  58. package/lib/commands/schedule/index.js +1 -1
  59. package/lib/commands/schema.js +1 -1
  60. package/lib/commands/service/dynamic.js +1 -1
  61. package/lib/commands/service/function-name-adapter.js +1 -1
  62. package/lib/commands/service/index.js +1 -1
  63. package/lib/commands/service/registry.js +1 -1
  64. package/lib/commands/skill/commands/create.js +1 -1
  65. package/lib/commands/skill/commands/diagram.js +1 -1
  66. package/lib/commands/skill/commands/install.js +1 -1
  67. package/lib/commands/skill/commands/list.js +1 -1
  68. package/lib/commands/skill/commands/push.js +1 -1
  69. package/lib/commands/skill/commands/validate.js +1 -1
  70. package/lib/commands/skill/diagram.js +1 -1
  71. package/lib/commands/skill/flags.js +1 -1
  72. package/lib/commands/skill/index.js +1 -1
  73. package/lib/commands/skill/manifest-helpers.js +1 -1
  74. package/lib/commands/skill/push-execute.js +1 -1
  75. package/lib/commands/skill/push-flow-helpers.js +1 -1
  76. package/lib/commands/skill/push-retarget.js +1 -1
  77. package/lib/commands/skill/scopes.js +1 -1
  78. package/lib/commands/skill/summary.js +1 -1
  79. package/lib/commands/skill/templates.js +1 -1
  80. package/lib/commands/skill/validate.js +1 -1
  81. package/lib/commands/sql/detail.js +1 -1
  82. package/lib/commands/sql/exec.js +1 -1
  83. package/lib/commands/sql/index.js +1 -1
  84. package/lib/commands/update.js +1 -1
  85. package/lib/commands/user-account/bind.js +1 -1
  86. package/lib/commands/user-account/index.js +1 -1
  87. package/lib/commands/workspace/index.js +1 -1
  88. package/lib/config/schema.js +1 -1
  89. package/lib/constant/app.js +1 -1
  90. package/lib/constant/auth-mode.js +1 -1
  91. package/lib/constant/cli.js +1 -1
  92. package/lib/constant/defaults.js +1 -1
  93. package/lib/constant/distribution.js +1 -1
  94. package/lib/constant/domain.js +1 -1
  95. package/lib/constant/env.js +1 -1
  96. package/lib/constant/output.js +1 -1
  97. package/lib/constant/product.js +1 -1
  98. package/lib/constant/risk.js +1 -1
  99. package/lib/constant/url.js +1 -1
  100. package/lib/context.js +1 -1
  101. package/lib/core/api-client.js +1 -1
  102. package/lib/core/db-resolver.js +1 -1
  103. package/lib/core/sdk-client.js +1 -1
  104. package/lib/errors.js +1 -1
  105. package/lib/framework/build-all-flags.js +1 -1
  106. package/lib/framework/dryrun.js +1 -1
  107. package/lib/framework/flags.js +1 -1
  108. package/lib/framework/help.js +1 -1
  109. package/lib/framework/index.js +1 -1
  110. package/lib/framework/output.js +1 -1
  111. package/lib/framework/preparse.js +1 -1
  112. package/lib/framework/rate-limit.js +1 -1
  113. package/lib/framework/raw-flags.js +1 -1
  114. package/lib/framework/response.js +1 -1
  115. package/lib/framework/runner-confirmation.js +1 -1
  116. package/lib/framework/runner-error.js +1 -1
  117. package/lib/framework/runner.js +1 -1
  118. package/lib/framework/schema-export.js +1 -1
  119. package/lib/framework/service-order.js +1 -1
  120. package/lib/framework/types.js +1 -1
  121. package/lib/generated/build-info.d.ts +4 -4
  122. package/lib/generated/build-info.js +1 -1
  123. package/lib/help.js +1 -1
  124. package/lib/postinstall.js +1 -1
  125. package/lib/runtime/confirmation.js +1 -1
  126. package/lib/runtime/event.js +1 -1
  127. package/lib/runtime/index.js +1 -1
  128. package/lib/runtime/queue.js +1 -1
  129. package/lib/runtime/resolve.js +1 -1
  130. package/lib/skills/builtin-skill.js +1 -1
  131. package/lib/skills/npx-skills-add.js +1 -1
  132. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  133. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  134. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  135. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  136. package/lib/skills/runtime-skill-sync/links.js +1 -1
  137. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  138. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  139. package/lib/skills/runtime-skill-sync/materialize.d.ts +7 -0
  140. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  141. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  142. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  143. package/lib/skills/runtime-skill-sync/push.js +1 -1
  144. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  145. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  146. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  147. package/lib/skills/runtime-skill-sync.d.ts +1 -1
  148. package/lib/skills/runtime-skill-sync.js +1 -1
  149. package/lib/skills/skill-presence.js +1 -1
  150. package/lib/utils/apply-jq-filter.js +1 -1
  151. package/lib/utils/logger.js +1 -1
  152. package/lib/utils/lossless-json.js +1 -1
  153. package/lib/utils/params.js +1 -1
  154. package/lib/utils/platform.js +1 -1
  155. package/lib/utils/update-notice.js +1 -1
  156. package/lib/utils/version.js +1 -1
  157. package/lib/utils/write-cli-side-channel.js +1 -1
  158. package/package.json +1 -1
  159. package/skills/lovrabet/SKILL.md +1 -1
  160. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x2b29f2,_0x524ec5){const _0x5834ac=a85_0x566b,_0x37cb29=_0x2b29f2();while(!![]){try{const _0x29bf28=parseInt(_0x5834ac(0x1ef))/0x1*(-parseInt(_0x5834ac(0x1f7))/0x2)+parseInt(_0x5834ac(0x1ee))/0x3+-parseInt(_0x5834ac(0x1f5))/0x4*(-parseInt(_0x5834ac(0x1f0))/0x5)+-parseInt(_0x5834ac(0x1f4))/0x6+parseInt(_0x5834ac(0x1ed))/0x7*(parseInt(_0x5834ac(0x1f2))/0x8)+-parseInt(_0x5834ac(0x1f6))/0x9+parseInt(_0x5834ac(0x1f3))/0xa*(parseInt(_0x5834ac(0x1f1))/0xb);if(_0x29bf28===_0x524ec5)break;else _0x37cb29['push'](_0x37cb29['shift']());}catch(_0x2d123a){_0x37cb29['push'](_0x37cb29['shift']());}}}(a85_0x53c0,0x84d62));import{bindUserAccount}from'../../commands/user-account/bind.js';function a85_0x566b(_0x8be840,_0x4e94ae){_0x8be840=_0x8be840-0x1ed;const _0x53c0a8=a85_0x53c0();let _0x566b95=_0x53c0a8[_0x8be840];return _0x566b95;}export const userAccountDefinitions=[bindUserAccount];function a85_0x53c0(){const _0x3fdbff=['8myAspK','10zBnazR','2051670OqZmEi','1108256dlUTjZ','5031531vzotgT','2AfYobm','3343844pVnDgi','1625850lzWOEA','431981MJaYTI','15itAPKh','288739RcdHSc'];a85_0x53c0=function(){return _0x3fdbff;};return a85_0x53c0();}
1
+ function a85_0x1c3a(_0x2ce5f3,_0x39243f){_0x2ce5f3=_0x2ce5f3-0x142;const _0x2ee612=a85_0x2ee6();let _0x1c3a65=_0x2ee612[_0x2ce5f3];return _0x1c3a65;}(function(_0x15fdeb,_0x21c8b8){const _0x102fc5=a85_0x1c3a,_0x58bef7=_0x15fdeb();while(!![]){try{const _0x40a163=-parseInt(_0x102fc5(0x143))/0x1*(parseInt(_0x102fc5(0x145))/0x2)+parseInt(_0x102fc5(0x144))/0x3+-parseInt(_0x102fc5(0x147))/0x4*(parseInt(_0x102fc5(0x14a))/0x5)+parseInt(_0x102fc5(0x148))/0x6+parseInt(_0x102fc5(0x14b))/0x7*(parseInt(_0x102fc5(0x14c))/0x8)+parseInt(_0x102fc5(0x146))/0x9*(parseInt(_0x102fc5(0x142))/0xa)+parseInt(_0x102fc5(0x149))/0xb;if(_0x40a163===_0x21c8b8)break;else _0x58bef7['push'](_0x58bef7['shift']());}catch(_0x2ab95a){_0x58bef7['push'](_0x58bef7['shift']());}}}(a85_0x2ee6,0x238a9));import{bindUserAccount}from'../../commands/user-account/bind.js';function a85_0x2ee6(){const _0x459fc7=['22776BqeRcT','714054vDiBjH','1335kAqfQo','14laJRJW','254368tlSBeQ','1468190lGYWal','10357RlAPgE','148686GufwDL','2XMlDeb','9PIDFqt','2588ohDTTK'];a85_0x2ee6=function(){return _0x459fc7;};return a85_0x2ee6();}export const userAccountDefinitions=[bindUserAccount];
@@ -1 +1 @@
1
- const a86_0xc663cb=a86_0x23dd;(function(_0x5d167b,_0x397624){const _0x13e5cc=a86_0x23dd,_0x442382=_0x5d167b();while(!![]){try{const _0x2a6c6d=parseInt(_0x13e5cc(0x19a))/0x1*(parseInt(_0x13e5cc(0x1a7))/0x2)+-parseInt(_0x13e5cc(0x1b8))/0x3+-parseInt(_0x13e5cc(0x191))/0x4+parseInt(_0x13e5cc(0x18d))/0x5*(-parseInt(_0x13e5cc(0x18a))/0x6)+parseInt(_0x13e5cc(0x1b0))/0x7*(-parseInt(_0x13e5cc(0x1ad))/0x8)+parseInt(_0x13e5cc(0x199))/0x9*(parseInt(_0x13e5cc(0x1ac))/0xa)+-parseInt(_0x13e5cc(0x192))/0xb*(-parseInt(_0x13e5cc(0x1a4))/0xc);if(_0x2a6c6d===_0x397624)break;else _0x442382['push'](_0x442382['shift']());}catch(_0x4bfd31){_0x442382['push'](_0x442382['shift']());}}}(a86_0x29db,0x3ce27));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';function a86_0x23dd(_0x48b853,_0x401b2d){_0x48b853=_0x48b853-0x186;const _0x29db91=a86_0x29db();let _0x23dd3d=_0x29db91[_0x48b853];return _0x23dd3d;}import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a86_0xc663cb(0x18c),'type':a86_0xc663cb(0x19f),'description':a86_0xc663cb(0x1ae)},{'name':a86_0xc663cb(0x1bb),'type':a86_0xc663cb(0x19f),'description':a86_0xc663cb(0x1b6)},{'name':'env','type':a86_0xc663cb(0x19f),'description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x4a0d86,_0x3336bb){const _0x323f75=a86_0xc663cb,_0x362ccc=_0x4a0d86[_0x323f75(0x1b9)](_0x323f75(0x18c))[_0x323f75(0x1a0)](),_0x34ae5c=_0x4a0d86[_0x323f75(0x1b9)](_0x323f75(0x1bb))['trim'](),_0x25434e=_0x4a0d86[_0x323f75(0x1b9)](_0x323f75(0x1bd))[_0x323f75(0x1a0)](),_0x5a8636=resolveWorkspaceEnv(_0x25434e||_0x4a0d86[_0x323f75(0x1b7)]||DEFAULT_CONFIG_VALUES['env']);if(!_0x362ccc&&!_0x34ae5c)throw CliErrors[_0x323f75(0x197)](_0x323f75(0x1b4),'Usage:\x20'+CLI_BIN_NAME+_0x323f75(0x198)+_0x3336bb+'\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20'+CLI_BIN_NAME+_0x323f75(0x198)+_0x3336bb+_0x323f75(0x1b3));if(_0x362ccc&&_0x34ae5c)throw CliErrors['validation'](_0x323f75(0x1c7),'Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.');const _0xc52be6=resolveWriteConfigPath(_0x323f75(0x18f)),_0x26caa5=readConfigFile(_0xc52be6);assertWorkspaceCommandState(_0x3336bb,_0x26caa5);const _0x24b1ad=_0x34ae5c||await resolveRemoteAppCode({'command':_0x3336bb,'appName':_0x362ccc,'env':_0x5a8636,'accessKey':_0x4a0d86[_0x323f75(0x1c1)]});return writeWorkspaceConfig({'command':_0x3336bb,'appName':_0x362ccc,'appcode':_0x24b1ad,'env':_0x5a8636,'shouldWriteEnv':!!_0x25434e,'accessKey':_0x4a0d86['accessKey']},_0xc52be6,_0x26caa5),{'ok':!![],'data':{'configPath':_0xc52be6,'app':_0x362ccc||null,'appcode':_0x24b1ad,'env':_0x25434e?_0x5a8636:null,'accessKeyWritten':![],'command':_0x323f75(0x1a9)+_0x3336bb},'message':buildWorkspaceMessage(_0xc52be6,_0x362ccc,_0x24b1ad,_0x25434e?_0x5a8636:undefined)};}async function resolveRemoteAppCode(_0x1c6d37){const _0x4e8da6=a86_0xc663cb;if(!_0x1c6d37[_0x4e8da6(0x1c1)])throw CliErrors['authRequired'](_0x4e8da6(0x1ab)+CLI_BIN_NAME+_0x4e8da6(0x198)+_0x1c6d37[_0x4e8da6(0x1c2)]+'.');const {setActiveAK:_0x157744}=await import(_0x4e8da6(0x186)),{getRemoteAppList:_0x4455ee}=await import(_0x4e8da6(0x19c));_0x157744(_0x1c6d37[_0x4e8da6(0x1c1)]);const _0x5bfdb3=await _0x4455ee({'env':_0x1c6d37['env'],'accessKey':_0x1c6d37['accessKey'],'noCache':![]}),_0x2b18e0=findAppByName(_0x5bfdb3[_0x4e8da6(0x1b2)],_0x1c6d37[_0x4e8da6(0x1bc)]);if(_0x2b18e0&&!isRuntimeAccessibleApp(_0x2b18e0))throw runtimeInaccessibleAppError(_0x2b18e0,'\x22'+_0x1c6d37[_0x4e8da6(0x1bc)]+'\x22');const _0x5a107f=_0x2b18e0?.[_0x4e8da6(0x1bf)]?.[_0x4e8da6(0x1a0)]();if(_0x5a107f)return _0x5a107f;const _0x23705f=_0x5bfdb3['items'][_0x4e8da6(0x19b)](_0x3c093a=>_0x3c093a['appName'])[_0x4e8da6(0x1af)](Boolean),_0x313ecc=_0x23705f[_0x4e8da6(0x1c5)]?_0x4e8da6(0x1b5)+Array[_0x4e8da6(0x1c0)](new Set(_0x23705f))[_0x4e8da6(0x1c3)](',\x20')+'.':_0x4e8da6(0x1aa)+CLI_BIN_NAME+_0x4e8da6(0x1be);throw CliErrors[_0x4e8da6(0x197)](_0x4e8da6(0x190)+_0x1c6d37[_0x4e8da6(0x1bc)]+_0x4e8da6(0x1c6),_0x313ecc);}function writeWorkspaceConfig(_0x2f1406,_0x3a8d76,_0x1f73ea){const _0x15d808=a86_0xc663cb;_0x2f1406['shouldWriteEnv']&&(_0x1f73ea[_0x15d808(0x1bd)]=_0x2f1406[_0x15d808(0x1bd)]);if(_0x2f1406[_0x15d808(0x1bc)]){const _0x49eef8=isRecord(_0x1f73ea['apps'])?{..._0x1f73ea['apps']}:{},_0x2e254d=isRecord(_0x49eef8[_0x2f1406['appName']])?_0x49eef8[_0x2f1406[_0x15d808(0x1bc)]]:{};return _0x49eef8[_0x2f1406[_0x15d808(0x1bc)]]={..._0x2e254d,'appcode':_0x2f1406[_0x15d808(0x1bb)]},_0x1f73ea['apps']=_0x49eef8,_0x1f73ea['defaultApp']=_0x2f1406[_0x15d808(0x1bc)],delete _0x1f73ea['appcode'],delete _0x1f73ea[_0x15d808(0x18c)],writeAndReturn(_0x3a8d76,_0x1f73ea);}return _0x1f73ea['appcode']=_0x2f1406[_0x15d808(0x1bb)],delete _0x1f73ea[_0x15d808(0x189)],delete _0x1f73ea['app'],writeAndReturn(_0x3a8d76,_0x1f73ea);}function writeAndReturn(_0x438106,_0x41799d){return writeConfigFile(_0x438106,_0x41799d),_0x438106;}function a86_0x29db(){const _0x56141e=['Workspace\x20app\x20context\x20is\x20already\x20initialized.','workspace\x20','Run\x20`','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','430qTNQet','32sdttkA','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','filter','680176AImDIF','use','items','\x20--appcode\x20<code>\x20[--env\x20daily]','Missing\x20workspace\x20app\x20selector.','Available\x20apps:\x20','App\x20code\x20to\x20bind\x20directly','envName','876885ONGghm','str','\x0aDefault\x20app:\x20','appcode','appName','env','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','appCode','from','accessKey','command','join','includes','length','\x22\x20not\x20found.','Conflicting\x20workspace\x20app\x20selectors.','修改当前工作目录已有绑定的应用上下文','workspace','../../core/api-client.js','object','isArray','defaultApp','102mtJftJ','Invalid\x20env\x20\x22','app','46600XAMuxj','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','project','App\x20\x22','625096BWzijP','11JHPYYo','init','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','write','apps','validation','\x20workspace\x20','99378HBcLTm','6115UYsJYQ','map','../../commands/app/remote-source.js','将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','Use\x20`','string','trim','Workspace\x20configured.\x0aConfig\x20file:\x20','\x0aEnv:\x20','将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','6014376WORDJM','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','88ZZZUTC'];a86_0x29db=function(){return _0x56141e;};return a86_0x29db();}function resolveWorkspaceEnv(_0x506304){const _0x135174=a86_0xc663cb;if(RUNTIME_ENV_VALUES[_0x135174(0x1c4)](_0x506304))return _0x506304;throw CliErrors['validation'](_0x135174(0x18b)+_0x506304+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x135174(0x1c3)](',\x20'));}function buildWorkspaceMessage(_0x2fcba4,_0x29bfe5,_0x2d45b7,_0x52b23c){const _0x1435ae=a86_0xc663cb,_0x56506a=_0x29bfe5?_0x29bfe5+'\x20('+_0x2d45b7+')':_0x2d45b7,_0x5d1d8f=_0x52b23c?_0x1435ae(0x1a2)+_0x52b23c:'';return _0x1435ae(0x1a1)+_0x2fcba4+_0x1435ae(0x1ba)+_0x56506a+_0x5d1d8f+'\x0aAccessKey:\x20not\x20written';}function isRecord(_0xb3ef5){const _0x6eeb07=a86_0xc663cb;return typeof _0xb3ef5===_0x6eeb07(0x187)&&_0xb3ef5!==null&&!Array[_0x6eeb07(0x188)](_0xb3ef5);}function hasWorkspaceAppBinding(_0x35bddd){const _0x394fb4=a86_0xc663cb;if(typeof _0x35bddd['appcode']===_0x394fb4(0x19f)&&_0x35bddd['appcode'][_0x394fb4(0x1a0)]()[_0x394fb4(0x1c5)]>0x0)return!![];if(typeof _0x35bddd['defaultApp']!==_0x394fb4(0x19f)||!_0x35bddd[_0x394fb4(0x189)][_0x394fb4(0x1a0)]())return![];if(!isRecord(_0x35bddd[_0x394fb4(0x196)]))return![];const _0x5030b4=_0x35bddd[_0x394fb4(0x196)][_0x35bddd[_0x394fb4(0x189)][_0x394fb4(0x1a0)]()];return isRecord(_0x5030b4)&&typeof _0x5030b4[_0x394fb4(0x1bb)]===_0x394fb4(0x19f)&&_0x5030b4['appcode'][_0x394fb4(0x1a0)]()['length']>0x0;}function assertWorkspaceCommandState(_0x49f9e9,_0x3bae63){const _0x25ce82=a86_0xc663cb,_0x902b9f=hasWorkspaceAppBinding(_0x3bae63);if(_0x49f9e9===_0x25ce82(0x193)&&_0x902b9f)throw CliErrors[_0x25ce82(0x197)](_0x25ce82(0x1a8),_0x25ce82(0x19e)+CLI_BIN_NAME+_0x25ce82(0x1a5)+CLI_BIN_NAME+_0x25ce82(0x1a6));if(_0x49f9e9===_0x25ce82(0x1b1)&&!_0x902b9f)throw CliErrors[_0x25ce82(0x197)]('Workspace\x20app\x20context\x20is\x20not\x20initialized.',_0x25ce82(0x1aa)+CLI_BIN_NAME+_0x25ce82(0x194)+CLI_BIN_NAME+_0x25ce82(0x18e));}function makeWorkspaceCommand(_0x1e59d7){const _0x50e409=a86_0xc663cb;return{'service':_0x50e409(0x1c9),'command':_0x1e59d7,'description':_0x1e59d7==='init'?'为尚未绑定应用的当前工作目录初始化应用上下文':_0x50e409(0x1c8),'risk':_0x50e409(0x195),'confirmationDescription':_0x1e59d7===_0x50e409(0x193)?_0x50e409(0x1a3):_0x50e409(0x19d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x39a257){return executeWorkspaceUse(_0x39a257,_0x1e59d7);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a86_0xc663cb(0x193)),makeWorkspaceCommand(a86_0xc663cb(0x1b1))];
1
+ const a86_0x3d0774=a86_0x3aab;(function(_0x91adef,_0x3b15be){const _0x2e469f=a86_0x3aab,_0x47199f=_0x91adef();while(!![]){try{const _0x26363b=parseInt(_0x2e469f(0xad))/0x1*(parseInt(_0x2e469f(0xa4))/0x2)+-parseInt(_0x2e469f(0x80))/0x3*(parseInt(_0x2e469f(0xa5))/0x4)+parseInt(_0x2e469f(0xaa))/0x5*(parseInt(_0x2e469f(0x95))/0x6)+-parseInt(_0x2e469f(0x90))/0x7*(parseInt(_0x2e469f(0x98))/0x8)+-parseInt(_0x2e469f(0x7e))/0x9+parseInt(_0x2e469f(0xae))/0xa*(parseInt(_0x2e469f(0x81))/0xb)+parseInt(_0x2e469f(0x8e))/0xc*(parseInt(_0x2e469f(0x8d))/0xd);if(_0x26363b===_0x3b15be)break;else _0x47199f['push'](_0x47199f['shift']());}catch(_0x164ae1){_0x47199f['push'](_0x47199f['shift']());}}}(a86_0x14af,0x884aa));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';function a86_0x14af(){const _0x363217=['defaultApp','filter','5OlPoYi','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','env','1ZxrElg','20ocBwza','Usage:\x20','Target\x20environment','str','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','Missing\x20workspace\x20app\x20selector.','items','object','command','includes','appCode','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','\x22\x20not\x20found.','envName','write','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','\x20workspace\x20','app','App\x20code\x20to\x20bind\x20directly','../../core/api-client.js','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','\x22.\x20Allowed:\x20','apps','修改当前工作目录已有绑定的应用上下文','3944763LGNAuA','accessKey','1219011SPwAvn','3888643ZRoxFA','为尚未绑定应用的当前工作目录初始化应用上下文','map','appName','isArray','workspace','appcode','length','Invalid\x20env\x20\x22','\x20--appcode\x20<code>\x20[--env\x20daily]','Conflicting\x20workspace\x20app\x20selectors.','trim','13gUdtwM','952284ysLDcy','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','7GofZiN','将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','from','Workspace\x20app\x20context\x20is\x20not\x20initialized.','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','5211174GhJXUE','validation','Use\x20`','4380472GtKIdx','string','init','Run\x20`','Workspace\x20app\x20context\x20is\x20already\x20initialized.','将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','\x0aEnv:\x20','use','App\x20\x22','Available\x20apps:\x20','../../commands/app/remote-source.js','shouldWriteEnv','1403756hPiDNu','8eDcRix','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20'];a86_0x14af=function(){return _0x363217;};return a86_0x14af();}const WORKSPACE_USE_FLAGS=[{'name':a86_0x3d0774(0xbf),'type':a86_0x3d0774(0x99),'description':a86_0x3d0774(0xbd)},{'name':a86_0x3d0774(0x87),'type':'string','description':a86_0x3d0774(0xc0)},{'name':a86_0x3d0774(0xac),'type':'string','description':a86_0x3d0774(0xb0),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x3fa4b4,_0x10e05e){const _0x1a17b5=a86_0x3d0774,_0x3fbb85=_0x3fa4b4[_0x1a17b5(0xb1)]('app')['trim'](),_0x5d9dcc=_0x3fa4b4['str']('appcode')[_0x1a17b5(0x8c)](),_0x3f7aa9=_0x3fa4b4[_0x1a17b5(0xb1)](_0x1a17b5(0xac))['trim'](),_0x4abcf7=resolveWorkspaceEnv(_0x3f7aa9||_0x3fa4b4[_0x1a17b5(0xbb)]||DEFAULT_CONFIG_VALUES['env']);if(!_0x3fbb85&&!_0x5d9dcc)throw CliErrors[_0x1a17b5(0x96)](_0x1a17b5(0xb3),_0x1a17b5(0xaf)+CLI_BIN_NAME+'\x20workspace\x20'+_0x10e05e+_0x1a17b5(0xa7)+CLI_BIN_NAME+_0x1a17b5(0xbe)+_0x10e05e+_0x1a17b5(0x8a));if(_0x3fbb85&&_0x5d9dcc)throw CliErrors['validation'](_0x1a17b5(0x8b),_0x1a17b5(0xab));const _0x4a1deb=resolveWriteConfigPath('project'),_0x542a9e=readConfigFile(_0x4a1deb);assertWorkspaceCommandState(_0x10e05e,_0x542a9e);const _0x11405b=_0x5d9dcc||await resolveRemoteAppCode({'command':_0x10e05e,'appName':_0x3fbb85,'env':_0x4abcf7,'accessKey':_0x3fa4b4[_0x1a17b5(0x7f)]});return writeWorkspaceConfig({'command':_0x10e05e,'appName':_0x3fbb85,'appcode':_0x11405b,'env':_0x4abcf7,'shouldWriteEnv':!!_0x3f7aa9,'accessKey':_0x3fa4b4['accessKey']},_0x4a1deb,_0x542a9e),{'ok':!![],'data':{'configPath':_0x4a1deb,'app':_0x3fbb85||null,'appcode':_0x11405b,'env':_0x3f7aa9?_0x4abcf7:null,'accessKeyWritten':![],'command':'workspace\x20'+_0x10e05e},'message':buildWorkspaceMessage(_0x4a1deb,_0x3fbb85,_0x11405b,_0x3f7aa9?_0x4abcf7:undefined)};}async function resolveRemoteAppCode(_0x286028){const _0x46b489=a86_0x3d0774;if(!_0x286028[_0x46b489(0x7f)])throw CliErrors['authRequired'](_0x46b489(0xb2)+CLI_BIN_NAME+_0x46b489(0xbe)+_0x286028[_0x46b489(0xb6)]+'.');const {setActiveAK:_0xbc1e04}=await import(_0x46b489(0x79)),{getRemoteAppList:_0x56ffec}=await import(_0x46b489(0xa2));_0xbc1e04(_0x286028[_0x46b489(0x7f)]);const _0xe37e07=await _0x56ffec({'env':_0x286028['env'],'accessKey':_0x286028[_0x46b489(0x7f)],'noCache':![]}),_0x382846=findAppByName(_0xe37e07[_0x46b489(0xb4)],_0x286028[_0x46b489(0x84)]);if(_0x382846&&!isRuntimeAccessibleApp(_0x382846))throw runtimeInaccessibleAppError(_0x382846,'\x22'+_0x286028[_0x46b489(0x84)]+'\x22');const _0x147fb5=_0x382846?.[_0x46b489(0xb8)]?.[_0x46b489(0x8c)]();if(_0x147fb5)return _0x147fb5;const _0x16dd67=_0xe37e07[_0x46b489(0xb4)][_0x46b489(0x83)](_0x8d6ce2=>_0x8d6ce2['appName'])[_0x46b489(0xa9)](Boolean),_0x3acd3e=_0x16dd67[_0x46b489(0x88)]?_0x46b489(0xa1)+Array[_0x46b489(0x92)](new Set(_0x16dd67))['join'](',\x20')+'.':_0x46b489(0x9b)+CLI_BIN_NAME+_0x46b489(0x8f);throw CliErrors['validation'](_0x46b489(0xa0)+_0x286028[_0x46b489(0x84)]+_0x46b489(0xba),_0x3acd3e);}function writeWorkspaceConfig(_0xed1c1,_0x554704,_0x2d3f87){const _0x30e910=a86_0x3d0774;_0xed1c1[_0x30e910(0xa3)]&&(_0x2d3f87[_0x30e910(0xac)]=_0xed1c1[_0x30e910(0xac)]);if(_0xed1c1[_0x30e910(0x84)]){const _0x586f89=isRecord(_0x2d3f87[_0x30e910(0x7c)])?{..._0x2d3f87['apps']}:{},_0x5b3f3d=isRecord(_0x586f89[_0xed1c1[_0x30e910(0x84)]])?_0x586f89[_0xed1c1[_0x30e910(0x84)]]:{};return _0x586f89[_0xed1c1['appName']]={..._0x5b3f3d,'appcode':_0xed1c1['appcode']},_0x2d3f87[_0x30e910(0x7c)]=_0x586f89,_0x2d3f87['defaultApp']=_0xed1c1['appName'],delete _0x2d3f87[_0x30e910(0x87)],delete _0x2d3f87[_0x30e910(0xbf)],writeAndReturn(_0x554704,_0x2d3f87);}return _0x2d3f87['appcode']=_0xed1c1[_0x30e910(0x87)],delete _0x2d3f87[_0x30e910(0xa8)],delete _0x2d3f87[_0x30e910(0xbf)],writeAndReturn(_0x554704,_0x2d3f87);}function writeAndReturn(_0x27ba24,_0xc1b5a9){return writeConfigFile(_0x27ba24,_0xc1b5a9),_0x27ba24;}function resolveWorkspaceEnv(_0x32190b){const _0xd5f4c1=a86_0x3d0774;if(RUNTIME_ENV_VALUES[_0xd5f4c1(0xb7)](_0x32190b))return _0x32190b;throw CliErrors[_0xd5f4c1(0x96)](_0xd5f4c1(0x89)+_0x32190b+_0xd5f4c1(0x7b)+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0xfc8749,_0x5228cd,_0x4837d6,_0x14240d){const _0x43c9df=a86_0x3d0774,_0x47c768=_0x5228cd?_0x5228cd+'\x20('+_0x4837d6+')':_0x4837d6,_0x16b124=_0x14240d?_0x43c9df(0x9e)+_0x14240d:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0xfc8749+'\x0aDefault\x20app:\x20'+_0x47c768+_0x16b124+'\x0aAccessKey:\x20not\x20written';}function a86_0x3aab(_0x332b43,_0x504f74){_0x332b43=_0x332b43-0x79;const _0x14af47=a86_0x14af();let _0x3aab35=_0x14af47[_0x332b43];return _0x3aab35;}function isRecord(_0x22c4ad){const _0x52f040=a86_0x3d0774;return typeof _0x22c4ad===_0x52f040(0xb5)&&_0x22c4ad!==null&&!Array[_0x52f040(0x85)](_0x22c4ad);}function hasWorkspaceAppBinding(_0x2ddb2d){const _0x5c4afa=a86_0x3d0774;if(typeof _0x2ddb2d[_0x5c4afa(0x87)]==='string'&&_0x2ddb2d['appcode'][_0x5c4afa(0x8c)]()['length']>0x0)return!![];if(typeof _0x2ddb2d[_0x5c4afa(0xa8)]!==_0x5c4afa(0x99)||!_0x2ddb2d[_0x5c4afa(0xa8)]['trim']())return![];if(!isRecord(_0x2ddb2d[_0x5c4afa(0x7c)]))return![];const _0xf06304=_0x2ddb2d[_0x5c4afa(0x7c)][_0x2ddb2d['defaultApp'][_0x5c4afa(0x8c)]()];return isRecord(_0xf06304)&&typeof _0xf06304[_0x5c4afa(0x87)]===_0x5c4afa(0x99)&&_0xf06304[_0x5c4afa(0x87)][_0x5c4afa(0x8c)]()[_0x5c4afa(0x88)]>0x0;}function assertWorkspaceCommandState(_0x148b1e,_0x193ba3){const _0x4df425=a86_0x3d0774,_0x4e2444=hasWorkspaceAppBinding(_0x193ba3);if(_0x148b1e===_0x4df425(0x9a)&&_0x4e2444)throw CliErrors[_0x4df425(0x96)](_0x4df425(0x9c),_0x4df425(0x97)+CLI_BIN_NAME+_0x4df425(0xa6)+CLI_BIN_NAME+_0x4df425(0xb9));if(_0x148b1e==='use'&&!_0x4e2444)throw CliErrors[_0x4df425(0x96)](_0x4df425(0x93),_0x4df425(0x9b)+CLI_BIN_NAME+_0x4df425(0x7a)+CLI_BIN_NAME+_0x4df425(0x94));}function makeWorkspaceCommand(_0x31d5e5){const _0x2f914b=a86_0x3d0774;return{'service':_0x2f914b(0x86),'command':_0x31d5e5,'description':_0x31d5e5===_0x2f914b(0x9a)?_0x2f914b(0x82):_0x2f914b(0x7d),'risk':_0x2f914b(0xbc),'confirmationDescription':_0x31d5e5==='init'?_0x2f914b(0x91):_0x2f914b(0x9d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x44beaf){return executeWorkspaceUse(_0x44beaf,_0x31d5e5);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a86_0x3d0774(0x9a)),makeWorkspaceCommand(a86_0x3d0774(0x9f))];
@@ -1 +1 @@
1
- const a87_0x148212=a87_0x15d2;(function(_0x37dacf,_0x3d04b0){const _0x46d755=a87_0x15d2,_0x5c331b=_0x37dacf();while(!![]){try{const _0x11fa66=parseInt(_0x46d755(0x1b1))/0x1*(-parseInt(_0x46d755(0x19a))/0x2)+-parseInt(_0x46d755(0x19c))/0x3*(parseInt(_0x46d755(0x1a8))/0x4)+parseInt(_0x46d755(0x1b5))/0x5*(parseInt(_0x46d755(0x1a2))/0x6)+parseInt(_0x46d755(0x196))/0x7*(parseInt(_0x46d755(0x1b6))/0x8)+parseInt(_0x46d755(0x197))/0x9+-parseInt(_0x46d755(0x19e))/0xa*(parseInt(_0x46d755(0x1ac))/0xb)+parseInt(_0x46d755(0x1ab))/0xc;if(_0x11fa66===_0x3d04b0)break;else _0x5c331b['push'](_0x5c331b['shift']());}catch(_0x40b0e6){_0x5c331b['push'](_0x5c331b['shift']());}}}(a87_0x1172,0xd596e));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a87_0x148212(0x199),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x148212(0x19d)],'importable':!![]},'format':{'description':a87_0x148212(0x1ae),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x148212(0x1b3)],'importable':!![]},'pageSize':{'description':a87_0x148212(0x1b2),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a87_0x148212(0x1a1),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a87_0x148212(0x1a0),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a87_0x148212(0x1ad),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a87_0x148212(0x1af),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a87_0x148212(0x1a3),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a87_0x148212(0x1b9),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x148212(0x1a5)],'importable':!![]},'locale':{'description':a87_0x148212(0x1b7),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x148212(0x1aa)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)[a87_0x148212(0x1b8)](([,_0x53ec35])=>_0x53ec35['cliSettableTopLevel'])['map'](([_0x2a0061])=>_0x2a0061));export const CONFIG_ENUM_VALUES=Object[a87_0x148212(0x1a9)](Object[a87_0x148212(0x1a4)](CONFIG_FIELD_SCHEMAS)[a87_0x148212(0x1b8)](([,_0x257eb3])=>_0x257eb3[a87_0x148212(0x198)])[a87_0x148212(0x19b)](([_0x26bfb5,_0x4da353])=>[_0x26bfb5,[..._0x4da353[a87_0x148212(0x198)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object['entries'](CONFIG_FIELD_SCHEMAS)[a87_0x148212(0x1b8)](([,_0x2f2e5e])=>_0x2f2e5e[a87_0x148212(0x19f)])[a87_0x148212(0x19b)](([_0x4c34e2])=>_0x4c34e2);export function getConfigFieldSchema(_0x1b6dcc){return CONFIG_FIELD_SCHEMAS[_0x1b6dcc];}function a87_0x1172(){const _0x5ba331=['filter','Risk\x20level','14yFEiNH','5214780nWvxzi','enumValues','Target\x20environment','3358252KkCkDD','map','4947828bsVFOa','env','122770dztZHQ','importable','Override\x20user\x20domain','Override\x20API\x20domain','354JZfsUN','Access\x20key\x20(client-ak\x20auth)','entries','riskLevel',';\x20local\x20alias:\x20apps.<alias>.appcode','legacyCompatOnly','4yWSLge','fromEntries','locale','29465724rJRjLt','44tYqrnt','Override\x20runtime\x20domain','Default\x20output\x20format','Override\x20SkillHub\x20domain','Config\x20key.\x20Top-level:\x20','1pTkZQW','Default\x20page\x20size','format','join','65cRzGyO','4866832twXkBv','Locale'];a87_0x1172=function(){return _0x5ba331;};return a87_0x1172();}export function getConfigEnumValues(_0x18453b){const _0x251e20=a87_0x148212;return getConfigFieldSchema(_0x18453b)?.[_0x251e20(0x198)];}export function getConfigDefaultValue(_0x315496){return getConfigFieldSchema(_0x315496)?.['defaultValue'];}export function isTopLevelConfigKey(_0x269e7c){return TOP_LEVEL_CONFIG_KEYS['has'](_0x269e7c);}export function isLegacyCompatConfigKey(_0x14b83e){const _0x215cef=a87_0x148212;return getConfigFieldSchema(_0x14b83e)?.[_0x215cef(0x1a7)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x53764b){const _0x219afc=a87_0x148212;return[..._0x53764b][_0x219afc(0x1b4)](',\x20');}function a87_0x15d2(_0xaa9c62,_0x40df93){_0xaa9c62=_0xaa9c62-0x196;const _0x1172f4=a87_0x1172();let _0x15d24d=_0x1172f4[_0xaa9c62];return _0x15d24d;}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x45116d=a87_0x148212;return _0x45116d(0x1b0)+getTopLevelConfigKeySummary()+_0x45116d(0x1a6);}export function buildAppProfileListFields(_0x5930ea){return{'env':_0x5930ea,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a87_0x23a9e4=a87_0x3ddb;(function(_0x154fd5,_0x13e359){const _0x6d5984=a87_0x3ddb,_0x1755c1=_0x154fd5();while(!![]){try{const _0x4d74a3=parseInt(_0x6d5984(0x84))/0x1+parseInt(_0x6d5984(0x8d))/0x2*(parseInt(_0x6d5984(0x8c))/0x3)+-parseInt(_0x6d5984(0x85))/0x4*(parseInt(_0x6d5984(0x79))/0x5)+-parseInt(_0x6d5984(0x71))/0x6+-parseInt(_0x6d5984(0x89))/0x7*(parseInt(_0x6d5984(0x75))/0x8)+-parseInt(_0x6d5984(0x81))/0x9+parseInt(_0x6d5984(0x72))/0xa;if(_0x4d74a3===_0x13e359)break;else _0x1755c1['push'](_0x1755c1['shift']());}catch(_0x32d221){_0x1755c1['push'](_0x1755c1['shift']());}}}(a87_0x1faa,0x45f0c));function a87_0x3ddb(_0x365ef4,_0x437109){_0x365ef4=_0x365ef4-0x70;const _0x1faa7e=a87_0x1faa();let _0x3ddb4c=_0x1faa7e[_0x365ef4];return _0x3ddb4c;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x23a9e4(0x73)],'importable':!![]},'format':{'description':a87_0x23a9e4(0x7b),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x23a9e4(0x86)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a87_0x23a9e4(0x76),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a87_0x23a9e4(0x83),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a87_0x23a9e4(0x7d),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a87_0x23a9e4(0x7a),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a87_0x23a9e4(0x77),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'locale':{'description':a87_0x23a9e4(0x87),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x23a9e4(0x74)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0xc8cba])=>_0xc8cba[a87_0x23a9e4(0x8e)])['map'](([_0x5e5a4c])=>_0x5e5a4c));export const CONFIG_ENUM_VALUES=Object[a87_0x23a9e4(0x82)](Object[a87_0x23a9e4(0x70)](CONFIG_FIELD_SCHEMAS)[a87_0x23a9e4(0x88)](([,_0x45e9e4])=>_0x45e9e4['enumValues'])['map'](([_0x58f2ca,_0x5c1e9c])=>[_0x58f2ca,[..._0x5c1e9c['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a87_0x23a9e4(0x70)](CONFIG_FIELD_SCHEMAS)[a87_0x23a9e4(0x88)](([,_0x3e0fa6])=>_0x3e0fa6[a87_0x23a9e4(0x78)])[a87_0x23a9e4(0x8a)](([_0x3d36e7])=>_0x3d36e7);function a87_0x1faa(){const _0x75fbbb=['10038720KTdKXS','env','locale','120wkZGvq','Override\x20API\x20domain','Risk\x20level','importable','1260870wdUkaN','Access\x20key\x20(client-ak\x20auth)','Default\x20output\x20format','enumValues','Override\x20SkillHub\x20domain',';\x20local\x20alias:\x20apps.<alias>.appcode','defaultValue','has','3178458dMGSaE','fromEntries','Override\x20runtime\x20domain','10132TTzMLH','4PjEods','format','Locale','filter','124481bsCBxB','map','legacyCompatOnly','307878vxVMSd','6gGzYHo','cliSettableTopLevel','entries','979950HGhiNR'];a87_0x1faa=function(){return _0x75fbbb;};return a87_0x1faa();}export function getConfigFieldSchema(_0x4e7036){return CONFIG_FIELD_SCHEMAS[_0x4e7036];}export function getConfigEnumValues(_0x31bac7){const _0x239634=a87_0x23a9e4;return getConfigFieldSchema(_0x31bac7)?.[_0x239634(0x7c)];}export function getConfigDefaultValue(_0x335ba7){const _0x4e9a12=a87_0x23a9e4;return getConfigFieldSchema(_0x335ba7)?.[_0x4e9a12(0x7f)];}export function isTopLevelConfigKey(_0x4bdb15){const _0x5aeb30=a87_0x23a9e4;return TOP_LEVEL_CONFIG_KEYS[_0x5aeb30(0x80)](_0x4bdb15);}export function isLegacyCompatConfigKey(_0x4ed228){const _0x18bba1=a87_0x23a9e4;return getConfigFieldSchema(_0x4ed228)?.[_0x18bba1(0x8b)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x1c4909){return[..._0x1c4909]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x52b44b=a87_0x23a9e4;return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+_0x52b44b(0x7e);}export function buildAppProfileListFields(_0xde65f6){return{'env':_0xde65f6,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- const a88_0x55c308=a88_0x3128;(function(_0x4cb796,_0x4a0548){const _0x34f649=a88_0x3128,_0xed6b72=_0x4cb796();while(!![]){try{const _0x539b3e=-parseInt(_0x34f649(0xab))/0x1+parseInt(_0x34f649(0xa9))/0x2+parseInt(_0x34f649(0xa8))/0x3*(-parseInt(_0x34f649(0xb0))/0x4)+parseInt(_0x34f649(0xa6))/0x5*(-parseInt(_0x34f649(0xaa))/0x6)+parseInt(_0x34f649(0xa7))/0x7+-parseInt(_0x34f649(0xae))/0x8+-parseInt(_0x34f649(0xad))/0x9*(-parseInt(_0x34f649(0xaf))/0xa);if(_0x539b3e===_0x4a0548)break;else _0xed6b72['push'](_0xed6b72['shift']());}catch(_0x28eb14){_0xed6b72['push'](_0xed6b72['shift']());}}}(a88_0x3246,0x6343b));export const APP_PUBLISH_STATUS={'Published':a88_0x55c308(0xac),'Unpublished':'UNPUBLISH'};function a88_0x3128(_0x25f2a3,_0x15290d){_0x25f2a3=_0x25f2a3-0xa6;const _0x32464d=a88_0x3246();let _0x31283a=_0x32464d[_0x25f2a3];return _0x31283a;}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];function a88_0x3246(){const _0x16518b=['18PJqWtI','220653foyZvU','PUBLISHED','477CsaoiJ','4110736CCYbbH','116350DITGoM','4iLaIlJ','353655aoLSph','2883391LDeekY','566967LWubGr','1027392WNDagK'];a88_0x3246=function(){return _0x16518b;};return a88_0x3246();}
1
+ function a88_0x3659(_0x2a1545,_0x3eceea){_0x2a1545=_0x2a1545-0xa3;const _0x1867e1=a88_0x1867();let _0x36590e=_0x1867e1[_0x2a1545];return _0x36590e;}const a88_0xcdbd50=a88_0x3659;function a88_0x1867(){const _0x2fc3f9=['UNPUBLISH','3618512NlzDvJ','2148020sFGfHV','6kvCepq','PUBLISHED','50taAfnK','35166AiCirB','931495Jrduiu','932504rzEHCp','12sHryMg','2810097PGkLlL','Published','18866310kwAICL'];a88_0x1867=function(){return _0x2fc3f9;};return a88_0x1867();}(function(_0x1f43a6,_0x3d883d){const _0x287823=a88_0x3659,_0x46fe92=_0x1f43a6();while(!![]){try{const _0x1f3f2b=-parseInt(_0x287823(0xaf))/0x1*(parseInt(_0x287823(0xae))/0x2)+parseInt(_0x287823(0xac))/0x3*(parseInt(_0x287823(0xa4))/0x4)+-parseInt(_0x287823(0xa3))/0x5+parseInt(_0x287823(0xa5))/0x6*(-parseInt(_0x287823(0xab))/0x7)+-parseInt(_0x287823(0xaa))/0x8+parseInt(_0x287823(0xa6))/0x9+parseInt(_0x287823(0xa8))/0xa;if(_0x1f3f2b===_0x3d883d)break;else _0x46fe92['push'](_0x46fe92['shift']());}catch(_0x2274da){_0x46fe92['push'](_0x46fe92['shift']());}}}(a88_0x1867,0x82481));export const APP_PUBLISH_STATUS={'Published':a88_0xcdbd50(0xad),'Unpublished':a88_0xcdbd50(0xa9)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a88_0xcdbd50(0xa7)];
@@ -1 +1 @@
1
- const a89_0x4275de=a89_0x1f35;function a89_0x1f35(_0x280381,_0x195d56){_0x280381=_0x280381-0x180;const _0x3f08ea=a89_0x3f08();let _0x1f35b3=_0x3f08ea[_0x280381];return _0x1f35b3;}(function(_0x51d568,_0x356bc5){const _0x480364=a89_0x1f35,_0x4dd51d=_0x51d568();while(!![]){try{const _0x23bc89=-parseInt(_0x480364(0x183))/0x1*(-parseInt(_0x480364(0x182))/0x2)+parseInt(_0x480364(0x180))/0x3+parseInt(_0x480364(0x181))/0x4*(-parseInt(_0x480364(0x184))/0x5)+-parseInt(_0x480364(0x188))/0x6+parseInt(_0x480364(0x186))/0x7+parseInt(_0x480364(0x18a))/0x8+-parseInt(_0x480364(0x185))/0x9*(parseInt(_0x480364(0x18b))/0xa);if(_0x23bc89===_0x356bc5)break;else _0x4dd51d['push'](_0x4dd51d['shift']());}catch(_0x2704dc){_0x4dd51d['push'](_0x4dd51d['shift']());}}}(a89_0x3f08,0x4bd22));export const AUTH_MODE={'ClientAk':a89_0x4275de(0x187)};function a89_0x3f08(){const _0x10ba32=['4209940yWDOul','1701639mYPWNG','2356ZkBeba','93230ENbYPD','3jfVMRj','2570RuUSWS','18lnJbqM','3889004XHpIkW','client-ak','2303838vmYWWM','ClientAk','4613112SdUKpZ'];a89_0x3f08=function(){return _0x10ba32;};return a89_0x3f08();}export function isAuthMode(_0x5bda58){const _0x1c6f94=a89_0x4275de;return _0x5bda58===AUTH_MODE[_0x1c6f94(0x189)];}
1
+ const a89_0x201c2a=a89_0x10a2;function a89_0x1013(){const _0x2b5bd4=['391956cjBnLa','5256iqDaDb','215032VCzvuo','client-ak','494362VpIfyP','81gpQuOb','321APVebW','11933196zhoUeR','6470DSUziE','4482gfIbsJ','1248uyBYfz','ClientAk','220hkoaSg','9884cbZOWl'];a89_0x1013=function(){return _0x2b5bd4;};return a89_0x1013();}function a89_0x10a2(_0x4f69bc,_0xb075ff){_0x4f69bc=_0x4f69bc-0x1d4;const _0x101350=a89_0x1013();let _0x10a27d=_0x101350[_0x4f69bc];return _0x10a27d;}(function(_0x5701c2,_0x5b1de6){const _0x5e927f=a89_0x10a2,_0x512bac=_0x5701c2();while(!![]){try{const _0xc77852=-parseInt(_0x5e927f(0x1d5))/0x1+-parseInt(_0x5e927f(0x1de))/0x2*(-parseInt(_0x5e927f(0x1db))/0x3)+parseInt(_0x5e927f(0x1df))/0x4*(-parseInt(_0x5e927f(0x1dd))/0x5)+parseInt(_0x5e927f(0x1d6))/0x6*(parseInt(_0x5e927f(0x1d4))/0x7)+parseInt(_0x5e927f(0x1d7))/0x8*(parseInt(_0x5e927f(0x1da))/0x9)+parseInt(_0x5e927f(0x1e1))/0xa*(parseInt(_0x5e927f(0x1d9))/0xb)+-parseInt(_0x5e927f(0x1dc))/0xc;if(_0xc77852===_0x5b1de6)break;else _0x512bac['push'](_0x512bac['shift']());}catch(_0x40d87f){_0x512bac['push'](_0x512bac['shift']());}}}(a89_0x1013,0xdfee1));export const AUTH_MODE={'ClientAk':a89_0x201c2a(0x1d8)};export function isAuthMode(_0x2df3fe){const _0x28b3e0=a89_0x201c2a;return _0x2df3fe===AUTH_MODE[_0x28b3e0(0x1e0)];}
@@ -1 +1 @@
1
- const a90_0x52e1fe=a90_0x1508;(function(_0x3945be,_0x288886){const _0x176fe1=a90_0x1508,_0x59e62a=_0x3945be();while(!![]){try{const _0x1b6d5e=-parseInt(_0x176fe1(0xce))/0x1*(parseInt(_0x176fe1(0xee))/0x2)+-parseInt(_0x176fe1(0xe9))/0x3+parseInt(_0x176fe1(0xc1))/0x4*(-parseInt(_0x176fe1(0xec))/0x5)+parseInt(_0x176fe1(0xdd))/0x6+parseInt(_0x176fe1(0xc3))/0x7*(-parseInt(_0x176fe1(0xe7))/0x8)+parseInt(_0x176fe1(0xd9))/0x9*(-parseInt(_0x176fe1(0xf4))/0xa)+parseInt(_0x176fe1(0xcf))/0xb*(parseInt(_0x176fe1(0xf3))/0xc);if(_0x1b6d5e===_0x288886)break;else _0x59e62a['push'](_0x59e62a['shift']());}catch(_0x8a41c){_0x59e62a['push'](_0x59e62a['shift']());}}}(a90_0xa178,0x99c20));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a90_0x52e1fe(0xcd)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a90_0x52e1fe(0xc7)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a90_0xa178(){const _0x30ae52=['nonInteractive','Verbose\x20output','<expr>','cliDisplayName','Select\x20app\x20profile\x20by\x20name','fromEntries','boolean','Force\x20non-interactive\x20mode\x20(CI)','Show\x20help','cliBinName','17mxjdeD','2519ivTohi','clear','meowKey','appcode','string','production\x20|\x20development\x20|\x20daily','name','Name\x20filter','format','env','1449963UMuarX','json\x20|\x20pretty\x20|\x20compress','Clear\x20output','sqlcode','3456390GwRkzu','Use\x20global\x20config\x20scope','dryRun','yes','<name>','Override\x20appcode','params','dry-run','help','Environment','610672NswNHj','global','3150093vPafCC','Preview\x20operation\x20without\x20executing','Record\x20ID','185aYuvXi','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','3234LZvwjE','type','Skip\x20confirmation\x20for\x20high-risk\x20writes','Output\x20format','non-interactive','105348kXGAVN','10JmXYcm','Alias\x20for\x20--non-interactive','verbose','36364Yfkkap','SQL\x20query\x20code','35zdPGDo'];a90_0xa178=function(){return _0x30ae52;};return a90_0xa178();}export const GLOBAL_FLAGS=[{'name':a90_0x52e1fe(0xd2),'meowKey':a90_0x52e1fe(0xd2),'type':'string','description':a90_0x52e1fe(0xe2),'hint':'<code>'},{'name':'app','meowKey':'app','type':'string','description':a90_0x52e1fe(0xc8),'hint':a90_0x52e1fe(0xe1)},{'name':a90_0x52e1fe(0xd8),'meowKey':a90_0x52e1fe(0xd8),'type':a90_0x52e1fe(0xd3),'description':a90_0x52e1fe(0xe6),'hint':a90_0x52e1fe(0xd4)},{'name':'format','meowKey':a90_0x52e1fe(0xd7),'type':a90_0x52e1fe(0xd3),'description':a90_0x52e1fe(0xf1),'hint':a90_0x52e1fe(0xda)},{'name':'jq','meowKey':'jq','type':a90_0x52e1fe(0xd3),'description':a90_0x52e1fe(0xed),'hint':a90_0x52e1fe(0xc6)},{'name':a90_0x52e1fe(0xe4),'meowKey':a90_0x52e1fe(0xdf),'type':a90_0x52e1fe(0xca),'description':a90_0x52e1fe(0xea)},{'name':a90_0x52e1fe(0xe0),'meowKey':a90_0x52e1fe(0xe0),'type':a90_0x52e1fe(0xca),'description':a90_0x52e1fe(0xf0)},{'name':'non-interactive','meowKey':a90_0x52e1fe(0xc4),'type':a90_0x52e1fe(0xca),'description':a90_0x52e1fe(0xcb)},{'name':a90_0x52e1fe(0xe8),'meowKey':a90_0x52e1fe(0xe8),'type':a90_0x52e1fe(0xca),'description':a90_0x52e1fe(0xde)},{'name':'ci','meowKey':'ci','type':a90_0x52e1fe(0xca),'description':a90_0x52e1fe(0xf5),'hidden':!![]},{'name':a90_0x52e1fe(0xe5),'meowKey':a90_0x52e1fe(0xe5),'type':a90_0x52e1fe(0xca),'description':a90_0x52e1fe(0xcc)},{'name':'id','meowKey':'id','type':'string','description':a90_0x52e1fe(0xeb),'hidden':!![]},{'name':'name','meowKey':a90_0x52e1fe(0xd5),'type':a90_0x52e1fe(0xd3),'description':a90_0x52e1fe(0xd6),'hidden':!![]},{'name':'sqlcode','meowKey':a90_0x52e1fe(0xdc),'type':a90_0x52e1fe(0xd3),'description':a90_0x52e1fe(0xc2),'hidden':!![]},{'name':a90_0x52e1fe(0xe3),'meowKey':a90_0x52e1fe(0xe3),'type':a90_0x52e1fe(0xd3),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':'verbose','meowKey':a90_0x52e1fe(0xc0),'type':a90_0x52e1fe(0xca),'description':a90_0x52e1fe(0xc5),'hidden':!![]},{'name':a90_0x52e1fe(0xd0),'meowKey':a90_0x52e1fe(0xd0),'type':'boolean','description':a90_0x52e1fe(0xdb),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a90_0x52e1fe(0xd2),'app',a90_0x52e1fe(0xd8),a90_0x52e1fe(0xd7),'jq',a90_0x52e1fe(0xe4),a90_0x52e1fe(0xe0),a90_0x52e1fe(0xf2),'ci']);function a90_0x1508(_0x4e774d,_0xa572c0){_0x4e774d=_0x4e774d-0xc0;const _0xa17871=a90_0xa178();let _0x150882=_0xa17871[_0x4e774d];return _0x150882;}export function buildMeowFlags(){const _0x3c0812=a90_0x52e1fe;return Object[_0x3c0812(0xc9)](GLOBAL_FLAGS['map'](_0x2aa696=>[_0x2aa696[_0x3c0812(0xd1)],{'type':_0x2aa696[_0x3c0812(0xef)]}]));}
1
+ const a90_0x4c4084=a90_0x432a;(function(_0x319733,_0x2b6aaf){const _0x170a75=a90_0x432a,_0x4805ad=_0x319733();while(!![]){try{const _0x316e19=parseInt(_0x170a75(0x1fb))/0x1*(parseInt(_0x170a75(0x1fc))/0x2)+-parseInt(_0x170a75(0x219))/0x3+-parseInt(_0x170a75(0x210))/0x4*(-parseInt(_0x170a75(0x20d))/0x5)+-parseInt(_0x170a75(0x1f7))/0x6+-parseInt(_0x170a75(0x214))/0x7+parseInt(_0x170a75(0x1f1))/0x8+parseInt(_0x170a75(0x208))/0x9*(parseInt(_0x170a75(0x1f4))/0xa);if(_0x316e19===_0x2b6aaf)break;else _0x4805ad['push'](_0x4805ad['shift']());}catch(_0x6632ff){_0x4805ad['push'](_0x4805ad['shift']());}}}(a90_0x55d9,0x5a21c));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a90_0x4c4084(0x205)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a90_0x4c4084(0x209),'meowKey':'appcode','type':a90_0x4c4084(0x1ff),'description':a90_0x4c4084(0x1fd),'hint':a90_0x4c4084(0x215)},{'name':a90_0x4c4084(0x21a),'meowKey':a90_0x4c4084(0x21a),'type':'string','description':a90_0x4c4084(0x1fe),'hint':'<name>'},{'name':a90_0x4c4084(0x1fa),'meowKey':a90_0x4c4084(0x1fa),'type':a90_0x4c4084(0x1ff),'description':'Environment','hint':a90_0x4c4084(0x200)},{'name':a90_0x4c4084(0x1f2),'meowKey':'format','type':a90_0x4c4084(0x1ff),'description':'Output\x20format','hint':a90_0x4c4084(0x1f5)},{'name':'jq','meowKey':'jq','type':a90_0x4c4084(0x1ff),'description':a90_0x4c4084(0x212),'hint':'<expr>'},{'name':a90_0x4c4084(0x20f),'meowKey':a90_0x4c4084(0x204),'type':a90_0x4c4084(0x203),'description':a90_0x4c4084(0x211)},{'name':a90_0x4c4084(0x217),'meowKey':a90_0x4c4084(0x217),'type':a90_0x4c4084(0x203),'description':a90_0x4c4084(0x201)},{'name':'non-interactive','meowKey':a90_0x4c4084(0x213),'type':'boolean','description':a90_0x4c4084(0x202)},{'name':'global','meowKey':'global','type':a90_0x4c4084(0x203),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a90_0x4c4084(0x1f6),'hidden':!![]},{'name':a90_0x4c4084(0x206),'meowKey':a90_0x4c4084(0x206),'type':'boolean','description':a90_0x4c4084(0x20c)},{'name':'id','meowKey':'id','type':a90_0x4c4084(0x1ff),'description':'Record\x20ID','hidden':!![]},{'name':'name','meowKey':'name','type':a90_0x4c4084(0x1ff),'description':'Name\x20filter','hidden':!![]},{'name':a90_0x4c4084(0x218),'meowKey':a90_0x4c4084(0x218),'type':a90_0x4c4084(0x1ff),'description':a90_0x4c4084(0x1f9),'hidden':!![]},{'name':'params','meowKey':a90_0x4c4084(0x216),'type':a90_0x4c4084(0x1ff),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a90_0x4c4084(0x20a),'meowKey':a90_0x4c4084(0x20a),'type':a90_0x4c4084(0x203),'description':a90_0x4c4084(0x1f8),'hidden':!![]},{'name':a90_0x4c4084(0x1f3),'meowKey':a90_0x4c4084(0x1f3),'type':a90_0x4c4084(0x203),'description':'Clear\x20output','hidden':!![]}];function a90_0x432a(_0x2b1c13,_0x3cfd44){_0x2b1c13=_0x2b1c13-0x1f1;const _0x55d990=a90_0x55d9();let _0x432aea=_0x55d990[_0x2b1c13];return _0x432aea;}function a90_0x55d9(){const _0x347c4e=['465203iqDiUb','2XYqTJZ','Override\x20appcode','Select\x20app\x20profile\x20by\x20name','string','production\x20|\x20development\x20|\x20daily','Skip\x20confirmation\x20for\x20high-risk\x20writes','Force\x20non-interactive\x20mode\x20(CI)','boolean','dryRun','cliDisplayName','help','type','171yLbeCY','appcode','verbose','map','Show\x20help','15vQVLrC','non-interactive','dry-run','728668MLrXBR','Preview\x20operation\x20without\x20executing','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','nonInteractive','5103966NIqCLj','<code>','params','yes','sqlcode','1639611GMZeUq','app','3446384PuoBpS','format','clear','317290bFimPy','json\x20|\x20pretty\x20|\x20compress','Alias\x20for\x20--non-interactive','2402988RbuGjI','Verbose\x20output','SQL\x20query\x20code','env'];a90_0x55d9=function(){return _0x347c4e;};return a90_0x55d9();}export const PIPELINE_FLAG_NAMES=new Set(['appcode',a90_0x4c4084(0x21a),a90_0x4c4084(0x1fa),a90_0x4c4084(0x1f2),'jq',a90_0x4c4084(0x20f),a90_0x4c4084(0x217),a90_0x4c4084(0x20e),'ci']);export function buildMeowFlags(){const _0x4fa938=a90_0x4c4084;return Object['fromEntries'](GLOBAL_FLAGS[_0x4fa938(0x20b)](_0x1fa19b=>[_0x1fa19b['meowKey'],{'type':_0x1fa19b[_0x4fa938(0x207)]}]));}
@@ -1 +1 @@
1
- function a91_0x2381(){const _0x99ff75=['4065210xaNoWR','40940eybStX','main','write','3359280QMXlFh','114EiaHEA','3OAdivP','1121142TEiklg','7rvPMDP','429420CdpUkB','528689qKCHlG','4243728dUTyPO','compress'];a91_0x2381=function(){return _0x99ff75;};return a91_0x2381();}function a91_0x23de(_0x523f1e,_0x360773){_0x523f1e=_0x523f1e-0xf7;const _0x238128=a91_0x2381();let _0x23de87=_0x238128[_0x523f1e];return _0x23de87;}const a91_0x154f21=a91_0x23de;(function(_0x543992,_0xa08ee6){const _0x479213=a91_0x23de,_0x26d9be=_0x543992();while(!![]){try{const _0x593210=parseInt(_0x479213(0xfc))/0x1+-parseInt(_0x479213(0xf9))/0x2+-parseInt(_0x479213(0xf8))/0x3*(-parseInt(_0x479213(0xfb))/0x4)+parseInt(_0x479213(0x100))/0x5*(-parseInt(_0x479213(0xf7))/0x6)+parseInt(_0x479213(0xfa))/0x7*(parseInt(_0x479213(0xfd))/0x8)+-parseInt(_0x479213(0xff))/0x9+parseInt(_0x479213(0x103))/0xa;if(_0x593210===_0xa08ee6)break;else _0x26d9be['push'](_0x26d9be['shift']());}catch(_0xc4872d){_0x26d9be['push'](_0x26d9be['shift']());}}}(a91_0x2381,0x51b0d));export const DEFAULT_APP_PROFILE_NAME=a91_0x154f21(0x101);export const DEFAULT_CONFIG_VALUES={'env':'production','format':a91_0x154f21(0xfe),'locale':'en-US','riskLevel':a91_0x154f21(0x102)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a91_0x154f21(0xfe);
1
+ function a91_0x4f73(){const _0x5146f7=['production','20TMaSes','en-US','main','3967209oeZFVI','702233rFcHrC','256645mnDqum','2064UBCGSM','9352sYcQlz','15198280CYeNzC','100362QOjeIs','10975173QiYWJP','compress','96lEKgpK','15BYRhXJ'];a91_0x4f73=function(){return _0x5146f7;};return a91_0x4f73();}function a91_0x5c7f(_0x502fb4,_0x257aa3){_0x502fb4=_0x502fb4-0x1d5;const _0x4f730f=a91_0x4f73();let _0x5c7f11=_0x4f730f[_0x502fb4];return _0x5c7f11;}const a91_0x3e2f79=a91_0x5c7f;(function(_0x41cebf,_0xdc1238){const _0x527819=a91_0x5c7f,_0xb9ed03=_0x41cebf();while(!![]){try{const _0x3130ef=parseInt(_0x527819(0x1e0))/0x1*(-parseInt(_0x527819(0x1dc))/0x2)+parseInt(_0x527819(0x1d9))/0x3*(-parseInt(_0x527819(0x1da))/0x4)+-parseInt(_0x527819(0x1d8))/0x5+-parseInt(_0x527819(0x1df))/0x6*(-parseInt(_0x527819(0x1d7))/0x7)+parseInt(_0x527819(0x1db))/0x8+-parseInt(_0x527819(0x1d6))/0x9*(-parseInt(_0x527819(0x1e2))/0xa)+-parseInt(_0x527819(0x1dd))/0xb;if(_0x3130ef===_0xdc1238)break;else _0xb9ed03['push'](_0xb9ed03['shift']());}catch(_0x2eb586){_0xb9ed03['push'](_0xb9ed03['shift']());}}}(a91_0x4f73,0xee520));export const DEFAULT_APP_PROFILE_NAME=a91_0x3e2f79(0x1d5);export const DEFAULT_CONFIG_VALUES={'env':a91_0x3e2f79(0x1e1),'format':a91_0x3e2f79(0x1de),'locale':a91_0x3e2f79(0x1e3),'riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a91_0x3e2f79(0x1de);
@@ -1 +1 @@
1
- function a92_0x148e(_0x45287d,_0x25be0d){_0x45287d=_0x45287d-0x189;const _0x330e84=a92_0x330e();let _0x148e50=_0x330e84[_0x45287d];return _0x148e50;}const a92_0x3fbcf0=a92_0x148e;(function(_0x210ffd,_0x2f0c0c){const _0x512eae=a92_0x148e,_0x4498e4=_0x210ffd();while(!![]){try{const _0x451595=parseInt(_0x512eae(0x192))/0x1*(parseInt(_0x512eae(0x193))/0x2)+parseInt(_0x512eae(0x18f))/0x3*(parseInt(_0x512eae(0x18d))/0x4)+parseInt(_0x512eae(0x191))/0x5*(-parseInt(_0x512eae(0x18e))/0x6)+parseInt(_0x512eae(0x18a))/0x7+-parseInt(_0x512eae(0x189))/0x8*(parseInt(_0x512eae(0x18c))/0x9)+parseInt(_0x512eae(0x190))/0xa+parseInt(_0x512eae(0x18b))/0xb*(-parseInt(_0x512eae(0x195))/0xc);if(_0x451595===_0x2f0c0c)break;else _0x4498e4['push'](_0x4498e4['shift']());}catch(_0x3ed821){_0x4498e4['push'](_0x4498e4['shift']());}}}(a92_0x330e,0x72462));import{PRODUCT_CONFIG}from'../constant/product.js';function a92_0x330e(){const _0x5ba305=['156868NRtnBN','3192tUsGoG','21WPYZyE','5517360wyeYlE','5395fyrvyp','6IPRXYA','89686oxtJMm','skillSource','53016dPYcIL','npmPackageName','1642288cUcSDH','6055847bVRxQQ','242EgbsUY','36YDDBuL'];a92_0x330e=function(){return _0x5ba305;};return a92_0x330e();}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a92_0x3fbcf0(0x196)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a92_0x3fbcf0(0x194)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];
1
+ function a92_0x1132(){const _0x1d1ed3=['246NBycNN','4586620MWYOzP','3292KDRQIm','9pHoyEm','119WYKfZM','npmPackageName','33195720AImefb','125824AonqSm','skillSource','266288MZGerU','3963EaQcRJ','8592LobysS','2315JOYwQk','npmRegistryBaseUrl','7574StmKAQ'];a92_0x1132=function(){return _0x1d1ed3;};return a92_0x1132();}function a92_0x2933(_0x157a47,_0x2946fa){_0x157a47=_0x157a47-0x152;const _0x11327c=a92_0x1132();let _0x293336=_0x11327c[_0x157a47];return _0x293336;}const a92_0x49296c=a92_0x2933;(function(_0x4766d7,_0x5b814e){const _0x37967e=a92_0x2933,_0x255c38=_0x4766d7();while(!![]){try{const _0x4d7377=parseInt(_0x37967e(0x152))/0x1*(-parseInt(_0x37967e(0x153))/0x2)+-parseInt(_0x37967e(0x15d))/0x3*(parseInt(_0x37967e(0x155))/0x4)+parseInt(_0x37967e(0x15f))/0x5*(parseInt(_0x37967e(0x15e))/0x6)+-parseInt(_0x37967e(0x157))/0x7*(parseInt(_0x37967e(0x15a))/0x8)+parseInt(_0x37967e(0x156))/0x9*(-parseInt(_0x37967e(0x154))/0xa)+parseInt(_0x37967e(0x15c))/0xb+parseInt(_0x37967e(0x159))/0xc;if(_0x4d7377===_0x5b814e)break;else _0x255c38['push'](_0x255c38['shift']());}catch(_0xf5321d){_0x255c38['push'](_0x255c38['shift']());}}}(a92_0x1132,0xad067));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a92_0x49296c(0x158)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a92_0x49296c(0x15b)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a92_0x49296c(0x160)];
@@ -1 +1 @@
1
- function a93_0x5532(_0x4adb47,_0x255331){_0x4adb47=_0x4adb47-0x159;const _0x46bded=a93_0x46bd();let _0x55320a=_0x46bded[_0x4adb47];return _0x55320a;}const a93_0x3a14dc=a93_0x5532;(function(_0x4102ed,_0x59573f){const _0x16bb37=a93_0x5532,_0x31abf8=_0x4102ed();while(!![]){try{const _0x232931=-parseInt(_0x16bb37(0x15a))/0x1*(parseInt(_0x16bb37(0x166))/0x2)+-parseInt(_0x16bb37(0x162))/0x3+parseInt(_0x16bb37(0x15f))/0x4+-parseInt(_0x16bb37(0x165))/0x5+parseInt(_0x16bb37(0x161))/0x6*(parseInt(_0x16bb37(0x159))/0x7)+-parseInt(_0x16bb37(0x168))/0x8+parseInt(_0x16bb37(0x15c))/0x9*(parseInt(_0x16bb37(0x160))/0xa);if(_0x232931===_0x59573f)break;else _0x31abf8['push'](_0x31abf8['shift']());}catch(_0x3f449a){_0x31abf8['push'](_0x31abf8['shift']());}}}(a93_0x46bd,0x5e5b8));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x59d600){const _0x2bbc40=a93_0x5532;customApiDomain=_0x59d600?.[_0x2bbc40(0x164)],customUserDomain=_0x59d600?.[_0x2bbc40(0x15e)],customRuntimeDomain=_0x59d600?.[_0x2bbc40(0x16b)],customSkillHubDomain=_0x59d600?.[_0x2bbc40(0x15d)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x3a14dc(0x167)]['production'][a93_0x3a14dc(0x16d)]:PRODUCT_CONFIG[a93_0x3a14dc(0x167)][a93_0x3a14dc(0x16c)][a93_0x3a14dc(0x16d)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x3a14dc(0x167)][a93_0x3a14dc(0x163)][a93_0x3a14dc(0x169)]:PRODUCT_CONFIG['domains'][a93_0x3a14dc(0x16c)][a93_0x3a14dc(0x169)]);function a93_0x46bd(){const _0x475a3f=['18VqcfkZ','skillHubDomain','userDomain','1280876EeWbNW','5717330GBumkM','438lWGWNF','730443iJMcbL','production','apiDomain','212280sdvuAg','26822RZGPaz','domains','2497184HpgZrv','api','runtime','runtimeDomain','nonProduction','user','24787ryRphD','55efnqPd','skillhub'];a93_0x46bd=function(){return _0x475a3f;};return a93_0x46bd();}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x3a14dc(0x167)][a93_0x3a14dc(0x163)]['runtime']:PRODUCT_CONFIG[a93_0x3a14dc(0x167)][a93_0x3a14dc(0x16c)][a93_0x3a14dc(0x16a)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x3a14dc(0x167)][a93_0x3a14dc(0x163)][a93_0x3a14dc(0x15b)]:PRODUCT_CONFIG[a93_0x3a14dc(0x167)][a93_0x3a14dc(0x16c)][a93_0x3a14dc(0x15b)]);
1
+ const a93_0x35f222=a93_0x366e;function a93_0x366e(_0x215086,_0x4fe216){_0x215086=_0x215086-0x114;const _0x1e4ae4=a93_0x1e4a();let _0x366ec5=_0x1e4ae4[_0x215086];return _0x366ec5;}(function(_0xc02a6e,_0x4802f4){const _0x23fa79=a93_0x366e,_0x1acef2=_0xc02a6e();while(!![]){try{const _0x31036c=-parseInt(_0x23fa79(0x125))/0x1*(-parseInt(_0x23fa79(0x117))/0x2)+parseInt(_0x23fa79(0x123))/0x3*(-parseInt(_0x23fa79(0x11a))/0x4)+parseInt(_0x23fa79(0x128))/0x5*(parseInt(_0x23fa79(0x11c))/0x6)+parseInt(_0x23fa79(0x126))/0x7+-parseInt(_0x23fa79(0x120))/0x8+parseInt(_0x23fa79(0x119))/0x9+parseInt(_0x23fa79(0x122))/0xa*(-parseInt(_0x23fa79(0x127))/0xb);if(_0x31036c===_0x4802f4)break;else _0x1acef2['push'](_0x1acef2['shift']());}catch(_0x11bc1b){_0x1acef2['push'](_0x1acef2['shift']());}}}(a93_0x1e4a,0x2c34c));function a93_0x1e4a(){const _0x322d50=['1954799UaiRQu','145EyzMej','skillhub','runtime','runtimeDomain','production','2yLSFPm','user','2929932owuxJv','809960JWbMtu','skillHubDomain','6954aRNkjp','userDomain','apiDomain','api','802632exZdWE','domains','30vNbIKI','3ciIDcV','nonProduction','315818RPOpkC','2394259PClvOL'];a93_0x1e4a=function(){return _0x322d50;};return a93_0x1e4a();}import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x588aa5){const _0x1ef85a=a93_0x366e;customApiDomain=_0x588aa5?.[_0x1ef85a(0x11e)],customUserDomain=_0x588aa5?.[_0x1ef85a(0x11d)],customRuntimeDomain=_0x588aa5?.[_0x1ef85a(0x115)],customSkillHubDomain=_0x588aa5?.[_0x1ef85a(0x11b)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x35f222(0x121)][a93_0x35f222(0x116)][a93_0x35f222(0x118)]:PRODUCT_CONFIG['domains'][a93_0x35f222(0x124)]['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x35f222(0x121)][a93_0x35f222(0x116)]['api']:PRODUCT_CONFIG[a93_0x35f222(0x121)][a93_0x35f222(0x124)][a93_0x35f222(0x11f)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x35f222(0x121)][a93_0x35f222(0x116)][a93_0x35f222(0x114)]:PRODUCT_CONFIG['domains'][a93_0x35f222(0x124)][a93_0x35f222(0x114)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x35f222(0x121)][a93_0x35f222(0x116)][a93_0x35f222(0x129)]:PRODUCT_CONFIG[a93_0x35f222(0x121)]['nonProduction'][a93_0x35f222(0x129)]);
@@ -1 +1 @@
1
- const a94_0x1d532a=a94_0x144e;(function(_0x1994bd,_0x2017e3){const _0x4ad287=a94_0x144e,_0x104f8c=_0x1994bd();while(!![]){try{const _0x1920f0=-parseInt(_0x4ad287(0x121))/0x1+-parseInt(_0x4ad287(0x11e))/0x2+parseInt(_0x4ad287(0x125))/0x3+parseInt(_0x4ad287(0x123))/0x4*(parseInt(_0x4ad287(0x124))/0x5)+parseInt(_0x4ad287(0x126))/0x6+parseInt(_0x4ad287(0x11f))/0x7+-parseInt(_0x4ad287(0x120))/0x8;if(_0x1920f0===_0x2017e3)break;else _0x104f8c['push'](_0x104f8c['shift']());}catch(_0x59791c){_0x104f8c['push'](_0x104f8c['shift']());}}}(a94_0x220f,0x5d735));import{productEnv}from'../constant/product.js';function a94_0x144e(_0x75a93f,_0x20d933){_0x75a93f=_0x75a93f-0x11e;const _0x220fa0=a94_0x220f();let _0x144e59=_0x220fa0[_0x75a93f];return _0x144e59;}function a94_0x220f(){const _0x39e057=['4200852iObxql','production','dev','493252xeVWMK','4535363NtOcrQ','11948480EHWSqd','71803QRzZKn','daily','1658140JTZvIO','5qhLniz','1296528NYvDus'];a94_0x220f=function(){return _0x39e057;};return a94_0x220f();}export const RUNTIME_ENV_VALUES=[a94_0x1d532a(0x127),'development',a94_0x1d532a(0x122)];export function normalizeEnv(_0x19e596){const _0x4f9a9a=a94_0x1d532a;return _0x19e596==='online'?_0x4f9a9a(0x127):_0x19e596;}export function isProduction(_0x5aaabc){const _0x36bfa6=a94_0x1d532a;return normalizeEnv(_0x5aaabc)===_0x36bfa6(0x127);}export function isDaily(_0xfcad18){return normalizeEnv(_0xfcad18)==='daily';}export function isDev(_0x5ec86c){const _0x47c93d=a94_0x1d532a,_0x19438e=normalizeEnv(_0x5ec86c);return _0x19438e==='development'||_0x19438e===_0x47c93d(0x128);}let env=normalizeEnv(productEnv('ENV')||a94_0x1d532a(0x127));export function getEnv(){return env;}export function initEnv(_0x1a7cc5){env=normalizeEnv(_0x1a7cc5);}
1
+ const a94_0x4bb472=a94_0x2cf7;(function(_0x46842c,_0x4e5f19){const _0x27c815=a94_0x2cf7,_0x4084ca=_0x46842c();while(!![]){try{const _0x107680=-parseInt(_0x27c815(0xa3))/0x1*(-parseInt(_0x27c815(0xa8))/0x2)+parseInt(_0x27c815(0xa7))/0x3+-parseInt(_0x27c815(0xad))/0x4+parseInt(_0x27c815(0xa0))/0x5+-parseInt(_0x27c815(0xa1))/0x6+-parseInt(_0x27c815(0xa4))/0x7+parseInt(_0x27c815(0xac))/0x8;if(_0x107680===_0x4e5f19)break;else _0x4084ca['push'](_0x4084ca['shift']());}catch(_0x240a5f){_0x4084ca['push'](_0x4084ca['shift']());}}}(a94_0x394d,0x980e1));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=['production',a94_0x4bb472(0xa6),a94_0x4bb472(0xa9)];export function normalizeEnv(_0xbc62d2){const _0x3a56ca=a94_0x4bb472;return _0xbc62d2===_0x3a56ca(0xa5)?_0x3a56ca(0xab):_0xbc62d2;}export function isProduction(_0x42f9ea){const _0x1d0d8f=a94_0x4bb472;return normalizeEnv(_0x42f9ea)===_0x1d0d8f(0xab);}export function isDaily(_0x30b959){const _0x332638=a94_0x4bb472;return normalizeEnv(_0x30b959)===_0x332638(0xa9);}function a94_0x2cf7(_0x339bd7,_0x2bb7ae){_0x339bd7=_0x339bd7-0xa0;const _0x394de7=a94_0x394d();let _0x2cf772=_0x394de7[_0x339bd7];return _0x2cf772;}export function isDev(_0x5d85cf){const _0x5b7925=a94_0x4bb472,_0x3add9f=normalizeEnv(_0x5d85cf);return _0x3add9f===_0x5b7925(0xa6)||_0x3add9f===_0x5b7925(0xaa);}let env=normalizeEnv(productEnv(a94_0x4bb472(0xa2))||a94_0x4bb472(0xab));export function getEnv(){return env;}function a94_0x394d(){const _0x2298f5=['708342YSjzNE','44426QmRuaE','daily','dev','production','22535328WsLzYq','4120820WvACEw','199085PWthms','7321302hWEXcr','ENV','32mgqMjH','6512968LGyuat','online','development'];a94_0x394d=function(){return _0x2298f5;};return a94_0x394d();}export function initEnv(_0x21889b){env=normalizeEnv(_0x21889b);}
@@ -1 +1 @@
1
- const a95_0x27fa2a=a95_0x2888;function a95_0x2888(_0x566190,_0x33fb04){_0x566190=_0x566190-0x1f4;const _0x2239ea=a95_0x2239();let _0x288812=_0x2239ea[_0x566190];return _0x288812;}function a95_0x2239(){const _0x22f710=['2144110mkLyks','1169940NhCskR','2219242TXxlFL','15186352Hjmkqy','pretty','92888YUFSxA','39684105nvsnzW','compress','7RsCxSa','11385774OpVHIo','4AuQWbc','json'];a95_0x2239=function(){return _0x22f710;};return a95_0x2239();}(function(_0x5ad998,_0x1b3ee8){const _0x37aea7=a95_0x2888,_0x3d08ec=_0x5ad998();while(!![]){try{const _0x4cdd99=parseInt(_0x37aea7(0x1f8))/0x1+parseInt(_0x37aea7(0x1f5))/0x2+-parseInt(_0x37aea7(0x1f4))/0x3+parseInt(_0x37aea7(0x1fd))/0x4*(-parseInt(_0x37aea7(0x1ff))/0x5)+-parseInt(_0x37aea7(0x1fc))/0x6+-parseInt(_0x37aea7(0x1fb))/0x7*(parseInt(_0x37aea7(0x1f6))/0x8)+parseInt(_0x37aea7(0x1f9))/0x9;if(_0x4cdd99===_0x1b3ee8)break;else _0x3d08ec['push'](_0x3d08ec['shift']());}catch(_0xa7d852){_0x3d08ec['push'](_0x3d08ec['shift']());}}}(a95_0x2239,0xf3709));export const OUTPUT_FORMAT_VALUES=[a95_0x27fa2a(0x1fe),a95_0x27fa2a(0x1f7),a95_0x27fa2a(0x1fa)];
1
+ const a95_0x365b01=a95_0x3f4a;(function(_0x23c5c4,_0x4939a4){const _0x4224d9=a95_0x3f4a,_0x513bf9=_0x23c5c4();while(!![]){try{const _0x1f6bbe=-parseInt(_0x4224d9(0x155))/0x1+parseInt(_0x4224d9(0x153))/0x2*(parseInt(_0x4224d9(0x152))/0x3)+-parseInt(_0x4224d9(0x14f))/0x4+parseInt(_0x4224d9(0x157))/0x5+-parseInt(_0x4224d9(0x14e))/0x6*(parseInt(_0x4224d9(0x150))/0x7)+-parseInt(_0x4224d9(0x151))/0x8+parseInt(_0x4224d9(0x154))/0x9*(parseInt(_0x4224d9(0x156))/0xa);if(_0x1f6bbe===_0x4939a4)break;else _0x513bf9['push'](_0x513bf9['shift']());}catch(_0x5b111b){_0x513bf9['push'](_0x513bf9['shift']());}}}(a95_0x416a,0xbcacc));function a95_0x3f4a(_0x1bda9e,_0x136b26){_0x1bda9e=_0x1bda9e-0x14e;const _0x416ab0=a95_0x416a();let _0x3f4ac0=_0x416ab0[_0x1bda9e];return _0x3f4ac0;}export const OUTPUT_FORMAT_VALUES=[a95_0x365b01(0x159),a95_0x365b01(0x158),'compress'];function a95_0x416a(){const _0x3d900e=['93lRoCoo','6784qFGTnY','21861531CCUirp','1441510eySNPN','20sNbJZV','3790355ADzOUL','pretty','json','870xrUOGR','6052476ngTmTK','73003tQBymL','3853560AJbksV'];a95_0x416a=function(){return _0x3d900e;};return a95_0x416a();}
@@ -1 +1 @@
1
- function a96_0x4d2a(_0x11e542,_0x552015){_0x11e542=_0x11e542-0x1f0;const _0x473257=a96_0x4732();let _0x4d2a9f=_0x473257[_0x11e542];return _0x4d2a9f;}function a96_0x4732(){const _0x179479=['https://runtime.lovrabet.com','lovrabet/lovrabet-cli','15ZDxwMa','RABETBASE','legacyEnvPrefixes','cli:lovrabet-runtime','29248370pwwroE','168XNwQOz','1252296eEjDHa','218072yqBwXO','https://api.lovrabet.com','lovrabet','464097aoUOzB','https://skills-daily.lovrabet.com','https://user.lovrabet.com','envPrefix','101818NWyvaf','Lovrabet\x20Runtime\x20CLI','LOVRABET','https://daily-runtime.lovrabet.com','SKIP_NPX_SKILLS','https://registry.npmjs.org','/user/ak','@lovrabet/lovrabet-cli','map','.lovrabet-runtime.log','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','3258872kODLWp','18UaKBdL','1999884pXvinZ'];a96_0x4732=function(){return _0x179479;};return a96_0x4732();}const a96_0x30283b=a96_0x4d2a;(function(_0x1958e1,_0x22e312){const _0x1fd0b1=a96_0x4d2a,_0xfcbb19=_0x1958e1();while(!![]){try{const _0x1c1699=parseInt(_0x1fd0b1(0x204))/0x1*(-parseInt(_0x1fd0b1(0x1f2))/0x2)+-parseInt(_0x1fd0b1(0x200))/0x3+-parseInt(_0x1fd0b1(0x1f1))/0x4+-parseInt(_0x1fd0b1(0x1f6))/0x5*(parseInt(_0x1fd0b1(0x1f3))/0x6)+parseInt(_0x1fd0b1(0x1fb))/0x7*(parseInt(_0x1fd0b1(0x1fd))/0x8)+-parseInt(_0x1fd0b1(0x1fc))/0x9+parseInt(_0x1fd0b1(0x1fa))/0xa;if(_0x1c1699===_0x22e312)break;else _0xfcbb19['push'](_0xfcbb19['shift']());}catch(_0x5ea0b3){_0xfcbb19['push'](_0xfcbb19['shift']());}}}(a96_0x4732,0x874cc));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a96_0x30283b(0x205),'npmPackageName':a96_0x30283b(0x20b),'skillSource':a96_0x30283b(0x1f5),'internalSkillSource':a96_0x30283b(0x1f0),'globalSkillName':a96_0x30283b(0x1ff),'npmRegistryBaseUrl':a96_0x30283b(0x209),'envPrefix':a96_0x30283b(0x206),'legacyEnvPrefixes':[a96_0x30283b(0x1f7)],'configFileNames':['.lovrabet.json','.lovrabetrc'],'newConfigFileName':'.lovrabet.json','homeDirName':'.lovrabet','logFileName':a96_0x30283b(0x20d),'invokeSource':a96_0x30283b(0x1f9),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a96_0x30283b(0x208),'domains':{'production':{'user':a96_0x30283b(0x202),'api':a96_0x30283b(0x1fe),'runtime':a96_0x30283b(0x1f4),'skillhub':'https://skills.lovrabet.com'},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':'https://daily-api.lovrabet.com','runtime':a96_0x30283b(0x207),'skillhub':a96_0x30283b(0x201)}},'accessKeyCreatePath':a96_0x30283b(0x20a)};export function productEnvName(_0x55da89){const _0x2e3b80=a96_0x30283b;return PRODUCT_CONFIG[_0x2e3b80(0x203)]+'_'+_0x55da89;}export function productEnvNames(_0x48f152){const _0x4f3954=a96_0x30283b;return[productEnvName(_0x48f152),...PRODUCT_CONFIG[_0x4f3954(0x1f8)][_0x4f3954(0x20c)](_0x31c28c=>_0x31c28c+'_'+_0x48f152)];}export function productEnv(_0x3be63b){for(const _0x5429d7 of productEnvNames(_0x3be63b)){const _0x3ed047=process.env[_0x5429d7];if(_0x3ed047!==undefined)return _0x3ed047;}return undefined;}
1
+ function a96_0x32bd(_0x45225f,_0x4b641b){_0x45225f=_0x45225f-0x1bd;const _0x55e87c=a96_0x55e8();let _0x32bd98=_0x55e87c[_0x45225f];return _0x32bd98;}const a96_0x161b4d=a96_0x32bd;(function(_0x4bec97,_0x697be6){const _0x336cef=a96_0x32bd,_0x2db904=_0x4bec97();while(!![]){try{const _0x2a435e=parseInt(_0x336cef(0x1be))/0x1*(parseInt(_0x336cef(0x1d6))/0x2)+-parseInt(_0x336cef(0x1cd))/0x3+-parseInt(_0x336cef(0x1c3))/0x4*(-parseInt(_0x336cef(0x1c2))/0x5)+-parseInt(_0x336cef(0x1c1))/0x6+-parseInt(_0x336cef(0x1d7))/0x7+-parseInt(_0x336cef(0x1ce))/0x8+parseInt(_0x336cef(0x1c9))/0x9*(parseInt(_0x336cef(0x1d4))/0xa);if(_0x2a435e===_0x697be6)break;else _0x2db904['push'](_0x2db904['shift']());}catch(_0x1cedec){_0x2db904['push'](_0x2db904['shift']());}}}(a96_0x55e8,0x75f87));export const PRODUCT_CONFIG={'cliBinName':a96_0x161b4d(0x1c4),'cliDisplayName':a96_0x161b4d(0x1cb),'npmPackageName':a96_0x161b4d(0x1d9),'skillSource':a96_0x161b4d(0x1c5),'internalSkillSource':a96_0x161b4d(0x1cf),'globalSkillName':a96_0x161b4d(0x1c4),'npmRegistryBaseUrl':a96_0x161b4d(0x1db),'envPrefix':a96_0x161b4d(0x1d3),'legacyEnvPrefixes':[a96_0x161b4d(0x1d1)],'configFileNames':[a96_0x161b4d(0x1d8),a96_0x161b4d(0x1d0)],'newConfigFileName':a96_0x161b4d(0x1d8),'homeDirName':'.lovrabet','logFileName':a96_0x161b4d(0x1d2),'invokeSource':a96_0x161b4d(0x1dc),'userCenterDisplayName':a96_0x161b4d(0x1c8),'skipNpxSkillsEnvSuffix':a96_0x161b4d(0x1c6),'domains':{'production':{'user':a96_0x161b4d(0x1c7),'api':a96_0x161b4d(0x1c0),'runtime':a96_0x161b4d(0x1dd),'skillhub':a96_0x161b4d(0x1ca)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':'https://daily-api.lovrabet.com','runtime':a96_0x161b4d(0x1bd),'skillhub':'https://skills-daily.lovrabet.com'}},'accessKeyCreatePath':a96_0x161b4d(0x1d5)};export function productEnvName(_0x5f1042){const _0x5ab400=a96_0x161b4d;return PRODUCT_CONFIG[_0x5ab400(0x1bf)]+'_'+_0x5f1042;}export function productEnvNames(_0x174247){const _0x5522a2=a96_0x161b4d;return[productEnvName(_0x174247),...PRODUCT_CONFIG[_0x5522a2(0x1cc)][_0x5522a2(0x1da)](_0x3a6a05=>_0x3a6a05+'_'+_0x174247)];}function a96_0x55e8(){const _0x1cdcaf=['https://user.lovrabet.com','Lovrabet\x20User\x20Center','2331joEFnO','https://skills.lovrabet.com','Lovrabet\x20Runtime\x20CLI','legacyEnvPrefixes','2018040nqENpG','584376rVaWDT','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','.lovrabetrc','RABETBASE','.lovrabet-runtime.log','LOVRABET','26710fTrjqV','/user/ak','10tWODyz','2269225qUUDIS','.lovrabet.json','@lovrabet/lovrabet-cli','map','https://registry.npmjs.org','cli:lovrabet-runtime','https://runtime.lovrabet.com','https://daily-runtime.lovrabet.com','115036WljQPA','envPrefix','https://api.lovrabet.com','864534dlliNC','5boWTgJ','1720916hwJeRy','lovrabet','lovrabet/lovrabet-cli','SKIP_NPX_SKILLS'];a96_0x55e8=function(){return _0x1cdcaf;};return a96_0x55e8();}export function productEnv(_0x3ad26c){for(const _0x3b4fc0 of productEnvNames(_0x3ad26c)){const _0xb670ee=process.env[_0x3b4fc0];if(_0xb670ee!==undefined)return _0xb670ee;}return undefined;}
@@ -1 +1 @@
1
- const a97_0x43addf=a97_0x6447;function a97_0x389a(){const _0x3e6d05=['write','7YjUzxQ','77052jSPDJV','125040FbcTdy','103809VmlMTO','read','270720siHjoF','3wbiwwq','380382CGWWBN','889020zZUGLJ','484857JiHuro','high-risk-write'];a97_0x389a=function(){return _0x3e6d05;};return a97_0x389a();}function a97_0x6447(_0x1ca031,_0x2cb3c7){_0x1ca031=_0x1ca031-0x144;const _0x389a49=a97_0x389a();let _0x644712=_0x389a49[_0x1ca031];return _0x644712;}(function(_0x20060b,_0x20991f){const _0x34c358=a97_0x6447,_0x33d17f=_0x20060b();while(!![]){try{const _0x4f4d51=parseInt(_0x34c358(0x14c))/0x1+parseInt(_0x34c358(0x144))/0x2*(-parseInt(_0x34c358(0x14f))/0x3)+-parseInt(_0x34c358(0x14e))/0x4+parseInt(_0x34c358(0x145))/0x5+parseInt(_0x34c358(0x14a))/0x6*(parseInt(_0x34c358(0x149))/0x7)+parseInt(_0x34c358(0x14b))/0x8+parseInt(_0x34c358(0x146))/0x9;if(_0x4f4d51===_0x20991f)break;else _0x33d17f['push'](_0x33d17f['shift']());}catch(_0x3a2636){_0x33d17f['push'](_0x33d17f['shift']());}}}(a97_0x389a,0x19e67));export const RISK_LEVEL_VALUES=[a97_0x43addf(0x14d),a97_0x43addf(0x148),a97_0x43addf(0x147)];
1
+ function a97_0x3664(_0x70ade3,_0x94d6c8){_0x70ade3=_0x70ade3-0x170;const _0x370a97=a97_0x370a();let _0x366480=_0x370a97[_0x70ade3];return _0x366480;}const a97_0x5ea992=a97_0x3664;function a97_0x370a(){const _0x5d464a=['read','947061ObCdOs','2451537BZclTt','102361opniTH','72ompmCq','330IvRzVg','83560yOXozm','4760736RtiMTW','634516krQGzW','3PTCCsn','235tvTLxG','high-risk-write','98012LAxzPu'];a97_0x370a=function(){return _0x5d464a;};return a97_0x370a();}(function(_0x1104eb,_0x41383e){const _0x5e23bd=a97_0x3664,_0x5bf83b=_0x1104eb();while(!![]){try{const _0x8051f=parseInt(_0x5e23bd(0x174))/0x1+parseInt(_0x5e23bd(0x17b))/0x2*(parseInt(_0x5e23bd(0x17c))/0x3)+parseInt(_0x5e23bd(0x172))/0x4*(-parseInt(_0x5e23bd(0x170))/0x5)+-parseInt(_0x5e23bd(0x178))/0x6*(-parseInt(_0x5e23bd(0x176))/0x7)+-parseInt(_0x5e23bd(0x17a))/0x8+-parseInt(_0x5e23bd(0x177))/0x9*(-parseInt(_0x5e23bd(0x179))/0xa)+parseInt(_0x5e23bd(0x175))/0xb;if(_0x8051f===_0x41383e)break;else _0x5bf83b['push'](_0x5bf83b['shift']());}catch(_0x3a4ebb){_0x5bf83b['push'](_0x5bf83b['shift']());}}}(a97_0x370a,0x954ee));export const RISK_LEVEL_VALUES=[a97_0x5ea992(0x173),'write',a97_0x5ea992(0x171)];
@@ -1 +1 @@
1
- const a98_0x4bf8b4=a98_0x4cc5;function a98_0xfc94(){const _0x593ebc=['4690420GbHwGI','836467uwVFnd','4526328rUVxRm','domains','1399089tMTSvK','5109216ucGwgO','accessKeyCreatePath','user','production','4094525IsfpbB','2475094TmbFUv'];a98_0xfc94=function(){return _0x593ebc;};return a98_0xfc94();}(function(_0x42beb7,_0x25b15b){const _0x2a8539=a98_0x4cc5,_0x186146=_0x42beb7();while(!![]){try{const _0x4be6d0=parseInt(_0x2a8539(0x142))/0x1+-parseInt(_0x2a8539(0x140))/0x2+parseInt(_0x2a8539(0x145))/0x3+parseInt(_0x2a8539(0x146))/0x4+parseInt(_0x2a8539(0x13f))/0x5+-parseInt(_0x2a8539(0x143))/0x6+-parseInt(_0x2a8539(0x141))/0x7;if(_0x4be6d0===_0x25b15b)break;else _0x186146['push'](_0x186146['shift']());}catch(_0x2e137a){_0x186146['push'](_0x186146['shift']());}}}(a98_0xfc94,0xb3f14));import{PRODUCT_CONFIG}from'../constant/product.js';function a98_0x4cc5(_0x149dd9,_0x51be6f){_0x149dd9=_0x149dd9-0x13c;const _0xfc9489=a98_0xfc94();let _0x4cc5f8=_0xfc9489[_0x149dd9];return _0x4cc5f8;}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a98_0x4bf8b4(0x144)][a98_0x4bf8b4(0x13e)][a98_0x4bf8b4(0x13d)]+PRODUCT_CONFIG[a98_0x4bf8b4(0x13c)];
1
+ const a98_0x1e9d5c=a98_0xc9ea;(function(_0x14b648,_0x4545e8){const _0x3ed88e=a98_0xc9ea,_0x100c68=_0x14b648();while(!![]){try{const _0x24973a=-parseInt(_0x3ed88e(0x115))/0x1*(parseInt(_0x3ed88e(0x110))/0x2)+-parseInt(_0x3ed88e(0x10c))/0x3+parseInt(_0x3ed88e(0x117))/0x4*(-parseInt(_0x3ed88e(0x111))/0x5)+parseInt(_0x3ed88e(0x116))/0x6*(-parseInt(_0x3ed88e(0x10d))/0x7)+-parseInt(_0x3ed88e(0x11a))/0x8*(parseInt(_0x3ed88e(0x119))/0x9)+parseInt(_0x3ed88e(0x10f))/0xa*(-parseInt(_0x3ed88e(0x114))/0xb)+-parseInt(_0x3ed88e(0x118))/0xc*(-parseInt(_0x3ed88e(0x10e))/0xd);if(_0x24973a===_0x4545e8)break;else _0x100c68['push'](_0x100c68['shift']());}catch(_0xfbfa5d){_0x100c68['push'](_0x100c68['shift']());}}}(a98_0x169b,0xa4565));import{PRODUCT_CONFIG}from'../constant/product.js';function a98_0x169b(){const _0x461089=['domains','3519699QfUMTQ','329IutMGc','150033ETCipJ','407590dpquDS','62796jvwPIg','2577835HwDUqB','user','accessKeyCreatePath','44kXsAoK','27uPRAEP','48270XxvbJQ','4FpaFWr','5280kxwdar','3981654DqKhib','24UJPLTx'];a98_0x169b=function(){return _0x461089;};return a98_0x169b();}function a98_0xc9ea(_0x4b25b2,_0x4e1761){_0x4b25b2=_0x4b25b2-0x10b;const _0x169b4e=a98_0x169b();let _0xc9eab5=_0x169b4e[_0x4b25b2];return _0xc9eab5;}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a98_0x1e9d5c(0x10b)]['production'][a98_0x1e9d5c(0x112)]+PRODUCT_CONFIG[a98_0x1e9d5c(0x113)];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a99_0x4c1cad=a99_0x30e7;(function(_0x4410b5,_0x494c04){const _0x32f63b=a99_0x30e7,_0x54f1d1=_0x4410b5();while(!![]){try{const _0x2cc9c0=-parseInt(_0x32f63b(0x10c))/0x1*(parseInt(_0x32f63b(0x104))/0x2)+-parseInt(_0x32f63b(0x114))/0x3+-parseInt(_0x32f63b(0x12c))/0x4+-parseInt(_0x32f63b(0xf6))/0x5*(parseInt(_0x32f63b(0x124))/0x6)+parseInt(_0x32f63b(0x127))/0x7+-parseInt(_0x32f63b(0x130))/0x8+-parseInt(_0x32f63b(0x10f))/0x9*(-parseInt(_0x32f63b(0x125))/0xa);if(_0x2cc9c0===_0x494c04)break;else _0x54f1d1['push'](_0x54f1d1['shift']());}catch(_0x2818d4){_0x54f1d1['push'](_0x54f1d1['shift']());}}}(a99_0x4fef,0x46afa));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';function a99_0x30e7(_0x1cf047,_0x241746){_0x1cf047=_0x1cf047-0xf5;const _0x4fefdf=a99_0x4fef();let _0x30e71a=_0x4fefdf[_0x1cf047];return _0x30e71a;}const CONFIG_NAMES=PRODUCT_CONFIG[a99_0x4c1cad(0x100)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG['newConfigFileName'];function a99_0x4fef(){const _0x2e6cfd=['EPERM','app','some','FORMAT','locale','.tmp','./constant/env.js','project','9012YAMiQn','18996130ciALrT','cwd','1815044dYPzPA','global','setRawMode','string','projectConfig','2138464ibQijS','missing','argv','setLogPath','1901040CmkjvL','daily','trim','./constant/domain.js','env','setRawCommand','skillHubDomain','runtimeDomain','APPCODE','isTTY','pageSize','online','PAGE_SIZE','format','raw','development','VERBOSE','local-alias','1835dgMPxO','object','riskLevel','slice','isRaw','inherit','explicit','accessKey','code','write','configFileNames','ACCESS_KEY','empty','production','1234bbMcay','EACCES','cache','high-risk-write','read','apps','appcode','userDomain','714EVvNbf','message','APP','9vmrdRD','maxRisk','defaultApp','stringify','apiDomain','316071AXJtzA','stdin','utf8','top-level','stdout','parse','host','true'];a99_0x4fef=function(){return _0x2e6cfd;};return a99_0x4fef();}function resolveConfigPath(_0x21322b){for(const _0x2c3086 of CONFIG_NAMES){const _0x28f6c6=resolve(_0x21322b,_0x2c3086);if(existsSync(_0x28f6c6))return _0x28f6c6;}return undefined;}export function resolveWriteConfigPath(_0x3c237e){const _0x35ddfa=a99_0x4c1cad,_0x5ec3d6=_0x3c237e===_0x35ddfa(0x123)?process['cwd']():homedir(),_0x4b1ddc=resolveConfigPath(_0x5ec3d6);return _0x4b1ddc??resolve(_0x5ec3d6,NEW_CONFIG_NAME);}export function readConfigFile(_0x106289){const _0x57b67a=a99_0x4c1cad;try{if(existsSync(_0x106289)){const _0x51af85=readFileSync(_0x106289,{'encoding':'utf8'});if(_0x51af85){const _0x2792e6=JSON[_0x57b67a(0x119)](_0x51af85);return migrateOnlineEnv(_0x106289,_0x2792e6),_0x2792e6;}}}catch{}return{};}function migrateOnlineEnv(_0x258d3f,_0x35bf9c){const _0x272154=a99_0x4c1cad;let _0x4d4822=![];_0x35bf9c[_0x272154(0x134)]===_0x272154(0x13b)&&(_0x35bf9c['env']=_0x272154(0x103),_0x4d4822=!![]);if(_0x35bf9c[_0x272154(0x109)]&&typeof _0x35bf9c[_0x272154(0x109)]===_0x272154(0xf7))for(const _0x37dcbe of Object['values'](_0x35bf9c[_0x272154(0x109)])){_0x37dcbe&&_0x37dcbe[_0x272154(0x134)]==='online'&&(_0x37dcbe['env']='production',_0x4d4822=!![]);}if(_0x4d4822)try{writeConfigFile(_0x258d3f,_0x35bf9c);}catch{}}export function writeConfigFile(_0x4692af,_0x50d732){const _0x586467=a99_0x4c1cad,_0x3d0f45=dirname(_0x4692af);!existsSync(_0x3d0f45)&&mkdirSync(_0x3d0f45,{'recursive':!![]});const _0x58a5ce=_0x4692af+_0x586467(0x121);try{writeFileSync(_0x58a5ce,JSON[_0x586467(0x112)](_0x50d732,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x58a5ce,_0x4692af);}catch(_0x5c9d5d){if(_0x5c9d5d[_0x586467(0xfe)]===_0x586467(0x11c)||_0x5c9d5d[_0x586467(0xfe)]==='EXDEV'||_0x5c9d5d['code']===_0x586467(0x105)){writeFileSync(_0x4692af,JSON[_0x586467(0x112)](_0x50d732,null,0x2)+'\x0a',{'encoding':_0x586467(0x116)});try{unlinkSync(_0x58a5ce);}catch{}}else throw _0x5c9d5d;}}catch(_0x3947f2){try{unlinkSync(_0x58a5ce);}catch{}throw _0x3947f2;}}export function isNonInteractiveMode(_0x2661f8){const _0x20b9e5=a99_0x4c1cad;return!!(_0x2661f8['nonInteractive']||_0x2661f8['ci']||productEnvNames('CI')[_0x20b9e5(0x11e)](_0x1b302e=>process.env[_0x1b302e]===_0x20b9e5(0x11b))||process.env.CI===_0x20b9e5(0x11b)||!process[_0x20b9e5(0x118)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x343ce3=a99_0x4c1cad;if(!process[_0x343ce3(0x115)][_0x343ce3(0x139)])return![];try{const _0x247ad9=process[_0x343ce3(0x115)][_0x343ce3(0xfa)];return process[_0x343ce3(0x115)][_0x343ce3(0x129)](!![]),process[_0x343ce3(0x115)][_0x343ce3(0x129)](_0x247ad9??![]),!![];}catch{return![];}}export async function createContext(_0x5f3b3c){const _0x19865b=a99_0x4c1cad,_0xfbb0a0=readRawConfig(),_0x5cd56b=buildConfig(_0xfbb0a0,_0x5f3b3c);await initGlobalEnvironment(_0x5cd56b);const {getUserDomain:_0x33dad4,getApiDomain:_0x327704}=await import(_0x19865b(0x133)),_0x8115da={'apiDomain':_0x327704(),'userDomain':_0x33dad4()},_0x1a4d09=await buildAuth(_0x5cd56b);logger[_0x19865b(0x12f)](process['cwd']());const _0x2917f4=(CLI_BIN_NAME+'\x20'+process[_0x19865b(0x12e)][_0x19865b(0xf9)](0x2)['join']('\x20'))[_0x19865b(0x132)]();logger[_0x19865b(0x135)](_0x2917f4);const _0x1bc4ec=isNonInteractiveMode(_0x5f3b3c);return{'config':_0x5cd56b,'auth':_0x1a4d09,'logger':logger,'env':_0x8115da,'nonInteractive':_0x1bc4ec};}export function buildConfigFromFlags(_0xb61c2f){return buildConfig(readRawConfig(),_0xb61c2f);}export function getLocalAppAliases(_0x5ed893){const _0x3b6694=a99_0x4c1cad;return _0x5ed893[_0x3b6694(0x109)]&&typeof _0x5ed893[_0x3b6694(0x109)]===_0x3b6694(0xf7)?_0x5ed893[_0x3b6694(0x109)]:{};}export function resolveLocalAppAliasCode(_0x13b73e,_0x26f0c8){const _0x18b4a0=a99_0x4c1cad;if(!_0x26f0c8)return undefined;const _0x58b897=getLocalAppAliases(_0x13b73e)[_0x26f0c8],_0x36c613=_0x58b897?.[_0x18b4a0(0x10a)];return typeof _0x36c613==='string'&&_0x36c613[_0x18b4a0(0x132)]()?_0x36c613[_0x18b4a0(0x132)]():undefined;}export function readAppCodeFromConfig(){const _0x336cde=a99_0x4c1cad,_0x4e6dbc=readRawConfig(),_0x24655c=_0x4e6dbc[_0x336cde(0x10a)]??_0x4e6dbc[_0x336cde(0x11d)];if(typeof _0x24655c===_0x336cde(0x12a)&&_0x24655c[_0x336cde(0x132)]())return _0x24655c[_0x336cde(0x132)]();const _0x11a48b=resolveLocalAppAliasCode(_0x4e6dbc,typeof _0x4e6dbc[_0x336cde(0x111)]===_0x336cde(0x12a)?_0x4e6dbc[_0x336cde(0x111)]:undefined);if(_0x11a48b)return _0x11a48b;const _0x26d414=normalizeEnv(String(_0x4e6dbc[_0x336cde(0x134)]||_0x336cde(0x103))),_0x155285=isDaily(_0x26d414)?_0x336cde(0x131):isDev(_0x26d414)?'development':'production',_0x4d2717=resolveCachedAppCode(typeof _0x4e6dbc[_0x336cde(0x111)]===_0x336cde(0x12a)?_0x4e6dbc[_0x336cde(0x111)]:undefined,_0x155285,typeof _0x4e6dbc[_0x336cde(0xfd)]===_0x336cde(0x12a)?_0x4e6dbc[_0x336cde(0xfd)]:undefined);if(_0x4d2717)return _0x4d2717;const _0x37937f=Object['values'](getLocalAppAliases(_0x4e6dbc))['find'](_0x4a00ba=>_0x4a00ba?.[_0x336cde(0x10a)]);return typeof _0x37937f?.['appcode']===_0x336cde(0x12a)&&_0x37937f['appcode'][_0x336cde(0x132)]()?_0x37937f[_0x336cde(0x10a)]['trim']():undefined;}export function readScopedConfig(_0x460ece){const _0xe7f049=a99_0x4c1cad,_0x584224=_0x460ece[_0xe7f049(0x128)]?_0xe7f049(0x128):_0xe7f049(0x123);return readConfigFile(resolveWriteConfigPath(_0x584224));}export function writeScopedConfig(_0x2aa8fa,_0x3bd480){const _0x32b7df=a99_0x4c1cad,_0x237b0d=_0x3bd480[_0x32b7df(0x128)]?'global':'project';writeConfigFile(resolveWriteConfigPath(_0x237b0d),_0x2aa8fa);}export async function initGlobalEnvironment(_0x65eb3a){const _0x2198ad=a99_0x4c1cad,{initEnv:_0x2f4d0f}=await import(_0x2198ad(0x122));_0x2f4d0f(_0x65eb3a[_0x2198ad(0x134)]);const {initDomains:_0x39761c}=await import('./constant/domain.js');_0x39761c({'apiDomain':_0x65eb3a[_0x2198ad(0x13e)][_0x2198ad(0x113)]||_0x65eb3a['raw'][_0x2198ad(0x11a)]||undefined,'userDomain':_0x65eb3a[_0x2198ad(0x13e)][_0x2198ad(0x10b)]||undefined,'runtimeDomain':_0x65eb3a[_0x2198ad(0x13e)][_0x2198ad(0x137)]||undefined,'skillHubDomain':_0x65eb3a[_0x2198ad(0x13e)][_0x2198ad(0x136)]||undefined});}export function getProjectConfigPath(){const _0x297733=a99_0x4c1cad;return resolveConfigPath(process[_0x297733(0x126)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x33cd36){const _0x3170bf=a99_0x4c1cad;if(!existsSync(_0x33cd36))return{'status':_0x3170bf(0x12d)};try{const _0x2dcf72=readFileSync(_0x33cd36,{'encoding':_0x3170bf(0x116)});if(!_0x2dcf72?.[_0x3170bf(0x132)]())return{'status':_0x3170bf(0x102)};const _0x1cf8ee=JSON[_0x3170bf(0x119)](_0x2dcf72);return{'status':'ok','data':_0x1cf8ee};}catch(_0x14776b){return{'status':'error','message':_0x14776b instanceof Error?_0x14776b[_0x3170bf(0x10d)]:String(_0x14776b)};}}export function loadRawConfigLayers(_0x16d86e){const _0x35e28a=a99_0x4c1cad;let _0x74b1d8={},_0x1b2d20={},_0x52e4dd,_0x6cead2;try{_0x52e4dd=resolveConfigPath(homedir());if(_0x52e4dd){const _0x12817f=readFileSync(_0x52e4dd,{'encoding':_0x35e28a(0x116)});if(_0x12817f)_0x74b1d8=JSON[_0x35e28a(0x119)](_0x12817f);}}catch{}try{const _0x28c127=_0x16d86e||process[_0x35e28a(0x126)]();_0x6cead2=resolveConfigPath(_0x28c127);if(_0x6cead2){const _0x470a99=readFileSync(_0x6cead2,{'encoding':_0x35e28a(0x116)});if(_0x470a99)_0x1b2d20=JSON[_0x35e28a(0x119)](_0x470a99);}}catch{}return{'globalPath':_0x52e4dd,'projectPath':_0x6cead2,'globalConfig':_0x74b1d8,'projectConfig':_0x1b2d20};}function mergeRawConfigLayers(_0x5c54db){const _0x28ed65=a99_0x4c1cad,{globalConfig:_0x994c18,projectConfig:_0x18c088}=_0x5c54db;if(_0x18c088[_0x28ed65(0xfb)]===![]){const _0x2070d8={..._0x18c088};return delete _0x2070d8[_0x28ed65(0xfb)],_0x2070d8;}const _0x59f421={..._0x994c18,..._0x18c088};if('defaultApp'in _0x18c088)_0x59f421['defaultApp']=_0x18c088[_0x28ed65(0x111)];else _0x994c18[_0x28ed65(0x111)]&&(_0x59f421[_0x28ed65(0x111)]=_0x994c18['defaultApp']);return _0x59f421;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x30e18b){return mergeRawConfigLayers(loadRawConfigLayers(_0x30e18b));}export function readRawConfigWithLayers(_0x5a5887){const _0x2f5ccc=loadRawConfigLayers(_0x5a5887);return{'config':mergeRawConfigLayers(_0x2f5ccc),'layers':_0x2f5ccc};}export function resolveDefaultAppSource(_0x5bb343){const _0x47dd8a=a99_0x4c1cad;if(_0x47dd8a(0x111)in _0x5bb343[_0x47dd8a(0x12b)])return _0x47dd8a(0x123);if(_0x5bb343[_0x47dd8a(0x12b)][_0x47dd8a(0xfb)]===![])return null;if(_0x5bb343['globalConfig'][_0x47dd8a(0x111)])return _0x47dd8a(0x128);return null;}function buildConfig(_0x3169f5,_0x3d7138){const _0x2a307b=a99_0x4c1cad,_0x3b02b9=_0x3169f5[_0x2a307b(0x111)]||undefined,_0x88d1c0=_0x3d7138[_0x2a307b(0x11d)]||env(_0x2a307b(0x10e))||undefined,_0x53bb3e=_0x88d1c0||_0x3b02b9||undefined,_0x18201e=env(_0x2a307b(0x101))||_0x3169f5[_0x2a307b(0xfd)]||undefined,_0x574d67=_0x3d7138[_0x2a307b(0x134)]||env('ENV')||_0x3169f5[_0x2a307b(0x134)]||DEFAULT_CONFIG_VALUES['env'],_0x285a04=normalizeEnv(String(_0x574d67)),_0x252df3=isDaily(_0x285a04)?'daily':isDev(_0x285a04)?_0x2a307b(0x13f):_0x2a307b(0x103),_0x3a6b2e=typeof _0x3d7138['appcode']===_0x2a307b(0x12a)?_0x3d7138[_0x2a307b(0x10a)]:undefined,_0x27e4ff=env(_0x2a307b(0x138)),_0x5d5b50=_0x88d1c0?undefined:_0x3169f5[_0x2a307b(0x10a)]||_0x3169f5['app']||undefined,_0x1522a2=_0x88d1c0||(_0x5d5b50?undefined:_0x3b02b9),_0x490b62=resolveLocalAppAliasCode(_0x3169f5,_0x1522a2),_0x56be22=resolveCachedAppCode(_0x1522a2,_0x252df3,_0x18201e),_0x3857fc=_0x3a6b2e||_0x27e4ff||_0x5d5b50||_0x490b62||_0x56be22||undefined,_0x111239=_0x3a6b2e?_0x2a307b(0xfc):_0x27e4ff?_0x2a307b(0x134):_0x5d5b50?_0x2a307b(0x117):_0x490b62?_0x2a307b(0xf5):_0x56be22?_0x2a307b(0x106):undefined,_0x2bb8ea=_0x3169f5[_0x2a307b(0x120)]||DEFAULT_CONFIG_VALUES['locale'],_0xeb5543=undefined,_0x57788e=_0x3d7138[_0x2a307b(0x13d)]||env(_0x2a307b(0x11f))||_0x3169f5[_0x2a307b(0x13d)],_0x3d08e7=normalizeLegacyOutputFormat(_0x57788e),_0x12bcd0=env(_0x2a307b(0x13c))||_0x3169f5[_0x2a307b(0x13a)],_0x40ba3e=_0x12bcd0?Number(_0x12bcd0)||undefined:undefined,_0x3f0a73=_0x3169f5[_0x2a307b(0xf8)]||_0x3169f5[_0x2a307b(0x110)],_0xc0567b=_0x3f0a73===_0x2a307b(0x108)||_0x3f0a73===_0x2a307b(0xff)||_0x3f0a73===_0x2a307b(0x107)?_0x3f0a73:DEFAULT_CONFIG_VALUES[_0x2a307b(0xf8)],_0x3901d0=env(_0x2a307b(0x140)),_0x431296=_0x3901d0==='1'||_0x3901d0===_0x2a307b(0x11b);return{'appCode':typeof _0x3857fc===_0x2a307b(0x12a)&&_0x3857fc[_0x2a307b(0x132)]()?_0x3857fc[_0x2a307b(0x132)]():undefined,'appCodeSource':_0x111239,'env':_0x252df3,'locale':_0x2bb8ea,'cookie':_0xeb5543,'accessKey':_0x18201e,'format':_0x3d08e7,'pageSize':_0x40ba3e,'riskLevel':_0xc0567b,'verbose':_0x431296,'defaultApp':_0x3b02b9,'currentApp':typeof _0x53bb3e===_0x2a307b(0x12a)?_0x53bb3e:undefined,'raw':_0x3169f5};}function env(_0x1ba39b){return productEnv(_0x1ba39b);}async function buildAuth(_0x1ede51){const _0x5ba45d=a99_0x4c1cad,_0x4bbc9d='',_0x291d22=!!_0x1ede51[_0x5ba45d(0xfd)];return{'cookie':_0x4bbc9d,'isLoggedIn':_0x291d22,async 'getOrLogin'(){if(_0x291d22)return _0x4bbc9d;throw CliErrors['authRequired']();}};}
1
+ const a99_0x4e6e73=a99_0x3c5c;(function(_0x1de17e,_0x4bb558){const _0x30d056=a99_0x3c5c,_0x6b2c27=_0x1de17e();while(!![]){try{const _0x3eb2a=parseInt(_0x30d056(0x219))/0x1*(parseInt(_0x30d056(0x204))/0x2)+parseInt(_0x30d056(0x20d))/0x3*(-parseInt(_0x30d056(0x1f3))/0x4)+-parseInt(_0x30d056(0x20b))/0x5+parseInt(_0x30d056(0x20a))/0x6+-parseInt(_0x30d056(0x1e5))/0x7+parseInt(_0x30d056(0x208))/0x8+-parseInt(_0x30d056(0x21f))/0x9;if(_0x3eb2a===_0x4bb558)break;else _0x6b2c27['push'](_0x6b2c27['shift']());}catch(_0x1933ee){_0x6b2c27['push'](_0x6b2c27['shift']());}}}(a99_0x2cbf,0xc6b67));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a99_0x4e6e73(0x1f9)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a99_0x4e6e73(0x1fc)];function resolveConfigPath(_0x3a9c1d){for(const _0x2079a7 of CONFIG_NAMES){const _0xaf35ee=resolve(_0x3a9c1d,_0x2079a7);if(existsSync(_0xaf35ee))return _0xaf35ee;}return undefined;}export function resolveWriteConfigPath(_0x31c518){const _0x1dfee4=a99_0x4e6e73,_0x299b8c=_0x31c518===_0x1dfee4(0x226)?process[_0x1dfee4(0x1f2)]():homedir(),_0x3e3f9e=resolveConfigPath(_0x299b8c);return _0x3e3f9e??resolve(_0x299b8c,NEW_CONFIG_NAME);}export function readConfigFile(_0x333ee8){const _0x5c8c7a=a99_0x4e6e73;try{if(existsSync(_0x333ee8)){const _0x2bebb2=readFileSync(_0x333ee8,{'encoding':_0x5c8c7a(0x223)});if(_0x2bebb2){const _0x9525eb=JSON['parse'](_0x2bebb2);return migrateOnlineEnv(_0x333ee8,_0x9525eb),_0x9525eb;}}}catch{}return{};}function migrateOnlineEnv(_0xc8ee37,_0x1b397e){const _0x35822c=a99_0x4e6e73;let _0x5d29d6=![];_0x1b397e['env']===_0x35822c(0x221)&&(_0x1b397e['env']=_0x35822c(0x202),_0x5d29d6=!![]);if(_0x1b397e[_0x35822c(0x1e9)]&&typeof _0x1b397e[_0x35822c(0x1e9)]==='object')for(const _0x5978d8 of Object[_0x35822c(0x224)](_0x1b397e[_0x35822c(0x1e9)])){_0x5978d8&&_0x5978d8[_0x35822c(0x212)]===_0x35822c(0x221)&&(_0x5978d8[_0x35822c(0x212)]=_0x35822c(0x202),_0x5d29d6=!![]);}if(_0x5d29d6)try{writeConfigFile(_0xc8ee37,_0x1b397e);}catch{}}export function writeConfigFile(_0x3faf09,_0x27431b){const _0x1b7d77=a99_0x4e6e73,_0x27b58e=dirname(_0x3faf09);!existsSync(_0x27b58e)&&mkdirSync(_0x27b58e,{'recursive':!![]});const _0x96e8ef=_0x3faf09+_0x1b7d77(0x200);try{writeFileSync(_0x96e8ef,JSON['stringify'](_0x27431b,null,0x2)+'\x0a',{'encoding':_0x1b7d77(0x223),'mode':0x180});try{renameSync(_0x96e8ef,_0x3faf09);}catch(_0xf5179b){if(_0xf5179b[_0x1b7d77(0x1f7)]==='EPERM'||_0xf5179b[_0x1b7d77(0x1f7)]===_0x1b7d77(0x227)||_0xf5179b[_0x1b7d77(0x1f7)]===_0x1b7d77(0x215)){writeFileSync(_0x3faf09,JSON['stringify'](_0x27431b,null,0x2)+'\x0a',{'encoding':_0x1b7d77(0x223)});try{unlinkSync(_0x96e8ef);}catch{}}else throw _0xf5179b;}}catch(_0x3af7e1){try{unlinkSync(_0x96e8ef);}catch{}throw _0x3af7e1;}}export function isNonInteractiveMode(_0x3f9266){const _0xecc382=a99_0x4e6e73;return!!(_0x3f9266[_0xecc382(0x213)]||_0x3f9266['ci']||productEnvNames('CI')[_0xecc382(0x21e)](_0x15a38e=>process.env[_0x15a38e]===_0xecc382(0x1f5))||process.env.CI==='true'||!process[_0xecc382(0x207)][_0xecc382(0x216)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1899d3=a99_0x4e6e73;if(!process['stdin'][_0x1899d3(0x216)])return![];try{const _0x2c19c2=process['stdin']['isRaw'];return process[_0x1899d3(0x210)][_0x1899d3(0x218)](!![]),process[_0x1899d3(0x210)][_0x1899d3(0x218)](_0x2c19c2??![]),!![];}catch{return![];}}export async function createContext(_0x1a13fb){const _0xd3ed2f=a99_0x4e6e73,_0x65b247=readRawConfig(),_0x49d2e2=buildConfig(_0x65b247,_0x1a13fb);await initGlobalEnvironment(_0x49d2e2);const {getUserDomain:_0x1de407,getApiDomain:_0x33c93d}=await import(_0xd3ed2f(0x217)),_0x5baedb={'apiDomain':_0x33c93d(),'userDomain':_0x1de407()},_0x5d08d9=await buildAuth(_0x49d2e2);logger[_0xd3ed2f(0x1ec)](process[_0xd3ed2f(0x1f2)]());const _0x3665ea=(CLI_BIN_NAME+'\x20'+process[_0xd3ed2f(0x1f8)][_0xd3ed2f(0x20f)](0x2)['join']('\x20'))[_0xd3ed2f(0x203)]();logger[_0xd3ed2f(0x1e6)](_0x3665ea);const _0x503b90=isNonInteractiveMode(_0x1a13fb);return{'config':_0x49d2e2,'auth':_0x5d08d9,'logger':logger,'env':_0x5baedb,'nonInteractive':_0x503b90};}export function buildConfigFromFlags(_0x5b2f49){return buildConfig(readRawConfig(),_0x5b2f49);}export function getLocalAppAliases(_0x302fcf){const _0x17a543=a99_0x4e6e73;return _0x302fcf[_0x17a543(0x1e9)]&&typeof _0x302fcf[_0x17a543(0x1e9)]===_0x17a543(0x222)?_0x302fcf['apps']:{};}export function resolveLocalAppAliasCode(_0x43f814,_0xe52eb0){const _0x37f34f=a99_0x4e6e73;if(!_0xe52eb0)return undefined;const _0x2bde7a=getLocalAppAliases(_0x43f814)[_0xe52eb0],_0x4e2092=_0x2bde7a?.[_0x37f34f(0x1fa)];return typeof _0x4e2092===_0x37f34f(0x21a)&&_0x4e2092['trim']()?_0x4e2092[_0x37f34f(0x203)]():undefined;}export function readAppCodeFromConfig(){const _0x29c6f0=a99_0x4e6e73,_0x521130=readRawConfig(),_0x1e0b67=_0x521130[_0x29c6f0(0x1fa)]??_0x521130[_0x29c6f0(0x1f0)];if(typeof _0x1e0b67===_0x29c6f0(0x21a)&&_0x1e0b67[_0x29c6f0(0x203)]())return _0x1e0b67[_0x29c6f0(0x203)]();const _0x1ed207=resolveLocalAppAliasCode(_0x521130,typeof _0x521130[_0x29c6f0(0x1fd)]===_0x29c6f0(0x21a)?_0x521130[_0x29c6f0(0x1fd)]:undefined);if(_0x1ed207)return _0x1ed207;const _0x4e783b=normalizeEnv(String(_0x521130[_0x29c6f0(0x212)]||_0x29c6f0(0x202))),_0xc67c98=isDaily(_0x4e783b)?_0x29c6f0(0x205):isDev(_0x4e783b)?_0x29c6f0(0x1ea):'production',_0xa25814=resolveCachedAppCode(typeof _0x521130[_0x29c6f0(0x1fd)]===_0x29c6f0(0x21a)?_0x521130[_0x29c6f0(0x1fd)]:undefined,_0xc67c98,typeof _0x521130[_0x29c6f0(0x20c)]==='string'?_0x521130[_0x29c6f0(0x20c)]:undefined);if(_0xa25814)return _0xa25814;const _0x22960c=Object['values'](getLocalAppAliases(_0x521130))[_0x29c6f0(0x1fb)](_0x4c674a=>_0x4c674a?.[_0x29c6f0(0x1fa)]);return typeof _0x22960c?.[_0x29c6f0(0x1fa)]===_0x29c6f0(0x21a)&&_0x22960c[_0x29c6f0(0x1fa)][_0x29c6f0(0x203)]()?_0x22960c[_0x29c6f0(0x1fa)][_0x29c6f0(0x203)]():undefined;}export function readScopedConfig(_0x3b9633){const _0x2e4c7d=a99_0x4e6e73,_0x1e7b9a=_0x3b9633[_0x2e4c7d(0x1f1)]?_0x2e4c7d(0x1f1):_0x2e4c7d(0x226);return readConfigFile(resolveWriteConfigPath(_0x1e7b9a));}export function writeScopedConfig(_0x31a35a,_0xb3e421){const _0x5505c7=a99_0x4e6e73,_0x554e07=_0xb3e421[_0x5505c7(0x1f1)]?_0x5505c7(0x1f1):_0x5505c7(0x226);writeConfigFile(resolveWriteConfigPath(_0x554e07),_0x31a35a);}export async function initGlobalEnvironment(_0x357f11){const _0xbbda45=a99_0x4e6e73,{initEnv:_0x2f8594}=await import('./constant/env.js');_0x2f8594(_0x357f11[_0xbbda45(0x212)]);const {initDomains:_0x31d6a8}=await import('./constant/domain.js');_0x31d6a8({'apiDomain':_0x357f11[_0xbbda45(0x1e8)][_0xbbda45(0x1eb)]||_0x357f11[_0xbbda45(0x1e8)][_0xbbda45(0x220)]||undefined,'userDomain':_0x357f11[_0xbbda45(0x1e8)]['userDomain']||undefined,'runtimeDomain':_0x357f11[_0xbbda45(0x1e8)]['runtimeDomain']||undefined,'skillHubDomain':_0x357f11['raw']['skillHubDomain']||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x4f73bb){const _0x5939f4=a99_0x4e6e73;if(!existsSync(_0x4f73bb))return{'status':_0x5939f4(0x206)};try{const _0x398ac1=readFileSync(_0x4f73bb,{'encoding':_0x5939f4(0x223)});if(!_0x398ac1?.['trim']())return{'status':_0x5939f4(0x201)};const _0x3ddf5d=JSON[_0x5939f4(0x225)](_0x398ac1);return{'status':'ok','data':_0x3ddf5d};}catch(_0x22c522){return{'status':'error','message':_0x22c522 instanceof Error?_0x22c522['message']:String(_0x22c522)};}}export function loadRawConfigLayers(_0x45180e){const _0x367f3f=a99_0x4e6e73;let _0x55a898={},_0x1cccc8={},_0x1939df,_0x469dca;try{_0x1939df=resolveConfigPath(homedir());if(_0x1939df){const _0x2fdbab=readFileSync(_0x1939df,{'encoding':'utf8'});if(_0x2fdbab)_0x55a898=JSON[_0x367f3f(0x225)](_0x2fdbab);}}catch{}try{const _0x1025cc=_0x45180e||process[_0x367f3f(0x1f2)]();_0x469dca=resolveConfigPath(_0x1025cc);if(_0x469dca){const _0x18cb4f=readFileSync(_0x469dca,{'encoding':'utf8'});if(_0x18cb4f)_0x1cccc8=JSON[_0x367f3f(0x225)](_0x18cb4f);}}catch{}return{'globalPath':_0x1939df,'projectPath':_0x469dca,'globalConfig':_0x55a898,'projectConfig':_0x1cccc8};}function mergeRawConfigLayers(_0x4a7793){const _0x3060ca=a99_0x4e6e73,{globalConfig:_0x6e4e4d,projectConfig:_0xaaa669}=_0x4a7793;if(_0xaaa669[_0x3060ca(0x21b)]===![]){const _0x4c3e55={..._0xaaa669};return delete _0x4c3e55[_0x3060ca(0x21b)],_0x4c3e55;}const _0x44921b={..._0x6e4e4d,..._0xaaa669};if(_0x3060ca(0x1fd)in _0xaaa669)_0x44921b[_0x3060ca(0x1fd)]=_0xaaa669[_0x3060ca(0x1fd)];else _0x6e4e4d[_0x3060ca(0x1fd)]&&(_0x44921b['defaultApp']=_0x6e4e4d[_0x3060ca(0x1fd)]);return _0x44921b;}export function isInProject(){return!!getProjectConfigPath();}function a99_0x2cbf(){const _0x51a9d5=['setLogPath','top-level','high-risk-write','explicit','app','global','cwd','24nyaebT','riskLevel','true','APP','code','argv','configFileNames','appcode','find','newConfigFileName','defaultApp','write','VERBOSE','.tmp','empty','production','trim','2DCQwSH','daily','missing','stdout','9528352zTTfhY','format','7155606aBOUbs','1923375sKwUmJ','accessKey','510519pRBblg','APPCODE','slice','stdin','locale','env','nonInteractive','projectConfig','EACCES','isTTY','./constant/domain.js','setRawMode','662455xMmpuB','string','inherit','pageSize','FORMAT','some','1901709eGESvL','host','online','object','utf8','values','parse','project','EXDEV','PAGE_SIZE','4306113VLqGDu','setRawCommand','local-alias','raw','apps','development','apiDomain'];a99_0x2cbf=function(){return _0x51a9d5;};return a99_0x2cbf();}export function readRawConfig(_0x125e31){return mergeRawConfigLayers(loadRawConfigLayers(_0x125e31));}export function readRawConfigWithLayers(_0x3a2856){const _0x4bf2a5=loadRawConfigLayers(_0x3a2856);return{'config':mergeRawConfigLayers(_0x4bf2a5),'layers':_0x4bf2a5};}function a99_0x3c5c(_0x5ebe3f,_0x2e463c){_0x5ebe3f=_0x5ebe3f-0x1e5;const _0x2cbf71=a99_0x2cbf();let _0x3c5c00=_0x2cbf71[_0x5ebe3f];return _0x3c5c00;}export function resolveDefaultAppSource(_0x27ed0c){const _0x99106b=a99_0x4e6e73;if(_0x99106b(0x1fd)in _0x27ed0c['projectConfig'])return _0x99106b(0x226);if(_0x27ed0c[_0x99106b(0x214)][_0x99106b(0x21b)]===![])return null;if(_0x27ed0c['globalConfig']['defaultApp'])return'global';return null;}function buildConfig(_0x1a1e1c,_0x52206){const _0x92b404=a99_0x4e6e73,_0x17c664=_0x1a1e1c[_0x92b404(0x1fd)]||undefined,_0x4c6d91=_0x52206[_0x92b404(0x1f0)]||env(_0x92b404(0x1f6))||undefined,_0x44d162=_0x4c6d91||_0x17c664||undefined,_0x412ebb=env('ACCESS_KEY')||_0x1a1e1c[_0x92b404(0x20c)]||undefined,_0x4fb62d=_0x52206['env']||env('ENV')||_0x1a1e1c[_0x92b404(0x212)]||DEFAULT_CONFIG_VALUES['env'],_0x3d38b8=normalizeEnv(String(_0x4fb62d)),_0x5e8bd6=isDaily(_0x3d38b8)?_0x92b404(0x205):isDev(_0x3d38b8)?_0x92b404(0x1ea):_0x92b404(0x202),_0x5c88a3=typeof _0x52206[_0x92b404(0x1fa)]===_0x92b404(0x21a)?_0x52206['appcode']:undefined,_0x3a5b14=env(_0x92b404(0x20e)),_0xb935a0=_0x4c6d91?undefined:_0x1a1e1c[_0x92b404(0x1fa)]||_0x1a1e1c[_0x92b404(0x1f0)]||undefined,_0x30dfce=_0x4c6d91||(_0xb935a0?undefined:_0x17c664),_0x3470c1=resolveLocalAppAliasCode(_0x1a1e1c,_0x30dfce),_0x37e9aa=resolveCachedAppCode(_0x30dfce,_0x5e8bd6,_0x412ebb),_0x13acce=_0x5c88a3||_0x3a5b14||_0xb935a0||_0x3470c1||_0x37e9aa||undefined,_0x408807=_0x5c88a3?_0x92b404(0x1ef):_0x3a5b14?_0x92b404(0x212):_0xb935a0?_0x92b404(0x1ed):_0x3470c1?_0x92b404(0x1e7):_0x37e9aa?'cache':undefined,_0x2dcf2d=_0x1a1e1c[_0x92b404(0x211)]||DEFAULT_CONFIG_VALUES[_0x92b404(0x211)],_0x38fb89=undefined,_0x222ac2=_0x52206[_0x92b404(0x209)]||env(_0x92b404(0x21d))||_0x1a1e1c[_0x92b404(0x209)],_0x127eca=normalizeLegacyOutputFormat(_0x222ac2),_0x2e3808=env(_0x92b404(0x228))||_0x1a1e1c[_0x92b404(0x21c)],_0x3286b5=_0x2e3808?Number(_0x2e3808)||undefined:undefined,_0x45732a=_0x1a1e1c[_0x92b404(0x1f4)]||_0x1a1e1c['maxRisk'],_0x25bf8b=_0x45732a==='read'||_0x45732a===_0x92b404(0x1fe)||_0x45732a===_0x92b404(0x1ee)?_0x45732a:DEFAULT_CONFIG_VALUES[_0x92b404(0x1f4)],_0x5d3215=env(_0x92b404(0x1ff)),_0x1dc43c=_0x5d3215==='1'||_0x5d3215===_0x92b404(0x1f5);return{'appCode':typeof _0x13acce===_0x92b404(0x21a)&&_0x13acce[_0x92b404(0x203)]()?_0x13acce['trim']():undefined,'appCodeSource':_0x408807,'env':_0x5e8bd6,'locale':_0x2dcf2d,'cookie':_0x38fb89,'accessKey':_0x412ebb,'format':_0x127eca,'pageSize':_0x3286b5,'riskLevel':_0x25bf8b,'verbose':_0x1dc43c,'defaultApp':_0x17c664,'currentApp':typeof _0x44d162===_0x92b404(0x21a)?_0x44d162:undefined,'raw':_0x1a1e1c};}function env(_0x1e11f3){return productEnv(_0x1e11f3);}async function buildAuth(_0x2c2230){const _0x18dc0e=a99_0x4e6e73,_0x53f112='',_0x28491e=!!_0x2c2230[_0x18dc0e(0x20c)];return{'cookie':_0x53f112,'isLoggedIn':_0x28491e,async 'getOrLogin'(){if(_0x28491e)return _0x53f112;throw CliErrors['authRequired']();}};}