@lovrabet/lovrabet-cli 2.1.22-beta.3 → 2.1.22-beta.4

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 (130) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schedule/index.js +1 -1
  39. package/lib/commands/schema.js +1 -1
  40. package/lib/commands/service/dynamic.js +1 -1
  41. package/lib/commands/service/function-name-adapter.js +1 -1
  42. package/lib/commands/service/index.js +1 -1
  43. package/lib/commands/service/registry.js +1 -1
  44. package/lib/commands/skill/commands/create.js +1 -1
  45. package/lib/commands/skill/commands/diagram.js +1 -1
  46. package/lib/commands/skill/commands/install.js +1 -1
  47. package/lib/commands/skill/commands/list.js +1 -1
  48. package/lib/commands/skill/commands/push.js +1 -1
  49. package/lib/commands/skill/commands/validate.js +1 -1
  50. package/lib/commands/skill/diagram.js +1 -1
  51. package/lib/commands/skill/flags.js +1 -1
  52. package/lib/commands/skill/index.js +1 -1
  53. package/lib/commands/skill/manifest-helpers.js +1 -1
  54. package/lib/commands/skill/push-execute.js +1 -1
  55. package/lib/commands/skill/push-flow-helpers.js +1 -1
  56. package/lib/commands/skill/push-retarget.js +1 -1
  57. package/lib/commands/skill/scopes.js +1 -1
  58. package/lib/commands/skill/summary.js +1 -1
  59. package/lib/commands/skill/templates.js +1 -1
  60. package/lib/commands/skill/validate.js +1 -1
  61. package/lib/commands/sql/detail.js +1 -1
  62. package/lib/commands/sql/exec.js +1 -1
  63. package/lib/commands/sql/index.js +1 -1
  64. package/lib/commands/update.js +1 -1
  65. package/lib/commands/workspace/index.js +1 -1
  66. package/lib/config/schema.js +1 -1
  67. package/lib/constant/app.js +1 -1
  68. package/lib/constant/auth-mode.js +1 -1
  69. package/lib/constant/cli.js +1 -1
  70. package/lib/constant/defaults.js +1 -1
  71. package/lib/constant/distribution.js +1 -1
  72. package/lib/constant/domain.js +1 -1
  73. package/lib/constant/env.js +1 -1
  74. package/lib/constant/output.js +1 -1
  75. package/lib/constant/product.js +1 -1
  76. package/lib/constant/risk.js +1 -1
  77. package/lib/constant/url.js +1 -1
  78. package/lib/context.js +1 -1
  79. package/lib/core/api-client.js +1 -1
  80. package/lib/core/db-resolver.js +1 -1
  81. package/lib/core/sdk-client.js +1 -1
  82. package/lib/errors.js +1 -1
  83. package/lib/framework/build-all-flags.js +1 -1
  84. package/lib/framework/dryrun.js +1 -1
  85. package/lib/framework/flags.js +1 -1
  86. package/lib/framework/help.js +1 -1
  87. package/lib/framework/index.js +1 -1
  88. package/lib/framework/output.js +1 -1
  89. package/lib/framework/preparse.js +1 -1
  90. package/lib/framework/rate-limit.js +1 -1
  91. package/lib/framework/raw-flags.js +1 -1
  92. package/lib/framework/response.js +1 -1
  93. package/lib/framework/runner-confirmation.js +1 -1
  94. package/lib/framework/runner-error.js +1 -1
  95. package/lib/framework/runner.js +1 -1
  96. package/lib/framework/schema-export.js +1 -1
  97. package/lib/framework/service-order.js +1 -1
  98. package/lib/framework/types.js +1 -1
  99. package/lib/generated/build-info.d.ts +4 -4
  100. package/lib/generated/build-info.js +1 -1
  101. package/lib/help.js +1 -1
  102. package/lib/runtime/event.js +1 -1
  103. package/lib/runtime/index.js +1 -1
  104. package/lib/runtime/queue.js +1 -1
  105. package/lib/runtime/resolve.js +1 -1
  106. package/lib/skills/npx-skills-add.js +1 -1
  107. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  108. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  109. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  110. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  111. package/lib/skills/runtime-skill-sync/links.js +1 -1
  112. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  113. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  114. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  115. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  116. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  117. package/lib/skills/runtime-skill-sync/push.js +1 -1
  118. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  119. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  120. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  121. package/lib/skills/runtime-skill-sync.js +1 -1
  122. package/lib/utils/apply-jq-filter.js +1 -1
  123. package/lib/utils/logger.js +1 -1
  124. package/lib/utils/lossless-json.js +1 -1
  125. package/lib/utils/params.js +1 -1
  126. package/lib/utils/platform.js +1 -1
  127. package/lib/utils/update-notice.js +1 -1
  128. package/lib/utils/version.js +1 -1
  129. package/lib/utils/write-cli-side-channel.js +1 -1
  130. package/package.json +1 -1
@@ -1 +1 @@
1
- const a64_0x233d4f=a64_0x5f40;function a64_0x5f40(_0x21843c,_0x49e734){_0x21843c=_0x21843c-0x6a;const _0x4174a4=a64_0x4174();let _0x5f4093=_0x4174a4[_0x21843c];return _0x5f4093;}(function(_0x1ea9da,_0x5b0829){const _0x34cf27=a64_0x5f40,_0x2d9575=_0x1ea9da();while(!![]){try{const _0x5a8b62=parseInt(_0x34cf27(0x82))/0x1*(parseInt(_0x34cf27(0x99))/0x2)+parseInt(_0x34cf27(0x9f))/0x3*(-parseInt(_0x34cf27(0x76))/0x4)+parseInt(_0x34cf27(0x89))/0x5+-parseInt(_0x34cf27(0x96))/0x6+-parseInt(_0x34cf27(0x85))/0x7*(parseInt(_0x34cf27(0x74))/0x8)+parseInt(_0x34cf27(0x91))/0x9+parseInt(_0x34cf27(0x90))/0xa;if(_0x5a8b62===_0x5b0829)break;else _0x2d9575['push'](_0x2d9575['shift']());}catch(_0x5e4b3d){_0x2d9575['push'](_0x2d9575['shift']());}}}(a64_0x4174,0x272c3));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':'app','type':a64_0x233d4f(0x72),'description':a64_0x233d4f(0x87)},{'name':'appcode','type':a64_0x233d4f(0x72),'description':a64_0x233d4f(0x95)},{'name':a64_0x233d4f(0x71),'type':'string','description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]},{'name':a64_0x233d4f(0x6d),'type':a64_0x233d4f(0x7f),'description':a64_0x233d4f(0x79),'default':![]}];async function executeWorkspaceUse(_0x4893f,_0x562d9d){const _0x4d2c17=a64_0x233d4f,_0x483e7e=_0x4893f[_0x4d2c17(0xa1)](_0x4d2c17(0x6b))[_0x4d2c17(0x94)](),_0x15c2b2=_0x4893f[_0x4d2c17(0xa1)]('appcode')[_0x4d2c17(0x94)](),_0x352fa7=_0x4893f[_0x4d2c17(0xa1)](_0x4d2c17(0x71))['trim'](),_0x5349f7=resolveWorkspaceEnv(_0x352fa7||_0x4893f[_0x4d2c17(0xa2)]||DEFAULT_CONFIG_VALUES[_0x4d2c17(0x71)]);if(!_0x483e7e&&!_0x15c2b2)throw CliErrors[_0x4d2c17(0x84)](_0x4d2c17(0x7e),_0x4d2c17(0x75)+CLI_BIN_NAME+_0x4d2c17(0x6c)+_0x562d9d+_0x4d2c17(0x77)+CLI_BIN_NAME+_0x4d2c17(0x6c)+_0x562d9d+_0x4d2c17(0x92));const _0x292eb5=_0x15c2b2||await resolveRemoteAppCode({'command':_0x562d9d,'appName':_0x483e7e,'env':_0x5349f7,'accessKey':_0x4893f[_0x4d2c17(0xa4)]}),_0x40dc6d=writeWorkspaceConfig({'command':_0x562d9d,'appName':_0x483e7e,'appcode':_0x292eb5,'env':_0x5349f7,'shouldWriteEnv':!!_0x352fa7,'accessKey':_0x4893f[_0x4d2c17(0xa4)]});return{'ok':!![],'data':{'configPath':_0x40dc6d,'app':_0x483e7e||null,'appcode':_0x292eb5,'env':_0x352fa7?_0x5349f7:null,'accessKeyWritten':![],'command':_0x4d2c17(0xa0)+_0x562d9d},'message':buildWorkspaceMessage(_0x40dc6d,_0x483e7e,_0x292eb5,_0x352fa7?_0x5349f7:undefined)};}async function resolveRemoteAppCode(_0x2e9ae9){const _0x1af51b=a64_0x233d4f;if(!_0x2e9ae9[_0x1af51b(0xa4)])throw CliErrors['authRequired'](_0x1af51b(0x97)+CLI_BIN_NAME+_0x1af51b(0x6c)+_0x2e9ae9[_0x1af51b(0x6a)]+'.');const {setActiveAK:_0xc2a208}=await import(_0x1af51b(0x88)),{getRemoteAppList:_0x396962}=await import(_0x1af51b(0x70));_0xc2a208(_0x2e9ae9['accessKey']);const _0x7e3b9c=await _0x396962({'env':_0x2e9ae9['env'],'accessKey':_0x2e9ae9[_0x1af51b(0xa4)],'noCache':![]}),_0x52139d=findAppByName(_0x7e3b9c[_0x1af51b(0x8f)],_0x2e9ae9[_0x1af51b(0x81)]);if(_0x52139d&&!isRuntimeAccessibleApp(_0x52139d))throw runtimeInaccessibleAppError(_0x52139d,'\x22'+_0x2e9ae9[_0x1af51b(0x81)]+'\x22');const _0x2d728b=_0x52139d?.[_0x1af51b(0xa5)]?.['trim']();if(_0x2d728b)return _0x2d728b;const _0x392dab=_0x7e3b9c[_0x1af51b(0x8f)]['map'](_0xda31e0=>_0xda31e0[_0x1af51b(0x81)])[_0x1af51b(0x9c)](Boolean),_0x52a51c=_0x392dab[_0x1af51b(0x78)]?_0x1af51b(0x9a)+Array['from'](new Set(_0x392dab))[_0x1af51b(0x8b)](',\x20')+'.':_0x1af51b(0x6f)+CLI_BIN_NAME+_0x1af51b(0x7a);throw CliErrors[_0x1af51b(0x84)](_0x1af51b(0x7c)+_0x2e9ae9[_0x1af51b(0x81)]+_0x1af51b(0x93),_0x52a51c);}function writeWorkspaceConfig(_0x461ba9){const _0xa527bb=a64_0x233d4f,_0x386152=resolveWriteConfigPath(_0xa527bb(0x8c)),_0x3ab17d=readConfigFile(_0x386152);_0x461ba9['shouldWriteEnv']&&(_0x3ab17d[_0xa527bb(0x71)]=_0x461ba9[_0xa527bb(0x71)]);if(_0x461ba9[_0xa527bb(0x81)]){const _0x579032=isRecord(_0x3ab17d[_0xa527bb(0x9e)])?{..._0x3ab17d[_0xa527bb(0x9e)]}:{},_0x145cec=isRecord(_0x579032[_0x461ba9[_0xa527bb(0x81)]])?_0x579032[_0x461ba9[_0xa527bb(0x81)]]:{};_0x579032[_0x461ba9[_0xa527bb(0x81)]]={..._0x145cec,'appcode':_0x461ba9['appcode']},_0x3ab17d[_0xa527bb(0x9e)]=_0x579032,_0x3ab17d['defaultApp']=_0x461ba9[_0xa527bb(0x81)];if(_0x3ab17d[_0xa527bb(0x6b)])delete _0x3ab17d[_0xa527bb(0x6b)];return writeAndReturn(_0x386152,_0x3ab17d);}_0x3ab17d[_0xa527bb(0x8d)]=_0x461ba9[_0xa527bb(0x8d)];if(_0x3ab17d[_0xa527bb(0x6b)])delete _0x3ab17d[_0xa527bb(0x6b)];return writeAndReturn(_0x386152,_0x3ab17d);}function writeAndReturn(_0x47dc81,_0x240e81){return writeConfigFile(_0x47dc81,_0x240e81),_0x47dc81;}function resolveWorkspaceEnv(_0x3de275){const _0x1aa087=a64_0x233d4f;if(RUNTIME_ENV_VALUES[_0x1aa087(0xa3)](_0x3de275))return _0x3de275;throw CliErrors[_0x1aa087(0x84)](_0x1aa087(0x83)+_0x3de275+_0x1aa087(0x8a)+RUNTIME_ENV_VALUES[_0x1aa087(0x8b)](',\x20'));}function buildWorkspaceMessage(_0x17c0d8,_0x21390a,_0x567848,_0x5e383b){const _0x49bfc1=a64_0x233d4f,_0x2e795d=_0x21390a?_0x21390a+'\x20('+_0x567848+')':_0x567848,_0x1552af=_0x5e383b?'\x0aEnv:\x20'+_0x5e383b:'';return _0x49bfc1(0x7d)+_0x17c0d8+_0x49bfc1(0x9d)+_0x2e795d+_0x1552af+_0x49bfc1(0x6e);}function isRecord(_0x35a4ff){const _0x1446c1=a64_0x233d4f;return typeof _0x35a4ff===_0x1446c1(0x7b)&&_0x35a4ff!==null&&!Array[_0x1446c1(0x80)](_0x35a4ff);}function makeWorkspaceCommand(_0x30e671){const _0x1df6cb=a64_0x233d4f;return{'service':_0x1df6cb(0x86),'command':_0x30e671,'description':_0x30e671==='init'?_0x1df6cb(0x9b):'Set\x20app\x20context\x20for\x20the\x20current\x20workspace','risk':_0x1df6cb(0x8e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x485a9e){return executeWorkspaceUse(_0x485a9e,_0x30e671);}};}function a64_0x4174(){const _0x4d8451=['use','8gJaENG','Usage:\x20','549356GgLUPo','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','length','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','object','App\x20\x22','Workspace\x20configured.\x0aConfig\x20file:\x20','Missing\x20workspace\x20app\x20selector.','boolean','isArray','appName','34491HPVhIH','Invalid\x20env\x20\x22','validation','1593263hSQVTY','workspace','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','../../core/api-client.js','173530sfbiIL','\x22.\x20Allowed:\x20','join','project','appcode','write','items','2416920NAAvoY','2149596LUJQEj','\x20--appcode\x20<code>\x20[--env\x20daily]','\x22\x20not\x20found.','trim','App\x20code\x20to\x20bind\x20directly','563646ZiDUka','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','init','14bFDXVd','Available\x20apps:\x20','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','filter','\x0aDefault\x20app:\x20','apps','6DFUPDO','workspace\x20','str','envName','includes','accessKey','appCode','command','app','\x20workspace\x20','yes','\x0aAccessKey:\x20not\x20written','Run\x20`','../../commands/app/remote-source.js','env','string'];a64_0x4174=function(){return _0x4d8451;};return a64_0x4174();}export const workspaceDefinitions=[makeWorkspaceCommand(a64_0x233d4f(0x98)),makeWorkspaceCommand(a64_0x233d4f(0x73))];
1
+ const a64_0x2e8103=a64_0x37b2;(function(_0x309849,_0x30d746){const _0x3185da=a64_0x37b2,_0x131255=_0x309849();while(!![]){try{const _0x371f9e=parseInt(_0x3185da(0x1dd))/0x1+-parseInt(_0x3185da(0x1d0))/0x2*(parseInt(_0x3185da(0x1e7))/0x3)+-parseInt(_0x3185da(0x1e8))/0x4*(-parseInt(_0x3185da(0x1fe))/0x5)+parseInt(_0x3185da(0x1ef))/0x6+parseInt(_0x3185da(0x1d7))/0x7*(parseInt(_0x3185da(0x1d3))/0x8)+-parseInt(_0x3185da(0x1e5))/0x9+-parseInt(_0x3185da(0x1f1))/0xa;if(_0x371f9e===_0x30d746)break;else _0x131255['push'](_0x131255['shift']());}catch(_0x3d15c9){_0x131255['push'](_0x131255['shift']());}}}(a64_0x58f1,0xacb52));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':'app','type':'string','description':'App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default'},{'name':a64_0x2e8103(0x1d8),'type':'string','description':a64_0x2e8103(0x1c9)},{'name':a64_0x2e8103(0x1dc),'type':'string','description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]},{'name':a64_0x2e8103(0x1d4),'type':a64_0x2e8103(0x1cd),'description':'Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','default':![]}];async function executeWorkspaceUse(_0x1c64c7,_0x4d019c){const _0x44d0f5=a64_0x2e8103,_0xe3d640=_0x1c64c7[_0x44d0f5(0x1d1)](_0x44d0f5(0x1ed))[_0x44d0f5(0x1d2)](),_0x5de24c=_0x1c64c7['str'](_0x44d0f5(0x1d8))['trim'](),_0x24b8c7=_0x1c64c7[_0x44d0f5(0x1d1)](_0x44d0f5(0x1dc))[_0x44d0f5(0x1d2)](),_0x1a7af1=resolveWorkspaceEnv(_0x24b8c7||_0x1c64c7[_0x44d0f5(0x1f7)]||DEFAULT_CONFIG_VALUES[_0x44d0f5(0x1dc)]);if(!_0xe3d640&&!_0x5de24c)throw CliErrors[_0x44d0f5(0x1fd)](_0x44d0f5(0x1fb),_0x44d0f5(0x1d6)+CLI_BIN_NAME+_0x44d0f5(0x1cc)+_0x4d019c+'\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20'+CLI_BIN_NAME+_0x44d0f5(0x1cc)+_0x4d019c+'\x20--appcode\x20<code>\x20[--env\x20daily]');const _0x2eb4e4=_0x5de24c||await resolveRemoteAppCode({'command':_0x4d019c,'appName':_0xe3d640,'env':_0x1a7af1,'accessKey':_0x1c64c7[_0x44d0f5(0x1f6)]}),_0x11922b=writeWorkspaceConfig({'command':_0x4d019c,'appName':_0xe3d640,'appcode':_0x2eb4e4,'env':_0x1a7af1,'shouldWriteEnv':!!_0x24b8c7,'accessKey':_0x1c64c7[_0x44d0f5(0x1f6)]});return{'ok':!![],'data':{'configPath':_0x11922b,'app':_0xe3d640||null,'appcode':_0x2eb4e4,'env':_0x24b8c7?_0x1a7af1:null,'accessKeyWritten':![],'command':_0x44d0f5(0x1fc)+_0x4d019c},'message':buildWorkspaceMessage(_0x11922b,_0xe3d640,_0x2eb4e4,_0x24b8c7?_0x1a7af1:undefined)};}function a64_0x58f1(){const _0x126651=['join','env','768969JXuXZd','appName','map','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','appCode','use','init','App\x20\x22','9146403AegIPN','shouldWriteEnv','1329fhXcVH','337684GuFrxP','object','../../commands/app/remote-source.js','length','\x0aAccessKey:\x20not\x20written','app','includes','4118988aCugMf','defaultApp','5681280xPzhEA','\x22\x20not\x20found.','\x22.\x20Allowed:\x20','isArray','items','accessKey','envName','Run\x20`','workspace','apps','Missing\x20workspace\x20app\x20selector.','workspace\x20','validation','20GTjSEI','filter','App\x20code\x20to\x20bind\x20directly','\x0aEnv:\x20','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','\x20workspace\x20','boolean','write','command','2274GXMKkX','str','trim','24tEuYXK','yes','../../core/api-client.js','Usage:\x20','2338805vLafAg','appcode','Invalid\x20env\x20\x22','\x0aDefault\x20app:\x20'];a64_0x58f1=function(){return _0x126651;};return a64_0x58f1();}async function resolveRemoteAppCode(_0x231cc7){const _0x5480d6=a64_0x2e8103;if(!_0x231cc7['accessKey'])throw CliErrors['authRequired']('Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20'+CLI_BIN_NAME+_0x5480d6(0x1cc)+_0x231cc7[_0x5480d6(0x1cf)]+'.');const {setActiveAK:_0x298038}=await import(_0x5480d6(0x1d5)),{getRemoteAppList:_0x3c2a26}=await import(_0x5480d6(0x1ea));_0x298038(_0x231cc7['accessKey']);const _0x76d6d=await _0x3c2a26({'env':_0x231cc7[_0x5480d6(0x1dc)],'accessKey':_0x231cc7[_0x5480d6(0x1f6)],'noCache':![]}),_0x491fe8=findAppByName(_0x76d6d['items'],_0x231cc7[_0x5480d6(0x1de)]);if(_0x491fe8&&!isRuntimeAccessibleApp(_0x491fe8))throw runtimeInaccessibleAppError(_0x491fe8,'\x22'+_0x231cc7[_0x5480d6(0x1de)]+'\x22');const _0x22962b=_0x491fe8?.[_0x5480d6(0x1e1)]?.['trim']();if(_0x22962b)return _0x22962b;const _0x2b2dd5=_0x76d6d[_0x5480d6(0x1f5)][_0x5480d6(0x1df)](_0x410983=>_0x410983[_0x5480d6(0x1de)])[_0x5480d6(0x1ff)](Boolean),_0x1b565e=_0x2b2dd5[_0x5480d6(0x1eb)]?'Available\x20apps:\x20'+Array['from'](new Set(_0x2b2dd5))[_0x5480d6(0x1db)](',\x20')+'.':_0x5480d6(0x1f8)+CLI_BIN_NAME+_0x5480d6(0x1cb);throw CliErrors['validation'](_0x5480d6(0x1e4)+_0x231cc7[_0x5480d6(0x1de)]+_0x5480d6(0x1f2),_0x1b565e);}function a64_0x37b2(_0x2b57e2,_0x113407){_0x2b57e2=_0x2b57e2-0x1c9;const _0x58f1d7=a64_0x58f1();let _0x37b2da=_0x58f1d7[_0x2b57e2];return _0x37b2da;}function writeWorkspaceConfig(_0x2f7677){const _0x45baf7=a64_0x2e8103,_0x1fd262=resolveWriteConfigPath('project'),_0x184d5a=readConfigFile(_0x1fd262);_0x2f7677[_0x45baf7(0x1e6)]&&(_0x184d5a[_0x45baf7(0x1dc)]=_0x2f7677[_0x45baf7(0x1dc)]);if(_0x2f7677[_0x45baf7(0x1de)]){const _0x42e0be=isRecord(_0x184d5a[_0x45baf7(0x1fa)])?{..._0x184d5a[_0x45baf7(0x1fa)]}:{},_0x2c27d1=isRecord(_0x42e0be[_0x2f7677[_0x45baf7(0x1de)]])?_0x42e0be[_0x2f7677[_0x45baf7(0x1de)]]:{};_0x42e0be[_0x2f7677[_0x45baf7(0x1de)]]={..._0x2c27d1,'appcode':_0x2f7677[_0x45baf7(0x1d8)]},_0x184d5a[_0x45baf7(0x1fa)]=_0x42e0be,_0x184d5a[_0x45baf7(0x1f0)]=_0x2f7677[_0x45baf7(0x1de)];if(_0x184d5a[_0x45baf7(0x1ed)])delete _0x184d5a['app'];return writeAndReturn(_0x1fd262,_0x184d5a);}_0x184d5a[_0x45baf7(0x1d8)]=_0x2f7677[_0x45baf7(0x1d8)];if(_0x184d5a[_0x45baf7(0x1ed)])delete _0x184d5a[_0x45baf7(0x1ed)];return writeAndReturn(_0x1fd262,_0x184d5a);}function writeAndReturn(_0x2a03cc,_0x1b84eb){return writeConfigFile(_0x2a03cc,_0x1b84eb),_0x2a03cc;}function resolveWorkspaceEnv(_0x3be03a){const _0x23cab9=a64_0x2e8103;if(RUNTIME_ENV_VALUES[_0x23cab9(0x1ee)](_0x3be03a))return _0x3be03a;throw CliErrors[_0x23cab9(0x1fd)](_0x23cab9(0x1d9)+_0x3be03a+_0x23cab9(0x1f3)+RUNTIME_ENV_VALUES[_0x23cab9(0x1db)](',\x20'));}function buildWorkspaceMessage(_0xf78faa,_0x1150f9,_0x440447,_0x470f17){const _0x2c625d=a64_0x2e8103,_0x560f30=_0x1150f9?_0x1150f9+'\x20('+_0x440447+')':_0x440447,_0x578e6d=_0x470f17?_0x2c625d(0x1ca)+_0x470f17:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0xf78faa+_0x2c625d(0x1da)+_0x560f30+_0x578e6d+_0x2c625d(0x1ec);}function isRecord(_0x5aabd8){const _0x576d74=a64_0x2e8103;return typeof _0x5aabd8===_0x576d74(0x1e9)&&_0x5aabd8!==null&&!Array[_0x576d74(0x1f4)](_0x5aabd8);}function makeWorkspaceCommand(_0x7d1fee){const _0x2b5bc6=a64_0x2e8103;return{'service':_0x2b5bc6(0x1f9),'command':_0x7d1fee,'description':_0x7d1fee==='init'?_0x2b5bc6(0x1e0):'Set\x20app\x20context\x20for\x20the\x20current\x20workspace','risk':_0x2b5bc6(0x1ce),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x594abd){return executeWorkspaceUse(_0x594abd,_0x7d1fee);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a64_0x2e8103(0x1e3)),makeWorkspaceCommand(a64_0x2e8103(0x1e2))];
@@ -1 +1 @@
1
- const a65_0x630490=a65_0x5c11;(function(_0x4be45c,_0x1ebb81){const _0x5ccc0c=a65_0x5c11,_0x3d38c8=_0x4be45c();while(!![]){try{const _0x2787f5=-parseInt(_0x5ccc0c(0x162))/0x1+-parseInt(_0x5ccc0c(0x17f))/0x2*(parseInt(_0x5ccc0c(0x169))/0x3)+parseInt(_0x5ccc0c(0x180))/0x4*(-parseInt(_0x5ccc0c(0x16d))/0x5)+-parseInt(_0x5ccc0c(0x178))/0x6+parseInt(_0x5ccc0c(0x175))/0x7*(-parseInt(_0x5ccc0c(0x161))/0x8)+-parseInt(_0x5ccc0c(0x17d))/0x9*(-parseInt(_0x5ccc0c(0x171))/0xa)+-parseInt(_0x5ccc0c(0x17b))/0xb*(-parseInt(_0x5ccc0c(0x166))/0xc);if(_0x2787f5===_0x1ebb81)break;else _0x3d38c8['push'](_0x3d38c8['shift']());}catch(_0x113531){_0x3d38c8['push'](_0x3d38c8['shift']());}}}(a65_0x5035,0xaab4e));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a65_0x630490(0x168),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x630490(0x172)],'importable':!![]},'pageSize':{'description':a65_0x630490(0x17c),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a65_0x630490(0x16a),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a65_0x630490(0x16f),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':'Override\x20runtime\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a65_0x630490(0x163),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a65_0x630490(0x164),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a65_0x630490(0x174),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x630490(0x176)],'importable':!![]},'locale':{'description':a65_0x630490(0x16c),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x630490(0x170)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a65_0x630490(0x177)](CONFIG_FIELD_SCHEMAS)[a65_0x630490(0x173)](([,_0x4607ab])=>_0x4607ab[a65_0x630490(0x17e)])[a65_0x630490(0x16b)](([_0xe707f8])=>_0xe707f8));export const CONFIG_ENUM_VALUES=Object[a65_0x630490(0x17a)](Object[a65_0x630490(0x177)](CONFIG_FIELD_SCHEMAS)[a65_0x630490(0x173)](([,_0x2ae365])=>_0x2ae365[a65_0x630490(0x167)])[a65_0x630490(0x16b)](([_0x3bac38,_0x5a6b07])=>[_0x3bac38,[..._0x5a6b07['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object['entries'](CONFIG_FIELD_SCHEMAS)[a65_0x630490(0x173)](([,_0x596f26])=>_0x596f26['importable'])[a65_0x630490(0x16b)](([_0x166d2d])=>_0x166d2d);export function getConfigFieldSchema(_0x20e9cf){return CONFIG_FIELD_SCHEMAS[_0x20e9cf];}export function getConfigEnumValues(_0x7f7670){const _0x49f0fc=a65_0x630490;return getConfigFieldSchema(_0x7f7670)?.[_0x49f0fc(0x167)];}export function getConfigDefaultValue(_0x329999){const _0x2b8e9a=a65_0x630490;return getConfigFieldSchema(_0x329999)?.[_0x2b8e9a(0x165)];}function a65_0x5035(){const _0x4fa175=['Locale','10uLGwSB','join','Override\x20user\x20domain','locale','10lKsSbw','format','filter','Risk\x20level','1113805ZjZxEn','riskLevel','entries','2246418gcHiFz',';\x20local\x20alias:\x20apps.<alias>.appcode','fromEntries','11jRYVDA','Default\x20page\x20size','3427569cXGbdW','cliSettableTopLevel','134242yucrRY','831008rUEffe','8pyKtYA','1018149auvhOe','Override\x20SkillHub\x20domain','Access\x20key\x20(client-ak\x20auth)','defaultValue','41119212CiqbNB','enumValues','Target\x20environment','51tVgjqT','Override\x20API\x20domain','map'];a65_0x5035=function(){return _0x4fa175;};return a65_0x5035();}export function isTopLevelConfigKey(_0x17fc96){return TOP_LEVEL_CONFIG_KEYS['has'](_0x17fc96);}export function isLegacyCompatConfigKey(_0x3f575e){return getConfigFieldSchema(_0x3f575e)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x484857){const _0x22df70=a65_0x630490;return[..._0x484857][_0x22df70(0x16e)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x371f72=a65_0x630490;return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+_0x371f72(0x179);}function a65_0x5c11(_0x3c2e93,_0x4f8d7b){_0x3c2e93=_0x3c2e93-0x161;const _0x5035de=a65_0x5035();let _0x5c1107=_0x5035de[_0x3c2e93];return _0x5c1107;}export function buildAppProfileListFields(_0xeab5f0){return{'env':_0xeab5f0,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a65_0x529b37=a65_0x251b;(function(_0x4663ab,_0x27f477){const _0x5c2a16=a65_0x251b,_0x5176c7=_0x4663ab();while(!![]){try{const _0x14aa4d=parseInt(_0x5c2a16(0x8d))/0x1*(parseInt(_0x5c2a16(0xa5))/0x2)+-parseInt(_0x5c2a16(0x97))/0x3*(-parseInt(_0x5c2a16(0x93))/0x4)+parseInt(_0x5c2a16(0xa4))/0x5*(parseInt(_0x5c2a16(0x9c))/0x6)+parseInt(_0x5c2a16(0xa6))/0x7*(parseInt(_0x5c2a16(0x98))/0x8)+-parseInt(_0x5c2a16(0x9e))/0x9*(-parseInt(_0x5c2a16(0x8a))/0xa)+-parseInt(_0x5c2a16(0x92))/0xb*(parseInt(_0x5c2a16(0x95))/0xc)+parseInt(_0x5c2a16(0x9f))/0xd*(-parseInt(_0x5c2a16(0xa2))/0xe);if(_0x14aa4d===_0x27f477)break;else _0x5176c7['push'](_0x5176c7['shift']());}catch(_0xf2056b){_0x5176c7['push'](_0x5176c7['shift']());}}}(a65_0x7d4c,0x386b9));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';function a65_0x7d4c(){const _0x194d81=['Target\x20environment','Override\x20API\x20domain','Default\x20output\x20format','riskLevel','2083301xKyRew','28crRSTJ','defaultValue','24SziHTk','Override\x20SkillHub\x20domain','16197hotHJT','452792WWUjIJ','fromEntries','entries','map','576mdcAQq','format','1487268INaPqa','13ULqzOO','has','importable','1157506TMwedG','filter','9335uGmRkN','4780FdVKme','7rdQwvZ','enumValues','legacyCompatOnly','Override\x20user\x20domain','Risk\x20level','Default\x20page\x20size','20QBzbET','Override\x20runtime\x20domain','Config\x20key.\x20Top-level:\x20','37qXZgMK'];a65_0x7d4c=function(){return _0x194d81;};return a65_0x7d4c();}import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a65_0x529b37(0x8e),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':a65_0x529b37(0x90),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x529b37(0x9d)],'importable':!![]},'pageSize':{'description':a65_0x529b37(0xab),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a65_0x529b37(0x8f),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a65_0x529b37(0xa9),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a65_0x529b37(0x8b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a65_0x529b37(0x96),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a65_0x529b37(0xaa),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a65_0x529b37(0x91)],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a65_0x529b37(0x9a)](CONFIG_FIELD_SCHEMAS)[a65_0x529b37(0xa3)](([,_0x13b5f3])=>_0x13b5f3['cliSettableTopLevel'])[a65_0x529b37(0x9b)](([_0x747159])=>_0x747159));export const CONFIG_ENUM_VALUES=Object[a65_0x529b37(0x99)](Object['entries'](CONFIG_FIELD_SCHEMAS)[a65_0x529b37(0xa3)](([,_0xf2794e])=>_0xf2794e['enumValues'])['map'](([_0x553694,_0x4acf8d])=>[_0x553694,[..._0x4acf8d['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a65_0x529b37(0x9a)](CONFIG_FIELD_SCHEMAS)[a65_0x529b37(0xa3)](([,_0x668eb0])=>_0x668eb0[a65_0x529b37(0xa1)])[a65_0x529b37(0x9b)](([_0x1101fd])=>_0x1101fd);export function getConfigFieldSchema(_0xa47474){return CONFIG_FIELD_SCHEMAS[_0xa47474];}export function getConfigEnumValues(_0x5c4e8a){const _0x1be4b3=a65_0x529b37;return getConfigFieldSchema(_0x5c4e8a)?.[_0x1be4b3(0xa7)];}export function getConfigDefaultValue(_0x406162){const _0x325ed1=a65_0x529b37;return getConfigFieldSchema(_0x406162)?.[_0x325ed1(0x94)];}export function isTopLevelConfigKey(_0x1c7e1e){const _0x263fc0=a65_0x529b37;return TOP_LEVEL_CONFIG_KEYS[_0x263fc0(0xa0)](_0x1c7e1e);}export function isLegacyCompatConfigKey(_0x4ccb9f){const _0x2a1b22=a65_0x529b37;return getConfigFieldSchema(_0x4ccb9f)?.[_0x2a1b22(0xa8)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0xee1bcf){return[..._0xee1bcf]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}function a65_0x251b(_0x2432f0,_0x236f8b){_0x2432f0=_0x2432f0-0x8a;const _0x7d4cbf=a65_0x7d4c();let _0x251ba8=_0x7d4cbf[_0x2432f0];return _0x251ba8;}export function getConfigCommandKeyDescription(){const _0x27fea5=a65_0x529b37;return _0x27fea5(0x8c)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0xe5e506){return{'env':_0xe5e506,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- const a66_0x31c3c3=a66_0x129e;function a66_0x10aa(){const _0x56ad1e=['5130SgEiFW','547ulLlhi','PUBLISHED','179718CDTrEh','2089656mJZHCY','Published','760KsENAl','70OPXhkj','206463BpAmxZ','7130pBgyAM','5046129vGmyTT','UNPUBLISH','348xgLApx','934NQzLWx'];a66_0x10aa=function(){return _0x56ad1e;};return a66_0x10aa();}function a66_0x129e(_0x304870,_0x5414d3){_0x304870=_0x304870-0x1a1;const _0x10aa81=a66_0x10aa();let _0x129e21=_0x10aa81[_0x304870];return _0x129e21;}(function(_0x512ba7,_0x4c0ee2){const _0x4785fe=a66_0x129e,_0x184acf=_0x512ba7();while(!![]){try{const _0x49fdda=-parseInt(_0x4785fe(0x1ab))/0x1*(-parseInt(_0x4785fe(0x1a9))/0x2)+parseInt(_0x4785fe(0x1a4))/0x3+-parseInt(_0x4785fe(0x1a8))/0x4*(parseInt(_0x4785fe(0x1a2))/0x5)+-parseInt(_0x4785fe(0x1ad))/0x6*(parseInt(_0x4785fe(0x1a3))/0x7)+parseInt(_0x4785fe(0x1ae))/0x8+-parseInt(_0x4785fe(0x1aa))/0x9*(-parseInt(_0x4785fe(0x1a5))/0xa)+-parseInt(_0x4785fe(0x1a6))/0xb;if(_0x49fdda===_0x4c0ee2)break;else _0x184acf['push'](_0x184acf['shift']());}catch(_0x15aaf7){_0x184acf['push'](_0x184acf['shift']());}}}(a66_0x10aa,0x35cea));export const APP_PUBLISH_STATUS={'Published':a66_0x31c3c3(0x1ac),'Unpublished':a66_0x31c3c3(0x1a7)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a66_0x31c3c3(0x1a1)];
1
+ const a66_0x478624=a66_0x1550;(function(_0x275a17,_0x408977){const _0x347f6a=a66_0x1550,_0x1bb5ed=_0x275a17();while(!![]){try{const _0x574d7f=-parseInt(_0x347f6a(0x1fe))/0x1*(-parseInt(_0x347f6a(0x1f4))/0x2)+parseInt(_0x347f6a(0x1fb))/0x3+parseInt(_0x347f6a(0x1fc))/0x4+parseInt(_0x347f6a(0x1fd))/0x5*(parseInt(_0x347f6a(0x1f6))/0x6)+-parseInt(_0x347f6a(0x201))/0x7*(parseInt(_0x347f6a(0x1f9))/0x8)+parseInt(_0x347f6a(0x1f5))/0x9*(-parseInt(_0x347f6a(0x1f3))/0xa)+parseInt(_0x347f6a(0x1fa))/0xb*(parseInt(_0x347f6a(0x1ff))/0xc);if(_0x574d7f===_0x408977)break;else _0x1bb5ed['push'](_0x1bb5ed['shift']());}catch(_0x4f99d4){_0x1bb5ed['push'](_0x1bb5ed['shift']());}}}(a66_0x499a,0x20e3d));export const APP_PUBLISH_STATUS={'Published':a66_0x478624(0x1f7),'Unpublished':a66_0x478624(0x200)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a66_0x478624(0x1f8)];function a66_0x1550(_0x36a061,_0x543ca1){_0x36a061=_0x36a061-0x1f3;const _0x499a63=a66_0x499a();let _0x1550d4=_0x499a63[_0x36a061];return _0x1550d4;}function a66_0x499a(){const _0x5da639=['UNPUBLISH','7fvwuJl','2125610lqBJas','18SKjTfu','9doUWBl','24258wBjKBJ','PUBLISHED','Published','607816OgpHDU','118239rbHeuK','125427luVzFN','611448mlzPVG','125txyzoB','1030XfgkXs','132kBMeQj'];a66_0x499a=function(){return _0x5da639;};return a66_0x499a();}
@@ -1 +1 @@
1
- const a67_0x346f2b=a67_0x1a2b;function a67_0x5d21(){const _0x2d22f2=['1067620bIpCip','33BKLyoC','8839096NrfTqd','6DGMWFj','12912210upBrYf','115348btJHmb','client-ak','1313520DoYkbQ','1830409cVhGlt','9bVWlSc','ClientAk','4568060aSyQIS','72VxSzSr'];a67_0x5d21=function(){return _0x2d22f2;};return a67_0x5d21();}(function(_0x4c44a1,_0xcb0f18){const _0x4278d1=a67_0x1a2b,_0x255ac1=_0x4c44a1();while(!![]){try{const _0x4a4a54=-parseInt(_0x4278d1(0xcc))/0x1+-parseInt(_0x4278d1(0xc6))/0x2+-parseInt(_0x4278d1(0xcb))/0x3*(-parseInt(_0x4278d1(0xc4))/0x4)+-parseInt(_0x4278d1(0xca))/0x5+parseInt(_0x4278d1(0xc2))/0x6*(-parseInt(_0x4278d1(0xc7))/0x7)+parseInt(_0x4278d1(0xc1))/0x8*(-parseInt(_0x4278d1(0xc8))/0x9)+-parseInt(_0x4278d1(0xc3))/0xa*(-parseInt(_0x4278d1(0xcd))/0xb);if(_0x4a4a54===_0xcb0f18)break;else _0x255ac1['push'](_0x255ac1['shift']());}catch(_0xaade40){_0x255ac1['push'](_0x255ac1['shift']());}}}(a67_0x5d21,0x890e9));function a67_0x1a2b(_0x241c55,_0xa61cb8){_0x241c55=_0x241c55-0xc1;const _0x5d2188=a67_0x5d21();let _0x1a2bfc=_0x5d2188[_0x241c55];return _0x1a2bfc;}export const AUTH_MODE={'ClientAk':a67_0x346f2b(0xc5)};export function isAuthMode(_0x154150){const _0x59d65f=a67_0x346f2b;return _0x154150===AUTH_MODE[_0x59d65f(0xc9)];}
1
+ function a67_0x7bf7(_0xa9676f,_0x1b8d57){_0xa9676f=_0xa9676f-0x174;const _0x509686=a67_0x5096();let _0x7bf7ba=_0x509686[_0xa9676f];return _0x7bf7ba;}const a67_0x3ae6e4=a67_0x7bf7;function a67_0x5096(){const _0x46d1b9=['1749080AsflIo','509360EUKYgL','338TuCWpt','1658713HydPyV','1593iEMXuX','13627953QeAfzh','ClientAk','12oNdYWE','3911952OgioHF','1885584qrjxyO','client-ak'];a67_0x5096=function(){return _0x46d1b9;};return a67_0x5096();}(function(_0x1edef6,_0x5e9e08){const _0x262409=a67_0x7bf7,_0x79ece2=_0x1edef6();while(!![]){try{const _0x247d64=-parseInt(_0x262409(0x17d))/0x1+parseInt(_0x262409(0x17e))/0x2*(parseInt(_0x262409(0x175))/0x3)+-parseInt(_0x262409(0x17a))/0x4+-parseInt(_0x262409(0x17c))/0x5+parseInt(_0x262409(0x178))/0x6*(-parseInt(_0x262409(0x174))/0x7)+parseInt(_0x262409(0x179))/0x8+parseInt(_0x262409(0x176))/0x9;if(_0x247d64===_0x5e9e08)break;else _0x79ece2['push'](_0x79ece2['shift']());}catch(_0x585d45){_0x79ece2['push'](_0x79ece2['shift']());}}}(a67_0x5096,0x466cc));export const AUTH_MODE={'ClientAk':a67_0x3ae6e4(0x17b)};export function isAuthMode(_0x2d1bba){const _0x3c7cfc=a67_0x3ae6e4;return _0x2d1bba===AUTH_MODE[_0x3c7cfc(0x177)];}
@@ -1 +1 @@
1
- function a68_0x6d38(_0x20a2c5,_0x437388){_0x20a2c5=_0x20a2c5-0x115;const _0x146852=a68_0x1468();let _0x6d3813=_0x146852[_0x20a2c5];return _0x6d3813;}const a68_0x3f8562=a68_0x6d38;function a68_0x1468(){const _0x20867c=['Verbose\x20output','fromEntries','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','2220984WYvyHQ','help','Preview\x20operation\x20without\x20executing','dryRun','appcode','production\x20|\x20development\x20|\x20daily','1623327qfmeGH','Record\x20ID','Force\x20non-interactive\x20mode\x20(CI)','<expr>','526788mREbkk','2461392wlRHPJ','name','Clear\x20output','<code>','<name>','string','global','Skip\x20confirmation\x20for\x20high-risk\x20writes','sqlcode','JSON\x20params\x20for\x20execute\x20commands','type','env','params','629584DZqNsN','non-interactive','boolean','Select\x20app\x20profile\x20by\x20name','Show\x20help','clear','27979CqCpEN','map','15RWXSYg','format','verbose','app','Override\x20appcode','dry-run','536xeioCe','yes','977318bhNMMf'];a68_0x1468=function(){return _0x20867c;};return a68_0x1468();}(function(_0xf80db,_0x49d455){const _0x5efc21=a68_0x6d38,_0x5243e5=_0xf80db();while(!![]){try{const _0x521089=parseInt(_0x5efc21(0x140))/0x1+parseInt(_0x5efc21(0x124))/0x2+-parseInt(_0x5efc21(0x12e))/0x3+parseInt(_0x5efc21(0x133))/0x4+parseInt(_0x5efc21(0x11c))/0x5*(-parseInt(_0x5efc21(0x132))/0x6)+-parseInt(_0x5efc21(0x11a))/0x7*(parseInt(_0x5efc21(0x122))/0x8)+-parseInt(_0x5efc21(0x128))/0x9;if(_0x521089===_0x49d455)break;else _0x5243e5['push'](_0x5243e5['shift']());}catch(_0x3661fd){_0x5243e5['push'](_0x5243e5['shift']());}}}(a68_0x1468,0x65331));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['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a68_0x3f8562(0x12c),'meowKey':a68_0x3f8562(0x12c),'type':a68_0x3f8562(0x138),'description':a68_0x3f8562(0x120),'hint':a68_0x3f8562(0x136)},{'name':a68_0x3f8562(0x11f),'meowKey':a68_0x3f8562(0x11f),'type':a68_0x3f8562(0x138),'description':a68_0x3f8562(0x117),'hint':a68_0x3f8562(0x137)},{'name':'env','meowKey':a68_0x3f8562(0x13e),'type':a68_0x3f8562(0x138),'description':'Environment','hint':a68_0x3f8562(0x12d)},{'name':a68_0x3f8562(0x11d),'meowKey':'format','type':'string','description':'Output\x20format','hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a68_0x3f8562(0x138),'description':a68_0x3f8562(0x127),'hint':a68_0x3f8562(0x131)},{'name':a68_0x3f8562(0x121),'meowKey':a68_0x3f8562(0x12b),'type':a68_0x3f8562(0x116),'description':a68_0x3f8562(0x12a)},{'name':a68_0x3f8562(0x123),'meowKey':a68_0x3f8562(0x123),'type':a68_0x3f8562(0x116),'description':a68_0x3f8562(0x13a)},{'name':a68_0x3f8562(0x115),'meowKey':'nonInteractive','type':a68_0x3f8562(0x116),'description':a68_0x3f8562(0x130)},{'name':a68_0x3f8562(0x139),'meowKey':a68_0x3f8562(0x139),'type':'boolean','description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':'help','meowKey':a68_0x3f8562(0x129),'type':'boolean','description':a68_0x3f8562(0x118)},{'name':'id','meowKey':'id','type':a68_0x3f8562(0x138),'description':a68_0x3f8562(0x12f),'hidden':!![]},{'name':'name','meowKey':a68_0x3f8562(0x134),'type':'string','description':'Name\x20filter','hidden':!![]},{'name':a68_0x3f8562(0x13b),'meowKey':a68_0x3f8562(0x13b),'type':a68_0x3f8562(0x138),'description':'SQL\x20query\x20code','hidden':!![]},{'name':a68_0x3f8562(0x13f),'meowKey':'params','type':a68_0x3f8562(0x138),'description':a68_0x3f8562(0x13c),'hidden':!![]},{'name':'verbose','meowKey':a68_0x3f8562(0x11e),'type':a68_0x3f8562(0x116),'description':a68_0x3f8562(0x125),'hidden':!![]},{'name':a68_0x3f8562(0x119),'meowKey':a68_0x3f8562(0x119),'type':a68_0x3f8562(0x116),'description':a68_0x3f8562(0x135),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a68_0x3f8562(0x12c),a68_0x3f8562(0x11f),a68_0x3f8562(0x13e),a68_0x3f8562(0x11d),'jq',a68_0x3f8562(0x121),a68_0x3f8562(0x123),'non-interactive','ci']);export function buildMeowFlags(){const _0x381b80=a68_0x3f8562;return Object[_0x381b80(0x126)](GLOBAL_FLAGS[_0x381b80(0x11b)](_0x39d71e=>[_0x39d71e['meowKey'],{'type':_0x39d71e[_0x381b80(0x13d)]}]));}
1
+ const a68_0x5d0a22=a68_0x49ba;(function(_0x1bd546,_0x945f62){const _0xe7b730=a68_0x49ba,_0x549ef8=_0x1bd546();while(!![]){try{const _0x48776d=-parseInt(_0xe7b730(0x143))/0x1+-parseInt(_0xe7b730(0x164))/0x2*(-parseInt(_0xe7b730(0x14a))/0x3)+-parseInt(_0xe7b730(0x14e))/0x4*(-parseInt(_0xe7b730(0x168))/0x5)+parseInt(_0xe7b730(0x158))/0x6+-parseInt(_0xe7b730(0x152))/0x7*(parseInt(_0xe7b730(0x146))/0x8)+-parseInt(_0xe7b730(0x15e))/0x9+-parseInt(_0xe7b730(0x153))/0xa*(-parseInt(_0xe7b730(0x15b))/0xb);if(_0x48776d===_0x945f62)break;else _0x549ef8['push'](_0x549ef8['shift']());}catch(_0x4041a7){_0x549ef8['push'](_0x549ef8['shift']());}}}(a68_0x7488,0x399f0));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a68_0x5d0a22(0x144)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a68_0x7488(){const _0x527c20=['Output\x20format','production\x20|\x20development\x20|\x20daily','139746AyYsqr','sqlcode','boolean','88IeDSHK','Skip\x20confirmation\x20for\x20high-risk\x20writes','format','2600127ISrbYN','<code>','name','help','fromEntries','Verbose\x20output','82rHSrWi','dry-run','verbose','type','170NgTytf','Clear\x20output','app','Preview\x20operation\x20without\x20executing','Alias\x20for\x20--non-interactive','Force\x20non-interactive\x20mode\x20(CI)','global','dryRun','79080joYwTg','cliBinName','yes','1704STeWoa','Select\x20app\x20profile\x20by\x20name','json\x20|\x20pretty\x20|\x20compress','<name>','3921XkKUZa','env','JSON\x20params\x20for\x20execute\x20commands','string','25448pVbpon','SQL\x20query\x20code','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','params','5537fyJYld','599120JFkmAe','appcode','non-interactive'];a68_0x7488=function(){return _0x527c20;};return a68_0x7488();}function a68_0x49ba(_0x8bf975,_0x367564){_0x8bf975=_0x8bf975-0x140;const _0x7488eb=a68_0x7488();let _0x49ba46=_0x7488eb[_0x8bf975];return _0x49ba46;}export const GLOBAL_FLAGS=[{'name':a68_0x5d0a22(0x154),'meowKey':a68_0x5d0a22(0x154),'type':'string','description':'Override\x20appcode','hint':a68_0x5d0a22(0x15f)},{'name':a68_0x5d0a22(0x16a),'meowKey':a68_0x5d0a22(0x16a),'type':a68_0x5d0a22(0x14d),'description':a68_0x5d0a22(0x147),'hint':a68_0x5d0a22(0x149)},{'name':a68_0x5d0a22(0x14b),'meowKey':'env','type':a68_0x5d0a22(0x14d),'description':'Environment','hint':a68_0x5d0a22(0x157)},{'name':'format','meowKey':'format','type':'string','description':a68_0x5d0a22(0x156),'hint':a68_0x5d0a22(0x148)},{'name':'jq','meowKey':'jq','type':a68_0x5d0a22(0x14d),'description':a68_0x5d0a22(0x150),'hint':'<expr>'},{'name':a68_0x5d0a22(0x165),'meowKey':a68_0x5d0a22(0x142),'type':a68_0x5d0a22(0x15a),'description':a68_0x5d0a22(0x16b)},{'name':'yes','meowKey':a68_0x5d0a22(0x145),'type':a68_0x5d0a22(0x15a),'description':a68_0x5d0a22(0x15c)},{'name':a68_0x5d0a22(0x155),'meowKey':'nonInteractive','type':a68_0x5d0a22(0x15a),'description':a68_0x5d0a22(0x140)},{'name':a68_0x5d0a22(0x141),'meowKey':a68_0x5d0a22(0x141),'type':a68_0x5d0a22(0x15a),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a68_0x5d0a22(0x15a),'description':a68_0x5d0a22(0x16c),'hidden':!![]},{'name':'help','meowKey':a68_0x5d0a22(0x161),'type':a68_0x5d0a22(0x15a),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':a68_0x5d0a22(0x14d),'description':'Record\x20ID','hidden':!![]},{'name':a68_0x5d0a22(0x160),'meowKey':a68_0x5d0a22(0x160),'type':a68_0x5d0a22(0x14d),'description':'Name\x20filter','hidden':!![]},{'name':a68_0x5d0a22(0x159),'meowKey':a68_0x5d0a22(0x159),'type':a68_0x5d0a22(0x14d),'description':a68_0x5d0a22(0x14f),'hidden':!![]},{'name':'params','meowKey':a68_0x5d0a22(0x151),'type':a68_0x5d0a22(0x14d),'description':a68_0x5d0a22(0x14c),'hidden':!![]},{'name':a68_0x5d0a22(0x166),'meowKey':a68_0x5d0a22(0x166),'type':a68_0x5d0a22(0x15a),'description':a68_0x5d0a22(0x163),'hidden':!![]},{'name':'clear','meowKey':'clear','type':a68_0x5d0a22(0x15a),'description':a68_0x5d0a22(0x169),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a68_0x5d0a22(0x16a),a68_0x5d0a22(0x14b),a68_0x5d0a22(0x15d),'jq',a68_0x5d0a22(0x165),a68_0x5d0a22(0x145),a68_0x5d0a22(0x155),'ci']);export function buildMeowFlags(){const _0x3f6e59=a68_0x5d0a22;return Object[_0x3f6e59(0x162)](GLOBAL_FLAGS['map'](_0x3ccdee=>[_0x3ccdee['meowKey'],{'type':_0x3ccdee[_0x3f6e59(0x167)]}]));}
@@ -1 +1 @@
1
- const a69_0x5d672b=a69_0xf408;(function(_0xaf8328,_0x4f214a){const _0x365b26=a69_0xf408,_0x273397=_0xaf8328();while(!![]){try{const _0x57ee6f=-parseInt(_0x365b26(0x1c9))/0x1*(parseInt(_0x365b26(0x1d0))/0x2)+-parseInt(_0x365b26(0x1d5))/0x3*(parseInt(_0x365b26(0x1cf))/0x4)+parseInt(_0x365b26(0x1d2))/0x5+parseInt(_0x365b26(0x1cb))/0x6*(-parseInt(_0x365b26(0x1d3))/0x7)+-parseInt(_0x365b26(0x1d4))/0x8*(parseInt(_0x365b26(0x1ce))/0x9)+parseInt(_0x365b26(0x1d1))/0xa+parseInt(_0x365b26(0x1cc))/0xb;if(_0x57ee6f===_0x4f214a)break;else _0x273397['push'](_0x273397['shift']());}catch(_0x2a41a2){_0x273397['push'](_0x273397['shift']());}}}(a69_0x470e,0xb0725));export const DEFAULT_APP_PROFILE_NAME=a69_0x5d672b(0x1c8);function a69_0x470e(){const _0x8255a0=['84gsKkpP','4QtfASl','10715980jYuFlh','5474165KxwxwW','7RPDWkN','1371952CdWVBZ','182037UgMEwg','main','283047ZbDQTd','write','5799042HHlggh','16881128VecUEf','en-US','9BaSBWo'];a69_0x470e=function(){return _0x8255a0;};return a69_0x470e();}function a69_0xf408(_0x3536fa,_0x3c70c0){_0x3536fa=_0x3536fa-0x1c8;const _0x470e60=a69_0x470e();let _0xf408df=_0x470e60[_0x3536fa];return _0xf408df;}export const DEFAULT_CONFIG_VALUES={'env':'production','format':'compress','locale':a69_0x5d672b(0x1cd),'riskLevel':a69_0x5d672b(0x1ca)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
1
+ function a69_0x51ef(_0x23821f,_0xdd1e30){_0x23821f=_0x23821f-0x17b;const _0x198ee1=a69_0x198e();let _0x51efe8=_0x198ee1[_0x23821f];return _0x51efe8;}const a69_0x3bac55=a69_0x51ef;(function(_0x1f7c70,_0x21f46c){const _0x4df56b=a69_0x51ef,_0x57a99b=_0x1f7c70();while(!![]){try{const _0x109ae1=-parseInt(_0x4df56b(0x183))/0x1*(parseInt(_0x4df56b(0x17e))/0x2)+-parseInt(_0x4df56b(0x17b))/0x3*(parseInt(_0x4df56b(0x17f))/0x4)+parseInt(_0x4df56b(0x185))/0x5+-parseInt(_0x4df56b(0x17d))/0x6*(-parseInt(_0x4df56b(0x182))/0x7)+-parseInt(_0x4df56b(0x188))/0x8+-parseInt(_0x4df56b(0x17c))/0x9*(parseInt(_0x4df56b(0x181))/0xa)+parseInt(_0x4df56b(0x180))/0xb;if(_0x109ae1===_0x21f46c)break;else _0x57a99b['push'](_0x57a99b['shift']());}catch(_0x120ab3){_0x57a99b['push'](_0x57a99b['shift']());}}}(a69_0x198e,0x991d3));export const DEFAULT_APP_PROFILE_NAME=a69_0x3bac55(0x186);export const DEFAULT_CONFIG_VALUES={'env':a69_0x3bac55(0x184),'format':a69_0x3bac55(0x189),'locale':a69_0x3bac55(0x187),'riskLevel':a69_0x3bac55(0x18a)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a69_0x3bac55(0x189);function a69_0x198e(){const _0x528be5=['32493164oMNbYn','20dQzeQb','1386BTAgnR','17SLiFoG','production','5301420oDpwdY','main','en-US','4993304VWpHjX','compress','write','6hwSMyJ','3680811BmcfnI','8064LBvgBc','137308GszreU','2087852WkrnNx'];a69_0x198e=function(){return _0x528be5;};return a69_0x198e();}
@@ -1 +1 @@
1
- const a70_0x545828=a70_0x3985;function a70_0x3985(_0x2ed613,_0x596ce1){_0x2ed613=_0x2ed613-0x188;const _0x40c6e0=a70_0x40c6();let _0x398591=_0x40c6e0[_0x2ed613];return _0x398591;}function a70_0x40c6(){const _0xc22758=['32760xkWEhV','285978YgvmYd','603564lbkYlJ','171944cHNYdG','npmPackageName','6OMOSIl','205548HeoDpH','94735yufdAN','skillSource','npmRegistryBaseUrl','84624QAqEAN'];a70_0x40c6=function(){return _0xc22758;};return a70_0x40c6();}(function(_0x141787,_0x8e7023){const _0x2dd493=a70_0x3985,_0x6053cc=_0x141787();while(!![]){try{const _0x18e4dc=parseInt(_0x2dd493(0x18d))/0x1+-parseInt(_0x2dd493(0x188))/0x2+parseInt(_0x2dd493(0x18f))/0x3+parseInt(_0x2dd493(0x18c))/0x4+-parseInt(_0x2dd493(0x189))/0x5*(parseInt(_0x2dd493(0x192))/0x6)+-parseInt(_0x2dd493(0x18e))/0x7+parseInt(_0x2dd493(0x190))/0x8;if(_0x18e4dc===_0x8e7023)break;else _0x6053cc['push'](_0x6053cc['shift']());}catch(_0x5274bb){_0x6053cc['push'](_0x6053cc['shift']());}}}(a70_0x40c6,0x1bd66));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a70_0x545828(0x191)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a70_0x545828(0x18a)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a70_0x545828(0x18b)];
1
+ const a70_0x3a2224=a70_0x1acf;function a70_0x4a44(){const _0x68aa7=['81145IRBCBe','5132754CPaguQ','3989718epqQWX','7nnoesG','5660184JJTEhH','404989QqaNsM','542367BbSkTK','npmRegistryBaseUrl','4732510TdbKhT','4DhbmFk','80BEQqwi'];a70_0x4a44=function(){return _0x68aa7;};return a70_0x4a44();}(function(_0x24697f,_0x50990c){const _0x31590c=a70_0x1acf,_0x46a929=_0x24697f();while(!![]){try{const _0x5413a0=-parseInt(_0x31590c(0xf4))/0x1*(-parseInt(_0x31590c(0xed))/0x2)+parseInt(_0x31590c(0xea))/0x3+parseInt(_0x31590c(0xee))/0x4*(-parseInt(_0x31590c(0xef))/0x5)+-parseInt(_0x31590c(0xf1))/0x6+parseInt(_0x31590c(0xf2))/0x7*(parseInt(_0x31590c(0xf3))/0x8)+-parseInt(_0x31590c(0xf0))/0x9+parseInt(_0x31590c(0xec))/0xa;if(_0x5413a0===_0x50990c)break;else _0x46a929['push'](_0x46a929['shift']());}catch(_0x315497){_0x46a929['push'](_0x46a929['shift']());}}}(a70_0x4a44,0x95576));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];function a70_0x1acf(_0x19420c,_0xa5b552){_0x19420c=_0x19420c-0xea;const _0x4a448c=a70_0x4a44();let _0x1acfb1=_0x4a448c[_0x19420c];return _0x1acfb1;}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a70_0x3a2224(0xeb)];
@@ -1 +1 @@
1
- const a71_0x122677=a71_0x2d0b;(function(_0x32f5dd,_0x54aad7){const _0x568ae4=a71_0x2d0b,_0x5f2eca=_0x32f5dd();while(!![]){try{const _0x85fb9e=-parseInt(_0x568ae4(0xd3))/0x1*(parseInt(_0x568ae4(0xc3))/0x2)+-parseInt(_0x568ae4(0xd2))/0x3*(-parseInt(_0x568ae4(0xcb))/0x4)+parseInt(_0x568ae4(0xc4))/0x5*(parseInt(_0x568ae4(0xc6))/0x6)+parseInt(_0x568ae4(0xc9))/0x7+parseInt(_0x568ae4(0xcf))/0x8*(parseInt(_0x568ae4(0xd0))/0x9)+-parseInt(_0x568ae4(0xd6))/0xa+-parseInt(_0x568ae4(0xca))/0xb;if(_0x85fb9e===_0x54aad7)break;else _0x5f2eca['push'](_0x5f2eca['shift']());}catch(_0x213e7d){_0x5f2eca['push'](_0x5f2eca['shift']());}}}(a71_0x1ed5,0x5b337));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;function a71_0x2d0b(_0x3b8fed,_0x6824a6){_0x3b8fed=_0x3b8fed-0xc3;const _0x1ed599=a71_0x1ed5();let _0x2d0b58=_0x1ed599[_0x3b8fed];return _0x2d0b58;}export function initDomains(_0x32ced8){const _0xf336a8=a71_0x2d0b;customApiDomain=_0x32ced8?.[_0xf336a8(0xce)],customUserDomain=_0x32ced8?.[_0xf336a8(0xd5)],customRuntimeDomain=_0x32ced8?.[_0xf336a8(0xcc)],customSkillHubDomain=_0x32ced8?.[_0xf336a8(0xc8)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x122677(0xd4)][a71_0x122677(0xd1)][a71_0x122677(0xd8)]:PRODUCT_CONFIG[a71_0x122677(0xd4)]['nonProduction'][a71_0x122677(0xd8)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x122677(0xd4)][a71_0x122677(0xd1)]['api']:PRODUCT_CONFIG[a71_0x122677(0xd4)]['nonProduction'][a71_0x122677(0xd7)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x122677(0xd4)][a71_0x122677(0xd1)][a71_0x122677(0xc7)]:PRODUCT_CONFIG[a71_0x122677(0xd4)][a71_0x122677(0xcd)][a71_0x122677(0xc7)]);function a71_0x1ed5(){const _0x5bd22d=['nonProduction','apiDomain','111880pzjWWL','441RTHnqk','production','1353KoKejr','1ndFUzc','domains','userDomain','970800xTwsFM','api','user','28286gYDDlN','3431795CsYRGN','skillhub','6PbWycS','runtime','skillHubDomain','3989069KUVfJP','16882052EJASbL','692CnQrTE','runtimeDomain'];a71_0x1ed5=function(){return _0x5bd22d;};return a71_0x1ed5();}export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a71_0x122677(0xd1)][a71_0x122677(0xc5)]:PRODUCT_CONFIG['domains']['nonProduction']['skillhub']);
1
+ const a71_0x4534d9=a71_0x49fa;(function(_0x3b472d,_0x1406fb){const _0x4acf94=a71_0x49fa,_0x3596f3=_0x3b472d();while(!![]){try{const _0x4c1c8c=-parseInt(_0x4acf94(0x196))/0x1*(parseInt(_0x4acf94(0x195))/0x2)+parseInt(_0x4acf94(0x19d))/0x3*(-parseInt(_0x4acf94(0x19a))/0x4)+-parseInt(_0x4acf94(0x1a4))/0x5+-parseInt(_0x4acf94(0x197))/0x6*(-parseInt(_0x4acf94(0x1a0))/0x7)+parseInt(_0x4acf94(0x19c))/0x8*(parseInt(_0x4acf94(0x1a3))/0x9)+-parseInt(_0x4acf94(0x19f))/0xa*(parseInt(_0x4acf94(0x1a1))/0xb)+parseInt(_0x4acf94(0x1a5))/0xc*(parseInt(_0x4acf94(0x198))/0xd);if(_0x4c1c8c===_0x1406fb)break;else _0x3596f3['push'](_0x3596f3['shift']());}catch(_0x277a35){_0x3596f3['push'](_0x3596f3['shift']());}}}(a71_0x271f,0xd7e54));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;function a71_0x49fa(_0x203ad7,_0xb48351){_0x203ad7=_0x203ad7-0x18f;const _0x271f3d=a71_0x271f();let _0x49fa04=_0x271f3d[_0x203ad7];return _0x49fa04;}export function initDomains(_0x54118c){const _0x1ae482=a71_0x49fa;customApiDomain=_0x54118c?.[_0x1ae482(0x18f)],customUserDomain=_0x54118c?.[_0x1ae482(0x192)],customRuntimeDomain=_0x54118c?.[_0x1ae482(0x19b)],customSkillHubDomain=_0x54118c?.[_0x1ae482(0x199)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x4534d9(0x194)][a71_0x4534d9(0x19e)][a71_0x4534d9(0x191)]:PRODUCT_CONFIG[a71_0x4534d9(0x194)][a71_0x4534d9(0x1a2)]['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x4534d9(0x194)][a71_0x4534d9(0x19e)]['api']:PRODUCT_CONFIG[a71_0x4534d9(0x194)][a71_0x4534d9(0x1a2)][a71_0x4534d9(0x193)]);function a71_0x271f(){const _0x262bf1=['879050yyQJvL','24Puohwj','skillhub','apiDomain','runtime','user','userDomain','api','domains','58GGfATP','44151yymjqq','66cXKXlx','18835336oIgHCk','skillHubDomain','14888IuzaGK','runtimeDomain','6104KYsOti','1239qsSHIw','production','829090tVyZIa','640913rodcIT','11PbApMt','nonProduction','657PHiJOs'];a71_0x271f=function(){return _0x262bf1;};return a71_0x271f();}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x4534d9(0x194)]['production'][a71_0x4534d9(0x190)]:PRODUCT_CONFIG[a71_0x4534d9(0x194)][a71_0x4534d9(0x1a2)][a71_0x4534d9(0x190)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a71_0x4534d9(0x194)]['production']['skillhub']:PRODUCT_CONFIG[a71_0x4534d9(0x194)]['nonProduction'][a71_0x4534d9(0x1a6)]);
@@ -1 +1 @@
1
- function a72_0xb84a(_0x5b2cbf,_0x204525){_0x5b2cbf=_0x5b2cbf-0x14a;const _0x699606=a72_0x6996();let _0xb84a50=_0x699606[_0x5b2cbf];return _0xb84a50;}const a72_0x4598d3=a72_0xb84a;function a72_0x6996(){const _0x3ead63=['daily','1098312xRAnqp','3xbpyJg','592821qfIuzW','2779995LIbNOe','dev','development','ENV','40GBjAPJ','24SQTSLK','1398140njCqDS','production','2549476klycsM','online','675448YqXQjX','859649vVRuEH'];a72_0x6996=function(){return _0x3ead63;};return a72_0x6996();}(function(_0x27c4af,_0x1ddbac){const _0x126fa8=a72_0xb84a,_0x597d5c=_0x27c4af();while(!![]){try{const _0x45c51f=parseInt(_0x126fa8(0x158))/0x1+parseInt(_0x126fa8(0x14b))/0x2+-parseInt(_0x126fa8(0x14c))/0x3*(-parseInt(_0x126fa8(0x156))/0x4)+-parseInt(_0x126fa8(0x14e))/0x5+parseInt(_0x126fa8(0x153))/0x6*(-parseInt(_0x126fa8(0x159))/0x7)+parseInt(_0x126fa8(0x152))/0x8*(-parseInt(_0x126fa8(0x14d))/0x9)+-parseInt(_0x126fa8(0x154))/0xa;if(_0x45c51f===_0x1ddbac)break;else _0x597d5c['push'](_0x597d5c['shift']());}catch(_0x5ef4b7){_0x597d5c['push'](_0x597d5c['shift']());}}}(a72_0x6996,0x545f3));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=['production',a72_0x4598d3(0x150),a72_0x4598d3(0x14a)];export function normalizeEnv(_0x453a1d){const _0x54130b=a72_0x4598d3;return _0x453a1d===_0x54130b(0x157)?_0x54130b(0x155):_0x453a1d;}export function isProduction(_0x49ea34){const _0x2ae07d=a72_0x4598d3;return normalizeEnv(_0x49ea34)===_0x2ae07d(0x155);}export function isDaily(_0x56d38a){const _0x1a35d4=a72_0x4598d3;return normalizeEnv(_0x56d38a)===_0x1a35d4(0x14a);}export function isDev(_0x3dcfe4){const _0x46890b=a72_0x4598d3,_0x29b051=normalizeEnv(_0x3dcfe4);return _0x29b051==='development'||_0x29b051===_0x46890b(0x14f);}let env=normalizeEnv(productEnv(a72_0x4598d3(0x151))||a72_0x4598d3(0x155));export function getEnv(){return env;}export function initEnv(_0x592155){env=normalizeEnv(_0x592155);}
1
+ function a72_0x39a8(_0x141ddd,_0xa7c27c){_0x141ddd=_0x141ddd-0x123;const _0x6b6b91=a72_0x6b6b();let _0x39a8e6=_0x6b6b91[_0x141ddd];return _0x39a8e6;}const a72_0x330d94=a72_0x39a8;(function(_0x2bbb63,_0x422e03){const _0x455ae2=a72_0x39a8,_0x29bf00=_0x2bbb63();while(!![]){try{const _0x5b5bfd=parseInt(_0x455ae2(0x129))/0x1+-parseInt(_0x455ae2(0x125))/0x2*(-parseInt(_0x455ae2(0x12f))/0x3)+parseInt(_0x455ae2(0x123))/0x4+parseInt(_0x455ae2(0x12e))/0x5+-parseInt(_0x455ae2(0x128))/0x6+parseInt(_0x455ae2(0x12b))/0x7*(parseInt(_0x455ae2(0x12d))/0x8)+-parseInt(_0x455ae2(0x124))/0x9;if(_0x5b5bfd===_0x422e03)break;else _0x29bf00['push'](_0x29bf00['shift']());}catch(_0x3af1f4){_0x29bf00['push'](_0x29bf00['shift']());}}}(a72_0x6b6b,0x366ad));import{productEnv}from'../constant/product.js';function a72_0x6b6b(){const _0xadca4b=['development','1671901nUzZEQ','dev','8EuXfPf','1427125QHsMTH','9QRrfwg','production','750632FoGHgM','4226922wFezeU','122336gYWzzL','online','daily','2647200SZurJq','238321xVGYRB'];a72_0x6b6b=function(){return _0xadca4b;};return a72_0x6b6b();}export const RUNTIME_ENV_VALUES=[a72_0x330d94(0x130),a72_0x330d94(0x12a),a72_0x330d94(0x127)];export function normalizeEnv(_0x4da789){const _0x30ea32=a72_0x330d94;return _0x4da789===_0x30ea32(0x126)?'production':_0x4da789;}export function isProduction(_0x58e709){const _0x42edde=a72_0x330d94;return normalizeEnv(_0x58e709)===_0x42edde(0x130);}export function isDaily(_0x1225da){return normalizeEnv(_0x1225da)==='daily';}export function isDev(_0xbd2b57){const _0x509ce0=a72_0x330d94,_0x1c0981=normalizeEnv(_0xbd2b57);return _0x1c0981==='development'||_0x1c0981===_0x509ce0(0x12c);}let env=normalizeEnv(productEnv('ENV')||'production');export function getEnv(){return env;}export function initEnv(_0x40caca){env=normalizeEnv(_0x40caca);}
@@ -1 +1 @@
1
- function a73_0xd757(){const _0x2b098e=['4097331yeclxL','2158793teoCHK','2463hWuhhb','86Blhrnw','67900NiMBlG','325bBHASz','compress','json','pretty','1423230fukABN','7876LiThwL','5302640DBzDHf'];a73_0xd757=function(){return _0x2b098e;};return a73_0xd757();}function a73_0x3679(_0x528717,_0x3c356c){_0x528717=_0x528717-0x76;const _0xd757b5=a73_0xd757();let _0x36792f=_0xd757b5[_0x528717];return _0x36792f;}const a73_0xa15e7=a73_0x3679;(function(_0x3b9dc7,_0x52c79a){const _0x291255=a73_0x3679,_0x4905e8=_0x3b9dc7();while(!![]){try{const _0x2f864b=parseInt(_0x291255(0x7c))/0x1+parseInt(_0x291255(0x7b))/0x2*(parseInt(_0x291255(0x7a))/0x3)+parseInt(_0x291255(0x76))/0x4*(parseInt(_0x291255(0x7d))/0x5)+parseInt(_0x291255(0x81))/0x6+-parseInt(_0x291255(0x79))/0x7+parseInt(_0x291255(0x77))/0x8+-parseInt(_0x291255(0x78))/0x9;if(_0x2f864b===_0x52c79a)break;else _0x4905e8['push'](_0x4905e8['shift']());}catch(_0x1700e8){_0x4905e8['push'](_0x4905e8['shift']());}}}(a73_0xd757,0x59bcd));export const OUTPUT_FORMAT_VALUES=[a73_0xa15e7(0x7f),a73_0xa15e7(0x80),a73_0xa15e7(0x7e)];
1
+ const a73_0x3d5c6e=a73_0x41eb;function a73_0x41eb(_0xc261e3,_0x1f51cc){_0xc261e3=_0xc261e3-0x107;const _0x4f79d9=a73_0x4f79();let _0x41eb98=_0x4f79d9[_0xc261e3];return _0x41eb98;}(function(_0x5eb435,_0x59f0e5){const _0x3533ae=a73_0x41eb,_0x3ed5cf=_0x5eb435();while(!![]){try{const _0x52f8ca=-parseInt(_0x3533ae(0x113))/0x1+-parseInt(_0x3533ae(0x109))/0x2*(parseInt(_0x3533ae(0x110))/0x3)+parseInt(_0x3533ae(0x108))/0x4+parseInt(_0x3533ae(0x107))/0x5*(-parseInt(_0x3533ae(0x114))/0x6)+-parseInt(_0x3533ae(0x10d))/0x7+parseInt(_0x3533ae(0x10c))/0x8*(parseInt(_0x3533ae(0x10e))/0x9)+parseInt(_0x3533ae(0x10b))/0xa*(parseInt(_0x3533ae(0x10a))/0xb);if(_0x52f8ca===_0x59f0e5)break;else _0x3ed5cf['push'](_0x3ed5cf['shift']());}catch(_0x2a3d9c){_0x3ed5cf['push'](_0x3ed5cf['shift']());}}}(a73_0x4f79,0xc99ab));export const OUTPUT_FORMAT_VALUES=[a73_0x3d5c6e(0x10f),a73_0x3d5c6e(0x111),a73_0x3d5c6e(0x112)];function a73_0x4f79(){const _0x3c3728=['compress','175846tLQjKb','80526rlZdkC','215UjfxcO','4864360mfSbqJ','1917424pXXCPd','55nWKgIp','777710ryNLyx','277840uNoTNX','4655651pimCpI','414crBIej','json','3YgBIcx','pretty'];a73_0x4f79=function(){return _0x3c3728;};return a73_0x4f79();}
@@ -1 +1 @@
1
- const a74_0xda042a=a74_0x3cb8;(function(_0x3f2d63,_0x1bf077){const _0x5cf7dc=a74_0x3cb8,_0x4eb080=_0x3f2d63();while(!![]){try{const _0x57f2f8=parseInt(_0x5cf7dc(0x1c9))/0x1*(-parseInt(_0x5cf7dc(0x1e6))/0x2)+-parseInt(_0x5cf7dc(0x1d2))/0x3*(-parseInt(_0x5cf7dc(0x1ce))/0x4)+parseInt(_0x5cf7dc(0x1e1))/0x5*(parseInt(_0x5cf7dc(0x1cc))/0x6)+-parseInt(_0x5cf7dc(0x1d1))/0x7*(-parseInt(_0x5cf7dc(0x1d8))/0x8)+parseInt(_0x5cf7dc(0x1c8))/0x9*(-parseInt(_0x5cf7dc(0x1e7))/0xa)+parseInt(_0x5cf7dc(0x1e3))/0xb*(-parseInt(_0x5cf7dc(0x1df))/0xc)+parseInt(_0x5cf7dc(0x1d5))/0xd;if(_0x57f2f8===_0x1bf077)break;else _0x4eb080['push'](_0x4eb080['shift']());}catch(_0x5b164d){_0x4eb080['push'](_0x4eb080['shift']());}}}(a74_0x3c1e,0x8992b));export const PRODUCT_CONFIG={'cliBinName':a74_0xda042a(0x1cb),'cliDisplayName':a74_0xda042a(0x1e2),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':'lovrabet/lovrabet-cli','npmRegistryBaseUrl':a74_0xda042a(0x1e0),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a74_0xda042a(0x1db)],'configFileNames':[a74_0xda042a(0x1ca),a74_0xda042a(0x1d9)],'newConfigFileName':'.lovrabet.json','homeDirName':a74_0xda042a(0x1e5),'logFileName':a74_0xda042a(0x1cd),'invokeSource':a74_0xda042a(0x1dd),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a74_0xda042a(0x1d4),'domains':{'production':{'user':a74_0xda042a(0x1d7),'api':a74_0xda042a(0x1da),'runtime':a74_0xda042a(0x1d0),'skillhub':'https://skills.lovrabet.com'},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':a74_0xda042a(0x1dc),'runtime':a74_0xda042a(0x1de),'skillhub':a74_0xda042a(0x1cf)}},'accessKeyCreatePath':'/user/ak'};export function productEnvName(_0x1e3873){const _0x17f92e=a74_0xda042a;return PRODUCT_CONFIG[_0x17f92e(0x1d6)]+'_'+_0x1e3873;}function a74_0x3cb8(_0x3ce71a,_0xf683ac){_0x3ce71a=_0x3ce71a-0x1c8;const _0x3c1e7c=a74_0x3c1e();let _0x3cb884=_0x3c1e7c[_0x3ce71a];return _0x3cb884;}function a74_0x3c1e(){const _0x303eb7=['.lovrabet','231566hSizfN','121180EvrvXn','234jXScMH','1VeCExb','.lovrabet.json','lovrabet','208086WXvkPk','.lovrabet-runtime.log','120rxffYs','https://skills-daily.lovrabet.com','https://runtime.lovrabet.com','345835vVqPGW','5238VUioZL','legacyEnvPrefixes','SKIP_NPX_SKILLS','307034pJDWBK','envPrefix','https://user.lovrabet.com','112qqWBgF','.lovrabetrc','https://api.lovrabet.com','RABETBASE','https://daily-api.lovrabet.com','cli:lovrabet-runtime','https://daily-runtime.lovrabet.com','60WAaGdQ','https://registry.npmjs.org','85LTJtKQ','Lovrabet\x20Runtime\x20CLI','798369yycDsU','map'];a74_0x3c1e=function(){return _0x303eb7;};return a74_0x3c1e();}export function productEnvNames(_0x482651){const _0x490534=a74_0xda042a;return[productEnvName(_0x482651),...PRODUCT_CONFIG[_0x490534(0x1d3)][_0x490534(0x1e4)](_0x2dea93=>_0x2dea93+'_'+_0x482651)];}export function productEnv(_0xe1b682){for(const _0x3845c4 of productEnvNames(_0xe1b682)){const _0x453d72=process.env[_0x3845c4];if(_0x453d72!==undefined)return _0x453d72;}return undefined;}
1
+ const a74_0x3ce5dd=a74_0x2072;(function(_0x12a584,_0xc7a5cc){const _0x4e7860=a74_0x2072,_0x214566=_0x12a584();while(!![]){try{const _0x5d151c=-parseInt(_0x4e7860(0x14f))/0x1+parseInt(_0x4e7860(0x152))/0x2*(-parseInt(_0x4e7860(0x141))/0x3)+parseInt(_0x4e7860(0x147))/0x4+-parseInt(_0x4e7860(0x150))/0x5*(parseInt(_0x4e7860(0x14c))/0x6)+-parseInt(_0x4e7860(0x144))/0x7+parseInt(_0x4e7860(0x148))/0x8*(-parseInt(_0x4e7860(0x13c))/0x9)+-parseInt(_0x4e7860(0x149))/0xa*(-parseInt(_0x4e7860(0x142))/0xb);if(_0x5d151c===_0xc7a5cc)break;else _0x214566['push'](_0x214566['shift']());}catch(_0x5acadc){_0x214566['push'](_0x214566['shift']());}}}(a74_0x48b4,0xf2677));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':a74_0x3ce5dd(0x13d),'skillSource':'lovrabet/lovrabet-cli','npmRegistryBaseUrl':a74_0x3ce5dd(0x14d),'envPrefix':a74_0x3ce5dd(0x13f),'legacyEnvPrefixes':[a74_0x3ce5dd(0x13e)],'configFileNames':[a74_0x3ce5dd(0x146),a74_0x3ce5dd(0x14e)],'newConfigFileName':a74_0x3ce5dd(0x146),'homeDirName':'.lovrabet','logFileName':a74_0x3ce5dd(0x14a),'invokeSource':a74_0x3ce5dd(0x13b),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a74_0x3ce5dd(0x145),'domains':{'production':{'user':a74_0x3ce5dd(0x140),'api':a74_0x3ce5dd(0x153),'runtime':a74_0x3ce5dd(0x156),'skillhub':a74_0x3ce5dd(0x143)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':a74_0x3ce5dd(0x151),'runtime':a74_0x3ce5dd(0x14b),'skillhub':a74_0x3ce5dd(0x154)}},'accessKeyCreatePath':'/user/ak'};export function productEnvName(_0x48f5ef){const _0x37f44e=a74_0x3ce5dd;return PRODUCT_CONFIG[_0x37f44e(0x155)]+'_'+_0x48f5ef;}export function productEnvNames(_0x479f7d){const _0x40cca6=a74_0x3ce5dd;return[productEnvName(_0x479f7d),...PRODUCT_CONFIG[_0x40cca6(0x157)][_0x40cca6(0x13a)](_0x4f5bf1=>_0x4f5bf1+'_'+_0x479f7d)];}export function productEnv(_0x2199d3){for(const _0x534c38 of productEnvNames(_0x2199d3)){const _0x15ab9f=process.env[_0x534c38];if(_0x15ab9f!==undefined)return _0x15ab9f;}return undefined;}function a74_0x2072(_0x44fcc4,_0x5ca259){_0x44fcc4=_0x44fcc4-0x13a;const _0x48b456=a74_0x48b4();let _0x207208=_0x48b456[_0x44fcc4];return _0x207208;}function a74_0x48b4(){const _0x50ede4=['SKIP_NPX_SKILLS','.lovrabet.json','4384136ucIoAv','8opqzdS','7630SeLOYe','.lovrabet-runtime.log','https://daily-runtime.lovrabet.com','4915686UKZqHQ','https://registry.npmjs.org','.lovrabetrc','1273421smurYA','10DTUlVu','https://daily-api.lovrabet.com','400HiPqVo','https://api.lovrabet.com','https://skills-daily.lovrabet.com','envPrefix','https://runtime.lovrabet.com','legacyEnvPrefixes','map','cli:lovrabet-runtime','11856690UTkxpx','@lovrabet/lovrabet-cli','RABETBASE','LOVRABET','https://user.lovrabet.com','25386AiBeWb','102773Mkpzvv','https://skills.lovrabet.com','9170441SQNEda'];a74_0x48b4=function(){return _0x50ede4;};return a74_0x48b4();}
@@ -1 +1 @@
1
- function a75_0x4f07(_0x558435,_0x29b19f){_0x558435=_0x558435-0xbb;const _0x953b0b=a75_0x953b();let _0x4f0751=_0x953b0b[_0x558435];return _0x4f0751;}const a75_0x180010=a75_0x4f07;(function(_0x32f1e8,_0xc48ff3){const _0x50105a=a75_0x4f07,_0x16346f=_0x32f1e8();while(!![]){try{const _0x5f58a2=parseInt(_0x50105a(0xc4))/0x1*(parseInt(_0x50105a(0xc1))/0x2)+parseInt(_0x50105a(0xc3))/0x3+-parseInt(_0x50105a(0xc0))/0x4+-parseInt(_0x50105a(0xbe))/0x5+-parseInt(_0x50105a(0xc2))/0x6+parseInt(_0x50105a(0xbd))/0x7+parseInt(_0x50105a(0xbb))/0x8;if(_0x5f58a2===_0xc48ff3)break;else _0x16346f['push'](_0x16346f['shift']());}catch(_0x1d3a30){_0x16346f['push'](_0x16346f['shift']());}}}(a75_0x953b,0x6c408));export const RISK_LEVEL_VALUES=['read',a75_0x180010(0xbf),a75_0x180010(0xbc)];function a75_0x953b(){const _0x545dee=['high-risk-write','793856yJkINm','51725tuCMDW','write','1875340CuOVGd','263082bUIRiH','2367498OMMvUB','2382558MzBGiW','3eKInhb','119568aRQmHj'];a75_0x953b=function(){return _0x545dee;};return a75_0x953b();}
1
+ const a75_0x1f8a22=a75_0x52d5;function a75_0x52d5(_0x48e1e4,_0x1cf55f){_0x48e1e4=_0x48e1e4-0x1c4;const _0x4c253e=a75_0x4c25();let _0x52d534=_0x4c253e[_0x48e1e4];return _0x52d534;}function a75_0x4c25(){const _0xc68799=['1386988dhTccz','5167210MHvCJi','write','9uwBwds','902262qSNWqQ','6GDUqok','high-risk-write','read','2963010YQLBNR','1515768VADYFt','3651540bKQawj','1hvhyOc','52143vnZcOk'];a75_0x4c25=function(){return _0xc68799;};return a75_0x4c25();}(function(_0x3620c8,_0xa055c){const _0x175639=a75_0x52d5,_0x37341e=_0x3620c8();while(!![]){try{const _0x4d245b=-parseInt(_0x175639(0x1d0))/0x1*(-parseInt(_0x175639(0x1c9))/0x2)+-parseInt(_0x175639(0x1ca))/0x3*(parseInt(_0x175639(0x1c5))/0x4)+parseInt(_0x175639(0x1cd))/0x5+-parseInt(_0x175639(0x1cf))/0x6+-parseInt(_0x175639(0x1c4))/0x7+parseInt(_0x175639(0x1ce))/0x8+parseInt(_0x175639(0x1c8))/0x9*(parseInt(_0x175639(0x1c6))/0xa);if(_0x4d245b===_0xa055c)break;else _0x37341e['push'](_0x37341e['shift']());}catch(_0x275534){_0x37341e['push'](_0x37341e['shift']());}}}(a75_0x4c25,0x6b848));export const RISK_LEVEL_VALUES=[a75_0x1f8a22(0x1cc),a75_0x1f8a22(0x1c7),a75_0x1f8a22(0x1cb)];
@@ -1 +1 @@
1
- function a76_0x1339(){const _0x58c144=['21026bRasdi','233067BInZGo','87246fspmBN','3925040HKWmmS','88412cLnPtw','1509403JnDnRe','domains','accessKeyCreatePath','50936SAlvoC','27fMsTIZ','35DUShHz','production','2PuCvCU'];a76_0x1339=function(){return _0x58c144;};return a76_0x1339();}const a76_0x376a4d=a76_0x20e7;(function(_0x52e4c8,_0x44a2e6){const _0x489338=a76_0x20e7,_0x5eaed2=_0x52e4c8();while(!![]){try{const _0x34a0cc=-parseInt(_0x489338(0x1df))/0x1*(-parseInt(_0x489338(0x1e0))/0x2)+parseInt(_0x489338(0x1e1))/0x3+parseInt(_0x489338(0x1e4))/0x4*(-parseInt(_0x489338(0x1ea))/0x5)+parseInt(_0x489338(0x1e2))/0x6+-parseInt(_0x489338(0x1e5))/0x7+parseInt(_0x489338(0x1e8))/0x8*(-parseInt(_0x489338(0x1e9))/0x9)+parseInt(_0x489338(0x1e3))/0xa;if(_0x34a0cc===_0x44a2e6)break;else _0x5eaed2['push'](_0x5eaed2['shift']());}catch(_0x3632e5){_0x5eaed2['push'](_0x5eaed2['shift']());}}}(a76_0x1339,0x1c655));import{PRODUCT_CONFIG}from'../constant/product.js';function a76_0x20e7(_0x55e328,_0x38018e){_0x55e328=_0x55e328-0x1de;const _0x13393f=a76_0x1339();let _0x20e77b=_0x13393f[_0x55e328];return _0x20e77b;}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a76_0x376a4d(0x1e6)][a76_0x376a4d(0x1de)]['user']+PRODUCT_CONFIG[a76_0x376a4d(0x1e7)];
1
+ function a76_0x2668(){const _0x3b5b45=['419587WLTPWX','2167995gkJYdE','43089eAIuYu','production','358440wlwMgk','accessKeyCreatePath','706052JJyhfF','domains','117ZedIwa','553712PaccFO','377412dYoYsC','7ESIUuI'];a76_0x2668=function(){return _0x3b5b45;};return a76_0x2668();}function a76_0x13c3(_0x3f1eed,_0x5207ad){_0x3f1eed=_0x3f1eed-0x12c;const _0x2668e1=a76_0x2668();let _0x13c3fe=_0x2668e1[_0x3f1eed];return _0x13c3fe;}const a76_0x218161=a76_0x13c3;(function(_0x43cbca,_0x59e4d3){const _0x147007=a76_0x13c3,_0x36922b=_0x43cbca();while(!![]){try{const _0x4fa038=-parseInt(_0x147007(0x135))/0x1+parseInt(_0x147007(0x12f))/0x2+-parseInt(_0x147007(0x137))/0x3+parseInt(_0x147007(0x12d))/0x4+-parseInt(_0x147007(0x136))/0x5+parseInt(_0x147007(0x133))/0x6*(-parseInt(_0x147007(0x134))/0x7)+-parseInt(_0x147007(0x132))/0x8*(-parseInt(_0x147007(0x131))/0x9);if(_0x4fa038===_0x59e4d3)break;else _0x36922b['push'](_0x36922b['shift']());}catch(_0x4daa44){_0x36922b['push'](_0x36922b['shift']());}}}(a76_0x2668,0x6493f));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a76_0x218161(0x130)][a76_0x218161(0x12c)]['user']+PRODUCT_CONFIG[a76_0x218161(0x12e)];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a77_0x17a059=a77_0x3ee0;(function(_0x5f4648,_0x261016){const _0xa1545c=a77_0x3ee0,_0x12be1a=_0x5f4648();while(!![]){try{const _0x6b3f16=-parseInt(_0xa1545c(0x12b))/0x1*(-parseInt(_0xa1545c(0x112))/0x2)+parseInt(_0xa1545c(0x134))/0x3*(-parseInt(_0xa1545c(0x12d))/0x4)+parseInt(_0xa1545c(0x101))/0x5+-parseInt(_0xa1545c(0x108))/0x6+parseInt(_0xa1545c(0x12c))/0x7*(-parseInt(_0xa1545c(0x11a))/0x8)+-parseInt(_0xa1545c(0x106))/0x9*(parseInt(_0xa1545c(0x10c))/0xa)+parseInt(_0xa1545c(0x133))/0xb;if(_0x6b3f16===_0x261016)break;else _0x12be1a['push'](_0x12be1a['shift']());}catch(_0x4df057){_0x12be1a['push'](_0x12be1a['shift']());}}}(a77_0x56e4,0x7a7b7));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[a77_0x17a059(0x10f)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a77_0x17a059(0x13f)];function resolveConfigPath(_0x25906a){for(const _0x1f85d3 of CONFIG_NAMES){const _0x4d7b93=resolve(_0x25906a,_0x1f85d3);if(existsSync(_0x4d7b93))return _0x4d7b93;}return undefined;}export function resolveWriteConfigPath(_0x55a7b6){const _0x5c211f=_0x55a7b6==='project'?process['cwd']():homedir(),_0x457314=resolveConfigPath(_0x5c211f);return _0x457314??resolve(_0x5c211f,NEW_CONFIG_NAME);}export function readConfigFile(_0x4d487e){const _0x35db78=a77_0x17a059;try{if(existsSync(_0x4d487e)){const _0x296877=readFileSync(_0x4d487e,{'encoding':_0x35db78(0x110)});if(_0x296877){const _0x3e0632=JSON[_0x35db78(0x125)](_0x296877);return migrateOnlineEnv(_0x4d487e,_0x3e0632),_0x3e0632;}}}catch{}return{};}function migrateOnlineEnv(_0xbef1c1,_0x12d4b6){const _0x5169ac=a77_0x17a059;let _0x56f700=![];_0x12d4b6[_0x5169ac(0x11b)]===_0x5169ac(0x131)&&(_0x12d4b6[_0x5169ac(0x11b)]=_0x5169ac(0x114),_0x56f700=!![]);if(_0x12d4b6[_0x5169ac(0x140)]&&typeof _0x12d4b6[_0x5169ac(0x140)]===_0x5169ac(0x12a))for(const _0x226b14 of Object['values'](_0x12d4b6['apps'])){_0x226b14&&_0x226b14[_0x5169ac(0x11b)]==='online'&&(_0x226b14[_0x5169ac(0x11b)]=_0x5169ac(0x114),_0x56f700=!![]);}if(_0x56f700)try{writeConfigFile(_0xbef1c1,_0x12d4b6);}catch{}}export function writeConfigFile(_0x3f45b7,_0xf224c6){const _0x5ebc94=a77_0x17a059,_0x32f2ff=dirname(_0x3f45b7);!existsSync(_0x32f2ff)&&mkdirSync(_0x32f2ff,{'recursive':!![]});const _0x50ccc4=_0x3f45b7+_0x5ebc94(0x103);try{writeFileSync(_0x50ccc4,JSON['stringify'](_0xf224c6,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x50ccc4,_0x3f45b7);}catch(_0xf6c09d){if(_0xf6c09d[_0x5ebc94(0x115)]===_0x5ebc94(0x127)||_0xf6c09d[_0x5ebc94(0x115)]===_0x5ebc94(0x145)||_0xf6c09d[_0x5ebc94(0x115)]===_0x5ebc94(0x13d)){writeFileSync(_0x3f45b7,JSON[_0x5ebc94(0x135)](_0xf224c6,null,0x2)+'\x0a',{'encoding':_0x5ebc94(0x110)});try{unlinkSync(_0x50ccc4);}catch{}}else throw _0xf6c09d;}}catch(_0x540112){try{unlinkSync(_0x50ccc4);}catch{}throw _0x540112;}}export function isNonInteractiveMode(_0x2ca701){const _0xedbc7c=a77_0x17a059;return!!(_0x2ca701[_0xedbc7c(0x137)]||_0x2ca701['ci']||productEnvNames('CI')['some'](_0x189cb5=>process.env[_0x189cb5]===_0xedbc7c(0x142))||process.env.CI===_0xedbc7c(0x142)||!process[_0xedbc7c(0x130)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x250859=a77_0x17a059;if(!process['stdin']['isTTY'])return![];try{const _0x414313=process[_0x250859(0x120)]['isRaw'];return process[_0x250859(0x120)]['setRawMode'](!![]),process[_0x250859(0x120)]['setRawMode'](_0x414313??![]),!![];}catch{return![];}}export async function createContext(_0x332c6a){const _0xa24184=a77_0x17a059,_0x15ab5a=readRawConfig(),_0x28cb79=buildConfig(_0x15ab5a,_0x332c6a);await initGlobalEnvironment(_0x28cb79);const {getUserDomain:_0x263e3b,getApiDomain:_0x11cae9}=await import(_0xa24184(0x119)),_0x1d2103={'apiDomain':_0x11cae9(),'userDomain':_0x263e3b()},_0x238b7c=await buildAuth(_0x28cb79);logger[_0xa24184(0x141)](process[_0xa24184(0x146)]());const _0x2a3429=(CLI_BIN_NAME+'\x20'+process['argv'][_0xa24184(0x129)](0x2)['join']('\x20'))[_0xa24184(0x11e)]();logger[_0xa24184(0x11f)](_0x2a3429);const _0x2f0d60=isNonInteractiveMode(_0x332c6a);return{'config':_0x28cb79,'auth':_0x238b7c,'logger':logger,'env':_0x1d2103,'nonInteractive':_0x2f0d60};}export function buildConfigFromFlags(_0x4748e4){return buildConfig(readRawConfig(),_0x4748e4);}export function getLocalAppAliases(_0xda9820){const _0x3715ca=a77_0x17a059;return _0xda9820[_0x3715ca(0x140)]&&typeof _0xda9820[_0x3715ca(0x140)]===_0x3715ca(0x12a)?_0xda9820[_0x3715ca(0x140)]:{};}export function resolveLocalAppAliasCode(_0x5174f0,_0x25fbe8){const _0x1c938e=a77_0x17a059;if(!_0x25fbe8)return undefined;const _0x2a6d0c=getLocalAppAliases(_0x5174f0)[_0x25fbe8],_0x904d9e=_0x2a6d0c?.[_0x1c938e(0x104)];return typeof _0x904d9e===_0x1c938e(0x10a)&&_0x904d9e[_0x1c938e(0x11e)]()?_0x904d9e[_0x1c938e(0x11e)]():undefined;}function a77_0x3ee0(_0x14fdde,_0x174039){_0x14fdde=_0x14fdde-0xff;const _0x56e4a9=a77_0x56e4();let _0x3ee01e=_0x56e4a9[_0x14fdde];return _0x3ee01e;}export function readAppCodeFromConfig(){const _0x1ae51b=a77_0x17a059,_0x3632e7=readRawConfig(),_0x1b6f3b=_0x3632e7[_0x1ae51b(0x104)]??_0x3632e7[_0x1ae51b(0x123)];if(typeof _0x1b6f3b==='string'&&_0x1b6f3b[_0x1ae51b(0x11e)]())return _0x1b6f3b[_0x1ae51b(0x11e)]();const _0x4e59a3=resolveLocalAppAliasCode(_0x3632e7,typeof _0x3632e7[_0x1ae51b(0x12f)]===_0x1ae51b(0x10a)?_0x3632e7[_0x1ae51b(0x12f)]:undefined);if(_0x4e59a3)return _0x4e59a3;const _0x3d6ef8=normalizeEnv(String(_0x3632e7[_0x1ae51b(0x11b)]||_0x1ae51b(0x114))),_0x7f5aa9=isDaily(_0x3d6ef8)?'daily':isDev(_0x3d6ef8)?_0x1ae51b(0x116):_0x1ae51b(0x114),_0x369103=resolveCachedAppCode(typeof _0x3632e7[_0x1ae51b(0x12f)]===_0x1ae51b(0x10a)?_0x3632e7[_0x1ae51b(0x12f)]:undefined,_0x7f5aa9,typeof _0x3632e7[_0x1ae51b(0x11c)]===_0x1ae51b(0x10a)?_0x3632e7['accessKey']:undefined);if(_0x369103)return _0x369103;const _0x153650=Object[_0x1ae51b(0x126)](getLocalAppAliases(_0x3632e7))['find'](_0x3c89fe=>_0x3c89fe?.['appcode']);return typeof _0x153650?.[_0x1ae51b(0x104)]===_0x1ae51b(0x10a)&&_0x153650[_0x1ae51b(0x104)][_0x1ae51b(0x11e)]()?_0x153650[_0x1ae51b(0x104)][_0x1ae51b(0x11e)]():undefined;}export function readScopedConfig(_0x3825c0){const _0x263898=a77_0x17a059,_0x16aa5e=_0x3825c0[_0x263898(0x136)]?_0x263898(0x136):_0x263898(0x13a);return readConfigFile(resolveWriteConfigPath(_0x16aa5e));}export function writeScopedConfig(_0x116289,_0x4a7a9e){const _0x44ada6=a77_0x17a059,_0x47ecc1=_0x4a7a9e[_0x44ada6(0x136)]?_0x44ada6(0x136):'project';writeConfigFile(resolveWriteConfigPath(_0x47ecc1),_0x116289);}export async function initGlobalEnvironment(_0x58f856){const _0x489e48=a77_0x17a059,{initEnv:_0x427028}=await import('./constant/env.js');_0x427028(_0x58f856[_0x489e48(0x11b)]);const {initDomains:_0x8377dd}=await import(_0x489e48(0x119));_0x8377dd({'apiDomain':_0x58f856[_0x489e48(0x107)][_0x489e48(0x13b)]||_0x58f856[_0x489e48(0x107)][_0x489e48(0x13e)]||undefined,'userDomain':_0x58f856[_0x489e48(0x107)]['userDomain']||undefined,'runtimeDomain':_0x58f856[_0x489e48(0x107)][_0x489e48(0x10b)]||undefined,'skillHubDomain':_0x58f856['raw'][_0x489e48(0x117)]||undefined});}export function getProjectConfigPath(){const _0x580be4=a77_0x17a059;return resolveConfigPath(process[_0x580be4(0x146)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}function a77_0x56e4(){const _0x37d150=['1939040kXxxDe','riskLevel','local-alias','configFileNames','utf8','message','6jOaXIm','daily','production','code','development','skillHubDomain','high-risk-write','./constant/domain.js','80YGHrEq','env','accessKey','APP','trim','setRawCommand','stdin','error','missing','app','format','parse','values','EPERM','pageSize','slice','object','15291SQJUkM','609728rcbgud','88OLnwxu','ACCESS_KEY','defaultApp','stdout','online','ENV','25613313lcDuSl','21237JkRwEc','stringify','global','nonInteractive','cache','projectConfig','project','apiDomain','VERBOSE','EACCES','host','newConfigFileName','apps','setLogPath','true','write','APPCODE','EXDEV','cwd','locale','explicit','inherit','1304205UcbEAr','PAGE_SIZE','.tmp','appcode','empty','18dcPpGo','raw','4313544svJwUl','globalConfig','string','runtimeDomain'];a77_0x56e4=function(){return _0x37d150;};return a77_0x56e4();}export function inspectCliConfigJsonFile(_0x190414){const _0x4985de=a77_0x17a059;if(!existsSync(_0x190414))return{'status':_0x4985de(0x122)};try{const _0x533f72=readFileSync(_0x190414,{'encoding':'utf8'});if(!_0x533f72?.[_0x4985de(0x11e)]())return{'status':_0x4985de(0x105)};const _0x41c950=JSON[_0x4985de(0x125)](_0x533f72);return{'status':'ok','data':_0x41c950};}catch(_0x4e89ef){return{'status':_0x4985de(0x121),'message':_0x4e89ef instanceof Error?_0x4e89ef[_0x4985de(0x111)]:String(_0x4e89ef)};}}export function loadRawConfigLayers(_0x78dcb0){const _0x2f447a=a77_0x17a059;let _0x493403={},_0x528c36={},_0xc44ffc,_0xb7b1f8;try{_0xc44ffc=resolveConfigPath(homedir());if(_0xc44ffc){const _0x4a5450=readFileSync(_0xc44ffc,{'encoding':_0x2f447a(0x110)});if(_0x4a5450)_0x493403=JSON[_0x2f447a(0x125)](_0x4a5450);}}catch{}try{const _0x573123=_0x78dcb0||process[_0x2f447a(0x146)]();_0xb7b1f8=resolveConfigPath(_0x573123);if(_0xb7b1f8){const _0x312194=readFileSync(_0xb7b1f8,{'encoding':_0x2f447a(0x110)});if(_0x312194)_0x528c36=JSON['parse'](_0x312194);}}catch{}return{'globalPath':_0xc44ffc,'projectPath':_0xb7b1f8,'globalConfig':_0x493403,'projectConfig':_0x528c36};}function mergeRawConfigLayers(_0x35a3ea){const _0x339f91=a77_0x17a059,{globalConfig:_0x209dc6,projectConfig:_0x738fc}=_0x35a3ea;if(_0x738fc[_0x339f91(0x100)]===![]){const _0x283b24={..._0x738fc};return delete _0x283b24[_0x339f91(0x100)],_0x283b24;}const _0x42e7bf={..._0x209dc6,..._0x738fc};if(_0x339f91(0x12f)in _0x738fc)_0x42e7bf[_0x339f91(0x12f)]=_0x738fc[_0x339f91(0x12f)];else _0x209dc6[_0x339f91(0x12f)]&&(_0x42e7bf['defaultApp']=_0x209dc6[_0x339f91(0x12f)]);return _0x42e7bf;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x8ab751){return mergeRawConfigLayers(loadRawConfigLayers(_0x8ab751));}export function readRawConfigWithLayers(_0x4ad396){const _0xfdbd44=loadRawConfigLayers(_0x4ad396);return{'config':mergeRawConfigLayers(_0xfdbd44),'layers':_0xfdbd44};}export function resolveDefaultAppSource(_0x56374c){const _0x2fe229=a77_0x17a059;if(_0x2fe229(0x12f)in _0x56374c[_0x2fe229(0x139)])return _0x2fe229(0x13a);if(_0x56374c[_0x2fe229(0x139)][_0x2fe229(0x100)]===![])return null;if(_0x56374c[_0x2fe229(0x109)][_0x2fe229(0x12f)])return _0x2fe229(0x136);return null;}function buildConfig(_0x223ad9,_0x5a10be){const _0x41de72=a77_0x17a059,_0x380456=_0x223ad9[_0x41de72(0x12f)]||undefined,_0x54294f=_0x5a10be['app']||env(_0x41de72(0x11d))||undefined,_0x200000=_0x54294f||_0x380456||undefined,_0x5ed8d4=env(_0x41de72(0x12e))||_0x223ad9['accessKey']||undefined,_0x58bdaa=_0x5a10be[_0x41de72(0x11b)]||env(_0x41de72(0x132))||_0x223ad9['env']||DEFAULT_CONFIG_VALUES[_0x41de72(0x11b)],_0x162bc4=normalizeEnv(String(_0x58bdaa)),_0x33f39d=isDaily(_0x162bc4)?_0x41de72(0x113):isDev(_0x162bc4)?'development':_0x41de72(0x114),_0x17f6ef=typeof _0x5a10be[_0x41de72(0x104)]===_0x41de72(0x10a)?_0x5a10be[_0x41de72(0x104)]:undefined,_0x39ce8a=env(_0x41de72(0x144)),_0x1666c9=_0x54294f?undefined:_0x223ad9[_0x41de72(0x104)]||_0x223ad9['app']||undefined,_0x304639=_0x54294f||(_0x1666c9?undefined:_0x380456),_0x417a06=resolveLocalAppAliasCode(_0x223ad9,_0x304639),_0x49e6fb=resolveCachedAppCode(_0x304639,_0x33f39d,_0x5ed8d4),_0x1b500=_0x17f6ef||_0x39ce8a||_0x1666c9||_0x417a06||_0x49e6fb||undefined,_0x563cfc=_0x17f6ef?_0x41de72(0xff):_0x39ce8a?_0x41de72(0x11b):_0x1666c9?'top-level':_0x417a06?_0x41de72(0x10e):_0x49e6fb?_0x41de72(0x138):undefined,_0x12aef6=_0x223ad9[_0x41de72(0x147)]||DEFAULT_CONFIG_VALUES[_0x41de72(0x147)],_0x34dde8=undefined,_0x2bc044=_0x5a10be['format']||env('FORMAT')||_0x223ad9[_0x41de72(0x124)],_0x11c75b=normalizeLegacyOutputFormat(_0x2bc044),_0x23f074=env(_0x41de72(0x102))||_0x223ad9[_0x41de72(0x128)],_0x4a6062=_0x23f074?Number(_0x23f074)||undefined:undefined,_0xbdcacb=_0x223ad9[_0x41de72(0x10d)]||_0x223ad9['maxRisk'],_0x328ade=_0xbdcacb==='read'||_0xbdcacb===_0x41de72(0x143)||_0xbdcacb===_0x41de72(0x118)?_0xbdcacb:DEFAULT_CONFIG_VALUES[_0x41de72(0x10d)],_0xa3a3c1=env(_0x41de72(0x13c)),_0x52b015=_0xa3a3c1==='1'||_0xa3a3c1===_0x41de72(0x142);return{'appCode':typeof _0x1b500==='string'&&_0x1b500[_0x41de72(0x11e)]()?_0x1b500[_0x41de72(0x11e)]():undefined,'appCodeSource':_0x563cfc,'env':_0x33f39d,'locale':_0x12aef6,'cookie':_0x34dde8,'accessKey':_0x5ed8d4,'format':_0x11c75b,'pageSize':_0x4a6062,'riskLevel':_0x328ade,'verbose':_0x52b015,'defaultApp':_0x380456,'currentApp':typeof _0x200000===_0x41de72(0x10a)?_0x200000:undefined,'raw':_0x223ad9};}function env(_0x49e5f7){return productEnv(_0x49e5f7);}async function buildAuth(_0x51d47e){const _0x41c699=a77_0x17a059,_0x300233='',_0x4319fb=!!_0x51d47e[_0x41c699(0x11c)];return{'cookie':_0x300233,'isLoggedIn':_0x4319fb,async 'getOrLogin'(){if(_0x4319fb)return _0x300233;throw CliErrors['authRequired']();}};}
1
+ const a77_0x4e0dc1=a77_0x837d;(function(_0x11ce30,_0x1adb8e){const _0x5502c1=a77_0x837d,_0xb9c443=_0x11ce30();while(!![]){try{const _0x2ccfe7=-parseInt(_0x5502c1(0xd6))/0x1*(-parseInt(_0x5502c1(0xd0))/0x2)+-parseInt(_0x5502c1(0x10d))/0x3*(-parseInt(_0x5502c1(0xe3))/0x4)+parseInt(_0x5502c1(0xf9))/0x5+parseInt(_0x5502c1(0x106))/0x6+parseInt(_0x5502c1(0xfd))/0x7+-parseInt(_0x5502c1(0xfb))/0x8*(-parseInt(_0x5502c1(0xcb))/0x9)+-parseInt(_0x5502c1(0xc8))/0xa;if(_0x2ccfe7===_0x1adb8e)break;else _0xb9c443['push'](_0xb9c443['shift']());}catch(_0x2c08b8){_0xb9c443['push'](_0xb9c443['shift']());}}}(a77_0x2ed6,0x762d4));function a77_0x837d(_0x53ac7b,_0x5c4a08){_0x53ac7b=_0x53ac7b-0xc1;const _0x2ed6de=a77_0x2ed6();let _0x837dfc=_0x2ed6de[_0x53ac7b];return _0x837dfc;}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';function a77_0x2ed6(){const _0x4cce6d=['true','EXDEV','45bFXQOf','missing','format','high-risk-write','projectConfig','8AytgzO','stdin','stdout','APPCODE','defaultApp','setRawCommand','57586sgELAI','setRawMode','./constant/env.js','riskLevel','globalConfig','locale','online','find','global','nonInteractive','production','EACCES','write','744uNeRkR','argv','development','error','EPERM','FORMAT','pageSize','project','raw','object','read','PAGE_SIZE','slice','apiDomain','authRequired','local-alias','empty','.tmp','ENV','skillHubDomain','VERBOSE','top-level','1801730CPTVAX','env','873128OnkQcY','trim','1792161iXaJVP','apps','cwd','inherit','join','userDomain','app','utf8','maxRisk','446610cyKWjX','appcode','stringify','code','./constant/domain.js','parse','configFileNames','14958juxROH','newConfigFileName','values','isTTY','accessKey','daily','string','explicit','19101970lHzHWf'];a77_0x2ed6=function(){return _0x4cce6d;};return a77_0x2ed6();}import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a77_0x4e0dc1(0x10c)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a77_0x4e0dc1(0xc1)];function resolveConfigPath(_0x315a96){for(const _0xaae0ab of CONFIG_NAMES){const _0x3fd65b=resolve(_0x315a96,_0xaae0ab);if(existsSync(_0x3fd65b))return _0x3fd65b;}return undefined;}export function resolveWriteConfigPath(_0x2aeefc){const _0x1c73ab=a77_0x4e0dc1,_0x3414ca=_0x2aeefc==='project'?process[_0x1c73ab(0xff)]():homedir(),_0x43d91a=resolveConfigPath(_0x3414ca);return _0x43d91a??resolve(_0x3414ca,NEW_CONFIG_NAME);}export function readConfigFile(_0x33e808){const _0x11cb8d=a77_0x4e0dc1;try{if(existsSync(_0x33e808)){const _0x4ad47e=readFileSync(_0x33e808,{'encoding':_0x11cb8d(0x104)});if(_0x4ad47e){const _0x32608d=JSON['parse'](_0x4ad47e);return migrateOnlineEnv(_0x33e808,_0x32608d),_0x32608d;}}}catch{}return{};}function migrateOnlineEnv(_0x54ce5c,_0xa7ff68){const _0x5e5d45=a77_0x4e0dc1;let _0x207d16=![];_0xa7ff68[_0x5e5d45(0xfa)]===_0x5e5d45(0xdc)&&(_0xa7ff68[_0x5e5d45(0xfa)]=_0x5e5d45(0xe0),_0x207d16=!![]);if(_0xa7ff68[_0x5e5d45(0xfe)]&&typeof _0xa7ff68[_0x5e5d45(0xfe)]==='object')for(const _0x1be2c6 of Object[_0x5e5d45(0xc2)](_0xa7ff68[_0x5e5d45(0xfe)])){_0x1be2c6&&_0x1be2c6['env']===_0x5e5d45(0xdc)&&(_0x1be2c6[_0x5e5d45(0xfa)]='production',_0x207d16=!![]);}if(_0x207d16)try{writeConfigFile(_0x54ce5c,_0xa7ff68);}catch{}}export function writeConfigFile(_0x3ce133,_0x2c566f){const _0x616bcb=a77_0x4e0dc1,_0x159453=dirname(_0x3ce133);!existsSync(_0x159453)&&mkdirSync(_0x159453,{'recursive':!![]});const _0x2cd0ea=_0x3ce133+_0x616bcb(0xf4);try{writeFileSync(_0x2cd0ea,JSON[_0x616bcb(0x108)](_0x2c566f,null,0x2)+'\x0a',{'encoding':_0x616bcb(0x104),'mode':0x180});try{renameSync(_0x2cd0ea,_0x3ce133);}catch(_0xa96864){if(_0xa96864[_0x616bcb(0x109)]===_0x616bcb(0xe7)||_0xa96864[_0x616bcb(0x109)]===_0x616bcb(0xca)||_0xa96864[_0x616bcb(0x109)]===_0x616bcb(0xe1)){writeFileSync(_0x3ce133,JSON[_0x616bcb(0x108)](_0x2c566f,null,0x2)+'\x0a',{'encoding':_0x616bcb(0x104)});try{unlinkSync(_0x2cd0ea);}catch{}}else throw _0xa96864;}}catch(_0x55b196){try{unlinkSync(_0x2cd0ea);}catch{}throw _0x55b196;}}export function isNonInteractiveMode(_0x5d06af){const _0x4a6c56=a77_0x4e0dc1;return!!(_0x5d06af[_0x4a6c56(0xdf)]||_0x5d06af['ci']||productEnvNames('CI')['some'](_0x3dc516=>process.env[_0x3dc516]===_0x4a6c56(0xc9))||process.env.CI===_0x4a6c56(0xc9)||!process[_0x4a6c56(0xd2)][_0x4a6c56(0xc3)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x514174=a77_0x4e0dc1;if(!process['stdin'][_0x514174(0xc3)])return![];try{const _0x5440f9=process[_0x514174(0xd1)]['isRaw'];return process[_0x514174(0xd1)][_0x514174(0xd7)](!![]),process['stdin'][_0x514174(0xd7)](_0x5440f9??![]),!![];}catch{return![];}}export async function createContext(_0x5eb6f4){const _0x1aee7f=a77_0x4e0dc1,_0x16eef0=readRawConfig(),_0x453d6f=buildConfig(_0x16eef0,_0x5eb6f4);await initGlobalEnvironment(_0x453d6f);const {getUserDomain:_0x304661,getApiDomain:_0x5cbae0}=await import('./constant/domain.js'),_0x4eae99={'apiDomain':_0x5cbae0(),'userDomain':_0x304661()},_0x59bdb9=await buildAuth(_0x453d6f);logger['setLogPath'](process[_0x1aee7f(0xff)]());const _0x49ad41=(CLI_BIN_NAME+'\x20'+process[_0x1aee7f(0xe4)][_0x1aee7f(0xef)](0x2)[_0x1aee7f(0x101)]('\x20'))[_0x1aee7f(0xfc)]();logger[_0x1aee7f(0xd5)](_0x49ad41);const _0x20de22=isNonInteractiveMode(_0x5eb6f4);return{'config':_0x453d6f,'auth':_0x59bdb9,'logger':logger,'env':_0x4eae99,'nonInteractive':_0x20de22};}export function buildConfigFromFlags(_0x4027b1){return buildConfig(readRawConfig(),_0x4027b1);}export function getLocalAppAliases(_0x37b69a){const _0x20a6cc=a77_0x4e0dc1;return _0x37b69a[_0x20a6cc(0xfe)]&&typeof _0x37b69a['apps']===_0x20a6cc(0xec)?_0x37b69a[_0x20a6cc(0xfe)]:{};}export function resolveLocalAppAliasCode(_0x484ab1,_0x5b2747){const _0x5765df=a77_0x4e0dc1;if(!_0x5b2747)return undefined;const _0x3c04c5=getLocalAppAliases(_0x484ab1)[_0x5b2747],_0x3b811f=_0x3c04c5?.[_0x5765df(0x107)];return typeof _0x3b811f===_0x5765df(0xc6)&&_0x3b811f[_0x5765df(0xfc)]()?_0x3b811f['trim']():undefined;}export function readAppCodeFromConfig(){const _0x51030f=a77_0x4e0dc1,_0x505883=readRawConfig(),_0x41d924=_0x505883[_0x51030f(0x107)]??_0x505883[_0x51030f(0x103)];if(typeof _0x41d924===_0x51030f(0xc6)&&_0x41d924[_0x51030f(0xfc)]())return _0x41d924[_0x51030f(0xfc)]();const _0x4d94a5=resolveLocalAppAliasCode(_0x505883,typeof _0x505883[_0x51030f(0xd4)]===_0x51030f(0xc6)?_0x505883[_0x51030f(0xd4)]:undefined);if(_0x4d94a5)return _0x4d94a5;const _0x39cb89=normalizeEnv(String(_0x505883[_0x51030f(0xfa)]||_0x51030f(0xe0))),_0x48abde=isDaily(_0x39cb89)?_0x51030f(0xc5):isDev(_0x39cb89)?_0x51030f(0xe5):_0x51030f(0xe0),_0x43c2a3=resolveCachedAppCode(typeof _0x505883[_0x51030f(0xd4)]===_0x51030f(0xc6)?_0x505883[_0x51030f(0xd4)]:undefined,_0x48abde,typeof _0x505883['accessKey']===_0x51030f(0xc6)?_0x505883[_0x51030f(0xc4)]:undefined);if(_0x43c2a3)return _0x43c2a3;const _0x45e44d=Object[_0x51030f(0xc2)](getLocalAppAliases(_0x505883))[_0x51030f(0xdd)](_0x5c7538=>_0x5c7538?.[_0x51030f(0x107)]);return typeof _0x45e44d?.[_0x51030f(0x107)]===_0x51030f(0xc6)&&_0x45e44d[_0x51030f(0x107)][_0x51030f(0xfc)]()?_0x45e44d[_0x51030f(0x107)][_0x51030f(0xfc)]():undefined;}export function readScopedConfig(_0x1ccd4b){const _0x22a311=a77_0x4e0dc1,_0x1ec17=_0x1ccd4b[_0x22a311(0xde)]?_0x22a311(0xde):_0x22a311(0xea);return readConfigFile(resolveWriteConfigPath(_0x1ec17));}export function writeScopedConfig(_0x2680be,_0x4912a3){const _0x3ee212=a77_0x4e0dc1,_0x133850=_0x4912a3[_0x3ee212(0xde)]?'global':_0x3ee212(0xea);writeConfigFile(resolveWriteConfigPath(_0x133850),_0x2680be);}export async function initGlobalEnvironment(_0x268ca3){const _0x39b221=a77_0x4e0dc1,{initEnv:_0x1043d1}=await import(_0x39b221(0xd8));_0x1043d1(_0x268ca3[_0x39b221(0xfa)]);const {initDomains:_0x24cc3d}=await import(_0x39b221(0x10a));_0x24cc3d({'apiDomain':_0x268ca3['raw'][_0x39b221(0xf0)]||_0x268ca3[_0x39b221(0xeb)]['host']||undefined,'userDomain':_0x268ca3[_0x39b221(0xeb)][_0x39b221(0x102)]||undefined,'runtimeDomain':_0x268ca3[_0x39b221(0xeb)]['runtimeDomain']||undefined,'skillHubDomain':_0x268ca3[_0x39b221(0xeb)][_0x39b221(0xf6)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x2e2fe3){const _0x350135=a77_0x4e0dc1;if(!existsSync(_0x2e2fe3))return{'status':_0x350135(0xcc)};try{const _0x2880e2=readFileSync(_0x2e2fe3,{'encoding':_0x350135(0x104)});if(!_0x2880e2?.['trim']())return{'status':_0x350135(0xf3)};const _0x2a470d=JSON[_0x350135(0x10b)](_0x2880e2);return{'status':'ok','data':_0x2a470d};}catch(_0x39efd2){return{'status':_0x350135(0xe6),'message':_0x39efd2 instanceof Error?_0x39efd2['message']:String(_0x39efd2)};}}export function loadRawConfigLayers(_0x541262){const _0x144fd3=a77_0x4e0dc1;let _0x4b8438={},_0x29ca48={},_0xf163a,_0x4ec371;try{_0xf163a=resolveConfigPath(homedir());if(_0xf163a){const _0x5dda1a=readFileSync(_0xf163a,{'encoding':_0x144fd3(0x104)});if(_0x5dda1a)_0x4b8438=JSON[_0x144fd3(0x10b)](_0x5dda1a);}}catch{}try{const _0x31c012=_0x541262||process[_0x144fd3(0xff)]();_0x4ec371=resolveConfigPath(_0x31c012);if(_0x4ec371){const _0x286370=readFileSync(_0x4ec371,{'encoding':'utf8'});if(_0x286370)_0x29ca48=JSON[_0x144fd3(0x10b)](_0x286370);}}catch{}return{'globalPath':_0xf163a,'projectPath':_0x4ec371,'globalConfig':_0x4b8438,'projectConfig':_0x29ca48};}function mergeRawConfigLayers(_0x1a09b0){const _0x61136b=a77_0x4e0dc1,{globalConfig:_0x283453,projectConfig:_0x5ccb4b}=_0x1a09b0;if(_0x5ccb4b[_0x61136b(0x100)]===![]){const _0x279d11={..._0x5ccb4b};return delete _0x279d11[_0x61136b(0x100)],_0x279d11;}const _0x57ba00={..._0x283453,..._0x5ccb4b};if(_0x61136b(0xd4)in _0x5ccb4b)_0x57ba00[_0x61136b(0xd4)]=_0x5ccb4b[_0x61136b(0xd4)];else _0x283453[_0x61136b(0xd4)]&&(_0x57ba00[_0x61136b(0xd4)]=_0x283453[_0x61136b(0xd4)]);return _0x57ba00;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x5c0f44){return mergeRawConfigLayers(loadRawConfigLayers(_0x5c0f44));}export function readRawConfigWithLayers(_0x46ba68){const _0x89253b=loadRawConfigLayers(_0x46ba68);return{'config':mergeRawConfigLayers(_0x89253b),'layers':_0x89253b};}export function resolveDefaultAppSource(_0x7f5e63){const _0x46fe64=a77_0x4e0dc1;if(_0x46fe64(0xd4)in _0x7f5e63[_0x46fe64(0xcf)])return'project';if(_0x7f5e63[_0x46fe64(0xcf)]['inherit']===![])return null;if(_0x7f5e63[_0x46fe64(0xda)][_0x46fe64(0xd4)])return _0x46fe64(0xde);return null;}function buildConfig(_0x1fb027,_0x37fde1){const _0x11d438=a77_0x4e0dc1,_0x2f55f5=_0x1fb027[_0x11d438(0xd4)]||undefined,_0x35888e=_0x37fde1[_0x11d438(0x103)]||env('APP')||undefined,_0x24d233=_0x35888e||_0x2f55f5||undefined,_0x2f9a9f=env('ACCESS_KEY')||_0x1fb027[_0x11d438(0xc4)]||undefined,_0x1fc5c8=_0x37fde1['env']||env(_0x11d438(0xf5))||_0x1fb027['env']||DEFAULT_CONFIG_VALUES[_0x11d438(0xfa)],_0x50a2b8=normalizeEnv(String(_0x1fc5c8)),_0x1932ce=isDaily(_0x50a2b8)?_0x11d438(0xc5):isDev(_0x50a2b8)?_0x11d438(0xe5):_0x11d438(0xe0),_0x293400=typeof _0x37fde1['appcode']===_0x11d438(0xc6)?_0x37fde1[_0x11d438(0x107)]:undefined,_0x1dfce6=env(_0x11d438(0xd3)),_0x583299=_0x35888e?undefined:_0x1fb027['appcode']||_0x1fb027['app']||undefined,_0x522de3=_0x35888e||(_0x583299?undefined:_0x2f55f5),_0x40b5d1=resolveLocalAppAliasCode(_0x1fb027,_0x522de3),_0x2c50a5=resolveCachedAppCode(_0x522de3,_0x1932ce,_0x2f9a9f),_0x268d7d=_0x293400||_0x1dfce6||_0x583299||_0x40b5d1||_0x2c50a5||undefined,_0x448de5=_0x293400?_0x11d438(0xc7):_0x1dfce6?_0x11d438(0xfa):_0x583299?_0x11d438(0xf8):_0x40b5d1?_0x11d438(0xf2):_0x2c50a5?'cache':undefined,_0x39f20f=_0x1fb027[_0x11d438(0xdb)]||DEFAULT_CONFIG_VALUES['locale'],_0x12bcaf=undefined,_0x3b965a=_0x37fde1[_0x11d438(0xcd)]||env(_0x11d438(0xe8))||_0x1fb027[_0x11d438(0xcd)],_0x1f7739=normalizeLegacyOutputFormat(_0x3b965a),_0x3d3a57=env(_0x11d438(0xee))||_0x1fb027[_0x11d438(0xe9)],_0x1ddb53=_0x3d3a57?Number(_0x3d3a57)||undefined:undefined,_0x30fd29=_0x1fb027[_0x11d438(0xd9)]||_0x1fb027[_0x11d438(0x105)],_0x29bd6b=_0x30fd29===_0x11d438(0xed)||_0x30fd29===_0x11d438(0xe2)||_0x30fd29===_0x11d438(0xce)?_0x30fd29:DEFAULT_CONFIG_VALUES['riskLevel'],_0x5f2607=env(_0x11d438(0xf7)),_0x276c99=_0x5f2607==='1'||_0x5f2607===_0x11d438(0xc9);return{'appCode':typeof _0x268d7d===_0x11d438(0xc6)&&_0x268d7d[_0x11d438(0xfc)]()?_0x268d7d[_0x11d438(0xfc)]():undefined,'appCodeSource':_0x448de5,'env':_0x1932ce,'locale':_0x39f20f,'cookie':_0x12bcaf,'accessKey':_0x2f9a9f,'format':_0x1f7739,'pageSize':_0x1ddb53,'riskLevel':_0x29bd6b,'verbose':_0x276c99,'defaultApp':_0x2f55f5,'currentApp':typeof _0x24d233==='string'?_0x24d233:undefined,'raw':_0x1fb027};}function env(_0x5f553d){return productEnv(_0x5f553d);}async function buildAuth(_0xc50b6a){const _0x4eb491=a77_0x4e0dc1,_0x3eb4f2='',_0x15c9c0=!!_0xc50b6a[_0x4eb491(0xc4)];return{'cookie':_0x3eb4f2,'isLoggedIn':_0x15c9c0,async 'getOrLogin'(){const _0x8f088f=_0x4eb491;if(_0x15c9c0)return _0x3eb4f2;throw CliErrors[_0x8f088f(0xf1)]();}};}