@lovrabet/lovrabet-cli 2.1.11 → 2.1.12

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 (119) 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/app-config/shared.js +1 -1
  12. package/lib/commands/artifact/index.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/schema.js +1 -1
  39. package/lib/commands/service/dynamic.js +1 -1
  40. package/lib/commands/service/index.js +1 -1
  41. package/lib/commands/service/registry.js +1 -1
  42. package/lib/commands/skill/commands/create.js +1 -1
  43. package/lib/commands/skill/commands/install.js +1 -1
  44. package/lib/commands/skill/commands/list.js +1 -1
  45. package/lib/commands/skill/commands/push.js +1 -1
  46. package/lib/commands/skill/commands/validate.js +1 -1
  47. package/lib/commands/skill/flags.js +1 -1
  48. package/lib/commands/skill/index.js +1 -1
  49. package/lib/commands/skill/manifest-helpers.js +1 -1
  50. package/lib/commands/skill/push-execute.js +1 -1
  51. package/lib/commands/skill/push-flow-helpers.js +1 -1
  52. package/lib/commands/skill/push-retarget.js +1 -1
  53. package/lib/commands/skill/scopes.js +1 -1
  54. package/lib/commands/skill/summary.js +1 -1
  55. package/lib/commands/skill/templates.js +1 -1
  56. package/lib/commands/skill/validate.js +1 -1
  57. package/lib/commands/sql/detail.js +1 -1
  58. package/lib/commands/sql/exec.js +1 -1
  59. package/lib/commands/sql/index.js +1 -1
  60. package/lib/commands/update.js +1 -1
  61. package/lib/commands/workspace/index.js +1 -1
  62. package/lib/config/schema.js +1 -1
  63. package/lib/constant/app.js +1 -1
  64. package/lib/constant/auth-mode.js +1 -1
  65. package/lib/constant/cli.js +1 -1
  66. package/lib/constant/defaults.js +1 -1
  67. package/lib/constant/distribution.js +1 -1
  68. package/lib/constant/domain.js +1 -1
  69. package/lib/constant/env.js +1 -1
  70. package/lib/constant/output.js +1 -1
  71. package/lib/constant/product.js +1 -1
  72. package/lib/constant/risk.js +1 -1
  73. package/lib/constant/url.js +1 -1
  74. package/lib/context.js +1 -1
  75. package/lib/core/api-client.js +1 -1
  76. package/lib/core/db-resolver.js +1 -1
  77. package/lib/core/sdk-client.js +1 -1
  78. package/lib/errors.js +1 -1
  79. package/lib/framework/build-all-flags.js +1 -1
  80. package/lib/framework/dryrun.js +1 -1
  81. package/lib/framework/flags.js +1 -1
  82. package/lib/framework/help.js +1 -1
  83. package/lib/framework/index.js +1 -1
  84. package/lib/framework/output.js +1 -1
  85. package/lib/framework/preparse.js +1 -1
  86. package/lib/framework/rate-limit.js +1 -1
  87. package/lib/framework/response.js +1 -1
  88. package/lib/framework/runner-confirmation.js +1 -1
  89. package/lib/framework/runner-error.js +1 -1
  90. package/lib/framework/runner.js +1 -1
  91. package/lib/framework/schema-export.js +1 -1
  92. package/lib/framework/service-order.js +1 -1
  93. package/lib/framework/types.js +1 -1
  94. package/lib/generated/build-info.js +1 -1
  95. package/lib/help.js +1 -1
  96. package/lib/skills/npx-skills-add.js +1 -1
  97. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  98. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  99. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  100. package/lib/skills/runtime-skill-sync/links.js +1 -1
  101. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  102. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  103. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  104. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  105. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  106. package/lib/skills/runtime-skill-sync/push.js +1 -1
  107. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  108. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  109. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  110. package/lib/skills/runtime-skill-sync.js +1 -1
  111. package/lib/utils/apply-jq-filter.js +1 -1
  112. package/lib/utils/logger.js +1 -1
  113. package/lib/utils/lossless-json.js +1 -1
  114. package/lib/utils/params.js +1 -1
  115. package/lib/utils/platform.js +1 -1
  116. package/lib/utils/update-notice.js +1 -1
  117. package/lib/utils/version.js +1 -1
  118. package/lib/utils/write-cli-side-channel.js +1 -1
  119. package/package.json +1 -1
@@ -1 +1 @@
1
- const a55_0x540084=a55_0x5cfb;function a55_0x5cfb(_0x511f98,_0x281257){_0x511f98=_0x511f98-0x172;const _0x55ac0e=a55_0x55ac();let _0x5cfbff=_0x55ac0e[_0x511f98];return _0x5cfbff;}(function(_0x3a0875,_0x326e0c){const _0x6f0957=a55_0x5cfb,_0x3dfbc3=_0x3a0875();while(!![]){try{const _0x55c6ee=parseInt(_0x6f0957(0x191))/0x1*(-parseInt(_0x6f0957(0x1a5))/0x2)+parseInt(_0x6f0957(0x17a))/0x3*(parseInt(_0x6f0957(0x197))/0x4)+-parseInt(_0x6f0957(0x1a6))/0x5*(-parseInt(_0x6f0957(0x1c8))/0x6)+-parseInt(_0x6f0957(0x185))/0x7+parseInt(_0x6f0957(0x19f))/0x8+-parseInt(_0x6f0957(0x176))/0x9*(parseInt(_0x6f0957(0x1a9))/0xa)+parseInt(_0x6f0957(0x18b))/0xb;if(_0x55c6ee===_0x326e0c)break;else _0x3dfbc3['push'](_0x3dfbc3['shift']());}catch(_0x37712b){_0x3dfbc3['push'](_0x3dfbc3['shift']());}}}(a55_0x55ac,0xca9bb));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a55_0x3e1707}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a55_0x540084(0x1c6),SUPPORTED_SKILL_TYPES=new Set([a55_0x540084(0x19a),'read',a55_0x540084(0x1a3)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x445a01,_0x5d9324={}){const _0x16b142=a55_0x540084,_0x2df51=resolveSkillDirectoryRoot(_0x445a01),_0x1bbba0=[],_0xfb8fa7=loadRequiredSkillFile(_0x2df51,_0x1bbba0),_0x29d26a=_0xfb8fa7?parseFrontmatter(_0xfb8fa7[_0x16b142(0x1c4)]):{'hasFrontmatter':![]};_0xfb8fa7&&validateFrontmatter(_0xfb8fa7[_0x16b142(0x188)],_0x29d26a,_0x1bbba0);validateRuntimeCliReferences(_0x2df51,_0x1bbba0);const _0x939f38=_0x1bbba0[_0x16b142(0x19b)](_0x445cf8=>_0x445cf8['level']==='error'),_0x217f5a=_0x1bbba0['filter'](_0x4e8378=>_0x4e8378[_0x16b142(0x1a1)]===_0x16b142(0x1ba));return{'ok':_0x939f38['length']===0x0,'dir':_0x2df51,'type':_0x29d26a[_0x16b142(0x1cd)],'errors':_0x939f38,'warnings':_0x217f5a};}function resolveSkillDirectoryRoot(_0x48ffa2){const _0x4ae460=a55_0x540084,_0x144d7b=resolve(_0x48ffa2);if(!existsSync(_0x144d7b))throw CliErrors[_0x4ae460(0x19e)](_0x4ae460(0x1c7)+_0x48ffa2);const _0x25b049=lstatSync(_0x144d7b);if(_0x25b049['isDirectory']())return _0x144d7b;if(_0x25b049[_0x4ae460(0x1ad)]()){const _0x4b1bc1=realpathSync(_0x144d7b);if(lstatSync(_0x4b1bc1)[_0x4ae460(0x1a2)]())return _0x4b1bc1;}throw CliErrors[_0x4ae460(0x19e)]('Skill\x20directory\x20not\x20found:\x20'+_0x48ffa2);}export function throwIfSkillValidationFailed(_0x4c0b87,_0x535db3=![]){const _0x212429=a55_0x540084;if(_0x4c0b87['ok'])return;const _0x54d010=_0x4c0b87[_0x212429(0x17d)]['map'](_0x71f95b=>{const _0x39ae26=_0x212429,_0x41093a=_0x71f95b[_0x39ae26(0x1b7)]?'#'+_0x71f95b[_0x39ae26(0x1b7)]:'';return _0x71f95b['level'][_0x39ae26(0x17c)]()+'\x20'+_0x71f95b['ruleId']+'\x20'+_0x71f95b[_0x39ae26(0x198)]+_0x41093a+':\x20'+_0x71f95b['message']+_0x39ae26(0x18d)+_0x71f95b[_0x39ae26(0x1b9)];});throw CliErrors[_0x212429(0x19e)](_0x212429(0x1c5)+_0x54d010[_0x212429(0x1b1)]('\x0a'),'Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.');}function loadRequiredSkillFile(_0x46b93e,_0x5de95d){const _0x1c3a7e=a55_0x540084,_0x3a63ed=resolve(_0x46b93e,SKILL_FILE);if(!existsSync(_0x3a63ed))return _0x5de95d[_0x1c3a7e(0x183)](issue(_0x1c3a7e(0x17b),_0x1c3a7e(0x178),SKILL_FILE,_0x1c3a7e(0x1b6),_0x1c3a7e(0x1cb))),undefined;const _0x1716e6=lstatSync(_0x3a63ed);if(_0x1716e6[_0x1c3a7e(0x1ad)]())return _0x5de95d[_0x1c3a7e(0x183)](issue('error','structure-complete',SKILL_FILE,'SKILL.md\x20must\x20be\x20a\x20regular\x20file.',_0x1c3a7e(0x1cc))),undefined;if(!_0x1716e6['isFile']())return _0x5de95d[_0x1c3a7e(0x183)](issue('error',_0x1c3a7e(0x178),SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.',_0x1c3a7e(0x1c2))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x3a63ed,_0x1c3a7e(0x180))};}function validateFrontmatter(_0x7b0b48,_0x325eb8,_0xff92a){const _0x394ea7=a55_0x540084;if(!_0x325eb8[_0x394ea7(0x1a0)]){_0xff92a['push'](issue(_0x394ea7(0x17b),'frontmatter-required',_0x7b0b48,_0x394ea7(0x194),_0x394ea7(0x192)));return;}!_0x325eb8['name']?.[_0x394ea7(0x182)]()&&_0xff92a[_0x394ea7(0x183)](issue(_0x394ea7(0x17b),_0x394ea7(0x184),_0x7b0b48,_0x394ea7(0x1c0),'Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.')),!_0x325eb8[_0x394ea7(0x1ce)]?.[_0x394ea7(0x182)]()&&_0xff92a[_0x394ea7(0x183)](issue('warning',_0x394ea7(0x18c),_0x7b0b48,_0x394ea7(0x187),'Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.')),!_0x325eb8[_0x394ea7(0x1a4)]?.[_0x394ea7(0x182)]()&&_0xff92a['push'](issue('warning',_0x394ea7(0x1aa),_0x7b0b48,'Frontmatter\x20example\x20is\x20missing.','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.')),!_0x325eb8[_0x394ea7(0x1c1)]?.['trim']()&&_0xff92a['push'](issue(_0x394ea7(0x17b),_0x394ea7(0x1af),_0x7b0b48,_0x394ea7(0x1a7),_0x394ea7(0x1bf))),_0x325eb8[_0x394ea7(0x1b4)]===!![]&&_0xff92a[_0x394ea7(0x183)](issue('error',_0x394ea7(0x1ac),_0x7b0b48,_0x394ea7(0x1c3),'Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.')),_0x325eb8['type']?.[_0x394ea7(0x182)]()&&!SUPPORTED_SKILL_TYPES[_0x394ea7(0x177)](_0x325eb8[_0x394ea7(0x1cd)])&&_0xff92a[_0x394ea7(0x183)](issue(_0x394ea7(0x17b),_0x394ea7(0x184),_0x7b0b48,'metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.',_0x394ea7(0x17e)));}function validateRuntimeCliReferences(_0x223070,_0x305614){const _0x216e3a=a55_0x540084;for(const _0x357883 of findRabetbaseCliInvocations(_0x223070)){_0x305614['push'](issue('warning','rabetbase-cli-reference',_0x357883['file'],_0x216e3a(0x1a8),_0x216e3a(0x1b2),'L'+_0x357883[_0x216e3a(0x1c9)]));}}function a55_0x55ac(){const _0x1b98d9=['Frontmatter\x20name\x20is\x20missing.','description','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','content','Skill\x20validation\x20failed:\x0a','SKILL.md','Skill\x20directory\x20not\x20found:\x20','12yqQRqk','line','search','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','type','displayName','page','sql','dataset','object','auth','147717AjdoId','has','structure-complete','slice','4422OXVNdw','error','toUpperCase','errors','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.','registry','utf8','map','trim','push','frontmatter-required','9388260kefTxu','string','Frontmatter\x20displayName\x20is\x20missing.','path','split','artifact','18541864qtxSlR','display-name-recommended','\x20Fix:\x20','isArray','config','boolean','5717DlmLEE','Add\x20frontmatter\x20with\x20name\x20and\x20description.','data','SKILL.md\x20must\x20start\x20with\x20frontmatter.','raw','schema','596jKXBUt','file','flatMap','write','filter','project','bff','validation','4242072hsbppW','hasFrontmatter','level','isDirectory','trainer','example','94mlPySt','133730iuJmBo','Frontmatter\x20description\x20is\x20empty.','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','30noqyKV','example-recommended','logs','internal-skill','isSymbolicLink','test','description-required','service','join','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','match','internal','toLowerCase','Missing\x20SKILL.md.','section','false','suggestion','warning','number','workspace','true','name','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。'];a55_0x55ac=function(){return _0x1b98d9;};return a55_0x55ac();}function findRabetbaseCliInvocations(_0x4ff64f){const _0x274bd9=a55_0x540084;return scanSkillDirectory(_0x4ff64f)[_0x274bd9(0x19b)](_0x143b7f=>TEXT_SKILL_FILE_PATTERN[_0x274bd9(0x1ae)](_0x143b7f[_0x274bd9(0x188)]))[_0x274bd9(0x199)](_0x23a1b4=>{const _0x2d1e03=_0x274bd9,_0x25c96c=fileText(_0x23a1b4);return _0x25c96c['split'](/\r?\n/)['map']((_0x2444cf,_0x19bb0c)=>({'file':_0x23a1b4[_0x2d1e03(0x188)],'line':_0x19bb0c+0x1,'text':_0x2444cf}))['filter'](({text:_0x572a8b})=>isRabetbaseCliInvocation(_0x572a8b))[_0x2d1e03(0x181)](({file:_0x2c56b3,line:_0x3d125a})=>({'file':_0x2c56b3,'line':_0x3d125a}));});}const RABETBASE_SUBCOMMANDS=[a55_0x540084(0x173),a55_0x540084(0x172),a55_0x540084(0x19d),a55_0x540084(0x1cf),a55_0x540084(0x19c),'app',a55_0x540084(0x196),a55_0x540084(0x1b0),a55_0x540084(0x18a),'kb',a55_0x540084(0x18f),a55_0x540084(0x1bc),a55_0x540084(0x193),a55_0x540084(0x175),a55_0x540084(0x1ab),a55_0x540084(0x17f)],RABETBASE_INVOCATION=new RegExp(String[a55_0x540084(0x195)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a55_0x540084(0x1b1)]('|')})\b`+String[a55_0x540084(0x195)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x8e49c7){const _0x4c1698=a55_0x540084,_0x2d6937=_0x8e49c7[_0x4c1698(0x1ca)](/\brabetbase\b/i);if(_0x2d6937<0x0)return![];const _0x3f782f=_0x8e49c7[_0x4c1698(0x179)](_0x2d6937)[_0x4c1698(0x189)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x4c1698(0x1ae)](_0x3f782f);}function parseFrontmatter(_0x413bfd){const _0x2aaaa7=a55_0x540084,_0xea414a=_0x413bfd[_0x2aaaa7(0x1b3)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0xea414a)return{'hasFrontmatter':![]};const _0x2f966c=_0xea414a[0x1]??'',_0x3630c0={'hasFrontmatter':!![]};let _0x3e5cb0;try{_0x3e5cb0=a55_0x3e1707(_0x2f966c);}catch{return _0x3630c0;}const _0x413376=asRecord(_0x3e5cb0);if(!_0x413376)return _0x3630c0;_0x3630c0[_0x2aaaa7(0x1be)]=scalarToString(_0x413376[_0x2aaaa7(0x1be)]),_0x3630c0[_0x2aaaa7(0x1ce)]=scalarToString(_0x413376[_0x2aaaa7(0x1ce)]),_0x3630c0[_0x2aaaa7(0x1c1)]=scalarToString(_0x413376['description']),_0x3630c0['example']=scalarToString(_0x413376[_0x2aaaa7(0x1a4)]);const _0x2591be=asRecord(_0x413376['metadata']);return _0x2591be&&(_0x3630c0[_0x2aaaa7(0x1cd)]=scalarToString(_0x2591be[_0x2aaaa7(0x1cd)]),_0x3630c0[_0x2aaaa7(0x1b4)]=scalarToBoolean(_0x2591be['internal'])),_0x3630c0;}function asRecord(_0x184b29){const _0x50137b=a55_0x540084;if(_0x184b29&&typeof _0x184b29===_0x50137b(0x174)&&!Array[_0x50137b(0x18e)](_0x184b29))return _0x184b29;return undefined;}function scalarToString(_0x3a14ff){const _0x4d2ef4=a55_0x540084;if(typeof _0x3a14ff===_0x4d2ef4(0x186))return _0x3a14ff[_0x4d2ef4(0x182)]();if(typeof _0x3a14ff===_0x4d2ef4(0x1bb)||typeof _0x3a14ff===_0x4d2ef4(0x190))return String(_0x3a14ff);return undefined;}function scalarToBoolean(_0x23e1c7){const _0x51cab4=a55_0x540084;if(typeof _0x23e1c7===_0x51cab4(0x190))return _0x23e1c7;if(typeof _0x23e1c7===_0x51cab4(0x186))return cleanBoolean(_0x23e1c7);return undefined;}function cleanBoolean(_0x2f50aa){const _0x403f8d=a55_0x540084,_0x50207b=_0x2f50aa['trim']()[_0x403f8d(0x1b5)]();if(_0x50207b===_0x403f8d(0x1bd))return!![];if(_0x50207b===_0x403f8d(0x1b8))return![];return undefined;}function issue(_0x5e76f9,_0x24ec38,_0x47e28e,_0x4e9251,_0x4b7a55,_0x3a3b27){return{'level':_0x5e76f9,'ruleId':_0x24ec38,'file':_0x47e28e,'section':_0x3a3b27,'message':_0x4e9251,'suggestion':_0x4b7a55};}
1
+ const a55_0x14be65=a55_0x47c6;(function(_0x425949,_0x3e974f){const _0x395829=a55_0x47c6,_0x4b32bf=_0x425949();while(!![]){try{const _0x59380d=-parseInt(_0x395829(0x1af))/0x1+-parseInt(_0x395829(0x1da))/0x2+parseInt(_0x395829(0x1e0))/0x3+parseInt(_0x395829(0x19c))/0x4+-parseInt(_0x395829(0x1ae))/0x5+-parseInt(_0x395829(0x1ac))/0x6+parseInt(_0x395829(0x1f2))/0x7;if(_0x59380d===_0x3e974f)break;else _0x4b32bf['push'](_0x4b32bf['shift']());}catch(_0x77e1dd){_0x4b32bf['push'](_0x4b32bf['shift']());}}}(a55_0x2bb3,0x3b0ec));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';function a55_0x2bb3(){const _0x45fef7=['object','dataset','filter','push','search','string','split','false','SKILL.md\x20must\x20start\x20with\x20frontmatter.','Add\x20frontmatter\x20with\x20name\x20and\x20description.','743332TzEgJr','name','isFile','frontmatter-required','map','display-name-recommended','380226hwTfvj','isSymbolicLink','hasFrontmatter','schema','warning','type','boolean','\x20Fix:\x20','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','errors','config','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','ruleId','true','example','toUpperCase','internal','read','8996330DFspcO','validation','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','1413908HzXMil','level','data','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','error','path','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','test','slice','flatMap','Frontmatter\x20description\x20is\x20empty.','number','displayName','page','registry','isArray','1820604ELHOBc','description','2098400AcRcjB','428729uQpjWy','isDirectory','content','Frontmatter\x20name\x20is\x20missing.','file','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','section','suggestion','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','Skill\x20directory\x20not\x20found:\x20','project','toLowerCase','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','SKILL.md\x20is\x20not\x20a\x20file.','app','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','trainer','raw','line','structure-complete','example-recommended','rabetbase-cli-reference','description-required','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','join','utf8','length','match','metadata','trim','auth','sql'];a55_0x2bb3=function(){return _0x45fef7;};return a55_0x2bb3();}import{resolve}from'node:path';import{parse as a55_0x57fb66}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE='SKILL.md',SUPPORTED_SKILL_TYPES=new Set(['write',a55_0x14be65(0x1f1),a55_0x14be65(0x1c0)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;function a55_0x47c6(_0x545fe8,_0x126d98){_0x545fe8=_0x545fe8-0x199;const _0x2bb39b=a55_0x2bb3();let _0x47c6aa=_0x2bb39b[_0x545fe8];return _0x47c6aa;}export function validateSkillDirectory(_0x381993,_0xe1986={}){const _0x198a32=a55_0x14be65,_0x352904=resolveSkillDirectoryRoot(_0x381993),_0x2da475=[],_0x13fd72=loadRequiredSkillFile(_0x352904,_0x2da475),_0x5a5ec7=_0x13fd72?parseFrontmatter(_0x13fd72[_0x198a32(0x1b1)]):{'hasFrontmatter':![]};_0x13fd72&&validateFrontmatter(_0x13fd72['path'],_0x5a5ec7,_0x2da475);validateRuntimeCliReferences(_0x352904,_0x2da475);const _0x416e2b=_0x2da475[_0x198a32(0x1d2)](_0x3de408=>_0x3de408[_0x198a32(0x19d)]===_0x198a32(0x1a0)),_0x3ccac6=_0x2da475[_0x198a32(0x1d2)](_0x4cf865=>_0x4cf865['level']===_0x198a32(0x1e4));return{'ok':_0x416e2b[_0x198a32(0x1ca)]===0x0,'dir':_0x352904,'type':_0x5a5ec7[_0x198a32(0x1e5)],'errors':_0x416e2b,'warnings':_0x3ccac6};}function resolveSkillDirectoryRoot(_0x263c6d){const _0x37ba99=a55_0x14be65,_0x715691=resolve(_0x263c6d);if(!existsSync(_0x715691))throw CliErrors['validation'](_0x37ba99(0x1b9)+_0x263c6d);const _0x18be7a=lstatSync(_0x715691);if(_0x18be7a[_0x37ba99(0x1b0)]())return _0x715691;if(_0x18be7a[_0x37ba99(0x1e1)]()){const _0x477b98=realpathSync(_0x715691);if(lstatSync(_0x477b98)[_0x37ba99(0x1b0)]())return _0x477b98;}throw CliErrors[_0x37ba99(0x199)](_0x37ba99(0x1b9)+_0x263c6d);}export function throwIfSkillValidationFailed(_0x403bcf,_0x4c3190=![]){const _0x3d068c=a55_0x14be65;if(_0x403bcf['ok'])return;const _0x14fe98=_0x403bcf[_0x3d068c(0x1e9)]['map'](_0x1b1bc0=>{const _0x1b68d9=_0x3d068c,_0x59e1cb=_0x1b1bc0['section']?'#'+_0x1b1bc0[_0x1b68d9(0x1b5)]:'';return _0x1b1bc0[_0x1b68d9(0x19d)][_0x1b68d9(0x1ef)]()+'\x20'+_0x1b1bc0[_0x1b68d9(0x1ec)]+'\x20'+_0x1b1bc0[_0x1b68d9(0x1b3)]+_0x59e1cb+':\x20'+_0x1b1bc0['message']+_0x1b68d9(0x1e7)+_0x1b1bc0[_0x1b68d9(0x1b6)];});throw CliErrors[_0x3d068c(0x199)]('Skill\x20validation\x20failed:\x0a'+_0x14fe98[_0x3d068c(0x1c8)]('\x0a'),_0x3d068c(0x1b7));}function loadRequiredSkillFile(_0x531622,_0x2a8fdb){const _0x183a41=a55_0x14be65,_0x3920ff=resolve(_0x531622,SKILL_FILE);if(!existsSync(_0x3920ff))return _0x2a8fdb[_0x183a41(0x1d3)](issue(_0x183a41(0x1a0),_0x183a41(0x1c3),SKILL_FILE,'Missing\x20SKILL.md.',_0x183a41(0x1b8))),undefined;const _0xa2dc67=lstatSync(_0x3920ff);if(_0xa2dc67[_0x183a41(0x1e1)]())return _0x2a8fdb['push'](issue(_0x183a41(0x1a0),_0x183a41(0x1c3),SKILL_FILE,'SKILL.md\x20must\x20be\x20a\x20regular\x20file.',_0x183a41(0x1bf))),undefined;if(!_0xa2dc67[_0x183a41(0x1dc)]())return _0x2a8fdb[_0x183a41(0x1d3)](issue(_0x183a41(0x1a0),_0x183a41(0x1c3),SKILL_FILE,_0x183a41(0x1bd),_0x183a41(0x19a))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x3920ff,_0x183a41(0x1c9))};}function validateFrontmatter(_0x4c5888,_0x4f7fef,_0x1078cc){const _0x1da5a8=a55_0x14be65;if(!_0x4f7fef[_0x1da5a8(0x1e2)]){_0x1078cc['push'](issue(_0x1da5a8(0x1a0),_0x1da5a8(0x1dd),_0x4c5888,_0x1da5a8(0x1d8),_0x1da5a8(0x1d9)));return;}!_0x4f7fef[_0x1da5a8(0x1db)]?.[_0x1da5a8(0x1cd)]()&&_0x1078cc[_0x1da5a8(0x1d3)](issue(_0x1da5a8(0x1a0),_0x1da5a8(0x1dd),_0x4c5888,_0x1da5a8(0x1b2),_0x1da5a8(0x1a2))),!_0x4f7fef[_0x1da5a8(0x1a8)]?.[_0x1da5a8(0x1cd)]()&&_0x1078cc['push'](issue(_0x1da5a8(0x1e4),_0x1da5a8(0x1df),_0x4c5888,'Frontmatter\x20displayName\x20is\x20missing.',_0x1da5a8(0x1bc))),!_0x4f7fef[_0x1da5a8(0x1ee)]?.[_0x1da5a8(0x1cd)]()&&_0x1078cc[_0x1da5a8(0x1d3)](issue('warning',_0x1da5a8(0x1c4),_0x4c5888,'Frontmatter\x20example\x20is\x20missing.',_0x1da5a8(0x1e8))),!_0x4f7fef[_0x1da5a8(0x1ad)]?.[_0x1da5a8(0x1cd)]()&&_0x1078cc[_0x1da5a8(0x1d3)](issue(_0x1da5a8(0x1a0),_0x1da5a8(0x1c6),_0x4c5888,_0x1da5a8(0x1a6),_0x1da5a8(0x19f))),_0x4f7fef[_0x1da5a8(0x1f0)]===!![]&&_0x1078cc['push'](issue(_0x1da5a8(0x1a0),'internal-skill',_0x4c5888,_0x1da5a8(0x19b),_0x1da5a8(0x1c7))),_0x4f7fef[_0x1da5a8(0x1e5)]?.[_0x1da5a8(0x1cd)]()&&!SUPPORTED_SKILL_TYPES['has'](_0x4f7fef['type'])&&_0x1078cc[_0x1da5a8(0x1d3)](issue(_0x1da5a8(0x1a0),_0x1da5a8(0x1dd),_0x4c5888,_0x1da5a8(0x1b4),'Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.'));}function validateRuntimeCliReferences(_0x1564fd,_0x988a90){const _0x16c150=a55_0x14be65;for(const _0x207c32 of findRabetbaseCliInvocations(_0x1564fd)){_0x988a90['push'](issue(_0x16c150(0x1e4),_0x16c150(0x1c5),_0x207c32[_0x16c150(0x1b3)],'This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.',_0x16c150(0x1eb),'L'+_0x207c32[_0x16c150(0x1c2)]));}}function findRabetbaseCliInvocations(_0x597c73){const _0x5e3b07=a55_0x14be65;return scanSkillDirectory(_0x597c73)[_0x5e3b07(0x1d2)](_0x2d3c0a=>TEXT_SKILL_FILE_PATTERN[_0x5e3b07(0x1a3)](_0x2d3c0a['path']))[_0x5e3b07(0x1a5)](_0x316323=>{const _0x4ba252=_0x5e3b07,_0x2c6351=fileText(_0x316323);return _0x2c6351[_0x4ba252(0x1d6)](/\r?\n/)['map']((_0x3573d1,_0x6ce49)=>({'file':_0x316323[_0x4ba252(0x1a1)],'line':_0x6ce49+0x1,'text':_0x3573d1}))[_0x4ba252(0x1d2)](({text:_0x254705})=>isRabetbaseCliInvocation(_0x254705))[_0x4ba252(0x1de)](({file:_0x47091c,line:_0x1c320c})=>({'file':_0x47091c,'line':_0x1c320c}));});}const RABETBASE_SUBCOMMANDS=[a55_0x14be65(0x1d1),a55_0x14be65(0x1cf),'bff',a55_0x14be65(0x1a9),a55_0x14be65(0x1ba),a55_0x14be65(0x1be),a55_0x14be65(0x1e3),'service','artifact','kb',a55_0x14be65(0x1ea),'workspace',a55_0x14be65(0x19e),a55_0x14be65(0x1ce),'logs',a55_0x14be65(0x1aa)],RABETBASE_INVOCATION=new RegExp(String[a55_0x14be65(0x1c1)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS['join']('|')})\b`+String[a55_0x14be65(0x1c1)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x4cc010){const _0x2dac82=a55_0x14be65,_0x1cb0d8=_0x4cc010[_0x2dac82(0x1d4)](/\brabetbase\b/i);if(_0x1cb0d8<0x0)return![];const _0x1feaf8=_0x4cc010[_0x2dac82(0x1a4)](_0x1cb0d8)[_0x2dac82(0x1d6)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION['test'](_0x1feaf8);}function parseFrontmatter(_0x3e3b6e){const _0xddaf23=a55_0x14be65,_0x18ca73=_0x3e3b6e[_0xddaf23(0x1cb)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x18ca73)return{'hasFrontmatter':![]};const _0x2b3918=_0x18ca73[0x1]??'',_0x3e75af={'hasFrontmatter':!![]};let _0x2f8173;try{_0x2f8173=a55_0x57fb66(_0x2b3918);}catch{return _0x3e75af;}const _0x32bbad=asRecord(_0x2f8173);if(!_0x32bbad)return _0x3e75af;_0x3e75af[_0xddaf23(0x1db)]=scalarToString(_0x32bbad[_0xddaf23(0x1db)]),_0x3e75af[_0xddaf23(0x1a8)]=scalarToString(_0x32bbad[_0xddaf23(0x1a8)]),_0x3e75af[_0xddaf23(0x1ad)]=scalarToString(_0x32bbad[_0xddaf23(0x1ad)]),_0x3e75af[_0xddaf23(0x1ee)]=scalarToString(_0x32bbad[_0xddaf23(0x1ee)]);const _0x58589e=asRecord(_0x32bbad[_0xddaf23(0x1cc)]);return _0x58589e&&(_0x3e75af[_0xddaf23(0x1e5)]=scalarToString(_0x58589e['type']),_0x3e75af[_0xddaf23(0x1f0)]=scalarToBoolean(_0x58589e['internal'])),_0x3e75af;}function asRecord(_0x4c29d0){const _0x58bf92=a55_0x14be65;if(_0x4c29d0&&typeof _0x4c29d0===_0x58bf92(0x1d0)&&!Array[_0x58bf92(0x1ab)](_0x4c29d0))return _0x4c29d0;return undefined;}function scalarToString(_0x17c7fb){const _0x3b6ef9=a55_0x14be65;if(typeof _0x17c7fb===_0x3b6ef9(0x1d5))return _0x17c7fb['trim']();if(typeof _0x17c7fb===_0x3b6ef9(0x1a7)||typeof _0x17c7fb===_0x3b6ef9(0x1e6))return String(_0x17c7fb);return undefined;}function scalarToBoolean(_0x3c043b){const _0xeb1e97=a55_0x14be65;if(typeof _0x3c043b===_0xeb1e97(0x1e6))return _0x3c043b;if(typeof _0x3c043b===_0xeb1e97(0x1d5))return cleanBoolean(_0x3c043b);return undefined;}function cleanBoolean(_0x4597f7){const _0x584366=a55_0x14be65,_0x3a70ff=_0x4597f7[_0x584366(0x1cd)]()[_0x584366(0x1bb)]();if(_0x3a70ff===_0x584366(0x1ed))return!![];if(_0x3a70ff===_0x584366(0x1d7))return![];return undefined;}function issue(_0x57c93f,_0xca1e81,_0x8ec1c0,_0xbb6351,_0x48a27e,_0x205e3e){return{'level':_0x57c93f,'ruleId':_0xca1e81,'file':_0x8ec1c0,'section':_0x205e3e,'message':_0xbb6351,'suggestion':_0x48a27e};}
@@ -1 +1 @@
1
- const a56_0x2aa429=a56_0x3db8;function a56_0x16c5(){const _0x47b84e=['1XipFmt','sqlcode','3538367MXBaIe','88805VHGsSU','sql','description','bool','sqlName','appCode','str','1751828jIWCxd','dbId','8014944dcgYte','2448687mEqOdh','711DISbsX','111472UMfxZH','detail','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','sqlCode','read','sqlContent','verbose','12482162GrGMZf','244kVzsbM','10CMTsaA'];a56_0x16c5=function(){return _0x47b84e;};return a56_0x16c5();}(function(_0x1714f5,_0x5cb2ab){const _0x5af2d2=a56_0x3db8,_0x5dac41=_0x1714f5();while(!![]){try{const _0x7755dc=parseInt(_0x5af2d2(0x98))/0x1*(parseInt(_0x5af2d2(0x89))/0x2)+-parseInt(_0x5af2d2(0x8c))/0x3+-parseInt(_0x5af2d2(0x96))/0x4*(parseInt(_0x5af2d2(0x82))/0x5)+parseInt(_0x5af2d2(0x8b))/0x6+parseInt(_0x5af2d2(0x9a))/0x7+-parseInt(_0x5af2d2(0x8e))/0x8*(parseInt(_0x5af2d2(0x8d))/0x9)+-parseInt(_0x5af2d2(0x97))/0xa*(-parseInt(_0x5af2d2(0x95))/0xb);if(_0x7755dc===_0x5cb2ab)break;else _0x5dac41['push'](_0x5dac41['shift']());}catch(_0x460bcf){_0x5dac41['push'](_0x5dac41['shift']());}}}(a56_0x16c5,0xcfe45));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a56_0x3db8(_0x233ac3,_0x8445e1){_0x233ac3=_0x233ac3-0x82;const _0x16c535=a56_0x16c5();let _0x3db81a=_0x16c535[_0x233ac3];return _0x3db81a;}export const sqlDetail={'service':a56_0x2aa429(0x83),'command':a56_0x2aa429(0x8f),'description':a56_0x2aa429(0x90),'risk':a56_0x2aa429(0x92),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x4b8df4){const _0x52f135=a56_0x2aa429,_0x3e7bd5=await getSqlQueryInfo(_0x4b8df4[_0x52f135(0x87)],_0x4b8df4[_0x52f135(0x88)](_0x52f135(0x99))),_0x115253=_0x4b8df4[_0x52f135(0x85)](_0x52f135(0x94));if(_0x115253)return{'ok':!![],'data':_0x3e7bd5};const _0x40d8c2=_0x3e7bd5[_0x52f135(0x8a)]?await getDbName(_0x4b8df4[_0x52f135(0x87)],_0x3e7bd5[_0x52f135(0x8a)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x3e7bd5[_0x52f135(0x91)],'sqlName':_0x3e7bd5[_0x52f135(0x86)],'db':_0x40d8c2?_0x40d8c2+'\x20('+_0x3e7bd5['dbId']+')':_0x3e7bd5[_0x52f135(0x8a)]??'','description':_0x3e7bd5[_0x52f135(0x84)]??'','sqlContent':_0x3e7bd5[_0x52f135(0x93)]??''}};}};
1
+ const a56_0x3225ed=a56_0x4500;(function(_0x1043c0,_0x535319){const _0x39bb55=a56_0x4500,_0x178599=_0x1043c0();while(!![]){try{const _0x4060b9=-parseInt(_0x39bb55(0x103))/0x1*(parseInt(_0x39bb55(0xf6))/0x2)+parseInt(_0x39bb55(0xf9))/0x3+parseInt(_0x39bb55(0xff))/0x4+parseInt(_0x39bb55(0x101))/0x5+-parseInt(_0x39bb55(0x107))/0x6+parseInt(_0x39bb55(0xfd))/0x7+-parseInt(_0x39bb55(0x104))/0x8;if(_0x4060b9===_0x535319)break;else _0x178599['push'](_0x178599['shift']());}catch(_0x5d5ed2){_0x178599['push'](_0x178599['shift']());}}}(a56_0x4e6a,0xe8f68));function a56_0x4e6a(){const _0x2a47d4=['2985414KhDiNG','dbId','sqlCode','bool','5588331cWhGSo','sql','7544692iXpgsf','sqlcode','6664975gYnTLk','detail','839420pkLgFG','18051272hgEOPX','sqlContent','appCode','739044XmgMlI','verbose','4RtVukn','str','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode'];a56_0x4e6a=function(){return _0x2a47d4;};return a56_0x4e6a();}import{getSqlQueryInfo}from'../../core/api-client.js';function a56_0x4500(_0x19bede,_0x12df48){_0x19bede=_0x19bede-0xf5;const _0x4e6a56=a56_0x4e6a();let _0x45000c=_0x4e6a56[_0x19bede];return _0x45000c;}import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a56_0x3225ed(0xfe),'command':a56_0x3225ed(0x102),'description':a56_0x3225ed(0xf8),'risk':'read','flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x2f931f){const _0x33f3c7=a56_0x3225ed,_0x13d3b8=await getSqlQueryInfo(_0x2f931f[_0x33f3c7(0x106)],_0x2f931f[_0x33f3c7(0xf7)](_0x33f3c7(0x100))),_0x386767=_0x2f931f[_0x33f3c7(0xfc)](_0x33f3c7(0xf5));if(_0x386767)return{'ok':!![],'data':_0x13d3b8};const _0x33ad6e=_0x13d3b8[_0x33f3c7(0xfa)]?await getDbName(_0x2f931f[_0x33f3c7(0x106)],_0x13d3b8[_0x33f3c7(0xfa)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x13d3b8[_0x33f3c7(0xfb)],'sqlName':_0x13d3b8['sqlName'],'db':_0x33ad6e?_0x33ad6e+'\x20('+_0x13d3b8[_0x33f3c7(0xfa)]+')':_0x13d3b8['dbId']??'','description':_0x13d3b8['description']??'','sqlContent':_0x13d3b8[_0x33f3c7(0x105)]??''}};}};
@@ -1 +1 @@
1
- const a57_0x21807a=a57_0x1ce7;function a57_0x1ce7(_0x434455,_0x2e7cd2){_0x434455=_0x434455-0x117;const _0x4f612b=a57_0x4f61();let _0x1ce742=_0x4f612b[_0x434455];return _0x1ce742;}(function(_0x27a2b4,_0x302aba){const _0x3a9bd0=a57_0x1ce7,_0x15e262=_0x27a2b4();while(!![]){try{const _0x2be9e6=-parseInt(_0x3a9bd0(0x123))/0x1+parseInt(_0x3a9bd0(0x125))/0x2*(parseInt(_0x3a9bd0(0x120))/0x3)+parseInt(_0x3a9bd0(0x11f))/0x4*(parseInt(_0x3a9bd0(0x124))/0x5)+-parseInt(_0x3a9bd0(0x118))/0x6+parseInt(_0x3a9bd0(0x129))/0x7+-parseInt(_0x3a9bd0(0x126))/0x8+-parseInt(_0x3a9bd0(0x12b))/0x9*(-parseInt(_0x3a9bd0(0x128))/0xa);if(_0x2be9e6===_0x302aba)break;else _0x15e262['push'](_0x15e262['shift']());}catch(_0x367447){_0x15e262['push'](_0x15e262['shift']());}}}(a57_0x4f61,0xe7681));import{executeSdkSql}from'../../core/sdk-client.js';function a57_0x4f61(){const _0x8726d1=['sqlcode','execResult','isArray','\x20row(s)\x20in\x20','3001476UBtxUg','111009PMIpTS','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','length','1754582IRgxSY','5inyFjC','26idVSNp','12960584LjbZug','execSuccess','150WlECUj','4312917SfKKET','sql','2363571jlESJj','read','SQL\x20execution\x20failed','8785968BOVqgG','now','Returned\x20'];a57_0x4f61=function(){return _0x8726d1;};return a57_0x4f61();}import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a57_0x21807a(0x12a),'command':'exec','description':a57_0x21807a(0x121),'risk':a57_0x21807a(0x12c),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x123daf){const _0x53b720=a57_0x21807a,_0x1475b2=parseJsonParams(_0x123daf['str']('params')),_0x457870=Date[_0x53b720(0x119)](),_0x2a60b5=await executeSdkSql(_0x123daf['str'](_0x53b720(0x11b)),_0x1475b2),_0x5c7fe7=Date[_0x53b720(0x119)]()-_0x457870,_0x596035=_0x2a60b5?.[_0x53b720(0x11c)]??_0x2a60b5,_0x58f9a3=_0x2a60b5?.[_0x53b720(0x127)]??!![];if(!_0x58f9a3)return{'ok':![],'data':{'error':_0x2a60b5?.['execError']||_0x53b720(0x117),'elapsed':_0x5c7fe7},'message':_0x53b720(0x117)};const _0x5c7359=Array[_0x53b720(0x11d)](_0x596035)?_0x596035:[];return{'ok':!![],'data':{'rows':_0x5c7359,'rowCount':_0x5c7359['length'],'elapsed':_0x5c7fe7},'message':_0x53b720(0x11a)+_0x5c7359[_0x53b720(0x122)]+_0x53b720(0x11e)+_0x5c7fe7+'ms'};}};
1
+ const a57_0x2f1a28=a57_0x2858;(function(_0x2feee8,_0x269132){const _0xa574c8=a57_0x2858,_0x1d33dc=_0x2feee8();while(!![]){try{const _0x1dea1d=-parseInt(_0xa574c8(0x1e8))/0x1+parseInt(_0xa574c8(0x1e7))/0x2+parseInt(_0xa574c8(0x1ea))/0x3+parseInt(_0xa574c8(0x1f7))/0x4*(-parseInt(_0xa574c8(0x1f5))/0x5)+parseInt(_0xa574c8(0x1ee))/0x6+-parseInt(_0xa574c8(0x1f4))/0x7+-parseInt(_0xa574c8(0x1ec))/0x8;if(_0x1dea1d===_0x269132)break;else _0x1d33dc['push'](_0x1d33dc['shift']());}catch(_0x48cfe7){_0x1d33dc['push'](_0x1d33dc['shift']());}}}(a57_0x1752,0x3e84d));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a57_0x2858(_0x44ad68,_0x5366b9){_0x44ad68=_0x44ad68-0x1e6;const _0x175203=a57_0x1752();let _0x2858c8=_0x175203[_0x44ad68];return _0x2858c8;}import{parseJsonParams}from'../../utils/params.js';function a57_0x1752(){const _0x1f7e4f=['770648pMYwZz','params','1967808BWkiJH','execError','now','length','exec','\x20row(s)\x20in\x20','271096BpUkDn','1062910kfYiSj','isArray','8dlEjkJ','SQL\x20execution\x20failed','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','read','799780FYlfSI','145977BMJYbE','sql','703257EITYNE','str'];a57_0x1752=function(){return _0x1f7e4f;};return a57_0x1752();}export const sqlExec={'service':a57_0x2f1a28(0x1e9),'command':a57_0x2f1a28(0x1f2),'description':a57_0x2f1a28(0x1f9),'risk':a57_0x2f1a28(0x1e6),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x1d7bdd){const _0x572ca8=a57_0x2f1a28,_0x4ded44=parseJsonParams(_0x1d7bdd[_0x572ca8(0x1eb)](_0x572ca8(0x1ed))),_0x28bb5f=Date[_0x572ca8(0x1f0)](),_0xa88be2=await executeSdkSql(_0x1d7bdd[_0x572ca8(0x1eb)]('sqlcode'),_0x4ded44),_0x407486=Date[_0x572ca8(0x1f0)]()-_0x28bb5f,_0x198a00=_0xa88be2?.['execResult']??_0xa88be2,_0x12eb83=_0xa88be2?.['execSuccess']??!![];if(!_0x12eb83)return{'ok':![],'data':{'error':_0xa88be2?.[_0x572ca8(0x1ef)]||_0x572ca8(0x1f8),'elapsed':_0x407486},'message':_0x572ca8(0x1f8)};const _0x11cbb1=Array[_0x572ca8(0x1f6)](_0x198a00)?_0x198a00:[];return{'ok':!![],'data':{'rows':_0x11cbb1,'rowCount':_0x11cbb1['length'],'elapsed':_0x407486},'message':'Returned\x20'+_0x11cbb1[_0x572ca8(0x1f1)]+_0x572ca8(0x1f3)+_0x407486+'ms'};}};
@@ -1 +1 @@
1
- function a58_0x3afc(_0x6760f3,_0x44cc57){_0x6760f3=_0x6760f3-0x10e;const _0x574a89=a58_0x574a();let _0x3afce9=_0x574a89[_0x6760f3];return _0x3afce9;}(function(_0xda3ce3,_0x2fd764){const _0x46eccb=a58_0x3afc,_0x2d03d5=_0xda3ce3();while(!![]){try{const _0x5bbbc4=parseInt(_0x46eccb(0x115))/0x1+-parseInt(_0x46eccb(0x117))/0x2*(-parseInt(_0x46eccb(0x112))/0x3)+-parseInt(_0x46eccb(0x118))/0x4+parseInt(_0x46eccb(0x10f))/0x5+-parseInt(_0x46eccb(0x110))/0x6*(parseInt(_0x46eccb(0x10e))/0x7)+-parseInt(_0x46eccb(0x113))/0x8*(-parseInt(_0x46eccb(0x116))/0x9)+-parseInt(_0x46eccb(0x111))/0xa*(parseInt(_0x46eccb(0x114))/0xb);if(_0x5bbbc4===_0x2fd764)break;else _0x2d03d5['push'](_0x2d03d5['shift']());}catch(_0x3e027c){_0x2d03d5['push'](_0x2d03d5['shift']());}}}(a58_0x574a,0x56f32));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];function a58_0x574a(){const _0x43501b=['3690467UCMluQ','602529TkNSyj','63207qIDGpm','22888AttuLx','1766484UIMRla','13006WyVUft','2324780dLVaWl','1434tvBmNX','20ITVMsx','78QvtQVZ','624pdzljn'];a58_0x574a=function(){return _0x43501b;};return a58_0x574a();}
1
+ function a58_0x1d09(_0x2d67eb,_0x507526){_0x2d67eb=_0x2d67eb-0xf0;const _0x1005c3=a58_0x1005();let _0x1d0943=_0x1005c3[_0x2d67eb];return _0x1d0943;}(function(_0x26b693,_0x526a6e){const _0x2caf8e=a58_0x1d09,_0x39fe4b=_0x26b693();while(!![]){try{const _0x163d68=parseInt(_0x2caf8e(0xf4))/0x1+parseInt(_0x2caf8e(0xf6))/0x2+-parseInt(_0x2caf8e(0xf2))/0x3*(parseInt(_0x2caf8e(0xf0))/0x4)+parseInt(_0x2caf8e(0xf7))/0x5*(-parseInt(_0x2caf8e(0xf3))/0x6)+-parseInt(_0x2caf8e(0xf1))/0x7*(-parseInt(_0x2caf8e(0xf5))/0x8)+-parseInt(_0x2caf8e(0xf9))/0x9+parseInt(_0x2caf8e(0xf8))/0xa;if(_0x163d68===_0x526a6e)break;else _0x39fe4b['push'](_0x39fe4b['shift']());}catch(_0x2c70fe){_0x39fe4b['push'](_0x39fe4b['shift']());}}}(a58_0x1005,0x24552));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];function a58_0x1005(){const _0x7eba7e=['133ePgswO','3nwUnfl','32478ghoGFp','12018Oucosx','125152gYFHjj','66222WHfPfI','195hkouJx','2486640BMNjKr','1915173AntNzT','73228WNfheG'];a58_0x1005=function(){return _0x7eba7e;};return a58_0x1005();}
@@ -1 +1 @@
1
- const a59_0x34e122=a59_0x4bf6;(function(_0x119075,_0x2173f7){const _0x7b06d4=a59_0x4bf6,_0x4b0d15=_0x119075();while(!![]){try{const _0x1701e7=-parseInt(_0x7b06d4(0xf2))/0x1*(-parseInt(_0x7b06d4(0x123))/0x2)+parseInt(_0x7b06d4(0x13a))/0x3*(-parseInt(_0x7b06d4(0x10b))/0x4)+-parseInt(_0x7b06d4(0x11a))/0x5+-parseInt(_0x7b06d4(0xf5))/0x6+-parseInt(_0x7b06d4(0x103))/0x7*(-parseInt(_0x7b06d4(0x10e))/0x8)+parseInt(_0x7b06d4(0x102))/0x9*(parseInt(_0x7b06d4(0x112))/0xa)+-parseInt(_0x7b06d4(0x132))/0xb;if(_0x1701e7===_0x2173f7)break;else _0x4b0d15['push'](_0x4b0d15['shift']());}catch(_0x545876){_0x4b0d15['push'](_0x4b0d15['shift']());}}}(a59_0xacee,0xe155a));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a59_0x4bf6(_0x495265,_0x2c65e3){_0x495265=_0x495265-0xf1;const _0xaceeae=a59_0xacee();let _0x4bf66d=_0xaceeae[_0x495265];return _0x4bf66d;}import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':a59_0x34e122(0x117),'type':a59_0x34e122(0x100),'description':a59_0x34e122(0x133),'default':![]},{'name':a59_0x34e122(0xf4),'type':a59_0x34e122(0x100),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':a59_0x34e122(0x114),'type':a59_0x34e122(0x137),'description':a59_0x34e122(0x13d)},{'name':'no-skills','type':'boolean','description':a59_0x34e122(0x107),'default':![]},{'name':a59_0x34e122(0x109),'type':a59_0x34e122(0x100),'description':a59_0x34e122(0x131),'default':!![],'hidden':!![]}];function parseSemver(_0x4f2b95){const _0x477a77=a59_0x34e122,_0x3cf82c=_0x4f2b95[_0x477a77(0x136)]()[_0x477a77(0x13f)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x3cf82c)return null;return{'major':Number(_0x3cf82c[0x1]),'minor':Number(_0x3cf82c[0x2]),'patch':Number(_0x3cf82c[0x3]),'prerelease':_0x3cf82c[0x4]};}function a59_0xacee(){const _0x35cf5e=['message','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','2199513gmyqAa','fromEntries','Version\x20comparison\x20failed.','Install\x20a\x20specific\x20CLI\x20version','status','match','source','json','1486BMBnAi','Updating\x20','beta','838314xprRbd','unknown','patch','Unable\x20to\x20resolve\x20','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','pipe','run','log','args','Current\x20version:\x20','cwd','boolean','nonInteractive','18558KxQfYr','88613wtKaoZ','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','timeout','minor','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','skipped','skills','/-/package/','4rIqwoF','Updated\x20to\x20v','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','976GbQhTd','error','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','filter','3110fDsngO','warn','version','npm','length','latest','bool','validation','2885535AZxsQs','/dist-tags','install','Checking\x20npm\x20dist-tags...','Update\x20','write','Already\x20on\x20requested\x20version\x20(v','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','2238wIKkjr','inherit','flag','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','Checking\x20CLI\x20Built-in\x20Skill...','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','\x20version\x20from\x20npm.','toString','prerelease','\x20CLI\x20from\x20npm','stdout','major','stderr','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','16231017hkzlEY','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','Invalid\x20version:\x20','=1).','trim','string'];a59_0xacee=function(){return _0x35cf5e;};return a59_0xacee();}function compareSemver(_0xf73326,_0x439299){const _0x54efc9=a59_0x34e122,_0x25cef9=parseSemver(_0xf73326),_0x131ba4=parseSemver(_0x439299);if(!_0x25cef9||!_0x131ba4)throw CliErrors[_0x54efc9(0x119)](_0x54efc9(0x13c),_0x54efc9(0x129));for(const _0x1ed689 of[_0x54efc9(0x12f),_0x54efc9(0x106),_0x54efc9(0xf7)]){if(_0x25cef9[_0x1ed689]<_0x131ba4[_0x1ed689])return-0x1;if(_0x25cef9[_0x1ed689]>_0x131ba4[_0x1ed689])return 0x1;}if(!_0x25cef9[_0x54efc9(0x12c)]&&!_0x131ba4[_0x54efc9(0x12c)])return 0x0;if(!_0x25cef9['prerelease'])return 0x1;if(!_0x131ba4[_0x54efc9(0x12c)])return-0x1;if(_0x25cef9[_0x54efc9(0x12c)]===_0x131ba4[_0x54efc9(0x12c)])return 0x0;return _0x25cef9[_0x54efc9(0x12c)]<_0x131ba4[_0x54efc9(0x12c)]?-0x1:0x1;}function getRequestedVersion(_0x445344){const _0x10006e=a59_0x34e122,_0x5bfb89=_0x445344['str'](_0x10006e(0x114))[_0x10006e(0x136)]();if(_0x5bfb89)return _0x5bfb89;return String(_0x445344[_0x10006e(0xfd)]?.[0x0]??'')[_0x10006e(0x136)]();}function shouldSkipCliBuiltInSkill(_0x9d01d8){const _0x329e1d=a59_0x34e122;return _0x9d01d8['bool']('no-skills')||_0x9d01d8[_0x329e1d(0x125)](_0x329e1d(0x109))===![];}async function validateUpdateFlags(_0x4142fe){const _0x2e7b5d=a59_0x34e122,_0x37a4e4=getRequestedVersion(_0x4142fe),_0x79aa16=[_0x4142fe[_0x2e7b5d(0x118)](_0x2e7b5d(0x117))?_0x2e7b5d(0x117):'',_0x4142fe['bool'](_0x2e7b5d(0xf4))?'beta':'',_0x37a4e4?'version':''][_0x2e7b5d(0x111)](Boolean);if(_0x79aa16[_0x2e7b5d(0x116)]>0x1)throw CliErrors[_0x2e7b5d(0x119)](_0x2e7b5d(0x104),_0x2e7b5d(0x139));if(_0x37a4e4&&!parseSemver(_0x37a4e4))throw CliErrors[_0x2e7b5d(0x119)](_0x2e7b5d(0x134)+_0x37a4e4,_0x2e7b5d(0x126));}async function fetchNpmDistTags(){const _0xdfc378=a59_0x34e122;try{const _0x2d3919=NPM_REGISTRY_BASE_URL+_0xdfc378(0x10a)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0xdfc378(0x11b),_0x312b34=await fetch(_0x2d3919,{'signal':AbortSignal[_0xdfc378(0x105)](0x2710)});if(!_0x312b34['ok'])return null;const _0x354806=await _0x312b34[_0xdfc378(0xf1)]();if(!_0x354806||typeof _0x354806!=='object')return null;return Object[_0xdfc378(0x13b)](Object['entries'](_0x354806)[_0xdfc378(0x111)](([,_0x5ecaba])=>typeof _0x5ecaba===_0xdfc378(0x137)&&_0x5ecaba[_0xdfc378(0x136)]())['map'](([_0x4947ed,_0x50c1bd])=>[_0x4947ed,String(_0x50c1bd)[_0xdfc378(0x136)]()]));}catch{return null;}}async function resolveTargetVersion(_0x4de612){const _0x23e5e8=a59_0x34e122,_0x3caede=getRequestedVersion(_0x4de612);if(_0x3caede)return{'version':_0x3caede,'source':'version'};const _0x12a133=_0x4de612[_0x23e5e8(0x118)](_0x23e5e8(0xf4))?_0x23e5e8(0xf4):_0x23e5e8(0x117),_0x3d602b=await fetchNpmDistTags(),_0x18962c=_0x3d602b?.[_0x12a133];if(!_0x18962c)return null;return{'version':_0x18962c,'source':_0x12a133};}function shouldInstallTarget(_0x3491fb,_0x174bfe){const _0x48e387=a59_0x34e122,_0x3d7be3=compareSemver(_0x3491fb,_0x174bfe[_0x48e387(0x114)]);if(_0x174bfe[_0x48e387(0x140)]===_0x48e387(0x114))return _0x3d7be3!==0x0;return _0x3d7be3<0x0;}function installCliPackage(_0x3ad569,_0x31205c){const _0x2c1645=a59_0x34e122,_0x20a58d=resolveNpmBin(_0x2c1645(0x115)),_0x587a0a=[_0x2c1645(0x11c),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3ad569];console[_0x2c1645(0xfc)]('*\x20'+[_0x20a58d,..._0x587a0a]['join']('\x20'));const _0x5ca439=spawnSync(_0x20a58d,_0x587a0a,{'cwd':process[_0x2c1645(0xff)](),'stdio':_0x31205c?_0x2c1645(0xfa):_0x2c1645(0x124),'env':process.env,'shell':![]});if(_0x5ca439['status']===0x0)return{'ok':!![]};let _0x3bf5f0=_0x5ca439[_0x2c1645(0x10f)]?.[_0x2c1645(0x138)]||'exit\x20'+(_0x5ca439[_0x2c1645(0x13e)]??_0x2c1645(0xf6));if(_0x31205c){const _0x57820b=_0x5ca439['stderr']?_0x5ca439[_0x2c1645(0x130)]['toString']()[_0x2c1645(0x136)]():'',_0x34a52b=_0x5ca439[_0x2c1645(0x12e)]?_0x5ca439[_0x2c1645(0x12e)][_0x2c1645(0x12b)]()[_0x2c1645(0x136)]():'';if(_0x57820b)_0x3bf5f0=_0x57820b;else{if(_0x34a52b)_0x3bf5f0=_0x34a52b;}}return{'ok':![],'error':_0x3bf5f0};}async function installCliBuiltInSkill(_0x3ac546){const _0xc0b614=a59_0x34e122;console[_0xc0b614(0xfc)](_0xc0b614(0x128));const _0x11ad10=runNpxSkillsAddGlobal(process[_0xc0b614(0xff)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x3ac546?_0xc0b614(0xfa):_0xc0b614(0x124)});if(_0x11ad10[_0xc0b614(0x108)]){console[_0xc0b614(0xfc)]('\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20('+LOVRABET_SKIP_NPX_SKILLS_ENV+_0xc0b614(0x135));return;}if(_0x11ad10['ok']){console[_0xc0b614(0xfc)](_0xc0b614(0x127));return;}console[_0xc0b614(0x113)]('\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20'+(_0x11ad10[_0xc0b614(0x10f)]||'unknown')),console['log'](_0xc0b614(0xf9));}async function execute(_0x2fd3cf){const _0x425c3f=a59_0x34e122;await validateUpdateFlags(_0x2fd3cf);const _0x15aff3=getCliVersion();console[_0x425c3f(0xfc)](_0x425c3f(0xfe)+_0x15aff3),console['log'](_0x425c3f(0x11d));const _0x5b513f=await resolveTargetVersion(_0x2fd3cf);if(!_0x5b513f){const _0x3cee88=_0x2fd3cf[_0x425c3f(0x118)](_0x425c3f(0xf4))?_0x425c3f(0xf4):'latest',_0x9ad4cb=_0x425c3f(0xf8)+_0x3cee88+_0x425c3f(0x12a);return console[_0x425c3f(0x113)](_0x9ad4cb),console['log'](_0x425c3f(0x122)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3cee88),{'ok':![]};}if(!shouldInstallTarget(_0x15aff3,_0x5b513f)){const _0x125e88=_0x5b513f[_0x425c3f(0x140)]===_0x425c3f(0x114)?_0x425c3f(0x120)+_0x5b513f[_0x425c3f(0x114)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x5b513f[_0x425c3f(0x114)]+').';return console[_0x425c3f(0xfc)](_0x125e88),shouldSkipCliBuiltInSkill(_0x2fd3cf)?console[_0x425c3f(0xfc)](_0x425c3f(0x110)):await installCliBuiltInSkill(_0x2fd3cf[_0x425c3f(0x101)]),{'ok':!![]};}console['log'](_0x425c3f(0xf3)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x15aff3+'\x20->\x20'+_0x5b513f['version']);const _0x5a793a=installCliPackage(_0x5b513f[_0x425c3f(0x114)],_0x2fd3cf[_0x425c3f(0x101)]);if(!_0x5a793a['ok']){const _0x1b8881='Update\x20failed:\x20'+(_0x5a793a[_0x425c3f(0x10f)]||_0x425c3f(0xf6));return console[_0x425c3f(0x10f)](_0x1b8881),console[_0x425c3f(0xfc)](_0x425c3f(0x10d)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x5b513f['version']),{'ok':![]};}return console[_0x425c3f(0xfc)](_0x425c3f(0x10c)+_0x5b513f[_0x425c3f(0x114)]+'.'),console[_0x425c3f(0xfc)](_0x425c3f(0x121)),shouldSkipCliBuiltInSkill(_0x2fd3cf)?console[_0x425c3f(0xfc)](_0x425c3f(0x110)):await installCliBuiltInSkill(_0x2fd3cf[_0x425c3f(0x101)]),{'ok':!![]};}export const updateDefinition={'service':'update','command':a59_0x34e122(0xfb),'description':a59_0x34e122(0x11e)+CLI_BIN_NAME+a59_0x34e122(0x12d),'risk':a59_0x34e122(0x11f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ function a59_0x1c00(_0x191317,_0x19123f){_0x191317=_0x191317-0x16e;const _0x2b8c5d=a59_0x2b8c();let _0x1c0087=_0x2b8c5d[_0x191317];return _0x1c0087;}const a59_0x15a9c8=a59_0x1c00;(function(_0xfa8498,_0x5c518e){const _0x3dec27=a59_0x1c00,_0x10dc91=_0xfa8498();while(!![]){try{const _0x3a32c8=-parseInt(_0x3dec27(0x19e))/0x1*(parseInt(_0x3dec27(0x1b4))/0x2)+parseInt(_0x3dec27(0x195))/0x3+-parseInt(_0x3dec27(0x199))/0x4+-parseInt(_0x3dec27(0x174))/0x5*(-parseInt(_0x3dec27(0x193))/0x6)+parseInt(_0x3dec27(0x198))/0x7+parseInt(_0x3dec27(0x181))/0x8*(parseInt(_0x3dec27(0x1a6))/0x9)+-parseInt(_0x3dec27(0x1a2))/0xa;if(_0x3a32c8===_0x5c518e)break;else _0x10dc91['push'](_0x10dc91['shift']());}catch(_0x2167ed){_0x10dc91['push'](_0x10dc91['shift']());}}}(a59_0x2b8c,0xd0290));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';function a59_0x2b8c(){const _0x1b0da1=['minor','bool','map','length','patch','fromEntries','warn','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Updated\x20to\x20v','unknown','2134655cIJKkm','no-skills','boolean','Checking\x20npm\x20dist-tags...','Updating\x20','install','trim','Update\x20','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','message','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','Unable\x20to\x20resolve\x20','update','8504vwWxcb','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','cwd','=1).','args','stderr','npm','exit\x20','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','filter','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','error','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','version','join','skills','object','latest','12FYzsPj','/dist-tags','2247408rqxDvt','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','entries','4429782bGWywk','3014780rVhWSa','log','Checking\x20CLI\x20Built-in\x20Skill...','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','Already\x20on\x20requested\x20version\x20(v','1juzIzu','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','pipe','nonInteractive','3904820cGocrh','json','write','/-/package/','2682LXdreL','Install\x20a\x20specific\x20CLI\x20version','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','beta','string','\x20->\x20','status','prerelease','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','stdout','source','inherit','Invalid\x20version:\x20','1111594iCSrhs','Current\x20version:\x20','\x20version\x20from\x20npm.','validation'];a59_0x2b8c=function(){return _0x1b0da1;};return a59_0x2b8c();}import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':a59_0x15a9c8(0x192),'type':a59_0x15a9c8(0x176),'description':a59_0x15a9c8(0x19c),'default':![]},{'name':'beta','type':a59_0x15a9c8(0x176),'description':a59_0x15a9c8(0x189),'default':![]},{'name':a59_0x15a9c8(0x18e),'type':a59_0x15a9c8(0x1aa),'description':a59_0x15a9c8(0x1a7)},{'name':a59_0x15a9c8(0x175),'type':a59_0x15a9c8(0x176),'description':a59_0x15a9c8(0x182),'default':![]},{'name':a59_0x15a9c8(0x190),'type':a59_0x15a9c8(0x176),'description':a59_0x15a9c8(0x18d),'default':!![],'hidden':!![]}];function parseSemver(_0x51f5f2){const _0x26f75c=_0x51f5f2['trim']()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x26f75c)return null;return{'major':Number(_0x26f75c[0x1]),'minor':Number(_0x26f75c[0x2]),'patch':Number(_0x26f75c[0x3]),'prerelease':_0x26f75c[0x4]};}function compareSemver(_0x581ab7,_0x3a7b31){const _0x3abdeb=a59_0x15a9c8,_0x4ff6d9=parseSemver(_0x581ab7),_0x4b1290=parseSemver(_0x3a7b31);if(!_0x4ff6d9||!_0x4b1290)throw CliErrors['validation']('Version\x20comparison\x20failed.',_0x3abdeb(0x1ae));for(const _0x3213fd of['major',_0x3abdeb(0x1b8),_0x3abdeb(0x16e)]){if(_0x4ff6d9[_0x3213fd]<_0x4b1290[_0x3213fd])return-0x1;if(_0x4ff6d9[_0x3213fd]>_0x4b1290[_0x3213fd])return 0x1;}if(!_0x4ff6d9['prerelease']&&!_0x4b1290[_0x3abdeb(0x1ad)])return 0x0;if(!_0x4ff6d9[_0x3abdeb(0x1ad)])return 0x1;if(!_0x4b1290['prerelease'])return-0x1;if(_0x4ff6d9[_0x3abdeb(0x1ad)]===_0x4b1290[_0x3abdeb(0x1ad)])return 0x0;return _0x4ff6d9[_0x3abdeb(0x1ad)]<_0x4b1290[_0x3abdeb(0x1ad)]?-0x1:0x1;}function getRequestedVersion(_0x37f266){const _0x2e5eac=a59_0x15a9c8,_0x8c34fe=_0x37f266['str']('version')['trim']();if(_0x8c34fe)return _0x8c34fe;return String(_0x37f266[_0x2e5eac(0x185)]?.[0x0]??'')[_0x2e5eac(0x17a)]();}function shouldSkipCliBuiltInSkill(_0x43beff){const _0x5f3790=a59_0x15a9c8;return _0x43beff[_0x5f3790(0x1b9)](_0x5f3790(0x175))||_0x43beff['flag']('skills')===![];}async function validateUpdateFlags(_0x1caa05){const _0x150333=a59_0x15a9c8,_0x58a437=getRequestedVersion(_0x1caa05),_0x5b1bec=[_0x1caa05[_0x150333(0x1b9)](_0x150333(0x192))?'latest':'',_0x1caa05['bool']('beta')?_0x150333(0x1a9):'',_0x58a437?'version':''][_0x150333(0x18a)](Boolean);if(_0x5b1bec[_0x150333(0x1bb)]>0x1)throw CliErrors[_0x150333(0x1b7)](_0x150333(0x1a8),'Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.');if(_0x58a437&&!parseSemver(_0x58a437))throw CliErrors[_0x150333(0x1b7)](_0x150333(0x1b3)+_0x58a437,_0x150333(0x171));}async function fetchNpmDistTags(){const _0x169b92=a59_0x15a9c8;try{const _0x2e462b=NPM_REGISTRY_BASE_URL+_0x169b92(0x1a5)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x169b92(0x194),_0x1ccb60=await fetch(_0x2e462b,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x1ccb60['ok'])return null;const _0x3f0fa4=await _0x1ccb60[_0x169b92(0x1a3)]();if(!_0x3f0fa4||typeof _0x3f0fa4!==_0x169b92(0x191))return null;return Object[_0x169b92(0x16f)](Object[_0x169b92(0x197)](_0x3f0fa4)[_0x169b92(0x18a)](([,_0x17bd39])=>typeof _0x17bd39===_0x169b92(0x1aa)&&_0x17bd39['trim']())[_0x169b92(0x1ba)](([_0x23b14a,_0x1d2ad9])=>[_0x23b14a,String(_0x1d2ad9)[_0x169b92(0x17a)]()]));}catch{return null;}}async function resolveTargetVersion(_0xc5b301){const _0x15e457=a59_0x15a9c8,_0x8a55c5=getRequestedVersion(_0xc5b301);if(_0x8a55c5)return{'version':_0x8a55c5,'source':_0x15e457(0x18e)};const _0xb95d97=_0xc5b301[_0x15e457(0x1b9)]('beta')?'beta':_0x15e457(0x192),_0x421324=await fetchNpmDistTags(),_0x153304=_0x421324?.[_0xb95d97];if(!_0x153304)return null;return{'version':_0x153304,'source':_0xb95d97};}function shouldInstallTarget(_0xd6c2cc,_0xb621a4){const _0x21df48=a59_0x15a9c8,_0x3f6ad7=compareSemver(_0xd6c2cc,_0xb621a4[_0x21df48(0x18e)]);if(_0xb621a4[_0x21df48(0x1b1)]===_0x21df48(0x18e))return _0x3f6ad7!==0x0;return _0x3f6ad7<0x0;}function installCliPackage(_0x343c56,_0x3de1bc){const _0x549fa1=a59_0x15a9c8,_0x4893af=resolveNpmBin(_0x549fa1(0x187)),_0x1db48b=[_0x549fa1(0x179),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x343c56];console[_0x549fa1(0x19a)]('*\x20'+[_0x4893af,..._0x1db48b][_0x549fa1(0x18f)]('\x20'));const _0x52f007=spawnSync(_0x4893af,_0x1db48b,{'cwd':process[_0x549fa1(0x183)](),'stdio':_0x3de1bc?_0x549fa1(0x1a0):_0x549fa1(0x1b2),'env':process.env,'shell':![]});if(_0x52f007[_0x549fa1(0x1ac)]===0x0)return{'ok':!![]};let _0x92302b=_0x52f007[_0x549fa1(0x18c)]?.[_0x549fa1(0x17d)]||_0x549fa1(0x188)+(_0x52f007[_0x549fa1(0x1ac)]??_0x549fa1(0x173));if(_0x3de1bc){const _0x5233dd=_0x52f007[_0x549fa1(0x186)]?_0x52f007[_0x549fa1(0x186)]['toString']()[_0x549fa1(0x17a)]():'',_0xbbc6c2=_0x52f007[_0x549fa1(0x1b0)]?_0x52f007[_0x549fa1(0x1b0)]['toString']()[_0x549fa1(0x17a)]():'';if(_0x5233dd)_0x92302b=_0x5233dd;else{if(_0xbbc6c2)_0x92302b=_0xbbc6c2;}}return{'ok':![],'error':_0x92302b};}async function installCliBuiltInSkill(_0x4fbe64){const _0x1ee097=a59_0x15a9c8;console['log'](_0x1ee097(0x19b));const _0x552914=runNpxSkillsAddGlobal(process['cwd'](),LOVRABET_SKILL_SOURCE,{'stdio':_0x4fbe64?_0x1ee097(0x1a0):_0x1ee097(0x1b2)});if(_0x552914['skipped']){console[_0x1ee097(0x19a)](_0x1ee097(0x19f)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x1ee097(0x184));return;}if(_0x552914['ok']){console['log'](_0x1ee097(0x196));return;}console['warn'](_0x1ee097(0x17c)+(_0x552914[_0x1ee097(0x18c)]||_0x1ee097(0x173))),console[_0x1ee097(0x19a)](_0x1ee097(0x17e));}async function execute(_0x5dd36b){const _0x1d0c5a=a59_0x15a9c8;await validateUpdateFlags(_0x5dd36b);const _0x1d4d81=getCliVersion();console['log'](_0x1d0c5a(0x1b5)+_0x1d4d81),console[_0x1d0c5a(0x19a)](_0x1d0c5a(0x177));const _0x3bcd63=await resolveTargetVersion(_0x5dd36b);if(!_0x3bcd63){const _0x5da7f2=_0x5dd36b[_0x1d0c5a(0x1b9)](_0x1d0c5a(0x1a9))?_0x1d0c5a(0x1a9):_0x1d0c5a(0x192),_0x3ef00c=_0x1d0c5a(0x17f)+_0x5da7f2+_0x1d0c5a(0x1b6);return console[_0x1d0c5a(0x170)](_0x3ef00c),console[_0x1d0c5a(0x19a)](_0x1d0c5a(0x1af)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x5da7f2),{'ok':![]};}if(!shouldInstallTarget(_0x1d4d81,_0x3bcd63)){const _0x1733ba=_0x3bcd63[_0x1d0c5a(0x1b1)]===_0x1d0c5a(0x18e)?_0x1d0c5a(0x19d)+_0x3bcd63[_0x1d0c5a(0x18e)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x3bcd63[_0x1d0c5a(0x18e)]+').';return console[_0x1d0c5a(0x19a)](_0x1733ba),shouldSkipCliBuiltInSkill(_0x5dd36b)?console[_0x1d0c5a(0x19a)]('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).'):await installCliBuiltInSkill(_0x5dd36b[_0x1d0c5a(0x1a1)]),{'ok':!![]};}console[_0x1d0c5a(0x19a)](_0x1d0c5a(0x178)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x1d4d81+_0x1d0c5a(0x1ab)+_0x3bcd63[_0x1d0c5a(0x18e)]);const _0x25f3ed=installCliPackage(_0x3bcd63[_0x1d0c5a(0x18e)],_0x5dd36b[_0x1d0c5a(0x1a1)]);if(!_0x25f3ed['ok']){const _0x401714='Update\x20failed:\x20'+(_0x25f3ed[_0x1d0c5a(0x18c)]||_0x1d0c5a(0x173));return console[_0x1d0c5a(0x18c)](_0x401714),console[_0x1d0c5a(0x19a)](_0x1d0c5a(0x18b)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3bcd63[_0x1d0c5a(0x18e)]),{'ok':![]};}return console['log'](_0x1d0c5a(0x172)+_0x3bcd63['version']+'.'),console[_0x1d0c5a(0x19a)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'),shouldSkipCliBuiltInSkill(_0x5dd36b)?console[_0x1d0c5a(0x19a)]('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).'):await installCliBuiltInSkill(_0x5dd36b[_0x1d0c5a(0x1a1)]),{'ok':!![]};}export const updateDefinition={'service':a59_0x15a9c8(0x180),'command':'run','description':a59_0x15a9c8(0x17b)+CLI_BIN_NAME+'\x20CLI\x20from\x20npm','risk':a59_0x15a9c8(0x1a4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- const a60_0x105407=a60_0x2c97;(function(_0xe15bee,_0x50cf45){const _0x515b42=a60_0x2c97,_0x4dfa90=_0xe15bee();while(!![]){try{const _0x55493b=-parseInt(_0x515b42(0x203))/0x1+-parseInt(_0x515b42(0x1d3))/0x2+parseInt(_0x515b42(0x201))/0x3+-parseInt(_0x515b42(0x1f7))/0x4*(-parseInt(_0x515b42(0x1dd))/0x5)+parseInt(_0x515b42(0x1da))/0x6*(parseInt(_0x515b42(0x1f0))/0x7)+parseInt(_0x515b42(0x1ee))/0x8+-parseInt(_0x515b42(0x1d8))/0x9;if(_0x55493b===_0x50cf45)break;else _0x4dfa90['push'](_0x4dfa90['shift']());}catch(_0x4d5ac3){_0x4dfa90['push'](_0x4dfa90['shift']());}}}(a60_0x126e,0x57983));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':a60_0x105407(0x1df),'description':a60_0x105407(0x1e5)},{'name':a60_0x105407(0x1e6),'type':'string','description':a60_0x105407(0x1d2)},{'name':'env','type':a60_0x105407(0x1df),'description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]},{'name':a60_0x105407(0x1f1),'type':a60_0x105407(0x1ef),'description':'Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','default':![]}];async function executeWorkspaceUse(_0x578d03,_0x2e3ea0){const _0x1c134b=a60_0x105407,_0x254ee3=_0x578d03['str'](_0x1c134b(0x200))[_0x1c134b(0x1e3)](),_0x4f0301=_0x578d03[_0x1c134b(0x1f2)]('appcode')['trim'](),_0x1170d8=_0x578d03[_0x1c134b(0x1f2)](_0x1c134b(0x1de))[_0x1c134b(0x1e3)](),_0x434334=resolveWorkspaceEnv(_0x1170d8||_0x578d03[_0x1c134b(0x1db)]||DEFAULT_CONFIG_VALUES[_0x1c134b(0x1de)]);if(!_0x254ee3&&!_0x4f0301)throw CliErrors['validation']('Missing\x20workspace\x20app\x20selector.',_0x1c134b(0x1d5)+CLI_BIN_NAME+_0x1c134b(0x1fa)+_0x2e3ea0+_0x1c134b(0x1f9)+CLI_BIN_NAME+'\x20workspace\x20'+_0x2e3ea0+_0x1c134b(0x1fd));const _0x3b3361=_0x4f0301||await resolveRemoteAppCode({'command':_0x2e3ea0,'appName':_0x254ee3,'env':_0x434334,'accessKey':_0x578d03[_0x1c134b(0x1d9)]}),_0x1374b2=writeWorkspaceConfig({'command':_0x2e3ea0,'appName':_0x254ee3,'appcode':_0x3b3361,'env':_0x434334,'shouldWriteEnv':!!_0x1170d8,'accessKey':_0x578d03[_0x1c134b(0x1d9)]});return{'ok':!![],'data':{'configPath':_0x1374b2,'app':_0x254ee3||null,'appcode':_0x3b3361,'env':_0x1170d8?_0x434334:null,'accessKeyWritten':![],'command':_0x1c134b(0x1dc)+_0x2e3ea0},'message':buildWorkspaceMessage(_0x1374b2,_0x254ee3,_0x3b3361,_0x1170d8?_0x434334:undefined)};}async function resolveRemoteAppCode(_0x1ce03d){const _0x19cb0c=a60_0x105407;if(!_0x1ce03d[_0x19cb0c(0x1d9)])throw CliErrors['authRequired'](_0x19cb0c(0x1d0)+CLI_BIN_NAME+_0x19cb0c(0x1fa)+_0x1ce03d[_0x19cb0c(0x202)]+'.');const {setActiveAK:_0x1c51aa}=await import(_0x19cb0c(0x1f6)),{getRemoteAppList:_0x4f54d5}=await import(_0x19cb0c(0x1fe));_0x1c51aa(_0x1ce03d[_0x19cb0c(0x1d9)]);const _0x24dbba=await _0x4f54d5({'env':_0x1ce03d[_0x19cb0c(0x1de)],'accessKey':_0x1ce03d[_0x19cb0c(0x1d9)],'noCache':![]}),_0x32ec12=findAppByName(_0x24dbba[_0x19cb0c(0x1d1)],_0x1ce03d['appName']);if(_0x32ec12&&!isRuntimeAccessibleApp(_0x32ec12))throw runtimeInaccessibleAppError(_0x32ec12,'\x22'+_0x1ce03d['appName']+'\x22');const _0x177794=_0x32ec12?.[_0x19cb0c(0x1f5)]?.[_0x19cb0c(0x1e3)]();if(_0x177794)return _0x177794;const _0xc5085c=_0x24dbba[_0x19cb0c(0x1d1)][_0x19cb0c(0x204)](_0x5ec5b9=>_0x5ec5b9[_0x19cb0c(0x1eb)])[_0x19cb0c(0x1e0)](Boolean),_0x54bd94=_0xc5085c['length']?_0x19cb0c(0x1e8)+Array[_0x19cb0c(0x1e9)](new Set(_0xc5085c))[_0x19cb0c(0x1e4)](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+_0x19cb0c(0x1d7);throw CliErrors[_0x19cb0c(0x1e1)]('App\x20\x22'+_0x1ce03d[_0x19cb0c(0x1eb)]+_0x19cb0c(0x1d4),_0x54bd94);}function writeWorkspaceConfig(_0x557b09){const _0x2067be=a60_0x105407,_0x1e3d83=resolveWriteConfigPath(_0x2067be(0x1f3)),_0x3fc2b4=readConfigFile(_0x1e3d83);_0x557b09[_0x2067be(0x1ff)]&&(_0x3fc2b4['env']=_0x557b09[_0x2067be(0x1de)]);if(_0x557b09['appName']){const _0x278097=isRecord(_0x3fc2b4[_0x2067be(0x1f8)])?{..._0x3fc2b4[_0x2067be(0x1f8)]}:{},_0x5315ef=isRecord(_0x278097[_0x557b09['appName']])?_0x278097[_0x557b09['appName']]:{};_0x278097[_0x557b09[_0x2067be(0x1eb)]]={..._0x5315ef,'appcode':_0x557b09[_0x2067be(0x1e6)]},_0x3fc2b4[_0x2067be(0x1f8)]=_0x278097,_0x3fc2b4[_0x2067be(0x1fc)]=_0x557b09[_0x2067be(0x1eb)];if(_0x3fc2b4['app'])delete _0x3fc2b4[_0x2067be(0x200)];return writeAndReturn(_0x1e3d83,_0x3fc2b4);}_0x3fc2b4['appcode']=_0x557b09['appcode'];if(_0x3fc2b4['app'])delete _0x3fc2b4[_0x2067be(0x200)];return writeAndReturn(_0x1e3d83,_0x3fc2b4);}function writeAndReturn(_0x4507cb,_0xa33dec){return writeConfigFile(_0x4507cb,_0xa33dec),_0x4507cb;}function resolveWorkspaceEnv(_0x44f1dd){const _0x1fc36c=a60_0x105407;if(RUNTIME_ENV_VALUES[_0x1fc36c(0x1ec)](_0x44f1dd))return _0x44f1dd;throw CliErrors[_0x1fc36c(0x1e1)](_0x1fc36c(0x205)+_0x44f1dd+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x1fc36c(0x1e4)](',\x20'));}function buildWorkspaceMessage(_0x5942f4,_0x43c28a,_0x3f3389,_0x14fa45){const _0x2734fa=a60_0x105407,_0x4d5654=_0x43c28a?_0x43c28a+'\x20('+_0x3f3389+')':_0x3f3389,_0x399e59=_0x14fa45?_0x2734fa(0x1d6)+_0x14fa45:'';return _0x2734fa(0x1ed)+_0x5942f4+_0x2734fa(0x1e2)+_0x4d5654+_0x399e59+'\x0aAccessKey:\x20not\x20written';}function isRecord(_0x3f009d){const _0x3b3b20=a60_0x105407;return typeof _0x3f009d===_0x3b3b20(0x206)&&_0x3f009d!==null&&!Array[_0x3b3b20(0x1e7)](_0x3f009d);}function a60_0x126e(){const _0xfa55d3=['appCode','../../core/api-client.js','356pmCuMI','apps','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','\x20workspace\x20','init','defaultApp','\x20--appcode\x20<code>\x20[--env\x20daily]','../../commands/app/remote-source.js','shouldWriteEnv','app','1069341rFGeJc','command','585655RKAcZN','map','Invalid\x20env\x20\x22','object','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','items','App\x20code\x20to\x20bind\x20directly','855080pVrNMl','\x22\x20not\x20found.','Usage:\x20','\x0aEnv:\x20','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','3790278sLPPNi','accessKey','294LvXsIt','envName','workspace\x20','38615SxEeMh','env','string','filter','validation','\x0aDefault\x20app:\x20','trim','join','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','appcode','isArray','Available\x20apps:\x20','from','write','appName','includes','Workspace\x20configured.\x0aConfig\x20file:\x20','3097368blmliJ','boolean','51737QzChNE','yes','str','project','workspace'];a60_0x126e=function(){return _0xfa55d3;};return a60_0x126e();}function a60_0x2c97(_0x4d0207,_0x181e65){_0x4d0207=_0x4d0207-0x1d0;const _0x126e5a=a60_0x126e();let _0x2c97d8=_0x126e5a[_0x4d0207];return _0x2c97d8;}function makeWorkspaceCommand(_0x34b8d3){const _0x532614=a60_0x105407;return{'service':_0x532614(0x1f4),'command':_0x34b8d3,'description':_0x34b8d3===_0x532614(0x1fb)?'Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace':'Set\x20app\x20context\x20for\x20the\x20current\x20workspace','risk':_0x532614(0x1ea),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x23f2aa){return executeWorkspaceUse(_0x23f2aa,_0x34b8d3);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a60_0x105407(0x1fb)),makeWorkspaceCommand('use')];
1
+ const a60_0x2523bf=a60_0x17a6;function a60_0x17a6(_0x2e032e,_0x3c84aa){_0x2e032e=_0x2e032e-0xab;const _0x2c12fc=a60_0x2c12();let _0x17a641=_0x2c12fc[_0x2e032e];return _0x17a641;}(function(_0x556bf9,_0xd9376){const _0x2980bc=a60_0x17a6,_0x340b4a=_0x556bf9();while(!![]){try{const _0x2a37dd=parseInt(_0x2980bc(0xcf))/0x1+parseInt(_0x2980bc(0xde))/0x2+-parseInt(_0x2980bc(0xd2))/0x3*(-parseInt(_0x2980bc(0xc4))/0x4)+parseInt(_0x2980bc(0xd3))/0x5+-parseInt(_0x2980bc(0xd6))/0x6*(parseInt(_0x2980bc(0xca))/0x7)+parseInt(_0x2980bc(0xbd))/0x8+-parseInt(_0x2980bc(0xaf))/0x9;if(_0x2a37dd===_0xd9376)break;else _0x340b4a['push'](_0x340b4a['shift']());}catch(_0x385d1e){_0x340b4a['push'](_0x340b4a['shift']());}}}(a60_0x2c12,0x278dc));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':a60_0x2523bf(0xda),'type':a60_0x2523bf(0xdd),'description':a60_0x2523bf(0xae)},{'name':a60_0x2523bf(0xc2),'type':'string','description':a60_0x2523bf(0xc3)},{'name':a60_0x2523bf(0xdb),'type':a60_0x2523bf(0xdd),'description':a60_0x2523bf(0xb4),'enum':[...RUNTIME_ENV_VALUES]},{'name':'yes','type':a60_0x2523bf(0xb6),'description':a60_0x2523bf(0xb5),'default':![]}];async function executeWorkspaceUse(_0x326b59,_0x3ebb30){const _0xdb8321=a60_0x2523bf,_0x4fd53f=_0x326b59[_0xdb8321(0xb1)](_0xdb8321(0xda))[_0xdb8321(0xc0)](),_0x23149a=_0x326b59[_0xdb8321(0xb1)](_0xdb8321(0xc2))[_0xdb8321(0xc0)](),_0x2d8200=_0x326b59[_0xdb8321(0xb1)]('env')[_0xdb8321(0xc0)](),_0x3a2ac2=resolveWorkspaceEnv(_0x2d8200||_0x326b59[_0xdb8321(0xac)]||DEFAULT_CONFIG_VALUES[_0xdb8321(0xdb)]);if(!_0x4fd53f&&!_0x23149a)throw CliErrors[_0xdb8321(0xad)](_0xdb8321(0xb7),_0xdb8321(0xd5)+CLI_BIN_NAME+_0xdb8321(0xc8)+_0x3ebb30+_0xdb8321(0xd8)+CLI_BIN_NAME+_0xdb8321(0xc8)+_0x3ebb30+_0xdb8321(0xcb));const _0x4aa764=_0x23149a||await resolveRemoteAppCode({'command':_0x3ebb30,'appName':_0x4fd53f,'env':_0x3a2ac2,'accessKey':_0x326b59[_0xdb8321(0xd0)]}),_0x8fa174=writeWorkspaceConfig({'command':_0x3ebb30,'appName':_0x4fd53f,'appcode':_0x4aa764,'env':_0x3a2ac2,'shouldWriteEnv':!!_0x2d8200,'accessKey':_0x326b59[_0xdb8321(0xd0)]});return{'ok':!![],'data':{'configPath':_0x8fa174,'app':_0x4fd53f||null,'appcode':_0x4aa764,'env':_0x2d8200?_0x3a2ac2:null,'accessKeyWritten':![],'command':'workspace\x20'+_0x3ebb30},'message':buildWorkspaceMessage(_0x8fa174,_0x4fd53f,_0x4aa764,_0x2d8200?_0x3a2ac2:undefined)};}async function resolveRemoteAppCode(_0xf1c882){const _0x3edadc=a60_0x2523bf;if(!_0xf1c882[_0x3edadc(0xd0)])throw CliErrors[_0x3edadc(0xc5)](_0x3edadc(0xe2)+CLI_BIN_NAME+_0x3edadc(0xc8)+_0xf1c882[_0x3edadc(0xd1)]+'.');const {setActiveAK:_0x2bdf86}=await import('../../core/api-client.js'),{getRemoteAppList:_0x7dbf12}=await import(_0x3edadc(0xe1));_0x2bdf86(_0xf1c882[_0x3edadc(0xd0)]);const _0x49bae2=await _0x7dbf12({'env':_0xf1c882['env'],'accessKey':_0xf1c882[_0x3edadc(0xd0)],'noCache':![]}),_0x18e379=findAppByName(_0x49bae2[_0x3edadc(0xcd)],_0xf1c882[_0x3edadc(0xc7)]);if(_0x18e379&&!isRuntimeAccessibleApp(_0x18e379))throw runtimeInaccessibleAppError(_0x18e379,'\x22'+_0xf1c882['appName']+'\x22');const _0x30932f=_0x18e379?.[_0x3edadc(0xc6)]?.[_0x3edadc(0xc0)]();if(_0x30932f)return _0x30932f;const _0x528449=_0x49bae2[_0x3edadc(0xcd)][_0x3edadc(0xbb)](_0x332579=>_0x332579[_0x3edadc(0xc7)])[_0x3edadc(0xb9)](Boolean),_0xf9751=_0x528449['length']?_0x3edadc(0xb8)+Array[_0x3edadc(0xb0)](new Set(_0x528449))['join'](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+_0x3edadc(0xba);throw CliErrors[_0x3edadc(0xad)](_0x3edadc(0xce)+_0xf1c882[_0x3edadc(0xc7)]+_0x3edadc(0xd7),_0xf9751);}function writeWorkspaceConfig(_0x449076){const _0x340d52=a60_0x2523bf,_0x43e911=resolveWriteConfigPath(_0x340d52(0xdf)),_0x1e8661=readConfigFile(_0x43e911);_0x449076[_0x340d52(0xe0)]&&(_0x1e8661[_0x340d52(0xdb)]=_0x449076[_0x340d52(0xdb)]);if(_0x449076[_0x340d52(0xc7)]){const _0x181dfd=isRecord(_0x1e8661[_0x340d52(0xbf)])?{..._0x1e8661[_0x340d52(0xbf)]}:{},_0x28360e=isRecord(_0x181dfd[_0x449076[_0x340d52(0xc7)]])?_0x181dfd[_0x449076[_0x340d52(0xc7)]]:{};_0x181dfd[_0x449076['appName']]={..._0x28360e,'appcode':_0x449076[_0x340d52(0xc2)]},_0x1e8661[_0x340d52(0xbf)]=_0x181dfd,_0x1e8661[_0x340d52(0xbe)]=_0x449076['appName'];if(_0x1e8661[_0x340d52(0xda)])delete _0x1e8661[_0x340d52(0xda)];return writeAndReturn(_0x43e911,_0x1e8661);}_0x1e8661[_0x340d52(0xc2)]=_0x449076['appcode'];if(_0x1e8661['app'])delete _0x1e8661[_0x340d52(0xda)];return writeAndReturn(_0x43e911,_0x1e8661);}function writeAndReturn(_0x520bd4,_0x2976bd){return writeConfigFile(_0x520bd4,_0x2976bd),_0x520bd4;}function resolveWorkspaceEnv(_0x4d4658){const _0x27e539=a60_0x2523bf;if(RUNTIME_ENV_VALUES[_0x27e539(0xbc)](_0x4d4658))return _0x4d4658;throw CliErrors['validation'](_0x27e539(0xe3)+_0x4d4658+_0x27e539(0xd9)+RUNTIME_ENV_VALUES[_0x27e539(0xc9)](',\x20'));}function buildWorkspaceMessage(_0x554411,_0x4ce15e,_0x32255c,_0x176d6a){const _0x5dd7dd=a60_0x2523bf,_0x717554=_0x4ce15e?_0x4ce15e+'\x20('+_0x32255c+')':_0x32255c,_0x358b82=_0x176d6a?_0x5dd7dd(0xd4)+_0x176d6a:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x554411+'\x0aDefault\x20app:\x20'+_0x717554+_0x358b82+_0x5dd7dd(0xc1);}function a60_0x2c12(){const _0x3d3f68=['App\x20code\x20to\x20bind\x20directly','56QDenXW','authRequired','appCode','appName','\x20workspace\x20','join','427oPwlaD','\x20--appcode\x20<code>\x20[--env\x20daily]','object','items','App\x20\x22','301037DbEuMN','accessKey','command','45405DWIBiM','1445660qSXvtu','\x0aEnv:\x20','Usage:\x20','8940oWSMuN','\x22\x20not\x20found.','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','\x22.\x20Allowed:\x20','app','env','workspace','string','169646yERPhS','project','shouldWriteEnv','../../commands/app/remote-source.js','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','Invalid\x20env\x20\x22','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','envName','validation','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','6008085VpMtAm','from','str','init','isArray','Target\x20environment','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','boolean','Missing\x20workspace\x20app\x20selector.','Available\x20apps:\x20','filter','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','map','includes','268680isKtBn','defaultApp','apps','trim','\x0aAccessKey:\x20not\x20written','appcode'];a60_0x2c12=function(){return _0x3d3f68;};return a60_0x2c12();}function isRecord(_0x241f7e){const _0x2f4c14=a60_0x2523bf;return typeof _0x241f7e===_0x2f4c14(0xcc)&&_0x241f7e!==null&&!Array[_0x2f4c14(0xb3)](_0x241f7e);}function makeWorkspaceCommand(_0x13511f){const _0x5c4271=a60_0x2523bf;return{'service':_0x5c4271(0xdc),'command':_0x13511f,'description':_0x13511f===_0x5c4271(0xb2)?'Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace':_0x5c4271(0xab),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x47153e){return executeWorkspaceUse(_0x47153e,_0x13511f);}};}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand('use')];
@@ -1 +1 @@
1
- const a61_0x84fb18=a61_0x475d;(function(_0x54cef0,_0x2524e1){const _0x27dff3=a61_0x475d,_0x1c2976=_0x54cef0();while(!![]){try{const _0x4f7887=-parseInt(_0x27dff3(0x149))/0x1+parseInt(_0x27dff3(0x145))/0x2*(parseInt(_0x27dff3(0x14c))/0x3)+-parseInt(_0x27dff3(0x154))/0x4*(parseInt(_0x27dff3(0x159))/0x5)+-parseInt(_0x27dff3(0x140))/0x6*(parseInt(_0x27dff3(0x15f))/0x7)+parseInt(_0x27dff3(0x150))/0x8*(-parseInt(_0x27dff3(0x153))/0x9)+parseInt(_0x27dff3(0x14f))/0xa*(parseInt(_0x27dff3(0x147))/0xb)+parseInt(_0x27dff3(0x146))/0xc;if(_0x4f7887===_0x2524e1)break;else _0x1c2976['push'](_0x1c2976['shift']());}catch(_0x24788b){_0x1c2976['push'](_0x1c2976['shift']());}}}(a61_0x4ba5,0xa2f53));function a61_0x4ba5(){const _0x40a85e=['21dAAQqT','defaultValue','528738eEGcMd','Override\x20API\x20domain','Override\x20SkillHub\x20domain','join','map','2049626lINZeu','27106956ShJEej','1903jAUysH','Access\x20key\x20(client-ak\x20auth)','1056349zNhMAT','Override\x20user\x20domain','Default\x20output\x20format','3IYAwVk',';\x20local\x20alias:\x20apps.<alias>.appcode','Locale','17080pmcWKC','9241048AsKOrf','locale','entries','9ndqhEO','79252mjnfND','Risk\x20level','has','importable','filter','110UiJhSV','fromEntries','riskLevel','Override\x20runtime\x20domain','format','legacyCompatOnly'];a61_0x4ba5=function(){return _0x40a85e;};return a61_0x4ba5();}function a61_0x475d(_0x38d7db,_0x25917e){_0x38d7db=_0x38d7db-0x140;const _0x4ba58f=a61_0x4ba5();let _0x475daa=_0x4ba58f[_0x38d7db];return _0x475daa;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':a61_0x84fb18(0x14b),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x84fb18(0x15d)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a61_0x84fb18(0x141),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a61_0x84fb18(0x14a),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a61_0x84fb18(0x15c),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a61_0x84fb18(0x142),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a61_0x84fb18(0x148),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a61_0x84fb18(0x155),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x84fb18(0x15b)],'importable':!![]},'locale':{'description':a61_0x84fb18(0x14e),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x84fb18(0x151)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a61_0x84fb18(0x152)](CONFIG_FIELD_SCHEMAS)[a61_0x84fb18(0x158)](([,_0x56a40a])=>_0x56a40a['cliSettableTopLevel'])[a61_0x84fb18(0x144)](([_0x3a900f])=>_0x3a900f));export const CONFIG_ENUM_VALUES=Object[a61_0x84fb18(0x15a)](Object['entries'](CONFIG_FIELD_SCHEMAS)[a61_0x84fb18(0x158)](([,_0x557edf])=>_0x557edf['enumValues'])['map'](([_0x339cb5,_0x5603e8])=>[_0x339cb5,[..._0x5603e8['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a61_0x84fb18(0x152)](CONFIG_FIELD_SCHEMAS)[a61_0x84fb18(0x158)](([,_0x39574f])=>_0x39574f[a61_0x84fb18(0x157)])[a61_0x84fb18(0x144)](([_0x16e8a9])=>_0x16e8a9);export function getConfigFieldSchema(_0x3bc638){return CONFIG_FIELD_SCHEMAS[_0x3bc638];}export function getConfigEnumValues(_0x22fadc){return getConfigFieldSchema(_0x22fadc)?.['enumValues'];}export function getConfigDefaultValue(_0x202de3){const _0x363468=a61_0x84fb18;return getConfigFieldSchema(_0x202de3)?.[_0x363468(0x160)];}export function isTopLevelConfigKey(_0x3ad323){const _0x3a77b4=a61_0x84fb18;return TOP_LEVEL_CONFIG_KEYS[_0x3a77b4(0x156)](_0x3ad323);}export function isLegacyCompatConfigKey(_0x2b16c4){const _0x4055c4=a61_0x84fb18;return getConfigFieldSchema(_0x2b16c4)?.[_0x4055c4(0x15e)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x45b025){const _0x44dd41=a61_0x84fb18;return[..._0x45b025][_0x44dd41(0x143)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x2499bd=a61_0x84fb18;return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+_0x2499bd(0x14d);}export function buildAppProfileListFields(_0x38a308){return{'env':_0x38a308,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a61_0x794c96=a61_0x6351;(function(_0x5388a9,_0xa9bbf7){const _0x3ba936=a61_0x6351,_0x441d55=_0x5388a9();while(!![]){try{const _0x174cfe=parseInt(_0x3ba936(0x1dc))/0x1+parseInt(_0x3ba936(0x1d1))/0x2+parseInt(_0x3ba936(0x1da))/0x3*(-parseInt(_0x3ba936(0x1d5))/0x4)+-parseInt(_0x3ba936(0x1ed))/0x5*(-parseInt(_0x3ba936(0x1ce))/0x6)+-parseInt(_0x3ba936(0x1e6))/0x7+-parseInt(_0x3ba936(0x1d0))/0x8+parseInt(_0x3ba936(0x1df))/0x9;if(_0x174cfe===_0xa9bbf7)break;else _0x441d55['push'](_0x441d55['shift']());}catch(_0x16fa0c){_0x441d55['push'](_0x441d55['shift']());}}}(a61_0x17fd,0xd795c));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x794c96(0x1e4)],'importable':!![]},'format':{'description':a61_0x794c96(0x1d7),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x794c96(0x1e3)],'importable':!![]},'pageSize':{'description':a61_0x794c96(0x1d2),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a61_0x794c96(0x1d4),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a61_0x794c96(0x1ea),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a61_0x794c96(0x1cf),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a61_0x794c96(0x1eb),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a61_0x794c96(0x1e1),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x794c96(0x1e0)],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x794c96(0x1de)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a61_0x794c96(0x1dd)](CONFIG_FIELD_SCHEMAS)[a61_0x794c96(0x1d9)](([,_0x46334e])=>_0x46334e['cliSettableTopLevel'])[a61_0x794c96(0x1d6)](([_0x4d763a])=>_0x4d763a));export const CONFIG_ENUM_VALUES=Object[a61_0x794c96(0x1e5)](Object[a61_0x794c96(0x1dd)](CONFIG_FIELD_SCHEMAS)[a61_0x794c96(0x1d9)](([,_0x115b9f])=>_0x115b9f[a61_0x794c96(0x1d3)])[a61_0x794c96(0x1d6)](([_0x320e24,_0x5170db])=>[_0x320e24,[..._0x5170db[a61_0x794c96(0x1d3)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a61_0x794c96(0x1dd)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x3a7594])=>_0x3a7594[a61_0x794c96(0x1ec)])['map'](([_0x235e6b])=>_0x235e6b);export function getConfigFieldSchema(_0x2a1c6e){return CONFIG_FIELD_SCHEMAS[_0x2a1c6e];}export function getConfigEnumValues(_0x1ed5f6){const _0x1049fe=a61_0x794c96;return getConfigFieldSchema(_0x1ed5f6)?.[_0x1049fe(0x1d3)];}function a61_0x6351(_0x48de37,_0x40426b){_0x48de37=_0x48de37-0x1ce;const _0x17fd68=a61_0x17fd();let _0x6351bd=_0x17fd68[_0x48de37];return _0x6351bd;}export function getConfigDefaultValue(_0x3cf71d){const _0x297faf=a61_0x794c96;return getConfigFieldSchema(_0x3cf71d)?.[_0x297faf(0x1e9)];}function a61_0x17fd(){const _0x58a075=['3413170WWRApl','Default\x20page\x20size','enumValues','Override\x20API\x20domain','32896LVonoU','map','Default\x20output\x20format',';\x20local\x20alias:\x20apps.<alias>.appcode','filter','435VybfCs','has','374471UwghUV','entries','locale','8670276pVlDfO','riskLevel','Risk\x20level','legacyCompatOnly','format','env','fromEntries','9197020znKFhv','Config\x20key.\x20Top-level:\x20','join','defaultValue','Override\x20runtime\x20domain','Access\x20key\x20(client-ak\x20auth)','importable','5zSBOYO','9494316PXGGJR','Override\x20SkillHub\x20domain','9899440bIYnJC'];a61_0x17fd=function(){return _0x58a075;};return a61_0x17fd();}export function isTopLevelConfigKey(_0xcd9a98){const _0x5590bc=a61_0x794c96;return TOP_LEVEL_CONFIG_KEYS[_0x5590bc(0x1db)](_0xcd9a98);}export function isLegacyCompatConfigKey(_0x16d133){const _0x5b8d76=a61_0x794c96;return getConfigFieldSchema(_0x16d133)?.[_0x5b8d76(0x1e2)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0xf78a37){const _0x44be9b=a61_0x794c96;return[..._0xf78a37][_0x44be9b(0x1e8)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x18ea08=a61_0x794c96;return _0x18ea08(0x1e7)+getTopLevelConfigKeySummary()+_0x18ea08(0x1d8);}export function buildAppProfileListFields(_0xa0125){return{'env':_0xa0125,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- function a62_0x2858(_0xa26026,_0x305558){_0xa26026=_0xa26026-0x16a;const _0x351974=a62_0x3519();let _0x285830=_0x351974[_0xa26026];return _0x285830;}const a62_0x2f20ec=a62_0x2858;(function(_0x6d6ab,_0x84ec13){const _0x15faea=a62_0x2858,_0x2cffa4=_0x6d6ab();while(!![]){try{const _0x1b61c9=parseInt(_0x15faea(0x16d))/0x1*(parseInt(_0x15faea(0x16c))/0x2)+-parseInt(_0x15faea(0x16f))/0x3*(-parseInt(_0x15faea(0x177))/0x4)+parseInt(_0x15faea(0x178))/0x5*(parseInt(_0x15faea(0x170))/0x6)+-parseInt(_0x15faea(0x16e))/0x7+-parseInt(_0x15faea(0x16a))/0x8*(-parseInt(_0x15faea(0x171))/0x9)+parseInt(_0x15faea(0x175))/0xa*(-parseInt(_0x15faea(0x172))/0xb)+-parseInt(_0x15faea(0x176))/0xc*(parseInt(_0x15faea(0x173))/0xd);if(_0x1b61c9===_0x84ec13)break;else _0x2cffa4['push'](_0x2cffa4['shift']());}catch(_0x4c644b){_0x2cffa4['push'](_0x2cffa4['shift']());}}}(a62_0x3519,0x4d7de));function a62_0x3519(){const _0xabe770=['90DCOqWQ','42636oFkACU','265516pvaeFk','105465VcfouW','16oSRNOu','UNPUBLISH','2uxfHTP','258430mjLLBZ','2255603FPACvP','21ZAbRTE','42PDZMwF','2640186RQzKeB','343816iaRjEI','1963lsQgNe','Published'];a62_0x3519=function(){return _0xabe770;};return a62_0x3519();}export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a62_0x2f20ec(0x16b)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a62_0x2f20ec(0x174)];
1
+ const a62_0x35df3c=a62_0x4736;(function(_0x1ac30a,_0x5be54b){const _0x40d7d7=a62_0x4736,_0x3e8c8d=_0x1ac30a();while(!![]){try{const _0x36388d=parseInt(_0x40d7d7(0x14a))/0x1+parseInt(_0x40d7d7(0x14c))/0x2*(parseInt(_0x40d7d7(0x152))/0x3)+-parseInt(_0x40d7d7(0x14d))/0x4*(parseInt(_0x40d7d7(0x14e))/0x5)+-parseInt(_0x40d7d7(0x14f))/0x6+-parseInt(_0x40d7d7(0x153))/0x7*(-parseInt(_0x40d7d7(0x151))/0x8)+-parseInt(_0x40d7d7(0x150))/0x9*(parseInt(_0x40d7d7(0x157))/0xa)+parseInt(_0x40d7d7(0x155))/0xb*(parseInt(_0x40d7d7(0x14b))/0xc);if(_0x36388d===_0x5be54b)break;else _0x3e8c8d['push'](_0x3e8c8d['shift']());}catch(_0x38c966){_0x3e8c8d['push'](_0x3e8c8d['shift']());}}}(a62_0x4dcd,0xbe9f7));function a62_0x4dcd(){const _0x30ca10=['2529vwsyOc','40GyYPHb','21OtxOQK','337253bpXUMW','UNPUBLISH','9303624kMLYOZ','Published','22490xBaouV','1351031NRlAzU','24hSfBqd','78018xepYAN','1255288ACaxzq','20HMSksb','5331054ErMvZY'];a62_0x4dcd=function(){return _0x30ca10;};return a62_0x4dcd();}function a62_0x4736(_0x3cfabb,_0x5b68fd){_0x3cfabb=_0x3cfabb-0x14a;const _0x4dcd4a=a62_0x4dcd();let _0x473603=_0x4dcd4a[_0x3cfabb];return _0x473603;}export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a62_0x35df3c(0x154)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a62_0x35df3c(0x156)];
@@ -1 +1 @@
1
- function a63_0x2f0b(){const _0x50c89d=['5176696RanVTt','2794618tNphrh','34690mWuZFF','1101361Ojxhbe','6475672Eoaxwn','3OToWyf','10mQPtiT','42355260BUfrtz','138vRVyOr','7723928szIiKk','ClientAk'];a63_0x2f0b=function(){return _0x50c89d;};return a63_0x2f0b();}function a63_0x3fd9(_0x2146c6,_0xe82486){_0x2146c6=_0x2146c6-0x14c;const _0x2f0b78=a63_0x2f0b();let _0x3fd926=_0x2f0b78[_0x2146c6];return _0x3fd926;}(function(_0xf491b6,_0xf9c233){const _0x22c6b2=a63_0x3fd9,_0x5e1667=_0xf491b6();while(!![]){try{const _0x2b3f63=parseInt(_0x22c6b2(0x151))/0x1+parseInt(_0x22c6b2(0x14f))/0x2*(parseInt(_0x22c6b2(0x153))/0x3)+parseInt(_0x22c6b2(0x152))/0x4+-parseInt(_0x22c6b2(0x150))/0x5*(parseInt(_0x22c6b2(0x156))/0x6)+parseInt(_0x22c6b2(0x14e))/0x7+parseInt(_0x22c6b2(0x14c))/0x8+parseInt(_0x22c6b2(0x155))/0x9*(-parseInt(_0x22c6b2(0x154))/0xa);if(_0x2b3f63===_0xf9c233)break;else _0x5e1667['push'](_0x5e1667['shift']());}catch(_0x52b8d0){_0x5e1667['push'](_0x5e1667['shift']());}}}(a63_0x2f0b,0xe99dd));export const AUTH_MODE={'ClientAk':'client-ak'};export function isAuthMode(_0x9c36ee){const _0x5266d9=a63_0x3fd9;return _0x9c36ee===AUTH_MODE[_0x5266d9(0x14d)];}
1
+ const a63_0x5e7393=a63_0x2152;function a63_0x2152(_0x2e7513,_0xe34320){_0x2e7513=_0x2e7513-0x139;const _0x1efaeb=a63_0x1efa();let _0x21521d=_0x1efaeb[_0x2e7513];return _0x21521d;}(function(_0x1e4849,_0x379c7a){const _0x33d2c1=a63_0x2152,_0x415c94=_0x1e4849();while(!![]){try{const _0xdb66e6=parseInt(_0x33d2c1(0x13a))/0x1+-parseInt(_0x33d2c1(0x13f))/0x2*(parseInt(_0x33d2c1(0x143))/0x3)+parseInt(_0x33d2c1(0x13b))/0x4*(parseInt(_0x33d2c1(0x13d))/0x5)+parseInt(_0x33d2c1(0x140))/0x6*(-parseInt(_0x33d2c1(0x145))/0x7)+-parseInt(_0x33d2c1(0x142))/0x8*(parseInt(_0x33d2c1(0x147))/0x9)+parseInt(_0x33d2c1(0x141))/0xa*(-parseInt(_0x33d2c1(0x13e))/0xb)+parseInt(_0x33d2c1(0x139))/0xc*(parseInt(_0x33d2c1(0x13c))/0xd);if(_0xdb66e6===_0x379c7a)break;else _0x415c94['push'](_0x415c94['shift']());}catch(_0x2e7e9c){_0x415c94['push'](_0x415c94['shift']());}}}(a63_0x1efa,0x21f2e));export const AUTH_MODE={'ClientAk':a63_0x5e7393(0x146)};export function isAuthMode(_0x368fd2){const _0x2491e3=a63_0x5e7393;return _0x368fd2===AUTH_MODE[_0x2491e3(0x144)];}function a63_0x1efa(){const _0x59c8de=['953860GqHdWT','936USdQdO','5bqLaid','393085RkQoMp','68lsZRGs','6AhGMdc','10hPdGJX','976gzouEv','18462TOKFuK','ClientAk','1795493HVDcmJ','client-ak','1494FPGeMj','26964YVxBmt','260527TBnLrW'];a63_0x1efa=function(){return _0x59c8de;};return a63_0x1efa();}
@@ -1 +1 @@
1
- const a64_0x730188=a64_0x2c42;(function(_0x99539c,_0x4e9f6e){const _0x54404b=a64_0x2c42,_0x219055=_0x99539c();while(!![]){try{const _0x4e073c=-parseInt(_0x54404b(0x19a))/0x1*(-parseInt(_0x54404b(0x1bb))/0x2)+parseInt(_0x54404b(0x19f))/0x3+-parseInt(_0x54404b(0x1bf))/0x4+parseInt(_0x54404b(0x1b6))/0x5*(-parseInt(_0x54404b(0x1aa))/0x6)+-parseInt(_0x54404b(0x1b5))/0x7*(parseInt(_0x54404b(0x1ae))/0x8)+-parseInt(_0x54404b(0x193))/0x9+-parseInt(_0x54404b(0x195))/0xa*(-parseInt(_0x54404b(0x1ab))/0xb);if(_0x4e073c===_0x4e9f6e)break;else _0x219055['push'](_0x219055['shift']());}catch(_0x587c43){_0x219055['push'](_0x219055['shift']());}}}(a64_0x18f9,0x50b3f));function a64_0x2c42(_0x536e31,_0x43b853){_0x536e31=_0x536e31-0x191;const _0x18f94c=a64_0x18f9();let _0x2c422b=_0x18f94c[_0x536e31];return _0x2c422b;}function a64_0x18f9(){const _0x2f4cdf=['Override\x20appcode','96858JDasGJ','11rPxCEx','Record\x20ID','Alias\x20for\x20--non-interactive','16WrouvT','Use\x20global\x20config\x20scope','dry-run','fromEntries','Verbose\x20output','string','Force\x20non-interactive\x20mode\x20(CI)','621887jzFHXe','135KVrFNw','Name\x20filter','help','Clear\x20output','SQL\x20query\x20code','1306MqUWpa','map','Output\x20format','nonInteractive','1577072IQCZOu','JSON\x20params\x20for\x20execute\x20commands','<expr>','params','app','sqlcode','290403ZVVKvw','non-interactive','9247850CiDfnz','name','verbose','yes','type','622aPxnMG','appcode','<name>','cliBinName','env','119058XqvWfV','Skip\x20confirmation\x20for\x20high-risk\x20writes','dryRun','global','format','boolean','cliDisplayName','clear','Environment','Preview\x20operation\x20without\x20executing'];a64_0x18f9=function(){return _0x2f4cdf;};return a64_0x18f9();}import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a64_0x730188(0x19d)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a64_0x730188(0x1a5)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a64_0x730188(0x19b),'meowKey':a64_0x730188(0x19b),'type':a64_0x730188(0x1b3),'description':a64_0x730188(0x1a9),'hint':'<code>'},{'name':a64_0x730188(0x191),'meowKey':a64_0x730188(0x191),'type':a64_0x730188(0x1b3),'description':'Select\x20app\x20profile\x20by\x20name','hint':a64_0x730188(0x19c)},{'name':'env','meowKey':a64_0x730188(0x19e),'type':a64_0x730188(0x1b3),'description':a64_0x730188(0x1a7),'hint':'production\x20|\x20development\x20|\x20daily'},{'name':'format','meowKey':a64_0x730188(0x1a3),'type':a64_0x730188(0x1b3),'description':a64_0x730188(0x1bd),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':'string','description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a64_0x730188(0x1c1)},{'name':'dry-run','meowKey':a64_0x730188(0x1a1),'type':'boolean','description':a64_0x730188(0x1a8)},{'name':'yes','meowKey':a64_0x730188(0x198),'type':a64_0x730188(0x1a4),'description':a64_0x730188(0x1a0)},{'name':a64_0x730188(0x194),'meowKey':a64_0x730188(0x1be),'type':a64_0x730188(0x1a4),'description':a64_0x730188(0x1b4)},{'name':a64_0x730188(0x1a2),'meowKey':a64_0x730188(0x1a2),'type':a64_0x730188(0x1a4),'description':a64_0x730188(0x1af)},{'name':'ci','meowKey':'ci','type':'boolean','description':a64_0x730188(0x1ad),'hidden':!![]},{'name':a64_0x730188(0x1b8),'meowKey':a64_0x730188(0x1b8),'type':a64_0x730188(0x1a4),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':a64_0x730188(0x1b3),'description':a64_0x730188(0x1ac),'hidden':!![]},{'name':a64_0x730188(0x196),'meowKey':a64_0x730188(0x196),'type':a64_0x730188(0x1b3),'description':a64_0x730188(0x1b7),'hidden':!![]},{'name':'sqlcode','meowKey':a64_0x730188(0x192),'type':'string','description':a64_0x730188(0x1ba),'hidden':!![]},{'name':a64_0x730188(0x1c2),'meowKey':a64_0x730188(0x1c2),'type':a64_0x730188(0x1b3),'description':a64_0x730188(0x1c0),'hidden':!![]},{'name':a64_0x730188(0x197),'meowKey':a64_0x730188(0x197),'type':a64_0x730188(0x1a4),'description':a64_0x730188(0x1b2),'hidden':!![]},{'name':a64_0x730188(0x1a6),'meowKey':'clear','type':a64_0x730188(0x1a4),'description':a64_0x730188(0x1b9),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a64_0x730188(0x19b),'app',a64_0x730188(0x19e),a64_0x730188(0x1a3),'jq',a64_0x730188(0x1b0),a64_0x730188(0x198),a64_0x730188(0x194),'ci']);export function buildMeowFlags(){const _0x516b24=a64_0x730188;return Object[_0x516b24(0x1b1)](GLOBAL_FLAGS[_0x516b24(0x1bc)](_0x422ebd=>[_0x422ebd['meowKey'],{'type':_0x422ebd[_0x516b24(0x199)]}]));}
1
+ const a64_0x2eefce=a64_0x1477;(function(_0x3178e6,_0x3612d6){const _0x3036ae=a64_0x1477,_0x4a35cb=_0x3178e6();while(!![]){try{const _0x180a1b=-parseInt(_0x3036ae(0x12a))/0x1+-parseInt(_0x3036ae(0x13e))/0x2+-parseInt(_0x3036ae(0x12d))/0x3*(-parseInt(_0x3036ae(0x137))/0x4)+parseInt(_0x3036ae(0x140))/0x5+-parseInt(_0x3036ae(0x149))/0x6+parseInt(_0x3036ae(0x14b))/0x7+parseInt(_0x3036ae(0x142))/0x8;if(_0x180a1b===_0x3612d6)break;else _0x4a35cb['push'](_0x4a35cb['shift']());}catch(_0xadb494){_0x4a35cb['push'](_0x4a35cb['shift']());}}}(a64_0x5282,0x73799));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';function a64_0x5282(){const _0x52c445=['Force\x20non-interactive\x20mode\x20(CI)','7709048bzadMl','format','sqlcode','Preview\x20operation\x20without\x20executing','Skip\x20confirmation\x20for\x20high-risk\x20writes','clear','dryRun','3988794rcECTD','boolean','3491579zwUcTS','Environment','cliDisplayName','fromEntries','env','production\x20|\x20development\x20|\x20daily','Verbose\x20output','type','verbose','app','172038LsjcDr','name','Override\x20appcode','3JSfvtX','help','yes','<name>','<expr>','map','dry-run','Name\x20filter','SQL\x20query\x20code','string','425380iZAqKZ','params','global','Alias\x20for\x20--non-interactive','Show\x20help','Record\x20ID','appcode','697034MCgDZE','non-interactive','447830xTdBGd'];a64_0x5282=function(){return _0x52c445;};return a64_0x5282();}export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a64_0x2eefce(0x14d)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a64_0x2eefce(0x13d),'meowKey':'appcode','type':a64_0x2eefce(0x136),'description':a64_0x2eefce(0x12c),'hint':'<code>'},{'name':a64_0x2eefce(0x129),'meowKey':a64_0x2eefce(0x129),'type':a64_0x2eefce(0x136),'description':'Select\x20app\x20profile\x20by\x20name','hint':a64_0x2eefce(0x130)},{'name':a64_0x2eefce(0x14f),'meowKey':a64_0x2eefce(0x14f),'type':a64_0x2eefce(0x136),'description':a64_0x2eefce(0x14c),'hint':a64_0x2eefce(0x150)},{'name':a64_0x2eefce(0x143),'meowKey':a64_0x2eefce(0x143),'type':'string','description':'Output\x20format','hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a64_0x2eefce(0x136),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a64_0x2eefce(0x131)},{'name':a64_0x2eefce(0x133),'meowKey':a64_0x2eefce(0x148),'type':'boolean','description':a64_0x2eefce(0x145)},{'name':a64_0x2eefce(0x12f),'meowKey':'yes','type':a64_0x2eefce(0x14a),'description':a64_0x2eefce(0x146)},{'name':'non-interactive','meowKey':'nonInteractive','type':'boolean','description':a64_0x2eefce(0x141)},{'name':a64_0x2eefce(0x139),'meowKey':a64_0x2eefce(0x139),'type':a64_0x2eefce(0x14a),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a64_0x2eefce(0x13a),'hidden':!![]},{'name':a64_0x2eefce(0x12e),'meowKey':a64_0x2eefce(0x12e),'type':a64_0x2eefce(0x14a),'description':a64_0x2eefce(0x13b)},{'name':'id','meowKey':'id','type':'string','description':a64_0x2eefce(0x13c),'hidden':!![]},{'name':a64_0x2eefce(0x12b),'meowKey':a64_0x2eefce(0x12b),'type':a64_0x2eefce(0x136),'description':a64_0x2eefce(0x134),'hidden':!![]},{'name':'sqlcode','meowKey':a64_0x2eefce(0x144),'type':'string','description':a64_0x2eefce(0x135),'hidden':!![]},{'name':a64_0x2eefce(0x138),'meowKey':a64_0x2eefce(0x138),'type':a64_0x2eefce(0x136),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a64_0x2eefce(0x128),'meowKey':a64_0x2eefce(0x128),'type':a64_0x2eefce(0x14a),'description':a64_0x2eefce(0x151),'hidden':!![]},{'name':a64_0x2eefce(0x147),'meowKey':a64_0x2eefce(0x147),'type':a64_0x2eefce(0x14a),'description':'Clear\x20output','hidden':!![]}];function a64_0x1477(_0x1690b7,_0x47b64b){_0x1690b7=_0x1690b7-0x127;const _0x5282cf=a64_0x5282();let _0x147740=_0x5282cf[_0x1690b7];return _0x147740;}export const PIPELINE_FLAG_NAMES=new Set([a64_0x2eefce(0x13d),a64_0x2eefce(0x129),a64_0x2eefce(0x14f),a64_0x2eefce(0x143),'jq',a64_0x2eefce(0x133),'yes',a64_0x2eefce(0x13f),'ci']);export function buildMeowFlags(){const _0x3edf63=a64_0x2eefce;return Object[_0x3edf63(0x14e)](GLOBAL_FLAGS[_0x3edf63(0x132)](_0x537fac=>[_0x537fac['meowKey'],{'type':_0x537fac[_0x3edf63(0x127)]}]));}
@@ -1 +1 @@
1
- const a65_0x2daaee=a65_0x293b;(function(_0x5adf97,_0x364278){const _0x268679=a65_0x293b,_0x5f51ef=_0x5adf97();while(!![]){try{const _0x35fcb5=parseInt(_0x268679(0xac))/0x1+parseInt(_0x268679(0xb0))/0x2*(parseInt(_0x268679(0xa9))/0x3)+parseInt(_0x268679(0xb1))/0x4*(parseInt(_0x268679(0xb5))/0x5)+parseInt(_0x268679(0xab))/0x6+-parseInt(_0x268679(0xad))/0x7*(parseInt(_0x268679(0xa8))/0x8)+-parseInt(_0x268679(0xaa))/0x9*(parseInt(_0x268679(0xaf))/0xa)+-parseInt(_0x268679(0xae))/0xb;if(_0x35fcb5===_0x364278)break;else _0x5f51ef['push'](_0x5f51ef['shift']());}catch(_0x101c85){_0x5f51ef['push'](_0x5f51ef['shift']());}}}(a65_0x52bd,0xab705));export const DEFAULT_APP_PROFILE_NAME='main';function a65_0x293b(_0x22a9ac,_0x49e4b4){_0x22a9ac=_0x22a9ac-0xa8;const _0x52bdfb=a65_0x52bd();let _0x293b77=_0x52bdfb[_0x22a9ac];return _0x293b77;}export const DEFAULT_CONFIG_VALUES={'env':'production','format':a65_0x2daaee(0xb2),'locale':a65_0x2daaee(0xb3),'riskLevel':a65_0x2daaee(0xb4)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a65_0x2daaee(0xb2);function a65_0x52bd(){const _0x17ae17=['4BqnLkz','compress','en-US','write','1998120XxkWlK','105848KWLtrP','3MdfMNY','774279ofETlD','6917052ANVvbG','1013675uFCKQE','217cSfClj','28534187dRcSNw','20PPtNwj','2624624tsctco'];a65_0x52bd=function(){return _0x17ae17;};return a65_0x52bd();}
1
+ function a65_0x27aa(){const _0x25b9fb=['100cVLGYa','6UFLVhR','production','7zOukrA','2322DKilft','314285NQdCAQ','1814733YBqPtY','2115685mWiIyl','26312qEbdqX','compress','main','31366prRwto','2scrmTG','506420AEpsTW'];a65_0x27aa=function(){return _0x25b9fb;};return a65_0x27aa();}function a65_0x2723(_0x20538f,_0x554c4b){_0x20538f=_0x20538f-0x151;const _0x27aa66=a65_0x27aa();let _0x2723a5=_0x27aa66[_0x20538f];return _0x2723a5;}const a65_0x324b5d=a65_0x2723;(function(_0x54524b,_0x255dd9){const _0x441ac9=a65_0x2723,_0x4edfc0=_0x54524b();while(!![]){try{const _0x60b3bc=-parseInt(_0x441ac9(0x152))/0x1*(parseInt(_0x441ac9(0x153))/0x2)+-parseInt(_0x441ac9(0x159))/0x3*(-parseInt(_0x441ac9(0x155))/0x4)+-parseInt(_0x441ac9(0x15a))/0x5*(-parseInt(_0x441ac9(0x156))/0x6)+parseInt(_0x441ac9(0x158))/0x7*(-parseInt(_0x441ac9(0x15d))/0x8)+parseInt(_0x441ac9(0x15b))/0x9+parseInt(_0x441ac9(0x154))/0xa+-parseInt(_0x441ac9(0x15c))/0xb;if(_0x60b3bc===_0x255dd9)break;else _0x4edfc0['push'](_0x4edfc0['shift']());}catch(_0x1727c4){_0x4edfc0['push'](_0x4edfc0['shift']());}}}(a65_0x27aa,0x1a3e8));export const DEFAULT_APP_PROFILE_NAME=a65_0x324b5d(0x151);export const DEFAULT_CONFIG_VALUES={'env':a65_0x324b5d(0x157),'format':a65_0x324b5d(0x15e),'locale':'en-US','riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a65_0x324b5d(0x15e);
@@ -1 +1 @@
1
- const a66_0x564889=a66_0x4bb1;function a66_0x4bb1(_0x176c85,_0x469c8c){_0x176c85=_0x176c85-0x1d2;const _0xbdbf8f=a66_0xbdbf();let _0x4bb1ee=_0xbdbf8f[_0x176c85];return _0x4bb1ee;}(function(_0x3e339c,_0x2bed22){const _0x3f8ea7=a66_0x4bb1,_0x4cc8ba=_0x3e339c();while(!![]){try{const _0x14109e=-parseInt(_0x3f8ea7(0x1d4))/0x1+parseInt(_0x3f8ea7(0x1db))/0x2+parseInt(_0x3f8ea7(0x1da))/0x3*(parseInt(_0x3f8ea7(0x1d3))/0x4)+-parseInt(_0x3f8ea7(0x1dd))/0x5*(parseInt(_0x3f8ea7(0x1d9))/0x6)+-parseInt(_0x3f8ea7(0x1dc))/0x7+-parseInt(_0x3f8ea7(0x1d8))/0x8*(parseInt(_0x3f8ea7(0x1d2))/0x9)+parseInt(_0x3f8ea7(0x1d5))/0xa*(parseInt(_0x3f8ea7(0x1d6))/0xb);if(_0x14109e===_0x2bed22)break;else _0x4cc8ba['push'](_0x4cc8ba['shift']());}catch(_0xaf0b58){_0x4cc8ba['push'](_0x4cc8ba['shift']());}}}(a66_0xbdbf,0x40c5e));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a66_0x564889(0x1de)];function a66_0xbdbf(){const _0xbedd46=['npmPackageName','10467qYYsKk','463196qONuEw','344274neKxQb','90QHhSbp','557337jZdbyx','npmRegistryBaseUrl','1880RyLQCt','56406qkYbYf','12pQOudk','395678bWKGKG','1441622qeAxFd','15Bkxafs'];a66_0xbdbf=function(){return _0xbedd46;};return a66_0xbdbf();}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a66_0x564889(0x1d7)];
1
+ const a66_0x5af2f6=a66_0x5e5f;(function(_0x5b2c50,_0xc56e41){const _0x2b4295=a66_0x5e5f,_0x2ad578=_0x5b2c50();while(!![]){try{const _0x210190=-parseInt(_0x2b4295(0x9f))/0x1+-parseInt(_0x2b4295(0xa0))/0x2+parseInt(_0x2b4295(0xa1))/0x3*(-parseInt(_0x2b4295(0xa4))/0x4)+parseInt(_0x2b4295(0xa5))/0x5+-parseInt(_0x2b4295(0xa2))/0x6+-parseInt(_0x2b4295(0x9e))/0x7*(parseInt(_0x2b4295(0xa6))/0x8)+parseInt(_0x2b4295(0xa3))/0x9;if(_0x210190===_0xc56e41)break;else _0x2ad578['push'](_0x2ad578['shift']());}catch(_0x1e946e){_0x2ad578['push'](_0x2ad578['shift']());}}}(a66_0x4a86,0xb2290));import{PRODUCT_CONFIG}from'../constant/product.js';function a66_0x5e5f(_0x59b615,_0x5b93f1){_0x59b615=_0x59b615-0x9c;const _0x4a8601=a66_0x4a86();let _0x5e5f19=_0x4a8601[_0x59b615];return _0x5e5f19;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a66_0x5af2f6(0x9c)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a66_0x5af2f6(0x9d)];function a66_0x4a86(){const _0x13b808=['66382lEfRVU','1449136bxwaxp','1286121KvOfqG','1680888EVdEBU','25714683ZrQJOh','4bStfRl','3984305aBZqRv','33816VDteCz','skillSource','npmRegistryBaseUrl','2359COqDTq'];a66_0x4a86=function(){return _0x13b808;};return a66_0x4a86();}
@@ -1 +1 @@
1
- function a67_0x5c5c(){const _0x10faa8=['2862132GRDGmH','userDomain','10rWPJDk','5TityYx','5oBmBVN','user','skillHubDomain','167096OdyJdv','8652858tCiLHK','domains','252jlocoE','api','production','7078984mMAldy','nonProduction','129006SMXFYw','13288248dxaSyb','207036xWrhcW','runtime','skillhub','apiDomain'];a67_0x5c5c=function(){return _0x10faa8;};return a67_0x5c5c();}const a67_0x3221e9=a67_0x1a73;(function(_0x10a97c,_0x5664b9){const _0x43de9c=a67_0x1a73,_0x487ee8=_0x10a97c();while(!![]){try{const _0xf5c73=parseInt(_0x43de9c(0x136))/0x1*(-parseInt(_0x43de9c(0x141))/0x2)+parseInt(_0x43de9c(0x132))/0x3+parseInt(_0x43de9c(0x143))/0x4+-parseInt(_0x43de9c(0x135))/0x5*(parseInt(_0x43de9c(0x13a))/0x6)+parseInt(_0x43de9c(0x13c))/0x7*(parseInt(_0x43de9c(0x139))/0x8)+parseInt(_0x43de9c(0x142))/0x9*(parseInt(_0x43de9c(0x134))/0xa)+-parseInt(_0x43de9c(0x13f))/0xb;if(_0xf5c73===_0x5664b9)break;else _0x487ee8['push'](_0x487ee8['shift']());}catch(_0x12cba6){_0x487ee8['push'](_0x487ee8['shift']());}}}(a67_0x5c5c,0xc9a95));import{getEnv,isProduction}from'../constant/env.js';function a67_0x1a73(_0x15dc83,_0x13abc9){_0x15dc83=_0x15dc83-0x132;const _0x5c5c1d=a67_0x5c5c();let _0x1a7383=_0x5c5c1d[_0x15dc83];return _0x1a7383;}import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x311e50){const _0x5771ff=a67_0x1a73;customApiDomain=_0x311e50?.[_0x5771ff(0x146)],customUserDomain=_0x311e50?.[_0x5771ff(0x133)],customRuntimeDomain=_0x311e50?.['runtimeDomain'],customSkillHubDomain=_0x311e50?.[_0x5771ff(0x138)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x3221e9(0x13b)]['production'][a67_0x3221e9(0x137)]:PRODUCT_CONFIG[a67_0x3221e9(0x13b)][a67_0x3221e9(0x140)][a67_0x3221e9(0x137)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x3221e9(0x13b)][a67_0x3221e9(0x13e)][a67_0x3221e9(0x13d)]:PRODUCT_CONFIG[a67_0x3221e9(0x13b)][a67_0x3221e9(0x140)][a67_0x3221e9(0x13d)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x3221e9(0x13b)][a67_0x3221e9(0x13e)][a67_0x3221e9(0x144)]:PRODUCT_CONFIG[a67_0x3221e9(0x13b)]['nonProduction'][a67_0x3221e9(0x144)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x3221e9(0x13b)][a67_0x3221e9(0x13e)][a67_0x3221e9(0x145)]:PRODUCT_CONFIG[a67_0x3221e9(0x13b)][a67_0x3221e9(0x140)]['skillhub']);
1
+ const a67_0x27a25c=a67_0x21b3;function a67_0x2fc1(){const _0x1c4e09=['1224LruPwz','skillhub','skillHubDomain','user','3HBlDGK','production','21882sDJPxO','987778ycPnwe','1435SIBoBi','nonProduction','32688DSLiOP','165xnBQDG','runtime','87852mIjhBb','domains','1848vhtgds','533954IzEJzn','api','apiDomain','89884HloWFM','7340uvCfMC','userDomain'];a67_0x2fc1=function(){return _0x1c4e09;};return a67_0x2fc1();}(function(_0x13f20f,_0x261aa3){const _0x4df5d6=a67_0x21b3,_0x3265e6=_0x13f20f();while(!![]){try{const _0x2d90e3=parseInt(_0x4df5d6(0x1ed))/0x1+parseInt(_0x4df5d6(0x1f6))/0x2*(-parseInt(_0x4df5d6(0x1ea))/0x3)+parseInt(_0x4df5d6(0x1f9))/0x4*(-parseInt(_0x4df5d6(0x1f1))/0x5)+parseInt(_0x4df5d6(0x1ec))/0x6*(-parseInt(_0x4df5d6(0x1ee))/0x7)+-parseInt(_0x4df5d6(0x1f0))/0x8+-parseInt(_0x4df5d6(0x1e6))/0x9*(-parseInt(_0x4df5d6(0x1e4))/0xa)+parseInt(_0x4df5d6(0x1f5))/0xb*(parseInt(_0x4df5d6(0x1f3))/0xc);if(_0x2d90e3===_0x261aa3)break;else _0x3265e6['push'](_0x3265e6['shift']());}catch(_0x1df777){_0x3265e6['push'](_0x3265e6['shift']());}}}(a67_0x2fc1,0x880e9));import{getEnv,isProduction}from'../constant/env.js';function a67_0x21b3(_0x38c495,_0x2af6d9){_0x38c495=_0x38c495-0x1e4;const _0x2fc171=a67_0x2fc1();let _0x21b3df=_0x2fc171[_0x38c495];return _0x21b3df;}import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x454c6b){const _0x2f1efc=a67_0x21b3;customApiDomain=_0x454c6b?.[_0x2f1efc(0x1f8)],customUserDomain=_0x454c6b?.[_0x2f1efc(0x1e5)],customRuntimeDomain=_0x454c6b?.['runtimeDomain'],customSkillHubDomain=_0x454c6b?.[_0x2f1efc(0x1e8)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x27a25c(0x1f4)][a67_0x27a25c(0x1eb)][a67_0x27a25c(0x1e9)]:PRODUCT_CONFIG[a67_0x27a25c(0x1f4)]['nonProduction']['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x27a25c(0x1f4)][a67_0x27a25c(0x1eb)][a67_0x27a25c(0x1f7)]:PRODUCT_CONFIG[a67_0x27a25c(0x1f4)][a67_0x27a25c(0x1ef)][a67_0x27a25c(0x1f7)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x27a25c(0x1f4)][a67_0x27a25c(0x1eb)][a67_0x27a25c(0x1f2)]:PRODUCT_CONFIG['domains'][a67_0x27a25c(0x1ef)][a67_0x27a25c(0x1f2)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x27a25c(0x1f4)][a67_0x27a25c(0x1eb)][a67_0x27a25c(0x1e7)]:PRODUCT_CONFIG[a67_0x27a25c(0x1f4)]['nonProduction'][a67_0x27a25c(0x1e7)]);
@@ -1 +1 @@
1
- const a68_0x58641e=a68_0x324e;(function(_0x5e9595,_0x39ed88){const _0x516dbc=a68_0x324e,_0x58a2d4=_0x5e9595();while(!![]){try{const _0x1c4677=parseInt(_0x516dbc(0x1a6))/0x1*(parseInt(_0x516dbc(0x1aa))/0x2)+parseInt(_0x516dbc(0x1b0))/0x3*(parseInt(_0x516dbc(0x1ac))/0x4)+parseInt(_0x516dbc(0x1ab))/0x5+-parseInt(_0x516dbc(0x1ad))/0x6+-parseInt(_0x516dbc(0x1a8))/0x7+-parseInt(_0x516dbc(0x1a9))/0x8+parseInt(_0x516dbc(0x1a5))/0x9;if(_0x1c4677===_0x39ed88)break;else _0x58a2d4['push'](_0x58a2d4['shift']());}catch(_0x585a80){_0x58a2d4['push'](_0x58a2d4['shift']());}}}(a68_0x5a2c,0xa3815));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=['production',a68_0x58641e(0x1b1),a68_0x58641e(0x1ae)];export function normalizeEnv(_0x3ad89f){const _0xea7783=a68_0x58641e;return _0x3ad89f==='online'?_0xea7783(0x1a4):_0x3ad89f;}export function isProduction(_0x102992){return normalizeEnv(_0x102992)==='production';}export function isDaily(_0x1e8de9){const _0x488d97=a68_0x58641e;return normalizeEnv(_0x1e8de9)===_0x488d97(0x1ae);}function a68_0x324e(_0x4580b1,_0x520c4c){_0x4580b1=_0x4580b1-0x1a4;const _0x5a2c54=a68_0x5a2c();let _0x324e93=_0x5a2c54[_0x4580b1];return _0x324e93;}export function isDev(_0xe54e2c){const _0x256d14=a68_0x58641e,_0x1d2b65=normalizeEnv(_0xe54e2c);return _0x1d2b65===_0x256d14(0x1b1)||_0x1d2b65===_0x256d14(0x1a7);}function a68_0x5a2c(){const _0x235dee=['3673730MlAPSw','1745620TLBxfc','5439708zUwtTw','daily','ENV','3ytLeJQ','development','production','5109435ymfwlB','1vIyIwP','dev','7055622fmtIph','200104eKFGrD','1740856aBfPcC'];a68_0x5a2c=function(){return _0x235dee;};return a68_0x5a2c();}let env=normalizeEnv(productEnv(a68_0x58641e(0x1af))||a68_0x58641e(0x1a4));export function getEnv(){return env;}export function initEnv(_0x598a0d){env=normalizeEnv(_0x598a0d);}
1
+ const a68_0x5bfb66=a68_0x5854;(function(_0x298e8a,_0x4c2239){const _0x48517c=a68_0x5854,_0x239a8a=_0x298e8a();while(!![]){try{const _0x48b204=-parseInt(_0x48517c(0xfa))/0x1*(-parseInt(_0x48517c(0xfe))/0x2)+-parseInt(_0x48517c(0xff))/0x3*(parseInt(_0x48517c(0x107))/0x4)+-parseInt(_0x48517c(0xfd))/0x5*(-parseInt(_0x48517c(0x100))/0x6)+parseInt(_0x48517c(0x101))/0x7+-parseInt(_0x48517c(0x103))/0x8*(-parseInt(_0x48517c(0x102))/0x9)+-parseInt(_0x48517c(0xf9))/0xa+-parseInt(_0x48517c(0x104))/0xb;if(_0x48b204===_0x4c2239)break;else _0x239a8a['push'](_0x239a8a['shift']());}catch(_0x262d49){_0x239a8a['push'](_0x239a8a['shift']());}}}(a68_0x3694,0xa8cc9));function a68_0x3694(){const _0x201ea7=['6mNxXjl','635649CplevE','9rNUKED','869272hBGZhE','472747qxVRes','dev','production','55904XWqtUm','ENV','9088530XXYDdM','20wYpMuJ','development','daily','5659905FzSxSL','46552tJwEki','33gEVIzI'];a68_0x3694=function(){return _0x201ea7;};return a68_0x3694();}import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a68_0x5bfb66(0x106),a68_0x5bfb66(0xfb),'daily'];export function normalizeEnv(_0x32b6e9){const _0x12a0ea=a68_0x5bfb66;return _0x32b6e9==='online'?_0x12a0ea(0x106):_0x32b6e9;}export function isProduction(_0xd1f9c9){const _0x5b7d5b=a68_0x5bfb66;return normalizeEnv(_0xd1f9c9)===_0x5b7d5b(0x106);}export function isDaily(_0x3addfe){const _0x31e6ad=a68_0x5bfb66;return normalizeEnv(_0x3addfe)===_0x31e6ad(0xfc);}export function isDev(_0x1a1f33){const _0x19da44=a68_0x5bfb66,_0x3990f5=normalizeEnv(_0x1a1f33);return _0x3990f5===_0x19da44(0xfb)||_0x3990f5===_0x19da44(0x105);}function a68_0x5854(_0xa30a54,_0x50e6ab){_0xa30a54=_0xa30a54-0xf9;const _0x36948a=a68_0x3694();let _0x585471=_0x36948a[_0xa30a54];return _0x585471;}let env=normalizeEnv(productEnv(a68_0x5bfb66(0x108))||a68_0x5bfb66(0x106));export function getEnv(){return env;}export function initEnv(_0x40aacd){env=normalizeEnv(_0x40aacd);}
@@ -1 +1 @@
1
- const a69_0x27c31c=a69_0x2ed9;function a69_0x1104(){const _0x576803=['122133uQXnLh','json','2990064bFFWvG','7Fbmcrp','14774580GINYOy','174ADFeTG','4seqGNg','pretty','9399070VqMdou','12928352KuWjQR','6466QwZnCx','7904985tdMCvx','compress'];a69_0x1104=function(){return _0x576803;};return a69_0x1104();}function a69_0x2ed9(_0x543018,_0x3e087d){_0x543018=_0x543018-0x10b;const _0x1104e1=a69_0x1104();let _0x2ed9ed=_0x1104e1[_0x543018];return _0x2ed9ed;}(function(_0x2799b7,_0x147a62){const _0x193737=a69_0x2ed9,_0x39b937=_0x2799b7();while(!![]){try{const _0x3be8c9=parseInt(_0x193737(0x10e))/0x1*(parseInt(_0x193737(0x113))/0x2)+parseInt(_0x193737(0x116))/0x3*(parseInt(_0x193737(0x10f))/0x4)+-parseInt(_0x193737(0x114))/0x5+-parseInt(_0x193737(0x10b))/0x6+parseInt(_0x193737(0x10c))/0x7*(parseInt(_0x193737(0x112))/0x8)+parseInt(_0x193737(0x10d))/0x9+-parseInt(_0x193737(0x111))/0xa;if(_0x3be8c9===_0x147a62)break;else _0x39b937['push'](_0x39b937['shift']());}catch(_0x292011){_0x39b937['push'](_0x39b937['shift']());}}}(a69_0x1104,0xcd7c5));export const OUTPUT_FORMAT_VALUES=[a69_0x27c31c(0x117),a69_0x27c31c(0x110),a69_0x27c31c(0x115)];
1
+ const a69_0x5199bd=a69_0x51d9;function a69_0x1396(){const _0x3883b1=['567702SkEKOE','744410lwOyII','995614ykyPQm','20kCmmjQ','11227250EHRdAU','3lNGPsM','compress','255516QncIye','5761240YGnFst','pretty','json','7AHAtVy','214488tqiZJd'];a69_0x1396=function(){return _0x3883b1;};return a69_0x1396();}function a69_0x51d9(_0x354912,_0x2d2e76){_0x354912=_0x354912-0x19d;const _0x139671=a69_0x1396();let _0x51d9c1=_0x139671[_0x354912];return _0x51d9c1;}(function(_0x29a2c3,_0x425253){const _0x46153e=a69_0x51d9,_0x1939ab=_0x29a2c3();while(!![]){try{const _0x2f33bd=-parseInt(_0x46153e(0x1a0))/0x1+-parseInt(_0x46153e(0x19e))/0x2*(-parseInt(_0x46153e(0x1a3))/0x3)+parseInt(_0x46153e(0x1a1))/0x4*(parseInt(_0x46153e(0x19f))/0x5)+parseInt(_0x46153e(0x1a5))/0x6+-parseInt(_0x46153e(0x1a9))/0x7*(parseInt(_0x46153e(0x1a6))/0x8)+parseInt(_0x46153e(0x19d))/0x9+parseInt(_0x46153e(0x1a2))/0xa;if(_0x2f33bd===_0x425253)break;else _0x1939ab['push'](_0x1939ab['shift']());}catch(_0x1fb543){_0x1939ab['push'](_0x1939ab['shift']());}}}(a69_0x1396,0x7a783));export const OUTPUT_FORMAT_VALUES=[a69_0x5199bd(0x1a8),a69_0x5199bd(0x1a7),a69_0x5199bd(0x1a4)];
@@ -1 +1 @@
1
- function a70_0x37d1(){const _0x28974b=['LOVRABET','map','cli:lovrabet-runtime','.lovrabet.json','4196374iGxqxB','23305EIvZKV','3814632HLnYcg','@lovrabet/lovrabet-cli','6920368jSSouc','Lovrabet\x20User\x20Center','1071675fpgcCZ','https://skills.lovrabet.com','1252YMfNma','https://registry.npmjs.org','https://user-daily.lovrabet.com','SKIP_NPX_SKILLS','936890VlNezC','envPrefix','https://daily-runtime.lovrabet.com','https://user.lovrabet.com','legacyEnvPrefixes','.lovrabet','.lovrabetrc','Lovrabet\x20Runtime\x20CLI','3062325qaMXEJ','lovrabet/lovrabet-cli','.lovrabet-runtime.log','https://api.lovrabet.com','lovrabet','RABETBASE'];a70_0x37d1=function(){return _0x28974b;};return a70_0x37d1();}const a70_0x59c7f7=a70_0x3d2b;function a70_0x3d2b(_0x38684e,_0x4f2b5f){_0x38684e=_0x38684e-0x149;const _0x37d11a=a70_0x37d1();let _0x3d2bdd=_0x37d11a[_0x38684e];return _0x3d2bdd;}(function(_0x222c36,_0x52b960){const _0x3cadaf=a70_0x3d2b,_0x410495=_0x222c36();while(!![]){try{const _0x2bcf25=parseInt(_0x3cadaf(0x15c))/0x1+-parseInt(_0x3cadaf(0x162))/0x2+parseInt(_0x3cadaf(0x14c))/0x3+parseInt(_0x3cadaf(0x15e))/0x4*(parseInt(_0x3cadaf(0x157))/0x5)+-parseInt(_0x3cadaf(0x158))/0x6+-parseInt(_0x3cadaf(0x156))/0x7+-parseInt(_0x3cadaf(0x15a))/0x8;if(_0x2bcf25===_0x52b960)break;else _0x410495['push'](_0x410495['shift']());}catch(_0x581ee0){_0x410495['push'](_0x410495['shift']());}}}(a70_0x37d1,0xefe46));export const PRODUCT_CONFIG={'cliBinName':a70_0x59c7f7(0x150),'cliDisplayName':a70_0x59c7f7(0x14b),'npmPackageName':a70_0x59c7f7(0x159),'skillSource':a70_0x59c7f7(0x14d),'npmRegistryBaseUrl':a70_0x59c7f7(0x15f),'envPrefix':a70_0x59c7f7(0x152),'legacyEnvPrefixes':[a70_0x59c7f7(0x151)],'configFileNames':[a70_0x59c7f7(0x155),a70_0x59c7f7(0x14a)],'newConfigFileName':a70_0x59c7f7(0x155),'homeDirName':a70_0x59c7f7(0x149),'logFileName':a70_0x59c7f7(0x14e),'invokeSource':a70_0x59c7f7(0x154),'userCenterDisplayName':a70_0x59c7f7(0x15b),'skipNpxSkillsEnvSuffix':a70_0x59c7f7(0x161),'domains':{'production':{'user':a70_0x59c7f7(0x165),'api':a70_0x59c7f7(0x14f),'runtime':'https://runtime.lovrabet.com','skillhub':a70_0x59c7f7(0x15d)},'nonProduction':{'user':a70_0x59c7f7(0x160),'api':'https://daily-api.lovrabet.com','runtime':a70_0x59c7f7(0x164),'skillhub':'https://skills-daily.lovrabet.com'}},'accessKeyCreatePath':'/user/ak'};export function productEnvName(_0x365ad0){const _0xe9236b=a70_0x59c7f7;return PRODUCT_CONFIG[_0xe9236b(0x163)]+'_'+_0x365ad0;}export function productEnvNames(_0x461216){const _0x2a917d=a70_0x59c7f7;return[productEnvName(_0x461216),...PRODUCT_CONFIG[_0x2a917d(0x166)][_0x2a917d(0x153)](_0x50f43c=>_0x50f43c+'_'+_0x461216)];}export function productEnv(_0x156c22){for(const _0xc84e42 of productEnvNames(_0x156c22)){const _0x460798=process.env[_0xc84e42];if(_0x460798!==undefined)return _0x460798;}return undefined;}
1
+ function a70_0x56e0(_0x300c5e,_0x18faea){_0x300c5e=_0x300c5e-0xab;const _0x23cf44=a70_0x23cf();let _0x56e051=_0x23cf44[_0x300c5e];return _0x56e051;}const a70_0x284193=a70_0x56e0;(function(_0x4f498f,_0xba7a4f){const _0x3c3d1f=a70_0x56e0,_0x4f6cbb=_0x4f498f();while(!![]){try{const _0x1f002e=-parseInt(_0x3c3d1f(0xc1))/0x1+-parseInt(_0x3c3d1f(0xc5))/0x2*(-parseInt(_0x3c3d1f(0xc7))/0x3)+-parseInt(_0x3c3d1f(0xb6))/0x4*(parseInt(_0x3c3d1f(0xac))/0x5)+parseInt(_0x3c3d1f(0xb2))/0x6*(-parseInt(_0x3c3d1f(0xc6))/0x7)+-parseInt(_0x3c3d1f(0xb5))/0x8*(-parseInt(_0x3c3d1f(0xaf))/0x9)+-parseInt(_0x3c3d1f(0xc4))/0xa*(-parseInt(_0x3c3d1f(0xc0))/0xb)+parseInt(_0x3c3d1f(0xc2))/0xc;if(_0x1f002e===_0xba7a4f)break;else _0x4f6cbb['push'](_0x4f6cbb['shift']());}catch(_0x31ef09){_0x4f6cbb['push'](_0x4f6cbb['shift']());}}}(a70_0x23cf,0xcb6aa));function a70_0x23cf(){const _0x406c11=['SKIP_NPX_SKILLS','https://skills-daily.lovrabet.com','/user/ak','https://registry.npmjs.org','11ecOGHF','464723tZBEjy','12552300qWXGku','cli:lovrabet-runtime','13705210ynlovn','338grwRCq','28lLVatR','16569gkoPTN','.lovrabetrc','lovrabet/lovrabet-cli','.lovrabet','https://user.lovrabet.com','.lovrabet-runtime.log','34135KGcjaB','map','@lovrabet/lovrabet-cli','81jbYqga','https://user-daily.lovrabet.com','envPrefix','2141868rOntuw','LOVRABET','RABETBASE','197728xBJXtx','496yMDsRk','.lovrabet.json','https://api.lovrabet.com','https://runtime.lovrabet.com','https://daily-api.lovrabet.com','https://skills.lovrabet.com'];a70_0x23cf=function(){return _0x406c11;};return a70_0x23cf();}export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':a70_0x284193(0xae),'skillSource':a70_0x284193(0xc9),'npmRegistryBaseUrl':a70_0x284193(0xbf),'envPrefix':a70_0x284193(0xb3),'legacyEnvPrefixes':[a70_0x284193(0xb4)],'configFileNames':[a70_0x284193(0xb7),a70_0x284193(0xc8)],'newConfigFileName':a70_0x284193(0xb7),'homeDirName':a70_0x284193(0xca),'logFileName':a70_0x284193(0xab),'invokeSource':a70_0x284193(0xc3),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a70_0x284193(0xbc),'domains':{'production':{'user':a70_0x284193(0xcb),'api':a70_0x284193(0xb8),'runtime':a70_0x284193(0xb9),'skillhub':a70_0x284193(0xbb)},'nonProduction':{'user':a70_0x284193(0xb0),'api':a70_0x284193(0xba),'runtime':'https://daily-runtime.lovrabet.com','skillhub':a70_0x284193(0xbd)}},'accessKeyCreatePath':a70_0x284193(0xbe)};export function productEnvName(_0x3ee8ee){const _0x2fe328=a70_0x284193;return PRODUCT_CONFIG[_0x2fe328(0xb1)]+'_'+_0x3ee8ee;}export function productEnvNames(_0x34be62){const _0x37aca3=a70_0x284193;return[productEnvName(_0x34be62),...PRODUCT_CONFIG['legacyEnvPrefixes'][_0x37aca3(0xad)](_0x4cdfde=>_0x4cdfde+'_'+_0x34be62)];}export function productEnv(_0x4c2c5b){for(const _0x532de3 of productEnvNames(_0x4c2c5b)){const _0xa973dc=process.env[_0x532de3];if(_0xa973dc!==undefined)return _0xa973dc;}return undefined;}
@@ -1 +1 @@
1
- function a71_0x13b8(){const _0x47d5e9=['write','8022120XbRbGD','2zQFDKL','2333517pwiati','read','high-risk-write','5279048jSSitt','11741296qfcllE','9lAfbyI','120zTSeFg','830rgnzsX','599467ECruGn','431884LBoEDS','144325cCLaME'];a71_0x13b8=function(){return _0x47d5e9;};return a71_0x13b8();}const a71_0x1d9487=a71_0x450d;function a71_0x450d(_0x25c101,_0x53d6c5){_0x25c101=_0x25c101-0x1f4;const _0x13b874=a71_0x13b8();let _0x450d3a=_0x13b874[_0x25c101];return _0x450d3a;}(function(_0x46284a,_0x2ae37e){const _0xe63a44=a71_0x450d,_0x8400d9=_0x46284a();while(!![]){try{const _0x2d3d48=parseInt(_0xe63a44(0x1f6))/0x1+parseInt(_0xe63a44(0x1fa))/0x2*(-parseInt(_0xe63a44(0x1fb))/0x3)+parseInt(_0xe63a44(0x201))/0x4*(-parseInt(_0xe63a44(0x1f7))/0x5)+-parseInt(_0xe63a44(0x1f9))/0x6+-parseInt(_0xe63a44(0x1ff))/0x7+parseInt(_0xe63a44(0x1fe))/0x8*(parseInt(_0xe63a44(0x200))/0x9)+-parseInt(_0xe63a44(0x1f4))/0xa*(-parseInt(_0xe63a44(0x1f5))/0xb);if(_0x2d3d48===_0x2ae37e)break;else _0x8400d9['push'](_0x8400d9['shift']());}catch(_0x5ca502){_0x8400d9['push'](_0x8400d9['shift']());}}}(a71_0x13b8,0xe99cf));export const RISK_LEVEL_VALUES=[a71_0x1d9487(0x1fc),a71_0x1d9487(0x1f8),a71_0x1d9487(0x1fd)];
1
+ const a71_0xb90f5b=a71_0x5948;(function(_0x31bf4e,_0xa89e9b){const _0x41de1f=a71_0x5948,_0x407bcf=_0x31bf4e();while(!![]){try{const _0x125195=parseInt(_0x41de1f(0x79))/0x1+-parseInt(_0x41de1f(0x7a))/0x2*(-parseInt(_0x41de1f(0x72))/0x3)+-parseInt(_0x41de1f(0x76))/0x4*(-parseInt(_0x41de1f(0x7d))/0x5)+-parseInt(_0x41de1f(0x7c))/0x6+-parseInt(_0x41de1f(0x74))/0x7*(parseInt(_0x41de1f(0x7b))/0x8)+parseInt(_0x41de1f(0x75))/0x9+-parseInt(_0x41de1f(0x78))/0xa;if(_0x125195===_0xa89e9b)break;else _0x407bcf['push'](_0x407bcf['shift']());}catch(_0x228466){_0x407bcf['push'](_0x407bcf['shift']());}}}(a71_0xbf98,0x63951));function a71_0x5948(_0x2ae529,_0x423ce0){_0x2ae529=_0x2ae529-0x72;const _0xbf9810=a71_0xbf98();let _0x5948de=_0xbf9810[_0x2ae529];return _0x5948de;}function a71_0xbf98(){const _0x2c80b6=['68805bSYsiT','4QONWsu','read','1636270Gdjjuq','399987BDbcDu','1105368jpqnoa','977104aQzDqC','1711386LZvPMl','92845GweRSQ','3FztUsw','high-risk-write','7NTeUAA'];a71_0xbf98=function(){return _0x2c80b6;};return a71_0xbf98();}export const RISK_LEVEL_VALUES=[a71_0xb90f5b(0x77),'write',a71_0xb90f5b(0x73)];
@@ -1 +1 @@
1
- const a72_0x1da909=a72_0x34c7;(function(_0x1dda7d,_0x3bb082){const _0x3f688c=a72_0x34c7,_0x2f999b=_0x1dda7d();while(!![]){try{const _0x223414=-parseInt(_0x3f688c(0x14a))/0x1*(parseInt(_0x3f688c(0x146))/0x2)+parseInt(_0x3f688c(0x148))/0x3+parseInt(_0x3f688c(0x14f))/0x4+-parseInt(_0x3f688c(0x149))/0x5*(-parseInt(_0x3f688c(0x147))/0x6)+-parseInt(_0x3f688c(0x152))/0x7+parseInt(_0x3f688c(0x14b))/0x8+parseInt(_0x3f688c(0x150))/0x9*(-parseInt(_0x3f688c(0x14c))/0xa);if(_0x223414===_0x3bb082)break;else _0x2f999b['push'](_0x2f999b['shift']());}catch(_0x2d6731){_0x2f999b['push'](_0x2f999b['shift']());}}}(a72_0x4400,0x43689));function a72_0x4400(){const _0xf36ef=['2105360SewdjM','316930zIxWQt','user','production','1737940dZGLxH','117YMFoJS','domains','2899330GjbtFb','2alDiHo','18ofxVyK','890580iIHobf','758200atWaWU','347131tSTKbt'];a72_0x4400=function(){return _0xf36ef;};return a72_0x4400();}function a72_0x34c7(_0x46a335,_0x2d5ced){_0x46a335=_0x46a335-0x146;const _0x4400c5=a72_0x4400();let _0x34c7a1=_0x4400c5[_0x46a335];return _0x34c7a1;}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a72_0x1da909(0x151)][a72_0x1da909(0x14e)][a72_0x1da909(0x14d)]+PRODUCT_CONFIG['accessKeyCreatePath'];
1
+ function a72_0xd0ef(){const _0x24dfde=['production','2257352abjXjV','1082873anNYqc','6248610OaOhHx','2083059njqDiC','56CunZJu','domains','581382JVJkcS','140YULfTk','2678674AWOjwf','67412ebYphP'];a72_0xd0ef=function(){return _0x24dfde;};return a72_0xd0ef();}function a72_0x7fc0(_0x2aa9cd,_0x4b0d78){_0x2aa9cd=_0x2aa9cd-0x16d;const _0xd0efff=a72_0xd0ef();let _0x7fc0d8=_0xd0efff[_0x2aa9cd];return _0x7fc0d8;}const a72_0x3c14fb=a72_0x7fc0;(function(_0x470f5f,_0x36af6a){const _0x52648e=a72_0x7fc0,_0x2011f9=_0x470f5f();while(!![]){try{const _0x14efc5=-parseInt(_0x52648e(0x177))/0x1+parseInt(_0x52648e(0x173))/0x2+parseInt(_0x52648e(0x16e))/0x3+parseInt(_0x52648e(0x174))/0x4*(-parseInt(_0x52648e(0x172))/0x5)+parseInt(_0x52648e(0x171))/0x6*(-parseInt(_0x52648e(0x16f))/0x7)+parseInt(_0x52648e(0x176))/0x8+parseInt(_0x52648e(0x16d))/0x9;if(_0x14efc5===_0x36af6a)break;else _0x2011f9['push'](_0x2011f9['shift']());}catch(_0x4250cf){_0x2011f9['push'](_0x2011f9['shift']());}}}(a72_0xd0ef,0xa6118));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a72_0x3c14fb(0x170)][a72_0x3c14fb(0x175)]['user']+PRODUCT_CONFIG['accessKeyCreatePath'];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a73_0x144905=a73_0x4c2c;(function(_0xf9115c,_0x2b70ca){const _0xbedd63=a73_0x4c2c,_0x22b9b7=_0xf9115c();while(!![]){try{const _0x569907=-parseInt(_0xbedd63(0x99))/0x1*(-parseInt(_0xbedd63(0xce))/0x2)+parseInt(_0xbedd63(0xe5))/0x3*(parseInt(_0xbedd63(0xe1))/0x4)+-parseInt(_0xbedd63(0xae))/0x5*(parseInt(_0xbedd63(0xa0))/0x6)+-parseInt(_0xbedd63(0xa8))/0x7*(parseInt(_0xbedd63(0xd1))/0x8)+-parseInt(_0xbedd63(0xcb))/0x9*(parseInt(_0xbedd63(0xb8))/0xa)+-parseInt(_0xbedd63(0xba))/0xb*(parseInt(_0xbedd63(0xe8))/0xc)+-parseInt(_0xbedd63(0xa3))/0xd*(-parseInt(_0xbedd63(0xc1))/0xe);if(_0x569907===_0x2b70ca)break;else _0x22b9b7['push'](_0x22b9b7['shift']());}catch(_0xffeee5){_0x22b9b7['push'](_0x22b9b7['shift']());}}}(a73_0x19ce,0x4f3ec));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[a73_0x144905(0xb6)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a73_0x144905(0xc2)];function resolveConfigPath(_0x59e136){for(const _0x3cdd52 of CONFIG_NAMES){const _0x6863b=resolve(_0x59e136,_0x3cdd52);if(existsSync(_0x6863b))return _0x6863b;}return undefined;}export function resolveWriteConfigPath(_0xfb370f){const _0x271013=a73_0x144905,_0x661f=_0xfb370f===_0x271013(0xbb)?process[_0x271013(0x9f)]():homedir(),_0x5084e8=resolveConfigPath(_0x661f);return _0x5084e8??resolve(_0x661f,NEW_CONFIG_NAME);}export function readConfigFile(_0x316d46){const _0x3f07ad=a73_0x144905;try{if(existsSync(_0x316d46)){const _0x2fed6a=readFileSync(_0x316d46,{'encoding':_0x3f07ad(0xa2)});if(_0x2fed6a){const _0x18ded3=JSON[_0x3f07ad(0xe0)](_0x2fed6a);return migrateOnlineEnv(_0x316d46,_0x18ded3),_0x18ded3;}}}catch{}return{};}function migrateOnlineEnv(_0xa6bb49,_0x5b1e9f){const _0x187499=a73_0x144905;let _0x1b525e=![];_0x5b1e9f[_0x187499(0xb2)]==='online'&&(_0x5b1e9f[_0x187499(0xb2)]=_0x187499(0xda),_0x1b525e=!![]);if(_0x5b1e9f[_0x187499(0xdd)]&&typeof _0x5b1e9f[_0x187499(0xdd)]===_0x187499(0xab))for(const _0x4a717a of Object[_0x187499(0xc8)](_0x5b1e9f[_0x187499(0xdd)])){_0x4a717a&&_0x4a717a['env']===_0x187499(0xd3)&&(_0x4a717a[_0x187499(0xb2)]=_0x187499(0xda),_0x1b525e=!![]);}if(_0x1b525e)try{writeConfigFile(_0xa6bb49,_0x5b1e9f);}catch{}}export function writeConfigFile(_0xa0ac7,_0x32f467){const _0x495f5b=a73_0x144905,_0x53afeb=dirname(_0xa0ac7);!existsSync(_0x53afeb)&&mkdirSync(_0x53afeb,{'recursive':!![]});const _0x2edf6b=_0xa0ac7+_0x495f5b(0x9d);try{writeFileSync(_0x2edf6b,JSON[_0x495f5b(0xd6)](_0x32f467,null,0x2)+'\x0a',{'encoding':_0x495f5b(0xa2),'mode':0x180});try{renameSync(_0x2edf6b,_0xa0ac7);}catch(_0x96238){if(_0x96238[_0x495f5b(0xa7)]==='EPERM'||_0x96238['code']===_0x495f5b(0xb4)||_0x96238['code']==='EACCES'){writeFileSync(_0xa0ac7,JSON['stringify'](_0x32f467,null,0x2)+'\x0a',{'encoding':_0x495f5b(0xa2)});try{unlinkSync(_0x2edf6b);}catch{}}else throw _0x96238;}}catch(_0x4a618d){try{unlinkSync(_0x2edf6b);}catch{}throw _0x4a618d;}}export function isNonInteractiveMode(_0x3c5995){const _0x51705f=a73_0x144905;return!!(_0x3c5995[_0x51705f(0xde)]||_0x3c5995['ci']||productEnvNames('CI')[_0x51705f(0xbf)](_0x3d9de3=>process.env[_0x3d9de3]===_0x51705f(0xaf))||process.env.CI==='true'||!process[_0x51705f(0xd5)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x2875c9=a73_0x144905;if(!process[_0x2875c9(0xd9)][_0x2875c9(0xdf)])return![];try{const _0x3780ad=process[_0x2875c9(0xd9)][_0x2875c9(0xac)];return process['stdin']['setRawMode'](!![]),process['stdin'][_0x2875c9(0x9e)](_0x3780ad??![]),!![];}catch{return![];}}export async function createContext(_0x273725){const _0x295e58=a73_0x144905,_0x408a8f=readRawConfig(),_0x233303=buildConfig(_0x408a8f,_0x273725);await initGlobalEnvironment(_0x233303);const {getUserDomain:_0x41d048,getApiDomain:_0x58b1a1}=await import(_0x295e58(0xcf)),_0x410f67={'apiDomain':_0x58b1a1(),'userDomain':_0x41d048()},_0x20f25d=await buildAuth(_0x233303);logger[_0x295e58(0xb1)](process[_0x295e58(0x9f)]());const _0x3970e3=(CLI_BIN_NAME+'\x20'+process[_0x295e58(0xc9)][_0x295e58(0xa6)](0x2)['join']('\x20'))[_0x295e58(0xb0)]();logger[_0x295e58(0xc3)](_0x3970e3);const _0xa87d7b=isNonInteractiveMode(_0x273725);return{'config':_0x233303,'auth':_0x20f25d,'logger':logger,'env':_0x410f67,'nonInteractive':_0xa87d7b};}export function buildConfigFromFlags(_0x378c32){return buildConfig(readRawConfig(),_0x378c32);}function a73_0x19ce(){const _0x2e08a5=['20632kPolUW','raw','online','FORMAT','stdout','stringify','PAGE_SIZE','userDomain','stdin','production','top-level','development','apps','nonInteractive','isTTY','parse','4cNCIah','daily','locale','defaultApp','1113243OXFiCJ','high-risk-write','pageSize','552LEFzXn','233935nRONRY','authRequired','accessKey','appcode','.tmp','setRawMode','cwd','809742QaeUEV','empty','utf8','1014cQBFBD','skillHubDomain','format','slice','code','301kSssLm','VERBOSE','local-alias','object','isRaw','explicit','5XuJQSO','true','trim','setLogPath','env','write','EXDEV','projectConfig','configFileNames','APP','340FecTrf','string','141394RbXkUg','project','missing','error','host','some','riskLevel','134414skmdnv','newConfigFileName','setRawCommand','apiDomain','./constant/env.js','inherit','find','values','argv','app','50868mMwXzl','ENV','APPCODE','2Ojdajk','./constant/domain.js','global'];a73_0x19ce=function(){return _0x2e08a5;};return a73_0x19ce();}export function getLocalAppAliases(_0x3ff785){const _0xddc0d1=a73_0x144905;return _0x3ff785['apps']&&typeof _0x3ff785[_0xddc0d1(0xdd)]===_0xddc0d1(0xab)?_0x3ff785[_0xddc0d1(0xdd)]:{};}export function resolveLocalAppAliasCode(_0x1ed22a,_0x5f1c52){const _0x43f326=a73_0x144905;if(!_0x5f1c52)return undefined;const _0x3f6258=getLocalAppAliases(_0x1ed22a)[_0x5f1c52],_0x222d36=_0x3f6258?.[_0x43f326(0x9c)];return typeof _0x222d36===_0x43f326(0xb9)&&_0x222d36[_0x43f326(0xb0)]()?_0x222d36[_0x43f326(0xb0)]():undefined;}export function readAppCodeFromConfig(){const _0x1c8fdb=a73_0x144905,_0xf2f6ed=readRawConfig(),_0x463c17=_0xf2f6ed['appcode']??_0xf2f6ed['app'];if(typeof _0x463c17===_0x1c8fdb(0xb9)&&_0x463c17['trim']())return _0x463c17[_0x1c8fdb(0xb0)]();const _0x3796c6=resolveLocalAppAliasCode(_0xf2f6ed,typeof _0xf2f6ed[_0x1c8fdb(0xe4)]==='string'?_0xf2f6ed[_0x1c8fdb(0xe4)]:undefined);if(_0x3796c6)return _0x3796c6;const _0x3b453b=normalizeEnv(String(_0xf2f6ed[_0x1c8fdb(0xb2)]||'production')),_0x13972b=isDaily(_0x3b453b)?_0x1c8fdb(0xe2):isDev(_0x3b453b)?_0x1c8fdb(0xdc):'production',_0x166665=resolveCachedAppCode(typeof _0xf2f6ed[_0x1c8fdb(0xe4)]==='string'?_0xf2f6ed[_0x1c8fdb(0xe4)]:undefined,_0x13972b,typeof _0xf2f6ed['accessKey']==='string'?_0xf2f6ed[_0x1c8fdb(0x9b)]:undefined);if(_0x166665)return _0x166665;const _0x14f10b=Object['values'](getLocalAppAliases(_0xf2f6ed))[_0x1c8fdb(0xc7)](_0x2f7bac=>_0x2f7bac?.[_0x1c8fdb(0x9c)]);return typeof _0x14f10b?.[_0x1c8fdb(0x9c)]===_0x1c8fdb(0xb9)&&_0x14f10b['appcode'][_0x1c8fdb(0xb0)]()?_0x14f10b['appcode'][_0x1c8fdb(0xb0)]():undefined;}export function readScopedConfig(_0xf8ee3f){const _0x5a1aad=a73_0x144905,_0x5b2fb3=_0xf8ee3f[_0x5a1aad(0xd0)]?_0x5a1aad(0xd0):_0x5a1aad(0xbb);return readConfigFile(resolveWriteConfigPath(_0x5b2fb3));}export function writeScopedConfig(_0x4f3bd0,_0x36150d){const _0x189362=a73_0x144905,_0x25224d=_0x36150d[_0x189362(0xd0)]?'global':_0x189362(0xbb);writeConfigFile(resolveWriteConfigPath(_0x25224d),_0x4f3bd0);}export async function initGlobalEnvironment(_0x320cc5){const _0x533226=a73_0x144905,{initEnv:_0xaf059a}=await import(_0x533226(0xc5));_0xaf059a(_0x320cc5[_0x533226(0xb2)]);const {initDomains:_0x166bb0}=await import('./constant/domain.js');_0x166bb0({'apiDomain':_0x320cc5[_0x533226(0xd2)][_0x533226(0xc4)]||_0x320cc5[_0x533226(0xd2)][_0x533226(0xbe)]||undefined,'userDomain':_0x320cc5['raw'][_0x533226(0xd8)]||undefined,'runtimeDomain':_0x320cc5[_0x533226(0xd2)]['runtimeDomain']||undefined,'skillHubDomain':_0x320cc5['raw'][_0x533226(0xa4)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x10e212){const _0x4fb6a1=a73_0x144905;if(!existsSync(_0x10e212))return{'status':_0x4fb6a1(0xbc)};try{const _0x308845=readFileSync(_0x10e212,{'encoding':_0x4fb6a1(0xa2)});if(!_0x308845?.[_0x4fb6a1(0xb0)]())return{'status':_0x4fb6a1(0xa1)};const _0x5431c4=JSON[_0x4fb6a1(0xe0)](_0x308845);return{'status':'ok','data':_0x5431c4};}catch(_0x18192f){return{'status':_0x4fb6a1(0xbd),'message':_0x18192f instanceof Error?_0x18192f['message']:String(_0x18192f)};}}function a73_0x4c2c(_0x26d3e9,_0x2d349e){_0x26d3e9=_0x26d3e9-0x99;const _0x19ce42=a73_0x19ce();let _0x4c2ce9=_0x19ce42[_0x26d3e9];return _0x4c2ce9;}export function loadRawConfigLayers(_0x1cf735){const _0x160c83=a73_0x144905;let _0x1ea55c={},_0x32c4d3={},_0x56c661,_0x2a7d5e;try{_0x56c661=resolveConfigPath(homedir());if(_0x56c661){const _0x5e7821=readFileSync(_0x56c661,{'encoding':_0x160c83(0xa2)});if(_0x5e7821)_0x1ea55c=JSON[_0x160c83(0xe0)](_0x5e7821);}}catch{}try{const _0x4709e9=_0x1cf735||process['cwd']();_0x2a7d5e=resolveConfigPath(_0x4709e9);if(_0x2a7d5e){const _0x107124=readFileSync(_0x2a7d5e,{'encoding':'utf8'});if(_0x107124)_0x32c4d3=JSON[_0x160c83(0xe0)](_0x107124);}}catch{}return{'globalPath':_0x56c661,'projectPath':_0x2a7d5e,'globalConfig':_0x1ea55c,'projectConfig':_0x32c4d3};}function mergeRawConfigLayers(_0x21d37c){const _0x3a81c5=a73_0x144905,{globalConfig:_0x11a172,projectConfig:_0x47ae5d}=_0x21d37c;if(_0x47ae5d[_0x3a81c5(0xc6)]===![]){const _0x183239={..._0x47ae5d};return delete _0x183239['inherit'],_0x183239;}const _0x547911={..._0x11a172,..._0x47ae5d};if('defaultApp'in _0x47ae5d)_0x547911['defaultApp']=_0x47ae5d[_0x3a81c5(0xe4)];else _0x11a172['defaultApp']&&(_0x547911['defaultApp']=_0x11a172['defaultApp']);return _0x547911;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x2cd660){return mergeRawConfigLayers(loadRawConfigLayers(_0x2cd660));}export function readRawConfigWithLayers(_0x3452d6){const _0x4c9721=loadRawConfigLayers(_0x3452d6);return{'config':mergeRawConfigLayers(_0x4c9721),'layers':_0x4c9721};}export function resolveDefaultAppSource(_0x195ef7){const _0x4f17d5=a73_0x144905;if('defaultApp'in _0x195ef7[_0x4f17d5(0xb5)])return'project';if(_0x195ef7[_0x4f17d5(0xb5)][_0x4f17d5(0xc6)]===![])return null;if(_0x195ef7['globalConfig'][_0x4f17d5(0xe4)])return'global';return null;}function buildConfig(_0x380de8,_0x47f9b6){const _0x3b3e59=a73_0x144905,_0x3a4e74=_0x380de8[_0x3b3e59(0xe4)]||undefined,_0x22547f=_0x47f9b6[_0x3b3e59(0xca)]||env(_0x3b3e59(0xb7))||undefined,_0x25aa66=_0x22547f||_0x3a4e74||undefined,_0x5d04ec=env('ACCESS_KEY')||_0x380de8[_0x3b3e59(0x9b)]||undefined,_0xed78f5=_0x47f9b6[_0x3b3e59(0xb2)]||env(_0x3b3e59(0xcc))||_0x380de8[_0x3b3e59(0xb2)]||DEFAULT_CONFIG_VALUES[_0x3b3e59(0xb2)],_0x210289=normalizeEnv(String(_0xed78f5)),_0x495150=isDaily(_0x210289)?'daily':isDev(_0x210289)?_0x3b3e59(0xdc):_0x3b3e59(0xda),_0x107931=typeof _0x47f9b6[_0x3b3e59(0x9c)]===_0x3b3e59(0xb9)?_0x47f9b6['appcode']:undefined,_0x320c97=env(_0x3b3e59(0xcd)),_0x14fbc0=_0x22547f?undefined:_0x380de8[_0x3b3e59(0x9c)]||_0x380de8[_0x3b3e59(0xca)]||undefined,_0x2d9824=_0x22547f||(_0x14fbc0?undefined:_0x3a4e74),_0x548d6b=resolveLocalAppAliasCode(_0x380de8,_0x2d9824),_0x30088a=resolveCachedAppCode(_0x2d9824,_0x495150,_0x5d04ec),_0x193a1c=_0x107931||_0x320c97||_0x14fbc0||_0x548d6b||_0x30088a||undefined,_0x4ceae6=_0x107931?_0x3b3e59(0xad):_0x320c97?'env':_0x14fbc0?_0x3b3e59(0xdb):_0x548d6b?_0x3b3e59(0xaa):_0x30088a?'cache':undefined,_0x2cfb7d=_0x380de8[_0x3b3e59(0xe3)]||DEFAULT_CONFIG_VALUES['locale'],_0x25900d=undefined,_0x179dd0=_0x47f9b6[_0x3b3e59(0xa5)]||env(_0x3b3e59(0xd4))||_0x380de8[_0x3b3e59(0xa5)],_0x56877d=normalizeLegacyOutputFormat(_0x179dd0),_0x4d2ff9=env(_0x3b3e59(0xd7))||_0x380de8[_0x3b3e59(0xe7)],_0x1a4aa0=_0x4d2ff9?Number(_0x4d2ff9)||undefined:undefined,_0x515312=_0x380de8[_0x3b3e59(0xc0)]||_0x380de8['maxRisk'],_0x1220b2=_0x515312==='read'||_0x515312===_0x3b3e59(0xb3)||_0x515312===_0x3b3e59(0xe6)?_0x515312:DEFAULT_CONFIG_VALUES[_0x3b3e59(0xc0)],_0x55581b=env(_0x3b3e59(0xa9)),_0x52e8e6=_0x55581b==='1'||_0x55581b===_0x3b3e59(0xaf);return{'appCode':typeof _0x193a1c===_0x3b3e59(0xb9)&&_0x193a1c[_0x3b3e59(0xb0)]()?_0x193a1c[_0x3b3e59(0xb0)]():undefined,'appCodeSource':_0x4ceae6,'env':_0x495150,'locale':_0x2cfb7d,'cookie':_0x25900d,'accessKey':_0x5d04ec,'format':_0x56877d,'pageSize':_0x1a4aa0,'riskLevel':_0x1220b2,'verbose':_0x52e8e6,'defaultApp':_0x3a4e74,'currentApp':typeof _0x25aa66==='string'?_0x25aa66:undefined,'raw':_0x380de8};}function env(_0x25f4e6){return productEnv(_0x25f4e6);}async function buildAuth(_0x65159d){const _0x47eba7=a73_0x144905,_0x18642a='',_0x4c401a=!!_0x65159d[_0x47eba7(0x9b)];return{'cookie':_0x18642a,'isLoggedIn':_0x4c401a,async 'getOrLogin'(){const _0xfcd931=_0x47eba7;if(_0x4c401a)return _0x18642a;throw CliErrors[_0xfcd931(0x9a)]();}};}
1
+ const a73_0x28d0f8=a73_0x3d41;(function(_0x2a3b4f,_0x540fa3){const _0x2c9245=a73_0x3d41,_0x547186=_0x2a3b4f();while(!![]){try{const _0x3ff349=-parseInt(_0x2c9245(0x1bf))/0x1+-parseInt(_0x2c9245(0x1d4))/0x2+parseInt(_0x2c9245(0x1e4))/0x3+-parseInt(_0x2c9245(0x1d1))/0x4*(parseInt(_0x2c9245(0x1c2))/0x5)+-parseInt(_0x2c9245(0x1b1))/0x6*(parseInt(_0x2c9245(0x1e9))/0x7)+parseInt(_0x2c9245(0x1e7))/0x8+-parseInt(_0x2c9245(0x1c7))/0x9*(-parseInt(_0x2c9245(0x1d8))/0xa);if(_0x3ff349===_0x540fa3)break;else _0x547186['push'](_0x547186['shift']());}catch(_0x1db23e){_0x547186['push'](_0x547186['shift']());}}}(a73_0x23c9,0xe93c0));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a73_0x28d0f8(0x1bc)];function resolveConfigPath(_0xdc3f0e){for(const _0x3d2ad0 of CONFIG_NAMES){const _0x2d9914=resolve(_0xdc3f0e,_0x3d2ad0);if(existsSync(_0x2d9914))return _0x2d9914;}return undefined;}export function resolveWriteConfigPath(_0x1ac316){const _0x25d01b=a73_0x28d0f8,_0x51e63d=_0x1ac316===_0x25d01b(0x1d0)?process[_0x25d01b(0x1ba)]():homedir(),_0x375259=resolveConfigPath(_0x51e63d);return _0x375259??resolve(_0x51e63d,NEW_CONFIG_NAME);}export function readConfigFile(_0x403bd5){const _0x592d89=a73_0x28d0f8;try{if(existsSync(_0x403bd5)){const _0x2c3683=readFileSync(_0x403bd5,{'encoding':_0x592d89(0x1ea)});if(_0x2c3683){const _0x4e3773=JSON[_0x592d89(0x1e8)](_0x2c3683);return migrateOnlineEnv(_0x403bd5,_0x4e3773),_0x4e3773;}}}catch{}return{};}function migrateOnlineEnv(_0x53efad,_0x882ea7){const _0x345a66=a73_0x28d0f8;let _0x441f60=![];_0x882ea7[_0x345a66(0x1c1)]==='online'&&(_0x882ea7['env']=_0x345a66(0x1cb),_0x441f60=!![]);if(_0x882ea7[_0x345a66(0x1ed)]&&typeof _0x882ea7[_0x345a66(0x1ed)]===_0x345a66(0x1ee))for(const _0xb6fad9 of Object[_0x345a66(0x1c5)](_0x882ea7[_0x345a66(0x1ed)])){_0xb6fad9&&_0xb6fad9[_0x345a66(0x1c1)]==='online'&&(_0xb6fad9[_0x345a66(0x1c1)]=_0x345a66(0x1cb),_0x441f60=!![]);}if(_0x441f60)try{writeConfigFile(_0x53efad,_0x882ea7);}catch{}}export function writeConfigFile(_0x418b35,_0x223a04){const _0x5c0cea=a73_0x28d0f8,_0x15f86c=dirname(_0x418b35);!existsSync(_0x15f86c)&&mkdirSync(_0x15f86c,{'recursive':!![]});const _0x2b344f=_0x418b35+'.tmp';try{writeFileSync(_0x2b344f,JSON[_0x5c0cea(0x1d5)](_0x223a04,null,0x2)+'\x0a',{'encoding':_0x5c0cea(0x1ea),'mode':0x180});try{renameSync(_0x2b344f,_0x418b35);}catch(_0x45cd78){if(_0x45cd78[_0x5c0cea(0x1cc)]==='EPERM'||_0x45cd78['code']===_0x5c0cea(0x1b5)||_0x45cd78[_0x5c0cea(0x1cc)]==='EACCES'){writeFileSync(_0x418b35,JSON[_0x5c0cea(0x1d5)](_0x223a04,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x2b344f);}catch{}}else throw _0x45cd78;}}catch(_0x1b1656){try{unlinkSync(_0x2b344f);}catch{}throw _0x1b1656;}}export function isNonInteractiveMode(_0x2c3a22){const _0xa5c983=a73_0x28d0f8;return!!(_0x2c3a22[_0xa5c983(0x1e3)]||_0x2c3a22['ci']||productEnvNames('CI')[_0xa5c983(0x1d9)](_0x2a4d79=>process.env[_0x2a4d79]===_0xa5c983(0x1c4))||process.env.CI===_0xa5c983(0x1c4)||!process[_0xa5c983(0x1bd)][_0xa5c983(0x1c8)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x27a3e9=a73_0x28d0f8;if(!process[_0x27a3e9(0x1eb)][_0x27a3e9(0x1c8)])return![];try{const _0xf6ea14=process[_0x27a3e9(0x1eb)][_0x27a3e9(0x1e5)];return process[_0x27a3e9(0x1eb)]['setRawMode'](!![]),process[_0x27a3e9(0x1eb)]['setRawMode'](_0xf6ea14??![]),!![];}catch{return![];}}export async function createContext(_0xdd6d04){const _0x54f1ee=a73_0x28d0f8,_0x10e7a0=readRawConfig(),_0x3c8655=buildConfig(_0x10e7a0,_0xdd6d04);await initGlobalEnvironment(_0x3c8655);const {getUserDomain:_0x502a74,getApiDomain:_0x467c03}=await import('./constant/domain.js'),_0xf662a5={'apiDomain':_0x467c03(),'userDomain':_0x502a74()},_0xd3e158=await buildAuth(_0x3c8655);logger['setLogPath'](process[_0x54f1ee(0x1ba)]());const _0x2ea2b9=(CLI_BIN_NAME+'\x20'+process[_0x54f1ee(0x1f0)]['slice'](0x2)[_0x54f1ee(0x1d7)]('\x20'))[_0x54f1ee(0x1d6)]();logger['setRawCommand'](_0x2ea2b9);const _0xbc6f54=isNonInteractiveMode(_0xdd6d04);return{'config':_0x3c8655,'auth':_0xd3e158,'logger':logger,'env':_0xf662a5,'nonInteractive':_0xbc6f54};}export function buildConfigFromFlags(_0x15242b){return buildConfig(readRawConfig(),_0x15242b);}export function getLocalAppAliases(_0x25e7a1){const _0x14e43f=a73_0x28d0f8;return _0x25e7a1[_0x14e43f(0x1ed)]&&typeof _0x25e7a1[_0x14e43f(0x1ed)]===_0x14e43f(0x1ee)?_0x25e7a1[_0x14e43f(0x1ed)]:{};}export function resolveLocalAppAliasCode(_0x42541a,_0x5b79af){const _0x1cc3ba=a73_0x28d0f8;if(!_0x5b79af)return undefined;const _0x258592=getLocalAppAliases(_0x42541a)[_0x5b79af],_0x104512=_0x258592?.[_0x1cc3ba(0x1e6)];return typeof _0x104512===_0x1cc3ba(0x1b6)&&_0x104512[_0x1cc3ba(0x1d6)]()?_0x104512[_0x1cc3ba(0x1d6)]():undefined;}export function readAppCodeFromConfig(){const _0x1ce69a=a73_0x28d0f8,_0x198f97=readRawConfig(),_0x10439d=_0x198f97['appcode']??_0x198f97[_0x1ce69a(0x1e1)];if(typeof _0x10439d===_0x1ce69a(0x1b6)&&_0x10439d[_0x1ce69a(0x1d6)]())return _0x10439d[_0x1ce69a(0x1d6)]();const _0x221b18=resolveLocalAppAliasCode(_0x198f97,typeof _0x198f97['defaultApp']==='string'?_0x198f97[_0x1ce69a(0x1b3)]:undefined);if(_0x221b18)return _0x221b18;const _0x548bc=normalizeEnv(String(_0x198f97['env']||'production')),_0x5c5402=isDaily(_0x548bc)?_0x1ce69a(0x1d2):isDev(_0x548bc)?_0x1ce69a(0x1dd):_0x1ce69a(0x1cb),_0x4dd917=resolveCachedAppCode(typeof _0x198f97[_0x1ce69a(0x1b3)]===_0x1ce69a(0x1b6)?_0x198f97[_0x1ce69a(0x1b3)]:undefined,_0x5c5402,typeof _0x198f97[_0x1ce69a(0x1c6)]===_0x1ce69a(0x1b6)?_0x198f97[_0x1ce69a(0x1c6)]:undefined);if(_0x4dd917)return _0x4dd917;const _0x296e46=Object[_0x1ce69a(0x1c5)](getLocalAppAliases(_0x198f97))[_0x1ce69a(0x1df)](_0x158f1c=>_0x158f1c?.[_0x1ce69a(0x1e6)]);return typeof _0x296e46?.[_0x1ce69a(0x1e6)]===_0x1ce69a(0x1b6)&&_0x296e46[_0x1ce69a(0x1e6)][_0x1ce69a(0x1d6)]()?_0x296e46[_0x1ce69a(0x1e6)][_0x1ce69a(0x1d6)]():undefined;}export function readScopedConfig(_0xf19d85){const _0x2a8c21=a73_0x28d0f8,_0x301b57=_0xf19d85[_0x2a8c21(0x1dc)]?'global':'project';return readConfigFile(resolveWriteConfigPath(_0x301b57));}export function writeScopedConfig(_0x7523fb,_0x3e672a){const _0xfbfc7f=a73_0x28d0f8,_0x2d4ffa=_0x3e672a[_0xfbfc7f(0x1dc)]?_0xfbfc7f(0x1dc):_0xfbfc7f(0x1d0);writeConfigFile(resolveWriteConfigPath(_0x2d4ffa),_0x7523fb);}export async function initGlobalEnvironment(_0x51c2e3){const _0x27a43a=a73_0x28d0f8,{initEnv:_0x2fecef}=await import('./constant/env.js');_0x2fecef(_0x51c2e3[_0x27a43a(0x1c1)]);const {initDomains:_0x47712a}=await import('./constant/domain.js');_0x47712a({'apiDomain':_0x51c2e3[_0x27a43a(0x1b7)][_0x27a43a(0x1b8)]||_0x51c2e3[_0x27a43a(0x1b7)][_0x27a43a(0x1be)]||undefined,'userDomain':_0x51c2e3[_0x27a43a(0x1b7)][_0x27a43a(0x1bb)]||undefined,'runtimeDomain':_0x51c2e3['raw'][_0x27a43a(0x1b2)]||undefined,'skillHubDomain':_0x51c2e3[_0x27a43a(0x1b7)]['skillHubDomain']||undefined});}export function getProjectConfigPath(){const _0x40d149=a73_0x28d0f8;return resolveConfigPath(process[_0x40d149(0x1ba)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}function a73_0x23c9(){const _0x41aae8=['empty','write','high-risk-write','project','4KiYXuy','daily','inherit','2123820kHmsSU','stringify','trim','join','6920QtQzYa','some','FORMAT','riskLevel','global','development','cache','find','APP','app','authRequired','nonInteractive','1650474JoQfnE','isRaw','appcode','5268432ousaeQ','parse','2949527nXJBxC','utf8','stdin','locale','apps','object','message','argv','12dumuJY','runtimeDomain','defaultApp','explicit','EXDEV','string','raw','apiDomain','projectConfig','cwd','userDomain','newConfigFileName','stdout','host','167201cUNZNC','missing','env','4294495dwMJNp','ENV','true','values','accessKey','34821JpvBmy','isTTY','pageSize','format','production','code'];a73_0x23c9=function(){return _0x41aae8;};return a73_0x23c9();}export function inspectCliConfigJsonFile(_0x35f36a){const _0xfa7083=a73_0x28d0f8;if(!existsSync(_0x35f36a))return{'status':_0xfa7083(0x1c0)};try{const _0x5bab93=readFileSync(_0x35f36a,{'encoding':'utf8'});if(!_0x5bab93?.['trim']())return{'status':_0xfa7083(0x1cd)};const _0x48053f=JSON[_0xfa7083(0x1e8)](_0x5bab93);return{'status':'ok','data':_0x48053f};}catch(_0x1c13af){return{'status':'error','message':_0x1c13af instanceof Error?_0x1c13af[_0xfa7083(0x1ef)]:String(_0x1c13af)};}}function a73_0x3d41(_0x5d79a9,_0x18b6c5){_0x5d79a9=_0x5d79a9-0x1b1;const _0x23c9d9=a73_0x23c9();let _0x3d41b8=_0x23c9d9[_0x5d79a9];return _0x3d41b8;}export function loadRawConfigLayers(_0x2fac6a){const _0x494253=a73_0x28d0f8;let _0x451e21={},_0x1695cb={},_0x3b965e,_0x2b098;try{_0x3b965e=resolveConfigPath(homedir());if(_0x3b965e){const _0x5e6215=readFileSync(_0x3b965e,{'encoding':_0x494253(0x1ea)});if(_0x5e6215)_0x451e21=JSON[_0x494253(0x1e8)](_0x5e6215);}}catch{}try{const _0x4f8b4f=_0x2fac6a||process['cwd']();_0x2b098=resolveConfigPath(_0x4f8b4f);if(_0x2b098){const _0x4dc809=readFileSync(_0x2b098,{'encoding':'utf8'});if(_0x4dc809)_0x1695cb=JSON[_0x494253(0x1e8)](_0x4dc809);}}catch{}return{'globalPath':_0x3b965e,'projectPath':_0x2b098,'globalConfig':_0x451e21,'projectConfig':_0x1695cb};}function mergeRawConfigLayers(_0x5d7379){const _0x4bdae6=a73_0x28d0f8,{globalConfig:_0x4c54c0,projectConfig:_0x2fc502}=_0x5d7379;if(_0x2fc502[_0x4bdae6(0x1d3)]===![]){const _0x22a6cf={..._0x2fc502};return delete _0x22a6cf[_0x4bdae6(0x1d3)],_0x22a6cf;}const _0x206a4f={..._0x4c54c0,..._0x2fc502};if(_0x4bdae6(0x1b3)in _0x2fc502)_0x206a4f[_0x4bdae6(0x1b3)]=_0x2fc502[_0x4bdae6(0x1b3)];else _0x4c54c0[_0x4bdae6(0x1b3)]&&(_0x206a4f[_0x4bdae6(0x1b3)]=_0x4c54c0[_0x4bdae6(0x1b3)]);return _0x206a4f;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x5024f8){return mergeRawConfigLayers(loadRawConfigLayers(_0x5024f8));}export function readRawConfigWithLayers(_0x1123c5){const _0x4ebd8c=loadRawConfigLayers(_0x1123c5);return{'config':mergeRawConfigLayers(_0x4ebd8c),'layers':_0x4ebd8c};}export function resolveDefaultAppSource(_0x3af328){const _0x15d5f0=a73_0x28d0f8;if(_0x15d5f0(0x1b3)in _0x3af328[_0x15d5f0(0x1b9)])return _0x15d5f0(0x1d0);if(_0x3af328[_0x15d5f0(0x1b9)]['inherit']===![])return null;if(_0x3af328['globalConfig'][_0x15d5f0(0x1b3)])return _0x15d5f0(0x1dc);return null;}function buildConfig(_0xee39a7,_0x1d499a){const _0x26c92c=a73_0x28d0f8,_0x3bdfd6=_0xee39a7[_0x26c92c(0x1b3)]||undefined,_0x5a11e1=_0x1d499a[_0x26c92c(0x1e1)]||env(_0x26c92c(0x1e0))||undefined,_0x3a1856=_0x5a11e1||_0x3bdfd6||undefined,_0x26e5ab=env('ACCESS_KEY')||_0xee39a7[_0x26c92c(0x1c6)]||undefined,_0x18f307=_0x1d499a[_0x26c92c(0x1c1)]||env(_0x26c92c(0x1c3))||_0xee39a7[_0x26c92c(0x1c1)]||DEFAULT_CONFIG_VALUES[_0x26c92c(0x1c1)],_0x3a35bc=normalizeEnv(String(_0x18f307)),_0x38540f=isDaily(_0x3a35bc)?_0x26c92c(0x1d2):isDev(_0x3a35bc)?_0x26c92c(0x1dd):_0x26c92c(0x1cb),_0x5b5d1d=typeof _0x1d499a[_0x26c92c(0x1e6)]===_0x26c92c(0x1b6)?_0x1d499a[_0x26c92c(0x1e6)]:undefined,_0x17cff8=env('APPCODE'),_0x34971c=_0x5a11e1?undefined:_0xee39a7['appcode']||_0xee39a7[_0x26c92c(0x1e1)]||undefined,_0x17c7f5=_0x5a11e1||(_0x34971c?undefined:_0x3bdfd6),_0x51857a=resolveLocalAppAliasCode(_0xee39a7,_0x17c7f5),_0x5451ba=resolveCachedAppCode(_0x17c7f5,_0x38540f,_0x26e5ab),_0x432aad=_0x5b5d1d||_0x17cff8||_0x34971c||_0x51857a||_0x5451ba||undefined,_0x29de80=_0x5b5d1d?_0x26c92c(0x1b4):_0x17cff8?_0x26c92c(0x1c1):_0x34971c?'top-level':_0x51857a?'local-alias':_0x5451ba?_0x26c92c(0x1de):undefined,_0x51affd=_0xee39a7[_0x26c92c(0x1ec)]||DEFAULT_CONFIG_VALUES[_0x26c92c(0x1ec)],_0x43092d=undefined,_0x1f9b25=_0x1d499a['format']||env(_0x26c92c(0x1da))||_0xee39a7[_0x26c92c(0x1ca)],_0x374495=normalizeLegacyOutputFormat(_0x1f9b25),_0x161575=env('PAGE_SIZE')||_0xee39a7[_0x26c92c(0x1c9)],_0xaf8110=_0x161575?Number(_0x161575)||undefined:undefined,_0x32ab90=_0xee39a7[_0x26c92c(0x1db)]||_0xee39a7['maxRisk'],_0x1d3538=_0x32ab90==='read'||_0x32ab90===_0x26c92c(0x1ce)||_0x32ab90===_0x26c92c(0x1cf)?_0x32ab90:DEFAULT_CONFIG_VALUES[_0x26c92c(0x1db)],_0xf3bc09=env('VERBOSE'),_0x223364=_0xf3bc09==='1'||_0xf3bc09===_0x26c92c(0x1c4);return{'appCode':typeof _0x432aad===_0x26c92c(0x1b6)&&_0x432aad['trim']()?_0x432aad[_0x26c92c(0x1d6)]():undefined,'appCodeSource':_0x29de80,'env':_0x38540f,'locale':_0x51affd,'cookie':_0x43092d,'accessKey':_0x26e5ab,'format':_0x374495,'pageSize':_0xaf8110,'riskLevel':_0x1d3538,'verbose':_0x223364,'defaultApp':_0x3bdfd6,'currentApp':typeof _0x3a1856===_0x26c92c(0x1b6)?_0x3a1856:undefined,'raw':_0xee39a7};}function env(_0x2b9287){return productEnv(_0x2b9287);}async function buildAuth(_0x265256){const _0x10b29f=a73_0x28d0f8,_0x5721cc='',_0x20fe19=!!_0x265256[_0x10b29f(0x1c6)];return{'cookie':_0x5721cc,'isLoggedIn':_0x20fe19,async 'getOrLogin'(){const _0x3f245d=_0x10b29f;if(_0x20fe19)return _0x5721cc;throw CliErrors[_0x3f245d(0x1e2)]();}};}