@lovrabet/lovrabet-cli 2.1.11 → 2.1.12-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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_0x18cbc6=a55_0x5201;(function(_0x216c7a,_0x1690f7){const _0x5ca5d4=a55_0x5201,_0x12b784=_0x216c7a();while(!![]){try{const _0x537ca2=parseInt(_0x5ca5d4(0x187))/0x1+parseInt(_0x5ca5d4(0x17a))/0x2+parseInt(_0x5ca5d4(0x14c))/0x3+-parseInt(_0x5ca5d4(0x18f))/0x4*(parseInt(_0x5ca5d4(0x190))/0x5)+parseInt(_0x5ca5d4(0x174))/0x6*(parseInt(_0x5ca5d4(0x183))/0x7)+-parseInt(_0x5ca5d4(0x199))/0x8*(-parseInt(_0x5ca5d4(0x16c))/0x9)+-parseInt(_0x5ca5d4(0x16f))/0xa;if(_0x537ca2===_0x1690f7)break;else _0x12b784['push'](_0x12b784['shift']());}catch(_0x1f6a6f){_0x12b784['push'](_0x12b784['shift']());}}}(a55_0x5bc5,0x31252));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a55_0x58a0a7}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a55_0x18cbc6(0x15f),SUPPORTED_SKILL_TYPES=new Set([a55_0x18cbc6(0x152),'read',a55_0x18cbc6(0x18e)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x284abc,_0x35ab57={}){const _0x43522f=a55_0x18cbc6,_0x3f5fb3=resolveSkillDirectoryRoot(_0x284abc),_0x22024a=[],_0x48998d=loadRequiredSkillFile(_0x3f5fb3,_0x22024a),_0x50e58c=_0x48998d?parseFrontmatter(_0x48998d[_0x43522f(0x196)]):{'hasFrontmatter':![]};_0x48998d&&validateFrontmatter(_0x48998d[_0x43522f(0x157)],_0x50e58c,_0x22024a);validateRuntimeCliReferences(_0x3f5fb3,_0x22024a);const _0x20ded6=_0x22024a[_0x43522f(0x181)](_0x2d9058=>_0x2d9058['level']==='error'),_0x233fb9=_0x22024a[_0x43522f(0x181)](_0x483b12=>_0x483b12[_0x43522f(0x17e)]===_0x43522f(0x165));return{'ok':_0x20ded6[_0x43522f(0x1a6)]===0x0,'dir':_0x3f5fb3,'type':_0x50e58c['type'],'errors':_0x20ded6,'warnings':_0x233fb9};}function resolveSkillDirectoryRoot(_0x5e3174){const _0x528681=a55_0x18cbc6,_0x500786=resolve(_0x5e3174);if(!existsSync(_0x500786))throw CliErrors[_0x528681(0x16b)](_0x528681(0x1a9)+_0x5e3174);const _0x1f6ab0=lstatSync(_0x500786);if(_0x1f6ab0[_0x528681(0x160)]())return _0x500786;if(_0x1f6ab0[_0x528681(0x176)]()){const _0x27ee71=realpathSync(_0x500786);if(lstatSync(_0x27ee71)[_0x528681(0x160)]())return _0x27ee71;}throw CliErrors[_0x528681(0x16b)](_0x528681(0x1a9)+_0x5e3174);}export function throwIfSkillValidationFailed(_0x18bc05,_0xbb09d7=![]){const _0x3da76b=a55_0x18cbc6;if(_0x18bc05['ok'])return;const _0x55ceb8=_0x18bc05['errors'][_0x3da76b(0x19a)](_0x58c48b=>{const _0x2e9158=_0x3da76b,_0xd53294=_0x58c48b['section']?'#'+_0x58c48b[_0x2e9158(0x162)]:'';return _0x58c48b['level'][_0x2e9158(0x17d)]()+'\x20'+_0x58c48b[_0x2e9158(0x18a)]+'\x20'+_0x58c48b['file']+_0xd53294+':\x20'+_0x58c48b[_0x2e9158(0x197)]+_0x2e9158(0x19c)+_0x58c48b[_0x2e9158(0x156)];});throw CliErrors[_0x3da76b(0x16b)](_0x3da76b(0x151)+_0x55ceb8['join']('\x0a'),_0x3da76b(0x179));}function loadRequiredSkillFile(_0x20827b,_0x48bf36){const _0x3cac37=a55_0x18cbc6,_0x3be6f2=resolve(_0x20827b,SKILL_FILE);if(!existsSync(_0x3be6f2))return _0x48bf36[_0x3cac37(0x14e)](issue(_0x3cac37(0x19e),'structure-complete',SKILL_FILE,_0x3cac37(0x158),_0x3cac37(0x15b))),undefined;const _0x2a7ac3=lstatSync(_0x3be6f2);if(_0x2a7ac3['isSymbolicLink']())return _0x48bf36[_0x3cac37(0x14e)](issue(_0x3cac37(0x19e),_0x3cac37(0x177),SKILL_FILE,_0x3cac37(0x189),_0x3cac37(0x155))),undefined;if(!_0x2a7ac3['isFile']())return _0x48bf36[_0x3cac37(0x14e)](issue(_0x3cac37(0x19e),'structure-complete',SKILL_FILE,_0x3cac37(0x185),'Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x3be6f2,_0x3cac37(0x16e))};}function a55_0x5201(_0x10b51b,_0x37cd37){_0x10b51b=_0x10b51b-0x14b;const _0x5bc570=a55_0x5bc5();let _0x520153=_0x5bc570[_0x10b51b];return _0x520153;}function a55_0x5bc5(){const _0x31894a=['This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','isSymbolicLink','structure-complete','Frontmatter\x20displayName\x20is\x20missing.','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','498280DDMggh','raw','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','toUpperCase','level','SKILL.md\x20must\x20start\x20with\x20frontmatter.','hasFrontmatter','filter','Add\x20frontmatter\x20with\x20name\x20and\x20description.','361480kQKKeI','bff','SKILL.md\x20is\x20not\x20a\x20file.','example-recommended','103659hsFfrf','match','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','ruleId','dataset','internal-skill','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.','trainer','4NqOSgS','1492855IKuboO','test','flatMap','Frontmatter\x20description\x20is\x20empty.','Frontmatter\x20example\x20is\x20missing.','schema','content','message','data','32xGrBTC','map','logs','\x20Fix:\x20','join','error','Frontmatter\x20name\x20is\x20missing.','project','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','has','type','split','registry','length','displayName','frontmatter-required','Skill\x20directory\x20not\x20found:\x20','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','description','693939ApZdhP','example','push','sql','config','Skill\x20validation\x20failed:\x0a','write','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','app','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','suggestion','path','Missing\x20SKILL.md.','service','boolean','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','search','toLowerCase','SKILL.md','isDirectory','isArray','section','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','slice','warning','file','rabetbase-cli-reference','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','line','false','validation','392841PAZHoX','name','utf8','5686790dxXpkE','number','page','trim','true','36xGLohp'];a55_0x5bc5=function(){return _0x31894a;};return a55_0x5bc5();}function validateFrontmatter(_0x1ad82c,_0x1cdef6,_0x5cdc8c){const _0x1ce280=a55_0x18cbc6;if(!_0x1cdef6[_0x1ce280(0x180)]){_0x5cdc8c['push'](issue(_0x1ce280(0x19e),_0x1ce280(0x1a8),_0x1ad82c,_0x1ce280(0x17f),_0x1ce280(0x182)));return;}!_0x1cdef6['name']?.[_0x1ce280(0x172)]()&&_0x5cdc8c[_0x1ce280(0x14e)](issue(_0x1ce280(0x19e),'frontmatter-required',_0x1ad82c,_0x1ce280(0x19f),_0x1ce280(0x153))),!_0x1cdef6[_0x1ce280(0x1a7)]?.[_0x1ce280(0x172)]()&&_0x5cdc8c[_0x1ce280(0x14e)](issue(_0x1ce280(0x165),'display-name-recommended',_0x1ad82c,_0x1ce280(0x178),'Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.')),!_0x1cdef6['example']?.[_0x1ce280(0x172)]()&&_0x5cdc8c[_0x1ce280(0x14e)](issue(_0x1ce280(0x165),_0x1ce280(0x186),_0x1ad82c,_0x1ce280(0x194),_0x1ce280(0x1aa))),!_0x1cdef6[_0x1ce280(0x14b)]?.[_0x1ce280(0x172)]()&&_0x5cdc8c['push'](issue('error','description-required',_0x1ad82c,_0x1ce280(0x193),_0x1ce280(0x163))),_0x1cdef6['internal']===!![]&&_0x5cdc8c['push'](issue(_0x1ce280(0x19e),_0x1ce280(0x18c),_0x1ad82c,_0x1ce280(0x1a1),_0x1ce280(0x17c))),_0x1cdef6['type']?.['trim']()&&!SUPPORTED_SKILL_TYPES[_0x1ce280(0x1a2)](_0x1cdef6['type'])&&_0x5cdc8c[_0x1ce280(0x14e)](issue('error',_0x1ce280(0x1a8),_0x1ad82c,_0x1ce280(0x168),_0x1ce280(0x18d)));}function validateRuntimeCliReferences(_0x14538b,_0x10f34e){const _0x5180de=a55_0x18cbc6;for(const _0x202ccb of findRabetbaseCliInvocations(_0x14538b)){_0x10f34e['push'](issue('warning',_0x5180de(0x167),_0x202ccb[_0x5180de(0x166)],_0x5180de(0x175),_0x5180de(0x15c),'L'+_0x202ccb[_0x5180de(0x169)]));}}function findRabetbaseCliInvocations(_0x215973){const _0x524a24=a55_0x18cbc6;return scanSkillDirectory(_0x215973)[_0x524a24(0x181)](_0x9e1d0=>TEXT_SKILL_FILE_PATTERN[_0x524a24(0x191)](_0x9e1d0['path']))[_0x524a24(0x192)](_0x19b198=>{const _0x4285cb=_0x524a24,_0x54f1f2=fileText(_0x19b198);return _0x54f1f2[_0x4285cb(0x1a4)](/\r?\n/)[_0x4285cb(0x19a)]((_0xf135f2,_0x2c9f1f)=>({'file':_0x19b198[_0x4285cb(0x157)],'line':_0x2c9f1f+0x1,'text':_0xf135f2}))[_0x4285cb(0x181)](({text:_0x2142d9})=>isRabetbaseCliInvocation(_0x2142d9))['map'](({file:_0x1b93cd,line:_0x32582a})=>({'file':_0x1b93cd,'line':_0x32582a}));});}const RABETBASE_SUBCOMMANDS=[a55_0x18cbc6(0x18b),a55_0x18cbc6(0x14f),a55_0x18cbc6(0x184),a55_0x18cbc6(0x171),a55_0x18cbc6(0x1a0),a55_0x18cbc6(0x154),a55_0x18cbc6(0x195),a55_0x18cbc6(0x159),'artifact','kb',a55_0x18cbc6(0x150),'workspace',a55_0x18cbc6(0x198),'auth',a55_0x18cbc6(0x19b),a55_0x18cbc6(0x1a5)],RABETBASE_INVOCATION=new RegExp(String[a55_0x18cbc6(0x17b)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a55_0x18cbc6(0x19d)]('|')})\b`+String[a55_0x18cbc6(0x17b)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x36b552){const _0x5cdce4=a55_0x18cbc6,_0x50f396=_0x36b552[_0x5cdce4(0x15d)](/\brabetbase\b/i);if(_0x50f396<0x0)return![];const _0x802e90=_0x36b552[_0x5cdce4(0x164)](_0x50f396)[_0x5cdce4(0x1a4)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x5cdce4(0x191)](_0x802e90);}function parseFrontmatter(_0x16e8ab){const _0x2d1535=a55_0x18cbc6,_0x240381=_0x16e8ab[_0x2d1535(0x188)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x240381)return{'hasFrontmatter':![]};const _0x3d0846=_0x240381[0x1]??'',_0x11966e={'hasFrontmatter':!![]};let _0x153181;try{_0x153181=a55_0x58a0a7(_0x3d0846);}catch{return _0x11966e;}const _0x59c2c3=asRecord(_0x153181);if(!_0x59c2c3)return _0x11966e;_0x11966e[_0x2d1535(0x16d)]=scalarToString(_0x59c2c3[_0x2d1535(0x16d)]),_0x11966e['displayName']=scalarToString(_0x59c2c3[_0x2d1535(0x1a7)]),_0x11966e[_0x2d1535(0x14b)]=scalarToString(_0x59c2c3[_0x2d1535(0x14b)]),_0x11966e[_0x2d1535(0x14d)]=scalarToString(_0x59c2c3[_0x2d1535(0x14d)]);const _0x46fde9=asRecord(_0x59c2c3['metadata']);return _0x46fde9&&(_0x11966e[_0x2d1535(0x1a3)]=scalarToString(_0x46fde9[_0x2d1535(0x1a3)]),_0x11966e['internal']=scalarToBoolean(_0x46fde9['internal'])),_0x11966e;}function asRecord(_0x38e891){const _0x47d368=a55_0x18cbc6;if(_0x38e891&&typeof _0x38e891==='object'&&!Array[_0x47d368(0x161)](_0x38e891))return _0x38e891;return undefined;}function scalarToString(_0x4dd6bd){const _0x474cb3=a55_0x18cbc6;if(typeof _0x4dd6bd==='string')return _0x4dd6bd[_0x474cb3(0x172)]();if(typeof _0x4dd6bd===_0x474cb3(0x170)||typeof _0x4dd6bd===_0x474cb3(0x15a))return String(_0x4dd6bd);return undefined;}function scalarToBoolean(_0x5abeaf){const _0x3c6123=a55_0x18cbc6;if(typeof _0x5abeaf===_0x3c6123(0x15a))return _0x5abeaf;if(typeof _0x5abeaf==='string')return cleanBoolean(_0x5abeaf);return undefined;}function cleanBoolean(_0x113399){const _0x18f09b=a55_0x18cbc6,_0x21a8d6=_0x113399['trim']()[_0x18f09b(0x15e)]();if(_0x21a8d6===_0x18f09b(0x173))return!![];if(_0x21a8d6===_0x18f09b(0x16a))return![];return undefined;}function issue(_0x2de98c,_0x1a294e,_0x18a688,_0x4000f8,_0x152d1f,_0x3dead2){return{'level':_0x2de98c,'ruleId':_0x1a294e,'file':_0x18a688,'section':_0x3dead2,'message':_0x4000f8,'suggestion':_0x152d1f};}
@@ -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_0x5e16fa=a56_0x24df;(function(_0x489bbe,_0x57e40d){const _0x4b4fa3=a56_0x24df,_0x1d098d=_0x489bbe();while(!![]){try{const _0x2c17e6=parseInt(_0x4b4fa3(0x1c0))/0x1*(-parseInt(_0x4b4fa3(0x1ba))/0x2)+-parseInt(_0x4b4fa3(0x1be))/0x3+parseInt(_0x4b4fa3(0x1b9))/0x4+parseInt(_0x4b4fa3(0x1c5))/0x5+-parseInt(_0x4b4fa3(0x1b6))/0x6*(parseInt(_0x4b4fa3(0x1b3))/0x7)+parseInt(_0x4b4fa3(0x1c2))/0x8+parseInt(_0x4b4fa3(0x1b8))/0x9*(parseInt(_0x4b4fa3(0x1b0))/0xa);if(_0x2c17e6===_0x57e40d)break;else _0x1d098d['push'](_0x1d098d['shift']());}catch(_0x368508){_0x1d098d['push'](_0x1d098d['shift']());}}}(a56_0x544b,0xd1c72));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';function a56_0x24df(_0x5e4afe,_0x8ceffb){_0x5e4afe=_0x5e4afe-0x1b0;const _0x544b53=a56_0x544b();let _0x24df54=_0x544b53[_0x5e4afe];return _0x24df54;}import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a56_0x5e16fa(0x1bb),'command':a56_0x5e16fa(0x1bf),'description':'Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','risk':a56_0x5e16fa(0x1bc),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x3fc0f1){const _0x49ef18=a56_0x5e16fa,_0x3b2d0f=await getSqlQueryInfo(_0x3fc0f1[_0x49ef18(0x1bd)],_0x3fc0f1[_0x49ef18(0x1c1)](_0x49ef18(0x1b4))),_0x408427=_0x3fc0f1[_0x49ef18(0x1c4)](_0x49ef18(0x1b1));if(_0x408427)return{'ok':!![],'data':_0x3b2d0f};const _0x4ab987=_0x3b2d0f['dbId']?await getDbName(_0x3fc0f1['appCode'],_0x3b2d0f[_0x49ef18(0x1b5)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x3b2d0f[_0x49ef18(0x1b7)],'sqlName':_0x3b2d0f['sqlName'],'db':_0x4ab987?_0x4ab987+'\x20('+_0x3b2d0f[_0x49ef18(0x1b5)]+')':_0x3b2d0f[_0x49ef18(0x1b5)]??'','description':_0x3b2d0f[_0x49ef18(0x1b2)]??'','sqlContent':_0x3b2d0f[_0x49ef18(0x1c3)]??''}};}};function a56_0x544b(){const _0x2332b4=['7010166Hpscis','sqlCode','18eTVjvb','619332EtBqKv','1900324ebSNzM','sql','read','appCode','2141457sJzsmv','detail','1avgGAR','str','133048LQbhNY','sqlContent','bool','175140TZgWbl','17425500TXrbYO','verbose','description','7gAkmRZ','sqlcode','dbId'];a56_0x544b=function(){return _0x2332b4;};return a56_0x544b();}
@@ -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_0x5ee964=a57_0x15aa;(function(_0x476f7e,_0x603684){const _0x483c8f=a57_0x15aa,_0x5658d5=_0x476f7e();while(!![]){try{const _0x5cff1d=parseInt(_0x483c8f(0x17f))/0x1+-parseInt(_0x483c8f(0x17d))/0x2*(-parseInt(_0x483c8f(0x184))/0x3)+parseInt(_0x483c8f(0x17e))/0x4*(-parseInt(_0x483c8f(0x187))/0x5)+parseInt(_0x483c8f(0x175))/0x6*(parseInt(_0x483c8f(0x171))/0x7)+-parseInt(_0x483c8f(0x17c))/0x8*(parseInt(_0x483c8f(0x185))/0x9)+parseInt(_0x483c8f(0x182))/0xa+-parseInt(_0x483c8f(0x186))/0xb*(parseInt(_0x483c8f(0x178))/0xc);if(_0x5cff1d===_0x603684)break;else _0x5658d5['push'](_0x5658d5['shift']());}catch(_0x37361d){_0x5658d5['push'](_0x5658d5['shift']());}}}(a57_0x120c,0xc3644));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';function a57_0x120c(){const _0x458c03=['6fJJdkJ','sql','execError','36fNswdR','sqlcode','SQL\x20execution\x20failed','execSuccess','8gUKWPK','4fWQNay','2448280vAGxVM','1254242lDRUGU','params','isArray','9280690boNASC','read','159702GeRWlm','4279293mqHuaB','6164829rcOCcc','5euSZND','now','\x20row(s)\x20in\x20','8962863meFNND','execResult','str','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode'];a57_0x120c=function(){return _0x458c03;};return a57_0x120c();}function a57_0x15aa(_0x582a7d,_0x255291){_0x582a7d=_0x582a7d-0x16f;const _0x120cbe=a57_0x120c();let _0x15aa9a=_0x120cbe[_0x582a7d];return _0x15aa9a;}export const sqlExec={'service':a57_0x5ee964(0x176),'command':'exec','description':a57_0x5ee964(0x174),'risk':a57_0x5ee964(0x183),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x11d634){const _0x4d0972=a57_0x5ee964,_0x45b942=parseJsonParams(_0x11d634[_0x4d0972(0x173)](_0x4d0972(0x180))),_0x52ec67=Date[_0x4d0972(0x16f)](),_0x13b804=await executeSdkSql(_0x11d634[_0x4d0972(0x173)](_0x4d0972(0x179)),_0x45b942),_0x122f01=Date[_0x4d0972(0x16f)]()-_0x52ec67,_0x32ddce=_0x13b804?.[_0x4d0972(0x172)]??_0x13b804,_0x46c5c4=_0x13b804?.[_0x4d0972(0x17b)]??!![];if(!_0x46c5c4)return{'ok':![],'data':{'error':_0x13b804?.[_0x4d0972(0x177)]||_0x4d0972(0x17a),'elapsed':_0x122f01},'message':_0x4d0972(0x17a)};const _0x24c085=Array[_0x4d0972(0x181)](_0x32ddce)?_0x32ddce:[];return{'ok':!![],'data':{'rows':_0x24c085,'rowCount':_0x24c085['length'],'elapsed':_0x122f01},'message':'Returned\x20'+_0x24c085['length']+_0x4d0972(0x170)+_0x122f01+'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_0x427c(){const _0x2ae60d=['839635YiUlGc','2914624yssGrW','1194552jdZMYN','12wxZcGu','141564YTvnvl','98XYrqsV','4182GIfZDY','5105344FECKmg','40vPgjkl','288324LBPCvO'];a58_0x427c=function(){return _0x2ae60d;};return a58_0x427c();}(function(_0x43e03f,_0x1b89a5){const _0x37bc22=a58_0x20d8,_0x16b14e=_0x43e03f();while(!![]){try{const _0x2d6cc2=-parseInt(_0x37bc22(0x1d2))/0x1+-parseInt(_0x37bc22(0x1cd))/0x2+parseInt(_0x37bc22(0x1ce))/0x3*(parseInt(_0x37bc22(0x1cf))/0x4)+parseInt(_0x37bc22(0x1cc))/0x5+parseInt(_0x37bc22(0x1d0))/0x6*(parseInt(_0x37bc22(0x1d1))/0x7)+parseInt(_0x37bc22(0x1d3))/0x8+parseInt(_0x37bc22(0x1d5))/0x9*(parseInt(_0x37bc22(0x1d4))/0xa);if(_0x2d6cc2===_0x1b89a5)break;else _0x16b14e['push'](_0x16b14e['shift']());}catch(_0x11e8f2){_0x16b14e['push'](_0x16b14e['shift']());}}}(a58_0x427c,0xf38ed));function a58_0x20d8(_0x52728e,_0x5529b8){_0x52728e=_0x52728e-0x1cc;const _0x427c93=a58_0x427c();let _0x20d826=_0x427c93[_0x52728e];return _0x20d826;}import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
@@ -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
+ const a59_0x25501b=a59_0x4221;(function(_0x15c097,_0x2375fa){const _0x592d85=a59_0x4221,_0x147857=_0x15c097();while(!![]){try{const _0x2a3145=-parseInt(_0x592d85(0x10e))/0x1+parseInt(_0x592d85(0x13b))/0x2+-parseInt(_0x592d85(0x117))/0x3*(-parseInt(_0x592d85(0x11e))/0x4)+parseInt(_0x592d85(0x11b))/0x5+parseInt(_0x592d85(0x10a))/0x6*(parseInt(_0x592d85(0x11a))/0x7)+-parseInt(_0x592d85(0xfd))/0x8+parseInt(_0x592d85(0x13a))/0x9*(-parseInt(_0x592d85(0x12b))/0xa);if(_0x2a3145===_0x2375fa)break;else _0x147857['push'](_0x147857['shift']());}catch(_0x24df47){_0x147857['push'](_0x147857['shift']());}}}(a59_0x3445,0xb31c3));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';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';function a59_0x3445(){const _0x5133f3=['269970BfTNod','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','status','match','flag','latest','length','Current\x20version:\x20','Update\x20failed:\x20','write','timeout','args','fromEntries','bool','243nRkoLL','2928492yWgqgS','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','validation','Update\x20','nonInteractive','inherit','Updated\x20to\x20v','exit\x20','message','5478840WcjTlw','trim','source','run','pipe','stdout','no-skills','log','Already\x20on\x20requested\x20version\x20(v','Install\x20a\x20specific\x20CLI\x20version','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','str','/-/package/','1244154pBvWke','\x20->\x20','version','entries','696773FeAzeG','filter','join','warn','skills','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','Version\x20comparison\x20failed.','Unable\x20to\x20resolve\x20','2693283ZeDOIK','beta','map','7Bwrcax','1374080BbNGAB','unknown','boolean','4xBhOGB','object','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','update','prerelease','toString','error','\x20CLI\x20from\x20npm','skipped','cwd','stderr','string'];a59_0x3445=function(){return _0x5133f3;};return a59_0x3445();}const updateFlags=[{'name':'latest','type':'boolean','description':a59_0x25501b(0x13c),'default':![]},{'name':a59_0x25501b(0x118),'type':a59_0x25501b(0x11d),'description':a59_0x25501b(0x121),'default':![]},{'name':a59_0x25501b(0x10c),'type':a59_0x25501b(0x12a),'description':a59_0x25501b(0x106)},{'name':'no-skills','type':a59_0x25501b(0x11d),'description':'Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','default':![]},{'name':a59_0x25501b(0x112),'type':a59_0x25501b(0x11d),'description':a59_0x25501b(0x120),'default':!![],'hidden':!![]}];function parseSemver(_0x478b6c){const _0x4adc87=a59_0x25501b,_0x574ddc=_0x478b6c['trim']()[_0x4adc87(0x12f)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x574ddc)return null;return{'major':Number(_0x574ddc[0x1]),'minor':Number(_0x574ddc[0x2]),'patch':Number(_0x574ddc[0x3]),'prerelease':_0x574ddc[0x4]};}function compareSemver(_0x3c8da9,_0x584b16){const _0x58faf2=a59_0x25501b,_0x2f5d62=parseSemver(_0x3c8da9),_0x350651=parseSemver(_0x584b16);if(!_0x2f5d62||!_0x350651)throw CliErrors[_0x58faf2(0x13d)](_0x58faf2(0x115),_0x58faf2(0x107));for(const _0x437058 of['major','minor','patch']){if(_0x2f5d62[_0x437058]<_0x350651[_0x437058])return-0x1;if(_0x2f5d62[_0x437058]>_0x350651[_0x437058])return 0x1;}if(!_0x2f5d62['prerelease']&&!_0x350651[_0x58faf2(0x123)])return 0x0;if(!_0x2f5d62[_0x58faf2(0x123)])return 0x1;if(!_0x350651['prerelease'])return-0x1;if(_0x2f5d62['prerelease']===_0x350651['prerelease'])return 0x0;return _0x2f5d62['prerelease']<_0x350651[_0x58faf2(0x123)]?-0x1:0x1;}function a59_0x4221(_0x4e32ed,_0x40c58a){_0x4e32ed=_0x4e32ed-0xf9;const _0x34454c=a59_0x3445();let _0x4221b0=_0x34454c[_0x4e32ed];return _0x4221b0;}function getRequestedVersion(_0x2ea28e){const _0xa09388=a59_0x25501b,_0x2ce146=_0x2ea28e[_0xa09388(0x108)](_0xa09388(0x10c))[_0xa09388(0xfe)]();if(_0x2ce146)return _0x2ce146;return String(_0x2ea28e[_0xa09388(0x137)]?.[0x0]??'')[_0xa09388(0xfe)]();}function shouldSkipCliBuiltInSkill(_0x2c1d57){const _0x2a9fe4=a59_0x25501b;return _0x2c1d57[_0x2a9fe4(0x139)](_0x2a9fe4(0x103))||_0x2c1d57[_0x2a9fe4(0x130)](_0x2a9fe4(0x112))===![];}async function validateUpdateFlags(_0x4549b1){const _0x28a052=a59_0x25501b,_0x1ce15a=getRequestedVersion(_0x4549b1),_0x6c8666=[_0x4549b1['bool']('latest')?'latest':'',_0x4549b1[_0x28a052(0x139)](_0x28a052(0x118))?_0x28a052(0x118):'',_0x1ce15a?_0x28a052(0x10c):''][_0x28a052(0x10f)](Boolean);if(_0x6c8666[_0x28a052(0x132)]>0x1)throw CliErrors[_0x28a052(0x13d)](_0x28a052(0x12d),_0x28a052(0x114));if(_0x1ce15a&&!parseSemver(_0x1ce15a))throw CliErrors[_0x28a052(0x13d)]('Invalid\x20version:\x20'+_0x1ce15a,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x735d55=a59_0x25501b;try{const _0xc3cf40=NPM_REGISTRY_BASE_URL+_0x735d55(0x109)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x2ef1d4=await fetch(_0xc3cf40,{'signal':AbortSignal[_0x735d55(0x136)](0x2710)});if(!_0x2ef1d4['ok'])return null;const _0x21373d=await _0x2ef1d4['json']();if(!_0x21373d||typeof _0x21373d!==_0x735d55(0x11f))return null;return Object[_0x735d55(0x138)](Object[_0x735d55(0x10d)](_0x21373d)[_0x735d55(0x10f)](([,_0x3c33d7])=>typeof _0x3c33d7===_0x735d55(0x12a)&&_0x3c33d7['trim']())[_0x735d55(0x119)](([_0x1551a8,_0x4e2a48])=>[_0x1551a8,String(_0x4e2a48)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0x464ae3){const _0x2d73dd=a59_0x25501b,_0x7e1829=getRequestedVersion(_0x464ae3);if(_0x7e1829)return{'version':_0x7e1829,'source':_0x2d73dd(0x10c)};const _0x1a76ca=_0x464ae3[_0x2d73dd(0x139)]('beta')?_0x2d73dd(0x118):_0x2d73dd(0x131),_0x4d92a9=await fetchNpmDistTags(),_0x2249fc=_0x4d92a9?.[_0x1a76ca];if(!_0x2249fc)return null;return{'version':_0x2249fc,'source':_0x1a76ca};}function shouldInstallTarget(_0x2f5ce1,_0x430551){const _0x409d9d=a59_0x25501b,_0x5cc281=compareSemver(_0x2f5ce1,_0x430551[_0x409d9d(0x10c)]);if(_0x430551[_0x409d9d(0xff)]==='version')return _0x5cc281!==0x0;return _0x5cc281<0x0;}function installCliPackage(_0x118a71,_0x294458){const _0x2a9fe8=a59_0x25501b,_0x16a750=resolveNpmBin('npm'),_0x488cf5=['install','-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x118a71];console[_0x2a9fe8(0x104)]('*\x20'+[_0x16a750,..._0x488cf5][_0x2a9fe8(0x110)]('\x20'));const _0x253c9c=spawnSync(_0x16a750,_0x488cf5,{'cwd':process[_0x2a9fe8(0x128)](),'stdio':_0x294458?_0x2a9fe8(0x101):'inherit','env':process.env,'shell':![]});if(_0x253c9c[_0x2a9fe8(0x12e)]===0x0)return{'ok':!![]};let _0x422736=_0x253c9c['error']?.[_0x2a9fe8(0xfc)]||_0x2a9fe8(0xfb)+(_0x253c9c['status']??_0x2a9fe8(0x11c));if(_0x294458){const _0x41298d=_0x253c9c[_0x2a9fe8(0x129)]?_0x253c9c[_0x2a9fe8(0x129)][_0x2a9fe8(0x124)]()[_0x2a9fe8(0xfe)]():'',_0xd11c86=_0x253c9c['stdout']?_0x253c9c[_0x2a9fe8(0x102)][_0x2a9fe8(0x124)]()[_0x2a9fe8(0xfe)]():'';if(_0x41298d)_0x422736=_0x41298d;else{if(_0xd11c86)_0x422736=_0xd11c86;}}return{'ok':![],'error':_0x422736};}async function installCliBuiltInSkill(_0x10bb6e){const _0x5abada=a59_0x25501b;console[_0x5abada(0x104)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x25a450=runNpxSkillsAddGlobal(process['cwd'](),LOVRABET_SKILL_SOURCE,{'stdio':_0x10bb6e?'pipe':_0x5abada(0xf9)});if(_0x25a450[_0x5abada(0x127)]){console[_0x5abada(0x104)]('\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20('+LOVRABET_SKIP_NPX_SKILLS_ENV+'=1).');return;}if(_0x25a450['ok']){console[_0x5abada(0x104)]('\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.');return;}console[_0x5abada(0x111)](_0x5abada(0x12c)+(_0x25a450[_0x5abada(0x125)]||_0x5abada(0x11c))),console[_0x5abada(0x104)]('\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install');}async function execute(_0x88cb61){const _0x3dcf59=a59_0x25501b;await validateUpdateFlags(_0x88cb61);const _0x1376c7=getCliVersion();console[_0x3dcf59(0x104)](_0x3dcf59(0x133)+_0x1376c7),console[_0x3dcf59(0x104)]('Checking\x20npm\x20dist-tags...');const _0x470a22=await resolveTargetVersion(_0x88cb61);if(!_0x470a22){const _0x57a35b=_0x88cb61[_0x3dcf59(0x139)](_0x3dcf59(0x118))?'beta':_0x3dcf59(0x131),_0x2c8d3e=_0x3dcf59(0x116)+_0x57a35b+'\x20version\x20from\x20npm.';return console[_0x3dcf59(0x111)](_0x2c8d3e),console['log']('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x57a35b),{'ok':![]};}if(!shouldInstallTarget(_0x1376c7,_0x470a22)){const _0x11bf90=_0x470a22[_0x3dcf59(0xff)]===_0x3dcf59(0x10c)?_0x3dcf59(0x105)+_0x470a22[_0x3dcf59(0x10c)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x470a22[_0x3dcf59(0x10c)]+').';return console[_0x3dcf59(0x104)](_0x11bf90),shouldSkipCliBuiltInSkill(_0x88cb61)?console[_0x3dcf59(0x104)](_0x3dcf59(0x113)):await installCliBuiltInSkill(_0x88cb61[_0x3dcf59(0x13f)]),{'ok':!![]};}console[_0x3dcf59(0x104)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x1376c7+_0x3dcf59(0x10b)+_0x470a22[_0x3dcf59(0x10c)]);const _0x5f4dcc=installCliPackage(_0x470a22['version'],_0x88cb61[_0x3dcf59(0x13f)]);if(!_0x5f4dcc['ok']){const _0x578aa2=_0x3dcf59(0x134)+(_0x5f4dcc[_0x3dcf59(0x125)]||_0x3dcf59(0x11c));return console[_0x3dcf59(0x125)](_0x578aa2),console[_0x3dcf59(0x104)]('\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x470a22[_0x3dcf59(0x10c)]),{'ok':![]};}return console[_0x3dcf59(0x104)](_0x3dcf59(0xfa)+_0x470a22[_0x3dcf59(0x10c)]+'.'),console[_0x3dcf59(0x104)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'),shouldSkipCliBuiltInSkill(_0x88cb61)?console['log'](_0x3dcf59(0x113)):await installCliBuiltInSkill(_0x88cb61[_0x3dcf59(0x13f)]),{'ok':!![]};}export const updateDefinition={'service':a59_0x25501b(0x122),'command':a59_0x25501b(0x100),'description':a59_0x25501b(0x13e)+CLI_BIN_NAME+a59_0x25501b(0x126),'risk':a59_0x25501b(0x135),'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_0x471d56=a60_0x502f;(function(_0x232d9f,_0x3ad0e5){const _0x48d9ab=a60_0x502f,_0x5ba01d=_0x232d9f();while(!![]){try{const _0x115da1=parseInt(_0x48d9ab(0x1d1))/0x1*(-parseInt(_0x48d9ab(0x1cb))/0x2)+-parseInt(_0x48d9ab(0x1da))/0x3+parseInt(_0x48d9ab(0x1cd))/0x4*(-parseInt(_0x48d9ab(0x1d7))/0x5)+-parseInt(_0x48d9ab(0x1c6))/0x6+parseInt(_0x48d9ab(0x1e0))/0x7+parseInt(_0x48d9ab(0x1dc))/0x8*(parseInt(_0x48d9ab(0x1ea))/0x9)+parseInt(_0x48d9ab(0x1c2))/0xa;if(_0x115da1===_0x3ad0e5)break;else _0x5ba01d['push'](_0x5ba01d['shift']());}catch(_0x6435df){_0x5ba01d['push'](_0x5ba01d['shift']());}}}(a60_0x25cf,0xef242));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_0x471d56(0x1c5),'type':'string','description':a60_0x471d56(0x1e4)},{'name':'appcode','type':'string','description':a60_0x471d56(0x1dd)},{'name':'env','type':a60_0x471d56(0x1d0),'description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]},{'name':a60_0x471d56(0x1c4),'type':'boolean','description':a60_0x471d56(0x1ed),'default':![]}];async function executeWorkspaceUse(_0x428e18,_0x208e71){const _0x7ca9d0=a60_0x471d56,_0x11b6f0=_0x428e18[_0x7ca9d0(0x1d4)](_0x7ca9d0(0x1c5))[_0x7ca9d0(0x1f5)](),_0x45497b=_0x428e18[_0x7ca9d0(0x1d4)](_0x7ca9d0(0x1e5))[_0x7ca9d0(0x1f5)](),_0x3566ec=_0x428e18[_0x7ca9d0(0x1d4)](_0x7ca9d0(0x1ec))[_0x7ca9d0(0x1f5)](),_0x1b5f44=resolveWorkspaceEnv(_0x3566ec||_0x428e18[_0x7ca9d0(0x1c3)]||DEFAULT_CONFIG_VALUES[_0x7ca9d0(0x1ec)]);if(!_0x11b6f0&&!_0x45497b)throw CliErrors[_0x7ca9d0(0x1ca)](_0x7ca9d0(0x1ce),_0x7ca9d0(0x1f1)+CLI_BIN_NAME+_0x7ca9d0(0x1d3)+_0x208e71+_0x7ca9d0(0x1ef)+CLI_BIN_NAME+'\x20workspace\x20'+_0x208e71+_0x7ca9d0(0x1c9));const _0xd82899=_0x45497b||await resolveRemoteAppCode({'command':_0x208e71,'appName':_0x11b6f0,'env':_0x1b5f44,'accessKey':_0x428e18['accessKey']}),_0x465dd5=writeWorkspaceConfig({'command':_0x208e71,'appName':_0x11b6f0,'appcode':_0xd82899,'env':_0x1b5f44,'shouldWriteEnv':!!_0x3566ec,'accessKey':_0x428e18[_0x7ca9d0(0x1c8)]});return{'ok':!![],'data':{'configPath':_0x465dd5,'app':_0x11b6f0||null,'appcode':_0xd82899,'env':_0x3566ec?_0x1b5f44:null,'accessKeyWritten':![],'command':'workspace\x20'+_0x208e71},'message':buildWorkspaceMessage(_0x465dd5,_0x11b6f0,_0xd82899,_0x3566ec?_0x1b5f44:undefined)};}async function resolveRemoteAppCode(_0x256c92){const _0x1a39e9=a60_0x471d56;if(!_0x256c92[_0x1a39e9(0x1c8)])throw CliErrors['authRequired'](_0x1a39e9(0x1d5)+CLI_BIN_NAME+_0x1a39e9(0x1d3)+_0x256c92[_0x1a39e9(0x1e2)]+'.');const {setActiveAK:_0x2c1f27}=await import(_0x1a39e9(0x1f2)),{getRemoteAppList:_0x5c9ceb}=await import(_0x1a39e9(0x1d8));_0x2c1f27(_0x256c92['accessKey']);const _0x3b8f8a=await _0x5c9ceb({'env':_0x256c92[_0x1a39e9(0x1ec)],'accessKey':_0x256c92['accessKey'],'noCache':![]}),_0x3a7760=findAppByName(_0x3b8f8a[_0x1a39e9(0x1eb)],_0x256c92[_0x1a39e9(0x1f9)]);if(_0x3a7760&&!isRuntimeAccessibleApp(_0x3a7760))throw runtimeInaccessibleAppError(_0x3a7760,'\x22'+_0x256c92['appName']+'\x22');const _0x40742=_0x3a7760?.['appCode']?.[_0x1a39e9(0x1f5)]();if(_0x40742)return _0x40742;const _0x55de52=_0x3b8f8a['items'][_0x1a39e9(0x1db)](_0x25d020=>_0x25d020[_0x1a39e9(0x1f9)])[_0x1a39e9(0x1f4)](Boolean),_0x4d1bb6=_0x55de52['length']?'Available\x20apps:\x20'+Array['from'](new Set(_0x55de52))[_0x1a39e9(0x1df)](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+_0x1a39e9(0x1f6);throw CliErrors[_0x1a39e9(0x1ca)]('App\x20\x22'+_0x256c92[_0x1a39e9(0x1f9)]+_0x1a39e9(0x1f8),_0x4d1bb6);}function writeWorkspaceConfig(_0x480d39){const _0x4b099=a60_0x471d56,_0x41b707=resolveWriteConfigPath(_0x4b099(0x1e7)),_0x2982c0=readConfigFile(_0x41b707);_0x480d39['shouldWriteEnv']&&(_0x2982c0[_0x4b099(0x1ec)]=_0x480d39[_0x4b099(0x1ec)]);if(_0x480d39[_0x4b099(0x1f9)]){const _0x5d2a47=isRecord(_0x2982c0[_0x4b099(0x1de)])?{..._0x2982c0['apps']}:{},_0x20a86c=isRecord(_0x5d2a47[_0x480d39['appName']])?_0x5d2a47[_0x480d39[_0x4b099(0x1f9)]]:{};_0x5d2a47[_0x480d39[_0x4b099(0x1f9)]]={..._0x20a86c,'appcode':_0x480d39[_0x4b099(0x1e5)]},_0x2982c0[_0x4b099(0x1de)]=_0x5d2a47,_0x2982c0[_0x4b099(0x1f0)]=_0x480d39[_0x4b099(0x1f9)];if(_0x2982c0['app'])delete _0x2982c0[_0x4b099(0x1c5)];return writeAndReturn(_0x41b707,_0x2982c0);}_0x2982c0[_0x4b099(0x1e5)]=_0x480d39[_0x4b099(0x1e5)];if(_0x2982c0[_0x4b099(0x1c5)])delete _0x2982c0['app'];return writeAndReturn(_0x41b707,_0x2982c0);}function a60_0x502f(_0xd8536c,_0x3ca1b0){_0xd8536c=_0xd8536c-0x1c2;const _0x25cf7d=a60_0x25cf();let _0x502f38=_0x25cf7d[_0xd8536c];return _0x502f38;}function writeAndReturn(_0x9a8147,_0x9a3932){return writeConfigFile(_0x9a8147,_0x9a3932),_0x9a8147;}function resolveWorkspaceEnv(_0x4c8e18){const _0x4ebd46=a60_0x471d56;if(RUNTIME_ENV_VALUES[_0x4ebd46(0x1d6)](_0x4c8e18))return _0x4c8e18;throw CliErrors[_0x4ebd46(0x1ca)](_0x4ebd46(0x1e9)+_0x4c8e18+_0x4ebd46(0x1ee)+RUNTIME_ENV_VALUES[_0x4ebd46(0x1df)](',\x20'));}function buildWorkspaceMessage(_0x2e5bb3,_0x263e39,_0x4428c0,_0x39cfe7){const _0x27a42b=a60_0x471d56,_0xfb4ce3=_0x263e39?_0x263e39+'\x20('+_0x4428c0+')':_0x4428c0,_0x4a516c=_0x39cfe7?_0x27a42b(0x1d9)+_0x39cfe7:'';return _0x27a42b(0x1e8)+_0x2e5bb3+_0x27a42b(0x1e1)+_0xfb4ce3+_0x4a516c+_0x27a42b(0x1c7);}function isRecord(_0xd026af){const _0xc25c4b=a60_0x471d56;return typeof _0xd026af===_0xc25c4b(0x1e6)&&_0xd026af!==null&&!Array[_0xc25c4b(0x1f3)](_0xd026af);}function a60_0x25cf(){const _0x41b825=['Workspace\x20configured.\x0aConfig\x20file:\x20','Invalid\x20env\x20\x22','492507RYLukR','items','env','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','\x22.\x20Allowed:\x20','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','defaultApp','Usage:\x20','../../core/api-client.js','isArray','filter','trim','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','use','\x22\x20not\x20found.','appName','39050250GiKxfF','envName','yes','app','2495106iXNPBq','\x0aAccessKey:\x20not\x20written','accessKey','\x20--appcode\x20<code>\x20[--env\x20daily]','validation','2MLqkuH','init','5465836UBLgPY','Missing\x20workspace\x20app\x20selector.','write','string','161165RGHuKE','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','\x20workspace\x20','str','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','includes','5hHOZFY','../../commands/app/remote-source.js','\x0aEnv:\x20','3115659VLwSgH','map','8jJlxve','App\x20code\x20to\x20bind\x20directly','apps','join','12614ywgEgd','\x0aDefault\x20app:\x20','command','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','appcode','object','project'];a60_0x25cf=function(){return _0x41b825;};return a60_0x25cf();}function makeWorkspaceCommand(_0x12cbde){const _0x35d201=a60_0x471d56;return{'service':'workspace','command':_0x12cbde,'description':_0x12cbde===_0x35d201(0x1cc)?_0x35d201(0x1d2):_0x35d201(0x1e3),'risk':_0x35d201(0x1cf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x47510d){return executeWorkspaceUse(_0x47510d,_0x12cbde);}};}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand(a60_0x471d56(0x1f7))];
@@ -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_0x3293f5=a61_0x2f27;(function(_0x133c41,_0xef6958){const _0x10f0a5=a61_0x2f27,_0x5d4b8f=_0x133c41();while(!![]){try{const _0x1b110b=-parseInt(_0x10f0a5(0x1a0))/0x1*(-parseInt(_0x10f0a5(0x1a1))/0x2)+-parseInt(_0x10f0a5(0x1b1))/0x3*(parseInt(_0x10f0a5(0x1bc))/0x4)+parseInt(_0x10f0a5(0x1b9))/0x5+-parseInt(_0x10f0a5(0x19e))/0x6*(parseInt(_0x10f0a5(0x1a5))/0x7)+parseInt(_0x10f0a5(0x1be))/0x8*(-parseInt(_0x10f0a5(0x1ae))/0x9)+-parseInt(_0x10f0a5(0x19d))/0xa*(parseInt(_0x10f0a5(0x1b0))/0xb)+parseInt(_0x10f0a5(0x1a3))/0xc*(parseInt(_0x10f0a5(0x1a6))/0xd);if(_0x1b110b===_0xef6958)break;else _0x5d4b8f['push'](_0x5d4b8f['shift']());}catch(_0x505595){_0x5d4b8f['push'](_0x5d4b8f['shift']());}}}(a61_0x4056,0x8229b));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':a61_0x3293f5(0x1a7),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x3293f5(0x1b5)],'importable':!![]},'format':{'description':a61_0x3293f5(0x1b2),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x3293f5(0x1a9)],'importable':!![]},'pageSize':{'description':a61_0x3293f5(0x1b4),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a61_0x3293f5(0x19c),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a61_0x3293f5(0x1b3),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a61_0x3293f5(0x1a4),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a61_0x3293f5(0x1ab),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x3293f5(0x1bd)],'importable':!![]},'locale':{'description':a61_0x3293f5(0x1a2),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x3293f5(0x1ba)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a61_0x3293f5(0x1bb)](CONFIG_FIELD_SCHEMAS)[a61_0x3293f5(0x1ad)](([,_0x3c0ff3])=>_0x3c0ff3[a61_0x3293f5(0x1af)])[a61_0x3293f5(0x1a8)](([_0x4d2d7c])=>_0x4d2d7c));export const CONFIG_ENUM_VALUES=Object[a61_0x3293f5(0x19b)](Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x12bdd0])=>_0x12bdd0[a61_0x3293f5(0x1b8)])[a61_0x3293f5(0x1a8)](([_0x34647f,_0x191bff])=>[_0x34647f,[..._0x191bff['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a61_0x3293f5(0x1bb)](CONFIG_FIELD_SCHEMAS)[a61_0x3293f5(0x1ad)](([,_0x114f41])=>_0x114f41['importable'])['map'](([_0x4d09b1])=>_0x4d09b1);function a61_0x2f27(_0x32f2c6,_0x2702a8){_0x32f2c6=_0x32f2c6-0x19b;const _0x405637=a61_0x4056();let _0x2f279d=_0x405637[_0x32f2c6];return _0x2f279d;}export function getConfigFieldSchema(_0x58e445){return CONFIG_FIELD_SCHEMAS[_0x58e445];}export function getConfigEnumValues(_0x593bf5){return getConfigFieldSchema(_0x593bf5)?.['enumValues'];}export function getConfigDefaultValue(_0x4753af){const _0x3d7e18=a61_0x3293f5;return getConfigFieldSchema(_0x4753af)?.[_0x3d7e18(0x1ac)];}export function isTopLevelConfigKey(_0x3b3d0a){const _0x5b33ff=a61_0x3293f5;return TOP_LEVEL_CONFIG_KEYS[_0x5b33ff(0x1b7)](_0x3b3d0a);}export function isLegacyCompatConfigKey(_0x6b9f78){const _0x190126=a61_0x3293f5;return getConfigFieldSchema(_0x6b9f78)?.[_0x190126(0x19f)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x36f54f){const _0x481aac=a61_0x3293f5;return[..._0x36f54f][_0x481aac(0x1aa)](',\x20');}function a61_0x4056(){const _0x3e20be=['has','enumValues','308150lZTZSs','locale','entries','431924jrGXbM','riskLevel','24LjFmgS','fromEntries','Override\x20runtime\x20domain','1801810fcEsAB','18kmtUoh','legacyCompatOnly','2807qSIPYb','76bWMCAk','Locale','2003316DWKmWM','Access\x20key\x20(client-ak\x20auth)','504938AoYhHL','143YehyNA','Target\x20environment','map','format','join','Risk\x20level','defaultValue','filter','416673xUGrOu','cliSettableTopLevel','22cfJBvt','21bnfvhT','Default\x20output\x20format','Override\x20SkillHub\x20domain','Default\x20page\x20size','env',';\x20local\x20alias:\x20apps.<alias>.appcode'];a61_0x4056=function(){return _0x3e20be;};return a61_0x4056();}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x405819=a61_0x3293f5;return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+_0x405819(0x1b6);}export function buildAppProfileListFields(_0x294b5b){return{'env':_0x294b5b,'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_0x5af300=a62_0x3ee8;(function(_0x342bdb,_0xd0f23){const _0x19c09e=a62_0x3ee8,_0x3898d4=_0x342bdb();while(!![]){try{const _0x1852f5=-parseInt(_0x19c09e(0x88))/0x1*(-parseInt(_0x19c09e(0x84))/0x2)+-parseInt(_0x19c09e(0x86))/0x3+parseInt(_0x19c09e(0x80))/0x4+parseInt(_0x19c09e(0x82))/0x5*(parseInt(_0x19c09e(0x7e))/0x6)+-parseInt(_0x19c09e(0x7f))/0x7*(parseInt(_0x19c09e(0x7d))/0x8)+parseInt(_0x19c09e(0x83))/0x9*(parseInt(_0x19c09e(0x87))/0xa)+-parseInt(_0x19c09e(0x81))/0xb;if(_0x1852f5===_0xd0f23)break;else _0x3898d4['push'](_0x3898d4['shift']());}catch(_0x4e5193){_0x3898d4['push'](_0x3898d4['shift']());}}}(a62_0x1212,0x630ea));function a62_0x3ee8(_0x342955,_0x1e2f43){_0x342955=_0x342955-0x7d;const _0x1212f9=a62_0x1212();let _0x3ee8f7=_0x1212f9[_0x342955];return _0x3ee8f7;}function a62_0x1212(){const _0x5af86f=['2700uOSrBv','452mrLRAt','UNPUBLISH','1580250AvZFAA','17410rEIAtH','2428dZGIJQ','PUBLISHED','1716672mUlThB','8376RqTQhX','14gPbLSS','1550496DUDjVf','6764032WHEqoG','1855CvbWNY'];a62_0x1212=function(){return _0x5af86f;};return a62_0x1212();}export const APP_PUBLISH_STATUS={'Published':a62_0x5af300(0x89),'Unpublished':a62_0x5af300(0x85)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];
@@ -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_0x25d67e=a63_0x56b9;function a63_0x1466(){const _0xa07d68=['1839219aDjVeh','223295mxgQNH','35vYfovK','105594XxVMYC','ClientAk','4655800gSwyHw','670825ZdxkMe','943138PWxtqh','1738233IMJCQT','client-ak','12pCMSmm'];a63_0x1466=function(){return _0xa07d68;};return a63_0x1466();}function a63_0x56b9(_0x22bebf,_0x52c272){_0x22bebf=_0x22bebf-0x190;const _0x146673=a63_0x1466();let _0x56b963=_0x146673[_0x22bebf];return _0x56b963;}(function(_0x54c134,_0x14cc33){const _0x4978b7=a63_0x56b9,_0x3551d8=_0x54c134();while(!![]){try{const _0x1a78c0=-parseInt(_0x4978b7(0x191))/0x1+parseInt(_0x4978b7(0x197))/0x2+-parseInt(_0x4978b7(0x190))/0x3+parseInt(_0x4978b7(0x19a))/0x4*(parseInt(_0x4978b7(0x196))/0x5)+parseInt(_0x4978b7(0x193))/0x6*(-parseInt(_0x4978b7(0x192))/0x7)+parseInt(_0x4978b7(0x195))/0x8+-parseInt(_0x4978b7(0x198))/0x9;if(_0x1a78c0===_0x14cc33)break;else _0x3551d8['push'](_0x3551d8['shift']());}catch(_0xe05e58){_0x3551d8['push'](_0x3551d8['shift']());}}}(a63_0x1466,0x52a6b));export const AUTH_MODE={'ClientAk':a63_0x25d67e(0x199)};export function isAuthMode(_0x370f94){const _0x2a379f=a63_0x25d67e;return _0x370f94===AUTH_MODE[_0x2a379f(0x194)];}
@@ -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_0x38394b=a64_0x2721;(function(_0xaeec4a,_0x14c32c){const _0x559e49=a64_0x2721,_0x508451=_0xaeec4a();while(!![]){try{const _0x595bad=parseInt(_0x559e49(0xb8))/0x1+parseInt(_0x559e49(0xa8))/0x2*(parseInt(_0x559e49(0xb1))/0x3)+parseInt(_0x559e49(0xae))/0x4*(parseInt(_0x559e49(0xaf))/0x5)+parseInt(_0x559e49(0xa7))/0x6+parseInt(_0x559e49(0x9d))/0x7*(-parseInt(_0x559e49(0xba))/0x8)+-parseInt(_0x559e49(0x94))/0x9*(parseInt(_0x559e49(0xc3))/0xa)+-parseInt(_0x559e49(0xc2))/0xb*(-parseInt(_0x559e49(0xa5))/0xc);if(_0x595bad===_0x14c32c)break;else _0x508451['push'](_0x508451['shift']());}catch(_0x32e63e){_0x508451['push'](_0x508451['shift']());}}}(a64_0x126e,0xdf5cf));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';function a64_0x126e(){const _0x296bed=['Skip\x20confirmation\x20for\x20high-risk\x20writes','fromEntries','<code>','app','476955UtqULb','verbose','8152OKRAGe','appcode','non-interactive','string','Clear\x20output','format','Verbose\x20output','Environment','66hZFEwT','2581180bBLAih','clear','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','production\x20|\x20development\x20|\x20daily','9rRqxGC','JSON\x20params\x20for\x20execute\x20commands','env','Alias\x20for\x20--non-interactive','<expr>','meowKey','Output\x20format','yes','SQL\x20query\x20code','11907AOhRAA','Force\x20non-interactive\x20mode\x20(CI)','json\x20|\x20pretty\x20|\x20compress','cliBinName','Preview\x20operation\x20without\x20executing','type','global','name','1679172qZaxEI','sqlcode','2674872vJPdak','286IqgnWd','dry-run','Name\x20filter','params','Select\x20app\x20profile\x20by\x20name','<name>','24056AYwfUp','255pNcszn','map','17565adNrrM','boolean','Use\x20global\x20config\x20scope'];a64_0x126e=function(){return _0x296bed;};return a64_0x126e();}export const CLI_BIN_NAME=PRODUCT_CONFIG[a64_0x38394b(0xa0)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a64_0x2721(_0x24b283,_0x1e07fb){_0x24b283=_0x24b283-0x91;const _0x126ed1=a64_0x126e();let _0x272129=_0x126ed1[_0x24b283];return _0x272129;}export const GLOBAL_FLAGS=[{'name':a64_0x38394b(0xbb),'meowKey':'appcode','type':a64_0x38394b(0xbd),'description':'Override\x20appcode','hint':a64_0x38394b(0xb6)},{'name':a64_0x38394b(0xb7),'meowKey':a64_0x38394b(0xb7),'type':a64_0x38394b(0xbd),'description':a64_0x38394b(0xac),'hint':a64_0x38394b(0xad)},{'name':a64_0x38394b(0x96),'meowKey':'env','type':'string','description':a64_0x38394b(0xc1),'hint':a64_0x38394b(0x93)},{'name':a64_0x38394b(0xbf),'meowKey':a64_0x38394b(0xbf),'type':'string','description':a64_0x38394b(0x9a),'hint':a64_0x38394b(0x9f)},{'name':'jq','meowKey':'jq','type':a64_0x38394b(0xbd),'description':a64_0x38394b(0x92),'hint':a64_0x38394b(0x98)},{'name':a64_0x38394b(0xa9),'meowKey':'dryRun','type':a64_0x38394b(0xb2),'description':a64_0x38394b(0xa1)},{'name':a64_0x38394b(0x9b),'meowKey':a64_0x38394b(0x9b),'type':a64_0x38394b(0xb2),'description':a64_0x38394b(0xb4)},{'name':a64_0x38394b(0xbc),'meowKey':'nonInteractive','type':a64_0x38394b(0xb2),'description':a64_0x38394b(0x9e)},{'name':a64_0x38394b(0xa3),'meowKey':'global','type':a64_0x38394b(0xb2),'description':a64_0x38394b(0xb3)},{'name':'ci','meowKey':'ci','type':a64_0x38394b(0xb2),'description':a64_0x38394b(0x97),'hidden':!![]},{'name':'help','meowKey':'help','type':a64_0x38394b(0xb2),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':a64_0x38394b(0xbd),'description':'Record\x20ID','hidden':!![]},{'name':a64_0x38394b(0xa4),'meowKey':a64_0x38394b(0xa4),'type':a64_0x38394b(0xbd),'description':a64_0x38394b(0xaa),'hidden':!![]},{'name':a64_0x38394b(0xa6),'meowKey':a64_0x38394b(0xa6),'type':a64_0x38394b(0xbd),'description':a64_0x38394b(0x9c),'hidden':!![]},{'name':a64_0x38394b(0xab),'meowKey':a64_0x38394b(0xab),'type':a64_0x38394b(0xbd),'description':a64_0x38394b(0x95),'hidden':!![]},{'name':a64_0x38394b(0xb9),'meowKey':a64_0x38394b(0xb9),'type':a64_0x38394b(0xb2),'description':a64_0x38394b(0xc0),'hidden':!![]},{'name':a64_0x38394b(0x91),'meowKey':a64_0x38394b(0x91),'type':'boolean','description':a64_0x38394b(0xbe),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a64_0x38394b(0xbb),a64_0x38394b(0xb7),a64_0x38394b(0x96),a64_0x38394b(0xbf),'jq',a64_0x38394b(0xa9),'yes','non-interactive','ci']);export function buildMeowFlags(){const _0x252f1f=a64_0x38394b;return Object[_0x252f1f(0xb5)](GLOBAL_FLAGS[_0x252f1f(0xb0)](_0x4a1e54=>[_0x4a1e54[_0x252f1f(0x99)],{'type':_0x4a1e54[_0x252f1f(0xa2)]}]));}
@@ -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
+ const a65_0x23e021=a65_0x3a5a;(function(_0x5c3e69,_0x4631f9){const _0x438686=a65_0x3a5a,_0x5095ca=_0x5c3e69();while(!![]){try{const _0x3e354a=parseInt(_0x438686(0x103))/0x1+parseInt(_0x438686(0x108))/0x2+-parseInt(_0x438686(0x102))/0x3*(-parseInt(_0x438686(0x109))/0x4)+-parseInt(_0x438686(0x10d))/0x5+-parseInt(_0x438686(0x104))/0x6*(-parseInt(_0x438686(0x10b))/0x7)+parseInt(_0x438686(0x10c))/0x8*(parseInt(_0x438686(0x101))/0x9)+-parseInt(_0x438686(0x107))/0xa*(parseInt(_0x438686(0x10a))/0xb);if(_0x3e354a===_0x4631f9)break;else _0x5095ca['push'](_0x5095ca['shift']());}catch(_0x28a7ca){_0x5095ca['push'](_0x5095ca['shift']());}}}(a65_0x7e1b,0x99c3d));function a65_0x3a5a(_0x16e1a3,_0x2112f8){_0x16e1a3=_0x16e1a3-0x100;const _0x7e1bff=a65_0x7e1b();let _0x3a5a39=_0x7e1bff[_0x16e1a3];return _0x3a5a39;}export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':a65_0x23e021(0x106),'format':'compress','locale':a65_0x23e021(0x105),'riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a65_0x23e021(0x100);function a65_0x7e1b(){const _0x42d63f=['compress','9528966xTOhpe','27kihZKS','637011CfWxgh','30pgVKHY','en-US','production','20EqcoKk','173724UbyCvX','175836DfeBCO','5240059KmUYtd','326648LdkqXa','8NpGjKk','4145195xgscWD'];a65_0x7e1b=function(){return _0x42d63f;};return a65_0x7e1b();}
@@ -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_0x5e8ba0=a66_0x4084;function a66_0x42a4(){const _0x23a178=['32388VDXKzU','322111Sdvclg','npmPackageName','3926646TyIUvZ','2326476xsKhJO','2DAEkZx','31065012bkfPQy','2370824qGYxrd','npmRegistryBaseUrl','skillSource','485APSWXQ','1486863bNyPNG'];a66_0x42a4=function(){return _0x23a178;};return a66_0x42a4();}(function(_0x438992,_0x5b28f8){const _0x5afe26=a66_0x4084,_0xf9a2a7=_0x438992();while(!![]){try{const _0x2c1eec=-parseInt(_0x5afe26(0x19a))/0x1+parseInt(_0x5afe26(0x19e))/0x2*(-parseInt(_0x5afe26(0x19d))/0x3)+parseInt(_0x5afe26(0x199))/0x4*(-parseInt(_0x5afe26(0x197))/0x5)+-parseInt(_0x5afe26(0x19c))/0x6+-parseInt(_0x5afe26(0x198))/0x7+-parseInt(_0x5afe26(0x1a0))/0x8+parseInt(_0x5afe26(0x19f))/0x9;if(_0x2c1eec===_0x5b28f8)break;else _0xf9a2a7['push'](_0xf9a2a7['shift']());}catch(_0x2e7c5b){_0xf9a2a7['push'](_0xf9a2a7['shift']());}}}(a66_0x42a4,0x62fcd));import{PRODUCT_CONFIG}from'../constant/product.js';function a66_0x4084(_0x2467fc,_0x5da7d7){_0x2467fc=_0x2467fc-0x197;const _0x42a4df=a66_0x42a4();let _0x40848f=_0x42a4df[_0x2467fc];return _0x40848f;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a66_0x5e8ba0(0x19b)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a66_0x5e8ba0(0x1a2)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a66_0x5e8ba0(0x1a1)];
@@ -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_0x2c7f74=a67_0x54a0;(function(_0x26766f,_0x42f74d){const _0x3d47bd=a67_0x54a0,_0x157523=_0x26766f();while(!![]){try{const _0x47c1cd=parseInt(_0x3d47bd(0x1fa))/0x1+-parseInt(_0x3d47bd(0x1f4))/0x2*(-parseInt(_0x3d47bd(0x201))/0x3)+parseInt(_0x3d47bd(0x1f8))/0x4*(-parseInt(_0x3d47bd(0x1ef))/0x5)+-parseInt(_0x3d47bd(0x1f3))/0x6+parseInt(_0x3d47bd(0x1fe))/0x7+parseInt(_0x3d47bd(0x1ee))/0x8*(parseInt(_0x3d47bd(0x200))/0x9)+parseInt(_0x3d47bd(0x1ed))/0xa;if(_0x47c1cd===_0x42f74d)break;else _0x157523['push'](_0x157523['shift']());}catch(_0x274238){_0x157523['push'](_0x157523['shift']());}}}(a67_0x26f4,0x33fce));function a67_0x26f4(){const _0x385170=['471807FttNjp','api','549RElNoy','73770kRYXlY','3822550eCKkbp','18712RIMWSC','5qBRuOn','userDomain','nonProduction','production','1868292Clkujj','8gAltRO','skillHubDomain','skillhub','apiDomain','1479284QMBVJB','domains','203450xNJejj','user','runtime','runtimeDomain'];a67_0x26f4=function(){return _0x385170;};return a67_0x26f4();}import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x537ccb){const _0x2a9533=a67_0x54a0;customApiDomain=_0x537ccb?.[_0x2a9533(0x1f7)],customUserDomain=_0x537ccb?.[_0x2a9533(0x1f0)],customRuntimeDomain=_0x537ccb?.[_0x2a9533(0x1fd)],customSkillHubDomain=_0x537ccb?.[_0x2a9533(0x1f5)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a67_0x2c7f74(0x1f2)][a67_0x2c7f74(0x1fb)]:PRODUCT_CONFIG[a67_0x2c7f74(0x1f9)][a67_0x2c7f74(0x1f1)][a67_0x2c7f74(0x1fb)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x2c7f74(0x1f9)]['production'][a67_0x2c7f74(0x1ff)]:PRODUCT_CONFIG[a67_0x2c7f74(0x1f9)][a67_0x2c7f74(0x1f1)][a67_0x2c7f74(0x1ff)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x2c7f74(0x1f9)][a67_0x2c7f74(0x1f2)][a67_0x2c7f74(0x1fc)]:PRODUCT_CONFIG[a67_0x2c7f74(0x1f9)][a67_0x2c7f74(0x1f1)][a67_0x2c7f74(0x1fc)]);function a67_0x54a0(_0x4a10de,_0x245d83){_0x4a10de=_0x4a10de-0x1ed;const _0x26f4af=a67_0x26f4();let _0x54a06e=_0x26f4af[_0x4a10de];return _0x54a06e;}export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x2c7f74(0x1f9)][a67_0x2c7f74(0x1f2)][a67_0x2c7f74(0x1f6)]:PRODUCT_CONFIG[a67_0x2c7f74(0x1f9)]['nonProduction']['skillhub']);
@@ -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_0x2174c0=a68_0x303e;(function(_0x475fdd,_0x343167){const _0x3a5e71=a68_0x303e,_0x4211f3=_0x475fdd();while(!![]){try{const _0x3c57e6=parseInt(_0x3a5e71(0x1ac))/0x1+parseInt(_0x3a5e71(0x1ab))/0x2+parseInt(_0x3a5e71(0x1a2))/0x3+parseInt(_0x3a5e71(0x1ad))/0x4+-parseInt(_0x3a5e71(0x1a1))/0x5+-parseInt(_0x3a5e71(0x1a9))/0x6+-parseInt(_0x3a5e71(0x1a8))/0x7*(-parseInt(_0x3a5e71(0x1a6))/0x8);if(_0x3c57e6===_0x343167)break;else _0x4211f3['push'](_0x4211f3['shift']());}catch(_0x161841){_0x4211f3['push'](_0x4211f3['shift']());}}}(a68_0x360b,0x8f5fc));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a68_0x2174c0(0x1a7),a68_0x2174c0(0x1a3),a68_0x2174c0(0x1ae)];export function normalizeEnv(_0x5721f6){const _0x58c3fd=a68_0x2174c0;return _0x5721f6===_0x58c3fd(0x1a5)?'production':_0x5721f6;}export function isProduction(_0x1db3eb){const _0x3712d3=a68_0x2174c0;return normalizeEnv(_0x1db3eb)===_0x3712d3(0x1a7);}export function isDaily(_0x341548){const _0x117198=a68_0x2174c0;return normalizeEnv(_0x341548)===_0x117198(0x1ae);}export function isDev(_0x2342ff){const _0xa0ab13=a68_0x2174c0,_0x32cb76=normalizeEnv(_0x2342ff);return _0x32cb76===_0xa0ab13(0x1a3)||_0x32cb76===_0xa0ab13(0x1a4);}let env=normalizeEnv(productEnv(a68_0x2174c0(0x1aa))||a68_0x2174c0(0x1a7));function a68_0x360b(){const _0x11f935=['5895090gtFbfV','ENV','1993528NRYvFX','192510ImnQFj','1853556MbaJge','daily','5633860fkWedb','807162PNbzLa','development','dev','online','885520zkmQNe','production','49PVeMkU'];a68_0x360b=function(){return _0x11f935;};return a68_0x360b();}function a68_0x303e(_0x496aaf,_0xe46ee6){_0x496aaf=_0x496aaf-0x1a1;const _0x360b81=a68_0x360b();let _0x303e48=_0x360b81[_0x496aaf];return _0x303e48;}export function getEnv(){return env;}export function initEnv(_0x2179a3){env=normalizeEnv(_0x2179a3);}
@@ -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
+ function a69_0x46c8(){const _0x611b0=['7DHCdUH','45yKLIYV','485805cdABaS','20408762DpjtpM','16CoavQL','1185OJQXaM','1611184UUPTCW','344plGvhX','2084390jxZJTH','json','1858579GcLxnD','pretty','8598174WyXvHc','compress'];a69_0x46c8=function(){return _0x611b0;};return a69_0x46c8();}function a69_0x17b5(_0x25b68a,_0x8ed56d){_0x25b68a=_0x25b68a-0x110;const _0x46c805=a69_0x46c8();let _0x17b5e1=_0x46c805[_0x25b68a];return _0x17b5e1;}const a69_0x27a468=a69_0x17b5;(function(_0x1bd473,_0xbbc2c6){const _0x3ecb67=a69_0x17b5,_0x55f63a=_0x1bd473();while(!![]){try{const _0x3ada10=-parseInt(_0x3ecb67(0x112))/0x1+parseInt(_0x3ecb67(0x11a))/0x2*(-parseInt(_0x3ecb67(0x118))/0x3)+-parseInt(_0x3ecb67(0x11d))/0x4*(-parseInt(_0x3ecb67(0x11b))/0x5)+parseInt(_0x3ecb67(0x114))/0x6+parseInt(_0x3ecb67(0x116))/0x7*(-parseInt(_0x3ecb67(0x11c))/0x8)+-parseInt(_0x3ecb67(0x117))/0x9*(-parseInt(_0x3ecb67(0x110))/0xa)+parseInt(_0x3ecb67(0x119))/0xb;if(_0x3ada10===_0xbbc2c6)break;else _0x55f63a['push'](_0x55f63a['shift']());}catch(_0x5bbc6b){_0x55f63a['push'](_0x55f63a['shift']());}}}(a69_0x46c8,0xf30a3));export const OUTPUT_FORMAT_VALUES=[a69_0x27a468(0x111),a69_0x27a468(0x113),a69_0x27a468(0x115)];
@@ -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
+ const a70_0x16d5cc=a70_0x488c;(function(_0x1ecfa0,_0x5d939){const _0x428018=a70_0x488c,_0xbc9a15=_0x1ecfa0();while(!![]){try{const _0x4e908b=-parseInt(_0x428018(0x85))/0x1*(-parseInt(_0x428018(0x80))/0x2)+-parseInt(_0x428018(0x8c))/0x3*(-parseInt(_0x428018(0x8b))/0x4)+parseInt(_0x428018(0x87))/0x5+-parseInt(_0x428018(0x7d))/0x6*(parseInt(_0x428018(0x7f))/0x7)+parseInt(_0x428018(0x84))/0x8+parseInt(_0x428018(0x8e))/0x9+parseInt(_0x428018(0x75))/0xa*(-parseInt(_0x428018(0x8f))/0xb);if(_0x4e908b===_0x5d939)break;else _0xbc9a15['push'](_0xbc9a15['shift']());}catch(_0x2f2370){_0xbc9a15['push'](_0xbc9a15['shift']());}}}(a70_0x5b27,0xad113));export const PRODUCT_CONFIG={'cliBinName':a70_0x16d5cc(0x7a),'cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':a70_0x16d5cc(0x93),'skillSource':a70_0x16d5cc(0x92),'npmRegistryBaseUrl':a70_0x16d5cc(0x7e),'envPrefix':a70_0x16d5cc(0x83),'legacyEnvPrefixes':[a70_0x16d5cc(0x77)],'configFileNames':[a70_0x16d5cc(0x8d),a70_0x16d5cc(0x81)],'newConfigFileName':a70_0x16d5cc(0x8d),'homeDirName':a70_0x16d5cc(0x90),'logFileName':'.lovrabet-runtime.log','invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a70_0x16d5cc(0x88),'skipNpxSkillsEnvSuffix':a70_0x16d5cc(0x76),'domains':{'production':{'user':'https://user.lovrabet.com','api':a70_0x16d5cc(0x91),'runtime':a70_0x16d5cc(0x82),'skillhub':a70_0x16d5cc(0x86)},'nonProduction':{'user':a70_0x16d5cc(0x8a),'api':a70_0x16d5cc(0x7c),'runtime':'https://daily-runtime.lovrabet.com','skillhub':a70_0x16d5cc(0x79)}},'accessKeyCreatePath':'/user/ak'};function a70_0x488c(_0xa6f443,_0x344491){_0xa6f443=_0xa6f443-0x75;const _0x5b27c8=a70_0x5b27();let _0x488cf9=_0x5b27c8[_0xa6f443];return _0x488cf9;}export function productEnvName(_0x4d7c7f){const _0x5a8c77=a70_0x16d5cc;return PRODUCT_CONFIG[_0x5a8c77(0x7b)]+'_'+_0x4d7c7f;}export function productEnvNames(_0x44f709){const _0x10e153=a70_0x16d5cc;return[productEnvName(_0x44f709),...PRODUCT_CONFIG[_0x10e153(0x78)][_0x10e153(0x89)](_0x1ea1ec=>_0x1ea1ec+'_'+_0x44f709)];}export function productEnv(_0x596202){for(const _0x23813e of productEnvNames(_0x596202)){const _0x24c47f=process.env[_0x23813e];if(_0x24c47f!==undefined)return _0x24c47f;}return undefined;}function a70_0x5b27(){const _0x1b992d=['798034JAPEdC','https://skills.lovrabet.com','1497695WPFUAh','Lovrabet\x20User\x20Center','map','https://user-daily.lovrabet.com','294076aKomLX','9QTsTvp','.lovrabet.json','8774748yIXDPo','88atYBBk','.lovrabet','https://api.lovrabet.com','lovrabet/lovrabet-cli','@lovrabet/lovrabet-cli','1933570yuhfvU','SKIP_NPX_SKILLS','RABETBASE','legacyEnvPrefixes','https://skills-daily.lovrabet.com','lovrabet','envPrefix','https://daily-api.lovrabet.com','498JFWVqn','https://registry.npmjs.org','12859ECoTNB','2CtGBsF','.lovrabetrc','https://runtime.lovrabet.com','LOVRABET','920864lYyLzC'];a70_0x5b27=function(){return _0x1b992d;};return a70_0x5b27();}
@@ -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
+ function a71_0x3748(){const _0x23478f=['1599030rcyOyG','2555056mzRLsI','3969497FlCBVJ','high-risk-write','write','10GtGjjN','6763788SIzWYa','159845UjjdIE','read','6eeAXsJ','2348288jkzywC','78dbrgFR','183297aqtcji'];a71_0x3748=function(){return _0x23478f;};return a71_0x3748();}function a71_0xab71(_0x14c766,_0xf0697c){_0x14c766=_0x14c766-0x8d;const _0x374824=a71_0x3748();let _0xab714a=_0x374824[_0x14c766];return _0xab714a;}const a71_0x3f5603=a71_0xab71;(function(_0x35d96c,_0x40d9c8){const _0x2f6c87=a71_0xab71,_0x3e92fb=_0x35d96c();while(!![]){try{const _0x2be0e8=-parseInt(_0x2f6c87(0x94))/0x1*(parseInt(_0x2f6c87(0x91))/0x2)+parseInt(_0x2f6c87(0x95))/0x3+-parseInt(_0x2f6c87(0x92))/0x4+parseInt(_0x2f6c87(0x8f))/0x5*(parseInt(_0x2f6c87(0x93))/0x6)+-parseInt(_0x2f6c87(0x97))/0x7+parseInt(_0x2f6c87(0x96))/0x8+-parseInt(_0x2f6c87(0x8e))/0x9*(-parseInt(_0x2f6c87(0x8d))/0xa);if(_0x2be0e8===_0x40d9c8)break;else _0x3e92fb['push'](_0x3e92fb['shift']());}catch(_0x25ed67){_0x3e92fb['push'](_0x3e92fb['shift']());}}}(a71_0x3748,0x4d05f));export const RISK_LEVEL_VALUES=[a71_0x3f5603(0x90),a71_0x3f5603(0x99),a71_0x3f5603(0x98)];
@@ -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
+ const a72_0x4826b7=a72_0x5d06;function a72_0x5d06(_0x1e4063,_0x48abb4){_0x1e4063=_0x1e4063-0xfb;const _0x1ae561=a72_0x1ae5();let _0x5d0638=_0x1ae561[_0x1e4063];return _0x5d0638;}function a72_0x1ae5(){const _0x2f7a52=['production','2305748dQtdol','1769910Zjjtfh','457152roXnwT','38507076OaKxcA','35hldQNh','5372244TOXOeo','5111247oGZTJj','835831RBdeQL','2qPmvtY','user'];a72_0x1ae5=function(){return _0x2f7a52;};return a72_0x1ae5();}(function(_0x1598c0,_0x527bcc){const _0x5e1dde=a72_0x5d06,_0x4dc58e=_0x1598c0();while(!![]){try{const _0x5cfe0a=parseInt(_0x5e1dde(0xfe))/0x1*(-parseInt(_0x5e1dde(0xff))/0x2)+-parseInt(_0x5e1dde(0xfd))/0x3+-parseInt(_0x5e1dde(0x102))/0x4+parseInt(_0x5e1dde(0x103))/0x5+-parseInt(_0x5e1dde(0xfc))/0x6+parseInt(_0x5e1dde(0xfb))/0x7*(parseInt(_0x5e1dde(0x104))/0x8)+parseInt(_0x5e1dde(0x105))/0x9;if(_0x5cfe0a===_0x527bcc)break;else _0x4dc58e['push'](_0x4dc58e['shift']());}catch(_0x2478af){_0x4dc58e['push'](_0x4dc58e['shift']());}}}(a72_0x1ae5,0xdd67b));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG['domains'][a72_0x4826b7(0x101)][a72_0x4826b7(0x100)]+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_0x3a56af=a73_0x28a9;(function(_0x1743eb,_0x284419){const _0x8a1347=a73_0x28a9,_0xac4197=_0x1743eb();while(!![]){try{const _0x4b8cae=parseInt(_0x8a1347(0x195))/0x1+parseInt(_0x8a1347(0x1a7))/0x2*(parseInt(_0x8a1347(0x1a0))/0x3)+-parseInt(_0x8a1347(0x1b0))/0x4+parseInt(_0x8a1347(0x18c))/0x5+-parseInt(_0x8a1347(0x1a9))/0x6*(parseInt(_0x8a1347(0x1c0))/0x7)+-parseInt(_0x8a1347(0x1ad))/0x8*(-parseInt(_0x8a1347(0x1ba))/0x9)+-parseInt(_0x8a1347(0x19e))/0xa*(parseInt(_0x8a1347(0x1a5))/0xb);if(_0x4b8cae===_0x284419)break;else _0xac4197['push'](_0xac4197['shift']());}catch(_0x26c9ff){_0xac4197['push'](_0xac4197['shift']());}}}(a73_0x33a0,0xa2007));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';function a73_0x33a0(){const _0x4c2903=['FORMAT','empty','stdout','write','runtimeDomain','daily','./constant/env.js','4202960SqvCsz','inherit','trim','local-alias','high-risk-write','APP','top-level','ACCESS_KEY','code','120660KCUkuV','stringify','slice','join','defaultApp','production','VERBOSE','skillHubDomain','development','3820jroxFL','ENV','1583061sZfGFV','riskLevel','accessKey','stdin','object','1837cehJAB','string','2WEZtkx','read','66bKSyqZ','userDomain','find','setRawMode','8gyhpvl','cwd','parse','1265408KPLxpm','format','apps','apiDomain','globalConfig','app','nonInteractive','raw','maxRisk','missing','4203657MNfBjo','project','explicit','isTTY','error','global','580559edhhXG','APPCODE','isRaw','utf8','appcode','projectConfig','env','./constant/domain.js','true','configFileNames'];a73_0x33a0=function(){return _0x4c2903;};return a73_0x33a0();}import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';function a73_0x28a9(_0x315ad1,_0x30b1f9){_0x315ad1=_0x315ad1-0x18a;const _0x33a010=a73_0x33a0();let _0x28a986=_0x33a010[_0x315ad1];return _0x28a986;}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_0x3a56af(0x1c9)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG['newConfigFileName'];function resolveConfigPath(_0x4c768e){for(const _0x2a84da of CONFIG_NAMES){const _0x1724a3=resolve(_0x4c768e,_0x2a84da);if(existsSync(_0x1724a3))return _0x1724a3;}return undefined;}export function resolveWriteConfigPath(_0x581d33){const _0x2ef7e7=a73_0x3a56af,_0x608393=_0x581d33===_0x2ef7e7(0x1bb)?process[_0x2ef7e7(0x1ae)]():homedir(),_0x2d17d9=resolveConfigPath(_0x608393);return _0x2d17d9??resolve(_0x608393,NEW_CONFIG_NAME);}export function readConfigFile(_0x2ac221){const _0x245406=a73_0x3a56af;try{if(existsSync(_0x2ac221)){const _0x1820fa=readFileSync(_0x2ac221,{'encoding':_0x245406(0x1c3)});if(_0x1820fa){const _0x2e38fa=JSON[_0x245406(0x1af)](_0x1820fa);return migrateOnlineEnv(_0x2ac221,_0x2e38fa),_0x2e38fa;}}}catch{}return{};}function migrateOnlineEnv(_0x5d6793,_0x345311){const _0x32ce14=a73_0x3a56af;let _0x27bcfd=![];_0x345311[_0x32ce14(0x1c6)]==='online'&&(_0x345311['env']='production',_0x27bcfd=!![]);if(_0x345311[_0x32ce14(0x1b2)]&&typeof _0x345311[_0x32ce14(0x1b2)]===_0x32ce14(0x1a4))for(const _0x3f6bc6 of Object['values'](_0x345311['apps'])){_0x3f6bc6&&_0x3f6bc6[_0x32ce14(0x1c6)]==='online'&&(_0x3f6bc6[_0x32ce14(0x1c6)]='production',_0x27bcfd=!![]);}if(_0x27bcfd)try{writeConfigFile(_0x5d6793,_0x345311);}catch{}}export function writeConfigFile(_0x344eea,_0x52b94f){const _0x42ad7a=a73_0x3a56af,_0xda9c9c=dirname(_0x344eea);!existsSync(_0xda9c9c)&&mkdirSync(_0xda9c9c,{'recursive':!![]});const _0xec5c84=_0x344eea+'.tmp';try{writeFileSync(_0xec5c84,JSON[_0x42ad7a(0x196)](_0x52b94f,null,0x2)+'\x0a',{'encoding':_0x42ad7a(0x1c3),'mode':0x180});try{renameSync(_0xec5c84,_0x344eea);}catch(_0x2e4bc6){if(_0x2e4bc6[_0x42ad7a(0x194)]==='EPERM'||_0x2e4bc6[_0x42ad7a(0x194)]==='EXDEV'||_0x2e4bc6[_0x42ad7a(0x194)]==='EACCES'){writeFileSync(_0x344eea,JSON['stringify'](_0x52b94f,null,0x2)+'\x0a',{'encoding':_0x42ad7a(0x1c3)});try{unlinkSync(_0xec5c84);}catch{}}else throw _0x2e4bc6;}}catch(_0x1755f7){try{unlinkSync(_0xec5c84);}catch{}throw _0x1755f7;}}export function isNonInteractiveMode(_0x1a494c){const _0x20f043=a73_0x3a56af;return!!(_0x1a494c[_0x20f043(0x1b6)]||_0x1a494c['ci']||productEnvNames('CI')['some'](_0x128160=>process.env[_0x128160]===_0x20f043(0x1c8))||process.env.CI==='true'||!process[_0x20f043(0x1cc)][_0x20f043(0x1bd)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5d78ef=a73_0x3a56af;if(!process[_0x5d78ef(0x1a3)]['isTTY'])return![];try{const _0x21c1dd=process['stdin'][_0x5d78ef(0x1c2)];return process[_0x5d78ef(0x1a3)][_0x5d78ef(0x1ac)](!![]),process['stdin'][_0x5d78ef(0x1ac)](_0x21c1dd??![]),!![];}catch{return![];}}export async function createContext(_0x53625e){const _0x4db6e6=a73_0x3a56af,_0x24488f=readRawConfig(),_0x399624=buildConfig(_0x24488f,_0x53625e);await initGlobalEnvironment(_0x399624);const {getUserDomain:_0x4107c0,getApiDomain:_0x3d0254}=await import(_0x4db6e6(0x1c7)),_0xba140={'apiDomain':_0x3d0254(),'userDomain':_0x4107c0()},_0x1c2dc7=await buildAuth(_0x399624);logger['setLogPath'](process['cwd']());const _0x218979=(CLI_BIN_NAME+'\x20'+process['argv'][_0x4db6e6(0x197)](0x2)[_0x4db6e6(0x198)]('\x20'))['trim']();logger['setRawCommand'](_0x218979);const _0x599b52=isNonInteractiveMode(_0x53625e);return{'config':_0x399624,'auth':_0x1c2dc7,'logger':logger,'env':_0xba140,'nonInteractive':_0x599b52};}export function buildConfigFromFlags(_0x2e1704){return buildConfig(readRawConfig(),_0x2e1704);}export function getLocalAppAliases(_0xd0ce48){const _0x2e2a11=a73_0x3a56af;return _0xd0ce48['apps']&&typeof _0xd0ce48[_0x2e2a11(0x1b2)]===_0x2e2a11(0x1a4)?_0xd0ce48[_0x2e2a11(0x1b2)]:{};}export function resolveLocalAppAliasCode(_0x2acc71,_0x3a0061){const _0x205515=a73_0x3a56af;if(!_0x3a0061)return undefined;const _0x4124e4=getLocalAppAliases(_0x2acc71)[_0x3a0061],_0x29cc69=_0x4124e4?.[_0x205515(0x1c4)];return typeof _0x29cc69==='string'&&_0x29cc69[_0x205515(0x18e)]()?_0x29cc69['trim']():undefined;}export function readAppCodeFromConfig(){const _0x4a21af=a73_0x3a56af,_0x30d702=readRawConfig(),_0x11c1dd=_0x30d702['appcode']??_0x30d702[_0x4a21af(0x1b5)];if(typeof _0x11c1dd===_0x4a21af(0x1a6)&&_0x11c1dd[_0x4a21af(0x18e)]())return _0x11c1dd[_0x4a21af(0x18e)]();const _0x5f0a65=resolveLocalAppAliasCode(_0x30d702,typeof _0x30d702['defaultApp']===_0x4a21af(0x1a6)?_0x30d702['defaultApp']:undefined);if(_0x5f0a65)return _0x5f0a65;const _0x5a9f6c=normalizeEnv(String(_0x30d702[_0x4a21af(0x1c6)]||_0x4a21af(0x19a))),_0x5d730e=isDaily(_0x5a9f6c)?_0x4a21af(0x18a):isDev(_0x5a9f6c)?_0x4a21af(0x19d):_0x4a21af(0x19a),_0x488b71=resolveCachedAppCode(typeof _0x30d702[_0x4a21af(0x199)]===_0x4a21af(0x1a6)?_0x30d702[_0x4a21af(0x199)]:undefined,_0x5d730e,typeof _0x30d702[_0x4a21af(0x1a2)]===_0x4a21af(0x1a6)?_0x30d702[_0x4a21af(0x1a2)]:undefined);if(_0x488b71)return _0x488b71;const _0x1a8dde=Object['values'](getLocalAppAliases(_0x30d702))[_0x4a21af(0x1ab)](_0x26c8e4=>_0x26c8e4?.[_0x4a21af(0x1c4)]);return typeof _0x1a8dde?.[_0x4a21af(0x1c4)]===_0x4a21af(0x1a6)&&_0x1a8dde[_0x4a21af(0x1c4)][_0x4a21af(0x18e)]()?_0x1a8dde[_0x4a21af(0x1c4)]['trim']():undefined;}export function readScopedConfig(_0x1f6000){const _0x27c903=a73_0x3a56af,_0x2b5d73=_0x1f6000[_0x27c903(0x1bf)]?_0x27c903(0x1bf):'project';return readConfigFile(resolveWriteConfigPath(_0x2b5d73));}export function writeScopedConfig(_0x1eac30,_0x156d7d){const _0x51be19=a73_0x3a56af,_0x30e919=_0x156d7d[_0x51be19(0x1bf)]?_0x51be19(0x1bf):_0x51be19(0x1bb);writeConfigFile(resolveWriteConfigPath(_0x30e919),_0x1eac30);}export async function initGlobalEnvironment(_0x5978f6){const _0x59d115=a73_0x3a56af,{initEnv:_0xb8c5ea}=await import(_0x59d115(0x18b));_0xb8c5ea(_0x5978f6[_0x59d115(0x1c6)]);const {initDomains:_0x144e42}=await import(_0x59d115(0x1c7));_0x144e42({'apiDomain':_0x5978f6['raw'][_0x59d115(0x1b3)]||_0x5978f6[_0x59d115(0x1b7)]['host']||undefined,'userDomain':_0x5978f6[_0x59d115(0x1b7)][_0x59d115(0x1aa)]||undefined,'runtimeDomain':_0x5978f6[_0x59d115(0x1b7)][_0x59d115(0x1ce)]||undefined,'skillHubDomain':_0x5978f6[_0x59d115(0x1b7)][_0x59d115(0x19c)]||undefined});}export function getProjectConfigPath(){const _0x257c77=a73_0x3a56af;return resolveConfigPath(process[_0x257c77(0x1ae)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x54e5de){const _0x1e8e17=a73_0x3a56af;if(!existsSync(_0x54e5de))return{'status':_0x1e8e17(0x1b9)};try{const _0x4f410e=readFileSync(_0x54e5de,{'encoding':_0x1e8e17(0x1c3)});if(!_0x4f410e?.['trim']())return{'status':_0x1e8e17(0x1cb)};const _0x2f7138=JSON[_0x1e8e17(0x1af)](_0x4f410e);return{'status':'ok','data':_0x2f7138};}catch(_0x19c8c6){return{'status':_0x1e8e17(0x1be),'message':_0x19c8c6 instanceof Error?_0x19c8c6['message']:String(_0x19c8c6)};}}export function loadRawConfigLayers(_0x253e51){const _0x3354f9=a73_0x3a56af;let _0x4b75b5={},_0x30cc83={},_0x3e6207,_0x2fc2ae;try{_0x3e6207=resolveConfigPath(homedir());if(_0x3e6207){const _0x4acebb=readFileSync(_0x3e6207,{'encoding':_0x3354f9(0x1c3)});if(_0x4acebb)_0x4b75b5=JSON[_0x3354f9(0x1af)](_0x4acebb);}}catch{}try{const _0x52f32d=_0x253e51||process['cwd']();_0x2fc2ae=resolveConfigPath(_0x52f32d);if(_0x2fc2ae){const _0x288601=readFileSync(_0x2fc2ae,{'encoding':'utf8'});if(_0x288601)_0x30cc83=JSON[_0x3354f9(0x1af)](_0x288601);}}catch{}return{'globalPath':_0x3e6207,'projectPath':_0x2fc2ae,'globalConfig':_0x4b75b5,'projectConfig':_0x30cc83};}function mergeRawConfigLayers(_0x10f3ea){const _0x1d1878=a73_0x3a56af,{globalConfig:_0x16fa13,projectConfig:_0xfcb603}=_0x10f3ea;if(_0xfcb603[_0x1d1878(0x18d)]===![]){const _0x39587b={..._0xfcb603};return delete _0x39587b['inherit'],_0x39587b;}const _0x279dec={..._0x16fa13,..._0xfcb603};if(_0x1d1878(0x199)in _0xfcb603)_0x279dec[_0x1d1878(0x199)]=_0xfcb603[_0x1d1878(0x199)];else _0x16fa13[_0x1d1878(0x199)]&&(_0x279dec[_0x1d1878(0x199)]=_0x16fa13['defaultApp']);return _0x279dec;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x2f86a2){return mergeRawConfigLayers(loadRawConfigLayers(_0x2f86a2));}export function readRawConfigWithLayers(_0x1b4be9){const _0x1d23ea=loadRawConfigLayers(_0x1b4be9);return{'config':mergeRawConfigLayers(_0x1d23ea),'layers':_0x1d23ea};}export function resolveDefaultAppSource(_0x48c20d){const _0x488383=a73_0x3a56af;if(_0x488383(0x199)in _0x48c20d[_0x488383(0x1c5)])return _0x488383(0x1bb);if(_0x48c20d[_0x488383(0x1c5)][_0x488383(0x18d)]===![])return null;if(_0x48c20d[_0x488383(0x1b4)]['defaultApp'])return _0x488383(0x1bf);return null;}function buildConfig(_0x1f6477,_0x230c2b){const _0xe8adae=a73_0x3a56af,_0x242dc3=_0x1f6477[_0xe8adae(0x199)]||undefined,_0x28ee04=_0x230c2b[_0xe8adae(0x1b5)]||env(_0xe8adae(0x191))||undefined,_0x1eeec4=_0x28ee04||_0x242dc3||undefined,_0x16161e=env(_0xe8adae(0x193))||_0x1f6477[_0xe8adae(0x1a2)]||undefined,_0x54a78f=_0x230c2b[_0xe8adae(0x1c6)]||env(_0xe8adae(0x19f))||_0x1f6477[_0xe8adae(0x1c6)]||DEFAULT_CONFIG_VALUES[_0xe8adae(0x1c6)],_0x1c98b7=normalizeEnv(String(_0x54a78f)),_0x45d947=isDaily(_0x1c98b7)?_0xe8adae(0x18a):isDev(_0x1c98b7)?'development':_0xe8adae(0x19a),_0x50a56e=typeof _0x230c2b[_0xe8adae(0x1c4)]===_0xe8adae(0x1a6)?_0x230c2b[_0xe8adae(0x1c4)]:undefined,_0x1fa1ba=env(_0xe8adae(0x1c1)),_0x28e201=_0x28ee04?undefined:_0x1f6477[_0xe8adae(0x1c4)]||_0x1f6477[_0xe8adae(0x1b5)]||undefined,_0x28965c=_0x28ee04||(_0x28e201?undefined:_0x242dc3),_0x4b2604=resolveLocalAppAliasCode(_0x1f6477,_0x28965c),_0x39ab4a=resolveCachedAppCode(_0x28965c,_0x45d947,_0x16161e),_0x462e80=_0x50a56e||_0x1fa1ba||_0x28e201||_0x4b2604||_0x39ab4a||undefined,_0x1bf7fb=_0x50a56e?_0xe8adae(0x1bc):_0x1fa1ba?_0xe8adae(0x1c6):_0x28e201?_0xe8adae(0x192):_0x4b2604?_0xe8adae(0x18f):_0x39ab4a?'cache':undefined,_0x1b6a68=_0x1f6477['locale']||DEFAULT_CONFIG_VALUES['locale'],_0x2597da=undefined,_0x4f06b5=_0x230c2b['format']||env(_0xe8adae(0x1ca))||_0x1f6477[_0xe8adae(0x1b1)],_0x1a1330=normalizeLegacyOutputFormat(_0x4f06b5),_0x18c385=env('PAGE_SIZE')||_0x1f6477['pageSize'],_0x83b1c0=_0x18c385?Number(_0x18c385)||undefined:undefined,_0x5309b6=_0x1f6477[_0xe8adae(0x1a1)]||_0x1f6477[_0xe8adae(0x1b8)],_0x109886=_0x5309b6===_0xe8adae(0x1a8)||_0x5309b6===_0xe8adae(0x1cd)||_0x5309b6===_0xe8adae(0x190)?_0x5309b6:DEFAULT_CONFIG_VALUES[_0xe8adae(0x1a1)],_0x390110=env(_0xe8adae(0x19b)),_0x383e25=_0x390110==='1'||_0x390110==='true';return{'appCode':typeof _0x462e80===_0xe8adae(0x1a6)&&_0x462e80[_0xe8adae(0x18e)]()?_0x462e80[_0xe8adae(0x18e)]():undefined,'appCodeSource':_0x1bf7fb,'env':_0x45d947,'locale':_0x1b6a68,'cookie':_0x2597da,'accessKey':_0x16161e,'format':_0x1a1330,'pageSize':_0x83b1c0,'riskLevel':_0x109886,'verbose':_0x383e25,'defaultApp':_0x242dc3,'currentApp':typeof _0x1eeec4==='string'?_0x1eeec4:undefined,'raw':_0x1f6477};}function env(_0x10c135){return productEnv(_0x10c135);}async function buildAuth(_0x13063c){const _0x36d083=a73_0x3a56af,_0x234e83='',_0x557560=!!_0x13063c[_0x36d083(0x1a2)];return{'cookie':_0x234e83,'isLoggedIn':_0x557560,async 'getOrLogin'(){if(_0x557560)return _0x234e83;throw CliErrors['authRequired']();}};}