@lovrabet/lovrabet-cli 2.1.6-beta.2 → 2.1.6-beta.4
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 a37_0x597744=a37_0x4453;(function(_0x2c1560,_0x1a5cf4){const _0x4bc3ad=a37_0x4453,_0x2e8204=_0x2c1560();while(!![]){try{const _0x1b2b0d=parseInt(_0x4bc3ad(0x1de))/0x1+parseInt(_0x4bc3ad(0x1f0))/0x2*(parseInt(_0x4bc3ad(0x1fa))/0x3)+-parseInt(_0x4bc3ad(0x1ea))/0x4*(parseInt(_0x4bc3ad(0x1f7))/0x5)+parseInt(_0x4bc3ad(0x1db))/0x6+-parseInt(_0x4bc3ad(0x1e2))/0x7+parseInt(_0x4bc3ad(0x1e3))/0x8*(-parseInt(_0x4bc3ad(0x1ee))/0x9)+parseInt(_0x4bc3ad(0x1ef))/0xa;if(_0x1b2b0d===_0x1a5cf4)break;else _0x2e8204['push'](_0x2e8204['shift']());}catch(_0x34d1a0){_0x2e8204['push'](_0x2e8204['shift']());}}}(a37_0x57ff,0x9f254));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';function a37_0x4453(_0x26926c,_0x3a8201){_0x26926c=_0x26926c-0x1da;const _0x57ff5c=a37_0x57ff();let _0x4453ca=_0x57ff5c[_0x26926c];return _0x4453ca;}export const listCommand={'service':'skill','command':a37_0x597744(0x1f1),'description':'List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','risk':a37_0x597744(0x1e6),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x567a83){const _0x1996c1=a37_0x597744,_0x53ea78=_0x567a83[_0x1996c1(0x1f9)](_0x1996c1(0x1e0)),_0x5b8c71=normalizeListScope(_0x567a83[_0x1996c1(0x1f9)](_0x1996c1(0x1f8)));if(_0x567a83[_0x1996c1(0x1e8)](_0x1996c1(0x1f3))){const _0x40b9d2=_0x567a83[_0x1996c1(0x1f6)];if(!_0x40b9d2)throw CliErrors[_0x1996c1(0x1f2)]();const {listLocalRuntimeSkills:_0x1fe9ed}=await import(_0x1996c1(0x1e4)),_0x296b9c=_0x1fe9ed({'env':_0x567a83['envName']??_0x1996c1(0x1e1),'accessKey':_0x40b9d2,'appCode':_0x567a83[_0x1996c1(0x1df)],'scopes':listScopeToRuntimeScopes(_0x5b8c71),'code':_0x53ea78[_0x1996c1(0x1eb)]()||undefined}),_0x292d2b=groupLocalRuntimeSkills(_0x296b9c);return{'ok':!![],'data':{'appCode':_0x567a83[_0x1996c1(0x1df)],'source':_0x1996c1(0x1f3),'scope':_0x5b8c71,'total':_0x296b9c[_0x1996c1(0x1e5)],'personal':_0x292d2b[_0x1996c1(0x1f5)][_0x1996c1(0x1e5)],'company':_0x292d2b['company'][_0x1996c1(0x1e5)],'items':_0x296b9c['map'](summarizeLocalRuntimeSkill),'skills':{'personal':_0x292d2b['personal'][_0x1996c1(0x1dc)](summarizeLocalRuntimeSkill),'company':_0x292d2b[_0x1996c1(0x1f4)][_0x1996c1(0x1dc)](summarizeLocalRuntimeSkill)}},'message':'Listed\x20'+_0x296b9c[_0x1996c1(0x1e5)]+_0x1996c1(0x1ed)};}const {listRuntimeSkills:_0x21dec4}=await import(_0x1996c1(0x1ec)),_0x4d2b37=await _0x21dec4({'appCode':_0x567a83[_0x1996c1(0x1df)],'scope':listScopeToRemoteScope(_0x5b8c71),'code':_0x53ea78[_0x1996c1(0x1eb)]()||undefined}),_0x3c1669=shouldListScope(_0x5b8c71,'personal')?_0x4d2b37[_0x1996c1(0x1f5)]??[]:[],_0x2f5fd0=shouldListScope(_0x5b8c71,_0x1996c1(0x1f4))?_0x4d2b37[_0x1996c1(0x1f4)]??[]:[],_0x1db519=[..._0x3c1669,..._0x2f5fd0];return{'ok':!![],'data':{'appCode':_0x567a83[_0x1996c1(0x1df)],'source':_0x1996c1(0x1dd),'scope':_0x5b8c71,'total':_0x1db519[_0x1996c1(0x1e5)],'personal':_0x3c1669[_0x1996c1(0x1e5)],'company':_0x2f5fd0[_0x1996c1(0x1e5)],'items':_0x1db519[_0x1996c1(0x1dc)](summarizeRuntimeSkill),'skills':{'personal':_0x3c1669[_0x1996c1(0x1dc)](summarizeRuntimeSkill),'company':_0x2f5fd0[_0x1996c1(0x1dc)](summarizeRuntimeSkill)}},'message':_0x1996c1(0x1e9)+_0x1db519[_0x1996c1(0x1e5)]+'\x20remote\x20Skill(s).'};}};function a37_0x57ff(){const _0x2838b5=['Listed\x20','121756eHyIKX','trim','../../../core/api-client.js','\x20local\x20Skill(s).','19809dCVbdK','20436050uzHztR','242AJCoaS','list','authRequired','local','company','personal','accessKey','195nVNLYQ','scope','str','4083DVgJdI','filter','3510930psvCke','map','remote','1236701oXPAOi','appCode','code','production','8158465oOYqgQ','3728xmQwVX','../../../skills/runtime-skill-sync.js','length','read','builtin','bool'];a37_0x57ff=function(){return _0x2838b5;};return a37_0x57ff();}function groupLocalRuntimeSkills(_0x561145){const _0x3f619=a37_0x597744;return{'personal':_0x561145[_0x3f619(0x1da)](_0x401633=>_0x401633[_0x3f619(0x1f8)]==='personal'),'company':_0x561145['filter'](_0x554b34=>_0x554b34[_0x3f619(0x1f8)]==='company'),'builtin':_0x561145['filter'](_0x45435d=>_0x45435d['scope']===_0x3f619(0x1e7))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a38_0x3cca38=a38_0x356b;(function(_0x36a093,_0x25f242){const _0x13e70e=a38_0x356b,_0x44b5c8=_0x36a093();while(!![]){try{const _0x4e2481=-parseInt(_0x13e70e(0x86))/0x1+-parseInt(_0x13e70e(0x7d))/0x2+-parseInt(_0x13e70e(0x7a))/0x3+-parseInt(_0x13e70e(0x88))/0x4+-parseInt(_0x13e70e(0x7b))/0x5+parseInt(_0x13e70e(0x80))/0x6*(-parseInt(_0x13e70e(0x81))/0x7)+parseInt(_0x13e70e(0x8c))/0x8;if(_0x4e2481===_0x25f242)break;else _0x44b5c8['push'](_0x44b5c8['shift']());}catch(_0x2ddd05){_0x44b5c8['push'](_0x44b5c8['shift']());}}}(a38_0x2f1d,0x8cb6b));function a38_0x356b(_0x52a52e,_0x1f80e9){_0x52a52e=_0x52a52e-0x77;const _0x2f1dee=a38_0x2f1d();let _0x356bfc=_0x2f1dee[_0x52a52e];return _0x356bfc;}import{CliErrors}from'../../../errors.js';import{DIR_FLAG}from'../flags.js';import{isMultiFileManifest,isPackageBackedManifest}from'../manifest-helpers.js';import{summarizeRuntimeSkill}from'../summary.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';function a38_0x2f1d(){const _0x48b9fc=['personal','1248726UkzaWz','files','scope','563622tdXuPe','77zuLiGK','push','../../../skills/runtime-skill-sync.js','write','skillCode','42630IeVAco','str','2606372PviGOK','input','warnings','appCode','31872208LxjVLL','accessKey','authRequired','skill','dir','../../../core/api-client.js','2985915YPUAUZ','302325ySRKme'];a38_0x2f1d=function(){return _0x48b9fc;};return a38_0x2f1d();}export const pushCommand={'service':a38_0x3cca38(0x77),'command':a38_0x3cca38(0x82),'description':'Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20runtime\x20Skill\x20scope','risk':a38_0x3cca38(0x84),'flags':[DIR_FLAG],async 'execute'(_0x2ba093){const _0x487b93=a38_0x3cca38,{createPersonalRuntimeSkill:_0x13f906,downloadRuntimeSkillPackage:_0x1cf2a9,getRuntimeSkillByCode:_0x3fc7c3,updatePersonalRuntimeSkill:_0x3eb9b5}=await import(_0x487b93(0x79)),{verifyRuntimeSkillPackage:_0x478c9e,verifyRuntimeSkillBundle:_0x4fb217,readPushDirectory:_0x41d098,refreshPushDirectoryMetadataFromRemote:_0x4e5a4a,recordPushedRuntimeSkill:_0x2a89fb,resolvePushDirectoryIdentity:_0x3ad9fd}=await import(_0x487b93(0x83));if(!_0x2ba093[_0x487b93(0x8d)])throw CliErrors[_0x487b93(0x8e)]();const _0xb8e246=_0x2ba093[_0x487b93(0x87)]('dir'),_0x5e610e=validateSkillDirectory(_0xb8e246);throwIfSkillValidationFailed(_0x5e610e);const _0x4b9c58=_0x5e610e[_0x487b93(0x78)],_0x205d0b=_0x3ad9fd(_0x4b9c58,_0x2ba093['appCode']),_0xb69bf2=await _0x3fc7c3(_0x2ba093[_0x487b93(0x8b)],_0x205d0b['skillCode']);_0xb69bf2&&_0x4e5a4a(_0x4b9c58,_0xb69bf2,_0x2ba093[_0x487b93(0x8b)]);const _0x51f8d2=_0x41d098(_0x4b9c58,_0x2ba093[_0x487b93(0x8b)]),_0x31a780=_0xb69bf2?.[_0x487b93(0x7f)]===_0x487b93(0x7c)&&_0xb69bf2[_0x487b93(0x85)]===_0x51f8d2[_0x487b93(0x85)]?_0xb69bf2:undefined,_0x3f4c04=_0x31a780?await _0x3eb9b5(_0x51f8d2['skillCode'],_0x2ba093[_0x487b93(0x8b)],_0x51f8d2[_0x487b93(0x89)]):await _0x13f906(_0x2ba093['appCode'],_0x51f8d2[_0x487b93(0x89)]);let _0x41d2db=_0x3f4c04;if(isMultiFileManifest(_0x51f8d2[_0x487b93(0x89)][_0x487b93(0x7e)])){const _0x4e2c5e=await _0x1cf2a9(_0x487b93(0x7c),_0x3f4c04[_0x487b93(0x85)]||_0x51f8d2[_0x487b93(0x85)],_0x2ba093[_0x487b93(0x8b)]);_0x4fb217(_0x51f8d2[_0x487b93(0x89)][_0x487b93(0x7e)],_0x4e2c5e),_0x41d2db={..._0x3f4c04,'files':_0x51f8d2['input']['files']};}else{if(isPackageBackedManifest(_0x3f4c04[_0x487b93(0x7e)])){const _0x2a09f3=await _0x1cf2a9(_0x487b93(0x7c),_0x3f4c04[_0x487b93(0x85)]||_0x51f8d2[_0x487b93(0x85)],_0x2ba093[_0x487b93(0x8b)]);_0x478c9e(_0x3f4c04['files'],_0x2a09f3);}}return _0x2a89fb(_0x4b9c58,_0x41d2db,_0x2ba093[_0x487b93(0x8b)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x3f4c04),'warnings':_0x5e610e[_0x487b93(0x8a)]},'message':_0x31a780?'Updated\x20personal\x20Skill\x20'+_0x51f8d2[_0x487b93(0x85)]:'Created\x20personal\x20Skill\x20'+_0x51f8d2[_0x487b93(0x85)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a39_0x267f9e=a39_0x4720;(function(_0x1f283a,_0x34e11c){const _0x2bf5e0=a39_0x4720,_0x2a2a89=_0x1f283a();while(!![]){try{const _0x26f39a=parseInt(_0x2bf5e0(0x10c))/0x1*(parseInt(_0x2bf5e0(0x109))/0x2)+-parseInt(_0x2bf5e0(0x11a))/0x3+-parseInt(_0x2bf5e0(0x115))/0x4*(-parseInt(_0x2bf5e0(0x117))/0x5)+-parseInt(_0x2bf5e0(0x10a))/0x6+parseInt(_0x2bf5e0(0x11b))/0x7*(-parseInt(_0x2bf5e0(0x114))/0x8)+parseInt(_0x2bf5e0(0x119))/0x9+-parseInt(_0x2bf5e0(0x113))/0xa*(-parseInt(_0x2bf5e0(0x110))/0xb);if(_0x26f39a===_0x34e11c)break;else _0x2a2a89['push'](_0x2a2a89['shift']());}catch(_0x427745){_0x2a2a89['push'](_0x2a2a89['shift']());}}}(a39_0x1d41,0x80ad9));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';function a39_0x4720(_0x221c5c,_0x5d5ced){_0x221c5c=_0x221c5c-0x107;const _0x1d41b5=a39_0x1d41();let _0x472088=_0x1d41b5[_0x221c5c];return _0x472088;}import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';function a39_0x1d41(){const _0x34bb0f=['54267yyYMtL','65947bMEvMe','skill','bool','warnings','66rKleJv','5652456JBZuhE','dir','20522ZaCIsT','errors','strict','Skill\x20validation\x20passed.','143mAEdAN','type','validate','1080410XjQHnK','872ReLgoz','984884ouhzvr','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','5frAbIL','str','1675251kGlCek'];a39_0x1d41=function(){return _0x34bb0f;};return a39_0x1d41();}export const validateCommand={'service':a39_0x267f9e(0x11c),'command':a39_0x267f9e(0x112),'description':a39_0x267f9e(0x116),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x57a4fd){const _0x5646c8=a39_0x267f9e,_0x37d383=_0x57a4fd[_0x5646c8(0x107)](_0x5646c8(0x10e)),_0x31d54d=validateSkillDirectory(_0x57a4fd[_0x5646c8(0x118)](_0x5646c8(0x10b)),{'strict':_0x37d383});return throwIfSkillValidationFailed(_0x31d54d,_0x37d383),{'ok':!![],'data':{'dir':_0x31d54d['dir'],'type':_0x31d54d[_0x5646c8(0x111)],'errors':_0x31d54d[_0x5646c8(0x10d)],'warnings':_0x31d54d[_0x5646c8(0x108)]},'message':_0x5646c8(0x10f)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a40_0x391d89=a40_0x40e9;function a40_0x5c37(){const _0x47d289=['personal','target','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','32628101RABWUa','Local\x20Skill\x20directory\x20containing\x20SKILL.md','strict','Skill\x20template\x20type','all','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','588624RpktAI','dir','code','write','4629332jKfPeo','force','boolean','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','string','12089800QLFQMp','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','7QOVkkQ','5COHdrk','4744rqJaaV','company','2forgyx','scope','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','1422iBcvAD','1751937bVYWEX','405429iTtoQe','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company'];a40_0x5c37=function(){return _0x47d289;};return a40_0x5c37();}function a40_0x40e9(_0x3f41a4,_0x3b4c34){_0x3f41a4=_0x3f41a4-0xb5;const _0x5c37c3=a40_0x5c37();let _0x40e9ad=_0x5c37c3[_0x3f41a4];return _0x40e9ad;}(function(_0x5e24e0,_0x1924d4){const _0x4a2797=a40_0x40e9,_0x230e88=_0x5e24e0();while(!![]){try{const _0x1f0bd5=parseInt(_0x4a2797(0xc1))/0x1+-parseInt(_0x4a2797(0xbc))/0x2*(parseInt(_0x4a2797(0xc0))/0x3)+-parseInt(_0x4a2797(0xd0))/0x4*(parseInt(_0x4a2797(0xb9))/0x5)+parseInt(_0x4a2797(0xcc))/0x6*(parseInt(_0x4a2797(0xb8))/0x7)+parseInt(_0x4a2797(0xba))/0x8*(parseInt(_0x4a2797(0xbf))/0x9)+-parseInt(_0x4a2797(0xb6))/0xa+parseInt(_0x4a2797(0xc6))/0xb;if(_0x1f0bd5===_0x1924d4)break;else _0x230e88['push'](_0x230e88['shift']());}catch(_0x563a9f){_0x230e88['push'](_0x230e88['shift']());}}}(a40_0x5c37,0x95b06));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a40_0x391d89(0xce),'type':a40_0x391d89(0xb5),'description':a40_0x391d89(0xbe)};export const SCOPE_FLAG={'name':a40_0x391d89(0xbd),'type':a40_0x391d89(0xb5),'description':a40_0x391d89(0xc2),'enum':[a40_0x391d89(0xca),a40_0x391d89(0xc3),a40_0x391d89(0xbb)]};export const LIST_SCOPE_FLAG={'name':a40_0x391d89(0xbd),'type':a40_0x391d89(0xb5),'description':a40_0x391d89(0xb7),'enum':[a40_0x391d89(0xca),a40_0x391d89(0xc3),a40_0x391d89(0xbb)]};export const LOCAL_FLAG={'name':'local','type':'boolean','description':a40_0x391d89(0xd3)};export const DIR_FLAG={'name':a40_0x391d89(0xcd),'type':a40_0x391d89(0xb5),'required':!![],'description':a40_0x391d89(0xc7)};export const CREATE_NAME_FLAG={'name':'name','type':a40_0x391d89(0xb5),'required':!![],'description':a40_0x391d89(0xcb),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a40_0x391d89(0xc5)}};export const TYPE_FLAG={'name':'type','type':'string','description':a40_0x391d89(0xc9),'default':a40_0x391d89(0xcf),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a40_0x391d89(0xc4),'type':'string','description':a40_0x391d89(0xd4),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a40_0x391d89(0xd1),'type':a40_0x391d89(0xd2),'description':'Overwrite\x20generated\x20files\x20when\x20the\x20Skill\x20directory\x20already\x20exists'};export const STRICT_FLAG={'name':a40_0x391d89(0xc8),'type':'boolean','description':'Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4318fd,_0x32735d){const _0x2165e2=a41_0x2951,_0x537100=_0x4318fd();while(!![]){try{const _0x14b100=parseInt(_0x2165e2(0x157))/0x1+-parseInt(_0x2165e2(0x15a))/0x2+-parseInt(_0x2165e2(0x154))/0x3*(-parseInt(_0x2165e2(0x156))/0x4)+-parseInt(_0x2165e2(0x15d))/0x5*(-parseInt(_0x2165e2(0x155))/0x6)+parseInt(_0x2165e2(0x159))/0x7*(parseInt(_0x2165e2(0x15b))/0x8)+parseInt(_0x2165e2(0x153))/0x9+-parseInt(_0x2165e2(0x158))/0xa*(parseInt(_0x2165e2(0x15c))/0xb);if(_0x14b100===_0x32735d)break;else _0x537100['push'](_0x537100['shift']());}catch(_0x2d8808){_0x537100['push'](_0x537100['shift']());}}}(a41_0x538c,0x645ce));function a41_0x2951(_0x44070c,_0x442ba3){_0x44070c=_0x44070c-0x153;const _0x538c7e=a41_0x538c();let _0x29511a=_0x538c7e[_0x44070c];return _0x29511a;}import{createCommand}from'./commands/create.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand];function a41_0x538c(){const _0x267861=['4259403MKaMhT','282hYduzn','96UekdQk','6964GIqWSW','623539PKiDSn','10kMcfwU','4035073XfxOjO','721724IwhLuE','8FrGAZk','18623341gwlCig','196275MIGgsc'];a41_0x538c=function(){return _0x267861;};return a41_0x538c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a42_0x2279(){var _0x39f456=['ossPath','some','3555563lOUjMv','344cqNdVw','files','object','17604mnrlmf','24YLkHJF','string','87700FAtZvq','78680nHtNBp','63392EyerPj','713358YVldVQ','SKILL.md','isArray','3ZzHoNA','path','1210beFcop','112456KmzTsS','10FLpCcP'];a42_0x2279=function(){return _0x39f456;};return a42_0x2279();}function a42_0x4f84(_0x3eab3f,_0x1d0064){_0x3eab3f=_0x3eab3f-0xd8;var _0x227979=a42_0x2279();var _0x4f84a5=_0x227979[_0x3eab3f];return _0x4f84a5;}(function(_0x481f5b,_0x307af8){var _0x30019f=a42_0x4f84,_0x3608d8=_0x481f5b();while(!![]){try{var _0x2a8218=parseInt(_0x30019f(0xe7))/0x1+-parseInt(_0x30019f(0xe9))/0x2*(parseInt(_0x30019f(0xd9))/0x3)+parseInt(_0x30019f(0xdc))/0x4+parseInt(_0x30019f(0xdd))/0x5*(parseInt(_0x30019f(0xea))/0x6)+-parseInt(_0x30019f(0xe8))/0x7*(parseInt(_0x30019f(0xe1))/0x8)+parseInt(_0x30019f(0xe4))/0x9*(-parseInt(_0x30019f(0xdb))/0xa)+parseInt(_0x30019f(0xe0))/0xb*(parseInt(_0x30019f(0xe5))/0xc);if(_0x2a8218===_0x307af8)break;else _0x3608d8['push'](_0x3608d8['shift']());}catch(_0x1964d5){_0x3608d8['push'](_0x3608d8['shift']());}}}(a42_0x2279,0x3ca36));export function isPackageBackedManifest(_0x6c88d5){var _0x2d2640=a42_0x4f84;return!!_0x6c88d5&&typeof _0x6c88d5===_0x2d2640(0xe3)&&!Array['isArray'](_0x6c88d5)&&typeof _0x6c88d5['ossPath']===_0x2d2640(0xe6)&&_0x6c88d5[_0x2d2640(0xde)]['length']>0x0&&Array[_0x2d2640(0xd8)](_0x6c88d5[_0x2d2640(0xe2)]);}export function isMultiFileManifest(_0xa30e83){var _0x29d22b=a42_0x4f84;return!!_0xa30e83&&typeof _0xa30e83===_0x29d22b(0xe3)&&!Array['isArray'](_0xa30e83)&&Array[_0x29d22b(0xd8)](_0xa30e83[_0x29d22b(0xe2)])&&_0xa30e83['files'][_0x29d22b(0xdf)](_0x4792dc=>_0x4792dc[_0x29d22b(0xda)]!==_0x29d22b(0xeb));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1406af,_0x5008b7){const _0x188581=a43_0xcd7d,_0x1d73ee=_0x1406af();while(!![]){try{const _0x59fecb=-parseInt(_0x188581(0x12f))/0x1*(-parseInt(_0x188581(0x136))/0x2)+-parseInt(_0x188581(0x13a))/0x3*(-parseInt(_0x188581(0x131))/0x4)+-parseInt(_0x188581(0x137))/0x5*(parseInt(_0x188581(0x12e))/0x6)+parseInt(_0x188581(0x12c))/0x7*(parseInt(_0x188581(0x138))/0x8)+parseInt(_0x188581(0x134))/0x9+-parseInt(_0x188581(0x12d))/0xa+-parseInt(_0x188581(0x139))/0xb;if(_0x59fecb===_0x5008b7)break;else _0x1d73ee['push'](_0x1d73ee['shift']());}catch(_0x5bb4cb){_0x1d73ee['push'](_0x1d73ee['shift']());}}}(a43_0x527c,0xc6bfa));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x385b48){const _0x3d7d91=a43_0xcd7d,_0x4b249c=_0x385b48[_0x3d7d91(0x133)]();if(!_0x4b249c||_0x4b249c===_0x3d7d91(0x132))return[_0x3d7d91(0x13c),_0x3d7d91(0x130)];if(_0x4b249c===_0x3d7d91(0x13c)||_0x4b249c===_0x3d7d91(0x130))return[_0x4b249c];throw CliErrors[_0x3d7d91(0x13b)](_0x3d7d91(0x135)+_0x385b48);}function a43_0xcd7d(_0x1317ac,_0x5108b9){_0x1317ac=_0x1317ac-0x12c;const _0x527c74=a43_0x527c();let _0xcd7d9=_0x527c74[_0x1317ac];return _0xcd7d9;}export function normalizeListScope(_0x1c32bc){const _0x521de3=a43_0xcd7d,_0x4fa4e5=_0x1c32bc[_0x521de3(0x133)]();if(!_0x4fa4e5)return _0x521de3(0x132);if(_0x4fa4e5==='personal'||_0x4fa4e5===_0x521de3(0x130)||_0x4fa4e5===_0x521de3(0x132))return _0x4fa4e5;throw CliErrors[_0x521de3(0x13b)]('Unsupported\x20Skill\x20list\x20scope:\x20'+_0x1c32bc);}function a43_0x527c(){const _0x2a4082=['3014397qGXmKR','validation','personal','6687289yuhBYE','1557190cOxYnw','6DQMJVZ','48878yCDuJL','company','4GGwEzh','all','trim','13089519FmIKXu','Unsupported\x20Skill\x20sync\x20scope:\x20','58LwjDEu','6202655qKseIW','8SXNdye','28838205zZTLyA'];a43_0x527c=function(){return _0x2a4082;};return a43_0x527c();}export function shouldListScope(_0xaaee28,_0x5ed2d0){if(_0xaaee28==='all')return!![];return _0xaaee28===_0x5ed2d0;}export function listScopeToRuntimeScopes(_0x3a675f){const _0x5e8ae5=a43_0xcd7d;if(_0x3a675f==='all')return['personal',_0x5e8ae5(0x130)];return[_0x3a675f===_0x5e8ae5(0x130)?'company':_0x3a675f];}export function listScopeToRemoteScope(_0x299903){return _0x299903;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a44_0x55ec(_0x25af13,_0x787a63){_0x25af13=_0x25af13-0x8e;var _0x4e40a6=a44_0x4e40();var _0x55ec61=_0x4e40a6[_0x25af13];return _0x55ec61;}function a44_0x4e40(){var _0xb09136=['cacheDir','appCode','155MIPGqg','182958pkKxSF','skillCode','scope','2884516lwwvfb','skillName','7TmiTwv','version','contentHash','treeHash','1301384qOsqhT','4678560IePups','882480tOfcqD','metadataPath','readonly','tags','status','dir','2768188LByLEm','2551194kdeHCB'];a44_0x4e40=function(){return _0xb09136;};return a44_0x4e40();}(function(_0x383467,_0x399339){var _0x57e333=a44_0x55ec,_0x263318=_0x383467();while(!![]){try{var _0x3e4958=parseInt(_0x57e333(0x9c))/0x1+-parseInt(_0x57e333(0xa2))/0x2+parseInt(_0x57e333(0x9b))/0x3+-parseInt(_0x57e333(0x94))/0x4+-parseInt(_0x57e333(0x90))/0x5*(-parseInt(_0x57e333(0x91))/0x6)+-parseInt(_0x57e333(0x96))/0x7*(parseInt(_0x57e333(0x9a))/0x8)+-parseInt(_0x57e333(0xa3))/0x9;if(_0x3e4958===_0x399339)break;else _0x263318['push'](_0x263318['shift']());}catch(_0x4885cd){_0x263318['push'](_0x263318['shift']());}}}(a44_0x4e40,0xcc151));export function summarizeRuntimeSkill(_0x1f6d4a){var _0x35d039=a44_0x55ec;return{'id':_0x1f6d4a['id'],'skillCode':_0x1f6d4a['skillCode'],'skillName':_0x1f6d4a[_0x35d039(0x95)],'scope':_0x1f6d4a[_0x35d039(0x93)],'version':_0x1f6d4a[_0x35d039(0x97)],'readonly':_0x1f6d4a[_0x35d039(0x9e)]};}export function summarizeLocalRuntimeSkill(_0x5713ba){var _0x558bec=a44_0x55ec;return{'id':_0x5713ba['id'],'skillCode':_0x5713ba[_0x558bec(0x92)],'skillName':_0x5713ba[_0x558bec(0x95)],'scope':_0x5713ba[_0x558bec(0x93)],'appCode':_0x5713ba[_0x558bec(0x8f)],'version':_0x5713ba[_0x558bec(0x97)],'status':_0x5713ba[_0x558bec(0xa0)],'readonly':_0x5713ba[_0x558bec(0x9e)],'tags':_0x5713ba[_0x558bec(0x9f)],'dir':_0x5713ba[_0x558bec(0xa1)],'cacheDir':_0x5713ba[_0x558bec(0x8e)],'skillMdPath':_0x5713ba['skillMdPath'],'metadataPath':_0x5713ba[_0x558bec(0x9d)],'linkedPaths':_0x5713ba['linkedPaths'],'contentHash':_0x5713ba[_0x558bec(0x98)],'treeHash':_0x5713ba[_0x558bec(0x99)],'pulledAt':_0x5713ba['pulledAt']};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0x243167=a45_0x13e0;(function(_0x4d6969,_0x54d1bc){const _0x3d599b=a45_0x13e0,_0x60a8e5=_0x4d6969();while(!![]){try{const _0x326576=parseInt(_0x3d599b(0x16b))/0x1*(parseInt(_0x3d599b(0x171))/0x2)+-parseInt(_0x3d599b(0x169))/0x3*(parseInt(_0x3d599b(0x16c))/0x4)+-parseInt(_0x3d599b(0x177))/0x5+parseInt(_0x3d599b(0x16e))/0x6+-parseInt(_0x3d599b(0x165))/0x7+-parseInt(_0x3d599b(0x157))/0x8+parseInt(_0x3d599b(0x17a))/0x9;if(_0x326576===_0x54d1bc)break;else _0x60a8e5['push'](_0x60a8e5['shift']());}catch(_0xeb09b6){_0x60a8e5['push'](_0x60a8e5['shift']());}}}(a45_0x2e75,0xf0ef3));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a45_0x243167(0x173),'read','trainer'];export const DEFAULT_SKILL_TARGET=a45_0x243167(0x17c);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;function a45_0x2e75(){const _0x28f971=['\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0ametadata:\x0a\x20\x20type:\x20','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','toISOString','8079Xzuugo','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','1551992zaJBgn','1672xQrgFt','1.\x20受控模板预览:【填写待维护内容、影响范围和预览方式】\x0a2.\x20用户确认:【填写确认信息和不可省略的人工判断点】\x0a3.\x20受控维护:【填写确认后的维护步骤和记录方式】\x0a4.\x20只读核对:【填写维护后的核对入口、差异和回滚/修正方式】','3475596vqhRTh','Use\x20one\x20of:\x20','\x0a\x20\x20created:\x20\x22','2WgeQZw','skillName','write','\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','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','references/runtime-contract.md','8832725gZdVeq','#\x20Output\x20Contract\x0a\x0a','\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=','32473602BfsnaL','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','.agents/skills','validation','\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','join','\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','---\x0aname:\x20','5858640mrIyif','\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','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','SKILL.md','trainer','Invalid\x20Skill\x20name:\x20','test','type','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','Unsupported\x20Skill\x20type:\x20','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','includes','trim','7896140HESBuw'];a45_0x2e75=function(){return _0x28f971;};return a45_0x2e75();}export const RUNTIME_CONTRACT_FILE=a45_0x243167(0x176);export const OUTPUT_CONTRACT_FILE='references/output-contract.md';export function validateSkillName(_0x586a41){const _0x1de9b0=a45_0x243167,_0x77561a=_0x586a41['trim']();if(!SKILL_NAME_PATTERN[_0x1de9b0(0x15d)](_0x77561a))throw CliErrors[_0x1de9b0(0x17d)](_0x1de9b0(0x15c)+_0x586a41+_0x1de9b0(0x159),_0x1de9b0(0x160));return _0x77561a;}export function normalizeSkillTemplateType(_0x3efc95){const _0x1a18b9=a45_0x243167,_0x310a89=(_0x3efc95||_0x1a18b9(0x173))[_0x1a18b9(0x164)]()||_0x1a18b9(0x173);if(SKILL_TYPES[_0x1a18b9(0x163)](_0x310a89))return _0x310a89;throw CliErrors['validation'](_0x1a18b9(0x161)+_0x3efc95,_0x1a18b9(0x16f)+SKILL_TYPES[_0x1a18b9(0x17f)](',\x20')+'.');}export function renderSkillTemplate(_0x3d9239){const _0xf0f97a=a45_0x243167,_0xbac6db=validateSkillName(_0x3d9239[_0xf0f97a(0x172)]),_0x4b885b=normalizeSkillTemplateType(_0x3d9239[_0xf0f97a(0x15e)]),_0x294126=_0x3d9239['timestamp']??new Date()[_0xf0f97a(0x168)]();return{'skillName':_0xbac6db,'type':_0x4b885b,'files':[{'path':_0xf0f97a(0x15a),'content':renderSkillMd(_0xbac6db,_0x4b885b,_0x294126)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0xbac6db,_0x4b885b)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0xbac6db,_0x4b885b)}]};}function renderSkillMd(_0x53e9af,_0x5148e6,_0x5aa9e4){const _0x57d00a=a45_0x243167,_0x2c9ff6=typeWorkflow(_0x5148e6);return _0x57d00a(0x156)+_0x53e9af+_0x57d00a(0x166)+_0x5148e6+_0x57d00a(0x170)+_0x5aa9e4+_0x57d00a(0x175)+_0x53e9af+'\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'+_0x2c9ff6+'\x0a\x0a'+businessStateSection(_0x5148e6)+_0x57d00a(0x174);}function renderRuntimeContract(_0x458833,_0x549a3c){const _0xa60553=a45_0x243167,_0x10e26e=_0x549a3c==='write'?_0xa60553(0x17b):'';return'#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。'+_0x458833+_0xa60553(0x179)+_0x549a3c+_0xa60553(0x158)+_0x10e26e+_0xa60553(0x17e);}function renderOutputContract(_0x592a46,_0x1871a7){const _0x411394=a45_0x243167,_0x58a35f=_0x1871a7===_0x411394(0x173)?_0x411394(0x15f):_0x1871a7+'\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。';return _0x411394(0x178)+_0x592a46+_0x411394(0x155)+_0x58a35f+_0x411394(0x16a);}function typeWorkflow(_0x568bea){const _0x35eb07=a45_0x243167;if(_0x568bea==='read')return _0x35eb07(0x162);if(_0x568bea===_0x35eb07(0x15b))return _0x35eb07(0x16d);return'1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】';}function a45_0x13e0(_0x33c661,_0x4f0978){_0x33c661=_0x33c661-0x155;const _0x2e7551=a45_0x2e75();let _0x13e02a=_0x2e7551[_0x33c661];return _0x13e02a;}function businessStateSection(_0x875b59){const _0x34dfcf=a45_0x243167;if(_0x875b59!=='write')return'';return _0x34dfcf(0x167);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a46_0x56368f=a46_0x20ff;(function(_0x1054c3,_0x5c0547){const _0x5b2c07=a46_0x20ff,_0x5b6f64=_0x1054c3();while(!![]){try{const _0x2ac1bb=-parseInt(_0x5b2c07(0x1af))/0x1*(-parseInt(_0x5b2c07(0x1aa))/0x2)+-parseInt(_0x5b2c07(0x1bb))/0x3*(-parseInt(_0x5b2c07(0x1cd))/0x4)+parseInt(_0x5b2c07(0x1b4))/0x5+-parseInt(_0x5b2c07(0x1d0))/0x6+parseInt(_0x5b2c07(0x1c3))/0x7+parseInt(_0x5b2c07(0x1ae))/0x8*(parseInt(_0x5b2c07(0x1d2))/0x9)+-parseInt(_0x5b2c07(0x1ee))/0xa;if(_0x2ac1bb===_0x5c0547)break;else _0x5b6f64['push'](_0x5b6f64['shift']());}catch(_0x12e03a){_0x5b6f64['push'](_0x5b6f64['shift']());}}}(a46_0xb267,0x19a8c));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a46_0x56368f(0x1c4),SUPPORTED_SKILL_TYPES=new Set([a46_0x56368f(0x1d6),a46_0x56368f(0x1f3),a46_0x56368f(0x1c6)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x376f66,_0x495718={}){const _0x544f74=a46_0x56368f,_0x5a3cdc=resolveSkillDirectoryRoot(_0x376f66),_0x13f490=[],_0x4407ed=loadRequiredSkillFile(_0x5a3cdc,_0x13f490),_0x35399a=_0x4407ed?parseFrontmatter(_0x4407ed[_0x544f74(0x1e8)]):{'hasFrontmatter':![]};_0x4407ed&&validateFrontmatter(_0x4407ed[_0x544f74(0x1f1)],_0x35399a,_0x13f490);validateRuntimeCliReferences(_0x5a3cdc,_0x13f490);const _0x3ac29d=_0x13f490[_0x544f74(0x1a8)](_0x395c75=>_0x395c75[_0x544f74(0x1c0)]===_0x544f74(0x1e1)),_0xba5e37=_0x13f490[_0x544f74(0x1a8)](_0x46c400=>_0x46c400[_0x544f74(0x1c0)]===_0x544f74(0x1dd));return{'ok':_0x3ac29d['length']===0x0,'dir':_0x5a3cdc,'type':_0x35399a[_0x544f74(0x1ad)],'errors':_0x3ac29d,'warnings':_0xba5e37};}function resolveSkillDirectoryRoot(_0x5bb1fe){const _0x475edb=a46_0x56368f,_0x4e46dd=resolve(_0x5bb1fe);if(!existsSync(_0x4e46dd))throw CliErrors[_0x475edb(0x1c2)]('Skill\x20directory\x20not\x20found:\x20'+_0x5bb1fe);const _0x3aaf3d=lstatSync(_0x4e46dd);if(_0x3aaf3d[_0x475edb(0x1b3)]())return _0x4e46dd;if(_0x3aaf3d[_0x475edb(0x1ca)]()){const _0xa9c9a0=realpathSync(_0x4e46dd);if(lstatSync(_0xa9c9a0)['isDirectory']())return _0xa9c9a0;}throw CliErrors['validation'](_0x475edb(0x1f0)+_0x5bb1fe);}export function throwIfSkillValidationFailed(_0x1f6f67,_0x15d3a9=![]){const _0x5e5072=a46_0x56368f;if(_0x1f6f67['ok'])return;const _0x2a7fa8=_0x1f6f67[_0x5e5072(0x1ba)][_0x5e5072(0x1e4)](_0x2a7815=>{const _0x39790e=_0x5e5072,_0x5c483a=_0x2a7815[_0x39790e(0x1e2)]?'#'+_0x2a7815[_0x39790e(0x1e2)]:'';return _0x2a7815[_0x39790e(0x1c0)][_0x39790e(0x1fd)]()+'\x20'+_0x2a7815[_0x39790e(0x1ef)]+'\x20'+_0x2a7815[_0x39790e(0x1f4)]+_0x5c483a+':\x20'+_0x2a7815['message']+_0x39790e(0x1f5)+_0x2a7815[_0x39790e(0x1e0)];});throw CliErrors[_0x5e5072(0x1c2)]('Skill\x20validation\x20failed:\x0a'+_0x2a7fa8[_0x5e5072(0x1bd)]('\x0a'),_0x5e5072(0x1c9));}function loadRequiredSkillFile(_0x51fe51,_0x553bc6){const _0x267f68=a46_0x56368f,_0x3f6728=resolve(_0x51fe51,SKILL_FILE);if(!existsSync(_0x3f6728))return _0x553bc6[_0x267f68(0x1b0)](issue(_0x267f68(0x1e1),'structure-complete',SKILL_FILE,'Missing\x20SKILL.md.','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;const _0x338336=lstatSync(_0x3f6728);if(_0x338336['isSymbolicLink']())return _0x553bc6[_0x267f68(0x1b0)](issue(_0x267f68(0x1e1),_0x267f68(0x1be),SKILL_FILE,'SKILL.md\x20must\x20be\x20a\x20regular\x20file.',_0x267f68(0x1e7))),undefined;if(!_0x338336[_0x267f68(0x1f7)]())return _0x553bc6[_0x267f68(0x1b0)](issue('error',_0x267f68(0x1be),SKILL_FILE,_0x267f68(0x1cf),_0x267f68(0x1d9))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x3f6728,_0x267f68(0x1bf))};}function validateFrontmatter(_0xdc78d1,_0x2b0870,_0x1d3a8b){const _0x3fbb02=a46_0x56368f;if(!_0x2b0870[_0x3fbb02(0x1e5)]){_0x1d3a8b[_0x3fbb02(0x1b0)](issue(_0x3fbb02(0x1e1),_0x3fbb02(0x1b7),_0xdc78d1,_0x3fbb02(0x1f6),'Add\x20frontmatter\x20with\x20name\x20and\x20description.'));return;}!_0x2b0870[_0x3fbb02(0x1fb)]?.['trim']()&&_0x1d3a8b[_0x3fbb02(0x1b0)](issue(_0x3fbb02(0x1e1),_0x3fbb02(0x1b7),_0xdc78d1,_0x3fbb02(0x1ac),_0x3fbb02(0x1d3))),!_0x2b0870[_0x3fbb02(0x1fa)]?.[_0x3fbb02(0x1cc)]()&&_0x1d3a8b[_0x3fbb02(0x1b0)](issue(_0x3fbb02(0x1e1),_0x3fbb02(0x1db),_0xdc78d1,_0x3fbb02(0x1dc),_0x3fbb02(0x1bc))),_0x2b0870['internal']===!![]&&_0x1d3a8b[_0x3fbb02(0x1b0)](issue(_0x3fbb02(0x1e1),_0x3fbb02(0x1fc),_0xdc78d1,_0x3fbb02(0x1e6),_0x3fbb02(0x1c7))),_0x2b0870['type']?.[_0x3fbb02(0x1cc)]()&&!SUPPORTED_SKILL_TYPES[_0x3fbb02(0x1b8)](_0x2b0870[_0x3fbb02(0x1ad)])&&_0x1d3a8b[_0x3fbb02(0x1b0)](issue(_0x3fbb02(0x1e1),_0x3fbb02(0x1b7),_0xdc78d1,_0x3fbb02(0x1ea),_0x3fbb02(0x1b2)));}function validateRuntimeCliReferences(_0x296247,_0x56f156){const _0x365105=a46_0x56368f;for(const _0x41112b of findRabetbaseCliInvocations(_0x296247)){_0x56f156['push'](issue(_0x365105(0x1dd),'rabetbase-cli-reference',_0x41112b['file'],_0x365105(0x1c5),_0x365105(0x1b9),'L'+_0x41112b[_0x365105(0x1eb)]));}}function findRabetbaseCliInvocations(_0x498e37){const _0x3979bc=a46_0x56368f;return scanSkillDirectory(_0x498e37)['filter'](_0x4f5242=>TEXT_SKILL_FILE_PATTERN['test'](_0x4f5242[_0x3979bc(0x1f1)]))[_0x3979bc(0x1e3)](_0x235906=>{const _0xe211ca=_0x3979bc,_0x2404de=fileText(_0x235906);return _0x2404de['split'](/\r?\n/)['map']((_0x434c12,_0xc895d1)=>({'file':_0x235906[_0xe211ca(0x1f1)],'line':_0xc895d1+0x1,'text':_0x434c12}))[_0xe211ca(0x1a8)](({text:_0x150ea5})=>isRabetbaseCliInvocation(_0x150ea5))[_0xe211ca(0x1e4)](({file:_0x4046fb,line:_0x4c1bbc})=>({'file':_0x4046fb,'line':_0x4c1bbc}));});}const RABETBASE_SUBCOMMANDS=['dataset',a46_0x56368f(0x1a9),'bff',a46_0x56368f(0x1b1),a46_0x56368f(0x1ec),a46_0x56368f(0x1ce),a46_0x56368f(0x1b6),'service','artifact','kb','config',a46_0x56368f(0x1d8),a46_0x56368f(0x1d5),a46_0x56368f(0x1de),a46_0x56368f(0x1df),a46_0x56368f(0x1d4)],RABETBASE_INVOCATION=new RegExp(String[a46_0x56368f(0x1c1)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a46_0x56368f(0x1bd)]('|')})\b`+String[a46_0x56368f(0x1c1)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function a46_0xb267(){const _0x6764eb=['SKILL.md','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','trainer','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','false','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','isSymbolicLink','match','trim','13336uIxejd','app','SKILL.md\x20is\x20not\x20a\x20file.','799110HkoxEb','internal','18wRclWe','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','registry','data','write','test','workspace','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','startsWith','description-required','Frontmatter\x20description\x20is\x20empty.','warning','auth','logs','suggestion','error','section','flatMap','map','hasFrontmatter','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','content','metadata','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','line','project','true','1800890stgbUI','ruleId','Skill\x20directory\x20not\x20found:\x20','path','split','read','file','\x20Fix:\x20','SKILL.md\x20must\x20start\x20with\x20frontmatter.','isFile','search','endsWith','description','name','internal-skill','toUpperCase','filter','sql','8652LuXFiE','slice','Frontmatter\x20name\x20is\x20missing.','type','28696DdLsaD','43MVGcvK','push','page','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.','isDirectory','756840DmgikS','toLowerCase','schema','frontmatter-required','has','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','errors','39CWBVXS','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','join','structure-complete','utf8','level','raw','validation','213304RUiaxS'];a46_0xb267=function(){return _0x6764eb;};return a46_0xb267();}function isRabetbaseCliInvocation(_0xe3364d){const _0x57246c=a46_0x56368f,_0x396809=_0xe3364d[_0x57246c(0x1f8)](/\brabetbase\b/i);if(_0x396809<0x0)return![];const _0x3d3bb0=_0xe3364d[_0x57246c(0x1ab)](_0x396809)[_0x57246c(0x1f2)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION['test'](_0x3d3bb0);}function parseFrontmatter(_0xad2b3d){const _0x24dc4e=a46_0x56368f,_0x56ad66=_0xad2b3d[_0x24dc4e(0x1cb)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x56ad66)return{'hasFrontmatter':![]};const _0x5d35fc=_0x56ad66[0x1]??'',_0x4fc857={'hasFrontmatter':!![]};let _0x211949=![];for(const _0x763a8f of _0x5d35fc[_0x24dc4e(0x1f2)](/\r?\n/)){if(/^\s*$/[_0x24dc4e(0x1d7)](_0x763a8f))continue;const _0x42a93c=_0x763a8f[_0x24dc4e(0x1cb)](/^([A-Za-z0-9_-]+):\s*(.*)$/);if(_0x42a93c){const _0x5f2999=_0x42a93c[0x1],_0x4aa3d4=cleanScalar(_0x42a93c[0x2]??'');_0x211949=_0x5f2999===_0x24dc4e(0x1e9);if(_0x5f2999==='name')_0x4fc857[_0x24dc4e(0x1fb)]=_0x4aa3d4;if(_0x5f2999===_0x24dc4e(0x1fa))_0x4fc857[_0x24dc4e(0x1fa)]=_0x4aa3d4;continue;}const _0x4b7fdf=_0x763a8f[_0x24dc4e(0x1cb)](/^\s+type:\s*(.*)$/);if(_0x211949&&_0x4b7fdf){_0x4fc857[_0x24dc4e(0x1ad)]=cleanScalar(_0x4b7fdf[0x1]??'');continue;}const _0xd45a35=_0x763a8f[_0x24dc4e(0x1cb)](/^\s+internal:\s*(.*)$/);_0x211949&&_0xd45a35&&(_0x4fc857[_0x24dc4e(0x1d1)]=cleanBoolean(_0xd45a35[0x1]??''));}return _0x4fc857;}function a46_0x20ff(_0x46c2ad,_0x18ca26){_0x46c2ad=_0x46c2ad-0x1a8;const _0xb2675b=a46_0xb267();let _0x20fff9=_0xb2675b[_0x46c2ad];return _0x20fff9;}function cleanScalar(_0x2d1f2d){const _0x41b230=a46_0x56368f,_0x1f36f9=_0x2d1f2d[_0x41b230(0x1cc)]();if(_0x1f36f9['startsWith']('\x22')&&_0x1f36f9[_0x41b230(0x1f9)]('\x22')||_0x1f36f9[_0x41b230(0x1da)]('\x27')&&_0x1f36f9[_0x41b230(0x1f9)]('\x27'))return _0x1f36f9[_0x41b230(0x1ab)](0x1,-0x1);return _0x1f36f9;}function cleanBoolean(_0x4cd8fb){const _0x1c3093=a46_0x56368f,_0xd26990=cleanScalar(_0x4cd8fb)[_0x1c3093(0x1b5)]();if(_0xd26990===_0x1c3093(0x1ed))return!![];if(_0xd26990===_0x1c3093(0x1c8))return![];return undefined;}function issue(_0x537cdd,_0x41ebf4,_0x4ef62c,_0x9ce80b,_0x564c31,_0x308ad4){return{'level':_0x537cdd,'ruleId':_0x41ebf4,'file':_0x4ef62c,'section':_0x308ad4,'message':_0x9ce80b,'suggestion':_0x564c31};}
|
|
1
|
+
const a46_0x57ae06=a46_0x1c46;(function(_0x50d68f,_0x3186b1){const _0x308e84=a46_0x1c46,_0x1165eb=_0x50d68f();while(!![]){try{const _0x67236e=parseInt(_0x308e84(0xed))/0x1*(parseInt(_0x308e84(0x124))/0x2)+-parseInt(_0x308e84(0xf1))/0x3+parseInt(_0x308e84(0x117))/0x4+-parseInt(_0x308e84(0x10c))/0x5*(parseInt(_0x308e84(0xef))/0x6)+-parseInt(_0x308e84(0xe3))/0x7+parseInt(_0x308e84(0xd7))/0x8*(-parseInt(_0x308e84(0x11b))/0x9)+parseInt(_0x308e84(0xf8))/0xa;if(_0x67236e===_0x3186b1)break;else _0x1165eb['push'](_0x1165eb['shift']());}catch(_0xca26b2){_0x1165eb['push'](_0x1165eb['shift']());}}}(a46_0xede1,0xe0123));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';function a46_0xede1(){const _0x57285f=['\x20Fix:\x20','push','ruleId','filter','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','registry','logs','toUpperCase','isDirectory','errors','frontmatter-required','flatMap','1143775MFHjUK','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','match','level','file','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','has','join','isFile','suggestion','auth','1273408LXgnJp','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','content','11312181KUFFue','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.','structure-complete','rabetbase-cli-reference','app','internal','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','search','30OBeTOO','section','name','Skill\x20validation\x20failed:\x0a','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','Frontmatter\x20description\x20is\x20empty.','metadata','8oGkMHZ','trim','project','read','schema','Frontmatter\x20name\x20is\x20missing.','description-required','Add\x20frontmatter\x20with\x20name\x20and\x20description.','map','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','Skill\x20directory\x20not\x20found:\x20','warning','10958388NxVZuk','type','validation','config','data','SKILL.md\x20is\x20not\x20a\x20file.','write','page','SKILL.md\x20must\x20start\x20with\x20frontmatter.','isSymbolicLink','107515aNiZFy','toLowerCase','42vLNBds','split','2324034BRsRMw','startsWith','path','length','Missing\x20SKILL.md.','false','slice','41850740zeKLmp','trainer','error','internal-skill','test','raw','description','true'];a46_0xede1=function(){return _0x57285f;};return a46_0xede1();}import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE='SKILL.md',SUPPORTED_SKILL_TYPES=new Set([a46_0x57ae06(0xe9),a46_0x57ae06(0xda),a46_0x57ae06(0xf9)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x1435cb,_0xef347e={}){const _0x534d6e=a46_0x57ae06,_0x294221=resolveSkillDirectoryRoot(_0x1435cb),_0x137a8c=[],_0xede55b=loadRequiredSkillFile(_0x294221,_0x137a8c),_0xb440c7=_0xede55b?parseFrontmatter(_0xede55b[_0x534d6e(0x11a)]):{'hasFrontmatter':![]};_0xede55b&&validateFrontmatter(_0xede55b['path'],_0xb440c7,_0x137a8c);validateRuntimeCliReferences(_0x294221,_0x137a8c);const _0x1e8aa9=_0x137a8c[_0x534d6e(0x103)](_0x4182a2=>_0x4182a2[_0x534d6e(0x10f)]===_0x534d6e(0xfa)),_0x596c84=_0x137a8c[_0x534d6e(0x103)](_0x54cdd2=>_0x54cdd2['level']===_0x534d6e(0xe2));return{'ok':_0x1e8aa9[_0x534d6e(0xf4)]===0x0,'dir':_0x294221,'type':_0xb440c7['type'],'errors':_0x1e8aa9,'warnings':_0x596c84};}function resolveSkillDirectoryRoot(_0x356495){const _0x334873=a46_0x57ae06,_0xac14fe=resolve(_0x356495);if(!existsSync(_0xac14fe))throw CliErrors['validation'](_0x334873(0xe1)+_0x356495);const _0x248182=lstatSync(_0xac14fe);if(_0x248182[_0x334873(0x108)]())return _0xac14fe;if(_0x248182[_0x334873(0xec)]()){const _0x2e2ade=realpathSync(_0xac14fe);if(lstatSync(_0x2e2ade)[_0x334873(0x108)]())return _0x2e2ade;}throw CliErrors['validation'](_0x334873(0xe1)+_0x356495);}export function throwIfSkillValidationFailed(_0x113b1e,_0x1ad44b=![]){const _0x4599d5=a46_0x57ae06;if(_0x113b1e['ok'])return;const _0x4d34bd=_0x113b1e[_0x4599d5(0x109)][_0x4599d5(0xdf)](_0x228735=>{const _0x43594e=_0x4599d5,_0x5e09ba=_0x228735[_0x43594e(0x125)]?'#'+_0x228735['section']:'';return _0x228735[_0x43594e(0x10f)][_0x43594e(0x107)]()+'\x20'+_0x228735[_0x43594e(0x102)]+'\x20'+_0x228735['file']+_0x5e09ba+':\x20'+_0x228735['message']+_0x43594e(0x100)+_0x228735[_0x43594e(0x115)];});throw CliErrors[_0x4599d5(0xe5)](_0x4599d5(0x127)+_0x4d34bd[_0x4599d5(0x113)]('\x0a'),'Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.');}function loadRequiredSkillFile(_0x18c9f3,_0x5ef20d){const _0x48fe97=a46_0x57ae06,_0x105ca6=resolve(_0x18c9f3,SKILL_FILE);if(!existsSync(_0x105ca6))return _0x5ef20d['push'](issue(_0x48fe97(0xfa),_0x48fe97(0x11d),SKILL_FILE,_0x48fe97(0xf5),_0x48fe97(0xe0))),undefined;const _0x2c754f=lstatSync(_0x105ca6);if(_0x2c754f[_0x48fe97(0xec)]())return _0x5ef20d[_0x48fe97(0x101)](issue('error','structure-complete',SKILL_FILE,_0x48fe97(0x121),'Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.')),undefined;if(!_0x2c754f[_0x48fe97(0x114)]())return _0x5ef20d[_0x48fe97(0x101)](issue(_0x48fe97(0xfa),_0x48fe97(0x11d),SKILL_FILE,_0x48fe97(0xe8),'Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x105ca6,'utf8')};}function validateFrontmatter(_0x32e198,_0x1a3e6e,_0x40c382){const _0x539da9=a46_0x57ae06;if(!_0x1a3e6e['hasFrontmatter']){_0x40c382[_0x539da9(0x101)](issue(_0x539da9(0xfa),'frontmatter-required',_0x32e198,_0x539da9(0xeb),_0x539da9(0xde)));return;}!_0x1a3e6e[_0x539da9(0x126)]?.['trim']()&&_0x40c382[_0x539da9(0x101)](issue(_0x539da9(0xfa),_0x539da9(0x10a),_0x32e198,_0x539da9(0xdc),_0x539da9(0x111))),!_0x1a3e6e[_0x539da9(0xfe)]?.['trim']()&&_0x40c382[_0x539da9(0x101)](issue(_0x539da9(0xfa),_0x539da9(0xdd),_0x32e198,_0x539da9(0x129),_0x539da9(0x10d))),_0x1a3e6e[_0x539da9(0x120)]===!![]&&_0x40c382[_0x539da9(0x101)](issue(_0x539da9(0xfa),_0x539da9(0xfb),_0x32e198,_0x539da9(0x122),_0x539da9(0x118))),_0x1a3e6e[_0x539da9(0xe4)]?.[_0x539da9(0xd8)]()&&!SUPPORTED_SKILL_TYPES[_0x539da9(0x112)](_0x1a3e6e[_0x539da9(0xe4)])&&_0x40c382[_0x539da9(0x101)](issue('error',_0x539da9(0x10a),_0x32e198,_0x539da9(0x104),_0x539da9(0x11c)));}function validateRuntimeCliReferences(_0x25704f,_0x215f97){const _0x3813d8=a46_0x57ae06;for(const _0x2d3e7a of findRabetbaseCliInvocations(_0x25704f)){_0x215f97[_0x3813d8(0x101)](issue(_0x3813d8(0xe2),_0x3813d8(0x11e),_0x2d3e7a[_0x3813d8(0x110)],_0x3813d8(0x119),_0x3813d8(0x128),'L'+_0x2d3e7a['line']));}}function findRabetbaseCliInvocations(_0x5efb09){const _0x4f831a=a46_0x57ae06;return scanSkillDirectory(_0x5efb09)[_0x4f831a(0x103)](_0x5d6587=>TEXT_SKILL_FILE_PATTERN[_0x4f831a(0xfc)](_0x5d6587['path']))[_0x4f831a(0x10b)](_0x20a5ac=>{const _0x1040d1=_0x4f831a,_0x1819f7=fileText(_0x20a5ac);return _0x1819f7[_0x1040d1(0xf0)](/\r?\n/)[_0x1040d1(0xdf)]((_0x3c30c2,_0x40d14a)=>({'file':_0x20a5ac[_0x1040d1(0xf3)],'line':_0x40d14a+0x1,'text':_0x3c30c2}))[_0x1040d1(0x103)](({text:_0x13bbd0})=>isRabetbaseCliInvocation(_0x13bbd0))[_0x1040d1(0xdf)](({file:_0x56657a,line:_0xe202e5})=>({'file':_0x56657a,'line':_0xe202e5}));});}const RABETBASE_SUBCOMMANDS=['dataset','sql','bff',a46_0x57ae06(0xea),a46_0x57ae06(0xd9),a46_0x57ae06(0x11f),a46_0x57ae06(0xdb),'service','artifact','kb',a46_0x57ae06(0xe6),'workspace',a46_0x57ae06(0xe7),a46_0x57ae06(0x116),a46_0x57ae06(0x106),a46_0x57ae06(0x105)],RABETBASE_INVOCATION=new RegExp(String[a46_0x57ae06(0xfd)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a46_0x57ae06(0x113)]('|')})\b`+String[a46_0x57ae06(0xfd)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x51bba4){const _0x4505d3=a46_0x57ae06,_0x541031=_0x51bba4[_0x4505d3(0x123)](/\brabetbase\b/i);if(_0x541031<0x0)return![];const _0x2091bd=_0x51bba4[_0x4505d3(0xf7)](_0x541031)[_0x4505d3(0xf0)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x4505d3(0xfc)](_0x2091bd);}function parseFrontmatter(_0x13e4ea){const _0x1e1ca5=a46_0x57ae06,_0x3efb42=_0x13e4ea['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x3efb42)return{'hasFrontmatter':![]};const _0x46f18a=_0x3efb42[0x1]??'',_0x1a1e64={'hasFrontmatter':!![]};let _0x1a4936=![];for(const _0x205e88 of _0x46f18a[_0x1e1ca5(0xf0)](/\r?\n/)){if(/^\s*$/[_0x1e1ca5(0xfc)](_0x205e88))continue;const _0x3b5851=_0x205e88[_0x1e1ca5(0x10e)](/^([A-Za-z0-9_-]+):\s*(.*)$/);if(_0x3b5851){const _0x7be45c=_0x3b5851[0x1],_0x18fc94=cleanScalar(_0x3b5851[0x2]??'');_0x1a4936=_0x7be45c===_0x1e1ca5(0xd6);if(_0x7be45c===_0x1e1ca5(0x126))_0x1a1e64[_0x1e1ca5(0x126)]=_0x18fc94;if(_0x7be45c===_0x1e1ca5(0xfe))_0x1a1e64[_0x1e1ca5(0xfe)]=_0x18fc94;continue;}const _0x1b8385=_0x205e88[_0x1e1ca5(0x10e)](/^\s+type:\s*(.*)$/);if(_0x1a4936&&_0x1b8385){_0x1a1e64['type']=cleanScalar(_0x1b8385[0x1]??'');continue;}const _0x54b265=_0x205e88['match'](/^\s+internal:\s*(.*)$/);_0x1a4936&&_0x54b265&&(_0x1a1e64[_0x1e1ca5(0x120)]=cleanBoolean(_0x54b265[0x1]??''));}return _0x1a1e64;}function a46_0x1c46(_0x2f4627,_0x1c937a){_0x2f4627=_0x2f4627-0xd6;const _0xede1a9=a46_0xede1();let _0x1c468b=_0xede1a9[_0x2f4627];return _0x1c468b;}function cleanScalar(_0x4f64b4){const _0x2f5456=a46_0x57ae06,_0x6caeee=_0x4f64b4[_0x2f5456(0xd8)]();if(_0x6caeee['startsWith']('\x22')&&_0x6caeee['endsWith']('\x22')||_0x6caeee[_0x2f5456(0xf2)]('\x27')&&_0x6caeee['endsWith']('\x27'))return _0x6caeee['slice'](0x1,-0x1);return _0x6caeee;}function cleanBoolean(_0x550107){const _0x1460dd=a46_0x57ae06,_0xcd920d=cleanScalar(_0x550107)[_0x1460dd(0xee)]();if(_0xcd920d===_0x1460dd(0xff))return!![];if(_0xcd920d===_0x1460dd(0xf6))return![];return undefined;}function issue(_0x4556c3,_0x493150,_0x16a759,_0xab7094,_0x4dfbcc,_0x4924b0){return{'level':_0x4556c3,'ruleId':_0x493150,'file':_0x16a759,'section':_0x4924b0,'message':_0xab7094,'suggestion':_0x4dfbcc};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a47_0x515556=a47_0x3ca9;(function(_0x2f397d,_0x495de1){const _0x55db01=a47_0x3ca9,_0x4fb297=_0x2f397d();while(!![]){try{const _0xfc7782=parseInt(_0x55db01(0x186))/0x1*(parseInt(_0x55db01(0x17c))/0x2)+-parseInt(_0x55db01(0x178))/0x3+parseInt(_0x55db01(0x187))/0x4*(-parseInt(_0x55db01(0x177))/0x5)+-parseInt(_0x55db01(0x175))/0x6*(parseInt(_0x55db01(0x182))/0x7)+-parseInt(_0x55db01(0x185))/0x8*(-parseInt(_0x55db01(0x180))/0x9)+-parseInt(_0x55db01(0x17b))/0xa*(-parseInt(_0x55db01(0x173))/0xb)+parseInt(_0x55db01(0x176))/0xc*(parseInt(_0x55db01(0x179))/0xd);if(_0xfc7782===_0x495de1)break;else _0x4fb297['push'](_0x4fb297['shift']());}catch(_0x516fcf){_0x4fb297['push'](_0x4fb297['shift']());}}}(a47_0x1cf1,0x97d9b));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';function a47_0x3ca9(_0x1a48b1,_0x3474c1){_0x1a48b1=_0x1a48b1-0x173;const _0x1cf101=a47_0x1cf1();let _0x3ca995=_0x1cf101[_0x1a48b1];return _0x3ca995;}import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a47_0x1cf1(){const _0x554bbc=['227240IvhDhi','1kZDCeS','4QeInTy','dbId','read','bool','sqlcode','87373lbVlcg','detail','2244DXtRAR','207876XPBpAd','1251505TJHQAp','2293119CQHwqR','234cxHjmt','str','30gpaVeD','1855350DNSvnN','sqlName','sql','verbose','315UToJxm','appCode','11620gpJYCd','sqlContent','sqlCode'];a47_0x1cf1=function(){return _0x554bbc;};return a47_0x1cf1();}export const sqlDetail={'service':a47_0x515556(0x17e),'command':a47_0x515556(0x174),'description':'Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','risk':a47_0x515556(0x189),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x205bcd){const _0x3a3523=a47_0x515556,_0x274436=await getSqlQueryInfo(_0x205bcd['appCode'],_0x205bcd[_0x3a3523(0x17a)](_0x3a3523(0x18b))),_0x40a4b5=_0x205bcd[_0x3a3523(0x18a)](_0x3a3523(0x17f));if(_0x40a4b5)return{'ok':!![],'data':_0x274436};const _0x5d774e=_0x274436[_0x3a3523(0x188)]?await getDbName(_0x205bcd[_0x3a3523(0x181)],_0x274436['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x274436[_0x3a3523(0x184)],'sqlName':_0x274436[_0x3a3523(0x17d)],'db':_0x5d774e?_0x5d774e+'\x20('+_0x274436[_0x3a3523(0x188)]+')':_0x274436[_0x3a3523(0x188)]??'','description':_0x274436['description']??'','sqlContent':_0x274436[_0x3a3523(0x183)]??''}};}};
|
package/lib/commands/sql/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a48_0x2f8677=a48_0x2f68;(function(_0x4e5be0,_0x31e9e5){const _0x31e28a=a48_0x2f68,_0x398b9b=_0x4e5be0();while(!![]){try{const _0x234ce1=parseInt(_0x31e28a(0xf4))/0x1*(-parseInt(_0x31e28a(0xec))/0x2)+-parseInt(_0x31e28a(0xee))/0x3+parseInt(_0x31e28a(0xf8))/0x4+-parseInt(_0x31e28a(0xf3))/0x5*(-parseInt(_0x31e28a(0x100))/0x6)+parseInt(_0x31e28a(0xf5))/0x7+parseInt(_0x31e28a(0x103))/0x8*(-parseInt(_0x31e28a(0xfc))/0x9)+parseInt(_0x31e28a(0xf7))/0xa;if(_0x234ce1===_0x31e9e5)break;else _0x398b9b['push'](_0x398b9b['shift']());}catch(_0x3c2c5e){_0x398b9b['push'](_0x398b9b['shift']());}}}(a48_0x5899,0xd80b8));function a48_0x2f68(_0x4b49f0,_0x2355f1){_0x4b49f0=_0x4b49f0-0xec;const _0x5899db=a48_0x5899();let _0x2f6874=_0x5899db[_0x4b49f0];return _0x2f6874;}import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a48_0x5899(){const _0x3f0897=['str','sql','exec','4825266RIxUCD','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','isArray','5301072wVxAbG','184558PmKWxi','length','805812FCTnnK','now','execSuccess','SQL\x20execution\x20failed','\x20row(s)\x20in\x20','10rJnlrk','19fwJCFp','3148558yUhUPX','read','2714530pybnVA','4959160uNJBeS','params','execError','sqlcode','9IrGANV'];a48_0x5899=function(){return _0x3f0897;};return a48_0x5899();}import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a48_0x2f8677(0xfe),'command':a48_0x2f8677(0xff),'description':a48_0x2f8677(0x101),'risk':a48_0x2f8677(0xf6),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x4eeae0){const _0x5b58d2=a48_0x2f8677,_0x259a96=parseJsonParams(_0x4eeae0['str'](_0x5b58d2(0xf9))),_0x2b089c=Date[_0x5b58d2(0xef)](),_0xaa993=await executeSdkSql(_0x4eeae0[_0x5b58d2(0xfd)](_0x5b58d2(0xfb)),_0x259a96),_0x469471=Date['now']()-_0x2b089c,_0x421dc5=_0xaa993?.['execResult']??_0xaa993,_0x483a51=_0xaa993?.[_0x5b58d2(0xf0)]??!![];if(!_0x483a51)return{'ok':![],'data':{'error':_0xaa993?.[_0x5b58d2(0xfa)]||_0x5b58d2(0xf1),'elapsed':_0x469471},'message':_0x5b58d2(0xf1)};const _0x46972a=Array[_0x5b58d2(0x102)](_0x421dc5)?_0x421dc5:[];return{'ok':!![],'data':{'rows':_0x46972a,'rowCount':_0x46972a[_0x5b58d2(0xed)],'elapsed':_0x469471},'message':'Returned\x20'+_0x46972a[_0x5b58d2(0xed)]+_0x5b58d2(0xf2)+_0x469471+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a49_0x51f4(_0x5be39f,_0x324de0){_0x5be39f=_0x5be39f-0xbe;const _0x2bffde=a49_0x2bff();let _0x51f4ff=_0x2bffde[_0x5be39f];return _0x51f4ff;}(function(_0x1a233c,_0x3822ac){const _0x13c039=a49_0x51f4,_0x15bffb=_0x1a233c();while(!![]){try{const _0x432a71=-parseInt(_0x13c039(0xc3))/0x1*(-parseInt(_0x13c039(0xc2))/0x2)+parseInt(_0x13c039(0xc6))/0x3*(-parseInt(_0x13c039(0xc4))/0x4)+-parseInt(_0x13c039(0xbe))/0x5+parseInt(_0x13c039(0xbf))/0x6+parseInt(_0x13c039(0xc8))/0x7+parseInt(_0x13c039(0xc1))/0x8*(parseInt(_0x13c039(0xc7))/0x9)+-parseInt(_0x13c039(0xc0))/0xa*(parseInt(_0x13c039(0xc5))/0xb);if(_0x432a71===_0x3822ac)break;else _0x15bffb['push'](_0x15bffb['shift']());}catch(_0x2994b1){_0x15bffb['push'](_0x15bffb['shift']());}}}(a49_0x2bff,0xdd1df));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a49_0x2bff(){const _0x2a536f=['171fxLSmH','10778152KJoyyP','920190dpJqEi','2587740YSPwDn','2598180EgyVBN','217376NyAWXE','736972ydCpDV','1FHReQZ','6024916phFmzc','11moZlcj','3WZWwac'];a49_0x2bff=function(){return _0x2a536f;};return a49_0x2bff();}export const sqlDefinitions=[sqlDetail,sqlExec];
|
package/lib/commands/update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a50_0x2c54f2=a50_0x3577;(function(_0x34cec7,_0x89bb31){const _0x193c54=a50_0x3577,_0x7873d0=_0x34cec7();while(!![]){try{const _0x5ca0d7=parseInt(_0x193c54(0x1db))/0x1*(parseInt(_0x193c54(0x1d1))/0x2)+parseInt(_0x193c54(0x1fa))/0x3*(-parseInt(_0x193c54(0x1ce))/0x4)+parseInt(_0x193c54(0x1ba))/0x5*(parseInt(_0x193c54(0x1d3))/0x6)+parseInt(_0x193c54(0x1f8))/0x7*(parseInt(_0x193c54(0x1da))/0x8)+-parseInt(_0x193c54(0x1d5))/0x9+parseInt(_0x193c54(0x1cd))/0xa+-parseInt(_0x193c54(0x1d2))/0xb*(parseInt(_0x193c54(0x1e5))/0xc);if(_0x5ca0d7===_0x89bb31)break;else _0x7873d0['push'](_0x7873d0['shift']());}catch(_0x35644b){_0x7873d0['push'](_0x7873d0['shift']());}}}(a50_0x5837,0x34c33));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';function a50_0x3577(_0x3ebbd0,_0x1bf46c){_0x3ebbd0=_0x3ebbd0-0x1b9;const _0x5837e4=a50_0x5837();let _0x357734=_0x5837e4[_0x3ebbd0];return _0x357734;}import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':'latest','type':'boolean','description':'Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','default':![]},{'name':a50_0x2c54f2(0x1c2),'type':a50_0x2c54f2(0x1f1),'description':a50_0x2c54f2(0x1ef),'default':![]},{'name':a50_0x2c54f2(0x1de),'type':'string','description':a50_0x2c54f2(0x1e8)},{'name':a50_0x2c54f2(0x1f5),'type':a50_0x2c54f2(0x1f1),'description':a50_0x2c54f2(0x1b9),'default':![]},{'name':a50_0x2c54f2(0x1c1),'type':a50_0x2c54f2(0x1f1),'description':a50_0x2c54f2(0x1cc),'default':!![],'hidden':!![]}];function parseSemver(_0x327276){const _0x1d8ec6=a50_0x2c54f2,_0xc9337=_0x327276[_0x1d8ec6(0x1cf)]()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0xc9337)return null;return{'major':Number(_0xc9337[0x1]),'minor':Number(_0xc9337[0x2]),'patch':Number(_0xc9337[0x3]),'prerelease':_0xc9337[0x4]};}function compareSemver(_0x140450,_0x1d5e33){const _0x47e25c=a50_0x2c54f2,_0xf2ee7b=parseSemver(_0x140450),_0x497837=parseSemver(_0x1d5e33);if(!_0xf2ee7b||!_0x497837)throw CliErrors[_0x47e25c(0x1d0)](_0x47e25c(0x1fd),_0x47e25c(0x1f2));for(const _0x11ff50 of[_0x47e25c(0x1f9),'minor',_0x47e25c(0x1d6)]){if(_0xf2ee7b[_0x11ff50]<_0x497837[_0x11ff50])return-0x1;if(_0xf2ee7b[_0x11ff50]>_0x497837[_0x11ff50])return 0x1;}if(!_0xf2ee7b[_0x47e25c(0x1ea)]&&!_0x497837[_0x47e25c(0x1ea)])return 0x0;if(!_0xf2ee7b[_0x47e25c(0x1ea)])return 0x1;if(!_0x497837[_0x47e25c(0x1ea)])return-0x1;if(_0xf2ee7b[_0x47e25c(0x1ea)]===_0x497837[_0x47e25c(0x1ea)])return 0x0;return _0xf2ee7b[_0x47e25c(0x1ea)]<_0x497837[_0x47e25c(0x1ea)]?-0x1:0x1;}function getRequestedVersion(_0x21fa5b){const _0x1981a0=a50_0x2c54f2,_0x29b582=_0x21fa5b[_0x1981a0(0x1e3)](_0x1981a0(0x1de))['trim']();if(_0x29b582)return _0x29b582;return String(_0x21fa5b['args']?.[0x0]??'')[_0x1981a0(0x1cf)]();}function shouldSkipCliBuiltInSkill(_0x2def2c){const _0x534f14=a50_0x2c54f2;return _0x2def2c[_0x534f14(0x1c9)](_0x534f14(0x1f5))||_0x2def2c['flag']('skills')===![];}async function validateUpdateFlags(_0x15e965){const _0x2ede4=a50_0x2c54f2,_0x3bf566=getRequestedVersion(_0x15e965),_0x46327a=[_0x15e965[_0x2ede4(0x1c9)](_0x2ede4(0x1bc))?_0x2ede4(0x1bc):'',_0x15e965[_0x2ede4(0x1c9)](_0x2ede4(0x1c2))?_0x2ede4(0x1c2):'',_0x3bf566?_0x2ede4(0x1de):''][_0x2ede4(0x1dd)](Boolean);if(_0x46327a[_0x2ede4(0x1c4)]>0x1)throw CliErrors[_0x2ede4(0x1d0)](_0x2ede4(0x1f6),_0x2ede4(0x1e9));if(_0x3bf566&&!parseSemver(_0x3bf566))throw CliErrors['validation'](_0x2ede4(0x1f0)+_0x3bf566,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}function a50_0x5837(){const _0x447ec=['3XpjsLz','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','status','Version\x20comparison\x20failed.','=1).','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','20cGHAvE','Checking\x20npm\x20dist-tags...','latest','timeout','json','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','write','skills','beta','log','length','run','pipe','\x20version\x20from\x20npm.','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','bool','Updated\x20to\x20v','Checking\x20CLI\x20Built-in\x20Skill...','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','4250080aDYGDU','777488dtdvwC','trim','validation','510358hwkrGx','498377DKiEkj','95832nqHfAe','cwd','1972404vzLyoD','patch','Unable\x20to\x20resolve\x20','object','stderr','1976thJIpC','1VCQpWI','unknown','filter','version','Update\x20','toString','error','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','str','source','36GCncAa','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','nonInteractive','Install\x20a\x20specific\x20CLI\x20version','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','prerelease','exit\x20','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','stdout','fromEntries','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','Invalid\x20version:\x20','boolean','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','/dist-tags','warn','no-skills','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','inherit','609mOEdgD','major'];a50_0x5837=function(){return _0x447ec;};return a50_0x5837();}async function fetchNpmDistTags(){const _0x55e0c6=a50_0x2c54f2;try{const _0x3ec4b8=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x55e0c6(0x1f3),_0x6bef1=await fetch(_0x3ec4b8,{'signal':AbortSignal[_0x55e0c6(0x1bd)](0x2710)});if(!_0x6bef1['ok'])return null;const _0x3cf486=await _0x6bef1[_0x55e0c6(0x1be)]();if(!_0x3cf486||typeof _0x3cf486!==_0x55e0c6(0x1d8))return null;return Object[_0x55e0c6(0x1ee)](Object['entries'](_0x3cf486)[_0x55e0c6(0x1dd)](([,_0x57ca05])=>typeof _0x57ca05==='string'&&_0x57ca05[_0x55e0c6(0x1cf)]())['map'](([_0x39e91d,_0x579756])=>[_0x39e91d,String(_0x579756)[_0x55e0c6(0x1cf)]()]));}catch{return null;}}async function resolveTargetVersion(_0x27ddeb){const _0x4ee562=a50_0x2c54f2,_0xf86966=getRequestedVersion(_0x27ddeb);if(_0xf86966)return{'version':_0xf86966,'source':_0x4ee562(0x1de)};const _0x11b969=_0x27ddeb[_0x4ee562(0x1c9)](_0x4ee562(0x1c2))?_0x4ee562(0x1c2):_0x4ee562(0x1bc),_0x5cdc95=await fetchNpmDistTags(),_0xe1e705=_0x5cdc95?.[_0x11b969];if(!_0xe1e705)return null;return{'version':_0xe1e705,'source':_0x11b969};}function shouldInstallTarget(_0x4b5c95,_0x51cec1){const _0x7f63b6=a50_0x2c54f2,_0x57fe8=compareSemver(_0x4b5c95,_0x51cec1[_0x7f63b6(0x1de)]);if(_0x51cec1['source']===_0x7f63b6(0x1de))return _0x57fe8!==0x0;return _0x57fe8<0x0;}function installCliPackage(_0x289242,_0x408886){const _0x1466aa=a50_0x2c54f2,_0x507078=resolveNpmBin('npm'),_0x465999=['install','-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x289242];console[_0x1466aa(0x1c3)]('*\x20'+[_0x507078,..._0x465999]['join']('\x20'));const _0x4e6026=spawnSync(_0x507078,_0x465999,{'cwd':process[_0x1466aa(0x1d4)](),'stdio':_0x408886?_0x1466aa(0x1c6):'inherit','env':process.env,'shell':![]});if(_0x4e6026[_0x1466aa(0x1fc)]===0x0)return{'ok':!![]};let _0x255591=_0x4e6026[_0x1466aa(0x1e1)]?.['message']||_0x1466aa(0x1eb)+(_0x4e6026[_0x1466aa(0x1fc)]??_0x1466aa(0x1dc));if(_0x408886){const _0x192b2a=_0x4e6026[_0x1466aa(0x1d9)]?_0x4e6026[_0x1466aa(0x1d9)][_0x1466aa(0x1e0)]()[_0x1466aa(0x1cf)]():'',_0x1f6c14=_0x4e6026[_0x1466aa(0x1ed)]?_0x4e6026[_0x1466aa(0x1ed)][_0x1466aa(0x1e0)]()[_0x1466aa(0x1cf)]():'';if(_0x192b2a)_0x255591=_0x192b2a;else{if(_0x1f6c14)_0x255591=_0x1f6c14;}}return{'ok':![],'error':_0x255591};}async function installCliBuiltInSkill(_0x1e2c40){const _0x3c17cf=a50_0x2c54f2;console[_0x3c17cf(0x1c3)](_0x3c17cf(0x1cb));const _0x1b3f3b=runNpxSkillsAddGlobal(process['cwd'](),LOVRABET_SKILL_SOURCE,{'stdio':_0x1e2c40?_0x3c17cf(0x1c6):_0x3c17cf(0x1f7)});if(_0x1b3f3b['skipped']){console['log'](_0x3c17cf(0x1e6)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x3c17cf(0x1fe));return;}if(_0x1b3f3b['ok']){console[_0x3c17cf(0x1c3)](_0x3c17cf(0x1ec));return;}console[_0x3c17cf(0x1f4)](_0x3c17cf(0x1bf)+(_0x1b3f3b[_0x3c17cf(0x1e1)]||'unknown')),console[_0x3c17cf(0x1c3)](_0x3c17cf(0x1fb));}async function execute(_0x1bf7f7){const _0x1fbb7c=a50_0x2c54f2;await validateUpdateFlags(_0x1bf7f7);const _0x2ce768=getCliVersion();console[_0x1fbb7c(0x1c3)]('Current\x20version:\x20'+_0x2ce768),console['log'](_0x1fbb7c(0x1bb));const _0x4eef39=await resolveTargetVersion(_0x1bf7f7);if(!_0x4eef39){const _0x4d5a32=_0x1bf7f7[_0x1fbb7c(0x1c9)](_0x1fbb7c(0x1c2))?_0x1fbb7c(0x1c2):_0x1fbb7c(0x1bc),_0x3e9ba9=_0x1fbb7c(0x1d7)+_0x4d5a32+_0x1fbb7c(0x1c7);return console[_0x1fbb7c(0x1f4)](_0x3e9ba9),console[_0x1fbb7c(0x1c3)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4d5a32),{'ok':![]};}if(!shouldInstallTarget(_0x2ce768,_0x4eef39)){const _0x29a337=_0x4eef39[_0x1fbb7c(0x1e4)]==='version'?'Already\x20on\x20requested\x20version\x20(v'+_0x4eef39[_0x1fbb7c(0x1de)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x4eef39[_0x1fbb7c(0x1de)]+').';return console['log'](_0x29a337),shouldSkipCliBuiltInSkill(_0x1bf7f7)?console[_0x1fbb7c(0x1c3)](_0x1fbb7c(0x1c8)):await installCliBuiltInSkill(_0x1bf7f7['nonInteractive']),{'ok':!![]};}console['log']('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x2ce768+'\x20->\x20'+_0x4eef39[_0x1fbb7c(0x1de)]);const _0x3e5777=installCliPackage(_0x4eef39[_0x1fbb7c(0x1de)],_0x1bf7f7[_0x1fbb7c(0x1e7)]);if(!_0x3e5777['ok']){const _0x3a893d='Update\x20failed:\x20'+(_0x3e5777['error']||_0x1fbb7c(0x1dc));return console[_0x1fbb7c(0x1e1)](_0x3a893d),console[_0x1fbb7c(0x1c3)](_0x1fbb7c(0x1e2)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4eef39['version']),{'ok':![]};}return console[_0x1fbb7c(0x1c3)](_0x1fbb7c(0x1ca)+_0x4eef39[_0x1fbb7c(0x1de)]+'.'),console[_0x1fbb7c(0x1c3)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'),shouldSkipCliBuiltInSkill(_0x1bf7f7)?console[_0x1fbb7c(0x1c3)](_0x1fbb7c(0x1c8)):await installCliBuiltInSkill(_0x1bf7f7[_0x1fbb7c(0x1e7)]),{'ok':!![]};}export const updateDefinition={'service':'update','command':a50_0x2c54f2(0x1c5),'description':a50_0x2c54f2(0x1df)+CLI_BIN_NAME+'\x20CLI\x20from\x20npm','risk':a50_0x2c54f2(0x1c0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
1
|
+
const a50_0x4a57bb=a50_0x5be4;(function(_0xc1c36,_0x5e5818){const _0x390529=a50_0x5be4,_0x10010c=_0xc1c36();while(!![]){try{const _0x2a3f86=-parseInt(_0x390529(0x1bf))/0x1+parseInt(_0x390529(0x20a))/0x2*(parseInt(_0x390529(0x1d5))/0x3)+parseInt(_0x390529(0x1fd))/0x4*(-parseInt(_0x390529(0x1f2))/0x5)+-parseInt(_0x390529(0x1f4))/0x6+-parseInt(_0x390529(0x208))/0x7+parseInt(_0x390529(0x1c1))/0x8*(parseInt(_0x390529(0x1d9))/0x9)+parseInt(_0x390529(0x204))/0xa;if(_0x2a3f86===_0x5e5818)break;else _0x10010c['push'](_0x10010c['shift']());}catch(_0x4cdaa0){_0x10010c['push'](_0x10010c['shift']());}}}(a50_0x3dad,0xdc9b1));import{spawnSync}from'node:child_process';function a50_0x5be4(_0x57635b,_0x154c6d){_0x57635b=_0x57635b-0x1bc;const _0x3dadd2=a50_0x3dad();let _0x5be427=_0x3dadd2[_0x57635b];return _0x5be427;}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_0x3dad(){const _0x1e569c=['18bpqwpZ','Checking\x20CLI\x20Built-in\x20Skill...','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','skipped','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','entries','Update\x20failed:\x20','nonInteractive','Update\x20','flag','source','status','boolean','log','message','latest','prerelease','no-skills','match','Updated\x20to\x20v','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','beta','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','/-/package/','5zEYjlE','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','6868722lcMmUj','trim','Already\x20on\x20requested\x20version\x20(v','update','skills','stdout','patch','toString','Checking\x20npm\x20dist-tags...','6446868LXMwXO','object','cwd','args','Unable\x20to\x20resolve\x20','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','\x20->\x20','33469690RVzMsD','validation','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','pipe','7150423gBmItX','filter','538082jZRbmT','\x20CLI\x20from\x20npm','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','join','738112XbcXXD','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','5062456UviibZ','map','json','exit\x20','version','warn','run','bool','Install\x20a\x20specific\x20CLI\x20version','error','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','timeout','unknown','stderr','major','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','string','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Version\x20comparison\x20failed.','inherit','9wLOSqZ','install','length','npm'];a50_0x3dad=function(){return _0x1e569c;};return a50_0x3dad();}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':a50_0x4a57bb(0x1e8),'type':a50_0x4a57bb(0x1e5),'description':a50_0x4a57bb(0x20c),'default':![]},{'name':a50_0x4a57bb(0x1ef),'type':a50_0x4a57bb(0x1e5),'description':a50_0x4a57bb(0x1cb),'default':![]},{'name':'version','type':a50_0x4a57bb(0x1d1),'description':a50_0x4a57bb(0x1c9)},{'name':a50_0x4a57bb(0x1ea),'type':a50_0x4a57bb(0x1e5),'description':'Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','default':![]},{'name':a50_0x4a57bb(0x1f8),'type':a50_0x4a57bb(0x1e5),'description':a50_0x4a57bb(0x202),'default':!![],'hidden':!![]}];function parseSemver(_0x2b7fc2){const _0x462850=a50_0x4a57bb,_0x59fa3d=_0x2b7fc2[_0x462850(0x1f5)]()[_0x462850(0x1eb)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x59fa3d)return null;return{'major':Number(_0x59fa3d[0x1]),'minor':Number(_0x59fa3d[0x2]),'patch':Number(_0x59fa3d[0x3]),'prerelease':_0x59fa3d[0x4]};}function compareSemver(_0xf94918,_0x450d26){const _0x576170=a50_0x4a57bb,_0x1f25a2=parseSemver(_0xf94918),_0x494ad2=parseSemver(_0x450d26);if(!_0x1f25a2||!_0x494ad2)throw CliErrors['validation'](_0x576170(0x1d3),_0x576170(0x1f3));for(const _0x522204 of[_0x576170(0x1cf),'minor',_0x576170(0x1fa)]){if(_0x1f25a2[_0x522204]<_0x494ad2[_0x522204])return-0x1;if(_0x1f25a2[_0x522204]>_0x494ad2[_0x522204])return 0x1;}if(!_0x1f25a2[_0x576170(0x1e9)]&&!_0x494ad2[_0x576170(0x1e9)])return 0x0;if(!_0x1f25a2['prerelease'])return 0x1;if(!_0x494ad2[_0x576170(0x1e9)])return-0x1;if(_0x1f25a2[_0x576170(0x1e9)]===_0x494ad2['prerelease'])return 0x0;return _0x1f25a2[_0x576170(0x1e9)]<_0x494ad2['prerelease']?-0x1:0x1;}function getRequestedVersion(_0x1c98f8){const _0x56b634=a50_0x4a57bb,_0x77a2df=_0x1c98f8['str'](_0x56b634(0x1c5))[_0x56b634(0x1f5)]();if(_0x77a2df)return _0x77a2df;return String(_0x1c98f8[_0x56b634(0x200)]?.[0x0]??'')[_0x56b634(0x1f5)]();}function shouldSkipCliBuiltInSkill(_0x1eac23){const _0x4fb02b=a50_0x4a57bb;return _0x1eac23[_0x4fb02b(0x1c8)](_0x4fb02b(0x1ea))||_0x1eac23[_0x4fb02b(0x1e2)](_0x4fb02b(0x1f8))===![];}async function validateUpdateFlags(_0x344db6){const _0x4468f9=a50_0x4a57bb,_0x1a0b6e=getRequestedVersion(_0x344db6),_0xb262a0=[_0x344db6[_0x4468f9(0x1c8)]('latest')?'latest':'',_0x344db6[_0x4468f9(0x1c8)](_0x4468f9(0x1ef))?_0x4468f9(0x1ef):'',_0x1a0b6e?'version':''][_0x4468f9(0x209)](Boolean);if(_0xb262a0[_0x4468f9(0x1d7)]>0x1)throw CliErrors[_0x4468f9(0x205)](_0x4468f9(0x1db),_0x4468f9(0x1d0));if(_0x1a0b6e&&!parseSemver(_0x1a0b6e))throw CliErrors[_0x4468f9(0x205)]('Invalid\x20version:\x20'+_0x1a0b6e,_0x4468f9(0x1bd));}async function fetchNpmDistTags(){const _0x2d046a=a50_0x4a57bb;try{const _0x3c1366=NPM_REGISTRY_BASE_URL+_0x2d046a(0x1f1)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x1ae2e7=await fetch(_0x3c1366,{'signal':AbortSignal[_0x2d046a(0x1cc)](0x2710)});if(!_0x1ae2e7['ok'])return null;const _0x319142=await _0x1ae2e7[_0x2d046a(0x1c3)]();if(!_0x319142||typeof _0x319142!==_0x2d046a(0x1fe))return null;return Object['fromEntries'](Object[_0x2d046a(0x1de)](_0x319142)[_0x2d046a(0x209)](([,_0x1a53fc])=>typeof _0x1a53fc==='string'&&_0x1a53fc['trim']())[_0x2d046a(0x1c2)](([_0x29cb28,_0x58e39c])=>[_0x29cb28,String(_0x58e39c)[_0x2d046a(0x1f5)]()]));}catch{return null;}}async function resolveTargetVersion(_0x4b3ee0){const _0x290c20=a50_0x4a57bb,_0x5822a8=getRequestedVersion(_0x4b3ee0);if(_0x5822a8)return{'version':_0x5822a8,'source':'version'};const _0x2be2a9=_0x4b3ee0['bool']('beta')?_0x290c20(0x1ef):'latest',_0x57b826=await fetchNpmDistTags(),_0x2712a4=_0x57b826?.[_0x2be2a9];if(!_0x2712a4)return null;return{'version':_0x2712a4,'source':_0x2be2a9};}function shouldInstallTarget(_0x1420ce,_0x550d49){const _0x41e5f1=a50_0x4a57bb,_0x59e682=compareSemver(_0x1420ce,_0x550d49['version']);if(_0x550d49[_0x41e5f1(0x1e3)]==='version')return _0x59e682!==0x0;return _0x59e682<0x0;}function installCliPackage(_0x34974a,_0x307b30){const _0x457dc6=a50_0x4a57bb,_0x2990a7=resolveNpmBin(_0x457dc6(0x1d8)),_0x8a87ba=[_0x457dc6(0x1d6),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x34974a];console[_0x457dc6(0x1e6)]('*\x20'+[_0x2990a7,..._0x8a87ba][_0x457dc6(0x1be)]('\x20'));const _0x24aca6=spawnSync(_0x2990a7,_0x8a87ba,{'cwd':process[_0x457dc6(0x1ff)](),'stdio':_0x307b30?_0x457dc6(0x207):_0x457dc6(0x1d4),'env':process.env,'shell':![]});if(_0x24aca6['status']===0x0)return{'ok':!![]};let _0x3b9d5e=_0x24aca6['error']?.[_0x457dc6(0x1e7)]||_0x457dc6(0x1c4)+(_0x24aca6[_0x457dc6(0x1e4)]??'unknown');if(_0x307b30){const _0x43d39a=_0x24aca6[_0x457dc6(0x1ce)]?_0x24aca6[_0x457dc6(0x1ce)]['toString']()['trim']():'',_0x5dbab5=_0x24aca6[_0x457dc6(0x1f9)]?_0x24aca6[_0x457dc6(0x1f9)][_0x457dc6(0x1fb)]()[_0x457dc6(0x1f5)]():'';if(_0x43d39a)_0x3b9d5e=_0x43d39a;else{if(_0x5dbab5)_0x3b9d5e=_0x5dbab5;}}return{'ok':![],'error':_0x3b9d5e};}async function installCliBuiltInSkill(_0x359a0c){const _0x23d12e=a50_0x4a57bb;console[_0x23d12e(0x1e6)](_0x23d12e(0x1da));const _0x4b0196=runNpxSkillsAddGlobal(process[_0x23d12e(0x1ff)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x359a0c?_0x23d12e(0x207):_0x23d12e(0x1d4)});if(_0x4b0196[_0x23d12e(0x1dc)]){console[_0x23d12e(0x1e6)](_0x23d12e(0x1c0)+LOVRABET_SKIP_NPX_SKILLS_ENV+'=1).');return;}if(_0x4b0196['ok']){console['log'](_0x23d12e(0x1dd));return;}console[_0x23d12e(0x1c6)](_0x23d12e(0x1ed)+(_0x4b0196['error']||_0x23d12e(0x1cd))),console[_0x23d12e(0x1e6)](_0x23d12e(0x1ee));}async function execute(_0x536bbd){const _0xbf584=a50_0x4a57bb;await validateUpdateFlags(_0x536bbd);const _0x1c2f69=getCliVersion();console[_0xbf584(0x1e6)]('Current\x20version:\x20'+_0x1c2f69),console[_0xbf584(0x1e6)](_0xbf584(0x1fc));const _0x4d6b84=await resolveTargetVersion(_0x536bbd);if(!_0x4d6b84){const _0x4e58de=_0x536bbd[_0xbf584(0x1c8)](_0xbf584(0x1ef))?_0xbf584(0x1ef):_0xbf584(0x1e8),_0x3d7813=_0xbf584(0x201)+_0x4e58de+'\x20version\x20from\x20npm.';return console[_0xbf584(0x1c6)](_0x3d7813),console[_0xbf584(0x1e6)](_0xbf584(0x1bc)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4e58de),{'ok':![]};}if(!shouldInstallTarget(_0x1c2f69,_0x4d6b84)){const _0x482fe5=_0x4d6b84['source']===_0xbf584(0x1c5)?_0xbf584(0x1f6)+_0x4d6b84[_0xbf584(0x1c5)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x4d6b84[_0xbf584(0x1c5)]+').';return console[_0xbf584(0x1e6)](_0x482fe5),shouldSkipCliBuiltInSkill(_0x536bbd)?console['log'](_0xbf584(0x206)):await installCliBuiltInSkill(_0x536bbd['nonInteractive']),{'ok':!![]};}console[_0xbf584(0x1e6)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x1c2f69+_0xbf584(0x203)+_0x4d6b84['version']);const _0x1fada5=installCliPackage(_0x4d6b84[_0xbf584(0x1c5)],_0x536bbd[_0xbf584(0x1e0)]);if(!_0x1fada5['ok']){const _0x54142f=_0xbf584(0x1df)+(_0x1fada5[_0xbf584(0x1ca)]||_0xbf584(0x1cd));return console[_0xbf584(0x1ca)](_0x54142f),console[_0xbf584(0x1e6)](_0xbf584(0x1f0)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4d6b84[_0xbf584(0x1c5)]),{'ok':![]};}return console[_0xbf584(0x1e6)](_0xbf584(0x1ec)+_0x4d6b84['version']+'.'),console[_0xbf584(0x1e6)](_0xbf584(0x1d2)),shouldSkipCliBuiltInSkill(_0x536bbd)?console['log'](_0xbf584(0x206)):await installCliBuiltInSkill(_0x536bbd[_0xbf584(0x1e0)]),{'ok':!![]};}export const updateDefinition={'service':a50_0x4a57bb(0x1f7),'command':a50_0x4a57bb(0x1c7),'description':a50_0x4a57bb(0x1e1)+CLI_BIN_NAME+a50_0x4a57bb(0x20b),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51_0x1bab58=a51_0x136f;(function(_0xdb6e1a,_0x2c87a8){const _0x21a061=a51_0x136f,_0x78350f=_0xdb6e1a();while(!![]){try{const _0x5252a2=parseInt(_0x21a061(0x1fe))/0x1+-parseInt(_0x21a061(0x1fd))/0x2*(-parseInt(_0x21a061(0x216))/0x3)+parseInt(_0x21a061(0x1f2))/0x4+-parseInt(_0x21a061(0x207))/0x5+parseInt(_0x21a061(0x201))/0x6+parseInt(_0x21a061(0x217))/0x7*(-parseInt(_0x21a061(0x209))/0x8)+parseInt(_0x21a061(0x1f9))/0x9*(parseInt(_0x21a061(0x1fc))/0xa);if(_0x5252a2===_0x2c87a8)break;else _0x78350f['push'](_0x78350f['shift']());}catch(_0x57a5b0){_0x78350f['push'](_0x78350f['shift']());}}}(a51_0x2d19,0x9507d));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':a51_0x1bab58(0x1ed),'type':a51_0x1bab58(0x218),'description':a51_0x1bab58(0x1f7)},{'name':a51_0x1bab58(0x204),'type':a51_0x1bab58(0x218),'description':a51_0x1bab58(0x206)},{'name':a51_0x1bab58(0x21d),'type':a51_0x1bab58(0x218),'description':a51_0x1bab58(0x20d),'enum':[...RUNTIME_ENV_VALUES]},{'name':a51_0x1bab58(0x210),'type':'boolean','description':a51_0x1bab58(0x1f5),'default':![]}];async function executeWorkspaceUse(_0x56c4a4,_0x5c7e1e){const _0x5978a2=a51_0x1bab58,_0x2fafe1=_0x56c4a4[_0x5978a2(0x1f1)](_0x5978a2(0x1ed))[_0x5978a2(0x1ee)](),_0x2d6629=_0x56c4a4['str']('appcode')['trim'](),_0x2a3ecf=_0x56c4a4[_0x5978a2(0x1f1)](_0x5978a2(0x21d))[_0x5978a2(0x1ee)](),_0x2d0325=resolveWorkspaceEnv(_0x2a3ecf||_0x56c4a4['envName']||DEFAULT_CONFIG_VALUES['env']);if(!_0x2fafe1&&!_0x2d6629)throw CliErrors[_0x5978a2(0x202)](_0x5978a2(0x1ec),'Usage:\x20'+CLI_BIN_NAME+'\x20workspace\x20'+_0x5c7e1e+'\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20'+CLI_BIN_NAME+_0x5978a2(0x20c)+_0x5c7e1e+_0x5978a2(0x20a));const _0x347e11=_0x2d6629||await resolveRemoteAppCode({'command':_0x5c7e1e,'appName':_0x2fafe1,'env':_0x2d0325,'accessKey':_0x56c4a4[_0x5978a2(0x1fb)]}),_0xfe7b7d=writeWorkspaceConfig({'command':_0x5c7e1e,'appName':_0x2fafe1,'appcode':_0x347e11,'env':_0x2d0325,'shouldWriteEnv':!!_0x2a3ecf,'accessKey':_0x56c4a4['accessKey']});return{'ok':!![],'data':{'configPath':_0xfe7b7d,'app':_0x2fafe1||null,'appcode':_0x347e11,'env':_0x2a3ecf?_0x2d0325:null,'accessKeyWritten':![],'command':_0x5978a2(0x1eb)+_0x5c7e1e},'message':buildWorkspaceMessage(_0xfe7b7d,_0x2fafe1,_0x347e11,_0x2a3ecf?_0x2d0325:undefined)};}async function resolveRemoteAppCode(_0x257a35){const _0x5852fd=a51_0x1bab58;if(!_0x257a35[_0x5852fd(0x1fb)])throw CliErrors['authRequired'](_0x5852fd(0x20f)+CLI_BIN_NAME+_0x5852fd(0x20c)+_0x257a35[_0x5852fd(0x1fa)]+'.');const {setActiveAK:_0x21a99f}=await import('../../core/api-client.js'),{getRemoteAppList:_0x2cf7bb}=await import(_0x5852fd(0x215));_0x21a99f(_0x257a35[_0x5852fd(0x1fb)]);const _0x2e9b4c=await _0x2cf7bb({'env':_0x257a35['env'],'accessKey':_0x257a35[_0x5852fd(0x1fb)],'noCache':![]}),_0xa020b9=findAppByName(_0x2e9b4c[_0x5852fd(0x1ef)],_0x257a35[_0x5852fd(0x205)]);if(_0xa020b9&&!isRuntimeAccessibleApp(_0xa020b9))throw runtimeInaccessibleAppError(_0xa020b9,'\x22'+_0x257a35[_0x5852fd(0x205)]+'\x22');const _0x3253e4=_0xa020b9?.[_0x5852fd(0x212)]?.[_0x5852fd(0x1ee)]();if(_0x3253e4)return _0x3253e4;const _0x4a959d=_0x2e9b4c[_0x5852fd(0x1ef)]['map'](_0x54a72e=>_0x54a72e['appName'])[_0x5852fd(0x21c)](Boolean),_0x50d093=_0x4a959d[_0x5852fd(0x1f4)]?_0x5852fd(0x219)+Array['from'](new Set(_0x4a959d))[_0x5852fd(0x208)](',\x20')+'.':_0x5852fd(0x203)+CLI_BIN_NAME+_0x5852fd(0x21b);throw CliErrors[_0x5852fd(0x202)](_0x5852fd(0x21a)+_0x257a35['appName']+_0x5852fd(0x200),_0x50d093);}function a51_0x136f(_0xe9aec8,_0x587b4f){_0xe9aec8=_0xe9aec8-0x1eb;const _0x2d19d9=a51_0x2d19();let _0x136f2d=_0x2d19d9[_0xe9aec8];return _0x136f2d;}function writeWorkspaceConfig(_0x306a52){const _0x46fcb0=a51_0x1bab58,_0x54e123=resolveWriteConfigPath(_0x46fcb0(0x1ff)),_0x90b7f9=readConfigFile(_0x54e123);_0x306a52['shouldWriteEnv']&&(_0x90b7f9[_0x46fcb0(0x21d)]=_0x306a52[_0x46fcb0(0x21d)]);if(_0x306a52[_0x46fcb0(0x205)]){const _0x1947d7=isRecord(_0x90b7f9[_0x46fcb0(0x21e)])?{..._0x90b7f9[_0x46fcb0(0x21e)]}:{},_0x710e54=isRecord(_0x1947d7[_0x306a52[_0x46fcb0(0x205)]])?_0x1947d7[_0x306a52['appName']]:{};_0x1947d7[_0x306a52['appName']]={..._0x710e54,'appcode':_0x306a52[_0x46fcb0(0x204)]},_0x90b7f9[_0x46fcb0(0x21e)]=_0x1947d7,_0x90b7f9[_0x46fcb0(0x213)]=_0x306a52[_0x46fcb0(0x205)];if(_0x90b7f9[_0x46fcb0(0x1ed)])delete _0x90b7f9['app'];return writeAndReturn(_0x54e123,_0x90b7f9);}_0x90b7f9['appcode']=_0x306a52[_0x46fcb0(0x204)];if(_0x90b7f9[_0x46fcb0(0x1ed)])delete _0x90b7f9[_0x46fcb0(0x1ed)];return writeAndReturn(_0x54e123,_0x90b7f9);}function writeAndReturn(_0x3db3a8,_0x1cd607){return writeConfigFile(_0x3db3a8,_0x1cd607),_0x3db3a8;}function resolveWorkspaceEnv(_0x1304ce){const _0x56466f=a51_0x1bab58;if(RUNTIME_ENV_VALUES[_0x56466f(0x1f3)](_0x1304ce))return _0x1304ce;throw CliErrors[_0x56466f(0x202)](_0x56466f(0x214)+_0x1304ce+_0x56466f(0x211)+RUNTIME_ENV_VALUES[_0x56466f(0x208)](',\x20'));}function buildWorkspaceMessage(_0x3ed93f,_0x4a1fb8,_0x92ce4,_0x533295){const _0x4aa8a6=a51_0x1bab58,_0x1a25a5=_0x4a1fb8?_0x4a1fb8+'\x20('+_0x92ce4+')':_0x92ce4,_0x1d804f=_0x533295?_0x4aa8a6(0x20b)+_0x533295:'';return _0x4aa8a6(0x1f0)+_0x3ed93f+'\x0aDefault\x20app:\x20'+_0x1a25a5+_0x1d804f+'\x0aAccessKey:\x20not\x20written';}function isRecord(_0x254b6b){return typeof _0x254b6b==='object'&&_0x254b6b!==null&&!Array['isArray'](_0x254b6b);}function a51_0x2d19(){const _0x56a2ae=['filter','env','apps','workspace','workspace\x20','Missing\x20workspace\x20app\x20selector.','app','trim','items','Workspace\x20configured.\x0aConfig\x20file:\x20','str','1156740ROnrzX','includes','length','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','init','3057867ZLGqhu','command','accessKey','10vqodFT','58556VuNdMy','1018128vRDRCE','project','\x22\x20not\x20found.','3016722HPfbwS','validation','Run\x20`','appcode','appName','App\x20code\x20to\x20bind\x20directly','4721695jaJtkB','join','2264nyCzqE','\x20--appcode\x20<code>\x20[--env\x20daily]','\x0aEnv:\x20','\x20workspace\x20','Target\x20environment','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','yes','\x22.\x20Allowed:\x20','appCode','defaultApp','Invalid\x20env\x20\x22','../../commands/app/remote-source.js','21QTzbKG','19789hwZPLr','string','Available\x20apps:\x20','App\x20\x22','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.'];a51_0x2d19=function(){return _0x56a2ae;};return a51_0x2d19();}function makeWorkspaceCommand(_0x34d68d){const _0x507141=a51_0x1bab58;return{'service':_0x507141(0x21f),'command':_0x34d68d,'description':_0x34d68d===_0x507141(0x1f8)?_0x507141(0x1f6):_0x507141(0x20e),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x2b3c93){return executeWorkspaceUse(_0x2b3c93,_0x34d68d);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a51_0x1bab58(0x1f8)),makeWorkspaceCommand('use')];
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a52_0x310d(){const _0x2cd7ec=['Access\x20key\x20(client-ak\x20auth)','2481410LxVGdz','env','Locale','9suUZoR','3051140szGkbE','Override\x20user\x20domain','enumValues','Override\x20SkillHub\x20domain','join','2202900CkbMNP','9uWuwbK','3981996bWezhK','map','Target\x20environment','Override\x20API\x20domain','24MBoqmd','452424FnyZEf',';\x20local\x20alias:\x20apps.<alias>.appcode','Risk\x20level','Config\x20key.\x20Top-level:\x20','entries','54334uhTfHf','format','15598kXBFbU','Override\x20runtime\x20domain','locale','filter','Default\x20output\x20format'];a52_0x310d=function(){return _0x2cd7ec;};return a52_0x310d();}const a52_0x3611e5=a52_0x3092;(function(_0x5cc595,_0x3b75d2){const _0x43f5e3=a52_0x3092,_0x4f6a38=_0x5cc595();while(!![]){try{const _0x3cc42f=parseInt(_0x43f5e3(0x99))/0x1*(-parseInt(_0x43f5e3(0x90))/0x2)+-parseInt(_0x43f5e3(0x89))/0x3+-parseInt(_0x43f5e3(0x7d))/0x4+parseInt(_0x43f5e3(0x82))/0x5+parseInt(_0x43f5e3(0x84))/0x6+parseInt(_0x43f5e3(0x8e))/0x7*(parseInt(_0x43f5e3(0x88))/0x8)+-parseInt(_0x43f5e3(0x83))/0x9*(-parseInt(_0x43f5e3(0x96))/0xa);if(_0x3cc42f===_0x3b75d2)break;else _0x4f6a38['push'](_0x4f6a38['shift']());}catch(_0x3bf968){_0x4f6a38['push'](_0x4f6a38['shift']());}}}(a52_0x310d,0x5fad1));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':a52_0x3611e5(0x86),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x3611e5(0x97)],'importable':!![]},'format':{'description':a52_0x3611e5(0x94),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x3611e5(0x8f)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a52_0x3611e5(0x87),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a52_0x3611e5(0x7e),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a52_0x3611e5(0x91),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a52_0x3611e5(0x80),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a52_0x3611e5(0x95),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a52_0x3611e5(0x8b),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'locale':{'description':a52_0x3611e5(0x98),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x3611e5(0x92)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a52_0x3611e5(0x8d)](CONFIG_FIELD_SCHEMAS)[a52_0x3611e5(0x93)](([,_0x21bd58])=>_0x21bd58['cliSettableTopLevel'])['map'](([_0x438f63])=>_0x438f63));export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object[a52_0x3611e5(0x8d)](CONFIG_FIELD_SCHEMAS)[a52_0x3611e5(0x93)](([,_0x2f4dd0])=>_0x2f4dd0[a52_0x3611e5(0x7f)])[a52_0x3611e5(0x85)](([_0x49e908,_0x40f87a])=>[_0x49e908,[..._0x40f87a[a52_0x3611e5(0x7f)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a52_0x3611e5(0x8d)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x1e8543])=>_0x1e8543['importable'])[a52_0x3611e5(0x85)](([_0x3a1499])=>_0x3a1499);export function getConfigFieldSchema(_0x27bf6a){return CONFIG_FIELD_SCHEMAS[_0x27bf6a];}export function getConfigEnumValues(_0x3ee8cb){const _0xb1af2a=a52_0x3611e5;return getConfigFieldSchema(_0x3ee8cb)?.[_0xb1af2a(0x7f)];}export function getConfigDefaultValue(_0x1f0a8f){return getConfigFieldSchema(_0x1f0a8f)?.['defaultValue'];}export function isTopLevelConfigKey(_0x287fb7){return TOP_LEVEL_CONFIG_KEYS['has'](_0x287fb7);}export function isLegacyCompatConfigKey(_0x56fe69){return getConfigFieldSchema(_0x56fe69)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x2fe294){const _0x3016a7=a52_0x3611e5;return[..._0x2fe294][_0x3016a7(0x81)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x492927=a52_0x3611e5;return _0x492927(0x8c)+getTopLevelConfigKeySummary()+_0x492927(0x8a);}function a52_0x3092(_0x5ec8ed,_0x70344a){_0x5ec8ed=_0x5ec8ed-0x7d;const _0x310da9=a52_0x310d();let _0x309241=_0x310da9[_0x5ec8ed];return _0x309241;}export function buildAppProfileListFields(_0xd998b6){return{'env':_0xd998b6,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a53_0xdd3b15=a53_0x1c89;function a53_0x1c89(_0x393203,_0x34f109){_0x393203=_0x393203-0x1a0;const _0x1d0915=a53_0x1d09();let _0x1c89c4=_0x1d0915[_0x393203];return _0x1c89c4;}(function(_0x2b087f,_0x32f007){const _0x425c08=a53_0x1c89,_0x23cd6b=_0x2b087f();while(!![]){try{const _0x43fffa=-parseInt(_0x425c08(0x1a6))/0x1+-parseInt(_0x425c08(0x1a0))/0x2+parseInt(_0x425c08(0x1a4))/0x3+parseInt(_0x425c08(0x1a2))/0x4+parseInt(_0x425c08(0x1a5))/0x5+parseInt(_0x425c08(0x1a8))/0x6*(-parseInt(_0x425c08(0x1aa))/0x7)+parseInt(_0x425c08(0x1a3))/0x8*(-parseInt(_0x425c08(0x1a7))/0x9);if(_0x43fffa===_0x32f007)break;else _0x23cd6b['push'](_0x23cd6b['shift']());}catch(_0x1b95d5){_0x23cd6b['push'](_0x23cd6b['shift']());}}}(a53_0x1d09,0x3586d));function a53_0x1d09(){const _0x2f3b9e=['695010UtsjJU','578185OwddbV','195834IbSpjJ','58779XRaJSH','258pFeuFl','Published','29442tRZHiW','57614pjyQgt','PUBLISHED','1370988tAeiaF','80nIKYJW'];a53_0x1d09=function(){return _0x2f3b9e;};return a53_0x1d09();}export const APP_PUBLISH_STATUS={'Published':a53_0xdd3b15(0x1a1),'Unpublished':'UNPUBLISH'};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a53_0xdd3b15(0x1a9)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a54_0x53e719=a54_0x2162;function a54_0x2162(_0x76bef8,_0x45783b){_0x76bef8=_0x76bef8-0x18d;const _0x3cd20e=a54_0x3cd2();let _0x216287=_0x3cd20e[_0x76bef8];return _0x216287;}(function(_0x3caf10,_0x39e3c1){const _0xe80b20=a54_0x2162,_0x28fb33=_0x3caf10();while(!![]){try{const _0x345e4c=-parseInt(_0xe80b20(0x194))/0x1+-parseInt(_0xe80b20(0x195))/0x2*(-parseInt(_0xe80b20(0x18e))/0x3)+-parseInt(_0xe80b20(0x191))/0x4*(-parseInt(_0xe80b20(0x18f))/0x5)+parseInt(_0xe80b20(0x192))/0x6+-parseInt(_0xe80b20(0x18d))/0x7*(-parseInt(_0xe80b20(0x197))/0x8)+parseInt(_0xe80b20(0x190))/0x9+-parseInt(_0xe80b20(0x196))/0xa;if(_0x345e4c===_0x39e3c1)break;else _0x28fb33['push'](_0x28fb33['shift']());}catch(_0x294822){_0x28fb33['push'](_0x28fb33['shift']());}}}(a54_0x3cd2,0xcf82b));export const AUTH_MODE={'ClientAk':a54_0x53e719(0x193)};export function isAuthMode(_0x2dee75){const _0x183e4e=a54_0x53e719;return _0x2dee75===AUTH_MODE[_0x183e4e(0x198)];}function a54_0x3cd2(){const _0x37992a=['1275876zNvKZK','client-ak','725080ngTdlh','322078xcgiaB','23881550PRrInQ','8BBLkFU','ClientAk','10072811yGRxjQ','15UWvrYa','14745wiPVre','4905090iuyEvi','1304eAclJa'];a54_0x3cd2=function(){return _0x37992a;};return a54_0x3cd2();}
|