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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/init.d.ts +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/index.js +1 -1
  28. package/lib/commands/dataset/detail.js +1 -1
  29. package/lib/commands/dataset/index.js +1 -1
  30. package/lib/commands/dataset/list.js +1 -1
  31. package/lib/commands/dataset/sdk-doc.js +1 -1
  32. package/lib/commands/doctor.js +1 -1
  33. package/lib/commands/file/index.js +1 -1
  34. package/lib/commands/init.js +1 -1
  35. package/lib/commands/kb/index.js +1 -1
  36. package/lib/commands/logs/index.js +1 -1
  37. package/lib/commands/notification/config-list.js +1 -1
  38. package/lib/commands/notification/index.js +1 -1
  39. package/lib/commands/notification/shared.js +1 -1
  40. package/lib/commands/ocr/index.js +1 -1
  41. package/lib/commands/permit/dataset-get.js +1 -1
  42. package/lib/commands/permit/dataset-set.js +1 -1
  43. package/lib/commands/permit/index.js +1 -1
  44. package/lib/commands/permit/page-get.js +1 -1
  45. package/lib/commands/permit/page-set.js +1 -1
  46. package/lib/commands/permit/role-menus-set.js +1 -1
  47. package/lib/commands/permit/role-menus.js +1 -1
  48. package/lib/commands/permit/shared.js +1 -1
  49. package/lib/commands/personal-bff/index.js +1 -1
  50. package/lib/commands/registry.js +1 -1
  51. package/lib/commands/role/create.js +1 -1
  52. package/lib/commands/role/delete.js +1 -1
  53. package/lib/commands/role/detail.js +1 -1
  54. package/lib/commands/role/index.js +1 -1
  55. package/lib/commands/role/list.js +1 -1
  56. package/lib/commands/role/shared.js +1 -1
  57. package/lib/commands/role/update.js +1 -1
  58. package/lib/commands/role/user-add.js +1 -1
  59. package/lib/commands/role/user-remove.js +1 -1
  60. package/lib/commands/schedule/index.js +1 -1
  61. package/lib/commands/schema.js +1 -1
  62. package/lib/commands/service/dynamic.js +1 -1
  63. package/lib/commands/service/function-name-adapter.js +1 -1
  64. package/lib/commands/service/index.js +1 -1
  65. package/lib/commands/service/registry.js +1 -1
  66. package/lib/commands/skill/commands/create.js +1 -1
  67. package/lib/commands/skill/commands/diagram.js +1 -1
  68. package/lib/commands/skill/commands/install.js +1 -1
  69. package/lib/commands/skill/commands/list.js +1 -1
  70. package/lib/commands/skill/commands/push.js +1 -1
  71. package/lib/commands/skill/commands/validate.js +1 -1
  72. package/lib/commands/skill/diagram.js +1 -1
  73. package/lib/commands/skill/flags.js +1 -1
  74. package/lib/commands/skill/index.js +1 -1
  75. package/lib/commands/skill/manifest-helpers.js +1 -1
  76. package/lib/commands/skill/push-execute.js +1 -1
  77. package/lib/commands/skill/push-flow-helpers.js +1 -1
  78. package/lib/commands/skill/push-retarget.js +1 -1
  79. package/lib/commands/skill/scopes.js +1 -1
  80. package/lib/commands/skill/summary.js +1 -1
  81. package/lib/commands/skill/templates.js +1 -1
  82. package/lib/commands/skill/validate.js +1 -1
  83. package/lib/commands/sql/detail.js +1 -1
  84. package/lib/commands/sql/exec.js +1 -1
  85. package/lib/commands/sql/index.js +1 -1
  86. package/lib/commands/update.js +1 -1
  87. package/lib/commands/user-account/bind.js +1 -1
  88. package/lib/commands/user-account/index.js +1 -1
  89. package/lib/commands/workspace/index.js +1 -1
  90. package/lib/config/domain-config.d.ts +1 -1
  91. package/lib/config/domain-config.js +1 -1
  92. package/lib/config/schema.d.ts +1 -1
  93. package/lib/config/schema.js +1 -1
  94. package/lib/constant/app.js +1 -1
  95. package/lib/constant/auth-mode.js +1 -1
  96. package/lib/constant/cli.js +1 -1
  97. package/lib/constant/defaults.js +1 -1
  98. package/lib/constant/distribution.js +1 -1
  99. package/lib/constant/domain.d.ts +0 -3
  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.js +1 -1
  109. package/lib/core/db-resolver.js +1 -1
  110. package/lib/core/kb-search-client.js +1 -1
  111. package/lib/core/sdk-client.js +1 -1
  112. package/lib/errors.js +1 -1
  113. package/lib/framework/build-all-flags.js +1 -1
  114. package/lib/framework/dryrun.js +1 -1
  115. package/lib/framework/flags.js +1 -1
  116. package/lib/framework/help.js +1 -1
  117. package/lib/framework/index.js +1 -1
  118. package/lib/framework/output.js +1 -1
  119. package/lib/framework/preparse.js +1 -1
  120. package/lib/framework/rate-limit.js +1 -1
  121. package/lib/framework/raw-flags.js +1 -1
  122. package/lib/framework/response.js +1 -1
  123. package/lib/framework/runner-confirmation.js +1 -1
  124. package/lib/framework/runner-error.js +1 -1
  125. package/lib/framework/runner.js +1 -1
  126. package/lib/framework/schema-export.js +1 -1
  127. package/lib/framework/service-order.js +1 -1
  128. package/lib/framework/types.js +1 -1
  129. package/lib/generated/build-info.d.ts +4 -4
  130. package/lib/generated/build-info.js +1 -1
  131. package/lib/help.js +1 -1
  132. package/lib/postinstall.js +1 -1
  133. package/lib/runtime/confirmation.js +1 -1
  134. package/lib/runtime/event.js +1 -1
  135. package/lib/runtime/index.js +1 -1
  136. package/lib/runtime/queue.js +1 -1
  137. package/lib/runtime/resolve.js +1 -1
  138. package/lib/skills/builtin-skill.js +1 -1
  139. package/lib/skills/npx-skills-add.js +1 -1
  140. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  141. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  142. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  143. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  144. package/lib/skills/runtime-skill-sync/links.js +1 -1
  145. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  146. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  147. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  148. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  149. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  150. package/lib/skills/runtime-skill-sync/push.js +1 -1
  151. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  152. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  153. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  154. package/lib/skills/runtime-skill-sync.js +1 -1
  155. package/lib/skills/skill-presence.js +1 -1
  156. package/lib/utils/access-key-redaction.js +1 -1
  157. package/lib/utils/apply-jq-filter.js +1 -1
  158. package/lib/utils/cli-version-check.js +1 -1
  159. package/lib/utils/cli-version-policy.js +1 -1
  160. package/lib/utils/logger.js +1 -1
  161. package/lib/utils/lossless-json.js +1 -1
  162. package/lib/utils/params.js +1 -1
  163. package/lib/utils/platform.js +1 -1
  164. package/lib/utils/update-notice.js +1 -1
  165. package/lib/utils/version.js +1 -1
  166. package/lib/utils/write-cli-side-channel.js +1 -1
  167. package/package.json +1 -1
  168. package/skills/lovrabet/SKILL.md +1 -1
  169. package/skills/lovrabet/references/lovrabet-config-commands.md +5 -6
  170. package/skills/lovrabet/references/lovrabet-config.md +8 -9
  171. package/skills/lovrabet/references/lovrabet-doctor.md +1 -1
  172. package/skills/lovrabet/references/lovrabet-kb-workflow.md +1 -1
  173. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a80_0x412443=a80_0x2683;(function(_0x3f63d1,_0x5055aa){const _0x2b6e33=a80_0x2683,_0x5e0b58=_0x3f63d1();while(!![]){try{const _0x3b2b39=parseInt(_0x2b6e33(0x1f6))/0x1*(-parseInt(_0x2b6e33(0x1cc))/0x2)+parseInt(_0x2b6e33(0x1d2))/0x3*(-parseInt(_0x2b6e33(0x1c8))/0x4)+-parseInt(_0x2b6e33(0x1db))/0x5*(parseInt(_0x2b6e33(0x1d7))/0x6)+parseInt(_0x2b6e33(0x219))/0x7+-parseInt(_0x2b6e33(0x1f7))/0x8*(-parseInt(_0x2b6e33(0x1de))/0x9)+parseInt(_0x2b6e33(0x1ec))/0xa*(parseInt(_0x2b6e33(0x1e1))/0xb)+-parseInt(_0x2b6e33(0x204))/0xc*(parseInt(_0x2b6e33(0x1f4))/0xd);if(_0x3b2b39===_0x5055aa)break;else _0x5e0b58['push'](_0x5e0b58['shift']());}catch(_0x3e5fa8){_0x5e0b58['push'](_0x5e0b58['shift']());}}}(a80_0x3aef,0x6ed9f));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';function a80_0x2683(_0x163a77,_0xc8e7cb){_0x163a77=_0x163a77-0x1c3;const _0x3aef88=a80_0x3aef();let _0x2683c0=_0x3aef88[_0x163a77];return _0x2683c0;}import{parse as a80_0x439127}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([a80_0x412443(0x1c5),a80_0x412443(0x1d3)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x3aae37,_0x1ea7f2={}){const _0x4e6ab7=a80_0x412443,_0x28e6df=resolveSkillDirectoryRoot(_0x3aae37),_0x4126bb=[],_0x372743=loadRequiredSkillFile(_0x28e6df,_0x4126bb),_0x16e834=_0x372743?parseFrontmatter(_0x372743[_0x4e6ab7(0x1c7)]):{'hasFrontmatter':![]};_0x372743&&validateFrontmatter(_0x372743[_0x4e6ab7(0x1d9)],_0x16e834,_0x4126bb);validateRuntimeCliReferences(_0x28e6df,_0x4126bb);const _0x275353=_0x4126bb[_0x4e6ab7(0x1c9)](_0x1b7110=>_0x1b7110[_0x4e6ab7(0x201)]===_0x4e6ab7(0x220)),_0xd1a73c=_0x4126bb[_0x4e6ab7(0x1c9)](_0x4963b6=>_0x4963b6[_0x4e6ab7(0x201)]===_0x4e6ab7(0x1d0));return{'ok':_0x275353[_0x4e6ab7(0x20a)]===0x0,'dir':_0x28e6df,'type':_0x16e834[_0x4e6ab7(0x1ee)],'errors':_0x275353,'warnings':_0xd1a73c};}function resolveSkillDirectoryRoot(_0x410d1e){const _0x36ca91=a80_0x412443,_0x156dce=resolve(_0x410d1e);if(!existsSync(_0x156dce))throw CliErrors[_0x36ca91(0x1ef)](_0x36ca91(0x20c)+_0x410d1e);const _0x2f90d2=lstatSync(_0x156dce);if(_0x2f90d2[_0x36ca91(0x202)]())return _0x156dce;if(_0x2f90d2[_0x36ca91(0x216)]()){const _0x1aef8e=realpathSync(_0x156dce);if(lstatSync(_0x1aef8e)['isDirectory']())return _0x1aef8e;}throw CliErrors['validation'](_0x36ca91(0x20c)+_0x410d1e);}export function throwIfSkillValidationFailed(_0x5be768,_0x644802=![]){const _0x4a2515=a80_0x412443;if(_0x5be768['ok'])return;const _0x31cd63=_0x5be768[_0x4a2515(0x217)]['map'](_0x368e27=>{const _0x1afd92=_0x4a2515,_0x2610a0=_0x368e27[_0x1afd92(0x1fb)]?'#'+_0x368e27[_0x1afd92(0x1fb)]:'';return _0x368e27[_0x1afd92(0x201)][_0x1afd92(0x21c)]()+'\x20'+_0x368e27[_0x1afd92(0x1f9)]+'\x20'+_0x368e27[_0x1afd92(0x20d)]+_0x2610a0+':\x20'+_0x368e27['message']+'\x20Fix:\x20'+_0x368e27[_0x1afd92(0x1f5)];});throw CliErrors['validation'](_0x4a2515(0x1f1)+_0x31cd63[_0x4a2515(0x218)]('\x0a'),_0x4a2515(0x1fe));}function loadRequiredSkillFile(_0x50db72,_0x1fd931){const _0x343987=a80_0x412443,_0x4dbdbe=resolve(_0x50db72,SKILL_FILE);if(!existsSync(_0x4dbdbe))return _0x1fd931['push'](issue(_0x343987(0x220),_0x343987(0x1df),SKILL_FILE,_0x343987(0x215),_0x343987(0x1f0))),undefined;const _0x509cb1=lstatSync(_0x4dbdbe);if(_0x509cb1[_0x343987(0x216)]())return _0x1fd931[_0x343987(0x1c4)](issue(_0x343987(0x220),_0x343987(0x1df),SKILL_FILE,_0x343987(0x20e),_0x343987(0x205))),undefined;if(!_0x509cb1[_0x343987(0x1e6)]())return _0x1fd931[_0x343987(0x1c4)](issue('error',_0x343987(0x1df),SKILL_FILE,_0x343987(0x1d5),_0x343987(0x1fa))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x4dbdbe,_0x343987(0x1c6))};}function validateFrontmatter(_0x37a348,_0x2739c7,_0x2e4513){const _0x420bb6=a80_0x412443;if(!_0x2739c7[_0x420bb6(0x1ce)]){_0x2e4513['push'](issue(_0x420bb6(0x220),_0x420bb6(0x1e5),_0x37a348,_0x420bb6(0x1e7),_0x420bb6(0x1ea)));return;}!_0x2739c7['name']?.['trim']()&&_0x2e4513[_0x420bb6(0x1c4)](issue(_0x420bb6(0x220),_0x420bb6(0x1e5),_0x37a348,_0x420bb6(0x208),_0x420bb6(0x223))),!_0x2739c7[_0x420bb6(0x1d1)]?.[_0x420bb6(0x1e8)]()&&_0x2e4513[_0x420bb6(0x1c4)](issue(_0x420bb6(0x1d0),_0x420bb6(0x1eb),_0x37a348,_0x420bb6(0x1da),_0x420bb6(0x207))),!_0x2739c7['example']?.[_0x420bb6(0x1e8)]()&&_0x2e4513[_0x420bb6(0x1c4)](issue(_0x420bb6(0x1d0),_0x420bb6(0x214),_0x37a348,'Frontmatter\x20example\x20is\x20missing.',_0x420bb6(0x1e2))),!_0x2739c7[_0x420bb6(0x21f)]?.[_0x420bb6(0x1e8)]()&&_0x2e4513[_0x420bb6(0x1c4)](issue(_0x420bb6(0x220),'description-required',_0x37a348,_0x420bb6(0x21d),'Describe\x20when\x20the\x20model\x20should\x20trigger\x20this\x20Skill,\x20plus\x20out-of-scope\x20boundaries\x20and\x20keywords.')),_0x2739c7[_0x420bb6(0x1d4)]===!![]&&_0x2e4513['push'](issue(_0x420bb6(0x220),'internal-skill',_0x37a348,_0x420bb6(0x1c3),'Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.')),_0x2739c7[_0x420bb6(0x1ee)]?.['trim']()&&!SUPPORTED_SKILL_TYPES[_0x420bb6(0x1ff)](_0x2739c7[_0x420bb6(0x1ee)])&&_0x2e4513[_0x420bb6(0x1c4)](issue(_0x420bb6(0x220),_0x420bb6(0x1e5),_0x37a348,'metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.',_0x420bb6(0x1cf)));}function validateRuntimeCliReferences(_0xeff83e,_0x357b01){const _0x1814f0=a80_0x412443;for(const _0x3f3a88 of findRabetbaseCliInvocations(_0xeff83e)){_0x357b01[_0x1814f0(0x1c4)](issue('warning',_0x1814f0(0x1e0),_0x3f3a88[_0x1814f0(0x20d)],_0x1814f0(0x222),'If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','L'+_0x3f3a88[_0x1814f0(0x21e)]));}}function findRabetbaseCliInvocations(_0x3bd222){const _0x37346a=a80_0x412443;return scanSkillDirectory(_0x3bd222)['filter'](_0x3070d0=>TEXT_SKILL_FILE_PATTERN[_0x37346a(0x1e3)](_0x3070d0[_0x37346a(0x1d9)]))[_0x37346a(0x1e4)](_0x385434=>{const _0x25642d=_0x37346a,_0x4008f6=fileText(_0x385434);return _0x4008f6[_0x25642d(0x1fc)](/\r?\n/)[_0x25642d(0x1d8)]((_0x43dc34,_0x5735f5)=>({'file':_0x385434[_0x25642d(0x1d9)],'line':_0x5735f5+0x1,'text':_0x43dc34}))[_0x25642d(0x1c9)](({text:_0x52e057})=>isRabetbaseCliInvocation(_0x52e057))['map'](({file:_0x50cb53,line:_0x39fb18})=>({'file':_0x50cb53,'line':_0x39fb18}));});}const RABETBASE_SUBCOMMANDS=[a80_0x412443(0x21a),a80_0x412443(0x1dd),a80_0x412443(0x20b),a80_0x412443(0x1cb),'project','app',a80_0x412443(0x1e9),a80_0x412443(0x21b),a80_0x412443(0x1ed),'kb','config',a80_0x412443(0x206),a80_0x412443(0x209),a80_0x412443(0x1ca),a80_0x412443(0x1d6),'registry'],RABETBASE_INVOCATION=new RegExp(String['raw']`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a80_0x412443(0x218)]('|')})\b`+String[a80_0x412443(0x221)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function a80_0x3aef(){const _0x556c66=['length','bff','Skill\x20directory\x20not\x20found:\x20','file','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','match','slice','metadata','boolean','false','example-recommended','Missing\x20SKILL.md.','isSymbolicLink','errors','join','6260737QAKxnA','dataset','service','toUpperCase','Frontmatter\x20description\x20is\x20empty.','line','description','error','raw','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','push','write','utf8','content','1433724qHBUTR','filter','auth','page','265570geIRPB','example','hasFrontmatter','Set\x20metadata.type\x20to\x20write\x20or\x20read.','warning','displayName','3YiqMYE','read','internal','SKILL.md\x20is\x20not\x20a\x20file.','logs','362658OUQMqu','map','path','Frontmatter\x20displayName\x20is\x20missing.','5dbJrTe','name','sql','4998780niyIsa','structure-complete','rabetbase-cli-reference','8718941VWkXRc','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','test','flatMap','frontmatter-required','isFile','SKILL.md\x20must\x20start\x20with\x20frontmatter.','trim','schema','Add\x20frontmatter\x20with\x20name\x20and\x20description.','display-name-recommended','10HfUrPR','artifact','type','validation','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','Skill\x20validation\x20failed:\x0a','search','isArray','39MMpYCB','suggestion','6kmtNfp','8thAOZo','string','ruleId','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','section','split','true','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','has','number','level','isDirectory','toLowerCase','2291244auDkfZ','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','workspace','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','Frontmatter\x20name\x20is\x20missing.','data'];a80_0x3aef=function(){return _0x556c66;};return a80_0x3aef();}function isRabetbaseCliInvocation(_0x16cba7){const _0x1f0798=a80_0x412443,_0x4ee841=_0x16cba7[_0x1f0798(0x1f2)](/\brabetbase\b/i);if(_0x4ee841<0x0)return![];const _0x4c98aa=_0x16cba7[_0x1f0798(0x210)](_0x4ee841)[_0x1f0798(0x1fc)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x1f0798(0x1e3)](_0x4c98aa);}function parseFrontmatter(_0x110b2a){const _0x4b8002=a80_0x412443,_0x199ab7=_0x110b2a[_0x4b8002(0x20f)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x199ab7)return{'hasFrontmatter':![]};const _0x222471=_0x199ab7[0x1]??'',_0x541055={'hasFrontmatter':!![]};let _0x5f254f;try{_0x5f254f=a80_0x439127(_0x222471);}catch{return _0x541055;}const _0x8c4fb8=asRecord(_0x5f254f);if(!_0x8c4fb8)return _0x541055;_0x541055[_0x4b8002(0x1dc)]=scalarToString(_0x8c4fb8['name']),_0x541055['displayName']=scalarToString(_0x8c4fb8['displayName']),_0x541055[_0x4b8002(0x21f)]=scalarToString(_0x8c4fb8[_0x4b8002(0x21f)]),_0x541055[_0x4b8002(0x1cd)]=scalarToString(_0x8c4fb8[_0x4b8002(0x1cd)]);const _0x59c7bd=asRecord(_0x8c4fb8[_0x4b8002(0x211)]);return _0x59c7bd&&(_0x541055[_0x4b8002(0x1ee)]=scalarToString(_0x59c7bd[_0x4b8002(0x1ee)]),_0x541055[_0x4b8002(0x1d4)]=scalarToBoolean(_0x59c7bd['internal'])),_0x541055;}function asRecord(_0x311d43){const _0x199cfe=a80_0x412443;if(_0x311d43&&typeof _0x311d43==='object'&&!Array[_0x199cfe(0x1f3)](_0x311d43))return _0x311d43;return undefined;}function scalarToString(_0x55e86f){const _0x1ddfc7=a80_0x412443;if(typeof _0x55e86f===_0x1ddfc7(0x1f8))return _0x55e86f[_0x1ddfc7(0x1e8)]();if(typeof _0x55e86f===_0x1ddfc7(0x200)||typeof _0x55e86f===_0x1ddfc7(0x212))return String(_0x55e86f);return undefined;}function scalarToBoolean(_0x5bf213){const _0x3e19a8=a80_0x412443;if(typeof _0x5bf213===_0x3e19a8(0x212))return _0x5bf213;if(typeof _0x5bf213==='string')return cleanBoolean(_0x5bf213);return undefined;}function cleanBoolean(_0x13ed7c){const _0x5de343=a80_0x412443,_0x46d165=_0x13ed7c[_0x5de343(0x1e8)]()[_0x5de343(0x203)]();if(_0x46d165===_0x5de343(0x1fd))return!![];if(_0x46d165===_0x5de343(0x213))return![];return undefined;}function issue(_0x2ed98f,_0x35d7fd,_0x459274,_0xffec34,_0x2e2141,_0x1a5713){return{'level':_0x2ed98f,'ruleId':_0x35d7fd,'file':_0x459274,'section':_0x1a5713,'message':_0xffec34,'suggestion':_0x2e2141};}
1
+ const a80_0x346489=a80_0x476c;function a80_0x3e70(){const _0x2724a3=['Frontmatter\x20example\x20is\x20missing.','582AnbrcG','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','Missing\x20SKILL.md.','2158118Gsxror','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','registry','service','page','trim','isSymbolicLink','example-recommended','rabetbase-cli-reference','line','level','9XluJmL','dataset','isArray','number','validation','map','\x20Fix:\x20','isDirectory','write','suggestion','725789ZCgsUB','workspace','metadata','artifact','internal','file','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','schema','match','example','content','filter','name','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','hasFrontmatter','raw','2006742PrBNWE','flatMap','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','error','bff','string','warning','frontmatter-required','split','881005RxHQKG','object','Add\x20frontmatter\x20with\x20name\x20and\x20description.','37373BZarUM','auth','push','app','2855988QweViM','length','display-name-recommended','internal-skill','boolean','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','structure-complete','join','Frontmatter\x20name\x20is\x20missing.','10625336jIprTq','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','data','Describe\x20when\x20the\x20model\x20should\x20trigger\x20this\x20Skill,\x20plus\x20out-of-scope\x20boundaries\x20and\x20keywords.','utf8','Skill\x20directory\x20not\x20found:\x20','type','errors','test','description','Frontmatter\x20description\x20is\x20empty.','Set\x20metadata.type\x20to\x20write\x20or\x20read.','false','slice','Frontmatter\x20displayName\x20is\x20missing.','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','sql','path','displayName'];a80_0x3e70=function(){return _0x2724a3;};return a80_0x3e70();}(function(_0x2bdd18,_0x20225f){const _0x2ede4c=a80_0x476c,_0x5753c0=_0x2bdd18();while(!![]){try{const _0x3e8fa9=parseInt(_0x2ede4c(0x201))/0x1+parseInt(_0x2ede4c(0x1ec))/0x2+parseInt(_0x2ede4c(0x211))/0x3+-parseInt(_0x2ede4c(0x221))/0x4+-parseInt(_0x2ede4c(0x21a))/0x5+parseInt(_0x2ede4c(0x1e9))/0x6*(parseInt(_0x2ede4c(0x21d))/0x7)+-parseInt(_0x2ede4c(0x1d5))/0x8*(parseInt(_0x2ede4c(0x1f7))/0x9);if(_0x3e8fa9===_0x20225f)break;else _0x5753c0['push'](_0x5753c0['shift']());}catch(_0x1570dc){_0x5753c0['push'](_0x5753c0['shift']());}}}(a80_0x3e70,0xbcca0));function a80_0x476c(_0x497f85,_0x3f8e12){_0x497f85=_0x497f85-0x1d5;const _0x3e70ac=a80_0x3e70();let _0x476c9b=_0x3e70ac[_0x497f85];return _0x476c9b;}import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a80_0x136ab8}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([a80_0x346489(0x1ff),'read']),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x37447e,_0x771985={}){const _0xabc5ab=a80_0x346489,_0x578f14=resolveSkillDirectoryRoot(_0x37447e),_0x59f2c9=[],_0x2a5958=loadRequiredSkillFile(_0x578f14,_0x59f2c9),_0x27e941=_0x2a5958?parseFrontmatter(_0x2a5958[_0xabc5ab(0x20b)]):{'hasFrontmatter':![]};_0x2a5958&&validateFrontmatter(_0x2a5958[_0xabc5ab(0x1e6)],_0x27e941,_0x59f2c9);validateRuntimeCliReferences(_0x578f14,_0x59f2c9);const _0x1e2da0=_0x59f2c9[_0xabc5ab(0x20c)](_0x58d23f=>_0x58d23f[_0xabc5ab(0x1f6)]===_0xabc5ab(0x214)),_0x14e2cd=_0x59f2c9[_0xabc5ab(0x20c)](_0x40d5c2=>_0x40d5c2[_0xabc5ab(0x1f6)]===_0xabc5ab(0x217));return{'ok':_0x1e2da0[_0xabc5ab(0x222)]===0x0,'dir':_0x578f14,'type':_0x27e941[_0xabc5ab(0x1db)],'errors':_0x1e2da0,'warnings':_0x14e2cd};}function resolveSkillDirectoryRoot(_0x4a9f30){const _0x1d8941=a80_0x346489,_0x2e6561=resolve(_0x4a9f30);if(!existsSync(_0x2e6561))throw CliErrors[_0x1d8941(0x1fb)]('Skill\x20directory\x20not\x20found:\x20'+_0x4a9f30);const _0xac7da2=lstatSync(_0x2e6561);if(_0xac7da2[_0x1d8941(0x1fe)]())return _0x2e6561;if(_0xac7da2[_0x1d8941(0x1f2)]()){const _0x32e0c1=realpathSync(_0x2e6561);if(lstatSync(_0x32e0c1)[_0x1d8941(0x1fe)]())return _0x32e0c1;}throw CliErrors[_0x1d8941(0x1fb)](_0x1d8941(0x1da)+_0x4a9f30);}export function throwIfSkillValidationFailed(_0x1a6c42,_0x20f359=![]){const _0x21ca98=a80_0x346489;if(_0x1a6c42['ok'])return;const _0x4b4315=_0x1a6c42[_0x21ca98(0x1dc)]['map'](_0x481de4=>{const _0xb7a710=_0x21ca98,_0x1d6c52=_0x481de4['section']?'#'+_0x481de4['section']:'';return _0x481de4[_0xb7a710(0x1f6)]['toUpperCase']()+'\x20'+_0x481de4['ruleId']+'\x20'+_0x481de4[_0xb7a710(0x206)]+_0x1d6c52+':\x20'+_0x481de4['message']+_0xb7a710(0x1fd)+_0x481de4[_0xb7a710(0x200)];});throw CliErrors[_0x21ca98(0x1fb)]('Skill\x20validation\x20failed:\x0a'+_0x4b4315[_0x21ca98(0x229)]('\x0a'),_0x21ca98(0x1e4));}function loadRequiredSkillFile(_0x316094,_0x5859b0){const _0x52ef18=a80_0x346489,_0xf3d755=resolve(_0x316094,SKILL_FILE);if(!existsSync(_0xf3d755))return _0x5859b0[_0x52ef18(0x21f)](issue(_0x52ef18(0x214),_0x52ef18(0x228),SKILL_FILE,_0x52ef18(0x1eb),'Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;const _0x370524=lstatSync(_0xf3d755);if(_0x370524[_0x52ef18(0x1f2)]())return _0x5859b0[_0x52ef18(0x21f)](issue(_0x52ef18(0x214),_0x52ef18(0x228),SKILL_FILE,_0x52ef18(0x226),'Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.')),undefined;if(!_0x370524['isFile']())return _0x5859b0[_0x52ef18(0x21f)](issue('error',_0x52ef18(0x228),SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.',_0x52ef18(0x1d6))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0xf3d755,_0x52ef18(0x1d9))};}function validateFrontmatter(_0x459ab6,_0x2cf9c3,_0x5b9722){const _0x2586d5=a80_0x346489;if(!_0x2cf9c3[_0x2586d5(0x20f)]){_0x5b9722[_0x2586d5(0x21f)](issue(_0x2586d5(0x214),_0x2586d5(0x218),_0x459ab6,'SKILL.md\x20must\x20start\x20with\x20frontmatter.',_0x2586d5(0x21c)));return;}!_0x2cf9c3['name']?.[_0x2586d5(0x1f1)]()&&_0x5b9722[_0x2586d5(0x21f)](issue('error',_0x2586d5(0x218),_0x459ab6,_0x2586d5(0x22a),_0x2586d5(0x207))),!_0x2cf9c3[_0x2586d5(0x1e7)]?.[_0x2586d5(0x1f1)]()&&_0x5b9722[_0x2586d5(0x21f)](issue(_0x2586d5(0x217),_0x2586d5(0x223),_0x459ab6,_0x2586d5(0x1e3),_0x2586d5(0x1ea))),!_0x2cf9c3[_0x2586d5(0x20a)]?.['trim']()&&_0x5b9722[_0x2586d5(0x21f)](issue(_0x2586d5(0x217),_0x2586d5(0x1f3),_0x459ab6,_0x2586d5(0x1e8),_0x2586d5(0x1ed))),!_0x2cf9c3[_0x2586d5(0x1de)]?.[_0x2586d5(0x1f1)]()&&_0x5b9722[_0x2586d5(0x21f)](issue(_0x2586d5(0x214),'description-required',_0x459ab6,_0x2586d5(0x1df),_0x2586d5(0x1d8))),_0x2cf9c3[_0x2586d5(0x205)]===!![]&&_0x5b9722['push'](issue(_0x2586d5(0x214),_0x2586d5(0x224),_0x459ab6,_0x2586d5(0x227),_0x2586d5(0x213))),_0x2cf9c3[_0x2586d5(0x1db)]?.[_0x2586d5(0x1f1)]()&&!SUPPORTED_SKILL_TYPES['has'](_0x2cf9c3['type'])&&_0x5b9722[_0x2586d5(0x21f)](issue(_0x2586d5(0x214),_0x2586d5(0x218),_0x459ab6,'metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.',_0x2586d5(0x1e0)));}function validateRuntimeCliReferences(_0x12867a,_0xe4a85f){const _0x4978e4=a80_0x346489;for(const _0x245a8d of findRabetbaseCliInvocations(_0x12867a)){_0xe4a85f[_0x4978e4(0x21f)](issue(_0x4978e4(0x217),_0x4978e4(0x1f4),_0x245a8d[_0x4978e4(0x206)],_0x4978e4(0x20e),'If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','L'+_0x245a8d[_0x4978e4(0x1f5)]));}}function findRabetbaseCliInvocations(_0x38fdbc){const _0x35a961=a80_0x346489;return scanSkillDirectory(_0x38fdbc)[_0x35a961(0x20c)](_0x584dd5=>TEXT_SKILL_FILE_PATTERN[_0x35a961(0x1dd)](_0x584dd5[_0x35a961(0x1e6)]))[_0x35a961(0x212)](_0x208411=>{const _0x427ce9=_0x35a961,_0xf65a79=fileText(_0x208411);return _0xf65a79['split'](/\r?\n/)[_0x427ce9(0x1fc)]((_0x507e24,_0x10f51e)=>({'file':_0x208411[_0x427ce9(0x1e6)],'line':_0x10f51e+0x1,'text':_0x507e24}))[_0x427ce9(0x20c)](({text:_0xaa5699})=>isRabetbaseCliInvocation(_0xaa5699))[_0x427ce9(0x1fc)](({file:_0x3827ae,line:_0x1bf12b})=>({'file':_0x3827ae,'line':_0x1bf12b}));});}const RABETBASE_SUBCOMMANDS=[a80_0x346489(0x1f8),a80_0x346489(0x1e5),a80_0x346489(0x215),a80_0x346489(0x1f0),'project',a80_0x346489(0x220),a80_0x346489(0x208),a80_0x346489(0x1ef),a80_0x346489(0x204),'kb','config',a80_0x346489(0x202),a80_0x346489(0x1d7),a80_0x346489(0x21e),'logs',a80_0x346489(0x1ee)],RABETBASE_INVOCATION=new RegExp(String[a80_0x346489(0x210)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a80_0x346489(0x229)]('|')})\b`+String[a80_0x346489(0x210)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x424da2){const _0x5c7e57=a80_0x346489,_0x35d7dd=_0x424da2['search'](/\brabetbase\b/i);if(_0x35d7dd<0x0)return![];const _0x3016db=_0x424da2[_0x5c7e57(0x1e2)](_0x35d7dd)[_0x5c7e57(0x219)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x5c7e57(0x1dd)](_0x3016db);}function parseFrontmatter(_0x27b1d6){const _0x58ff78=a80_0x346489,_0x1780a1=_0x27b1d6[_0x58ff78(0x209)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x1780a1)return{'hasFrontmatter':![]};const _0x536074=_0x1780a1[0x1]??'',_0x4fa01f={'hasFrontmatter':!![]};let _0x2a6eab;try{_0x2a6eab=a80_0x136ab8(_0x536074);}catch{return _0x4fa01f;}const _0x559aaf=asRecord(_0x2a6eab);if(!_0x559aaf)return _0x4fa01f;_0x4fa01f['name']=scalarToString(_0x559aaf[_0x58ff78(0x20d)]),_0x4fa01f[_0x58ff78(0x1e7)]=scalarToString(_0x559aaf[_0x58ff78(0x1e7)]),_0x4fa01f['description']=scalarToString(_0x559aaf['description']),_0x4fa01f['example']=scalarToString(_0x559aaf[_0x58ff78(0x20a)]);const _0x4e9011=asRecord(_0x559aaf[_0x58ff78(0x203)]);return _0x4e9011&&(_0x4fa01f[_0x58ff78(0x1db)]=scalarToString(_0x4e9011[_0x58ff78(0x1db)]),_0x4fa01f['internal']=scalarToBoolean(_0x4e9011['internal'])),_0x4fa01f;}function asRecord(_0x2163fe){const _0x31fbd6=a80_0x346489;if(_0x2163fe&&typeof _0x2163fe===_0x31fbd6(0x21b)&&!Array[_0x31fbd6(0x1f9)](_0x2163fe))return _0x2163fe;return undefined;}function scalarToString(_0x1181f5){const _0x3ad4d7=a80_0x346489;if(typeof _0x1181f5==='string')return _0x1181f5[_0x3ad4d7(0x1f1)]();if(typeof _0x1181f5===_0x3ad4d7(0x1fa)||typeof _0x1181f5==='boolean')return String(_0x1181f5);return undefined;}function scalarToBoolean(_0x4bd1c4){const _0x107daf=a80_0x346489;if(typeof _0x4bd1c4===_0x107daf(0x225))return _0x4bd1c4;if(typeof _0x4bd1c4===_0x107daf(0x216))return cleanBoolean(_0x4bd1c4);return undefined;}function cleanBoolean(_0x37db8b){const _0x367435=a80_0x346489,_0x1c489a=_0x37db8b[_0x367435(0x1f1)]()['toLowerCase']();if(_0x1c489a==='true')return!![];if(_0x1c489a===_0x367435(0x1e1))return![];return undefined;}function issue(_0x5d7f21,_0x14d969,_0x281126,_0x208e67,_0x252534,_0x464bef){return{'level':_0x5d7f21,'ruleId':_0x14d969,'file':_0x281126,'section':_0x464bef,'message':_0x208e67,'suggestion':_0x252534};}
@@ -1 +1 @@
1
- const a81_0x44a936=a81_0x2211;(function(_0xa65499,_0x3b7456){const _0x53c46d=a81_0x2211,_0x4fdb66=_0xa65499();while(!![]){try{const _0x270fa5=parseInt(_0x53c46d(0x92))/0x1*(parseInt(_0x53c46d(0x90))/0x2)+-parseInt(_0x53c46d(0x97))/0x3+-parseInt(_0x53c46d(0x99))/0x4*(-parseInt(_0x53c46d(0xa0))/0x5)+parseInt(_0x53c46d(0x95))/0x6+parseInt(_0x53c46d(0x9e))/0x7+parseInt(_0x53c46d(0xa1))/0x8+-parseInt(_0x53c46d(0x8e))/0x9;if(_0x270fa5===_0x3b7456)break;else _0x4fdb66['push'](_0x4fdb66['shift']());}catch(_0x579134){_0x4fdb66['push'](_0x4fdb66['shift']());}}}(a81_0x25cb,0xed335));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 a81_0x25cb(){const _0x3981c0=['8581069uHdzym','sqlcode','185KIwVbV','11214808kpyozq','sql','21456873kUxIya','verbose','212692TLrAoL','str','5wuCbrX','appCode','bool','9845220HCQzmB','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','5304861hHbIoO','detail','34988cuqxop','dbId','read','sqlContent','sqlCode'];a81_0x25cb=function(){return _0x3981c0;};return a81_0x25cb();}function a81_0x2211(_0x487c87,_0x2f16db){_0x487c87=_0x487c87-0x8e;const _0x25cbeb=a81_0x25cb();let _0x2211c2=_0x25cbeb[_0x487c87];return _0x2211c2;}export const sqlDetail={'service':a81_0x44a936(0xa2),'command':a81_0x44a936(0x98),'description':a81_0x44a936(0x96),'risk':a81_0x44a936(0x9b),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x5e93a8){const _0xb47a62=a81_0x44a936,_0xbfa158=await getSqlQueryInfo(_0x5e93a8[_0xb47a62(0x93)],_0x5e93a8[_0xb47a62(0x91)](_0xb47a62(0x9f))),_0x2556be=_0x5e93a8[_0xb47a62(0x94)](_0xb47a62(0x8f));if(_0x2556be)return{'ok':!![],'data':_0xbfa158};const _0x12d2f8=_0xbfa158[_0xb47a62(0x9a)]?await getDbName(_0x5e93a8[_0xb47a62(0x93)],_0xbfa158['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0xbfa158[_0xb47a62(0x9d)],'sqlName':_0xbfa158['sqlName'],'db':_0x12d2f8?_0x12d2f8+'\x20('+_0xbfa158[_0xb47a62(0x9a)]+')':_0xbfa158['dbId']??'','sqlContent':_0xbfa158[_0xb47a62(0x9c)]??''}};}};
1
+ const a81_0x57dd0f=a81_0x2d80;(function(_0x581e9d,_0x146f30){const _0x5f398f=a81_0x2d80,_0x198e96=_0x581e9d();while(!![]){try{const _0x4a62b8=-parseInt(_0x5f398f(0xfd))/0x1+parseInt(_0x5f398f(0xf0))/0x2*(parseInt(_0x5f398f(0xf9))/0x3)+-parseInt(_0x5f398f(0xfa))/0x4+parseInt(_0x5f398f(0xed))/0x5*(parseInt(_0x5f398f(0xfe))/0x6)+-parseInt(_0x5f398f(0xf8))/0x7*(parseInt(_0x5f398f(0xef))/0x8)+-parseInt(_0x5f398f(0xf2))/0x9+parseInt(_0x5f398f(0xf5))/0xa;if(_0x4a62b8===_0x146f30)break;else _0x198e96['push'](_0x198e96['shift']());}catch(_0x1699d3){_0x198e96['push'](_0x198e96['shift']());}}}(a81_0x20b1,0x1c77c));import{getSqlQueryInfo}from'../../core/api-client.js';function a81_0x2d80(_0x40b953,_0x348402){_0x40b953=_0x40b953-0xeb;const _0x20b10c=a81_0x20b1();let _0x2d80b6=_0x20b10c[_0x40b953];return _0x2d80b6;}import{getDbName}from'../../core/db-resolver.js';function a81_0x20b1(){const _0xe1c0a6=['verbose','10nJmGYA','appCode','552392ybpYQY','175804uaxmaU','read','2071143JTNmPf','sqlCode','str','4981680tCTeYR','bool','detail','7PsMrNy','6RyNOHb','881404jvoEXn','sqlcode','dbId','171843XgDgaO','402006PXEkzH','sqlName'];a81_0x20b1=function(){return _0xe1c0a6;};return a81_0x20b1();}import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':'sql','command':a81_0x57dd0f(0xf7),'description':'Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','risk':a81_0x57dd0f(0xf1),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x30f862){const _0x329936=a81_0x57dd0f,_0xaafa90=await getSqlQueryInfo(_0x30f862[_0x329936(0xee)],_0x30f862[_0x329936(0xf4)](_0x329936(0xfb))),_0x5a6c5d=_0x30f862[_0x329936(0xf6)](_0x329936(0xec));if(_0x5a6c5d)return{'ok':!![],'data':_0xaafa90};const _0x5e58fe=_0xaafa90['dbId']?await getDbName(_0x30f862[_0x329936(0xee)],_0xaafa90[_0x329936(0xfc)]):undefined;return{'ok':!![],'data':{'sqlCode':_0xaafa90[_0x329936(0xf3)],'sqlName':_0xaafa90[_0x329936(0xeb)],'db':_0x5e58fe?_0x5e58fe+'\x20('+_0xaafa90[_0x329936(0xfc)]+')':_0xaafa90[_0x329936(0xfc)]??'','sqlContent':_0xaafa90['sqlContent']??''}};}};
@@ -1 +1 @@
1
- const a82_0x2e67cb=a82_0x48c8;function a82_0x4f72(){const _0x5cb4d2=['isArray','now','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','execSuccess','params','str','2GIkqKK','exec','length','\x20row(s)\x20in\x20','execError','15608dtvsUy','sql','22689XtmoTc','890115PwBgSO','read','17230037zCHXMt','execResult','933547YJcPlj','4020884Mrymls','3423oueiwc','310WjIKpq','Returned\x20','5292060sAWTba','6CochtS','SQL\x20execution\x20failed'];a82_0x4f72=function(){return _0x5cb4d2;};return a82_0x4f72();}(function(_0xa7b726,_0x4badff){const _0x271d6d=a82_0x48c8,_0x25cd1f=_0xa7b726();while(!![]){try{const _0x36fd98=-parseInt(_0x271d6d(0x1e1))/0x1+parseInt(_0x271d6d(0x1d5))/0x2*(parseInt(_0x271d6d(0x1dd))/0x3)+parseInt(_0x271d6d(0x1e2))/0x4+parseInt(_0x271d6d(0x1cc))/0x5*(parseInt(_0x271d6d(0x1cd))/0x6)+-parseInt(_0x271d6d(0x1e3))/0x7*(-parseInt(_0x271d6d(0x1da))/0x8)+parseInt(_0x271d6d(0x1dc))/0x9*(-parseInt(_0x271d6d(0x1e4))/0xa)+-parseInt(_0x271d6d(0x1df))/0xb;if(_0x36fd98===_0x4badff)break;else _0x25cd1f['push'](_0x25cd1f['shift']());}catch(_0x29a508){_0x25cd1f['push'](_0x25cd1f['shift']());}}}(a82_0x4f72,0xb3c38));import{executeSdkSql}from'../../core/sdk-client.js';function a82_0x48c8(_0x358f91,_0xe0e6a7){_0x358f91=_0x358f91-0x1cc;const _0x4f721a=a82_0x4f72();let _0x48c80d=_0x4f721a[_0x358f91];return _0x48c80d;}import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a82_0x2e67cb(0x1db),'command':a82_0x2e67cb(0x1d6),'description':a82_0x2e67cb(0x1d1),'risk':a82_0x2e67cb(0x1de),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x4c2258){const _0x17ba53=a82_0x2e67cb,_0x2c1dc5=parseJsonParams(_0x4c2258[_0x17ba53(0x1d4)](_0x17ba53(0x1d3))),_0x382e22=Date['now'](),_0x3f3781=await executeSdkSql(_0x4c2258['str']('sqlcode'),_0x2c1dc5),_0x34acd0=Date[_0x17ba53(0x1d0)]()-_0x382e22,_0x1c3e53=_0x3f3781?.[_0x17ba53(0x1e0)]??_0x3f3781,_0x11eddd=_0x3f3781?.[_0x17ba53(0x1d2)]??!![];if(!_0x11eddd)return{'ok':![],'data':{'error':_0x3f3781?.[_0x17ba53(0x1d9)]||_0x17ba53(0x1ce),'elapsed':_0x34acd0},'message':_0x17ba53(0x1ce)};const _0x56fb7b=Array[_0x17ba53(0x1cf)](_0x1c3e53)?_0x1c3e53:[];return{'ok':!![],'data':{'rows':_0x56fb7b,'rowCount':_0x56fb7b[_0x17ba53(0x1d7)],'elapsed':_0x34acd0},'message':_0x17ba53(0x1e5)+_0x56fb7b[_0x17ba53(0x1d7)]+_0x17ba53(0x1d8)+_0x34acd0+'ms'};}};
1
+ const a82_0x1d3fc6=a82_0x4815;(function(_0x4c7f35,_0xcce37f){const _0x4acc71=a82_0x4815,_0x221f92=_0x4c7f35();while(!![]){try{const _0x587a24=-parseInt(_0x4acc71(0xe5))/0x1*(parseInt(_0x4acc71(0xe6))/0x2)+-parseInt(_0x4acc71(0xee))/0x3*(parseInt(_0x4acc71(0xe7))/0x4)+-parseInt(_0x4acc71(0xe4))/0x5+parseInt(_0x4acc71(0xea))/0x6*(-parseInt(_0x4acc71(0xdf))/0x7)+parseInt(_0x4acc71(0xda))/0x8+parseInt(_0x4acc71(0xe1))/0x9+-parseInt(_0x4acc71(0xe0))/0xa*(-parseInt(_0x4acc71(0xed))/0xb);if(_0x587a24===_0xcce37f)break;else _0x221f92['push'](_0x221f92['shift']());}catch(_0x322799){_0x221f92['push'](_0x221f92['shift']());}}}(a82_0x2219,0x55a6b));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a82_0x2219(){const _0x3d85b0=['25095SjVFCs','4810JNzCju','6181047VWfwLS','str','execSuccess','2158105uAUXEc','30yjXWvf','8524SbrYzV','1991820kRxszW','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','SQL\x20execution\x20failed','648DPOzll','execResult','read','18557OWklFE','3dNdSHq','\x20row(s)\x20in\x20','2377704UjAdBP','Returned\x20','length','now','execError'];a82_0x2219=function(){return _0x3d85b0;};return a82_0x2219();}import{parseJsonParams}from'../../utils/params.js';function a82_0x4815(_0x4daa38,_0x5052f3){_0x4daa38=_0x4daa38-0xd9;const _0x22195c=a82_0x2219();let _0x48157f=_0x22195c[_0x4daa38];return _0x48157f;}export const sqlExec={'service':'sql','command':'exec','description':a82_0x1d3fc6(0xe8),'risk':a82_0x1d3fc6(0xec),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x30a4e3){const _0xeed8b2=a82_0x1d3fc6,_0x296a0a=parseJsonParams(_0x30a4e3[_0xeed8b2(0xe2)]('params')),_0x4bb155=Date['now'](),_0x83dc0e=await executeSdkSql(_0x30a4e3[_0xeed8b2(0xe2)]('sqlcode'),_0x296a0a),_0x25294c=Date[_0xeed8b2(0xdd)]()-_0x4bb155,_0x1b471d=_0x83dc0e?.[_0xeed8b2(0xeb)]??_0x83dc0e,_0x28fcf4=_0x83dc0e?.[_0xeed8b2(0xe3)]??!![];if(!_0x28fcf4)return{'ok':![],'data':{'error':_0x83dc0e?.[_0xeed8b2(0xde)]||_0xeed8b2(0xe9),'elapsed':_0x25294c},'message':_0xeed8b2(0xe9)};const _0x24677d=Array['isArray'](_0x1b471d)?_0x1b471d:[];return{'ok':!![],'data':{'rows':_0x24677d,'rowCount':_0x24677d[_0xeed8b2(0xdc)],'elapsed':_0x25294c},'message':_0xeed8b2(0xdb)+_0x24677d['length']+_0xeed8b2(0xd9)+_0x25294c+'ms'};}};
@@ -1 +1 @@
1
- (function(_0xc7d717,_0x370ef8){const _0x416111=a83_0x2f29,_0x54a36c=_0xc7d717();while(!![]){try{const _0x3fe323=-parseInt(_0x416111(0x164))/0x1*(parseInt(_0x416111(0x163))/0x2)+parseInt(_0x416111(0x16b))/0x3+-parseInt(_0x416111(0x168))/0x4*(parseInt(_0x416111(0x162))/0x5)+parseInt(_0x416111(0x165))/0x6+-parseInt(_0x416111(0x16a))/0x7*(-parseInt(_0x416111(0x169))/0x8)+parseInt(_0x416111(0x160))/0x9*(-parseInt(_0x416111(0x166))/0xa)+-parseInt(_0x416111(0x167))/0xb*(parseInt(_0x416111(0x161))/0xc);if(_0x3fe323===_0x370ef8)break;else _0x54a36c['push'](_0x54a36c['shift']());}catch(_0x443e5e){_0x54a36c['push'](_0x54a36c['shift']());}}}(a83_0x3eec,0x716e4));function a83_0x2f29(_0x3b0534,_0x3c7109){_0x3b0534=_0x3b0534-0x160;const _0x3eec22=a83_0x3eec();let _0x2f297e=_0x3eec22[_0x3b0534];return _0x2f297e;}import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a83_0x3eec(){const _0x11e6a8=['1289Snqrll','4283814PBUEwD','60HoBApB','2760593uLguBo','1216JfjCdg','16iPgqjI','3153437tPItbb','2431482FxhZma','463185QrwBwr','36nTgCNC','11015NQIZkp','356uDCPKA'];a83_0x3eec=function(){return _0x11e6a8;};return a83_0x3eec();}export const sqlDefinitions=[sqlDetail,sqlExec];
1
+ (function(_0x1c973d,_0x383039){const _0x2d237e=a83_0x23c7,_0x24430c=_0x1c973d();while(!![]){try{const _0x4aca66=parseInt(_0x2d237e(0xc5))/0x1*(-parseInt(_0x2d237e(0xc3))/0x2)+parseInt(_0x2d237e(0xbf))/0x3*(-parseInt(_0x2d237e(0xc4))/0x4)+-parseInt(_0x2d237e(0xc8))/0x5*(parseInt(_0x2d237e(0xca))/0x6)+-parseInt(_0x2d237e(0xc2))/0x7+-parseInt(_0x2d237e(0xc1))/0x8+-parseInt(_0x2d237e(0xc0))/0x9*(-parseInt(_0x2d237e(0xc9))/0xa)+parseInt(_0x2d237e(0xc6))/0xb*(parseInt(_0x2d237e(0xc7))/0xc);if(_0x4aca66===_0x383039)break;else _0x24430c['push'](_0x24430c['shift']());}catch(_0x247721){_0x24430c['push'](_0x24430c['shift']());}}}(a83_0x4136,0x7c6a5));import{sqlDetail}from'../../commands/sql/detail.js';function a83_0x4136(){const _0x37e4e9=['124pYeEcp','1TcpIqG','902QZiOxm','427548RIwHbP','3621800LdGDiA','10CrTFAY','6cLqSdj','86466zQNfsD','6559974CgPQsN','2555040peDzwr','7064092NUfbGK','388962vusAKF'];a83_0x4136=function(){return _0x37e4e9;};return a83_0x4136();}import{sqlExec}from'../../commands/sql/exec.js';function a83_0x23c7(_0x7b6f59,_0x352d30){_0x7b6f59=_0x7b6f59-0xbf;const _0x413649=a83_0x4136();let _0x23c70a=_0x413649[_0x7b6f59];return _0x23c70a;}export const sqlDefinitions=[sqlDetail,sqlExec];
@@ -1 +1 @@
1
- const a84_0x5e2919=a84_0x1919;(function(_0x4ebc37,_0x4b7249){const _0x33935=a84_0x1919,_0x452f97=_0x4ebc37();while(!![]){try{const _0x1a9433=parseInt(_0x33935(0x152))/0x1+parseInt(_0x33935(0x167))/0x2*(-parseInt(_0x33935(0x189))/0x3)+parseInt(_0x33935(0x163))/0x4+-parseInt(_0x33935(0x159))/0x5+-parseInt(_0x33935(0x16f))/0x6*(parseInt(_0x33935(0x18a))/0x7)+parseInt(_0x33935(0x171))/0x8+parseInt(_0x33935(0x192))/0x9*(parseInt(_0x33935(0x157))/0xa);if(_0x1a9433===_0x4b7249)break;else _0x452f97['push'](_0x452f97['shift']());}catch(_0x4da358){_0x452f97['push'](_0x452f97['shift']());}}}(a84_0x4b34,0x958a7));import{spawnSync}from'node:child_process';import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import a84_0x1e9b33 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{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':a84_0x5e2919(0x199),'type':a84_0x5e2919(0x195),'description':'Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','default':![]},{'name':a84_0x5e2919(0x197),'type':a84_0x5e2919(0x195),'description':a84_0x5e2919(0x18f),'default':![]},{'name':'version','type':a84_0x5e2919(0x1a1),'description':'Install\x20a\x20specific\x20CLI\x20version'}];function getRequestedVersion(_0x3d3c5c){const _0x26defe=a84_0x5e2919,_0x1daf71=_0x3d3c5c['str'](_0x26defe(0x160))[_0x26defe(0x16d)]();if(_0x1daf71)return _0x1daf71;return String(_0x3d3c5c[_0x26defe(0x17d)]?.[0x0]??'')[_0x26defe(0x16d)]();}async function validateUpdateFlags(_0x50c6f8){const _0x10a741=a84_0x5e2919,_0x189982=getRequestedVersion(_0x50c6f8),_0x54ca64=[_0x50c6f8[_0x10a741(0x156)](_0x10a741(0x199))?_0x10a741(0x199):'',_0x50c6f8['bool']('beta')?_0x10a741(0x197):'',_0x189982?_0x10a741(0x160):''][_0x10a741(0x187)](Boolean);if(_0x54ca64[_0x10a741(0x15e)]>0x1)throw CliErrors[_0x10a741(0x1a2)](_0x10a741(0x17e),_0x10a741(0x185));if(_0x189982&&!a84_0x1e9b33[_0x10a741(0x183)](_0x189982))throw CliErrors['validation']('Invalid\x20version:\x20'+_0x189982,_0x10a741(0x184));}async function fetchNpmDistTags(){const _0x545651=a84_0x5e2919;try{const _0x2cae15=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x457f8d=await fetch(_0x2cae15,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x457f8d['ok'])return null;const _0x1a21e4=await _0x457f8d['json']();if(!_0x1a21e4||typeof _0x1a21e4!==_0x545651(0x18c))return null;return Object[_0x545651(0x191)](Object[_0x545651(0x17f)](_0x1a21e4)[_0x545651(0x187)](([,_0x1116e5])=>typeof _0x1116e5===_0x545651(0x1a1)&&_0x1116e5[_0x545651(0x16d)]())[_0x545651(0x181)](([_0x17ca69,_0x2f8173])=>[_0x17ca69,String(_0x2f8173)[_0x545651(0x16d)]()]));}catch{return null;}}async function resolveTargetVersion(_0x5868c4){const _0x2a5e25=a84_0x5e2919,_0x1cd56b=getRequestedVersion(_0x5868c4);if(_0x1cd56b)return{'version':_0x1cd56b,'source':_0x2a5e25(0x160)};const _0x2345a3=_0x5868c4[_0x2a5e25(0x156)]('beta')?'beta':_0x2a5e25(0x199),_0x1bba65=await fetchNpmDistTags(),_0x4f5516=_0x1bba65?.[_0x2345a3];if(!_0x4f5516)return null;return{'version':_0x4f5516,'source':_0x2345a3};}function shouldInstallTarget(_0x30ea04,_0x4f06e1){const _0x1156e0=a84_0x5e2919;if(_0x4f06e1[_0x1156e0(0x170)]===_0x1156e0(0x160)||_0x4f06e1['source']===_0x1156e0(0x197))return!a84_0x1e9b33['eq'](_0x30ea04,_0x4f06e1[_0x1156e0(0x160)]);return a84_0x1e9b33['lt'](_0x30ea04,_0x4f06e1[_0x1156e0(0x160)]);}export function installCliPackage(_0x44ae3b,_0x1e2630,_0x6f0405=resolveCurrentCliNpmPrefix()){const _0x4a6097=a84_0x5e2919,_0x594af6=resolveNpmBin(_0x4a6097(0x18d)),_0x3a8221=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x44ae3b,_0x1e2bcc=[_0x4a6097(0x155),'-g',_0x3a8221],_0x1802a0=runNpmInstall(_0x594af6,_0x1e2bcc,_0x1e2630);if(_0x1802a0['ok']||!isNpmPrefixPermissionError(_0x1802a0[_0x4a6097(0x194)]))return _0x1802a0;if(!_0x6f0405||_0x1802a0[_0x4a6097(0x194)]?.[_0x4a6097(0x154)]()[_0x4a6097(0x19f)](_0x6f0405[_0x4a6097(0x154)]()))return _0x1802a0;return console[_0x4a6097(0x15c)]('Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20'+_0x6f0405),runNpmInstall(_0x594af6,[..._0x1e2bcc,_0x4a6097(0x196),_0x6f0405],_0x1e2630);}function a84_0x1919(_0x159751,_0x3912ea){_0x159751=_0x159751-0x150;const _0x4b3406=a84_0x4b34();let _0x19191e=_0x4b3406[_0x159751];return _0x19191e;}export function resolveCurrentCliNpmPrefix(_0x27a935=fileURLToPath(import.meta.url),_0x2199ee=process[a84_0x5e2919(0x186)]){const _0x4e448e=a84_0x5e2919,_0x5c9665=_0x2199ee===_0x4e448e(0x164)?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x292609=_0x5c9665[_0x4e448e(0x165)](_0x5c9665[_0x4e448e(0x165)](_0x5c9665[_0x4e448e(0x165)](_0x27a935))),_0x3f5955=_0x2199ee===_0x4e448e(0x164)?_0x4e448e(0x173):_0x4e448e(0x158);let _0x22a2cb=_0x5c9665[_0x4e448e(0x165)](_0x292609);while(!![]){if(_0x5c9665[_0x4e448e(0x1a4)](_0x22a2cb)===_0x4e448e(0x151)&&_0x5c9665[_0x4e448e(0x15d)](_0x22a2cb,_0x292609)===_0x3f5955){const _0x6c065e=_0x5c9665[_0x4e448e(0x165)](_0x22a2cb);return _0x5c9665[_0x4e448e(0x1a4)](_0x6c065e)==='lib'?_0x5c9665[_0x4e448e(0x165)](_0x6c065e):_0x6c065e;}const _0x29c38c=_0x5c9665[_0x4e448e(0x165)](_0x22a2cb);if(_0x29c38c===_0x22a2cb)return null;_0x22a2cb=_0x29c38c;}}function runNpmInstall(_0x178615,_0xe9a76,_0x1f953d){const _0x55171b=a84_0x5e2919;console[_0x55171b(0x175)]('*\x20'+[_0x178615,..._0xe9a76][_0x55171b(0x19e)]('\x20'));const _0x5e0dd6=spawnSync(_0x178615,_0xe9a76,{'cwd':process['cwd'](),'stdio':'pipe','env':process.env,'shell':![]}),_0x5eeb53=_0x5e0dd6[_0x55171b(0x16c)]?_0x5e0dd6[_0x55171b(0x16c)][_0x55171b(0x15b)]()[_0x55171b(0x16d)]():'',_0x2be05e=_0x5e0dd6[_0x55171b(0x16a)]?_0x5e0dd6['stdout'][_0x55171b(0x15b)]()['trim']():'';if(!_0x1f953d){if(_0x2be05e)process[_0x55171b(0x16a)][_0x55171b(0x1a0)](_0x2be05e+'\x0a');if(_0x5eeb53)process[_0x55171b(0x16c)][_0x55171b(0x1a0)](_0x5eeb53+'\x0a');}if(_0x5e0dd6[_0x55171b(0x198)]===0x0)return{'ok':!![]};const _0x28db99=_0x5e0dd6[_0x55171b(0x194)]?.[_0x55171b(0x1a3)]||_0x5eeb53||_0x2be05e||'exit\x20'+(_0x5e0dd6[_0x55171b(0x198)]??'unknown');return{'ok':![],'error':_0x28db99};}function isNpmPrefixPermissionError(_0x288518){const _0x2740db=a84_0x5e2919;return Boolean(_0x288518&&/\b(?:EACCES|EPERM)\b/[_0x2740db(0x18e)](_0x288518));}function repairCurrentBuiltinSkill(_0xf8e444){const _0x167bab=a84_0x5e2919;console[_0x167bab(0x175)](_0x167bab(0x153));const _0x5688fc=installBuiltinSkill({'stdio':_0xf8e444?'pipe':'inherit'});if(_0x5688fc['ok'])return console[_0x167bab(0x175)]('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x5688fc[_0x167bab(0x193)]+_0x167bab(0x19c)),!![];return console[_0x167bab(0x15c)](_0x167bab(0x15a)+(_0x5688fc['code']||_0x167bab(0x19b))+']:\x20'+(_0x5688fc[_0x167bab(0x194)]||_0x167bab(0x178))),console[_0x167bab(0x175)](_0x167bab(0x177)+_0x5688fc['repairCommand']),![];}function verifyUpdatedBuiltinSkill(_0x40631f){const _0x17c1c9=a84_0x5e2919;console[_0x17c1c9(0x175)](_0x17c1c9(0x153));const _0x26e03b=inspectInstalledBuiltinSkillVersion(_0x40631f);if(_0x26e03b[_0x17c1c9(0x180)]==='current')return console[_0x17c1c9(0x175)]('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x40631f+_0x17c1c9(0x19c)),!![];console[_0x17c1c9(0x15c)](_0x17c1c9(0x16e)+_0x26e03b['state']+'.');if(_0x26e03b[_0x17c1c9(0x161)])console[_0x17c1c9(0x15c)]('\x20\x20'+_0x26e03b['reason']);return console[_0x17c1c9(0x175)](_0x17c1c9(0x177)+_0x26e03b[_0x17c1c9(0x169)]),![];}async function execute(_0x1121cb){const _0x561fa2=a84_0x5e2919;await validateUpdateFlags(_0x1121cb);const _0x7fac5a=getCliVersion();console[_0x561fa2(0x175)](_0x561fa2(0x162)+_0x7fac5a),console[_0x561fa2(0x175)](_0x561fa2(0x174));const _0x265a69=await resolveTargetVersion(_0x1121cb);if(!_0x265a69){const _0x22010a=_0x1121cb[_0x561fa2(0x156)](_0x561fa2(0x197))?_0x561fa2(0x197):_0x561fa2(0x199),_0x32d3ec=_0x561fa2(0x190)+_0x22010a+_0x561fa2(0x19a);return console[_0x561fa2(0x15c)](_0x32d3ec),console[_0x561fa2(0x175)](_0x561fa2(0x17a)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x22010a),{'ok':![],'message':_0x32d3ec};}const _0xd87cba=[_0x7fac5a,_0x265a69[_0x561fa2(0x160)]][_0x561fa2(0x16b)](_0x4b9746=>!a84_0x1e9b33[_0x561fa2(0x183)](_0x4b9746));if(_0xd87cba){const _0xd954ee='Version\x20comparison\x20failed:\x20'+_0xd87cba+'.';return console[_0x561fa2(0x15c)](_0xd954ee),{'ok':![],'message':_0xd954ee};}if(!shouldInstallTarget(_0x7fac5a,_0x265a69)){const _0x211a31=_0x265a69[_0x561fa2(0x170)]==='version'?_0x561fa2(0x17b)+_0x265a69['version']+').':_0x561fa2(0x172)+_0x265a69['version']+').';return console[_0x561fa2(0x175)](_0x211a31),repairCurrentBuiltinSkill(_0x1121cb[_0x561fa2(0x17c)])?{'ok':!![]}:{'ok':![],'message':_0x561fa2(0x179)};}console[_0x561fa2(0x175)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x7fac5a+'\x20->\x20'+_0x265a69[_0x561fa2(0x160)]);const _0x1d916f=installCliPackage(_0x265a69[_0x561fa2(0x160)],_0x1121cb[_0x561fa2(0x17c)]);if(!_0x1d916f['ok']){const _0x2fcc48='Update\x20failed:\x20'+(_0x1d916f[_0x561fa2(0x194)]||_0x561fa2(0x178));return console['error'](_0x2fcc48),console[_0x561fa2(0x175)](_0x561fa2(0x18b)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x265a69[_0x561fa2(0x160)]),{'ok':![],'message':_0x2fcc48};}return console['log'](_0x561fa2(0x19d)+_0x265a69[_0x561fa2(0x160)]+'.'),console[_0x561fa2(0x175)](_0x561fa2(0x15f)),verifyUpdatedBuiltinSkill(_0x265a69['version'])?{'ok':!![]}:{'ok':![],'message':_0x561fa2(0x166)+_0x265a69[_0x561fa2(0x160)]+_0x561fa2(0x168)};}function a84_0x4b34(){const _0x4dd0ae=['filter','read','303KvfIDL','539ulYsAX','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','object','npm','test','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','Unable\x20to\x20resolve\x20','fromEntries','18NwREwr','skillVersion','error','boolean','--prefix','beta','status','latest','\x20version\x20from\x20npm.','INSTALL_FAILED','\x20is\x20current.','Updated\x20to\x20v','join','includes','write','string','validation','message','basename','update','node_modules','309205HsjKad','Checking\x20CLI\x20Built-in\x20Skill...','toLowerCase','install','bool','2415160YeoOwA','@lovrabet/lovrabet-cli','775135HLwYti','\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','toString','warn','relative','length','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','version','reason','Current\x20version:\x20','1118420KCpszd','win32','dirname','CLI\x20updated\x20to\x20v','11600ZZUbCQ',',\x20but\x20Built-in\x20Skill\x20verification\x20failed.','repairCommand','stdout','find','stderr','trim','\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20','53562dfTDft','source','7751064xdcxfH','Already\x20up\x20to\x20date\x20(v','@lovrabet\x5clovrabet-cli','Checking\x20npm\x20dist-tags...','log','\x20CLI\x20from\x20npm','\x20\x20Run\x20manually:\x20','unknown','CLI\x20is\x20up\x20to\x20date,\x20but\x20Built-in\x20Skill\x20repair\x20failed.','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','Already\x20on\x20requested\x20version\x20(v','nonInteractive','args','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','entries','state','map','Update\x20the\x20','valid','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','platform'];a84_0x4b34=function(){return _0x4dd0ae;};return a84_0x4b34();}export const updateDefinition={'service':a84_0x5e2919(0x150),'command':'run','description':a84_0x5e2919(0x182)+CLI_BIN_NAME+a84_0x5e2919(0x176),'risk':a84_0x5e2919(0x188),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a84_0x390d7c=a84_0x2a24;(function(_0x4e0061,_0x3b4238){const _0x4a4518=a84_0x2a24,_0x5a5eed=_0x4e0061();while(!![]){try{const _0x5f391e=-parseInt(_0x4a4518(0x14d))/0x1+parseInt(_0x4a4518(0x15b))/0x2*(parseInt(_0x4a4518(0x150))/0x3)+parseInt(_0x4a4518(0x134))/0x4*(parseInt(_0x4a4518(0x16e))/0x5)+parseInt(_0x4a4518(0x143))/0x6*(parseInt(_0x4a4518(0x131))/0x7)+parseInt(_0x4a4518(0x129))/0x8+-parseInt(_0x4a4518(0x122))/0x9+parseInt(_0x4a4518(0x16f))/0xa*(-parseInt(_0x4a4518(0x15c))/0xb);if(_0x5f391e===_0x3b4238)break;else _0x5a5eed['push'](_0x5a5eed['shift']());}catch(_0x54372f){_0x5a5eed['push'](_0x5a5eed['shift']());}}}(a84_0x4530,0x4a315));import{spawnSync}from'node:child_process';import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import a84_0x1fc82b 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{resolveNpmBin}from'../utils/platform.js';function a84_0x2a24(_0x4a8d5c,_0x3ad095){_0x4a8d5c=_0x4a8d5c-0x120;const _0x45309a=a84_0x4530();let _0x2a2442=_0x45309a[_0x4a8d5c];return _0x2a2442;}import{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':a84_0x390d7c(0x13f),'type':'boolean','description':a84_0x390d7c(0x168),'default':![]},{'name':'beta','type':a84_0x390d7c(0x161),'description':a84_0x390d7c(0x157),'default':![]},{'name':a84_0x390d7c(0x13e),'type':'string','description':a84_0x390d7c(0x139)}];function getRequestedVersion(_0x147582){const _0x3f2279=a84_0x390d7c,_0x17bcaf=_0x147582[_0x3f2279(0x137)](_0x3f2279(0x13e))[_0x3f2279(0x127)]();if(_0x17bcaf)return _0x17bcaf;return String(_0x147582['args']?.[0x0]??'')[_0x3f2279(0x127)]();}async function validateUpdateFlags(_0x8cc210){const _0x2a1bce=a84_0x390d7c,_0x564215=getRequestedVersion(_0x8cc210),_0x1d2e22=[_0x8cc210[_0x2a1bce(0x144)](_0x2a1bce(0x13f))?_0x2a1bce(0x13f):'',_0x8cc210['bool']('beta')?'beta':'',_0x564215?_0x2a1bce(0x13e):''][_0x2a1bce(0x123)](Boolean);if(_0x1d2e22['length']>0x1)throw CliErrors['validation'](_0x2a1bce(0x14b),'Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.');if(_0x564215&&!a84_0x1fc82b[_0x2a1bce(0x163)](_0x564215))throw CliErrors[_0x2a1bce(0x125)]('Invalid\x20version:\x20'+_0x564215,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x3ff0ab=a84_0x390d7c;try{const _0x52aa66=NPM_REGISTRY_BASE_URL+_0x3ff0ab(0x141)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x3ff0ab(0x15f),_0x5f1b7a=await fetch(_0x52aa66,{'signal':AbortSignal[_0x3ff0ab(0x15e)](0x2710)});if(!_0x5f1b7a['ok'])return null;const _0x44571e=await _0x5f1b7a['json']();if(!_0x44571e||typeof _0x44571e!=='object')return null;return Object[_0x3ff0ab(0x16d)](Object[_0x3ff0ab(0x13d)](_0x44571e)['filter'](([,_0x2d6eb5])=>typeof _0x2d6eb5===_0x3ff0ab(0x165)&&_0x2d6eb5['trim']())[_0x3ff0ab(0x160)](([_0xef8f93,_0x492ec1])=>[_0xef8f93,String(_0x492ec1)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0xfb4bbf){const _0x5f39a3=a84_0x390d7c,_0x1f5750=getRequestedVersion(_0xfb4bbf);if(_0x1f5750)return{'version':_0x1f5750,'source':_0x5f39a3(0x13e)};const _0x381e1f=_0xfb4bbf[_0x5f39a3(0x144)]('beta')?_0x5f39a3(0x155):'latest',_0x1d09c9=await fetchNpmDistTags(),_0x31375a=_0x1d09c9?.[_0x381e1f];if(!_0x31375a)return null;return{'version':_0x31375a,'source':_0x381e1f};}function shouldInstallTarget(_0x4818d7,_0x36c9a7){const _0x5068b2=a84_0x390d7c;if(_0x36c9a7[_0x5068b2(0x164)]==='version'||_0x36c9a7[_0x5068b2(0x164)]==='beta')return!a84_0x1fc82b['eq'](_0x4818d7,_0x36c9a7[_0x5068b2(0x13e)]);return a84_0x1fc82b['lt'](_0x4818d7,_0x36c9a7[_0x5068b2(0x13e)]);}export function installCliPackage(_0x1acf43,_0x45ea85,_0x1300b3=resolveCurrentCliNpmPrefix()){const _0x413d83=a84_0x390d7c,_0x45a75f=resolveNpmBin('npm'),_0x526870=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x1acf43,_0x17dd85=['install','-g',_0x526870],_0x3d29e3=runNpmInstall(_0x45a75f,_0x17dd85,_0x45ea85);if(_0x3d29e3['ok']||!isNpmPrefixPermissionError(_0x3d29e3[_0x413d83(0x12d)]))return _0x3d29e3;if(!_0x1300b3||_0x3d29e3[_0x413d83(0x12d)]?.['toLowerCase']()['includes'](_0x1300b3[_0x413d83(0x151)]()))return _0x3d29e3;return console[_0x413d83(0x121)](_0x413d83(0x170)+_0x1300b3),runNpmInstall(_0x45a75f,[..._0x17dd85,_0x413d83(0x154),_0x1300b3],_0x45ea85);}export function resolveCurrentCliNpmPrefix(_0x8583a5=fileURLToPath(import.meta.url),_0x275802=process['platform']){const _0x5c3874=a84_0x390d7c,_0x17c721=_0x275802===_0x5c3874(0x15d)?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0xcb086c=_0x17c721[_0x5c3874(0x16b)](_0x17c721[_0x5c3874(0x16b)](_0x17c721[_0x5c3874(0x16b)](_0x8583a5))),_0x143fcf=_0x275802===_0x5c3874(0x15d)?'@lovrabet\x5clovrabet-cli':'@lovrabet/lovrabet-cli';let _0x5a3dfa=_0x17c721['dirname'](_0xcb086c);while(!![]){if(_0x17c721[_0x5c3874(0x135)](_0x5a3dfa)===_0x5c3874(0x126)&&_0x17c721[_0x5c3874(0x15a)](_0x5a3dfa,_0xcb086c)===_0x143fcf){const _0x386ceb=_0x17c721['dirname'](_0x5a3dfa);return _0x17c721[_0x5c3874(0x135)](_0x386ceb)===_0x5c3874(0x14f)?_0x17c721[_0x5c3874(0x16b)](_0x386ceb):_0x386ceb;}const _0x5ebfae=_0x17c721['dirname'](_0x5a3dfa);if(_0x5ebfae===_0x5a3dfa)return null;_0x5a3dfa=_0x5ebfae;}}function a84_0x4530(){const _0x4a9a39=['4223272DeyrUq','message','Unable\x20to\x20resolve\x20','inherit','error','stderr','run',',\x20but\x20Built-in\x20Skill\x20verification\x20failed.','833NRXMhL','\x20->\x20','status','395348WxRCyJ','basename','join','str','state','Install\x20a\x20specific\x20CLI\x20version','toString','repairCommand','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','entries','version','latest','log','/-/package/','CLI\x20updated\x20to\x20v','15024tWIGud','bool','reason','code','exit\x20','stdout','Updated\x20to\x20v','pipe','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','Current\x20version:\x20','406587LKNQVA','CLI\x20is\x20up\x20to\x20date,\x20but\x20Built-in\x20Skill\x20repair\x20failed.','lib','6GtfMeP','toLowerCase','\x20\x20Run\x20manually:\x20','Update\x20the\x20','--prefix','beta','unknown','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','read','\x20version\x20from\x20npm.','relative','104694AYflkN','11DMoEfD','win32','timeout','/dist-tags','map','boolean','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','valid','source','string','Updating\x20','skillVersion','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag',']:\x20','\x20is\x20current.','dirname','nonInteractive','fromEntries','25SNJHPK','2173670dUiGeN','Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20','\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','warn','4472253RWANMm','filter','\x20\x20CLI\x20Built-in\x20Skill\x20','validation','node_modules','trim','test'];a84_0x4530=function(){return _0x4a9a39;};return a84_0x4530();}function runNpmInstall(_0x564793,_0x289cd8,_0x17c56a){const _0x1ab480=a84_0x390d7c;console[_0x1ab480(0x140)]('*\x20'+[_0x564793,..._0x289cd8][_0x1ab480(0x136)]('\x20'));const _0x5a78bb=spawnSync(_0x564793,_0x289cd8,{'cwd':process['cwd'](),'stdio':_0x1ab480(0x14a),'env':process.env,'shell':![]}),_0x28df89=_0x5a78bb[_0x1ab480(0x12e)]?_0x5a78bb[_0x1ab480(0x12e)][_0x1ab480(0x13a)]()['trim']():'',_0x56ec86=_0x5a78bb[_0x1ab480(0x148)]?_0x5a78bb['stdout'][_0x1ab480(0x13a)]()[_0x1ab480(0x127)]():'';if(!_0x17c56a){if(_0x56ec86)process['stdout']['write'](_0x56ec86+'\x0a');if(_0x28df89)process['stderr']['write'](_0x28df89+'\x0a');}if(_0x5a78bb[_0x1ab480(0x133)]===0x0)return{'ok':!![]};const _0x277e93=_0x5a78bb[_0x1ab480(0x12d)]?.[_0x1ab480(0x12a)]||_0x28df89||_0x56ec86||_0x1ab480(0x147)+(_0x5a78bb['status']??'unknown');return{'ok':![],'error':_0x277e93};}function isNpmPrefixPermissionError(_0x3f8694){const _0x1a2f8d=a84_0x390d7c;return Boolean(_0x3f8694&&/\b(?:EACCES|EPERM)\b/[_0x1a2f8d(0x128)](_0x3f8694));}function repairCurrentBuiltinSkill(_0x13ed3c){const _0x319c9b=a84_0x390d7c;console[_0x319c9b(0x140)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x1ba275=installBuiltinSkill({'stdio':_0x13ed3c?'pipe':_0x319c9b(0x12c)});if(_0x1ba275['ok'])return console[_0x319c9b(0x140)]('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x1ba275[_0x319c9b(0x167)]+_0x319c9b(0x16a)),!![];return console[_0x319c9b(0x121)](_0x319c9b(0x120)+(_0x1ba275[_0x319c9b(0x146)]||'INSTALL_FAILED')+_0x319c9b(0x169)+(_0x1ba275[_0x319c9b(0x12d)]||'unknown')),console[_0x319c9b(0x140)](_0x319c9b(0x152)+_0x1ba275[_0x319c9b(0x13b)]),![];}function verifyUpdatedBuiltinSkill(_0x39180d){const _0x3f3941=a84_0x390d7c;console[_0x3f3941(0x140)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x5af3b1=inspectInstalledBuiltinSkillVersion(_0x39180d);if(_0x5af3b1[_0x3f3941(0x138)]==='current')return console['log'](_0x3f3941(0x124)+_0x39180d+_0x3f3941(0x16a)),!![];console[_0x3f3941(0x121)]('\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20'+_0x5af3b1[_0x3f3941(0x138)]+'.');if(_0x5af3b1['reason'])console[_0x3f3941(0x121)]('\x20\x20'+_0x5af3b1[_0x3f3941(0x145)]);return console[_0x3f3941(0x140)](_0x3f3941(0x152)+_0x5af3b1[_0x3f3941(0x13b)]),![];}async function execute(_0x242c90){const _0x54ff30=a84_0x390d7c;await validateUpdateFlags(_0x242c90);const _0x30d4f8=getCliVersion();console[_0x54ff30(0x140)](_0x54ff30(0x14c)+_0x30d4f8),console[_0x54ff30(0x140)]('Checking\x20npm\x20dist-tags...');const _0x345ff5=await resolveTargetVersion(_0x242c90);if(!_0x345ff5){const _0x4b0f82=_0x242c90[_0x54ff30(0x144)](_0x54ff30(0x155))?_0x54ff30(0x155):'latest',_0x2b73f8=_0x54ff30(0x12b)+_0x4b0f82+_0x54ff30(0x159);return console['warn'](_0x2b73f8),console['log'](_0x54ff30(0x162)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4b0f82),{'ok':![],'message':_0x2b73f8};}const _0x2570f0=[_0x30d4f8,_0x345ff5[_0x54ff30(0x13e)]]['find'](_0x1d0881=>!a84_0x1fc82b['valid'](_0x1d0881));if(_0x2570f0){const _0x3d0cf0='Version\x20comparison\x20failed:\x20'+_0x2570f0+'.';return console[_0x54ff30(0x121)](_0x3d0cf0),{'ok':![],'message':_0x3d0cf0};}if(!shouldInstallTarget(_0x30d4f8,_0x345ff5)){const _0x423df8=_0x345ff5[_0x54ff30(0x164)]==='version'?'Already\x20on\x20requested\x20version\x20(v'+_0x345ff5[_0x54ff30(0x13e)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x345ff5[_0x54ff30(0x13e)]+').';return console['log'](_0x423df8),repairCurrentBuiltinSkill(_0x242c90['nonInteractive'])?{'ok':!![]}:{'ok':![],'message':_0x54ff30(0x14e)};}console[_0x54ff30(0x140)](_0x54ff30(0x166)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x30d4f8+_0x54ff30(0x132)+_0x345ff5['version']);const _0xd711d2=installCliPackage(_0x345ff5[_0x54ff30(0x13e)],_0x242c90[_0x54ff30(0x16c)]);if(!_0xd711d2['ok']){const _0xf0486d='Update\x20failed:\x20'+(_0xd711d2[_0x54ff30(0x12d)]||_0x54ff30(0x156));return console[_0x54ff30(0x12d)](_0xf0486d),console[_0x54ff30(0x140)]('\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x345ff5[_0x54ff30(0x13e)]),{'ok':![],'message':_0xf0486d};}return console[_0x54ff30(0x140)](_0x54ff30(0x149)+_0x345ff5[_0x54ff30(0x13e)]+'.'),console[_0x54ff30(0x140)](_0x54ff30(0x13c)),verifyUpdatedBuiltinSkill(_0x345ff5['version'])?{'ok':!![]}:{'ok':![],'message':_0x54ff30(0x142)+_0x345ff5['version']+_0x54ff30(0x130)};}export const updateDefinition={'service':'update','command':a84_0x390d7c(0x12f),'description':a84_0x390d7c(0x153)+CLI_BIN_NAME+'\x20CLI\x20from\x20npm','risk':a84_0x390d7c(0x158),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- const a85_0x45afc3=a85_0x5cb6;(function(_0x5212b0,_0x19c1f0){const _0x3f9684=a85_0x5cb6,_0x20cf2d=_0x5212b0();while(!![]){try{const _0xc251b0=parseInt(_0x3f9684(0x205))/0x1*(parseInt(_0x3f9684(0x1f2))/0x2)+parseInt(_0x3f9684(0x1f6))/0x3+-parseInt(_0x3f9684(0x1fd))/0x4+parseInt(_0x3f9684(0x201))/0x5+parseInt(_0x3f9684(0x202))/0x6+parseInt(_0x3f9684(0x1f5))/0x7*(-parseInt(_0x3f9684(0x1fa))/0x8)+-parseInt(_0x3f9684(0x1ee))/0x9;if(_0xc251b0===_0x19c1f0)break;else _0x20cf2d['push'](_0x20cf2d['shift']());}catch(_0x510ad9){_0x20cf2d['push'](_0x20cf2d['shift']());}}}(a85_0x5753,0x9bcb1));function a85_0x5cb6(_0x1dce05,_0x25da6d){_0x1dce05=_0x1dce05-0x1ee;const _0x5753cb=a85_0x5753();let _0x5cb669=_0x5753cb[_0x1dce05];return _0x5cb669;}import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING=a85_0x45afc3(0x208),SUPPORTED_PROVIDERS=[a85_0x45afc3(0x204)];function a85_0x5753(){const _0x262128=['string','includes','4731185tsxefe','1738680YbaiLs','Unsupported\x20provider:\x20','dingtalk','75043qDsCcf','External\x20account\x20provider','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','Pass\x20one\x20of:\x20','External\x20account\x20ID\x20for\x20the\x20selected\x20provider','7509150IoIsWT','write','provider','bind','2OERdzL','POST','--account-id\x20cannot\x20be\x20empty.','1863022JwcMAl','1561872VVoSCJ','External\x20account\x20binding\x20was\x20not\x20confirmed.','trim','(empty)','8lhFiQO','validation','str','372236tgXShR','Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.'];a85_0x5753=function(){return _0x262128;};return a85_0x5753();}function readBindingInput(_0x8b59a2){const _0x6d2124=a85_0x45afc3,_0x164aca=_0x8b59a2[_0x6d2124(0x1fc)](_0x6d2124(0x1f0))[_0x6d2124(0x1f8)]()['toLowerCase']();if(!SUPPORTED_PROVIDERS[_0x6d2124(0x200)](_0x164aca))throw CliErrors[_0x6d2124(0x1fb)](_0x6d2124(0x203)+(_0x164aca||_0x6d2124(0x1f9))+'.',_0x6d2124(0x209)+SUPPORTED_PROVIDERS['join'](',\x20')+'.');const _0x3e0b31=_0x8b59a2['str']('account-id')[_0x6d2124(0x1f8)]();if(!_0x3e0b31)throw CliErrors[_0x6d2124(0x1fb)](_0x6d2124(0x1f4),_0x6d2124(0x1fe));return{'provider':_0x164aca,'accountId':_0x3e0b31};}function buildBindingData(_0xa8cde,_0x4821c0,_0x2f6a45){const _0x1a7fe8=a85_0x45afc3;return{'operation':_0x1a7fe8(0x1f1),'selector':{'provider':_0xa8cde,'accountId':_0x4821c0},'before':null,'after':{'provider':_0xa8cde,'accountId':_0x4821c0,'bound':!![]},'dryRun':_0x2f6a45,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':'user-account','command':'bind','description':a85_0x45afc3(0x207),'risk':a85_0x45afc3(0x1ef),'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':a85_0x45afc3(0x1f0),'type':a85_0x45afc3(0x1ff),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a85_0x45afc3(0x206)},{'name':'account-id','type':a85_0x45afc3(0x1ff),'required':!![],'description':a85_0x45afc3(0x20a)}],async 'validate'(_0x3c8a64){readBindingInput(_0x3c8a64);},async 'dryRun'(_0x582c7d){const _0xf40c84=a85_0x45afc3,{provider:_0x4dd686,accountId:_0x209371}=readBindingInput(_0x582c7d);return{...buildBindingData(_0x4dd686,_0x209371,!![]),'method':_0xf40c84(0x1f3),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x4dd686,'accountId':_0x209371}};},async 'execute'(_0x4631da){const _0xfba273=a85_0x45afc3,{provider:_0x51bce2,accountId:_0x577cf9}=readBindingInput(_0x4631da),_0x3bcf3e=await bindExternalUserAccount(_0x51bce2,_0x577cf9);if(_0x3bcf3e!==!![])throw CliErrors['apiError'](_0xfba273(0x1f7),'Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.');return{'ok':!![],'data':buildBindingData(_0x51bce2,_0x577cf9,![]),'message':'Bound\x20current\x20user\x20to\x20external\x20provider\x20account.'};}};
1
+ const a85_0x48a0bc=a85_0x1b5a;(function(_0x1e692e,_0x140a6f){const _0x480e8f=a85_0x1b5a,_0x30f970=_0x1e692e();while(!![]){try{const _0xde94f1=parseInt(_0x480e8f(0x1bf))/0x1*(-parseInt(_0x480e8f(0x1dd))/0x2)+-parseInt(_0x480e8f(0x1dc))/0x3*(parseInt(_0x480e8f(0x1d1))/0x4)+-parseInt(_0x480e8f(0x1db))/0x5+-parseInt(_0x480e8f(0x1ce))/0x6+parseInt(_0x480e8f(0x1da))/0x7+-parseInt(_0x480e8f(0x1d4))/0x8+parseInt(_0x480e8f(0x1d6))/0x9*(parseInt(_0x480e8f(0x1c7))/0xa);if(_0xde94f1===_0x140a6f)break;else _0x30f970['push'](_0x30f970['shift']());}catch(_0x5204f4){_0x30f970['push'](_0x30f970['shift']());}}}(a85_0x2906,0x7a77a));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING=a85_0x48a0bc(0x1c5),SUPPORTED_PROVIDERS=['dingtalk'];function readBindingInput(_0x3a0456){const _0x1711f2=a85_0x48a0bc,_0x591d57=_0x3a0456['str'](_0x1711f2(0x1d3))['trim']()[_0x1711f2(0x1c8)]();if(!SUPPORTED_PROVIDERS[_0x1711f2(0x1d8)](_0x591d57))throw CliErrors['validation'](_0x1711f2(0x1d0)+(_0x591d57||_0x1711f2(0x1cf))+'.',_0x1711f2(0x1c6)+SUPPORTED_PROVIDERS[_0x1711f2(0x1c1)](',\x20')+'.');const _0x15e1bd=_0x3a0456['str'](_0x1711f2(0x1de))[_0x1711f2(0x1d7)]();if(!_0x15e1bd)throw CliErrors['validation']('--account-id\x20cannot\x20be\x20empty.',_0x1711f2(0x1c3));return{'provider':_0x591d57,'accountId':_0x15e1bd};}function buildBindingData(_0x9986aa,_0x17e501,_0x3a4127){return{'operation':'bind','selector':{'provider':_0x9986aa,'accountId':_0x17e501},'before':null,'after':{'provider':_0x9986aa,'accountId':_0x17e501,'bound':!![]},'dryRun':_0x3a4127,'warnings':[CURRENT_BINDING_WARNING]};}function a85_0x1b5a(_0x334dfc,_0x13a0df){_0x334dfc=_0x334dfc-0x1bf;const _0x2906a2=a85_0x2906();let _0x1b5acd=_0x2906a2[_0x334dfc];return _0x1b5acd;}function a85_0x2906(){const _0x21f097=['(empty)','Unsupported\x20provider:\x20','3521516wopfyh','Bound\x20current\x20user\x20to\x20external\x20provider\x20account.','provider','3720184wgRMNx','External\x20account\x20binding\x20was\x20not\x20confirmed.','60957mDDuaJ','trim','includes','string','6684391EolwuO','44740WPVicH','3BMwVTj','388PQHUNX','account-id','1870PSTFHT','External\x20account\x20ID\x20for\x20the\x20selected\x20provider','join','write','Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.','user-account','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','Pass\x20one\x20of:\x20','2810ByTNLZ','toLowerCase','bind','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','External\x20account\x20provider','Binds\x20the\x20platform\x20user\x20of\x20the\x20current\x20AccessKey\x20to\x20the\x20given\x20collaboration-provider\x20account.\x20An\x20existing\x20bind\x20for\x20the\x20same\x20provider\x20may\x20be\x20replaced.','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.','3836220Kgkxzi'];a85_0x2906=function(){return _0x21f097;};return a85_0x2906();}export const bindUserAccount={'service':a85_0x48a0bc(0x1c4),'command':a85_0x48a0bc(0x1c9),'description':a85_0x48a0bc(0x1ca),'risk':a85_0x48a0bc(0x1c2),'confirmationDescription':a85_0x48a0bc(0x1cc),'requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':'provider','type':a85_0x48a0bc(0x1d9),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a85_0x48a0bc(0x1cb)},{'name':a85_0x48a0bc(0x1de),'type':a85_0x48a0bc(0x1d9),'required':!![],'description':a85_0x48a0bc(0x1c0)}],async 'validate'(_0x281abf){readBindingInput(_0x281abf);},async 'dryRun'(_0xc5eaaf){const {provider:_0x2ce930,accountId:_0x39a461}=readBindingInput(_0xc5eaaf);return{...buildBindingData(_0x2ce930,_0x39a461,!![]),'method':'POST','url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x2ce930,'accountId':_0x39a461}};},async 'execute'(_0xf1c005){const _0x2d8368=a85_0x48a0bc,{provider:_0x11c2bf,accountId:_0x34dfc4}=readBindingInput(_0xf1c005),_0x506f62=await bindExternalUserAccount(_0x11c2bf,_0x34dfc4);if(_0x506f62!==!![])throw CliErrors['apiError'](_0x2d8368(0x1d5),_0x2d8368(0x1cd));return{'ok':!![],'data':buildBindingData(_0x11c2bf,_0x34dfc4,![]),'message':_0x2d8368(0x1d2)};}};
@@ -1 +1 @@
1
- (function(_0x24abd9,_0x540e71){const _0x40263d=a86_0x694b,_0x21db50=_0x24abd9();while(!![]){try{const _0xb0d07f=parseInt(_0x40263d(0xa2))/0x1*(parseInt(_0x40263d(0xa7))/0x2)+-parseInt(_0x40263d(0xa4))/0x3*(-parseInt(_0x40263d(0xa6))/0x4)+-parseInt(_0x40263d(0xa5))/0x5*(parseInt(_0x40263d(0xa8))/0x6)+-parseInt(_0x40263d(0x9f))/0x7+-parseInt(_0x40263d(0xa9))/0x8+parseInt(_0x40263d(0xa1))/0x9*(-parseInt(_0x40263d(0x9e))/0xa)+-parseInt(_0x40263d(0xa0))/0xb*(-parseInt(_0x40263d(0xa3))/0xc);if(_0xb0d07f===_0x540e71)break;else _0x21db50['push'](_0x21db50['shift']());}catch(_0x45faf0){_0x21db50['push'](_0x21db50['shift']());}}}(a86_0x4c9d,0x77094));function a86_0x4c9d(){const _0x24a829=['40ubRpWR','4165917FHRpve','1782fQyQPM','290358WxjsFx','37tKPGNh','123480vTFcIq','481098XHyHCC','67270UWVUYs','4FgBvNI','42668upxQQz','204NWduQE','7580136snNXjC'];a86_0x4c9d=function(){return _0x24a829;};return a86_0x4c9d();}import{bindUserAccount}from'../../commands/user-account/bind.js';function a86_0x694b(_0xc26ca7,_0x48880c){_0xc26ca7=_0xc26ca7-0x9e;const _0x4c9d20=a86_0x4c9d();let _0x694b42=_0x4c9d20[_0xc26ca7];return _0x694b42;}export const userAccountDefinitions=[bindUserAccount];
1
+ (function(_0x84cc85,_0x3a4f7c){const _0x4bc871=a86_0x1530,_0x26845f=_0x84cc85();while(!![]){try{const _0x59fc34=-parseInt(_0x4bc871(0x1a4))/0x1+-parseInt(_0x4bc871(0x1a1))/0x2+-parseInt(_0x4bc871(0x1a6))/0x3*(parseInt(_0x4bc871(0x1a0))/0x4)+parseInt(_0x4bc871(0x19f))/0x5+-parseInt(_0x4bc871(0x1a5))/0x6+parseInt(_0x4bc871(0x1a8))/0x7*(-parseInt(_0x4bc871(0x1a2))/0x8)+parseInt(_0x4bc871(0x1a3))/0x9*(parseInt(_0x4bc871(0x1a7))/0xa);if(_0x59fc34===_0x3a4f7c)break;else _0x26845f['push'](_0x26845f['shift']());}catch(_0x1efc8e){_0x26845f['push'](_0x26845f['shift']());}}}(a86_0x1b71,0xd811e));import{bindUserAccount}from'../../commands/user-account/bind.js';function a86_0x1530(_0x3451a9,_0x43ff1d){_0x3451a9=_0x3451a9-0x19f;const _0x1b711f=a86_0x1b71();let _0x153052=_0x1b711f[_0x3451a9];return _0x153052;}function a86_0x1b71(){const _0xe09581=['7qjEsij','6413925lFlvSz','8RgzFxx','2805910WLXzoE','5428456DLKmkb','257157aZsIiH','338651pbkJtj','9451890rtgech','303741PJhyDH','1330NWYPMc'];a86_0x1b71=function(){return _0xe09581;};return a86_0x1b71();}export const userAccountDefinitions=[bindUserAccount];
@@ -1 +1 @@
1
- const a87_0x57e5d9=a87_0x1a29;(function(_0x1ecbf3,_0x5a9607){const _0xf0961f=a87_0x1a29,_0x170546=_0x1ecbf3();while(!![]){try{const _0x730198=-parseInt(_0xf0961f(0x21a))/0x1+-parseInt(_0xf0961f(0x201))/0x2+parseInt(_0xf0961f(0x218))/0x3+parseInt(_0xf0961f(0x20b))/0x4*(-parseInt(_0xf0961f(0x1f7))/0x5)+-parseInt(_0xf0961f(0x219))/0x6+parseInt(_0xf0961f(0x212))/0x7*(parseInt(_0xf0961f(0x1ec))/0x8)+parseInt(_0xf0961f(0x216))/0x9*(parseInt(_0xf0961f(0x210))/0xa);if(_0x730198===_0x5a9607)break;else _0x170546['push'](_0x170546['shift']());}catch(_0x3d4d48){_0x170546['push'](_0x170546['shift']());}}}(a87_0x569f,0xd72b4));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':a87_0x57e5d9(0x1f3),'type':a87_0x57e5d9(0x1f9),'description':a87_0x57e5d9(0x1ef)},{'name':a87_0x57e5d9(0x1f0),'type':a87_0x57e5d9(0x1f9),'description':a87_0x57e5d9(0x214)},{'name':a87_0x57e5d9(0x211),'type':'string','description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x260de6,_0x3ca835){const _0x51eece=a87_0x57e5d9,_0x433bf3=_0x260de6[_0x51eece(0x1fa)]('app')[_0x51eece(0x202)](),_0x8948c=_0x260de6[_0x51eece(0x1fa)](_0x51eece(0x1f0))[_0x51eece(0x202)](),_0x27c228=_0x260de6[_0x51eece(0x1fa)](_0x51eece(0x211))['trim'](),_0x27bc40=resolveWorkspaceEnv(_0x27c228||_0x260de6['envName']||DEFAULT_CONFIG_VALUES[_0x51eece(0x211)]);if(!_0x433bf3&&!_0x8948c)throw CliErrors[_0x51eece(0x222)](_0x51eece(0x207),_0x51eece(0x1fe)+CLI_BIN_NAME+_0x51eece(0x20e)+_0x3ca835+_0x51eece(0x1f6)+CLI_BIN_NAME+_0x51eece(0x20e)+_0x3ca835+'\x20--appcode\x20<code>\x20[--env\x20daily]');if(_0x433bf3&&_0x8948c)throw CliErrors[_0x51eece(0x222)](_0x51eece(0x220),_0x51eece(0x213));const _0x16d941=resolveWriteConfigPath('project'),_0x17da52=readConfigFile(_0x16d941);assertWorkspaceCommandState(_0x3ca835,_0x17da52);const _0x5a83bd=_0x8948c||await resolveRemoteAppCode({'command':_0x3ca835,'appName':_0x433bf3,'env':_0x27bc40,'accessKey':_0x260de6[_0x51eece(0x223)]});return writeWorkspaceConfig({'command':_0x3ca835,'appName':_0x433bf3,'appcode':_0x5a83bd,'env':_0x27bc40,'shouldWriteEnv':!!_0x27c228,'accessKey':_0x260de6['accessKey']},_0x16d941,_0x17da52),{'ok':!![],'data':{'configPath':_0x16d941,'app':_0x433bf3||null,'appcode':_0x5a83bd,'env':_0x27c228?_0x27bc40:null,'accessKeyWritten':![],'command':_0x51eece(0x20c)+_0x3ca835},'message':buildWorkspaceMessage(_0x16d941,_0x433bf3,_0x5a83bd,_0x27c228?_0x27bc40:undefined)};}function a87_0x1a29(_0x4c2c7c,_0x595578){_0x4c2c7c=_0x4c2c7c-0x1ec;const _0x569ff0=a87_0x569f();let _0x1a2971=_0x569ff0[_0x4c2c7c];return _0x1a2971;}async function resolveRemoteAppCode(_0x23c04b){const _0x53002e=a87_0x57e5d9;if(!_0x23c04b['accessKey'])throw CliErrors['authRequired'](_0x53002e(0x217)+CLI_BIN_NAME+_0x53002e(0x20e)+_0x23c04b['command']+'.');const {setActiveAK:_0x518e26}=await import(_0x53002e(0x209)),{getRemoteAppList:_0x48b18a}=await import(_0x53002e(0x21f));_0x518e26(_0x23c04b[_0x53002e(0x223)]);const _0x3fafba=await _0x48b18a({'env':_0x23c04b[_0x53002e(0x211)],'accessKey':_0x23c04b[_0x53002e(0x223)],'noCache':![]}),_0x31183b=findAppByName(_0x3fafba['items'],_0x23c04b[_0x53002e(0x21d)]);if(_0x31183b&&!isRuntimeAccessibleApp(_0x31183b))throw runtimeInaccessibleAppError(_0x31183b,'\x22'+_0x23c04b[_0x53002e(0x21d)]+'\x22');const _0x512039=_0x31183b?.[_0x53002e(0x21c)]?.[_0x53002e(0x202)]();if(_0x512039)return _0x512039;const _0x38a11f=_0x3fafba['items'][_0x53002e(0x1f1)](_0x3938e4=>_0x3938e4[_0x53002e(0x21d)])[_0x53002e(0x1fb)](Boolean),_0x341fd4=_0x38a11f['length']?'Available\x20apps:\x20'+Array[_0x53002e(0x206)](new Set(_0x38a11f))[_0x53002e(0x200)](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.';throw CliErrors[_0x53002e(0x222)](_0x53002e(0x1fd)+_0x23c04b[_0x53002e(0x21d)]+_0x53002e(0x224),_0x341fd4);}function a87_0x569f(){const _0x1ea09b=['Missing\x20workspace\x20app\x20selector.','Run\x20`','../../core/api-client.js','Change\x20the\x20app\x20context\x20already\x20bound\x20to\x20the\x20current\x20working\x20directory','4CLItoq','workspace\x20','\x22.\x20Allowed:\x20','\x20workspace\x20','apps','30135620kAYFrg','env','22743DgJMvP','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','App\x20code\x20to\x20bind\x20directly','Workspace\x20app\x20context\x20is\x20not\x20initialized.','9RrKQeT','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','567645KcDpWu','156342XAZzen','583450ddQNce','length','appCode','appName','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','../../commands/app/remote-source.js','Conflicting\x20workspace\x20app\x20selectors.','shouldWriteEnv','validation','accessKey','\x22\x20not\x20found.','isArray','568LSreAp','Invalid\x20env\x20\x22','Workspace\x20app\x20context\x20is\x20already\x20initialized.','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','appcode','map','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','app','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.','use','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','2985170AOJOnt','object','string','str','filter','\x0aAccessKey:\x20not\x20written','App\x20\x22','Usage:\x20','defaultApp','join','2691166GNyKzh','trim','init','workspace','Initialize\x20app\x20context\x20for\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet','from'];a87_0x569f=function(){return _0x1ea09b;};return a87_0x569f();}function writeWorkspaceConfig(_0x12bd1a,_0x2457de,_0xd7e2c1){const _0x420544=a87_0x57e5d9;_0x12bd1a[_0x420544(0x221)]&&(_0xd7e2c1['env']=_0x12bd1a[_0x420544(0x211)]);if(_0x12bd1a[_0x420544(0x21d)]){const _0x23237f=isRecord(_0xd7e2c1['apps'])?{..._0xd7e2c1[_0x420544(0x20f)]}:{},_0xcd852e=isRecord(_0x23237f[_0x12bd1a[_0x420544(0x21d)]])?_0x23237f[_0x12bd1a[_0x420544(0x21d)]]:{};return _0x23237f[_0x12bd1a['appName']]={..._0xcd852e,'appcode':_0x12bd1a[_0x420544(0x1f0)]},_0xd7e2c1['apps']=_0x23237f,_0xd7e2c1[_0x420544(0x1ff)]=_0x12bd1a[_0x420544(0x21d)],delete _0xd7e2c1['appcode'],delete _0xd7e2c1[_0x420544(0x1f3)],writeAndReturn(_0x2457de,_0xd7e2c1);}return _0xd7e2c1[_0x420544(0x1f0)]=_0x12bd1a[_0x420544(0x1f0)],delete _0xd7e2c1[_0x420544(0x1ff)],delete _0xd7e2c1[_0x420544(0x1f3)],writeAndReturn(_0x2457de,_0xd7e2c1);}function writeAndReturn(_0x4ccea1,_0x53ea91){return writeConfigFile(_0x4ccea1,_0x53ea91),_0x4ccea1;}function resolveWorkspaceEnv(_0x5f1959){const _0x771e57=a87_0x57e5d9;if(RUNTIME_ENV_VALUES['includes'](_0x5f1959))return _0x5f1959;throw CliErrors[_0x771e57(0x222)](_0x771e57(0x1ed)+_0x5f1959+_0x771e57(0x20d)+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x54d57b,_0x20bae8,_0x453049,_0x8ab175){const _0x43b387=a87_0x57e5d9,_0x34c279=_0x20bae8?_0x20bae8+'\x20('+_0x453049+')':_0x453049,_0x25f4db=_0x8ab175?'\x0aEnv:\x20'+_0x8ab175:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x54d57b+'\x0aDefault\x20app:\x20'+_0x34c279+_0x25f4db+_0x43b387(0x1fc);}function isRecord(_0x4c7f93){const _0x3ba1bc=a87_0x57e5d9;return typeof _0x4c7f93===_0x3ba1bc(0x1f8)&&_0x4c7f93!==null&&!Array[_0x3ba1bc(0x225)](_0x4c7f93);}function hasWorkspaceAppBinding(_0x4ea84b){const _0x4530f9=a87_0x57e5d9;if(typeof _0x4ea84b[_0x4530f9(0x1f0)]===_0x4530f9(0x1f9)&&_0x4ea84b[_0x4530f9(0x1f0)][_0x4530f9(0x202)]()[_0x4530f9(0x21b)]>0x0)return!![];if(typeof _0x4ea84b[_0x4530f9(0x1ff)]!=='string'||!_0x4ea84b[_0x4530f9(0x1ff)]['trim']())return![];if(!isRecord(_0x4ea84b[_0x4530f9(0x20f)]))return![];const _0x55b579=_0x4ea84b[_0x4530f9(0x20f)][_0x4ea84b[_0x4530f9(0x1ff)]['trim']()];return isRecord(_0x55b579)&&typeof _0x55b579[_0x4530f9(0x1f0)]===_0x4530f9(0x1f9)&&_0x55b579[_0x4530f9(0x1f0)][_0x4530f9(0x202)]()[_0x4530f9(0x21b)]>0x0;}function assertWorkspaceCommandState(_0x122f79,_0xe8a95c){const _0x3ca58d=a87_0x57e5d9,_0x2bf3fa=hasWorkspaceAppBinding(_0xe8a95c);if(_0x122f79===_0x3ca58d(0x203)&&_0x2bf3fa)throw CliErrors[_0x3ca58d(0x222)](_0x3ca58d(0x1ee),'Use\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`'+CLI_BIN_NAME+_0x3ca58d(0x21e));if(_0x122f79==='use'&&!_0x2bf3fa)throw CliErrors[_0x3ca58d(0x222)](_0x3ca58d(0x215),_0x3ca58d(0x208)+CLI_BIN_NAME+_0x3ca58d(0x1f2)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20first.');}function makeWorkspaceCommand(_0x1635cb){const _0xcb0add=a87_0x57e5d9;return{'service':_0xcb0add(0x204),'command':_0x1635cb,'description':_0x1635cb===_0xcb0add(0x203)?_0xcb0add(0x205):_0xcb0add(0x20a),'risk':'write','confirmationDescription':_0x1635cb===_0xcb0add(0x203)?_0xcb0add(0x1f4):'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'(_0x53c0a1){return executeWorkspaceUse(_0x53c0a1,_0x1635cb);}};}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand(a87_0x57e5d9(0x1f5))];
1
+ const a87_0xec442e=a87_0x484e;(function(_0x12e2ca,_0x2e41e8){const _0x3e8edd=a87_0x484e,_0x5db9a4=_0x12e2ca();while(!![]){try{const _0x44962c=parseInt(_0x3e8edd(0x193))/0x1*(-parseInt(_0x3e8edd(0x1ac))/0x2)+-parseInt(_0x3e8edd(0x1b2))/0x3+-parseInt(_0x3e8edd(0x185))/0x4+parseInt(_0x3e8edd(0x17e))/0x5+parseInt(_0x3e8edd(0x1af))/0x6*(-parseInt(_0x3e8edd(0x1a7))/0x7)+-parseInt(_0x3e8edd(0x1a4))/0x8+parseInt(_0x3e8edd(0x18b))/0x9;if(_0x44962c===_0x2e41e8)break;else _0x5db9a4['push'](_0x5db9a4['shift']());}catch(_0x169f95){_0x5db9a4['push'](_0x5db9a4['shift']());}}}(a87_0x5117,0x20cc3));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':a87_0xec442e(0x188),'type':a87_0xec442e(0x17b),'description':a87_0xec442e(0x1a6)},{'name':a87_0xec442e(0x1b5),'type':a87_0xec442e(0x17b),'description':a87_0xec442e(0x1a8)},{'name':a87_0xec442e(0x1a9),'type':a87_0xec442e(0x17b),'description':a87_0xec442e(0x19b),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x46b353,_0x565eb3){const _0x58652c=a87_0xec442e,_0x279951=_0x46b353[_0x58652c(0x17c)](_0x58652c(0x188))['trim'](),_0x7d4209=_0x46b353['str'](_0x58652c(0x1b5))[_0x58652c(0x182)](),_0x209f08=_0x46b353[_0x58652c(0x17c)](_0x58652c(0x1a9))[_0x58652c(0x182)](),_0x26930e=resolveWorkspaceEnv(_0x209f08||_0x46b353[_0x58652c(0x18e)]||DEFAULT_CONFIG_VALUES[_0x58652c(0x1a9)]);if(!_0x279951&&!_0x7d4209)throw CliErrors[_0x58652c(0x1a3)](_0x58652c(0x1b4),_0x58652c(0x18a)+CLI_BIN_NAME+_0x58652c(0x181)+_0x565eb3+_0x58652c(0x192)+CLI_BIN_NAME+_0x58652c(0x181)+_0x565eb3+_0x58652c(0x187));if(_0x279951&&_0x7d4209)throw CliErrors[_0x58652c(0x1a3)](_0x58652c(0x1aa),_0x58652c(0x1a1));const _0x14505c=resolveWriteConfigPath('project'),_0x340b95=readConfigFile(_0x14505c);assertWorkspaceCommandState(_0x565eb3,_0x340b95);const _0x313934=_0x7d4209||await resolveRemoteAppCode({'command':_0x565eb3,'appName':_0x279951,'env':_0x26930e,'accessKey':_0x46b353[_0x58652c(0x17d)]});return writeWorkspaceConfig({'command':_0x565eb3,'appName':_0x279951,'appcode':_0x313934,'env':_0x26930e,'shouldWriteEnv':!!_0x209f08,'accessKey':_0x46b353[_0x58652c(0x17d)]},_0x14505c,_0x340b95),{'ok':!![],'data':{'configPath':_0x14505c,'app':_0x279951||null,'appcode':_0x313934,'env':_0x209f08?_0x26930e:null,'accessKeyWritten':![],'command':_0x58652c(0x196)+_0x565eb3},'message':buildWorkspaceMessage(_0x14505c,_0x279951,_0x313934,_0x209f08?_0x26930e:undefined)};}async function resolveRemoteAppCode(_0x338d25){const _0x4597ea=a87_0xec442e;if(!_0x338d25['accessKey'])throw CliErrors[_0x4597ea(0x195)](_0x4597ea(0x1b0)+CLI_BIN_NAME+'\x20workspace\x20'+_0x338d25[_0x4597ea(0x191)]+'.');const {setActiveAK:_0x5786e2}=await import(_0x4597ea(0x180)),{getRemoteAppList:_0x183a3f}=await import(_0x4597ea(0x18d));_0x5786e2(_0x338d25[_0x4597ea(0x17d)]);const _0x584104=await _0x183a3f({'env':_0x338d25[_0x4597ea(0x1a9)],'accessKey':_0x338d25[_0x4597ea(0x17d)],'noCache':![]}),_0x4a383c=findAppByName(_0x584104[_0x4597ea(0x197)],_0x338d25[_0x4597ea(0x179)]);if(_0x4a383c&&!isRuntimeAccessibleApp(_0x4a383c))throw runtimeInaccessibleAppError(_0x4a383c,'\x22'+_0x338d25['appName']+'\x22');const _0x19ebd4=_0x4a383c?.[_0x4597ea(0x198)]?.[_0x4597ea(0x182)]();if(_0x19ebd4)return _0x19ebd4;const _0x1cb7bc=_0x584104['items']['map'](_0x434ac8=>_0x434ac8['appName'])['filter'](Boolean),_0xf6cd14=_0x1cb7bc['length']?'Available\x20apps:\x20'+Array[_0x4597ea(0x19a)](new Set(_0x1cb7bc))[_0x4597ea(0x1b1)](',\x20')+'.':_0x4597ea(0x17f)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.';throw CliErrors[_0x4597ea(0x1a3)](_0x4597ea(0x19e)+_0x338d25[_0x4597ea(0x179)]+_0x4597ea(0x1ad),_0xf6cd14);}function writeWorkspaceConfig(_0x3ed736,_0x4bf81c,_0x52f990){const _0x5357b0=a87_0xec442e;_0x3ed736['shouldWriteEnv']&&(_0x52f990[_0x5357b0(0x1a9)]=_0x3ed736[_0x5357b0(0x1a9)]);if(_0x3ed736[_0x5357b0(0x179)]){const _0x5e7f0f=isRecord(_0x52f990['apps'])?{..._0x52f990[_0x5357b0(0x18f)]}:{},_0x22a68d=isRecord(_0x5e7f0f[_0x3ed736[_0x5357b0(0x179)]])?_0x5e7f0f[_0x3ed736['appName']]:{};return _0x5e7f0f[_0x3ed736[_0x5357b0(0x179)]]={..._0x22a68d,'appcode':_0x3ed736[_0x5357b0(0x1b5)]},_0x52f990[_0x5357b0(0x18f)]=_0x5e7f0f,_0x52f990[_0x5357b0(0x190)]=_0x3ed736[_0x5357b0(0x179)],delete _0x52f990['appcode'],delete _0x52f990[_0x5357b0(0x188)],writeAndReturn(_0x4bf81c,_0x52f990);}return _0x52f990[_0x5357b0(0x1b5)]=_0x3ed736['appcode'],delete _0x52f990[_0x5357b0(0x190)],delete _0x52f990['app'],writeAndReturn(_0x4bf81c,_0x52f990);}function writeAndReturn(_0x1b2820,_0x39a361){return writeConfigFile(_0x1b2820,_0x39a361),_0x1b2820;}function resolveWorkspaceEnv(_0x306379){const _0x47f918=a87_0xec442e;if(RUNTIME_ENV_VALUES['includes'](_0x306379))return _0x306379;throw CliErrors['validation']('Invalid\x20env\x20\x22'+_0x306379+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x47f918(0x1b1)](',\x20'));}function buildWorkspaceMessage(_0x48ec04,_0xfb211c,_0x2a2dae,_0x5322db){const _0x4c4862=a87_0xec442e,_0xe805a9=_0xfb211c?_0xfb211c+'\x20('+_0x2a2dae+')':_0x2a2dae,_0x75aa46=_0x5322db?_0x4c4862(0x1a5)+_0x5322db:'';return _0x4c4862(0x1ae)+_0x48ec04+_0x4c4862(0x1a2)+_0xe805a9+_0x75aa46+'\x0aAccessKey:\x20not\x20written';}function isRecord(_0x158259){const _0x312b1f=a87_0xec442e;return typeof _0x158259===_0x312b1f(0x1b3)&&_0x158259!==null&&!Array[_0x312b1f(0x183)](_0x158259);}function hasWorkspaceAppBinding(_0x307eda){const _0x327819=a87_0xec442e;if(typeof _0x307eda['appcode']==='string'&&_0x307eda[_0x327819(0x1b5)][_0x327819(0x182)]()['length']>0x0)return!![];if(typeof _0x307eda['defaultApp']!==_0x327819(0x17b)||!_0x307eda[_0x327819(0x190)][_0x327819(0x182)]())return![];if(!isRecord(_0x307eda[_0x327819(0x18f)]))return![];const _0x3fd46b=_0x307eda['apps'][_0x307eda[_0x327819(0x190)][_0x327819(0x182)]()];return isRecord(_0x3fd46b)&&typeof _0x3fd46b[_0x327819(0x1b5)]==='string'&&_0x3fd46b[_0x327819(0x1b5)]['trim']()[_0x327819(0x189)]>0x0;}function a87_0x484e(_0x1740ab,_0x6fc8e0){_0x1740ab=_0x1740ab-0x179;const _0x5117ff=a87_0x5117();let _0x484e4a=_0x5117ff[_0x1740ab];return _0x484e4a;}function assertWorkspaceCommandState(_0x42e477,_0x23b594){const _0xa4d51=a87_0xec442e,_0x1d76bf=hasWorkspaceAppBinding(_0x23b594);if(_0x42e477===_0xa4d51(0x194)&&_0x1d76bf)throw CliErrors['validation'](_0xa4d51(0x1ab),'Use\x20`'+CLI_BIN_NAME+_0xa4d51(0x19d)+CLI_BIN_NAME+'\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.');if(_0x42e477==='use'&&!_0x1d76bf)throw CliErrors[_0xa4d51(0x1a3)](_0xa4d51(0x1a0),_0xa4d51(0x17f)+CLI_BIN_NAME+'\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`'+CLI_BIN_NAME+_0xa4d51(0x186));}function makeWorkspaceCommand(_0x45624d){const _0xeedfea=a87_0xec442e;return{'service':'workspace','command':_0x45624d,'description':_0x45624d===_0xeedfea(0x194)?_0xeedfea(0x184):_0xeedfea(0x19f),'risk':_0xeedfea(0x18c),'confirmationDescription':_0x45624d===_0xeedfea(0x194)?_0xeedfea(0x17a):_0xeedfea(0x19c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x2c9409){return executeWorkspaceUse(_0x2c9409,_0x45624d);}};}function a87_0x5117(){const _0x1a44dd=['apps','defaultApp','command','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','1ocnUHp','init','authRequired','workspace\x20','items','appCode','use','from','Target\x20environment','Updates\x20the\x20app\x20binding\x20already\x20present\x20in\x20the\x20current\x20working\x20directory\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','App\x20\x22','Change\x20the\x20app\x20context\x20already\x20bound\x20to\x20the\x20current\x20working\x20directory','Workspace\x20app\x20context\x20is\x20not\x20initialized.','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','\x0aDefault\x20app:\x20','validation','619808IwmKEZ','\x0aEnv:\x20','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','58751qFoiZo','App\x20code\x20to\x20bind\x20directly','env','Conflicting\x20workspace\x20app\x20selectors.','Workspace\x20app\x20context\x20is\x20already\x20initialized.','47330aTaFTT','\x22\x20not\x20found.','Workspace\x20configured.\x0aConfig\x20file:\x20','42ynGNuq','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','join','506277rJNRAL','object','Missing\x20workspace\x20app\x20selector.','appcode','appName','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.','string','str','accessKey','1143570btDrLN','Run\x20`','../../core/api-client.js','\x20workspace\x20','trim','isArray','Initialize\x20app\x20context\x20for\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet','594816cdcEeQ','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','\x20--appcode\x20<code>\x20[--env\x20daily]','app','length','Usage:\x20','3446820fZBemk','write','../../commands/app/remote-source.js','envName'];a87_0x5117=function(){return _0x1a44dd;};return a87_0x5117();}export const workspaceDefinitions=[makeWorkspaceCommand(a87_0xec442e(0x194)),makeWorkspaceCommand(a87_0xec442e(0x199))];
@@ -1,4 +1,4 @@
1
- export declare const DOMAIN_CONFIG_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "kbSearchDomain"];
1
+ export declare const DOMAIN_CONFIG_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain"];
2
2
  export type DomainConfigField = (typeof DOMAIN_CONFIG_FIELDS)[number];
3
3
  export type DomainConfig = Partial<Record<DomainConfigField, string>>;
4
4
  /** Old domain keys accepted only while reading existing configuration. */
@@ -1 +1 @@
1
- const a88_0x19a2fa=a88_0x39c6;function a88_0x3cfb(){const _0x381209=['kb-search-domain','pathname','Domain\x20config\x20file\x20not\x20found:\x20','protocol','1834693AUOnrP','kbDomain','includes','origin','867285mUmSDP','2827080WZpZSz','runtimeDomain','user-domain','36tdSSOD','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','length','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','password','Invalid\x20','isArray','skillHubDomain','5275408gPynks','string','kb-domain','str','validation','Invalid\x20domain\x20config\x20JSON:\x20','keys','Allowed\x20fields:\x20','api-domain','\x22\x20is\x20not\x20a\x20valid\x20URL.',':\x20\x22','runtime-domain','filter','username','1033350gycpFw','skillDomain',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','utf8','search','1580298kLyNPV','hash','trim','join','6262252HgoICs','kbSearchDomain'];a88_0x3cfb=function(){return _0x381209;};return a88_0x3cfb();}function a88_0x39c6(_0x26d194,_0x567d3f){_0x26d194=_0x26d194-0x19d;const _0x3cfb8b=a88_0x3cfb();let _0x39c62f=_0x3cfb8b[_0x26d194];return _0x39c62f;}(function(_0x667851,_0x44a5fb){const _0x3dd119=a88_0x39c6,_0x2f2e1b=_0x667851();while(!![]){try{const _0x509a7a=-parseInt(_0x3dd119(0x1b5))/0x1+-parseInt(_0x3dd119(0x1ba))/0x2+-parseInt(_0x3dd119(0x1c9))/0x3+parseInt(_0x3dd119(0x1be))/0x4+-parseInt(_0x3dd119(0x1c8))/0x5+-parseInt(_0x3dd119(0x19f))/0x6*(-parseInt(_0x3dd119(0x1c4))/0x7)+parseInt(_0x3dd119(0x1a7))/0x8;if(_0x509a7a===_0x44a5fb)break;else _0x2f2e1b['push'](_0x2f2e1b['shift']());}catch(_0x3117d3){_0x2f2e1b['push'](_0x2f2e1b['shift']());}}}(a88_0x3cfb,0xd189b));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=['userDomain','apiDomain',a88_0x19a2fa(0x19d),a88_0x19a2fa(0x1b6),a88_0x19a2fa(0x1c5),a88_0x19a2fa(0x1bf)];const DOMAIN_FLAGS={'userDomain':a88_0x19a2fa(0x19e),'apiDomain':a88_0x19a2fa(0x1af),'runtimeDomain':a88_0x19a2fa(0x1b2),'skillDomain':'skill-domain','kbDomain':a88_0x19a2fa(0x1a9),'kbSearchDomain':a88_0x19a2fa(0x1c0)};export const LEGACY_DOMAIN_CONFIG_FIELDS=['agentDomain','platformDomain',a88_0x19a2fa(0x1a6)];export function normalizeDomainOrigin(_0x97eec4,_0x2198c5){const _0x171c71=a88_0x19a2fa;if(typeof _0x2198c5!==_0x171c71(0x1a8)||!_0x2198c5[_0x171c71(0x1bc)]())throw CliErrors[_0x171c71(0x1ab)](_0x171c71(0x1a4)+_0x97eec4+_0x171c71(0x1b7));let _0xcaf7d8;try{_0xcaf7d8=new URL(_0x2198c5[_0x171c71(0x1bc)]());}catch{throw CliErrors[_0x171c71(0x1ab)](_0x171c71(0x1a4)+_0x97eec4+_0x171c71(0x1b1)+_0x2198c5+_0x171c71(0x1b0));}if(_0xcaf7d8[_0x171c71(0x1c3)]!=='https:'||_0xcaf7d8[_0x171c71(0x1b4)]||_0xcaf7d8[_0x171c71(0x1a3)]||_0xcaf7d8[_0x171c71(0x1c1)]!=='/'&&_0xcaf7d8['pathname']!==''||_0xcaf7d8[_0x171c71(0x1b9)]||_0xcaf7d8[_0x171c71(0x1bb)])throw CliErrors['validation'](_0x171c71(0x1a4)+_0x97eec4+':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.',_0x171c71(0x1a2));return _0xcaf7d8[_0x171c71(0x1c7)];}export function readDomainConfig(_0x5437fc){const _0x2f6993=a88_0x19a2fa,_0x5a660d=isAbsolute(_0x5437fc)?_0x5437fc:resolve(process['cwd'](),_0x5437fc);if(!existsSync(_0x5a660d))throw CliErrors[_0x2f6993(0x1ab)](_0x2f6993(0x1c2)+_0x5a660d);let _0x483dbb;try{_0x483dbb=JSON['parse'](readFileSync(_0x5a660d,_0x2f6993(0x1b8)));}catch{throw CliErrors[_0x2f6993(0x1ab)](_0x2f6993(0x1ac)+_0x5a660d);}if(!_0x483dbb||typeof _0x483dbb!=='object'||Array[_0x2f6993(0x1a5)](_0x483dbb))throw CliErrors[_0x2f6993(0x1ab)](_0x2f6993(0x1a0));const _0x4f298c=_0x483dbb,_0x1831be=Object['keys'](_0x4f298c)[_0x2f6993(0x1b3)](_0x21d1e0=>!DOMAIN_CONFIG_FIELDS[_0x2f6993(0x1c6)](_0x21d1e0));if(_0x1831be['length']>0x0)throw CliErrors[_0x2f6993(0x1ab)]('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x1831be[_0x2f6993(0x1bd)](',\x20'),_0x2f6993(0x1ae)+DOMAIN_CONFIG_FIELDS[_0x2f6993(0x1bd)](',\x20'));const _0x1d181c={};for(const _0x3ff909 of DOMAIN_CONFIG_FIELDS){_0x4f298c[_0x3ff909]!==undefined&&(_0x1d181c[_0x3ff909]=normalizeDomainOrigin(_0x3ff909,_0x4f298c[_0x3ff909]));}if(Object[_0x2f6993(0x1ad)](_0x1d181c)[_0x2f6993(0x1a1)]===0x0)throw CliErrors['validation']('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return _0x1d181c;}export function resolveDomainFlags(_0x253f33){const _0x1abd14=a88_0x19a2fa,_0x19da02=(_0x253f33['str']('domain-config')||'')[_0x1abd14(0x1bc)](),_0x4436fd=_0x19da02?readDomainConfig(_0x19da02):{};for(const _0x16ba38 of DOMAIN_CONFIG_FIELDS){const _0x3dd3c9=(_0x253f33[_0x1abd14(0x1aa)](DOMAIN_FLAGS[_0x16ba38])||'')['trim']();if(_0x3dd3c9)_0x4436fd[_0x16ba38]=normalizeDomainOrigin(_0x16ba38,_0x3dd3c9);}return _0x4436fd;}
1
+ const a88_0x593c14=a88_0x290d;(function(_0x431f6b,_0x40b441){const _0x81d503=a88_0x290d,_0x33f8dd=_0x431f6b();while(!![]){try{const _0x47af73=-parseInt(_0x81d503(0xf1))/0x1*(parseInt(_0x81d503(0xe5))/0x2)+parseInt(_0x81d503(0x100))/0x3*(parseInt(_0x81d503(0xea))/0x4)+-parseInt(_0x81d503(0xf9))/0x5*(parseInt(_0x81d503(0x10a))/0x6)+parseInt(_0x81d503(0xf2))/0x7*(-parseInt(_0x81d503(0xfa))/0x8)+parseInt(_0x81d503(0xf7))/0x9*(-parseInt(_0x81d503(0xf6))/0xa)+parseInt(_0x81d503(0x10d))/0xb+parseInt(_0x81d503(0xe3))/0xc*(parseInt(_0x81d503(0x10c))/0xd);if(_0x47af73===_0x40b441)break;else _0x33f8dd['push'](_0x33f8dd['shift']());}catch(_0x5681b3){_0x33f8dd['push'](_0x33f8dd['shift']());}}}(a88_0x4067,0x91793));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';function a88_0x290d(_0x38c95b,_0x5ee765){_0x38c95b=_0x38c95b-0xe2;const _0x406744=a88_0x4067();let _0x290d99=_0x406744[_0x38c95b];return _0x290d99;}import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=[a88_0x593c14(0x115),a88_0x593c14(0xe9),a88_0x593c14(0x116),a88_0x593c14(0xff),a88_0x593c14(0xf3)];const DOMAIN_FLAGS={'userDomain':a88_0x593c14(0x102),'apiDomain':a88_0x593c14(0x10f),'runtimeDomain':a88_0x593c14(0xeb),'skillDomain':'skill-domain','kbDomain':a88_0x593c14(0x114)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a88_0x593c14(0xf4),'platformDomain',a88_0x593c14(0xec)];export function normalizeDomainOrigin(_0x3f21b1,_0x51ad36){const _0x163fd7=a88_0x593c14;if(typeof _0x51ad36!==_0x163fd7(0xef)||!_0x51ad36[_0x163fd7(0x117)]())throw CliErrors[_0x163fd7(0x10b)](_0x163fd7(0xfd)+_0x3f21b1+_0x163fd7(0xe4));let _0x3be51a;try{_0x3be51a=new URL(_0x51ad36['trim']());}catch{throw CliErrors['validation'](_0x163fd7(0xfd)+_0x3f21b1+_0x163fd7(0xfc)+_0x51ad36+_0x163fd7(0xfe));}if(_0x3be51a[_0x163fd7(0xed)]!==_0x163fd7(0xe6)||_0x3be51a[_0x163fd7(0xf0)]||_0x3be51a[_0x163fd7(0x108)]||_0x3be51a[_0x163fd7(0xe8)]!=='/'&&_0x3be51a[_0x163fd7(0xe8)]!==''||_0x3be51a[_0x163fd7(0xee)]||_0x3be51a['hash'])throw CliErrors[_0x163fd7(0x10b)](_0x163fd7(0xfd)+_0x3f21b1+_0x163fd7(0xf5),_0x163fd7(0x109));return _0x3be51a[_0x163fd7(0x112)];}function a88_0x4067(){const _0x36f1a5=['str','password','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','63090pXcYaN','validation','39305045rIcPhT','2948880dXMAFj','Invalid\x20domain\x20config\x20JSON:\x20','api-domain','keys','Domain\x20config\x20file\x20not\x20found:\x20','origin','domain-config','kb-domain','userDomain','runtimeDomain','trim','utf8','12vYzxFR',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','40812FPkiqK','https:','join','pathname','apiDomain','949692VJuFxt','runtime-domain','skillHubDomain','protocol','search','string','username','1mIJQTZ','106477uTCpjA','kbDomain','agentDomain',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','8890260iHTSzx','9tvElfv','length','550zUTqQN','456neOiCg','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.',':\x20\x22','Invalid\x20','\x22\x20is\x20not\x20a\x20valid\x20URL.','skillDomain','3pKDdbl','cwd','user-domain','isArray','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','object','includes'];a88_0x4067=function(){return _0x36f1a5;};return a88_0x4067();}export function readDomainConfig(_0x28e8ee){const _0x4ed727=a88_0x593c14,_0x552fb6=isAbsolute(_0x28e8ee)?_0x28e8ee:resolve(process[_0x4ed727(0x101)](),_0x28e8ee);if(!existsSync(_0x552fb6))throw CliErrors[_0x4ed727(0x10b)](_0x4ed727(0x111)+_0x552fb6);let _0x17d53a;try{_0x17d53a=JSON['parse'](readFileSync(_0x552fb6,_0x4ed727(0xe2)));}catch{throw CliErrors[_0x4ed727(0x10b)](_0x4ed727(0x10e)+_0x552fb6);}if(!_0x17d53a||typeof _0x17d53a!==_0x4ed727(0x105)||Array[_0x4ed727(0x103)](_0x17d53a))throw CliErrors[_0x4ed727(0x10b)](_0x4ed727(0x104));const _0x49ea9b=_0x17d53a,_0x29d6a9=Object[_0x4ed727(0x110)](_0x49ea9b)['filter'](_0x1212cf=>!DOMAIN_CONFIG_FIELDS[_0x4ed727(0x106)](_0x1212cf));if(_0x29d6a9[_0x4ed727(0xf8)]>0x0)throw CliErrors['validation']('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x29d6a9['join'](',\x20'),'Allowed\x20fields:\x20'+DOMAIN_CONFIG_FIELDS[_0x4ed727(0xe7)](',\x20'));const _0x5f4838={};for(const _0x3cf7fb of DOMAIN_CONFIG_FIELDS){_0x49ea9b[_0x3cf7fb]!==undefined&&(_0x5f4838[_0x3cf7fb]=normalizeDomainOrigin(_0x3cf7fb,_0x49ea9b[_0x3cf7fb]));}if(Object[_0x4ed727(0x110)](_0x5f4838)[_0x4ed727(0xf8)]===0x0)throw CliErrors[_0x4ed727(0x10b)](_0x4ed727(0xfb));return _0x5f4838;}export function resolveDomainFlags(_0x185985){const _0x1ef5c8=a88_0x593c14,_0x5f3c30=(_0x185985['str'](_0x1ef5c8(0x113))||'')[_0x1ef5c8(0x117)](),_0x23f70f=_0x5f3c30?readDomainConfig(_0x5f3c30):{};for(const _0x26d96d of DOMAIN_CONFIG_FIELDS){const _0x2c48d9=(_0x185985[_0x1ef5c8(0x107)](DOMAIN_FLAGS[_0x26d96d])||'')['trim']();if(_0x2c48d9)_0x23f70f[_0x26d96d]=normalizeDomainOrigin(_0x26d96d,_0x2c48d9);}return _0x23f70f;}
@@ -19,7 +19,7 @@
19
19
  import { RUNTIME_ENV_VALUES } from "../constant/env.js";
20
20
  export type RuntimeEnv = (typeof RUNTIME_ENV_VALUES)[number];
21
21
  /** All configuration field names recognized by the runtime CLI. */
22
- type ConfigFieldName = "env" | "region" | "format" | "pageSize" | "apiDomain" | "userDomain" | "runtimeDomain" | "skillDomain" | "kbDomain" | "kbSearchDomain" | "accessKey" | "riskLevel" | "nativeToolAvailable" | "locale";
22
+ type ConfigFieldName = "env" | "region" | "format" | "pageSize" | "apiDomain" | "userDomain" | "runtimeDomain" | "skillDomain" | "kbDomain" | "accessKey" | "riskLevel" | "nativeToolAvailable" | "locale";
23
23
  /**
24
24
  * Schema for a single configuration field.
25
25
  *
@@ -1 +1 @@
1
- const a89_0x341a11=a89_0x5b84;function a89_0x2a76(){const _0x15bef0=['Default\x20output\x20format','29381gPDveO','5648MzJcLP','format','nativeToolAvailable','1248636RGmjON','map','5CLbmgY','fromEntries','Config\x20key.\x20Top-level:\x20','Override\x20SkillHub\x20domain','18039400veqlrC','Override\x20user\x20domain','Native\x20Lovrabet\x20tool\x20availability\x20in\x20the\x20current\x20execution\x20host','entries','Override\x20runtime\x20domain','Override\x20API\x20domain','cliSettableTopLevel','1868490oHmYJa','568622QTBaOi','has','Override\x20native\x20knowledge-search\x20domain','riskLevel','3nSrEUM','Override\x20knowledge-base\x20domain','enumValues','en-US','Access\x20key\x20(client-ak\x20auth)','Lovrabet\x20region','defaultValue','env','legacyCompatOnly','join','Default\x20page\x20size','2239047dAolGG','zh-CN','filter','3843SUGhps','Risk\x20level','locale'];a89_0x2a76=function(){return _0x15bef0;};return a89_0x2a76();}(function(_0x25b9c6,_0xe52a6){const _0x46aa25=a89_0x5b84,_0x304aeb=_0x25b9c6();while(!![]){try{const _0x33c410=-parseInt(_0x46aa25(0x118))/0x1+parseInt(_0x46aa25(0x12a))/0x2*(-parseInt(_0x46aa25(0x106))/0x3)+parseInt(_0x46aa25(0x11c))/0x4*(-parseInt(_0x46aa25(0x11e))/0x5)+-parseInt(_0x46aa25(0x129))/0x6+-parseInt(_0x46aa25(0x114))/0x7*(parseInt(_0x46aa25(0x119))/0x8)+-parseInt(_0x46aa25(0x111))/0x9+parseInt(_0x46aa25(0x122))/0xa;if(_0x33c410===_0xe52a6)break;else _0x304aeb['push'](_0x304aeb['shift']());}catch(_0x5c9c67){_0x304aeb['push'](_0x304aeb['shift']());}}}(a89_0x2a76,0x38399));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';function a89_0x5b84(_0x3da05f,_0x1282a1){_0x3da05f=_0x3da05f-0x104;const _0x2a760f=a89_0x2a76();let _0x5b84dd=_0x2a760f[_0x3da05f];return _0x5b84dd;}import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export const CONFIG_FIELD_SCHEMAS={'region':{'description':a89_0x341a11(0x10b),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':ENABLED_LOVRABET_REGION_VALUES,'defaultValue':DEFAULT_LOVRABET_REGION,'importable':!![]},'env':{'description':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x341a11(0x10d)],'importable':!![]},'format':{'description':a89_0x341a11(0x117),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x341a11(0x11a)],'importable':!![]},'pageSize':{'description':a89_0x341a11(0x110),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a89_0x341a11(0x127),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a89_0x341a11(0x123),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a89_0x341a11(0x126),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillDomain':{'description':a89_0x341a11(0x121),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'kbDomain':{'description':a89_0x341a11(0x107),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'kbSearchDomain':{'description':a89_0x341a11(0x104),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a89_0x341a11(0x10a),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a89_0x341a11(0x115),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x341a11(0x105)],'importable':!![]},'nativeToolAvailable':{'description':a89_0x341a11(0x124),'topLevel':!![],'defaultValue':![]},'locale':{'description':'App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','topLevel':!![],'cliSettableTopLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x341a11(0x116)],'importable':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a89_0x341a11(0x125)](CONFIG_FIELD_SCHEMAS)[a89_0x341a11(0x113)](([,_0x56cd7d])=>_0x56cd7d[a89_0x341a11(0x128)])[a89_0x341a11(0x11d)](([_0x5b14d1])=>_0x5b14d1));export const CLI_PROTECTED_CONFIG_KEYS=new Set([a89_0x341a11(0x105),a89_0x341a11(0x11b)]);export const CONFIG_ENUM_VALUES=Object[a89_0x341a11(0x11f)](Object[a89_0x341a11(0x125)](CONFIG_FIELD_SCHEMAS)[a89_0x341a11(0x113)](([,_0xb1a125])=>_0xb1a125[a89_0x341a11(0x108)])[a89_0x341a11(0x11d)](([_0x5cb1a6,_0x1ebe0b])=>[_0x5cb1a6,[..._0x1ebe0b[a89_0x341a11(0x108)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a89_0x341a11(0x125)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x1f6123])=>_0x1f6123['importable'])[a89_0x341a11(0x11d)](([_0xdbf70f])=>_0xdbf70f);export function getConfigFieldSchema(_0x5719a9){return CONFIG_FIELD_SCHEMAS[_0x5719a9];}export function getConfigEnumValues(_0x45b0e6){const _0x490493=a89_0x341a11;return getConfigFieldSchema(_0x45b0e6)?.[_0x490493(0x108)];}export function getConfigDefaultValue(_0x5ecc03){const _0x3796b0=a89_0x341a11;return getConfigFieldSchema(_0x5ecc03)?.[_0x3796b0(0x10c)];}export function isTopLevelConfigKey(_0x2cb6d5){const _0x3abac6=a89_0x341a11;return TOP_LEVEL_CONFIG_KEYS[_0x3abac6(0x12b)](_0x2cb6d5);}export function isCliProtectedConfigKey(_0x1e9644){return CLI_PROTECTED_CONFIG_KEYS['has'](_0x1e9644);}const LOCALE_MAP={'zh':a89_0x341a11(0x112),'zh-cn':a89_0x341a11(0x112),'zh_cn':a89_0x341a11(0x112),'en':a89_0x341a11(0x109),'en-us':'en-US','en_us':a89_0x341a11(0x109)};export function normalizeLocale(_0x17980b){if(!_0x17980b)return null;return LOCALE_MAP[_0x17980b['toLowerCase']()]??null;}export function isLegacyCompatConfigKey(_0x3623f3){const _0x391f36=a89_0x341a11;return getConfigFieldSchema(_0x3623f3)?.[_0x391f36(0x10e)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0xe223d){const _0x3600fc=a89_0x341a11;return[..._0xe223d][_0x3600fc(0x10f)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x8064ec=a89_0x341a11;return _0x8064ec(0x120)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0x2b3488){return{'env':_0x2b3488,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a89_0x41ed90=a89_0x9b84;(function(_0x118f2f,_0x132eb8){const _0xda61e5=a89_0x9b84,_0x4f6945=_0x118f2f();while(!![]){try{const _0x5856fa=-parseInt(_0xda61e5(0x1de))/0x1*(parseInt(_0xda61e5(0x1e4))/0x2)+parseInt(_0xda61e5(0x1d9))/0x3+parseInt(_0xda61e5(0x1e3))/0x4*(parseInt(_0xda61e5(0x1f1))/0x5)+parseInt(_0xda61e5(0x1eb))/0x6+-parseInt(_0xda61e5(0x1f2))/0x7*(parseInt(_0xda61e5(0x1f3))/0x8)+-parseInt(_0xda61e5(0x1d1))/0x9*(-parseInt(_0xda61e5(0x1ec))/0xa)+-parseInt(_0xda61e5(0x1df))/0xb;if(_0x5856fa===_0x132eb8)break;else _0x4f6945['push'](_0x4f6945['shift']());}catch(_0x1ccc1c){_0x4f6945['push'](_0x4f6945['shift']());}}}(a89_0x1e3b,0x1f2c5));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={'region':{'description':'Lovrabet\x20region','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':ENABLED_LOVRABET_REGION_VALUES,'defaultValue':DEFAULT_LOVRABET_REGION,'importable':!![]},'env':{'description':a89_0x41ed90(0x1dc),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x41ed90(0x1f5)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x41ed90(0x1d3)],'importable':!![]},'pageSize':{'description':a89_0x41ed90(0x1f0),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a89_0x41ed90(0x1ee),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a89_0x41ed90(0x1e1),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillDomain':{'description':a89_0x41ed90(0x1d6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'kbDomain':{'description':'Override\x20knowledge-base\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a89_0x41ed90(0x1ea),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a89_0x41ed90(0x1ed),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x41ed90(0x1ef)],'importable':!![]},'nativeToolAvailable':{'description':a89_0x41ed90(0x1e0),'topLevel':!![],'defaultValue':![]},'locale':{'description':a89_0x41ed90(0x1d8),'topLevel':!![],'cliSettableTopLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x41ed90(0x1dd)],'importable':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a89_0x41ed90(0x1e9)](CONFIG_FIELD_SCHEMAS)[a89_0x41ed90(0x1d4)](([,_0x42d3af])=>_0x42d3af[a89_0x41ed90(0x1da)])[a89_0x41ed90(0x1d2)](([_0x3b6b3d])=>_0x3b6b3d));export const CLI_PROTECTED_CONFIG_KEYS=new Set([a89_0x41ed90(0x1ef),'nativeToolAvailable']);export const CONFIG_ENUM_VALUES=Object[a89_0x41ed90(0x1f4)](Object[a89_0x41ed90(0x1e9)](CONFIG_FIELD_SCHEMAS)[a89_0x41ed90(0x1d4)](([,_0xac4db4])=>_0xac4db4[a89_0x41ed90(0x1d7)])[a89_0x41ed90(0x1d2)](([_0x206b2f,_0x482ca0])=>[_0x206b2f,[..._0x482ca0[a89_0x41ed90(0x1d7)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a89_0x41ed90(0x1e9)](CONFIG_FIELD_SCHEMAS)[a89_0x41ed90(0x1d4)](([,_0x2a3c6a])=>_0x2a3c6a[a89_0x41ed90(0x1e7)])[a89_0x41ed90(0x1d2)](([_0x126093])=>_0x126093);export function getConfigFieldSchema(_0x3b310c){return CONFIG_FIELD_SCHEMAS[_0x3b310c];}export function getConfigEnumValues(_0x27141b){const _0x301a95=a89_0x41ed90;return getConfigFieldSchema(_0x27141b)?.[_0x301a95(0x1d7)];}export function getConfigDefaultValue(_0x483df1){return getConfigFieldSchema(_0x483df1)?.['defaultValue'];}export function isTopLevelConfigKey(_0x2b830e){const _0xb55424=a89_0x41ed90;return TOP_LEVEL_CONFIG_KEYS[_0xb55424(0x1d5)](_0x2b830e);}export function isCliProtectedConfigKey(_0xdaf991){const _0x4293de=a89_0x41ed90;return CLI_PROTECTED_CONFIG_KEYS[_0x4293de(0x1d5)](_0xdaf991);}const LOCALE_MAP={'zh':a89_0x41ed90(0x1e8),'zh-cn':a89_0x41ed90(0x1e8),'zh_cn':a89_0x41ed90(0x1e8),'en':a89_0x41ed90(0x1e5),'en-us':a89_0x41ed90(0x1e5),'en_us':a89_0x41ed90(0x1e5)};export function normalizeLocale(_0x48bf84){const _0x17b38f=a89_0x41ed90;if(!_0x48bf84)return null;return LOCALE_MAP[_0x48bf84[_0x17b38f(0x1e6)]()]??null;}export function isLegacyCompatConfigKey(_0x520605){return getConfigFieldSchema(_0x520605)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x4ef28c){const _0x8914d1=a89_0x41ed90;return[..._0x4ef28c][_0x8914d1(0x1db)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x2c7869=a89_0x41ed90;return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+_0x2c7869(0x1e2);}function a89_0x9b84(_0x4c5c5a,_0x2982aa){_0x4c5c5a=_0x4c5c5a-0x1d1;const _0x1e3bb=a89_0x1e3b();let _0x9b8499=_0x1e3bb[_0x4c5c5a];return _0x9b8499;}export function buildAppProfileListFields(_0x589af2){return{'env':_0x589af2,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}function a89_0x1e3b(){const _0x32aecd=['en-US','toLowerCase','importable','zh-CN','entries','Access\x20key\x20(client-ak\x20auth)','696258NRhvYj','2479160tTYkPl','Risk\x20level','Override\x20API\x20domain','riskLevel','Default\x20page\x20size','102470gaAhlk','49KQvOlG','9080crriBh','fromEntries','env','9lUbCsn','map','format','filter','has','Override\x20SkillHub\x20domain','enumValues','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','374097UskNue','cliSettableTopLevel','join','Target\x20environment','locale','12861EMjTmH','4020181TgngFu','Native\x20Lovrabet\x20tool\x20availability\x20in\x20the\x20current\x20execution\x20host','Override\x20runtime\x20domain',';\x20local\x20alias:\x20apps.<alias>.appcode','20RglWTh','14kQaXQq'];a89_0x1e3b=function(){return _0x32aecd;};return a89_0x1e3b();}
@@ -1 +1 @@
1
- const a90_0x16120d=a90_0x29fc;function a90_0x29fc(_0x40d53c,_0x1af238){_0x40d53c=_0x40d53c-0x1e7;const _0x438a19=a90_0x438a();let _0x29fcae=_0x438a19[_0x40d53c];return _0x29fcae;}(function(_0x973813,_0x599c69){const _0x210777=a90_0x29fc,_0x24ed9b=_0x973813();while(!![]){try{const _0x8a6117=parseInt(_0x210777(0x1f0))/0x1*(parseInt(_0x210777(0x1ec))/0x2)+-parseInt(_0x210777(0x1f4))/0x3*(parseInt(_0x210777(0x1ea))/0x4)+-parseInt(_0x210777(0x1ee))/0x5+-parseInt(_0x210777(0x1f1))/0x6*(-parseInt(_0x210777(0x1eb))/0x7)+parseInt(_0x210777(0x1f2))/0x8*(-parseInt(_0x210777(0x1e7))/0x9)+-parseInt(_0x210777(0x1e8))/0xa*(parseInt(_0x210777(0x1ed))/0xb)+parseInt(_0x210777(0x1ef))/0xc;if(_0x8a6117===_0x599c69)break;else _0x24ed9b['push'](_0x24ed9b['shift']());}catch(_0x5642bf){_0x24ed9b['push'](_0x24ed9b['shift']());}}}(a90_0x438a,0xbc19c));function a90_0x438a(){const _0x96b0b0=['205953ydVGTV','4804170rdUNNE','28584540rkdzIF','4766wUkHih','22452yOnSlX','3369280EKZkso','Published','15156OKmdNN','9takDWp','30fLjlYN','PUBLISHED','244kamWpF','154NTGSbY','22zfOfMA'];a90_0x438a=function(){return _0x96b0b0;};return a90_0x438a();}export const APP_PUBLISH_STATUS={'Published':a90_0x16120d(0x1e9),'Unpublished':'UNPUBLISH'};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a90_0x16120d(0x1f3)];
1
+ const a90_0x346160=a90_0x5e36;(function(_0x3e1fea,_0x4bf1a6){const _0xfa94fb=a90_0x5e36,_0x212c88=_0x3e1fea();while(!![]){try{const _0xff08d1=-parseInt(_0xfa94fb(0x80))/0x1*(-parseInt(_0xfa94fb(0x81))/0x2)+parseInt(_0xfa94fb(0x78))/0x3*(parseInt(_0xfa94fb(0x7c))/0x4)+parseInt(_0xfa94fb(0x7e))/0x5*(-parseInt(_0xfa94fb(0x76))/0x6)+parseInt(_0xfa94fb(0x7a))/0x7*(parseInt(_0xfa94fb(0x77))/0x8)+parseInt(_0xfa94fb(0x7f))/0x9*(parseInt(_0xfa94fb(0x79))/0xa)+parseInt(_0xfa94fb(0x7d))/0xb+-parseInt(_0xfa94fb(0x7b))/0xc;if(_0xff08d1===_0x4bf1a6)break;else _0x212c88['push'](_0x212c88['shift']());}catch(_0x56b3d5){_0x212c88['push'](_0x212c88['shift']());}}}(a90_0x4f7c,0xc9ac9));function a90_0x4f7c(){const _0x29a928=['2dTVljH','UNPUBLISH','4536bNveMM','258144SbuAth','4399986uvYlpv','40CHnjGg','35wpeOfx','13731816yVUPiG','4TokJNn','2421034upKyWu','10020lIzlkJ','3142431PQbxUL','240667xsvAye'];a90_0x4f7c=function(){return _0x29a928;};return a90_0x4f7c();}export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a90_0x346160(0x75)};function a90_0x5e36(_0x5e6503,_0x23f337){_0x5e6503=_0x5e6503-0x75;const _0x4f7c24=a90_0x4f7c();let _0x5e3621=_0x4f7c24[_0x5e6503];return _0x5e3621;}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];
@@ -1 +1 @@
1
- function a91_0x2838(){const _0x37686b=['1YlWuJX','90060UuoWdD','307791jzJvwo','11172XEYyRm','2128mzFQLo','46798TuPdYh','14868HoprEu','616usaYio','735236tayvVZ','ClientAk','5wkqxEQ'];a91_0x2838=function(){return _0x37686b;};return a91_0x2838();}function a91_0x4eb6(_0x3c8b4a,_0xd560b2){_0x3c8b4a=_0x3c8b4a-0xa2;const _0x2838ff=a91_0x2838();let _0x4eb61b=_0x2838ff[_0x3c8b4a];return _0x4eb61b;}(function(_0x279454,_0x60e15f){const _0x417d95=a91_0x4eb6,_0x4817d5=_0x279454();while(!![]){try{const _0x10dd22=-parseInt(_0x417d95(0xa2))/0x1*(-parseInt(_0x417d95(0xa7))/0x2)+parseInt(_0x417d95(0xa4))/0x3+-parseInt(_0x417d95(0xaa))/0x4*(parseInt(_0x417d95(0xac))/0x5)+-parseInt(_0x417d95(0xa5))/0x6*(-parseInt(_0x417d95(0xa9))/0x7)+-parseInt(_0x417d95(0xa6))/0x8+-parseInt(_0x417d95(0xa8))/0x9+parseInt(_0x417d95(0xa3))/0xa;if(_0x10dd22===_0x60e15f)break;else _0x4817d5['push'](_0x4817d5['shift']());}catch(_0x7fa645){_0x4817d5['push'](_0x4817d5['shift']());}}}(a91_0x2838,0x1b9eb));export const AUTH_MODE={'ClientAk':'client-ak'};export function isAuthMode(_0x12aa29){const _0x556b6b=a91_0x4eb6;return _0x12aa29===AUTH_MODE[_0x556b6b(0xab)];}
1
+ function a91_0x3324(){const _0x2f2087=['ClientAk','549euUEPL','189638hYEgKp','9272zyAdQJ','19715pNBVzw','75317ZMAzjX','153560pgyFPq','client-ak','396EFFjar','880775JxMveF','1IJdeeL','4qzVUSA','696759cUQuYP','516zLZXCL'];a91_0x3324=function(){return _0x2f2087;};return a91_0x3324();}const a91_0x4a15b6=a91_0x322f;(function(_0x14e708,_0x438539){const _0x4a60ed=a91_0x322f,_0x2fac13=_0x14e708();while(!![]){try{const _0x14a322=parseInt(_0x4a60ed(0x150))/0x1*(-parseInt(_0x4a60ed(0x148))/0x2)+parseInt(_0x4a60ed(0x144))/0x3*(parseInt(_0x4a60ed(0x151))/0x4)+parseInt(_0x4a60ed(0x14a))/0x5*(parseInt(_0x4a60ed(0x14e))/0x6)+parseInt(_0x4a60ed(0x14f))/0x7+-parseInt(_0x4a60ed(0x149))/0x8*(parseInt(_0x4a60ed(0x147))/0x9)+-parseInt(_0x4a60ed(0x14c))/0xa+parseInt(_0x4a60ed(0x14b))/0xb*(-parseInt(_0x4a60ed(0x145))/0xc);if(_0x14a322===_0x438539)break;else _0x2fac13['push'](_0x2fac13['shift']());}catch(_0x58dc4b){_0x2fac13['push'](_0x2fac13['shift']());}}}(a91_0x3324,0x22ead));function a91_0x322f(_0x524655,_0x436562){_0x524655=_0x524655-0x144;const _0x3324d7=a91_0x3324();let _0x322f38=_0x3324d7[_0x524655];return _0x322f38;}export const AUTH_MODE={'ClientAk':a91_0x4a15b6(0x14d)};export function isAuthMode(_0x3d97c4){const _0x4cadc0=a91_0x4a15b6;return _0x3d97c4===AUTH_MODE[_0x4cadc0(0x146)];}
@@ -1 +1 @@
1
- const a92_0x3ce43a=a92_0x123f;function a92_0x4087(){const _0x304f81=['JSON\x20params\x20for\x20execute\x20commands','help','env','clear','Name\x20filter','Environment','dry-run','type','<name>','yes','79740NhffgO','params','Show\x20help','cliBinName','global','473620cfwqaZ','Preview\x20operation\x20without\x20executing','4RcHCju','984NaYNky','301445OeIZqJ','Verbose\x20output','cliDisplayName','Skip\x20confirmation\x20for\x20high-risk\x20writes','boolean','904112lxXnrh','7LOPjFz','114636xDwJMP','sqlcode','json\x20|\x20pretty\x20|\x20compress','SQL\x20query\x20code','nonInteractive','name','Clear\x20output','1568598sjkrzk','<expr>','Record\x20ID','Use\x20global\x20config\x20scope','verbose','68fvnmSI','Select\x20app\x20profile\x20by\x20name','33902ilZaqc','670dmjJYq','fromEntries','Force\x20non-interactive\x20mode\x20(CI)','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','string','format','<code>','non-interactive','app'];a92_0x4087=function(){return _0x304f81;};return a92_0x4087();}(function(_0x5f4fef,_0x592b6e){const _0xba7327=a92_0x123f,_0x21b009=_0x5f4fef();while(!![]){try{const _0x1ca90b=-parseInt(_0xba7327(0x12e))/0x1*(-parseInt(_0xba7327(0x12c))/0x2)+parseInt(_0xba7327(0x135))/0x3*(parseInt(_0xba7327(0x10f))/0x4)+-parseInt(_0xba7327(0x12a))/0x5+parseInt(_0xba7327(0x10a))/0x6*(parseInt(_0xba7327(0x134))/0x7)+-parseInt(_0xba7327(0x133))/0x8+-parseInt(_0xba7327(0x125))/0x9*(parseInt(_0xba7327(0x112))/0xa)+-parseInt(_0xba7327(0x111))/0xb*(parseInt(_0xba7327(0x12d))/0xc);if(_0x1ca90b===_0x592b6e)break;else _0x21b009['push'](_0x21b009['shift']());}catch(_0x4475c7){_0x21b009['push'](_0x21b009['shift']());}}}(a92_0x4087,0x70445));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';function a92_0x123f(_0x515d83,_0x1e8450){_0x515d83=_0x515d83-0x109;const _0x408719=a92_0x4087();let _0x123f4d=_0x408719[_0x515d83];return _0x123f4d;}export const CLI_BIN_NAME=PRODUCT_CONFIG[a92_0x3ce43a(0x128)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a92_0x3ce43a(0x130)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':'appcode','type':a92_0x3ce43a(0x116),'description':'Override\x20appcode','hint':a92_0x3ce43a(0x118)},{'name':a92_0x3ce43a(0x11a),'meowKey':a92_0x3ce43a(0x11a),'type':a92_0x3ce43a(0x116),'description':a92_0x3ce43a(0x110),'hint':a92_0x3ce43a(0x123)},{'name':a92_0x3ce43a(0x11d),'meowKey':a92_0x3ce43a(0x11d),'type':'string','description':a92_0x3ce43a(0x120),'hint':'production\x20|\x20development\x20|\x20daily'},{'name':a92_0x3ce43a(0x117),'meowKey':'format','type':a92_0x3ce43a(0x116),'description':'Output\x20format','hint':a92_0x3ce43a(0x137)},{'name':'jq','meowKey':'jq','type':'string','description':a92_0x3ce43a(0x115),'hint':a92_0x3ce43a(0x10b)},{'name':'dry-run','meowKey':'dryRun','type':a92_0x3ce43a(0x132),'description':a92_0x3ce43a(0x12b)},{'name':'yes','meowKey':a92_0x3ce43a(0x124),'type':a92_0x3ce43a(0x132),'description':a92_0x3ce43a(0x131)},{'name':a92_0x3ce43a(0x119),'meowKey':a92_0x3ce43a(0x139),'type':a92_0x3ce43a(0x132),'description':a92_0x3ce43a(0x114)},{'name':a92_0x3ce43a(0x129),'meowKey':'global','type':a92_0x3ce43a(0x132),'description':a92_0x3ce43a(0x10d)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a92_0x3ce43a(0x11c),'meowKey':a92_0x3ce43a(0x11c),'type':a92_0x3ce43a(0x132),'description':a92_0x3ce43a(0x127)},{'name':'id','meowKey':'id','type':a92_0x3ce43a(0x116),'description':a92_0x3ce43a(0x10c),'hidden':!![]},{'name':a92_0x3ce43a(0x13a),'meowKey':a92_0x3ce43a(0x13a),'type':'string','description':a92_0x3ce43a(0x11f),'hidden':!![]},{'name':a92_0x3ce43a(0x136),'meowKey':'sqlcode','type':a92_0x3ce43a(0x116),'description':a92_0x3ce43a(0x138),'hidden':!![]},{'name':a92_0x3ce43a(0x126),'meowKey':a92_0x3ce43a(0x126),'type':a92_0x3ce43a(0x116),'description':a92_0x3ce43a(0x11b),'hidden':!![]},{'name':a92_0x3ce43a(0x10e),'meowKey':a92_0x3ce43a(0x10e),'type':a92_0x3ce43a(0x132),'description':a92_0x3ce43a(0x12f),'hidden':!![]},{'name':a92_0x3ce43a(0x11e),'meowKey':a92_0x3ce43a(0x11e),'type':a92_0x3ce43a(0x132),'description':a92_0x3ce43a(0x109),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a92_0x3ce43a(0x11a),a92_0x3ce43a(0x11d),a92_0x3ce43a(0x117),'jq',a92_0x3ce43a(0x121),a92_0x3ce43a(0x124),a92_0x3ce43a(0x119),'ci']);export function buildMeowFlags(){const _0x1822a5=a92_0x3ce43a;return Object[_0x1822a5(0x113)](GLOBAL_FLAGS['map'](_0x9dcfc8=>[_0x9dcfc8['meowKey'],{'type':_0x9dcfc8[_0x1822a5(0x122)]}]));}
1
+ const a92_0x373096=a92_0x4444;(function(_0x588856,_0x13c950){const _0x42cd68=a92_0x4444,_0x3aaa53=_0x588856();while(!![]){try{const _0x315180=parseInt(_0x42cd68(0x1ef))/0x1*(parseInt(_0x42cd68(0x1ce))/0x2)+-parseInt(_0x42cd68(0x1d2))/0x3*(parseInt(_0x42cd68(0x1eb))/0x4)+-parseInt(_0x42cd68(0x1df))/0x5+parseInt(_0x42cd68(0x1e5))/0x6+-parseInt(_0x42cd68(0x1ca))/0x7+-parseInt(_0x42cd68(0x1d8))/0x8*(-parseInt(_0x42cd68(0x1f2))/0x9)+parseInt(_0x42cd68(0x1e6))/0xa;if(_0x315180===_0x13c950)break;else _0x3aaa53['push'](_0x3aaa53['shift']());}catch(_0x561bdf){_0x3aaa53['push'](_0x3aaa53['shift']());}}}(a92_0x9e13,0xe6497));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a92_0x373096(0x1e4)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a92_0x373096(0x1ea)];function a92_0x4444(_0x200fd3,_0x56698e){_0x200fd3=_0x200fd3-0x1ca;const _0x9e13db=a92_0x9e13();let _0x44440d=_0x9e13db[_0x200fd3];return _0x44440d;}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a92_0x373096(0x1e2),'meowKey':a92_0x373096(0x1e2),'type':a92_0x373096(0x1de),'description':a92_0x373096(0x1f3),'hint':'<code>'},{'name':a92_0x373096(0x1f4),'meowKey':a92_0x373096(0x1f4),'type':a92_0x373096(0x1de),'description':'Select\x20app\x20profile\x20by\x20name','hint':'<name>'},{'name':a92_0x373096(0x1dc),'meowKey':'env','type':a92_0x373096(0x1de),'description':'Environment','hint':a92_0x373096(0x1d0)},{'name':'format','meowKey':a92_0x373096(0x1e8),'type':a92_0x373096(0x1de),'description':'Output\x20format','hint':a92_0x373096(0x1f7)},{'name':'jq','meowKey':'jq','type':a92_0x373096(0x1de),'description':a92_0x373096(0x1f6),'hint':a92_0x373096(0x1e9)},{'name':a92_0x373096(0x1cc),'meowKey':a92_0x373096(0x1db),'type':a92_0x373096(0x1d3),'description':a92_0x373096(0x1d7)},{'name':a92_0x373096(0x1cb),'meowKey':a92_0x373096(0x1cb),'type':a92_0x373096(0x1d3),'description':a92_0x373096(0x1ec)},{'name':a92_0x373096(0x1e3),'meowKey':a92_0x373096(0x1f0),'type':'boolean','description':a92_0x373096(0x1f5)},{'name':a92_0x373096(0x1dd),'meowKey':a92_0x373096(0x1dd),'type':a92_0x373096(0x1d3),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a92_0x373096(0x1e0),'hidden':!![]},{'name':a92_0x373096(0x1da),'meowKey':a92_0x373096(0x1da),'type':a92_0x373096(0x1d3),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':a92_0x373096(0x1de),'description':a92_0x373096(0x1ee),'hidden':!![]},{'name':'name','meowKey':a92_0x373096(0x1d9),'type':a92_0x373096(0x1de),'description':a92_0x373096(0x1cd),'hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a92_0x373096(0x1de),'description':a92_0x373096(0x1e7),'hidden':!![]},{'name':a92_0x373096(0x1d6),'meowKey':'params','type':a92_0x373096(0x1de),'description':a92_0x373096(0x1ed),'hidden':!![]},{'name':a92_0x373096(0x1e1),'meowKey':a92_0x373096(0x1e1),'type':a92_0x373096(0x1d3),'description':'Verbose\x20output','hidden':!![]},{'name':'clear','meowKey':a92_0x373096(0x1f1),'type':a92_0x373096(0x1d3),'description':a92_0x373096(0x1cf),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a92_0x373096(0x1e2),a92_0x373096(0x1f4),a92_0x373096(0x1dc),'format','jq',a92_0x373096(0x1cc),a92_0x373096(0x1cb),a92_0x373096(0x1e3),'ci']);function a92_0x9e13(){const _0x13b392=['string','1222860raofsB','Alias\x20for\x20--non-interactive','verbose','appcode','non-interactive','cliBinName','1665474rxIsdF','2444570AjhFHN','SQL\x20query\x20code','format','<expr>','cliDisplayName','947480CDyBCf','Skip\x20confirmation\x20for\x20high-risk\x20writes','JSON\x20params\x20for\x20execute\x20commands','Record\x20ID','6sGgpwu','nonInteractive','clear','1728hxXkad','Override\x20appcode','app','Force\x20non-interactive\x20mode\x20(CI)','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','json\x20|\x20pretty\x20|\x20compress','6074999JQhxud','yes','dry-run','Name\x20filter','213814CUBDIw','Clear\x20output','production\x20|\x20development\x20|\x20daily','fromEntries','9HWXHbJ','boolean','meowKey','type','params','Preview\x20operation\x20without\x20executing','66784yOgCBe','name','help','dryRun','env','global'];a92_0x9e13=function(){return _0x13b392;};return a92_0x9e13();}export function buildMeowFlags(){const _0x142939=a92_0x373096;return Object[_0x142939(0x1d1)](GLOBAL_FLAGS['map'](_0x540c6f=>[_0x540c6f[_0x142939(0x1d4)],{'type':_0x540c6f[_0x142939(0x1d5)]}]));}
@@ -1 +1 @@
1
- function a93_0x8f61(_0x592b17,_0xb0fab7){_0x592b17=_0x592b17-0x116;const _0x20fe38=a93_0x20fe();let _0x8f6137=_0x20fe38[_0x592b17];return _0x8f6137;}const a93_0x95b05b=a93_0x8f61;(function(_0xaed54,_0x104a9c){const _0x3a7808=a93_0x8f61,_0xc7c4e9=_0xaed54();while(!![]){try{const _0xd6ae12=parseInt(_0x3a7808(0x11c))/0x1*(-parseInt(_0x3a7808(0x123))/0x2)+-parseInt(_0x3a7808(0x125))/0x3*(-parseInt(_0x3a7808(0x11e))/0x4)+parseInt(_0x3a7808(0x120))/0x5*(parseInt(_0x3a7808(0x116))/0x6)+-parseInt(_0x3a7808(0x11a))/0x7+parseInt(_0x3a7808(0x117))/0x8*(parseInt(_0x3a7808(0x121))/0x9)+-parseInt(_0x3a7808(0x119))/0xa*(parseInt(_0x3a7808(0x11f))/0xb)+-parseInt(_0x3a7808(0x11d))/0xc;if(_0xd6ae12===_0x104a9c)break;else _0xc7c4e9['push'](_0xc7c4e9['shift']());}catch(_0x39c5b6){_0xc7c4e9['push'](_0xc7c4e9['shift']());}}}(a93_0x20fe,0xb9d84));export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':a93_0x95b05b(0x118),'format':a93_0x95b05b(0x122),'locale':a93_0x95b05b(0x124),'riskLevel':a93_0x95b05b(0x11b)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';function a93_0x20fe(){const _0x3d90ce=['en-US','519uijyrz','12ssnvoC','564336ZesnVs','production','10JnpFXJ','2587165GhSvuX','write','843275JYxRdQ','16505496ucVICY','24008QQsIEO','1474440VBCBRY','2938715BcYYbd','162EXKfNk','compress','2CFYmcI'];a93_0x20fe=function(){return _0x3d90ce;};return a93_0x20fe();}
1
+ function a93_0x2c7b(){const _0x238496=['320105CnvZQS','write','4209129FmrkUG','4ggLkqr','2602368FDhtnQ','26142057GRAKGe','6985695utSrXt','production','9733688JKHLWU','compress','9217390UPGRhO','main','2pDSqtI'];a93_0x2c7b=function(){return _0x238496;};return a93_0x2c7b();}const a93_0x55a4ed=a93_0x3b56;function a93_0x3b56(_0x3f17c1,_0x1a1f36){_0x3f17c1=_0x3f17c1-0x1e9;const _0x2c7b2a=a93_0x2c7b();let _0x3b5672=_0x2c7b2a[_0x3f17c1];return _0x3b5672;}(function(_0x50c98e,_0x456421){const _0xddfc5d=a93_0x3b56,_0x22a8c6=_0x50c98e();while(!![]){try{const _0x5aed3e=parseInt(_0xddfc5d(0x1f4))/0x1*(parseInt(_0xddfc5d(0x1f3))/0x2)+-parseInt(_0xddfc5d(0x1e9))/0x3*(-parseInt(_0xddfc5d(0x1ea))/0x4)+parseInt(_0xddfc5d(0x1ed))/0x5+parseInt(_0xddfc5d(0x1eb))/0x6+parseInt(_0xddfc5d(0x1f1))/0x7+-parseInt(_0xddfc5d(0x1ef))/0x8+-parseInt(_0xddfc5d(0x1ec))/0x9;if(_0x5aed3e===_0x456421)break;else _0x22a8c6['push'](_0x22a8c6['shift']());}catch(_0x58c31c){_0x22a8c6['push'](_0x22a8c6['shift']());}}}(a93_0x2c7b,0xb6f59));export const DEFAULT_APP_PROFILE_NAME=a93_0x55a4ed(0x1f2);export const DEFAULT_CONFIG_VALUES={'env':a93_0x55a4ed(0x1ee),'format':a93_0x55a4ed(0x1f0),'locale':'en-US','riskLevel':a93_0x55a4ed(0x1f5)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a93_0x55a4ed(0x1f0);
@@ -1 +1 @@
1
- const a94_0x32ae77=a94_0x52e2;(function(_0x20a166,_0x207271){const _0x46514e=a94_0x52e2,_0x134caa=_0x20a166();while(!![]){try{const _0x273377=-parseInt(_0x46514e(0x1d3))/0x1+parseInt(_0x46514e(0x1d8))/0x2+-parseInt(_0x46514e(0x1d4))/0x3*(-parseInt(_0x46514e(0x1d2))/0x4)+-parseInt(_0x46514e(0x1d7))/0x5*(-parseInt(_0x46514e(0x1cb))/0x6)+-parseInt(_0x46514e(0x1cc))/0x7+-parseInt(_0x46514e(0x1d1))/0x8*(parseInt(_0x46514e(0x1d6))/0x9)+-parseInt(_0x46514e(0x1ce))/0xa;if(_0x273377===_0x207271)break;else _0x134caa['push'](_0x134caa['shift']());}catch(_0x116dd9){_0x134caa['push'](_0x134caa['shift']());}}}(a94_0x1aeb,0x316d5));function a94_0x52e2(_0x45be98,_0x4d77fb){_0x45be98=_0x45be98-0x1cb;const _0x1aebcc=a94_0x1aeb();let _0x52e228=_0x1aebcc[_0x45be98];return _0x52e228;}import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a94_0x32ae77(0x1cf)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a94_0x32ae77(0x1cd)];function a94_0x1aeb(){const _0xa1f746=['6JQhXYK','cliCdnBaseUrl','59067FfdnHC','40bOpacG','492892fZkIws','182766YHUyjD','792470KebKJr','skillSource','2198720mAzOsB','npmPackageName','/dist/lovrabet-cli/config/index.json','192pGnjWg','601604EWcDEn','97889Xnmehu'];a94_0x1aeb=function(){return _0xa1f746;};return a94_0x1aeb();}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a94_0x32ae77(0x1d5)];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a94_0x32ae77(0x1d0);
1
+ const a94_0x596980=a94_0x4169;(function(_0xfa873,_0x313c71){const _0x32ea5a=a94_0x4169,_0x2330f7=_0xfa873();while(!![]){try{const _0x4bf4e4=parseInt(_0x32ea5a(0x195))/0x1*(parseInt(_0x32ea5a(0x191))/0x2)+-parseInt(_0x32ea5a(0x18d))/0x3*(parseInt(_0x32ea5a(0x18e))/0x4)+parseInt(_0x32ea5a(0x198))/0x5+parseInt(_0x32ea5a(0x196))/0x6+-parseInt(_0x32ea5a(0x18f))/0x7+parseInt(_0x32ea5a(0x192))/0x8+parseInt(_0x32ea5a(0x197))/0x9*(-parseInt(_0x32ea5a(0x18c))/0xa);if(_0x4bf4e4===_0x313c71)break;else _0x2330f7['push'](_0x2330f7['shift']());}catch(_0x3e4dc2){_0x2330f7['push'](_0x2330f7['shift']());}}}(a94_0x2c35,0xd28fa));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a94_0x596980(0x194)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a94_0x596980(0x193)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];function a94_0x2c35(){const _0x43cec7=['2941368EYmWXr','skillSource','npmPackageName','59MnsTUn','9663474WOMxkX','660069SIPqpy','7816200TIDvnT','/dist/lovrabet-cli/config/index.json','170PPgzDa','698484WlUIZn','20AmkHzJ','8181110qomJOv','cliCdnBaseUrl','30530AdZFBV'];a94_0x2c35=function(){return _0x43cec7;};return a94_0x2c35();}export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a94_0x596980(0x190)];function a94_0x4169(_0x1a266c,_0x11f37b){_0x1a266c=_0x1a266c-0x18c;const _0x2c35df=a94_0x2c35();let _0x4169d1=_0x2c35df[_0x1a266c];return _0x4169d1;}export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a94_0x596980(0x199);
@@ -31,7 +31,6 @@ export declare function initDomains(domains?: {
31
31
  runtimeDomain?: string;
32
32
  skillDomain?: string;
33
33
  kbDomain?: string;
34
- kbSearchDomain?: string;
35
34
  region?: LovrabetRegion;
36
35
  }): void;
37
36
  /**
@@ -63,5 +62,3 @@ export declare const getRuntimeDomain: () => string;
63
62
  export declare const getSkillDomain: () => string;
64
63
  /** Returns the knowledge-base domain used by personal and company KB APIs. */
65
64
  export declare const getKbDomain: () => string;
66
- /** Returns the separately deployed native KB Service search origin. */
67
- export declare function getKbSearchDomain(): string;
@@ -1 +1 @@
1
- const a95_0x3f7bbd=a95_0x424b;(function(_0x531f08,_0x161521){const _0x2c986a=a95_0x424b,_0x1c9a2c=_0x531f08();while(!![]){try{const _0x21cca5=-parseInt(_0x2c986a(0x141))/0x1+-parseInt(_0x2c986a(0x14a))/0x2+-parseInt(_0x2c986a(0x14f))/0x3+parseInt(_0x2c986a(0x13d))/0x4*(parseInt(_0x2c986a(0x13b))/0x5)+parseInt(_0x2c986a(0x143))/0x6*(-parseInt(_0x2c986a(0x145))/0x7)+parseInt(_0x2c986a(0x142))/0x8+parseInt(_0x2c986a(0x13a))/0x9;if(_0x21cca5===_0x161521)break;else _0x1c9a2c['push'](_0x1c9a2c['shift']());}catch(_0x32cac0){_0x1c9a2c['push'](_0x1c9a2c['shift']());}}}(a95_0x1754,0x6dd86));function a95_0x424b(_0x44d324,_0x5280ee){_0x44d324=_0x44d324-0x138;const _0x175441=a95_0x1754();let _0x424b29=_0x175441[_0x44d324];return _0x424b29;}import{getEnv,isProduction}from'../constant/env.js';function a95_0x1754(){const _0x313469=['runtime','production','46546UEKYGa','4583176Wendql','5121516XOxUjd','https://kb-service-daily.lovrabet.com','7pdveTG','Configure\x20an\x20explicit\x20kbSearchDomain\x20for\x20an\x20independent\x20deployment.','region','runtimeDomain','kbSearchDomain','222518uACScA','kbDomain','validation','api','Knowledge\x20search\x20is\x20not\x20registered\x20for\x20region\x20\x22','1177158SYjESq','skill','user','4803390VcFWET','280CGJiIV','regionDomains','53364MVZRTs','skillDomain'];a95_0x1754=function(){return _0x313469;};return a95_0x1754();}import{PRODUCT_CONFIG}from'../constant/product.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{CliErrors}from'../errors.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customKbSearchDomain,activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x24cc26){const _0x57391a=a95_0x424b;customApiDomain=_0x24cc26?.['apiDomain'],customUserDomain=_0x24cc26?.['userDomain'],customRuntimeDomain=_0x24cc26?.[_0x57391a(0x148)],customSkillDomain=_0x24cc26?.[_0x57391a(0x13e)],customKbDomain=_0x24cc26?.[_0x57391a(0x14b)],customKbSearchDomain=_0x24cc26?.[_0x57391a(0x149)],activeRegion=_0x24cc26?.[_0x57391a(0x147)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>PRODUCT_CONFIG[a95_0x3f7bbd(0x13c)][activeRegion][isProduction(getEnv())?a95_0x3f7bbd(0x140):'nonProduction'];export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a95_0x3f7bbd(0x139)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a95_0x3f7bbd(0x14d)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a95_0x3f7bbd(0x13f)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a95_0x3f7bbd(0x138)];export const getKbDomain=()=>customKbDomain||getActiveRegionDomains()['kb'];export function getKbSearchDomain(){const _0x450a08=a95_0x3f7bbd;if(customKbSearchDomain)return customKbSearchDomain;if(activeRegion==='cn')return isProduction(getEnv())?'https://kb-service.lovrabet.com':_0x450a08(0x144);throw CliErrors[_0x450a08(0x14c)](_0x450a08(0x14e)+activeRegion+'\x22.',_0x450a08(0x146));}
1
+ const a95_0x4639b3=a95_0x9418;(function(_0x13e0c5,_0xe52f4b){const _0x4e9986=a95_0x9418,_0x4c81b7=_0x13e0c5();while(!![]){try{const _0x54cf77=parseInt(_0x4e9986(0x79))/0x1*(parseInt(_0x4e9986(0x64))/0x2)+parseInt(_0x4e9986(0x75))/0x3*(parseInt(_0x4e9986(0x72))/0x4)+-parseInt(_0x4e9986(0x6a))/0x5+-parseInt(_0x4e9986(0x6c))/0x6*(parseInt(_0x4e9986(0x66))/0x7)+-parseInt(_0x4e9986(0x65))/0x8+parseInt(_0x4e9986(0x67))/0x9+-parseInt(_0x4e9986(0x70))/0xa*(-parseInt(_0x4e9986(0x76))/0xb);if(_0x54cf77===_0xe52f4b)break;else _0x4c81b7['push'](_0x4c81b7['shift']());}catch(_0x19e87c){_0x4c81b7['push'](_0x4c81b7['shift']());}}}(a95_0x2fe0,0xdf1cc));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x6dbc56){const _0x3e702a=a95_0x9418;customApiDomain=_0x6dbc56?.[_0x3e702a(0x6b)],customUserDomain=_0x6dbc56?.[_0x3e702a(0x74)],customRuntimeDomain=_0x6dbc56?.['runtimeDomain'],customSkillDomain=_0x6dbc56?.[_0x3e702a(0x6d)],customKbDomain=_0x6dbc56?.['kbDomain'],activeRegion=_0x6dbc56?.[_0x3e702a(0x71)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>PRODUCT_CONFIG[a95_0x4639b3(0x73)][activeRegion][isProduction(getEnv())?a95_0x4639b3(0x69):a95_0x4639b3(0x77)];export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a95_0x4639b3(0x68)];function a95_0x2fe0(){const _0x705846=['apiDomain','8510118UujfTT','skillDomain','skill','api','21600790qSgsSc','region','4kgkPTY','regionDomains','userDomain','4916541AzRBtw','11TRdneP','nonProduction','runtime','2KIeAdz','94936asbeNA','8250904qPYYOI','7hUHCuq','3410667moIfLO','user','production','4546205Ctfioh'];a95_0x2fe0=function(){return _0x705846;};return a95_0x2fe0();}export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a95_0x4639b3(0x6f)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a95_0x4639b3(0x78)];function a95_0x9418(_0x3824e1,_0x8ea6a5){_0x3824e1=_0x3824e1-0x64;const _0x2fe036=a95_0x2fe0();let _0x94186b=_0x2fe036[_0x3824e1];return _0x94186b;}export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a95_0x4639b3(0x6e)];export const getKbDomain=()=>customKbDomain||getActiveRegionDomains()['kb'];
@@ -1 +1 @@
1
- const a96_0x350c7c=a96_0x227f;(function(_0x18e23b,_0x587369){const _0x2cd736=a96_0x227f,_0x4028b0=_0x18e23b();while(!![]){try{const _0x435b07=parseInt(_0x2cd736(0x115))/0x1+parseInt(_0x2cd736(0x10c))/0x2+parseInt(_0x2cd736(0x113))/0x3*(-parseInt(_0x2cd736(0x111))/0x4)+-parseInt(_0x2cd736(0x116))/0x5+-parseInt(_0x2cd736(0x10f))/0x6*(parseInt(_0x2cd736(0x10a))/0x7)+parseInt(_0x2cd736(0x112))/0x8+parseInt(_0x2cd736(0x10e))/0x9;if(_0x435b07===_0x587369)break;else _0x4028b0['push'](_0x4028b0['shift']());}catch(_0x4c346e){_0x4028b0['push'](_0x4028b0['shift']());}}}(a96_0x39c2,0x857a8));function a96_0x227f(_0x5a89b7,_0x32853c){_0x5a89b7=_0x5a89b7-0x10a;const _0x39c264=a96_0x39c2();let _0x227ff4=_0x39c264[_0x5a89b7];return _0x227ff4;}import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a96_0x350c7c(0x10d),a96_0x350c7c(0x10b),a96_0x350c7c(0x114)];export function normalizeEnv(_0x298511){const _0x50e253=a96_0x350c7c;return _0x298511===_0x50e253(0x110)?_0x50e253(0x10d):_0x298511;}function a96_0x39c2(){const _0x5ea80c=['793112RTXcqa','767523UjKOYD','daily','246448jQxzGr','1725865PHSUyH','7nyfxuy','development','364596NkZtul','production','12766320ytzCgL','1721646ympOsh','online','12EsMCED'];a96_0x39c2=function(){return _0x5ea80c;};return a96_0x39c2();}export function isProduction(_0x759077){const _0x1cef77=a96_0x350c7c;return normalizeEnv(_0x759077)===_0x1cef77(0x10d);}export function isDaily(_0x468f88){return normalizeEnv(_0x468f88)==='daily';}export function isDev(_0x3441ef){const _0x5e5e97=a96_0x350c7c,_0x518a2=normalizeEnv(_0x3441ef);return _0x518a2===_0x5e5e97(0x10b)||_0x518a2==='dev';}let env=normalizeEnv(productEnv('ENV')||a96_0x350c7c(0x10d));export function getEnv(){return env;}export function initEnv(_0x4822da){env=normalizeEnv(_0x4822da);}
1
+ const a96_0x1d0b2a=a96_0xa2a5;(function(_0x11fd55,_0x11c9c5){const _0x273b0f=a96_0xa2a5,_0x2f8152=_0x11fd55();while(!![]){try{const _0x5e3358=-parseInt(_0x273b0f(0x16b))/0x1+parseInt(_0x273b0f(0x16c))/0x2*(parseInt(_0x273b0f(0x16d))/0x3)+parseInt(_0x273b0f(0x170))/0x4*(-parseInt(_0x273b0f(0x175))/0x5)+parseInt(_0x273b0f(0x16a))/0x6+-parseInt(_0x273b0f(0x167))/0x7+parseInt(_0x273b0f(0x16f))/0x8*(parseInt(_0x273b0f(0x168))/0x9)+parseInt(_0x273b0f(0x173))/0xa;if(_0x5e3358===_0x11c9c5)break;else _0x2f8152['push'](_0x2f8152['shift']());}catch(_0x5f18f3){_0x2f8152['push'](_0x2f8152['shift']());}}}(a96_0xa98d,0x74160));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a96_0x1d0b2a(0x16e),'development',a96_0x1d0b2a(0x171)];export function normalizeEnv(_0x14bc2d){return _0x14bc2d==='online'?'production':_0x14bc2d;}export function isProduction(_0x5f0c83){return normalizeEnv(_0x5f0c83)==='production';}export function isDaily(_0x4e28d3){return normalizeEnv(_0x4e28d3)==='daily';}function a96_0xa2a5(_0x11a8f8,_0x418520){_0x11a8f8=_0x11a8f8-0x167;const _0xa98d71=a96_0xa98d();let _0xa2a524=_0xa98d71[_0x11a8f8];return _0xa2a524;}export function isDev(_0x2dabd2){const _0x2d7d0a=a96_0x1d0b2a,_0x159720=normalizeEnv(_0x2dabd2);return _0x159720===_0x2d7d0a(0x174)||_0x159720===_0x2d7d0a(0x169);}function a96_0xa98d(){const _0x3804c2=['7938190kCscQz','development','15wAiJWV','6158215YTqrxS','1449YUsdYJ','dev','5258448OhIMAT','212417GBJesD','9488OeXaBx','372jhJKTV','production','1432WjziPv','959536uMgCZy','daily','ENV'];a96_0xa98d=function(){return _0x3804c2;};return a96_0xa98d();}let env=normalizeEnv(productEnv(a96_0x1d0b2a(0x172))||a96_0x1d0b2a(0x16e));export function getEnv(){return env;}export function initEnv(_0x8a6c91){env=normalizeEnv(_0x8a6c91);}