@lovrabet/lovrabet-cli 2.1.14 → 2.1.15-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/artifact/index.js +1 -1
  12. package/lib/commands/auth/index.js +1 -1
  13. package/lib/commands/auth/prompt.js +1 -1
  14. package/lib/commands/bff/detail.js +1 -1
  15. package/lib/commands/bff/exec.js +1 -1
  16. package/lib/commands/bff/index.js +1 -1
  17. package/lib/commands/cli-skill/index.js +1 -1
  18. package/lib/commands/common/config-policy.js +1 -1
  19. package/lib/commands/common/constraints.js +1 -1
  20. package/lib/commands/common/flags.js +1 -1
  21. package/lib/commands/common/local-file.js +1 -1
  22. package/lib/commands/config/definitions.js +1 -1
  23. package/lib/commands/config/shared.js +1 -1
  24. package/lib/commands/data/index.js +1 -1
  25. package/lib/commands/dataset/detail.js +1 -1
  26. package/lib/commands/dataset/index.js +1 -1
  27. package/lib/commands/dataset/list.js +1 -1
  28. package/lib/commands/dataset/sdk-doc.js +1 -1
  29. package/lib/commands/doctor.js +1 -1
  30. package/lib/commands/file/index.js +1 -1
  31. package/lib/commands/init.js +1 -1
  32. package/lib/commands/kb/index.js +1 -1
  33. package/lib/commands/logs/index.js +1 -1
  34. package/lib/commands/ocr/index.js +1 -1
  35. package/lib/commands/personal-bff/index.js +1 -1
  36. package/lib/commands/registry.js +1 -1
  37. package/lib/commands/schema.js +1 -1
  38. package/lib/commands/service/dynamic.js +1 -1
  39. package/lib/commands/service/function-name-adapter.js +1 -1
  40. package/lib/commands/service/index.js +1 -1
  41. package/lib/commands/service/registry.js +1 -1
  42. package/lib/commands/skill/commands/create.js +1 -1
  43. package/lib/commands/skill/commands/install.js +1 -1
  44. package/lib/commands/skill/commands/list.js +1 -1
  45. package/lib/commands/skill/commands/push.js +1 -1
  46. package/lib/commands/skill/commands/validate.js +1 -1
  47. package/lib/commands/skill/flags.js +1 -1
  48. package/lib/commands/skill/index.js +1 -1
  49. package/lib/commands/skill/manifest-helpers.js +1 -1
  50. package/lib/commands/skill/push-execute.js +1 -1
  51. package/lib/commands/skill/push-flow-helpers.js +1 -1
  52. package/lib/commands/skill/push-retarget.js +1 -1
  53. package/lib/commands/skill/scopes.js +1 -1
  54. package/lib/commands/skill/summary.js +1 -1
  55. package/lib/commands/skill/templates.js +1 -1
  56. package/lib/commands/skill/validate.js +1 -1
  57. package/lib/commands/sql/detail.js +1 -1
  58. package/lib/commands/sql/exec.js +1 -1
  59. package/lib/commands/sql/index.js +1 -1
  60. package/lib/commands/update.js +1 -1
  61. package/lib/commands/workspace/index.js +1 -1
  62. package/lib/config/schema.js +1 -1
  63. package/lib/constant/app.js +1 -1
  64. package/lib/constant/auth-mode.js +1 -1
  65. package/lib/constant/cli.js +1 -1
  66. package/lib/constant/defaults.js +1 -1
  67. package/lib/constant/distribution.js +1 -1
  68. package/lib/constant/domain.js +1 -1
  69. package/lib/constant/env.js +1 -1
  70. package/lib/constant/output.js +1 -1
  71. package/lib/constant/product.js +1 -1
  72. package/lib/constant/risk.js +1 -1
  73. package/lib/constant/url.js +1 -1
  74. package/lib/context.js +1 -1
  75. package/lib/core/api-client.js +1 -1
  76. package/lib/core/db-resolver.js +1 -1
  77. package/lib/core/sdk-client.js +1 -1
  78. package/lib/errors.js +1 -1
  79. package/lib/framework/build-all-flags.js +1 -1
  80. package/lib/framework/dryrun.js +1 -1
  81. package/lib/framework/flags.js +1 -1
  82. package/lib/framework/help.js +1 -1
  83. package/lib/framework/index.js +1 -1
  84. package/lib/framework/output.js +1 -1
  85. package/lib/framework/preparse.js +1 -1
  86. package/lib/framework/rate-limit.js +1 -1
  87. package/lib/framework/response.js +1 -1
  88. package/lib/framework/runner-confirmation.js +1 -1
  89. package/lib/framework/runner-error.js +1 -1
  90. package/lib/framework/runner.js +1 -1
  91. package/lib/framework/schema-export.js +1 -1
  92. package/lib/framework/service-order.js +1 -1
  93. package/lib/framework/types.js +1 -1
  94. package/lib/generated/build-info.js +1 -1
  95. package/lib/help.js +1 -1
  96. package/lib/skills/npx-skills-add.js +1 -1
  97. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  98. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  99. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  100. package/lib/skills/runtime-skill-sync/links.js +1 -1
  101. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  102. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  103. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  104. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  105. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  106. package/lib/skills/runtime-skill-sync/push.js +1 -1
  107. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  108. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  109. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  110. package/lib/skills/runtime-skill-sync.js +1 -1
  111. package/lib/utils/apply-jq-filter.js +1 -1
  112. package/lib/utils/logger.js +1 -1
  113. package/lib/utils/lossless-json.js +1 -1
  114. package/lib/utils/params.js +1 -1
  115. package/lib/utils/platform.js +1 -1
  116. package/lib/utils/update-notice.js +1 -1
  117. package/lib/utils/version.js +1 -1
  118. package/lib/utils/write-cli-side-channel.js +1 -1
  119. package/package.json +1 -1
  120. package/lib/commands/app-config/shared.js +0 -1
@@ -1 +1 @@
1
- function a56_0x351a(){const _0x20f7e7=['type','match','2846124bHuhAo','dataset','isDirectory','example','34NTpaVg','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','isFile','number','validation','raw','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','Skill\x20validation\x20failed:\x0a','level','schema','display-name-recommended','displayName','\x20Fix:\x20','toLowerCase','service','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','Frontmatter\x20example\x20is\x20missing.','section','file','description','message','metadata','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','internal','read','search','boolean','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','push','path','structure-complete','Add\x20frontmatter\x20with\x20name\x20and\x20description.','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','308942cOXJPc','config','flatMap','split','map','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','description-required','warning','join','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','78063sjXUVf','errors','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','trim','project','1780980xSDlLW','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','name','artifact','sql','slice','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','string','Frontmatter\x20description\x20is\x20empty.','page','isArray','1264949mLisOn','data','4VyTEFY','Frontmatter\x20name\x20is\x20missing.','content','object','isSymbolicLink','trainer','Skill\x20directory\x20not\x20found:\x20','1191605jKOoIv','27432RZSTFn','hasFrontmatter','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','toUpperCase','ruleId','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.','has','SKILL.md\x20must\x20start\x20with\x20frontmatter.','example-recommended','auth','error','filter','frontmatter-required','true','9IzEQwD','false','workspace','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.'];a56_0x351a=function(){return _0x20f7e7;};return a56_0x351a();}const a56_0x53906c=a56_0x1adf;(function(_0x22d22f,_0x123cda){const _0x1f75a2=a56_0x1adf,_0x3f3439=_0x22d22f();while(!![]){try{const _0x288863=-parseInt(_0x1f75a2(0x177))/0x1+-parseInt(_0x1f75a2(0x1b3))/0x2*(-parseInt(_0x1f75a2(0x181))/0x3)+-parseInt(_0x1f75a2(0x193))/0x4*(-parseInt(_0x1f75a2(0x19a))/0x5)+-parseInt(_0x1f75a2(0x1af))/0x6+parseInt(_0x1f75a2(0x191))/0x7+-parseInt(_0x1f75a2(0x19b))/0x8+-parseInt(_0x1f75a2(0x1a9))/0x9*(-parseInt(_0x1f75a2(0x186))/0xa);if(_0x288863===_0x123cda)break;else _0x3f3439['push'](_0x3f3439['shift']());}catch(_0x4341d3){_0x3f3439['push'](_0x3f3439['shift']());}}}(a56_0x351a,0x3db56));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';function a56_0x1adf(_0x545006,_0x431367){_0x545006=_0x545006-0x161;const _0x351a86=a56_0x351a();let _0x1adf32=_0x351a86[_0x545006];return _0x1adf32;}import{parse as a56_0x3fe74c}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',a56_0x53906c(0x16e),a56_0x53906c(0x198)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x44e135,_0x2fbd3b={}){const _0x5b04f0=a56_0x53906c,_0x18f21e=resolveSkillDirectoryRoot(_0x44e135),_0x3adc71=[],_0xf7b020=loadRequiredSkillFile(_0x18f21e,_0x3adc71),_0x1b338b=_0xf7b020?parseFrontmatter(_0xf7b020[_0x5b04f0(0x195)]):{'hasFrontmatter':![]};_0xf7b020&&validateFrontmatter(_0xf7b020[_0x5b04f0(0x173)],_0x1b338b,_0x3adc71);validateRuntimeCliReferences(_0x18f21e,_0x3adc71);const _0x133675=_0x3adc71['filter'](_0x2d3215=>_0x2d3215['level']===_0x5b04f0(0x1a5)),_0x23467a=_0x3adc71['filter'](_0x30baa9=>_0x30baa9[_0x5b04f0(0x1bb)]===_0x5b04f0(0x17e));return{'ok':_0x133675['length']===0x0,'dir':_0x18f21e,'type':_0x1b338b[_0x5b04f0(0x1ad)],'errors':_0x133675,'warnings':_0x23467a};}function resolveSkillDirectoryRoot(_0x2241b5){const _0x43e6ca=a56_0x53906c,_0x2e7eac=resolve(_0x2241b5);if(!existsSync(_0x2e7eac))throw CliErrors[_0x43e6ca(0x1b7)](_0x43e6ca(0x199)+_0x2241b5);const _0x1aa753=lstatSync(_0x2e7eac);if(_0x1aa753[_0x43e6ca(0x1b1)]())return _0x2e7eac;if(_0x1aa753[_0x43e6ca(0x197)]()){const _0x390834=realpathSync(_0x2e7eac);if(lstatSync(_0x390834)[_0x43e6ca(0x1b1)]())return _0x390834;}throw CliErrors[_0x43e6ca(0x1b7)](_0x43e6ca(0x199)+_0x2241b5);}export function throwIfSkillValidationFailed(_0x12e7c7,_0x59186a=![]){const _0x49b4c7=a56_0x53906c;if(_0x12e7c7['ok'])return;const _0x38597b=_0x12e7c7[_0x49b4c7(0x182)][_0x49b4c7(0x17b)](_0x23beff=>{const _0x568211=_0x49b4c7,_0x4fe537=_0x23beff[_0x568211(0x167)]?'#'+_0x23beff['section']:'';return _0x23beff[_0x568211(0x1bb)][_0x568211(0x19e)]()+'\x20'+_0x23beff[_0x568211(0x19f)]+'\x20'+_0x23beff[_0x568211(0x168)]+_0x4fe537+':\x20'+_0x23beff[_0x568211(0x16a)]+_0x568211(0x162)+_0x23beff['suggestion'];});throw CliErrors[_0x49b4c7(0x1b7)](_0x49b4c7(0x1ba)+_0x38597b[_0x49b4c7(0x17f)]('\x0a'),_0x49b4c7(0x1ac));}function loadRequiredSkillFile(_0x463e91,_0x412c80){const _0x55b4da=a56_0x53906c,_0x3ed35b=resolve(_0x463e91,SKILL_FILE);if(!existsSync(_0x3ed35b))return _0x412c80[_0x55b4da(0x172)](issue(_0x55b4da(0x1a5),_0x55b4da(0x174),SKILL_FILE,'Missing\x20SKILL.md.',_0x55b4da(0x176))),undefined;const _0x426f8e=lstatSync(_0x3ed35b);if(_0x426f8e['isSymbolicLink']())return _0x412c80['push'](issue(_0x55b4da(0x1a5),'structure-complete',SKILL_FILE,_0x55b4da(0x171),_0x55b4da(0x19d))),undefined;if(!_0x426f8e[_0x55b4da(0x1b5)]())return _0x412c80['push'](issue('error',_0x55b4da(0x174),SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.',_0x55b4da(0x165))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x3ed35b,'utf8')};}function validateFrontmatter(_0x37ee37,_0x4023f5,_0x5c21a8){const _0x2be287=a56_0x53906c;if(!_0x4023f5[_0x2be287(0x19c)]){_0x5c21a8[_0x2be287(0x172)](issue(_0x2be287(0x1a5),_0x2be287(0x1a7),_0x37ee37,_0x2be287(0x1a2),_0x2be287(0x175)));return;}!_0x4023f5['name']?.['trim']()&&_0x5c21a8['push'](issue('error','frontmatter-required',_0x37ee37,_0x2be287(0x194),_0x2be287(0x187))),!_0x4023f5[_0x2be287(0x161)]?.[_0x2be287(0x184)]()&&_0x5c21a8[_0x2be287(0x172)](issue('warning',_0x2be287(0x1bd),_0x37ee37,'Frontmatter\x20displayName\x20is\x20missing.',_0x2be287(0x1b4))),!_0x4023f5['example']?.[_0x2be287(0x184)]()&&_0x5c21a8[_0x2be287(0x172)](issue(_0x2be287(0x17e),_0x2be287(0x1a3),_0x37ee37,_0x2be287(0x166),_0x2be287(0x16c))),!_0x4023f5[_0x2be287(0x169)]?.['trim']()&&_0x5c21a8[_0x2be287(0x172)](issue(_0x2be287(0x1a5),_0x2be287(0x17d),_0x37ee37,_0x2be287(0x18e),_0x2be287(0x18c))),_0x4023f5[_0x2be287(0x16d)]===!![]&&_0x5c21a8[_0x2be287(0x172)](issue('error','internal-skill',_0x37ee37,_0x2be287(0x1b9),'Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.')),_0x4023f5[_0x2be287(0x1ad)]?.[_0x2be287(0x184)]()&&!SUPPORTED_SKILL_TYPES[_0x2be287(0x1a1)](_0x4023f5[_0x2be287(0x1ad)])&&_0x5c21a8['push'](issue(_0x2be287(0x1a5),_0x2be287(0x1a7),_0x37ee37,_0x2be287(0x17c),_0x2be287(0x1a0)));}function validateRuntimeCliReferences(_0x43958b,_0x60762e){const _0x260d50=a56_0x53906c;for(const _0x6ccb69 of findRabetbaseCliInvocations(_0x43958b)){_0x60762e[_0x260d50(0x172)](issue('warning','rabetbase-cli-reference',_0x6ccb69[_0x260d50(0x168)],_0x260d50(0x180),_0x260d50(0x183),'L'+_0x6ccb69['line']));}}function findRabetbaseCliInvocations(_0x5b207e){const _0x1fcb86=a56_0x53906c;return scanSkillDirectory(_0x5b207e)[_0x1fcb86(0x1a6)](_0x1cd7a8=>TEXT_SKILL_FILE_PATTERN['test'](_0x1cd7a8['path']))[_0x1fcb86(0x179)](_0x35ecf9=>{const _0x432144=_0x1fcb86,_0x3f9c29=fileText(_0x35ecf9);return _0x3f9c29[_0x432144(0x17a)](/\r?\n/)[_0x432144(0x17b)]((_0x15f07a,_0x1cf9fd)=>({'file':_0x35ecf9['path'],'line':_0x1cf9fd+0x1,'text':_0x15f07a}))[_0x432144(0x1a6)](({text:_0x52a899})=>isRabetbaseCliInvocation(_0x52a899))[_0x432144(0x17b)](({file:_0x4561e4,line:_0xe0e0a8})=>({'file':_0x4561e4,'line':_0xe0e0a8}));});}const RABETBASE_SUBCOMMANDS=[a56_0x53906c(0x1b0),a56_0x53906c(0x18a),'bff',a56_0x53906c(0x18f),a56_0x53906c(0x185),'app',a56_0x53906c(0x1bc),a56_0x53906c(0x164),a56_0x53906c(0x189),'kb',a56_0x53906c(0x178),a56_0x53906c(0x1ab),a56_0x53906c(0x192),a56_0x53906c(0x1a4),'logs','registry'],RABETBASE_INVOCATION=new RegExp(String[a56_0x53906c(0x1b8)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS['join']('|')})\b`+String[a56_0x53906c(0x1b8)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x18f188){const _0x57a3bc=a56_0x53906c,_0x57a8e9=_0x18f188[_0x57a3bc(0x16f)](/\brabetbase\b/i);if(_0x57a8e9<0x0)return![];const _0xe54253=_0x18f188[_0x57a3bc(0x18b)](_0x57a8e9)[_0x57a3bc(0x17a)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION['test'](_0xe54253);}function parseFrontmatter(_0x571e33){const _0x358be0=a56_0x53906c,_0x11eb26=_0x571e33[_0x358be0(0x1ae)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x11eb26)return{'hasFrontmatter':![]};const _0x1fe7ae=_0x11eb26[0x1]??'',_0xf88614={'hasFrontmatter':!![]};let _0x1524ab;try{_0x1524ab=a56_0x3fe74c(_0x1fe7ae);}catch{return _0xf88614;}const _0x49bf54=asRecord(_0x1524ab);if(!_0x49bf54)return _0xf88614;_0xf88614[_0x358be0(0x188)]=scalarToString(_0x49bf54[_0x358be0(0x188)]),_0xf88614[_0x358be0(0x161)]=scalarToString(_0x49bf54['displayName']),_0xf88614['description']=scalarToString(_0x49bf54[_0x358be0(0x169)]),_0xf88614[_0x358be0(0x1b2)]=scalarToString(_0x49bf54[_0x358be0(0x1b2)]);const _0x5bef30=asRecord(_0x49bf54[_0x358be0(0x16b)]);return _0x5bef30&&(_0xf88614[_0x358be0(0x1ad)]=scalarToString(_0x5bef30[_0x358be0(0x1ad)]),_0xf88614[_0x358be0(0x16d)]=scalarToBoolean(_0x5bef30['internal'])),_0xf88614;}function asRecord(_0xb5a855){const _0x1389df=a56_0x53906c;if(_0xb5a855&&typeof _0xb5a855===_0x1389df(0x196)&&!Array[_0x1389df(0x190)](_0xb5a855))return _0xb5a855;return undefined;}function scalarToString(_0x2319fe){const _0xada565=a56_0x53906c;if(typeof _0x2319fe==='string')return _0x2319fe[_0xada565(0x184)]();if(typeof _0x2319fe===_0xada565(0x1b6)||typeof _0x2319fe===_0xada565(0x170))return String(_0x2319fe);return undefined;}function scalarToBoolean(_0x317838){const _0x499400=a56_0x53906c;if(typeof _0x317838===_0x499400(0x170))return _0x317838;if(typeof _0x317838===_0x499400(0x18d))return cleanBoolean(_0x317838);return undefined;}function cleanBoolean(_0x102205){const _0x22b65b=a56_0x53906c,_0xb9866d=_0x102205[_0x22b65b(0x184)]()[_0x22b65b(0x163)]();if(_0xb9866d===_0x22b65b(0x1a8))return!![];if(_0xb9866d===_0x22b65b(0x1aa))return![];return undefined;}function issue(_0xb1b92,_0x47384a,_0x4cf0d5,_0x411c65,_0x2cba8f,_0x447773){return{'level':_0xb1b92,'ruleId':_0x47384a,'file':_0x4cf0d5,'section':_0x447773,'message':_0x411c65,'suggestion':_0x2cba8f};}
1
+ const a55_0x41c0f3=a55_0x1a96;(function(_0x275a41,_0x51f163){const _0x1e28f4=a55_0x1a96,_0x266109=_0x275a41();while(!![]){try{const _0x55d10f=-parseInt(_0x1e28f4(0x19b))/0x1*(parseInt(_0x1e28f4(0x153))/0x2)+-parseInt(_0x1e28f4(0x147))/0x3*(parseInt(_0x1e28f4(0x17c))/0x4)+-parseInt(_0x1e28f4(0x165))/0x5+-parseInt(_0x1e28f4(0x195))/0x6+-parseInt(_0x1e28f4(0x192))/0x7*(-parseInt(_0x1e28f4(0x170))/0x8)+-parseInt(_0x1e28f4(0x144))/0x9*(parseInt(_0x1e28f4(0x154))/0xa)+parseInt(_0x1e28f4(0x172))/0xb*(parseInt(_0x1e28f4(0x197))/0xc);if(_0x55d10f===_0x51f163)break;else _0x266109['push'](_0x266109['shift']());}catch(_0x13625d){_0x266109['push'](_0x266109['shift']());}}}(a55_0x570c,0xd83fc));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a55_0x287fac}from'yaml';import{CliErrors}from'../../errors.js';function a55_0x570c(){const _0x47d2ce=['SKILL.md','1197495emCakc','validation','error','description','bff','\x20Fix:\x20','section','isDirectory','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','has','level','1065928wmMIsW','logs','16812334VwFDPx','message','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','name','type','warning','frontmatter-required','toUpperCase','auth','artifact','4220448zrNeAv','number','filter','example','dataset','trim','file','rabetbase-cli-reference','test','line','split','sql','read','example-recommended','internal-skill','display-name-recommended','isFile','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','errors','data','match','14BIaEjf','Add\x20frontmatter\x20with\x20name\x20and\x20description.','Skill\x20directory\x20not\x20found:\x20','126402fCIsGl','raw','24MTXKyu','suggestion','service','path','1gDGOPR','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','map','2151DDMJHt','write','slice','3IAmAFa','isSymbolicLink','metadata','string','displayName','Frontmatter\x20name\x20is\x20missing.','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','structure-complete','app','config','Missing\x20SKILL.md.','1899034RRqwnj','7210gNuwnK','Frontmatter\x20displayName\x20is\x20missing.','join','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','false','boolean','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','SKILL.md\x20is\x20not\x20a\x20file.','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','project','isArray','push','internal','Frontmatter\x20example\x20is\x20missing.','SKILL.md\x20must\x20start\x20with\x20frontmatter.'];a55_0x570c=function(){return _0x47d2ce;};return a55_0x570c();}import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a55_0x41c0f3(0x164),SUPPORTED_SKILL_TYPES=new Set([a55_0x41c0f3(0x145),a55_0x41c0f3(0x188),'trainer']),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x5aa85d,_0x246614={}){const _0x4a7cb2=a55_0x41c0f3,_0x102e46=resolveSkillDirectoryRoot(_0x5aa85d),_0x345d2d=[],_0x5f21bb=loadRequiredSkillFile(_0x102e46,_0x345d2d),_0xe62062=_0x5f21bb?parseFrontmatter(_0x5f21bb['content']):{'hasFrontmatter':![]};_0x5f21bb&&validateFrontmatter(_0x5f21bb[_0x4a7cb2(0x19a)],_0xe62062,_0x345d2d);validateRuntimeCliReferences(_0x102e46,_0x345d2d);const _0x3deb65=_0x345d2d['filter'](_0x1ae30b=>_0x1ae30b[_0x4a7cb2(0x16f)]===_0x4a7cb2(0x167)),_0x589d48=_0x345d2d[_0x4a7cb2(0x17e)](_0x1667c7=>_0x1667c7[_0x4a7cb2(0x16f)]===_0x4a7cb2(0x177));return{'ok':_0x3deb65['length']===0x0,'dir':_0x102e46,'type':_0xe62062[_0x4a7cb2(0x176)],'errors':_0x3deb65,'warnings':_0x589d48};}function resolveSkillDirectoryRoot(_0x31d99f){const _0x17f87c=a55_0x41c0f3,_0x192ba7=resolve(_0x31d99f);if(!existsSync(_0x192ba7))throw CliErrors['validation'](_0x17f87c(0x194)+_0x31d99f);const _0xb318c3=lstatSync(_0x192ba7);if(_0xb318c3['isDirectory']())return _0x192ba7;if(_0xb318c3[_0x17f87c(0x148)]()){const _0x4ea22c=realpathSync(_0x192ba7);if(lstatSync(_0x4ea22c)[_0x17f87c(0x16c)]())return _0x4ea22c;}throw CliErrors[_0x17f87c(0x166)](_0x17f87c(0x194)+_0x31d99f);}export function throwIfSkillValidationFailed(_0x35298a,_0x20c776=![]){const _0x329453=a55_0x41c0f3;if(_0x35298a['ok'])return;const _0x4841d4=_0x35298a[_0x329453(0x18f)]['map'](_0x2a17a0=>{const _0x292c92=_0x329453,_0x2f0543=_0x2a17a0['section']?'#'+_0x2a17a0[_0x292c92(0x16b)]:'';return _0x2a17a0[_0x292c92(0x16f)][_0x292c92(0x179)]()+'\x20'+_0x2a17a0['ruleId']+'\x20'+_0x2a17a0['file']+_0x2f0543+':\x20'+_0x2a17a0[_0x292c92(0x173)]+_0x292c92(0x16a)+_0x2a17a0[_0x292c92(0x198)];});throw CliErrors[_0x329453(0x166)]('Skill\x20validation\x20failed:\x0a'+_0x4841d4['join']('\x0a'),_0x329453(0x16d));}function loadRequiredSkillFile(_0x5bf382,_0x4155c2){const _0x51b071=a55_0x41c0f3,_0xc94a22=resolve(_0x5bf382,SKILL_FILE);if(!existsSync(_0xc94a22))return _0x4155c2[_0x51b071(0x160)](issue(_0x51b071(0x167),_0x51b071(0x14f),SKILL_FILE,_0x51b071(0x152),_0x51b071(0x157))),undefined;const _0x3044c9=lstatSync(_0xc94a22);if(_0x3044c9[_0x51b071(0x148)]())return _0x4155c2['push'](issue('error','structure-complete',SKILL_FILE,_0x51b071(0x19c),_0x51b071(0x14e))),undefined;if(!_0x3044c9[_0x51b071(0x18c)]())return _0x4155c2['push'](issue(_0x51b071(0x167),_0x51b071(0x14f),SKILL_FILE,_0x51b071(0x15b),'Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0xc94a22,'utf8')};}function validateFrontmatter(_0xf43368,_0x3d62c1,_0x325c5a){const _0x12fc59=a55_0x41c0f3;if(!_0x3d62c1['hasFrontmatter']){_0x325c5a[_0x12fc59(0x160)](issue('error','frontmatter-required',_0xf43368,_0x12fc59(0x163),_0x12fc59(0x193)));return;}!_0x3d62c1[_0x12fc59(0x175)]?.[_0x12fc59(0x181)]()&&_0x325c5a[_0x12fc59(0x160)](issue('error',_0x12fc59(0x178),_0xf43368,_0x12fc59(0x14c),'Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.')),!_0x3d62c1['displayName']?.[_0x12fc59(0x181)]()&&_0x325c5a[_0x12fc59(0x160)](issue(_0x12fc59(0x177),_0x12fc59(0x18b),_0xf43368,_0x12fc59(0x155),_0x12fc59(0x15d))),!_0x3d62c1[_0x12fc59(0x17f)]?.[_0x12fc59(0x181)]()&&_0x325c5a[_0x12fc59(0x160)](issue('warning',_0x12fc59(0x189),_0xf43368,_0x12fc59(0x162),_0x12fc59(0x174))),!_0x3d62c1[_0x12fc59(0x168)]?.[_0x12fc59(0x181)]()&&_0x325c5a['push'](issue(_0x12fc59(0x167),'description-required',_0xf43368,'Frontmatter\x20description\x20is\x20empty.','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。')),_0x3d62c1[_0x12fc59(0x161)]===!![]&&_0x325c5a['push'](issue('error',_0x12fc59(0x18a),_0xf43368,_0x12fc59(0x18d),_0x12fc59(0x15a))),_0x3d62c1['type']?.[_0x12fc59(0x181)]()&&!SUPPORTED_SKILL_TYPES[_0x12fc59(0x16e)](_0x3d62c1['type'])&&_0x325c5a[_0x12fc59(0x160)](issue(_0x12fc59(0x167),_0x12fc59(0x178),_0xf43368,_0x12fc59(0x14d),_0x12fc59(0x15c)));}function validateRuntimeCliReferences(_0x31e0fd,_0x573711){const _0x47de24=a55_0x41c0f3;for(const _0x41415e of findRabetbaseCliInvocations(_0x31e0fd)){_0x573711[_0x47de24(0x160)](issue(_0x47de24(0x177),_0x47de24(0x183),_0x41415e[_0x47de24(0x182)],_0x47de24(0x18e),'If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','L'+_0x41415e[_0x47de24(0x185)]));}}function findRabetbaseCliInvocations(_0x244b4a){const _0x39cd59=a55_0x41c0f3;return scanSkillDirectory(_0x244b4a)['filter'](_0x4b3e77=>TEXT_SKILL_FILE_PATTERN[_0x39cd59(0x184)](_0x4b3e77[_0x39cd59(0x19a)]))['flatMap'](_0x262008=>{const _0x2b7b15=_0x39cd59,_0x22f645=fileText(_0x262008);return _0x22f645[_0x2b7b15(0x186)](/\r?\n/)[_0x2b7b15(0x19d)]((_0x532544,_0x171de0)=>({'file':_0x262008[_0x2b7b15(0x19a)],'line':_0x171de0+0x1,'text':_0x532544}))['filter'](({text:_0x424879})=>isRabetbaseCliInvocation(_0x424879))['map'](({file:_0x559ddb,line:_0x4ef334})=>({'file':_0x559ddb,'line':_0x4ef334}));});}const RABETBASE_SUBCOMMANDS=[a55_0x41c0f3(0x180),a55_0x41c0f3(0x187),a55_0x41c0f3(0x169),'page',a55_0x41c0f3(0x15e),a55_0x41c0f3(0x150),'schema',a55_0x41c0f3(0x199),a55_0x41c0f3(0x17b),'kb',a55_0x41c0f3(0x151),'workspace',a55_0x41c0f3(0x190),a55_0x41c0f3(0x17a),a55_0x41c0f3(0x171),'registry'],RABETBASE_INVOCATION=new RegExp(String[a55_0x41c0f3(0x196)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a55_0x41c0f3(0x156)]('|')})\b`+String['raw']`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x4bc527){const _0x29579b=a55_0x41c0f3,_0x1725df=_0x4bc527['search'](/\brabetbase\b/i);if(_0x1725df<0x0)return![];const _0x4c621f=_0x4bc527[_0x29579b(0x146)](_0x1725df)[_0x29579b(0x186)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x29579b(0x184)](_0x4c621f);}function parseFrontmatter(_0x2f55ce){const _0x23cc0e=a55_0x41c0f3,_0x71f013=_0x2f55ce[_0x23cc0e(0x191)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x71f013)return{'hasFrontmatter':![]};const _0xe9525c=_0x71f013[0x1]??'',_0x3d15db={'hasFrontmatter':!![]};let _0x2a669b;try{_0x2a669b=a55_0x287fac(_0xe9525c);}catch{return _0x3d15db;}const _0x24138a=asRecord(_0x2a669b);if(!_0x24138a)return _0x3d15db;_0x3d15db[_0x23cc0e(0x175)]=scalarToString(_0x24138a[_0x23cc0e(0x175)]),_0x3d15db['displayName']=scalarToString(_0x24138a[_0x23cc0e(0x14b)]),_0x3d15db[_0x23cc0e(0x168)]=scalarToString(_0x24138a[_0x23cc0e(0x168)]),_0x3d15db[_0x23cc0e(0x17f)]=scalarToString(_0x24138a[_0x23cc0e(0x17f)]);const _0x3a5ece=asRecord(_0x24138a[_0x23cc0e(0x149)]);return _0x3a5ece&&(_0x3d15db['type']=scalarToString(_0x3a5ece[_0x23cc0e(0x176)]),_0x3d15db[_0x23cc0e(0x161)]=scalarToBoolean(_0x3a5ece[_0x23cc0e(0x161)])),_0x3d15db;}function asRecord(_0x35d3a0){const _0x447e54=a55_0x41c0f3;if(_0x35d3a0&&typeof _0x35d3a0==='object'&&!Array[_0x447e54(0x15f)](_0x35d3a0))return _0x35d3a0;return undefined;}function a55_0x1a96(_0x17db9f,_0x5916b5){_0x17db9f=_0x17db9f-0x144;const _0x570c22=a55_0x570c();let _0x1a96b0=_0x570c22[_0x17db9f];return _0x1a96b0;}function scalarToString(_0x1b3be9){const _0x2862c3=a55_0x41c0f3;if(typeof _0x1b3be9===_0x2862c3(0x14a))return _0x1b3be9[_0x2862c3(0x181)]();if(typeof _0x1b3be9===_0x2862c3(0x17d)||typeof _0x1b3be9==='boolean')return String(_0x1b3be9);return undefined;}function scalarToBoolean(_0x1996f2){const _0xe416c5=a55_0x41c0f3;if(typeof _0x1996f2===_0xe416c5(0x159))return _0x1996f2;if(typeof _0x1996f2===_0xe416c5(0x14a))return cleanBoolean(_0x1996f2);return undefined;}function cleanBoolean(_0x250953){const _0x1424fc=a55_0x41c0f3,_0x2921fd=_0x250953[_0x1424fc(0x181)]()['toLowerCase']();if(_0x2921fd==='true')return!![];if(_0x2921fd===_0x1424fc(0x158))return![];return undefined;}function issue(_0x20d693,_0xfe21ab,_0x29c8bd,_0x4cc930,_0x10a541,_0x4ac6c9){return{'level':_0x20d693,'ruleId':_0xfe21ab,'file':_0x29c8bd,'section':_0x4ac6c9,'message':_0x4cc930,'suggestion':_0x10a541};}
@@ -1 +1 @@
1
- const a57_0x4a510f=a57_0x37d1;(function(_0x584f48,_0x21d77e){const _0x222ea1=a57_0x37d1,_0x485ceb=_0x584f48();while(!![]){try{const _0x37ef44=-parseInt(_0x222ea1(0x1ae))/0x1+parseInt(_0x222ea1(0x1a9))/0x2*(-parseInt(_0x222ea1(0x1b4))/0x3)+-parseInt(_0x222ea1(0x1b7))/0x4*(parseInt(_0x222ea1(0x1b2))/0x5)+-parseInt(_0x222ea1(0x1aa))/0x6+-parseInt(_0x222ea1(0x1be))/0x7*(parseInt(_0x222ea1(0x1b9))/0x8)+-parseInt(_0x222ea1(0x1b6))/0x9*(-parseInt(_0x222ea1(0x1b5))/0xa)+parseInt(_0x222ea1(0x1ac))/0xb*(parseInt(_0x222ea1(0x1b0))/0xc);if(_0x37ef44===_0x21d77e)break;else _0x485ceb['push'](_0x485ceb['shift']());}catch(_0x4dfdc1){_0x485ceb['push'](_0x485ceb['shift']());}}}(a57_0x532a,0xe460e));function a57_0x37d1(_0x2d84f4,_0xd1cfbd){_0x2d84f4=_0x2d84f4-0x1a9;const _0x532a9f=a57_0x532a();let _0x37d1de=_0x532a9f[_0x2d84f4];return _0x37d1de;}function a57_0x532a(){const _0x23cbf5=['sqlContent','appCode','detail','980175ddbNOA','sql','dbId','2DaqPXt','7433784ZFeoTq','bool','11638SlkYDK','str','1314000wnlRbX','verbose','65424AfOOdk','description','8275935pXGGBA','sqlCode','4146018QSxfgW','10zXSRec','15637986ActtPl','4bGOedT','sqlName','56BNHlEU','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode'];a57_0x532a=function(){return _0x23cbf5;};return a57_0x532a();}import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a57_0x4a510f(0x1bf),'command':a57_0x4a510f(0x1bd),'description':a57_0x4a510f(0x1ba),'risk':'read','flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0xfaf7b){const _0x3e6828=a57_0x4a510f,_0x36ba30=await getSqlQueryInfo(_0xfaf7b[_0x3e6828(0x1bc)],_0xfaf7b[_0x3e6828(0x1ad)]('sqlcode')),_0x1b063b=_0xfaf7b[_0x3e6828(0x1ab)](_0x3e6828(0x1af));if(_0x1b063b)return{'ok':!![],'data':_0x36ba30};const _0x474ba1=_0x36ba30[_0x3e6828(0x1c0)]?await getDbName(_0xfaf7b[_0x3e6828(0x1bc)],_0x36ba30[_0x3e6828(0x1c0)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x36ba30[_0x3e6828(0x1b3)],'sqlName':_0x36ba30[_0x3e6828(0x1b8)],'db':_0x474ba1?_0x474ba1+'\x20('+_0x36ba30['dbId']+')':_0x36ba30['dbId']??'','description':_0x36ba30[_0x3e6828(0x1b1)]??'','sqlContent':_0x36ba30[_0x3e6828(0x1bb)]??''}};}};
1
+ const a56_0x4ee7af=a56_0x3d53;(function(_0x5a343f,_0x57f893){const _0x1cdd66=a56_0x3d53,_0x1cf7a1=_0x5a343f();while(!![]){try{const _0x220600=parseInt(_0x1cdd66(0x17a))/0x1*(-parseInt(_0x1cdd66(0x170))/0x2)+parseInt(_0x1cdd66(0x179))/0x3+-parseInt(_0x1cdd66(0x16d))/0x4+-parseInt(_0x1cdd66(0x177))/0x5*(-parseInt(_0x1cdd66(0x178))/0x6)+-parseInt(_0x1cdd66(0x17c))/0x7*(parseInt(_0x1cdd66(0x17b))/0x8)+parseInt(_0x1cdd66(0x16c))/0x9+parseInt(_0x1cdd66(0x16e))/0xa;if(_0x220600===_0x57f893)break;else _0x1cf7a1['push'](_0x1cf7a1['shift']());}catch(_0x5dfe01){_0x1cf7a1['push'](_0x1cf7a1['shift']());}}}(a56_0x53fa,0xd8076));function a56_0x3d53(_0x5a69b9,_0x5effd8){_0x5a69b9=_0x5a69b9-0x168;const _0x53fa6a=a56_0x53fa();let _0x3d5357=_0x53fa6a[_0x5a69b9];return _0x3d5357;}import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a56_0x4ee7af(0x169),'command':a56_0x4ee7af(0x16b),'description':a56_0x4ee7af(0x174),'risk':a56_0x4ee7af(0x176),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0xc827b9){const _0x3b6458=a56_0x4ee7af,_0x1db1f6=await getSqlQueryInfo(_0xc827b9[_0x3b6458(0x172)],_0xc827b9['str'](_0x3b6458(0x168))),_0x470264=_0xc827b9[_0x3b6458(0x16f)]('verbose');if(_0x470264)return{'ok':!![],'data':_0x1db1f6};const _0x1fdfaa=_0x1db1f6[_0x3b6458(0x171)]?await getDbName(_0xc827b9['appCode'],_0x1db1f6[_0x3b6458(0x171)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x1db1f6[_0x3b6458(0x17d)],'sqlName':_0x1db1f6[_0x3b6458(0x16a)],'db':_0x1fdfaa?_0x1fdfaa+'\x20('+_0x1db1f6[_0x3b6458(0x171)]+')':_0x1db1f6[_0x3b6458(0x171)]??'','description':_0x1db1f6[_0x3b6458(0x175)]??'','sqlContent':_0x1db1f6[_0x3b6458(0x173)]??''}};}};function a56_0x53fa(){const _0x54f5ab=['2JDtsVJ','4400DWMqwZ','19117bzIUQw','sqlCode','sqlcode','sql','sqlName','detail','7373970XehDRu','1566456Geregv','11644270taYGpP','bool','1386014ebPEIF','dbId','appCode','sqlContent','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','description','read','5ItjVSV','9221934QXRasQ','1931358RIJhHX'];a56_0x53fa=function(){return _0x54f5ab;};return a56_0x53fa();}
@@ -1 +1 @@
1
- function a58_0x2b2e(){const _0x2a0b66=['execSuccess','2490201SOFADj','14833700LqmotQ','6217013dLrSNX','5359542VMloDg','str','now','8BenXrg','params','23757ElpwqX','18jkaBBF','exec','execError','read','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','length','104lLdqwK','5agOddh','\x20row(s)\x20in\x20','Returned\x20','sqlcode','execResult','42388VtzUYL','3263769EspKpe'];a58_0x2b2e=function(){return _0x2a0b66;};return a58_0x2b2e();}const a58_0x34c3f8=a58_0x4d54;(function(_0x2a019b,_0x3d1b07){const _0x377996=a58_0x4d54,_0x3bfdb1=_0x2a019b();while(!![]){try{const _0x4a1a30=parseInt(_0x377996(0x196))/0x1*(parseInt(_0x377996(0x1a2))/0x2)+-parseInt(_0x377996(0x195))/0x3*(parseInt(_0x377996(0x19c))/0x4)+parseInt(_0x377996(0x19d))/0x5*(parseInt(_0x377996(0x190))/0x6)+parseInt(_0x377996(0x1a5))/0x7+-parseInt(_0x377996(0x193))/0x8*(-parseInt(_0x377996(0x1a3))/0x9)+-parseInt(_0x377996(0x1a6))/0xa+parseInt(_0x377996(0x18f))/0xb;if(_0x4a1a30===_0x3d1b07)break;else _0x3bfdb1['push'](_0x3bfdb1['shift']());}catch(_0x1d81b7){_0x3bfdb1['push'](_0x3bfdb1['shift']());}}}(a58_0x2b2e,0xd42bc));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a58_0x4d54(_0x1ebced,_0x1d5d70){_0x1ebced=_0x1ebced-0x18f;const _0x2b2ed9=a58_0x2b2e();let _0x4d541b=_0x2b2ed9[_0x1ebced];return _0x4d541b;}import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':'sql','command':a58_0x34c3f8(0x197),'description':a58_0x34c3f8(0x19a),'risk':a58_0x34c3f8(0x199),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x1b9c60){const _0x23ddaa=a58_0x34c3f8,_0x57df1c=parseJsonParams(_0x1b9c60[_0x23ddaa(0x191)](_0x23ddaa(0x194))),_0x37bebc=Date[_0x23ddaa(0x192)](),_0x1c6e94=await executeSdkSql(_0x1b9c60[_0x23ddaa(0x191)](_0x23ddaa(0x1a0)),_0x57df1c),_0x133dae=Date[_0x23ddaa(0x192)]()-_0x37bebc,_0x2811c1=_0x1c6e94?.[_0x23ddaa(0x1a1)]??_0x1c6e94,_0x2d7cb6=_0x1c6e94?.[_0x23ddaa(0x1a4)]??!![];if(!_0x2d7cb6)return{'ok':![],'data':{'error':_0x1c6e94?.[_0x23ddaa(0x198)]||'SQL\x20execution\x20failed','elapsed':_0x133dae},'message':'SQL\x20execution\x20failed'};const _0x2c72db=Array['isArray'](_0x2811c1)?_0x2811c1:[];return{'ok':!![],'data':{'rows':_0x2c72db,'rowCount':_0x2c72db[_0x23ddaa(0x19b)],'elapsed':_0x133dae},'message':_0x23ddaa(0x19f)+_0x2c72db['length']+_0x23ddaa(0x19e)+_0x133dae+'ms'};}};
1
+ const a57_0x10cf84=a57_0x134c;function a57_0x134c(_0x279e00,_0x1b5f40){_0x279e00=_0x279e00-0x72;const _0x8a3c74=a57_0x8a3c();let _0x134c70=_0x8a3c74[_0x279e00];return _0x134c70;}(function(_0x19e850,_0x131d64){const _0xf93e=a57_0x134c,_0x38b8b0=_0x19e850();while(!![]){try{const _0x2989e6=-parseInt(_0xf93e(0x86))/0x1*(-parseInt(_0xf93e(0x8b))/0x2)+parseInt(_0xf93e(0x7e))/0x3+parseInt(_0xf93e(0x78))/0x4*(parseInt(_0xf93e(0x87))/0x5)+parseInt(_0xf93e(0x7c))/0x6*(parseInt(_0xf93e(0x88))/0x7)+parseInt(_0xf93e(0x7d))/0x8+parseInt(_0xf93e(0x75))/0x9*(parseInt(_0xf93e(0x7a))/0xa)+-parseInt(_0xf93e(0x81))/0xb;if(_0x2989e6===_0x131d64)break;else _0x38b8b0['push'](_0x38b8b0['shift']());}catch(_0x146743){_0x38b8b0['push'](_0x38b8b0['shift']());}}}(a57_0x8a3c,0x435e8));function a57_0x8a3c(){const _0x5cfeed=['1046288JWMVAP','execError','150220hucdxI','sqlcode','50802NQHedj','4164752PlOYJo','221478jKqzHG','length','read','18999926ogqlca','str','\x20row(s)\x20in\x20','now','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','2CbNOtH','5PJnTKf','308WcvieQ','isArray','execResult','549340wpGKZM','Returned\x20','exec','sql','135EKQuHo','params','SQL\x20execution\x20failed'];a57_0x8a3c=function(){return _0x5cfeed;};return a57_0x8a3c();}import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a57_0x10cf84(0x74),'command':a57_0x10cf84(0x73),'description':a57_0x10cf84(0x85),'risk':a57_0x10cf84(0x80),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x3e50b0){const _0x4eeea1=a57_0x10cf84,_0x1d214a=parseJsonParams(_0x3e50b0[_0x4eeea1(0x82)](_0x4eeea1(0x76))),_0x5ce406=Date['now'](),_0x2fa965=await executeSdkSql(_0x3e50b0[_0x4eeea1(0x82)](_0x4eeea1(0x7b)),_0x1d214a),_0x42fae9=Date[_0x4eeea1(0x84)]()-_0x5ce406,_0x4baa13=_0x2fa965?.[_0x4eeea1(0x8a)]??_0x2fa965,_0x159833=_0x2fa965?.['execSuccess']??!![];if(!_0x159833)return{'ok':![],'data':{'error':_0x2fa965?.[_0x4eeea1(0x79)]||_0x4eeea1(0x77),'elapsed':_0x42fae9},'message':_0x4eeea1(0x77)};const _0x597469=Array[_0x4eeea1(0x89)](_0x4baa13)?_0x4baa13:[];return{'ok':!![],'data':{'rows':_0x597469,'rowCount':_0x597469['length'],'elapsed':_0x42fae9},'message':_0x4eeea1(0x72)+_0x597469[_0x4eeea1(0x7f)]+_0x4eeea1(0x83)+_0x42fae9+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x2887b1,_0x5c1119){const _0x82383c=a59_0x4e7b,_0x4b25d3=_0x2887b1();while(!![]){try{const _0x3153d2=parseInt(_0x82383c(0x1f9))/0x1+-parseInt(_0x82383c(0x1f4))/0x2+-parseInt(_0x82383c(0x1f5))/0x3+parseInt(_0x82383c(0x1f6))/0x4+-parseInt(_0x82383c(0x1f8))/0x5+-parseInt(_0x82383c(0x1f7))/0x6+-parseInt(_0x82383c(0x1fa))/0x7*(-parseInt(_0x82383c(0x1fb))/0x8);if(_0x3153d2===_0x5c1119)break;else _0x4b25d3['push'](_0x4b25d3['shift']());}catch(_0x2b90ad){_0x4b25d3['push'](_0x4b25d3['shift']());}}}(a59_0x126d,0x8e369));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a59_0x4e7b(_0x4bdd58,_0x1f6410){_0x4bdd58=_0x4bdd58-0x1f4;const _0x126d44=a59_0x126d();let _0x4e7bd2=_0x126d44[_0x4bdd58];return _0x4e7bd2;}function a59_0x126d(){const _0x461ada=['10303192qIxDzM','1787100YVVxJG','612117CEWeQa','1556768vbMoaD','1419348PqwjMZ','3955080AbGQwi','1030577bibKmN','7ostTrZ'];a59_0x126d=function(){return _0x461ada;};return a59_0x126d();}export const sqlDefinitions=[sqlDetail,sqlExec];
1
+ function a58_0x3fa1(){const _0x5c9ba9=['408180AaECJi','684wQrhvp','692385cNSdIA','8qAZcue','56WiKdtk','132298WzhmrH','285786rikMJA','17668qVYoRx','1422938TNzaGX','8355250SCwMzj'];a58_0x3fa1=function(){return _0x5c9ba9;};return a58_0x3fa1();}function a58_0x2190(_0x2dd643,_0x467912){_0x2dd643=_0x2dd643-0xef;const _0x3fa1de=a58_0x3fa1();let _0x2190aa=_0x3fa1de[_0x2dd643];return _0x2190aa;}(function(_0x1b52f0,_0x2125f8){const _0x2aa36b=a58_0x2190,_0x1c8723=_0x1b52f0();while(!![]){try{const _0x352eb1=-parseInt(_0x2aa36b(0xf2))/0x1+-parseInt(_0x2aa36b(0xf5))/0x2+-parseInt(_0x2aa36b(0xef))/0x3+parseInt(_0x2aa36b(0xf0))/0x4*(parseInt(_0x2aa36b(0xf7))/0x5)+-parseInt(_0x2aa36b(0xf8))/0x6*(-parseInt(_0x2aa36b(0xf4))/0x7)+parseInt(_0x2aa36b(0xf1))/0x8*(parseInt(_0x2aa36b(0xf3))/0x9)+parseInt(_0x2aa36b(0xf6))/0xa;if(_0x352eb1===_0x2125f8)break;else _0x1c8723['push'](_0x1c8723['shift']());}catch(_0x477ace){_0x1c8723['push'](_0x1c8723['shift']());}}}(a58_0x3fa1,0x6a049));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
@@ -1 +1 @@
1
- const a60_0x2a44e4=a60_0x231e;(function(_0x1a08f2,_0x115e74){const _0xce7487=a60_0x231e,_0x30f77e=_0x1a08f2();while(!![]){try{const _0x28cb1c=-parseInt(_0xce7487(0x182))/0x1*(-parseInt(_0xce7487(0x173))/0x2)+-parseInt(_0xce7487(0x14a))/0x3*(parseInt(_0xce7487(0x15b))/0x4)+-parseInt(_0xce7487(0x18a))/0x5*(-parseInt(_0xce7487(0x188))/0x6)+parseInt(_0xce7487(0x180))/0x7*(-parseInt(_0xce7487(0x161))/0x8)+-parseInt(_0xce7487(0x167))/0x9*(parseInt(_0xce7487(0x14f))/0xa)+parseInt(_0xce7487(0x14e))/0xb+-parseInt(_0xce7487(0x17f))/0xc*(-parseInt(_0xce7487(0x152))/0xd);if(_0x28cb1c===_0x115e74)break;else _0x30f77e['push'](_0x30f77e['shift']());}catch(_0x1fe606){_0x30f77e['push'](_0x30f77e['shift']());}}}(a60_0x23d2,0x524ee));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';function a60_0x231e(_0x588f1f,_0xdb3e41){_0x588f1f=_0x588f1f-0x143;const _0x23d273=a60_0x23d2();let _0x231e42=_0x23d273[_0x588f1f];return _0x231e42;}import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':'latest','type':'boolean','description':'Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','default':![]},{'name':a60_0x2a44e4(0x158),'type':a60_0x2a44e4(0x16e),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':'version','type':a60_0x2a44e4(0x16b),'description':a60_0x2a44e4(0x14d)},{'name':a60_0x2a44e4(0x18d),'type':a60_0x2a44e4(0x16e),'description':a60_0x2a44e4(0x185),'default':![]},{'name':'skills','type':a60_0x2a44e4(0x16e),'description':a60_0x2a44e4(0x191),'default':!![],'hidden':!![]}];function parseSemver(_0x5debea){const _0x4e356f=a60_0x2a44e4,_0x57cc79=_0x5debea['trim']()[_0x4e356f(0x15c)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x57cc79)return null;return{'major':Number(_0x57cc79[0x1]),'minor':Number(_0x57cc79[0x2]),'patch':Number(_0x57cc79[0x3]),'prerelease':_0x57cc79[0x4]};}function compareSemver(_0x4cabdd,_0x43ee95){const _0x258959=a60_0x2a44e4,_0x2a4802=parseSemver(_0x4cabdd),_0x559277=parseSemver(_0x43ee95);if(!_0x2a4802||!_0x559277)throw CliErrors['validation'](_0x258959(0x177),_0x258959(0x15d));for(const _0x463fe3 of[_0x258959(0x16a),_0x258959(0x183),'patch']){if(_0x2a4802[_0x463fe3]<_0x559277[_0x463fe3])return-0x1;if(_0x2a4802[_0x463fe3]>_0x559277[_0x463fe3])return 0x1;}if(!_0x2a4802[_0x258959(0x143)]&&!_0x559277[_0x258959(0x143)])return 0x0;if(!_0x2a4802['prerelease'])return 0x1;if(!_0x559277[_0x258959(0x143)])return-0x1;if(_0x2a4802[_0x258959(0x143)]===_0x559277['prerelease'])return 0x0;return _0x2a4802['prerelease']<_0x559277[_0x258959(0x143)]?-0x1:0x1;}function getRequestedVersion(_0x2ed7ad){const _0x858d76=a60_0x2a44e4,_0x4fc534=_0x2ed7ad[_0x858d76(0x16f)](_0x858d76(0x178))[_0x858d76(0x163)]();if(_0x4fc534)return _0x4fc534;return String(_0x2ed7ad[_0x858d76(0x148)]?.[0x0]??'')[_0x858d76(0x163)]();}function shouldSkipCliBuiltInSkill(_0x5043c5){const _0x2e7d47=a60_0x2a44e4;return _0x5043c5[_0x2e7d47(0x18b)](_0x2e7d47(0x18d))||_0x5043c5['flag'](_0x2e7d47(0x17b))===![];}function a60_0x23d2(){const _0x576ba0=['\x20CLI\x20from\x20npm','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','nonInteractive','Already\x20on\x20requested\x20version\x20(v','beta','map','filter','100prffqb','match','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','stderr','write','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','2168qeDNNl','object','trim','update','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','source','18jIXlwS','toString','inherit','major','string','\x20version\x20from\x20npm.','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','boolean','str','\x20->\x20','Updated\x20to\x20v','message','100762LpXVoW','Unable\x20to\x20resolve\x20','json','skipped','Version\x20comparison\x20failed.','version','latest','run','skills','Update\x20','/dist-tags','npm','300JOipsO','12761sNBMrI','error','11YjGESn','minor','warn','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','/-/package/','entries','1434HFZAPj','Invalid\x20version:\x20','4780QrzEMn','bool','status','no-skills','Checking\x20CLI\x20Built-in\x20Skill...','=1).','unknown','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','prerelease','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','cwd','log','stdout','args','Current\x20version:\x20','68559UWdEBa','pipe','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','Install\x20a\x20specific\x20CLI\x20version','7170570DIbBXq','612890eVdVYf','validation','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','47073QulvCO','length'];a60_0x23d2=function(){return _0x576ba0;};return a60_0x23d2();}async function validateUpdateFlags(_0x5685e6){const _0x5ba281=a60_0x2a44e4,_0x2281e6=getRequestedVersion(_0x5685e6),_0x19a133=[_0x5685e6[_0x5ba281(0x18b)]('latest')?_0x5ba281(0x179):'',_0x5685e6[_0x5ba281(0x18b)]('beta')?_0x5ba281(0x158):'',_0x2281e6?_0x5ba281(0x178):''][_0x5ba281(0x15a)](Boolean);if(_0x19a133[_0x5ba281(0x153)]>0x1)throw CliErrors['validation']('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.',_0x5ba281(0x151));if(_0x2281e6&&!parseSemver(_0x2281e6))throw CliErrors[_0x5ba281(0x150)](_0x5ba281(0x189)+_0x2281e6,_0x5ba281(0x160));}async function fetchNpmDistTags(){const _0x398db3=a60_0x2a44e4;try{const _0x5e3073=NPM_REGISTRY_BASE_URL+_0x398db3(0x186)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x398db3(0x17d),_0x32df47=await fetch(_0x5e3073,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x32df47['ok'])return null;const _0x3a7fb1=await _0x32df47[_0x398db3(0x175)]();if(!_0x3a7fb1||typeof _0x3a7fb1!==_0x398db3(0x162))return null;return Object['fromEntries'](Object[_0x398db3(0x187)](_0x3a7fb1)['filter'](([,_0x5581b9])=>typeof _0x5581b9==='string'&&_0x5581b9[_0x398db3(0x163)]())[_0x398db3(0x159)](([_0x1b2c8e,_0x5770e6])=>[_0x1b2c8e,String(_0x5770e6)[_0x398db3(0x163)]()]));}catch{return null;}}async function resolveTargetVersion(_0x3cfbb1){const _0x3dc4c2=a60_0x2a44e4,_0x48ee3b=getRequestedVersion(_0x3cfbb1);if(_0x48ee3b)return{'version':_0x48ee3b,'source':_0x3dc4c2(0x178)};const _0x20055b=_0x3cfbb1[_0x3dc4c2(0x18b)](_0x3dc4c2(0x158))?'beta':'latest',_0x2640e7=await fetchNpmDistTags(),_0x170b58=_0x2640e7?.[_0x20055b];if(!_0x170b58)return null;return{'version':_0x170b58,'source':_0x20055b};}function shouldInstallTarget(_0x589949,_0x2c0740){const _0x563581=a60_0x2a44e4,_0x173160=compareSemver(_0x589949,_0x2c0740[_0x563581(0x178)]);if(_0x2c0740[_0x563581(0x166)]===_0x563581(0x178))return _0x173160!==0x0;return _0x173160<0x0;}function installCliPackage(_0x2e58b4,_0x59c77a){const _0xdf3d08=a60_0x2a44e4,_0x62d266=resolveNpmBin(_0xdf3d08(0x17e)),_0x93ae7a=['install','-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x2e58b4];console[_0xdf3d08(0x146)]('*\x20'+[_0x62d266,..._0x93ae7a]['join']('\x20'));const _0x4ad1ff=spawnSync(_0x62d266,_0x93ae7a,{'cwd':process[_0xdf3d08(0x145)](),'stdio':_0x59c77a?_0xdf3d08(0x14b):_0xdf3d08(0x169),'env':process.env,'shell':![]});if(_0x4ad1ff['status']===0x0)return{'ok':!![]};let _0x2b2f4c=_0x4ad1ff[_0xdf3d08(0x181)]?.[_0xdf3d08(0x172)]||'exit\x20'+(_0x4ad1ff[_0xdf3d08(0x18c)]??_0xdf3d08(0x190));if(_0x59c77a){const _0x16b892=_0x4ad1ff[_0xdf3d08(0x15e)]?_0x4ad1ff[_0xdf3d08(0x15e)][_0xdf3d08(0x168)]()[_0xdf3d08(0x163)]():'',_0x4b5a9f=_0x4ad1ff[_0xdf3d08(0x147)]?_0x4ad1ff[_0xdf3d08(0x147)][_0xdf3d08(0x168)]()['trim']():'';if(_0x16b892)_0x2b2f4c=_0x16b892;else{if(_0x4b5a9f)_0x2b2f4c=_0x4b5a9f;}}return{'ok':![],'error':_0x2b2f4c};}async function installCliBuiltInSkill(_0x40b3a6){const _0x2c7417=a60_0x2a44e4;console[_0x2c7417(0x146)](_0x2c7417(0x18e));const _0x3224b6=runNpxSkillsAddGlobal(process[_0x2c7417(0x145)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x40b3a6?_0x2c7417(0x14b):_0x2c7417(0x169)});if(_0x3224b6[_0x2c7417(0x176)]){console[_0x2c7417(0x146)](_0x2c7417(0x155)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x2c7417(0x18f));return;}if(_0x3224b6['ok']){console[_0x2c7417(0x146)]('\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.');return;}console[_0x2c7417(0x184)]('\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20'+(_0x3224b6['error']||'unknown')),console[_0x2c7417(0x146)](_0x2c7417(0x14c));}async function execute(_0x3bbe46){const _0x359d35=a60_0x2a44e4;await validateUpdateFlags(_0x3bbe46);const _0x20f017=getCliVersion();console['log'](_0x359d35(0x149)+_0x20f017),console[_0x359d35(0x146)]('Checking\x20npm\x20dist-tags...');const _0x5d3e81=await resolveTargetVersion(_0x3bbe46);if(!_0x5d3e81){const _0x2ae31a=_0x3bbe46['bool'](_0x359d35(0x158))?_0x359d35(0x158):'latest',_0x3235eb=_0x359d35(0x174)+_0x2ae31a+_0x359d35(0x16c);return console['warn'](_0x3235eb),console[_0x359d35(0x146)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x2ae31a),{'ok':![]};}if(!shouldInstallTarget(_0x20f017,_0x5d3e81)){const _0xb15a44=_0x5d3e81[_0x359d35(0x166)]===_0x359d35(0x178)?_0x359d35(0x157)+_0x5d3e81[_0x359d35(0x178)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x5d3e81[_0x359d35(0x178)]+').';return console[_0x359d35(0x146)](_0xb15a44),shouldSkipCliBuiltInSkill(_0x3bbe46)?console[_0x359d35(0x146)]('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).'):await installCliBuiltInSkill(_0x3bbe46[_0x359d35(0x156)]),{'ok':!![]};}console[_0x359d35(0x146)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x20f017+_0x359d35(0x170)+_0x5d3e81[_0x359d35(0x178)]);const _0x2e3595=installCliPackage(_0x5d3e81[_0x359d35(0x178)],_0x3bbe46[_0x359d35(0x156)]);if(!_0x2e3595['ok']){const _0x12e3bc='Update\x20failed:\x20'+(_0x2e3595[_0x359d35(0x181)]||_0x359d35(0x190));return console[_0x359d35(0x181)](_0x12e3bc),console[_0x359d35(0x146)](_0x359d35(0x165)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x5d3e81['version']),{'ok':![]};}return console[_0x359d35(0x146)](_0x359d35(0x171)+_0x5d3e81[_0x359d35(0x178)]+'.'),console[_0x359d35(0x146)](_0x359d35(0x144)),shouldSkipCliBuiltInSkill(_0x3bbe46)?console[_0x359d35(0x146)](_0x359d35(0x16d)):await installCliBuiltInSkill(_0x3bbe46[_0x359d35(0x156)]),{'ok':!![]};}export const updateDefinition={'service':a60_0x2a44e4(0x164),'command':a60_0x2a44e4(0x17a),'description':a60_0x2a44e4(0x17c)+CLI_BIN_NAME+a60_0x2a44e4(0x154),'risk':a60_0x2a44e4(0x15f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a59_0x19edd2=a59_0x13c3;(function(_0x1d96f3,_0x94acc3){const _0x31ab20=a59_0x13c3,_0x165633=_0x1d96f3();while(!![]){try{const _0x32e2e2=parseInt(_0x31ab20(0xf0))/0x1+-parseInt(_0x31ab20(0xe8))/0x2+parseInt(_0x31ab20(0x11c))/0x3+parseInt(_0x31ab20(0x105))/0x4+parseInt(_0x31ab20(0xfc))/0x5*(-parseInt(_0x31ab20(0xdc))/0x6)+parseInt(_0x31ab20(0x117))/0x7*(-parseInt(_0x31ab20(0x122))/0x8)+parseInt(_0x31ab20(0xf2))/0x9;if(_0x32e2e2===_0x94acc3)break;else _0x165633['push'](_0x165633['shift']());}catch(_0x1baf17){_0x165633['push'](_0x165633['shift']());}}}(a59_0x422c,0x5cba8));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a59_0x422c(){const _0x3e46e8=['\x20version\x20from\x20npm.','trim','5SdMDYL','warn','exit\x20','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','Version\x20comparison\x20failed.','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','inherit','run','latest','1451720TsYyGS','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','validation','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','stderr','Update\x20failed:\x20','boolean','Checking\x20CLI\x20Built-in\x20Skill...','Invalid\x20version:\x20','status','\x20CLI\x20from\x20npm','length','/dist-tags','map','Already\x20up\x20to\x20date\x20(v','toString','Unable\x20to\x20resolve\x20','21lOpoTR','/-/package/','write','Already\x20on\x20requested\x20version\x20(v','cwd','151482WeRHKp','Updating\x20','error','args','\x20->\x20','match','1140664nGVpOF','update','source','Checking\x20npm\x20dist-tags...','unknown','nonInteractive','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','no-skills','minor','3604548vrSZKE','log','prerelease','beta','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','filter','bool','Update\x20','skills','message','version','Current\x20version:\x20','574080GXJxJX','install','flag','json','Install\x20a\x20specific\x20CLI\x20version','join','pipe','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','131667DTYiwX','timeout','10352448XkSbCI','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','entries','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','string','major'];a59_0x422c=function(){return _0x3e46e8;};return a59_0x422c();}import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':a59_0x19edd2(0x104),'type':a59_0x19edd2(0x10c),'description':'Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','default':![]},{'name':a59_0x19edd2(0xdf),'type':'boolean','description':a59_0x19edd2(0xef),'default':![]},{'name':a59_0x19edd2(0xe6),'type':a59_0x19edd2(0xf8),'description':a59_0x19edd2(0xec)},{'name':a59_0x19edd2(0xda),'type':a59_0x19edd2(0x10c),'description':a59_0x19edd2(0x107),'default':![]},{'name':a59_0x19edd2(0xe4),'type':a59_0x19edd2(0x10c),'description':a59_0x19edd2(0x101),'default':!![],'hidden':!![]}];function parseSemver(_0x397c1c){const _0x56577b=a59_0x19edd2,_0x58e8b6=_0x397c1c[_0x56577b(0xfb)]()[_0x56577b(0x121)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x58e8b6)return null;return{'major':Number(_0x58e8b6[0x1]),'minor':Number(_0x58e8b6[0x2]),'patch':Number(_0x58e8b6[0x3]),'prerelease':_0x58e8b6[0x4]};}function compareSemver(_0x33dcc1,_0x2cb71a){const _0x4aefd9=a59_0x19edd2,_0x5b1ff2=parseSemver(_0x33dcc1),_0x488fd9=parseSemver(_0x2cb71a);if(!_0x5b1ff2||!_0x488fd9)throw CliErrors[_0x4aefd9(0x108)](_0x4aefd9(0x100),_0x4aefd9(0x109));for(const _0x2fa8bf of[_0x4aefd9(0xf9),_0x4aefd9(0xdb),'patch']){if(_0x5b1ff2[_0x2fa8bf]<_0x488fd9[_0x2fa8bf])return-0x1;if(_0x5b1ff2[_0x2fa8bf]>_0x488fd9[_0x2fa8bf])return 0x1;}if(!_0x5b1ff2[_0x4aefd9(0xde)]&&!_0x488fd9[_0x4aefd9(0xde)])return 0x0;if(!_0x5b1ff2[_0x4aefd9(0xde)])return 0x1;if(!_0x488fd9[_0x4aefd9(0xde)])return-0x1;if(_0x5b1ff2['prerelease']===_0x488fd9[_0x4aefd9(0xde)])return 0x0;return _0x5b1ff2[_0x4aefd9(0xde)]<_0x488fd9[_0x4aefd9(0xde)]?-0x1:0x1;}function getRequestedVersion(_0x569dbf){const _0x2a3475=a59_0x19edd2,_0x22fa1f=_0x569dbf['str']('version')[_0x2a3475(0xfb)]();if(_0x22fa1f)return _0x22fa1f;return String(_0x569dbf[_0x2a3475(0x11f)]?.[0x0]??'')[_0x2a3475(0xfb)]();}function shouldSkipCliBuiltInSkill(_0xcb542d){const _0x1cbefb=a59_0x19edd2;return _0xcb542d[_0x1cbefb(0xe2)]('no-skills')||_0xcb542d[_0x1cbefb(0xea)](_0x1cbefb(0xe4))===![];}async function validateUpdateFlags(_0x6fed36){const _0x4f6bc2=a59_0x19edd2,_0x59240a=getRequestedVersion(_0x6fed36),_0x3fbeb9=[_0x6fed36[_0x4f6bc2(0xe2)](_0x4f6bc2(0x104))?_0x4f6bc2(0x104):'',_0x6fed36[_0x4f6bc2(0xe2)]('beta')?_0x4f6bc2(0xdf):'',_0x59240a?_0x4f6bc2(0xe6):''][_0x4f6bc2(0xe1)](Boolean);if(_0x3fbeb9[_0x4f6bc2(0x111)]>0x1)throw CliErrors[_0x4f6bc2(0x108)](_0x4f6bc2(0xf3),_0x4f6bc2(0xf5));if(_0x59240a&&!parseSemver(_0x59240a))throw CliErrors['validation'](_0x4f6bc2(0x10e)+_0x59240a,_0x4f6bc2(0xe0));}async function fetchNpmDistTags(){const _0x36dbd9=a59_0x19edd2;try{const _0x545ca0=NPM_REGISTRY_BASE_URL+_0x36dbd9(0x118)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x36dbd9(0x112),_0xb4a6f=await fetch(_0x545ca0,{'signal':AbortSignal[_0x36dbd9(0xf1)](0x2710)});if(!_0xb4a6f['ok'])return null;const _0x2c868d=await _0xb4a6f[_0x36dbd9(0xeb)]();if(!_0x2c868d||typeof _0x2c868d!=='object')return null;return Object['fromEntries'](Object[_0x36dbd9(0xf4)](_0x2c868d)[_0x36dbd9(0xe1)](([,_0x37281d])=>typeof _0x37281d===_0x36dbd9(0xf8)&&_0x37281d['trim']())[_0x36dbd9(0x113)](([_0x2f341d,_0x3c4d01])=>[_0x2f341d,String(_0x3c4d01)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0x5b235b){const _0x1204cc=a59_0x19edd2,_0x46ff8d=getRequestedVersion(_0x5b235b);if(_0x46ff8d)return{'version':_0x46ff8d,'source':'version'};const _0x572992=_0x5b235b[_0x1204cc(0xe2)](_0x1204cc(0xdf))?_0x1204cc(0xdf):_0x1204cc(0x104),_0x54064b=await fetchNpmDistTags(),_0x349947=_0x54064b?.[_0x572992];if(!_0x349947)return null;return{'version':_0x349947,'source':_0x572992};}function a59_0x13c3(_0x4a9126,_0x1e076e){_0x4a9126=_0x4a9126-0xda;const _0x422c55=a59_0x422c();let _0x13c317=_0x422c55[_0x4a9126];return _0x13c317;}function shouldInstallTarget(_0x43e8ec,_0x2c7900){const _0x3b5a25=a59_0x19edd2,_0x1e73a9=compareSemver(_0x43e8ec,_0x2c7900[_0x3b5a25(0xe6)]);if(_0x2c7900[_0x3b5a25(0x124)]===_0x3b5a25(0xe6))return _0x1e73a9!==0x0;return _0x1e73a9<0x0;}function installCliPackage(_0x41821e,_0x3feb1e){const _0x15b0fa=a59_0x19edd2,_0x97a88a=resolveNpmBin('npm'),_0xb39bad=[_0x15b0fa(0xe9),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x41821e];console['log']('*\x20'+[_0x97a88a,..._0xb39bad][_0x15b0fa(0xed)]('\x20'));const _0x3a0a64=spawnSync(_0x97a88a,_0xb39bad,{'cwd':process[_0x15b0fa(0x11b)](),'stdio':_0x3feb1e?_0x15b0fa(0xee):_0x15b0fa(0x102),'env':process.env,'shell':![]});if(_0x3a0a64['status']===0x0)return{'ok':!![]};let _0x2587c2=_0x3a0a64[_0x15b0fa(0x11e)]?.[_0x15b0fa(0xe5)]||_0x15b0fa(0xfe)+(_0x3a0a64[_0x15b0fa(0x10f)]??_0x15b0fa(0x126));if(_0x3feb1e){const _0x57b98f=_0x3a0a64[_0x15b0fa(0x10a)]?_0x3a0a64[_0x15b0fa(0x10a)]['toString']()[_0x15b0fa(0xfb)]():'',_0x531ed4=_0x3a0a64['stdout']?_0x3a0a64['stdout'][_0x15b0fa(0x115)]()[_0x15b0fa(0xfb)]():'';if(_0x57b98f)_0x2587c2=_0x57b98f;else{if(_0x531ed4)_0x2587c2=_0x531ed4;}}return{'ok':![],'error':_0x2587c2};}async function installCliBuiltInSkill(_0x5bbb7d){const _0x331bb6=a59_0x19edd2;console[_0x331bb6(0xdd)](_0x331bb6(0x10d));const _0x73b4ff=runNpxSkillsAddGlobal(process[_0x331bb6(0x11b)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x5bbb7d?'pipe':'inherit'});if(_0x73b4ff['skipped']){console[_0x331bb6(0xdd)](_0x331bb6(0x128)+LOVRABET_SKIP_NPX_SKILLS_ENV+'=1).');return;}if(_0x73b4ff['ok']){console[_0x331bb6(0xdd)](_0x331bb6(0xf7));return;}console['warn']('\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20'+(_0x73b4ff['error']||_0x331bb6(0x126))),console[_0x331bb6(0xdd)](_0x331bb6(0xff));}async function execute(_0xd679d3){const _0x44657a=a59_0x19edd2;await validateUpdateFlags(_0xd679d3);const _0x2acba8=getCliVersion();console[_0x44657a(0xdd)](_0x44657a(0xe7)+_0x2acba8),console[_0x44657a(0xdd)](_0x44657a(0x125));const _0x5e747a=await resolveTargetVersion(_0xd679d3);if(!_0x5e747a){const _0x567108=_0xd679d3[_0x44657a(0xe2)]('beta')?_0x44657a(0xdf):_0x44657a(0x104),_0x4199b2=_0x44657a(0x116)+_0x567108+_0x44657a(0xfa);return console[_0x44657a(0xfd)](_0x4199b2),console[_0x44657a(0xdd)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x567108),{'ok':![]};}if(!shouldInstallTarget(_0x2acba8,_0x5e747a)){const _0x347652=_0x5e747a[_0x44657a(0x124)]===_0x44657a(0xe6)?_0x44657a(0x11a)+_0x5e747a[_0x44657a(0xe6)]+').':_0x44657a(0x114)+_0x5e747a['version']+').';return console['log'](_0x347652),shouldSkipCliBuiltInSkill(_0xd679d3)?console[_0x44657a(0xdd)](_0x44657a(0x106)):await installCliBuiltInSkill(_0xd679d3['nonInteractive']),{'ok':!![]};}console[_0x44657a(0xdd)](_0x44657a(0x11d)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x2acba8+_0x44657a(0x120)+_0x5e747a[_0x44657a(0xe6)]);const _0x31b6ab=installCliPackage(_0x5e747a[_0x44657a(0xe6)],_0xd679d3['nonInteractive']);if(!_0x31b6ab['ok']){const _0x45a341=_0x44657a(0x10b)+(_0x31b6ab[_0x44657a(0x11e)]||_0x44657a(0x126));return console[_0x44657a(0x11e)](_0x45a341),console[_0x44657a(0xdd)]('\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x5e747a[_0x44657a(0xe6)]),{'ok':![]};}return console[_0x44657a(0xdd)]('Updated\x20to\x20v'+_0x5e747a[_0x44657a(0xe6)]+'.'),console[_0x44657a(0xdd)](_0x44657a(0xf6)),shouldSkipCliBuiltInSkill(_0xd679d3)?console['log'](_0x44657a(0x106)):await installCliBuiltInSkill(_0xd679d3[_0x44657a(0x127)]),{'ok':!![]};}export const updateDefinition={'service':a59_0x19edd2(0x123),'command':a59_0x19edd2(0x103),'description':a59_0x19edd2(0xe3)+CLI_BIN_NAME+a59_0x19edd2(0x110),'risk':a59_0x19edd2(0x119),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- const a61_0x3e704c=a61_0x3411;(function(_0x1b48c6,_0x3abe7e){const _0x4916e5=a61_0x3411,_0xd99d18=_0x1b48c6();while(!![]){try{const _0x442e41=parseInt(_0x4916e5(0x13e))/0x1*(-parseInt(_0x4916e5(0x145))/0x2)+-parseInt(_0x4916e5(0x12e))/0x3*(parseInt(_0x4916e5(0x13a))/0x4)+-parseInt(_0x4916e5(0x144))/0x5+-parseInt(_0x4916e5(0x14b))/0x6+-parseInt(_0x4916e5(0x13f))/0x7*(-parseInt(_0x4916e5(0x12a))/0x8)+parseInt(_0x4916e5(0x161))/0x9*(parseInt(_0x4916e5(0x13b))/0xa)+parseInt(_0x4916e5(0x141))/0xb*(parseInt(_0x4916e5(0x13d))/0xc);if(_0x442e41===_0x3abe7e)break;else _0xd99d18['push'](_0xd99d18['shift']());}catch(_0xe2d7c7){_0xd99d18['push'](_0xd99d18['shift']());}}}(a61_0x5f23,0x7ad8b));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':a61_0x3e704c(0x155),'type':a61_0x3e704c(0x151),'description':a61_0x3e704c(0x12b)},{'name':a61_0x3e704c(0x131),'type':a61_0x3e704c(0x151),'description':'App\x20code\x20to\x20bind\x20directly'},{'name':'env','type':'string','description':a61_0x3e704c(0x152),'enum':[...RUNTIME_ENV_VALUES]},{'name':a61_0x3e704c(0x15f),'type':a61_0x3e704c(0x143),'description':a61_0x3e704c(0x138),'default':![]}];async function executeWorkspaceUse(_0x401959,_0x279121){const _0xd8407=a61_0x3e704c,_0x11b51c=_0x401959[_0xd8407(0x136)](_0xd8407(0x155))[_0xd8407(0x130)](),_0x5f1681=_0x401959[_0xd8407(0x136)](_0xd8407(0x131))[_0xd8407(0x130)](),_0x3d57db=_0x401959[_0xd8407(0x136)](_0xd8407(0x157))['trim'](),_0x5895d1=resolveWorkspaceEnv(_0x3d57db||_0x401959[_0xd8407(0x140)]||DEFAULT_CONFIG_VALUES[_0xd8407(0x157)]);if(!_0x11b51c&&!_0x5f1681)throw CliErrors[_0xd8407(0x158)]('Missing\x20workspace\x20app\x20selector.',_0xd8407(0x15d)+CLI_BIN_NAME+_0xd8407(0x15e)+_0x279121+_0xd8407(0x12f)+CLI_BIN_NAME+'\x20workspace\x20'+_0x279121+_0xd8407(0x15c));const _0x25f7f2=_0x5f1681||await resolveRemoteAppCode({'command':_0x279121,'appName':_0x11b51c,'env':_0x5895d1,'accessKey':_0x401959[_0xd8407(0x15b)]}),_0x3c33eb=writeWorkspaceConfig({'command':_0x279121,'appName':_0x11b51c,'appcode':_0x25f7f2,'env':_0x5895d1,'shouldWriteEnv':!!_0x3d57db,'accessKey':_0x401959[_0xd8407(0x15b)]});return{'ok':!![],'data':{'configPath':_0x3c33eb,'app':_0x11b51c||null,'appcode':_0x25f7f2,'env':_0x3d57db?_0x5895d1:null,'accessKeyWritten':![],'command':_0xd8407(0x14c)+_0x279121},'message':buildWorkspaceMessage(_0x3c33eb,_0x11b51c,_0x25f7f2,_0x3d57db?_0x5895d1:undefined)};}async function resolveRemoteAppCode(_0x5d5915){const _0x2da76b=a61_0x3e704c;if(!_0x5d5915[_0x2da76b(0x15b)])throw CliErrors['authRequired'](_0x2da76b(0x132)+CLI_BIN_NAME+_0x2da76b(0x15e)+_0x5d5915[_0x2da76b(0x12c)]+'.');const {setActiveAK:_0x54f743}=await import(_0x2da76b(0x129)),{getRemoteAppList:_0x3a8714}=await import(_0x2da76b(0x162));_0x54f743(_0x5d5915['accessKey']);const _0x3208f6=await _0x3a8714({'env':_0x5d5915[_0x2da76b(0x157)],'accessKey':_0x5d5915[_0x2da76b(0x15b)],'noCache':![]}),_0x2d9606=findAppByName(_0x3208f6[_0x2da76b(0x14d)],_0x5d5915['appName']);if(_0x2d9606&&!isRuntimeAccessibleApp(_0x2d9606))throw runtimeInaccessibleAppError(_0x2d9606,'\x22'+_0x5d5915[_0x2da76b(0x153)]+'\x22');const _0x184289=_0x2d9606?.['appCode']?.[_0x2da76b(0x130)]();if(_0x184289)return _0x184289;const _0x179fad=_0x3208f6[_0x2da76b(0x14d)][_0x2da76b(0x13c)](_0x5b25e2=>_0x5b25e2[_0x2da76b(0x153)])['filter'](Boolean),_0x5b9001=_0x179fad[_0x2da76b(0x160)]?'Available\x20apps:\x20'+Array[_0x2da76b(0x14a)](new Set(_0x179fad))['join'](',\x20')+'.':_0x2da76b(0x146)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.';throw CliErrors[_0x2da76b(0x158)](_0x2da76b(0x14f)+_0x5d5915[_0x2da76b(0x153)]+'\x22\x20not\x20found.',_0x5b9001);}function writeWorkspaceConfig(_0x2eee73){const _0x181d92=a61_0x3e704c,_0x38c761=resolveWriteConfigPath(_0x181d92(0x149)),_0x909585=readConfigFile(_0x38c761);_0x2eee73['shouldWriteEnv']&&(_0x909585[_0x181d92(0x157)]=_0x2eee73[_0x181d92(0x157)]);if(_0x2eee73[_0x181d92(0x153)]){const _0x542dcb=isRecord(_0x909585[_0x181d92(0x159)])?{..._0x909585[_0x181d92(0x159)]}:{},_0x2b5112=isRecord(_0x542dcb[_0x2eee73[_0x181d92(0x153)]])?_0x542dcb[_0x2eee73['appName']]:{};_0x542dcb[_0x2eee73['appName']]={..._0x2b5112,'appcode':_0x2eee73[_0x181d92(0x131)]},_0x909585[_0x181d92(0x159)]=_0x542dcb,_0x909585[_0x181d92(0x156)]=_0x2eee73[_0x181d92(0x153)];if(_0x909585[_0x181d92(0x155)])delete _0x909585[_0x181d92(0x155)];return writeAndReturn(_0x38c761,_0x909585);}_0x909585[_0x181d92(0x131)]=_0x2eee73['appcode'];if(_0x909585[_0x181d92(0x155)])delete _0x909585[_0x181d92(0x155)];return writeAndReturn(_0x38c761,_0x909585);}function writeAndReturn(_0xd0fb3a,_0x2e460e){return writeConfigFile(_0xd0fb3a,_0x2e460e),_0xd0fb3a;}function resolveWorkspaceEnv(_0x4c241a){const _0x3a6c03=a61_0x3e704c;if(RUNTIME_ENV_VALUES[_0x3a6c03(0x154)](_0x4c241a))return _0x4c241a;throw CliErrors[_0x3a6c03(0x158)](_0x3a6c03(0x137)+_0x4c241a+_0x3a6c03(0x148)+RUNTIME_ENV_VALUES[_0x3a6c03(0x14e)](',\x20'));}function a61_0x3411(_0x336351,_0x29eda8){_0x336351=_0x336351-0x129;const _0x5f2315=a61_0x5f23();let _0x3411ae=_0x5f2315[_0x336351];return _0x3411ae;}function a61_0x5f23(){const _0x2591a9=['\x20workspace\x20','yes','length','27GtebdQ','../../commands/app/remote-source.js','../../core/api-client.js','16jcWMKI','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','command','init','9198SwJtsS','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','trim','appcode','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','isArray','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','use','str','Invalid\x20env\x20\x22','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','\x0aEnv:\x20','148ghadbR','2657690PGTzcA','map','1032wRShUl','2837oGTlYS','3122581EiqDVi','envName','67188xgCLBt','\x0aDefault\x20app:\x20','boolean','4277425OopETD','254dsLlAI','Run\x20`','object','\x22.\x20Allowed:\x20','project','from','2294136jBIBxB','workspace\x20','items','join','App\x20\x22','Workspace\x20configured.\x0aConfig\x20file:\x20','string','Target\x20environment','appName','includes','app','defaultApp','env','validation','apps','\x0aAccessKey:\x20not\x20written','accessKey','\x20--appcode\x20<code>\x20[--env\x20daily]','Usage:\x20'];a61_0x5f23=function(){return _0x2591a9;};return a61_0x5f23();}function buildWorkspaceMessage(_0x3775c1,_0xcd764c,_0x179d98,_0x4ac1a4){const _0x567a5e=a61_0x3e704c,_0x4f9f75=_0xcd764c?_0xcd764c+'\x20('+_0x179d98+')':_0x179d98,_0x1397cb=_0x4ac1a4?_0x567a5e(0x139)+_0x4ac1a4:'';return _0x567a5e(0x150)+_0x3775c1+_0x567a5e(0x142)+_0x4f9f75+_0x1397cb+_0x567a5e(0x15a);}function isRecord(_0x4d2dab){const _0x3abdab=a61_0x3e704c;return typeof _0x4d2dab===_0x3abdab(0x147)&&_0x4d2dab!==null&&!Array[_0x3abdab(0x133)](_0x4d2dab);}function makeWorkspaceCommand(_0x1e348d){const _0x7db99c=a61_0x3e704c;return{'service':'workspace','command':_0x1e348d,'description':_0x1e348d===_0x7db99c(0x12d)?_0x7db99c(0x134):'Set\x20app\x20context\x20for\x20the\x20current\x20workspace','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x6b6221){return executeWorkspaceUse(_0x6b6221,_0x1e348d);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a61_0x3e704c(0x12d)),makeWorkspaceCommand(a61_0x3e704c(0x135))];
1
+ const a60_0x5e7e27=a60_0x2e5b;(function(_0x5ade38,_0xa2e42c){const _0xb29a6=a60_0x2e5b,_0x330100=_0x5ade38();while(!![]){try{const _0xb7a33e=parseInt(_0xb29a6(0x17a))/0x1+-parseInt(_0xb29a6(0x197))/0x2*(-parseInt(_0xb29a6(0x179))/0x3)+parseInt(_0xb29a6(0x183))/0x4+-parseInt(_0xb29a6(0x1ac))/0x5*(parseInt(_0xb29a6(0x194))/0x6)+-parseInt(_0xb29a6(0x189))/0x7*(-parseInt(_0xb29a6(0x17b))/0x8)+-parseInt(_0xb29a6(0x1aa))/0x9*(parseInt(_0xb29a6(0x1a3))/0xa)+-parseInt(_0xb29a6(0x1a1))/0xb;if(_0xb7a33e===_0xa2e42c)break;else _0x330100['push'](_0x330100['shift']());}catch(_0x5b465a){_0x330100['push'](_0x330100['shift']());}}}(a60_0x4a3e,0xb4344));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_0x5e7e27(0x18b),'type':'string','description':'App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default'},{'name':a60_0x5e7e27(0x19e),'type':a60_0x5e7e27(0x1a0),'description':a60_0x5e7e27(0x198)},{'name':a60_0x5e7e27(0x19c),'type':a60_0x5e7e27(0x1a0),'description':a60_0x5e7e27(0x18e),'enum':[...RUNTIME_ENV_VALUES]},{'name':a60_0x5e7e27(0x1ad),'type':a60_0x5e7e27(0x178),'description':a60_0x5e7e27(0x195),'default':![]}];async function executeWorkspaceUse(_0x5d9f81,_0x114ad7){const _0x392a3b=a60_0x5e7e27,_0x357b4b=_0x5d9f81[_0x392a3b(0x173)]('app')[_0x392a3b(0x19f)](),_0x4e4041=_0x5d9f81[_0x392a3b(0x173)](_0x392a3b(0x19e))[_0x392a3b(0x19f)](),_0x48a490=_0x5d9f81[_0x392a3b(0x173)](_0x392a3b(0x19c))[_0x392a3b(0x19f)](),_0x5f3d08=resolveWorkspaceEnv(_0x48a490||_0x5d9f81[_0x392a3b(0x1a6)]||DEFAULT_CONFIG_VALUES[_0x392a3b(0x19c)]);if(!_0x357b4b&&!_0x4e4041)throw CliErrors[_0x392a3b(0x196)]('Missing\x20workspace\x20app\x20selector.','Usage:\x20'+CLI_BIN_NAME+'\x20workspace\x20'+_0x114ad7+_0x392a3b(0x18a)+CLI_BIN_NAME+_0x392a3b(0x187)+_0x114ad7+_0x392a3b(0x182));const _0x227622=_0x4e4041||await resolveRemoteAppCode({'command':_0x114ad7,'appName':_0x357b4b,'env':_0x5f3d08,'accessKey':_0x5d9f81['accessKey']}),_0xc7a4a1=writeWorkspaceConfig({'command':_0x114ad7,'appName':_0x357b4b,'appcode':_0x227622,'env':_0x5f3d08,'shouldWriteEnv':!!_0x48a490,'accessKey':_0x5d9f81[_0x392a3b(0x1a9)]});return{'ok':!![],'data':{'configPath':_0xc7a4a1,'app':_0x357b4b||null,'appcode':_0x227622,'env':_0x48a490?_0x5f3d08:null,'accessKeyWritten':![],'command':_0x392a3b(0x174)+_0x114ad7},'message':buildWorkspaceMessage(_0xc7a4a1,_0x357b4b,_0x227622,_0x48a490?_0x5f3d08:undefined)};}function a60_0x2e5b(_0x1174bd,_0x3d871e){_0x1174bd=_0x1174bd-0x173;const _0x4a3ef6=a60_0x4a3e();let _0x2e5ba6=_0x4a3ef6[_0x1174bd];return _0x2e5ba6;}function a60_0x4a3e(){const _0x3584e0=['envName','from','appCode','accessKey','9MmJtYo','isArray','5VdoCKH','yes','str','workspace\x20','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','init','length','boolean','32853CaJeck','1135009ahhhPM','24EaCMdy','\x0aDefault\x20app:\x20','filter','command','apps','join','includes','\x20--appcode\x20<code>\x20[--env\x20daily]','480536mpwWIz','shouldWriteEnv','write','\x0aAccessKey:\x20not\x20written','\x20workspace\x20','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','3231529LHxnnL','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','app','Workspace\x20configured.\x0aConfig\x20file:\x20','defaultApp','Target\x20environment','workspace','../../commands/app/remote-source.js','\x22.\x20Allowed:\x20','appName','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','3470622tScchU','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','validation','60szJfww','App\x20code\x20to\x20bind\x20directly','Run\x20`','\x22\x20not\x20found.','Invalid\x20env\x20\x22','env','object','appcode','trim','string','10704320PUHXoL','Available\x20apps:\x20','6789410bgjZoA','items','project'];a60_0x4a3e=function(){return _0x3584e0;};return a60_0x4a3e();}async function resolveRemoteAppCode(_0x24d3bf){const _0x1535df=a60_0x5e7e27;if(!_0x24d3bf[_0x1535df(0x1a9)])throw CliErrors['authRequired'](_0x1535df(0x193)+CLI_BIN_NAME+'\x20workspace\x20'+_0x24d3bf[_0x1535df(0x17e)]+'.');const {setActiveAK:_0x137fb1}=await import('../../core/api-client.js'),{getRemoteAppList:_0x4973ab}=await import(_0x1535df(0x190));_0x137fb1(_0x24d3bf[_0x1535df(0x1a9)]);const _0x3c50d1=await _0x4973ab({'env':_0x24d3bf['env'],'accessKey':_0x24d3bf[_0x1535df(0x1a9)],'noCache':![]}),_0x1e4bbe=findAppByName(_0x3c50d1[_0x1535df(0x1a4)],_0x24d3bf[_0x1535df(0x192)]);if(_0x1e4bbe&&!isRuntimeAccessibleApp(_0x1e4bbe))throw runtimeInaccessibleAppError(_0x1e4bbe,'\x22'+_0x24d3bf[_0x1535df(0x192)]+'\x22');const _0x6510d5=_0x1e4bbe?.[_0x1535df(0x1a8)]?.[_0x1535df(0x19f)]();if(_0x6510d5)return _0x6510d5;const _0x2e804f=_0x3c50d1['items']['map'](_0x283b2a=>_0x283b2a[_0x1535df(0x192)])[_0x1535df(0x17d)](Boolean),_0x5a19ca=_0x2e804f[_0x1535df(0x177)]?_0x1535df(0x1a2)+Array[_0x1535df(0x1a7)](new Set(_0x2e804f))[_0x1535df(0x180)](',\x20')+'.':_0x1535df(0x199)+CLI_BIN_NAME+_0x1535df(0x188);throw CliErrors[_0x1535df(0x196)]('App\x20\x22'+_0x24d3bf[_0x1535df(0x192)]+_0x1535df(0x19a),_0x5a19ca);}function writeWorkspaceConfig(_0x21497f){const _0x2258a4=a60_0x5e7e27,_0x4271f9=resolveWriteConfigPath(_0x2258a4(0x1a5)),_0x415bea=readConfigFile(_0x4271f9);_0x21497f[_0x2258a4(0x184)]&&(_0x415bea[_0x2258a4(0x19c)]=_0x21497f['env']);if(_0x21497f[_0x2258a4(0x192)]){const _0xd97a51=isRecord(_0x415bea[_0x2258a4(0x17f)])?{..._0x415bea[_0x2258a4(0x17f)]}:{},_0x28d7dd=isRecord(_0xd97a51[_0x21497f['appName']])?_0xd97a51[_0x21497f['appName']]:{};_0xd97a51[_0x21497f[_0x2258a4(0x192)]]={..._0x28d7dd,'appcode':_0x21497f[_0x2258a4(0x19e)]},_0x415bea[_0x2258a4(0x17f)]=_0xd97a51,_0x415bea[_0x2258a4(0x18d)]=_0x21497f['appName'];if(_0x415bea[_0x2258a4(0x18b)])delete _0x415bea[_0x2258a4(0x18b)];return writeAndReturn(_0x4271f9,_0x415bea);}_0x415bea[_0x2258a4(0x19e)]=_0x21497f['appcode'];if(_0x415bea[_0x2258a4(0x18b)])delete _0x415bea[_0x2258a4(0x18b)];return writeAndReturn(_0x4271f9,_0x415bea);}function writeAndReturn(_0x44f884,_0x30062f){return writeConfigFile(_0x44f884,_0x30062f),_0x44f884;}function resolveWorkspaceEnv(_0x14e40b){const _0x3f689c=a60_0x5e7e27;if(RUNTIME_ENV_VALUES[_0x3f689c(0x181)](_0x14e40b))return _0x14e40b;throw CliErrors['validation'](_0x3f689c(0x19b)+_0x14e40b+_0x3f689c(0x191)+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x45ebe8,_0x268bc6,_0x389d57,_0x3f0383){const _0x463d03=a60_0x5e7e27,_0x26cb35=_0x268bc6?_0x268bc6+'\x20('+_0x389d57+')':_0x389d57,_0x3b4dd1=_0x3f0383?'\x0aEnv:\x20'+_0x3f0383:'';return _0x463d03(0x18c)+_0x45ebe8+_0x463d03(0x17c)+_0x26cb35+_0x3b4dd1+_0x463d03(0x186);}function isRecord(_0x4a6321){const _0x5a4455=a60_0x5e7e27;return typeof _0x4a6321===_0x5a4455(0x19d)&&_0x4a6321!==null&&!Array[_0x5a4455(0x1ab)](_0x4a6321);}function makeWorkspaceCommand(_0x38d762){const _0x53ad10=a60_0x5e7e27;return{'service':_0x53ad10(0x18f),'command':_0x38d762,'description':_0x38d762===_0x53ad10(0x176)?'Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace':_0x53ad10(0x175),'risk':_0x53ad10(0x185),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x3e8543){return executeWorkspaceUse(_0x3e8543,_0x38d762);}};}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand('use')];
@@ -1 +1 @@
1
- const a62_0x1c6135=a62_0x22f2;(function(_0x525408,_0x2814d2){const _0x39d3bc=a62_0x22f2,_0x5c9725=_0x525408();while(!![]){try{const _0x4675c8=parseInt(_0x39d3bc(0x1a4))/0x1*(parseInt(_0x39d3bc(0x1ab))/0x2)+parseInt(_0x39d3bc(0x1b4))/0x3*(parseInt(_0x39d3bc(0x1ae))/0x4)+parseInt(_0x39d3bc(0x19c))/0x5+parseInt(_0x39d3bc(0x1ac))/0x6*(parseInt(_0x39d3bc(0x1b3))/0x7)+-parseInt(_0x39d3bc(0x1a7))/0x8*(parseInt(_0x39d3bc(0x1ad))/0x9)+parseInt(_0x39d3bc(0x1b2))/0xa*(parseInt(_0x39d3bc(0x1a9))/0xb)+-parseInt(_0x39d3bc(0x1a0))/0xc;if(_0x4675c8===_0x2814d2)break;else _0x5c9725['push'](_0x5c9725['shift']());}catch(_0x5d9b76){_0x5c9725['push'](_0x5c9725['shift']());}}}(a62_0x4e8f,0xa5491));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[a62_0x1c6135(0x1a3)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a62_0x1c6135(0x19a)],'importable':!![]},'pageSize':{'description':a62_0x1c6135(0x1b1),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a62_0x1c6135(0x19e),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a62_0x1c6135(0x1b0),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a62_0x1c6135(0x1a2),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a62_0x1c6135(0x1a5),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a62_0x1c6135(0x199),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a62_0x1c6135(0x197)],'importable':!![]},'locale':{'description':a62_0x1c6135(0x1a1),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)[a62_0x1c6135(0x198)](([,_0x10958f])=>_0x10958f['cliSettableTopLevel'])[a62_0x1c6135(0x19b)](([_0x221eec])=>_0x221eec));export const CONFIG_ENUM_VALUES=Object[a62_0x1c6135(0x19d)](Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x4a0325])=>_0x4a0325[a62_0x1c6135(0x1a6)])[a62_0x1c6135(0x19b)](([_0x58b3ff,_0x554423])=>[_0x58b3ff,[..._0x554423[a62_0x1c6135(0x1a6)]||[]]]));function a62_0x22f2(_0xe60ea3,_0x1ef782){_0xe60ea3=_0xe60ea3-0x197;const _0x4e8fe1=a62_0x4e8f();let _0x22f2dd=_0x4e8fe1[_0xe60ea3];return _0x22f2dd;}export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a62_0x1c6135(0x1a8)](CONFIG_FIELD_SCHEMAS)[a62_0x1c6135(0x198)](([,_0x3b0399])=>_0x3b0399[a62_0x1c6135(0x1af)])[a62_0x1c6135(0x19b)](([_0x63278a])=>_0x63278a);export function getConfigFieldSchema(_0x4a8a2a){return CONFIG_FIELD_SCHEMAS[_0x4a8a2a];}function a62_0x4e8f(){const _0x490abb=['format','map','654910ETgHgv','fromEntries','Override\x20user\x20domain','Config\x20key.\x20Top-level:\x20','4435116KJGQgs','Locale','Override\x20SkillHub\x20domain','env','11794bNIOub','Access\x20key\x20(client-ak\x20auth)','enumValues','327064eDGEAz','entries','1816089pYaYnq',';\x20local\x20alias:\x20apps.<alias>.appcode','56GOpbTI','309252OhkVXf','45pIgTNK','104324wWEFNr','importable','Override\x20runtime\x20domain','Default\x20page\x20size','10icfPuE','14AHFHpf','60Gxnjfp','riskLevel','filter','Risk\x20level'];a62_0x4e8f=function(){return _0x490abb;};return a62_0x4e8f();}export function getConfigEnumValues(_0x2b004b){const _0x2c9662=a62_0x1c6135;return getConfigFieldSchema(_0x2b004b)?.[_0x2c9662(0x1a6)];}export function getConfigDefaultValue(_0x49e3f4){return getConfigFieldSchema(_0x49e3f4)?.['defaultValue'];}export function isTopLevelConfigKey(_0x39bb43){return TOP_LEVEL_CONFIG_KEYS['has'](_0x39bb43);}export function isLegacyCompatConfigKey(_0x5b43d5){return getConfigFieldSchema(_0x5b43d5)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x37f507){return[..._0x37f507]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x51d4b8=a62_0x1c6135;return _0x51d4b8(0x19f)+getTopLevelConfigKeySummary()+_0x51d4b8(0x1aa);}export function buildAppProfileListFields(_0x161af8){return{'env':_0x161af8,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a61_0x1d8996=a61_0xe8ff;function a61_0x1ff3(){const _0x4af099=['3364140axjiTM','Target\x20environment','1692054pXJQbZ',';\x20local\x20alias:\x20apps.<alias>.appcode','join','defaultValue','7461384txDeca','legacyCompatOnly','env','entries','114052COXhCX','enumValues','Locale','Override\x20runtime\x20domain','cliSettableTopLevel','Access\x20key\x20(client-ak\x20auth)','Override\x20SkillHub\x20domain','Override\x20user\x20domain','locale','has','riskLevel','filter','16328196bXfDZT','Risk\x20level','Config\x20key.\x20Top-level:\x20','format','fromEntries','25iKiylt','4HybyGi','1673724KVtYtm','map','79865AeSHtL'];a61_0x1ff3=function(){return _0x4af099;};return a61_0x1ff3();}(function(_0x1d93f2,_0x4ccdfd){const _0x570322=a61_0xe8ff,_0x2374cd=_0x1d93f2();while(!![]){try{const _0x1ea1eb=parseInt(_0x570322(0x8a))/0x1*(-parseInt(_0x570322(0x87))/0x2)+-parseInt(_0x570322(0x88))/0x3+-parseInt(_0x570322(0x95))/0x4*(-parseInt(_0x570322(0x86))/0x5)+parseInt(_0x570322(0x8b))/0x6+-parseInt(_0x570322(0x8d))/0x7+-parseInt(_0x570322(0x91))/0x8+parseInt(_0x570322(0x81))/0x9;if(_0x1ea1eb===_0x4ccdfd)break;else _0x2374cd['push'](_0x2374cd['shift']());}catch(_0x41b7b1){_0x2374cd['push'](_0x2374cd['shift']());}}}(a61_0x1ff3,0x98b3a));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a61_0x1d8996(0x8c),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x1d8996(0x93)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x1d8996(0x84)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a61_0x1d8996(0x9c),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a61_0x1d8996(0x98),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a61_0x1d8996(0x9b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a61_0x1d8996(0x9a),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a61_0x1d8996(0x82),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x1d8996(0x9f)],'importable':!![]},'locale':{'description':a61_0x1d8996(0x97),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a61_0x1d8996(0x9d)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a61_0x1d8996(0x94)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x47e7e3])=>_0x47e7e3[a61_0x1d8996(0x99)])['map'](([_0x462c03])=>_0x462c03));export const CONFIG_ENUM_VALUES=Object[a61_0x1d8996(0x85)](Object[a61_0x1d8996(0x94)](CONFIG_FIELD_SCHEMAS)[a61_0x1d8996(0xa0)](([,_0x47e294])=>_0x47e294[a61_0x1d8996(0x96)])[a61_0x1d8996(0x89)](([_0x1ab0ae,_0x4ccf21])=>[_0x1ab0ae,[..._0x4ccf21[a61_0x1d8996(0x96)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object['entries'](CONFIG_FIELD_SCHEMAS)[a61_0x1d8996(0xa0)](([,_0x5d42bc])=>_0x5d42bc['importable'])[a61_0x1d8996(0x89)](([_0x766ec8])=>_0x766ec8);export function getConfigFieldSchema(_0x2a35b2){return CONFIG_FIELD_SCHEMAS[_0x2a35b2];}export function getConfigEnumValues(_0x4f2367){const _0x3fd987=a61_0x1d8996;return getConfigFieldSchema(_0x4f2367)?.[_0x3fd987(0x96)];}export function getConfigDefaultValue(_0x20b7c7){const _0x2449ee=a61_0x1d8996;return getConfigFieldSchema(_0x20b7c7)?.[_0x2449ee(0x90)];}export function isTopLevelConfigKey(_0x21eb3a){const _0x612f6f=a61_0x1d8996;return TOP_LEVEL_CONFIG_KEYS[_0x612f6f(0x9e)](_0x21eb3a);}export function isLegacyCompatConfigKey(_0x3b8ca6){const _0x3b3c20=a61_0x1d8996;return getConfigFieldSchema(_0x3b8ca6)?.[_0x3b3c20(0x92)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}function a61_0xe8ff(_0x321dd3,_0x525f39){_0x321dd3=_0x321dd3-0x81;const _0x1ff3c6=a61_0x1ff3();let _0xe8ff10=_0x1ff3c6[_0x321dd3];return _0xe8ff10;}export function formatConfigKeyList(_0x1142b8){const _0x5b7d69=a61_0x1d8996;return[..._0x1142b8][_0x5b7d69(0x8f)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x93050a=a61_0x1d8996;return _0x93050a(0x83)+getTopLevelConfigKeySummary()+_0x93050a(0x8e);}export function buildAppProfileListFields(_0x2ef55f){return{'env':_0x2ef55f,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- const a63_0x1d538c=a63_0x449d;function a63_0x3c1a(){const _0x58715f=['435123UBMwYU','570zxaTQv','2964432npEXug','Published','PUBLISHED','5076gChtuK','5QMoHqX','688776tTYYZd','1944824IirShr','53954JnDxQV','10kljKtX','5180gsDvjB','8SfnntA'];a63_0x3c1a=function(){return _0x58715f;};return a63_0x3c1a();}(function(_0x3fc45e,_0x27bbf2){const _0x442dd8=a63_0x449d,_0x31beaf=_0x3fc45e();while(!![]){try{const _0x280e41=-parseInt(_0x442dd8(0xd8))/0x1+parseInt(_0x442dd8(0xda))/0x2+parseInt(_0x442dd8(0xdd))/0x3*(parseInt(_0x442dd8(0xd4))/0x4)+-parseInt(_0x442dd8(0xd5))/0x5*(-parseInt(_0x442dd8(0xd1))/0x6)+-parseInt(_0x442dd8(0xd7))/0x7+-parseInt(_0x442dd8(0xdb))/0x8*(parseInt(_0x442dd8(0xdc))/0x9)+parseInt(_0x442dd8(0xd9))/0xa*(-parseInt(_0x442dd8(0xd6))/0xb);if(_0x280e41===_0x27bbf2)break;else _0x31beaf['push'](_0x31beaf['shift']());}catch(_0x51bd0d){_0x31beaf['push'](_0x31beaf['shift']());}}}(a63_0x3c1a,0x4806f));function a63_0x449d(_0x1b3486,_0x459edf){_0x1b3486=_0x1b3486-0xd1;const _0x3c1aa0=a63_0x3c1a();let _0x449dce=_0x3c1aa0[_0x1b3486];return _0x449dce;}export const APP_PUBLISH_STATUS={'Published':a63_0x1d538c(0xd3),'Unpublished':'UNPUBLISH'};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a63_0x1d538c(0xd2)];
1
+ function a62_0xb02e(_0x4a290a,_0x37cd79){_0x4a290a=_0x4a290a-0x11d;const _0x261cce=a62_0x261c();let _0xb02edc=_0x261cce[_0x4a290a];return _0xb02edc;}const a62_0x1c1057=a62_0xb02e;(function(_0x240a27,_0x225329){const _0x1fc230=a62_0xb02e,_0x11a1c3=_0x240a27();while(!![]){try{const _0x9c9b9f=parseInt(_0x1fc230(0x11e))/0x1*(-parseInt(_0x1fc230(0x124))/0x2)+parseInt(_0x1fc230(0x127))/0x3*(-parseInt(_0x1fc230(0x11d))/0x4)+-parseInt(_0x1fc230(0x11f))/0x5+parseInt(_0x1fc230(0x129))/0x6+parseInt(_0x1fc230(0x122))/0x7+parseInt(_0x1fc230(0x123))/0x8*(parseInt(_0x1fc230(0x121))/0x9)+-parseInt(_0x1fc230(0x125))/0xa*(parseInt(_0x1fc230(0x120))/0xb);if(_0x9c9b9f===_0x225329)break;else _0x11a1c3['push'](_0x11a1c3['shift']());}catch(_0x535860){_0x11a1c3['push'](_0x11a1c3['shift']());}}}(a62_0x261c,0x74988));function a62_0x261c(){const _0x64d3f7=['2040IFdfwg','PUBLISHED','1607832urYVek','2804uwrmvg','14895KuzQLL','873010depTHK','4367NmCyve','9UZsXaP','4956217aXdlmE','4617896DvDpIH','50stYovV','1310QnHimZ','UNPUBLISH'];a62_0x261c=function(){return _0x64d3f7;};return a62_0x261c();}export const APP_PUBLISH_STATUS={'Published':a62_0x1c1057(0x128),'Unpublished':a62_0x1c1057(0x126)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];
@@ -1 +1 @@
1
- const a64_0x3ad41d=a64_0x3c11;function a64_0x2a42(){const _0x7f1ffe=['6oPiXPz','406soXKJE','172lWhodK','5199822CznGeM','client-ak','39064IUIkmn','6342095GyNTxI','24vDXpKR','14247edHOoV','3548bloCxT','ClientAk','10613740GQERPn','452jHzxHX','1789953OMsHxd'];a64_0x2a42=function(){return _0x7f1ffe;};return a64_0x2a42();}(function(_0x1d175c,_0x24e517){const _0x10262c=a64_0x3c11,_0x23d877=_0x1d175c();while(!![]){try{const _0x159e3f=-parseInt(_0x10262c(0x1d8))/0x1*(parseInt(_0x10262c(0x1db))/0x2)+parseInt(_0x10262c(0x1d7))/0x3*(-parseInt(_0x10262c(0x1df))/0x4)+-parseInt(_0x10262c(0x1d5))/0x5*(-parseInt(_0x10262c(0x1dd))/0x6)+parseInt(_0x10262c(0x1de))/0x7*(parseInt(_0x10262c(0x1d4))/0x8)+-parseInt(_0x10262c(0x1d2))/0x9+parseInt(_0x10262c(0x1da))/0xa+-parseInt(_0x10262c(0x1dc))/0xb*(parseInt(_0x10262c(0x1d6))/0xc);if(_0x159e3f===_0x24e517)break;else _0x23d877['push'](_0x23d877['shift']());}catch(_0x440657){_0x23d877['push'](_0x23d877['shift']());}}}(a64_0x2a42,0xabd04));function a64_0x3c11(_0x345b67,_0x19e8e3){_0x345b67=_0x345b67-0x1d2;const _0x2a428f=a64_0x2a42();let _0x3c1185=_0x2a428f[_0x345b67];return _0x3c1185;}export const AUTH_MODE={'ClientAk':a64_0x3ad41d(0x1d3)};export function isAuthMode(_0x5f09c4){const _0x128e49=a64_0x3ad41d;return _0x5f09c4===AUTH_MODE[_0x128e49(0x1d9)];}
1
+ function a63_0x1218(_0x4476a8,_0x1b6450){_0x4476a8=_0x4476a8-0x100;const _0x4a1f6d=a63_0x4a1f();let _0x121810=_0x4a1f6d[_0x4476a8];return _0x121810;}const a63_0x2833fd=a63_0x1218;(function(_0xdda05c,_0x270e66){const _0xa801c2=a63_0x1218,_0x2b1145=_0xdda05c();while(!![]){try{const _0x159f30=parseInt(_0xa801c2(0x107))/0x1+parseInt(_0xa801c2(0x105))/0x2*(-parseInt(_0xa801c2(0x101))/0x3)+-parseInt(_0xa801c2(0x106))/0x4*(parseInt(_0xa801c2(0x104))/0x5)+-parseInt(_0xa801c2(0x10a))/0x6*(parseInt(_0xa801c2(0x108))/0x7)+parseInt(_0xa801c2(0x100))/0x8+parseInt(_0xa801c2(0x109))/0x9+-parseInt(_0xa801c2(0x103))/0xa;if(_0x159f30===_0x270e66)break;else _0x2b1145['push'](_0x2b1145['shift']());}catch(_0x305a71){_0x2b1145['push'](_0x2b1145['shift']());}}}(a63_0x4a1f,0xcd69f));function a63_0x4a1f(){const _0x3f87e5=['574TYnwAz','13404492BmwXSi','40188SWPmGz','4245640RkvboE','45045nQkktC','client-ak','5984370eWDbZT','4271935hCOizR','50RDMvFa','4CFexdy','1198717oINBCk'];a63_0x4a1f=function(){return _0x3f87e5;};return a63_0x4a1f();}export const AUTH_MODE={'ClientAk':a63_0x2833fd(0x102)};export function isAuthMode(_0x4523b9){return _0x4523b9===AUTH_MODE['ClientAk'];}
@@ -1 +1 @@
1
- const a65_0x5bf573=a65_0xcf9d;(function(_0xd368be,_0x1b7991){const _0x574ae2=a65_0xcf9d,_0x35ddeb=_0xd368be();while(!![]){try{const _0xf691c=parseInt(_0x574ae2(0x16a))/0x1+-parseInt(_0x574ae2(0x158))/0x2*(-parseInt(_0x574ae2(0x15c))/0x3)+-parseInt(_0x574ae2(0x173))/0x4+parseInt(_0x574ae2(0x186))/0x5+parseInt(_0x574ae2(0x15b))/0x6*(parseInt(_0x574ae2(0x175))/0x7)+parseInt(_0x574ae2(0x165))/0x8*(parseInt(_0x574ae2(0x170))/0x9)+-parseInt(_0x574ae2(0x16e))/0xa;if(_0xf691c===_0x1b7991)break;else _0x35ddeb['push'](_0x35ddeb['shift']());}catch(_0x3c685a){_0x35ddeb['push'](_0x35ddeb['shift']());}}}(a65_0x3b4a,0xc95f3));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a65_0x5bf573(0x15d)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a65_0x5bf573(0x174)];function a65_0xcf9d(_0x357d3f,_0x25763d){_0x357d3f=_0x357d3f-0x158;const _0x3b4a79=a65_0x3b4a();let _0xcf9d93=_0x3b4a79[_0x357d3f];return _0xcf9d93;}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a65_0x3b4a(){const _0x2936c6=['env','<expr>','<name>','Show\x20help','1048aIciUB','sqlcode','app','format','verbose','1120103LqMdpG','Override\x20appcode','type','global','14539200ZyxnTg','json\x20|\x20pretty\x20|\x20compress','38232OJZjMK','Environment','Verbose\x20output','5987824bYDnZK','cliDisplayName','11371087eOflJD','yes','Record\x20ID','help','meowKey','non-interactive','JSON\x20params\x20for\x20execute\x20commands','dry-run','Name\x20filter','string','boolean','Use\x20global\x20config\x20scope','name','Force\x20non-interactive\x20mode\x20(CI)','production\x20|\x20development\x20|\x20daily','<code>','Alias\x20for\x20--non-interactive','1611100ZmStUc','Select\x20app\x20profile\x20by\x20name','Skip\x20confirmation\x20for\x20high-risk\x20writes','appcode','304886tqnavr','Output\x20format','clear','6GKIMlT','3zCSIRY','cliBinName','Preview\x20operation\x20without\x20executing','Clear\x20output','params'];a65_0x3b4a=function(){return _0x2936c6;};return a65_0x3b4a();}export const GLOBAL_FLAGS=[{'name':a65_0x5bf573(0x189),'meowKey':a65_0x5bf573(0x189),'type':a65_0x5bf573(0x17e),'description':a65_0x5bf573(0x16b),'hint':a65_0x5bf573(0x184)},{'name':a65_0x5bf573(0x167),'meowKey':a65_0x5bf573(0x167),'type':a65_0x5bf573(0x17e),'description':a65_0x5bf573(0x187),'hint':a65_0x5bf573(0x163)},{'name':a65_0x5bf573(0x161),'meowKey':'env','type':a65_0x5bf573(0x17e),'description':a65_0x5bf573(0x171),'hint':a65_0x5bf573(0x183)},{'name':a65_0x5bf573(0x168),'meowKey':a65_0x5bf573(0x168),'type':a65_0x5bf573(0x17e),'description':a65_0x5bf573(0x159),'hint':a65_0x5bf573(0x16f)},{'name':'jq','meowKey':'jq','type':a65_0x5bf573(0x17e),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a65_0x5bf573(0x162)},{'name':a65_0x5bf573(0x17c),'meowKey':'dryRun','type':a65_0x5bf573(0x17f),'description':a65_0x5bf573(0x15e)},{'name':a65_0x5bf573(0x176),'meowKey':a65_0x5bf573(0x176),'type':a65_0x5bf573(0x17f),'description':a65_0x5bf573(0x188)},{'name':'non-interactive','meowKey':'nonInteractive','type':a65_0x5bf573(0x17f),'description':a65_0x5bf573(0x182)},{'name':a65_0x5bf573(0x16d),'meowKey':a65_0x5bf573(0x16d),'type':a65_0x5bf573(0x17f),'description':a65_0x5bf573(0x180)},{'name':'ci','meowKey':'ci','type':a65_0x5bf573(0x17f),'description':a65_0x5bf573(0x185),'hidden':!![]},{'name':a65_0x5bf573(0x178),'meowKey':a65_0x5bf573(0x178),'type':a65_0x5bf573(0x17f),'description':a65_0x5bf573(0x164)},{'name':'id','meowKey':'id','type':a65_0x5bf573(0x17e),'description':a65_0x5bf573(0x177),'hidden':!![]},{'name':a65_0x5bf573(0x181),'meowKey':a65_0x5bf573(0x181),'type':a65_0x5bf573(0x17e),'description':a65_0x5bf573(0x17d),'hidden':!![]},{'name':a65_0x5bf573(0x166),'meowKey':'sqlcode','type':a65_0x5bf573(0x17e),'description':'SQL\x20query\x20code','hidden':!![]},{'name':'params','meowKey':a65_0x5bf573(0x160),'type':'string','description':a65_0x5bf573(0x17b),'hidden':!![]},{'name':a65_0x5bf573(0x169),'meowKey':a65_0x5bf573(0x169),'type':a65_0x5bf573(0x17f),'description':a65_0x5bf573(0x172),'hidden':!![]},{'name':a65_0x5bf573(0x15a),'meowKey':a65_0x5bf573(0x15a),'type':'boolean','description':a65_0x5bf573(0x15f),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode','app','env',a65_0x5bf573(0x168),'jq',a65_0x5bf573(0x17c),a65_0x5bf573(0x176),a65_0x5bf573(0x17a),'ci']);export function buildMeowFlags(){const _0x251a9b=a65_0x5bf573;return Object['fromEntries'](GLOBAL_FLAGS['map'](_0xded423=>[_0xded423[_0x251a9b(0x179)],{'type':_0xded423[_0x251a9b(0x16c)]}]));}
1
+ const a64_0x1eb0e9=a64_0xd1a4;(function(_0x59bc99,_0x35210e){const _0x8e08f5=a64_0xd1a4,_0x545f8e=_0x59bc99();while(!![]){try{const _0x4c05a0=parseInt(_0x8e08f5(0x14e))/0x1+-parseInt(_0x8e08f5(0x161))/0x2+parseInt(_0x8e08f5(0x148))/0x3+parseInt(_0x8e08f5(0x142))/0x4+-parseInt(_0x8e08f5(0x13a))/0x5*(-parseInt(_0x8e08f5(0x156))/0x6)+parseInt(_0x8e08f5(0x15e))/0x7+-parseInt(_0x8e08f5(0x15b))/0x8;if(_0x4c05a0===_0x35210e)break;else _0x545f8e['push'](_0x545f8e['shift']());}catch(_0x205a14){_0x545f8e['push'](_0x545f8e['shift']());}}}(a64_0x912b,0xea067));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a64_0x1eb0e9(0x157)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a64_0x1eb0e9(0x15c),'meowKey':a64_0x1eb0e9(0x15c),'type':a64_0x1eb0e9(0x13f),'description':'Override\x20appcode','hint':'<code>'},{'name':a64_0x1eb0e9(0x155),'meowKey':a64_0x1eb0e9(0x155),'type':a64_0x1eb0e9(0x13f),'description':a64_0x1eb0e9(0x13b),'hint':a64_0x1eb0e9(0x14c)},{'name':a64_0x1eb0e9(0x158),'meowKey':a64_0x1eb0e9(0x158),'type':a64_0x1eb0e9(0x13f),'description':a64_0x1eb0e9(0x14f),'hint':a64_0x1eb0e9(0x14d)},{'name':a64_0x1eb0e9(0x13e),'meowKey':a64_0x1eb0e9(0x13e),'type':'string','description':a64_0x1eb0e9(0x15f),'hint':a64_0x1eb0e9(0x152)},{'name':'jq','meowKey':'jq','type':'string','description':a64_0x1eb0e9(0x140),'hint':'<expr>'},{'name':'dry-run','meowKey':a64_0x1eb0e9(0x15a),'type':a64_0x1eb0e9(0x146),'description':a64_0x1eb0e9(0x14b)},{'name':a64_0x1eb0e9(0x139),'meowKey':a64_0x1eb0e9(0x139),'type':'boolean','description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a64_0x1eb0e9(0x145),'meowKey':'nonInteractive','type':a64_0x1eb0e9(0x146),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a64_0x1eb0e9(0x141),'meowKey':a64_0x1eb0e9(0x141),'type':a64_0x1eb0e9(0x146),'description':a64_0x1eb0e9(0x13d)},{'name':'ci','meowKey':'ci','type':a64_0x1eb0e9(0x146),'description':a64_0x1eb0e9(0x153),'hidden':!![]},{'name':'help','meowKey':a64_0x1eb0e9(0x150),'type':a64_0x1eb0e9(0x146),'description':a64_0x1eb0e9(0x147)},{'name':'id','meowKey':'id','type':a64_0x1eb0e9(0x13f),'description':a64_0x1eb0e9(0x151),'hidden':!![]},{'name':'name','meowKey':'name','type':a64_0x1eb0e9(0x13f),'description':a64_0x1eb0e9(0x154),'hidden':!![]},{'name':a64_0x1eb0e9(0x160),'meowKey':a64_0x1eb0e9(0x160),'type':a64_0x1eb0e9(0x13f),'description':'SQL\x20query\x20code','hidden':!![]},{'name':a64_0x1eb0e9(0x14a),'meowKey':a64_0x1eb0e9(0x14a),'type':'string','description':a64_0x1eb0e9(0x159),'hidden':!![]},{'name':a64_0x1eb0e9(0x15d),'meowKey':a64_0x1eb0e9(0x15d),'type':a64_0x1eb0e9(0x146),'description':a64_0x1eb0e9(0x149),'hidden':!![]},{'name':'clear','meowKey':a64_0x1eb0e9(0x13c),'type':a64_0x1eb0e9(0x146),'description':a64_0x1eb0e9(0x144),'hidden':!![]}];function a64_0xd1a4(_0x3751c1,_0x3880e5){_0x3751c1=_0x3751c1-0x139;const _0x912b32=a64_0x912b();let _0xd1a49f=_0x912b32[_0x3751c1];return _0xd1a49f;}function a64_0x912b(){const _0x9d63bc=['Show\x20help','1389414fpwVnn','Verbose\x20output','params','Preview\x20operation\x20without\x20executing','<name>','production\x20|\x20development\x20|\x20daily','1354877ZMPujV','Environment','help','Record\x20ID','json\x20|\x20pretty\x20|\x20compress','Alias\x20for\x20--non-interactive','Name\x20filter','app','102wxcBre','cliDisplayName','env','JSON\x20params\x20for\x20execute\x20commands','dryRun','31963456lFSNYe','appcode','verbose','6852818CjUURv','Output\x20format','sqlcode','1297492LnpcnE','yes','465755PdtDKu','Select\x20app\x20profile\x20by\x20name','clear','Use\x20global\x20config\x20scope','format','string','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','global','4888756keMBhP','fromEntries','Clear\x20output','non-interactive','boolean'];a64_0x912b=function(){return _0x9d63bc;};return a64_0x912b();}export const PIPELINE_FLAG_NAMES=new Set([a64_0x1eb0e9(0x15c),'app',a64_0x1eb0e9(0x158),a64_0x1eb0e9(0x13e),'jq','dry-run','yes','non-interactive','ci']);export function buildMeowFlags(){const _0x1d87ca=a64_0x1eb0e9;return Object[_0x1d87ca(0x143)](GLOBAL_FLAGS['map'](_0x482410=>[_0x482410['meowKey'],{'type':_0x482410['type']}]));}
@@ -1 +1 @@
1
- function a66_0x3d57(){const _0x9618c0=['write','2912968JVtBMU','20249406GIhvHN','116952DDFDVe','6rqBMYB','main','1299789kqXvkQ','3398820dXrKKd','en-US','4ZwzuRY','1361568XYTIgb','727517fswJVl','compress'];a66_0x3d57=function(){return _0x9618c0;};return a66_0x3d57();}const a66_0x51c9e8=a66_0x48ef;function a66_0x48ef(_0x172f03,_0xfa390){_0x172f03=_0x172f03-0x94;const _0x3d57d6=a66_0x3d57();let _0x48ef2a=_0x3d57d6[_0x172f03];return _0x48ef2a;}(function(_0x191ec1,_0x1d5e71){const _0x5c3187=a66_0x48ef,_0x184811=_0x191ec1();while(!![]){try{const _0x348ae5=parseInt(_0x5c3187(0x98))/0x1+parseInt(_0x5c3187(0x9c))/0x2+parseInt(_0x5c3187(0x95))/0x3+-parseInt(_0x5c3187(0x9b))/0x4*(-parseInt(_0x5c3187(0x99))/0x5)+parseInt(_0x5c3187(0x96))/0x6*(-parseInt(_0x5c3187(0x9d))/0x7)+parseInt(_0x5c3187(0xa0))/0x8+-parseInt(_0x5c3187(0x94))/0x9;if(_0x348ae5===_0x1d5e71)break;else _0x184811['push'](_0x184811['shift']());}catch(_0x1c5e8e){_0x184811['push'](_0x184811['shift']());}}}(a66_0x3d57,0xad3c9));export const DEFAULT_APP_PROFILE_NAME=a66_0x51c9e8(0x97);export const DEFAULT_CONFIG_VALUES={'env':'production','format':a66_0x51c9e8(0x9e),'locale':a66_0x51c9e8(0x9a),'riskLevel':a66_0x51c9e8(0x9f)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
1
+ function a65_0x4a86(){const _0x1c5a1e=['37225eueoJt','production','354465HQiOqR','72FocpST','write','576FrRWZI','1273710zeGSMx','en-US','12qlzEpW','main','114804fYTjIu','709884rZuDHx','compress','4254580BfpdiM','29071otcWwO'];a65_0x4a86=function(){return _0x1c5a1e;};return a65_0x4a86();}function a65_0x3eec(_0x24ca19,_0x5c1549){_0x24ca19=_0x24ca19-0x126;const _0x4a86c0=a65_0x4a86();let _0x3eec85=_0x4a86c0[_0x24ca19];return _0x3eec85;}const a65_0x28737d=a65_0x3eec;(function(_0xb2737e,_0x487e96){const _0x2ffb1f=a65_0x3eec,_0x48eda2=_0xb2737e();while(!![]){try{const _0x3e581b=parseInt(_0x2ffb1f(0x127))/0x1+-parseInt(_0x2ffb1f(0x131))/0x2+-parseInt(_0x2ffb1f(0x126))/0x3*(parseInt(_0x2ffb1f(0x133))/0x4)+parseInt(_0x2ffb1f(0x12b))/0x5+-parseInt(_0x2ffb1f(0x130))/0x6*(-parseInt(_0x2ffb1f(0x12a))/0x7)+parseInt(_0x2ffb1f(0x12e))/0x8*(-parseInt(_0x2ffb1f(0x12d))/0x9)+parseInt(_0x2ffb1f(0x129))/0xa;if(_0x3e581b===_0x487e96)break;else _0x48eda2['push'](_0x48eda2['shift']());}catch(_0x20a5b1){_0x48eda2['push'](_0x48eda2['shift']());}}}(a65_0x4a86,0x6a497));export const DEFAULT_APP_PROFILE_NAME=a65_0x28737d(0x134);export const DEFAULT_CONFIG_VALUES={'env':a65_0x28737d(0x12c),'format':a65_0x28737d(0x128),'locale':a65_0x28737d(0x132),'riskLevel':a65_0x28737d(0x12f)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a65_0x28737d(0x128);
@@ -1 +1 @@
1
- function a67_0x3829(_0x3e375b,_0x2b9327){_0x3e375b=_0x3e375b-0x1e8;const _0x41f360=a67_0x41f3();let _0x3829ae=_0x41f360[_0x3e375b];return _0x3829ae;}const a67_0x13e313=a67_0x3829;(function(_0x561624,_0x5278aa){const _0x4b0252=a67_0x3829,_0x42711c=_0x561624();while(!![]){try{const _0x39adcd=-parseInt(_0x4b0252(0x1f1))/0x1+-parseInt(_0x4b0252(0x1f2))/0x2+-parseInt(_0x4b0252(0x1e8))/0x3*(-parseInt(_0x4b0252(0x1eb))/0x4)+parseInt(_0x4b0252(0x1ec))/0x5*(parseInt(_0x4b0252(0x1ee))/0x6)+-parseInt(_0x4b0252(0x1ea))/0x7+parseInt(_0x4b0252(0x1ed))/0x8+-parseInt(_0x4b0252(0x1f0))/0x9*(-parseInt(_0x4b0252(0x1ef))/0xa);if(_0x39adcd===_0x5278aa)break;else _0x42711c['push'](_0x42711c['shift']());}catch(_0x582285){_0x42711c['push'](_0x42711c['shift']());}}}(a67_0x41f3,0x36de8));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a67_0x13e313(0x1f4)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a67_0x13e313(0x1f3)];function a67_0x41f3(){const _0x1726f4=['4qZwQlK','1203025cwMXnH','3174680cdYKsw','6FwVEcG','110lAqBvr','174465efQVcX','224344knpwnd','754108UGECMk','skillSource','npmPackageName','281538bdSdGI','npmRegistryBaseUrl','828653oyZaHR'];a67_0x41f3=function(){return _0x1726f4;};return a67_0x41f3();}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a67_0x13e313(0x1e9)];
1
+ const a66_0x207348=a66_0x29c7;(function(_0xdd841a,_0x4b6252){const _0x45398e=a66_0x29c7,_0x45449e=_0xdd841a();while(!![]){try{const _0x3105dd=-parseInt(_0x45398e(0x166))/0x1+-parseInt(_0x45398e(0x167))/0x2+-parseInt(_0x45398e(0x168))/0x3+-parseInt(_0x45398e(0x169))/0x4*(-parseInt(_0x45398e(0x164))/0x5)+parseInt(_0x45398e(0x16d))/0x6+-parseInt(_0x45398e(0x165))/0x7+parseInt(_0x45398e(0x16c))/0x8*(parseInt(_0x45398e(0x163))/0x9);if(_0x3105dd===_0x4b6252)break;else _0x45449e['push'](_0x45449e['shift']());}catch(_0x5ae41d){_0x45449e['push'](_0x45449e['shift']());}}}(a66_0x47ad,0x7c398));function a66_0x29c7(_0xfd5165,_0x361af6){_0xfd5165=_0xfd5165-0x163;const _0x47ad08=a66_0x47ad();let _0x29c78b=_0x47ad08[_0xfd5165];return _0x29c78b;}import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a66_0x207348(0x16b)];function a66_0x47ad(){const _0x532c7b=['45llPZrX','15MFMpKH','915145dRgpCO','271426yXeIme','1499712raUkYT','1842567Qhlnof','322820ycRldh','skillSource','npmPackageName','3128216lhVMuJ','466680DaXRZE'];a66_0x47ad=function(){return _0x532c7b;};return a66_0x47ad();}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a66_0x207348(0x16a)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];
@@ -1 +1 @@
1
- const a68_0x4ea7ee=a68_0xb58f;(function(_0x20dcd4,_0x2b69e2){const _0x52b4df=a68_0xb58f,_0x2e58ee=_0x20dcd4();while(!![]){try{const _0x51eee6=-parseInt(_0x52b4df(0xab))/0x1*(parseInt(_0x52b4df(0xa8))/0x2)+parseInt(_0x52b4df(0xb6))/0x3*(parseInt(_0x52b4df(0xb1))/0x4)+parseInt(_0x52b4df(0xaf))/0x5+parseInt(_0x52b4df(0xaa))/0x6*(parseInt(_0x52b4df(0xb0))/0x7)+-parseInt(_0x52b4df(0xba))/0x8*(-parseInt(_0x52b4df(0xb4))/0x9)+parseInt(_0x52b4df(0xb8))/0xa*(parseInt(_0x52b4df(0xbc))/0xb)+parseInt(_0x52b4df(0xa9))/0xc*(-parseInt(_0x52b4df(0xb9))/0xd);if(_0x51eee6===_0x2b69e2)break;else _0x2e58ee['push'](_0x2e58ee['shift']());}catch(_0x54bc47){_0x2e58ee['push'](_0x2e58ee['shift']());}}}(a68_0x1ba9,0x62fcb));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x5d2b60){const _0xb6cd29=a68_0xb58f;customApiDomain=_0x5d2b60?.[_0xb6cd29(0xad)],customUserDomain=_0x5d2b60?.['userDomain'],customRuntimeDomain=_0x5d2b60?.[_0xb6cd29(0xbd)],customSkillHubDomain=_0x5d2b60?.[_0xb6cd29(0xb5)];}function a68_0xb58f(_0x394157,_0x53e260){_0x394157=_0x394157-0xa8;const _0x1ba99b=a68_0x1ba9();let _0xb58f52=_0x1ba99b[_0x394157];return _0xb58f52;}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a68_0x4ea7ee(0xac)][a68_0x4ea7ee(0xbb)][a68_0x4ea7ee(0xb3)]:PRODUCT_CONFIG['domains'][a68_0x4ea7ee(0xb2)][a68_0x4ea7ee(0xb3)]);function a68_0x1ba9(){const _0x426794=['51702oWzyyc','2698676YWVxzx','nonProduction','user','9jzIHwT','skillHubDomain','3HjDDui','skillhub','8680bKHRGl','13fxAUaC','1214632HjSibd','production','7480TPefsn','runtimeDomain','2MEDacl','15996696qooOlM','144pGaqfz','42646snxZJp','domains','apiDomain','api','935765rrvlbh'];a68_0x1ba9=function(){return _0x426794;};return a68_0x1ba9();}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a68_0x4ea7ee(0xac)][a68_0x4ea7ee(0xbb)][a68_0x4ea7ee(0xae)]:PRODUCT_CONFIG[a68_0x4ea7ee(0xac)][a68_0x4ea7ee(0xb2)]['api']);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a68_0x4ea7ee(0xac)][a68_0x4ea7ee(0xbb)]['runtime']:PRODUCT_CONFIG[a68_0x4ea7ee(0xac)]['nonProduction']['runtime']);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a68_0x4ea7ee(0xac)][a68_0x4ea7ee(0xbb)]['skillhub']:PRODUCT_CONFIG['domains'][a68_0x4ea7ee(0xb2)][a68_0x4ea7ee(0xb7)]);
1
+ const a67_0x59bb69=a67_0x262b;(function(_0x2d7880,_0x2319d4){const _0x1279f0=a67_0x262b,_0x45f932=_0x2d7880();while(!![]){try{const _0x1250a0=-parseInt(_0x1279f0(0x1a1))/0x1+-parseInt(_0x1279f0(0x197))/0x2+parseInt(_0x1279f0(0x199))/0x3*(-parseInt(_0x1279f0(0x19b))/0x4)+-parseInt(_0x1279f0(0x1a2))/0x5+-parseInt(_0x1279f0(0x193))/0x6*(-parseInt(_0x1279f0(0x1a6))/0x7)+-parseInt(_0x1279f0(0x194))/0x8+-parseInt(_0x1279f0(0x19a))/0x9*(-parseInt(_0x1279f0(0x195))/0xa);if(_0x1250a0===_0x2319d4)break;else _0x45f932['push'](_0x45f932['shift']());}catch(_0x260e89){_0x45f932['push'](_0x45f932['shift']());}}}(a67_0x4db7,0xec136));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;function a67_0x4db7(){const _0x4c409b=['skillhub','158949rDfywA','498nXJNPT','2169808GFEDiA','760BVjqjw','nonProduction','281568mwXyFl','runtimeDomain','3TyTTUR','274203BcGwfx','2954332qMBCDP','api','runtime','skillHubDomain','userDomain','user','360479lEVFqx','8610675nyThBH','production','domains'];a67_0x4db7=function(){return _0x4c409b;};return a67_0x4db7();}export function initDomains(_0x428e33){const _0x8a79ab=a67_0x262b;customApiDomain=_0x428e33?.['apiDomain'],customUserDomain=_0x428e33?.[_0x8a79ab(0x19f)],customRuntimeDomain=_0x428e33?.[_0x8a79ab(0x198)],customSkillHubDomain=_0x428e33?.[_0x8a79ab(0x19e)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x59bb69(0x1a4)][a67_0x59bb69(0x1a3)][a67_0x59bb69(0x1a0)]:PRODUCT_CONFIG[a67_0x59bb69(0x1a4)][a67_0x59bb69(0x196)][a67_0x59bb69(0x1a0)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x59bb69(0x1a4)]['production'][a67_0x59bb69(0x19c)]:PRODUCT_CONFIG[a67_0x59bb69(0x1a4)][a67_0x59bb69(0x196)][a67_0x59bb69(0x19c)]);function a67_0x262b(_0x29b9cd,_0x31699b){_0x29b9cd=_0x29b9cd-0x193;const _0x4db7e5=a67_0x4db7();let _0x262b49=_0x4db7e5[_0x29b9cd];return _0x262b49;}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a67_0x59bb69(0x1a3)][a67_0x59bb69(0x19d)]:PRODUCT_CONFIG['domains'][a67_0x59bb69(0x196)][a67_0x59bb69(0x19d)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a67_0x59bb69(0x1a4)][a67_0x59bb69(0x1a3)]['skillhub']:PRODUCT_CONFIG[a67_0x59bb69(0x1a4)][a67_0x59bb69(0x196)][a67_0x59bb69(0x1a5)]);
@@ -1 +1 @@
1
- const a69_0x4b0c70=a69_0x3e7e;(function(_0x3e4797,_0x7cd1f){const _0x1d7bb0=a69_0x3e7e,_0xe5cccb=_0x3e4797();while(!![]){try{const _0x4161ce=parseInt(_0x1d7bb0(0xb9))/0x1*(parseInt(_0x1d7bb0(0xb6))/0x2)+parseInt(_0x1d7bb0(0xb1))/0x3+parseInt(_0x1d7bb0(0xb7))/0x4+parseInt(_0x1d7bb0(0xae))/0x5+-parseInt(_0x1d7bb0(0xaf))/0x6+-parseInt(_0x1d7bb0(0xb5))/0x7*(-parseInt(_0x1d7bb0(0xb2))/0x8)+parseInt(_0x1d7bb0(0xb0))/0x9*(-parseInt(_0x1d7bb0(0xb8))/0xa);if(_0x4161ce===_0x7cd1f)break;else _0xe5cccb['push'](_0xe5cccb['shift']());}catch(_0x431150){_0xe5cccb['push'](_0xe5cccb['shift']());}}}(a69_0x2a4d,0xa978a));function a69_0x2a4d(){const _0x23eb8d=['2089950YMtRAf','9vAGHdw','2648151mQvTHo','624lMDyPD','online','production','18795bULGgy','2sfyQks','2739860pJIlLd','30556930BzvCSn','1121851iajsNY','daily','development','5996045EqNjPQ'];a69_0x2a4d=function(){return _0x23eb8d;};return a69_0x2a4d();}import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a69_0x4b0c70(0xb4),a69_0x4b0c70(0xad),a69_0x4b0c70(0xba)];export function normalizeEnv(_0x5a65c2){const _0x31a9b7=a69_0x4b0c70;return _0x5a65c2===_0x31a9b7(0xb3)?_0x31a9b7(0xb4):_0x5a65c2;}export function isProduction(_0x1fceb7){const _0x30007e=a69_0x4b0c70;return normalizeEnv(_0x1fceb7)===_0x30007e(0xb4);}export function isDaily(_0x382308){return normalizeEnv(_0x382308)==='daily';}export function isDev(_0x8c0b51){const _0x542701=a69_0x4b0c70,_0x5379d3=normalizeEnv(_0x8c0b51);return _0x5379d3===_0x542701(0xad)||_0x5379d3==='dev';}let env=normalizeEnv(productEnv('ENV')||a69_0x4b0c70(0xb4));function a69_0x3e7e(_0x43157a,_0x203bfe){_0x43157a=_0x43157a-0xad;const _0x2a4d0e=a69_0x2a4d();let _0x3e7eb5=_0x2a4d0e[_0x43157a];return _0x3e7eb5;}export function getEnv(){return env;}export function initEnv(_0x182ef8){env=normalizeEnv(_0x182ef8);}
1
+ const a68_0x343799=a68_0x2699;(function(_0x229c05,_0x5f18b3){const _0x141390=a68_0x2699,_0x105a59=_0x229c05();while(!![]){try{const _0x5c8ebb=-parseInt(_0x141390(0x133))/0x1*(-parseInt(_0x141390(0x139))/0x2)+parseInt(_0x141390(0x13b))/0x3*(-parseInt(_0x141390(0x13f))/0x4)+-parseInt(_0x141390(0x135))/0x5*(-parseInt(_0x141390(0x130))/0x6)+-parseInt(_0x141390(0x13e))/0x7*(-parseInt(_0x141390(0x12f))/0x8)+-parseInt(_0x141390(0x132))/0x9*(-parseInt(_0x141390(0x138))/0xa)+-parseInt(_0x141390(0x140))/0xb*(-parseInt(_0x141390(0x134))/0xc)+-parseInt(_0x141390(0x13a))/0xd;if(_0x5c8ebb===_0x5f18b3)break;else _0x105a59['push'](_0x105a59['shift']());}catch(_0x284ee4){_0x105a59['push'](_0x105a59['shift']());}}}(a68_0x2b15,0x6b819));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a68_0x343799(0x131),a68_0x343799(0x13c),a68_0x343799(0x13d)];function a68_0x2b15(){const _0x4cf669=['66WFfSXg','dev','3272byBIZD','3753954OZNuHy','production','27kJEyzW','838LpUqmG','508236fGxWgM','5vrRhbS','ENV','online','2014770UErcEX','1284YAGwbx','16040817kuvxLm','1857pGicbL','development','daily','2107Rjcmvz','3044hUuwon'];a68_0x2b15=function(){return _0x4cf669;};return a68_0x2b15();}export function normalizeEnv(_0x247288){const _0x10864d=a68_0x343799;return _0x247288===_0x10864d(0x137)?_0x10864d(0x131):_0x247288;}function a68_0x2699(_0x543f64,_0x225a7e){_0x543f64=_0x543f64-0x12e;const _0x2b1563=a68_0x2b15();let _0x2699bc=_0x2b1563[_0x543f64];return _0x2699bc;}export function isProduction(_0x13e3a1){const _0x3301cc=a68_0x343799;return normalizeEnv(_0x13e3a1)===_0x3301cc(0x131);}export function isDaily(_0x15fe2a){const _0x3296a2=a68_0x343799;return normalizeEnv(_0x15fe2a)===_0x3296a2(0x13d);}export function isDev(_0x50a7f2){const _0x39ac76=a68_0x343799,_0x1aa102=normalizeEnv(_0x50a7f2);return _0x1aa102==='development'||_0x1aa102===_0x39ac76(0x12e);}let env=normalizeEnv(productEnv(a68_0x343799(0x136))||a68_0x343799(0x131));export function getEnv(){return env;}export function initEnv(_0x1827da){env=normalizeEnv(_0x1827da);}
@@ -1 +1 @@
1
- function a70_0x1046(_0x2e8785,_0x1e4bea){_0x2e8785=_0x2e8785-0xf3;const _0x42beb2=a70_0x42be();let _0x1046b7=_0x42beb2[_0x2e8785];return _0x1046b7;}function a70_0x42be(){const _0x2a8082=['48QsSQUi','json','6PRfHhI','34412sKSNkD','pretty','730041mmIHYx','1268661xEUgBU','9vikcjt','8996590CNmpLb','11209136czpJUL','82439mfRfun','470WGtCeP','1723700uOaSkW'];a70_0x42be=function(){return _0x2a8082;};return a70_0x42be();}const a70_0x4edec8=a70_0x1046;(function(_0x4434fb,_0x466faa){const _0xba554=a70_0x1046,_0xb5b617=_0x4434fb();while(!![]){try{const _0x88f152=-parseInt(_0xba554(0xff))/0x1+parseInt(_0xba554(0xfb))/0x2*(parseInt(_0xba554(0xfe))/0x3)+-parseInt(_0xba554(0xfc))/0x4*(parseInt(_0xba554(0xf7))/0x5)+parseInt(_0xba554(0xf9))/0x6*(-parseInt(_0xba554(0xf6))/0x7)+-parseInt(_0xba554(0xf5))/0x8*(-parseInt(_0xba554(0xf3))/0x9)+parseInt(_0xba554(0xf4))/0xa+-parseInt(_0xba554(0xf8))/0xb;if(_0x88f152===_0x466faa)break;else _0xb5b617['push'](_0xb5b617['shift']());}catch(_0xc80134){_0xb5b617['push'](_0xb5b617['shift']());}}}(a70_0x42be,0xab877));export const OUTPUT_FORMAT_VALUES=[a70_0x4edec8(0xfa),a70_0x4edec8(0xfd),'compress'];
1
+ const a69_0x1b8c36=a69_0x3a9e;function a69_0x4d3d(){const _0x2bc58a=['4gKZhCy','1361876uqpEYA','5873QTCBQi','90LIXCeh','json','pretty','39VbkLoK','8196auucUE','190504MZIlqj','369tJkfoR','compress','16cqBaLy','451176bdJKjU','6396396PCLKMK','1242018zIjFsk','521320geSjmj'];a69_0x4d3d=function(){return _0x2bc58a;};return a69_0x4d3d();}function a69_0x3a9e(_0x3024d4,_0x3b8582){_0x3024d4=_0x3024d4-0x1b2;const _0x4d3dfd=a69_0x4d3d();let _0x3a9e2a=_0x4d3dfd[_0x3024d4];return _0x3a9e2a;}(function(_0x40c43f,_0x469ae6){const _0xb0074f=a69_0x3a9e,_0x434578=_0x40c43f();while(!![]){try{const _0x29cae5=-parseInt(_0xb0074f(0x1b9))/0x1+parseInt(_0xb0074f(0x1b8))/0x2*(parseInt(_0xb0074f(0x1b6))/0x3)+parseInt(_0xb0074f(0x1b3))/0x4*(-parseInt(_0xb0074f(0x1b7))/0x5)+-parseInt(_0xb0074f(0x1bf))/0x6*(parseInt(_0xb0074f(0x1ba))/0x7)+parseInt(_0xb0074f(0x1c0))/0x8*(parseInt(_0xb0074f(0x1c1))/0x9)+parseInt(_0xb0074f(0x1bb))/0xa*(parseInt(_0xb0074f(0x1b4))/0xb)+-parseInt(_0xb0074f(0x1b5))/0xc*(-parseInt(_0xb0074f(0x1be))/0xd);if(_0x29cae5===_0x469ae6)break;else _0x434578['push'](_0x434578['shift']());}catch(_0xe8e4b8){_0x434578['push'](_0x434578['shift']());}}}(a69_0x4d3d,0xceede));export const OUTPUT_FORMAT_VALUES=[a69_0x1b8c36(0x1bc),a69_0x1b8c36(0x1bd),a69_0x1b8c36(0x1b2)];
@@ -1 +1 @@
1
- function a71_0x2795(_0x5d7aa2,_0x4c542e){_0x5d7aa2=_0x5d7aa2-0x16e;const _0x479459=a71_0x4794();let _0x2795e8=_0x479459[_0x5d7aa2];return _0x2795e8;}function a71_0x4794(){const _0xe9d141=['2941475ECBSeA','.lovrabet.json','lovrabet','771528EYeWHZ','https://runtime.lovrabet.com','.lovrabetrc','2421507QPIyaw','Lovrabet\x20User\x20Center','7piXlKT','.lovrabet-runtime.log','/user/ak','https://user.lovrabet.com','12520crDdAQ','SKIP_NPX_SKILLS','legacyEnvPrefixes','57900EdhsQC','@lovrabet/lovrabet-cli','3771rizenT','envPrefix','lovrabet/lovrabet-cli','96FRRpPu','.lovrabet','https://skills-daily.lovrabet.com','LOVRABET','https://daily-api.lovrabet.com','RABETBASE','2741796zcHOXG','Lovrabet\x20Runtime\x20CLI','9793BIkrRB','https://skills.lovrabet.com'];a71_0x4794=function(){return _0xe9d141;};return a71_0x4794();}const a71_0x44e80c=a71_0x2795;(function(_0x1f66f2,_0x442da8){const _0x397013=a71_0x2795,_0x45953a=_0x1f66f2();while(!![]){try{const _0x4addc5=-parseInt(_0x397013(0x184))/0x1*(-parseInt(_0x397013(0x18b))/0x2)+parseInt(_0x397013(0x182))/0x3+parseInt(_0x397013(0x178))/0x4+-parseInt(_0x397013(0x17c))/0x5+-parseInt(_0x397013(0x172))/0x6*(parseInt(_0x397013(0x17a))/0x7)+-parseInt(_0x397013(0x17f))/0x8+parseInt(_0x397013(0x16f))/0x9*(-parseInt(_0x397013(0x188))/0xa);if(_0x4addc5===_0x442da8)break;else _0x45953a['push'](_0x45953a['shift']());}catch(_0x281afb){_0x45953a['push'](_0x45953a['shift']());}}}(a71_0x4794,0x712c8));export const PRODUCT_CONFIG={'cliBinName':a71_0x44e80c(0x17e),'cliDisplayName':a71_0x44e80c(0x179),'npmPackageName':a71_0x44e80c(0x16e),'skillSource':a71_0x44e80c(0x171),'npmRegistryBaseUrl':'https://registry.npmjs.org','envPrefix':a71_0x44e80c(0x175),'legacyEnvPrefixes':[a71_0x44e80c(0x177)],'configFileNames':[a71_0x44e80c(0x17d),a71_0x44e80c(0x181)],'newConfigFileName':a71_0x44e80c(0x17d),'homeDirName':a71_0x44e80c(0x173),'logFileName':a71_0x44e80c(0x185),'invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a71_0x44e80c(0x183),'skipNpxSkillsEnvSuffix':a71_0x44e80c(0x189),'domains':{'production':{'user':a71_0x44e80c(0x187),'api':'https://api.lovrabet.com','runtime':a71_0x44e80c(0x180),'skillhub':a71_0x44e80c(0x17b)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':a71_0x44e80c(0x176),'runtime':'https://daily-runtime.lovrabet.com','skillhub':a71_0x44e80c(0x174)}},'accessKeyCreatePath':a71_0x44e80c(0x186)};export function productEnvName(_0x392f00){const _0x2b33df=a71_0x44e80c;return PRODUCT_CONFIG[_0x2b33df(0x170)]+'_'+_0x392f00;}export function productEnvNames(_0x29cfa5){const _0x48a2a6=a71_0x44e80c;return[productEnvName(_0x29cfa5),...PRODUCT_CONFIG[_0x48a2a6(0x18a)]['map'](_0x5d084d=>_0x5d084d+'_'+_0x29cfa5)];}export function productEnv(_0x476ffb){for(const _0x51a85f of productEnvNames(_0x476ffb)){const _0x4e661c=process.env[_0x51a85f];if(_0x4e661c!==undefined)return _0x4e661c;}return undefined;}
1
+ function a70_0x5d2e(_0x41afc4,_0x112ab9){_0x41afc4=_0x41afc4-0x1a9;const _0x365d5b=a70_0x365d();let _0x5d2ec7=_0x365d5b[_0x41afc4];return _0x5d2ec7;}const a70_0xcf93d5=a70_0x5d2e;(function(_0x14d586,_0x56c56d){const _0x25d2ce=a70_0x5d2e,_0x1277d4=_0x14d586();while(!![]){try{const _0xbcc7b3=parseInt(_0x25d2ce(0x1ae))/0x1*(-parseInt(_0x25d2ce(0x1c0))/0x2)+parseInt(_0x25d2ce(0x1b5))/0x3*(parseInt(_0x25d2ce(0x1b4))/0x4)+parseInt(_0x25d2ce(0x1be))/0x5*(-parseInt(_0x25d2ce(0x1c2))/0x6)+parseInt(_0x25d2ce(0x1ba))/0x7+-parseInt(_0x25d2ce(0x1c1))/0x8+-parseInt(_0x25d2ce(0x1ad))/0x9+parseInt(_0x25d2ce(0x1bd))/0xa;if(_0xbcc7b3===_0x56c56d)break;else _0x1277d4['push'](_0x1277d4['shift']());}catch(_0x218681){_0x1277d4['push'](_0x1277d4['shift']());}}}(a70_0x365d,0xc634d));export const PRODUCT_CONFIG={'cliBinName':a70_0xcf93d5(0x1b9),'cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':'@lovrabet/lovrabet-cli','skillSource':a70_0xcf93d5(0x1ab),'npmRegistryBaseUrl':a70_0xcf93d5(0x1bb),'envPrefix':a70_0xcf93d5(0x1b1),'legacyEnvPrefixes':[a70_0xcf93d5(0x1b8)],'configFileNames':[a70_0xcf93d5(0x1c5),a70_0xcf93d5(0x1bc)],'newConfigFileName':a70_0xcf93d5(0x1c5),'homeDirName':a70_0xcf93d5(0x1b2),'logFileName':a70_0xcf93d5(0x1aa),'invokeSource':a70_0xcf93d5(0x1b3),'userCenterDisplayName':a70_0xcf93d5(0x1b6),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':a70_0xcf93d5(0x1af),'api':'https://api.lovrabet.com','runtime':a70_0xcf93d5(0x1b0),'skillhub':a70_0xcf93d5(0x1ac)},'nonProduction':{'user':a70_0xcf93d5(0x1c4),'api':a70_0xcf93d5(0x1c6),'runtime':a70_0xcf93d5(0x1bf),'skillhub':a70_0xcf93d5(0x1b7)}},'accessKeyCreatePath':'/user/ak'};function a70_0x365d(){const _0x109e4b=['42ChuVpu','legacyEnvPrefixes','https://user-daily.lovrabet.com','.lovrabet.json','https://daily-api.lovrabet.com','envPrefix','.lovrabet-runtime.log','lovrabet/lovrabet-cli','https://skills.lovrabet.com','4238370iiZPsV','5UigZKa','https://user.lovrabet.com','https://runtime.lovrabet.com','LOVRABET','.lovrabet','cli:lovrabet-runtime','24732APPumM','195nOWWJZ','Lovrabet\x20User\x20Center','https://skills-daily.lovrabet.com','RABETBASE','lovrabet','4827949KATSmc','https://registry.npmjs.org','.lovrabetrc','25545220cSPiEC','458270IMpHkc','https://daily-runtime.lovrabet.com','284396ghPipM','8086184EYFmBo'];a70_0x365d=function(){return _0x109e4b;};return a70_0x365d();}export function productEnvName(_0x28eecf){const _0x241d20=a70_0xcf93d5;return PRODUCT_CONFIG[_0x241d20(0x1a9)]+'_'+_0x28eecf;}export function productEnvNames(_0x337dec){const _0xedd024=a70_0xcf93d5;return[productEnvName(_0x337dec),...PRODUCT_CONFIG[_0xedd024(0x1c3)]['map'](_0x1f5004=>_0x1f5004+'_'+_0x337dec)];}export function productEnv(_0xd2c188){for(const _0x49d862 of productEnvNames(_0xd2c188)){const _0x87e99d=process.env[_0x49d862];if(_0x87e99d!==undefined)return _0x87e99d;}return undefined;}
@@ -1 +1 @@
1
- const a72_0x4f72f9=a72_0x5964;function a72_0x5cd2(){const _0x3394eb=['read','8178240gvBuVF','write','5676300lbmUZm','6880pAbVri','7870185QDSODA','1367esrDKn','1434unZdzZ','2610507BRGTEi','4YRchGd','6892047MPmYBo'];a72_0x5cd2=function(){return _0x3394eb;};return a72_0x5cd2();}function a72_0x5964(_0x59fdc4,_0x1149da){_0x59fdc4=_0x59fdc4-0xb3;const _0x5cd240=a72_0x5cd2();let _0x596472=_0x5cd240[_0x59fdc4];return _0x596472;}(function(_0x53ea56,_0x291741){const _0x248993=a72_0x5964,_0x52b837=_0x53ea56();while(!![]){try{const _0x5f533c=parseInt(_0x248993(0xba))/0x1*(parseInt(_0x248993(0xbb))/0x2)+-parseInt(_0x248993(0xbc))/0x3*(-parseInt(_0x248993(0xbd))/0x4)+-parseInt(_0x248993(0xb9))/0x5+parseInt(_0x248993(0xb7))/0x6+-parseInt(_0x248993(0xb5))/0x7+-parseInt(_0x248993(0xb8))/0x8+parseInt(_0x248993(0xb3))/0x9;if(_0x5f533c===_0x291741)break;else _0x52b837['push'](_0x52b837['shift']());}catch(_0x333e09){_0x52b837['push'](_0x52b837['shift']());}}}(a72_0x5cd2,0xc7eec));export const RISK_LEVEL_VALUES=[a72_0x4f72f9(0xb4),a72_0x4f72f9(0xb6),'high-risk-write'];
1
+ function a71_0x42a1(){const _0x10e8ce=['4627hCUwqv','write','22iMZJlx','8290400swLLLg','77163nGqMki','392201QbIiKD','1395996HdMxoL','7476KrVIAA','4YhHTvH','high-risk-write','1114620ZogCDE','88UcwBTA','24moiaaa','675126mRXrRj'];a71_0x42a1=function(){return _0x10e8ce;};return a71_0x42a1();}const a71_0x555178=a71_0x142c;function a71_0x142c(_0x239b9e,_0x40a3a5){_0x239b9e=_0x239b9e-0x109;const _0x42a1ee=a71_0x42a1();let _0x142c1b=_0x42a1ee[_0x239b9e];return _0x142c1b;}(function(_0x5b35e3,_0x2b2d20){const _0x35559f=a71_0x142c,_0x350d87=_0x5b35e3();while(!![]){try{const _0x12fa8d=parseInt(_0x35559f(0x116))/0x1*(parseInt(_0x35559f(0x10b))/0x2)+-parseInt(_0x35559f(0x115))/0x3*(parseInt(_0x35559f(0x10e))/0x4)+parseInt(_0x35559f(0x10d))/0x5+-parseInt(_0x35559f(0x10a))/0x6*(-parseInt(_0x35559f(0x111))/0x7)+parseInt(_0x35559f(0x10f))/0x8*(parseInt(_0x35559f(0x110))/0x9)+-parseInt(_0x35559f(0x114))/0xa+-parseInt(_0x35559f(0x113))/0xb*(parseInt(_0x35559f(0x109))/0xc);if(_0x12fa8d===_0x2b2d20)break;else _0x350d87['push'](_0x350d87['shift']());}catch(_0x21c28e){_0x350d87['push'](_0x350d87['shift']());}}}(a71_0x42a1,0x68976));export const RISK_LEVEL_VALUES=['read',a71_0x555178(0x112),a71_0x555178(0x10c)];
@@ -1 +1 @@
1
- function a73_0x4cfd(){const _0x395360=['3632004xHEmkI','production','321125KnPTYG','6503aXQhCV','accessKeyCreatePath','40bKxgLS','1080774XQLryZ','5230424hYxllb','1336727UauitR','1391402DDyBmQ','user'];a73_0x4cfd=function(){return _0x395360;};return a73_0x4cfd();}const a73_0x200de8=a73_0x209c;(function(_0x395fd7,_0x4980a4){const _0x58a3a3=a73_0x209c,_0x52e673=_0x395fd7();while(!![]){try{const _0x2ae180=parseInt(_0x58a3a3(0x1aa))/0x1+-parseInt(_0x58a3a3(0x1ab))/0x2+parseInt(_0x58a3a3(0x1ad))/0x3+-parseInt(_0x58a3a3(0x1a9))/0x4+parseInt(_0x58a3a3(0x1af))/0x5+parseInt(_0x58a3a3(0x1a8))/0x6+parseInt(_0x58a3a3(0x1a5))/0x7*(parseInt(_0x58a3a3(0x1a7))/0x8);if(_0x2ae180===_0x4980a4)break;else _0x52e673['push'](_0x52e673['shift']());}catch(_0x10ae02){_0x52e673['push'](_0x52e673['shift']());}}}(a73_0x4cfd,0xc19ff));import{PRODUCT_CONFIG}from'../constant/product.js';function a73_0x209c(_0x40ba5c,_0x3d333f){_0x40ba5c=_0x40ba5c-0x1a5;const _0x4cfdb6=a73_0x4cfd();let _0x209cb7=_0x4cfdb6[_0x40ba5c];return _0x209cb7;}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG['domains'][a73_0x200de8(0x1ae)][a73_0x200de8(0x1ac)]+PRODUCT_CONFIG[a73_0x200de8(0x1a6)];
1
+ function a72_0x4dbb(_0x54d382,_0x186349){_0x54d382=_0x54d382-0x68;const _0x33ab6a=a72_0x33ab();let _0x4dbbd0=_0x33ab6a[_0x54d382];return _0x4dbbd0;}const a72_0x1e7739=a72_0x4dbb;(function(_0x7948ae,_0x357738){const _0xfac15c=a72_0x4dbb,_0x26f928=_0x7948ae();while(!![]){try{const _0x2af1b3=parseInt(_0xfac15c(0x74))/0x1+parseInt(_0xfac15c(0x6d))/0x2*(-parseInt(_0xfac15c(0x6f))/0x3)+-parseInt(_0xfac15c(0x6a))/0x4+parseInt(_0xfac15c(0x71))/0x5+-parseInt(_0xfac15c(0x72))/0x6*(parseInt(_0xfac15c(0x6c))/0x7)+-parseInt(_0xfac15c(0x75))/0x8*(-parseInt(_0xfac15c(0x6b))/0x9)+-parseInt(_0xfac15c(0x73))/0xa;if(_0x2af1b3===_0x357738)break;else _0x26f928['push'](_0x26f928['shift']());}catch(_0xb2ab90){_0x26f928['push'](_0x26f928['shift']());}}}(a72_0x33ab,0xa592a));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a72_0x1e7739(0x70)][a72_0x1e7739(0x6e)][a72_0x1e7739(0x69)]+PRODUCT_CONFIG[a72_0x1e7739(0x68)];function a72_0x33ab(){const _0x3ec8c8=['1107641yucdpv','9625192UhgUjr','accessKeyCreatePath','user','1669968HrQlAF','9RdARXE','18284JVvKKp','170636BvAJrl','production','33mjPAEI','domains','6706250whFHCC','3048HfhWJx','2909680fTRybc'];a72_0x33ab=function(){return _0x3ec8c8;};return a72_0x33ab();}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a74_0x4cfa1f=a74_0x1e52;(function(_0x300e81,_0x3f840f){const _0x484998=a74_0x1e52,_0x31c833=_0x300e81();while(!![]){try{const _0x3de05c=-parseInt(_0x484998(0x156))/0x1+-parseInt(_0x484998(0x159))/0x2+-parseInt(_0x484998(0x175))/0x3*(-parseInt(_0x484998(0x18c))/0x4)+-parseInt(_0x484998(0x158))/0x5+-parseInt(_0x484998(0x168))/0x6+-parseInt(_0x484998(0x17f))/0x7+parseInt(_0x484998(0x187))/0x8;if(_0x3de05c===_0x3f840f)break;else _0x31c833['push'](_0x31c833['shift']());}catch(_0x1d0d07){_0x31c833['push'](_0x31c833['shift']());}}}(a74_0x1155,0xb5d17));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[a74_0x4cfa1f(0x193)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a74_0x4cfa1f(0x15d)];function resolveConfigPath(_0x145218){for(const _0x3fea45 of CONFIG_NAMES){const _0x8ec8c9=resolve(_0x145218,_0x3fea45);if(existsSync(_0x8ec8c9))return _0x8ec8c9;}return undefined;}export function resolveWriteConfigPath(_0x4c7245){const _0x4ce9a5=a74_0x4cfa1f,_0xebeaa1=_0x4c7245===_0x4ce9a5(0x17a)?process[_0x4ce9a5(0x161)]():homedir(),_0x5bb1ec=resolveConfigPath(_0xebeaa1);return _0x5bb1ec??resolve(_0xebeaa1,NEW_CONFIG_NAME);}export function readConfigFile(_0x19bb4f){const _0x1aba71=a74_0x4cfa1f;try{if(existsSync(_0x19bb4f)){const _0x39ec4c=readFileSync(_0x19bb4f,{'encoding':_0x1aba71(0x174)});if(_0x39ec4c){const _0x3b77d1=JSON[_0x1aba71(0x179)](_0x39ec4c);return migrateOnlineEnv(_0x19bb4f,_0x3b77d1),_0x3b77d1;}}}catch{}return{};}function migrateOnlineEnv(_0x56232e,_0x455fd8){const _0x26d91b=a74_0x4cfa1f;let _0xc1f166=![];_0x455fd8['env']==='online'&&(_0x455fd8['env']=_0x26d91b(0x18d),_0xc1f166=!![]);if(_0x455fd8[_0x26d91b(0x17c)]&&typeof _0x455fd8[_0x26d91b(0x17c)]===_0x26d91b(0x190))for(const _0x24a629 of Object[_0x26d91b(0x189)](_0x455fd8['apps'])){_0x24a629&&_0x24a629[_0x26d91b(0x154)]==='online'&&(_0x24a629[_0x26d91b(0x154)]=_0x26d91b(0x18d),_0xc1f166=!![]);}if(_0xc1f166)try{writeConfigFile(_0x56232e,_0x455fd8);}catch{}}export function writeConfigFile(_0xafa19c,_0x15de57){const _0x102262=a74_0x4cfa1f,_0x349f23=dirname(_0xafa19c);!existsSync(_0x349f23)&&mkdirSync(_0x349f23,{'recursive':!![]});const _0x24bfe0=_0xafa19c+_0x102262(0x152);try{writeFileSync(_0x24bfe0,JSON[_0x102262(0x17e)](_0x15de57,null,0x2)+'\x0a',{'encoding':_0x102262(0x174),'mode':0x180});try{renameSync(_0x24bfe0,_0xafa19c);}catch(_0x44e76a){if(_0x44e76a[_0x102262(0x180)]===_0x102262(0x186)||_0x44e76a[_0x102262(0x180)]===_0x102262(0x191)||_0x44e76a[_0x102262(0x180)]===_0x102262(0x15f)){writeFileSync(_0xafa19c,JSON[_0x102262(0x17e)](_0x15de57,null,0x2)+'\x0a',{'encoding':_0x102262(0x174)});try{unlinkSync(_0x24bfe0);}catch{}}else throw _0x44e76a;}}catch(_0x320be9){try{unlinkSync(_0x24bfe0);}catch{}throw _0x320be9;}}export function isNonInteractiveMode(_0x42116b){const _0x130117=a74_0x4cfa1f;return!!(_0x42116b['nonInteractive']||_0x42116b['ci']||productEnvNames('CI')[_0x130117(0x162)](_0x685d06=>process.env[_0x685d06]==='true')||process.env.CI==='true'||!process['stdout'][_0x130117(0x166)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x23618e=a74_0x4cfa1f;if(!process[_0x23618e(0x160)][_0x23618e(0x166)])return![];try{const _0x45680c=process['stdin'][_0x23618e(0x16d)];return process[_0x23618e(0x160)]['setRawMode'](!![]),process[_0x23618e(0x160)][_0x23618e(0x16c)](_0x45680c??![]),!![];}catch{return![];}}export async function createContext(_0x1b09be){const _0xceb6c9=a74_0x4cfa1f,_0x8c5366=readRawConfig(),_0x14d633=buildConfig(_0x8c5366,_0x1b09be);await initGlobalEnvironment(_0x14d633);const {getUserDomain:_0x3c3b2b,getApiDomain:_0x17fca8}=await import('./constant/domain.js'),_0x1cda0d={'apiDomain':_0x17fca8(),'userDomain':_0x3c3b2b()},_0x461719=await buildAuth(_0x14d633);logger[_0xceb6c9(0x170)](process['cwd']());const _0x2cb496=(CLI_BIN_NAME+'\x20'+process[_0xceb6c9(0x183)][_0xceb6c9(0x164)](0x2)['join']('\x20'))['trim']();logger[_0xceb6c9(0x17b)](_0x2cb496);const _0x5bfb70=isNonInteractiveMode(_0x1b09be);return{'config':_0x14d633,'auth':_0x461719,'logger':logger,'env':_0x1cda0d,'nonInteractive':_0x5bfb70};}export function buildConfigFromFlags(_0x4c197e){return buildConfig(readRawConfig(),_0x4c197e);}export function getLocalAppAliases(_0x482a77){const _0x34e3fb=a74_0x4cfa1f;return _0x482a77['apps']&&typeof _0x482a77['apps']===_0x34e3fb(0x190)?_0x482a77[_0x34e3fb(0x17c)]:{};}export function resolveLocalAppAliasCode(_0x1c2508,_0x236d06){const _0x4f1529=a74_0x4cfa1f;if(!_0x236d06)return undefined;const _0x5717e9=getLocalAppAliases(_0x1c2508)[_0x236d06],_0x57b134=_0x5717e9?.[_0x4f1529(0x176)];return typeof _0x57b134===_0x4f1529(0x16f)&&_0x57b134[_0x4f1529(0x184)]()?_0x57b134[_0x4f1529(0x184)]():undefined;}export function readAppCodeFromConfig(){const _0x31d266=a74_0x4cfa1f,_0x1f29b8=readRawConfig(),_0x229179=_0x1f29b8['appcode']??_0x1f29b8[_0x31d266(0x173)];if(typeof _0x229179===_0x31d266(0x16f)&&_0x229179['trim']())return _0x229179['trim']();const _0x197aed=resolveLocalAppAliasCode(_0x1f29b8,typeof _0x1f29b8[_0x31d266(0x16e)]===_0x31d266(0x16f)?_0x1f29b8[_0x31d266(0x16e)]:undefined);if(_0x197aed)return _0x197aed;const _0x168347=normalizeEnv(String(_0x1f29b8[_0x31d266(0x154)]||_0x31d266(0x18d))),_0x18736d=isDaily(_0x168347)?_0x31d266(0x153):isDev(_0x168347)?'development':_0x31d266(0x18d),_0xf44fe9=resolveCachedAppCode(typeof _0x1f29b8[_0x31d266(0x16e)]==='string'?_0x1f29b8['defaultApp']:undefined,_0x18736d,typeof _0x1f29b8[_0x31d266(0x177)]===_0x31d266(0x16f)?_0x1f29b8[_0x31d266(0x177)]:undefined);if(_0xf44fe9)return _0xf44fe9;const _0x6d2aaa=Object[_0x31d266(0x189)](getLocalAppAliases(_0x1f29b8))[_0x31d266(0x16b)](_0x1407fe=>_0x1407fe?.[_0x31d266(0x176)]);return typeof _0x6d2aaa?.['appcode']===_0x31d266(0x16f)&&_0x6d2aaa[_0x31d266(0x176)][_0x31d266(0x184)]()?_0x6d2aaa[_0x31d266(0x176)][_0x31d266(0x184)]():undefined;}export function readScopedConfig(_0x556f4c){const _0x323096=a74_0x4cfa1f,_0x500422=_0x556f4c[_0x323096(0x14f)]?_0x323096(0x14f):_0x323096(0x17a);return readConfigFile(resolveWriteConfigPath(_0x500422));}export function writeScopedConfig(_0x5de1d1,_0x25e828){const _0x1601ac=a74_0x4cfa1f,_0x58bae7=_0x25e828['global']?_0x1601ac(0x14f):_0x1601ac(0x17a);writeConfigFile(resolveWriteConfigPath(_0x58bae7),_0x5de1d1);}export async function initGlobalEnvironment(_0x164e1a){const _0x3e6d8e=a74_0x4cfa1f,{initEnv:_0xe97fcc}=await import(_0x3e6d8e(0x192));_0xe97fcc(_0x164e1a['env']);const {initDomains:_0x1f11d1}=await import(_0x3e6d8e(0x15e));_0x1f11d1({'apiDomain':_0x164e1a['raw'][_0x3e6d8e(0x182)]||_0x164e1a[_0x3e6d8e(0x167)][_0x3e6d8e(0x185)]||undefined,'userDomain':_0x164e1a['raw'][_0x3e6d8e(0x14e)]||undefined,'runtimeDomain':_0x164e1a[_0x3e6d8e(0x167)]['runtimeDomain']||undefined,'skillHubDomain':_0x164e1a[_0x3e6d8e(0x167)][_0x3e6d8e(0x150)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x57935c){const _0x308ffe=a74_0x4cfa1f;if(!existsSync(_0x57935c))return{'status':_0x308ffe(0x15c)};try{const _0x4f60d8=readFileSync(_0x57935c,{'encoding':'utf8'});if(!_0x4f60d8?.[_0x308ffe(0x184)]())return{'status':_0x308ffe(0x16a)};const _0xdb624d=JSON[_0x308ffe(0x179)](_0x4f60d8);return{'status':'ok','data':_0xdb624d};}catch(_0x42814b){return{'status':'error','message':_0x42814b instanceof Error?_0x42814b[_0x308ffe(0x17d)]:String(_0x42814b)};}}export function loadRawConfigLayers(_0x10ff12){const _0x2efd56=a74_0x4cfa1f;let _0xc4e61f={},_0x250841={},_0xae65f2,_0x357683;try{_0xae65f2=resolveConfigPath(homedir());if(_0xae65f2){const _0x2756eb=readFileSync(_0xae65f2,{'encoding':'utf8'});if(_0x2756eb)_0xc4e61f=JSON['parse'](_0x2756eb);}}catch{}try{const _0x39d974=_0x10ff12||process['cwd']();_0x357683=resolveConfigPath(_0x39d974);if(_0x357683){const _0x3fa883=readFileSync(_0x357683,{'encoding':_0x2efd56(0x174)});if(_0x3fa883)_0x250841=JSON[_0x2efd56(0x179)](_0x3fa883);}}catch{}return{'globalPath':_0xae65f2,'projectPath':_0x357683,'globalConfig':_0xc4e61f,'projectConfig':_0x250841};}function a74_0x1155(){const _0x5a99ab=['some','maxRisk','slice','inherit','isTTY','raw','3817032azgJbG','top-level','empty','find','setRawMode','isRaw','defaultApp','string','setLogPath','high-risk-write','explicit','app','utf8','25911vlZBwm','appcode','accessKey','FORMAT','parse','project','setRawCommand','apps','message','stringify','8848665KjVZmH','code','ACCESS_KEY','apiDomain','argv','trim','host','EPERM','28691632SAekmx','locale','values','true','write','556DHnXbA','production','format','globalConfig','object','EXDEV','./constant/env.js','configFileNames','projectConfig','APPCODE','userDomain','global','skillHubDomain','PAGE_SIZE','.tmp','daily','env','development','952064VadGyQ','local-alias','1885090JRFbVj','1625842zwEyea','authRequired','cache','missing','newConfigFileName','./constant/domain.js','EACCES','stdin','cwd'];a74_0x1155=function(){return _0x5a99ab;};return a74_0x1155();}function mergeRawConfigLayers(_0x2b8e38){const _0x1bad2b=a74_0x4cfa1f,{globalConfig:_0x42f995,projectConfig:_0x1a46e6}=_0x2b8e38;if(_0x1a46e6[_0x1bad2b(0x165)]===![]){const _0x4ec538={..._0x1a46e6};return delete _0x4ec538[_0x1bad2b(0x165)],_0x4ec538;}const _0x5301cd={..._0x42f995,..._0x1a46e6};if(_0x1bad2b(0x16e)in _0x1a46e6)_0x5301cd[_0x1bad2b(0x16e)]=_0x1a46e6[_0x1bad2b(0x16e)];else _0x42f995[_0x1bad2b(0x16e)]&&(_0x5301cd[_0x1bad2b(0x16e)]=_0x42f995['defaultApp']);return _0x5301cd;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x3e3e54){return mergeRawConfigLayers(loadRawConfigLayers(_0x3e3e54));}export function readRawConfigWithLayers(_0x1a9d77){const _0x1acd35=loadRawConfigLayers(_0x1a9d77);return{'config':mergeRawConfigLayers(_0x1acd35),'layers':_0x1acd35};}export function resolveDefaultAppSource(_0x36ae17){const _0x5efb55=a74_0x4cfa1f;if('defaultApp'in _0x36ae17[_0x5efb55(0x194)])return _0x5efb55(0x17a);if(_0x36ae17['projectConfig']['inherit']===![])return null;if(_0x36ae17[_0x5efb55(0x18f)][_0x5efb55(0x16e)])return'global';return null;}function a74_0x1e52(_0x451c34,_0x4dfc8c){_0x451c34=_0x451c34-0x14d;const _0x1155aa=a74_0x1155();let _0x1e5294=_0x1155aa[_0x451c34];return _0x1e5294;}function buildConfig(_0x293887,_0x59d9e1){const _0x335ead=a74_0x4cfa1f,_0xa4c1c1=_0x293887[_0x335ead(0x16e)]||undefined,_0x38b56e=_0x59d9e1[_0x335ead(0x173)]||env('APP')||undefined,_0x48b423=_0x38b56e||_0xa4c1c1||undefined,_0x38c122=env(_0x335ead(0x181))||_0x293887[_0x335ead(0x177)]||undefined,_0x30515d=_0x59d9e1[_0x335ead(0x154)]||env('ENV')||_0x293887[_0x335ead(0x154)]||DEFAULT_CONFIG_VALUES[_0x335ead(0x154)],_0x207a94=normalizeEnv(String(_0x30515d)),_0x69908a=isDaily(_0x207a94)?_0x335ead(0x153):isDev(_0x207a94)?_0x335ead(0x155):_0x335ead(0x18d),_0x597c82=typeof _0x59d9e1[_0x335ead(0x176)]==='string'?_0x59d9e1['appcode']:undefined,_0x29b44e=env(_0x335ead(0x14d)),_0x4eacc1=_0x38b56e?undefined:_0x293887['appcode']||_0x293887[_0x335ead(0x173)]||undefined,_0x64fb41=_0x38b56e||(_0x4eacc1?undefined:_0xa4c1c1),_0x8b22cf=resolveLocalAppAliasCode(_0x293887,_0x64fb41),_0x5d95ab=resolveCachedAppCode(_0x64fb41,_0x69908a,_0x38c122),_0x3a5c82=_0x597c82||_0x29b44e||_0x4eacc1||_0x8b22cf||_0x5d95ab||undefined,_0x1b2546=_0x597c82?_0x335ead(0x172):_0x29b44e?_0x335ead(0x154):_0x4eacc1?_0x335ead(0x169):_0x8b22cf?_0x335ead(0x157):_0x5d95ab?_0x335ead(0x15b):undefined,_0x11b8b9=_0x293887[_0x335ead(0x188)]||DEFAULT_CONFIG_VALUES[_0x335ead(0x188)],_0x1cd01d=undefined,_0x3a6681=_0x59d9e1[_0x335ead(0x18e)]||env(_0x335ead(0x178))||_0x293887['format'],_0x573cfc=normalizeLegacyOutputFormat(_0x3a6681),_0x54508b=env(_0x335ead(0x151))||_0x293887['pageSize'],_0x35f958=_0x54508b?Number(_0x54508b)||undefined:undefined,_0xef2326=_0x293887['riskLevel']||_0x293887[_0x335ead(0x163)],_0x20c9b9=_0xef2326==='read'||_0xef2326===_0x335ead(0x18b)||_0xef2326===_0x335ead(0x171)?_0xef2326:DEFAULT_CONFIG_VALUES['riskLevel'],_0x48c77b=env('VERBOSE'),_0x185f4f=_0x48c77b==='1'||_0x48c77b===_0x335ead(0x18a);return{'appCode':typeof _0x3a5c82===_0x335ead(0x16f)&&_0x3a5c82[_0x335ead(0x184)]()?_0x3a5c82[_0x335ead(0x184)]():undefined,'appCodeSource':_0x1b2546,'env':_0x69908a,'locale':_0x11b8b9,'cookie':_0x1cd01d,'accessKey':_0x38c122,'format':_0x573cfc,'pageSize':_0x35f958,'riskLevel':_0x20c9b9,'verbose':_0x185f4f,'defaultApp':_0xa4c1c1,'currentApp':typeof _0x48b423===_0x335ead(0x16f)?_0x48b423:undefined,'raw':_0x293887};}function env(_0x103833){return productEnv(_0x103833);}async function buildAuth(_0x2ad18e){const _0x168d7e=a74_0x4cfa1f,_0x1c8858='',_0x27e044=!!_0x2ad18e[_0x168d7e(0x177)];return{'cookie':_0x1c8858,'isLoggedIn':_0x27e044,async 'getOrLogin'(){const _0x1966fc=_0x168d7e;if(_0x27e044)return _0x1c8858;throw CliErrors[_0x1966fc(0x15a)]();}};}
1
+ const a73_0x28226d=a73_0x132d;(function(_0x3f156f,_0x25539a){const _0x1ff2e4=a73_0x132d,_0x589c59=_0x3f156f();while(!![]){try{const _0x304b6a=-parseInt(_0x1ff2e4(0xa7))/0x1*(-parseInt(_0x1ff2e4(0x6c))/0x2)+parseInt(_0x1ff2e4(0x8f))/0x3*(parseInt(_0x1ff2e4(0x77))/0x4)+parseInt(_0x1ff2e4(0x9a))/0x5+-parseInt(_0x1ff2e4(0x6f))/0x6*(-parseInt(_0x1ff2e4(0xa6))/0x7)+parseInt(_0x1ff2e4(0xa0))/0x8+-parseInt(_0x1ff2e4(0x6a))/0x9+-parseInt(_0x1ff2e4(0x93))/0xa;if(_0x304b6a===_0x25539a)break;else _0x589c59['push'](_0x589c59['shift']());}catch(_0x454b08){_0x589c59['push'](_0x589c59['shift']());}}}(a73_0x3d47,0xdc86d));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';function a73_0x132d(_0xe2bbc1,_0x35d199){_0xe2bbc1=_0xe2bbc1-0x64;const _0x3d47ed=a73_0x3d47();let _0x132d5c=_0x3d47ed[_0xe2bbc1];return _0x132d5c;}import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';function a73_0x3d47(){const _0x39ba7c=['./constant/domain.js','setRawMode','125708iDZvjN','object','join','local-alias','isTTY','setRawCommand','./constant/env.js','message','string','find','host','nonInteractive','global','APP','pageSize','some','accessKey','newConfigFileName','ENV','utf8','EACCES','code','high-risk-write','empty','129IVNDll','missing','projectConfig','userDomain','46868810OPCzDk','cwd','slice','authRequired','read','project','format','6832550JVfYbj','values','EPERM','raw','stdin','true','6510104zBaQMj','appcode','locale','argv','production','online','119xZSRgI','65833skDDjE','isRaw','FORMAT','apiDomain','app','explicit','maxRisk','ACCESS_KEY','.tmp','VERBOSE','trim','inherit','defaultApp','globalConfig','2322045LjhXCh','development','28CwDbUA','apps','skillHubDomain','492306dLjMdv','env','setLogPath','parse','PAGE_SIZE','cache'];a73_0x3d47=function(){return _0x39ba7c;};return a73_0x3d47();}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_0x28226d(0x88)];function resolveConfigPath(_0x311b9c){for(const _0x5b89af of CONFIG_NAMES){const _0x45a5c4=resolve(_0x311b9c,_0x5b89af);if(existsSync(_0x45a5c4))return _0x45a5c4;}return undefined;}export function resolveWriteConfigPath(_0x887a03){const _0x341cd0=a73_0x28226d,_0x1d58cd=_0x887a03===_0x341cd0(0x98)?process[_0x341cd0(0x94)]():homedir(),_0x34e3a0=resolveConfigPath(_0x1d58cd);return _0x34e3a0??resolve(_0x1d58cd,NEW_CONFIG_NAME);}export function readConfigFile(_0xabe696){const _0x5a9b1e=a73_0x28226d;try{if(existsSync(_0xabe696)){const _0x58bf8b=readFileSync(_0xabe696,{'encoding':_0x5a9b1e(0x8a)});if(_0x58bf8b){const _0x3f5cf2=JSON[_0x5a9b1e(0x72)](_0x58bf8b);return migrateOnlineEnv(_0xabe696,_0x3f5cf2),_0x3f5cf2;}}}catch{}return{};}function migrateOnlineEnv(_0x488681,_0x263079){const _0x4f0944=a73_0x28226d;let _0x476de2=![];_0x263079['env']===_0x4f0944(0xa5)&&(_0x263079[_0x4f0944(0x70)]=_0x4f0944(0xa4),_0x476de2=!![]);if(_0x263079[_0x4f0944(0x6d)]&&typeof _0x263079[_0x4f0944(0x6d)]===_0x4f0944(0x78))for(const _0x553616 of Object[_0x4f0944(0x9b)](_0x263079['apps'])){_0x553616&&_0x553616['env']==='online'&&(_0x553616['env']=_0x4f0944(0xa4),_0x476de2=!![]);}if(_0x476de2)try{writeConfigFile(_0x488681,_0x263079);}catch{}}export function writeConfigFile(_0x1575eb,_0x14cb75){const _0x274047=a73_0x28226d,_0x481038=dirname(_0x1575eb);!existsSync(_0x481038)&&mkdirSync(_0x481038,{'recursive':!![]});const _0x2bda1e=_0x1575eb+_0x274047(0x64);try{writeFileSync(_0x2bda1e,JSON['stringify'](_0x14cb75,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x2bda1e,_0x1575eb);}catch(_0x27be31){if(_0x27be31[_0x274047(0x8c)]===_0x274047(0x9c)||_0x27be31['code']==='EXDEV'||_0x27be31['code']===_0x274047(0x8b)){writeFileSync(_0x1575eb,JSON['stringify'](_0x14cb75,null,0x2)+'\x0a',{'encoding':_0x274047(0x8a)});try{unlinkSync(_0x2bda1e);}catch{}}else throw _0x27be31;}}catch(_0x4b6e73){try{unlinkSync(_0x2bda1e);}catch{}throw _0x4b6e73;}}export function isNonInteractiveMode(_0x9ea2bb){const _0x53d90a=a73_0x28226d;return!!(_0x9ea2bb[_0x53d90a(0x82)]||_0x9ea2bb['ci']||productEnvNames('CI')[_0x53d90a(0x86)](_0x483250=>process.env[_0x483250]===_0x53d90a(0x9f))||process.env.CI===_0x53d90a(0x9f)||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x2c8399=a73_0x28226d;if(!process['stdin'][_0x2c8399(0x7b)])return![];try{const _0x3f5de9=process[_0x2c8399(0x9e)][_0x2c8399(0xa8)];return process['stdin'][_0x2c8399(0x76)](!![]),process[_0x2c8399(0x9e)][_0x2c8399(0x76)](_0x3f5de9??![]),!![];}catch{return![];}}export async function createContext(_0x16e235){const _0xc16e40=a73_0x28226d,_0x75f7=readRawConfig(),_0x2cf712=buildConfig(_0x75f7,_0x16e235);await initGlobalEnvironment(_0x2cf712);const {getUserDomain:_0x292773,getApiDomain:_0x2d8ba1}=await import(_0xc16e40(0x75)),_0x1b7d6d={'apiDomain':_0x2d8ba1(),'userDomain':_0x292773()},_0x5c5a4d=await buildAuth(_0x2cf712);logger[_0xc16e40(0x71)](process[_0xc16e40(0x94)]());const _0x19b1e3=(CLI_BIN_NAME+'\x20'+process[_0xc16e40(0xa3)][_0xc16e40(0x95)](0x2)[_0xc16e40(0x79)]('\x20'))[_0xc16e40(0x66)]();logger[_0xc16e40(0x7c)](_0x19b1e3);const _0x21526d=isNonInteractiveMode(_0x16e235);return{'config':_0x2cf712,'auth':_0x5c5a4d,'logger':logger,'env':_0x1b7d6d,'nonInteractive':_0x21526d};}export function buildConfigFromFlags(_0x40205f){return buildConfig(readRawConfig(),_0x40205f);}export function getLocalAppAliases(_0x4359fb){const _0x3efedf=a73_0x28226d;return _0x4359fb['apps']&&typeof _0x4359fb[_0x3efedf(0x6d)]===_0x3efedf(0x78)?_0x4359fb['apps']:{};}export function resolveLocalAppAliasCode(_0x13c3d2,_0x5e89a4){const _0x1c855a=a73_0x28226d;if(!_0x5e89a4)return undefined;const _0x47aec3=getLocalAppAliases(_0x13c3d2)[_0x5e89a4],_0x407d63=_0x47aec3?.[_0x1c855a(0xa1)];return typeof _0x407d63===_0x1c855a(0x7f)&&_0x407d63[_0x1c855a(0x66)]()?_0x407d63['trim']():undefined;}export function readAppCodeFromConfig(){const _0x2641e3=a73_0x28226d,_0x17ac42=readRawConfig(),_0x2adb7a=_0x17ac42[_0x2641e3(0xa1)]??_0x17ac42[_0x2641e3(0xab)];if(typeof _0x2adb7a===_0x2641e3(0x7f)&&_0x2adb7a[_0x2641e3(0x66)]())return _0x2adb7a[_0x2641e3(0x66)]();const _0x818534=resolveLocalAppAliasCode(_0x17ac42,typeof _0x17ac42['defaultApp']===_0x2641e3(0x7f)?_0x17ac42['defaultApp']:undefined);if(_0x818534)return _0x818534;const _0x5e02d1=normalizeEnv(String(_0x17ac42[_0x2641e3(0x70)]||_0x2641e3(0xa4))),_0x10b5a3=isDaily(_0x5e02d1)?'daily':isDev(_0x5e02d1)?_0x2641e3(0x6b):_0x2641e3(0xa4),_0x436bf9=resolveCachedAppCode(typeof _0x17ac42[_0x2641e3(0x68)]===_0x2641e3(0x7f)?_0x17ac42[_0x2641e3(0x68)]:undefined,_0x10b5a3,typeof _0x17ac42['accessKey']===_0x2641e3(0x7f)?_0x17ac42[_0x2641e3(0x87)]:undefined);if(_0x436bf9)return _0x436bf9;const _0x5ec4de=Object[_0x2641e3(0x9b)](getLocalAppAliases(_0x17ac42))[_0x2641e3(0x80)](_0xe72c1b=>_0xe72c1b?.['appcode']);return typeof _0x5ec4de?.[_0x2641e3(0xa1)]==='string'&&_0x5ec4de['appcode'][_0x2641e3(0x66)]()?_0x5ec4de['appcode'][_0x2641e3(0x66)]():undefined;}export function readScopedConfig(_0x2b3def){const _0x15d1ae=a73_0x28226d,_0x2768d1=_0x2b3def[_0x15d1ae(0x83)]?_0x15d1ae(0x83):'project';return readConfigFile(resolveWriteConfigPath(_0x2768d1));}export function writeScopedConfig(_0x8bb7a2,_0x47f91d){const _0x11e6fd=a73_0x28226d,_0x4e84ea=_0x47f91d[_0x11e6fd(0x83)]?'global':_0x11e6fd(0x98);writeConfigFile(resolveWriteConfigPath(_0x4e84ea),_0x8bb7a2);}export async function initGlobalEnvironment(_0x3c6bc5){const _0xe6a3ee=a73_0x28226d,{initEnv:_0x11844f}=await import(_0xe6a3ee(0x7d));_0x11844f(_0x3c6bc5[_0xe6a3ee(0x70)]);const {initDomains:_0x1c0ada}=await import('./constant/domain.js');_0x1c0ada({'apiDomain':_0x3c6bc5['raw'][_0xe6a3ee(0xaa)]||_0x3c6bc5[_0xe6a3ee(0x9d)][_0xe6a3ee(0x81)]||undefined,'userDomain':_0x3c6bc5[_0xe6a3ee(0x9d)][_0xe6a3ee(0x92)]||undefined,'runtimeDomain':_0x3c6bc5[_0xe6a3ee(0x9d)]['runtimeDomain']||undefined,'skillHubDomain':_0x3c6bc5[_0xe6a3ee(0x9d)][_0xe6a3ee(0x6e)]||undefined});}export function getProjectConfigPath(){const _0x51546d=a73_0x28226d;return resolveConfigPath(process[_0x51546d(0x94)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x27d5be){const _0x4cee6a=a73_0x28226d;if(!existsSync(_0x27d5be))return{'status':_0x4cee6a(0x90)};try{const _0x4686a8=readFileSync(_0x27d5be,{'encoding':'utf8'});if(!_0x4686a8?.[_0x4cee6a(0x66)]())return{'status':_0x4cee6a(0x8e)};const _0x25cd58=JSON[_0x4cee6a(0x72)](_0x4686a8);return{'status':'ok','data':_0x25cd58};}catch(_0x2052c){return{'status':'error','message':_0x2052c instanceof Error?_0x2052c[_0x4cee6a(0x7e)]:String(_0x2052c)};}}export function loadRawConfigLayers(_0x4d2707){const _0x1b326a=a73_0x28226d;let _0x1d8c19={},_0x4d10b4={},_0x4d53ac,_0x17d8e1;try{_0x4d53ac=resolveConfigPath(homedir());if(_0x4d53ac){const _0x6e0b8d=readFileSync(_0x4d53ac,{'encoding':_0x1b326a(0x8a)});if(_0x6e0b8d)_0x1d8c19=JSON[_0x1b326a(0x72)](_0x6e0b8d);}}catch{}try{const _0x466d77=_0x4d2707||process[_0x1b326a(0x94)]();_0x17d8e1=resolveConfigPath(_0x466d77);if(_0x17d8e1){const _0x377931=readFileSync(_0x17d8e1,{'encoding':'utf8'});if(_0x377931)_0x4d10b4=JSON[_0x1b326a(0x72)](_0x377931);}}catch{}return{'globalPath':_0x4d53ac,'projectPath':_0x17d8e1,'globalConfig':_0x1d8c19,'projectConfig':_0x4d10b4};}function mergeRawConfigLayers(_0x16d5ba){const _0x3d99d7=a73_0x28226d,{globalConfig:_0x5af579,projectConfig:_0x4fb086}=_0x16d5ba;if(_0x4fb086[_0x3d99d7(0x67)]===![]){const _0x27be89={..._0x4fb086};return delete _0x27be89[_0x3d99d7(0x67)],_0x27be89;}const _0x1391fe={..._0x5af579,..._0x4fb086};if(_0x3d99d7(0x68)in _0x4fb086)_0x1391fe[_0x3d99d7(0x68)]=_0x4fb086[_0x3d99d7(0x68)];else _0x5af579['defaultApp']&&(_0x1391fe[_0x3d99d7(0x68)]=_0x5af579[_0x3d99d7(0x68)]);return _0x1391fe;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x991f8f){return mergeRawConfigLayers(loadRawConfigLayers(_0x991f8f));}export function readRawConfigWithLayers(_0x4f31c8){const _0x3df23b=loadRawConfigLayers(_0x4f31c8);return{'config':mergeRawConfigLayers(_0x3df23b),'layers':_0x3df23b};}export function resolveDefaultAppSource(_0x137546){const _0x5c8362=a73_0x28226d;if('defaultApp'in _0x137546[_0x5c8362(0x91)])return _0x5c8362(0x98);if(_0x137546['projectConfig'][_0x5c8362(0x67)]===![])return null;if(_0x137546[_0x5c8362(0x69)]['defaultApp'])return _0x5c8362(0x83);return null;}function buildConfig(_0x2035ae,_0x572e5d){const _0xa755c5=a73_0x28226d,_0x454114=_0x2035ae[_0xa755c5(0x68)]||undefined,_0x3c762b=_0x572e5d['app']||env(_0xa755c5(0x84))||undefined,_0x42e6cc=_0x3c762b||_0x454114||undefined,_0x3bea1a=env(_0xa755c5(0xae))||_0x2035ae[_0xa755c5(0x87)]||undefined,_0xbdb85f=_0x572e5d[_0xa755c5(0x70)]||env(_0xa755c5(0x89))||_0x2035ae[_0xa755c5(0x70)]||DEFAULT_CONFIG_VALUES['env'],_0x167365=normalizeEnv(String(_0xbdb85f)),_0x1a6aff=isDaily(_0x167365)?'daily':isDev(_0x167365)?_0xa755c5(0x6b):_0xa755c5(0xa4),_0x28bf65=typeof _0x572e5d['appcode']==='string'?_0x572e5d['appcode']:undefined,_0x3df023=env('APPCODE'),_0x3e768f=_0x3c762b?undefined:_0x2035ae['appcode']||_0x2035ae[_0xa755c5(0xab)]||undefined,_0x34dad7=_0x3c762b||(_0x3e768f?undefined:_0x454114),_0x14fdaa=resolveLocalAppAliasCode(_0x2035ae,_0x34dad7),_0x2c05d1=resolveCachedAppCode(_0x34dad7,_0x1a6aff,_0x3bea1a),_0x3fac9e=_0x28bf65||_0x3df023||_0x3e768f||_0x14fdaa||_0x2c05d1||undefined,_0x527cd4=_0x28bf65?_0xa755c5(0xac):_0x3df023?'env':_0x3e768f?'top-level':_0x14fdaa?_0xa755c5(0x7a):_0x2c05d1?_0xa755c5(0x74):undefined,_0x438209=_0x2035ae[_0xa755c5(0xa2)]||DEFAULT_CONFIG_VALUES['locale'],_0xb497ce=undefined,_0x480b9c=_0x572e5d[_0xa755c5(0x99)]||env(_0xa755c5(0xa9))||_0x2035ae[_0xa755c5(0x99)],_0x519873=normalizeLegacyOutputFormat(_0x480b9c),_0x31c58b=env(_0xa755c5(0x73))||_0x2035ae[_0xa755c5(0x85)],_0x5d8792=_0x31c58b?Number(_0x31c58b)||undefined:undefined,_0x847059=_0x2035ae['riskLevel']||_0x2035ae[_0xa755c5(0xad)],_0x2ac28b=_0x847059===_0xa755c5(0x97)||_0x847059==='write'||_0x847059===_0xa755c5(0x8d)?_0x847059:DEFAULT_CONFIG_VALUES['riskLevel'],_0x51df37=env(_0xa755c5(0x65)),_0x35daee=_0x51df37==='1'||_0x51df37===_0xa755c5(0x9f);return{'appCode':typeof _0x3fac9e===_0xa755c5(0x7f)&&_0x3fac9e['trim']()?_0x3fac9e[_0xa755c5(0x66)]():undefined,'appCodeSource':_0x527cd4,'env':_0x1a6aff,'locale':_0x438209,'cookie':_0xb497ce,'accessKey':_0x3bea1a,'format':_0x519873,'pageSize':_0x5d8792,'riskLevel':_0x2ac28b,'verbose':_0x35daee,'defaultApp':_0x454114,'currentApp':typeof _0x42e6cc===_0xa755c5(0x7f)?_0x42e6cc:undefined,'raw':_0x2035ae};}function env(_0x11708d){return productEnv(_0x11708d);}async function buildAuth(_0x480aa5){const _0x27e74b=a73_0x28226d,_0x23d679='',_0x109f30=!!_0x480aa5[_0x27e74b(0x87)];return{'cookie':_0x23d679,'isLoggedIn':_0x109f30,async 'getOrLogin'(){const _0x37d744=_0x27e74b;if(_0x109f30)return _0x23d679;throw CliErrors[_0x37d744(0x96)]();}};}