@lovrabet/lovrabet-cli 2.1.12 → 2.1.13-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 (120) 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/function-name-adapter.js +1 -0
  41. package/lib/commands/service/index.js +1 -1
  42. package/lib/commands/service/registry.js +1 -1
  43. package/lib/commands/skill/commands/create.js +1 -1
  44. package/lib/commands/skill/commands/install.js +1 -1
  45. package/lib/commands/skill/commands/list.js +1 -1
  46. package/lib/commands/skill/commands/push.js +1 -1
  47. package/lib/commands/skill/commands/validate.js +1 -1
  48. package/lib/commands/skill/flags.js +1 -1
  49. package/lib/commands/skill/index.js +1 -1
  50. package/lib/commands/skill/manifest-helpers.js +1 -1
  51. package/lib/commands/skill/push-execute.js +1 -1
  52. package/lib/commands/skill/push-flow-helpers.js +1 -1
  53. package/lib/commands/skill/push-retarget.js +1 -1
  54. package/lib/commands/skill/scopes.js +1 -1
  55. package/lib/commands/skill/summary.js +1 -1
  56. package/lib/commands/skill/templates.js +1 -1
  57. package/lib/commands/skill/validate.js +1 -1
  58. package/lib/commands/sql/detail.js +1 -1
  59. package/lib/commands/sql/exec.js +1 -1
  60. package/lib/commands/sql/index.js +1 -1
  61. package/lib/commands/update.js +1 -1
  62. package/lib/commands/workspace/index.js +1 -1
  63. package/lib/config/schema.js +1 -1
  64. package/lib/constant/app.js +1 -1
  65. package/lib/constant/auth-mode.js +1 -1
  66. package/lib/constant/cli.js +1 -1
  67. package/lib/constant/defaults.js +1 -1
  68. package/lib/constant/distribution.js +1 -1
  69. package/lib/constant/domain.js +1 -1
  70. package/lib/constant/env.js +1 -1
  71. package/lib/constant/output.js +1 -1
  72. package/lib/constant/product.js +1 -1
  73. package/lib/constant/risk.js +1 -1
  74. package/lib/constant/url.js +1 -1
  75. package/lib/context.js +1 -1
  76. package/lib/core/api-client.js +1 -1
  77. package/lib/core/db-resolver.js +1 -1
  78. package/lib/core/sdk-client.js +1 -1
  79. package/lib/errors.js +1 -1
  80. package/lib/framework/build-all-flags.js +1 -1
  81. package/lib/framework/dryrun.js +1 -1
  82. package/lib/framework/flags.js +1 -1
  83. package/lib/framework/help.js +1 -1
  84. package/lib/framework/index.js +1 -1
  85. package/lib/framework/output.js +1 -1
  86. package/lib/framework/preparse.js +1 -1
  87. package/lib/framework/rate-limit.js +1 -1
  88. package/lib/framework/response.js +1 -1
  89. package/lib/framework/runner-confirmation.js +1 -1
  90. package/lib/framework/runner-error.js +1 -1
  91. package/lib/framework/runner.js +1 -1
  92. package/lib/framework/schema-export.js +1 -1
  93. package/lib/framework/service-order.js +1 -1
  94. package/lib/framework/types.js +1 -1
  95. package/lib/generated/build-info.js +1 -1
  96. package/lib/help.js +1 -1
  97. package/lib/skills/npx-skills-add.js +1 -1
  98. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  99. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  100. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  101. package/lib/skills/runtime-skill-sync/links.js +1 -1
  102. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  103. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  104. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  105. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  106. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  107. package/lib/skills/runtime-skill-sync/push.js +1 -1
  108. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  109. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  110. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  111. package/lib/skills/runtime-skill-sync.js +1 -1
  112. package/lib/utils/apply-jq-filter.js +1 -1
  113. package/lib/utils/logger.js +1 -1
  114. package/lib/utils/lossless-json.js +1 -1
  115. package/lib/utils/params.js +1 -1
  116. package/lib/utils/platform.js +1 -1
  117. package/lib/utils/update-notice.js +1 -1
  118. package/lib/utils/version.js +1 -1
  119. package/lib/utils/write-cli-side-channel.js +1 -1
  120. package/package.json +1 -1
@@ -1 +1 @@
1
- const a55_0x14be65=a55_0x47c6;(function(_0x425949,_0x3e974f){const _0x395829=a55_0x47c6,_0x4b32bf=_0x425949();while(!![]){try{const _0x59380d=-parseInt(_0x395829(0x1af))/0x1+-parseInt(_0x395829(0x1da))/0x2+parseInt(_0x395829(0x1e0))/0x3+parseInt(_0x395829(0x19c))/0x4+-parseInt(_0x395829(0x1ae))/0x5+-parseInt(_0x395829(0x1ac))/0x6+parseInt(_0x395829(0x1f2))/0x7;if(_0x59380d===_0x3e974f)break;else _0x4b32bf['push'](_0x4b32bf['shift']());}catch(_0x77e1dd){_0x4b32bf['push'](_0x4b32bf['shift']());}}}(a55_0x2bb3,0x3b0ec));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';function a55_0x2bb3(){const _0x45fef7=['object','dataset','filter','push','search','string','split','false','SKILL.md\x20must\x20start\x20with\x20frontmatter.','Add\x20frontmatter\x20with\x20name\x20and\x20description.','743332TzEgJr','name','isFile','frontmatter-required','map','display-name-recommended','380226hwTfvj','isSymbolicLink','hasFrontmatter','schema','warning','type','boolean','\x20Fix:\x20','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','errors','config','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','ruleId','true','example','toUpperCase','internal','read','8996330DFspcO','validation','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','1413908HzXMil','level','data','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','error','path','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','test','slice','flatMap','Frontmatter\x20description\x20is\x20empty.','number','displayName','page','registry','isArray','1820604ELHOBc','description','2098400AcRcjB','428729uQpjWy','isDirectory','content','Frontmatter\x20name\x20is\x20missing.','file','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','section','suggestion','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','Skill\x20directory\x20not\x20found:\x20','project','toLowerCase','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','SKILL.md\x20is\x20not\x20a\x20file.','app','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','trainer','raw','line','structure-complete','example-recommended','rabetbase-cli-reference','description-required','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','join','utf8','length','match','metadata','trim','auth','sql'];a55_0x2bb3=function(){return _0x45fef7;};return a55_0x2bb3();}import{resolve}from'node:path';import{parse as a55_0x57fb66}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE='SKILL.md',SUPPORTED_SKILL_TYPES=new Set(['write',a55_0x14be65(0x1f1),a55_0x14be65(0x1c0)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;function a55_0x47c6(_0x545fe8,_0x126d98){_0x545fe8=_0x545fe8-0x199;const _0x2bb39b=a55_0x2bb3();let _0x47c6aa=_0x2bb39b[_0x545fe8];return _0x47c6aa;}export function validateSkillDirectory(_0x381993,_0xe1986={}){const _0x198a32=a55_0x14be65,_0x352904=resolveSkillDirectoryRoot(_0x381993),_0x2da475=[],_0x13fd72=loadRequiredSkillFile(_0x352904,_0x2da475),_0x5a5ec7=_0x13fd72?parseFrontmatter(_0x13fd72[_0x198a32(0x1b1)]):{'hasFrontmatter':![]};_0x13fd72&&validateFrontmatter(_0x13fd72['path'],_0x5a5ec7,_0x2da475);validateRuntimeCliReferences(_0x352904,_0x2da475);const _0x416e2b=_0x2da475[_0x198a32(0x1d2)](_0x3de408=>_0x3de408[_0x198a32(0x19d)]===_0x198a32(0x1a0)),_0x3ccac6=_0x2da475[_0x198a32(0x1d2)](_0x4cf865=>_0x4cf865['level']===_0x198a32(0x1e4));return{'ok':_0x416e2b[_0x198a32(0x1ca)]===0x0,'dir':_0x352904,'type':_0x5a5ec7[_0x198a32(0x1e5)],'errors':_0x416e2b,'warnings':_0x3ccac6};}function resolveSkillDirectoryRoot(_0x263c6d){const _0x37ba99=a55_0x14be65,_0x715691=resolve(_0x263c6d);if(!existsSync(_0x715691))throw CliErrors['validation'](_0x37ba99(0x1b9)+_0x263c6d);const _0x18be7a=lstatSync(_0x715691);if(_0x18be7a[_0x37ba99(0x1b0)]())return _0x715691;if(_0x18be7a[_0x37ba99(0x1e1)]()){const _0x477b98=realpathSync(_0x715691);if(lstatSync(_0x477b98)[_0x37ba99(0x1b0)]())return _0x477b98;}throw CliErrors[_0x37ba99(0x199)](_0x37ba99(0x1b9)+_0x263c6d);}export function throwIfSkillValidationFailed(_0x403bcf,_0x4c3190=![]){const _0x3d068c=a55_0x14be65;if(_0x403bcf['ok'])return;const _0x14fe98=_0x403bcf[_0x3d068c(0x1e9)]['map'](_0x1b1bc0=>{const _0x1b68d9=_0x3d068c,_0x59e1cb=_0x1b1bc0['section']?'#'+_0x1b1bc0[_0x1b68d9(0x1b5)]:'';return _0x1b1bc0[_0x1b68d9(0x19d)][_0x1b68d9(0x1ef)]()+'\x20'+_0x1b1bc0[_0x1b68d9(0x1ec)]+'\x20'+_0x1b1bc0[_0x1b68d9(0x1b3)]+_0x59e1cb+':\x20'+_0x1b1bc0['message']+_0x1b68d9(0x1e7)+_0x1b1bc0[_0x1b68d9(0x1b6)];});throw CliErrors[_0x3d068c(0x199)]('Skill\x20validation\x20failed:\x0a'+_0x14fe98[_0x3d068c(0x1c8)]('\x0a'),_0x3d068c(0x1b7));}function loadRequiredSkillFile(_0x531622,_0x2a8fdb){const _0x183a41=a55_0x14be65,_0x3920ff=resolve(_0x531622,SKILL_FILE);if(!existsSync(_0x3920ff))return _0x2a8fdb[_0x183a41(0x1d3)](issue(_0x183a41(0x1a0),_0x183a41(0x1c3),SKILL_FILE,'Missing\x20SKILL.md.',_0x183a41(0x1b8))),undefined;const _0xa2dc67=lstatSync(_0x3920ff);if(_0xa2dc67[_0x183a41(0x1e1)]())return _0x2a8fdb['push'](issue(_0x183a41(0x1a0),_0x183a41(0x1c3),SKILL_FILE,'SKILL.md\x20must\x20be\x20a\x20regular\x20file.',_0x183a41(0x1bf))),undefined;if(!_0xa2dc67[_0x183a41(0x1dc)]())return _0x2a8fdb[_0x183a41(0x1d3)](issue(_0x183a41(0x1a0),_0x183a41(0x1c3),SKILL_FILE,_0x183a41(0x1bd),_0x183a41(0x19a))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x3920ff,_0x183a41(0x1c9))};}function validateFrontmatter(_0x4c5888,_0x4f7fef,_0x1078cc){const _0x1da5a8=a55_0x14be65;if(!_0x4f7fef[_0x1da5a8(0x1e2)]){_0x1078cc['push'](issue(_0x1da5a8(0x1a0),_0x1da5a8(0x1dd),_0x4c5888,_0x1da5a8(0x1d8),_0x1da5a8(0x1d9)));return;}!_0x4f7fef[_0x1da5a8(0x1db)]?.[_0x1da5a8(0x1cd)]()&&_0x1078cc[_0x1da5a8(0x1d3)](issue(_0x1da5a8(0x1a0),_0x1da5a8(0x1dd),_0x4c5888,_0x1da5a8(0x1b2),_0x1da5a8(0x1a2))),!_0x4f7fef[_0x1da5a8(0x1a8)]?.[_0x1da5a8(0x1cd)]()&&_0x1078cc['push'](issue(_0x1da5a8(0x1e4),_0x1da5a8(0x1df),_0x4c5888,'Frontmatter\x20displayName\x20is\x20missing.',_0x1da5a8(0x1bc))),!_0x4f7fef[_0x1da5a8(0x1ee)]?.[_0x1da5a8(0x1cd)]()&&_0x1078cc[_0x1da5a8(0x1d3)](issue('warning',_0x1da5a8(0x1c4),_0x4c5888,'Frontmatter\x20example\x20is\x20missing.',_0x1da5a8(0x1e8))),!_0x4f7fef[_0x1da5a8(0x1ad)]?.[_0x1da5a8(0x1cd)]()&&_0x1078cc[_0x1da5a8(0x1d3)](issue(_0x1da5a8(0x1a0),_0x1da5a8(0x1c6),_0x4c5888,_0x1da5a8(0x1a6),_0x1da5a8(0x19f))),_0x4f7fef[_0x1da5a8(0x1f0)]===!![]&&_0x1078cc['push'](issue(_0x1da5a8(0x1a0),'internal-skill',_0x4c5888,_0x1da5a8(0x19b),_0x1da5a8(0x1c7))),_0x4f7fef[_0x1da5a8(0x1e5)]?.[_0x1da5a8(0x1cd)]()&&!SUPPORTED_SKILL_TYPES['has'](_0x4f7fef['type'])&&_0x1078cc[_0x1da5a8(0x1d3)](issue(_0x1da5a8(0x1a0),_0x1da5a8(0x1dd),_0x4c5888,_0x1da5a8(0x1b4),'Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.'));}function validateRuntimeCliReferences(_0x1564fd,_0x988a90){const _0x16c150=a55_0x14be65;for(const _0x207c32 of findRabetbaseCliInvocations(_0x1564fd)){_0x988a90['push'](issue(_0x16c150(0x1e4),_0x16c150(0x1c5),_0x207c32[_0x16c150(0x1b3)],'This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.',_0x16c150(0x1eb),'L'+_0x207c32[_0x16c150(0x1c2)]));}}function findRabetbaseCliInvocations(_0x597c73){const _0x5e3b07=a55_0x14be65;return scanSkillDirectory(_0x597c73)[_0x5e3b07(0x1d2)](_0x2d3c0a=>TEXT_SKILL_FILE_PATTERN[_0x5e3b07(0x1a3)](_0x2d3c0a['path']))[_0x5e3b07(0x1a5)](_0x316323=>{const _0x4ba252=_0x5e3b07,_0x2c6351=fileText(_0x316323);return _0x2c6351[_0x4ba252(0x1d6)](/\r?\n/)['map']((_0x3573d1,_0x6ce49)=>({'file':_0x316323[_0x4ba252(0x1a1)],'line':_0x6ce49+0x1,'text':_0x3573d1}))[_0x4ba252(0x1d2)](({text:_0x254705})=>isRabetbaseCliInvocation(_0x254705))[_0x4ba252(0x1de)](({file:_0x47091c,line:_0x1c320c})=>({'file':_0x47091c,'line':_0x1c320c}));});}const RABETBASE_SUBCOMMANDS=[a55_0x14be65(0x1d1),a55_0x14be65(0x1cf),'bff',a55_0x14be65(0x1a9),a55_0x14be65(0x1ba),a55_0x14be65(0x1be),a55_0x14be65(0x1e3),'service','artifact','kb',a55_0x14be65(0x1ea),'workspace',a55_0x14be65(0x19e),a55_0x14be65(0x1ce),'logs',a55_0x14be65(0x1aa)],RABETBASE_INVOCATION=new RegExp(String[a55_0x14be65(0x1c1)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS['join']('|')})\b`+String[a55_0x14be65(0x1c1)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x4cc010){const _0x2dac82=a55_0x14be65,_0x1cb0d8=_0x4cc010[_0x2dac82(0x1d4)](/\brabetbase\b/i);if(_0x1cb0d8<0x0)return![];const _0x1feaf8=_0x4cc010[_0x2dac82(0x1a4)](_0x1cb0d8)[_0x2dac82(0x1d6)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION['test'](_0x1feaf8);}function parseFrontmatter(_0x3e3b6e){const _0xddaf23=a55_0x14be65,_0x18ca73=_0x3e3b6e[_0xddaf23(0x1cb)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x18ca73)return{'hasFrontmatter':![]};const _0x2b3918=_0x18ca73[0x1]??'',_0x3e75af={'hasFrontmatter':!![]};let _0x2f8173;try{_0x2f8173=a55_0x57fb66(_0x2b3918);}catch{return _0x3e75af;}const _0x32bbad=asRecord(_0x2f8173);if(!_0x32bbad)return _0x3e75af;_0x3e75af[_0xddaf23(0x1db)]=scalarToString(_0x32bbad[_0xddaf23(0x1db)]),_0x3e75af[_0xddaf23(0x1a8)]=scalarToString(_0x32bbad[_0xddaf23(0x1a8)]),_0x3e75af[_0xddaf23(0x1ad)]=scalarToString(_0x32bbad[_0xddaf23(0x1ad)]),_0x3e75af[_0xddaf23(0x1ee)]=scalarToString(_0x32bbad[_0xddaf23(0x1ee)]);const _0x58589e=asRecord(_0x32bbad[_0xddaf23(0x1cc)]);return _0x58589e&&(_0x3e75af[_0xddaf23(0x1e5)]=scalarToString(_0x58589e['type']),_0x3e75af[_0xddaf23(0x1f0)]=scalarToBoolean(_0x58589e['internal'])),_0x3e75af;}function asRecord(_0x4c29d0){const _0x58bf92=a55_0x14be65;if(_0x4c29d0&&typeof _0x4c29d0===_0x58bf92(0x1d0)&&!Array[_0x58bf92(0x1ab)](_0x4c29d0))return _0x4c29d0;return undefined;}function scalarToString(_0x17c7fb){const _0x3b6ef9=a55_0x14be65;if(typeof _0x17c7fb===_0x3b6ef9(0x1d5))return _0x17c7fb['trim']();if(typeof _0x17c7fb===_0x3b6ef9(0x1a7)||typeof _0x17c7fb===_0x3b6ef9(0x1e6))return String(_0x17c7fb);return undefined;}function scalarToBoolean(_0x3c043b){const _0xeb1e97=a55_0x14be65;if(typeof _0x3c043b===_0xeb1e97(0x1e6))return _0x3c043b;if(typeof _0x3c043b===_0xeb1e97(0x1d5))return cleanBoolean(_0x3c043b);return undefined;}function cleanBoolean(_0x4597f7){const _0x584366=a55_0x14be65,_0x3a70ff=_0x4597f7[_0x584366(0x1cd)]()[_0x584366(0x1bb)]();if(_0x3a70ff===_0x584366(0x1ed))return!![];if(_0x3a70ff===_0x584366(0x1d7))return![];return undefined;}function issue(_0x57c93f,_0xca1e81,_0x8ec1c0,_0xbb6351,_0x48a27e,_0x205e3e){return{'level':_0x57c93f,'ruleId':_0xca1e81,'file':_0x8ec1c0,'section':_0x205e3e,'message':_0xbb6351,'suggestion':_0x48a27e};}
1
+ const a56_0x56a6eb=a56_0x4b6d;(function(_0x541962,_0x24e885){const _0x137f2c=a56_0x4b6d,_0x52c264=_0x541962();while(!![]){try{const _0x4575b7=parseInt(_0x137f2c(0x137))/0x1+parseInt(_0x137f2c(0x16a))/0x2+-parseInt(_0x137f2c(0x163))/0x3*(-parseInt(_0x137f2c(0x129))/0x4)+-parseInt(_0x137f2c(0x148))/0x5*(-parseInt(_0x137f2c(0x152))/0x6)+-parseInt(_0x137f2c(0x147))/0x7+-parseInt(_0x137f2c(0x151))/0x8+-parseInt(_0x137f2c(0x160))/0x9;if(_0x4575b7===_0x24e885)break;else _0x52c264['push'](_0x52c264['shift']());}catch(_0x5ef1f0){_0x52c264['push'](_0x52c264['shift']());}}}(a56_0x2c06,0x2ce70));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a56_0x1ca2ae}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a56_0x56a6eb(0x131),SUPPORTED_SKILL_TYPES=new Set([a56_0x56a6eb(0x158),a56_0x56a6eb(0x138),a56_0x56a6eb(0x14c)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x58b140,_0x2b3ea3={}){const _0x5c6937=a56_0x56a6eb,_0x28aa35=resolveSkillDirectoryRoot(_0x58b140),_0x4791df=[],_0x481f87=loadRequiredSkillFile(_0x28aa35,_0x4791df),_0x5611e9=_0x481f87?parseFrontmatter(_0x481f87[_0x5c6937(0x142)]):{'hasFrontmatter':![]};_0x481f87&&validateFrontmatter(_0x481f87['path'],_0x5611e9,_0x4791df);validateRuntimeCliReferences(_0x28aa35,_0x4791df);const _0x2c30c9=_0x4791df[_0x5c6937(0x167)](_0x1e01e2=>_0x1e01e2['level']==='error'),_0x468ecf=_0x4791df[_0x5c6937(0x167)](_0x4707b5=>_0x4707b5['level']==='warning');return{'ok':_0x2c30c9[_0x5c6937(0x170)]===0x0,'dir':_0x28aa35,'type':_0x5611e9[_0x5c6937(0x15a)],'errors':_0x2c30c9,'warnings':_0x468ecf};}function resolveSkillDirectoryRoot(_0x581773){const _0x238740=a56_0x56a6eb,_0x317e02=resolve(_0x581773);if(!existsSync(_0x317e02))throw CliErrors['validation']('Skill\x20directory\x20not\x20found:\x20'+_0x581773);const _0x45524e=lstatSync(_0x317e02);if(_0x45524e[_0x238740(0x112)]())return _0x317e02;if(_0x45524e[_0x238740(0x11d)]()){const _0xbbb5d=realpathSync(_0x317e02);if(lstatSync(_0xbbb5d)[_0x238740(0x112)]())return _0xbbb5d;}throw CliErrors[_0x238740(0x11b)](_0x238740(0x15c)+_0x581773);}export function throwIfSkillValidationFailed(_0x1aebc1,_0x348c33=![]){const _0x3eafb8=a56_0x56a6eb;if(_0x1aebc1['ok'])return;const _0x27a9ea=_0x1aebc1['errors'][_0x3eafb8(0x11c)](_0x35fe61=>{const _0x363fde=_0x3eafb8,_0x2cd275=_0x35fe61[_0x363fde(0x12b)]?'#'+_0x35fe61[_0x363fde(0x12b)]:'';return _0x35fe61[_0x363fde(0x16d)][_0x363fde(0x14a)]()+'\x20'+_0x35fe61[_0x363fde(0x13d)]+'\x20'+_0x35fe61[_0x363fde(0x141)]+_0x2cd275+':\x20'+_0x35fe61['message']+_0x363fde(0x14e)+_0x35fe61['suggestion'];});throw CliErrors['validation'](_0x3eafb8(0x14b)+_0x27a9ea['join']('\x0a'),_0x3eafb8(0x15b));}function loadRequiredSkillFile(_0x56fc1d,_0x163128){const _0x23e35f=a56_0x56a6eb,_0x4a30c9=resolve(_0x56fc1d,SKILL_FILE);if(!existsSync(_0x4a30c9))return _0x163128[_0x23e35f(0x144)](issue(_0x23e35f(0x156),_0x23e35f(0x125),SKILL_FILE,_0x23e35f(0x124),_0x23e35f(0x136))),undefined;const _0x25e34d=lstatSync(_0x4a30c9);if(_0x25e34d[_0x23e35f(0x11d)]())return _0x163128[_0x23e35f(0x144)](issue(_0x23e35f(0x156),_0x23e35f(0x125),SKILL_FILE,_0x23e35f(0x161),'Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.')),undefined;if(!_0x25e34d[_0x23e35f(0x168)]())return _0x163128[_0x23e35f(0x144)](issue(_0x23e35f(0x156),'structure-complete',SKILL_FILE,_0x23e35f(0x118),'Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x4a30c9,_0x23e35f(0x120))};}function validateFrontmatter(_0x3f1653,_0x1f06c3,_0x3a856b){const _0x9962f5=a56_0x56a6eb;if(!_0x1f06c3[_0x9962f5(0x119)]){_0x3a856b[_0x9962f5(0x144)](issue(_0x9962f5(0x156),_0x9962f5(0x145),_0x3f1653,'SKILL.md\x20must\x20start\x20with\x20frontmatter.',_0x9962f5(0x12a)));return;}!_0x1f06c3['name']?.['trim']()&&_0x3a856b['push'](issue(_0x9962f5(0x156),'frontmatter-required',_0x3f1653,_0x9962f5(0x126),_0x9962f5(0x154))),!_0x1f06c3['displayName']?.[_0x9962f5(0x12f)]()&&_0x3a856b[_0x9962f5(0x144)](issue(_0x9962f5(0x12d),_0x9962f5(0x123),_0x3f1653,_0x9962f5(0x16f),_0x9962f5(0x13b))),!_0x1f06c3['example']?.['trim']()&&_0x3a856b[_0x9962f5(0x144)](issue('warning',_0x9962f5(0x166),_0x3f1653,_0x9962f5(0x16c),'Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.')),!_0x1f06c3[_0x9962f5(0x150)]?.['trim']()&&_0x3a856b[_0x9962f5(0x144)](issue('error',_0x9962f5(0x15f),_0x3f1653,'Frontmatter\x20description\x20is\x20empty.',_0x9962f5(0x116))),_0x1f06c3[_0x9962f5(0x11a)]===!![]&&_0x3a856b[_0x9962f5(0x144)](issue(_0x9962f5(0x156),_0x9962f5(0x134),_0x3f1653,_0x9962f5(0x15e),_0x9962f5(0x117))),_0x1f06c3[_0x9962f5(0x15a)]?.[_0x9962f5(0x12f)]()&&!SUPPORTED_SKILL_TYPES[_0x9962f5(0x16e)](_0x1f06c3[_0x9962f5(0x15a)])&&_0x3a856b['push'](issue(_0x9962f5(0x156),'frontmatter-required',_0x3f1653,_0x9962f5(0x13f),_0x9962f5(0x14f)));}function validateRuntimeCliReferences(_0x47b35d,_0x43ca33){const _0x121ec6=a56_0x56a6eb;for(const _0x2834cb of findRabetbaseCliInvocations(_0x47b35d)){_0x43ca33[_0x121ec6(0x144)](issue(_0x121ec6(0x12d),_0x121ec6(0x164),_0x2834cb['file'],_0x121ec6(0x13c),_0x121ec6(0x169),'L'+_0x2834cb[_0x121ec6(0x113)]));}}function findRabetbaseCliInvocations(_0x117347){const _0x5ed9bf=a56_0x56a6eb;return scanSkillDirectory(_0x117347)[_0x5ed9bf(0x167)](_0xbd7e3c=>TEXT_SKILL_FILE_PATTERN['test'](_0xbd7e3c[_0x5ed9bf(0x115)]))[_0x5ed9bf(0x159)](_0x358e43=>{const _0xcc82ca=_0x5ed9bf,_0x196665=fileText(_0x358e43);return _0x196665[_0xcc82ca(0x146)](/\r?\n/)[_0xcc82ca(0x11c)]((_0x2bcc7b,_0x4e88d7)=>({'file':_0x358e43[_0xcc82ca(0x115)],'line':_0x4e88d7+0x1,'text':_0x2bcc7b}))[_0xcc82ca(0x167)](({text:_0x243f39})=>isRabetbaseCliInvocation(_0x243f39))[_0xcc82ca(0x11c)](({file:_0x3e3f72,line:_0x3ff385})=>({'file':_0x3e3f72,'line':_0x3ff385}));});}const RABETBASE_SUBCOMMANDS=['dataset',a56_0x56a6eb(0x133),a56_0x56a6eb(0x14d),a56_0x56a6eb(0x114),a56_0x56a6eb(0x132),a56_0x56a6eb(0x11e),a56_0x56a6eb(0x130),a56_0x56a6eb(0x155),a56_0x56a6eb(0x121),'kb',a56_0x56a6eb(0x153),a56_0x56a6eb(0x16b),a56_0x56a6eb(0x11f),a56_0x56a6eb(0x140),a56_0x56a6eb(0x165),a56_0x56a6eb(0x122)],RABETBASE_INVOCATION=new RegExp(String['raw']`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS['join']('|')})\b`+String[a56_0x56a6eb(0x15d)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x35f2e3){const _0x27840c=a56_0x56a6eb,_0x52c10b=_0x35f2e3['search'](/\brabetbase\b/i);if(_0x52c10b<0x0)return![];const _0x37e779=_0x35f2e3[_0x27840c(0x162)](_0x52c10b)[_0x27840c(0x146)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x27840c(0x12e)](_0x37e779);}function parseFrontmatter(_0x5ab9e1){const _0xf2f862=a56_0x56a6eb,_0x3a6f82=_0x5ab9e1['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x3a6f82)return{'hasFrontmatter':![]};const _0x232d23=_0x3a6f82[0x1]??'',_0x380960={'hasFrontmatter':!![]};let _0x1918c6;try{_0x1918c6=a56_0x1ca2ae(_0x232d23);}catch{return _0x380960;}const _0x27873b=asRecord(_0x1918c6);if(!_0x27873b)return _0x380960;_0x380960[_0xf2f862(0x157)]=scalarToString(_0x27873b[_0xf2f862(0x157)]),_0x380960[_0xf2f862(0x13a)]=scalarToString(_0x27873b[_0xf2f862(0x13a)]),_0x380960[_0xf2f862(0x150)]=scalarToString(_0x27873b[_0xf2f862(0x150)]),_0x380960[_0xf2f862(0x135)]=scalarToString(_0x27873b['example']);const _0x3c656b=asRecord(_0x27873b[_0xf2f862(0x171)]);return _0x3c656b&&(_0x380960[_0xf2f862(0x15a)]=scalarToString(_0x3c656b[_0xf2f862(0x15a)]),_0x380960['internal']=scalarToBoolean(_0x3c656b[_0xf2f862(0x11a)])),_0x380960;}function asRecord(_0x48298d){const _0x5dac72=a56_0x56a6eb;if(_0x48298d&&typeof _0x48298d==='object'&&!Array[_0x5dac72(0x128)](_0x48298d))return _0x48298d;return undefined;}function scalarToString(_0x24eaaf){const _0x2b64e1=a56_0x56a6eb;if(typeof _0x24eaaf===_0x2b64e1(0x13e))return _0x24eaaf['trim']();if(typeof _0x24eaaf===_0x2b64e1(0x143)||typeof _0x24eaaf===_0x2b64e1(0x139))return String(_0x24eaaf);return undefined;}function scalarToBoolean(_0x1fc6f5){const _0x787298=a56_0x56a6eb;if(typeof _0x1fc6f5===_0x787298(0x139))return _0x1fc6f5;if(typeof _0x1fc6f5===_0x787298(0x13e))return cleanBoolean(_0x1fc6f5);return undefined;}function a56_0x4b6d(_0x2d606e,_0x495317){_0x2d606e=_0x2d606e-0x112;const _0x2c06ac=a56_0x2c06();let _0x4b6db6=_0x2c06ac[_0x2d606e];return _0x4b6db6;}function cleanBoolean(_0x4baeae){const _0x2d3563=a56_0x56a6eb,_0x573061=_0x4baeae['trim']()[_0x2d3563(0x149)]();if(_0x573061===_0x2d3563(0x127))return!![];if(_0x573061===_0x2d3563(0x12c))return![];return undefined;}function a56_0x2c06(){const _0x16c54d=['Skill\x20directory\x20not\x20found:\x20','raw','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','description-required','14544ClFDmE','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','slice','321YAAzmQ','rabetbase-cli-reference','logs','example-recommended','filter','isFile','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','38732mupaZY','workspace','Frontmatter\x20example\x20is\x20missing.','level','has','Frontmatter\x20displayName\x20is\x20missing.','length','metadata','isDirectory','line','page','path','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','SKILL.md\x20is\x20not\x20a\x20file.','hasFrontmatter','internal','validation','map','isSymbolicLink','app','data','utf8','artifact','registry','display-name-recommended','Missing\x20SKILL.md.','structure-complete','Frontmatter\x20name\x20is\x20missing.','true','isArray','13652ndzMOm','Add\x20frontmatter\x20with\x20name\x20and\x20description.','section','false','warning','test','trim','schema','SKILL.md','project','sql','internal-skill','example','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','153846yEVaDL','read','boolean','displayName','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','ruleId','string','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','auth','file','content','number','push','frontmatter-required','split','1314824xBnlPP','15tsAIWa','toLowerCase','toUpperCase','Skill\x20validation\x20failed:\x0a','trainer','bff','\x20Fix:\x20','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.','description','2190640wkDgbl','217590VKKony','config','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','service','error','name','write','flatMap','type','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.'];a56_0x2c06=function(){return _0x16c54d;};return a56_0x2c06();}function issue(_0xac5ef,_0x1d232f,_0x26da27,_0x131588,_0x5607b8,_0x168469){return{'level':_0xac5ef,'ruleId':_0x1d232f,'file':_0x26da27,'section':_0x168469,'message':_0x131588,'suggestion':_0x5607b8};}
@@ -1 +1 @@
1
- const a56_0x3225ed=a56_0x4500;(function(_0x1043c0,_0x535319){const _0x39bb55=a56_0x4500,_0x178599=_0x1043c0();while(!![]){try{const _0x4060b9=-parseInt(_0x39bb55(0x103))/0x1*(parseInt(_0x39bb55(0xf6))/0x2)+parseInt(_0x39bb55(0xf9))/0x3+parseInt(_0x39bb55(0xff))/0x4+parseInt(_0x39bb55(0x101))/0x5+-parseInt(_0x39bb55(0x107))/0x6+parseInt(_0x39bb55(0xfd))/0x7+-parseInt(_0x39bb55(0x104))/0x8;if(_0x4060b9===_0x535319)break;else _0x178599['push'](_0x178599['shift']());}catch(_0x5d5ed2){_0x178599['push'](_0x178599['shift']());}}}(a56_0x4e6a,0xe8f68));function a56_0x4e6a(){const _0x2a47d4=['2985414KhDiNG','dbId','sqlCode','bool','5588331cWhGSo','sql','7544692iXpgsf','sqlcode','6664975gYnTLk','detail','839420pkLgFG','18051272hgEOPX','sqlContent','appCode','739044XmgMlI','verbose','4RtVukn','str','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode'];a56_0x4e6a=function(){return _0x2a47d4;};return a56_0x4e6a();}import{getSqlQueryInfo}from'../../core/api-client.js';function a56_0x4500(_0x19bede,_0x12df48){_0x19bede=_0x19bede-0xf5;const _0x4e6a56=a56_0x4e6a();let _0x45000c=_0x4e6a56[_0x19bede];return _0x45000c;}import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a56_0x3225ed(0xfe),'command':a56_0x3225ed(0x102),'description':a56_0x3225ed(0xf8),'risk':'read','flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x2f931f){const _0x33f3c7=a56_0x3225ed,_0x13d3b8=await getSqlQueryInfo(_0x2f931f[_0x33f3c7(0x106)],_0x2f931f[_0x33f3c7(0xf7)](_0x33f3c7(0x100))),_0x386767=_0x2f931f[_0x33f3c7(0xfc)](_0x33f3c7(0xf5));if(_0x386767)return{'ok':!![],'data':_0x13d3b8};const _0x33ad6e=_0x13d3b8[_0x33f3c7(0xfa)]?await getDbName(_0x2f931f[_0x33f3c7(0x106)],_0x13d3b8[_0x33f3c7(0xfa)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x13d3b8[_0x33f3c7(0xfb)],'sqlName':_0x13d3b8['sqlName'],'db':_0x33ad6e?_0x33ad6e+'\x20('+_0x13d3b8[_0x33f3c7(0xfa)]+')':_0x13d3b8['dbId']??'','description':_0x13d3b8['description']??'','sqlContent':_0x13d3b8[_0x33f3c7(0x105)]??''}};}};
1
+ function a57_0x1628(_0x4dc944,_0x113741){_0x4dc944=_0x4dc944-0x1ce;const _0x1a8456=a57_0x1a84();let _0x162839=_0x1a8456[_0x4dc944];return _0x162839;}const a57_0x4192c0=a57_0x1628;(function(_0x5f5b85,_0x42cc52){const _0x87ba41=a57_0x1628,_0xf76829=_0x5f5b85();while(!![]){try{const _0x465dae=parseInt(_0x87ba41(0x1cf))/0x1*(-parseInt(_0x87ba41(0x1d1))/0x2)+-parseInt(_0x87ba41(0x1d2))/0x3*(-parseInt(_0x87ba41(0x1d8))/0x4)+-parseInt(_0x87ba41(0x1e3))/0x5*(parseInt(_0x87ba41(0x1d9))/0x6)+parseInt(_0x87ba41(0x1d5))/0x7+-parseInt(_0x87ba41(0x1e1))/0x8*(-parseInt(_0x87ba41(0x1df))/0x9)+-parseInt(_0x87ba41(0x1e2))/0xa*(-parseInt(_0x87ba41(0x1db))/0xb)+-parseInt(_0x87ba41(0x1d7))/0xc;if(_0x465dae===_0x42cc52)break;else _0xf76829['push'](_0xf76829['shift']());}catch(_0x352ba8){_0xf76829['push'](_0xf76829['shift']());}}}(a57_0x1a84,0x3d4ca));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a57_0x1a84(){const _0xc8d633=['3YiGxfp','verbose','sqlCode','1411606dKeyHI','read','4713660EaVmBV','1894532rCLjAJ','164658xKCQUh','detail','1837jLoWwb','appCode','dbId','sqlName','270VglDaU','bool','21352dUiNbq','11540KCVCmi','10wnuOoD','sqlContent','249306kTYiQK','str','2QCZZoq'];a57_0x1a84=function(){return _0xc8d633;};return a57_0x1a84();}export const sqlDetail={'service':'sql','command':a57_0x4192c0(0x1da),'description':'Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','risk':a57_0x4192c0(0x1d6),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x3e0d34){const _0x1dd3da=a57_0x4192c0,_0x3045c2=await getSqlQueryInfo(_0x3e0d34[_0x1dd3da(0x1dc)],_0x3e0d34[_0x1dd3da(0x1d0)]('sqlcode')),_0x5859cf=_0x3e0d34[_0x1dd3da(0x1e0)](_0x1dd3da(0x1d3));if(_0x5859cf)return{'ok':!![],'data':_0x3045c2};const _0x38db6f=_0x3045c2[_0x1dd3da(0x1dd)]?await getDbName(_0x3e0d34[_0x1dd3da(0x1dc)],_0x3045c2['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x3045c2[_0x1dd3da(0x1d4)],'sqlName':_0x3045c2[_0x1dd3da(0x1de)],'db':_0x38db6f?_0x38db6f+'\x20('+_0x3045c2[_0x1dd3da(0x1dd)]+')':_0x3045c2[_0x1dd3da(0x1dd)]??'','description':_0x3045c2['description']??'','sqlContent':_0x3045c2[_0x1dd3da(0x1ce)]??''}};}};
@@ -1 +1 @@
1
- const a57_0x2f1a28=a57_0x2858;(function(_0x2feee8,_0x269132){const _0xa574c8=a57_0x2858,_0x1d33dc=_0x2feee8();while(!![]){try{const _0x1dea1d=-parseInt(_0xa574c8(0x1e8))/0x1+parseInt(_0xa574c8(0x1e7))/0x2+parseInt(_0xa574c8(0x1ea))/0x3+parseInt(_0xa574c8(0x1f7))/0x4*(-parseInt(_0xa574c8(0x1f5))/0x5)+parseInt(_0xa574c8(0x1ee))/0x6+-parseInt(_0xa574c8(0x1f4))/0x7+-parseInt(_0xa574c8(0x1ec))/0x8;if(_0x1dea1d===_0x269132)break;else _0x1d33dc['push'](_0x1d33dc['shift']());}catch(_0x48cfe7){_0x1d33dc['push'](_0x1d33dc['shift']());}}}(a57_0x1752,0x3e84d));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a57_0x2858(_0x44ad68,_0x5366b9){_0x44ad68=_0x44ad68-0x1e6;const _0x175203=a57_0x1752();let _0x2858c8=_0x175203[_0x44ad68];return _0x2858c8;}import{parseJsonParams}from'../../utils/params.js';function a57_0x1752(){const _0x1f7e4f=['770648pMYwZz','params','1967808BWkiJH','execError','now','length','exec','\x20row(s)\x20in\x20','271096BpUkDn','1062910kfYiSj','isArray','8dlEjkJ','SQL\x20execution\x20failed','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','read','799780FYlfSI','145977BMJYbE','sql','703257EITYNE','str'];a57_0x1752=function(){return _0x1f7e4f;};return a57_0x1752();}export const sqlExec={'service':a57_0x2f1a28(0x1e9),'command':a57_0x2f1a28(0x1f2),'description':a57_0x2f1a28(0x1f9),'risk':a57_0x2f1a28(0x1e6),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x1d7bdd){const _0x572ca8=a57_0x2f1a28,_0x4ded44=parseJsonParams(_0x1d7bdd[_0x572ca8(0x1eb)](_0x572ca8(0x1ed))),_0x28bb5f=Date[_0x572ca8(0x1f0)](),_0xa88be2=await executeSdkSql(_0x1d7bdd[_0x572ca8(0x1eb)]('sqlcode'),_0x4ded44),_0x407486=Date[_0x572ca8(0x1f0)]()-_0x28bb5f,_0x198a00=_0xa88be2?.['execResult']??_0xa88be2,_0x12eb83=_0xa88be2?.['execSuccess']??!![];if(!_0x12eb83)return{'ok':![],'data':{'error':_0xa88be2?.[_0x572ca8(0x1ef)]||_0x572ca8(0x1f8),'elapsed':_0x407486},'message':_0x572ca8(0x1f8)};const _0x11cbb1=Array[_0x572ca8(0x1f6)](_0x198a00)?_0x198a00:[];return{'ok':!![],'data':{'rows':_0x11cbb1,'rowCount':_0x11cbb1['length'],'elapsed':_0x407486},'message':'Returned\x20'+_0x11cbb1[_0x572ca8(0x1f1)]+_0x572ca8(0x1f3)+_0x407486+'ms'};}};
1
+ const a58_0x12ae53=a58_0x18b3;(function(_0x1ac766,_0x491710){const _0xe80ccc=a58_0x18b3,_0x339cb1=_0x1ac766();while(!![]){try{const _0x25ec84=parseInt(_0xe80ccc(0x92))/0x1+parseInt(_0xe80ccc(0x8a))/0x2*(-parseInt(_0xe80ccc(0x97))/0x3)+parseInt(_0xe80ccc(0x93))/0x4*(parseInt(_0xe80ccc(0xa1))/0x5)+parseInt(_0xe80ccc(0x9d))/0x6*(parseInt(_0xe80ccc(0x91))/0x7)+parseInt(_0xe80ccc(0x99))/0x8*(parseInt(_0xe80ccc(0x8c))/0x9)+parseInt(_0xe80ccc(0x9f))/0xa+-parseInt(_0xe80ccc(0x8e))/0xb;if(_0x25ec84===_0x491710)break;else _0x339cb1['push'](_0x339cb1['shift']());}catch(_0x54cd27){_0x339cb1['push'](_0x339cb1['shift']());}}}(a58_0xe7e3,0x6daa6));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';function a58_0x18b3(_0x156271,_0x38f6a1){_0x156271=_0x156271-0x8a;const _0xe7e302=a58_0xe7e3();let _0x18b377=_0xe7e302[_0x156271];return _0x18b377;}function a58_0xe7e3(){const _0x332c53=['417462zpPLsx','138124LDEdyK','SQL\x20execution\x20failed','sql','length','1779gdLZXH','Returned\x20','332968RCLMUt','exec','sqlcode','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','504uzfnrr','read','5483660Hiefgc','now','75sCIRMg','954FLaxEt','isArray','72yAajUw','\x20row(s)\x20in\x20','18018198IEcFsY','str','params','46109kYPVTT'];a58_0xe7e3=function(){return _0x332c53;};return a58_0xe7e3();}export const sqlExec={'service':a58_0x12ae53(0x95),'command':a58_0x12ae53(0x9a),'description':a58_0x12ae53(0x9c),'risk':a58_0x12ae53(0x9e),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x40ed74){const _0x51fbb3=a58_0x12ae53,_0x3774a6=parseJsonParams(_0x40ed74[_0x51fbb3(0x8f)](_0x51fbb3(0x90))),_0x340b4e=Date[_0x51fbb3(0xa0)](),_0x1fc0a1=await executeSdkSql(_0x40ed74[_0x51fbb3(0x8f)](_0x51fbb3(0x9b)),_0x3774a6),_0x4ae6b5=Date[_0x51fbb3(0xa0)]()-_0x340b4e,_0x1358ab=_0x1fc0a1?.['execResult']??_0x1fc0a1,_0x38f5ff=_0x1fc0a1?.['execSuccess']??!![];if(!_0x38f5ff)return{'ok':![],'data':{'error':_0x1fc0a1?.['execError']||_0x51fbb3(0x94),'elapsed':_0x4ae6b5},'message':_0x51fbb3(0x94)};const _0x28d20d=Array[_0x51fbb3(0x8b)](_0x1358ab)?_0x1358ab:[];return{'ok':!![],'data':{'rows':_0x28d20d,'rowCount':_0x28d20d['length'],'elapsed':_0x4ae6b5},'message':_0x51fbb3(0x98)+_0x28d20d[_0x51fbb3(0x96)]+_0x51fbb3(0x8d)+_0x4ae6b5+'ms'};}};
@@ -1 +1 @@
1
- function a58_0x1d09(_0x2d67eb,_0x507526){_0x2d67eb=_0x2d67eb-0xf0;const _0x1005c3=a58_0x1005();let _0x1d0943=_0x1005c3[_0x2d67eb];return _0x1d0943;}(function(_0x26b693,_0x526a6e){const _0x2caf8e=a58_0x1d09,_0x39fe4b=_0x26b693();while(!![]){try{const _0x163d68=parseInt(_0x2caf8e(0xf4))/0x1+parseInt(_0x2caf8e(0xf6))/0x2+-parseInt(_0x2caf8e(0xf2))/0x3*(parseInt(_0x2caf8e(0xf0))/0x4)+parseInt(_0x2caf8e(0xf7))/0x5*(-parseInt(_0x2caf8e(0xf3))/0x6)+-parseInt(_0x2caf8e(0xf1))/0x7*(-parseInt(_0x2caf8e(0xf5))/0x8)+-parseInt(_0x2caf8e(0xf9))/0x9+parseInt(_0x2caf8e(0xf8))/0xa;if(_0x163d68===_0x526a6e)break;else _0x39fe4b['push'](_0x39fe4b['shift']());}catch(_0x2c70fe){_0x39fe4b['push'](_0x39fe4b['shift']());}}}(a58_0x1005,0x24552));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];function a58_0x1005(){const _0x7eba7e=['133ePgswO','3nwUnfl','32478ghoGFp','12018Oucosx','125152gYFHjj','66222WHfPfI','195hkouJx','2486640BMNjKr','1915173AntNzT','73228WNfheG'];a58_0x1005=function(){return _0x7eba7e;};return a58_0x1005();}
1
+ (function(_0x57a9d2,_0x433d05){const _0xd8b366=a59_0x17b8,_0x2b26ff=_0x57a9d2();while(!![]){try{const _0x8c6d42=-parseInt(_0xd8b366(0x1bc))/0x1+-parseInt(_0xd8b366(0x1be))/0x2+-parseInt(_0xd8b366(0x1c0))/0x3*(parseInt(_0xd8b366(0x1c1))/0x4)+parseInt(_0xd8b366(0x1bd))/0x5+parseInt(_0xd8b366(0x1bf))/0x6+-parseInt(_0xd8b366(0x1bb))/0x7+parseInt(_0xd8b366(0x1c2))/0x8;if(_0x8c6d42===_0x433d05)break;else _0x2b26ff['push'](_0x2b26ff['shift']());}catch(_0x573c3b){_0x2b26ff['push'](_0x2b26ff['shift']());}}}(a59_0x2a25,0xe171e));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a59_0x17b8(_0x173dc7,_0x48f3d9){_0x173dc7=_0x173dc7-0x1bb;const _0x2a255f=a59_0x2a25();let _0x17b8fe=_0x2a255f[_0x173dc7];return _0x17b8fe;}function a59_0x2a25(){const _0x4ca4ac=['2463014nPcpgE','893490krWeWb','294657Nxpxnx','68YeSUwW','33166928btEPSL','5444558GzybBp','299302cBbBfb','3034835zTnKip'];a59_0x2a25=function(){return _0x4ca4ac;};return a59_0x2a25();}export const sqlDefinitions=[sqlDetail,sqlExec];
@@ -1 +1 @@
1
- function a59_0x1c00(_0x191317,_0x19123f){_0x191317=_0x191317-0x16e;const _0x2b8c5d=a59_0x2b8c();let _0x1c0087=_0x2b8c5d[_0x191317];return _0x1c0087;}const a59_0x15a9c8=a59_0x1c00;(function(_0xfa8498,_0x5c518e){const _0x3dec27=a59_0x1c00,_0x10dc91=_0xfa8498();while(!![]){try{const _0x3a32c8=-parseInt(_0x3dec27(0x19e))/0x1*(parseInt(_0x3dec27(0x1b4))/0x2)+parseInt(_0x3dec27(0x195))/0x3+-parseInt(_0x3dec27(0x199))/0x4+-parseInt(_0x3dec27(0x174))/0x5*(-parseInt(_0x3dec27(0x193))/0x6)+parseInt(_0x3dec27(0x198))/0x7+parseInt(_0x3dec27(0x181))/0x8*(parseInt(_0x3dec27(0x1a6))/0x9)+-parseInt(_0x3dec27(0x1a2))/0xa;if(_0x3a32c8===_0x5c518e)break;else _0x10dc91['push'](_0x10dc91['shift']());}catch(_0x2167ed){_0x10dc91['push'](_0x10dc91['shift']());}}}(a59_0x2b8c,0xd0290));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';function a59_0x2b8c(){const _0x1b0da1=['minor','bool','map','length','patch','fromEntries','warn','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Updated\x20to\x20v','unknown','2134655cIJKkm','no-skills','boolean','Checking\x20npm\x20dist-tags...','Updating\x20','install','trim','Update\x20','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','message','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','Unable\x20to\x20resolve\x20','update','8504vwWxcb','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','cwd','=1).','args','stderr','npm','exit\x20','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','filter','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','error','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','version','join','skills','object','latest','12FYzsPj','/dist-tags','2247408rqxDvt','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','entries','4429782bGWywk','3014780rVhWSa','log','Checking\x20CLI\x20Built-in\x20Skill...','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','Already\x20on\x20requested\x20version\x20(v','1juzIzu','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','pipe','nonInteractive','3904820cGocrh','json','write','/-/package/','2682LXdreL','Install\x20a\x20specific\x20CLI\x20version','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','beta','string','\x20->\x20','status','prerelease','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','stdout','source','inherit','Invalid\x20version:\x20','1111594iCSrhs','Current\x20version:\x20','\x20version\x20from\x20npm.','validation'];a59_0x2b8c=function(){return _0x1b0da1;};return a59_0x2b8c();}import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':a59_0x15a9c8(0x192),'type':a59_0x15a9c8(0x176),'description':a59_0x15a9c8(0x19c),'default':![]},{'name':'beta','type':a59_0x15a9c8(0x176),'description':a59_0x15a9c8(0x189),'default':![]},{'name':a59_0x15a9c8(0x18e),'type':a59_0x15a9c8(0x1aa),'description':a59_0x15a9c8(0x1a7)},{'name':a59_0x15a9c8(0x175),'type':a59_0x15a9c8(0x176),'description':a59_0x15a9c8(0x182),'default':![]},{'name':a59_0x15a9c8(0x190),'type':a59_0x15a9c8(0x176),'description':a59_0x15a9c8(0x18d),'default':!![],'hidden':!![]}];function parseSemver(_0x51f5f2){const _0x26f75c=_0x51f5f2['trim']()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x26f75c)return null;return{'major':Number(_0x26f75c[0x1]),'minor':Number(_0x26f75c[0x2]),'patch':Number(_0x26f75c[0x3]),'prerelease':_0x26f75c[0x4]};}function compareSemver(_0x581ab7,_0x3a7b31){const _0x3abdeb=a59_0x15a9c8,_0x4ff6d9=parseSemver(_0x581ab7),_0x4b1290=parseSemver(_0x3a7b31);if(!_0x4ff6d9||!_0x4b1290)throw CliErrors['validation']('Version\x20comparison\x20failed.',_0x3abdeb(0x1ae));for(const _0x3213fd of['major',_0x3abdeb(0x1b8),_0x3abdeb(0x16e)]){if(_0x4ff6d9[_0x3213fd]<_0x4b1290[_0x3213fd])return-0x1;if(_0x4ff6d9[_0x3213fd]>_0x4b1290[_0x3213fd])return 0x1;}if(!_0x4ff6d9['prerelease']&&!_0x4b1290[_0x3abdeb(0x1ad)])return 0x0;if(!_0x4ff6d9[_0x3abdeb(0x1ad)])return 0x1;if(!_0x4b1290['prerelease'])return-0x1;if(_0x4ff6d9[_0x3abdeb(0x1ad)]===_0x4b1290[_0x3abdeb(0x1ad)])return 0x0;return _0x4ff6d9[_0x3abdeb(0x1ad)]<_0x4b1290[_0x3abdeb(0x1ad)]?-0x1:0x1;}function getRequestedVersion(_0x37f266){const _0x2e5eac=a59_0x15a9c8,_0x8c34fe=_0x37f266['str']('version')['trim']();if(_0x8c34fe)return _0x8c34fe;return String(_0x37f266[_0x2e5eac(0x185)]?.[0x0]??'')[_0x2e5eac(0x17a)]();}function shouldSkipCliBuiltInSkill(_0x43beff){const _0x5f3790=a59_0x15a9c8;return _0x43beff[_0x5f3790(0x1b9)](_0x5f3790(0x175))||_0x43beff['flag']('skills')===![];}async function validateUpdateFlags(_0x1caa05){const _0x150333=a59_0x15a9c8,_0x58a437=getRequestedVersion(_0x1caa05),_0x5b1bec=[_0x1caa05[_0x150333(0x1b9)](_0x150333(0x192))?'latest':'',_0x1caa05['bool']('beta')?_0x150333(0x1a9):'',_0x58a437?'version':''][_0x150333(0x18a)](Boolean);if(_0x5b1bec[_0x150333(0x1bb)]>0x1)throw CliErrors[_0x150333(0x1b7)](_0x150333(0x1a8),'Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.');if(_0x58a437&&!parseSemver(_0x58a437))throw CliErrors[_0x150333(0x1b7)](_0x150333(0x1b3)+_0x58a437,_0x150333(0x171));}async function fetchNpmDistTags(){const _0x169b92=a59_0x15a9c8;try{const _0x2e462b=NPM_REGISTRY_BASE_URL+_0x169b92(0x1a5)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x169b92(0x194),_0x1ccb60=await fetch(_0x2e462b,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x1ccb60['ok'])return null;const _0x3f0fa4=await _0x1ccb60[_0x169b92(0x1a3)]();if(!_0x3f0fa4||typeof _0x3f0fa4!==_0x169b92(0x191))return null;return Object[_0x169b92(0x16f)](Object[_0x169b92(0x197)](_0x3f0fa4)[_0x169b92(0x18a)](([,_0x17bd39])=>typeof _0x17bd39===_0x169b92(0x1aa)&&_0x17bd39['trim']())[_0x169b92(0x1ba)](([_0x23b14a,_0x1d2ad9])=>[_0x23b14a,String(_0x1d2ad9)[_0x169b92(0x17a)]()]));}catch{return null;}}async function resolveTargetVersion(_0xc5b301){const _0x15e457=a59_0x15a9c8,_0x8a55c5=getRequestedVersion(_0xc5b301);if(_0x8a55c5)return{'version':_0x8a55c5,'source':_0x15e457(0x18e)};const _0xb95d97=_0xc5b301[_0x15e457(0x1b9)]('beta')?'beta':_0x15e457(0x192),_0x421324=await fetchNpmDistTags(),_0x153304=_0x421324?.[_0xb95d97];if(!_0x153304)return null;return{'version':_0x153304,'source':_0xb95d97};}function shouldInstallTarget(_0xd6c2cc,_0xb621a4){const _0x21df48=a59_0x15a9c8,_0x3f6ad7=compareSemver(_0xd6c2cc,_0xb621a4[_0x21df48(0x18e)]);if(_0xb621a4[_0x21df48(0x1b1)]===_0x21df48(0x18e))return _0x3f6ad7!==0x0;return _0x3f6ad7<0x0;}function installCliPackage(_0x343c56,_0x3de1bc){const _0x549fa1=a59_0x15a9c8,_0x4893af=resolveNpmBin(_0x549fa1(0x187)),_0x1db48b=[_0x549fa1(0x179),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x343c56];console[_0x549fa1(0x19a)]('*\x20'+[_0x4893af,..._0x1db48b][_0x549fa1(0x18f)]('\x20'));const _0x52f007=spawnSync(_0x4893af,_0x1db48b,{'cwd':process[_0x549fa1(0x183)](),'stdio':_0x3de1bc?_0x549fa1(0x1a0):_0x549fa1(0x1b2),'env':process.env,'shell':![]});if(_0x52f007[_0x549fa1(0x1ac)]===0x0)return{'ok':!![]};let _0x92302b=_0x52f007[_0x549fa1(0x18c)]?.[_0x549fa1(0x17d)]||_0x549fa1(0x188)+(_0x52f007[_0x549fa1(0x1ac)]??_0x549fa1(0x173));if(_0x3de1bc){const _0x5233dd=_0x52f007[_0x549fa1(0x186)]?_0x52f007[_0x549fa1(0x186)]['toString']()[_0x549fa1(0x17a)]():'',_0xbbc6c2=_0x52f007[_0x549fa1(0x1b0)]?_0x52f007[_0x549fa1(0x1b0)]['toString']()[_0x549fa1(0x17a)]():'';if(_0x5233dd)_0x92302b=_0x5233dd;else{if(_0xbbc6c2)_0x92302b=_0xbbc6c2;}}return{'ok':![],'error':_0x92302b};}async function installCliBuiltInSkill(_0x4fbe64){const _0x1ee097=a59_0x15a9c8;console['log'](_0x1ee097(0x19b));const _0x552914=runNpxSkillsAddGlobal(process['cwd'](),LOVRABET_SKILL_SOURCE,{'stdio':_0x4fbe64?_0x1ee097(0x1a0):_0x1ee097(0x1b2)});if(_0x552914['skipped']){console[_0x1ee097(0x19a)](_0x1ee097(0x19f)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x1ee097(0x184));return;}if(_0x552914['ok']){console['log'](_0x1ee097(0x196));return;}console['warn'](_0x1ee097(0x17c)+(_0x552914[_0x1ee097(0x18c)]||_0x1ee097(0x173))),console[_0x1ee097(0x19a)](_0x1ee097(0x17e));}async function execute(_0x5dd36b){const _0x1d0c5a=a59_0x15a9c8;await validateUpdateFlags(_0x5dd36b);const _0x1d4d81=getCliVersion();console['log'](_0x1d0c5a(0x1b5)+_0x1d4d81),console[_0x1d0c5a(0x19a)](_0x1d0c5a(0x177));const _0x3bcd63=await resolveTargetVersion(_0x5dd36b);if(!_0x3bcd63){const _0x5da7f2=_0x5dd36b[_0x1d0c5a(0x1b9)](_0x1d0c5a(0x1a9))?_0x1d0c5a(0x1a9):_0x1d0c5a(0x192),_0x3ef00c=_0x1d0c5a(0x17f)+_0x5da7f2+_0x1d0c5a(0x1b6);return console[_0x1d0c5a(0x170)](_0x3ef00c),console[_0x1d0c5a(0x19a)](_0x1d0c5a(0x1af)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x5da7f2),{'ok':![]};}if(!shouldInstallTarget(_0x1d4d81,_0x3bcd63)){const _0x1733ba=_0x3bcd63[_0x1d0c5a(0x1b1)]===_0x1d0c5a(0x18e)?_0x1d0c5a(0x19d)+_0x3bcd63[_0x1d0c5a(0x18e)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x3bcd63[_0x1d0c5a(0x18e)]+').';return console[_0x1d0c5a(0x19a)](_0x1733ba),shouldSkipCliBuiltInSkill(_0x5dd36b)?console[_0x1d0c5a(0x19a)]('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).'):await installCliBuiltInSkill(_0x5dd36b[_0x1d0c5a(0x1a1)]),{'ok':!![]};}console[_0x1d0c5a(0x19a)](_0x1d0c5a(0x178)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x1d4d81+_0x1d0c5a(0x1ab)+_0x3bcd63[_0x1d0c5a(0x18e)]);const _0x25f3ed=installCliPackage(_0x3bcd63[_0x1d0c5a(0x18e)],_0x5dd36b[_0x1d0c5a(0x1a1)]);if(!_0x25f3ed['ok']){const _0x401714='Update\x20failed:\x20'+(_0x25f3ed[_0x1d0c5a(0x18c)]||_0x1d0c5a(0x173));return console[_0x1d0c5a(0x18c)](_0x401714),console[_0x1d0c5a(0x19a)](_0x1d0c5a(0x18b)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3bcd63[_0x1d0c5a(0x18e)]),{'ok':![]};}return console['log'](_0x1d0c5a(0x172)+_0x3bcd63['version']+'.'),console[_0x1d0c5a(0x19a)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'),shouldSkipCliBuiltInSkill(_0x5dd36b)?console[_0x1d0c5a(0x19a)]('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).'):await installCliBuiltInSkill(_0x5dd36b[_0x1d0c5a(0x1a1)]),{'ok':!![]};}export const updateDefinition={'service':a59_0x15a9c8(0x180),'command':'run','description':a59_0x15a9c8(0x17b)+CLI_BIN_NAME+'\x20CLI\x20from\x20npm','risk':a59_0x15a9c8(0x1a4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ function a60_0x2461(){const _0x36bed6=['message','entries','skills','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','args','Checking\x20CLI\x20Built-in\x20Skill...','string','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','source','stdout','log','npm','180579oDOXYF','validation','Checking\x20npm\x20dist-tags...','match','1832556DbGCmI','error','Version\x20comparison\x20failed.','version','4703103SdVrxa','pipe','minor','2940570yrRIgq','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','exit\x20','Updated\x20to\x20v','str','Update\x20','write','\x20version\x20from\x20npm.','status','Update\x20failed:\x20','unknown','303259hELMcf','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','bool','184rfDuVI','stderr','620605cJoQdJ','latest','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','nonInteractive','no-skills','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','update','join','cwd','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','Unable\x20to\x20resolve\x20','map','Install\x20a\x20specific\x20CLI\x20version','166QNURxN','prerelease','trim','filter','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','20142ohmaCf','boolean','\x20CLI\x20from\x20npm','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','patch','flag','/dist-tags','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','Current\x20version:\x20','toString','warn','/-/package/','run','inherit','skipped','beta','object','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','install','4yHnsiD'];a60_0x2461=function(){return _0x36bed6;};return a60_0x2461();}const a60_0x56ea7d=a60_0xe430;(function(_0x217559,_0x363523){const _0x3c2de8=a60_0xe430,_0x286e47=_0x217559();while(!![]){try{const _0x377a13=-parseInt(_0x3c2de8(0x1a0))/0x1+-parseInt(_0x3c2de8(0x1b4))/0x2*(-parseInt(_0x3c2de8(0x1b9))/0x3)+-parseInt(_0x3c2de8(0x1cc))/0x4*(-parseInt(_0x3c2de8(0x1a5))/0x5)+parseInt(_0x3c2de8(0x18e))/0x6+-parseInt(_0x3c2de8(0x1d9))/0x7*(parseInt(_0x3c2de8(0x1a3))/0x8)+parseInt(_0x3c2de8(0x192))/0x9+-parseInt(_0x3c2de8(0x195))/0xa;if(_0x377a13===_0x363523)break;else _0x286e47['push'](_0x286e47['shift']());}catch(_0x1521ff){_0x286e47['push'](_0x286e47['shift']());}}}(a60_0x2461,0x4dd09));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';function a60_0xe430(_0x50d404,_0x5b1a19){_0x50d404=_0x50d404-0x18e;const _0x24614c=a60_0x2461();let _0xe43027=_0x24614c[_0x50d404];return _0xe43027;}import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':a60_0x56ea7d(0x1a6),'type':a60_0x56ea7d(0x1ba),'description':'Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','default':![]},{'name':'beta','type':a60_0x56ea7d(0x1ba),'description':a60_0x56ea7d(0x1a8),'default':![]},{'name':a60_0x56ea7d(0x191),'type':a60_0x56ea7d(0x1d3),'description':a60_0x56ea7d(0x1b3)},{'name':'no-skills','type':a60_0x56ea7d(0x1ba),'description':a60_0x56ea7d(0x1d0),'default':![]},{'name':a60_0x56ea7d(0x1cf),'type':a60_0x56ea7d(0x1ba),'description':'Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','default':!![],'hidden':!![]}];function parseSemver(_0x42c4a9){const _0x128344=a60_0x56ea7d,_0x4d7abe=_0x42c4a9[_0x128344(0x1b6)]()[_0x128344(0x1dc)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x4d7abe)return null;return{'major':Number(_0x4d7abe[0x1]),'minor':Number(_0x4d7abe[0x2]),'patch':Number(_0x4d7abe[0x3]),'prerelease':_0x4d7abe[0x4]};}function compareSemver(_0x4450ea,_0x40097c){const _0x280134=a60_0x56ea7d,_0x607ef7=parseSemver(_0x4450ea),_0x50fdee=parseSemver(_0x40097c);if(!_0x607ef7||!_0x50fdee)throw CliErrors[_0x280134(0x1da)](_0x280134(0x190),_0x280134(0x1bc));for(const _0x12a122 of['major',_0x280134(0x194),_0x280134(0x1bd)]){if(_0x607ef7[_0x12a122]<_0x50fdee[_0x12a122])return-0x1;if(_0x607ef7[_0x12a122]>_0x50fdee[_0x12a122])return 0x1;}if(!_0x607ef7['prerelease']&&!_0x50fdee[_0x280134(0x1b5)])return 0x0;if(!_0x607ef7[_0x280134(0x1b5)])return 0x1;if(!_0x50fdee[_0x280134(0x1b5)])return-0x1;if(_0x607ef7[_0x280134(0x1b5)]===_0x50fdee[_0x280134(0x1b5)])return 0x0;return _0x607ef7['prerelease']<_0x50fdee['prerelease']?-0x1:0x1;}function getRequestedVersion(_0x43d854){const _0x5428fc=a60_0x56ea7d,_0x3792fd=_0x43d854[_0x5428fc(0x199)]('version')[_0x5428fc(0x1b6)]();if(_0x3792fd)return _0x3792fd;return String(_0x43d854[_0x5428fc(0x1d1)]?.[0x0]??'')[_0x5428fc(0x1b6)]();}function shouldSkipCliBuiltInSkill(_0x509f48){const _0x68ffb9=a60_0x56ea7d;return _0x509f48[_0x68ffb9(0x1a2)](_0x68ffb9(0x1aa))||_0x509f48[_0x68ffb9(0x1be)](_0x68ffb9(0x1cf))===![];}async function validateUpdateFlags(_0x22a98d){const _0x466a3b=a60_0x56ea7d,_0x468813=getRequestedVersion(_0x22a98d),_0x4476c3=[_0x22a98d['bool'](_0x466a3b(0x1a6))?_0x466a3b(0x1a6):'',_0x22a98d[_0x466a3b(0x1a2)](_0x466a3b(0x1c8))?_0x466a3b(0x1c8):'',_0x468813?_0x466a3b(0x191):''][_0x466a3b(0x1b7)](Boolean);if(_0x4476c3['length']>0x1)throw CliErrors[_0x466a3b(0x1da)](_0x466a3b(0x1ca),_0x466a3b(0x1c0));if(_0x468813&&!parseSemver(_0x468813))throw CliErrors[_0x466a3b(0x1da)]('Invalid\x20version:\x20'+_0x468813,_0x466a3b(0x1ac));}async function fetchNpmDistTags(){const _0x1dfd71=a60_0x56ea7d;try{const _0x16116f=NPM_REGISTRY_BASE_URL+_0x1dfd71(0x1c4)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x1dfd71(0x1bf),_0x2ba168=await fetch(_0x16116f,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x2ba168['ok'])return null;const _0x457e71=await _0x2ba168['json']();if(!_0x457e71||typeof _0x457e71!==_0x1dfd71(0x1c9))return null;return Object['fromEntries'](Object[_0x1dfd71(0x1ce)](_0x457e71)[_0x1dfd71(0x1b7)](([,_0x560939])=>typeof _0x560939===_0x1dfd71(0x1d3)&&_0x560939['trim']())[_0x1dfd71(0x1b2)](([_0x32a543,_0xe4a1c])=>[_0x32a543,String(_0xe4a1c)[_0x1dfd71(0x1b6)]()]));}catch{return null;}}async function resolveTargetVersion(_0x33914d){const _0x133161=a60_0x56ea7d,_0x22385a=getRequestedVersion(_0x33914d);if(_0x22385a)return{'version':_0x22385a,'source':_0x133161(0x191)};const _0x237179=_0x33914d[_0x133161(0x1a2)](_0x133161(0x1c8))?_0x133161(0x1c8):_0x133161(0x1a6),_0x333d1f=await fetchNpmDistTags(),_0x58f1e4=_0x333d1f?.[_0x237179];if(!_0x58f1e4)return null;return{'version':_0x58f1e4,'source':_0x237179};}function shouldInstallTarget(_0x13aae1,_0x45ffbc){const _0x5c6475=a60_0x56ea7d,_0x4a11f6=compareSemver(_0x13aae1,_0x45ffbc[_0x5c6475(0x191)]);if(_0x45ffbc[_0x5c6475(0x1d5)]==='version')return _0x4a11f6!==0x0;return _0x4a11f6<0x0;}function installCliPackage(_0x5329e5,_0x5b0b50){const _0x133f35=a60_0x56ea7d,_0x1baa3e=resolveNpmBin(_0x133f35(0x1d8)),_0x292b40=[_0x133f35(0x1cb),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x5329e5];console[_0x133f35(0x1d7)]('*\x20'+[_0x1baa3e,..._0x292b40][_0x133f35(0x1ae)]('\x20'));const _0x367d28=spawnSync(_0x1baa3e,_0x292b40,{'cwd':process[_0x133f35(0x1af)](),'stdio':_0x5b0b50?'pipe':'inherit','env':process.env,'shell':![]});if(_0x367d28[_0x133f35(0x19d)]===0x0)return{'ok':!![]};let _0x44500e=_0x367d28[_0x133f35(0x18f)]?.[_0x133f35(0x1cd)]||_0x133f35(0x197)+(_0x367d28[_0x133f35(0x19d)]??_0x133f35(0x19f));if(_0x5b0b50){const _0x3dcddd=_0x367d28['stderr']?_0x367d28[_0x133f35(0x1a4)][_0x133f35(0x1c2)]()[_0x133f35(0x1b6)]():'',_0x39a49b=_0x367d28[_0x133f35(0x1d6)]?_0x367d28[_0x133f35(0x1d6)][_0x133f35(0x1c2)]()[_0x133f35(0x1b6)]():'';if(_0x3dcddd)_0x44500e=_0x3dcddd;else{if(_0x39a49b)_0x44500e=_0x39a49b;}}return{'ok':![],'error':_0x44500e};}async function installCliBuiltInSkill(_0x3f7249){const _0x28f399=a60_0x56ea7d;console[_0x28f399(0x1d7)](_0x28f399(0x1d2));const _0x32e23e=runNpxSkillsAddGlobal(process[_0x28f399(0x1af)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x3f7249?_0x28f399(0x193):_0x28f399(0x1c6)});if(_0x32e23e[_0x28f399(0x1c7)]){console[_0x28f399(0x1d7)](_0x28f399(0x1ab)+LOVRABET_SKIP_NPX_SKILLS_ENV+'=1).');return;}if(_0x32e23e['ok']){console[_0x28f399(0x1d7)](_0x28f399(0x196));return;}console[_0x28f399(0x1c3)](_0x28f399(0x1d4)+(_0x32e23e[_0x28f399(0x18f)]||_0x28f399(0x19f))),console[_0x28f399(0x1d7)](_0x28f399(0x1b0));}async function execute(_0x4d304b){const _0x41b356=a60_0x56ea7d;await validateUpdateFlags(_0x4d304b);const _0x56fcd8=getCliVersion();console[_0x41b356(0x1d7)](_0x41b356(0x1c1)+_0x56fcd8),console[_0x41b356(0x1d7)](_0x41b356(0x1db));const _0xd9bf6a=await resolveTargetVersion(_0x4d304b);if(!_0xd9bf6a){const _0x22f736=_0x4d304b[_0x41b356(0x1a2)]('beta')?_0x41b356(0x1c8):'latest',_0xd049a7=_0x41b356(0x1b1)+_0x22f736+_0x41b356(0x19c);return console[_0x41b356(0x1c3)](_0xd049a7),console['log'](_0x41b356(0x1b8)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x22f736),{'ok':![]};}if(!shouldInstallTarget(_0x56fcd8,_0xd9bf6a)){const _0x95c235=_0xd9bf6a[_0x41b356(0x1d5)]===_0x41b356(0x191)?'Already\x20on\x20requested\x20version\x20(v'+_0xd9bf6a[_0x41b356(0x191)]+').':'Already\x20up\x20to\x20date\x20(v'+_0xd9bf6a['version']+').';return console[_0x41b356(0x1d7)](_0x95c235),shouldSkipCliBuiltInSkill(_0x4d304b)?console[_0x41b356(0x1d7)](_0x41b356(0x1a7)):await installCliBuiltInSkill(_0x4d304b[_0x41b356(0x1a9)]),{'ok':!![]};}console['log']('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x56fcd8+'\x20->\x20'+_0xd9bf6a[_0x41b356(0x191)]);const _0x374384=installCliPackage(_0xd9bf6a[_0x41b356(0x191)],_0x4d304b['nonInteractive']);if(!_0x374384['ok']){const _0x56836f=_0x41b356(0x19e)+(_0x374384['error']||'unknown');return console['error'](_0x56836f),console[_0x41b356(0x1d7)]('\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0xd9bf6a[_0x41b356(0x191)]),{'ok':![]};}return console['log'](_0x41b356(0x198)+_0xd9bf6a[_0x41b356(0x191)]+'.'),console['log'](_0x41b356(0x1a1)),shouldSkipCliBuiltInSkill(_0x4d304b)?console[_0x41b356(0x1d7)](_0x41b356(0x1a7)):await installCliBuiltInSkill(_0x4d304b[_0x41b356(0x1a9)]),{'ok':!![]};}export const updateDefinition={'service':a60_0x56ea7d(0x1ad),'command':a60_0x56ea7d(0x1c5),'description':a60_0x56ea7d(0x19a)+CLI_BIN_NAME+a60_0x56ea7d(0x1bb),'risk':a60_0x56ea7d(0x19b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- const a60_0x2523bf=a60_0x17a6;function a60_0x17a6(_0x2e032e,_0x3c84aa){_0x2e032e=_0x2e032e-0xab;const _0x2c12fc=a60_0x2c12();let _0x17a641=_0x2c12fc[_0x2e032e];return _0x17a641;}(function(_0x556bf9,_0xd9376){const _0x2980bc=a60_0x17a6,_0x340b4a=_0x556bf9();while(!![]){try{const _0x2a37dd=parseInt(_0x2980bc(0xcf))/0x1+parseInt(_0x2980bc(0xde))/0x2+-parseInt(_0x2980bc(0xd2))/0x3*(-parseInt(_0x2980bc(0xc4))/0x4)+parseInt(_0x2980bc(0xd3))/0x5+-parseInt(_0x2980bc(0xd6))/0x6*(parseInt(_0x2980bc(0xca))/0x7)+parseInt(_0x2980bc(0xbd))/0x8+-parseInt(_0x2980bc(0xaf))/0x9;if(_0x2a37dd===_0xd9376)break;else _0x340b4a['push'](_0x340b4a['shift']());}catch(_0x385d1e){_0x340b4a['push'](_0x340b4a['shift']());}}}(a60_0x2c12,0x278dc));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a60_0x2523bf(0xda),'type':a60_0x2523bf(0xdd),'description':a60_0x2523bf(0xae)},{'name':a60_0x2523bf(0xc2),'type':'string','description':a60_0x2523bf(0xc3)},{'name':a60_0x2523bf(0xdb),'type':a60_0x2523bf(0xdd),'description':a60_0x2523bf(0xb4),'enum':[...RUNTIME_ENV_VALUES]},{'name':'yes','type':a60_0x2523bf(0xb6),'description':a60_0x2523bf(0xb5),'default':![]}];async function executeWorkspaceUse(_0x326b59,_0x3ebb30){const _0xdb8321=a60_0x2523bf,_0x4fd53f=_0x326b59[_0xdb8321(0xb1)](_0xdb8321(0xda))[_0xdb8321(0xc0)](),_0x23149a=_0x326b59[_0xdb8321(0xb1)](_0xdb8321(0xc2))[_0xdb8321(0xc0)](),_0x2d8200=_0x326b59[_0xdb8321(0xb1)]('env')[_0xdb8321(0xc0)](),_0x3a2ac2=resolveWorkspaceEnv(_0x2d8200||_0x326b59[_0xdb8321(0xac)]||DEFAULT_CONFIG_VALUES[_0xdb8321(0xdb)]);if(!_0x4fd53f&&!_0x23149a)throw CliErrors[_0xdb8321(0xad)](_0xdb8321(0xb7),_0xdb8321(0xd5)+CLI_BIN_NAME+_0xdb8321(0xc8)+_0x3ebb30+_0xdb8321(0xd8)+CLI_BIN_NAME+_0xdb8321(0xc8)+_0x3ebb30+_0xdb8321(0xcb));const _0x4aa764=_0x23149a||await resolveRemoteAppCode({'command':_0x3ebb30,'appName':_0x4fd53f,'env':_0x3a2ac2,'accessKey':_0x326b59[_0xdb8321(0xd0)]}),_0x8fa174=writeWorkspaceConfig({'command':_0x3ebb30,'appName':_0x4fd53f,'appcode':_0x4aa764,'env':_0x3a2ac2,'shouldWriteEnv':!!_0x2d8200,'accessKey':_0x326b59[_0xdb8321(0xd0)]});return{'ok':!![],'data':{'configPath':_0x8fa174,'app':_0x4fd53f||null,'appcode':_0x4aa764,'env':_0x2d8200?_0x3a2ac2:null,'accessKeyWritten':![],'command':'workspace\x20'+_0x3ebb30},'message':buildWorkspaceMessage(_0x8fa174,_0x4fd53f,_0x4aa764,_0x2d8200?_0x3a2ac2:undefined)};}async function resolveRemoteAppCode(_0xf1c882){const _0x3edadc=a60_0x2523bf;if(!_0xf1c882[_0x3edadc(0xd0)])throw CliErrors[_0x3edadc(0xc5)](_0x3edadc(0xe2)+CLI_BIN_NAME+_0x3edadc(0xc8)+_0xf1c882[_0x3edadc(0xd1)]+'.');const {setActiveAK:_0x2bdf86}=await import('../../core/api-client.js'),{getRemoteAppList:_0x7dbf12}=await import(_0x3edadc(0xe1));_0x2bdf86(_0xf1c882[_0x3edadc(0xd0)]);const _0x49bae2=await _0x7dbf12({'env':_0xf1c882['env'],'accessKey':_0xf1c882[_0x3edadc(0xd0)],'noCache':![]}),_0x18e379=findAppByName(_0x49bae2[_0x3edadc(0xcd)],_0xf1c882[_0x3edadc(0xc7)]);if(_0x18e379&&!isRuntimeAccessibleApp(_0x18e379))throw runtimeInaccessibleAppError(_0x18e379,'\x22'+_0xf1c882['appName']+'\x22');const _0x30932f=_0x18e379?.[_0x3edadc(0xc6)]?.[_0x3edadc(0xc0)]();if(_0x30932f)return _0x30932f;const _0x528449=_0x49bae2[_0x3edadc(0xcd)][_0x3edadc(0xbb)](_0x332579=>_0x332579[_0x3edadc(0xc7)])[_0x3edadc(0xb9)](Boolean),_0xf9751=_0x528449['length']?_0x3edadc(0xb8)+Array[_0x3edadc(0xb0)](new Set(_0x528449))['join'](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+_0x3edadc(0xba);throw CliErrors[_0x3edadc(0xad)](_0x3edadc(0xce)+_0xf1c882[_0x3edadc(0xc7)]+_0x3edadc(0xd7),_0xf9751);}function writeWorkspaceConfig(_0x449076){const _0x340d52=a60_0x2523bf,_0x43e911=resolveWriteConfigPath(_0x340d52(0xdf)),_0x1e8661=readConfigFile(_0x43e911);_0x449076[_0x340d52(0xe0)]&&(_0x1e8661[_0x340d52(0xdb)]=_0x449076[_0x340d52(0xdb)]);if(_0x449076[_0x340d52(0xc7)]){const _0x181dfd=isRecord(_0x1e8661[_0x340d52(0xbf)])?{..._0x1e8661[_0x340d52(0xbf)]}:{},_0x28360e=isRecord(_0x181dfd[_0x449076[_0x340d52(0xc7)]])?_0x181dfd[_0x449076[_0x340d52(0xc7)]]:{};_0x181dfd[_0x449076['appName']]={..._0x28360e,'appcode':_0x449076[_0x340d52(0xc2)]},_0x1e8661[_0x340d52(0xbf)]=_0x181dfd,_0x1e8661[_0x340d52(0xbe)]=_0x449076['appName'];if(_0x1e8661[_0x340d52(0xda)])delete _0x1e8661[_0x340d52(0xda)];return writeAndReturn(_0x43e911,_0x1e8661);}_0x1e8661[_0x340d52(0xc2)]=_0x449076['appcode'];if(_0x1e8661['app'])delete _0x1e8661[_0x340d52(0xda)];return writeAndReturn(_0x43e911,_0x1e8661);}function writeAndReturn(_0x520bd4,_0x2976bd){return writeConfigFile(_0x520bd4,_0x2976bd),_0x520bd4;}function resolveWorkspaceEnv(_0x4d4658){const _0x27e539=a60_0x2523bf;if(RUNTIME_ENV_VALUES[_0x27e539(0xbc)](_0x4d4658))return _0x4d4658;throw CliErrors['validation'](_0x27e539(0xe3)+_0x4d4658+_0x27e539(0xd9)+RUNTIME_ENV_VALUES[_0x27e539(0xc9)](',\x20'));}function buildWorkspaceMessage(_0x554411,_0x4ce15e,_0x32255c,_0x176d6a){const _0x5dd7dd=a60_0x2523bf,_0x717554=_0x4ce15e?_0x4ce15e+'\x20('+_0x32255c+')':_0x32255c,_0x358b82=_0x176d6a?_0x5dd7dd(0xd4)+_0x176d6a:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x554411+'\x0aDefault\x20app:\x20'+_0x717554+_0x358b82+_0x5dd7dd(0xc1);}function a60_0x2c12(){const _0x3d3f68=['App\x20code\x20to\x20bind\x20directly','56QDenXW','authRequired','appCode','appName','\x20workspace\x20','join','427oPwlaD','\x20--appcode\x20<code>\x20[--env\x20daily]','object','items','App\x20\x22','301037DbEuMN','accessKey','command','45405DWIBiM','1445660qSXvtu','\x0aEnv:\x20','Usage:\x20','8940oWSMuN','\x22\x20not\x20found.','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','\x22.\x20Allowed:\x20','app','env','workspace','string','169646yERPhS','project','shouldWriteEnv','../../commands/app/remote-source.js','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','Invalid\x20env\x20\x22','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','envName','validation','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','6008085VpMtAm','from','str','init','isArray','Target\x20environment','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','boolean','Missing\x20workspace\x20app\x20selector.','Available\x20apps:\x20','filter','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','map','includes','268680isKtBn','defaultApp','apps','trim','\x0aAccessKey:\x20not\x20written','appcode'];a60_0x2c12=function(){return _0x3d3f68;};return a60_0x2c12();}function isRecord(_0x241f7e){const _0x2f4c14=a60_0x2523bf;return typeof _0x241f7e===_0x2f4c14(0xcc)&&_0x241f7e!==null&&!Array[_0x2f4c14(0xb3)](_0x241f7e);}function makeWorkspaceCommand(_0x13511f){const _0x5c4271=a60_0x2523bf;return{'service':_0x5c4271(0xdc),'command':_0x13511f,'description':_0x13511f===_0x5c4271(0xb2)?'Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace':_0x5c4271(0xab),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x47153e){return executeWorkspaceUse(_0x47153e,_0x13511f);}};}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand('use')];
1
+ const a61_0x4a2bb3=a61_0x4178;function a61_0x44fd(){const _0x594a96=['appCode','string','envName','2567150zsnusw','join','accessKey','yes','Available\x20apps:\x20','from','Usage:\x20','Invalid\x20env\x20\x22','appName','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','3687252IYfkxE','../../commands/app/remote-source.js','items','use','validation','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','4086762JrajQW','authRequired','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','appcode','apps','app','workspace','43608rslmFA','Workspace\x20configured.\x0aConfig\x20file:\x20','boolean','env','command','Run\x20`','Missing\x20workspace\x20app\x20selector.','str','App\x20\x22','1789497WdsXOs','object','3063816OUXcYw','2Woifwv','\x0aEnv:\x20','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','App\x20code\x20to\x20bind\x20directly','7JewkNx','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','workspace\x20','4qJrQSo','\x0aAccessKey:\x20not\x20written','includes','trim','500344eELOgk','shouldWriteEnv','\x0aDefault\x20app:\x20','init','\x20workspace\x20','\x20--appcode\x20<code>\x20[--env\x20daily]','map','66hoNDLD','length','20UNLIzr','project','isArray','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive'];a61_0x44fd=function(){return _0x594a96;};return a61_0x44fd();}(function(_0x477da9,_0x4cf6ea){const _0x51ad98=a61_0x4178,_0x9bb702=_0x477da9();while(!![]){try{const _0x4ea628=-parseInt(_0x51ad98(0x1e0))/0x1*(-parseInt(_0x51ad98(0x1ec))/0x2)+parseInt(_0x51ad98(0x1e9))/0x3*(-parseInt(_0x51ad98(0x1f3))/0x4)+parseInt(_0x51ad98(0x1c9))/0x5+parseInt(_0x51ad98(0x1d9))/0x6*(-parseInt(_0x51ad98(0x1f0))/0x7)+-parseInt(_0x51ad98(0x1f7))/0x8+-parseInt(_0x51ad98(0x1eb))/0x9*(parseInt(_0x51ad98(0x1c2))/0xa)+parseInt(_0x51ad98(0x1c0))/0xb*(parseInt(_0x51ad98(0x1d3))/0xc);if(_0x4ea628===_0x4cf6ea)break;else _0x9bb702['push'](_0x9bb702['shift']());}catch(_0x49f3fe){_0x9bb702['push'](_0x9bb702['shift']());}}}(a61_0x44fd,0x5caff));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':'app','type':a61_0x4a2bb3(0x1c7),'description':a61_0x4a2bb3(0x1d2)},{'name':a61_0x4a2bb3(0x1dc),'type':a61_0x4a2bb3(0x1c7),'description':a61_0x4a2bb3(0x1ef)},{'name':'env','type':a61_0x4a2bb3(0x1c7),'description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]},{'name':a61_0x4a2bb3(0x1cc),'type':a61_0x4a2bb3(0x1e2),'description':a61_0x4a2bb3(0x1c5),'default':![]}];function a61_0x4178(_0x102dc9,_0x4ed40e){_0x102dc9=_0x102dc9-0x1bc;const _0x44fdb3=a61_0x44fd();let _0x417832=_0x44fdb3[_0x102dc9];return _0x417832;}async function executeWorkspaceUse(_0x28ffa7,_0x5c2dba){const _0x2e9aef=a61_0x4a2bb3,_0x30b28e=_0x28ffa7[_0x2e9aef(0x1e7)](_0x2e9aef(0x1de))[_0x2e9aef(0x1f6)](),_0x5e5e1a=_0x28ffa7['str'](_0x2e9aef(0x1dc))[_0x2e9aef(0x1f6)](),_0x424fae=_0x28ffa7[_0x2e9aef(0x1e7)]('env')[_0x2e9aef(0x1f6)](),_0x52904a=resolveWorkspaceEnv(_0x424fae||_0x28ffa7[_0x2e9aef(0x1c8)]||DEFAULT_CONFIG_VALUES['env']);if(!_0x30b28e&&!_0x5e5e1a)throw CliErrors['validation'](_0x2e9aef(0x1e6),_0x2e9aef(0x1cf)+CLI_BIN_NAME+_0x2e9aef(0x1bd)+_0x5c2dba+_0x2e9aef(0x1d8)+CLI_BIN_NAME+_0x2e9aef(0x1bd)+_0x5c2dba+_0x2e9aef(0x1be));const _0x411a3e=_0x5e5e1a||await resolveRemoteAppCode({'command':_0x5c2dba,'appName':_0x30b28e,'env':_0x52904a,'accessKey':_0x28ffa7[_0x2e9aef(0x1cb)]}),_0x1b33bb=writeWorkspaceConfig({'command':_0x5c2dba,'appName':_0x30b28e,'appcode':_0x411a3e,'env':_0x52904a,'shouldWriteEnv':!!_0x424fae,'accessKey':_0x28ffa7[_0x2e9aef(0x1cb)]});return{'ok':!![],'data':{'configPath':_0x1b33bb,'app':_0x30b28e||null,'appcode':_0x411a3e,'env':_0x424fae?_0x52904a:null,'accessKeyWritten':![],'command':_0x2e9aef(0x1f2)+_0x5c2dba},'message':buildWorkspaceMessage(_0x1b33bb,_0x30b28e,_0x411a3e,_0x424fae?_0x52904a:undefined)};}async function resolveRemoteAppCode(_0x2d9d7b){const _0x3095d9=a61_0x4a2bb3;if(!_0x2d9d7b['accessKey'])throw CliErrors[_0x3095d9(0x1da)](_0x3095d9(0x1ee)+CLI_BIN_NAME+_0x3095d9(0x1bd)+_0x2d9d7b[_0x3095d9(0x1e4)]+'.');const {setActiveAK:_0x1439bc}=await import('../../core/api-client.js'),{getRemoteAppList:_0x4fd733}=await import(_0x3095d9(0x1d4));_0x1439bc(_0x2d9d7b['accessKey']);const _0x5d908a=await _0x4fd733({'env':_0x2d9d7b[_0x3095d9(0x1e3)],'accessKey':_0x2d9d7b['accessKey'],'noCache':![]}),_0x49f33c=findAppByName(_0x5d908a[_0x3095d9(0x1d5)],_0x2d9d7b[_0x3095d9(0x1d1)]);if(_0x49f33c&&!isRuntimeAccessibleApp(_0x49f33c))throw runtimeInaccessibleAppError(_0x49f33c,'\x22'+_0x2d9d7b[_0x3095d9(0x1d1)]+'\x22');const _0x3df630=_0x49f33c?.[_0x3095d9(0x1c6)]?.['trim']();if(_0x3df630)return _0x3df630;const _0x123b13=_0x5d908a[_0x3095d9(0x1d5)][_0x3095d9(0x1bf)](_0x947596=>_0x947596[_0x3095d9(0x1d1)])['filter'](Boolean),_0x1a08a7=_0x123b13[_0x3095d9(0x1c1)]?_0x3095d9(0x1cd)+Array[_0x3095d9(0x1ce)](new Set(_0x123b13))[_0x3095d9(0x1ca)](',\x20')+'.':_0x3095d9(0x1e5)+CLI_BIN_NAME+_0x3095d9(0x1db);throw CliErrors[_0x3095d9(0x1d7)](_0x3095d9(0x1e8)+_0x2d9d7b['appName']+'\x22\x20not\x20found.',_0x1a08a7);}function writeWorkspaceConfig(_0xab9427){const _0x240bd9=a61_0x4a2bb3,_0x6755a9=resolveWriteConfigPath(_0x240bd9(0x1c3)),_0x5561f8=readConfigFile(_0x6755a9);_0xab9427[_0x240bd9(0x1f8)]&&(_0x5561f8[_0x240bd9(0x1e3)]=_0xab9427[_0x240bd9(0x1e3)]);if(_0xab9427['appName']){const _0x3bc613=isRecord(_0x5561f8[_0x240bd9(0x1dd)])?{..._0x5561f8[_0x240bd9(0x1dd)]}:{},_0x4eb990=isRecord(_0x3bc613[_0xab9427[_0x240bd9(0x1d1)]])?_0x3bc613[_0xab9427[_0x240bd9(0x1d1)]]:{};_0x3bc613[_0xab9427['appName']]={..._0x4eb990,'appcode':_0xab9427[_0x240bd9(0x1dc)]},_0x5561f8[_0x240bd9(0x1dd)]=_0x3bc613,_0x5561f8['defaultApp']=_0xab9427[_0x240bd9(0x1d1)];if(_0x5561f8['app'])delete _0x5561f8[_0x240bd9(0x1de)];return writeAndReturn(_0x6755a9,_0x5561f8);}_0x5561f8[_0x240bd9(0x1dc)]=_0xab9427[_0x240bd9(0x1dc)];if(_0x5561f8[_0x240bd9(0x1de)])delete _0x5561f8[_0x240bd9(0x1de)];return writeAndReturn(_0x6755a9,_0x5561f8);}function writeAndReturn(_0x4a15fe,_0x3d6482){return writeConfigFile(_0x4a15fe,_0x3d6482),_0x4a15fe;}function resolveWorkspaceEnv(_0x4919a8){const _0x14c864=a61_0x4a2bb3;if(RUNTIME_ENV_VALUES[_0x14c864(0x1f5)](_0x4919a8))return _0x4919a8;throw CliErrors[_0x14c864(0x1d7)](_0x14c864(0x1d0)+_0x4919a8+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x14c864(0x1ca)](',\x20'));}function buildWorkspaceMessage(_0xb52580,_0x14752d,_0x5efdad,_0x21de47){const _0x5bee8d=a61_0x4a2bb3,_0x3fec87=_0x14752d?_0x14752d+'\x20('+_0x5efdad+')':_0x5efdad,_0x1975c9=_0x21de47?_0x5bee8d(0x1ed)+_0x21de47:'';return _0x5bee8d(0x1e1)+_0xb52580+_0x5bee8d(0x1f9)+_0x3fec87+_0x1975c9+_0x5bee8d(0x1f4);}function isRecord(_0x100f09){const _0x3a64da=a61_0x4a2bb3;return typeof _0x100f09===_0x3a64da(0x1ea)&&_0x100f09!==null&&!Array[_0x3a64da(0x1c4)](_0x100f09);}function makeWorkspaceCommand(_0x2a5d19){const _0x5f5a9a=a61_0x4a2bb3;return{'service':_0x5f5a9a(0x1df),'command':_0x2a5d19,'description':_0x2a5d19===_0x5f5a9a(0x1bc)?'Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace':_0x5f5a9a(0x1f1),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0xb377fb){return executeWorkspaceUse(_0xb377fb,_0x2a5d19);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a61_0x4a2bb3(0x1bc)),makeWorkspaceCommand(a61_0x4a2bb3(0x1d6))];
@@ -1 +1 @@
1
- const a61_0x794c96=a61_0x6351;(function(_0x5388a9,_0xa9bbf7){const _0x3ba936=a61_0x6351,_0x441d55=_0x5388a9();while(!![]){try{const _0x174cfe=parseInt(_0x3ba936(0x1dc))/0x1+parseInt(_0x3ba936(0x1d1))/0x2+parseInt(_0x3ba936(0x1da))/0x3*(-parseInt(_0x3ba936(0x1d5))/0x4)+-parseInt(_0x3ba936(0x1ed))/0x5*(-parseInt(_0x3ba936(0x1ce))/0x6)+-parseInt(_0x3ba936(0x1e6))/0x7+-parseInt(_0x3ba936(0x1d0))/0x8+parseInt(_0x3ba936(0x1df))/0x9;if(_0x174cfe===_0xa9bbf7)break;else _0x441d55['push'](_0x441d55['shift']());}catch(_0x16fa0c){_0x441d55['push'](_0x441d55['shift']());}}}(a61_0x17fd,0xd795c));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x794c96(0x1e4)],'importable':!![]},'format':{'description':a61_0x794c96(0x1d7),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x794c96(0x1e3)],'importable':!![]},'pageSize':{'description':a61_0x794c96(0x1d2),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a61_0x794c96(0x1d4),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a61_0x794c96(0x1ea),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a61_0x794c96(0x1cf),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a61_0x794c96(0x1eb),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a61_0x794c96(0x1e1),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x794c96(0x1e0)],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x794c96(0x1de)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a61_0x794c96(0x1dd)](CONFIG_FIELD_SCHEMAS)[a61_0x794c96(0x1d9)](([,_0x46334e])=>_0x46334e['cliSettableTopLevel'])[a61_0x794c96(0x1d6)](([_0x4d763a])=>_0x4d763a));export const CONFIG_ENUM_VALUES=Object[a61_0x794c96(0x1e5)](Object[a61_0x794c96(0x1dd)](CONFIG_FIELD_SCHEMAS)[a61_0x794c96(0x1d9)](([,_0x115b9f])=>_0x115b9f[a61_0x794c96(0x1d3)])[a61_0x794c96(0x1d6)](([_0x320e24,_0x5170db])=>[_0x320e24,[..._0x5170db[a61_0x794c96(0x1d3)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a61_0x794c96(0x1dd)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x3a7594])=>_0x3a7594[a61_0x794c96(0x1ec)])['map'](([_0x235e6b])=>_0x235e6b);export function getConfigFieldSchema(_0x2a1c6e){return CONFIG_FIELD_SCHEMAS[_0x2a1c6e];}export function getConfigEnumValues(_0x1ed5f6){const _0x1049fe=a61_0x794c96;return getConfigFieldSchema(_0x1ed5f6)?.[_0x1049fe(0x1d3)];}function a61_0x6351(_0x48de37,_0x40426b){_0x48de37=_0x48de37-0x1ce;const _0x17fd68=a61_0x17fd();let _0x6351bd=_0x17fd68[_0x48de37];return _0x6351bd;}export function getConfigDefaultValue(_0x3cf71d){const _0x297faf=a61_0x794c96;return getConfigFieldSchema(_0x3cf71d)?.[_0x297faf(0x1e9)];}function a61_0x17fd(){const _0x58a075=['3413170WWRApl','Default\x20page\x20size','enumValues','Override\x20API\x20domain','32896LVonoU','map','Default\x20output\x20format',';\x20local\x20alias:\x20apps.<alias>.appcode','filter','435VybfCs','has','374471UwghUV','entries','locale','8670276pVlDfO','riskLevel','Risk\x20level','legacyCompatOnly','format','env','fromEntries','9197020znKFhv','Config\x20key.\x20Top-level:\x20','join','defaultValue','Override\x20runtime\x20domain','Access\x20key\x20(client-ak\x20auth)','importable','5zSBOYO','9494316PXGGJR','Override\x20SkillHub\x20domain','9899440bIYnJC'];a61_0x17fd=function(){return _0x58a075;};return a61_0x17fd();}export function isTopLevelConfigKey(_0xcd9a98){const _0x5590bc=a61_0x794c96;return TOP_LEVEL_CONFIG_KEYS[_0x5590bc(0x1db)](_0xcd9a98);}export function isLegacyCompatConfigKey(_0x16d133){const _0x5b8d76=a61_0x794c96;return getConfigFieldSchema(_0x16d133)?.[_0x5b8d76(0x1e2)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0xf78a37){const _0x44be9b=a61_0x794c96;return[..._0xf78a37][_0x44be9b(0x1e8)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x18ea08=a61_0x794c96;return _0x18ea08(0x1e7)+getTopLevelConfigKeySummary()+_0x18ea08(0x1d8);}export function buildAppProfileListFields(_0xa0125){return{'env':_0xa0125,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a62_0x2612f4=a62_0x56f7;(function(_0x333607,_0xbd3cd5){const _0x1b1d3c=a62_0x56f7,_0x2f8e81=_0x333607();while(!![]){try{const _0x45c7be=parseInt(_0x1b1d3c(0x190))/0x1+parseInt(_0x1b1d3c(0x195))/0x2+parseInt(_0x1b1d3c(0x18c))/0x3+-parseInt(_0x1b1d3c(0x196))/0x4*(-parseInt(_0x1b1d3c(0x18e))/0x5)+parseInt(_0x1b1d3c(0x191))/0x6+parseInt(_0x1b1d3c(0x189))/0x7*(parseInt(_0x1b1d3c(0x182))/0x8)+-parseInt(_0x1b1d3c(0x18a))/0x9;if(_0x45c7be===_0xbd3cd5)break;else _0x2f8e81['push'](_0x2f8e81['shift']());}catch(_0x5c5e76){_0x2f8e81['push'](_0x2f8e81['shift']());}}}(a62_0x4c16,0x2b7f2));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':a62_0x2612f4(0x180),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a62_0x2612f4(0x18d)],'importable':!![]},'format':{'description':a62_0x2612f4(0x17e),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['format'],'importable':!![]},'pageSize':{'description':a62_0x2612f4(0x181),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a62_0x2612f4(0x192),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a62_0x2612f4(0x18b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a62_0x2612f4(0x184),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':'Override\x20SkillHub\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a62_0x2612f4(0x193)],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a62_0x2612f4(0x187)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)[a62_0x2612f4(0x194)](([,_0x996f3d])=>_0x996f3d['cliSettableTopLevel'])['map'](([_0x58afbd])=>_0x58afbd));export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x310b62])=>_0x310b62[a62_0x2612f4(0x186)])['map'](([_0x2a4a05,_0x31aacd])=>[_0x2a4a05,[..._0x31aacd[a62_0x2612f4(0x186)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a62_0x2612f4(0x18f)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x402541])=>_0x402541['importable'])[a62_0x2612f4(0x17d)](([_0x6a11cb])=>_0x6a11cb);export function getConfigFieldSchema(_0x2d02cc){return CONFIG_FIELD_SCHEMAS[_0x2d02cc];}export function getConfigEnumValues(_0x4824b5){return getConfigFieldSchema(_0x4824b5)?.['enumValues'];}export function getConfigDefaultValue(_0x156938){const _0x369208=a62_0x2612f4;return getConfigFieldSchema(_0x156938)?.[_0x369208(0x183)];}export function isTopLevelConfigKey(_0xef62c2){const _0x280832=a62_0x2612f4;return TOP_LEVEL_CONFIG_KEYS[_0x280832(0x188)](_0xef62c2);}export function isLegacyCompatConfigKey(_0x1dcfe7){const _0x33a9cd=a62_0x2612f4;return getConfigFieldSchema(_0x1dcfe7)?.[_0x33a9cd(0x185)]===!![];}function a62_0x4c16(){const _0x410e1a=['locale','has','287uowGTg','11063034qzKOYd','Override\x20user\x20domain','126408OoRySL','env','5jtPFlR','entries','245883mcBpEG','1928796iODeZK','Override\x20API\x20domain','riskLevel','filter','488710HtceYy','1120804CMwzbZ','map','Default\x20output\x20format','join','Target\x20environment','Default\x20page\x20size','53336nonddC','defaultValue','Override\x20runtime\x20domain','legacyCompatOnly','enumValues'];a62_0x4c16=function(){return _0x410e1a;};return a62_0x4c16();}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x2d2230){const _0x5388b8=a62_0x2612f4;return[..._0x2d2230][_0x5388b8(0x17f)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}function a62_0x56f7(_0x55193f,_0x5e3742){_0x55193f=_0x55193f-0x17d;const _0x4c1658=a62_0x4c16();let _0x56f7da=_0x4c1658[_0x55193f];return _0x56f7da;}export function buildAppProfileListFields(_0x5d7632){return{'env':_0x5d7632,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- const a62_0x35df3c=a62_0x4736;(function(_0x1ac30a,_0x5be54b){const _0x40d7d7=a62_0x4736,_0x3e8c8d=_0x1ac30a();while(!![]){try{const _0x36388d=parseInt(_0x40d7d7(0x14a))/0x1+parseInt(_0x40d7d7(0x14c))/0x2*(parseInt(_0x40d7d7(0x152))/0x3)+-parseInt(_0x40d7d7(0x14d))/0x4*(parseInt(_0x40d7d7(0x14e))/0x5)+-parseInt(_0x40d7d7(0x14f))/0x6+-parseInt(_0x40d7d7(0x153))/0x7*(-parseInt(_0x40d7d7(0x151))/0x8)+-parseInt(_0x40d7d7(0x150))/0x9*(parseInt(_0x40d7d7(0x157))/0xa)+parseInt(_0x40d7d7(0x155))/0xb*(parseInt(_0x40d7d7(0x14b))/0xc);if(_0x36388d===_0x5be54b)break;else _0x3e8c8d['push'](_0x3e8c8d['shift']());}catch(_0x38c966){_0x3e8c8d['push'](_0x3e8c8d['shift']());}}}(a62_0x4dcd,0xbe9f7));function a62_0x4dcd(){const _0x30ca10=['2529vwsyOc','40GyYPHb','21OtxOQK','337253bpXUMW','UNPUBLISH','9303624kMLYOZ','Published','22490xBaouV','1351031NRlAzU','24hSfBqd','78018xepYAN','1255288ACaxzq','20HMSksb','5331054ErMvZY'];a62_0x4dcd=function(){return _0x30ca10;};return a62_0x4dcd();}function a62_0x4736(_0x3cfabb,_0x5b68fd){_0x3cfabb=_0x3cfabb-0x14a;const _0x4dcd4a=a62_0x4dcd();let _0x473603=_0x4dcd4a[_0x3cfabb];return _0x473603;}export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a62_0x35df3c(0x154)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a62_0x35df3c(0x156)];
1
+ const a63_0x4569fd=a63_0x82d3;(function(_0x10794e,_0x1f722e){const _0x5d5a15=a63_0x82d3,_0x3c09d4=_0x10794e();while(!![]){try{const _0xde3989=-parseInt(_0x5d5a15(0xe7))/0x1*(-parseInt(_0x5d5a15(0xed))/0x2)+-parseInt(_0x5d5a15(0xf1))/0x3+parseInt(_0x5d5a15(0xe6))/0x4+-parseInt(_0x5d5a15(0xea))/0x5*(-parseInt(_0x5d5a15(0xe5))/0x6)+-parseInt(_0x5d5a15(0xe4))/0x7*(-parseInt(_0x5d5a15(0xe9))/0x8)+-parseInt(_0x5d5a15(0xee))/0x9*(parseInt(_0x5d5a15(0xef))/0xa)+-parseInt(_0x5d5a15(0xec))/0xb*(-parseInt(_0x5d5a15(0xeb))/0xc);if(_0xde3989===_0x1f722e)break;else _0x3c09d4['push'](_0x3c09d4['shift']());}catch(_0x17cecf){_0x3c09d4['push'](_0x3c09d4['shift']());}}}(a63_0x5cc1,0xb09c3));export const APP_PUBLISH_STATUS={'Published':a63_0x4569fd(0xf0),'Unpublished':'UNPUBLISH'};function a63_0x82d3(_0x4162c3,_0x18327e){_0x4162c3=_0x4162c3-0xe4;const _0x5cc13=a63_0x5cc1();let _0x82d303=_0x5cc13[_0x4162c3];return _0x82d303;}function a63_0x5cc1(){const _0x20571f=['11964gQAGzq','4656904FUHpZy','151Xhjtcx','Published','1336dybuZa','15ICntNr','135372PJvYKB','352cDxpyD','13610AcNRRH','36GHYAZs','1191610qrRPwc','PUBLISHED','4315626UuStHv','3346IlnsYs'];a63_0x5cc1=function(){return _0x20571f;};return a63_0x5cc1();}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a63_0x4569fd(0xe8)];
@@ -1 +1 @@
1
- const a63_0x5e7393=a63_0x2152;function a63_0x2152(_0x2e7513,_0xe34320){_0x2e7513=_0x2e7513-0x139;const _0x1efaeb=a63_0x1efa();let _0x21521d=_0x1efaeb[_0x2e7513];return _0x21521d;}(function(_0x1e4849,_0x379c7a){const _0x33d2c1=a63_0x2152,_0x415c94=_0x1e4849();while(!![]){try{const _0xdb66e6=parseInt(_0x33d2c1(0x13a))/0x1+-parseInt(_0x33d2c1(0x13f))/0x2*(parseInt(_0x33d2c1(0x143))/0x3)+parseInt(_0x33d2c1(0x13b))/0x4*(parseInt(_0x33d2c1(0x13d))/0x5)+parseInt(_0x33d2c1(0x140))/0x6*(-parseInt(_0x33d2c1(0x145))/0x7)+-parseInt(_0x33d2c1(0x142))/0x8*(parseInt(_0x33d2c1(0x147))/0x9)+parseInt(_0x33d2c1(0x141))/0xa*(-parseInt(_0x33d2c1(0x13e))/0xb)+parseInt(_0x33d2c1(0x139))/0xc*(parseInt(_0x33d2c1(0x13c))/0xd);if(_0xdb66e6===_0x379c7a)break;else _0x415c94['push'](_0x415c94['shift']());}catch(_0x2e7e9c){_0x415c94['push'](_0x415c94['shift']());}}}(a63_0x1efa,0x21f2e));export const AUTH_MODE={'ClientAk':a63_0x5e7393(0x146)};export function isAuthMode(_0x368fd2){const _0x2491e3=a63_0x5e7393;return _0x368fd2===AUTH_MODE[_0x2491e3(0x144)];}function a63_0x1efa(){const _0x59c8de=['953860GqHdWT','936USdQdO','5bqLaid','393085RkQoMp','68lsZRGs','6AhGMdc','10hPdGJX','976gzouEv','18462TOKFuK','ClientAk','1795493HVDcmJ','client-ak','1494FPGeMj','26964YVxBmt','260527TBnLrW'];a63_0x1efa=function(){return _0x59c8de;};return a63_0x1efa();}
1
+ const a64_0x3738c1=a64_0x8ee6;(function(_0x36e32d,_0x933b33){const _0x2a374e=a64_0x8ee6,_0x24e1a1=_0x36e32d();while(!![]){try{const _0x5e5e8e=-parseInt(_0x2a374e(0x1c4))/0x1*(-parseInt(_0x2a374e(0x1c5))/0x2)+-parseInt(_0x2a374e(0x1c2))/0x3+parseInt(_0x2a374e(0x1c6))/0x4+-parseInt(_0x2a374e(0x1cc))/0x5*(-parseInt(_0x2a374e(0x1c8))/0x6)+-parseInt(_0x2a374e(0x1c9))/0x7*(-parseInt(_0x2a374e(0x1c1))/0x8)+-parseInt(_0x2a374e(0x1c7))/0x9*(-parseInt(_0x2a374e(0x1c0))/0xa)+-parseInt(_0x2a374e(0x1cb))/0xb;if(_0x5e5e8e===_0x933b33)break;else _0x24e1a1['push'](_0x24e1a1['shift']());}catch(_0x25ee2c){_0x24e1a1['push'](_0x24e1a1['shift']());}}}(a64_0x31c3,0x2f159));export const AUTH_MODE={'ClientAk':a64_0x3738c1(0x1ca)};function a64_0x8ee6(_0x3dffe8,_0x37c1df){_0x3dffe8=_0x3dffe8-0x1c0;const _0x31c392=a64_0x31c3();let _0x8ee633=_0x31c392[_0x3dffe8];return _0x8ee633;}export function isAuthMode(_0x294fc8){const _0x44f4da=a64_0x3738c1;return _0x294fc8===AUTH_MODE[_0x44f4da(0x1c3)];}function a64_0x31c3(){const _0x2a5777=['252533bJIJvf','2xMMXgN','1191812ABwDca','9eOuOkz','174HIowbx','4837UgpXAQ','client-ak','8625760RZveuM','34885iBOFud','3290530MtbaYf','2616AXWWzr','992436ViXIFh','ClientAk'];a64_0x31c3=function(){return _0x2a5777;};return a64_0x31c3();}
@@ -1 +1 @@
1
- const a64_0x2eefce=a64_0x1477;(function(_0x3178e6,_0x3612d6){const _0x3036ae=a64_0x1477,_0x4a35cb=_0x3178e6();while(!![]){try{const _0x180a1b=-parseInt(_0x3036ae(0x12a))/0x1+-parseInt(_0x3036ae(0x13e))/0x2+-parseInt(_0x3036ae(0x12d))/0x3*(-parseInt(_0x3036ae(0x137))/0x4)+parseInt(_0x3036ae(0x140))/0x5+-parseInt(_0x3036ae(0x149))/0x6+parseInt(_0x3036ae(0x14b))/0x7+parseInt(_0x3036ae(0x142))/0x8;if(_0x180a1b===_0x3612d6)break;else _0x4a35cb['push'](_0x4a35cb['shift']());}catch(_0xadb494){_0x4a35cb['push'](_0x4a35cb['shift']());}}}(a64_0x5282,0x73799));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';function a64_0x5282(){const _0x52c445=['Force\x20non-interactive\x20mode\x20(CI)','7709048bzadMl','format','sqlcode','Preview\x20operation\x20without\x20executing','Skip\x20confirmation\x20for\x20high-risk\x20writes','clear','dryRun','3988794rcECTD','boolean','3491579zwUcTS','Environment','cliDisplayName','fromEntries','env','production\x20|\x20development\x20|\x20daily','Verbose\x20output','type','verbose','app','172038LsjcDr','name','Override\x20appcode','3JSfvtX','help','yes','<name>','<expr>','map','dry-run','Name\x20filter','SQL\x20query\x20code','string','425380iZAqKZ','params','global','Alias\x20for\x20--non-interactive','Show\x20help','Record\x20ID','appcode','697034MCgDZE','non-interactive','447830xTdBGd'];a64_0x5282=function(){return _0x52c445;};return a64_0x5282();}export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a64_0x2eefce(0x14d)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a64_0x2eefce(0x13d),'meowKey':'appcode','type':a64_0x2eefce(0x136),'description':a64_0x2eefce(0x12c),'hint':'<code>'},{'name':a64_0x2eefce(0x129),'meowKey':a64_0x2eefce(0x129),'type':a64_0x2eefce(0x136),'description':'Select\x20app\x20profile\x20by\x20name','hint':a64_0x2eefce(0x130)},{'name':a64_0x2eefce(0x14f),'meowKey':a64_0x2eefce(0x14f),'type':a64_0x2eefce(0x136),'description':a64_0x2eefce(0x14c),'hint':a64_0x2eefce(0x150)},{'name':a64_0x2eefce(0x143),'meowKey':a64_0x2eefce(0x143),'type':'string','description':'Output\x20format','hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a64_0x2eefce(0x136),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a64_0x2eefce(0x131)},{'name':a64_0x2eefce(0x133),'meowKey':a64_0x2eefce(0x148),'type':'boolean','description':a64_0x2eefce(0x145)},{'name':a64_0x2eefce(0x12f),'meowKey':'yes','type':a64_0x2eefce(0x14a),'description':a64_0x2eefce(0x146)},{'name':'non-interactive','meowKey':'nonInteractive','type':'boolean','description':a64_0x2eefce(0x141)},{'name':a64_0x2eefce(0x139),'meowKey':a64_0x2eefce(0x139),'type':a64_0x2eefce(0x14a),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a64_0x2eefce(0x13a),'hidden':!![]},{'name':a64_0x2eefce(0x12e),'meowKey':a64_0x2eefce(0x12e),'type':a64_0x2eefce(0x14a),'description':a64_0x2eefce(0x13b)},{'name':'id','meowKey':'id','type':'string','description':a64_0x2eefce(0x13c),'hidden':!![]},{'name':a64_0x2eefce(0x12b),'meowKey':a64_0x2eefce(0x12b),'type':a64_0x2eefce(0x136),'description':a64_0x2eefce(0x134),'hidden':!![]},{'name':'sqlcode','meowKey':a64_0x2eefce(0x144),'type':'string','description':a64_0x2eefce(0x135),'hidden':!![]},{'name':a64_0x2eefce(0x138),'meowKey':a64_0x2eefce(0x138),'type':a64_0x2eefce(0x136),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a64_0x2eefce(0x128),'meowKey':a64_0x2eefce(0x128),'type':a64_0x2eefce(0x14a),'description':a64_0x2eefce(0x151),'hidden':!![]},{'name':a64_0x2eefce(0x147),'meowKey':a64_0x2eefce(0x147),'type':a64_0x2eefce(0x14a),'description':'Clear\x20output','hidden':!![]}];function a64_0x1477(_0x1690b7,_0x47b64b){_0x1690b7=_0x1690b7-0x127;const _0x5282cf=a64_0x5282();let _0x147740=_0x5282cf[_0x1690b7];return _0x147740;}export const PIPELINE_FLAG_NAMES=new Set([a64_0x2eefce(0x13d),a64_0x2eefce(0x129),a64_0x2eefce(0x14f),a64_0x2eefce(0x143),'jq',a64_0x2eefce(0x133),'yes',a64_0x2eefce(0x13f),'ci']);export function buildMeowFlags(){const _0x3edf63=a64_0x2eefce;return Object[_0x3edf63(0x14e)](GLOBAL_FLAGS[_0x3edf63(0x132)](_0x537fac=>[_0x537fac['meowKey'],{'type':_0x537fac[_0x3edf63(0x127)]}]));}
1
+ const a65_0x31c6b4=a65_0x2087;(function(_0x1543f1,_0xd660ef){const _0x861373=a65_0x2087,_0x1341e7=_0x1543f1();while(!![]){try{const _0xbaf5cf=-parseInt(_0x861373(0x16d))/0x1+parseInt(_0x861373(0x195))/0x2*(parseInt(_0x861373(0x190))/0x3)+-parseInt(_0x861373(0x18a))/0x4*(-parseInt(_0x861373(0x17c))/0x5)+-parseInt(_0x861373(0x18f))/0x6+-parseInt(_0x861373(0x180))/0x7*(parseInt(_0x861373(0x176))/0x8)+parseInt(_0x861373(0x175))/0x9+parseInt(_0x861373(0x18c))/0xa*(-parseInt(_0x861373(0x186))/0xb);if(_0xbaf5cf===_0xd660ef)break;else _0x1341e7['push'](_0x1341e7['shift']());}catch(_0x6279d8){_0x1341e7['push'](_0x1341e7['shift']());}}}(a65_0x8889,0x63762));import{PRODUCT_CONFIG}from'../constant/product.js';function a65_0x8889(){const _0x2e6dd9=['sqlcode','10cXCuDL','Alias\x20for\x20--non-interactive','verbose','2474928wvrhBE','1154133kmlBEh','<expr>','Record\x20ID','Name\x20filter','string','4inkjxC','Verbose\x20output','JSON\x20params\x20for\x20execute\x20commands','dryRun','Output\x20format','map','non-interactive','env','json\x20|\x20pretty\x20|\x20compress','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','SQL\x20query\x20code','582946ykPWay','production\x20|\x20development\x20|\x20daily','Environment','dry-run','Force\x20non-interactive\x20mode\x20(CI)','nonInteractive','name','meowKey','2159298OTryeq','548040oEbXPF','Use\x20global\x20config\x20scope','fromEntries','appcode','Override\x20appcode','type','5AAHuhq','<code>','boolean','clear','35MgyGHa','global','params','format','cliDisplayName','app','97185fRaLab','yes','help','cliBinName','2979376lSfpee'];a65_0x8889=function(){return _0x2e6dd9;};return a65_0x8889();}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a65_0x31c6b4(0x189)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a65_0x31c6b4(0x184)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a65_0x31c6b4(0x179),'meowKey':'appcode','type':a65_0x31c6b4(0x194),'description':a65_0x31c6b4(0x17a),'hint':a65_0x31c6b4(0x17d)},{'name':a65_0x31c6b4(0x185),'meowKey':a65_0x31c6b4(0x185),'type':a65_0x31c6b4(0x194),'description':'Select\x20app\x20profile\x20by\x20name','hint':'<name>'},{'name':a65_0x31c6b4(0x169),'meowKey':'env','type':'string','description':a65_0x31c6b4(0x16f),'hint':a65_0x31c6b4(0x16e)},{'name':a65_0x31c6b4(0x183),'meowKey':a65_0x31c6b4(0x183),'type':'string','description':a65_0x31c6b4(0x199),'hint':a65_0x31c6b4(0x16a)},{'name':'jq','meowKey':'jq','type':'string','description':a65_0x31c6b4(0x16b),'hint':a65_0x31c6b4(0x191)},{'name':a65_0x31c6b4(0x170),'meowKey':a65_0x31c6b4(0x198),'type':'boolean','description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':a65_0x31c6b4(0x187),'type':a65_0x31c6b4(0x17e),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a65_0x31c6b4(0x168),'meowKey':a65_0x31c6b4(0x172),'type':a65_0x31c6b4(0x17e),'description':a65_0x31c6b4(0x171)},{'name':a65_0x31c6b4(0x181),'meowKey':a65_0x31c6b4(0x181),'type':'boolean','description':a65_0x31c6b4(0x177)},{'name':'ci','meowKey':'ci','type':'boolean','description':a65_0x31c6b4(0x18d),'hidden':!![]},{'name':a65_0x31c6b4(0x188),'meowKey':'help','type':a65_0x31c6b4(0x17e),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':a65_0x31c6b4(0x194),'description':a65_0x31c6b4(0x192),'hidden':!![]},{'name':'name','meowKey':a65_0x31c6b4(0x173),'type':a65_0x31c6b4(0x194),'description':a65_0x31c6b4(0x193),'hidden':!![]},{'name':'sqlcode','meowKey':a65_0x31c6b4(0x18b),'type':'string','description':a65_0x31c6b4(0x16c),'hidden':!![]},{'name':a65_0x31c6b4(0x182),'meowKey':a65_0x31c6b4(0x182),'type':'string','description':a65_0x31c6b4(0x197),'hidden':!![]},{'name':a65_0x31c6b4(0x18e),'meowKey':a65_0x31c6b4(0x18e),'type':a65_0x31c6b4(0x17e),'description':a65_0x31c6b4(0x196),'hidden':!![]},{'name':'clear','meowKey':a65_0x31c6b4(0x17f),'type':a65_0x31c6b4(0x17e),'description':'Clear\x20output','hidden':!![]}];function a65_0x2087(_0x24e851,_0x4a9a83){_0x24e851=_0x24e851-0x167;const _0x88891d=a65_0x8889();let _0x2087bf=_0x88891d[_0x24e851];return _0x2087bf;}export const PIPELINE_FLAG_NAMES=new Set(['appcode','app','env',a65_0x31c6b4(0x183),'jq',a65_0x31c6b4(0x170),a65_0x31c6b4(0x187),a65_0x31c6b4(0x168),'ci']);export function buildMeowFlags(){const _0x2198d2=a65_0x31c6b4;return Object[_0x2198d2(0x178)](GLOBAL_FLAGS[_0x2198d2(0x167)](_0xe2725d=>[_0xe2725d[_0x2198d2(0x174)],{'type':_0xe2725d[_0x2198d2(0x17b)]}]));}
@@ -1 +1 @@
1
- function a65_0x27aa(){const _0x25b9fb=['100cVLGYa','6UFLVhR','production','7zOukrA','2322DKilft','314285NQdCAQ','1814733YBqPtY','2115685mWiIyl','26312qEbdqX','compress','main','31366prRwto','2scrmTG','506420AEpsTW'];a65_0x27aa=function(){return _0x25b9fb;};return a65_0x27aa();}function a65_0x2723(_0x20538f,_0x554c4b){_0x20538f=_0x20538f-0x151;const _0x27aa66=a65_0x27aa();let _0x2723a5=_0x27aa66[_0x20538f];return _0x2723a5;}const a65_0x324b5d=a65_0x2723;(function(_0x54524b,_0x255dd9){const _0x441ac9=a65_0x2723,_0x4edfc0=_0x54524b();while(!![]){try{const _0x60b3bc=-parseInt(_0x441ac9(0x152))/0x1*(parseInt(_0x441ac9(0x153))/0x2)+-parseInt(_0x441ac9(0x159))/0x3*(-parseInt(_0x441ac9(0x155))/0x4)+-parseInt(_0x441ac9(0x15a))/0x5*(-parseInt(_0x441ac9(0x156))/0x6)+parseInt(_0x441ac9(0x158))/0x7*(-parseInt(_0x441ac9(0x15d))/0x8)+parseInt(_0x441ac9(0x15b))/0x9+parseInt(_0x441ac9(0x154))/0xa+-parseInt(_0x441ac9(0x15c))/0xb;if(_0x60b3bc===_0x255dd9)break;else _0x4edfc0['push'](_0x4edfc0['shift']());}catch(_0x1727c4){_0x4edfc0['push'](_0x4edfc0['shift']());}}}(a65_0x27aa,0x1a3e8));export const DEFAULT_APP_PROFILE_NAME=a65_0x324b5d(0x151);export const DEFAULT_CONFIG_VALUES={'env':a65_0x324b5d(0x157),'format':a65_0x324b5d(0x15e),'locale':'en-US','riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a65_0x324b5d(0x15e);
1
+ const a66_0x4199c9=a66_0x3ae9;(function(_0x288728,_0x21f045){const _0x38c51b=a66_0x3ae9,_0x36cd37=_0x288728();while(!![]){try{const _0x5995b2=parseInt(_0x38c51b(0x10e))/0x1+parseInt(_0x38c51b(0x110))/0x2+parseInt(_0x38c51b(0x112))/0x3*(parseInt(_0x38c51b(0x117))/0x4)+parseInt(_0x38c51b(0x111))/0x5*(parseInt(_0x38c51b(0x116))/0x6)+parseInt(_0x38c51b(0x113))/0x7+-parseInt(_0x38c51b(0x10f))/0x8+-parseInt(_0x38c51b(0x10d))/0x9;if(_0x5995b2===_0x21f045)break;else _0x36cd37['push'](_0x36cd37['shift']());}catch(_0x2d49c1){_0x36cd37['push'](_0x36cd37['shift']());}}}(a66_0x444e,0x940d4));export const DEFAULT_APP_PROFILE_NAME=a66_0x4199c9(0x115);function a66_0x3ae9(_0x44b90b,_0x21c3fd){_0x44b90b=_0x44b90b-0x10d;const _0x444e5c=a66_0x444e();let _0x3ae90c=_0x444e5c[_0x44b90b];return _0x3ae90c;}function a66_0x444e(){const _0x4f0e13=['8029217rzxfSG','write','main','1797918scoixY','16156PgVIYQ','en-US','17979183ETNKIG','1115193SyGbjX','7041208KUTnIV','1067740gdFKwg','10TMahKU','66YdbREj'];a66_0x444e=function(){return _0x4f0e13;};return a66_0x444e();}export const DEFAULT_CONFIG_VALUES={'env':'production','format':'compress','locale':a66_0x4199c9(0x118),'riskLevel':a66_0x4199c9(0x114)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
@@ -1 +1 @@
1
- const a66_0x5af2f6=a66_0x5e5f;(function(_0x5b2c50,_0xc56e41){const _0x2b4295=a66_0x5e5f,_0x2ad578=_0x5b2c50();while(!![]){try{const _0x210190=-parseInt(_0x2b4295(0x9f))/0x1+-parseInt(_0x2b4295(0xa0))/0x2+parseInt(_0x2b4295(0xa1))/0x3*(-parseInt(_0x2b4295(0xa4))/0x4)+parseInt(_0x2b4295(0xa5))/0x5+-parseInt(_0x2b4295(0xa2))/0x6+-parseInt(_0x2b4295(0x9e))/0x7*(parseInt(_0x2b4295(0xa6))/0x8)+parseInt(_0x2b4295(0xa3))/0x9;if(_0x210190===_0xc56e41)break;else _0x2ad578['push'](_0x2ad578['shift']());}catch(_0x1e946e){_0x2ad578['push'](_0x2ad578['shift']());}}}(a66_0x4a86,0xb2290));import{PRODUCT_CONFIG}from'../constant/product.js';function a66_0x5e5f(_0x59b615,_0x5b93f1){_0x59b615=_0x59b615-0x9c;const _0x4a8601=a66_0x4a86();let _0x5e5f19=_0x4a8601[_0x59b615];return _0x5e5f19;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a66_0x5af2f6(0x9c)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a66_0x5af2f6(0x9d)];function a66_0x4a86(){const _0x13b808=['66382lEfRVU','1449136bxwaxp','1286121KvOfqG','1680888EVdEBU','25714683ZrQJOh','4bStfRl','3984305aBZqRv','33816VDteCz','skillSource','npmRegistryBaseUrl','2359COqDTq'];a66_0x4a86=function(){return _0x13b808;};return a66_0x4a86();}
1
+ function a67_0x5ee2(_0x595e01,_0x546b84){_0x595e01=_0x595e01-0x196;const _0x12dc49=a67_0x12dc();let _0x5ee293=_0x12dc49[_0x595e01];return _0x5ee293;}function a67_0x12dc(){const _0x4e605a=['813016itTATV','7JWRdlX','2320012vACcLg','15583530SoArpa','18LyiwKV','npmPackageName','1119603VRJuKL','1061934WnjEfJ','2292100alKClb','669agCduO','542xFWKAS','npmRegistryBaseUrl'];a67_0x12dc=function(){return _0x4e605a;};return a67_0x12dc();}const a67_0x430e49=a67_0x5ee2;(function(_0x3c1ac6,_0xe42dd8){const _0x3d628d=a67_0x5ee2,_0x5c7a74=_0x3c1ac6();while(!![]){try{const _0x176458=-parseInt(_0x3d628d(0x19b))/0x1*(-parseInt(_0x3d628d(0x19c))/0x2)+-parseInt(_0x3d628d(0x198))/0x3+-parseInt(_0x3d628d(0x1a0))/0x4+-parseInt(_0x3d628d(0x19a))/0x5+parseInt(_0x3d628d(0x199))/0x6*(parseInt(_0x3d628d(0x19f))/0x7)+-parseInt(_0x3d628d(0x19e))/0x8*(parseInt(_0x3d628d(0x196))/0x9)+parseInt(_0x3d628d(0x1a1))/0xa;if(_0x176458===_0xe42dd8)break;else _0x5c7a74['push'](_0x5c7a74['shift']());}catch(_0x1678f4){_0x5c7a74['push'](_0x5c7a74['shift']());}}}(a67_0x12dc,0x49ac3));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a67_0x430e49(0x197)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a67_0x430e49(0x19d)];
@@ -1 +1 @@
1
- const a67_0x27a25c=a67_0x21b3;function a67_0x2fc1(){const _0x1c4e09=['1224LruPwz','skillhub','skillHubDomain','user','3HBlDGK','production','21882sDJPxO','987778ycPnwe','1435SIBoBi','nonProduction','32688DSLiOP','165xnBQDG','runtime','87852mIjhBb','domains','1848vhtgds','533954IzEJzn','api','apiDomain','89884HloWFM','7340uvCfMC','userDomain'];a67_0x2fc1=function(){return _0x1c4e09;};return a67_0x2fc1();}(function(_0x13f20f,_0x261aa3){const _0x4df5d6=a67_0x21b3,_0x3265e6=_0x13f20f();while(!![]){try{const _0x2d90e3=parseInt(_0x4df5d6(0x1ed))/0x1+parseInt(_0x4df5d6(0x1f6))/0x2*(-parseInt(_0x4df5d6(0x1ea))/0x3)+parseInt(_0x4df5d6(0x1f9))/0x4*(-parseInt(_0x4df5d6(0x1f1))/0x5)+parseInt(_0x4df5d6(0x1ec))/0x6*(-parseInt(_0x4df5d6(0x1ee))/0x7)+-parseInt(_0x4df5d6(0x1f0))/0x8+-parseInt(_0x4df5d6(0x1e6))/0x9*(-parseInt(_0x4df5d6(0x1e4))/0xa)+parseInt(_0x4df5d6(0x1f5))/0xb*(parseInt(_0x4df5d6(0x1f3))/0xc);if(_0x2d90e3===_0x261aa3)break;else _0x3265e6['push'](_0x3265e6['shift']());}catch(_0x1df777){_0x3265e6['push'](_0x3265e6['shift']());}}}(a67_0x2fc1,0x880e9));import{getEnv,isProduction}from'../constant/env.js';function a67_0x21b3(_0x38c495,_0x2af6d9){_0x38c495=_0x38c495-0x1e4;const _0x2fc171=a67_0x2fc1();let _0x21b3df=_0x2fc171[_0x38c495];return _0x21b3df;}import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x454c6b){const _0x2f1efc=a67_0x21b3;customApiDomain=_0x454c6b?.[_0x2f1efc(0x1f8)],customUserDomain=_0x454c6b?.[_0x2f1efc(0x1e5)],customRuntimeDomain=_0x454c6b?.['runtimeDomain'],customSkillHubDomain=_0x454c6b?.[_0x2f1efc(0x1e8)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x27a25c(0x1f4)][a67_0x27a25c(0x1eb)][a67_0x27a25c(0x1e9)]:PRODUCT_CONFIG[a67_0x27a25c(0x1f4)]['nonProduction']['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x27a25c(0x1f4)][a67_0x27a25c(0x1eb)][a67_0x27a25c(0x1f7)]:PRODUCT_CONFIG[a67_0x27a25c(0x1f4)][a67_0x27a25c(0x1ef)][a67_0x27a25c(0x1f7)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x27a25c(0x1f4)][a67_0x27a25c(0x1eb)][a67_0x27a25c(0x1f2)]:PRODUCT_CONFIG['domains'][a67_0x27a25c(0x1ef)][a67_0x27a25c(0x1f2)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x27a25c(0x1f4)][a67_0x27a25c(0x1eb)][a67_0x27a25c(0x1e7)]:PRODUCT_CONFIG[a67_0x27a25c(0x1f4)]['nonProduction'][a67_0x27a25c(0x1e7)]);
1
+ const a68_0x5e5bd8=a68_0x290d;(function(_0x56f37d,_0x186371){const _0x3a57b0=a68_0x290d,_0x407c90=_0x56f37d();while(!![]){try{const _0x33eb6f=parseInt(_0x3a57b0(0xc9))/0x1+parseInt(_0x3a57b0(0xc7))/0x2+parseInt(_0x3a57b0(0xb8))/0x3+parseInt(_0x3a57b0(0xc2))/0x4+-parseInt(_0x3a57b0(0xc0))/0x5+parseInt(_0x3a57b0(0xc1))/0x6*(-parseInt(_0x3a57b0(0xc3))/0x7)+parseInt(_0x3a57b0(0xc6))/0x8*(-parseInt(_0x3a57b0(0xb9))/0x9);if(_0x33eb6f===_0x186371)break;else _0x407c90['push'](_0x407c90['shift']());}catch(_0x243c1d){_0x407c90['push'](_0x407c90['shift']());}}}(a68_0x33be,0x8ac34));import{getEnv,isProduction}from'../constant/env.js';function a68_0x290d(_0x272e5e,_0x1d1811){_0x272e5e=_0x272e5e-0xb8;const _0x33bec4=a68_0x33be();let _0x290dd9=_0x33bec4[_0x272e5e];return _0x290dd9;}import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x330286){const _0x16b54d=a68_0x290d;customApiDomain=_0x330286?.[_0x16b54d(0xbe)],customUserDomain=_0x330286?.['userDomain'],customRuntimeDomain=_0x330286?.[_0x16b54d(0xbb)],customSkillHubDomain=_0x330286?.[_0x16b54d(0xc4)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a68_0x5e5bd8(0xba)]['production']['user']:PRODUCT_CONFIG[a68_0x5e5bd8(0xba)][a68_0x5e5bd8(0xbf)]['user']);function a68_0x33be(){const _0x4f8f8a=['347008brVoAp','461112QmIfwo','skillhub','239111QPGaDo','897441GDySYh','9acsvoK','domains','runtimeDomain','runtime','production','apiDomain','nonProduction','682450oeoXEw','175050KnKujN','2134996bFIDAW','133BZjqvi','skillHubDomain','api'];a68_0x33be=function(){return _0x4f8f8a;};return a68_0x33be();}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a68_0x5e5bd8(0xbd)][a68_0x5e5bd8(0xc5)]:PRODUCT_CONFIG['domains']['nonProduction'][a68_0x5e5bd8(0xc5)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a68_0x5e5bd8(0xba)][a68_0x5e5bd8(0xbd)][a68_0x5e5bd8(0xbc)]:PRODUCT_CONFIG[a68_0x5e5bd8(0xba)][a68_0x5e5bd8(0xbf)]['runtime']);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a68_0x5e5bd8(0xba)][a68_0x5e5bd8(0xbd)][a68_0x5e5bd8(0xc8)]:PRODUCT_CONFIG[a68_0x5e5bd8(0xba)]['nonProduction'][a68_0x5e5bd8(0xc8)]);
@@ -1 +1 @@
1
- const a68_0x5bfb66=a68_0x5854;(function(_0x298e8a,_0x4c2239){const _0x48517c=a68_0x5854,_0x239a8a=_0x298e8a();while(!![]){try{const _0x48b204=-parseInt(_0x48517c(0xfa))/0x1*(-parseInt(_0x48517c(0xfe))/0x2)+-parseInt(_0x48517c(0xff))/0x3*(parseInt(_0x48517c(0x107))/0x4)+-parseInt(_0x48517c(0xfd))/0x5*(-parseInt(_0x48517c(0x100))/0x6)+parseInt(_0x48517c(0x101))/0x7+-parseInt(_0x48517c(0x103))/0x8*(-parseInt(_0x48517c(0x102))/0x9)+-parseInt(_0x48517c(0xf9))/0xa+-parseInt(_0x48517c(0x104))/0xb;if(_0x48b204===_0x4c2239)break;else _0x239a8a['push'](_0x239a8a['shift']());}catch(_0x262d49){_0x239a8a['push'](_0x239a8a['shift']());}}}(a68_0x3694,0xa8cc9));function a68_0x3694(){const _0x201ea7=['6mNxXjl','635649CplevE','9rNUKED','869272hBGZhE','472747qxVRes','dev','production','55904XWqtUm','ENV','9088530XXYDdM','20wYpMuJ','development','daily','5659905FzSxSL','46552tJwEki','33gEVIzI'];a68_0x3694=function(){return _0x201ea7;};return a68_0x3694();}import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a68_0x5bfb66(0x106),a68_0x5bfb66(0xfb),'daily'];export function normalizeEnv(_0x32b6e9){const _0x12a0ea=a68_0x5bfb66;return _0x32b6e9==='online'?_0x12a0ea(0x106):_0x32b6e9;}export function isProduction(_0xd1f9c9){const _0x5b7d5b=a68_0x5bfb66;return normalizeEnv(_0xd1f9c9)===_0x5b7d5b(0x106);}export function isDaily(_0x3addfe){const _0x31e6ad=a68_0x5bfb66;return normalizeEnv(_0x3addfe)===_0x31e6ad(0xfc);}export function isDev(_0x1a1f33){const _0x19da44=a68_0x5bfb66,_0x3990f5=normalizeEnv(_0x1a1f33);return _0x3990f5===_0x19da44(0xfb)||_0x3990f5===_0x19da44(0x105);}function a68_0x5854(_0xa30a54,_0x50e6ab){_0xa30a54=_0xa30a54-0xf9;const _0x36948a=a68_0x3694();let _0x585471=_0x36948a[_0xa30a54];return _0x585471;}let env=normalizeEnv(productEnv(a68_0x5bfb66(0x108))||a68_0x5bfb66(0x106));export function getEnv(){return env;}export function initEnv(_0x40aacd){env=normalizeEnv(_0x40aacd);}
1
+ const a69_0x288300=a69_0x26d9;function a69_0x26d9(_0x42f3d7,_0xb10ea6){_0x42f3d7=_0x42f3d7-0x85;const _0x3e28bf=a69_0x3e28();let _0x26d9d0=_0x3e28bf[_0x42f3d7];return _0x26d9d0;}(function(_0x25d9ef,_0x2b849e){const _0x10a587=a69_0x26d9,_0x4568b3=_0x25d9ef();while(!![]){try{const _0x56d60b=parseInt(_0x10a587(0x8e))/0x1*(-parseInt(_0x10a587(0x86))/0x2)+-parseInt(_0x10a587(0x89))/0x3*(-parseInt(_0x10a587(0x90))/0x4)+parseInt(_0x10a587(0x92))/0x5*(parseInt(_0x10a587(0x85))/0x6)+parseInt(_0x10a587(0x8c))/0x7+parseInt(_0x10a587(0x8b))/0x8*(-parseInt(_0x10a587(0x94))/0x9)+-parseInt(_0x10a587(0x8a))/0xa*(parseInt(_0x10a587(0x96))/0xb)+-parseInt(_0x10a587(0x87))/0xc*(parseInt(_0x10a587(0x93))/0xd);if(_0x56d60b===_0x2b849e)break;else _0x4568b3['push'](_0x4568b3['shift']());}catch(_0x16d2e5){_0x4568b3['push'](_0x4568b3['shift']());}}}(a69_0x3e28,0xec646));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a69_0x288300(0x88),a69_0x288300(0x8d),a69_0x288300(0x95)];export function normalizeEnv(_0x38b1ea){const _0x210d8c=a69_0x288300;return _0x38b1ea===_0x210d8c(0x91)?_0x210d8c(0x88):_0x38b1ea;}export function isProduction(_0x38f400){const _0x18de9b=a69_0x288300;return normalizeEnv(_0x38f400)===_0x18de9b(0x88);}export function isDaily(_0x1ef447){const _0x25b759=a69_0x288300;return normalizeEnv(_0x1ef447)===_0x25b759(0x95);}export function isDev(_0x57151b){const _0xbe71b5=a69_0x288300,_0x12f572=normalizeEnv(_0x57151b);return _0x12f572===_0xbe71b5(0x8d)||_0x12f572==='dev';}let env=normalizeEnv(productEnv(a69_0x288300(0x8f))||'production');export function getEnv(){return env;}export function initEnv(_0xf6ecf4){env=normalizeEnv(_0xf6ecf4);}function a69_0x3e28(){const _0x26bb2a=['7425UNchWr','daily','107481ryySIp','1810056GrAPMi','34TWkBRz','1776GSUnZN','production','5789505hKmCeB','250YwKKZW','3720sfcfvK','4467582VZagwK','development','58735rHcpfk','ENV','4lwdIkV','online','10zUOpie','50661CVnsCg'];a69_0x3e28=function(){return _0x26bb2a;};return a69_0x3e28();}
@@ -1 +1 @@
1
- const a69_0x5199bd=a69_0x51d9;function a69_0x1396(){const _0x3883b1=['567702SkEKOE','744410lwOyII','995614ykyPQm','20kCmmjQ','11227250EHRdAU','3lNGPsM','compress','255516QncIye','5761240YGnFst','pretty','json','7AHAtVy','214488tqiZJd'];a69_0x1396=function(){return _0x3883b1;};return a69_0x1396();}function a69_0x51d9(_0x354912,_0x2d2e76){_0x354912=_0x354912-0x19d;const _0x139671=a69_0x1396();let _0x51d9c1=_0x139671[_0x354912];return _0x51d9c1;}(function(_0x29a2c3,_0x425253){const _0x46153e=a69_0x51d9,_0x1939ab=_0x29a2c3();while(!![]){try{const _0x2f33bd=-parseInt(_0x46153e(0x1a0))/0x1+-parseInt(_0x46153e(0x19e))/0x2*(-parseInt(_0x46153e(0x1a3))/0x3)+parseInt(_0x46153e(0x1a1))/0x4*(parseInt(_0x46153e(0x19f))/0x5)+parseInt(_0x46153e(0x1a5))/0x6+-parseInt(_0x46153e(0x1a9))/0x7*(parseInt(_0x46153e(0x1a6))/0x8)+parseInt(_0x46153e(0x19d))/0x9+parseInt(_0x46153e(0x1a2))/0xa;if(_0x2f33bd===_0x425253)break;else _0x1939ab['push'](_0x1939ab['shift']());}catch(_0x1fb543){_0x1939ab['push'](_0x1939ab['shift']());}}}(a69_0x1396,0x7a783));export const OUTPUT_FORMAT_VALUES=[a69_0x5199bd(0x1a8),a69_0x5199bd(0x1a7),a69_0x5199bd(0x1a4)];
1
+ const a70_0x59a29b=a70_0x4004;(function(_0x187149,_0x25d405){const _0x1ca753=a70_0x4004,_0x720d44=_0x187149();while(!![]){try{const _0x42fb96=parseInt(_0x1ca753(0x18a))/0x1+parseInt(_0x1ca753(0x18b))/0x2*(-parseInt(_0x1ca753(0x188))/0x3)+parseInt(_0x1ca753(0x191))/0x4*(parseInt(_0x1ca753(0x18c))/0x5)+parseInt(_0x1ca753(0x192))/0x6+parseInt(_0x1ca753(0x18e))/0x7*(parseInt(_0x1ca753(0x193))/0x8)+-parseInt(_0x1ca753(0x190))/0x9*(parseInt(_0x1ca753(0x18d))/0xa)+-parseInt(_0x1ca753(0x18f))/0xb;if(_0x42fb96===_0x25d405)break;else _0x720d44['push'](_0x720d44['shift']());}catch(_0x2616b5){_0x720d44['push'](_0x720d44['shift']());}}}(a70_0x27f1,0xde22d));function a70_0x27f1(){const _0x5e1797=['304839AwoYlr','4APFCTD','639290GUYiPR','250IcWxbe','225596RCAFSt','2665894WmIEAh','121833ofUUFq','28wWxYuJ','2696166KsDWnm','8JuYCUC','286179dclvif','pretty'];a70_0x27f1=function(){return _0x5e1797;};return a70_0x27f1();}function a70_0x4004(_0x42fbde,_0x558c66){_0x42fbde=_0x42fbde-0x188;const _0x27f161=a70_0x27f1();let _0x40045f=_0x27f161[_0x42fbde];return _0x40045f;}export const OUTPUT_FORMAT_VALUES=['json',a70_0x59a29b(0x189),'compress'];
@@ -1 +1 @@
1
- function a70_0x56e0(_0x300c5e,_0x18faea){_0x300c5e=_0x300c5e-0xab;const _0x23cf44=a70_0x23cf();let _0x56e051=_0x23cf44[_0x300c5e];return _0x56e051;}const a70_0x284193=a70_0x56e0;(function(_0x4f498f,_0xba7a4f){const _0x3c3d1f=a70_0x56e0,_0x4f6cbb=_0x4f498f();while(!![]){try{const _0x1f002e=-parseInt(_0x3c3d1f(0xc1))/0x1+-parseInt(_0x3c3d1f(0xc5))/0x2*(-parseInt(_0x3c3d1f(0xc7))/0x3)+-parseInt(_0x3c3d1f(0xb6))/0x4*(parseInt(_0x3c3d1f(0xac))/0x5)+parseInt(_0x3c3d1f(0xb2))/0x6*(-parseInt(_0x3c3d1f(0xc6))/0x7)+-parseInt(_0x3c3d1f(0xb5))/0x8*(-parseInt(_0x3c3d1f(0xaf))/0x9)+-parseInt(_0x3c3d1f(0xc4))/0xa*(-parseInt(_0x3c3d1f(0xc0))/0xb)+parseInt(_0x3c3d1f(0xc2))/0xc;if(_0x1f002e===_0xba7a4f)break;else _0x4f6cbb['push'](_0x4f6cbb['shift']());}catch(_0x31ef09){_0x4f6cbb['push'](_0x4f6cbb['shift']());}}}(a70_0x23cf,0xcb6aa));function a70_0x23cf(){const _0x406c11=['SKIP_NPX_SKILLS','https://skills-daily.lovrabet.com','/user/ak','https://registry.npmjs.org','11ecOGHF','464723tZBEjy','12552300qWXGku','cli:lovrabet-runtime','13705210ynlovn','338grwRCq','28lLVatR','16569gkoPTN','.lovrabetrc','lovrabet/lovrabet-cli','.lovrabet','https://user.lovrabet.com','.lovrabet-runtime.log','34135KGcjaB','map','@lovrabet/lovrabet-cli','81jbYqga','https://user-daily.lovrabet.com','envPrefix','2141868rOntuw','LOVRABET','RABETBASE','197728xBJXtx','496yMDsRk','.lovrabet.json','https://api.lovrabet.com','https://runtime.lovrabet.com','https://daily-api.lovrabet.com','https://skills.lovrabet.com'];a70_0x23cf=function(){return _0x406c11;};return a70_0x23cf();}export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':a70_0x284193(0xae),'skillSource':a70_0x284193(0xc9),'npmRegistryBaseUrl':a70_0x284193(0xbf),'envPrefix':a70_0x284193(0xb3),'legacyEnvPrefixes':[a70_0x284193(0xb4)],'configFileNames':[a70_0x284193(0xb7),a70_0x284193(0xc8)],'newConfigFileName':a70_0x284193(0xb7),'homeDirName':a70_0x284193(0xca),'logFileName':a70_0x284193(0xab),'invokeSource':a70_0x284193(0xc3),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a70_0x284193(0xbc),'domains':{'production':{'user':a70_0x284193(0xcb),'api':a70_0x284193(0xb8),'runtime':a70_0x284193(0xb9),'skillhub':a70_0x284193(0xbb)},'nonProduction':{'user':a70_0x284193(0xb0),'api':a70_0x284193(0xba),'runtime':'https://daily-runtime.lovrabet.com','skillhub':a70_0x284193(0xbd)}},'accessKeyCreatePath':a70_0x284193(0xbe)};export function productEnvName(_0x3ee8ee){const _0x2fe328=a70_0x284193;return PRODUCT_CONFIG[_0x2fe328(0xb1)]+'_'+_0x3ee8ee;}export function productEnvNames(_0x34be62){const _0x37aca3=a70_0x284193;return[productEnvName(_0x34be62),...PRODUCT_CONFIG['legacyEnvPrefixes'][_0x37aca3(0xad)](_0x4cdfde=>_0x4cdfde+'_'+_0x34be62)];}export function productEnv(_0x4c2c5b){for(const _0x532de3 of productEnvNames(_0x4c2c5b)){const _0xa973dc=process.env[_0x532de3];if(_0xa973dc!==undefined)return _0xa973dc;}return undefined;}
1
+ const a71_0x1ba759=a71_0xddcd;(function(_0xd86565,_0x356104){const _0x228ebc=a71_0xddcd,_0x193897=_0xd86565();while(!![]){try{const _0x50583a=parseInt(_0x228ebc(0x1f4))/0x1+parseInt(_0x228ebc(0x1fe))/0x2+parseInt(_0x228ebc(0x1ee))/0x3+-parseInt(_0x228ebc(0x1f3))/0x4*(parseInt(_0x228ebc(0x1fa))/0x5)+parseInt(_0x228ebc(0x205))/0x6+parseInt(_0x228ebc(0x201))/0x7*(-parseInt(_0x228ebc(0x200))/0x8)+-parseInt(_0x228ebc(0x204))/0x9*(parseInt(_0x228ebc(0x1fd))/0xa);if(_0x50583a===_0x356104)break;else _0x193897['push'](_0x193897['shift']());}catch(_0xfab6a2){_0x193897['push'](_0x193897['shift']());}}}(a71_0x3993,0xe7b14));export const PRODUCT_CONFIG={'cliBinName':a71_0x1ba759(0x1f2),'cliDisplayName':a71_0x1ba759(0x20a),'npmPackageName':a71_0x1ba759(0x1f6),'skillSource':a71_0x1ba759(0x1f1),'npmRegistryBaseUrl':a71_0x1ba759(0x209),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a71_0x1ba759(0x1f0)],'configFileNames':['.lovrabet.json',a71_0x1ba759(0x206)],'newConfigFileName':'.lovrabet.json','homeDirName':a71_0x1ba759(0x1fb),'logFileName':a71_0x1ba759(0x1f8),'invokeSource':a71_0x1ba759(0x207),'userCenterDisplayName':a71_0x1ba759(0x208),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':a71_0x1ba759(0x1f7),'api':a71_0x1ba759(0x1ff),'runtime':a71_0x1ba759(0x1fc),'skillhub':a71_0x1ba759(0x1f5)},'nonProduction':{'user':a71_0x1ba759(0x1f9),'api':a71_0x1ba759(0x203),'runtime':'https://daily-runtime.lovrabet.com','skillhub':a71_0x1ba759(0x1ef)}},'accessKeyCreatePath':'/user/ak'};export function productEnvName(_0x4e2496){const _0x2c2e6c=a71_0x1ba759;return PRODUCT_CONFIG[_0x2c2e6c(0x202)]+'_'+_0x4e2496;}function a71_0xddcd(_0x5857dd,_0x3196bd){_0x5857dd=_0x5857dd-0x1ed;const _0x399351=a71_0x3993();let _0xddcdee=_0x399351[_0x5857dd];return _0xddcdee;}function a71_0x3993(){const _0x5828f6=['7810328rkIosm','7rzxiaP','envPrefix','https://daily-api.lovrabet.com','9KdgXHD','9640158ilwSVc','.lovrabetrc','cli:lovrabet-runtime','Lovrabet\x20User\x20Center','https://registry.npmjs.org','Lovrabet\x20Runtime\x20CLI','legacyEnvPrefixes','3122970GACFyt','https://skills-daily.lovrabet.com','RABETBASE','lovrabet/lovrabet-cli','lovrabet','2110100OVeiMr','1488773bmjELR','https://skills.lovrabet.com','@lovrabet/lovrabet-cli','https://user.lovrabet.com','.lovrabet-runtime.log','https://user-daily.lovrabet.com','15QHSGUG','.lovrabet','https://runtime.lovrabet.com','22703630fSKwyo','3283570bFiKwm','https://api.lovrabet.com'];a71_0x3993=function(){return _0x5828f6;};return a71_0x3993();}export function productEnvNames(_0xc9f3b6){const _0x193163=a71_0x1ba759;return[productEnvName(_0xc9f3b6),...PRODUCT_CONFIG[_0x193163(0x1ed)]['map'](_0x4ca28e=>_0x4ca28e+'_'+_0xc9f3b6)];}export function productEnv(_0x1e7069){for(const _0x5ab491 of productEnvNames(_0x1e7069)){const _0x2e72d2=process.env[_0x5ab491];if(_0x2e72d2!==undefined)return _0x2e72d2;}return undefined;}
@@ -1 +1 @@
1
- const a71_0xb90f5b=a71_0x5948;(function(_0x31bf4e,_0xa89e9b){const _0x41de1f=a71_0x5948,_0x407bcf=_0x31bf4e();while(!![]){try{const _0x125195=parseInt(_0x41de1f(0x79))/0x1+-parseInt(_0x41de1f(0x7a))/0x2*(-parseInt(_0x41de1f(0x72))/0x3)+-parseInt(_0x41de1f(0x76))/0x4*(-parseInt(_0x41de1f(0x7d))/0x5)+-parseInt(_0x41de1f(0x7c))/0x6+-parseInt(_0x41de1f(0x74))/0x7*(parseInt(_0x41de1f(0x7b))/0x8)+parseInt(_0x41de1f(0x75))/0x9+-parseInt(_0x41de1f(0x78))/0xa;if(_0x125195===_0xa89e9b)break;else _0x407bcf['push'](_0x407bcf['shift']());}catch(_0x228466){_0x407bcf['push'](_0x407bcf['shift']());}}}(a71_0xbf98,0x63951));function a71_0x5948(_0x2ae529,_0x423ce0){_0x2ae529=_0x2ae529-0x72;const _0xbf9810=a71_0xbf98();let _0x5948de=_0xbf9810[_0x2ae529];return _0x5948de;}function a71_0xbf98(){const _0x2c80b6=['68805bSYsiT','4QONWsu','read','1636270Gdjjuq','399987BDbcDu','1105368jpqnoa','977104aQzDqC','1711386LZvPMl','92845GweRSQ','3FztUsw','high-risk-write','7NTeUAA'];a71_0xbf98=function(){return _0x2c80b6;};return a71_0xbf98();}export const RISK_LEVEL_VALUES=[a71_0xb90f5b(0x77),'write',a71_0xb90f5b(0x73)];
1
+ function a72_0x15e1(_0x4e34ac,_0x380be2){_0x4e34ac=_0x4e34ac-0x9d;const _0x567fb3=a72_0x567f();let _0x15e1df=_0x567fb3[_0x4e34ac];return _0x15e1df;}const a72_0x41d512=a72_0x15e1;(function(_0x1616ba,_0x13e41b){const _0x42d11f=a72_0x15e1,_0x175c88=_0x1616ba();while(!![]){try{const _0x1a5846=parseInt(_0x42d11f(0xa9))/0x1*(parseInt(_0x42d11f(0xa1))/0x2)+-parseInt(_0x42d11f(0x9e))/0x3*(parseInt(_0x42d11f(0xa4))/0x4)+-parseInt(_0x42d11f(0xa8))/0x5*(-parseInt(_0x42d11f(0xa2))/0x6)+parseInt(_0x42d11f(0x9d))/0x7*(-parseInt(_0x42d11f(0xa0))/0x8)+-parseInt(_0x42d11f(0xa3))/0x9+parseInt(_0x42d11f(0xa7))/0xa*(parseInt(_0x42d11f(0x9f))/0xb)+-parseInt(_0x42d11f(0xa6))/0xc;if(_0x1a5846===_0x13e41b)break;else _0x175c88['push'](_0x175c88['shift']());}catch(_0x4a1708){_0x175c88['push'](_0x175c88['shift']());}}}(a72_0x567f,0xbc563));export const RISK_LEVEL_VALUES=['read',a72_0x41d512(0xaa),a72_0x41d512(0xa5)];function a72_0x567f(){const _0x59c93b=['4114913lpcOJo','16AeiijU','214iOpONB','45102RNNuYV','2375055fMrGqP','56XZtibk','high-risk-write','16859856BuBjPM','20BltJlI','895fcOnzX','6027stBzAa','write','795431CxtCyn','15219mEHahC'];a72_0x567f=function(){return _0x59c93b;};return a72_0x567f();}
@@ -1 +1 @@
1
- function a72_0xd0ef(){const _0x24dfde=['production','2257352abjXjV','1082873anNYqc','6248610OaOhHx','2083059njqDiC','56CunZJu','domains','581382JVJkcS','140YULfTk','2678674AWOjwf','67412ebYphP'];a72_0xd0ef=function(){return _0x24dfde;};return a72_0xd0ef();}function a72_0x7fc0(_0x2aa9cd,_0x4b0d78){_0x2aa9cd=_0x2aa9cd-0x16d;const _0xd0efff=a72_0xd0ef();let _0x7fc0d8=_0xd0efff[_0x2aa9cd];return _0x7fc0d8;}const a72_0x3c14fb=a72_0x7fc0;(function(_0x470f5f,_0x36af6a){const _0x52648e=a72_0x7fc0,_0x2011f9=_0x470f5f();while(!![]){try{const _0x14efc5=-parseInt(_0x52648e(0x177))/0x1+parseInt(_0x52648e(0x173))/0x2+parseInt(_0x52648e(0x16e))/0x3+parseInt(_0x52648e(0x174))/0x4*(-parseInt(_0x52648e(0x172))/0x5)+parseInt(_0x52648e(0x171))/0x6*(-parseInt(_0x52648e(0x16f))/0x7)+parseInt(_0x52648e(0x176))/0x8+parseInt(_0x52648e(0x16d))/0x9;if(_0x14efc5===_0x36af6a)break;else _0x2011f9['push'](_0x2011f9['shift']());}catch(_0x4250cf){_0x2011f9['push'](_0x2011f9['shift']());}}}(a72_0xd0ef,0xa6118));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a72_0x3c14fb(0x170)][a72_0x3c14fb(0x175)]['user']+PRODUCT_CONFIG['accessKeyCreatePath'];
1
+ const a73_0x4c74e0=a73_0x51c8;(function(_0x31631c,_0x506dad){const _0x54ca76=a73_0x51c8,_0x18ffad=_0x31631c();while(!![]){try{const _0x126146=parseInt(_0x54ca76(0x96))/0x1+-parseInt(_0x54ca76(0x8b))/0x2*(parseInt(_0x54ca76(0x8f))/0x3)+-parseInt(_0x54ca76(0x94))/0x4+-parseInt(_0x54ca76(0x8d))/0x5+-parseInt(_0x54ca76(0x8a))/0x6*(-parseInt(_0x54ca76(0x90))/0x7)+parseInt(_0x54ca76(0x93))/0x8*(-parseInt(_0x54ca76(0x8e))/0x9)+-parseInt(_0x54ca76(0x91))/0xa*(-parseInt(_0x54ca76(0x92))/0xb);if(_0x126146===_0x506dad)break;else _0x18ffad['push'](_0x18ffad['shift']());}catch(_0x14be44){_0x18ffad['push'](_0x18ffad['shift']());}}}(a73_0x4366,0x97838));function a73_0x51c8(_0x5e6dbc,_0x15f458){_0x5e6dbc=_0x5e6dbc-0x8a;const _0x436679=a73_0x4366();let _0x51c881=_0x436679[_0x5e6dbc];return _0x51c881;}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG['domains'][a73_0x4c74e0(0x95)][a73_0x4c74e0(0x8c)]+PRODUCT_CONFIG[a73_0x4c74e0(0x97)];function a73_0x4366(){const _0x2fc8ae=['400908FPmRGt','user','5823525DjWgjO','1062cAwEPd','18SOhWKP','1625813ASSTlh','17540anpOKs','15994BLbaDf','24576SFwKCL','1176792ppKoUv','production','862148JGzEQb','accessKeyCreatePath','6gmwvWF'];a73_0x4366=function(){return _0x2fc8ae;};return a73_0x4366();}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a73_0x28d0f8=a73_0x3d41;(function(_0x2a3b4f,_0x540fa3){const _0x2c9245=a73_0x3d41,_0x547186=_0x2a3b4f();while(!![]){try{const _0x3ff349=-parseInt(_0x2c9245(0x1bf))/0x1+-parseInt(_0x2c9245(0x1d4))/0x2+parseInt(_0x2c9245(0x1e4))/0x3+-parseInt(_0x2c9245(0x1d1))/0x4*(parseInt(_0x2c9245(0x1c2))/0x5)+-parseInt(_0x2c9245(0x1b1))/0x6*(parseInt(_0x2c9245(0x1e9))/0x7)+parseInt(_0x2c9245(0x1e7))/0x8+-parseInt(_0x2c9245(0x1c7))/0x9*(-parseInt(_0x2c9245(0x1d8))/0xa);if(_0x3ff349===_0x540fa3)break;else _0x547186['push'](_0x547186['shift']());}catch(_0x1db23e){_0x547186['push'](_0x547186['shift']());}}}(a73_0x23c9,0xe93c0));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a73_0x28d0f8(0x1bc)];function resolveConfigPath(_0xdc3f0e){for(const _0x3d2ad0 of CONFIG_NAMES){const _0x2d9914=resolve(_0xdc3f0e,_0x3d2ad0);if(existsSync(_0x2d9914))return _0x2d9914;}return undefined;}export function resolveWriteConfigPath(_0x1ac316){const _0x25d01b=a73_0x28d0f8,_0x51e63d=_0x1ac316===_0x25d01b(0x1d0)?process[_0x25d01b(0x1ba)]():homedir(),_0x375259=resolveConfigPath(_0x51e63d);return _0x375259??resolve(_0x51e63d,NEW_CONFIG_NAME);}export function readConfigFile(_0x403bd5){const _0x592d89=a73_0x28d0f8;try{if(existsSync(_0x403bd5)){const _0x2c3683=readFileSync(_0x403bd5,{'encoding':_0x592d89(0x1ea)});if(_0x2c3683){const _0x4e3773=JSON[_0x592d89(0x1e8)](_0x2c3683);return migrateOnlineEnv(_0x403bd5,_0x4e3773),_0x4e3773;}}}catch{}return{};}function migrateOnlineEnv(_0x53efad,_0x882ea7){const _0x345a66=a73_0x28d0f8;let _0x441f60=![];_0x882ea7[_0x345a66(0x1c1)]==='online'&&(_0x882ea7['env']=_0x345a66(0x1cb),_0x441f60=!![]);if(_0x882ea7[_0x345a66(0x1ed)]&&typeof _0x882ea7[_0x345a66(0x1ed)]===_0x345a66(0x1ee))for(const _0xb6fad9 of Object[_0x345a66(0x1c5)](_0x882ea7[_0x345a66(0x1ed)])){_0xb6fad9&&_0xb6fad9[_0x345a66(0x1c1)]==='online'&&(_0xb6fad9[_0x345a66(0x1c1)]=_0x345a66(0x1cb),_0x441f60=!![]);}if(_0x441f60)try{writeConfigFile(_0x53efad,_0x882ea7);}catch{}}export function writeConfigFile(_0x418b35,_0x223a04){const _0x5c0cea=a73_0x28d0f8,_0x15f86c=dirname(_0x418b35);!existsSync(_0x15f86c)&&mkdirSync(_0x15f86c,{'recursive':!![]});const _0x2b344f=_0x418b35+'.tmp';try{writeFileSync(_0x2b344f,JSON[_0x5c0cea(0x1d5)](_0x223a04,null,0x2)+'\x0a',{'encoding':_0x5c0cea(0x1ea),'mode':0x180});try{renameSync(_0x2b344f,_0x418b35);}catch(_0x45cd78){if(_0x45cd78[_0x5c0cea(0x1cc)]==='EPERM'||_0x45cd78['code']===_0x5c0cea(0x1b5)||_0x45cd78[_0x5c0cea(0x1cc)]==='EACCES'){writeFileSync(_0x418b35,JSON[_0x5c0cea(0x1d5)](_0x223a04,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x2b344f);}catch{}}else throw _0x45cd78;}}catch(_0x1b1656){try{unlinkSync(_0x2b344f);}catch{}throw _0x1b1656;}}export function isNonInteractiveMode(_0x2c3a22){const _0xa5c983=a73_0x28d0f8;return!!(_0x2c3a22[_0xa5c983(0x1e3)]||_0x2c3a22['ci']||productEnvNames('CI')[_0xa5c983(0x1d9)](_0x2a4d79=>process.env[_0x2a4d79]===_0xa5c983(0x1c4))||process.env.CI===_0xa5c983(0x1c4)||!process[_0xa5c983(0x1bd)][_0xa5c983(0x1c8)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x27a3e9=a73_0x28d0f8;if(!process[_0x27a3e9(0x1eb)][_0x27a3e9(0x1c8)])return![];try{const _0xf6ea14=process[_0x27a3e9(0x1eb)][_0x27a3e9(0x1e5)];return process[_0x27a3e9(0x1eb)]['setRawMode'](!![]),process[_0x27a3e9(0x1eb)]['setRawMode'](_0xf6ea14??![]),!![];}catch{return![];}}export async function createContext(_0xdd6d04){const _0x54f1ee=a73_0x28d0f8,_0x10e7a0=readRawConfig(),_0x3c8655=buildConfig(_0x10e7a0,_0xdd6d04);await initGlobalEnvironment(_0x3c8655);const {getUserDomain:_0x502a74,getApiDomain:_0x467c03}=await import('./constant/domain.js'),_0xf662a5={'apiDomain':_0x467c03(),'userDomain':_0x502a74()},_0xd3e158=await buildAuth(_0x3c8655);logger['setLogPath'](process[_0x54f1ee(0x1ba)]());const _0x2ea2b9=(CLI_BIN_NAME+'\x20'+process[_0x54f1ee(0x1f0)]['slice'](0x2)[_0x54f1ee(0x1d7)]('\x20'))[_0x54f1ee(0x1d6)]();logger['setRawCommand'](_0x2ea2b9);const _0xbc6f54=isNonInteractiveMode(_0xdd6d04);return{'config':_0x3c8655,'auth':_0xd3e158,'logger':logger,'env':_0xf662a5,'nonInteractive':_0xbc6f54};}export function buildConfigFromFlags(_0x15242b){return buildConfig(readRawConfig(),_0x15242b);}export function getLocalAppAliases(_0x25e7a1){const _0x14e43f=a73_0x28d0f8;return _0x25e7a1[_0x14e43f(0x1ed)]&&typeof _0x25e7a1[_0x14e43f(0x1ed)]===_0x14e43f(0x1ee)?_0x25e7a1[_0x14e43f(0x1ed)]:{};}export function resolveLocalAppAliasCode(_0x42541a,_0x5b79af){const _0x1cc3ba=a73_0x28d0f8;if(!_0x5b79af)return undefined;const _0x258592=getLocalAppAliases(_0x42541a)[_0x5b79af],_0x104512=_0x258592?.[_0x1cc3ba(0x1e6)];return typeof _0x104512===_0x1cc3ba(0x1b6)&&_0x104512[_0x1cc3ba(0x1d6)]()?_0x104512[_0x1cc3ba(0x1d6)]():undefined;}export function readAppCodeFromConfig(){const _0x1ce69a=a73_0x28d0f8,_0x198f97=readRawConfig(),_0x10439d=_0x198f97['appcode']??_0x198f97[_0x1ce69a(0x1e1)];if(typeof _0x10439d===_0x1ce69a(0x1b6)&&_0x10439d[_0x1ce69a(0x1d6)]())return _0x10439d[_0x1ce69a(0x1d6)]();const _0x221b18=resolveLocalAppAliasCode(_0x198f97,typeof _0x198f97['defaultApp']==='string'?_0x198f97[_0x1ce69a(0x1b3)]:undefined);if(_0x221b18)return _0x221b18;const _0x548bc=normalizeEnv(String(_0x198f97['env']||'production')),_0x5c5402=isDaily(_0x548bc)?_0x1ce69a(0x1d2):isDev(_0x548bc)?_0x1ce69a(0x1dd):_0x1ce69a(0x1cb),_0x4dd917=resolveCachedAppCode(typeof _0x198f97[_0x1ce69a(0x1b3)]===_0x1ce69a(0x1b6)?_0x198f97[_0x1ce69a(0x1b3)]:undefined,_0x5c5402,typeof _0x198f97[_0x1ce69a(0x1c6)]===_0x1ce69a(0x1b6)?_0x198f97[_0x1ce69a(0x1c6)]:undefined);if(_0x4dd917)return _0x4dd917;const _0x296e46=Object[_0x1ce69a(0x1c5)](getLocalAppAliases(_0x198f97))[_0x1ce69a(0x1df)](_0x158f1c=>_0x158f1c?.[_0x1ce69a(0x1e6)]);return typeof _0x296e46?.[_0x1ce69a(0x1e6)]===_0x1ce69a(0x1b6)&&_0x296e46[_0x1ce69a(0x1e6)][_0x1ce69a(0x1d6)]()?_0x296e46[_0x1ce69a(0x1e6)][_0x1ce69a(0x1d6)]():undefined;}export function readScopedConfig(_0xf19d85){const _0x2a8c21=a73_0x28d0f8,_0x301b57=_0xf19d85[_0x2a8c21(0x1dc)]?'global':'project';return readConfigFile(resolveWriteConfigPath(_0x301b57));}export function writeScopedConfig(_0x7523fb,_0x3e672a){const _0xfbfc7f=a73_0x28d0f8,_0x2d4ffa=_0x3e672a[_0xfbfc7f(0x1dc)]?_0xfbfc7f(0x1dc):_0xfbfc7f(0x1d0);writeConfigFile(resolveWriteConfigPath(_0x2d4ffa),_0x7523fb);}export async function initGlobalEnvironment(_0x51c2e3){const _0x27a43a=a73_0x28d0f8,{initEnv:_0x2fecef}=await import('./constant/env.js');_0x2fecef(_0x51c2e3[_0x27a43a(0x1c1)]);const {initDomains:_0x47712a}=await import('./constant/domain.js');_0x47712a({'apiDomain':_0x51c2e3[_0x27a43a(0x1b7)][_0x27a43a(0x1b8)]||_0x51c2e3[_0x27a43a(0x1b7)][_0x27a43a(0x1be)]||undefined,'userDomain':_0x51c2e3[_0x27a43a(0x1b7)][_0x27a43a(0x1bb)]||undefined,'runtimeDomain':_0x51c2e3['raw'][_0x27a43a(0x1b2)]||undefined,'skillHubDomain':_0x51c2e3[_0x27a43a(0x1b7)]['skillHubDomain']||undefined});}export function getProjectConfigPath(){const _0x40d149=a73_0x28d0f8;return resolveConfigPath(process[_0x40d149(0x1ba)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}function a73_0x23c9(){const _0x41aae8=['empty','write','high-risk-write','project','4KiYXuy','daily','inherit','2123820kHmsSU','stringify','trim','join','6920QtQzYa','some','FORMAT','riskLevel','global','development','cache','find','APP','app','authRequired','nonInteractive','1650474JoQfnE','isRaw','appcode','5268432ousaeQ','parse','2949527nXJBxC','utf8','stdin','locale','apps','object','message','argv','12dumuJY','runtimeDomain','defaultApp','explicit','EXDEV','string','raw','apiDomain','projectConfig','cwd','userDomain','newConfigFileName','stdout','host','167201cUNZNC','missing','env','4294495dwMJNp','ENV','true','values','accessKey','34821JpvBmy','isTTY','pageSize','format','production','code'];a73_0x23c9=function(){return _0x41aae8;};return a73_0x23c9();}export function inspectCliConfigJsonFile(_0x35f36a){const _0xfa7083=a73_0x28d0f8;if(!existsSync(_0x35f36a))return{'status':_0xfa7083(0x1c0)};try{const _0x5bab93=readFileSync(_0x35f36a,{'encoding':'utf8'});if(!_0x5bab93?.['trim']())return{'status':_0xfa7083(0x1cd)};const _0x48053f=JSON[_0xfa7083(0x1e8)](_0x5bab93);return{'status':'ok','data':_0x48053f};}catch(_0x1c13af){return{'status':'error','message':_0x1c13af instanceof Error?_0x1c13af[_0xfa7083(0x1ef)]:String(_0x1c13af)};}}function a73_0x3d41(_0x5d79a9,_0x18b6c5){_0x5d79a9=_0x5d79a9-0x1b1;const _0x23c9d9=a73_0x23c9();let _0x3d41b8=_0x23c9d9[_0x5d79a9];return _0x3d41b8;}export function loadRawConfigLayers(_0x2fac6a){const _0x494253=a73_0x28d0f8;let _0x451e21={},_0x1695cb={},_0x3b965e,_0x2b098;try{_0x3b965e=resolveConfigPath(homedir());if(_0x3b965e){const _0x5e6215=readFileSync(_0x3b965e,{'encoding':_0x494253(0x1ea)});if(_0x5e6215)_0x451e21=JSON[_0x494253(0x1e8)](_0x5e6215);}}catch{}try{const _0x4f8b4f=_0x2fac6a||process['cwd']();_0x2b098=resolveConfigPath(_0x4f8b4f);if(_0x2b098){const _0x4dc809=readFileSync(_0x2b098,{'encoding':'utf8'});if(_0x4dc809)_0x1695cb=JSON[_0x494253(0x1e8)](_0x4dc809);}}catch{}return{'globalPath':_0x3b965e,'projectPath':_0x2b098,'globalConfig':_0x451e21,'projectConfig':_0x1695cb};}function mergeRawConfigLayers(_0x5d7379){const _0x4bdae6=a73_0x28d0f8,{globalConfig:_0x4c54c0,projectConfig:_0x2fc502}=_0x5d7379;if(_0x2fc502[_0x4bdae6(0x1d3)]===![]){const _0x22a6cf={..._0x2fc502};return delete _0x22a6cf[_0x4bdae6(0x1d3)],_0x22a6cf;}const _0x206a4f={..._0x4c54c0,..._0x2fc502};if(_0x4bdae6(0x1b3)in _0x2fc502)_0x206a4f[_0x4bdae6(0x1b3)]=_0x2fc502[_0x4bdae6(0x1b3)];else _0x4c54c0[_0x4bdae6(0x1b3)]&&(_0x206a4f[_0x4bdae6(0x1b3)]=_0x4c54c0[_0x4bdae6(0x1b3)]);return _0x206a4f;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x5024f8){return mergeRawConfigLayers(loadRawConfigLayers(_0x5024f8));}export function readRawConfigWithLayers(_0x1123c5){const _0x4ebd8c=loadRawConfigLayers(_0x1123c5);return{'config':mergeRawConfigLayers(_0x4ebd8c),'layers':_0x4ebd8c};}export function resolveDefaultAppSource(_0x3af328){const _0x15d5f0=a73_0x28d0f8;if(_0x15d5f0(0x1b3)in _0x3af328[_0x15d5f0(0x1b9)])return _0x15d5f0(0x1d0);if(_0x3af328[_0x15d5f0(0x1b9)]['inherit']===![])return null;if(_0x3af328['globalConfig'][_0x15d5f0(0x1b3)])return _0x15d5f0(0x1dc);return null;}function buildConfig(_0xee39a7,_0x1d499a){const _0x26c92c=a73_0x28d0f8,_0x3bdfd6=_0xee39a7[_0x26c92c(0x1b3)]||undefined,_0x5a11e1=_0x1d499a[_0x26c92c(0x1e1)]||env(_0x26c92c(0x1e0))||undefined,_0x3a1856=_0x5a11e1||_0x3bdfd6||undefined,_0x26e5ab=env('ACCESS_KEY')||_0xee39a7[_0x26c92c(0x1c6)]||undefined,_0x18f307=_0x1d499a[_0x26c92c(0x1c1)]||env(_0x26c92c(0x1c3))||_0xee39a7[_0x26c92c(0x1c1)]||DEFAULT_CONFIG_VALUES[_0x26c92c(0x1c1)],_0x3a35bc=normalizeEnv(String(_0x18f307)),_0x38540f=isDaily(_0x3a35bc)?_0x26c92c(0x1d2):isDev(_0x3a35bc)?_0x26c92c(0x1dd):_0x26c92c(0x1cb),_0x5b5d1d=typeof _0x1d499a[_0x26c92c(0x1e6)]===_0x26c92c(0x1b6)?_0x1d499a[_0x26c92c(0x1e6)]:undefined,_0x17cff8=env('APPCODE'),_0x34971c=_0x5a11e1?undefined:_0xee39a7['appcode']||_0xee39a7[_0x26c92c(0x1e1)]||undefined,_0x17c7f5=_0x5a11e1||(_0x34971c?undefined:_0x3bdfd6),_0x51857a=resolveLocalAppAliasCode(_0xee39a7,_0x17c7f5),_0x5451ba=resolveCachedAppCode(_0x17c7f5,_0x38540f,_0x26e5ab),_0x432aad=_0x5b5d1d||_0x17cff8||_0x34971c||_0x51857a||_0x5451ba||undefined,_0x29de80=_0x5b5d1d?_0x26c92c(0x1b4):_0x17cff8?_0x26c92c(0x1c1):_0x34971c?'top-level':_0x51857a?'local-alias':_0x5451ba?_0x26c92c(0x1de):undefined,_0x51affd=_0xee39a7[_0x26c92c(0x1ec)]||DEFAULT_CONFIG_VALUES[_0x26c92c(0x1ec)],_0x43092d=undefined,_0x1f9b25=_0x1d499a['format']||env(_0x26c92c(0x1da))||_0xee39a7[_0x26c92c(0x1ca)],_0x374495=normalizeLegacyOutputFormat(_0x1f9b25),_0x161575=env('PAGE_SIZE')||_0xee39a7[_0x26c92c(0x1c9)],_0xaf8110=_0x161575?Number(_0x161575)||undefined:undefined,_0x32ab90=_0xee39a7[_0x26c92c(0x1db)]||_0xee39a7['maxRisk'],_0x1d3538=_0x32ab90==='read'||_0x32ab90===_0x26c92c(0x1ce)||_0x32ab90===_0x26c92c(0x1cf)?_0x32ab90:DEFAULT_CONFIG_VALUES[_0x26c92c(0x1db)],_0xf3bc09=env('VERBOSE'),_0x223364=_0xf3bc09==='1'||_0xf3bc09===_0x26c92c(0x1c4);return{'appCode':typeof _0x432aad===_0x26c92c(0x1b6)&&_0x432aad['trim']()?_0x432aad[_0x26c92c(0x1d6)]():undefined,'appCodeSource':_0x29de80,'env':_0x38540f,'locale':_0x51affd,'cookie':_0x43092d,'accessKey':_0x26e5ab,'format':_0x374495,'pageSize':_0xaf8110,'riskLevel':_0x1d3538,'verbose':_0x223364,'defaultApp':_0x3bdfd6,'currentApp':typeof _0x3a1856===_0x26c92c(0x1b6)?_0x3a1856:undefined,'raw':_0xee39a7};}function env(_0x2b9287){return productEnv(_0x2b9287);}async function buildAuth(_0x265256){const _0x10b29f=a73_0x28d0f8,_0x5721cc='',_0x20fe19=!!_0x265256[_0x10b29f(0x1c6)];return{'cookie':_0x5721cc,'isLoggedIn':_0x20fe19,async 'getOrLogin'(){const _0x3f245d=_0x10b29f;if(_0x20fe19)return _0x5721cc;throw CliErrors[_0x3f245d(0x1e2)]();}};}
1
+ const a74_0x4481ff=a74_0x3ee5;(function(_0x3be9bf,_0x512851){const _0xf5450b=a74_0x3ee5,_0xefb962=_0x3be9bf();while(!![]){try{const _0x187892=parseInt(_0xf5450b(0x176))/0x1*(parseInt(_0xf5450b(0x1a3))/0x2)+parseInt(_0xf5450b(0x15f))/0x3+parseInt(_0xf5450b(0x191))/0x4+-parseInt(_0xf5450b(0x166))/0x5+-parseInt(_0xf5450b(0x184))/0x6*(-parseInt(_0xf5450b(0x192))/0x7)+-parseInt(_0xf5450b(0x173))/0x8+-parseInt(_0xf5450b(0x19d))/0x9*(-parseInt(_0xf5450b(0x167))/0xa);if(_0x187892===_0x512851)break;else _0xefb962['push'](_0xefb962['shift']());}catch(_0x536a9b){_0xefb962['push'](_0xefb962['shift']());}}}(a74_0x2d33,0x840d1));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a74_0x3ee5(_0x2a170f,_0x48aa10){_0x2a170f=_0x2a170f-0x15d;const _0x2d3309=a74_0x2d33();let _0x3ee5ce=_0x2d3309[_0x2a170f];return _0x3ee5ce;}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[a74_0x4481ff(0x195)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a74_0x4481ff(0x1a1)];function resolveConfigPath(_0x314440){for(const _0x2417f0 of CONFIG_NAMES){const _0x1b6461=resolve(_0x314440,_0x2417f0);if(existsSync(_0x1b6461))return _0x1b6461;}return undefined;}export function resolveWriteConfigPath(_0x4911e4){const _0x2f73c3=a74_0x4481ff,_0x549e46=_0x4911e4===_0x2f73c3(0x171)?process['cwd']():homedir(),_0x251c8b=resolveConfigPath(_0x549e46);return _0x251c8b??resolve(_0x549e46,NEW_CONFIG_NAME);}export function readConfigFile(_0x2cbd77){const _0x2678fb=a74_0x4481ff;try{if(existsSync(_0x2cbd77)){const _0x490176=readFileSync(_0x2cbd77,{'encoding':_0x2678fb(0x178)});if(_0x490176){const _0x313a4b=JSON[_0x2678fb(0x169)](_0x490176);return migrateOnlineEnv(_0x2cbd77,_0x313a4b),_0x313a4b;}}}catch{}return{};}function migrateOnlineEnv(_0x110b22,_0x458892){const _0x482b3e=a74_0x4481ff;let _0x1026cc=![];_0x458892['env']===_0x482b3e(0x1a2)&&(_0x458892[_0x482b3e(0x16e)]=_0x482b3e(0x198),_0x1026cc=!![]);if(_0x458892[_0x482b3e(0x160)]&&typeof _0x458892[_0x482b3e(0x160)]===_0x482b3e(0x15d))for(const _0x2a436b of Object[_0x482b3e(0x175)](_0x458892[_0x482b3e(0x160)])){_0x2a436b&&_0x2a436b[_0x482b3e(0x16e)]===_0x482b3e(0x1a2)&&(_0x2a436b[_0x482b3e(0x16e)]='production',_0x1026cc=!![]);}if(_0x1026cc)try{writeConfigFile(_0x110b22,_0x458892);}catch{}}function a74_0x2d33(){const _0x565d2f=['EPERM','error','inherit','apiDomain','isTTY','code','format','setLogPath','setRawCommand','284424Iibfpp','3654WOBCOq','string','stringify','configFileNames','ACCESS_KEY','stdin','production','development','raw','maxRisk','trim','608823JfAmAc','globalConfig','PAGE_SIZE','empty','newConfigFileName','online','2mLEEOi','projectConfig','some','isRaw','object','./constant/domain.js','2268492CDjeEO','apps','join','defaultApp','read','accessKey','APP','3518035uOcvMR','20oOrBgU','argv','parse','message','riskLevel','slice','global','env','find','skillHubDomain','project','true','4179448YPwODu','daily','values','590857WJDbPm','pageSize','utf8','VERBOSE','FORMAT','missing','app','userDomain','explicit','ENV','appcode','cwd','locale','runtimeDomain','2454LmMApE','EACCES','cache','write'];a74_0x2d33=function(){return _0x565d2f;};return a74_0x2d33();}export function writeConfigFile(_0x1d2971,_0xa4eef3){const _0x41b7aa=a74_0x4481ff,_0x586289=dirname(_0x1d2971);!existsSync(_0x586289)&&mkdirSync(_0x586289,{'recursive':!![]});const _0x1fc920=_0x1d2971+'.tmp';try{writeFileSync(_0x1fc920,JSON[_0x41b7aa(0x194)](_0xa4eef3,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x1fc920,_0x1d2971);}catch(_0x8846db){if(_0x8846db[_0x41b7aa(0x18d)]===_0x41b7aa(0x188)||_0x8846db[_0x41b7aa(0x18d)]==='EXDEV'||_0x8846db[_0x41b7aa(0x18d)]===_0x41b7aa(0x185)){writeFileSync(_0x1d2971,JSON[_0x41b7aa(0x194)](_0xa4eef3,null,0x2)+'\x0a',{'encoding':_0x41b7aa(0x178)});try{unlinkSync(_0x1fc920);}catch{}}else throw _0x8846db;}}catch(_0x1537bc){try{unlinkSync(_0x1fc920);}catch{}throw _0x1537bc;}}export function isNonInteractiveMode(_0x3b8868){const _0x3a31ea=a74_0x4481ff;return!!(_0x3b8868['nonInteractive']||_0x3b8868['ci']||productEnvNames('CI')[_0x3a31ea(0x1a5)](_0x5b48bc=>process.env[_0x5b48bc]===_0x3a31ea(0x172))||process.env.CI===_0x3a31ea(0x172)||!process['stdout'][_0x3a31ea(0x18c)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x19a70d=a74_0x4481ff;if(!process[_0x19a70d(0x197)][_0x19a70d(0x18c)])return![];try{const _0x4ce5dd=process['stdin'][_0x19a70d(0x1a6)];return process['stdin']['setRawMode'](!![]),process[_0x19a70d(0x197)]['setRawMode'](_0x4ce5dd??![]),!![];}catch{return![];}}export async function createContext(_0x59b2a9){const _0x555ac6=a74_0x4481ff,_0x45db6e=readRawConfig(),_0x30be5b=buildConfig(_0x45db6e,_0x59b2a9);await initGlobalEnvironment(_0x30be5b);const {getUserDomain:_0x5f5434,getApiDomain:_0x78e8e0}=await import(_0x555ac6(0x15e)),_0x58f925={'apiDomain':_0x78e8e0(),'userDomain':_0x5f5434()},_0x2cdd71=await buildAuth(_0x30be5b);logger[_0x555ac6(0x18f)](process[_0x555ac6(0x181)]());const _0x23bd91=(CLI_BIN_NAME+'\x20'+process[_0x555ac6(0x168)][_0x555ac6(0x16c)](0x2)[_0x555ac6(0x161)]('\x20'))['trim']();logger[_0x555ac6(0x190)](_0x23bd91);const _0x2b33ba=isNonInteractiveMode(_0x59b2a9);return{'config':_0x30be5b,'auth':_0x2cdd71,'logger':logger,'env':_0x58f925,'nonInteractive':_0x2b33ba};}export function buildConfigFromFlags(_0x53ef8c){return buildConfig(readRawConfig(),_0x53ef8c);}export function getLocalAppAliases(_0x5ac8bd){const _0x3d46dd=a74_0x4481ff;return _0x5ac8bd[_0x3d46dd(0x160)]&&typeof _0x5ac8bd[_0x3d46dd(0x160)]===_0x3d46dd(0x15d)?_0x5ac8bd[_0x3d46dd(0x160)]:{};}export function resolveLocalAppAliasCode(_0x1053c7,_0x4a8bae){const _0x1dcd12=a74_0x4481ff;if(!_0x4a8bae)return undefined;const _0x4333b4=getLocalAppAliases(_0x1053c7)[_0x4a8bae],_0x5ba1c8=_0x4333b4?.[_0x1dcd12(0x180)];return typeof _0x5ba1c8===_0x1dcd12(0x193)&&_0x5ba1c8[_0x1dcd12(0x19c)]()?_0x5ba1c8[_0x1dcd12(0x19c)]():undefined;}export function readAppCodeFromConfig(){const _0x22fdfa=a74_0x4481ff,_0x3ade11=readRawConfig(),_0x2e31e0=_0x3ade11[_0x22fdfa(0x180)]??_0x3ade11['app'];if(typeof _0x2e31e0===_0x22fdfa(0x193)&&_0x2e31e0[_0x22fdfa(0x19c)]())return _0x2e31e0[_0x22fdfa(0x19c)]();const _0x3778c9=resolveLocalAppAliasCode(_0x3ade11,typeof _0x3ade11[_0x22fdfa(0x162)]===_0x22fdfa(0x193)?_0x3ade11[_0x22fdfa(0x162)]:undefined);if(_0x3778c9)return _0x3778c9;const _0x3f169f=normalizeEnv(String(_0x3ade11[_0x22fdfa(0x16e)]||_0x22fdfa(0x198))),_0x9fc239=isDaily(_0x3f169f)?'daily':isDev(_0x3f169f)?_0x22fdfa(0x199):_0x22fdfa(0x198),_0x22d85d=resolveCachedAppCode(typeof _0x3ade11[_0x22fdfa(0x162)]==='string'?_0x3ade11[_0x22fdfa(0x162)]:undefined,_0x9fc239,typeof _0x3ade11[_0x22fdfa(0x164)]===_0x22fdfa(0x193)?_0x3ade11[_0x22fdfa(0x164)]:undefined);if(_0x22d85d)return _0x22d85d;const _0x5d9fdc=Object[_0x22fdfa(0x175)](getLocalAppAliases(_0x3ade11))[_0x22fdfa(0x16f)](_0x2df0a7=>_0x2df0a7?.[_0x22fdfa(0x180)]);return typeof _0x5d9fdc?.[_0x22fdfa(0x180)]===_0x22fdfa(0x193)&&_0x5d9fdc[_0x22fdfa(0x180)][_0x22fdfa(0x19c)]()?_0x5d9fdc['appcode'][_0x22fdfa(0x19c)]():undefined;}export function readScopedConfig(_0xb8b066){const _0x35d3a8=a74_0x4481ff,_0x415803=_0xb8b066[_0x35d3a8(0x16d)]?'global':_0x35d3a8(0x171);return readConfigFile(resolveWriteConfigPath(_0x415803));}export function writeScopedConfig(_0x52c469,_0x2adcbc){const _0x4ee9e8=a74_0x4481ff,_0x28e552=_0x2adcbc[_0x4ee9e8(0x16d)]?'global':'project';writeConfigFile(resolveWriteConfigPath(_0x28e552),_0x52c469);}export async function initGlobalEnvironment(_0x32095d){const _0x511c71=a74_0x4481ff,{initEnv:_0x3c8bcc}=await import('./constant/env.js');_0x3c8bcc(_0x32095d['env']);const {initDomains:_0xfd7d49}=await import(_0x511c71(0x15e));_0xfd7d49({'apiDomain':_0x32095d[_0x511c71(0x19a)][_0x511c71(0x18b)]||_0x32095d[_0x511c71(0x19a)]['host']||undefined,'userDomain':_0x32095d[_0x511c71(0x19a)][_0x511c71(0x17d)]||undefined,'runtimeDomain':_0x32095d['raw'][_0x511c71(0x183)]||undefined,'skillHubDomain':_0x32095d[_0x511c71(0x19a)][_0x511c71(0x170)]||undefined});}export function getProjectConfigPath(){const _0x40e50e=a74_0x4481ff;return resolveConfigPath(process[_0x40e50e(0x181)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x573a52){const _0xd638ca=a74_0x4481ff;if(!existsSync(_0x573a52))return{'status':_0xd638ca(0x17b)};try{const _0x5d735b=readFileSync(_0x573a52,{'encoding':'utf8'});if(!_0x5d735b?.[_0xd638ca(0x19c)]())return{'status':_0xd638ca(0x1a0)};const _0x483733=JSON['parse'](_0x5d735b);return{'status':'ok','data':_0x483733};}catch(_0x51fb60){return{'status':_0xd638ca(0x189),'message':_0x51fb60 instanceof Error?_0x51fb60[_0xd638ca(0x16a)]:String(_0x51fb60)};}}export function loadRawConfigLayers(_0x353adb){const _0x2f616d=a74_0x4481ff;let _0x49cee9={},_0x5ac2a6={},_0x351847,_0x51dd85;try{_0x351847=resolveConfigPath(homedir());if(_0x351847){const _0x133c38=readFileSync(_0x351847,{'encoding':_0x2f616d(0x178)});if(_0x133c38)_0x49cee9=JSON[_0x2f616d(0x169)](_0x133c38);}}catch{}try{const _0x40eef7=_0x353adb||process[_0x2f616d(0x181)]();_0x51dd85=resolveConfigPath(_0x40eef7);if(_0x51dd85){const _0x5b962b=readFileSync(_0x51dd85,{'encoding':'utf8'});if(_0x5b962b)_0x5ac2a6=JSON[_0x2f616d(0x169)](_0x5b962b);}}catch{}return{'globalPath':_0x351847,'projectPath':_0x51dd85,'globalConfig':_0x49cee9,'projectConfig':_0x5ac2a6};}function mergeRawConfigLayers(_0x4399cb){const _0x24dab0=a74_0x4481ff,{globalConfig:_0x575b93,projectConfig:_0x5a27af}=_0x4399cb;if(_0x5a27af[_0x24dab0(0x18a)]===![]){const _0x22b431={..._0x5a27af};return delete _0x22b431[_0x24dab0(0x18a)],_0x22b431;}const _0x47f8a8={..._0x575b93,..._0x5a27af};if(_0x24dab0(0x162)in _0x5a27af)_0x47f8a8[_0x24dab0(0x162)]=_0x5a27af['defaultApp'];else _0x575b93[_0x24dab0(0x162)]&&(_0x47f8a8['defaultApp']=_0x575b93[_0x24dab0(0x162)]);return _0x47f8a8;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x520200){return mergeRawConfigLayers(loadRawConfigLayers(_0x520200));}export function readRawConfigWithLayers(_0x5a74be){const _0x5107c6=loadRawConfigLayers(_0x5a74be);return{'config':mergeRawConfigLayers(_0x5107c6),'layers':_0x5107c6};}export function resolveDefaultAppSource(_0x1d1ff4){const _0x16a06b=a74_0x4481ff;if(_0x16a06b(0x162)in _0x1d1ff4[_0x16a06b(0x1a4)])return _0x16a06b(0x171);if(_0x1d1ff4[_0x16a06b(0x1a4)][_0x16a06b(0x18a)]===![])return null;if(_0x1d1ff4[_0x16a06b(0x19e)][_0x16a06b(0x162)])return _0x16a06b(0x16d);return null;}function buildConfig(_0x2875b9,_0x3dd42c){const _0x154750=a74_0x4481ff,_0x1ac609=_0x2875b9[_0x154750(0x162)]||undefined,_0x24979b=_0x3dd42c[_0x154750(0x17c)]||env(_0x154750(0x165))||undefined,_0x1ebe4d=_0x24979b||_0x1ac609||undefined,_0x1a2b44=env(_0x154750(0x196))||_0x2875b9[_0x154750(0x164)]||undefined,_0x2bcaa6=_0x3dd42c[_0x154750(0x16e)]||env(_0x154750(0x17f))||_0x2875b9['env']||DEFAULT_CONFIG_VALUES[_0x154750(0x16e)],_0x43f449=normalizeEnv(String(_0x2bcaa6)),_0x3ac155=isDaily(_0x43f449)?_0x154750(0x174):isDev(_0x43f449)?_0x154750(0x199):_0x154750(0x198),_0x226f1a=typeof _0x3dd42c[_0x154750(0x180)]===_0x154750(0x193)?_0x3dd42c[_0x154750(0x180)]:undefined,_0x5553a1=env('APPCODE'),_0x4d04c8=_0x24979b?undefined:_0x2875b9[_0x154750(0x180)]||_0x2875b9[_0x154750(0x17c)]||undefined,_0x5f063e=_0x24979b||(_0x4d04c8?undefined:_0x1ac609),_0x59627e=resolveLocalAppAliasCode(_0x2875b9,_0x5f063e),_0x400a9=resolveCachedAppCode(_0x5f063e,_0x3ac155,_0x1a2b44),_0x4a278c=_0x226f1a||_0x5553a1||_0x4d04c8||_0x59627e||_0x400a9||undefined,_0xaa5a04=_0x226f1a?_0x154750(0x17e):_0x5553a1?'env':_0x4d04c8?'top-level':_0x59627e?'local-alias':_0x400a9?_0x154750(0x186):undefined,_0x5d5894=_0x2875b9[_0x154750(0x182)]||DEFAULT_CONFIG_VALUES[_0x154750(0x182)],_0x291de3=undefined,_0x289cb0=_0x3dd42c[_0x154750(0x18e)]||env(_0x154750(0x17a))||_0x2875b9[_0x154750(0x18e)],_0xe7fc26=normalizeLegacyOutputFormat(_0x289cb0),_0x395127=env(_0x154750(0x19f))||_0x2875b9[_0x154750(0x177)],_0x5cc675=_0x395127?Number(_0x395127)||undefined:undefined,_0x71dfc8=_0x2875b9[_0x154750(0x16b)]||_0x2875b9[_0x154750(0x19b)],_0xb8607=_0x71dfc8===_0x154750(0x163)||_0x71dfc8===_0x154750(0x187)||_0x71dfc8==='high-risk-write'?_0x71dfc8:DEFAULT_CONFIG_VALUES[_0x154750(0x16b)],_0x4a2e37=env(_0x154750(0x179)),_0x4ddb4e=_0x4a2e37==='1'||_0x4a2e37===_0x154750(0x172);return{'appCode':typeof _0x4a278c===_0x154750(0x193)&&_0x4a278c['trim']()?_0x4a278c[_0x154750(0x19c)]():undefined,'appCodeSource':_0xaa5a04,'env':_0x3ac155,'locale':_0x5d5894,'cookie':_0x291de3,'accessKey':_0x1a2b44,'format':_0xe7fc26,'pageSize':_0x5cc675,'riskLevel':_0xb8607,'verbose':_0x4ddb4e,'defaultApp':_0x1ac609,'currentApp':typeof _0x1ebe4d===_0x154750(0x193)?_0x1ebe4d:undefined,'raw':_0x2875b9};}function env(_0x186afd){return productEnv(_0x186afd);}async function buildAuth(_0x275a2e){const _0x41b6e7=a74_0x4481ff,_0x25f658='',_0x50fe53=!!_0x275a2e[_0x41b6e7(0x164)];return{'cookie':_0x25f658,'isLoggedIn':_0x50fe53,async 'getOrLogin'(){if(_0x50fe53)return _0x25f658;throw CliErrors['authRequired']();}};}