@lovrabet/lovrabet-cli 2.1.9 → 2.1.11-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 (117) 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/response.js +1 -1
  87. package/lib/framework/runner-confirmation.js +1 -1
  88. package/lib/framework/runner-error.js +1 -1
  89. package/lib/framework/runner.js +1 -1
  90. package/lib/framework/schema-export.js +1 -1
  91. package/lib/framework/service-order.js +1 -1
  92. package/lib/framework/types.js +1 -1
  93. package/lib/generated/build-info.js +1 -1
  94. package/lib/help.js +1 -1
  95. package/lib/skills/npx-skills-add.js +1 -1
  96. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  97. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  98. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  99. package/lib/skills/runtime-skill-sync/links.js +1 -1
  100. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  101. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  102. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  103. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  104. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  105. package/lib/skills/runtime-skill-sync/push.js +1 -1
  106. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  107. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  108. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  109. package/lib/skills/runtime-skill-sync.js +1 -1
  110. package/lib/utils/apply-jq-filter.js +1 -1
  111. package/lib/utils/logger.js +1 -1
  112. package/lib/utils/params.js +1 -1
  113. package/lib/utils/platform.js +1 -1
  114. package/lib/utils/update-notice.js +1 -1
  115. package/lib/utils/version.js +1 -1
  116. package/lib/utils/write-cli-side-channel.js +1 -1
  117. package/package.json +1 -1
@@ -1 +1 @@
1
- const a55_0x3bee35=a55_0xa8df;(function(_0x5b00d4,_0x22a181){const _0x5d2088=a55_0xa8df,_0x1ff1ea=_0x5b00d4();while(!![]){try{const _0xa14ff=parseInt(_0x5d2088(0x206))/0x1*(parseInt(_0x5d2088(0x226))/0x2)+-parseInt(_0x5d2088(0x1d4))/0x3*(-parseInt(_0x5d2088(0x201))/0x4)+parseInt(_0x5d2088(0x1e1))/0x5+parseInt(_0x5d2088(0x222))/0x6*(parseInt(_0x5d2088(0x1d7))/0x7)+-parseInt(_0x5d2088(0x1fd))/0x8+parseInt(_0x5d2088(0x205))/0x9+parseInt(_0x5d2088(0x1fc))/0xa*(-parseInt(_0x5d2088(0x20e))/0xb);if(_0xa14ff===_0x22a181)break;else _0x1ff1ea['push'](_0x1ff1ea['shift']());}catch(_0x559b27){_0x1ff1ea['push'](_0x1ff1ea['shift']());}}}(a55_0x5c91,0x86d43));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a55_0x5a1c31}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a55_0x3bee35(0x209),SUPPORTED_SKILL_TYPES=new Set([a55_0x3bee35(0x1dc),a55_0x3bee35(0x1fb),a55_0x3bee35(0x228)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x5c5126,_0x2f35a3={}){const _0x486f77=a55_0x3bee35,_0x53f83f=resolveSkillDirectoryRoot(_0x5c5126),_0xb9516f=[],_0x229fb5=loadRequiredSkillFile(_0x53f83f,_0xb9516f),_0x324376=_0x229fb5?parseFrontmatter(_0x229fb5[_0x486f77(0x1f0)]):{'hasFrontmatter':![]};_0x229fb5&&validateFrontmatter(_0x229fb5['path'],_0x324376,_0xb9516f);validateRuntimeCliReferences(_0x53f83f,_0xb9516f);const _0x2628d7=_0xb9516f['filter'](_0x1281f1=>_0x1281f1[_0x486f77(0x21a)]===_0x486f77(0x1fe)),_0x5cacfa=_0xb9516f['filter'](_0x26b58a=>_0x26b58a[_0x486f77(0x21a)]===_0x486f77(0x21f));return{'ok':_0x2628d7[_0x486f77(0x1fa)]===0x0,'dir':_0x53f83f,'type':_0x324376[_0x486f77(0x20c)],'errors':_0x2628d7,'warnings':_0x5cacfa};}function resolveSkillDirectoryRoot(_0x421142){const _0x4a5b92=a55_0x3bee35,_0x1bf1f2=resolve(_0x421142);if(!existsSync(_0x1bf1f2))throw CliErrors['validation']('Skill\x20directory\x20not\x20found:\x20'+_0x421142);const _0x2b2cb2=lstatSync(_0x1bf1f2);if(_0x2b2cb2['isDirectory']())return _0x1bf1f2;if(_0x2b2cb2['isSymbolicLink']()){const _0x1da55c=realpathSync(_0x1bf1f2);if(lstatSync(_0x1da55c)[_0x4a5b92(0x218)]())return _0x1da55c;}throw CliErrors[_0x4a5b92(0x1ec)](_0x4a5b92(0x1d6)+_0x421142);}export function throwIfSkillValidationFailed(_0x21ca9e,_0x4633d9=![]){const _0x50ead1=a55_0x3bee35;if(_0x21ca9e['ok'])return;const _0x1da1b7=_0x21ca9e[_0x50ead1(0x1f6)]['map'](_0x4a086f=>{const _0x3a5990=_0x50ead1,_0x3d290d=_0x4a086f[_0x3a5990(0x1e5)]?'#'+_0x4a086f[_0x3a5990(0x1e5)]:'';return _0x4a086f[_0x3a5990(0x21a)][_0x3a5990(0x1de)]()+'\x20'+_0x4a086f[_0x3a5990(0x1da)]+'\x20'+_0x4a086f[_0x3a5990(0x225)]+_0x3d290d+':\x20'+_0x4a086f['message']+_0x3a5990(0x202)+_0x4a086f[_0x3a5990(0x217)];});throw CliErrors['validation'](_0x50ead1(0x21b)+_0x1da1b7[_0x50ead1(0x22a)]('\x0a'),'Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.');}function loadRequiredSkillFile(_0x33fea2,_0x1ed8a5){const _0x4bc943=a55_0x3bee35,_0xfb1d3f=resolve(_0x33fea2,SKILL_FILE);if(!existsSync(_0xfb1d3f))return _0x1ed8a5[_0x4bc943(0x1f5)](issue(_0x4bc943(0x1fe),_0x4bc943(0x203),SKILL_FILE,_0x4bc943(0x1f8),_0x4bc943(0x213))),undefined;const _0x196201=lstatSync(_0xfb1d3f);if(_0x196201[_0x4bc943(0x1d8)]())return _0x1ed8a5['push'](issue(_0x4bc943(0x1fe),_0x4bc943(0x203),SKILL_FILE,_0x4bc943(0x1d3),'Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.')),undefined;if(!_0x196201[_0x4bc943(0x1d5)]())return _0x1ed8a5[_0x4bc943(0x1f5)](issue('error',_0x4bc943(0x203),SKILL_FILE,_0x4bc943(0x216),_0x4bc943(0x211))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0xfb1d3f,'utf8')};}function validateFrontmatter(_0x5c0f08,_0x104ed4,_0x37a3a1){const _0x177ed2=a55_0x3bee35;if(!_0x104ed4[_0x177ed2(0x21e)]){_0x37a3a1[_0x177ed2(0x1f5)](issue(_0x177ed2(0x1fe),_0x177ed2(0x219),_0x5c0f08,_0x177ed2(0x1df),_0x177ed2(0x1f4)));return;}!_0x104ed4[_0x177ed2(0x1e6)]?.[_0x177ed2(0x1eb)]()&&_0x37a3a1[_0x177ed2(0x1f5)](issue(_0x177ed2(0x1fe),_0x177ed2(0x219),_0x5c0f08,_0x177ed2(0x1f2),_0x177ed2(0x1e8))),!_0x104ed4['displayName']?.[_0x177ed2(0x1eb)]()&&_0x37a3a1['push'](issue(_0x177ed2(0x21f),'display-name-recommended',_0x5c0f08,'Frontmatter\x20displayName\x20is\x20missing.',_0x177ed2(0x1ed))),!_0x104ed4['description']?.[_0x177ed2(0x1eb)]()&&_0x37a3a1['push'](issue(_0x177ed2(0x1fe),_0x177ed2(0x1e0),_0x5c0f08,_0x177ed2(0x1f9),_0x177ed2(0x21d))),_0x104ed4[_0x177ed2(0x1ea)]===!![]&&_0x37a3a1['push'](issue(_0x177ed2(0x1fe),_0x177ed2(0x215),_0x5c0f08,'metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.',_0x177ed2(0x1e4))),_0x104ed4[_0x177ed2(0x20c)]?.['trim']()&&!SUPPORTED_SKILL_TYPES['has'](_0x104ed4[_0x177ed2(0x20c)])&&_0x37a3a1[_0x177ed2(0x1f5)](issue(_0x177ed2(0x1fe),'frontmatter-required',_0x5c0f08,_0x177ed2(0x200),'Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.'));}function validateRuntimeCliReferences(_0x43e495,_0xd130d8){const _0x20e2d4=a55_0x3bee35;for(const _0x3d4280 of findRabetbaseCliInvocations(_0x43e495)){_0xd130d8['push'](issue(_0x20e2d4(0x21f),'rabetbase-cli-reference',_0x3d4280[_0x20e2d4(0x225)],_0x20e2d4(0x20b),_0x20e2d4(0x1e9),'L'+_0x3d4280[_0x20e2d4(0x1e3)]));}}function findRabetbaseCliInvocations(_0xe8975a){const _0x25c6a6=a55_0x3bee35;return scanSkillDirectory(_0xe8975a)['filter'](_0x4584df=>TEXT_SKILL_FILE_PATTERN[_0x25c6a6(0x204)](_0x4584df[_0x25c6a6(0x1ef)]))['flatMap'](_0x24c5c2=>{const _0x350351=_0x25c6a6,_0x173669=fileText(_0x24c5c2);return _0x173669['split'](/\r?\n/)[_0x350351(0x227)]((_0x437e65,_0xeff79e)=>({'file':_0x24c5c2[_0x350351(0x1ef)],'line':_0xeff79e+0x1,'text':_0x437e65}))[_0x350351(0x1f7)](({text:_0x3a175e})=>isRabetbaseCliInvocation(_0x3a175e))['map'](({file:_0x4921f0,line:_0x339889})=>({'file':_0x4921f0,'line':_0x339889}));});}const RABETBASE_SUBCOMMANDS=['dataset','sql','bff',a55_0x3bee35(0x207),a55_0x3bee35(0x1db),a55_0x3bee35(0x1ff),a55_0x3bee35(0x224),a55_0x3bee35(0x210),'artifact','kb','config','workspace',a55_0x3bee35(0x214),a55_0x3bee35(0x1ee),'logs',a55_0x3bee35(0x21c)],RABETBASE_INVOCATION=new RegExp(String[a55_0x3bee35(0x1e7)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a55_0x3bee35(0x22a)]('|')})\b`+String[a55_0x3bee35(0x1e7)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x963e10){const _0x586c8f=a55_0x3bee35,_0x10f378=_0x963e10[_0x586c8f(0x212)](/\brabetbase\b/i);if(_0x10f378<0x0)return![];const _0x34c872=_0x963e10[_0x586c8f(0x1f3)](_0x10f378)[_0x586c8f(0x208)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION['test'](_0x34c872);}function a55_0x5c91(){const _0x2c4f0e=['join','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','700176lamWlC','isFile','Skill\x20directory\x20not\x20found:\x20','67025yBENRD','isSymbolicLink','description','ruleId','project','write','boolean','toUpperCase','SKILL.md\x20must\x20start\x20with\x20frontmatter.','description-required','1861330QGhCsa','object','line','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','section','name','raw','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','internal','trim','validation','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','auth','path','content','isArray','Frontmatter\x20name\x20is\x20missing.','slice','Add\x20frontmatter\x20with\x20name\x20and\x20description.','push','errors','filter','Missing\x20SKILL.md.','Frontmatter\x20description\x20is\x20empty.','length','read','18019160GiirIP','7640024nbsyXV','error','app','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','16HIwFPk','\x20Fix:\x20','structure-complete','test','4564224hpfPrE','3pduABl','page','split','SKILL.md','displayName','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','type','match','11YcwrBY','string','service','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','search','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','data','internal-skill','SKILL.md\x20is\x20not\x20a\x20file.','suggestion','isDirectory','frontmatter-required','level','Skill\x20validation\x20failed:\x0a','registry','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','hasFrontmatter','warning','true','false','414Udjpow','metadata','schema','file','557022ABMSxg','map','trainer','toLowerCase'];a55_0x5c91=function(){return _0x2c4f0e;};return a55_0x5c91();}function a55_0xa8df(_0x246e9a,_0xf7c35d){_0x246e9a=_0x246e9a-0x1d3;const _0x5c91dc=a55_0x5c91();let _0xa8df47=_0x5c91dc[_0x246e9a];return _0xa8df47;}function parseFrontmatter(_0x4b5bfc){const _0x1b9ed9=a55_0x3bee35,_0x1811da=_0x4b5bfc[_0x1b9ed9(0x20d)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x1811da)return{'hasFrontmatter':![]};const _0x42a9d1=_0x1811da[0x1]??'',_0x1412aa={'hasFrontmatter':!![]};let _0x217596;try{_0x217596=a55_0x5a1c31(_0x42a9d1);}catch{return _0x1412aa;}const _0x18f1d2=asRecord(_0x217596);if(!_0x18f1d2)return _0x1412aa;_0x1412aa[_0x1b9ed9(0x1e6)]=scalarToString(_0x18f1d2[_0x1b9ed9(0x1e6)]),_0x1412aa[_0x1b9ed9(0x20a)]=scalarToString(_0x18f1d2[_0x1b9ed9(0x20a)]),_0x1412aa['description']=scalarToString(_0x18f1d2[_0x1b9ed9(0x1d9)]);const _0x48b677=asRecord(_0x18f1d2[_0x1b9ed9(0x223)]);return _0x48b677&&(_0x1412aa[_0x1b9ed9(0x20c)]=scalarToString(_0x48b677[_0x1b9ed9(0x20c)]),_0x1412aa[_0x1b9ed9(0x1ea)]=scalarToBoolean(_0x48b677[_0x1b9ed9(0x1ea)])),_0x1412aa;}function asRecord(_0x2fb820){const _0x2a0928=a55_0x3bee35;if(_0x2fb820&&typeof _0x2fb820===_0x2a0928(0x1e2)&&!Array[_0x2a0928(0x1f1)](_0x2fb820))return _0x2fb820;return undefined;}function scalarToString(_0x25e38e){const _0xa05a14=a55_0x3bee35;if(typeof _0x25e38e===_0xa05a14(0x20f))return _0x25e38e[_0xa05a14(0x1eb)]();if(typeof _0x25e38e==='number'||typeof _0x25e38e===_0xa05a14(0x1dd))return String(_0x25e38e);return undefined;}function scalarToBoolean(_0x42f523){const _0x6cfa2c=a55_0x3bee35;if(typeof _0x42f523===_0x6cfa2c(0x1dd))return _0x42f523;if(typeof _0x42f523===_0x6cfa2c(0x20f))return cleanBoolean(_0x42f523);return undefined;}function cleanBoolean(_0x1b6009){const _0x2ccfe4=a55_0x3bee35,_0xa01e8a=_0x1b6009['trim']()[_0x2ccfe4(0x229)]();if(_0xa01e8a===_0x2ccfe4(0x220))return!![];if(_0xa01e8a===_0x2ccfe4(0x221))return![];return undefined;}function issue(_0x59e85a,_0x597575,_0x57e3bb,_0x109e3b,_0x10b247,_0x1c4a07){return{'level':_0x59e85a,'ruleId':_0x597575,'file':_0x57e3bb,'section':_0x1c4a07,'message':_0x109e3b,'suggestion':_0x10b247};}
1
+ const a55_0x2c924a=a55_0xf25d;(function(_0x15bcfe,_0x7c7d64){const _0x358ea5=a55_0xf25d,_0x86cf0e=_0x15bcfe();while(!![]){try{const _0xeef783=parseInt(_0x358ea5(0x208))/0x1+-parseInt(_0x358ea5(0x1e3))/0x2*(parseInt(_0x358ea5(0x210))/0x3)+parseInt(_0x358ea5(0x20c))/0x4+-parseInt(_0x358ea5(0x203))/0x5*(-parseInt(_0x358ea5(0x20e))/0x6)+-parseInt(_0x358ea5(0x1c6))/0x7+-parseInt(_0x358ea5(0x1d4))/0x8*(-parseInt(_0x358ea5(0x1ec))/0x9)+parseInt(_0x358ea5(0x1ee))/0xa*(-parseInt(_0x358ea5(0x1d1))/0xb);if(_0xeef783===_0x7c7d64)break;else _0x86cf0e['push'](_0x86cf0e['shift']());}catch(_0x5b34ec){_0x86cf0e['push'](_0x86cf0e['shift']());}}}(a55_0x5448,0x650c4));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a55_0x2a54c0}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a55_0x2c924a(0x1ef),SUPPORTED_SKILL_TYPES=new Set([a55_0x2c924a(0x1ea),'read',a55_0x2c924a(0x1d7)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x499480,_0x5e798a={}){const _0x3e9a27=a55_0x2c924a,_0x2c668b=resolveSkillDirectoryRoot(_0x499480),_0x1a7c2e=[],_0x187721=loadRequiredSkillFile(_0x2c668b,_0x1a7c2e),_0x2a0530=_0x187721?parseFrontmatter(_0x187721['content']):{'hasFrontmatter':![]};_0x187721&&validateFrontmatter(_0x187721[_0x3e9a27(0x1e7)],_0x2a0530,_0x1a7c2e);validateRuntimeCliReferences(_0x2c668b,_0x1a7c2e);const _0x464849=_0x1a7c2e[_0x3e9a27(0x20d)](_0x3f11f8=>_0x3f11f8[_0x3e9a27(0x1ca)]===_0x3e9a27(0x1d9)),_0x272482=_0x1a7c2e[_0x3e9a27(0x20d)](_0x36cfbe=>_0x36cfbe[_0x3e9a27(0x1ca)]===_0x3e9a27(0x1fd));return{'ok':_0x464849[_0x3e9a27(0x1df)]===0x0,'dir':_0x2c668b,'type':_0x2a0530[_0x3e9a27(0x1b7)],'errors':_0x464849,'warnings':_0x272482};}function resolveSkillDirectoryRoot(_0x3c0864){const _0x550dfa=a55_0x2c924a,_0xd4a491=resolve(_0x3c0864);if(!existsSync(_0xd4a491))throw CliErrors[_0x550dfa(0x1f5)]('Skill\x20directory\x20not\x20found:\x20'+_0x3c0864);const _0x474666=lstatSync(_0xd4a491);if(_0x474666['isDirectory']())return _0xd4a491;if(_0x474666[_0x550dfa(0x201)]()){const _0x30c2f7=realpathSync(_0xd4a491);if(lstatSync(_0x30c2f7)[_0x550dfa(0x1db)]())return _0x30c2f7;}throw CliErrors[_0x550dfa(0x1f5)](_0x550dfa(0x207)+_0x3c0864);}export function throwIfSkillValidationFailed(_0x502222,_0x590d9b=![]){const _0x374478=a55_0x2c924a;if(_0x502222['ok'])return;const _0x3869af=_0x502222['errors'][_0x374478(0x1ba)](_0x4206b7=>{const _0x556864=_0x374478,_0x37df91=_0x4206b7['section']?'#'+_0x4206b7[_0x556864(0x1e8)]:'';return _0x4206b7[_0x556864(0x1ca)]['toUpperCase']()+'\x20'+_0x4206b7[_0x556864(0x204)]+'\x20'+_0x4206b7[_0x556864(0x1bf)]+_0x37df91+':\x20'+_0x4206b7[_0x556864(0x1c2)]+_0x556864(0x1cd)+_0x4206b7[_0x556864(0x1c3)];});throw CliErrors[_0x374478(0x1f5)](_0x374478(0x1b8)+_0x3869af[_0x374478(0x1d5)]('\x0a'),_0x374478(0x1e4));}function loadRequiredSkillFile(_0x4adc6a,_0x33883a){const _0x3d1294=a55_0x2c924a,_0x37e0a9=resolve(_0x4adc6a,SKILL_FILE);if(!existsSync(_0x37e0a9))return _0x33883a[_0x3d1294(0x1da)](issue(_0x3d1294(0x1d9),_0x3d1294(0x1fb),SKILL_FILE,'Missing\x20SKILL.md.','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;const _0x70fd29=lstatSync(_0x37e0a9);if(_0x70fd29[_0x3d1294(0x201)]())return _0x33883a[_0x3d1294(0x1da)](issue(_0x3d1294(0x1d9),'structure-complete',SKILL_FILE,'SKILL.md\x20must\x20be\x20a\x20regular\x20file.',_0x3d1294(0x1f6))),undefined;if(!_0x70fd29[_0x3d1294(0x1c5)]())return _0x33883a['push'](issue(_0x3d1294(0x1d9),'structure-complete',SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x37e0a9,'utf8')};}function a55_0x5448(){const _0x5e4563=['Frontmatter\x20displayName\x20is\x20missing.','name','service','file','Frontmatter\x20example\x20is\x20missing.','match','message','suggestion','Add\x20frontmatter\x20with\x20name\x20and\x20description.','isFile','4224724qqcsDn','frontmatter-required','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','SKILL.md\x20must\x20start\x20with\x20frontmatter.','level','hasFrontmatter','trim','\x20Fix:\x20','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','displayName','true','1230097gTYOZi','registry','test','29688JpQRzM','join','boolean','trainer','artifact','error','push','isDirectory','line','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','length','string','object','split','198VTXwYK','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','sql','schema','path','section','display-name-recommended','write','internal','117bKGnUH','project','30XfXlOa','SKILL.md','has','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','false','example-recommended','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','validation','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','description','toLowerCase','bff','app','structure-complete','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.','warning','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','workspace','internal-skill','isSymbolicLink','Frontmatter\x20description\x20is\x20empty.','4825ZUopLI','ruleId','dataset','example','Skill\x20directory\x20not\x20found:\x20','816213TJIvWY','Frontmatter\x20name\x20is\x20missing.','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','flatMap','347248jGeDOc','filter','2520GektDw','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','111LTkRkL','type','Skill\x20validation\x20failed:\x0a','logs','map','config'];a55_0x5448=function(){return _0x5e4563;};return a55_0x5448();}function validateFrontmatter(_0x5a0056,_0x3af79c,_0x356a9d){const _0x388fa6=a55_0x2c924a;if(!_0x3af79c[_0x388fa6(0x1cb)]){_0x356a9d['push'](issue(_0x388fa6(0x1d9),_0x388fa6(0x1c7),_0x5a0056,_0x388fa6(0x1c9),_0x388fa6(0x1c4)));return;}!_0x3af79c[_0x388fa6(0x1bd)]?.[_0x388fa6(0x1cc)]()&&_0x356a9d[_0x388fa6(0x1da)](issue('error',_0x388fa6(0x1c7),_0x5a0056,_0x388fa6(0x209),_0x388fa6(0x1ce))),!_0x3af79c['displayName']?.[_0x388fa6(0x1cc)]()&&_0x356a9d[_0x388fa6(0x1da)](issue('warning',_0x388fa6(0x1e9),_0x5a0056,_0x388fa6(0x1bc),_0x388fa6(0x1c8))),!_0x3af79c['example']?.[_0x388fa6(0x1cc)]()&&_0x356a9d['push'](issue(_0x388fa6(0x1fd),_0x388fa6(0x1f3),_0x5a0056,_0x388fa6(0x1c0),_0x388fa6(0x20f))),!_0x3af79c[_0x388fa6(0x1f7)]?.['trim']()&&_0x356a9d[_0x388fa6(0x1da)](issue(_0x388fa6(0x1d9),'description-required',_0x5a0056,_0x388fa6(0x202),_0x388fa6(0x1dd))),_0x3af79c[_0x388fa6(0x1eb)]===!![]&&_0x356a9d[_0x388fa6(0x1da)](issue(_0x388fa6(0x1d9),_0x388fa6(0x200),_0x5a0056,_0x388fa6(0x20a),_0x388fa6(0x1fe))),_0x3af79c[_0x388fa6(0x1b7)]?.[_0x388fa6(0x1cc)]()&&!SUPPORTED_SKILL_TYPES[_0x388fa6(0x1f0)](_0x3af79c[_0x388fa6(0x1b7)])&&_0x356a9d['push'](issue('error',_0x388fa6(0x1c7),_0x5a0056,_0x388fa6(0x1f4),_0x388fa6(0x1fc)));}function validateRuntimeCliReferences(_0x15dc97,_0x556d6a){const _0x2dfd89=a55_0x2c924a;for(const _0x3368dd of findRabetbaseCliInvocations(_0x15dc97)){_0x556d6a[_0x2dfd89(0x1da)](issue(_0x2dfd89(0x1fd),'rabetbase-cli-reference',_0x3368dd[_0x2dfd89(0x1bf)],_0x2dfd89(0x1f1),_0x2dfd89(0x1de),'L'+_0x3368dd[_0x2dfd89(0x1dc)]));}}function a55_0xf25d(_0x26ba49,_0x33f189){_0x26ba49=_0x26ba49-0x1b7;const _0x5448c0=a55_0x5448();let _0xf25ddf=_0x5448c0[_0x26ba49];return _0xf25ddf;}function findRabetbaseCliInvocations(_0x34978b){const _0x11a9d7=a55_0x2c924a;return scanSkillDirectory(_0x34978b)[_0x11a9d7(0x20d)](_0x389ad1=>TEXT_SKILL_FILE_PATTERN['test'](_0x389ad1[_0x11a9d7(0x1e7)]))[_0x11a9d7(0x20b)](_0x1d5c86=>{const _0x58b48d=_0x11a9d7,_0x494b70=fileText(_0x1d5c86);return _0x494b70[_0x58b48d(0x1e2)](/\r?\n/)[_0x58b48d(0x1ba)]((_0x1fc75d,_0x398678)=>({'file':_0x1d5c86[_0x58b48d(0x1e7)],'line':_0x398678+0x1,'text':_0x1fc75d}))[_0x58b48d(0x20d)](({text:_0x283675})=>isRabetbaseCliInvocation(_0x283675))[_0x58b48d(0x1ba)](({file:_0x367b4,line:_0x1ace93})=>({'file':_0x367b4,'line':_0x1ace93}));});}const RABETBASE_SUBCOMMANDS=[a55_0x2c924a(0x205),a55_0x2c924a(0x1e5),a55_0x2c924a(0x1f9),'page',a55_0x2c924a(0x1ed),a55_0x2c924a(0x1fa),a55_0x2c924a(0x1e6),a55_0x2c924a(0x1be),a55_0x2c924a(0x1d8),'kb',a55_0x2c924a(0x1bb),a55_0x2c924a(0x1ff),'data','auth',a55_0x2c924a(0x1b9),a55_0x2c924a(0x1d2)],RABETBASE_INVOCATION=new RegExp(String['raw']`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a55_0x2c924a(0x1d5)]('|')})\b`+String['raw']`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x40045b){const _0x13918b=a55_0x2c924a,_0xc6630a=_0x40045b['search'](/\brabetbase\b/i);if(_0xc6630a<0x0)return![];const _0x22d658=_0x40045b['slice'](_0xc6630a)[_0x13918b(0x1e2)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x13918b(0x1d3)](_0x22d658);}function parseFrontmatter(_0x564cde){const _0x5cd9f5=a55_0x2c924a,_0x590445=_0x564cde[_0x5cd9f5(0x1c1)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x590445)return{'hasFrontmatter':![]};const _0x280813=_0x590445[0x1]??'',_0x2e30be={'hasFrontmatter':!![]};let _0x335763;try{_0x335763=a55_0x2a54c0(_0x280813);}catch{return _0x2e30be;}const _0x1d005f=asRecord(_0x335763);if(!_0x1d005f)return _0x2e30be;_0x2e30be[_0x5cd9f5(0x1bd)]=scalarToString(_0x1d005f[_0x5cd9f5(0x1bd)]),_0x2e30be[_0x5cd9f5(0x1cf)]=scalarToString(_0x1d005f[_0x5cd9f5(0x1cf)]),_0x2e30be['description']=scalarToString(_0x1d005f[_0x5cd9f5(0x1f7)]),_0x2e30be[_0x5cd9f5(0x206)]=scalarToString(_0x1d005f[_0x5cd9f5(0x206)]);const _0x38e758=asRecord(_0x1d005f['metadata']);return _0x38e758&&(_0x2e30be[_0x5cd9f5(0x1b7)]=scalarToString(_0x38e758[_0x5cd9f5(0x1b7)]),_0x2e30be[_0x5cd9f5(0x1eb)]=scalarToBoolean(_0x38e758[_0x5cd9f5(0x1eb)])),_0x2e30be;}function asRecord(_0x4e50f8){const _0x4f0e24=a55_0x2c924a;if(_0x4e50f8&&typeof _0x4e50f8===_0x4f0e24(0x1e1)&&!Array['isArray'](_0x4e50f8))return _0x4e50f8;return undefined;}function scalarToString(_0x58f6c2){const _0x46b966=a55_0x2c924a;if(typeof _0x58f6c2===_0x46b966(0x1e0))return _0x58f6c2[_0x46b966(0x1cc)]();if(typeof _0x58f6c2==='number'||typeof _0x58f6c2==='boolean')return String(_0x58f6c2);return undefined;}function scalarToBoolean(_0x468383){const _0x36694f=a55_0x2c924a;if(typeof _0x468383===_0x36694f(0x1d6))return _0x468383;if(typeof _0x468383===_0x36694f(0x1e0))return cleanBoolean(_0x468383);return undefined;}function cleanBoolean(_0x5bebd1){const _0xd3fd6d=a55_0x2c924a,_0x4843a4=_0x5bebd1[_0xd3fd6d(0x1cc)]()[_0xd3fd6d(0x1f8)]();if(_0x4843a4===_0xd3fd6d(0x1d0))return!![];if(_0x4843a4===_0xd3fd6d(0x1f2))return![];return undefined;}function issue(_0x54b8a9,_0x345f25,_0x986864,_0x21efab,_0x55abe8,_0x3804db){return{'level':_0x54b8a9,'ruleId':_0x345f25,'file':_0x986864,'section':_0x3804db,'message':_0x21efab,'suggestion':_0x55abe8};}
@@ -1 +1 @@
1
- const a56_0x302523=a56_0x5afd;(function(_0x415043,_0x9eecda){const _0x36ae7b=a56_0x5afd,_0x2e5861=_0x415043();while(!![]){try{const _0x31205e=-parseInt(_0x36ae7b(0x8e))/0x1+parseInt(_0x36ae7b(0x8d))/0x2*(parseInt(_0x36ae7b(0x92))/0x3)+parseInt(_0x36ae7b(0x9b))/0x4*(-parseInt(_0x36ae7b(0x96))/0x5)+parseInt(_0x36ae7b(0x97))/0x6*(parseInt(_0x36ae7b(0x8b))/0x7)+parseInt(_0x36ae7b(0x88))/0x8*(-parseInt(_0x36ae7b(0x84))/0x9)+parseInt(_0x36ae7b(0x8a))/0xa+parseInt(_0x36ae7b(0x85))/0xb*(parseInt(_0x36ae7b(0x95))/0xc);if(_0x31205e===_0x9eecda)break;else _0x2e5861['push'](_0x2e5861['shift']());}catch(_0x4e5927){_0x2e5861['push'](_0x2e5861['shift']());}}}(a56_0x329f,0xf0106));import{getSqlQueryInfo}from'../../core/api-client.js';function a56_0x329f(){const _0x1eb90f=['str','sqlCode','sqlName','30081ivBdWA','verbose','bool','12656244SWyeJX','9598665aTenqN','5173716oijWbs','dbId','appCode','sqlcode','4AldCbQ','36yjPRmd','11wkdzua','read','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','3159928YGlGGw','detail','15899550JCQFYF','7BQUjUg','description','258DPMVNF','317412OFKvaY'];a56_0x329f=function(){return _0x1eb90f;};return a56_0x329f();}function a56_0x5afd(_0x549301,_0x398df5){_0x549301=_0x549301-0x84;const _0x329f19=a56_0x329f();let _0x5afd8e=_0x329f19[_0x549301];return _0x5afd8e;}import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':'sql','command':a56_0x302523(0x89),'description':a56_0x302523(0x87),'risk':a56_0x302523(0x86),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x4e4ed7){const _0x239a4f=a56_0x302523,_0xd7e183=await getSqlQueryInfo(_0x4e4ed7[_0x239a4f(0x99)],_0x4e4ed7[_0x239a4f(0x8f)](_0x239a4f(0x9a))),_0x1e1745=_0x4e4ed7[_0x239a4f(0x94)](_0x239a4f(0x93));if(_0x1e1745)return{'ok':!![],'data':_0xd7e183};const _0xabb293=_0xd7e183[_0x239a4f(0x98)]?await getDbName(_0x4e4ed7[_0x239a4f(0x99)],_0xd7e183[_0x239a4f(0x98)]):undefined;return{'ok':!![],'data':{'sqlCode':_0xd7e183[_0x239a4f(0x90)],'sqlName':_0xd7e183[_0x239a4f(0x91)],'db':_0xabb293?_0xabb293+'\x20('+_0xd7e183['dbId']+')':_0xd7e183[_0x239a4f(0x98)]??'','description':_0xd7e183[_0x239a4f(0x8c)]??'','sqlContent':_0xd7e183['sqlContent']??''}};}};
1
+ const a56_0x382085=a56_0x41dd;(function(_0x55ad46,_0x58d0d1){const _0x464ca1=a56_0x41dd,_0x39161b=_0x55ad46();while(!![]){try{const _0x239b36=parseInt(_0x464ca1(0xe0))/0x1+-parseInt(_0x464ca1(0xd4))/0x2*(-parseInt(_0x464ca1(0xd5))/0x3)+-parseInt(_0x464ca1(0xe1))/0x4+-parseInt(_0x464ca1(0xdd))/0x5+-parseInt(_0x464ca1(0xd9))/0x6*(-parseInt(_0x464ca1(0xdc))/0x7)+-parseInt(_0x464ca1(0xe5))/0x8+-parseInt(_0x464ca1(0xde))/0x9*(-parseInt(_0x464ca1(0xe3))/0xa);if(_0x239b36===_0x58d0d1)break;else _0x39161b['push'](_0x39161b['shift']());}catch(_0x2f403c){_0x39161b['push'](_0x39161b['shift']());}}}(a56_0x216e,0xd8e6f));import{getSqlQueryInfo}from'../../core/api-client.js';function a56_0x216e(){const _0x423e50=['read','detail','37662zxrxMJ','sqlCode','sqlName','35aBnSOj','361060uUkXDS','9CjMVzO','dbId','1195136ErgKfQ','2726272EaSNbc','appCode','8146330StKVHx','sql','13144376swrFNG','311026kgHESH','24ixWfJz','sqlContent'];a56_0x216e=function(){return _0x423e50;};return a56_0x216e();}import{getDbName}from'../../core/db-resolver.js';function a56_0x41dd(_0x15b1d9,_0x405e62){_0x15b1d9=_0x15b1d9-0xd4;const _0x216eec=a56_0x216e();let _0x41ddba=_0x216eec[_0x15b1d9];return _0x41ddba;}import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a56_0x382085(0xe4),'command':a56_0x382085(0xd8),'description':'Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','risk':a56_0x382085(0xd7),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x4a6e8c){const _0x3e747c=a56_0x382085,_0x557452=await getSqlQueryInfo(_0x4a6e8c[_0x3e747c(0xe2)],_0x4a6e8c['str']('sqlcode')),_0x509407=_0x4a6e8c['bool']('verbose');if(_0x509407)return{'ok':!![],'data':_0x557452};const _0x5992dd=_0x557452[_0x3e747c(0xdf)]?await getDbName(_0x4a6e8c[_0x3e747c(0xe2)],_0x557452['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x557452[_0x3e747c(0xda)],'sqlName':_0x557452[_0x3e747c(0xdb)],'db':_0x5992dd?_0x5992dd+'\x20('+_0x557452[_0x3e747c(0xdf)]+')':_0x557452[_0x3e747c(0xdf)]??'','description':_0x557452['description']??'','sqlContent':_0x557452[_0x3e747c(0xd6)]??''}};}};
@@ -1 +1 @@
1
- const a57_0x5d8cf7=a57_0x1ce8;(function(_0x12815a,_0x120ec8){const _0x3365dc=a57_0x1ce8,_0x191cc4=_0x12815a();while(!![]){try{const _0x372a65=parseInt(_0x3365dc(0xed))/0x1*(-parseInt(_0x3365dc(0xe0))/0x2)+parseInt(_0x3365dc(0xd9))/0x3*(parseInt(_0x3365dc(0xda))/0x4)+parseInt(_0x3365dc(0xee))/0x5*(-parseInt(_0x3365dc(0xd7))/0x6)+-parseInt(_0x3365dc(0xe8))/0x7*(-parseInt(_0x3365dc(0xe5))/0x8)+parseInt(_0x3365dc(0xe4))/0x9+parseInt(_0x3365dc(0xdd))/0xa*(parseInt(_0x3365dc(0xdf))/0xb)+-parseInt(_0x3365dc(0xec))/0xc*(parseInt(_0x3365dc(0xeb))/0xd);if(_0x372a65===_0x120ec8)break;else _0x191cc4['push'](_0x191cc4['shift']());}catch(_0x528988){_0x191cc4['push'](_0x191cc4['shift']());}}}(a57_0x238c,0x372eb));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a57_0x1ce8(_0x45523a,_0x39aa8c){_0x45523a=_0x45523a-0xd7;const _0x238cbb=a57_0x238c();let _0x1ce84f=_0x238cbb[_0x45523a];return _0x1ce84f;}function a57_0x238c(){const _0x46af8d=['1269648waflLC','32XocquA','execError','execSuccess','499604ysfLKq','str','now','171223WtyWJE','36caVEFp','562DNIyyr','63245CVVVsX','126WVqNOO','SQL\x20execution\x20failed','12SfvrQx','342636QcQcTP','length','read','280570AlHagR','sql','77ILXlTl','1546sQfqTW','execResult','exec','Returned\x20'];a57_0x238c=function(){return _0x46af8d;};return a57_0x238c();}import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a57_0x5d8cf7(0xde),'command':a57_0x5d8cf7(0xe2),'description':'Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','risk':a57_0x5d8cf7(0xdc),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x14279e){const _0x52c1e1=a57_0x5d8cf7,_0x1bf93f=parseJsonParams(_0x14279e['str']('params')),_0x437a60=Date[_0x52c1e1(0xea)](),_0x146a42=await executeSdkSql(_0x14279e[_0x52c1e1(0xe9)]('sqlcode'),_0x1bf93f),_0x4db198=Date[_0x52c1e1(0xea)]()-_0x437a60,_0x2c2c50=_0x146a42?.[_0x52c1e1(0xe1)]??_0x146a42,_0x142a25=_0x146a42?.[_0x52c1e1(0xe7)]??!![];if(!_0x142a25)return{'ok':![],'data':{'error':_0x146a42?.[_0x52c1e1(0xe6)]||'SQL\x20execution\x20failed','elapsed':_0x4db198},'message':_0x52c1e1(0xd8)};const _0x3defb5=Array['isArray'](_0x2c2c50)?_0x2c2c50:[];return{'ok':!![],'data':{'rows':_0x3defb5,'rowCount':_0x3defb5[_0x52c1e1(0xdb)],'elapsed':_0x4db198},'message':_0x52c1e1(0xe3)+_0x3defb5[_0x52c1e1(0xdb)]+'\x20row(s)\x20in\x20'+_0x4db198+'ms'};}};
1
+ const a57_0xaf0a9e=a57_0x3f78;function a57_0x17cc(){const _0x5b240e=['exec','983437OzQDwU','315416kWWDiS','sqlcode','6qZmTBR','623172odhNvl','execSuccess','sql','execResult','str','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','2467530rTtFdb','1067580rwodmE','Returned\x20','2490642SJGblZ','\x20row(s)\x20in\x20','6708960JffDFE','execError','isArray','read','SQL\x20execution\x20failed','now'];a57_0x17cc=function(){return _0x5b240e;};return a57_0x17cc();}function a57_0x3f78(_0x54b3eb,_0x57cd0){_0x54b3eb=_0x54b3eb-0x143;const _0x17cca3=a57_0x17cc();let _0x3f78da=_0x17cca3[_0x54b3eb];return _0x3f78da;}(function(_0x42004d,_0x3a9f61){const _0x4cd1c7=a57_0x3f78,_0x5e9a09=_0x42004d();while(!![]){try{const _0x443be2=parseInt(_0x4cd1c7(0x145))/0x1+-parseInt(_0x4cd1c7(0x14b))/0x2+parseInt(_0x4cd1c7(0x144))/0x3*(-parseInt(_0x4cd1c7(0x158))/0x4)+parseInt(_0x4cd1c7(0x14c))/0x5+parseInt(_0x4cd1c7(0x14e))/0x6+parseInt(_0x4cd1c7(0x157))/0x7+parseInt(_0x4cd1c7(0x150))/0x8;if(_0x443be2===_0x3a9f61)break;else _0x5e9a09['push'](_0x5e9a09['shift']());}catch(_0x10a1ce){_0x5e9a09['push'](_0x5e9a09['shift']());}}}(a57_0x17cc,0xccf09));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a57_0xaf0a9e(0x147),'command':a57_0xaf0a9e(0x156),'description':a57_0xaf0a9e(0x14a),'risk':a57_0xaf0a9e(0x153),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x475e4b){const _0xfcfa4c=a57_0xaf0a9e,_0x3fabfc=parseJsonParams(_0x475e4b[_0xfcfa4c(0x149)]('params')),_0x4a1810=Date[_0xfcfa4c(0x155)](),_0x2fdb1a=await executeSdkSql(_0x475e4b[_0xfcfa4c(0x149)](_0xfcfa4c(0x143)),_0x3fabfc),_0x128f90=Date['now']()-_0x4a1810,_0x934917=_0x2fdb1a?.[_0xfcfa4c(0x148)]??_0x2fdb1a,_0x510e32=_0x2fdb1a?.[_0xfcfa4c(0x146)]??!![];if(!_0x510e32)return{'ok':![],'data':{'error':_0x2fdb1a?.[_0xfcfa4c(0x151)]||_0xfcfa4c(0x154),'elapsed':_0x128f90},'message':_0xfcfa4c(0x154)};const _0x5a00a6=Array[_0xfcfa4c(0x152)](_0x934917)?_0x934917:[];return{'ok':!![],'data':{'rows':_0x5a00a6,'rowCount':_0x5a00a6['length'],'elapsed':_0x128f90},'message':_0xfcfa4c(0x14d)+_0x5a00a6['length']+_0xfcfa4c(0x14f)+_0x128f90+'ms'};}};
@@ -1 +1 @@
1
- function a58_0x6572(_0x49fee5,_0x9e8675){_0x49fee5=_0x49fee5-0x15d;const _0x1ff9e7=a58_0x1ff9();let _0x65722a=_0x1ff9e7[_0x49fee5];return _0x65722a;}(function(_0x49ba60,_0x545538){const _0x43bbb8=a58_0x6572,_0x38e46a=_0x49ba60();while(!![]){try{const _0x102347=-parseInt(_0x43bbb8(0x163))/0x1*(parseInt(_0x43bbb8(0x15e))/0x2)+-parseInt(_0x43bbb8(0x15d))/0x3+-parseInt(_0x43bbb8(0x160))/0x4+-parseInt(_0x43bbb8(0x165))/0x5*(parseInt(_0x43bbb8(0x161))/0x6)+parseInt(_0x43bbb8(0x15f))/0x7+parseInt(_0x43bbb8(0x164))/0x8*(-parseInt(_0x43bbb8(0x166))/0x9)+parseInt(_0x43bbb8(0x162))/0xa*(parseInt(_0x43bbb8(0x167))/0xb);if(_0x102347===_0x545538)break;else _0x38e46a['push'](_0x38e46a['shift']());}catch(_0xa65f2a){_0x38e46a['push'](_0x38e46a['shift']());}}}(a58_0x1ff9,0x6d9aa));function a58_0x1ff9(){const _0x4ade5f=['7338CgQCIC','550gIQoee','652042BGdfnF','2523896wubgqC','3495sQTJmt','9tKUPdj','461945tjjxiP','1648977MswdyH','2hGMzUa','5919823YMuWnk','1337644jzjwLl'];a58_0x1ff9=function(){return _0x4ade5f;};return a58_0x1ff9();}import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
1
+ (function(_0x2cd3cb,_0x1e1462){const _0x2db2a4=a58_0x306b,_0x542095=_0x2cd3cb();while(!![]){try{const _0x3a9b37=-parseInt(_0x2db2a4(0xfc))/0x1+-parseInt(_0x2db2a4(0xfb))/0x2+-parseInt(_0x2db2a4(0xf6))/0x3+parseInt(_0x2db2a4(0xf8))/0x4*(-parseInt(_0x2db2a4(0xf9))/0x5)+parseInt(_0x2db2a4(0xf5))/0x6+-parseInt(_0x2db2a4(0xfa))/0x7+parseInt(_0x2db2a4(0xfd))/0x8*(parseInt(_0x2db2a4(0xf7))/0x9);if(_0x3a9b37===_0x1e1462)break;else _0x542095['push'](_0x542095['shift']());}catch(_0x8e3e06){_0x542095['push'](_0x542095['shift']());}}}(a58_0x4619,0xb581e));function a58_0x4619(){const _0x30a96a=['24vkvjcE','1749900ezQyLZ','3429207kqCuLF','14864931BZxQRr','4BXeHPx','4540990jSbpea','2675288BQToTU','1944426BuXfcs','1097509FYtckf'];a58_0x4619=function(){return _0x30a96a;};return a58_0x4619();}function a58_0x306b(_0x52f260,_0x4b2c4d){_0x52f260=_0x52f260-0xf5;const _0x4619d7=a58_0x4619();let _0x306bfd=_0x4619d7[_0x52f260];return _0x306bfd;}import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
@@ -1 +1 @@
1
- const a59_0x4eaba9=a59_0x3fac;(function(_0x56172d,_0x388dea){const _0x1eb022=a59_0x3fac,_0x2f92ce=_0x56172d();while(!![]){try{const _0x322094=parseInt(_0x1eb022(0x1d6))/0x1*(-parseInt(_0x1eb022(0x1d0))/0x2)+parseInt(_0x1eb022(0x1ce))/0x3*(parseInt(_0x1eb022(0x1bb))/0x4)+parseInt(_0x1eb022(0x1ee))/0x5*(parseInt(_0x1eb022(0x1ae))/0x6)+parseInt(_0x1eb022(0x1d9))/0x7+-parseInt(_0x1eb022(0x1e1))/0x8*(parseInt(_0x1eb022(0x1dd))/0x9)+parseInt(_0x1eb022(0x1b2))/0xa*(-parseInt(_0x1eb022(0x1db))/0xb)+-parseInt(_0x1eb022(0x1f0))/0xc*(-parseInt(_0x1eb022(0x1d4))/0xd);if(_0x322094===_0x388dea)break;else _0x2f92ce['push'](_0x2f92ce['shift']());}catch(_0x5cb101){_0x2f92ce['push'](_0x2f92ce['shift']());}}}(a59_0x1cc0,0xe49db));import{spawnSync}from'node:child_process';function a59_0x1cc0(){const _0x43ac89=['prerelease','latest','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','/dist-tags','Current\x20version:\x20','length','Already\x20on\x20requested\x20version\x20(v','message','validation','trim','args','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','error','status','json','237gYVVwf','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','436AofceJ','Unable\x20to\x20resolve\x20','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','Updating\x20','559iLHJsz','Checking\x20npm\x20dist-tags...','8392FDuaKw','filter','\x20->\x20','12556243spSwBO','join','9898141BlpoVk','timeout','54BaQUNJ','Invalid\x20version:\x20','/-/package/','Update\x20failed:\x20','632248UrozbO','skills','inherit','update','fromEntries','Updated\x20to\x20v','Update\x20','Version\x20comparison\x20failed.','minor','run','unknown','string','stderr','5YbSiNq','match','67092qIRNTj','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','beta','pipe','toString','\x20version\x20from\x20npm.','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','major','install','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','version','str','Already\x20up\x20to\x20date\x20(v','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','write','log','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','cwd','bool','9905514bzLglM','patch','Checking\x20CLI\x20Built-in\x20Skill...','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','10dNtNjl','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','nonInteractive','warn','Install\x20a\x20specific\x20CLI\x20version','flag','boolean','no-skills','=1).','23028hLeims','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','source'];a59_0x1cc0=function(){return _0x43ac89;};return a59_0x1cc0();}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';const updateFlags=[{'name':a59_0x4eaba9(0x1c0),'type':'boolean','description':a59_0x4eaba9(0x1fd),'default':![]},{'name':a59_0x4eaba9(0x1f2),'type':a59_0x4eaba9(0x1b8),'description':a59_0x4eaba9(0x1b1),'default':![]},{'name':a59_0x4eaba9(0x1fa),'type':a59_0x4eaba9(0x1ec),'description':a59_0x4eaba9(0x1b6)},{'name':a59_0x4eaba9(0x1b9),'type':a59_0x4eaba9(0x1b8),'description':a59_0x4eaba9(0x1bc),'default':![]},{'name':a59_0x4eaba9(0x1e2),'type':a59_0x4eaba9(0x1b8),'description':a59_0x4eaba9(0x1c1),'default':!![],'hidden':!![]}];function parseSemver(_0xdbfff0){const _0x4eb467=a59_0x4eaba9,_0x211c66=_0xdbfff0[_0x4eb467(0x1c8)]()[_0x4eb467(0x1ef)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x211c66)return null;return{'major':Number(_0x211c66[0x1]),'minor':Number(_0x211c66[0x2]),'patch':Number(_0x211c66[0x3]),'prerelease':_0x211c66[0x4]};}function compareSemver(_0x5ca2c0,_0x3bcb9d){const _0x379174=a59_0x4eaba9,_0x4f16b2=parseSemver(_0x5ca2c0),_0x5287a6=parseSemver(_0x3bcb9d);if(!_0x4f16b2||!_0x5287a6)throw CliErrors[_0x379174(0x1c7)](_0x379174(0x1e8),_0x379174(0x1f1));for(const _0x436ed1 of[_0x379174(0x1f7),_0x379174(0x1e9),_0x379174(0x1af)]){if(_0x4f16b2[_0x436ed1]<_0x5287a6[_0x436ed1])return-0x1;if(_0x4f16b2[_0x436ed1]>_0x5287a6[_0x436ed1])return 0x1;}if(!_0x4f16b2[_0x379174(0x1bf)]&&!_0x5287a6[_0x379174(0x1bf)])return 0x0;if(!_0x4f16b2[_0x379174(0x1bf)])return 0x1;if(!_0x5287a6['prerelease'])return-0x1;if(_0x4f16b2[_0x379174(0x1bf)]===_0x5287a6[_0x379174(0x1bf)])return 0x0;return _0x4f16b2[_0x379174(0x1bf)]<_0x5287a6['prerelease']?-0x1:0x1;}function a59_0x3fac(_0x23094a,_0x54374f){_0x23094a=_0x23094a-0x1ad;const _0x1cc0fd=a59_0x1cc0();let _0x3facb1=_0x1cc0fd[_0x23094a];return _0x3facb1;}function getRequestedVersion(_0x3695b7){const _0x255edb=a59_0x4eaba9,_0x44ccf6=_0x3695b7[_0x255edb(0x1fb)](_0x255edb(0x1fa))[_0x255edb(0x1c8)]();if(_0x44ccf6)return _0x44ccf6;return String(_0x3695b7[_0x255edb(0x1c9)]?.[0x0]??'')[_0x255edb(0x1c8)]();}function shouldSkipCliBuiltInSkill(_0x42a7d9){const _0x2d3a0c=a59_0x4eaba9;return _0x42a7d9[_0x2d3a0c(0x1ad)](_0x2d3a0c(0x1b9))||_0x42a7d9[_0x2d3a0c(0x1b7)](_0x2d3a0c(0x1e2))===![];}async function validateUpdateFlags(_0x2b04b7){const _0x399398=a59_0x4eaba9,_0x2d8dcb=getRequestedVersion(_0x2b04b7),_0x59cb5d=[_0x2b04b7[_0x399398(0x1ad)]('latest')?_0x399398(0x1c0):'',_0x2b04b7['bool'](_0x399398(0x1f2))?_0x399398(0x1f2):'',_0x2d8dcb?_0x399398(0x1fa):''][_0x399398(0x1d7)](Boolean);if(_0x59cb5d[_0x399398(0x1c4)]>0x1)throw CliErrors['validation'](_0x399398(0x1f9),_0x399398(0x1f6));if(_0x2d8dcb&&!parseSemver(_0x2d8dcb))throw CliErrors[_0x399398(0x1c7)](_0x399398(0x1de)+_0x2d8dcb,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x1fd561=a59_0x4eaba9;try{const _0x1be5f=NPM_REGISTRY_BASE_URL+_0x1fd561(0x1df)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x1fd561(0x1c2),_0x4f9b24=await fetch(_0x1be5f,{'signal':AbortSignal[_0x1fd561(0x1dc)](0x2710)});if(!_0x4f9b24['ok'])return null;const _0x2267c7=await _0x4f9b24[_0x1fd561(0x1cd)]();if(!_0x2267c7||typeof _0x2267c7!=='object')return null;return Object[_0x1fd561(0x1e5)](Object['entries'](_0x2267c7)['filter'](([,_0x1e9db0])=>typeof _0x1e9db0===_0x1fd561(0x1ec)&&_0x1e9db0['trim']())['map'](([_0x371b01,_0xeba8f0])=>[_0x371b01,String(_0xeba8f0)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0x3f8bb3){const _0x12e81a=a59_0x4eaba9,_0x26b455=getRequestedVersion(_0x3f8bb3);if(_0x26b455)return{'version':_0x26b455,'source':'version'};const _0x1ac842=_0x3f8bb3[_0x12e81a(0x1ad)]('beta')?'beta':_0x12e81a(0x1c0),_0x3cbffc=await fetchNpmDistTags(),_0x23c7dc=_0x3cbffc?.[_0x1ac842];if(!_0x23c7dc)return null;return{'version':_0x23c7dc,'source':_0x1ac842};}function shouldInstallTarget(_0x2119b7,_0x10bec2){const _0x396532=a59_0x4eaba9,_0x8f2198=compareSemver(_0x2119b7,_0x10bec2[_0x396532(0x1fa)]);if(_0x10bec2[_0x396532(0x1be)]===_0x396532(0x1fa))return _0x8f2198!==0x0;return _0x8f2198<0x0;}function installCliPackage(_0x2fac2d,_0x155c35){const _0x3eb03a=a59_0x4eaba9,_0x51da5b=resolveNpmBin('npm'),_0x2fb112=[_0x3eb03a(0x1f8),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x2fac2d];console[_0x3eb03a(0x1ff)]('*\x20'+[_0x51da5b,..._0x2fb112][_0x3eb03a(0x1da)]('\x20'));const _0x266ed8=spawnSync(_0x51da5b,_0x2fb112,{'cwd':process[_0x3eb03a(0x201)](),'stdio':_0x155c35?'pipe':_0x3eb03a(0x1e3),'env':process.env,'shell':![]});if(_0x266ed8[_0x3eb03a(0x1cc)]===0x0)return{'ok':!![]};let _0x4ffcad=_0x266ed8['error']?.[_0x3eb03a(0x1c6)]||'exit\x20'+(_0x266ed8[_0x3eb03a(0x1cc)]??'unknown');if(_0x155c35){const _0x10ec95=_0x266ed8[_0x3eb03a(0x1ed)]?_0x266ed8[_0x3eb03a(0x1ed)][_0x3eb03a(0x1f4)]()['trim']():'',_0x15ffd9=_0x266ed8['stdout']?_0x266ed8['stdout'][_0x3eb03a(0x1f4)]()['trim']():'';if(_0x10ec95)_0x4ffcad=_0x10ec95;else{if(_0x15ffd9)_0x4ffcad=_0x15ffd9;}}return{'ok':![],'error':_0x4ffcad};}async function installCliBuiltInSkill(_0x3fe318){const _0x50fed6=a59_0x4eaba9;console[_0x50fed6(0x1ff)](_0x50fed6(0x1b0));const _0x137b2b=runNpxSkillsAddGlobal(process['cwd'](),LOVRABET_SKILL_SOURCE,{'stdio':_0x3fe318?_0x50fed6(0x1f3):_0x50fed6(0x1e3)});if(_0x137b2b['skipped']){console[_0x50fed6(0x1ff)]('\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20('+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x50fed6(0x1ba));return;}if(_0x137b2b['ok']){console[_0x50fed6(0x1ff)]('\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.');return;}console[_0x50fed6(0x1b5)](_0x50fed6(0x1d2)+(_0x137b2b[_0x50fed6(0x1cb)]||_0x50fed6(0x1eb))),console[_0x50fed6(0x1ff)](_0x50fed6(0x1cf));}async function execute(_0x2a5fb8){const _0x144b92=a59_0x4eaba9;await validateUpdateFlags(_0x2a5fb8);const _0x36e8f0=getCliVersion();console[_0x144b92(0x1ff)](_0x144b92(0x1c3)+_0x36e8f0),console['log'](_0x144b92(0x1d5));const _0x99d732=await resolveTargetVersion(_0x2a5fb8);if(!_0x99d732){const _0x241286=_0x2a5fb8['bool']('beta')?_0x144b92(0x1f2):'latest',_0x6072cf=_0x144b92(0x1d1)+_0x241286+_0x144b92(0x1f5);return console['warn'](_0x6072cf),console[_0x144b92(0x1ff)](_0x144b92(0x200)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x241286),{'ok':![]};}if(!shouldInstallTarget(_0x36e8f0,_0x99d732)){const _0x4a6c77=_0x99d732['source']===_0x144b92(0x1fa)?_0x144b92(0x1c5)+_0x99d732['version']+').':_0x144b92(0x1fc)+_0x99d732[_0x144b92(0x1fa)]+').';return console[_0x144b92(0x1ff)](_0x4a6c77),shouldSkipCliBuiltInSkill(_0x2a5fb8)?console[_0x144b92(0x1ff)]('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).'):await installCliBuiltInSkill(_0x2a5fb8[_0x144b92(0x1b4)]),{'ok':!![]};}console[_0x144b92(0x1ff)](_0x144b92(0x1d3)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x36e8f0+_0x144b92(0x1d8)+_0x99d732[_0x144b92(0x1fa)]);const _0x2151f4=installCliPackage(_0x99d732[_0x144b92(0x1fa)],_0x2a5fb8['nonInteractive']);if(!_0x2151f4['ok']){const _0x581817=_0x144b92(0x1e0)+(_0x2151f4[_0x144b92(0x1cb)]||'unknown');return console[_0x144b92(0x1cb)](_0x581817),console[_0x144b92(0x1ff)](_0x144b92(0x1ca)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x99d732[_0x144b92(0x1fa)]),{'ok':![]};}return console[_0x144b92(0x1ff)](_0x144b92(0x1e6)+_0x99d732[_0x144b92(0x1fa)]+'.'),console[_0x144b92(0x1ff)](_0x144b92(0x1bd)),shouldSkipCliBuiltInSkill(_0x2a5fb8)?console[_0x144b92(0x1ff)](_0x144b92(0x1b3)):await installCliBuiltInSkill(_0x2a5fb8[_0x144b92(0x1b4)]),{'ok':!![]};}export const updateDefinition={'service':a59_0x4eaba9(0x1e4),'command':a59_0x4eaba9(0x1ea),'description':a59_0x4eaba9(0x1e7)+CLI_BIN_NAME+'\x20CLI\x20from\x20npm','risk':a59_0x4eaba9(0x1fe),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a59_0x5438e6=a59_0x2797;(function(_0x1bcb75,_0x20466c){const _0x102250=a59_0x2797,_0x55a732=_0x1bcb75();while(!![]){try{const _0x3a206f=parseInt(_0x102250(0x159))/0x1*(-parseInt(_0x102250(0x13b))/0x2)+parseInt(_0x102250(0x136))/0x3+-parseInt(_0x102250(0x112))/0x4+-parseInt(_0x102250(0x131))/0x5*(parseInt(_0x102250(0x113))/0x6)+parseInt(_0x102250(0x14b))/0x7+-parseInt(_0x102250(0x12a))/0x8*(parseInt(_0x102250(0x153))/0x9)+parseInt(_0x102250(0x15b))/0xa;if(_0x3a206f===_0x20466c)break;else _0x55a732['push'](_0x55a732['shift']());}catch(_0x38352c){_0x55a732['push'](_0x55a732['shift']());}}}(a59_0x30a1,0xe25ce));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';function a59_0x30a1(){const _0x20c96b=['major','\x20version\x20from\x20npm.','4Esrpce','source','error','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','warn','filter','cwd','flag','version','\x20CLI\x20from\x20npm','boolean','Install\x20a\x20specific\x20CLI\x20version','Checking\x20npm\x20dist-tags...','beta','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','Already\x20on\x20requested\x20version\x20(v','6898542siUIgV','stderr','update','Unable\x20to\x20resolve\x20','message','inherit','join','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','1707948byhvRB','Updated\x20to\x20v','status','latest','log','trim','655909ReujCL','no-skills','32597240YSsQYG','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','unknown','string','2097992eAVRxR','138VMgZvY','stdout','match','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','/dist-tags','run','Current\x20version:\x20','exit\x20','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','validation','nonInteractive','write','Updating\x20','toString','skipped','map','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','minor','object','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','Update\x20failed:\x20','json','fromEntries','56hAEFRt','\x20->\x20','install','Version\x20comparison\x20failed.','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','bool','77295TyuCxl','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','prerelease','npm','Checking\x20CLI\x20Built-in\x20Skill...','606687InznUc','skills','args'];a59_0x30a1=function(){return _0x20c96b;};return a59_0x30a1();}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';const updateFlags=[{'name':a59_0x5438e6(0x156),'type':a59_0x5438e6(0x145),'description':'Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','default':![]},{'name':a59_0x5438e6(0x148),'type':a59_0x5438e6(0x145),'description':a59_0x5438e6(0x15c),'default':![]},{'name':a59_0x5438e6(0x143),'type':a59_0x5438e6(0x111),'description':a59_0x5438e6(0x146)},{'name':a59_0x5438e6(0x15a),'type':a59_0x5438e6(0x145),'description':a59_0x5438e6(0x149),'default':![]},{'name':a59_0x5438e6(0x137),'type':a59_0x5438e6(0x145),'description':a59_0x5438e6(0x132),'default':!![],'hidden':!![]}];function parseSemver(_0x4727d1){const _0x5d86ef=a59_0x5438e6,_0xb11c8e=_0x4727d1[_0x5d86ef(0x158)]()[_0x5d86ef(0x115)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0xb11c8e)return null;return{'major':Number(_0xb11c8e[0x1]),'minor':Number(_0xb11c8e[0x2]),'patch':Number(_0xb11c8e[0x3]),'prerelease':_0xb11c8e[0x4]};}function compareSemver(_0x597fe9,_0x1b02c7){const _0x3b8180=a59_0x5438e6,_0x3d01bc=parseSemver(_0x597fe9),_0x38634a=parseSemver(_0x1b02c7);if(!_0x3d01bc||!_0x38634a)throw CliErrors['validation'](_0x3b8180(0x12d),'Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');for(const _0x6983c9 of[_0x3b8180(0x139),_0x3b8180(0x124),'patch']){if(_0x3d01bc[_0x6983c9]<_0x38634a[_0x6983c9])return-0x1;if(_0x3d01bc[_0x6983c9]>_0x38634a[_0x6983c9])return 0x1;}if(!_0x3d01bc[_0x3b8180(0x133)]&&!_0x38634a[_0x3b8180(0x133)])return 0x0;if(!_0x3d01bc[_0x3b8180(0x133)])return 0x1;if(!_0x38634a[_0x3b8180(0x133)])return-0x1;if(_0x3d01bc[_0x3b8180(0x133)]===_0x38634a[_0x3b8180(0x133)])return 0x0;return _0x3d01bc[_0x3b8180(0x133)]<_0x38634a[_0x3b8180(0x133)]?-0x1:0x1;}function getRequestedVersion(_0x1c3f4d){const _0xe0160b=a59_0x5438e6,_0x4feef2=_0x1c3f4d['str'](_0xe0160b(0x143))[_0xe0160b(0x158)]();if(_0x4feef2)return _0x4feef2;return String(_0x1c3f4d[_0xe0160b(0x138)]?.[0x0]??'')[_0xe0160b(0x158)]();}function shouldSkipCliBuiltInSkill(_0x2a2069){const _0x4ecfa1=a59_0x5438e6;return _0x2a2069[_0x4ecfa1(0x130)](_0x4ecfa1(0x15a))||_0x2a2069[_0x4ecfa1(0x142)](_0x4ecfa1(0x137))===![];}function a59_0x2797(_0x434d25,_0x19a92c){_0x434d25=_0x434d25-0x111;const _0x30a1c1=a59_0x30a1();let _0x279781=_0x30a1c1[_0x434d25];return _0x279781;}async function validateUpdateFlags(_0xbfd60b){const _0xad9c13=a59_0x5438e6,_0x3e188b=getRequestedVersion(_0xbfd60b),_0x4cb600=[_0xbfd60b[_0xad9c13(0x130)](_0xad9c13(0x156))?_0xad9c13(0x156):'',_0xbfd60b[_0xad9c13(0x130)](_0xad9c13(0x148))?'beta':'',_0x3e188b?_0xad9c13(0x143):'']['filter'](Boolean);if(_0x4cb600['length']>0x1)throw CliErrors['validation'](_0xad9c13(0x13e),_0xad9c13(0x126));if(_0x3e188b&&!parseSemver(_0x3e188b))throw CliErrors[_0xad9c13(0x11c)]('Invalid\x20version:\x20'+_0x3e188b,_0xad9c13(0x11b));}async function fetchNpmDistTags(){const _0x2e7aa7=a59_0x5438e6;try{const _0x534342=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x2e7aa7(0x117),_0x10d582=await fetch(_0x534342,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x10d582['ok'])return null;const _0x1e39c5=await _0x10d582[_0x2e7aa7(0x128)]();if(!_0x1e39c5||typeof _0x1e39c5!==_0x2e7aa7(0x125))return null;return Object[_0x2e7aa7(0x129)](Object['entries'](_0x1e39c5)[_0x2e7aa7(0x140)](([,_0x21d41a])=>typeof _0x21d41a===_0x2e7aa7(0x111)&&_0x21d41a[_0x2e7aa7(0x158)]())[_0x2e7aa7(0x122)](([_0x45c80d,_0x51c11d])=>[_0x45c80d,String(_0x51c11d)[_0x2e7aa7(0x158)]()]));}catch{return null;}}async function resolveTargetVersion(_0xbe2ca1){const _0x26b8ce=a59_0x5438e6,_0x3b354c=getRequestedVersion(_0xbe2ca1);if(_0x3b354c)return{'version':_0x3b354c,'source':'version'};const _0x323632=_0xbe2ca1[_0x26b8ce(0x130)](_0x26b8ce(0x148))?'beta':_0x26b8ce(0x156),_0x5d465f=await fetchNpmDistTags(),_0x1f0227=_0x5d465f?.[_0x323632];if(!_0x1f0227)return null;return{'version':_0x1f0227,'source':_0x323632};}function shouldInstallTarget(_0x4a3d7b,_0x56e669){const _0x2a8d88=a59_0x5438e6,_0x1ed33b=compareSemver(_0x4a3d7b,_0x56e669['version']);if(_0x56e669[_0x2a8d88(0x13c)]===_0x2a8d88(0x143))return _0x1ed33b!==0x0;return _0x1ed33b<0x0;}function installCliPackage(_0x689b31,_0x51d5cf){const _0x14ab0a=a59_0x5438e6,_0x1a1f5c=resolveNpmBin(_0x14ab0a(0x134)),_0x1dab93=[_0x14ab0a(0x12c),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x689b31];console['log']('*\x20'+[_0x1a1f5c,..._0x1dab93][_0x14ab0a(0x151)]('\x20'));const _0x46ddf2=spawnSync(_0x1a1f5c,_0x1dab93,{'cwd':process[_0x14ab0a(0x141)](),'stdio':_0x51d5cf?'pipe':'inherit','env':process.env,'shell':![]});if(_0x46ddf2[_0x14ab0a(0x155)]===0x0)return{'ok':!![]};let _0x4d118d=_0x46ddf2['error']?.[_0x14ab0a(0x14f)]||_0x14ab0a(0x11a)+(_0x46ddf2[_0x14ab0a(0x155)]??_0x14ab0a(0x15d));if(_0x51d5cf){const _0x2e9a5d=_0x46ddf2[_0x14ab0a(0x14c)]?_0x46ddf2['stderr'][_0x14ab0a(0x120)]()['trim']():'',_0x387214=_0x46ddf2[_0x14ab0a(0x114)]?_0x46ddf2[_0x14ab0a(0x114)]['toString']()[_0x14ab0a(0x158)]():'';if(_0x2e9a5d)_0x4d118d=_0x2e9a5d;else{if(_0x387214)_0x4d118d=_0x387214;}}return{'ok':![],'error':_0x4d118d};}async function installCliBuiltInSkill(_0x215958){const _0x37133f=a59_0x5438e6;console[_0x37133f(0x157)](_0x37133f(0x135));const _0x1c9f01=runNpxSkillsAddGlobal(process[_0x37133f(0x141)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x215958?'pipe':_0x37133f(0x150)});if(_0x1c9f01[_0x37133f(0x121)]){console[_0x37133f(0x157)](_0x37133f(0x116)+LOVRABET_SKIP_NPX_SKILLS_ENV+'=1).');return;}if(_0x1c9f01['ok']){console[_0x37133f(0x157)](_0x37133f(0x12e));return;}console[_0x37133f(0x13f)](_0x37133f(0x12f)+(_0x1c9f01[_0x37133f(0x13d)]||_0x37133f(0x15d))),console[_0x37133f(0x157)]('\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install');}async function execute(_0x12dee2){const _0x1c1df6=a59_0x5438e6;await validateUpdateFlags(_0x12dee2);const _0x5cbdc3=getCliVersion();console[_0x1c1df6(0x157)](_0x1c1df6(0x119)+_0x5cbdc3),console[_0x1c1df6(0x157)](_0x1c1df6(0x147));const _0x271aa2=await resolveTargetVersion(_0x12dee2);if(!_0x271aa2){const _0x16a1b9=_0x12dee2[_0x1c1df6(0x130)](_0x1c1df6(0x148))?_0x1c1df6(0x148):_0x1c1df6(0x156),_0x231e21=_0x1c1df6(0x14e)+_0x16a1b9+_0x1c1df6(0x13a);return console[_0x1c1df6(0x13f)](_0x231e21),console[_0x1c1df6(0x157)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x16a1b9),{'ok':![]};}if(!shouldInstallTarget(_0x5cbdc3,_0x271aa2)){const _0xde11cc=_0x271aa2[_0x1c1df6(0x13c)]===_0x1c1df6(0x143)?_0x1c1df6(0x14a)+_0x271aa2['version']+').':'Already\x20up\x20to\x20date\x20(v'+_0x271aa2['version']+').';return console[_0x1c1df6(0x157)](_0xde11cc),shouldSkipCliBuiltInSkill(_0x12dee2)?console[_0x1c1df6(0x157)](_0x1c1df6(0x123)):await installCliBuiltInSkill(_0x12dee2[_0x1c1df6(0x11d)]),{'ok':!![]};}console[_0x1c1df6(0x157)](_0x1c1df6(0x11f)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x5cbdc3+_0x1c1df6(0x12b)+_0x271aa2['version']);const _0x3fd0b8=installCliPackage(_0x271aa2[_0x1c1df6(0x143)],_0x12dee2[_0x1c1df6(0x11d)]);if(!_0x3fd0b8['ok']){const _0x4b1360=_0x1c1df6(0x127)+(_0x3fd0b8[_0x1c1df6(0x13d)]||'unknown');return console[_0x1c1df6(0x13d)](_0x4b1360),console['log'](_0x1c1df6(0x152)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x271aa2['version']),{'ok':![]};}return console[_0x1c1df6(0x157)](_0x1c1df6(0x154)+_0x271aa2[_0x1c1df6(0x143)]+'.'),console[_0x1c1df6(0x157)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'),shouldSkipCliBuiltInSkill(_0x12dee2)?console[_0x1c1df6(0x157)](_0x1c1df6(0x123)):await installCliBuiltInSkill(_0x12dee2[_0x1c1df6(0x11d)]),{'ok':!![]};}export const updateDefinition={'service':a59_0x5438e6(0x14d),'command':a59_0x5438e6(0x118),'description':'Update\x20'+CLI_BIN_NAME+a59_0x5438e6(0x144),'risk':a59_0x5438e6(0x11e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- const a60_0x1edf5d=a60_0x5308;(function(_0x547c20,_0x476a7a){const _0xee9c3e=a60_0x5308,_0x272b9c=_0x547c20();while(!![]){try{const _0x12de7f=parseInt(_0xee9c3e(0x218))/0x1+parseInt(_0xee9c3e(0x20c))/0x2*(-parseInt(_0xee9c3e(0x20f))/0x3)+-parseInt(_0xee9c3e(0x1fb))/0x4*(-parseInt(_0xee9c3e(0x1fa))/0x5)+-parseInt(_0xee9c3e(0x209))/0x6*(parseInt(_0xee9c3e(0x1fc))/0x7)+parseInt(_0xee9c3e(0x219))/0x8+-parseInt(_0xee9c3e(0x1f6))/0x9*(-parseInt(_0xee9c3e(0x212))/0xa)+parseInt(_0xee9c3e(0x1ff))/0xb;if(_0x12de7f===_0x476a7a)break;else _0x272b9c['push'](_0x272b9c['shift']());}catch(_0x2ef252){_0x272b9c['push'](_0x272b9c['shift']());}}}(a60_0x33f4,0x3380e));import{CLI_BIN_NAME}from'../../constant/cli.js';function a60_0x5308(_0x22f802,_0xa66727){_0x22f802=_0x22f802-0x1eb;const _0x33f4ab=a60_0x33f4();let _0x5308e4=_0x33f4ab[_0x22f802];return _0x5308e4;}import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';function a60_0x33f4(){const _0xd0c77b=['67994DWCyyk','yes','string','3MLZcUg','items','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','8610DzFddl','object','appName','\x22.\x20Allowed:\x20','\x0aEnv:\x20','Run\x20`','27718owkfZS','582472Mzaacq','authRequired','shouldWriteEnv','str','Available\x20apps:\x20','envName','command','appCode','Missing\x20workspace\x20app\x20selector.','isArray','join','\x0aAccessKey:\x20not\x20written','\x20--appcode\x20<code>\x20[--env\x20daily]','trim','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','Workspace\x20configured.\x0aConfig\x20file:\x20','defaultApp','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','validation','workspace\x20','includes','app','appcode','\x22\x20not\x20found.','apps','531RjbSbK','../../commands/app/remote-source.js','init','map','1565zhHiCZ','296EgjNFT','1337SScisU','use','../../core/api-client.js','4874188hQWmjP','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','length','env','workspace','App\x20\x22','from','\x20workspace\x20','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','accessKey','11706oPGaci','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','Invalid\x20env\x20\x22'];a60_0x33f4=function(){return _0xd0c77b;};return a60_0x33f4();}import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a60_0x1edf5d(0x1f2),'type':a60_0x1edf5d(0x20e),'description':a60_0x1edf5d(0x20a)},{'name':a60_0x1edf5d(0x1f3),'type':a60_0x1edf5d(0x20e),'description':'App\x20code\x20to\x20bind\x20directly'},{'name':a60_0x1edf5d(0x202),'type':a60_0x1edf5d(0x20e),'description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]},{'name':a60_0x1edf5d(0x20d),'type':'boolean','description':a60_0x1edf5d(0x207),'default':![]}];async function executeWorkspaceUse(_0x50d6b5,_0x1150a7){const _0x57b43b=a60_0x1edf5d,_0x255519=_0x50d6b5[_0x57b43b(0x21c)](_0x57b43b(0x1f2))[_0x57b43b(0x226)](),_0x341ceb=_0x50d6b5['str'](_0x57b43b(0x1f3))[_0x57b43b(0x226)](),_0x2cc2b5=_0x50d6b5[_0x57b43b(0x21c)](_0x57b43b(0x202))['trim'](),_0x2736d7=resolveWorkspaceEnv(_0x2cc2b5||_0x50d6b5[_0x57b43b(0x21e)]||DEFAULT_CONFIG_VALUES[_0x57b43b(0x202)]);if(!_0x255519&&!_0x341ceb)throw CliErrors[_0x57b43b(0x1ef)](_0x57b43b(0x221),'Usage:\x20'+CLI_BIN_NAME+'\x20workspace\x20'+_0x1150a7+_0x57b43b(0x1eb)+CLI_BIN_NAME+_0x57b43b(0x206)+_0x1150a7+_0x57b43b(0x225));const _0x172590=_0x341ceb||await resolveRemoteAppCode({'command':_0x1150a7,'appName':_0x255519,'env':_0x2736d7,'accessKey':_0x50d6b5[_0x57b43b(0x208)]}),_0x7ec8cf=writeWorkspaceConfig({'command':_0x1150a7,'appName':_0x255519,'appcode':_0x172590,'env':_0x2736d7,'shouldWriteEnv':!!_0x2cc2b5,'accessKey':_0x50d6b5[_0x57b43b(0x208)]});return{'ok':!![],'data':{'configPath':_0x7ec8cf,'app':_0x255519||null,'appcode':_0x172590,'env':_0x2cc2b5?_0x2736d7:null,'accessKeyWritten':![],'command':_0x57b43b(0x1f0)+_0x1150a7},'message':buildWorkspaceMessage(_0x7ec8cf,_0x255519,_0x172590,_0x2cc2b5?_0x2736d7:undefined)};}async function resolveRemoteAppCode(_0x1fa6f9){const _0x429b3b=a60_0x1edf5d;if(!_0x1fa6f9[_0x429b3b(0x208)])throw CliErrors[_0x429b3b(0x21a)]('Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20'+CLI_BIN_NAME+_0x429b3b(0x206)+_0x1fa6f9[_0x429b3b(0x21f)]+'.');const {setActiveAK:_0x3cc1d4}=await import(_0x429b3b(0x1fe)),{getRemoteAppList:_0x19e5f3}=await import(_0x429b3b(0x1f7));_0x3cc1d4(_0x1fa6f9['accessKey']);const _0x32cc19=await _0x19e5f3({'env':_0x1fa6f9[_0x429b3b(0x202)],'accessKey':_0x1fa6f9[_0x429b3b(0x208)],'noCache':![]}),_0x230013=findAppByName(_0x32cc19[_0x429b3b(0x210)],_0x1fa6f9[_0x429b3b(0x214)]);if(_0x230013&&!isRuntimeAccessibleApp(_0x230013))throw runtimeInaccessibleAppError(_0x230013,'\x22'+_0x1fa6f9[_0x429b3b(0x214)]+'\x22');const _0x2e2847=_0x230013?.[_0x429b3b(0x220)]?.[_0x429b3b(0x226)]();if(_0x2e2847)return _0x2e2847;const _0xeb3c92=_0x32cc19[_0x429b3b(0x210)][_0x429b3b(0x1f9)](_0x56602b=>_0x56602b[_0x429b3b(0x214)])['filter'](Boolean),_0x443a8f=_0xeb3c92[_0x429b3b(0x201)]?_0x429b3b(0x21d)+Array[_0x429b3b(0x205)](new Set(_0xeb3c92))['join'](',\x20')+'.':_0x429b3b(0x217)+CLI_BIN_NAME+_0x429b3b(0x211);throw CliErrors[_0x429b3b(0x1ef)](_0x429b3b(0x204)+_0x1fa6f9[_0x429b3b(0x214)]+_0x429b3b(0x1f4),_0x443a8f);}function writeWorkspaceConfig(_0x1f1415){const _0x25bdc8=a60_0x1edf5d,_0x55a87c=resolveWriteConfigPath('project'),_0x57a974=readConfigFile(_0x55a87c);_0x1f1415[_0x25bdc8(0x21b)]&&(_0x57a974[_0x25bdc8(0x202)]=_0x1f1415[_0x25bdc8(0x202)]);if(_0x1f1415[_0x25bdc8(0x214)]){const _0x454984=isRecord(_0x57a974[_0x25bdc8(0x1f5)])?{..._0x57a974[_0x25bdc8(0x1f5)]}:{},_0x501ae8=isRecord(_0x454984[_0x1f1415['appName']])?_0x454984[_0x1f1415[_0x25bdc8(0x214)]]:{};_0x454984[_0x1f1415['appName']]={..._0x501ae8,'appcode':_0x1f1415[_0x25bdc8(0x1f3)]},_0x57a974['apps']=_0x454984,_0x57a974[_0x25bdc8(0x1ed)]=_0x1f1415[_0x25bdc8(0x214)];if(_0x57a974[_0x25bdc8(0x1f2)])delete _0x57a974[_0x25bdc8(0x1f2)];return writeAndReturn(_0x55a87c,_0x57a974);}_0x57a974[_0x25bdc8(0x1f3)]=_0x1f1415['appcode'];if(_0x57a974[_0x25bdc8(0x1f2)])delete _0x57a974[_0x25bdc8(0x1f2)];return writeAndReturn(_0x55a87c,_0x57a974);}function writeAndReturn(_0x2cebfe,_0x23c3b5){return writeConfigFile(_0x2cebfe,_0x23c3b5),_0x2cebfe;}function resolveWorkspaceEnv(_0x5f08c8){const _0x2c2d60=a60_0x1edf5d;if(RUNTIME_ENV_VALUES[_0x2c2d60(0x1f1)](_0x5f08c8))return _0x5f08c8;throw CliErrors[_0x2c2d60(0x1ef)](_0x2c2d60(0x20b)+_0x5f08c8+_0x2c2d60(0x215)+RUNTIME_ENV_VALUES[_0x2c2d60(0x223)](',\x20'));}function buildWorkspaceMessage(_0xf63aea,_0xfb06d,_0x2a255e,_0x5275d5){const _0x578199=a60_0x1edf5d,_0x224260=_0xfb06d?_0xfb06d+'\x20('+_0x2a255e+')':_0x2a255e,_0x3c6bf8=_0x5275d5?_0x578199(0x216)+_0x5275d5:'';return _0x578199(0x1ec)+_0xf63aea+'\x0aDefault\x20app:\x20'+_0x224260+_0x3c6bf8+_0x578199(0x224);}function isRecord(_0x30d34c){const _0x4abdb7=a60_0x1edf5d;return typeof _0x30d34c===_0x4abdb7(0x213)&&_0x30d34c!==null&&!Array[_0x4abdb7(0x222)](_0x30d34c);}function makeWorkspaceCommand(_0x1e6de5){const _0x290791=a60_0x1edf5d;return{'service':_0x290791(0x203),'command':_0x1e6de5,'description':_0x1e6de5===_0x290791(0x1f8)?_0x290791(0x1ee):_0x290791(0x200),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x55ef8a){return executeWorkspaceUse(_0x55ef8a,_0x1e6de5);}};}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand(a60_0x1edf5d(0x1fd))];
1
+ const a60_0x7d87d6=a60_0x317a;(function(_0xd5e428,_0x23bade){const _0x55b8eb=a60_0x317a,_0x48dd04=_0xd5e428();while(!![]){try{const _0x9c6276=parseInt(_0x55b8eb(0x15c))/0x1+parseInt(_0x55b8eb(0x16a))/0x2*(parseInt(_0x55b8eb(0x149))/0x3)+parseInt(_0x55b8eb(0x176))/0x4+parseInt(_0x55b8eb(0x167))/0x5+parseInt(_0x55b8eb(0x157))/0x6+-parseInt(_0x55b8eb(0x158))/0x7+-parseInt(_0x55b8eb(0x15a))/0x8*(parseInt(_0x55b8eb(0x165))/0x9);if(_0x9c6276===_0x23bade)break;else _0x48dd04['push'](_0x48dd04['shift']());}catch(_0x33786f){_0x48dd04['push'](_0x48dd04['shift']());}}}(a60_0x2d56,0x85d34));function a60_0x2d56(){const _0x5e665a=['Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','str','43972PbyIIz','includes','from','env','app','envName','apps','Missing\x20workspace\x20app\x20selector.','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','join','Workspace\x20configured.\x0aConfig\x20file:\x20','items','390884BvMEQs','workspace\x20','project','Usage:\x20','accessKey','\x22.\x20Allowed:\x20','\x20--appcode\x20<code>\x20[--env\x20daily]','boolean','\x0aDefault\x20app:\x20','99SxCkON','\x0aAccessKey:\x20not\x20written','Available\x20apps:\x20','appCode','use','Run\x20`','yes','\x0aEnv:\x20','appName','filter','appcode','object','App\x20code\x20to\x20bind\x20directly','defaultApp','1859682gAyMxr','6731669JxhPCF','validation','1744jrPIYv','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','963747FxAXKo','\x20workspace\x20','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','command','isArray','workspace','Target\x20environment','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','string','34407yKzYRQ','trim','1231380wsSadq'];a60_0x2d56=function(){return _0x5e665a;};return a60_0x2d56();}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_0x7d87d6(0x16e),'type':a60_0x7d87d6(0x164),'description':a60_0x7d87d6(0x172)},{'name':'appcode','type':a60_0x7d87d6(0x164),'description':a60_0x7d87d6(0x155)},{'name':'env','type':a60_0x7d87d6(0x164),'description':a60_0x7d87d6(0x162),'enum':[...RUNTIME_ENV_VALUES]},{'name':a60_0x7d87d6(0x14f),'type':a60_0x7d87d6(0x147),'description':a60_0x7d87d6(0x163),'default':![]}];async function executeWorkspaceUse(_0x36c1df,_0x19d6d8){const _0x369b65=a60_0x7d87d6,_0x490f87=_0x36c1df[_0x369b65(0x169)]('app')['trim'](),_0x1c9677=_0x36c1df[_0x369b65(0x169)](_0x369b65(0x153))[_0x369b65(0x166)](),_0x5c5562=_0x36c1df[_0x369b65(0x169)]('env')[_0x369b65(0x166)](),_0x261d87=resolveWorkspaceEnv(_0x5c5562||_0x36c1df[_0x369b65(0x16f)]||DEFAULT_CONFIG_VALUES['env']);if(!_0x490f87&&!_0x1c9677)throw CliErrors[_0x369b65(0x159)](_0x369b65(0x171),_0x369b65(0x179)+CLI_BIN_NAME+_0x369b65(0x15d)+_0x19d6d8+_0x369b65(0x15b)+CLI_BIN_NAME+_0x369b65(0x15d)+_0x19d6d8+_0x369b65(0x146));const _0x1e0550=_0x1c9677||await resolveRemoteAppCode({'command':_0x19d6d8,'appName':_0x490f87,'env':_0x261d87,'accessKey':_0x36c1df[_0x369b65(0x17a)]}),_0x829934=writeWorkspaceConfig({'command':_0x19d6d8,'appName':_0x490f87,'appcode':_0x1e0550,'env':_0x261d87,'shouldWriteEnv':!!_0x5c5562,'accessKey':_0x36c1df[_0x369b65(0x17a)]});return{'ok':!![],'data':{'configPath':_0x829934,'app':_0x490f87||null,'appcode':_0x1e0550,'env':_0x5c5562?_0x261d87:null,'accessKeyWritten':![],'command':_0x369b65(0x177)+_0x19d6d8},'message':buildWorkspaceMessage(_0x829934,_0x490f87,_0x1e0550,_0x5c5562?_0x261d87:undefined)};}async function resolveRemoteAppCode(_0x310c54){const _0x4249da=a60_0x7d87d6;if(!_0x310c54[_0x4249da(0x17a)])throw CliErrors['authRequired']('Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20'+CLI_BIN_NAME+'\x20workspace\x20'+_0x310c54[_0x4249da(0x15f)]+'.');const {setActiveAK:_0x53c061}=await import('../../core/api-client.js'),{getRemoteAppList:_0x3b53c7}=await import('../../commands/app/remote-source.js');_0x53c061(_0x310c54['accessKey']);const _0x2ddac4=await _0x3b53c7({'env':_0x310c54[_0x4249da(0x16d)],'accessKey':_0x310c54[_0x4249da(0x17a)],'noCache':![]}),_0x6a12fb=findAppByName(_0x2ddac4['items'],_0x310c54['appName']);if(_0x6a12fb&&!isRuntimeAccessibleApp(_0x6a12fb))throw runtimeInaccessibleAppError(_0x6a12fb,'\x22'+_0x310c54[_0x4249da(0x151)]+'\x22');const _0x1fb8a2=_0x6a12fb?.[_0x4249da(0x14c)]?.[_0x4249da(0x166)]();if(_0x1fb8a2)return _0x1fb8a2;const _0x21e9c3=_0x2ddac4[_0x4249da(0x175)]['map'](_0x105175=>_0x105175[_0x4249da(0x151)])[_0x4249da(0x152)](Boolean),_0x329de6=_0x21e9c3['length']?_0x4249da(0x14b)+Array[_0x4249da(0x16c)](new Set(_0x21e9c3))[_0x4249da(0x173)](',\x20')+'.':_0x4249da(0x14e)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.';throw CliErrors[_0x4249da(0x159)]('App\x20\x22'+_0x310c54[_0x4249da(0x151)]+'\x22\x20not\x20found.',_0x329de6);}function a60_0x317a(_0x530d98,_0x257c8a){_0x530d98=_0x530d98-0x145;const _0x2d5679=a60_0x2d56();let _0x317a75=_0x2d5679[_0x530d98];return _0x317a75;}function writeWorkspaceConfig(_0x24a468){const _0x97b199=a60_0x7d87d6,_0xd32150=resolveWriteConfigPath(_0x97b199(0x178)),_0x530bcb=readConfigFile(_0xd32150);_0x24a468['shouldWriteEnv']&&(_0x530bcb[_0x97b199(0x16d)]=_0x24a468[_0x97b199(0x16d)]);if(_0x24a468[_0x97b199(0x151)]){const _0x5bfb90=isRecord(_0x530bcb[_0x97b199(0x170)])?{..._0x530bcb['apps']}:{},_0x4d3178=isRecord(_0x5bfb90[_0x24a468[_0x97b199(0x151)]])?_0x5bfb90[_0x24a468[_0x97b199(0x151)]]:{};_0x5bfb90[_0x24a468[_0x97b199(0x151)]]={..._0x4d3178,'appcode':_0x24a468[_0x97b199(0x153)]},_0x530bcb[_0x97b199(0x170)]=_0x5bfb90,_0x530bcb[_0x97b199(0x156)]=_0x24a468[_0x97b199(0x151)];if(_0x530bcb['app'])delete _0x530bcb[_0x97b199(0x16e)];return writeAndReturn(_0xd32150,_0x530bcb);}_0x530bcb['appcode']=_0x24a468[_0x97b199(0x153)];if(_0x530bcb[_0x97b199(0x16e)])delete _0x530bcb[_0x97b199(0x16e)];return writeAndReturn(_0xd32150,_0x530bcb);}function writeAndReturn(_0x37acc5,_0x362529){return writeConfigFile(_0x37acc5,_0x362529),_0x37acc5;}function resolveWorkspaceEnv(_0x1d2eb5){const _0x28df86=a60_0x7d87d6;if(RUNTIME_ENV_VALUES[_0x28df86(0x16b)](_0x1d2eb5))return _0x1d2eb5;throw CliErrors[_0x28df86(0x159)]('Invalid\x20env\x20\x22'+_0x1d2eb5+_0x28df86(0x145)+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x490dfe,_0x475e67,_0x46929b,_0x2e9f47){const _0x38cffd=a60_0x7d87d6,_0x12f8f7=_0x475e67?_0x475e67+'\x20('+_0x46929b+')':_0x46929b,_0x4ec984=_0x2e9f47?_0x38cffd(0x150)+_0x2e9f47:'';return _0x38cffd(0x174)+_0x490dfe+_0x38cffd(0x148)+_0x12f8f7+_0x4ec984+_0x38cffd(0x14a);}function isRecord(_0x32d2d8){const _0x4b7953=a60_0x7d87d6;return typeof _0x32d2d8===_0x4b7953(0x154)&&_0x32d2d8!==null&&!Array[_0x4b7953(0x160)](_0x32d2d8);}function makeWorkspaceCommand(_0x446584){const _0x4e6e1b=a60_0x7d87d6;return{'service':_0x4e6e1b(0x161),'command':_0x446584,'description':_0x446584==='init'?_0x4e6e1b(0x168):_0x4e6e1b(0x15e),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x5565f4){return executeWorkspaceUse(_0x5565f4,_0x446584);}};}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand(a60_0x7d87d6(0x14d))];
@@ -1 +1 @@
1
- const a61_0x4b1665=a61_0x2c0d;(function(_0x2954b2,_0x513d9d){const _0x54b5a5=a61_0x2c0d,_0x559204=_0x2954b2();while(!![]){try{const _0x3db1d2=-parseInt(_0x54b5a5(0xfc))/0x1+-parseInt(_0x54b5a5(0xf6))/0x2*(parseInt(_0x54b5a5(0xef))/0x3)+parseInt(_0x54b5a5(0xf4))/0x4*(parseInt(_0x54b5a5(0xf0))/0x5)+-parseInt(_0x54b5a5(0x101))/0x6*(parseInt(_0x54b5a5(0xee))/0x7)+-parseInt(_0x54b5a5(0xe9))/0x8+-parseInt(_0x54b5a5(0xe8))/0x9*(parseInt(_0x54b5a5(0xf5))/0xa)+parseInt(_0x54b5a5(0xfa))/0xb;if(_0x3db1d2===_0x513d9d)break;else _0x559204['push'](_0x559204['shift']());}catch(_0x2baa81){_0x559204['push'](_0x559204['shift']());}}}(a61_0x5e53,0x963f4));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x4b1665(0xec)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['format'],'importable':!![]},'pageSize':{'description':a61_0x4b1665(0x100),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a61_0x4b1665(0xf2),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a61_0x4b1665(0xfb),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':'Override\x20SkillHub\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a61_0x4b1665(0xea),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x4b1665(0xf7)],'importable':!![]},'locale':{'description':a61_0x4b1665(0xff),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x4b1665(0xed)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a61_0x4b1665(0xe7)](CONFIG_FIELD_SCHEMAS)[a61_0x4b1665(0xe6)](([,_0x344207])=>_0x344207['cliSettableTopLevel'])['map'](([_0x3c9787])=>_0x3c9787));export const CONFIG_ENUM_VALUES=Object[a61_0x4b1665(0xf1)](Object['entries'](CONFIG_FIELD_SCHEMAS)[a61_0x4b1665(0xe6)](([,_0x14a54f])=>_0x14a54f[a61_0x4b1665(0xfe)])['map'](([_0x2bb439,_0x2f96b9])=>[_0x2bb439,[..._0x2f96b9[a61_0x4b1665(0xfe)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a61_0x4b1665(0xe7)](CONFIG_FIELD_SCHEMAS)[a61_0x4b1665(0xe6)](([,_0x227acc])=>_0x227acc[a61_0x4b1665(0xeb)])[a61_0x4b1665(0xf3)](([_0x5d92ac])=>_0x5d92ac);export function getConfigFieldSchema(_0x586d03){return CONFIG_FIELD_SCHEMAS[_0x586d03];}export function getConfigEnumValues(_0x501c09){const _0x10dfeb=a61_0x4b1665;return getConfigFieldSchema(_0x501c09)?.[_0x10dfeb(0xfe)];}export function getConfigDefaultValue(_0x857ff0){return getConfigFieldSchema(_0x857ff0)?.['defaultValue'];}export function isTopLevelConfigKey(_0x22ca08){return TOP_LEVEL_CONFIG_KEYS['has'](_0x22ca08);}export function isLegacyCompatConfigKey(_0x224cd3){const _0x446095=a61_0x4b1665;return getConfigFieldSchema(_0x224cd3)?.[_0x446095(0xf9)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}function a61_0x5e53(){const _0x573b35=['905747HRzOnQ','Config\x20key.\x20Top-level:\x20','enumValues','Locale','Default\x20page\x20size','7139628ipHvbu','filter','entries','102528RjoliO','5687288pEFrit','Risk\x20level','importable','env','locale','7rjxKwy','3XPGFne','5veuwlx','fromEntries','Override\x20API\x20domain','map','262408IUlkir','140VytWqm','1980476opbaWr','riskLevel','join','legacyCompatOnly','49567452iSKuwp','Override\x20runtime\x20domain'];a61_0x5e53=function(){return _0x573b35;};return a61_0x5e53();}export function formatConfigKeyList(_0x6e492c){const _0x4faeb7=a61_0x4b1665;return[..._0x6e492c][_0x4faeb7(0xf8)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0xdef195=a61_0x4b1665;return _0xdef195(0xfd)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}function a61_0x2c0d(_0x5458f5,_0x2ee415){_0x5458f5=_0x5458f5-0xe6;const _0x5e5339=a61_0x5e53();let _0x2c0d49=_0x5e5339[_0x5458f5];return _0x2c0d49;}export function buildAppProfileListFields(_0x256872){return{'env':_0x256872,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a61_0x11406b=a61_0x4b6f;(function(_0x58b1a2,_0x44c643){const _0x150014=a61_0x4b6f,_0x5e3f5b=_0x58b1a2();while(!![]){try{const _0x17deac=-parseInt(_0x150014(0x1f4))/0x1*(parseInt(_0x150014(0x1fd))/0x2)+parseInt(_0x150014(0x1ff))/0x3+parseInt(_0x150014(0x1fe))/0x4*(-parseInt(_0x150014(0x1f2))/0x5)+-parseInt(_0x150014(0x203))/0x6*(parseInt(_0x150014(0x1ec))/0x7)+-parseInt(_0x150014(0x1e8))/0x8+-parseInt(_0x150014(0x1f1))/0x9*(parseInt(_0x150014(0x1ef))/0xa)+parseInt(_0x150014(0x1f0))/0xb;if(_0x17deac===_0x44c643)break;else _0x5e3f5b['push'](_0x5e3f5b['shift']());}catch(_0x232e4f){_0x5e3f5b['push'](_0x5e3f5b['shift']());}}}(a61_0x59bf,0xadf9d));function a61_0x59bf(){const _0x380e17=['env','1RjsPMt','Locale','fromEntries','join','Override\x20SkillHub\x20domain','riskLevel','Override\x20runtime\x20domain','map','Default\x20output\x20format','2837756qSdBsZ','4gFQtnf','3090939CHMrvl','enumValues','cliSettableTopLevel','Default\x20page\x20size','104184nmAhdp','Target\x20environment','Access\x20key\x20(client-ak\x20auth)','Override\x20API\x20domain','503144hjtali','Risk\x20level','has','Config\x20key.\x20Top-level:\x20','42bdrckt','filter','entries','120SiITHa','27490144jLRBIQ','381753zjBpEq','3609265pGWmCH'];a61_0x59bf=function(){return _0x380e17;};return a61_0x59bf();}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_0x11406b(0x204),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x11406b(0x1f3)],'importable':!![]},'format':{'description':a61_0x11406b(0x1fc),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['format'],'importable':!![]},'pageSize':{'description':a61_0x11406b(0x202),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a61_0x11406b(0x1e7),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a61_0x11406b(0x1fa),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a61_0x11406b(0x1f8),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a61_0x11406b(0x1e6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a61_0x11406b(0x1e9),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x11406b(0x1f9)],'importable':!![]},'locale':{'description':a61_0x11406b(0x1f5),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a61_0x11406b(0x1ee)](CONFIG_FIELD_SCHEMAS)[a61_0x11406b(0x1ed)](([,_0x30fd93])=>_0x30fd93[a61_0x11406b(0x201)])[a61_0x11406b(0x1fb)](([_0x566603])=>_0x566603));export const CONFIG_ENUM_VALUES=Object[a61_0x11406b(0x1f6)](Object['entries'](CONFIG_FIELD_SCHEMAS)[a61_0x11406b(0x1ed)](([,_0x4880ae])=>_0x4880ae[a61_0x11406b(0x200)])[a61_0x11406b(0x1fb)](([_0x211edf,_0x594a92])=>[_0x211edf,[..._0x594a92[a61_0x11406b(0x200)]||[]]]));function a61_0x4b6f(_0x268d51,_0x3e7605){_0x268d51=_0x268d51-0x1e6;const _0x59bf9c=a61_0x59bf();let _0x4b6fc3=_0x59bf9c[_0x268d51];return _0x4b6fc3;}export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a61_0x11406b(0x1ee)](CONFIG_FIELD_SCHEMAS)[a61_0x11406b(0x1ed)](([,_0x15aaca])=>_0x15aaca['importable'])[a61_0x11406b(0x1fb)](([_0x2bbac3])=>_0x2bbac3);export function getConfigFieldSchema(_0x4042a6){return CONFIG_FIELD_SCHEMAS[_0x4042a6];}export function getConfigEnumValues(_0x50b267){const _0x3fa7e1=a61_0x11406b;return getConfigFieldSchema(_0x50b267)?.[_0x3fa7e1(0x200)];}export function getConfigDefaultValue(_0x12d332){return getConfigFieldSchema(_0x12d332)?.['defaultValue'];}export function isTopLevelConfigKey(_0x4de083){const _0x46ca12=a61_0x11406b;return TOP_LEVEL_CONFIG_KEYS[_0x46ca12(0x1ea)](_0x4de083);}export function isLegacyCompatConfigKey(_0x1387e9){return getConfigFieldSchema(_0x1387e9)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x45ec5a){const _0x32bb8d=a61_0x11406b;return[..._0x45ec5a][_0x32bb8d(0x1f7)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0xefcbf9=a61_0x11406b;return _0xefcbf9(0x1eb)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0x24220c){return{'env':_0x24220c,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- function a62_0x2a5f(_0x3adce2,_0x207b86){_0x3adce2=_0x3adce2-0x98;const _0x4071fc=a62_0x4071();let _0x2a5ff4=_0x4071fc[_0x3adce2];return _0x2a5ff4;}const a62_0x3d55ac=a62_0x2a5f;(function(_0x14fe26,_0x1c676e){const _0x837cad=a62_0x2a5f,_0x5bbf34=_0x14fe26();while(!![]){try{const _0x5d332a=parseInt(_0x837cad(0xa6))/0x1+parseInt(_0x837cad(0xa5))/0x2+-parseInt(_0x837cad(0x9e))/0x3*(-parseInt(_0x837cad(0xa1))/0x4)+parseInt(_0x837cad(0x99))/0x5*(-parseInt(_0x837cad(0xa4))/0x6)+-parseInt(_0x837cad(0x9f))/0x7*(-parseInt(_0x837cad(0xa3))/0x8)+parseInt(_0x837cad(0x9d))/0x9*(-parseInt(_0x837cad(0x98))/0xa)+parseInt(_0x837cad(0xa0))/0xb*(-parseInt(_0x837cad(0xa2))/0xc);if(_0x5d332a===_0x1c676e)break;else _0x5bbf34['push'](_0x5bbf34['shift']());}catch(_0x4ebc2c){_0x5bbf34['push'](_0x5bbf34['shift']());}}}(a62_0x4071,0xe0c67));export const APP_PUBLISH_STATUS={'Published':a62_0x3d55ac(0x9b),'Unpublished':a62_0x3d55ac(0x9c)};function a62_0x4071(){const _0x548c60=['2636864SialDE','1340015Wswusq','30HFWAVz','7491815JXSgyE','Published','PUBLISHED','UNPUBLISH','3199959oAyiJx','4184685KxuUHb','1253wYytjH','1661IxnJNO','4xGHsaU','77772EcZOPV','18368sjLycA','6ZXvoYM'];a62_0x4071=function(){return _0x548c60;};return a62_0x4071();}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a62_0x3d55ac(0x9a)];
1
+ function a62_0x5845(){const _0x271dee=['4156559RwOHaq','2932059EXmMjy','2057420FhnCDT','UNPUBLISH','696868ZKzXmL','208122xLkdPn','9KdNHtO','7710210eXQRVj','PUBLISHED','7XtfDmM','4Rtmyjq','9115240ceERFS','2SMpfck'];a62_0x5845=function(){return _0x271dee;};return a62_0x5845();}const a62_0xd02089=a62_0x2343;function a62_0x2343(_0xd7bf3f,_0x3baa81){_0xd7bf3f=_0xd7bf3f-0x122;const _0x58450f=a62_0x5845();let _0x234364=_0x58450f[_0xd7bf3f];return _0x234364;}(function(_0x1fc445,_0x433eff){const _0x25db3f=a62_0x2343,_0x41969a=_0x1fc445();while(!![]){try{const _0x145ade=parseInt(_0x25db3f(0x127))/0x1+parseInt(_0x25db3f(0x122))/0x2*(parseInt(_0x25db3f(0x124))/0x3)+-parseInt(_0x25db3f(0x12d))/0x4*(-parseInt(_0x25db3f(0x125))/0x5)+-parseInt(_0x25db3f(0x128))/0x6*(-parseInt(_0x25db3f(0x12c))/0x7)+-parseInt(_0x25db3f(0x12e))/0x8+parseInt(_0x25db3f(0x129))/0x9*(-parseInt(_0x25db3f(0x12a))/0xa)+parseInt(_0x25db3f(0x123))/0xb;if(_0x145ade===_0x433eff)break;else _0x41969a['push'](_0x41969a['shift']());}catch(_0x9f91bb){_0x41969a['push'](_0x41969a['shift']());}}}(a62_0x5845,0x8f83b));export const APP_PUBLISH_STATUS={'Published':a62_0xd02089(0x12b),'Unpublished':a62_0xd02089(0x126)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];
@@ -1 +1 @@
1
- const a63_0x129f16=a63_0x30a3;(function(_0x89fefe,_0xca8653){const _0x419fa1=a63_0x30a3,_0x40eac7=_0x89fefe();while(!![]){try{const _0x15f07a=parseInt(_0x419fa1(0xbb))/0x1*(-parseInt(_0x419fa1(0xb7))/0x2)+-parseInt(_0x419fa1(0xb8))/0x3*(-parseInt(_0x419fa1(0xb3))/0x4)+parseInt(_0x419fa1(0xbc))/0x5*(parseInt(_0x419fa1(0xb4))/0x6)+parseInt(_0x419fa1(0xb6))/0x7*(-parseInt(_0x419fa1(0xb2))/0x8)+parseInt(_0x419fa1(0xb1))/0x9*(parseInt(_0x419fa1(0xb9))/0xa)+parseInt(_0x419fa1(0xb5))/0xb+parseInt(_0x419fa1(0xba))/0xc;if(_0x15f07a===_0xca8653)break;else _0x40eac7['push'](_0x40eac7['shift']());}catch(_0x5d6621){_0x40eac7['push'](_0x40eac7['shift']());}}}(a63_0x5cd2,0xad60c));function a63_0x5cd2(){const _0x44d3f7=['5kisAFg','client-ak','135JzNBPs','14832FwxZPI','84tPcdnE','4353918ogqvIf','3771251XyMakm','4487hZczLK','16ysefjS','6285pfqXUI','290950VqrEZP','6398784hXLrFZ','22947XaEdnq'];a63_0x5cd2=function(){return _0x44d3f7;};return a63_0x5cd2();}function a63_0x30a3(_0x70c48b,_0x5227ed){_0x70c48b=_0x70c48b-0xb1;const _0x5cd20d=a63_0x5cd2();let _0x30a364=_0x5cd20d[_0x70c48b];return _0x30a364;}export const AUTH_MODE={'ClientAk':a63_0x129f16(0xbd)};export function isAuthMode(_0x1591aa){return _0x1591aa===AUTH_MODE['ClientAk'];}
1
+ const a63_0x4f6464=a63_0x3dc3;function a63_0x1694(){const _0x587ef9=['client-ak','541710NJPYJi','15024iGzqNF','6yEzZdZ','5266568gLHNNx','ClientAk','2501115ujkwUC','228868ONAAAV','147549EbmyzD','84FdyQll','4504059pnPHzt'];a63_0x1694=function(){return _0x587ef9;};return a63_0x1694();}(function(_0x52d68d,_0x11820e){const _0x2b372a=a63_0x3dc3,_0x4225ae=_0x52d68d();while(!![]){try{const _0x46b654=parseInt(_0x2b372a(0x106))/0x1+parseInt(_0x2b372a(0x108))/0x2*(parseInt(_0x2b372a(0x10d))/0x3)+parseInt(_0x2b372a(0x10c))/0x4+-parseInt(_0x2b372a(0x10b))/0x5+parseInt(_0x2b372a(0x107))/0x6*(parseInt(_0x2b372a(0x10e))/0x7)+parseInt(_0x2b372a(0x109))/0x8+-parseInt(_0x2b372a(0x10f))/0x9;if(_0x46b654===_0x11820e)break;else _0x4225ae['push'](_0x4225ae['shift']());}catch(_0x177ebd){_0x4225ae['push'](_0x4225ae['shift']());}}}(a63_0x1694,0x69ffb));export const AUTH_MODE={'ClientAk':a63_0x4f6464(0x105)};function a63_0x3dc3(_0x46af82,_0x4838ac){_0x46af82=_0x46af82-0x105;const _0x169439=a63_0x1694();let _0x3dc384=_0x169439[_0x46af82];return _0x3dc384;}export function isAuthMode(_0x3dd2b2){const _0x46c77a=a63_0x4f6464;return _0x3dd2b2===AUTH_MODE[_0x46c77a(0x10a)];}
@@ -1 +1 @@
1
- const a64_0x5a5c7a=a64_0x1319;(function(_0x2479b0,_0x57f73b){const _0xdf24ec=a64_0x1319,_0xa19e0f=_0x2479b0();while(!![]){try{const _0x225b30=parseInt(_0xdf24ec(0x16f))/0x1*(parseInt(_0xdf24ec(0x17e))/0x2)+-parseInt(_0xdf24ec(0x169))/0x3+parseInt(_0xdf24ec(0x17a))/0x4+-parseInt(_0xdf24ec(0x168))/0x5+parseInt(_0xdf24ec(0x16b))/0x6+-parseInt(_0xdf24ec(0x175))/0x7*(-parseInt(_0xdf24ec(0x174))/0x8)+-parseInt(_0xdf24ec(0x18b))/0x9;if(_0x225b30===_0x57f73b)break;else _0xa19e0f['push'](_0xa19e0f['shift']());}catch(_0x1a4f4a){_0xa19e0f['push'](_0xa19e0f['shift']());}}}(a64_0x47be,0x2af9f));import{PRODUCT_CONFIG}from'../constant/product.js';function a64_0x47be(){const _0x363847=['Verbose\x20output','1656975yUICzq','148590fwvPwG','name','824298uLDAJA','clear','global','yes','1lMnwDN','type','JSON\x20params\x20for\x20execute\x20commands','Name\x20filter','env','2529944ADKmdb','7xUszRK','<expr>','Clear\x20output','verbose','json\x20|\x20pretty\x20|\x20compress','716104OmYFCL','Skip\x20confirmation\x20for\x20high-risk\x20writes','Preview\x20operation\x20without\x20executing','appcode','315206UOxKYN','sqlcode','help','Output\x20format','nonInteractive','meowKey','dry-run','Record\x20ID','non-interactive','cliBinName','fromEntries','Show\x20help','format','2099691ODAtuc','map','boolean','<code>','Use\x20global\x20config\x20scope','string','production\x20|\x20development\x20|\x20daily','dryRun','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','app','params','SQL\x20query\x20code','cliDisplayName','<name>','Override\x20appcode'];a64_0x47be=function(){return _0x363847;};return a64_0x47be();}function a64_0x1319(_0x23c84d,_0x2864c8){_0x23c84d=_0x23c84d-0x15a;const _0x47be6c=a64_0x47be();let _0x13192f=_0x47be6c[_0x23c84d];return _0x13192f;}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a64_0x5a5c7a(0x187)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a64_0x5a5c7a(0x164)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a64_0x5a5c7a(0x17d),'meowKey':'appcode','type':a64_0x5a5c7a(0x15d),'description':a64_0x5a5c7a(0x166),'hint':a64_0x5a5c7a(0x15b)},{'name':a64_0x5a5c7a(0x161),'meowKey':a64_0x5a5c7a(0x161),'type':a64_0x5a5c7a(0x15d),'description':'Select\x20app\x20profile\x20by\x20name','hint':a64_0x5a5c7a(0x165)},{'name':'env','meowKey':a64_0x5a5c7a(0x173),'type':a64_0x5a5c7a(0x15d),'description':'Environment','hint':a64_0x5a5c7a(0x15e)},{'name':a64_0x5a5c7a(0x18a),'meowKey':a64_0x5a5c7a(0x18a),'type':a64_0x5a5c7a(0x15d),'description':a64_0x5a5c7a(0x181),'hint':a64_0x5a5c7a(0x179)},{'name':'jq','meowKey':'jq','type':a64_0x5a5c7a(0x15d),'description':a64_0x5a5c7a(0x160),'hint':a64_0x5a5c7a(0x176)},{'name':a64_0x5a5c7a(0x184),'meowKey':a64_0x5a5c7a(0x15f),'type':a64_0x5a5c7a(0x15a),'description':a64_0x5a5c7a(0x17c)},{'name':'yes','meowKey':a64_0x5a5c7a(0x16e),'type':a64_0x5a5c7a(0x15a),'description':a64_0x5a5c7a(0x17b)},{'name':a64_0x5a5c7a(0x186),'meowKey':a64_0x5a5c7a(0x182),'type':a64_0x5a5c7a(0x15a),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a64_0x5a5c7a(0x16d),'meowKey':'global','type':'boolean','description':a64_0x5a5c7a(0x15c)},{'name':'ci','meowKey':'ci','type':a64_0x5a5c7a(0x15a),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a64_0x5a5c7a(0x180),'meowKey':a64_0x5a5c7a(0x180),'type':'boolean','description':a64_0x5a5c7a(0x189)},{'name':'id','meowKey':'id','type':a64_0x5a5c7a(0x15d),'description':a64_0x5a5c7a(0x185),'hidden':!![]},{'name':a64_0x5a5c7a(0x16a),'meowKey':a64_0x5a5c7a(0x16a),'type':a64_0x5a5c7a(0x15d),'description':a64_0x5a5c7a(0x172),'hidden':!![]},{'name':a64_0x5a5c7a(0x17f),'meowKey':'sqlcode','type':a64_0x5a5c7a(0x15d),'description':a64_0x5a5c7a(0x163),'hidden':!![]},{'name':a64_0x5a5c7a(0x162),'meowKey':a64_0x5a5c7a(0x162),'type':a64_0x5a5c7a(0x15d),'description':a64_0x5a5c7a(0x171),'hidden':!![]},{'name':'verbose','meowKey':a64_0x5a5c7a(0x178),'type':'boolean','description':a64_0x5a5c7a(0x167),'hidden':!![]},{'name':a64_0x5a5c7a(0x16c),'meowKey':a64_0x5a5c7a(0x16c),'type':a64_0x5a5c7a(0x15a),'description':a64_0x5a5c7a(0x177),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a64_0x5a5c7a(0x161),a64_0x5a5c7a(0x173),a64_0x5a5c7a(0x18a),'jq',a64_0x5a5c7a(0x184),'yes','non-interactive','ci']);export function buildMeowFlags(){const _0xc422=a64_0x5a5c7a;return Object[_0xc422(0x188)](GLOBAL_FLAGS[_0xc422(0x18c)](_0x32eed3=>[_0x32eed3[_0xc422(0x183)],{'type':_0x32eed3[_0xc422(0x170)]}]));}
1
+ const a64_0x3033a2=a64_0x49ef;(function(_0x9e4b91,_0x523949){const _0x3dd3f7=a64_0x49ef,_0x39d612=_0x9e4b91();while(!![]){try{const _0x11fda3=-parseInt(_0x3dd3f7(0xa7))/0x1+parseInt(_0x3dd3f7(0xb9))/0x2*(parseInt(_0x3dd3f7(0x9d))/0x3)+-parseInt(_0x3dd3f7(0xb1))/0x4*(-parseInt(_0x3dd3f7(0xad))/0x5)+parseInt(_0x3dd3f7(0xa2))/0x6*(-parseInt(_0x3dd3f7(0xbc))/0x7)+parseInt(_0x3dd3f7(0x9c))/0x8+-parseInt(_0x3dd3f7(0xb3))/0x9*(parseInt(_0x3dd3f7(0xb2))/0xa)+-parseInt(_0x3dd3f7(0x92))/0xb*(-parseInt(_0x3dd3f7(0xb6))/0xc);if(_0x11fda3===_0x523949)break;else _0x39d612['push'](_0x39d612['shift']());}catch(_0x3e806f){_0x39d612['push'](_0x39d612['shift']());}}}(a64_0x2d1a,0xb8065));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';function a64_0x2d1a(){const _0x28ad87=['verbose','1030lsimvP','format','Alias\x20for\x20--non-interactive','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','4060gUZtRo','4257460nueKNr','18pKQwMQ','production\x20|\x20development\x20|\x20daily','json\x20|\x20pretty\x20|\x20compress','25668HBjOLo','params','Show\x20help','2QEUrYm','boolean','help','3356507PtCGdA','appcode','Force\x20non-interactive\x20mode\x20(CI)','sqlcode','dryRun','type','SQL\x20query\x20code','string','7425TDODTR','non-interactive','clear','env','Override\x20appcode','Output\x20format','<code>','meowKey','<name>','Preview\x20operation\x20without\x20executing','10437656qCKEGu','1741551VgHsok','global','Skip\x20confirmation\x20for\x20high-risk\x20writes','dry-run','name','6ZxPIMd','Record\x20ID','cliDisplayName','<expr>','yes','1453381DdYCNn','app','nonInteractive','Name\x20filter','cliBinName'];a64_0x2d1a=function(){return _0x28ad87;};return a64_0x2d1a();}export const CLI_BIN_NAME=PRODUCT_CONFIG[a64_0x3033a2(0xab)];function a64_0x49ef(_0x1bcb56,_0x5fdaa4){_0x1bcb56=_0x1bcb56-0x91;const _0x2d1a57=a64_0x2d1a();let _0x49ef9d=_0x2d1a57[_0x1bcb56];return _0x49ef9d;}export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a64_0x3033a2(0xa4)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a64_0x3033a2(0xbd),'meowKey':'appcode','type':a64_0x3033a2(0x91),'description':a64_0x3033a2(0x96),'hint':a64_0x3033a2(0x98)},{'name':a64_0x3033a2(0xa8),'meowKey':'app','type':a64_0x3033a2(0x91),'description':'Select\x20app\x20profile\x20by\x20name','hint':a64_0x3033a2(0x9a)},{'name':a64_0x3033a2(0x95),'meowKey':a64_0x3033a2(0x95),'type':a64_0x3033a2(0x91),'description':'Environment','hint':a64_0x3033a2(0xb4)},{'name':'format','meowKey':a64_0x3033a2(0xae),'type':a64_0x3033a2(0x91),'description':a64_0x3033a2(0x97),'hint':a64_0x3033a2(0xb5)},{'name':'jq','meowKey':'jq','type':a64_0x3033a2(0x91),'description':a64_0x3033a2(0xb0),'hint':a64_0x3033a2(0xa5)},{'name':a64_0x3033a2(0xa0),'meowKey':a64_0x3033a2(0xc0),'type':'boolean','description':a64_0x3033a2(0x9b)},{'name':'yes','meowKey':'yes','type':a64_0x3033a2(0xba),'description':a64_0x3033a2(0x9f)},{'name':a64_0x3033a2(0x93),'meowKey':a64_0x3033a2(0xa9),'type':a64_0x3033a2(0xba),'description':a64_0x3033a2(0xbe)},{'name':a64_0x3033a2(0x9e),'meowKey':a64_0x3033a2(0x9e),'type':a64_0x3033a2(0xba),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a64_0x3033a2(0xba),'description':a64_0x3033a2(0xaf),'hidden':!![]},{'name':a64_0x3033a2(0xbb),'meowKey':'help','type':a64_0x3033a2(0xba),'description':a64_0x3033a2(0xb8)},{'name':'id','meowKey':'id','type':a64_0x3033a2(0x91),'description':a64_0x3033a2(0xa3),'hidden':!![]},{'name':a64_0x3033a2(0xa1),'meowKey':a64_0x3033a2(0xa1),'type':a64_0x3033a2(0x91),'description':a64_0x3033a2(0xaa),'hidden':!![]},{'name':a64_0x3033a2(0xbf),'meowKey':'sqlcode','type':a64_0x3033a2(0x91),'description':a64_0x3033a2(0xc2),'hidden':!![]},{'name':'params','meowKey':a64_0x3033a2(0xb7),'type':a64_0x3033a2(0x91),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a64_0x3033a2(0xac),'meowKey':a64_0x3033a2(0xac),'type':a64_0x3033a2(0xba),'description':'Verbose\x20output','hidden':!![]},{'name':a64_0x3033a2(0x94),'meowKey':a64_0x3033a2(0x94),'type':a64_0x3033a2(0xba),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a64_0x3033a2(0xa8),a64_0x3033a2(0x95),a64_0x3033a2(0xae),'jq',a64_0x3033a2(0xa0),a64_0x3033a2(0xa6),a64_0x3033a2(0x93),'ci']);export function buildMeowFlags(){const _0xb6f0c4=a64_0x3033a2;return Object['fromEntries'](GLOBAL_FLAGS['map'](_0x21d288=>[_0x21d288[_0xb6f0c4(0x99)],{'type':_0x21d288[_0xb6f0c4(0xc1)]}]));}
@@ -1 +1 @@
1
- const a65_0x377c98=a65_0x4697;(function(_0x1d8b30,_0x43c325){const _0x1c76c8=a65_0x4697,_0x1a1b20=_0x1d8b30();while(!![]){try{const _0x148a5c=-parseInt(_0x1c76c8(0x1f5))/0x1*(-parseInt(_0x1c76c8(0x1f9))/0x2)+parseInt(_0x1c76c8(0x1f8))/0x3+parseInt(_0x1c76c8(0x1f1))/0x4+-parseInt(_0x1c76c8(0x1f6))/0x5+parseInt(_0x1c76c8(0x1f3))/0x6*(parseInt(_0x1c76c8(0x1ee))/0x7)+-parseInt(_0x1c76c8(0x1f4))/0x8*(parseInt(_0x1c76c8(0x1f7))/0x9)+parseInt(_0x1c76c8(0x1f0))/0xa;if(_0x148a5c===_0x43c325)break;else _0x1a1b20['push'](_0x1a1b20['shift']());}catch(_0x2e3704){_0x1a1b20['push'](_0x1a1b20['shift']());}}}(a65_0x1a78,0x29c60));function a65_0x4697(_0x307823,_0x141bbc){_0x307823=_0x307823-0x1ee;const _0x1a782c=a65_0x1a78();let _0x469765=_0x1a782c[_0x307823];return _0x469765;}function a65_0x1a78(){const _0x52ac0d=['70YEyWqw','en-US','1032520KzCQxk','822352pGMvXp','compress','115476nqeGYy','80PEpZIu','1xOLKPW','1434150OzWVzX','242937lJuWwO','365877xqYXjP','209210FmHyBO','write','main'];a65_0x1a78=function(){return _0x52ac0d;};return a65_0x1a78();}export const DEFAULT_APP_PROFILE_NAME=a65_0x377c98(0x1fb);export const DEFAULT_CONFIG_VALUES={'env':'production','format':a65_0x377c98(0x1f2),'locale':a65_0x377c98(0x1ef),'riskLevel':a65_0x377c98(0x1fa)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
1
+ const a65_0x1fbf99=a65_0x82c5;(function(_0x3c63f2,_0x462d09){const _0x318310=a65_0x82c5,_0x2945d4=_0x3c63f2();while(!![]){try{const _0x3f76ab=-parseInt(_0x318310(0x1ce))/0x1+parseInt(_0x318310(0x1cb))/0x2*(parseInt(_0x318310(0x1c4))/0x3)+-parseInt(_0x318310(0x1cc))/0x4+parseInt(_0x318310(0x1c1))/0x5*(-parseInt(_0x318310(0x1c9))/0x6)+parseInt(_0x318310(0x1ca))/0x7+-parseInt(_0x318310(0x1cd))/0x8*(-parseInt(_0x318310(0x1c2))/0x9)+-parseInt(_0x318310(0x1c0))/0xa*(-parseInt(_0x318310(0x1cf))/0xb);if(_0x3f76ab===_0x462d09)break;else _0x2945d4['push'](_0x2945d4['shift']());}catch(_0x22f193){_0x2945d4['push'](_0x2945d4['shift']());}}}(a65_0x57c9,0x85486));export const DEFAULT_APP_PROFILE_NAME=a65_0x1fbf99(0x1c8);function a65_0x57c9(){const _0x5f0306=['87684SPRawc','2516017Rhexeo','383188qyhBvk','1465916VhEZKq','446504rpvZop','655238yrOuFu','11uyQFZE','1400730oHCSQY','145ahtsez','117EGkhRc','write','12YcArfZ','compress','en-US','production','main'];a65_0x57c9=function(){return _0x5f0306;};return a65_0x57c9();}function a65_0x82c5(_0x5c3a67,_0x574f86){_0x5c3a67=_0x5c3a67-0x1c0;const _0x57c9f8=a65_0x57c9();let _0x82c555=_0x57c9f8[_0x5c3a67];return _0x82c555;}export const DEFAULT_CONFIG_VALUES={'env':a65_0x1fbf99(0x1c7),'format':a65_0x1fbf99(0x1c5),'locale':a65_0x1fbf99(0x1c6),'riskLevel':a65_0x1fbf99(0x1c3)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a65_0x1fbf99(0x1c5);
@@ -1 +1 @@
1
- function a66_0xce10(){const _0x458d66=['923560QBxGge','78oVEEVE','skillSource','11JCHZvl','2074428Nesefs','18KoGUkC','npmRegistryBaseUrl','13HxeiDx','npmPackageName','48964ZkAJRN','162113cCwUEY','1155XQJejY','157404mohoTm','500750BgEtTS','3620RIiLwC'];a66_0xce10=function(){return _0x458d66;};return a66_0xce10();}const a66_0x2e0027=a66_0x2ac4;(function(_0xf49d54,_0x44e810){const _0x570b14=a66_0x2ac4,_0x54277f=_0xf49d54();while(!![]){try{const _0x3e3714=-parseInt(_0x570b14(0x1db))/0x1*(-parseInt(_0x570b14(0x1dd))/0x2)+parseInt(_0x570b14(0x1e0))/0x3+-parseInt(_0x570b14(0x1e2))/0x4*(-parseInt(_0x570b14(0x1df))/0x5)+-parseInt(_0x570b14(0x1e4))/0x6*(parseInt(_0x570b14(0x1de))/0x7)+parseInt(_0x570b14(0x1e3))/0x8*(-parseInt(_0x570b14(0x1d9))/0x9)+-parseInt(_0x570b14(0x1e1))/0xa+-parseInt(_0x570b14(0x1d7))/0xb*(-parseInt(_0x570b14(0x1d8))/0xc);if(_0x3e3714===_0x44e810)break;else _0x54277f['push'](_0x54277f['shift']());}catch(_0x428719){_0x54277f['push'](_0x54277f['shift']());}}}(a66_0xce10,0x29a82));import{PRODUCT_CONFIG}from'../constant/product.js';function a66_0x2ac4(_0x5172c9,_0x16f9a6){_0x5172c9=_0x5172c9-0x1d7;const _0xce10d=a66_0xce10();let _0x2ac466=_0xce10d[_0x5172c9];return _0x2ac466;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a66_0x2e0027(0x1dc)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a66_0x2e0027(0x1e5)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a66_0x2e0027(0x1da)];
1
+ const a66_0x7ae631=a66_0x5e63;(function(_0x61f1a8,_0x307a16){const _0x59652c=a66_0x5e63,_0x8ce5e4=_0x61f1a8();while(!![]){try{const _0x5d7646=parseInt(_0x59652c(0x79))/0x1*(parseInt(_0x59652c(0x7b))/0x2)+-parseInt(_0x59652c(0x7a))/0x3+parseInt(_0x59652c(0x73))/0x4+parseInt(_0x59652c(0x7c))/0x5+parseInt(_0x59652c(0x76))/0x6+parseInt(_0x59652c(0x72))/0x7+-parseInt(_0x59652c(0x75))/0x8;if(_0x5d7646===_0x307a16)break;else _0x8ce5e4['push'](_0x8ce5e4['shift']());}catch(_0x29e3a0){_0x8ce5e4['push'](_0x8ce5e4['shift']());}}}(a66_0x47c8,0x79dcf));import{PRODUCT_CONFIG}from'../constant/product.js';function a66_0x47c8(){const _0x3673ab=['45788gLuXXn','4455610yUhbTZ','4006639KpZHBz','2272612LAdEeB','npmPackageName','8630480TVZhEt','1160058CzVysv','npmRegistryBaseUrl','skillSource','11pUnUhp','2696604xRlvxc'];a66_0x47c8=function(){return _0x3673ab;};return a66_0x47c8();}function a66_0x5e63(_0x4b0ed5,_0x2f4082){_0x4b0ed5=_0x4b0ed5-0x72;const _0x47c87c=a66_0x47c8();let _0x5e6316=_0x47c87c[_0x4b0ed5];return _0x5e6316;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a66_0x7ae631(0x74)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a66_0x7ae631(0x78)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a66_0x7ae631(0x77)];
@@ -1 +1 @@
1
- const a67_0x1c9055=a67_0x31ca;(function(_0x1de6a1,_0x5870f1){const _0x24e089=a67_0x31ca,_0x55dcc4=_0x1de6a1();while(!![]){try{const _0x3c4266=-parseInt(_0x24e089(0x8f))/0x1+parseInt(_0x24e089(0x95))/0x2+-parseInt(_0x24e089(0x87))/0x3+-parseInt(_0x24e089(0x96))/0x4*(-parseInt(_0x24e089(0x8d))/0x5)+-parseInt(_0x24e089(0x8c))/0x6*(parseInt(_0x24e089(0x93))/0x7)+parseInt(_0x24e089(0x90))/0x8+-parseInt(_0x24e089(0x85))/0x9;if(_0x3c4266===_0x5870f1)break;else _0x55dcc4['push'](_0x55dcc4['shift']());}catch(_0x4e7f5b){_0x55dcc4['push'](_0x55dcc4['shift']());}}}(a67_0x2081,0xd085b));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a67_0x2081(){const _0x339ace=['939660scOilZ','12925128IMMdpZ','runtimeDomain','apiDomain','266RRpzdH','user','1164238SVdnpz','12072hTmJer','skillHubDomain','nonProduction','13358169myKQPf','domains','425628lXpWqI','runtime','api','userDomain','skillhub','50538RaAFLi','2555hADDWV','production'];a67_0x2081=function(){return _0x339ace;};return a67_0x2081();}function a67_0x31ca(_0x1a2865,_0x20234c){_0x1a2865=_0x1a2865-0x83;const _0x208155=a67_0x2081();let _0x31cab7=_0x208155[_0x1a2865];return _0x31cab7;}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x17edc3){const _0x252ecc=a67_0x31ca;customApiDomain=_0x17edc3?.[_0x252ecc(0x92)],customUserDomain=_0x17edc3?.[_0x252ecc(0x8a)],customRuntimeDomain=_0x17edc3?.[_0x252ecc(0x91)],customSkillHubDomain=_0x17edc3?.[_0x252ecc(0x83)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x1c9055(0x86)][a67_0x1c9055(0x8e)][a67_0x1c9055(0x94)]:PRODUCT_CONFIG[a67_0x1c9055(0x86)][a67_0x1c9055(0x84)][a67_0x1c9055(0x94)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x1c9055(0x86)][a67_0x1c9055(0x8e)][a67_0x1c9055(0x89)]:PRODUCT_CONFIG[a67_0x1c9055(0x86)]['nonProduction']['api']);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x1c9055(0x86)][a67_0x1c9055(0x8e)][a67_0x1c9055(0x88)]:PRODUCT_CONFIG[a67_0x1c9055(0x86)][a67_0x1c9055(0x84)][a67_0x1c9055(0x88)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x1c9055(0x86)][a67_0x1c9055(0x8e)][a67_0x1c9055(0x8b)]:PRODUCT_CONFIG['domains'][a67_0x1c9055(0x84)]['skillhub']);
1
+ const a67_0x190800=a67_0x6b4c;function a67_0x4dd9(){const _0x32bc93=['nonProduction','userDomain','production','apiDomain','682788QEGxcr','domains','428163BCizfZ','8yVISHj','872522DXanRc','963095mecigk','runtimeDomain','skillhub','1262964yAMbOV','runtime','user','1486675SFVIcT','6786045AhVtAm','4acUsjy','skillHubDomain'];a67_0x4dd9=function(){return _0x32bc93;};return a67_0x4dd9();}(function(_0x39ba51,_0x3e94dd){const _0x2c62be=a67_0x6b4c,_0x104c6f=_0x39ba51();while(!![]){try{const _0x2d93cb=-parseInt(_0x2c62be(0x13d))/0x1+parseInt(_0x2c62be(0x13f))/0x2+parseInt(_0x2c62be(0x130))/0x3+-parseInt(_0x2c62be(0x135))/0x4*(-parseInt(_0x2c62be(0x133))/0x5)+parseInt(_0x2c62be(0x13b))/0x6+parseInt(_0x2c62be(0x12d))/0x7*(parseInt(_0x2c62be(0x13e))/0x8)+-parseInt(_0x2c62be(0x134))/0x9;if(_0x2d93cb===_0x3e94dd)break;else _0x104c6f['push'](_0x104c6f['shift']());}catch(_0x4d1a2f){_0x104c6f['push'](_0x104c6f['shift']());}}}(a67_0x4dd9,0x36a37));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;function a67_0x6b4c(_0x189d33,_0x3644f2){_0x189d33=_0x189d33-0x12d;const _0x4dd959=a67_0x4dd9();let _0x6b4c48=_0x4dd959[_0x189d33];return _0x6b4c48;}export function initDomains(_0xaf9bc4){const _0x356b37=a67_0x6b4c;customApiDomain=_0xaf9bc4?.[_0x356b37(0x13a)],customUserDomain=_0xaf9bc4?.[_0x356b37(0x138)],customRuntimeDomain=_0xaf9bc4?.[_0x356b37(0x12e)],customSkillHubDomain=_0xaf9bc4?.[_0x356b37(0x136)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x190800(0x13c)][a67_0x190800(0x139)][a67_0x190800(0x132)]:PRODUCT_CONFIG['domains'][a67_0x190800(0x137)][a67_0x190800(0x132)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x190800(0x13c)][a67_0x190800(0x139)]['api']:PRODUCT_CONFIG[a67_0x190800(0x13c)]['nonProduction']['api']);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x190800(0x13c)][a67_0x190800(0x139)][a67_0x190800(0x131)]:PRODUCT_CONFIG[a67_0x190800(0x13c)]['nonProduction']['runtime']);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x190800(0x13c)][a67_0x190800(0x139)][a67_0x190800(0x12f)]:PRODUCT_CONFIG[a67_0x190800(0x13c)][a67_0x190800(0x137)][a67_0x190800(0x12f)]);
@@ -1 +1 @@
1
- const a68_0x273009=a68_0x11c8;(function(_0x489d43,_0x1f37dd){const _0x2aa83c=a68_0x11c8,_0x426335=_0x489d43();while(!![]){try{const _0x46744e=-parseInt(_0x2aa83c(0x10f))/0x1*(-parseInt(_0x2aa83c(0x107))/0x2)+-parseInt(_0x2aa83c(0x10a))/0x3+-parseInt(_0x2aa83c(0x10e))/0x4+parseInt(_0x2aa83c(0x109))/0x5+-parseInt(_0x2aa83c(0x110))/0x6*(parseInt(_0x2aa83c(0x10c))/0x7)+-parseInt(_0x2aa83c(0x106))/0x8*(-parseInt(_0x2aa83c(0x10d))/0x9)+parseInt(_0x2aa83c(0x111))/0xa;if(_0x46744e===_0x1f37dd)break;else _0x426335['push'](_0x426335['shift']());}catch(_0x2e0837){_0x426335['push'](_0x426335['shift']());}}}(a68_0x2249,0x97ae1));import{productEnv}from'../constant/product.js';function a68_0x2249(){const _0x224369=['daily','8SpPmuh','569386giCPDx','production','4158700izErtu','777345ryOiLE','development','2821KmHETV','325746rOTjfU','4929448RynQEF','1WMJGru','7122psjMkw','14384920mfjQjk','ENV'];a68_0x2249=function(){return _0x224369;};return a68_0x2249();}export const RUNTIME_ENV_VALUES=[a68_0x273009(0x108),a68_0x273009(0x10b),'daily'];export function normalizeEnv(_0x3adadb){const _0x3ba4b0=a68_0x273009;return _0x3adadb==='online'?_0x3ba4b0(0x108):_0x3adadb;}export function isProduction(_0x27ca79){return normalizeEnv(_0x27ca79)==='production';}export function isDaily(_0x5974d8){const _0x4b5980=a68_0x273009;return normalizeEnv(_0x5974d8)===_0x4b5980(0x113);}function a68_0x11c8(_0x65eaed,_0x294407){_0x65eaed=_0x65eaed-0x106;const _0x224921=a68_0x2249();let _0x11c896=_0x224921[_0x65eaed];return _0x11c896;}export function isDev(_0x21e4cb){const _0x72b3e=a68_0x273009,_0x17d52d=normalizeEnv(_0x21e4cb);return _0x17d52d===_0x72b3e(0x10b)||_0x17d52d==='dev';}let env=normalizeEnv(productEnv(a68_0x273009(0x112))||a68_0x273009(0x108));export function getEnv(){return env;}export function initEnv(_0x1a26a5){env=normalizeEnv(_0x1a26a5);}
1
+ const a68_0x4ec313=a68_0x252e;(function(_0x5f502b,_0x50f5b0){const _0xbcfddd=a68_0x252e,_0x5cd627=_0x5f502b();while(!![]){try{const _0x44bad6=-parseInt(_0xbcfddd(0x1cc))/0x1*(parseInt(_0xbcfddd(0x1c2))/0x2)+-parseInt(_0xbcfddd(0x1c5))/0x3*(-parseInt(_0xbcfddd(0x1c6))/0x4)+parseInt(_0xbcfddd(0x1c7))/0x5+parseInt(_0xbcfddd(0x1ce))/0x6+parseInt(_0xbcfddd(0x1ca))/0x7*(-parseInt(_0xbcfddd(0x1c9))/0x8)+parseInt(_0xbcfddd(0x1cb))/0x9+-parseInt(_0xbcfddd(0x1cd))/0xa;if(_0x44bad6===_0x50f5b0)break;else _0x5cd627['push'](_0x5cd627['shift']());}catch(_0x2dc81d){_0x5cd627['push'](_0x5cd627['shift']());}}}(a68_0xe1db,0xa584a));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a68_0x4ec313(0x1c8),a68_0x4ec313(0x1d0),a68_0x4ec313(0x1c4)];export function normalizeEnv(_0x102b0f){return _0x102b0f==='online'?'production':_0x102b0f;}export function isProduction(_0x3e78ec){const _0x13ea5a=a68_0x4ec313;return normalizeEnv(_0x3e78ec)===_0x13ea5a(0x1c8);}export function isDaily(_0x1d1b8e){return normalizeEnv(_0x1d1b8e)==='daily';}export function isDev(_0x580be8){const _0x279dd3=a68_0x4ec313,_0x4f086f=normalizeEnv(_0x580be8);return _0x4f086f==='development'||_0x4f086f===_0x279dd3(0x1cf);}function a68_0x252e(_0x209f43,_0x50e1f1){_0x209f43=_0x209f43-0x1c2;const _0xe1dbe7=a68_0xe1db();let _0x252e84=_0xe1dbe7[_0x209f43];return _0x252e84;}function a68_0xe1db(){const _0x4926d4=['16pCuzAl','1464988iKsAgp','1201878mBRhET','114274cVESfn','5160110SCXzNo','2035548bquDDo','dev','development','6hzYMDO','ENV','daily','12lfUams','232468OYZdkl','6250475ZlSJGY','production'];a68_0xe1db=function(){return _0x4926d4;};return a68_0xe1db();}let env=normalizeEnv(productEnv(a68_0x4ec313(0x1c3))||a68_0x4ec313(0x1c8));export function getEnv(){return env;}export function initEnv(_0x3bb000){env=normalizeEnv(_0x3bb000);}
@@ -1 +1 @@
1
- function a69_0x21da(_0x4548a6,_0xafea4f){_0x4548a6=_0x4548a6-0x13a;const _0x3d60f1=a69_0x3d60();let _0x21dab6=_0x3d60f1[_0x4548a6];return _0x21dab6;}const a69_0x4085ee=a69_0x21da;(function(_0x51c86f,_0x29e2de){const _0x9804e9=a69_0x21da,_0x407db2=_0x51c86f();while(!![]){try{const _0x41c249=-parseInt(_0x9804e9(0x141))/0x1*(-parseInt(_0x9804e9(0x13b))/0x2)+-parseInt(_0x9804e9(0x146))/0x3+-parseInt(_0x9804e9(0x143))/0x4*(-parseInt(_0x9804e9(0x13a))/0x5)+-parseInt(_0x9804e9(0x144))/0x6+parseInt(_0x9804e9(0x13d))/0x7*(-parseInt(_0x9804e9(0x147))/0x8)+parseInt(_0x9804e9(0x13e))/0x9*(parseInt(_0x9804e9(0x13c))/0xa)+-parseInt(_0x9804e9(0x140))/0xb*(-parseInt(_0x9804e9(0x142))/0xc);if(_0x41c249===_0x29e2de)break;else _0x407db2['push'](_0x407db2['shift']());}catch(_0x7cc026){_0x407db2['push'](_0x407db2['shift']());}}}(a69_0x3d60,0x355cc));export const OUTPUT_FORMAT_VALUES=[a69_0x4085ee(0x145),'pretty',a69_0x4085ee(0x13f)];function a69_0x3d60(){const _0x2ebd35=['1551032Ewrncl','15NRbSks','12iYBKKc','330mntRWX','7DqaFga','62703OvmaRQ','compress','693iHGmIn','13454SuEizG','102180utdZZp','204400SyrZxC','1128804LESxoR','json','1199385wyISIX'];a69_0x3d60=function(){return _0x2ebd35;};return a69_0x3d60();}
1
+ function a69_0x200d(_0x275353,_0x1f53f0){_0x275353=_0x275353-0x18e;const _0x48f955=a69_0x48f9();let _0x200d4b=_0x48f955[_0x275353];return _0x200d4b;}function a69_0x48f9(){const _0x4fca99=['11856498IjfWLD','7550TUwGbp','3375505tmSdfN','compress','json','29889198NdJaoY','10ZTwiGx','80gFwlcn','42572Agjemp','243362VYXWSk','447hfUAXy','12248864vPZjFa'];a69_0x48f9=function(){return _0x4fca99;};return a69_0x48f9();}const a69_0x1bf55e=a69_0x200d;(function(_0x3cdfad,_0x57525c){const _0x132601=a69_0x200d,_0x3d744f=_0x3cdfad();while(!![]){try{const _0xa503d8=parseInt(_0x132601(0x192))/0x1*(parseInt(_0x132601(0x198))/0x2)+parseInt(_0x132601(0x18f))/0x3*(parseInt(_0x132601(0x199))/0x4)+-parseInt(_0x132601(0x193))/0x5+-parseInt(_0x132601(0x191))/0x6+-parseInt(_0x132601(0x18e))/0x7+-parseInt(_0x132601(0x190))/0x8+-parseInt(_0x132601(0x196))/0x9*(-parseInt(_0x132601(0x197))/0xa);if(_0xa503d8===_0x57525c)break;else _0x3d744f['push'](_0x3d744f['shift']());}catch(_0x46a46a){_0x3d744f['push'](_0x3d744f['shift']());}}}(a69_0x48f9,0xf221b));export const OUTPUT_FORMAT_VALUES=[a69_0x1bf55e(0x195),'pretty',a69_0x1bf55e(0x194)];
@@ -1 +1 @@
1
- const a70_0x1530d0=a70_0x4d80;(function(_0xf5f5b6,_0x416475){const _0x558324=a70_0x4d80,_0xcdaf3d=_0xf5f5b6();while(!![]){try{const _0x5b402e=parseInt(_0x558324(0xe7))/0x1+parseInt(_0x558324(0xea))/0x2+-parseInt(_0x558324(0xe6))/0x3*(-parseInt(_0x558324(0xef))/0x4)+parseInt(_0x558324(0xfa))/0x5*(-parseInt(_0x558324(0xe0))/0x6)+-parseInt(_0x558324(0xfe))/0x7*(parseInt(_0x558324(0xe1))/0x8)+-parseInt(_0x558324(0xf0))/0x9*(parseInt(_0x558324(0xe4))/0xa)+-parseInt(_0x558324(0xe5))/0xb;if(_0x5b402e===_0x416475)break;else _0xcdaf3d['push'](_0xcdaf3d['shift']());}catch(_0x50bb2b){_0xcdaf3d['push'](_0xcdaf3d['shift']());}}}(a70_0x9f76,0x19575));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':a70_0x1530d0(0xfd),'skillSource':a70_0x1530d0(0xed),'npmRegistryBaseUrl':a70_0x1530d0(0xf6),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a70_0x1530d0(0xfb)],'configFileNames':['.lovrabet.json',a70_0x1530d0(0xe3)],'newConfigFileName':a70_0x1530d0(0xf8),'homeDirName':a70_0x1530d0(0xe9),'logFileName':a70_0x1530d0(0xf2),'invokeSource':a70_0x1530d0(0xf1),'userCenterDisplayName':a70_0x1530d0(0xf7),'skipNpxSkillsEnvSuffix':a70_0x1530d0(0xdf),'domains':{'production':{'user':a70_0x1530d0(0xfc),'api':a70_0x1530d0(0xeb),'runtime':'https://runtime.lovrabet.com','skillhub':a70_0x1530d0(0xf5)},'nonProduction':{'user':a70_0x1530d0(0xf4),'api':a70_0x1530d0(0xec),'runtime':'https://daily-runtime.lovrabet.com','skillhub':a70_0x1530d0(0xf9)}},'accessKeyCreatePath':a70_0x1530d0(0xf3)};export function productEnvName(_0x5bee8b){const _0x2f099d=a70_0x1530d0;return PRODUCT_CONFIG[_0x2f099d(0xe2)]+'_'+_0x5bee8b;}export function productEnvNames(_0x31acd6){const _0x475809=a70_0x1530d0;return[productEnvName(_0x31acd6),...PRODUCT_CONFIG[_0x475809(0xe8)][_0x475809(0xee)](_0x2098fc=>_0x2098fc+'_'+_0x31acd6)];}function a70_0x4d80(_0x2f7ca7,_0x1c1081){_0x2f7ca7=_0x2f7ca7-0xdf;const _0x9f768=a70_0x9f76();let _0x4d801e=_0x9f768[_0x2f7ca7];return _0x4d801e;}export function productEnv(_0x18020a){for(const _0x1afd6d of productEnvNames(_0x18020a)){const _0x4d58e3=process.env[_0x1afd6d];if(_0x4d58e3!==undefined)return _0x4d58e3;}return undefined;}function a70_0x9f76(){const _0x16ee59=['.lovrabet.json','https://skills-daily.lovrabet.com','5NIVzuA','RABETBASE','https://user.lovrabet.com','@lovrabet/lovrabet-cli','161609JSPIOT','SKIP_NPX_SKILLS','719412NJXUZq','8giIVeD','envPrefix','.lovrabetrc','30EjpOrK','1075162LwnrEx','3pVBKAS','170871HhbkNO','legacyEnvPrefixes','.lovrabet','66892ScBggD','https://api.lovrabet.com','https://daily-api.lovrabet.com','lovrabet/lovrabet-cli','map','676488LPhGaF','86733vskpoO','cli:lovrabet-runtime','.lovrabet-runtime.log','/user/ak','https://user-daily.lovrabet.com','https://skills.lovrabet.com','https://registry.npmjs.org','Lovrabet\x20User\x20Center'];a70_0x9f76=function(){return _0x16ee59;};return a70_0x9f76();}
1
+ const a70_0xeeba53=a70_0x1310;(function(_0x49df2c,_0x4f38a2){const _0x1a21da=a70_0x1310,_0x5e21bc=_0x49df2c();while(!![]){try{const _0x5a090c=-parseInt(_0x1a21da(0x1b6))/0x1+parseInt(_0x1a21da(0x1b0))/0x2*(parseInt(_0x1a21da(0x1bf))/0x3)+parseInt(_0x1a21da(0x1c3))/0x4+-parseInt(_0x1a21da(0x1c5))/0x5+parseInt(_0x1a21da(0x1af))/0x6+-parseInt(_0x1a21da(0x1bb))/0x7*(-parseInt(_0x1a21da(0x1bd))/0x8)+parseInt(_0x1a21da(0x1ca))/0x9*(-parseInt(_0x1a21da(0x1b5))/0xa);if(_0x5a090c===_0x4f38a2)break;else _0x5e21bc['push'](_0x5e21bc['shift']());}catch(_0x10ccd3){_0x5e21bc['push'](_0x5e21bc['shift']());}}}(a70_0x5768,0x243f3));function a70_0x1310(_0x5643a4,_0x59187d){_0x5643a4=_0x5643a4-0x1af;const _0x576871=a70_0x5768();let _0x131039=_0x576871[_0x5643a4];return _0x131039;}export const PRODUCT_CONFIG={'cliBinName':a70_0xeeba53(0x1c6),'cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':a70_0xeeba53(0x1c4),'skillSource':a70_0xeeba53(0x1c8),'npmRegistryBaseUrl':a70_0xeeba53(0x1c0),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a70_0xeeba53(0x1c7)],'configFileNames':['.lovrabet.json',a70_0xeeba53(0x1b8)],'newConfigFileName':a70_0xeeba53(0x1c1),'homeDirName':a70_0xeeba53(0x1b4),'logFileName':a70_0xeeba53(0x1ba),'invokeSource':a70_0xeeba53(0x1b3),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':a70_0xeeba53(0x1b9),'api':'https://api.lovrabet.com','runtime':a70_0xeeba53(0x1b1),'skillhub':'https://skills.lovrabet.com'},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':a70_0xeeba53(0x1be),'runtime':a70_0xeeba53(0x1b7),'skillhub':'https://skills-daily.lovrabet.com'}},'accessKeyCreatePath':a70_0xeeba53(0x1c9)};export function productEnvName(_0x6c9077){const _0x5d0d33=a70_0xeeba53;return PRODUCT_CONFIG[_0x5d0d33(0x1c2)]+'_'+_0x6c9077;}export function productEnvNames(_0x5b8969){const _0x1e05dd=a70_0xeeba53;return[productEnvName(_0x5b8969),...PRODUCT_CONFIG[_0x1e05dd(0x1b2)][_0x1e05dd(0x1bc)](_0x2df952=>_0x2df952+'_'+_0x5b8969)];}function a70_0x5768(){const _0x1a0c4c=['https://daily-runtime.lovrabet.com','.lovrabetrc','https://user.lovrabet.com','.lovrabet-runtime.log','35WAWHLQ','map','303616FulJEm','https://daily-api.lovrabet.com','22350xzZUZp','https://registry.npmjs.org','.lovrabet.json','envPrefix','934504IUNdRR','@lovrabet/lovrabet-cli','198045DXRMBe','lovrabet','RABETBASE','lovrabet/lovrabet-cli','/user/ak','17955LiGYLx','1589484GENfdM','12svMEtr','https://runtime.lovrabet.com','legacyEnvPrefixes','cli:lovrabet-runtime','.lovrabet','2510YUmkOS','44179nPnCuV'];a70_0x5768=function(){return _0x1a0c4c;};return a70_0x5768();}export function productEnv(_0x327a07){for(const _0x2e0d64 of productEnvNames(_0x327a07)){const _0x108359=process.env[_0x2e0d64];if(_0x108359!==undefined)return _0x108359;}return undefined;}
@@ -1 +1 @@
1
- function a71_0x3dce(_0x313f0f,_0x585544){_0x313f0f=_0x313f0f-0x185;const _0x2f92dc=a71_0x2f92();let _0x3dceec=_0x2f92dc[_0x313f0f];return _0x3dceec;}const a71_0x13bcef=a71_0x3dce;function a71_0x2f92(){const _0x5bb232=['9495xiwYPd','8950astxpp','3814806zdZbDZ','409785jgaCqW','read','high-risk-write','3975156yZuqsB','write','499919UdYlzj','1924878diUiVM','7zPYVTr','9144528ilwJhJ','12rdBADD'];a71_0x2f92=function(){return _0x5bb232;};return a71_0x2f92();}(function(_0x5758eb,_0x2c0dac){const _0x1f5dbb=a71_0x3dce,_0x32c8aa=_0x5758eb();while(!![]){try{const _0xdde4b9=parseInt(_0x1f5dbb(0x188))/0x1+parseInt(_0x1f5dbb(0x189))/0x2+-parseInt(_0x1f5dbb(0x18f))/0x3+parseInt(_0x1f5dbb(0x18c))/0x4*(-parseInt(_0x1f5dbb(0x190))/0x5)+parseInt(_0x1f5dbb(0x186))/0x6+parseInt(_0x1f5dbb(0x18a))/0x7*(parseInt(_0x1f5dbb(0x18b))/0x8)+parseInt(_0x1f5dbb(0x18d))/0x9*(-parseInt(_0x1f5dbb(0x18e))/0xa);if(_0xdde4b9===_0x2c0dac)break;else _0x32c8aa['push'](_0x32c8aa['shift']());}catch(_0x234311){_0x32c8aa['push'](_0x32c8aa['shift']());}}}(a71_0x2f92,0xc4d6c));export const RISK_LEVEL_VALUES=[a71_0x13bcef(0x191),a71_0x13bcef(0x187),a71_0x13bcef(0x185)];
1
+ const a71_0x466c29=a71_0x6619;function a71_0x6619(_0x2e1ff8,_0x233220){_0x2e1ff8=_0x2e1ff8-0x1e0;const _0x382266=a71_0x3822();let _0x6619c6=_0x382266[_0x2e1ff8];return _0x6619c6;}(function(_0x7b9d0,_0xb79dc4){const _0x2fde01=a71_0x6619,_0x21d9ac=_0x7b9d0();while(!![]){try{const _0x478fab=parseInt(_0x2fde01(0x1ea))/0x1+-parseInt(_0x2fde01(0x1e1))/0x2*(-parseInt(_0x2fde01(0x1e0))/0x3)+-parseInt(_0x2fde01(0x1e9))/0x4+parseInt(_0x2fde01(0x1e2))/0x5*(-parseInt(_0x2fde01(0x1eb))/0x6)+parseInt(_0x2fde01(0x1e8))/0x7*(-parseInt(_0x2fde01(0x1ec))/0x8)+-parseInt(_0x2fde01(0x1e7))/0x9*(parseInt(_0x2fde01(0x1e6))/0xa)+-parseInt(_0x2fde01(0x1e3))/0xb*(-parseInt(_0x2fde01(0x1e5))/0xc);if(_0x478fab===_0xb79dc4)break;else _0x21d9ac['push'](_0x21d9ac['shift']());}catch(_0x1c90d0){_0x21d9ac['push'](_0x21d9ac['shift']());}}}(a71_0x3822,0x90258));function a71_0x3822(){const _0x2c3f58=['11eNmwSi','high-risk-write','15476136wlpefW','1810sJKrpU','28116GLAQOg','21mTSIDY','1269076wHjwPp','472987WeEDQc','30rGoDLE','1020632GRklwK','18IeEpkx','246758lvSrIT','647065IiGTsD'];a71_0x3822=function(){return _0x2c3f58;};return a71_0x3822();}export const RISK_LEVEL_VALUES=['read','write',a71_0x466c29(0x1e4)];
@@ -1 +1 @@
1
- function a72_0x5a93(){const _0x5abd4c=['94grQXJF','55lCwoYN','247970nPdgpE','3050760WLSiOY','3261oHXSZH','user','3406504roajTi','accessKeyCreatePath','7973UEgCME','1818gULkih','910374nthgzx','4969377agqOWq','4APHmmR'];a72_0x5a93=function(){return _0x5abd4c;};return a72_0x5a93();}const a72_0x10e24c=a72_0x384e;(function(_0x581f06,_0x3a6149){const _0x1b4aee=a72_0x384e,_0x13453e=_0x581f06();while(!![]){try{const _0x48b43d=parseInt(_0x1b4aee(0x144))/0x1*(parseInt(_0x1b4aee(0x14d))/0x2)+parseInt(_0x1b4aee(0x14a))/0x3*(parseInt(_0x1b4aee(0x14c))/0x4)+-parseInt(_0x1b4aee(0x150))/0x5+-parseInt(_0x1b4aee(0x149))/0x6*(parseInt(_0x1b4aee(0x148))/0x7)+parseInt(_0x1b4aee(0x146))/0x8+parseInt(_0x1b4aee(0x14b))/0x9+-parseInt(_0x1b4aee(0x14f))/0xa*(parseInt(_0x1b4aee(0x14e))/0xb);if(_0x48b43d===_0x3a6149)break;else _0x13453e['push'](_0x13453e['shift']());}catch(_0x29ea17){_0x13453e['push'](_0x13453e['shift']());}}}(a72_0x5a93,0x56c6d));function a72_0x384e(_0x535790,_0x5f3938){_0x535790=_0x535790-0x144;const _0x5a9348=a72_0x5a93();let _0x384ebc=_0x5a9348[_0x535790];return _0x384ebc;}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG['domains']['production'][a72_0x10e24c(0x145)]+PRODUCT_CONFIG[a72_0x10e24c(0x147)];
1
+ function a72_0x1a32(){const _0x2d4701=['256278EMbRrk','accessKeyCreatePath','7324430ZfqOCf','8llYnas','domains','496556RdBkvv','354906Hzlawb','9GTnVRn','317205sXRjgX','2817101fUfPpJ','200655bUgGjC','15ZIfTBl','production','user'];a72_0x1a32=function(){return _0x2d4701;};return a72_0x1a32();}const a72_0x1022ab=a72_0x374b;function a72_0x374b(_0x3f87b8,_0x5740c1){_0x3f87b8=_0x3f87b8-0x115;const _0x1a3268=a72_0x1a32();let _0x374b4b=_0x1a3268[_0x3f87b8];return _0x374b4b;}(function(_0x3a46ec,_0x42eb0f){const _0x31b088=a72_0x374b,_0x548932=_0x3a46ec();while(!![]){try{const _0x3cb473=-parseInt(_0x31b088(0x122))/0x1+-parseInt(_0x31b088(0x120))/0x2+parseInt(_0x31b088(0x116))/0x3+-parseInt(_0x31b088(0x11f))/0x4*(-parseInt(_0x31b088(0x117))/0x5)+-parseInt(_0x31b088(0x11a))/0x6+-parseInt(_0x31b088(0x115))/0x7*(parseInt(_0x31b088(0x11d))/0x8)+parseInt(_0x31b088(0x121))/0x9*(parseInt(_0x31b088(0x11c))/0xa);if(_0x3cb473===_0x42eb0f)break;else _0x548932['push'](_0x548932['shift']());}catch(_0x65a0ac){_0x548932['push'](_0x548932['shift']());}}}(a72_0x1a32,0x389fb));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a72_0x1022ab(0x11e)][a72_0x1022ab(0x118)][a72_0x1022ab(0x119)]+PRODUCT_CONFIG[a72_0x1022ab(0x11b)];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a73_0x4f8a99=a73_0x26be;(function(_0x2bc69d,_0x38ed72){const _0x280c85=a73_0x26be,_0x32d05e=_0x2bc69d();while(!![]){try{const _0x2eb967=-parseInt(_0x280c85(0xca))/0x1+parseInt(_0x280c85(0xe9))/0x2*(-parseInt(_0x280c85(0xe8))/0x3)+parseInt(_0x280c85(0xe6))/0x4+-parseInt(_0x280c85(0xcb))/0x5*(-parseInt(_0x280c85(0xb2))/0x6)+-parseInt(_0x280c85(0xbe))/0x7+-parseInt(_0x280c85(0xea))/0x8+parseInt(_0x280c85(0xa4))/0x9;if(_0x2eb967===_0x38ed72)break;else _0x32d05e['push'](_0x32d05e['shift']());}catch(_0x4d15b3){_0x32d05e['push'](_0x32d05e['shift']());}}}(a73_0xdf89,0xcdc70));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_0x4f8a99(0xbb)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a73_0x4f8a99(0xba)];function resolveConfigPath(_0xfa3d3f){for(const _0x19c64e of CONFIG_NAMES){const _0x506ca3=resolve(_0xfa3d3f,_0x19c64e);if(existsSync(_0x506ca3))return _0x506ca3;}return undefined;}export function resolveWriteConfigPath(_0x3462e2){const _0x122a47=a73_0x4f8a99,_0x1a4e02=_0x3462e2===_0x122a47(0xb7)?process[_0x122a47(0xe4)]():homedir(),_0x457e72=resolveConfigPath(_0x1a4e02);return _0x457e72??resolve(_0x1a4e02,NEW_CONFIG_NAME);}export function readConfigFile(_0x29e908){const _0x476371=a73_0x4f8a99;try{if(existsSync(_0x29e908)){const _0x1f8c72=readFileSync(_0x29e908,{'encoding':_0x476371(0xbd)});if(_0x1f8c72){const _0xe5ade8=JSON[_0x476371(0xb9)](_0x1f8c72);return migrateOnlineEnv(_0x29e908,_0xe5ade8),_0xe5ade8;}}}catch{}return{};}function migrateOnlineEnv(_0x49784c,_0x3fbf48){const _0x3aa547=a73_0x4f8a99;let _0x43a48a=![];_0x3fbf48[_0x3aa547(0xc5)]===_0x3aa547(0xdb)&&(_0x3fbf48[_0x3aa547(0xc5)]=_0x3aa547(0xda),_0x43a48a=!![]);if(_0x3fbf48['apps']&&typeof _0x3fbf48[_0x3aa547(0xcf)]===_0x3aa547(0xd2))for(const _0x882e53 of Object[_0x3aa547(0xb4)](_0x3fbf48[_0x3aa547(0xcf)])){_0x882e53&&_0x882e53[_0x3aa547(0xc5)]==='online'&&(_0x882e53[_0x3aa547(0xc5)]=_0x3aa547(0xda),_0x43a48a=!![]);}if(_0x43a48a)try{writeConfigFile(_0x49784c,_0x3fbf48);}catch{}}export function writeConfigFile(_0x2e1514,_0x3a7180){const _0x14fd38=a73_0x4f8a99,_0x32c31e=dirname(_0x2e1514);!existsSync(_0x32c31e)&&mkdirSync(_0x32c31e,{'recursive':!![]});const _0x17c971=_0x2e1514+'.tmp';try{writeFileSync(_0x17c971,JSON[_0x14fd38(0xdd)](_0x3a7180,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x17c971,_0x2e1514);}catch(_0xca821e){if(_0xca821e['code']===_0x14fd38(0xe0)||_0xca821e['code']===_0x14fd38(0xc9)||_0xca821e[_0x14fd38(0xe1)]===_0x14fd38(0xaa)){writeFileSync(_0x2e1514,JSON['stringify'](_0x3a7180,null,0x2)+'\x0a',{'encoding':_0x14fd38(0xbd)});try{unlinkSync(_0x17c971);}catch{}}else throw _0xca821e;}}catch(_0x3c1df4){try{unlinkSync(_0x17c971);}catch{}throw _0x3c1df4;}}export function isNonInteractiveMode(_0x11e295){const _0x58d399=a73_0x4f8a99;return!!(_0x11e295[_0x58d399(0xaf)]||_0x11e295['ci']||productEnvNames('CI')[_0x58d399(0xae)](_0x1e4bb4=>process.env[_0x1e4bb4]===_0x58d399(0xe2))||process.env.CI===_0x58d399(0xe2)||!process['stdout'][_0x58d399(0xd6)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0xf5bc64=a73_0x4f8a99;if(!process[_0xf5bc64(0xc0)][_0xf5bc64(0xd6)])return![];try{const _0x1439f7=process[_0xf5bc64(0xc0)]['isRaw'];return process[_0xf5bc64(0xc0)][_0xf5bc64(0xc7)](!![]),process[_0xf5bc64(0xc0)][_0xf5bc64(0xc7)](_0x1439f7??![]),!![];}catch{return![];}}export async function createContext(_0x143958){const _0x2d9082=a73_0x4f8a99,_0x58c9a4=readRawConfig(),_0x1b17d2=buildConfig(_0x58c9a4,_0x143958);await initGlobalEnvironment(_0x1b17d2);const {getUserDomain:_0x1dd3e6,getApiDomain:_0x923ce2}=await import('./constant/domain.js'),_0x5c5d36={'apiDomain':_0x923ce2(),'userDomain':_0x1dd3e6()},_0x4b9881=await buildAuth(_0x1b17d2);logger['setLogPath'](process['cwd']());const _0x4eef44=(CLI_BIN_NAME+'\x20'+process[_0x2d9082(0xc6)][_0x2d9082(0xa9)](0x2)['join']('\x20'))[_0x2d9082(0xce)]();logger[_0x2d9082(0xec)](_0x4eef44);const _0x37fa3c=isNonInteractiveMode(_0x143958);return{'config':_0x1b17d2,'auth':_0x4b9881,'logger':logger,'env':_0x5c5d36,'nonInteractive':_0x37fa3c};}export function buildConfigFromFlags(_0x11685f){return buildConfig(readRawConfig(),_0x11685f);}function a73_0x26be(_0x2fa8a8,_0x220507){_0x2fa8a8=_0x2fa8a8-0xa4;const _0xdf895a=a73_0xdf89();let _0x26be2e=_0xdf895a[_0x2fa8a8];return _0x26be2e;}export function getLocalAppAliases(_0x2b27ec){const _0x922ba8=a73_0x4f8a99;return _0x2b27ec[_0x922ba8(0xcf)]&&typeof _0x2b27ec[_0x922ba8(0xcf)]===_0x922ba8(0xd2)?_0x2b27ec['apps']:{};}export function resolveLocalAppAliasCode(_0x1ed7ea,_0x29b909){const _0x3d2c68=a73_0x4f8a99;if(!_0x29b909)return undefined;const _0x34682d=getLocalAppAliases(_0x1ed7ea)[_0x29b909],_0x573ab3=_0x34682d?.[_0x3d2c68(0xc3)];return typeof _0x573ab3===_0x3d2c68(0xc4)&&_0x573ab3[_0x3d2c68(0xce)]()?_0x573ab3[_0x3d2c68(0xce)]():undefined;}export function readAppCodeFromConfig(){const _0x13bdd4=a73_0x4f8a99,_0x353765=readRawConfig(),_0x2b02b0=_0x353765['appcode']??_0x353765[_0x13bdd4(0xa8)];if(typeof _0x2b02b0==='string'&&_0x2b02b0[_0x13bdd4(0xce)]())return _0x2b02b0[_0x13bdd4(0xce)]();const _0x2db188=resolveLocalAppAliasCode(_0x353765,typeof _0x353765[_0x13bdd4(0xab)]===_0x13bdd4(0xc4)?_0x353765['defaultApp']:undefined);if(_0x2db188)return _0x2db188;const _0x4c13c2=normalizeEnv(String(_0x353765[_0x13bdd4(0xc5)]||_0x13bdd4(0xda))),_0x36714b=isDaily(_0x4c13c2)?_0x13bdd4(0xd9):isDev(_0x4c13c2)?_0x13bdd4(0xd5):_0x13bdd4(0xda),_0x48c35b=resolveCachedAppCode(typeof _0x353765[_0x13bdd4(0xab)]===_0x13bdd4(0xc4)?_0x353765[_0x13bdd4(0xab)]:undefined,_0x36714b,typeof _0x353765['accessKey']===_0x13bdd4(0xc4)?_0x353765[_0x13bdd4(0xc2)]:undefined);if(_0x48c35b)return _0x48c35b;const _0x157701=Object['values'](getLocalAppAliases(_0x353765))['find'](_0x4bf586=>_0x4bf586?.[_0x13bdd4(0xc3)]);return typeof _0x157701?.[_0x13bdd4(0xc3)]===_0x13bdd4(0xc4)&&_0x157701[_0x13bdd4(0xc3)][_0x13bdd4(0xce)]()?_0x157701[_0x13bdd4(0xc3)][_0x13bdd4(0xce)]():undefined;}export function readScopedConfig(_0x48174f){const _0x2123e9=a73_0x4f8a99,_0xfb0bb2=_0x48174f[_0x2123e9(0xb1)]?_0x2123e9(0xb1):_0x2123e9(0xb7);return readConfigFile(resolveWriteConfigPath(_0xfb0bb2));}export function writeScopedConfig(_0x2d046c,_0x2528a4){const _0x6e317=a73_0x4f8a99,_0x16e3cd=_0x2528a4[_0x6e317(0xb1)]?_0x6e317(0xb1):_0x6e317(0xb7);writeConfigFile(resolveWriteConfigPath(_0x16e3cd),_0x2d046c);}export async function initGlobalEnvironment(_0x15cd21){const _0x1185c1=a73_0x4f8a99,{initEnv:_0x1bfb12}=await import(_0x1185c1(0xb3));_0x1bfb12(_0x15cd21[_0x1185c1(0xc5)]);const {initDomains:_0x355aee}=await import(_0x1185c1(0xde));_0x355aee({'apiDomain':_0x15cd21[_0x1185c1(0xd0)][_0x1185c1(0xad)]||_0x15cd21['raw'][_0x1185c1(0xdc)]||undefined,'userDomain':_0x15cd21['raw'][_0x1185c1(0xd4)]||undefined,'runtimeDomain':_0x15cd21['raw'][_0x1185c1(0xa6)]||undefined,'skillHubDomain':_0x15cd21[_0x1185c1(0xd0)][_0x1185c1(0xc1)]||undefined});}export function getProjectConfigPath(){const _0x365c45=a73_0x4f8a99;return resolveConfigPath(process[_0x365c45(0xe4)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x4c9b5d){const _0x2a2040=a73_0x4f8a99;if(!existsSync(_0x4c9b5d))return{'status':'missing'};try{const _0xb44092=readFileSync(_0x4c9b5d,{'encoding':'utf8'});if(!_0xb44092?.['trim']())return{'status':'empty'};const _0x40a774=JSON[_0x2a2040(0xb9)](_0xb44092);return{'status':'ok','data':_0x40a774};}catch(_0x422fdd){return{'status':'error','message':_0x422fdd instanceof Error?_0x422fdd[_0x2a2040(0xcc)]:String(_0x422fdd)};}}export function loadRawConfigLayers(_0x1be8dc){const _0x876a01=a73_0x4f8a99;let _0x3504d7={},_0x53812e={},_0x576112,_0x2921c1;try{_0x576112=resolveConfigPath(homedir());if(_0x576112){const _0xb046de=readFileSync(_0x576112,{'encoding':_0x876a01(0xbd)});if(_0xb046de)_0x3504d7=JSON['parse'](_0xb046de);}}catch{}try{const _0x4fb17d=_0x1be8dc||process[_0x876a01(0xe4)]();_0x2921c1=resolveConfigPath(_0x4fb17d);if(_0x2921c1){const _0x5551fe=readFileSync(_0x2921c1,{'encoding':_0x876a01(0xbd)});if(_0x5551fe)_0x53812e=JSON['parse'](_0x5551fe);}}catch{}return{'globalPath':_0x576112,'projectPath':_0x2921c1,'globalConfig':_0x3504d7,'projectConfig':_0x53812e};}function mergeRawConfigLayers(_0x13faf7){const _0x2922eb=a73_0x4f8a99,{globalConfig:_0x419686,projectConfig:_0x160f23}=_0x13faf7;if(_0x160f23[_0x2922eb(0xb0)]===![]){const _0x406f06={..._0x160f23};return delete _0x406f06['inherit'],_0x406f06;}const _0x52c72d={..._0x419686,..._0x160f23};if(_0x2922eb(0xab)in _0x160f23)_0x52c72d['defaultApp']=_0x160f23[_0x2922eb(0xab)];else _0x419686[_0x2922eb(0xab)]&&(_0x52c72d[_0x2922eb(0xab)]=_0x419686[_0x2922eb(0xab)]);return _0x52c72d;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x1c876e){return mergeRawConfigLayers(loadRawConfigLayers(_0x1c876e));}export function readRawConfigWithLayers(_0x11a2aa){const _0x2af72d=loadRawConfigLayers(_0x11a2aa);return{'config':mergeRawConfigLayers(_0x2af72d),'layers':_0x2af72d};}export function resolveDefaultAppSource(_0x438adc){const _0x316abf=a73_0x4f8a99;if(_0x316abf(0xab)in _0x438adc[_0x316abf(0xdf)])return _0x316abf(0xb7);if(_0x438adc[_0x316abf(0xdf)][_0x316abf(0xb0)]===![])return null;if(_0x438adc[_0x316abf(0xbf)][_0x316abf(0xab)])return _0x316abf(0xb1);return null;}function buildConfig(_0x25ab75,_0x34bc97){const _0x1f097a=a73_0x4f8a99,_0x3261b4=_0x25ab75[_0x1f097a(0xab)]||undefined,_0x178371=_0x34bc97[_0x1f097a(0xa8)]||env(_0x1f097a(0xe7))||undefined,_0x463cc2=_0x178371||_0x3261b4||undefined,_0x2cb03f=env(_0x1f097a(0xcd))||_0x25ab75[_0x1f097a(0xc2)]||undefined,_0x49c359=_0x34bc97['env']||env(_0x1f097a(0xc8))||_0x25ab75[_0x1f097a(0xc5)]||DEFAULT_CONFIG_VALUES[_0x1f097a(0xc5)],_0x89cbae=normalizeEnv(String(_0x49c359)),_0x38d2a6=isDaily(_0x89cbae)?_0x1f097a(0xd9):isDev(_0x89cbae)?'development':_0x1f097a(0xda),_0x11e005=typeof _0x34bc97[_0x1f097a(0xc3)]===_0x1f097a(0xc4)?_0x34bc97[_0x1f097a(0xc3)]:undefined,_0x2863ab=env(_0x1f097a(0xe3)),_0x319263=_0x178371?undefined:_0x25ab75[_0x1f097a(0xc3)]||_0x25ab75[_0x1f097a(0xa8)]||undefined,_0x252a59=_0x178371||(_0x319263?undefined:_0x3261b4),_0x3b29ba=resolveLocalAppAliasCode(_0x25ab75,_0x252a59),_0x1e22c1=resolveCachedAppCode(_0x252a59,_0x38d2a6,_0x2cb03f),_0xe4147f=_0x11e005||_0x2863ab||_0x319263||_0x3b29ba||_0x1e22c1||undefined,_0x2008de=_0x11e005?_0x1f097a(0xa5):_0x2863ab?_0x1f097a(0xc5):_0x319263?_0x1f097a(0xa7):_0x3b29ba?_0x1f097a(0xeb):_0x1e22c1?_0x1f097a(0xd8):undefined,_0x4f26f8=_0x25ab75[_0x1f097a(0xd3)]||DEFAULT_CONFIG_VALUES['locale'],_0x4a7f09=undefined,_0x11bdc8=_0x34bc97[_0x1f097a(0xd1)]||env('FORMAT')||_0x25ab75['format'],_0x205513=normalizeLegacyOutputFormat(_0x11bdc8),_0x157a27=env(_0x1f097a(0xbc))||_0x25ab75[_0x1f097a(0xb6)],_0x2b7e65=_0x157a27?Number(_0x157a27)||undefined:undefined,_0x380702=_0x25ab75[_0x1f097a(0xe5)]||_0x25ab75[_0x1f097a(0xb8)],_0x35d9f6=_0x380702===_0x1f097a(0xb5)||_0x380702===_0x1f097a(0xd7)||_0x380702==='high-risk-write'?_0x380702:DEFAULT_CONFIG_VALUES[_0x1f097a(0xe5)],_0x4c801b=env(_0x1f097a(0xed)),_0x477949=_0x4c801b==='1'||_0x4c801b===_0x1f097a(0xe2);return{'appCode':typeof _0xe4147f==='string'&&_0xe4147f[_0x1f097a(0xce)]()?_0xe4147f[_0x1f097a(0xce)]():undefined,'appCodeSource':_0x2008de,'env':_0x38d2a6,'locale':_0x4f26f8,'cookie':_0x4a7f09,'accessKey':_0x2cb03f,'format':_0x205513,'pageSize':_0x2b7e65,'riskLevel':_0x35d9f6,'verbose':_0x477949,'defaultApp':_0x3261b4,'currentApp':typeof _0x463cc2===_0x1f097a(0xc4)?_0x463cc2:undefined,'raw':_0x25ab75};}function env(_0x408ab3){return productEnv(_0x408ab3);}async function buildAuth(_0x5be3e0){const _0x3780b2=a73_0x4f8a99,_0x55beaf='',_0xff193f=!!_0x5be3e0[_0x3780b2(0xc2)];return{'cookie':_0x55beaf,'isLoggedIn':_0xff193f,async 'getOrLogin'(){const _0x3296d8=_0x3780b2;if(_0xff193f)return _0x55beaf;throw CliErrors[_0x3296d8(0xac)]();}};}function a73_0xdf89(){const _0x5a8ac1=['./constant/env.js','values','read','pageSize','project','maxRisk','parse','newConfigFileName','configFileNames','PAGE_SIZE','utf8','7408786olfutb','globalConfig','stdin','skillHubDomain','accessKey','appcode','string','env','argv','setRawMode','ENV','EXDEV','628233phGRvj','5EXYDFv','message','ACCESS_KEY','trim','apps','raw','format','object','locale','userDomain','development','isTTY','write','cache','daily','production','online','host','stringify','./constant/domain.js','projectConfig','EPERM','code','true','APPCODE','cwd','riskLevel','714092gzoKgJ','APP','3161244bGcCLz','2qAnWBt','12892792fbdCvd','local-alias','setRawCommand','VERBOSE','44101089CSqEZR','explicit','runtimeDomain','top-level','app','slice','EACCES','defaultApp','authRequired','apiDomain','some','nonInteractive','inherit','global','697188Goqquz'];a73_0xdf89=function(){return _0x5a8ac1;};return a73_0xdf89();}
1
+ const a73_0x26495d=a73_0x4813;(function(_0x4a8c66,_0x238cc7){const _0x6548a9=a73_0x4813,_0x5e90bc=_0x4a8c66();while(!![]){try{const _0x5ca750=parseInt(_0x6548a9(0x132))/0x1*(parseInt(_0x6548a9(0x159))/0x2)+parseInt(_0x6548a9(0x156))/0x3*(parseInt(_0x6548a9(0x135))/0x4)+-parseInt(_0x6548a9(0x152))/0x5*(parseInt(_0x6548a9(0x155))/0x6)+-parseInt(_0x6548a9(0x128))/0x7+-parseInt(_0x6548a9(0x13f))/0x8+-parseInt(_0x6548a9(0x129))/0x9*(parseInt(_0x6548a9(0x137))/0xa)+parseInt(_0x6548a9(0x145))/0xb;if(_0x5ca750===_0x238cc7)break;else _0x5e90bc['push'](_0x5e90bc['shift']());}catch(_0x35e121){_0x5e90bc['push'](_0x5e90bc['shift']());}}}(a73_0x3c5d,0x7e9bd));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';function a73_0x3c5d(){const _0x2502a8=['75843IWcxdV','env','locale','./constant/domain.js','setLogPath','stdout','stdin','read','runtimeDomain','20tgDFqF','parse','APPCODE','14164fzvGsI','stringify','870dzXXGE','join','find','accessKey','app','projectConfig','apps','configFileNames','1635840dcioZb','object','authRequired','cache','top-level','EPERM','8758387LCwPSE','host','nonInteractive','development','newConfigFileName','PAGE_SIZE','true','empty','FORMAT','some','appcode','global','cwd','5IKvOcP','project','explicit','477018IKFMlX','813qUkYGt','daily','slice','4714lVPept','production','setRawMode','riskLevel','inherit','code','.tmp','globalConfig','format','ENV','isRaw','pageSize','isTTY','VERBOSE','write','string','EXDEV','raw','high-risk-write','error','defaultApp','trim','missing','utf8','skillHubDomain','1870729omJsyJ'];a73_0x3c5d=function(){return _0x2502a8;};return a73_0x3c5d();}import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a73_0x26495d(0x13e)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a73_0x26495d(0x149)];function resolveConfigPath(_0x1d3532){for(const _0x2c826f of CONFIG_NAMES){const _0x534d6d=resolve(_0x1d3532,_0x2c826f);if(existsSync(_0x534d6d))return _0x534d6d;}return undefined;}export function resolveWriteConfigPath(_0x5eec09){const _0x4ffa6=a73_0x26495d,_0x431574=_0x5eec09===_0x4ffa6(0x153)?process[_0x4ffa6(0x151)]():homedir(),_0xde7d6d=resolveConfigPath(_0x431574);return _0xde7d6d??resolve(_0x431574,NEW_CONFIG_NAME);}export function readConfigFile(_0x38b168){const _0x2e9aa5=a73_0x26495d;try{if(existsSync(_0x38b168)){const _0x3485e6=readFileSync(_0x38b168,{'encoding':_0x2e9aa5(0x126)});if(_0x3485e6){const _0x292b44=JSON['parse'](_0x3485e6);return migrateOnlineEnv(_0x38b168,_0x292b44),_0x292b44;}}}catch{}return{};}function migrateOnlineEnv(_0x58c0ba,_0x4b9004){const _0xb368f3=a73_0x26495d;let _0x184cbb=![];_0x4b9004[_0xb368f3(0x12a)]==='online'&&(_0x4b9004['env']=_0xb368f3(0x15a),_0x184cbb=!![]);if(_0x4b9004[_0xb368f3(0x13d)]&&typeof _0x4b9004[_0xb368f3(0x13d)]===_0xb368f3(0x140))for(const _0xc8d996 of Object['values'](_0x4b9004[_0xb368f3(0x13d)])){_0xc8d996&&_0xc8d996[_0xb368f3(0x12a)]==='online'&&(_0xc8d996[_0xb368f3(0x12a)]=_0xb368f3(0x15a),_0x184cbb=!![]);}if(_0x184cbb)try{writeConfigFile(_0x58c0ba,_0x4b9004);}catch{}}export function writeConfigFile(_0x11b669,_0x4fbb59){const _0x1b5750=a73_0x26495d,_0x3e632c=dirname(_0x11b669);!existsSync(_0x3e632c)&&mkdirSync(_0x3e632c,{'recursive':!![]});const _0x2cc605=_0x11b669+_0x1b5750(0x115);try{writeFileSync(_0x2cc605,JSON[_0x1b5750(0x136)](_0x4fbb59,null,0x2)+'\x0a',{'encoding':_0x1b5750(0x126),'mode':0x180});try{renameSync(_0x2cc605,_0x11b669);}catch(_0x1ec4e4){if(_0x1ec4e4[_0x1b5750(0x114)]===_0x1b5750(0x144)||_0x1ec4e4[_0x1b5750(0x114)]===_0x1b5750(0x11f)||_0x1ec4e4[_0x1b5750(0x114)]==='EACCES'){writeFileSync(_0x11b669,JSON['stringify'](_0x4fbb59,null,0x2)+'\x0a',{'encoding':_0x1b5750(0x126)});try{unlinkSync(_0x2cc605);}catch{}}else throw _0x1ec4e4;}}catch(_0x110bb0){try{unlinkSync(_0x2cc605);}catch{}throw _0x110bb0;}}export function isNonInteractiveMode(_0x5000d5){const _0x2af524=a73_0x26495d;return!!(_0x5000d5[_0x2af524(0x147)]||_0x5000d5['ci']||productEnvNames('CI')[_0x2af524(0x14e)](_0x5ee3b1=>process.env[_0x5ee3b1]===_0x2af524(0x14b))||process.env.CI===_0x2af524(0x14b)||!process[_0x2af524(0x12e)][_0x2af524(0x11b)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x8e369c=a73_0x26495d;if(!process[_0x8e369c(0x12f)]['isTTY'])return![];try{const _0x405d07=process['stdin'][_0x8e369c(0x119)];return process[_0x8e369c(0x12f)][_0x8e369c(0x15b)](!![]),process[_0x8e369c(0x12f)][_0x8e369c(0x15b)](_0x405d07??![]),!![];}catch{return![];}}export async function createContext(_0x16347b){const _0x3a816f=a73_0x26495d,_0x46a7bf=readRawConfig(),_0x2b55a7=buildConfig(_0x46a7bf,_0x16347b);await initGlobalEnvironment(_0x2b55a7);const {getUserDomain:_0x34e1ba,getApiDomain:_0x482ce5}=await import(_0x3a816f(0x12c)),_0x27774b={'apiDomain':_0x482ce5(),'userDomain':_0x34e1ba()},_0x3fd249=await buildAuth(_0x2b55a7);logger[_0x3a816f(0x12d)](process['cwd']());const _0x3f82ed=(CLI_BIN_NAME+'\x20'+process['argv'][_0x3a816f(0x158)](0x2)[_0x3a816f(0x138)]('\x20'))[_0x3a816f(0x124)]();logger['setRawCommand'](_0x3f82ed);const _0x4d2ff4=isNonInteractiveMode(_0x16347b);return{'config':_0x2b55a7,'auth':_0x3fd249,'logger':logger,'env':_0x27774b,'nonInteractive':_0x4d2ff4};}export function buildConfigFromFlags(_0x25bd82){return buildConfig(readRawConfig(),_0x25bd82);}export function getLocalAppAliases(_0x24b0ac){const _0x1d5f39=a73_0x26495d;return _0x24b0ac['apps']&&typeof _0x24b0ac[_0x1d5f39(0x13d)]==='object'?_0x24b0ac['apps']:{};}export function resolveLocalAppAliasCode(_0x281d42,_0x2664f8){const _0x3e7ee1=a73_0x26495d;if(!_0x2664f8)return undefined;const _0x2018a6=getLocalAppAliases(_0x281d42)[_0x2664f8],_0x17f562=_0x2018a6?.[_0x3e7ee1(0x14f)];return typeof _0x17f562===_0x3e7ee1(0x11e)&&_0x17f562[_0x3e7ee1(0x124)]()?_0x17f562[_0x3e7ee1(0x124)]():undefined;}export function readAppCodeFromConfig(){const _0x30e7d8=a73_0x26495d,_0x134a3a=readRawConfig(),_0x2d9406=_0x134a3a[_0x30e7d8(0x14f)]??_0x134a3a['app'];if(typeof _0x2d9406==='string'&&_0x2d9406[_0x30e7d8(0x124)]())return _0x2d9406['trim']();const _0x3cea80=resolveLocalAppAliasCode(_0x134a3a,typeof _0x134a3a[_0x30e7d8(0x123)]===_0x30e7d8(0x11e)?_0x134a3a[_0x30e7d8(0x123)]:undefined);if(_0x3cea80)return _0x3cea80;const _0xc00abc=normalizeEnv(String(_0x134a3a[_0x30e7d8(0x12a)]||_0x30e7d8(0x15a))),_0x2eebf3=isDaily(_0xc00abc)?_0x30e7d8(0x157):isDev(_0xc00abc)?_0x30e7d8(0x148):'production',_0x53afc1=resolveCachedAppCode(typeof _0x134a3a[_0x30e7d8(0x123)]===_0x30e7d8(0x11e)?_0x134a3a['defaultApp']:undefined,_0x2eebf3,typeof _0x134a3a['accessKey']==='string'?_0x134a3a['accessKey']:undefined);if(_0x53afc1)return _0x53afc1;const _0x480ac5=Object['values'](getLocalAppAliases(_0x134a3a))[_0x30e7d8(0x139)](_0xd20084=>_0xd20084?.[_0x30e7d8(0x14f)]);return typeof _0x480ac5?.['appcode']===_0x30e7d8(0x11e)&&_0x480ac5[_0x30e7d8(0x14f)][_0x30e7d8(0x124)]()?_0x480ac5[_0x30e7d8(0x14f)][_0x30e7d8(0x124)]():undefined;}export function readScopedConfig(_0x3948ed){const _0x5eea14=a73_0x26495d,_0x2e2b7b=_0x3948ed[_0x5eea14(0x150)]?_0x5eea14(0x150):_0x5eea14(0x153);return readConfigFile(resolveWriteConfigPath(_0x2e2b7b));}export function writeScopedConfig(_0xb2af3a,_0x3c2e29){const _0x371e70=a73_0x26495d,_0x4d0392=_0x3c2e29[_0x371e70(0x150)]?_0x371e70(0x150):_0x371e70(0x153);writeConfigFile(resolveWriteConfigPath(_0x4d0392),_0xb2af3a);}export async function initGlobalEnvironment(_0x2474ef){const _0x55005e=a73_0x26495d,{initEnv:_0x52d6f5}=await import('./constant/env.js');_0x52d6f5(_0x2474ef[_0x55005e(0x12a)]);const {initDomains:_0x3bac5f}=await import(_0x55005e(0x12c));_0x3bac5f({'apiDomain':_0x2474ef[_0x55005e(0x120)]['apiDomain']||_0x2474ef[_0x55005e(0x120)][_0x55005e(0x146)]||undefined,'userDomain':_0x2474ef[_0x55005e(0x120)]['userDomain']||undefined,'runtimeDomain':_0x2474ef[_0x55005e(0x120)][_0x55005e(0x131)]||undefined,'skillHubDomain':_0x2474ef[_0x55005e(0x120)][_0x55005e(0x127)]||undefined});}export function getProjectConfigPath(){const _0x1d83f1=a73_0x26495d;return resolveConfigPath(process[_0x1d83f1(0x151)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x1db0da){const _0x1d28fd=a73_0x26495d;if(!existsSync(_0x1db0da))return{'status':_0x1d28fd(0x125)};try{const _0x246297=readFileSync(_0x1db0da,{'encoding':'utf8'});if(!_0x246297?.[_0x1d28fd(0x124)]())return{'status':_0x1d28fd(0x14c)};const _0x2f0800=JSON['parse'](_0x246297);return{'status':'ok','data':_0x2f0800};}catch(_0x4f8c1e){return{'status':_0x1d28fd(0x122),'message':_0x4f8c1e instanceof Error?_0x4f8c1e['message']:String(_0x4f8c1e)};}}export function loadRawConfigLayers(_0xb78b48){const _0x4f8a1d=a73_0x26495d;let _0x23767a={},_0x1aa4fb={},_0x9e5ea2,_0x3986ea;try{_0x9e5ea2=resolveConfigPath(homedir());if(_0x9e5ea2){const _0x54db28=readFileSync(_0x9e5ea2,{'encoding':'utf8'});if(_0x54db28)_0x23767a=JSON[_0x4f8a1d(0x133)](_0x54db28);}}catch{}try{const _0x1c0fcf=_0xb78b48||process[_0x4f8a1d(0x151)]();_0x3986ea=resolveConfigPath(_0x1c0fcf);if(_0x3986ea){const _0x283d6f=readFileSync(_0x3986ea,{'encoding':'utf8'});if(_0x283d6f)_0x1aa4fb=JSON[_0x4f8a1d(0x133)](_0x283d6f);}}catch{}return{'globalPath':_0x9e5ea2,'projectPath':_0x3986ea,'globalConfig':_0x23767a,'projectConfig':_0x1aa4fb};}function mergeRawConfigLayers(_0x5f3252){const _0x2ead65=a73_0x26495d,{globalConfig:_0x174003,projectConfig:_0x2ed345}=_0x5f3252;if(_0x2ed345[_0x2ead65(0x113)]===![]){const _0xa10fcc={..._0x2ed345};return delete _0xa10fcc[_0x2ead65(0x113)],_0xa10fcc;}const _0x2c002d={..._0x174003,..._0x2ed345};if('defaultApp'in _0x2ed345)_0x2c002d[_0x2ead65(0x123)]=_0x2ed345[_0x2ead65(0x123)];else _0x174003[_0x2ead65(0x123)]&&(_0x2c002d[_0x2ead65(0x123)]=_0x174003[_0x2ead65(0x123)]);return _0x2c002d;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x3d9c40){return mergeRawConfigLayers(loadRawConfigLayers(_0x3d9c40));}export function readRawConfigWithLayers(_0x2e8219){const _0x3efa8e=loadRawConfigLayers(_0x2e8219);return{'config':mergeRawConfigLayers(_0x3efa8e),'layers':_0x3efa8e};}export function resolveDefaultAppSource(_0x1ac87d){const _0x3c3d29=a73_0x26495d;if(_0x3c3d29(0x123)in _0x1ac87d[_0x3c3d29(0x13c)])return _0x3c3d29(0x153);if(_0x1ac87d[_0x3c3d29(0x13c)][_0x3c3d29(0x113)]===![])return null;if(_0x1ac87d[_0x3c3d29(0x116)][_0x3c3d29(0x123)])return _0x3c3d29(0x150);return null;}function a73_0x4813(_0x56f111,_0x38d972){_0x56f111=_0x56f111-0x113;const _0x3c5d11=a73_0x3c5d();let _0x481317=_0x3c5d11[_0x56f111];return _0x481317;}function buildConfig(_0x3fe9af,_0xbaf8d){const _0x3496f2=a73_0x26495d,_0x4545f4=_0x3fe9af[_0x3496f2(0x123)]||undefined,_0x54808b=_0xbaf8d['app']||env('APP')||undefined,_0x8573ce=_0x54808b||_0x4545f4||undefined,_0x5dfb6b=env('ACCESS_KEY')||_0x3fe9af['accessKey']||undefined,_0x3485c3=_0xbaf8d['env']||env(_0x3496f2(0x118))||_0x3fe9af[_0x3496f2(0x12a)]||DEFAULT_CONFIG_VALUES[_0x3496f2(0x12a)],_0x39b5ef=normalizeEnv(String(_0x3485c3)),_0x2719c7=isDaily(_0x39b5ef)?_0x3496f2(0x157):isDev(_0x39b5ef)?_0x3496f2(0x148):_0x3496f2(0x15a),_0x2bdeae=typeof _0xbaf8d['appcode']===_0x3496f2(0x11e)?_0xbaf8d[_0x3496f2(0x14f)]:undefined,_0x1d7d70=env(_0x3496f2(0x134)),_0x5c32af=_0x54808b?undefined:_0x3fe9af[_0x3496f2(0x14f)]||_0x3fe9af[_0x3496f2(0x13b)]||undefined,_0x3aaa02=_0x54808b||(_0x5c32af?undefined:_0x4545f4),_0x514041=resolveLocalAppAliasCode(_0x3fe9af,_0x3aaa02),_0x2aa743=resolveCachedAppCode(_0x3aaa02,_0x2719c7,_0x5dfb6b),_0x4feb1a=_0x2bdeae||_0x1d7d70||_0x5c32af||_0x514041||_0x2aa743||undefined,_0xa705a7=_0x2bdeae?_0x3496f2(0x154):_0x1d7d70?_0x3496f2(0x12a):_0x5c32af?_0x3496f2(0x143):_0x514041?'local-alias':_0x2aa743?_0x3496f2(0x142):undefined,_0x3ba1b3=_0x3fe9af['locale']||DEFAULT_CONFIG_VALUES[_0x3496f2(0x12b)],_0x1422cc=undefined,_0x2781ee=_0xbaf8d[_0x3496f2(0x117)]||env(_0x3496f2(0x14d))||_0x3fe9af['format'],_0x5a5705=normalizeLegacyOutputFormat(_0x2781ee),_0x4b52ca=env(_0x3496f2(0x14a))||_0x3fe9af[_0x3496f2(0x11a)],_0x456d36=_0x4b52ca?Number(_0x4b52ca)||undefined:undefined,_0x16803d=_0x3fe9af[_0x3496f2(0x15c)]||_0x3fe9af['maxRisk'],_0x342e7b=_0x16803d===_0x3496f2(0x130)||_0x16803d===_0x3496f2(0x11d)||_0x16803d===_0x3496f2(0x121)?_0x16803d:DEFAULT_CONFIG_VALUES[_0x3496f2(0x15c)],_0x5aaafb=env(_0x3496f2(0x11c)),_0x7c2613=_0x5aaafb==='1'||_0x5aaafb===_0x3496f2(0x14b);return{'appCode':typeof _0x4feb1a===_0x3496f2(0x11e)&&_0x4feb1a['trim']()?_0x4feb1a[_0x3496f2(0x124)]():undefined,'appCodeSource':_0xa705a7,'env':_0x2719c7,'locale':_0x3ba1b3,'cookie':_0x1422cc,'accessKey':_0x5dfb6b,'format':_0x5a5705,'pageSize':_0x456d36,'riskLevel':_0x342e7b,'verbose':_0x7c2613,'defaultApp':_0x4545f4,'currentApp':typeof _0x8573ce===_0x3496f2(0x11e)?_0x8573ce:undefined,'raw':_0x3fe9af};}function env(_0x591c5e){return productEnv(_0x591c5e);}async function buildAuth(_0x134c8b){const _0xb1053a=a73_0x26495d,_0x4fd567='',_0x1289be=!!_0x134c8b[_0xb1053a(0x13a)];return{'cookie':_0x4fd567,'isLoggedIn':_0x1289be,async 'getOrLogin'(){const _0x3f29b6=_0xb1053a;if(_0x1289be)return _0x4fd567;throw CliErrors[_0x3f29b6(0x141)]();}};}