@lovrabet/lovrabet-cli 2.3.9 → 2.3.10-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 (204) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.d.ts +2 -3
  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/issue/context.js +1 -1
  38. package/lib/commands/issue/index.js +1 -1
  39. package/lib/commands/issue/report.js +1 -1
  40. package/lib/commands/kb/index.js +1 -1
  41. package/lib/commands/logs/index.js +1 -1
  42. package/lib/commands/notification/config-list.js +1 -1
  43. package/lib/commands/notification/index.js +1 -1
  44. package/lib/commands/notification/shared.js +1 -1
  45. package/lib/commands/ocr/index.js +1 -1
  46. package/lib/commands/permit/dataset-get.js +1 -1
  47. package/lib/commands/permit/dataset-set.js +1 -1
  48. package/lib/commands/permit/index.js +1 -1
  49. package/lib/commands/permit/page-get.js +1 -1
  50. package/lib/commands/permit/page-set.js +1 -1
  51. package/lib/commands/permit/role-menus-set.js +1 -1
  52. package/lib/commands/permit/role-menus.js +1 -1
  53. package/lib/commands/permit/shared.js +1 -1
  54. package/lib/commands/personal-bff/index.js +1 -1
  55. package/lib/commands/registry.js +1 -1
  56. package/lib/commands/role/create.js +1 -1
  57. package/lib/commands/role/delete.js +1 -1
  58. package/lib/commands/role/detail.js +1 -1
  59. package/lib/commands/role/index.js +1 -1
  60. package/lib/commands/role/list.js +1 -1
  61. package/lib/commands/role/shared.js +1 -1
  62. package/lib/commands/role/update.js +1 -1
  63. package/lib/commands/role/user-add.js +1 -1
  64. package/lib/commands/role/user-remove.js +1 -1
  65. package/lib/commands/schedule/index.js +1 -1
  66. package/lib/commands/schema.js +1 -1
  67. package/lib/commands/service/dynamic.js +1 -1
  68. package/lib/commands/service/function-name-adapter.js +1 -1
  69. package/lib/commands/service/index.js +1 -1
  70. package/lib/commands/service/registry.js +1 -1
  71. package/lib/commands/skill/commands/create.js +1 -1
  72. package/lib/commands/skill/commands/diagram.js +1 -1
  73. package/lib/commands/skill/commands/install.js +1 -1
  74. package/lib/commands/skill/commands/list.js +1 -1
  75. package/lib/commands/skill/commands/push.js +1 -1
  76. package/lib/commands/skill/commands/validate.js +1 -1
  77. package/lib/commands/skill/diagram.js +1 -1
  78. package/lib/commands/skill/flags.js +1 -1
  79. package/lib/commands/skill/index.js +1 -1
  80. package/lib/commands/skill/manifest-helpers.js +1 -1
  81. package/lib/commands/skill/push-execute.js +1 -1
  82. package/lib/commands/skill/push-flow-helpers.js +1 -1
  83. package/lib/commands/skill/push-retarget.js +1 -1
  84. package/lib/commands/skill/scopes.js +1 -1
  85. package/lib/commands/skill/summary.js +1 -1
  86. package/lib/commands/skill/templates.js +1 -1
  87. package/lib/commands/skill/validate.js +1 -1
  88. package/lib/commands/sql/detail.js +1 -1
  89. package/lib/commands/sql/exec.js +1 -1
  90. package/lib/commands/sql/index.js +1 -1
  91. package/lib/commands/update.js +1 -1
  92. package/lib/commands/user-account/bind.js +1 -1
  93. package/lib/commands/user-account/index.js +1 -1
  94. package/lib/commands/workspace/index.js +1 -1
  95. package/lib/config/domain-config.js +1 -1
  96. package/lib/config/schema.js +1 -1
  97. package/lib/constant/app.js +1 -1
  98. package/lib/constant/auth-mode.js +1 -1
  99. package/lib/constant/cli.js +1 -1
  100. package/lib/constant/defaults.js +1 -1
  101. package/lib/constant/distribution.js +1 -1
  102. package/lib/constant/domain.js +1 -1
  103. package/lib/constant/env.d.ts +5 -6
  104. package/lib/constant/env.js +1 -1
  105. package/lib/constant/output.js +1 -1
  106. package/lib/constant/product.js +1 -1
  107. package/lib/constant/region.js +1 -1
  108. package/lib/constant/risk.js +1 -1
  109. package/lib/constant/url.js +1 -1
  110. package/lib/context.d.ts +3 -13
  111. package/lib/context.js +1 -1
  112. package/lib/core/api-client.js +1 -1
  113. package/lib/core/db-resolver.js +1 -1
  114. package/lib/core/kb-management-client.js +1 -1
  115. package/lib/core/kb-sdk-errors.js +1 -1
  116. package/lib/core/kb-search-client.js +1 -1
  117. package/lib/core/sdk-client.js +1 -1
  118. package/lib/errors.js +1 -1
  119. package/lib/framework/access-error.js +1 -1
  120. package/lib/framework/build-all-flags.js +1 -1
  121. package/lib/framework/dryrun.js +1 -1
  122. package/lib/framework/flags.js +1 -1
  123. package/lib/framework/help.js +1 -1
  124. package/lib/framework/index.js +1 -1
  125. package/lib/framework/output.js +1 -1
  126. package/lib/framework/preparse.js +1 -1
  127. package/lib/framework/rate-limit.js +1 -1
  128. package/lib/framework/raw-flags.js +1 -1
  129. package/lib/framework/response.js +1 -1
  130. package/lib/framework/runner-confirmation.js +1 -1
  131. package/lib/framework/runner-error.js +1 -1
  132. package/lib/framework/runner.d.ts +2 -1
  133. package/lib/framework/runner.js +1 -1
  134. package/lib/framework/schema-export.js +1 -1
  135. package/lib/framework/service-order.js +1 -1
  136. package/lib/framework/types.d.ts +2 -0
  137. package/lib/framework/types.js +1 -1
  138. package/lib/generated/build-info.d.ts +4 -4
  139. package/lib/generated/build-info.js +1 -1
  140. package/lib/generated/official-routing.js +1 -1
  141. package/lib/generated/routing-contract.js +1 -1
  142. package/lib/help.js +1 -1
  143. package/lib/postinstall.js +1 -1
  144. package/lib/runtime/confirmation.js +1 -1
  145. package/lib/runtime/event.js +1 -1
  146. package/lib/runtime/index.js +1 -1
  147. package/lib/runtime/queue.js +1 -1
  148. package/lib/runtime/resolve.js +1 -1
  149. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  150. package/lib/services/dataset-import/excel-reader.js +1 -1
  151. package/lib/services/dataset-import/image-bytes.js +1 -1
  152. package/lib/services/dataset-import/image-ooxml.js +1 -1
  153. package/lib/services/dataset-import/image-runner.js +1 -1
  154. package/lib/services/dataset-import/metadata.js +1 -1
  155. package/lib/services/dataset-import/preview.js +1 -1
  156. package/lib/services/dataset-import/runner.js +1 -1
  157. package/lib/skills/builtin-skill.js +1 -1
  158. package/lib/skills/npx-skills-add.js +1 -1
  159. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  160. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  161. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  162. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  163. package/lib/skills/runtime-skill-sync/links.js +1 -1
  164. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  165. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  166. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  167. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  168. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  169. package/lib/skills/runtime-skill-sync/push.js +1 -1
  170. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  171. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  172. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  173. package/lib/skills/runtime-skill-sync.js +1 -1
  174. package/lib/skills/skill-presence.js +1 -1
  175. package/lib/utils/access-key-redaction.js +1 -1
  176. package/lib/utils/apply-jq-filter.js +1 -1
  177. package/lib/utils/cli-version-check.js +1 -1
  178. package/lib/utils/cli-version-policy.js +1 -1
  179. package/lib/utils/logger.js +1 -1
  180. package/lib/utils/lossless-json.js +1 -1
  181. package/lib/utils/params.js +1 -1
  182. package/lib/utils/positive-safe-integer.js +1 -1
  183. package/lib/utils/redaction.js +1 -1
  184. package/lib/utils/runtime-user-id.js +1 -1
  185. package/lib/utils/update-notice.js +1 -1
  186. package/lib/utils/version.js +1 -1
  187. package/lib/utils/write-cli-side-channel.js +1 -1
  188. package/package.json +1 -1
  189. package/skills/lovrabet/SKILL.md +31 -132
  190. package/skills/lovrabet/guides/app-resolution.md +39 -139
  191. package/skills/lovrabet/guides/dataset-and-data-workflow.md +4 -3
  192. package/skills/lovrabet/guides/sql-and-bff-workflow.md +12 -27
  193. package/skills/lovrabet/guides/troubleshooting.md +11 -31
  194. package/skills/lovrabet/references/dataset-discovery-workflow.md +10 -48
  195. package/skills/lovrabet/references/instant-api-workflow.md +4 -11
  196. package/skills/lovrabet/references/lovrabet-app.md +6 -33
  197. package/skills/lovrabet/references/lovrabet-auth.md +16 -9
  198. package/skills/lovrabet/references/lovrabet-bff-workflow.md +9 -34
  199. package/skills/lovrabet/references/lovrabet-config.md +49 -31
  200. package/skills/lovrabet/references/lovrabet-kb-workflow.md +2 -2
  201. package/skills/lovrabet/references/lovrabet-service-tree.md +11 -9
  202. package/skills/lovrabet/references/lovrabet-sql-workflow.md +9 -34
  203. package/skills/lovrabet/references/lovrabet-workspace.md +12 -11
  204. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a97_0x5e707c=a97_0x5cb1;(function(_0x36cc80,_0x31a7de){const _0x526c0e=a97_0x5cb1,_0x5a648b=_0x36cc80();while(!![]){try{const _0x240126=-parseInt(_0x526c0e(0x1e5))/0x1+parseInt(_0x526c0e(0x1fa))/0x2+parseInt(_0x526c0e(0x203))/0x3+parseInt(_0x526c0e(0x1de))/0x4*(-parseInt(_0x526c0e(0x200))/0x5)+parseInt(_0x526c0e(0x1eb))/0x6*(-parseInt(_0x526c0e(0x1e1))/0x7)+parseInt(_0x526c0e(0x1d9))/0x8*(-parseInt(_0x526c0e(0x1e9))/0x9)+parseInt(_0x526c0e(0x1d5))/0xa;if(_0x240126===_0x31a7de)break;else _0x5a648b['push'](_0x5a648b['shift']());}catch(_0x515be8){_0x5a648b['push'](_0x5a648b['shift']());}}}(a97_0x44b2,0x213cf));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a97_0x5e707c(0x1da)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a97_0x5e707c(0x1f3)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a97_0x5e707c(0x1ff),'meowKey':a97_0x5e707c(0x1ff),'type':a97_0x5e707c(0x1ef),'description':a97_0x5e707c(0x1d8),'hint':a97_0x5e707c(0x1f8)},{'name':a97_0x5e707c(0x1f4),'meowKey':'app','type':a97_0x5e707c(0x1ef),'description':'Select\x20app\x20profile\x20by\x20name','hint':a97_0x5e707c(0x1e6)},{'name':a97_0x5e707c(0x1f1),'meowKey':a97_0x5e707c(0x1f1),'type':a97_0x5e707c(0x1ef),'description':a97_0x5e707c(0x202),'hint':a97_0x5e707c(0x1f6)},{'name':a97_0x5e707c(0x1e7),'meowKey':a97_0x5e707c(0x1e7),'type':a97_0x5e707c(0x1ef),'description':'Output\x20format','hint':a97_0x5e707c(0x1fb)},{'name':'jq','meowKey':'jq','type':'string','description':a97_0x5e707c(0x1db),'hint':'<expr>'},{'name':a97_0x5e707c(0x1f9),'meowKey':a97_0x5e707c(0x1ea),'type':a97_0x5e707c(0x1fd),'description':'Preview\x20operation\x20without\x20executing'},{'name':a97_0x5e707c(0x1fc),'meowKey':a97_0x5e707c(0x1fc),'type':a97_0x5e707c(0x1fd),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a97_0x5e707c(0x1ec),'meowKey':a97_0x5e707c(0x1ee),'type':a97_0x5e707c(0x1fd),'description':a97_0x5e707c(0x1f7)},{'name':a97_0x5e707c(0x1f2),'meowKey':a97_0x5e707c(0x1f2),'type':a97_0x5e707c(0x1fd),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a97_0x5e707c(0x1dc),'hidden':!![]},{'name':a97_0x5e707c(0x1fe),'meowKey':a97_0x5e707c(0x1fe),'type':a97_0x5e707c(0x1fd),'description':a97_0x5e707c(0x1e8)},{'name':'id','meowKey':'id','type':'string','description':a97_0x5e707c(0x1e4),'hidden':!![]},{'name':a97_0x5e707c(0x1df),'meowKey':'name','type':a97_0x5e707c(0x1ef),'description':a97_0x5e707c(0x201),'hidden':!![]},{'name':'sqlcode','meowKey':a97_0x5e707c(0x1e2),'type':'string','description':a97_0x5e707c(0x1d6),'hidden':!![]},{'name':'params','meowKey':a97_0x5e707c(0x1f5),'type':a97_0x5e707c(0x1ef),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a97_0x5e707c(0x1e0),'meowKey':'verbose','type':a97_0x5e707c(0x1fd),'description':a97_0x5e707c(0x1dd),'hidden':!![]},{'name':'clear','meowKey':'clear','type':'boolean','description':a97_0x5e707c(0x1d7),'hidden':!![]}];function a97_0x5cb1(_0x4d0791,_0xa51a3a){_0x4d0791=_0x4d0791-0x1d5;const _0x44b2f8=a97_0x44b2();let _0x5cb184=_0x44b2f8[_0x4d0791];return _0x5cb184;}function a97_0x44b2(){const _0x108641=['global','cliDisplayName','app','params','production\x20|\x20development\x20|\x20daily','Force\x20non-interactive\x20mode\x20(CI)','<code>','dry-run','216510HnfMxa','json\x20|\x20pretty\x20|\x20compress','yes','boolean','help','appcode','575RwQyuW','Name\x20filter','Environment','691680cFGTXY','3823760buSoKT','SQL\x20query\x20code','Clear\x20output','Override\x20appcode','8BVsXBz','cliBinName','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','Alias\x20for\x20--non-interactive','Verbose\x20output','68nMCSKH','name','verbose','17255UiQQYO','sqlcode','fromEntries','Record\x20ID','271195RRjvQI','<name>','format','Show\x20help','1231947QXuFrc','dryRun','426vsSJvx','non-interactive','type','nonInteractive','string','meowKey','env'];a97_0x44b2=function(){return _0x108641;};return a97_0x44b2();}export const PIPELINE_FLAG_NAMES=new Set([a97_0x5e707c(0x1ff),a97_0x5e707c(0x1f4),'env','format','jq','dry-run',a97_0x5e707c(0x1fc),a97_0x5e707c(0x1ec),'ci']);export function buildMeowFlags(){const _0x37d0b4=a97_0x5e707c;return Object[_0x37d0b4(0x1e3)](GLOBAL_FLAGS['map'](_0x5d66dc=>[_0x5d66dc[_0x37d0b4(0x1f0)],{'type':_0x5d66dc[_0x37d0b4(0x1ed)]}]));}
1
+ const a97_0x904786=a97_0x3a5a;(function(_0xd5e45a,_0x14aae0){const _0x1f504b=a97_0x3a5a,_0x5a0513=_0xd5e45a();while(!![]){try{const _0x307b9a=parseInt(_0x1f504b(0xf8))/0x1+parseInt(_0x1f504b(0xfb))/0x2+parseInt(_0x1f504b(0xd6))/0x3*(parseInt(_0x1f504b(0xe8))/0x4)+-parseInt(_0x1f504b(0xee))/0x5+parseInt(_0x1f504b(0xd0))/0x6*(parseInt(_0x1f504b(0xf0))/0x7)+-parseInt(_0x1f504b(0xe1))/0x8*(parseInt(_0x1f504b(0xfd))/0x9)+-parseInt(_0x1f504b(0xdd))/0xa;if(_0x307b9a===_0x14aae0)break;else _0x5a0513['push'](_0x5a0513['shift']());}catch(_0xf67a86){_0x5a0513['push'](_0x5a0513['shift']());}}}(a97_0xdef0,0xe920d));function a97_0xdef0(){const _0x1a4c4d=['params','format','boolean','type','17163720xdJsJl','help','SQL\x20query\x20code','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','32NavgZO','Skip\x20confirmation\x20for\x20high-risk\x20writes','global','<expr>','clear','meowKey','dry-run','1485956vBEdcb','verbose','production\x20|\x20development\x20|\x20daily','fromEntries','<code>','Use\x20global\x20config\x20scope','9539290Atejcn','Clear\x20output','2531487UqJTeK','Show\x20help','json\x20|\x20pretty\x20|\x20compress','yes','dryRun','app','env','Record\x20ID','1870819PQtFTM','non-interactive','JSON\x20params\x20for\x20execute\x20commands','3430722hJCNxX','string','251271vQltlA','map','nonInteractive','sqlcode','6MrQBbf','<name>','Verbose\x20output','cliDisplayName','Output\x20format','name','6xIgAGN','appcode','Preview\x20operation\x20without\x20executing'];a97_0xdef0=function(){return _0x1a4c4d;};return a97_0xdef0();}import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';function a97_0x3a5a(_0x31bda9,_0x2d5e47){_0x31bda9=_0x31bda9-0xcd;const _0xdef07b=a97_0xdef0();let _0x3a5a61=_0xdef07b[_0x31bda9];return _0x3a5a61;}export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a97_0x904786(0xd3)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a97_0x904786(0xd7),'meowKey':'appcode','type':'string','description':'Override\x20appcode','hint':a97_0x904786(0xec)},{'name':a97_0x904786(0xf5),'meowKey':a97_0x904786(0xf5),'type':a97_0x904786(0xfc),'description':'Select\x20app\x20profile\x20by\x20name','hint':a97_0x904786(0xd1)},{'name':a97_0x904786(0xf6),'meowKey':a97_0x904786(0xf6),'type':'string','description':'Environment','hint':a97_0x904786(0xea)},{'name':a97_0x904786(0xda),'meowKey':'format','type':'string','description':a97_0x904786(0xd4),'hint':a97_0x904786(0xf2)},{'name':'jq','meowKey':'jq','type':a97_0x904786(0xfc),'description':a97_0x904786(0xe0),'hint':a97_0x904786(0xe4)},{'name':a97_0x904786(0xe7),'meowKey':a97_0x904786(0xf4),'type':a97_0x904786(0xdb),'description':a97_0x904786(0xd8)},{'name':a97_0x904786(0xf3),'meowKey':a97_0x904786(0xf3),'type':'boolean','description':a97_0x904786(0xe2)},{'name':'non-interactive','meowKey':a97_0x904786(0xce),'type':a97_0x904786(0xdb),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a97_0x904786(0xe3),'meowKey':a97_0x904786(0xe3),'type':a97_0x904786(0xdb),'description':a97_0x904786(0xed)},{'name':'ci','meowKey':'ci','type':a97_0x904786(0xdb),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':'help','meowKey':a97_0x904786(0xde),'type':a97_0x904786(0xdb),'description':a97_0x904786(0xf1)},{'name':'id','meowKey':'id','type':a97_0x904786(0xfc),'description':a97_0x904786(0xf7),'hidden':!![]},{'name':a97_0x904786(0xd5),'meowKey':'name','type':a97_0x904786(0xfc),'description':'Name\x20filter','hidden':!![]},{'name':a97_0x904786(0xcf),'meowKey':a97_0x904786(0xcf),'type':a97_0x904786(0xfc),'description':a97_0x904786(0xdf),'hidden':!![]},{'name':a97_0x904786(0xd9),'meowKey':a97_0x904786(0xd9),'type':a97_0x904786(0xfc),'description':a97_0x904786(0xfa),'hidden':!![]},{'name':a97_0x904786(0xe9),'meowKey':'verbose','type':'boolean','description':a97_0x904786(0xd2),'hidden':!![]},{'name':a97_0x904786(0xe5),'meowKey':'clear','type':a97_0x904786(0xdb),'description':a97_0x904786(0xef),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode','app',a97_0x904786(0xf6),'format','jq',a97_0x904786(0xe7),a97_0x904786(0xf3),a97_0x904786(0xf9),'ci']);export function buildMeowFlags(){const _0x2a9939=a97_0x904786;return Object[_0x2a9939(0xeb)](GLOBAL_FLAGS[_0x2a9939(0xcd)](_0xd3313b=>[_0xd3313b[_0x2a9939(0xe6)],{'type':_0xd3313b[_0x2a9939(0xdc)]}]));}
@@ -1 +1 @@
1
- const a98_0x2db4c0=a98_0x16d4;function a98_0x3e66(){const _0x4b5f6c=['main','2889229EdFqAg','261825KcaRaT','20pMQphC','2955870ubdEhF','8pieTmJ','5467041BILAEy','33RvLvcu','474NzCDPO','1286548HaApiY','35965NvIVkn','compress','275367rFJlWk','en-US'];a98_0x3e66=function(){return _0x4b5f6c;};return a98_0x3e66();}(function(_0x1fbc73,_0x53c632){const _0x4253a9=a98_0x16d4,_0x2f02b3=_0x1fbc73();while(!![]){try{const _0x1da874=-parseInt(_0x4253a9(0x83))/0x1+parseInt(_0x4253a9(0x8a))/0x2+parseInt(_0x4253a9(0x8d))/0x3*(-parseInt(_0x4253a9(0x84))/0x4)+-parseInt(_0x4253a9(0x8b))/0x5*(-parseInt(_0x4253a9(0x89))/0x6)+-parseInt(_0x4253a9(0x82))/0x7*(parseInt(_0x4253a9(0x86))/0x8)+-parseInt(_0x4253a9(0x87))/0x9+-parseInt(_0x4253a9(0x85))/0xa*(-parseInt(_0x4253a9(0x88))/0xb);if(_0x1da874===_0x53c632)break;else _0x2f02b3['push'](_0x2f02b3['shift']());}catch(_0xb19ad1){_0x2f02b3['push'](_0x2f02b3['shift']());}}}(a98_0x3e66,0x573c4));export const DEFAULT_APP_PROFILE_NAME=a98_0x2db4c0(0x81);export const DEFAULT_CONFIG_VALUES={'env':'production','format':a98_0x2db4c0(0x8c),'locale':a98_0x2db4c0(0x80),'riskLevel':'write'};function a98_0x16d4(_0x1bad3b,_0x1dec25){_0x1bad3b=_0x1bad3b-0x80;const _0x3e6687=a98_0x3e66();let _0x16d463=_0x3e6687[_0x1bad3b];return _0x16d463;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a98_0x2db4c0(0x8c);
1
+ const a98_0x37189c=a98_0x145b;(function(_0x4bac1e,_0x8f4b9e){const _0x4eb85c=a98_0x145b,_0x474e82=_0x4bac1e();while(!![]){try{const _0x35f67e=-parseInt(_0x4eb85c(0x104))/0x1*(-parseInt(_0x4eb85c(0xff))/0x2)+parseInt(_0x4eb85c(0xfc))/0x3+-parseInt(_0x4eb85c(0x105))/0x4*(-parseInt(_0x4eb85c(0x100))/0x5)+-parseInt(_0x4eb85c(0xfd))/0x6+parseInt(_0x4eb85c(0x101))/0x7*(parseInt(_0x4eb85c(0xfe))/0x8)+-parseInt(_0x4eb85c(0x10a))/0x9+-parseInt(_0x4eb85c(0x108))/0xa*(-parseInt(_0x4eb85c(0x106))/0xb);if(_0x35f67e===_0x8f4b9e)break;else _0x474e82['push'](_0x474e82['shift']());}catch(_0x2cd2f7){_0x474e82['push'](_0x474e82['shift']());}}}(a98_0xabdd,0x711b4));function a98_0x145b(_0x3ec745,_0xdc2b37){_0x3ec745=_0x3ec745-0xfc;const _0xabddad=a98_0xabdd();let _0x145b54=_0xabddad[_0x3ec745];return _0x145b54;}export const DEFAULT_APP_PROFILE_NAME=a98_0x37189c(0x102);export const DEFAULT_CONFIG_VALUES={'env':a98_0x37189c(0x109),'format':a98_0x37189c(0x107),'locale':'en-US','riskLevel':a98_0x37189c(0x103)};function a98_0xabdd(){const _0x12a825=['1787394vXsVaI','401608ibadMK','104ovhUUZ','5NgXYQw','14lqKvDk','main','write','9475SbqeIO','381764PdWrqF','11zcKMxc','compress','1967320ePAWNg','production','3876750zweTZq','919974PuuNbN'];a98_0xabdd=function(){return _0x12a825;};return a98_0xabdd();}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a98_0x37189c(0x107);
@@ -1 +1 @@
1
- const a99_0x5af3a1=a99_0x21de;(function(_0x30cff8,_0x4296f2){const _0xeb1a7b=a99_0x21de,_0x276dab=_0x30cff8();while(!![]){try{const _0x207e5e=-parseInt(_0xeb1a7b(0x1c3))/0x1*(-parseInt(_0xeb1a7b(0x1c0))/0x2)+parseInt(_0xeb1a7b(0x1ba))/0x3+-parseInt(_0xeb1a7b(0x1b6))/0x4*(-parseInt(_0xeb1a7b(0x1b7))/0x5)+-parseInt(_0xeb1a7b(0x1b8))/0x6*(parseInt(_0xeb1a7b(0x1be))/0x7)+-parseInt(_0xeb1a7b(0x1c1))/0x8*(parseInt(_0xeb1a7b(0x1c4))/0x9)+parseInt(_0xeb1a7b(0x1bc))/0xa+parseInt(_0xeb1a7b(0x1bb))/0xb*(-parseInt(_0xeb1a7b(0x1b9))/0xc);if(_0x207e5e===_0x4296f2)break;else _0x276dab['push'](_0x276dab['shift']());}catch(_0x257849){_0x276dab['push'](_0x276dab['shift']());}}}(a99_0x58e6,0x70da7));import{PRODUCT_CONFIG}from'../constant/product.js';function a99_0x58e6(){const _0x3ec019=['44743RWvJdS','626058PdWDyo','1196CGDzrU','1640xcwBzm','804504EGopDN','131844iSSehw','974670jsJOJr','671LNHEtN','7789090vRTRTE','skillSource','7FLlBxr','/dist/lovrabet-cli/config/index.json','6xClqGJ','8kcZMsG','npmRegistryBaseUrl'];a99_0x58e6=function(){return _0x3ec019;};return a99_0x58e6();}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];function a99_0x21de(_0x4ab661,_0x5704ad){_0x4ab661=_0x4ab661-0x1b6;const _0x58e6fb=a99_0x58e6();let _0x21de2c=_0x58e6fb[_0x4ab661];return _0x21de2c;}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a99_0x5af3a1(0x1bd)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a99_0x5af3a1(0x1c2)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG['cliCdnBaseUrl'];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a99_0x5af3a1(0x1bf);
1
+ const a99_0x183971=a99_0x4b51;function a99_0x1133(){const _0x3b39ae=['6779232jNdgUs','skillSource','5046876qcWPzn','5NoLcMO','npmRegistryBaseUrl','9eoMXhX','npmPackageName','2535394YVbFxp','3927090XhqmFO','/dist/lovrabet-cli/config/index.json','5669852TqKXzZ','14oacXrk','46735940WSAyMr','1008024HTZYHi'];a99_0x1133=function(){return _0x3b39ae;};return a99_0x1133();}(function(_0x57cbb1,_0x39b180){const _0x22c02b=a99_0x4b51,_0x3688c3=_0x57cbb1();while(!![]){try{const _0x5dcbb9=-parseInt(_0x22c02b(0x1d7))/0x1+parseInt(_0x22c02b(0x1d1))/0x2+parseInt(_0x22c02b(0x1cc))/0x3+parseInt(_0x22c02b(0x1d4))/0x4*(parseInt(_0x22c02b(0x1cd))/0x5)+parseInt(_0x22c02b(0x1d2))/0x6*(parseInt(_0x22c02b(0x1d5))/0x7)+parseInt(_0x22c02b(0x1d8))/0x8+-parseInt(_0x22c02b(0x1cf))/0x9*(parseInt(_0x22c02b(0x1d6))/0xa);if(_0x5dcbb9===_0x39b180)break;else _0x3688c3['push'](_0x3688c3['shift']());}catch(_0x555e37){_0x3688c3['push'](_0x3688c3['shift']());}}}(a99_0x1133,0xcda1c));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a99_0x183971(0x1d0)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a99_0x183971(0x1cb)];function a99_0x4b51(_0x19c672,_0x135e4e){_0x19c672=_0x19c672-0x1cb;const _0x11336d=a99_0x1133();let _0x4b5180=_0x11336d[_0x19c672];return _0x4b5180;}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a99_0x183971(0x1ce)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG['cliCdnBaseUrl'];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a99_0x183971(0x1d3);
@@ -1 +1 @@
1
- const a100_0x43ac51=a100_0x3efd;(function(_0x1a55c1,_0xf3056c){const _0x117494=a100_0x3efd,_0x5ab532=_0x1a55c1();while(!![]){try{const _0x599633=-parseInt(_0x117494(0xa4))/0x1+parseInt(_0x117494(0x9f))/0x2+parseInt(_0x117494(0xa3))/0x3*(-parseInt(_0x117494(0xa0))/0x4)+-parseInt(_0x117494(0x99))/0x5*(parseInt(_0x117494(0x98))/0x6)+-parseInt(_0x117494(0x9d))/0x7+parseInt(_0x117494(0xa2))/0x8+-parseInt(_0x117494(0xa7))/0x9*(-parseInt(_0x117494(0xa1))/0xa);if(_0x599633===_0xf3056c)break;else _0x5ab532['push'](_0x5ab532['shift']());}catch(_0x215b01){_0x5ab532['push'](_0x5ab532['shift']());}}}(a100_0x56a3,0x2f4c2));import{getEnv,isProduction}from'../constant/env.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x1bc168){const _0x14d37a=a100_0x3efd;customApiDomain=_0x1bc168?.[_0x14d37a(0x9e)],customUserDomain=_0x1bc168?.['userDomain'],customRuntimeDomain=_0x1bc168?.[_0x14d37a(0x9a)],customSkillDomain=_0x1bc168?.[_0x14d37a(0xa5)],customKbServiceDomain=_0x1bc168?.['kbServiceDomain'],allowOfficialKbServiceDefault=_0x1bc168?.[_0x14d37a(0x9b)]??!![],activeRegion=_0x1bc168?.[_0x14d37a(0xa9)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x57a941=a100_0x3efd,_0x20ddd9=OFFICIAL_ROUTING_PROFILES[activeRegion]['serviceDomains'];return isProduction(getEnv())?_0x20ddd9[_0x57a941(0xa6)]:'daily'in _0x20ddd9?_0x20ddd9['daily']:_0x20ddd9[_0x57a941(0xa6)];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a100_0x43ac51(0x97)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];function a100_0x3efd(_0x5070a1,_0x2cde16){_0x5070a1=_0x5070a1-0x96;const _0x56a3af=a100_0x56a3();let _0x3efdb2=_0x56a3af[_0x5070a1];return _0x3efdb2;}export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a100_0x43ac51(0x96)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a100_0x43ac51(0x9c)];export const getKbServiceDomain=()=>{const _0x33ed07=a100_0x43ac51;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;const _0x585bd8=getActiveRegionDomains();return _0x33ed07(0xa8)in _0x585bd8?_0x585bd8[_0x33ed07(0xa8)]:undefined;};function a100_0x56a3(){const _0x12b1b4=['runtimeDomain','allowOfficialKbServiceDefault','skill','2665726kRvuAO','apiDomain','620432XoUONJ','104PDMtch','9662090qwOFcg','334272dOqSYK','18813nwSkgE','374412XJdqve','skillDomain','production','9pykgoK','kbService','region','runtime','user','6SLfJmD','1031015tTqerq'];a100_0x56a3=function(){return _0x12b1b4;};return a100_0x56a3();}
1
+ const a100_0x22d381=a100_0x4074;(function(_0x465b30,_0x47db70){const _0x23e751=a100_0x4074,_0x3936f6=_0x465b30();while(!![]){try{const _0xaecb47=-parseInt(_0x23e751(0x193))/0x1+-parseInt(_0x23e751(0x19b))/0x2+-parseInt(_0x23e751(0x1a1))/0x3*(parseInt(_0x23e751(0x19a))/0x4)+parseInt(_0x23e751(0x1a0))/0x5*(parseInt(_0x23e751(0x19d))/0x6)+-parseInt(_0x23e751(0x197))/0x7+-parseInt(_0x23e751(0x192))/0x8+parseInt(_0x23e751(0x194))/0x9;if(_0xaecb47===_0x47db70)break;else _0x3936f6['push'](_0x3936f6['shift']());}catch(_0x2e6be2){_0x3936f6['push'](_0x3936f6['shift']());}}}(a100_0x12c5,0x5aadb));import{getEnv,isProduction}from'../constant/env.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x19af12){const _0x21e77f=a100_0x4074;customApiDomain=_0x19af12?.[_0x21e77f(0x196)],customUserDomain=_0x19af12?.[_0x21e77f(0x1a3)],customRuntimeDomain=_0x19af12?.[_0x21e77f(0x198)],customSkillDomain=_0x19af12?.[_0x21e77f(0x1a2)],customKbServiceDomain=_0x19af12?.['kbServiceDomain'],allowOfficialKbServiceDefault=_0x19af12?.[_0x21e77f(0x195)]??!![],activeRegion=_0x19af12?.[_0x21e77f(0x19c)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x4482ae=a100_0x4074,_0x19fad=OFFICIAL_ROUTING_PROFILES[activeRegion]['serviceDomains'];return isProduction(getEnv())?_0x19fad[_0x4482ae(0x19f)]:_0x4482ae(0x19e)in _0x19fad?_0x19fad[_0x4482ae(0x19e)]:_0x19fad[_0x4482ae(0x19f)];};function a100_0x4074(_0x25ff02,_0x3eab85){_0x25ff02=_0x25ff02-0x192;const _0x12c571=a100_0x12c5();let _0x407488=_0x12c571[_0x25ff02];return _0x407488;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a100_0x22d381(0x199)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a100_0x22d381(0x1a4)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()['runtime'];function a100_0x12c5(){const _0x3f2242=['apiDomain','2002910ZBIUKH','runtimeDomain','user','184312DgsBQZ','489674SzJNbx','region','8550KWcpLy','daily','production','1375pXAnyw','3uveDfK','skillDomain','userDomain','api','kbService','640368RyFPbW','148504DjnNfv','7066251GygaER','allowOfficialKbServiceDefault'];a100_0x12c5=function(){return _0x3f2242;};return a100_0x12c5();}export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbServiceDomain=()=>{const _0x507fcd=a100_0x22d381;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;const _0x41ea58=getActiveRegionDomains();return _0x507fcd(0x1a5)in _0x41ea58?_0x41ea58[_0x507fcd(0x1a5)]:undefined;};
@@ -20,16 +20,15 @@ export declare const RUNTIME_ENV_VALUES: readonly ["production", "development",
20
20
  /**
21
21
  * Normalizes a user-supplied environment string to the canonical form.
22
22
  *
23
- * Why normalize `"online"` to `"production"`: older `.lovrabet.json` and
24
- * `.rabetbase.json` files used `"online"` before the team standardized on
25
- * `"production"`. Normalizing at the boundary prevents this legacy value from
26
- * reaching downstream code that only knows the canonical set.
23
+ * Legacy configs use `"online"`; published Service Tree examples also use
24
+ * `"prod"`. Both identify production and must compare as the same environment.
25
+ * Unknown values stay unchanged so callers can reject unsupported bindings.
27
26
  *
28
27
  * @param e - Any string (including legacy aliases).
29
- * @returns `"production"`, `"development"`, or `"daily"`.
28
+ * @returns The normalized production alias, or the original value.
30
29
  */
31
30
  export declare function normalizeEnv(e: string): string;
32
- /** Checks whether the normalized environment is production (or the legacy `"online"` alias). */
31
+ /** Checks production and its legacy aliases. */
33
32
  export declare function isProduction(e: string): boolean;
34
33
  /** Checks whether the normalized environment is `daily`. */
35
34
  export declare function isDaily(e: string): boolean;
@@ -1 +1 @@
1
- const a101_0x2dc507=a101_0x2463;(function(_0x2b9fab,_0x75651d){const _0x58756a=a101_0x2463,_0x378089=_0x2b9fab();while(!![]){try{const _0x462a15=parseInt(_0x58756a(0x196))/0x1*(parseInt(_0x58756a(0x19e))/0x2)+parseInt(_0x58756a(0x1a2))/0x3*(-parseInt(_0x58756a(0x19f))/0x4)+parseInt(_0x58756a(0x1a1))/0x5*(parseInt(_0x58756a(0x197))/0x6)+-parseInt(_0x58756a(0x1a0))/0x7+parseInt(_0x58756a(0x19a))/0x8*(parseInt(_0x58756a(0x19c))/0x9)+-parseInt(_0x58756a(0x192))/0xa*(-parseInt(_0x58756a(0x1a3))/0xb)+-parseInt(_0x58756a(0x19d))/0xc*(parseInt(_0x58756a(0x1a4))/0xd);if(_0x462a15===_0x75651d)break;else _0x378089['push'](_0x378089['shift']());}catch(_0x112c06){_0x378089['push'](_0x378089['shift']());}}}(a101_0x1893,0x67d8c));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a101_0x2dc507(0x19b),a101_0x2dc507(0x194),a101_0x2dc507(0x195)];function a101_0x1893(){const _0xf7c3d=['447976cIuFeG','production','63zymBun','54960ZhTRmL','36NzHPou','92rWkhZU','2419564KWFojx','1908070xtaTxS','97635KTxCOe','1014211ICNxDd','26QMvSuD','20fMEXiG','online','development','daily','31706koqolZ','6EtYGMj','dev','ENV'];a101_0x1893=function(){return _0xf7c3d;};return a101_0x1893();}export function normalizeEnv(_0x4d1a04){const _0x575c8b=a101_0x2dc507;return _0x4d1a04===_0x575c8b(0x193)?_0x575c8b(0x19b):_0x4d1a04;}export function isProduction(_0x22f899){const _0x8b8b1c=a101_0x2dc507;return normalizeEnv(_0x22f899)===_0x8b8b1c(0x19b);}export function isDaily(_0x3e9fce){const _0x82ddd0=a101_0x2dc507;return normalizeEnv(_0x3e9fce)===_0x82ddd0(0x195);}function a101_0x2463(_0x4b8c95,_0x81e814){_0x4b8c95=_0x4b8c95-0x192;const _0x18932a=a101_0x1893();let _0x24638a=_0x18932a[_0x4b8c95];return _0x24638a;}export function isDev(_0x183440){const _0x1b6508=a101_0x2dc507,_0x25ce61=normalizeEnv(_0x183440);return _0x25ce61===_0x1b6508(0x194)||_0x25ce61===_0x1b6508(0x198);}let env=normalizeEnv(productEnv(a101_0x2dc507(0x199))||'production');export function getEnv(){return env;}export function initEnv(_0x4039b4){env=normalizeEnv(_0x4039b4);}
1
+ const a101_0x29bd9d=a101_0x2acc;(function(_0x5482e4,_0x1382aa){const _0x49a265=a101_0x2acc,_0x200ba1=_0x5482e4();while(!![]){try{const _0x151982=parseInt(_0x49a265(0x79))/0x1+parseInt(_0x49a265(0x7a))/0x2+-parseInt(_0x49a265(0x7c))/0x3+parseInt(_0x49a265(0x82))/0x4*(parseInt(_0x49a265(0x78))/0x5)+-parseInt(_0x49a265(0x7f))/0x6+-parseInt(_0x49a265(0x77))/0x7+parseInt(_0x49a265(0x80))/0x8*(-parseInt(_0x49a265(0x75))/0x9);if(_0x151982===_0x1382aa)break;else _0x200ba1['push'](_0x200ba1['shift']());}catch(_0x1d776d){_0x200ba1['push'](_0x200ba1['shift']());}}}(a101_0x5913,0xa92c2));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a101_0x29bd9d(0x7b),a101_0x29bd9d(0x73),a101_0x29bd9d(0x81)];export function normalizeEnv(_0x195749){const _0x58eada=a101_0x29bd9d;return _0x195749===_0x58eada(0x74)||_0x195749===_0x58eada(0x76)?_0x58eada(0x7b):_0x195749;}export function isProduction(_0x28db17){const _0x2f3253=a101_0x29bd9d;return normalizeEnv(_0x28db17)===_0x2f3253(0x7b);}export function isDaily(_0x493f49){return normalizeEnv(_0x493f49)==='daily';}function a101_0x2acc(_0x6613a6,_0x4a8a02){_0x6613a6=_0x6613a6-0x73;const _0x5913c7=a101_0x5913();let _0x2acc79=_0x5913c7[_0x6613a6];return _0x2acc79;}export function isDev(_0x42d22d){const _0x2b311e=a101_0x29bd9d,_0x4c0289=normalizeEnv(_0x42d22d);return _0x4c0289===_0x2b311e(0x73)||_0x4c0289===_0x2b311e(0x7d);}let env=normalizeEnv(productEnv(a101_0x29bd9d(0x7e))||a101_0x29bd9d(0x7b));export function getEnv(){return env;}export function initEnv(_0x10dc84){env=normalizeEnv(_0x10dc84);}function a101_0x5913(){const _0x2f7110=['online','954zVwHDJ','prod','2342011xGHkzE','40SvKxyd','1301149KyfERE','1348948gVhAvK','production','2460330oUjUNv','dev','ENV','3149112fBUxYv','65752mtSkvu','daily','634028KKyTQx','development'];a101_0x5913=function(){return _0x2f7110;};return a101_0x5913();}
@@ -1 +1 @@
1
- const a102_0x1c8bdc=a102_0x1c7d;function a102_0x1c7d(_0x50a63d,_0x1e1336){_0x50a63d=_0x50a63d-0x12d;const _0x713453=a102_0x7134();let _0x1c7d5c=_0x713453[_0x50a63d];return _0x1c7d5c;}(function(_0x3312fb,_0x37b032){const _0xd83e57=a102_0x1c7d,_0x566f56=_0x3312fb();while(!![]){try{const _0x26fe41=-parseInt(_0xd83e57(0x12d))/0x1*(-parseInt(_0xd83e57(0x13a))/0x2)+-parseInt(_0xd83e57(0x139))/0x3*(-parseInt(_0xd83e57(0x134))/0x4)+parseInt(_0xd83e57(0x132))/0x5*(parseInt(_0xd83e57(0x12e))/0x6)+parseInt(_0xd83e57(0x136))/0x7*(parseInt(_0xd83e57(0x133))/0x8)+parseInt(_0xd83e57(0x135))/0x9+-parseInt(_0xd83e57(0x12f))/0xa*(-parseInt(_0xd83e57(0x137))/0xb)+-parseInt(_0xd83e57(0x131))/0xc*(parseInt(_0xd83e57(0x130))/0xd);if(_0x26fe41===_0x37b032)break;else _0x566f56['push'](_0x566f56['shift']());}catch(_0x472c69){_0x566f56['push'](_0x566f56['shift']());}}}(a102_0x7134,0xda580));function a102_0x7134(){const _0x32f396=['613796DUswCU','834138HOxRJT','7uPAvUU','11znJxoi','compress','12izsegl','12iKYBMD','pretty','json','241801UXfSew','65118zSoLzN','6934030sBxsxp','10382983FhZLjR','36ydzPQF','110vPtmMp','1607648QNRTKQ'];a102_0x7134=function(){return _0x32f396;};return a102_0x7134();}export const OUTPUT_FORMAT_VALUES=[a102_0x1c8bdc(0x13c),a102_0x1c8bdc(0x13b),a102_0x1c8bdc(0x138)];
1
+ const a102_0x122859=a102_0x1fe4;(function(_0x373d53,_0x261ddd){const _0x3bf501=a102_0x1fe4,_0x435cab=_0x373d53();while(!![]){try{const _0x362e85=parseInt(_0x3bf501(0x86))/0x1+parseInt(_0x3bf501(0x89))/0x2*(-parseInt(_0x3bf501(0x81))/0x3)+parseInt(_0x3bf501(0x8a))/0x4+parseInt(_0x3bf501(0x88))/0x5+-parseInt(_0x3bf501(0x8b))/0x6*(-parseInt(_0x3bf501(0x82))/0x7)+-parseInt(_0x3bf501(0x87))/0x8+-parseInt(_0x3bf501(0x85))/0x9;if(_0x362e85===_0x261ddd)break;else _0x435cab['push'](_0x435cab['shift']());}catch(_0x55f19b){_0x435cab['push'](_0x435cab['shift']());}}}(a102_0x4f47,0x7c659));export const OUTPUT_FORMAT_VALUES=[a102_0x122859(0x83),a102_0x122859(0x84),'compress'];function a102_0x1fe4(_0xcf587d,_0x25dea2){_0xcf587d=_0xcf587d-0x81;const _0x4f477e=a102_0x4f47();let _0x1fe47e=_0x4f477e[_0xcf587d];return _0x1fe47e;}function a102_0x4f47(){const _0x3c493f=['912OPRCRa','1702389eQzQmu','28007BZipdm','json','pretty','4540896FMiVIp','780186ecSLFi','6661232nlFfXU','1862950uwnXLk','2hjjCAr','2613048JdcOhw'];a102_0x4f47=function(){return _0x3c493f;};return a102_0x4f47();}
@@ -1 +1 @@
1
- const a103_0x3b1cdd=a103_0x5ec9;function a103_0x5ec9(_0x1f53f6,_0x4ad123){_0x1f53f6=_0x1f53f6-0xb0;const _0x897700=a103_0x8977();let _0x5ec952=_0x897700[_0x1f53f6];return _0x5ec952;}(function(_0x42aa0d,_0x177284){const _0x167e2e=a103_0x5ec9,_0x3b04af=_0x42aa0d();while(!![]){try{const _0x148a71=-parseInt(_0x167e2e(0xb8))/0x1+parseInt(_0x167e2e(0xb6))/0x2*(-parseInt(_0x167e2e(0xbf))/0x3)+parseInt(_0x167e2e(0xc6))/0x4+-parseInt(_0x167e2e(0xb2))/0x5+parseInt(_0x167e2e(0xc7))/0x6+parseInt(_0x167e2e(0xbc))/0x7*(parseInt(_0x167e2e(0xb0))/0x8)+-parseInt(_0x167e2e(0xc5))/0x9;if(_0x148a71===_0x177284)break;else _0x3b04af['push'](_0x3b04af['shift']());}catch(_0x51a733){_0x3b04af['push'](_0x3b04af['shift']());}}}(a103_0x8977,0x7690b));export const PRODUCT_CONFIG={'cliBinName':a103_0x3b1cdd(0xc8),'cliDisplayName':a103_0x3b1cdd(0xc1),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':a103_0x3b1cdd(0xc3),'internalSkillSource':a103_0x3b1cdd(0xc0),'globalSkillName':a103_0x3b1cdd(0xc8),'npmRegistryBaseUrl':a103_0x3b1cdd(0xbe),'cliCdnBaseUrl':'https://g.lovrabet.com','envPrefix':a103_0x3b1cdd(0xb3),'legacyEnvPrefixes':['RABETBASE'],'configFileNames':['.lovrabet.json'],'newConfigFileName':a103_0x3b1cdd(0xbb),'homeDirName':a103_0x3b1cdd(0xbd),'logFileName':a103_0x3b1cdd(0xb4),'invokeSource':a103_0x3b1cdd(0xc4),'userCenterDisplayName':a103_0x3b1cdd(0xb1),'skipNpxSkillsEnvSuffix':a103_0x3b1cdd(0xb7),'accessKeyCreatePath':a103_0x3b1cdd(0xc2)};function a103_0x8977(){const _0x48586e=['12173GocUXB','.lovrabet','https://registry.npmjs.org','35031CqcZKs','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','Lovrabet\x20Runtime\x20CLI','/user/ak','lovrabet/lovrabet-cli','cli:lovrabet-runtime','1765071ZLBFWd','732172ImnuSW','4363008GIkiFB','lovrabet','4200KuLoho','Lovrabet\x20User\x20Center','612730JhXuZw','LOVRABET','.lovrabet-runtime.log','envPrefix','54SIxwiW','SKIP_NPX_SKILLS','703599CbFKSb','legacyEnvPrefixes','map','.lovrabet.json'];a103_0x8977=function(){return _0x48586e;};return a103_0x8977();}export function productEnvName(_0x9584e8){const _0x109214=a103_0x3b1cdd;return PRODUCT_CONFIG[_0x109214(0xb5)]+'_'+_0x9584e8;}export function productEnvNames(_0x50d1aa){const _0x417be4=a103_0x3b1cdd;return[productEnvName(_0x50d1aa),...PRODUCT_CONFIG[_0x417be4(0xb9)][_0x417be4(0xba)](_0x419825=>_0x419825+'_'+_0x50d1aa)];}export function productEnv(_0x4edf00){for(const _0x3fb754 of productEnvNames(_0x4edf00)){const _0x15d94f=process.env[_0x3fb754];if(_0x15d94f!==undefined)return _0x15d94f;}return undefined;}
1
+ const a103_0x262d9a=a103_0x1b8a;function a103_0x5ebf(){const _0x25d526=['SKIP_NPX_SKILLS','998368ybngaR','691025DfxgNM','LOVRABET','@lovrabet/lovrabet-cli','.lovrabet-runtime.log','89419aPwqbU','Lovrabet\x20User\x20Center','174528kOhRmA','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','Lovrabet\x20Runtime\x20CLI','30638853gBUolt','/user/ak','168xoUTCY','262938VQAYps','cli:lovrabet-runtime','.lovrabet.json','envPrefix','8VLHxzq','RABETBASE','legacyEnvPrefixes','1874991LrWDoX'];a103_0x5ebf=function(){return _0x25d526;};return a103_0x5ebf();}(function(_0x204960,_0xc1b096){const _0x58970e=a103_0x1b8a,_0x507d8d=_0x204960();while(!![]){try{const _0x7d91cb=-parseInt(_0x58970e(0xaa))/0x1+-parseInt(_0x58970e(0xa5))/0x2+-parseInt(_0x58970e(0xa3))/0x3*(parseInt(_0x58970e(0xa0))/0x4)+parseInt(_0x58970e(0xa6))/0x5+-parseInt(_0x58970e(0x9c))/0x6*(parseInt(_0x58970e(0x9b))/0x7)+parseInt(_0x58970e(0xac))/0x8+parseInt(_0x58970e(0x99))/0x9;if(_0x7d91cb===_0xc1b096)break;else _0x507d8d['push'](_0x507d8d['shift']());}catch(_0x4774d4){_0x507d8d['push'](_0x507d8d['shift']());}}}(a103_0x5ebf,0xa48c5));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a103_0x262d9a(0x98),'npmPackageName':a103_0x262d9a(0xa8),'skillSource':'lovrabet/lovrabet-cli','internalSkillSource':a103_0x262d9a(0x97),'globalSkillName':'lovrabet','npmRegistryBaseUrl':'https://registry.npmjs.org','cliCdnBaseUrl':'https://g.lovrabet.com','envPrefix':a103_0x262d9a(0xa7),'legacyEnvPrefixes':[a103_0x262d9a(0xa1)],'configFileNames':[a103_0x262d9a(0x9e)],'newConfigFileName':a103_0x262d9a(0x9e),'homeDirName':'.lovrabet','logFileName':a103_0x262d9a(0xa9),'invokeSource':a103_0x262d9a(0x9d),'userCenterDisplayName':a103_0x262d9a(0xab),'skipNpxSkillsEnvSuffix':a103_0x262d9a(0xa4),'accessKeyCreatePath':a103_0x262d9a(0x9a)};export function productEnvName(_0x3e25b7){const _0xfde8c6=a103_0x262d9a;return PRODUCT_CONFIG[_0xfde8c6(0x9f)]+'_'+_0x3e25b7;}function a103_0x1b8a(_0x2fe210,_0x5758ce){_0x2fe210=_0x2fe210-0x97;const _0x5ebf4a=a103_0x5ebf();let _0x1b8a71=_0x5ebf4a[_0x2fe210];return _0x1b8a71;}export function productEnvNames(_0x535735){const _0x41a0c5=a103_0x262d9a;return[productEnvName(_0x535735),...PRODUCT_CONFIG[_0x41a0c5(0xa2)]['map'](_0x5a10ba=>_0x5a10ba+'_'+_0x535735)];}export function productEnv(_0x3243b5){for(const _0x3fdb0d of productEnvNames(_0x3243b5)){const _0x33eefb=process.env[_0x3fdb0d];if(_0x33eefb!==undefined)return _0x33eefb;}return undefined;}
@@ -1 +1 @@
1
- (function(_0x4057e9,_0xcb2a2f){const _0x686970=a104_0x4faf,_0x5cef8c=_0x4057e9();while(!![]){try{const _0x5519ac=-parseInt(_0x686970(0x92))/0x1+parseInt(_0x686970(0x9a))/0x2*(-parseInt(_0x686970(0x9d))/0x3)+parseInt(_0x686970(0x90))/0x4+-parseInt(_0x686970(0x95))/0x5*(-parseInt(_0x686970(0x9e))/0x6)+parseInt(_0x686970(0xa1))/0x7*(-parseInt(_0x686970(0x9b))/0x8)+parseInt(_0x686970(0x93))/0x9*(parseInt(_0x686970(0x9f))/0xa)+parseInt(_0x686970(0x94))/0xb;if(_0x5519ac===_0xcb2a2f)break;else _0x5cef8c['push'](_0x5cef8c['shift']());}catch(_0x48769d){_0x5cef8c['push'](_0x5cef8c['shift']());}}}(a104_0x4200,0x8dd49));function a104_0x4faf(_0x5c4376,_0x353be8){_0x5c4376=_0x5c4376-0x90;const _0x4200d1=a104_0x4200();let _0x4faf5b=_0x4200d1[_0x5c4376];return _0x4faf5b;}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;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x861fdf){const _0x460f80=a104_0x4faf;return typeof _0x861fdf===_0x460f80(0xa2)&&LOVRABET_REGION_VALUES[_0x460f80(0x96)](_0x861fdf);}function a104_0x4200(){const _0xb333b5=['4456940kGaOFg','Invalid\x20region\x20value:\x20expected\x20a\x20string,\x20received\x20','823808mVBglB','1444770RXYjKf','2773144uHoKeb','87705gVtwAm','includes','validation','.\x20Run\x20`lovrabet\x20config\x20init`\x20to\x20repair\x20the\x20global\x20configuration.','\x22\x20is\x20not\x20currently\x20available.','1516kFGMNI','56ldpUvP','join','1674QKLpFp','174dQcqlY','60pBmpzM','Available\x20regions:\x20','1010499AyUiWs','string'];a104_0x4200=function(){return _0xb333b5;};return a104_0x4200();}export function isEnabledLovrabetRegion(_0xaf2f1a){const _0x57dbc9=a104_0x4faf;return typeof _0xaf2f1a===_0x57dbc9(0xa2)&&ENABLED_LOVRABET_REGION_VALUES[_0x57dbc9(0x96)](_0xaf2f1a);}export function normalizeLovrabetRegion(_0x1decd8){const _0x36590c=a104_0x4faf;if(_0x1decd8===undefined||_0x1decd8===null||_0x1decd8==='')return DEFAULT_LOVRABET_REGION;if(typeof _0x1decd8!==_0x36590c(0xa2))throw CliErrors[_0x36590c(0x97)](_0x36590c(0x91)+typeof _0x1decd8+'.','Run\x20`lovrabet\x20config\x20init`\x20to\x20restore\x20the\x20global\x20country/region\x20configuration.');const _0x2e8471=REGION_ALIASES[_0x1decd8]??_0x1decd8;if(isEnabledLovrabetRegion(_0x2e8471))return _0x2e8471;throw CliErrors[_0x36590c(0x97)]('Region\x20\x22'+_0x1decd8+_0x36590c(0x99),_0x36590c(0xa0)+ENABLED_LOVRABET_REGION_VALUES[_0x36590c(0x9c)](',\x20')+_0x36590c(0x98));}
1
+ (function(_0x1d5cac,_0x47b13f){const _0x564085=a104_0x4918,_0x813902=_0x1d5cac();while(!![]){try{const _0x152781=parseInt(_0x564085(0x93))/0x1+-parseInt(_0x564085(0x9b))/0x2+-parseInt(_0x564085(0x8f))/0x3*(-parseInt(_0x564085(0x94))/0x4)+parseInt(_0x564085(0x98))/0x5+parseInt(_0x564085(0x8d))/0x6*(-parseInt(_0x564085(0x8c))/0x7)+parseInt(_0x564085(0x95))/0x8+parseInt(_0x564085(0x99))/0x9*(-parseInt(_0x564085(0x9d))/0xa);if(_0x152781===_0x47b13f)break;else _0x813902['push'](_0x813902['shift']());}catch(_0x3c220a){_0x813902['push'](_0x813902['shift']());}}}(a104_0x4378,0x56b1a));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';import{CliErrors}from'../errors.js';function a104_0x4918(_0x287c52,_0x37367e){_0x287c52=_0x287c52-0x8b;const _0x43787b=a104_0x4378();let _0x491816=_0x43787b[_0x287c52];return _0x491816;}export const LOVRABET_REGION_VALUES=REGION_VALUES;function a104_0x4378(){const _0x1d3e67=['Region\x20\x22','650030fptacE','Run\x20`lovrabet\x20config\x20init`\x20to\x20restore\x20the\x20global\x20country/region\x20configuration.','299089XJoCAk','90TzsKfS','.\x20Run\x20`lovrabet\x20config\x20init`\x20to\x20repair\x20the\x20global\x20configuration.','18eJZQdI','Invalid\x20region\x20value:\x20expected\x20a\x20string,\x20received\x20','includes','validation','465241BkkZaQ','422912oJrzli','4994144InHHdH','string','\x22\x20is\x20not\x20currently\x20available.','3482270lUMlsv','171iByQBI','join','378542KoNikn'];a104_0x4378=function(){return _0x1d3e67;};return a104_0x4378();}export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x2a7fd7){const _0x11688=a104_0x4918;return typeof _0x2a7fd7===_0x11688(0x96)&&LOVRABET_REGION_VALUES[_0x11688(0x91)](_0x2a7fd7);}export function isEnabledLovrabetRegion(_0x4c3657){const _0x435d86=a104_0x4918;return typeof _0x4c3657===_0x435d86(0x96)&&ENABLED_LOVRABET_REGION_VALUES['includes'](_0x4c3657);}export function normalizeLovrabetRegion(_0xbb43f7){const _0x194def=a104_0x4918;if(_0xbb43f7===undefined||_0xbb43f7===null||_0xbb43f7==='')return DEFAULT_LOVRABET_REGION;if(typeof _0xbb43f7!==_0x194def(0x96))throw CliErrors[_0x194def(0x92)](_0x194def(0x90)+typeof _0xbb43f7+'.',_0x194def(0x8b));const _0x279666=REGION_ALIASES[_0xbb43f7]??_0xbb43f7;if(isEnabledLovrabetRegion(_0x279666))return _0x279666;throw CliErrors['validation'](_0x194def(0x9c)+_0xbb43f7+_0x194def(0x97),'Available\x20regions:\x20'+ENABLED_LOVRABET_REGION_VALUES[_0x194def(0x9a)](',\x20')+_0x194def(0x8e));}
@@ -1 +1 @@
1
- const a105_0x403966=a105_0x2a17;(function(_0x22e364,_0x3f9646){const _0x1000a9=a105_0x2a17,_0x4f3114=_0x22e364();while(!![]){try{const _0xd97bdf=-parseInt(_0x1000a9(0x1b3))/0x1*(parseInt(_0x1000a9(0x1bc))/0x2)+parseInt(_0x1000a9(0x1b2))/0x3*(parseInt(_0x1000a9(0x1ba))/0x4)+parseInt(_0x1000a9(0x1bb))/0x5+parseInt(_0x1000a9(0x1b9))/0x6*(-parseInt(_0x1000a9(0x1b8))/0x7)+parseInt(_0x1000a9(0x1b7))/0x8+-parseInt(_0x1000a9(0x1b5))/0x9+-parseInt(_0x1000a9(0x1b4))/0xa;if(_0xd97bdf===_0x3f9646)break;else _0x4f3114['push'](_0x4f3114['shift']());}catch(_0x4e7f18){_0x4f3114['push'](_0x4f3114['shift']());}}}(a105_0x3af3,0xd916e));function a105_0x3af3(){const _0x50b9cc=['2900628YJghuJ','6719344pAwHQf','7484985tSqMeA','22DSrMhd','3TILGti','173oLsGHJ','21693160yKuRtX','6386400RXZTpV','read','8612976juiDpr','7dwxvkO'];a105_0x3af3=function(){return _0x50b9cc;};return a105_0x3af3();}function a105_0x2a17(_0x3782dc,_0x25d65c){_0x3782dc=_0x3782dc-0x1b2;const _0x3af351=a105_0x3af3();let _0x2a171c=_0x3af351[_0x3782dc];return _0x2a171c;}export const RISK_LEVEL_VALUES=[a105_0x403966(0x1b6),'write','high-risk-write'];
1
+ const a105_0x347dd6=a105_0x243c;(function(_0x57bd0d,_0x17c18c){const _0x1eb0a4=a105_0x243c,_0x579b13=_0x57bd0d();while(!![]){try{const _0x297b81=-parseInt(_0x1eb0a4(0x1e8))/0x1+-parseInt(_0x1eb0a4(0x1e4))/0x2+-parseInt(_0x1eb0a4(0x1ea))/0x3*(parseInt(_0x1eb0a4(0x1e7))/0x4)+-parseInt(_0x1eb0a4(0x1eb))/0x5+parseInt(_0x1eb0a4(0x1e2))/0x6+-parseInt(_0x1eb0a4(0x1e3))/0x7+parseInt(_0x1eb0a4(0x1e6))/0x8;if(_0x297b81===_0x17c18c)break;else _0x579b13['push'](_0x579b13['shift']());}catch(_0x4e4a2b){_0x579b13['push'](_0x579b13['shift']());}}}(a105_0x4203,0x3b83a));function a105_0x4203(){const _0x5130f1=['945620zXwzXZ','high-risk-write','1029120lPkvVZ','833896LWOlWt','515762VVyfdl','write','12518672iPxMzt','52bXruRf','450196qKwiux','read','109905Xdkplq'];a105_0x4203=function(){return _0x5130f1;};return a105_0x4203();}function a105_0x243c(_0x4a7373,_0x219ec1){_0x4a7373=_0x4a7373-0x1e2;const _0x42034f=a105_0x4203();let _0x243c53=_0x42034f[_0x4a7373];return _0x243c53;}export const RISK_LEVEL_VALUES=[a105_0x347dd6(0x1e9),a105_0x347dd6(0x1e5),a105_0x347dd6(0x1ec)];
@@ -1 +1 @@
1
- (function(_0x2b1d36,_0x32b78a){const _0x47d964=a106_0x5377,_0x3e2d04=_0x2b1d36();while(!![]){try{const _0x248562=-parseInt(_0x47d964(0xdc))/0x1+-parseInt(_0x47d964(0xdd))/0x2+-parseInt(_0x47d964(0xda))/0x3+-parseInt(_0x47d964(0xe3))/0x4*(parseInt(_0x47d964(0xdf))/0x5)+parseInt(_0x47d964(0xde))/0x6+-parseInt(_0x47d964(0xe4))/0x7+parseInt(_0x47d964(0xdb))/0x8;if(_0x248562===_0x32b78a)break;else _0x3e2d04['push'](_0x3e2d04['shift']());}catch(_0x2a9a3d){_0x3e2d04['push'](_0x3e2d04['shift']());}}}(a106_0x3a66,0x60ef8));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(_0x38bcd8=DEFAULT_LOVRABET_REGION){const _0x1c11f0=a106_0x5377,_0x200769=OFFICIAL_ROUTING_PROFILES[_0x38bcd8][_0x1c11f0(0xe1)][_0x1c11f0(0xe0)][_0x1c11f0(0xe2)];return''+_0x200769+PRODUCT_CONFIG[_0x1c11f0(0xd9)];}function a106_0x5377(_0x479847,_0x4356a5){_0x479847=_0x479847-0xd9;const _0x3a6647=a106_0x3a66();let _0x53770c=_0x3a6647[_0x479847];return _0x53770c;}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();function a106_0x3a66(){const _0x276ac0=['420288AFHqeX','12849128kDetXu','115607EjrrkV','1282996sxFEWX','576276hdIPZc','39195SqcTni','production','serviceDomains','user','72sGHpfz','1867852ZISfsb','accessKeyCreatePath'];a106_0x3a66=function(){return _0x276ac0;};return a106_0x3a66();}
1
+ (function(_0x61ea88,_0x3784be){const _0x2507c0=a106_0x32b3,_0x414157=_0x61ea88();while(!![]){try{const _0x725b13=-parseInt(_0x2507c0(0x1ac))/0x1*(-parseInt(_0x2507c0(0x1ae))/0x2)+-parseInt(_0x2507c0(0x1b3))/0x3+parseInt(_0x2507c0(0x1b6))/0x4*(parseInt(_0x2507c0(0x1ad))/0x5)+-parseInt(_0x2507c0(0x1b5))/0x6+-parseInt(_0x2507c0(0x1b0))/0x7+-parseInt(_0x2507c0(0x1a9))/0x8*(parseInt(_0x2507c0(0x1b2))/0x9)+parseInt(_0x2507c0(0x1b1))/0xa;if(_0x725b13===_0x3784be)break;else _0x414157['push'](_0x414157['shift']());}catch(_0x3614df){_0x414157['push'](_0x414157['shift']());}}}(a106_0x349b,0xd3c00));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(_0x4a8409=DEFAULT_LOVRABET_REGION){const _0x43d743=a106_0x32b3,_0xc8f698=OFFICIAL_ROUTING_PROFILES[_0x4a8409][_0x43d743(0x1af)][_0x43d743(0x1aa)][_0x43d743(0x1b4)];return''+_0xc8f698+PRODUCT_CONFIG[_0x43d743(0x1ab)];}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();function a106_0x32b3(_0x3f6878,_0x13c3a3){_0x3f6878=_0x3f6878-0x1a9;const _0x349bac=a106_0x349b();let _0x32b314=_0x349bac[_0x3f6878];return _0x32b314;}function a106_0x349b(){const _0x2d821c=['accessKeyCreatePath','1HQcTzT','5RAVVns','1659596tmdOYn','serviceDomains','940415jtFkOI','15957990iUZLbP','34119WIorJj','501573DJcZVz','user','3467898badBzR','3896504hrAxYY','3488QUFbtu','production'];a106_0x349b=function(){return _0x2d821c;};return a106_0x349b();}
package/lib/context.d.ts CHANGED
@@ -61,6 +61,8 @@ export interface CLIConfig {
61
61
  locale: string;
62
62
  cookie: string | undefined;
63
63
  accessKey: string | undefined;
64
+ /** Credential location only; never includes credential content. */
65
+ accessKeySource?: string;
64
66
  format: OutputFormat | undefined;
65
67
  pageSize: number | undefined;
66
68
  riskLevel: Risk;
@@ -180,19 +182,7 @@ export declare function getLocalAppAliases(raw: Record<string, any>): Record<str
180
182
  * @returns App code from `apps.<name>.appcode`, or undefined when not configured.
181
183
  */
182
184
  export declare function resolveLocalAppAliasCode(raw: Record<string, any>, name: string | undefined): string | undefined;
183
- /**
184
- * Reads the appCode from the config file (fallback path, used when no flag is provided).
185
- *
186
- * Resolution order:
187
- * 1. Top-level `appcode` or `app` field
188
- * 2. `defaultApp` local alias profile's `appcode`
189
- * 3. Cached remote app list (resolved by app name)
190
- * 4. First local alias profile's `appcode`
191
- *
192
- * Why this fallback exists: commands that don't receive `--appcode` can still
193
- * resolve it from the config. This enables the "just run `lovrabet dataset list`"
194
- * UX where the active app is implied by the config.
195
- */
185
+ /** Reads the current app using the same selection rules as command execution. */
196
186
  export declare function readAppCodeFromConfig(): string | undefined;
197
187
  /**
198
188
  * Reads the config file for a specific scope (global or project).
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a107_0x404eee=a107_0x4d3b;(function(_0x2c4690,_0x1035b9){const _0x2654ea=a107_0x4d3b,_0x48edcb=_0x2c4690();while(!![]){try{const _0x5064f6=-parseInt(_0x2654ea(0x208))/0x1+-parseInt(_0x2654ea(0x1ec))/0x2+-parseInt(_0x2654ea(0x1d4))/0x3+parseInt(_0x2654ea(0x1c2))/0x4*(parseInt(_0x2654ea(0x201))/0x5)+-parseInt(_0x2654ea(0x1bf))/0x6*(-parseInt(_0x2654ea(0x203))/0x7)+-parseInt(_0x2654ea(0x1d8))/0x8+parseInt(_0x2654ea(0x1cd))/0x9*(parseInt(_0x2654ea(0x1e8))/0xa);if(_0x5064f6===_0x1035b9)break;else _0x48edcb['push'](_0x48edcb['shift']());}catch(_0xbebd8c){_0x48edcb['push'](_0x48edcb['shift']());}}}(a107_0x20b4,0x8a26a));function a107_0x20b4(){const _0x377a91=['1935945MDzGJg','EACCES','explicit','top-level','prototype','nonInteractive','project','2803005PDbXEc','routing','kbDomain','authRequired','354248PvuGOw','./constant/domain.js','host','trim','defaultApp','ACCESS_KEY','online','global','isTTY','configFileNames','apps','env','apiDomain','platformDomain','hasOwnProperty','newConfigFileName','90Wjvxhb','globalConfig','setRawMode','cwd','2103744QpADcD','production','ENV','setLogPath','local-alias','true','stdout','skillHubDomain','format','agentDomain','raw','call','EXDEV','./constant/env.js','FORMAT','projectConfig','userDomain','locale','riskLevel','daily','VERBOSE','901955COfWGJ','isRaw','1043RXczSp','object','pageSize','stringify','cache','217903ffcHLp','read','nativeToolAvailable','appcode','.tmp','accessKey','stdin','utf8','kbServiceDomain','string','some','6312jaNUIz','APP','values','16gMCYdX','message','slice','join','code','skillDomain','parse','inherit','argv','development','app'];a107_0x20b4=function(){return _0x377a91;};return a107_0x20b4();}import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';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[a107_0x404eee(0x1e1)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a107_0x404eee(0x1e7)];function resolveConfigPath(_0x3374be){for(const _0x3d0ece of CONFIG_NAMES){const _0xcd84ad=resolve(_0x3374be,_0x3d0ece);if(existsSync(_0xcd84ad))return _0xcd84ad;}return undefined;}export function resolveWriteConfigPath(_0xe9eb23){const _0x8c5317=a107_0x404eee,_0x48b2fa=_0xe9eb23===_0x8c5317(0x1d3)?process[_0x8c5317(0x1eb)]():homedir(),_0x3e92b0=resolveConfigPath(_0x48b2fa);return _0x3e92b0??resolve(_0x48b2fa,NEW_CONFIG_NAME);}export function readConfigFile(_0xedf346){const _0xf021f6=a107_0x404eee;try{if(existsSync(_0xedf346)){const _0x5430d9=readFileSync(_0xedf346,{'encoding':_0xf021f6(0x20f)});if(_0x5430d9){const _0xe08d82=JSON[_0xf021f6(0x1c8)](_0x5430d9);return migrateOnlineEnv(_0xedf346,_0xe08d82),_0xe08d82;}}}catch{}return{};}function migrateOnlineEnv(_0x51d47e,_0x42c812){const _0x500a8f=a107_0x404eee;let _0x33b590=![];_0x42c812[_0x500a8f(0x1e3)]===_0x500a8f(0x1de)&&(_0x42c812[_0x500a8f(0x1e3)]=_0x500a8f(0x1ed),_0x33b590=!![]);if(_0x42c812['apps']&&typeof _0x42c812['apps']===_0x500a8f(0x204))for(const _0x7e7464 of Object[_0x500a8f(0x1c1)](_0x42c812[_0x500a8f(0x1e2)])){_0x7e7464&&_0x7e7464[_0x500a8f(0x1e3)]==='online'&&(_0x7e7464[_0x500a8f(0x1e3)]=_0x500a8f(0x1ed),_0x33b590=!![]);}if(_0x33b590)try{writeConfigFile(_0x51d47e,_0x42c812);}catch{}}export function writeConfigFile(_0x395cec,_0x4b2032){const _0x4eb285=a107_0x404eee,_0x2388a4=dirname(_0x395cec);!existsSync(_0x2388a4)&&mkdirSync(_0x2388a4,{'recursive':!![]});const _0xc5f11f=_0x395cec+_0x4eb285(0x20c);try{writeFileSync(_0xc5f11f,JSON[_0x4eb285(0x206)](_0x4b2032,null,0x2)+'\x0a',{'encoding':_0x4eb285(0x20f),'mode':0x180});try{renameSync(_0xc5f11f,_0x395cec);}catch(_0x31a382){if(_0x31a382[_0x4eb285(0x1c6)]==='EPERM'||_0x31a382['code']===_0x4eb285(0x1f8)||_0x31a382[_0x4eb285(0x1c6)]===_0x4eb285(0x1ce)){writeFileSync(_0x395cec,JSON[_0x4eb285(0x206)](_0x4b2032,null,0x2)+'\x0a',{'encoding':_0x4eb285(0x20f)});try{unlinkSync(_0xc5f11f);}catch{}}else throw _0x31a382;}}catch(_0x45f130){try{unlinkSync(_0xc5f11f);}catch{}throw _0x45f130;}}export function isNonInteractiveMode(_0x4a4648){const _0x2d1927=a107_0x404eee;return!!(_0x4a4648[_0x2d1927(0x1d2)]||_0x4a4648['ci']||productEnvNames('CI')[_0x2d1927(0x1be)](_0x367e10=>process.env[_0x367e10]==='true')||process.env.CI===_0x2d1927(0x1f1)||!process[_0x2d1927(0x1f2)][_0x2d1927(0x1e0)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x3652fc=a107_0x404eee;if(!process[_0x3652fc(0x20e)][_0x3652fc(0x1e0)])return![];try{const _0xd2211b=process['stdin'][_0x3652fc(0x202)];return process[_0x3652fc(0x20e)][_0x3652fc(0x1ea)](!![]),process[_0x3652fc(0x20e)]['setRawMode'](_0xd2211b??![]),!![];}catch{return![];}}export async function createContext(_0x1e88e8){const _0x40fd57=a107_0x404eee,_0x3da103=readRawConfig(),_0x3c297=buildConfig(_0x3da103,_0x1e88e8);await initGlobalEnvironment(_0x3c297);const {getUserDomain:_0x2faf42,getApiDomain:_0x1aec84}=await import(_0x40fd57(0x1d9)),_0x36b3a3={'apiDomain':_0x1aec84(),'userDomain':_0x2faf42()},_0x46de21=await buildAuth(_0x3c297);logger[_0x40fd57(0x1ef)](process['cwd']());const _0xc2896e=(CLI_BIN_NAME+'\x20'+redactCommandArgv(process[_0x40fd57(0x1ca)][_0x40fd57(0x1c4)](0x2))[_0x40fd57(0x1c5)]('\x20'))[_0x40fd57(0x1db)]();logger['setRawCommand'](_0xc2896e);const _0x4e55c2=isNonInteractiveMode(_0x1e88e8);return{'config':_0x3c297,'auth':_0x46de21,'logger':logger,'env':_0x36b3a3,'nonInteractive':_0x4e55c2};}export function buildConfigFromFlags(_0x2d990d){return buildConfig(readRawConfig(),_0x2d990d);}export function getLocalAppAliases(_0x2ce307){const _0x49a209=a107_0x404eee;return _0x2ce307[_0x49a209(0x1e2)]&&typeof _0x2ce307[_0x49a209(0x1e2)]===_0x49a209(0x204)?_0x2ce307[_0x49a209(0x1e2)]:{};}export function resolveLocalAppAliasCode(_0x34382f,_0x41fa0b){const _0x3a19b9=a107_0x404eee;if(!_0x41fa0b)return undefined;const _0x4b9009=getLocalAppAliases(_0x34382f)[_0x41fa0b],_0x416bc6=_0x4b9009?.['appcode'];return typeof _0x416bc6===_0x3a19b9(0x211)&&_0x416bc6[_0x3a19b9(0x1db)]()?_0x416bc6[_0x3a19b9(0x1db)]():undefined;}export function readAppCodeFromConfig(){const _0x16ab05=a107_0x404eee,_0x1f43e6=readRawConfig(),_0x4ea27d=_0x1f43e6[_0x16ab05(0x20b)]??_0x1f43e6[_0x16ab05(0x1cc)];if(typeof _0x4ea27d==='string'&&_0x4ea27d['trim']())return _0x4ea27d[_0x16ab05(0x1db)]();const _0x157308=resolveLocalAppAliasCode(_0x1f43e6,typeof _0x1f43e6['defaultApp']===_0x16ab05(0x211)?_0x1f43e6[_0x16ab05(0x1dc)]:undefined);if(_0x157308)return _0x157308;const _0x44bc75=normalizeEnv(String(_0x1f43e6[_0x16ab05(0x1e3)]||_0x16ab05(0x1ed))),_0xdbb523=isDaily(_0x44bc75)?_0x16ab05(0x1ff):isDev(_0x44bc75)?_0x16ab05(0x1cb):_0x16ab05(0x1ed),_0x539b72=resolveCachedAppCode(typeof _0x1f43e6[_0x16ab05(0x1dc)]==='string'?_0x1f43e6[_0x16ab05(0x1dc)]:undefined,_0xdbb523,typeof _0x1f43e6['accessKey']==='string'?_0x1f43e6['accessKey']:undefined);if(_0x539b72)return _0x539b72;const _0x1e7013=Object['values'](getLocalAppAliases(_0x1f43e6))['find'](_0x10ada9=>_0x10ada9?.[_0x16ab05(0x20b)]);return typeof _0x1e7013?.[_0x16ab05(0x20b)]==='string'&&_0x1e7013[_0x16ab05(0x20b)][_0x16ab05(0x1db)]()?_0x1e7013[_0x16ab05(0x20b)]['trim']():undefined;}export function readScopedConfig(_0x2da46a){const _0x4a6b5a=a107_0x404eee,_0x1a660d=_0x2da46a[_0x4a6b5a(0x1df)]?_0x4a6b5a(0x1df):_0x4a6b5a(0x1d3);return readConfigFile(resolveWriteConfigPath(_0x1a660d));}export function writeScopedConfig(_0x2a2e40,_0x496d0d){const _0x283cb6=a107_0x404eee,_0x5bb2fc=_0x496d0d[_0x283cb6(0x1df)]?_0x283cb6(0x1df):_0x283cb6(0x1d3);writeConfigFile(resolveWriteConfigPath(_0x5bb2fc),_0x2a2e40);}export async function initGlobalEnvironment(_0x541bb9){const _0x40d1a3=a107_0x404eee,{initEnv:_0x2aa0f3}=await import(_0x40d1a3(0x1f9));_0x2aa0f3(_0x541bb9['env']);const {initDomains:_0x54d23b}=await import(_0x40d1a3(0x1d9)),_0x488982=resolveEnterpriseRoutingConfig(_0x541bb9[_0x40d1a3(0x1f6)][_0x40d1a3(0x1d5)]),_0x4848ff=[_0x40d1a3(0x1e4),_0x40d1a3(0x1da),_0x40d1a3(0x1fc),'runtimeDomain',_0x40d1a3(0x1c7),_0x40d1a3(0x1f3),_0x40d1a3(0x1f5),'platformDomain',_0x40d1a3(0x1d6),'kbServiceDomain'],_0xaeba8d=_0x488982!==undefined||_0x4848ff[_0x40d1a3(0x1be)](_0x3ffb2a=>Object[_0x40d1a3(0x1d1)][_0x40d1a3(0x1e6)][_0x40d1a3(0x1f7)](_0x541bb9['raw'],_0x3ffb2a));_0x54d23b({'apiDomain':_0x488982?_0x488982[_0x40d1a3(0x1e4)]:_0x541bb9[_0x40d1a3(0x1f6)][_0x40d1a3(0x1e4)]||_0x541bb9['raw']['host']||undefined,'userDomain':_0x488982?_0x488982[_0x40d1a3(0x1fc)]:_0x541bb9['raw'][_0x40d1a3(0x1fc)]||undefined,'runtimeDomain':_0x488982?_0x488982['runtimeDomain']:_0x541bb9[_0x40d1a3(0x1f6)]['runtimeDomain']||undefined,'skillDomain':_0x488982?_0x488982[_0x40d1a3(0x1c7)]:_0x541bb9['raw'][_0x40d1a3(0x1c7)]||_0x541bb9[_0x40d1a3(0x1f6)][_0x40d1a3(0x1f3)]||_0x541bb9[_0x40d1a3(0x1f6)][_0x40d1a3(0x1f5)]||_0x541bb9[_0x40d1a3(0x1f6)][_0x40d1a3(0x1e5)]||undefined,'kbServiceDomain':_0x488982?_0x488982[_0x40d1a3(0x210)]:typeof _0x541bb9[_0x40d1a3(0x1f6)][_0x40d1a3(0x210)]===_0x40d1a3(0x211)&&_0x541bb9[_0x40d1a3(0x1f6)]['kbServiceDomain']['trim']()?_0x541bb9[_0x40d1a3(0x1f6)][_0x40d1a3(0x210)]:undefined,'allowOfficialKbServiceDefault':!_0xaeba8d,'region':normalizeLovrabetRegion(_0x541bb9[_0x40d1a3(0x1f6)]['region'])});}export function getProjectConfigPath(){const _0x3ce7a4=a107_0x404eee;return resolveConfigPath(process[_0x3ce7a4(0x1eb)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x38a690){const _0x2d08b9=a107_0x404eee;if(!existsSync(_0x38a690))return{'status':'missing'};try{const _0x445f85=readFileSync(_0x38a690,{'encoding':_0x2d08b9(0x20f)});if(!_0x445f85?.[_0x2d08b9(0x1db)]())return{'status':'empty'};const _0x67f60d=JSON[_0x2d08b9(0x1c8)](_0x445f85);return{'status':'ok','data':_0x67f60d};}catch(_0x3278d6){return{'status':'error','message':_0x3278d6 instanceof Error?_0x3278d6[_0x2d08b9(0x1c3)]:String(_0x3278d6)};}}export function loadRawConfigLayers(_0x2b949b){const _0x2218a8=a107_0x404eee;let _0x456772={},_0x56988b={},_0xdd4ea8,_0x51c9c4;try{_0xdd4ea8=resolveConfigPath(homedir());if(_0xdd4ea8){const _0x4e89cf=readFileSync(_0xdd4ea8,{'encoding':_0x2218a8(0x20f)});if(_0x4e89cf)_0x456772=JSON[_0x2218a8(0x1c8)](_0x4e89cf);}}catch{}try{const _0xea7f2a=_0x2b949b||process['cwd']();_0x51c9c4=resolveConfigPath(_0xea7f2a);if(_0x51c9c4){const _0x15ec28=readFileSync(_0x51c9c4,{'encoding':_0x2218a8(0x20f)});if(_0x15ec28)_0x56988b=JSON[_0x2218a8(0x1c8)](_0x15ec28);}}catch{}return{'globalPath':_0xdd4ea8,'projectPath':_0x51c9c4,'globalConfig':_0x456772,'projectConfig':_0x56988b};}function mergeRawConfigLayers(_0x233d6b){const _0x3a5486=a107_0x404eee,{globalConfig:_0x1c3fa5,projectConfig:_0x27fba2}=_0x233d6b,_0x3b8536={..._0x1c3fa5,..._0x27fba2};delete _0x3b8536[_0x3a5486(0x1c9)];if(_0x3a5486(0x1dc)in _0x27fba2)_0x3b8536[_0x3a5486(0x1dc)]=_0x27fba2[_0x3a5486(0x1dc)];else _0x1c3fa5['defaultApp']&&(_0x3b8536[_0x3a5486(0x1dc)]=_0x1c3fa5[_0x3a5486(0x1dc)]);return _0x3b8536;}function a107_0x4d3b(_0x45ca44,_0x5cb4d7){_0x45ca44=_0x45ca44-0x1be;const _0x20b4d5=a107_0x20b4();let _0x4d3bc5=_0x20b4d5[_0x45ca44];return _0x4d3bc5;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x3701cd){return mergeRawConfigLayers(loadRawConfigLayers(_0x3701cd));}export function readRawConfigWithLayers(_0x3c4845){const _0x379e4f=loadRawConfigLayers(_0x3c4845);return{'config':mergeRawConfigLayers(_0x379e4f),'layers':_0x379e4f};}export function resolveDefaultAppSource(_0x7eace8){const _0x120d6a=a107_0x404eee;if(_0x120d6a(0x1dc)in _0x7eace8[_0x120d6a(0x1fb)])return'project';if(_0x7eace8[_0x120d6a(0x1e9)][_0x120d6a(0x1dc)])return'global';return null;}function buildConfig(_0x49543d,_0x5126b3){const _0x58c4dd=a107_0x404eee,_0x638870=_0x49543d['defaultApp']||undefined,_0x129646=_0x5126b3['app']||env(_0x58c4dd(0x1c0))||undefined,_0x53b479=_0x129646||_0x638870||undefined,_0x33fa04=env(_0x58c4dd(0x1dd))||_0x49543d[_0x58c4dd(0x20d)]||undefined,_0x46e511=_0x5126b3['env']||env(_0x58c4dd(0x1ee))||_0x49543d['env']||DEFAULT_CONFIG_VALUES[_0x58c4dd(0x1e3)],_0x116427=normalizeEnv(String(_0x46e511)),_0x37d63d=isDaily(_0x116427)?'daily':isDev(_0x116427)?'development':_0x58c4dd(0x1ed),_0x2b7db8=typeof _0x5126b3[_0x58c4dd(0x20b)]===_0x58c4dd(0x211)?_0x5126b3[_0x58c4dd(0x20b)]:undefined,_0x38030a=env('APPCODE'),_0x5864d0=_0x129646?undefined:_0x49543d['appcode']||_0x49543d[_0x58c4dd(0x1cc)]||undefined,_0x217989=_0x129646||(_0x5864d0?undefined:_0x638870),_0x36bcb0=resolveLocalAppAliasCode(_0x49543d,_0x217989),_0x25e2ec=resolveCachedAppCode(_0x217989,_0x37d63d,_0x33fa04),_0x21066e=_0x2b7db8||_0x38030a||_0x5864d0||_0x36bcb0||_0x25e2ec||undefined,_0x184634=_0x2b7db8?_0x58c4dd(0x1cf):_0x38030a?'env':_0x5864d0?_0x58c4dd(0x1d0):_0x36bcb0?_0x58c4dd(0x1f0):_0x25e2ec?_0x58c4dd(0x207):undefined,_0x5f1038=_0x49543d[_0x58c4dd(0x1fd)]||DEFAULT_CONFIG_VALUES[_0x58c4dd(0x1fd)],_0x6b35e=undefined,_0x2998dc=_0x5126b3[_0x58c4dd(0x1f4)]||env(_0x58c4dd(0x1fa))||_0x49543d[_0x58c4dd(0x1f4)],_0x545710=normalizeLegacyOutputFormat(_0x2998dc),_0x18eef1=env('PAGE_SIZE')||_0x49543d[_0x58c4dd(0x205)],_0x529279=_0x18eef1?Number(_0x18eef1)||undefined:undefined,_0x2515f9=_0x49543d[_0x58c4dd(0x1fe)],_0x5915bc=_0x2515f9===_0x58c4dd(0x209)||_0x2515f9==='write'||_0x2515f9==='high-risk-write'?_0x2515f9:DEFAULT_CONFIG_VALUES['riskLevel'],_0x24f21c=_0x49543d[_0x58c4dd(0x20a)]===!![],_0x683967=env(_0x58c4dd(0x200)),_0x4e7bde=_0x683967==='1'||_0x683967===_0x58c4dd(0x1f1);return{'appCode':typeof _0x21066e===_0x58c4dd(0x211)&&_0x21066e[_0x58c4dd(0x1db)]()?_0x21066e['trim']():undefined,'appCodeSource':_0x184634,'env':_0x37d63d,'locale':_0x5f1038,'cookie':_0x6b35e,'accessKey':_0x33fa04,'format':_0x545710,'pageSize':_0x529279,'riskLevel':_0x5915bc,'nativeToolAvailable':_0x24f21c,'verbose':_0x4e7bde,'defaultApp':_0x638870,'currentApp':typeof _0x53b479===_0x58c4dd(0x211)?_0x53b479:undefined,'raw':_0x49543d};}function env(_0x3f9840){return productEnv(_0x3f9840);}async function buildAuth(_0x1fd5c2){const _0x156528=a107_0x404eee,_0x1d1cb0='',_0x10cc63=!!_0x1fd5c2[_0x156528(0x20d)];return{'cookie':_0x1d1cb0,'isLoggedIn':_0x10cc63,async 'getOrLogin'(){const _0x2ad6c1=_0x156528;if(_0x10cc63)return _0x1d1cb0;throw CliErrors[_0x2ad6c1(0x1d7)]();}};}
1
+ (function(_0x242c76,_0x4acd4f){const _0x25a74b=a107_0x445c,_0x3ae2a4=_0x242c76();while(!![]){try{const _0x57253d=-parseInt(_0x25a74b(0xbc))/0x1+parseInt(_0x25a74b(0xf1))/0x2+parseInt(_0x25a74b(0xe9))/0x3*(-parseInt(_0x25a74b(0xb8))/0x4)+parseInt(_0x25a74b(0xdf))/0x5*(-parseInt(_0x25a74b(0xac))/0x6)+parseInt(_0x25a74b(0xdb))/0x7+parseInt(_0x25a74b(0xd1))/0x8+-parseInt(_0x25a74b(0xc8))/0x9*(parseInt(_0x25a74b(0xb4))/0xa);if(_0x57253d===_0x4acd4f)break;else _0x3ae2a4['push'](_0x3ae2a4['shift']());}catch(_0x27f5d1){_0x3ae2a4['push'](_0x3ae2a4['shift']());}}}(a107_0x5907,0x354bf));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';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['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG['newConfigFileName'];function resolveConfigPath(_0x182920){for(const _0x3a480a of CONFIG_NAMES){const _0x468190=resolve(_0x182920,_0x3a480a);if(existsSync(_0x468190))return _0x468190;}return undefined;}export function resolveWriteConfigPath(_0x5bf8eb){const _0x1dbea4=a107_0x445c,_0x438a4c=_0x5bf8eb==='project'?process[_0x1dbea4(0xf2)]():homedir(),_0x2fe2b0=resolveConfigPath(_0x438a4c);return _0x2fe2b0??resolve(_0x438a4c,NEW_CONFIG_NAME);}export function readConfigFile(_0x45a5eb){const _0x1ab691=a107_0x445c;try{if(existsSync(_0x45a5eb)){const _0x412255=readFileSync(_0x45a5eb,{'encoding':_0x1ab691(0xb0)});if(_0x412255){const _0x238e9f=JSON[_0x1ab691(0xb6)](_0x412255);return migrateOnlineEnv(_0x45a5eb,_0x238e9f),_0x238e9f;}}}catch{}return{};}function migrateOnlineEnv(_0x497c62,_0xd02858){const _0x19eb0c=a107_0x445c;let _0x47770d=![];_0xd02858['env']===_0x19eb0c(0xc3)&&(_0xd02858[_0x19eb0c(0xbb)]=_0x19eb0c(0xe1),_0x47770d=!![]);if(_0xd02858[_0x19eb0c(0xe8)]&&typeof _0xd02858[_0x19eb0c(0xe8)]===_0x19eb0c(0xce))for(const _0x213df6 of Object[_0x19eb0c(0xf6)](_0xd02858[_0x19eb0c(0xe8)])){_0x213df6&&_0x213df6['env']===_0x19eb0c(0xc3)&&(_0x213df6[_0x19eb0c(0xbb)]=_0x19eb0c(0xe1),_0x47770d=!![]);}if(_0x47770d)try{writeConfigFile(_0x497c62,_0xd02858);}catch{}}function a107_0x5907(){const _0x5937ee=['riskLevel','stdout','format','5070maviMF','host','production','isRaw','app','global','top-level','stringify','find','apps','438612buMmzA','code','inherit','kbServiceDomain','runtimeDomain','project','userDomain','.tmp','858734QdRspc','cwd','defaultApp','routing','hasOwnProperty','values','raw','prototype','accessKey','EACCES','APPCODE','./constant/domain.js','skillDomain','696GjqYCH','project\x20config','locale','EPERM','utf8','./constant/env.js','read','pageSize','1338630GsCYWq','slice','parse','cache','4qfuLIP','isTTY','write','env','98680dbOLwF','argv','setRawMode','setRawCommand','apiDomain','appCode','kbDomain','online','call','string','message','true','36fSzJHF','trim','setLogPath','region','daily','empty','object','VERBOSE','appcode','2120776BzViIV','local-alias','platformDomain','explicit','high-risk-write','some','skillHubDomain','projectConfig','nativeToolAvailable','stdin','2952593eyxQFG'];a107_0x5907=function(){return _0x5937ee;};return a107_0x5907();}export function writeConfigFile(_0x83dcca,_0x4633e){const _0x5adc8d=a107_0x445c,_0x3e7d93=dirname(_0x83dcca);!existsSync(_0x3e7d93)&&mkdirSync(_0x3e7d93,{'recursive':!![]});const _0x48c791=_0x83dcca+_0x5adc8d(0xf0);try{writeFileSync(_0x48c791,JSON[_0x5adc8d(0xe6)](_0x4633e,null,0x2)+'\x0a',{'encoding':_0x5adc8d(0xb0),'mode':0x180});try{renameSync(_0x48c791,_0x83dcca);}catch(_0x630870){if(_0x630870[_0x5adc8d(0xea)]===_0x5adc8d(0xaf)||_0x630870[_0x5adc8d(0xea)]==='EXDEV'||_0x630870[_0x5adc8d(0xea)]===_0x5adc8d(0xfa)){writeFileSync(_0x83dcca,JSON[_0x5adc8d(0xe6)](_0x4633e,null,0x2)+'\x0a',{'encoding':_0x5adc8d(0xb0)});try{unlinkSync(_0x48c791);}catch{}}else throw _0x630870;}}catch(_0x1548ed){try{unlinkSync(_0x48c791);}catch{}throw _0x1548ed;}}export function isNonInteractiveMode(_0xcd61ef){const _0x1952af=a107_0x445c;return!!(_0xcd61ef['nonInteractive']||_0xcd61ef['ci']||productEnvNames('CI')[_0x1952af(0xd6)](_0x306de0=>process.env[_0x306de0]===_0x1952af(0xc7))||process.env.CI==='true'||!process[_0x1952af(0xdd)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x3f4a11=a107_0x445c;if(!process[_0x3f4a11(0xda)][_0x3f4a11(0xb9)])return![];try{const _0x3b415e=process[_0x3f4a11(0xda)][_0x3f4a11(0xe2)];return process[_0x3f4a11(0xda)][_0x3f4a11(0xbe)](!![]),process[_0x3f4a11(0xda)][_0x3f4a11(0xbe)](_0x3b415e??![]),!![];}catch{return![];}}export async function createContext(_0x4c1fc1){const _0x42ef57=a107_0x445c,_0x59fe2a=buildConfigFromFlags(_0x4c1fc1);await initGlobalEnvironment(_0x59fe2a);const {getUserDomain:_0x3f7b99,getApiDomain:_0x22772a}=await import(_0x42ef57(0xfc)),_0x14b598={'apiDomain':_0x22772a(),'userDomain':_0x3f7b99()},_0x2a0885=await buildAuth(_0x59fe2a);logger[_0x42ef57(0xca)](process[_0x42ef57(0xf2)]());const _0x105d30=(CLI_BIN_NAME+'\x20'+redactCommandArgv(process[_0x42ef57(0xbd)][_0x42ef57(0xb5)](0x2))['join']('\x20'))[_0x42ef57(0xc9)]();logger[_0x42ef57(0xbf)](_0x105d30);const _0x4f64c2=isNonInteractiveMode(_0x4c1fc1);return{'config':_0x59fe2a,'auth':_0x2a0885,'logger':logger,'env':_0x14b598,'nonInteractive':_0x4f64c2};}export function buildConfigFromFlags(_0x15dfdf){return buildConfig(loadRawConfigLayers(),_0x15dfdf);}export function getLocalAppAliases(_0x491a0b){const _0x4ae39b=a107_0x445c;return _0x491a0b['apps']&&typeof _0x491a0b[_0x4ae39b(0xe8)]===_0x4ae39b(0xce)?_0x491a0b[_0x4ae39b(0xe8)]:{};}function a107_0x445c(_0x474850,_0x3f4f44){_0x474850=_0x474850-0xac;const _0x5907f7=a107_0x5907();let _0x445cd6=_0x5907f7[_0x474850];return _0x445cd6;}export function resolveLocalAppAliasCode(_0x2ebca6,_0x3a311e){const _0x17167b=a107_0x445c;if(!_0x3a311e)return undefined;const _0x12d892=getLocalAppAliases(_0x2ebca6)[_0x3a311e],_0x30f4a5=_0x12d892?.[_0x17167b(0xd0)];return typeof _0x30f4a5===_0x17167b(0xc5)&&_0x30f4a5[_0x17167b(0xc9)]()?_0x30f4a5[_0x17167b(0xc9)]():undefined;}export function readAppCodeFromConfig(){const _0x58b679=a107_0x445c;return buildConfigFromFlags({})[_0x58b679(0xc1)];}export function readScopedConfig(_0x1582a1){const _0x4c0a70=a107_0x445c,_0x1eee50=_0x1582a1['global']?_0x4c0a70(0xe4):'project';return readConfigFile(resolveWriteConfigPath(_0x1eee50));}export function writeScopedConfig(_0x26bbe3,_0x51216f){const _0x3ef56e=a107_0x445c,_0x4ba298=_0x51216f[_0x3ef56e(0xe4)]?_0x3ef56e(0xe4):_0x3ef56e(0xee);writeConfigFile(resolveWriteConfigPath(_0x4ba298),_0x26bbe3);}export async function initGlobalEnvironment(_0x2f3ae9){const _0x5353db=a107_0x445c,{initEnv:_0x2c3210}=await import(_0x5353db(0xb1));_0x2c3210(_0x2f3ae9[_0x5353db(0xbb)]);const {initDomains:_0x41aa77}=await import(_0x5353db(0xfc)),_0x2eb709=resolveEnterpriseRoutingConfig(_0x2f3ae9[_0x5353db(0xf7)][_0x5353db(0xf4)]),_0x3f792b=[_0x5353db(0xc0),_0x5353db(0xe0),_0x5353db(0xef),_0x5353db(0xed),_0x5353db(0xfd),_0x5353db(0xd7),'agentDomain',_0x5353db(0xd3),_0x5353db(0xc2),_0x5353db(0xec)],_0x453e8f=_0x2eb709!==undefined||_0x3f792b[_0x5353db(0xd6)](_0x18db0c=>Object[_0x5353db(0xf8)][_0x5353db(0xf5)][_0x5353db(0xc4)](_0x2f3ae9[_0x5353db(0xf7)],_0x18db0c));_0x41aa77({'apiDomain':_0x2eb709?_0x2eb709[_0x5353db(0xc0)]:_0x2f3ae9['raw'][_0x5353db(0xc0)]||_0x2f3ae9[_0x5353db(0xf7)][_0x5353db(0xe0)]||undefined,'userDomain':_0x2eb709?_0x2eb709[_0x5353db(0xef)]:_0x2f3ae9[_0x5353db(0xf7)][_0x5353db(0xef)]||undefined,'runtimeDomain':_0x2eb709?_0x2eb709[_0x5353db(0xed)]:_0x2f3ae9['raw'][_0x5353db(0xed)]||undefined,'skillDomain':_0x2eb709?_0x2eb709[_0x5353db(0xfd)]:_0x2f3ae9[_0x5353db(0xf7)]['skillDomain']||_0x2f3ae9['raw'][_0x5353db(0xd7)]||_0x2f3ae9[_0x5353db(0xf7)]['agentDomain']||_0x2f3ae9['raw'][_0x5353db(0xd3)]||undefined,'kbServiceDomain':_0x2eb709?_0x2eb709[_0x5353db(0xec)]:typeof _0x2f3ae9[_0x5353db(0xf7)]['kbServiceDomain']==='string'&&_0x2f3ae9[_0x5353db(0xf7)][_0x5353db(0xec)][_0x5353db(0xc9)]()?_0x2f3ae9[_0x5353db(0xf7)][_0x5353db(0xec)]:undefined,'allowOfficialKbServiceDefault':!_0x453e8f,'region':normalizeLovrabetRegion(_0x2f3ae9[_0x5353db(0xf7)][_0x5353db(0xcb)])});}export function getProjectConfigPath(){const _0x1614d9=a107_0x445c;return resolveConfigPath(process[_0x1614d9(0xf2)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x6f9146){const _0x2f6208=a107_0x445c;if(!existsSync(_0x6f9146))return{'status':'missing'};try{const _0x54af02=readFileSync(_0x6f9146,{'encoding':_0x2f6208(0xb0)});if(!_0x54af02?.[_0x2f6208(0xc9)]())return{'status':_0x2f6208(0xcd)};const _0x3ecf9e=JSON[_0x2f6208(0xb6)](_0x54af02);return{'status':'ok','data':_0x3ecf9e};}catch(_0x548eb3){return{'status':'error','message':_0x548eb3 instanceof Error?_0x548eb3[_0x2f6208(0xc6)]:String(_0x548eb3)};}}export function loadRawConfigLayers(_0x3451f2){const _0x6b3208=a107_0x445c;let _0x197673={},_0x5be2ed={},_0x584dde,_0x206bce;try{_0x584dde=resolveConfigPath(homedir());if(_0x584dde){const _0x201a1c=readFileSync(_0x584dde,{'encoding':_0x6b3208(0xb0)});if(_0x201a1c)_0x197673=JSON['parse'](_0x201a1c);}}catch{}try{const _0xfcd2e5=_0x3451f2||process['cwd']();_0x206bce=resolveConfigPath(_0xfcd2e5);if(_0x206bce){const _0x3a2e2d=readFileSync(_0x206bce,{'encoding':'utf8'});if(_0x3a2e2d)_0x5be2ed=JSON[_0x6b3208(0xb6)](_0x3a2e2d);}}catch{}return{'globalPath':_0x584dde,'projectPath':_0x206bce,'globalConfig':_0x197673,'projectConfig':_0x5be2ed};}function mergeRawConfigLayers(_0x523681){const _0x19b5c2=a107_0x445c,{globalConfig:_0x5c8ee1,projectConfig:_0x5ece78}=_0x523681,_0x55bff6={..._0x5c8ee1,..._0x5ece78};delete _0x55bff6[_0x19b5c2(0xeb)];if(_0x19b5c2(0xf3)in _0x5ece78)_0x55bff6[_0x19b5c2(0xf3)]=_0x5ece78['defaultApp'];else _0x5c8ee1[_0x19b5c2(0xf3)]&&(_0x55bff6[_0x19b5c2(0xf3)]=_0x5c8ee1[_0x19b5c2(0xf3)]);return _0x55bff6;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x9e964c){return mergeRawConfigLayers(loadRawConfigLayers(_0x9e964c));}export function readRawConfigWithLayers(_0x4bc556){const _0x4dda29=loadRawConfigLayers(_0x4bc556);return{'config':mergeRawConfigLayers(_0x4dda29),'layers':_0x4dda29};}export function resolveDefaultAppSource(_0x466f06){const _0x267e62=a107_0x445c;if(_0x267e62(0xf3)in _0x466f06[_0x267e62(0xd8)])return _0x267e62(0xee);if(_0x466f06['globalConfig']['defaultApp'])return'global';return null;}function buildConfig(_0x1b6150,_0x2da30c){const _0x2bbfaf=a107_0x445c,_0xd99854=mergeRawConfigLayers(_0x1b6150),{projectConfig:_0x55e5af}=_0x1b6150,_0x332334=_0xd99854[_0x2bbfaf(0xf3)]||undefined,_0x3ece36=typeof _0x2da30c[_0x2bbfaf(0xd0)]==='string'?_0x2da30c['appcode']:undefined,_0x2abbde=_0x55e5af[_0x2bbfaf(0xd0)]||_0x55e5af[_0x2bbfaf(0xe3)],_0x216efc=!_0x3ece36&&!_0x2da30c[_0x2bbfaf(0xe3)]&&!_0x2abbde&&!_0x55e5af['defaultApp'],_0x5c0414=_0x216efc?env(_0x2bbfaf(0xfb)):undefined,_0x21438a=_0x2da30c[_0x2bbfaf(0xe3)]||(_0x216efc&&!_0x5c0414?env('APP'):undefined),_0x3adaf3=_0x21438a||_0x332334||undefined,_0x28c166=_0x21438a||_0x5c0414?undefined:_0x2abbde||(_0x55e5af[_0x2bbfaf(0xf3)]?undefined:_0xd99854['appcode']||_0xd99854['app']||undefined),_0x3d067b=_0x21438a||(_0x28c166?undefined:_0x332334),_0x26389a=resolveLocalAppAliasCode(_0xd99854,_0x3d067b),_0x14dfbf=productEnvNames('ACCESS_KEY')[_0x2bbfaf(0xe7)](_0x250e43=>process.env[_0x250e43]!==undefined),_0x8ad22c=_0x14dfbf?process.env[_0x14dfbf]:undefined,_0x2360eb=_0x55e5af[_0x2bbfaf(0xf9)]||_0x8ad22c||_0xd99854['accessKey']||undefined,_0x3a827a=_0x55e5af[_0x2bbfaf(0xf9)]?_0x2bbfaf(0xad):_0x8ad22c?_0x14dfbf:_0xd99854['accessKey']?'global\x20config':undefined,_0x27a984=_0x2da30c[_0x2bbfaf(0xbb)]||_0xd99854[_0x2bbfaf(0xbb)]||env('ENV')||DEFAULT_CONFIG_VALUES[_0x2bbfaf(0xbb)],_0x304353=normalizeEnv(String(_0x27a984)),_0x7f5c4a=isDaily(_0x304353)?_0x2bbfaf(0xcc):isDev(_0x304353)?'development':_0x2bbfaf(0xe1),_0x1eb0ab=_0x3ece36||_0x5c0414||_0x28c166||_0x26389a?undefined:resolveCachedAppCode(_0x3d067b,_0x7f5c4a,_0x2360eb),_0x20e393=_0x3ece36||_0x5c0414||_0x28c166||_0x26389a||_0x1eb0ab||undefined,_0x176867=_0x3ece36?_0x2bbfaf(0xd4):_0x5c0414?_0x2bbfaf(0xbb):_0x28c166?_0x2bbfaf(0xe5):_0x26389a?_0x2bbfaf(0xd2):_0x1eb0ab?_0x2bbfaf(0xb7):undefined,_0x494cfc=_0xd99854[_0x2bbfaf(0xae)]||DEFAULT_CONFIG_VALUES[_0x2bbfaf(0xae)],_0xceb05c=undefined,_0x2a0a0f=_0x2da30c[_0x2bbfaf(0xde)]||env('FORMAT')||_0xd99854['format'],_0x2cdf32=normalizeLegacyOutputFormat(_0x2a0a0f),_0x4d8fca=env('PAGE_SIZE')||_0xd99854[_0x2bbfaf(0xb3)],_0x2114d2=_0x4d8fca?Number(_0x4d8fca)||undefined:undefined,_0x1b3718=_0xd99854[_0x2bbfaf(0xdc)],_0x929ec8=_0x1b3718===_0x2bbfaf(0xb2)||_0x1b3718===_0x2bbfaf(0xba)||_0x1b3718===_0x2bbfaf(0xd5)?_0x1b3718:DEFAULT_CONFIG_VALUES[_0x2bbfaf(0xdc)],_0x4c5503=_0xd99854[_0x2bbfaf(0xd9)]===!![],_0x39c37b=env(_0x2bbfaf(0xcf)),_0x52116e=_0x39c37b==='1'||_0x39c37b===_0x2bbfaf(0xc7);return{'appCode':typeof _0x20e393===_0x2bbfaf(0xc5)&&_0x20e393[_0x2bbfaf(0xc9)]()?_0x20e393['trim']():undefined,'appCodeSource':_0x176867,'env':_0x7f5c4a,'locale':_0x494cfc,'cookie':_0xceb05c,'accessKey':_0x2360eb,'accessKeySource':_0x3a827a,'format':_0x2cdf32,'pageSize':_0x2114d2,'riskLevel':_0x929ec8,'nativeToolAvailable':_0x4c5503,'verbose':_0x52116e,'defaultApp':_0x332334,'currentApp':typeof _0x3adaf3===_0x2bbfaf(0xc5)?_0x3adaf3:undefined,'raw':_0xd99854};}function env(_0x10a6b3){return productEnv(_0x10a6b3);}async function buildAuth(_0x2a62ce){const _0x4e6aa4=a107_0x445c,_0x4006ea='',_0x56f97b=!!_0x2a62ce[_0x4e6aa4(0xf9)];return{'cookie':_0x4006ea,'isLoggedIn':_0x56f97b,async 'getOrLogin'(){if(_0x56f97b)return _0x4006ea;throw CliErrors['authRequired']();}};}