@lovrabet/lovrabet-cli 2.1.14-beta.1 → 2.1.14

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 (120) 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/app-config/shared.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schema.js +1 -1
  39. package/lib/commands/service/dynamic.js +1 -1
  40. package/lib/commands/service/function-name-adapter.js +1 -1
  41. package/lib/commands/service/index.js +1 -1
  42. package/lib/commands/service/registry.js +1 -1
  43. package/lib/commands/skill/commands/create.js +1 -1
  44. package/lib/commands/skill/commands/install.js +1 -1
  45. package/lib/commands/skill/commands/list.js +1 -1
  46. package/lib/commands/skill/commands/push.js +1 -1
  47. package/lib/commands/skill/commands/validate.js +1 -1
  48. package/lib/commands/skill/flags.js +1 -1
  49. package/lib/commands/skill/index.js +1 -1
  50. package/lib/commands/skill/manifest-helpers.js +1 -1
  51. package/lib/commands/skill/push-execute.js +1 -1
  52. package/lib/commands/skill/push-flow-helpers.js +1 -1
  53. package/lib/commands/skill/push-retarget.js +1 -1
  54. package/lib/commands/skill/scopes.js +1 -1
  55. package/lib/commands/skill/summary.js +1 -1
  56. package/lib/commands/skill/templates.js +1 -1
  57. package/lib/commands/skill/validate.js +1 -1
  58. package/lib/commands/sql/detail.js +1 -1
  59. package/lib/commands/sql/exec.js +1 -1
  60. package/lib/commands/sql/index.js +1 -1
  61. package/lib/commands/update.js +1 -1
  62. package/lib/commands/workspace/index.js +1 -1
  63. package/lib/config/schema.js +1 -1
  64. package/lib/constant/app.js +1 -1
  65. package/lib/constant/auth-mode.js +1 -1
  66. package/lib/constant/cli.js +1 -1
  67. package/lib/constant/defaults.js +1 -1
  68. package/lib/constant/distribution.js +1 -1
  69. package/lib/constant/domain.js +1 -1
  70. package/lib/constant/env.js +1 -1
  71. package/lib/constant/output.js +1 -1
  72. package/lib/constant/product.js +1 -1
  73. package/lib/constant/risk.js +1 -1
  74. package/lib/constant/url.js +1 -1
  75. package/lib/context.js +1 -1
  76. package/lib/core/api-client.js +1 -1
  77. package/lib/core/db-resolver.js +1 -1
  78. package/lib/core/sdk-client.js +1 -1
  79. package/lib/errors.js +1 -1
  80. package/lib/framework/build-all-flags.js +1 -1
  81. package/lib/framework/dryrun.js +1 -1
  82. package/lib/framework/flags.js +1 -1
  83. package/lib/framework/help.js +1 -1
  84. package/lib/framework/index.js +1 -1
  85. package/lib/framework/output.js +1 -1
  86. package/lib/framework/preparse.js +1 -1
  87. package/lib/framework/rate-limit.js +1 -1
  88. package/lib/framework/response.js +1 -1
  89. package/lib/framework/runner-confirmation.js +1 -1
  90. package/lib/framework/runner-error.js +1 -1
  91. package/lib/framework/runner.js +1 -1
  92. package/lib/framework/schema-export.js +1 -1
  93. package/lib/framework/service-order.js +1 -1
  94. package/lib/framework/types.js +1 -1
  95. package/lib/generated/build-info.js +1 -1
  96. package/lib/help.js +1 -1
  97. package/lib/skills/npx-skills-add.js +1 -1
  98. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  99. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  100. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  101. package/lib/skills/runtime-skill-sync/links.js +1 -1
  102. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  103. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  104. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  105. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  106. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  107. package/lib/skills/runtime-skill-sync/push.js +1 -1
  108. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  109. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  110. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  111. package/lib/skills/runtime-skill-sync.js +1 -1
  112. package/lib/utils/apply-jq-filter.js +1 -1
  113. package/lib/utils/logger.js +1 -1
  114. package/lib/utils/lossless-json.js +1 -1
  115. package/lib/utils/params.js +1 -1
  116. package/lib/utils/platform.js +1 -1
  117. package/lib/utils/update-notice.js +1 -1
  118. package/lib/utils/version.js +1 -1
  119. package/lib/utils/write-cli-side-channel.js +1 -1
  120. package/package.json +1 -1
@@ -1 +1 @@
1
- function a54_0x2975(){var _0x58c0b7=['9943692qRBkQZ','version','linkedPaths','15AQTpud','63dFGDhl','320syhmhS','status','pulledAt','441429kZdYGv','267760oesZfz','cacheDir','66632SXuVyu','skillName','tags','261023wJlraa','131238MZfvPp','treeHash','metadataPath','readonly','scope','dir','1750710zErIwc','8zfrxbs','contentHash','appCode'];a54_0x2975=function(){return _0x58c0b7;};return a54_0x2975();}(function(_0x519d0a,_0xccb88c){var _0xf02ae0=a54_0x3383,_0x4c1da1=_0x519d0a();while(!![]){try{var _0x139a30=parseInt(_0xf02ae0(0x174))/0x1+parseInt(_0xf02ae0(0x163))/0x2*(parseInt(_0xf02ae0(0x16e))/0x3)+parseInt(_0xf02ae0(0x16f))/0x4+-parseInt(_0xf02ae0(0x169))/0x5*(-parseInt(_0xf02ae0(0x162))/0x6)+-parseInt(_0xf02ae0(0x16a))/0x7*(-parseInt(_0xf02ae0(0x171))/0x8)+-parseInt(_0xf02ae0(0x175))/0x9*(parseInt(_0xf02ae0(0x16b))/0xa)+-parseInt(_0xf02ae0(0x166))/0xb;if(_0x139a30===_0xccb88c)break;else _0x4c1da1['push'](_0x4c1da1['shift']());}catch(_0x37f36e){_0x4c1da1['push'](_0x4c1da1['shift']());}}}(a54_0x2975,0x7927f));export function summarizeRuntimeSkill(_0x695daa){var _0x28b440=a54_0x3383;return{'id':_0x695daa['id'],'skillCode':_0x695daa['skillCode'],'skillName':_0x695daa[_0x28b440(0x172)],'scope':_0x695daa[_0x28b440(0x179)],'version':_0x695daa[_0x28b440(0x167)],'readonly':_0x695daa[_0x28b440(0x178)]};}function a54_0x3383(_0x9bf612,_0x5bed7f){_0x9bf612=_0x9bf612-0x162;var _0x297596=a54_0x2975();var _0x338343=_0x297596[_0x9bf612];return _0x338343;}export function summarizeLocalRuntimeSkill(_0x5729bb){var _0x443596=a54_0x3383;return{'id':_0x5729bb['id'],'skillCode':_0x5729bb['skillCode'],'skillName':_0x5729bb[_0x443596(0x172)],'scope':_0x5729bb[_0x443596(0x179)],'appCode':_0x5729bb[_0x443596(0x165)],'version':_0x5729bb['version'],'status':_0x5729bb[_0x443596(0x16c)],'readonly':_0x5729bb[_0x443596(0x178)],'tags':_0x5729bb[_0x443596(0x173)],'dir':_0x5729bb[_0x443596(0x17a)],'cacheDir':_0x5729bb[_0x443596(0x170)],'skillMdPath':_0x5729bb['skillMdPath'],'metadataPath':_0x5729bb[_0x443596(0x177)],'linkedPaths':_0x5729bb[_0x443596(0x168)],'contentHash':_0x5729bb[_0x443596(0x164)],'treeHash':_0x5729bb[_0x443596(0x176)],'pulledAt':_0x5729bb[_0x443596(0x16d)]};}
1
+ function a54_0x36b4(){var _0x1369ec=['version','pulledAt','skillCode','linkedPaths','skillName','34juDAUN','448653GtInox','390901vePBnb','appCode','skillMdPath','403875geqMvO','520434OsOHFJ','contentHash','readonly','1122BbVHrJ','scope','cacheDir','metadataPath','1152624PmQJiM','626628WbZLPI'];a54_0x36b4=function(){return _0x1369ec;};return a54_0x36b4();}function a54_0x5b7f(_0x2c90f3,_0x4ed12d){_0x2c90f3=_0x2c90f3-0x95;var _0x36b4b9=a54_0x36b4();var _0x5b7f39=_0x36b4b9[_0x2c90f3];return _0x5b7f39;}(function(_0x2aa9b6,_0x4633c2){var _0x21a5c6=a54_0x5b7f,_0x5e269e=_0x2aa9b6();while(!![]){try{var _0x2240d2=parseInt(_0x21a5c6(0xa1))/0x1*(parseInt(_0x21a5c6(0x98))/0x2)+-parseInt(_0x21a5c6(0x99))/0x3+parseInt(_0x21a5c6(0xa6))/0x4+parseInt(_0x21a5c6(0x9d))/0x5+-parseInt(_0x21a5c6(0x9e))/0x6+-parseInt(_0x21a5c6(0x9a))/0x7+parseInt(_0x21a5c6(0xa5))/0x8;if(_0x2240d2===_0x4633c2)break;else _0x5e269e['push'](_0x5e269e['shift']());}catch(_0x4c0d77){_0x5e269e['push'](_0x5e269e['shift']());}}}(a54_0x36b4,0x1a7a3));export function summarizeRuntimeSkill(_0x3c0fff){var _0x12e161=a54_0x5b7f;return{'id':_0x3c0fff['id'],'skillCode':_0x3c0fff['skillCode'],'skillName':_0x3c0fff[_0x12e161(0x97)],'scope':_0x3c0fff[_0x12e161(0xa2)],'version':_0x3c0fff[_0x12e161(0xa7)],'readonly':_0x3c0fff[_0x12e161(0xa0)]};}export function summarizeLocalRuntimeSkill(_0x41c3dd){var _0xb7f020=a54_0x5b7f;return{'id':_0x41c3dd['id'],'skillCode':_0x41c3dd[_0xb7f020(0x95)],'skillName':_0x41c3dd['skillName'],'scope':_0x41c3dd['scope'],'appCode':_0x41c3dd[_0xb7f020(0x9b)],'version':_0x41c3dd[_0xb7f020(0xa7)],'status':_0x41c3dd['status'],'readonly':_0x41c3dd[_0xb7f020(0xa0)],'tags':_0x41c3dd['tags'],'dir':_0x41c3dd['dir'],'cacheDir':_0x41c3dd[_0xb7f020(0xa3)],'skillMdPath':_0x41c3dd[_0xb7f020(0x9c)],'metadataPath':_0x41c3dd[_0xb7f020(0xa4)],'linkedPaths':_0x41c3dd[_0xb7f020(0x96)],'contentHash':_0x41c3dd[_0xb7f020(0x9f)],'treeHash':_0x41c3dd['treeHash'],'pulledAt':_0x41c3dd[_0xb7f020(0xa8)]};}
@@ -1 +1 @@
1
- const a55_0x10f317=a55_0x3e31;(function(_0x4fafa6,_0x201dcf){const _0x354fe1=a55_0x3e31,_0x206790=_0x4fafa6();while(!![]){try{const _0x1ba4d2=parseInt(_0x354fe1(0x154))/0x1*(-parseInt(_0x354fe1(0x13e))/0x2)+-parseInt(_0x354fe1(0x152))/0x3+parseInt(_0x354fe1(0x15a))/0x4*(-parseInt(_0x354fe1(0x15b))/0x5)+-parseInt(_0x354fe1(0x15e))/0x6*(-parseInt(_0x354fe1(0x159))/0x7)+parseInt(_0x354fe1(0x157))/0x8*(parseInt(_0x354fe1(0x146))/0x9)+-parseInt(_0x354fe1(0x143))/0xa*(parseInt(_0x354fe1(0x156))/0xb)+parseInt(_0x354fe1(0x15c))/0xc;if(_0x1ba4d2===_0x201dcf)break;else _0x206790['push'](_0x206790['shift']());}catch(_0x54e1c8){_0x206790['push'](_0x206790['shift']());}}}(a55_0x445b,0x5204a));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=['write',a55_0x10f317(0x141),a55_0x10f317(0x162)];export const DEFAULT_SKILL_TARGET=a55_0x10f317(0x15d);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE='references/runtime-contract.md';export const OUTPUT_CONTRACT_FILE=a55_0x10f317(0x142);export function validateSkillName(_0x1a3fa7){const _0x27f9a2=a55_0x10f317,_0x125365=_0x1a3fa7['trim']();if(!SKILL_NAME_PATTERN[_0x27f9a2(0x151)](_0x125365))throw CliErrors[_0x27f9a2(0x144)](_0x27f9a2(0x150)+_0x1a3fa7+_0x27f9a2(0x165),_0x27f9a2(0x13f));return _0x125365;}function a55_0x3e31(_0x4d2800,_0x49a993){_0x4d2800=_0x4d2800-0x13c;const _0x445b56=a55_0x445b();let _0x3e314e=_0x445b56[_0x4d2800];return _0x3e314e;}export function normalizeSkillTemplateType(_0x76022e){const _0x34bcbe=a55_0x10f317,_0x1cb39e=(_0x76022e||'write')[_0x34bcbe(0x140)]()||_0x34bcbe(0x155);if(SKILL_TYPES[_0x34bcbe(0x164)](_0x1cb39e))return _0x1cb39e;throw CliErrors[_0x34bcbe(0x144)](_0x34bcbe(0x149)+_0x76022e,'Use\x20one\x20of:\x20'+SKILL_TYPES['join'](',\x20')+'.');}export function renderSkillTemplate(_0x1c0656){const _0x2e1a0b=a55_0x10f317,_0x7edd3f=validateSkillName(_0x1c0656[_0x2e1a0b(0x15f)]),_0x3a491d=normalizeSkillTemplateType(_0x1c0656[_0x2e1a0b(0x160)]),_0x45dde4=_0x1c0656[_0x2e1a0b(0x168)]??new Date()[_0x2e1a0b(0x148)]();return{'skillName':_0x7edd3f,'type':_0x3a491d,'files':[{'path':_0x2e1a0b(0x147),'content':renderSkillMd(_0x7edd3f,_0x3a491d,_0x45dde4)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x7edd3f,_0x3a491d)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x7edd3f,_0x3a491d)}]};}function renderSkillMd(_0x3fb03b,_0xfb98ac,_0x27297c){const _0x1309da=a55_0x10f317,_0x21ce3c=typeWorkflow(_0xfb98ac);return _0x1309da(0x14c)+_0x3fb03b+_0x1309da(0x13c)+_0xfb98ac+_0x1309da(0x14d)+_0x27297c+_0x1309da(0x163)+_0x3fb03b+_0x1309da(0x14b)+_0x21ce3c+'\x0a\x0a'+businessStateSection(_0xfb98ac)+_0x1309da(0x14f);}function renderRuntimeContract(_0x50634a,_0x1cd4c4){const _0x3e805c=a55_0x10f317,_0x55833d=_0x1cd4c4==='write'?_0x3e805c(0x167):'';return'#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。'+_0x50634a+_0x3e805c(0x166)+_0x1cd4c4+_0x3e805c(0x14a)+_0x55833d+'\x0a##\x20返回契约\x0a\x0a最终输出必须遵守\x20[output-contract.md](output-contract.md)。本文件只补充运行态安全约束;展示字段、状态枚举、失败暴露和人工处理项以\x20output-contract.md\x20为准。\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败状态识别、checkpoint、重试和人工接管方式】\x0a\x0a##\x20禁止事项\x0a\x0a-\x20禁止链接或读取\x20Skill\x20目录外的\x20AGENTS.md、wiki、docs、脚本或个人路径作为运行时必读依赖。\x0a-\x20禁止把说明性的缓存路径、安装路径、示例路径或排障路径包装成运行时必读依赖。\x0a-\x20禁止在未确认影响范围时执行写入。\x0a-\x20禁止隐藏失败或把未知状态描述为成功。\x0a';}function a55_0x445b(){const _0x4c8d54=['timestamp','\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','253868xegbTV','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','trim','read','references/output-contract.md','231890KCFVTm','validation','#\x20Output\x20Contract\x0a\x0a','3699OOLqek','SKILL.md','toISOString','Unsupported\x20Skill\x20type:\x20','\x20只作为模板选择器,不替代业务权限、风险等级和用户确认。\x0a\x0a##\x20运行态入口\x0a\x0a【填写包内说明的运行态入口、可调用脚本或人工执行边界】\x0a\x0a##\x20凭证与登录态\x0a\x0a【填写本\x20Skill\x20依赖的第三方服务凭证和登录态治理方式。强烈建议通过\x20Lovrabet\x20应用后台或平台服务端适配器做平台托管配置;开发先行阶段如存在临时明文凭证,应标注后续治理计划、适用环境和额度边界,并避免进入长期交付内容。】\x0a\x0a##\x20第三方候选资产\x0a\x0a【填写第三方生成类结果的消费边界。生成类结果仅作为候选素材;涉及商品图、客户资料、Excel\x20或业务文件上传时,必须声明授权、额度、审计、失败降级和人工审核/业务\x20BFF\x20校验后的发布边界。】\x0a\x0a##\x20预览\x20/\x20写入\x20/\x20核对差异\x0a\x0a【填写预览、确认、正式执行和只读核对的顺序】\x0a\x0a','\x0a\x0a##\x20内部要求\x0a\x0a执行前必须读取并遵守\x20[runtime-contract.md](references/runtime-contract.md)\x20和\x20[output-contract.md](references/output-contract.md)。\x0a\x0a##\x20使用边界\x0a\x0a【填写该\x20Skill\x20能做什么、不能做什么、适用业务范围和禁止扩大执行范围】\x0a\x0a##\x20输入门禁\x0a\x0a【填写必须具备的输入;缺失业务对象、执行范围、确认信息或权限上下文时必须停止】\x0a\x0a##\x20与现有能力集成\x0a\x0a【填写本\x20Skill\x20使用的\x20lovrabet\x20data、lovrabet\x20sql、lovrabet\x20bff\x20或\x20lovrabet\x20personal-bff\x20命令,以及包内\x20references/\x20中沉淀的运行态入口、脚本对接方式或人工操作边界。不得依赖\x20Skill\x20目录外文件、绝对路径或本机专属配置。】\x0a\x0a##\x20平台能力优先\x0a\x0a【填写本\x20Skill\x20优先使用的\x20Lovrabet\x20平台命令:lovrabet\x20data\x20/\x20lovrabet\x20sql\x20/\x20lovrabet\x20bff\x20/\x20lovrabet\x20personal-bff。本地脚本仅用于平台明确不覆盖的文件格式转换、静态校验、展示整理或第三方薄适配;不得用本地脚本替代平台命令承载业务写入、权限判断、状态机、审批提交或回滚。】\x0a\x0a##\x20第三方服务边界\x0a\x0a【填写是否调用第三方识别、生成、上传或行业服务;如涉及\x20API\x20Key、OAuth、Cookie、登录态或业务数据上传,必须说明由\x20Lovrabet\x20应用后台、BFF\x20或平台适配器统一配置。目标治理口径是\x20Skill\x20不读取、不分发、不保存明文凭证。详细凭证、额度、审计和审核发布规则写入\x20references/runtime-contract.md。】\x0a\x0a##\x20SOP\x20工作流\x0a\x0a','---\x0aname:\x20','\x0a\x20\x20created:\x20\x22','1.\x20受控模板预览:【填写待维护内容、影响范围和预览方式】\x0a2.\x20用户确认:【填写确认信息和不可省略的人工判断点】\x0a3.\x20受控维护:【填写确认后的维护步骤和记录方式】\x0a4.\x20只读核对:【填写维护后的核对入口、差异和回滚/修正方式】','\x0a\x0a##\x20展示规范\x0a\x0a【填写面向运营人员的展示字段、差异摘要、成功/失败状态和人工处理项;最终输出必须按\x20references/output-contract.md\x20的\x20status\x20/\x20mode\x20/\x20summary\x20/\x20errors\x20/\x20nextActions\x20返回,不能把\x20unknown、partial_success、failed\x20或\x20needs_manual_check\x20包装为\x20success。】\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败后的\x20checkpoint、重试条件、人工接管方式和避免重复写入的核对步骤】\x0a','Invalid\x20Skill\x20name:\x20','test','899544opgRUL','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','5rVKVBk','write','11xSjbqo','10216cpZlCT','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','467110DEqECO','32IAYfCs','174465zwSUKq','7770840lnyxfq','.agents/skills','36WABZzt','skillName','type','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','trainer','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','includes','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','\x20的所有必读规则必须位于\x20SKILL.md\x20或\x20references/\x20内。\x0a\x0a##\x20必读文档\x0a\x0a-\x20[SKILL.md](../SKILL.md)\x0a-\x20[runtime-contract.md](runtime-contract.md)\x0a-\x20[output-contract.md](output-contract.md)\x0a\x0a##\x20主边界\x0a\x0a-\x20不得依赖\x20Skill\x20目录外的仓库文件、绝对路径、file\x20URL\x20或本机专属配置。\x0a-\x20文档中的缓存路径、安装路径、示例路径或排障路径不等于运行时包外依赖;只有明确要求读取、链接或执行包外内容时才属于自包含风险。\x0a-\x20如需承接仓库规范,必须把必要规则内化到本\x20Skill\x20包内的\x20references/\x20文件中。\x0a-\x20type=','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a'];a55_0x445b=function(){return _0x4c8d54;};return a55_0x445b();}function renderOutputContract(_0x113a93,_0x18a389){const _0x21be37=a55_0x10f317,_0x4b7f01=_0x18a389==='write'?_0x21be37(0x158):_0x18a389+'\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。';return _0x21be37(0x145)+_0x113a93+'\x20的最终回复必须让运营人员能判断:是否执行、影响了什么、如何复核、失败后下一步做什么。\x0a\x0a##\x20状态枚举\x0a\x0astatus:\x20success\x20|\x20no_op\x20|\x20partial_success\x20|\x20blocked\x20|\x20failed\x20|\x20needs_manual_check\x0a\x0a-\x20success:动作已完成,且关键结果已核对。\x0a-\x20no_op:没有符合条件的对象或无需变更。\x0a-\x20partial_success:部分对象完成,未完成对象必须进入\x20errors\x20和\x20nextActions。\x0a-\x20blocked:缺少输入、权限、确认或平台能力,无法继续。\x0a-\x20failed:执行失败,必须说明失败阶段、错误和恢复方式。\x0a-\x20needs_manual_check:读回异常、状态未知或人工判断缺失。\x0a\x0aunknownpartial_success、failed、needs_manual_check\x20不能包装为\x20success。\x0a\x0a##\x20输出模式\x0a\x0amode:\x20dry_run\x20|\x20confirmed\x20|\x20read_only\x0a\x0a-\x20dry_run:只展示预览、影响范围和差异,不写入业务数据。\x0a-\x20confirmed:用户明确确认后的执行模式;写入后必须读回核对。\x0a-\x20read_only:只查询、汇总或核对,不触发写入。\x0a\x0a##\x20必填字段\x0a\x0a-\x20status\x0a-\x20mode\x0a-\x20summary\x0a-\x20scope\x0a-\x20changes\x0a-\x20verification\x0a-\x20warnings\x0a-\x20errors\x0a-\x20nextActions\x0a\x0a##\x20写入结果\x0a\x0a'+_0x4b7f01+_0x21be37(0x161);}function typeWorkflow(_0x26c3e7){const _0x599b76=a55_0x10f317;if(_0x26c3e7===_0x599b76(0x141))return _0x599b76(0x13d);if(_0x26c3e7==='trainer')return _0x599b76(0x14e);return'1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】';}function businessStateSection(_0x24fd61){const _0xa8b943=a55_0x10f317;if(_0x24fd61!=='write')return'';return _0xa8b943(0x153);}
1
+ const a55_0x89523f=a55_0x4526;(function(_0x5a3fe4,_0x430cdd){const _0x14103e=a55_0x4526,_0x34c65b=_0x5a3fe4();while(!![]){try{const _0xbbc078=-parseInt(_0x14103e(0x180))/0x1*(-parseInt(_0x14103e(0x19a))/0x2)+-parseInt(_0x14103e(0x17d))/0x3+-parseInt(_0x14103e(0x18f))/0x4*(-parseInt(_0x14103e(0x194))/0x5)+parseInt(_0x14103e(0x19f))/0x6+parseInt(_0x14103e(0x18c))/0x7+-parseInt(_0x14103e(0x181))/0x8+-parseInt(_0x14103e(0x19e))/0x9*(parseInt(_0x14103e(0x1a1))/0xa);if(_0xbbc078===_0x430cdd)break;else _0x34c65b['push'](_0x34c65b['shift']());}catch(_0xc4028f){_0x34c65b['push'](_0x34c65b['shift']());}}}(a55_0x301f,0x44bac));function a55_0x301f(){const _0x5d7841=['\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','85448FloHWX','---\x0aname:\x20','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','125IbDXBS','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','1.\x20受控模板预览:【填写待维护内容、影响范围和预览方式】\x0a2.\x20用户确认:【填写确认信息和不可省略的人工判断点】\x0a3.\x20受控维护:【填写确认后的维护步骤和记录方式】\x0a4.\x20只读核对:【填写维护后的核对入口、差异和回滚/修正方式】','SKILL.md','trainer','test','50iTtCwF','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','validation','\x0a\x0a##\x20展示规范\x0a\x0a【填写面向运营人员的展示字段、差异摘要、成功/失败状态和人工处理项;最终输出必须按\x20references/output-contract.md\x20的\x20status\x20/\x20mode\x20/\x20summary\x20/\x20errors\x20/\x20nextActions\x20返回,不能把\x20unknown、partial_success、failed\x20或\x20needs_manual_check\x20包装为\x20success。】\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败后的\x20checkpoint、重试条件、人工接管方式和避免重复写入的核对步骤】\x0a','1863nbAaiU','1293420uooUHU','\x20的最终回复必须让运营人员能判断:是否执行、影响了什么、如何复核、失败后下一步做什么。\x0a\x0a##\x20状态枚举\x0a\x0astatus:\x20success\x20|\x20no_op\x20|\x20partial_success\x20|\x20blocked\x20|\x20failed\x20|\x20needs_manual_check\x0a\x0a-\x20success:动作已完成,且关键结果已核对。\x0a-\x20no_op:没有符合条件的对象或无需变更。\x0a-\x20partial_success:部分对象完成,未完成对象必须进入\x20errors\x20和\x20nextActions。\x0a-\x20blocked:缺少输入、权限、确认或平台能力,无法继续。\x0a-\x20failed:执行失败,必须说明失败阶段、错误和恢复方式。\x0a-\x20needs_manual_check:读回异常、状态未知或人工判断缺失。\x0a\x0aunknown、partial_success、failed、needs_manual_check\x20不能包装为\x20success。\x0a\x0a##\x20输出模式\x0a\x0amode:\x20dry_run\x20|\x20confirmed\x20|\x20read_only\x0a\x0a-\x20dry_run:只展示预览、影响范围和差异,不写入业务数据。\x0a-\x20confirmed:用户明确确认后的执行模式;写入后必须读回核对。\x0a-\x20read_only:只查询、汇总或核对,不触发写入。\x0a\x0a##\x20必填字段\x0a\x0a-\x20status\x0a-\x20mode\x0a-\x20summary\x0a-\x20scope\x0a-\x20changes\x0a-\x20verification\x0a-\x20warnings\x0a-\x20errors\x0a-\x20nextActions\x0a\x0a##\x20写入结果\x0a\x0a','6860YArhcO','Invalid\x20Skill\x20name:\x20','\x20的所有必读规则必须位于\x20SKILL.md\x20或\x20references/\x20内。\x0a\x0a##\x20必读文档\x0a\x0a-\x20[SKILL.md](../SKILL.md)\x0a-\x20[runtime-contract.md](runtime-contract.md)\x0a-\x20[output-contract.md](output-contract.md)\x0a\x0a##\x20主边界\x0a\x0a-\x20不得依赖\x20Skill\x20目录外的仓库文件、绝对路径、file\x20URL\x20或本机专属配置。\x0a-\x20文档中的缓存路径、安装路径、示例路径或排障路径不等于运行时包外依赖;只有明确要求读取、链接或执行包外内容时才属于自包含风险。\x0a-\x20如需承接仓库规范,必须把必要规则内化到本\x20Skill\x20包内的\x20references/\x20文件中。\x0a-\x20type=','join','409413wWwfXR','\x0a##\x20返回契约\x0a\x0a最终输出必须遵守\x20[output-contract.md](output-contract.md)。本文件只补充运行态安全约束;展示字段、状态枚举、失败暴露和人工处理项以\x20output-contract.md\x20为准。\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败状态识别、checkpoint、重试和人工接管方式】\x0a\x0a##\x20禁止事项\x0a\x0a-\x20禁止链接或读取\x20Skill\x20目录外的\x20AGENTS.md、wiki、docs、脚本或个人路径作为运行时必读依赖。\x0a-\x20禁止把说明性的缓存路径、安装路径、示例路径或排障路径包装成运行时必读依赖。\x0a-\x20禁止在未确认影响范围时执行写入。\x0a-\x20禁止隐藏失败或把未知状态描述为成功。\x0a','read','317TuFSQo','4138768SXnneD','Unsupported\x20Skill\x20type:\x20','\x0a\x0a##\x20内部要求\x0a\x0a执行前必须读取并遵守\x20[runtime-contract.md](references/runtime-contract.md)\x20和\x20[output-contract.md](references/output-contract.md)。\x0a\x0a##\x20使用边界\x0a\x0a【填写该\x20Skill\x20能做什么、不能做什么、适用业务范围和禁止扩大执行范围】\x0a\x0a##\x20输入门禁\x0a\x0a【填写必须具备的输入;缺失业务对象、执行范围、确认信息或权限上下文时必须停止】\x0a\x0a##\x20与现有能力集成\x0a\x0a【填写本\x20Skill\x20使用的\x20lovrabet\x20data、lovrabet\x20sql、lovrabet\x20bff\x20或\x20lovrabet\x20personal-bff\x20命令,以及包内\x20references/\x20中沉淀的运行态入口、脚本对接方式或人工操作边界。不得依赖\x20Skill\x20目录外文件、绝对路径或本机专属配置。】\x0a\x0a##\x20平台能力优先\x0a\x0a【填写本\x20Skill\x20优先使用的\x20Lovrabet\x20平台命令:lovrabet\x20data\x20/\x20lovrabet\x20sql\x20/\x20lovrabet\x20bff\x20/\x20lovrabet\x20personal-bff。本地脚本仅用于平台明确不覆盖的文件格式转换、静态校验、展示整理或第三方薄适配;不得用本地脚本替代平台命令承载业务写入、权限判断、状态机、审批提交或回滚。】\x0a\x0a##\x20第三方服务边界\x0a\x0a【填写是否调用第三方识别、生成、上传或行业服务;如涉及\x20API\x20Key、OAuth、Cookie、登录态或业务数据上传,必须说明由\x20Lovrabet\x20应用后台、BFF\x20或平台适配器统一配置。目标治理口径是\x20Skill\x20不读取、不分发、不保存明文凭证。详细凭证、额度、审计和审核发布规则写入\x20references/runtime-contract.md。】\x0a\x0a##\x20SOP\x20工作流\x0a\x0a','includes','\x20只作为模板选择器,不替代业务权限、风险等级和用户确认。\x0a\x0a##\x20运行态入口\x0a\x0a【填写包内说明的运行态入口、可调用脚本或人工执行边界】\x0a\x0a##\x20凭证与登录态\x0a\x0a【填写本\x20Skill\x20依赖的第三方服务凭证和登录态治理方式。强烈建议通过\x20Lovrabet\x20应用后台或平台服务端适配器做平台托管配置;开发先行阶段如存在临时明文凭证,应标注后续治理计划、适用环境和额度边界,并避免进入长期交付内容。】\x0a\x0a##\x20第三方候选资产\x0a\x0a【填写第三方生成类结果的消费边界。生成类结果仅作为候选素材;涉及商品图、客户资料、Excel\x20或业务文件上传时,必须声明授权、额度、审计、失败降级和人工审核/业务\x20BFF\x20校验后的发布边界。】\x0a\x0a##\x20预览\x20/\x20写入\x20/\x20核对差异\x0a\x0a【填写预览、确认、正式执行和只读核对的顺序】\x0a\x0a','trim','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','write','.agents/skills','Use\x20one\x20of:\x20','type','2238530ZfxNLu','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a'];a55_0x301f=function(){return _0x5d7841;};return a55_0x301f();}import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a55_0x89523f(0x188),a55_0x89523f(0x17f),a55_0x89523f(0x198)];function a55_0x4526(_0x51fbfa,_0x34058e){_0x51fbfa=_0x51fbfa-0x17d;const _0x301f02=a55_0x301f();let _0x4526dc=_0x301f02[_0x51fbfa];return _0x4526dc;}export const DEFAULT_SKILL_TARGET=a55_0x89523f(0x189);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE='references/runtime-contract.md';export const OUTPUT_CONTRACT_FILE='references/output-contract.md';export function validateSkillName(_0x563b02){const _0x56a92=a55_0x89523f,_0x5ed472=_0x563b02[_0x56a92(0x186)]();if(!SKILL_NAME_PATTERN[_0x56a92(0x199)](_0x5ed472))throw CliErrors[_0x56a92(0x19c)](_0x56a92(0x1a2)+_0x563b02+_0x56a92(0x191),_0x56a92(0x193));return _0x5ed472;}export function normalizeSkillTemplateType(_0x27c37c){const _0x55fa8b=a55_0x89523f,_0x21af1b=(_0x27c37c||_0x55fa8b(0x188))[_0x55fa8b(0x186)]()||_0x55fa8b(0x188);if(SKILL_TYPES[_0x55fa8b(0x184)](_0x21af1b))return _0x21af1b;throw CliErrors[_0x55fa8b(0x19c)](_0x55fa8b(0x182)+_0x27c37c,_0x55fa8b(0x18a)+SKILL_TYPES[_0x55fa8b(0x1a4)](',\x20')+'.');}export function renderSkillTemplate(_0x44ea94){const _0xa0a819=a55_0x89523f,_0x2a9398=validateSkillName(_0x44ea94['skillName']),_0xf3c55e=normalizeSkillTemplateType(_0x44ea94[_0xa0a819(0x18b)]),_0x5bd772=_0x44ea94['timestamp']??new Date()['toISOString']();return{'skillName':_0x2a9398,'type':_0xf3c55e,'files':[{'path':_0xa0a819(0x197),'content':renderSkillMd(_0x2a9398,_0xf3c55e,_0x5bd772)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x2a9398,_0xf3c55e)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x2a9398,_0xf3c55e)}]};}function renderSkillMd(_0x1908f9,_0x2b802d,_0x190d88){const _0x316156=a55_0x89523f,_0x43447d=typeWorkflow(_0x2b802d);return _0x316156(0x190)+_0x1908f9+_0x316156(0x18e)+_0x2b802d+'\x0a\x20\x20created:\x20\x22'+_0x190d88+'\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20'+_0x1908f9+_0x316156(0x183)+_0x43447d+'\x0a\x0a'+businessStateSection(_0x2b802d)+_0x316156(0x19d);}function renderRuntimeContract(_0x1d83a8,_0x1c29cc){const _0x38336f=a55_0x89523f,_0x2ee74f=_0x1c29cc==='write'?'##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a':'';return'#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。'+_0x1d83a8+_0x38336f(0x1a3)+_0x1c29cc+_0x38336f(0x185)+_0x2ee74f+_0x38336f(0x17e);}function renderOutputContract(_0x213427,_0x21590d){const _0x5b725f=a55_0x89523f,_0x39e67f=_0x21590d==='write'?'write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。':_0x21590d+_0x5b725f(0x187);return'#\x20Output\x20Contract\x0a\x0a'+_0x213427+_0x5b725f(0x1a0)+_0x39e67f+_0x5b725f(0x18d);}function typeWorkflow(_0x489a27){const _0x24182a=a55_0x89523f;if(_0x489a27==='read')return _0x24182a(0x19b);if(_0x489a27===_0x24182a(0x198))return _0x24182a(0x196);return _0x24182a(0x192);}function businessStateSection(_0x5e4404){const _0x17dde8=a55_0x89523f;if(_0x5e4404!==_0x17dde8(0x188))return'';return _0x17dde8(0x195);}
@@ -1 +1 @@
1
- const a56_0x162d61=a56_0x5977;(function(_0x5b1d44,_0x1b2ac9){const _0x8d3c62=a56_0x5977,_0x597029=_0x5b1d44();while(!![]){try{const _0x28a06a=parseInt(_0x8d3c62(0x17c))/0x1+parseInt(_0x8d3c62(0x18f))/0x2+parseInt(_0x8d3c62(0x17e))/0x3+parseInt(_0x8d3c62(0x142))/0x4*(-parseInt(_0x8d3c62(0x16f))/0x5)+-parseInt(_0x8d3c62(0x16d))/0x6*(-parseInt(_0x8d3c62(0x159))/0x7)+-parseInt(_0x8d3c62(0x14b))/0x8+parseInt(_0x8d3c62(0x184))/0x9;if(_0x28a06a===_0x1b2ac9)break;else _0x597029['push'](_0x597029['shift']());}catch(_0x150c38){_0x597029['push'](_0x597029['shift']());}}}(a56_0x46b5,0x9663b));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a56_0x20d0e6}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a56_0x162d61(0x180),SUPPORTED_SKILL_TYPES=new Set([a56_0x162d61(0x157),a56_0x162d61(0x14c),a56_0x162d61(0x172)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x26bd59,_0x1977a4={}){const _0x1523bc=a56_0x162d61,_0x284591=resolveSkillDirectoryRoot(_0x26bd59),_0x29eb2c=[],_0x29e2ef=loadRequiredSkillFile(_0x284591,_0x29eb2c),_0x4eccba=_0x29e2ef?parseFrontmatter(_0x29e2ef['content']):{'hasFrontmatter':![]};_0x29e2ef&&validateFrontmatter(_0x29e2ef[_0x1523bc(0x147)],_0x4eccba,_0x29eb2c);validateRuntimeCliReferences(_0x284591,_0x29eb2c);const _0x39bf58=_0x29eb2c[_0x1523bc(0x196)](_0x37ea03=>_0x37ea03[_0x1523bc(0x156)]==='error'),_0x50cfed=_0x29eb2c['filter'](_0x466826=>_0x466826[_0x1523bc(0x156)]===_0x1523bc(0x176));return{'ok':_0x39bf58[_0x1523bc(0x17b)]===0x0,'dir':_0x284591,'type':_0x4eccba['type'],'errors':_0x39bf58,'warnings':_0x50cfed};}function resolveSkillDirectoryRoot(_0xfc79ae){const _0x471f35=a56_0x162d61,_0x3ef1e8=resolve(_0xfc79ae);if(!existsSync(_0x3ef1e8))throw CliErrors['validation'](_0x471f35(0x15b)+_0xfc79ae);const _0x44b337=lstatSync(_0x3ef1e8);if(_0x44b337['isDirectory']())return _0x3ef1e8;if(_0x44b337[_0x471f35(0x197)]()){const _0xa27b70=realpathSync(_0x3ef1e8);if(lstatSync(_0xa27b70)[_0x471f35(0x174)]())return _0xa27b70;}throw CliErrors[_0x471f35(0x168)]('Skill\x20directory\x20not\x20found:\x20'+_0xfc79ae);}export function throwIfSkillValidationFailed(_0x5cafb1,_0x3d143a=![]){const _0x42de03=a56_0x162d61;if(_0x5cafb1['ok'])return;const _0x4995df=_0x5cafb1[_0x42de03(0x143)][_0x42de03(0x192)](_0xfbd374=>{const _0x15de61=_0x42de03,_0x4607ea=_0xfbd374[_0x15de61(0x15f)]?'#'+_0xfbd374['section']:'';return _0xfbd374[_0x15de61(0x156)]['toUpperCase']()+'\x20'+_0xfbd374[_0x15de61(0x144)]+'\x20'+_0xfbd374[_0x15de61(0x18a)]+_0x4607ea+':\x20'+_0xfbd374[_0x15de61(0x175)]+_0x15de61(0x17f)+_0xfbd374[_0x15de61(0x19b)];});throw CliErrors[_0x42de03(0x168)](_0x42de03(0x183)+_0x4995df[_0x42de03(0x190)]('\x0a'),'Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.');}function loadRequiredSkillFile(_0x48097c,_0x36905b){const _0x4c6064=a56_0x162d61,_0x4ffd83=resolve(_0x48097c,SKILL_FILE);if(!existsSync(_0x4ffd83))return _0x36905b[_0x4c6064(0x14f)](issue(_0x4c6064(0x155),_0x4c6064(0x189),SKILL_FILE,_0x4c6064(0x17d),'Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;const _0x442f06=lstatSync(_0x4ffd83);if(_0x442f06['isSymbolicLink']())return _0x36905b[_0x4c6064(0x14f)](issue(_0x4c6064(0x155),_0x4c6064(0x189),SKILL_FILE,_0x4c6064(0x18c),_0x4c6064(0x191))),undefined;if(!_0x442f06[_0x4c6064(0x165)]())return _0x36905b[_0x4c6064(0x14f)](issue(_0x4c6064(0x155),_0x4c6064(0x189),SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.',_0x4c6064(0x149))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x4ffd83,_0x4c6064(0x14e))};}function validateFrontmatter(_0x214c7e,_0x11fa5f,_0x187ac1){const _0x5376b6=a56_0x162d61;if(!_0x11fa5f['hasFrontmatter']){_0x187ac1[_0x5376b6(0x14f)](issue('error',_0x5376b6(0x163),_0x214c7e,_0x5376b6(0x16c),_0x5376b6(0x16e)));return;}!_0x11fa5f[_0x5376b6(0x152)]?.[_0x5376b6(0x15c)]()&&_0x187ac1[_0x5376b6(0x14f)](issue('error',_0x5376b6(0x163),_0x214c7e,'Frontmatter\x20name\x20is\x20missing.',_0x5376b6(0x198))),!_0x11fa5f[_0x5376b6(0x186)]?.[_0x5376b6(0x15c)]()&&_0x187ac1['push'](issue(_0x5376b6(0x176),'display-name-recommended',_0x214c7e,'Frontmatter\x20displayName\x20is\x20missing.',_0x5376b6(0x15d))),!_0x11fa5f[_0x5376b6(0x195)]?.[_0x5376b6(0x15c)]()&&_0x187ac1[_0x5376b6(0x14f)](issue(_0x5376b6(0x176),_0x5376b6(0x151),_0x214c7e,_0x5376b6(0x177),_0x5376b6(0x18b))),!_0x11fa5f[_0x5376b6(0x199)]?.['trim']()&&_0x187ac1[_0x5376b6(0x14f)](issue(_0x5376b6(0x155),_0x5376b6(0x179),_0x214c7e,'Frontmatter\x20description\x20is\x20empty.','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。')),_0x11fa5f[_0x5376b6(0x173)]===!![]&&_0x187ac1['push'](issue('error',_0x5376b6(0x18d),_0x214c7e,_0x5376b6(0x169),_0x5376b6(0x14d))),_0x11fa5f[_0x5376b6(0x162)]?.[_0x5376b6(0x15c)]()&&!SUPPORTED_SKILL_TYPES['has'](_0x11fa5f[_0x5376b6(0x162)])&&_0x187ac1[_0x5376b6(0x14f)](issue(_0x5376b6(0x155),_0x5376b6(0x163),_0x214c7e,_0x5376b6(0x14a),_0x5376b6(0x17a)));}function validateRuntimeCliReferences(_0x57e3f9,_0x3e6276){const _0x25eefe=a56_0x162d61;for(const _0x554e7f of findRabetbaseCliInvocations(_0x57e3f9)){_0x3e6276[_0x25eefe(0x14f)](issue(_0x25eefe(0x176),_0x25eefe(0x194),_0x554e7f[_0x25eefe(0x18a)],_0x25eefe(0x150),_0x25eefe(0x16b),'L'+_0x554e7f[_0x25eefe(0x16a)]));}}function findRabetbaseCliInvocations(_0x20661b){const _0x26f2e0=a56_0x162d61;return scanSkillDirectory(_0x20661b)[_0x26f2e0(0x196)](_0x19f173=>TEXT_SKILL_FILE_PATTERN[_0x26f2e0(0x161)](_0x19f173[_0x26f2e0(0x147)]))[_0x26f2e0(0x167)](_0x10902f=>{const _0x14329c=_0x26f2e0,_0x30d8a0=fileText(_0x10902f);return _0x30d8a0[_0x14329c(0x19a)](/\r?\n/)[_0x14329c(0x192)]((_0x3e3113,_0x1b8807)=>({'file':_0x10902f['path'],'line':_0x1b8807+0x1,'text':_0x3e3113}))['filter'](({text:_0x4e9914})=>isRabetbaseCliInvocation(_0x4e9914))[_0x14329c(0x192)](({file:_0xa1324f,line:_0x2d8a37})=>({'file':_0xa1324f,'line':_0x2d8a37}));});}const RABETBASE_SUBCOMMANDS=[a56_0x162d61(0x148),a56_0x162d61(0x15a),a56_0x162d61(0x170),a56_0x162d61(0x153),'project','app',a56_0x162d61(0x178),a56_0x162d61(0x166),a56_0x162d61(0x145),'kb',a56_0x162d61(0x164),'workspace',a56_0x162d61(0x15e),a56_0x162d61(0x160),a56_0x162d61(0x182),'registry'],RABETBASE_INVOCATION=new RegExp(String['raw']`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS['join']('|')})\b`+String[a56_0x162d61(0x185)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x5a79e0){const _0x427925=a56_0x162d61,_0x3aee7c=_0x5a79e0[_0x427925(0x193)](/\brabetbase\b/i);if(_0x3aee7c<0x0)return![];const _0x1b3894=_0x5a79e0[_0x427925(0x141)](_0x3aee7c)[_0x427925(0x19a)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x427925(0x161)](_0x1b3894);}function parseFrontmatter(_0x3c87bf){const _0xcf26bc=a56_0x162d61,_0x1bc57a=_0x3c87bf['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x1bc57a)return{'hasFrontmatter':![]};const _0x5718b3=_0x1bc57a[0x1]??'',_0x2c655e={'hasFrontmatter':!![]};let _0x53526c;try{_0x53526c=a56_0x20d0e6(_0x5718b3);}catch{return _0x2c655e;}const _0x3c604c=asRecord(_0x53526c);if(!_0x3c604c)return _0x2c655e;_0x2c655e['name']=scalarToString(_0x3c604c[_0xcf26bc(0x152)]),_0x2c655e[_0xcf26bc(0x186)]=scalarToString(_0x3c604c['displayName']),_0x2c655e[_0xcf26bc(0x199)]=scalarToString(_0x3c604c['description']),_0x2c655e[_0xcf26bc(0x195)]=scalarToString(_0x3c604c[_0xcf26bc(0x195)]);const _0x598a0a=asRecord(_0x3c604c['metadata']);return _0x598a0a&&(_0x2c655e[_0xcf26bc(0x162)]=scalarToString(_0x598a0a['type']),_0x2c655e['internal']=scalarToBoolean(_0x598a0a[_0xcf26bc(0x173)])),_0x2c655e;}function asRecord(_0x239bae){const _0x5df260=a56_0x162d61;if(_0x239bae&&typeof _0x239bae===_0x5df260(0x181)&&!Array[_0x5df260(0x171)](_0x239bae))return _0x239bae;return undefined;}function scalarToString(_0x42e2a0){const _0x78a84=a56_0x162d61;if(typeof _0x42e2a0==='string')return _0x42e2a0[_0x78a84(0x15c)]();if(typeof _0x42e2a0===_0x78a84(0x188)||typeof _0x42e2a0==='boolean')return String(_0x42e2a0);return undefined;}function scalarToBoolean(_0x4ce181){const _0x31301b=a56_0x162d61;if(typeof _0x4ce181===_0x31301b(0x187))return _0x4ce181;if(typeof _0x4ce181===_0x31301b(0x158))return cleanBoolean(_0x4ce181);return undefined;}function cleanBoolean(_0x2b89e8){const _0x33b6ce=a56_0x162d61,_0x274bc8=_0x2b89e8['trim']()[_0x33b6ce(0x146)]();if(_0x274bc8===_0x33b6ce(0x18e))return!![];if(_0x274bc8===_0x33b6ce(0x154))return![];return undefined;}function issue(_0x1bcf51,_0x3aca27,_0x361ae5,_0x3b5dee,_0x492e1d,_0x530d1e){return{'level':_0x1bcf51,'ruleId':_0x3aca27,'file':_0x361ae5,'section':_0x530d1e,'message':_0x3b5dee,'suggestion':_0x492e1d};}function a56_0x5977(_0x5688c5,_0xed021d){_0x5688c5=_0x5688c5-0x141;const _0x46b517=a56_0x46b5();let _0x597780=_0x46b517[_0x5688c5];return _0x597780;}function a56_0x46b5(){const _0x123618=['If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','SKILL.md\x20must\x20start\x20with\x20frontmatter.','48OLyShF','Add\x20frontmatter\x20with\x20name\x20and\x20description.','15IvSJhQ','bff','isArray','trainer','internal','isDirectory','message','warning','Frontmatter\x20example\x20is\x20missing.','schema','description-required','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.','length','655003CtGBeK','Missing\x20SKILL.md.','1457226MHlnSk','\x20Fix:\x20','SKILL.md','object','logs','Skill\x20validation\x20failed:\x0a','4591611gbntbE','raw','displayName','boolean','number','structure-complete','file','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','internal-skill','true','592496VPxQRe','join','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','map','search','rabetbase-cli-reference','example','filter','isSymbolicLink','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','description','split','suggestion','slice','1523072tZpFZg','errors','ruleId','artifact','toLowerCase','path','dataset','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','1624200HXbGAG','read','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','utf8','push','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','example-recommended','name','page','false','error','level','write','string','12383mpbuQL','sql','Skill\x20directory\x20not\x20found:\x20','trim','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','data','section','auth','test','type','frontmatter-required','config','isFile','service','flatMap','validation','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','line'];a56_0x46b5=function(){return _0x123618;};return a56_0x46b5();}
1
+ function a56_0x351a(){const _0x20f7e7=['type','match','2846124bHuhAo','dataset','isDirectory','example','34NTpaVg','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','isFile','number','validation','raw','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','Skill\x20validation\x20failed:\x0a','level','schema','display-name-recommended','displayName','\x20Fix:\x20','toLowerCase','service','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','Frontmatter\x20example\x20is\x20missing.','section','file','description','message','metadata','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','internal','read','search','boolean','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','push','path','structure-complete','Add\x20frontmatter\x20with\x20name\x20and\x20description.','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','308942cOXJPc','config','flatMap','split','map','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','description-required','warning','join','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','78063sjXUVf','errors','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','trim','project','1780980xSDlLW','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','name','artifact','sql','slice','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','string','Frontmatter\x20description\x20is\x20empty.','page','isArray','1264949mLisOn','data','4VyTEFY','Frontmatter\x20name\x20is\x20missing.','content','object','isSymbolicLink','trainer','Skill\x20directory\x20not\x20found:\x20','1191605jKOoIv','27432RZSTFn','hasFrontmatter','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','toUpperCase','ruleId','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.','has','SKILL.md\x20must\x20start\x20with\x20frontmatter.','example-recommended','auth','error','filter','frontmatter-required','true','9IzEQwD','false','workspace','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.'];a56_0x351a=function(){return _0x20f7e7;};return a56_0x351a();}const a56_0x53906c=a56_0x1adf;(function(_0x22d22f,_0x123cda){const _0x1f75a2=a56_0x1adf,_0x3f3439=_0x22d22f();while(!![]){try{const _0x288863=-parseInt(_0x1f75a2(0x177))/0x1+-parseInt(_0x1f75a2(0x1b3))/0x2*(-parseInt(_0x1f75a2(0x181))/0x3)+-parseInt(_0x1f75a2(0x193))/0x4*(-parseInt(_0x1f75a2(0x19a))/0x5)+-parseInt(_0x1f75a2(0x1af))/0x6+parseInt(_0x1f75a2(0x191))/0x7+-parseInt(_0x1f75a2(0x19b))/0x8+-parseInt(_0x1f75a2(0x1a9))/0x9*(-parseInt(_0x1f75a2(0x186))/0xa);if(_0x288863===_0x123cda)break;else _0x3f3439['push'](_0x3f3439['shift']());}catch(_0x4341d3){_0x3f3439['push'](_0x3f3439['shift']());}}}(a56_0x351a,0x3db56));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';function a56_0x1adf(_0x545006,_0x431367){_0x545006=_0x545006-0x161;const _0x351a86=a56_0x351a();let _0x1adf32=_0x351a86[_0x545006];return _0x1adf32;}import{parse as a56_0x3fe74c}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE='SKILL.md',SUPPORTED_SKILL_TYPES=new Set(['write',a56_0x53906c(0x16e),a56_0x53906c(0x198)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x44e135,_0x2fbd3b={}){const _0x5b04f0=a56_0x53906c,_0x18f21e=resolveSkillDirectoryRoot(_0x44e135),_0x3adc71=[],_0xf7b020=loadRequiredSkillFile(_0x18f21e,_0x3adc71),_0x1b338b=_0xf7b020?parseFrontmatter(_0xf7b020[_0x5b04f0(0x195)]):{'hasFrontmatter':![]};_0xf7b020&&validateFrontmatter(_0xf7b020[_0x5b04f0(0x173)],_0x1b338b,_0x3adc71);validateRuntimeCliReferences(_0x18f21e,_0x3adc71);const _0x133675=_0x3adc71['filter'](_0x2d3215=>_0x2d3215['level']===_0x5b04f0(0x1a5)),_0x23467a=_0x3adc71['filter'](_0x30baa9=>_0x30baa9[_0x5b04f0(0x1bb)]===_0x5b04f0(0x17e));return{'ok':_0x133675['length']===0x0,'dir':_0x18f21e,'type':_0x1b338b[_0x5b04f0(0x1ad)],'errors':_0x133675,'warnings':_0x23467a};}function resolveSkillDirectoryRoot(_0x2241b5){const _0x43e6ca=a56_0x53906c,_0x2e7eac=resolve(_0x2241b5);if(!existsSync(_0x2e7eac))throw CliErrors[_0x43e6ca(0x1b7)](_0x43e6ca(0x199)+_0x2241b5);const _0x1aa753=lstatSync(_0x2e7eac);if(_0x1aa753[_0x43e6ca(0x1b1)]())return _0x2e7eac;if(_0x1aa753[_0x43e6ca(0x197)]()){const _0x390834=realpathSync(_0x2e7eac);if(lstatSync(_0x390834)[_0x43e6ca(0x1b1)]())return _0x390834;}throw CliErrors[_0x43e6ca(0x1b7)](_0x43e6ca(0x199)+_0x2241b5);}export function throwIfSkillValidationFailed(_0x12e7c7,_0x59186a=![]){const _0x49b4c7=a56_0x53906c;if(_0x12e7c7['ok'])return;const _0x38597b=_0x12e7c7[_0x49b4c7(0x182)][_0x49b4c7(0x17b)](_0x23beff=>{const _0x568211=_0x49b4c7,_0x4fe537=_0x23beff[_0x568211(0x167)]?'#'+_0x23beff['section']:'';return _0x23beff[_0x568211(0x1bb)][_0x568211(0x19e)]()+'\x20'+_0x23beff[_0x568211(0x19f)]+'\x20'+_0x23beff[_0x568211(0x168)]+_0x4fe537+':\x20'+_0x23beff[_0x568211(0x16a)]+_0x568211(0x162)+_0x23beff['suggestion'];});throw CliErrors[_0x49b4c7(0x1b7)](_0x49b4c7(0x1ba)+_0x38597b[_0x49b4c7(0x17f)]('\x0a'),_0x49b4c7(0x1ac));}function loadRequiredSkillFile(_0x463e91,_0x412c80){const _0x55b4da=a56_0x53906c,_0x3ed35b=resolve(_0x463e91,SKILL_FILE);if(!existsSync(_0x3ed35b))return _0x412c80[_0x55b4da(0x172)](issue(_0x55b4da(0x1a5),_0x55b4da(0x174),SKILL_FILE,'Missing\x20SKILL.md.',_0x55b4da(0x176))),undefined;const _0x426f8e=lstatSync(_0x3ed35b);if(_0x426f8e['isSymbolicLink']())return _0x412c80['push'](issue(_0x55b4da(0x1a5),'structure-complete',SKILL_FILE,_0x55b4da(0x171),_0x55b4da(0x19d))),undefined;if(!_0x426f8e[_0x55b4da(0x1b5)]())return _0x412c80['push'](issue('error',_0x55b4da(0x174),SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.',_0x55b4da(0x165))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x3ed35b,'utf8')};}function validateFrontmatter(_0x37ee37,_0x4023f5,_0x5c21a8){const _0x2be287=a56_0x53906c;if(!_0x4023f5[_0x2be287(0x19c)]){_0x5c21a8[_0x2be287(0x172)](issue(_0x2be287(0x1a5),_0x2be287(0x1a7),_0x37ee37,_0x2be287(0x1a2),_0x2be287(0x175)));return;}!_0x4023f5['name']?.['trim']()&&_0x5c21a8['push'](issue('error','frontmatter-required',_0x37ee37,_0x2be287(0x194),_0x2be287(0x187))),!_0x4023f5[_0x2be287(0x161)]?.[_0x2be287(0x184)]()&&_0x5c21a8[_0x2be287(0x172)](issue('warning',_0x2be287(0x1bd),_0x37ee37,'Frontmatter\x20displayName\x20is\x20missing.',_0x2be287(0x1b4))),!_0x4023f5['example']?.[_0x2be287(0x184)]()&&_0x5c21a8[_0x2be287(0x172)](issue(_0x2be287(0x17e),_0x2be287(0x1a3),_0x37ee37,_0x2be287(0x166),_0x2be287(0x16c))),!_0x4023f5[_0x2be287(0x169)]?.['trim']()&&_0x5c21a8[_0x2be287(0x172)](issue(_0x2be287(0x1a5),_0x2be287(0x17d),_0x37ee37,_0x2be287(0x18e),_0x2be287(0x18c))),_0x4023f5[_0x2be287(0x16d)]===!![]&&_0x5c21a8[_0x2be287(0x172)](issue('error','internal-skill',_0x37ee37,_0x2be287(0x1b9),'Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.')),_0x4023f5[_0x2be287(0x1ad)]?.[_0x2be287(0x184)]()&&!SUPPORTED_SKILL_TYPES[_0x2be287(0x1a1)](_0x4023f5[_0x2be287(0x1ad)])&&_0x5c21a8['push'](issue(_0x2be287(0x1a5),_0x2be287(0x1a7),_0x37ee37,_0x2be287(0x17c),_0x2be287(0x1a0)));}function validateRuntimeCliReferences(_0x43958b,_0x60762e){const _0x260d50=a56_0x53906c;for(const _0x6ccb69 of findRabetbaseCliInvocations(_0x43958b)){_0x60762e[_0x260d50(0x172)](issue('warning','rabetbase-cli-reference',_0x6ccb69[_0x260d50(0x168)],_0x260d50(0x180),_0x260d50(0x183),'L'+_0x6ccb69['line']));}}function findRabetbaseCliInvocations(_0x5b207e){const _0x1fcb86=a56_0x53906c;return scanSkillDirectory(_0x5b207e)[_0x1fcb86(0x1a6)](_0x1cd7a8=>TEXT_SKILL_FILE_PATTERN['test'](_0x1cd7a8['path']))[_0x1fcb86(0x179)](_0x35ecf9=>{const _0x432144=_0x1fcb86,_0x3f9c29=fileText(_0x35ecf9);return _0x3f9c29[_0x432144(0x17a)](/\r?\n/)[_0x432144(0x17b)]((_0x15f07a,_0x1cf9fd)=>({'file':_0x35ecf9['path'],'line':_0x1cf9fd+0x1,'text':_0x15f07a}))[_0x432144(0x1a6)](({text:_0x52a899})=>isRabetbaseCliInvocation(_0x52a899))[_0x432144(0x17b)](({file:_0x4561e4,line:_0xe0e0a8})=>({'file':_0x4561e4,'line':_0xe0e0a8}));});}const RABETBASE_SUBCOMMANDS=[a56_0x53906c(0x1b0),a56_0x53906c(0x18a),'bff',a56_0x53906c(0x18f),a56_0x53906c(0x185),'app',a56_0x53906c(0x1bc),a56_0x53906c(0x164),a56_0x53906c(0x189),'kb',a56_0x53906c(0x178),a56_0x53906c(0x1ab),a56_0x53906c(0x192),a56_0x53906c(0x1a4),'logs','registry'],RABETBASE_INVOCATION=new RegExp(String[a56_0x53906c(0x1b8)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS['join']('|')})\b`+String[a56_0x53906c(0x1b8)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x18f188){const _0x57a3bc=a56_0x53906c,_0x57a8e9=_0x18f188[_0x57a3bc(0x16f)](/\brabetbase\b/i);if(_0x57a8e9<0x0)return![];const _0xe54253=_0x18f188[_0x57a3bc(0x18b)](_0x57a8e9)[_0x57a3bc(0x17a)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION['test'](_0xe54253);}function parseFrontmatter(_0x571e33){const _0x358be0=a56_0x53906c,_0x11eb26=_0x571e33[_0x358be0(0x1ae)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x11eb26)return{'hasFrontmatter':![]};const _0x1fe7ae=_0x11eb26[0x1]??'',_0xf88614={'hasFrontmatter':!![]};let _0x1524ab;try{_0x1524ab=a56_0x3fe74c(_0x1fe7ae);}catch{return _0xf88614;}const _0x49bf54=asRecord(_0x1524ab);if(!_0x49bf54)return _0xf88614;_0xf88614[_0x358be0(0x188)]=scalarToString(_0x49bf54[_0x358be0(0x188)]),_0xf88614[_0x358be0(0x161)]=scalarToString(_0x49bf54['displayName']),_0xf88614['description']=scalarToString(_0x49bf54[_0x358be0(0x169)]),_0xf88614[_0x358be0(0x1b2)]=scalarToString(_0x49bf54[_0x358be0(0x1b2)]);const _0x5bef30=asRecord(_0x49bf54[_0x358be0(0x16b)]);return _0x5bef30&&(_0xf88614[_0x358be0(0x1ad)]=scalarToString(_0x5bef30[_0x358be0(0x1ad)]),_0xf88614[_0x358be0(0x16d)]=scalarToBoolean(_0x5bef30['internal'])),_0xf88614;}function asRecord(_0xb5a855){const _0x1389df=a56_0x53906c;if(_0xb5a855&&typeof _0xb5a855===_0x1389df(0x196)&&!Array[_0x1389df(0x190)](_0xb5a855))return _0xb5a855;return undefined;}function scalarToString(_0x2319fe){const _0xada565=a56_0x53906c;if(typeof _0x2319fe==='string')return _0x2319fe[_0xada565(0x184)]();if(typeof _0x2319fe===_0xada565(0x1b6)||typeof _0x2319fe===_0xada565(0x170))return String(_0x2319fe);return undefined;}function scalarToBoolean(_0x317838){const _0x499400=a56_0x53906c;if(typeof _0x317838===_0x499400(0x170))return _0x317838;if(typeof _0x317838===_0x499400(0x18d))return cleanBoolean(_0x317838);return undefined;}function cleanBoolean(_0x102205){const _0x22b65b=a56_0x53906c,_0xb9866d=_0x102205[_0x22b65b(0x184)]()[_0x22b65b(0x163)]();if(_0xb9866d===_0x22b65b(0x1a8))return!![];if(_0xb9866d===_0x22b65b(0x1aa))return![];return undefined;}function issue(_0xb1b92,_0x47384a,_0x4cf0d5,_0x411c65,_0x2cba8f,_0x447773){return{'level':_0xb1b92,'ruleId':_0x47384a,'file':_0x4cf0d5,'section':_0x447773,'message':_0x411c65,'suggestion':_0x2cba8f};}
@@ -1 +1 @@
1
- const a57_0x5b143e=a57_0x207a;function a57_0x207a(_0x53c579,_0x502386){_0x53c579=_0x53c579-0x15b;const _0x21217b=a57_0x2121();let _0x207a39=_0x21217b[_0x53c579];return _0x207a39;}(function(_0x15db61,_0x5ae277){const _0x4e7697=a57_0x207a,_0x3816f0=_0x15db61();while(!![]){try{const _0x198476=parseInt(_0x4e7697(0x172))/0x1*(parseInt(_0x4e7697(0x16b))/0x2)+-parseInt(_0x4e7697(0x15d))/0x3+parseInt(_0x4e7697(0x15b))/0x4+parseInt(_0x4e7697(0x167))/0x5+-parseInt(_0x4e7697(0x164))/0x6*(parseInt(_0x4e7697(0x165))/0x7)+parseInt(_0x4e7697(0x16a))/0x8*(parseInt(_0x4e7697(0x16c))/0x9)+-parseInt(_0x4e7697(0x16e))/0xa*(-parseInt(_0x4e7697(0x160))/0xb);if(_0x198476===_0x5ae277)break;else _0x3816f0['push'](_0x3816f0['shift']());}catch(_0x23b980){_0x3816f0['push'](_0x3816f0['shift']());}}}(a57_0x2121,0x65b4e));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a57_0x5b143e(0x166),'command':a57_0x5b143e(0x171),'description':a57_0x5b143e(0x168),'risk':a57_0x5b143e(0x15f),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x29a397){const _0x2a4ef4=a57_0x5b143e,_0x2ac80e=await getSqlQueryInfo(_0x29a397[_0x2a4ef4(0x161)],_0x29a397[_0x2a4ef4(0x162)](_0x2a4ef4(0x170))),_0x50afe6=_0x29a397[_0x2a4ef4(0x15c)]('verbose');if(_0x50afe6)return{'ok':!![],'data':_0x2ac80e};const _0x264e45=_0x2ac80e[_0x2a4ef4(0x169)]?await getDbName(_0x29a397[_0x2a4ef4(0x161)],_0x2ac80e[_0x2a4ef4(0x169)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x2ac80e[_0x2a4ef4(0x163)],'sqlName':_0x2ac80e[_0x2a4ef4(0x16d)],'db':_0x264e45?_0x264e45+'\x20('+_0x2ac80e[_0x2a4ef4(0x169)]+')':_0x2ac80e[_0x2a4ef4(0x169)]??'','description':_0x2ac80e[_0x2a4ef4(0x15e)]??'','sqlContent':_0x2ac80e[_0x2a4ef4(0x16f)]??''}};}};function a57_0x2121(){const _0x2eb4d7=['1080081XWAMgE','sqlName','438690rKRDxM','sqlContent','sqlcode','detail','92375LeENEk','929980bYowut','bool','331239oyrddJ','description','read','77Wqfenx','appCode','str','sqlCode','64374oshrIR','413bTilHA','sql','192760NEtMkK','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','dbId','8nzfpEN','10sEyjsn'];a57_0x2121=function(){return _0x2eb4d7;};return a57_0x2121();}
1
+ const a57_0x4a510f=a57_0x37d1;(function(_0x584f48,_0x21d77e){const _0x222ea1=a57_0x37d1,_0x485ceb=_0x584f48();while(!![]){try{const _0x37ef44=-parseInt(_0x222ea1(0x1ae))/0x1+parseInt(_0x222ea1(0x1a9))/0x2*(-parseInt(_0x222ea1(0x1b4))/0x3)+-parseInt(_0x222ea1(0x1b7))/0x4*(parseInt(_0x222ea1(0x1b2))/0x5)+-parseInt(_0x222ea1(0x1aa))/0x6+-parseInt(_0x222ea1(0x1be))/0x7*(parseInt(_0x222ea1(0x1b9))/0x8)+-parseInt(_0x222ea1(0x1b6))/0x9*(-parseInt(_0x222ea1(0x1b5))/0xa)+parseInt(_0x222ea1(0x1ac))/0xb*(parseInt(_0x222ea1(0x1b0))/0xc);if(_0x37ef44===_0x21d77e)break;else _0x485ceb['push'](_0x485ceb['shift']());}catch(_0x4dfdc1){_0x485ceb['push'](_0x485ceb['shift']());}}}(a57_0x532a,0xe460e));function a57_0x37d1(_0x2d84f4,_0xd1cfbd){_0x2d84f4=_0x2d84f4-0x1a9;const _0x532a9f=a57_0x532a();let _0x37d1de=_0x532a9f[_0x2d84f4];return _0x37d1de;}function a57_0x532a(){const _0x23cbf5=['sqlContent','appCode','detail','980175ddbNOA','sql','dbId','2DaqPXt','7433784ZFeoTq','bool','11638SlkYDK','str','1314000wnlRbX','verbose','65424AfOOdk','description','8275935pXGGBA','sqlCode','4146018QSxfgW','10zXSRec','15637986ActtPl','4bGOedT','sqlName','56BNHlEU','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode'];a57_0x532a=function(){return _0x23cbf5;};return a57_0x532a();}import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a57_0x4a510f(0x1bf),'command':a57_0x4a510f(0x1bd),'description':a57_0x4a510f(0x1ba),'risk':'read','flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0xfaf7b){const _0x3e6828=a57_0x4a510f,_0x36ba30=await getSqlQueryInfo(_0xfaf7b[_0x3e6828(0x1bc)],_0xfaf7b[_0x3e6828(0x1ad)]('sqlcode')),_0x1b063b=_0xfaf7b[_0x3e6828(0x1ab)](_0x3e6828(0x1af));if(_0x1b063b)return{'ok':!![],'data':_0x36ba30};const _0x474ba1=_0x36ba30[_0x3e6828(0x1c0)]?await getDbName(_0xfaf7b[_0x3e6828(0x1bc)],_0x36ba30[_0x3e6828(0x1c0)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x36ba30[_0x3e6828(0x1b3)],'sqlName':_0x36ba30[_0x3e6828(0x1b8)],'db':_0x474ba1?_0x474ba1+'\x20('+_0x36ba30['dbId']+')':_0x36ba30['dbId']??'','description':_0x36ba30[_0x3e6828(0x1b1)]??'','sqlContent':_0x36ba30[_0x3e6828(0x1bb)]??''}};}};
@@ -1 +1 @@
1
- function a58_0xc958(){const _0x152b86=['Returned\x20','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','8CgTlPl','378ppPAJS','4380080HYBjlV','22315NauMEQ','\x20row(s)\x20in\x20','SQL\x20execution\x20failed','params','3231291zSvUnY','length','sql','254600cnyCTQ','623367bDUWzO','isArray','execResult','503365sqzpZH','str','exec','3542958YiWbpm','now','execSuccess','read'];a58_0xc958=function(){return _0x152b86;};return a58_0xc958();}const a58_0x12b05a=a58_0x370d;(function(_0x5be009,_0x26cbe6){const _0x55c80e=a58_0x370d,_0x207dce=_0x5be009();while(!![]){try{const _0x16819f=-parseInt(_0x55c80e(0xa8))/0x1+-parseInt(_0x55c80e(0xa4))/0x2+-parseInt(_0x55c80e(0xa5))/0x3*(-parseInt(_0x55c80e(0xb1))/0x4)+parseInt(_0x55c80e(0xb4))/0x5*(parseInt(_0x55c80e(0xb2))/0x6)+parseInt(_0x55c80e(0xa1))/0x7+-parseInt(_0x55c80e(0xb3))/0x8+parseInt(_0x55c80e(0xab))/0x9;if(_0x16819f===_0x26cbe6)break;else _0x207dce['push'](_0x207dce['shift']());}catch(_0x1e1221){_0x207dce['push'](_0x207dce['shift']());}}}(a58_0xc958,0x5b457));import{executeSdkSql}from'../../core/sdk-client.js';function a58_0x370d(_0x1491db,_0x4925e5){_0x1491db=_0x1491db-0x9f;const _0xc95814=a58_0xc958();let _0x370d19=_0xc95814[_0x1491db];return _0x370d19;}import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a58_0x12b05a(0xa3),'command':a58_0x12b05a(0xaa),'description':a58_0x12b05a(0xb0),'risk':a58_0x12b05a(0xae),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x2870ec){const _0x56857e=a58_0x12b05a,_0x3bc98e=parseJsonParams(_0x2870ec[_0x56857e(0xa9)](_0x56857e(0xa0))),_0x480cb0=Date[_0x56857e(0xac)](),_0x1e57bf=await executeSdkSql(_0x2870ec['str']('sqlcode'),_0x3bc98e),_0x39bd2b=Date[_0x56857e(0xac)]()-_0x480cb0,_0x8a2e13=_0x1e57bf?.[_0x56857e(0xa7)]??_0x1e57bf,_0x2be749=_0x1e57bf?.[_0x56857e(0xad)]??!![];if(!_0x2be749)return{'ok':![],'data':{'error':_0x1e57bf?.['execError']||_0x56857e(0x9f),'elapsed':_0x39bd2b},'message':_0x56857e(0x9f)};const _0x14c140=Array[_0x56857e(0xa6)](_0x8a2e13)?_0x8a2e13:[];return{'ok':!![],'data':{'rows':_0x14c140,'rowCount':_0x14c140[_0x56857e(0xa2)],'elapsed':_0x39bd2b},'message':_0x56857e(0xaf)+_0x14c140[_0x56857e(0xa2)]+_0x56857e(0xb5)+_0x39bd2b+'ms'};}};
1
+ function a58_0x2b2e(){const _0x2a0b66=['execSuccess','2490201SOFADj','14833700LqmotQ','6217013dLrSNX','5359542VMloDg','str','now','8BenXrg','params','23757ElpwqX','18jkaBBF','exec','execError','read','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','length','104lLdqwK','5agOddh','\x20row(s)\x20in\x20','Returned\x20','sqlcode','execResult','42388VtzUYL','3263769EspKpe'];a58_0x2b2e=function(){return _0x2a0b66;};return a58_0x2b2e();}const a58_0x34c3f8=a58_0x4d54;(function(_0x2a019b,_0x3d1b07){const _0x377996=a58_0x4d54,_0x3bfdb1=_0x2a019b();while(!![]){try{const _0x4a1a30=parseInt(_0x377996(0x196))/0x1*(parseInt(_0x377996(0x1a2))/0x2)+-parseInt(_0x377996(0x195))/0x3*(parseInt(_0x377996(0x19c))/0x4)+parseInt(_0x377996(0x19d))/0x5*(parseInt(_0x377996(0x190))/0x6)+parseInt(_0x377996(0x1a5))/0x7+-parseInt(_0x377996(0x193))/0x8*(-parseInt(_0x377996(0x1a3))/0x9)+-parseInt(_0x377996(0x1a6))/0xa+parseInt(_0x377996(0x18f))/0xb;if(_0x4a1a30===_0x3d1b07)break;else _0x3bfdb1['push'](_0x3bfdb1['shift']());}catch(_0x1d81b7){_0x3bfdb1['push'](_0x3bfdb1['shift']());}}}(a58_0x2b2e,0xd42bc));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a58_0x4d54(_0x1ebced,_0x1d5d70){_0x1ebced=_0x1ebced-0x18f;const _0x2b2ed9=a58_0x2b2e();let _0x4d541b=_0x2b2ed9[_0x1ebced];return _0x4d541b;}import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':'sql','command':a58_0x34c3f8(0x197),'description':a58_0x34c3f8(0x19a),'risk':a58_0x34c3f8(0x199),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x1b9c60){const _0x23ddaa=a58_0x34c3f8,_0x57df1c=parseJsonParams(_0x1b9c60[_0x23ddaa(0x191)](_0x23ddaa(0x194))),_0x37bebc=Date[_0x23ddaa(0x192)](),_0x1c6e94=await executeSdkSql(_0x1b9c60[_0x23ddaa(0x191)](_0x23ddaa(0x1a0)),_0x57df1c),_0x133dae=Date[_0x23ddaa(0x192)]()-_0x37bebc,_0x2811c1=_0x1c6e94?.[_0x23ddaa(0x1a1)]??_0x1c6e94,_0x2d7cb6=_0x1c6e94?.[_0x23ddaa(0x1a4)]??!![];if(!_0x2d7cb6)return{'ok':![],'data':{'error':_0x1c6e94?.[_0x23ddaa(0x198)]||'SQL\x20execution\x20failed','elapsed':_0x133dae},'message':'SQL\x20execution\x20failed'};const _0x2c72db=Array['isArray'](_0x2811c1)?_0x2811c1:[];return{'ok':!![],'data':{'rows':_0x2c72db,'rowCount':_0x2c72db[_0x23ddaa(0x19b)],'elapsed':_0x133dae},'message':_0x23ddaa(0x19f)+_0x2c72db['length']+_0x23ddaa(0x19e)+_0x133dae+'ms'};}};
@@ -1 +1 @@
1
- function a59_0xac11(){const _0x1f8e64=['2ppwlCp','8921450GbLxym','1295HoDPwd','88HCqtOH','4289632VBUEww','9mHghPu','581273uSzfco','1215141SUIPnb','29562PcvfFs','230910vmAMnN','834108LNTOLj'];a59_0xac11=function(){return _0x1f8e64;};return a59_0xac11();}(function(_0x17e174,_0x498f1f){const _0x2b89b1=a59_0x5dd8,_0x1f785b=_0x17e174();while(!![]){try{const _0x19e694=-parseInt(_0x2b89b1(0x146))/0x1*(-parseInt(_0x2b89b1(0x14a))/0x2)+parseInt(_0x2b89b1(0x148))/0x3+-parseInt(_0x2b89b1(0x143))/0x4+-parseInt(_0x2b89b1(0x141))/0x5*(parseInt(_0x2b89b1(0x147))/0x6)+parseInt(_0x2b89b1(0x145))/0x7*(parseInt(_0x2b89b1(0x142))/0x8)+-parseInt(_0x2b89b1(0x144))/0x9*(-parseInt(_0x2b89b1(0x140))/0xa)+parseInt(_0x2b89b1(0x149))/0xb;if(_0x19e694===_0x498f1f)break;else _0x1f785b['push'](_0x1f785b['shift']());}catch(_0x368382){_0x1f785b['push'](_0x1f785b['shift']());}}}(a59_0xac11,0xc96b4));function a59_0x5dd8(_0x17511c,_0x5623df){_0x17511c=_0x17511c-0x140;const _0xac11e1=a59_0xac11();let _0x5dd8d5=_0xac11e1[_0x17511c];return _0x5dd8d5;}import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
1
+ (function(_0x2887b1,_0x5c1119){const _0x82383c=a59_0x4e7b,_0x4b25d3=_0x2887b1();while(!![]){try{const _0x3153d2=parseInt(_0x82383c(0x1f9))/0x1+-parseInt(_0x82383c(0x1f4))/0x2+-parseInt(_0x82383c(0x1f5))/0x3+parseInt(_0x82383c(0x1f6))/0x4+-parseInt(_0x82383c(0x1f8))/0x5+-parseInt(_0x82383c(0x1f7))/0x6+-parseInt(_0x82383c(0x1fa))/0x7*(-parseInt(_0x82383c(0x1fb))/0x8);if(_0x3153d2===_0x5c1119)break;else _0x4b25d3['push'](_0x4b25d3['shift']());}catch(_0x2b90ad){_0x4b25d3['push'](_0x4b25d3['shift']());}}}(a59_0x126d,0x8e369));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a59_0x4e7b(_0x4bdd58,_0x1f6410){_0x4bdd58=_0x4bdd58-0x1f4;const _0x126d44=a59_0x126d();let _0x4e7bd2=_0x126d44[_0x4bdd58];return _0x4e7bd2;}function a59_0x126d(){const _0x461ada=['10303192qIxDzM','1787100YVVxJG','612117CEWeQa','1556768vbMoaD','1419348PqwjMZ','3955080AbGQwi','1030577bibKmN','7ostTrZ'];a59_0x126d=function(){return _0x461ada;};return a59_0x126d();}export const sqlDefinitions=[sqlDetail,sqlExec];
@@ -1 +1 @@
1
- const a60_0x2d5628=a60_0x21fc;(function(_0x3a50a5,_0x734c11){const _0x5d3cc5=a60_0x21fc,_0x203f3e=_0x3a50a5();while(!![]){try{const _0x48640d=parseInt(_0x5d3cc5(0x161))/0x1+-parseInt(_0x5d3cc5(0x15d))/0x2+parseInt(_0x5d3cc5(0x147))/0x3*(-parseInt(_0x5d3cc5(0x169))/0x4)+parseInt(_0x5d3cc5(0x157))/0x5*(-parseInt(_0x5d3cc5(0x15e))/0x6)+parseInt(_0x5d3cc5(0x190))/0x7*(parseInt(_0x5d3cc5(0x14c))/0x8)+-parseInt(_0x5d3cc5(0x177))/0x9*(parseInt(_0x5d3cc5(0x184))/0xa)+parseInt(_0x5d3cc5(0x16c))/0xb;if(_0x48640d===_0x734c11)break;else _0x203f3e['push'](_0x203f3e['shift']());}catch(_0x2381a1){_0x203f3e['push'](_0x203f3e['shift']());}}}(a60_0x5861,0x42f38));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';function a60_0x5861(){const _0xb2ce55=['cwd','inherit','8209388rxPbiw','write','join','update','patch','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','exit\x20','latest','warn','Install\x20a\x20specific\x20CLI\x20version','stdout','3429AuBPju','Version\x20comparison\x20failed.','filter','nonInteractive','Checking\x20npm\x20dist-tags...','stderr','pipe','flag','skipped','timeout','Already\x20up\x20to\x20date\x20(v','beta','log','14390QMBgwz','Update\x20','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','entries','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','fromEntries','error','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','no-skills','Current\x20version:\x20','map','args','112525TCuiCj','trim','Unable\x20to\x20resolve\x20','Already\x20on\x20requested\x20version\x20(v','skills','major','\x20CLI\x20from\x20npm','str','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','toString','version','6nhQnup','length','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','\x20->\x20','string','152ChNIhm','/dist-tags','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','object','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','json','\x20version\x20from\x20npm.','match','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','/-/package/','validation','5CcFJhF','status','run','boolean','bool','Updated\x20to\x20v','209742ZduSJz','2900754rEkhDD','=1).','npm','399642HRLjSL','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','unknown','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','install','message','prerelease','source','81108TTMOco'];a60_0x5861=function(){return _0xb2ce55;};return a60_0x5861();}import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':a60_0x2d5628(0x173),'type':a60_0x2d5628(0x15a),'description':a60_0x2d5628(0x186),'default':![]},{'name':a60_0x2d5628(0x182),'type':a60_0x2d5628(0x15a),'description':a60_0x2d5628(0x188),'default':![]},{'name':a60_0x2d5628(0x146),'type':a60_0x2d5628(0x14b),'description':a60_0x2d5628(0x175)},{'name':a60_0x2d5628(0x18c),'type':a60_0x2d5628(0x15a),'description':'Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','default':![]},{'name':a60_0x2d5628(0x194),'type':a60_0x2d5628(0x15a),'description':'Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','default':!![],'hidden':!![]}];function parseSemver(_0x4fc5c3){const _0x3f4ce4=a60_0x2d5628,_0x23a5d1=_0x4fc5c3[_0x3f4ce4(0x191)]()[_0x3f4ce4(0x153)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x23a5d1)return null;return{'major':Number(_0x23a5d1[0x1]),'minor':Number(_0x23a5d1[0x2]),'patch':Number(_0x23a5d1[0x3]),'prerelease':_0x23a5d1[0x4]};}function compareSemver(_0x178ced,_0x221435){const _0x244b33=a60_0x2d5628,_0x5bb313=parseSemver(_0x178ced),_0x41aa0d=parseSemver(_0x221435);if(!_0x5bb313||!_0x41aa0d)throw CliErrors['validation'](_0x244b33(0x178),_0x244b33(0x14e));for(const _0x5d5fce of[_0x244b33(0x195),'minor',_0x244b33(0x170)]){if(_0x5bb313[_0x5d5fce]<_0x41aa0d[_0x5d5fce])return-0x1;if(_0x5bb313[_0x5d5fce]>_0x41aa0d[_0x5d5fce])return 0x1;}if(!_0x5bb313[_0x244b33(0x167)]&&!_0x41aa0d['prerelease'])return 0x0;if(!_0x5bb313[_0x244b33(0x167)])return 0x1;if(!_0x41aa0d[_0x244b33(0x167)])return-0x1;if(_0x5bb313['prerelease']===_0x41aa0d[_0x244b33(0x167)])return 0x0;return _0x5bb313[_0x244b33(0x167)]<_0x41aa0d['prerelease']?-0x1:0x1;}function getRequestedVersion(_0x195f04){const _0x487aaa=a60_0x2d5628,_0x9df9b6=_0x195f04[_0x487aaa(0x143)]('version')[_0x487aaa(0x191)]();if(_0x9df9b6)return _0x9df9b6;return String(_0x195f04[_0x487aaa(0x18f)]?.[0x0]??'')[_0x487aaa(0x191)]();}function shouldSkipCliBuiltInSkill(_0x4e79f8){const _0x441dee=a60_0x2d5628;return _0x4e79f8[_0x441dee(0x15b)](_0x441dee(0x18c))||_0x4e79f8[_0x441dee(0x17e)](_0x441dee(0x194))===![];}async function validateUpdateFlags(_0x413224){const _0x453ae0=a60_0x2d5628,_0x50ff42=getRequestedVersion(_0x413224),_0x4dd292=[_0x413224[_0x453ae0(0x15b)](_0x453ae0(0x173))?_0x453ae0(0x173):'',_0x413224[_0x453ae0(0x15b)]('beta')?_0x453ae0(0x182):'',_0x50ff42?'version':''][_0x453ae0(0x179)](Boolean);if(_0x4dd292[_0x453ae0(0x148)]>0x1)throw CliErrors[_0x453ae0(0x156)]('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.',_0x453ae0(0x144));if(_0x50ff42&&!parseSemver(_0x50ff42))throw CliErrors['validation']('Invalid\x20version:\x20'+_0x50ff42,_0x453ae0(0x164));}function a60_0x21fc(_0xee5e2e,_0x247eab){_0xee5e2e=_0xee5e2e-0x143;const _0x5861dc=a60_0x5861();let _0x21fcc6=_0x5861dc[_0xee5e2e];return _0x21fcc6;}async function fetchNpmDistTags(){const _0x149b9b=a60_0x2d5628;try{const _0x1acc7c=NPM_REGISTRY_BASE_URL+_0x149b9b(0x155)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x149b9b(0x14d),_0x13a914=await fetch(_0x1acc7c,{'signal':AbortSignal[_0x149b9b(0x180)](0x2710)});if(!_0x13a914['ok'])return null;const _0x1d0b61=await _0x13a914[_0x149b9b(0x151)]();if(!_0x1d0b61||typeof _0x1d0b61!==_0x149b9b(0x14f))return null;return Object[_0x149b9b(0x189)](Object[_0x149b9b(0x187)](_0x1d0b61)['filter'](([,_0x4e4bbd])=>typeof _0x4e4bbd===_0x149b9b(0x14b)&&_0x4e4bbd[_0x149b9b(0x191)]())[_0x149b9b(0x18e)](([_0x1e90b4,_0x2c942f])=>[_0x1e90b4,String(_0x2c942f)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0x2a118c){const _0x8064c6=a60_0x2d5628,_0x375a96=getRequestedVersion(_0x2a118c);if(_0x375a96)return{'version':_0x375a96,'source':_0x8064c6(0x146)};const _0x32ab89=_0x2a118c[_0x8064c6(0x15b)]('beta')?_0x8064c6(0x182):'latest',_0x3daba7=await fetchNpmDistTags(),_0x239555=_0x3daba7?.[_0x32ab89];if(!_0x239555)return null;return{'version':_0x239555,'source':_0x32ab89};}function shouldInstallTarget(_0x40cd28,_0x3cbcaf){const _0x1a90ec=a60_0x2d5628,_0x1e4725=compareSemver(_0x40cd28,_0x3cbcaf[_0x1a90ec(0x146)]);if(_0x3cbcaf[_0x1a90ec(0x168)]===_0x1a90ec(0x146))return _0x1e4725!==0x0;return _0x1e4725<0x0;}function installCliPackage(_0x8469ef,_0x1fbbcf){const _0x500885=a60_0x2d5628,_0x2ebe53=resolveNpmBin(_0x500885(0x160)),_0x240819=[_0x500885(0x165),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x8469ef];console['log']('*\x20'+[_0x2ebe53,..._0x240819][_0x500885(0x16e)]('\x20'));const _0x25b0dd=spawnSync(_0x2ebe53,_0x240819,{'cwd':process[_0x500885(0x16a)](),'stdio':_0x1fbbcf?_0x500885(0x17d):_0x500885(0x16b),'env':process.env,'shell':![]});if(_0x25b0dd['status']===0x0)return{'ok':!![]};let _0x30aa84=_0x25b0dd[_0x500885(0x18a)]?.[_0x500885(0x166)]||_0x500885(0x172)+(_0x25b0dd[_0x500885(0x158)]??_0x500885(0x163));if(_0x1fbbcf){const _0x2ae63c=_0x25b0dd['stderr']?_0x25b0dd[_0x500885(0x17c)]['toString']()[_0x500885(0x191)]():'',_0x6773e5=_0x25b0dd[_0x500885(0x176)]?_0x25b0dd[_0x500885(0x176)][_0x500885(0x145)]()['trim']():'';if(_0x2ae63c)_0x30aa84=_0x2ae63c;else{if(_0x6773e5)_0x30aa84=_0x6773e5;}}return{'ok':![],'error':_0x30aa84};}async function installCliBuiltInSkill(_0x5adc5f){const _0xb09df=a60_0x2d5628;console['log']('Checking\x20CLI\x20Built-in\x20Skill...');const _0x228f25=runNpxSkillsAddGlobal(process[_0xb09df(0x16a)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x5adc5f?_0xb09df(0x17d):'inherit'});if(_0x228f25[_0xb09df(0x17f)]){console['log'](_0xb09df(0x154)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0xb09df(0x15f));return;}if(_0x228f25['ok']){console[_0xb09df(0x183)](_0xb09df(0x150));return;}console[_0xb09df(0x174)](_0xb09df(0x171)+(_0x228f25['error']||_0xb09df(0x163))),console[_0xb09df(0x183)]('\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install');}async function execute(_0x257b05){const _0x31b62f=a60_0x2d5628;await validateUpdateFlags(_0x257b05);const _0xdc6751=getCliVersion();console[_0x31b62f(0x183)](_0x31b62f(0x18d)+_0xdc6751),console[_0x31b62f(0x183)](_0x31b62f(0x17b));const _0x1358e6=await resolveTargetVersion(_0x257b05);if(!_0x1358e6){const _0x3c278d=_0x257b05[_0x31b62f(0x15b)]('beta')?_0x31b62f(0x182):_0x31b62f(0x173),_0x1137a2=_0x31b62f(0x192)+_0x3c278d+_0x31b62f(0x152);return console['warn'](_0x1137a2),console[_0x31b62f(0x183)](_0x31b62f(0x162)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3c278d),{'ok':![]};}if(!shouldInstallTarget(_0xdc6751,_0x1358e6)){const _0x431291=_0x1358e6['source']==='version'?_0x31b62f(0x193)+_0x1358e6[_0x31b62f(0x146)]+').':_0x31b62f(0x181)+_0x1358e6[_0x31b62f(0x146)]+').';return console['log'](_0x431291),shouldSkipCliBuiltInSkill(_0x257b05)?console[_0x31b62f(0x183)](_0x31b62f(0x149)):await installCliBuiltInSkill(_0x257b05['nonInteractive']),{'ok':!![]};}console[_0x31b62f(0x183)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0xdc6751+_0x31b62f(0x14a)+_0x1358e6[_0x31b62f(0x146)]);const _0x307b2a=installCliPackage(_0x1358e6['version'],_0x257b05[_0x31b62f(0x17a)]);if(!_0x307b2a['ok']){const _0x524df6='Update\x20failed:\x20'+(_0x307b2a[_0x31b62f(0x18a)]||_0x31b62f(0x163));return console[_0x31b62f(0x18a)](_0x524df6),console[_0x31b62f(0x183)]('\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x1358e6[_0x31b62f(0x146)]),{'ok':![]};}return console[_0x31b62f(0x183)](_0x31b62f(0x15c)+_0x1358e6[_0x31b62f(0x146)]+'.'),console[_0x31b62f(0x183)](_0x31b62f(0x18b)),shouldSkipCliBuiltInSkill(_0x257b05)?console[_0x31b62f(0x183)](_0x31b62f(0x149)):await installCliBuiltInSkill(_0x257b05['nonInteractive']),{'ok':!![]};}export const updateDefinition={'service':a60_0x2d5628(0x16f),'command':a60_0x2d5628(0x159),'description':a60_0x2d5628(0x185)+CLI_BIN_NAME+a60_0x2d5628(0x196),'risk':a60_0x2d5628(0x16d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a60_0x2a44e4=a60_0x231e;(function(_0x1a08f2,_0x115e74){const _0xce7487=a60_0x231e,_0x30f77e=_0x1a08f2();while(!![]){try{const _0x28cb1c=-parseInt(_0xce7487(0x182))/0x1*(-parseInt(_0xce7487(0x173))/0x2)+-parseInt(_0xce7487(0x14a))/0x3*(parseInt(_0xce7487(0x15b))/0x4)+-parseInt(_0xce7487(0x18a))/0x5*(-parseInt(_0xce7487(0x188))/0x6)+parseInt(_0xce7487(0x180))/0x7*(-parseInt(_0xce7487(0x161))/0x8)+-parseInt(_0xce7487(0x167))/0x9*(parseInt(_0xce7487(0x14f))/0xa)+parseInt(_0xce7487(0x14e))/0xb+-parseInt(_0xce7487(0x17f))/0xc*(-parseInt(_0xce7487(0x152))/0xd);if(_0x28cb1c===_0x115e74)break;else _0x30f77e['push'](_0x30f77e['shift']());}catch(_0x1fe606){_0x30f77e['push'](_0x30f77e['shift']());}}}(a60_0x23d2,0x524ee));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';function a60_0x231e(_0x588f1f,_0xdb3e41){_0x588f1f=_0x588f1f-0x143;const _0x23d273=a60_0x23d2();let _0x231e42=_0x23d273[_0x588f1f];return _0x231e42;}import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':'latest','type':'boolean','description':'Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','default':![]},{'name':a60_0x2a44e4(0x158),'type':a60_0x2a44e4(0x16e),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':'version','type':a60_0x2a44e4(0x16b),'description':a60_0x2a44e4(0x14d)},{'name':a60_0x2a44e4(0x18d),'type':a60_0x2a44e4(0x16e),'description':a60_0x2a44e4(0x185),'default':![]},{'name':'skills','type':a60_0x2a44e4(0x16e),'description':a60_0x2a44e4(0x191),'default':!![],'hidden':!![]}];function parseSemver(_0x5debea){const _0x4e356f=a60_0x2a44e4,_0x57cc79=_0x5debea['trim']()[_0x4e356f(0x15c)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x57cc79)return null;return{'major':Number(_0x57cc79[0x1]),'minor':Number(_0x57cc79[0x2]),'patch':Number(_0x57cc79[0x3]),'prerelease':_0x57cc79[0x4]};}function compareSemver(_0x4cabdd,_0x43ee95){const _0x258959=a60_0x2a44e4,_0x2a4802=parseSemver(_0x4cabdd),_0x559277=parseSemver(_0x43ee95);if(!_0x2a4802||!_0x559277)throw CliErrors['validation'](_0x258959(0x177),_0x258959(0x15d));for(const _0x463fe3 of[_0x258959(0x16a),_0x258959(0x183),'patch']){if(_0x2a4802[_0x463fe3]<_0x559277[_0x463fe3])return-0x1;if(_0x2a4802[_0x463fe3]>_0x559277[_0x463fe3])return 0x1;}if(!_0x2a4802[_0x258959(0x143)]&&!_0x559277[_0x258959(0x143)])return 0x0;if(!_0x2a4802['prerelease'])return 0x1;if(!_0x559277[_0x258959(0x143)])return-0x1;if(_0x2a4802[_0x258959(0x143)]===_0x559277['prerelease'])return 0x0;return _0x2a4802['prerelease']<_0x559277[_0x258959(0x143)]?-0x1:0x1;}function getRequestedVersion(_0x2ed7ad){const _0x858d76=a60_0x2a44e4,_0x4fc534=_0x2ed7ad[_0x858d76(0x16f)](_0x858d76(0x178))[_0x858d76(0x163)]();if(_0x4fc534)return _0x4fc534;return String(_0x2ed7ad[_0x858d76(0x148)]?.[0x0]??'')[_0x858d76(0x163)]();}function shouldSkipCliBuiltInSkill(_0x5043c5){const _0x2e7d47=a60_0x2a44e4;return _0x5043c5[_0x2e7d47(0x18b)](_0x2e7d47(0x18d))||_0x5043c5['flag'](_0x2e7d47(0x17b))===![];}function a60_0x23d2(){const _0x576ba0=['\x20CLI\x20from\x20npm','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','nonInteractive','Already\x20on\x20requested\x20version\x20(v','beta','map','filter','100prffqb','match','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','stderr','write','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','2168qeDNNl','object','trim','update','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','source','18jIXlwS','toString','inherit','major','string','\x20version\x20from\x20npm.','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','boolean','str','\x20->\x20','Updated\x20to\x20v','message','100762LpXVoW','Unable\x20to\x20resolve\x20','json','skipped','Version\x20comparison\x20failed.','version','latest','run','skills','Update\x20','/dist-tags','npm','300JOipsO','12761sNBMrI','error','11YjGESn','minor','warn','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','/-/package/','entries','1434HFZAPj','Invalid\x20version:\x20','4780QrzEMn','bool','status','no-skills','Checking\x20CLI\x20Built-in\x20Skill...','=1).','unknown','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','prerelease','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','cwd','log','stdout','args','Current\x20version:\x20','68559UWdEBa','pipe','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','Install\x20a\x20specific\x20CLI\x20version','7170570DIbBXq','612890eVdVYf','validation','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','47073QulvCO','length'];a60_0x23d2=function(){return _0x576ba0;};return a60_0x23d2();}async function validateUpdateFlags(_0x5685e6){const _0x5ba281=a60_0x2a44e4,_0x2281e6=getRequestedVersion(_0x5685e6),_0x19a133=[_0x5685e6[_0x5ba281(0x18b)]('latest')?_0x5ba281(0x179):'',_0x5685e6[_0x5ba281(0x18b)]('beta')?_0x5ba281(0x158):'',_0x2281e6?_0x5ba281(0x178):''][_0x5ba281(0x15a)](Boolean);if(_0x19a133[_0x5ba281(0x153)]>0x1)throw CliErrors['validation']('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.',_0x5ba281(0x151));if(_0x2281e6&&!parseSemver(_0x2281e6))throw CliErrors[_0x5ba281(0x150)](_0x5ba281(0x189)+_0x2281e6,_0x5ba281(0x160));}async function fetchNpmDistTags(){const _0x398db3=a60_0x2a44e4;try{const _0x5e3073=NPM_REGISTRY_BASE_URL+_0x398db3(0x186)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x398db3(0x17d),_0x32df47=await fetch(_0x5e3073,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x32df47['ok'])return null;const _0x3a7fb1=await _0x32df47[_0x398db3(0x175)]();if(!_0x3a7fb1||typeof _0x3a7fb1!==_0x398db3(0x162))return null;return Object['fromEntries'](Object[_0x398db3(0x187)](_0x3a7fb1)['filter'](([,_0x5581b9])=>typeof _0x5581b9==='string'&&_0x5581b9[_0x398db3(0x163)]())[_0x398db3(0x159)](([_0x1b2c8e,_0x5770e6])=>[_0x1b2c8e,String(_0x5770e6)[_0x398db3(0x163)]()]));}catch{return null;}}async function resolveTargetVersion(_0x3cfbb1){const _0x3dc4c2=a60_0x2a44e4,_0x48ee3b=getRequestedVersion(_0x3cfbb1);if(_0x48ee3b)return{'version':_0x48ee3b,'source':_0x3dc4c2(0x178)};const _0x20055b=_0x3cfbb1[_0x3dc4c2(0x18b)](_0x3dc4c2(0x158))?'beta':'latest',_0x2640e7=await fetchNpmDistTags(),_0x170b58=_0x2640e7?.[_0x20055b];if(!_0x170b58)return null;return{'version':_0x170b58,'source':_0x20055b};}function shouldInstallTarget(_0x589949,_0x2c0740){const _0x563581=a60_0x2a44e4,_0x173160=compareSemver(_0x589949,_0x2c0740[_0x563581(0x178)]);if(_0x2c0740[_0x563581(0x166)]===_0x563581(0x178))return _0x173160!==0x0;return _0x173160<0x0;}function installCliPackage(_0x2e58b4,_0x59c77a){const _0xdf3d08=a60_0x2a44e4,_0x62d266=resolveNpmBin(_0xdf3d08(0x17e)),_0x93ae7a=['install','-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x2e58b4];console[_0xdf3d08(0x146)]('*\x20'+[_0x62d266,..._0x93ae7a]['join']('\x20'));const _0x4ad1ff=spawnSync(_0x62d266,_0x93ae7a,{'cwd':process[_0xdf3d08(0x145)](),'stdio':_0x59c77a?_0xdf3d08(0x14b):_0xdf3d08(0x169),'env':process.env,'shell':![]});if(_0x4ad1ff['status']===0x0)return{'ok':!![]};let _0x2b2f4c=_0x4ad1ff[_0xdf3d08(0x181)]?.[_0xdf3d08(0x172)]||'exit\x20'+(_0x4ad1ff[_0xdf3d08(0x18c)]??_0xdf3d08(0x190));if(_0x59c77a){const _0x16b892=_0x4ad1ff[_0xdf3d08(0x15e)]?_0x4ad1ff[_0xdf3d08(0x15e)][_0xdf3d08(0x168)]()[_0xdf3d08(0x163)]():'',_0x4b5a9f=_0x4ad1ff[_0xdf3d08(0x147)]?_0x4ad1ff[_0xdf3d08(0x147)][_0xdf3d08(0x168)]()['trim']():'';if(_0x16b892)_0x2b2f4c=_0x16b892;else{if(_0x4b5a9f)_0x2b2f4c=_0x4b5a9f;}}return{'ok':![],'error':_0x2b2f4c};}async function installCliBuiltInSkill(_0x40b3a6){const _0x2c7417=a60_0x2a44e4;console[_0x2c7417(0x146)](_0x2c7417(0x18e));const _0x3224b6=runNpxSkillsAddGlobal(process[_0x2c7417(0x145)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x40b3a6?_0x2c7417(0x14b):_0x2c7417(0x169)});if(_0x3224b6[_0x2c7417(0x176)]){console[_0x2c7417(0x146)](_0x2c7417(0x155)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x2c7417(0x18f));return;}if(_0x3224b6['ok']){console[_0x2c7417(0x146)]('\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.');return;}console[_0x2c7417(0x184)]('\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20'+(_0x3224b6['error']||'unknown')),console[_0x2c7417(0x146)](_0x2c7417(0x14c));}async function execute(_0x3bbe46){const _0x359d35=a60_0x2a44e4;await validateUpdateFlags(_0x3bbe46);const _0x20f017=getCliVersion();console['log'](_0x359d35(0x149)+_0x20f017),console[_0x359d35(0x146)]('Checking\x20npm\x20dist-tags...');const _0x5d3e81=await resolveTargetVersion(_0x3bbe46);if(!_0x5d3e81){const _0x2ae31a=_0x3bbe46['bool'](_0x359d35(0x158))?_0x359d35(0x158):'latest',_0x3235eb=_0x359d35(0x174)+_0x2ae31a+_0x359d35(0x16c);return console['warn'](_0x3235eb),console[_0x359d35(0x146)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x2ae31a),{'ok':![]};}if(!shouldInstallTarget(_0x20f017,_0x5d3e81)){const _0xb15a44=_0x5d3e81[_0x359d35(0x166)]===_0x359d35(0x178)?_0x359d35(0x157)+_0x5d3e81[_0x359d35(0x178)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x5d3e81[_0x359d35(0x178)]+').';return console[_0x359d35(0x146)](_0xb15a44),shouldSkipCliBuiltInSkill(_0x3bbe46)?console[_0x359d35(0x146)]('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).'):await installCliBuiltInSkill(_0x3bbe46[_0x359d35(0x156)]),{'ok':!![]};}console[_0x359d35(0x146)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x20f017+_0x359d35(0x170)+_0x5d3e81[_0x359d35(0x178)]);const _0x2e3595=installCliPackage(_0x5d3e81[_0x359d35(0x178)],_0x3bbe46[_0x359d35(0x156)]);if(!_0x2e3595['ok']){const _0x12e3bc='Update\x20failed:\x20'+(_0x2e3595[_0x359d35(0x181)]||_0x359d35(0x190));return console[_0x359d35(0x181)](_0x12e3bc),console[_0x359d35(0x146)](_0x359d35(0x165)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x5d3e81['version']),{'ok':![]};}return console[_0x359d35(0x146)](_0x359d35(0x171)+_0x5d3e81[_0x359d35(0x178)]+'.'),console[_0x359d35(0x146)](_0x359d35(0x144)),shouldSkipCliBuiltInSkill(_0x3bbe46)?console[_0x359d35(0x146)](_0x359d35(0x16d)):await installCliBuiltInSkill(_0x3bbe46[_0x359d35(0x156)]),{'ok':!![]};}export const updateDefinition={'service':a60_0x2a44e4(0x164),'command':a60_0x2a44e4(0x17a),'description':a60_0x2a44e4(0x17c)+CLI_BIN_NAME+a60_0x2a44e4(0x154),'risk':a60_0x2a44e4(0x15f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- const a61_0x31f9cc=a61_0x31e6;(function(_0xebd12f,_0x543f4d){const _0x248055=a61_0x31e6,_0x311ae3=_0xebd12f();while(!![]){try{const _0x259453=-parseInt(_0x248055(0x18d))/0x1*(parseInt(_0x248055(0x16d))/0x2)+-parseInt(_0x248055(0x167))/0x3*(parseInt(_0x248055(0x171))/0x4)+-parseInt(_0x248055(0x18f))/0x5+parseInt(_0x248055(0x194))/0x6*(-parseInt(_0x248055(0x190))/0x7)+-parseInt(_0x248055(0x17c))/0x8+-parseInt(_0x248055(0x17d))/0x9+parseInt(_0x248055(0x16c))/0xa*(parseInt(_0x248055(0x173))/0xb);if(_0x259453===_0x543f4d)break;else _0x311ae3['push'](_0x311ae3['shift']());}catch(_0x221c7f){_0x311ae3['push'](_0x311ae3['shift']());}}}(a61_0xf3d6,0x51b1c));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':'app','type':a61_0x31f9cc(0x169),'description':a61_0x31f9cc(0x18c)},{'name':'appcode','type':a61_0x31f9cc(0x169),'description':a61_0x31f9cc(0x166)},{'name':a61_0x31f9cc(0x16e),'type':a61_0x31f9cc(0x169),'description':a61_0x31f9cc(0x15f),'enum':[...RUNTIME_ENV_VALUES]},{'name':a61_0x31f9cc(0x181),'type':'boolean','description':a61_0x31f9cc(0x183),'default':![]}];async function executeWorkspaceUse(_0x1ebaa9,_0x16802c){const _0x5c2c05=a61_0x31f9cc,_0x3ed303=_0x1ebaa9[_0x5c2c05(0x172)](_0x5c2c05(0x187))[_0x5c2c05(0x18b)](),_0x5f4710=_0x1ebaa9[_0x5c2c05(0x172)]('appcode')[_0x5c2c05(0x18b)](),_0x2da099=_0x1ebaa9[_0x5c2c05(0x172)](_0x5c2c05(0x16e))[_0x5c2c05(0x18b)](),_0x26af79=resolveWorkspaceEnv(_0x2da099||_0x1ebaa9[_0x5c2c05(0x184)]||DEFAULT_CONFIG_VALUES[_0x5c2c05(0x16e)]);if(!_0x3ed303&&!_0x5f4710)throw CliErrors[_0x5c2c05(0x165)](_0x5c2c05(0x163),_0x5c2c05(0x164)+CLI_BIN_NAME+_0x5c2c05(0x182)+_0x16802c+_0x5c2c05(0x193)+CLI_BIN_NAME+_0x5c2c05(0x182)+_0x16802c+_0x5c2c05(0x170));const _0x1104a5=_0x5f4710||await resolveRemoteAppCode({'command':_0x16802c,'appName':_0x3ed303,'env':_0x26af79,'accessKey':_0x1ebaa9[_0x5c2c05(0x185)]}),_0x3590d8=writeWorkspaceConfig({'command':_0x16802c,'appName':_0x3ed303,'appcode':_0x1104a5,'env':_0x26af79,'shouldWriteEnv':!!_0x2da099,'accessKey':_0x1ebaa9[_0x5c2c05(0x185)]});return{'ok':!![],'data':{'configPath':_0x3590d8,'app':_0x3ed303||null,'appcode':_0x1104a5,'env':_0x2da099?_0x26af79:null,'accessKeyWritten':![],'command':_0x5c2c05(0x15e)+_0x16802c},'message':buildWorkspaceMessage(_0x3590d8,_0x3ed303,_0x1104a5,_0x2da099?_0x26af79:undefined)};}function a61_0xf3d6(){const _0x4442ba=['authRequired','Invalid\x20env\x20\x22','includes','trim','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','100ENRhkr','apps','1360150KtCnmY','28dnNHqe','../../core/api-client.js','\x0aEnv:\x20','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','402378BQiPtE','items','join','length','filter','../../commands/app/remote-source.js','workspace\x20','Target\x20environment','init','shouldWriteEnv','App\x20\x22','Missing\x20workspace\x20app\x20selector.','Usage:\x20','validation','App\x20code\x20to\x20bind\x20directly','1707YrzWXX','write','string','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','appcode','1884790zmRsMV','4846TEoKcl','env','\x0aDefault\x20app:\x20','\x20--appcode\x20<code>\x20[--env\x20daily]','2852KIyjSm','str','143qEqKTY','appName','workspace','\x22\x20not\x20found.','Available\x20apps:\x20','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','map','\x0aAccessKey:\x20not\x20written','5038880TDoyCk','2677212lTcnpH','Run\x20`','\x22.\x20Allowed:\x20','project','yes','\x20workspace\x20','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','envName','accessKey','use','app'];a61_0xf3d6=function(){return _0x4442ba;};return a61_0xf3d6();}async function resolveRemoteAppCode(_0x2144a5){const _0x1ecb02=a61_0x31f9cc;if(!_0x2144a5[_0x1ecb02(0x185)])throw CliErrors[_0x1ecb02(0x188)](_0x1ecb02(0x16a)+CLI_BIN_NAME+'\x20workspace\x20'+_0x2144a5['command']+'.');const {setActiveAK:_0x52b286}=await import(_0x1ecb02(0x191)),{getRemoteAppList:_0x5e3ff5}=await import(_0x1ecb02(0x15d));_0x52b286(_0x2144a5['accessKey']);const _0x474847=await _0x5e3ff5({'env':_0x2144a5[_0x1ecb02(0x16e)],'accessKey':_0x2144a5[_0x1ecb02(0x185)],'noCache':![]}),_0x55d380=findAppByName(_0x474847['items'],_0x2144a5[_0x1ecb02(0x174)]);if(_0x55d380&&!isRuntimeAccessibleApp(_0x55d380))throw runtimeInaccessibleAppError(_0x55d380,'\x22'+_0x2144a5['appName']+'\x22');const _0x53a04b=_0x55d380?.['appCode']?.['trim']();if(_0x53a04b)return _0x53a04b;const _0x2e0a9b=_0x474847[_0x1ecb02(0x195)][_0x1ecb02(0x17a)](_0xbd6c72=>_0xbd6c72[_0x1ecb02(0x174)])[_0x1ecb02(0x15c)](Boolean),_0x5e4fcd=_0x2e0a9b[_0x1ecb02(0x15b)]?_0x1ecb02(0x177)+Array['from'](new Set(_0x2e0a9b))[_0x1ecb02(0x196)](',\x20')+'.':_0x1ecb02(0x17e)+CLI_BIN_NAME+_0x1ecb02(0x179);throw CliErrors[_0x1ecb02(0x165)](_0x1ecb02(0x162)+_0x2144a5[_0x1ecb02(0x174)]+_0x1ecb02(0x176),_0x5e4fcd);}function writeWorkspaceConfig(_0x58b086){const _0x22eabd=a61_0x31f9cc,_0x518858=resolveWriteConfigPath(_0x22eabd(0x180)),_0x56b20e=readConfigFile(_0x518858);_0x58b086[_0x22eabd(0x161)]&&(_0x56b20e['env']=_0x58b086[_0x22eabd(0x16e)]);if(_0x58b086['appName']){const _0x360216=isRecord(_0x56b20e[_0x22eabd(0x18e)])?{..._0x56b20e[_0x22eabd(0x18e)]}:{},_0x2bf280=isRecord(_0x360216[_0x58b086[_0x22eabd(0x174)]])?_0x360216[_0x58b086['appName']]:{};_0x360216[_0x58b086['appName']]={..._0x2bf280,'appcode':_0x58b086[_0x22eabd(0x16b)]},_0x56b20e[_0x22eabd(0x18e)]=_0x360216,_0x56b20e['defaultApp']=_0x58b086['appName'];if(_0x56b20e['app'])delete _0x56b20e[_0x22eabd(0x187)];return writeAndReturn(_0x518858,_0x56b20e);}_0x56b20e[_0x22eabd(0x16b)]=_0x58b086['appcode'];if(_0x56b20e['app'])delete _0x56b20e[_0x22eabd(0x187)];return writeAndReturn(_0x518858,_0x56b20e);}function writeAndReturn(_0x1806f5,_0x164e8b){return writeConfigFile(_0x1806f5,_0x164e8b),_0x1806f5;}function resolveWorkspaceEnv(_0xc9ac56){const _0x2f3842=a61_0x31f9cc;if(RUNTIME_ENV_VALUES[_0x2f3842(0x18a)](_0xc9ac56))return _0xc9ac56;throw CliErrors[_0x2f3842(0x165)](_0x2f3842(0x189)+_0xc9ac56+_0x2f3842(0x17f)+RUNTIME_ENV_VALUES[_0x2f3842(0x196)](',\x20'));}function buildWorkspaceMessage(_0x2d40b8,_0x246bc0,_0x12928a,_0x2f55be){const _0x3a0deb=a61_0x31f9cc,_0x4c05b9=_0x246bc0?_0x246bc0+'\x20('+_0x12928a+')':_0x12928a,_0x595ce6=_0x2f55be?_0x3a0deb(0x192)+_0x2f55be:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x2d40b8+_0x3a0deb(0x16f)+_0x4c05b9+_0x595ce6+_0x3a0deb(0x17b);}function isRecord(_0x4ead99){return typeof _0x4ead99==='object'&&_0x4ead99!==null&&!Array['isArray'](_0x4ead99);}function a61_0x31e6(_0x488d5c,_0x599f98){_0x488d5c=_0x488d5c-0x15b;const _0xf3d65a=a61_0xf3d6();let _0x31e6dc=_0xf3d65a[_0x488d5c];return _0x31e6dc;}function makeWorkspaceCommand(_0x226dad){const _0x27e45a=a61_0x31f9cc;return{'service':_0x27e45a(0x175),'command':_0x226dad,'description':_0x226dad===_0x27e45a(0x160)?'Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace':_0x27e45a(0x178),'risk':_0x27e45a(0x168),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x44e0cc){return executeWorkspaceUse(_0x44e0cc,_0x226dad);}};}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand(a61_0x31f9cc(0x186))];
1
+ const a61_0x3e704c=a61_0x3411;(function(_0x1b48c6,_0x3abe7e){const _0x4916e5=a61_0x3411,_0xd99d18=_0x1b48c6();while(!![]){try{const _0x442e41=parseInt(_0x4916e5(0x13e))/0x1*(-parseInt(_0x4916e5(0x145))/0x2)+-parseInt(_0x4916e5(0x12e))/0x3*(parseInt(_0x4916e5(0x13a))/0x4)+-parseInt(_0x4916e5(0x144))/0x5+-parseInt(_0x4916e5(0x14b))/0x6+-parseInt(_0x4916e5(0x13f))/0x7*(-parseInt(_0x4916e5(0x12a))/0x8)+parseInt(_0x4916e5(0x161))/0x9*(parseInt(_0x4916e5(0x13b))/0xa)+parseInt(_0x4916e5(0x141))/0xb*(parseInt(_0x4916e5(0x13d))/0xc);if(_0x442e41===_0x3abe7e)break;else _0xd99d18['push'](_0xd99d18['shift']());}catch(_0xe2d7c7){_0xd99d18['push'](_0xd99d18['shift']());}}}(a61_0x5f23,0x7ad8b));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a61_0x3e704c(0x155),'type':a61_0x3e704c(0x151),'description':a61_0x3e704c(0x12b)},{'name':a61_0x3e704c(0x131),'type':a61_0x3e704c(0x151),'description':'App\x20code\x20to\x20bind\x20directly'},{'name':'env','type':'string','description':a61_0x3e704c(0x152),'enum':[...RUNTIME_ENV_VALUES]},{'name':a61_0x3e704c(0x15f),'type':a61_0x3e704c(0x143),'description':a61_0x3e704c(0x138),'default':![]}];async function executeWorkspaceUse(_0x401959,_0x279121){const _0xd8407=a61_0x3e704c,_0x11b51c=_0x401959[_0xd8407(0x136)](_0xd8407(0x155))[_0xd8407(0x130)](),_0x5f1681=_0x401959[_0xd8407(0x136)](_0xd8407(0x131))[_0xd8407(0x130)](),_0x3d57db=_0x401959[_0xd8407(0x136)](_0xd8407(0x157))['trim'](),_0x5895d1=resolveWorkspaceEnv(_0x3d57db||_0x401959[_0xd8407(0x140)]||DEFAULT_CONFIG_VALUES[_0xd8407(0x157)]);if(!_0x11b51c&&!_0x5f1681)throw CliErrors[_0xd8407(0x158)]('Missing\x20workspace\x20app\x20selector.',_0xd8407(0x15d)+CLI_BIN_NAME+_0xd8407(0x15e)+_0x279121+_0xd8407(0x12f)+CLI_BIN_NAME+'\x20workspace\x20'+_0x279121+_0xd8407(0x15c));const _0x25f7f2=_0x5f1681||await resolveRemoteAppCode({'command':_0x279121,'appName':_0x11b51c,'env':_0x5895d1,'accessKey':_0x401959[_0xd8407(0x15b)]}),_0x3c33eb=writeWorkspaceConfig({'command':_0x279121,'appName':_0x11b51c,'appcode':_0x25f7f2,'env':_0x5895d1,'shouldWriteEnv':!!_0x3d57db,'accessKey':_0x401959[_0xd8407(0x15b)]});return{'ok':!![],'data':{'configPath':_0x3c33eb,'app':_0x11b51c||null,'appcode':_0x25f7f2,'env':_0x3d57db?_0x5895d1:null,'accessKeyWritten':![],'command':_0xd8407(0x14c)+_0x279121},'message':buildWorkspaceMessage(_0x3c33eb,_0x11b51c,_0x25f7f2,_0x3d57db?_0x5895d1:undefined)};}async function resolveRemoteAppCode(_0x5d5915){const _0x2da76b=a61_0x3e704c;if(!_0x5d5915[_0x2da76b(0x15b)])throw CliErrors['authRequired'](_0x2da76b(0x132)+CLI_BIN_NAME+_0x2da76b(0x15e)+_0x5d5915[_0x2da76b(0x12c)]+'.');const {setActiveAK:_0x54f743}=await import(_0x2da76b(0x129)),{getRemoteAppList:_0x3a8714}=await import(_0x2da76b(0x162));_0x54f743(_0x5d5915['accessKey']);const _0x3208f6=await _0x3a8714({'env':_0x5d5915[_0x2da76b(0x157)],'accessKey':_0x5d5915[_0x2da76b(0x15b)],'noCache':![]}),_0x2d9606=findAppByName(_0x3208f6[_0x2da76b(0x14d)],_0x5d5915['appName']);if(_0x2d9606&&!isRuntimeAccessibleApp(_0x2d9606))throw runtimeInaccessibleAppError(_0x2d9606,'\x22'+_0x5d5915[_0x2da76b(0x153)]+'\x22');const _0x184289=_0x2d9606?.['appCode']?.[_0x2da76b(0x130)]();if(_0x184289)return _0x184289;const _0x179fad=_0x3208f6[_0x2da76b(0x14d)][_0x2da76b(0x13c)](_0x5b25e2=>_0x5b25e2[_0x2da76b(0x153)])['filter'](Boolean),_0x5b9001=_0x179fad[_0x2da76b(0x160)]?'Available\x20apps:\x20'+Array[_0x2da76b(0x14a)](new Set(_0x179fad))['join'](',\x20')+'.':_0x2da76b(0x146)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.';throw CliErrors[_0x2da76b(0x158)](_0x2da76b(0x14f)+_0x5d5915[_0x2da76b(0x153)]+'\x22\x20not\x20found.',_0x5b9001);}function writeWorkspaceConfig(_0x2eee73){const _0x181d92=a61_0x3e704c,_0x38c761=resolveWriteConfigPath(_0x181d92(0x149)),_0x909585=readConfigFile(_0x38c761);_0x2eee73['shouldWriteEnv']&&(_0x909585[_0x181d92(0x157)]=_0x2eee73[_0x181d92(0x157)]);if(_0x2eee73[_0x181d92(0x153)]){const _0x542dcb=isRecord(_0x909585[_0x181d92(0x159)])?{..._0x909585[_0x181d92(0x159)]}:{},_0x2b5112=isRecord(_0x542dcb[_0x2eee73[_0x181d92(0x153)]])?_0x542dcb[_0x2eee73['appName']]:{};_0x542dcb[_0x2eee73['appName']]={..._0x2b5112,'appcode':_0x2eee73[_0x181d92(0x131)]},_0x909585[_0x181d92(0x159)]=_0x542dcb,_0x909585[_0x181d92(0x156)]=_0x2eee73[_0x181d92(0x153)];if(_0x909585[_0x181d92(0x155)])delete _0x909585[_0x181d92(0x155)];return writeAndReturn(_0x38c761,_0x909585);}_0x909585[_0x181d92(0x131)]=_0x2eee73['appcode'];if(_0x909585[_0x181d92(0x155)])delete _0x909585[_0x181d92(0x155)];return writeAndReturn(_0x38c761,_0x909585);}function writeAndReturn(_0xd0fb3a,_0x2e460e){return writeConfigFile(_0xd0fb3a,_0x2e460e),_0xd0fb3a;}function resolveWorkspaceEnv(_0x4c241a){const _0x3a6c03=a61_0x3e704c;if(RUNTIME_ENV_VALUES[_0x3a6c03(0x154)](_0x4c241a))return _0x4c241a;throw CliErrors[_0x3a6c03(0x158)](_0x3a6c03(0x137)+_0x4c241a+_0x3a6c03(0x148)+RUNTIME_ENV_VALUES[_0x3a6c03(0x14e)](',\x20'));}function a61_0x3411(_0x336351,_0x29eda8){_0x336351=_0x336351-0x129;const _0x5f2315=a61_0x5f23();let _0x3411ae=_0x5f2315[_0x336351];return _0x3411ae;}function a61_0x5f23(){const _0x2591a9=['\x20workspace\x20','yes','length','27GtebdQ','../../commands/app/remote-source.js','../../core/api-client.js','16jcWMKI','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','command','init','9198SwJtsS','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','trim','appcode','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','isArray','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','use','str','Invalid\x20env\x20\x22','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','\x0aEnv:\x20','148ghadbR','2657690PGTzcA','map','1032wRShUl','2837oGTlYS','3122581EiqDVi','envName','67188xgCLBt','\x0aDefault\x20app:\x20','boolean','4277425OopETD','254dsLlAI','Run\x20`','object','\x22.\x20Allowed:\x20','project','from','2294136jBIBxB','workspace\x20','items','join','App\x20\x22','Workspace\x20configured.\x0aConfig\x20file:\x20','string','Target\x20environment','appName','includes','app','defaultApp','env','validation','apps','\x0aAccessKey:\x20not\x20written','accessKey','\x20--appcode\x20<code>\x20[--env\x20daily]','Usage:\x20'];a61_0x5f23=function(){return _0x2591a9;};return a61_0x5f23();}function buildWorkspaceMessage(_0x3775c1,_0xcd764c,_0x179d98,_0x4ac1a4){const _0x567a5e=a61_0x3e704c,_0x4f9f75=_0xcd764c?_0xcd764c+'\x20('+_0x179d98+')':_0x179d98,_0x1397cb=_0x4ac1a4?_0x567a5e(0x139)+_0x4ac1a4:'';return _0x567a5e(0x150)+_0x3775c1+_0x567a5e(0x142)+_0x4f9f75+_0x1397cb+_0x567a5e(0x15a);}function isRecord(_0x4d2dab){const _0x3abdab=a61_0x3e704c;return typeof _0x4d2dab===_0x3abdab(0x147)&&_0x4d2dab!==null&&!Array[_0x3abdab(0x133)](_0x4d2dab);}function makeWorkspaceCommand(_0x1e348d){const _0x7db99c=a61_0x3e704c;return{'service':'workspace','command':_0x1e348d,'description':_0x1e348d===_0x7db99c(0x12d)?_0x7db99c(0x134):'Set\x20app\x20context\x20for\x20the\x20current\x20workspace','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x6b6221){return executeWorkspaceUse(_0x6b6221,_0x1e348d);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a61_0x3e704c(0x12d)),makeWorkspaceCommand(a61_0x3e704c(0x135))];
@@ -1 +1 @@
1
- function a62_0x3585(_0x33166e,_0x3c5654){_0x33166e=_0x33166e-0x109;const _0x3cb4ba=a62_0x3cb4();let _0x358579=_0x3cb4ba[_0x33166e];return _0x358579;}const a62_0x39b29c=a62_0x3585;(function(_0x199751,_0x9a7d23){const _0x3ae697=a62_0x3585,_0x171429=_0x199751();while(!![]){try{const _0x5f306d=parseInt(_0x3ae697(0x128))/0x1+-parseInt(_0x3ae697(0x116))/0x2*(parseInt(_0x3ae697(0x10d))/0x3)+-parseInt(_0x3ae697(0x11d))/0x4+-parseInt(_0x3ae697(0x10f))/0x5+-parseInt(_0x3ae697(0x10e))/0x6+parseInt(_0x3ae697(0x118))/0x7*(parseInt(_0x3ae697(0x109))/0x8)+-parseInt(_0x3ae697(0x111))/0x9*(-parseInt(_0x3ae697(0x11f))/0xa);if(_0x5f306d===_0x9a7d23)break;else _0x171429['push'](_0x171429['shift']());}catch(_0x5523a0){_0x171429['push'](_0x171429['shift']());}}}(a62_0x3cb4,0xd915f));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a62_0x39b29c(0x122),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a62_0x39b29c(0x123)],'importable':!![]},'format':{'description':a62_0x39b29c(0x124),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a62_0x39b29c(0x11c)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a62_0x39b29c(0x117),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a62_0x39b29c(0x115),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a62_0x39b29c(0x11e),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a62_0x39b29c(0x120),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a62_0x39b29c(0x113),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a62_0x39b29c(0x127)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a62_0x39b29c(0x11a)](CONFIG_FIELD_SCHEMAS)[a62_0x39b29c(0x114)](([,_0x17be21])=>_0x17be21[a62_0x39b29c(0x110)])[a62_0x39b29c(0x119)](([_0xa555a3])=>_0xa555a3));export const CONFIG_ENUM_VALUES=Object[a62_0x39b29c(0x121)](Object['entries'](CONFIG_FIELD_SCHEMAS)[a62_0x39b29c(0x114)](([,_0x4cf046])=>_0x4cf046[a62_0x39b29c(0x10b)])['map'](([_0xb8b580,_0xbde484])=>[_0xb8b580,[..._0xbde484[a62_0x39b29c(0x10b)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a62_0x39b29c(0x11a)](CONFIG_FIELD_SCHEMAS)[a62_0x39b29c(0x114)](([,_0x2a34bc])=>_0x2a34bc[a62_0x39b29c(0x11b)])[a62_0x39b29c(0x119)](([_0x10bd45])=>_0x10bd45);export function getConfigFieldSchema(_0x5f3784){return CONFIG_FIELD_SCHEMAS[_0x5f3784];}function a62_0x3cb4(){const _0xf2286e=['fromEntries','Target\x20environment','env','Default\x20output\x20format',';\x20local\x20alias:\x20apps.<alias>.appcode','has','locale','1465744ZARhiJ','8OGvOPy','join','enumValues','legacyCompatOnly','1968glIOfr','6914982TZXgzZ','8408910ZnQBxR','cliSettableTopLevel','3163311XFrlWD','Config\x20key.\x20Top-level:\x20','Risk\x20level','filter','Override\x20runtime\x20domain','216RgWOxK','Override\x20user\x20domain','4953529neNFbH','map','entries','importable','format','545904RlFrvp','Override\x20SkillHub\x20domain','50ioGeoB','Access\x20key\x20(client-ak\x20auth)'];a62_0x3cb4=function(){return _0xf2286e;};return a62_0x3cb4();}export function getConfigEnumValues(_0x2412e7){const _0x29d8bc=a62_0x39b29c;return getConfigFieldSchema(_0x2412e7)?.[_0x29d8bc(0x10b)];}export function getConfigDefaultValue(_0x44e525){return getConfigFieldSchema(_0x44e525)?.['defaultValue'];}export function isTopLevelConfigKey(_0x36fd58){const _0x445dae=a62_0x39b29c;return TOP_LEVEL_CONFIG_KEYS[_0x445dae(0x126)](_0x36fd58);}export function isLegacyCompatConfigKey(_0x92a48c){const _0xe72568=a62_0x39b29c;return getConfigFieldSchema(_0x92a48c)?.[_0xe72568(0x10c)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x24f548){const _0xf9d6fe=a62_0x39b29c;return[..._0x24f548][_0xf9d6fe(0x10a)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x33dc70=a62_0x39b29c;return _0x33dc70(0x112)+getTopLevelConfigKeySummary()+_0x33dc70(0x125);}export function buildAppProfileListFields(_0x27b5f4){return{'env':_0x27b5f4,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a62_0x1c6135=a62_0x22f2;(function(_0x525408,_0x2814d2){const _0x39d3bc=a62_0x22f2,_0x5c9725=_0x525408();while(!![]){try{const _0x4675c8=parseInt(_0x39d3bc(0x1a4))/0x1*(parseInt(_0x39d3bc(0x1ab))/0x2)+parseInt(_0x39d3bc(0x1b4))/0x3*(parseInt(_0x39d3bc(0x1ae))/0x4)+parseInt(_0x39d3bc(0x19c))/0x5+parseInt(_0x39d3bc(0x1ac))/0x6*(parseInt(_0x39d3bc(0x1b3))/0x7)+-parseInt(_0x39d3bc(0x1a7))/0x8*(parseInt(_0x39d3bc(0x1ad))/0x9)+parseInt(_0x39d3bc(0x1b2))/0xa*(parseInt(_0x39d3bc(0x1a9))/0xb)+-parseInt(_0x39d3bc(0x1a0))/0xc;if(_0x4675c8===_0x2814d2)break;else _0x5c9725['push'](_0x5c9725['shift']());}catch(_0x5d9b76){_0x5c9725['push'](_0x5c9725['shift']());}}}(a62_0x4e8f,0xa5491));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a62_0x1c6135(0x1a3)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a62_0x1c6135(0x19a)],'importable':!![]},'pageSize':{'description':a62_0x1c6135(0x1b1),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a62_0x1c6135(0x19e),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a62_0x1c6135(0x1b0),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a62_0x1c6135(0x1a2),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a62_0x1c6135(0x1a5),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a62_0x1c6135(0x199),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a62_0x1c6135(0x197)],'importable':!![]},'locale':{'description':a62_0x1c6135(0x1a1),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)[a62_0x1c6135(0x198)](([,_0x10958f])=>_0x10958f['cliSettableTopLevel'])[a62_0x1c6135(0x19b)](([_0x221eec])=>_0x221eec));export const CONFIG_ENUM_VALUES=Object[a62_0x1c6135(0x19d)](Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x4a0325])=>_0x4a0325[a62_0x1c6135(0x1a6)])[a62_0x1c6135(0x19b)](([_0x58b3ff,_0x554423])=>[_0x58b3ff,[..._0x554423[a62_0x1c6135(0x1a6)]||[]]]));function a62_0x22f2(_0xe60ea3,_0x1ef782){_0xe60ea3=_0xe60ea3-0x197;const _0x4e8fe1=a62_0x4e8f();let _0x22f2dd=_0x4e8fe1[_0xe60ea3];return _0x22f2dd;}export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a62_0x1c6135(0x1a8)](CONFIG_FIELD_SCHEMAS)[a62_0x1c6135(0x198)](([,_0x3b0399])=>_0x3b0399[a62_0x1c6135(0x1af)])[a62_0x1c6135(0x19b)](([_0x63278a])=>_0x63278a);export function getConfigFieldSchema(_0x4a8a2a){return CONFIG_FIELD_SCHEMAS[_0x4a8a2a];}function a62_0x4e8f(){const _0x490abb=['format','map','654910ETgHgv','fromEntries','Override\x20user\x20domain','Config\x20key.\x20Top-level:\x20','4435116KJGQgs','Locale','Override\x20SkillHub\x20domain','env','11794bNIOub','Access\x20key\x20(client-ak\x20auth)','enumValues','327064eDGEAz','entries','1816089pYaYnq',';\x20local\x20alias:\x20apps.<alias>.appcode','56GOpbTI','309252OhkVXf','45pIgTNK','104324wWEFNr','importable','Override\x20runtime\x20domain','Default\x20page\x20size','10icfPuE','14AHFHpf','60Gxnjfp','riskLevel','filter','Risk\x20level'];a62_0x4e8f=function(){return _0x490abb;};return a62_0x4e8f();}export function getConfigEnumValues(_0x2b004b){const _0x2c9662=a62_0x1c6135;return getConfigFieldSchema(_0x2b004b)?.[_0x2c9662(0x1a6)];}export function getConfigDefaultValue(_0x49e3f4){return getConfigFieldSchema(_0x49e3f4)?.['defaultValue'];}export function isTopLevelConfigKey(_0x39bb43){return TOP_LEVEL_CONFIG_KEYS['has'](_0x39bb43);}export function isLegacyCompatConfigKey(_0x5b43d5){return getConfigFieldSchema(_0x5b43d5)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x37f507){return[..._0x37f507]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x51d4b8=a62_0x1c6135;return _0x51d4b8(0x19f)+getTopLevelConfigKeySummary()+_0x51d4b8(0x1aa);}export function buildAppProfileListFields(_0x161af8){return{'env':_0x161af8,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- function a63_0x4df4(_0x1dc21b,_0x3e0b4e){_0x1dc21b=_0x1dc21b-0x164;const _0x4a1e71=a63_0x4a1e();let _0x4df4e1=_0x4a1e71[_0x1dc21b];return _0x4df4e1;}function a63_0x4a1e(){const _0xa7b06=['PUBLISHED','UNPUBLISH','1332fAViIn','1001316fTrdNz','12kTnadv','6515VoyMlk','4157950jHfdzb','9mIQASu','7679144wTKFeo','9OaQaIk','2707016CvmKVn','21fImhlx','Published','219594qJJAri','400300DEAXie'];a63_0x4a1e=function(){return _0xa7b06;};return a63_0x4a1e();}const a63_0x98fb7=a63_0x4df4;(function(_0x4e21cc,_0x111f47){const _0x232fe1=a63_0x4df4,_0x5b090c=_0x4e21cc();while(!![]){try{const _0x3cbf80=-parseInt(_0x232fe1(0x16d))/0x1+-parseInt(_0x232fe1(0x16c))/0x2*(parseInt(_0x232fe1(0x166))/0x3)+parseInt(_0x232fe1(0x170))/0x4*(parseInt(_0x232fe1(0x164))/0x5)+-parseInt(_0x232fe1(0x171))/0x6*(-parseInt(_0x232fe1(0x16a))/0x7)+parseInt(_0x232fe1(0x169))/0x8+-parseInt(_0x232fe1(0x168))/0x9*(-parseInt(_0x232fe1(0x165))/0xa)+-parseInt(_0x232fe1(0x167))/0xb*(parseInt(_0x232fe1(0x172))/0xc);if(_0x3cbf80===_0x111f47)break;else _0x5b090c['push'](_0x5b090c['shift']());}catch(_0x2aacbc){_0x5b090c['push'](_0x5b090c['shift']());}}}(a63_0x4a1e,0x3fb46));export const APP_PUBLISH_STATUS={'Published':a63_0x98fb7(0x16e),'Unpublished':a63_0x98fb7(0x16f)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a63_0x98fb7(0x16b)];
1
+ const a63_0x1d538c=a63_0x449d;function a63_0x3c1a(){const _0x58715f=['435123UBMwYU','570zxaTQv','2964432npEXug','Published','PUBLISHED','5076gChtuK','5QMoHqX','688776tTYYZd','1944824IirShr','53954JnDxQV','10kljKtX','5180gsDvjB','8SfnntA'];a63_0x3c1a=function(){return _0x58715f;};return a63_0x3c1a();}(function(_0x3fc45e,_0x27bbf2){const _0x442dd8=a63_0x449d,_0x31beaf=_0x3fc45e();while(!![]){try{const _0x280e41=-parseInt(_0x442dd8(0xd8))/0x1+parseInt(_0x442dd8(0xda))/0x2+parseInt(_0x442dd8(0xdd))/0x3*(parseInt(_0x442dd8(0xd4))/0x4)+-parseInt(_0x442dd8(0xd5))/0x5*(-parseInt(_0x442dd8(0xd1))/0x6)+-parseInt(_0x442dd8(0xd7))/0x7+-parseInt(_0x442dd8(0xdb))/0x8*(parseInt(_0x442dd8(0xdc))/0x9)+parseInt(_0x442dd8(0xd9))/0xa*(-parseInt(_0x442dd8(0xd6))/0xb);if(_0x280e41===_0x27bbf2)break;else _0x31beaf['push'](_0x31beaf['shift']());}catch(_0x51bd0d){_0x31beaf['push'](_0x31beaf['shift']());}}}(a63_0x3c1a,0x4806f));function a63_0x449d(_0x1b3486,_0x459edf){_0x1b3486=_0x1b3486-0xd1;const _0x3c1aa0=a63_0x3c1a();let _0x449dce=_0x3c1aa0[_0x1b3486];return _0x449dce;}export const APP_PUBLISH_STATUS={'Published':a63_0x1d538c(0xd3),'Unpublished':'UNPUBLISH'};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a63_0x1d538c(0xd2)];
@@ -1 +1 @@
1
- const a64_0x3b657f=a64_0x2ba8;(function(_0x2aca14,_0x567120){const _0x3c4d31=a64_0x2ba8,_0x3d95e7=_0x2aca14();while(!![]){try{const _0x4f5caf=-parseInt(_0x3c4d31(0x180))/0x1*(-parseInt(_0x3c4d31(0x179))/0x2)+parseInt(_0x3c4d31(0x17b))/0x3*(-parseInt(_0x3c4d31(0x181))/0x4)+-parseInt(_0x3c4d31(0x17e))/0x5*(-parseInt(_0x3c4d31(0x182))/0x6)+parseInt(_0x3c4d31(0x184))/0x7+-parseInt(_0x3c4d31(0x177))/0x8*(parseInt(_0x3c4d31(0x17c))/0x9)+-parseInt(_0x3c4d31(0x178))/0xa*(-parseInt(_0x3c4d31(0x17f))/0xb)+-parseInt(_0x3c4d31(0x183))/0xc;if(_0x4f5caf===_0x567120)break;else _0x3d95e7['push'](_0x3d95e7['shift']());}catch(_0x5911b5){_0x3d95e7['push'](_0x3d95e7['shift']());}}}(a64_0x2e55,0x7e0db));export const AUTH_MODE={'ClientAk':a64_0x3b657f(0x17d)};function a64_0x2ba8(_0x48ac34,_0x4f848d){_0x48ac34=_0x48ac34-0x177;const _0x2e5571=a64_0x2e55();let _0x2ba803=_0x2e5571[_0x48ac34];return _0x2ba803;}function a64_0x2e55(){const _0x3500b6=['196026JWqRDa','3534432yNxORu','6424922YFaumO','8JcFIzt','1733960gIaxGc','6kpwatB','ClientAk','9GCbQrv','7967007OUIVtI','client-ak','10DuFvBi','44uCmypX','179779OMJOuV','693380KEkwGD'];a64_0x2e55=function(){return _0x3500b6;};return a64_0x2e55();}export function isAuthMode(_0xcb4f7e){const _0x3d8f9b=a64_0x3b657f;return _0xcb4f7e===AUTH_MODE[_0x3d8f9b(0x17a)];}
1
+ const a64_0x3ad41d=a64_0x3c11;function a64_0x2a42(){const _0x7f1ffe=['6oPiXPz','406soXKJE','172lWhodK','5199822CznGeM','client-ak','39064IUIkmn','6342095GyNTxI','24vDXpKR','14247edHOoV','3548bloCxT','ClientAk','10613740GQERPn','452jHzxHX','1789953OMsHxd'];a64_0x2a42=function(){return _0x7f1ffe;};return a64_0x2a42();}(function(_0x1d175c,_0x24e517){const _0x10262c=a64_0x3c11,_0x23d877=_0x1d175c();while(!![]){try{const _0x159e3f=-parseInt(_0x10262c(0x1d8))/0x1*(parseInt(_0x10262c(0x1db))/0x2)+parseInt(_0x10262c(0x1d7))/0x3*(-parseInt(_0x10262c(0x1df))/0x4)+-parseInt(_0x10262c(0x1d5))/0x5*(-parseInt(_0x10262c(0x1dd))/0x6)+parseInt(_0x10262c(0x1de))/0x7*(parseInt(_0x10262c(0x1d4))/0x8)+-parseInt(_0x10262c(0x1d2))/0x9+parseInt(_0x10262c(0x1da))/0xa+-parseInt(_0x10262c(0x1dc))/0xb*(parseInt(_0x10262c(0x1d6))/0xc);if(_0x159e3f===_0x24e517)break;else _0x23d877['push'](_0x23d877['shift']());}catch(_0x440657){_0x23d877['push'](_0x23d877['shift']());}}}(a64_0x2a42,0xabd04));function a64_0x3c11(_0x345b67,_0x19e8e3){_0x345b67=_0x345b67-0x1d2;const _0x2a428f=a64_0x2a42();let _0x3c1185=_0x2a428f[_0x345b67];return _0x3c1185;}export const AUTH_MODE={'ClientAk':a64_0x3ad41d(0x1d3)};export function isAuthMode(_0x5f09c4){const _0x128e49=a64_0x3ad41d;return _0x5f09c4===AUTH_MODE[_0x128e49(0x1d9)];}
@@ -1 +1 @@
1
- const a65_0x3482bf=a65_0x5352;(function(_0x56d06f,_0x141493){const _0x57fcb8=a65_0x5352,_0x2ed1b5=_0x56d06f();while(!![]){try{const _0x157597=-parseInt(_0x57fcb8(0xdf))/0x1+parseInt(_0x57fcb8(0xe5))/0x2*(-parseInt(_0x57fcb8(0xc7))/0x3)+parseInt(_0x57fcb8(0xd7))/0x4+-parseInt(_0x57fcb8(0xd4))/0x5*(-parseInt(_0x57fcb8(0xe0))/0x6)+parseInt(_0x57fcb8(0xcb))/0x7*(-parseInt(_0x57fcb8(0xcc))/0x8)+parseInt(_0x57fcb8(0xdb))/0x9+parseInt(_0x57fcb8(0xce))/0xa;if(_0x157597===_0x141493)break;else _0x2ed1b5['push'](_0x2ed1b5['shift']());}catch(_0xf31357){_0x2ed1b5['push'](_0x2ed1b5['shift']());}}}(a65_0x4652,0x9e751));import{PRODUCT_CONFIG}from'../constant/product.js';function a65_0x4652(){const _0x5ef77e=['appcode','Name\x20filter','Force\x20non-interactive\x20mode\x20(CI)','boolean','help','<name>','clear','9xQMuHC','Verbose\x20output','<expr>','non-interactive','2416589OgwMzm','24umJJpY','Environment','17668580xcVQOr','cliBinName','fromEntries','yes','dry-run','cliDisplayName','5EzAMTh','Record\x20ID','type','119568romrmD','global','Preview\x20operation\x20without\x20executing','JSON\x20params\x20for\x20execute\x20commands','7578891TZNTDI','env','format','json\x20|\x20pretty\x20|\x20compress','1077271PZGcOO','6943338sZLmgG','string','name','Output\x20format','SQL\x20query\x20code','689386CYAmpP','sqlcode','app','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','params','Use\x20global\x20config\x20scope'];a65_0x4652=function(){return _0x5ef77e;};return a65_0x4652();}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a65_0x3482bf(0xcf)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a65_0x3482bf(0xd3)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a65_0x5352(_0x11e95f,_0x2f0409){_0x11e95f=_0x11e95f-0xbf;const _0x4652c6=a65_0x4652();let _0x53520a=_0x4652c6[_0x11e95f];return _0x53520a;}export const GLOBAL_FLAGS=[{'name':a65_0x3482bf(0xc0),'meowKey':a65_0x3482bf(0xc0),'type':a65_0x3482bf(0xe1),'description':'Override\x20appcode','hint':'<code>'},{'name':'app','meowKey':a65_0x3482bf(0xe7),'type':a65_0x3482bf(0xe1),'description':'Select\x20app\x20profile\x20by\x20name','hint':a65_0x3482bf(0xc5)},{'name':'env','meowKey':a65_0x3482bf(0xdc),'type':a65_0x3482bf(0xe1),'description':a65_0x3482bf(0xcd),'hint':'production\x20|\x20development\x20|\x20daily'},{'name':a65_0x3482bf(0xdd),'meowKey':'format','type':'string','description':a65_0x3482bf(0xe3),'hint':a65_0x3482bf(0xde)},{'name':'jq','meowKey':'jq','type':'string','description':a65_0x3482bf(0xe8),'hint':a65_0x3482bf(0xc9)},{'name':a65_0x3482bf(0xd2),'meowKey':'dryRun','type':a65_0x3482bf(0xc3),'description':a65_0x3482bf(0xd9)},{'name':'yes','meowKey':a65_0x3482bf(0xd1),'type':a65_0x3482bf(0xc3),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a65_0x3482bf(0xca),'meowKey':'nonInteractive','type':a65_0x3482bf(0xc3),'description':a65_0x3482bf(0xc2)},{'name':'global','meowKey':a65_0x3482bf(0xd8),'type':a65_0x3482bf(0xc3),'description':a65_0x3482bf(0xbf)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a65_0x3482bf(0xc4),'meowKey':a65_0x3482bf(0xc4),'type':a65_0x3482bf(0xc3),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':a65_0x3482bf(0xe1),'description':a65_0x3482bf(0xd5),'hidden':!![]},{'name':'name','meowKey':a65_0x3482bf(0xe2),'type':'string','description':a65_0x3482bf(0xc1),'hidden':!![]},{'name':a65_0x3482bf(0xe6),'meowKey':a65_0x3482bf(0xe6),'type':'string','description':a65_0x3482bf(0xe4),'hidden':!![]},{'name':a65_0x3482bf(0xe9),'meowKey':'params','type':a65_0x3482bf(0xe1),'description':a65_0x3482bf(0xda),'hidden':!![]},{'name':'verbose','meowKey':'verbose','type':a65_0x3482bf(0xc3),'description':a65_0x3482bf(0xc8),'hidden':!![]},{'name':a65_0x3482bf(0xc6),'meowKey':'clear','type':a65_0x3482bf(0xc3),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a65_0x3482bf(0xc0),a65_0x3482bf(0xe7),a65_0x3482bf(0xdc),a65_0x3482bf(0xdd),'jq',a65_0x3482bf(0xd2),a65_0x3482bf(0xd1),a65_0x3482bf(0xca),'ci']);export function buildMeowFlags(){const _0x4a8e24=a65_0x3482bf;return Object[_0x4a8e24(0xd0)](GLOBAL_FLAGS['map'](_0x14de79=>[_0x14de79['meowKey'],{'type':_0x14de79[_0x4a8e24(0xd6)]}]));}
1
+ const a65_0x5bf573=a65_0xcf9d;(function(_0xd368be,_0x1b7991){const _0x574ae2=a65_0xcf9d,_0x35ddeb=_0xd368be();while(!![]){try{const _0xf691c=parseInt(_0x574ae2(0x16a))/0x1+-parseInt(_0x574ae2(0x158))/0x2*(-parseInt(_0x574ae2(0x15c))/0x3)+-parseInt(_0x574ae2(0x173))/0x4+parseInt(_0x574ae2(0x186))/0x5+parseInt(_0x574ae2(0x15b))/0x6*(parseInt(_0x574ae2(0x175))/0x7)+parseInt(_0x574ae2(0x165))/0x8*(parseInt(_0x574ae2(0x170))/0x9)+-parseInt(_0x574ae2(0x16e))/0xa;if(_0xf691c===_0x1b7991)break;else _0x35ddeb['push'](_0x35ddeb['shift']());}catch(_0x3c685a){_0x35ddeb['push'](_0x35ddeb['shift']());}}}(a65_0x3b4a,0xc95f3));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a65_0x5bf573(0x15d)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a65_0x5bf573(0x174)];function a65_0xcf9d(_0x357d3f,_0x25763d){_0x357d3f=_0x357d3f-0x158;const _0x3b4a79=a65_0x3b4a();let _0xcf9d93=_0x3b4a79[_0x357d3f];return _0xcf9d93;}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a65_0x3b4a(){const _0x2936c6=['env','<expr>','<name>','Show\x20help','1048aIciUB','sqlcode','app','format','verbose','1120103LqMdpG','Override\x20appcode','type','global','14539200ZyxnTg','json\x20|\x20pretty\x20|\x20compress','38232OJZjMK','Environment','Verbose\x20output','5987824bYDnZK','cliDisplayName','11371087eOflJD','yes','Record\x20ID','help','meowKey','non-interactive','JSON\x20params\x20for\x20execute\x20commands','dry-run','Name\x20filter','string','boolean','Use\x20global\x20config\x20scope','name','Force\x20non-interactive\x20mode\x20(CI)','production\x20|\x20development\x20|\x20daily','<code>','Alias\x20for\x20--non-interactive','1611100ZmStUc','Select\x20app\x20profile\x20by\x20name','Skip\x20confirmation\x20for\x20high-risk\x20writes','appcode','304886tqnavr','Output\x20format','clear','6GKIMlT','3zCSIRY','cliBinName','Preview\x20operation\x20without\x20executing','Clear\x20output','params'];a65_0x3b4a=function(){return _0x2936c6;};return a65_0x3b4a();}export const GLOBAL_FLAGS=[{'name':a65_0x5bf573(0x189),'meowKey':a65_0x5bf573(0x189),'type':a65_0x5bf573(0x17e),'description':a65_0x5bf573(0x16b),'hint':a65_0x5bf573(0x184)},{'name':a65_0x5bf573(0x167),'meowKey':a65_0x5bf573(0x167),'type':a65_0x5bf573(0x17e),'description':a65_0x5bf573(0x187),'hint':a65_0x5bf573(0x163)},{'name':a65_0x5bf573(0x161),'meowKey':'env','type':a65_0x5bf573(0x17e),'description':a65_0x5bf573(0x171),'hint':a65_0x5bf573(0x183)},{'name':a65_0x5bf573(0x168),'meowKey':a65_0x5bf573(0x168),'type':a65_0x5bf573(0x17e),'description':a65_0x5bf573(0x159),'hint':a65_0x5bf573(0x16f)},{'name':'jq','meowKey':'jq','type':a65_0x5bf573(0x17e),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a65_0x5bf573(0x162)},{'name':a65_0x5bf573(0x17c),'meowKey':'dryRun','type':a65_0x5bf573(0x17f),'description':a65_0x5bf573(0x15e)},{'name':a65_0x5bf573(0x176),'meowKey':a65_0x5bf573(0x176),'type':a65_0x5bf573(0x17f),'description':a65_0x5bf573(0x188)},{'name':'non-interactive','meowKey':'nonInteractive','type':a65_0x5bf573(0x17f),'description':a65_0x5bf573(0x182)},{'name':a65_0x5bf573(0x16d),'meowKey':a65_0x5bf573(0x16d),'type':a65_0x5bf573(0x17f),'description':a65_0x5bf573(0x180)},{'name':'ci','meowKey':'ci','type':a65_0x5bf573(0x17f),'description':a65_0x5bf573(0x185),'hidden':!![]},{'name':a65_0x5bf573(0x178),'meowKey':a65_0x5bf573(0x178),'type':a65_0x5bf573(0x17f),'description':a65_0x5bf573(0x164)},{'name':'id','meowKey':'id','type':a65_0x5bf573(0x17e),'description':a65_0x5bf573(0x177),'hidden':!![]},{'name':a65_0x5bf573(0x181),'meowKey':a65_0x5bf573(0x181),'type':a65_0x5bf573(0x17e),'description':a65_0x5bf573(0x17d),'hidden':!![]},{'name':a65_0x5bf573(0x166),'meowKey':'sqlcode','type':a65_0x5bf573(0x17e),'description':'SQL\x20query\x20code','hidden':!![]},{'name':'params','meowKey':a65_0x5bf573(0x160),'type':'string','description':a65_0x5bf573(0x17b),'hidden':!![]},{'name':a65_0x5bf573(0x169),'meowKey':a65_0x5bf573(0x169),'type':a65_0x5bf573(0x17f),'description':a65_0x5bf573(0x172),'hidden':!![]},{'name':a65_0x5bf573(0x15a),'meowKey':a65_0x5bf573(0x15a),'type':'boolean','description':a65_0x5bf573(0x15f),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode','app','env',a65_0x5bf573(0x168),'jq',a65_0x5bf573(0x17c),a65_0x5bf573(0x176),a65_0x5bf573(0x17a),'ci']);export function buildMeowFlags(){const _0x251a9b=a65_0x5bf573;return Object['fromEntries'](GLOBAL_FLAGS['map'](_0xded423=>[_0xded423[_0x251a9b(0x179)],{'type':_0xded423[_0x251a9b(0x16c)]}]));}
@@ -1 +1 @@
1
- const a66_0x10fd5b=a66_0x4ce8;(function(_0x18215b,_0xc88354){const _0x2c52c3=a66_0x4ce8,_0x40e051=_0x18215b();while(!![]){try{const _0x1bd378=-parseInt(_0x2c52c3(0xa4))/0x1+parseInt(_0x2c52c3(0xa2))/0x2*(-parseInt(_0x2c52c3(0x97))/0x3)+-parseInt(_0x2c52c3(0x96))/0x4*(-parseInt(_0x2c52c3(0xa0))/0x5)+-parseInt(_0x2c52c3(0x9a))/0x6*(parseInt(_0x2c52c3(0x9d))/0x7)+parseInt(_0x2c52c3(0x9b))/0x8*(parseInt(_0x2c52c3(0xa1))/0x9)+-parseInt(_0x2c52c3(0x99))/0xa+parseInt(_0x2c52c3(0xa3))/0xb;if(_0x1bd378===_0xc88354)break;else _0x40e051['push'](_0x40e051['shift']());}catch(_0x4d6b29){_0x40e051['push'](_0x40e051['shift']());}}}(a66_0x2131,0x3eeed));function a66_0x2131(){const _0x13fc28=['write','compress','25240qkfUyl','772137OMToqv','2FXzsaY','9738839xBMpyq','247259Nquffp','80QoUgLP','644127cbiwmb','production','4234740HTkwUv','1632354OklxKy','40QSnCxb','main','7qVjLuR'];a66_0x2131=function(){return _0x13fc28;};return a66_0x2131();}export const DEFAULT_APP_PROFILE_NAME=a66_0x10fd5b(0x9c);export const DEFAULT_CONFIG_VALUES={'env':a66_0x10fd5b(0x98),'format':a66_0x10fd5b(0x9f),'locale':'en-US','riskLevel':a66_0x10fd5b(0x9e)};function a66_0x4ce8(_0x52c5c6,_0x93572b){_0x52c5c6=_0x52c5c6-0x96;const _0x21314c=a66_0x2131();let _0x4ce8a7=_0x21314c[_0x52c5c6];return _0x4ce8a7;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a66_0x10fd5b(0x9f);
1
+ function a66_0x3d57(){const _0x9618c0=['write','2912968JVtBMU','20249406GIhvHN','116952DDFDVe','6rqBMYB','main','1299789kqXvkQ','3398820dXrKKd','en-US','4ZwzuRY','1361568XYTIgb','727517fswJVl','compress'];a66_0x3d57=function(){return _0x9618c0;};return a66_0x3d57();}const a66_0x51c9e8=a66_0x48ef;function a66_0x48ef(_0x172f03,_0xfa390){_0x172f03=_0x172f03-0x94;const _0x3d57d6=a66_0x3d57();let _0x48ef2a=_0x3d57d6[_0x172f03];return _0x48ef2a;}(function(_0x191ec1,_0x1d5e71){const _0x5c3187=a66_0x48ef,_0x184811=_0x191ec1();while(!![]){try{const _0x348ae5=parseInt(_0x5c3187(0x98))/0x1+parseInt(_0x5c3187(0x9c))/0x2+parseInt(_0x5c3187(0x95))/0x3+-parseInt(_0x5c3187(0x9b))/0x4*(-parseInt(_0x5c3187(0x99))/0x5)+parseInt(_0x5c3187(0x96))/0x6*(-parseInt(_0x5c3187(0x9d))/0x7)+parseInt(_0x5c3187(0xa0))/0x8+-parseInt(_0x5c3187(0x94))/0x9;if(_0x348ae5===_0x1d5e71)break;else _0x184811['push'](_0x184811['shift']());}catch(_0x1c5e8e){_0x184811['push'](_0x184811['shift']());}}}(a66_0x3d57,0xad3c9));export const DEFAULT_APP_PROFILE_NAME=a66_0x51c9e8(0x97);export const DEFAULT_CONFIG_VALUES={'env':'production','format':a66_0x51c9e8(0x9e),'locale':a66_0x51c9e8(0x9a),'riskLevel':a66_0x51c9e8(0x9f)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
@@ -1 +1 @@
1
- const a67_0xe4b480=a67_0x4578;(function(_0x23a1f5,_0x110187){const _0x4ad104=a67_0x4578,_0x53e237=_0x23a1f5();while(!![]){try{const _0xb54019=-parseInt(_0x4ad104(0x17c))/0x1*(parseInt(_0x4ad104(0x180))/0x2)+-parseInt(_0x4ad104(0x189))/0x3*(-parseInt(_0x4ad104(0x17f))/0x4)+-parseInt(_0x4ad104(0x187))/0x5*(-parseInt(_0x4ad104(0x185))/0x6)+-parseInt(_0x4ad104(0x184))/0x7+-parseInt(_0x4ad104(0x17b))/0x8*(parseInt(_0x4ad104(0x181))/0x9)+-parseInt(_0x4ad104(0x186))/0xa*(parseInt(_0x4ad104(0x182))/0xb)+-parseInt(_0x4ad104(0x17d))/0xc*(-parseInt(_0x4ad104(0x183))/0xd);if(_0xb54019===_0x110187)break;else _0x53e237['push'](_0x53e237['shift']());}catch(_0x4c7e6d){_0x53e237['push'](_0x53e237['shift']());}}}(a67_0x2145,0x2d090));import{PRODUCT_CONFIG}from'../constant/product.js';function a67_0x2145(){const _0xd5e481=['npmRegistryBaseUrl','1660trBpFw','104782XIUdGX','9MSuRSq','4026xdByMQ','209872vPbYxp','84014YuJlnK','6smLEAP','3300IyKeco','883810rxXAoE','npmPackageName','2268DffEAT','1096072GGVObb','1wrfuyM','12MNAqwL'];a67_0x2145=function(){return _0xd5e481;};return a67_0x2145();}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a67_0xe4b480(0x188)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];function a67_0x4578(_0x3518b9,_0x2a7789){_0x3518b9=_0x3518b9-0x17b;const _0x21458b=a67_0x2145();let _0x45789c=_0x21458b[_0x3518b9];return _0x45789c;}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a67_0xe4b480(0x17e)];
1
+ function a67_0x3829(_0x3e375b,_0x2b9327){_0x3e375b=_0x3e375b-0x1e8;const _0x41f360=a67_0x41f3();let _0x3829ae=_0x41f360[_0x3e375b];return _0x3829ae;}const a67_0x13e313=a67_0x3829;(function(_0x561624,_0x5278aa){const _0x4b0252=a67_0x3829,_0x42711c=_0x561624();while(!![]){try{const _0x39adcd=-parseInt(_0x4b0252(0x1f1))/0x1+-parseInt(_0x4b0252(0x1f2))/0x2+-parseInt(_0x4b0252(0x1e8))/0x3*(-parseInt(_0x4b0252(0x1eb))/0x4)+parseInt(_0x4b0252(0x1ec))/0x5*(parseInt(_0x4b0252(0x1ee))/0x6)+-parseInt(_0x4b0252(0x1ea))/0x7+parseInt(_0x4b0252(0x1ed))/0x8+-parseInt(_0x4b0252(0x1f0))/0x9*(-parseInt(_0x4b0252(0x1ef))/0xa);if(_0x39adcd===_0x5278aa)break;else _0x42711c['push'](_0x42711c['shift']());}catch(_0x582285){_0x42711c['push'](_0x42711c['shift']());}}}(a67_0x41f3,0x36de8));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a67_0x13e313(0x1f4)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a67_0x13e313(0x1f3)];function a67_0x41f3(){const _0x1726f4=['4qZwQlK','1203025cwMXnH','3174680cdYKsw','6FwVEcG','110lAqBvr','174465efQVcX','224344knpwnd','754108UGECMk','skillSource','npmPackageName','281538bdSdGI','npmRegistryBaseUrl','828653oyZaHR'];a67_0x41f3=function(){return _0x1726f4;};return a67_0x41f3();}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a67_0x13e313(0x1e9)];
@@ -1 +1 @@
1
- function a68_0x4c5f(_0x35dad3,_0x2bfa61){_0x35dad3=_0x35dad3-0x70;const _0x108c9=a68_0x108c();let _0x4c5f88=_0x108c9[_0x35dad3];return _0x4c5f88;}const a68_0x42a656=a68_0x4c5f;(function(_0x124861,_0x446696){const _0x1ba518=a68_0x4c5f,_0x1d441c=_0x124861();while(!![]){try{const _0x4c28ed=-parseInt(_0x1ba518(0x79))/0x1+-parseInt(_0x1ba518(0x7d))/0x2*(-parseInt(_0x1ba518(0x81))/0x3)+parseInt(_0x1ba518(0x80))/0x4+parseInt(_0x1ba518(0x76))/0x5*(-parseInt(_0x1ba518(0x72))/0x6)+parseInt(_0x1ba518(0x7c))/0x7+-parseInt(_0x1ba518(0x7f))/0x8*(parseInt(_0x1ba518(0x75))/0x9)+parseInt(_0x1ba518(0x7e))/0xa;if(_0x4c28ed===_0x446696)break;else _0x1d441c['push'](_0x1d441c['shift']());}catch(_0xefb3ef){_0x1d441c['push'](_0x1d441c['shift']());}}}(a68_0x108c,0x497f9));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;function a68_0x108c(){const _0x3cfd61=['18CQlClF','user','nonProduction','27omcknt','813205fQpVtu','api','skillHubDomain','559619ZiwXYX','runtime','production','3966893usyEDb','529982OTVWJh','850650dsmlbR','159160ewVYzD','1966084mNMqhF','3WqTYFr','runtimeDomain','apiDomain','domains','skillhub'];a68_0x108c=function(){return _0x3cfd61;};return a68_0x108c();}export function initDomains(_0x1a9283){const _0x38ea78=a68_0x4c5f;customApiDomain=_0x1a9283?.[_0x38ea78(0x83)],customUserDomain=_0x1a9283?.['userDomain'],customRuntimeDomain=_0x1a9283?.[_0x38ea78(0x82)],customSkillHubDomain=_0x1a9283?.[_0x38ea78(0x78)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a68_0x42a656(0x70)][a68_0x42a656(0x7b)][a68_0x42a656(0x73)]:PRODUCT_CONFIG[a68_0x42a656(0x70)]['nonProduction'][a68_0x42a656(0x73)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a68_0x42a656(0x70)][a68_0x42a656(0x7b)][a68_0x42a656(0x77)]:PRODUCT_CONFIG['domains'][a68_0x42a656(0x74)][a68_0x42a656(0x77)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a68_0x42a656(0x70)][a68_0x42a656(0x7b)]['runtime']:PRODUCT_CONFIG['domains'][a68_0x42a656(0x74)][a68_0x42a656(0x7a)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a68_0x42a656(0x70)][a68_0x42a656(0x7b)][a68_0x42a656(0x71)]:PRODUCT_CONFIG[a68_0x42a656(0x70)]['nonProduction'][a68_0x42a656(0x71)]);
1
+ const a68_0x4ea7ee=a68_0xb58f;(function(_0x20dcd4,_0x2b69e2){const _0x52b4df=a68_0xb58f,_0x2e58ee=_0x20dcd4();while(!![]){try{const _0x51eee6=-parseInt(_0x52b4df(0xab))/0x1*(parseInt(_0x52b4df(0xa8))/0x2)+parseInt(_0x52b4df(0xb6))/0x3*(parseInt(_0x52b4df(0xb1))/0x4)+parseInt(_0x52b4df(0xaf))/0x5+parseInt(_0x52b4df(0xaa))/0x6*(parseInt(_0x52b4df(0xb0))/0x7)+-parseInt(_0x52b4df(0xba))/0x8*(-parseInt(_0x52b4df(0xb4))/0x9)+parseInt(_0x52b4df(0xb8))/0xa*(parseInt(_0x52b4df(0xbc))/0xb)+parseInt(_0x52b4df(0xa9))/0xc*(-parseInt(_0x52b4df(0xb9))/0xd);if(_0x51eee6===_0x2b69e2)break;else _0x2e58ee['push'](_0x2e58ee['shift']());}catch(_0x54bc47){_0x2e58ee['push'](_0x2e58ee['shift']());}}}(a68_0x1ba9,0x62fcb));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x5d2b60){const _0xb6cd29=a68_0xb58f;customApiDomain=_0x5d2b60?.[_0xb6cd29(0xad)],customUserDomain=_0x5d2b60?.['userDomain'],customRuntimeDomain=_0x5d2b60?.[_0xb6cd29(0xbd)],customSkillHubDomain=_0x5d2b60?.[_0xb6cd29(0xb5)];}function a68_0xb58f(_0x394157,_0x53e260){_0x394157=_0x394157-0xa8;const _0x1ba99b=a68_0x1ba9();let _0xb58f52=_0x1ba99b[_0x394157];return _0xb58f52;}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a68_0x4ea7ee(0xac)][a68_0x4ea7ee(0xbb)][a68_0x4ea7ee(0xb3)]:PRODUCT_CONFIG['domains'][a68_0x4ea7ee(0xb2)][a68_0x4ea7ee(0xb3)]);function a68_0x1ba9(){const _0x426794=['51702oWzyyc','2698676YWVxzx','nonProduction','user','9jzIHwT','skillHubDomain','3HjDDui','skillhub','8680bKHRGl','13fxAUaC','1214632HjSibd','production','7480TPefsn','runtimeDomain','2MEDacl','15996696qooOlM','144pGaqfz','42646snxZJp','domains','apiDomain','api','935765rrvlbh'];a68_0x1ba9=function(){return _0x426794;};return a68_0x1ba9();}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a68_0x4ea7ee(0xac)][a68_0x4ea7ee(0xbb)][a68_0x4ea7ee(0xae)]:PRODUCT_CONFIG[a68_0x4ea7ee(0xac)][a68_0x4ea7ee(0xb2)]['api']);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a68_0x4ea7ee(0xac)][a68_0x4ea7ee(0xbb)]['runtime']:PRODUCT_CONFIG[a68_0x4ea7ee(0xac)]['nonProduction']['runtime']);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a68_0x4ea7ee(0xac)][a68_0x4ea7ee(0xbb)]['skillhub']:PRODUCT_CONFIG['domains'][a68_0x4ea7ee(0xb2)][a68_0x4ea7ee(0xb7)]);
@@ -1 +1 @@
1
- const a69_0x57d0ba=a69_0x3e07;(function(_0x52eea2,_0x297f31){const _0x2817f2=a69_0x3e07,_0x782f76=_0x52eea2();while(!![]){try{const _0x2661e2=-parseInt(_0x2817f2(0x1dd))/0x1+-parseInt(_0x2817f2(0x1e0))/0x2*(-parseInt(_0x2817f2(0x1db))/0x3)+parseInt(_0x2817f2(0x1da))/0x4+parseInt(_0x2817f2(0x1e1))/0x5+-parseInt(_0x2817f2(0x1d5))/0x6*(-parseInt(_0x2817f2(0x1d9))/0x7)+-parseInt(_0x2817f2(0x1dc))/0x8*(-parseInt(_0x2817f2(0x1df))/0x9)+-parseInt(_0x2817f2(0x1e3))/0xa;if(_0x2661e2===_0x297f31)break;else _0x782f76['push'](_0x782f76['shift']());}catch(_0x223657){_0x782f76['push'](_0x782f76['shift']());}}}(a69_0x4f4e,0x1a383));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=['production','development','daily'];export function normalizeEnv(_0x46ee92){const _0x274e48=a69_0x3e07;return _0x46ee92===_0x274e48(0x1d8)?'production':_0x46ee92;}export function isProduction(_0x4de05d){const _0x45e0c5=a69_0x3e07;return normalizeEnv(_0x4de05d)===_0x45e0c5(0x1e2);}export function isDaily(_0x51b9fe){const _0x5847be=a69_0x3e07;return normalizeEnv(_0x51b9fe)===_0x5847be(0x1d6);}export function isDev(_0x3a209e){const _0x4c8129=a69_0x3e07,_0x1ffd72=normalizeEnv(_0x3a209e);return _0x1ffd72==='development'||_0x1ffd72===_0x4c8129(0x1de);}let env=normalizeEnv(productEnv(a69_0x57d0ba(0x1d7))||a69_0x57d0ba(0x1e2));function a69_0x4f4e(){const _0x3f9075=['dev','945873WBOQaQ','10HZbXGv','1015720kbLDgv','production','4925350ZFazFs','156414Yfylcq','daily','ENV','online','42HRAsEF','231008ECFpnr','48891HggaWv','8vmsNFe','3962aayKaE'];a69_0x4f4e=function(){return _0x3f9075;};return a69_0x4f4e();}export function getEnv(){return env;}function a69_0x3e07(_0x41828a,_0x5eba46){_0x41828a=_0x41828a-0x1d5;const _0x4f4e9c=a69_0x4f4e();let _0x3e0785=_0x4f4e9c[_0x41828a];return _0x3e0785;}export function initEnv(_0x3b1aa4){env=normalizeEnv(_0x3b1aa4);}
1
+ const a69_0x4b0c70=a69_0x3e7e;(function(_0x3e4797,_0x7cd1f){const _0x1d7bb0=a69_0x3e7e,_0xe5cccb=_0x3e4797();while(!![]){try{const _0x4161ce=parseInt(_0x1d7bb0(0xb9))/0x1*(parseInt(_0x1d7bb0(0xb6))/0x2)+parseInt(_0x1d7bb0(0xb1))/0x3+parseInt(_0x1d7bb0(0xb7))/0x4+parseInt(_0x1d7bb0(0xae))/0x5+-parseInt(_0x1d7bb0(0xaf))/0x6+-parseInt(_0x1d7bb0(0xb5))/0x7*(-parseInt(_0x1d7bb0(0xb2))/0x8)+parseInt(_0x1d7bb0(0xb0))/0x9*(-parseInt(_0x1d7bb0(0xb8))/0xa);if(_0x4161ce===_0x7cd1f)break;else _0xe5cccb['push'](_0xe5cccb['shift']());}catch(_0x431150){_0xe5cccb['push'](_0xe5cccb['shift']());}}}(a69_0x2a4d,0xa978a));function a69_0x2a4d(){const _0x23eb8d=['2089950YMtRAf','9vAGHdw','2648151mQvTHo','624lMDyPD','online','production','18795bULGgy','2sfyQks','2739860pJIlLd','30556930BzvCSn','1121851iajsNY','daily','development','5996045EqNjPQ'];a69_0x2a4d=function(){return _0x23eb8d;};return a69_0x2a4d();}import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a69_0x4b0c70(0xb4),a69_0x4b0c70(0xad),a69_0x4b0c70(0xba)];export function normalizeEnv(_0x5a65c2){const _0x31a9b7=a69_0x4b0c70;return _0x5a65c2===_0x31a9b7(0xb3)?_0x31a9b7(0xb4):_0x5a65c2;}export function isProduction(_0x1fceb7){const _0x30007e=a69_0x4b0c70;return normalizeEnv(_0x1fceb7)===_0x30007e(0xb4);}export function isDaily(_0x382308){return normalizeEnv(_0x382308)==='daily';}export function isDev(_0x8c0b51){const _0x542701=a69_0x4b0c70,_0x5379d3=normalizeEnv(_0x8c0b51);return _0x5379d3===_0x542701(0xad)||_0x5379d3==='dev';}let env=normalizeEnv(productEnv('ENV')||a69_0x4b0c70(0xb4));function a69_0x3e7e(_0x43157a,_0x203bfe){_0x43157a=_0x43157a-0xad;const _0x2a4d0e=a69_0x2a4d();let _0x3e7eb5=_0x2a4d0e[_0x43157a];return _0x3e7eb5;}export function getEnv(){return env;}export function initEnv(_0x182ef8){env=normalizeEnv(_0x182ef8);}
@@ -1 +1 @@
1
- function a70_0x420e(){const _0xe07467=['11eBGPav','4qsOXjy','90qeCHii','1578392zqigBW','224910QcfUDm','1AnEmMj','compress','421077KGmKqs','json','5857776burpJN','21GIhBvY','2030166EawhFS','768080XybNpY','195146oXVGTp'];a70_0x420e=function(){return _0xe07467;};return a70_0x420e();}const a70_0x30084a=a70_0x144d;function a70_0x144d(_0x4f4633,_0x41dc1f){_0x4f4633=_0x4f4633-0xaf;const _0x420e0a=a70_0x420e();let _0x144d38=_0x420e0a[_0x4f4633];return _0x144d38;}(function(_0x26c494,_0x238bd1){const _0x174eff=a70_0x144d,_0x34974f=_0x26c494();while(!![]){try{const _0x282fcd=parseInt(_0x174eff(0xaf))/0x1*(parseInt(_0x174eff(0xb7))/0x2)+-parseInt(_0x174eff(0xb1))/0x3+parseInt(_0x174eff(0xb9))/0x4*(parseInt(_0x174eff(0xb6))/0x5)+parseInt(_0x174eff(0xb5))/0x6+-parseInt(_0x174eff(0xb4))/0x7*(-parseInt(_0x174eff(0xbb))/0x8)+-parseInt(_0x174eff(0xba))/0x9*(parseInt(_0x174eff(0xbc))/0xa)+parseInt(_0x174eff(0xb8))/0xb*(-parseInt(_0x174eff(0xb3))/0xc);if(_0x282fcd===_0x238bd1)break;else _0x34974f['push'](_0x34974f['shift']());}catch(_0x5c95a7){_0x34974f['push'](_0x34974f['shift']());}}}(a70_0x420e,0x5015e));export const OUTPUT_FORMAT_VALUES=[a70_0x30084a(0xb2),'pretty',a70_0x30084a(0xb0)];
1
+ function a70_0x1046(_0x2e8785,_0x1e4bea){_0x2e8785=_0x2e8785-0xf3;const _0x42beb2=a70_0x42be();let _0x1046b7=_0x42beb2[_0x2e8785];return _0x1046b7;}function a70_0x42be(){const _0x2a8082=['48QsSQUi','json','6PRfHhI','34412sKSNkD','pretty','730041mmIHYx','1268661xEUgBU','9vikcjt','8996590CNmpLb','11209136czpJUL','82439mfRfun','470WGtCeP','1723700uOaSkW'];a70_0x42be=function(){return _0x2a8082;};return a70_0x42be();}const a70_0x4edec8=a70_0x1046;(function(_0x4434fb,_0x466faa){const _0xba554=a70_0x1046,_0xb5b617=_0x4434fb();while(!![]){try{const _0x88f152=-parseInt(_0xba554(0xff))/0x1+parseInt(_0xba554(0xfb))/0x2*(parseInt(_0xba554(0xfe))/0x3)+-parseInt(_0xba554(0xfc))/0x4*(parseInt(_0xba554(0xf7))/0x5)+parseInt(_0xba554(0xf9))/0x6*(-parseInt(_0xba554(0xf6))/0x7)+-parseInt(_0xba554(0xf5))/0x8*(-parseInt(_0xba554(0xf3))/0x9)+parseInt(_0xba554(0xf4))/0xa+-parseInt(_0xba554(0xf8))/0xb;if(_0x88f152===_0x466faa)break;else _0xb5b617['push'](_0xb5b617['shift']());}catch(_0xc80134){_0xb5b617['push'](_0xb5b617['shift']());}}}(a70_0x42be,0xab877));export const OUTPUT_FORMAT_VALUES=[a70_0x4edec8(0xfa),a70_0x4edec8(0xfd),'compress'];
@@ -1 +1 @@
1
- const a71_0x454e26=a71_0x3183;(function(_0x399bc6,_0x8a927){const _0x5cdd40=a71_0x3183,_0x440373=_0x399bc6();while(!![]){try{const _0x3e37ce=-parseInt(_0x5cdd40(0x17e))/0x1+-parseInt(_0x5cdd40(0x170))/0x2*(parseInt(_0x5cdd40(0x16a))/0x3)+-parseInt(_0x5cdd40(0x16c))/0x4*(parseInt(_0x5cdd40(0x17f))/0x5)+-parseInt(_0x5cdd40(0x17b))/0x6+-parseInt(_0x5cdd40(0x182))/0x7+parseInt(_0x5cdd40(0x179))/0x8*(-parseInt(_0x5cdd40(0x172))/0x9)+parseInt(_0x5cdd40(0x16e))/0xa*(parseInt(_0x5cdd40(0x171))/0xb);if(_0x3e37ce===_0x8a927)break;else _0x440373['push'](_0x440373['shift']());}catch(_0x2eefa2){_0x440373['push'](_0x440373['shift']());}}}(a71_0x55f8,0x1fb15));function a71_0x55f8(){const _0x600d76=['@lovrabet/lovrabet-cli','1365042uitFGV','legacyEnvPrefixes','7782cHtPVE','https://api.lovrabet.com','4tImtRv','SKIP_NPX_SKILLS','20OTHaEA','Lovrabet\x20Runtime\x20CLI','72MrYWNx','5278229FSGXhJ','1998927QvdTAZ','https://daily-api.lovrabet.com','.lovrabetrc','cli:lovrabet-runtime','https://skills.lovrabet.com','/user/ak','https://registry.npmjs.org','8VgYOOw','https://skills-daily.lovrabet.com','1215378qaJVFy','https://user-daily.lovrabet.com','.lovrabet','76759IawVSj','200250upFrov','.lovrabet.json'];a71_0x55f8=function(){return _0x600d76;};return a71_0x55f8();}export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a71_0x454e26(0x16f),'npmPackageName':a71_0x454e26(0x181),'skillSource':'lovrabet/lovrabet-cli','npmRegistryBaseUrl':a71_0x454e26(0x178),'envPrefix':'LOVRABET','legacyEnvPrefixes':['RABETBASE'],'configFileNames':[a71_0x454e26(0x180),a71_0x454e26(0x174)],'newConfigFileName':a71_0x454e26(0x180),'homeDirName':a71_0x454e26(0x17d),'logFileName':'.lovrabet-runtime.log','invokeSource':a71_0x454e26(0x175),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a71_0x454e26(0x16d),'domains':{'production':{'user':'https://user.lovrabet.com','api':a71_0x454e26(0x16b),'runtime':'https://runtime.lovrabet.com','skillhub':a71_0x454e26(0x176)},'nonProduction':{'user':a71_0x454e26(0x17c),'api':a71_0x454e26(0x173),'runtime':'https://daily-runtime.lovrabet.com','skillhub':a71_0x454e26(0x17a)}},'accessKeyCreatePath':a71_0x454e26(0x177)};export function productEnvName(_0x2282a3){return PRODUCT_CONFIG['envPrefix']+'_'+_0x2282a3;}function a71_0x3183(_0x59c56c,_0x3db67b){_0x59c56c=_0x59c56c-0x16a;const _0x55f8b4=a71_0x55f8();let _0x3183bd=_0x55f8b4[_0x59c56c];return _0x3183bd;}export function productEnvNames(_0x24c6ed){const _0x361c7e=a71_0x454e26;return[productEnvName(_0x24c6ed),...PRODUCT_CONFIG[_0x361c7e(0x183)]['map'](_0x5b05fc=>_0x5b05fc+'_'+_0x24c6ed)];}export function productEnv(_0x58ff09){for(const _0x1fc266 of productEnvNames(_0x58ff09)){const _0x50c28d=process.env[_0x1fc266];if(_0x50c28d!==undefined)return _0x50c28d;}return undefined;}
1
+ function a71_0x2795(_0x5d7aa2,_0x4c542e){_0x5d7aa2=_0x5d7aa2-0x16e;const _0x479459=a71_0x4794();let _0x2795e8=_0x479459[_0x5d7aa2];return _0x2795e8;}function a71_0x4794(){const _0xe9d141=['2941475ECBSeA','.lovrabet.json','lovrabet','771528EYeWHZ','https://runtime.lovrabet.com','.lovrabetrc','2421507QPIyaw','Lovrabet\x20User\x20Center','7piXlKT','.lovrabet-runtime.log','/user/ak','https://user.lovrabet.com','12520crDdAQ','SKIP_NPX_SKILLS','legacyEnvPrefixes','57900EdhsQC','@lovrabet/lovrabet-cli','3771rizenT','envPrefix','lovrabet/lovrabet-cli','96FRRpPu','.lovrabet','https://skills-daily.lovrabet.com','LOVRABET','https://daily-api.lovrabet.com','RABETBASE','2741796zcHOXG','Lovrabet\x20Runtime\x20CLI','9793BIkrRB','https://skills.lovrabet.com'];a71_0x4794=function(){return _0xe9d141;};return a71_0x4794();}const a71_0x44e80c=a71_0x2795;(function(_0x1f66f2,_0x442da8){const _0x397013=a71_0x2795,_0x45953a=_0x1f66f2();while(!![]){try{const _0x4addc5=-parseInt(_0x397013(0x184))/0x1*(-parseInt(_0x397013(0x18b))/0x2)+parseInt(_0x397013(0x182))/0x3+parseInt(_0x397013(0x178))/0x4+-parseInt(_0x397013(0x17c))/0x5+-parseInt(_0x397013(0x172))/0x6*(parseInt(_0x397013(0x17a))/0x7)+-parseInt(_0x397013(0x17f))/0x8+parseInt(_0x397013(0x16f))/0x9*(-parseInt(_0x397013(0x188))/0xa);if(_0x4addc5===_0x442da8)break;else _0x45953a['push'](_0x45953a['shift']());}catch(_0x281afb){_0x45953a['push'](_0x45953a['shift']());}}}(a71_0x4794,0x712c8));export const PRODUCT_CONFIG={'cliBinName':a71_0x44e80c(0x17e),'cliDisplayName':a71_0x44e80c(0x179),'npmPackageName':a71_0x44e80c(0x16e),'skillSource':a71_0x44e80c(0x171),'npmRegistryBaseUrl':'https://registry.npmjs.org','envPrefix':a71_0x44e80c(0x175),'legacyEnvPrefixes':[a71_0x44e80c(0x177)],'configFileNames':[a71_0x44e80c(0x17d),a71_0x44e80c(0x181)],'newConfigFileName':a71_0x44e80c(0x17d),'homeDirName':a71_0x44e80c(0x173),'logFileName':a71_0x44e80c(0x185),'invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a71_0x44e80c(0x183),'skipNpxSkillsEnvSuffix':a71_0x44e80c(0x189),'domains':{'production':{'user':a71_0x44e80c(0x187),'api':'https://api.lovrabet.com','runtime':a71_0x44e80c(0x180),'skillhub':a71_0x44e80c(0x17b)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':a71_0x44e80c(0x176),'runtime':'https://daily-runtime.lovrabet.com','skillhub':a71_0x44e80c(0x174)}},'accessKeyCreatePath':a71_0x44e80c(0x186)};export function productEnvName(_0x392f00){const _0x2b33df=a71_0x44e80c;return PRODUCT_CONFIG[_0x2b33df(0x170)]+'_'+_0x392f00;}export function productEnvNames(_0x29cfa5){const _0x48a2a6=a71_0x44e80c;return[productEnvName(_0x29cfa5),...PRODUCT_CONFIG[_0x48a2a6(0x18a)]['map'](_0x5d084d=>_0x5d084d+'_'+_0x29cfa5)];}export function productEnv(_0x476ffb){for(const _0x51a85f of productEnvNames(_0x476ffb)){const _0x4e661c=process.env[_0x51a85f];if(_0x4e661c!==undefined)return _0x4e661c;}return undefined;}
@@ -1 +1 @@
1
- function a72_0x5481(_0x42d491,_0x563677){_0x42d491=_0x42d491-0x1ad;const _0x1fe3f9=a72_0x1fe3();let _0x54819d=_0x1fe3f9[_0x42d491];return _0x54819d;}const a72_0x330559=a72_0x5481;(function(_0x312dd,_0x477580){const _0x15b33b=a72_0x5481,_0x579ab2=_0x312dd();while(!![]){try{const _0xde78b=parseInt(_0x15b33b(0x1b9))/0x1*(-parseInt(_0x15b33b(0x1b2))/0x2)+parseInt(_0x15b33b(0x1ad))/0x3+-parseInt(_0x15b33b(0x1b1))/0x4*(-parseInt(_0x15b33b(0x1b8))/0x5)+-parseInt(_0x15b33b(0x1b3))/0x6+-parseInt(_0x15b33b(0x1b7))/0x7*(-parseInt(_0x15b33b(0x1b5))/0x8)+-parseInt(_0x15b33b(0x1af))/0x9*(-parseInt(_0x15b33b(0x1b4))/0xa)+parseInt(_0x15b33b(0x1b0))/0xb;if(_0xde78b===_0x477580)break;else _0x579ab2['push'](_0x579ab2['shift']());}catch(_0x101f83){_0x579ab2['push'](_0x579ab2['shift']());}}}(a72_0x1fe3,0x458bf));function a72_0x1fe3(){const _0x565b33=['171mXAXta','745365htjLmN','read','9LVfUhd','761640nIOyAf','16ZPmvvk','6004Koshdn','763470JRVpqx','1396190YmxBpO','32UGrnst','high-risk-write','463771vIxeXi','253905PGXmiA'];a72_0x1fe3=function(){return _0x565b33;};return a72_0x1fe3();}export const RISK_LEVEL_VALUES=[a72_0x330559(0x1ae),'write',a72_0x330559(0x1b6)];
1
+ const a72_0x4f72f9=a72_0x5964;function a72_0x5cd2(){const _0x3394eb=['read','8178240gvBuVF','write','5676300lbmUZm','6880pAbVri','7870185QDSODA','1367esrDKn','1434unZdzZ','2610507BRGTEi','4YRchGd','6892047MPmYBo'];a72_0x5cd2=function(){return _0x3394eb;};return a72_0x5cd2();}function a72_0x5964(_0x59fdc4,_0x1149da){_0x59fdc4=_0x59fdc4-0xb3;const _0x5cd240=a72_0x5cd2();let _0x596472=_0x5cd240[_0x59fdc4];return _0x596472;}(function(_0x53ea56,_0x291741){const _0x248993=a72_0x5964,_0x52b837=_0x53ea56();while(!![]){try{const _0x5f533c=parseInt(_0x248993(0xba))/0x1*(parseInt(_0x248993(0xbb))/0x2)+-parseInt(_0x248993(0xbc))/0x3*(-parseInt(_0x248993(0xbd))/0x4)+-parseInt(_0x248993(0xb9))/0x5+parseInt(_0x248993(0xb7))/0x6+-parseInt(_0x248993(0xb5))/0x7+-parseInt(_0x248993(0xb8))/0x8+parseInt(_0x248993(0xb3))/0x9;if(_0x5f533c===_0x291741)break;else _0x52b837['push'](_0x52b837['shift']());}catch(_0x333e09){_0x52b837['push'](_0x52b837['shift']());}}}(a72_0x5cd2,0xc7eec));export const RISK_LEVEL_VALUES=[a72_0x4f72f9(0xb4),a72_0x4f72f9(0xb6),'high-risk-write'];