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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/README.md +44 -1
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/api-doc/index.js +1 -1
  4. package/lib/commands/app/cache.js +1 -1
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.js +1 -1
  10. package/lib/commands/app-config/get.js +1 -1
  11. package/lib/commands/app-config/index.js +1 -1
  12. package/lib/commands/approval/index.js +1 -1
  13. package/lib/commands/artifact/index.js +1 -1
  14. package/lib/commands/auth/device.js +1 -1
  15. package/lib/commands/auth/index.js +1 -1
  16. package/lib/commands/auth/prompt.js +1 -1
  17. package/lib/commands/bff/detail.js +1 -1
  18. package/lib/commands/bff/exec.js +1 -1
  19. package/lib/commands/bff/index.js +1 -1
  20. package/lib/commands/cli-skill/index.js +1 -1
  21. package/lib/commands/common/config-policy.js +1 -1
  22. package/lib/commands/common/constraints.js +1 -1
  23. package/lib/commands/common/flags.js +1 -1
  24. package/lib/commands/common/local-file.js +1 -1
  25. package/lib/commands/config/definitions.js +1 -1
  26. package/lib/commands/config/init.js +1 -1
  27. package/lib/commands/config/shared.js +1 -1
  28. package/lib/commands/data/import-excel.d.ts +2 -0
  29. package/lib/commands/data/import-excel.js +1 -0
  30. package/lib/commands/data/index.js +1 -1
  31. package/lib/commands/dataset/detail.js +1 -1
  32. package/lib/commands/dataset/index.js +1 -1
  33. package/lib/commands/dataset/list.js +1 -1
  34. package/lib/commands/dataset/sdk-doc.js +1 -1
  35. package/lib/commands/doctor.js +1 -1
  36. package/lib/commands/file/index.js +1 -1
  37. package/lib/commands/init.js +1 -1
  38. package/lib/commands/kb/index.js +1 -1
  39. package/lib/commands/logs/index.js +1 -1
  40. package/lib/commands/notification/config-list.js +1 -1
  41. package/lib/commands/notification/index.js +1 -1
  42. package/lib/commands/notification/shared.js +1 -1
  43. package/lib/commands/ocr/index.js +1 -1
  44. package/lib/commands/permit/dataset-get.js +1 -1
  45. package/lib/commands/permit/dataset-set.js +1 -1
  46. package/lib/commands/permit/index.js +1 -1
  47. package/lib/commands/permit/page-get.js +1 -1
  48. package/lib/commands/permit/page-set.js +1 -1
  49. package/lib/commands/permit/role-menus-set.js +1 -1
  50. package/lib/commands/permit/role-menus.js +1 -1
  51. package/lib/commands/permit/shared.js +1 -1
  52. package/lib/commands/personal-bff/index.js +1 -1
  53. package/lib/commands/registry.js +1 -1
  54. package/lib/commands/role/create.js +1 -1
  55. package/lib/commands/role/delete.js +1 -1
  56. package/lib/commands/role/detail.js +1 -1
  57. package/lib/commands/role/index.js +1 -1
  58. package/lib/commands/role/list.js +1 -1
  59. package/lib/commands/role/shared.js +1 -1
  60. package/lib/commands/role/update.js +1 -1
  61. package/lib/commands/role/user-add.js +1 -1
  62. package/lib/commands/role/user-remove.js +1 -1
  63. package/lib/commands/schedule/index.js +1 -1
  64. package/lib/commands/schema.js +1 -1
  65. package/lib/commands/service/dynamic.js +1 -1
  66. package/lib/commands/service/function-name-adapter.js +1 -1
  67. package/lib/commands/service/index.js +1 -1
  68. package/lib/commands/service/registry.js +1 -1
  69. package/lib/commands/skill/commands/create.js +1 -1
  70. package/lib/commands/skill/commands/diagram.js +1 -1
  71. package/lib/commands/skill/commands/install.js +1 -1
  72. package/lib/commands/skill/commands/list.js +1 -1
  73. package/lib/commands/skill/commands/push.js +1 -1
  74. package/lib/commands/skill/commands/validate.js +1 -1
  75. package/lib/commands/skill/diagram.js +1 -1
  76. package/lib/commands/skill/flags.js +1 -1
  77. package/lib/commands/skill/index.js +1 -1
  78. package/lib/commands/skill/manifest-helpers.js +1 -1
  79. package/lib/commands/skill/push-execute.js +1 -1
  80. package/lib/commands/skill/push-flow-helpers.js +1 -1
  81. package/lib/commands/skill/push-retarget.js +1 -1
  82. package/lib/commands/skill/scopes.js +1 -1
  83. package/lib/commands/skill/summary.js +1 -1
  84. package/lib/commands/skill/templates.js +1 -1
  85. package/lib/commands/skill/validate.js +1 -1
  86. package/lib/commands/sql/detail.js +1 -1
  87. package/lib/commands/sql/exec.js +1 -1
  88. package/lib/commands/sql/index.js +1 -1
  89. package/lib/commands/update.js +1 -1
  90. package/lib/commands/user-account/bind.js +1 -1
  91. package/lib/commands/user-account/index.js +1 -1
  92. package/lib/commands/workspace/index.js +1 -1
  93. package/lib/config/domain-config.js +1 -1
  94. package/lib/config/schema.js +1 -1
  95. package/lib/constant/app.js +1 -1
  96. package/lib/constant/auth-mode.js +1 -1
  97. package/lib/constant/cli.js +1 -1
  98. package/lib/constant/defaults.js +1 -1
  99. package/lib/constant/distribution.js +1 -1
  100. package/lib/constant/domain.js +1 -1
  101. package/lib/constant/env.js +1 -1
  102. package/lib/constant/output.js +1 -1
  103. package/lib/constant/product.js +1 -1
  104. package/lib/constant/region.js +1 -1
  105. package/lib/constant/risk.js +1 -1
  106. package/lib/constant/url.js +1 -1
  107. package/lib/context.js +1 -1
  108. package/lib/core/api-client.d.ts +19 -5
  109. package/lib/core/api-client.js +1 -1
  110. package/lib/core/db-resolver.js +1 -1
  111. package/lib/core/kb-search-client.js +1 -1
  112. package/lib/core/sdk-client.js +1 -1
  113. package/lib/errors.d.ts +1 -0
  114. package/lib/errors.js +1 -1
  115. package/lib/framework/access-error.d.ts +5 -0
  116. package/lib/framework/access-error.js +1 -0
  117. package/lib/framework/build-all-flags.js +1 -1
  118. package/lib/framework/dryrun.js +1 -1
  119. package/lib/framework/flags.js +1 -1
  120. package/lib/framework/help.js +1 -1
  121. package/lib/framework/index.js +1 -1
  122. package/lib/framework/output.js +1 -1
  123. package/lib/framework/preparse.js +1 -1
  124. package/lib/framework/rate-limit.js +1 -1
  125. package/lib/framework/raw-flags.js +1 -1
  126. package/lib/framework/response.js +1 -1
  127. package/lib/framework/runner-confirmation.js +1 -1
  128. package/lib/framework/runner-error.d.ts +2 -17
  129. package/lib/framework/runner-error.js +1 -1
  130. package/lib/framework/runner.js +1 -1
  131. package/lib/framework/schema-export.js +1 -1
  132. package/lib/framework/service-order.js +1 -1
  133. package/lib/framework/types.js +1 -1
  134. package/lib/generated/build-info.d.ts +4 -4
  135. package/lib/generated/build-info.js +1 -1
  136. package/lib/generated/official-routing.js +1 -1
  137. package/lib/generated/routing-contract.js +1 -1
  138. package/lib/help.js +1 -1
  139. package/lib/postinstall.js +1 -1
  140. package/lib/runtime/confirmation.js +1 -1
  141. package/lib/runtime/event.js +1 -1
  142. package/lib/runtime/index.js +1 -1
  143. package/lib/runtime/queue.js +1 -1
  144. package/lib/runtime/resolve.js +1 -1
  145. package/lib/services/dataset-import/auto-id-runner.d.ts +25 -0
  146. package/lib/services/dataset-import/auto-id-runner.js +1 -0
  147. package/lib/services/dataset-import/excel-reader.d.ts +3 -0
  148. package/lib/services/dataset-import/excel-reader.js +1 -0
  149. package/lib/services/dataset-import/metadata.d.ts +2 -0
  150. package/lib/services/dataset-import/metadata.js +1 -0
  151. package/lib/services/dataset-import/preview.d.ts +4 -0
  152. package/lib/services/dataset-import/preview.js +1 -0
  153. package/lib/services/dataset-import/runner.d.ts +63 -0
  154. package/lib/services/dataset-import/runner.js +1 -0
  155. package/lib/services/dataset-import/types.d.ts +33 -0
  156. package/lib/services/dataset-import/types.js +1 -0
  157. package/lib/skills/builtin-skill.js +1 -1
  158. package/lib/skills/npx-skills-add.js +1 -1
  159. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  160. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  161. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  162. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  163. package/lib/skills/runtime-skill-sync/links.js +1 -1
  164. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  165. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  166. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  167. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  168. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  169. package/lib/skills/runtime-skill-sync/push.js +1 -1
  170. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  171. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  172. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  173. package/lib/skills/runtime-skill-sync.js +1 -1
  174. package/lib/skills/skill-presence.js +1 -1
  175. package/lib/utils/access-key-redaction.js +1 -1
  176. package/lib/utils/apply-jq-filter.js +1 -1
  177. package/lib/utils/cli-version-check.js +1 -1
  178. package/lib/utils/cli-version-policy.js +1 -1
  179. package/lib/utils/logger.js +1 -1
  180. package/lib/utils/lossless-json.js +1 -1
  181. package/lib/utils/params.js +1 -1
  182. package/lib/utils/positive-safe-integer.js +1 -1
  183. package/lib/utils/redaction.js +1 -1
  184. package/lib/utils/update-notice.js +1 -1
  185. package/lib/utils/version.js +1 -1
  186. package/lib/utils/write-cli-side-channel.js +1 -1
  187. package/package.json +8 -3
  188. package/skills/lovrabet/SKILL.md +10 -5
  189. package/skills/lovrabet/guides/dataset-and-data-workflow.md +4 -2
  190. package/skills/lovrabet/guides/role-and-permission-workflow.md +14 -0
  191. package/skills/lovrabet/guides/sql-and-bff-workflow.md +1 -1
  192. package/skills/lovrabet/guides/troubleshooting.md +7 -1
  193. package/skills/lovrabet/references/instant-api-workflow.md +6 -2
  194. package/skills/lovrabet/references/lovrabet-approval-workflow.md +16 -2
  195. package/skills/lovrabet/references/lovrabet-bff-workflow.md +9 -0
  196. package/skills/lovrabet/references/lovrabet-db-table-excel-import.md +113 -0
  197. package/skills/lovrabet/references/lovrabet-excel-import.md +31 -0
  198. package/skills/lovrabet/references/lovrabet-kb-workflow.md +1 -1
  199. package/skills/lovrabet/references/lovrabet-personal-bff-workflow.md +2 -0
  200. package/skills/lovrabet.manifest.json +5 -3
@@ -1 +1 @@
1
- const a81_0x9239d0=a81_0x5f3c;(function(_0x167f1c,_0x5166c9){const _0x3ca14b=a81_0x5f3c,_0x19255c=_0x167f1c();while(!![]){try{const _0x3b8ddc=-parseInt(_0x3ca14b(0x18c))/0x1*(parseInt(_0x3ca14b(0x180))/0x2)+parseInt(_0x3ca14b(0x16b))/0x3*(parseInt(_0x3ca14b(0x185))/0x4)+-parseInt(_0x3ca14b(0x190))/0x5+parseInt(_0x3ca14b(0x1a0))/0x6*(parseInt(_0x3ca14b(0x15d))/0x7)+-parseInt(_0x3ca14b(0x198))/0x8+-parseInt(_0x3ca14b(0x1a5))/0x9+parseInt(_0x3ca14b(0x191))/0xa;if(_0x3b8ddc===_0x5166c9)break;else _0x19255c['push'](_0x19255c['shift']());}catch(_0x172390){_0x19255c['push'](_0x19255c['shift']());}}}(a81_0x5a93,0xcfb3c));function a81_0x5a93(){const _0x23f51c=['length','hasFrontmatter','match','1kIeAkI','level','displayName','false','6511970ZKOEiA','25012590GKpBMp','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','trim','toLowerCase','errors','Set\x20metadata.type\x20to\x20write\x20or\x20read.','Add\x20frontmatter\x20with\x20name\x20and\x20description.','921688WRUvgE','description','name','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','isSymbolicLink','service','object','78LDBIKg','suggestion','description-required','flatMap','section','6824655JkSEGL','utf8','map','validation','example','app','slice','schema','frontmatter-required','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','rabetbase-cli-reference','read','isArray','bff','Missing\x20SKILL.md.','error','SKILL.md\x20must\x20start\x20with\x20frontmatter.','warning','test','number','344323lvHydK','structure-complete','path','isFile','true','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','push','display-name-recommended','Frontmatter\x20example\x20is\x20missing.','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','Skill\x20directory\x20not\x20found:\x20','join','Frontmatter\x20name\x20is\x20missing.','project','3ysvQKT','raw','toUpperCase','isDirectory','Describe\x20when\x20the\x20model\x20should\x20trigger\x20this\x20Skill,\x20plus\x20out-of-scope\x20boundaries\x20and\x20keywords.','auth','type','data','file','content','internal','ruleId','internal-skill','metadata','search','SKILL.md\x20is\x20not\x20a\x20file.','sql','line','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','has','dataset','2923702YKzJxu','example-recommended','write','artifact','boolean','5391132yBrIFK','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','filter','metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.'];a81_0x5a93=function(){return _0x23f51c;};return a81_0x5a93();}import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a81_0x59a043}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE='SKILL.md',SUPPORTED_SKILL_TYPES=new Set([a81_0x9239d0(0x182),a81_0x9239d0(0x1b0)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x462c67,_0x5f5ae5={}){const _0x6a4fa4=a81_0x9239d0,_0x25f51e=resolveSkillDirectoryRoot(_0x462c67),_0x1de1aa=[],_0x233734=loadRequiredSkillFile(_0x25f51e,_0x1de1aa),_0xadc64=_0x233734?parseFrontmatter(_0x233734[_0x6a4fa4(0x174)]):{'hasFrontmatter':![]};_0x233734&&validateFrontmatter(_0x233734[_0x6a4fa4(0x15f)],_0xadc64,_0x1de1aa);validateRuntimeCliReferences(_0x25f51e,_0x1de1aa);const _0x8ff6b2=_0x1de1aa[_0x6a4fa4(0x187)](_0x744177=>_0x744177[_0x6a4fa4(0x18d)]===_0x6a4fa4(0x158)),_0xa9cf2f=_0x1de1aa['filter'](_0x293488=>_0x293488['level']==='warning');return{'ok':_0x8ff6b2[_0x6a4fa4(0x189)]===0x0,'dir':_0x25f51e,'type':_0xadc64[_0x6a4fa4(0x171)],'errors':_0x8ff6b2,'warnings':_0xa9cf2f};}function resolveSkillDirectoryRoot(_0x5c4ab0){const _0x58ab89=a81_0x9239d0,_0x917c1b=resolve(_0x5c4ab0);if(!existsSync(_0x917c1b))throw CliErrors[_0x58ab89(0x1a8)](_0x58ab89(0x167)+_0x5c4ab0);const _0x4bdc24=lstatSync(_0x917c1b);if(_0x4bdc24[_0x58ab89(0x16e)]())return _0x917c1b;if(_0x4bdc24[_0x58ab89(0x19d)]()){const _0x4126ca=realpathSync(_0x917c1b);if(lstatSync(_0x4126ca)[_0x58ab89(0x16e)]())return _0x4126ca;}throw CliErrors[_0x58ab89(0x1a8)](_0x58ab89(0x167)+_0x5c4ab0);}export function throwIfSkillValidationFailed(_0x5ceb8c,_0x39c370=![]){const _0x32e9a9=a81_0x9239d0;if(_0x5ceb8c['ok'])return;const _0x3bf2ce=_0x5ceb8c[_0x32e9a9(0x195)]['map'](_0x5cece5=>{const _0x497929=_0x32e9a9,_0x463513=_0x5cece5[_0x497929(0x1a4)]?'#'+_0x5cece5[_0x497929(0x1a4)]:'';return _0x5cece5[_0x497929(0x18d)][_0x497929(0x16d)]()+'\x20'+_0x5cece5[_0x497929(0x176)]+'\x20'+_0x5cece5[_0x497929(0x173)]+_0x463513+':\x20'+_0x5cece5['message']+'\x20Fix:\x20'+_0x5cece5[_0x497929(0x1a1)];});throw CliErrors['validation']('Skill\x20validation\x20failed:\x0a'+_0x3bf2ce[_0x32e9a9(0x168)]('\x0a'),_0x32e9a9(0x19b));}function a81_0x5f3c(_0x52a697,_0x481ce6){_0x52a697=_0x52a697-0x156;const _0x5a9396=a81_0x5a93();let _0x5f3c62=_0x5a9396[_0x52a697];return _0x5f3c62;}function loadRequiredSkillFile(_0xea1ab6,_0x44f765){const _0x2a0d19=a81_0x9239d0,_0x14b559=resolve(_0xea1ab6,SKILL_FILE);if(!existsSync(_0x14b559))return _0x44f765[_0x2a0d19(0x163)](issue(_0x2a0d19(0x158),_0x2a0d19(0x15e),SKILL_FILE,_0x2a0d19(0x157),_0x2a0d19(0x162))),undefined;const _0xba2fce=lstatSync(_0x14b559);if(_0xba2fce[_0x2a0d19(0x19d)]())return _0x44f765[_0x2a0d19(0x163)](issue('error',_0x2a0d19(0x15e),SKILL_FILE,'SKILL.md\x20must\x20be\x20a\x20regular\x20file.',_0x2a0d19(0x19c))),undefined;if(!_0xba2fce[_0x2a0d19(0x160)]())return _0x44f765[_0x2a0d19(0x163)](issue(_0x2a0d19(0x158),_0x2a0d19(0x15e),SKILL_FILE,_0x2a0d19(0x17a),'Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x14b559,_0x2a0d19(0x1a6))};}function validateFrontmatter(_0x36ee6a,_0x59069a,_0x20aa35){const _0xbb68cd=a81_0x9239d0;if(!_0x59069a[_0xbb68cd(0x18a)]){_0x20aa35[_0xbb68cd(0x163)](issue('error',_0xbb68cd(0x1ad),_0x36ee6a,_0xbb68cd(0x159),_0xbb68cd(0x197)));return;}!_0x59069a['name']?.['trim']()&&_0x20aa35[_0xbb68cd(0x163)](issue(_0xbb68cd(0x158),_0xbb68cd(0x1ad),_0x36ee6a,_0xbb68cd(0x169),_0xbb68cd(0x17d))),!_0x59069a[_0xbb68cd(0x18e)]?.[_0xbb68cd(0x193)]()&&_0x20aa35[_0xbb68cd(0x163)](issue(_0xbb68cd(0x15a),_0xbb68cd(0x164),_0x36ee6a,'Frontmatter\x20displayName\x20is\x20missing.',_0xbb68cd(0x192))),!_0x59069a[_0xbb68cd(0x1a9)]?.[_0xbb68cd(0x193)]()&&_0x20aa35[_0xbb68cd(0x163)](issue(_0xbb68cd(0x15a),_0xbb68cd(0x181),_0x36ee6a,_0xbb68cd(0x165),'Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.')),!_0x59069a[_0xbb68cd(0x199)]?.[_0xbb68cd(0x193)]()&&_0x20aa35[_0xbb68cd(0x163)](issue(_0xbb68cd(0x158),_0xbb68cd(0x1a2),_0x36ee6a,'Frontmatter\x20description\x20is\x20empty.',_0xbb68cd(0x16f))),_0x59069a['internal']===!![]&&_0x20aa35['push'](issue(_0xbb68cd(0x158),_0xbb68cd(0x177),_0x36ee6a,_0xbb68cd(0x166),'Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.')),_0x59069a['type']?.[_0xbb68cd(0x193)]()&&!SUPPORTED_SKILL_TYPES[_0xbb68cd(0x17e)](_0x59069a[_0xbb68cd(0x171)])&&_0x20aa35[_0xbb68cd(0x163)](issue(_0xbb68cd(0x158),_0xbb68cd(0x1ad),_0x36ee6a,_0xbb68cd(0x188),_0xbb68cd(0x196)));}function validateRuntimeCliReferences(_0x1ca731,_0x3ec369){const _0x364483=a81_0x9239d0;for(const _0x4d57d9 of findRabetbaseCliInvocations(_0x1ca731)){_0x3ec369[_0x364483(0x163)](issue(_0x364483(0x15a),_0x364483(0x1af),_0x4d57d9[_0x364483(0x173)],_0x364483(0x1ae),_0x364483(0x186),'L'+_0x4d57d9[_0x364483(0x17c)]));}}function findRabetbaseCliInvocations(_0x49b534){const _0x42d5e3=a81_0x9239d0;return scanSkillDirectory(_0x49b534)[_0x42d5e3(0x187)](_0x49b3f0=>TEXT_SKILL_FILE_PATTERN['test'](_0x49b3f0[_0x42d5e3(0x15f)]))[_0x42d5e3(0x1a3)](_0x12696f=>{const _0x341959=_0x42d5e3,_0x394ce1=fileText(_0x12696f);return _0x394ce1['split'](/\r?\n/)[_0x341959(0x1a7)]((_0x2d1dcf,_0x20d3ab)=>({'file':_0x12696f[_0x341959(0x15f)],'line':_0x20d3ab+0x1,'text':_0x2d1dcf}))[_0x341959(0x187)](({text:_0x36de17})=>isRabetbaseCliInvocation(_0x36de17))[_0x341959(0x1a7)](({file:_0x1e8110,line:_0x159bc1})=>({'file':_0x1e8110,'line':_0x159bc1}));});}const RABETBASE_SUBCOMMANDS=[a81_0x9239d0(0x17f),a81_0x9239d0(0x17b),a81_0x9239d0(0x156),'page',a81_0x9239d0(0x16a),a81_0x9239d0(0x1aa),a81_0x9239d0(0x1ac),a81_0x9239d0(0x19e),a81_0x9239d0(0x183),'kb','config','workspace',a81_0x9239d0(0x172),a81_0x9239d0(0x170),'logs','registry'],RABETBASE_INVOCATION=new RegExp(String['raw']`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a81_0x9239d0(0x168)]('|')})\b`+String[a81_0x9239d0(0x16c)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x97895d){const _0x5dd073=a81_0x9239d0,_0x47bb06=_0x97895d[_0x5dd073(0x179)](/\brabetbase\b/i);if(_0x47bb06<0x0)return![];const _0x5aa038=_0x97895d[_0x5dd073(0x1ab)](_0x47bb06)['split'](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x5dd073(0x15b)](_0x5aa038);}function parseFrontmatter(_0x30df36){const _0x1c0f39=a81_0x9239d0,_0x2af130=_0x30df36[_0x1c0f39(0x18b)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x2af130)return{'hasFrontmatter':![]};const _0x2e336f=_0x2af130[0x1]??'',_0x3aff9c={'hasFrontmatter':!![]};let _0x8d22bc;try{_0x8d22bc=a81_0x59a043(_0x2e336f);}catch{return _0x3aff9c;}const _0x525006=asRecord(_0x8d22bc);if(!_0x525006)return _0x3aff9c;_0x3aff9c['name']=scalarToString(_0x525006[_0x1c0f39(0x19a)]),_0x3aff9c['displayName']=scalarToString(_0x525006[_0x1c0f39(0x18e)]),_0x3aff9c['description']=scalarToString(_0x525006[_0x1c0f39(0x199)]),_0x3aff9c['example']=scalarToString(_0x525006[_0x1c0f39(0x1a9)]);const _0x2c7b01=asRecord(_0x525006[_0x1c0f39(0x178)]);return _0x2c7b01&&(_0x3aff9c[_0x1c0f39(0x171)]=scalarToString(_0x2c7b01['type']),_0x3aff9c[_0x1c0f39(0x175)]=scalarToBoolean(_0x2c7b01[_0x1c0f39(0x175)])),_0x3aff9c;}function asRecord(_0x1c1a99){const _0x967bd=a81_0x9239d0;if(_0x1c1a99&&typeof _0x1c1a99===_0x967bd(0x19f)&&!Array[_0x967bd(0x1b1)](_0x1c1a99))return _0x1c1a99;return undefined;}function scalarToString(_0x211b1a){const _0x543838=a81_0x9239d0;if(typeof _0x211b1a==='string')return _0x211b1a[_0x543838(0x193)]();if(typeof _0x211b1a===_0x543838(0x15c)||typeof _0x211b1a===_0x543838(0x184))return String(_0x211b1a);return undefined;}function scalarToBoolean(_0x4f17c9){const _0x2f181e=a81_0x9239d0;if(typeof _0x4f17c9===_0x2f181e(0x184))return _0x4f17c9;if(typeof _0x4f17c9==='string')return cleanBoolean(_0x4f17c9);return undefined;}function cleanBoolean(_0x348dc2){const _0x5c5a8a=a81_0x9239d0,_0x2b78ac=_0x348dc2[_0x5c5a8a(0x193)]()[_0x5c5a8a(0x194)]();if(_0x2b78ac===_0x5c5a8a(0x161))return!![];if(_0x2b78ac===_0x5c5a8a(0x18f))return![];return undefined;}function issue(_0x39e79f,_0x3b149e,_0x410374,_0x11c441,_0x52104d,_0x5bad01){return{'level':_0x39e79f,'ruleId':_0x3b149e,'file':_0x410374,'section':_0x5bad01,'message':_0x11c441,'suggestion':_0x52104d};}
1
+ const a82_0x570da4=a82_0x5e43;(function(_0x1c5c3d,_0x2fbded){const _0x55845b=a82_0x5e43,_0x5c19a7=_0x1c5c3d();while(!![]){try{const _0x3ea31b=-parseInt(_0x55845b(0x19a))/0x1*(-parseInt(_0x55845b(0x1ca))/0x2)+-parseInt(_0x55845b(0x1ce))/0x3*(parseInt(_0x55845b(0x1cc))/0x4)+parseInt(_0x55845b(0x1a6))/0x5+-parseInt(_0x55845b(0x1c8))/0x6+-parseInt(_0x55845b(0x19e))/0x7+parseInt(_0x55845b(0x1f0))/0x8*(parseInt(_0x55845b(0x1bf))/0x9)+-parseInt(_0x55845b(0x1d4))/0xa*(parseInt(_0x55845b(0x1aa))/0xb);if(_0x3ea31b===_0x2fbded)break;else _0x5c19a7['push'](_0x5c19a7['shift']());}catch(_0x3189f8){_0x5c19a7['push'](_0x5c19a7['shift']());}}}(a82_0x4f04,0x25b08));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a82_0x1a0381}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a82_0x570da4(0x1ab),SUPPORTED_SKILL_TYPES=new Set([a82_0x570da4(0x1a7),a82_0x570da4(0x1d5)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x5783f0,_0x4969f4={}){const _0x4173f5=a82_0x570da4,_0x3aae3d=resolveSkillDirectoryRoot(_0x5783f0),_0x5ac310=[],_0x5cce7f=loadRequiredSkillFile(_0x3aae3d,_0x5ac310),_0x406954=_0x5cce7f?parseFrontmatter(_0x5cce7f[_0x4173f5(0x1ee)]):{'hasFrontmatter':![]};_0x5cce7f&&validateFrontmatter(_0x5cce7f[_0x4173f5(0x1e5)],_0x406954,_0x5ac310);validateRuntimeCliReferences(_0x3aae3d,_0x5ac310);const _0x44da2f=_0x5ac310[_0x4173f5(0x1cb)](_0x301d22=>_0x301d22[_0x4173f5(0x1c3)]===_0x4173f5(0x1a5)),_0x3aec32=_0x5ac310['filter'](_0x38d512=>_0x38d512['level']==='warning');return{'ok':_0x44da2f[_0x4173f5(0x1cf)]===0x0,'dir':_0x3aae3d,'type':_0x406954['type'],'errors':_0x44da2f,'warnings':_0x3aec32};}function resolveSkillDirectoryRoot(_0x3620f9){const _0x208057=a82_0x570da4,_0x47d55a=resolve(_0x3620f9);if(!existsSync(_0x47d55a))throw CliErrors['validation']('Skill\x20directory\x20not\x20found:\x20'+_0x3620f9);const _0xbf6abb=lstatSync(_0x47d55a);if(_0xbf6abb[_0x208057(0x1c9)]())return _0x47d55a;if(_0xbf6abb['isSymbolicLink']()){const _0x5425e2=realpathSync(_0x47d55a);if(lstatSync(_0x5425e2)['isDirectory']())return _0x5425e2;}throw CliErrors[_0x208057(0x1c7)]('Skill\x20directory\x20not\x20found:\x20'+_0x3620f9);}export function throwIfSkillValidationFailed(_0x58ee33,_0x31314d=![]){const _0x38bb01=a82_0x570da4;if(_0x58ee33['ok'])return;const _0x8e9b4d=_0x58ee33[_0x38bb01(0x1dc)]['map'](_0x30895b=>{const _0x5c97fd=_0x38bb01,_0x398485=_0x30895b['section']?'#'+_0x30895b['section']:'';return _0x30895b[_0x5c97fd(0x1c3)][_0x5c97fd(0x1ac)]()+'\x20'+_0x30895b[_0x5c97fd(0x1ad)]+'\x20'+_0x30895b[_0x5c97fd(0x19b)]+_0x398485+':\x20'+_0x30895b[_0x5c97fd(0x1bd)]+_0x5c97fd(0x19c)+_0x30895b[_0x5c97fd(0x1ba)];});throw CliErrors['validation'](_0x38bb01(0x1e8)+_0x8e9b4d[_0x38bb01(0x1c2)]('\x0a'),'Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.');}function loadRequiredSkillFile(_0x32e8ac,_0x2890e5){const _0x2320c9=a82_0x570da4,_0x2debe0=resolve(_0x32e8ac,SKILL_FILE);if(!existsSync(_0x2debe0))return _0x2890e5[_0x2320c9(0x1e0)](issue(_0x2320c9(0x1a5),_0x2320c9(0x1c5),SKILL_FILE,'Missing\x20SKILL.md.',_0x2320c9(0x1e9))),undefined;const _0x26ead9=lstatSync(_0x2debe0);if(_0x26ead9['isSymbolicLink']())return _0x2890e5[_0x2320c9(0x1e0)](issue(_0x2320c9(0x1a5),'structure-complete',SKILL_FILE,_0x2320c9(0x1af),_0x2320c9(0x1eb))),undefined;if(!_0x26ead9['isFile']())return _0x2890e5['push'](issue(_0x2320c9(0x1a5),'structure-complete',SKILL_FILE,_0x2320c9(0x1be),_0x2320c9(0x1c1))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x2debe0,'utf8')};}function validateFrontmatter(_0x4642dc,_0x61d05d,_0x4c2dc4){const _0x1716d1=a82_0x570da4;if(!_0x61d05d[_0x1716d1(0x1a3)]){_0x4c2dc4[_0x1716d1(0x1e0)](issue(_0x1716d1(0x1a5),_0x1716d1(0x1ed),_0x4642dc,_0x1716d1(0x1a1),_0x1716d1(0x1e3)));return;}!_0x61d05d['name']?.['trim']()&&_0x4c2dc4[_0x1716d1(0x1e0)](issue(_0x1716d1(0x1a5),_0x1716d1(0x1ed),_0x4642dc,'Frontmatter\x20name\x20is\x20missing.',_0x1716d1(0x1a9))),!_0x61d05d['displayName']?.['trim']()&&_0x4c2dc4['push'](issue(_0x1716d1(0x1e1),_0x1716d1(0x19f),_0x4642dc,_0x1716d1(0x1ae),_0x1716d1(0x1b5))),!_0x61d05d['example']?.[_0x1716d1(0x1dd)]()&&_0x4c2dc4[_0x1716d1(0x1e0)](issue(_0x1716d1(0x1e1),_0x1716d1(0x1e2),_0x4642dc,'Frontmatter\x20example\x20is\x20missing.','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.')),!_0x61d05d[_0x1716d1(0x1b8)]?.[_0x1716d1(0x1dd)]()&&_0x4c2dc4[_0x1716d1(0x1e0)](issue('error',_0x1716d1(0x1db),_0x4642dc,_0x1716d1(0x1e7),_0x1716d1(0x1e4))),_0x61d05d['internal']===!![]&&_0x4c2dc4[_0x1716d1(0x1e0)](issue(_0x1716d1(0x1a5),_0x1716d1(0x1d0),_0x4642dc,'metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.',_0x1716d1(0x1a4))),_0x61d05d[_0x1716d1(0x1a8)]?.[_0x1716d1(0x1dd)]()&&!SUPPORTED_SKILL_TYPES['has'](_0x61d05d[_0x1716d1(0x1a8)])&&_0x4c2dc4['push'](issue(_0x1716d1(0x1a5),_0x1716d1(0x1ed),_0x4642dc,_0x1716d1(0x1b4),_0x1716d1(0x1de)));}function validateRuntimeCliReferences(_0x3aabac,_0x20a33e){const _0x5af340=a82_0x570da4;for(const _0x581e95 of findRabetbaseCliInvocations(_0x3aabac)){_0x20a33e[_0x5af340(0x1e0)](issue(_0x5af340(0x1e1),'rabetbase-cli-reference',_0x581e95[_0x5af340(0x19b)],'This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.',_0x5af340(0x1b3),'L'+_0x581e95[_0x5af340(0x1d8)]));}}function findRabetbaseCliInvocations(_0x16e864){const _0x5a6455=a82_0x570da4;return scanSkillDirectory(_0x16e864)[_0x5a6455(0x1cb)](_0x26cc01=>TEXT_SKILL_FILE_PATTERN[_0x5a6455(0x1ec)](_0x26cc01[_0x5a6455(0x1e5)]))['flatMap'](_0x8d22c5=>{const _0x811bee=_0x5a6455,_0x3c46c5=fileText(_0x8d22c5);return _0x3c46c5[_0x811bee(0x19d)](/\r?\n/)[_0x811bee(0x1bb)]((_0xe8b4e9,_0x2b9cce)=>({'file':_0x8d22c5[_0x811bee(0x1e5)],'line':_0x2b9cce+0x1,'text':_0xe8b4e9}))[_0x811bee(0x1cb)](({text:_0x544b05})=>isRabetbaseCliInvocation(_0x544b05))[_0x811bee(0x1bb)](({file:_0x362ccc,line:_0x3ed2e4})=>({'file':_0x362ccc,'line':_0x3ed2e4}));});}const RABETBASE_SUBCOMMANDS=[a82_0x570da4(0x1b0),a82_0x570da4(0x1cd),a82_0x570da4(0x1e6),a82_0x570da4(0x1c4),a82_0x570da4(0x1ef),a82_0x570da4(0x1c0),a82_0x570da4(0x1d3),a82_0x570da4(0x1b2),a82_0x570da4(0x1d2),'kb','config','workspace',a82_0x570da4(0x1d7),a82_0x570da4(0x1c6),a82_0x570da4(0x1d6),a82_0x570da4(0x1d1)],RABETBASE_INVOCATION=new RegExp(String['raw']`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a82_0x570da4(0x1c2)]('|')})\b`+String[a82_0x570da4(0x1bc)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x2c25fd){const _0x4ca5c1=a82_0x570da4,_0x5e3651=_0x2c25fd[_0x4ca5c1(0x1d9)](/\brabetbase\b/i);if(_0x5e3651<0x0)return![];const _0x2a6e19=_0x2c25fd['slice'](_0x5e3651)[_0x4ca5c1(0x19d)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x4ca5c1(0x1ec)](_0x2a6e19);}function parseFrontmatter(_0x59c342){const _0x6c5708=a82_0x570da4,_0x447867=_0x59c342['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x447867)return{'hasFrontmatter':![]};const _0x5736c9=_0x447867[0x1]??'',_0x20b31d={'hasFrontmatter':!![]};let _0x68ec83;try{_0x68ec83=a82_0x1a0381(_0x5736c9);}catch{return _0x20b31d;}const _0xe2211b=asRecord(_0x68ec83);if(!_0xe2211b)return _0x20b31d;_0x20b31d[_0x6c5708(0x1b9)]=scalarToString(_0xe2211b['name']),_0x20b31d[_0x6c5708(0x199)]=scalarToString(_0xe2211b[_0x6c5708(0x199)]),_0x20b31d[_0x6c5708(0x1b8)]=scalarToString(_0xe2211b['description']),_0x20b31d['example']=scalarToString(_0xe2211b[_0x6c5708(0x1b1)]);const _0x1067e3=asRecord(_0xe2211b['metadata']);return _0x1067e3&&(_0x20b31d[_0x6c5708(0x1a8)]=scalarToString(_0x1067e3[_0x6c5708(0x1a8)]),_0x20b31d['internal']=scalarToBoolean(_0x1067e3['internal'])),_0x20b31d;}function asRecord(_0x4a8aa1){const _0x7d0f5a=a82_0x570da4;if(_0x4a8aa1&&typeof _0x4a8aa1===_0x7d0f5a(0x1ea)&&!Array[_0x7d0f5a(0x1da)](_0x4a8aa1))return _0x4a8aa1;return undefined;}function a82_0x4f04(){const _0x3bdd8e=['frontmatter-required','content','project','35384YHSOEC','displayName','1FbhirQ','file','\x20Fix:\x20','split','832769qjEhlG','display-name-recommended','false','SKILL.md\x20must\x20start\x20with\x20frontmatter.','boolean','hasFrontmatter','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','error','1244585OZzdFo','write','type','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','1469567OtNVqs','SKILL.md','toUpperCase','ruleId','Frontmatter\x20displayName\x20is\x20missing.','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','dataset','example','service','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','toLowerCase','true','description','name','suggestion','map','raw','message','SKILL.md\x20is\x20not\x20a\x20file.','549yWgehn','app','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','join','level','page','structure-complete','auth','validation','57222zbLKtX','isDirectory','514894liAppm','filter','904372axNbBy','sql','3UEuonA','length','internal-skill','registry','artifact','schema','20IlXWSM','read','logs','data','line','search','isArray','description-required','errors','trim','Set\x20metadata.type\x20to\x20write\x20or\x20read.','string','push','warning','example-recommended','Add\x20frontmatter\x20with\x20name\x20and\x20description.','Describe\x20when\x20the\x20model\x20should\x20trigger\x20this\x20Skill,\x20plus\x20out-of-scope\x20boundaries\x20and\x20keywords.','path','bff','Frontmatter\x20description\x20is\x20empty.','Skill\x20validation\x20failed:\x0a','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','object','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','test'];a82_0x4f04=function(){return _0x3bdd8e;};return a82_0x4f04();}function scalarToString(_0x50b793){const _0x487a8=a82_0x570da4;if(typeof _0x50b793===_0x487a8(0x1df))return _0x50b793[_0x487a8(0x1dd)]();if(typeof _0x50b793==='number'||typeof _0x50b793==='boolean')return String(_0x50b793);return undefined;}function scalarToBoolean(_0xd15cf5){const _0x3f2480=a82_0x570da4;if(typeof _0xd15cf5===_0x3f2480(0x1a2))return _0xd15cf5;if(typeof _0xd15cf5===_0x3f2480(0x1df))return cleanBoolean(_0xd15cf5);return undefined;}function cleanBoolean(_0x79931c){const _0x10783a=a82_0x570da4,_0x316d64=_0x79931c[_0x10783a(0x1dd)]()[_0x10783a(0x1b6)]();if(_0x316d64===_0x10783a(0x1b7))return!![];if(_0x316d64===_0x10783a(0x1a0))return![];return undefined;}function a82_0x5e43(_0xe7459a,_0x3e3a1b){_0xe7459a=_0xe7459a-0x199;const _0x4f04f3=a82_0x4f04();let _0x5e433e=_0x4f04f3[_0xe7459a];return _0x5e433e;}function issue(_0x5c081f,_0x58f497,_0x2bdc78,_0x4d31be,_0x52da92,_0x2872fd){return{'level':_0x5c081f,'ruleId':_0x58f497,'file':_0x2bdc78,'section':_0x2872fd,'message':_0x4d31be,'suggestion':_0x52da92};}
@@ -1 +1 @@
1
- function a82_0x373e(_0xf98414,_0x20a22e){_0xf98414=_0xf98414-0x1a5;const _0x5edb2f=a82_0x5edb();let _0x373e66=_0x5edb2f[_0xf98414];return _0x373e66;}const a82_0x1f4c09=a82_0x373e;(function(_0x57b14d,_0x2e464c){const _0x46da2f=a82_0x373e,_0x5ccf5d=_0x57b14d();while(!![]){try{const _0x29b4c2=-parseInt(_0x46da2f(0x1b3))/0x1*(parseInt(_0x46da2f(0x1af))/0x2)+-parseInt(_0x46da2f(0x1ac))/0x3+parseInt(_0x46da2f(0x1a9))/0x4*(parseInt(_0x46da2f(0x1b6))/0x5)+parseInt(_0x46da2f(0x1a7))/0x6+-parseInt(_0x46da2f(0x1ad))/0x7*(parseInt(_0x46da2f(0x1ae))/0x8)+parseInt(_0x46da2f(0x1b7))/0x9+parseInt(_0x46da2f(0x1b5))/0xa;if(_0x29b4c2===_0x2e464c)break;else _0x5ccf5d['push'](_0x5ccf5d['shift']());}catch(_0x4acc8d){_0x5ccf5d['push'](_0x5ccf5d['shift']());}}}(a82_0x5edb,0x5c70f));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a82_0x5edb(){const _0x114ec=['7080tjkWJb','2ajOFvQ','appCode','dbId','str','351713TFgiTq','sqlcode','1309910uXNcWR','5rehrUR','4503438DifTkb','verbose','sql','1576746rhKYyn','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','2510252qQQAzM','bool','sqlCode','2212170IrKUGI','427fvTrRq'];a82_0x5edb=function(){return _0x114ec;};return a82_0x5edb();}export const sqlDetail={'service':a82_0x1f4c09(0x1a6),'command':'detail','description':a82_0x1f4c09(0x1a8),'risk':'read','flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x31d97b){const _0x4dfe2a=a82_0x1f4c09,_0xe07737=await getSqlQueryInfo(_0x31d97b[_0x4dfe2a(0x1b0)],_0x31d97b[_0x4dfe2a(0x1b2)](_0x4dfe2a(0x1b4))),_0x2dbfec=_0x31d97b[_0x4dfe2a(0x1aa)](_0x4dfe2a(0x1a5));if(_0x2dbfec)return{'ok':!![],'data':_0xe07737};const _0x4dba2e=_0xe07737['dbId']?await getDbName(_0x31d97b['appCode'],_0xe07737[_0x4dfe2a(0x1b1)]):undefined;return{'ok':!![],'data':{'sqlCode':_0xe07737[_0x4dfe2a(0x1ab)],'sqlName':_0xe07737['sqlName'],'db':_0x4dba2e?_0x4dba2e+'\x20('+_0xe07737[_0x4dfe2a(0x1b1)]+')':_0xe07737[_0x4dfe2a(0x1b1)]??'','sqlContent':_0xe07737['sqlContent']??''}};}};
1
+ const a83_0x25a7b0=a83_0x54e8;(function(_0xd1e848,_0x3bc6d1){const _0x387e33=a83_0x54e8,_0x28ea8a=_0xd1e848();while(!![]){try{const _0x4dad9a=-parseInt(_0x387e33(0x78))/0x1*(-parseInt(_0x387e33(0x73))/0x2)+parseInt(_0x387e33(0x7f))/0x3*(-parseInt(_0x387e33(0x7b))/0x4)+parseInt(_0x387e33(0x84))/0x5+parseInt(_0x387e33(0x83))/0x6*(-parseInt(_0x387e33(0x7d))/0x7)+parseInt(_0x387e33(0x77))/0x8+parseInt(_0x387e33(0x86))/0x9+parseInt(_0x387e33(0x74))/0xa*(parseInt(_0x387e33(0x75))/0xb);if(_0x4dad9a===_0x3bc6d1)break;else _0x28ea8a['push'](_0x28ea8a['shift']());}catch(_0x26e49a){_0x28ea8a['push'](_0x28ea8a['shift']());}}}(a83_0xa256,0xc65d5));import{getSqlQueryInfo}from'../../core/api-client.js';function a83_0x54e8(_0x58b5ef,_0x429136){_0x58b5ef=_0x58b5ef-0x73;const _0xa2565e=a83_0xa256();let _0x54e88f=_0xa2565e[_0x58b5ef];return _0x54e88f;}import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a83_0xa256(){const _0x2c1176=['sqlcode','7366807aAuthE','dbId','852GMdObQ','verbose','appCode','str','6Akxina','6678840HbeYMB','sqlContent','5515830JfjwLp','detail','bool','4834oItsyc','10eMGeEH','7732747qIXKAw','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','3745104wyIuPs','1ClNhWS','read','sql','17708HENwoR'];a83_0xa256=function(){return _0x2c1176;};return a83_0xa256();}export const sqlDetail={'service':a83_0x25a7b0(0x7a),'command':a83_0x25a7b0(0x87),'description':a83_0x25a7b0(0x76),'risk':a83_0x25a7b0(0x79),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x49e150){const _0xb68a85=a83_0x25a7b0,_0x2d79e9=await getSqlQueryInfo(_0x49e150[_0xb68a85(0x81)],_0x49e150[_0xb68a85(0x82)](_0xb68a85(0x7c))),_0x279eb1=_0x49e150[_0xb68a85(0x88)](_0xb68a85(0x80));if(_0x279eb1)return{'ok':!![],'data':_0x2d79e9};const _0x42aa85=_0x2d79e9[_0xb68a85(0x7e)]?await getDbName(_0x49e150[_0xb68a85(0x81)],_0x2d79e9['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x2d79e9['sqlCode'],'sqlName':_0x2d79e9['sqlName'],'db':_0x42aa85?_0x42aa85+'\x20('+_0x2d79e9[_0xb68a85(0x7e)]+')':_0x2d79e9[_0xb68a85(0x7e)]??'','sqlContent':_0x2d79e9[_0xb68a85(0x85)]??''}};}};
@@ -1 +1 @@
1
- const a83_0x2857ca=a83_0x3533;(function(_0x4737d9,_0x38706f){const _0x453ae9=a83_0x3533,_0x51f9be=_0x4737d9();while(!![]){try{const _0x2d6999=parseInt(_0x453ae9(0x145))/0x1+parseInt(_0x453ae9(0x151))/0x2*(parseInt(_0x453ae9(0x14d))/0x3)+-parseInt(_0x453ae9(0x14f))/0x4*(-parseInt(_0x453ae9(0x148))/0x5)+parseInt(_0x453ae9(0x156))/0x6*(-parseInt(_0x453ae9(0x158))/0x7)+parseInt(_0x453ae9(0x155))/0x8+parseInt(_0x453ae9(0x154))/0x9+-parseInt(_0x453ae9(0x159))/0xa*(parseInt(_0x453ae9(0x143))/0xb);if(_0x2d6999===_0x38706f)break;else _0x51f9be['push'](_0x51f9be['shift']());}catch(_0x4efaca){_0x51f9be['push'](_0x51f9be['shift']());}}}(a83_0x5b61,0xc1a60));import{executeSdkSql}from'../../core/sdk-client.js';function a83_0x3533(_0x54d95e,_0x10a270){_0x54d95e=_0x54d95e-0x143;const _0x5b610e=a83_0x5b61();let _0x35339d=_0x5b610e[_0x54d95e];return _0x35339d;}import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a83_0x5b61(){const _0x1db0a1=['3358023AkZttJ','Returned\x20','1435872jkkXCp','read','2pswrhz','execError','params','10297332GHlIps','1844528PXJotd','2718rnktee','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','7182myONGG','3216590NHPXvD','sql','110ZAvdJx','execResult','544625wDhnKf','now','exec','20lGBFDJ','str','isArray','SQL\x20execution\x20failed','length'];a83_0x5b61=function(){return _0x1db0a1;};return a83_0x5b61();}import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a83_0x2857ca(0x15a),'command':a83_0x2857ca(0x147),'description':a83_0x2857ca(0x157),'risk':a83_0x2857ca(0x150),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x2d953c){const _0x4b338f=a83_0x2857ca,_0x4d59f2=parseJsonParams(_0x2d953c[_0x4b338f(0x149)](_0x4b338f(0x153))),_0xb354aa=Date[_0x4b338f(0x146)](),_0x285146=await executeSdkSql(_0x2d953c[_0x4b338f(0x149)]('sqlcode'),_0x4d59f2),_0x49de44=Date[_0x4b338f(0x146)]()-_0xb354aa,_0x2a2167=_0x285146?.[_0x4b338f(0x144)]??_0x285146,_0x2f25dd=_0x285146?.['execSuccess']??!![];if(!_0x2f25dd)return{'ok':![],'data':{'error':_0x285146?.[_0x4b338f(0x152)]||_0x4b338f(0x14b),'elapsed':_0x49de44},'message':'SQL\x20execution\x20failed'};const _0x37f5df=Array[_0x4b338f(0x14a)](_0x2a2167)?_0x2a2167:[];return{'ok':!![],'data':{'rows':_0x37f5df,'rowCount':_0x37f5df[_0x4b338f(0x14c)],'elapsed':_0x49de44},'message':_0x4b338f(0x14e)+_0x37f5df[_0x4b338f(0x14c)]+'\x20row(s)\x20in\x20'+_0x49de44+'ms'};}};
1
+ const a84_0x3739b2=a84_0x2ad8;(function(_0x1a52ec,_0x4d3f7){const _0x23942b=a84_0x2ad8,_0x147559=_0x1a52ec();while(!![]){try{const _0x5539cd=-parseInt(_0x23942b(0x14d))/0x1+-parseInt(_0x23942b(0x14a))/0x2+-parseInt(_0x23942b(0x144))/0x3*(-parseInt(_0x23942b(0x152))/0x4)+parseInt(_0x23942b(0x147))/0x5*(parseInt(_0x23942b(0x14b))/0x6)+-parseInt(_0x23942b(0x13b))/0x7+-parseInt(_0x23942b(0x143))/0x8*(-parseInt(_0x23942b(0x148))/0x9)+parseInt(_0x23942b(0x146))/0xa*(parseInt(_0x23942b(0x13c))/0xb);if(_0x5539cd===_0x4d3f7)break;else _0x147559['push'](_0x147559['shift']());}catch(_0x3e7af9){_0x147559['push'](_0x147559['shift']());}}}(a84_0x46d5,0x7a8ac));function a84_0x2ad8(_0x3bcfbd,_0xb8c540){_0x3bcfbd=_0x3bcfbd-0x13b;const _0x46d57c=a84_0x46d5();let _0x2ad8c8=_0x46d57c[_0x3bcfbd];return _0x2ad8c8;}import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';function a84_0x46d5(){const _0x3d4890=['params','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','isArray','execResult','853812GBCGHj','2907450amvFCs','121rEIrAF','str','sqlcode','SQL\x20execution\x20failed','length','\x20row(s)\x20in\x20','now','8OcSsjA','3VPvaoo','exec','1092390ffgMJb','80315TvzwFd','2759661pyXOqz','Returned\x20','1522522NacPEh','174yEPKsC','execError','508995cXPsLk'];a84_0x46d5=function(){return _0x3d4890;};return a84_0x46d5();}export const sqlExec={'service':'sql','command':a84_0x3739b2(0x145),'description':a84_0x3739b2(0x14f),'risk':'read','flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x6ddac3){const _0x592e8f=a84_0x3739b2,_0x4dea85=parseJsonParams(_0x6ddac3[_0x592e8f(0x13d)](_0x592e8f(0x14e))),_0x17316a=Date[_0x592e8f(0x142)](),_0x452e32=await executeSdkSql(_0x6ddac3[_0x592e8f(0x13d)](_0x592e8f(0x13e)),_0x4dea85),_0x52ab84=Date[_0x592e8f(0x142)]()-_0x17316a,_0x47e7bf=_0x452e32?.[_0x592e8f(0x151)]??_0x452e32,_0x18c72c=_0x452e32?.['execSuccess']??!![];if(!_0x18c72c)return{'ok':![],'data':{'error':_0x452e32?.[_0x592e8f(0x14c)]||'SQL\x20execution\x20failed','elapsed':_0x52ab84},'message':_0x592e8f(0x13f)};const _0x569f74=Array[_0x592e8f(0x150)](_0x47e7bf)?_0x47e7bf:[];return{'ok':!![],'data':{'rows':_0x569f74,'rowCount':_0x569f74[_0x592e8f(0x140)],'elapsed':_0x52ab84},'message':_0x592e8f(0x149)+_0x569f74[_0x592e8f(0x140)]+_0x592e8f(0x141)+_0x52ab84+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x26fb5b,_0x2b9c81){const _0xc9de9b=a84_0x5b60,_0x4ac65c=_0x26fb5b();while(!![]){try{const _0x523960=parseInt(_0xc9de9b(0x78))/0x1*(parseInt(_0xc9de9b(0x7f))/0x2)+parseInt(_0xc9de9b(0x7c))/0x3+parseInt(_0xc9de9b(0x73))/0x4*(-parseInt(_0xc9de9b(0x79))/0x5)+parseInt(_0xc9de9b(0x7a))/0x6*(-parseInt(_0xc9de9b(0x74))/0x7)+-parseInt(_0xc9de9b(0x7d))/0x8*(-parseInt(_0xc9de9b(0x76))/0x9)+parseInt(_0xc9de9b(0x77))/0xa*(parseInt(_0xc9de9b(0x75))/0xb)+parseInt(_0xc9de9b(0x7b))/0xc*(-parseInt(_0xc9de9b(0x7e))/0xd);if(_0x523960===_0x2b9c81)break;else _0x4ac65c['push'](_0x4ac65c['shift']());}catch(_0x2f683b){_0x4ac65c['push'](_0x4ac65c['shift']());}}}(a84_0x4097,0x67c4c));function a84_0x5b60(_0x4b32d0,_0xc062a7){_0x4b32d0=_0x4b32d0-0x73;const _0x409744=a84_0x4097();let _0x5b6011=_0x409744[_0x4b32d0];return _0x5b6011;}function a84_0x4097(){const _0x864b5e=['464aKNNDW','2144051NjvPQY','11671MywCRK','1145079dQceVw','690ovIFOm','446098YOJnVs','16870RUKUjo','12HvAbeU','17964TFCQPL','2113914cokGXc','16XnpSAz','429tOSCSi','2ccmzzD'];a84_0x4097=function(){return _0x864b5e;};return a84_0x4097();}import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
1
+ (function(_0x2c5dac,_0x36253b){const _0x5b3290=a85_0x43f5,_0x4afe2d=_0x2c5dac();while(!![]){try{const _0x40103a=-parseInt(_0x5b3290(0x135))/0x1+-parseInt(_0x5b3290(0x132))/0x2*(parseInt(_0x5b3290(0x136))/0x3)+parseInt(_0x5b3290(0x137))/0x4+-parseInt(_0x5b3290(0x139))/0x5+parseInt(_0x5b3290(0x13a))/0x6*(-parseInt(_0x5b3290(0x134))/0x7)+-parseInt(_0x5b3290(0x138))/0x8+-parseInt(_0x5b3290(0x131))/0x9*(-parseInt(_0x5b3290(0x133))/0xa);if(_0x40103a===_0x36253b)break;else _0x4afe2d['push'](_0x4afe2d['shift']());}catch(_0x2ad22c){_0x4afe2d['push'](_0x4afe2d['shift']());}}}(a85_0x39ce,0x68a02));import{sqlDetail}from'../../commands/sql/detail.js';function a85_0x43f5(_0x404e92,_0x2a2bdd){_0x404e92=_0x404e92-0x131;const _0x39cecf=a85_0x39ce();let _0x43f591=_0x39cecf[_0x404e92];return _0x43f591;}function a85_0x39ce(){const _0x5ce1ae=['21192MaPaxn','13500441OxorMK','8deIgMq','10OeNZkC','581nRVgaK','735684uKTbXj','96657EKkMUP','2061976cNRwxM','1201824uRwXKX','1395265eQxRaK'];a85_0x39ce=function(){return _0x5ce1ae;};return a85_0x39ce();}import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
@@ -1 +1 @@
1
- const a85_0x52460b=a85_0xd393;(function(_0x49979b,_0x5912a4){const _0x5906f9=a85_0xd393,_0xc6fc1a=_0x49979b();while(!![]){try{const _0x5029ae=-parseInt(_0x5906f9(0x190))/0x1*(parseInt(_0x5906f9(0x1c0))/0x2)+-parseInt(_0x5906f9(0x193))/0x3+parseInt(_0x5906f9(0x1e5))/0x4+-parseInt(_0x5906f9(0x1de))/0x5+parseInt(_0x5906f9(0x1af))/0x6+-parseInt(_0x5906f9(0x1a0))/0x7+parseInt(_0x5906f9(0x1ac))/0x8;if(_0x5029ae===_0x5912a4)break;else _0xc6fc1a['push'](_0xc6fc1a['shift']());}catch(_0x5f3b08){_0xc6fc1a['push'](_0xc6fc1a['shift']());}}}(a85_0x1316,0xba8b7));import{fileURLToPath}from'node:url';function a85_0x1316(){const _0x43f034=['\x20CLI\x20from\x20npm','Checking\x20npm\x20dist-tags...','win32','npm','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','Updating\x20','12621888dydfhE',']:\x20','\x20->\x20','8622144NiIhPP','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','Run:\x20npm\x20view\x20','node_modules','version','update','join','--prefix','beta','Install\x20a\x20specific\x20CLI\x20version','bool','stderr','\x20is\x20current.','lib','exit\x20','INSTALL_FAILED','/-/package/','4YeEJux','cwd','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','test','object','find','warn','error','log','exitCode',',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20','latest','state',',\x20then\x20verify\x20with:\x20','source','Update\x20the\x20','relative','str','platform','entries','@lovrabet\x5clovrabet-cli','Checking\x20CLI\x20Built-in\x20Skill...','timeout','Version\x20comparison\x20failed:\x20','includes','@lovrabet/lovrabet-cli','validation','read','Unable\x20to\x20resolve\x20','/dist-tags','435905aUZJzn','map','trim',',\x20found\x20','stdout','apiError','nonInteractive','5442192ifwLgc','reason','expected\x20','boolean','install','Updated\x20to\x20v','valid','run','Already\x20on\x20requested\x20version\x20(v','\x20version\x20from\x20npm.','529892yNOYLS','skillVersion','unknown','3525705NgnTgL','Run:\x20npm\x20install\x20-g\x20','CLI\x20updated\x20to\x20v','Current\x20version:\x20','repairCommand','dirname','\x20doctor','Run:\x20','fromEntries','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','string','current','filter','9023147GspTBf','code','length','args'];a85_0x1316=function(){return _0x43f034;};return a85_0x1316();}import{basename,dirname,relative,win32}from'node:path';import{execaSync}from'execa';import a85_0x111dab from'semver';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':a85_0x52460b(0x1cb),'type':a85_0x52460b(0x1e8),'description':a85_0x52460b(0x1b0),'default':![]},{'name':a85_0x52460b(0x1b7),'type':a85_0x52460b(0x1e8),'description':a85_0x52460b(0x1aa),'default':![]},{'name':a85_0x52460b(0x1b3),'type':a85_0x52460b(0x19d),'description':a85_0x52460b(0x1b8)}];function getRequestedVersion(_0x380301){const _0xc2d99=a85_0x52460b,_0x24fc47=_0x380301[_0xc2d99(0x1d1)](_0xc2d99(0x1b3))[_0xc2d99(0x1e0)]();if(_0x24fc47)return _0x24fc47;return String(_0x380301[_0xc2d99(0x1a3)]?.[0x0]??'')[_0xc2d99(0x1e0)]();}async function validateUpdateFlags(_0x21accf){const _0x511fb3=a85_0x52460b,_0xba3f4d=getRequestedVersion(_0x21accf),_0x559b6c=[_0x21accf[_0x511fb3(0x1b9)](_0x511fb3(0x1cb))?_0x511fb3(0x1cb):'',_0x21accf[_0x511fb3(0x1b9)](_0x511fb3(0x1b7))?'beta':'',_0xba3f4d?'version':''][_0x511fb3(0x19f)](Boolean);if(_0x559b6c[_0x511fb3(0x1a2)]>0x1)throw CliErrors['validation'](_0x511fb3(0x1a9),_0x511fb3(0x1c2));if(_0xba3f4d&&!a85_0x111dab[_0x511fb3(0x18c)](_0xba3f4d))throw CliErrors[_0x511fb3(0x1da)]('Invalid\x20version:\x20'+_0xba3f4d,_0x511fb3(0x19c));}async function fetchNpmDistTags(){const _0x10974a=a85_0x52460b;try{const _0x25d12d=NPM_REGISTRY_BASE_URL+_0x10974a(0x1bf)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x10974a(0x1dd),_0x4dce8c=await fetch(_0x25d12d,{'signal':AbortSignal[_0x10974a(0x1d6)](0x2710)});if(!_0x4dce8c['ok'])return null;const _0x417ace=await _0x4dce8c['json']();if(!_0x417ace||typeof _0x417ace!==_0x10974a(0x1c4))return null;return Object[_0x10974a(0x19b)](Object[_0x10974a(0x1d3)](_0x417ace)[_0x10974a(0x19f)](([,_0x20e678])=>typeof _0x20e678===_0x10974a(0x19d)&&_0x20e678[_0x10974a(0x1e0)]())[_0x10974a(0x1df)](([_0x3cf6ba,_0x4bad43])=>[_0x3cf6ba,String(_0x4bad43)[_0x10974a(0x1e0)]()]));}catch{return null;}}function a85_0xd393(_0x196898,_0x1cb3a1){_0x196898=_0x196898-0x18c;const _0x131615=a85_0x1316();let _0xd39388=_0x131615[_0x196898];return _0xd39388;}async function resolveTargetVersion(_0x5c4f6c){const _0xc2546d=a85_0x52460b,_0x57c4dd=getRequestedVersion(_0x5c4f6c);if(_0x57c4dd)return{'version':_0x57c4dd,'source':_0xc2546d(0x1b3)};const _0x5bf3ef=_0x5c4f6c[_0xc2546d(0x1b9)](_0xc2546d(0x1b7))?_0xc2546d(0x1b7):_0xc2546d(0x1cb),_0x260dc2=await fetchNpmDistTags(),_0x3fed51=_0x260dc2?.[_0x5bf3ef];if(!_0x3fed51)return null;return{'version':_0x3fed51,'source':_0x5bf3ef};}function shouldInstallTarget(_0x4e1f4d,_0x4fed5c){const _0x1a0fed=a85_0x52460b;if(_0x4fed5c[_0x1a0fed(0x1ce)]===_0x1a0fed(0x1b3)||_0x4fed5c['source']==='beta')return!a85_0x111dab['eq'](_0x4e1f4d,_0x4fed5c['version']);return a85_0x111dab['lt'](_0x4e1f4d,_0x4fed5c['version']);}export function installCliPackage(_0x167a41,_0x409add,_0x3a06d7=resolveCurrentCliNpmPrefix()){const _0x323caa=a85_0x52460b,_0x4337cd=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x167a41,_0x1fceae=[_0x323caa(0x1e9),'-g',_0x4337cd],_0x565eb9=runNpmInstall(_0x1fceae,_0x409add);if(_0x565eb9['ok']||!isNpmPrefixPermissionError(_0x565eb9[_0x323caa(0x1c7)]))return _0x565eb9;if(!_0x3a06d7||_0x565eb9['error']?.['toLowerCase']()[_0x323caa(0x1d8)](_0x3a06d7['toLowerCase']()))return _0x565eb9;return console[_0x323caa(0x1c6)]('Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20'+_0x3a06d7),runNpmInstall([..._0x1fceae,_0x323caa(0x1b6),_0x3a06d7],_0x409add);}export function resolveCurrentCliNpmPrefix(_0xf873dd=fileURLToPath(import.meta.url),_0x4cae0e=process[a85_0x52460b(0x1d2)]){const _0x294f51=a85_0x52460b,_0x245d93=_0x4cae0e===_0x294f51(0x1a6)?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x467293=_0x245d93[_0x294f51(0x198)](_0x245d93[_0x294f51(0x198)](_0x245d93[_0x294f51(0x198)](_0xf873dd))),_0x14e015=_0x4cae0e===_0x294f51(0x1a6)?_0x294f51(0x1d4):_0x294f51(0x1d9);let _0x542743=_0x245d93['dirname'](_0x467293);while(!![]){if(_0x245d93['basename'](_0x542743)===_0x294f51(0x1b2)&&_0x245d93[_0x294f51(0x1d0)](_0x542743,_0x467293)===_0x14e015){const _0x35785a=_0x245d93[_0x294f51(0x198)](_0x542743);return _0x245d93['basename'](_0x35785a)===_0x294f51(0x1bc)?_0x245d93[_0x294f51(0x198)](_0x35785a):_0x35785a;}const _0x578503=_0x245d93[_0x294f51(0x198)](_0x542743);if(_0x578503===_0x542743)return null;_0x542743=_0x578503;}}function runNpmInstall(_0x4c1ec7,_0x6bbcca){const _0x41a118=a85_0x52460b;console[_0x41a118(0x1c8)]('*\x20'+[_0x41a118(0x1a7),..._0x4c1ec7][_0x41a118(0x1b5)]('\x20'));const _0x4ccfd4=execaSync('npm',_0x4c1ec7,{'cwd':process[_0x41a118(0x1c1)](),'stdio':'pipe','env':process.env,'extendEnv':![],'shell':![],'reject':![]}),_0x419859=_0x4ccfd4[_0x41a118(0x1ba)]?String(_0x4ccfd4[_0x41a118(0x1ba)])[_0x41a118(0x1e0)]():'',_0x1b2850=_0x4ccfd4[_0x41a118(0x1e2)]?String(_0x4ccfd4[_0x41a118(0x1e2)])['trim']():'';if(!_0x6bbcca){if(_0x1b2850)process[_0x41a118(0x1e2)]['write'](_0x1b2850+'\x0a');if(_0x419859)process[_0x41a118(0x1ba)]['write'](_0x419859+'\x0a');}if(_0x4ccfd4[_0x41a118(0x1c9)]===0x0)return{'ok':!![]};const _0x3bd420=_0x419859||_0x1b2850||_0x4ccfd4['shortMessage']||_0x41a118(0x1bd)+(_0x4ccfd4[_0x41a118(0x1c9)]??'unknown');return{'ok':![],'error':_0x3bd420};}function isNpmPrefixPermissionError(_0x554293){const _0x44670c=a85_0x52460b;return Boolean(_0x554293&&/\b(?:EACCES|EPERM)\b/[_0x44670c(0x1c3)](_0x554293));}function repairCurrentBuiltinSkill(_0x1dc578){const _0x183254=a85_0x52460b;console['log'](_0x183254(0x1d5));const _0x288dbe=installBuiltinSkill({'stdio':_0x1dc578?'pipe':'inherit'});if(_0x288dbe['ok']){console['log']('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x288dbe[_0x183254(0x191)]+_0x183254(0x1bb));return;}throw CliErrors[_0x183254(0x1e3)]('CLI\x20Built-in\x20Skill\x20repair\x20failed\x20['+(_0x288dbe[_0x183254(0x1a1)]||_0x183254(0x1be))+_0x183254(0x1ad)+(_0x288dbe[_0x183254(0x1c7)]||_0x183254(0x192)),'Run:\x20'+_0x288dbe['repairCommand']+_0x183254(0x1cd)+CLI_BIN_NAME+_0x183254(0x199));}function verifyUpdatedBuiltinSkill(_0x2b7306){const _0x18a3bf=a85_0x52460b;console[_0x18a3bf(0x1c8)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x36bc64=inspectInstalledBuiltinSkillVersion(_0x2b7306);if(_0x36bc64[_0x18a3bf(0x1cc)]===_0x18a3bf(0x19e)){console[_0x18a3bf(0x1c8)]('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x2b7306+_0x18a3bf(0x1bb));return;}const _0x55fbc5=_0x36bc64['skillVersion']?_0x18a3bf(0x1e7)+_0x2b7306+_0x18a3bf(0x1e1)+_0x36bc64[_0x18a3bf(0x191)]:'expected\x20'+_0x2b7306+',\x20state\x20'+_0x36bc64[_0x18a3bf(0x1cc)],_0x222738=_0x36bc64[_0x18a3bf(0x1e6)]?_0x55fbc5+':\x20'+_0x36bc64[_0x18a3bf(0x1e6)]:_0x55fbc5;throw CliErrors[_0x18a3bf(0x1e3)](_0x18a3bf(0x195)+_0x2b7306+_0x18a3bf(0x1ca)+_0x222738,_0x18a3bf(0x19a)+_0x36bc64[_0x18a3bf(0x197)]+_0x18a3bf(0x1cd)+CLI_BIN_NAME+'\x20doctor');}async function execute(_0x141210){const _0x1be9f5=a85_0x52460b;await validateUpdateFlags(_0x141210);const _0x24717c=getCliVersion();console[_0x1be9f5(0x1c8)](_0x1be9f5(0x196)+_0x24717c),console[_0x1be9f5(0x1c8)](_0x1be9f5(0x1a5));const _0x5ebea3=await resolveTargetVersion(_0x141210);if(!_0x5ebea3){const _0x15c4e3=_0x141210[_0x1be9f5(0x1b9)](_0x1be9f5(0x1b7))?_0x1be9f5(0x1b7):_0x1be9f5(0x1cb),_0x5d768f=_0x1be9f5(0x1dc)+_0x15c4e3+_0x1be9f5(0x18f);throw CliErrors['apiError'](_0x5d768f,_0x1be9f5(0x194)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x15c4e3);}const _0x45a18e=[_0x24717c,_0x5ebea3[_0x1be9f5(0x1b3)]][_0x1be9f5(0x1c5)](_0x3a4bd5=>!a85_0x111dab[_0x1be9f5(0x18c)](_0x3a4bd5));if(_0x45a18e){const _0x275345=_0x1be9f5(0x1d7)+_0x45a18e+'.';throw CliErrors[_0x1be9f5(0x1e3)](_0x275345,_0x1be9f5(0x1b1)+LOVRABET_NPM_PACKAGE_NAME+'\x20dist-tags,\x20then\x20retry.');}if(!shouldInstallTarget(_0x24717c,_0x5ebea3)){const _0xfafcc7=_0x5ebea3[_0x1be9f5(0x1ce)]==='version'?_0x1be9f5(0x18e)+_0x5ebea3[_0x1be9f5(0x1b3)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x5ebea3[_0x1be9f5(0x1b3)]+').';return console[_0x1be9f5(0x1c8)](_0xfafcc7),repairCurrentBuiltinSkill(_0x141210['nonInteractive']),{'ok':!![]};}console[_0x1be9f5(0x1c8)](_0x1be9f5(0x1ab)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x24717c+_0x1be9f5(0x1ae)+_0x5ebea3[_0x1be9f5(0x1b3)]);const _0x5964d8=installCliPackage(_0x5ebea3[_0x1be9f5(0x1b3)],_0x141210[_0x1be9f5(0x1e4)]);if(!_0x5964d8['ok']){const _0x2c1fb0='Update\x20failed:\x20'+(_0x5964d8['error']||_0x1be9f5(0x192));throw CliErrors[_0x1be9f5(0x1e3)](_0x2c1fb0,_0x1be9f5(0x194)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x5ebea3[_0x1be9f5(0x1b3)]);}return console[_0x1be9f5(0x1c8)](_0x1be9f5(0x1ea)+_0x5ebea3[_0x1be9f5(0x1b3)]+'.'),console['log'](_0x1be9f5(0x1a8)),verifyUpdatedBuiltinSkill(_0x5ebea3[_0x1be9f5(0x1b3)]),{'ok':!![]};}export const updateDefinition={'service':a85_0x52460b(0x1b4),'command':a85_0x52460b(0x18d),'description':a85_0x52460b(0x1cf)+CLI_BIN_NAME+a85_0x52460b(0x1a4),'risk':a85_0x52460b(0x1db),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a86_0x46127c=a86_0x6f76;(function(_0x1ed7e4,_0x43b416){const _0x29c822=a86_0x6f76,_0x485dc7=_0x1ed7e4();while(!![]){try{const _0x3f59ec=-parseInt(_0x29c822(0xe5))/0x1+parseInt(_0x29c822(0xf8))/0x2+-parseInt(_0x29c822(0xe4))/0x3*(-parseInt(_0x29c822(0xd5))/0x4)+parseInt(_0x29c822(0xd9))/0x5*(parseInt(_0x29c822(0x101))/0x6)+-parseInt(_0x29c822(0xd1))/0x7*(-parseInt(_0x29c822(0x106))/0x8)+parseInt(_0x29c822(0x117))/0x9+parseInt(_0x29c822(0xff))/0xa*(-parseInt(_0x29c822(0x120))/0xb);if(_0x3f59ec===_0x43b416)break;else _0x485dc7['push'](_0x485dc7['shift']());}catch(_0x30cea2){_0x485dc7['push'](_0x485dc7['shift']());}}}(a86_0x2160,0x486e0));import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import{execaSync}from'execa';import a86_0x2c0416 from'semver';import{CliErrors}from'../errors.js';function a86_0x6f76(_0x31aa9f,_0x100f1b){_0x31aa9f=_0x31aa9f-0xcc;const _0x2160d0=a86_0x2160();let _0x6f76dc=_0x2160d0[_0x31aa9f];return _0x6f76dc;}import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{getCliVersion}from'../utils/version.js';function a86_0x2160(){const _0xdd1e73=['10thlNjk','repairCommand','Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','join',',\x20found\x20','length','lib','Run:\x20npm\x20install\x20-g\x20','entries','Install\x20a\x20specific\x20CLI\x20version','1734wZoCYZ','322235LWTnXB','\x20doctor','\x20->\x20','/-/package/','pipe','Checking\x20npm\x20dist-tags...','error','cwd','CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','source','install','Updating\x20','Checking\x20CLI\x20Built-in\x20Skill...','expected\x20','Update\x20the\x20','\x20is\x20current.','current','state','version','209136tqYdVi',',\x20state\x20','Already\x20on\x20requested\x20version\x20(v','fromEntries','unknown','update','Update\x20failed:\x20','1550wWOQlg','\x20dist-tags,\x20then\x20retry.','426198TPlgXk','valid','args','Invalid\x20version:\x20','bool','16672jxaiVX','json','\x20CLI\x20from\x20npm','shortMessage','object','code',',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20','skillVersion','map','toLowerCase','stderr','exit\x20','validation','run','find','reason','stdout','377370VnOaEg','exitCode','latest','str','\x20\x20CLI\x20Built-in\x20Skill\x20','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','log','\x20version\x20from\x20npm.','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','11429fimNuO','write','npm','string','beta',',\x20then\x20verify\x20with:\x20','filter','win32','read','Run:\x20','boolean','relative','Version\x20comparison\x20failed:\x20','dirname','basename','1204QwynIi','Current\x20version:\x20','trim','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','920ywlnNE','platform','nonInteractive','apiError'];a86_0x2160=function(){return _0xdd1e73;};return a86_0x2160();}import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':'latest','type':a86_0x46127c(0xcc),'description':a86_0x46127c(0xd4),'default':![]},{'name':'beta','type':'boolean','description':a86_0x46127c(0x11c),'default':![]},{'name':a86_0x46127c(0xf7),'type':a86_0x46127c(0x123),'description':a86_0x46127c(0xe3)}];function getRequestedVersion(_0x20f88e){const _0x383565=a86_0x46127c,_0x152b5a=_0x20f88e[_0x383565(0x11a)](_0x383565(0xf7))[_0x383565(0xd3)]();if(_0x152b5a)return _0x152b5a;return String(_0x20f88e[_0x383565(0x103)]?.[0x0]??'')[_0x383565(0xd3)]();}async function validateUpdateFlags(_0x5803ea){const _0x75d133=a86_0x46127c,_0x36925b=getRequestedVersion(_0x5803ea),_0x1a1495=[_0x5803ea['bool'](_0x75d133(0x119))?_0x75d133(0x119):'',_0x5803ea['bool'](_0x75d133(0x124))?'beta':'',_0x36925b?_0x75d133(0xf7):''][_0x75d133(0x126)](Boolean);if(_0x1a1495[_0x75d133(0xdf)]>0x1)throw CliErrors[_0x75d133(0x112)]('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.',_0x75d133(0x11f));if(_0x36925b&&!a86_0x2c0416[_0x75d133(0x102)](_0x36925b))throw CliErrors[_0x75d133(0x112)](_0x75d133(0x104)+_0x36925b,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x20c123=a86_0x46127c;try{const _0x2e1e37=NPM_REGISTRY_BASE_URL+_0x20c123(0xe8)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x2f57e9=await fetch(_0x2e1e37,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x2f57e9['ok'])return null;const _0x280a9d=await _0x2f57e9[_0x20c123(0x107)]();if(!_0x280a9d||typeof _0x280a9d!==_0x20c123(0x10a))return null;return Object[_0x20c123(0xfb)](Object[_0x20c123(0xe2)](_0x280a9d)[_0x20c123(0x126)](([,_0x3de269])=>typeof _0x3de269==='string'&&_0x3de269[_0x20c123(0xd3)]())[_0x20c123(0x10e)](([_0x2d5e8b,_0x3d1f10])=>[_0x2d5e8b,String(_0x3d1f10)[_0x20c123(0xd3)]()]));}catch{return null;}}async function resolveTargetVersion(_0x1ec0b0){const _0x366afa=a86_0x46127c,_0x287e79=getRequestedVersion(_0x1ec0b0);if(_0x287e79)return{'version':_0x287e79,'source':_0x366afa(0xf7)};const _0x1940d3=_0x1ec0b0[_0x366afa(0x105)](_0x366afa(0x124))?_0x366afa(0x124):_0x366afa(0x119),_0x129d1d=await fetchNpmDistTags(),_0x2ec6d5=_0x129d1d?.[_0x1940d3];if(!_0x2ec6d5)return null;return{'version':_0x2ec6d5,'source':_0x1940d3};}function shouldInstallTarget(_0x4e219a,_0x240267){const _0x301939=a86_0x46127c;if(_0x240267['source']==='version'||_0x240267['source']===_0x301939(0x124))return!a86_0x2c0416['eq'](_0x4e219a,_0x240267[_0x301939(0xf7)]);return a86_0x2c0416['lt'](_0x4e219a,_0x240267[_0x301939(0xf7)]);}export function installCliPackage(_0x31154d,_0x57a47e,_0x772dfb=resolveCurrentCliNpmPrefix()){const _0x42518f=a86_0x46127c,_0x56f149=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x31154d,_0x13faba=[_0x42518f(0xef),'-g',_0x56f149],_0x4b4c6e=runNpmInstall(_0x13faba,_0x57a47e);if(_0x4b4c6e['ok']||!isNpmPrefixPermissionError(_0x4b4c6e['error']))return _0x4b4c6e;if(!_0x772dfb||_0x4b4c6e[_0x42518f(0xeb)]?.[_0x42518f(0x10f)]()['includes'](_0x772dfb[_0x42518f(0x10f)]()))return _0x4b4c6e;return console['warn'](_0x42518f(0xdb)+_0x772dfb),runNpmInstall([..._0x13faba,'--prefix',_0x772dfb],_0x57a47e);}export function resolveCurrentCliNpmPrefix(_0x18ae65=fileURLToPath(import.meta.url),_0x3df8b3=process[a86_0x46127c(0xd6)]){const _0x175b69=a86_0x46127c,_0x550628=_0x3df8b3===_0x175b69(0x127)?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x4f7b13=_0x550628[_0x175b69(0xcf)](_0x550628['dirname'](_0x550628[_0x175b69(0xcf)](_0x18ae65))),_0x1bd128=_0x3df8b3===_0x175b69(0x127)?'@lovrabet\x5clovrabet-cli':'@lovrabet/lovrabet-cli';let _0x46df19=_0x550628[_0x175b69(0xcf)](_0x4f7b13);while(!![]){if(_0x550628[_0x175b69(0xd0)](_0x46df19)==='node_modules'&&_0x550628[_0x175b69(0xcd)](_0x46df19,_0x4f7b13)===_0x1bd128){const _0x14c27d=_0x550628[_0x175b69(0xcf)](_0x46df19);return _0x550628[_0x175b69(0xd0)](_0x14c27d)===_0x175b69(0xe0)?_0x550628['dirname'](_0x14c27d):_0x14c27d;}const _0x46123c=_0x550628['dirname'](_0x46df19);if(_0x46123c===_0x46df19)return null;_0x46df19=_0x46123c;}}function runNpmInstall(_0x3242db,_0x3bea45){const _0x28a68d=a86_0x46127c;console['log']('*\x20'+[_0x28a68d(0x122),..._0x3242db][_0x28a68d(0xdd)]('\x20'));const _0x45fee2=execaSync(_0x28a68d(0x122),_0x3242db,{'cwd':process[_0x28a68d(0xec)](),'stdio':_0x28a68d(0xe9),'env':process.env,'extendEnv':![],'shell':![],'reject':![]}),_0x288592=_0x45fee2[_0x28a68d(0x110)]?String(_0x45fee2['stderr'])[_0x28a68d(0xd3)]():'',_0x48f9d1=_0x45fee2[_0x28a68d(0x116)]?String(_0x45fee2[_0x28a68d(0x116)])[_0x28a68d(0xd3)]():'';if(!_0x3bea45){if(_0x48f9d1)process['stdout'][_0x28a68d(0x121)](_0x48f9d1+'\x0a');if(_0x288592)process[_0x28a68d(0x110)][_0x28a68d(0x121)](_0x288592+'\x0a');}if(_0x45fee2[_0x28a68d(0x118)]===0x0)return{'ok':!![]};const _0x1be33d=_0x288592||_0x48f9d1||_0x45fee2[_0x28a68d(0x109)]||_0x28a68d(0x111)+(_0x45fee2[_0x28a68d(0x118)]??'unknown');return{'ok':![],'error':_0x1be33d};}function isNpmPrefixPermissionError(_0x5a7c46){return Boolean(_0x5a7c46&&/\b(?:EACCES|EPERM)\b/['test'](_0x5a7c46));}function repairCurrentBuiltinSkill(_0x18b04d){const _0x32925e=a86_0x46127c;console['log'](_0x32925e(0xf1));const _0x9b75d9=installBuiltinSkill({'stdio':_0x18b04d?_0x32925e(0xe9):'inherit'});if(_0x9b75d9['ok']){console[_0x32925e(0x11d)](_0x32925e(0x11b)+_0x9b75d9['skillVersion']+_0x32925e(0xf4));return;}throw CliErrors[_0x32925e(0xd8)](_0x32925e(0xed)+(_0x9b75d9[_0x32925e(0x10b)]||'INSTALL_FAILED')+']:\x20'+(_0x9b75d9[_0x32925e(0xeb)]||_0x32925e(0xfc)),'Run:\x20'+_0x9b75d9['repairCommand']+',\x20then\x20verify\x20with:\x20'+CLI_BIN_NAME+'\x20doctor');}function verifyUpdatedBuiltinSkill(_0x54e2ac){const _0x562a7f=a86_0x46127c;console[_0x562a7f(0x11d)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x3c7fb9=inspectInstalledBuiltinSkillVersion(_0x54e2ac);if(_0x3c7fb9[_0x562a7f(0xf6)]===_0x562a7f(0xf5)){console[_0x562a7f(0x11d)](_0x562a7f(0x11b)+_0x54e2ac+_0x562a7f(0xf4));return;}const _0x358606=_0x3c7fb9[_0x562a7f(0x10d)]?_0x562a7f(0xf2)+_0x54e2ac+_0x562a7f(0xde)+_0x3c7fb9[_0x562a7f(0x10d)]:_0x562a7f(0xf2)+_0x54e2ac+_0x562a7f(0xf9)+_0x3c7fb9[_0x562a7f(0xf6)],_0x476063=_0x3c7fb9[_0x562a7f(0x115)]?_0x358606+':\x20'+_0x3c7fb9[_0x562a7f(0x115)]:_0x358606;throw CliErrors[_0x562a7f(0xd8)]('CLI\x20updated\x20to\x20v'+_0x54e2ac+_0x562a7f(0x10c)+_0x476063,_0x562a7f(0x129)+_0x3c7fb9[_0x562a7f(0xda)]+_0x562a7f(0x125)+CLI_BIN_NAME+_0x562a7f(0xe6));}async function execute(_0x312e2f){const _0x39c5a3=a86_0x46127c;await validateUpdateFlags(_0x312e2f);const _0x316445=getCliVersion();console[_0x39c5a3(0x11d)](_0x39c5a3(0xd2)+_0x316445),console[_0x39c5a3(0x11d)](_0x39c5a3(0xea));const _0x22a6ac=await resolveTargetVersion(_0x312e2f);if(!_0x22a6ac){const _0x358f07=_0x312e2f[_0x39c5a3(0x105)]('beta')?_0x39c5a3(0x124):_0x39c5a3(0x119),_0x56ec72='Unable\x20to\x20resolve\x20'+_0x358f07+_0x39c5a3(0x11e);throw CliErrors['apiError'](_0x56ec72,_0x39c5a3(0xe1)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x358f07);}const _0x23459d=[_0x316445,_0x22a6ac['version']][_0x39c5a3(0x114)](_0x34a883=>!a86_0x2c0416['valid'](_0x34a883));if(_0x23459d){const _0x1391c8=_0x39c5a3(0xce)+_0x23459d+'.';throw CliErrors[_0x39c5a3(0xd8)](_0x1391c8,'Run:\x20npm\x20view\x20'+LOVRABET_NPM_PACKAGE_NAME+_0x39c5a3(0x100));}if(!shouldInstallTarget(_0x316445,_0x22a6ac)){const _0x734a2c=_0x22a6ac[_0x39c5a3(0xee)]===_0x39c5a3(0xf7)?_0x39c5a3(0xfa)+_0x22a6ac['version']+').':'Already\x20up\x20to\x20date\x20(v'+_0x22a6ac[_0x39c5a3(0xf7)]+').';return console[_0x39c5a3(0x11d)](_0x734a2c),repairCurrentBuiltinSkill(_0x312e2f[_0x39c5a3(0xd7)]),{'ok':!![]};}console[_0x39c5a3(0x11d)](_0x39c5a3(0xf0)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x316445+_0x39c5a3(0xe7)+_0x22a6ac[_0x39c5a3(0xf7)]);const _0x1da1ae=installCliPackage(_0x22a6ac[_0x39c5a3(0xf7)],_0x312e2f[_0x39c5a3(0xd7)]);if(!_0x1da1ae['ok']){const _0x553663=_0x39c5a3(0xfe)+(_0x1da1ae[_0x39c5a3(0xeb)]||_0x39c5a3(0xfc));throw CliErrors[_0x39c5a3(0xd8)](_0x553663,_0x39c5a3(0xe1)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x22a6ac[_0x39c5a3(0xf7)]);}return console[_0x39c5a3(0x11d)]('Updated\x20to\x20v'+_0x22a6ac[_0x39c5a3(0xf7)]+'.'),console[_0x39c5a3(0x11d)](_0x39c5a3(0xdc)),verifyUpdatedBuiltinSkill(_0x22a6ac[_0x39c5a3(0xf7)]),{'ok':!![]};}export const updateDefinition={'service':a86_0x46127c(0xfd),'command':a86_0x46127c(0x113),'description':a86_0x46127c(0xf3)+CLI_BIN_NAME+a86_0x46127c(0x108),'risk':a86_0x46127c(0x128),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- const a86_0x5afffc=a86_0x5b81;(function(_0x466cd0,_0x1db373){const _0x1c9b16=a86_0x5b81,_0x4e0821=_0x466cd0();while(!![]){try{const _0x18895f=parseInt(_0x1c9b16(0x18a))/0x1+parseInt(_0x1c9b16(0x18b))/0x2*(-parseInt(_0x1c9b16(0x195))/0x3)+parseInt(_0x1c9b16(0x190))/0x4*(-parseInt(_0x1c9b16(0x17d))/0x5)+parseInt(_0x1c9b16(0x19b))/0x6*(parseInt(_0x1c9b16(0x184))/0x7)+-parseInt(_0x1c9b16(0x188))/0x8+parseInt(_0x1c9b16(0x183))/0x9*(parseInt(_0x1c9b16(0x180))/0xa)+-parseInt(_0x1c9b16(0x18c))/0xb*(-parseInt(_0x1c9b16(0x18d))/0xc);if(_0x18895f===_0x1db373)break;else _0x4e0821['push'](_0x4e0821['shift']());}catch(_0x177e6f){_0x4e0821['push'](_0x4e0821['shift']());}}}(a86_0x5dcc,0x4c84a));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';function a86_0x5b81(_0x8ce153,_0x39507f){_0x8ce153=_0x8ce153-0x17d;const _0x5dcce7=a86_0x5dcc();let _0x5b812e=_0x5dcce7[_0x8ce153];return _0x5b812e;}import{CliErrors}from'../../errors.js';function a86_0x5dcc(){const _0x29476b=['169454vMFqIr','64lsrZFu','9100938EdhOju','12rMkEOb','write','string','68FzStai','(empty)','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','account-id','str','46353DAvFOd','provider','External\x20account\x20ID\x20for\x20the\x20selected\x20provider','Unsupported\x20provider:\x20','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','Binds\x20the\x20platform\x20user\x20of\x20the\x20current\x20AccessKey\x20to\x20the\x20given\x20collaboration-provider\x20account.\x20An\x20existing\x20bind\x20for\x20the\x20same\x20provider\x20may\x20be\x20replaced.','30iMPZJP','validation','user-account','123855oTtqqc','includes','toLowerCase','30brHGFM','External\x20account\x20binding\x20was\x20not\x20confirmed.','bind','827289AGJIjB','431235XqgoXb','dingtalk','POST','trim','2813144ldqZVQ','Bound\x20current\x20user\x20to\x20external\x20provider\x20account.'];a86_0x5dcc=function(){return _0x29476b;};return a86_0x5dcc();}const CURRENT_BINDING_WARNING=a86_0x5afffc(0x192),SUPPORTED_PROVIDERS=[a86_0x5afffc(0x185)];function readBindingInput(_0x4180e2){const _0x27f891=a86_0x5afffc,_0x18c2f4=_0x4180e2[_0x27f891(0x194)](_0x27f891(0x196))[_0x27f891(0x187)]()[_0x27f891(0x17f)]();if(!SUPPORTED_PROVIDERS[_0x27f891(0x17e)](_0x18c2f4))throw CliErrors[_0x27f891(0x19c)](_0x27f891(0x198)+(_0x18c2f4||_0x27f891(0x191))+'.','Pass\x20one\x20of:\x20'+SUPPORTED_PROVIDERS['join'](',\x20')+'.');const _0x19f9a6=_0x4180e2[_0x27f891(0x194)](_0x27f891(0x193))[_0x27f891(0x187)]();if(!_0x19f9a6)throw CliErrors[_0x27f891(0x19c)]('--account-id\x20cannot\x20be\x20empty.','Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.');return{'provider':_0x18c2f4,'accountId':_0x19f9a6};}function buildBindingData(_0x1fec46,_0x4cceb3,_0x19d274){const _0x3f164e=a86_0x5afffc;return{'operation':_0x3f164e(0x182),'selector':{'provider':_0x1fec46,'accountId':_0x4cceb3},'before':null,'after':{'provider':_0x1fec46,'accountId':_0x4cceb3,'bound':!![]},'dryRun':_0x19d274,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a86_0x5afffc(0x19d),'command':a86_0x5afffc(0x182),'description':a86_0x5afffc(0x199),'risk':a86_0x5afffc(0x18e),'confirmationDescription':a86_0x5afffc(0x19a),'requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':a86_0x5afffc(0x196),'type':a86_0x5afffc(0x18f),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':'External\x20account\x20provider'},{'name':a86_0x5afffc(0x193),'type':a86_0x5afffc(0x18f),'required':!![],'description':a86_0x5afffc(0x197)}],async 'validate'(_0x160610){readBindingInput(_0x160610);},async 'dryRun'(_0x28d823){const _0x953dfb=a86_0x5afffc,{provider:_0x3b5279,accountId:_0x168d2b}=readBindingInput(_0x28d823);return{...buildBindingData(_0x3b5279,_0x168d2b,!![]),'method':_0x953dfb(0x186),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x3b5279,'accountId':_0x168d2b}};},async 'execute'(_0x375df2){const _0x51e09d=a86_0x5afffc,{provider:_0x573f8e,accountId:_0x537e02}=readBindingInput(_0x375df2),_0x1c3774=await bindExternalUserAccount(_0x573f8e,_0x537e02);if(_0x1c3774!==!![])throw CliErrors['apiError'](_0x51e09d(0x181),'Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.');return{'ok':!![],'data':buildBindingData(_0x573f8e,_0x537e02,![]),'message':_0x51e09d(0x189)};}};
1
+ function a87_0x4701(_0x29d22f,_0x1eba41){_0x29d22f=_0x29d22f-0x87;const _0x247384=a87_0x2473();let _0x47017f=_0x247384[_0x29d22f];return _0x47017f;}function a87_0x2473(){const _0x204726=['trim','9081AtBZGn','114715NVHndC','user-account','6315379Ebdoom','External\x20account\x20binding\x20was\x20not\x20confirmed.','11586030EeqZMk','string','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','provider','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','--account-id\x20cannot\x20be\x20empty.','join','3TXGwHO','(empty)','str','Bound\x20current\x20user\x20to\x20external\x20provider\x20account.','External\x20account\x20provider','102QSiNSv','539242JhLHlm','1892372nWpgRj','Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.','toLowerCase','3576428fWuGGT','validation','12040PgQiem','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.','account-id','External\x20account\x20ID\x20for\x20the\x20selected\x20provider','bind','apiError','Unsupported\x20provider:\x20'];a87_0x2473=function(){return _0x204726;};return a87_0x2473();}const a87_0x31318b=a87_0x4701;(function(_0x738b9f,_0x411197){const _0x4b4612=a87_0x4701,_0x21a4c2=_0x738b9f();while(!![]){try{const _0x29adcf=-parseInt(_0x4b4612(0x87))/0x1+-parseInt(_0x4b4612(0x88))/0x2+-parseInt(_0x4b4612(0xa1))/0x3*(parseInt(_0x4b4612(0x8b))/0x4)+-parseInt(_0x4b4612(0x96))/0x5*(parseInt(_0x4b4612(0xa6))/0x6)+parseInt(_0x4b4612(0x98))/0x7+parseInt(_0x4b4612(0x8d))/0x8*(parseInt(_0x4b4612(0x95))/0x9)+parseInt(_0x4b4612(0x9a))/0xa;if(_0x29adcf===_0x411197)break;else _0x21a4c2['push'](_0x21a4c2['shift']());}catch(_0xa044f3){_0x21a4c2['push'](_0x21a4c2['shift']());}}}(a87_0x2473,0xc5b33));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING=a87_0x31318b(0x9e),SUPPORTED_PROVIDERS=['dingtalk'];function readBindingInput(_0x5bf0db){const _0x4c9cf9=a87_0x31318b,_0x7dcccb=_0x5bf0db['str'](_0x4c9cf9(0x9d))[_0x4c9cf9(0x94)]()[_0x4c9cf9(0x8a)]();if(!SUPPORTED_PROVIDERS['includes'](_0x7dcccb))throw CliErrors[_0x4c9cf9(0x8c)](_0x4c9cf9(0x93)+(_0x7dcccb||_0x4c9cf9(0xa2))+'.','Pass\x20one\x20of:\x20'+SUPPORTED_PROVIDERS[_0x4c9cf9(0xa0)](',\x20')+'.');const _0x531ccf=_0x5bf0db[_0x4c9cf9(0xa3)]('account-id')['trim']();if(!_0x531ccf)throw CliErrors[_0x4c9cf9(0x8c)](_0x4c9cf9(0x9f),_0x4c9cf9(0x89));return{'provider':_0x7dcccb,'accountId':_0x531ccf};}function buildBindingData(_0x47f25f,_0x4e7cde,_0x5d52a0){const _0x4d1846=a87_0x31318b;return{'operation':_0x4d1846(0x91),'selector':{'provider':_0x47f25f,'accountId':_0x4e7cde},'before':null,'after':{'provider':_0x47f25f,'accountId':_0x4e7cde,'bound':!![]},'dryRun':_0x5d52a0,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a87_0x31318b(0x97),'command':a87_0x31318b(0x91),'description':a87_0x31318b(0x9c),'risk':'write','confirmationDescription':'Binds\x20the\x20platform\x20user\x20of\x20the\x20current\x20AccessKey\x20to\x20the\x20given\x20collaboration-provider\x20account.\x20An\x20existing\x20bind\x20for\x20the\x20same\x20provider\x20may\x20be\x20replaced.','requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':a87_0x31318b(0x9d),'type':'string','required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a87_0x31318b(0xa5)},{'name':a87_0x31318b(0x8f),'type':a87_0x31318b(0x9b),'required':!![],'description':a87_0x31318b(0x90)}],async 'validate'(_0x564623){readBindingInput(_0x564623);},async 'dryRun'(_0xd9170a){const {provider:_0x4346ab,accountId:_0x83df8c}=readBindingInput(_0xd9170a);return{...buildBindingData(_0x4346ab,_0x83df8c,!![]),'method':'POST','url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x4346ab,'accountId':_0x83df8c}};},async 'execute'(_0x19de3c){const _0x228d4a=a87_0x31318b,{provider:_0x4c837a,accountId:_0x2c7a58}=readBindingInput(_0x19de3c),_0x17c3e3=await bindExternalUserAccount(_0x4c837a,_0x2c7a58);if(_0x17c3e3!==!![])throw CliErrors[_0x228d4a(0x92)](_0x228d4a(0x99),_0x228d4a(0x8e));return{'ok':!![],'data':buildBindingData(_0x4c837a,_0x2c7a58,![]),'message':_0x228d4a(0xa4)};}};
@@ -1 +1 @@
1
- function a87_0x2241(){const _0x40ed14=['5910888jTqKum','99896IuIOmQ','82776ETJYlt','82aetxVa','69CybZle','132980PTHxuN','979uVypJj','42ioCKjR','1231804bmvwGp','414Etgkqu','496085zjwdTh','7471SIwgmn'];a87_0x2241=function(){return _0x40ed14;};return a87_0x2241();}(function(_0x1cba62,_0x5ae57b){const _0x5aa8a6=a87_0x2cfc,_0x40f9af=_0x1cba62();while(!![]){try{const _0x3b4c81=-parseInt(_0x5aa8a6(0xf6))/0x1*(-parseInt(_0x5aa8a6(0xfa))/0x2)+-parseInt(_0x5aa8a6(0xfb))/0x3*(-parseInt(_0x5aa8a6(0xf8))/0x4)+parseInt(_0x5aa8a6(0xf5))/0x5*(parseInt(_0x5aa8a6(0xfe))/0x6)+-parseInt(_0x5aa8a6(0xf3))/0x7+-parseInt(_0x5aa8a6(0xf7))/0x8+parseInt(_0x5aa8a6(0xf4))/0x9*(-parseInt(_0x5aa8a6(0xfc))/0xa)+-parseInt(_0x5aa8a6(0xfd))/0xb*(-parseInt(_0x5aa8a6(0xf9))/0xc);if(_0x3b4c81===_0x5ae57b)break;else _0x40f9af['push'](_0x40f9af['shift']());}catch(_0x104d29){_0x40f9af['push'](_0x40f9af['shift']());}}}(a87_0x2241,0xa1c55));import{bindUserAccount}from'../../commands/user-account/bind.js';function a87_0x2cfc(_0x2eb96b,_0x5789f4){_0x2eb96b=_0x2eb96b-0xf3;const _0x22411c=a87_0x2241();let _0x2cfce=_0x22411c[_0x2eb96b];return _0x2cfce;}export const userAccountDefinitions=[bindUserAccount];
1
+ (function(_0x5983e1,_0x5c8e40){const _0x441eee=a88_0x5150,_0x181d68=_0x5983e1();while(!![]){try{const _0x30bec8=-parseInt(_0x441eee(0x1ec))/0x1*(parseInt(_0x441eee(0x1eb))/0x2)+-parseInt(_0x441eee(0x1f0))/0x3*(-parseInt(_0x441eee(0x1ee))/0x4)+parseInt(_0x441eee(0x1f2))/0x5+parseInt(_0x441eee(0x1f3))/0x6*(-parseInt(_0x441eee(0x1f1))/0x7)+parseInt(_0x441eee(0x1f4))/0x8*(parseInt(_0x441eee(0x1ed))/0x9)+-parseInt(_0x441eee(0x1ea))/0xa+parseInt(_0x441eee(0x1ef))/0xb;if(_0x30bec8===_0x5c8e40)break;else _0x181d68['push'](_0x181d68['shift']());}catch(_0x5d1e27){_0x181d68['push'](_0x181d68['shift']());}}}(a88_0x145f,0x4c918));import{bindUserAccount}from'../../commands/user-account/bind.js';function a88_0x5150(_0x6c5b5f,_0x286b37){_0x6c5b5f=_0x6c5b5f-0x1ea;const _0x145fd2=a88_0x145f();let _0x5150e9=_0x145fd2[_0x6c5b5f];return _0x5150e9;}function a88_0x145f(){const _0x29784e=['303sfBmuc','1827hqcbJW','2364PyygEg','3592446aWXjUZ','1803ckMoTK','7bPFGtN','1572085NHriZc','1114452QlgDxz','16232nkECRe','3866460KGbJFM','3446RjANtA'];a88_0x145f=function(){return _0x29784e;};return a88_0x145f();}export const userAccountDefinitions=[bindUserAccount];
@@ -1 +1 @@
1
- function a88_0x31b2(_0x25b9b0,_0x4584bd){_0x25b9b0=_0x25b9b0-0x1a0;const _0xd849b3=a88_0xd849();let _0x31b217=_0xd849b3[_0x25b9b0];return _0x31b217;}const a88_0x37501b=a88_0x31b2;(function(_0x17f866,_0x2928b2){const _0x3b5905=a88_0x31b2,_0x20d681=_0x17f866();while(!![]){try{const _0x4b95e4=-parseInt(_0x3b5905(0x1c2))/0x1+-parseInt(_0x3b5905(0x1b3))/0x2+-parseInt(_0x3b5905(0x1dc))/0x3*(-parseInt(_0x3b5905(0x1bf))/0x4)+parseInt(_0x3b5905(0x1d3))/0x5*(parseInt(_0x3b5905(0x1b0))/0x6)+-parseInt(_0x3b5905(0x1bd))/0x7+-parseInt(_0x3b5905(0x1c0))/0x8*(-parseInt(_0x3b5905(0x1d2))/0x9)+parseInt(_0x3b5905(0x1d7))/0xa;if(_0x4b95e4===_0x2928b2)break;else _0x20d681['push'](_0x20d681['shift']());}catch(_0x170ee4){_0x20d681['push'](_0x20d681['shift']());}}}(a88_0xd849,0x3778a));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':a88_0x37501b(0x1d0),'type':a88_0x37501b(0x1bb),'description':'App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default'},{'name':a88_0x37501b(0x1c9),'type':'string','description':a88_0x37501b(0x1ac)},{'name':a88_0x37501b(0x1b7),'type':'string','description':a88_0x37501b(0x1a5),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x5d1bb5,_0x533929){const _0xf0115b=a88_0x37501b,_0x254266=_0x5d1bb5[_0xf0115b(0x1d1)](_0xf0115b(0x1d0))[_0xf0115b(0x1db)](),_0x404aa2=_0x5d1bb5[_0xf0115b(0x1d1)]('appcode')[_0xf0115b(0x1db)](),_0x4fe281=_0x5d1bb5[_0xf0115b(0x1d1)]('env')['trim'](),_0xa99771=resolveWorkspaceEnv(_0x4fe281||_0x5d1bb5['envName']||DEFAULT_CONFIG_VALUES[_0xf0115b(0x1b7)]);if(!_0x254266&&!_0x404aa2)throw CliErrors[_0xf0115b(0x1ab)]('Missing\x20workspace\x20app\x20selector.',_0xf0115b(0x1cb)+CLI_BIN_NAME+_0xf0115b(0x1c7)+_0x533929+_0xf0115b(0x1ad)+CLI_BIN_NAME+_0xf0115b(0x1c7)+_0x533929+_0xf0115b(0x1a9));if(_0x254266&&_0x404aa2)throw CliErrors[_0xf0115b(0x1ab)](_0xf0115b(0x1b1),'Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.');const _0x1ae58f=resolveWriteConfigPath(_0xf0115b(0x1c5)),_0x49f478=readConfigFile(_0x1ae58f);assertWorkspaceCommandState(_0x533929,_0x49f478);const _0x28e628=_0x404aa2||await resolveRemoteAppCode({'command':_0x533929,'appName':_0x254266,'env':_0xa99771,'accessKey':_0x5d1bb5[_0xf0115b(0x1c1)]});return writeWorkspaceConfig({'command':_0x533929,'appName':_0x254266,'appcode':_0x28e628,'env':_0xa99771,'shouldWriteEnv':!!_0x4fe281,'accessKey':_0x5d1bb5[_0xf0115b(0x1c1)]},_0x1ae58f,_0x49f478),{'ok':!![],'data':{'configPath':_0x1ae58f,'app':_0x254266||null,'appcode':_0x28e628,'env':_0x4fe281?_0xa99771:null,'accessKeyWritten':![],'command':_0xf0115b(0x1cc)+_0x533929},'message':buildWorkspaceMessage(_0x1ae58f,_0x254266,_0x28e628,_0x4fe281?_0xa99771:undefined)};}async function resolveRemoteAppCode(_0x3d0d0d){const _0x43a5ca=a88_0x37501b;if(!_0x3d0d0d['accessKey'])throw CliErrors[_0x43a5ca(0x1b8)](_0x43a5ca(0x1d8)+CLI_BIN_NAME+_0x43a5ca(0x1c7)+_0x3d0d0d['command']+'.');const {setActiveAK:_0x3690c2}=await import(_0x43a5ca(0x1a0)),{getRemoteAppList:_0x429891}=await import(_0x43a5ca(0x1ba));_0x3690c2(_0x3d0d0d[_0x43a5ca(0x1c1)]);const _0x37d391=await _0x429891({'env':_0x3d0d0d[_0x43a5ca(0x1b7)],'accessKey':_0x3d0d0d[_0x43a5ca(0x1c1)],'noCache':![]}),_0x182b28=findAppByName(_0x37d391['items'],_0x3d0d0d[_0x43a5ca(0x1bc)]);if(_0x182b28&&!isRuntimeAccessibleApp(_0x182b28))throw runtimeInaccessibleAppError(_0x182b28,'\x22'+_0x3d0d0d[_0x43a5ca(0x1bc)]+'\x22');const _0x337ec0=_0x182b28?.[_0x43a5ca(0x1b9)]?.[_0x43a5ca(0x1db)]();if(_0x337ec0)return _0x337ec0;const _0x379c08=_0x37d391['items'][_0x43a5ca(0x1b4)](_0x2cf05d=>_0x2cf05d[_0x43a5ca(0x1bc)])[_0x43a5ca(0x1ae)](Boolean),_0x5b78cf=_0x379c08['length']?'Available\x20apps:\x20'+Array[_0x43a5ca(0x1d9)](new Set(_0x379c08))['join'](',\x20')+'.':_0x43a5ca(0x1ce)+CLI_BIN_NAME+_0x43a5ca(0x1aa);throw CliErrors[_0x43a5ca(0x1ab)](_0x43a5ca(0x1b2)+_0x3d0d0d[_0x43a5ca(0x1bc)]+_0x43a5ca(0x1a6),_0x5b78cf);}function writeWorkspaceConfig(_0x18e148,_0xd7f96f,_0x548cd5){const _0x432ec2=a88_0x37501b;_0x18e148['shouldWriteEnv']&&(_0x548cd5[_0x432ec2(0x1b7)]=_0x18e148[_0x432ec2(0x1b7)]);if(_0x18e148[_0x432ec2(0x1bc)]){const _0x151556=isRecord(_0x548cd5[_0x432ec2(0x1a8)])?{..._0x548cd5['apps']}:{},_0x194798=isRecord(_0x151556[_0x18e148[_0x432ec2(0x1bc)]])?_0x151556[_0x18e148[_0x432ec2(0x1bc)]]:{};return _0x151556[_0x18e148[_0x432ec2(0x1bc)]]={..._0x194798,'appcode':_0x18e148[_0x432ec2(0x1c9)]},_0x548cd5['apps']=_0x151556,_0x548cd5['defaultApp']=_0x18e148['appName'],delete _0x548cd5[_0x432ec2(0x1c9)],delete _0x548cd5[_0x432ec2(0x1d0)],writeAndReturn(_0xd7f96f,_0x548cd5);}return _0x548cd5['appcode']=_0x18e148[_0x432ec2(0x1c9)],delete _0x548cd5[_0x432ec2(0x1be)],delete _0x548cd5['app'],writeAndReturn(_0xd7f96f,_0x548cd5);}function writeAndReturn(_0x3d786a,_0x2b0920){return writeConfigFile(_0x3d786a,_0x2b0920),_0x3d786a;}function resolveWorkspaceEnv(_0x1fcf04){const _0x5cace5=a88_0x37501b;if(RUNTIME_ENV_VALUES[_0x5cace5(0x1b5)](_0x1fcf04))return _0x1fcf04;throw CliErrors[_0x5cace5(0x1ab)](_0x5cace5(0x1a7)+_0x1fcf04+_0x5cace5(0x1c6)+RUNTIME_ENV_VALUES[_0x5cace5(0x1c8)](',\x20'));}function buildWorkspaceMessage(_0x334353,_0x339258,_0x5e963e,_0x2b64f8){const _0x54fbcf=a88_0x37501b,_0x29f4f8=_0x339258?_0x339258+'\x20('+_0x5e963e+')':_0x5e963e,_0x449322=_0x2b64f8?_0x54fbcf(0x1ca)+_0x2b64f8:'';return _0x54fbcf(0x1cf)+_0x334353+'\x0aDefault\x20app:\x20'+_0x29f4f8+_0x449322+'\x0aAccessKey:\x20not\x20written';}function isRecord(_0x5d13c8){const _0xd96a42=a88_0x37501b;return typeof _0x5d13c8===_0xd96a42(0x1a4)&&_0x5d13c8!==null&&!Array[_0xd96a42(0x1d4)](_0x5d13c8);}function hasWorkspaceAppBinding(_0x45fb30){const _0x999709=a88_0x37501b;if(typeof _0x45fb30[_0x999709(0x1c9)]===_0x999709(0x1bb)&&_0x45fb30['appcode'][_0x999709(0x1db)]()[_0x999709(0x1c4)]>0x0)return!![];if(typeof _0x45fb30[_0x999709(0x1be)]!==_0x999709(0x1bb)||!_0x45fb30[_0x999709(0x1be)]['trim']())return![];if(!isRecord(_0x45fb30[_0x999709(0x1a8)]))return![];const _0x2b8d29=_0x45fb30[_0x999709(0x1a8)][_0x45fb30[_0x999709(0x1be)][_0x999709(0x1db)]()];return isRecord(_0x2b8d29)&&typeof _0x2b8d29[_0x999709(0x1c9)]==='string'&&_0x2b8d29[_0x999709(0x1c9)][_0x999709(0x1db)]()[_0x999709(0x1c4)]>0x0;}function assertWorkspaceCommandState(_0x3bc146,_0x7d4d97){const _0x561a5b=a88_0x37501b,_0x456596=hasWorkspaceAppBinding(_0x7d4d97);if(_0x3bc146==='init'&&_0x456596)throw CliErrors[_0x561a5b(0x1ab)]('Workspace\x20app\x20context\x20is\x20already\x20initialized.',_0x561a5b(0x1d5)+CLI_BIN_NAME+_0x561a5b(0x1a2)+CLI_BIN_NAME+'\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.');if(_0x3bc146===_0x561a5b(0x1b6)&&!_0x456596)throw CliErrors[_0x561a5b(0x1ab)](_0x561a5b(0x1af),'Run\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`'+CLI_BIN_NAME+_0x561a5b(0x1cd));}function makeWorkspaceCommand(_0x35c759){const _0x189b32=a88_0x37501b;return{'service':_0x189b32(0x1a1),'command':_0x35c759,'description':_0x35c759===_0x189b32(0x1d6)?_0x189b32(0x1a3):'Change\x20the\x20app\x20context\x20already\x20bound\x20to\x20the\x20current\x20working\x20directory','risk':_0x189b32(0x1da),'confirmationDescription':_0x35c759===_0x189b32(0x1d6)?'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.':_0x189b32(0x1c3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x12e7db){return executeWorkspaceUse(_0x12e7db,_0x35c759);}};}function a88_0xd849(){const _0x3f3fff=['Run\x20`','Workspace\x20configured.\x0aConfig\x20file:\x20','app','str','63vFwzsP','5GImqYi','isArray','Use\x20`','init','462060DDciZU','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','from','write','trim','21DeXRzJ','../../core/api-client.js','workspace','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','Initialize\x20app\x20context\x20for\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet','object','Target\x20environment','\x22\x20not\x20found.','Invalid\x20env\x20\x22','apps','\x20--appcode\x20<code>\x20[--env\x20daily]','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','validation','App\x20code\x20to\x20bind\x20directly','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','filter','Workspace\x20app\x20context\x20is\x20not\x20initialized.','221772jGKGoZ','Conflicting\x20workspace\x20app\x20selectors.','App\x20\x22','232654EZRGtT','map','includes','use','env','authRequired','appCode','../../commands/app/remote-source.js','string','appName','1827798szcECE','defaultApp','155404pLWdwp','466968sodniq','accessKey','159071wFmPHd','Updates\x20the\x20app\x20binding\x20already\x20present\x20in\x20the\x20current\x20working\x20directory\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','length','project','\x22.\x20Allowed:\x20','\x20workspace\x20','join','appcode','\x0aEnv:\x20','Usage:\x20','workspace\x20','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.'];a88_0xd849=function(){return _0x3f3fff;};return a88_0xd849();}export const workspaceDefinitions=[makeWorkspaceCommand(a88_0x37501b(0x1d6)),makeWorkspaceCommand(a88_0x37501b(0x1b6))];
1
+ const a89_0x57482e=a89_0x3448;(function(_0x536c9d,_0x92b4b0){const _0x1c7606=a89_0x3448,_0x4c4a7f=_0x536c9d();while(!![]){try{const _0x159559=parseInt(_0x1c7606(0x215))/0x1+parseInt(_0x1c7606(0x1fd))/0x2+parseInt(_0x1c7606(0x201))/0x3+-parseInt(_0x1c7606(0x214))/0x4*(parseInt(_0x1c7606(0x1e3))/0x5)+parseInt(_0x1c7606(0x1eb))/0x6+-parseInt(_0x1c7606(0x219))/0x7+parseInt(_0x1c7606(0x1de))/0x8*(-parseInt(_0x1c7606(0x20e))/0x9);if(_0x159559===_0x92b4b0)break;else _0x4c4a7f['push'](_0x4c4a7f['shift']());}catch(_0x37e5c3){_0x4c4a7f['push'](_0x4c4a7f['shift']());}}}(a89_0x1b75,0xcdc2f));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a89_0x57482e(0x1f5),'type':a89_0x57482e(0x1ee),'description':a89_0x57482e(0x207)},{'name':a89_0x57482e(0x1ff),'type':'string','description':a89_0x57482e(0x1e6)},{'name':a89_0x57482e(0x20b),'type':a89_0x57482e(0x1ee),'description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x39eb71,_0x2cfd21){const _0xf816d8=a89_0x57482e,_0x139a20=_0x39eb71[_0xf816d8(0x1f4)](_0xf816d8(0x1f5))[_0xf816d8(0x205)](),_0x3f2345=_0x39eb71[_0xf816d8(0x1f4)](_0xf816d8(0x1ff))[_0xf816d8(0x205)](),_0x3eef84=_0x39eb71[_0xf816d8(0x1f4)](_0xf816d8(0x20b))[_0xf816d8(0x205)](),_0x359c0d=resolveWorkspaceEnv(_0x3eef84||_0x39eb71[_0xf816d8(0x1ef)]||DEFAULT_CONFIG_VALUES[_0xf816d8(0x20b)]);if(!_0x139a20&&!_0x3f2345)throw CliErrors[_0xf816d8(0x20a)]('Missing\x20workspace\x20app\x20selector.',_0xf816d8(0x20d)+CLI_BIN_NAME+_0xf816d8(0x200)+_0x2cfd21+_0xf816d8(0x1f9)+CLI_BIN_NAME+_0xf816d8(0x200)+_0x2cfd21+'\x20--appcode\x20<code>\x20[--env\x20daily]');if(_0x139a20&&_0x3f2345)throw CliErrors['validation'](_0xf816d8(0x1df),'Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.');const _0x3d96aa=resolveWriteConfigPath(_0xf816d8(0x1e0)),_0x290229=readConfigFile(_0x3d96aa);assertWorkspaceCommandState(_0x2cfd21,_0x290229);const _0x40b3c7=_0x3f2345||await resolveRemoteAppCode({'command':_0x2cfd21,'appName':_0x139a20,'env':_0x359c0d,'accessKey':_0x39eb71[_0xf816d8(0x1fa)]});return writeWorkspaceConfig({'command':_0x2cfd21,'appName':_0x139a20,'appcode':_0x40b3c7,'env':_0x359c0d,'shouldWriteEnv':!!_0x3eef84,'accessKey':_0x39eb71[_0xf816d8(0x1fa)]},_0x3d96aa,_0x290229),{'ok':!![],'data':{'configPath':_0x3d96aa,'app':_0x139a20||null,'appcode':_0x40b3c7,'env':_0x3eef84?_0x359c0d:null,'accessKeyWritten':![],'command':_0xf816d8(0x1ec)+_0x2cfd21},'message':buildWorkspaceMessage(_0x3d96aa,_0x139a20,_0x40b3c7,_0x3eef84?_0x359c0d:undefined)};}async function resolveRemoteAppCode(_0x4e6ac1){const _0x54f377=a89_0x57482e;if(!_0x4e6ac1[_0x54f377(0x1fa)])throw CliErrors[_0x54f377(0x21a)](_0x54f377(0x1e4)+CLI_BIN_NAME+_0x54f377(0x200)+_0x4e6ac1[_0x54f377(0x210)]+'.');const {setActiveAK:_0x5881ba}=await import(_0x54f377(0x1fc)),{getRemoteAppList:_0x411d77}=await import('../../commands/app/remote-source.js');_0x5881ba(_0x4e6ac1['accessKey']);const _0x12581c=await _0x411d77({'env':_0x4e6ac1[_0x54f377(0x20b)],'accessKey':_0x4e6ac1[_0x54f377(0x1fa)],'noCache':![]}),_0x534807=findAppByName(_0x12581c[_0x54f377(0x20f)],_0x4e6ac1['appName']);if(_0x534807&&!isRuntimeAccessibleApp(_0x534807))throw runtimeInaccessibleAppError(_0x534807,'\x22'+_0x4e6ac1[_0x54f377(0x20c)]+'\x22');const _0x2e8055=_0x534807?.[_0x54f377(0x1f1)]?.[_0x54f377(0x205)]();if(_0x2e8055)return _0x2e8055;const _0x3f9caa=_0x12581c[_0x54f377(0x20f)][_0x54f377(0x211)](_0x4a3756=>_0x4a3756[_0x54f377(0x20c)])[_0x54f377(0x208)](Boolean),_0x41d6a0=_0x3f9caa[_0x54f377(0x1fe)]?_0x54f377(0x202)+Array['from'](new Set(_0x3f9caa))['join'](',\x20')+'.':_0x54f377(0x1f7)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.';throw CliErrors['validation'](_0x54f377(0x1f6)+_0x4e6ac1[_0x54f377(0x20c)]+_0x54f377(0x1e7),_0x41d6a0);}function writeWorkspaceConfig(_0x2f8437,_0x3c2153,_0x29bd67){const _0x3ffb15=a89_0x57482e;_0x2f8437[_0x3ffb15(0x1ea)]&&(_0x29bd67[_0x3ffb15(0x20b)]=_0x2f8437[_0x3ffb15(0x20b)]);if(_0x2f8437['appName']){const _0x4e629c=isRecord(_0x29bd67['apps'])?{..._0x29bd67['apps']}:{},_0x3866f2=isRecord(_0x4e629c[_0x2f8437[_0x3ffb15(0x20c)]])?_0x4e629c[_0x2f8437['appName']]:{};return _0x4e629c[_0x2f8437[_0x3ffb15(0x20c)]]={..._0x3866f2,'appcode':_0x2f8437[_0x3ffb15(0x1ff)]},_0x29bd67[_0x3ffb15(0x216)]=_0x4e629c,_0x29bd67[_0x3ffb15(0x21b)]=_0x2f8437[_0x3ffb15(0x20c)],delete _0x29bd67['appcode'],delete _0x29bd67[_0x3ffb15(0x1f5)],writeAndReturn(_0x3c2153,_0x29bd67);}return _0x29bd67['appcode']=_0x2f8437['appcode'],delete _0x29bd67['defaultApp'],delete _0x29bd67[_0x3ffb15(0x1f5)],writeAndReturn(_0x3c2153,_0x29bd67);}function writeAndReturn(_0x1c0666,_0x889775){return writeConfigFile(_0x1c0666,_0x889775),_0x1c0666;}function resolveWorkspaceEnv(_0x2f92d0){const _0x5f0c4c=a89_0x57482e;if(RUNTIME_ENV_VALUES[_0x5f0c4c(0x209)](_0x2f92d0))return _0x2f92d0;throw CliErrors[_0x5f0c4c(0x20a)]('Invalid\x20env\x20\x22'+_0x2f92d0+_0x5f0c4c(0x1f0)+RUNTIME_ENV_VALUES[_0x5f0c4c(0x204)](',\x20'));}function buildWorkspaceMessage(_0x42c47a,_0x5082e2,_0x29f4d4,_0x59ca48){const _0x4789c7=a89_0x57482e,_0x28ad5c=_0x5082e2?_0x5082e2+'\x20('+_0x29f4d4+')':_0x29f4d4,_0x68e665=_0x59ca48?_0x4789c7(0x1f2)+_0x59ca48:'';return _0x4789c7(0x218)+_0x42c47a+'\x0aDefault\x20app:\x20'+_0x28ad5c+_0x68e665+_0x4789c7(0x1fb);}function a89_0x3448(_0x4a76ff,_0x5d0a93){_0x4a76ff=_0x4a76ff-0x1dd;const _0x1b7565=a89_0x1b75();let _0x3448fb=_0x1b7565[_0x4a76ff];return _0x3448fb;}function isRecord(_0x11e72f){const _0x1cc522=a89_0x57482e;return typeof _0x11e72f===_0x1cc522(0x1e8)&&_0x11e72f!==null&&!Array[_0x1cc522(0x1e1)](_0x11e72f);}function hasWorkspaceAppBinding(_0x5d8cf4){const _0x4fe1e0=a89_0x57482e;if(typeof _0x5d8cf4[_0x4fe1e0(0x1ff)]==='string'&&_0x5d8cf4[_0x4fe1e0(0x1ff)][_0x4fe1e0(0x205)]()['length']>0x0)return!![];if(typeof _0x5d8cf4[_0x4fe1e0(0x21b)]!==_0x4fe1e0(0x1ee)||!_0x5d8cf4['defaultApp'][_0x4fe1e0(0x205)]())return![];if(!isRecord(_0x5d8cf4[_0x4fe1e0(0x216)]))return![];const _0x90d636=_0x5d8cf4[_0x4fe1e0(0x216)][_0x5d8cf4[_0x4fe1e0(0x21b)]['trim']()];return isRecord(_0x90d636)&&typeof _0x90d636[_0x4fe1e0(0x1ff)]===_0x4fe1e0(0x1ee)&&_0x90d636[_0x4fe1e0(0x1ff)][_0x4fe1e0(0x205)]()['length']>0x0;}function assertWorkspaceCommandState(_0x14ebae,_0x25b4a5){const _0x1a3cd4=a89_0x57482e,_0x39f2a4=hasWorkspaceAppBinding(_0x25b4a5);if(_0x14ebae===_0x1a3cd4(0x1e2)&&_0x39f2a4)throw CliErrors[_0x1a3cd4(0x20a)](_0x1a3cd4(0x1dd),'Use\x20`'+CLI_BIN_NAME+_0x1a3cd4(0x217)+CLI_BIN_NAME+_0x1a3cd4(0x1e5));if(_0x14ebae===_0x1a3cd4(0x1e9)&&!_0x39f2a4)throw CliErrors[_0x1a3cd4(0x20a)](_0x1a3cd4(0x212),_0x1a3cd4(0x1f7)+CLI_BIN_NAME+_0x1a3cd4(0x213)+CLI_BIN_NAME+_0x1a3cd4(0x1f8));}function a89_0x1b75(){const _0x351751=['init','280435lAdhDU','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','App\x20code\x20to\x20bind\x20directly','\x22\x20not\x20found.','object','use','shouldWriteEnv','5752716FCFdOK','workspace\x20','write','string','envName','\x22.\x20Allowed:\x20','appCode','\x0aEnv:\x20','workspace','str','app','App\x20\x22','Run\x20`','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','accessKey','\x0aAccessKey:\x20not\x20written','../../core/api-client.js','2595218SqfPyX','length','appcode','\x20workspace\x20','1989660Lcfzub','Available\x20apps:\x20','Initialize\x20app\x20context\x20for\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet','join','trim','Writes\x20Lovrabet\x20project\x20config\x20in\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet,\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','filter','includes','validation','env','appName','Usage:\x20','11259ITfEle','items','command','map','Workspace\x20app\x20context\x20is\x20not\x20initialized.','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','36yPsZYA','1122225loQVIN','apps','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','Workspace\x20configured.\x0aConfig\x20file:\x20','8561574pHadSS','authRequired','defaultApp','Workspace\x20app\x20context\x20is\x20already\x20initialized.','9408nmjFlU','Conflicting\x20workspace\x20app\x20selectors.','project','isArray'];a89_0x1b75=function(){return _0x351751;};return a89_0x1b75();}function makeWorkspaceCommand(_0x282359){const _0x421c73=a89_0x57482e;return{'service':_0x421c73(0x1f3),'command':_0x282359,'description':_0x282359==='init'?_0x421c73(0x203):'Change\x20the\x20app\x20context\x20already\x20bound\x20to\x20the\x20current\x20working\x20directory','risk':_0x421c73(0x1ed),'confirmationDescription':_0x282359==='init'?_0x421c73(0x206):'Updates\x20the\x20app\x20binding\x20already\x20present\x20in\x20the\x20current\x20working\x20directory\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x4a64ec){return executeWorkspaceUse(_0x4a64ec,_0x282359);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a89_0x57482e(0x1e2)),makeWorkspaceCommand(a89_0x57482e(0x1e9))];
@@ -1 +1 @@
1
- const a89_0x4111c2=a89_0x4c54;(function(_0x111337,_0x3b871a){const _0x45a65f=a89_0x4c54,_0x34c15e=_0x111337();while(!![]){try{const _0x428f7b=parseInt(_0x45a65f(0x174))/0x1+-parseInt(_0x45a65f(0x14d))/0x2+parseInt(_0x45a65f(0x153))/0x3*(parseInt(_0x45a65f(0x167))/0x4)+-parseInt(_0x45a65f(0x158))/0x5*(parseInt(_0x45a65f(0x175))/0x6)+-parseInt(_0x45a65f(0x150))/0x7+-parseInt(_0x45a65f(0x17e))/0x8*(-parseInt(_0x45a65f(0x173))/0x9)+parseInt(_0x45a65f(0x15c))/0xa;if(_0x428f7b===_0x3b871a)break;else _0x34c15e['push'](_0x34c15e['shift']());}catch(_0x56bccc){_0x34c15e['push'](_0x34c15e['shift']());}}}(a89_0x2146,0xa6484));function a89_0x2146(){const _0x32454c=['agentDomain','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','length','304BOIFWN','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','user-domain',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','Invalid\x20','kbDomain','domains','validation','Enterprise\x20','apiDomain','pathname','object','9HtFveA','65704JhmjSO','72pQkhlY','isArray','lovrabet-cli','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','legacy','enterprise-v1','trim','platformDomain','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.','9398544uxkhDO','password','kbServiceDomain','runtimeDomain','userDomain','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','join','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','\x22\x20is\x20not\x20a\x20valid\x20URL.','parse','includes','cwd','string','hash','skillHubDomain','881266LnbGoo','search','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','7738619CjpNKg','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','skillDomain','34245yeEEeY','str','host','\x22\x20and\x20kind\x20\x22','runtime-domain','159730gLgWni','kind','mode',':\x20\x22','5025320UDBrCN','Invalid\x20domain\x20config\x20JSON:\x20','origin','Unsupported\x20domain\x20config\x20field(s):\x20','filter','keys','domain-config','protocol'];a89_0x2146=function(){return _0x32454c;};return a89_0x2146();}import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';function a89_0x4c54(_0x38354a,_0x3dfcf3){_0x38354a=_0x38354a-0x145;const _0x2146d7=a89_0x2146();let _0x4c54b4=_0x2146d7[_0x38354a];return _0x4c54b4;}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=[a89_0x4111c2(0x182),a89_0x4111c2(0x170),a89_0x4111c2(0x181),a89_0x4111c2(0x152),'kbServiceDomain'];const DOMAIN_FLAGS={'userDomain':a89_0x4111c2(0x169),'apiDomain':'api-domain','runtimeDomain':a89_0x4111c2(0x157),'skillDomain':'skill-domain','kbServiceDomain':'kb-service-domain'};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a89_0x4111c2(0x155),a89_0x4111c2(0x164),a89_0x4111c2(0x17c),a89_0x4111c2(0x14c),a89_0x4111c2(0x16c)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a89_0x4111c2(0x182),'apiDomain':a89_0x4111c2(0x170),'runtimeDomain':a89_0x4111c2(0x181),'skillDomain':a89_0x4111c2(0x152),'kbServiceDomain':a89_0x4111c2(0x180)},ROUTING_CONSUMER=a89_0x4111c2(0x177);export function normalizeDomainOrigin(_0x576ff8,_0x52aa19){const _0x406b0=a89_0x4111c2;if(typeof _0x52aa19!==_0x406b0(0x14a)||!_0x52aa19[_0x406b0(0x17b)]())throw CliErrors[_0x406b0(0x16e)](_0x406b0(0x16b)+_0x576ff8+_0x406b0(0x16a));let _0x22ade7;try{_0x22ade7=new URL(_0x52aa19[_0x406b0(0x17b)]());}catch{throw CliErrors[_0x406b0(0x16e)](_0x406b0(0x16b)+_0x576ff8+_0x406b0(0x15b)+_0x52aa19+_0x406b0(0x146));}if(_0x22ade7['protocol']!=='https:'||_0x22ade7['username']||_0x22ade7[_0x406b0(0x17f)]||_0x22ade7[_0x406b0(0x171)]!=='/'&&_0x22ade7[_0x406b0(0x171)]!==''||_0x22ade7[_0x406b0(0x14e)]||_0x22ade7[_0x406b0(0x14b)])throw CliErrors[_0x406b0(0x16e)](_0x406b0(0x16b)+_0x576ff8+':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.',_0x406b0(0x165));return _0x22ade7[_0x406b0(0x15e)];}export function normalizeRoutingDomainValue(_0x3c4e8d,_0x4233f0){const _0x2d054b=a89_0x4111c2;if(typeof _0x4233f0===_0x2d054b(0x14a))return normalizeDomainOrigin(_0x3c4e8d,_0x4233f0);if(!_0x4233f0||typeof _0x4233f0!==_0x2d054b(0x172)||Array[_0x2d054b(0x176)](_0x4233f0))throw CliErrors[_0x2d054b(0x16e)](_0x2d054b(0x16b)+_0x3c4e8d+':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.');const _0x2823b8=_0x4233f0,_0x5249ba=_0x2823b8[ROUTING_CONSUMER]??_0x2823b8['default'];if(_0x5249ba===undefined)throw CliErrors[_0x2d054b(0x16e)](_0x2d054b(0x16f)+_0x3c4e8d+_0x2d054b(0x14f)+ROUTING_CONSUMER+'\x20and\x20has\x20no\x20default.');return normalizeDomainOrigin(_0x3c4e8d,_0x5249ba);}export function resolveEnterpriseRoutingConfig(_0xe463ee){const _0x284f65=a89_0x4111c2;if(_0xe463ee===undefined)return undefined;if(!_0xe463ee||typeof _0xe463ee!=='object'||Array['isArray'](_0xe463ee))throw CliErrors[_0x284f65(0x16e)](_0x284f65(0x17d));return parseEnterpriseRoutingManifest(_0xe463ee)[_0x284f65(0x16d)];}export function readDomainConfigInput(_0x3ddc89){const _0x1c17bf=a89_0x4111c2,_0x121f17=isAbsolute(_0x3ddc89)?_0x3ddc89:resolve(process[_0x1c17bf(0x149)](),_0x3ddc89);if(!existsSync(_0x121f17))throw CliErrors['validation']('Domain\x20config\x20file\x20not\x20found:\x20'+_0x121f17);let _0x391e22;try{_0x391e22=JSON[_0x1c17bf(0x147)](readFileSync(_0x121f17,'utf8'));}catch{throw CliErrors[_0x1c17bf(0x16e)](_0x1c17bf(0x15d)+_0x121f17);}if(!_0x391e22||typeof _0x391e22!=='object'||Array[_0x1c17bf(0x176)](_0x391e22))throw CliErrors[_0x1c17bf(0x16e)](_0x1c17bf(0x178));const _0x4bf0dc=_0x391e22;if(_0x1c17bf(0x163)in _0x4bf0dc)return parseEnterpriseRoutingManifest(_0x4bf0dc);const _0x2b4030=Object[_0x1c17bf(0x161)](_0x4bf0dc)['filter'](_0x4f8863=>!DOMAIN_CONFIG_FIELDS[_0x1c17bf(0x148)](_0x4f8863));if(_0x2b4030['length']>0x0)throw CliErrors[_0x1c17bf(0x16e)](_0x1c17bf(0x15f)+_0x2b4030[_0x1c17bf(0x184)](',\x20'),'Allowed\x20fields:\x20'+DOMAIN_CONFIG_FIELDS['join'](',\x20'));const _0x319a98={};for(const _0x14ce19 of DOMAIN_CONFIG_FIELDS){_0x4bf0dc[_0x14ce19]!==undefined&&(_0x319a98[_0x14ce19]=normalizeDomainOrigin(_0x14ce19,_0x4bf0dc[_0x14ce19]));}if(Object[_0x1c17bf(0x161)](_0x319a98)['length']===0x0)throw CliErrors[_0x1c17bf(0x16e)]('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return{'mode':'legacy','domains':_0x319a98};}export function readDomainConfig(_0x45baa2){const _0x41c1fd=a89_0x4111c2;return readDomainConfigInput(_0x45baa2)[_0x41c1fd(0x16d)];}export function resolveDomainConfigInput(_0x4249f4){const _0x139cdf=a89_0x4111c2,_0x581aa6=(_0x4249f4[_0x139cdf(0x154)](_0x139cdf(0x162))||'')['trim'](),_0x35a677=_0x581aa6?readDomainConfigInput(_0x581aa6):{'mode':_0x139cdf(0x179),'domains':{}},_0x5cbd9a=DOMAIN_CONFIG_FIELDS[_0x139cdf(0x160)](_0x35e55d=>Boolean((_0x4249f4[_0x139cdf(0x154)](DOMAIN_FLAGS[_0x35e55d])||'')[_0x139cdf(0x17b)]()));if(_0x35a677[_0x139cdf(0x15a)]===_0x139cdf(0x17a)&&_0x5cbd9a[_0x139cdf(0x166)]>0x0)throw CliErrors[_0x139cdf(0x16e)](_0x139cdf(0x183),_0x139cdf(0x151));for(const _0x5663c1 of DOMAIN_CONFIG_FIELDS){const _0x4f1764=(_0x4249f4['str'](DOMAIN_FLAGS[_0x5663c1])||'')['trim']();if(_0x4f1764)_0x35a677[_0x139cdf(0x16d)][_0x5663c1]=normalizeDomainOrigin(_0x5663c1,_0x4f1764);}return _0x35a677;}export function resolveDomainFlags(_0x5023c4){const _0x27816a=a89_0x4111c2;return resolveDomainConfigInput(_0x5023c4)[_0x27816a(0x16d)];}export function parseEnterpriseRoutingManifest(_0x535305){const _0x2fdd66=a89_0x4111c2;if(_0x535305[_0x2fdd66(0x163)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x535305[_0x2fdd66(0x159)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x2fdd66(0x16e)]('Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22'+ENTERPRISE_ROUTING_PROTOCOL+_0x2fdd66(0x156)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x535305[_0x2fdd66(0x16d)]||typeof _0x535305[_0x2fdd66(0x16d)]!=='object'||Array[_0x2fdd66(0x176)](_0x535305[_0x2fdd66(0x16d)]))throw CliErrors[_0x2fdd66(0x16e)](_0x2fdd66(0x145));const _0x1645b4=_0x535305['domains'],_0x4f0bc6=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x2fdd66(0x160)](_0x3ec0b9=>_0x1645b4[_0x3ec0b9]===undefined);if(_0x4f0bc6[_0x2fdd66(0x166)]>0x0)throw CliErrors['validation'](_0x2fdd66(0x168)+_0x4f0bc6['join'](',\x20'));const _0xf31eb={},_0x4ba50b={};for(const _0x36e628 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x59a6fb=_0x1645b4[_0x36e628];if(_0x59a6fb===undefined)continue;const _0x240de3=normalizeRoutingDomainValue(_0x36e628,_0x59a6fb);_0xf31eb[_0x36e628]=_0x240de3;const _0x6bc4b3=ENTERPRISE_TO_LOCAL_FIELD[_0x36e628];_0x6bc4b3&&(_0x4ba50b[_0x6bc4b3]=_0x240de3);}return{'mode':'enterprise-v1','domains':_0x4ba50b,'manifestDomains':_0xf31eb};}
1
+ const a90_0x42eb86=a90_0xe242;(function(_0x2437d9,_0x56721e){const _0x42fc3f=a90_0xe242,_0x4d5ef7=_0x2437d9();while(!![]){try{const _0x242c77=parseInt(_0x42fc3f(0x127))/0x1*(-parseInt(_0x42fc3f(0x101))/0x2)+parseInt(_0x42fc3f(0x126))/0x3+parseInt(_0x42fc3f(0x103))/0x4+parseInt(_0x42fc3f(0x129))/0x5*(parseInt(_0x42fc3f(0xf5))/0x6)+-parseInt(_0x42fc3f(0x12f))/0x7+-parseInt(_0x42fc3f(0xfc))/0x8+-parseInt(_0x42fc3f(0xf9))/0x9*(-parseInt(_0x42fc3f(0x105))/0xa);if(_0x242c77===_0x56721e)break;else _0x4d5ef7['push'](_0x4d5ef7['shift']());}catch(_0xc0b50f){_0x4d5ef7['push'](_0x4d5ef7['shift']());}}}(a90_0x1780,0x7373a));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';import{ENTERPRISE_ROUTING_DOMAIN_FIELDS,ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL,REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS}from'../generated/routing-contract.js';export const DOMAIN_CONFIG_FIELDS=[a90_0x42eb86(0x118),a90_0x42eb86(0x10b),a90_0x42eb86(0x109),a90_0x42eb86(0x116),a90_0x42eb86(0x10f)];const DOMAIN_FLAGS={'userDomain':'user-domain','apiDomain':'api-domain','runtimeDomain':'runtime-domain','skillDomain':a90_0x42eb86(0x11a),'kbServiceDomain':a90_0x42eb86(0x10d)};function a90_0xe242(_0xece6f,_0x2d5fa3){_0xece6f=_0xece6f-0xf4;const _0x1780b8=a90_0x1780();let _0xe24266=_0x1780b8[_0xece6f];return _0xe24266;}export const LEGACY_DOMAIN_CONFIG_FIELDS=['host',a90_0x42eb86(0xf8),'platformDomain',a90_0x42eb86(0x124),a90_0x42eb86(0xfb)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a90_0x42eb86(0x118),'apiDomain':'apiDomain','runtimeDomain':'runtimeDomain','skillDomain':a90_0x42eb86(0x116),'kbServiceDomain':a90_0x42eb86(0x10f)},ROUTING_CONSUMER=a90_0x42eb86(0x12d);export function normalizeDomainOrigin(_0x45fcb2,_0x484ab9){const _0x2c4364=a90_0x42eb86;if(typeof _0x484ab9!=='string'||!_0x484ab9[_0x2c4364(0xf6)]())throw CliErrors['validation'](_0x2c4364(0x10a)+_0x45fcb2+_0x2c4364(0x12b));let _0x1bbbe6;try{_0x1bbbe6=new URL(_0x484ab9['trim']());}catch{throw CliErrors['validation'](_0x2c4364(0x10a)+_0x45fcb2+':\x20\x22'+_0x484ab9+_0x2c4364(0x11c));}if(_0x1bbbe6['protocol']!==_0x2c4364(0x106)||_0x1bbbe6[_0x2c4364(0x117)]||_0x1bbbe6[_0x2c4364(0x11b)]||_0x1bbbe6[_0x2c4364(0x12c)]!=='/'&&_0x1bbbe6[_0x2c4364(0x12c)]!==''||_0x1bbbe6['search']||_0x1bbbe6['hash'])throw CliErrors[_0x2c4364(0xff)]('Invalid\x20'+_0x45fcb2+_0x2c4364(0x12a),_0x2c4364(0x107));return _0x1bbbe6[_0x2c4364(0x11f)];}export function normalizeRoutingDomainValue(_0xaec800,_0x284d89){const _0x3e1582=a90_0x42eb86;if(typeof _0x284d89==='string')return normalizeDomainOrigin(_0xaec800,_0x284d89);if(!_0x284d89||typeof _0x284d89!=='object'||Array['isArray'](_0x284d89))throw CliErrors['validation'](_0x3e1582(0x10a)+_0xaec800+_0x3e1582(0x12e));const _0x3deb6c=_0x284d89,_0x3b93ec=_0x3deb6c[ROUTING_CONSUMER]??_0x3deb6c['default'];if(_0x3b93ec===undefined)throw CliErrors[_0x3e1582(0xff)](_0x3e1582(0xfd)+_0xaec800+_0x3e1582(0x113)+ROUTING_CONSUMER+'\x20and\x20has\x20no\x20default.');return normalizeDomainOrigin(_0xaec800,_0x3b93ec);}export function resolveEnterpriseRoutingConfig(_0x3316aa){const _0x49708e=a90_0x42eb86;if(_0x3316aa===undefined)return undefined;if(!_0x3316aa||typeof _0x3316aa!==_0x49708e(0xf4)||Array[_0x49708e(0x121)](_0x3316aa))throw CliErrors[_0x49708e(0xff)]('Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.');return parseEnterpriseRoutingManifest(_0x3316aa)[_0x49708e(0x128)];}export function readDomainConfigInput(_0x468701){const _0x3380f0=a90_0x42eb86,_0x3cbbde=isAbsolute(_0x468701)?_0x468701:resolve(process[_0x3380f0(0x10c)](),_0x468701);if(!existsSync(_0x3cbbde))throw CliErrors[_0x3380f0(0xff)](_0x3380f0(0x108)+_0x3cbbde);let _0x1ea043;try{_0x1ea043=JSON[_0x3380f0(0x100)](readFileSync(_0x3cbbde,_0x3380f0(0x110)));}catch{throw CliErrors['validation']('Invalid\x20domain\x20config\x20JSON:\x20'+_0x3cbbde);}if(!_0x1ea043||typeof _0x1ea043!==_0x3380f0(0xf4)||Array['isArray'](_0x1ea043))throw CliErrors[_0x3380f0(0xff)](_0x3380f0(0xf7));const _0x494a81=_0x1ea043;if('protocol'in _0x494a81)return parseEnterpriseRoutingManifest(_0x494a81);const _0x512f13=Object['keys'](_0x494a81)[_0x3380f0(0x111)](_0x4e89ec=>!DOMAIN_CONFIG_FIELDS[_0x3380f0(0x123)](_0x4e89ec));if(_0x512f13[_0x3380f0(0x114)]>0x0)throw CliErrors[_0x3380f0(0xff)](_0x3380f0(0x125)+_0x512f13[_0x3380f0(0xfe)](',\x20'),_0x3380f0(0x11e)+DOMAIN_CONFIG_FIELDS['join'](',\x20'));const _0x9297aa={};for(const _0x553f95 of DOMAIN_CONFIG_FIELDS){_0x494a81[_0x553f95]!==undefined&&(_0x9297aa[_0x553f95]=normalizeDomainOrigin(_0x553f95,_0x494a81[_0x553f95]));}if(Object[_0x3380f0(0x104)](_0x9297aa)['length']===0x0)throw CliErrors[_0x3380f0(0xff)]('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return{'mode':'legacy','domains':_0x9297aa};}function a90_0x1780(){const _0x2d3d82=['kb-service-domain','kind','kbServiceDomain','utf8','filter','enterprise-v1','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','length','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','skillDomain','username','userDomain','domain-config','skill-domain','password','\x22\x20is\x20not\x20a\x20valid\x20URL.','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','Allowed\x20fields:\x20','origin','\x22\x20and\x20kind\x20\x22','isArray','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','includes','skillHubDomain','Unsupported\x20domain\x20config\x20field(s):\x20','632913NGSSKi','56RZqMAv','domains','5njnSNr',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','pathname','lovrabet-cli',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','2780792tgXYUC','object','5581032nnjsoE','trim','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','agentDomain','316314sUidtm','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','kbDomain','2111088uvwGUi','Enterprise\x20','join','validation','parse','24172BDqIpz','str','2257068ySbquR','keys','30Mzhyxw','https:','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','Domain\x20config\x20file\x20not\x20found:\x20','runtimeDomain','Invalid\x20','apiDomain','cwd'];a90_0x1780=function(){return _0x2d3d82;};return a90_0x1780();}export function readDomainConfig(_0x5c07e9){const _0x6724d9=a90_0x42eb86;return readDomainConfigInput(_0x5c07e9)[_0x6724d9(0x128)];}export function resolveDomainConfigInput(_0x2119ab){const _0x26617d=a90_0x42eb86,_0x679cf2=(_0x2119ab[_0x26617d(0x102)](_0x26617d(0x119))||'')[_0x26617d(0xf6)](),_0x5d5b31=_0x679cf2?readDomainConfigInput(_0x679cf2):{'mode':'legacy','domains':{}},_0xdcdf7d=DOMAIN_CONFIG_FIELDS[_0x26617d(0x111)](_0x14e4a8=>Boolean((_0x2119ab[_0x26617d(0x102)](DOMAIN_FLAGS[_0x14e4a8])||'')[_0x26617d(0xf6)]()));if(_0x5d5b31['mode']===_0x26617d(0x112)&&_0xdcdf7d[_0x26617d(0x114)]>0x0)throw CliErrors[_0x26617d(0xff)](_0x26617d(0x115),_0x26617d(0x122));for(const _0x249ad1 of DOMAIN_CONFIG_FIELDS){const _0x2411ea=(_0x2119ab['str'](DOMAIN_FLAGS[_0x249ad1])||'')[_0x26617d(0xf6)]();if(_0x2411ea)_0x5d5b31[_0x26617d(0x128)][_0x249ad1]=normalizeDomainOrigin(_0x249ad1,_0x2411ea);}return _0x5d5b31;}export function resolveDomainFlags(_0x3b9e43){const _0x233218=a90_0x42eb86;return resolveDomainConfigInput(_0x3b9e43)[_0x233218(0x128)];}export function parseEnterpriseRoutingManifest(_0x1ad56d){const _0xf17ba8=a90_0x42eb86;if(_0x1ad56d['protocol']!==ENTERPRISE_ROUTING_PROTOCOL||_0x1ad56d[_0xf17ba8(0x10e)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0xf17ba8(0xff)]('Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22'+ENTERPRISE_ROUTING_PROTOCOL+_0xf17ba8(0x120)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x1ad56d[_0xf17ba8(0x128)]||typeof _0x1ad56d['domains']!==_0xf17ba8(0xf4)||Array[_0xf17ba8(0x121)](_0x1ad56d['domains']))throw CliErrors['validation'](_0xf17ba8(0x11d));const _0x5bde87=_0x1ad56d[_0xf17ba8(0x128)],_0x408c69=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0xf17ba8(0x111)](_0x40f6d9=>_0x5bde87[_0x40f6d9]===undefined);if(_0x408c69['length']>0x0)throw CliErrors[_0xf17ba8(0xff)](_0xf17ba8(0xfa)+_0x408c69[_0xf17ba8(0xfe)](',\x20'));const _0x4518dc={},_0x19118b={};for(const _0x5714da of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x9ccc0f=_0x5bde87[_0x5714da];if(_0x9ccc0f===undefined)continue;const _0x25d30f=normalizeRoutingDomainValue(_0x5714da,_0x9ccc0f);_0x4518dc[_0x5714da]=_0x25d30f;const _0x285a16=ENTERPRISE_TO_LOCAL_FIELD[_0x5714da];_0x285a16&&(_0x19118b[_0x285a16]=_0x25d30f);}return{'mode':_0xf17ba8(0x112),'domains':_0x19118b,'manifestDomains':_0x4518dc};}
@@ -1 +1 @@
1
- const a90_0xb28c3=a90_0x271d;(function(_0x1cf490,_0x1fddf9){const _0x4e74ee=a90_0x271d,_0x54a328=_0x1cf490();while(!![]){try{const _0x192290=parseInt(_0x4e74ee(0x1c9))/0x1*(parseInt(_0x4e74ee(0x1c2))/0x2)+-parseInt(_0x4e74ee(0x1cf))/0x3+parseInt(_0x4e74ee(0x1bd))/0x4+-parseInt(_0x4e74ee(0x1b8))/0x5*(parseInt(_0x4e74ee(0x1ca))/0x6)+-parseInt(_0x4e74ee(0x1d1))/0x7*(parseInt(_0x4e74ee(0x1b7))/0x8)+-parseInt(_0x4e74ee(0x1b0))/0x9+parseInt(_0x4e74ee(0x1cb))/0xa*(parseInt(_0x4e74ee(0x1af))/0xb);if(_0x192290===_0x1fddf9)break;else _0x54a328['push'](_0x54a328['shift']());}catch(_0x7a16a3){_0x54a328['push'](_0x54a328['shift']());}}}(a90_0x235d,0x4cb5d));function a90_0x235d(){const _0x37687c=['map','Override\x20runtime\x20domain',';\x20local\x20alias:\x20apps.<alias>.appcode','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','Override\x20KB\x20Service\x20domain','filter','616WEzRpg','3711591YmFFYC','Config\x20key.\x20Top-level:\x20','toLowerCase','Native\x20Lovrabet\x20tool\x20availability\x20in\x20the\x20current\x20execution\x20host','Default\x20output\x20format','env','has','3137576OtHAwK','5exhUFL','locale','Target\x20environment','zh-CN','importable','2266816JTlnDL','Override\x20SkillHub\x20domain','entries','cliSettableTopLevel','Versioned\x20enterprise\x20routing\x20manifest','3902WITTbW','Default\x20page\x20size','fromEntries','legacyCompatOnly','Override\x20API\x20domain','riskLevel','format','84xPejKA','1284738SETSMb','202070zDlZTg','en-US','enumValues','defaultValue','1587768kkRSRS','Override\x20user\x20domain','7MGhJAj'];a90_0x235d=function(){return _0x37687c;};return a90_0x235d();}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':a90_0xb28c3(0x1c1),'topLevel':!![]},'region':{'description':'Lovrabet\x20region','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':ENABLED_LOVRABET_REGION_VALUES,'defaultValue':DEFAULT_LOVRABET_REGION,'importable':!![]},'env':{'description':a90_0xb28c3(0x1ba),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a90_0xb28c3(0x1b5)],'importable':!![]},'format':{'description':a90_0xb28c3(0x1b4),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a90_0xb28c3(0x1c8)],'importable':!![]},'pageSize':{'description':a90_0xb28c3(0x1c3),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a90_0xb28c3(0x1c6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a90_0xb28c3(0x1d0),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a90_0xb28c3(0x1d3),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillDomain':{'description':a90_0xb28c3(0x1be),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'kbServiceDomain':{'description':a90_0xb28c3(0x1ad),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a90_0xb28c3(0x1c7)],'importable':!![]},'nativeToolAvailable':{'description':a90_0xb28c3(0x1b3),'topLevel':!![],'defaultValue':![]},'locale':{'description':a90_0xb28c3(0x1ac),'topLevel':!![],'cliSettableTopLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a90_0xb28c3(0x1b9)],'importable':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a90_0xb28c3(0x1bf)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x3638d4])=>_0x3638d4[a90_0xb28c3(0x1c0)])[a90_0xb28c3(0x1d2)](([_0x1b69da])=>_0x1b69da));export const CLI_PROTECTED_CONFIG_KEYS=new Set(['riskLevel','nativeToolAvailable']);export const CONFIG_ENUM_VALUES=Object[a90_0xb28c3(0x1c4)](Object['entries'](CONFIG_FIELD_SCHEMAS)[a90_0xb28c3(0x1ae)](([,_0xa6d823])=>_0xa6d823[a90_0xb28c3(0x1cd)])[a90_0xb28c3(0x1d2)](([_0xb9601a,_0x35f131])=>[_0xb9601a,[..._0x35f131['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a90_0xb28c3(0x1bf)](CONFIG_FIELD_SCHEMAS)[a90_0xb28c3(0x1ae)](([,_0x3b1815])=>_0x3b1815[a90_0xb28c3(0x1bc)])[a90_0xb28c3(0x1d2)](([_0x4fed2a])=>_0x4fed2a);export function getConfigFieldSchema(_0xbd4c1d){return CONFIG_FIELD_SCHEMAS[_0xbd4c1d];}export function getConfigEnumValues(_0x1c1f6d){const _0x525f1e=a90_0xb28c3;return getConfigFieldSchema(_0x1c1f6d)?.[_0x525f1e(0x1cd)];}export function getConfigDefaultValue(_0x122904){const _0x18ad8a=a90_0xb28c3;return getConfigFieldSchema(_0x122904)?.[_0x18ad8a(0x1ce)];}export function isTopLevelConfigKey(_0x422857){const _0x1e9baa=a90_0xb28c3;return TOP_LEVEL_CONFIG_KEYS[_0x1e9baa(0x1b6)](_0x422857);}function a90_0x271d(_0x6d0481,_0x3081ad){_0x6d0481=_0x6d0481-0x1ab;const _0x235d81=a90_0x235d();let _0x271d4f=_0x235d81[_0x6d0481];return _0x271d4f;}export function isCliProtectedConfigKey(_0x4a9f12){return CLI_PROTECTED_CONFIG_KEYS['has'](_0x4a9f12);}const LOCALE_MAP={'zh':a90_0xb28c3(0x1bb),'zh-cn':a90_0xb28c3(0x1bb),'zh_cn':a90_0xb28c3(0x1bb),'en':a90_0xb28c3(0x1cc),'en-us':a90_0xb28c3(0x1cc),'en_us':a90_0xb28c3(0x1cc)};export function normalizeLocale(_0xd6f3a){const _0x3c5ae7=a90_0xb28c3;if(!_0xd6f3a)return null;return LOCALE_MAP[_0xd6f3a[_0x3c5ae7(0x1b2)]()]??null;}export function isLegacyCompatConfigKey(_0x522e3a){const _0x587b2f=a90_0xb28c3;return getConfigFieldSchema(_0x522e3a)?.[_0x587b2f(0x1c5)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x1aa735){return[..._0x1aa735]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x4debf7=a90_0xb28c3;return _0x4debf7(0x1b1)+getTopLevelConfigKeySummary()+_0x4debf7(0x1ab);}export function buildAppProfileListFields(_0x1b426c){return{'env':_0x1b426c,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ function a91_0x3740(_0x1d624b,_0x3a1c68){_0x1d624b=_0x1d624b-0x14b;const _0x249203=a91_0x2492();let _0x374083=_0x249203[_0x1d624b];return _0x374083;}const a91_0x5285a4=a91_0x3740;(function(_0x28ea2a,_0x4cf3f7){const _0x3114ee=a91_0x3740,_0xcc6ce5=_0x28ea2a();while(!![]){try{const _0x3e10f5=-parseInt(_0x3114ee(0x155))/0x1+-parseInt(_0x3114ee(0x172))/0x2+-parseInt(_0x3114ee(0x15e))/0x3*(-parseInt(_0x3114ee(0x171))/0x4)+parseInt(_0x3114ee(0x169))/0x5*(parseInt(_0x3114ee(0x151))/0x6)+-parseInt(_0x3114ee(0x150))/0x7*(parseInt(_0x3114ee(0x16e))/0x8)+parseInt(_0x3114ee(0x173))/0x9*(-parseInt(_0x3114ee(0x170))/0xa)+parseInt(_0x3114ee(0x14d))/0xb*(parseInt(_0x3114ee(0x165))/0xc);if(_0x3e10f5===_0x4cf3f7)break;else _0xcc6ce5['push'](_0xcc6ce5['shift']());}catch(_0x19e196){_0xcc6ce5['push'](_0xcc6ce5['shift']());}}}(a91_0x2492,0x415ba));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export const CONFIG_FIELD_SCHEMAS={'routing':{'description':a91_0x5285a4(0x162),'topLevel':!![]},'region':{'description':a91_0x5285a4(0x15a),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':ENABLED_LOVRABET_REGION_VALUES,'defaultValue':DEFAULT_LOVRABET_REGION,'importable':!![]},'env':{'description':a91_0x5285a4(0x15c),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a91_0x5285a4(0x152)],'importable':!![]},'format':{'description':a91_0x5285a4(0x174),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a91_0x5285a4(0x16c)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a91_0x5285a4(0x153),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a91_0x5285a4(0x154),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillDomain':{'description':'Override\x20SkillHub\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'kbServiceDomain':{'description':a91_0x5285a4(0x14b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a91_0x5285a4(0x158),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a91_0x5285a4(0x14f),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a91_0x5285a4(0x15d)],'importable':!![]},'nativeToolAvailable':{'description':a91_0x5285a4(0x166),'topLevel':!![],'defaultValue':![]},'locale':{'description':a91_0x5285a4(0x167),'topLevel':!![],'cliSettableTopLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a91_0x5285a4(0x161)],'importable':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a91_0x5285a4(0x157)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x5e59a3])=>_0x5e59a3[a91_0x5285a4(0x160)])[a91_0x5285a4(0x14c)](([_0x357979])=>_0x357979));export const CLI_PROTECTED_CONFIG_KEYS=new Set([a91_0x5285a4(0x15d),a91_0x5285a4(0x16b)]);export const CONFIG_ENUM_VALUES=Object[a91_0x5285a4(0x16d)](Object[a91_0x5285a4(0x157)](CONFIG_FIELD_SCHEMAS)[a91_0x5285a4(0x16a)](([,_0x3314e4])=>_0x3314e4[a91_0x5285a4(0x159)])['map'](([_0x36d64c,_0x686cdf])=>[_0x36d64c,[..._0x686cdf[a91_0x5285a4(0x159)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x815f5f])=>_0x815f5f[a91_0x5285a4(0x168)])[a91_0x5285a4(0x14c)](([_0x19db5f])=>_0x19db5f);export function getConfigFieldSchema(_0x56a8d2){return CONFIG_FIELD_SCHEMAS[_0x56a8d2];}export function getConfigEnumValues(_0x4a111c){return getConfigFieldSchema(_0x4a111c)?.['enumValues'];}export function getConfigDefaultValue(_0x278e08){const _0x2a3be0=a91_0x5285a4;return getConfigFieldSchema(_0x278e08)?.[_0x2a3be0(0x163)];}export function isTopLevelConfigKey(_0x49f8b8){return TOP_LEVEL_CONFIG_KEYS['has'](_0x49f8b8);}export function isCliProtectedConfigKey(_0x250911){const _0x20b753=a91_0x5285a4;return CLI_PROTECTED_CONFIG_KEYS[_0x20b753(0x15b)](_0x250911);}const LOCALE_MAP={'zh':a91_0x5285a4(0x15f),'zh-cn':a91_0x5285a4(0x15f),'zh_cn':a91_0x5285a4(0x15f),'en':a91_0x5285a4(0x164),'en-us':a91_0x5285a4(0x164),'en_us':a91_0x5285a4(0x164)};export function normalizeLocale(_0x355e8f){const _0x4d18f7=a91_0x5285a4;if(!_0x355e8f)return null;return LOCALE_MAP[_0x355e8f[_0x4d18f7(0x16f)]()]??null;}export function isLegacyCompatConfigKey(_0x3ed012){return getConfigFieldSchema(_0x3ed012)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x56cce5){const _0x11fe3b=a91_0x5285a4;return[..._0x56cce5][_0x11fe3b(0x156)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0xeab803=a91_0x5285a4;return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+_0xeab803(0x14e);}function a91_0x2492(){const _0x5c784e=['map','273427MNvGGv',';\x20local\x20alias:\x20apps.<alias>.appcode','Risk\x20level','7483BjPgeq','24gVfiMY','env','Override\x20user\x20domain','Override\x20runtime\x20domain','295505PLFtPb','join','entries','Access\x20key\x20(client-ak\x20auth)','enumValues','Lovrabet\x20region','has','Target\x20environment','riskLevel','1414599aXDFVd','zh-CN','cliSettableTopLevel','locale','Versioned\x20enterprise\x20routing\x20manifest','defaultValue','en-US','324YZJqfq','Native\x20Lovrabet\x20tool\x20availability\x20in\x20the\x20current\x20execution\x20host','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','importable','129135TXUwxS','filter','nativeToolAvailable','format','fromEntries','1336AQgqxv','toLowerCase','50GaGBZl','4dShyEf','806842yKpukl','181485XYiMwi','Default\x20output\x20format','Override\x20KB\x20Service\x20domain'];a91_0x2492=function(){return _0x5c784e;};return a91_0x2492();}export function buildAppProfileListFields(_0x2968bf){return{'env':_0x2968bf,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- function a91_0x16b7(_0x2a9942,_0x2b0ce7){_0x2a9942=_0x2a9942-0x1b6;const _0x49b2e0=a91_0x49b2();let _0x16b704=_0x49b2e0[_0x2a9942];return _0x16b704;}function a91_0x49b2(){const _0x5b6858=['11ybdYIU','2628890KdfePe','PUBLISHED','1935SUgmOx','19456iqmzbb','5244936VAvQwy','269134bgmYXP','Published','2nEzAFX','1426617GJdLqh','2199VQQrBr','UNPUBLISH','4434hDoFZM','1668vJQdDi','455TGqeoi'];a91_0x49b2=function(){return _0x5b6858;};return a91_0x49b2();}const a91_0xd5ff09=a91_0x16b7;(function(_0xfb53f0,_0x50ebe9){const _0x47d14e=a91_0x16b7,_0x34c5ac=_0xfb53f0();while(!![]){try{const _0x1aaf90=-parseInt(_0x47d14e(0x1c2))/0x1*(-parseInt(_0x47d14e(0x1c0))/0x2)+-parseInt(_0x47d14e(0x1c4))/0x3*(parseInt(_0x47d14e(0x1b8))/0x4)+-parseInt(_0x47d14e(0x1bd))/0x5*(parseInt(_0x47d14e(0x1b7))/0x6)+parseInt(_0x47d14e(0x1b9))/0x7*(parseInt(_0x47d14e(0x1be))/0x8)+parseInt(_0x47d14e(0x1c3))/0x9+parseInt(_0x47d14e(0x1bb))/0xa*(-parseInt(_0x47d14e(0x1ba))/0xb)+parseInt(_0x47d14e(0x1bf))/0xc;if(_0x1aaf90===_0x50ebe9)break;else _0x34c5ac['push'](_0x34c5ac['shift']());}catch(_0x4bdef3){_0x34c5ac['push'](_0x34c5ac['shift']());}}}(a91_0x49b2,0x29146));export const APP_PUBLISH_STATUS={'Published':a91_0xd5ff09(0x1bc),'Unpublished':a91_0xd5ff09(0x1b6)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a91_0xd5ff09(0x1c1)];
1
+ const a92_0x2186cb=a92_0x15de;(function(_0x325005,_0x560cce){const _0x3ae853=a92_0x15de,_0x13e0c1=_0x325005();while(!![]){try{const _0x3f084d=-parseInt(_0x3ae853(0x15c))/0x1+parseInt(_0x3ae853(0x157))/0x2*(parseInt(_0x3ae853(0x155))/0x3)+parseInt(_0x3ae853(0x15a))/0x4*(-parseInt(_0x3ae853(0x159))/0x5)+-parseInt(_0x3ae853(0x153))/0x6+-parseInt(_0x3ae853(0x156))/0x7*(parseInt(_0x3ae853(0x158))/0x8)+parseInt(_0x3ae853(0x154))/0x9*(parseInt(_0x3ae853(0x15d))/0xa)+parseInt(_0x3ae853(0x15f))/0xb;if(_0x3f084d===_0x560cce)break;else _0x13e0c1['push'](_0x13e0c1['shift']());}catch(_0x2bf93b){_0x13e0c1['push'](_0x13e0c1['shift']());}}}(a92_0x29bb,0xe020a));function a92_0x15de(_0x163395,_0x2afa23){_0x163395=_0x163395-0x153;const _0x29bb69=a92_0x29bb();let _0x15deab=_0x29bb69[_0x163395];return _0x15deab;}export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a92_0x2186cb(0x15e)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a92_0x2186cb(0x15b)];function a92_0x29bb(){const _0x3a08be=['176ifKRAB','Published','77441iSjtHh','10wojdAO','UNPUBLISH','29248076kQtdSQ','10432896vvTZMK','13949856fJAYrN','1674omzEGo','7AncbbV','5272racXSM','11499944MxDJpQ','171365crgfQK'];a92_0x29bb=function(){return _0x3a08be;};return a92_0x29bb();}
@@ -1 +1 @@
1
- const a92_0x27b9b6=a92_0x1f77;function a92_0x1f77(_0x3d89d7,_0x23e5d9){_0x3d89d7=_0x3d89d7-0x186;const _0x3163e0=a92_0x3163();let _0x1f77a2=_0x3163e0[_0x3d89d7];return _0x1f77a2;}function a92_0x3163(){const _0x4cbc63=['1946520eCejhp','3019161MeVAPk','31221sGdpiK','1894394FzDTVZ','client-ak','21QrljmN','2170UBWyrL','152trPwNE','1291196VtFZcY','ClientAk','35bIxnqR','81235pvOALA','682828LJTxNU'];a92_0x3163=function(){return _0x4cbc63;};return a92_0x3163();}(function(_0x38dc5d,_0x53f4cb){const _0x4d08ba=a92_0x1f77,_0x12b9b0=_0x38dc5d();while(!![]){try{const _0x177b37=parseInt(_0x4d08ba(0x186))/0x1+-parseInt(_0x4d08ba(0x18e))/0x2+-parseInt(_0x4d08ba(0x18c))/0x3+-parseInt(_0x4d08ba(0x18a))/0x4*(parseInt(_0x4d08ba(0x188))/0x5)+-parseInt(_0x4d08ba(0x18b))/0x6*(-parseInt(_0x4d08ba(0x190))/0x7)+-parseInt(_0x4d08ba(0x192))/0x8*(parseInt(_0x4d08ba(0x18d))/0x9)+-parseInt(_0x4d08ba(0x191))/0xa*(-parseInt(_0x4d08ba(0x189))/0xb);if(_0x177b37===_0x53f4cb)break;else _0x12b9b0['push'](_0x12b9b0['shift']());}catch(_0x5553c4){_0x12b9b0['push'](_0x12b9b0['shift']());}}}(a92_0x3163,0x9f50d));export const AUTH_MODE={'ClientAk':a92_0x27b9b6(0x18f)};export function isAuthMode(_0x3d66e3){const _0xf8eaf8=a92_0x27b9b6;return _0x3d66e3===AUTH_MODE[_0xf8eaf8(0x187)];}
1
+ function a93_0x44cc(_0x26db7a,_0x459cf4){_0x26db7a=_0x26db7a-0x1da;const _0x36c5c4=a93_0x36c5();let _0x44cc13=_0x36c5c4[_0x26db7a];return _0x44cc13;}const a93_0x456fbe=a93_0x44cc;function a93_0x36c5(){const _0x1e9bc8=['909ANUitQ','1pUjLkz','651567qjAXpU','53470CgemWM','575SsTFYE','client-ak','3098752DwsUaX','7308552wBIzpR','533871sVDUmx','ClientAk','2918920iMMQwM','23960NaxsTv'];a93_0x36c5=function(){return _0x1e9bc8;};return a93_0x36c5();}(function(_0x416890,_0x429322){const _0x4746f6=a93_0x44cc,_0x1585fe=_0x416890();while(!![]){try{const _0x473f44=parseInt(_0x4746f6(0x1df))/0x1*(-parseInt(_0x4746f6(0x1e4))/0x2)+parseInt(_0x4746f6(0x1da))/0x3+-parseInt(_0x4746f6(0x1dd))/0x4*(-parseInt(_0x4746f6(0x1e2))/0x5)+parseInt(_0x4746f6(0x1e5))/0x6+parseInt(_0x4746f6(0x1e0))/0x7+-parseInt(_0x4746f6(0x1dc))/0x8+parseInt(_0x4746f6(0x1de))/0x9*(parseInt(_0x4746f6(0x1e1))/0xa);if(_0x473f44===_0x429322)break;else _0x1585fe['push'](_0x1585fe['shift']());}catch(_0x21ec1d){_0x1585fe['push'](_0x1585fe['shift']());}}}(a93_0x36c5,0xc43ca));export const AUTH_MODE={'ClientAk':a93_0x456fbe(0x1e3)};export function isAuthMode(_0x340143){const _0x4bed97=a93_0x456fbe;return _0x340143===AUTH_MODE[_0x4bed97(0x1db)];}
@@ -1 +1 @@
1
- const a93_0x4d36b4=a93_0x519d;(function(_0x1cba42,_0x1cef0c){const _0x12ce3e=a93_0x519d,_0x5e8f39=_0x1cba42();while(!![]){try{const _0x5622db=parseInt(_0x12ce3e(0x1a7))/0x1+parseInt(_0x12ce3e(0x1ae))/0x2*(-parseInt(_0x12ce3e(0x1a1))/0x3)+parseInt(_0x12ce3e(0x1a3))/0x4*(parseInt(_0x12ce3e(0x19b))/0x5)+-parseInt(_0x12ce3e(0x19e))/0x6*(-parseInt(_0x12ce3e(0x1a0))/0x7)+parseInt(_0x12ce3e(0x1ab))/0x8*(-parseInt(_0x12ce3e(0x197))/0x9)+parseInt(_0x12ce3e(0x1a2))/0xa*(parseInt(_0x12ce3e(0x19d))/0xb)+-parseInt(_0x12ce3e(0x18f))/0xc;if(_0x5622db===_0x1cef0c)break;else _0x5e8f39['push'](_0x5e8f39['shift']());}catch(_0x47d53b){_0x5e8f39['push'](_0x5e8f39['shift']());}}}(a93_0x123d,0xa38af));function a93_0x123d(){const _0x281b0e=['app','2918556arNCss','yes','fromEntries','non-interactive','708835soLgjn','Environment','11FIJGXC','11586RtzbOg','<code>','1169VWJuji','658263nIWbvC','1831180uHcybQ','36EZnrFc','Record\x20ID','json\x20|\x20pretty\x20|\x20compress','Use\x20global\x20config\x20scope','630125YrOSwY','<expr>','<name>','boolean','8pudYRk','Preview\x20operation\x20without\x20executing','dryRun','6ZgLEIg','appcode','params','env','string','format','sqlcode','Name\x20filter','name','help','Select\x20app\x20profile\x20by\x20name','Alias\x20for\x20--non-interactive','production\x20|\x20development\x20|\x20daily','dry-run','type','9110460iNzwMf','global','Clear\x20output','map','verbose','Show\x20help','JSON\x20params\x20for\x20execute\x20commands'];a93_0x123d=function(){return _0x281b0e;};return a93_0x123d();}import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a93_0x519d(_0x1515ff,_0x8930a6){_0x1515ff=_0x1515ff-0x186;const _0x123d05=a93_0x123d();let _0x519d79=_0x123d05[_0x1515ff];return _0x519d79;}export const GLOBAL_FLAGS=[{'name':a93_0x4d36b4(0x1af),'meowKey':a93_0x4d36b4(0x1af),'type':a93_0x4d36b4(0x1b2),'description':'Override\x20appcode','hint':a93_0x4d36b4(0x19f)},{'name':a93_0x4d36b4(0x196),'meowKey':'app','type':a93_0x4d36b4(0x1b2),'description':a93_0x4d36b4(0x18a),'hint':a93_0x4d36b4(0x1a9)},{'name':'env','meowKey':a93_0x4d36b4(0x1b1),'type':a93_0x4d36b4(0x1b2),'description':a93_0x4d36b4(0x19c),'hint':a93_0x4d36b4(0x18c)},{'name':a93_0x4d36b4(0x1b3),'meowKey':'format','type':a93_0x4d36b4(0x1b2),'description':'Output\x20format','hint':a93_0x4d36b4(0x1a5)},{'name':'jq','meowKey':'jq','type':a93_0x4d36b4(0x1b2),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a93_0x4d36b4(0x1a8)},{'name':a93_0x4d36b4(0x18d),'meowKey':a93_0x4d36b4(0x1ad),'type':a93_0x4d36b4(0x1aa),'description':a93_0x4d36b4(0x1ac)},{'name':a93_0x4d36b4(0x198),'meowKey':a93_0x4d36b4(0x198),'type':'boolean','description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a93_0x4d36b4(0x19a),'meowKey':'nonInteractive','type':a93_0x4d36b4(0x1aa),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':a93_0x4d36b4(0x190),'type':'boolean','description':a93_0x4d36b4(0x1a6)},{'name':'ci','meowKey':'ci','type':a93_0x4d36b4(0x1aa),'description':a93_0x4d36b4(0x18b),'hidden':!![]},{'name':'help','meowKey':a93_0x4d36b4(0x189),'type':a93_0x4d36b4(0x1aa),'description':a93_0x4d36b4(0x194)},{'name':'id','meowKey':'id','type':a93_0x4d36b4(0x1b2),'description':a93_0x4d36b4(0x1a4),'hidden':!![]},{'name':a93_0x4d36b4(0x188),'meowKey':'name','type':a93_0x4d36b4(0x1b2),'description':a93_0x4d36b4(0x187),'hidden':!![]},{'name':'sqlcode','meowKey':a93_0x4d36b4(0x186),'type':a93_0x4d36b4(0x1b2),'description':'SQL\x20query\x20code','hidden':!![]},{'name':'params','meowKey':a93_0x4d36b4(0x1b0),'type':a93_0x4d36b4(0x1b2),'description':a93_0x4d36b4(0x195),'hidden':!![]},{'name':a93_0x4d36b4(0x193),'meowKey':a93_0x4d36b4(0x193),'type':a93_0x4d36b4(0x1aa),'description':'Verbose\x20output','hidden':!![]},{'name':'clear','meowKey':'clear','type':'boolean','description':a93_0x4d36b4(0x191),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode','app','env',a93_0x4d36b4(0x1b3),'jq','dry-run',a93_0x4d36b4(0x198),'non-interactive','ci']);export function buildMeowFlags(){const _0x4e5e6e=a93_0x4d36b4;return Object[_0x4e5e6e(0x199)](GLOBAL_FLAGS[_0x4e5e6e(0x192)](_0x4be8d0=>[_0x4be8d0['meowKey'],{'type':_0x4be8d0[_0x4e5e6e(0x18e)]}]));}
1
+ function a94_0x1bb3(_0x2c220b,_0x28bab0){_0x2c220b=_0x2c220b-0xb5;const _0x443810=a94_0x4438();let _0x1bb34b=_0x443810[_0x2c220b];return _0x1bb34b;}const a94_0x97335e=a94_0x1bb3;(function(_0x2e56e0,_0x580afb){const _0x537b9b=a94_0x1bb3,_0x87ff7=_0x2e56e0();while(!![]){try{const _0x406548=-parseInt(_0x537b9b(0xdb))/0x1+-parseInt(_0x537b9b(0xc5))/0x2+parseInt(_0x537b9b(0xb8))/0x3*(-parseInt(_0x537b9b(0xe3))/0x4)+-parseInt(_0x537b9b(0xba))/0x5*(-parseInt(_0x537b9b(0xcc))/0x6)+-parseInt(_0x537b9b(0xd8))/0x7*(parseInt(_0x537b9b(0xb6))/0x8)+-parseInt(_0x537b9b(0xbc))/0x9+parseInt(_0x537b9b(0xcb))/0xa*(parseInt(_0x537b9b(0xce))/0xb);if(_0x406548===_0x580afb)break;else _0x87ff7['push'](_0x87ff7['shift']());}catch(_0x9fad28){_0x87ff7['push'](_0x87ff7['shift']());}}}(a94_0x4438,0xca67a));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';function a94_0x4438(){const _0x3cde34=['verbose','params','1074230zWAjJp','help','global','boolean','nonInteractive','map','470yCdgHB','264cfkIJf','Select\x20app\x20profile\x20by\x20name','596981mYMGtU','format','dryRun','app','appcode','env','Record\x20ID','production\x20|\x20development\x20|\x20daily','Skip\x20confirmation\x20for\x20high-risk\x20writes','dry-run','166726EDreRS','Alias\x20for\x20--non-interactive','Output\x20format','1185388xIZPKc','Environment','json\x20|\x20pretty\x20|\x20compress','clear','non-interactive','yes','SQL\x20query\x20code','<expr>','16QCKqrJ','cliDisplayName','328MxdvXE','cliBinName','257109PPohgm','type','167950rKUKGx','Force\x20non-interactive\x20mode\x20(CI)','1420146rVWnjB','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','<code>','sqlcode','Name\x20filter','string','meowKey'];a94_0x4438=function(){return _0x3cde34;};return a94_0x4438();}export const CLI_BIN_NAME=PRODUCT_CONFIG[a94_0x97335e(0xb7)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a94_0x97335e(0xb5)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a94_0x97335e(0xd2),'meowKey':a94_0x97335e(0xd2),'type':'string','description':'Override\x20appcode','hint':a94_0x97335e(0xbe)},{'name':a94_0x97335e(0xd1),'meowKey':'app','type':a94_0x97335e(0xc1),'description':a94_0x97335e(0xcd),'hint':'<name>'},{'name':a94_0x97335e(0xd3),'meowKey':a94_0x97335e(0xd3),'type':a94_0x97335e(0xc1),'description':a94_0x97335e(0xdc),'hint':a94_0x97335e(0xd5)},{'name':a94_0x97335e(0xcf),'meowKey':a94_0x97335e(0xcf),'type':'string','description':a94_0x97335e(0xda),'hint':a94_0x97335e(0xdd)},{'name':'jq','meowKey':'jq','type':a94_0x97335e(0xc1),'description':a94_0x97335e(0xbd),'hint':a94_0x97335e(0xe2)},{'name':a94_0x97335e(0xd7),'meowKey':a94_0x97335e(0xd0),'type':'boolean','description':'Preview\x20operation\x20without\x20executing'},{'name':a94_0x97335e(0xe0),'meowKey':a94_0x97335e(0xe0),'type':a94_0x97335e(0xc8),'description':a94_0x97335e(0xd6)},{'name':a94_0x97335e(0xdf),'meowKey':a94_0x97335e(0xc9),'type':a94_0x97335e(0xc8),'description':a94_0x97335e(0xbb)},{'name':'global','meowKey':a94_0x97335e(0xc7),'type':a94_0x97335e(0xc8),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a94_0x97335e(0xc8),'description':a94_0x97335e(0xd9),'hidden':!![]},{'name':a94_0x97335e(0xc6),'meowKey':a94_0x97335e(0xc6),'type':a94_0x97335e(0xc8),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':a94_0x97335e(0xc1),'description':a94_0x97335e(0xd4),'hidden':!![]},{'name':'name','meowKey':'name','type':a94_0x97335e(0xc1),'description':a94_0x97335e(0xc0),'hidden':!![]},{'name':'sqlcode','meowKey':a94_0x97335e(0xbf),'type':a94_0x97335e(0xc1),'description':a94_0x97335e(0xe1),'hidden':!![]},{'name':a94_0x97335e(0xc4),'meowKey':a94_0x97335e(0xc4),'type':a94_0x97335e(0xc1),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a94_0x97335e(0xc3),'meowKey':a94_0x97335e(0xc3),'type':a94_0x97335e(0xc8),'description':'Verbose\x20output','hidden':!![]},{'name':'clear','meowKey':a94_0x97335e(0xde),'type':a94_0x97335e(0xc8),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a94_0x97335e(0xd2),a94_0x97335e(0xd1),'env','format','jq','dry-run',a94_0x97335e(0xe0),a94_0x97335e(0xdf),'ci']);export function buildMeowFlags(){const _0x114ee4=a94_0x97335e;return Object['fromEntries'](GLOBAL_FLAGS[_0x114ee4(0xca)](_0x2c9266=>[_0x2c9266[_0x114ee4(0xc2)],{'type':_0x2c9266[_0x114ee4(0xb9)]}]));}
@@ -1 +1 @@
1
- const a94_0x2dbdfe=a94_0x1631;function a94_0x1631(_0x9a074f,_0x35c65a){_0x9a074f=_0x9a074f-0xf1;const _0x55fbb9=a94_0x55fb();let _0x1631d5=_0x55fbb9[_0x9a074f];return _0x1631d5;}(function(_0x1a7a5b,_0x381a1a){const _0x22794b=a94_0x1631,_0x58f502=_0x1a7a5b();while(!![]){try{const _0x41af87=-parseInt(_0x22794b(0xfe))/0x1+-parseInt(_0x22794b(0xf6))/0x2+parseInt(_0x22794b(0xf3))/0x3+-parseInt(_0x22794b(0xfd))/0x4*(parseInt(_0x22794b(0xf5))/0x5)+parseInt(_0x22794b(0xf7))/0x6*(-parseInt(_0x22794b(0xf9))/0x7)+parseInt(_0x22794b(0xf4))/0x8*(parseInt(_0x22794b(0xf2))/0x9)+parseInt(_0x22794b(0xfa))/0xa;if(_0x41af87===_0x381a1a)break;else _0x58f502['push'](_0x58f502['shift']());}catch(_0x41be10){_0x58f502['push'](_0x58f502['shift']());}}}(a94_0x55fb,0xc7fac));export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':a94_0x2dbdfe(0xfc),'format':a94_0x2dbdfe(0xf1),'locale':a94_0x2dbdfe(0xfb),'riskLevel':a94_0x2dbdfe(0xf8)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';function a94_0x55fb(){const _0x51507b=['write','9737938AFCazT','43175370TniWTH','en-US','production','1821892TVHCZB','547373ejUMWv','compress','1118781fEZRlH','680523aVyRuw','32eqiRwH','15ymbjIS','1835144mFnCUK','6IKnmeH'];a94_0x55fb=function(){return _0x51507b;};return a94_0x55fb();}
1
+ function a95_0x34d8(){const _0x9aa505=['47662wypAne','960239jdPRkg','main','8SJZMjK','428032ErwURK','compress','1020740AeZhYj','54204USwcQf','production','251064TCKzMn','9hbkYqK','1742424yRgHDz'];a95_0x34d8=function(){return _0x9aa505;};return a95_0x34d8();}const a95_0x410676=a95_0x340a;(function(_0x1a7beb,_0x24d207){const _0x54d7f0=a95_0x340a,_0x4818f2=_0x1a7beb();while(!![]){try{const _0x3a48e1=parseInt(_0x54d7f0(0xb2))/0x1*(-parseInt(_0x54d7f0(0xaf))/0x2)+-parseInt(_0x54d7f0(0xac))/0x3+parseInt(_0x54d7f0(0xb3))/0x4+parseInt(_0x54d7f0(0xa9))/0x5+-parseInt(_0x54d7f0(0xaa))/0x6+-parseInt(_0x54d7f0(0xb0))/0x7+parseInt(_0x54d7f0(0xae))/0x8*(parseInt(_0x54d7f0(0xad))/0x9);if(_0x3a48e1===_0x24d207)break;else _0x4818f2['push'](_0x4818f2['shift']());}catch(_0x373100){_0x4818f2['push'](_0x4818f2['shift']());}}}(a95_0x34d8,0x1a77c));export const DEFAULT_APP_PROFILE_NAME=a95_0x410676(0xb1);export const DEFAULT_CONFIG_VALUES={'env':a95_0x410676(0xab),'format':a95_0x410676(0xb4),'locale':'en-US','riskLevel':'write'};function a95_0x340a(_0xd2abfc,_0x1ee464){_0xd2abfc=_0xd2abfc-0xa9;const _0x34d862=a95_0x34d8();let _0x340a4a=_0x34d862[_0xd2abfc];return _0x340a4a;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a95_0x410676(0xb4);
@@ -1 +1 @@
1
- const a95_0xfd07f8=a95_0x4582;(function(_0x34a33e,_0x51edee){const _0x24a866=a95_0x4582,_0x4e5ce0=_0x34a33e();while(!![]){try{const _0x3be911=parseInt(_0x24a866(0x10a))/0x1+parseInt(_0x24a866(0x105))/0x2*(-parseInt(_0x24a866(0x101))/0x3)+-parseInt(_0x24a866(0x106))/0x4+-parseInt(_0x24a866(0x100))/0x5+parseInt(_0x24a866(0x103))/0x6+parseInt(_0x24a866(0x10c))/0x7*(parseInt(_0x24a866(0x102))/0x8)+-parseInt(_0x24a866(0x104))/0x9*(-parseInt(_0x24a866(0x109))/0xa);if(_0x3be911===_0x51edee)break;else _0x4e5ce0['push'](_0x4e5ce0['shift']());}catch(_0x2899bb){_0x4e5ce0['push'](_0x4e5ce0['shift']());}}}(a95_0x3906,0xbcaa8));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a95_0xfd07f8(0x108)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a95_0xfd07f8(0x107)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG['cliCdnBaseUrl'];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a95_0xfd07f8(0x10b);function a95_0x4582(_0xccae40,_0x2b0e2c){_0xccae40=_0xccae40-0x100;const _0x390629=a95_0x3906();let _0x458257=_0x390629[_0xccae40];return _0x458257;}function a95_0x3906(){const _0x43da4f=['3496000gyiQRC','npmRegistryBaseUrl','skillSource','37430cUmscZ','307111khEkNB','/dist/lovrabet-cli/config/index.json','42763GiILON','6244690SjugvT','261FjCUpb','1304NnqCSA','8407842zaVLCQ','2538EvauAq','19862FzsRUR'];a95_0x3906=function(){return _0x43da4f;};return a95_0x3906();}
1
+ const a96_0x73e2c7=a96_0x2ca4;function a96_0x2135(){const _0x3c75c7=['npmRegistryBaseUrl','4744264Tcbrao','4785HKrUlw','3809680tKvSJb','20Nnsgec','253501QeWnFk','npmPackageName','703752XvOtZl','449970uLXIXX','2056xqMTMR','cliCdnBaseUrl','7768251LzofWV'];a96_0x2135=function(){return _0x3c75c7;};return a96_0x2135();}(function(_0x9e562d,_0x54b1a3){const _0x48dd01=a96_0x2ca4,_0x4ea3d2=_0x9e562d();while(!![]){try{const _0x42d27e=-parseInt(_0x48dd01(0x102))/0x1+parseInt(_0x48dd01(0x104))/0x2+parseInt(_0x48dd01(0x10b))/0x3*(-parseInt(_0x48dd01(0x106))/0x4)+-parseInt(_0x48dd01(0x101))/0x5*(-parseInt(_0x48dd01(0x105))/0x6)+-parseInt(_0x48dd01(0x100))/0x7+parseInt(_0x48dd01(0x10a))/0x8+parseInt(_0x48dd01(0x108))/0x9;if(_0x42d27e===_0x54b1a3)break;else _0x4ea3d2['push'](_0x4ea3d2['shift']());}catch(_0x2a99a4){_0x4ea3d2['push'](_0x4ea3d2['shift']());}}}(a96_0x2135,0x77bd9));import{PRODUCT_CONFIG}from'../constant/product.js';function a96_0x2ca4(_0x35d1a2,_0x3de41b){_0x35d1a2=_0x35d1a2-0x100;const _0x2135b0=a96_0x2135();let _0x2ca4b1=_0x2135b0[_0x35d1a2];return _0x2ca4b1;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a96_0x73e2c7(0x103)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a96_0x73e2c7(0x109)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a96_0x73e2c7(0x107)];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+'/dist/lovrabet-cli/config/index.json';
@@ -1 +1 @@
1
- const a96_0x19bc22=a96_0x65e9;(function(_0x366420,_0x4204ee){const _0x77ec9e=a96_0x65e9,_0x455aae=_0x366420();while(!![]){try{const _0x2cf8cc=parseInt(_0x77ec9e(0xf4))/0x1*(parseInt(_0x77ec9e(0xf9))/0x2)+-parseInt(_0x77ec9e(0xfd))/0x3+-parseInt(_0x77ec9e(0xee))/0x4+-parseInt(_0x77ec9e(0xf7))/0x5+-parseInt(_0x77ec9e(0xf6))/0x6+parseInt(_0x77ec9e(0xfa))/0x7*(parseInt(_0x77ec9e(0x100))/0x8)+parseInt(_0x77ec9e(0xfb))/0x9;if(_0x2cf8cc===_0x4204ee)break;else _0x455aae['push'](_0x455aae['shift']());}catch(_0x18ef3d){_0x455aae['push'](_0x455aae['shift']());}}}(a96_0x2806,0x616b6));import{getEnv,isProduction}from'../constant/env.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';function a96_0x65e9(_0x1b82bb,_0x7dcb2){_0x1b82bb=_0x1b82bb-0xed;const _0x280643=a96_0x2806();let _0x65e958=_0x280643[_0x1b82bb];return _0x65e958;}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x1a9c2d){const _0x28841b=a96_0x65e9;customApiDomain=_0x1a9c2d?.[_0x28841b(0xed)],customUserDomain=_0x1a9c2d?.[_0x28841b(0xfe)],customRuntimeDomain=_0x1a9c2d?.['runtimeDomain'],customSkillDomain=_0x1a9c2d?.[_0x28841b(0xf3)],customKbServiceDomain=_0x1a9c2d?.['kbServiceDomain'],allowOfficialKbServiceDefault=_0x1a9c2d?.[_0x28841b(0xfc)]??!![],activeRegion=_0x1a9c2d?.[_0x28841b(0xf8)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x1a95ff=a96_0x65e9,_0x438a6c=OFFICIAL_ROUTING_PROFILES[activeRegion][_0x1a95ff(0xff)];return isProduction(getEnv())?_0x438a6c['production']:_0x1a95ff(0xf0)in _0x438a6c?_0x438a6c[_0x1a95ff(0xf0)]:_0x438a6c['production'];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a96_0x19bc22(0xf5)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a96_0x19bc22(0xf2)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a96_0x19bc22(0xf1)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbServiceDomain=()=>{const _0x413813=a96_0x19bc22;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;const _0x342fa3=getActiveRegionDomains();return _0x413813(0xef)in _0x342fa3?_0x342fa3['kbService']:undefined;};function a96_0x2806(){const _0x2f9aa7=['apiDomain','2218132pgNBFS','kbService','daily','runtime','api','skillDomain','328602YdAJNW','user','1416WGFvOj','2315605Yvwcvp','region','4IhKUPf','2594753YchYba','3534165NadITK','allowOfficialKbServiceDefault','1122981xATKvG','userDomain','serviceDomains','16zdmycl'];a96_0x2806=function(){return _0x2f9aa7;};return a96_0x2806();}
1
+ const a97_0x24b8c4=a97_0x3def;function a97_0x3def(_0x4db2a4,_0x2e73df){_0x4db2a4=_0x4db2a4-0x19a;const _0x51408e=a97_0x5140();let _0x3defd1=_0x51408e[_0x4db2a4];return _0x3defd1;}function a97_0x5140(){const _0x679d54=['8283MebAIK','2530080eFiOkC','9351405fOzzXX','1ymVqiW','runtimeDomain','1958474GzhtXU','skillDomain','daily','1853553NAdUvW','2092936ucNtxY','32Lydhnu','allowOfficialKbServiceDefault','production','region','api','150cCCEbG','17490XInPld','apiDomain','132186khjpWZ'];a97_0x5140=function(){return _0x679d54;};return a97_0x5140();}(function(_0xa12cd0,_0x2269f1){const _0x204cc3=a97_0x3def,_0x2cbb84=_0xa12cd0();while(!![]){try{const _0x4ff21a=-parseInt(_0x204cc3(0x1a6))/0x1*(parseInt(_0x204cc3(0x1ac))/0x2)+parseInt(_0x204cc3(0x1ab))/0x3+-parseInt(_0x204cc3(0x1a4))/0x4+parseInt(_0x204cc3(0x19f))/0x5*(parseInt(_0x204cc3(0x1a2))/0x6)+-parseInt(_0x204cc3(0x1a8))/0x7*(-parseInt(_0x204cc3(0x19a))/0x8)+-parseInt(_0x204cc3(0x1a5))/0x9+parseInt(_0x204cc3(0x1a0))/0xa*(parseInt(_0x204cc3(0x1a3))/0xb);if(_0x4ff21a===_0x2269f1)break;else _0x2cbb84['push'](_0x2cbb84['shift']());}catch(_0x2929e1){_0x2cbb84['push'](_0x2cbb84['shift']());}}}(a97_0x5140,0xf3609));import{getEnv,isProduction}from'../constant/env.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x40a9c6){const _0xb30428=a97_0x3def;customApiDomain=_0x40a9c6?.[_0xb30428(0x1a1)],customUserDomain=_0x40a9c6?.['userDomain'],customRuntimeDomain=_0x40a9c6?.[_0xb30428(0x1a7)],customSkillDomain=_0x40a9c6?.[_0xb30428(0x1a9)],customKbServiceDomain=_0x40a9c6?.['kbServiceDomain'],allowOfficialKbServiceDefault=_0x40a9c6?.[_0xb30428(0x19b)]??!![],activeRegion=_0x40a9c6?.[_0xb30428(0x19d)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x214b84=a97_0x3def,_0x4af597=OFFICIAL_ROUTING_PROFILES[activeRegion]['serviceDomains'];return isProduction(getEnv())?_0x4af597[_0x214b84(0x19c)]:_0x214b84(0x1aa)in _0x4af597?_0x4af597[_0x214b84(0x1aa)]:_0x4af597[_0x214b84(0x19c)];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()['user'];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a97_0x24b8c4(0x19e)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()['runtime'];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbServiceDomain=()=>{if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;const _0x136ae4=getActiveRegionDomains();return'kbService'in _0x136ae4?_0x136ae4['kbService']:undefined;};
@@ -1 +1 @@
1
- const a97_0x53835e=a97_0x336b;(function(_0x545558,_0x1dd5e3){const _0x1d5341=a97_0x336b,_0x250ec2=_0x545558();while(!![]){try{const _0x49a147=-parseInt(_0x1d5341(0xbb))/0x1+-parseInt(_0x1d5341(0xb0))/0x2+-parseInt(_0x1d5341(0xb8))/0x3*(parseInt(_0x1d5341(0xba))/0x4)+-parseInt(_0x1d5341(0xb5))/0x5+-parseInt(_0x1d5341(0xbc))/0x6*(parseInt(_0x1d5341(0xb2))/0x7)+parseInt(_0x1d5341(0xb4))/0x8+-parseInt(_0x1d5341(0xaf))/0x9*(-parseInt(_0x1d5341(0xb1))/0xa);if(_0x49a147===_0x1dd5e3)break;else _0x250ec2['push'](_0x250ec2['shift']());}catch(_0x2dfa72){_0x250ec2['push'](_0x250ec2['shift']());}}}(a97_0x38f5,0xd9b19));function a97_0x336b(_0xbc51ab,_0x54e9fc){_0xbc51ab=_0xbc51ab-0xaf;const _0x38f513=a97_0x38f5();let _0x336b03=_0x38f513[_0xbc51ab];return _0x336b03;}function a97_0x38f5(){const _0x3a515e=['1776aGDgTL','dev','151974oiZbWU','3445248kGufYu','2370uzZnQm','15211vGcSBh','daily','932848XKnryS','1349945yekhYu','production','development','93dMtpth','online','16884BtpVzD','460243WyoxdP'];a97_0x38f5=function(){return _0x3a515e;};return a97_0x38f5();}import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a97_0x53835e(0xb6),a97_0x53835e(0xb7),a97_0x53835e(0xb3)];export function normalizeEnv(_0xd4878f){const _0x3e75e0=a97_0x53835e;return _0xd4878f===_0x3e75e0(0xb9)?_0x3e75e0(0xb6):_0xd4878f;}export function isProduction(_0xf8b310){const _0x311eb8=a97_0x53835e;return normalizeEnv(_0xf8b310)===_0x311eb8(0xb6);}export function isDaily(_0x4f0986){const _0x5c60b9=a97_0x53835e;return normalizeEnv(_0x4f0986)===_0x5c60b9(0xb3);}export function isDev(_0x1a0d7b){const _0x4a190e=a97_0x53835e,_0x8a1576=normalizeEnv(_0x1a0d7b);return _0x8a1576==='development'||_0x8a1576===_0x4a190e(0xbd);}let env=normalizeEnv(productEnv('ENV')||'production');export function getEnv(){return env;}export function initEnv(_0xe7fc56){env=normalizeEnv(_0xe7fc56);}
1
+ const a98_0x4f1b12=a98_0x2c76;(function(_0x117a0d,_0x357a0a){const _0x372c39=a98_0x2c76,_0x3d2b3c=_0x117a0d();while(!![]){try{const _0x687b41=parseInt(_0x372c39(0x1fa))/0x1*(-parseInt(_0x372c39(0x1f6))/0x2)+-parseInt(_0x372c39(0x1fb))/0x3*(-parseInt(_0x372c39(0x1f3))/0x4)+parseInt(_0x372c39(0x1f8))/0x5+-parseInt(_0x372c39(0x1f9))/0x6*(parseInt(_0x372c39(0x1fe))/0x7)+-parseInt(_0x372c39(0x1fd))/0x8+parseInt(_0x372c39(0x1f5))/0x9*(parseInt(_0x372c39(0x1f0))/0xa)+-parseInt(_0x372c39(0x1ff))/0xb*(-parseInt(_0x372c39(0x1f1))/0xc);if(_0x687b41===_0x357a0a)break;else _0x3d2b3c['push'](_0x3d2b3c['shift']());}catch(_0x98e34e){_0x3d2b3c['push'](_0x3d2b3c['shift']());}}}(a98_0x4e10,0x5d706));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a98_0x4f1b12(0x1f7),a98_0x4f1b12(0x1f2),a98_0x4f1b12(0x200)];export function normalizeEnv(_0x4eb90c){const _0x2c4b95=a98_0x4f1b12;return _0x4eb90c===_0x2c4b95(0x1fc)?_0x2c4b95(0x1f7):_0x4eb90c;}export function isProduction(_0x3db2be){const _0x35b070=a98_0x4f1b12;return normalizeEnv(_0x3db2be)===_0x35b070(0x1f7);}export function isDaily(_0x357705){const _0x270738=a98_0x4f1b12;return normalizeEnv(_0x357705)===_0x270738(0x200);}export function isDev(_0x47fc78){const _0x8bc7e8=a98_0x4f1b12,_0x4265fb=normalizeEnv(_0x47fc78);return _0x4265fb===_0x8bc7e8(0x1f2)||_0x4265fb==='dev';}function a98_0x2c76(_0x1ebaaa,_0x1a9c01){_0x1ebaaa=_0x1ebaaa-0x1f0;const _0x4e1063=a98_0x4e10();let _0x2c768f=_0x4e1063[_0x1ebaaa];return _0x2c768f;}let env=normalizeEnv(productEnv(a98_0x4f1b12(0x1f4))||a98_0x4f1b12(0x1f7));export function getEnv(){return env;}export function initEnv(_0x15fb41){env=normalizeEnv(_0x15fb41);}function a98_0x4e10(){const _0x5cc5f7=['daily','30AciuDl','12sxcZUP','development','244056wFqnSp','ENV','434898vHcJKh','128mVbVEq','production','2163795ovjzCP','2240094mlDaAr','3526noyzUo','24ilHmPy','online','2555696ABcRVv','14MtKkeA','6695843ehyrBD'];a98_0x4e10=function(){return _0x5cc5f7;};return a98_0x4e10();}