@lovrabet/lovrabet-cli 2.3.6-beta.3 → 2.3.7-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 (185) hide show
  1. package/README.md +15 -11
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/api-doc/index.js +1 -1
  4. package/lib/commands/app/cache.js +1 -1
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.js +1 -1
  10. package/lib/commands/app-config/get.js +1 -1
  11. package/lib/commands/app-config/index.js +1 -1
  12. package/lib/commands/approval/index.js +1 -1
  13. package/lib/commands/artifact/index.js +1 -1
  14. package/lib/commands/auth/device.js +1 -1
  15. package/lib/commands/auth/index.js +1 -1
  16. package/lib/commands/auth/prompt.js +1 -1
  17. package/lib/commands/bff/detail.js +1 -1
  18. package/lib/commands/bff/exec.js +1 -1
  19. package/lib/commands/bff/index.js +1 -1
  20. package/lib/commands/cli-skill/index.js +1 -1
  21. package/lib/commands/common/config-policy.js +1 -1
  22. package/lib/commands/common/constraints.js +1 -1
  23. package/lib/commands/common/flags.js +1 -1
  24. package/lib/commands/common/local-file.js +1 -1
  25. package/lib/commands/config/definitions.js +1 -1
  26. package/lib/commands/config/init.js +1 -1
  27. package/lib/commands/config/shared.js +1 -1
  28. package/lib/commands/data/import-excel.js +1 -1
  29. package/lib/commands/data/index.js +1 -1
  30. package/lib/commands/dataset/detail.js +1 -1
  31. package/lib/commands/dataset/index.js +1 -1
  32. package/lib/commands/dataset/list.js +1 -1
  33. package/lib/commands/dataset/sdk-doc.js +1 -1
  34. package/lib/commands/doctor.js +1 -1
  35. package/lib/commands/file/index.js +1 -1
  36. package/lib/commands/init.js +1 -1
  37. package/lib/commands/kb/index.js +1 -1
  38. package/lib/commands/logs/index.js +1 -1
  39. package/lib/commands/notification/config-list.js +1 -1
  40. package/lib/commands/notification/index.js +1 -1
  41. package/lib/commands/notification/shared.js +1 -1
  42. package/lib/commands/ocr/index.js +1 -1
  43. package/lib/commands/permit/dataset-get.js +1 -1
  44. package/lib/commands/permit/dataset-set.js +1 -1
  45. package/lib/commands/permit/index.js +1 -1
  46. package/lib/commands/permit/page-get.js +1 -1
  47. package/lib/commands/permit/page-set.js +1 -1
  48. package/lib/commands/permit/role-menus-set.js +1 -1
  49. package/lib/commands/permit/role-menus.js +1 -1
  50. package/lib/commands/permit/shared.js +1 -1
  51. package/lib/commands/personal-bff/index.js +1 -1
  52. package/lib/commands/registry.js +1 -1
  53. package/lib/commands/role/create.js +1 -1
  54. package/lib/commands/role/delete.js +1 -1
  55. package/lib/commands/role/detail.js +1 -1
  56. package/lib/commands/role/index.js +1 -1
  57. package/lib/commands/role/list.js +1 -1
  58. package/lib/commands/role/shared.js +1 -1
  59. package/lib/commands/role/update.js +1 -1
  60. package/lib/commands/role/user-add.js +1 -1
  61. package/lib/commands/role/user-remove.js +1 -1
  62. package/lib/commands/schedule/index.js +1 -1
  63. package/lib/commands/schema.js +1 -1
  64. package/lib/commands/service/dynamic.js +1 -1
  65. package/lib/commands/service/function-name-adapter.js +1 -1
  66. package/lib/commands/service/index.js +1 -1
  67. package/lib/commands/service/registry.js +1 -1
  68. package/lib/commands/skill/commands/create.js +1 -1
  69. package/lib/commands/skill/commands/diagram.js +1 -1
  70. package/lib/commands/skill/commands/install.js +1 -1
  71. package/lib/commands/skill/commands/list.js +1 -1
  72. package/lib/commands/skill/commands/push.js +1 -1
  73. package/lib/commands/skill/commands/validate.js +1 -1
  74. package/lib/commands/skill/diagram.js +1 -1
  75. package/lib/commands/skill/flags.js +1 -1
  76. package/lib/commands/skill/index.js +1 -1
  77. package/lib/commands/skill/manifest-helpers.js +1 -1
  78. package/lib/commands/skill/push-execute.js +1 -1
  79. package/lib/commands/skill/push-flow-helpers.js +1 -1
  80. package/lib/commands/skill/push-retarget.js +1 -1
  81. package/lib/commands/skill/scopes.js +1 -1
  82. package/lib/commands/skill/summary.js +1 -1
  83. package/lib/commands/skill/templates.js +1 -1
  84. package/lib/commands/skill/validate.js +1 -1
  85. package/lib/commands/sql/detail.js +1 -1
  86. package/lib/commands/sql/exec.js +1 -1
  87. package/lib/commands/sql/index.js +1 -1
  88. package/lib/commands/update.js +1 -1
  89. package/lib/commands/user-account/bind.js +1 -1
  90. package/lib/commands/user-account/index.js +1 -1
  91. package/lib/commands/workspace/index.js +1 -1
  92. package/lib/config/domain-config.js +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.js +1 -1
  100. package/lib/constant/env.js +1 -1
  101. package/lib/constant/output.js +1 -1
  102. package/lib/constant/product.js +1 -1
  103. package/lib/constant/region.js +1 -1
  104. package/lib/constant/risk.js +1 -1
  105. package/lib/constant/url.js +1 -1
  106. package/lib/context.js +1 -1
  107. package/lib/core/api-client.d.ts +6 -6
  108. package/lib/core/api-client.js +1 -1
  109. package/lib/core/db-resolver.js +1 -1
  110. package/lib/core/kb-management-client.d.ts +5 -3
  111. package/lib/core/kb-management-client.js +1 -1
  112. package/lib/core/kb-search-client.d.ts +6 -1
  113. package/lib/core/kb-search-client.js +1 -1
  114. package/lib/core/sdk-client.js +1 -1
  115. package/lib/errors.js +1 -1
  116. package/lib/framework/access-error.js +1 -1
  117. package/lib/framework/build-all-flags.js +1 -1
  118. package/lib/framework/dryrun.js +1 -1
  119. package/lib/framework/flags.js +1 -1
  120. package/lib/framework/help.js +1 -1
  121. package/lib/framework/index.js +1 -1
  122. package/lib/framework/output.js +1 -1
  123. package/lib/framework/preparse.js +1 -1
  124. package/lib/framework/rate-limit.js +1 -1
  125. package/lib/framework/raw-flags.js +1 -1
  126. package/lib/framework/response.js +1 -1
  127. package/lib/framework/runner-confirmation.js +1 -1
  128. package/lib/framework/runner-error.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/service-order.js +1 -1
  132. package/lib/framework/types.js +1 -1
  133. package/lib/generated/build-info.d.ts +4 -4
  134. package/lib/generated/build-info.js +1 -1
  135. package/lib/generated/official-routing.js +1 -1
  136. package/lib/generated/routing-contract.js +1 -1
  137. package/lib/help.js +1 -1
  138. package/lib/postinstall.js +1 -1
  139. package/lib/runtime/confirmation.js +1 -1
  140. package/lib/runtime/event.js +1 -1
  141. package/lib/runtime/index.js +1 -1
  142. package/lib/runtime/queue.js +1 -1
  143. package/lib/runtime/resolve.js +1 -1
  144. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  145. package/lib/services/dataset-import/excel-reader.js +1 -1
  146. package/lib/services/dataset-import/image-bytes.js +1 -1
  147. package/lib/services/dataset-import/image-ooxml.js +1 -1
  148. package/lib/services/dataset-import/image-runner.js +1 -1
  149. package/lib/services/dataset-import/metadata.js +1 -1
  150. package/lib/services/dataset-import/preview.js +1 -1
  151. package/lib/services/dataset-import/runner.js +1 -1
  152. package/lib/skills/builtin-skill.js +1 -1
  153. package/lib/skills/npx-skills-add.js +1 -1
  154. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  155. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  156. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  157. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  158. package/lib/skills/runtime-skill-sync/links.js +1 -1
  159. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  160. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  161. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  162. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  163. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  164. package/lib/skills/runtime-skill-sync/push.js +1 -1
  165. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  166. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  167. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  168. package/lib/skills/runtime-skill-sync.js +1 -1
  169. package/lib/skills/skill-presence.js +1 -1
  170. package/lib/utils/access-key-redaction.js +1 -1
  171. package/lib/utils/apply-jq-filter.js +1 -1
  172. package/lib/utils/cli-version-check.js +1 -1
  173. package/lib/utils/cli-version-policy.js +1 -1
  174. package/lib/utils/logger.js +1 -1
  175. package/lib/utils/lossless-json.js +1 -1
  176. package/lib/utils/params.js +1 -1
  177. package/lib/utils/positive-safe-integer.js +1 -1
  178. package/lib/utils/redaction.js +1 -1
  179. package/lib/utils/update-notice.js +1 -1
  180. package/lib/utils/version.js +1 -1
  181. package/lib/utils/write-cli-side-channel.js +1 -1
  182. package/package.json +1 -1
  183. package/skills/lovrabet/SKILL.md +2 -2
  184. package/skills/lovrabet/references/lovrabet-kb-workflow.md +9 -5
  185. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a94_0x3c0521=a94_0x19a6;function a94_0x3131(){const _0x40166a=['<expr>','format','46990hgIMlL','yes','<name>','production\x20|\x20development\x20|\x20daily','13689mMLGDx','json\x20|\x20pretty\x20|\x20compress','nonInteractive','params','name','string','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','31482AKjqJt','boolean','Name\x20filter','Record\x20ID','148589shAuVg','map','dryRun','dry-run','clear','meowKey','Preview\x20operation\x20without\x20executing','help','Override\x20appcode','cliBinName','Alias\x20for\x20--non-interactive','app','Clear\x20output','Skip\x20confirmation\x20for\x20high-risk\x20writes','6vDznlj','1397cARAbN','fromEntries','verbose','88teoIfu','860785ardXNu','Use\x20global\x20config\x20scope','appcode','<code>','47085sBAEEX','JSON\x20params\x20for\x20execute\x20commands','global','Verbose\x20output','cliDisplayName','872cUWMEA','env','non-interactive','570884jcyryO','Environment','Force\x20non-interactive\x20mode\x20(CI)'];a94_0x3131=function(){return _0x40166a;};return a94_0x3131();}(function(_0x340a79,_0x321f48){const _0xdbf440=a94_0x19a6,_0x2f2168=_0x340a79();while(!![]){try{const _0x39e476=parseInt(_0xdbf440(0xbf))/0x1+-parseInt(_0xdbf440(0xc7))/0x2+parseInt(_0xdbf440(0xd7))/0x3*(-parseInt(_0xdbf440(0xed))/0x4)+parseInt(_0xdbf440(0xbb))/0x5*(parseInt(_0xdbf440(0xe9))/0x6)+parseInt(_0xdbf440(0xdb))/0x7+-parseInt(_0xdbf440(0xc4))/0x8*(parseInt(_0xdbf440(0xd0))/0x9)+parseInt(_0xdbf440(0xcc))/0xa*(parseInt(_0xdbf440(0xea))/0xb);if(_0x39e476===_0x321f48)break;else _0x2f2168['push'](_0x2f2168['shift']());}catch(_0x5373a2){_0x2f2168['push'](_0x2f2168['shift']());}}}(a94_0x3131,0x25e07));import{PRODUCT_CONFIG}from'../constant/product.js';function a94_0x19a6(_0x3bae7f,_0xc6bae4){_0x3bae7f=_0x3bae7f-0xbb;const _0x3131e2=a94_0x3131();let _0x19a67e=_0x3131e2[_0x3bae7f];return _0x19a67e;}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a94_0x3c0521(0xe4)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a94_0x3c0521(0xc3)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a94_0x3c0521(0xbd),'meowKey':a94_0x3c0521(0xbd),'type':a94_0x3c0521(0xd5),'description':a94_0x3c0521(0xe3),'hint':a94_0x3c0521(0xbe)},{'name':'app','meowKey':'app','type':a94_0x3c0521(0xd5),'description':'Select\x20app\x20profile\x20by\x20name','hint':a94_0x3c0521(0xce)},{'name':a94_0x3c0521(0xc5),'meowKey':a94_0x3c0521(0xc5),'type':a94_0x3c0521(0xd5),'description':a94_0x3c0521(0xc8),'hint':a94_0x3c0521(0xcf)},{'name':'format','meowKey':'format','type':a94_0x3c0521(0xd5),'description':'Output\x20format','hint':a94_0x3c0521(0xd1)},{'name':'jq','meowKey':'jq','type':a94_0x3c0521(0xd5),'description':a94_0x3c0521(0xd6),'hint':a94_0x3c0521(0xca)},{'name':'dry-run','meowKey':a94_0x3c0521(0xdd),'type':a94_0x3c0521(0xd8),'description':a94_0x3c0521(0xe1)},{'name':a94_0x3c0521(0xcd),'meowKey':a94_0x3c0521(0xcd),'type':'boolean','description':a94_0x3c0521(0xe8)},{'name':a94_0x3c0521(0xc6),'meowKey':a94_0x3c0521(0xd2),'type':a94_0x3c0521(0xd8),'description':a94_0x3c0521(0xc9)},{'name':a94_0x3c0521(0xc1),'meowKey':'global','type':a94_0x3c0521(0xd8),'description':a94_0x3c0521(0xbc)},{'name':'ci','meowKey':'ci','type':'boolean','description':a94_0x3c0521(0xe5),'hidden':!![]},{'name':'help','meowKey':a94_0x3c0521(0xe2),'type':a94_0x3c0521(0xd8),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':a94_0x3c0521(0xd5),'description':a94_0x3c0521(0xda),'hidden':!![]},{'name':a94_0x3c0521(0xd4),'meowKey':a94_0x3c0521(0xd4),'type':a94_0x3c0521(0xd5),'description':a94_0x3c0521(0xd9),'hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a94_0x3c0521(0xd5),'description':'SQL\x20query\x20code','hidden':!![]},{'name':'params','meowKey':a94_0x3c0521(0xd3),'type':a94_0x3c0521(0xd5),'description':a94_0x3c0521(0xc0),'hidden':!![]},{'name':a94_0x3c0521(0xec),'meowKey':a94_0x3c0521(0xec),'type':a94_0x3c0521(0xd8),'description':a94_0x3c0521(0xc2),'hidden':!![]},{'name':a94_0x3c0521(0xdf),'meowKey':a94_0x3c0521(0xdf),'type':a94_0x3c0521(0xd8),'description':a94_0x3c0521(0xe7),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a94_0x3c0521(0xbd),a94_0x3c0521(0xe6),a94_0x3c0521(0xc5),a94_0x3c0521(0xcb),'jq',a94_0x3c0521(0xde),'yes','non-interactive','ci']);export function buildMeowFlags(){const _0xf2dad0=a94_0x3c0521;return Object[_0xf2dad0(0xeb)](GLOBAL_FLAGS[_0xf2dad0(0xdc)](_0x18f91a=>[_0x18f91a[_0xf2dad0(0xe0)],{'type':_0x18f91a['type']}]));}
1
+ function a94_0x5236(){const _0x6b7958=['77346AhQfpa','Skip\x20confirmation\x20for\x20high-risk\x20writes','map','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','string','<name>','help','json\x20|\x20pretty\x20|\x20compress','params','Use\x20global\x20config\x20scope','production\x20|\x20development\x20|\x20daily','non-interactive','JSON\x20params\x20for\x20execute\x20commands','global','type','boolean','Name\x20filter','appcode','verbose','name','fromEntries','54NqzsXf','5329904rOTyem','cliBinName','130qWsYvX','595637XEebvQ','Alias\x20for\x20--non-interactive','Select\x20app\x20profile\x20by\x20name','dry-run','Record\x20ID','Environment','clear','app','yes','1981220PjBtlz','3495StuCTw','3488406BauwTB','sqlcode','dryRun','env','SQL\x20query\x20code','9863640oCMyuA','Clear\x20output','<expr>','Force\x20non-interactive\x20mode\x20(CI)','meowKey','824dbDFbS','Override\x20appcode'];a94_0x5236=function(){return _0x6b7958;};return a94_0x5236();}const a94_0x3f0a11=a94_0x5645;function a94_0x5645(_0x45d5bd,_0x2ea108){_0x45d5bd=_0x45d5bd-0x75;const _0x5236c8=a94_0x5236();let _0x564582=_0x5236c8[_0x45d5bd];return _0x564582;}(function(_0x342691,_0x4c4121){const _0x28d6a4=a94_0x5645,_0x12e82c=_0x342691();while(!![]){try{const _0x17712e=parseInt(_0x28d6a4(0x99))/0x1*(parseInt(_0x28d6a4(0x8e))/0x2)+parseInt(_0x28d6a4(0x9a))/0x3+-parseInt(_0x28d6a4(0x8c))/0x4+-parseInt(_0x28d6a4(0x98))/0x5+-parseInt(_0x28d6a4(0x8b))/0x6*(parseInt(_0x28d6a4(0x8f))/0x7)+-parseInt(_0x28d6a4(0xa4))/0x8*(-parseInt(_0x28d6a4(0x76))/0x9)+parseInt(_0x28d6a4(0x9f))/0xa;if(_0x17712e===_0x4c4121)break;else _0x12e82c['push'](_0x12e82c['shift']());}catch(_0x1cf2a2){_0x12e82c['push'](_0x12e82c['shift']());}}}(a94_0x5236,0xbb408));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a94_0x3f0a11(0x8d)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a94_0x3f0a11(0x87),'type':a94_0x3f0a11(0x7a),'description':a94_0x3f0a11(0x75),'hint':'<code>'},{'name':a94_0x3f0a11(0x96),'meowKey':'app','type':a94_0x3f0a11(0x7a),'description':a94_0x3f0a11(0x91),'hint':a94_0x3f0a11(0x7b)},{'name':a94_0x3f0a11(0x9d),'meowKey':a94_0x3f0a11(0x9d),'type':a94_0x3f0a11(0x7a),'description':a94_0x3f0a11(0x94),'hint':a94_0x3f0a11(0x80)},{'name':'format','meowKey':'format','type':a94_0x3f0a11(0x7a),'description':'Output\x20format','hint':a94_0x3f0a11(0x7d)},{'name':'jq','meowKey':'jq','type':'string','description':a94_0x3f0a11(0x79),'hint':a94_0x3f0a11(0xa1)},{'name':a94_0x3f0a11(0x92),'meowKey':a94_0x3f0a11(0x9c),'type':a94_0x3f0a11(0x85),'description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':a94_0x3f0a11(0x97),'type':a94_0x3f0a11(0x85),'description':a94_0x3f0a11(0x77)},{'name':a94_0x3f0a11(0x81),'meowKey':'nonInteractive','type':a94_0x3f0a11(0x85),'description':a94_0x3f0a11(0xa2)},{'name':a94_0x3f0a11(0x83),'meowKey':a94_0x3f0a11(0x83),'type':a94_0x3f0a11(0x85),'description':a94_0x3f0a11(0x7f)},{'name':'ci','meowKey':'ci','type':a94_0x3f0a11(0x85),'description':a94_0x3f0a11(0x90),'hidden':!![]},{'name':'help','meowKey':a94_0x3f0a11(0x7c),'type':a94_0x3f0a11(0x85),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':'string','description':a94_0x3f0a11(0x93),'hidden':!![]},{'name':'name','meowKey':a94_0x3f0a11(0x89),'type':'string','description':a94_0x3f0a11(0x86),'hidden':!![]},{'name':'sqlcode','meowKey':a94_0x3f0a11(0x9b),'type':a94_0x3f0a11(0x7a),'description':a94_0x3f0a11(0x9e),'hidden':!![]},{'name':'params','meowKey':a94_0x3f0a11(0x7e),'type':a94_0x3f0a11(0x7a),'description':a94_0x3f0a11(0x82),'hidden':!![]},{'name':a94_0x3f0a11(0x88),'meowKey':a94_0x3f0a11(0x88),'type':'boolean','description':'Verbose\x20output','hidden':!![]},{'name':a94_0x3f0a11(0x95),'meowKey':a94_0x3f0a11(0x95),'type':'boolean','description':a94_0x3f0a11(0xa0),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a94_0x3f0a11(0x87),'app',a94_0x3f0a11(0x9d),'format','jq','dry-run',a94_0x3f0a11(0x97),'non-interactive','ci']);export function buildMeowFlags(){const _0x273881=a94_0x3f0a11;return Object[_0x273881(0x8a)](GLOBAL_FLAGS[_0x273881(0x78)](_0x3c55a7=>[_0x3c55a7[_0x273881(0xa3)],{'type':_0x3c55a7[_0x273881(0x84)]}]));}
@@ -1 +1 @@
1
- const a95_0x4f111b=a95_0xd105;(function(_0x476591,_0x3939b0){const _0x297c49=a95_0xd105,_0x214195=_0x476591();while(!![]){try{const _0x2e1da0=parseInt(_0x297c49(0x175))/0x1*(-parseInt(_0x297c49(0x177))/0x2)+parseInt(_0x297c49(0x17a))/0x3*(-parseInt(_0x297c49(0x16f))/0x4)+-parseInt(_0x297c49(0x17b))/0x5*(parseInt(_0x297c49(0x178))/0x6)+parseInt(_0x297c49(0x16c))/0x7+-parseInt(_0x297c49(0x17c))/0x8+parseInt(_0x297c49(0x16e))/0x9*(parseInt(_0x297c49(0x170))/0xa)+parseInt(_0x297c49(0x176))/0xb*(parseInt(_0x297c49(0x179))/0xc);if(_0x2e1da0===_0x3939b0)break;else _0x214195['push'](_0x214195['shift']());}catch(_0x15967c){_0x214195['push'](_0x214195['shift']());}}}(a95_0x3fd2,0x27dfb));function a95_0xd105(_0x20bddd,_0x412a63){_0x20bddd=_0x20bddd-0x16c;const _0x3fd2f1=a95_0x3fd2();let _0xd105b6=_0x3fd2f1[_0x20bddd];return _0xd105b6;}export const DEFAULT_APP_PROFILE_NAME=a95_0x4f111b(0x171);export const DEFAULT_CONFIG_VALUES={'env':a95_0x4f111b(0x173),'format':a95_0x4f111b(0x16d),'locale':a95_0x4f111b(0x174),'riskLevel':a95_0x4f111b(0x172)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a95_0x4f111b(0x16d);function a95_0x3fd2(){const _0x325933=['compress','378yiuvQh','1256CwQCDq','31210mExaaM','main','write','production','en-US','673lflFcL','3939980Aejxvf','124wzCSxP','1896YNnOSs','12pHsTTA','2559FFDsrm','695AhSzrB','1510488pgKXcp','1514548zSqpAJ'];a95_0x3fd2=function(){return _0x325933;};return a95_0x3fd2();}
1
+ function a95_0x1663(){const _0x596b7c=['production','32UqVTMV','59521njUPbA','compress','67509GkCSCr','790xpVTHl','242380Niltts','30rgOcKg','en-US','6kYqWwY','3087574xAKefN','4693962fzQWXp','1136078pzObIL','1197977idVaIB'];a95_0x1663=function(){return _0x596b7c;};return a95_0x1663();}const a95_0x6f6a09=a95_0x4cc0;(function(_0x4c1985,_0x1782fe){const _0x5d2ffc=a95_0x4cc0,_0x286bfa=_0x4c1985();while(!![]){try{const _0x38976e=parseInt(_0x5d2ffc(0xae))/0x1+parseInt(_0x5d2ffc(0xbb))/0x2*(-parseInt(_0x5d2ffc(0xb8))/0x3)+parseInt(_0x5d2ffc(0xb5))/0x4*(parseInt(_0x5d2ffc(0xb6))/0x5)+-parseInt(_0x5d2ffc(0xba))/0x6+parseInt(_0x5d2ffc(0xb9))/0x7*(parseInt(_0x5d2ffc(0xb0))/0x8)+parseInt(_0x5d2ffc(0xb3))/0x9+parseInt(_0x5d2ffc(0xb4))/0xa*(-parseInt(_0x5d2ffc(0xb1))/0xb);if(_0x38976e===_0x1782fe)break;else _0x286bfa['push'](_0x286bfa['shift']());}catch(_0x1ba65f){_0x286bfa['push'](_0x286bfa['shift']());}}}(a95_0x1663,0xf116e));export const DEFAULT_APP_PROFILE_NAME='main';function a95_0x4cc0(_0x1ff46e,_0x17c730){_0x1ff46e=_0x1ff46e-0xae;const _0x166323=a95_0x1663();let _0x4cc02d=_0x166323[_0x1ff46e];return _0x4cc02d;}export const DEFAULT_CONFIG_VALUES={'env':a95_0x6f6a09(0xaf),'format':a95_0x6f6a09(0xb2),'locale':a95_0x6f6a09(0xb7),'riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a95_0x6f6a09(0xb2);
@@ -1 +1 @@
1
- const a96_0x40e6ce=a96_0x85d2;function a96_0x48fc(){const _0x23c905=['600nmDFwZ','npmRegistryBaseUrl','/dist/lovrabet-cli/config/index.json','3HilDAy','4613016hPlSyp','skillSource','14NrZwhE','30qlsNRQ','140439WMNMKT','14956240MeuYoQ','6305SHJLju','3846468PqPvRw','2088PvkZAR','4TMLiFh','70103QkzovF','1065159wqitkD'];a96_0x48fc=function(){return _0x23c905;};return a96_0x48fc();}(function(_0x557f5d,_0x4bcbf0){const _0x313605=a96_0x85d2,_0x3260ae=_0x557f5d();while(!![]){try{const _0x42d2a8=-parseInt(_0x313605(0x83))/0x1*(parseInt(_0x313605(0x88))/0x2)+-parseInt(_0x313605(0x7e))/0x3*(-parseInt(_0x313605(0x86))/0x4)+-parseInt(_0x313605(0x85))/0x5*(parseInt(_0x313605(0x87))/0x6)+-parseInt(_0x313605(0x81))/0x7*(parseInt(_0x313605(0x7f))/0x8)+parseInt(_0x313605(0x7a))/0x9*(parseInt(_0x313605(0x82))/0xa)+parseInt(_0x313605(0x79))/0xb*(parseInt(_0x313605(0x7b))/0xc)+parseInt(_0x313605(0x84))/0xd;if(_0x42d2a8===_0x4bcbf0)break;else _0x3260ae['push'](_0x3260ae['shift']());}catch(_0x5a9a86){_0x3260ae['push'](_0x3260ae['shift']());}}}(a96_0x48fc,0xdedc8));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a96_0x40e6ce(0x80)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a96_0x40e6ce(0x7c)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG['cliCdnBaseUrl'];function a96_0x85d2(_0x3d7d3c,_0x2cb4dd){_0x3d7d3c=_0x3d7d3c-0x79;const _0x48fc97=a96_0x48fc();let _0x85d2c4=_0x48fc97[_0x3d7d3c];return _0x85d2c4;}export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a96_0x40e6ce(0x7d);
1
+ const a96_0xfd91df=a96_0x33c6;function a96_0x33c6(_0x16f48b,_0x5d3e13){_0x16f48b=_0x16f48b-0x1c7;const _0x22f5b9=a96_0x22f5();let _0x33c687=_0x22f5b9[_0x16f48b];return _0x33c687;}(function(_0x446bf3,_0xc9716){const _0x3fa535=a96_0x33c6,_0xa67385=_0x446bf3();while(!![]){try{const _0x266b47=-parseInt(_0x3fa535(0x1d4))/0x1*(-parseInt(_0x3fa535(0x1d3))/0x2)+parseInt(_0x3fa535(0x1ce))/0x3*(parseInt(_0x3fa535(0x1cc))/0x4)+parseInt(_0x3fa535(0x1c8))/0x5*(parseInt(_0x3fa535(0x1c9))/0x6)+parseInt(_0x3fa535(0x1d2))/0x7+parseInt(_0x3fa535(0x1cf))/0x8+-parseInt(_0x3fa535(0x1d1))/0x9*(parseInt(_0x3fa535(0x1ca))/0xa)+-parseInt(_0x3fa535(0x1cb))/0xb;if(_0x266b47===_0xc9716)break;else _0xa67385['push'](_0xa67385['shift']());}catch(_0x4ba6ff){_0xa67385['push'](_0xa67385['shift']());}}}(a96_0x22f5,0xa76de));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a96_0xfd91df(0x1cd)];function a96_0x22f5(){const _0x32810d=['3140zgFVsJ','10323115nhknbI','6916cFtNnA','skillSource','294ROXpSi','922912SUxvqo','/dist/lovrabet-cli/config/index.json','927YdOODW','279349xfwEaF','2ShYlQh','60839hHHKKE','cliCdnBaseUrl','5MPBDtm','7626270XWSqKr'];a96_0x22f5=function(){return _0x32810d;};return a96_0x22f5();}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a96_0xfd91df(0x1c7)];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a96_0xfd91df(0x1d0);
@@ -1 +1 @@
1
- function a97_0xb7ed(){const _0x54a0bc=['region','2133257CbAFWO','8QDyVVB','284537xdqzWv','kbService','production','1565912DbzFUY','1256121asgnsd','runtime','user','api','allowOfficialKbServiceDefault','570550ITIpPR','kbServiceDomain','skillDomain','3244518PKcMXQ','2688500kKngIJ','apiDomain'];a97_0xb7ed=function(){return _0x54a0bc;};return a97_0xb7ed();}const a97_0x4fc1a0=a97_0x1049;(function(_0x1dde3e,_0x250bc1){const _0x17c6f0=a97_0x1049,_0x1095bd=_0x1dde3e();while(!![]){try{const _0x38d335=-parseInt(_0x17c6f0(0x128))/0x1+parseInt(_0x17c6f0(0x131))/0x2+-parseInt(_0x17c6f0(0x12c))/0x3+parseInt(_0x17c6f0(0x12b))/0x4+-parseInt(_0x17c6f0(0x135))/0x5+parseInt(_0x17c6f0(0x134))/0x6+parseInt(_0x17c6f0(0x126))/0x7*(parseInt(_0x17c6f0(0x127))/0x8);if(_0x38d335===_0x250bc1)break;else _0x1095bd['push'](_0x1095bd['shift']());}catch(_0x33ea91){_0x1095bd['push'](_0x1095bd['shift']());}}}(a97_0xb7ed,0x44ae1));import{getEnv,isProduction}from'../constant/env.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';function a97_0x1049(_0x5a7c10,_0x4f5474){_0x5a7c10=_0x5a7c10-0x124;const _0xb7ede=a97_0xb7ed();let _0x104932=_0xb7ede[_0x5a7c10];return _0x104932;}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x313166){const _0xe6e828=a97_0x1049;customApiDomain=_0x313166?.[_0xe6e828(0x124)],customUserDomain=_0x313166?.['userDomain'],customRuntimeDomain=_0x313166?.['runtimeDomain'],customSkillDomain=_0x313166?.[_0xe6e828(0x133)],customKbServiceDomain=_0x313166?.[_0xe6e828(0x132)],allowOfficialKbServiceDefault=_0x313166?.[_0xe6e828(0x130)]??!![],activeRegion=_0x313166?.[_0xe6e828(0x125)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x46b969=a97_0x1049,_0x441b11=OFFICIAL_ROUTING_PROFILES[activeRegion]['serviceDomains'];return isProduction(getEnv())?_0x441b11[_0x46b969(0x12a)]:'daily'in _0x441b11?_0x441b11['daily']:_0x441b11[_0x46b969(0x12a)];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a97_0x4fc1a0(0x12e)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a97_0x4fc1a0(0x12f)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a97_0x4fc1a0(0x12d)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbServiceDomain=()=>{const _0x22b4ef=a97_0x4fc1a0;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;const _0x430849=getActiveRegionDomains();return _0x22b4ef(0x129)in _0x430849?_0x430849[_0x22b4ef(0x129)]:undefined;};
1
+ const a97_0x25586d=a97_0x36b5;(function(_0x4e722b,_0x460726){const _0x27f7dd=a97_0x36b5,_0x377879=_0x4e722b();while(!![]){try{const _0x42d113=-parseInt(_0x27f7dd(0x10c))/0x1*(parseInt(_0x27f7dd(0xfd))/0x2)+-parseInt(_0x27f7dd(0x114))/0x3*(-parseInt(_0x27f7dd(0x10a))/0x4)+parseInt(_0x27f7dd(0x109))/0x5+-parseInt(_0x27f7dd(0x107))/0x6+-parseInt(_0x27f7dd(0x103))/0x7*(-parseInt(_0x27f7dd(0x100))/0x8)+parseInt(_0x27f7dd(0x105))/0x9*(parseInt(_0x27f7dd(0x10d))/0xa)+-parseInt(_0x27f7dd(0x10b))/0xb;if(_0x42d113===_0x460726)break;else _0x377879['push'](_0x377879['shift']());}catch(_0x44939e){_0x377879['push'](_0x377879['shift']());}}}(a97_0x56fd,0x366e1));import{getEnv,isProduction}from'../constant/env.js';function a97_0x36b5(_0x3c191f,_0x48b629){_0x3c191f=_0x3c191f-0xfd;const _0x56fd0b=a97_0x56fd();let _0x36b520=_0x56fd0b[_0x3c191f];return _0x36b520;}function a97_0x56fd(){const _0x2a9d8e=['allowOfficialKbServiceDefault','skillDomain','api','kbService','region','production','6XubDbP','2oHVqtI','user','kbServiceDomain','121880UCTxpT','daily','runtimeDomain','91krbUDl','runtime','1532799shIWyS','apiDomain','990264WysBhN','skill','1587480oHDLdf','123204qdTcbE','5733244GFwwSB','8582DUJaSb','20kefDfu'];a97_0x56fd=function(){return _0x2a9d8e;};return a97_0x56fd();}import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x2a4e65){const _0x477333=a97_0x36b5;customApiDomain=_0x2a4e65?.[_0x477333(0x106)],customUserDomain=_0x2a4e65?.['userDomain'],customRuntimeDomain=_0x2a4e65?.[_0x477333(0x102)],customSkillDomain=_0x2a4e65?.[_0x477333(0x10f)],customKbServiceDomain=_0x2a4e65?.[_0x477333(0xff)],allowOfficialKbServiceDefault=_0x2a4e65?.[_0x477333(0x10e)]??!![],activeRegion=_0x2a4e65?.[_0x477333(0x112)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x302ba9=a97_0x36b5,_0x587a97=OFFICIAL_ROUTING_PROFILES[activeRegion]['serviceDomains'];return isProduction(getEnv())?_0x587a97[_0x302ba9(0x113)]:_0x302ba9(0x101)in _0x587a97?_0x587a97[_0x302ba9(0x101)]:_0x587a97['production'];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a97_0x25586d(0xfe)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a97_0x25586d(0x110)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a97_0x25586d(0x104)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a97_0x25586d(0x108)];export const getKbServiceDomain=()=>{const _0x5ca0fd=a97_0x25586d;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;const _0x413cfe=getActiveRegionDomains();return _0x5ca0fd(0x111)in _0x413cfe?_0x413cfe[_0x5ca0fd(0x111)]:undefined;};
@@ -1 +1 @@
1
- const a98_0x4d8f80=a98_0x3321;(function(_0x403e81,_0x547242){const _0x1956c6=a98_0x3321,_0x333bc6=_0x403e81();while(!![]){try{const _0x56adc3=parseInt(_0x1956c6(0x17a))/0x1+-parseInt(_0x1956c6(0x17f))/0x2*(-parseInt(_0x1956c6(0x177))/0x3)+parseInt(_0x1956c6(0x17d))/0x4*(parseInt(_0x1956c6(0x184))/0x5)+-parseInt(_0x1956c6(0x178))/0x6+parseInt(_0x1956c6(0x182))/0x7+parseInt(_0x1956c6(0x17e))/0x8+parseInt(_0x1956c6(0x179))/0x9*(-parseInt(_0x1956c6(0x180))/0xa);if(_0x56adc3===_0x547242)break;else _0x333bc6['push'](_0x333bc6['shift']());}catch(_0x459559){_0x333bc6['push'](_0x333bc6['shift']());}}}(a98_0x2bf3,0x70845));import{productEnv}from'../constant/product.js';function a98_0x3321(_0x5cfb3a,_0x15eb92){_0x5cfb3a=_0x5cfb3a-0x176;const _0x2bf300=a98_0x2bf3();let _0x332160=_0x2bf300[_0x5cfb3a];return _0x332160;}export const RUNTIME_ENV_VALUES=[a98_0x4d8f80(0x185),a98_0x4d8f80(0x181),a98_0x4d8f80(0x17b)];export function normalizeEnv(_0x576fd2){const _0x5cfa87=a98_0x4d8f80;return _0x576fd2===_0x5cfa87(0x176)?_0x5cfa87(0x185):_0x576fd2;}export function isProduction(_0x2a9e5d){const _0x32cbf0=a98_0x4d8f80;return normalizeEnv(_0x2a9e5d)===_0x32cbf0(0x185);}export function isDaily(_0x5c6b55){const _0x38e23c=a98_0x4d8f80;return normalizeEnv(_0x5c6b55)===_0x38e23c(0x17b);}export function isDev(_0x4f8420){const _0xe16e97=a98_0x4d8f80,_0x12c9fc=normalizeEnv(_0x4f8420);return _0x12c9fc===_0xe16e97(0x181)||_0x12c9fc===_0xe16e97(0x183);}let env=normalizeEnv(productEnv(a98_0x4d8f80(0x17c))||'production');export function getEnv(){return env;}function a98_0x2bf3(){const _0x41df2c=['183774MorQZi','10ruLeoQ','development','5630674BuoHAv','dev','65hMxJmC','production','online','6cdvjKl','3408990FqDtuM','9868302xlnXHn','323387OoKBBl','daily','ENV','90268UArtjp','4164784NTulrY'];a98_0x2bf3=function(){return _0x41df2c;};return a98_0x2bf3();}export function initEnv(_0xc847ed){env=normalizeEnv(_0xc847ed);}
1
+ const a98_0x3ee6f5=a98_0x5002;(function(_0xb4c3b6,_0x28dae7){const _0x39ef00=a98_0x5002,_0x11ca41=_0xb4c3b6();while(!![]){try{const _0x3780cf=-parseInt(_0x39ef00(0xe0))/0x1*(-parseInt(_0x39ef00(0xdb))/0x2)+parseInt(_0x39ef00(0xe4))/0x3*(parseInt(_0x39ef00(0xe6))/0x4)+parseInt(_0x39ef00(0xdf))/0x5*(-parseInt(_0x39ef00(0xe5))/0x6)+parseInt(_0x39ef00(0xdc))/0x7*(-parseInt(_0x39ef00(0xd7))/0x8)+parseInt(_0x39ef00(0xe1))/0x9*(-parseInt(_0x39ef00(0xde))/0xa)+parseInt(_0x39ef00(0xda))/0xb+parseInt(_0x39ef00(0xd6))/0xc;if(_0x3780cf===_0x28dae7)break;else _0x11ca41['push'](_0x11ca41['shift']());}catch(_0x3d451c){_0x11ca41['push'](_0x11ca41['shift']());}}}(a98_0x2730,0x8a250));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=['production',a98_0x3ee6f5(0xe2),a98_0x3ee6f5(0xe3)];export function normalizeEnv(_0x2c0155){const _0x1736c1=a98_0x3ee6f5;return _0x2c0155===_0x1736c1(0xd8)?_0x1736c1(0xd9):_0x2c0155;}export function isProduction(_0x149b02){const _0x2645c5=a98_0x3ee6f5;return normalizeEnv(_0x149b02)===_0x2645c5(0xd9);}export function isDaily(_0xaefc2a){const _0x164d66=a98_0x3ee6f5;return normalizeEnv(_0xaefc2a)===_0x164d66(0xe3);}function a98_0x2730(){const _0x1d9218=['9774FgUJxs','development','daily','1068648LhMvBp','642TcyRRu','8CTJJpC','8899212BRhcuC','56712IvQnzr','online','production','1432431YeLpYD','1930220zizEfw','903NqMRVO','ENV','4150oZkTDS','28895CIvIoP','1TNFdvO'];a98_0x2730=function(){return _0x1d9218;};return a98_0x2730();}export function isDev(_0x4def92){const _0x2f59dd=a98_0x3ee6f5,_0x2854db=normalizeEnv(_0x4def92);return _0x2854db===_0x2f59dd(0xe2)||_0x2854db==='dev';}let env=normalizeEnv(productEnv(a98_0x3ee6f5(0xdd))||a98_0x3ee6f5(0xd9));export function getEnv(){return env;}function a98_0x5002(_0x2044f9,_0x42d1d7){_0x2044f9=_0x2044f9-0xd6;const _0x273022=a98_0x2730();let _0x5002ee=_0x273022[_0x2044f9];return _0x5002ee;}export function initEnv(_0x3ef66e){env=normalizeEnv(_0x3ef66e);}
@@ -1 +1 @@
1
- const a99_0x79d528=a99_0x3d35;(function(_0x177750,_0x52f10d){const _0x51727f=a99_0x3d35,_0x425a23=_0x177750();while(!![]){try{const _0x5baddf=-parseInt(_0x51727f(0x189))/0x1*(parseInt(_0x51727f(0x188))/0x2)+parseInt(_0x51727f(0x18a))/0x3+-parseInt(_0x51727f(0x18c))/0x4*(-parseInt(_0x51727f(0x18e))/0x5)+-parseInt(_0x51727f(0x187))/0x6+parseInt(_0x51727f(0x18b))/0x7*(parseInt(_0x51727f(0x184))/0x8)+parseInt(_0x51727f(0x182))/0x9+-parseInt(_0x51727f(0x183))/0xa*(parseInt(_0x51727f(0x185))/0xb);if(_0x5baddf===_0x52f10d)break;else _0x425a23['push'](_0x425a23['shift']());}catch(_0x4ac9e3){_0x425a23['push'](_0x425a23['shift']());}}}(a99_0xceb0,0x75adc));function a99_0x3d35(_0x3b6426,_0x21b55c){_0x3b6426=_0x3b6426-0x182;const _0xceb006=a99_0xceb0();let _0x3d3553=_0xceb006[_0x3b6426];return _0x3d3553;}function a99_0xceb0(){const _0x3082e1=['2098482ZktKkG','23884fVxKJf','161812fDdfYa','pretty','95stsVZo','36711gpFLgi','10hlvdLE','1096JDYVub','2488541DHUNIb','compress','4182690vfIubo','2meqczR','534266HHCpPa'];a99_0xceb0=function(){return _0x3082e1;};return a99_0xceb0();}export const OUTPUT_FORMAT_VALUES=['json',a99_0x79d528(0x18d),a99_0x79d528(0x186)];
1
+ const a99_0xb666bf=a99_0x18a8;(function(_0xc6a1e8,_0x462ea9){const _0x50bf31=a99_0x18a8,_0x2b3b96=_0xc6a1e8();while(!![]){try{const _0x541c54=parseInt(_0x50bf31(0x116))/0x1*(-parseInt(_0x50bf31(0x11d))/0x2)+parseInt(_0x50bf31(0x11b))/0x3*(-parseInt(_0x50bf31(0x114))/0x4)+-parseInt(_0x50bf31(0x11c))/0x5*(parseInt(_0x50bf31(0x115))/0x6)+-parseInt(_0x50bf31(0x120))/0x7+-parseInt(_0x50bf31(0x118))/0x8+parseInt(_0x50bf31(0x11a))/0x9+-parseInt(_0x50bf31(0x119))/0xa*(-parseInt(_0x50bf31(0x117))/0xb);if(_0x541c54===_0x462ea9)break;else _0x2b3b96['push'](_0x2b3b96['shift']());}catch(_0x5c6a1e){_0x2b3b96['push'](_0x2b3b96['shift']());}}}(a99_0x3c72,0x81012));function a99_0x3c72(){const _0x2181cb=['5891184MoSDFL','18984LAenaP','895cugVXF','64vJzCvY','pretty','compress','6799870FuhgPZ','json','620vIJsgT','11550Ybwgmw','7935bxAHmi','25531RotLFk','2625080hICBEB','11860HfVuKH'];a99_0x3c72=function(){return _0x2181cb;};return a99_0x3c72();}function a99_0x18a8(_0x432024,_0x3d536d){_0x432024=_0x432024-0x113;const _0x3c72fd=a99_0x3c72();let _0x18a8f2=_0x3c72fd[_0x432024];return _0x18a8f2;}export const OUTPUT_FORMAT_VALUES=[a99_0xb666bf(0x113),a99_0xb666bf(0x11e),a99_0xb666bf(0x11f)];
@@ -1 +1 @@
1
- function a100_0x5a38(_0xbd47aa,_0xc45782){_0xbd47aa=_0xbd47aa-0xc4;const _0xdecfe0=a100_0xdecf();let _0x5a3815=_0xdecfe0[_0xbd47aa];return _0x5a3815;}const a100_0x2bc2bb=a100_0x5a38;function a100_0xdecf(){const _0x58e782=['232FsOStU','https://g.lovrabet.com','11089737OmeeYn','611957xBJGzf','.lovrabet','55HRXGiw','2xhqBpj','36gWbCsh','RABETBASE','Lovrabet\x20User\x20Center','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','1020050yBDWJy','legacyEnvPrefixes','SKIP_NPX_SKILLS','map','21897POCcBH','1744JgJiBz','31290HYaxaE','LOVRABET','lovrabet','98560nAdyMT','5146063cklIHU','72JRPqqG','.lovrabet.json'];a100_0xdecf=function(){return _0x58e782;};return a100_0xdecf();}(function(_0x3defa5,_0x92c9eb){const _0x3536de=a100_0x5a38,_0x560998=_0x3defa5();while(!![]){try{const _0x548b99=parseInt(_0x3536de(0xc7))/0x1*(-parseInt(_0x3536de(0xca))/0x2)+parseInt(_0x3536de(0xd3))/0x3*(-parseInt(_0x3536de(0xc4))/0x4)+parseInt(_0x3536de(0xd8))/0x5*(parseInt(_0x3536de(0xda))/0x6)+parseInt(_0x3536de(0xd5))/0x7*(parseInt(_0x3536de(0xd4))/0x8)+parseInt(_0x3536de(0xc6))/0x9+-parseInt(_0x3536de(0xcf))/0xa*(-parseInt(_0x3536de(0xc9))/0xb)+parseInt(_0x3536de(0xcb))/0xc*(-parseInt(_0x3536de(0xd9))/0xd);if(_0x548b99===_0x92c9eb)break;else _0x560998['push'](_0x560998['shift']());}catch(_0xea47d5){_0x560998['push'](_0x560998['shift']());}}}(a100_0xdecf,0xb2502));export const PRODUCT_CONFIG={'cliBinName':a100_0x2bc2bb(0xd7),'cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':'@lovrabet/lovrabet-cli','skillSource':'lovrabet/lovrabet-cli','internalSkillSource':a100_0x2bc2bb(0xce),'globalSkillName':a100_0x2bc2bb(0xd7),'npmRegistryBaseUrl':'https://registry.npmjs.org','cliCdnBaseUrl':a100_0x2bc2bb(0xc5),'envPrefix':a100_0x2bc2bb(0xd6),'legacyEnvPrefixes':[a100_0x2bc2bb(0xcc)],'configFileNames':[a100_0x2bc2bb(0xdb)],'newConfigFileName':a100_0x2bc2bb(0xdb),'homeDirName':a100_0x2bc2bb(0xc8),'logFileName':'.lovrabet-runtime.log','invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a100_0x2bc2bb(0xcd),'skipNpxSkillsEnvSuffix':a100_0x2bc2bb(0xd1),'accessKeyCreatePath':'/user/ak'};export function productEnvName(_0x548c1e){return PRODUCT_CONFIG['envPrefix']+'_'+_0x548c1e;}export function productEnvNames(_0x30c324){const _0x55722d=a100_0x2bc2bb;return[productEnvName(_0x30c324),...PRODUCT_CONFIG[_0x55722d(0xd0)][_0x55722d(0xd2)](_0x33a958=>_0x33a958+'_'+_0x30c324)];}export function productEnv(_0x411795){for(const _0x4ed310 of productEnvNames(_0x411795)){const _0x26fa2f=process.env[_0x4ed310];if(_0x26fa2f!==undefined)return _0x26fa2f;}return undefined;}
1
+ const a100_0x51f52a=a100_0x387d;(function(_0x903e79,_0x421b26){const _0x5d3e2c=a100_0x387d,_0x2a2c35=_0x903e79();while(!![]){try{const _0x51b42c=parseInt(_0x5d3e2c(0x1af))/0x1*(-parseInt(_0x5d3e2c(0x1ac))/0x2)+parseInt(_0x5d3e2c(0x1bd))/0x3+parseInt(_0x5d3e2c(0x1b6))/0x4*(-parseInt(_0x5d3e2c(0x1bb))/0x5)+-parseInt(_0x5d3e2c(0x1b2))/0x6+-parseInt(_0x5d3e2c(0x1b3))/0x7*(-parseInt(_0x5d3e2c(0x1ba))/0x8)+parseInt(_0x5d3e2c(0x1b7))/0x9+parseInt(_0x5d3e2c(0x1b8))/0xa*(parseInt(_0x5d3e2c(0x1ad))/0xb);if(_0x51b42c===_0x421b26)break;else _0x2a2c35['push'](_0x2a2c35['shift']());}catch(_0x1ad530){_0x2a2c35['push'](_0x2a2c35['shift']());}}}(a100_0x48ea,0x88417));export const PRODUCT_CONFIG={'cliBinName':a100_0x51f52a(0x1b1),'cliDisplayName':a100_0x51f52a(0x1ab),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':'lovrabet/lovrabet-cli','internalSkillSource':'git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','globalSkillName':'lovrabet','npmRegistryBaseUrl':a100_0x51f52a(0x1b0),'cliCdnBaseUrl':a100_0x51f52a(0x1b4),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a100_0x51f52a(0x1aa)],'configFileNames':[a100_0x51f52a(0x1bc)],'newConfigFileName':a100_0x51f52a(0x1bc),'homeDirName':a100_0x51f52a(0x1a9),'logFileName':'.lovrabet-runtime.log','invokeSource':a100_0x51f52a(0x1b9),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','accessKeyCreatePath':a100_0x51f52a(0x1b5)};export function productEnvName(_0x119cf1){return PRODUCT_CONFIG['envPrefix']+'_'+_0x119cf1;}export function productEnvNames(_0x23226a){const _0xe9018b=a100_0x51f52a;return[productEnvName(_0x23226a),...PRODUCT_CONFIG[_0xe9018b(0x1ae)][_0xe9018b(0x1be)](_0xa3daa3=>_0xa3daa3+'_'+_0x23226a)];}export function productEnv(_0x12a0bb){for(const _0x2d992b of productEnvNames(_0x12a0bb)){const _0x54c85c=process.env[_0x2d992b];if(_0x54c85c!==undefined)return _0x54c85c;}return undefined;}function a100_0x387d(_0x49d18e,_0x35cebe){_0x49d18e=_0x49d18e-0x1a9;const _0x48ea43=a100_0x48ea();let _0x387dd7=_0x48ea43[_0x49d18e];return _0x387dd7;}function a100_0x48ea(){const _0x4bf879=['legacyEnvPrefixes','153793TEIoAk','https://registry.npmjs.org','lovrabet','4930950BeneVV','4815503QzKXLa','https://g.lovrabet.com','/user/ak','367912HQlmaq','3296511HjLZIS','2053310JzTPcG','cli:lovrabet-runtime','8SSKYPq','60QQNfeL','.lovrabet.json','2901768IGsBYT','map','.lovrabet','RABETBASE','Lovrabet\x20Runtime\x20CLI','2KcMIOg','33EIZHMd'];a100_0x48ea=function(){return _0x4bf879;};return a100_0x48ea();}
@@ -1 +1 @@
1
- (function(_0xb95c00,_0x7e11f9){const _0x183612=a101_0x23ec,_0x53d5d8=_0xb95c00();while(!![]){try{const _0x1947e4=parseInt(_0x183612(0x1b4))/0x1*(-parseInt(_0x183612(0x1b8))/0x2)+-parseInt(_0x183612(0x1ad))/0x3*(parseInt(_0x183612(0x1ac))/0x4)+parseInt(_0x183612(0x1bc))/0x5*(parseInt(_0x183612(0x1bf))/0x6)+-parseInt(_0x183612(0x1b3))/0x7+-parseInt(_0x183612(0x1ae))/0x8+-parseInt(_0x183612(0x1bb))/0x9*(parseInt(_0x183612(0x1be))/0xa)+parseInt(_0x183612(0x1b6))/0xb;if(_0x1947e4===_0x7e11f9)break;else _0x53d5d8['push'](_0x53d5d8['shift']());}catch(_0x5c884c){_0x53d5d8['push'](_0x53d5d8['shift']());}}}(a101_0x25d8,0xd755b));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';function a101_0x25d8(){const _0x59e2bf=['54TBaKpq','Available\x20regions:\x20','12460JtoViC','87XgCFwS','11267112ipbPLl','includes','Run\x20`lovrabet\x20config\x20init`\x20to\x20restore\x20the\x20global\x20country/region\x20configuration.','.\x20Run\x20`lovrabet\x20config\x20init`\x20to\x20repair\x20the\x20global\x20configuration.','string','282527dDzdIE','2jXaNSa','join','32417836hlRTYG','validation','1332472urUdQu','Invalid\x20region\x20value:\x20expected\x20a\x20string,\x20received\x20','Region\x20\x22','117RVVCfO','959695LblqHC','\x22\x20is\x20not\x20currently\x20available.','708430VwPuiE'];a101_0x25d8=function(){return _0x59e2bf;};return a101_0x25d8();}function a101_0x23ec(_0x2ce537,_0x3339a6){_0x2ce537=_0x2ce537-0x1ab;const _0x25d8b0=a101_0x25d8();let _0x23ec23=_0x25d8b0[_0x2ce537];return _0x23ec23;}import{CliErrors}from'../errors.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x43eb35){const _0xc233f8=a101_0x23ec;return typeof _0x43eb35==='string'&&LOVRABET_REGION_VALUES[_0xc233f8(0x1af)](_0x43eb35);}export function isEnabledLovrabetRegion(_0x277cca){const _0x11c057=a101_0x23ec;return typeof _0x277cca===_0x11c057(0x1b2)&&ENABLED_LOVRABET_REGION_VALUES['includes'](_0x277cca);}export function normalizeLovrabetRegion(_0x25abc3){const _0x47390c=a101_0x23ec;if(_0x25abc3===undefined||_0x25abc3===null||_0x25abc3==='')return DEFAULT_LOVRABET_REGION;if(typeof _0x25abc3!==_0x47390c(0x1b2))throw CliErrors[_0x47390c(0x1b7)](_0x47390c(0x1b9)+typeof _0x25abc3+'.',_0x47390c(0x1b0));const _0x29b658=REGION_ALIASES[_0x25abc3]??_0x25abc3;if(isEnabledLovrabetRegion(_0x29b658))return _0x29b658;throw CliErrors[_0x47390c(0x1b7)](_0x47390c(0x1ba)+_0x25abc3+_0x47390c(0x1bd),_0x47390c(0x1ab)+ENABLED_LOVRABET_REGION_VALUES[_0x47390c(0x1b5)](',\x20')+_0x47390c(0x1b1));}
1
+ (function(_0x1228d6,_0x36b47d){const _0x498b23=a101_0x2baf,_0x262aa0=_0x1228d6();while(!![]){try{const _0x104e15=-parseInt(_0x498b23(0x7b))/0x1*(parseInt(_0x498b23(0x71))/0x2)+-parseInt(_0x498b23(0x6e))/0x3*(-parseInt(_0x498b23(0x74))/0x4)+parseInt(_0x498b23(0x73))/0x5+-parseInt(_0x498b23(0x6f))/0x6+-parseInt(_0x498b23(0x6b))/0x7+parseInt(_0x498b23(0x77))/0x8*(-parseInt(_0x498b23(0x79))/0x9)+-parseInt(_0x498b23(0x76))/0xa*(-parseInt(_0x498b23(0x6d))/0xb);if(_0x104e15===_0x36b47d)break;else _0x262aa0['push'](_0x262aa0['shift']());}catch(_0x3db9e2){_0x262aa0['push'](_0x262aa0['shift']());}}}(a101_0x5214,0xb1df3));function a101_0x5214(){const _0x1c966c=['2967727wBnDZf','includes','187UGrJai','3kEqvHU','6179946waeEkK','Region\x20\x22','1584aJVomd','validation','3480490bOEjUu','465796nVJhdG','Available\x20regions:\x20','967700FJvlyG','995944rrqhvb','Invalid\x20region\x20value:\x20expected\x20a\x20string,\x20received\x20','18QnTXTq','.\x20Run\x20`lovrabet\x20config\x20init`\x20to\x20repair\x20the\x20global\x20configuration.','33VkGLmM','\x22\x20is\x20not\x20currently\x20available.','string'];a101_0x5214=function(){return _0x1c966c;};return a101_0x5214();}import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';import{CliErrors}from'../errors.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;function a101_0x2baf(_0x4fdf71,_0x21c6fc){_0x4fdf71=_0x4fdf71-0x6a;const _0x521471=a101_0x5214();let _0x2bafbc=_0x521471[_0x4fdf71];return _0x2bafbc;}export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0xfdaf59){const _0x4196d6=a101_0x2baf;return typeof _0xfdaf59===_0x4196d6(0x6a)&&LOVRABET_REGION_VALUES['includes'](_0xfdaf59);}export function isEnabledLovrabetRegion(_0x2ad9cf){const _0x456dac=a101_0x2baf;return typeof _0x2ad9cf===_0x456dac(0x6a)&&ENABLED_LOVRABET_REGION_VALUES[_0x456dac(0x6c)](_0x2ad9cf);}export function normalizeLovrabetRegion(_0x4b683b){const _0x2b444c=a101_0x2baf;if(_0x4b683b===undefined||_0x4b683b===null||_0x4b683b==='')return DEFAULT_LOVRABET_REGION;if(typeof _0x4b683b!==_0x2b444c(0x6a))throw CliErrors[_0x2b444c(0x72)](_0x2b444c(0x78)+typeof _0x4b683b+'.','Run\x20`lovrabet\x20config\x20init`\x20to\x20restore\x20the\x20global\x20country/region\x20configuration.');const _0xa09484=REGION_ALIASES[_0x4b683b]??_0x4b683b;if(isEnabledLovrabetRegion(_0xa09484))return _0xa09484;throw CliErrors[_0x2b444c(0x72)](_0x2b444c(0x70)+_0x4b683b+_0x2b444c(0x7c),_0x2b444c(0x75)+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20')+_0x2b444c(0x7a));}
@@ -1 +1 @@
1
- const a102_0x23f1bc=a102_0x39b3;function a102_0x39b3(_0xf7b6dd,_0x55710c){_0xf7b6dd=_0xf7b6dd-0x1a1;const _0x3b590c=a102_0x3b59();let _0x39b372=_0x3b590c[_0xf7b6dd];return _0x39b372;}(function(_0x486cdf,_0x4bbc9d){const _0x103509=a102_0x39b3,_0x5e4e56=_0x486cdf();while(!![]){try{const _0x72fcfc=-parseInt(_0x103509(0x1a1))/0x1*(-parseInt(_0x103509(0x1ae))/0x2)+parseInt(_0x103509(0x1a7))/0x3*(-parseInt(_0x103509(0x1a9))/0x4)+-parseInt(_0x103509(0x1a8))/0x5+-parseInt(_0x103509(0x1aa))/0x6+parseInt(_0x103509(0x1a4))/0x7*(-parseInt(_0x103509(0x1ac))/0x8)+parseInt(_0x103509(0x1ab))/0x9+parseInt(_0x103509(0x1a3))/0xa*(parseInt(_0x103509(0x1a5))/0xb);if(_0x72fcfc===_0x4bbc9d)break;else _0x5e4e56['push'](_0x5e4e56['shift']());}catch(_0x7986e2){_0x5e4e56['push'](_0x5e4e56['shift']());}}}(a102_0x3b59,0x7354d));export const RISK_LEVEL_VALUES=[a102_0x23f1bc(0x1a6),a102_0x23f1bc(0x1ad),a102_0x23f1bc(0x1a2)];function a102_0x3b59(){const _0x130b66=['117176GmPiHi','4084500jhWXeV','5601258bDVFHN','8ygTCvX','write','207908uvpica','6ENLqIN','high-risk-write','20296870ffznjm','6574834OvMfYO','11oaYjZG','read','27aMyDGR','4598590MbtYLa'];a102_0x3b59=function(){return _0x130b66;};return a102_0x3b59();}
1
+ function a102_0x2c61(_0x28e12e,_0x3f56d3){_0x28e12e=_0x28e12e-0x14b;const _0x479259=a102_0x4792();let _0x2c6158=_0x479259[_0x28e12e];return _0x2c6158;}const a102_0x139530=a102_0x2c61;function a102_0x4792(){const _0x185b70=['87266bLyobl','41900562uTVhcz','33OGZjRN','12pNGdlB','6974792CyeDkE','2222361tvXPwY','1397169Zspybg','7kdBYtu','64qfmmew','high-risk-write','6253380lWLlOu','60ccygLV','44510lGvTsg'];a102_0x4792=function(){return _0x185b70;};return a102_0x4792();}(function(_0x5b8965,_0x3610ec){const _0x6f1742=a102_0x2c61,_0x43424d=_0x5b8965();while(!![]){try{const _0x250f38=-parseInt(_0x6f1742(0x151))/0x1*(parseInt(_0x6f1742(0x14f))/0x2)+-parseInt(_0x6f1742(0x154))/0x3+parseInt(_0x6f1742(0x157))/0x4*(-parseInt(_0x6f1742(0x14e))/0x5)+parseInt(_0x6f1742(0x14c))/0x6+parseInt(_0x6f1742(0x156))/0x7*(-parseInt(_0x6f1742(0x153))/0x8)+-parseInt(_0x6f1742(0x155))/0x9*(parseInt(_0x6f1742(0x14d))/0xa)+parseInt(_0x6f1742(0x150))/0xb*(parseInt(_0x6f1742(0x152))/0xc);if(_0x250f38===_0x3610ec)break;else _0x43424d['push'](_0x43424d['shift']());}catch(_0x2dd355){_0x43424d['push'](_0x43424d['shift']());}}}(a102_0x4792,0xb0fe9));export const RISK_LEVEL_VALUES=['read','write',a102_0x139530(0x14b)];
@@ -1 +1 @@
1
- (function(_0x5df340,_0x415514){const _0x49e3da=a103_0x5db7,_0x4cb9d0=_0x5df340();while(!![]){try{const _0x1581ee=parseInt(_0x49e3da(0x152))/0x1*(-parseInt(_0x49e3da(0x159))/0x2)+parseInt(_0x49e3da(0x15b))/0x3+-parseInt(_0x49e3da(0x156))/0x4*(-parseInt(_0x49e3da(0x14f))/0x5)+parseInt(_0x49e3da(0x157))/0x6+parseInt(_0x49e3da(0x158))/0x7*(parseInt(_0x49e3da(0x151))/0x8)+-parseInt(_0x49e3da(0x153))/0x9*(-parseInt(_0x49e3da(0x155))/0xa)+-parseInt(_0x49e3da(0x14e))/0xb;if(_0x1581ee===_0x415514)break;else _0x4cb9d0['push'](_0x4cb9d0['shift']());}catch(_0x58c6e7){_0x4cb9d0['push'](_0x4cb9d0['shift']());}}}(a103_0x5890,0xb6628));import{PRODUCT_CONFIG}from'../constant/product.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';export function getUserAccessKeyCreateUrl(_0x488a91=DEFAULT_LOVRABET_REGION){const _0x54ac3c=a103_0x5db7,_0x2ae3aa=OFFICIAL_ROUTING_PROFILES[_0x488a91]['serviceDomains'][_0x54ac3c(0x150)][_0x54ac3c(0x154)];return''+_0x2ae3aa+PRODUCT_CONFIG[_0x54ac3c(0x15a)];}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();function a103_0x5db7(_0x3dfc6f,_0x1c829b){_0x3dfc6f=_0x3dfc6f-0x14e;const _0x5890c4=a103_0x5890();let _0x5db76d=_0x5890c4[_0x3dfc6f];return _0x5db76d;}function a103_0x5890(){const _0x14622a=['3114RUebzJ','user','29810IogcxH','1068516qozmOT','2407176lkFTUy','106204KFLDuE','1464376lQLJoe','accessKeyCreatePath','1694124qEgtLT','14602313hJgfau','5xgJJjj','production','672NNXvIp','2bJWWlO'];a103_0x5890=function(){return _0x14622a;};return a103_0x5890();}
1
+ (function(_0x372513,_0x5b26fc){const _0x5925a3=a103_0x1891,_0x4bedb4=_0x372513();while(!![]){try{const _0x5b37fe=-parseInt(_0x5925a3(0x100))/0x1*(parseInt(_0x5925a3(0x107))/0x2)+-parseInt(_0x5925a3(0x101))/0x3+-parseInt(_0x5925a3(0xfe))/0x4+-parseInt(_0x5925a3(0xff))/0x5*(-parseInt(_0x5925a3(0x106))/0x6)+parseInt(_0x5925a3(0xfd))/0x7+parseInt(_0x5925a3(0x102))/0x8*(parseInt(_0x5925a3(0x105))/0x9)+parseInt(_0x5925a3(0x104))/0xa;if(_0x5b37fe===_0x5b26fc)break;else _0x4bedb4['push'](_0x4bedb4['shift']());}catch(_0x1a941d){_0x4bedb4['push'](_0x4bedb4['shift']());}}}(a103_0x444b,0x20cdd));import{PRODUCT_CONFIG}from'../constant/product.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';export function getUserAccessKeyCreateUrl(_0x4166a2=DEFAULT_LOVRABET_REGION){const _0x214dc6=a103_0x1891,_0x489ddd=OFFICIAL_ROUTING_PROFILES[_0x4166a2]['serviceDomains'][_0x214dc6(0x103)]['user'];return''+_0x489ddd+PRODUCT_CONFIG[_0x214dc6(0x108)];}function a103_0x1891(_0x2c7c58,_0x13d041){_0x2c7c58=_0x2c7c58-0xfd;const _0x444bb8=a103_0x444b();let _0x18918c=_0x444bb8[_0x2c7c58];return _0x18918c;}function a103_0x444b(){const _0x12646c=['630SRcPEH','accessKeyCreatePath','1096396DIKBAs','883968DyrVlF','130ZYpQfn','526uQkJIm','766074FflEWL','24hBovTW','production','2768620lDamIV','579231XLGXLO','34578LlVhVy'];a103_0x444b=function(){return _0x12646c;};return a103_0x444b();}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a104_0x397e46=a104_0x35b4;(function(_0x42f181,_0x200b35){const _0x30fc09=a104_0x35b4,_0x54d34d=_0x42f181();while(!![]){try{const _0x2631ea=-parseInt(_0x30fc09(0x1ca))/0x1+-parseInt(_0x30fc09(0x1a6))/0x2+parseInt(_0x30fc09(0x1b5))/0x3+-parseInt(_0x30fc09(0x185))/0x4+parseInt(_0x30fc09(0x1be))/0x5+parseInt(_0x30fc09(0x1d4))/0x6*(-parseInt(_0x30fc09(0x1bd))/0x7)+parseInt(_0x30fc09(0x1ba))/0x8;if(_0x2631ea===_0x200b35)break;else _0x54d34d['push'](_0x54d34d['shift']());}catch(_0x2c609d){_0x54d34d['push'](_0x54d34d['shift']());}}}(a104_0x3b09,0xc8b69));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';function a104_0x35b4(_0x3c04df,_0x1a0d25){_0x3c04df=_0x3c04df-0x184;const _0x3b0971=a104_0x3b09();let _0x35b4a5=_0x3b0971[_0x3c04df];return _0x35b4a5;}import{logger}from'./utils/logger.js';import{redactCommandArgv}from'./utils/redaction.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';import{normalizeLovrabetRegion}from'./constant/region.js';import{resolveEnterpriseRoutingConfig}from'./config/domain-config.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a104_0x397e46(0x18d)];function resolveConfigPath(_0x13fc50){for(const _0x40b7ec of CONFIG_NAMES){const _0x523f11=resolve(_0x13fc50,_0x40b7ec);if(existsSync(_0x523f11))return _0x523f11;}return undefined;}export function resolveWriteConfigPath(_0x2e54e1){const _0x46eec5=a104_0x397e46,_0x4c0137=_0x2e54e1==='project'?process[_0x46eec5(0x1bb)]():homedir(),_0x26b80e=resolveConfigPath(_0x4c0137);return _0x26b80e??resolve(_0x4c0137,NEW_CONFIG_NAME);}export function readConfigFile(_0x4a6375){const _0xf17b6b=a104_0x397e46;try{if(existsSync(_0x4a6375)){const _0x6945d6=readFileSync(_0x4a6375,{'encoding':_0xf17b6b(0x1a9)});if(_0x6945d6){const _0x375b09=JSON[_0xf17b6b(0x195)](_0x6945d6);return migrateOnlineEnv(_0x4a6375,_0x375b09),_0x375b09;}}}catch{}return{};}function migrateOnlineEnv(_0x55d004,_0x9b330d){const _0x4a6c01=a104_0x397e46;let _0x2ff621=![];_0x9b330d[_0x4a6c01(0x184)]==='online'&&(_0x9b330d[_0x4a6c01(0x184)]='production',_0x2ff621=!![]);if(_0x9b330d[_0x4a6c01(0x19f)]&&typeof _0x9b330d[_0x4a6c01(0x19f)]==='object')for(const _0x333efe of Object['values'](_0x9b330d[_0x4a6c01(0x19f)])){_0x333efe&&_0x333efe[_0x4a6c01(0x184)]===_0x4a6c01(0x1bf)&&(_0x333efe[_0x4a6c01(0x184)]=_0x4a6c01(0x194),_0x2ff621=!![]);}if(_0x2ff621)try{writeConfigFile(_0x55d004,_0x9b330d);}catch{}}export function writeConfigFile(_0xd4301d,_0x14333f){const _0x69040f=a104_0x397e46,_0x4c13b6=dirname(_0xd4301d);!existsSync(_0x4c13b6)&&mkdirSync(_0x4c13b6,{'recursive':!![]});const _0x4ebf81=_0xd4301d+_0x69040f(0x1d1);try{writeFileSync(_0x4ebf81,JSON[_0x69040f(0x1ac)](_0x14333f,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x4ebf81,_0xd4301d);}catch(_0x3fbc72){if(_0x3fbc72[_0x69040f(0x18a)]===_0x69040f(0x1b4)||_0x3fbc72[_0x69040f(0x18a)]==='EXDEV'||_0x3fbc72['code']==='EACCES'){writeFileSync(_0xd4301d,JSON[_0x69040f(0x1ac)](_0x14333f,null,0x2)+'\x0a',{'encoding':_0x69040f(0x1a9)});try{unlinkSync(_0x4ebf81);}catch{}}else throw _0x3fbc72;}}catch(_0xf36f3b){try{unlinkSync(_0x4ebf81);}catch{}throw _0xf36f3b;}}export function isNonInteractiveMode(_0x3062aa){const _0x351fea=a104_0x397e46;return!!(_0x3062aa[_0x351fea(0x1af)]||_0x3062aa['ci']||productEnvNames('CI')[_0x351fea(0x1b8)](_0x92aafe=>process.env[_0x92aafe]===_0x351fea(0x196))||process.env.CI==='true'||!process[_0x351fea(0x1c6)][_0x351fea(0x1cc)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5997dd=a104_0x397e46;if(!process[_0x5997dd(0x1c0)][_0x5997dd(0x1cc)])return![];try{const _0x4b7529=process[_0x5997dd(0x1c0)]['isRaw'];return process[_0x5997dd(0x1c0)][_0x5997dd(0x19b)](!![]),process[_0x5997dd(0x1c0)][_0x5997dd(0x19b)](_0x4b7529??![]),!![];}catch{return![];}}export async function createContext(_0x261ec5){const _0x2eccd7=a104_0x397e46,_0x30f7f8=readRawConfig(),_0x23ea7c=buildConfig(_0x30f7f8,_0x261ec5);await initGlobalEnvironment(_0x23ea7c);const {getUserDomain:_0x36a3f9,getApiDomain:_0x5cf6e5}=await import(_0x2eccd7(0x1d2)),_0x25af6f={'apiDomain':_0x5cf6e5(),'userDomain':_0x36a3f9()},_0xe2599c=await buildAuth(_0x23ea7c);logger[_0x2eccd7(0x1cd)](process['cwd']());const _0x357230=(CLI_BIN_NAME+'\x20'+redactCommandArgv(process[_0x2eccd7(0x1b3)]['slice'](0x2))[_0x2eccd7(0x18b)]('\x20'))[_0x2eccd7(0x1cb)]();logger['setRawCommand'](_0x357230);const _0x16c69a=isNonInteractiveMode(_0x261ec5);return{'config':_0x23ea7c,'auth':_0xe2599c,'logger':logger,'env':_0x25af6f,'nonInteractive':_0x16c69a};}export function buildConfigFromFlags(_0xf0ad08){return buildConfig(readRawConfig(),_0xf0ad08);}export function getLocalAppAliases(_0x299618){const _0x3b170d=a104_0x397e46;return _0x299618[_0x3b170d(0x19f)]&&typeof _0x299618[_0x3b170d(0x19f)]===_0x3b170d(0x1aa)?_0x299618[_0x3b170d(0x19f)]:{};}export function resolveLocalAppAliasCode(_0x582994,_0x1bc7c6){const _0x3d47bc=a104_0x397e46;if(!_0x1bc7c6)return undefined;const _0x1e81f4=getLocalAppAliases(_0x582994)[_0x1bc7c6],_0x4f68ac=_0x1e81f4?.[_0x3d47bc(0x1c2)];return typeof _0x4f68ac===_0x3d47bc(0x1b6)&&_0x4f68ac['trim']()?_0x4f68ac[_0x3d47bc(0x1cb)]():undefined;}export function readAppCodeFromConfig(){const _0x2cba54=a104_0x397e46,_0x3114a7=readRawConfig(),_0x46b22e=_0x3114a7[_0x2cba54(0x1c2)]??_0x3114a7[_0x2cba54(0x1c1)];if(typeof _0x46b22e===_0x2cba54(0x1b6)&&_0x46b22e[_0x2cba54(0x1cb)]())return _0x46b22e[_0x2cba54(0x1cb)]();const _0xf4806e=resolveLocalAppAliasCode(_0x3114a7,typeof _0x3114a7['defaultApp']===_0x2cba54(0x1b6)?_0x3114a7[_0x2cba54(0x1a2)]:undefined);if(_0xf4806e)return _0xf4806e;const _0x14ab04=normalizeEnv(String(_0x3114a7[_0x2cba54(0x184)]||_0x2cba54(0x194))),_0x47e3a9=isDaily(_0x14ab04)?_0x2cba54(0x18e):isDev(_0x14ab04)?_0x2cba54(0x1a4):_0x2cba54(0x194),_0x508b38=resolveCachedAppCode(typeof _0x3114a7[_0x2cba54(0x1a2)]===_0x2cba54(0x1b6)?_0x3114a7['defaultApp']:undefined,_0x47e3a9,typeof _0x3114a7[_0x2cba54(0x19a)]===_0x2cba54(0x1b6)?_0x3114a7[_0x2cba54(0x19a)]:undefined);if(_0x508b38)return _0x508b38;const _0x2618a9=Object[_0x2cba54(0x189)](getLocalAppAliases(_0x3114a7))[_0x2cba54(0x1a7)](_0x101f70=>_0x101f70?.[_0x2cba54(0x1c2)]);return typeof _0x2618a9?.[_0x2cba54(0x1c2)]===_0x2cba54(0x1b6)&&_0x2618a9[_0x2cba54(0x1c2)][_0x2cba54(0x1cb)]()?_0x2618a9[_0x2cba54(0x1c2)][_0x2cba54(0x1cb)]():undefined;}export function readScopedConfig(_0x296fef){const _0x5f28bb=a104_0x397e46,_0x27b3e3=_0x296fef[_0x5f28bb(0x1ce)]?'global':_0x5f28bb(0x1d0);return readConfigFile(resolveWriteConfigPath(_0x27b3e3));}function a104_0x3b09(){const _0x428575=['appcode','agentDomain','hasOwnProperty','./constant/env.js','stdout','ENV','FORMAT','locale','1151866WnLAyi','trim','isTTY','setLogPath','global','write','project','.tmp','./constant/domain.js','message','996baMhke','riskLevel','env','5562328IABOEn','VERBOSE','APPCODE','pageSize','values','code','join','region','newConfigFileName','daily','raw','kbDomain','read','APP','skillDomain','production','parse','true','routing','explicit','cache','accessKey','setRawMode','missing','prototype','error','apps','projectConfig','nativeToolAvailable','defaultApp','call','development','inherit','1201322IUWRuK','find','apiDomain','utf8','object','runtimeDomain','stringify','format','skillHubDomain','nonInteractive','kbServiceDomain','userDomain','platformDomain','argv','EPERM','3569520MpyliY','string','authRequired','some','globalConfig','19978944gNyAGY','cwd','high-risk-write','53543USiPNQ','7738780RcYHIO','online','stdin','app'];a104_0x3b09=function(){return _0x428575;};return a104_0x3b09();}export function writeScopedConfig(_0x458535,_0x392d48){const _0x16fc44=a104_0x397e46,_0x10d9e9=_0x392d48[_0x16fc44(0x1ce)]?_0x16fc44(0x1ce):_0x16fc44(0x1d0);writeConfigFile(resolveWriteConfigPath(_0x10d9e9),_0x458535);}export async function initGlobalEnvironment(_0x21abcf){const _0x2d9700=a104_0x397e46,{initEnv:_0x391e10}=await import(_0x2d9700(0x1c5));_0x391e10(_0x21abcf[_0x2d9700(0x184)]);const {initDomains:_0x2b031f}=await import('./constant/domain.js'),_0x2cdb8d=resolveEnterpriseRoutingConfig(_0x21abcf['raw'][_0x2d9700(0x197)]),_0x4fb4be=['apiDomain','host',_0x2d9700(0x1b1),_0x2d9700(0x1ab),_0x2d9700(0x193),_0x2d9700(0x1ae),_0x2d9700(0x1c3),'platformDomain',_0x2d9700(0x190),_0x2d9700(0x1b0)],_0x18cc46=_0x2cdb8d!==undefined||_0x4fb4be['some'](_0xa5d09d=>Object[_0x2d9700(0x19d)][_0x2d9700(0x1c4)][_0x2d9700(0x1a3)](_0x21abcf[_0x2d9700(0x18f)],_0xa5d09d));_0x2b031f({'apiDomain':_0x2cdb8d?_0x2cdb8d[_0x2d9700(0x1a8)]:_0x21abcf[_0x2d9700(0x18f)][_0x2d9700(0x1a8)]||_0x21abcf[_0x2d9700(0x18f)]['host']||undefined,'userDomain':_0x2cdb8d?_0x2cdb8d[_0x2d9700(0x1b1)]:_0x21abcf['raw'][_0x2d9700(0x1b1)]||undefined,'runtimeDomain':_0x2cdb8d?_0x2cdb8d[_0x2d9700(0x1ab)]:_0x21abcf[_0x2d9700(0x18f)][_0x2d9700(0x1ab)]||undefined,'skillDomain':_0x2cdb8d?_0x2cdb8d[_0x2d9700(0x193)]:_0x21abcf['raw'][_0x2d9700(0x193)]||_0x21abcf['raw'][_0x2d9700(0x1ae)]||_0x21abcf[_0x2d9700(0x18f)][_0x2d9700(0x1c3)]||_0x21abcf['raw'][_0x2d9700(0x1b2)]||undefined,'kbServiceDomain':_0x2cdb8d?_0x2cdb8d[_0x2d9700(0x1b0)]:typeof _0x21abcf[_0x2d9700(0x18f)][_0x2d9700(0x1b0)]===_0x2d9700(0x1b6)&&_0x21abcf['raw']['kbServiceDomain'][_0x2d9700(0x1cb)]()?_0x21abcf[_0x2d9700(0x18f)][_0x2d9700(0x1b0)]:undefined,'allowOfficialKbServiceDefault':!_0x18cc46,'region':normalizeLovrabetRegion(_0x21abcf[_0x2d9700(0x18f)][_0x2d9700(0x18c)])});}export function getProjectConfigPath(){const _0x442870=a104_0x397e46;return resolveConfigPath(process[_0x442870(0x1bb)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x58073e){const _0x28c105=a104_0x397e46;if(!existsSync(_0x58073e))return{'status':_0x28c105(0x19c)};try{const _0x48886f=readFileSync(_0x58073e,{'encoding':_0x28c105(0x1a9)});if(!_0x48886f?.['trim']())return{'status':'empty'};const _0xbbfa47=JSON[_0x28c105(0x195)](_0x48886f);return{'status':'ok','data':_0xbbfa47};}catch(_0x3ac007){return{'status':_0x28c105(0x19e),'message':_0x3ac007 instanceof Error?_0x3ac007[_0x28c105(0x1d3)]:String(_0x3ac007)};}}export function loadRawConfigLayers(_0x23bc91){const _0x1bc406=a104_0x397e46;let _0x89e50c={},_0x185179={},_0x5e9584,_0x5f27ac;try{_0x5e9584=resolveConfigPath(homedir());if(_0x5e9584){const _0x4b0747=readFileSync(_0x5e9584,{'encoding':'utf8'});if(_0x4b0747)_0x89e50c=JSON[_0x1bc406(0x195)](_0x4b0747);}}catch{}try{const _0x270fe5=_0x23bc91||process['cwd']();_0x5f27ac=resolveConfigPath(_0x270fe5);if(_0x5f27ac){const _0x3d52e4=readFileSync(_0x5f27ac,{'encoding':_0x1bc406(0x1a9)});if(_0x3d52e4)_0x185179=JSON[_0x1bc406(0x195)](_0x3d52e4);}}catch{}return{'globalPath':_0x5e9584,'projectPath':_0x5f27ac,'globalConfig':_0x89e50c,'projectConfig':_0x185179};}function mergeRawConfigLayers(_0x7b3f75){const _0x1bdca7=a104_0x397e46,{globalConfig:_0x4025a0,projectConfig:_0x2cb77f}=_0x7b3f75,_0x3fd513={..._0x4025a0,..._0x2cb77f};delete _0x3fd513[_0x1bdca7(0x1a5)];if(_0x1bdca7(0x1a2)in _0x2cb77f)_0x3fd513[_0x1bdca7(0x1a2)]=_0x2cb77f[_0x1bdca7(0x1a2)];else _0x4025a0['defaultApp']&&(_0x3fd513[_0x1bdca7(0x1a2)]=_0x4025a0[_0x1bdca7(0x1a2)]);return _0x3fd513;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x5187bc){return mergeRawConfigLayers(loadRawConfigLayers(_0x5187bc));}export function readRawConfigWithLayers(_0x5d540e){const _0xdc4a61=loadRawConfigLayers(_0x5d540e);return{'config':mergeRawConfigLayers(_0xdc4a61),'layers':_0xdc4a61};}export function resolveDefaultAppSource(_0x5f238f){const _0x4fbd30=a104_0x397e46;if(_0x4fbd30(0x1a2)in _0x5f238f[_0x4fbd30(0x1a0)])return _0x4fbd30(0x1d0);if(_0x5f238f[_0x4fbd30(0x1b9)][_0x4fbd30(0x1a2)])return _0x4fbd30(0x1ce);return null;}function buildConfig(_0x28d17d,_0x48584b){const _0x2ed6ac=a104_0x397e46,_0x1be4a4=_0x28d17d[_0x2ed6ac(0x1a2)]||undefined,_0x46ce50=_0x48584b['app']||env(_0x2ed6ac(0x192))||undefined,_0x338017=_0x46ce50||_0x1be4a4||undefined,_0x3b996b=env('ACCESS_KEY')||_0x28d17d[_0x2ed6ac(0x19a)]||undefined,_0xf622e8=_0x48584b[_0x2ed6ac(0x184)]||env(_0x2ed6ac(0x1c7))||_0x28d17d[_0x2ed6ac(0x184)]||DEFAULT_CONFIG_VALUES[_0x2ed6ac(0x184)],_0x41e75c=normalizeEnv(String(_0xf622e8)),_0x50b86a=isDaily(_0x41e75c)?_0x2ed6ac(0x18e):isDev(_0x41e75c)?_0x2ed6ac(0x1a4):_0x2ed6ac(0x194),_0x8e0aa5=typeof _0x48584b['appcode']==='string'?_0x48584b[_0x2ed6ac(0x1c2)]:undefined,_0x516832=env(_0x2ed6ac(0x187)),_0x127742=_0x46ce50?undefined:_0x28d17d[_0x2ed6ac(0x1c2)]||_0x28d17d[_0x2ed6ac(0x1c1)]||undefined,_0x34bd50=_0x46ce50||(_0x127742?undefined:_0x1be4a4),_0x3abe8d=resolveLocalAppAliasCode(_0x28d17d,_0x34bd50),_0x1bf556=resolveCachedAppCode(_0x34bd50,_0x50b86a,_0x3b996b),_0x1f5a1a=_0x8e0aa5||_0x516832||_0x127742||_0x3abe8d||_0x1bf556||undefined,_0x3fa93c=_0x8e0aa5?_0x2ed6ac(0x198):_0x516832?_0x2ed6ac(0x184):_0x127742?'top-level':_0x3abe8d?'local-alias':_0x1bf556?_0x2ed6ac(0x199):undefined,_0x17d2be=_0x28d17d[_0x2ed6ac(0x1c9)]||DEFAULT_CONFIG_VALUES[_0x2ed6ac(0x1c9)],_0x2291e8=undefined,_0x526e25=_0x48584b[_0x2ed6ac(0x1ad)]||env(_0x2ed6ac(0x1c8))||_0x28d17d['format'],_0x2087c6=normalizeLegacyOutputFormat(_0x526e25),_0x35d009=env('PAGE_SIZE')||_0x28d17d[_0x2ed6ac(0x188)],_0x54d606=_0x35d009?Number(_0x35d009)||undefined:undefined,_0x2f7b4e=_0x28d17d[_0x2ed6ac(0x1d5)],_0x3be6c6=_0x2f7b4e===_0x2ed6ac(0x191)||_0x2f7b4e===_0x2ed6ac(0x1cf)||_0x2f7b4e===_0x2ed6ac(0x1bc)?_0x2f7b4e:DEFAULT_CONFIG_VALUES['riskLevel'],_0x1c76ea=_0x28d17d[_0x2ed6ac(0x1a1)]===!![],_0x434a13=env(_0x2ed6ac(0x186)),_0x3539d8=_0x434a13==='1'||_0x434a13===_0x2ed6ac(0x196);return{'appCode':typeof _0x1f5a1a===_0x2ed6ac(0x1b6)&&_0x1f5a1a['trim']()?_0x1f5a1a[_0x2ed6ac(0x1cb)]():undefined,'appCodeSource':_0x3fa93c,'env':_0x50b86a,'locale':_0x17d2be,'cookie':_0x2291e8,'accessKey':_0x3b996b,'format':_0x2087c6,'pageSize':_0x54d606,'riskLevel':_0x3be6c6,'nativeToolAvailable':_0x1c76ea,'verbose':_0x3539d8,'defaultApp':_0x1be4a4,'currentApp':typeof _0x338017===_0x2ed6ac(0x1b6)?_0x338017:undefined,'raw':_0x28d17d};}function env(_0x593f5a){return productEnv(_0x593f5a);}async function buildAuth(_0x283cdd){const _0x4d0d09='',_0x25119d=!!_0x283cdd['accessKey'];return{'cookie':_0x4d0d09,'isLoggedIn':_0x25119d,async 'getOrLogin'(){const _0x72a623=a104_0x35b4;if(_0x25119d)return _0x4d0d09;throw CliErrors[_0x72a623(0x1b7)]();}};}
1
+ const a104_0x1c026e=a104_0x490d;(function(_0x5506b2,_0x595af4){const _0x156913=a104_0x490d,_0x219df2=_0x5506b2();while(!![]){try{const _0x42e6e6=-parseInt(_0x156913(0x108))/0x1+parseInt(_0x156913(0xd6))/0x2+-parseInt(_0x156913(0xe3))/0x3*(parseInt(_0x156913(0xe0))/0x4)+parseInt(_0x156913(0xd4))/0x5*(-parseInt(_0x156913(0x107))/0x6)+parseInt(_0x156913(0xde))/0x7+parseInt(_0x156913(0x110))/0x8*(-parseInt(_0x156913(0xd2))/0x9)+parseInt(_0x156913(0xd0))/0xa;if(_0x42e6e6===_0x595af4)break;else _0x219df2['push'](_0x219df2['shift']());}catch(_0x570705){_0x219df2['push'](_0x219df2['shift']());}}}(a104_0x24df,0xe3435));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a104_0x490d(_0xcb2c3a,_0x22a8e9){_0xcb2c3a=_0xcb2c3a-0xc6;const _0x24dfa4=a104_0x24df();let _0x490df4=_0x24dfa4[_0xcb2c3a];return _0x490df4;}import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{redactCommandArgv}from'./utils/redaction.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';import{normalizeLovrabetRegion}from'./constant/region.js';import{resolveEnterpriseRoutingConfig}from'./config/domain-config.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a104_0x1c026e(0x112)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG['newConfigFileName'];function resolveConfigPath(_0x2cc2ed){for(const _0x5ab919 of CONFIG_NAMES){const _0x9c82fd=resolve(_0x2cc2ed,_0x5ab919);if(existsSync(_0x9c82fd))return _0x9c82fd;}return undefined;}export function resolveWriteConfigPath(_0x2686df){const _0x486eee=a104_0x1c026e,_0x5db631=_0x2686df===_0x486eee(0xf7)?process[_0x486eee(0xe7)]():homedir(),_0x831af1=resolveConfigPath(_0x5db631);return _0x831af1??resolve(_0x5db631,NEW_CONFIG_NAME);}export function readConfigFile(_0x15c059){const _0x129aa0=a104_0x1c026e;try{if(existsSync(_0x15c059)){const _0x333b86=readFileSync(_0x15c059,{'encoding':_0x129aa0(0x10b)});if(_0x333b86){const _0x41c8b7=JSON[_0x129aa0(0xf1)](_0x333b86);return migrateOnlineEnv(_0x15c059,_0x41c8b7),_0x41c8b7;}}}catch{}return{};}function migrateOnlineEnv(_0x35b3c2,_0x357466){const _0x4744c8=a104_0x1c026e;let _0x4b78c8=![];_0x357466['env']===_0x4744c8(0x10c)&&(_0x357466[_0x4744c8(0x10a)]='production',_0x4b78c8=!![]);if(_0x357466[_0x4744c8(0xef)]&&typeof _0x357466['apps']===_0x4744c8(0x102))for(const _0x11099b of Object['values'](_0x357466[_0x4744c8(0xef)])){_0x11099b&&_0x11099b['env']==='online'&&(_0x11099b[_0x4744c8(0x10a)]='production',_0x4b78c8=!![]);}if(_0x4b78c8)try{writeConfigFile(_0x35b3c2,_0x357466);}catch{}}export function writeConfigFile(_0x4b02fa,_0xe2bb25){const _0x106364=a104_0x1c026e,_0x27a967=dirname(_0x4b02fa);!existsSync(_0x27a967)&&mkdirSync(_0x27a967,{'recursive':!![]});const _0x26af5d=_0x4b02fa+_0x106364(0xc9);try{writeFileSync(_0x26af5d,JSON[_0x106364(0x117)](_0xe2bb25,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x26af5d,_0x4b02fa);}catch(_0x5f41e3){if(_0x5f41e3[_0x106364(0xf0)]===_0x106364(0xfd)||_0x5f41e3[_0x106364(0xf0)]===_0x106364(0xf9)||_0x5f41e3[_0x106364(0xf0)]===_0x106364(0x101)){writeFileSync(_0x4b02fa,JSON['stringify'](_0xe2bb25,null,0x2)+'\x0a',{'encoding':_0x106364(0x10b)});try{unlinkSync(_0x26af5d);}catch{}}else throw _0x5f41e3;}}catch(_0x4e54ed){try{unlinkSync(_0x26af5d);}catch{}throw _0x4e54ed;}}export function isNonInteractiveMode(_0x1d2dd9){const _0x40d910=a104_0x1c026e;return!!(_0x1d2dd9['nonInteractive']||_0x1d2dd9['ci']||productEnvNames('CI')['some'](_0x2cdc35=>process.env[_0x2cdc35]===_0x40d910(0xd7))||process.env.CI==='true'||!process['stdout'][_0x40d910(0x113)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x336744=a104_0x1c026e;if(!process[_0x336744(0x100)][_0x336744(0x113)])return![];try{const _0x4c42b5=process[_0x336744(0x100)]['isRaw'];return process[_0x336744(0x100)]['setRawMode'](!![]),process['stdin']['setRawMode'](_0x4c42b5??![]),!![];}catch{return![];}}export async function createContext(_0x532b75){const _0x179f98=a104_0x1c026e,_0x5234d0=readRawConfig(),_0x672459=buildConfig(_0x5234d0,_0x532b75);await initGlobalEnvironment(_0x672459);const {getUserDomain:_0x130020,getApiDomain:_0x4166d2}=await import(_0x179f98(0xe8)),_0x9e4cd0={'apiDomain':_0x4166d2(),'userDomain':_0x130020()},_0x28f13d=await buildAuth(_0x672459);logger[_0x179f98(0xd9)](process['cwd']());const _0x12fd5b=(CLI_BIN_NAME+'\x20'+redactCommandArgv(process[_0x179f98(0x118)][_0x179f98(0xec)](0x2))['join']('\x20'))[_0x179f98(0x10d)]();logger[_0x179f98(0xcc)](_0x12fd5b);const _0x216a31=isNonInteractiveMode(_0x532b75);return{'config':_0x672459,'auth':_0x28f13d,'logger':logger,'env':_0x9e4cd0,'nonInteractive':_0x216a31};}export function buildConfigFromFlags(_0x215dbb){return buildConfig(readRawConfig(),_0x215dbb);}export function getLocalAppAliases(_0x634fa1){const _0x3a27a4=a104_0x1c026e;return _0x634fa1['apps']&&typeof _0x634fa1[_0x3a27a4(0xef)]===_0x3a27a4(0x102)?_0x634fa1[_0x3a27a4(0xef)]:{};}export function resolveLocalAppAliasCode(_0x23b683,_0x1fcd30){const _0xb1194b=a104_0x1c026e;if(!_0x1fcd30)return undefined;const _0x5a1b64=getLocalAppAliases(_0x23b683)[_0x1fcd30],_0x584756=_0x5a1b64?.['appcode'];return typeof _0x584756===_0xb1194b(0xeb)&&_0x584756[_0xb1194b(0x10d)]()?_0x584756[_0xb1194b(0x10d)]():undefined;}export function readAppCodeFromConfig(){const _0x27cbba=a104_0x1c026e,_0x102b6a=readRawConfig(),_0x160b0f=_0x102b6a[_0x27cbba(0xdc)]??_0x102b6a[_0x27cbba(0xce)];if(typeof _0x160b0f===_0x27cbba(0xeb)&&_0x160b0f[_0x27cbba(0x10d)]())return _0x160b0f[_0x27cbba(0x10d)]();const _0x5a82d6=resolveLocalAppAliasCode(_0x102b6a,typeof _0x102b6a[_0x27cbba(0x10e)]==='string'?_0x102b6a['defaultApp']:undefined);if(_0x5a82d6)return _0x5a82d6;const _0x36b579=normalizeEnv(String(_0x102b6a['env']||'production')),_0x1e6b16=isDaily(_0x36b579)?_0x27cbba(0xfe):isDev(_0x36b579)?'development':_0x27cbba(0xfb),_0x3de1d0=resolveCachedAppCode(typeof _0x102b6a[_0x27cbba(0x10e)]===_0x27cbba(0xeb)?_0x102b6a[_0x27cbba(0x10e)]:undefined,_0x1e6b16,typeof _0x102b6a[_0x27cbba(0xf3)]==='string'?_0x102b6a[_0x27cbba(0xf3)]:undefined);if(_0x3de1d0)return _0x3de1d0;const _0x536d5a=Object[_0x27cbba(0xf4)](getLocalAppAliases(_0x102b6a))[_0x27cbba(0xdb)](_0x17a41c=>_0x17a41c?.[_0x27cbba(0xdc)]);return typeof _0x536d5a?.[_0x27cbba(0xdc)]===_0x27cbba(0xeb)&&_0x536d5a['appcode'][_0x27cbba(0x10d)]()?_0x536d5a[_0x27cbba(0xdc)][_0x27cbba(0x10d)]():undefined;}export function readScopedConfig(_0x18883c){const _0x4e2f4e=a104_0x1c026e,_0x4fb6c2=_0x18883c['global']?_0x4e2f4e(0x116):_0x4e2f4e(0xf7);return readConfigFile(resolveWriteConfigPath(_0x4fb6c2));}export function writeScopedConfig(_0x30b573,_0x9ad31d){const _0x6a014=a104_0x1c026e,_0x2252ea=_0x9ad31d[_0x6a014(0x116)]?_0x6a014(0x116):_0x6a014(0xf7);writeConfigFile(resolveWriteConfigPath(_0x2252ea),_0x30b573);}export async function initGlobalEnvironment(_0x4a5fcf){const _0x40699a=a104_0x1c026e,{initEnv:_0x3fcbb5}=await import(_0x40699a(0xfc));_0x3fcbb5(_0x4a5fcf['env']);const {initDomains:_0x4dd8ec}=await import(_0x40699a(0xe8)),_0x183168=resolveEnterpriseRoutingConfig(_0x4a5fcf['raw'][_0x40699a(0xea)]),_0x2f15bf=[_0x40699a(0xd5),_0x40699a(0x103),_0x40699a(0x105),_0x40699a(0xc7),'skillDomain',_0x40699a(0xc6),'agentDomain',_0x40699a(0xd3),_0x40699a(0x106),_0x40699a(0xe5)],_0x3a9cb9=_0x183168!==undefined||_0x2f15bf[_0x40699a(0xca)](_0x5d1f1c=>Object[_0x40699a(0xd1)][_0x40699a(0xf6)]['call'](_0x4a5fcf['raw'],_0x5d1f1c));_0x4dd8ec({'apiDomain':_0x183168?_0x183168[_0x40699a(0xd5)]:_0x4a5fcf[_0x40699a(0x10f)][_0x40699a(0xd5)]||_0x4a5fcf[_0x40699a(0x10f)][_0x40699a(0x103)]||undefined,'userDomain':_0x183168?_0x183168[_0x40699a(0x105)]:_0x4a5fcf[_0x40699a(0x10f)][_0x40699a(0x105)]||undefined,'runtimeDomain':_0x183168?_0x183168[_0x40699a(0xc7)]:_0x4a5fcf[_0x40699a(0x10f)][_0x40699a(0xc7)]||undefined,'skillDomain':_0x183168?_0x183168[_0x40699a(0xcf)]:_0x4a5fcf['raw']['skillDomain']||_0x4a5fcf[_0x40699a(0x10f)][_0x40699a(0xc6)]||_0x4a5fcf[_0x40699a(0x10f)][_0x40699a(0xf8)]||_0x4a5fcf['raw']['platformDomain']||undefined,'kbServiceDomain':_0x183168?_0x183168[_0x40699a(0xe5)]:typeof _0x4a5fcf[_0x40699a(0x10f)][_0x40699a(0xe5)]===_0x40699a(0xeb)&&_0x4a5fcf[_0x40699a(0x10f)][_0x40699a(0xe5)]['trim']()?_0x4a5fcf[_0x40699a(0x10f)][_0x40699a(0xe5)]:undefined,'allowOfficialKbServiceDefault':!_0x3a9cb9,'region':normalizeLovrabetRegion(_0x4a5fcf['raw'][_0x40699a(0x115)])});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x593493){const _0x879256=a104_0x1c026e;if(!existsSync(_0x593493))return{'status':_0x879256(0x114)};try{const _0x487b81=readFileSync(_0x593493,{'encoding':_0x879256(0x10b)});if(!_0x487b81?.[_0x879256(0x10d)]())return{'status':_0x879256(0x104)};const _0x349e5a=JSON[_0x879256(0xf1)](_0x487b81);return{'status':'ok','data':_0x349e5a};}catch(_0x4cb14c){return{'status':_0x879256(0xdf),'message':_0x4cb14c instanceof Error?_0x4cb14c[_0x879256(0xda)]:String(_0x4cb14c)};}}export function loadRawConfigLayers(_0x4db594){const _0x24a8a2=a104_0x1c026e;let _0x1f170a={},_0x8ef984={},_0x40d55b,_0x10ccfb;try{_0x40d55b=resolveConfigPath(homedir());if(_0x40d55b){const _0x21ebaf=readFileSync(_0x40d55b,{'encoding':'utf8'});if(_0x21ebaf)_0x1f170a=JSON[_0x24a8a2(0xf1)](_0x21ebaf);}}catch{}try{const _0x4b9b8e=_0x4db594||process[_0x24a8a2(0xe7)]();_0x10ccfb=resolveConfigPath(_0x4b9b8e);if(_0x10ccfb){const _0x2ad61f=readFileSync(_0x10ccfb,{'encoding':_0x24a8a2(0x10b)});if(_0x2ad61f)_0x8ef984=JSON[_0x24a8a2(0xf1)](_0x2ad61f);}}catch{}return{'globalPath':_0x40d55b,'projectPath':_0x10ccfb,'globalConfig':_0x1f170a,'projectConfig':_0x8ef984};}function mergeRawConfigLayers(_0x20a6cd){const _0x36cf85=a104_0x1c026e,{globalConfig:_0x391c7e,projectConfig:_0xbccb01}=_0x20a6cd,_0x2e01a7={..._0x391c7e,..._0xbccb01};delete _0x2e01a7[_0x36cf85(0xe9)];if('defaultApp'in _0xbccb01)_0x2e01a7[_0x36cf85(0x10e)]=_0xbccb01[_0x36cf85(0x10e)];else _0x391c7e['defaultApp']&&(_0x2e01a7[_0x36cf85(0x10e)]=_0x391c7e[_0x36cf85(0x10e)]);return _0x2e01a7;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x4ea016){return mergeRawConfigLayers(loadRawConfigLayers(_0x4ea016));}export function readRawConfigWithLayers(_0x1e556b){const _0x3c1f9d=loadRawConfigLayers(_0x1e556b);return{'config':mergeRawConfigLayers(_0x3c1f9d),'layers':_0x3c1f9d};}function a104_0x24df(){const _0x11b97a=['high-risk-write','kbServiceDomain','riskLevel','cwd','./constant/domain.js','inherit','routing','string','slice','FORMAT','PAGE_SIZE','apps','code','parse','write','accessKey','values','development','hasOwnProperty','project','agentDomain','EXDEV','locale','production','./constant/env.js','EPERM','daily','read','stdin','EACCES','object','host','empty','userDomain','kbDomain','4368piHhHD','522924DLbNFV','cache','env','utf8','online','trim','defaultApp','raw','984qumICM','format','configFileNames','isTTY','missing','region','global','stringify','argv','skillHubDomain','runtimeDomain','projectConfig','.tmp','some','explicit','setRawCommand','APP','app','skillDomain','31535360WzpFJU','prototype','102807KAgNiq','platformDomain','5395uNDnbj','apiDomain','607458dHsiOD','true','top-level','setLogPath','message','find','appcode','ACCESS_KEY','12463745crnMRK','error','8sRFnOx','nativeToolAvailable','ENV','2390199YOKHLh'];a104_0x24df=function(){return _0x11b97a;};return a104_0x24df();}export function resolveDefaultAppSource(_0x54d892){const _0x21b30a=a104_0x1c026e;if(_0x21b30a(0x10e)in _0x54d892[_0x21b30a(0xc8)])return _0x21b30a(0xf7);if(_0x54d892['globalConfig'][_0x21b30a(0x10e)])return _0x21b30a(0x116);return null;}function buildConfig(_0x9a3484,_0x2418d6){const _0x4aaf24=a104_0x1c026e,_0x314325=_0x9a3484['defaultApp']||undefined,_0x3c34d2=_0x2418d6['app']||env(_0x4aaf24(0xcd))||undefined,_0x107b91=_0x3c34d2||_0x314325||undefined,_0x198ccd=env(_0x4aaf24(0xdd))||_0x9a3484[_0x4aaf24(0xf3)]||undefined,_0x3b3c86=_0x2418d6[_0x4aaf24(0x10a)]||env(_0x4aaf24(0xe2))||_0x9a3484['env']||DEFAULT_CONFIG_VALUES[_0x4aaf24(0x10a)],_0x500297=normalizeEnv(String(_0x3b3c86)),_0x1fc31a=isDaily(_0x500297)?'daily':isDev(_0x500297)?_0x4aaf24(0xf5):_0x4aaf24(0xfb),_0x44bb5b=typeof _0x2418d6[_0x4aaf24(0xdc)]===_0x4aaf24(0xeb)?_0x2418d6[_0x4aaf24(0xdc)]:undefined,_0x584b1e=env('APPCODE'),_0x189b6c=_0x3c34d2?undefined:_0x9a3484[_0x4aaf24(0xdc)]||_0x9a3484['app']||undefined,_0x2780b2=_0x3c34d2||(_0x189b6c?undefined:_0x314325),_0xff086a=resolveLocalAppAliasCode(_0x9a3484,_0x2780b2),_0x26cf52=resolveCachedAppCode(_0x2780b2,_0x1fc31a,_0x198ccd),_0x2dd66e=_0x44bb5b||_0x584b1e||_0x189b6c||_0xff086a||_0x26cf52||undefined,_0x51329f=_0x44bb5b?_0x4aaf24(0xcb):_0x584b1e?'env':_0x189b6c?_0x4aaf24(0xd8):_0xff086a?'local-alias':_0x26cf52?_0x4aaf24(0x109):undefined,_0x1928bd=_0x9a3484['locale']||DEFAULT_CONFIG_VALUES[_0x4aaf24(0xfa)],_0x4043b5=undefined,_0x5a42bb=_0x2418d6[_0x4aaf24(0x111)]||env(_0x4aaf24(0xed))||_0x9a3484[_0x4aaf24(0x111)],_0x5053a3=normalizeLegacyOutputFormat(_0x5a42bb),_0x1954e0=env(_0x4aaf24(0xee))||_0x9a3484['pageSize'],_0x405229=_0x1954e0?Number(_0x1954e0)||undefined:undefined,_0x5d35f0=_0x9a3484[_0x4aaf24(0xe6)],_0x40f030=_0x5d35f0===_0x4aaf24(0xff)||_0x5d35f0===_0x4aaf24(0xf2)||_0x5d35f0===_0x4aaf24(0xe4)?_0x5d35f0:DEFAULT_CONFIG_VALUES['riskLevel'],_0x33ee8a=_0x9a3484[_0x4aaf24(0xe1)]===!![],_0x34dd88=env('VERBOSE'),_0x89651d=_0x34dd88==='1'||_0x34dd88===_0x4aaf24(0xd7);return{'appCode':typeof _0x2dd66e===_0x4aaf24(0xeb)&&_0x2dd66e['trim']()?_0x2dd66e['trim']():undefined,'appCodeSource':_0x51329f,'env':_0x1fc31a,'locale':_0x1928bd,'cookie':_0x4043b5,'accessKey':_0x198ccd,'format':_0x5053a3,'pageSize':_0x405229,'riskLevel':_0x40f030,'nativeToolAvailable':_0x33ee8a,'verbose':_0x89651d,'defaultApp':_0x314325,'currentApp':typeof _0x107b91===_0x4aaf24(0xeb)?_0x107b91:undefined,'raw':_0x9a3484};}function env(_0x49f3fd){return productEnv(_0x49f3fd);}async function buildAuth(_0xe0efc1){const _0x421849=a104_0x1c026e,_0x13cbc7='',_0x581367=!!_0xe0efc1[_0x421849(0xf3)];return{'cookie':_0x13cbc7,'isLoggedIn':_0x581367,async 'getOrLogin'(){if(_0x581367)return _0x13cbc7;throw CliErrors['authRequired']();}};}
@@ -166,7 +166,7 @@ export interface RuntimeOcrResponse {
166
166
  }
167
167
  /** A personal knowledge-base entry returned by the runtime API. */
168
168
  export interface PersonalKnowledgeBaseItem {
169
- id: number;
169
+ id: string;
170
170
  appCode: string;
171
171
  scope?: string;
172
172
  userId?: number | string;
@@ -181,7 +181,7 @@ export interface PersonalKnowledgeBaseItem {
181
181
  }
182
182
  /** Request body used for personal knowledge-base create/update. */
183
183
  export interface PersonalKnowledgeBaseUpsertInput {
184
- title: string;
184
+ title?: string;
185
185
  content: string;
186
186
  }
187
187
  /** A runtime Skill returned by the management API. */
@@ -562,12 +562,12 @@ export declare function updatePersonalBff(id: number, appCode: string, input: Pe
562
562
  export declare function executePersonalBff(id: number, appCode: string, params: Record<string, any>): Promise<unknown>;
563
563
  /** Lists all personal entries through the KB Service page contract. */
564
564
  export declare function listPersonalKnowledgeBaseItems(appCode: string, signal?: AbortSignal): Promise<PersonalKnowledgeBaseItem[]>;
565
- /** Fetches one personal knowledge-base entry by numeric ID. */
566
- export declare function getPersonalKnowledgeBaseItem(id: number, appCode: string, signal?: AbortSignal): Promise<PersonalKnowledgeBaseItem>;
565
+ /** Fetches one personal knowledge-base entry by lossless string ID. */
566
+ export declare function getPersonalKnowledgeBaseItem(id: string, appCode: string, signal?: AbortSignal): Promise<PersonalKnowledgeBaseItem>;
567
567
  /** Creates a personal knowledge-base entry without retrying a write. */
568
568
  export declare function createPersonalKnowledgeBaseItem(appCode: string, input: PersonalKnowledgeBaseUpsertInput, signal?: AbortSignal): Promise<PersonalKnowledgeBaseItem>;
569
- /** Updates a personal knowledge-base entry. The backend requires POST. */
570
- export declare function updatePersonalKnowledgeBaseItem(id: number, appCode: string, input: PersonalKnowledgeBaseUpsertInput, signal?: AbortSignal): Promise<PersonalKnowledgeBaseItem>;
569
+ /** Updates a personal knowledge-base entry using a trusted version and POST CAS. */
570
+ export declare function updatePersonalKnowledgeBaseItem(id: string, appCode: string, input: PersonalKnowledgeBaseUpsertInput, signal?: AbortSignal): Promise<PersonalKnowledgeBaseItem>;
571
571
  export type RuntimeSkillRemoteScope = "all" | "personal" | "company";
572
572
  /** Fetches one SkillHub native Skill by exact namespace and slug. */
573
573
  export declare function getRuntimeSkillByCode(appCode: string, skillCode: string): Promise<RuntimeSkillItem | undefined>;