@lovrabet/lovrabet-cli 2.1.3 → 2.1.4-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/artifact/index.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/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/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/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/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/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/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/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/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a40_0x13d71a=a40_0xa10e;(function(_0x3d31c5,_0x34af19){const _0x59d44e=a40_0xa10e,_0x31a712=_0x3d31c5();while(!![]){try{const _0x11478c=-parseInt(_0x59d44e(0x9e))/0x1*(-parseInt(_0x59d44e(0x9f))/0x2)+-parseInt(_0x59d44e(0xb6))/0x3+parseInt(_0x59d44e(0xa0))/0x4+-parseInt(_0x59d44e(0xaa))/0x5*(parseInt(_0x59d44e(0xad))/0x6)+-parseInt(_0x59d44e(0xa7))/0x7*(-parseInt(_0x59d44e(0xa6))/0x8)+parseInt(_0x59d44e(0xae))/0x9+-parseInt(_0x59d44e(0x9c))/0xa;if(_0x11478c===_0x34af19)break;else _0x31a712['push'](_0x31a712['shift']());}catch(_0x3062bb){_0x31a712['push'](_0x31a712['shift']());}}}(a40_0x3ec6,0x5a228));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a40_0x13d71a(0xa3),'type':a40_0x13d71a(0xab),'description':a40_0x13d71a(0xa5)};export const SCOPE_FLAG={'name':a40_0x13d71a(0xa4),'type':a40_0x13d71a(0xab),'description':'Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','enum':[a40_0x13d71a(0xa8),a40_0x13d71a(0xa9),a40_0x13d71a(0xb4)]};function a40_0x3ec6(){const _0x9b785f=['boolean','type','code','scope','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','741976cSMUtN','7qtjSQH','all','personal','30FjzRQp','string','write','91158dEEEJm','5514714yXvZyM','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','force','target','name','Local\x20Skill\x20directory\x20containing\x20SKILL.md','company','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','1457766NDOqsB','Skill\x20template\x20type','6215890ZEyhoY','strict','5vTzjqG','179710eLSqJU','1652372QUMydS'];a40_0x3ec6=function(){return _0x9b785f;};return a40_0x3ec6();}export const LIST_SCOPE_FLAG={'name':a40_0x13d71a(0xa4),'type':a40_0x13d71a(0xab),'description':'Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','enum':[a40_0x13d71a(0xa8),a40_0x13d71a(0xa9),a40_0x13d71a(0xb4)]};export const LOCAL_FLAG={'name':'local','type':'boolean','description':'Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists'};export const DIR_FLAG={'name':'dir','type':'string','required':!![],'description':a40_0x13d71a(0xb3)};export const CREATE_NAME_FLAG={'name':a40_0x13d71a(0xb2),'type':a40_0x13d71a(0xab),'required':!![],'description':'Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','pattern':{'regex':SKILL_NAME_PATTERN,'description':'lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens'}};export const TYPE_FLAG={'name':a40_0x13d71a(0xa2),'type':a40_0x13d71a(0xab),'description':a40_0x13d71a(0x9b),'default':a40_0x13d71a(0xac),'enum':[...SKILL_TYPES]};function a40_0xa10e(_0x44c054,_0x5ac4cd){_0x44c054=_0x44c054-0x9b;const _0x3ec6f0=a40_0x3ec6();let _0xa10e8=_0x3ec6f0[_0x44c054];return _0xa10e8;}export const TARGET_FLAG={'name':a40_0x13d71a(0xb1),'type':a40_0x13d71a(0xab),'description':a40_0x13d71a(0xaf),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a40_0x13d71a(0xb0),'type':a40_0x13d71a(0xa1),'description':'Overwrite\x20generated\x20files\x20when\x20the\x20Skill\x20directory\x20already\x20exists'};export const STRICT_FLAG={'name':a40_0x13d71a(0x9d),'type':'boolean','description':a40_0x13d71a(0xb5)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a41_0x2db7(){const _0xa9589=['1256685UNvcCi','5684022mcmAVK','2kPDycO','1095908odUhat','132HpgqVm','4166692BzuxLa','5ryDkOS','7brmEiv','2087076xdZGMI','126rkBlvW','561944rbEpku','2847300SIKLwK'];a41_0x2db7=function(){return _0xa9589;};return a41_0x2db7();}(function(_0x1d36f7,_0x2d6244){const _0x53a0b3=a41_0x4c08,_0xbc67d5=_0x1d36f7();while(!![]){try{const _0x5d06e9=-parseInt(_0x53a0b3(0x14b))/0x1*(-parseInt(_0x53a0b3(0x14c))/0x2)+parseInt(_0x53a0b3(0x155))/0x3+-parseInt(_0x53a0b3(0x14e))/0x4*(-parseInt(_0x53a0b3(0x14f))/0x5)+parseInt(_0x53a0b3(0x14a))/0x6*(parseInt(_0x53a0b3(0x150))/0x7)+-parseInt(_0x53a0b3(0x153))/0x8*(parseInt(_0x53a0b3(0x152))/0x9)+parseInt(_0x53a0b3(0x154))/0xa+parseInt(_0x53a0b3(0x14d))/0xb*(-parseInt(_0x53a0b3(0x151))/0xc);if(_0x5d06e9===_0x2d6244)break;else _0xbc67d5['push'](_0xbc67d5['shift']());}catch(_0x34bbfb){_0xbc67d5['push'](_0xbc67d5['shift']());}}}(a41_0x2db7,0xaf4f1));import{createCommand}from'./commands/create.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';function a41_0x4c08(_0x341347,_0x3177f3){_0x341347=_0x341347-0x14a;const _0x2db7cf=a41_0x2db7();let _0x4c0811=_0x2db7cf[_0x341347];return _0x4c0811;}import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x265ba9,_0x43dd45){var _0x540b49=a42_0x2f7f,_0x25f6fe=_0x265ba9();while(!![]){try{var _0x160da8=parseInt(_0x540b49(0x149))/0x1*(parseInt(_0x540b49(0x144))/0x2)+parseInt(_0x540b49(0x147))/0x3*(parseInt(_0x540b49(0x14e))/0x4)+-parseInt(_0x540b49(0x148))/0x5+parseInt(_0x540b49(0x142))/0x6+-parseInt(_0x540b49(0x146))/0x7+-parseInt(_0x540b49(0x14f))/0x8+parseInt(_0x540b49(0x14b))/0x9*(parseInt(_0x540b49(0x150))/0xa);if(_0x160da8===_0x43dd45)break;else _0x25f6fe['push'](_0x25f6fe['shift']());}catch(_0x1950e9){_0x25f6fe['push'](_0x25f6fe['shift']());}}}(a42_0x57fc,0x6d5f4));export function isPackageBackedManifest(_0x15d323){var _0x6f8672=a42_0x2f7f;return!!_0x15d323&&typeof _0x15d323===_0x6f8672(0x14d)&&!Array[_0x6f8672(0x14a)](_0x15d323)&&typeof _0x15d323['ossPath']==='string'&&_0x15d323[_0x6f8672(0x143)][_0x6f8672(0x145)]>0x0&&Array['isArray'](_0x15d323[_0x6f8672(0x141)]);}export function isMultiFileManifest(_0x2dbdd1){var _0x1e8428=a42_0x2f7f;return!!_0x2dbdd1&&typeof _0x2dbdd1===_0x1e8428(0x14d)&&!Array[_0x1e8428(0x14a)](_0x2dbdd1)&&Array[_0x1e8428(0x14a)](_0x2dbdd1['files'])&&_0x2dbdd1[_0x1e8428(0x141)]['some'](_0x306ad6=>_0x306ad6['path']!==_0x1e8428(0x14c));}function a42_0x2f7f(_0x18824d,_0xa1ed76){_0x18824d=_0x18824d-0x141;var _0x57fc3f=a42_0x57fc();var _0x2f7f24=_0x57fc3f[_0x18824d];return _0x2f7f24;}function a42_0x57fc(){var _0x292b39=['5384096kxUcjO','310xHMcNq','files','4366230GJOrDT','ossPath','34gthmKc','length','2720977kHiYZb','412905dybRCO','930510xnpwNM','4211MAKTjj','isArray','20529CnWDlQ','SKILL.md','object','24RKGsbo'];a42_0x57fc=function(){return _0x292b39;};return a42_0x57fc();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x10e180,_0x562e71){const _0x3b03c0=a43_0x440d,_0xfb7f97=_0x10e180();while(!![]){try{const _0x656b2f=-parseInt(_0x3b03c0(0x1b3))/0x1+-parseInt(_0x3b03c0(0x1be))/0x2+parseInt(_0x3b03c0(0x1b4))/0x3*(-parseInt(_0x3b03c0(0x1b6))/0x4)+parseInt(_0x3b03c0(0x1bf))/0x5*(-parseInt(_0x3b03c0(0x1b2))/0x6)+parseInt(_0x3b03c0(0x1bc))/0x7+parseInt(_0x3b03c0(0x1b7))/0x8*(-parseInt(_0x3b03c0(0x1bb))/0x9)+-parseInt(_0x3b03c0(0x1bd))/0xa*(-parseInt(_0x3b03c0(0x1b1))/0xb);if(_0x656b2f===_0x562e71)break;else _0xfb7f97['push'](_0xfb7f97['shift']());}catch(_0x288ef6){_0xfb7f97['push'](_0xfb7f97['shift']());}}}(a43_0x24da,0x1b14f));import{CliErrors}from'../../errors.js';function a43_0x440d(_0x11da8d,_0x193132){_0x11da8d=_0x11da8d-0x1b1;const _0x24da73=a43_0x24da();let _0x440d89=_0x24da73[_0x11da8d];return _0x440d89;}export function normalizeSyncScopes(_0x5e0ea8){const _0xb0704a=a43_0x440d,_0xe6141=_0x5e0ea8[_0xb0704a(0x1b5)]();if(!_0xe6141||_0xe6141===_0xb0704a(0x1c0))return[_0xb0704a(0x1ba),_0xb0704a(0x1b9)];if(_0xe6141===_0xb0704a(0x1ba)||_0xe6141===_0xb0704a(0x1b9))return[_0xe6141];throw CliErrors[_0xb0704a(0x1b8)](_0xb0704a(0x1c1)+_0x5e0ea8);}export function normalizeListScope(_0x3b4aa3){const _0x2aabcd=a43_0x440d,_0x167ecf=_0x3b4aa3[_0x2aabcd(0x1b5)]();if(!_0x167ecf)return _0x2aabcd(0x1c0);if(_0x167ecf===_0x2aabcd(0x1ba)||_0x167ecf==='company'||_0x167ecf===_0x2aabcd(0x1c0))return _0x167ecf;throw CliErrors[_0x2aabcd(0x1b8)]('Unsupported\x20Skill\x20list\x20scope:\x20'+_0x3b4aa3);}export function shouldListScope(_0x338367,_0x284e08){const _0x57eab2=a43_0x440d;if(_0x338367===_0x57eab2(0x1c0))return!![];return _0x338367===_0x284e08;}export function listScopeToRuntimeScopes(_0x1bb511){const _0x2b46a3=a43_0x440d;if(_0x1bb511===_0x2b46a3(0x1c0))return['personal',_0x2b46a3(0x1b9)];return[_0x1bb511===_0x2b46a3(0x1b9)?'company':_0x1bb511];}export function listScopeToRemoteScope(_0x15e757){return _0x15e757;}function a43_0x24da(){const _0x4dced9=['40956NBsRjL','104CeeXzY','validation','company','personal','30375LgJvjA','1306319tccCDE','1774540COioZz','20382PJpksf','25svXjGD','all','Unsupported\x20Skill\x20sync\x20scope:\x20','11UZmcOh','101046broQkG','53439ErQUXU','18mSKWqj','trim'];a43_0x24da=function(){return _0x4dced9;};return a43_0x24da();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xba7133,_0x40adac){var _0x39ab1c=a44_0x5c8e,_0x47d598=_0xba7133();while(!![]){try{var _0x5ae283=parseInt(_0x39ab1c(0xaa))/0x1*(-parseInt(_0x39ab1c(0xa4))/0x2)+-parseInt(_0x39ab1c(0xb4))/0x3+parseInt(_0x39ab1c(0xab))/0x4*(parseInt(_0x39ab1c(0xb5))/0x5)+-parseInt(_0x39ab1c(0xbb))/0x6*(parseInt(_0x39ab1c(0xb1))/0x7)+parseInt(_0x39ab1c(0xb6))/0x8+parseInt(_0x39ab1c(0xb9))/0x9*(-parseInt(_0x39ab1c(0xae))/0xa)+parseInt(_0x39ab1c(0xad))/0xb;if(_0x5ae283===_0x40adac)break;else _0x47d598['push'](_0x47d598['shift']());}catch(_0x2be243){_0x47d598['push'](_0x47d598['shift']());}}}(a44_0x3000,0xa22df));export function summarizeRuntimeSkill(_0x437410){var _0x1ad217=a44_0x5c8e;return{'id':_0x437410['id'],'skillCode':_0x437410[_0x1ad217(0xb8)],'skillName':_0x437410[_0x1ad217(0xa9)],'scope':_0x437410[_0x1ad217(0xba)],'version':_0x437410[_0x1ad217(0xb3)],'readonly':_0x437410[_0x1ad217(0xac)]};}function a44_0x5c8e(_0x2ef377,_0x4f3546){_0x2ef377=_0x2ef377-0xa4;var _0x3000f4=a44_0x3000();var _0x5c8e31=_0x3000f4[_0x2ef377];return _0x5c8e31;}function a44_0x3000(){var _0x159c3d=['tags','version','334362vLaTJa','5iXRBBj','8614064IaScZo','dir','skillCode','5076945tdUEUZ','scope','556746IFcwnW','1902XlGDJs','treeHash','metadataPath','skillMdPath','contentHash','skillName','479ugLThU','1034692KEwCDx','readonly','8121487nHhtyv','10pFkyRg','status','cacheDir','21phkHFe'];a44_0x3000=function(){return _0x159c3d;};return a44_0x3000();}export function summarizeLocalRuntimeSkill(_0x400987){var _0x27399a=a44_0x5c8e;return{'id':_0x400987['id'],'skillCode':_0x400987[_0x27399a(0xb8)],'skillName':_0x400987[_0x27399a(0xa9)],'scope':_0x400987['scope'],'appCode':_0x400987['appCode'],'version':_0x400987['version'],'status':_0x400987[_0x27399a(0xaf)],'readonly':_0x400987[_0x27399a(0xac)],'tags':_0x400987[_0x27399a(0xb2)],'dir':_0x400987[_0x27399a(0xb7)],'cacheDir':_0x400987[_0x27399a(0xb0)],'skillMdPath':_0x400987[_0x27399a(0xa7)],'metadataPath':_0x400987[_0x27399a(0xa6)],'linkedPaths':_0x400987['linkedPaths'],'contentHash':_0x400987[_0x27399a(0xa8)],'treeHash':_0x400987[_0x27399a(0xa5)],'pulledAt':_0x400987['pulledAt']};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a45_0x11fc(){const _0xbe2887=['.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','\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','\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0ametadata:\x0a\x20\x20type:\x20','references/runtime-contract.md','read','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','validation','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','.agents/skills','includes','4469500koZbfv','135XLUVuo','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','4653824lrPUBW','Use\x20one\x20of:\x20','trainer','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','join','102516pMOYWH','100708QfAiDh','2800644cPigwa','615558FPqDDY','#\x20Output\x20Contract\x0a\x0a','trim','toISOString','7899762aPGBHO','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','type','\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','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','timestamp','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\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','write','\x0a\x20\x20created:\x20\x22'];a45_0x11fc=function(){return _0xbe2887;};return a45_0x11fc();}function a45_0x5bac(_0x5d8d27,_0x15c946){_0x5d8d27=_0x5d8d27-0x69;const _0x11fc77=a45_0x11fc();let _0x5bacb8=_0x11fc77[_0x5d8d27];return _0x5bacb8;}const a45_0x44f18b=a45_0x5bac;(function(_0x2346dc,_0x4cbc0a){const _0x108538=a45_0x5bac,_0x30b101=_0x2346dc();while(!![]){try{const _0x5b35a6=-parseInt(_0x108538(0x83))/0x1+-parseInt(_0x108538(0x81))/0x2+parseInt(_0x108538(0x82))/0x3+-parseInt(_0x108538(0x80))/0x4*(parseInt(_0x108538(0x79))/0x5)+parseInt(_0x108538(0x87))/0x6+parseInt(_0x108538(0x78))/0x7+-parseInt(_0x108538(0x7b))/0x8;if(_0x5b35a6===_0x4cbc0a)break;else _0x30b101['push'](_0x30b101['shift']());}catch(_0x4efb6e){_0x30b101['push'](_0x30b101['shift']());}}}(a45_0x11fc,0xe7b3c));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a45_0x44f18b(0x6c),a45_0x44f18b(0x72),a45_0x44f18b(0x7d)];export const DEFAULT_SKILL_TARGET=a45_0x44f18b(0x76);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a45_0x44f18b(0x71);export const OUTPUT_CONTRACT_FILE='references/output-contract.md';export function validateSkillName(_0x20f357){const _0x3957d2=a45_0x44f18b,_0x286eed=_0x20f357[_0x3957d2(0x85)]();if(!SKILL_NAME_PATTERN['test'](_0x286eed))throw CliErrors['validation']('Invalid\x20Skill\x20name:\x20'+_0x20f357+_0x3957d2(0x6e),_0x3957d2(0x73));return _0x286eed;}export function normalizeSkillTemplateType(_0x27e8d9){const _0x5eda13=a45_0x44f18b,_0x48a695=(_0x27e8d9||_0x5eda13(0x6c))[_0x5eda13(0x85)]()||_0x5eda13(0x6c);if(SKILL_TYPES[_0x5eda13(0x77)](_0x48a695))return _0x48a695;throw CliErrors[_0x5eda13(0x74)]('Unsupported\x20Skill\x20type:\x20'+_0x27e8d9,_0x5eda13(0x7c)+SKILL_TYPES[_0x5eda13(0x7f)](',\x20')+'.');}export function renderSkillTemplate(_0x1fbd5d){const _0x1d0cf1=a45_0x44f18b,_0xf5be53=validateSkillName(_0x1fbd5d['skillName']),_0x31d853=normalizeSkillTemplateType(_0x1fbd5d[_0x1d0cf1(0x89)]),_0xa31cd7=_0x1fbd5d[_0x1d0cf1(0x8c)]??new Date()[_0x1d0cf1(0x86)]();return{'skillName':_0xf5be53,'type':_0x31d853,'files':[{'path':'SKILL.md','content':renderSkillMd(_0xf5be53,_0x31d853,_0xa31cd7)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0xf5be53,_0x31d853)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0xf5be53,_0x31d853)}]};}function renderSkillMd(_0xdb8af7,_0x2179d6,_0x1c5dc7){const _0x13ff21=a45_0x44f18b,_0xe86bf6=typeWorkflow(_0x2179d6);return'---\x0aname:\x20'+_0xdb8af7+_0x13ff21(0x70)+_0x2179d6+_0x13ff21(0x6d)+_0x1c5dc7+_0x13ff21(0x6a)+_0xdb8af7+_0x13ff21(0x8a)+_0xe86bf6+'\x0a\x0a'+businessStateSection(_0x2179d6)+_0x13ff21(0x6b);}function renderRuntimeContract(_0x367295,_0x4fc67e){const _0x374355=a45_0x44f18b,_0x41f235=_0x4fc67e===_0x374355(0x6c)?_0x374355(0x75):'';return _0x374355(0x88)+_0x367295+'\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='+_0x4fc67e+'\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'+_0x41f235+'\x0a##\x20返回契约\x0a\x0a最终输出必须遵守\x20[output-contract.md](output-contract.md)。本文件只补充运行态安全约束;展示字段、状态枚举、失败暴露和人工处理项以\x20output-contract.md\x20为准。\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败状态识别、checkpoint、重试和人工接管方式】\x0a\x0a##\x20禁止事项\x0a\x0a-\x20禁止链接或读取\x20Skill\x20目录外的\x20AGENTS.md、wiki、docs、脚本或个人路径作为运行时必读依赖。\x0a-\x20禁止把说明性的缓存路径、安装路径、示例路径或排障路径包装成运行时必读依赖。\x0a-\x20禁止在未确认影响范围时执行写入。\x0a-\x20禁止隐藏失败或把未知状态描述为成功。\x0a';}function renderOutputContract(_0x26ce2f,_0x7672e9){const _0x4808fd=a45_0x44f18b,_0x45a3d9=_0x7672e9==='write'?'write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。':_0x7672e9+'\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。';return _0x4808fd(0x84)+_0x26ce2f+_0x4808fd(0x6f)+_0x45a3d9+_0x4808fd(0x69);}function typeWorkflow(_0xf769f0){const _0x5aea16=a45_0x44f18b;if(_0xf769f0===_0x5aea16(0x72))return _0x5aea16(0x7a);if(_0xf769f0===_0x5aea16(0x7d))return'1.\x20受控模板预览:【填写待维护内容、影响范围和预览方式】\x0a2.\x20用户确认:【填写确认信息和不可省略的人工判断点】\x0a3.\x20受控维护:【填写确认后的维护步骤和记录方式】\x0a4.\x20只读核对:【填写维护后的核对入口、差异和回滚/修正方式】';return _0x5aea16(0x8b);}function businessStateSection(_0xcd53ca){const _0x5ebf38=a45_0x44f18b;if(_0xcd53ca!==_0x5ebf38(0x6c))return'';return _0x5ebf38(0x7e);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a46_0x44cd78=a46_0x5e83;function a46_0x33e8(){const _0x1258d0=['Frontmatter\x20name\x20is\x20missing.','push','Skill\x20directory\x20not\x20found:\x20','errors','isSymbolicLink','443744jSyzQl','Missing\x20SKILL.md.','8XUkAhe','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','description','map','slice','1373435TduPCz','false','2734554vYjnmX','hasFrontmatter','validation','startsWith','endsWith','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','5XTvYRs','join','isFile','write','ruleId','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','file','message','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','794856sZXCUY','metadata','Frontmatter\x20description\x20is\x20empty.','read','match','length','type','internal','structure-complete','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','frontmatter-required','Add\x20frontmatter\x20with\x20name\x20and\x20description.','content','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','16740189BwgMBL','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','section','Skill\x20validation\x20failed:\x0a','name','trainer','internal-skill','suggestion','split','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','792610bdEuQp','46393oonkdQ','toUpperCase','trim','isDirectory','true','error','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.'];a46_0x33e8=function(){return _0x1258d0;};return a46_0x33e8();}(function(_0x1c07fb,_0x352845){const _0x4ff73b=a46_0x5e83,_0x5d7c40=_0x1c07fb();while(!![]){try{const _0xad9067=-parseInt(_0x4ff73b(0x205))/0x1+-parseInt(_0x4ff73b(0x204))/0x2+parseInt(_0x4ff73b(0x1ec))/0x3*(-parseInt(_0x4ff73b(0x1d6))/0x4)+-parseInt(_0x4ff73b(0x1e3))/0x5*(parseInt(_0x4ff73b(0x1dd))/0x6)+-parseInt(_0x4ff73b(0x1db))/0x7+parseInt(_0x4ff73b(0x1d4))/0x8+parseInt(_0x4ff73b(0x1fa))/0x9;if(_0xad9067===_0x352845)break;else _0x5d7c40['push'](_0x5d7c40['shift']());}catch(_0x5aa9f5){_0x5d7c40['push'](_0x5d7c40['shift']());}}}(a46_0x33e8,0x4706b));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';const SKILL_FILE='SKILL.md',SUPPORTED_SKILL_TYPES=new Set([a46_0x44cd78(0x1e6),a46_0x44cd78(0x1ef),a46_0x44cd78(0x1ff)]);function a46_0x5e83(_0x4b6d77,_0x230b9b){_0x4b6d77=_0x4b6d77-0x1ca;const _0x33e800=a46_0x33e8();let _0x5e83ac=_0x33e800[_0x4b6d77];return _0x5e83ac;}export function validateSkillDirectory(_0x1f4fb1,_0x170176={}){const _0x57fcff=a46_0x44cd78,_0x2a48d3=resolveSkillDirectoryRoot(_0x1f4fb1),_0xc50473=[],_0x48ea32=loadRequiredSkillFile(_0x2a48d3,_0xc50473),_0x1a5a11=_0x48ea32?parseFrontmatter(_0x48ea32[_0x57fcff(0x1f8)]):{'hasFrontmatter':![]};_0x48ea32&&validateFrontmatter(_0x48ea32['path'],_0x1a5a11,_0xc50473);const _0x2a097f=_0xc50473['filter'](_0x47555b=>_0x47555b['level']===_0x57fcff(0x1cd));return{'ok':_0x2a097f[_0x57fcff(0x1f1)]===0x0,'dir':_0x2a48d3,'type':_0x1a5a11[_0x57fcff(0x1f2)],'errors':_0x2a097f,'warnings':[]};}function resolveSkillDirectoryRoot(_0x1374be){const _0x2a1eb3=a46_0x44cd78,_0xed77cc=resolve(_0x1374be);if(!existsSync(_0xed77cc))throw CliErrors[_0x2a1eb3(0x1df)](_0x2a1eb3(0x1d1)+_0x1374be);const _0x47717b=lstatSync(_0xed77cc);if(_0x47717b[_0x2a1eb3(0x1cb)]())return _0xed77cc;if(_0x47717b[_0x2a1eb3(0x1d3)]()){const _0x1f0610=realpathSync(_0xed77cc);if(lstatSync(_0x1f0610)[_0x2a1eb3(0x1cb)]())return _0x1f0610;}throw CliErrors[_0x2a1eb3(0x1df)](_0x2a1eb3(0x1d1)+_0x1374be);}export function throwIfSkillValidationFailed(_0x4857b4,_0x540913=![]){const _0x2eb630=a46_0x44cd78;if(_0x4857b4['ok'])return;const _0x7e9d4=_0x4857b4[_0x2eb630(0x1d2)][_0x2eb630(0x1d9)](_0x3b9f44=>{const _0x200681=_0x2eb630,_0x56311e=_0x3b9f44[_0x200681(0x1fc)]?'#'+_0x3b9f44[_0x200681(0x1fc)]:'';return _0x3b9f44['level'][_0x200681(0x206)]()+'\x20'+_0x3b9f44[_0x200681(0x1e7)]+'\x20'+_0x3b9f44[_0x200681(0x1e9)]+_0x56311e+':\x20'+_0x3b9f44[_0x200681(0x1ea)]+'\x20Fix:\x20'+_0x3b9f44[_0x200681(0x201)];});throw CliErrors[_0x2eb630(0x1df)](_0x2eb630(0x1fd)+_0x7e9d4[_0x2eb630(0x1e4)]('\x0a'),_0x2eb630(0x1f9));}function loadRequiredSkillFile(_0x5420ee,_0x17e3a4){const _0x4332fe=a46_0x44cd78,_0x72b1d=resolve(_0x5420ee,SKILL_FILE);if(!existsSync(_0x72b1d))return _0x17e3a4[_0x4332fe(0x1d0)](issue(_0x4332fe(0x1cd),_0x4332fe(0x1f4),SKILL_FILE,_0x4332fe(0x1d5),_0x4332fe(0x1eb))),undefined;const _0x5017eb=lstatSync(_0x72b1d);if(_0x5017eb['isSymbolicLink']())return _0x17e3a4[_0x4332fe(0x1d0)](issue(_0x4332fe(0x1cd),_0x4332fe(0x1f4),SKILL_FILE,'SKILL.md\x20must\x20be\x20a\x20regular\x20file.',_0x4332fe(0x1d7))),undefined;if(!_0x5017eb[_0x4332fe(0x1e5)]())return _0x17e3a4['push'](issue('error','structure-complete',SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.',_0x4332fe(0x1f5))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x72b1d,'utf8')};}function validateFrontmatter(_0x2b168a,_0x48b754,_0x5f53d9){const _0x348bc9=a46_0x44cd78;if(!_0x48b754[_0x348bc9(0x1de)]){_0x5f53d9[_0x348bc9(0x1d0)](issue('error',_0x348bc9(0x1f6),_0x2b168a,'SKILL.md\x20must\x20start\x20with\x20frontmatter.',_0x348bc9(0x1f7)));return;}!_0x48b754[_0x348bc9(0x1fe)]?.['trim']()&&_0x5f53d9[_0x348bc9(0x1d0)](issue(_0x348bc9(0x1cd),'frontmatter-required',_0x2b168a,_0x348bc9(0x1cf),_0x348bc9(0x1fb))),!_0x48b754[_0x348bc9(0x1d8)]?.[_0x348bc9(0x1ca)]()&&_0x5f53d9['push'](issue(_0x348bc9(0x1cd),'description-required',_0x2b168a,_0x348bc9(0x1ee),'填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。')),_0x48b754[_0x348bc9(0x1f3)]===!![]&&_0x5f53d9[_0x348bc9(0x1d0)](issue(_0x348bc9(0x1cd),_0x348bc9(0x200),_0x2b168a,_0x348bc9(0x1e2),_0x348bc9(0x1e8))),_0x48b754[_0x348bc9(0x1f2)]?.[_0x348bc9(0x1ca)]()&&!SUPPORTED_SKILL_TYPES['has'](_0x48b754['type'])&&_0x5f53d9[_0x348bc9(0x1d0)](issue('error',_0x348bc9(0x1f6),_0x2b168a,_0x348bc9(0x203),_0x348bc9(0x1ce)));}function parseFrontmatter(_0x36da5d){const _0x3a64d0=a46_0x44cd78,_0x3e7911=_0x36da5d[_0x3a64d0(0x1f0)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x3e7911)return{'hasFrontmatter':![]};const _0x4f292a=_0x3e7911[0x1]??'',_0x4d232f={'hasFrontmatter':!![]};let _0x5af11c=![];for(const _0x22dad1 of _0x4f292a[_0x3a64d0(0x202)](/\r?\n/)){if(/^\s*$/['test'](_0x22dad1))continue;const _0x51137b=_0x22dad1[_0x3a64d0(0x1f0)](/^([A-Za-z0-9_-]+):\s*(.*)$/);if(_0x51137b){const _0x186372=_0x51137b[0x1],_0x39643a=cleanScalar(_0x51137b[0x2]??'');_0x5af11c=_0x186372===_0x3a64d0(0x1ed);if(_0x186372===_0x3a64d0(0x1fe))_0x4d232f[_0x3a64d0(0x1fe)]=_0x39643a;if(_0x186372===_0x3a64d0(0x1d8))_0x4d232f[_0x3a64d0(0x1d8)]=_0x39643a;continue;}const _0x3ada23=_0x22dad1['match'](/^\s+type:\s*(.*)$/);if(_0x5af11c&&_0x3ada23){_0x4d232f['type']=cleanScalar(_0x3ada23[0x1]??'');continue;}const _0xbac7c9=_0x22dad1[_0x3a64d0(0x1f0)](/^\s+internal:\s*(.*)$/);_0x5af11c&&_0xbac7c9&&(_0x4d232f['internal']=cleanBoolean(_0xbac7c9[0x1]??''));}return _0x4d232f;}function cleanScalar(_0x3c168a){const _0x530ec6=a46_0x44cd78,_0x193f27=_0x3c168a[_0x530ec6(0x1ca)]();if(_0x193f27[_0x530ec6(0x1e0)]('\x22')&&_0x193f27['endsWith']('\x22')||_0x193f27[_0x530ec6(0x1e0)]('\x27')&&_0x193f27[_0x530ec6(0x1e1)]('\x27'))return _0x193f27[_0x530ec6(0x1da)](0x1,-0x1);return _0x193f27;}function cleanBoolean(_0x476b32){const _0x5bffdb=a46_0x44cd78,_0x23121d=cleanScalar(_0x476b32)['toLowerCase']();if(_0x23121d===_0x5bffdb(0x1cc))return!![];if(_0x23121d===_0x5bffdb(0x1dc))return![];return undefined;}function issue(_0x4dfa4e,_0x461c1b,_0x137da7,_0x2f34a2,_0x1cfd55,_0x1d8ebf){return{'level':_0x4dfa4e,'ruleId':_0x461c1b,'file':_0x137da7,'section':_0x1d8ebf,'message':_0x2f34a2,'suggestion':_0x1cfd55};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a47_0x61c3a9=a47_0xe325;(function(_0xf7b564,_0x1e9b88){const _0x331b77=a47_0xe325,_0x49e355=_0xf7b564();while(!![]){try{const _0x4e245a=parseInt(_0x331b77(0xa2))/0x1+-parseInt(_0x331b77(0xaa))/0x2*(parseInt(_0x331b77(0xa4))/0x3)+-parseInt(_0x331b77(0xa7))/0x4+-parseInt(_0x331b77(0xa9))/0x5*(parseInt(_0x331b77(0xa6))/0x6)+parseInt(_0x331b77(0x9d))/0x7*(-parseInt(_0x331b77(0xab))/0x8)+-parseInt(_0x331b77(0xaf))/0x9*(parseInt(_0x331b77(0x9e))/0xa)+parseInt(_0x331b77(0xad))/0xb;if(_0x4e245a===_0x1e9b88)break;else _0x49e355['push'](_0x49e355['shift']());}catch(_0xbe76ec){_0x49e355['push'](_0x49e355['shift']());}}}(a47_0x349a,0x488cb));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a47_0xe325(_0x40d0ad,_0x530c71){_0x40d0ad=_0x40d0ad-0x98;const _0x349a25=a47_0x349a();let _0xe32545=_0x349a25[_0x40d0ad];return _0xe32545;}export const sqlDetail={'service':a47_0x61c3a9(0xa0),'command':a47_0x61c3a9(0x9f),'description':a47_0x61c3a9(0xac),'risk':a47_0x61c3a9(0x99),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x369b4e){const _0x151872=a47_0x61c3a9,_0xce45a5=await getSqlQueryInfo(_0x369b4e['appCode'],_0x369b4e['str'](_0x151872(0xa3))),_0x2e5ddd=_0x369b4e[_0x151872(0x9b)](_0x151872(0x9a));if(_0x2e5ddd)return{'ok':!![],'data':_0xce45a5};const _0x22897a=_0xce45a5[_0x151872(0xa8)]?await getDbName(_0x369b4e[_0x151872(0xa5)],_0xce45a5['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0xce45a5[_0x151872(0xa1)],'sqlName':_0xce45a5[_0x151872(0x9c)],'db':_0x22897a?_0x22897a+'\x20('+_0xce45a5[_0x151872(0xa8)]+')':_0xce45a5[_0x151872(0xa8)]??'','description':_0xce45a5[_0x151872(0x98)]??'','sqlContent':_0xce45a5[_0x151872(0xae)]??''}};}};function a47_0x349a(){const _0x4c7547=['20307SoJzpi','appCode','1017366pHRZoT','1589532RtPDzF','dbId','5jZvEiF','56UrkLYY','10928BidWIO','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','18722847BpZlFH','sqlContent','1666683DMIKpz','description','read','verbose','bool','sqlName','777sXTaAS','30JAnoxH','detail','sql','sqlCode','58749sNTzAG','sqlcode'];a47_0x349a=function(){return _0x4c7547;};return a47_0x349a();}
|
package/lib/commands/sql/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a48_0x38a4(){const _0x47dcb9=['88246DwrZYO','5335CAwKeW','isArray','534705aNXvux','execError','exec','Returned\x20','516rndcLB','3770yMSBPH','length','\x20row(s)\x20in\x20','74113ZSqpyp','912444saBOpI','read','str','4AvVbUr','5kUjaPJ','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','1076104ZnDhUM','SQL\x20execution\x20failed','2BArYeO','7tYlUBd','592641GEBNSn','sql','execSuccess','now'];a48_0x38a4=function(){return _0x47dcb9;};return a48_0x38a4();}const a48_0xe6473a=a48_0x4c1c;(function(_0xce778e,_0x11cfcf){const _0x301861=a48_0x4c1c,_0x2d3491=_0xce778e();while(!![]){try{const _0x3c8d3e=parseInt(_0x301861(0x1a2))/0x1*(parseInt(_0x301861(0x19c))/0x2)+parseInt(_0x301861(0x1a5))/0x3*(parseInt(_0x301861(0x197))/0x4)+-parseInt(_0x301861(0x198))/0x5*(parseInt(_0x301861(0x194))/0x6)+parseInt(_0x301861(0x19d))/0x7*(-parseInt(_0x301861(0x19a))/0x8)+parseInt(_0x301861(0x19e))/0x9+-parseInt(_0x301861(0x190))/0xa*(parseInt(_0x301861(0x1a3))/0xb)+parseInt(_0x301861(0x18f))/0xc*(parseInt(_0x301861(0x193))/0xd);if(_0x3c8d3e===_0x11cfcf)break;else _0x2d3491['push'](_0x2d3491['shift']());}catch(_0x152540){_0x2d3491['push'](_0x2d3491['shift']());}}}(a48_0x38a4,0x1a609));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a48_0x4c1c(_0xd9395,_0x39930d){_0xd9395=_0xd9395-0x18f;const _0x38a46e=a48_0x38a4();let _0x4c1ce8=_0x38a46e[_0xd9395];return _0x4c1ce8;}import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a48_0xe6473a(0x19f),'command':a48_0xe6473a(0x1a7),'description':a48_0xe6473a(0x199),'risk':a48_0xe6473a(0x195),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x3a4e87){const _0x3439a6=a48_0xe6473a,_0x3cbfc2=parseJsonParams(_0x3a4e87[_0x3439a6(0x196)]('params')),_0x4bccc6=Date[_0x3439a6(0x1a1)](),_0x2bf7ae=await executeSdkSql(_0x3a4e87[_0x3439a6(0x196)]('sqlcode'),_0x3cbfc2),_0x7afd3=Date['now']()-_0x4bccc6,_0x537583=_0x2bf7ae?.['execResult']??_0x2bf7ae,_0x31e5b9=_0x2bf7ae?.[_0x3439a6(0x1a0)]??!![];if(!_0x31e5b9)return{'ok':![],'data':{'error':_0x2bf7ae?.[_0x3439a6(0x1a6)]||_0x3439a6(0x19b),'elapsed':_0x7afd3},'message':_0x3439a6(0x19b)};const _0x299357=Array[_0x3439a6(0x1a4)](_0x537583)?_0x537583:[];return{'ok':!![],'data':{'rows':_0x299357,'rowCount':_0x299357[_0x3439a6(0x191)],'elapsed':_0x7afd3},'message':_0x3439a6(0x1a8)+_0x299357[_0x3439a6(0x191)]+_0x3439a6(0x192)+_0x7afd3+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x53b26e,_0x504a7f){const _0x2d2d1d=a49_0x5a6a,_0x3c88cc=_0x53b26e();while(!![]){try{const _0x275e58=parseInt(_0x2d2d1d(0x1be))/0x1*(-parseInt(_0x2d2d1d(0x1c3))/0x2)+parseInt(_0x2d2d1d(0x1bf))/0x3*(-parseInt(_0x2d2d1d(0x1b9))/0x4)+parseInt(_0x2d2d1d(0x1c2))/0x5*(parseInt(_0x2d2d1d(0x1b8))/0x6)+parseInt(_0x2d2d1d(0x1b6))/0x7*(-parseInt(_0x2d2d1d(0x1ba))/0x8)+parseInt(_0x2d2d1d(0x1bb))/0x9*(parseInt(_0x2d2d1d(0x1b7))/0xa)+parseInt(_0x2d2d1d(0x1bd))/0xb*(parseInt(_0x2d2d1d(0x1c1))/0xc)+-parseInt(_0x2d2d1d(0x1c0))/0xd*(-parseInt(_0x2d2d1d(0x1bc))/0xe);if(_0x275e58===_0x504a7f)break;else _0x3c88cc['push'](_0x3c88cc['shift']());}catch(_0x4f45b1){_0x3c88cc['push'](_0x3c88cc['shift']());}}}(a49_0x27ee,0x6e383));function a49_0x27ee(){const _0x41450f=['258GWtfba','221uUgfiH','12252HNSfiW','155hZyTVl','4QRgLvS','21maZWjN','710alFciR','59418PkGrLJ','22964AqQknW','983696kFpeFC','63522rjeSWP','81214pjUBSi','7403PALnAc','139895tMUgwT'];a49_0x27ee=function(){return _0x41450f;};return a49_0x27ee();}function a49_0x5a6a(_0x40f72f,_0x5aa7a9){_0x40f72f=_0x40f72f-0x1b6;const _0x27ee1b=a49_0x27ee();let _0x5a6a88=_0x27ee1b[_0x40f72f];return _0x5a6a88;}import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
|
package/lib/commands/update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a50_0x3e6140=a50_0x3cb9;(function(_0x417f58,_0x4b5045){const _0x371148=a50_0x3cb9,_0x5c3809=_0x417f58();while(!![]){try{const _0x5a4422=-parseInt(_0x371148(0x9e))/0x1+parseInt(_0x371148(0xdc))/0x2*(-parseInt(_0x371148(0x9f))/0x3)+parseInt(_0x371148(0xd8))/0x4+-parseInt(_0x371148(0x9d))/0x5+-parseInt(_0x371148(0xd6))/0x6+parseInt(_0x371148(0xb6))/0x7+parseInt(_0x371148(0x93))/0x8*(parseInt(_0x371148(0xcc))/0x9);if(_0x5a4422===_0x4b5045)break;else _0x5c3809['push'](_0x5c3809['shift']());}catch(_0x107668){_0x5c3809['push'](_0x5c3809['shift']());}}}(a50_0x4e55,0x8d3d7));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';function a50_0x4e55(){const _0x399cee=['update','/-/package/','message','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','latest','length','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','run','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','stdout','stderr','map','Update\x20failed:\x20','unknown','nonInteractive','cwd','validation','925883ILeGCb','Checking\x20CLI\x20Built-in\x20Skill...','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','install','skipped','boolean','str','source','status','Updated\x20to\x20v','log','filter','prerelease','=1).','\x20->\x20','Current\x20version:\x20','Install\x20a\x20specific\x20CLI\x20version','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','write','json','flag','63vhetFB','args','Already\x20up\x20to\x20date\x20(v','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','timeout','inherit','Unable\x20to\x20resolve\x20','\x20CLI\x20from\x20npm','object','bool','3251766RklGqh','error','4044568ziFqxN','version','pipe','string','6YwqYWZ','toString','skills','Invalid\x20version:\x20','join','Update\x20','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','2190808tmOazP','patch','/dist-tags','warn','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','trim','Checking\x20npm\x20dist-tags...','major','no-skills','653495PeQzWc','1006488UbUGSW','802701tcGJbk','npm','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','beta','entries'];a50_0x4e55=function(){return _0x399cee;};return a50_0x4e55();}import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':'latest','type':a50_0x3e6140(0xbb),'description':a50_0x3e6140(0xab),'default':![]},{'name':a50_0x3e6140(0xa3),'type':a50_0x3e6140(0xbb),'description':a50_0x3e6140(0x97),'default':![]},{'name':a50_0x3e6140(0xd9),'type':'string','description':a50_0x3e6140(0xc6)},{'name':a50_0x3e6140(0x9c),'type':a50_0x3e6140(0xbb),'description':'Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','default':![]},{'name':a50_0x3e6140(0xde),'type':a50_0x3e6140(0xbb),'description':a50_0x3e6140(0xcf),'default':!![],'hidden':!![]}];function parseSemver(_0x56317b){const _0x55f46b=_0x56317b['trim']()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x55f46b)return null;return{'major':Number(_0x55f46b[0x1]),'minor':Number(_0x55f46b[0x2]),'patch':Number(_0x55f46b[0x3]),'prerelease':_0x55f46b[0x4]};}function compareSemver(_0x23595b,_0x11bacb){const _0x2fb699=a50_0x3e6140,_0x508d79=parseSemver(_0x23595b),_0x2d4a7e=parseSemver(_0x11bacb);if(!_0x508d79||!_0x2d4a7e)throw CliErrors[_0x2fb699(0xb5)]('Version\x20comparison\x20failed.',_0x2fb699(0x98));for(const _0xc95018 of[_0x2fb699(0x9b),'minor',_0x2fb699(0x94)]){if(_0x508d79[_0xc95018]<_0x2d4a7e[_0xc95018])return-0x1;if(_0x508d79[_0xc95018]>_0x2d4a7e[_0xc95018])return 0x1;}if(!_0x508d79[_0x2fb699(0xc2)]&&!_0x2d4a7e['prerelease'])return 0x0;if(!_0x508d79['prerelease'])return 0x1;if(!_0x2d4a7e[_0x2fb699(0xc2)])return-0x1;if(_0x508d79[_0x2fb699(0xc2)]===_0x2d4a7e[_0x2fb699(0xc2)])return 0x0;return _0x508d79['prerelease']<_0x2d4a7e[_0x2fb699(0xc2)]?-0x1:0x1;}function getRequestedVersion(_0x128331){const _0x220187=a50_0x3e6140,_0x1e8fd4=_0x128331[_0x220187(0xbc)](_0x220187(0xd9))[_0x220187(0x99)]();if(_0x1e8fd4)return _0x1e8fd4;return String(_0x128331[_0x220187(0xcd)]?.[0x0]??'')[_0x220187(0x99)]();}function a50_0x3cb9(_0x5e6603,_0x243f21){_0x5e6603=_0x5e6603-0x90;const _0x4e55d4=a50_0x4e55();let _0x3cb9f9=_0x4e55d4[_0x5e6603];return _0x3cb9f9;}function shouldSkipCliBuiltInSkill(_0x3a929f){const _0x4b5e6c=a50_0x3e6140;return _0x3a929f[_0x4b5e6c(0xd5)](_0x4b5e6c(0x9c))||_0x3a929f[_0x4b5e6c(0xcb)](_0x4b5e6c(0xde))===![];}async function validateUpdateFlags(_0x939a82){const _0x3fc135=a50_0x3e6140,_0x4a96ee=getRequestedVersion(_0x939a82),_0x57e4a7=[_0x939a82[_0x3fc135(0xd5)](_0x3fc135(0xa9))?_0x3fc135(0xa9):'',_0x939a82[_0x3fc135(0xd5)](_0x3fc135(0xa3))?_0x3fc135(0xa3):'',_0x4a96ee?_0x3fc135(0xd9):''][_0x3fc135(0xc1)](Boolean);if(_0x57e4a7[_0x3fc135(0xaa)]>0x1)throw CliErrors[_0x3fc135(0xb5)](_0x3fc135(0xa8),'Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.');if(_0x4a96ee&&!parseSemver(_0x4a96ee))throw CliErrors['validation'](_0x3fc135(0xdf)+_0x4a96ee,_0x3fc135(0xb8));}async function fetchNpmDistTags(){const _0x239c92=a50_0x3e6140;try{const _0x575009=NPM_REGISTRY_BASE_URL+_0x239c92(0xa6)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x239c92(0x95),_0x1c82f0=await fetch(_0x575009,{'signal':AbortSignal[_0x239c92(0xd0)](0x2710)});if(!_0x1c82f0['ok'])return null;const _0x5283b8=await _0x1c82f0[_0x239c92(0xca)]();if(!_0x5283b8||typeof _0x5283b8!==_0x239c92(0xd4))return null;return Object['fromEntries'](Object[_0x239c92(0xa4)](_0x5283b8)[_0x239c92(0xc1)](([,_0x34dc04])=>typeof _0x34dc04===_0x239c92(0xdb)&&_0x34dc04['trim']())[_0x239c92(0xb0)](([_0x226b58,_0x572c10])=>[_0x226b58,String(_0x572c10)[_0x239c92(0x99)]()]));}catch{return null;}}async function resolveTargetVersion(_0x16b5ba){const _0x29ae33=a50_0x3e6140,_0x85a75b=getRequestedVersion(_0x16b5ba);if(_0x85a75b)return{'version':_0x85a75b,'source':'version'};const _0x120121=_0x16b5ba[_0x29ae33(0xd5)](_0x29ae33(0xa3))?'beta':_0x29ae33(0xa9),_0x144576=await fetchNpmDistTags(),_0x45b040=_0x144576?.[_0x120121];if(!_0x45b040)return null;return{'version':_0x45b040,'source':_0x120121};}function shouldInstallTarget(_0x4a8997,_0x17e332){const _0x47f005=a50_0x3e6140,_0x5dad50=compareSemver(_0x4a8997,_0x17e332['version']);if(_0x17e332[_0x47f005(0xbd)]===_0x47f005(0xd9))return _0x5dad50!==0x0;return _0x5dad50<0x0;}function installCliPackage(_0x1ab879,_0x4b13da){const _0x357d85=a50_0x3e6140,_0xbe849b=resolveNpmBin(_0x357d85(0xa0)),_0x29f046=[_0x357d85(0xb9),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x1ab879];console['log']('*\x20'+[_0xbe849b,..._0x29f046][_0x357d85(0xe0)]('\x20'));const _0x1f3d54=spawnSync(_0xbe849b,_0x29f046,{'cwd':process[_0x357d85(0xb4)](),'stdio':_0x4b13da?_0x357d85(0xda):_0x357d85(0xd1),'env':process.env,'shell':![]});if(_0x1f3d54['status']===0x0)return{'ok':!![]};let _0x6b7999=_0x1f3d54['error']?.[_0x357d85(0xa7)]||'exit\x20'+(_0x1f3d54[_0x357d85(0xbe)]??_0x357d85(0xb2));if(_0x4b13da){const _0x40ae29=_0x1f3d54['stderr']?_0x1f3d54[_0x357d85(0xaf)][_0x357d85(0xdd)]()[_0x357d85(0x99)]():'',_0x20d7af=_0x1f3d54[_0x357d85(0xae)]?_0x1f3d54['stdout'][_0x357d85(0xdd)]()[_0x357d85(0x99)]():'';if(_0x40ae29)_0x6b7999=_0x40ae29;else{if(_0x20d7af)_0x6b7999=_0x20d7af;}}return{'ok':![],'error':_0x6b7999};}async function installCliBuiltInSkill(_0x5b1ac1){const _0x43efc0=a50_0x3e6140;console['log'](_0x43efc0(0xb7));const _0x36a4ae=runNpxSkillsAddGlobal(process[_0x43efc0(0xb4)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x5b1ac1?_0x43efc0(0xda):_0x43efc0(0xd1)});if(_0x36a4ae[_0x43efc0(0xba)]){console[_0x43efc0(0xc0)](_0x43efc0(0xad)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x43efc0(0xc3));return;}if(_0x36a4ae['ok']){console[_0x43efc0(0xc0)]('\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.');return;}console[_0x43efc0(0x96)](_0x43efc0(0x92)+(_0x36a4ae[_0x43efc0(0xd7)]||_0x43efc0(0xb2))),console[_0x43efc0(0xc0)](_0x43efc0(0xa1));}async function execute(_0x59d6cc){const _0x2ab85c=a50_0x3e6140;await validateUpdateFlags(_0x59d6cc);const _0x686964=getCliVersion();console[_0x2ab85c(0xc0)](_0x2ab85c(0xc5)+_0x686964),console[_0x2ab85c(0xc0)](_0x2ab85c(0x9a));const _0x2ac510=await resolveTargetVersion(_0x59d6cc);if(!_0x2ac510){const _0x4567a9=_0x59d6cc[_0x2ab85c(0xd5)](_0x2ab85c(0xa3))?'beta':'latest',_0xab1aeb=_0x2ab85c(0xd2)+_0x4567a9+'\x20version\x20from\x20npm.';return console['warn'](_0xab1aeb),console[_0x2ab85c(0xc0)](_0x2ab85c(0x91)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4567a9),{'ok':![]};}if(!shouldInstallTarget(_0x686964,_0x2ac510)){const _0xd5d3bc=_0x2ac510[_0x2ab85c(0xbd)]===_0x2ab85c(0xd9)?'Already\x20on\x20requested\x20version\x20(v'+_0x2ac510[_0x2ab85c(0xd9)]+').':_0x2ab85c(0xce)+_0x2ac510[_0x2ab85c(0xd9)]+').';return console['log'](_0xd5d3bc),shouldSkipCliBuiltInSkill(_0x59d6cc)?console['log'](_0x2ab85c(0xc7)):await installCliBuiltInSkill(_0x59d6cc['nonInteractive']),{'ok':!![]};}console[_0x2ab85c(0xc0)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x686964+_0x2ab85c(0xc4)+_0x2ac510['version']);const _0x326d8f=installCliPackage(_0x2ac510[_0x2ab85c(0xd9)],_0x59d6cc['nonInteractive']);if(!_0x326d8f['ok']){const _0x36a829=_0x2ab85c(0xb1)+(_0x326d8f['error']||_0x2ab85c(0xb2));return console[_0x2ab85c(0xd7)](_0x36a829),console[_0x2ab85c(0xc0)](_0x2ab85c(0xa2)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x2ac510[_0x2ab85c(0xd9)]),{'ok':![]};}return console[_0x2ab85c(0xc0)](_0x2ab85c(0xbf)+_0x2ac510[_0x2ab85c(0xd9)]+'.'),console[_0x2ab85c(0xc0)](_0x2ab85c(0xc8)),shouldSkipCliBuiltInSkill(_0x59d6cc)?console[_0x2ab85c(0xc0)](_0x2ab85c(0xc7)):await installCliBuiltInSkill(_0x59d6cc[_0x2ab85c(0xb3)]),{'ok':!![]};}export const updateDefinition={'service':a50_0x3e6140(0xa5),'command':a50_0x3e6140(0xac),'description':a50_0x3e6140(0x90)+CLI_BIN_NAME+a50_0x3e6140(0xd3),'risk':a50_0x3e6140(0xc9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
1
|
+
const a50_0x18dd2e=a50_0x4061;(function(_0x4496f9,_0x2dc859){const _0x156333=a50_0x4061,_0x42851a=_0x4496f9();while(!![]){try{const _0xf72872=-parseInt(_0x156333(0xea))/0x1+parseInt(_0x156333(0xf1))/0x2*(-parseInt(_0x156333(0x120))/0x3)+-parseInt(_0x156333(0x101))/0x4+parseInt(_0x156333(0x117))/0x5*(-parseInt(_0x156333(0x11a))/0x6)+parseInt(_0x156333(0xda))/0x7*(parseInt(_0x156333(0x10a))/0x8)+-parseInt(_0x156333(0x12a))/0x9*(-parseInt(_0x156333(0x124))/0xa)+parseInt(_0x156333(0xdf))/0xb;if(_0xf72872===_0x2dc859)break;else _0x42851a['push'](_0x42851a['shift']());}catch(_0x272554){_0x42851a['push'](_0x42851a['shift']());}}}(a50_0x106d,0xedc63));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';function a50_0x4061(_0x1aedea,_0x4b1cec){_0x1aedea=_0x1aedea-0xd8;const _0x106d0c=a50_0x106d();let _0x406122=_0x106d0c[_0x1aedea];return _0x406122;}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':a50_0x18dd2e(0xe9),'description':a50_0x18dd2e(0xe2),'default':![]},{'name':a50_0x18dd2e(0x109),'type':a50_0x18dd2e(0xe9),'description':a50_0x18dd2e(0x125),'default':![]},{'name':a50_0x18dd2e(0xec),'type':a50_0x18dd2e(0xf8),'description':a50_0x18dd2e(0x10f)},{'name':a50_0x18dd2e(0xf3),'type':a50_0x18dd2e(0xe9),'description':a50_0x18dd2e(0x129),'default':![]},{'name':'skills','type':a50_0x18dd2e(0xe9),'description':a50_0x18dd2e(0xef),'default':!![],'hidden':!![]}];function parseSemver(_0x455801){const _0x36ecd6=a50_0x18dd2e,_0x1f7724=_0x455801[_0x36ecd6(0x116)]()[_0x36ecd6(0x10b)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x1f7724)return null;return{'major':Number(_0x1f7724[0x1]),'minor':Number(_0x1f7724[0x2]),'patch':Number(_0x1f7724[0x3]),'prerelease':_0x1f7724[0x4]};}function compareSemver(_0x4084d5,_0xca973a){const _0x4ed895=a50_0x18dd2e,_0x68ec91=parseSemver(_0x4084d5),_0xa1ff0e=parseSemver(_0xca973a);if(!_0x68ec91||!_0xa1ff0e)throw CliErrors[_0x4ed895(0xf0)](_0x4ed895(0x127),_0x4ed895(0xf9));for(const _0xc7e339 of[_0x4ed895(0xfa),_0x4ed895(0xe3),_0x4ed895(0x113)]){if(_0x68ec91[_0xc7e339]<_0xa1ff0e[_0xc7e339])return-0x1;if(_0x68ec91[_0xc7e339]>_0xa1ff0e[_0xc7e339])return 0x1;}if(!_0x68ec91[_0x4ed895(0xdd)]&&!_0xa1ff0e['prerelease'])return 0x0;if(!_0x68ec91['prerelease'])return 0x1;if(!_0xa1ff0e[_0x4ed895(0xdd)])return-0x1;if(_0x68ec91[_0x4ed895(0xdd)]===_0xa1ff0e['prerelease'])return 0x0;return _0x68ec91[_0x4ed895(0xdd)]<_0xa1ff0e[_0x4ed895(0xdd)]?-0x1:0x1;}function a50_0x106d(){const _0x1d4525=['version','Updating\x20','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','validation','4048gXMUHo','npm','no-skills','Invalid\x20version:\x20','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','write','str','string','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','major','unknown','\x20version\x20from\x20npm.','stderr','Update\x20','length','message','7653564SOhNBf','entries','run','=1).','Updated\x20to\x20v','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','warn','json','beta','184JtANEL','match','stdout','Already\x20up\x20to\x20date\x20(v','log','Install\x20a\x20specific\x20CLI\x20version','Checking\x20CLI\x20Built-in\x20Skill...','Current\x20version:\x20','join','patch','toString','status','trim','1770QqPwny','flag','skipped','27444dzGEHf','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','latest','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','object','error','1482aZEOgQ','\x20CLI\x20from\x20npm','Update\x20failed:\x20','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','8650fKkJrt','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','fromEntries','Version\x20comparison\x20failed.','nonInteractive','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','2385DHnXPo','bool','filter','276983kxQOZg','Checking\x20npm\x20dist-tags...','/dist-tags','prerelease','pipe','60069284LHFxLQ','cwd','inherit','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','minor','map','Unable\x20to\x20resolve\x20','/-/package/','source','timeout','boolean','1093790igXUkE','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install'];a50_0x106d=function(){return _0x1d4525;};return a50_0x106d();}function getRequestedVersion(_0x201ce9){const _0xcd29b2=a50_0x18dd2e,_0x532a98=_0x201ce9[_0xcd29b2(0xf7)](_0xcd29b2(0xec))['trim']();if(_0x532a98)return _0x532a98;return String(_0x201ce9['args']?.[0x0]??'')[_0xcd29b2(0x116)]();}function shouldSkipCliBuiltInSkill(_0x11a0d3){const _0x4c68b8=a50_0x18dd2e;return _0x11a0d3[_0x4c68b8(0xd8)]('no-skills')||_0x11a0d3[_0x4c68b8(0x118)]('skills')===![];}async function validateUpdateFlags(_0x431eb5){const _0x2f21c4=a50_0x18dd2e,_0x35c6c4=getRequestedVersion(_0x431eb5),_0x51ccdf=[_0x431eb5[_0x2f21c4(0xd8)](_0x2f21c4(0x11c))?_0x2f21c4(0x11c):'',_0x431eb5[_0x2f21c4(0xd8)](_0x2f21c4(0x109))?_0x2f21c4(0x109):'',_0x35c6c4?_0x2f21c4(0xec):''][_0x2f21c4(0xd9)](Boolean);if(_0x51ccdf[_0x2f21c4(0xff)]>0x1)throw CliErrors['validation'](_0x2f21c4(0x123),_0x2f21c4(0xf5));if(_0x35c6c4&&!parseSemver(_0x35c6c4))throw CliErrors[_0x2f21c4(0xf0)](_0x2f21c4(0xf4)+_0x35c6c4,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x51f8b3=a50_0x18dd2e;try{const _0x1dfc90=NPM_REGISTRY_BASE_URL+_0x51f8b3(0xe6)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x51f8b3(0xdc),_0x22f90d=await fetch(_0x1dfc90,{'signal':AbortSignal[_0x51f8b3(0xe8)](0x2710)});if(!_0x22f90d['ok'])return null;const _0x1c69a8=await _0x22f90d[_0x51f8b3(0x108)]();if(!_0x1c69a8||typeof _0x1c69a8!==_0x51f8b3(0x11e))return null;return Object[_0x51f8b3(0x126)](Object[_0x51f8b3(0x102)](_0x1c69a8)[_0x51f8b3(0xd9)](([,_0x26f4f9])=>typeof _0x26f4f9===_0x51f8b3(0xf8)&&_0x26f4f9['trim']())[_0x51f8b3(0xe4)](([_0x398002,_0x4d67ba])=>[_0x398002,String(_0x4d67ba)[_0x51f8b3(0x116)]()]));}catch{return null;}}async function resolveTargetVersion(_0x51727f){const _0x50dfbb=a50_0x18dd2e,_0x5ebf51=getRequestedVersion(_0x51727f);if(_0x5ebf51)return{'version':_0x5ebf51,'source':_0x50dfbb(0xec)};const _0x51d544=_0x51727f['bool']('beta')?_0x50dfbb(0x109):_0x50dfbb(0x11c),_0x512f01=await fetchNpmDistTags(),_0x2de6ea=_0x512f01?.[_0x51d544];if(!_0x2de6ea)return null;return{'version':_0x2de6ea,'source':_0x51d544};}function shouldInstallTarget(_0x2b46ba,_0x138702){const _0x4e7b11=a50_0x18dd2e,_0x1d1867=compareSemver(_0x2b46ba,_0x138702[_0x4e7b11(0xec)]);if(_0x138702[_0x4e7b11(0xe7)]===_0x4e7b11(0xec))return _0x1d1867!==0x0;return _0x1d1867<0x0;}function installCliPackage(_0x3c13ea,_0x3f2b93){const _0x4cd286=a50_0x18dd2e,_0x2758c7=resolveNpmBin(_0x4cd286(0xf2)),_0x326652=['install','-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3c13ea];console[_0x4cd286(0x10e)]('*\x20'+[_0x2758c7,..._0x326652][_0x4cd286(0x112)]('\x20'));const _0x41a18f=spawnSync(_0x2758c7,_0x326652,{'cwd':process[_0x4cd286(0xe0)](),'stdio':_0x3f2b93?'pipe':_0x4cd286(0xe1),'env':process.env,'shell':![]});if(_0x41a18f[_0x4cd286(0x115)]===0x0)return{'ok':!![]};let _0x3350c=_0x41a18f[_0x4cd286(0x11f)]?.[_0x4cd286(0x100)]||'exit\x20'+(_0x41a18f[_0x4cd286(0x115)]??_0x4cd286(0xfb));if(_0x3f2b93){const _0x4b3524=_0x41a18f[_0x4cd286(0xfd)]?_0x41a18f[_0x4cd286(0xfd)]['toString']()[_0x4cd286(0x116)]():'',_0x38aff1=_0x41a18f[_0x4cd286(0x10c)]?_0x41a18f['stdout'][_0x4cd286(0x114)]()[_0x4cd286(0x116)]():'';if(_0x4b3524)_0x3350c=_0x4b3524;else{if(_0x38aff1)_0x3350c=_0x38aff1;}}return{'ok':![],'error':_0x3350c};}async function installCliBuiltInSkill(_0x4b5350){const _0x246047=a50_0x18dd2e;console[_0x246047(0x10e)](_0x246047(0x110));const _0x426c87=runNpxSkillsAddGlobal(process['cwd'](),LOVRABET_SKILL_SOURCE,{'stdio':_0x4b5350?_0x246047(0xde):_0x246047(0xe1)});if(_0x426c87[_0x246047(0x119)]){console[_0x246047(0x10e)]('\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20('+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x246047(0x104));return;}if(_0x426c87['ok']){console[_0x246047(0x10e)]('\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.');return;}console[_0x246047(0x107)]('\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20'+(_0x426c87['error']||_0x246047(0xfb))),console[_0x246047(0x10e)](_0x246047(0xeb));}async function execute(_0x2cee21){const _0x28e554=a50_0x18dd2e;await validateUpdateFlags(_0x2cee21);const _0x520858=getCliVersion();console[_0x28e554(0x10e)](_0x28e554(0x111)+_0x520858),console[_0x28e554(0x10e)](_0x28e554(0xdb));const _0x2b2705=await resolveTargetVersion(_0x2cee21);if(!_0x2b2705){const _0x2a7b29=_0x2cee21[_0x28e554(0xd8)](_0x28e554(0x109))?_0x28e554(0x109):'latest',_0x1563c4=_0x28e554(0xe5)+_0x2a7b29+_0x28e554(0xfc);return console[_0x28e554(0x107)](_0x1563c4),console[_0x28e554(0x10e)](_0x28e554(0xee)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x2a7b29),{'ok':![]};}if(!shouldInstallTarget(_0x520858,_0x2b2705)){const _0x3e610b=_0x2b2705[_0x28e554(0xe7)]===_0x28e554(0xec)?'Already\x20on\x20requested\x20version\x20(v'+_0x2b2705[_0x28e554(0xec)]+').':_0x28e554(0x10d)+_0x2b2705['version']+').';return console['log'](_0x3e610b),shouldSkipCliBuiltInSkill(_0x2cee21)?console[_0x28e554(0x10e)](_0x28e554(0x11d)):await installCliBuiltInSkill(_0x2cee21['nonInteractive']),{'ok':!![]};}console[_0x28e554(0x10e)](_0x28e554(0xed)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x520858+'\x20->\x20'+_0x2b2705[_0x28e554(0xec)]);const _0x237f2b=installCliPackage(_0x2b2705['version'],_0x2cee21[_0x28e554(0x128)]);if(!_0x237f2b['ok']){const _0x268eaa=_0x28e554(0x122)+(_0x237f2b[_0x28e554(0x11f)]||_0x28e554(0xfb));return console[_0x28e554(0x11f)](_0x268eaa),console[_0x28e554(0x10e)](_0x28e554(0x11b)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x2b2705[_0x28e554(0xec)]),{'ok':![]};}return console[_0x28e554(0x10e)](_0x28e554(0x105)+_0x2b2705[_0x28e554(0xec)]+'.'),console[_0x28e554(0x10e)](_0x28e554(0x106)),shouldSkipCliBuiltInSkill(_0x2cee21)?console['log'](_0x28e554(0x11d)):await installCliBuiltInSkill(_0x2cee21[_0x28e554(0x128)]),{'ok':!![]};}export const updateDefinition={'service':'update','command':a50_0x18dd2e(0x103),'description':a50_0x18dd2e(0xfe)+CLI_BIN_NAME+a50_0x18dd2e(0x121),'risk':a50_0x18dd2e(0xf6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51_0x17f530=a51_0x5ab4;(function(_0x263452,_0x456a96){const _0x4e8d6d=a51_0x5ab4,_0x5914cb=_0x263452();while(!![]){try{const _0x4be89a=-parseInt(_0x4e8d6d(0x191))/0x1+parseInt(_0x4e8d6d(0x197))/0x2*(-parseInt(_0x4e8d6d(0x193))/0x3)+parseInt(_0x4e8d6d(0x17b))/0x4*(-parseInt(_0x4e8d6d(0x177))/0x5)+-parseInt(_0x4e8d6d(0x1a1))/0x6+parseInt(_0x4e8d6d(0x187))/0x7*(-parseInt(_0x4e8d6d(0x188))/0x8)+-parseInt(_0x4e8d6d(0x182))/0x9*(-parseInt(_0x4e8d6d(0x19b))/0xa)+parseInt(_0x4e8d6d(0x18d))/0xb;if(_0x4be89a===_0x456a96)break;else _0x5914cb['push'](_0x5914cb['shift']());}catch(_0x54fd86){_0x5914cb['push'](_0x5914cb['shift']());}}}(a51_0x95ce,0xc5694));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';function a51_0x95ce(){const _0x4dffc9=['env','App\x20\x22','string','object','filter','\x0aAccessKey:\x20not\x20written','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','\x0aDefault\x20app:\x20','3595gZkelj','items','authRequired','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','6188lRmlUa','workspace','join','init','accessKey','\x20--appcode\x20<code>\x20[--env\x20daily]','defaultApp','13946553syutKT','App\x20code\x20to\x20bind\x20directly','workspace\x20','length','command','21FOBBqH','2311512fGLyVP','envName','\x22\x20not\x20found.','appName','Missing\x20workspace\x20app\x20selector.','57418493xCTGgY','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','\x20workspace\x20','1342087MIecKg','map','6SkfjHV','yes','apps','trim','1379434RCseLr','write','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','boolean','10QmmxhB','str','\x22.\x20Allowed:\x20','from','Workspace\x20configured.\x0aConfig\x20file:\x20','../../core/api-client.js','7561518NDixAX','Usage:\x20','shouldWriteEnv','validation','app','project','\x0aEnv:\x20','appcode'];a51_0x95ce=function(){return _0x4dffc9;};return a51_0x95ce();}import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';function a51_0x5ab4(_0x374155,_0x913869){_0x374155=_0x374155-0x175;const _0x95cec1=a51_0x95ce();let _0x5ab4e9=_0x95cec1[_0x374155];return _0x5ab4e9;}import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a51_0x17f530(0x1a5),'type':'string','description':'App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default'},{'name':a51_0x17f530(0x1a8),'type':a51_0x17f530(0x1ab),'description':a51_0x17f530(0x183)},{'name':a51_0x17f530(0x1a9),'type':a51_0x17f530(0x1ab),'description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]},{'name':a51_0x17f530(0x194),'type':a51_0x17f530(0x19a),'description':a51_0x17f530(0x199),'default':![]}];async function executeWorkspaceUse(_0x423128,_0x7b34e1){const _0x108f2a=a51_0x17f530,_0x4d2c9f=_0x423128[_0x108f2a(0x19c)](_0x108f2a(0x1a5))['trim'](),_0x5e90a6=_0x423128['str'](_0x108f2a(0x1a8))[_0x108f2a(0x196)](),_0x2c46b9=_0x423128[_0x108f2a(0x19c)](_0x108f2a(0x1a9))['trim'](),_0x2dfbc1=resolveWorkspaceEnv(_0x2c46b9||_0x423128[_0x108f2a(0x189)]||DEFAULT_CONFIG_VALUES[_0x108f2a(0x1a9)]);if(!_0x4d2c9f&&!_0x5e90a6)throw CliErrors[_0x108f2a(0x1a4)](_0x108f2a(0x18c),_0x108f2a(0x1a2)+CLI_BIN_NAME+_0x108f2a(0x190)+_0x7b34e1+_0x108f2a(0x175)+CLI_BIN_NAME+_0x108f2a(0x190)+_0x7b34e1+_0x108f2a(0x180));const _0x3307e0=_0x5e90a6||await resolveRemoteAppCode({'command':_0x7b34e1,'appName':_0x4d2c9f,'env':_0x2dfbc1,'accessKey':_0x423128[_0x108f2a(0x17f)]}),_0x2279dd=writeWorkspaceConfig({'command':_0x7b34e1,'appName':_0x4d2c9f,'appcode':_0x3307e0,'env':_0x2dfbc1,'shouldWriteEnv':!!_0x2c46b9,'accessKey':_0x423128['accessKey']});return{'ok':!![],'data':{'configPath':_0x2279dd,'app':_0x4d2c9f||null,'appcode':_0x3307e0,'env':_0x2c46b9?_0x2dfbc1:null,'accessKeyWritten':![],'command':_0x108f2a(0x184)+_0x7b34e1},'message':buildWorkspaceMessage(_0x2279dd,_0x4d2c9f,_0x3307e0,_0x2c46b9?_0x2dfbc1:undefined)};}async function resolveRemoteAppCode(_0x74f89a){const _0x1dc025=a51_0x17f530;if(!_0x74f89a[_0x1dc025(0x17f)])throw CliErrors[_0x1dc025(0x179)](_0x1dc025(0x18e)+CLI_BIN_NAME+'\x20workspace\x20'+_0x74f89a[_0x1dc025(0x186)]+'.');const {setActiveAK:_0x24df57}=await import(_0x1dc025(0x1a0)),{getRemoteAppList:_0x4e779a}=await import('../../commands/app/remote-source.js');_0x24df57(_0x74f89a[_0x1dc025(0x17f)]);const _0xef62c5=await _0x4e779a({'env':_0x74f89a[_0x1dc025(0x1a9)],'accessKey':_0x74f89a[_0x1dc025(0x17f)],'noCache':![]}),_0x1d8b22=findAppByName(_0xef62c5['items'],_0x74f89a['appName']);if(_0x1d8b22&&!isRuntimeAccessibleApp(_0x1d8b22))throw runtimeInaccessibleAppError(_0x1d8b22,'\x22'+_0x74f89a['appName']+'\x22');const _0x32253e=_0x1d8b22?.['appCode']?.[_0x1dc025(0x196)]();if(_0x32253e)return _0x32253e;const _0x224697=_0xef62c5[_0x1dc025(0x178)][_0x1dc025(0x192)](_0x3c3d3f=>_0x3c3d3f[_0x1dc025(0x18b)])[_0x1dc025(0x1ad)](Boolean),_0x3ad77a=_0x224697[_0x1dc025(0x185)]?'Available\x20apps:\x20'+Array[_0x1dc025(0x19e)](new Set(_0x224697))[_0x1dc025(0x17d)](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.';throw CliErrors[_0x1dc025(0x1a4)](_0x1dc025(0x1aa)+_0x74f89a[_0x1dc025(0x18b)]+_0x1dc025(0x18a),_0x3ad77a);}function writeWorkspaceConfig(_0x5f3397){const _0xeb60e1=a51_0x17f530,_0x50581b=resolveWriteConfigPath(_0xeb60e1(0x1a6)),_0x558a6b=readConfigFile(_0x50581b);_0x5f3397[_0xeb60e1(0x1a3)]&&(_0x558a6b[_0xeb60e1(0x1a9)]=_0x5f3397['env']);if(_0x5f3397[_0xeb60e1(0x18b)]){const _0x387207=isRecord(_0x558a6b[_0xeb60e1(0x195)])?{..._0x558a6b[_0xeb60e1(0x195)]}:{},_0x3b3d39=isRecord(_0x387207[_0x5f3397[_0xeb60e1(0x18b)]])?_0x387207[_0x5f3397[_0xeb60e1(0x18b)]]:{};_0x387207[_0x5f3397[_0xeb60e1(0x18b)]]={..._0x3b3d39,'appcode':_0x5f3397[_0xeb60e1(0x1a8)]},_0x558a6b[_0xeb60e1(0x195)]=_0x387207,_0x558a6b[_0xeb60e1(0x181)]=_0x5f3397[_0xeb60e1(0x18b)];if(_0x558a6b[_0xeb60e1(0x1a5)])delete _0x558a6b['app'];return writeAndReturn(_0x50581b,_0x558a6b);}_0x558a6b[_0xeb60e1(0x1a8)]=_0x5f3397[_0xeb60e1(0x1a8)];if(_0x558a6b[_0xeb60e1(0x1a5)])delete _0x558a6b[_0xeb60e1(0x1a5)];return writeAndReturn(_0x50581b,_0x558a6b);}function writeAndReturn(_0x1bfb95,_0x5e2925){return writeConfigFile(_0x1bfb95,_0x5e2925),_0x1bfb95;}function resolveWorkspaceEnv(_0x2850f0){const _0x5e7a83=a51_0x17f530;if(RUNTIME_ENV_VALUES['includes'](_0x2850f0))return _0x2850f0;throw CliErrors[_0x5e7a83(0x1a4)]('Invalid\x20env\x20\x22'+_0x2850f0+_0x5e7a83(0x19d)+RUNTIME_ENV_VALUES[_0x5e7a83(0x17d)](',\x20'));}function buildWorkspaceMessage(_0x59e35d,_0x1d8ab6,_0x1e07ee,_0x238fd3){const _0x55a482=a51_0x17f530,_0x450eee=_0x1d8ab6?_0x1d8ab6+'\x20('+_0x1e07ee+')':_0x1e07ee,_0x87e6b2=_0x238fd3?_0x55a482(0x1a7)+_0x238fd3:'';return _0x55a482(0x19f)+_0x59e35d+_0x55a482(0x176)+_0x450eee+_0x87e6b2+_0x55a482(0x1ae);}function isRecord(_0x28fc02){const _0x28c1e4=a51_0x17f530;return typeof _0x28fc02===_0x28c1e4(0x1ac)&&_0x28fc02!==null&&!Array['isArray'](_0x28fc02);}function makeWorkspaceCommand(_0x42520d){const _0x2aa38e=a51_0x17f530;return{'service':_0x2aa38e(0x17c),'command':_0x42520d,'description':_0x42520d==='init'?_0x2aa38e(0x18f):_0x2aa38e(0x17a),'risk':_0x2aa38e(0x198),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x2e8b31){return executeWorkspaceUse(_0x2e8b31,_0x42520d);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a51_0x17f530(0x17e)),makeWorkspaceCommand('use')];
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a52_0x1f1ecf=a52_0x2ad9;(function(_0x5d9727,_0x53273f){const _0x1febde=a52_0x2ad9,_0x5788e9=_0x5d9727();while(!![]){try{const _0x394b2a=-parseInt(_0x1febde(0xbc))/0x1*(-parseInt(_0x1febde(0xb2))/0x2)+parseInt(_0x1febde(0xc7))/0x3*(parseInt(_0x1febde(0xd2))/0x4)+-parseInt(_0x1febde(0xbe))/0x5*(parseInt(_0x1febde(0xb4))/0x6)+parseInt(_0x1febde(0xcd))/0x7+-parseInt(_0x1febde(0xd1))/0x8*(parseInt(_0x1febde(0xbd))/0x9)+-parseInt(_0x1febde(0xba))/0xa*(parseInt(_0x1febde(0xbb))/0xb)+-parseInt(_0x1febde(0xb1))/0xc;if(_0x394b2a===_0x53273f)break;else _0x5788e9['push'](_0x5788e9['shift']());}catch(_0x5a65ab){_0x5788e9['push'](_0x5788e9['shift']());}}}(a52_0x2373,0xcaf0a));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x1f1ecf(0xcb)],'importable':!![]},'format':{'description':a52_0x1f1ecf(0xb8),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x1f1ecf(0xce)],'importable':!![]},'pageSize':{'description':a52_0x1f1ecf(0xcf),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a52_0x1f1ecf(0xbf),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a52_0x1f1ecf(0xb3),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a52_0x1f1ecf(0xc1),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a52_0x1f1ecf(0xd0),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a52_0x1f1ecf(0xc8),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x1f1ecf(0xc5)],'importable':!![]},'locale':{'description':a52_0x1f1ecf(0xb6),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x1f1ecf(0xc3)],'importable':!![],'legacyCompatOnly':!![]}};function a52_0x2ad9(_0x5247b7,_0x48e88b){_0x5247b7=_0x5247b7-0xb1;const _0x237391=a52_0x2373();let _0x2ad956=_0x237391[_0x5247b7];return _0x2ad956;}export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a52_0x1f1ecf(0xc0)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x2a9e19])=>_0x2a9e19[a52_0x1f1ecf(0xcc)])[a52_0x1f1ecf(0xc4)](([_0x211aec])=>_0x211aec));export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object[a52_0x1f1ecf(0xc0)](CONFIG_FIELD_SCHEMAS)[a52_0x1f1ecf(0xb7)](([,_0xa622af])=>_0xa622af['enumValues'])[a52_0x1f1ecf(0xc4)](([_0x4e7e85,_0x50b8d1])=>[_0x4e7e85,[..._0x50b8d1['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a52_0x1f1ecf(0xc0)](CONFIG_FIELD_SCHEMAS)[a52_0x1f1ecf(0xb7)](([,_0x227c76])=>_0x227c76[a52_0x1f1ecf(0xca)])[a52_0x1f1ecf(0xc4)](([_0x529ae9])=>_0x529ae9);export function getConfigFieldSchema(_0x27240e){return CONFIG_FIELD_SCHEMAS[_0x27240e];}export function getConfigEnumValues(_0x2d9668){return getConfigFieldSchema(_0x2d9668)?.['enumValues'];}function a52_0x2373(){const _0x4bbacd=['Access\x20key\x20(client-ak\x20auth)','8fdYwNP','92zpXFfA','8675688OohJmH','2HUmnls','Override\x20runtime\x20domain','732582NyjGwh','join','Locale','filter','Default\x20output\x20format','legacyCompatOnly','10KdHuVb','3249378MeJGGS','1161887Hrbxqo','5089023mIHcAN','30bbfcSs','Override\x20user\x20domain','entries','Override\x20SkillHub\x20domain','defaultValue','locale','map','riskLevel','has','206889XIXcNC','Risk\x20level','Config\x20key.\x20Top-level:\x20','importable','env','cliSettableTopLevel','2797249Yzlpiv','format','Default\x20page\x20size'];a52_0x2373=function(){return _0x4bbacd;};return a52_0x2373();}export function getConfigDefaultValue(_0x4bfa28){const _0x33a27b=a52_0x1f1ecf;return getConfigFieldSchema(_0x4bfa28)?.[_0x33a27b(0xc2)];}export function isTopLevelConfigKey(_0x4e3042){const _0x15ae80=a52_0x1f1ecf;return TOP_LEVEL_CONFIG_KEYS[_0x15ae80(0xc6)](_0x4e3042);}export function isLegacyCompatConfigKey(_0x91bb7c){const _0x5dc143=a52_0x1f1ecf;return getConfigFieldSchema(_0x91bb7c)?.[_0x5dc143(0xb9)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x292930){const _0x12c9de=a52_0x1f1ecf;return[..._0x292930][_0x12c9de(0xb5)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x491b54=a52_0x1f1ecf;return _0x491b54(0xc9)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0x2f0594){return{'env':_0x2f0594,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a53_0x40fac2=a53_0x4ad6;(function(_0x1ea6dd,_0x1328ef){const _0x4b3306=a53_0x4ad6,_0x221f5e=_0x1ea6dd();while(!![]){try{const _0x5a3354=parseInt(_0x4b3306(0x1ca))/0x1+parseInt(_0x4b3306(0x1cd))/0x2+-parseInt(_0x4b3306(0x1cc))/0x3+-parseInt(_0x4b3306(0x1c6))/0x4*(parseInt(_0x4b3306(0x1c9))/0x5)+-parseInt(_0x4b3306(0x1c7))/0x6*(parseInt(_0x4b3306(0x1c5))/0x7)+-parseInt(_0x4b3306(0x1c4))/0x8*(parseInt(_0x4b3306(0x1c3))/0x9)+parseInt(_0x4b3306(0x1cb))/0xa;if(_0x5a3354===_0x1328ef)break;else _0x221f5e['push'](_0x221f5e['shift']());}catch(_0x5d564d){_0x221f5e['push'](_0x221f5e['shift']());}}}(a53_0x1046,0xa909e));function a53_0x4ad6(_0x51ea1f,_0x58a1c1){_0x51ea1f=_0x51ea1f-0x1c3;const _0x1046d5=a53_0x1046();let _0x4ad6a6=_0x1046d5[_0x51ea1f];return _0x4ad6a6;}function a53_0x1046(){const _0x5d3352=['4120812ITclzM','8rRmsCe','63623IXKTxb','5220oZLrCb','246SyToIj','UNPUBLISH','1465lbvLMH','893585UqpPIO','16673390KvNLRG','2651493VLocue','456342lseqyd'];a53_0x1046=function(){return _0x5d3352;};return a53_0x1046();}export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a53_0x40fac2(0x1c8)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a54_0x5bb9(){const _0xfc6ab2=['29952549mHKpad','22951rjBQqv','1419417KKiwBp','6781938nvpdsM','6417764ClOlON','112raZoES','12148234RMpuyu','ClientAk','13401080WBioxl','5SWNZRM','client-ak'];a54_0x5bb9=function(){return _0xfc6ab2;};return a54_0x5bb9();}const a54_0x49a158=a54_0x5eef;function a54_0x5eef(_0x58e512,_0xc27718){_0x58e512=_0x58e512-0x152;const _0x5bb93d=a54_0x5bb9();let _0x5eef15=_0x5bb93d[_0x58e512];return _0x5eef15;}(function(_0x38829e,_0x50c2f3){const _0x37187f=a54_0x5eef,_0x3619f8=_0x38829e();while(!![]){try{const _0x44423a=parseInt(_0x37187f(0x15b))/0x1*(-parseInt(_0x37187f(0x154))/0x2)+-parseInt(_0x37187f(0x15c))/0x3+parseInt(_0x37187f(0x153))/0x4+parseInt(_0x37187f(0x158))/0x5*(parseInt(_0x37187f(0x152))/0x6)+-parseInt(_0x37187f(0x155))/0x7+-parseInt(_0x37187f(0x157))/0x8+parseInt(_0x37187f(0x15a))/0x9;if(_0x44423a===_0x50c2f3)break;else _0x3619f8['push'](_0x3619f8['shift']());}catch(_0xce402d){_0x3619f8['push'](_0x3619f8['shift']());}}}(a54_0x5bb9,0xda389));export const AUTH_MODE={'ClientAk':a54_0x49a158(0x159)};export function isAuthMode(_0x2201aa){const _0x3bef47=a54_0x49a158;return _0x2201aa===AUTH_MODE[_0x3bef47(0x156)];}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a55_0x45d6(_0x28e32b,_0x19037d){_0x28e32b=_0x28e32b-0x1e2;const _0x41c4e1=a55_0x41c4();let _0x45d65c=_0x41c4e1[_0x28e32b];return _0x45d65c;}const a55_0x59eee0=a55_0x45d6;function a55_0x41c4(){const _0x2b0795=['app','96ytDPMG','dry-run','map','6AgJKAP','params','dryRun','2687548eVmmkX','Name\x20filter','Use\x20global\x20config\x20scope','Skip\x20confirmation\x20for\x20high-risk\x20writes','nonInteractive','global','cliDisplayName','json\x20|\x20pretty\x20|\x20compress','clear','type','SQL\x20query\x20code','Record\x20ID','cliBinName','11tZlrxh','name','826335ALqjoq','Preview\x20operation\x20without\x20executing','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','<code>','19031020RvVPgj','help','non-interactive','fromEntries','<expr>','786456iaGJGQ','Alias\x20for\x20--non-interactive','Force\x20non-interactive\x20mode\x20(CI)','1090324SrUyXN','format','Verbose\x20output','Output\x20format','production\x20|\x20development\x20|\x20daily','Environment','verbose','4981319IXBoyz','env','appcode','yes','boolean','6611050sNXaDx','Clear\x20output','6OKvAZJ','string'];a55_0x41c4=function(){return _0x2b0795;};return a55_0x41c4();}(function(_0x388f20,_0xe7462){const _0xae05c5=a55_0x45d6,_0x462021=_0x388f20();while(!![]){try{const _0x488775=parseInt(_0xae05c5(0x1f4))/0x1+-parseInt(_0xae05c5(0x1f1))/0x2+-parseInt(_0xae05c5(0x208))/0x3*(parseInt(_0xae05c5(0x20b))/0x4)+parseInt(_0xae05c5(0x200))/0x5+parseInt(_0xae05c5(0x202))/0x6*(-parseInt(_0xae05c5(0x1fb))/0x7)+-parseInt(_0xae05c5(0x205))/0x8*(parseInt(_0xae05c5(0x1e8))/0x9)+parseInt(_0xae05c5(0x1ec))/0xa*(parseInt(_0xae05c5(0x1e6))/0xb);if(_0x488775===_0xe7462)break;else _0x462021['push'](_0x462021['shift']());}catch(_0x4a8c56){_0x462021['push'](_0x462021['shift']());}}}(a55_0x41c4,0xbad35));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a55_0x59eee0(0x1e5)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a55_0x59eee0(0x211)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a55_0x59eee0(0x1fd),'meowKey':a55_0x59eee0(0x1fd),'type':a55_0x59eee0(0x203),'description':'Override\x20appcode','hint':a55_0x59eee0(0x1eb)},{'name':'app','meowKey':a55_0x59eee0(0x204),'type':a55_0x59eee0(0x203),'description':'Select\x20app\x20profile\x20by\x20name','hint':'<name>'},{'name':'env','meowKey':a55_0x59eee0(0x1fc),'type':a55_0x59eee0(0x203),'description':a55_0x59eee0(0x1f9),'hint':a55_0x59eee0(0x1f8)},{'name':'format','meowKey':a55_0x59eee0(0x1f5),'type':'string','description':a55_0x59eee0(0x1f7),'hint':a55_0x59eee0(0x212)},{'name':'jq','meowKey':'jq','type':a55_0x59eee0(0x203),'description':a55_0x59eee0(0x1ea),'hint':a55_0x59eee0(0x1f0)},{'name':a55_0x59eee0(0x206),'meowKey':a55_0x59eee0(0x20a),'type':a55_0x59eee0(0x1ff),'description':a55_0x59eee0(0x1e9)},{'name':a55_0x59eee0(0x1fe),'meowKey':a55_0x59eee0(0x1fe),'type':a55_0x59eee0(0x1ff),'description':a55_0x59eee0(0x20e)},{'name':a55_0x59eee0(0x1ee),'meowKey':a55_0x59eee0(0x20f),'type':a55_0x59eee0(0x1ff),'description':a55_0x59eee0(0x1f3)},{'name':a55_0x59eee0(0x210),'meowKey':'global','type':a55_0x59eee0(0x1ff),'description':a55_0x59eee0(0x20d)},{'name':'ci','meowKey':'ci','type':a55_0x59eee0(0x1ff),'description':a55_0x59eee0(0x1f2),'hidden':!![]},{'name':a55_0x59eee0(0x1ed),'meowKey':'help','type':a55_0x59eee0(0x1ff),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':'string','description':a55_0x59eee0(0x1e4),'hidden':!![]},{'name':a55_0x59eee0(0x1e7),'meowKey':a55_0x59eee0(0x1e7),'type':a55_0x59eee0(0x203),'description':a55_0x59eee0(0x20c),'hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a55_0x59eee0(0x203),'description':a55_0x59eee0(0x1e3),'hidden':!![]},{'name':a55_0x59eee0(0x209),'meowKey':a55_0x59eee0(0x209),'type':'string','description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a55_0x59eee0(0x1fa),'meowKey':'verbose','type':'boolean','description':a55_0x59eee0(0x1f6),'hidden':!![]},{'name':a55_0x59eee0(0x213),'meowKey':a55_0x59eee0(0x213),'type':a55_0x59eee0(0x1ff),'description':a55_0x59eee0(0x201),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a55_0x59eee0(0x1fd),a55_0x59eee0(0x204),a55_0x59eee0(0x1fc),a55_0x59eee0(0x1f5),'jq',a55_0x59eee0(0x206),a55_0x59eee0(0x1fe),a55_0x59eee0(0x1ee),'ci']);export function buildMeowFlags(){const _0x50d522=a55_0x59eee0;return Object[_0x50d522(0x1ef)](GLOBAL_FLAGS[_0x50d522(0x207)](_0x427f44=>[_0x427f44['meowKey'],{'type':_0x427f44[_0x50d522(0x1e2)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a56_0x5871(_0x4d3ae1,_0x241cb2){_0x4d3ae1=_0x4d3ae1-0x16f;const _0x5203af=a56_0x5203();let _0x587158=_0x5203af[_0x4d3ae1];return _0x587158;}const a56_0xc99823=a56_0x5871;(function(_0x334314,_0x2f102a){const _0x3e6ec0=a56_0x5871,_0x24e62d=_0x334314();while(!![]){try{const _0x45499c=-parseInt(_0x3e6ec0(0x17c))/0x1+parseInt(_0x3e6ec0(0x17a))/0x2*(parseInt(_0x3e6ec0(0x171))/0x3)+-parseInt(_0x3e6ec0(0x16f))/0x4+-parseInt(_0x3e6ec0(0x178))/0x5*(parseInt(_0x3e6ec0(0x172))/0x6)+parseInt(_0x3e6ec0(0x176))/0x7*(-parseInt(_0x3e6ec0(0x175))/0x8)+parseInt(_0x3e6ec0(0x170))/0x9*(parseInt(_0x3e6ec0(0x174))/0xa)+-parseInt(_0x3e6ec0(0x177))/0xb*(-parseInt(_0x3e6ec0(0x17b))/0xc);if(_0x45499c===_0x2f102a)break;else _0x24e62d['push'](_0x24e62d['shift']());}catch(_0x3b12a6){_0x24e62d['push'](_0x24e62d['shift']());}}}(a56_0x5203,0x7d92e));export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':'production','format':a56_0xc99823(0x179),'locale':'en-US','riskLevel':a56_0xc99823(0x173)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a56_0xc99823(0x179);function a56_0x5203(){const _0x16f16a=['63MmsShK','2457003caemUb','12syNifA','write','240230XkfkIJ','232bEDCcq','222187NfFvBq','3861FhPWVX','447110pUhVVp','compress','2uOVviV','40152iRpgKU','206548agxSAr','1365508KgDLVQ'];a56_0x5203=function(){return _0x16f16a;};return a56_0x5203();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a57_0x4fa737=a57_0x2982;(function(_0x490163,_0xe59ca1){const _0x288e26=a57_0x2982,_0x345bf6=_0x490163();while(!![]){try{const _0x1f7758=parseInt(_0x288e26(0x100))/0x1+-parseInt(_0x288e26(0x10a))/0x2+parseInt(_0x288e26(0x102))/0x3*(-parseInt(_0x288e26(0xff))/0x4)+-parseInt(_0x288e26(0x104))/0x5+parseInt(_0x288e26(0x105))/0x6*(-parseInt(_0x288e26(0x107))/0x7)+-parseInt(_0x288e26(0x109))/0x8+-parseInt(_0x288e26(0x106))/0x9*(-parseInt(_0x288e26(0x101))/0xa);if(_0x1f7758===_0xe59ca1)break;else _0x345bf6['push'](_0x345bf6['shift']());}catch(_0x357e00){_0x345bf6['push'](_0x345bf6['shift']());}}}(a57_0x1626,0x928f6));function a57_0x1626(){const _0x5befc2=['28375660rgqkMS','33zuOPGC','skillSource','4834010JbVtqK','15882LdFBSg','9AlMGDB','2289cqXQou','npmRegistryBaseUrl','5130480KKAjnk','807920jtMIJK','npmPackageName','137228zdHokZ','1017762sBIgmX'];a57_0x1626=function(){return _0x5befc2;};return a57_0x1626();}import{PRODUCT_CONFIG}from'../constant/product.js';function a57_0x2982(_0x5a6d83,_0x5b5846){_0x5a6d83=_0x5a6d83-0xfe;const _0x162626=a57_0x1626();let _0x298281=_0x162626[_0x5a6d83];return _0x298281;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a57_0x4fa737(0xfe)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a57_0x4fa737(0x103)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a57_0x4fa737(0x108)];
|