@lovrabet/lovrabet-cli 2.3.5-beta.1 → 2.3.5-beta.2

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 (177) 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/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/import-excel.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/kb/index.js +1 -1
  37. package/lib/commands/logs/index.js +1 -1
  38. package/lib/commands/notification/config-list.js +1 -1
  39. package/lib/commands/notification/index.js +1 -1
  40. package/lib/commands/notification/shared.js +1 -1
  41. package/lib/commands/ocr/index.js +1 -1
  42. package/lib/commands/permit/dataset-get.js +1 -1
  43. package/lib/commands/permit/dataset-set.js +1 -1
  44. package/lib/commands/permit/index.js +1 -1
  45. package/lib/commands/permit/page-get.js +1 -1
  46. package/lib/commands/permit/page-set.js +1 -1
  47. package/lib/commands/permit/role-menus-set.js +1 -1
  48. package/lib/commands/permit/role-menus.js +1 -1
  49. package/lib/commands/permit/shared.js +1 -1
  50. package/lib/commands/personal-bff/index.js +1 -1
  51. package/lib/commands/registry.js +1 -1
  52. package/lib/commands/role/create.js +1 -1
  53. package/lib/commands/role/delete.js +1 -1
  54. package/lib/commands/role/detail.js +1 -1
  55. package/lib/commands/role/index.js +1 -1
  56. package/lib/commands/role/list.js +1 -1
  57. package/lib/commands/role/shared.js +1 -1
  58. package/lib/commands/role/update.js +1 -1
  59. package/lib/commands/role/user-add.js +1 -1
  60. package/lib/commands/role/user-remove.js +1 -1
  61. package/lib/commands/schedule/index.js +1 -1
  62. package/lib/commands/schema.js +1 -1
  63. package/lib/commands/service/dynamic.js +1 -1
  64. package/lib/commands/service/function-name-adapter.js +1 -1
  65. package/lib/commands/service/index.js +1 -1
  66. package/lib/commands/service/registry.js +1 -1
  67. package/lib/commands/skill/commands/create.js +1 -1
  68. package/lib/commands/skill/commands/diagram.js +1 -1
  69. package/lib/commands/skill/commands/install.js +1 -1
  70. package/lib/commands/skill/commands/list.js +1 -1
  71. package/lib/commands/skill/commands/push.js +1 -1
  72. package/lib/commands/skill/commands/validate.js +1 -1
  73. package/lib/commands/skill/diagram.js +1 -1
  74. package/lib/commands/skill/flags.js +1 -1
  75. package/lib/commands/skill/index.js +1 -1
  76. package/lib/commands/skill/manifest-helpers.js +1 -1
  77. package/lib/commands/skill/push-execute.js +1 -1
  78. package/lib/commands/skill/push-flow-helpers.js +1 -1
  79. package/lib/commands/skill/push-retarget.js +1 -1
  80. package/lib/commands/skill/scopes.js +1 -1
  81. package/lib/commands/skill/summary.js +1 -1
  82. package/lib/commands/skill/templates.js +1 -1
  83. package/lib/commands/skill/validate.js +1 -1
  84. package/lib/commands/sql/detail.js +1 -1
  85. package/lib/commands/sql/exec.js +1 -1
  86. package/lib/commands/sql/index.js +1 -1
  87. package/lib/commands/update.js +1 -1
  88. package/lib/commands/user-account/bind.js +1 -1
  89. package/lib/commands/user-account/index.js +1 -1
  90. package/lib/commands/workspace/index.js +1 -1
  91. package/lib/config/domain-config.js +1 -1
  92. package/lib/config/schema.js +1 -1
  93. package/lib/constant/app.js +1 -1
  94. package/lib/constant/auth-mode.js +1 -1
  95. package/lib/constant/cli.js +1 -1
  96. package/lib/constant/defaults.js +1 -1
  97. package/lib/constant/distribution.js +1 -1
  98. package/lib/constant/domain.js +1 -1
  99. package/lib/constant/env.js +1 -1
  100. package/lib/constant/output.js +1 -1
  101. package/lib/constant/product.js +1 -1
  102. package/lib/constant/region.js +1 -1
  103. package/lib/constant/risk.js +1 -1
  104. package/lib/constant/url.js +1 -1
  105. package/lib/context.js +1 -1
  106. package/lib/core/api-client.d.ts +2 -0
  107. package/lib/core/api-client.js +1 -1
  108. package/lib/core/db-resolver.js +1 -1
  109. package/lib/core/kb-search-client.js +1 -1
  110. package/lib/core/sdk-client.js +1 -1
  111. package/lib/errors.js +1 -1
  112. package/lib/framework/access-error.js +1 -1
  113. package/lib/framework/build-all-flags.js +1 -1
  114. package/lib/framework/dryrun.js +1 -1
  115. package/lib/framework/flags.js +1 -1
  116. package/lib/framework/help.js +1 -1
  117. package/lib/framework/index.js +1 -1
  118. package/lib/framework/output.js +1 -1
  119. package/lib/framework/preparse.js +1 -1
  120. package/lib/framework/rate-limit.js +1 -1
  121. package/lib/framework/raw-flags.js +1 -1
  122. package/lib/framework/response.js +1 -1
  123. package/lib/framework/runner-confirmation.js +1 -1
  124. package/lib/framework/runner-error.js +1 -1
  125. package/lib/framework/runner.js +1 -1
  126. package/lib/framework/schema-export.js +1 -1
  127. package/lib/framework/service-order.js +1 -1
  128. package/lib/framework/types.js +1 -1
  129. package/lib/generated/build-info.d.ts +4 -4
  130. package/lib/generated/build-info.js +1 -1
  131. package/lib/generated/official-routing.js +1 -1
  132. package/lib/generated/routing-contract.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/postinstall.js +1 -1
  135. package/lib/runtime/confirmation.js +1 -1
  136. package/lib/runtime/event.js +1 -1
  137. package/lib/runtime/index.js +1 -1
  138. package/lib/runtime/queue.js +1 -1
  139. package/lib/runtime/resolve.js +1 -1
  140. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  141. package/lib/services/dataset-import/excel-reader.js +1 -1
  142. package/lib/services/dataset-import/metadata.js +1 -1
  143. package/lib/services/dataset-import/preview.js +1 -1
  144. package/lib/services/dataset-import/runner.js +1 -1
  145. package/lib/skills/builtin-skill.js +1 -1
  146. package/lib/skills/npx-skills-add.js +1 -1
  147. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  148. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  149. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  150. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  151. package/lib/skills/runtime-skill-sync/links.js +1 -1
  152. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  153. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  154. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  155. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  156. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  157. package/lib/skills/runtime-skill-sync/push.js +1 -1
  158. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  159. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  160. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  161. package/lib/skills/runtime-skill-sync.js +1 -1
  162. package/lib/skills/skill-presence.js +1 -1
  163. package/lib/utils/access-key-redaction.js +1 -1
  164. package/lib/utils/apply-jq-filter.js +1 -1
  165. package/lib/utils/cli-version-check.js +1 -1
  166. package/lib/utils/cli-version-policy.js +1 -1
  167. package/lib/utils/logger.js +1 -1
  168. package/lib/utils/lossless-json.js +1 -1
  169. package/lib/utils/params.js +1 -1
  170. package/lib/utils/positive-safe-integer.js +1 -1
  171. package/lib/utils/redaction.js +1 -1
  172. package/lib/utils/update-notice.js +1 -1
  173. package/lib/utils/version.js +1 -1
  174. package/lib/utils/write-cli-side-channel.js +1 -1
  175. package/package.json +1 -1
  176. package/skills/lovrabet/SKILL.md +1 -1
  177. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a82_0x570da4=a82_0x5e43;(function(_0x1c5c3d,_0x2fbded){const _0x55845b=a82_0x5e43,_0x5c19a7=_0x1c5c3d();while(!![]){try{const _0x3ea31b=-parseInt(_0x55845b(0x19a))/0x1*(-parseInt(_0x55845b(0x1ca))/0x2)+-parseInt(_0x55845b(0x1ce))/0x3*(parseInt(_0x55845b(0x1cc))/0x4)+parseInt(_0x55845b(0x1a6))/0x5+-parseInt(_0x55845b(0x1c8))/0x6+-parseInt(_0x55845b(0x19e))/0x7+parseInt(_0x55845b(0x1f0))/0x8*(parseInt(_0x55845b(0x1bf))/0x9)+-parseInt(_0x55845b(0x1d4))/0xa*(parseInt(_0x55845b(0x1aa))/0xb);if(_0x3ea31b===_0x2fbded)break;else _0x5c19a7['push'](_0x5c19a7['shift']());}catch(_0x3189f8){_0x5c19a7['push'](_0x5c19a7['shift']());}}}(a82_0x4f04,0x25b08));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a82_0x1a0381}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a82_0x570da4(0x1ab),SUPPORTED_SKILL_TYPES=new Set([a82_0x570da4(0x1a7),a82_0x570da4(0x1d5)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x5783f0,_0x4969f4={}){const _0x4173f5=a82_0x570da4,_0x3aae3d=resolveSkillDirectoryRoot(_0x5783f0),_0x5ac310=[],_0x5cce7f=loadRequiredSkillFile(_0x3aae3d,_0x5ac310),_0x406954=_0x5cce7f?parseFrontmatter(_0x5cce7f[_0x4173f5(0x1ee)]):{'hasFrontmatter':![]};_0x5cce7f&&validateFrontmatter(_0x5cce7f[_0x4173f5(0x1e5)],_0x406954,_0x5ac310);validateRuntimeCliReferences(_0x3aae3d,_0x5ac310);const _0x44da2f=_0x5ac310[_0x4173f5(0x1cb)](_0x301d22=>_0x301d22[_0x4173f5(0x1c3)]===_0x4173f5(0x1a5)),_0x3aec32=_0x5ac310['filter'](_0x38d512=>_0x38d512['level']==='warning');return{'ok':_0x44da2f[_0x4173f5(0x1cf)]===0x0,'dir':_0x3aae3d,'type':_0x406954['type'],'errors':_0x44da2f,'warnings':_0x3aec32};}function resolveSkillDirectoryRoot(_0x3620f9){const _0x208057=a82_0x570da4,_0x47d55a=resolve(_0x3620f9);if(!existsSync(_0x47d55a))throw CliErrors['validation']('Skill\x20directory\x20not\x20found:\x20'+_0x3620f9);const _0xbf6abb=lstatSync(_0x47d55a);if(_0xbf6abb[_0x208057(0x1c9)]())return _0x47d55a;if(_0xbf6abb['isSymbolicLink']()){const _0x5425e2=realpathSync(_0x47d55a);if(lstatSync(_0x5425e2)['isDirectory']())return _0x5425e2;}throw CliErrors[_0x208057(0x1c7)]('Skill\x20directory\x20not\x20found:\x20'+_0x3620f9);}export function throwIfSkillValidationFailed(_0x58ee33,_0x31314d=![]){const _0x38bb01=a82_0x570da4;if(_0x58ee33['ok'])return;const _0x8e9b4d=_0x58ee33[_0x38bb01(0x1dc)]['map'](_0x30895b=>{const _0x5c97fd=_0x38bb01,_0x398485=_0x30895b['section']?'#'+_0x30895b['section']:'';return _0x30895b[_0x5c97fd(0x1c3)][_0x5c97fd(0x1ac)]()+'\x20'+_0x30895b[_0x5c97fd(0x1ad)]+'\x20'+_0x30895b[_0x5c97fd(0x19b)]+_0x398485+':\x20'+_0x30895b[_0x5c97fd(0x1bd)]+_0x5c97fd(0x19c)+_0x30895b[_0x5c97fd(0x1ba)];});throw CliErrors['validation'](_0x38bb01(0x1e8)+_0x8e9b4d[_0x38bb01(0x1c2)]('\x0a'),'Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.');}function loadRequiredSkillFile(_0x32e8ac,_0x2890e5){const _0x2320c9=a82_0x570da4,_0x2debe0=resolve(_0x32e8ac,SKILL_FILE);if(!existsSync(_0x2debe0))return _0x2890e5[_0x2320c9(0x1e0)](issue(_0x2320c9(0x1a5),_0x2320c9(0x1c5),SKILL_FILE,'Missing\x20SKILL.md.',_0x2320c9(0x1e9))),undefined;const _0x26ead9=lstatSync(_0x2debe0);if(_0x26ead9['isSymbolicLink']())return _0x2890e5[_0x2320c9(0x1e0)](issue(_0x2320c9(0x1a5),'structure-complete',SKILL_FILE,_0x2320c9(0x1af),_0x2320c9(0x1eb))),undefined;if(!_0x26ead9['isFile']())return _0x2890e5['push'](issue(_0x2320c9(0x1a5),'structure-complete',SKILL_FILE,_0x2320c9(0x1be),_0x2320c9(0x1c1))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x2debe0,'utf8')};}function validateFrontmatter(_0x4642dc,_0x61d05d,_0x4c2dc4){const _0x1716d1=a82_0x570da4;if(!_0x61d05d[_0x1716d1(0x1a3)]){_0x4c2dc4[_0x1716d1(0x1e0)](issue(_0x1716d1(0x1a5),_0x1716d1(0x1ed),_0x4642dc,_0x1716d1(0x1a1),_0x1716d1(0x1e3)));return;}!_0x61d05d['name']?.['trim']()&&_0x4c2dc4[_0x1716d1(0x1e0)](issue(_0x1716d1(0x1a5),_0x1716d1(0x1ed),_0x4642dc,'Frontmatter\x20name\x20is\x20missing.',_0x1716d1(0x1a9))),!_0x61d05d['displayName']?.['trim']()&&_0x4c2dc4['push'](issue(_0x1716d1(0x1e1),_0x1716d1(0x19f),_0x4642dc,_0x1716d1(0x1ae),_0x1716d1(0x1b5))),!_0x61d05d['example']?.[_0x1716d1(0x1dd)]()&&_0x4c2dc4[_0x1716d1(0x1e0)](issue(_0x1716d1(0x1e1),_0x1716d1(0x1e2),_0x4642dc,'Frontmatter\x20example\x20is\x20missing.','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.')),!_0x61d05d[_0x1716d1(0x1b8)]?.[_0x1716d1(0x1dd)]()&&_0x4c2dc4[_0x1716d1(0x1e0)](issue('error',_0x1716d1(0x1db),_0x4642dc,_0x1716d1(0x1e7),_0x1716d1(0x1e4))),_0x61d05d['internal']===!![]&&_0x4c2dc4[_0x1716d1(0x1e0)](issue(_0x1716d1(0x1a5),_0x1716d1(0x1d0),_0x4642dc,'metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.',_0x1716d1(0x1a4))),_0x61d05d[_0x1716d1(0x1a8)]?.[_0x1716d1(0x1dd)]()&&!SUPPORTED_SKILL_TYPES['has'](_0x61d05d[_0x1716d1(0x1a8)])&&_0x4c2dc4['push'](issue(_0x1716d1(0x1a5),_0x1716d1(0x1ed),_0x4642dc,_0x1716d1(0x1b4),_0x1716d1(0x1de)));}function validateRuntimeCliReferences(_0x3aabac,_0x20a33e){const _0x5af340=a82_0x570da4;for(const _0x581e95 of findRabetbaseCliInvocations(_0x3aabac)){_0x20a33e[_0x5af340(0x1e0)](issue(_0x5af340(0x1e1),'rabetbase-cli-reference',_0x581e95[_0x5af340(0x19b)],'This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.',_0x5af340(0x1b3),'L'+_0x581e95[_0x5af340(0x1d8)]));}}function findRabetbaseCliInvocations(_0x16e864){const _0x5a6455=a82_0x570da4;return scanSkillDirectory(_0x16e864)[_0x5a6455(0x1cb)](_0x26cc01=>TEXT_SKILL_FILE_PATTERN[_0x5a6455(0x1ec)](_0x26cc01[_0x5a6455(0x1e5)]))['flatMap'](_0x8d22c5=>{const _0x811bee=_0x5a6455,_0x3c46c5=fileText(_0x8d22c5);return _0x3c46c5[_0x811bee(0x19d)](/\r?\n/)[_0x811bee(0x1bb)]((_0xe8b4e9,_0x2b9cce)=>({'file':_0x8d22c5[_0x811bee(0x1e5)],'line':_0x2b9cce+0x1,'text':_0xe8b4e9}))[_0x811bee(0x1cb)](({text:_0x544b05})=>isRabetbaseCliInvocation(_0x544b05))[_0x811bee(0x1bb)](({file:_0x362ccc,line:_0x3ed2e4})=>({'file':_0x362ccc,'line':_0x3ed2e4}));});}const RABETBASE_SUBCOMMANDS=[a82_0x570da4(0x1b0),a82_0x570da4(0x1cd),a82_0x570da4(0x1e6),a82_0x570da4(0x1c4),a82_0x570da4(0x1ef),a82_0x570da4(0x1c0),a82_0x570da4(0x1d3),a82_0x570da4(0x1b2),a82_0x570da4(0x1d2),'kb','config','workspace',a82_0x570da4(0x1d7),a82_0x570da4(0x1c6),a82_0x570da4(0x1d6),a82_0x570da4(0x1d1)],RABETBASE_INVOCATION=new RegExp(String['raw']`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a82_0x570da4(0x1c2)]('|')})\b`+String[a82_0x570da4(0x1bc)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x2c25fd){const _0x4ca5c1=a82_0x570da4,_0x5e3651=_0x2c25fd[_0x4ca5c1(0x1d9)](/\brabetbase\b/i);if(_0x5e3651<0x0)return![];const _0x2a6e19=_0x2c25fd['slice'](_0x5e3651)[_0x4ca5c1(0x19d)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x4ca5c1(0x1ec)](_0x2a6e19);}function parseFrontmatter(_0x59c342){const _0x6c5708=a82_0x570da4,_0x447867=_0x59c342['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x447867)return{'hasFrontmatter':![]};const _0x5736c9=_0x447867[0x1]??'',_0x20b31d={'hasFrontmatter':!![]};let _0x68ec83;try{_0x68ec83=a82_0x1a0381(_0x5736c9);}catch{return _0x20b31d;}const _0xe2211b=asRecord(_0x68ec83);if(!_0xe2211b)return _0x20b31d;_0x20b31d[_0x6c5708(0x1b9)]=scalarToString(_0xe2211b['name']),_0x20b31d[_0x6c5708(0x199)]=scalarToString(_0xe2211b[_0x6c5708(0x199)]),_0x20b31d[_0x6c5708(0x1b8)]=scalarToString(_0xe2211b['description']),_0x20b31d['example']=scalarToString(_0xe2211b[_0x6c5708(0x1b1)]);const _0x1067e3=asRecord(_0xe2211b['metadata']);return _0x1067e3&&(_0x20b31d[_0x6c5708(0x1a8)]=scalarToString(_0x1067e3[_0x6c5708(0x1a8)]),_0x20b31d['internal']=scalarToBoolean(_0x1067e3['internal'])),_0x20b31d;}function asRecord(_0x4a8aa1){const _0x7d0f5a=a82_0x570da4;if(_0x4a8aa1&&typeof _0x4a8aa1===_0x7d0f5a(0x1ea)&&!Array[_0x7d0f5a(0x1da)](_0x4a8aa1))return _0x4a8aa1;return undefined;}function a82_0x4f04(){const _0x3bdd8e=['frontmatter-required','content','project','35384YHSOEC','displayName','1FbhirQ','file','\x20Fix:\x20','split','832769qjEhlG','display-name-recommended','false','SKILL.md\x20must\x20start\x20with\x20frontmatter.','boolean','hasFrontmatter','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','error','1244585OZzdFo','write','type','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','1469567OtNVqs','SKILL.md','toUpperCase','ruleId','Frontmatter\x20displayName\x20is\x20missing.','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','dataset','example','service','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','toLowerCase','true','description','name','suggestion','map','raw','message','SKILL.md\x20is\x20not\x20a\x20file.','549yWgehn','app','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','join','level','page','structure-complete','auth','validation','57222zbLKtX','isDirectory','514894liAppm','filter','904372axNbBy','sql','3UEuonA','length','internal-skill','registry','artifact','schema','20IlXWSM','read','logs','data','line','search','isArray','description-required','errors','trim','Set\x20metadata.type\x20to\x20write\x20or\x20read.','string','push','warning','example-recommended','Add\x20frontmatter\x20with\x20name\x20and\x20description.','Describe\x20when\x20the\x20model\x20should\x20trigger\x20this\x20Skill,\x20plus\x20out-of-scope\x20boundaries\x20and\x20keywords.','path','bff','Frontmatter\x20description\x20is\x20empty.','Skill\x20validation\x20failed:\x0a','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','object','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','test'];a82_0x4f04=function(){return _0x3bdd8e;};return a82_0x4f04();}function scalarToString(_0x50b793){const _0x487a8=a82_0x570da4;if(typeof _0x50b793===_0x487a8(0x1df))return _0x50b793[_0x487a8(0x1dd)]();if(typeof _0x50b793==='number'||typeof _0x50b793==='boolean')return String(_0x50b793);return undefined;}function scalarToBoolean(_0xd15cf5){const _0x3f2480=a82_0x570da4;if(typeof _0xd15cf5===_0x3f2480(0x1a2))return _0xd15cf5;if(typeof _0xd15cf5===_0x3f2480(0x1df))return cleanBoolean(_0xd15cf5);return undefined;}function cleanBoolean(_0x79931c){const _0x10783a=a82_0x570da4,_0x316d64=_0x79931c[_0x10783a(0x1dd)]()[_0x10783a(0x1b6)]();if(_0x316d64===_0x10783a(0x1b7))return!![];if(_0x316d64===_0x10783a(0x1a0))return![];return undefined;}function a82_0x5e43(_0xe7459a,_0x3e3a1b){_0xe7459a=_0xe7459a-0x199;const _0x4f04f3=a82_0x4f04();let _0x5e433e=_0x4f04f3[_0xe7459a];return _0x5e433e;}function issue(_0x5c081f,_0x58f497,_0x2bdc78,_0x4d31be,_0x52da92,_0x2872fd){return{'level':_0x5c081f,'ruleId':_0x58f497,'file':_0x2bdc78,'section':_0x2872fd,'message':_0x4d31be,'suggestion':_0x52da92};}
1
+ const a82_0x43cc88=a82_0x4ae4;(function(_0xd92388,_0x58dd53){const _0x12f120=a82_0x4ae4,_0xdee71a=_0xd92388();while(!![]){try{const _0x4a3de7=-parseInt(_0x12f120(0x1f0))/0x1*(-parseInt(_0x12f120(0x205))/0x2)+parseInt(_0x12f120(0x1e9))/0x3*(-parseInt(_0x12f120(0x210))/0x4)+-parseInt(_0x12f120(0x20c))/0x5+parseInt(_0x12f120(0x1e5))/0x6+parseInt(_0x12f120(0x1d0))/0x7+parseInt(_0x12f120(0x1cf))/0x8+parseInt(_0x12f120(0x1dd))/0x9;if(_0x4a3de7===_0x58dd53)break;else _0xdee71a['push'](_0xdee71a['shift']());}catch(_0x547612){_0xdee71a['push'](_0xdee71a['shift']());}}}(a82_0x1ba0,0x5b63d));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a82_0x3cef2c}from'yaml';import{CliErrors}from'../../errors.js';function a82_0x1ba0(){const _0x5705db=['write','true','artifact','errors','filter','read','push','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','join','project','2SrDZWo','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','search','description','Missing\x20SKILL.md.','test','type','3727725xgWHEj','line','content','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','912196FxWDJG','isSymbolicLink','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','page','Frontmatter\x20name\x20is\x20missing.','structure-complete','path','example-recommended','data','Describe\x20when\x20the\x20model\x20should\x20trigger\x20this\x20Skill,\x20plus\x20out-of-scope\x20boundaries\x20and\x20keywords.','example','suggestion','dataset','display-name-recommended','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','isDirectory','validation','SKILL.md\x20must\x20start\x20with\x20frontmatter.','map','isFile','trim','2083512GnIROv','177450YMSqLq','workspace','SKILL.md','internal-skill','split','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','\x20Fix:\x20','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','Frontmatter\x20description\x20is\x20empty.','boolean','Skill\x20directory\x20not\x20found:\x20','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','raw','4365486VfdSrZ','schema','length','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','description-required','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','message','config','1410966FCXioz','displayName','name','number','3DERxQu','string','bff','toUpperCase','false','file','flatMap','341923ABokQV','level','Frontmatter\x20example\x20is\x20missing.','error','warning','frontmatter-required','section','auth','registry','internal','hasFrontmatter'];a82_0x1ba0=function(){return _0x5705db;};return a82_0x1ba0();}import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a82_0x43cc88(0x1d2),SUPPORTED_SKILL_TYPES=new Set([a82_0x43cc88(0x1fb),a82_0x43cc88(0x200)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x3478eb,_0x517cbc={}){const _0x5ed9f6=a82_0x43cc88,_0x14dbc3=resolveSkillDirectoryRoot(_0x3478eb),_0x574efb=[],_0x22c58c=loadRequiredSkillFile(_0x14dbc3,_0x574efb),_0x26edf5=_0x22c58c?parseFrontmatter(_0x22c58c[_0x5ed9f6(0x20e)]):{'hasFrontmatter':![]};_0x22c58c&&validateFrontmatter(_0x22c58c[_0x5ed9f6(0x216)],_0x26edf5,_0x574efb);validateRuntimeCliReferences(_0x14dbc3,_0x574efb);const _0x20b4cd=_0x574efb[_0x5ed9f6(0x1ff)](_0x5fea1d=>_0x5fea1d[_0x5ed9f6(0x1f1)]==='error'),_0x23afad=_0x574efb['filter'](_0x3a4606=>_0x3a4606[_0x5ed9f6(0x1f1)]==='warning');return{'ok':_0x20b4cd[_0x5ed9f6(0x1df)]===0x0,'dir':_0x14dbc3,'type':_0x26edf5[_0x5ed9f6(0x20b)],'errors':_0x20b4cd,'warnings':_0x23afad};}function resolveSkillDirectoryRoot(_0x25067d){const _0x51fa40=a82_0x43cc88,_0x18db63=resolve(_0x25067d);if(!existsSync(_0x18db63))throw CliErrors[_0x51fa40(0x1ca)](_0x51fa40(0x1da)+_0x25067d);const _0x47e3f9=lstatSync(_0x18db63);if(_0x47e3f9[_0x51fa40(0x1c9)]())return _0x18db63;if(_0x47e3f9['isSymbolicLink']()){const _0x3b5f16=realpathSync(_0x18db63);if(lstatSync(_0x3b5f16)[_0x51fa40(0x1c9)]())return _0x3b5f16;}throw CliErrors['validation'](_0x51fa40(0x1da)+_0x25067d);}export function throwIfSkillValidationFailed(_0x45e27d,_0x4af226=![]){const _0x32cf1f=a82_0x43cc88;if(_0x45e27d['ok'])return;const _0x229470=_0x45e27d[_0x32cf1f(0x1fe)]['map'](_0x5120c5=>{const _0xa1d736=_0x32cf1f,_0x1f22a3=_0x5120c5[_0xa1d736(0x1f6)]?'#'+_0x5120c5['section']:'';return _0x5120c5[_0xa1d736(0x1f1)][_0xa1d736(0x1ec)]()+'\x20'+_0x5120c5['ruleId']+'\x20'+_0x5120c5[_0xa1d736(0x1ee)]+_0x1f22a3+':\x20'+_0x5120c5[_0xa1d736(0x1e3)]+_0xa1d736(0x1d6)+_0x5120c5[_0xa1d736(0x21b)];});throw CliErrors[_0x32cf1f(0x1ca)]('Skill\x20validation\x20failed:\x0a'+_0x229470['join']('\x0a'),_0x32cf1f(0x1c8));}function loadRequiredSkillFile(_0x2052c7,_0x3df147){const _0x28ec13=a82_0x43cc88,_0x3f40d2=resolve(_0x2052c7,SKILL_FILE);if(!existsSync(_0x3f40d2))return _0x3df147[_0x28ec13(0x201)](issue('error',_0x28ec13(0x215),SKILL_FILE,_0x28ec13(0x209),_0x28ec13(0x1d5))),undefined;const _0x199d83=lstatSync(_0x3f40d2);if(_0x199d83[_0x28ec13(0x211)]())return _0x3df147[_0x28ec13(0x201)](issue(_0x28ec13(0x1f3),_0x28ec13(0x215),SKILL_FILE,_0x28ec13(0x20f),_0x28ec13(0x1e0))),undefined;if(!_0x199d83[_0x28ec13(0x1cd)]())return _0x3df147[_0x28ec13(0x201)](issue(_0x28ec13(0x1f3),_0x28ec13(0x215),SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.',_0x28ec13(0x212))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x3f40d2,'utf8')};}function validateFrontmatter(_0x116fdb,_0x454128,_0x3138e8){const _0x22739c=a82_0x43cc88;if(!_0x454128[_0x22739c(0x1fa)]){_0x3138e8[_0x22739c(0x201)](issue(_0x22739c(0x1f3),_0x22739c(0x1f5),_0x116fdb,_0x22739c(0x1cb),'Add\x20frontmatter\x20with\x20name\x20and\x20description.'));return;}!_0x454128[_0x22739c(0x1e7)]?.['trim']()&&_0x3138e8[_0x22739c(0x201)](issue(_0x22739c(0x1f3),_0x22739c(0x1f5),_0x116fdb,_0x22739c(0x214),_0x22739c(0x1db))),!_0x454128[_0x22739c(0x1e6)]?.['trim']()&&_0x3138e8[_0x22739c(0x201)](issue(_0x22739c(0x1f4),_0x22739c(0x1c7),_0x116fdb,'Frontmatter\x20displayName\x20is\x20missing.',_0x22739c(0x202))),!_0x454128['example']?.['trim']()&&_0x3138e8[_0x22739c(0x201)](issue('warning',_0x22739c(0x217),_0x116fdb,_0x22739c(0x1f2),_0x22739c(0x1d7))),!_0x454128[_0x22739c(0x208)]?.['trim']()&&_0x3138e8['push'](issue(_0x22739c(0x1f3),_0x22739c(0x1e1),_0x116fdb,_0x22739c(0x1d8),_0x22739c(0x219))),_0x454128[_0x22739c(0x1f9)]===!![]&&_0x3138e8[_0x22739c(0x201)](issue(_0x22739c(0x1f3),_0x22739c(0x1d3),_0x116fdb,'metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.')),_0x454128[_0x22739c(0x20b)]?.[_0x22739c(0x1ce)]()&&!SUPPORTED_SKILL_TYPES['has'](_0x454128['type'])&&_0x3138e8['push'](issue(_0x22739c(0x1f3),'frontmatter-required',_0x116fdb,'metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','Set\x20metadata.type\x20to\x20write\x20or\x20read.'));}function validateRuntimeCliReferences(_0x26eed1,_0x1cee9d){const _0x3582dd=a82_0x43cc88;for(const _0x23a1c0 of findRabetbaseCliInvocations(_0x26eed1)){_0x1cee9d[_0x3582dd(0x201)](issue(_0x3582dd(0x1f4),'rabetbase-cli-reference',_0x23a1c0[_0x3582dd(0x1ee)],_0x3582dd(0x1e2),_0x3582dd(0x206),'L'+_0x23a1c0[_0x3582dd(0x20d)]));}}function a82_0x4ae4(_0x14de68,_0x30f09b){_0x14de68=_0x14de68-0x1c7;const _0x1ba0f0=a82_0x1ba0();let _0x4ae4ac=_0x1ba0f0[_0x14de68];return _0x4ae4ac;}function findRabetbaseCliInvocations(_0x15f2ca){const _0x48fe52=a82_0x43cc88;return scanSkillDirectory(_0x15f2ca)[_0x48fe52(0x1ff)](_0x1eacab=>TEXT_SKILL_FILE_PATTERN[_0x48fe52(0x20a)](_0x1eacab['path']))[_0x48fe52(0x1ef)](_0x5f18fc=>{const _0x2846a4=_0x48fe52,_0x1d8c53=fileText(_0x5f18fc);return _0x1d8c53[_0x2846a4(0x1d4)](/\r?\n/)[_0x2846a4(0x1cc)]((_0x351f72,_0x13e67e)=>({'file':_0x5f18fc[_0x2846a4(0x216)],'line':_0x13e67e+0x1,'text':_0x351f72}))[_0x2846a4(0x1ff)](({text:_0x291f5f})=>isRabetbaseCliInvocation(_0x291f5f))[_0x2846a4(0x1cc)](({file:_0xf1acc2,line:_0x1f8aa8})=>({'file':_0xf1acc2,'line':_0x1f8aa8}));});}const RABETBASE_SUBCOMMANDS=[a82_0x43cc88(0x21c),'sql',a82_0x43cc88(0x1eb),a82_0x43cc88(0x213),a82_0x43cc88(0x204),'app',a82_0x43cc88(0x1de),'service',a82_0x43cc88(0x1fd),'kb',a82_0x43cc88(0x1e4),a82_0x43cc88(0x1d1),a82_0x43cc88(0x218),a82_0x43cc88(0x1f7),'logs',a82_0x43cc88(0x1f8)],RABETBASE_INVOCATION=new RegExp(String['raw']`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a82_0x43cc88(0x203)]('|')})\b`+String[a82_0x43cc88(0x1dc)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x3d1e03){const _0x3f544f=a82_0x43cc88,_0x2b6e3d=_0x3d1e03[_0x3f544f(0x207)](/\brabetbase\b/i);if(_0x2b6e3d<0x0)return![];const _0x2ca425=_0x3d1e03['slice'](_0x2b6e3d)[_0x3f544f(0x1d4)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x3f544f(0x20a)](_0x2ca425);}function parseFrontmatter(_0x1783b9){const _0x2f9a74=a82_0x43cc88,_0x174afc=_0x1783b9['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x174afc)return{'hasFrontmatter':![]};const _0x202c96=_0x174afc[0x1]??'',_0xfd44c9={'hasFrontmatter':!![]};let _0x4b2766;try{_0x4b2766=a82_0x3cef2c(_0x202c96);}catch{return _0xfd44c9;}const _0x4206db=asRecord(_0x4b2766);if(!_0x4206db)return _0xfd44c9;_0xfd44c9['name']=scalarToString(_0x4206db[_0x2f9a74(0x1e7)]),_0xfd44c9['displayName']=scalarToString(_0x4206db[_0x2f9a74(0x1e6)]),_0xfd44c9[_0x2f9a74(0x208)]=scalarToString(_0x4206db[_0x2f9a74(0x208)]),_0xfd44c9[_0x2f9a74(0x21a)]=scalarToString(_0x4206db[_0x2f9a74(0x21a)]);const _0x1a4dd4=asRecord(_0x4206db['metadata']);return _0x1a4dd4&&(_0xfd44c9[_0x2f9a74(0x20b)]=scalarToString(_0x1a4dd4[_0x2f9a74(0x20b)]),_0xfd44c9[_0x2f9a74(0x1f9)]=scalarToBoolean(_0x1a4dd4[_0x2f9a74(0x1f9)])),_0xfd44c9;}function asRecord(_0x3cc56b){if(_0x3cc56b&&typeof _0x3cc56b==='object'&&!Array['isArray'](_0x3cc56b))return _0x3cc56b;return undefined;}function scalarToString(_0x1e4855){const _0x24593d=a82_0x43cc88;if(typeof _0x1e4855==='string')return _0x1e4855[_0x24593d(0x1ce)]();if(typeof _0x1e4855===_0x24593d(0x1e8)||typeof _0x1e4855==='boolean')return String(_0x1e4855);return undefined;}function scalarToBoolean(_0x186dc2){const _0x2b8b72=a82_0x43cc88;if(typeof _0x186dc2===_0x2b8b72(0x1d9))return _0x186dc2;if(typeof _0x186dc2===_0x2b8b72(0x1ea))return cleanBoolean(_0x186dc2);return undefined;}function cleanBoolean(_0x32e724){const _0x52a858=a82_0x43cc88,_0x3b909c=_0x32e724[_0x52a858(0x1ce)]()['toLowerCase']();if(_0x3b909c===_0x52a858(0x1fc))return!![];if(_0x3b909c===_0x52a858(0x1ed))return![];return undefined;}function issue(_0x16cd91,_0x44610e,_0x57715c,_0x4b2bec,_0x4ad9a3,_0x2aa4d5){return{'level':_0x16cd91,'ruleId':_0x44610e,'file':_0x57715c,'section':_0x2aa4d5,'message':_0x4b2bec,'suggestion':_0x4ad9a3};}
@@ -1 +1 @@
1
- const a83_0x25a7b0=a83_0x54e8;(function(_0xd1e848,_0x3bc6d1){const _0x387e33=a83_0x54e8,_0x28ea8a=_0xd1e848();while(!![]){try{const _0x4dad9a=-parseInt(_0x387e33(0x78))/0x1*(-parseInt(_0x387e33(0x73))/0x2)+parseInt(_0x387e33(0x7f))/0x3*(-parseInt(_0x387e33(0x7b))/0x4)+parseInt(_0x387e33(0x84))/0x5+parseInt(_0x387e33(0x83))/0x6*(-parseInt(_0x387e33(0x7d))/0x7)+parseInt(_0x387e33(0x77))/0x8+parseInt(_0x387e33(0x86))/0x9+parseInt(_0x387e33(0x74))/0xa*(parseInt(_0x387e33(0x75))/0xb);if(_0x4dad9a===_0x3bc6d1)break;else _0x28ea8a['push'](_0x28ea8a['shift']());}catch(_0x26e49a){_0x28ea8a['push'](_0x28ea8a['shift']());}}}(a83_0xa256,0xc65d5));import{getSqlQueryInfo}from'../../core/api-client.js';function a83_0x54e8(_0x58b5ef,_0x429136){_0x58b5ef=_0x58b5ef-0x73;const _0xa2565e=a83_0xa256();let _0x54e88f=_0xa2565e[_0x58b5ef];return _0x54e88f;}import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a83_0xa256(){const _0x2c1176=['sqlcode','7366807aAuthE','dbId','852GMdObQ','verbose','appCode','str','6Akxina','6678840HbeYMB','sqlContent','5515830JfjwLp','detail','bool','4834oItsyc','10eMGeEH','7732747qIXKAw','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','3745104wyIuPs','1ClNhWS','read','sql','17708HENwoR'];a83_0xa256=function(){return _0x2c1176;};return a83_0xa256();}export const sqlDetail={'service':a83_0x25a7b0(0x7a),'command':a83_0x25a7b0(0x87),'description':a83_0x25a7b0(0x76),'risk':a83_0x25a7b0(0x79),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x49e150){const _0xb68a85=a83_0x25a7b0,_0x2d79e9=await getSqlQueryInfo(_0x49e150[_0xb68a85(0x81)],_0x49e150[_0xb68a85(0x82)](_0xb68a85(0x7c))),_0x279eb1=_0x49e150[_0xb68a85(0x88)](_0xb68a85(0x80));if(_0x279eb1)return{'ok':!![],'data':_0x2d79e9};const _0x42aa85=_0x2d79e9[_0xb68a85(0x7e)]?await getDbName(_0x49e150[_0xb68a85(0x81)],_0x2d79e9['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x2d79e9['sqlCode'],'sqlName':_0x2d79e9['sqlName'],'db':_0x42aa85?_0x42aa85+'\x20('+_0x2d79e9[_0xb68a85(0x7e)]+')':_0x2d79e9[_0xb68a85(0x7e)]??'','sqlContent':_0x2d79e9[_0xb68a85(0x85)]??''}};}};
1
+ function a83_0x12f9(_0x707bff,_0x403356){_0x707bff=_0x707bff-0x1b9;const _0x4e4784=a83_0x4e47();let _0x12f953=_0x4e4784[_0x707bff];return _0x12f953;}const a83_0x42fd44=a83_0x12f9;(function(_0x28f2ad,_0x335b9a){const _0x403ac3=a83_0x12f9,_0x44830d=_0x28f2ad();while(!![]){try{const _0x44ecf3=parseInt(_0x403ac3(0x1c0))/0x1*(parseInt(_0x403ac3(0x1c1))/0x2)+-parseInt(_0x403ac3(0x1ba))/0x3+-parseInt(_0x403ac3(0x1c2))/0x4+-parseInt(_0x403ac3(0x1bc))/0x5*(parseInt(_0x403ac3(0x1c9))/0x6)+parseInt(_0x403ac3(0x1bd))/0x7+parseInt(_0x403ac3(0x1ca))/0x8+parseInt(_0x403ac3(0x1b9))/0x9;if(_0x44ecf3===_0x335b9a)break;else _0x44830d['push'](_0x44830d['shift']());}catch(_0x4e46f1){_0x44830d['push'](_0x44830d['shift']());}}}(a83_0x4e47,0x8ca4d));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':a83_0x42fd44(0x1c3),'command':a83_0x42fd44(0x1c8),'description':a83_0x42fd44(0x1c7),'risk':a83_0x42fd44(0x1bb),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x2ae157){const _0x4c760f=a83_0x42fd44,_0x3779e8=await getSqlQueryInfo(_0x2ae157[_0x4c760f(0x1c6)],_0x2ae157[_0x4c760f(0x1be)]('sqlcode')),_0x93d80f=_0x2ae157[_0x4c760f(0x1cb)](_0x4c760f(0x1c4));if(_0x93d80f)return{'ok':!![],'data':_0x3779e8};const _0x3be575=_0x3779e8[_0x4c760f(0x1c5)]?await getDbName(_0x2ae157[_0x4c760f(0x1c6)],_0x3779e8[_0x4c760f(0x1c5)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x3779e8['sqlCode'],'sqlName':_0x3779e8[_0x4c760f(0x1bf)],'db':_0x3be575?_0x3be575+'\x20('+_0x3779e8['dbId']+')':_0x3779e8[_0x4c760f(0x1c5)]??'','sqlContent':_0x3779e8['sqlContent']??''}};}};function a83_0x4e47(){const _0x353d81=['1566562xJhBgp','1634796NhVpyq','sql','verbose','dbId','appCode','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','detail','6WRVdKH','5366192XbQxyB','bool','78939GPCXZt','1058763OJKiTI','read','3680525FpbxUm','4276832SWbZJn','str','sqlName','1zjWPRX'];a83_0x4e47=function(){return _0x353d81;};return a83_0x4e47();}
@@ -1 +1 @@
1
- const a84_0x3739b2=a84_0x2ad8;(function(_0x1a52ec,_0x4d3f7){const _0x23942b=a84_0x2ad8,_0x147559=_0x1a52ec();while(!![]){try{const _0x5539cd=-parseInt(_0x23942b(0x14d))/0x1+-parseInt(_0x23942b(0x14a))/0x2+-parseInt(_0x23942b(0x144))/0x3*(-parseInt(_0x23942b(0x152))/0x4)+parseInt(_0x23942b(0x147))/0x5*(parseInt(_0x23942b(0x14b))/0x6)+-parseInt(_0x23942b(0x13b))/0x7+-parseInt(_0x23942b(0x143))/0x8*(-parseInt(_0x23942b(0x148))/0x9)+parseInt(_0x23942b(0x146))/0xa*(parseInt(_0x23942b(0x13c))/0xb);if(_0x5539cd===_0x4d3f7)break;else _0x147559['push'](_0x147559['shift']());}catch(_0x3e7af9){_0x147559['push'](_0x147559['shift']());}}}(a84_0x46d5,0x7a8ac));function a84_0x2ad8(_0x3bcfbd,_0xb8c540){_0x3bcfbd=_0x3bcfbd-0x13b;const _0x46d57c=a84_0x46d5();let _0x2ad8c8=_0x46d57c[_0x3bcfbd];return _0x2ad8c8;}import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';function a84_0x46d5(){const _0x3d4890=['params','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','isArray','execResult','853812GBCGHj','2907450amvFCs','121rEIrAF','str','sqlcode','SQL\x20execution\x20failed','length','\x20row(s)\x20in\x20','now','8OcSsjA','3VPvaoo','exec','1092390ffgMJb','80315TvzwFd','2759661pyXOqz','Returned\x20','1522522NacPEh','174yEPKsC','execError','508995cXPsLk'];a84_0x46d5=function(){return _0x3d4890;};return a84_0x46d5();}export const sqlExec={'service':'sql','command':a84_0x3739b2(0x145),'description':a84_0x3739b2(0x14f),'risk':'read','flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x6ddac3){const _0x592e8f=a84_0x3739b2,_0x4dea85=parseJsonParams(_0x6ddac3[_0x592e8f(0x13d)](_0x592e8f(0x14e))),_0x17316a=Date[_0x592e8f(0x142)](),_0x452e32=await executeSdkSql(_0x6ddac3[_0x592e8f(0x13d)](_0x592e8f(0x13e)),_0x4dea85),_0x52ab84=Date[_0x592e8f(0x142)]()-_0x17316a,_0x47e7bf=_0x452e32?.[_0x592e8f(0x151)]??_0x452e32,_0x18c72c=_0x452e32?.['execSuccess']??!![];if(!_0x18c72c)return{'ok':![],'data':{'error':_0x452e32?.[_0x592e8f(0x14c)]||'SQL\x20execution\x20failed','elapsed':_0x52ab84},'message':_0x592e8f(0x13f)};const _0x569f74=Array[_0x592e8f(0x150)](_0x47e7bf)?_0x47e7bf:[];return{'ok':!![],'data':{'rows':_0x569f74,'rowCount':_0x569f74[_0x592e8f(0x140)],'elapsed':_0x52ab84},'message':_0x592e8f(0x149)+_0x569f74[_0x592e8f(0x140)]+_0x592e8f(0x141)+_0x52ab84+'ms'};}};
1
+ const a84_0x33042e=a84_0x144a;(function(_0x59c717,_0x2a8afb){const _0x4f195a=a84_0x144a,_0x5cf9a0=_0x59c717();while(!![]){try{const _0x5634ed=-parseInt(_0x4f195a(0x1ed))/0x1*(parseInt(_0x4f195a(0x1fa))/0x2)+-parseInt(_0x4f195a(0x200))/0x3+parseInt(_0x4f195a(0x1f6))/0x4*(-parseInt(_0x4f195a(0x201))/0x5)+-parseInt(_0x4f195a(0x1f9))/0x6+parseInt(_0x4f195a(0x1fe))/0x7*(-parseInt(_0x4f195a(0x1ec))/0x8)+-parseInt(_0x4f195a(0x1fd))/0x9*(-parseInt(_0x4f195a(0x1f1))/0xa)+parseInt(_0x4f195a(0x1f8))/0xb;if(_0x5634ed===_0x2a8afb)break;else _0x5cf9a0['push'](_0x5cf9a0['shift']());}catch(_0x434a65){_0x5cf9a0['push'](_0x5cf9a0['shift']());}}}(a84_0x2f43,0xc636b));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':'sql','command':a84_0x33042e(0x1ff),'description':'Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','risk':'read','flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x40cb5b){const _0x38d91f=a84_0x33042e,_0x38149f=parseJsonParams(_0x40cb5b[_0x38d91f(0x1f0)](_0x38d91f(0x1fb))),_0x450be1=Date[_0x38d91f(0x1ee)](),_0x826a9=await executeSdkSql(_0x40cb5b[_0x38d91f(0x1f0)](_0x38d91f(0x1ef)),_0x38149f),_0x407bf6=Date[_0x38d91f(0x1ee)]()-_0x450be1,_0x5d7e37=_0x826a9?.[_0x38d91f(0x1f7)]??_0x826a9,_0xd61496=_0x826a9?.['execSuccess']??!![];if(!_0xd61496)return{'ok':![],'data':{'error':_0x826a9?.[_0x38d91f(0x1fc)]||'SQL\x20execution\x20failed','elapsed':_0x407bf6},'message':_0x38d91f(0x1f4)};const _0x329109=Array['isArray'](_0x5d7e37)?_0x5d7e37:[];return{'ok':!![],'data':{'rows':_0x329109,'rowCount':_0x329109[_0x38d91f(0x1f2)],'elapsed':_0x407bf6},'message':_0x38d91f(0x1f3)+_0x329109['length']+_0x38d91f(0x1f5)+_0x407bf6+'ms'};}};function a84_0x144a(_0x3d9c42,_0x1f8e76){_0x3d9c42=_0x3d9c42-0x1ec;const _0x2f4338=a84_0x2f43();let _0x144acc=_0x2f4338[_0x3d9c42];return _0x144acc;}function a84_0x2f43(){const _0x15d67b=['3104844ntaYPN','37085XuGQPZ','12373496gFmdVs','1441691OtzxUn','now','sqlcode','str','10zeCUlk','length','Returned\x20','SQL\x20execution\x20failed','\x20row(s)\x20in\x20','4SCDwTx','execResult','63991609PIPVpW','6026880YvZgVY','2jCdPNh','params','execError','267183pSBNgX','7oYMKlE','exec'];a84_0x2f43=function(){return _0x15d67b;};return a84_0x2f43();}
@@ -1 +1 @@
1
- (function(_0x2c5dac,_0x36253b){const _0x5b3290=a85_0x43f5,_0x4afe2d=_0x2c5dac();while(!![]){try{const _0x40103a=-parseInt(_0x5b3290(0x135))/0x1+-parseInt(_0x5b3290(0x132))/0x2*(parseInt(_0x5b3290(0x136))/0x3)+parseInt(_0x5b3290(0x137))/0x4+-parseInt(_0x5b3290(0x139))/0x5+parseInt(_0x5b3290(0x13a))/0x6*(-parseInt(_0x5b3290(0x134))/0x7)+-parseInt(_0x5b3290(0x138))/0x8+-parseInt(_0x5b3290(0x131))/0x9*(-parseInt(_0x5b3290(0x133))/0xa);if(_0x40103a===_0x36253b)break;else _0x4afe2d['push'](_0x4afe2d['shift']());}catch(_0x2ad22c){_0x4afe2d['push'](_0x4afe2d['shift']());}}}(a85_0x39ce,0x68a02));import{sqlDetail}from'../../commands/sql/detail.js';function a85_0x43f5(_0x404e92,_0x2a2bdd){_0x404e92=_0x404e92-0x131;const _0x39cecf=a85_0x39ce();let _0x43f591=_0x39cecf[_0x404e92];return _0x43f591;}function a85_0x39ce(){const _0x5ce1ae=['21192MaPaxn','13500441OxorMK','8deIgMq','10OeNZkC','581nRVgaK','735684uKTbXj','96657EKkMUP','2061976cNRwxM','1201824uRwXKX','1395265eQxRaK'];a85_0x39ce=function(){return _0x5ce1ae;};return a85_0x39ce();}import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
1
+ (function(_0x45c762,_0x3353d0){const _0x5db3ac=a85_0x27b4,_0x599feb=_0x45c762();while(!![]){try{const _0x1c12e4=-parseInt(_0x5db3ac(0x15b))/0x1+parseInt(_0x5db3ac(0x161))/0x2+-parseInt(_0x5db3ac(0x15f))/0x3+-parseInt(_0x5db3ac(0x159))/0x4*(-parseInt(_0x5db3ac(0x15d))/0x5)+-parseInt(_0x5db3ac(0x160))/0x6+parseInt(_0x5db3ac(0x15a))/0x7*(-parseInt(_0x5db3ac(0x15c))/0x8)+-parseInt(_0x5db3ac(0x15e))/0x9*(-parseInt(_0x5db3ac(0x158))/0xa);if(_0x1c12e4===_0x3353d0)break;else _0x599feb['push'](_0x599feb['shift']());}catch(_0x105d09){_0x599feb['push'](_0x599feb['shift']());}}}(a85_0x2c64,0x3d72b));function a85_0x2c64(){const _0x2a6324=['104564dOlKhr','7NTzERh','149435gzgIIh','2421112nrwcgc','45DdvMiN','6516vIpvde','1426041yDzISE','1364610SvkEUc','282052edriVv','14230rsXYkc'];a85_0x2c64=function(){return _0x2a6324;};return a85_0x2c64();}import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a85_0x27b4(_0x1c6ba2,_0x3df18a){_0x1c6ba2=_0x1c6ba2-0x158;const _0x2c64b6=a85_0x2c64();let _0x27b400=_0x2c64b6[_0x1c6ba2];return _0x27b400;}export const sqlDefinitions=[sqlDetail,sqlExec];
@@ -1 +1 @@
1
- const a86_0x46127c=a86_0x6f76;(function(_0x1ed7e4,_0x43b416){const _0x29c822=a86_0x6f76,_0x485dc7=_0x1ed7e4();while(!![]){try{const _0x3f59ec=-parseInt(_0x29c822(0xe5))/0x1+parseInt(_0x29c822(0xf8))/0x2+-parseInt(_0x29c822(0xe4))/0x3*(-parseInt(_0x29c822(0xd5))/0x4)+parseInt(_0x29c822(0xd9))/0x5*(parseInt(_0x29c822(0x101))/0x6)+-parseInt(_0x29c822(0xd1))/0x7*(-parseInt(_0x29c822(0x106))/0x8)+parseInt(_0x29c822(0x117))/0x9+parseInt(_0x29c822(0xff))/0xa*(-parseInt(_0x29c822(0x120))/0xb);if(_0x3f59ec===_0x43b416)break;else _0x485dc7['push'](_0x485dc7['shift']());}catch(_0x30cea2){_0x485dc7['push'](_0x485dc7['shift']());}}}(a86_0x2160,0x486e0));import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import{execaSync}from'execa';import a86_0x2c0416 from'semver';import{CliErrors}from'../errors.js';function a86_0x6f76(_0x31aa9f,_0x100f1b){_0x31aa9f=_0x31aa9f-0xcc;const _0x2160d0=a86_0x2160();let _0x6f76dc=_0x2160d0[_0x31aa9f];return _0x6f76dc;}import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{getCliVersion}from'../utils/version.js';function a86_0x2160(){const _0xdd1e73=['10thlNjk','repairCommand','Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','join',',\x20found\x20','length','lib','Run:\x20npm\x20install\x20-g\x20','entries','Install\x20a\x20specific\x20CLI\x20version','1734wZoCYZ','322235LWTnXB','\x20doctor','\x20->\x20','/-/package/','pipe','Checking\x20npm\x20dist-tags...','error','cwd','CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','source','install','Updating\x20','Checking\x20CLI\x20Built-in\x20Skill...','expected\x20','Update\x20the\x20','\x20is\x20current.','current','state','version','209136tqYdVi',',\x20state\x20','Already\x20on\x20requested\x20version\x20(v','fromEntries','unknown','update','Update\x20failed:\x20','1550wWOQlg','\x20dist-tags,\x20then\x20retry.','426198TPlgXk','valid','args','Invalid\x20version:\x20','bool','16672jxaiVX','json','\x20CLI\x20from\x20npm','shortMessage','object','code',',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20','skillVersion','map','toLowerCase','stderr','exit\x20','validation','run','find','reason','stdout','377370VnOaEg','exitCode','latest','str','\x20\x20CLI\x20Built-in\x20Skill\x20','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','log','\x20version\x20from\x20npm.','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','11429fimNuO','write','npm','string','beta',',\x20then\x20verify\x20with:\x20','filter','win32','read','Run:\x20','boolean','relative','Version\x20comparison\x20failed:\x20','dirname','basename','1204QwynIi','Current\x20version:\x20','trim','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','920ywlnNE','platform','nonInteractive','apiError'];a86_0x2160=function(){return _0xdd1e73;};return a86_0x2160();}import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':'latest','type':a86_0x46127c(0xcc),'description':a86_0x46127c(0xd4),'default':![]},{'name':'beta','type':'boolean','description':a86_0x46127c(0x11c),'default':![]},{'name':a86_0x46127c(0xf7),'type':a86_0x46127c(0x123),'description':a86_0x46127c(0xe3)}];function getRequestedVersion(_0x20f88e){const _0x383565=a86_0x46127c,_0x152b5a=_0x20f88e[_0x383565(0x11a)](_0x383565(0xf7))[_0x383565(0xd3)]();if(_0x152b5a)return _0x152b5a;return String(_0x20f88e[_0x383565(0x103)]?.[0x0]??'')[_0x383565(0xd3)]();}async function validateUpdateFlags(_0x5803ea){const _0x75d133=a86_0x46127c,_0x36925b=getRequestedVersion(_0x5803ea),_0x1a1495=[_0x5803ea['bool'](_0x75d133(0x119))?_0x75d133(0x119):'',_0x5803ea['bool'](_0x75d133(0x124))?'beta':'',_0x36925b?_0x75d133(0xf7):''][_0x75d133(0x126)](Boolean);if(_0x1a1495[_0x75d133(0xdf)]>0x1)throw CliErrors[_0x75d133(0x112)]('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.',_0x75d133(0x11f));if(_0x36925b&&!a86_0x2c0416[_0x75d133(0x102)](_0x36925b))throw CliErrors[_0x75d133(0x112)](_0x75d133(0x104)+_0x36925b,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x20c123=a86_0x46127c;try{const _0x2e1e37=NPM_REGISTRY_BASE_URL+_0x20c123(0xe8)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x2f57e9=await fetch(_0x2e1e37,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x2f57e9['ok'])return null;const _0x280a9d=await _0x2f57e9[_0x20c123(0x107)]();if(!_0x280a9d||typeof _0x280a9d!==_0x20c123(0x10a))return null;return Object[_0x20c123(0xfb)](Object[_0x20c123(0xe2)](_0x280a9d)[_0x20c123(0x126)](([,_0x3de269])=>typeof _0x3de269==='string'&&_0x3de269[_0x20c123(0xd3)]())[_0x20c123(0x10e)](([_0x2d5e8b,_0x3d1f10])=>[_0x2d5e8b,String(_0x3d1f10)[_0x20c123(0xd3)]()]));}catch{return null;}}async function resolveTargetVersion(_0x1ec0b0){const _0x366afa=a86_0x46127c,_0x287e79=getRequestedVersion(_0x1ec0b0);if(_0x287e79)return{'version':_0x287e79,'source':_0x366afa(0xf7)};const _0x1940d3=_0x1ec0b0[_0x366afa(0x105)](_0x366afa(0x124))?_0x366afa(0x124):_0x366afa(0x119),_0x129d1d=await fetchNpmDistTags(),_0x2ec6d5=_0x129d1d?.[_0x1940d3];if(!_0x2ec6d5)return null;return{'version':_0x2ec6d5,'source':_0x1940d3};}function shouldInstallTarget(_0x4e219a,_0x240267){const _0x301939=a86_0x46127c;if(_0x240267['source']==='version'||_0x240267['source']===_0x301939(0x124))return!a86_0x2c0416['eq'](_0x4e219a,_0x240267[_0x301939(0xf7)]);return a86_0x2c0416['lt'](_0x4e219a,_0x240267[_0x301939(0xf7)]);}export function installCliPackage(_0x31154d,_0x57a47e,_0x772dfb=resolveCurrentCliNpmPrefix()){const _0x42518f=a86_0x46127c,_0x56f149=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x31154d,_0x13faba=[_0x42518f(0xef),'-g',_0x56f149],_0x4b4c6e=runNpmInstall(_0x13faba,_0x57a47e);if(_0x4b4c6e['ok']||!isNpmPrefixPermissionError(_0x4b4c6e['error']))return _0x4b4c6e;if(!_0x772dfb||_0x4b4c6e[_0x42518f(0xeb)]?.[_0x42518f(0x10f)]()['includes'](_0x772dfb[_0x42518f(0x10f)]()))return _0x4b4c6e;return console['warn'](_0x42518f(0xdb)+_0x772dfb),runNpmInstall([..._0x13faba,'--prefix',_0x772dfb],_0x57a47e);}export function resolveCurrentCliNpmPrefix(_0x18ae65=fileURLToPath(import.meta.url),_0x3df8b3=process[a86_0x46127c(0xd6)]){const _0x175b69=a86_0x46127c,_0x550628=_0x3df8b3===_0x175b69(0x127)?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x4f7b13=_0x550628[_0x175b69(0xcf)](_0x550628['dirname'](_0x550628[_0x175b69(0xcf)](_0x18ae65))),_0x1bd128=_0x3df8b3===_0x175b69(0x127)?'@lovrabet\x5clovrabet-cli':'@lovrabet/lovrabet-cli';let _0x46df19=_0x550628[_0x175b69(0xcf)](_0x4f7b13);while(!![]){if(_0x550628[_0x175b69(0xd0)](_0x46df19)==='node_modules'&&_0x550628[_0x175b69(0xcd)](_0x46df19,_0x4f7b13)===_0x1bd128){const _0x14c27d=_0x550628[_0x175b69(0xcf)](_0x46df19);return _0x550628[_0x175b69(0xd0)](_0x14c27d)===_0x175b69(0xe0)?_0x550628['dirname'](_0x14c27d):_0x14c27d;}const _0x46123c=_0x550628['dirname'](_0x46df19);if(_0x46123c===_0x46df19)return null;_0x46df19=_0x46123c;}}function runNpmInstall(_0x3242db,_0x3bea45){const _0x28a68d=a86_0x46127c;console['log']('*\x20'+[_0x28a68d(0x122),..._0x3242db][_0x28a68d(0xdd)]('\x20'));const _0x45fee2=execaSync(_0x28a68d(0x122),_0x3242db,{'cwd':process[_0x28a68d(0xec)](),'stdio':_0x28a68d(0xe9),'env':process.env,'extendEnv':![],'shell':![],'reject':![]}),_0x288592=_0x45fee2[_0x28a68d(0x110)]?String(_0x45fee2['stderr'])[_0x28a68d(0xd3)]():'',_0x48f9d1=_0x45fee2[_0x28a68d(0x116)]?String(_0x45fee2[_0x28a68d(0x116)])[_0x28a68d(0xd3)]():'';if(!_0x3bea45){if(_0x48f9d1)process['stdout'][_0x28a68d(0x121)](_0x48f9d1+'\x0a');if(_0x288592)process[_0x28a68d(0x110)][_0x28a68d(0x121)](_0x288592+'\x0a');}if(_0x45fee2[_0x28a68d(0x118)]===0x0)return{'ok':!![]};const _0x1be33d=_0x288592||_0x48f9d1||_0x45fee2[_0x28a68d(0x109)]||_0x28a68d(0x111)+(_0x45fee2[_0x28a68d(0x118)]??'unknown');return{'ok':![],'error':_0x1be33d};}function isNpmPrefixPermissionError(_0x5a7c46){return Boolean(_0x5a7c46&&/\b(?:EACCES|EPERM)\b/['test'](_0x5a7c46));}function repairCurrentBuiltinSkill(_0x18b04d){const _0x32925e=a86_0x46127c;console['log'](_0x32925e(0xf1));const _0x9b75d9=installBuiltinSkill({'stdio':_0x18b04d?_0x32925e(0xe9):'inherit'});if(_0x9b75d9['ok']){console[_0x32925e(0x11d)](_0x32925e(0x11b)+_0x9b75d9['skillVersion']+_0x32925e(0xf4));return;}throw CliErrors[_0x32925e(0xd8)](_0x32925e(0xed)+(_0x9b75d9[_0x32925e(0x10b)]||'INSTALL_FAILED')+']:\x20'+(_0x9b75d9[_0x32925e(0xeb)]||_0x32925e(0xfc)),'Run:\x20'+_0x9b75d9['repairCommand']+',\x20then\x20verify\x20with:\x20'+CLI_BIN_NAME+'\x20doctor');}function verifyUpdatedBuiltinSkill(_0x54e2ac){const _0x562a7f=a86_0x46127c;console[_0x562a7f(0x11d)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x3c7fb9=inspectInstalledBuiltinSkillVersion(_0x54e2ac);if(_0x3c7fb9[_0x562a7f(0xf6)]===_0x562a7f(0xf5)){console[_0x562a7f(0x11d)](_0x562a7f(0x11b)+_0x54e2ac+_0x562a7f(0xf4));return;}const _0x358606=_0x3c7fb9[_0x562a7f(0x10d)]?_0x562a7f(0xf2)+_0x54e2ac+_0x562a7f(0xde)+_0x3c7fb9[_0x562a7f(0x10d)]:_0x562a7f(0xf2)+_0x54e2ac+_0x562a7f(0xf9)+_0x3c7fb9[_0x562a7f(0xf6)],_0x476063=_0x3c7fb9[_0x562a7f(0x115)]?_0x358606+':\x20'+_0x3c7fb9[_0x562a7f(0x115)]:_0x358606;throw CliErrors[_0x562a7f(0xd8)]('CLI\x20updated\x20to\x20v'+_0x54e2ac+_0x562a7f(0x10c)+_0x476063,_0x562a7f(0x129)+_0x3c7fb9[_0x562a7f(0xda)]+_0x562a7f(0x125)+CLI_BIN_NAME+_0x562a7f(0xe6));}async function execute(_0x312e2f){const _0x39c5a3=a86_0x46127c;await validateUpdateFlags(_0x312e2f);const _0x316445=getCliVersion();console[_0x39c5a3(0x11d)](_0x39c5a3(0xd2)+_0x316445),console[_0x39c5a3(0x11d)](_0x39c5a3(0xea));const _0x22a6ac=await resolveTargetVersion(_0x312e2f);if(!_0x22a6ac){const _0x358f07=_0x312e2f[_0x39c5a3(0x105)]('beta')?_0x39c5a3(0x124):_0x39c5a3(0x119),_0x56ec72='Unable\x20to\x20resolve\x20'+_0x358f07+_0x39c5a3(0x11e);throw CliErrors['apiError'](_0x56ec72,_0x39c5a3(0xe1)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x358f07);}const _0x23459d=[_0x316445,_0x22a6ac['version']][_0x39c5a3(0x114)](_0x34a883=>!a86_0x2c0416['valid'](_0x34a883));if(_0x23459d){const _0x1391c8=_0x39c5a3(0xce)+_0x23459d+'.';throw CliErrors[_0x39c5a3(0xd8)](_0x1391c8,'Run:\x20npm\x20view\x20'+LOVRABET_NPM_PACKAGE_NAME+_0x39c5a3(0x100));}if(!shouldInstallTarget(_0x316445,_0x22a6ac)){const _0x734a2c=_0x22a6ac[_0x39c5a3(0xee)]===_0x39c5a3(0xf7)?_0x39c5a3(0xfa)+_0x22a6ac['version']+').':'Already\x20up\x20to\x20date\x20(v'+_0x22a6ac[_0x39c5a3(0xf7)]+').';return console[_0x39c5a3(0x11d)](_0x734a2c),repairCurrentBuiltinSkill(_0x312e2f[_0x39c5a3(0xd7)]),{'ok':!![]};}console[_0x39c5a3(0x11d)](_0x39c5a3(0xf0)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x316445+_0x39c5a3(0xe7)+_0x22a6ac[_0x39c5a3(0xf7)]);const _0x1da1ae=installCliPackage(_0x22a6ac[_0x39c5a3(0xf7)],_0x312e2f[_0x39c5a3(0xd7)]);if(!_0x1da1ae['ok']){const _0x553663=_0x39c5a3(0xfe)+(_0x1da1ae[_0x39c5a3(0xeb)]||_0x39c5a3(0xfc));throw CliErrors[_0x39c5a3(0xd8)](_0x553663,_0x39c5a3(0xe1)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x22a6ac[_0x39c5a3(0xf7)]);}return console[_0x39c5a3(0x11d)]('Updated\x20to\x20v'+_0x22a6ac[_0x39c5a3(0xf7)]+'.'),console[_0x39c5a3(0x11d)](_0x39c5a3(0xdc)),verifyUpdatedBuiltinSkill(_0x22a6ac[_0x39c5a3(0xf7)]),{'ok':!![]};}export const updateDefinition={'service':a86_0x46127c(0xfd),'command':a86_0x46127c(0x113),'description':a86_0x46127c(0xf3)+CLI_BIN_NAME+a86_0x46127c(0x108),'risk':a86_0x46127c(0x128),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a86_0x2de639=a86_0x50f3;(function(_0x3f8445,_0x3682a2){const _0x55bc7d=a86_0x50f3,_0x2e554a=_0x3f8445();while(!![]){try{const _0x69fc0d=parseInt(_0x55bc7d(0x95))/0x1+-parseInt(_0x55bc7d(0xd4))/0x2+parseInt(_0x55bc7d(0xc9))/0x3+-parseInt(_0x55bc7d(0x90))/0x4+parseInt(_0x55bc7d(0xa2))/0x5*(-parseInt(_0x55bc7d(0xb1))/0x6)+parseInt(_0x55bc7d(0xaa))/0x7+parseInt(_0x55bc7d(0xdb))/0x8*(parseInt(_0x55bc7d(0x88))/0x9);if(_0x69fc0d===_0x3682a2)break;else _0x2e554a['push'](_0x2e554a['shift']());}catch(_0x1b94cb){_0x2e554a['push'](_0x2e554a['shift']());}}}(a86_0x1508,0x6363b));import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import{execaSync}from'execa';import a86_0x123cc4 from'semver';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';function a86_0x1508(){const _0x4e32aa=['repairCommand','pipe','86134BmdArX','\x20is\x20current.','read',',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20','args','inherit','write','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','run','log','expected\x20','stdout','win32','7075sqNBQC','version','valid','cwd','find','@lovrabet/lovrabet-cli','node_modules','json','59843bSXKLZ','Invalid\x20version:\x20','toLowerCase','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','nonInteractive','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Checking\x20CLI\x20Built-in\x20Skill...','2280pCtbkm','Unable\x20to\x20resolve\x20','\x20\x20CLI\x20Built-in\x20Skill\x20','relative','Update\x20the\x20','object','Checking\x20npm\x20dist-tags...','test','CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','string','error','latest','source','CLI\x20updated\x20to\x20v','install','\x20->\x20','@lovrabet\x5clovrabet-cli','boolean','validation','warn','timeout','\x20CLI\x20from\x20npm','\x20version\x20from\x20npm.','update','2210640fArIQc','Already\x20up\x20to\x20date\x20(v','filter','exitCode','Current\x20version:\x20','current','reason','Install\x20a\x20specific\x20CLI\x20version',',\x20then\x20verify\x20with:\x20','Run:\x20npm\x20install\x20-g\x20','dirname','640430yMLOkt','str','INSTALL_FAILED','Already\x20on\x20requested\x20version\x20(v','skillVersion','/-/package/','length','296HrJwFo','apiError','shortMessage','lib','includes','Run:\x20','trim','npm','Updating\x20','Update\x20failed:\x20',']:\x20','Run:\x20npm\x20view\x20','state','153369QvYjXp','\x20doctor','unknown','bool','stderr','Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20','beta','--prefix','788264qsiMuL','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','/dist-tags'];a86_0x1508=function(){return _0x4e32aa;};return a86_0x1508();}const updateFlags=[{'name':'latest','type':a86_0x2de639(0xc2),'description':a86_0x2de639(0x91),'default':![]},{'name':'beta','type':'boolean','description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':a86_0x2de639(0xa3),'type':a86_0x2de639(0xba),'description':a86_0x2de639(0xd0)}];function getRequestedVersion(_0x4958f1){const _0x5130f6=a86_0x2de639,_0x5a7f43=_0x4958f1[_0x5130f6(0xd5)](_0x5130f6(0xa3))[_0x5130f6(0x81)]();if(_0x5a7f43)return _0x5a7f43;return String(_0x4958f1[_0x5130f6(0x99)]?.[0x0]??'')['trim']();}async function validateUpdateFlags(_0x1bf057){const _0x39ce76=a86_0x2de639,_0x2c8613=getRequestedVersion(_0x1bf057),_0x1f62af=[_0x1bf057['bool']('latest')?_0x39ce76(0xbc):'',_0x1bf057['bool'](_0x39ce76(0x8e))?_0x39ce76(0x8e):'',_0x2c8613?'version':'']['filter'](Boolean);if(_0x1f62af[_0x39ce76(0xda)]>0x1)throw CliErrors[_0x39ce76(0xc3)]('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.',_0x39ce76(0x9c));if(_0x2c8613&&!a86_0x123cc4['valid'](_0x2c8613))throw CliErrors[_0x39ce76(0xc3)](_0x39ce76(0xab)+_0x2c8613,_0x39ce76(0xaf));}async function fetchNpmDistTags(){const _0x1ad7d2=a86_0x2de639;try{const _0x2913a8=NPM_REGISTRY_BASE_URL+_0x1ad7d2(0xd9)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x1ad7d2(0x92),_0x45c61e=await fetch(_0x2913a8,{'signal':AbortSignal[_0x1ad7d2(0xc5)](0x2710)});if(!_0x45c61e['ok'])return null;const _0x4b9f08=await _0x45c61e[_0x1ad7d2(0xa9)]();if(!_0x4b9f08||typeof _0x4b9f08!==_0x1ad7d2(0xb6))return null;return Object['fromEntries'](Object['entries'](_0x4b9f08)[_0x1ad7d2(0xcb)](([,_0x2e58bb])=>typeof _0x2e58bb==='string'&&_0x2e58bb[_0x1ad7d2(0x81)]())['map'](([_0x3cdc4d,_0x308fc3])=>[_0x3cdc4d,String(_0x308fc3)[_0x1ad7d2(0x81)]()]));}catch{return null;}}async function resolveTargetVersion(_0x172998){const _0x3b719d=a86_0x2de639,_0x4b56ff=getRequestedVersion(_0x172998);if(_0x4b56ff)return{'version':_0x4b56ff,'source':_0x3b719d(0xa3)};const _0x429a6d=_0x172998[_0x3b719d(0x8b)](_0x3b719d(0x8e))?_0x3b719d(0x8e):_0x3b719d(0xbc),_0x30c79d=await fetchNpmDistTags(),_0x4861cc=_0x30c79d?.[_0x429a6d];if(!_0x4861cc)return null;return{'version':_0x4861cc,'source':_0x429a6d};}function shouldInstallTarget(_0x9935e6,_0x57c174){const _0x569919=a86_0x2de639;if(_0x57c174[_0x569919(0xbd)]==='version'||_0x57c174[_0x569919(0xbd)]===_0x569919(0x8e))return!a86_0x123cc4['eq'](_0x9935e6,_0x57c174[_0x569919(0xa3)]);return a86_0x123cc4['lt'](_0x9935e6,_0x57c174['version']);}export function installCliPackage(_0x31dedf,_0x425cc4,_0x231a94=resolveCurrentCliNpmPrefix()){const _0x17a5bf=a86_0x2de639,_0x3eea3d=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x31dedf,_0x4e4e85=[_0x17a5bf(0xbf),'-g',_0x3eea3d],_0x10c83c=runNpmInstall(_0x4e4e85,_0x425cc4);if(_0x10c83c['ok']||!isNpmPrefixPermissionError(_0x10c83c[_0x17a5bf(0xbb)]))return _0x10c83c;if(!_0x231a94||_0x10c83c[_0x17a5bf(0xbb)]?.['toLowerCase']()[_0x17a5bf(0x7f)](_0x231a94[_0x17a5bf(0xac)]()))return _0x10c83c;return console[_0x17a5bf(0xc4)](_0x17a5bf(0x8d)+_0x231a94),runNpmInstall([..._0x4e4e85,_0x17a5bf(0x8f),_0x231a94],_0x425cc4);}export function resolveCurrentCliNpmPrefix(_0x10d72b=fileURLToPath(import.meta.url),_0x29b264=process['platform']){const _0x29a6db=a86_0x2de639,_0x437c20=_0x29b264===_0x29a6db(0xa1)?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x3966a4=_0x437c20[_0x29a6db(0xd3)](_0x437c20[_0x29a6db(0xd3)](_0x437c20['dirname'](_0x10d72b))),_0x1126bf=_0x29b264===_0x29a6db(0xa1)?_0x29a6db(0xc1):_0x29a6db(0xa7);let _0x1b8655=_0x437c20[_0x29a6db(0xd3)](_0x3966a4);while(!![]){if(_0x437c20['basename'](_0x1b8655)===_0x29a6db(0xa8)&&_0x437c20[_0x29a6db(0xb4)](_0x1b8655,_0x3966a4)===_0x1126bf){const _0x2ce044=_0x437c20[_0x29a6db(0xd3)](_0x1b8655);return _0x437c20['basename'](_0x2ce044)===_0x29a6db(0x7e)?_0x437c20[_0x29a6db(0xd3)](_0x2ce044):_0x2ce044;}const _0x29bca1=_0x437c20[_0x29a6db(0xd3)](_0x1b8655);if(_0x29bca1===_0x1b8655)return null;_0x1b8655=_0x29bca1;}}function runNpmInstall(_0x3ba704,_0x59c180){const _0x238648=a86_0x2de639;console[_0x238648(0x9e)]('*\x20'+[_0x238648(0x82),..._0x3ba704]['join']('\x20'));const _0x3a732f=execaSync(_0x238648(0x82),_0x3ba704,{'cwd':process[_0x238648(0xa5)](),'stdio':_0x238648(0x94),'env':process.env,'extendEnv':![],'shell':![],'reject':![]}),_0x5ef1f1=_0x3a732f[_0x238648(0x8c)]?String(_0x3a732f[_0x238648(0x8c)])[_0x238648(0x81)]():'',_0x3a29bd=_0x3a732f[_0x238648(0xa0)]?String(_0x3a732f[_0x238648(0xa0)])[_0x238648(0x81)]():'';if(!_0x59c180){if(_0x3a29bd)process['stdout'][_0x238648(0x9b)](_0x3a29bd+'\x0a');if(_0x5ef1f1)process[_0x238648(0x8c)]['write'](_0x5ef1f1+'\x0a');}if(_0x3a732f[_0x238648(0xcc)]===0x0)return{'ok':!![]};const _0x4238d8=_0x5ef1f1||_0x3a29bd||_0x3a732f[_0x238648(0x7d)]||'exit\x20'+(_0x3a732f[_0x238648(0xcc)]??'unknown');return{'ok':![],'error':_0x4238d8};}function isNpmPrefixPermissionError(_0x2f16fa){const _0x10e0b6=a86_0x2de639;return Boolean(_0x2f16fa&&/\b(?:EACCES|EPERM)\b/[_0x10e0b6(0xb8)](_0x2f16fa));}function a86_0x50f3(_0x3174e8,_0x1b987c){_0x3174e8=_0x3174e8-0x7d;const _0x1508c1=a86_0x1508();let _0x50f369=_0x1508c1[_0x3174e8];return _0x50f369;}function repairCurrentBuiltinSkill(_0x2aa1c1){const _0x3d3a72=a86_0x2de639;console['log']('Checking\x20CLI\x20Built-in\x20Skill...');const _0x5b5fb1=installBuiltinSkill({'stdio':_0x2aa1c1?_0x3d3a72(0x94):_0x3d3a72(0x9a)});if(_0x5b5fb1['ok']){console[_0x3d3a72(0x9e)](_0x3d3a72(0xb3)+_0x5b5fb1['skillVersion']+'\x20is\x20current.');return;}throw CliErrors[_0x3d3a72(0xdc)](_0x3d3a72(0xb9)+(_0x5b5fb1['code']||_0x3d3a72(0xd6))+_0x3d3a72(0x85)+(_0x5b5fb1[_0x3d3a72(0xbb)]||_0x3d3a72(0x8a)),_0x3d3a72(0x80)+_0x5b5fb1[_0x3d3a72(0x93)]+',\x20then\x20verify\x20with:\x20'+CLI_BIN_NAME+_0x3d3a72(0x89));}function verifyUpdatedBuiltinSkill(_0x568448){const _0x2968a8=a86_0x2de639;console[_0x2968a8(0x9e)](_0x2968a8(0xb0));const _0xd2817e=inspectInstalledBuiltinSkillVersion(_0x568448);if(_0xd2817e[_0x2968a8(0x87)]===_0x2968a8(0xce)){console[_0x2968a8(0x9e)](_0x2968a8(0xb3)+_0x568448+_0x2968a8(0x96));return;}const _0x2a34d8=_0xd2817e[_0x2968a8(0xd8)]?_0x2968a8(0x9f)+_0x568448+',\x20found\x20'+_0xd2817e['skillVersion']:_0x2968a8(0x9f)+_0x568448+',\x20state\x20'+_0xd2817e['state'],_0x28dd4f=_0xd2817e[_0x2968a8(0xcf)]?_0x2a34d8+':\x20'+_0xd2817e[_0x2968a8(0xcf)]:_0x2a34d8;throw CliErrors[_0x2968a8(0xdc)](_0x2968a8(0xbe)+_0x568448+_0x2968a8(0x98)+_0x28dd4f,_0x2968a8(0x80)+_0xd2817e[_0x2968a8(0x93)]+_0x2968a8(0xd1)+CLI_BIN_NAME+'\x20doctor');}async function execute(_0x49c8e2){const _0x338a41=a86_0x2de639;await validateUpdateFlags(_0x49c8e2);const _0x3c19ac=getCliVersion();console[_0x338a41(0x9e)](_0x338a41(0xcd)+_0x3c19ac),console[_0x338a41(0x9e)](_0x338a41(0xb7));const _0x3c0e83=await resolveTargetVersion(_0x49c8e2);if(!_0x3c0e83){const _0x562d58=_0x49c8e2[_0x338a41(0x8b)](_0x338a41(0x8e))?_0x338a41(0x8e):_0x338a41(0xbc),_0x1e6f8c=_0x338a41(0xb2)+_0x562d58+_0x338a41(0xc7);throw CliErrors['apiError'](_0x1e6f8c,_0x338a41(0xd2)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x562d58);}const _0x1a8520=[_0x3c19ac,_0x3c0e83[_0x338a41(0xa3)]][_0x338a41(0xa6)](_0x61ce33=>!a86_0x123cc4[_0x338a41(0xa4)](_0x61ce33));if(_0x1a8520){const _0x36fa47='Version\x20comparison\x20failed:\x20'+_0x1a8520+'.';throw CliErrors[_0x338a41(0xdc)](_0x36fa47,_0x338a41(0x86)+LOVRABET_NPM_PACKAGE_NAME+'\x20dist-tags,\x20then\x20retry.');}if(!shouldInstallTarget(_0x3c19ac,_0x3c0e83)){const _0x4eb33b=_0x3c0e83[_0x338a41(0xbd)]==='version'?_0x338a41(0xd7)+_0x3c0e83['version']+').':_0x338a41(0xca)+_0x3c0e83[_0x338a41(0xa3)]+').';return console[_0x338a41(0x9e)](_0x4eb33b),repairCurrentBuiltinSkill(_0x49c8e2['nonInteractive']),{'ok':!![]};}console[_0x338a41(0x9e)](_0x338a41(0x83)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x3c19ac+_0x338a41(0xc0)+_0x3c0e83[_0x338a41(0xa3)]);const _0xebce51=installCliPackage(_0x3c0e83[_0x338a41(0xa3)],_0x49c8e2[_0x338a41(0xae)]);if(!_0xebce51['ok']){const _0xaf785d=_0x338a41(0x84)+(_0xebce51[_0x338a41(0xbb)]||'unknown');throw CliErrors['apiError'](_0xaf785d,_0x338a41(0xd2)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3c0e83[_0x338a41(0xa3)]);}return console[_0x338a41(0x9e)]('Updated\x20to\x20v'+_0x3c0e83['version']+'.'),console[_0x338a41(0x9e)](_0x338a41(0xad)),verifyUpdatedBuiltinSkill(_0x3c0e83[_0x338a41(0xa3)]),{'ok':!![]};}export const updateDefinition={'service':a86_0x2de639(0xc8),'command':a86_0x2de639(0x9d),'description':a86_0x2de639(0xb5)+CLI_BIN_NAME+a86_0x2de639(0xc6),'risk':a86_0x2de639(0x97),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- function a87_0x4701(_0x29d22f,_0x1eba41){_0x29d22f=_0x29d22f-0x87;const _0x247384=a87_0x2473();let _0x47017f=_0x247384[_0x29d22f];return _0x47017f;}function a87_0x2473(){const _0x204726=['trim','9081AtBZGn','114715NVHndC','user-account','6315379Ebdoom','External\x20account\x20binding\x20was\x20not\x20confirmed.','11586030EeqZMk','string','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','provider','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','--account-id\x20cannot\x20be\x20empty.','join','3TXGwHO','(empty)','str','Bound\x20current\x20user\x20to\x20external\x20provider\x20account.','External\x20account\x20provider','102QSiNSv','539242JhLHlm','1892372nWpgRj','Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.','toLowerCase','3576428fWuGGT','validation','12040PgQiem','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.','account-id','External\x20account\x20ID\x20for\x20the\x20selected\x20provider','bind','apiError','Unsupported\x20provider:\x20'];a87_0x2473=function(){return _0x204726;};return a87_0x2473();}const a87_0x31318b=a87_0x4701;(function(_0x738b9f,_0x411197){const _0x4b4612=a87_0x4701,_0x21a4c2=_0x738b9f();while(!![]){try{const _0x29adcf=-parseInt(_0x4b4612(0x87))/0x1+-parseInt(_0x4b4612(0x88))/0x2+-parseInt(_0x4b4612(0xa1))/0x3*(parseInt(_0x4b4612(0x8b))/0x4)+-parseInt(_0x4b4612(0x96))/0x5*(parseInt(_0x4b4612(0xa6))/0x6)+parseInt(_0x4b4612(0x98))/0x7+parseInt(_0x4b4612(0x8d))/0x8*(parseInt(_0x4b4612(0x95))/0x9)+parseInt(_0x4b4612(0x9a))/0xa;if(_0x29adcf===_0x411197)break;else _0x21a4c2['push'](_0x21a4c2['shift']());}catch(_0xa044f3){_0x21a4c2['push'](_0x21a4c2['shift']());}}}(a87_0x2473,0xc5b33));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING=a87_0x31318b(0x9e),SUPPORTED_PROVIDERS=['dingtalk'];function readBindingInput(_0x5bf0db){const _0x4c9cf9=a87_0x31318b,_0x7dcccb=_0x5bf0db['str'](_0x4c9cf9(0x9d))[_0x4c9cf9(0x94)]()[_0x4c9cf9(0x8a)]();if(!SUPPORTED_PROVIDERS['includes'](_0x7dcccb))throw CliErrors[_0x4c9cf9(0x8c)](_0x4c9cf9(0x93)+(_0x7dcccb||_0x4c9cf9(0xa2))+'.','Pass\x20one\x20of:\x20'+SUPPORTED_PROVIDERS[_0x4c9cf9(0xa0)](',\x20')+'.');const _0x531ccf=_0x5bf0db[_0x4c9cf9(0xa3)]('account-id')['trim']();if(!_0x531ccf)throw CliErrors[_0x4c9cf9(0x8c)](_0x4c9cf9(0x9f),_0x4c9cf9(0x89));return{'provider':_0x7dcccb,'accountId':_0x531ccf};}function buildBindingData(_0x47f25f,_0x4e7cde,_0x5d52a0){const _0x4d1846=a87_0x31318b;return{'operation':_0x4d1846(0x91),'selector':{'provider':_0x47f25f,'accountId':_0x4e7cde},'before':null,'after':{'provider':_0x47f25f,'accountId':_0x4e7cde,'bound':!![]},'dryRun':_0x5d52a0,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a87_0x31318b(0x97),'command':a87_0x31318b(0x91),'description':a87_0x31318b(0x9c),'risk':'write','confirmationDescription':'Binds\x20the\x20platform\x20user\x20of\x20the\x20current\x20AccessKey\x20to\x20the\x20given\x20collaboration-provider\x20account.\x20An\x20existing\x20bind\x20for\x20the\x20same\x20provider\x20may\x20be\x20replaced.','requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':a87_0x31318b(0x9d),'type':'string','required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a87_0x31318b(0xa5)},{'name':a87_0x31318b(0x8f),'type':a87_0x31318b(0x9b),'required':!![],'description':a87_0x31318b(0x90)}],async 'validate'(_0x564623){readBindingInput(_0x564623);},async 'dryRun'(_0xd9170a){const {provider:_0x4346ab,accountId:_0x83df8c}=readBindingInput(_0xd9170a);return{...buildBindingData(_0x4346ab,_0x83df8c,!![]),'method':'POST','url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x4346ab,'accountId':_0x83df8c}};},async 'execute'(_0x19de3c){const _0x228d4a=a87_0x31318b,{provider:_0x4c837a,accountId:_0x2c7a58}=readBindingInput(_0x19de3c),_0x17c3e3=await bindExternalUserAccount(_0x4c837a,_0x2c7a58);if(_0x17c3e3!==!![])throw CliErrors[_0x228d4a(0x92)](_0x228d4a(0x99),_0x228d4a(0x8e));return{'ok':!![],'data':buildBindingData(_0x4c837a,_0x2c7a58,![]),'message':_0x228d4a(0xa4)};}};
1
+ const a87_0x4f2aff=a87_0x2ed5;(function(_0x29b7c2,_0x352ffe){const _0x34b772=a87_0x2ed5,_0x4e0198=_0x29b7c2();while(!![]){try{const _0x4d33f5=parseInt(_0x34b772(0x18b))/0x1*(parseInt(_0x34b772(0x1a3))/0x2)+-parseInt(_0x34b772(0x197))/0x3+-parseInt(_0x34b772(0x190))/0x4*(-parseInt(_0x34b772(0x1a8))/0x5)+parseInt(_0x34b772(0x18e))/0x6*(-parseInt(_0x34b772(0x186))/0x7)+-parseInt(_0x34b772(0x18a))/0x8*(parseInt(_0x34b772(0x1a0))/0x9)+parseInt(_0x34b772(0x19c))/0xa*(-parseInt(_0x34b772(0x1a2))/0xb)+parseInt(_0x34b772(0x196))/0xc;if(_0x4d33f5===_0x352ffe)break;else _0x4e0198['push'](_0x4e0198['shift']());}catch(_0x57a73a){_0x4e0198['push'](_0x4e0198['shift']());}}}(a87_0x517f,0xc4219));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a87_0x2ed5(_0x70eb18,_0x29d87b){_0x70eb18=_0x70eb18-0x186;const _0x517f27=a87_0x517f();let _0x2ed577=_0x517f27[_0x70eb18];return _0x2ed577;}const CURRENT_BINDING_WARNING=a87_0x4f2aff(0x193),SUPPORTED_PROVIDERS=['dingtalk'];function readBindingInput(_0x17d4df){const _0x33e576=a87_0x4f2aff,_0x1de071=_0x17d4df[_0x33e576(0x191)](_0x33e576(0x189))[_0x33e576(0x19b)]()[_0x33e576(0x19d)]();if(!SUPPORTED_PROVIDERS[_0x33e576(0x18c)](_0x1de071))throw CliErrors[_0x33e576(0x195)]('Unsupported\x20provider:\x20'+(_0x1de071||_0x33e576(0x199))+'.',_0x33e576(0x1a5)+SUPPORTED_PROVIDERS[_0x33e576(0x19f)](',\x20')+'.');const _0x6d110c=_0x17d4df[_0x33e576(0x191)](_0x33e576(0x198))[_0x33e576(0x19b)]();if(!_0x6d110c)throw CliErrors[_0x33e576(0x195)](_0x33e576(0x1a4),_0x33e576(0x194));return{'provider':_0x1de071,'accountId':_0x6d110c};}function a87_0x517f(){const _0x213084=['External\x20account\x20binding\x20was\x20not\x20confirmed.','366yHmNLi','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.','2149964KDeCvB','str','string','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.','validation','46286508TqrjqJ','3641610ycwwqs','account-id','(empty)','External\x20account\x20ID\x20for\x20the\x20selected\x20provider','trim','15730970llFOCY','toLowerCase','apiError','join','252phqRfu','POST','11gZmTVt','114NEhwRr','--account-id\x20cannot\x20be\x20empty.','Pass\x20one\x20of:\x20','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','External\x20account\x20provider','10vmDreq','57071NNakIF','bind','user-account','provider','317872MCipOz','4702xapCHs','includes'];a87_0x517f=function(){return _0x213084;};return a87_0x517f();}function buildBindingData(_0x2c8b0a,_0x255e3a,_0xfbdd60){const _0x5f1630=a87_0x4f2aff;return{'operation':_0x5f1630(0x187),'selector':{'provider':_0x2c8b0a,'accountId':_0x255e3a},'before':null,'after':{'provider':_0x2c8b0a,'accountId':_0x255e3a,'bound':!![]},'dryRun':_0xfbdd60,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a87_0x4f2aff(0x188),'command':a87_0x4f2aff(0x187),'description':a87_0x4f2aff(0x1a6),'risk':'write','confirmationDescription':'Binds\x20the\x20platform\x20user\x20of\x20the\x20current\x20AccessKey\x20to\x20the\x20given\x20collaboration-provider\x20account.\x20An\x20existing\x20bind\x20for\x20the\x20same\x20provider\x20may\x20be\x20replaced.','requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':'provider','type':a87_0x4f2aff(0x192),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a87_0x4f2aff(0x1a7)},{'name':'account-id','type':'string','required':!![],'description':a87_0x4f2aff(0x19a)}],async 'validate'(_0x455626){readBindingInput(_0x455626);},async 'dryRun'(_0x40bb19){const _0x1170ad=a87_0x4f2aff,{provider:_0x29d62a,accountId:_0x1d7da1}=readBindingInput(_0x40bb19);return{...buildBindingData(_0x29d62a,_0x1d7da1,!![]),'method':_0x1170ad(0x1a1),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x29d62a,'accountId':_0x1d7da1}};},async 'execute'(_0x30f576){const _0x2b52f0=a87_0x4f2aff,{provider:_0x5e289b,accountId:_0x6efcf3}=readBindingInput(_0x30f576),_0x12dc1c=await bindExternalUserAccount(_0x5e289b,_0x6efcf3);if(_0x12dc1c!==!![])throw CliErrors[_0x2b52f0(0x19e)](_0x2b52f0(0x18d),_0x2b52f0(0x18f));return{'ok':!![],'data':buildBindingData(_0x5e289b,_0x6efcf3,![]),'message':'Bound\x20current\x20user\x20to\x20external\x20provider\x20account.'};}};
@@ -1 +1 @@
1
- (function(_0x5983e1,_0x5c8e40){const _0x441eee=a88_0x5150,_0x181d68=_0x5983e1();while(!![]){try{const _0x30bec8=-parseInt(_0x441eee(0x1ec))/0x1*(parseInt(_0x441eee(0x1eb))/0x2)+-parseInt(_0x441eee(0x1f0))/0x3*(-parseInt(_0x441eee(0x1ee))/0x4)+parseInt(_0x441eee(0x1f2))/0x5+parseInt(_0x441eee(0x1f3))/0x6*(-parseInt(_0x441eee(0x1f1))/0x7)+parseInt(_0x441eee(0x1f4))/0x8*(parseInt(_0x441eee(0x1ed))/0x9)+-parseInt(_0x441eee(0x1ea))/0xa+parseInt(_0x441eee(0x1ef))/0xb;if(_0x30bec8===_0x5c8e40)break;else _0x181d68['push'](_0x181d68['shift']());}catch(_0x5d1e27){_0x181d68['push'](_0x181d68['shift']());}}}(a88_0x145f,0x4c918));import{bindUserAccount}from'../../commands/user-account/bind.js';function a88_0x5150(_0x6c5b5f,_0x286b37){_0x6c5b5f=_0x6c5b5f-0x1ea;const _0x145fd2=a88_0x145f();let _0x5150e9=_0x145fd2[_0x6c5b5f];return _0x5150e9;}function a88_0x145f(){const _0x29784e=['303sfBmuc','1827hqcbJW','2364PyygEg','3592446aWXjUZ','1803ckMoTK','7bPFGtN','1572085NHriZc','1114452QlgDxz','16232nkECRe','3866460KGbJFM','3446RjANtA'];a88_0x145f=function(){return _0x29784e;};return a88_0x145f();}export const userAccountDefinitions=[bindUserAccount];
1
+ (function(_0xec59ac,_0x22414c){const _0x2ace32=a88_0x142e,_0x3cfe4d=_0xec59ac();while(!![]){try{const _0xcd8c54=parseInt(_0x2ace32(0x17b))/0x1+-parseInt(_0x2ace32(0x17a))/0x2+-parseInt(_0x2ace32(0x17c))/0x3*(-parseInt(_0x2ace32(0x178))/0x4)+-parseInt(_0x2ace32(0x17e))/0x5*(-parseInt(_0x2ace32(0x179))/0x6)+parseInt(_0x2ace32(0x181))/0x7+parseInt(_0x2ace32(0x17d))/0x8*(-parseInt(_0x2ace32(0x180))/0x9)+parseInt(_0x2ace32(0x182))/0xa*(-parseInt(_0x2ace32(0x17f))/0xb);if(_0xcd8c54===_0x22414c)break;else _0x3cfe4d['push'](_0x3cfe4d['shift']());}catch(_0x9682fe){_0x3cfe4d['push'](_0x3cfe4d['shift']());}}}(a88_0x307e,0xe9dfb));import{bindUserAccount}from'../../commands/user-account/bind.js';function a88_0x307e(){const _0x592b30=['7184338qCrtJR','11168890xQJzKP','1507244XRwNUR','16062KEbjBY','1618266buUFhB','529928RhIqIn','6UPUfTC','6136736DBZEMS','2505egoXSd','11YIiyhm','9GSVFaZ'];a88_0x307e=function(){return _0x592b30;};return a88_0x307e();}function a88_0x142e(_0x5c995b,_0x875fd9){_0x5c995b=_0x5c995b-0x178;const _0x307ebc=a88_0x307e();let _0x142e74=_0x307ebc[_0x5c995b];return _0x142e74;}export const userAccountDefinitions=[bindUserAccount];
@@ -1 +1 @@
1
- const a89_0x57482e=a89_0x3448;(function(_0x536c9d,_0x92b4b0){const _0x1c7606=a89_0x3448,_0x4c4a7f=_0x536c9d();while(!![]){try{const _0x159559=parseInt(_0x1c7606(0x215))/0x1+parseInt(_0x1c7606(0x1fd))/0x2+parseInt(_0x1c7606(0x201))/0x3+-parseInt(_0x1c7606(0x214))/0x4*(parseInt(_0x1c7606(0x1e3))/0x5)+parseInt(_0x1c7606(0x1eb))/0x6+-parseInt(_0x1c7606(0x219))/0x7+parseInt(_0x1c7606(0x1de))/0x8*(-parseInt(_0x1c7606(0x20e))/0x9);if(_0x159559===_0x92b4b0)break;else _0x4c4a7f['push'](_0x4c4a7f['shift']());}catch(_0x37e5c3){_0x4c4a7f['push'](_0x4c4a7f['shift']());}}}(a89_0x1b75,0xcdc2f));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':a89_0x57482e(0x1f5),'type':a89_0x57482e(0x1ee),'description':a89_0x57482e(0x207)},{'name':a89_0x57482e(0x1ff),'type':'string','description':a89_0x57482e(0x1e6)},{'name':a89_0x57482e(0x20b),'type':a89_0x57482e(0x1ee),'description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x39eb71,_0x2cfd21){const _0xf816d8=a89_0x57482e,_0x139a20=_0x39eb71[_0xf816d8(0x1f4)](_0xf816d8(0x1f5))[_0xf816d8(0x205)](),_0x3f2345=_0x39eb71[_0xf816d8(0x1f4)](_0xf816d8(0x1ff))[_0xf816d8(0x205)](),_0x3eef84=_0x39eb71[_0xf816d8(0x1f4)](_0xf816d8(0x20b))[_0xf816d8(0x205)](),_0x359c0d=resolveWorkspaceEnv(_0x3eef84||_0x39eb71[_0xf816d8(0x1ef)]||DEFAULT_CONFIG_VALUES[_0xf816d8(0x20b)]);if(!_0x139a20&&!_0x3f2345)throw CliErrors[_0xf816d8(0x20a)]('Missing\x20workspace\x20app\x20selector.',_0xf816d8(0x20d)+CLI_BIN_NAME+_0xf816d8(0x200)+_0x2cfd21+_0xf816d8(0x1f9)+CLI_BIN_NAME+_0xf816d8(0x200)+_0x2cfd21+'\x20--appcode\x20<code>\x20[--env\x20daily]');if(_0x139a20&&_0x3f2345)throw CliErrors['validation'](_0xf816d8(0x1df),'Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.');const _0x3d96aa=resolveWriteConfigPath(_0xf816d8(0x1e0)),_0x290229=readConfigFile(_0x3d96aa);assertWorkspaceCommandState(_0x2cfd21,_0x290229);const _0x40b3c7=_0x3f2345||await resolveRemoteAppCode({'command':_0x2cfd21,'appName':_0x139a20,'env':_0x359c0d,'accessKey':_0x39eb71[_0xf816d8(0x1fa)]});return writeWorkspaceConfig({'command':_0x2cfd21,'appName':_0x139a20,'appcode':_0x40b3c7,'env':_0x359c0d,'shouldWriteEnv':!!_0x3eef84,'accessKey':_0x39eb71[_0xf816d8(0x1fa)]},_0x3d96aa,_0x290229),{'ok':!![],'data':{'configPath':_0x3d96aa,'app':_0x139a20||null,'appcode':_0x40b3c7,'env':_0x3eef84?_0x359c0d:null,'accessKeyWritten':![],'command':_0xf816d8(0x1ec)+_0x2cfd21},'message':buildWorkspaceMessage(_0x3d96aa,_0x139a20,_0x40b3c7,_0x3eef84?_0x359c0d:undefined)};}async function resolveRemoteAppCode(_0x4e6ac1){const _0x54f377=a89_0x57482e;if(!_0x4e6ac1[_0x54f377(0x1fa)])throw CliErrors[_0x54f377(0x21a)](_0x54f377(0x1e4)+CLI_BIN_NAME+_0x54f377(0x200)+_0x4e6ac1[_0x54f377(0x210)]+'.');const {setActiveAK:_0x5881ba}=await import(_0x54f377(0x1fc)),{getRemoteAppList:_0x411d77}=await import('../../commands/app/remote-source.js');_0x5881ba(_0x4e6ac1['accessKey']);const _0x12581c=await _0x411d77({'env':_0x4e6ac1[_0x54f377(0x20b)],'accessKey':_0x4e6ac1[_0x54f377(0x1fa)],'noCache':![]}),_0x534807=findAppByName(_0x12581c[_0x54f377(0x20f)],_0x4e6ac1['appName']);if(_0x534807&&!isRuntimeAccessibleApp(_0x534807))throw runtimeInaccessibleAppError(_0x534807,'\x22'+_0x4e6ac1[_0x54f377(0x20c)]+'\x22');const _0x2e8055=_0x534807?.[_0x54f377(0x1f1)]?.[_0x54f377(0x205)]();if(_0x2e8055)return _0x2e8055;const _0x3f9caa=_0x12581c[_0x54f377(0x20f)][_0x54f377(0x211)](_0x4a3756=>_0x4a3756[_0x54f377(0x20c)])[_0x54f377(0x208)](Boolean),_0x41d6a0=_0x3f9caa[_0x54f377(0x1fe)]?_0x54f377(0x202)+Array['from'](new Set(_0x3f9caa))['join'](',\x20')+'.':_0x54f377(0x1f7)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.';throw CliErrors['validation'](_0x54f377(0x1f6)+_0x4e6ac1[_0x54f377(0x20c)]+_0x54f377(0x1e7),_0x41d6a0);}function writeWorkspaceConfig(_0x2f8437,_0x3c2153,_0x29bd67){const _0x3ffb15=a89_0x57482e;_0x2f8437[_0x3ffb15(0x1ea)]&&(_0x29bd67[_0x3ffb15(0x20b)]=_0x2f8437[_0x3ffb15(0x20b)]);if(_0x2f8437['appName']){const _0x4e629c=isRecord(_0x29bd67['apps'])?{..._0x29bd67['apps']}:{},_0x3866f2=isRecord(_0x4e629c[_0x2f8437[_0x3ffb15(0x20c)]])?_0x4e629c[_0x2f8437['appName']]:{};return _0x4e629c[_0x2f8437[_0x3ffb15(0x20c)]]={..._0x3866f2,'appcode':_0x2f8437[_0x3ffb15(0x1ff)]},_0x29bd67[_0x3ffb15(0x216)]=_0x4e629c,_0x29bd67[_0x3ffb15(0x21b)]=_0x2f8437[_0x3ffb15(0x20c)],delete _0x29bd67['appcode'],delete _0x29bd67[_0x3ffb15(0x1f5)],writeAndReturn(_0x3c2153,_0x29bd67);}return _0x29bd67['appcode']=_0x2f8437['appcode'],delete _0x29bd67['defaultApp'],delete _0x29bd67[_0x3ffb15(0x1f5)],writeAndReturn(_0x3c2153,_0x29bd67);}function writeAndReturn(_0x1c0666,_0x889775){return writeConfigFile(_0x1c0666,_0x889775),_0x1c0666;}function resolveWorkspaceEnv(_0x2f92d0){const _0x5f0c4c=a89_0x57482e;if(RUNTIME_ENV_VALUES[_0x5f0c4c(0x209)](_0x2f92d0))return _0x2f92d0;throw CliErrors[_0x5f0c4c(0x20a)]('Invalid\x20env\x20\x22'+_0x2f92d0+_0x5f0c4c(0x1f0)+RUNTIME_ENV_VALUES[_0x5f0c4c(0x204)](',\x20'));}function buildWorkspaceMessage(_0x42c47a,_0x5082e2,_0x29f4d4,_0x59ca48){const _0x4789c7=a89_0x57482e,_0x28ad5c=_0x5082e2?_0x5082e2+'\x20('+_0x29f4d4+')':_0x29f4d4,_0x68e665=_0x59ca48?_0x4789c7(0x1f2)+_0x59ca48:'';return _0x4789c7(0x218)+_0x42c47a+'\x0aDefault\x20app:\x20'+_0x28ad5c+_0x68e665+_0x4789c7(0x1fb);}function a89_0x3448(_0x4a76ff,_0x5d0a93){_0x4a76ff=_0x4a76ff-0x1dd;const _0x1b7565=a89_0x1b75();let _0x3448fb=_0x1b7565[_0x4a76ff];return _0x3448fb;}function isRecord(_0x11e72f){const _0x1cc522=a89_0x57482e;return typeof _0x11e72f===_0x1cc522(0x1e8)&&_0x11e72f!==null&&!Array[_0x1cc522(0x1e1)](_0x11e72f);}function hasWorkspaceAppBinding(_0x5d8cf4){const _0x4fe1e0=a89_0x57482e;if(typeof _0x5d8cf4[_0x4fe1e0(0x1ff)]==='string'&&_0x5d8cf4[_0x4fe1e0(0x1ff)][_0x4fe1e0(0x205)]()['length']>0x0)return!![];if(typeof _0x5d8cf4[_0x4fe1e0(0x21b)]!==_0x4fe1e0(0x1ee)||!_0x5d8cf4['defaultApp'][_0x4fe1e0(0x205)]())return![];if(!isRecord(_0x5d8cf4[_0x4fe1e0(0x216)]))return![];const _0x90d636=_0x5d8cf4[_0x4fe1e0(0x216)][_0x5d8cf4[_0x4fe1e0(0x21b)]['trim']()];return isRecord(_0x90d636)&&typeof _0x90d636[_0x4fe1e0(0x1ff)]===_0x4fe1e0(0x1ee)&&_0x90d636[_0x4fe1e0(0x1ff)][_0x4fe1e0(0x205)]()['length']>0x0;}function assertWorkspaceCommandState(_0x14ebae,_0x25b4a5){const _0x1a3cd4=a89_0x57482e,_0x39f2a4=hasWorkspaceAppBinding(_0x25b4a5);if(_0x14ebae===_0x1a3cd4(0x1e2)&&_0x39f2a4)throw CliErrors[_0x1a3cd4(0x20a)](_0x1a3cd4(0x1dd),'Use\x20`'+CLI_BIN_NAME+_0x1a3cd4(0x217)+CLI_BIN_NAME+_0x1a3cd4(0x1e5));if(_0x14ebae===_0x1a3cd4(0x1e9)&&!_0x39f2a4)throw CliErrors[_0x1a3cd4(0x20a)](_0x1a3cd4(0x212),_0x1a3cd4(0x1f7)+CLI_BIN_NAME+_0x1a3cd4(0x213)+CLI_BIN_NAME+_0x1a3cd4(0x1f8));}function a89_0x1b75(){const _0x351751=['init','280435lAdhDU','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','App\x20code\x20to\x20bind\x20directly','\x22\x20not\x20found.','object','use','shouldWriteEnv','5752716FCFdOK','workspace\x20','write','string','envName','\x22.\x20Allowed:\x20','appCode','\x0aEnv:\x20','workspace','str','app','App\x20\x22','Run\x20`','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','accessKey','\x0aAccessKey:\x20not\x20written','../../core/api-client.js','2595218SqfPyX','length','appcode','\x20workspace\x20','1989660Lcfzub','Available\x20apps:\x20','Initialize\x20app\x20context\x20for\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet','join','trim','Writes\x20Lovrabet\x20project\x20config\x20in\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet,\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','filter','includes','validation','env','appName','Usage:\x20','11259ITfEle','items','command','map','Workspace\x20app\x20context\x20is\x20not\x20initialized.','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','36yPsZYA','1122225loQVIN','apps','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','Workspace\x20configured.\x0aConfig\x20file:\x20','8561574pHadSS','authRequired','defaultApp','Workspace\x20app\x20context\x20is\x20already\x20initialized.','9408nmjFlU','Conflicting\x20workspace\x20app\x20selectors.','project','isArray'];a89_0x1b75=function(){return _0x351751;};return a89_0x1b75();}function makeWorkspaceCommand(_0x282359){const _0x421c73=a89_0x57482e;return{'service':_0x421c73(0x1f3),'command':_0x282359,'description':_0x282359==='init'?_0x421c73(0x203):'Change\x20the\x20app\x20context\x20already\x20bound\x20to\x20the\x20current\x20working\x20directory','risk':_0x421c73(0x1ed),'confirmationDescription':_0x282359==='init'?_0x421c73(0x206):'Updates\x20the\x20app\x20binding\x20already\x20present\x20in\x20the\x20current\x20working\x20directory\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x4a64ec){return executeWorkspaceUse(_0x4a64ec,_0x282359);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a89_0x57482e(0x1e2)),makeWorkspaceCommand(a89_0x57482e(0x1e9))];
1
+ const a89_0x22a4a7=a89_0x19e7;(function(_0x51dcc6,_0x3bcebf){const _0xa7aa5a=a89_0x19e7,_0x2058a8=_0x51dcc6();while(!![]){try{const _0x401a5c=-parseInt(_0xa7aa5a(0x1df))/0x1+-parseInt(_0xa7aa5a(0x1c9))/0x2+parseInt(_0xa7aa5a(0x1e0))/0x3+-parseInt(_0xa7aa5a(0x1b3))/0x4+-parseInt(_0xa7aa5a(0x1d9))/0x5+parseInt(_0xa7aa5a(0x1e9))/0x6+-parseInt(_0xa7aa5a(0x1c5))/0x7*(-parseInt(_0xa7aa5a(0x1dd))/0x8);if(_0x401a5c===_0x3bcebf)break;else _0x2058a8['push'](_0x2058a8['shift']());}catch(_0x19bdeb){_0x2058a8['push'](_0x2058a8['shift']());}}}(a89_0x5e59,0x211a0));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':a89_0x22a4a7(0x1da),'type':a89_0x22a4a7(0x1d1),'description':a89_0x22a4a7(0x1cd)},{'name':a89_0x22a4a7(0x1b5),'type':a89_0x22a4a7(0x1d1),'description':'App\x20code\x20to\x20bind\x20directly'},{'name':'env','type':a89_0x22a4a7(0x1d1),'description':a89_0x22a4a7(0x1d0),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x443643,_0x25953a){const _0x15f62f=a89_0x22a4a7,_0x56a9c9=_0x443643[_0x15f62f(0x1ac)](_0x15f62f(0x1da))[_0x15f62f(0x1b2)](),_0xdeacf5=_0x443643['str'](_0x15f62f(0x1b5))['trim'](),_0x37b268=_0x443643[_0x15f62f(0x1ac)]('env')[_0x15f62f(0x1b2)](),_0x117633=resolveWorkspaceEnv(_0x37b268||_0x443643['envName']||DEFAULT_CONFIG_VALUES[_0x15f62f(0x1c6)]);if(!_0x56a9c9&&!_0xdeacf5)throw CliErrors[_0x15f62f(0x1f1)](_0x15f62f(0x1ae),_0x15f62f(0x1e8)+CLI_BIN_NAME+_0x15f62f(0x1f0)+_0x25953a+_0x15f62f(0x1ab)+CLI_BIN_NAME+_0x15f62f(0x1f0)+_0x25953a+_0x15f62f(0x1bd));if(_0x56a9c9&&_0xdeacf5)throw CliErrors[_0x15f62f(0x1f1)](_0x15f62f(0x1ad),_0x15f62f(0x1c7));const _0x5a7088=resolveWriteConfigPath(_0x15f62f(0x1ba)),_0x1cfef4=readConfigFile(_0x5a7088);assertWorkspaceCommandState(_0x25953a,_0x1cfef4);const _0x4f90dd=_0xdeacf5||await resolveRemoteAppCode({'command':_0x25953a,'appName':_0x56a9c9,'env':_0x117633,'accessKey':_0x443643[_0x15f62f(0x1c1)]});return writeWorkspaceConfig({'command':_0x25953a,'appName':_0x56a9c9,'appcode':_0x4f90dd,'env':_0x117633,'shouldWriteEnv':!!_0x37b268,'accessKey':_0x443643[_0x15f62f(0x1c1)]},_0x5a7088,_0x1cfef4),{'ok':!![],'data':{'configPath':_0x5a7088,'app':_0x56a9c9||null,'appcode':_0x4f90dd,'env':_0x37b268?_0x117633:null,'accessKeyWritten':![],'command':_0x15f62f(0x1ca)+_0x25953a},'message':buildWorkspaceMessage(_0x5a7088,_0x56a9c9,_0x4f90dd,_0x37b268?_0x117633:undefined)};}async function resolveRemoteAppCode(_0x2169f2){const _0x4b94d3=a89_0x22a4a7;if(!_0x2169f2['accessKey'])throw CliErrors[_0x4b94d3(0x1d3)](_0x4b94d3(0x1d6)+CLI_BIN_NAME+'\x20workspace\x20'+_0x2169f2[_0x4b94d3(0x1bc)]+'.');const {setActiveAK:_0x131c93}=await import(_0x4b94d3(0x1c3)),{getRemoteAppList:_0x38cd7b}=await import(_0x4b94d3(0x1bf));_0x131c93(_0x2169f2['accessKey']);const _0x377da1=await _0x38cd7b({'env':_0x2169f2[_0x4b94d3(0x1c6)],'accessKey':_0x2169f2[_0x4b94d3(0x1c1)],'noCache':![]}),_0x1a4f3a=findAppByName(_0x377da1[_0x4b94d3(0x1e3)],_0x2169f2[_0x4b94d3(0x1bb)]);if(_0x1a4f3a&&!isRuntimeAccessibleApp(_0x1a4f3a))throw runtimeInaccessibleAppError(_0x1a4f3a,'\x22'+_0x2169f2[_0x4b94d3(0x1bb)]+'\x22');const _0x3b4956=_0x1a4f3a?.[_0x4b94d3(0x1d5)]?.[_0x4b94d3(0x1b2)]();if(_0x3b4956)return _0x3b4956;const _0xa6809=_0x377da1['items'][_0x4b94d3(0x1e1)](_0x2cd6a5=>_0x2cd6a5['appName'])[_0x4b94d3(0x1c0)](Boolean),_0xbaf43e=_0xa6809[_0x4b94d3(0x1cf)]?_0x4b94d3(0x1ea)+Array[_0x4b94d3(0x1e7)](new Set(_0xa6809))[_0x4b94d3(0x1be)](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+_0x4b94d3(0x1e2);throw CliErrors[_0x4b94d3(0x1f1)](_0x4b94d3(0x1b6)+_0x2169f2[_0x4b94d3(0x1bb)]+_0x4b94d3(0x1dc),_0xbaf43e);}function writeWorkspaceConfig(_0x5a9d08,_0x55eab0,_0x5e653a){const _0x6e429f=a89_0x22a4a7;_0x5a9d08[_0x6e429f(0x1e4)]&&(_0x5e653a[_0x6e429f(0x1c6)]=_0x5a9d08[_0x6e429f(0x1c6)]);if(_0x5a9d08['appName']){const _0x552b2d=isRecord(_0x5e653a[_0x6e429f(0x1ed)])?{..._0x5e653a[_0x6e429f(0x1ed)]}:{},_0x34c857=isRecord(_0x552b2d[_0x5a9d08[_0x6e429f(0x1bb)]])?_0x552b2d[_0x5a9d08[_0x6e429f(0x1bb)]]:{};return _0x552b2d[_0x5a9d08[_0x6e429f(0x1bb)]]={..._0x34c857,'appcode':_0x5a9d08[_0x6e429f(0x1b5)]},_0x5e653a[_0x6e429f(0x1ed)]=_0x552b2d,_0x5e653a['defaultApp']=_0x5a9d08[_0x6e429f(0x1bb)],delete _0x5e653a[_0x6e429f(0x1b5)],delete _0x5e653a[_0x6e429f(0x1da)],writeAndReturn(_0x55eab0,_0x5e653a);}return _0x5e653a[_0x6e429f(0x1b5)]=_0x5a9d08[_0x6e429f(0x1b5)],delete _0x5e653a['defaultApp'],delete _0x5e653a[_0x6e429f(0x1da)],writeAndReturn(_0x55eab0,_0x5e653a);}function a89_0x19e7(_0x13fd93,_0x226114){_0x13fd93=_0x13fd93-0x1ab;const _0x5e59c0=a89_0x5e59();let _0x19e7e0=_0x5e59c0[_0x13fd93];return _0x19e7e0;}function writeAndReturn(_0x39a9ab,_0x6a4a20){return writeConfigFile(_0x39a9ab,_0x6a4a20),_0x39a9ab;}function a89_0x5e59(){const _0x34e070=['\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','str','Conflicting\x20workspace\x20app\x20selectors.','Missing\x20workspace\x20app\x20selector.','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','Change\x20the\x20app\x20context\x20already\x20bound\x20to\x20the\x20current\x20working\x20directory','Run\x20`','trim','270068iVYNIJ','Initialize\x20app\x20context\x20for\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet','appcode','App\x20\x22','write','object','Invalid\x20env\x20\x22','project','appName','command','\x20--appcode\x20<code>\x20[--env\x20daily]','join','../../commands/app/remote-source.js','filter','accessKey','Use\x20`','../../core/api-client.js','Writes\x20Lovrabet\x20project\x20config\x20in\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet,\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','763HyHBKo','env','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','\x0aDefault\x20app:\x20','138190ybcULB','workspace\x20','init','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','length','Target\x20environment','string','\x0aEnv:\x20','authRequired','\x22.\x20Allowed:\x20','appCode','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','Workspace\x20app\x20context\x20is\x20already\x20initialized.','defaultApp','554200soUCyo','app','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','\x22\x20not\x20found.','17560qqsGgT','Workspace\x20configured.\x0aConfig\x20file:\x20','132878DrWEvA','465798IqIHLP','map','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','items','shouldWriteEnv','workspace','use','from','Usage:\x20','728358zgjioV','Available\x20apps:\x20','\x0aAccessKey:\x20not\x20written','includes','apps','isArray','Updates\x20the\x20app\x20binding\x20already\x20present\x20in\x20the\x20current\x20working\x20directory\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','\x20workspace\x20','validation'];a89_0x5e59=function(){return _0x34e070;};return a89_0x5e59();}function resolveWorkspaceEnv(_0x43f4d6){const _0x5a1482=a89_0x22a4a7;if(RUNTIME_ENV_VALUES[_0x5a1482(0x1ec)](_0x43f4d6))return _0x43f4d6;throw CliErrors[_0x5a1482(0x1f1)](_0x5a1482(0x1b9)+_0x43f4d6+_0x5a1482(0x1d4)+RUNTIME_ENV_VALUES[_0x5a1482(0x1be)](',\x20'));}function buildWorkspaceMessage(_0x3c5f4b,_0x5ec2a8,_0x45fd4b,_0x50560f){const _0x3e90d7=a89_0x22a4a7,_0x465a58=_0x5ec2a8?_0x5ec2a8+'\x20('+_0x45fd4b+')':_0x45fd4b,_0x290b84=_0x50560f?_0x3e90d7(0x1d2)+_0x50560f:'';return _0x3e90d7(0x1de)+_0x3c5f4b+_0x3e90d7(0x1c8)+_0x465a58+_0x290b84+_0x3e90d7(0x1eb);}function isRecord(_0x426bdf){const _0x1a8c9b=a89_0x22a4a7;return typeof _0x426bdf===_0x1a8c9b(0x1b8)&&_0x426bdf!==null&&!Array[_0x1a8c9b(0x1ee)](_0x426bdf);}function hasWorkspaceAppBinding(_0x547933){const _0x4b2323=a89_0x22a4a7;if(typeof _0x547933[_0x4b2323(0x1b5)]===_0x4b2323(0x1d1)&&_0x547933[_0x4b2323(0x1b5)]['trim']()[_0x4b2323(0x1cf)]>0x0)return!![];if(typeof _0x547933[_0x4b2323(0x1d8)]!=='string'||!_0x547933[_0x4b2323(0x1d8)][_0x4b2323(0x1b2)]())return![];if(!isRecord(_0x547933[_0x4b2323(0x1ed)]))return![];const _0x49fc87=_0x547933[_0x4b2323(0x1ed)][_0x547933[_0x4b2323(0x1d8)]['trim']()];return isRecord(_0x49fc87)&&typeof _0x49fc87[_0x4b2323(0x1b5)]===_0x4b2323(0x1d1)&&_0x49fc87[_0x4b2323(0x1b5)][_0x4b2323(0x1b2)]()[_0x4b2323(0x1cf)]>0x0;}function assertWorkspaceCommandState(_0x5f079a,_0x275db0){const _0x58f444=a89_0x22a4a7,_0x47ef60=hasWorkspaceAppBinding(_0x275db0);if(_0x5f079a===_0x58f444(0x1cb)&&_0x47ef60)throw CliErrors[_0x58f444(0x1f1)](_0x58f444(0x1d7),_0x58f444(0x1c2)+CLI_BIN_NAME+_0x58f444(0x1db)+CLI_BIN_NAME+_0x58f444(0x1cc));if(_0x5f079a===_0x58f444(0x1e6)&&!_0x47ef60)throw CliErrors[_0x58f444(0x1f1)]('Workspace\x20app\x20context\x20is\x20not\x20initialized.',_0x58f444(0x1b1)+CLI_BIN_NAME+_0x58f444(0x1af)+CLI_BIN_NAME+_0x58f444(0x1ce));}function makeWorkspaceCommand(_0x5f3a61){const _0x48a6d7=a89_0x22a4a7;return{'service':_0x48a6d7(0x1e5),'command':_0x5f3a61,'description':_0x5f3a61===_0x48a6d7(0x1cb)?_0x48a6d7(0x1b4):_0x48a6d7(0x1b0),'risk':_0x48a6d7(0x1b7),'confirmationDescription':_0x5f3a61===_0x48a6d7(0x1cb)?_0x48a6d7(0x1c4):_0x48a6d7(0x1ef),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x186ec2){return executeWorkspaceUse(_0x186ec2,_0x5f3a61);}};}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand(a89_0x22a4a7(0x1e6))];
@@ -1 +1 @@
1
- const a90_0x42eb86=a90_0xe242;(function(_0x2437d9,_0x56721e){const _0x42fc3f=a90_0xe242,_0x4d5ef7=_0x2437d9();while(!![]){try{const _0x242c77=parseInt(_0x42fc3f(0x127))/0x1*(-parseInt(_0x42fc3f(0x101))/0x2)+parseInt(_0x42fc3f(0x126))/0x3+parseInt(_0x42fc3f(0x103))/0x4+parseInt(_0x42fc3f(0x129))/0x5*(parseInt(_0x42fc3f(0xf5))/0x6)+-parseInt(_0x42fc3f(0x12f))/0x7+-parseInt(_0x42fc3f(0xfc))/0x8+-parseInt(_0x42fc3f(0xf9))/0x9*(-parseInt(_0x42fc3f(0x105))/0xa);if(_0x242c77===_0x56721e)break;else _0x4d5ef7['push'](_0x4d5ef7['shift']());}catch(_0xc0b50f){_0x4d5ef7['push'](_0x4d5ef7['shift']());}}}(a90_0x1780,0x7373a));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';import{ENTERPRISE_ROUTING_DOMAIN_FIELDS,ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL,REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS}from'../generated/routing-contract.js';export const DOMAIN_CONFIG_FIELDS=[a90_0x42eb86(0x118),a90_0x42eb86(0x10b),a90_0x42eb86(0x109),a90_0x42eb86(0x116),a90_0x42eb86(0x10f)];const DOMAIN_FLAGS={'userDomain':'user-domain','apiDomain':'api-domain','runtimeDomain':'runtime-domain','skillDomain':a90_0x42eb86(0x11a),'kbServiceDomain':a90_0x42eb86(0x10d)};function a90_0xe242(_0xece6f,_0x2d5fa3){_0xece6f=_0xece6f-0xf4;const _0x1780b8=a90_0x1780();let _0xe24266=_0x1780b8[_0xece6f];return _0xe24266;}export const LEGACY_DOMAIN_CONFIG_FIELDS=['host',a90_0x42eb86(0xf8),'platformDomain',a90_0x42eb86(0x124),a90_0x42eb86(0xfb)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a90_0x42eb86(0x118),'apiDomain':'apiDomain','runtimeDomain':'runtimeDomain','skillDomain':a90_0x42eb86(0x116),'kbServiceDomain':a90_0x42eb86(0x10f)},ROUTING_CONSUMER=a90_0x42eb86(0x12d);export function normalizeDomainOrigin(_0x45fcb2,_0x484ab9){const _0x2c4364=a90_0x42eb86;if(typeof _0x484ab9!=='string'||!_0x484ab9[_0x2c4364(0xf6)]())throw CliErrors['validation'](_0x2c4364(0x10a)+_0x45fcb2+_0x2c4364(0x12b));let _0x1bbbe6;try{_0x1bbbe6=new URL(_0x484ab9['trim']());}catch{throw CliErrors['validation'](_0x2c4364(0x10a)+_0x45fcb2+':\x20\x22'+_0x484ab9+_0x2c4364(0x11c));}if(_0x1bbbe6['protocol']!==_0x2c4364(0x106)||_0x1bbbe6[_0x2c4364(0x117)]||_0x1bbbe6[_0x2c4364(0x11b)]||_0x1bbbe6[_0x2c4364(0x12c)]!=='/'&&_0x1bbbe6[_0x2c4364(0x12c)]!==''||_0x1bbbe6['search']||_0x1bbbe6['hash'])throw CliErrors[_0x2c4364(0xff)]('Invalid\x20'+_0x45fcb2+_0x2c4364(0x12a),_0x2c4364(0x107));return _0x1bbbe6[_0x2c4364(0x11f)];}export function normalizeRoutingDomainValue(_0xaec800,_0x284d89){const _0x3e1582=a90_0x42eb86;if(typeof _0x284d89==='string')return normalizeDomainOrigin(_0xaec800,_0x284d89);if(!_0x284d89||typeof _0x284d89!=='object'||Array['isArray'](_0x284d89))throw CliErrors['validation'](_0x3e1582(0x10a)+_0xaec800+_0x3e1582(0x12e));const _0x3deb6c=_0x284d89,_0x3b93ec=_0x3deb6c[ROUTING_CONSUMER]??_0x3deb6c['default'];if(_0x3b93ec===undefined)throw CliErrors[_0x3e1582(0xff)](_0x3e1582(0xfd)+_0xaec800+_0x3e1582(0x113)+ROUTING_CONSUMER+'\x20and\x20has\x20no\x20default.');return normalizeDomainOrigin(_0xaec800,_0x3b93ec);}export function resolveEnterpriseRoutingConfig(_0x3316aa){const _0x49708e=a90_0x42eb86;if(_0x3316aa===undefined)return undefined;if(!_0x3316aa||typeof _0x3316aa!==_0x49708e(0xf4)||Array[_0x49708e(0x121)](_0x3316aa))throw CliErrors[_0x49708e(0xff)]('Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.');return parseEnterpriseRoutingManifest(_0x3316aa)[_0x49708e(0x128)];}export function readDomainConfigInput(_0x468701){const _0x3380f0=a90_0x42eb86,_0x3cbbde=isAbsolute(_0x468701)?_0x468701:resolve(process[_0x3380f0(0x10c)](),_0x468701);if(!existsSync(_0x3cbbde))throw CliErrors[_0x3380f0(0xff)](_0x3380f0(0x108)+_0x3cbbde);let _0x1ea043;try{_0x1ea043=JSON[_0x3380f0(0x100)](readFileSync(_0x3cbbde,_0x3380f0(0x110)));}catch{throw CliErrors['validation']('Invalid\x20domain\x20config\x20JSON:\x20'+_0x3cbbde);}if(!_0x1ea043||typeof _0x1ea043!==_0x3380f0(0xf4)||Array['isArray'](_0x1ea043))throw CliErrors[_0x3380f0(0xff)](_0x3380f0(0xf7));const _0x494a81=_0x1ea043;if('protocol'in _0x494a81)return parseEnterpriseRoutingManifest(_0x494a81);const _0x512f13=Object['keys'](_0x494a81)[_0x3380f0(0x111)](_0x4e89ec=>!DOMAIN_CONFIG_FIELDS[_0x3380f0(0x123)](_0x4e89ec));if(_0x512f13[_0x3380f0(0x114)]>0x0)throw CliErrors[_0x3380f0(0xff)](_0x3380f0(0x125)+_0x512f13[_0x3380f0(0xfe)](',\x20'),_0x3380f0(0x11e)+DOMAIN_CONFIG_FIELDS['join'](',\x20'));const _0x9297aa={};for(const _0x553f95 of DOMAIN_CONFIG_FIELDS){_0x494a81[_0x553f95]!==undefined&&(_0x9297aa[_0x553f95]=normalizeDomainOrigin(_0x553f95,_0x494a81[_0x553f95]));}if(Object[_0x3380f0(0x104)](_0x9297aa)['length']===0x0)throw CliErrors[_0x3380f0(0xff)]('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return{'mode':'legacy','domains':_0x9297aa};}function a90_0x1780(){const _0x2d3d82=['kb-service-domain','kind','kbServiceDomain','utf8','filter','enterprise-v1','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','length','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','skillDomain','username','userDomain','domain-config','skill-domain','password','\x22\x20is\x20not\x20a\x20valid\x20URL.','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','Allowed\x20fields:\x20','origin','\x22\x20and\x20kind\x20\x22','isArray','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','includes','skillHubDomain','Unsupported\x20domain\x20config\x20field(s):\x20','632913NGSSKi','56RZqMAv','domains','5njnSNr',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','pathname','lovrabet-cli',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','2780792tgXYUC','object','5581032nnjsoE','trim','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','agentDomain','316314sUidtm','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','kbDomain','2111088uvwGUi','Enterprise\x20','join','validation','parse','24172BDqIpz','str','2257068ySbquR','keys','30Mzhyxw','https:','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','Domain\x20config\x20file\x20not\x20found:\x20','runtimeDomain','Invalid\x20','apiDomain','cwd'];a90_0x1780=function(){return _0x2d3d82;};return a90_0x1780();}export function readDomainConfig(_0x5c07e9){const _0x6724d9=a90_0x42eb86;return readDomainConfigInput(_0x5c07e9)[_0x6724d9(0x128)];}export function resolveDomainConfigInput(_0x2119ab){const _0x26617d=a90_0x42eb86,_0x679cf2=(_0x2119ab[_0x26617d(0x102)](_0x26617d(0x119))||'')[_0x26617d(0xf6)](),_0x5d5b31=_0x679cf2?readDomainConfigInput(_0x679cf2):{'mode':'legacy','domains':{}},_0xdcdf7d=DOMAIN_CONFIG_FIELDS[_0x26617d(0x111)](_0x14e4a8=>Boolean((_0x2119ab[_0x26617d(0x102)](DOMAIN_FLAGS[_0x14e4a8])||'')[_0x26617d(0xf6)]()));if(_0x5d5b31['mode']===_0x26617d(0x112)&&_0xdcdf7d[_0x26617d(0x114)]>0x0)throw CliErrors[_0x26617d(0xff)](_0x26617d(0x115),_0x26617d(0x122));for(const _0x249ad1 of DOMAIN_CONFIG_FIELDS){const _0x2411ea=(_0x2119ab['str'](DOMAIN_FLAGS[_0x249ad1])||'')[_0x26617d(0xf6)]();if(_0x2411ea)_0x5d5b31[_0x26617d(0x128)][_0x249ad1]=normalizeDomainOrigin(_0x249ad1,_0x2411ea);}return _0x5d5b31;}export function resolveDomainFlags(_0x3b9e43){const _0x233218=a90_0x42eb86;return resolveDomainConfigInput(_0x3b9e43)[_0x233218(0x128)];}export function parseEnterpriseRoutingManifest(_0x1ad56d){const _0xf17ba8=a90_0x42eb86;if(_0x1ad56d['protocol']!==ENTERPRISE_ROUTING_PROTOCOL||_0x1ad56d[_0xf17ba8(0x10e)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0xf17ba8(0xff)]('Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22'+ENTERPRISE_ROUTING_PROTOCOL+_0xf17ba8(0x120)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x1ad56d[_0xf17ba8(0x128)]||typeof _0x1ad56d['domains']!==_0xf17ba8(0xf4)||Array[_0xf17ba8(0x121)](_0x1ad56d['domains']))throw CliErrors['validation'](_0xf17ba8(0x11d));const _0x5bde87=_0x1ad56d[_0xf17ba8(0x128)],_0x408c69=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0xf17ba8(0x111)](_0x40f6d9=>_0x5bde87[_0x40f6d9]===undefined);if(_0x408c69['length']>0x0)throw CliErrors[_0xf17ba8(0xff)](_0xf17ba8(0xfa)+_0x408c69[_0xf17ba8(0xfe)](',\x20'));const _0x4518dc={},_0x19118b={};for(const _0x5714da of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x9ccc0f=_0x5bde87[_0x5714da];if(_0x9ccc0f===undefined)continue;const _0x25d30f=normalizeRoutingDomainValue(_0x5714da,_0x9ccc0f);_0x4518dc[_0x5714da]=_0x25d30f;const _0x285a16=ENTERPRISE_TO_LOCAL_FIELD[_0x5714da];_0x285a16&&(_0x19118b[_0x285a16]=_0x25d30f);}return{'mode':_0xf17ba8(0x112),'domains':_0x19118b,'manifestDomains':_0x4518dc};}
1
+ const a90_0x4e5217=a90_0x2416;(function(_0x564afd,_0x4364df){const _0x354c27=a90_0x2416,_0x578f2c=_0x564afd();while(!![]){try{const _0x1c9b44=parseInt(_0x354c27(0x1d5))/0x1+-parseInt(_0x354c27(0x1dd))/0x2+-parseInt(_0x354c27(0x1f5))/0x3+parseInt(_0x354c27(0x1f1))/0x4*(-parseInt(_0x354c27(0x1eb))/0x5)+-parseInt(_0x354c27(0x1ce))/0x6+-parseInt(_0x354c27(0x1f7))/0x7*(-parseInt(_0x354c27(0x202))/0x8)+-parseInt(_0x354c27(0x1ec))/0x9*(-parseInt(_0x354c27(0x1d0))/0xa);if(_0x1c9b44===_0x4364df)break;else _0x578f2c['push'](_0x578f2c['shift']());}catch(_0x4c4867){_0x578f2c['push'](_0x578f2c['shift']());}}}(a90_0x1e2b,0x84bf7));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';import{ENTERPRISE_ROUTING_DOMAIN_FIELDS,ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL,REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS}from'../generated/routing-contract.js';export const DOMAIN_CONFIG_FIELDS=[a90_0x4e5217(0x1db),'apiDomain','runtimeDomain','skillDomain',a90_0x4e5217(0x1d2)];const DOMAIN_FLAGS={'userDomain':a90_0x4e5217(0x20b),'apiDomain':a90_0x4e5217(0x1ef),'runtimeDomain':a90_0x4e5217(0x1e2),'skillDomain':a90_0x4e5217(0x1df),'kbServiceDomain':a90_0x4e5217(0x1e5)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a90_0x4e5217(0x1d9),a90_0x4e5217(0x1fe),a90_0x4e5217(0x1d1),a90_0x4e5217(0x1e1),'kbDomain'];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':'userDomain','apiDomain':a90_0x4e5217(0x1d3),'runtimeDomain':a90_0x4e5217(0x201),'skillDomain':a90_0x4e5217(0x1e0),'kbServiceDomain':a90_0x4e5217(0x1d2)},ROUTING_CONSUMER=a90_0x4e5217(0x1ee);export function normalizeDomainOrigin(_0x5e6ae6,_0x2990f0){const _0x1e5b14=a90_0x4e5217;if(typeof _0x2990f0!==_0x1e5b14(0x1f4)||!_0x2990f0[_0x1e5b14(0x1fb)]())throw CliErrors[_0x1e5b14(0x1ca)](_0x1e5b14(0x203)+_0x5e6ae6+_0x1e5b14(0x1ea));let _0x4bfbd6;try{_0x4bfbd6=new URL(_0x2990f0['trim']());}catch{throw CliErrors[_0x1e5b14(0x1ca)](_0x1e5b14(0x203)+_0x5e6ae6+_0x1e5b14(0x200)+_0x2990f0+_0x1e5b14(0x204));}if(_0x4bfbd6[_0x1e5b14(0x1c9)]!=='https:'||_0x4bfbd6[_0x1e5b14(0x1e9)]||_0x4bfbd6[_0x1e5b14(0x207)]||_0x4bfbd6[_0x1e5b14(0x20a)]!=='/'&&_0x4bfbd6[_0x1e5b14(0x20a)]!==''||_0x4bfbd6[_0x1e5b14(0x1dc)]||_0x4bfbd6['hash'])throw CliErrors[_0x1e5b14(0x1ca)](_0x1e5b14(0x203)+_0x5e6ae6+_0x1e5b14(0x20c),'For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.');return _0x4bfbd6[_0x1e5b14(0x208)];}export function normalizeRoutingDomainValue(_0x426e8c,_0x3a849d){const _0x92fb45=a90_0x4e5217;if(typeof _0x3a849d===_0x92fb45(0x1f4))return normalizeDomainOrigin(_0x426e8c,_0x3a849d);if(!_0x3a849d||typeof _0x3a849d!=='object'||Array['isArray'](_0x3a849d))throw CliErrors[_0x92fb45(0x1ca)](_0x92fb45(0x203)+_0x426e8c+':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.');const _0x124133=_0x3a849d,_0x480eae=_0x124133[ROUTING_CONSUMER]??_0x124133[_0x92fb45(0x1cb)];if(_0x480eae===undefined)throw CliErrors[_0x92fb45(0x1ca)](_0x92fb45(0x1cf)+_0x426e8c+'\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20'+ROUTING_CONSUMER+_0x92fb45(0x209));return normalizeDomainOrigin(_0x426e8c,_0x480eae);}export function resolveEnterpriseRoutingConfig(_0x1c9b5c){const _0x26a1d8=a90_0x4e5217;if(_0x1c9b5c===undefined)return undefined;if(!_0x1c9b5c||typeof _0x1c9b5c!=='object'||Array[_0x26a1d8(0x1fc)](_0x1c9b5c))throw CliErrors[_0x26a1d8(0x1ca)](_0x26a1d8(0x1e4));return parseEnterpriseRoutingManifest(_0x1c9b5c)[_0x26a1d8(0x1e6)];}export function readDomainConfigInput(_0x3d650d){const _0x5c83a0=a90_0x4e5217,_0x4cfcae=isAbsolute(_0x3d650d)?_0x3d650d:resolve(process[_0x5c83a0(0x1de)](),_0x3d650d);if(!existsSync(_0x4cfcae))throw CliErrors['validation'](_0x5c83a0(0x206)+_0x4cfcae);let _0x5c78b4;try{_0x5c78b4=JSON[_0x5c83a0(0x205)](readFileSync(_0x4cfcae,_0x5c83a0(0x1d6)));}catch{throw CliErrors[_0x5c83a0(0x1ca)](_0x5c83a0(0x1f0)+_0x4cfcae);}if(!_0x5c78b4||typeof _0x5c78b4!=='object'||Array[_0x5c83a0(0x1fc)](_0x5c78b4))throw CliErrors['validation'](_0x5c83a0(0x1f8));const _0x4e2ad6=_0x5c78b4;if(_0x5c83a0(0x1c9)in _0x4e2ad6)return parseEnterpriseRoutingManifest(_0x4e2ad6);const _0x2b4f8b=Object[_0x5c83a0(0x1cd)](_0x4e2ad6)[_0x5c83a0(0x1ff)](_0x1a7e18=>!DOMAIN_CONFIG_FIELDS[_0x5c83a0(0x1d4)](_0x1a7e18));if(_0x2b4f8b[_0x5c83a0(0x1ed)]>0x0)throw CliErrors[_0x5c83a0(0x1ca)]('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x2b4f8b[_0x5c83a0(0x1f9)](',\x20'),_0x5c83a0(0x1f3)+DOMAIN_CONFIG_FIELDS[_0x5c83a0(0x1f9)](',\x20'));const _0x3539ce={};for(const _0x3725e1 of DOMAIN_CONFIG_FIELDS){_0x4e2ad6[_0x3725e1]!==undefined&&(_0x3539ce[_0x3725e1]=normalizeDomainOrigin(_0x3725e1,_0x4e2ad6[_0x3725e1]));}if(Object['keys'](_0x3539ce)[_0x5c83a0(0x1ed)]===0x0)throw CliErrors['validation'](_0x5c83a0(0x1d7));return{'mode':_0x5c83a0(0x1cc),'domains':_0x3539ce};}export function readDomainConfig(_0x2f640d){const _0xed0d59=a90_0x4e5217;return readDomainConfigInput(_0x2f640d)[_0xed0d59(0x1e6)];}export function resolveDomainConfigInput(_0x57f520){const _0x32c69f=a90_0x4e5217,_0x4b6306=(_0x57f520[_0x32c69f(0x1e7)](_0x32c69f(0x1fa))||'')[_0x32c69f(0x1fb)](),_0x4fa3fa=_0x4b6306?readDomainConfigInput(_0x4b6306):{'mode':_0x32c69f(0x1cc),'domains':{}},_0x2bb3bd=DOMAIN_CONFIG_FIELDS['filter'](_0x142d67=>Boolean((_0x57f520[_0x32c69f(0x1e7)](DOMAIN_FLAGS[_0x142d67])||'')[_0x32c69f(0x1fb)]()));if(_0x4fa3fa[_0x32c69f(0x1d8)]===_0x32c69f(0x1e3)&&_0x2bb3bd[_0x32c69f(0x1ed)]>0x0)throw CliErrors[_0x32c69f(0x1ca)](_0x32c69f(0x1c8),_0x32c69f(0x1fd));for(const _0x521831 of DOMAIN_CONFIG_FIELDS){const _0x4e6207=(_0x57f520[_0x32c69f(0x1e7)](DOMAIN_FLAGS[_0x521831])||'')['trim']();if(_0x4e6207)_0x4fa3fa[_0x32c69f(0x1e6)][_0x521831]=normalizeDomainOrigin(_0x521831,_0x4e6207);}return _0x4fa3fa;}export function resolveDomainFlags(_0x43ecbf){const _0x5f3f66=a90_0x4e5217;return resolveDomainConfigInput(_0x43ecbf)[_0x5f3f66(0x1e6)];}function a90_0x2416(_0x349f9b,_0x40f89e){_0x349f9b=_0x349f9b-0x1c8;const _0x1e2b40=a90_0x1e2b();let _0x2416fc=_0x1e2b40[_0x349f9b];return _0x2416fc;}function a90_0x1e2b(){const _0x3ca9c0=['trim','isArray','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','agentDomain','filter',':\x20\x22','runtimeDomain','184bFWtqm','Invalid\x20','\x22\x20is\x20not\x20a\x20valid\x20URL.','parse','Domain\x20config\x20file\x20not\x20found:\x20','password','origin','\x20and\x20has\x20no\x20default.','pathname','user-domain',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','protocol','validation','default','legacy','keys','6467196aMKypu','Enterprise\x20','10GFrqzW','platformDomain','kbServiceDomain','apiDomain','includes','23838YaJfbU','utf8','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','mode','host','object','userDomain','search','933204QEDbLv','cwd','skill-domain','skillDomain','skillHubDomain','runtime-domain','enterprise-v1','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.','kb-service-domain','domains','str','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','username',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','252345KuiPHi','19924452LRGkED','length','lovrabet-cli','api-domain','Invalid\x20domain\x20config\x20JSON:\x20','12yqkDwY','kind','Allowed\x20fields:\x20','string','2531022QXNYvq','Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22','257362UWYVCL','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','join','domain-config'];a90_0x1e2b=function(){return _0x3ca9c0;};return a90_0x1e2b();}export function parseEnterpriseRoutingManifest(_0x4522f9){const _0x211994=a90_0x4e5217;if(_0x4522f9[_0x211994(0x1c9)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x4522f9[_0x211994(0x1f2)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors['validation'](_0x211994(0x1f6)+ENTERPRISE_ROUTING_PROTOCOL+'\x22\x20and\x20kind\x20\x22'+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x4522f9['domains']||typeof _0x4522f9[_0x211994(0x1e6)]!==_0x211994(0x1da)||Array[_0x211994(0x1fc)](_0x4522f9[_0x211994(0x1e6)]))throw CliErrors[_0x211994(0x1ca)]('Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.');const _0x5a68ad=_0x4522f9[_0x211994(0x1e6)],_0x153874=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x211994(0x1ff)](_0x2fbcb6=>_0x5a68ad[_0x2fbcb6]===undefined);if(_0x153874[_0x211994(0x1ed)]>0x0)throw CliErrors['validation'](_0x211994(0x1e8)+_0x153874['join'](',\x20'));const _0x56a383={},_0x15387f={};for(const _0x2d1e34 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x3ee6e3=_0x5a68ad[_0x2d1e34];if(_0x3ee6e3===undefined)continue;const _0x3e6781=normalizeRoutingDomainValue(_0x2d1e34,_0x3ee6e3);_0x56a383[_0x2d1e34]=_0x3e6781;const _0x153d16=ENTERPRISE_TO_LOCAL_FIELD[_0x2d1e34];_0x153d16&&(_0x15387f[_0x153d16]=_0x3e6781);}return{'mode':_0x211994(0x1e3),'domains':_0x15387f,'manifestDomains':_0x56a383};}
@@ -1 +1 @@
1
- function a91_0x3740(_0x1d624b,_0x3a1c68){_0x1d624b=_0x1d624b-0x14b;const _0x249203=a91_0x2492();let _0x374083=_0x249203[_0x1d624b];return _0x374083;}const a91_0x5285a4=a91_0x3740;(function(_0x28ea2a,_0x4cf3f7){const _0x3114ee=a91_0x3740,_0xcc6ce5=_0x28ea2a();while(!![]){try{const _0x3e10f5=-parseInt(_0x3114ee(0x155))/0x1+-parseInt(_0x3114ee(0x172))/0x2+-parseInt(_0x3114ee(0x15e))/0x3*(-parseInt(_0x3114ee(0x171))/0x4)+parseInt(_0x3114ee(0x169))/0x5*(parseInt(_0x3114ee(0x151))/0x6)+-parseInt(_0x3114ee(0x150))/0x7*(parseInt(_0x3114ee(0x16e))/0x8)+parseInt(_0x3114ee(0x173))/0x9*(-parseInt(_0x3114ee(0x170))/0xa)+parseInt(_0x3114ee(0x14d))/0xb*(parseInt(_0x3114ee(0x165))/0xc);if(_0x3e10f5===_0x4cf3f7)break;else _0xcc6ce5['push'](_0xcc6ce5['shift']());}catch(_0x19e196){_0xcc6ce5['push'](_0xcc6ce5['shift']());}}}(a91_0x2492,0x415ba));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export const CONFIG_FIELD_SCHEMAS={'routing':{'description':a91_0x5285a4(0x162),'topLevel':!![]},'region':{'description':a91_0x5285a4(0x15a),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':ENABLED_LOVRABET_REGION_VALUES,'defaultValue':DEFAULT_LOVRABET_REGION,'importable':!![]},'env':{'description':a91_0x5285a4(0x15c),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a91_0x5285a4(0x152)],'importable':!![]},'format':{'description':a91_0x5285a4(0x174),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a91_0x5285a4(0x16c)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a91_0x5285a4(0x153),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a91_0x5285a4(0x154),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillDomain':{'description':'Override\x20SkillHub\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'kbServiceDomain':{'description':a91_0x5285a4(0x14b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a91_0x5285a4(0x158),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a91_0x5285a4(0x14f),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a91_0x5285a4(0x15d)],'importable':!![]},'nativeToolAvailable':{'description':a91_0x5285a4(0x166),'topLevel':!![],'defaultValue':![]},'locale':{'description':a91_0x5285a4(0x167),'topLevel':!![],'cliSettableTopLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a91_0x5285a4(0x161)],'importable':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a91_0x5285a4(0x157)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x5e59a3])=>_0x5e59a3[a91_0x5285a4(0x160)])[a91_0x5285a4(0x14c)](([_0x357979])=>_0x357979));export const CLI_PROTECTED_CONFIG_KEYS=new Set([a91_0x5285a4(0x15d),a91_0x5285a4(0x16b)]);export const CONFIG_ENUM_VALUES=Object[a91_0x5285a4(0x16d)](Object[a91_0x5285a4(0x157)](CONFIG_FIELD_SCHEMAS)[a91_0x5285a4(0x16a)](([,_0x3314e4])=>_0x3314e4[a91_0x5285a4(0x159)])['map'](([_0x36d64c,_0x686cdf])=>[_0x36d64c,[..._0x686cdf[a91_0x5285a4(0x159)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x815f5f])=>_0x815f5f[a91_0x5285a4(0x168)])[a91_0x5285a4(0x14c)](([_0x19db5f])=>_0x19db5f);export function getConfigFieldSchema(_0x56a8d2){return CONFIG_FIELD_SCHEMAS[_0x56a8d2];}export function getConfigEnumValues(_0x4a111c){return getConfigFieldSchema(_0x4a111c)?.['enumValues'];}export function getConfigDefaultValue(_0x278e08){const _0x2a3be0=a91_0x5285a4;return getConfigFieldSchema(_0x278e08)?.[_0x2a3be0(0x163)];}export function isTopLevelConfigKey(_0x49f8b8){return TOP_LEVEL_CONFIG_KEYS['has'](_0x49f8b8);}export function isCliProtectedConfigKey(_0x250911){const _0x20b753=a91_0x5285a4;return CLI_PROTECTED_CONFIG_KEYS[_0x20b753(0x15b)](_0x250911);}const LOCALE_MAP={'zh':a91_0x5285a4(0x15f),'zh-cn':a91_0x5285a4(0x15f),'zh_cn':a91_0x5285a4(0x15f),'en':a91_0x5285a4(0x164),'en-us':a91_0x5285a4(0x164),'en_us':a91_0x5285a4(0x164)};export function normalizeLocale(_0x355e8f){const _0x4d18f7=a91_0x5285a4;if(!_0x355e8f)return null;return LOCALE_MAP[_0x355e8f[_0x4d18f7(0x16f)]()]??null;}export function isLegacyCompatConfigKey(_0x3ed012){return getConfigFieldSchema(_0x3ed012)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x56cce5){const _0x11fe3b=a91_0x5285a4;return[..._0x56cce5][_0x11fe3b(0x156)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0xeab803=a91_0x5285a4;return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+_0xeab803(0x14e);}function a91_0x2492(){const _0x5c784e=['map','273427MNvGGv',';\x20local\x20alias:\x20apps.<alias>.appcode','Risk\x20level','7483BjPgeq','24gVfiMY','env','Override\x20user\x20domain','Override\x20runtime\x20domain','295505PLFtPb','join','entries','Access\x20key\x20(client-ak\x20auth)','enumValues','Lovrabet\x20region','has','Target\x20environment','riskLevel','1414599aXDFVd','zh-CN','cliSettableTopLevel','locale','Versioned\x20enterprise\x20routing\x20manifest','defaultValue','en-US','324YZJqfq','Native\x20Lovrabet\x20tool\x20availability\x20in\x20the\x20current\x20execution\x20host','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','importable','129135TXUwxS','filter','nativeToolAvailable','format','fromEntries','1336AQgqxv','toLowerCase','50GaGBZl','4dShyEf','806842yKpukl','181485XYiMwi','Default\x20output\x20format','Override\x20KB\x20Service\x20domain'];a91_0x2492=function(){return _0x5c784e;};return a91_0x2492();}export function buildAppProfileListFields(_0x2968bf){return{'env':_0x2968bf,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a91_0x4ce2ab=a91_0x2d41;(function(_0x365aef,_0x3e869b){const _0x51df8e=a91_0x2d41,_0x5b890f=_0x365aef();while(!![]){try{const _0x5192d2=parseInt(_0x51df8e(0x12b))/0x1+-parseInt(_0x51df8e(0x129))/0x2*(-parseInt(_0x51df8e(0x146))/0x3)+parseInt(_0x51df8e(0x136))/0x4+-parseInt(_0x51df8e(0x144))/0x5+parseInt(_0x51df8e(0x148))/0x6*(parseInt(_0x51df8e(0x126))/0x7)+-parseInt(_0x51df8e(0x125))/0x8*(parseInt(_0x51df8e(0x145))/0x9)+parseInt(_0x51df8e(0x12f))/0xa;if(_0x5192d2===_0x3e869b)break;else _0x5b890f['push'](_0x5b890f['shift']());}catch(_0x1c0b0b){_0x5b890f['push'](_0x5b890f['shift']());}}}(a91_0x7922,0x218d9));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export const CONFIG_FIELD_SCHEMAS={'routing':{'description':'Versioned\x20enterprise\x20routing\x20manifest','topLevel':!![]},'region':{'description':a91_0x4ce2ab(0x12d),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':ENABLED_LOVRABET_REGION_VALUES,'defaultValue':DEFAULT_LOVRABET_REGION,'importable':!![]},'env':{'description':a91_0x4ce2ab(0x13f),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a91_0x4ce2ab(0x141)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a91_0x4ce2ab(0x137)],'importable':!![]},'pageSize':{'description':a91_0x4ce2ab(0x13d),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a91_0x4ce2ab(0x12a),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a91_0x4ce2ab(0x135),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a91_0x4ce2ab(0x13b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillDomain':{'description':a91_0x4ce2ab(0x149),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'kbServiceDomain':{'description':a91_0x4ce2ab(0x12c),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a91_0x4ce2ab(0x123),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a91_0x4ce2ab(0x128),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a91_0x4ce2ab(0x127)],'importable':!![]},'nativeToolAvailable':{'description':'Native\x20Lovrabet\x20tool\x20availability\x20in\x20the\x20current\x20execution\x20host','topLevel':!![],'defaultValue':![]},'locale':{'description':a91_0x4ce2ab(0x130),'topLevel':!![],'cliSettableTopLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a91_0x4ce2ab(0x132)],'importable':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a91_0x4ce2ab(0x142)](CONFIG_FIELD_SCHEMAS)[a91_0x4ce2ab(0x139)](([,_0x19fdbf])=>_0x19fdbf['cliSettableTopLevel'])[a91_0x4ce2ab(0x143)](([_0x1a29d3])=>_0x1a29d3));export const CLI_PROTECTED_CONFIG_KEYS=new Set(['riskLevel',a91_0x4ce2ab(0x131)]);function a91_0x2d41(_0x5363c5,_0x19f1a5){_0x5363c5=_0x5363c5-0x122;const _0x792225=a91_0x7922();let _0x2d4174=_0x792225[_0x5363c5];return _0x2d4174;}export const CONFIG_ENUM_VALUES=Object[a91_0x4ce2ab(0x138)](Object[a91_0x4ce2ab(0x142)](CONFIG_FIELD_SCHEMAS)[a91_0x4ce2ab(0x139)](([,_0x4a08f5])=>_0x4a08f5['enumValues'])['map'](([_0x14ea8b,_0x2e8dde])=>[_0x14ea8b,[..._0x2e8dde[a91_0x4ce2ab(0x133)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a91_0x4ce2ab(0x142)](CONFIG_FIELD_SCHEMAS)[a91_0x4ce2ab(0x139)](([,_0x44f4e6])=>_0x44f4e6[a91_0x4ce2ab(0x13c)])[a91_0x4ce2ab(0x143)](([_0x252c83])=>_0x252c83);export function getConfigFieldSchema(_0x2f22b9){return CONFIG_FIELD_SCHEMAS[_0x2f22b9];}export function getConfigEnumValues(_0x65accc){const _0x368089=a91_0x4ce2ab;return getConfigFieldSchema(_0x65accc)?.[_0x368089(0x133)];}export function getConfigDefaultValue(_0x43882b){const _0x6025fe=a91_0x4ce2ab;return getConfigFieldSchema(_0x43882b)?.[_0x6025fe(0x134)];}export function isTopLevelConfigKey(_0x159fa8){return TOP_LEVEL_CONFIG_KEYS['has'](_0x159fa8);}export function isCliProtectedConfigKey(_0xe30f41){const _0x4df2ef=a91_0x4ce2ab;return CLI_PROTECTED_CONFIG_KEYS[_0x4df2ef(0x12e)](_0xe30f41);}const LOCALE_MAP={'zh':'zh-CN','zh-cn':a91_0x4ce2ab(0x13e),'zh_cn':'zh-CN','en':a91_0x4ce2ab(0x124),'en-us':a91_0x4ce2ab(0x124),'en_us':a91_0x4ce2ab(0x124)};export function normalizeLocale(_0x1febbe){const _0x3f9d4f=a91_0x4ce2ab;if(!_0x1febbe)return null;return LOCALE_MAP[_0x1febbe[_0x3f9d4f(0x140)]()]??null;}export function isLegacyCompatConfigKey(_0x286c7a){const _0x2d1c60=a91_0x4ce2ab;return getConfigFieldSchema(_0x286c7a)?.[_0x2d1c60(0x122)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x51606a){return[..._0x51606a]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}function a91_0x7922(){const _0x2e0009=['defaultValue','Override\x20user\x20domain','504144kDTAlT','format','fromEntries','filter',';\x20local\x20alias:\x20apps.<alias>.appcode','Override\x20runtime\x20domain','importable','Default\x20page\x20size','zh-CN','Target\x20environment','toLowerCase','env','entries','map','1145800VfNXFV','39429Ocxvti','3YDIokc','Config\x20key.\x20Top-level:\x20','267186BgBtNL','Override\x20SkillHub\x20domain','legacyCompatOnly','Access\x20key\x20(client-ak\x20auth)','en-US','344bYAfao','28uOLodv','riskLevel','Risk\x20level','165868wvnybb','Override\x20API\x20domain','8744aKZwxb','Override\x20KB\x20Service\x20domain','Lovrabet\x20region','has','1591380yeFEJN','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','nativeToolAvailable','locale','enumValues'];a91_0x7922=function(){return _0x2e0009;};return a91_0x7922();}export function getConfigCommandKeyDescription(){const _0x24758c=a91_0x4ce2ab;return _0x24758c(0x147)+getTopLevelConfigKeySummary()+_0x24758c(0x13a);}export function buildAppProfileListFields(_0x3ccf23){return{'env':_0x3ccf23,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- const a92_0x2186cb=a92_0x15de;(function(_0x325005,_0x560cce){const _0x3ae853=a92_0x15de,_0x13e0c1=_0x325005();while(!![]){try{const _0x3f084d=-parseInt(_0x3ae853(0x15c))/0x1+parseInt(_0x3ae853(0x157))/0x2*(parseInt(_0x3ae853(0x155))/0x3)+parseInt(_0x3ae853(0x15a))/0x4*(-parseInt(_0x3ae853(0x159))/0x5)+-parseInt(_0x3ae853(0x153))/0x6+-parseInt(_0x3ae853(0x156))/0x7*(parseInt(_0x3ae853(0x158))/0x8)+parseInt(_0x3ae853(0x154))/0x9*(parseInt(_0x3ae853(0x15d))/0xa)+parseInt(_0x3ae853(0x15f))/0xb;if(_0x3f084d===_0x560cce)break;else _0x13e0c1['push'](_0x13e0c1['shift']());}catch(_0x2bf93b){_0x13e0c1['push'](_0x13e0c1['shift']());}}}(a92_0x29bb,0xe020a));function a92_0x15de(_0x163395,_0x2afa23){_0x163395=_0x163395-0x153;const _0x29bb69=a92_0x29bb();let _0x15deab=_0x29bb69[_0x163395];return _0x15deab;}export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a92_0x2186cb(0x15e)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a92_0x2186cb(0x15b)];function a92_0x29bb(){const _0x3a08be=['176ifKRAB','Published','77441iSjtHh','10wojdAO','UNPUBLISH','29248076kQtdSQ','10432896vvTZMK','13949856fJAYrN','1674omzEGo','7AncbbV','5272racXSM','11499944MxDJpQ','171365crgfQK'];a92_0x29bb=function(){return _0x3a08be;};return a92_0x29bb();}
1
+ function a92_0x52f2(_0x4ba227,_0x5e1038){_0x4ba227=_0x4ba227-0x115;const _0x20aa61=a92_0x20aa();let _0x52f215=_0x20aa61[_0x4ba227];return _0x52f215;}const a92_0x3b66d1=a92_0x52f2;(function(_0x55f290,_0x236a3c){const _0x213b43=a92_0x52f2,_0x17a37d=_0x55f290();while(!![]){try{const _0x470093=parseInt(_0x213b43(0x11a))/0x1*(parseInt(_0x213b43(0x119))/0x2)+parseInt(_0x213b43(0x11e))/0x3*(-parseInt(_0x213b43(0x115))/0x4)+-parseInt(_0x213b43(0x116))/0x5+parseInt(_0x213b43(0x120))/0x6*(parseInt(_0x213b43(0x123))/0x7)+parseInt(_0x213b43(0x11d))/0x8+-parseInt(_0x213b43(0x11b))/0x9*(parseInt(_0x213b43(0x11f))/0xa)+-parseInt(_0x213b43(0x117))/0xb*(-parseInt(_0x213b43(0x11c))/0xc);if(_0x470093===_0x236a3c)break;else _0x17a37d['push'](_0x17a37d['shift']());}catch(_0x408908){_0x17a37d['push'](_0x17a37d['shift']());}}}(a92_0x20aa,0x39bb0));export const APP_PUBLISH_STATUS={'Published':a92_0x3b66d1(0x122),'Unpublished':a92_0x3b66d1(0x118)};function a92_0x20aa(){const _0x4dddd0=['Published','PUBLISHED','1041089mflwtO','332RnLnoB','902475lzizPS','15785khMiip','UNPUBLISH','6898IlQcAH','115Iqcuyy','4030659tiuhcJ','2412UglJUY','3113264kQxoqD','12945HDrIYL','10QDGRVK','6SnHaxg'];a92_0x20aa=function(){return _0x4dddd0;};return a92_0x20aa();}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a92_0x3b66d1(0x121)];
@@ -1 +1 @@
1
- function a93_0x44cc(_0x26db7a,_0x459cf4){_0x26db7a=_0x26db7a-0x1da;const _0x36c5c4=a93_0x36c5();let _0x44cc13=_0x36c5c4[_0x26db7a];return _0x44cc13;}const a93_0x456fbe=a93_0x44cc;function a93_0x36c5(){const _0x1e9bc8=['909ANUitQ','1pUjLkz','651567qjAXpU','53470CgemWM','575SsTFYE','client-ak','3098752DwsUaX','7308552wBIzpR','533871sVDUmx','ClientAk','2918920iMMQwM','23960NaxsTv'];a93_0x36c5=function(){return _0x1e9bc8;};return a93_0x36c5();}(function(_0x416890,_0x429322){const _0x4746f6=a93_0x44cc,_0x1585fe=_0x416890();while(!![]){try{const _0x473f44=parseInt(_0x4746f6(0x1df))/0x1*(-parseInt(_0x4746f6(0x1e4))/0x2)+parseInt(_0x4746f6(0x1da))/0x3+-parseInt(_0x4746f6(0x1dd))/0x4*(-parseInt(_0x4746f6(0x1e2))/0x5)+parseInt(_0x4746f6(0x1e5))/0x6+parseInt(_0x4746f6(0x1e0))/0x7+-parseInt(_0x4746f6(0x1dc))/0x8+parseInt(_0x4746f6(0x1de))/0x9*(parseInt(_0x4746f6(0x1e1))/0xa);if(_0x473f44===_0x429322)break;else _0x1585fe['push'](_0x1585fe['shift']());}catch(_0x21ec1d){_0x1585fe['push'](_0x1585fe['shift']());}}}(a93_0x36c5,0xc43ca));export const AUTH_MODE={'ClientAk':a93_0x456fbe(0x1e3)};export function isAuthMode(_0x340143){const _0x4bed97=a93_0x456fbe;return _0x340143===AUTH_MODE[_0x4bed97(0x1db)];}
1
+ const a93_0x18dc26=a93_0x40fa;(function(_0x1a64c7,_0x2e8e04){const _0x44a495=a93_0x40fa,_0x5cd69f=_0x1a64c7();while(!![]){try{const _0x495fee=-parseInt(_0x44a495(0xe3))/0x1*(parseInt(_0x44a495(0xe0))/0x2)+-parseInt(_0x44a495(0xda))/0x3*(parseInt(_0x44a495(0xe1))/0x4)+parseInt(_0x44a495(0xdc))/0x5+parseInt(_0x44a495(0xe2))/0x6*(-parseInt(_0x44a495(0xd7))/0x7)+parseInt(_0x44a495(0xdb))/0x8+-parseInt(_0x44a495(0xdd))/0x9*(parseInt(_0x44a495(0xdf))/0xa)+-parseInt(_0x44a495(0xd6))/0xb*(-parseInt(_0x44a495(0xd8))/0xc);if(_0x495fee===_0x2e8e04)break;else _0x5cd69f['push'](_0x5cd69f['shift']());}catch(_0x205e9e){_0x5cd69f['push'](_0x5cd69f['shift']());}}}(a93_0x4062,0x2e787));export const AUTH_MODE={'ClientAk':a93_0x18dc26(0xde)};function a93_0x40fa(_0x356bfd,_0x2be96f){_0x356bfd=_0x356bfd-0xd6;const _0x406263=a93_0x4062();let _0x40fa70=_0x406263[_0x356bfd];return _0x40fa70;}function a93_0x4062(){const _0x5b279f=['17811PvaywH','client-ak','780odcQGS','2WnDvPJ','345104mhAAzs','190062oRPSRT','7983cAXbac','38203UheMxK','49JGLFzx','948oZkXRj','ClientAk','3kClTTx','1228816hUYSss','1163670KutHAt'];a93_0x4062=function(){return _0x5b279f;};return a93_0x4062();}export function isAuthMode(_0xdd212c){const _0x433649=a93_0x18dc26;return _0xdd212c===AUTH_MODE[_0x433649(0xd9)];}
@@ -1 +1 @@
1
- function a94_0x1bb3(_0x2c220b,_0x28bab0){_0x2c220b=_0x2c220b-0xb5;const _0x443810=a94_0x4438();let _0x1bb34b=_0x443810[_0x2c220b];return _0x1bb34b;}const a94_0x97335e=a94_0x1bb3;(function(_0x2e56e0,_0x580afb){const _0x537b9b=a94_0x1bb3,_0x87ff7=_0x2e56e0();while(!![]){try{const _0x406548=-parseInt(_0x537b9b(0xdb))/0x1+-parseInt(_0x537b9b(0xc5))/0x2+parseInt(_0x537b9b(0xb8))/0x3*(-parseInt(_0x537b9b(0xe3))/0x4)+-parseInt(_0x537b9b(0xba))/0x5*(-parseInt(_0x537b9b(0xcc))/0x6)+-parseInt(_0x537b9b(0xd8))/0x7*(parseInt(_0x537b9b(0xb6))/0x8)+-parseInt(_0x537b9b(0xbc))/0x9+parseInt(_0x537b9b(0xcb))/0xa*(parseInt(_0x537b9b(0xce))/0xb);if(_0x406548===_0x580afb)break;else _0x87ff7['push'](_0x87ff7['shift']());}catch(_0x9fad28){_0x87ff7['push'](_0x87ff7['shift']());}}}(a94_0x4438,0xca67a));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';function a94_0x4438(){const _0x3cde34=['verbose','params','1074230zWAjJp','help','global','boolean','nonInteractive','map','470yCdgHB','264cfkIJf','Select\x20app\x20profile\x20by\x20name','596981mYMGtU','format','dryRun','app','appcode','env','Record\x20ID','production\x20|\x20development\x20|\x20daily','Skip\x20confirmation\x20for\x20high-risk\x20writes','dry-run','166726EDreRS','Alias\x20for\x20--non-interactive','Output\x20format','1185388xIZPKc','Environment','json\x20|\x20pretty\x20|\x20compress','clear','non-interactive','yes','SQL\x20query\x20code','<expr>','16QCKqrJ','cliDisplayName','328MxdvXE','cliBinName','257109PPohgm','type','167950rKUKGx','Force\x20non-interactive\x20mode\x20(CI)','1420146rVWnjB','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','<code>','sqlcode','Name\x20filter','string','meowKey'];a94_0x4438=function(){return _0x3cde34;};return a94_0x4438();}export const CLI_BIN_NAME=PRODUCT_CONFIG[a94_0x97335e(0xb7)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a94_0x97335e(0xb5)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a94_0x97335e(0xd2),'meowKey':a94_0x97335e(0xd2),'type':'string','description':'Override\x20appcode','hint':a94_0x97335e(0xbe)},{'name':a94_0x97335e(0xd1),'meowKey':'app','type':a94_0x97335e(0xc1),'description':a94_0x97335e(0xcd),'hint':'<name>'},{'name':a94_0x97335e(0xd3),'meowKey':a94_0x97335e(0xd3),'type':a94_0x97335e(0xc1),'description':a94_0x97335e(0xdc),'hint':a94_0x97335e(0xd5)},{'name':a94_0x97335e(0xcf),'meowKey':a94_0x97335e(0xcf),'type':'string','description':a94_0x97335e(0xda),'hint':a94_0x97335e(0xdd)},{'name':'jq','meowKey':'jq','type':a94_0x97335e(0xc1),'description':a94_0x97335e(0xbd),'hint':a94_0x97335e(0xe2)},{'name':a94_0x97335e(0xd7),'meowKey':a94_0x97335e(0xd0),'type':'boolean','description':'Preview\x20operation\x20without\x20executing'},{'name':a94_0x97335e(0xe0),'meowKey':a94_0x97335e(0xe0),'type':a94_0x97335e(0xc8),'description':a94_0x97335e(0xd6)},{'name':a94_0x97335e(0xdf),'meowKey':a94_0x97335e(0xc9),'type':a94_0x97335e(0xc8),'description':a94_0x97335e(0xbb)},{'name':'global','meowKey':a94_0x97335e(0xc7),'type':a94_0x97335e(0xc8),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a94_0x97335e(0xc8),'description':a94_0x97335e(0xd9),'hidden':!![]},{'name':a94_0x97335e(0xc6),'meowKey':a94_0x97335e(0xc6),'type':a94_0x97335e(0xc8),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':a94_0x97335e(0xc1),'description':a94_0x97335e(0xd4),'hidden':!![]},{'name':'name','meowKey':'name','type':a94_0x97335e(0xc1),'description':a94_0x97335e(0xc0),'hidden':!![]},{'name':'sqlcode','meowKey':a94_0x97335e(0xbf),'type':a94_0x97335e(0xc1),'description':a94_0x97335e(0xe1),'hidden':!![]},{'name':a94_0x97335e(0xc4),'meowKey':a94_0x97335e(0xc4),'type':a94_0x97335e(0xc1),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a94_0x97335e(0xc3),'meowKey':a94_0x97335e(0xc3),'type':a94_0x97335e(0xc8),'description':'Verbose\x20output','hidden':!![]},{'name':'clear','meowKey':a94_0x97335e(0xde),'type':a94_0x97335e(0xc8),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a94_0x97335e(0xd2),a94_0x97335e(0xd1),'env','format','jq','dry-run',a94_0x97335e(0xe0),a94_0x97335e(0xdf),'ci']);export function buildMeowFlags(){const _0x114ee4=a94_0x97335e;return Object['fromEntries'](GLOBAL_FLAGS[_0x114ee4(0xca)](_0x2c9266=>[_0x2c9266[_0x114ee4(0xc2)],{'type':_0x2c9266[_0x114ee4(0xb9)]}]));}
1
+ const a94_0x54f1f8=a94_0x506b;function a94_0x506b(_0x2f4d43,_0x13c250){_0x2f4d43=_0x2f4d43-0x17e;const _0x40e67f=a94_0x40e6();let _0x506b33=_0x40e67f[_0x2f4d43];return _0x506b33;}(function(_0x40af4e,_0x35d54f){const _0x4a5749=a94_0x506b,_0x39d224=_0x40af4e();while(!![]){try{const _0x19d4b2=parseInt(_0x4a5749(0x199))/0x1*(parseInt(_0x4a5749(0x17f))/0x2)+parseInt(_0x4a5749(0x184))/0x3*(parseInt(_0x4a5749(0x180))/0x4)+parseInt(_0x4a5749(0x181))/0x5*(-parseInt(_0x4a5749(0x18a))/0x6)+parseInt(_0x4a5749(0x19c))/0x7+parseInt(_0x4a5749(0x196))/0x8+-parseInt(_0x4a5749(0x1ad))/0x9+-parseInt(_0x4a5749(0x1a4))/0xa*(parseInt(_0x4a5749(0x189))/0xb);if(_0x19d4b2===_0x35d54f)break;else _0x39d224['push'](_0x39d224['shift']());}catch(_0xfb17d3){_0x39d224['push'](_0x39d224['shift']());}}}(a94_0x40e6,0x22230));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[a94_0x54f1f8(0x18d)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a94_0x40e6(){const _0x3958b2=['3PIdiii','Use\x20global\x20config\x20scope','string','1601383tnyQiT','boolean','Clear\x20output','json\x20|\x20pretty\x20|\x20compress','map','production\x20|\x20development\x20|\x20daily','JSON\x20params\x20for\x20execute\x20commands','Force\x20non-interactive\x20mode\x20(CI)','82100DKZTJV','sqlcode','dryRun','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','Show\x20help','type','env','<expr>','params','1162008ssRgHr','clear','dry-run','SQL\x20query\x20code','49612oQyQmX','4hJVoIl','9290rvtxsG','Alias\x20for\x20--non-interactive','non-interactive','39597mPrGTB','<code>','Output\x20format','appcode','app','55sJYUEe','714zmAoFE','Name\x20filter','yes','cliDisplayName','fromEntries','format','Verbose\x20output','help','Record\x20ID','Skip\x20confirmation\x20for\x20high-risk\x20writes','Environment','verbose','1717616jmQNQm','Preview\x20operation\x20without\x20executing','<name>'];a94_0x40e6=function(){return _0x3958b2;};return a94_0x40e6();}export const GLOBAL_FLAGS=[{'name':a94_0x54f1f8(0x187),'meowKey':a94_0x54f1f8(0x187),'type':'string','description':'Override\x20appcode','hint':a94_0x54f1f8(0x185)},{'name':a94_0x54f1f8(0x188),'meowKey':a94_0x54f1f8(0x188),'type':a94_0x54f1f8(0x19b),'description':'Select\x20app\x20profile\x20by\x20name','hint':a94_0x54f1f8(0x198)},{'name':a94_0x54f1f8(0x1aa),'meowKey':a94_0x54f1f8(0x1aa),'type':a94_0x54f1f8(0x19b),'description':a94_0x54f1f8(0x194),'hint':a94_0x54f1f8(0x1a1)},{'name':a94_0x54f1f8(0x18f),'meowKey':a94_0x54f1f8(0x18f),'type':'string','description':a94_0x54f1f8(0x186),'hint':a94_0x54f1f8(0x19f)},{'name':'jq','meowKey':'jq','type':'string','description':a94_0x54f1f8(0x1a7),'hint':a94_0x54f1f8(0x1ab)},{'name':a94_0x54f1f8(0x1af),'meowKey':a94_0x54f1f8(0x1a6),'type':'boolean','description':a94_0x54f1f8(0x197)},{'name':a94_0x54f1f8(0x18c),'meowKey':a94_0x54f1f8(0x18c),'type':a94_0x54f1f8(0x19d),'description':a94_0x54f1f8(0x193)},{'name':a94_0x54f1f8(0x183),'meowKey':'nonInteractive','type':a94_0x54f1f8(0x19d),'description':a94_0x54f1f8(0x1a3)},{'name':'global','meowKey':'global','type':a94_0x54f1f8(0x19d),'description':a94_0x54f1f8(0x19a)},{'name':'ci','meowKey':'ci','type':'boolean','description':a94_0x54f1f8(0x182),'hidden':!![]},{'name':a94_0x54f1f8(0x191),'meowKey':a94_0x54f1f8(0x191),'type':a94_0x54f1f8(0x19d),'description':a94_0x54f1f8(0x1a8)},{'name':'id','meowKey':'id','type':a94_0x54f1f8(0x19b),'description':a94_0x54f1f8(0x192),'hidden':!![]},{'name':'name','meowKey':'name','type':a94_0x54f1f8(0x19b),'description':a94_0x54f1f8(0x18b),'hidden':!![]},{'name':a94_0x54f1f8(0x1a5),'meowKey':a94_0x54f1f8(0x1a5),'type':a94_0x54f1f8(0x19b),'description':a94_0x54f1f8(0x17e),'hidden':!![]},{'name':a94_0x54f1f8(0x1ac),'meowKey':a94_0x54f1f8(0x1ac),'type':a94_0x54f1f8(0x19b),'description':a94_0x54f1f8(0x1a2),'hidden':!![]},{'name':'verbose','meowKey':a94_0x54f1f8(0x195),'type':a94_0x54f1f8(0x19d),'description':a94_0x54f1f8(0x190),'hidden':!![]},{'name':a94_0x54f1f8(0x1ae),'meowKey':a94_0x54f1f8(0x1ae),'type':'boolean','description':a94_0x54f1f8(0x19e),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a94_0x54f1f8(0x187),a94_0x54f1f8(0x188),'env',a94_0x54f1f8(0x18f),'jq',a94_0x54f1f8(0x1af),a94_0x54f1f8(0x18c),'non-interactive','ci']);export function buildMeowFlags(){const _0x1125c9=a94_0x54f1f8;return Object[_0x1125c9(0x18e)](GLOBAL_FLAGS[_0x1125c9(0x1a0)](_0x5b3bba=>[_0x5b3bba['meowKey'],{'type':_0x5b3bba[_0x1125c9(0x1a9)]}]));}
@@ -1 +1 @@
1
- function a95_0x34d8(){const _0x9aa505=['47662wypAne','960239jdPRkg','main','8SJZMjK','428032ErwURK','compress','1020740AeZhYj','54204USwcQf','production','251064TCKzMn','9hbkYqK','1742424yRgHDz'];a95_0x34d8=function(){return _0x9aa505;};return a95_0x34d8();}const a95_0x410676=a95_0x340a;(function(_0x1a7beb,_0x24d207){const _0x54d7f0=a95_0x340a,_0x4818f2=_0x1a7beb();while(!![]){try{const _0x3a48e1=parseInt(_0x54d7f0(0xb2))/0x1*(-parseInt(_0x54d7f0(0xaf))/0x2)+-parseInt(_0x54d7f0(0xac))/0x3+parseInt(_0x54d7f0(0xb3))/0x4+parseInt(_0x54d7f0(0xa9))/0x5+-parseInt(_0x54d7f0(0xaa))/0x6+-parseInt(_0x54d7f0(0xb0))/0x7+parseInt(_0x54d7f0(0xae))/0x8*(parseInt(_0x54d7f0(0xad))/0x9);if(_0x3a48e1===_0x24d207)break;else _0x4818f2['push'](_0x4818f2['shift']());}catch(_0x373100){_0x4818f2['push'](_0x4818f2['shift']());}}}(a95_0x34d8,0x1a77c));export const DEFAULT_APP_PROFILE_NAME=a95_0x410676(0xb1);export const DEFAULT_CONFIG_VALUES={'env':a95_0x410676(0xab),'format':a95_0x410676(0xb4),'locale':'en-US','riskLevel':'write'};function a95_0x340a(_0xd2abfc,_0x1ee464){_0xd2abfc=_0xd2abfc-0xa9;const _0x34d862=a95_0x34d8();let _0x340a4a=_0x34d862[_0xd2abfc];return _0x340a4a;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a95_0x410676(0xb4);
1
+ const a95_0xd56934=a95_0x2928;function a95_0x3a91(){const _0x291950=['en-US','16fqwzwH','61928gwzFXR','production','3487730TQOJnu','write','59423aDxhfg','220ciQNdZ','86608vIRCvR','114057DhXZnY','2818665TdMfDk','22fzQCmi','main','11dEWpcH','12zygOKK','compress','2756509hbuHUz','4728nvyObg'];a95_0x3a91=function(){return _0x291950;};return a95_0x3a91();}(function(_0x169d3,_0x364d9a){const _0x3450f5=a95_0x2928,_0x3d8f21=_0x169d3();while(!![]){try{const _0x15d45e=-parseInt(_0x3450f5(0x159))/0x1*(parseInt(_0x3450f5(0x162))/0x2)+parseInt(_0x3450f5(0x16a))/0x3+parseInt(_0x3450f5(0x168))/0x4*(parseInt(_0x3450f5(0x167))/0x5)+parseInt(_0x3450f5(0x15c))/0x6*(parseInt(_0x3450f5(0x15e))/0x7)+parseInt(_0x3450f5(0x161))/0x8*(parseInt(_0x3450f5(0x169))/0x9)+-parseInt(_0x3450f5(0x164))/0xa*(-parseInt(_0x3450f5(0x15b))/0xb)+-parseInt(_0x3450f5(0x15f))/0xc*(parseInt(_0x3450f5(0x166))/0xd);if(_0x15d45e===_0x364d9a)break;else _0x3d8f21['push'](_0x3d8f21['shift']());}catch(_0x517afc){_0x3d8f21['push'](_0x3d8f21['shift']());}}}(a95_0x3a91,0x8b96a));export const DEFAULT_APP_PROFILE_NAME=a95_0xd56934(0x15a);function a95_0x2928(_0x39f514,_0x53bfef){_0x39f514=_0x39f514-0x159;const _0x3a9161=a95_0x3a91();let _0x2928bb=_0x3a9161[_0x39f514];return _0x2928bb;}export const DEFAULT_CONFIG_VALUES={'env':a95_0xd56934(0x163),'format':'compress','locale':a95_0xd56934(0x160),'riskLevel':a95_0xd56934(0x165)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a95_0xd56934(0x15d);
@@ -1 +1 @@
1
- const a96_0x73e2c7=a96_0x2ca4;function a96_0x2135(){const _0x3c75c7=['npmRegistryBaseUrl','4744264Tcbrao','4785HKrUlw','3809680tKvSJb','20Nnsgec','253501QeWnFk','npmPackageName','703752XvOtZl','449970uLXIXX','2056xqMTMR','cliCdnBaseUrl','7768251LzofWV'];a96_0x2135=function(){return _0x3c75c7;};return a96_0x2135();}(function(_0x9e562d,_0x54b1a3){const _0x48dd01=a96_0x2ca4,_0x4ea3d2=_0x9e562d();while(!![]){try{const _0x42d27e=-parseInt(_0x48dd01(0x102))/0x1+parseInt(_0x48dd01(0x104))/0x2+parseInt(_0x48dd01(0x10b))/0x3*(-parseInt(_0x48dd01(0x106))/0x4)+-parseInt(_0x48dd01(0x101))/0x5*(-parseInt(_0x48dd01(0x105))/0x6)+-parseInt(_0x48dd01(0x100))/0x7+parseInt(_0x48dd01(0x10a))/0x8+parseInt(_0x48dd01(0x108))/0x9;if(_0x42d27e===_0x54b1a3)break;else _0x4ea3d2['push'](_0x4ea3d2['shift']());}catch(_0x2a99a4){_0x4ea3d2['push'](_0x4ea3d2['shift']());}}}(a96_0x2135,0x77bd9));import{PRODUCT_CONFIG}from'../constant/product.js';function a96_0x2ca4(_0x35d1a2,_0x3de41b){_0x35d1a2=_0x35d1a2-0x100;const _0x2135b0=a96_0x2135();let _0x2ca4b1=_0x2135b0[_0x35d1a2];return _0x2ca4b1;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a96_0x73e2c7(0x103)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a96_0x73e2c7(0x109)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a96_0x73e2c7(0x107)];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+'/dist/lovrabet-cli/config/index.json';
1
+ const a96_0x2d01ba=a96_0x5893;(function(_0x16b743,_0x166434){const _0x191009=a96_0x5893,_0x458263=_0x16b743();while(!![]){try{const _0x42d1ff=-parseInt(_0x191009(0xc4))/0x1*(parseInt(_0x191009(0xc0))/0x2)+-parseInt(_0x191009(0xc2))/0x3*(parseInt(_0x191009(0xbd))/0x4)+-parseInt(_0x191009(0xbf))/0x5+parseInt(_0x191009(0xbc))/0x6+-parseInt(_0x191009(0xbe))/0x7*(-parseInt(_0x191009(0xbb))/0x8)+parseInt(_0x191009(0xc8))/0x9+parseInt(_0x191009(0xc5))/0xa;if(_0x42d1ff===_0x166434)break;else _0x458263['push'](_0x458263['shift']());}catch(_0x5a5cbf){_0x458263['push'](_0x458263['shift']());}}}(a96_0xb99d,0xa00e7));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a96_0x2d01ba(0xc6)];function a96_0xb99d(){const _0x2cb908=['cliCdnBaseUrl','3XAkeyg','skillSource','41JQTUHa','2543610vxfHcl','npmPackageName','/dist/lovrabet-cli/config/index.json','9597384DHyfcG','npmRegistryBaseUrl','62792JwrpbR','4230006AMCDCF','35468oWnuUN','14xWeLth','2448075IfoHwr','43286QjUObm'];a96_0xb99d=function(){return _0x2cb908;};return a96_0xb99d();}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a96_0x2d01ba(0xc3)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a96_0x2d01ba(0xba)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a96_0x2d01ba(0xc1)];function a96_0x5893(_0x4a8c60,_0x1a16b5){_0x4a8c60=_0x4a8c60-0xba;const _0xb99df3=a96_0xb99d();let _0x58935c=_0xb99df3[_0x4a8c60];return _0x58935c;}export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a96_0x2d01ba(0xc7);
@@ -1 +1 @@
1
- const a97_0x24b8c4=a97_0x3def;function a97_0x3def(_0x4db2a4,_0x2e73df){_0x4db2a4=_0x4db2a4-0x19a;const _0x51408e=a97_0x5140();let _0x3defd1=_0x51408e[_0x4db2a4];return _0x3defd1;}function a97_0x5140(){const _0x679d54=['8283MebAIK','2530080eFiOkC','9351405fOzzXX','1ymVqiW','runtimeDomain','1958474GzhtXU','skillDomain','daily','1853553NAdUvW','2092936ucNtxY','32Lydhnu','allowOfficialKbServiceDefault','production','region','api','150cCCEbG','17490XInPld','apiDomain','132186khjpWZ'];a97_0x5140=function(){return _0x679d54;};return a97_0x5140();}(function(_0xa12cd0,_0x2269f1){const _0x204cc3=a97_0x3def,_0x2cbb84=_0xa12cd0();while(!![]){try{const _0x4ff21a=-parseInt(_0x204cc3(0x1a6))/0x1*(parseInt(_0x204cc3(0x1ac))/0x2)+parseInt(_0x204cc3(0x1ab))/0x3+-parseInt(_0x204cc3(0x1a4))/0x4+parseInt(_0x204cc3(0x19f))/0x5*(parseInt(_0x204cc3(0x1a2))/0x6)+-parseInt(_0x204cc3(0x1a8))/0x7*(-parseInt(_0x204cc3(0x19a))/0x8)+-parseInt(_0x204cc3(0x1a5))/0x9+parseInt(_0x204cc3(0x1a0))/0xa*(parseInt(_0x204cc3(0x1a3))/0xb);if(_0x4ff21a===_0x2269f1)break;else _0x2cbb84['push'](_0x2cbb84['shift']());}catch(_0x2929e1){_0x2cbb84['push'](_0x2cbb84['shift']());}}}(a97_0x5140,0xf3609));import{getEnv,isProduction}from'../constant/env.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x40a9c6){const _0xb30428=a97_0x3def;customApiDomain=_0x40a9c6?.[_0xb30428(0x1a1)],customUserDomain=_0x40a9c6?.['userDomain'],customRuntimeDomain=_0x40a9c6?.[_0xb30428(0x1a7)],customSkillDomain=_0x40a9c6?.[_0xb30428(0x1a9)],customKbServiceDomain=_0x40a9c6?.['kbServiceDomain'],allowOfficialKbServiceDefault=_0x40a9c6?.[_0xb30428(0x19b)]??!![],activeRegion=_0x40a9c6?.[_0xb30428(0x19d)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x214b84=a97_0x3def,_0x4af597=OFFICIAL_ROUTING_PROFILES[activeRegion]['serviceDomains'];return isProduction(getEnv())?_0x4af597[_0x214b84(0x19c)]:_0x214b84(0x1aa)in _0x4af597?_0x4af597[_0x214b84(0x1aa)]:_0x4af597[_0x214b84(0x19c)];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()['user'];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a97_0x24b8c4(0x19e)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()['runtime'];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbServiceDomain=()=>{if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;const _0x136ae4=getActiveRegionDomains();return'kbService'in _0x136ae4?_0x136ae4['kbService']:undefined;};
1
+ const a97_0x5200bb=a97_0x1bb9;(function(_0x3c664b,_0x24bc8a){const _0x48a4b2=a97_0x1bb9,_0x184b55=_0x3c664b();while(!![]){try{const _0x421a41=-parseInt(_0x48a4b2(0x179))/0x1*(-parseInt(_0x48a4b2(0x17c))/0x2)+parseInt(_0x48a4b2(0x166))/0x3*(-parseInt(_0x48a4b2(0x17b))/0x4)+-parseInt(_0x48a4b2(0x16e))/0x5*(-parseInt(_0x48a4b2(0x176))/0x6)+parseInt(_0x48a4b2(0x16b))/0x7*(parseInt(_0x48a4b2(0x16f))/0x8)+parseInt(_0x48a4b2(0x16c))/0x9*(parseInt(_0x48a4b2(0x168))/0xa)+parseInt(_0x48a4b2(0x177))/0xb*(-parseInt(_0x48a4b2(0x167))/0xc)+-parseInt(_0x48a4b2(0x172))/0xd;if(_0x421a41===_0x24bc8a)break;else _0x184b55['push'](_0x184b55['shift']());}catch(_0x37ba9b){_0x184b55['push'](_0x184b55['shift']());}}}(a97_0x525b,0xe366e));import{getEnv,isProduction}from'../constant/env.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';function a97_0x525b(){const _0x1dc740=['runtime','26uiQzDL','skillDomain','82380XlFVjx','71660WNJdRc','userDomain','daily','kbService','159cYEdvf','12MxjXqw','13625340wvkPSs','production','user','35XkqVur','9QvpahY','serviceDomains','5DZktYu','524056PVYNfw','allowOfficialKbServiceDefault','api','9086584MezcYi','kbServiceDomain','region','apiDomain','869034hPgneH','490017ipShvt'];a97_0x525b=function(){return _0x1dc740;};return a97_0x525b();}import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x353163){const _0x3560c0=a97_0x1bb9;customApiDomain=_0x353163?.[_0x3560c0(0x175)],customUserDomain=_0x353163?.[_0x3560c0(0x17d)],customRuntimeDomain=_0x353163?.['runtimeDomain'],customSkillDomain=_0x353163?.[_0x3560c0(0x17a)],customKbServiceDomain=_0x353163?.[_0x3560c0(0x173)],allowOfficialKbServiceDefault=_0x353163?.[_0x3560c0(0x170)]??!![],activeRegion=_0x353163?.[_0x3560c0(0x174)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x3bf6bd=a97_0x1bb9,_0x33bd65=OFFICIAL_ROUTING_PROFILES[activeRegion][_0x3bf6bd(0x16d)];return isProduction(getEnv())?_0x33bd65[_0x3bf6bd(0x169)]:_0x3bf6bd(0x17e)in _0x33bd65?_0x33bd65[_0x3bf6bd(0x17e)]:_0x33bd65[_0x3bf6bd(0x169)];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a97_0x5200bb(0x16a)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a97_0x5200bb(0x171)];function a97_0x1bb9(_0x34151e,_0x2d0ce6){_0x34151e=_0x34151e-0x165;const _0x525b0c=a97_0x525b();let _0x1bb98f=_0x525b0c[_0x34151e];return _0x1bb98f;}export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a97_0x5200bb(0x178)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbServiceDomain=()=>{const _0xb83964=a97_0x5200bb;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;const _0x378dc6=getActiveRegionDomains();return'kbService'in _0x378dc6?_0x378dc6[_0xb83964(0x165)]:undefined;};
@@ -1 +1 @@
1
- const a98_0x4f1b12=a98_0x2c76;(function(_0x117a0d,_0x357a0a){const _0x372c39=a98_0x2c76,_0x3d2b3c=_0x117a0d();while(!![]){try{const _0x687b41=parseInt(_0x372c39(0x1fa))/0x1*(-parseInt(_0x372c39(0x1f6))/0x2)+-parseInt(_0x372c39(0x1fb))/0x3*(-parseInt(_0x372c39(0x1f3))/0x4)+parseInt(_0x372c39(0x1f8))/0x5+-parseInt(_0x372c39(0x1f9))/0x6*(parseInt(_0x372c39(0x1fe))/0x7)+-parseInt(_0x372c39(0x1fd))/0x8+parseInt(_0x372c39(0x1f5))/0x9*(parseInt(_0x372c39(0x1f0))/0xa)+-parseInt(_0x372c39(0x1ff))/0xb*(-parseInt(_0x372c39(0x1f1))/0xc);if(_0x687b41===_0x357a0a)break;else _0x3d2b3c['push'](_0x3d2b3c['shift']());}catch(_0x98e34e){_0x3d2b3c['push'](_0x3d2b3c['shift']());}}}(a98_0x4e10,0x5d706));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a98_0x4f1b12(0x1f7),a98_0x4f1b12(0x1f2),a98_0x4f1b12(0x200)];export function normalizeEnv(_0x4eb90c){const _0x2c4b95=a98_0x4f1b12;return _0x4eb90c===_0x2c4b95(0x1fc)?_0x2c4b95(0x1f7):_0x4eb90c;}export function isProduction(_0x3db2be){const _0x35b070=a98_0x4f1b12;return normalizeEnv(_0x3db2be)===_0x35b070(0x1f7);}export function isDaily(_0x357705){const _0x270738=a98_0x4f1b12;return normalizeEnv(_0x357705)===_0x270738(0x200);}export function isDev(_0x47fc78){const _0x8bc7e8=a98_0x4f1b12,_0x4265fb=normalizeEnv(_0x47fc78);return _0x4265fb===_0x8bc7e8(0x1f2)||_0x4265fb==='dev';}function a98_0x2c76(_0x1ebaaa,_0x1a9c01){_0x1ebaaa=_0x1ebaaa-0x1f0;const _0x4e1063=a98_0x4e10();let _0x2c768f=_0x4e1063[_0x1ebaaa];return _0x2c768f;}let env=normalizeEnv(productEnv(a98_0x4f1b12(0x1f4))||a98_0x4f1b12(0x1f7));export function getEnv(){return env;}export function initEnv(_0x15fb41){env=normalizeEnv(_0x15fb41);}function a98_0x4e10(){const _0x5cc5f7=['daily','30AciuDl','12sxcZUP','development','244056wFqnSp','ENV','434898vHcJKh','128mVbVEq','production','2163795ovjzCP','2240094mlDaAr','3526noyzUo','24ilHmPy','online','2555696ABcRVv','14MtKkeA','6695843ehyrBD'];a98_0x4e10=function(){return _0x5cc5f7;};return a98_0x4e10();}
1
+ const a98_0x21c929=a98_0x35fc;(function(_0x85bf93,_0x59aa02){const _0x33c609=a98_0x35fc,_0x11490d=_0x85bf93();while(!![]){try{const _0x441670=parseInt(_0x33c609(0x172))/0x1+-parseInt(_0x33c609(0x170))/0x2+parseInt(_0x33c609(0x174))/0x3*(parseInt(_0x33c609(0x177))/0x4)+-parseInt(_0x33c609(0x176))/0x5+parseInt(_0x33c609(0x171))/0x6+-parseInt(_0x33c609(0x178))/0x7+parseInt(_0x33c609(0x175))/0x8;if(_0x441670===_0x59aa02)break;else _0x11490d['push'](_0x11490d['shift']());}catch(_0x594b30){_0x11490d['push'](_0x11490d['shift']());}}}(a98_0x2a3d,0xc9ddb));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a98_0x21c929(0x16c),'development',a98_0x21c929(0x16f)];function a98_0x35fc(_0x3b513c,_0xf900d7){_0x3b513c=_0x3b513c-0x16c;const _0x2a3dd2=a98_0x2a3d();let _0x35fc6b=_0x2a3dd2[_0x3b513c];return _0x35fc6b;}export function normalizeEnv(_0x39a166){return _0x39a166==='online'?'production':_0x39a166;}export function isProduction(_0x576004){return normalizeEnv(_0x576004)==='production';}export function isDaily(_0x2f819c){const _0x1a2e07=a98_0x21c929;return normalizeEnv(_0x2f819c)===_0x1a2e07(0x16f);}export function isDev(_0x19030f){const _0x45eeff=a98_0x21c929,_0x49dca7=normalizeEnv(_0x19030f);return _0x49dca7===_0x45eeff(0x173)||_0x49dca7===_0x45eeff(0x16d);}function a98_0x2a3d(){const _0x31337c=['3605430nQhWRw','4nnRzHv','4290993ECbUNU','production','dev','ENV','daily','2022468DKxpnL','8253918Iyzqrm','877457KrXMcG','development','111171LqHcot','7055960ZHCLAj'];a98_0x2a3d=function(){return _0x31337c;};return a98_0x2a3d();}let env=normalizeEnv(productEnv(a98_0x21c929(0x16e))||a98_0x21c929(0x16c));export function getEnv(){return env;}export function initEnv(_0x5e0d6e){env=normalizeEnv(_0x5e0d6e);}