@lovrabet/lovrabet-cli 2.1.15 → 2.1.16-beta.2
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/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -0
- 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
|
-
|
|
1
|
+
function a55_0x144a(_0x1b1757,_0x1920b3){_0x1b1757=_0x1b1757-0xa6;const _0x20cb05=a55_0x20cb();let _0x144ad5=_0x20cb05[_0x1b1757];return _0x144ad5;}const a55_0x2d2e0f=a55_0x144a;(function(_0x182f39,_0x411e75){const _0x155018=a55_0x144a,_0x2ea6ee=_0x182f39();while(!![]){try{const _0x3e8d1d=-parseInt(_0x155018(0xbe))/0x1+-parseInt(_0x155018(0xb3))/0x2*(parseInt(_0x155018(0xa9))/0x3)+parseInt(_0x155018(0xc8))/0x4+parseInt(_0x155018(0xb0))/0x5*(-parseInt(_0x155018(0xb9))/0x6)+parseInt(_0x155018(0xce))/0x7+-parseInt(_0x155018(0xaf))/0x8+parseInt(_0x155018(0xaa))/0x9;if(_0x3e8d1d===_0x411e75)break;else _0x2ea6ee['push'](_0x2ea6ee['shift']());}catch(_0x1891cb){_0x2ea6ee['push'](_0x2ea6ee['shift']());}}}(a55_0x20cb,0xdd526));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a55_0x2d2e0f(0xbc),a55_0x2d2e0f(0xbf),a55_0x2d2e0f(0xc7)];export const DEFAULT_SKILL_TARGET=a55_0x2d2e0f(0xa8);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE='references/runtime-contract.md';export const OUTPUT_CONTRACT_FILE='references/output-contract.md';export function validateSkillName(_0x598f13){const _0x44f1aa=a55_0x2d2e0f,_0x1f2662=_0x598f13['trim']();if(!SKILL_NAME_PATTERN[_0x44f1aa(0xad)](_0x1f2662))throw CliErrors['validation'](_0x44f1aa(0xac)+_0x598f13+_0x44f1aa(0xca),_0x44f1aa(0xc4));return _0x1f2662;}export function normalizeSkillTemplateType(_0x220227){const _0x9c6777=a55_0x2d2e0f,_0x3a24af=(_0x220227||'write')[_0x9c6777(0xb1)]()||_0x9c6777(0xbc);if(SKILL_TYPES[_0x9c6777(0xcc)](_0x3a24af))return _0x3a24af;throw CliErrors[_0x9c6777(0xb6)]('Unsupported\x20Skill\x20type:\x20'+_0x220227,'Use\x20one\x20of:\x20'+SKILL_TYPES[_0x9c6777(0xbd)](',\x20')+'.');}export function renderSkillTemplate(_0x27adb6){const _0x4a753c=a55_0x2d2e0f,_0x29854f=validateSkillName(_0x27adb6['skillName']),_0x163957=normalizeSkillTemplateType(_0x27adb6[_0x4a753c(0xb8)]),_0x15859f=_0x27adb6[_0x4a753c(0xa7)]??new Date()['toISOString']();return{'skillName':_0x29854f,'type':_0x163957,'files':[{'path':_0x4a753c(0xba),'content':renderSkillMd(_0x29854f,_0x163957,_0x15859f)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x29854f,_0x163957)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x29854f,_0x163957)}]};}function a55_0x20cb(){const _0x54c58d=['\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','#\x20Output\x20Contract\x0a\x0a','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','\x0a\x0a##\x20内部要求\x0a\x0a执行前必须读取并遵守\x20[runtime-contract.md](references/runtime-contract.md)\x20和\x20[output-contract.md](references/output-contract.md)。\x0a\x0a##\x20使用边界\x0a\x0a【填写该\x20Skill\x20能做什么、不能做什么、适用业务范围和禁止扩大执行范围】\x0a\x0a##\x20输入门禁\x0a\x0a【填写必须具备的输入;缺失业务对象、执行范围、确认信息或权限上下文时必须停止】\x0a\x0a##\x20与现有能力集成\x0a\x0a【填写本\x20Skill\x20使用的\x20lovrabet\x20data、lovrabet\x20sql、lovrabet\x20bff\x20或\x20lovrabet\x20personal-bff\x20命令,以及包内\x20references/\x20中沉淀的运行态入口、脚本对接方式或人工操作边界。不得依赖\x20Skill\x20目录外文件、绝对路径或本机专属配置。】\x0a\x0a##\x20平台能力优先\x0a\x0a【填写本\x20Skill\x20优先使用的\x20Lovrabet\x20平台命令:lovrabet\x20data\x20/\x20lovrabet\x20sql\x20/\x20lovrabet\x20bff\x20/\x20lovrabet\x20personal-bff。本地脚本仅用于平台明确不覆盖的文件格式转换、静态校验、展示整理或第三方薄适配;不得用本地脚本替代平台命令承载业务写入、权限判断、状态机、审批提交或回滚。】\x0a\x0a##\x20第三方服务边界\x0a\x0a【填写是否调用第三方识别、生成、上传或行业服务;如涉及\x20API\x20Key、OAuth、Cookie、登录态或业务数据上传,必须说明由\x20Lovrabet\x20应用后台、BFF\x20或平台适配器统一配置。目标治理口径是\x20Skill\x20不读取、不分发、不保存明文凭证。详细凭证、额度、审计和审核发布规则写入\x20references/runtime-contract.md。】\x0a\x0a##\x20SOP\x20工作流\x0a\x0a','trainer','3832588KWXmlH','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','\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','includes','---\x0aname:\x20','5141598XlDbfw','\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','timestamp','.agents/skills','560967rLIBUJ','37652706MDdEPY','\x0a\x20\x20created:\x20\x22','Invalid\x20Skill\x20name:\x20','test','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','10688768SPiCGT','25IcrsvH','trim','\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=','14IefdDb','\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','\x0a\x0a##\x20展示规范\x0a\x0a【填写面向运营人员的展示字段、差异摘要、成功/失败状态和人工处理项;最终输出必须按\x20references/output-contract.md\x20的\x20status\x20/\x20mode\x20/\x20summary\x20/\x20errors\x20/\x20nextActions\x20返回,不能把\x20unknown、partial_success、failed\x20或\x20needs_manual_check\x20包装为\x20success。】\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败后的\x20checkpoint、重试条件、人工接管方式和避免重复写入的核对步骤】\x0a','validation','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','type','1125822jgpXSr','SKILL.md','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','write','join','1386557XvEvTT','read','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】'];a55_0x20cb=function(){return _0x54c58d;};return a55_0x20cb();}function renderSkillMd(_0x44a999,_0x19e010,_0x170a0a){const _0x576aa7=a55_0x2d2e0f,_0x54e76e=typeWorkflow(_0x19e010);return _0x576aa7(0xcd)+_0x44a999+_0x576aa7(0xb4)+_0x19e010+_0x576aa7(0xab)+_0x170a0a+_0x576aa7(0xc1)+_0x44a999+_0x576aa7(0xc6)+_0x54e76e+'\x0a\x0a'+businessStateSection(_0x19e010)+_0x576aa7(0xb5);}function renderRuntimeContract(_0x402fd5,_0x2d14b8){const _0x4a053d=a55_0x2d2e0f,_0x319299=_0x2d14b8===_0x4a053d(0xbc)?_0x4a053d(0xc9):'';return _0x4a053d(0xb7)+_0x402fd5+_0x4a053d(0xb2)+_0x2d14b8+_0x4a053d(0xcb)+_0x319299+_0x4a053d(0xa6);}function renderOutputContract(_0x1449f4,_0x588bb2){const _0x1f9d75=a55_0x2d2e0f,_0x4efd37=_0x588bb2===_0x1f9d75(0xbc)?'write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。':_0x588bb2+_0x1f9d75(0xae);return _0x1f9d75(0xc3)+_0x1449f4+'\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'+_0x4efd37+_0x1f9d75(0xbb);}function typeWorkflow(_0xe57951){const _0x43122b=a55_0x2d2e0f;if(_0xe57951===_0x43122b(0xbf))return _0x43122b(0xc5);if(_0xe57951==='trainer')return'1.\x20受控模板预览:【填写待维护内容、影响范围和预览方式】\x0a2.\x20用户确认:【填写确认信息和不可省略的人工判断点】\x0a3.\x20受控维护:【填写确认后的维护步骤和记录方式】\x0a4.\x20只读核对:【填写维护后的核对入口、差异和回滚/修正方式】';return _0x43122b(0xc2);}function businessStateSection(_0x422789){const _0x579c05=a55_0x2d2e0f;if(_0x422789!==_0x579c05(0xbc))return'';return _0x579c05(0xc0);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a55_0x311c84=a55_0x2d90;(function(_0xc3503,_0x297384){const _0x21206c=a55_0x2d90,_0x381b23=_0xc3503();while(!![]){try{const _0x2cff37=-parseInt(_0x21206c(0xaf))/0x1*(parseInt(_0x21206c(0xd6))/0x2)+-parseInt(_0x21206c(0xb2))/0x3+-parseInt(_0x21206c(0xf5))/0x4*(-parseInt(_0x21206c(0xa6))/0x5)+parseInt(_0x21206c(0xa5))/0x6*(-parseInt(_0x21206c(0xdc))/0x7)+-parseInt(_0x21206c(0xb3))/0x8*(parseInt(_0x21206c(0xb9))/0x9)+parseInt(_0x21206c(0xf4))/0xa*(-parseInt(_0x21206c(0xb6))/0xb)+-parseInt(_0x21206c(0xf0))/0xc*(-parseInt(_0x21206c(0xa8))/0xd);if(_0x2cff37===_0x297384)break;else _0x381b23['push'](_0x381b23['shift']());}catch(_0x18a5b5){_0x381b23['push'](_0x381b23['shift']());}}}(a55_0x39e9,0xa2d7b));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a55_0x1ac55a}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a55_0x311c84(0xdd),SUPPORTED_SKILL_TYPES=new Set([a55_0x311c84(0xdf),a55_0x311c84(0xc6),a55_0x311c84(0xf8)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x46f4e5,_0x4a99dd={}){const _0x5cd431=a55_0x311c84,_0x26fc19=resolveSkillDirectoryRoot(_0x46f4e5),_0x46215d=[],_0x537a95=loadRequiredSkillFile(_0x26fc19,_0x46215d),_0x382610=_0x537a95?parseFrontmatter(_0x537a95[_0x5cd431(0x9c)]):{'hasFrontmatter':![]};_0x537a95&&validateFrontmatter(_0x537a95[_0x5cd431(0xba)],_0x382610,_0x46215d);validateRuntimeCliReferences(_0x26fc19,_0x46215d);const _0x59cd42=_0x46215d['filter'](_0x137973=>_0x137973[_0x5cd431(0xef)]===_0x5cd431(0xeb)),_0x387473=_0x46215d[_0x5cd431(0xb1)](_0x1124a2=>_0x1124a2[_0x5cd431(0xef)]===_0x5cd431(0xbe));return{'ok':_0x59cd42[_0x5cd431(0xf9)]===0x0,'dir':_0x26fc19,'type':_0x382610[_0x5cd431(0xab)],'errors':_0x59cd42,'warnings':_0x387473};}function resolveSkillDirectoryRoot(_0x2a2d5c){const _0x21e63c=a55_0x311c84,_0x2aa3c3=resolve(_0x2a2d5c);if(!existsSync(_0x2aa3c3))throw CliErrors[_0x21e63c(0xf7)]('Skill\x20directory\x20not\x20found:\x20'+_0x2a2d5c);const _0x4467ed=lstatSync(_0x2aa3c3);if(_0x4467ed['isDirectory']())return _0x2aa3c3;if(_0x4467ed[_0x21e63c(0xec)]()){const _0x29eb7d=realpathSync(_0x2aa3c3);if(lstatSync(_0x29eb7d)[_0x21e63c(0xaa)]())return _0x29eb7d;}throw CliErrors['validation'](_0x21e63c(0xd3)+_0x2a2d5c);}export function throwIfSkillValidationFailed(_0x3df005,_0x15bd08=![]){const _0x2e8a83=a55_0x311c84;if(_0x3df005['ok'])return;const _0x3f5f9e=_0x3df005[_0x2e8a83(0xb5)]['map'](_0x2d8d63=>{const _0x28d779=_0x2e8a83,_0x51ef71=_0x2d8d63[_0x28d779(0x9d)]?'#'+_0x2d8d63[_0x28d779(0x9d)]:'';return _0x2d8d63['level'][_0x28d779(0xc1)]()+'\x20'+_0x2d8d63[_0x28d779(0xe3)]+'\x20'+_0x2d8d63[_0x28d779(0xad)]+_0x51ef71+':\x20'+_0x2d8d63[_0x28d779(0xe1)]+_0x28d779(0xac)+_0x2d8d63['suggestion'];});throw CliErrors[_0x2e8a83(0xf7)](_0x2e8a83(0xa4)+_0x3f5f9e[_0x2e8a83(0x9b)]('\x0a'),_0x2e8a83(0xcb));}function loadRequiredSkillFile(_0x41f75a,_0x1d2cb8){const _0x3db9b1=a55_0x311c84,_0x4bb02f=resolve(_0x41f75a,SKILL_FILE);if(!existsSync(_0x4bb02f))return _0x1d2cb8[_0x3db9b1(0xbc)](issue('error',_0x3db9b1(0xda),SKILL_FILE,_0x3db9b1(0x9f),'Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;const _0x362af5=lstatSync(_0x4bb02f);if(_0x362af5[_0x3db9b1(0xec)]())return _0x1d2cb8[_0x3db9b1(0xbc)](issue('error',_0x3db9b1(0xda),SKILL_FILE,'SKILL.md\x20must\x20be\x20a\x20regular\x20file.',_0x3db9b1(0xa3))),undefined;if(!_0x362af5[_0x3db9b1(0xd1)]())return _0x1d2cb8['push'](issue(_0x3db9b1(0xeb),_0x3db9b1(0xda),SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.',_0x3db9b1(0xdb))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x4bb02f,_0x3db9b1(0xd9))};}function validateFrontmatter(_0x515ceb,_0x18f0dd,_0x177c44){const _0x45fa65=a55_0x311c84;if(!_0x18f0dd[_0x45fa65(0xb4)]){_0x177c44[_0x45fa65(0xbc)](issue(_0x45fa65(0xeb),_0x45fa65(0xc7),_0x515ceb,_0x45fa65(0xf6),'Add\x20frontmatter\x20with\x20name\x20and\x20description.'));return;}!_0x18f0dd[_0x45fa65(0xe7)]?.['trim']()&&_0x177c44['push'](issue(_0x45fa65(0xeb),_0x45fa65(0xc7),_0x515ceb,'Frontmatter\x20name\x20is\x20missing.','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.')),!_0x18f0dd['displayName']?.[_0x45fa65(0xd0)]()&&_0x177c44[_0x45fa65(0xbc)](issue(_0x45fa65(0xbe),_0x45fa65(0xca),_0x515ceb,_0x45fa65(0xbb),_0x45fa65(0xed))),!_0x18f0dd[_0x45fa65(0xd2)]?.[_0x45fa65(0xd0)]()&&_0x177c44['push'](issue(_0x45fa65(0xbe),_0x45fa65(0xb8),_0x515ceb,'Frontmatter\x20example\x20is\x20missing.',_0x45fa65(0xe6))),!_0x18f0dd[_0x45fa65(0xee)]?.[_0x45fa65(0xd0)]()&&_0x177c44[_0x45fa65(0xbc)](issue(_0x45fa65(0xeb),_0x45fa65(0xfa),_0x515ceb,_0x45fa65(0xb0),'填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。')),_0x18f0dd['internal']===!![]&&_0x177c44['push'](issue(_0x45fa65(0xeb),_0x45fa65(0xe2),_0x515ceb,'metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.',_0x45fa65(0x9e))),_0x18f0dd[_0x45fa65(0xab)]?.[_0x45fa65(0xd0)]()&&!SUPPORTED_SKILL_TYPES['has'](_0x18f0dd[_0x45fa65(0xab)])&&_0x177c44[_0x45fa65(0xbc)](issue(_0x45fa65(0xeb),_0x45fa65(0xc7),_0x515ceb,_0x45fa65(0xf1),_0x45fa65(0xc8)));}function validateRuntimeCliReferences(_0x56c8fb,_0x2118cc){const _0x2240c4=a55_0x311c84;for(const _0x56e791 of findRabetbaseCliInvocations(_0x56c8fb)){_0x2118cc[_0x2240c4(0xbc)](issue('warning',_0x2240c4(0x99),_0x56e791['file'],_0x2240c4(0xd5),_0x2240c4(0xc3),'L'+_0x56e791[_0x2240c4(0xbd)]));}}function findRabetbaseCliInvocations(_0x176b57){const _0x20fd8e=a55_0x311c84;return scanSkillDirectory(_0x176b57)[_0x20fd8e(0xb1)](_0x22215b=>TEXT_SKILL_FILE_PATTERN[_0x20fd8e(0xf3)](_0x22215b['path']))[_0x20fd8e(0xcf)](_0x4af5b9=>{const _0x4ba038=_0x20fd8e,_0x4e9fa5=fileText(_0x4af5b9);return _0x4e9fa5[_0x4ba038(0xd8)](/\r?\n/)[_0x4ba038(0xc5)]((_0x312d40,_0xff19ac)=>({'file':_0x4af5b9[_0x4ba038(0xba)],'line':_0xff19ac+0x1,'text':_0x312d40}))[_0x4ba038(0xb1)](({text:_0x4ab407})=>isRabetbaseCliInvocation(_0x4ab407))['map'](({file:_0x2482b5,line:_0x5bf4b8})=>({'file':_0x2482b5,'line':_0x5bf4b8}));});}const RABETBASE_SUBCOMMANDS=[a55_0x311c84(0xe4),'sql',a55_0x311c84(0xd7),'page',a55_0x311c84(0xea),a55_0x311c84(0xc9),a55_0x311c84(0xc2),a55_0x311c84(0xc0),a55_0x311c84(0xcc),'kb',a55_0x311c84(0xa7),a55_0x311c84(0xa9),a55_0x311c84(0xe8),a55_0x311c84(0xe9),a55_0x311c84(0xa2),a55_0x311c84(0xc4)],RABETBASE_INVOCATION=new RegExp(String['raw']`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a55_0x311c84(0x9b)]('|')})\b`+String[a55_0x311c84(0xd4)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x46c772){const _0xa83711=a55_0x311c84,_0x15327f=_0x46c772[_0xa83711(0xe5)](/\brabetbase\b/i);if(_0x15327f<0x0)return![];const _0x462e89=_0x46c772[_0xa83711(0x9a)](_0x15327f)[_0xa83711(0xd8)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION['test'](_0x462e89);}function parseFrontmatter(_0x58f0dd){const _0x2038a5=a55_0x311c84,_0x3fc970=_0x58f0dd[_0x2038a5(0xce)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x3fc970)return{'hasFrontmatter':![]};const _0x3699a0=_0x3fc970[0x1]??'',_0x1cc43b={'hasFrontmatter':!![]};let _0x4b547d;try{_0x4b547d=a55_0x1ac55a(_0x3699a0);}catch{return _0x1cc43b;}const _0x34c9cd=asRecord(_0x4b547d);if(!_0x34c9cd)return _0x1cc43b;_0x1cc43b[_0x2038a5(0xe7)]=scalarToString(_0x34c9cd[_0x2038a5(0xe7)]),_0x1cc43b[_0x2038a5(0xcd)]=scalarToString(_0x34c9cd[_0x2038a5(0xcd)]),_0x1cc43b['description']=scalarToString(_0x34c9cd['description']),_0x1cc43b[_0x2038a5(0xd2)]=scalarToString(_0x34c9cd[_0x2038a5(0xd2)]);const _0x6a093a=asRecord(_0x34c9cd[_0x2038a5(0xb7)]);return _0x6a093a&&(_0x1cc43b['type']=scalarToString(_0x6a093a[_0x2038a5(0xab)]),_0x1cc43b['internal']=scalarToBoolean(_0x6a093a[_0x2038a5(0xa1)])),_0x1cc43b;}function asRecord(_0x17ee39){const _0x3eeffe=a55_0x311c84;if(_0x17ee39&&typeof _0x17ee39===_0x3eeffe(0xde)&&!Array[_0x3eeffe(0xa0)](_0x17ee39))return _0x17ee39;return undefined;}function a55_0x39e9(){const _0x355193=['write','boolean','message','internal-skill','ruleId','dataset','search','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','name','data','auth','project','error','isSymbolicLink','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','description','level','36395940FZQZKn','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','number','test','91830bJtRuO','275804MjqVmL','SKILL.md\x20must\x20start\x20with\x20frontmatter.','validation','trainer','length','description-required','rabetbase-cli-reference','slice','join','content','section','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','Missing\x20SKILL.md.','isArray','internal','logs','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','Skill\x20validation\x20failed:\x0a','49398omXPCE','95LbZdkV','config','13GxhOWP','workspace','isDirectory','type','\x20Fix:\x20','file','string','733289MtAKmr','Frontmatter\x20description\x20is\x20empty.','filter','3576039yOBDLa','1784yISzMB','hasFrontmatter','errors','1133DXqopl','metadata','example-recommended','5571JzXaQD','path','Frontmatter\x20displayName\x20is\x20missing.','push','line','warning','toLowerCase','service','toUpperCase','schema','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','registry','map','read','frontmatter-required','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.','app','display-name-recommended','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','artifact','displayName','match','flatMap','trim','isFile','example','Skill\x20directory\x20not\x20found:\x20','raw','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','2PWUmuO','bff','split','utf8','structure-complete','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','567wEkmvN','SKILL.md','object'];a55_0x39e9=function(){return _0x355193;};return a55_0x39e9();}function scalarToString(_0xeaf0b2){const _0xd00e4a=a55_0x311c84;if(typeof _0xeaf0b2==='string')return _0xeaf0b2[_0xd00e4a(0xd0)]();if(typeof _0xeaf0b2===_0xd00e4a(0xf2)||typeof _0xeaf0b2===_0xd00e4a(0xe0))return String(_0xeaf0b2);return undefined;}function scalarToBoolean(_0x121b44){const _0x4b1bbd=a55_0x311c84;if(typeof _0x121b44==='boolean')return _0x121b44;if(typeof _0x121b44===_0x4b1bbd(0xae))return cleanBoolean(_0x121b44);return undefined;}function a55_0x2d90(_0x17ad22,_0x28a78f){_0x17ad22=_0x17ad22-0x99;const _0x39e97c=a55_0x39e9();let _0x2d907d=_0x39e97c[_0x17ad22];return _0x2d907d;}function cleanBoolean(_0x22a6b5){const _0x7838a8=a55_0x311c84,_0x1d7a17=_0x22a6b5[_0x7838a8(0xd0)]()[_0x7838a8(0xbf)]();if(_0x1d7a17==='true')return!![];if(_0x1d7a17==='false')return![];return undefined;}function issue(_0x29148b,_0xc8cbb1,_0x35d0d1,_0x2df896,_0x49ac4d,_0x77cb23){return{'level':_0x29148b,'ruleId':_0xc8cbb1,'file':_0x35d0d1,'section':_0x77cb23,'message':_0x2df896,'suggestion':_0x49ac4d};}
|
|
1
|
+
const a56_0x23018b=a56_0x1f6e;(function(_0x487383,_0x1fb220){const _0x1a20b1=a56_0x1f6e,_0x26e83b=_0x487383();while(!![]){try{const _0x297027=parseInt(_0x1a20b1(0xce))/0x1*(parseInt(_0x1a20b1(0x108))/0x2)+-parseInt(_0x1a20b1(0x105))/0x3*(parseInt(_0x1a20b1(0x116))/0x4)+-parseInt(_0x1a20b1(0xe1))/0x5+parseInt(_0x1a20b1(0x104))/0x6*(parseInt(_0x1a20b1(0xfb))/0x7)+-parseInt(_0x1a20b1(0x117))/0x8*(parseInt(_0x1a20b1(0xe7))/0x9)+parseInt(_0x1a20b1(0xf4))/0xa+parseInt(_0x1a20b1(0xe2))/0xb*(parseInt(_0x1a20b1(0xd3))/0xc);if(_0x297027===_0x1fb220)break;else _0x26e83b['push'](_0x26e83b['shift']());}catch(_0x34c416){_0x26e83b['push'](_0x26e83b['shift']());}}}(a56_0x3d23,0xe9143));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a56_0x303ecf}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a56_0x23018b(0x102),SUPPORTED_SKILL_TYPES=new Set([a56_0x23018b(0x119),a56_0x23018b(0xec),a56_0x23018b(0xf6)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x1a51d7,_0x197125={}){const _0x1aa731=a56_0x23018b,_0x3b9bce=resolveSkillDirectoryRoot(_0x1a51d7),_0x55d2c8=[],_0x2a5ab5=loadRequiredSkillFile(_0x3b9bce,_0x55d2c8),_0x28c806=_0x2a5ab5?parseFrontmatter(_0x2a5ab5[_0x1aa731(0xdf)]):{'hasFrontmatter':![]};_0x2a5ab5&&validateFrontmatter(_0x2a5ab5[_0x1aa731(0x111)],_0x28c806,_0x55d2c8);validateRuntimeCliReferences(_0x3b9bce,_0x55d2c8);const _0x4e4aa6=_0x55d2c8[_0x1aa731(0x124)](_0x57bcd5=>_0x57bcd5[_0x1aa731(0x10a)]===_0x1aa731(0x12f)),_0x51c8a3=_0x55d2c8['filter'](_0x587381=>_0x587381['level']==='warning');return{'ok':_0x4e4aa6[_0x1aa731(0xd0)]===0x0,'dir':_0x3b9bce,'type':_0x28c806[_0x1aa731(0x128)],'errors':_0x4e4aa6,'warnings':_0x51c8a3};}function resolveSkillDirectoryRoot(_0xfa8bb){const _0x1abf51=a56_0x23018b,_0x40ccab=resolve(_0xfa8bb);if(!existsSync(_0x40ccab))throw CliErrors[_0x1abf51(0x110)](_0x1abf51(0xf5)+_0xfa8bb);const _0xc702cd=lstatSync(_0x40ccab);if(_0xc702cd['isDirectory']())return _0x40ccab;if(_0xc702cd[_0x1abf51(0x10d)]()){const _0x365abe=realpathSync(_0x40ccab);if(lstatSync(_0x365abe)[_0x1abf51(0xf8)]())return _0x365abe;}throw CliErrors[_0x1abf51(0x110)](_0x1abf51(0xf5)+_0xfa8bb);}export function throwIfSkillValidationFailed(_0x1eb667,_0x33fd11=![]){const _0x2ebe26=a56_0x23018b;if(_0x1eb667['ok'])return;const _0x2613e3=_0x1eb667[_0x2ebe26(0x130)][_0x2ebe26(0x126)](_0x2ff4de=>{const _0x412754=_0x2ebe26,_0x58fa1f=_0x2ff4de['section']?'#'+_0x2ff4de['section']:'';return _0x2ff4de['level'][_0x412754(0x11d)]()+'\x20'+_0x2ff4de[_0x412754(0x103)]+'\x20'+_0x2ff4de[_0x412754(0xe0)]+_0x58fa1f+':\x20'+_0x2ff4de[_0x412754(0xfd)]+_0x412754(0xff)+_0x2ff4de[_0x412754(0x10e)];});throw CliErrors[_0x2ebe26(0x110)](_0x2ebe26(0xed)+_0x2613e3['join']('\x0a'),_0x2ebe26(0xe4));}function a56_0x3d23(){const _0x44d436=['join','level','object','Frontmatter\x20displayName\x20is\x20missing.','isSymbolicLink','suggestion','project','validation','path','logs','registry','example','workspace','11600PUfQlc','16sSzWnt','display-name-recommended','write','rabetbase-cli-reference','Missing\x20SKILL.md.','boolean','toUpperCase','displayName','page','has','auth','toLowerCase','flatMap','filter','search','map','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','type','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','string','warning','push','structure-complete','sql','error','errors','Frontmatter\x20name\x20is\x20missing.','153Bpbmxq','frontmatter-required','length','number','config','36jXcVlY','metadata','utf8','SKILL.md\x20is\x20not\x20a\x20file.','match','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','isFile','Add\x20frontmatter\x20with\x20name\x20and\x20description.','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','hasFrontmatter','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','content','file','2255310tsqDtw','4476351BGyPKV','test','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','description','trim','2386161ZKLmuN','false','example-recommended','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','schema','read','Skill\x20validation\x20failed:\x0a','internal-skill','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','Frontmatter\x20description\x20is\x20empty.','name','app','description-required','10655230VVNFyH','Skill\x20directory\x20not\x20found:\x20','trainer','bff','isDirectory','slice','line','14PDLvFT','raw','message','split','\x20Fix:\x20','internal','isArray','SKILL.md','ruleId','2203938RrUWbt','1221WMjiHC','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','artifact','1246lluPBr'];a56_0x3d23=function(){return _0x44d436;};return a56_0x3d23();}function loadRequiredSkillFile(_0x5c396b,_0x17afcf){const _0x3875f6=a56_0x23018b,_0xbad768=resolve(_0x5c396b,SKILL_FILE);if(!existsSync(_0xbad768))return _0x17afcf[_0x3875f6(0x12c)](issue(_0x3875f6(0x12f),_0x3875f6(0x12d),SKILL_FILE,_0x3875f6(0x11b),_0x3875f6(0xde))),undefined;const _0x5ca702=lstatSync(_0xbad768);if(_0x5ca702['isSymbolicLink']())return _0x17afcf[_0x3875f6(0x12c)](issue('error',_0x3875f6(0x12d),SKILL_FILE,_0x3875f6(0x129),'Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.')),undefined;if(!_0x5ca702[_0x3875f6(0xda)]())return _0x17afcf[_0x3875f6(0x12c)](issue(_0x3875f6(0x12f),_0x3875f6(0x12d),SKILL_FILE,_0x3875f6(0xd6),_0x3875f6(0xd9))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0xbad768,_0x3875f6(0xd5))};}function validateFrontmatter(_0x48e800,_0x1e3457,_0x514f00){const _0x50e726=a56_0x23018b;if(!_0x1e3457[_0x50e726(0xdd)]){_0x514f00[_0x50e726(0x12c)](issue(_0x50e726(0x12f),_0x50e726(0xcf),_0x48e800,'SKILL.md\x20must\x20start\x20with\x20frontmatter.',_0x50e726(0xdb)));return;}!_0x1e3457[_0x50e726(0xf1)]?.[_0x50e726(0xe6)]()&&_0x514f00[_0x50e726(0x12c)](issue(_0x50e726(0x12f),'frontmatter-required',_0x48e800,_0x50e726(0xcd),_0x50e726(0x106))),!_0x1e3457['displayName']?.[_0x50e726(0xe6)]()&&_0x514f00[_0x50e726(0x12c)](issue('warning',_0x50e726(0x118),_0x48e800,_0x50e726(0x10c),_0x50e726(0x127))),!_0x1e3457[_0x50e726(0x114)]?.[_0x50e726(0xe6)]()&&_0x514f00['push'](issue(_0x50e726(0x12b),_0x50e726(0xe9),_0x48e800,'Frontmatter\x20example\x20is\x20missing.',_0x50e726(0xdc))),!_0x1e3457[_0x50e726(0xe5)]?.['trim']()&&_0x514f00[_0x50e726(0x12c)](issue(_0x50e726(0x12f),_0x50e726(0xf3),_0x48e800,_0x50e726(0xf0),'填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。')),_0x1e3457[_0x50e726(0x100)]===!![]&&_0x514f00[_0x50e726(0x12c)](issue(_0x50e726(0x12f),_0x50e726(0xee),_0x48e800,_0x50e726(0xef),_0x50e726(0xd8))),_0x1e3457[_0x50e726(0x128)]?.[_0x50e726(0xe6)]()&&!SUPPORTED_SKILL_TYPES[_0x50e726(0x120)](_0x1e3457[_0x50e726(0x128)])&&_0x514f00['push'](issue(_0x50e726(0x12f),_0x50e726(0xcf),_0x48e800,'metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.'));}function validateRuntimeCliReferences(_0x427282,_0x22e1f1){const _0x362e1e=a56_0x23018b;for(const _0x70a86d of findRabetbaseCliInvocations(_0x427282)){_0x22e1f1[_0x362e1e(0x12c)](issue('warning',_0x362e1e(0x11a),_0x70a86d['file'],_0x362e1e(0xea),'If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','L'+_0x70a86d[_0x362e1e(0xfa)]));}}function findRabetbaseCliInvocations(_0x2f943f){const _0x55611b=a56_0x23018b;return scanSkillDirectory(_0x2f943f)['filter'](_0x50c8e2=>TEXT_SKILL_FILE_PATTERN[_0x55611b(0xe3)](_0x50c8e2[_0x55611b(0x111)]))[_0x55611b(0x123)](_0x278a11=>{const _0x2a3c96=_0x55611b,_0x507de7=fileText(_0x278a11);return _0x507de7[_0x2a3c96(0xfe)](/\r?\n/)[_0x2a3c96(0x126)]((_0x32b19c,_0x671253)=>({'file':_0x278a11[_0x2a3c96(0x111)],'line':_0x671253+0x1,'text':_0x32b19c}))[_0x2a3c96(0x124)](({text:_0x316112})=>isRabetbaseCliInvocation(_0x316112))['map'](({file:_0x1f1dd2,line:_0x3dad57})=>({'file':_0x1f1dd2,'line':_0x3dad57}));});}const RABETBASE_SUBCOMMANDS=['dataset',a56_0x23018b(0x12e),a56_0x23018b(0xf7),a56_0x23018b(0x11f),a56_0x23018b(0x10f),a56_0x23018b(0xf2),a56_0x23018b(0xeb),'service',a56_0x23018b(0x107),'kb',a56_0x23018b(0xd2),a56_0x23018b(0x115),'data',a56_0x23018b(0x121),a56_0x23018b(0x112),a56_0x23018b(0x113)],RABETBASE_INVOCATION=new RegExp(String[a56_0x23018b(0xfc)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a56_0x23018b(0x109)]('|')})\b`+String[a56_0x23018b(0xfc)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x51bade){const _0x4a3809=a56_0x23018b,_0xf9248d=_0x51bade[_0x4a3809(0x125)](/\brabetbase\b/i);if(_0xf9248d<0x0)return![];const _0x46accf=_0x51bade[_0x4a3809(0xf9)](_0xf9248d)[_0x4a3809(0xfe)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x4a3809(0xe3)](_0x46accf);}function parseFrontmatter(_0x39c04c){const _0x54098d=a56_0x23018b,_0x5b4592=_0x39c04c[_0x54098d(0xd7)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x5b4592)return{'hasFrontmatter':![]};const _0x21f12b=_0x5b4592[0x1]??'',_0xc90b5={'hasFrontmatter':!![]};let _0x3b648b;try{_0x3b648b=a56_0x303ecf(_0x21f12b);}catch{return _0xc90b5;}const _0x5ca80f=asRecord(_0x3b648b);if(!_0x5ca80f)return _0xc90b5;_0xc90b5[_0x54098d(0xf1)]=scalarToString(_0x5ca80f[_0x54098d(0xf1)]),_0xc90b5[_0x54098d(0x11e)]=scalarToString(_0x5ca80f[_0x54098d(0x11e)]),_0xc90b5[_0x54098d(0xe5)]=scalarToString(_0x5ca80f[_0x54098d(0xe5)]),_0xc90b5[_0x54098d(0x114)]=scalarToString(_0x5ca80f[_0x54098d(0x114)]);const _0x1b480e=asRecord(_0x5ca80f[_0x54098d(0xd4)]);return _0x1b480e&&(_0xc90b5['type']=scalarToString(_0x1b480e[_0x54098d(0x128)]),_0xc90b5[_0x54098d(0x100)]=scalarToBoolean(_0x1b480e[_0x54098d(0x100)])),_0xc90b5;}function asRecord(_0x551154){const _0x16856b=a56_0x23018b;if(_0x551154&&typeof _0x551154===_0x16856b(0x10b)&&!Array[_0x16856b(0x101)](_0x551154))return _0x551154;return undefined;}function scalarToString(_0x11790a){const _0x178ae4=a56_0x23018b;if(typeof _0x11790a==='string')return _0x11790a['trim']();if(typeof _0x11790a===_0x178ae4(0xd1)||typeof _0x11790a==='boolean')return String(_0x11790a);return undefined;}function a56_0x1f6e(_0x15a04d,_0x2feb4c){_0x15a04d=_0x15a04d-0xcd;const _0x3d23b9=a56_0x3d23();let _0x1f6e44=_0x3d23b9[_0x15a04d];return _0x1f6e44;}function scalarToBoolean(_0x2bc6e9){const _0x561773=a56_0x23018b;if(typeof _0x2bc6e9===_0x561773(0x11c))return _0x2bc6e9;if(typeof _0x2bc6e9===_0x561773(0x12a))return cleanBoolean(_0x2bc6e9);return undefined;}function cleanBoolean(_0x3928b2){const _0x201bd4=a56_0x23018b,_0x51b6d8=_0x3928b2[_0x201bd4(0xe6)]()[_0x201bd4(0x122)]();if(_0x51b6d8==='true')return!![];if(_0x51b6d8===_0x201bd4(0xe8))return![];return undefined;}function issue(_0x1d3041,_0x32cc3e,_0x48cc32,_0x3a3b4d,_0x4844a6,_0x5262bf){return{'level':_0x1d3041,'ruleId':_0x32cc3e,'file':_0x48cc32,'section':_0x5262bf,'message':_0x3a3b4d,'suggestion':_0x4844a6};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a57_0x63653e=a57_0x22c1;(function(_0x3c75bd,_0x16fe18){const _0x545f54=a57_0x22c1,_0x5bd046=_0x3c75bd();while(!![]){try{const _0x5b95f1=parseInt(_0x545f54(0x17f))/0x1+-parseInt(_0x545f54(0x17e))/0x2+-parseInt(_0x545f54(0x18c))/0x3*(-parseInt(_0x545f54(0x17a))/0x4)+-parseInt(_0x545f54(0x188))/0x5*(-parseInt(_0x545f54(0x182))/0x6)+parseInt(_0x545f54(0x189))/0x7+-parseInt(_0x545f54(0x185))/0x8+parseInt(_0x545f54(0x18a))/0x9*(-parseInt(_0x545f54(0x180))/0xa);if(_0x5b95f1===_0x16fe18)break;else _0x5bd046['push'](_0x5bd046['shift']());}catch(_0x54a0a1){_0x5bd046['push'](_0x5bd046['shift']());}}}(a57_0x5525,0xd31e8));import{getSqlQueryInfo}from'../../core/api-client.js';function a57_0x22c1(_0x4ce96c,_0x4a2c27){_0x4ce96c=_0x4ce96c-0x17a;const _0x552523=a57_0x5525();let _0x22c176=_0x552523[_0x4ce96c];return _0x22c176;}import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a57_0x5525(){const _0x29b7d0=['3084168RqlgWN','1075926LJxQKi','354400HwEgZg','bool','12AKYoYg','str','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','6292544iZtrFw','sqlcode','dbId','4288475TaBwKr','9951144OgYReN','342evcrqd','appCode','21XPVHSU','verbose','186976JDQJeX','sqlName','read','detail'];a57_0x5525=function(){return _0x29b7d0;};return a57_0x5525();}export const sqlDetail={'service':'sql','command':a57_0x63653e(0x17d),'description':a57_0x63653e(0x184),'risk':a57_0x63653e(0x17c),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x2d60d6){const _0x16906e=a57_0x63653e,_0x347833=await getSqlQueryInfo(_0x2d60d6['appCode'],_0x2d60d6[_0x16906e(0x183)](_0x16906e(0x186))),_0x131d23=_0x2d60d6[_0x16906e(0x181)](_0x16906e(0x18d));if(_0x131d23)return{'ok':!![],'data':_0x347833};const _0x26b879=_0x347833[_0x16906e(0x187)]?await getDbName(_0x2d60d6[_0x16906e(0x18b)],_0x347833[_0x16906e(0x187)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x347833['sqlCode'],'sqlName':_0x347833[_0x16906e(0x17b)],'db':_0x26b879?_0x26b879+'\x20('+_0x347833[_0x16906e(0x187)]+')':_0x347833[_0x16906e(0x187)]??'','description':_0x347833['description']??'','sqlContent':_0x347833['sqlContent']??''}};}};
|
package/lib/commands/sql/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a58_0x2e741c=a58_0x1b47;(function(_0x4486b9,_0x4320bc){const _0x14bb24=a58_0x1b47,_0x5de410=_0x4486b9();while(!![]){try{const _0xb2152b=-parseInt(_0x14bb24(0x17f))/0x1*(parseInt(_0x14bb24(0x179))/0x2)+-parseInt(_0x14bb24(0x17e))/0x3*(parseInt(_0x14bb24(0x16a))/0x4)+parseInt(_0x14bb24(0x17a))/0x5+parseInt(_0x14bb24(0x175))/0x6+-parseInt(_0x14bb24(0x16c))/0x7+-parseInt(_0x14bb24(0x16e))/0x8+-parseInt(_0x14bb24(0x176))/0x9*(-parseInt(_0x14bb24(0x178))/0xa);if(_0xb2152b===_0x4320bc)break;else _0x5de410['push'](_0x5de410['shift']());}catch(_0x133520){_0x5de410['push'](_0x5de410['shift']());}}}(a58_0x1026,0x864b7));function a58_0x1b47(_0x51f4d6,_0x1e8677){_0x51f4d6=_0x51f4d6-0x169;const _0x102636=a58_0x1026();let _0x1b47cc=_0x102636[_0x51f4d6];return _0x1b47cc;}import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':'sql','command':a58_0x2e741c(0x171),'description':a58_0x2e741c(0x174),'risk':a58_0x2e741c(0x17d),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x2c4ce2){const _0x51e46a=a58_0x2e741c,_0x1d995d=parseJsonParams(_0x2c4ce2[_0x51e46a(0x17c)](_0x51e46a(0x173))),_0x4349cc=Date[_0x51e46a(0x16f)](),_0x40cd2f=await executeSdkSql(_0x2c4ce2[_0x51e46a(0x17c)]('sqlcode'),_0x1d995d),_0x552ecb=Date[_0x51e46a(0x16f)]()-_0x4349cc,_0x36d9ea=_0x40cd2f?.[_0x51e46a(0x169)]??_0x40cd2f,_0x1ae5a0=_0x40cd2f?.[_0x51e46a(0x17b)]??!![];if(!_0x1ae5a0)return{'ok':![],'data':{'error':_0x40cd2f?.[_0x51e46a(0x16b)]||_0x51e46a(0x177),'elapsed':_0x552ecb},'message':'SQL\x20execution\x20failed'};const _0x454c7c=Array[_0x51e46a(0x170)](_0x36d9ea)?_0x36d9ea:[];return{'ok':!![],'data':{'rows':_0x454c7c,'rowCount':_0x454c7c['length'],'elapsed':_0x552ecb},'message':_0x51e46a(0x16d)+_0x454c7c[_0x51e46a(0x172)]+'\x20row(s)\x20in\x20'+_0x552ecb+'ms'};}};function a58_0x1026(){const _0x3af47f=['exec','length','params','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','1818984WutPIz','9xxLxZm','SQL\x20execution\x20failed','24371500yuwbrV','2bkaamA','1397750ifzfGt','execSuccess','str','read','21qIvabs','348567wabDLr','execResult','331332wXlYoC','execError','7595609UqiMow','Returned\x20','3650464ZHDTjp','now','isArray'];a58_0x1026=function(){return _0x3af47f;};return a58_0x1026();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4d0446,_0xc4c672){const _0x2ae3a6=a59_0x4cb4,_0xff71f7=_0x4d0446();while(!![]){try{const _0x43ba5c=-parseInt(_0x2ae3a6(0x150))/0x1+parseInt(_0x2ae3a6(0x14f))/0x2+parseInt(_0x2ae3a6(0x157))/0x3+parseInt(_0x2ae3a6(0x14e))/0x4*(parseInt(_0x2ae3a6(0x156))/0x5)+-parseInt(_0x2ae3a6(0x152))/0x6*(parseInt(_0x2ae3a6(0x153))/0x7)+parseInt(_0x2ae3a6(0x151))/0x8*(-parseInt(_0x2ae3a6(0x155))/0x9)+parseInt(_0x2ae3a6(0x158))/0xa*(-parseInt(_0x2ae3a6(0x154))/0xb);if(_0x43ba5c===_0xc4c672)break;else _0xff71f7['push'](_0xff71f7['shift']());}catch(_0x5331f1){_0xff71f7['push'](_0xff71f7['shift']());}}}(a59_0x3601,0xbbbf7));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a59_0x3601(){const _0xbfe2f2=['697360WGcadE','309067aCbsxc','1384kegwVA','934950UQomSQ','7zdXbTJ','1969PAxnBo','34362yGYbGL','35XDXZmK','3255597joCouc','33010XhopFi','600812trkKjo'];a59_0x3601=function(){return _0xbfe2f2;};return a59_0x3601();}function a59_0x4cb4(_0xfac765,_0x2f8da0){_0xfac765=_0xfac765-0x14e;const _0x360135=a59_0x3601();let _0x4cb412=_0x360135[_0xfac765];return _0x4cb412;}export const sqlDefinitions=[sqlDetail,sqlExec];
|
package/lib/commands/update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a59_0x2548ee=a59_0x20cd;(function(_0x14a9b4,_0x5ab6ec){const _0x33880d=a59_0x20cd,_0x5cc6a5=_0x14a9b4();while(!![]){try{const _0x277be8=parseInt(_0x33880d(0x1ab))/0x1*(parseInt(_0x33880d(0x1b4))/0x2)+-parseInt(_0x33880d(0x1a5))/0x3*(parseInt(_0x33880d(0x1b7))/0x4)+-parseInt(_0x33880d(0x1ad))/0x5*(-parseInt(_0x33880d(0x1e5))/0x6)+parseInt(_0x33880d(0x1c1))/0x7*(-parseInt(_0x33880d(0x1d6))/0x8)+parseInt(_0x33880d(0x1b5))/0x9+-parseInt(_0x33880d(0x1b1))/0xa*(-parseInt(_0x33880d(0x1a9))/0xb)+-parseInt(_0x33880d(0x1a1))/0xc*(parseInt(_0x33880d(0x1c0))/0xd);if(_0x277be8===_0x5ab6ec)break;else _0x5cc6a5['push'](_0x5cc6a5['shift']());}catch(_0x53a41c){_0x5cc6a5['push'](_0x5cc6a5['shift']());}}}(a59_0x2c5b,0x48f99));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';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':a59_0x2548ee(0x1aa),'type':a59_0x2548ee(0x1d8),'description':a59_0x2548ee(0x1c8),'default':![]},{'name':a59_0x2548ee(0x1a3),'type':'boolean','description':a59_0x2548ee(0x1b2),'default':![]},{'name':a59_0x2548ee(0x1cc),'type':a59_0x2548ee(0x1bc),'description':'Install\x20a\x20specific\x20CLI\x20version'},{'name':a59_0x2548ee(0x1c5),'type':a59_0x2548ee(0x1d8),'description':a59_0x2548ee(0x19c),'default':![]},{'name':a59_0x2548ee(0x1bd),'type':a59_0x2548ee(0x1d8),'description':a59_0x2548ee(0x1de),'default':!![],'hidden':!![]}];function parseSemver(_0x1f89d4){const _0x459d0f=a59_0x2548ee,_0x4d214b=_0x1f89d4[_0x459d0f(0x1e7)]()[_0x459d0f(0x1b3)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x4d214b)return null;return{'major':Number(_0x4d214b[0x1]),'minor':Number(_0x4d214b[0x2]),'patch':Number(_0x4d214b[0x3]),'prerelease':_0x4d214b[0x4]};}function compareSemver(_0x2dbb1e,_0x113dbd){const _0x1d6d4d=a59_0x2548ee,_0xa1c93a=parseSemver(_0x2dbb1e),_0x109d07=parseSemver(_0x113dbd);if(!_0xa1c93a||!_0x109d07)throw CliErrors[_0x1d6d4d(0x1d0)](_0x1d6d4d(0x1e6),_0x1d6d4d(0x1c9));for(const _0x2aa193 of[_0x1d6d4d(0x1e3),_0x1d6d4d(0x1c4),_0x1d6d4d(0x1e4)]){if(_0xa1c93a[_0x2aa193]<_0x109d07[_0x2aa193])return-0x1;if(_0xa1c93a[_0x2aa193]>_0x109d07[_0x2aa193])return 0x1;}if(!_0xa1c93a['prerelease']&&!_0x109d07[_0x1d6d4d(0x1ba)])return 0x0;if(!_0xa1c93a['prerelease'])return 0x1;if(!_0x109d07[_0x1d6d4d(0x1ba)])return-0x1;if(_0xa1c93a[_0x1d6d4d(0x1ba)]===_0x109d07['prerelease'])return 0x0;return _0xa1c93a[_0x1d6d4d(0x1ba)]<_0x109d07['prerelease']?-0x1:0x1;}function a59_0x2c5b(){const _0x292832=['Already\x20up\x20to\x20date\x20(v','18660xLWyOm','warn','beta','fromEntries','19923ZqjxYg','Checking\x20npm\x20dist-tags...','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','761750kbZyYJ','latest','2eaCvwb','status','5oWcmOd','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','filter','length','30VTidwj','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','match','395572aeikCD','816480YwRpDT','error','216qBdZvT','inherit','/dist-tags','prerelease','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','string','skills','source','Updating\x20','715PMzdob','4732hwYaZH','Update\x20','\x20version\x20from\x20npm.','minor','no-skills','join','map','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Already\x20on\x20requested\x20version\x20(v','npm','version','update','json','exit\x20','validation','nonInteractive','bool','log','message','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','3856oHxoUt','toString','boolean','object','cwd','args','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','pipe','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','stdout','stderr','major','patch','2249004OjXtQe','Version\x20comparison\x20failed.','trim','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','Update\x20failed:\x20','/-/package/','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20('];a59_0x2c5b=function(){return _0x292832;};return a59_0x2c5b();}function getRequestedVersion(_0x1f0599){const _0x110723=a59_0x2548ee,_0x5b0d01=_0x1f0599['str'](_0x110723(0x1cc))[_0x110723(0x1e7)]();if(_0x5b0d01)return _0x5b0d01;return String(_0x1f0599[_0x110723(0x1db)]?.[0x0]??'')[_0x110723(0x1e7)]();}function shouldSkipCliBuiltInSkill(_0x532511){const _0x186ffd=a59_0x2548ee;return _0x532511[_0x186ffd(0x1d2)](_0x186ffd(0x1c5))||_0x532511['flag'](_0x186ffd(0x1bd))===![];}async function validateUpdateFlags(_0x12c6fd){const _0x46bb10=a59_0x2548ee,_0x474267=getRequestedVersion(_0x12c6fd),_0x28a580=[_0x12c6fd['bool'](_0x46bb10(0x1aa))?'latest':'',_0x12c6fd['bool'](_0x46bb10(0x1a3))?'beta':'',_0x474267?_0x46bb10(0x1cc):'']['filter'](Boolean);if(_0x28a580[_0x46bb10(0x1b0)]>0x1)throw CliErrors['validation']('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.',_0x46bb10(0x1a8));if(_0x474267&&!parseSemver(_0x474267))throw CliErrors[_0x46bb10(0x1d0)]('Invalid\x20version:\x20'+_0x474267,_0x46bb10(0x1d5));}async function fetchNpmDistTags(){const _0x34cf00=a59_0x2548ee;try{const _0x273fb2=NPM_REGISTRY_BASE_URL+_0x34cf00(0x19e)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x34cf00(0x1b9),_0x361c7a=await fetch(_0x273fb2,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x361c7a['ok'])return null;const _0x52db4c=await _0x361c7a[_0x34cf00(0x1ce)]();if(!_0x52db4c||typeof _0x52db4c!==_0x34cf00(0x1d9))return null;return Object[_0x34cf00(0x1a4)](Object['entries'](_0x52db4c)[_0x34cf00(0x1af)](([,_0x211e89])=>typeof _0x211e89===_0x34cf00(0x1bc)&&_0x211e89['trim']())[_0x34cf00(0x1c7)](([_0xa41a33,_0x1cc796])=>[_0xa41a33,String(_0x1cc796)[_0x34cf00(0x1e7)]()]));}catch{return null;}}async function resolveTargetVersion(_0x4cebd4){const _0xab6d25=a59_0x2548ee,_0x462afa=getRequestedVersion(_0x4cebd4);if(_0x462afa)return{'version':_0x462afa,'source':_0xab6d25(0x1cc)};const _0xf576b4=_0x4cebd4['bool'](_0xab6d25(0x1a3))?_0xab6d25(0x1a3):_0xab6d25(0x1aa),_0x3d8b10=await fetchNpmDistTags(),_0x2f9ca0=_0x3d8b10?.[_0xf576b4];if(!_0x2f9ca0)return null;return{'version':_0x2f9ca0,'source':_0xf576b4};}function shouldInstallTarget(_0x5e91a5,_0x49403e){const _0x2f0f16=compareSemver(_0x5e91a5,_0x49403e['version']);if(_0x49403e['source']==='version')return _0x2f0f16!==0x0;return _0x2f0f16<0x0;}function installCliPackage(_0x4ca847,_0x4269e9){const _0xa83ba=a59_0x2548ee,_0x314c42=resolveNpmBin(_0xa83ba(0x1cb)),_0x229118=['install','-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4ca847];console[_0xa83ba(0x1d3)]('*\x20'+[_0x314c42,..._0x229118][_0xa83ba(0x1c6)]('\x20'));const _0x210622=spawnSync(_0x314c42,_0x229118,{'cwd':process['cwd'](),'stdio':_0x4269e9?_0xa83ba(0x1df):_0xa83ba(0x1b8),'env':process.env,'shell':![]});if(_0x210622[_0xa83ba(0x1ac)]===0x0)return{'ok':!![]};let _0x5512d0=_0x210622['error']?.[_0xa83ba(0x1d4)]||_0xa83ba(0x1cf)+(_0x210622['status']??'unknown');if(_0x4269e9){const _0x3f0eef=_0x210622[_0xa83ba(0x1e2)]?_0x210622[_0xa83ba(0x1e2)][_0xa83ba(0x1d7)]()[_0xa83ba(0x1e7)]():'',_0x67d5b2=_0x210622[_0xa83ba(0x1e1)]?_0x210622[_0xa83ba(0x1e1)]['toString']()[_0xa83ba(0x1e7)]():'';if(_0x3f0eef)_0x5512d0=_0x3f0eef;else{if(_0x67d5b2)_0x5512d0=_0x67d5b2;}}return{'ok':![],'error':_0x5512d0};}function a59_0x20cd(_0x55a29c,_0x2ac5d4){_0x55a29c=_0x55a29c-0x19c;const _0x2c5baf=a59_0x2c5b();let _0x20cd63=_0x2c5baf[_0x55a29c];return _0x20cd63;}async function installCliBuiltInSkill(_0x1d7c06){const _0x2ac78c=a59_0x2548ee;console[_0x2ac78c(0x1d3)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x28428f=runNpxSkillsAddGlobal(process[_0x2ac78c(0x1da)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x1d7c06?_0x2ac78c(0x1df):_0x2ac78c(0x1b8)});if(_0x28428f['skipped']){console['log'](_0x2ac78c(0x19f)+LOVRABET_SKIP_NPX_SKILLS_ENV+'=1).');return;}if(_0x28428f['ok']){console[_0x2ac78c(0x1d3)](_0x2ac78c(0x1dd));return;}console[_0x2ac78c(0x1a2)](_0x2ac78c(0x1dc)+(_0x28428f[_0x2ac78c(0x1b6)]||'unknown')),console[_0x2ac78c(0x1d3)](_0x2ac78c(0x1e0));}async function execute(_0x1fea9c){const _0x163e12=a59_0x2548ee;await validateUpdateFlags(_0x1fea9c);const _0x1b44a6=getCliVersion();console[_0x163e12(0x1d3)]('Current\x20version:\x20'+_0x1b44a6),console[_0x163e12(0x1d3)](_0x163e12(0x1a6));const _0x4d8158=await resolveTargetVersion(_0x1fea9c);if(!_0x4d8158){const _0x244797=_0x1fea9c['bool'](_0x163e12(0x1a3))?_0x163e12(0x1a3):_0x163e12(0x1aa),_0x399f0c='Unable\x20to\x20resolve\x20'+_0x244797+_0x163e12(0x1c3);return console[_0x163e12(0x1a2)](_0x399f0c),console[_0x163e12(0x1d3)](_0x163e12(0x1bb)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x244797),{'ok':![]};}if(!shouldInstallTarget(_0x1b44a6,_0x4d8158)){const _0x54096f=_0x4d8158[_0x163e12(0x1be)]===_0x163e12(0x1cc)?_0x163e12(0x1ca)+_0x4d8158[_0x163e12(0x1cc)]+').':_0x163e12(0x1a0)+_0x4d8158[_0x163e12(0x1cc)]+').';return console[_0x163e12(0x1d3)](_0x54096f),shouldSkipCliBuiltInSkill(_0x1fea9c)?console[_0x163e12(0x1d3)](_0x163e12(0x1a7)):await installCliBuiltInSkill(_0x1fea9c[_0x163e12(0x1d1)]),{'ok':!![]};}console[_0x163e12(0x1d3)](_0x163e12(0x1bf)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x1b44a6+'\x20->\x20'+_0x4d8158['version']);const _0x303680=installCliPackage(_0x4d8158['version'],_0x1fea9c[_0x163e12(0x1d1)]);if(!_0x303680['ok']){const _0x1ae1ce=_0x163e12(0x19d)+(_0x303680[_0x163e12(0x1b6)]||'unknown');return console[_0x163e12(0x1b6)](_0x1ae1ce),console[_0x163e12(0x1d3)](_0x163e12(0x1ae)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4d8158['version']),{'ok':![]};}return console[_0x163e12(0x1d3)]('Updated\x20to\x20v'+_0x4d8158[_0x163e12(0x1cc)]+'.'),console[_0x163e12(0x1d3)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'),shouldSkipCliBuiltInSkill(_0x1fea9c)?console[_0x163e12(0x1d3)]('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).'):await installCliBuiltInSkill(_0x1fea9c[_0x163e12(0x1d1)]),{'ok':!![]};}export const updateDefinition={'service':a59_0x2548ee(0x1cd),'command':'run','description':a59_0x2548ee(0x1c2)+CLI_BIN_NAME+'\x20CLI\x20from\x20npm','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
1
|
+
const a60_0x278509=a60_0x5bba;(function(_0x29381f,_0x341ee4){const _0x278a4c=a60_0x5bba,_0x48bc03=_0x29381f();while(!![]){try{const _0x21ddf5=parseInt(_0x278a4c(0x1d2))/0x1*(-parseInt(_0x278a4c(0x1b8))/0x2)+-parseInt(_0x278a4c(0x1c9))/0x3+parseInt(_0x278a4c(0x1c4))/0x4*(-parseInt(_0x278a4c(0x1ae))/0x5)+parseInt(_0x278a4c(0x1d3))/0x6+-parseInt(_0x278a4c(0x1da))/0x7+-parseInt(_0x278a4c(0x1f4))/0x8*(-parseInt(_0x278a4c(0x1d6))/0x9)+parseInt(_0x278a4c(0x1f6))/0xa*(parseInt(_0x278a4c(0x1f3))/0xb);if(_0x21ddf5===_0x341ee4)break;else _0x48bc03['push'](_0x48bc03['shift']());}catch(_0x16beac){_0x48bc03['push'](_0x48bc03['shift']());}}}(a60_0x1127,0xe938b));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a60_0x5bba(_0x57c51a,_0x2b46ab){_0x57c51a=_0x57c51a-0x1ad;const _0x112771=a60_0x1127();let _0x5bba16=_0x112771[_0x57c51a];return _0x5bba16;}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':'latest','type':a60_0x278509(0x1bd),'description':a60_0x278509(0x1c1),'default':![]},{'name':'beta','type':a60_0x278509(0x1bd),'description':a60_0x278509(0x1b9),'default':![]},{'name':a60_0x278509(0x1e2),'type':a60_0x278509(0x1ce),'description':a60_0x278509(0x1f5)},{'name':a60_0x278509(0x1ea),'type':a60_0x278509(0x1bd),'description':a60_0x278509(0x1b2),'default':![]},{'name':a60_0x278509(0x1c0),'type':a60_0x278509(0x1bd),'description':a60_0x278509(0x1b7),'default':!![],'hidden':!![]}];function parseSemver(_0x3809ec){const _0x2d9692=a60_0x278509,_0x188964=_0x3809ec[_0x2d9692(0x1d7)]()[_0x2d9692(0x1dd)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x188964)return null;return{'major':Number(_0x188964[0x1]),'minor':Number(_0x188964[0x2]),'patch':Number(_0x188964[0x3]),'prerelease':_0x188964[0x4]};}function a60_0x1127(){const _0x526100=['fromEntries','skipped','12829992JiQocG','status','filter','match','\x20version\x20from\x20npm.','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','nonInteractive','minor','version','Version\x20comparison\x20failed.','Unable\x20to\x20resolve\x20','Already\x20on\x20requested\x20version\x20(v','join','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','\x20->\x20','Current\x20version:\x20','no-skills','Checking\x20npm\x20dist-tags...','install','npm','/dist-tags','unknown','pipe','beta','stdout','33HIELQG','3939512jtLzmD','Install\x20a\x20specific\x20CLI\x20version','9535640xesLjJ','warn','prerelease','inherit','run','Updating\x20','message','10YAppTr','exit\x20','source','object','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','validation','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','json','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','443834LsxLNd','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','stderr','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','cwd','boolean','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','patch','skills','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','\x20CLI\x20from\x20npm','log','836984hdKHmt','update','timeout','write','latest','3541713BPcVNK','bool','Update\x20failed:\x20','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Checking\x20CLI\x20Built-in\x20Skill...','string','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','/-/package/','6RgGcKG','11238756cacfTx','toString','error','18SaAWes','trim'];a60_0x1127=function(){return _0x526100;};return a60_0x1127();}function compareSemver(_0x34dd87,_0x302d3f){const _0x42a752=a60_0x278509,_0x5e75f2=parseSemver(_0x34dd87),_0x13f00a=parseSemver(_0x302d3f);if(!_0x5e75f2||!_0x13f00a)throw CliErrors[_0x42a752(0x1b4)](_0x42a752(0x1e3),_0x42a752(0x1cc));for(const _0xa784f0 of['major',_0x42a752(0x1e1),_0x42a752(0x1bf)]){if(_0x5e75f2[_0xa784f0]<_0x13f00a[_0xa784f0])return-0x1;if(_0x5e75f2[_0xa784f0]>_0x13f00a[_0xa784f0])return 0x1;}if(!_0x5e75f2[_0x42a752(0x1f8)]&&!_0x13f00a[_0x42a752(0x1f8)])return 0x0;if(!_0x5e75f2['prerelease'])return 0x1;if(!_0x13f00a['prerelease'])return-0x1;if(_0x5e75f2[_0x42a752(0x1f8)]===_0x13f00a['prerelease'])return 0x0;return _0x5e75f2[_0x42a752(0x1f8)]<_0x13f00a['prerelease']?-0x1:0x1;}function getRequestedVersion(_0x1b6c0d){const _0x3145f5=a60_0x278509,_0x3310b0=_0x1b6c0d['str'](_0x3145f5(0x1e2))[_0x3145f5(0x1d7)]();if(_0x3310b0)return _0x3310b0;return String(_0x1b6c0d['args']?.[0x0]??'')[_0x3145f5(0x1d7)]();}function shouldSkipCliBuiltInSkill(_0x310d1b){const _0x443e6b=a60_0x278509;return _0x310d1b[_0x443e6b(0x1ca)]('no-skills')||_0x310d1b['flag'](_0x443e6b(0x1c0))===![];}async function validateUpdateFlags(_0x4dfd64){const _0x2c711c=a60_0x278509,_0x11582b=getRequestedVersion(_0x4dfd64),_0x49b52b=[_0x4dfd64[_0x2c711c(0x1ca)](_0x2c711c(0x1c8))?_0x2c711c(0x1c8):'',_0x4dfd64['bool'](_0x2c711c(0x1f1))?_0x2c711c(0x1f1):'',_0x11582b?_0x2c711c(0x1e2):''][_0x2c711c(0x1dc)](Boolean);if(_0x49b52b['length']>0x1)throw CliErrors[_0x2c711c(0x1b4)](_0x2c711c(0x1b3),_0x2c711c(0x1cf));if(_0x11582b&&!parseSemver(_0x11582b))throw CliErrors[_0x2c711c(0x1b4)]('Invalid\x20version:\x20'+_0x11582b,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x1d63ef=a60_0x278509;try{const _0x4ab0dc=NPM_REGISTRY_BASE_URL+_0x1d63ef(0x1d1)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x1d63ef(0x1ee),_0x411205=await fetch(_0x4ab0dc,{'signal':AbortSignal[_0x1d63ef(0x1c6)](0x2710)});if(!_0x411205['ok'])return null;const _0x54bfb3=await _0x411205[_0x1d63ef(0x1b6)]();if(!_0x54bfb3||typeof _0x54bfb3!==_0x1d63ef(0x1b1))return null;return Object[_0x1d63ef(0x1d8)](Object['entries'](_0x54bfb3)['filter'](([,_0x27010e])=>typeof _0x27010e==='string'&&_0x27010e[_0x1d63ef(0x1d7)]())['map'](([_0x331bd8,_0x3ff3fe])=>[_0x331bd8,String(_0x3ff3fe)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0x4c802a){const _0x153cc2=a60_0x278509,_0x2de4cc=getRequestedVersion(_0x4c802a);if(_0x2de4cc)return{'version':_0x2de4cc,'source':'version'};const _0x53b1c1=_0x4c802a[_0x153cc2(0x1ca)](_0x153cc2(0x1f1))?_0x153cc2(0x1f1):_0x153cc2(0x1c8),_0x45ecf3=await fetchNpmDistTags(),_0x53acfc=_0x45ecf3?.[_0x53b1c1];if(!_0x53acfc)return null;return{'version':_0x53acfc,'source':_0x53b1c1};}function shouldInstallTarget(_0x450028,_0x2883ad){const _0x24b758=a60_0x278509,_0x34ce65=compareSemver(_0x450028,_0x2883ad['version']);if(_0x2883ad['source']===_0x24b758(0x1e2))return _0x34ce65!==0x0;return _0x34ce65<0x0;}function installCliPackage(_0x49c56e,_0x564551){const _0x52026f=a60_0x278509,_0x4649fd=resolveNpmBin(_0x52026f(0x1ed)),_0x517fda=[_0x52026f(0x1ec),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x49c56e];console[_0x52026f(0x1c3)]('*\x20'+[_0x4649fd,..._0x517fda][_0x52026f(0x1e6)]('\x20'));const _0x273ea6=spawnSync(_0x4649fd,_0x517fda,{'cwd':process['cwd'](),'stdio':_0x564551?'pipe':_0x52026f(0x1f9),'env':process.env,'shell':![]});if(_0x273ea6['status']===0x0)return{'ok':!![]};let _0x52d303=_0x273ea6[_0x52026f(0x1d5)]?.[_0x52026f(0x1ad)]||_0x52026f(0x1af)+(_0x273ea6[_0x52026f(0x1db)]??_0x52026f(0x1ef));if(_0x564551){const _0x188104=_0x273ea6[_0x52026f(0x1ba)]?_0x273ea6[_0x52026f(0x1ba)][_0x52026f(0x1d4)]()[_0x52026f(0x1d7)]():'',_0x1b8a9d=_0x273ea6[_0x52026f(0x1f2)]?_0x273ea6['stdout']['toString']()[_0x52026f(0x1d7)]():'';if(_0x188104)_0x52d303=_0x188104;else{if(_0x1b8a9d)_0x52d303=_0x1b8a9d;}}return{'ok':![],'error':_0x52d303};}async function installCliBuiltInSkill(_0x2d05f1){const _0x583a51=a60_0x278509;console[_0x583a51(0x1c3)](_0x583a51(0x1cd));const _0x81b530=runNpxSkillsAddGlobal(process[_0x583a51(0x1bc)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x2d05f1?_0x583a51(0x1f0):_0x583a51(0x1f9)});if(_0x81b530[_0x583a51(0x1d9)]){console[_0x583a51(0x1c3)](_0x583a51(0x1d0)+LOVRABET_SKIP_NPX_SKILLS_ENV+'=1).');return;}if(_0x81b530['ok']){console[_0x583a51(0x1c3)](_0x583a51(0x1df));return;}console['warn'](_0x583a51(0x1bb)+(_0x81b530[_0x583a51(0x1d5)]||'unknown')),console[_0x583a51(0x1c3)]('\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install');}async function execute(_0x41cb36){const _0x444bb4=a60_0x278509;await validateUpdateFlags(_0x41cb36);const _0x9ec032=getCliVersion();console[_0x444bb4(0x1c3)](_0x444bb4(0x1e9)+_0x9ec032),console[_0x444bb4(0x1c3)](_0x444bb4(0x1eb));const _0x6fad8a=await resolveTargetVersion(_0x41cb36);if(!_0x6fad8a){const _0x52a757=_0x41cb36[_0x444bb4(0x1ca)](_0x444bb4(0x1f1))?'beta':'latest',_0x639bc4=_0x444bb4(0x1e4)+_0x52a757+_0x444bb4(0x1de);return console[_0x444bb4(0x1f7)](_0x639bc4),console[_0x444bb4(0x1c3)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x52a757),{'ok':![]};}if(!shouldInstallTarget(_0x9ec032,_0x6fad8a)){const _0x24e482=_0x6fad8a[_0x444bb4(0x1b0)]===_0x444bb4(0x1e2)?_0x444bb4(0x1e5)+_0x6fad8a[_0x444bb4(0x1e2)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x6fad8a['version']+').';return console[_0x444bb4(0x1c3)](_0x24e482),shouldSkipCliBuiltInSkill(_0x41cb36)?console['log'](_0x444bb4(0x1b5)):await installCliBuiltInSkill(_0x41cb36[_0x444bb4(0x1e0)]),{'ok':!![]};}console[_0x444bb4(0x1c3)](_0x444bb4(0x1fb)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x9ec032+_0x444bb4(0x1e8)+_0x6fad8a[_0x444bb4(0x1e2)]);const _0xebc7d6=installCliPackage(_0x6fad8a[_0x444bb4(0x1e2)],_0x41cb36[_0x444bb4(0x1e0)]);if(!_0xebc7d6['ok']){const _0x580a68=_0x444bb4(0x1cb)+(_0xebc7d6[_0x444bb4(0x1d5)]||_0x444bb4(0x1ef));return console['error'](_0x580a68),console[_0x444bb4(0x1c3)](_0x444bb4(0x1e7)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x6fad8a[_0x444bb4(0x1e2)]),{'ok':![]};}return console[_0x444bb4(0x1c3)]('Updated\x20to\x20v'+_0x6fad8a['version']+'.'),console[_0x444bb4(0x1c3)](_0x444bb4(0x1be)),shouldSkipCliBuiltInSkill(_0x41cb36)?console[_0x444bb4(0x1c3)](_0x444bb4(0x1b5)):await installCliBuiltInSkill(_0x41cb36['nonInteractive']),{'ok':!![]};}export const updateDefinition={'service':a60_0x278509(0x1c5),'command':a60_0x278509(0x1fa),'description':'Update\x20'+CLI_BIN_NAME+a60_0x278509(0x1c2),'risk':a60_0x278509(0x1c7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a61_0x4578(){const _0x3f9bc0=['../../commands/app/remote-source.js','\x22\x20not\x20found.','boolean','trim','1140405MJEruw','\x0aEnv:\x20','command','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','filter','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','env','\x20workspace\x20','../../core/api-client.js','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','3984185NMPwXQ','53349ktETtw','apps','16577szJPoy','Missing\x20workspace\x20app\x20selector.','use','46CyJlBa','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','51220dPgQTM','write','shouldWriteEnv','\x0aAccessKey:\x20not\x20written','appCode','project','\x20--appcode\x20<code>\x20[--env\x20daily]','accessKey','isArray','\x22.\x20Allowed:\x20','workspace','validation','Target\x20environment','string','init','from','object','items','str','join','120qwLWik','includes','App\x20code\x20to\x20bind\x20directly','yes','app','Usage:\x20','10349232kmEOWu','3951OeoXSV','Available\x20apps:\x20','envName','appcode','9815634WgOkHn','appName'];a61_0x4578=function(){return _0x3f9bc0;};return a61_0x4578();}const a61_0xe10ba=a61_0x5833;(function(_0x5089be,_0x5b2b4e){const _0x329773=a61_0x5833,_0x4d40d9=_0x5089be();while(!![]){try{const _0x4085e3=parseInt(_0x329773(0x17b))/0x1*(parseInt(_0x329773(0x17e))/0x2)+-parseInt(_0x329773(0x179))/0x3*(-parseInt(_0x329773(0x194))/0x4)+parseInt(_0x329773(0x178))/0x5+-parseInt(_0x329773(0x19f))/0x6+-parseInt(_0x329773(0x16e))/0x7+-parseInt(_0x329773(0x19a))/0x8+parseInt(_0x329773(0x19b))/0x9*(parseInt(_0x329773(0x180))/0xa);if(_0x4085e3===_0x5b2b4e)break;else _0x4d40d9['push'](_0x4d40d9['shift']());}catch(_0x3fa0dd){_0x4d40d9['push'](_0x4d40d9['shift']());}}}(a61_0x4578,0xd3d40));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':'app','type':a61_0xe10ba(0x18d),'description':a61_0xe10ba(0x171)},{'name':a61_0xe10ba(0x19e),'type':a61_0xe10ba(0x18d),'description':a61_0xe10ba(0x196)},{'name':a61_0xe10ba(0x174),'type':a61_0xe10ba(0x18d),'description':a61_0xe10ba(0x18c),'enum':[...RUNTIME_ENV_VALUES]},{'name':a61_0xe10ba(0x197),'type':a61_0xe10ba(0x16c),'description':'Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','default':![]}];async function executeWorkspaceUse(_0x3729ae,_0x58876f){const _0x3e9915=a61_0xe10ba,_0xf69843=_0x3729ae[_0x3e9915(0x192)]('app')[_0x3e9915(0x16d)](),_0x398d46=_0x3729ae[_0x3e9915(0x192)](_0x3e9915(0x19e))[_0x3e9915(0x16d)](),_0x4b7e0b=_0x3729ae[_0x3e9915(0x192)](_0x3e9915(0x174))[_0x3e9915(0x16d)](),_0x1136d8=resolveWorkspaceEnv(_0x4b7e0b||_0x3729ae[_0x3e9915(0x19d)]||DEFAULT_CONFIG_VALUES[_0x3e9915(0x174)]);if(!_0xf69843&&!_0x398d46)throw CliErrors[_0x3e9915(0x18b)](_0x3e9915(0x17c),_0x3e9915(0x199)+CLI_BIN_NAME+_0x3e9915(0x175)+_0x58876f+_0x3e9915(0x173)+CLI_BIN_NAME+_0x3e9915(0x175)+_0x58876f+_0x3e9915(0x186));const _0x2d09c6=_0x398d46||await resolveRemoteAppCode({'command':_0x58876f,'appName':_0xf69843,'env':_0x1136d8,'accessKey':_0x3729ae['accessKey']}),_0x4d4e10=writeWorkspaceConfig({'command':_0x58876f,'appName':_0xf69843,'appcode':_0x2d09c6,'env':_0x1136d8,'shouldWriteEnv':!!_0x4b7e0b,'accessKey':_0x3729ae[_0x3e9915(0x187)]});return{'ok':!![],'data':{'configPath':_0x4d4e10,'app':_0xf69843||null,'appcode':_0x2d09c6,'env':_0x4b7e0b?_0x1136d8:null,'accessKeyWritten':![],'command':'workspace\x20'+_0x58876f},'message':buildWorkspaceMessage(_0x4d4e10,_0xf69843,_0x2d09c6,_0x4b7e0b?_0x1136d8:undefined)};}async function resolveRemoteAppCode(_0x4b72d3){const _0x554de5=a61_0xe10ba;if(!_0x4b72d3['accessKey'])throw CliErrors['authRequired']('Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20'+CLI_BIN_NAME+'\x20workspace\x20'+_0x4b72d3[_0x554de5(0x170)]+'.');const {setActiveAK:_0x2a7754}=await import(_0x554de5(0x176)),{getRemoteAppList:_0x23c549}=await import(_0x554de5(0x1a1));_0x2a7754(_0x4b72d3['accessKey']);const _0x5b8634=await _0x23c549({'env':_0x4b72d3['env'],'accessKey':_0x4b72d3[_0x554de5(0x187)],'noCache':![]}),_0x4c1b57=findAppByName(_0x5b8634[_0x554de5(0x191)],_0x4b72d3[_0x554de5(0x1a0)]);if(_0x4c1b57&&!isRuntimeAccessibleApp(_0x4c1b57))throw runtimeInaccessibleAppError(_0x4c1b57,'\x22'+_0x4b72d3[_0x554de5(0x1a0)]+'\x22');const _0x1766f2=_0x4c1b57?.[_0x554de5(0x184)]?.['trim']();if(_0x1766f2)return _0x1766f2;const _0x95124f=_0x5b8634[_0x554de5(0x191)]['map'](_0x5b293a=>_0x5b293a[_0x554de5(0x1a0)])[_0x554de5(0x172)](Boolean),_0x5db3c9=_0x95124f['length']?_0x554de5(0x19c)+Array[_0x554de5(0x18f)](new Set(_0x95124f))['join'](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+_0x554de5(0x177);throw CliErrors[_0x554de5(0x18b)]('App\x20\x22'+_0x4b72d3['appName']+_0x554de5(0x16b),_0x5db3c9);}function writeWorkspaceConfig(_0x3ab7e8){const _0x13236f=a61_0xe10ba,_0x400aad=resolveWriteConfigPath(_0x13236f(0x185)),_0x2bb155=readConfigFile(_0x400aad);_0x3ab7e8[_0x13236f(0x182)]&&(_0x2bb155[_0x13236f(0x174)]=_0x3ab7e8['env']);if(_0x3ab7e8['appName']){const _0x5616c7=isRecord(_0x2bb155[_0x13236f(0x17a)])?{..._0x2bb155['apps']}:{},_0x40b49b=isRecord(_0x5616c7[_0x3ab7e8[_0x13236f(0x1a0)]])?_0x5616c7[_0x3ab7e8['appName']]:{};_0x5616c7[_0x3ab7e8['appName']]={..._0x40b49b,'appcode':_0x3ab7e8[_0x13236f(0x19e)]},_0x2bb155[_0x13236f(0x17a)]=_0x5616c7,_0x2bb155['defaultApp']=_0x3ab7e8[_0x13236f(0x1a0)];if(_0x2bb155[_0x13236f(0x198)])delete _0x2bb155['app'];return writeAndReturn(_0x400aad,_0x2bb155);}_0x2bb155[_0x13236f(0x19e)]=_0x3ab7e8[_0x13236f(0x19e)];if(_0x2bb155[_0x13236f(0x198)])delete _0x2bb155[_0x13236f(0x198)];return writeAndReturn(_0x400aad,_0x2bb155);}function writeAndReturn(_0x5444a8,_0x3c143b){return writeConfigFile(_0x5444a8,_0x3c143b),_0x5444a8;}function resolveWorkspaceEnv(_0x52f4ae){const _0x2bcd8a=a61_0xe10ba;if(RUNTIME_ENV_VALUES[_0x2bcd8a(0x195)](_0x52f4ae))return _0x52f4ae;throw CliErrors['validation']('Invalid\x20env\x20\x22'+_0x52f4ae+_0x2bcd8a(0x189)+RUNTIME_ENV_VALUES[_0x2bcd8a(0x193)](',\x20'));}function a61_0x5833(_0x4fdf28,_0x4f1ea0){_0x4fdf28=_0x4fdf28-0x16b;const _0x45781d=a61_0x4578();let _0x5833b2=_0x45781d[_0x4fdf28];return _0x5833b2;}function buildWorkspaceMessage(_0x5c09d3,_0x3ba038,_0x18396d,_0x9324e7){const _0x5460bf=a61_0xe10ba,_0x2f1d0d=_0x3ba038?_0x3ba038+'\x20('+_0x18396d+')':_0x18396d,_0x4b5323=_0x9324e7?_0x5460bf(0x16f)+_0x9324e7:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x5c09d3+'\x0aDefault\x20app:\x20'+_0x2f1d0d+_0x4b5323+_0x5460bf(0x183);}function isRecord(_0x4c4b95){const _0x29dbdf=a61_0xe10ba;return typeof _0x4c4b95===_0x29dbdf(0x190)&&_0x4c4b95!==null&&!Array[_0x29dbdf(0x188)](_0x4c4b95);}function makeWorkspaceCommand(_0x15a05b){const _0x3a1106=a61_0xe10ba;return{'service':_0x3a1106(0x18a),'command':_0x15a05b,'description':_0x15a05b===_0x3a1106(0x18e)?'Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace':_0x3a1106(0x17f),'risk':_0x3a1106(0x181),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x42a5cc){return executeWorkspaceUse(_0x42a5cc,_0x15a05b);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a61_0xe10ba(0x18e)),makeWorkspaceCommand(a61_0xe10ba(0x17d))];
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a62_0x454395=a62_0x23d3;function a62_0x23d3(_0x2ca0df,_0x5de951){_0x2ca0df=_0x2ca0df-0x13d;const _0x502332=a62_0x5023();let _0x23d353=_0x502332[_0x2ca0df];return _0x23d353;}(function(_0x58db34,_0x236498){const _0x579052=a62_0x23d3,_0x59c28c=_0x58db34();while(!![]){try{const _0x5622dc=-parseInt(_0x579052(0x15f))/0x1+-parseInt(_0x579052(0x156))/0x2*(parseInt(_0x579052(0x15c))/0x3)+parseInt(_0x579052(0x14a))/0x4*(-parseInt(_0x579052(0x13f))/0x5)+-parseInt(_0x579052(0x14c))/0x6*(-parseInt(_0x579052(0x144))/0x7)+parseInt(_0x579052(0x142))/0x8*(parseInt(_0x579052(0x13d))/0x9)+-parseInt(_0x579052(0x159))/0xa*(parseInt(_0x579052(0x14f))/0xb)+parseInt(_0x579052(0x150))/0xc*(parseInt(_0x579052(0x14e))/0xd);if(_0x5622dc===_0x236498)break;else _0x59c28c['push'](_0x59c28c['shift']());}catch(_0x514e47){_0x59c28c['push'](_0x59c28c['shift']());}}}(a62_0x5023,0x9995a));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a62_0x454395(0x14d),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a62_0x454395(0x152)],'importable':!![]},'format':{'description':a62_0x454395(0x15b),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a62_0x454395(0x15d)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a62_0x454395(0x15e),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a62_0x454395(0x151),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a62_0x454395(0x155),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a62_0x454395(0x158),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a62_0x454395(0x157),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a62_0x454395(0x143)],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a62_0x454395(0x149)](CONFIG_FIELD_SCHEMAS)[a62_0x454395(0x14b)](([,_0x2a9a56])=>_0x2a9a56[a62_0x454395(0x140)])['map'](([_0x1a6f9c])=>_0x1a6f9c));export const CONFIG_ENUM_VALUES=Object[a62_0x454395(0x148)](Object[a62_0x454395(0x149)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x5802d3])=>_0x5802d3[a62_0x454395(0x154)])[a62_0x454395(0x15a)](([_0x10048a,_0x5225c2])=>[_0x10048a,[..._0x5225c2[a62_0x454395(0x154)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a62_0x454395(0x149)](CONFIG_FIELD_SCHEMAS)[a62_0x454395(0x14b)](([,_0x178562])=>_0x178562['importable'])['map'](([_0x34c947])=>_0x34c947);export function getConfigFieldSchema(_0x15cf62){return CONFIG_FIELD_SCHEMAS[_0x15cf62];}export function getConfigEnumValues(_0x2fde6b){return getConfigFieldSchema(_0x2fde6b)?.['enumValues'];}export function getConfigDefaultValue(_0x556b18){const _0x3064ae=a62_0x454395;return getConfigFieldSchema(_0x556b18)?.[_0x3064ae(0x145)];}export function isTopLevelConfigKey(_0x40736d){const _0x44d441=a62_0x454395;return TOP_LEVEL_CONFIG_KEYS[_0x44d441(0x13e)](_0x40736d);}export function isLegacyCompatConfigKey(_0xd0259c){const _0x5ba62b=a62_0x454395;return getConfigFieldSchema(_0xd0259c)?.[_0x5ba62b(0x153)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x28b320){const _0x5b9f83=a62_0x454395;return[..._0x28b320][_0x5b9f83(0x141)](',\x20');}function a62_0x5023(){const _0x3b220d=['Override\x20SkillHub\x20domain','5036vUzBkn','Risk\x20level','Access\x20key\x20(client-ak\x20auth)','110dHDeqV','map','Default\x20output\x20format','549dJmvha','format','Override\x20user\x20domain','425829wMNhGn','36OkPYHh','has','18045OOEJqy','cliSettableTopLevel','join','2341696klpRpD','riskLevel','175rFwJUI','defaultValue','Config\x20key.\x20Top-level:\x20',';\x20local\x20alias:\x20apps.<alias>.appcode','fromEntries','entries','1248CPApKV','filter','178044OzICPH','Target\x20environment','16718EYDoFY','797467lEyufi','14244ZBFOhX','Override\x20runtime\x20domain','env','legacyCompatOnly','enumValues'];a62_0x5023=function(){return _0x3b220d;};return a62_0x5023();}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x2d244a=a62_0x454395;return _0x2d244a(0x146)+getTopLevelConfigKeySummary()+_0x2d244a(0x147);}export function buildAppProfileListFields(_0x5cb44e){return{'env':_0x5cb44e,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a63_0xc76b8=a63_0x33d0;function a63_0x2df6(){const _0x3922dc=['20VzTRae','Published','7547722VRwhaw','PUBLISHED','501825LuViHG','10473093sSdPLo','4mogSME','219613YrrKGl','8TmnqtS','4269168hwikJB','4671335GCAnrI','4040520hmlwoR'];a63_0x2df6=function(){return _0x3922dc;};return a63_0x2df6();}(function(_0x2c23f6,_0x2e8efa){const _0x453580=a63_0x33d0,_0x3f9e5f=_0x2c23f6();while(!![]){try{const _0x5d8527=parseInt(_0x453580(0x174))/0x1+parseInt(_0x453580(0x175))/0x2*(-parseInt(_0x453580(0x17d))/0x3)+-parseInt(_0x453580(0x173))/0x4*(parseInt(_0x453580(0x177))/0x5)+-parseInt(_0x453580(0x176))/0x6+parseInt(_0x453580(0x17b))/0x7+-parseInt(_0x453580(0x178))/0x8+parseInt(_0x453580(0x172))/0x9*(parseInt(_0x453580(0x179))/0xa);if(_0x5d8527===_0x2e8efa)break;else _0x3f9e5f['push'](_0x3f9e5f['shift']());}catch(_0x5c3fc7){_0x3f9e5f['push'](_0x3f9e5f['shift']());}}}(a63_0x2df6,0xc4985));export const APP_PUBLISH_STATUS={'Published':a63_0xc76b8(0x17c),'Unpublished':'UNPUBLISH'};function a63_0x33d0(_0x3a40b8,_0x531ccd){_0x3a40b8=_0x3a40b8-0x172;const _0x2df6ec=a63_0x2df6();let _0x33d0fb=_0x2df6ec[_0x3a40b8];return _0x33d0fb;}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a63_0xc76b8(0x17a)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a64_0x2992(){const _0x2f94fe=['3656718hEjtAM','791941BvrscY','20rTiQGr','14refbjq','ClientAk','1224844wyFOhx','3185077xUGiMo','259188RNobLe','6841928gUNdhF','12491487gPIvRf','15RVPopG'];a64_0x2992=function(){return _0x2f94fe;};return a64_0x2992();}(function(_0x349223,_0x350cc8){const _0x2391ba=a64_0x57df,_0x24f40a=_0x349223();while(!![]){try{const _0x3d68f0=parseInt(_0x2391ba(0x18c))/0x1+parseInt(_0x2391ba(0x183))/0x2*(parseInt(_0x2391ba(0x187))/0x3)+parseInt(_0x2391ba(0x185))/0x4*(parseInt(_0x2391ba(0x18a))/0x5)+parseInt(_0x2391ba(0x18b))/0x6+-parseInt(_0x2391ba(0x186))/0x7+parseInt(_0x2391ba(0x188))/0x8+parseInt(_0x2391ba(0x189))/0x9*(-parseInt(_0x2391ba(0x18d))/0xa);if(_0x3d68f0===_0x350cc8)break;else _0x24f40a['push'](_0x24f40a['shift']());}catch(_0x342b63){_0x24f40a['push'](_0x24f40a['shift']());}}}(a64_0x2992,0x86117));export const AUTH_MODE={'ClientAk':'client-ak'};function a64_0x57df(_0x4be81f,_0x5af4b4){_0x4be81f=_0x4be81f-0x183;const _0x2992d5=a64_0x2992();let _0x57df36=_0x2992d5[_0x4be81f];return _0x57df36;}export function isAuthMode(_0x4d7b4a){const _0x37efc5=a64_0x57df;return _0x4d7b4a===AUTH_MODE[_0x37efc5(0x184)];}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a65_0x5a6a(_0x2eacf2,_0x58235e){_0x2eacf2=_0x2eacf2-0x136;const _0x3c2a51=a65_0x3c2a();let _0x5a6a52=_0x3c2a51[_0x2eacf2];return _0x5a6a52;}const a65_0x37279e=a65_0x5a6a;(function(_0x54fe1d,_0x52ec51){const _0x2f53c7=a65_0x5a6a,_0x777586=_0x54fe1d();while(!![]){try{const _0x25e691=-parseInt(_0x2f53c7(0x161))/0x1*(parseInt(_0x2f53c7(0x136))/0x2)+parseInt(_0x2f53c7(0x157))/0x3*(-parseInt(_0x2f53c7(0x163))/0x4)+-parseInt(_0x2f53c7(0x14b))/0x5*(-parseInt(_0x2f53c7(0x13b))/0x6)+-parseInt(_0x2f53c7(0x153))/0x7+-parseInt(_0x2f53c7(0x156))/0x8*(-parseInt(_0x2f53c7(0x13c))/0x9)+parseInt(_0x2f53c7(0x150))/0xa+-parseInt(_0x2f53c7(0x14e))/0xb*(-parseInt(_0x2f53c7(0x13a))/0xc);if(_0x25e691===_0x52ec51)break;else _0x777586['push'](_0x777586['shift']());}catch(_0x5e384e){_0x777586['push'](_0x777586['shift']());}}}(a65_0x3c2a,0x2636e));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a65_0x37279e(0x140)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a65_0x37279e(0x15a),'meowKey':a65_0x37279e(0x15a),'type':a65_0x37279e(0x15d),'description':a65_0x37279e(0x168),'hint':a65_0x37279e(0x138)},{'name':a65_0x37279e(0x155),'meowKey':'app','type':a65_0x37279e(0x15d),'description':a65_0x37279e(0x14d),'hint':a65_0x37279e(0x15b)},{'name':a65_0x37279e(0x159),'meowKey':a65_0x37279e(0x159),'type':a65_0x37279e(0x15d),'description':a65_0x37279e(0x143),'hint':a65_0x37279e(0x144)},{'name':a65_0x37279e(0x142),'meowKey':'format','type':a65_0x37279e(0x15d),'description':a65_0x37279e(0x165),'hint':a65_0x37279e(0x149)},{'name':'jq','meowKey':'jq','type':a65_0x37279e(0x15d),'description':a65_0x37279e(0x14f),'hint':a65_0x37279e(0x148)},{'name':a65_0x37279e(0x14a),'meowKey':'dryRun','type':a65_0x37279e(0x160),'description':a65_0x37279e(0x139)},{'name':'yes','meowKey':a65_0x37279e(0x145),'type':a65_0x37279e(0x160),'description':a65_0x37279e(0x147)},{'name':a65_0x37279e(0x13d),'meowKey':a65_0x37279e(0x152),'type':a65_0x37279e(0x160),'description':a65_0x37279e(0x15c)},{'name':'global','meowKey':a65_0x37279e(0x154),'type':a65_0x37279e(0x160),'description':a65_0x37279e(0x14c)},{'name':'ci','meowKey':'ci','type':a65_0x37279e(0x160),'description':a65_0x37279e(0x13e),'hidden':!![]},{'name':a65_0x37279e(0x146),'meowKey':a65_0x37279e(0x146),'type':a65_0x37279e(0x160),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':'string','description':a65_0x37279e(0x15f),'hidden':!![]},{'name':a65_0x37279e(0x15e),'meowKey':a65_0x37279e(0x15e),'type':'string','description':'Name\x20filter','hidden':!![]},{'name':'sqlcode','meowKey':a65_0x37279e(0x167),'type':'string','description':a65_0x37279e(0x164),'hidden':!![]},{'name':'params','meowKey':'params','type':a65_0x37279e(0x15d),'description':a65_0x37279e(0x166),'hidden':!![]},{'name':a65_0x37279e(0x13f),'meowKey':a65_0x37279e(0x13f),'type':'boolean','description':a65_0x37279e(0x137),'hidden':!![]},{'name':'clear','meowKey':a65_0x37279e(0x169),'type':a65_0x37279e(0x160),'description':a65_0x37279e(0x162),'hidden':!![]}];function a65_0x3c2a(){const _0x198ada=['Use\x20global\x20config\x20scope','Select\x20app\x20profile\x20by\x20name','489621QXMuZT','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','994360FiFJeb','map','nonInteractive','1898456ldZuUg','global','app','416NAnToQ','117426MmFJCm','type','env','appcode','<name>','Force\x20non-interactive\x20mode\x20(CI)','string','name','Record\x20ID','boolean','11915ldPSkq','Clear\x20output','28JnPcer','SQL\x20query\x20code','Output\x20format','JSON\x20params\x20for\x20execute\x20commands','sqlcode','Override\x20appcode','clear','38VbIebN','Verbose\x20output','<code>','Preview\x20operation\x20without\x20executing','84tVhIdC','370908bqgsMt','46701ZiQuEW','non-interactive','Alias\x20for\x20--non-interactive','verbose','cliBinName','fromEntries','format','Environment','production\x20|\x20development\x20|\x20daily','yes','help','Skip\x20confirmation\x20for\x20high-risk\x20writes','<expr>','json\x20|\x20pretty\x20|\x20compress','dry-run','20KVPyym'];a65_0x3c2a=function(){return _0x198ada;};return a65_0x3c2a();}export const PIPELINE_FLAG_NAMES=new Set([a65_0x37279e(0x15a),a65_0x37279e(0x155),a65_0x37279e(0x159),'format','jq',a65_0x37279e(0x14a),a65_0x37279e(0x145),a65_0x37279e(0x13d),'ci']);export function buildMeowFlags(){const _0x32570c=a65_0x37279e;return Object[_0x32570c(0x141)](GLOBAL_FLAGS[_0x32570c(0x151)](_0x5e77e2=>[_0x5e77e2['meowKey'],{'type':_0x5e77e2[_0x32570c(0x158)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a66_0x1a24d3=a66_0x82b8;(function(_0x5271bf,_0x7cb179){const _0x80043d=a66_0x82b8,_0x2cec19=_0x5271bf();while(!![]){try{const _0xc496c1=-parseInt(_0x80043d(0xdd))/0x1+parseInt(_0x80043d(0xde))/0x2+-parseInt(_0x80043d(0xdb))/0x3*(parseInt(_0x80043d(0xe1))/0x4)+-parseInt(_0x80043d(0xe4))/0x5+-parseInt(_0x80043d(0xd9))/0x6+-parseInt(_0x80043d(0xe0))/0x7+parseInt(_0x80043d(0xe2))/0x8;if(_0xc496c1===_0x7cb179)break;else _0x2cec19['push'](_0x2cec19['shift']());}catch(_0x1af6d6){_0x2cec19['push'](_0x2cec19['shift']());}}}(a66_0x3a8b,0xbd507));function a66_0x82b8(_0x312c7a,_0x5e8ce1){_0x312c7a=_0x312c7a-0xd9;const _0x3a8b63=a66_0x3a8b();let _0x82b80a=_0x3a8b63[_0x312c7a];return _0x82b80a;}export const DEFAULT_APP_PROFILE_NAME=a66_0x1a24d3(0xda);export const DEFAULT_CONFIG_VALUES={'env':a66_0x1a24d3(0xdf),'format':a66_0x1a24d3(0xe3),'locale':'en-US','riskLevel':a66_0x1a24d3(0xdc)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';function a66_0x3a8b(){const _0x3f92eb=['6776562heSZvi','main','36xMdmIv','write','1178617FeVsVU','2885374scycOA','production','5347174WsPzyr','166588xUVkQT','30631936rnLkWL','compress','4622790ZgCDOo'];a66_0x3a8b=function(){return _0x3f92eb;};return a66_0x3a8b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67_0x558216=a67_0x2ba7;(function(_0x5c204a,_0x329513){const _0x4c0a66=a67_0x2ba7,_0xb6c34=_0x5c204a();while(!![]){try{const _0x169be9=parseInt(_0x4c0a66(0xe6))/0x1+-parseInt(_0x4c0a66(0xe1))/0x2*(-parseInt(_0x4c0a66(0xe2))/0x3)+parseInt(_0x4c0a66(0xe5))/0x4*(parseInt(_0x4c0a66(0xe0))/0x5)+parseInt(_0x4c0a66(0xea))/0x6*(parseInt(_0x4c0a66(0xec))/0x7)+-parseInt(_0x4c0a66(0xe9))/0x8*(-parseInt(_0x4c0a66(0xe7))/0x9)+-parseInt(_0x4c0a66(0xed))/0xa*(parseInt(_0x4c0a66(0xe8))/0xb)+parseInt(_0x4c0a66(0xe4))/0xc*(parseInt(_0x4c0a66(0xee))/0xd);if(_0x169be9===_0x329513)break;else _0xb6c34['push'](_0xb6c34['shift']());}catch(_0x29864f){_0xb6c34['push'](_0xb6c34['shift']());}}}(a67_0x3ec5,0x4ffef));import{PRODUCT_CONFIG}from'../constant/product.js';function a67_0x2ba7(_0x5ee93f,_0x4ccdbe){_0x5ee93f=_0x5ee93f-0xe0;const _0x3ec526=a67_0x3ec5();let _0x2ba76d=_0x3ec526[_0x5ee93f];return _0x2ba76d;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];function a67_0x3ec5(){const _0x1fc01d=['15085vAMrIy','870dpbafS','1252420zRIxOn','150WqvYLH','42DvGlUy','50169iPBbXB','npmRegistryBaseUrl','12QzugFR','31516oLpYDb','70220qHvtOg','81ZkmCCl','54956ZQkQlt','1544JDjFQl','18mapIpy','skillSource'];a67_0x3ec5=function(){return _0x1fc01d;};return a67_0x3ec5();}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a67_0x558216(0xeb)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a67_0x558216(0xe3)];
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x326eec=a68_0xf12a;(function(_0x331332,_0x21f47e){const _0x462fa4=a68_0xf12a,_0x393314=_0x331332();while(!![]){try{const _0x3dfee7=-parseInt(_0x462fa4(0x19b))/0x1*(parseInt(_0x462fa4(0x1a7))/0x2)+-parseInt(_0x462fa4(0x1a4))/0x3*(-parseInt(_0x462fa4(0x1a0))/0x4)+parseInt(_0x462fa4(0x1a6))/0x5*(parseInt(_0x462fa4(0x1a8))/0x6)+parseInt(_0x462fa4(0x1ac))/0x7*(parseInt(_0x462fa4(0x1ab))/0x8)+-parseInt(_0x462fa4(0x1b2))/0x9*(-parseInt(_0x462fa4(0x1a5))/0xa)+-parseInt(_0x462fa4(0x19c))/0xb*(parseInt(_0x462fa4(0x1a3))/0xc)+parseInt(_0x462fa4(0x19d))/0xd*(-parseInt(_0x462fa4(0x1b1))/0xe);if(_0x3dfee7===_0x21f47e)break;else _0x393314['push'](_0x393314['shift']());}catch(_0x21919c){_0x393314['push'](_0x393314['shift']());}}}(a68_0x2679,0xf0729));import{getEnv,isProduction}from'../constant/env.js';function a68_0x2679(){const _0x9686af=['3351752GIBINj','14SftJsP','runtime','userDomain','apiDomain','domains','119182ldxSpM','239769TifcYl','nonProduction','379103TwshIe','11dGtaEC','299CedQNa','skillHubDomain','runtimeDomain','128332EfUCYY','skillhub','api','12383520MVjMnl','9iFJsai','220VRDytV','5357230SHOVHM','2XStyBH','6fpkcNS','production','user'];a68_0x2679=function(){return _0x9686af;};return a68_0x2679();}import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x314190){const _0x39a7a9=a68_0xf12a;customApiDomain=_0x314190?.[_0x39a7a9(0x1af)],customUserDomain=_0x314190?.[_0x39a7a9(0x1ae)],customRuntimeDomain=_0x314190?.[_0x39a7a9(0x19f)],customSkillHubDomain=_0x314190?.[_0x39a7a9(0x19e)];}function a68_0xf12a(_0x4d78f2,_0x53ef99){_0x4d78f2=_0x4d78f2-0x19a;const _0x267939=a68_0x2679();let _0xf12ad5=_0x267939[_0x4d78f2];return _0xf12ad5;}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains']['production'][a68_0x326eec(0x1aa)]:PRODUCT_CONFIG[a68_0x326eec(0x1b0)][a68_0x326eec(0x19a)][a68_0x326eec(0x1aa)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a68_0x326eec(0x1a9)][a68_0x326eec(0x1a2)]:PRODUCT_CONFIG[a68_0x326eec(0x1b0)][a68_0x326eec(0x19a)]['api']);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a68_0x326eec(0x1b0)][a68_0x326eec(0x1a9)][a68_0x326eec(0x1ad)]:PRODUCT_CONFIG[a68_0x326eec(0x1b0)][a68_0x326eec(0x19a)][a68_0x326eec(0x1ad)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a68_0x326eec(0x1b0)]['production'][a68_0x326eec(0x1a1)]:PRODUCT_CONFIG[a68_0x326eec(0x1b0)][a68_0x326eec(0x19a)]['skillhub']);
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a69_0x30b543=a69_0x207c;(function(_0x202e07,_0x29eb2c){const _0xddd90a=a69_0x207c,_0x2a23a1=_0x202e07();while(!![]){try{const _0x4000cf=parseInt(_0xddd90a(0x1c8))/0x1*(-parseInt(_0xddd90a(0x1c7))/0x2)+-parseInt(_0xddd90a(0x1be))/0x3+-parseInt(_0xddd90a(0x1c4))/0x4*(parseInt(_0xddd90a(0x1bb))/0x5)+-parseInt(_0xddd90a(0x1c0))/0x6*(-parseInt(_0xddd90a(0x1bd))/0x7)+parseInt(_0xddd90a(0x1bc))/0x8+parseInt(_0xddd90a(0x1ba))/0x9*(-parseInt(_0xddd90a(0x1c9))/0xa)+parseInt(_0xddd90a(0x1c6))/0xb;if(_0x4000cf===_0x29eb2c)break;else _0x2a23a1['push'](_0x2a23a1['shift']());}catch(_0x121668){_0x2a23a1['push'](_0x2a23a1['shift']());}}}(a69_0x5f50,0xe98c4));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a69_0x30b543(0x1c2),a69_0x30b543(0x1bf),a69_0x30b543(0x1c5)];function a69_0x207c(_0x48e832,_0x436401){_0x48e832=_0x48e832-0x1ba;const _0x5f50a0=a69_0x5f50();let _0x207c6f=_0x5f50a0[_0x48e832];return _0x207c6f;}export function normalizeEnv(_0x15bdaf){const _0x4ab23b=a69_0x30b543;return _0x15bdaf===_0x4ab23b(0x1c3)?_0x4ab23b(0x1c2):_0x15bdaf;}export function isProduction(_0x17a33a){const _0x1a3592=a69_0x30b543;return normalizeEnv(_0x17a33a)===_0x1a3592(0x1c2);}export function isDaily(_0x1b6e57){const _0x2e3219=a69_0x30b543;return normalizeEnv(_0x1b6e57)===_0x2e3219(0x1c5);}export function isDev(_0x446783){const _0x2a63c4=a69_0x30b543,_0x553404=normalizeEnv(_0x446783);return _0x553404==='development'||_0x553404===_0x2a63c4(0x1c1);}function a69_0x5f50(){const _0x3d9d37=['development','12YmPplc','dev','production','online','8tKWChO','daily','62284937zXVmVO','3121702biSIoN','1DNONef','20QvFaDs','8129547byWJaZ','3048335VzCPek','7268784xbOvnW','2505146YJZERX','5229774kavYaX'];a69_0x5f50=function(){return _0x3d9d37;};return a69_0x5f50();}let env=normalizeEnv(productEnv('ENV')||a69_0x30b543(0x1c2));export function getEnv(){return env;}export function initEnv(_0x360a30){env=normalizeEnv(_0x360a30);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a70_0x3791(_0x366ac9,_0x77da17){_0x366ac9=_0x366ac9-0x17f;const _0x18441c=a70_0x1844();let _0x379101=_0x18441c[_0x366ac9];return _0x379101;}const a70_0x1b2c15=a70_0x3791;(function(_0x336408,_0x3d5e89){const _0x16916e=a70_0x3791,_0x4cacab=_0x336408();while(!![]){try{const _0x3fe577=-parseInt(_0x16916e(0x180))/0x1+-parseInt(_0x16916e(0x182))/0x2+-parseInt(_0x16916e(0x181))/0x3*(parseInt(_0x16916e(0x185))/0x4)+-parseInt(_0x16916e(0x188))/0x5+parseInt(_0x16916e(0x18b))/0x6*(parseInt(_0x16916e(0x183))/0x7)+parseInt(_0x16916e(0x184))/0x8+parseInt(_0x16916e(0x18a))/0x9*(parseInt(_0x16916e(0x186))/0xa);if(_0x3fe577===_0x3d5e89)break;else _0x4cacab['push'](_0x4cacab['shift']());}catch(_0x40fba8){_0x4cacab['push'](_0x4cacab['shift']());}}}(a70_0x1844,0x4a378));function a70_0x1844(){const _0x1964d6=['28422nfZUjR','pretty','371693Bzpbjf','13029IddjKA','950024aGzeDl','413zGqMov','154864HNPtpS','124dXBuQH','15489570XUbrye','compress','2812340DCGAvM','json','9iEJktl'];a70_0x1844=function(){return _0x1964d6;};return a70_0x1844();}export const OUTPUT_FORMAT_VALUES=[a70_0x1b2c15(0x189),a70_0x1b2c15(0x17f),a70_0x1b2c15(0x187)];
|
package/lib/constant/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a71_0x1469(){const _0x58d803=['3554252edMNLQ','legacyEnvPrefixes','2879905xfKojD','https://user.lovrabet.com','6chGgRh','https://daily-api.lovrabet.com','SKIP_NPX_SKILLS','6472920NDLGON','Lovrabet\x20User\x20Center','10QnAGWS','17lwfvlo','https://registry.npmjs.org','2921673ksxxFE','cli:lovrabet-runtime','RABETBASE','/user/ak','envPrefix','https://user-daily.lovrabet.com','.lovrabet.json','62566bzqtgn','https://skills.lovrabet.com','lovrabet/lovrabet-cli','map','.lovrabet','.lovrabetrc','https://api.lovrabet.com','.lovrabet-runtime.log','4308297tmXdhc','18442341gohJrp','https://skills-daily.lovrabet.com','LOVRABET'];a71_0x1469=function(){return _0x58d803;};return a71_0x1469();}const a71_0x4e6577=a71_0x2775;(function(_0x1343c5,_0x582caa){const _0x2f635c=a71_0x2775,_0x600f6e=_0x1343c5();while(!![]){try{const _0x7b6ed7=-parseInt(_0x2f635c(0x110))/0x1*(parseInt(_0x2f635c(0xfa))/0x2)+-parseInt(_0x2f635c(0x112))/0x3+parseInt(_0x2f635c(0x106))/0x4+parseInt(_0x2f635c(0x108))/0x5*(parseInt(_0x2f635c(0x10a))/0x6)+-parseInt(_0x2f635c(0x102))/0x7+-parseInt(_0x2f635c(0x10d))/0x8+parseInt(_0x2f635c(0x103))/0x9*(parseInt(_0x2f635c(0x10f))/0xa);if(_0x7b6ed7===_0x582caa)break;else _0x600f6e['push'](_0x600f6e['shift']());}catch(_0xe2d47e){_0x600f6e['push'](_0x600f6e['shift']());}}}(a71_0x1469,0x8e6ed));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':'Lovrabet\x20Runtime\x20CLI','npmPackageName':'@lovrabet/lovrabet-cli','skillSource':a71_0x4e6577(0xfc),'npmRegistryBaseUrl':a71_0x4e6577(0x111),'envPrefix':a71_0x4e6577(0x105),'legacyEnvPrefixes':[a71_0x4e6577(0x114)],'configFileNames':['.lovrabet.json',a71_0x4e6577(0xff)],'newConfigFileName':a71_0x4e6577(0xf9),'homeDirName':a71_0x4e6577(0xfe),'logFileName':a71_0x4e6577(0x101),'invokeSource':a71_0x4e6577(0x113),'userCenterDisplayName':a71_0x4e6577(0x10e),'skipNpxSkillsEnvSuffix':a71_0x4e6577(0x10c),'domains':{'production':{'user':a71_0x4e6577(0x109),'api':a71_0x4e6577(0x100),'runtime':'https://runtime.lovrabet.com','skillhub':a71_0x4e6577(0xfb)},'nonProduction':{'user':a71_0x4e6577(0x117),'api':a71_0x4e6577(0x10b),'runtime':'https://daily-runtime.lovrabet.com','skillhub':a71_0x4e6577(0x104)}},'accessKeyCreatePath':a71_0x4e6577(0x115)};function a71_0x2775(_0xbb544c,_0x304529){_0xbb544c=_0xbb544c-0xf9;const _0x1469aa=a71_0x1469();let _0x2775af=_0x1469aa[_0xbb544c];return _0x2775af;}export function productEnvName(_0x1f73a7){const _0x47c2de=a71_0x4e6577;return PRODUCT_CONFIG[_0x47c2de(0x116)]+'_'+_0x1f73a7;}export function productEnvNames(_0x3971e8){const _0x5a826f=a71_0x4e6577;return[productEnvName(_0x3971e8),...PRODUCT_CONFIG[_0x5a826f(0x107)][_0x5a826f(0xfd)](_0x58c713=>_0x58c713+'_'+_0x3971e8)];}export function productEnv(_0x39357e){for(const _0x4f6bf0 of productEnvNames(_0x39357e)){const _0x3612f2=process.env[_0x4f6bf0];if(_0x3612f2!==undefined)return _0x3612f2;}return undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a72_0x1feaa5=a72_0x5d78;(function(_0x5a54a7,_0x3333af){const _0x110440=a72_0x5d78,_0xb52a03=_0x5a54a7();while(!![]){try{const _0x16307f=parseInt(_0x110440(0x17e))/0x1*(-parseInt(_0x110440(0x179))/0x2)+-parseInt(_0x110440(0x177))/0x3*(-parseInt(_0x110440(0x17f))/0x4)+-parseInt(_0x110440(0x17a))/0x5+parseInt(_0x110440(0x17c))/0x6+-parseInt(_0x110440(0x181))/0x7+parseInt(_0x110440(0x17d))/0x8*(parseInt(_0x110440(0x178))/0x9)+parseInt(_0x110440(0x182))/0xa;if(_0x16307f===_0x3333af)break;else _0xb52a03['push'](_0xb52a03['shift']());}catch(_0x3f9fe9){_0xb52a03['push'](_0xb52a03['shift']());}}}(a72_0x1c90,0xb53b4));function a72_0x5d78(_0x1cab4f,_0x17883f){_0x1cab4f=_0x1cab4f-0x177;const _0x1c9073=a72_0x1c90();let _0x5d78f9=_0x1c9073[_0x1cab4f];return _0x5d78f9;}function a72_0x1c90(){const _0xf9718e=['3673350ISGfME','8lbSLSE','43HEPcLO','17204aQAmtt','high-risk-write','8457631XozsZw','18624150vPnwer','51ZxaziK','7479972NUwYhK','28852qAGimS','4039950eORFlE','read'];a72_0x1c90=function(){return _0xf9718e;};return a72_0x1c90();}export const RISK_LEVEL_VALUES=[a72_0x1feaa5(0x17b),'write',a72_0x1feaa5(0x180)];
|
package/lib/constant/url.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a73_0x3874(_0x5c3266,_0x5d362d){_0x5c3266=_0x5c3266-0x65;const _0x2c5cc8=a73_0x2c5c();let _0x38740b=_0x2c5cc8[_0x5c3266];return _0x38740b;}const a73_0xcdec2c=a73_0x3874;(function(_0x3a87eb,_0xd3aa82){const _0x22197e=a73_0x3874,_0x5902cc=_0x3a87eb();while(!![]){try{const _0x368bd5=-parseInt(_0x22197e(0x6d))/0x1*(-parseInt(_0x22197e(0x6f))/0x2)+-parseInt(_0x22197e(0x6c))/0x3*(-parseInt(_0x22197e(0x6e))/0x4)+-parseInt(_0x22197e(0x69))/0x5+-parseInt(_0x22197e(0x70))/0x6+-parseInt(_0x22197e(0x66))/0x7+parseInt(_0x22197e(0x68))/0x8+parseInt(_0x22197e(0x6a))/0x9*(parseInt(_0x22197e(0x67))/0xa);if(_0x368bd5===_0xd3aa82)break;else _0x5902cc['push'](_0x5902cc['shift']());}catch(_0x182818){_0x5902cc['push'](_0x5902cc['shift']());}}}(a73_0x2c5c,0xb542f));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a73_0xcdec2c(0x65)]['production'][a73_0xcdec2c(0x6b)]+PRODUCT_CONFIG['accessKeyCreatePath'];function a73_0x2c5c(){const _0x4a6b84=['4794585GhJoFA','304119dgIzTD','user','2748579QMIGKj','29825KBxZkF','4GRFupK','38QKQtfh','6511686iXTQVn','domains','8454516sLisyM','670QrwcZt','1980544POgHjB'];a73_0x2c5c=function(){return _0x4a6b84;};return a73_0x2c5c();}
|