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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) 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 +6 -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.d.ts +0 -16
  109. package/lib/core/api-client.js +1 -1
  110. package/lib/core/db-resolver.js +1 -1
  111. package/lib/core/kb-search-client.d.ts +30 -0
  112. package/lib/core/kb-search-client.js +1 -0
  113. package/lib/core/sdk-client.js +1 -1
  114. package/lib/errors.js +1 -1
  115. package/lib/framework/build-all-flags.js +1 -1
  116. package/lib/framework/dryrun.js +1 -1
  117. package/lib/framework/flags.js +1 -1
  118. package/lib/framework/help.js +1 -1
  119. package/lib/framework/index.js +1 -1
  120. package/lib/framework/output.js +1 -1
  121. package/lib/framework/preparse.js +1 -1
  122. package/lib/framework/rate-limit.js +1 -1
  123. package/lib/framework/raw-flags.js +1 -1
  124. package/lib/framework/response.js +1 -1
  125. package/lib/framework/runner-confirmation.js +1 -1
  126. package/lib/framework/runner-error.js +1 -1
  127. package/lib/framework/runner.js +1 -1
  128. package/lib/framework/schema-export.js +1 -1
  129. package/lib/framework/service-order.js +1 -1
  130. package/lib/framework/types.d.ts +2 -0
  131. package/lib/framework/types.js +1 -1
  132. package/lib/generated/build-info.d.ts +4 -4
  133. package/lib/generated/build-info.js +1 -1
  134. package/lib/help.js +1 -1
  135. package/lib/postinstall.js +1 -1
  136. package/lib/runtime/confirmation.js +1 -1
  137. package/lib/runtime/event.js +1 -1
  138. package/lib/runtime/index.js +1 -1
  139. package/lib/runtime/queue.js +1 -1
  140. package/lib/runtime/resolve.js +1 -1
  141. package/lib/skills/builtin-skill.js +1 -1
  142. package/lib/skills/npx-skills-add.js +1 -1
  143. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  144. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  145. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  146. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  147. package/lib/skills/runtime-skill-sync/links.js +1 -1
  148. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  149. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  150. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  151. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  152. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  153. package/lib/skills/runtime-skill-sync/push.js +1 -1
  154. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  155. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  156. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  157. package/lib/skills/runtime-skill-sync.js +1 -1
  158. package/lib/skills/skill-presence.js +1 -1
  159. package/lib/utils/access-key-redaction.js +1 -1
  160. package/lib/utils/apply-jq-filter.js +1 -1
  161. package/lib/utils/cli-version-check.js +1 -1
  162. package/lib/utils/cli-version-policy.js +1 -1
  163. package/lib/utils/logger.js +1 -1
  164. package/lib/utils/lossless-json.js +1 -1
  165. package/lib/utils/params.js +1 -1
  166. package/lib/utils/platform.js +1 -1
  167. package/lib/utils/update-notice.js +1 -1
  168. package/lib/utils/version.js +1 -1
  169. package/lib/utils/write-cli-side-channel.js +1 -1
  170. package/package.json +1 -1
  171. package/skills/lovrabet/SKILL.md +3 -2
  172. package/skills/lovrabet/guides/sql-and-bff-workflow.md +1 -1
  173. package/skills/lovrabet/references/lovrabet-config-commands.md +7 -6
  174. package/skills/lovrabet/references/lovrabet-config.md +9 -8
  175. package/skills/lovrabet/references/lovrabet-doctor.md +2 -0
  176. package/skills/lovrabet/references/lovrabet-kb-workflow.md +3 -1
  177. package/skills/lovrabet/references/lovrabet-personal-bff-workflow.md +32 -0
  178. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a81_0x469af6=a81_0x1268;(function(_0x10372c,_0x47eda7){const _0x5b62ed=a81_0x1268,_0x34d844=_0x10372c();while(!![]){try{const _0x5933fd=parseInt(_0x5b62ed(0x125))/0x1+-parseInt(_0x5b62ed(0x12a))/0x2+parseInt(_0x5b62ed(0x11d))/0x3+parseInt(_0x5b62ed(0x11e))/0x4+-parseInt(_0x5b62ed(0x122))/0x5+-parseInt(_0x5b62ed(0x12c))/0x6+-parseInt(_0x5b62ed(0x123))/0x7;if(_0x5933fd===_0x47eda7)break;else _0x34d844['push'](_0x34d844['shift']());}catch(_0x2b5314){_0x34d844['push'](_0x34d844['shift']());}}}(a81_0x2ef0,0xe8f8d));import{getSqlQueryInfo}from'../../core/api-client.js';function a81_0x2ef0(){const _0x5b7b52=['sqlName','sqlContent','detail','775644qSTtsy','sql','1949580cYNFAv','bool','3913503MLfSAt','7403832ffFfcg','appCode','str','dbId','6201040gRcTyJ','14204596OBYURl','read','1780982CxmzAx','sqlCode'];a81_0x2ef0=function(){return _0x5b7b52;};return a81_0x2ef0();}import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a81_0x1268(_0x5af885,_0x196c7c){_0x5af885=_0x5af885-0x11d;const _0x2ef0f8=a81_0x2ef0();let _0x126834=_0x2ef0f8[_0x5af885];return _0x126834;}export const sqlDetail={'service':a81_0x469af6(0x12b),'command':a81_0x469af6(0x129),'description':'Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','risk':a81_0x469af6(0x124),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x55cba6){const _0x3cbe99=a81_0x469af6,_0x38d7d3=await getSqlQueryInfo(_0x55cba6[_0x3cbe99(0x11f)],_0x55cba6[_0x3cbe99(0x120)]('sqlcode')),_0x4c8d3d=_0x55cba6[_0x3cbe99(0x12d)]('verbose');if(_0x4c8d3d)return{'ok':!![],'data':_0x38d7d3};const _0xad7c38=_0x38d7d3[_0x3cbe99(0x121)]?await getDbName(_0x55cba6['appCode'],_0x38d7d3['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x38d7d3[_0x3cbe99(0x126)],'sqlName':_0x38d7d3[_0x3cbe99(0x127)],'db':_0xad7c38?_0xad7c38+'\x20('+_0x38d7d3[_0x3cbe99(0x121)]+')':_0x38d7d3[_0x3cbe99(0x121)]??'','sqlContent':_0x38d7d3[_0x3cbe99(0x128)]??''}};}};
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 +1 @@
1
- const a82_0x2525d3=a82_0x1879;(function(_0x222c60,_0xd97d89){const _0x15b24c=a82_0x1879,_0x242227=_0x222c60();while(!![]){try{const _0xd69a7c=parseInt(_0x15b24c(0x8a))/0x1+-parseInt(_0x15b24c(0x80))/0x2*(-parseInt(_0x15b24c(0x82))/0x3)+-parseInt(_0x15b24c(0x79))/0x4*(-parseInt(_0x15b24c(0x8c))/0x5)+parseInt(_0x15b24c(0x7a))/0x6+-parseInt(_0x15b24c(0x77))/0x7*(-parseInt(_0x15b24c(0x85))/0x8)+parseInt(_0x15b24c(0x87))/0x9+-parseInt(_0x15b24c(0x89))/0xa*(parseInt(_0x15b24c(0x8d))/0xb);if(_0xd69a7c===_0xd97d89)break;else _0x242227['push'](_0x242227['shift']());}catch(_0x212ba6){_0x242227['push'](_0x242227['shift']());}}}(a82_0x2e35,0x5c9c5));function a82_0x1879(_0x4652fd,_0x32f0e9){_0x4652fd=_0x4652fd-0x77;const _0x2e3533=a82_0x2e35();let _0x187982=_0x2e3533[_0x4652fd];return _0x187982;}function a82_0x2e35(){const _0x58e2f7=['execResult','str','execSuccess','read','length','2xwkGns','execError','1666533THTaQT','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','Returned\x20','136oPPNZz','exec','2915460tIGMyU','sql','19560GoCeuI','546382KBazCJ','now','5fkkYaf','8085JVefXL','66878JxJvAx','SQL\x20execution\x20failed','754288dPAeUk','241020awbyTx'];a82_0x2e35=function(){return _0x58e2f7;};return a82_0x2e35();}import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a82_0x2525d3(0x88),'command':a82_0x2525d3(0x86),'description':a82_0x2525d3(0x83),'risk':a82_0x2525d3(0x7e),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x236252){const _0x121561=a82_0x2525d3,_0x1b1f32=parseJsonParams(_0x236252['str']('params')),_0x22f9a4=Date[_0x121561(0x8b)](),_0xd6390c=await executeSdkSql(_0x236252[_0x121561(0x7c)]('sqlcode'),_0x1b1f32),_0x1d820f=Date[_0x121561(0x8b)]()-_0x22f9a4,_0x5d3cdd=_0xd6390c?.[_0x121561(0x7b)]??_0xd6390c,_0x27c7f3=_0xd6390c?.[_0x121561(0x7d)]??!![];if(!_0x27c7f3)return{'ok':![],'data':{'error':_0xd6390c?.[_0x121561(0x81)]||_0x121561(0x78),'elapsed':_0x1d820f},'message':_0x121561(0x78)};const _0x430e03=Array['isArray'](_0x5d3cdd)?_0x5d3cdd:[];return{'ok':!![],'data':{'rows':_0x430e03,'rowCount':_0x430e03[_0x121561(0x7f)],'elapsed':_0x1d820f},'message':_0x121561(0x84)+_0x430e03[_0x121561(0x7f)]+'\x20row(s)\x20in\x20'+_0x1d820f+'ms'};}};
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 +1 @@
1
- (function(_0x5c084d,_0x4c9675){const _0x2d3b36=a83_0x45dd,_0x10eb35=_0x5c084d();while(!![]){try{const _0x44af79=parseInt(_0x2d3b36(0xa9))/0x1+-parseInt(_0x2d3b36(0xa0))/0x2*(-parseInt(_0x2d3b36(0xa2))/0x3)+-parseInt(_0x2d3b36(0xa3))/0x4+parseInt(_0x2d3b36(0xa7))/0x5*(parseInt(_0x2d3b36(0xa5))/0x6)+parseInt(_0x2d3b36(0xa1))/0x7+parseInt(_0x2d3b36(0xa4))/0x8+parseInt(_0x2d3b36(0xa8))/0x9*(parseInt(_0x2d3b36(0xa6))/0xa);if(_0x44af79===_0x4c9675)break;else _0x10eb35['push'](_0x10eb35['shift']());}catch(_0x4a2127){_0x10eb35['push'](_0x10eb35['shift']());}}}(a83_0x315f,0x295bd));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a83_0x45dd(_0x1ebc82,_0x5494e4){_0x1ebc82=_0x1ebc82-0xa0;const _0x315f53=a83_0x315f();let _0x45dd77=_0x315f53[_0x1ebc82];return _0x45dd77;}export const sqlDefinitions=[sqlDetail,sqlExec];function a83_0x315f(){const _0x2777ee=['62784IrRDZU','1020864dSOZYx','258448ZcziCb','5826fkwBSd','291880YSTiPR','1055dyixxS','27TGSnuU','19806XANPiN','6mtsYsc','120960ysiNmV'];a83_0x315f=function(){return _0x2777ee;};return a83_0x315f();}
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 +1 @@
1
- const a84_0x1daedc=a84_0x4ee6;(function(_0x52cf2d,_0x13f684){const _0x14cd12=a84_0x4ee6,_0x2e6085=_0x52cf2d();while(!![]){try{const _0x39641f=-parseInt(_0x14cd12(0x12f))/0x1+parseInt(_0x14cd12(0x119))/0x2*(-parseInt(_0x14cd12(0x107))/0x3)+-parseInt(_0x14cd12(0x116))/0x4+-parseInt(_0x14cd12(0xe9))/0x5*(-parseInt(_0x14cd12(0x112))/0x6)+-parseInt(_0x14cd12(0xfb))/0x7+-parseInt(_0x14cd12(0x132))/0x8+parseInt(_0x14cd12(0xf7))/0x9;if(_0x39641f===_0x13f684)break;else _0x2e6085['push'](_0x2e6085['shift']());}catch(_0x3f3abc){_0x2e6085['push'](_0x2e6085['shift']());}}}(a84_0x2d6e,0xa20bd));import{spawnSync}from'node:child_process';import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import a84_0x2a3050 from'semver';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a84_0x4ee6(_0x1fecd9,_0x1aa302){_0x1fecd9=_0x1fecd9-0xda;const _0x2d6eeb=a84_0x2d6e();let _0x4ee61f=_0x2d6eeb[_0x1fecd9];return _0x4ee61f;}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_0x1daedc(0xfe),'type':'boolean','description':a84_0x1daedc(0x131),'default':![]},{'name':'beta','type':a84_0x1daedc(0xe4),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':a84_0x1daedc(0x130),'type':a84_0x1daedc(0x10b),'description':'Install\x20a\x20specific\x20CLI\x20version'}];function getRequestedVersion(_0x2a6b10){const _0x2932a0=a84_0x1daedc,_0x32096a=_0x2a6b10[_0x2932a0(0xdf)](_0x2932a0(0x130))[_0x2932a0(0xff)]();if(_0x32096a)return _0x32096a;return String(_0x2a6b10[_0x2932a0(0xfc)]?.[0x0]??'')[_0x2932a0(0xff)]();}async function validateUpdateFlags(_0x48c2bc){const _0x1d971e=a84_0x1daedc,_0x1f06e8=getRequestedVersion(_0x48c2bc),_0x1aecc8=[_0x48c2bc[_0x1d971e(0xeb)](_0x1d971e(0xfe))?_0x1d971e(0xfe):'',_0x48c2bc[_0x1d971e(0xeb)](_0x1d971e(0xde))?_0x1d971e(0xde):'',_0x1f06e8?_0x1d971e(0x130):''][_0x1d971e(0x10d)](Boolean);if(_0x1aecc8[_0x1d971e(0x129)]>0x1)throw CliErrors[_0x1d971e(0x106)]('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.');if(_0x1f06e8&&!a84_0x2a3050['valid'](_0x1f06e8))throw CliErrors[_0x1d971e(0x106)](_0x1d971e(0xe6)+_0x1f06e8,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x26751f=a84_0x1daedc;try{const _0x1cb7ce=NPM_REGISTRY_BASE_URL+_0x26751f(0x118)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x2b0904=await fetch(_0x1cb7ce,{'signal':AbortSignal[_0x26751f(0x115)](0x2710)});if(!_0x2b0904['ok'])return null;const _0x2221b5=await _0x2b0904[_0x26751f(0xdd)]();if(!_0x2221b5||typeof _0x2221b5!==_0x26751f(0xee))return null;return Object['fromEntries'](Object[_0x26751f(0x11d)](_0x2221b5)[_0x26751f(0x10d)](([,_0x2fe360])=>typeof _0x2fe360===_0x26751f(0x10b)&&_0x2fe360[_0x26751f(0xff)]())[_0x26751f(0x108)](([_0x682e0f,_0x2ccc7e])=>[_0x682e0f,String(_0x2ccc7e)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0x247472){const _0x1bf9b9=a84_0x1daedc,_0x4a4c9a=getRequestedVersion(_0x247472);if(_0x4a4c9a)return{'version':_0x4a4c9a,'source':_0x1bf9b9(0x130)};const _0x27fbfb=_0x247472[_0x1bf9b9(0xeb)](_0x1bf9b9(0xde))?_0x1bf9b9(0xde):_0x1bf9b9(0xfe),_0x1b77ba=await fetchNpmDistTags(),_0x17ff86=_0x1b77ba?.[_0x27fbfb];if(!_0x17ff86)return null;return{'version':_0x17ff86,'source':_0x27fbfb};}function shouldInstallTarget(_0x127ced,_0x2c282d){const _0x323f0a=a84_0x1daedc;if(_0x2c282d['source']===_0x323f0a(0x130)||_0x2c282d[_0x323f0a(0xf3)]===_0x323f0a(0xde))return!a84_0x2a3050['eq'](_0x127ced,_0x2c282d[_0x323f0a(0x130)]);return a84_0x2a3050['lt'](_0x127ced,_0x2c282d[_0x323f0a(0x130)]);}export function installCliPackage(_0x48035d,_0x1df358,_0x180b7f=resolveCurrentCliNpmPrefix()){const _0x1fd189=a84_0x1daedc,_0x1fdc86=resolveNpmBin(_0x1fd189(0x11c)),_0x1aa506=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x48035d,_0x3f2b42=[_0x1fd189(0x11e),'-g',_0x1aa506],_0xb35445=runNpmInstall(_0x1fdc86,_0x3f2b42,_0x1df358);if(_0xb35445['ok']||!isNpmPrefixPermissionError(_0xb35445['error']))return _0xb35445;if(!_0x180b7f||_0xb35445[_0x1fd189(0x100)]?.[_0x1fd189(0xe0)]()['includes'](_0x180b7f[_0x1fd189(0xe0)]()))return _0xb35445;return console[_0x1fd189(0x124)](_0x1fd189(0xf0)+_0x180b7f),runNpmInstall(_0x1fdc86,[..._0x3f2b42,_0x1fd189(0xdb),_0x180b7f],_0x1df358);}export function resolveCurrentCliNpmPrefix(_0x181c81=fileURLToPath(import.meta.url),_0x2bd8de=process[a84_0x1daedc(0x11a)]){const _0x122354=a84_0x1daedc,_0x3bb4f5=_0x2bd8de===_0x122354(0xea)?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x5271a6=_0x3bb4f5['dirname'](_0x3bb4f5['dirname'](_0x3bb4f5[_0x122354(0xdc)](_0x181c81))),_0xc1fb40=_0x2bd8de===_0x122354(0xea)?_0x122354(0x122):'@lovrabet/lovrabet-cli';let _0x106911=_0x3bb4f5[_0x122354(0xdc)](_0x5271a6);while(!![]){if(_0x3bb4f5[_0x122354(0xef)](_0x106911)===_0x122354(0x11f)&&_0x3bb4f5['relative'](_0x106911,_0x5271a6)===_0xc1fb40){const _0x4ce2c2=_0x3bb4f5[_0x122354(0xdc)](_0x106911);return _0x3bb4f5[_0x122354(0xef)](_0x4ce2c2)==='lib'?_0x3bb4f5[_0x122354(0xdc)](_0x4ce2c2):_0x4ce2c2;}const _0x146508=_0x3bb4f5[_0x122354(0xdc)](_0x106911);if(_0x146508===_0x106911)return null;_0x106911=_0x146508;}}function runNpmInstall(_0x3684f1,_0x34197d,_0x4bb2a7){const _0x403e17=a84_0x1daedc;console[_0x403e17(0xf8)]('*\x20'+[_0x3684f1,..._0x34197d]['join']('\x20'));const _0x4007dd=spawnSync(_0x3684f1,_0x34197d,{'cwd':process[_0x403e17(0xfa)](),'stdio':_0x403e17(0x111),'env':process.env,'shell':![]}),_0x2b0255=_0x4007dd[_0x403e17(0x117)]?_0x4007dd[_0x403e17(0x117)][_0x403e17(0x12a)]()[_0x403e17(0xff)]():'',_0x2e9912=_0x4007dd[_0x403e17(0x123)]?_0x4007dd[_0x403e17(0x123)][_0x403e17(0x12a)]()['trim']():'';if(!_0x4bb2a7){if(_0x2e9912)process[_0x403e17(0x123)][_0x403e17(0xe8)](_0x2e9912+'\x0a');if(_0x2b0255)process[_0x403e17(0x117)][_0x403e17(0xe8)](_0x2b0255+'\x0a');}if(_0x4007dd[_0x403e17(0xe2)]===0x0)return{'ok':!![]};const _0x4890ed=_0x4007dd[_0x403e17(0x100)]?.[_0x403e17(0x12c)]||_0x2b0255||_0x2e9912||_0x403e17(0x114)+(_0x4007dd[_0x403e17(0xe2)]??'unknown');return{'ok':![],'error':_0x4890ed};}function isNpmPrefixPermissionError(_0x3e581e){return Boolean(_0x3e581e&&/\b(?:EACCES|EPERM)\b/['test'](_0x3e581e));}function repairCurrentBuiltinSkill(_0x50ebbd){const _0x3e1466=a84_0x1daedc;console[_0x3e1466(0xf8)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x2faec4=installBuiltinSkill({'stdio':_0x50ebbd?_0x3e1466(0x111):_0x3e1466(0x120)});if(_0x2faec4['ok'])return console['log'](_0x3e1466(0x105)+_0x2faec4['skillVersion']+_0x3e1466(0x133)),!![];return console['warn'](_0x3e1466(0xe3)+(_0x2faec4[_0x3e1466(0x10f)]||_0x3e1466(0x12e))+']:\x20'+(_0x2faec4[_0x3e1466(0x100)]||_0x3e1466(0xf1))),console[_0x3e1466(0xf8)]('\x20\x20Run\x20manually:\x20'+_0x2faec4[_0x3e1466(0x10a)]),![];}function a84_0x2d6e(){const _0x163732=['Already\x20on\x20requested\x20version\x20(v','length','toString','Already\x20up\x20to\x20date\x20(v','message','Version\x20comparison\x20failed:\x20','INSTALL_FAILED','590572ijpLTs','version','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','5508200zYpAqx','\x20is\x20current.','Update\x20the\x20','--prefix','dirname','json','beta','str','toLowerCase','\x20\x20Run\x20manually:\x20','status','\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','boolean','\x20CLI\x20from\x20npm','Invalid\x20version:\x20','Updated\x20to\x20v','write','15Tkzcds','win32','bool','find','reason','object','basename','Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20','unknown','Unable\x20to\x20resolve\x20','source','\x20->\x20','CLI\x20is\x20up\x20to\x20date,\x20but\x20Built-in\x20Skill\x20repair\x20failed.',',\x20but\x20Built-in\x20Skill\x20verification\x20failed.','34663968JcFRPF','log','Checking\x20CLI\x20Built-in\x20Skill...','cwd','4531660GasYSp','args','Updating\x20','latest','trim','error','\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20','state','read','valid','\x20\x20CLI\x20Built-in\x20Skill\x20','validation','219021Tgpjwh','map','run','repairCommand','string','CLI\x20updated\x20to\x20v','filter','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','code','update','pipe','535476DHVgYV','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','exit\x20','timeout','5240204AQJTFY','stderr','/-/package/','6MkVOzn','platform','Current\x20version:\x20','npm','entries','install','node_modules','inherit','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','@lovrabet\x5clovrabet-cli','stdout','warn','nonInteractive','Update\x20failed:\x20','Checking\x20npm\x20dist-tags...'];a84_0x2d6e=function(){return _0x163732;};return a84_0x2d6e();}function verifyUpdatedBuiltinSkill(_0x327c6b){const _0x3d82ab=a84_0x1daedc;console['log'](_0x3d82ab(0xf9));const _0x39db8e=inspectInstalledBuiltinSkillVersion(_0x327c6b);if(_0x39db8e[_0x3d82ab(0x102)]==='current')return console[_0x3d82ab(0xf8)]('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x327c6b+_0x3d82ab(0x133)),!![];console[_0x3d82ab(0x124)](_0x3d82ab(0x101)+_0x39db8e[_0x3d82ab(0x102)]+'.');if(_0x39db8e[_0x3d82ab(0xed)])console[_0x3d82ab(0x124)]('\x20\x20'+_0x39db8e[_0x3d82ab(0xed)]);return console['log'](_0x3d82ab(0xe1)+_0x39db8e[_0x3d82ab(0x10a)]),![];}async function execute(_0x3779e2){const _0xa41b45=a84_0x1daedc;await validateUpdateFlags(_0x3779e2);const _0x2171c0=getCliVersion();console[_0xa41b45(0xf8)](_0xa41b45(0x11b)+_0x2171c0),console['log'](_0xa41b45(0x127));const _0x4b277a=await resolveTargetVersion(_0x3779e2);if(!_0x4b277a){const _0x41d198=_0x3779e2[_0xa41b45(0xeb)](_0xa41b45(0xde))?_0xa41b45(0xde):_0xa41b45(0xfe),_0x28048a=_0xa41b45(0xf2)+_0x41d198+'\x20version\x20from\x20npm.';return console[_0xa41b45(0x124)](_0x28048a),console[_0xa41b45(0xf8)](_0xa41b45(0x121)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x41d198),{'ok':![],'message':_0x28048a};}const _0x1a893f=[_0x2171c0,_0x4b277a['version']][_0xa41b45(0xec)](_0x13fd4b=>!a84_0x2a3050[_0xa41b45(0x104)](_0x13fd4b));if(_0x1a893f){const _0x2645c7=_0xa41b45(0x12d)+_0x1a893f+'.';return console['warn'](_0x2645c7),{'ok':![],'message':_0x2645c7};}if(!shouldInstallTarget(_0x2171c0,_0x4b277a)){const _0x568c51=_0x4b277a[_0xa41b45(0xf3)]==='version'?_0xa41b45(0x128)+_0x4b277a[_0xa41b45(0x130)]+').':_0xa41b45(0x12b)+_0x4b277a[_0xa41b45(0x130)]+').';return console[_0xa41b45(0xf8)](_0x568c51),repairCurrentBuiltinSkill(_0x3779e2[_0xa41b45(0x125)])?{'ok':!![]}:{'ok':![],'message':_0xa41b45(0xf5)};}console[_0xa41b45(0xf8)](_0xa41b45(0xfd)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x2171c0+_0xa41b45(0xf4)+_0x4b277a[_0xa41b45(0x130)]);const _0x1f9873=installCliPackage(_0x4b277a['version'],_0x3779e2['nonInteractive']);if(!_0x1f9873['ok']){const _0x203518=_0xa41b45(0x126)+(_0x1f9873[_0xa41b45(0x100)]||_0xa41b45(0xf1));return console['error'](_0x203518),console[_0xa41b45(0xf8)](_0xa41b45(0x113)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4b277a[_0xa41b45(0x130)]),{'ok':![],'message':_0x203518};}return console[_0xa41b45(0xf8)](_0xa41b45(0xe7)+_0x4b277a['version']+'.'),console[_0xa41b45(0xf8)](_0xa41b45(0x10e)),verifyUpdatedBuiltinSkill(_0x4b277a['version'])?{'ok':!![]}:{'ok':![],'message':_0xa41b45(0x10c)+_0x4b277a[_0xa41b45(0x130)]+_0xa41b45(0xf6)};}export const updateDefinition={'service':a84_0x1daedc(0x110),'command':a84_0x1daedc(0x109),'description':a84_0x1daedc(0xda)+CLI_BIN_NAME+a84_0x1daedc(0xe5),'risk':a84_0x1daedc(0x103),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
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 +1 @@
1
- const a85_0x4c2d62=a85_0x6963;function a85_0xb4b1(){const _0x2121a9=['Pass\x20one\x20of:\x20','string','account-id','13320kQQRDl','validation','trim','str','Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.','write','7UDlerp','(empty)','1pAiPmm','External\x20account\x20ID\x20for\x20the\x20selected\x20provider','includes','--account-id\x20cannot\x20be\x20empty.','148252TsPOXV','dingtalk','505704BFBRYq','1707222RRDYvW','External\x20account\x20provider','4630zpxvlA','108LBeeig','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.','user-account','70995hTeNqB','8355424aOrmnn','Unsupported\x20provider:\x20','toLowerCase','bind','provider','Binds\x20the\x20platform\x20user\x20of\x20the\x20current\x20AccessKey\x20to\x20the\x20given\x20collaboration-provider\x20account.\x20An\x20existing\x20bind\x20for\x20the\x20same\x20provider\x20may\x20be\x20replaced.','join','3831520SLpPim'];a85_0xb4b1=function(){return _0x2121a9;};return a85_0xb4b1();}function a85_0x6963(_0x5eda95,_0x4a41ea){_0x5eda95=_0x5eda95-0x168;const _0xb4b16=a85_0xb4b1();let _0x6963b3=_0xb4b16[_0x5eda95];return _0x6963b3;}(function(_0x4dfb15,_0xd4acab){const _0x45d648=a85_0x6963,_0x370e36=_0x4dfb15();while(!![]){try{const _0x304aae=-parseInt(_0x45d648(0x179))/0x1*(-parseInt(_0x45d648(0x17d))/0x2)+-parseInt(_0x45d648(0x17f))/0x3+parseInt(_0x45d648(0x16d))/0x4+parseInt(_0x45d648(0x186))/0x5*(-parseInt(_0x45d648(0x183))/0x6)+parseInt(_0x45d648(0x177))/0x7*(parseInt(_0x45d648(0x187))/0x8)+parseInt(_0x45d648(0x171))/0x9*(-parseInt(_0x45d648(0x182))/0xa)+-parseInt(_0x45d648(0x180))/0xb;if(_0x304aae===_0xd4acab)break;else _0x370e36['push'](_0x370e36['shift']());}catch(_0x1383d0){_0x370e36['push'](_0x370e36['shift']());}}}(a85_0xb4b1,0xc6342));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING='The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.',SUPPORTED_PROVIDERS=[a85_0x4c2d62(0x17e)];function readBindingInput(_0x125fb1){const _0x1aa814=a85_0x4c2d62,_0x5d12f2=_0x125fb1[_0x1aa814(0x174)](_0x1aa814(0x16a))[_0x1aa814(0x173)]()[_0x1aa814(0x168)]();if(!SUPPORTED_PROVIDERS[_0x1aa814(0x17b)](_0x5d12f2))throw CliErrors['validation'](_0x1aa814(0x188)+(_0x5d12f2||_0x1aa814(0x178))+'.',_0x1aa814(0x16e)+SUPPORTED_PROVIDERS[_0x1aa814(0x16c)](',\x20')+'.');const _0x3a1df3=_0x125fb1[_0x1aa814(0x174)](_0x1aa814(0x170))[_0x1aa814(0x173)]();if(!_0x3a1df3)throw CliErrors[_0x1aa814(0x172)](_0x1aa814(0x17c),_0x1aa814(0x175));return{'provider':_0x5d12f2,'accountId':_0x3a1df3};}function buildBindingData(_0x4e3e8c,_0x4c0879,_0x2a453c){return{'operation':'bind','selector':{'provider':_0x4e3e8c,'accountId':_0x4c0879},'before':null,'after':{'provider':_0x4e3e8c,'accountId':_0x4c0879,'bound':!![]},'dryRun':_0x2a453c,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a85_0x4c2d62(0x185),'command':a85_0x4c2d62(0x169),'description':'Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','risk':a85_0x4c2d62(0x176),'confirmationDescription':a85_0x4c2d62(0x16b),'requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':a85_0x4c2d62(0x16a),'type':a85_0x4c2d62(0x16f),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a85_0x4c2d62(0x181)},{'name':a85_0x4c2d62(0x170),'type':a85_0x4c2d62(0x16f),'required':!![],'description':a85_0x4c2d62(0x17a)}],async 'validate'(_0xbc85cf){readBindingInput(_0xbc85cf);},async 'dryRun'(_0x5adeb7){const {provider:_0x1cdacd,accountId:_0x118567}=readBindingInput(_0x5adeb7);return{...buildBindingData(_0x1cdacd,_0x118567,!![]),'method':'POST','url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x1cdacd,'accountId':_0x118567}};},async 'execute'(_0x57e21f){const _0x46d986=a85_0x4c2d62,{provider:_0x53f794,accountId:_0x122bc2}=readBindingInput(_0x57e21f),_0x42e251=await bindExternalUserAccount(_0x53f794,_0x122bc2);if(_0x42e251!==!![])throw CliErrors['apiError']('External\x20account\x20binding\x20was\x20not\x20confirmed.',_0x46d986(0x184));return{'ok':!![],'data':buildBindingData(_0x53f794,_0x122bc2,![]),'message':'Bound\x20current\x20user\x20to\x20external\x20provider\x20account.'};}};
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 +1 @@
1
- (function(_0x1c4694,_0x5f4fc7){const _0x220286=a86_0x5d81,_0x531011=_0x1c4694();while(!![]){try{const _0x34fc74=-parseInt(_0x220286(0xfb))/0x1*(-parseInt(_0x220286(0x100))/0x2)+parseInt(_0x220286(0xfe))/0x3+-parseInt(_0x220286(0xfc))/0x4+-parseInt(_0x220286(0x102))/0x5*(-parseInt(_0x220286(0x103))/0x6)+parseInt(_0x220286(0xff))/0x7*(-parseInt(_0x220286(0xfa))/0x8)+parseInt(_0x220286(0xfd))/0x9+-parseInt(_0x220286(0x101))/0xa;if(_0x34fc74===_0x5f4fc7)break;else _0x531011['push'](_0x531011['shift']());}catch(_0x58c98d){_0x531011['push'](_0x531011['shift']());}}}(a86_0x38d3,0xd9a6c));function a86_0x5d81(_0x17d19e,_0x1cb5de){_0x17d19e=_0x17d19e-0xfa;const _0x38d363=a86_0x38d3();let _0x5d819a=_0x38d363[_0x17d19e];return _0x5d819a;}import{bindUserAccount}from'../../commands/user-account/bind.js';function a86_0x38d3(){const _0x54974c=['13391QbZqxy','458XgifBP','8344930gUkxVz','24530MYZzNP','492cbRioO','3688kblYGo','2961LYQDOt','2775444SUQTot','15385734PtmRDH','1535580iNJMqt'];a86_0x38d3=function(){return _0x54974c;};return a86_0x38d3();}export const userAccountDefinitions=[bindUserAccount];
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 +1 @@
1
- const a87_0x328a45=a87_0x5301;(function(_0x1ff37e,_0x2290b5){const _0xd1b547=a87_0x5301,_0x216e1b=_0x1ff37e();while(!![]){try{const _0x364de4=-parseInt(_0xd1b547(0x13d))/0x1*(-parseInt(_0xd1b547(0x121))/0x2)+-parseInt(_0xd1b547(0x11b))/0x3+parseInt(_0xd1b547(0x12e))/0x4*(parseInt(_0xd1b547(0x120))/0x5)+parseInt(_0xd1b547(0x12f))/0x6+parseInt(_0xd1b547(0x112))/0x7*(parseInt(_0xd1b547(0x137))/0x8)+parseInt(_0xd1b547(0x111))/0x9+-parseInt(_0xd1b547(0x147))/0xa;if(_0x364de4===_0x2290b5)break;else _0x216e1b['push'](_0x216e1b['shift']());}catch(_0x1e6ab4){_0x216e1b['push'](_0x216e1b['shift']());}}}(a87_0x36dc,0x6ce35));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';function a87_0x5301(_0x31366e,_0x2a8e8a){_0x31366e=_0x31366e-0x10c;const _0x36dc1c=a87_0x36dc();let _0x5301ed=_0x36dc1c[_0x31366e];return _0x5301ed;}function a87_0x36dc(){const _0x343f50=['110QMBQCA','8zGhVHI','shouldWriteEnv','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','join','object','workspace','\x22.\x20Allowed:\x20','accessKey','appcode','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','trim','Run\x20`','Available\x20apps:\x20','34024qBCEfa','2588496rSudSu','appCode','appName','Invalid\x20env\x20\x22','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','string','App\x20\x22','init','56Xmvspg','Workspace\x20app\x20context\x20is\x20not\x20initialized.','\x20workspace\x20','use','authRequired','command','134858wxKshZ','Usage:\x20','write','apps','includes','from','length','app','Workspace\x20app\x20context\x20is\x20already\x20initialized.','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','8309140GXTQcr','map','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','Writes\x20Lovrabet\x20project\x20config\x20in\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet,\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','App\x20code\x20to\x20bind\x20directly','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','workspace\x20','\x0aAccessKey:\x20not\x20written','1802196DyERMe','800926MnLNsn','../../commands/app/remote-source.js','\x0aDefault\x20app:\x20','defaultApp','\x20--appcode\x20<code>\x20[--env\x20daily]','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','str','Target\x20environment','validation','2646693PAjNPS','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','items','env','Use\x20`'];a87_0x36dc=function(){return _0x343f50;};return a87_0x36dc();}import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':'app','type':a87_0x328a45(0x134),'description':a87_0x328a45(0x149)},{'name':'appcode','type':a87_0x328a45(0x134),'description':a87_0x328a45(0x10d)},{'name':a87_0x328a45(0x11e),'type':a87_0x328a45(0x134),'description':a87_0x328a45(0x119),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x4d6094,_0x5bcc63){const _0x40043c=a87_0x328a45,_0x10a7f7=_0x4d6094['str'](_0x40043c(0x144))[_0x40043c(0x12b)](),_0x66fdb8=_0x4d6094[_0x40043c(0x118)](_0x40043c(0x129))['trim'](),_0x52f623=_0x4d6094[_0x40043c(0x118)]('env')[_0x40043c(0x12b)](),_0xc97733=resolveWorkspaceEnv(_0x52f623||_0x4d6094['envName']||DEFAULT_CONFIG_VALUES[_0x40043c(0x11e)]);if(!_0x10a7f7&&!_0x66fdb8)throw CliErrors[_0x40043c(0x11a)]('Missing\x20workspace\x20app\x20selector.',_0x40043c(0x13e)+CLI_BIN_NAME+'\x20workspace\x20'+_0x5bcc63+_0x40043c(0x10e)+CLI_BIN_NAME+'\x20workspace\x20'+_0x5bcc63+_0x40043c(0x116));if(_0x10a7f7&&_0x66fdb8)throw CliErrors[_0x40043c(0x11a)]('Conflicting\x20workspace\x20app\x20selectors.',_0x40043c(0x133));const _0x435473=resolveWriteConfigPath('project'),_0x1a0c9d=readConfigFile(_0x435473);assertWorkspaceCommandState(_0x5bcc63,_0x1a0c9d);const _0x4bd35f=_0x66fdb8||await resolveRemoteAppCode({'command':_0x5bcc63,'appName':_0x10a7f7,'env':_0xc97733,'accessKey':_0x4d6094[_0x40043c(0x128)]});return writeWorkspaceConfig({'command':_0x5bcc63,'appName':_0x10a7f7,'appcode':_0x4bd35f,'env':_0xc97733,'shouldWriteEnv':!!_0x52f623,'accessKey':_0x4d6094[_0x40043c(0x128)]},_0x435473,_0x1a0c9d),{'ok':!![],'data':{'configPath':_0x435473,'app':_0x10a7f7||null,'appcode':_0x4bd35f,'env':_0x52f623?_0xc97733:null,'accessKeyWritten':![],'command':_0x40043c(0x10f)+_0x5bcc63},'message':buildWorkspaceMessage(_0x435473,_0x10a7f7,_0x4bd35f,_0x52f623?_0xc97733:undefined)};}async function resolveRemoteAppCode(_0x489822){const _0x31a6e7=a87_0x328a45;if(!_0x489822['accessKey'])throw CliErrors[_0x31a6e7(0x13b)](_0x31a6e7(0x117)+CLI_BIN_NAME+_0x31a6e7(0x139)+_0x489822[_0x31a6e7(0x13c)]+'.');const {setActiveAK:_0x441b90}=await import('../../core/api-client.js'),{getRemoteAppList:_0x353790}=await import(_0x31a6e7(0x113));_0x441b90(_0x489822[_0x31a6e7(0x128)]);const _0x22ca10=await _0x353790({'env':_0x489822[_0x31a6e7(0x11e)],'accessKey':_0x489822[_0x31a6e7(0x128)],'noCache':![]}),_0x59c8d5=findAppByName(_0x22ca10[_0x31a6e7(0x11d)],_0x489822[_0x31a6e7(0x131)]);if(_0x59c8d5&&!isRuntimeAccessibleApp(_0x59c8d5))throw runtimeInaccessibleAppError(_0x59c8d5,'\x22'+_0x489822[_0x31a6e7(0x131)]+'\x22');const _0x9d3b53=_0x59c8d5?.[_0x31a6e7(0x130)]?.[_0x31a6e7(0x12b)]();if(_0x9d3b53)return _0x9d3b53;const _0x3eaf38=_0x22ca10[_0x31a6e7(0x11d)][_0x31a6e7(0x148)](_0x1fcd44=>_0x1fcd44[_0x31a6e7(0x131)])['filter'](Boolean),_0x1e96d3=_0x3eaf38[_0x31a6e7(0x143)]?_0x31a6e7(0x12d)+Array[_0x31a6e7(0x142)](new Set(_0x3eaf38))[_0x31a6e7(0x124)](',\x20')+'.':_0x31a6e7(0x12c)+CLI_BIN_NAME+_0x31a6e7(0x123);throw CliErrors['validation'](_0x31a6e7(0x135)+_0x489822[_0x31a6e7(0x131)]+'\x22\x20not\x20found.',_0x1e96d3);}function writeWorkspaceConfig(_0x197f7b,_0x1a15ad,_0xf7db2c){const _0x49153f=a87_0x328a45;_0x197f7b[_0x49153f(0x122)]&&(_0xf7db2c[_0x49153f(0x11e)]=_0x197f7b[_0x49153f(0x11e)]);if(_0x197f7b['appName']){const _0x263870=isRecord(_0xf7db2c[_0x49153f(0x140)])?{..._0xf7db2c[_0x49153f(0x140)]}:{},_0x801c41=isRecord(_0x263870[_0x197f7b['appName']])?_0x263870[_0x197f7b[_0x49153f(0x131)]]:{};return _0x263870[_0x197f7b[_0x49153f(0x131)]]={..._0x801c41,'appcode':_0x197f7b[_0x49153f(0x129)]},_0xf7db2c[_0x49153f(0x140)]=_0x263870,_0xf7db2c[_0x49153f(0x115)]=_0x197f7b[_0x49153f(0x131)],delete _0xf7db2c[_0x49153f(0x129)],delete _0xf7db2c[_0x49153f(0x144)],writeAndReturn(_0x1a15ad,_0xf7db2c);}return _0xf7db2c[_0x49153f(0x129)]=_0x197f7b[_0x49153f(0x129)],delete _0xf7db2c['defaultApp'],delete _0xf7db2c[_0x49153f(0x144)],writeAndReturn(_0x1a15ad,_0xf7db2c);}function writeAndReturn(_0x25e34c,_0xf10d15){return writeConfigFile(_0x25e34c,_0xf10d15),_0x25e34c;}function resolveWorkspaceEnv(_0x487cd9){const _0x1b7b3e=a87_0x328a45;if(RUNTIME_ENV_VALUES[_0x1b7b3e(0x141)](_0x487cd9))return _0x487cd9;throw CliErrors[_0x1b7b3e(0x11a)](_0x1b7b3e(0x132)+_0x487cd9+_0x1b7b3e(0x127)+RUNTIME_ENV_VALUES[_0x1b7b3e(0x124)](',\x20'));}function buildWorkspaceMessage(_0x3bf56d,_0x3009ca,_0x5ee713,_0xebf214){const _0x481147=a87_0x328a45,_0x42d6b8=_0x3009ca?_0x3009ca+'\x20('+_0x5ee713+')':_0x5ee713,_0x2a0f00=_0xebf214?'\x0aEnv:\x20'+_0xebf214:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x3bf56d+_0x481147(0x114)+_0x42d6b8+_0x2a0f00+_0x481147(0x110);}function isRecord(_0x3e2f98){const _0x3705ac=a87_0x328a45;return typeof _0x3e2f98===_0x3705ac(0x125)&&_0x3e2f98!==null&&!Array['isArray'](_0x3e2f98);}function hasWorkspaceAppBinding(_0x2b3be3){const _0x23b6fd=a87_0x328a45;if(typeof _0x2b3be3[_0x23b6fd(0x129)]==='string'&&_0x2b3be3['appcode'][_0x23b6fd(0x12b)]()[_0x23b6fd(0x143)]>0x0)return!![];if(typeof _0x2b3be3[_0x23b6fd(0x115)]!=='string'||!_0x2b3be3[_0x23b6fd(0x115)][_0x23b6fd(0x12b)]())return![];if(!isRecord(_0x2b3be3[_0x23b6fd(0x140)]))return![];const _0x2d3255=_0x2b3be3['apps'][_0x2b3be3[_0x23b6fd(0x115)][_0x23b6fd(0x12b)]()];return isRecord(_0x2d3255)&&typeof _0x2d3255[_0x23b6fd(0x129)]===_0x23b6fd(0x134)&&_0x2d3255[_0x23b6fd(0x129)][_0x23b6fd(0x12b)]()[_0x23b6fd(0x143)]>0x0;}function assertWorkspaceCommandState(_0x500360,_0xdb43d8){const _0x4c3d62=a87_0x328a45,_0x19916b=hasWorkspaceAppBinding(_0xdb43d8);if(_0x500360===_0x4c3d62(0x136)&&_0x19916b)throw CliErrors[_0x4c3d62(0x11a)](_0x4c3d62(0x145),_0x4c3d62(0x11f)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`'+CLI_BIN_NAME+_0x4c3d62(0x12a));if(_0x500360===_0x4c3d62(0x13a)&&!_0x19916b)throw CliErrors[_0x4c3d62(0x11a)](_0x4c3d62(0x138),'Run\x20`'+CLI_BIN_NAME+_0x4c3d62(0x146)+CLI_BIN_NAME+_0x4c3d62(0x11c));}function makeWorkspaceCommand(_0x28b6ca){const _0x2c7ede=a87_0x328a45;return{'service':_0x2c7ede(0x126),'command':_0x28b6ca,'description':_0x28b6ca===_0x2c7ede(0x136)?'Initialize\x20app\x20context\x20for\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet':'Change\x20the\x20app\x20context\x20already\x20bound\x20to\x20the\x20current\x20working\x20directory','risk':_0x2c7ede(0x13f),'confirmationDescription':_0x28b6ca===_0x2c7ede(0x136)?_0x2c7ede(0x10c):'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'(_0x9c528f){return executeWorkspaceUse(_0x9c528f,_0x28b6ca);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a87_0x328a45(0x136)),makeWorkspaceCommand(a87_0x328a45(0x13a))];
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,4 +1,4 @@
1
- export declare const DOMAIN_CONFIG_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain"];
1
+ export declare const DOMAIN_CONFIG_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "kbSearchDomain"];
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_0x40df74=a88_0x1df4;(function(_0x4a38db,_0x2c10f7){const _0x95c114=a88_0x1df4,_0xa307d4=_0x4a38db();while(!![]){try{const _0x28487f=parseInt(_0x95c114(0x170))/0x1*(parseInt(_0x95c114(0x168))/0x2)+parseInt(_0x95c114(0x15d))/0x3+-parseInt(_0x95c114(0x188))/0x4*(parseInt(_0x95c114(0x15f))/0x5)+parseInt(_0x95c114(0x180))/0x6+-parseInt(_0x95c114(0x174))/0x7+parseInt(_0x95c114(0x184))/0x8*(-parseInt(_0x95c114(0x166))/0x9)+parseInt(_0x95c114(0x169))/0xa;if(_0x28487f===_0x2c10f7)break;else _0xa307d4['push'](_0xa307d4['shift']());}catch(_0x1088f0){_0xa307d4['push'](_0xa307d4['shift']());}}}(a88_0xb018,0xc4212));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';function a88_0x1df4(_0xd9144b,_0x441f4c){_0xd9144b=_0xd9144b-0x15d;const _0xb018ea=a88_0xb018();let _0x1df4f1=_0xb018ea[_0xd9144b];return _0x1df4f1;}function a88_0xb018(){const _0x2e19d7=['skillDomain','45JKtJoH','validation','4diTzrx','35455380TrLCcV','userDomain','filter','password','agentDomain','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','keys','184301byPgkQ','apiDomain','domain-config','kb-domain','7485520uBzbPU','trim','Invalid\x20',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','includes','join','object','origin','utf8','length','Invalid\x20domain\x20config\x20JSON:\x20','4627950vgXSso','kbDomain','protocol',':\x20\x22','2447544fsYtfr','parse','hash','runtimeDomain','5137600wFkOsH','Unsupported\x20domain\x20config\x20field(s):\x20','Domain\x20config\x20file\x20not\x20found:\x20','isArray','user-domain','4068NopyDY','Allowed\x20fields:\x20','5rdbYqa','search','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','api-domain','pathname','str'];a88_0xb018=function(){return _0x2e19d7;};return a88_0xb018();}export const DOMAIN_CONFIG_FIELDS=[a88_0x40df74(0x16a),a88_0x40df74(0x171),a88_0x40df74(0x187),a88_0x40df74(0x165),a88_0x40df74(0x181)];const DOMAIN_FLAGS={'userDomain':a88_0x40df74(0x18c),'apiDomain':a88_0x40df74(0x162),'runtimeDomain':'runtime-domain','skillDomain':'skill-domain','kbDomain':a88_0x40df74(0x173)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a88_0x40df74(0x16d),'platformDomain','skillHubDomain'];export function normalizeDomainOrigin(_0x46b81b,_0x1b10c8){const _0x34e1b0=a88_0x40df74;if(typeof _0x1b10c8!=='string'||!_0x1b10c8['trim']())throw CliErrors['validation']('Invalid\x20'+_0x46b81b+_0x34e1b0(0x177));let _0x5070e7;try{_0x5070e7=new URL(_0x1b10c8['trim']());}catch{throw CliErrors['validation'](_0x34e1b0(0x176)+_0x46b81b+_0x34e1b0(0x183)+_0x1b10c8+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x5070e7[_0x34e1b0(0x182)]!=='https:'||_0x5070e7['username']||_0x5070e7[_0x34e1b0(0x16c)]||_0x5070e7[_0x34e1b0(0x163)]!=='/'&&_0x5070e7['pathname']!==''||_0x5070e7[_0x34e1b0(0x160)]||_0x5070e7[_0x34e1b0(0x186)])throw CliErrors[_0x34e1b0(0x167)](_0x34e1b0(0x176)+_0x46b81b+_0x34e1b0(0x178),_0x34e1b0(0x16e));return _0x5070e7[_0x34e1b0(0x17c)];}export function readDomainConfig(_0x40e715){const _0x1e4fb4=a88_0x40df74,_0x25f15d=isAbsolute(_0x40e715)?_0x40e715:resolve(process['cwd'](),_0x40e715);if(!existsSync(_0x25f15d))throw CliErrors[_0x1e4fb4(0x167)](_0x1e4fb4(0x18a)+_0x25f15d);let _0xda6166;try{_0xda6166=JSON[_0x1e4fb4(0x185)](readFileSync(_0x25f15d,_0x1e4fb4(0x17d)));}catch{throw CliErrors[_0x1e4fb4(0x167)](_0x1e4fb4(0x17f)+_0x25f15d);}if(!_0xda6166||typeof _0xda6166!==_0x1e4fb4(0x17b)||Array[_0x1e4fb4(0x18b)](_0xda6166))throw CliErrors['validation'](_0x1e4fb4(0x161));const _0x51393a=_0xda6166,_0x164b0a=Object[_0x1e4fb4(0x16f)](_0x51393a)[_0x1e4fb4(0x16b)](_0xbca1d1=>!DOMAIN_CONFIG_FIELDS[_0x1e4fb4(0x179)](_0xbca1d1));if(_0x164b0a[_0x1e4fb4(0x17e)]>0x0)throw CliErrors['validation'](_0x1e4fb4(0x189)+_0x164b0a[_0x1e4fb4(0x17a)](',\x20'),_0x1e4fb4(0x15e)+DOMAIN_CONFIG_FIELDS[_0x1e4fb4(0x17a)](',\x20'));const _0x4ee29f={};for(const _0x4f7cb7 of DOMAIN_CONFIG_FIELDS){_0x51393a[_0x4f7cb7]!==undefined&&(_0x4ee29f[_0x4f7cb7]=normalizeDomainOrigin(_0x4f7cb7,_0x51393a[_0x4f7cb7]));}if(Object[_0x1e4fb4(0x16f)](_0x4ee29f)[_0x1e4fb4(0x17e)]===0x0)throw CliErrors[_0x1e4fb4(0x167)]('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return _0x4ee29f;}export function resolveDomainFlags(_0x4ae9ba){const _0x4b13e8=a88_0x40df74,_0x3baa9e=(_0x4ae9ba['str'](_0x4b13e8(0x172))||'')[_0x4b13e8(0x175)](),_0x3b0f54=_0x3baa9e?readDomainConfig(_0x3baa9e):{};for(const _0x5a0eab of DOMAIN_CONFIG_FIELDS){const _0x5e58bd=(_0x4ae9ba[_0x4b13e8(0x164)](DOMAIN_FLAGS[_0x5a0eab])||'')[_0x4b13e8(0x175)]();if(_0x5e58bd)_0x3b0f54[_0x5a0eab]=normalizeDomainOrigin(_0x5a0eab,_0x5e58bd);}return _0x3b0f54;}
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;}
@@ -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" | "accessKey" | "riskLevel" | "nativeToolAvailable" | "locale";
22
+ type ConfigFieldName = "env" | "region" | "format" | "pageSize" | "apiDomain" | "userDomain" | "runtimeDomain" | "skillDomain" | "kbDomain" | "kbSearchDomain" | "accessKey" | "riskLevel" | "nativeToolAvailable" | "locale";
23
23
  /**
24
24
  * Schema for a single configuration field.
25
25
  *
@@ -1 +1 @@
1
- const a89_0x57d968=a89_0x2169;(function(_0x5e5ff2,_0x1f96b0){const _0x1b7e13=a89_0x2169,_0x5ba5d3=_0x5e5ff2();while(!![]){try{const _0x585d33=-parseInt(_0x1b7e13(0x13b))/0x1*(parseInt(_0x1b7e13(0x11d))/0x2)+parseInt(_0x1b7e13(0x13a))/0x3*(-parseInt(_0x1b7e13(0x135))/0x4)+parseInt(_0x1b7e13(0x128))/0x5*(-parseInt(_0x1b7e13(0x130))/0x6)+-parseInt(_0x1b7e13(0x122))/0x7+parseInt(_0x1b7e13(0x11b))/0x8*(parseInt(_0x1b7e13(0x13d))/0x9)+-parseInt(_0x1b7e13(0x120))/0xa+-parseInt(_0x1b7e13(0x121))/0xb*(-parseInt(_0x1b7e13(0x11f))/0xc);if(_0x585d33===_0x1f96b0)break;else _0x5ba5d3['push'](_0x5ba5d3['shift']());}catch(_0x4b6cb9){_0x5ba5d3['push'](_0x5ba5d3['shift']());}}}(a89_0x437d,0x574e7));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':a89_0x57d968(0x11c),'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_0x57d968(0x11a)],'importable':!![]},'format':{'description':a89_0x57d968(0x138),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x57d968(0x12d)],'importable':!![]},'pageSize':{'description':a89_0x57d968(0x132),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a89_0x57d968(0x12f),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a89_0x57d968(0x124),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a89_0x57d968(0x140),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillDomain':{'description':'Override\x20SkillHub\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'kbDomain':{'description':a89_0x57d968(0x12e),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a89_0x57d968(0x139),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'nativeToolAvailable':{'description':a89_0x57d968(0x13c),'topLevel':!![],'defaultValue':![]},'locale':{'description':a89_0x57d968(0x129),'topLevel':!![],'cliSettableTopLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a89_0x57d968(0x12a)],'importable':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a89_0x57d968(0x133)](CONFIG_FIELD_SCHEMAS)[a89_0x57d968(0x127)](([,_0x3697bf])=>_0x3697bf[a89_0x57d968(0x131)])['map'](([_0x38aa21])=>_0x38aa21));export const CLI_PROTECTED_CONFIG_KEYS=new Set(['riskLevel',a89_0x57d968(0x12c)]);export const CONFIG_ENUM_VALUES=Object[a89_0x57d968(0x137)](Object[a89_0x57d968(0x133)](CONFIG_FIELD_SCHEMAS)[a89_0x57d968(0x127)](([,_0x57e25d])=>_0x57e25d[a89_0x57d968(0x125)])[a89_0x57d968(0x134)](([_0x180db3,_0x4d05ca])=>[_0x180db3,[..._0x4d05ca[a89_0x57d968(0x125)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a89_0x57d968(0x133)](CONFIG_FIELD_SCHEMAS)[a89_0x57d968(0x127)](([,_0x24ad98])=>_0x24ad98[a89_0x57d968(0x123)])[a89_0x57d968(0x134)](([_0x4d4b9d])=>_0x4d4b9d);export function getConfigFieldSchema(_0x631017){return CONFIG_FIELD_SCHEMAS[_0x631017];}export function getConfigEnumValues(_0x33cda7){const _0x1b8493=a89_0x57d968;return getConfigFieldSchema(_0x33cda7)?.[_0x1b8493(0x125)];}export function getConfigDefaultValue(_0x3316cb){return getConfigFieldSchema(_0x3316cb)?.['defaultValue'];}export function isTopLevelConfigKey(_0x2f3c15){const _0x379d77=a89_0x57d968;return TOP_LEVEL_CONFIG_KEYS[_0x379d77(0x11e)](_0x2f3c15);}export function isCliProtectedConfigKey(_0x13e84d){const _0x5db593=a89_0x57d968;return CLI_PROTECTED_CONFIG_KEYS[_0x5db593(0x11e)](_0x13e84d);}const LOCALE_MAP={'zh':a89_0x57d968(0x12b),'zh-cn':a89_0x57d968(0x12b),'zh_cn':a89_0x57d968(0x12b),'en':a89_0x57d968(0x136),'en-us':a89_0x57d968(0x136),'en_us':'en-US'};export function normalizeLocale(_0x15bfbe){const _0x19255c=a89_0x57d968;if(!_0x15bfbe)return null;return LOCALE_MAP[_0x15bfbe[_0x19255c(0x126)]()]??null;}function a89_0x437d(){const _0x2bc66d=['join','Override\x20runtime\x20domain','env','2629976ombdPy','Lovrabet\x20region','2ogJwbe','has','8081676KzSEOn','4369540zTJRqt','33WBcHSv','2148496FdgZCl','importable','Override\x20user\x20domain','enumValues','toLowerCase','filter','1189945bjAnwK','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','locale','zh-CN','nativeToolAvailable','format','Override\x20knowledge-base\x20domain','Override\x20API\x20domain','18Mmbypb','cliSettableTopLevel','Default\x20page\x20size','entries','map','24lmaqSU','en-US','fromEntries','Default\x20output\x20format','Access\x20key\x20(client-ak\x20auth)','352113jitjbw','158231iHPZvg','Native\x20Lovrabet\x20tool\x20availability\x20in\x20the\x20current\x20execution\x20host','18vBocLI','legacyCompatOnly'];a89_0x437d=function(){return _0x2bc66d;};return a89_0x437d();}export function isLegacyCompatConfigKey(_0x44e51f){const _0x21e4e5=a89_0x57d968;return getConfigFieldSchema(_0x44e51f)?.[_0x21e4e5(0x13e)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x253be1){const _0x6e8518=a89_0x57d968;return[..._0x253be1][_0x6e8518(0x13f)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}function a89_0x2169(_0x1899d5,_0x16d20e){_0x1899d5=_0x1899d5-0x11a;const _0x437d03=a89_0x437d();let _0x216988=_0x437d03[_0x1899d5];return _0x216988;}export function buildAppProfileListFields(_0xd0f938){return{'env':_0xd0f938,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
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 +1 @@
1
- function a90_0x4c17(_0x59975e,_0x23f189){_0x59975e=_0x59975e-0x1ca;const _0x18a7a7=a90_0x18a7();let _0x4c1744=_0x18a7a7[_0x59975e];return _0x4c1744;}const a90_0x1110ba=a90_0x4c17;(function(_0x2e1272,_0x17f0f3){const _0x42046f=a90_0x4c17,_0x7aff9e=_0x2e1272();while(!![]){try{const _0x3bdab5=parseInt(_0x42046f(0x1d2))/0x1+-parseInt(_0x42046f(0x1cd))/0x2*(-parseInt(_0x42046f(0x1cb))/0x3)+parseInt(_0x42046f(0x1d3))/0x4*(parseInt(_0x42046f(0x1d0))/0x5)+-parseInt(_0x42046f(0x1ce))/0x6*(-parseInt(_0x42046f(0x1d5))/0x7)+parseInt(_0x42046f(0x1cc))/0x8+-parseInt(_0x42046f(0x1cf))/0x9+-parseInt(_0x42046f(0x1ca))/0xa;if(_0x3bdab5===_0x17f0f3)break;else _0x7aff9e['push'](_0x7aff9e['shift']());}catch(_0x57dcd5){_0x7aff9e['push'](_0x7aff9e['shift']());}}}(a90_0x18a7,0xe7dea));export const APP_PUBLISH_STATUS={'Published':a90_0x1110ba(0x1d1),'Unpublished':a90_0x1110ba(0x1d4)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a90_0x1110ba(0x1d6)];function a90_0x18a7(){const _0x5bb44b=['14PkveNE','492138KfvgxZ','15421050cGLetM','5107730mvAxHn','PUBLISHED','75703nyVDve','4ZtYMKO','UNPUBLISH','126FoIXBn','Published','14968230WCaphN','639186FHPUTL','759312HtXxuk'];a90_0x18a7=function(){return _0x5bb44b;};return a90_0x18a7();}
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 +1 @@
1
- (function(_0x5203da,_0x5908a2){const _0x8f937d=a91_0x268a,_0x4eb212=_0x5203da();while(!![]){try{const _0x2e0cc4=parseInt(_0x8f937d(0x75))/0x1+-parseInt(_0x8f937d(0x74))/0x2+-parseInt(_0x8f937d(0x71))/0x3*(-parseInt(_0x8f937d(0x78))/0x4)+parseInt(_0x8f937d(0x77))/0x5*(-parseInt(_0x8f937d(0x73))/0x6)+-parseInt(_0x8f937d(0x7a))/0x7+parseInt(_0x8f937d(0x79))/0x8*(parseInt(_0x8f937d(0x76))/0x9)+parseInt(_0x8f937d(0x72))/0xa;if(_0x2e0cc4===_0x5908a2)break;else _0x4eb212['push'](_0x4eb212['shift']());}catch(_0x3172c3){_0x4eb212['push'](_0x4eb212['shift']());}}}(a91_0x4804,0x285f2));export const AUTH_MODE={'ClientAk':'client-ak'};function a91_0x268a(_0x6d4d6f,_0x20b56e){_0x6d4d6f=_0x6d4d6f-0x71;const _0x480427=a91_0x4804();let _0x268a77=_0x480427[_0x6d4d6f];return _0x268a77;}export function isAuthMode(_0x171fb9){const _0x4f85d8=a91_0x268a;return _0x171fb9===AUTH_MODE[_0x4f85d8(0x7b)];}function a91_0x4804(){const _0x248986=['51eTkzUI','3252970kNXKpa','18FRxPhD','107326gCMsoa','10317yVPWbe','44703pLrzVD','142645MtAkSf','44440vpJeiw','160abadWk','2234484yHNOeG','ClientAk'];a91_0x4804=function(){return _0x248986;};return a91_0x4804();}
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 +1 @@
1
- const a92_0x54c82b=a92_0x1874;(function(_0x1c23d2,_0x5f1e81){const _0x35db90=a92_0x1874,_0x44f4a8=_0x1c23d2();while(!![]){try{const _0x5444be=parseInt(_0x35db90(0x105))/0x1*(-parseInt(_0x35db90(0x11b))/0x2)+parseInt(_0x35db90(0x11a))/0x3+-parseInt(_0x35db90(0x100))/0x4*(parseInt(_0x35db90(0xfb))/0x5)+parseInt(_0x35db90(0x121))/0x6+-parseInt(_0x35db90(0xfa))/0x7+parseInt(_0x35db90(0x11f))/0x8+-parseInt(_0x35db90(0x104))/0x9*(parseInt(_0x35db90(0x114))/0xa);if(_0x5444be===_0x5f1e81)break;else _0x44f4a8['push'](_0x44f4a8['shift']());}catch(_0x55c995){_0x44f4a8['push'](_0x44f4a8['shift']());}}}(a92_0x3776,0xef989));import{PRODUCT_CONFIG}from'../constant/product.js';function a92_0x1874(_0x104d5b,_0x30284a){_0x104d5b=_0x104d5b-0xf9;const _0x377677=a92_0x3776();let _0x1874f0=_0x377677[_0x104d5b];return _0x1874f0;}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a92_0x54c82b(0xfd)];function a92_0x3776(){const _0x456517=['<name>','type','yes','clear','boolean','3395580pzGmPT','4jVgiEg','non-interactive','meowKey','string','1189512BtPJZH','appcode','11270250nyRjUp','Override\x20appcode','format','SQL\x20query\x20code','dry-run','Record\x20ID','5449556FiaqOZ','40PWqZkR','production\x20|\x20development\x20|\x20daily','cliBinName','verbose','params','270128MmKWVs','Preview\x20operation\x20without\x20executing','Name\x20filter','JSON\x20params\x20for\x20execute\x20commands','9eZAdfM','84358LUZRal','Skip\x20confirmation\x20for\x20high-risk\x20writes','<code>','json\x20|\x20pretty\x20|\x20compress','Force\x20non-interactive\x20mode\x20(CI)','cliDisplayName','env','fromEntries','global','name','<expr>','app','nonInteractive','Alias\x20for\x20--non-interactive','help','6900590ZoTTEI'];a92_0x3776=function(){return _0x456517;};return a92_0x3776();}export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a92_0x54c82b(0x10a)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a92_0x54c82b(0x120),'meowKey':a92_0x54c82b(0x120),'type':a92_0x54c82b(0x11e),'description':a92_0x54c82b(0x122),'hint':a92_0x54c82b(0x107)},{'name':'app','meowKey':a92_0x54c82b(0x110),'type':a92_0x54c82b(0x11e),'description':'Select\x20app\x20profile\x20by\x20name','hint':a92_0x54c82b(0x115)},{'name':a92_0x54c82b(0x10b),'meowKey':a92_0x54c82b(0x10b),'type':a92_0x54c82b(0x11e),'description':'Environment','hint':a92_0x54c82b(0xfc)},{'name':'format','meowKey':a92_0x54c82b(0x123),'type':'string','description':'Output\x20format','hint':a92_0x54c82b(0x108)},{'name':'jq','meowKey':'jq','type':'string','description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a92_0x54c82b(0x10f)},{'name':a92_0x54c82b(0x125),'meowKey':'dryRun','type':a92_0x54c82b(0x119),'description':a92_0x54c82b(0x101)},{'name':'yes','meowKey':a92_0x54c82b(0x117),'type':a92_0x54c82b(0x119),'description':a92_0x54c82b(0x106)},{'name':a92_0x54c82b(0x11c),'meowKey':a92_0x54c82b(0x111),'type':a92_0x54c82b(0x119),'description':a92_0x54c82b(0x109)},{'name':'global','meowKey':a92_0x54c82b(0x10d),'type':a92_0x54c82b(0x119),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a92_0x54c82b(0x119),'description':a92_0x54c82b(0x112),'hidden':!![]},{'name':'help','meowKey':a92_0x54c82b(0x113),'type':a92_0x54c82b(0x119),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':'string','description':a92_0x54c82b(0xf9),'hidden':!![]},{'name':'name','meowKey':a92_0x54c82b(0x10e),'type':a92_0x54c82b(0x11e),'description':a92_0x54c82b(0x102),'hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a92_0x54c82b(0x11e),'description':a92_0x54c82b(0x124),'hidden':!![]},{'name':a92_0x54c82b(0xff),'meowKey':a92_0x54c82b(0xff),'type':a92_0x54c82b(0x11e),'description':a92_0x54c82b(0x103),'hidden':!![]},{'name':a92_0x54c82b(0xfe),'meowKey':a92_0x54c82b(0xfe),'type':a92_0x54c82b(0x119),'description':'Verbose\x20output','hidden':!![]},{'name':'clear','meowKey':a92_0x54c82b(0x118),'type':a92_0x54c82b(0x119),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a92_0x54c82b(0x120),a92_0x54c82b(0x110),a92_0x54c82b(0x10b),a92_0x54c82b(0x123),'jq',a92_0x54c82b(0x125),a92_0x54c82b(0x117),'non-interactive','ci']);export function buildMeowFlags(){const _0x3e564c=a92_0x54c82b;return Object[_0x3e564c(0x10c)](GLOBAL_FLAGS['map'](_0x50c34e=>[_0x50c34e[_0x3e564c(0x11d)],{'type':_0x50c34e[_0x3e564c(0x116)]}]));}
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 +1 @@
1
- function a93_0x378e(_0x4816d4,_0x260901){_0x4816d4=_0x4816d4-0x12e;const _0x1c849a=a93_0x1c84();let _0x378e61=_0x1c849a[_0x4816d4];return _0x378e61;}const a93_0x4b25a9=a93_0x378e;(function(_0x2da208,_0x91b965){const _0x2a067f=a93_0x378e,_0x4f220c=_0x2da208();while(!![]){try{const _0x3e6596=-parseInt(_0x2a067f(0x131))/0x1*(-parseInt(_0x2a067f(0x135))/0x2)+-parseInt(_0x2a067f(0x13a))/0x3*(-parseInt(_0x2a067f(0x13c))/0x4)+-parseInt(_0x2a067f(0x134))/0x5*(-parseInt(_0x2a067f(0x12f))/0x6)+-parseInt(_0x2a067f(0x139))/0x7*(-parseInt(_0x2a067f(0x133))/0x8)+parseInt(_0x2a067f(0x130))/0x9+-parseInt(_0x2a067f(0x13b))/0xa+-parseInt(_0x2a067f(0x12e))/0xb;if(_0x3e6596===_0x91b965)break;else _0x4f220c['push'](_0x4f220c['shift']());}catch(_0x1a0f45){_0x4f220c['push'](_0x4f220c['shift']());}}}(a93_0x1c84,0xd2b62));export const DEFAULT_APP_PROFILE_NAME=a93_0x4b25a9(0x132);export const DEFAULT_CONFIG_VALUES={'env':a93_0x4b25a9(0x137),'format':'compress','locale':a93_0x4b25a9(0x136),'riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a93_0x4b25a9(0x138);function a93_0x1c84(){const _0x2efc33=['27879DZCSpg','15937580sPVsyI','192aFQfWO','28008409rQJKyP','2550ZnOUwB','9771660uGKSzI','151ghWGAK','main','352ZrBGaY','8925gjFHZf','19492TNCiDN','en-US','production','compress','197428rqlqqa'];a93_0x1c84=function(){return _0x2efc33;};return a93_0x1c84();}
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 +1 @@
1
- const a94_0x2d201b=a94_0x2939;(function(_0x47fc02,_0x4d74c1){const _0x3d1619=a94_0x2939,_0x734fa1=_0x47fc02();while(!![]){try{const _0x5d4afc=-parseInt(_0x3d1619(0xb3))/0x1+parseInt(_0x3d1619(0xa9))/0x2*(-parseInt(_0x3d1619(0xaa))/0x3)+-parseInt(_0x3d1619(0xb6))/0x4+parseInt(_0x3d1619(0xa8))/0x5*(-parseInt(_0x3d1619(0xb7))/0x6)+-parseInt(_0x3d1619(0xb1))/0x7*(-parseInt(_0x3d1619(0xb4))/0x8)+parseInt(_0x3d1619(0xb5))/0x9*(parseInt(_0x3d1619(0xaf))/0xa)+parseInt(_0x3d1619(0xad))/0xb;if(_0x5d4afc===_0x4d74c1)break;else _0x734fa1['push'](_0x734fa1['shift']());}catch(_0x4115ec){_0x734fa1['push'](_0x734fa1['shift']());}}}(a94_0x5b5a,0x77222));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a94_0x2d201b(0xb0)];function a94_0x5b5a(){const _0x4cf002=['npmPackageName','13517cbjwCY','/dist/lovrabet-cli/config/index.json','838500fvIOwX','2776BlZpHP','3005523cOROJd','1081868QuMlew','102PRZAFS','199345uFwruZ','303988RFIbtR','6TfBkgO','skillSource','npmRegistryBaseUrl','17321634dOAfQv','cliCdnBaseUrl','10kokROQ'];a94_0x5b5a=function(){return _0x4cf002;};return a94_0x5b5a();}function a94_0x2939(_0x242ba3,_0x28bb34){_0x242ba3=_0x242ba3-0xa8;const _0x5b5a96=a94_0x5b5a();let _0x2939e8=_0x5b5a96[_0x242ba3];return _0x2939e8;}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a94_0x2d201b(0xab)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a94_0x2d201b(0xac)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a94_0x2d201b(0xae)];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a94_0x2d201b(0xb2);
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);
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Why domain resolution is centralized here: the CLI makes HTTP requests to multiple
5
5
  * backend services, each with its own domain. Rather than hard-coding URLs or
6
- * duplicating the env-based selection logic, we expose three getter functions that
7
- * encapsulate the rule:
6
+ * duplicating the env-based selection logic, we expose one getter per service that
7
+ * encapsulates the rule:
8
8
  *
9
9
  * - production env → production domains
10
10
  * - daily (staging) env → daily-prefixed domains
@@ -19,7 +19,7 @@ import { type LovrabetRegion } from "../constant/region.js";
19
19
  /**
20
20
  * Sets custom domain overrides read from the config file.
21
21
  *
22
- * Why pass an options object instead of three separate parameters: future-proofing.
22
+ * Why pass an options object instead of positional parameters: future-proofing.
23
23
  * Adding a new domain type (e.g. `authDomain`) only requires adding a field here,
24
24
  * not changing every call site. Typed `undefined` fields mean "use the default".
25
25
  *
@@ -31,6 +31,7 @@ export declare function initDomains(domains?: {
31
31
  runtimeDomain?: string;
32
32
  skillDomain?: string;
33
33
  kbDomain?: string;
34
+ kbSearchDomain?: string;
34
35
  region?: LovrabetRegion;
35
36
  }): void;
36
37
  /**
@@ -62,3 +63,5 @@ export declare const getRuntimeDomain: () => string;
62
63
  export declare const getSkillDomain: () => string;
63
64
  /** Returns the knowledge-base domain used by personal and company KB APIs. */
64
65
  export declare const getKbDomain: () => string;
66
+ /** Returns the separately deployed native KB Service search origin. */
67
+ export declare function getKbSearchDomain(): string;
@@ -1 +1 @@
1
- function a95_0x4f1f(){const _0x48e2e6=['runtime','apiDomain','18936050HGFupT','3018KlfApS','16457ZReWwX','6185735UxeUqF','production','14070060GwJJCB','api','2keewrn','regionDomains','userDomain','4Auxulr','2089251yebxPZ','nonProduction','kbDomain','1677176FIoiEw','13879344qiNSgb'];a95_0x4f1f=function(){return _0x48e2e6;};return a95_0x4f1f();}const a95_0x5a5705=a95_0x1787;function a95_0x1787(_0x4cf876,_0x119b16){_0x4cf876=_0x4cf876-0x7e;const _0x4f1fd8=a95_0x4f1f();let _0x17878a=_0x4f1fd8[_0x4cf876];return _0x17878a;}(function(_0x4e8523,_0x3e12bf){const _0x1f603f=a95_0x1787,_0x8cf055=_0x4e8523();while(!![]){try{const _0x5e2a39=-parseInt(_0x1f603f(0x8f))/0x1*(-parseInt(_0x1f603f(0x88))/0x2)+parseInt(_0x1f603f(0x8c))/0x3*(parseInt(_0x1f603f(0x8b))/0x4)+-parseInt(_0x1f603f(0x84))/0x5+-parseInt(_0x1f603f(0x82))/0x6*(-parseInt(_0x1f603f(0x83))/0x7)+-parseInt(_0x1f603f(0x7e))/0x8+-parseInt(_0x1f603f(0x86))/0x9+parseInt(_0x1f603f(0x81))/0xa;if(_0x5e2a39===_0x3e12bf)break;else _0x8cf055['push'](_0x8cf055['shift']());}catch(_0x3d0b2c){_0x8cf055['push'](_0x8cf055['shift']());}}}(a95_0x4f1f,0xdf3aa));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(_0x4ed887){const _0x558581=a95_0x1787;customApiDomain=_0x4ed887?.[_0x558581(0x80)],customUserDomain=_0x4ed887?.[_0x558581(0x8a)],customRuntimeDomain=_0x4ed887?.['runtimeDomain'],customSkillDomain=_0x4ed887?.['skillDomain'],customKbDomain=_0x4ed887?.[_0x558581(0x8e)],activeRegion=_0x4ed887?.['region']??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>PRODUCT_CONFIG[a95_0x5a5705(0x89)][activeRegion][isProduction(getEnv())?a95_0x5a5705(0x85):a95_0x5a5705(0x8d)];export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()['user'];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a95_0x5a5705(0x87)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a95_0x5a5705(0x7f)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbDomain=()=>customKbDomain||getActiveRegionDomains()['kb'];
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 +1 @@
1
- const a96_0x14ccbb=a96_0xfb73;(function(_0x289a6b,_0x14d69a){const _0x1484be=a96_0xfb73,_0x5dbcb2=_0x289a6b();while(!![]){try{const _0xa8412c=parseInt(_0x1484be(0x13d))/0x1*(parseInt(_0x1484be(0x137))/0x2)+parseInt(_0x1484be(0x13a))/0x3*(-parseInt(_0x1484be(0x139))/0x4)+parseInt(_0x1484be(0x141))/0x5+-parseInt(_0x1484be(0x138))/0x6*(parseInt(_0x1484be(0x140))/0x7)+-parseInt(_0x1484be(0x142))/0x8*(-parseInt(_0x1484be(0x13f))/0x9)+parseInt(_0x1484be(0x13b))/0xa*(parseInt(_0x1484be(0x145))/0xb)+-parseInt(_0x1484be(0x135))/0xc*(-parseInt(_0x1484be(0x136))/0xd);if(_0xa8412c===_0x14d69a)break;else _0x5dbcb2['push'](_0x5dbcb2['shift']());}catch(_0x23a9a7){_0x5dbcb2['push'](_0x5dbcb2['shift']());}}}(a96_0x25a7,0x27e5c));import{productEnv}from'../constant/product.js';function a96_0xfb73(_0x4e2b3f,_0x3d71b5){_0x4e2b3f=_0x4e2b3f-0x135;const _0x25a7c7=a96_0x25a7();let _0xfb731c=_0x25a7c7[_0x4e2b3f];return _0xfb731c;}export const RUNTIME_ENV_VALUES=['production',a96_0x14ccbb(0x144),a96_0x14ccbb(0x147)];export function normalizeEnv(_0x28b2d3){const _0x3807c3=a96_0x14ccbb;return _0x28b2d3===_0x3807c3(0x143)?_0x3807c3(0x13c):_0x28b2d3;}export function isProduction(_0x2da840){const _0x24de88=a96_0x14ccbb;return normalizeEnv(_0x2da840)===_0x24de88(0x13c);}export function isDaily(_0x531364){const _0x1c3d1d=a96_0x14ccbb;return normalizeEnv(_0x531364)===_0x1c3d1d(0x147);}function a96_0x25a7(){const _0xb6b1c2=['development','1034OUptGH','ENV','daily','132nCgEVG','82901nVdKfw','1252aXmCua','6BubKZY','3316BGSZfv','687cKazXJ','2260aktPJJ','production','312grEyCP','dev','1173303hVqsdl','697900oRgNGb','179455sCScfO','8APTgbg','online'];a96_0x25a7=function(){return _0xb6b1c2;};return a96_0x25a7();}export function isDev(_0x4102b1){const _0x52cca0=a96_0x14ccbb,_0x1b862c=normalizeEnv(_0x4102b1);return _0x1b862c===_0x52cca0(0x144)||_0x1b862c===_0x52cca0(0x13e);}let env=normalizeEnv(productEnv(a96_0x14ccbb(0x146))||a96_0x14ccbb(0x13c));export function getEnv(){return env;}export function initEnv(_0x1b4b4a){env=normalizeEnv(_0x1b4b4a);}
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 +1 @@
1
- function a97_0x18a3(_0x4bbb05,_0x5ca527){_0x4bbb05=_0x4bbb05-0x65;const _0x5d71b9=a97_0x5d71();let _0x18a393=_0x5d71b9[_0x4bbb05];return _0x18a393;}const a97_0x35a51e=a97_0x18a3;function a97_0x5d71(){const _0x13c11d=['67420dKZBNV','1124255PdtvwI','735160Mfafvi','30289GYbdCg','965064LexLwY','5349rSegCR','22527sTMEeE','compress','472YSVqIT','226bEQPmB','1670NDRgAu'];a97_0x5d71=function(){return _0x13c11d;};return a97_0x5d71();}(function(_0x1a0e82,_0x292e90){const _0x522e35=a97_0x18a3,_0x595200=_0x1a0e82();while(!![]){try{const _0x116ef9=-parseInt(_0x522e35(0x6e))/0x1+-parseInt(_0x522e35(0x6c))/0x2*(parseInt(_0x522e35(0x68))/0x3)+-parseInt(_0x522e35(0x65))/0x4+-parseInt(_0x522e35(0x6f))/0x5+parseInt(_0x522e35(0x67))/0x6+parseInt(_0x522e35(0x66))/0x7*(parseInt(_0x522e35(0x6b))/0x8)+-parseInt(_0x522e35(0x69))/0x9*(-parseInt(_0x522e35(0x6d))/0xa);if(_0x116ef9===_0x292e90)break;else _0x595200['push'](_0x595200['shift']());}catch(_0x29fff8){_0x595200['push'](_0x595200['shift']());}}}(a97_0x5d71,0x263b6));export const OUTPUT_FORMAT_VALUES=['json','pretty',a97_0x35a51e(0x6a)];
1
+ const a97_0x270189=a97_0x18fd;(function(_0x3ffafe,_0x30d878){const _0x7a3497=a97_0x18fd,_0x170e7d=_0x3ffafe();while(!![]){try{const _0x5c1b40=parseInt(_0x7a3497(0x16d))/0x1+parseInt(_0x7a3497(0x16e))/0x2+-parseInt(_0x7a3497(0x16a))/0x3*(-parseInt(_0x7a3497(0x16b))/0x4)+parseInt(_0x7a3497(0x167))/0x5+-parseInt(_0x7a3497(0x165))/0x6*(parseInt(_0x7a3497(0x170))/0x7)+-parseInt(_0x7a3497(0x16f))/0x8+-parseInt(_0x7a3497(0x166))/0x9;if(_0x5c1b40===_0x30d878)break;else _0x170e7d['push'](_0x170e7d['shift']());}catch(_0x7ff70f){_0x170e7d['push'](_0x170e7d['shift']());}}}(a97_0xa215,0x382ad));function a97_0x18fd(_0x3a1d25,_0x84ec1f){_0x3a1d25=_0x3a1d25-0x165;const _0xa21595=a97_0xa215();let _0x18fd6e=_0xa21595[_0x3a1d25];return _0x18fd6e;}export const OUTPUT_FORMAT_VALUES=[a97_0x270189(0x168),a97_0x270189(0x169),a97_0x270189(0x16c)];function a97_0xa215(){const _0x425c70=['18xxAyaN','92115ydwxvU','2099285ATigLR','json','pretty','9057RgedEk','452XxnaHk','compress','190579Msvqei','97734LJxYBf','3379816PLFmiv','787913KXupMf'];a97_0xa215=function(){return _0x425c70;};return a97_0xa215();}
@@ -1 +1 @@
1
- const a98_0x2d7703=a98_0xf17e;(function(_0x2c2cac,_0x10f9a8){const _0x495822=a98_0xf17e,_0x52f14e=_0x2c2cac();while(!![]){try{const _0x49810c=parseInt(_0x495822(0x8d))/0x1*(-parseInt(_0x495822(0x8f))/0x2)+-parseInt(_0x495822(0x94))/0x3+parseInt(_0x495822(0xa6))/0x4*(parseInt(_0x495822(0xb0))/0x5)+parseInt(_0x495822(0x86))/0x6*(-parseInt(_0x495822(0xa2))/0x7)+-parseInt(_0x495822(0x83))/0x8*(-parseInt(_0x495822(0xa7))/0x9)+parseInt(_0x495822(0x9c))/0xa*(-parseInt(_0x495822(0x90))/0xb)+parseInt(_0x495822(0x8b))/0xc;if(_0x49810c===_0x10f9a8)break;else _0x52f14e['push'](_0x52f14e['shift']());}catch(_0x4a0721){_0x52f14e['push'](_0x52f14e['shift']());}}}(a98_0x4bd7,0x6f2a0));export const PRODUCT_CONFIG={'cliBinName':a98_0x2d7703(0xaa),'cliDisplayName':a98_0x2d7703(0xa8),'npmPackageName':a98_0x2d7703(0x88),'skillSource':a98_0x2d7703(0x9f),'internalSkillSource':'git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','globalSkillName':a98_0x2d7703(0xaa),'npmRegistryBaseUrl':a98_0x2d7703(0xa4),'cliCdnBaseUrl':a98_0x2d7703(0x96),'envPrefix':a98_0x2d7703(0x93),'legacyEnvPrefixes':[a98_0x2d7703(0xaf)],'configFileNames':[a98_0x2d7703(0x8a)],'newConfigFileName':a98_0x2d7703(0x8a),'homeDirName':a98_0x2d7703(0x89),'logFileName':a98_0x2d7703(0x8e),'invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a98_0x2d7703(0xa1),'skipNpxSkillsEnvSuffix':a98_0x2d7703(0xae),'regionDomains':{'cn':{'production':{'user':a98_0x2d7703(0xad),'api':'https://api.lovrabet.com','runtime':a98_0x2d7703(0x97),'skill':a98_0x2d7703(0x98),'kb':a98_0x2d7703(0x97)},'nonProduction':{'user':a98_0x2d7703(0x87),'api':a98_0x2d7703(0x85),'runtime':'https://daily-runtime.lovrabet.com','skill':a98_0x2d7703(0xa9),'kb':a98_0x2d7703(0x95)}},'id':{'production':{'user':a98_0x2d7703(0x9b),'api':a98_0x2d7703(0x92),'runtime':a98_0x2d7703(0x9e),'skill':a98_0x2d7703(0xa3),'kb':a98_0x2d7703(0x9e)},'nonProduction':{'user':'https://user-daily.lovrabet.id','api':a98_0x2d7703(0xa0),'runtime':a98_0x2d7703(0xab),'skill':a98_0x2d7703(0xac),'kb':a98_0x2d7703(0xab)}},'global':{'production':{'user':a98_0x2d7703(0x9a),'api':'https://api.lovrabet.ai','runtime':'https://runtime.lovrabet.ai','skill':a98_0x2d7703(0x8c),'kb':a98_0x2d7703(0x9d)},'nonProduction':{'user':'https://user-daily.lovrabet.ai','api':a98_0x2d7703(0x91),'runtime':a98_0x2d7703(0xa5),'skill':'https://skills-daily.lovrabet.ai','kb':a98_0x2d7703(0xa5)}}},'accessKeyCreatePath':a98_0x2d7703(0x84)};function a98_0x4bd7(){const _0x13275f=['https://daily-runtime.lovrabet.id','https://skills-daily.lovrabet.id','https://user.lovrabet.com','SKIP_NPX_SKILLS','RABETBASE','20435nLreVz','806152EzNEYe','/user/ak','https://daily-api.lovrabet.com','178098BGOPvn','https://user-daily.lovrabet.com','@lovrabet/lovrabet-cli','.lovrabet','.lovrabet.json','21350148JrxoRH','https://skills.lovrabet.ai','1QPPwwj','.lovrabet-runtime.log','233068dmorJN','4853618uAnnhC','https://daily-api.lovrabet.ai','https://api.lovrabet.id','LOVRABET','2716686kIwwLr','https://daily-runtime.lovrabet.com','https://g.lovrabet.com','https://runtime.lovrabet.com','https://skills.lovrabet.com','envPrefix','https://user.lovrabet.ai','https://user.lovrabet.id','10zKwcbJ','https://runtime.lovrabet.ai','https://runtime.lovrabet.id','lovrabet/lovrabet-cli','https://daily-api.lovrabet.id','Lovrabet\x20User\x20Center','49MhHKHk','https://skills.lovrabet.id','https://registry.npmjs.org','https://daily-runtime.lovrabet.ai','44hFavTi','27AFrWlZ','Lovrabet\x20Runtime\x20CLI','https://skills-daily.lovrabet.com','lovrabet'];a98_0x4bd7=function(){return _0x13275f;};return a98_0x4bd7();}export function productEnvName(_0x5c2ddc){const _0x448cf9=a98_0x2d7703;return PRODUCT_CONFIG[_0x448cf9(0x99)]+'_'+_0x5c2ddc;}export function productEnvNames(_0x5e0930){return[productEnvName(_0x5e0930),...PRODUCT_CONFIG['legacyEnvPrefixes']['map'](_0x5cc4ea=>_0x5cc4ea+'_'+_0x5e0930)];}function a98_0xf17e(_0x243969,_0x2139fb){_0x243969=_0x243969-0x83;const _0x4bd758=a98_0x4bd7();let _0xf17ed8=_0x4bd758[_0x243969];return _0xf17ed8;}export function productEnv(_0x334aba){for(const _0x27fdd4 of productEnvNames(_0x334aba)){const _0xa1bf8f=process.env[_0x27fdd4];if(_0xa1bf8f!==undefined)return _0xa1bf8f;}return undefined;}
1
+ const a98_0x10ede6=a98_0x3059;(function(_0x440375,_0x46d67a){const _0x16be76=a98_0x3059,_0x1b0ce1=_0x440375();while(!![]){try{const _0x5239df=parseInt(_0x16be76(0x11c))/0x1+-parseInt(_0x16be76(0xf3))/0x2+-parseInt(_0x16be76(0xf9))/0x3*(parseInt(_0x16be76(0x103))/0x4)+parseInt(_0x16be76(0xfa))/0x5+parseInt(_0x16be76(0xfc))/0x6*(-parseInt(_0x16be76(0x112))/0x7)+parseInt(_0x16be76(0x101))/0x8*(-parseInt(_0x16be76(0x10c))/0x9)+-parseInt(_0x16be76(0x117))/0xa*(-parseInt(_0x16be76(0x11a))/0xb);if(_0x5239df===_0x46d67a)break;else _0x1b0ce1['push'](_0x1b0ce1['shift']());}catch(_0x5ab08f){_0x1b0ce1['push'](_0x1b0ce1['shift']());}}}(a98_0x54dd,0xad375));export const PRODUCT_CONFIG={'cliBinName':a98_0x10ede6(0xf2),'cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':'@lovrabet/lovrabet-cli','skillSource':a98_0x10ede6(0xfb),'internalSkillSource':a98_0x10ede6(0xff),'globalSkillName':a98_0x10ede6(0xf2),'npmRegistryBaseUrl':a98_0x10ede6(0x113),'cliCdnBaseUrl':a98_0x10ede6(0x114),'envPrefix':'LOVRABET','legacyEnvPrefixes':['RABETBASE'],'configFileNames':[a98_0x10ede6(0x108)],'newConfigFileName':a98_0x10ede6(0x108),'homeDirName':a98_0x10ede6(0xf4),'logFileName':'.lovrabet-runtime.log','invokeSource':a98_0x10ede6(0x106),'userCenterDisplayName':a98_0x10ede6(0x100),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','regionDomains':{'cn':{'production':{'user':a98_0x10ede6(0x10e),'api':'https://api.lovrabet.com','runtime':'https://runtime.lovrabet.com','skill':'https://skills.lovrabet.com','kb':a98_0x10ede6(0x105)},'nonProduction':{'user':a98_0x10ede6(0x115),'api':a98_0x10ede6(0x110),'runtime':a98_0x10ede6(0x107),'skill':a98_0x10ede6(0x111),'kb':'https://daily-runtime.lovrabet.com'}},'id':{'production':{'user':a98_0x10ede6(0xfd),'api':a98_0x10ede6(0xf5),'runtime':a98_0x10ede6(0x10a),'skill':a98_0x10ede6(0x116),'kb':a98_0x10ede6(0x10a)},'nonProduction':{'user':a98_0x10ede6(0x10f),'api':a98_0x10ede6(0x109),'runtime':'https://daily-runtime.lovrabet.id','skill':'https://skills-daily.lovrabet.id','kb':a98_0x10ede6(0xfe)}},'global':{'production':{'user':a98_0x10ede6(0x10d),'api':a98_0x10ede6(0xf6),'runtime':a98_0x10ede6(0xf7),'skill':a98_0x10ede6(0x10b),'kb':a98_0x10ede6(0xf7)},'nonProduction':{'user':a98_0x10ede6(0xf8),'api':'https://daily-api.lovrabet.ai','runtime':'https://daily-runtime.lovrabet.ai','skill':a98_0x10ede6(0x104),'kb':'https://daily-runtime.lovrabet.ai'}}},'accessKeyCreatePath':a98_0x10ede6(0x119)};export function productEnvName(_0x5b39e5){const _0x4f42ba=a98_0x10ede6;return PRODUCT_CONFIG[_0x4f42ba(0x11b)]+'_'+_0x5b39e5;}function a98_0x3059(_0x4e908f,_0x496684){_0x4e908f=_0x4e908f-0xf2;const _0x54dd58=a98_0x54dd();let _0x305959=_0x54dd58[_0x4e908f];return _0x305959;}function a98_0x54dd(){const _0xf74b46=['envPrefix','17249nNzIWI','lovrabet','229736PCdIOD','.lovrabet','https://api.lovrabet.id','https://api.lovrabet.ai','https://runtime.lovrabet.ai','https://user-daily.lovrabet.ai','4974fmDwEM','3877670akMtvo','lovrabet/lovrabet-cli','569892pOdSGw','https://user.lovrabet.id','https://daily-runtime.lovrabet.id','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','Lovrabet\x20User\x20Center','167320GuLHxF','legacyEnvPrefixes','3008eBiOgH','https://skills-daily.lovrabet.ai','https://runtime.lovrabet.com','cli:lovrabet-runtime','https://daily-runtime.lovrabet.com','.lovrabet.json','https://daily-api.lovrabet.id','https://runtime.lovrabet.id','https://skills.lovrabet.ai','27MvgbHl','https://user.lovrabet.ai','https://user.lovrabet.com','https://user-daily.lovrabet.id','https://daily-api.lovrabet.com','https://skills-daily.lovrabet.com','28SMPoIt','https://registry.npmjs.org','https://g.lovrabet.com','https://user-daily.lovrabet.com','https://skills.lovrabet.id','5736890sKvdLv','map','/user/ak','33FWCBwZ'];a98_0x54dd=function(){return _0xf74b46;};return a98_0x54dd();}export function productEnvNames(_0x5c21a9){const _0x2e9d3e=a98_0x10ede6;return[productEnvName(_0x5c21a9),...PRODUCT_CONFIG[_0x2e9d3e(0x102)][_0x2e9d3e(0x118)](_0x2a8af1=>_0x2a8af1+'_'+_0x5c21a9)];}export function productEnv(_0x33d339){for(const _0x17459f of productEnvNames(_0x33d339)){const _0xfd13bd=process.env[_0x17459f];if(_0xfd13bd!==undefined)return _0xfd13bd;}return undefined;}