@lovrabet/lovrabet-cli 2.1.13-beta.1 → 2.1.13
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.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a55_0x492f3b=a55_0x2c5f;(function(_0x5b5b60,_0x377ea0){const _0x4836eb=a55_0x2c5f,_0x39d1ab=_0x5b5b60();while(!![]){try{const _0x4a303e=-parseInt(_0x4836eb(0x151))/0x1+parseInt(_0x4836eb(0x160))/0x2+-parseInt(_0x4836eb(0x169))/0x3+parseInt(_0x4836eb(0x14f))/0x4*(parseInt(_0x4836eb(0x15d))/0x5)+-parseInt(_0x4836eb(0x15e))/0x6*(-parseInt(_0x4836eb(0x163))/0x7)+-parseInt(_0x4836eb(0x15a))/0x8*(-parseInt(_0x4836eb(0x144))/0x9)+-parseInt(_0x4836eb(0x157))/0xa;if(_0x4a303e===_0x377ea0)break;else _0x39d1ab['push'](_0x39d1ab['shift']());}catch(_0x382c54){_0x39d1ab['push'](_0x39d1ab['shift']());}}}(a55_0x4b78,0xa4df4));import{CliErrors}from'../../errors.js';function a55_0x4b78(){const _0x3bf39e=['SKILL.md','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','592056OcJrpJ','trim','9WHLsZM','test','read','\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','Unsupported\x20Skill\x20type:\x20','.\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##\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','#\x20Output\x20Contract\x0a\x0a','validation','includes','801524AYVIRS','write','660705haeUWa','skillName','toISOString','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','.agents/skills','Invalid\x20Skill\x20name:\x20','18111870LfZmVk','references/output-contract.md','trainer','8054296RJhGON','\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','references/runtime-contract.md','10tOLMWm','2874390fLJEOq','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','1957762csIuLO','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','\x0a\x20\x20created:\x20\x22','14btrTDw','\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'];a55_0x4b78=function(){return _0x3bf39e;};return a55_0x4b78();}export const SKILL_TYPES=[a55_0x492f3b(0x150),a55_0x492f3b(0x146),a55_0x492f3b(0x159)];function a55_0x2c5f(_0x183e89,_0x185686){_0x183e89=_0x183e89-0x143;const _0x4b780e=a55_0x4b78();let _0x2c5f1e=_0x4b780e[_0x183e89];return _0x2c5f1e;}export const DEFAULT_SKILL_TARGET=a55_0x492f3b(0x155);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a55_0x492f3b(0x15c);export const OUTPUT_CONTRACT_FILE=a55_0x492f3b(0x158);export function validateSkillName(_0x209245){const _0x2420ca=a55_0x492f3b,_0x3ed7d2=_0x209245[_0x2420ca(0x143)]();if(!SKILL_NAME_PATTERN[_0x2420ca(0x145)](_0x3ed7d2))throw CliErrors[_0x2420ca(0x14d)](_0x2420ca(0x156)+_0x209245+_0x2420ca(0x149),_0x2420ca(0x166));return _0x3ed7d2;}export function normalizeSkillTemplateType(_0x3cfe45){const _0x48ca3b=a55_0x492f3b,_0x56bc2e=(_0x3cfe45||_0x48ca3b(0x150))[_0x48ca3b(0x143)]()||'write';if(SKILL_TYPES[_0x48ca3b(0x14e)](_0x56bc2e))return _0x56bc2e;throw CliErrors[_0x48ca3b(0x14d)](_0x48ca3b(0x148)+_0x3cfe45,'Use\x20one\x20of:\x20'+SKILL_TYPES['join'](',\x20')+'.');}export function renderSkillTemplate(_0x651769){const _0x5deea2=a55_0x492f3b,_0x434a8a=validateSkillName(_0x651769[_0x5deea2(0x152)]),_0x27c49d=normalizeSkillTemplateType(_0x651769['type']),_0x1f4ea2=_0x651769['timestamp']??new Date()[_0x5deea2(0x153)]();return{'skillName':_0x434a8a,'type':_0x27c49d,'files':[{'path':_0x5deea2(0x165),'content':renderSkillMd(_0x434a8a,_0x27c49d,_0x1f4ea2)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x434a8a,_0x27c49d)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x434a8a,_0x27c49d)}]};}function renderSkillMd(_0x45abe3,_0x2dd322,_0x4b88d5){const _0x519650=a55_0x492f3b,_0x3f5797=typeWorkflow(_0x2dd322);return'---\x0aname:\x20'+_0x45abe3+'\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20'+_0x2dd322+_0x519650(0x162)+_0x4b88d5+_0x519650(0x154)+_0x45abe3+_0x519650(0x147)+_0x3f5797+'\x0a\x0a'+businessStateSection(_0x2dd322)+_0x519650(0x164);}function renderRuntimeContract(_0x2c9a03,_0x2721cb){const _0xb81047=a55_0x492f3b,_0x4b16d1=_0x2721cb===_0xb81047(0x150)?_0xb81047(0x168):'';return'#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。'+_0x2c9a03+_0xb81047(0x14a)+_0x2721cb+_0xb81047(0x15b)+_0x4b16d1+'\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 renderOutputContract(_0x5604ef,_0x3cd00a){const _0x2142bd=a55_0x492f3b,_0x5d9d1e=_0x3cd00a===_0x2142bd(0x150)?'write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。':_0x3cd00a+_0x2142bd(0x15f);return _0x2142bd(0x14c)+_0x5604ef+_0x2142bd(0x14b)+_0x5d9d1e+'\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a';}function typeWorkflow(_0x3ddebe){const _0x321832=a55_0x492f3b;if(_0x3ddebe===_0x321832(0x146))return'1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。';if(_0x3ddebe===_0x321832(0x159))return'1.\x20受控模板预览:【填写待维护内容、影响范围和预览方式】\x0a2.\x20用户确认:【填写确认信息和不可省略的人工判断点】\x0a3.\x20受控维护:【填写确认后的维护步骤和记录方式】\x0a4.\x20只读核对:【填写维护后的核对入口、差异和回滚/修正方式】';return _0x321832(0x161);}function businessStateSection(_0x553d3a){const _0x5d02d6=a55_0x492f3b;if(_0x553d3a!=='write')return'';return _0x5d02d6(0x167);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a56_0x56a6eb=a56_0x4b6d;(function(_0x541962,_0x24e885){const _0x137f2c=a56_0x4b6d,_0x52c264=_0x541962();while(!![]){try{const _0x4575b7=parseInt(_0x137f2c(0x137))/0x1+parseInt(_0x137f2c(0x16a))/0x2+-parseInt(_0x137f2c(0x163))/0x3*(-parseInt(_0x137f2c(0x129))/0x4)+-parseInt(_0x137f2c(0x148))/0x5*(-parseInt(_0x137f2c(0x152))/0x6)+-parseInt(_0x137f2c(0x147))/0x7+-parseInt(_0x137f2c(0x151))/0x8+-parseInt(_0x137f2c(0x160))/0x9;if(_0x4575b7===_0x24e885)break;else _0x52c264['push'](_0x52c264['shift']());}catch(_0x5ef1f0){_0x52c264['push'](_0x52c264['shift']());}}}(a56_0x2c06,0x2ce70));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a56_0x1ca2ae}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a56_0x56a6eb(0x131),SUPPORTED_SKILL_TYPES=new Set([a56_0x56a6eb(0x158),a56_0x56a6eb(0x138),a56_0x56a6eb(0x14c)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x58b140,_0x2b3ea3={}){const _0x5c6937=a56_0x56a6eb,_0x28aa35=resolveSkillDirectoryRoot(_0x58b140),_0x4791df=[],_0x481f87=loadRequiredSkillFile(_0x28aa35,_0x4791df),_0x5611e9=_0x481f87?parseFrontmatter(_0x481f87[_0x5c6937(0x142)]):{'hasFrontmatter':![]};_0x481f87&&validateFrontmatter(_0x481f87['path'],_0x5611e9,_0x4791df);validateRuntimeCliReferences(_0x28aa35,_0x4791df);const _0x2c30c9=_0x4791df[_0x5c6937(0x167)](_0x1e01e2=>_0x1e01e2['level']==='error'),_0x468ecf=_0x4791df[_0x5c6937(0x167)](_0x4707b5=>_0x4707b5['level']==='warning');return{'ok':_0x2c30c9[_0x5c6937(0x170)]===0x0,'dir':_0x28aa35,'type':_0x5611e9[_0x5c6937(0x15a)],'errors':_0x2c30c9,'warnings':_0x468ecf};}function resolveSkillDirectoryRoot(_0x581773){const _0x238740=a56_0x56a6eb,_0x317e02=resolve(_0x581773);if(!existsSync(_0x317e02))throw CliErrors['validation']('Skill\x20directory\x20not\x20found:\x20'+_0x581773);const _0x45524e=lstatSync(_0x317e02);if(_0x45524e[_0x238740(0x112)]())return _0x317e02;if(_0x45524e[_0x238740(0x11d)]()){const _0xbbb5d=realpathSync(_0x317e02);if(lstatSync(_0xbbb5d)[_0x238740(0x112)]())return _0xbbb5d;}throw CliErrors[_0x238740(0x11b)](_0x238740(0x15c)+_0x581773);}export function throwIfSkillValidationFailed(_0x1aebc1,_0x348c33=![]){const _0x3eafb8=a56_0x56a6eb;if(_0x1aebc1['ok'])return;const _0x27a9ea=_0x1aebc1['errors'][_0x3eafb8(0x11c)](_0x35fe61=>{const _0x363fde=_0x3eafb8,_0x2cd275=_0x35fe61[_0x363fde(0x12b)]?'#'+_0x35fe61[_0x363fde(0x12b)]:'';return _0x35fe61[_0x363fde(0x16d)][_0x363fde(0x14a)]()+'\x20'+_0x35fe61[_0x363fde(0x13d)]+'\x20'+_0x35fe61[_0x363fde(0x141)]+_0x2cd275+':\x20'+_0x35fe61['message']+_0x363fde(0x14e)+_0x35fe61['suggestion'];});throw CliErrors['validation'](_0x3eafb8(0x14b)+_0x27a9ea['join']('\x0a'),_0x3eafb8(0x15b));}function loadRequiredSkillFile(_0x56fc1d,_0x163128){const _0x23e35f=a56_0x56a6eb,_0x4a30c9=resolve(_0x56fc1d,SKILL_FILE);if(!existsSync(_0x4a30c9))return _0x163128[_0x23e35f(0x144)](issue(_0x23e35f(0x156),_0x23e35f(0x125),SKILL_FILE,_0x23e35f(0x124),_0x23e35f(0x136))),undefined;const _0x25e34d=lstatSync(_0x4a30c9);if(_0x25e34d[_0x23e35f(0x11d)]())return _0x163128[_0x23e35f(0x144)](issue(_0x23e35f(0x156),_0x23e35f(0x125),SKILL_FILE,_0x23e35f(0x161),'Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.')),undefined;if(!_0x25e34d[_0x23e35f(0x168)]())return _0x163128[_0x23e35f(0x144)](issue(_0x23e35f(0x156),'structure-complete',SKILL_FILE,_0x23e35f(0x118),'Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x4a30c9,_0x23e35f(0x120))};}function validateFrontmatter(_0x3f1653,_0x1f06c3,_0x3a856b){const _0x9962f5=a56_0x56a6eb;if(!_0x1f06c3[_0x9962f5(0x119)]){_0x3a856b[_0x9962f5(0x144)](issue(_0x9962f5(0x156),_0x9962f5(0x145),_0x3f1653,'SKILL.md\x20must\x20start\x20with\x20frontmatter.',_0x9962f5(0x12a)));return;}!_0x1f06c3['name']?.['trim']()&&_0x3a856b['push'](issue(_0x9962f5(0x156),'frontmatter-required',_0x3f1653,_0x9962f5(0x126),_0x9962f5(0x154))),!_0x1f06c3['displayName']?.[_0x9962f5(0x12f)]()&&_0x3a856b[_0x9962f5(0x144)](issue(_0x9962f5(0x12d),_0x9962f5(0x123),_0x3f1653,_0x9962f5(0x16f),_0x9962f5(0x13b))),!_0x1f06c3['example']?.['trim']()&&_0x3a856b[_0x9962f5(0x144)](issue('warning',_0x9962f5(0x166),_0x3f1653,_0x9962f5(0x16c),'Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.')),!_0x1f06c3[_0x9962f5(0x150)]?.['trim']()&&_0x3a856b[_0x9962f5(0x144)](issue('error',_0x9962f5(0x15f),_0x3f1653,'Frontmatter\x20description\x20is\x20empty.',_0x9962f5(0x116))),_0x1f06c3[_0x9962f5(0x11a)]===!![]&&_0x3a856b[_0x9962f5(0x144)](issue(_0x9962f5(0x156),_0x9962f5(0x134),_0x3f1653,_0x9962f5(0x15e),_0x9962f5(0x117))),_0x1f06c3[_0x9962f5(0x15a)]?.[_0x9962f5(0x12f)]()&&!SUPPORTED_SKILL_TYPES[_0x9962f5(0x16e)](_0x1f06c3[_0x9962f5(0x15a)])&&_0x3a856b['push'](issue(_0x9962f5(0x156),'frontmatter-required',_0x3f1653,_0x9962f5(0x13f),_0x9962f5(0x14f)));}function validateRuntimeCliReferences(_0x47b35d,_0x43ca33){const _0x121ec6=a56_0x56a6eb;for(const _0x2834cb of findRabetbaseCliInvocations(_0x47b35d)){_0x43ca33[_0x121ec6(0x144)](issue(_0x121ec6(0x12d),_0x121ec6(0x164),_0x2834cb['file'],_0x121ec6(0x13c),_0x121ec6(0x169),'L'+_0x2834cb[_0x121ec6(0x113)]));}}function findRabetbaseCliInvocations(_0x117347){const _0x5ed9bf=a56_0x56a6eb;return scanSkillDirectory(_0x117347)[_0x5ed9bf(0x167)](_0xbd7e3c=>TEXT_SKILL_FILE_PATTERN['test'](_0xbd7e3c[_0x5ed9bf(0x115)]))[_0x5ed9bf(0x159)](_0x358e43=>{const _0xcc82ca=_0x5ed9bf,_0x196665=fileText(_0x358e43);return _0x196665[_0xcc82ca(0x146)](/\r?\n/)[_0xcc82ca(0x11c)]((_0x2bcc7b,_0x4e88d7)=>({'file':_0x358e43[_0xcc82ca(0x115)],'line':_0x4e88d7+0x1,'text':_0x2bcc7b}))[_0xcc82ca(0x167)](({text:_0x243f39})=>isRabetbaseCliInvocation(_0x243f39))[_0xcc82ca(0x11c)](({file:_0x3e3f72,line:_0x3ff385})=>({'file':_0x3e3f72,'line':_0x3ff385}));});}const RABETBASE_SUBCOMMANDS=['dataset',a56_0x56a6eb(0x133),a56_0x56a6eb(0x14d),a56_0x56a6eb(0x114),a56_0x56a6eb(0x132),a56_0x56a6eb(0x11e),a56_0x56a6eb(0x130),a56_0x56a6eb(0x155),a56_0x56a6eb(0x121),'kb',a56_0x56a6eb(0x153),a56_0x56a6eb(0x16b),a56_0x56a6eb(0x11f),a56_0x56a6eb(0x140),a56_0x56a6eb(0x165),a56_0x56a6eb(0x122)],RABETBASE_INVOCATION=new RegExp(String['raw']`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS['join']('|')})\b`+String[a56_0x56a6eb(0x15d)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x35f2e3){const _0x27840c=a56_0x56a6eb,_0x52c10b=_0x35f2e3['search'](/\brabetbase\b/i);if(_0x52c10b<0x0)return![];const _0x37e779=_0x35f2e3[_0x27840c(0x162)](_0x52c10b)[_0x27840c(0x146)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x27840c(0x12e)](_0x37e779);}function parseFrontmatter(_0x5ab9e1){const _0xf2f862=a56_0x56a6eb,_0x3a6f82=_0x5ab9e1['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x3a6f82)return{'hasFrontmatter':![]};const _0x232d23=_0x3a6f82[0x1]??'',_0x380960={'hasFrontmatter':!![]};let _0x1918c6;try{_0x1918c6=a56_0x1ca2ae(_0x232d23);}catch{return _0x380960;}const _0x27873b=asRecord(_0x1918c6);if(!_0x27873b)return _0x380960;_0x380960[_0xf2f862(0x157)]=scalarToString(_0x27873b[_0xf2f862(0x157)]),_0x380960[_0xf2f862(0x13a)]=scalarToString(_0x27873b[_0xf2f862(0x13a)]),_0x380960[_0xf2f862(0x150)]=scalarToString(_0x27873b[_0xf2f862(0x150)]),_0x380960[_0xf2f862(0x135)]=scalarToString(_0x27873b['example']);const _0x3c656b=asRecord(_0x27873b[_0xf2f862(0x171)]);return _0x3c656b&&(_0x380960[_0xf2f862(0x15a)]=scalarToString(_0x3c656b[_0xf2f862(0x15a)]),_0x380960['internal']=scalarToBoolean(_0x3c656b[_0xf2f862(0x11a)])),_0x380960;}function asRecord(_0x48298d){const _0x5dac72=a56_0x56a6eb;if(_0x48298d&&typeof _0x48298d==='object'&&!Array[_0x5dac72(0x128)](_0x48298d))return _0x48298d;return undefined;}function scalarToString(_0x24eaaf){const _0x2b64e1=a56_0x56a6eb;if(typeof _0x24eaaf===_0x2b64e1(0x13e))return _0x24eaaf['trim']();if(typeof _0x24eaaf===_0x2b64e1(0x143)||typeof _0x24eaaf===_0x2b64e1(0x139))return String(_0x24eaaf);return undefined;}function scalarToBoolean(_0x1fc6f5){const _0x787298=a56_0x56a6eb;if(typeof _0x1fc6f5===_0x787298(0x139))return _0x1fc6f5;if(typeof _0x1fc6f5===_0x787298(0x13e))return cleanBoolean(_0x1fc6f5);return undefined;}function a56_0x4b6d(_0x2d606e,_0x495317){_0x2d606e=_0x2d606e-0x112;const _0x2c06ac=a56_0x2c06();let _0x4b6db6=_0x2c06ac[_0x2d606e];return _0x4b6db6;}function cleanBoolean(_0x4baeae){const _0x2d3563=a56_0x56a6eb,_0x573061=_0x4baeae['trim']()[_0x2d3563(0x149)]();if(_0x573061===_0x2d3563(0x127))return!![];if(_0x573061===_0x2d3563(0x12c))return![];return undefined;}function a56_0x2c06(){const _0x16c54d=['Skill\x20directory\x20not\x20found:\x20','raw','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','description-required','14544ClFDmE','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','slice','321YAAzmQ','rabetbase-cli-reference','logs','example-recommended','filter','isFile','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','38732mupaZY','workspace','Frontmatter\x20example\x20is\x20missing.','level','has','Frontmatter\x20displayName\x20is\x20missing.','length','metadata','isDirectory','line','page','path','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','SKILL.md\x20is\x20not\x20a\x20file.','hasFrontmatter','internal','validation','map','isSymbolicLink','app','data','utf8','artifact','registry','display-name-recommended','Missing\x20SKILL.md.','structure-complete','Frontmatter\x20name\x20is\x20missing.','true','isArray','13652ndzMOm','Add\x20frontmatter\x20with\x20name\x20and\x20description.','section','false','warning','test','trim','schema','SKILL.md','project','sql','internal-skill','example','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','153846yEVaDL','read','boolean','displayName','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','ruleId','string','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','auth','file','content','number','push','frontmatter-required','split','1314824xBnlPP','15tsAIWa','toLowerCase','toUpperCase','Skill\x20validation\x20failed:\x0a','trainer','bff','\x20Fix:\x20','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.','description','2190640wkDgbl','217590VKKony','config','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','service','error','name','write','flatMap','type','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.'];a56_0x2c06=function(){return _0x16c54d;};return a56_0x2c06();}function issue(_0xac5ef,_0x1d232f,_0x26da27,_0x131588,_0x5607b8,_0x168469){return{'level':_0xac5ef,'ruleId':_0x1d232f,'file':_0x26da27,'section':_0x168469,'message':_0x131588,'suggestion':_0x5607b8};}
|
|
1
|
+
function a56_0x19b2(){const _0x543c03=['utf8','false','Skill\x20directory\x20not\x20found:\x20','boolean','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','line','split','5438JqPcGv','isSymbolicLink','slice','displayName','logs','write','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','level','join','auth','display-name-recommended','trim','workspace','Frontmatter\x20name\x20is\x20missing.','524193dSsqCi','33gdMvBf','metadata','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','\x20Fix:\x20','test','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','path','14050pWTQkF','isFile','page','config','632rMtmot','136104hNeQbT','push','23cDeMfZ','filter','file','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','Skill\x20validation\x20failed:\x0a','Frontmatter\x20description\x20is\x20empty.','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','2198130HsrfVg','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','internal','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','raw','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','736908dOYChf','error','description','section','3795120UldWXY','frontmatter-required','warning','21WPlUTa','length','app','number','SKILL.md\x20is\x20not\x20a\x20file.','trainer','project','suggestion','bff','Frontmatter\x20example\x20is\x20missing.','internal-skill','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','Missing\x20SKILL.md.','service','artifact','errors','9KkJPDq','search','description-required','content','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','structure-complete','string','SKILL.md\x20must\x20start\x20with\x20frontmatter.','isDirectory','map','true','Add\x20frontmatter\x20with\x20name\x20and\x20description.','object','isArray','toLowerCase','name','flatMap','example','dataset','Frontmatter\x20displayName\x20is\x20missing.','registry','type','read'];a56_0x19b2=function(){return _0x543c03;};return a56_0x19b2();}const a56_0x57a198=a56_0x4b2b;(function(_0x168588,_0x6ae14f){const _0x3a6ead=a56_0x4b2b,_0x1e997c=_0x168588();while(!![]){try{const _0x2b917b=-parseInt(_0x3a6ead(0x146))/0x1*(parseInt(_0x3a6ead(0x188))/0x2)+parseInt(_0x3a6ead(0x196))/0x3+-parseInt(_0x3a6ead(0x143))/0x4*(parseInt(_0x3a6ead(0x13f))/0x5)+-parseInt(_0x3a6ead(0x144))/0x6*(-parseInt(_0x3a6ead(0x15a))/0x7)+-parseInt(_0x3a6ead(0x157))/0x8*(-parseInt(_0x3a6ead(0x16a))/0x9)+parseInt(_0x3a6ead(0x14d))/0xa+-parseInt(_0x3a6ead(0x138))/0xb*(parseInt(_0x3a6ead(0x153))/0xc);if(_0x2b917b===_0x6ae14f)break;else _0x1e997c['push'](_0x1e997c['shift']());}catch(_0x3e0396){_0x1e997c['push'](_0x1e997c['shift']());}}}(a56_0x19b2,0x3c1e2));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a56_0x2f143b}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([a56_0x57a198(0x18d),a56_0x57a198(0x180),a56_0x57a198(0x15f)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x4d62b5,_0x460234={}){const _0x127800=a56_0x57a198,_0x4a669b=resolveSkillDirectoryRoot(_0x4d62b5),_0x4e58aa=[],_0x536c27=loadRequiredSkillFile(_0x4a669b,_0x4e58aa),_0x235add=_0x536c27?parseFrontmatter(_0x536c27[_0x127800(0x16d)]):{'hasFrontmatter':![]};_0x536c27&&validateFrontmatter(_0x536c27['path'],_0x235add,_0x4e58aa);validateRuntimeCliReferences(_0x4a669b,_0x4e58aa);const _0xeb74d9=_0x4e58aa[_0x127800(0x147)](_0x4efdd0=>_0x4efdd0[_0x127800(0x18f)]===_0x127800(0x154)),_0x339745=_0x4e58aa['filter'](_0x1f87b4=>_0x1f87b4[_0x127800(0x18f)]===_0x127800(0x159));return{'ok':_0xeb74d9[_0x127800(0x15b)]===0x0,'dir':_0x4a669b,'type':_0x235add[_0x127800(0x17f)],'errors':_0xeb74d9,'warnings':_0x339745};}function resolveSkillDirectoryRoot(_0x1ba96e){const _0x3ca921=a56_0x57a198,_0x54d3ed=resolve(_0x1ba96e);if(!existsSync(_0x54d3ed))throw CliErrors['validation'](_0x3ca921(0x183)+_0x1ba96e);const _0x5969c5=lstatSync(_0x54d3ed);if(_0x5969c5[_0x3ca921(0x172)]())return _0x54d3ed;if(_0x5969c5['isSymbolicLink']()){const _0x270403=realpathSync(_0x54d3ed);if(lstatSync(_0x270403)[_0x3ca921(0x172)]())return _0x270403;}throw CliErrors['validation']('Skill\x20directory\x20not\x20found:\x20'+_0x1ba96e);}export function throwIfSkillValidationFailed(_0x467cfc,_0x407186=![]){const _0x1cb233=a56_0x57a198;if(_0x467cfc['ok'])return;const _0x25bd03=_0x467cfc[_0x1cb233(0x169)][_0x1cb233(0x173)](_0x53406f=>{const _0x404b6b=_0x1cb233,_0x4af66b=_0x53406f['section']?'#'+_0x53406f[_0x404b6b(0x156)]:'';return _0x53406f[_0x404b6b(0x18f)]['toUpperCase']()+'\x20'+_0x53406f['ruleId']+'\x20'+_0x53406f[_0x404b6b(0x148)]+_0x4af66b+':\x20'+_0x53406f['message']+_0x404b6b(0x13b)+_0x53406f[_0x404b6b(0x161)];});throw CliErrors['validation'](_0x1cb233(0x14a)+_0x25bd03['join']('\x0a'),_0x1cb233(0x165));}function a56_0x4b2b(_0xb66968,_0x6f1b27){_0xb66968=_0xb66968-0x138;const _0x19b2be=a56_0x19b2();let _0x4b2bac=_0x19b2be[_0xb66968];return _0x4b2bac;}function loadRequiredSkillFile(_0x308c70,_0x585ec9){const _0x23de09=a56_0x57a198,_0x5d5e56=resolve(_0x308c70,SKILL_FILE);if(!existsSync(_0x5d5e56))return _0x585ec9[_0x23de09(0x145)](issue(_0x23de09(0x154),'structure-complete',SKILL_FILE,_0x23de09(0x166),_0x23de09(0x185))),undefined;const _0x3091ee=lstatSync(_0x5d5e56);if(_0x3091ee[_0x23de09(0x189)]())return _0x585ec9[_0x23de09(0x145)](issue('error',_0x23de09(0x16f),SKILL_FILE,_0x23de09(0x14e),'Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.')),undefined;if(!_0x3091ee[_0x23de09(0x140)]())return _0x585ec9[_0x23de09(0x145)](issue(_0x23de09(0x154),_0x23de09(0x16f),SKILL_FILE,_0x23de09(0x15e),_0x23de09(0x149))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x5d5e56,_0x23de09(0x181))};}function validateFrontmatter(_0x15fef6,_0x28020d,_0x535408){const _0x119895=a56_0x57a198;if(!_0x28020d['hasFrontmatter']){_0x535408[_0x119895(0x145)](issue(_0x119895(0x154),_0x119895(0x158),_0x15fef6,_0x119895(0x171),_0x119895(0x175)));return;}!_0x28020d[_0x119895(0x179)]?.[_0x119895(0x193)]()&&_0x535408[_0x119895(0x145)](issue(_0x119895(0x154),_0x119895(0x158),_0x15fef6,_0x119895(0x195),_0x119895(0x13d))),!_0x28020d['displayName']?.[_0x119895(0x193)]()&&_0x535408['push'](issue(_0x119895(0x159),_0x119895(0x192),_0x15fef6,_0x119895(0x17d),_0x119895(0x14c))),!_0x28020d['example']?.[_0x119895(0x193)]()&&_0x535408[_0x119895(0x145)](issue('warning','example-recommended',_0x15fef6,_0x119895(0x163),'Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.')),!_0x28020d['description']?.[_0x119895(0x193)]()&&_0x535408[_0x119895(0x145)](issue(_0x119895(0x154),_0x119895(0x16c),_0x15fef6,_0x119895(0x14b),_0x119895(0x150))),_0x28020d[_0x119895(0x14f)]===!![]&&_0x535408[_0x119895(0x145)](issue(_0x119895(0x154),_0x119895(0x164),_0x15fef6,_0x119895(0x18e),_0x119895(0x16e))),_0x28020d[_0x119895(0x17f)]?.[_0x119895(0x193)]()&&!SUPPORTED_SKILL_TYPES['has'](_0x28020d[_0x119895(0x17f)])&&_0x535408[_0x119895(0x145)](issue(_0x119895(0x154),'frontmatter-required',_0x15fef6,_0x119895(0x13a),'Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.'));}function validateRuntimeCliReferences(_0x4b3139,_0x1ce16f){const _0x5e0027=a56_0x57a198;for(const _0x24eb45 of findRabetbaseCliInvocations(_0x4b3139)){_0x1ce16f['push'](issue(_0x5e0027(0x159),'rabetbase-cli-reference',_0x24eb45[_0x5e0027(0x148)],'This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.',_0x5e0027(0x152),'L'+_0x24eb45[_0x5e0027(0x186)]));}}function findRabetbaseCliInvocations(_0x15f89e){const _0x491ba8=a56_0x57a198;return scanSkillDirectory(_0x15f89e)[_0x491ba8(0x147)](_0x51e376=>TEXT_SKILL_FILE_PATTERN['test'](_0x51e376[_0x491ba8(0x13e)]))[_0x491ba8(0x17a)](_0xddd333=>{const _0x4cce73=_0x491ba8,_0x47ac75=fileText(_0xddd333);return _0x47ac75[_0x4cce73(0x187)](/\r?\n/)[_0x4cce73(0x173)]((_0x4c2be9,_0x2d1315)=>({'file':_0xddd333[_0x4cce73(0x13e)],'line':_0x2d1315+0x1,'text':_0x4c2be9}))[_0x4cce73(0x147)](({text:_0x1629b4})=>isRabetbaseCliInvocation(_0x1629b4))[_0x4cce73(0x173)](({file:_0xcc53f6,line:_0x3ea39a})=>({'file':_0xcc53f6,'line':_0x3ea39a}));});}const RABETBASE_SUBCOMMANDS=[a56_0x57a198(0x17c),'sql',a56_0x57a198(0x162),a56_0x57a198(0x141),a56_0x57a198(0x160),a56_0x57a198(0x15c),'schema',a56_0x57a198(0x167),a56_0x57a198(0x168),'kb',a56_0x57a198(0x142),a56_0x57a198(0x194),'data',a56_0x57a198(0x191),a56_0x57a198(0x18c),a56_0x57a198(0x17e)],RABETBASE_INVOCATION=new RegExp(String[a56_0x57a198(0x151)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a56_0x57a198(0x190)]('|')})\b`+String[a56_0x57a198(0x151)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x385625){const _0x238a88=a56_0x57a198,_0x257f5a=_0x385625[_0x238a88(0x16b)](/\brabetbase\b/i);if(_0x257f5a<0x0)return![];const _0x2584c7=_0x385625[_0x238a88(0x18a)](_0x257f5a)[_0x238a88(0x187)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x238a88(0x13c)](_0x2584c7);}function parseFrontmatter(_0x108e7d){const _0x569ca0=a56_0x57a198,_0x21f177=_0x108e7d['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x21f177)return{'hasFrontmatter':![]};const _0xe27a1e=_0x21f177[0x1]??'',_0x10d35e={'hasFrontmatter':!![]};let _0x409d75;try{_0x409d75=a56_0x2f143b(_0xe27a1e);}catch{return _0x10d35e;}const _0x3c446e=asRecord(_0x409d75);if(!_0x3c446e)return _0x10d35e;_0x10d35e[_0x569ca0(0x179)]=scalarToString(_0x3c446e[_0x569ca0(0x179)]),_0x10d35e[_0x569ca0(0x18b)]=scalarToString(_0x3c446e['displayName']),_0x10d35e[_0x569ca0(0x155)]=scalarToString(_0x3c446e['description']),_0x10d35e['example']=scalarToString(_0x3c446e[_0x569ca0(0x17b)]);const _0x523bab=asRecord(_0x3c446e[_0x569ca0(0x139)]);return _0x523bab&&(_0x10d35e[_0x569ca0(0x17f)]=scalarToString(_0x523bab[_0x569ca0(0x17f)]),_0x10d35e['internal']=scalarToBoolean(_0x523bab[_0x569ca0(0x14f)])),_0x10d35e;}function asRecord(_0x19ef0a){const _0x4e711f=a56_0x57a198;if(_0x19ef0a&&typeof _0x19ef0a===_0x4e711f(0x176)&&!Array[_0x4e711f(0x177)](_0x19ef0a))return _0x19ef0a;return undefined;}function scalarToString(_0x192fe7){const _0x47c0aa=a56_0x57a198;if(typeof _0x192fe7===_0x47c0aa(0x170))return _0x192fe7['trim']();if(typeof _0x192fe7===_0x47c0aa(0x15d)||typeof _0x192fe7===_0x47c0aa(0x184))return String(_0x192fe7);return undefined;}function scalarToBoolean(_0x38dbdf){const _0x253ee0=a56_0x57a198;if(typeof _0x38dbdf===_0x253ee0(0x184))return _0x38dbdf;if(typeof _0x38dbdf===_0x253ee0(0x170))return cleanBoolean(_0x38dbdf);return undefined;}function cleanBoolean(_0x22be1c){const _0x23d434=a56_0x57a198,_0x1e74a9=_0x22be1c[_0x23d434(0x193)]()[_0x23d434(0x178)]();if(_0x1e74a9===_0x23d434(0x174))return!![];if(_0x1e74a9===_0x23d434(0x182))return![];return undefined;}function issue(_0x2e8e07,_0x85ae35,_0x5b5ed7,_0x166809,_0x5b3b4c,_0x44b91e){return{'level':_0x2e8e07,'ruleId':_0x85ae35,'file':_0x5b5ed7,'section':_0x44b91e,'message':_0x166809,'suggestion':_0x5b3b4c};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a57_0x55f9d3=a57_0x18d3;(function(_0x25679b,_0x28a99f){const _0x561e08=a57_0x18d3,_0xb5ba23=_0x25679b();while(!![]){try{const _0x227c71=-parseInt(_0x561e08(0xdb))/0x1*(-parseInt(_0x561e08(0xdd))/0x2)+parseInt(_0x561e08(0xd9))/0x3*(-parseInt(_0x561e08(0xd6))/0x4)+parseInt(_0x561e08(0xd5))/0x5*(-parseInt(_0x561e08(0xe2))/0x6)+parseInt(_0x561e08(0xda))/0x7+-parseInt(_0x561e08(0xe1))/0x8*(-parseInt(_0x561e08(0xdc))/0x9)+-parseInt(_0x561e08(0xde))/0xa+-parseInt(_0x561e08(0xd4))/0xb*(-parseInt(_0x561e08(0xdf))/0xc);if(_0x227c71===_0x28a99f)break;else _0xb5ba23['push'](_0xb5ba23['shift']());}catch(_0xdb3c06){_0xb5ba23['push'](_0xb5ba23['shift']());}}}(a57_0x1eac,0xb8650));function a57_0x1eac(){const _0xec66c9=['8GvAuvK','376806HrjySJ','sqlContent','dbId','bool','sqlcode','sqlName','sql','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','44rMrrhC','110bZokSb','16VzOqju','description','appCode','24207eGOAvo','153328ZwhNBu','11GSmxKv','3646557PwYMyx','228090ZWrAnb','1849020uOnJjJ','2017524ttJAOS','verbose'];a57_0x1eac=function(){return _0xec66c9;};return a57_0x1eac();}import{getSqlQueryInfo}from'../../core/api-client.js';function a57_0x18d3(_0x355876,_0x29bb77){_0x355876=_0x355876-0xd0;const _0x1eac8b=a57_0x1eac();let _0x18d33f=_0x1eac8b[_0x355876];return _0x18d33f;}import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a57_0x55f9d3(0xd2),'command':'detail','description':a57_0x55f9d3(0xd3),'risk':'read','flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x14d03f){const _0x3eb57e=a57_0x55f9d3,_0x48650d=await getSqlQueryInfo(_0x14d03f[_0x3eb57e(0xd8)],_0x14d03f['str'](_0x3eb57e(0xd0))),_0x2d949e=_0x14d03f[_0x3eb57e(0xe5)](_0x3eb57e(0xe0));if(_0x2d949e)return{'ok':!![],'data':_0x48650d};const _0x4c6f05=_0x48650d[_0x3eb57e(0xe4)]?await getDbName(_0x14d03f['appCode'],_0x48650d[_0x3eb57e(0xe4)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x48650d['sqlCode'],'sqlName':_0x48650d[_0x3eb57e(0xd1)],'db':_0x4c6f05?_0x4c6f05+'\x20('+_0x48650d[_0x3eb57e(0xe4)]+')':_0x48650d[_0x3eb57e(0xe4)]??'','description':_0x48650d[_0x3eb57e(0xd7)]??'','sqlContent':_0x48650d[_0x3eb57e(0xe3)]??''}};}};
|
package/lib/commands/sql/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a58_0xbdee07=a58_0x314f;(function(_0x2ef81b,_0x3a48b2){const _0x452640=a58_0x314f,_0x31f06d=_0x2ef81b();while(!![]){try{const _0x2734aa=-parseInt(_0x452640(0xb2))/0x1+parseInt(_0x452640(0xb3))/0x2*(-parseInt(_0x452640(0xae))/0x3)+-parseInt(_0x452640(0xbd))/0x4*(parseInt(_0x452640(0xb0))/0x5)+-parseInt(_0x452640(0xba))/0x6*(-parseInt(_0x452640(0xbf))/0x7)+parseInt(_0x452640(0xb5))/0x8+-parseInt(_0x452640(0xb7))/0x9*(-parseInt(_0x452640(0xc1))/0xa)+parseInt(_0x452640(0xc3))/0xb;if(_0x2734aa===_0x3a48b2)break;else _0x31f06d['push'](_0x31f06d['shift']());}catch(_0x264d69){_0x31f06d['push'](_0x31f06d['shift']());}}}(a58_0x2f95,0x39d82));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a58_0x314f(_0x248e96,_0x16ae75){_0x248e96=_0x248e96-0xae;const _0x2f9513=a58_0x2f95();let _0x314fbd=_0x2f9513[_0x248e96];return _0x314fbd;}import{parseJsonParams}from'../../utils/params.js';function a58_0x2f95(){const _0x53714b=['30ubRCCc','sql','1441297EbeOWW','execSuccess','isArray','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','execError','27243qvNdHJ','SQL\x20execution\x20failed','3535BUawQv','now','242063Ofmwrl','58ZMjCdf','sqlcode','23032XpSIVA','params','1002195SuBYpl','str','length','888864ekozca','read','execResult','124mVjJKK','exec','14WNluTJ','\x20row(s)\x20in\x20'];a58_0x2f95=function(){return _0x53714b;};return a58_0x2f95();}export const sqlExec={'service':a58_0xbdee07(0xc2),'command':a58_0xbdee07(0xbe),'description':a58_0xbdee07(0xc6),'risk':a58_0xbdee07(0xbb),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x396f0b){const _0x50f582=a58_0xbdee07,_0x9f7ec0=parseJsonParams(_0x396f0b[_0x50f582(0xb8)](_0x50f582(0xb6))),_0x1de77a=Date[_0x50f582(0xb1)](),_0xe49e07=await executeSdkSql(_0x396f0b[_0x50f582(0xb8)](_0x50f582(0xb4)),_0x9f7ec0),_0x9d731d=Date['now']()-_0x1de77a,_0x5894d3=_0xe49e07?.[_0x50f582(0xbc)]??_0xe49e07,_0x53439b=_0xe49e07?.[_0x50f582(0xc4)]??!![];if(!_0x53439b)return{'ok':![],'data':{'error':_0xe49e07?.[_0x50f582(0xc7)]||_0x50f582(0xaf),'elapsed':_0x9d731d},'message':_0x50f582(0xaf)};const _0x54baa8=Array[_0x50f582(0xc5)](_0x5894d3)?_0x5894d3:[];return{'ok':!![],'data':{'rows':_0x54baa8,'rowCount':_0x54baa8[_0x50f582(0xb9)],'elapsed':_0x9d731d},'message':'Returned\x20'+_0x54baa8['length']+_0x50f582(0xc0)+_0x9d731d+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x420b23,_0x46d78b){const _0x1a48bb=a59_0x5819,_0x10d37a=_0x420b23();while(!![]){try{const _0x319eba=-parseInt(_0x1a48bb(0x1d6))/0x1*(parseInt(_0x1a48bb(0x1d4))/0x2)+parseInt(_0x1a48bb(0x1d5))/0x3*(parseInt(_0x1a48bb(0x1dc))/0x4)+parseInt(_0x1a48bb(0x1d7))/0x5*(parseInt(_0x1a48bb(0x1dd))/0x6)+parseInt(_0x1a48bb(0x1da))/0x7*(parseInt(_0x1a48bb(0x1d9))/0x8)+parseInt(_0x1a48bb(0x1d8))/0x9+-parseInt(_0x1a48bb(0x1db))/0xa*(-parseInt(_0x1a48bb(0x1de))/0xb)+-parseInt(_0x1a48bb(0x1df))/0xc;if(_0x319eba===_0x46d78b)break;else _0x10d37a['push'](_0x10d37a['shift']());}catch(_0x2df816){_0x10d37a['push'](_0x10d37a['shift']());}}}(a59_0x98ce,0x20a1a));import{sqlDetail}from'../../commands/sql/detail.js';function a59_0x98ce(){const _0x2bcf5b=['14MHmsDu','1452MAEOnH','27809MHbdSZ','325735kDVTOr','1249983rBKZwU','24QGDqXM','596841UdDXll','610KBAFTw','296gynKUZ','12RZSWxb','29733NMTUTz','4768176HkqeaL'];a59_0x98ce=function(){return _0x2bcf5b;};return a59_0x98ce();}import{sqlExec}from'../../commands/sql/exec.js';function a59_0x5819(_0x5a0855,_0x49a77c){_0x5a0855=_0x5a0855-0x1d4;const _0x98cee6=a59_0x98ce();let _0x58192f=_0x98cee6[_0x5a0855];return _0x58192f;}export const sqlDefinitions=[sqlDetail,sqlExec];
|
package/lib/commands/update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a60_0x2461(){const _0x36bed6=['message','entries','skills','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','args','Checking\x20CLI\x20Built-in\x20Skill...','string','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','source','stdout','log','npm','180579oDOXYF','validation','Checking\x20npm\x20dist-tags...','match','1832556DbGCmI','error','Version\x20comparison\x20failed.','version','4703103SdVrxa','pipe','minor','2940570yrRIgq','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','exit\x20','Updated\x20to\x20v','str','Update\x20','write','\x20version\x20from\x20npm.','status','Update\x20failed:\x20','unknown','303259hELMcf','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','bool','184rfDuVI','stderr','620605cJoQdJ','latest','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','nonInteractive','no-skills','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','update','join','cwd','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','Unable\x20to\x20resolve\x20','map','Install\x20a\x20specific\x20CLI\x20version','166QNURxN','prerelease','trim','filter','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','20142ohmaCf','boolean','\x20CLI\x20from\x20npm','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','patch','flag','/dist-tags','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','Current\x20version:\x20','toString','warn','/-/package/','run','inherit','skipped','beta','object','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','install','4yHnsiD'];a60_0x2461=function(){return _0x36bed6;};return a60_0x2461();}const a60_0x56ea7d=a60_0xe430;(function(_0x217559,_0x363523){const _0x3c2de8=a60_0xe430,_0x286e47=_0x217559();while(!![]){try{const _0x377a13=-parseInt(_0x3c2de8(0x1a0))/0x1+-parseInt(_0x3c2de8(0x1b4))/0x2*(-parseInt(_0x3c2de8(0x1b9))/0x3)+-parseInt(_0x3c2de8(0x1cc))/0x4*(-parseInt(_0x3c2de8(0x1a5))/0x5)+parseInt(_0x3c2de8(0x18e))/0x6+-parseInt(_0x3c2de8(0x1d9))/0x7*(parseInt(_0x3c2de8(0x1a3))/0x8)+parseInt(_0x3c2de8(0x192))/0x9+-parseInt(_0x3c2de8(0x195))/0xa;if(_0x377a13===_0x363523)break;else _0x286e47['push'](_0x286e47['shift']());}catch(_0x1521ff){_0x286e47['push'](_0x286e47['shift']());}}}(a60_0x2461,0x4dd09));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';import{getCliVersion}from'../utils/version.js';function a60_0xe430(_0x50d404,_0x5b1a19){_0x50d404=_0x50d404-0x18e;const _0x24614c=a60_0x2461();let _0xe43027=_0x24614c[_0x50d404];return _0xe43027;}import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':a60_0x56ea7d(0x1a6),'type':a60_0x56ea7d(0x1ba),'description':'Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','default':![]},{'name':'beta','type':a60_0x56ea7d(0x1ba),'description':a60_0x56ea7d(0x1a8),'default':![]},{'name':a60_0x56ea7d(0x191),'type':a60_0x56ea7d(0x1d3),'description':a60_0x56ea7d(0x1b3)},{'name':'no-skills','type':a60_0x56ea7d(0x1ba),'description':a60_0x56ea7d(0x1d0),'default':![]},{'name':a60_0x56ea7d(0x1cf),'type':a60_0x56ea7d(0x1ba),'description':'Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','default':!![],'hidden':!![]}];function parseSemver(_0x42c4a9){const _0x128344=a60_0x56ea7d,_0x4d7abe=_0x42c4a9[_0x128344(0x1b6)]()[_0x128344(0x1dc)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x4d7abe)return null;return{'major':Number(_0x4d7abe[0x1]),'minor':Number(_0x4d7abe[0x2]),'patch':Number(_0x4d7abe[0x3]),'prerelease':_0x4d7abe[0x4]};}function compareSemver(_0x4450ea,_0x40097c){const _0x280134=a60_0x56ea7d,_0x607ef7=parseSemver(_0x4450ea),_0x50fdee=parseSemver(_0x40097c);if(!_0x607ef7||!_0x50fdee)throw CliErrors[_0x280134(0x1da)](_0x280134(0x190),_0x280134(0x1bc));for(const _0x12a122 of['major',_0x280134(0x194),_0x280134(0x1bd)]){if(_0x607ef7[_0x12a122]<_0x50fdee[_0x12a122])return-0x1;if(_0x607ef7[_0x12a122]>_0x50fdee[_0x12a122])return 0x1;}if(!_0x607ef7['prerelease']&&!_0x50fdee[_0x280134(0x1b5)])return 0x0;if(!_0x607ef7[_0x280134(0x1b5)])return 0x1;if(!_0x50fdee[_0x280134(0x1b5)])return-0x1;if(_0x607ef7[_0x280134(0x1b5)]===_0x50fdee[_0x280134(0x1b5)])return 0x0;return _0x607ef7['prerelease']<_0x50fdee['prerelease']?-0x1:0x1;}function getRequestedVersion(_0x43d854){const _0x5428fc=a60_0x56ea7d,_0x3792fd=_0x43d854[_0x5428fc(0x199)]('version')[_0x5428fc(0x1b6)]();if(_0x3792fd)return _0x3792fd;return String(_0x43d854[_0x5428fc(0x1d1)]?.[0x0]??'')[_0x5428fc(0x1b6)]();}function shouldSkipCliBuiltInSkill(_0x509f48){const _0x68ffb9=a60_0x56ea7d;return _0x509f48[_0x68ffb9(0x1a2)](_0x68ffb9(0x1aa))||_0x509f48[_0x68ffb9(0x1be)](_0x68ffb9(0x1cf))===![];}async function validateUpdateFlags(_0x22a98d){const _0x466a3b=a60_0x56ea7d,_0x468813=getRequestedVersion(_0x22a98d),_0x4476c3=[_0x22a98d['bool'](_0x466a3b(0x1a6))?_0x466a3b(0x1a6):'',_0x22a98d[_0x466a3b(0x1a2)](_0x466a3b(0x1c8))?_0x466a3b(0x1c8):'',_0x468813?_0x466a3b(0x191):''][_0x466a3b(0x1b7)](Boolean);if(_0x4476c3['length']>0x1)throw CliErrors[_0x466a3b(0x1da)](_0x466a3b(0x1ca),_0x466a3b(0x1c0));if(_0x468813&&!parseSemver(_0x468813))throw CliErrors[_0x466a3b(0x1da)]('Invalid\x20version:\x20'+_0x468813,_0x466a3b(0x1ac));}async function fetchNpmDistTags(){const _0x1dfd71=a60_0x56ea7d;try{const _0x16116f=NPM_REGISTRY_BASE_URL+_0x1dfd71(0x1c4)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x1dfd71(0x1bf),_0x2ba168=await fetch(_0x16116f,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x2ba168['ok'])return null;const _0x457e71=await _0x2ba168['json']();if(!_0x457e71||typeof _0x457e71!==_0x1dfd71(0x1c9))return null;return Object['fromEntries'](Object[_0x1dfd71(0x1ce)](_0x457e71)[_0x1dfd71(0x1b7)](([,_0x560939])=>typeof _0x560939===_0x1dfd71(0x1d3)&&_0x560939['trim']())[_0x1dfd71(0x1b2)](([_0x32a543,_0xe4a1c])=>[_0x32a543,String(_0xe4a1c)[_0x1dfd71(0x1b6)]()]));}catch{return null;}}async function resolveTargetVersion(_0x33914d){const _0x133161=a60_0x56ea7d,_0x22385a=getRequestedVersion(_0x33914d);if(_0x22385a)return{'version':_0x22385a,'source':_0x133161(0x191)};const _0x237179=_0x33914d[_0x133161(0x1a2)](_0x133161(0x1c8))?_0x133161(0x1c8):_0x133161(0x1a6),_0x333d1f=await fetchNpmDistTags(),_0x58f1e4=_0x333d1f?.[_0x237179];if(!_0x58f1e4)return null;return{'version':_0x58f1e4,'source':_0x237179};}function shouldInstallTarget(_0x13aae1,_0x45ffbc){const _0x5c6475=a60_0x56ea7d,_0x4a11f6=compareSemver(_0x13aae1,_0x45ffbc[_0x5c6475(0x191)]);if(_0x45ffbc[_0x5c6475(0x1d5)]==='version')return _0x4a11f6!==0x0;return _0x4a11f6<0x0;}function installCliPackage(_0x5329e5,_0x5b0b50){const _0x133f35=a60_0x56ea7d,_0x1baa3e=resolveNpmBin(_0x133f35(0x1d8)),_0x292b40=[_0x133f35(0x1cb),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x5329e5];console[_0x133f35(0x1d7)]('*\x20'+[_0x1baa3e,..._0x292b40][_0x133f35(0x1ae)]('\x20'));const _0x367d28=spawnSync(_0x1baa3e,_0x292b40,{'cwd':process[_0x133f35(0x1af)](),'stdio':_0x5b0b50?'pipe':'inherit','env':process.env,'shell':![]});if(_0x367d28[_0x133f35(0x19d)]===0x0)return{'ok':!![]};let _0x44500e=_0x367d28[_0x133f35(0x18f)]?.[_0x133f35(0x1cd)]||_0x133f35(0x197)+(_0x367d28[_0x133f35(0x19d)]??_0x133f35(0x19f));if(_0x5b0b50){const _0x3dcddd=_0x367d28['stderr']?_0x367d28[_0x133f35(0x1a4)][_0x133f35(0x1c2)]()[_0x133f35(0x1b6)]():'',_0x39a49b=_0x367d28[_0x133f35(0x1d6)]?_0x367d28[_0x133f35(0x1d6)][_0x133f35(0x1c2)]()[_0x133f35(0x1b6)]():'';if(_0x3dcddd)_0x44500e=_0x3dcddd;else{if(_0x39a49b)_0x44500e=_0x39a49b;}}return{'ok':![],'error':_0x44500e};}async function installCliBuiltInSkill(_0x3f7249){const _0x28f399=a60_0x56ea7d;console[_0x28f399(0x1d7)](_0x28f399(0x1d2));const _0x32e23e=runNpxSkillsAddGlobal(process[_0x28f399(0x1af)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x3f7249?_0x28f399(0x193):_0x28f399(0x1c6)});if(_0x32e23e[_0x28f399(0x1c7)]){console[_0x28f399(0x1d7)](_0x28f399(0x1ab)+LOVRABET_SKIP_NPX_SKILLS_ENV+'=1).');return;}if(_0x32e23e['ok']){console[_0x28f399(0x1d7)](_0x28f399(0x196));return;}console[_0x28f399(0x1c3)](_0x28f399(0x1d4)+(_0x32e23e[_0x28f399(0x18f)]||_0x28f399(0x19f))),console[_0x28f399(0x1d7)](_0x28f399(0x1b0));}async function execute(_0x4d304b){const _0x41b356=a60_0x56ea7d;await validateUpdateFlags(_0x4d304b);const _0x56fcd8=getCliVersion();console[_0x41b356(0x1d7)](_0x41b356(0x1c1)+_0x56fcd8),console[_0x41b356(0x1d7)](_0x41b356(0x1db));const _0xd9bf6a=await resolveTargetVersion(_0x4d304b);if(!_0xd9bf6a){const _0x22f736=_0x4d304b[_0x41b356(0x1a2)]('beta')?_0x41b356(0x1c8):'latest',_0xd049a7=_0x41b356(0x1b1)+_0x22f736+_0x41b356(0x19c);return console[_0x41b356(0x1c3)](_0xd049a7),console['log'](_0x41b356(0x1b8)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x22f736),{'ok':![]};}if(!shouldInstallTarget(_0x56fcd8,_0xd9bf6a)){const _0x95c235=_0xd9bf6a[_0x41b356(0x1d5)]===_0x41b356(0x191)?'Already\x20on\x20requested\x20version\x20(v'+_0xd9bf6a[_0x41b356(0x191)]+').':'Already\x20up\x20to\x20date\x20(v'+_0xd9bf6a['version']+').';return console[_0x41b356(0x1d7)](_0x95c235),shouldSkipCliBuiltInSkill(_0x4d304b)?console[_0x41b356(0x1d7)](_0x41b356(0x1a7)):await installCliBuiltInSkill(_0x4d304b[_0x41b356(0x1a9)]),{'ok':!![]};}console['log']('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x56fcd8+'\x20->\x20'+_0xd9bf6a[_0x41b356(0x191)]);const _0x374384=installCliPackage(_0xd9bf6a[_0x41b356(0x191)],_0x4d304b['nonInteractive']);if(!_0x374384['ok']){const _0x56836f=_0x41b356(0x19e)+(_0x374384['error']||'unknown');return console['error'](_0x56836f),console[_0x41b356(0x1d7)]('\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0xd9bf6a[_0x41b356(0x191)]),{'ok':![]};}return console['log'](_0x41b356(0x198)+_0xd9bf6a[_0x41b356(0x191)]+'.'),console['log'](_0x41b356(0x1a1)),shouldSkipCliBuiltInSkill(_0x4d304b)?console[_0x41b356(0x1d7)](_0x41b356(0x1a7)):await installCliBuiltInSkill(_0x4d304b[_0x41b356(0x1a9)]),{'ok':!![]};}export const updateDefinition={'service':a60_0x56ea7d(0x1ad),'command':a60_0x56ea7d(0x1c5),'description':a60_0x56ea7d(0x19a)+CLI_BIN_NAME+a60_0x56ea7d(0x1bb),'risk':a60_0x56ea7d(0x19b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
1
|
+
const a60_0x321d99=a60_0x30b3;(function(_0x4ee002,_0x1576c2){const _0x9f22c4=a60_0x30b3,_0x50cf3=_0x4ee002();while(!![]){try{const _0x16b4d=-parseInt(_0x9f22c4(0x1d2))/0x1*(parseInt(_0x9f22c4(0x1e1))/0x2)+-parseInt(_0x9f22c4(0x1cd))/0x3+parseInt(_0x9f22c4(0x198))/0x4*(-parseInt(_0x9f22c4(0x1cb))/0x5)+parseInt(_0x9f22c4(0x1d3))/0x6+-parseInt(_0x9f22c4(0x1ac))/0x7*(parseInt(_0x9f22c4(0x1dd))/0x8)+parseInt(_0x9f22c4(0x1db))/0x9*(parseInt(_0x9f22c4(0x1aa))/0xa)+-parseInt(_0x9f22c4(0x1c4))/0xb*(-parseInt(_0x9f22c4(0x1bc))/0xc);if(_0x16b4d===_0x1576c2)break;else _0x50cf3['push'](_0x50cf3['shift']());}catch(_0x3805de){_0x50cf3['push'](_0x50cf3['shift']());}}}(a60_0x46c0,0x303d5));function a60_0x30b3(_0x27dc9a,_0x2b8a00){_0x27dc9a=_0x27dc9a-0x195;const _0x46c03a=a60_0x46c0();let _0x30b380=_0x46c03a[_0x27dc9a];return _0x30b380;}import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';function a60_0x46c0(){const _0x2487b9=['Checking\x20npm\x20dist-tags...','Already\x20up\x20to\x20date\x20(v','9063835efwFJq','Update\x20','match','string','inherit','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','beta','1744145FShGRQ','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','570072licElH','args','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','entries','3963VgHhxL','24510zwGRUf','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','warn','json','cwd','filter','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','no-skills','36nzhTyi','run','8eVvYry','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','write','pipe','132qcVnaQ','major','Invalid\x20version:\x20','prerelease','bool','exit\x20','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','install','4klBHXW','update','boolean','\x20version\x20from\x20npm.','Current\x20version:\x20','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','status','trim','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','/-/package/','\x20->\x20','message','Updated\x20to\x20v','/dist-tags','toString','latest','skipped','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','508800GRqMdf','stdout','235130WnFnXQ','=1).','Already\x20on\x20requested\x20version\x20(v','fromEntries','source','map','flag','minor','join','stderr','nonInteractive','str','skills','validation','Version\x20comparison\x20failed.','unknown','12kIjsDv','error','Updating\x20','log','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','version'];a60_0x46c0=function(){return _0x2487b9;};return a60_0x46c0();}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';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':a60_0x321d99(0x1a7),'type':a60_0x321d99(0x19a),'description':a60_0x321d99(0x196),'default':![]},{'name':a60_0x321d99(0x1ca),'type':a60_0x321d99(0x19a),'description':a60_0x321d99(0x19d),'default':![]},{'name':a60_0x321d99(0x1c1),'type':a60_0x321d99(0x1c7),'description':'Install\x20a\x20specific\x20CLI\x20version'},{'name':a60_0x321d99(0x1da),'type':a60_0x321d99(0x19a),'description':a60_0x321d99(0x1cc),'default':![]},{'name':a60_0x321d99(0x1b8),'type':a60_0x321d99(0x19a),'description':a60_0x321d99(0x1a0),'default':!![],'hidden':!![]}];function parseSemver(_0x20f859){const _0x5a262d=a60_0x321d99,_0x5aeb65=_0x20f859['trim']()[_0x5a262d(0x1c6)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x5aeb65)return null;return{'major':Number(_0x5aeb65[0x1]),'minor':Number(_0x5aeb65[0x2]),'patch':Number(_0x5aeb65[0x3]),'prerelease':_0x5aeb65[0x4]};}function compareSemver(_0x2c6026,_0x5a1cbd){const _0x5c406a=a60_0x321d99,_0x41e1b6=parseSemver(_0x2c6026),_0x4b1a1e=parseSemver(_0x5a1cbd);if(!_0x41e1b6||!_0x4b1a1e)throw CliErrors[_0x5c406a(0x1b9)](_0x5c406a(0x1ba),_0x5c406a(0x195));for(const _0x2888e2 of[_0x5c406a(0x1e2),_0x5c406a(0x1b3),'patch']){if(_0x41e1b6[_0x2888e2]<_0x4b1a1e[_0x2888e2])return-0x1;if(_0x41e1b6[_0x2888e2]>_0x4b1a1e[_0x2888e2])return 0x1;}if(!_0x41e1b6[_0x5c406a(0x1e4)]&&!_0x4b1a1e['prerelease'])return 0x0;if(!_0x41e1b6[_0x5c406a(0x1e4)])return 0x1;if(!_0x4b1a1e[_0x5c406a(0x1e4)])return-0x1;if(_0x41e1b6[_0x5c406a(0x1e4)]===_0x4b1a1e[_0x5c406a(0x1e4)])return 0x0;return _0x41e1b6['prerelease']<_0x4b1a1e[_0x5c406a(0x1e4)]?-0x1:0x1;}function getRequestedVersion(_0x5781b9){const _0x3b2391=a60_0x321d99,_0x4d4e19=_0x5781b9[_0x3b2391(0x1b7)](_0x3b2391(0x1c1))[_0x3b2391(0x19f)]();if(_0x4d4e19)return _0x4d4e19;return String(_0x5781b9[_0x3b2391(0x1ce)]?.[0x0]??'')[_0x3b2391(0x19f)]();}function shouldSkipCliBuiltInSkill(_0x1be4c6){const _0x544b38=a60_0x321d99;return _0x1be4c6[_0x544b38(0x1e5)]('no-skills')||_0x1be4c6[_0x544b38(0x1b2)](_0x544b38(0x1b8))===![];}async function validateUpdateFlags(_0x561bab){const _0x4e9762=a60_0x321d99,_0xe63768=getRequestedVersion(_0x561bab),_0x5894a4=[_0x561bab[_0x4e9762(0x1e5)](_0x4e9762(0x1a7))?_0x4e9762(0x1a7):'',_0x561bab[_0x4e9762(0x1e5)](_0x4e9762(0x1ca))?_0x4e9762(0x1ca):'',_0xe63768?_0x4e9762(0x1c1):''][_0x4e9762(0x1d8)](Boolean);if(_0x5894a4['length']>0x1)throw CliErrors[_0x4e9762(0x1b9)]('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.');if(_0xe63768&&!parseSemver(_0xe63768))throw CliErrors[_0x4e9762(0x1b9)](_0x4e9762(0x1e3)+_0xe63768,_0x4e9762(0x1a9));}async function fetchNpmDistTags(){const _0x13c263=a60_0x321d99;try{const _0xe05f37=NPM_REGISTRY_BASE_URL+_0x13c263(0x1a1)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x13c263(0x1a5),_0x2d2c4b=await fetch(_0xe05f37,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x2d2c4b['ok'])return null;const _0x1597e6=await _0x2d2c4b[_0x13c263(0x1d6)]();if(!_0x1597e6||typeof _0x1597e6!=='object')return null;return Object[_0x13c263(0x1af)](Object[_0x13c263(0x1d1)](_0x1597e6)[_0x13c263(0x1d8)](([,_0x37df93])=>typeof _0x37df93===_0x13c263(0x1c7)&&_0x37df93[_0x13c263(0x19f)]())[_0x13c263(0x1b1)](([_0x27d705,_0x244e0d])=>[_0x27d705,String(_0x244e0d)[_0x13c263(0x19f)]()]));}catch{return null;}}async function resolveTargetVersion(_0x4e1656){const _0x185577=a60_0x321d99,_0x17fca0=getRequestedVersion(_0x4e1656);if(_0x17fca0)return{'version':_0x17fca0,'source':_0x185577(0x1c1)};const _0x5a63e4=_0x4e1656['bool'](_0x185577(0x1ca))?_0x185577(0x1ca):_0x185577(0x1a7),_0x2a7e40=await fetchNpmDistTags(),_0x65f4b9=_0x2a7e40?.[_0x5a63e4];if(!_0x65f4b9)return null;return{'version':_0x65f4b9,'source':_0x5a63e4};}function shouldInstallTarget(_0x55f6c0,_0x37310){const _0x3750a3=a60_0x321d99,_0x4fa815=compareSemver(_0x55f6c0,_0x37310['version']);if(_0x37310[_0x3750a3(0x1b0)]===_0x3750a3(0x1c1))return _0x4fa815!==0x0;return _0x4fa815<0x0;}function installCliPackage(_0xdb4d08,_0x3ed3e8){const _0x30e799=a60_0x321d99,_0xe68539=resolveNpmBin('npm'),_0x2ac295=[_0x30e799(0x197),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0xdb4d08];console['log']('*\x20'+[_0xe68539,..._0x2ac295][_0x30e799(0x1b4)]('\x20'));const _0x220ab4=spawnSync(_0xe68539,_0x2ac295,{'cwd':process[_0x30e799(0x1d7)](),'stdio':_0x3ed3e8?_0x30e799(0x1e0):_0x30e799(0x1c8),'env':process.env,'shell':![]});if(_0x220ab4[_0x30e799(0x19e)]===0x0)return{'ok':!![]};let _0x56a0c8=_0x220ab4[_0x30e799(0x1bd)]?.[_0x30e799(0x1a3)]||_0x30e799(0x1e6)+(_0x220ab4[_0x30e799(0x19e)]??_0x30e799(0x1bb));if(_0x3ed3e8){const _0x33e1b6=_0x220ab4[_0x30e799(0x1b5)]?_0x220ab4[_0x30e799(0x1b5)][_0x30e799(0x1a6)]()[_0x30e799(0x19f)]():'',_0x58fb88=_0x220ab4[_0x30e799(0x1ab)]?_0x220ab4[_0x30e799(0x1ab)]['toString']()['trim']():'';if(_0x33e1b6)_0x56a0c8=_0x33e1b6;else{if(_0x58fb88)_0x56a0c8=_0x58fb88;}}return{'ok':![],'error':_0x56a0c8};}async function installCliBuiltInSkill(_0x514eb6){const _0xc5f2e7=a60_0x321d99;console[_0xc5f2e7(0x1bf)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x670fcd=runNpxSkillsAddGlobal(process[_0xc5f2e7(0x1d7)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x514eb6?_0xc5f2e7(0x1e0):_0xc5f2e7(0x1c8)});if(_0x670fcd[_0xc5f2e7(0x1a8)]){console[_0xc5f2e7(0x1bf)](_0xc5f2e7(0x1de)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0xc5f2e7(0x1ad));return;}if(_0x670fcd['ok']){console[_0xc5f2e7(0x1bf)](_0xc5f2e7(0x1cf));return;}console[_0xc5f2e7(0x1d5)](_0xc5f2e7(0x1c9)+(_0x670fcd[_0xc5f2e7(0x1bd)]||'unknown')),console[_0xc5f2e7(0x1bf)](_0xc5f2e7(0x1d4));}async function execute(_0x2a2976){const _0x7cf1fe=a60_0x321d99;await validateUpdateFlags(_0x2a2976);const _0x186978=getCliVersion();console['log'](_0x7cf1fe(0x19c)+_0x186978),console[_0x7cf1fe(0x1bf)](_0x7cf1fe(0x1c2));const _0x727351=await resolveTargetVersion(_0x2a2976);if(!_0x727351){const _0x39ce7d=_0x2a2976['bool']('beta')?_0x7cf1fe(0x1ca):_0x7cf1fe(0x1a7),_0x33f31c='Unable\x20to\x20resolve\x20'+_0x39ce7d+_0x7cf1fe(0x19b);return console[_0x7cf1fe(0x1d5)](_0x33f31c),console[_0x7cf1fe(0x1bf)](_0x7cf1fe(0x1d9)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x39ce7d),{'ok':![]};}if(!shouldInstallTarget(_0x186978,_0x727351)){const _0x28feca=_0x727351['source']===_0x7cf1fe(0x1c1)?_0x7cf1fe(0x1ae)+_0x727351[_0x7cf1fe(0x1c1)]+').':_0x7cf1fe(0x1c3)+_0x727351[_0x7cf1fe(0x1c1)]+').';return console[_0x7cf1fe(0x1bf)](_0x28feca),shouldSkipCliBuiltInSkill(_0x2a2976)?console['log']('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).'):await installCliBuiltInSkill(_0x2a2976[_0x7cf1fe(0x1b6)]),{'ok':!![]};}console[_0x7cf1fe(0x1bf)](_0x7cf1fe(0x1be)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x186978+_0x7cf1fe(0x1a2)+_0x727351[_0x7cf1fe(0x1c1)]);const _0x11e90a=installCliPackage(_0x727351[_0x7cf1fe(0x1c1)],_0x2a2976[_0x7cf1fe(0x1b6)]);if(!_0x11e90a['ok']){const _0x123111='Update\x20failed:\x20'+(_0x11e90a['error']||'unknown');return console[_0x7cf1fe(0x1bd)](_0x123111),console[_0x7cf1fe(0x1bf)](_0x7cf1fe(0x1c0)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x727351[_0x7cf1fe(0x1c1)]),{'ok':![]};}return console[_0x7cf1fe(0x1bf)](_0x7cf1fe(0x1a4)+_0x727351[_0x7cf1fe(0x1c1)]+'.'),console[_0x7cf1fe(0x1bf)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'),shouldSkipCliBuiltInSkill(_0x2a2976)?console[_0x7cf1fe(0x1bf)](_0x7cf1fe(0x1d0)):await installCliBuiltInSkill(_0x2a2976['nonInteractive']),{'ok':!![]};}export const updateDefinition={'service':a60_0x321d99(0x199),'command':a60_0x321d99(0x1dc),'description':a60_0x321d99(0x1c5)+CLI_BIN_NAME+'\x20CLI\x20from\x20npm','risk':a60_0x321d99(0x1df),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a61_0x730318=a61_0x3b27;function a61_0x24e3(){const _0x10a84d=['includes','../../core/api-client.js','62973cJsZVa','workspace\x20','map','shouldWriteEnv','object','workspace','2340801CFTjuN','trim','from','85170yqNAwW','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','appcode','2CvsKpZ','init','1452290aOlXaj','defaultApp','1430374cQzqme','command','accessKey','\x20--appcode\x20<code>\x20[--env\x20daily]','string','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','write','App\x20\x22','use','boolean','\x0aEnv:\x20','../../commands/app/remote-source.js','apps','str','Run\x20`','Usage:\x20','1320Exhdxn','isArray','appCode','\x0aDefault\x20app:\x20','filter','yes','Available\x20apps:\x20','4363374hmZRHb','env','items','14968dvoGiI','App\x20code\x20to\x20bind\x20directly','4qTIXAc','3227YCEZOF','Missing\x20workspace\x20app\x20selector.','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','app','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','validation','envName','appName','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','\x20workspace\x20','\x22\x20not\x20found.','join','36OveESU'];a61_0x24e3=function(){return _0x10a84d;};return a61_0x24e3();}(function(_0x1e3bdf,_0x4e7e69){const _0x5d420e=a61_0x3b27,_0xee709b=_0x1e3bdf();while(!![]){try{const _0xf87f90=-parseInt(_0x5d420e(0x14d))/0x1+parseInt(_0x5d420e(0x113))/0x2*(-parseInt(_0x5d420e(0x14a))/0x3)+parseInt(_0x5d420e(0x133))/0x4*(parseInt(_0x5d420e(0x115))/0x5)+parseInt(_0x5d420e(0x12e))/0x6+-parseInt(_0x5d420e(0x134))/0x7*(-parseInt(_0x5d420e(0x131))/0x8)+parseInt(_0x5d420e(0x144))/0x9*(-parseInt(_0x5d420e(0x127))/0xa)+-parseInt(_0x5d420e(0x117))/0xb*(-parseInt(_0x5d420e(0x141))/0xc);if(_0xf87f90===_0x4e7e69)break;else _0xee709b['push'](_0xee709b['shift']());}catch(_0x2fe9c2){_0xee709b['push'](_0xee709b['shift']());}}}(a61_0x24e3,0x757ff));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_0x730318(0x138),'type':'string','description':a61_0x730318(0x11c)},{'name':a61_0x730318(0x112),'type':a61_0x730318(0x11b),'description':a61_0x730318(0x132)},{'name':a61_0x730318(0x12f),'type':'string','description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]},{'name':a61_0x730318(0x12c),'type':a61_0x730318(0x120),'description':a61_0x730318(0x14e),'default':![]}];async function executeWorkspaceUse(_0x49ce9b,_0x365bbe){const _0x377f99=a61_0x730318,_0x25cb7d=_0x49ce9b[_0x377f99(0x124)](_0x377f99(0x138))[_0x377f99(0x14b)](),_0x481323=_0x49ce9b[_0x377f99(0x124)](_0x377f99(0x112))['trim'](),_0x2bcb42=_0x49ce9b['str'](_0x377f99(0x12f))['trim'](),_0xea1b52=resolveWorkspaceEnv(_0x2bcb42||_0x49ce9b[_0x377f99(0x13b)]||DEFAULT_CONFIG_VALUES[_0x377f99(0x12f)]);if(!_0x25cb7d&&!_0x481323)throw CliErrors[_0x377f99(0x13a)](_0x377f99(0x135),_0x377f99(0x126)+CLI_BIN_NAME+_0x377f99(0x13e)+_0x365bbe+_0x377f99(0x137)+CLI_BIN_NAME+_0x377f99(0x13e)+_0x365bbe+_0x377f99(0x11a));const _0x4bf1fd=_0x481323||await resolveRemoteAppCode({'command':_0x365bbe,'appName':_0x25cb7d,'env':_0xea1b52,'accessKey':_0x49ce9b[_0x377f99(0x119)]}),_0x4d076c=writeWorkspaceConfig({'command':_0x365bbe,'appName':_0x25cb7d,'appcode':_0x4bf1fd,'env':_0xea1b52,'shouldWriteEnv':!!_0x2bcb42,'accessKey':_0x49ce9b[_0x377f99(0x119)]});return{'ok':!![],'data':{'configPath':_0x4d076c,'app':_0x25cb7d||null,'appcode':_0x4bf1fd,'env':_0x2bcb42?_0xea1b52:null,'accessKeyWritten':![],'command':_0x377f99(0x145)+_0x365bbe},'message':buildWorkspaceMessage(_0x4d076c,_0x25cb7d,_0x4bf1fd,_0x2bcb42?_0xea1b52:undefined)};}async function resolveRemoteAppCode(_0x1ddf01){const _0x876c26=a61_0x730318;if(!_0x1ddf01[_0x876c26(0x119)])throw CliErrors['authRequired'](_0x876c26(0x136)+CLI_BIN_NAME+_0x876c26(0x13e)+_0x1ddf01[_0x876c26(0x118)]+'.');const {setActiveAK:_0x2fe04b}=await import(_0x876c26(0x143)),{getRemoteAppList:_0x1fc216}=await import(_0x876c26(0x122));_0x2fe04b(_0x1ddf01['accessKey']);const _0x4db07f=await _0x1fc216({'env':_0x1ddf01['env'],'accessKey':_0x1ddf01[_0x876c26(0x119)],'noCache':![]}),_0x3b9476=findAppByName(_0x4db07f[_0x876c26(0x130)],_0x1ddf01[_0x876c26(0x13c)]);if(_0x3b9476&&!isRuntimeAccessibleApp(_0x3b9476))throw runtimeInaccessibleAppError(_0x3b9476,'\x22'+_0x1ddf01[_0x876c26(0x13c)]+'\x22');const _0x2b8468=_0x3b9476?.[_0x876c26(0x129)]?.[_0x876c26(0x14b)]();if(_0x2b8468)return _0x2b8468;const _0x515ac4=_0x4db07f['items'][_0x876c26(0x146)](_0x221ee9=>_0x221ee9['appName'])[_0x876c26(0x12b)](Boolean),_0x1b0610=_0x515ac4['length']?_0x876c26(0x12d)+Array[_0x876c26(0x14c)](new Set(_0x515ac4))[_0x876c26(0x140)](',\x20')+'.':_0x876c26(0x125)+CLI_BIN_NAME+_0x876c26(0x111);throw CliErrors[_0x876c26(0x13a)](_0x876c26(0x11e)+_0x1ddf01['appName']+_0x876c26(0x13f),_0x1b0610);}function writeWorkspaceConfig(_0x1cca9c){const _0x5f0a84=a61_0x730318,_0x39b35d=resolveWriteConfigPath('project'),_0x1ab49f=readConfigFile(_0x39b35d);_0x1cca9c[_0x5f0a84(0x147)]&&(_0x1ab49f['env']=_0x1cca9c[_0x5f0a84(0x12f)]);if(_0x1cca9c[_0x5f0a84(0x13c)]){const _0x467659=isRecord(_0x1ab49f[_0x5f0a84(0x123)])?{..._0x1ab49f[_0x5f0a84(0x123)]}:{},_0x278681=isRecord(_0x467659[_0x1cca9c['appName']])?_0x467659[_0x1cca9c[_0x5f0a84(0x13c)]]:{};_0x467659[_0x1cca9c['appName']]={..._0x278681,'appcode':_0x1cca9c[_0x5f0a84(0x112)]},_0x1ab49f[_0x5f0a84(0x123)]=_0x467659,_0x1ab49f[_0x5f0a84(0x116)]=_0x1cca9c[_0x5f0a84(0x13c)];if(_0x1ab49f[_0x5f0a84(0x138)])delete _0x1ab49f[_0x5f0a84(0x138)];return writeAndReturn(_0x39b35d,_0x1ab49f);}_0x1ab49f['appcode']=_0x1cca9c[_0x5f0a84(0x112)];if(_0x1ab49f[_0x5f0a84(0x138)])delete _0x1ab49f['app'];return writeAndReturn(_0x39b35d,_0x1ab49f);}function writeAndReturn(_0x2caf3c,_0x2c9b6b){return writeConfigFile(_0x2caf3c,_0x2c9b6b),_0x2caf3c;}function a61_0x3b27(_0x316ff0,_0x2dd468){_0x316ff0=_0x316ff0-0x111;const _0x24e35f=a61_0x24e3();let _0x3b270c=_0x24e35f[_0x316ff0];return _0x3b270c;}function resolveWorkspaceEnv(_0x199e93){const _0x4ae1c2=a61_0x730318;if(RUNTIME_ENV_VALUES[_0x4ae1c2(0x142)](_0x199e93))return _0x199e93;throw CliErrors['validation']('Invalid\x20env\x20\x22'+_0x199e93+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x232416,_0x4df57a,_0x216919,_0x373dea){const _0x1e3c32=a61_0x730318,_0x3923d8=_0x4df57a?_0x4df57a+'\x20('+_0x216919+')':_0x216919,_0x5a5c02=_0x373dea?_0x1e3c32(0x121)+_0x373dea:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x232416+_0x1e3c32(0x12a)+_0x3923d8+_0x5a5c02+'\x0aAccessKey:\x20not\x20written';}function isRecord(_0x529a71){const _0x5afb48=a61_0x730318;return typeof _0x529a71===_0x5afb48(0x148)&&_0x529a71!==null&&!Array[_0x5afb48(0x128)](_0x529a71);}function makeWorkspaceCommand(_0x54336c){const _0x6be356=a61_0x730318;return{'service':_0x6be356(0x149),'command':_0x54336c,'description':_0x54336c===_0x6be356(0x114)?_0x6be356(0x139):_0x6be356(0x13d),'risk':_0x6be356(0x11d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x38514a){return executeWorkspaceUse(_0x38514a,_0x54336c);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a61_0x730318(0x114)),makeWorkspaceCommand(a61_0x730318(0x11f))];
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a62_0x360dcd=a62_0x591d;(function(_0x3295b3,_0x52944a){const _0x51dda9=a62_0x591d,_0x4487e8=_0x3295b3();while(!![]){try{const _0xbb134e=parseInt(_0x51dda9(0xfe))/0x1+parseInt(_0x51dda9(0xeb))/0x2+-parseInt(_0x51dda9(0xfd))/0x3*(-parseInt(_0x51dda9(0xf5))/0x4)+-parseInt(_0x51dda9(0xff))/0x5+-parseInt(_0x51dda9(0xee))/0x6+parseInt(_0x51dda9(0xed))/0x7+-parseInt(_0x51dda9(0xf0))/0x8;if(_0xbb134e===_0x52944a)break;else _0x4487e8['push'](_0x4487e8['shift']());}catch(_0x1f0ff9){_0x4487e8['push'](_0x4487e8['shift']());}}}(a62_0xcd71,0xcf02e));function a62_0xcd71(){const _0xf133b6=['5170764khjhLY','Override\x20runtime\x20domain','Override\x20user\x20domain','has','format',';\x20local\x20alias:\x20apps.<alias>.appcode','Risk\x20level','env','3naKKCH','1461538jmxKsV','7516955cDOPgq','map','importable','locale','defaultValue','riskLevel','filter','1553076KMuKcV','enumValues','4135775jDBOmv','9667032uXoMco','Default\x20page\x20size','1272888ewfOqD','entries','legacyCompatOnly','Access\x20key\x20(client-ak\x20auth)','Config\x20key.\x20Top-level:\x20'];a62_0xcd71=function(){return _0xf133b6;};return a62_0xcd71();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';function a62_0x591d(_0x15cac1,_0x5941b9){_0x15cac1=_0x15cac1-0xe8;const _0xcd712c=a62_0xcd71();let _0x591d53=_0xcd712c[_0x15cac1];return _0x591d53;}export const CONFIG_FIELD_SCHEMAS={'env':{'description':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a62_0x360dcd(0xfc)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a62_0x360dcd(0xf9)],'importable':!![]},'pageSize':{'description':a62_0x360dcd(0xef),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a62_0x360dcd(0xf7),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a62_0x360dcd(0xf6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':'Override\x20SkillHub\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a62_0x360dcd(0xf3),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a62_0x360dcd(0xfb),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a62_0x360dcd(0xe9)],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a62_0x360dcd(0x102)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a62_0x360dcd(0xf1)](CONFIG_FIELD_SCHEMAS)[a62_0x360dcd(0xea)](([,_0x7d3d0d])=>_0x7d3d0d['cliSettableTopLevel'])['map'](([_0x59845a])=>_0x59845a));export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object[a62_0x360dcd(0xf1)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x430b24])=>_0x430b24[a62_0x360dcd(0xec)])[a62_0x360dcd(0x100)](([_0x9ec6ef,_0x203e29])=>[_0x9ec6ef,[..._0x203e29[a62_0x360dcd(0xec)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a62_0x360dcd(0xf1)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x28b8e3])=>_0x28b8e3[a62_0x360dcd(0x101)])[a62_0x360dcd(0x100)](([_0x173481])=>_0x173481);export function getConfigFieldSchema(_0x23cb4d){return CONFIG_FIELD_SCHEMAS[_0x23cb4d];}export function getConfigEnumValues(_0x41e800){return getConfigFieldSchema(_0x41e800)?.['enumValues'];}export function getConfigDefaultValue(_0x4a30c2){const _0x4508e6=a62_0x360dcd;return getConfigFieldSchema(_0x4a30c2)?.[_0x4508e6(0xe8)];}export function isTopLevelConfigKey(_0x4e7b22){const _0x3c5067=a62_0x360dcd;return TOP_LEVEL_CONFIG_KEYS[_0x3c5067(0xf8)](_0x4e7b22);}export function isLegacyCompatConfigKey(_0x2960db){const _0x35e08f=a62_0x360dcd;return getConfigFieldSchema(_0x2960db)?.[_0x35e08f(0xf2)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x8275d8){return[..._0x8275d8]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x7f2b19=a62_0x360dcd;return _0x7f2b19(0xf4)+getTopLevelConfigKeySummary()+_0x7f2b19(0xfa);}export function buildAppProfileListFields(_0x4635fc){return{'env':_0x4635fc,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a63_0x28a46f=a63_0x3618;(function(_0x35edff,_0x409b95){const _0x34ade1=a63_0x3618,_0x2223b9=_0x35edff();while(!![]){try{const _0xf1ec55=parseInt(_0x34ade1(0x1fd))/0x1+parseInt(_0x34ade1(0x1fc))/0x2*(-parseInt(_0x34ade1(0x1f7))/0x3)+-parseInt(_0x34ade1(0x1f9))/0x4+-parseInt(_0x34ade1(0x1fa))/0x5+parseInt(_0x34ade1(0x1f3))/0x6+-parseInt(_0x34ade1(0x1fb))/0x7*(parseInt(_0x34ade1(0x1f6))/0x8)+-parseInt(_0x34ade1(0x1f8))/0x9*(-parseInt(_0x34ade1(0x1f5))/0xa);if(_0xf1ec55===_0x409b95)break;else _0x2223b9['push'](_0x2223b9['shift']());}catch(_0x364d8b){_0x2223b9['push'](_0x2223b9['shift']());}}}(a63_0x3e03,0x62f0a));export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':'UNPUBLISH'};function a63_0x3e03(){const _0x47a693=['2EBCEgm','531671DnRstA','2389212YxNpRM','Published','360MQrbiC','8GZlwNd','1790481SMAApK','319077Vjnojt','948628sWSCtc','2621830BpQmCr','3098011ZugEaw'];a63_0x3e03=function(){return _0x47a693;};return a63_0x3e03();}function a63_0x3618(_0x231328,_0x2f072a){_0x231328=_0x231328-0x1f3;const _0x3e035d=a63_0x3e03();let _0x3618b8=_0x3e035d[_0x231328];return _0x3618b8;}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a63_0x28a46f(0x1f4)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x34eee9,_0x217b5d){const _0x355415=a64_0x32c7,_0x30bfba=_0x34eee9();while(!![]){try{const _0x3e767c=parseInt(_0x355415(0x76))/0x1+-parseInt(_0x355415(0x72))/0x2*(parseInt(_0x355415(0x74))/0x3)+-parseInt(_0x355415(0x70))/0x4+parseInt(_0x355415(0x75))/0x5+parseInt(_0x355415(0x71))/0x6+-parseInt(_0x355415(0x77))/0x7*(-parseInt(_0x355415(0x6e))/0x8)+-parseInt(_0x355415(0x6f))/0x9;if(_0x3e767c===_0x217b5d)break;else _0x30bfba['push'](_0x30bfba['shift']());}catch(_0x1b61f5){_0x30bfba['push'](_0x30bfba['shift']());}}}(a64_0x5536,0x509e6));export const AUTH_MODE={'ClientAk':'client-ak'};function a64_0x5536(){const _0x378a82=['8vcEHeT','5722533lXmzOz','1067652AzOQMB','3578304SXksOW','367224RerriV','ClientAk','3tjlqgL','1492120weCyWi','484194kzMeGy','263018zFwKlz'];a64_0x5536=function(){return _0x378a82;};return a64_0x5536();}function a64_0x32c7(_0x505bbb,_0x29a5e0){_0x505bbb=_0x505bbb-0x6e;const _0x553629=a64_0x5536();let _0x32c7c2=_0x553629[_0x505bbb];return _0x32c7c2;}export function isAuthMode(_0x10458a){const _0x357a13=a64_0x32c7;return _0x10458a===AUTH_MODE[_0x357a13(0x73)];}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a65_0x15573a=a65_0x3075;(function(_0x22cfc8,_0x37ca60){const _0x165224=a65_0x3075,_0x3f8bec=_0x22cfc8();while(!![]){try{const _0x991e61=-parseInt(_0x165224(0x1df))/0x1+-parseInt(_0x165224(0x1de))/0x2*(parseInt(_0x165224(0x1dc))/0x3)+parseInt(_0x165224(0x1e5))/0x4+-parseInt(_0x165224(0x1c8))/0x5+-parseInt(_0x165224(0x1d6))/0x6+-parseInt(_0x165224(0x1c0))/0x7+parseInt(_0x165224(0x1bb))/0x8;if(_0x991e61===_0x37ca60)break;else _0x3f8bec['push'](_0x3f8bec['shift']());}catch(_0x3dd5af){_0x3f8bec['push'](_0x3f8bec['shift']());}}}(a65_0x37f6,0xb4bb7));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';function a65_0x3075(_0x1eb20a,_0x2370d7){_0x1eb20a=_0x1eb20a-0x1bb;const _0x37f695=a65_0x37f6();let _0x3075c2=_0x37f695[_0x1eb20a];return _0x3075c2;}export const CLI_BIN_NAME=PRODUCT_CONFIG[a65_0x15573a(0x1c5)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a65_0x15573a(0x1e1)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a65_0x15573a(0x1cf),'meowKey':a65_0x15573a(0x1cf),'type':a65_0x15573a(0x1e8),'description':a65_0x15573a(0x1dd),'hint':'<code>'},{'name':a65_0x15573a(0x1db),'meowKey':a65_0x15573a(0x1db),'type':a65_0x15573a(0x1e8),'description':a65_0x15573a(0x1e3),'hint':'<name>'},{'name':a65_0x15573a(0x1e6),'meowKey':a65_0x15573a(0x1e6),'type':a65_0x15573a(0x1e8),'description':'Environment','hint':'production\x20|\x20development\x20|\x20daily'},{'name':'format','meowKey':'format','type':'string','description':a65_0x15573a(0x1d7),'hint':a65_0x15573a(0x1d3)},{'name':'jq','meowKey':'jq','type':a65_0x15573a(0x1e8),'description':a65_0x15573a(0x1ce),'hint':a65_0x15573a(0x1cd)},{'name':a65_0x15573a(0x1d5),'meowKey':a65_0x15573a(0x1d8),'type':a65_0x15573a(0x1c3),'description':a65_0x15573a(0x1da)},{'name':'yes','meowKey':'yes','type':a65_0x15573a(0x1c3),'description':a65_0x15573a(0x1c6)},{'name':a65_0x15573a(0x1cb),'meowKey':a65_0x15573a(0x1e0),'type':a65_0x15573a(0x1c3),'description':a65_0x15573a(0x1d2)},{'name':a65_0x15573a(0x1ca),'meowKey':a65_0x15573a(0x1ca),'type':a65_0x15573a(0x1c3),'description':a65_0x15573a(0x1bf)},{'name':'ci','meowKey':'ci','type':a65_0x15573a(0x1c3),'description':a65_0x15573a(0x1e4),'hidden':!![]},{'name':a65_0x15573a(0x1cc),'meowKey':a65_0x15573a(0x1cc),'type':'boolean','description':a65_0x15573a(0x1bc)},{'name':'id','meowKey':'id','type':'string','description':a65_0x15573a(0x1d9),'hidden':!![]},{'name':a65_0x15573a(0x1e2),'meowKey':a65_0x15573a(0x1e2),'type':a65_0x15573a(0x1e8),'description':a65_0x15573a(0x1c4),'hidden':!![]},{'name':a65_0x15573a(0x1e7),'meowKey':'sqlcode','type':a65_0x15573a(0x1e8),'description':a65_0x15573a(0x1be),'hidden':!![]},{'name':'params','meowKey':a65_0x15573a(0x1e9),'type':a65_0x15573a(0x1e8),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a65_0x15573a(0x1d1),'meowKey':a65_0x15573a(0x1d1),'type':a65_0x15573a(0x1c3),'description':'Verbose\x20output','hidden':!![]},{'name':'clear','meowKey':a65_0x15573a(0x1c2),'type':'boolean','description':a65_0x15573a(0x1c7),'hidden':!![]}];function a65_0x37f6(){const _0x27df6b=['global','non-interactive','help','<expr>','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','appcode','map','verbose','Force\x20non-interactive\x20mode\x20(CI)','json\x20|\x20pretty\x20|\x20compress','type','dry-run','3334368utQWbZ','Output\x20format','dryRun','Record\x20ID','Preview\x20operation\x20without\x20executing','app','6MLrQAp','Override\x20appcode','1240258NFMvQV','557413JUXcut','nonInteractive','cliDisplayName','name','Select\x20app\x20profile\x20by\x20name','Alias\x20for\x20--non-interactive','715836OeEmYq','env','sqlcode','string','params','fromEntries','33890376FygPNw','Show\x20help','meowKey','SQL\x20query\x20code','Use\x20global\x20config\x20scope','4383127bEWQGQ','format','clear','boolean','Name\x20filter','cliBinName','Skip\x20confirmation\x20for\x20high-risk\x20writes','Clear\x20output','3477085wnMlnx','yes'];a65_0x37f6=function(){return _0x27df6b;};return a65_0x37f6();}export const PIPELINE_FLAG_NAMES=new Set([a65_0x15573a(0x1cf),a65_0x15573a(0x1db),a65_0x15573a(0x1e6),a65_0x15573a(0x1c1),'jq','dry-run',a65_0x15573a(0x1c9),a65_0x15573a(0x1cb),'ci']);export function buildMeowFlags(){const _0x52cead=a65_0x15573a;return Object[_0x52cead(0x1ea)](GLOBAL_FLAGS[_0x52cead(0x1d0)](_0x2a633f=>[_0x2a633f[_0x52cead(0x1bd)],{'type':_0x2a633f[_0x52cead(0x1d4)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a66_0x493f72=a66_0x1ccb;function a66_0x589e(){const _0x3bcc4d=['5857056kCQvwW','1755708hyZizh','4OQHRLB','361164KZISLT','870ObmeRX','343681VuuFmv','en-US','2146344debDjn','21ORPcYz','11GZdIFv','production','write','30270wsUUWs','main','compress','13220320BWmnXx'];a66_0x589e=function(){return _0x3bcc4d;};return a66_0x589e();}function a66_0x1ccb(_0x2a5c81,_0x14a9a0){_0x2a5c81=_0x2a5c81-0x168;const _0x589e6a=a66_0x589e();let _0x1ccb28=_0x589e6a[_0x2a5c81];return _0x1ccb28;}(function(_0x1e132b,_0x5c0700){const _0x2970ca=a66_0x1ccb,_0x125088=_0x1e132b();while(!![]){try{const _0x46029f=-parseInt(_0x2970ca(0x171))/0x1+-parseInt(_0x2970ca(0x16e))/0x2*(-parseInt(_0x2970ca(0x16f))/0x3)+parseInt(_0x2970ca(0x16d))/0x4+parseInt(_0x2970ca(0x170))/0x5*(-parseInt(_0x2970ca(0x168))/0x6)+parseInt(_0x2970ca(0x174))/0x7*(-parseInt(_0x2970ca(0x173))/0x8)+parseInt(_0x2970ca(0x16c))/0x9+-parseInt(_0x2970ca(0x16b))/0xa*(-parseInt(_0x2970ca(0x175))/0xb);if(_0x46029f===_0x5c0700)break;else _0x125088['push'](_0x125088['shift']());}catch(_0x93029c){_0x125088['push'](_0x125088['shift']());}}}(a66_0x589e,0x98dd1));export const DEFAULT_APP_PROFILE_NAME=a66_0x493f72(0x169);export const DEFAULT_CONFIG_VALUES={'env':a66_0x493f72(0x176),'format':a66_0x493f72(0x16a),'locale':a66_0x493f72(0x172),'riskLevel':a66_0x493f72(0x177)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a66_0x493f72(0x16a);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a67_0x149821=a67_0xb1cf;(function(_0x3ff126,_0x27fa4f){const _0x2f5bd2=a67_0xb1cf,_0x482b7d=_0x3ff126();while(!![]){try{const _0x34e624=parseInt(_0x2f5bd2(0x1f6))/0x1*(-parseInt(_0x2f5bd2(0x1f9))/0x2)+parseInt(_0x2f5bd2(0x1fe))/0x3*(-parseInt(_0x2f5bd2(0x1f7))/0x4)+-parseInt(_0x2f5bd2(0x1f4))/0x5*(parseInt(_0x2f5bd2(0x1ff))/0x6)+parseInt(_0x2f5bd2(0x1fb))/0x7*(parseInt(_0x2f5bd2(0x1fa))/0x8)+parseInt(_0x2f5bd2(0x1f8))/0x9+-parseInt(_0x2f5bd2(0x1f3))/0xa*(parseInt(_0x2f5bd2(0x1fd))/0xb)+parseInt(_0x2f5bd2(0x1f5))/0xc*(parseInt(_0x2f5bd2(0x1f1))/0xd);if(_0x34e624===_0x27fa4f)break;else _0x482b7d['push'](_0x482b7d['shift']());}catch(_0x1d3420){_0x482b7d['push'](_0x482b7d['shift']());}}}(a67_0x44c0,0x6901c));function a67_0x44c0(){const _0x21248e=['5645fkquhS','20309964cVuKUJ','257294XjppKP','51556zTaCpy','780705YGkMKB','2esPGTs','2955568zxDmTw','7rstfnT','npmPackageName','38511DXHtuR','153EQBVTE','2598EssexF','13QVfdzU','skillSource','900ZEUmut'];a67_0x44c0=function(){return _0x21248e;};return a67_0x44c0();}function a67_0xb1cf(_0xaf31ae,_0x1e7dfb){_0xaf31ae=_0xaf31ae-0x1f1;const _0x44c0f1=a67_0x44c0();let _0xb1cf38=_0x44c0f1[_0xaf31ae];return _0xb1cf38;}import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a67_0x149821(0x1fc)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a67_0x149821(0x1f2)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0xa21877=a68_0x2d96;(function(_0x35dbe6,_0x56df03){const _0x50820f=a68_0x2d96,_0x187b16=_0x35dbe6();while(!![]){try{const _0x13d26b=parseInt(_0x50820f(0x77))/0x1+parseInt(_0x50820f(0x82))/0x2+-parseInt(_0x50820f(0x89))/0x3+-parseInt(_0x50820f(0x7b))/0x4*(-parseInt(_0x50820f(0x78))/0x5)+-parseInt(_0x50820f(0x85))/0x6*(parseInt(_0x50820f(0x87))/0x7)+parseInt(_0x50820f(0x79))/0x8*(parseInt(_0x50820f(0x7f))/0x9)+-parseInt(_0x50820f(0x7d))/0xa*(parseInt(_0x50820f(0x7a))/0xb);if(_0x13d26b===_0x56df03)break;else _0x187b16['push'](_0x187b16['shift']());}catch(_0x4ce685){_0x187b16['push'](_0x187b16['shift']());}}}(a68_0x14cf,0x4b1d3));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;function a68_0x14cf(){const _0x2d203e=['production','4329VCxBvk','apiDomain','api','540490YykCYi','runtimeDomain','userDomain','6EvKQts','nonProduction','806365FLPpfb','user','355674uoagDd','runtime','skillhub','390774DDCPTj','15AcgCVW','8096ZjpCBD','37147pElLEt','263140rwWprv','domains','2380gHIJhW'];a68_0x14cf=function(){return _0x2d203e;};return a68_0x14cf();}function a68_0x2d96(_0x20805a,_0x3f0851){_0x20805a=_0x20805a-0x77;const _0x14cffd=a68_0x14cf();let _0x2d9667=_0x14cffd[_0x20805a];return _0x2d9667;}export function initDomains(_0x30af68){const _0x29cb2c=a68_0x2d96;customApiDomain=_0x30af68?.[_0x29cb2c(0x80)],customUserDomain=_0x30af68?.[_0x29cb2c(0x84)],customRuntimeDomain=_0x30af68?.[_0x29cb2c(0x83)],customSkillHubDomain=_0x30af68?.['skillHubDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a68_0xa21877(0x7c)][a68_0xa21877(0x7e)][a68_0xa21877(0x88)]:PRODUCT_CONFIG['domains'][a68_0xa21877(0x86)][a68_0xa21877(0x88)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a68_0xa21877(0x7e)][a68_0xa21877(0x81)]:PRODUCT_CONFIG[a68_0xa21877(0x7c)][a68_0xa21877(0x86)]['api']);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a68_0xa21877(0x7c)]['production'][a68_0xa21877(0x8a)]:PRODUCT_CONFIG['domains']['nonProduction'][a68_0xa21877(0x8a)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a68_0xa21877(0x7c)][a68_0xa21877(0x7e)]['skillhub']:PRODUCT_CONFIG[a68_0xa21877(0x7c)][a68_0xa21877(0x86)][a68_0xa21877(0x8b)]);
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a69_0x23ab(_0x264f62,_0x1d35ca){_0x264f62=_0x264f62-0x1d9;const _0x50a132=a69_0x50a1();let _0x23abb2=_0x50a132[_0x264f62];return _0x23abb2;}const a69_0x116b2e=a69_0x23ab;(function(_0x1d8333,_0x4d7373){const _0x368085=a69_0x23ab,_0x2a7a93=_0x1d8333();while(!![]){try{const _0x1c418c=-parseInt(_0x368085(0x1db))/0x1*(-parseInt(_0x368085(0x1de))/0x2)+parseInt(_0x368085(0x1e3))/0x3+parseInt(_0x368085(0x1e9))/0x4*(parseInt(_0x368085(0x1da))/0x5)+parseInt(_0x368085(0x1e8))/0x6+-parseInt(_0x368085(0x1e0))/0x7*(parseInt(_0x368085(0x1dd))/0x8)+parseInt(_0x368085(0x1e6))/0x9+-parseInt(_0x368085(0x1e1))/0xa*(parseInt(_0x368085(0x1e2))/0xb);if(_0x1c418c===_0x4d7373)break;else _0x2a7a93['push'](_0x2a7a93['shift']());}catch(_0x2b3219){_0x2a7a93['push'](_0x2a7a93['shift']());}}}(a69_0x50a1,0x81a39));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=['production',a69_0x116b2e(0x1dc),a69_0x116b2e(0x1d9)];export function normalizeEnv(_0x1dbd21){const _0x4d11a8=a69_0x116b2e;return _0x1dbd21===_0x4d11a8(0x1e5)?_0x4d11a8(0x1df):_0x1dbd21;}export function isProduction(_0x211ab0){return normalizeEnv(_0x211ab0)==='production';}export function isDaily(_0x2ba69f){const _0x146a3a=a69_0x116b2e;return normalizeEnv(_0x2ba69f)===_0x146a3a(0x1d9);}function a69_0x50a1(){const _0x1d0675=['6590904NPAziH','40YvriXh','production','7SQATsp','31700DGXptA','4906MFinRX','466668dKpxLu','ENV','online','9423189nbiGIB','dev','3456042bTUInh','1220GgNjDG','daily','14540XjypRy','5158dsqpGA','development'];a69_0x50a1=function(){return _0x1d0675;};return a69_0x50a1();}export function isDev(_0x5430b7){const _0x1e3bee=a69_0x116b2e,_0x5369ed=normalizeEnv(_0x5430b7);return _0x5369ed==='development'||_0x5369ed===_0x1e3bee(0x1e7);}let env=normalizeEnv(productEnv(a69_0x116b2e(0x1e4))||a69_0x116b2e(0x1df));export function getEnv(){return env;}export function initEnv(_0x3db70b){env=normalizeEnv(_0x3db70b);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0x58453f=a70_0x2a0c;function a70_0x2a0c(_0x109bb1,_0x4cae03){_0x109bb1=_0x109bb1-0x1de;const _0x21f735=a70_0x21f7();let _0x2a0c09=_0x21f735[_0x109bb1];return _0x2a0c09;}(function(_0x1f8418,_0x47d538){const _0x58e221=a70_0x2a0c,_0x290309=_0x1f8418();while(!![]){try{const _0x568640=parseInt(_0x58e221(0x1e4))/0x1+parseInt(_0x58e221(0x1e0))/0x2*(-parseInt(_0x58e221(0x1e3))/0x3)+parseInt(_0x58e221(0x1df))/0x4*(-parseInt(_0x58e221(0x1e5))/0x5)+-parseInt(_0x58e221(0x1ea))/0x6*(-parseInt(_0x58e221(0x1e8))/0x7)+-parseInt(_0x58e221(0x1e7))/0x8*(-parseInt(_0x58e221(0x1de))/0x9)+-parseInt(_0x58e221(0x1e6))/0xa+parseInt(_0x58e221(0x1e1))/0xb*(parseInt(_0x58e221(0x1e2))/0xc);if(_0x568640===_0x47d538)break;else _0x290309['push'](_0x290309['shift']());}catch(_0x411841){_0x290309['push'](_0x290309['shift']());}}}(a70_0x21f7,0x6a13a));function a70_0x21f7(){const _0x3845d1=['121ExvIym','277944RKbyLt','138jJNCMY','808881bviLOR','194220UivtfE','520680ofkpAc','840IKGWKd','1930509BSWlff','json','12UDoKcf','pretty','compress','9873GsTBOK','60GoGyvw','28748bttkhz'];a70_0x21f7=function(){return _0x3845d1;};return a70_0x21f7();}export const OUTPUT_FORMAT_VALUES=[a70_0x58453f(0x1e9),a70_0x58453f(0x1eb),a70_0x58453f(0x1ec)];
|
package/lib/constant/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71_0x49f1ca=a71_0xebcd;(function(_0x5aca08,_0x40c6e3){const _0x24424d=a71_0xebcd,_0x4e66e1=_0x5aca08();while(!![]){try{const _0x51ca3a=-parseInt(_0x24424d(0x6e))/0x1*(parseInt(_0x24424d(0x6b))/0x2)+-parseInt(_0x24424d(0x7c))/0x3+-parseInt(_0x24424d(0x76))/0x4+-parseInt(_0x24424d(0x83))/0x5+-parseInt(_0x24424d(0x6f))/0x6*(-parseInt(_0x24424d(0x84))/0x7)+-parseInt(_0x24424d(0x73))/0x8+parseInt(_0x24424d(0x86))/0x9*(parseInt(_0x24424d(0x81))/0xa);if(_0x51ca3a===_0x40c6e3)break;else _0x4e66e1['push'](_0x4e66e1['shift']());}catch(_0x466d3c){_0x4e66e1['push'](_0x4e66e1['shift']());}}}(a71_0x5096,0xdc8c0));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':a71_0x49f1ca(0x80),'skillSource':a71_0x49f1ca(0x7e),'npmRegistryBaseUrl':a71_0x49f1ca(0x70),'envPrefix':a71_0x49f1ca(0x7a),'legacyEnvPrefixes':[a71_0x49f1ca(0x82)],'configFileNames':[a71_0x49f1ca(0x74),a71_0x49f1ca(0x7f)],'newConfigFileName':a71_0x49f1ca(0x74),'homeDirName':a71_0x49f1ca(0x71),'logFileName':a71_0x49f1ca(0x6c),'invokeSource':a71_0x49f1ca(0x7b),'userCenterDisplayName':a71_0x49f1ca(0x72),'skipNpxSkillsEnvSuffix':a71_0x49f1ca(0x6d),'domains':{'production':{'user':a71_0x49f1ca(0x85),'api':'https://api.lovrabet.com','runtime':a71_0x49f1ca(0x75),'skillhub':a71_0x49f1ca(0x78)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':a71_0x49f1ca(0x79),'runtime':'https://daily-runtime.lovrabet.com','skillhub':'https://skills-daily.lovrabet.com'}},'accessKeyCreatePath':a71_0x49f1ca(0x77)};export function productEnvName(_0x2b7d3e){const _0x40aa09=a71_0x49f1ca;return PRODUCT_CONFIG[_0x40aa09(0x7d)]+'_'+_0x2b7d3e;}export function productEnvNames(_0x5f0834){const _0x3dcd7b=a71_0x49f1ca;return[productEnvName(_0x5f0834),...PRODUCT_CONFIG[_0x3dcd7b(0x87)]['map'](_0x172afe=>_0x172afe+'_'+_0x5f0834)];}function a71_0xebcd(_0x2abb12,_0x659b1){_0x2abb12=_0x2abb12-0x6b;const _0x5096cb=a71_0x5096();let _0xebcd23=_0x5096cb[_0x2abb12];return _0xebcd23;}export function productEnv(_0x3a1d18){for(const _0x1bde4d of productEnvNames(_0x3a1d18)){const _0x3fecac=process.env[_0x1bde4d];if(_0x3fecac!==undefined)return _0x3fecac;}return undefined;}function a71_0x5096(){const _0x55a8c3=['envPrefix','lovrabet/lovrabet-cli','.lovrabetrc','@lovrabet/lovrabet-cli','580ZVXqrU','RABETBASE','8445920jSdyno','28sjqLaj','https://user.lovrabet.com','934830RGbcxi','legacyEnvPrefixes','1279448gcwEzy','.lovrabet-runtime.log','SKIP_NPX_SKILLS','1OTvVxN','543216wZGIdR','https://registry.npmjs.org','.lovrabet','Lovrabet\x20User\x20Center','12389544LRZzVi','.lovrabet.json','https://runtime.lovrabet.com','5080320zHewza','/user/ak','https://skills.lovrabet.com','https://daily-api.lovrabet.com','LOVRABET','cli:lovrabet-runtime','1006689OfAcZD'];a71_0x5096=function(){return _0x55a8c3;};return a71_0x5096();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a72_0x4521(){const _0x4bdbc0=['6850704aTyqpx','9899192BEHfGD','387ANrEYt','894oUaqgt','read','724119JIajPE','5005675nTvzyq','239790emIxEL','4054UARKTm','high-risk-write','4861430QcaIVL','4LBCVXH'];a72_0x4521=function(){return _0x4bdbc0;};return a72_0x4521();}function a72_0x426f(_0xfc9d51,_0x71ae0){_0xfc9d51=_0xfc9d51-0x8f;const _0x4521f2=a72_0x4521();let _0x426fb3=_0x4521f2[_0xfc9d51];return _0x426fb3;}const a72_0x1c912d=a72_0x426f;(function(_0x2463f4,_0x4527fb){const _0x489ce9=a72_0x426f,_0x507a66=_0x2463f4();while(!![]){try{const _0x1a03bf=-parseInt(_0x489ce9(0x99))/0x1+-parseInt(_0x489ce9(0x90))/0x2*(-parseInt(_0x489ce9(0x97))/0x3)+-parseInt(_0x489ce9(0x93))/0x4*(parseInt(_0x489ce9(0x9a))/0x5)+-parseInt(_0x489ce9(0x94))/0x6+parseInt(_0x489ce9(0x92))/0x7+parseInt(_0x489ce9(0x95))/0x8+parseInt(_0x489ce9(0x96))/0x9*(parseInt(_0x489ce9(0x8f))/0xa);if(_0x1a03bf===_0x4527fb)break;else _0x507a66['push'](_0x507a66['shift']());}catch(_0x48a704){_0x507a66['push'](_0x507a66['shift']());}}}(a72_0x4521,0xaae5a));export const RISK_LEVEL_VALUES=[a72_0x1c912d(0x98),'write',a72_0x1c912d(0x91)];
|
package/lib/constant/url.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a73_0x29fc8d=a73_0x28ab;(function(_0x494219,_0x251283){const _0x4fbbe4=a73_0x28ab,_0x2c51c1=_0x494219();while(!![]){try{const _0x2d209a=parseInt(_0x4fbbe4(0x19a))/0x1*(parseInt(_0x4fbbe4(0x199))/0x2)+-parseInt(_0x4fbbe4(0x198))/0x3+parseInt(_0x4fbbe4(0x197))/0x4*(parseInt(_0x4fbbe4(0x191))/0x5)+parseInt(_0x4fbbe4(0x193))/0x6+parseInt(_0x4fbbe4(0x19d))/0x7+-parseInt(_0x4fbbe4(0x19c))/0x8*(-parseInt(_0x4fbbe4(0x195))/0x9)+-parseInt(_0x4fbbe4(0x194))/0xa;if(_0x2d209a===_0x251283)break;else _0x2c51c1['push'](_0x2c51c1['shift']());}catch(_0x5e5083){_0x2c51c1['push'](_0x2c51c1['shift']());}}}(a73_0x4997,0xd02c2));function a73_0x28ab(_0x44b27e,_0xc7a189){_0x44b27e=_0x44b27e-0x191;const _0x499767=a73_0x4997();let _0x28ab40=_0x499767[_0x44b27e];return _0x28ab40;}function a73_0x4997(){const _0x35eba5=['user','8100732eUmUSO','24048850WugBby','18XDBBCb','production','1797064crdlTD','3790740Rfzphb','6qzAkEZ','26718kEBRkL','domains','6456488SYNTWo','4047463oaLkNH','10zGaXRd'];a73_0x4997=function(){return _0x35eba5;};return a73_0x4997();}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a73_0x29fc8d(0x19b)][a73_0x29fc8d(0x196)][a73_0x29fc8d(0x192)]+PRODUCT_CONFIG['accessKeyCreatePath'];
|