@lovrabet/lovrabet-cli 2.3.8-beta.2 → 2.3.8-beta.3

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 (183) 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 +6 -18
  107. package/lib/core/api-client.js +1 -1
  108. package/lib/core/db-resolver.js +1 -1
  109. package/lib/core/kb-management-client.js +1 -1
  110. package/lib/core/kb-search-client.js +1 -1
  111. package/lib/core/sdk-client.d.ts +2 -0
  112. package/lib/core/sdk-client.js +1 -1
  113. package/lib/errors.js +1 -1
  114. package/lib/framework/access-error.js +1 -1
  115. package/lib/framework/build-all-flags.js +1 -1
  116. package/lib/framework/dryrun.js +1 -1
  117. package/lib/framework/flags.js +1 -1
  118. package/lib/framework/help.js +1 -1
  119. package/lib/framework/index.js +1 -1
  120. package/lib/framework/output.js +1 -1
  121. package/lib/framework/preparse.js +1 -1
  122. package/lib/framework/rate-limit.js +1 -1
  123. package/lib/framework/raw-flags.js +1 -1
  124. package/lib/framework/response.js +1 -1
  125. package/lib/framework/runner-confirmation.js +1 -1
  126. package/lib/framework/runner-error.js +1 -1
  127. package/lib/framework/runner.js +1 -1
  128. package/lib/framework/schema-export.js +1 -1
  129. package/lib/framework/service-order.js +1 -1
  130. package/lib/framework/types.js +1 -1
  131. package/lib/generated/build-info.d.ts +4 -4
  132. package/lib/generated/build-info.js +1 -1
  133. package/lib/generated/official-routing.js +1 -1
  134. package/lib/generated/routing-contract.js +1 -1
  135. package/lib/help.js +1 -1
  136. package/lib/postinstall.js +1 -1
  137. package/lib/runtime/confirmation.js +1 -1
  138. package/lib/runtime/event.js +1 -1
  139. package/lib/runtime/index.js +1 -1
  140. package/lib/runtime/queue.js +1 -1
  141. package/lib/runtime/resolve.js +1 -1
  142. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  143. package/lib/services/dataset-import/excel-reader.js +1 -1
  144. package/lib/services/dataset-import/image-bytes.js +1 -1
  145. package/lib/services/dataset-import/image-ooxml.js +1 -1
  146. package/lib/services/dataset-import/image-runner.js +1 -1
  147. package/lib/services/dataset-import/metadata.js +1 -1
  148. package/lib/services/dataset-import/preview.js +1 -1
  149. package/lib/services/dataset-import/runner.js +1 -1
  150. package/lib/skills/builtin-skill.js +1 -1
  151. package/lib/skills/npx-skills-add.js +1 -1
  152. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  153. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  154. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  155. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  156. package/lib/skills/runtime-skill-sync/links.js +1 -1
  157. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  158. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  159. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  160. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  161. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  162. package/lib/skills/runtime-skill-sync/push.js +1 -1
  163. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  164. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  165. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  166. package/lib/skills/runtime-skill-sync.js +1 -1
  167. package/lib/skills/skill-presence.js +1 -1
  168. package/lib/utils/access-key-redaction.js +1 -1
  169. package/lib/utils/apply-jq-filter.js +1 -1
  170. package/lib/utils/cli-version-check.js +1 -1
  171. package/lib/utils/cli-version-policy.js +1 -1
  172. package/lib/utils/logger.js +1 -1
  173. package/lib/utils/lossless-json.js +1 -1
  174. package/lib/utils/params.js +1 -1
  175. package/lib/utils/positive-safe-integer.js +1 -1
  176. package/lib/utils/redaction.js +1 -1
  177. package/lib/utils/runtime-user-id.js +1 -1
  178. package/lib/utils/update-notice.js +1 -1
  179. package/lib/utils/version.js +1 -1
  180. package/lib/utils/write-cli-side-channel.js +1 -1
  181. package/package.json +2 -2
  182. package/skills/lovrabet/SKILL.md +1 -1
  183. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a82_0xd1265e=a82_0x2fa1;(function(_0xd13d5a,_0x5bb138){const _0x4e23d5=a82_0x2fa1,_0x4a7b31=_0xd13d5a();while(!![]){try{const _0x1ceedc=-parseInt(_0x4e23d5(0x85))/0x1+parseInt(_0x4e23d5(0xa6))/0x2+parseInt(_0x4e23d5(0x7f))/0x3*(-parseInt(_0x4e23d5(0xbb))/0x4)+parseInt(_0x4e23d5(0x9b))/0x5*(parseInt(_0x4e23d5(0x98))/0x6)+-parseInt(_0x4e23d5(0x99))/0x7*(parseInt(_0x4e23d5(0xb9))/0x8)+-parseInt(_0x4e23d5(0x89))/0x9*(parseInt(_0x4e23d5(0x76))/0xa)+parseInt(_0x4e23d5(0xc0))/0xb*(parseInt(_0x4e23d5(0xaa))/0xc);if(_0x1ceedc===_0x5bb138)break;else _0x4a7b31['push'](_0x4a7b31['shift']());}catch(_0x5a44e3){_0x4a7b31['push'](_0x4a7b31['shift']());}}}(a82_0x1e2a,0x7a4ac));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a82_0x4c76ee}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a82_0xd1265e(0xc3),SUPPORTED_SKILL_TYPES=new Set([a82_0xd1265e(0xa3),a82_0xd1265e(0x7d)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x4c4d30,_0x15c22e={}){const _0x3fbb53=a82_0xd1265e,_0x5c0bd3=resolveSkillDirectoryRoot(_0x4c4d30),_0x3c1fde=[],_0x36a7b4=loadRequiredSkillFile(_0x5c0bd3,_0x3c1fde),_0x2c70a3=_0x36a7b4?parseFrontmatter(_0x36a7b4['content']):{'hasFrontmatter':![]};_0x36a7b4&&validateFrontmatter(_0x36a7b4[_0x3fbb53(0x92)],_0x2c70a3,_0x3c1fde);validateRuntimeCliReferences(_0x5c0bd3,_0x3c1fde);const _0x18432b=_0x3c1fde[_0x3fbb53(0x72)](_0x2bf651=>_0x2bf651['level']===_0x3fbb53(0xb7)),_0x36c829=_0x3c1fde['filter'](_0x52cad7=>_0x52cad7[_0x3fbb53(0xa9)]===_0x3fbb53(0x9a));return{'ok':_0x18432b[_0x3fbb53(0x90)]===0x0,'dir':_0x5c0bd3,'type':_0x2c70a3['type'],'errors':_0x18432b,'warnings':_0x36c829};}function resolveSkillDirectoryRoot(_0x1596bd){const _0x446e41=a82_0xd1265e,_0x42c19c=resolve(_0x1596bd);if(!existsSync(_0x42c19c))throw CliErrors[_0x446e41(0xb6)](_0x446e41(0x7a)+_0x1596bd);const _0x21e9d3=lstatSync(_0x42c19c);if(_0x21e9d3['isDirectory']())return _0x42c19c;if(_0x21e9d3[_0x446e41(0xb2)]()){const _0x5df2f8=realpathSync(_0x42c19c);if(lstatSync(_0x5df2f8)['isDirectory']())return _0x5df2f8;}throw CliErrors[_0x446e41(0xb6)](_0x446e41(0x7a)+_0x1596bd);}export function throwIfSkillValidationFailed(_0x17765f,_0x1190a6=![]){const _0x5192ca=a82_0xd1265e;if(_0x17765f['ok'])return;const _0x4b52a3=_0x17765f['errors'][_0x5192ca(0x93)](_0x2c3767=>{const _0x3cd0aa=_0x5192ca,_0xce5820=_0x2c3767[_0x3cd0aa(0xb1)]?'#'+_0x2c3767[_0x3cd0aa(0xb1)]:'';return _0x2c3767[_0x3cd0aa(0xa9)][_0x3cd0aa(0xbc)]()+'\x20'+_0x2c3767[_0x3cd0aa(0xc1)]+'\x20'+_0x2c3767[_0x3cd0aa(0x83)]+_0xce5820+':\x20'+_0x2c3767[_0x3cd0aa(0xa7)]+_0x3cd0aa(0x6d)+_0x2c3767[_0x3cd0aa(0x6c)];});throw CliErrors['validation']('Skill\x20validation\x20failed:\x0a'+_0x4b52a3[_0x5192ca(0x75)]('\x0a'),_0x5192ca(0x73));}function loadRequiredSkillFile(_0x1e65a7,_0x31addf){const _0x5ebdce=a82_0xd1265e,_0x2f1b14=resolve(_0x1e65a7,SKILL_FILE);if(!existsSync(_0x2f1b14))return _0x31addf['push'](issue('error',_0x5ebdce(0x8f),SKILL_FILE,_0x5ebdce(0x88),_0x5ebdce(0xaf))),undefined;const _0x394044=lstatSync(_0x2f1b14);if(_0x394044[_0x5ebdce(0xb2)]())return _0x31addf[_0x5ebdce(0x6b)](issue('error',_0x5ebdce(0x8f),SKILL_FILE,'SKILL.md\x20must\x20be\x20a\x20regular\x20file.','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.')),undefined;if(!_0x394044['isFile']())return _0x31addf[_0x5ebdce(0x6b)](issue(_0x5ebdce(0xb7),'structure-complete',SKILL_FILE,_0x5ebdce(0x9c),_0x5ebdce(0x84))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x2f1b14,_0x5ebdce(0xb5))};}function validateFrontmatter(_0x5e14b8,_0x3b05cc,_0x140871){const _0x4f203d=a82_0xd1265e;if(!_0x3b05cc[_0x4f203d(0x82)]){_0x140871[_0x4f203d(0x6b)](issue('error',_0x4f203d(0xba),_0x5e14b8,'SKILL.md\x20must\x20start\x20with\x20frontmatter.',_0x4f203d(0x7e)));return;}!_0x3b05cc[_0x4f203d(0x96)]?.[_0x4f203d(0xb0)]()&&_0x140871[_0x4f203d(0x6b)](issue(_0x4f203d(0xb7),_0x4f203d(0xba),_0x5e14b8,_0x4f203d(0x6f),_0x4f203d(0x9f))),!_0x3b05cc[_0x4f203d(0x9e)]?.[_0x4f203d(0xb0)]()&&_0x140871['push'](issue('warning',_0x4f203d(0xb4),_0x5e14b8,_0x4f203d(0x69),_0x4f203d(0x70))),!_0x3b05cc[_0x4f203d(0x77)]?.[_0x4f203d(0xb0)]()&&_0x140871[_0x4f203d(0x6b)](issue(_0x4f203d(0x9a),_0x4f203d(0x79),_0x5e14b8,_0x4f203d(0xa8),_0x4f203d(0x7c))),!_0x3b05cc[_0x4f203d(0x94)]?.['trim']()&&_0x140871[_0x4f203d(0x6b)](issue(_0x4f203d(0xb7),_0x4f203d(0x97),_0x5e14b8,_0x4f203d(0xa1),_0x4f203d(0xc2))),_0x3b05cc[_0x4f203d(0xae)]===!![]&&_0x140871[_0x4f203d(0x6b)](issue(_0x4f203d(0xb7),_0x4f203d(0x9d),_0x5e14b8,_0x4f203d(0xbe),'Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.')),_0x3b05cc[_0x4f203d(0xa2)]?.[_0x4f203d(0xb0)]()&&!SUPPORTED_SKILL_TYPES[_0x4f203d(0x86)](_0x3b05cc[_0x4f203d(0xa2)])&&_0x140871['push'](issue(_0x4f203d(0xb7),_0x4f203d(0xba),_0x5e14b8,'metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','Set\x20metadata.type\x20to\x20write\x20or\x20read.'));}function validateRuntimeCliReferences(_0x396118,_0x284058){const _0x3e627d=a82_0xd1265e;for(const _0xc8821c of findRabetbaseCliInvocations(_0x396118)){_0x284058[_0x3e627d(0x6b)](issue(_0x3e627d(0x9a),_0x3e627d(0x78),_0xc8821c[_0x3e627d(0x83)],_0x3e627d(0x95),_0x3e627d(0x71),'L'+_0xc8821c[_0x3e627d(0x81)]));}}function findRabetbaseCliInvocations(_0x1d7155){const _0x10ed56=a82_0xd1265e;return scanSkillDirectory(_0x1d7155)[_0x10ed56(0x72)](_0x4613f5=>TEXT_SKILL_FILE_PATTERN[_0x10ed56(0xc6)](_0x4613f5[_0x10ed56(0x92)]))[_0x10ed56(0xc5)](_0x1581be=>{const _0xb2b913=_0x10ed56,_0x4f9644=fileText(_0x1581be);return _0x4f9644['split'](/\r?\n/)[_0xb2b913(0x93)]((_0x2f8ee4,_0x57aa0e)=>({'file':_0x1581be[_0xb2b913(0x92)],'line':_0x57aa0e+0x1,'text':_0x2f8ee4}))[_0xb2b913(0x72)](({text:_0x2923d4})=>isRabetbaseCliInvocation(_0x2923d4))[_0xb2b913(0x93)](({file:_0x5b7081,line:_0x5a5f56})=>({'file':_0x5b7081,'line':_0x5a5f56}));});}const RABETBASE_SUBCOMMANDS=[a82_0xd1265e(0xc4),a82_0xd1265e(0x6e),a82_0xd1265e(0xa0),a82_0xd1265e(0x7b),a82_0xd1265e(0x8a),a82_0xd1265e(0xac),a82_0xd1265e(0xa4),'service','artifact','kb',a82_0xd1265e(0xbd),a82_0xd1265e(0xad),a82_0xd1265e(0x8d),a82_0xd1265e(0xb8),a82_0xd1265e(0xbf),a82_0xd1265e(0x80)],RABETBASE_INVOCATION=new RegExp(String[a82_0xd1265e(0x8e)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS['join']('|')})\b`+String[a82_0xd1265e(0x8e)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0xd61440){const _0x525a3c=a82_0xd1265e,_0x11143a=_0xd61440['search'](/\brabetbase\b/i);if(_0x11143a<0x0)return![];const _0x33c44f=_0xd61440['slice'](_0x11143a)[_0x525a3c(0x74)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x525a3c(0xc6)](_0x33c44f);}function parseFrontmatter(_0x4b4822){const _0x35bbb3=a82_0xd1265e,_0x3402c9=_0x4b4822[_0x35bbb3(0xb3)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x3402c9)return{'hasFrontmatter':![]};const _0x2f537a=_0x3402c9[0x1]??'',_0x9dfb1e={'hasFrontmatter':!![]};let _0x131740;try{_0x131740=a82_0x4c76ee(_0x2f537a);}catch{return _0x9dfb1e;}const _0x2ed177=asRecord(_0x131740);if(!_0x2ed177)return _0x9dfb1e;_0x9dfb1e['name']=scalarToString(_0x2ed177[_0x35bbb3(0x96)]),_0x9dfb1e['displayName']=scalarToString(_0x2ed177[_0x35bbb3(0x9e)]),_0x9dfb1e[_0x35bbb3(0x94)]=scalarToString(_0x2ed177[_0x35bbb3(0x94)]),_0x9dfb1e['example']=scalarToString(_0x2ed177['example']);const _0xd5341f=asRecord(_0x2ed177[_0x35bbb3(0x8b)]);return _0xd5341f&&(_0x9dfb1e[_0x35bbb3(0xa2)]=scalarToString(_0xd5341f[_0x35bbb3(0xa2)]),_0x9dfb1e[_0x35bbb3(0xae)]=scalarToBoolean(_0xd5341f[_0x35bbb3(0xae)])),_0x9dfb1e;}function asRecord(_0x3eba32){const _0x5cd5ad=a82_0xd1265e;if(_0x3eba32&&typeof _0x3eba32===_0x5cd5ad(0xa5)&&!Array['isArray'](_0x3eba32))return _0x3eba32;return undefined;}function scalarToString(_0x5b701a){const _0x4c0f48=a82_0xd1265e;if(typeof _0x5b701a===_0x4c0f48(0x91))return _0x5b701a[_0x4c0f48(0xb0)]();if(typeof _0x5b701a===_0x4c0f48(0x87)||typeof _0x5b701a==='boolean')return String(_0x5b701a);return undefined;}function scalarToBoolean(_0x4c5848){const _0x16541f=a82_0xd1265e;if(typeof _0x4c5848===_0x16541f(0xab))return _0x4c5848;if(typeof _0x4c5848===_0x16541f(0x91))return cleanBoolean(_0x4c5848);return undefined;}function a82_0x2fa1(_0x13922b,_0x5285db){_0x13922b=_0x13922b-0x69;const _0x1e2a6f=a82_0x1e2a();let _0x2fa18b=_0x1e2a6f[_0x13922b];return _0x2fa18b;}function a82_0x1e2a(){const _0x44097b=['level','9075684WIHbsi','boolean','app','workspace','internal','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','trim','section','isSymbolicLink','match','display-name-recommended','utf8','validation','error','auth','200oQDFYP','frontmatter-required','28oAqVWP','toUpperCase','config','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','logs','22gKexhU','ruleId','Describe\x20when\x20the\x20model\x20should\x20trigger\x20this\x20Skill,\x20plus\x20out-of-scope\x20boundaries\x20and\x20keywords.','SKILL.md','dataset','flatMap','test','Frontmatter\x20displayName\x20is\x20missing.','true','push','suggestion','\x20Fix:\x20','sql','Frontmatter\x20name\x20is\x20missing.','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','filter','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','split','join','30rmavaE','example','rabetbase-cli-reference','example-recommended','Skill\x20directory\x20not\x20found:\x20','page','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','read','Add\x20frontmatter\x20with\x20name\x20and\x20description.','199473yszSVP','registry','line','hasFrontmatter','file','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','150651mSpNlU','has','number','Missing\x20SKILL.md.','1349586AXhjMt','project','metadata','false','data','raw','structure-complete','length','string','path','map','description','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','name','description-required','36rqrHhj','220122reAUMM','warning','337945GzSwGa','SKILL.md\x20is\x20not\x20a\x20file.','internal-skill','displayName','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','bff','Frontmatter\x20description\x20is\x20empty.','type','write','schema','object','869720KCEwUc','message','Frontmatter\x20example\x20is\x20missing.'];a82_0x1e2a=function(){return _0x44097b;};return a82_0x1e2a();}function cleanBoolean(_0x17817c){const _0x62d102=a82_0xd1265e,_0x4e3d56=_0x17817c['trim']()['toLowerCase']();if(_0x4e3d56===_0x62d102(0x6a))return!![];if(_0x4e3d56===_0x62d102(0x8c))return![];return undefined;}function issue(_0x351faf,_0x4bbdc3,_0x5353e2,_0x1ec2b6,_0x3a3436,_0x50c034){return{'level':_0x351faf,'ruleId':_0x4bbdc3,'file':_0x5353e2,'section':_0x50c034,'message':_0x1ec2b6,'suggestion':_0x3a3436};}
1
+ const a82_0x573d78=a82_0xedcf;(function(_0xae3826,_0x543915){const _0x49b911=a82_0xedcf,_0x37f9f4=_0xae3826();while(!![]){try{const _0x35e961=-parseInt(_0x49b911(0x1c6))/0x1*(parseInt(_0x49b911(0x1c9))/0x2)+-parseInt(_0x49b911(0x1a9))/0x3*(-parseInt(_0x49b911(0x1f6))/0x4)+parseInt(_0x49b911(0x1e7))/0x5+-parseInt(_0x49b911(0x1ef))/0x6+-parseInt(_0x49b911(0x1eb))/0x7*(-parseInt(_0x49b911(0x1b6))/0x8)+parseInt(_0x49b911(0x1b3))/0x9+parseInt(_0x49b911(0x1fb))/0xa*(parseInt(_0x49b911(0x1e2))/0xb);if(_0x35e961===_0x543915)break;else _0x37f9f4['push'](_0x37f9f4['shift']());}catch(_0x51f888){_0x37f9f4['push'](_0x37f9f4['shift']());}}}(a82_0x24fe,0xace5d));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';function a82_0x24fe(){const _0x1b3e34=['string','trim','config','hasFrontmatter','2861960nLXFoj','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','Skill\x20directory\x20not\x20found:\x20','path','392IzzSYs','errors','internal-skill','artifact','2650704bpMJuo','description-required','search','metadata','level','Set\x20metadata.type\x20to\x20write\x20or\x20read.','filter','122612eLTSlW','toLowerCase','sql','dataset','file','3430Wjnvtk','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','Missing\x20SKILL.md.','number','match','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','21luaYBM','\x20Fix:\x20','map','toUpperCase','validation','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','warning','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','project','true','714501Bibjwo','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','push','54320sBlxIb','length','SKILL.md\x20must\x20start\x20with\x20frontmatter.','Describe\x20when\x20the\x20model\x20should\x20trigger\x20this\x20Skill,\x20plus\x20out-of-scope\x20boundaries\x20and\x20keywords.','example','error','line','description','logs','content','service','suggestion','internal','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','structure-complete','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','2txbqSH','boolean','split','629298edDjtm','isFile','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','page','type','test','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','display-name-recommended','read','Add\x20frontmatter\x20with\x20name\x20and\x20description.','Frontmatter\x20description\x20is\x20empty.','frontmatter-required','slice','app','isDirectory','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','SKILL.md','object','displayName','flatMap','registry','Skill\x20validation\x20failed:\x0a','ruleId','name','raw','17083mEOFcs'];a82_0x24fe=function(){return _0x1b3e34;};return a82_0x24fe();}import{parse as a82_0x561429}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a82_0x573d78(0x1d9),SUPPORTED_SKILL_TYPES=new Set(['write',a82_0x573d78(0x1d1)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x303aea,_0x45ffab={}){const _0x2ea38f=a82_0x573d78,_0x40c10f=resolveSkillDirectoryRoot(_0x303aea),_0xf83324=[],_0x391b8f=loadRequiredSkillFile(_0x40c10f,_0xf83324),_0xcaad60=_0x391b8f?parseFrontmatter(_0x391b8f[_0x2ea38f(0x1bf)]):{'hasFrontmatter':![]};_0x391b8f&&validateFrontmatter(_0x391b8f[_0x2ea38f(0x1ea)],_0xcaad60,_0xf83324);validateRuntimeCliReferences(_0x40c10f,_0xf83324);const _0x22e6f7=_0xf83324[_0x2ea38f(0x1f5)](_0x3e0fc5=>_0x3e0fc5[_0x2ea38f(0x1f3)]===_0x2ea38f(0x1bb)),_0x522232=_0xf83324[_0x2ea38f(0x1f5)](_0x743439=>_0x743439['level']==='warning');return{'ok':_0x22e6f7[_0x2ea38f(0x1b7)]===0x0,'dir':_0x40c10f,'type':_0xcaad60[_0x2ea38f(0x1cd)],'errors':_0x22e6f7,'warnings':_0x522232};}function resolveSkillDirectoryRoot(_0x2546e3){const _0x51bc83=a82_0x573d78,_0x191b49=resolve(_0x2546e3);if(!existsSync(_0x191b49))throw CliErrors[_0x51bc83(0x1ad)](_0x51bc83(0x1e9)+_0x2546e3);const _0x485f09=lstatSync(_0x191b49);if(_0x485f09[_0x51bc83(0x1d7)]())return _0x191b49;if(_0x485f09['isSymbolicLink']()){const _0x1e18fb=realpathSync(_0x191b49);if(lstatSync(_0x1e18fb)[_0x51bc83(0x1d7)]())return _0x1e18fb;}throw CliErrors[_0x51bc83(0x1ad)](_0x51bc83(0x1e9)+_0x2546e3);}export function throwIfSkillValidationFailed(_0x3dd684,_0x50b4e6=![]){const _0x20cd86=a82_0x573d78;if(_0x3dd684['ok'])return;const _0x16fc6b=_0x3dd684[_0x20cd86(0x1ec)][_0x20cd86(0x1ab)](_0x38f435=>{const _0x2bae7=_0x20cd86,_0x207f7c=_0x38f435['section']?'#'+_0x38f435['section']:'';return _0x38f435[_0x2bae7(0x1f3)][_0x2bae7(0x1ac)]()+'\x20'+_0x38f435[_0x2bae7(0x1df)]+'\x20'+_0x38f435[_0x2bae7(0x1fa)]+_0x207f7c+':\x20'+_0x38f435['message']+_0x2bae7(0x1aa)+_0x38f435[_0x2bae7(0x1c1)];});throw CliErrors[_0x20cd86(0x1ad)](_0x20cd86(0x1de)+_0x16fc6b['join']('\x0a'),_0x20cd86(0x1c3));}function loadRequiredSkillFile(_0x45338c,_0x832c6b){const _0x1bc97c=a82_0x573d78,_0x15b9d9=resolve(_0x45338c,SKILL_FILE);if(!existsSync(_0x15b9d9))return _0x832c6b[_0x1bc97c(0x1b5)](issue(_0x1bc97c(0x1bb),_0x1bc97c(0x1c4),SKILL_FILE,_0x1bc97c(0x1fd),_0x1bc97c(0x1e8))),undefined;const _0x50dee8=lstatSync(_0x15b9d9);if(_0x50dee8['isSymbolicLink']())return _0x832c6b[_0x1bc97c(0x1b5)](issue(_0x1bc97c(0x1bb),_0x1bc97c(0x1c4),SKILL_FILE,_0x1bc97c(0x1ae),_0x1bc97c(0x1c5))),undefined;if(!_0x50dee8[_0x1bc97c(0x1ca)]())return _0x832c6b[_0x1bc97c(0x1b5)](issue(_0x1bc97c(0x1bb),_0x1bc97c(0x1c4),SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.',_0x1bc97c(0x1cf))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x15b9d9,'utf8')};}function a82_0xedcf(_0x458704,_0x2e2e8e){_0x458704=_0x458704-0x1a9;const _0x24feb3=a82_0x24fe();let _0xedcf91=_0x24feb3[_0x458704];return _0xedcf91;}function validateFrontmatter(_0x19c083,_0x2e1b1a,_0x36b324){const _0x54edc8=a82_0x573d78;if(!_0x2e1b1a[_0x54edc8(0x1e6)]){_0x36b324[_0x54edc8(0x1b5)](issue('error',_0x54edc8(0x1d4),_0x19c083,_0x54edc8(0x1b8),_0x54edc8(0x1d2)));return;}!_0x2e1b1a[_0x54edc8(0x1e0)]?.[_0x54edc8(0x1e4)]()&&_0x36b324['push'](issue(_0x54edc8(0x1bb),_0x54edc8(0x1d4),_0x19c083,'Frontmatter\x20name\x20is\x20missing.',_0x54edc8(0x1d8))),!_0x2e1b1a[_0x54edc8(0x1db)]?.[_0x54edc8(0x1e4)]()&&_0x36b324[_0x54edc8(0x1b5)](issue(_0x54edc8(0x1af),_0x54edc8(0x1d0),_0x19c083,'Frontmatter\x20displayName\x20is\x20missing.','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.')),!_0x2e1b1a['example']?.[_0x54edc8(0x1e4)]()&&_0x36b324[_0x54edc8(0x1b5)](issue(_0x54edc8(0x1af),'example-recommended',_0x19c083,'Frontmatter\x20example\x20is\x20missing.',_0x54edc8(0x1cb))),!_0x2e1b1a[_0x54edc8(0x1bd)]?.[_0x54edc8(0x1e4)]()&&_0x36b324[_0x54edc8(0x1b5)](issue(_0x54edc8(0x1bb),_0x54edc8(0x1f0),_0x19c083,_0x54edc8(0x1d3),_0x54edc8(0x1b9))),_0x2e1b1a[_0x54edc8(0x1c2)]===!![]&&_0x36b324['push'](issue(_0x54edc8(0x1bb),_0x54edc8(0x1ed),_0x19c083,_0x54edc8(0x1fc),_0x54edc8(0x1b0))),_0x2e1b1a[_0x54edc8(0x1cd)]?.[_0x54edc8(0x1e4)]()&&!SUPPORTED_SKILL_TYPES['has'](_0x2e1b1a[_0x54edc8(0x1cd)])&&_0x36b324[_0x54edc8(0x1b5)](issue(_0x54edc8(0x1bb),_0x54edc8(0x1d4),_0x19c083,'metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.',_0x54edc8(0x1f4)));}function validateRuntimeCliReferences(_0x23b7e3,_0x31dc5c){const _0x1c86e9=a82_0x573d78;for(const _0x2c386a of findRabetbaseCliInvocations(_0x23b7e3)){_0x31dc5c['push'](issue(_0x1c86e9(0x1af),'rabetbase-cli-reference',_0x2c386a[_0x1c86e9(0x1fa)],_0x1c86e9(0x200),_0x1c86e9(0x1b4),'L'+_0x2c386a[_0x1c86e9(0x1bc)]));}}function findRabetbaseCliInvocations(_0x2c5e9e){const _0xda59cb=a82_0x573d78;return scanSkillDirectory(_0x2c5e9e)[_0xda59cb(0x1f5)](_0x5f01b1=>TEXT_SKILL_FILE_PATTERN['test'](_0x5f01b1[_0xda59cb(0x1ea)]))[_0xda59cb(0x1dc)](_0x2afa29=>{const _0x1bba10=_0xda59cb,_0x5c7e92=fileText(_0x2afa29);return _0x5c7e92[_0x1bba10(0x1c8)](/\r?\n/)[_0x1bba10(0x1ab)]((_0x40f3a3,_0x41ae05)=>({'file':_0x2afa29[_0x1bba10(0x1ea)],'line':_0x41ae05+0x1,'text':_0x40f3a3}))['filter'](({text:_0x232f90})=>isRabetbaseCliInvocation(_0x232f90))[_0x1bba10(0x1ab)](({file:_0x223d71,line:_0x3dd936})=>({'file':_0x223d71,'line':_0x3dd936}));});}const RABETBASE_SUBCOMMANDS=[a82_0x573d78(0x1f9),a82_0x573d78(0x1f8),'bff',a82_0x573d78(0x1cc),a82_0x573d78(0x1b1),a82_0x573d78(0x1d6),'schema',a82_0x573d78(0x1c0),a82_0x573d78(0x1ee),'kb',a82_0x573d78(0x1e5),'workspace','data','auth',a82_0x573d78(0x1be),a82_0x573d78(0x1dd)],RABETBASE_INVOCATION=new RegExp(String['raw']`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS['join']('|')})\b`+String[a82_0x573d78(0x1e1)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0xfa8393){const _0x365a5f=a82_0x573d78,_0xf1e52d=_0xfa8393[_0x365a5f(0x1f1)](/\brabetbase\b/i);if(_0xf1e52d<0x0)return![];const _0x56be44=_0xfa8393[_0x365a5f(0x1d5)](_0xf1e52d)[_0x365a5f(0x1c8)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x365a5f(0x1ce)](_0x56be44);}function parseFrontmatter(_0x15b805){const _0x288fc0=a82_0x573d78,_0x465e4a=_0x15b805[_0x288fc0(0x1ff)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x465e4a)return{'hasFrontmatter':![]};const _0x14d759=_0x465e4a[0x1]??'',_0x4ae6ab={'hasFrontmatter':!![]};let _0x127954;try{_0x127954=a82_0x561429(_0x14d759);}catch{return _0x4ae6ab;}const _0x2744c0=asRecord(_0x127954);if(!_0x2744c0)return _0x4ae6ab;_0x4ae6ab['name']=scalarToString(_0x2744c0[_0x288fc0(0x1e0)]),_0x4ae6ab[_0x288fc0(0x1db)]=scalarToString(_0x2744c0[_0x288fc0(0x1db)]),_0x4ae6ab[_0x288fc0(0x1bd)]=scalarToString(_0x2744c0[_0x288fc0(0x1bd)]),_0x4ae6ab[_0x288fc0(0x1ba)]=scalarToString(_0x2744c0[_0x288fc0(0x1ba)]);const _0xf64ebb=asRecord(_0x2744c0[_0x288fc0(0x1f2)]);return _0xf64ebb&&(_0x4ae6ab[_0x288fc0(0x1cd)]=scalarToString(_0xf64ebb[_0x288fc0(0x1cd)]),_0x4ae6ab[_0x288fc0(0x1c2)]=scalarToBoolean(_0xf64ebb[_0x288fc0(0x1c2)])),_0x4ae6ab;}function asRecord(_0x575f08){const _0x27531c=a82_0x573d78;if(_0x575f08&&typeof _0x575f08===_0x27531c(0x1da)&&!Array['isArray'](_0x575f08))return _0x575f08;return undefined;}function scalarToString(_0x1aa5e5){const _0x59a6a9=a82_0x573d78;if(typeof _0x1aa5e5===_0x59a6a9(0x1e3))return _0x1aa5e5[_0x59a6a9(0x1e4)]();if(typeof _0x1aa5e5===_0x59a6a9(0x1fe)||typeof _0x1aa5e5===_0x59a6a9(0x1c7))return String(_0x1aa5e5);return undefined;}function scalarToBoolean(_0x2a522f){const _0x1747cb=a82_0x573d78;if(typeof _0x2a522f===_0x1747cb(0x1c7))return _0x2a522f;if(typeof _0x2a522f==='string')return cleanBoolean(_0x2a522f);return undefined;}function cleanBoolean(_0x970cd8){const _0x1b2176=a82_0x573d78,_0x146515=_0x970cd8[_0x1b2176(0x1e4)]()[_0x1b2176(0x1f7)]();if(_0x146515===_0x1b2176(0x1b2))return!![];if(_0x146515==='false')return![];return undefined;}function issue(_0x3df101,_0xdc45f2,_0x35d6c1,_0x53a207,_0x119f26,_0x183531){return{'level':_0x3df101,'ruleId':_0xdc45f2,'file':_0x35d6c1,'section':_0x183531,'message':_0x53a207,'suggestion':_0x119f26};}
@@ -1 +1 @@
1
- const a83_0x19fe90=a83_0x46a1;(function(_0x55f1a1,_0x6804e0){const _0x25f1d8=a83_0x46a1,_0xf80361=_0x55f1a1();while(!![]){try{const _0x5a3927=-parseInt(_0x25f1d8(0xf6))/0x1*(parseInt(_0x25f1d8(0xf5))/0x2)+parseInt(_0x25f1d8(0xf2))/0x3*(-parseInt(_0x25f1d8(0xfb))/0x4)+-parseInt(_0x25f1d8(0xf0))/0x5+-parseInt(_0x25f1d8(0xf8))/0x6*(-parseInt(_0x25f1d8(0xea))/0x7)+-parseInt(_0x25f1d8(0xeb))/0x8+parseInt(_0x25f1d8(0xe8))/0x9+parseInt(_0x25f1d8(0xe9))/0xa;if(_0x5a3927===_0x6804e0)break;else _0xf80361['push'](_0xf80361['shift']());}catch(_0xa22e35){_0xf80361['push'](_0xf80361['shift']());}}}(a83_0x2909,0xcb3fc));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';function a83_0x46a1(_0x5282a5,_0x22abb3){_0x5282a5=_0x5282a5-0xe8;const _0x29096e=a83_0x2909();let _0x46a1c3=_0x29096e[_0x5282a5];return _0x46a1c3;}function a83_0x2909(){const _0xc61740=['4262464cWzJJw','dbId','verbose','sqlcode','read','8149115mtlOrv','sqlContent','3rORvXY','str','detail','20yCMvkS','2973Bujmuq','sqlCode','6HLzggT','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','appCode','2669028qYQKXU','2094660bbwdek','19756230riLHNJ','10386341ciyphj'];a83_0x2909=function(){return _0xc61740;};return a83_0x2909();}import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':'sql','command':a83_0x19fe90(0xf4),'description':a83_0x19fe90(0xf9),'risk':a83_0x19fe90(0xef),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x3ddd5b){const _0x3fea69=a83_0x19fe90,_0x59f084=await getSqlQueryInfo(_0x3ddd5b[_0x3fea69(0xfa)],_0x3ddd5b[_0x3fea69(0xf3)](_0x3fea69(0xee))),_0x183767=_0x3ddd5b['bool'](_0x3fea69(0xed));if(_0x183767)return{'ok':!![],'data':_0x59f084};const _0x278e5f=_0x59f084[_0x3fea69(0xec)]?await getDbName(_0x3ddd5b[_0x3fea69(0xfa)],_0x59f084[_0x3fea69(0xec)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x59f084[_0x3fea69(0xf7)],'sqlName':_0x59f084['sqlName'],'db':_0x278e5f?_0x278e5f+'\x20('+_0x59f084[_0x3fea69(0xec)]+')':_0x59f084['dbId']??'','sqlContent':_0x59f084[_0x3fea69(0xf1)]??''}};}};
1
+ const a83_0x2f278c=a83_0x1ee8;function a83_0x5231(){const _0x1b14f7=['8200uniDWn','sqlcode','sqlName','read','327789dfhGta','str','detail','12jHTrqC','dbId','9691155wLfQNu','4913008AWZrun','bool','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','1625SpluEQ','sql','verbose','1384RVdWrD','780ZWijmv','582AkpWKm','25269470ySQQeJ'];a83_0x5231=function(){return _0x1b14f7;};return a83_0x5231();}function a83_0x1ee8(_0x547ab1,_0x2e1ebe){_0x547ab1=_0x547ab1-0xb9;const _0x52318f=a83_0x5231();let _0x1ee8be=_0x52318f[_0x547ab1];return _0x1ee8be;}(function(_0x440492,_0x55bbf4){const _0x318fbb=a83_0x1ee8,_0x4445ee=_0x440492();while(!![]){try{const _0x2e791d=-parseInt(_0x318fbb(0xbb))/0x1*(parseInt(_0x318fbb(0xbe))/0x2)+-parseInt(_0x318fbb(0xc0))/0x3*(parseInt(_0x318fbb(0xc2))/0x4)+-parseInt(_0x318fbb(0xbf))/0x5*(-parseInt(_0x318fbb(0xc9))/0x6)+parseInt(_0x318fbb(0xc6))/0x7+parseInt(_0x318fbb(0xcc))/0x8+-parseInt(_0x318fbb(0xcb))/0x9+parseInt(_0x318fbb(0xc1))/0xa;if(_0x2e791d===_0x55bbf4)break;else _0x4445ee['push'](_0x4445ee['shift']());}catch(_0x125582){_0x4445ee['push'](_0x4445ee['shift']());}}}(a83_0x5231,0x8fda1));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_0x2f278c(0xbc),'command':a83_0x2f278c(0xc8),'description':a83_0x2f278c(0xba),'risk':a83_0x2f278c(0xc5),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x29042b){const _0x21d47f=a83_0x2f278c,_0x2c4e68=await getSqlQueryInfo(_0x29042b['appCode'],_0x29042b[_0x21d47f(0xc7)](_0x21d47f(0xc3))),_0x68622b=_0x29042b[_0x21d47f(0xb9)](_0x21d47f(0xbd));if(_0x68622b)return{'ok':!![],'data':_0x2c4e68};const _0x3e8b1c=_0x2c4e68['dbId']?await getDbName(_0x29042b['appCode'],_0x2c4e68[_0x21d47f(0xca)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x2c4e68['sqlCode'],'sqlName':_0x2c4e68[_0x21d47f(0xc4)],'db':_0x3e8b1c?_0x3e8b1c+'\x20('+_0x2c4e68['dbId']+')':_0x2c4e68[_0x21d47f(0xca)]??'','sqlContent':_0x2c4e68['sqlContent']??''}};}};
@@ -1 +1 @@
1
- function a84_0x17e7(_0x26245f,_0x4d9430){_0x26245f=_0x26245f-0x192;const _0x258a69=a84_0x258a();let _0x17e73a=_0x258a69[_0x26245f];return _0x17e73a;}function a84_0x258a(){const _0x5382e4=['execSuccess','2010463WfHKfl','349464VLGEMm','Returned\x20','929265zPXbuh','read','apiError','exec','4HXLTZE','Invalid\x20SQL\x20execution\x20response:\x20execSuccess\x20must\x20be\x20a\x20boolean.','20mgBsGE','now','object','357599LnXXvp','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','isArray','8mxqolU','195462YSEbZF','412020rODTpv','10mtcPFO','sqlcode','execResult','SQL\x20execution\x20failed','sql','\x20row(s)\x20in\x20','9116657jdwfYT','length','params'];a84_0x258a=function(){return _0x5382e4;};return a84_0x258a();}const a84_0xf0bf8d=a84_0x17e7;(function(_0x206fe6,_0x298d06){const _0x3ca0a5=a84_0x17e7,_0x37e330=_0x206fe6();while(!![]){try{const _0x1b8e9c=parseInt(_0x3ca0a5(0x194))/0x1+-parseInt(_0x3ca0a5(0x1ab))/0x2*(parseInt(_0x3ca0a5(0x1a7))/0x3)+-parseInt(_0x3ca0a5(0x1a5))/0x4*(parseInt(_0x3ca0a5(0x1ad))/0x5)+-parseInt(_0x3ca0a5(0x199))/0x6+-parseInt(_0x3ca0a5(0x1a4))/0x7*(-parseInt(_0x3ca0a5(0x197))/0x8)+-parseInt(_0x3ca0a5(0x198))/0x9+parseInt(_0x3ca0a5(0x19a))/0xa*(parseInt(_0x3ca0a5(0x1a0))/0xb);if(_0x1b8e9c===_0x298d06)break;else _0x37e330['push'](_0x37e330['shift']());}catch(_0x243af7){_0x37e330['push'](_0x37e330['shift']());}}}(a84_0x258a,0x65219));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';import{CliErrors}from'../../errors.js';export const sqlExec={'service':a84_0xf0bf8d(0x19e),'command':a84_0xf0bf8d(0x1aa),'description':a84_0xf0bf8d(0x195),'risk':a84_0xf0bf8d(0x1a8),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x2ae660){const _0xea62bb=a84_0xf0bf8d,_0x25355b=parseJsonParams(_0x2ae660['str'](_0xea62bb(0x1a2))),_0x32a358=Date[_0xea62bb(0x192)](),_0x401903=await executeSdkSql(_0x2ae660['str'](_0xea62bb(0x19b)),_0x25355b),_0x11b0ca=Date[_0xea62bb(0x192)]()-_0x32a358;if(!_0x401903||typeof _0x401903!==_0xea62bb(0x193)||Array[_0xea62bb(0x196)](_0x401903)||typeof _0x401903[_0xea62bb(0x1a3)]!=='boolean')throw CliErrors[_0xea62bb(0x1a9)](_0xea62bb(0x1ac));if(!_0x401903[_0xea62bb(0x1a3)])return{'ok':![],'data':{'error':_0xea62bb(0x19d),'elapsed':_0x11b0ca},'message':_0xea62bb(0x19d)};const _0x24ab1a=Array[_0xea62bb(0x196)](_0x401903['execResult'])?_0x401903[_0xea62bb(0x19c)]:[];return{'ok':!![],'data':{'rows':_0x24ab1a,'rowCount':_0x24ab1a[_0xea62bb(0x1a1)],'elapsed':_0x11b0ca},'message':_0xea62bb(0x1a6)+_0x24ab1a[_0xea62bb(0x1a1)]+_0xea62bb(0x19f)+_0x11b0ca+'ms'};}};
1
+ const a84_0x19ac2a=a84_0x2f93;(function(_0x3d236d,_0x5b3d06){const _0xefc870=a84_0x2f93,_0x1c8b7f=_0x3d236d();while(!![]){try{const _0x1bd616=-parseInt(_0xefc870(0x18f))/0x1*(parseInt(_0xefc870(0x199))/0x2)+-parseInt(_0xefc870(0x19a))/0x3+-parseInt(_0xefc870(0x193))/0x4*(parseInt(_0xefc870(0x198))/0x5)+parseInt(_0xefc870(0x19c))/0x6*(parseInt(_0xefc870(0x1a0))/0x7)+parseInt(_0xefc870(0x190))/0x8+parseInt(_0xefc870(0x19f))/0x9*(-parseInt(_0xefc870(0x19e))/0xa)+parseInt(_0xefc870(0x18d))/0xb*(parseInt(_0xefc870(0x194))/0xc);if(_0x1bd616===_0x5b3d06)break;else _0x1c8b7f['push'](_0x1c8b7f['shift']());}catch(_0xc1b00d){_0x1c8b7f['push'](_0x1c8b7f['shift']());}}}(a84_0x7f9c,0xd15c6));import{executeSdkSql}from'../../core/sdk-client.js';function a84_0x7f9c(){const _0x19dfd4=['sql','now','25072080zpSrnp','params','69343sakyEi','3603608GGXywG','str','Returned\x20','216380sJCDHz','24zGCiBk','apiError','\x20row(s)\x20in\x20','sqlcode','155GPBTWc','14tAPfjj','2897853PzdfcF','boolean','18FNZcrL','execResult','10HzolxV','9239355pQIUUN','7987CuqVlY','length','Invalid\x20SQL\x20execution\x20response:\x20execSuccess\x20must\x20be\x20a\x20boolean.','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','execSuccess'];a84_0x7f9c=function(){return _0x19dfd4;};return a84_0x7f9c();}function a84_0x2f93(_0x10f69d,_0x44705b){_0x10f69d=_0x10f69d-0x188;const _0x7f9c6d=a84_0x7f9c();let _0x2f935b=_0x7f9c6d[_0x10f69d];return _0x2f935b;}import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';import{CliErrors}from'../../errors.js';export const sqlExec={'service':a84_0x19ac2a(0x18b),'command':'exec','description':a84_0x19ac2a(0x189),'risk':'read','flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x28f41c){const _0x3b2554=a84_0x19ac2a,_0x27d285=parseJsonParams(_0x28f41c[_0x3b2554(0x191)](_0x3b2554(0x18e))),_0x4fb241=Date[_0x3b2554(0x18c)](),_0x2d7cfa=await executeSdkSql(_0x28f41c[_0x3b2554(0x191)](_0x3b2554(0x197)),_0x27d285),_0x10a525=Date[_0x3b2554(0x18c)]()-_0x4fb241;if(!_0x2d7cfa||typeof _0x2d7cfa!=='object'||Array['isArray'](_0x2d7cfa)||typeof _0x2d7cfa['execSuccess']!==_0x3b2554(0x19b))throw CliErrors[_0x3b2554(0x195)](_0x3b2554(0x188));if(!_0x2d7cfa[_0x3b2554(0x18a)])return{'ok':![],'data':{'error':'SQL\x20execution\x20failed','elapsed':_0x10a525},'message':'SQL\x20execution\x20failed'};const _0x38db44=Array['isArray'](_0x2d7cfa[_0x3b2554(0x19d)])?_0x2d7cfa[_0x3b2554(0x19d)]:[];return{'ok':!![],'data':{'rows':_0x38db44,'rowCount':_0x38db44[_0x3b2554(0x1a1)],'elapsed':_0x10a525},'message':_0x3b2554(0x192)+_0x38db44[_0x3b2554(0x1a1)]+_0x3b2554(0x196)+_0x10a525+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x5701c9,_0x260c61){const _0xfd08b9=a85_0x49a9,_0x3f5336=_0x5701c9();while(!![]){try{const _0x2c3991=parseInt(_0xfd08b9(0x120))/0x1*(-parseInt(_0xfd08b9(0x122))/0x2)+parseInt(_0xfd08b9(0x127))/0x3*(-parseInt(_0xfd08b9(0x123))/0x4)+parseInt(_0xfd08b9(0x125))/0x5*(parseInt(_0xfd08b9(0x11e))/0x6)+parseInt(_0xfd08b9(0x128))/0x7+parseInt(_0xfd08b9(0x11f))/0x8+parseInt(_0xfd08b9(0x126))/0x9*(-parseInt(_0xfd08b9(0x124))/0xa)+parseInt(_0xfd08b9(0x121))/0xb;if(_0x2c3991===_0x260c61)break;else _0x3f5336['push'](_0x3f5336['shift']());}catch(_0x50a861){_0x3f5336['push'](_0x3f5336['shift']());}}}(a85_0x6777,0x1b94f));function a85_0x6777(){const _0x419e06=['917592rKYuWS','195853NUvbwd','2017532zqEhZv','2mhEJnp','30188nkqJlq','50xmxVSi','5UVAsXj','203445vIJBeK','6ExIAHB','332073aAQLnd','548382qHNqKt'];a85_0x6777=function(){return _0x419e06;};return a85_0x6777();}import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a85_0x49a9(_0x5592d7,_0x413343){_0x5592d7=_0x5592d7-0x11e;const _0x6777d7=a85_0x6777();let _0x49a9a5=_0x6777d7[_0x5592d7];return _0x49a9a5;}export const sqlDefinitions=[sqlDetail,sqlExec];
1
+ (function(_0x4e1cb0,_0x5746f9){const _0x1a57df=a85_0x4342,_0x2b504d=_0x4e1cb0();while(!![]){try{const _0x4bfad2=-parseInt(_0x1a57df(0xd0))/0x1+parseInt(_0x1a57df(0xcf))/0x2*(parseInt(_0x1a57df(0xd2))/0x3)+parseInt(_0x1a57df(0xcd))/0x4+parseInt(_0x1a57df(0xd3))/0x5+-parseInt(_0x1a57df(0xd7))/0x6*(parseInt(_0x1a57df(0xd4))/0x7)+-parseInt(_0x1a57df(0xd1))/0x8*(parseInt(_0x1a57df(0xce))/0x9)+-parseInt(_0x1a57df(0xd6))/0xa*(-parseInt(_0x1a57df(0xd5))/0xb);if(_0x4bfad2===_0x5746f9)break;else _0x2b504d['push'](_0x2b504d['shift']());}catch(_0x51fa59){_0x2b504d['push'](_0x2b504d['shift']());}}}(a85_0x63f6,0xc46ab));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a85_0x63f6(){const _0x2eccab=['680AgytTs','204lgjMSV','6367940EAdXyo','1379GCHCXd','121mjXKfG','2210550ieIyaB','43038GIxIlB','342516hDDwVi','138636suRvVe','20650oZKPEY','965978dVTbMO'];a85_0x63f6=function(){return _0x2eccab;};return a85_0x63f6();}function a85_0x4342(_0x445439,_0x2272bf){_0x445439=_0x445439-0xcd;const _0x63f699=a85_0x63f6();let _0x43429f=_0x63f699[_0x445439];return _0x43429f;}export const sqlDefinitions=[sqlDetail,sqlExec];
@@ -1 +1 @@
1
- const a86_0x4e2891=a86_0x1cfd;(function(_0x2ec6ef,_0x2181e2){const _0x4e394c=a86_0x1cfd,_0x281c5a=_0x2ec6ef();while(!![]){try{const _0x2a5d1a=-parseInt(_0x4e394c(0x17b))/0x1+parseInt(_0x4e394c(0x1ca))/0x2+parseInt(_0x4e394c(0x176))/0x3*(-parseInt(_0x4e394c(0x1ba))/0x4)+parseInt(_0x4e394c(0x16f))/0x5*(-parseInt(_0x4e394c(0x191))/0x6)+parseInt(_0x4e394c(0x172))/0x7+parseInt(_0x4e394c(0x19f))/0x8*(parseInt(_0x4e394c(0x1b9))/0x9)+-parseInt(_0x4e394c(0x1b0))/0xa;if(_0x2a5d1a===_0x2181e2)break;else _0x281c5a['push'](_0x281c5a['shift']());}catch(_0x350213){_0x281c5a['push'](_0x281c5a['shift']());}}}(a86_0x126b,0x87545));import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import{execaSync}from'execa';import a86_0x133933 from'semver';function a86_0x1cfd(_0x3104cd,_0x1c08d4){_0x3104cd=_0x3104cd-0x16e;const _0x126bae=a86_0x126b();let _0x1cfd62=_0x126bae[_0x3104cd];return _0x1cfd62;}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';const updateFlags=[{'name':a86_0x4e2891(0x18a),'type':a86_0x4e2891(0x1a8),'description':a86_0x4e2891(0x178),'default':![]},{'name':a86_0x4e2891(0x196),'type':'boolean','description':a86_0x4e2891(0x173),'default':![]},{'name':'version','type':a86_0x4e2891(0x195),'description':'Install\x20a\x20specific\x20CLI\x20version'}];function getRequestedVersion(_0x3d32a1){const _0x14e58a=a86_0x4e2891,_0x5911a4=_0x3d32a1['str'](_0x14e58a(0x1ae))[_0x14e58a(0x1ad)]();if(_0x5911a4)return _0x5911a4;return String(_0x3d32a1['args']?.[0x0]??'')[_0x14e58a(0x1ad)]();}async function validateUpdateFlags(_0x4fa594){const _0xec9b3a=a86_0x4e2891,_0x3c2726=getRequestedVersion(_0x4fa594),_0x1152c2=[_0x4fa594[_0xec9b3a(0x181)](_0xec9b3a(0x18a))?_0xec9b3a(0x18a):'',_0x4fa594[_0xec9b3a(0x181)](_0xec9b3a(0x196))?_0xec9b3a(0x196):'',_0x3c2726?_0xec9b3a(0x1ae):''][_0xec9b3a(0x1b3)](Boolean);if(_0x1152c2[_0xec9b3a(0x183)]>0x1)throw CliErrors['validation'](_0xec9b3a(0x19e),_0xec9b3a(0x17c));if(_0x3c2726&&!a86_0x133933[_0xec9b3a(0x1c4)](_0x3c2726))throw CliErrors[_0xec9b3a(0x1be)](_0xec9b3a(0x1ac)+_0x3c2726,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x236802=a86_0x4e2891;try{const _0x358362=NPM_REGISTRY_BASE_URL+_0x236802(0x189)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x311e70=await fetch(_0x358362,{'signal':AbortSignal[_0x236802(0x1b2)](0x2710)});if(!_0x311e70['ok'])return null;const _0x6f13ce=await _0x311e70['json']();if(!_0x6f13ce||typeof _0x6f13ce!==_0x236802(0x16e))return null;return Object[_0x236802(0x194)](Object[_0x236802(0x198)](_0x6f13ce)[_0x236802(0x1b3)](([,_0x24e630])=>typeof _0x24e630===_0x236802(0x195)&&_0x24e630[_0x236802(0x1ad)]())[_0x236802(0x197)](([_0x524dfa,_0x17d990])=>[_0x524dfa,String(_0x17d990)[_0x236802(0x1ad)]()]));}catch{return null;}}async function resolveTargetVersion(_0x323e9b){const _0x5b7798=a86_0x4e2891,_0x3a65b1=getRequestedVersion(_0x323e9b);if(_0x3a65b1)return{'version':_0x3a65b1,'source':'version'};const _0x3c55fa=_0x323e9b[_0x5b7798(0x181)](_0x5b7798(0x196))?_0x5b7798(0x196):_0x5b7798(0x18a),_0x9cbaa=await fetchNpmDistTags(),_0x8064ad=_0x9cbaa?.[_0x3c55fa];if(!_0x8064ad)return null;return{'version':_0x8064ad,'source':_0x3c55fa};}function a86_0x126b(){const _0x14f306=['trim','version','Checking\x20npm\x20dist-tags...','3976690ORHzWl','basename','timeout','filter','skillVersion','pipe','Already\x20on\x20requested\x20version\x20(v','Version\x20comparison\x20failed:\x20','Unable\x20to\x20resolve\x20','4289724gxvMYH','3980IqEJzt','\x20\x20CLI\x20Built-in\x20Skill\x20','dirname','platform','validation','reason',',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20','Run:\x20npm\x20install\x20-g\x20','\x20dist-tags,\x20then\x20retry.','unknown','valid','exit\x20','INSTALL_FAILED','apiError','warn','Update\x20the\x20','254872bONTql','--prefix','\x20->\x20','relative','object','78860xwCxvs','Updated\x20to\x20v','Checking\x20CLI\x20Built-in\x20Skill...','2959964uVcVhT','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','inherit','win32','654GufEgf','Run:\x20npm\x20view\x20','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','source','\x20CLI\x20from\x20npm','145408QsrLjh','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','@lovrabet/lovrabet-cli','expected\x20','Update\x20failed:\x20','exitCode','bool','CLI\x20updated\x20to\x20v','length','shortMessage','toLowerCase','Already\x20up\x20to\x20date\x20(v','test','Run:\x20','/-/package/','latest','repairCommand','state','join','install','node_modules','stderr','72GqyUNZ',',\x20found\x20',',\x20then\x20verify\x20with:\x20','fromEntries','string','beta','map','entries','npm','Updating\x20','code','nonInteractive','includes','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','16kMVzcD','run','CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','error','log','Current\x20version:\x20','current','stdout','boolean','\x20doctor','write','read','Invalid\x20version:\x20'];a86_0x126b=function(){return _0x14f306;};return a86_0x126b();}function shouldInstallTarget(_0xb053c0,_0x458a67){const _0x3ec078=a86_0x4e2891;if(_0x458a67[_0x3ec078(0x179)]===_0x3ec078(0x1ae)||_0x458a67[_0x3ec078(0x179)]==='beta')return!a86_0x133933['eq'](_0xb053c0,_0x458a67[_0x3ec078(0x1ae)]);return a86_0x133933['lt'](_0xb053c0,_0x458a67['version']);}export function installCliPackage(_0x36f2fd,_0x579d90,_0x195670=resolveCurrentCliNpmPrefix()){const _0x23e563=a86_0x4e2891,_0x566574=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x36f2fd,_0x53129f=[_0x23e563(0x18e),'-g',_0x566574],_0x3600d2=runNpmInstall(_0x53129f,_0x579d90);if(_0x3600d2['ok']||!isNpmPrefixPermissionError(_0x3600d2['error']))return _0x3600d2;if(!_0x195670||_0x3600d2[_0x23e563(0x1a3)]?.[_0x23e563(0x185)]()[_0x23e563(0x19d)](_0x195670[_0x23e563(0x185)]()))return _0x3600d2;return console[_0x23e563(0x1c8)]('Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20'+_0x195670),runNpmInstall([..._0x53129f,_0x23e563(0x1cb),_0x195670],_0x579d90);}export function resolveCurrentCliNpmPrefix(_0x5ebd66=fileURLToPath(import.meta.url),_0x49b8f9=process[a86_0x4e2891(0x1bd)]){const _0x1cf780=a86_0x4e2891,_0x3e2c3d=_0x49b8f9===_0x1cf780(0x175)?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x9717d5=_0x3e2c3d[_0x1cf780(0x1bc)](_0x3e2c3d['dirname'](_0x3e2c3d['dirname'](_0x5ebd66))),_0x2d15ad=_0x49b8f9==='win32'?'@lovrabet\x5clovrabet-cli':_0x1cf780(0x17d);let _0x5aa7af=_0x3e2c3d[_0x1cf780(0x1bc)](_0x9717d5);while(!![]){if(_0x3e2c3d[_0x1cf780(0x1b1)](_0x5aa7af)===_0x1cf780(0x18f)&&_0x3e2c3d[_0x1cf780(0x1cd)](_0x5aa7af,_0x9717d5)===_0x2d15ad){const _0x5ee68a=_0x3e2c3d[_0x1cf780(0x1bc)](_0x5aa7af);return _0x3e2c3d[_0x1cf780(0x1b1)](_0x5ee68a)==='lib'?_0x3e2c3d[_0x1cf780(0x1bc)](_0x5ee68a):_0x5ee68a;}const _0x5899ec=_0x3e2c3d['dirname'](_0x5aa7af);if(_0x5899ec===_0x5aa7af)return null;_0x5aa7af=_0x5899ec;}}function runNpmInstall(_0xb2edf8,_0x3aab88){const _0x484871=a86_0x4e2891;console[_0x484871(0x1a4)]('*\x20'+[_0x484871(0x199),..._0xb2edf8][_0x484871(0x18d)]('\x20'));const _0x59b0fb=execaSync('npm',_0xb2edf8,{'cwd':process['cwd'](),'stdio':_0x484871(0x1b5),'env':process.env,'extendEnv':![],'shell':![],'reject':![]}),_0x5ef2cb=_0x59b0fb[_0x484871(0x190)]?String(_0x59b0fb[_0x484871(0x190)])['trim']():'',_0x451a0d=_0x59b0fb['stdout']?String(_0x59b0fb[_0x484871(0x1a7)])[_0x484871(0x1ad)]():'';if(!_0x3aab88){if(_0x451a0d)process['stdout'][_0x484871(0x1aa)](_0x451a0d+'\x0a');if(_0x5ef2cb)process[_0x484871(0x190)][_0x484871(0x1aa)](_0x5ef2cb+'\x0a');}if(_0x59b0fb[_0x484871(0x180)]===0x0)return{'ok':!![]};const _0x2df9a6=_0x5ef2cb||_0x451a0d||_0x59b0fb[_0x484871(0x184)]||_0x484871(0x1c5)+(_0x59b0fb[_0x484871(0x180)]??_0x484871(0x1c3));return{'ok':![],'error':_0x2df9a6};}function isNpmPrefixPermissionError(_0x46ac3e){const _0x32b0c4=a86_0x4e2891;return Boolean(_0x46ac3e&&/\b(?:EACCES|EPERM)\b/[_0x32b0c4(0x187)](_0x46ac3e));}function repairCurrentBuiltinSkill(_0x44a931){const _0x496288=a86_0x4e2891;console['log'](_0x496288(0x171));const _0x272c87=installBuiltinSkill({'stdio':_0x44a931?_0x496288(0x1b5):_0x496288(0x174)});if(_0x272c87['ok']){console[_0x496288(0x1a4)]('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x272c87[_0x496288(0x1b4)]+'\x20is\x20current.');return;}throw CliErrors[_0x496288(0x1c7)](_0x496288(0x1a1)+(_0x272c87[_0x496288(0x19b)]||_0x496288(0x1c6))+']:\x20'+(_0x272c87[_0x496288(0x1a3)]||_0x496288(0x1c3)),_0x496288(0x188)+_0x272c87[_0x496288(0x18b)]+_0x496288(0x193)+CLI_BIN_NAME+_0x496288(0x1a9));}function verifyUpdatedBuiltinSkill(_0x38120c){const _0x35f4f1=a86_0x4e2891;console[_0x35f4f1(0x1a4)](_0x35f4f1(0x171));const _0x251536=inspectInstalledBuiltinSkillVersion(_0x38120c);if(_0x251536[_0x35f4f1(0x18c)]===_0x35f4f1(0x1a6)){console[_0x35f4f1(0x1a4)](_0x35f4f1(0x1bb)+_0x38120c+'\x20is\x20current.');return;}const _0x561b27=_0x251536[_0x35f4f1(0x1b4)]?_0x35f4f1(0x17e)+_0x38120c+_0x35f4f1(0x192)+_0x251536[_0x35f4f1(0x1b4)]:'expected\x20'+_0x38120c+',\x20state\x20'+_0x251536[_0x35f4f1(0x18c)],_0x5708a5=_0x251536[_0x35f4f1(0x1bf)]?_0x561b27+':\x20'+_0x251536[_0x35f4f1(0x1bf)]:_0x561b27;throw CliErrors[_0x35f4f1(0x1c7)](_0x35f4f1(0x182)+_0x38120c+_0x35f4f1(0x1c0)+_0x5708a5,_0x35f4f1(0x188)+_0x251536['repairCommand']+_0x35f4f1(0x193)+CLI_BIN_NAME+'\x20doctor');}async function execute(_0x21232f){const _0x2e0941=a86_0x4e2891;await validateUpdateFlags(_0x21232f);const _0x9ec65d=getCliVersion();console['log'](_0x2e0941(0x1a5)+_0x9ec65d),console[_0x2e0941(0x1a4)](_0x2e0941(0x1af));const _0x347360=await resolveTargetVersion(_0x21232f);if(!_0x347360){const _0x288523=_0x21232f['bool']('beta')?_0x2e0941(0x196):_0x2e0941(0x18a),_0x1cc561=_0x2e0941(0x1b8)+_0x288523+'\x20version\x20from\x20npm.';throw CliErrors[_0x2e0941(0x1c7)](_0x1cc561,_0x2e0941(0x1c1)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x288523);}const _0x25a654=[_0x9ec65d,_0x347360['version']]['find'](_0x2041fc=>!a86_0x133933['valid'](_0x2041fc));if(_0x25a654){const _0x3de858=_0x2e0941(0x1b7)+_0x25a654+'.';throw CliErrors[_0x2e0941(0x1c7)](_0x3de858,_0x2e0941(0x177)+LOVRABET_NPM_PACKAGE_NAME+_0x2e0941(0x1c2));}if(!shouldInstallTarget(_0x9ec65d,_0x347360)){const _0x4f3186=_0x347360[_0x2e0941(0x179)]===_0x2e0941(0x1ae)?_0x2e0941(0x1b6)+_0x347360[_0x2e0941(0x1ae)]+').':_0x2e0941(0x186)+_0x347360[_0x2e0941(0x1ae)]+').';return console[_0x2e0941(0x1a4)](_0x4f3186),repairCurrentBuiltinSkill(_0x21232f[_0x2e0941(0x19c)]),{'ok':!![]};}console[_0x2e0941(0x1a4)](_0x2e0941(0x19a)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x9ec65d+_0x2e0941(0x1cc)+_0x347360[_0x2e0941(0x1ae)]);const _0x24a067=installCliPackage(_0x347360[_0x2e0941(0x1ae)],_0x21232f[_0x2e0941(0x19c)]);if(!_0x24a067['ok']){const _0x307856=_0x2e0941(0x17f)+(_0x24a067[_0x2e0941(0x1a3)]||_0x2e0941(0x1c3));throw CliErrors[_0x2e0941(0x1c7)](_0x307856,'Run:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x347360[_0x2e0941(0x1ae)]);}return console[_0x2e0941(0x1a4)](_0x2e0941(0x170)+_0x347360[_0x2e0941(0x1ae)]+'.'),console[_0x2e0941(0x1a4)](_0x2e0941(0x1a2)),verifyUpdatedBuiltinSkill(_0x347360['version']),{'ok':!![]};}export const updateDefinition={'service':'update','command':a86_0x4e2891(0x1a0),'description':a86_0x4e2891(0x1c9)+CLI_BIN_NAME+a86_0x4e2891(0x17a),'risk':a86_0x4e2891(0x1ab),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a86_0x3192b9=a86_0xe160;(function(_0x46b2b1,_0x262954){const _0x188757=a86_0xe160,_0x40bf3a=_0x46b2b1();while(!![]){try{const _0x52e533=-parseInt(_0x188757(0x181))/0x1+-parseInt(_0x188757(0x1b6))/0x2*(parseInt(_0x188757(0x1ba))/0x3)+-parseInt(_0x188757(0x1be))/0x4*(-parseInt(_0x188757(0x1a6))/0x5)+-parseInt(_0x188757(0x1ca))/0x6*(parseInt(_0x188757(0x19b))/0x7)+-parseInt(_0x188757(0x1c0))/0x8*(parseInt(_0x188757(0x1af))/0x9)+-parseInt(_0x188757(0x19e))/0xa+-parseInt(_0x188757(0x183))/0xb*(-parseInt(_0x188757(0x196))/0xc);if(_0x52e533===_0x262954)break;else _0x40bf3a['push'](_0x40bf3a['shift']());}catch(_0x822334){_0x40bf3a['push'](_0x40bf3a['shift']());}}}(a86_0x56a8,0xac540));import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import{execaSync}from'execa';import a86_0x4c447c from'semver';import{CliErrors}from'../errors.js';function a86_0xe160(_0x1a7036,_0x533bf1){_0x1a7036=_0x1a7036-0x181;const _0x56a877=a86_0x56a8();let _0xe1608c=_0x56a877[_0x1a7036];return _0xe1608c;}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';const updateFlags=[{'name':'latest','type':a86_0x3192b9(0x1e2),'description':a86_0x3192b9(0x1a5),'default':![]},{'name':'beta','type':'boolean','description':a86_0x3192b9(0x1ac),'default':![]},{'name':a86_0x3192b9(0x1c6),'type':a86_0x3192b9(0x18f),'description':a86_0x3192b9(0x1b0)}];function getRequestedVersion(_0x491a7b){const _0x1fdd37=a86_0x3192b9,_0x544c49=_0x491a7b[_0x1fdd37(0x1cd)]('version')[_0x1fdd37(0x18e)]();if(_0x544c49)return _0x544c49;return String(_0x491a7b['args']?.[0x0]??'')[_0x1fdd37(0x18e)]();}async function validateUpdateFlags(_0x6241a8){const _0x4f0b98=a86_0x3192b9,_0x43dfe4=getRequestedVersion(_0x6241a8),_0x5d9a99=[_0x6241a8['bool'](_0x4f0b98(0x19c))?_0x4f0b98(0x19c):'',_0x6241a8[_0x4f0b98(0x199)](_0x4f0b98(0x1cf))?'beta':'',_0x43dfe4?_0x4f0b98(0x1c6):''][_0x4f0b98(0x193)](Boolean);if(_0x5d9a99[_0x4f0b98(0x1c8)]>0x1)throw CliErrors[_0x4f0b98(0x190)](_0x4f0b98(0x1dd),'Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.');if(_0x43dfe4&&!a86_0x4c447c[_0x4f0b98(0x1e1)](_0x43dfe4))throw CliErrors[_0x4f0b98(0x190)](_0x4f0b98(0x182)+_0x43dfe4,_0x4f0b98(0x187));}async function fetchNpmDistTags(){const _0x115921=a86_0x3192b9;try{const _0x3245c3=NPM_REGISTRY_BASE_URL+_0x115921(0x18c)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x115921(0x1d8),_0x18c416=await fetch(_0x3245c3,{'signal':AbortSignal[_0x115921(0x1cc)](0x2710)});if(!_0x18c416['ok'])return null;const _0x560564=await _0x18c416[_0x115921(0x1d6)]();if(!_0x560564||typeof _0x560564!=='object')return null;return Object[_0x115921(0x1bf)](Object[_0x115921(0x1d1)](_0x560564)[_0x115921(0x193)](([,_0x255b2b])=>typeof _0x255b2b==='string'&&_0x255b2b[_0x115921(0x18e)]())[_0x115921(0x191)](([_0x35c95c,_0x2a0c31])=>[_0x35c95c,String(_0x2a0c31)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0x1ceecf){const _0x301e36=a86_0x3192b9,_0x589251=getRequestedVersion(_0x1ceecf);if(_0x589251)return{'version':_0x589251,'source':_0x301e36(0x1c6)};const _0x5e7624=_0x1ceecf[_0x301e36(0x199)](_0x301e36(0x1cf))?_0x301e36(0x1cf):'latest',_0x11dfed=await fetchNpmDistTags(),_0x581097=_0x11dfed?.[_0x5e7624];if(!_0x581097)return null;return{'version':_0x581097,'source':_0x5e7624};}function shouldInstallTarget(_0x4ed9b7,_0x2e7c6a){const _0x51f28e=a86_0x3192b9;if(_0x2e7c6a[_0x51f28e(0x19f)]===_0x51f28e(0x1c6)||_0x2e7c6a[_0x51f28e(0x19f)]===_0x51f28e(0x1cf))return!a86_0x4c447c['eq'](_0x4ed9b7,_0x2e7c6a[_0x51f28e(0x1c6)]);return a86_0x4c447c['lt'](_0x4ed9b7,_0x2e7c6a[_0x51f28e(0x1c6)]);}export function installCliPackage(_0x225c2f,_0x4a1cbc,_0x2282ee=resolveCurrentCliNpmPrefix()){const _0x29a803=a86_0x3192b9,_0x4313f7=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x225c2f,_0x2b5b43=[_0x29a803(0x1d9),'-g',_0x4313f7],_0x8ec68b=runNpmInstall(_0x2b5b43,_0x4a1cbc);if(_0x8ec68b['ok']||!isNpmPrefixPermissionError(_0x8ec68b[_0x29a803(0x197)]))return _0x8ec68b;if(!_0x2282ee||_0x8ec68b[_0x29a803(0x197)]?.['toLowerCase']()[_0x29a803(0x1a2)](_0x2282ee[_0x29a803(0x1d2)]()))return _0x8ec68b;return console[_0x29a803(0x184)](_0x29a803(0x18d)+_0x2282ee),runNpmInstall([..._0x2b5b43,'--prefix',_0x2282ee],_0x4a1cbc);}export function resolveCurrentCliNpmPrefix(_0x5ae753=fileURLToPath(import.meta.url),_0x419a6f=process[a86_0x3192b9(0x1a3)]){const _0x39092a=a86_0x3192b9,_0x412fd0=_0x419a6f===_0x39092a(0x19a)?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x28ab92=_0x412fd0[_0x39092a(0x1c7)](_0x412fd0[_0x39092a(0x1c7)](_0x412fd0[_0x39092a(0x1c7)](_0x5ae753))),_0x266005=_0x419a6f==='win32'?'@lovrabet\x5clovrabet-cli':_0x39092a(0x1cb);let _0x3ea40d=_0x412fd0[_0x39092a(0x1c7)](_0x28ab92);while(!![]){if(_0x412fd0[_0x39092a(0x18b)](_0x3ea40d)===_0x39092a(0x1a0)&&_0x412fd0['relative'](_0x3ea40d,_0x28ab92)===_0x266005){const _0x5b877c=_0x412fd0[_0x39092a(0x1c7)](_0x3ea40d);return _0x412fd0[_0x39092a(0x18b)](_0x5b877c)===_0x39092a(0x1ce)?_0x412fd0[_0x39092a(0x1c7)](_0x5b877c):_0x5b877c;}const _0x155b33=_0x412fd0[_0x39092a(0x1c7)](_0x3ea40d);if(_0x155b33===_0x3ea40d)return null;_0x3ea40d=_0x155b33;}}function runNpmInstall(_0x4071c7,_0x12639b){const _0x5d888d=a86_0x3192b9;console[_0x5d888d(0x1a7)]('*\x20'+[_0x5d888d(0x1a4),..._0x4071c7]['join']('\x20'));const _0x537241=execaSync('npm',_0x4071c7,{'cwd':process[_0x5d888d(0x1c1)](),'stdio':_0x5d888d(0x1a8),'env':process.env,'extendEnv':![],'shell':![],'reject':![]}),_0x36bda2=_0x537241['stderr']?String(_0x537241['stderr'])[_0x5d888d(0x18e)]():'',_0x50a95d=_0x537241[_0x5d888d(0x194)]?String(_0x537241[_0x5d888d(0x194)])['trim']():'';if(!_0x12639b){if(_0x50a95d)process[_0x5d888d(0x194)][_0x5d888d(0x1da)](_0x50a95d+'\x0a');if(_0x36bda2)process[_0x5d888d(0x1d3)][_0x5d888d(0x1da)](_0x36bda2+'\x0a');}if(_0x537241[_0x5d888d(0x1c5)]===0x0)return{'ok':!![]};const _0x156c46=_0x36bda2||_0x50a95d||_0x537241[_0x5d888d(0x1df)]||_0x5d888d(0x186)+(_0x537241[_0x5d888d(0x1c5)]??_0x5d888d(0x1de));return{'ok':![],'error':_0x156c46};}function isNpmPrefixPermissionError(_0x350717){return Boolean(_0x350717&&/\b(?:EACCES|EPERM)\b/['test'](_0x350717));}function repairCurrentBuiltinSkill(_0x59ef8e){const _0x3ff570=a86_0x3192b9;console[_0x3ff570(0x1a7)](_0x3ff570(0x1c2));const _0x40d9f7=installBuiltinSkill({'stdio':_0x59ef8e?_0x3ff570(0x1a8):'inherit'});if(_0x40d9f7['ok']){console[_0x3ff570(0x1a7)](_0x3ff570(0x1aa)+_0x40d9f7[_0x3ff570(0x1bb)]+_0x3ff570(0x1e3));return;}throw CliErrors[_0x3ff570(0x1c9)](_0x3ff570(0x188)+(_0x40d9f7[_0x3ff570(0x1b3)]||'INSTALL_FAILED')+_0x3ff570(0x1d4)+(_0x40d9f7[_0x3ff570(0x197)]||_0x3ff570(0x1de)),_0x3ff570(0x18a)+_0x40d9f7[_0x3ff570(0x1bc)]+_0x3ff570(0x1b7)+CLI_BIN_NAME+'\x20doctor');}function a86_0x56a8(){const _0x5d860b=['834041yCBnPn','Invalid\x20version:\x20','7117QPzFte','warn','nonInteractive','exit\x20','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','Update\x20the\x20','Run:\x20','basename','/-/package/','Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20','trim','string','validation','map','\x20version\x20from\x20npm.','filter','stdout','\x20->\x20','81252VuCoPn','error','\x20CLI\x20from\x20npm','bool','win32','42fhpsyJ','latest','expected\x20','11563440RXGppK','source','node_modules','CLI\x20updated\x20to\x20v','includes','platform','npm','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','335mOQlEm','log','pipe','Current\x20version:\x20','\x20\x20CLI\x20Built-in\x20Skill\x20','Updated\x20to\x20v','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','\x20doctor','run','9zFXyws','Install\x20a\x20specific\x20CLI\x20version','reason','Run:\x20npm\x20view\x20','code','Unable\x20to\x20resolve\x20','state','573182biMVeO',',\x20then\x20verify\x20with:\x20','Run:\x20npm\x20install\x20-g\x20',',\x20found\x20','9JPjgDv','skillVersion','repairCommand','read','17520yZPVGZ','fromEntries','6868632BCEJtO','cwd','Checking\x20CLI\x20Built-in\x20Skill...','Checking\x20npm\x20dist-tags...','current','exitCode','version','dirname','length','apiError','259704kGdRIs','@lovrabet/lovrabet-cli','timeout','str','lib','beta','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','entries','toLowerCase','stderr',']:\x20','\x20dist-tags,\x20then\x20retry.','json','Version\x20comparison\x20failed:\x20','/dist-tags','install','write','update','Already\x20up\x20to\x20date\x20(v','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','unknown','shortMessage','Already\x20on\x20requested\x20version\x20(v','valid','boolean','\x20is\x20current.'];a86_0x56a8=function(){return _0x5d860b;};return a86_0x56a8();}function verifyUpdatedBuiltinSkill(_0x4b88e5){const _0x4271c3=a86_0x3192b9;console[_0x4271c3(0x1a7)](_0x4271c3(0x1c2));const _0x3f83bb=inspectInstalledBuiltinSkillVersion(_0x4b88e5);if(_0x3f83bb[_0x4271c3(0x1b5)]===_0x4271c3(0x1c4)){console[_0x4271c3(0x1a7)](_0x4271c3(0x1aa)+_0x4b88e5+_0x4271c3(0x1e3));return;}const _0x319ef8=_0x3f83bb[_0x4271c3(0x1bb)]?_0x4271c3(0x19d)+_0x4b88e5+_0x4271c3(0x1b9)+_0x3f83bb[_0x4271c3(0x1bb)]:'expected\x20'+_0x4b88e5+',\x20state\x20'+_0x3f83bb[_0x4271c3(0x1b5)],_0x48ea6f=_0x3f83bb[_0x4271c3(0x1b1)]?_0x319ef8+':\x20'+_0x3f83bb[_0x4271c3(0x1b1)]:_0x319ef8;throw CliErrors['apiError'](_0x4271c3(0x1a1)+_0x4b88e5+',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20'+_0x48ea6f,_0x4271c3(0x18a)+_0x3f83bb['repairCommand']+',\x20then\x20verify\x20with:\x20'+CLI_BIN_NAME+_0x4271c3(0x1ad));}async function execute(_0x284bde){const _0xa6be71=a86_0x3192b9;await validateUpdateFlags(_0x284bde);const _0x431f00=getCliVersion();console[_0xa6be71(0x1a7)](_0xa6be71(0x1a9)+_0x431f00),console[_0xa6be71(0x1a7)](_0xa6be71(0x1c3));const _0xe82d89=await resolveTargetVersion(_0x284bde);if(!_0xe82d89){const _0x3faae3=_0x284bde[_0xa6be71(0x199)]('beta')?_0xa6be71(0x1cf):'latest',_0x57106e=_0xa6be71(0x1b4)+_0x3faae3+_0xa6be71(0x192);throw CliErrors[_0xa6be71(0x1c9)](_0x57106e,_0xa6be71(0x1b8)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3faae3);}const _0x454cdc=[_0x431f00,_0xe82d89[_0xa6be71(0x1c6)]]['find'](_0xf37067=>!a86_0x4c447c[_0xa6be71(0x1e1)](_0xf37067));if(_0x454cdc){const _0x44ad4b=_0xa6be71(0x1d7)+_0x454cdc+'.';throw CliErrors['apiError'](_0x44ad4b,_0xa6be71(0x1b2)+LOVRABET_NPM_PACKAGE_NAME+_0xa6be71(0x1d5));}if(!shouldInstallTarget(_0x431f00,_0xe82d89)){const _0x4f8a58=_0xe82d89[_0xa6be71(0x19f)]==='version'?_0xa6be71(0x1e0)+_0xe82d89[_0xa6be71(0x1c6)]+').':_0xa6be71(0x1dc)+_0xe82d89[_0xa6be71(0x1c6)]+').';return console['log'](_0x4f8a58),repairCurrentBuiltinSkill(_0x284bde['nonInteractive']),{'ok':!![]};}console[_0xa6be71(0x1a7)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x431f00+_0xa6be71(0x195)+_0xe82d89[_0xa6be71(0x1c6)]);const _0x22eb29=installCliPackage(_0xe82d89[_0xa6be71(0x1c6)],_0x284bde[_0xa6be71(0x185)]);if(!_0x22eb29['ok']){const _0x350bc8='Update\x20failed:\x20'+(_0x22eb29[_0xa6be71(0x197)]||_0xa6be71(0x1de));throw CliErrors[_0xa6be71(0x1c9)](_0x350bc8,_0xa6be71(0x1b8)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0xe82d89[_0xa6be71(0x1c6)]);}return console[_0xa6be71(0x1a7)](_0xa6be71(0x1ab)+_0xe82d89[_0xa6be71(0x1c6)]+'.'),console['log'](_0xa6be71(0x1d0)),verifyUpdatedBuiltinSkill(_0xe82d89['version']),{'ok':!![]};}export const updateDefinition={'service':a86_0x3192b9(0x1db),'command':a86_0x3192b9(0x1ae),'description':a86_0x3192b9(0x189)+CLI_BIN_NAME+a86_0x3192b9(0x198),'risk':a86_0x3192b9(0x1bd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- const a87_0x4e8a55=a87_0x19a4;(function(_0x5eb3cf,_0x74efd0){const _0x46f557=a87_0x19a4,_0x493d37=_0x5eb3cf();while(!![]){try{const _0x26b96e=-parseInt(_0x46f557(0x13a))/0x1*(parseInt(_0x46f557(0x139))/0x2)+parseInt(_0x46f557(0x14f))/0x3+parseInt(_0x46f557(0x13c))/0x4+parseInt(_0x46f557(0x140))/0x5*(parseInt(_0x46f557(0x13b))/0x6)+parseInt(_0x46f557(0x133))/0x7*(-parseInt(_0x46f557(0x14c))/0x8)+-parseInt(_0x46f557(0x14b))/0x9*(parseInt(_0x46f557(0x151))/0xa)+parseInt(_0x46f557(0x136))/0xb*(parseInt(_0x46f557(0x135))/0xc);if(_0x26b96e===_0x74efd0)break;else _0x493d37['push'](_0x493d37['shift']());}catch(_0x3339f3){_0x493d37['push'](_0x493d37['shift']());}}}(a87_0x505d,0xb9faa));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';function a87_0x19a4(_0x491899,_0x1e7e9d){_0x491899=_0x491899-0x133;const _0x505dbb=a87_0x505d();let _0x19a456=_0x505dbb[_0x491899];return _0x19a456;}import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING='The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.',SUPPORTED_PROVIDERS=[a87_0x4e8a55(0x143)];function a87_0x505d(){const _0x587fb2=['POST','5710KmplHh','External\x20account\x20ID\x20for\x20the\x20selected\x20provider','trim','dingtalk','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','str','join','Pass\x20one\x20of:\x20','user-account','bind','Bound\x20current\x20user\x20to\x20external\x20provider\x20account.','1608534VfMbMl','209224dVZUdR','write','Binds\x20the\x20platform\x20user\x20of\x20the\x20current\x20AccessKey\x20to\x20the\x20given\x20collaboration-provider\x20account.\x20An\x20existing\x20bind\x20for\x20the\x20same\x20provider\x20may\x20be\x20replaced.','3798585RErBjT','account-id','80LkZaXa','External\x20account\x20provider','238IhnYBF','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.','58368uNLhJH','3124WZfKnn','validation','includes','921946ZWyyJa','1QnToqy','2682RMiNOx','1534832vSrzFD','string','--account-id\x20cannot\x20be\x20empty.'];a87_0x505d=function(){return _0x587fb2;};return a87_0x505d();}function readBindingInput(_0x2ea6a0){const _0x16b5f7=a87_0x4e8a55,_0xfbe63=_0x2ea6a0[_0x16b5f7(0x145)]('provider')['trim']()['toLowerCase']();if(!SUPPORTED_PROVIDERS[_0x16b5f7(0x138)](_0xfbe63))throw CliErrors[_0x16b5f7(0x137)]('Unsupported\x20provider:\x20'+(_0xfbe63||'(empty)')+'.',_0x16b5f7(0x147)+SUPPORTED_PROVIDERS[_0x16b5f7(0x146)](',\x20')+'.');const _0x1d3fac=_0x2ea6a0['str'](_0x16b5f7(0x150))[_0x16b5f7(0x142)]();if(!_0x1d3fac)throw CliErrors['validation'](_0x16b5f7(0x13e),'Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.');return{'provider':_0xfbe63,'accountId':_0x1d3fac};}function buildBindingData(_0xba9860,_0x23f00b,_0x588853){const _0x122498=a87_0x4e8a55;return{'operation':_0x122498(0x149),'selector':{'provider':_0xba9860,'accountId':_0x23f00b},'before':null,'after':{'provider':_0xba9860,'accountId':_0x23f00b,'bound':!![]},'dryRun':_0x588853,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a87_0x4e8a55(0x148),'command':'bind','description':a87_0x4e8a55(0x144),'risk':a87_0x4e8a55(0x14d),'confirmationDescription':a87_0x4e8a55(0x14e),'requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':'provider','type':'string','required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a87_0x4e8a55(0x152)},{'name':'account-id','type':a87_0x4e8a55(0x13d),'required':!![],'description':a87_0x4e8a55(0x141)}],async 'validate'(_0x1c01cf){readBindingInput(_0x1c01cf);},async 'dryRun'(_0x51bd71){const _0xdeeafb=a87_0x4e8a55,{provider:_0x571950,accountId:_0x2e6487}=readBindingInput(_0x51bd71);return{...buildBindingData(_0x571950,_0x2e6487,!![]),'method':_0xdeeafb(0x13f),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x571950,'accountId':_0x2e6487}};},async 'execute'(_0x5a4955){const _0x580b1d=a87_0x4e8a55,{provider:_0x540633,accountId:_0x5a43e4}=readBindingInput(_0x5a4955),_0x29bb26=await bindExternalUserAccount(_0x540633,_0x5a43e4);if(_0x29bb26!==!![])throw CliErrors['apiError']('External\x20account\x20binding\x20was\x20not\x20confirmed.',_0x580b1d(0x134));return{'ok':!![],'data':buildBindingData(_0x540633,_0x5a43e4,![]),'message':_0x580b1d(0x14a)};}};
1
+ const a87_0x30bd70=a87_0x3757;(function(_0x4ba498,_0x9bb29b){const _0x36f1eb=a87_0x3757,_0x320fae=_0x4ba498();while(!![]){try{const _0x3d4c55=-parseInt(_0x36f1eb(0x11c))/0x1+parseInt(_0x36f1eb(0x11b))/0x2+-parseInt(_0x36f1eb(0x128))/0x3*(-parseInt(_0x36f1eb(0x127))/0x4)+-parseInt(_0x36f1eb(0x11d))/0x5+parseInt(_0x36f1eb(0x116))/0x6+-parseInt(_0x36f1eb(0x118))/0x7*(parseInt(_0x36f1eb(0x122))/0x8)+parseInt(_0x36f1eb(0x126))/0x9*(parseInt(_0x36f1eb(0x11a))/0xa);if(_0x3d4c55===_0x9bb29b)break;else _0x320fae['push'](_0x320fae['shift']());}catch(_0x47e9cf){_0x320fae['push'](_0x320fae['shift']());}}}(a87_0x314f,0x692a0));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING='The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.',SUPPORTED_PROVIDERS=['dingtalk'];function readBindingInput(_0x50e7f3){const _0x1090d4=a87_0x3757,_0x315788=_0x50e7f3['str']('provider')[_0x1090d4(0x117)]()['toLowerCase']();if(!SUPPORTED_PROVIDERS[_0x1090d4(0x114)](_0x315788))throw CliErrors[_0x1090d4(0x125)](_0x1090d4(0x124)+(_0x315788||_0x1090d4(0x113))+'.','Pass\x20one\x20of:\x20'+SUPPORTED_PROVIDERS['join'](',\x20')+'.');const _0x3672cc=_0x50e7f3[_0x1090d4(0x123)]('account-id')['trim']();if(!_0x3672cc)throw CliErrors[_0x1090d4(0x125)](_0x1090d4(0x115),'Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.');return{'provider':_0x315788,'accountId':_0x3672cc};}function buildBindingData(_0x1d5241,_0x7fd884,_0x1bc2d5){return{'operation':'bind','selector':{'provider':_0x1d5241,'accountId':_0x7fd884},'before':null,'after':{'provider':_0x1d5241,'accountId':_0x7fd884,'bound':!![]},'dryRun':_0x1bc2d5,'warnings':[CURRENT_BINDING_WARNING]};}function a87_0x314f(){const _0x54151a=['1798002cDdORF','trim','14agSKLP','string','10ydCxeY','807706DomrbI','398844VpBceK','3881175HeXfcr','POST','account-id','External\x20account\x20provider','External\x20account\x20ID\x20for\x20the\x20selected\x20provider','542744VroLeI','str','Unsupported\x20provider:\x20','validation','6206625IBvNNd','1393488ukiTJN','3qrJoqa','provider','write','External\x20account\x20binding\x20was\x20not\x20confirmed.','apiError','user-account','(empty)','includes','--account-id\x20cannot\x20be\x20empty.'];a87_0x314f=function(){return _0x54151a;};return a87_0x314f();}function a87_0x3757(_0x47a48d,_0x3632a3){_0x47a48d=_0x47a48d-0x10e;const _0x314f86=a87_0x314f();let _0x37579d=_0x314f86[_0x47a48d];return _0x37579d;}export const bindUserAccount={'service':a87_0x30bd70(0x112),'command':'bind','description':'Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','risk':a87_0x30bd70(0x10f),'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_0x30bd70(0x10e),'type':a87_0x30bd70(0x119),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a87_0x30bd70(0x120)},{'name':a87_0x30bd70(0x11f),'type':a87_0x30bd70(0x119),'required':!![],'description':a87_0x30bd70(0x121)}],async 'validate'(_0x3cbca1){readBindingInput(_0x3cbca1);},async 'dryRun'(_0x331a5f){const _0x150f67=a87_0x30bd70,{provider:_0x3b86ad,accountId:_0x215bd6}=readBindingInput(_0x331a5f);return{...buildBindingData(_0x3b86ad,_0x215bd6,!![]),'method':_0x150f67(0x11e),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x3b86ad,'accountId':_0x215bd6}};},async 'execute'(_0x147274){const _0x5e6f7c=a87_0x30bd70,{provider:_0x3161d0,accountId:_0x17996d}=readBindingInput(_0x147274),_0x33038b=await bindExternalUserAccount(_0x3161d0,_0x17996d);if(_0x33038b!==!![])throw CliErrors[_0x5e6f7c(0x111)](_0x5e6f7c(0x110),'Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.');return{'ok':!![],'data':buildBindingData(_0x3161d0,_0x17996d,![]),'message':'Bound\x20current\x20user\x20to\x20external\x20provider\x20account.'};}};
@@ -1 +1 @@
1
- (function(_0x9a2a4e,_0x17a830){const _0x105f6a=a88_0x593a,_0x2564bb=_0x9a2a4e();while(!![]){try{const _0x242a13=-parseInt(_0x105f6a(0x95))/0x1+parseInt(_0x105f6a(0x94))/0x2*(-parseInt(_0x105f6a(0x8d))/0x3)+-parseInt(_0x105f6a(0x93))/0x4*(parseInt(_0x105f6a(0x8f))/0x5)+-parseInt(_0x105f6a(0x90))/0x6*(parseInt(_0x105f6a(0x8b))/0x7)+-parseInt(_0x105f6a(0x91))/0x8+parseInt(_0x105f6a(0x8e))/0x9+-parseInt(_0x105f6a(0x92))/0xa*(-parseInt(_0x105f6a(0x8c))/0xb);if(_0x242a13===_0x17a830)break;else _0x2564bb['push'](_0x2564bb['shift']());}catch(_0x297e1b){_0x2564bb['push'](_0x2564bb['shift']());}}}(a88_0x3b96,0x1b2d6));import{bindUserAccount}from'../../commands/user-account/bind.js';export const userAccountDefinitions=[bindUserAccount];function a88_0x593a(_0x4cf22c,_0x42ea77){_0x4cf22c=_0x4cf22c-0x8b;const _0x3b96df=a88_0x3b96();let _0x593afe=_0x3b96df[_0x4cf22c];return _0x593afe;}function a88_0x3b96(){const _0x1ccc99=['1686648NpXzWG','2276630hHBIBc','64PlWTsb','2lpvhvN','3637vwyRYZ','38094SIwxmk','33WDBWSA','507735hCoptf','334530haSfSU','49945rxVkfw','72hMoWxg'];a88_0x3b96=function(){return _0x1ccc99;};return a88_0x3b96();}
1
+ (function(_0x3b5b63,_0x953e89){const _0x4bddb8=a88_0x1d66,_0xe9c032=_0x3b5b63();while(!![]){try{const _0x3ceea3=-parseInt(_0x4bddb8(0x11f))/0x1*(-parseInt(_0x4bddb8(0x115))/0x2)+-parseInt(_0x4bddb8(0x11a))/0x3*(-parseInt(_0x4bddb8(0x117))/0x4)+parseInt(_0x4bddb8(0x119))/0x5+-parseInt(_0x4bddb8(0x11d))/0x6*(-parseInt(_0x4bddb8(0x11e))/0x7)+parseInt(_0x4bddb8(0x114))/0x8*(parseInt(_0x4bddb8(0x11c))/0x9)+-parseInt(_0x4bddb8(0x118))/0xa+-parseInt(_0x4bddb8(0x11b))/0xb*(parseInt(_0x4bddb8(0x116))/0xc);if(_0x3ceea3===_0x953e89)break;else _0xe9c032['push'](_0xe9c032['shift']());}catch(_0x69ed27){_0xe9c032['push'](_0xe9c032['shift']());}}}(a88_0x13bb,0x19dc5));function a88_0x1d66(_0x5002fd,_0x5ab12b){_0x5002fd=_0x5002fd-0x114;const _0x13bbc9=a88_0x13bb();let _0x1d66e0=_0x13bbc9[_0x5002fd];return _0x1d66e0;}import{bindUserAccount}from'../../commands/user-account/bind.js';export const userAccountDefinitions=[bindUserAccount];function a88_0x13bb(){const _0x17b31c=['534832pKXdeV','3140IntRTO','5248596uZONlq','176812NHUvzs','921610LTDNEJ','114900BhvyXT','9HLiDzW','11FkiAzq','27wNYoko','522384JmdnbL','14nJBYiO','67Andpdp'];a88_0x13bb=function(){return _0x17b31c;};return a88_0x13bb();}
@@ -1 +1 @@
1
- const a89_0x11efd3=a89_0x234c;(function(_0x51b1cd,_0x2c0737){const _0x4e8f9f=a89_0x234c,_0x579b44=_0x51b1cd();while(!![]){try{const _0x5369a6=-parseInt(_0x4e8f9f(0xe8))/0x1*(parseInt(_0x4e8f9f(0xf1))/0x2)+parseInt(_0x4e8f9f(0x102))/0x3*(parseInt(_0x4e8f9f(0xf7))/0x4)+-parseInt(_0x4e8f9f(0x127))/0x5+-parseInt(_0x4e8f9f(0x115))/0x6*(-parseInt(_0x4e8f9f(0xff))/0x7)+parseInt(_0x4e8f9f(0xf5))/0x8+-parseInt(_0x4e8f9f(0x101))/0x9+parseInt(_0x4e8f9f(0x10b))/0xa;if(_0x5369a6===_0x2c0737)break;else _0x579b44['push'](_0x579b44['shift']());}catch(_0x48ee50){_0x579b44['push'](_0x579b44['shift']());}}}(a89_0x3600,0xa6560));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';function a89_0x234c(_0x1154d0,_0x56c659){_0x1154d0=_0x1154d0-0xe8;const _0x36006d=a89_0x3600();let _0x234c41=_0x36006d[_0x1154d0];return _0x234c41;}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_0x11efd3(0x107),'type':a89_0x11efd3(0xf4),'description':a89_0x11efd3(0x105)},{'name':a89_0x11efd3(0xf6),'type':a89_0x11efd3(0xf4),'description':a89_0x11efd3(0xf8)},{'name':'env','type':'string','description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x3456f9,_0x1849ee){const _0x1ede80=a89_0x11efd3,_0x309729=_0x3456f9['str'](_0x1ede80(0x107))[_0x1ede80(0x11d)](),_0xe66856=_0x3456f9['str'](_0x1ede80(0xf6))[_0x1ede80(0x11d)](),_0x2eb3bb=_0x3456f9[_0x1ede80(0x10e)]('env')['trim'](),_0x1f31d4=resolveWorkspaceEnv(_0x2eb3bb||_0x3456f9[_0x1ede80(0x11e)]||DEFAULT_CONFIG_VALUES[_0x1ede80(0x104)]);if(!_0x309729&&!_0xe66856)throw CliErrors[_0x1ede80(0xf2)](_0x1ede80(0xfa),_0x1ede80(0xf3)+CLI_BIN_NAME+'\x20workspace\x20'+_0x1849ee+'\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20'+CLI_BIN_NAME+_0x1ede80(0x114)+_0x1849ee+_0x1ede80(0xeb));if(_0x309729&&_0xe66856)throw CliErrors[_0x1ede80(0xf2)]('Conflicting\x20workspace\x20app\x20selectors.','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.');const _0x3a0d92=resolveWriteConfigPath(_0x1ede80(0x121)),_0x1d7e11=readConfigFile(_0x3a0d92);assertWorkspaceCommandState(_0x1849ee,_0x1d7e11);const _0x205091=_0xe66856||await resolveRemoteAppCode({'command':_0x1849ee,'appName':_0x309729,'env':_0x1f31d4,'accessKey':_0x3456f9[_0x1ede80(0x109)]});return writeWorkspaceConfig({'command':_0x1849ee,'appName':_0x309729,'appcode':_0x205091,'env':_0x1f31d4,'shouldWriteEnv':!!_0x2eb3bb,'accessKey':_0x3456f9['accessKey']},_0x3a0d92,_0x1d7e11),{'ok':!![],'data':{'configPath':_0x3a0d92,'app':_0x309729||null,'appcode':_0x205091,'env':_0x2eb3bb?_0x1f31d4:null,'accessKeyWritten':![],'command':_0x1ede80(0xf9)+_0x1849ee},'message':buildWorkspaceMessage(_0x3a0d92,_0x309729,_0x205091,_0x2eb3bb?_0x1f31d4:undefined)};}async function resolveRemoteAppCode(_0xcfe251){const _0x4da0f5=a89_0x11efd3;if(!_0xcfe251[_0x4da0f5(0x109)])throw CliErrors[_0x4da0f5(0xfd)](_0x4da0f5(0xef)+CLI_BIN_NAME+_0x4da0f5(0x114)+_0xcfe251[_0x4da0f5(0x116)]+'.');const {setActiveAK:_0x379e3c}=await import(_0x4da0f5(0x120)),{getRemoteAppList:_0x3bf7d7}=await import('../../commands/app/remote-source.js');_0x379e3c(_0xcfe251[_0x4da0f5(0x109)]);const _0x34040f=await _0x3bf7d7({'env':_0xcfe251[_0x4da0f5(0x104)],'accessKey':_0xcfe251[_0x4da0f5(0x109)],'noCache':![]}),_0xb1f8b6=findAppByName(_0x34040f['items'],_0xcfe251['appName']);if(_0xb1f8b6&&!isRuntimeAccessibleApp(_0xb1f8b6))throw runtimeInaccessibleAppError(_0xb1f8b6,'\x22'+_0xcfe251[_0x4da0f5(0xe9)]+'\x22');const _0x4e12e0=_0xb1f8b6?.['appCode']?.['trim']();if(_0x4e12e0)return _0x4e12e0;const _0x3b603e=_0x34040f[_0x4da0f5(0x11b)][_0x4da0f5(0xfe)](_0x150f09=>_0x150f09[_0x4da0f5(0xe9)])[_0x4da0f5(0x103)](Boolean),_0x44138b=_0x3b603e[_0x4da0f5(0x10f)]?'Available\x20apps:\x20'+Array[_0x4da0f5(0xea)](new Set(_0x3b603e))['join'](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.';throw CliErrors[_0x4da0f5(0xf2)](_0x4da0f5(0x100)+_0xcfe251['appName']+_0x4da0f5(0xfc),_0x44138b);}function writeWorkspaceConfig(_0xfbd7b3,_0xca9977,_0x5e7d58){const _0x17a864=a89_0x11efd3;_0xfbd7b3[_0x17a864(0xec)]&&(_0x5e7d58[_0x17a864(0x104)]=_0xfbd7b3[_0x17a864(0x104)]);if(_0xfbd7b3['appName']){const _0x526796=isRecord(_0x5e7d58['apps'])?{..._0x5e7d58[_0x17a864(0x110)]}:{},_0xd8333e=isRecord(_0x526796[_0xfbd7b3[_0x17a864(0xe9)]])?_0x526796[_0xfbd7b3[_0x17a864(0xe9)]]:{};return _0x526796[_0xfbd7b3[_0x17a864(0xe9)]]={..._0xd8333e,'appcode':_0xfbd7b3[_0x17a864(0xf6)]},_0x5e7d58[_0x17a864(0x110)]=_0x526796,_0x5e7d58['defaultApp']=_0xfbd7b3[_0x17a864(0xe9)],delete _0x5e7d58[_0x17a864(0xf6)],delete _0x5e7d58[_0x17a864(0x107)],writeAndReturn(_0xca9977,_0x5e7d58);}return _0x5e7d58[_0x17a864(0xf6)]=_0xfbd7b3[_0x17a864(0xf6)],delete _0x5e7d58['defaultApp'],delete _0x5e7d58[_0x17a864(0x107)],writeAndReturn(_0xca9977,_0x5e7d58);}function writeAndReturn(_0x4f1ce3,_0xfc3ced){return writeConfigFile(_0x4f1ce3,_0xfc3ced),_0x4f1ce3;}function resolveWorkspaceEnv(_0x12fd39){const _0x412ad0=a89_0x11efd3;if(RUNTIME_ENV_VALUES[_0x412ad0(0x10c)](_0x12fd39))return _0x12fd39;throw CliErrors[_0x412ad0(0xf2)](_0x412ad0(0x119)+_0x12fd39+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x412ad0(0x11c)](',\x20'));}function buildWorkspaceMessage(_0x54d9df,_0x1f02b5,_0x4a6437,_0x2f0b0c){const _0x1a1f14=a89_0x11efd3,_0x1a0fff=_0x1f02b5?_0x1f02b5+'\x20('+_0x4a6437+')':_0x4a6437,_0x2c435c=_0x2f0b0c?'\x0aEnv:\x20'+_0x2f0b0c:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x54d9df+_0x1a1f14(0x112)+_0x1a0fff+_0x2c435c+_0x1a1f14(0x11a);}function isRecord(_0x98c5cb){const _0x47037b=a89_0x11efd3;return typeof _0x98c5cb===_0x47037b(0x10a)&&_0x98c5cb!==null&&!Array[_0x47037b(0x113)](_0x98c5cb);}function hasWorkspaceAppBinding(_0x2e11a0){const _0x23e244=a89_0x11efd3;if(typeof _0x2e11a0['appcode']===_0x23e244(0xf4)&&_0x2e11a0[_0x23e244(0xf6)][_0x23e244(0x11d)]()[_0x23e244(0x10f)]>0x0)return!![];if(typeof _0x2e11a0[_0x23e244(0x10d)]!==_0x23e244(0xf4)||!_0x2e11a0[_0x23e244(0x10d)][_0x23e244(0x11d)]())return![];if(!isRecord(_0x2e11a0[_0x23e244(0x110)]))return![];const _0x3ebee1=_0x2e11a0['apps'][_0x2e11a0['defaultApp'][_0x23e244(0x11d)]()];return isRecord(_0x3ebee1)&&typeof _0x3ebee1[_0x23e244(0xf6)]===_0x23e244(0xf4)&&_0x3ebee1[_0x23e244(0xf6)][_0x23e244(0x11d)]()[_0x23e244(0x10f)]>0x0;}function assertWorkspaceCommandState(_0x55df20,_0xcd24b2){const _0x2bdc73=a89_0x11efd3,_0x497536=hasWorkspaceAppBinding(_0xcd24b2);if(_0x55df20===_0x2bdc73(0x124)&&_0x497536)throw CliErrors[_0x2bdc73(0xf2)](_0x2bdc73(0x108),_0x2bdc73(0xfb)+CLI_BIN_NAME+_0x2bdc73(0x111)+CLI_BIN_NAME+_0x2bdc73(0x126));if(_0x55df20===_0x2bdc73(0x125)&&!_0x497536)throw CliErrors['validation'](_0x2bdc73(0xed),'Run\x20`'+CLI_BIN_NAME+_0x2bdc73(0xf0)+CLI_BIN_NAME+_0x2bdc73(0x123));}function makeWorkspaceCommand(_0xce867){const _0x2b3117=a89_0x11efd3;return{'service':_0x2b3117(0x118),'command':_0xce867,'description':_0xce867==='init'?_0x2b3117(0xee):_0x2b3117(0x122),'risk':_0x2b3117(0x106),'confirmationDescription':_0xce867==='init'?_0x2b3117(0x117):_0x2b3117(0x11f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x485e73){return executeWorkspaceUse(_0x485e73,_0xce867);}};}function a89_0x3600(){const _0x56e6cb=['Updates\x20the\x20app\x20binding\x20already\x20present\x20in\x20the\x20current\x20working\x20directory\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','../../core/api-client.js','project','Change\x20the\x20app\x20context\x20already\x20bound\x20to\x20the\x20current\x20working\x20directory','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','init','use','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','1644925LYvreX','377nBOyBB','appName','from','\x20--appcode\x20<code>\x20[--env\x20daily]','shouldWriteEnv','Workspace\x20app\x20context\x20is\x20not\x20initialized.','Initialize\x20app\x20context\x20for\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','5370kgAjmQ','validation','Usage:\x20','string','9872840acCLTa','appcode','132344fDDvLA','App\x20code\x20to\x20bind\x20directly','workspace\x20','Missing\x20workspace\x20app\x20selector.','Use\x20`','\x22\x20not\x20found.','authRequired','map','1188026sqsrLn','App\x20\x22','9589977GRkmqh','69QhLzwk','filter','env','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','write','app','Workspace\x20app\x20context\x20is\x20already\x20initialized.','accessKey','object','5838580ymqvdh','includes','defaultApp','str','length','apps','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','\x0aDefault\x20app:\x20','isArray','\x20workspace\x20','18DbRPps','command','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.','workspace','Invalid\x20env\x20\x22','\x0aAccessKey:\x20not\x20written','items','join','trim','envName'];a89_0x3600=function(){return _0x56e6cb;};return a89_0x3600();}export const workspaceDefinitions=[makeWorkspaceCommand(a89_0x11efd3(0x124)),makeWorkspaceCommand(a89_0x11efd3(0x125))];
1
+ const a89_0x24d17f=a89_0x4bc9;function a89_0x4bc9(_0x3c1f36,_0x396eab){_0x3c1f36=_0x3c1f36-0x1ed;const _0x210221=a89_0x2102();let _0x4bc969=_0x210221[_0x3c1f36];return _0x4bc969;}(function(_0xcd4a30,_0x3bf138){const _0x385951=a89_0x4bc9,_0x2223d6=_0xcd4a30();while(!![]){try{const _0x50553d=parseInt(_0x385951(0x205))/0x1+-parseInt(_0x385951(0x1fa))/0x2*(-parseInt(_0x385951(0x201))/0x3)+-parseInt(_0x385951(0x21d))/0x4*(-parseInt(_0x385951(0x1f0))/0x5)+-parseInt(_0x385951(0x1ff))/0x6+-parseInt(_0x385951(0x1f6))/0x7*(parseInt(_0x385951(0x220))/0x8)+-parseInt(_0x385951(0x216))/0x9+-parseInt(_0x385951(0x226))/0xa*(-parseInt(_0x385951(0x211))/0xb);if(_0x50553d===_0x3bf138)break;else _0x2223d6['push'](_0x2223d6['shift']());}catch(_0x29020b){_0x2223d6['push'](_0x2223d6['shift']());}}}(a89_0x2102,0x464b1));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':'app','type':a89_0x24d17f(0x1f7),'description':a89_0x24d17f(0x208)},{'name':a89_0x24d17f(0x212),'type':'string','description':a89_0x24d17f(0x20b)},{'name':a89_0x24d17f(0x1f1),'type':'string','description':a89_0x24d17f(0x1ee),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x29b37c,_0x24a490){const _0x32c63f=a89_0x24d17f,_0x4b600b=_0x29b37c['str'](_0x32c63f(0x228))[_0x32c63f(0x210)](),_0x3dbb4a=_0x29b37c[_0x32c63f(0x1fd)](_0x32c63f(0x212))[_0x32c63f(0x210)](),_0x13a9b4=_0x29b37c[_0x32c63f(0x1fd)](_0x32c63f(0x1f1))[_0x32c63f(0x210)](),_0xffb88d=resolveWorkspaceEnv(_0x13a9b4||_0x29b37c[_0x32c63f(0x215)]||DEFAULT_CONFIG_VALUES['env']);if(!_0x4b600b&&!_0x3dbb4a)throw CliErrors[_0x32c63f(0x21a)](_0x32c63f(0x21b),_0x32c63f(0x1fc)+CLI_BIN_NAME+_0x32c63f(0x21e)+_0x24a490+_0x32c63f(0x218)+CLI_BIN_NAME+_0x32c63f(0x21e)+_0x24a490+_0x32c63f(0x1ef));if(_0x4b600b&&_0x3dbb4a)throw CliErrors['validation'](_0x32c63f(0x1f4),_0x32c63f(0x200));const _0x24f1a6=resolveWriteConfigPath('project'),_0x1e6985=readConfigFile(_0x24f1a6);assertWorkspaceCommandState(_0x24a490,_0x1e6985);const _0x8608a8=_0x3dbb4a||await resolveRemoteAppCode({'command':_0x24a490,'appName':_0x4b600b,'env':_0xffb88d,'accessKey':_0x29b37c[_0x32c63f(0x223)]});return writeWorkspaceConfig({'command':_0x24a490,'appName':_0x4b600b,'appcode':_0x8608a8,'env':_0xffb88d,'shouldWriteEnv':!!_0x13a9b4,'accessKey':_0x29b37c['accessKey']},_0x24f1a6,_0x1e6985),{'ok':!![],'data':{'configPath':_0x24f1a6,'app':_0x4b600b||null,'appcode':_0x8608a8,'env':_0x13a9b4?_0xffb88d:null,'accessKeyWritten':![],'command':_0x32c63f(0x1ed)+_0x24a490},'message':buildWorkspaceMessage(_0x24f1a6,_0x4b600b,_0x8608a8,_0x13a9b4?_0xffb88d:undefined)};}async function resolveRemoteAppCode(_0x20b32b){const _0x295953=a89_0x24d17f;if(!_0x20b32b[_0x295953(0x223)])throw CliErrors[_0x295953(0x221)](_0x295953(0x209)+CLI_BIN_NAME+'\x20workspace\x20'+_0x20b32b['command']+'.');const {setActiveAK:_0x1a1868}=await import(_0x295953(0x21c)),{getRemoteAppList:_0x11cd05}=await import(_0x295953(0x202));_0x1a1868(_0x20b32b['accessKey']);const _0x36ee10=await _0x11cd05({'env':_0x20b32b[_0x295953(0x1f1)],'accessKey':_0x20b32b[_0x295953(0x223)],'noCache':![]}),_0xee6bb3=findAppByName(_0x36ee10[_0x295953(0x213)],_0x20b32b['appName']);if(_0xee6bb3&&!isRuntimeAccessibleApp(_0xee6bb3))throw runtimeInaccessibleAppError(_0xee6bb3,'\x22'+_0x20b32b[_0x295953(0x1f2)]+'\x22');const _0x254fc4=_0xee6bb3?.[_0x295953(0x20d)]?.[_0x295953(0x210)]();if(_0x254fc4)return _0x254fc4;const _0x5d3329=_0x36ee10[_0x295953(0x213)]['map'](_0x1d100a=>_0x1d100a[_0x295953(0x1f2)])['filter'](Boolean),_0x1f1a3d=_0x5d3329[_0x295953(0x206)]?_0x295953(0x219)+Array[_0x295953(0x20a)](new Set(_0x5d3329))[_0x295953(0x1f5)](',\x20')+'.':_0x295953(0x22a)+CLI_BIN_NAME+_0x295953(0x227);throw CliErrors[_0x295953(0x21a)](_0x295953(0x20f)+_0x20b32b[_0x295953(0x1f2)]+_0x295953(0x217),_0x1f1a3d);}function writeWorkspaceConfig(_0x14dd45,_0xcef381,_0x1b2a43){const _0x11ad42=a89_0x24d17f;_0x14dd45[_0x11ad42(0x203)]&&(_0x1b2a43[_0x11ad42(0x1f1)]=_0x14dd45[_0x11ad42(0x1f1)]);if(_0x14dd45[_0x11ad42(0x1f2)]){const _0x481f11=isRecord(_0x1b2a43['apps'])?{..._0x1b2a43['apps']}:{},_0x75d4a1=isRecord(_0x481f11[_0x14dd45[_0x11ad42(0x1f2)]])?_0x481f11[_0x14dd45['appName']]:{};return _0x481f11[_0x14dd45[_0x11ad42(0x1f2)]]={..._0x75d4a1,'appcode':_0x14dd45['appcode']},_0x1b2a43[_0x11ad42(0x224)]=_0x481f11,_0x1b2a43[_0x11ad42(0x20e)]=_0x14dd45['appName'],delete _0x1b2a43[_0x11ad42(0x212)],delete _0x1b2a43['app'],writeAndReturn(_0xcef381,_0x1b2a43);}return _0x1b2a43['appcode']=_0x14dd45[_0x11ad42(0x212)],delete _0x1b2a43[_0x11ad42(0x20e)],delete _0x1b2a43[_0x11ad42(0x228)],writeAndReturn(_0xcef381,_0x1b2a43);}function writeAndReturn(_0x5455f9,_0x4f53b7){return writeConfigFile(_0x5455f9,_0x4f53b7),_0x5455f9;}function resolveWorkspaceEnv(_0x5df4e2){const _0x4271de=a89_0x24d17f;if(RUNTIME_ENV_VALUES[_0x4271de(0x1f9)](_0x5df4e2))return _0x5df4e2;throw CliErrors[_0x4271de(0x21a)](_0x4271de(0x1f8)+_0x5df4e2+_0x4271de(0x204)+RUNTIME_ENV_VALUES[_0x4271de(0x1f5)](',\x20'));}function buildWorkspaceMessage(_0x27f6fb,_0x53756e,_0x4829f0,_0x5a567d){const _0x515013=a89_0x24d17f,_0x33d2b5=_0x53756e?_0x53756e+'\x20('+_0x4829f0+')':_0x4829f0,_0x33fb24=_0x5a567d?_0x515013(0x1fb)+_0x5a567d:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x27f6fb+_0x515013(0x1f3)+_0x33d2b5+_0x33fb24+'\x0aAccessKey:\x20not\x20written';}function a89_0x2102(){const _0x1163bd=['1298FEkBrR','appcode','items','Use\x20`','envName','2154915kvdvvC','\x22\x20not\x20found.','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','Available\x20apps:\x20','validation','Missing\x20workspace\x20app\x20selector.','../../core/api-client.js','7516jxEdvb','\x20workspace\x20','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.','344888ITpqLS','authRequired','init','accessKey','apps','object','54110lQSWEv','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','app','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','Run\x20`','Workspace\x20app\x20context\x20is\x20already\x20initialized.','Change\x20the\x20app\x20context\x20already\x20bound\x20to\x20the\x20current\x20working\x20directory','workspace\x20','Target\x20environment','\x20--appcode\x20<code>\x20[--env\x20daily]','530IoVDMZ','env','appName','\x0aDefault\x20app:\x20','Conflicting\x20workspace\x20app\x20selectors.','join','91wNFUvV','string','Invalid\x20env\x20\x22','includes','45906PhyrEJ','\x0aEnv:\x20','Usage:\x20','str','isArray','3224856dQlWMz','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','57EaZtUm','../../commands/app/remote-source.js','shouldWriteEnv','\x22.\x20Allowed:\x20','351496LiVeNM','length','use','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','from','App\x20code\x20to\x20bind\x20directly','Updates\x20the\x20app\x20binding\x20already\x20present\x20in\x20the\x20current\x20working\x20directory\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','appCode','defaultApp','App\x20\x22','trim'];a89_0x2102=function(){return _0x1163bd;};return a89_0x2102();}function isRecord(_0x3adf39){const _0x47acfe=a89_0x24d17f;return typeof _0x3adf39===_0x47acfe(0x225)&&_0x3adf39!==null&&!Array[_0x47acfe(0x1fe)](_0x3adf39);}function hasWorkspaceAppBinding(_0x3f4699){const _0x36ffaf=a89_0x24d17f;if(typeof _0x3f4699[_0x36ffaf(0x212)]===_0x36ffaf(0x1f7)&&_0x3f4699[_0x36ffaf(0x212)][_0x36ffaf(0x210)]()[_0x36ffaf(0x206)]>0x0)return!![];if(typeof _0x3f4699[_0x36ffaf(0x20e)]!==_0x36ffaf(0x1f7)||!_0x3f4699[_0x36ffaf(0x20e)][_0x36ffaf(0x210)]())return![];if(!isRecord(_0x3f4699[_0x36ffaf(0x224)]))return![];const _0x467123=_0x3f4699[_0x36ffaf(0x224)][_0x3f4699['defaultApp'][_0x36ffaf(0x210)]()];return isRecord(_0x467123)&&typeof _0x467123[_0x36ffaf(0x212)]===_0x36ffaf(0x1f7)&&_0x467123[_0x36ffaf(0x212)][_0x36ffaf(0x210)]()[_0x36ffaf(0x206)]>0x0;}function assertWorkspaceCommandState(_0x46643c,_0x45fd57){const _0x5b3ecd=a89_0x24d17f,_0x1bd721=hasWorkspaceAppBinding(_0x45fd57);if(_0x46643c===_0x5b3ecd(0x222)&&_0x1bd721)throw CliErrors[_0x5b3ecd(0x21a)](_0x5b3ecd(0x22b),_0x5b3ecd(0x214)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.');if(_0x46643c===_0x5b3ecd(0x207)&&!_0x1bd721)throw CliErrors['validation']('Workspace\x20app\x20context\x20is\x20not\x20initialized.',_0x5b3ecd(0x22a)+CLI_BIN_NAME+'\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`'+CLI_BIN_NAME+_0x5b3ecd(0x229));}function makeWorkspaceCommand(_0x53a318){const _0x29f30c=a89_0x24d17f;return{'service':'workspace','command':_0x53a318,'description':_0x53a318==='init'?'Initialize\x20app\x20context\x20for\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet':_0x29f30c(0x22c),'risk':'write','confirmationDescription':_0x53a318==='init'?_0x29f30c(0x21f):_0x29f30c(0x20c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x2b222c){return executeWorkspaceUse(_0x2b222c,_0x53a318);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a89_0x24d17f(0x222)),makeWorkspaceCommand(a89_0x24d17f(0x207))];
@@ -1 +1 @@
1
- const a90_0x54a039=a90_0x10ca;(function(_0x224c8d,_0x3dc813){const _0x23662b=a90_0x10ca,_0x452c39=_0x224c8d();while(!![]){try{const _0xa15175=parseInt(_0x23662b(0x201))/0x1*(-parseInt(_0x23662b(0x1e8))/0x2)+-parseInt(_0x23662b(0x20b))/0x3*(-parseInt(_0x23662b(0x1e4))/0x4)+parseInt(_0x23662b(0x1dc))/0x5*(-parseInt(_0x23662b(0x1e5))/0x6)+parseInt(_0x23662b(0x1f0))/0x7*(parseInt(_0x23662b(0x20e))/0x8)+-parseInt(_0x23662b(0x20f))/0x9+-parseInt(_0x23662b(0x1eb))/0xa*(-parseInt(_0x23662b(0x212))/0xb)+-parseInt(_0x23662b(0x1fb))/0xc*(-parseInt(_0x23662b(0x207))/0xd);if(_0xa15175===_0x3dc813)break;else _0x452c39['push'](_0x452c39['shift']());}catch(_0x1c77ba){_0x452c39['push'](_0x452c39['shift']());}}}(a90_0x48aa,0x2bfd4));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_0x54a039(0x1df),a90_0x54a039(0x1fd),'runtimeDomain',a90_0x54a039(0x1db),a90_0x54a039(0x208)];const DOMAIN_FLAGS={'userDomain':a90_0x54a039(0x20a),'apiDomain':a90_0x54a039(0x20c),'runtimeDomain':a90_0x54a039(0x203),'skillDomain':a90_0x54a039(0x1ef),'kbServiceDomain':a90_0x54a039(0x1f7)};function a90_0x48aa(){const _0x48387e=['str','userDomain','pathname','\x22\x20and\x20kind\x20\x22','trim','domains','13292GfRJEA','18ezSoTr',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','\x22\x20is\x20not\x20a\x20valid\x20URL.','7818LtKmZj',':\x20\x22','Unsupported\x20domain\x20config\x20field(s):\x20','10tHbKhD','username','kbDomain','password','skill-domain','7MgyZDE','object','platformDomain','origin','search','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22','kb-service-domain','Invalid\x20','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','length','12hbYicI','keys','apiDomain','default','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','legacy','83UgfhGY',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','runtime-domain','includes','https:','join','6942611omAKUo','kbServiceDomain','\x20and\x20has\x20no\x20default.','user-domain','192xVoftm','api-domain','domain-config','808624DQCMrt','1108422HwCSmj','hash','enterprise-v1','1063249tsbEyG','runtimeDomain','parse','kind','filter','protocol','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','cwd','isArray','validation','skillDomain','527785ReTmRh','Allowed\x20fields:\x20'];a90_0x48aa=function(){return _0x48387e;};return a90_0x48aa();}export const LEGACY_DOMAIN_CONFIG_FIELDS=['host','agentDomain',a90_0x54a039(0x1f2),'skillHubDomain',a90_0x54a039(0x1ed)];function a90_0x10ca(_0x112832,_0x341d94){_0x112832=_0x112832-0x1da;const _0x48aad6=a90_0x48aa();let _0x10cac2=_0x48aad6[_0x112832];return _0x10cac2;}const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':'userDomain','apiDomain':a90_0x54a039(0x1fd),'runtimeDomain':a90_0x54a039(0x213),'skillDomain':a90_0x54a039(0x1db),'kbServiceDomain':a90_0x54a039(0x208)},ROUTING_CONSUMER='lovrabet-cli';export function normalizeDomainOrigin(_0x3b8c1b,_0x2e4e98){const _0x459563=a90_0x54a039;if(typeof _0x2e4e98!=='string'||!_0x2e4e98[_0x459563(0x1e2)]())throw CliErrors[_0x459563(0x1da)](_0x459563(0x1f8)+_0x3b8c1b+_0x459563(0x202));let _0x348d76;try{_0x348d76=new URL(_0x2e4e98[_0x459563(0x1e2)]());}catch{throw CliErrors[_0x459563(0x1da)]('Invalid\x20'+_0x3b8c1b+_0x459563(0x1e9)+_0x2e4e98+_0x459563(0x1e7));}if(_0x348d76['protocol']!==_0x459563(0x205)||_0x348d76[_0x459563(0x1ec)]||_0x348d76[_0x459563(0x1ee)]||_0x348d76['pathname']!=='/'&&_0x348d76[_0x459563(0x1e0)]!==''||_0x348d76[_0x459563(0x1f4)]||_0x348d76[_0x459563(0x210)])throw CliErrors[_0x459563(0x1da)](_0x459563(0x1f8)+_0x3b8c1b+':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.',_0x459563(0x1f5));return _0x348d76[_0x459563(0x1f3)];}export function normalizeRoutingDomainValue(_0x5178e5,_0x23e565){const _0xb91ab=a90_0x54a039;if(typeof _0x23e565==='string')return normalizeDomainOrigin(_0x5178e5,_0x23e565);if(!_0x23e565||typeof _0x23e565!==_0xb91ab(0x1f1)||Array[_0xb91ab(0x21a)](_0x23e565))throw CliErrors[_0xb91ab(0x1da)]('Invalid\x20'+_0x5178e5+_0xb91ab(0x1e6));const _0x36722b=_0x23e565,_0x5ea32c=_0x36722b[ROUTING_CONSUMER]??_0x36722b[_0xb91ab(0x1fe)];if(_0x5ea32c===undefined)throw CliErrors[_0xb91ab(0x1da)]('Enterprise\x20'+_0x5178e5+'\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20'+ROUTING_CONSUMER+_0xb91ab(0x209));return normalizeDomainOrigin(_0x5178e5,_0x5ea32c);}export function resolveEnterpriseRoutingConfig(_0xac2503){const _0x2bc0ba=a90_0x54a039;if(_0xac2503===undefined)return undefined;if(!_0xac2503||typeof _0xac2503!==_0x2bc0ba(0x1f1)||Array[_0x2bc0ba(0x21a)](_0xac2503))throw CliErrors[_0x2bc0ba(0x1da)]('Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.');return parseEnterpriseRoutingManifest(_0xac2503)[_0x2bc0ba(0x1e3)];}export function readDomainConfigInput(_0x4a3a5b){const _0x4202cc=a90_0x54a039,_0x3fa54c=isAbsolute(_0x4a3a5b)?_0x4a3a5b:resolve(process[_0x4202cc(0x219)](),_0x4a3a5b);if(!existsSync(_0x3fa54c))throw CliErrors[_0x4202cc(0x1da)]('Domain\x20config\x20file\x20not\x20found:\x20'+_0x3fa54c);let _0x43f8eb;try{_0x43f8eb=JSON[_0x4202cc(0x214)](readFileSync(_0x3fa54c,'utf8'));}catch{throw CliErrors[_0x4202cc(0x1da)]('Invalid\x20domain\x20config\x20JSON:\x20'+_0x3fa54c);}if(!_0x43f8eb||typeof _0x43f8eb!==_0x4202cc(0x1f1)||Array[_0x4202cc(0x21a)](_0x43f8eb))throw CliErrors['validation'](_0x4202cc(0x218));const _0x585b89=_0x43f8eb;if(_0x4202cc(0x217)in _0x585b89)return parseEnterpriseRoutingManifest(_0x585b89);const _0x4df331=Object[_0x4202cc(0x1fc)](_0x585b89)['filter'](_0x24eec7=>!DOMAIN_CONFIG_FIELDS[_0x4202cc(0x204)](_0x24eec7));if(_0x4df331['length']>0x0)throw CliErrors[_0x4202cc(0x1da)](_0x4202cc(0x1ea)+_0x4df331[_0x4202cc(0x206)](',\x20'),_0x4202cc(0x1dd)+DOMAIN_CONFIG_FIELDS[_0x4202cc(0x206)](',\x20'));const _0x17c3b1={};for(const _0x187cd8 of DOMAIN_CONFIG_FIELDS){_0x585b89[_0x187cd8]!==undefined&&(_0x17c3b1[_0x187cd8]=normalizeDomainOrigin(_0x187cd8,_0x585b89[_0x187cd8]));}if(Object[_0x4202cc(0x1fc)](_0x17c3b1)[_0x4202cc(0x1fa)]===0x0)throw CliErrors[_0x4202cc(0x1da)]('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return{'mode':'legacy','domains':_0x17c3b1};}export function readDomainConfig(_0x3dc4f1){const _0x1e2669=a90_0x54a039;return readDomainConfigInput(_0x3dc4f1)[_0x1e2669(0x1e3)];}export function resolveDomainConfigInput(_0x190df8){const _0x13c172=a90_0x54a039,_0x5b5f50=(_0x190df8['str'](_0x13c172(0x20d))||'')[_0x13c172(0x1e2)](),_0x51cdc8=_0x5b5f50?readDomainConfigInput(_0x5b5f50):{'mode':_0x13c172(0x200),'domains':{}},_0x224cd7=DOMAIN_CONFIG_FIELDS[_0x13c172(0x216)](_0x2ba8a0=>Boolean((_0x190df8[_0x13c172(0x1de)](DOMAIN_FLAGS[_0x2ba8a0])||'')[_0x13c172(0x1e2)]()));if(_0x51cdc8['mode']===_0x13c172(0x211)&&_0x224cd7['length']>0x0)throw CliErrors[_0x13c172(0x1da)]('Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.');for(const _0x19bb10 of DOMAIN_CONFIG_FIELDS){const _0x4b396c=(_0x190df8[_0x13c172(0x1de)](DOMAIN_FLAGS[_0x19bb10])||'')[_0x13c172(0x1e2)]();if(_0x4b396c)_0x51cdc8['domains'][_0x19bb10]=normalizeDomainOrigin(_0x19bb10,_0x4b396c);}return _0x51cdc8;}export function resolveDomainFlags(_0x1a078a){return resolveDomainConfigInput(_0x1a078a)['domains'];}export function parseEnterpriseRoutingManifest(_0x59d810){const _0x1ec3bf=a90_0x54a039;if(_0x59d810[_0x1ec3bf(0x217)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x59d810[_0x1ec3bf(0x215)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x1ec3bf(0x1da)](_0x1ec3bf(0x1f6)+ENTERPRISE_ROUTING_PROTOCOL+_0x1ec3bf(0x1e1)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x59d810[_0x1ec3bf(0x1e3)]||typeof _0x59d810[_0x1ec3bf(0x1e3)]!==_0x1ec3bf(0x1f1)||Array[_0x1ec3bf(0x21a)](_0x59d810[_0x1ec3bf(0x1e3)]))throw CliErrors[_0x1ec3bf(0x1da)](_0x1ec3bf(0x1f9));const _0x4fd139=_0x59d810['domains'],_0x558cf2=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x1ec3bf(0x216)](_0x338a16=>_0x4fd139[_0x338a16]===undefined);if(_0x558cf2[_0x1ec3bf(0x1fa)]>0x0)throw CliErrors['validation'](_0x1ec3bf(0x1ff)+_0x558cf2['join'](',\x20'));const _0x5c785a={},_0x22e065={};for(const _0x1f6336 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x4626c2=_0x4fd139[_0x1f6336];if(_0x4626c2===undefined)continue;const _0x3ae065=normalizeRoutingDomainValue(_0x1f6336,_0x4626c2);_0x5c785a[_0x1f6336]=_0x3ae065;const _0x78bc06=ENTERPRISE_TO_LOCAL_FIELD[_0x1f6336];_0x78bc06&&(_0x22e065[_0x78bc06]=_0x3ae065);}return{'mode':_0x1ec3bf(0x211),'domains':_0x22e065,'manifestDomains':_0x5c785a};}
1
+ const a90_0x26f4c5=a90_0x1825;(function(_0xacc089,_0x4511ba){const _0x295a9b=a90_0x1825,_0x15db4e=_0xacc089();while(!![]){try{const _0xcd5e76=parseInt(_0x295a9b(0x19c))/0x1*(-parseInt(_0x295a9b(0x17b))/0x2)+-parseInt(_0x295a9b(0x185))/0x3*(-parseInt(_0x295a9b(0x166))/0x4)+-parseInt(_0x295a9b(0x171))/0x5*(parseInt(_0x295a9b(0x188))/0x6)+parseInt(_0x295a9b(0x17f))/0x7+-parseInt(_0x295a9b(0x16d))/0x8+-parseInt(_0x295a9b(0x18a))/0x9+parseInt(_0x295a9b(0x17d))/0xa;if(_0xcd5e76===_0x4511ba)break;else _0x15db4e['push'](_0x15db4e['shift']());}catch(_0x385859){_0x15db4e['push'](_0x15db4e['shift']());}}}(a90_0x1b93,0x70ce9));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';function a90_0x1825(_0x20eae1,_0x8e1554){_0x20eae1=_0x20eae1-0x15d;const _0x1b9314=a90_0x1b93();let _0x182567=_0x1b9314[_0x20eae1];return _0x182567;}export const DOMAIN_CONFIG_FIELDS=[a90_0x26f4c5(0x17e),a90_0x26f4c5(0x186),'runtimeDomain','skillDomain',a90_0x26f4c5(0x18f)];const DOMAIN_FLAGS={'userDomain':a90_0x26f4c5(0x16a),'apiDomain':a90_0x26f4c5(0x165),'runtimeDomain':a90_0x26f4c5(0x160),'skillDomain':a90_0x26f4c5(0x196),'kbServiceDomain':a90_0x26f4c5(0x16b)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a90_0x26f4c5(0x199),a90_0x26f4c5(0x176),'platformDomain','skillHubDomain','kbDomain'];function a90_0x1b93(){const _0x328c46=['isArray','13246230lGySFj','userDomain','4180470BWXhBT','cwd','Invalid\x20','string','legacy','enterprise-v1','3tbJEBC','apiDomain','\x20and\x20has\x20no\x20default.','2532UrFgzv','validation','7746498AKmbqM','mode',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','\x22\x20is\x20not\x20a\x20valid\x20URL.','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','kbServiceDomain','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','https:','password','Unsupported\x20domain\x20config\x20field(s):\x20','trim','skill-domain','utf8','kind','host','protocol','Domain\x20config\x20file\x20not\x20found:\x20','182WrJTMz','length',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','Enterprise\x20','includes','runtime-domain','domains','\x22\x20and\x20kind\x20\x22','lovrabet-cli','keys','api-domain','1486732mKtklE','filter','pathname','skillDomain','user-domain','kb-service-domain','username','1809112PLrgGr','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.','2435RLPIxS','hash','str',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','runtimeDomain','agentDomain','origin','join','domain-config','object','5924LGXwso'];a90_0x1b93=function(){return _0x328c46;};return a90_0x1b93();}const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a90_0x26f4c5(0x17e),'apiDomain':a90_0x26f4c5(0x186),'runtimeDomain':a90_0x26f4c5(0x175),'skillDomain':a90_0x26f4c5(0x169),'kbServiceDomain':a90_0x26f4c5(0x18f)},ROUTING_CONSUMER=a90_0x26f4c5(0x163);export function normalizeDomainOrigin(_0x54c544,_0x1d622d){const _0x5844c9=a90_0x26f4c5;if(typeof _0x1d622d!==_0x5844c9(0x182)||!_0x1d622d[_0x5844c9(0x195)]())throw CliErrors[_0x5844c9(0x189)]('Invalid\x20'+_0x54c544+_0x5844c9(0x18c));let _0x3a9dee;try{_0x3a9dee=new URL(_0x1d622d['trim']());}catch{throw CliErrors['validation'](_0x5844c9(0x181)+_0x54c544+':\x20\x22'+_0x1d622d+_0x5844c9(0x18d));}if(_0x3a9dee[_0x5844c9(0x19a)]!==_0x5844c9(0x192)||_0x3a9dee[_0x5844c9(0x16c)]||_0x3a9dee[_0x5844c9(0x193)]||_0x3a9dee['pathname']!=='/'&&_0x3a9dee[_0x5844c9(0x168)]!==''||_0x3a9dee['search']||_0x3a9dee[_0x5844c9(0x172)])throw CliErrors[_0x5844c9(0x189)](_0x5844c9(0x181)+_0x54c544+_0x5844c9(0x174),_0x5844c9(0x18e));return _0x3a9dee[_0x5844c9(0x177)];}export function normalizeRoutingDomainValue(_0x327261,_0x32bf27){const _0x162792=a90_0x26f4c5;if(typeof _0x32bf27===_0x162792(0x182))return normalizeDomainOrigin(_0x327261,_0x32bf27);if(!_0x32bf27||typeof _0x32bf27!=='object'||Array[_0x162792(0x17c)](_0x32bf27))throw CliErrors[_0x162792(0x189)](_0x162792(0x181)+_0x327261+_0x162792(0x15d));const _0xad30e6=_0x32bf27,_0xc6b44f=_0xad30e6[ROUTING_CONSUMER]??_0xad30e6['default'];if(_0xc6b44f===undefined)throw CliErrors[_0x162792(0x189)](_0x162792(0x15e)+_0x327261+'\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20'+ROUTING_CONSUMER+_0x162792(0x187));return normalizeDomainOrigin(_0x327261,_0xc6b44f);}export function resolveEnterpriseRoutingConfig(_0x5a7db8){const _0x484b78=a90_0x26f4c5;if(_0x5a7db8===undefined)return undefined;if(!_0x5a7db8||typeof _0x5a7db8!==_0x484b78(0x17a)||Array[_0x484b78(0x17c)](_0x5a7db8))throw CliErrors[_0x484b78(0x189)](_0x484b78(0x170));return parseEnterpriseRoutingManifest(_0x5a7db8)[_0x484b78(0x161)];}export function readDomainConfigInput(_0x309c83){const _0x2bacf6=a90_0x26f4c5,_0x42a52b=isAbsolute(_0x309c83)?_0x309c83:resolve(process[_0x2bacf6(0x180)](),_0x309c83);if(!existsSync(_0x42a52b))throw CliErrors[_0x2bacf6(0x189)](_0x2bacf6(0x19b)+_0x42a52b);let _0x4ae5c9;try{_0x4ae5c9=JSON['parse'](readFileSync(_0x42a52b,_0x2bacf6(0x197)));}catch{throw CliErrors[_0x2bacf6(0x189)]('Invalid\x20domain\x20config\x20JSON:\x20'+_0x42a52b);}if(!_0x4ae5c9||typeof _0x4ae5c9!=='object'||Array[_0x2bacf6(0x17c)](_0x4ae5c9))throw CliErrors['validation']('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x52f28=_0x4ae5c9;if(_0x2bacf6(0x19a)in _0x52f28)return parseEnterpriseRoutingManifest(_0x52f28);const _0x4f5894=Object[_0x2bacf6(0x164)](_0x52f28)[_0x2bacf6(0x167)](_0x2d4fc3=>!DOMAIN_CONFIG_FIELDS[_0x2bacf6(0x15f)](_0x2d4fc3));if(_0x4f5894[_0x2bacf6(0x19d)]>0x0)throw CliErrors['validation'](_0x2bacf6(0x194)+_0x4f5894[_0x2bacf6(0x178)](',\x20'),'Allowed\x20fields:\x20'+DOMAIN_CONFIG_FIELDS[_0x2bacf6(0x178)](',\x20'));const _0x498b97={};for(const _0x2a8872 of DOMAIN_CONFIG_FIELDS){_0x52f28[_0x2a8872]!==undefined&&(_0x498b97[_0x2a8872]=normalizeDomainOrigin(_0x2a8872,_0x52f28[_0x2a8872]));}if(Object[_0x2bacf6(0x164)](_0x498b97)['length']===0x0)throw CliErrors[_0x2bacf6(0x189)](_0x2bacf6(0x16e));return{'mode':'legacy','domains':_0x498b97};}export function readDomainConfig(_0x47386a){const _0x1dbac2=a90_0x26f4c5;return readDomainConfigInput(_0x47386a)[_0x1dbac2(0x161)];}export function resolveDomainConfigInput(_0x129977){const _0x5f21a2=a90_0x26f4c5,_0x140af1=(_0x129977[_0x5f21a2(0x173)](_0x5f21a2(0x179))||'')[_0x5f21a2(0x195)](),_0x355ddb=_0x140af1?readDomainConfigInput(_0x140af1):{'mode':_0x5f21a2(0x183),'domains':{}},_0x53f82f=DOMAIN_CONFIG_FIELDS[_0x5f21a2(0x167)](_0x352b97=>Boolean((_0x129977['str'](DOMAIN_FLAGS[_0x352b97])||'')[_0x5f21a2(0x195)]()));if(_0x355ddb[_0x5f21a2(0x18b)]===_0x5f21a2(0x184)&&_0x53f82f['length']>0x0)throw CliErrors[_0x5f21a2(0x189)](_0x5f21a2(0x191),_0x5f21a2(0x16f));for(const _0x2e08d2 of DOMAIN_CONFIG_FIELDS){const _0x37a728=(_0x129977[_0x5f21a2(0x173)](DOMAIN_FLAGS[_0x2e08d2])||'')['trim']();if(_0x37a728)_0x355ddb[_0x5f21a2(0x161)][_0x2e08d2]=normalizeDomainOrigin(_0x2e08d2,_0x37a728);}return _0x355ddb;}export function resolveDomainFlags(_0xb6fc50){const _0x1e846f=a90_0x26f4c5;return resolveDomainConfigInput(_0xb6fc50)[_0x1e846f(0x161)];}export function parseEnterpriseRoutingManifest(_0x5c4ca2){const _0x13fef5=a90_0x26f4c5;if(_0x5c4ca2[_0x13fef5(0x19a)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x5c4ca2[_0x13fef5(0x198)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x13fef5(0x189)]('Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22'+ENTERPRISE_ROUTING_PROTOCOL+_0x13fef5(0x162)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x5c4ca2[_0x13fef5(0x161)]||typeof _0x5c4ca2[_0x13fef5(0x161)]!=='object'||Array['isArray'](_0x5c4ca2[_0x13fef5(0x161)]))throw CliErrors['validation']('Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.');const _0x433ed5=_0x5c4ca2['domains'],_0x59c9b7=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x13fef5(0x167)](_0x597b51=>_0x433ed5[_0x597b51]===undefined);if(_0x59c9b7[_0x13fef5(0x19d)]>0x0)throw CliErrors[_0x13fef5(0x189)](_0x13fef5(0x190)+_0x59c9b7['join'](',\x20'));const _0x56a374={},_0x3763c6={};for(const _0x1a70f8 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x783fc3=_0x433ed5[_0x1a70f8];if(_0x783fc3===undefined)continue;const _0x40c0f4=normalizeRoutingDomainValue(_0x1a70f8,_0x783fc3);_0x56a374[_0x1a70f8]=_0x40c0f4;const _0x258344=ENTERPRISE_TO_LOCAL_FIELD[_0x1a70f8];_0x258344&&(_0x3763c6[_0x258344]=_0x40c0f4);}return{'mode':'enterprise-v1','domains':_0x3763c6,'manifestDomains':_0x56a374};}
@@ -1 +1 @@
1
- const a91_0x250f9b=a91_0x2d04;(function(_0x48617d,_0x3fab5f){const _0x3b7986=a91_0x2d04,_0x15bd78=_0x48617d();while(!![]){try{const _0x52b2df=parseInt(_0x3b7986(0x206))/0x1*(-parseInt(_0x3b7986(0x1f2))/0x2)+-parseInt(_0x3b7986(0x1f5))/0x3*(parseInt(_0x3b7986(0x201))/0x4)+parseInt(_0x3b7986(0x1f4))/0x5+-parseInt(_0x3b7986(0x208))/0x6+parseInt(_0x3b7986(0x1fd))/0x7*(parseInt(_0x3b7986(0x1ff))/0x8)+parseInt(_0x3b7986(0x1e6))/0x9*(-parseInt(_0x3b7986(0x1f7))/0xa)+parseInt(_0x3b7986(0x20b))/0xb;if(_0x52b2df===_0x3fab5f)break;else _0x15bd78['push'](_0x15bd78['shift']());}catch(_0x5a8f06){_0x15bd78['push'](_0x15bd78['shift']());}}}(a91_0x2e8f,0x41479));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_0x250f9b(0x1f0),'topLevel':!![]},'region':{'description':a91_0x250f9b(0x1ef),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':ENABLED_LOVRABET_REGION_VALUES,'defaultValue':DEFAULT_LOVRABET_REGION,'importable':!![]},'env':{'description':a91_0x250f9b(0x1ec),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a91_0x250f9b(0x1eb)],'importable':!![]},'format':{'description':a91_0x250f9b(0x1e7),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a91_0x250f9b(0x1fa)],'importable':!![]},'pageSize':{'description':a91_0x250f9b(0x203),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a91_0x250f9b(0x1e9),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a91_0x250f9b(0x1f1),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a91_0x250f9b(0x1fc),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillDomain':{'description':a91_0x250f9b(0x1e5),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'kbServiceDomain':{'description':a91_0x250f9b(0x209),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a91_0x250f9b(0x200)],'importable':!![]},'nativeToolAvailable':{'description':a91_0x250f9b(0x1e8),'topLevel':!![],'defaultValue':![]},'locale':{'description':a91_0x250f9b(0x1f9),'topLevel':!![],'cliSettableTopLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x3a170f])=>_0x3a170f['cliSettableTopLevel'])[a91_0x250f9b(0x205)](([_0x1ed1b6])=>_0x1ed1b6));function a91_0x2e8f(){const _0x1cc07e=['entries','168doQyGx','riskLevel','1676MqbDBO','has','Default\x20page\x20size','enumValues','map','56614xLULho','defaultValue','612144sYoQph','Override\x20KB\x20Service\x20domain','Config\x20key.\x20Top-level:\x20','5249673RjePbI','Override\x20SkillHub\x20domain','684GTODxs','Default\x20output\x20format','Native\x20Lovrabet\x20tool\x20availability\x20in\x20the\x20current\x20execution\x20host','Override\x20API\x20domain','filter','env','Target\x20environment','join','zh-CN','Lovrabet\x20region','Versioned\x20enterprise\x20routing\x20manifest','Override\x20user\x20domain','16PPzGHA','fromEntries','414510PnSUyA','534VFRgwh','toLowerCase','10240kKtHci','en-US','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','format',';\x20local\x20alias:\x20apps.<alias>.appcode','Override\x20runtime\x20domain','138194tDhnXS'];a91_0x2e8f=function(){return _0x1cc07e;};return a91_0x2e8f();}export const CLI_PROTECTED_CONFIG_KEYS=new Set([a91_0x250f9b(0x200),'nativeToolAvailable']);export const CONFIG_ENUM_VALUES=Object[a91_0x250f9b(0x1f3)](Object[a91_0x250f9b(0x1fe)](CONFIG_FIELD_SCHEMAS)[a91_0x250f9b(0x1ea)](([,_0x112595])=>_0x112595[a91_0x250f9b(0x204)])[a91_0x250f9b(0x205)](([_0x21cae9,_0x1b0f7c])=>[_0x21cae9,[..._0x1b0f7c[a91_0x250f9b(0x204)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x107bd3])=>_0x107bd3['importable'])[a91_0x250f9b(0x205)](([_0x549204])=>_0x549204);export function getConfigFieldSchema(_0x1e9ba9){return CONFIG_FIELD_SCHEMAS[_0x1e9ba9];}export function getConfigEnumValues(_0x5d107b){const _0x477972=a91_0x250f9b;return getConfigFieldSchema(_0x5d107b)?.[_0x477972(0x204)];}export function getConfigDefaultValue(_0x418dd2){const _0x44b002=a91_0x250f9b;return getConfigFieldSchema(_0x418dd2)?.[_0x44b002(0x207)];}export function isTopLevelConfigKey(_0x416cfa){const _0x452989=a91_0x250f9b;return TOP_LEVEL_CONFIG_KEYS[_0x452989(0x202)](_0x416cfa);}export function isCliProtectedConfigKey(_0x136b92){return CLI_PROTECTED_CONFIG_KEYS['has'](_0x136b92);}const LOCALE_MAP={'zh':a91_0x250f9b(0x1ee),'zh-cn':a91_0x250f9b(0x1ee),'zh_cn':'zh-CN','en':a91_0x250f9b(0x1f8),'en-us':a91_0x250f9b(0x1f8),'en_us':a91_0x250f9b(0x1f8)};export function normalizeLocale(_0x1e8ba7){const _0x30ffb6=a91_0x250f9b;if(!_0x1e8ba7)return null;return LOCALE_MAP[_0x1e8ba7[_0x30ffb6(0x1f6)]()]??null;}export function isLegacyCompatConfigKey(_0x2c1d7){return getConfigFieldSchema(_0x2c1d7)?.['legacyCompatOnly']===!![];}function a91_0x2d04(_0xbdc13e,_0x34660c){_0xbdc13e=_0xbdc13e-0x1e5;const _0x2e8f52=a91_0x2e8f();let _0x2d0479=_0x2e8f52[_0xbdc13e];return _0x2d0479;}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x2cc3b8){const _0x2d7651=a91_0x250f9b;return[..._0x2cc3b8][_0x2d7651(0x1ed)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x5c17ce=a91_0x250f9b;return _0x5c17ce(0x20a)+getTopLevelConfigKeySummary()+_0x5c17ce(0x1fb);}export function buildAppProfileListFields(_0x1d2773){return{'env':_0x1d2773,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a91_0x3b36ca=a91_0x20df;(function(_0x3ce8a8,_0x1313b7){const _0x1e693d=a91_0x20df,_0x355d83=_0x3ce8a8();while(!![]){try{const _0x5dd6d3=parseInt(_0x1e693d(0x12a))/0x1*(parseInt(_0x1e693d(0x11c))/0x2)+-parseInt(_0x1e693d(0x111))/0x3*(parseInt(_0x1e693d(0x113))/0x4)+-parseInt(_0x1e693d(0x108))/0x5*(parseInt(_0x1e693d(0x110))/0x6)+parseInt(_0x1e693d(0x107))/0x7*(parseInt(_0x1e693d(0x11b))/0x8)+parseInt(_0x1e693d(0x11e))/0x9*(parseInt(_0x1e693d(0x118))/0xa)+parseInt(_0x1e693d(0x12c))/0xb*(parseInt(_0x1e693d(0x131))/0xc)+-parseInt(_0x1e693d(0x120))/0xd*(parseInt(_0x1e693d(0x10b))/0xe);if(_0x5dd6d3===_0x1313b7)break;else _0x355d83['push'](_0x355d83['shift']());}catch(_0x18b9c3){_0x355d83['push'](_0x355d83['shift']());}}}(a91_0x225e,0x8da48));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_0x3b36ca(0x115),'topLevel':!![]},'region':{'description':a91_0x3b36ca(0x116),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':ENABLED_LOVRABET_REGION_VALUES,'defaultValue':DEFAULT_LOVRABET_REGION,'importable':!![]},'env':{'description':a91_0x3b36ca(0x10d),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a91_0x3b36ca(0x12d)],'importable':!![]},'format':{'description':a91_0x3b36ca(0x125),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a91_0x3b36ca(0x119)],'importable':!![]},'pageSize':{'description':a91_0x3b36ca(0x11d),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a91_0x3b36ca(0x124),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a91_0x3b36ca(0x11a),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a91_0x3b36ca(0x114),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillDomain':{'description':a91_0x3b36ca(0x127),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'kbServiceDomain':{'description':'Override\x20KB\x20Service\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a91_0x3b36ca(0x10c),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a91_0x3b36ca(0x130),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a91_0x3b36ca(0x10f)],'importable':!![]},'nativeToolAvailable':{'description':a91_0x3b36ca(0x12b),'topLevel':!![],'defaultValue':![]},'locale':{'description':'App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','topLevel':!![],'cliSettableTopLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a91_0x3b36ca(0x122)],'importable':!![]}};function a91_0x225e(){const _0x58d533=['Target\x20environment','cliSettableTopLevel','riskLevel','18tVHBGq','3kOQoIP','join','4524924rXPjiU','Override\x20runtime\x20domain','Versioned\x20enterprise\x20routing\x20manifest','Lovrabet\x20region','has','3460HzvGug','format','Override\x20user\x20domain','24lOsNJq','158NaNJRZ','Default\x20page\x20size','27747KYcykK','filter','26XdHfYM','Config\x20key.\x20Top-level:\x20','locale','enumValues','Override\x20API\x20domain','Default\x20output\x20format','importable','Override\x20SkillHub\x20domain','toLowerCase','entries','2412MkKQIS','Native\x20Lovrabet\x20tool\x20availability\x20in\x20the\x20current\x20execution\x20host','7639236SWpAFj','env','defaultValue','zh-CN','Risk\x20level','12mSOhjZ','map','98280zGJEGr','411705JSuNwY','legacyCompatOnly','en-US','248080orWcdk','Access\x20key\x20(client-ak\x20auth)'];a91_0x225e=function(){return _0x58d533;};return a91_0x225e();}export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a91_0x3b36ca(0x129)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x427404])=>_0x427404[a91_0x3b36ca(0x10e)])[a91_0x3b36ca(0x106)](([_0x30f9cf])=>_0x30f9cf));export const CLI_PROTECTED_CONFIG_KEYS=new Set([a91_0x3b36ca(0x10f),'nativeToolAvailable']);export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object['entries'](CONFIG_FIELD_SCHEMAS)[a91_0x3b36ca(0x11f)](([,_0x5581ae])=>_0x5581ae[a91_0x3b36ca(0x123)])['map'](([_0x55cbe9,_0x2a6566])=>[_0x55cbe9,[..._0x2a6566[a91_0x3b36ca(0x123)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object['entries'](CONFIG_FIELD_SCHEMAS)[a91_0x3b36ca(0x11f)](([,_0x475a1d])=>_0x475a1d[a91_0x3b36ca(0x126)])['map'](([_0x49aef3])=>_0x49aef3);export function getConfigFieldSchema(_0x328452){return CONFIG_FIELD_SCHEMAS[_0x328452];}export function getConfigEnumValues(_0x59e3a2){const _0x20907c=a91_0x3b36ca;return getConfigFieldSchema(_0x59e3a2)?.[_0x20907c(0x123)];}export function getConfigDefaultValue(_0x50b367){const _0x39b612=a91_0x3b36ca;return getConfigFieldSchema(_0x50b367)?.[_0x39b612(0x12e)];}export function isTopLevelConfigKey(_0x58bd2c){return TOP_LEVEL_CONFIG_KEYS['has'](_0x58bd2c);}export function isCliProtectedConfigKey(_0x2f6801){const _0xe87bd3=a91_0x3b36ca;return CLI_PROTECTED_CONFIG_KEYS[_0xe87bd3(0x117)](_0x2f6801);}const LOCALE_MAP={'zh':a91_0x3b36ca(0x12f),'zh-cn':'zh-CN','zh_cn':a91_0x3b36ca(0x12f),'en':a91_0x3b36ca(0x10a),'en-us':'en-US','en_us':a91_0x3b36ca(0x10a)};function a91_0x20df(_0x5e9585,_0x31ea49){_0x5e9585=_0x5e9585-0x106;const _0x225ed0=a91_0x225e();let _0x20dfec=_0x225ed0[_0x5e9585];return _0x20dfec;}export function normalizeLocale(_0x2fb3f9){const _0x3d4c82=a91_0x3b36ca;if(!_0x2fb3f9)return null;return LOCALE_MAP[_0x2fb3f9[_0x3d4c82(0x128)]()]??null;}export function isLegacyCompatConfigKey(_0x5a3186){const _0x287e27=a91_0x3b36ca;return getConfigFieldSchema(_0x5a3186)?.[_0x287e27(0x109)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x17125d){const _0x13ef60=a91_0x3b36ca;return[..._0x17125d][_0x13ef60(0x112)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0xa7b4c4=a91_0x3b36ca;return _0xa7b4c4(0x121)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0x357653){return{'env':_0x357653,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- const a92_0x4e1bc7=a92_0x5d2a;(function(_0x5d6897,_0x2b5409){const _0x5e00dc=a92_0x5d2a,_0x2f47d5=_0x5d6897();while(!![]){try{const _0x219aa3=parseInt(_0x5e00dc(0x113))/0x1+parseInt(_0x5e00dc(0x112))/0x2*(-parseInt(_0x5e00dc(0x111))/0x3)+parseInt(_0x5e00dc(0x10e))/0x4+parseInt(_0x5e00dc(0x119))/0x5+-parseInt(_0x5e00dc(0x114))/0x6*(parseInt(_0x5e00dc(0x11a))/0x7)+-parseInt(_0x5e00dc(0x115))/0x8*(-parseInt(_0x5e00dc(0x110))/0x9)+parseInt(_0x5e00dc(0x10d))/0xa*(-parseInt(_0x5e00dc(0x118))/0xb);if(_0x219aa3===_0x2b5409)break;else _0x2f47d5['push'](_0x2f47d5['shift']());}catch(_0x1568c5){_0x2f47d5['push'](_0x2f47d5['shift']());}}}(a92_0x14a8,0xc9c1e));export const APP_PUBLISH_STATUS={'Published':a92_0x4e1bc7(0x116),'Unpublished':a92_0x4e1bc7(0x10f)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a92_0x4e1bc7(0x117)];function a92_0x5d2a(_0x397d26,_0x30ed98){_0x397d26=_0x397d26-0x10d;const _0x14a88c=a92_0x14a8();let _0x5d2af3=_0x14a88c[_0x397d26];return _0x5d2af3;}function a92_0x14a8(){const _0x2715e3=['PUBLISHED','Published','374YZoDYZ','8027010FOHZBB','6314sHefbI','278590hyNQnp','5867292PyzHEP','UNPUBLISH','207GqhphS','4876329NtWjBH','2yatIGO','102339BlRohJ','4302cesluh','303032aMYobU'];a92_0x14a8=function(){return _0x2715e3;};return a92_0x14a8();}
1
+ function a92_0x6a27(_0x3d8566,_0x35c8e4){_0x3d8566=_0x3d8566-0x10e;const _0x1ff26c=a92_0x1ff2();let _0x6a274c=_0x1ff26c[_0x3d8566];return _0x6a274c;}const a92_0x27d2ab=a92_0x6a27;(function(_0x3e2e36,_0x3a9d0c){const _0x378d48=a92_0x6a27,_0x5f276f=_0x3e2e36();while(!![]){try{const _0x26f156=parseInt(_0x378d48(0x114))/0x1*(parseInt(_0x378d48(0x119))/0x2)+parseInt(_0x378d48(0x115))/0x3+-parseInt(_0x378d48(0x10f))/0x4*(-parseInt(_0x378d48(0x116))/0x5)+parseInt(_0x378d48(0x113))/0x6+-parseInt(_0x378d48(0x10e))/0x7+parseInt(_0x378d48(0x117))/0x8*(-parseInt(_0x378d48(0x110))/0x9)+-parseInt(_0x378d48(0x111))/0xa;if(_0x26f156===_0x3a9d0c)break;else _0x5f276f['push'](_0x5f276f['shift']());}catch(_0xf2d296){_0x5f276f['push'](_0x5f276f['shift']());}}}(a92_0x1ff2,0xc1098));function a92_0x1ff2(){const _0x385d29=['2498152kHoomJ','Published','42JJATHB','PUBLISHED','8459045zeJEXS','26312NwyGrJ','9VJnVgt','7288950vHNeGT','UNPUBLISH','5118606ypgtFS','56127GWudfK','617985JIWmVD','610oSQvYb'];a92_0x1ff2=function(){return _0x385d29;};return a92_0x1ff2();}export const APP_PUBLISH_STATUS={'Published':a92_0x27d2ab(0x11a),'Unpublished':a92_0x27d2ab(0x112)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a92_0x27d2ab(0x118)];
@@ -1 +1 @@
1
- function a93_0x4275(){const _0xe21a6c=['121nLqRAd','3HPWwAC','217bjAAYB','66776LMXkSg','120xDQWAc','40120uTcVxX','187412USnrVo','238010JIMiUH','153594lIQktH','client-ak','800022pgCRKO','1674711rieBns'];a93_0x4275=function(){return _0xe21a6c;};return a93_0x4275();}function a93_0x5c13(_0x3dbdac,_0x3633fe){_0x3dbdac=_0x3dbdac-0x11a;const _0x4275dc=a93_0x4275();let _0x5c13f0=_0x4275dc[_0x3dbdac];return _0x5c13f0;}const a93_0x1ea72a=a93_0x5c13;(function(_0x434c1d,_0x566605){const _0x43d174=a93_0x5c13,_0x5c9185=_0x434c1d();while(!![]){try{const _0x2dee7f=parseInt(_0x43d174(0x125))/0x1+parseInt(_0x43d174(0x123))/0x2*(-parseInt(_0x43d174(0x11e))/0x3)+parseInt(_0x43d174(0x121))/0x4*(-parseInt(_0x43d174(0x122))/0x5)+parseInt(_0x43d174(0x11b))/0x6+-parseInt(_0x43d174(0x11f))/0x7*(parseInt(_0x43d174(0x120))/0x8)+parseInt(_0x43d174(0x11c))/0x9+parseInt(_0x43d174(0x124))/0xa*(parseInt(_0x43d174(0x11d))/0xb);if(_0x2dee7f===_0x566605)break;else _0x5c9185['push'](_0x5c9185['shift']());}catch(_0x1e413d){_0x5c9185['push'](_0x5c9185['shift']());}}}(a93_0x4275,0x22946));export const AUTH_MODE={'ClientAk':a93_0x1ea72a(0x11a)};export function isAuthMode(_0x14694b){return _0x14694b===AUTH_MODE['ClientAk'];}
1
+ (function(_0x44e103,_0x195cfe){const _0x454462=a93_0x32f1,_0x2af0a4=_0x44e103();while(!![]){try{const _0x588c04=parseInt(_0x454462(0x1e7))/0x1*(-parseInt(_0x454462(0x1ea))/0x2)+-parseInt(_0x454462(0x1eb))/0x3*(parseInt(_0x454462(0x1e9))/0x4)+-parseInt(_0x454462(0x1e8))/0x5+parseInt(_0x454462(0x1ef))/0x6+-parseInt(_0x454462(0x1f0))/0x7+parseInt(_0x454462(0x1ee))/0x8*(-parseInt(_0x454462(0x1f1))/0x9)+parseInt(_0x454462(0x1e6))/0xa*(parseInt(_0x454462(0x1ec))/0xb);if(_0x588c04===_0x195cfe)break;else _0x2af0a4['push'](_0x2af0a4['shift']());}catch(_0x3c269c){_0x2af0a4['push'](_0x2af0a4['shift']());}}}(a93_0x1127,0x985fb));function a93_0x1127(){const _0x105ab1=['1169796PMSSJs','4744446OppHGw','8977320RChrFr','104410wiQDyO','1090457vdXcKE','2448625tRxDiw','1588lDLZpl','2daoDCx','3243DlOmYu','4334DLMSsk','ClientAk','8txBRqJ'];a93_0x1127=function(){return _0x105ab1;};return a93_0x1127();}export const AUTH_MODE={'ClientAk':'client-ak'};function a93_0x32f1(_0x492839,_0x12a910){_0x492839=_0x492839-0x1e6;const _0x112738=a93_0x1127();let _0x32f160=_0x112738[_0x492839];return _0x32f160;}export function isAuthMode(_0x3d23ff){const _0x32c227=a93_0x32f1;return _0x3d23ff===AUTH_MODE[_0x32c227(0x1ed)];}
@@ -1 +1 @@
1
- const a94_0x492ce6=a94_0x2426;(function(_0x4c449e,_0x2b391f){const _0x4ffc4f=a94_0x2426,_0x57cc24=_0x4c449e();while(!![]){try{const _0x5b65af=-parseInt(_0x4ffc4f(0x15f))/0x1*(-parseInt(_0x4ffc4f(0x172))/0x2)+-parseInt(_0x4ffc4f(0x17d))/0x3+parseInt(_0x4ffc4f(0x168))/0x4*(parseInt(_0x4ffc4f(0x169))/0x5)+-parseInt(_0x4ffc4f(0x176))/0x6*(parseInt(_0x4ffc4f(0x15c))/0x7)+-parseInt(_0x4ffc4f(0x16e))/0x8+parseInt(_0x4ffc4f(0x15b))/0x9+parseInt(_0x4ffc4f(0x158))/0xa;if(_0x5b65af===_0x2b391f)break;else _0x57cc24['push'](_0x57cc24['shift']());}catch(_0x4c752d){_0x57cc24['push'](_0x57cc24['shift']());}}}(a94_0x5d3d,0xf0a2e));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';function a94_0x2426(_0x27ea2d,_0x2cdc7b){_0x27ea2d=_0x27ea2d-0x151;const _0x5d3d29=a94_0x5d3d();let _0x242640=_0x5d3d29[_0x27ea2d];return _0x242640;}export const CLI_BIN_NAME=PRODUCT_CONFIG[a94_0x492ce6(0x160)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a94_0x492ce6(0x167)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a94_0x492ce6(0x161),'meowKey':a94_0x492ce6(0x161),'type':a94_0x492ce6(0x170),'description':'Override\x20appcode','hint':a94_0x492ce6(0x153)},{'name':a94_0x492ce6(0x178),'meowKey':a94_0x492ce6(0x178),'type':a94_0x492ce6(0x170),'description':a94_0x492ce6(0x154),'hint':a94_0x492ce6(0x155)},{'name':'env','meowKey':a94_0x492ce6(0x15d),'type':a94_0x492ce6(0x170),'description':'Environment','hint':a94_0x492ce6(0x162)},{'name':a94_0x492ce6(0x16c),'meowKey':a94_0x492ce6(0x16c),'type':a94_0x492ce6(0x170),'description':a94_0x492ce6(0x157),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a94_0x492ce6(0x170),'description':a94_0x492ce6(0x16a),'hint':a94_0x492ce6(0x17c)},{'name':a94_0x492ce6(0x163),'meowKey':a94_0x492ce6(0x166),'type':a94_0x492ce6(0x15e),'description':'Preview\x20operation\x20without\x20executing'},{'name':a94_0x492ce6(0x17e),'meowKey':a94_0x492ce6(0x17e),'type':a94_0x492ce6(0x15e),'description':a94_0x492ce6(0x173)},{'name':a94_0x492ce6(0x177),'meowKey':a94_0x492ce6(0x175),'type':a94_0x492ce6(0x15e),'description':a94_0x492ce6(0x171)},{'name':a94_0x492ce6(0x16b),'meowKey':a94_0x492ce6(0x16b),'type':'boolean','description':a94_0x492ce6(0x152)},{'name':'ci','meowKey':'ci','type':a94_0x492ce6(0x15e),'description':a94_0x492ce6(0x165),'hidden':!![]},{'name':a94_0x492ce6(0x15a),'meowKey':a94_0x492ce6(0x15a),'type':a94_0x492ce6(0x15e),'description':a94_0x492ce6(0x16f)},{'name':'id','meowKey':'id','type':a94_0x492ce6(0x170),'description':a94_0x492ce6(0x17b),'hidden':!![]},{'name':'name','meowKey':a94_0x492ce6(0x159),'type':'string','description':a94_0x492ce6(0x179),'hidden':!![]},{'name':'sqlcode','meowKey':a94_0x492ce6(0x174),'type':a94_0x492ce6(0x170),'description':a94_0x492ce6(0x17f),'hidden':!![]},{'name':'params','meowKey':'params','type':a94_0x492ce6(0x170),'description':a94_0x492ce6(0x180),'hidden':!![]},{'name':a94_0x492ce6(0x17a),'meowKey':a94_0x492ce6(0x17a),'type':a94_0x492ce6(0x15e),'description':'Verbose\x20output','hidden':!![]},{'name':a94_0x492ce6(0x164),'meowKey':a94_0x492ce6(0x164),'type':a94_0x492ce6(0x15e),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a94_0x492ce6(0x178),'env',a94_0x492ce6(0x16c),'jq',a94_0x492ce6(0x163),'yes',a94_0x492ce6(0x177),'ci']);function a94_0x5d3d(){const _0x5e6e74=['Alias\x20for\x20--non-interactive','dryRun','cliDisplayName','613720WkdNyo','40qGOcnq','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','global','format','meowKey','6968688OiWdpu','Show\x20help','string','Force\x20non-interactive\x20mode\x20(CI)','8vJWYAP','Skip\x20confirmation\x20for\x20high-risk\x20writes','sqlcode','nonInteractive','6uldXJT','non-interactive','app','Name\x20filter','verbose','Record\x20ID','<expr>','2623878naFPaa','yes','SQL\x20query\x20code','JSON\x20params\x20for\x20execute\x20commands','fromEntries','Use\x20global\x20config\x20scope','<code>','Select\x20app\x20profile\x20by\x20name','<name>','map','Output\x20format','4670600mUXCoR','name','help','11483667AaSPpr','5625515wcEyNp','env','boolean','141135yOmpol','cliBinName','appcode','production\x20|\x20development\x20|\x20daily','dry-run','clear'];a94_0x5d3d=function(){return _0x5e6e74;};return a94_0x5d3d();}export function buildMeowFlags(){const _0x1895f3=a94_0x492ce6;return Object[_0x1895f3(0x151)](GLOBAL_FLAGS[_0x1895f3(0x156)](_0x521024=>[_0x521024[_0x1895f3(0x16d)],{'type':_0x521024['type']}]));}
1
+ const a94_0x21450c=a94_0x5c54;(function(_0x582198,_0x353b51){const _0x3bfb0b=a94_0x5c54,_0x182d58=_0x582198();while(!![]){try{const _0x182b63=-parseInt(_0x3bfb0b(0x1e9))/0x1*(-parseInt(_0x3bfb0b(0x1f7))/0x2)+parseInt(_0x3bfb0b(0x1c7))/0x3*(-parseInt(_0x3bfb0b(0x1ed))/0x4)+-parseInt(_0x3bfb0b(0x1e0))/0x5+-parseInt(_0x3bfb0b(0x1da))/0x6*(-parseInt(_0x3bfb0b(0x1ca))/0x7)+parseInt(_0x3bfb0b(0x1ec))/0x8+-parseInt(_0x3bfb0b(0x1d8))/0x9*(-parseInt(_0x3bfb0b(0x1ef))/0xa)+-parseInt(_0x3bfb0b(0x1e4))/0xb*(parseInt(_0x3bfb0b(0x1e8))/0xc);if(_0x182b63===_0x353b51)break;else _0x182d58['push'](_0x182d58['shift']());}catch(_0x18f4b9){_0x182d58['push'](_0x182d58['shift']());}}}(a94_0x3402,0xa15b4));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a94_0x21450c(0x1e6)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];function a94_0x3402(){const _0x37dedd=['meowKey','Preview\x20operation\x20without\x20executing','format','Verbose\x20output','Alias\x20for\x20--non-interactive','Output\x20format','174141rgUAqp','non-interactive','7923126srysVh','app','Name\x20filter','Show\x20help','params','string','5010410rFIRmC','<code>','dryRun','map','140492LOleGR','fromEntries','cliBinName','verbose','108SaPwCj','3TjsNOU','json\x20|\x20pretty\x20|\x20compress','appcode','1700176vVLNll','1133964vSgPrD','name','110nwemGU','yes','env','dry-run','Skip\x20confirmation\x20for\x20high-risk\x20writes','nonInteractive','Select\x20app\x20profile\x20by\x20name','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','588358BOiXfE','type','9TkDsgo','Force\x20non-interactive\x20mode\x20(CI)','global','7EnCKdv','Override\x20appcode','SQL\x20query\x20code','boolean','Environment','help','clear','sqlcode'];a94_0x3402=function(){return _0x37dedd;};return a94_0x3402();}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a94_0x5c54(_0x3a75cb,_0x10e8bf){_0x3a75cb=_0x3a75cb-0x1c6;const _0x340295=a94_0x3402();let _0x5c542f=_0x340295[_0x3a75cb];return _0x5c542f;}export const GLOBAL_FLAGS=[{'name':a94_0x21450c(0x1eb),'meowKey':a94_0x21450c(0x1eb),'type':a94_0x21450c(0x1df),'description':a94_0x21450c(0x1cb),'hint':a94_0x21450c(0x1e1)},{'name':a94_0x21450c(0x1db),'meowKey':a94_0x21450c(0x1db),'type':a94_0x21450c(0x1df),'description':a94_0x21450c(0x1f5),'hint':'<name>'},{'name':a94_0x21450c(0x1f1),'meowKey':a94_0x21450c(0x1f1),'type':'string','description':a94_0x21450c(0x1ce),'hint':'production\x20|\x20development\x20|\x20daily'},{'name':a94_0x21450c(0x1d4),'meowKey':'format','type':a94_0x21450c(0x1df),'description':a94_0x21450c(0x1d7),'hint':a94_0x21450c(0x1ea)},{'name':'jq','meowKey':'jq','type':'string','description':a94_0x21450c(0x1f6),'hint':'<expr>'},{'name':a94_0x21450c(0x1f2),'meowKey':a94_0x21450c(0x1e2),'type':a94_0x21450c(0x1cd),'description':a94_0x21450c(0x1d3)},{'name':a94_0x21450c(0x1f0),'meowKey':a94_0x21450c(0x1f0),'type':a94_0x21450c(0x1cd),'description':a94_0x21450c(0x1f3)},{'name':a94_0x21450c(0x1d9),'meowKey':a94_0x21450c(0x1f4),'type':a94_0x21450c(0x1cd),'description':a94_0x21450c(0x1c8)},{'name':a94_0x21450c(0x1c9),'meowKey':a94_0x21450c(0x1c9),'type':a94_0x21450c(0x1cd),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a94_0x21450c(0x1d6),'hidden':!![]},{'name':'help','meowKey':a94_0x21450c(0x1cf),'type':a94_0x21450c(0x1cd),'description':a94_0x21450c(0x1dd)},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':a94_0x21450c(0x1ee),'meowKey':'name','type':'string','description':a94_0x21450c(0x1dc),'hidden':!![]},{'name':'sqlcode','meowKey':a94_0x21450c(0x1d1),'type':a94_0x21450c(0x1df),'description':a94_0x21450c(0x1cc),'hidden':!![]},{'name':a94_0x21450c(0x1de),'meowKey':a94_0x21450c(0x1de),'type':a94_0x21450c(0x1df),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':'verbose','meowKey':a94_0x21450c(0x1e7),'type':a94_0x21450c(0x1cd),'description':a94_0x21450c(0x1d5),'hidden':!![]},{'name':a94_0x21450c(0x1d0),'meowKey':'clear','type':a94_0x21450c(0x1cd),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a94_0x21450c(0x1eb),a94_0x21450c(0x1db),'env',a94_0x21450c(0x1d4),'jq',a94_0x21450c(0x1f2),a94_0x21450c(0x1f0),'non-interactive','ci']);export function buildMeowFlags(){const _0x12d735=a94_0x21450c;return Object[_0x12d735(0x1e5)](GLOBAL_FLAGS[_0x12d735(0x1e3)](_0x131e66=>[_0x131e66[_0x12d735(0x1d2)],{'type':_0x131e66[_0x12d735(0x1c6)]}]));}
@@ -1 +1 @@
1
- const a95_0x2415d3=a95_0x6b84;(function(_0x10345f,_0x4817a0){const _0x2633e9=a95_0x6b84,_0x2dfd51=_0x10345f();while(!![]){try{const _0x4fc869=parseInt(_0x2633e9(0x1f2))/0x1*(parseInt(_0x2633e9(0x1e7))/0x2)+parseInt(_0x2633e9(0x1f0))/0x3+-parseInt(_0x2633e9(0x1f5))/0x4+-parseInt(_0x2633e9(0x1f1))/0x5*(-parseInt(_0x2633e9(0x1f3))/0x6)+-parseInt(_0x2633e9(0x1ec))/0x7*(-parseInt(_0x2633e9(0x1e8))/0x8)+parseInt(_0x2633e9(0x1eb))/0x9+-parseInt(_0x2633e9(0x1ef))/0xa;if(_0x4fc869===_0x4817a0)break;else _0x2dfd51['push'](_0x2dfd51['shift']());}catch(_0x4ac70a){_0x2dfd51['push'](_0x2dfd51['shift']());}}}(a95_0x21cd,0x9aa3a));export const DEFAULT_APP_PROFILE_NAME=a95_0x2415d3(0x1e9);function a95_0x21cd(){const _0x554540=['12CVwxaF','compress','4346820rqznJj','482GUvRPN','8FHrPBs','main','production','9416871TuldkI','2905399ZvoTyg','en-US','write','16296660txUpti','1409055eYFroD','827095HJXlok','4514TFvFDt'];a95_0x21cd=function(){return _0x554540;};return a95_0x21cd();}export const DEFAULT_CONFIG_VALUES={'env':a95_0x2415d3(0x1ea),'format':a95_0x2415d3(0x1f4),'locale':a95_0x2415d3(0x1ed),'riskLevel':a95_0x2415d3(0x1ee)};function a95_0x6b84(_0x2f85ea,_0x30db5e){_0x2f85ea=_0x2f85ea-0x1e7;const _0x21cd12=a95_0x21cd();let _0x6b84b4=_0x21cd12[_0x2f85ea];return _0x6b84b4;}export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
1
+ const a95_0x223385=a95_0x405e;function a95_0x405e(_0x4ca256,_0x50e838){_0x4ca256=_0x4ca256-0x1d7;const _0x16e252=a95_0x16e2();let _0x405e92=_0x16e252[_0x4ca256];return _0x405e92;}(function(_0x373768,_0x5327d6){const _0x5b161d=a95_0x405e,_0xef30ef=_0x373768();while(!![]){try{const _0x152984=parseInt(_0x5b161d(0x1d9))/0x1*(parseInt(_0x5b161d(0x1de))/0x2)+-parseInt(_0x5b161d(0x1db))/0x3+-parseInt(_0x5b161d(0x1e1))/0x4+-parseInt(_0x5b161d(0x1da))/0x5+parseInt(_0x5b161d(0x1e0))/0x6+parseInt(_0x5b161d(0x1dd))/0x7*(-parseInt(_0x5b161d(0x1d8))/0x8)+-parseInt(_0x5b161d(0x1dc))/0x9*(-parseInt(_0x5b161d(0x1d7))/0xa);if(_0x152984===_0x5327d6)break;else _0xef30ef['push'](_0xef30ef['shift']());}catch(_0x3a9ce3){_0xef30ef['push'](_0xef30ef['shift']());}}}(a95_0x16e2,0x7451c));function a95_0x16e2(){const _0x3abf57=['387709eOPEWy','2HQNJEY','write','3088410hvHdNl','1432524XdRpEI','compress','production','13711240oFUvRF','80TClToJ','164908zSjclu','419990PWzjzb','1734972nuEtdx','9JeNdqI'];a95_0x16e2=function(){return _0x3abf57;};return a95_0x16e2();}export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':a95_0x223385(0x1e3),'format':a95_0x223385(0x1e2),'locale':'en-US','riskLevel':a95_0x223385(0x1df)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a95_0x223385(0x1e2);
@@ -1 +1 @@
1
- const a96_0xea137f=a96_0x2b3e;(function(_0x40a985,_0x7bc218){const _0x53152f=a96_0x2b3e,_0x3e54b7=_0x40a985();while(!![]){try{const _0x24b423=parseInt(_0x53152f(0x194))/0x1+-parseInt(_0x53152f(0x19b))/0x2*(parseInt(_0x53152f(0x191))/0x3)+-parseInt(_0x53152f(0x192))/0x4*(parseInt(_0x53152f(0x19a))/0x5)+parseInt(_0x53152f(0x19d))/0x6*(-parseInt(_0x53152f(0x19c))/0x7)+parseInt(_0x53152f(0x199))/0x8*(parseInt(_0x53152f(0x18f))/0x9)+parseInt(_0x53152f(0x190))/0xa+parseInt(_0x53152f(0x195))/0xb*(parseInt(_0x53152f(0x198))/0xc);if(_0x24b423===_0x7bc218)break;else _0x3e54b7['push'](_0x3e54b7['shift']());}catch(_0x2b276f){_0x3e54b7['push'](_0x3e54b7['shift']());}}}(a96_0x3be4,0xa9e41));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a96_0xea137f(0x197)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a96_0xea137f(0x193)];function a96_0x3be4(){const _0xa77471=['330516oxgvGr','7352RsoXzw','13435FXRGob','2518prOHjy','2959299oacavr','12fAZDfk','2538etlKmy','8177810HhSEtt','1770TDVKyH','1556IMawBK','npmRegistryBaseUrl','737636jkgebN','605OlztoI','/dist/lovrabet-cli/config/index.json','skillSource'];a96_0x3be4=function(){return _0xa77471;};return a96_0x3be4();}function a96_0x2b3e(_0x14cfe6,_0x56af16){_0x14cfe6=_0x14cfe6-0x18f;const _0x3be472=a96_0x3be4();let _0x2b3ebe=_0x3be472[_0x14cfe6];return _0x2b3ebe;}export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG['cliCdnBaseUrl'];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a96_0xea137f(0x196);
1
+ const a96_0x216323=a96_0x37c5;(function(_0x46e014,_0x120a5b){const _0x2dba8f=a96_0x37c5,_0x422bef=_0x46e014();while(!![]){try{const _0x3ec378=-parseInt(_0x2dba8f(0x13f))/0x1*(-parseInt(_0x2dba8f(0x140))/0x2)+-parseInt(_0x2dba8f(0x137))/0x3+parseInt(_0x2dba8f(0x139))/0x4+parseInt(_0x2dba8f(0x13b))/0x5*(parseInt(_0x2dba8f(0x142))/0x6)+parseInt(_0x2dba8f(0x13e))/0x7+-parseInt(_0x2dba8f(0x13c))/0x8+-parseInt(_0x2dba8f(0x138))/0x9*(parseInt(_0x2dba8f(0x141))/0xa);if(_0x3ec378===_0x120a5b)break;else _0x422bef['push'](_0x422bef['shift']());}catch(_0x53bb3c){_0x422bef['push'](_0x422bef['shift']());}}}(a96_0x10e8,0x63307));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a96_0x216323(0x143)];function a96_0x37c5(_0xee0d41,_0x5da8a6){_0xee0d41=_0xee0d41-0x137;const _0x10e84c=a96_0x10e8();let _0x37c551=_0x10e84c[_0xee0d41];return _0x37c551;}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];function a96_0x10e8(){const _0x57222f=['4BXQNMV','2780zRqDxJ','77802CwYLJd','npmPackageName','254892qXTUUZ','6696SqwqlI','2063452DMeWMx','/dist/lovrabet-cli/config/index.json','70DioJHZ','5597512MbuyoL','cliCdnBaseUrl','3885959FsvERR','72613dwurFg'];a96_0x10e8=function(){return _0x57222f;};return a96_0x10e8();}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a96_0x216323(0x13d)];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a96_0x216323(0x13a);
@@ -1 +1 @@
1
- const a97_0x19bf25=a97_0x44cc;(function(_0x2827ba,_0x34197f){const _0x420749=a97_0x44cc,_0x56d3bf=_0x2827ba();while(!![]){try{const _0x29743f=-parseInt(_0x420749(0x136))/0x1*(parseInt(_0x420749(0x141))/0x2)+parseInt(_0x420749(0x14b))/0x3*(parseInt(_0x420749(0x148))/0x4)+-parseInt(_0x420749(0x14d))/0x5+-parseInt(_0x420749(0x143))/0x6*(-parseInt(_0x420749(0x14c))/0x7)+parseInt(_0x420749(0x137))/0x8*(-parseInt(_0x420749(0x146))/0x9)+parseInt(_0x420749(0x13b))/0xa*(parseInt(_0x420749(0x13e))/0xb)+-parseInt(_0x420749(0x13c))/0xc;if(_0x29743f===_0x34197f)break;else _0x56d3bf['push'](_0x56d3bf['shift']());}catch(_0x2e896e){_0x56d3bf['push'](_0x56d3bf['shift']());}}}(a97_0x4447,0xc322a));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(_0x4c48b4){const _0x267ce7=a97_0x44cc;customApiDomain=_0x4c48b4?.[_0x267ce7(0x13a)],customUserDomain=_0x4c48b4?.[_0x267ce7(0x139)],customRuntimeDomain=_0x4c48b4?.['runtimeDomain'],customSkillDomain=_0x4c48b4?.[_0x267ce7(0x149)],customKbServiceDomain=_0x4c48b4?.[_0x267ce7(0x147)],allowOfficialKbServiceDefault=_0x4c48b4?.['allowOfficialKbServiceDefault']??!![],activeRegion=_0x4c48b4?.[_0x267ce7(0x138)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x4b1b9b=a97_0x44cc,_0x18c3be=OFFICIAL_ROUTING_PROFILES[activeRegion][_0x4b1b9b(0x14a)];return isProduction(getEnv())?_0x18c3be['production']:_0x4b1b9b(0x142)in _0x18c3be?_0x18c3be[_0x4b1b9b(0x142)]:_0x18c3be['production'];};function a97_0x4447(){const _0x5c1b1b=['6075532sWlYfZ','skillDomain','serviceDomains','3jSrhOV','170716zlYuDI','1259380KlvceQ','12115zFhhib','119024HpLmGJ','region','userDomain','apiDomain','134690JjYjxt','2667156YZwlow','kbService','341xIuBUN','user','skill','178vJUunE','daily','384vrAVLl','api','runtime','693NlArpL','kbServiceDomain'];a97_0x4447=function(){return _0x5c1b1b;};return a97_0x4447();}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a97_0x19bf25(0x13f)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a97_0x19bf25(0x144)];function a97_0x44cc(_0x10b118,_0x40e63a){_0x10b118=_0x10b118-0x136;const _0x44474=a97_0x4447();let _0x44cc60=_0x44474[_0x10b118];return _0x44cc60;}export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a97_0x19bf25(0x145)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a97_0x19bf25(0x140)];export const getKbServiceDomain=()=>{const _0x42dcce=a97_0x19bf25;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;const _0x2d02aa=getActiveRegionDomains();return _0x42dcce(0x13d)in _0x2d02aa?_0x2d02aa['kbService']:undefined;};
1
+ const a97_0x171f13=a97_0x34bc;(function(_0xc90a4b,_0x4a8f8d){const _0x133d95=a97_0x34bc,_0x5e0266=_0xc90a4b();while(!![]){try{const _0x144618=-parseInt(_0x133d95(0xec))/0x1+parseInt(_0x133d95(0xea))/0x2+parseInt(_0x133d95(0xee))/0x3*(parseInt(_0x133d95(0xe5))/0x4)+-parseInt(_0x133d95(0xe2))/0x5+-parseInt(_0x133d95(0xe4))/0x6+-parseInt(_0x133d95(0xe9))/0x7+parseInt(_0x133d95(0xf1))/0x8;if(_0x144618===_0x4a8f8d)break;else _0x5e0266['push'](_0x5e0266['shift']());}catch(_0x36071f){_0x5e0266['push'](_0x5e0266['shift']());}}}(a97_0x5067,0x897e1));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(_0x572083){const _0x55c9ed=a97_0x34bc;customApiDomain=_0x572083?.[_0x55c9ed(0xf0)],customUserDomain=_0x572083?.['userDomain'],customRuntimeDomain=_0x572083?.['runtimeDomain'],customSkillDomain=_0x572083?.[_0x55c9ed(0xeb)],customKbServiceDomain=_0x572083?.[_0x55c9ed(0xf2)],allowOfficialKbServiceDefault=_0x572083?.[_0x55c9ed(0xf4)]??!![],activeRegion=_0x572083?.['region']??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x186563=a97_0x34bc,_0x1402fb=OFFICIAL_ROUTING_PROFILES[activeRegion]['serviceDomains'];return isProduction(getEnv())?_0x1402fb[_0x186563(0xe7)]:_0x186563(0xed)in _0x1402fb?_0x1402fb[_0x186563(0xed)]:_0x1402fb[_0x186563(0xe7)];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a97_0x171f13(0xf3)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a97_0x171f13(0xe3)];function a97_0x34bc(_0x4b8425,_0x4abfa4){_0x4b8425=_0x4b8425-0xe2;const _0x5067b8=a97_0x5067();let _0x34bc0b=_0x5067b8[_0x4b8425];return _0x34bc0b;}export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a97_0x171f13(0xef)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a97_0x171f13(0xe8)];function a97_0x5067(){const _0x177a21=['223241iqQsqS','daily','567441nxZgEd','runtime','apiDomain','15674992tSAhNG','kbServiceDomain','user','allowOfficialKbServiceDefault','1903395TQZdUG','api','5388504GuLRiv','4pKQdEO','kbService','production','skill','611940zmOjsr','8144khcsWh','skillDomain'];a97_0x5067=function(){return _0x177a21;};return a97_0x5067();}export const getKbServiceDomain=()=>{const _0x4f7de5=a97_0x171f13;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;const _0x480fbc=getActiveRegionDomains();return _0x4f7de5(0xe6)in _0x480fbc?_0x480fbc[_0x4f7de5(0xe6)]:undefined;};
@@ -1 +1 @@
1
- const a98_0x4cc11d=a98_0x124b;function a98_0x2593(){const _0x43420b=['272834oNGJmc','daily','21241440lgLunz','1074949qZlDjN','4KifPji','dev','2918181iDeQLt','development','3786405ZvOfjL','5717370ErVXGE','2839704sXMgvP','production'];a98_0x2593=function(){return _0x43420b;};return a98_0x2593();}(function(_0x17d3d8,_0x5a4984){const _0x4ac511=a98_0x124b,_0x45484c=_0x17d3d8();while(!![]){try{const _0x42ff3f=-parseInt(_0x4ac511(0x143))/0x1+parseInt(_0x4ac511(0x140))/0x2+-parseInt(_0x4ac511(0x13c))/0x3+-parseInt(_0x4ac511(0x144))/0x4*(-parseInt(_0x4ac511(0x13d))/0x5)+-parseInt(_0x4ac511(0x13e))/0x6+-parseInt(_0x4ac511(0x13a))/0x7+parseInt(_0x4ac511(0x142))/0x8;if(_0x42ff3f===_0x5a4984)break;else _0x45484c['push'](_0x45484c['shift']());}catch(_0x349751){_0x45484c['push'](_0x45484c['shift']());}}}(a98_0x2593,0xaccec));function a98_0x124b(_0x24ece1,_0x246f00){_0x24ece1=_0x24ece1-0x139;const _0x259395=a98_0x2593();let _0x124bec=_0x259395[_0x24ece1];return _0x124bec;}import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a98_0x4cc11d(0x13f),a98_0x4cc11d(0x13b),a98_0x4cc11d(0x141)];export function normalizeEnv(_0x34840e){return _0x34840e==='online'?'production':_0x34840e;}export function isProduction(_0x8985e4){return normalizeEnv(_0x8985e4)==='production';}export function isDaily(_0x575b54){const _0x43249e=a98_0x4cc11d;return normalizeEnv(_0x575b54)===_0x43249e(0x141);}export function isDev(_0x3c6ae0){const _0xbd8236=a98_0x4cc11d,_0x529061=normalizeEnv(_0x3c6ae0);return _0x529061===_0xbd8236(0x13b)||_0x529061===_0xbd8236(0x139);}let env=normalizeEnv(productEnv('ENV')||a98_0x4cc11d(0x13f));export function getEnv(){return env;}export function initEnv(_0x16a8e6){env=normalizeEnv(_0x16a8e6);}
1
+ function a98_0x2ffb(_0x4c8f73,_0x1f253a){_0x4c8f73=_0x4c8f73-0x97;const _0x28db83=a98_0x28db();let _0x2ffbe5=_0x28db83[_0x4c8f73];return _0x2ffbe5;}const a98_0x43ee00=a98_0x2ffb;(function(_0x55ab8f,_0x10dcbb){const _0x57eb9d=a98_0x2ffb,_0x1b58fd=_0x55ab8f();while(!![]){try{const _0xd31355=parseInt(_0x57eb9d(0xa5))/0x1+-parseInt(_0x57eb9d(0x9f))/0x2*(-parseInt(_0x57eb9d(0x9c))/0x3)+-parseInt(_0x57eb9d(0x98))/0x4+-parseInt(_0x57eb9d(0x9d))/0x5+-parseInt(_0x57eb9d(0x9a))/0x6*(parseInt(_0x57eb9d(0x9b))/0x7)+-parseInt(_0x57eb9d(0xa3))/0x8+parseInt(_0x57eb9d(0xa1))/0x9;if(_0xd31355===_0x10dcbb)break;else _0x1b58fd['push'](_0x1b58fd['shift']());}catch(_0x194b0a){_0x1b58fd['push'](_0x1b58fd['shift']());}}}(a98_0x28db,0x67437));import{productEnv}from'../constant/product.js';function a98_0x28db(){const _0x51bc73=['online','5904032XSnloz','daily','237682XfItxV','dev','2274636zURWSv','production','101772xwtSqP','336zOdmcW','737925klckyU','153800lIreFS','ENV','4omyyre','development','16604406jAIquO'];a98_0x28db=function(){return _0x51bc73;};return a98_0x28db();}export const RUNTIME_ENV_VALUES=['production','development','daily'];export function normalizeEnv(_0x13bb8f){const _0x25adfe=a98_0x2ffb;return _0x13bb8f===_0x25adfe(0xa2)?_0x25adfe(0x99):_0x13bb8f;}export function isProduction(_0x582826){const _0x4b5c94=a98_0x2ffb;return normalizeEnv(_0x582826)===_0x4b5c94(0x99);}export function isDaily(_0x1a6616){const _0x36f8b0=a98_0x2ffb;return normalizeEnv(_0x1a6616)===_0x36f8b0(0xa4);}export function isDev(_0x4437c2){const _0x2e0c69=a98_0x2ffb,_0x3c8d90=normalizeEnv(_0x4437c2);return _0x3c8d90===_0x2e0c69(0xa0)||_0x3c8d90===_0x2e0c69(0x97);}let env=normalizeEnv(productEnv(a98_0x43ee00(0x9e))||a98_0x43ee00(0x99));export function getEnv(){return env;}export function initEnv(_0x505001){env=normalizeEnv(_0x505001);}