@lovrabet/lovrabet-cli 2.1.18-beta.2 → 2.1.18-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.d.ts +7 -14
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a51_0x3998(_0x3e88b7,_0x2f5d25){_0x3e88b7=_0x3e88b7-0x185;const _0xf223f7=a51_0xf223();let _0x39986d=_0xf223f7[_0x3e88b7];return _0x39986d;}(function(_0x1f6122,_0x2f2bc5){const _0x8e4bd5=a51_0x3998,_0xb5d85d=_0x1f6122();while(!![]){try{const _0x147d42=-parseInt(_0x8e4bd5(0x18d))/0x1*(parseInt(_0x8e4bd5(0x18c))/0x2)+parseInt(_0x8e4bd5(0x187))/0x3+-parseInt(_0x8e4bd5(0x18b))/0x4+-parseInt(_0x8e4bd5(0x188))/0x5*(-parseInt(_0x8e4bd5(0x1ae))/0x6)+parseInt(_0x8e4bd5(0x1b9))/0x7*(-parseInt(_0x8e4bd5(0x1ad))/0x8)+parseInt(_0x8e4bd5(0x1bc))/0x9+-parseInt(_0x8e4bd5(0x1b3))/0xa*(-parseInt(_0x8e4bd5(0x190))/0xb);if(_0x147d42===_0x2f2bc5)break;else _0xb5d85d['push'](_0xb5d85d['shift']());}catch(_0x5b6158){_0xb5d85d['push'](_0xb5d85d['shift']());}}}(a51_0xf223,0x91cd3));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';function a51_0xf223(){const _0x342db2=['3790vHafNH','company','resolvedVersion','appcode','appCode','confirm-warnings','4905047UJZXeR','PRIVATE','existing','1090530lgcQCm','personal','\x20version\x20','valid','/api/cli/v1/skills/','934857bdkOSN','5PUbDPm','../../skills/runtime-skill-sync.js','../../core/api-client.js','2709436ySVZaw','1488rLVaHR','59GFCAkn','payload','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','40403DtpUhc','str','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','warnings','\x20has\x20scope=\x22','publishInput','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','submitted','bool','resolvedSlug','status','accessKey','POST','identical','trim','\x20Skill\x20','skillCode','confirmWarnings','(unknown)','scope','Updated\x20personal\x20Skill\x20','validation','dir','savedSkill','unknown','Personal','files','authRequired','NAMESPACE_ONLY','8sZcryk','1165938bMIwcw','version','Created\x20personal\x20Skill\x20','input','remoteForPreflight'];a51_0xf223=function(){return _0x342db2;};return a51_0xf223();}import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x5f3c33){const _0x45d190=a51_0x3998,{getRuntimeSkillByCode:_0x17bfbe,validateRuntimeSkillPublish:_0x257f32}=await import(_0x45d190(0x18a)),{readPushDirectory:_0x303f0d,resolvePushDirectoryIdentity:_0x23164f}=await import(_0x45d190(0x189));if(!_0x5f3c33[_0x45d190(0x19b)])throw CliErrors['authRequired']();const _0x1bcc4e=resolvePushScope(_0x5f3c33),_0x1bd45c=validateSkillDirectory(_0x5f3c33['str'](_0x45d190(0x1a6)));throwIfSkillValidationFailed(_0x1bd45c);const _0x3ea791=_0x23164f(_0x1bd45c[_0x45d190(0x1a6)],_0x5f3c33['appCode'],remoteFirstMetadataOptions()),_0x25959e=await _0x17bfbe(_0x5f3c33[_0x45d190(0x1b7)],_0x3ea791[_0x45d190(0x1a0)]);throwIfBuiltinPushTarget(_0x25959e);if(_0x1bcc4e===_0x45d190(0x1b4)){const _0xdaf8f7=_0x303f0d(_0x1bd45c[_0x45d190(0x1a6)],_0x5f3c33[_0x45d190(0x1b7)],remoteMissingCompanyReadOptions()),_0x5bfbcd=await _0x257f32(_0x5f3c33['appCode'],_0xdaf8f7[_0x45d190(0x1b1)],{'visibility':_0x45d190(0x1ac)});return{'method':'POST','url':_0x45d190(0x186)+_0x5f3c33[_0x45d190(0x1b7)]+'/publish/validate','body':{'skillCode':_0xdaf8f7[_0x45d190(0x1a0)],'visibility':_0x45d190(0x1ac),'valid':_0x5bfbcd[_0x45d190(0x185)],'errors':_0x5bfbcd['errors'],'warnings':_0x5bfbcd[_0x45d190(0x193)],'resolvedSlug':_0x5bfbcd[_0x45d190(0x199)],'resolvedVersion':_0x5bfbcd[_0x45d190(0x1b5)]},'description':_0x45d190(0x196)};}if(_0x25959e&&_0x25959e[_0x45d190(0x1a3)]!==_0x45d190(0x1bd))throw CliErrors[_0x45d190(0x1a5)](_0x45d190(0x192)+_0x3ea791['skillCode']+_0x45d190(0x194)+(_0x25959e[_0x45d190(0x1a3)]??_0x45d190(0x1a8))+'\x22.');const _0x565c76=_0x303f0d(_0x1bd45c[_0x45d190(0x1a6)],_0x5f3c33[_0x45d190(0x1b7)],_0x25959e?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions()),_0x563cf0=await _0x257f32(_0x5f3c33['appCode'],_0x565c76['input'],{'visibility':'PRIVATE'});return{'method':_0x45d190(0x19c),'url':_0x45d190(0x186)+_0x5f3c33[_0x45d190(0x1b7)]+'/publish/validate','body':{'skillCode':_0x565c76[_0x45d190(0x1a0)],'visibility':_0x45d190(0x1ba),'valid':_0x563cf0[_0x45d190(0x185)],'errors':_0x563cf0['errors'],'warnings':_0x563cf0['warnings'],'resolvedSlug':_0x563cf0[_0x45d190(0x199)],'resolvedVersion':_0x563cf0[_0x45d190(0x1b5)]},'description':_0x45d190(0x18f)};}export async function skillPushExecute(_0x5f1414){const _0x145f17=a51_0x3998,{createPersonalRuntimeSkill:_0x4b299e,downloadRuntimeSkillPackage:_0x2bfdf5,getRuntimeSkillByCode:_0x56129a,publishCompanyRuntimeSkill:_0x158d94,updatePersonalRuntimeSkill:_0x16e2c9,validateRuntimeSkillPublish:_0x5dd172}=await import(_0x145f17(0x18a)),{verifyRuntimeSkillPackage:_0x1095f1,verifyRuntimeSkillBundle:_0x1f117c,readPushDirectory:_0x267167,refreshPushDirectoryMetadataFromRemote:_0x277533,recordPushedRuntimeSkill:_0x2b596d,resolvePushDirectoryIdentity:_0x203d99}=await import(_0x145f17(0x189));if(!_0x5f1414[_0x145f17(0x19b)])throw CliErrors[_0x145f17(0x1ab)]();const _0x2fa04b=resolvePushScope(_0x5f1414),_0x55f4e8=_0x5f1414[_0x145f17(0x198)](_0x145f17(0x1b8))||_0x5f1414['bool'](_0x145f17(0x1a1)),_0x27d98d=validateSkillDirectory(_0x5f1414['str'](_0x145f17(0x1a6)));throwIfSkillValidationFailed(_0x27d98d);const _0x464f64=_0x27d98d[_0x145f17(0x1a6)];let _0x569beb;if(_0x2fa04b===_0x145f17(0x1b4)){const _0x24079b=_0x203d99(_0x464f64,_0x5f1414[_0x145f17(0x1b7)],remoteFirstMetadataOptions()),_0xefd262=await _0x56129a(_0x5f1414[_0x145f17(0x1b7)],_0x24079b['skillCode']);throwIfBuiltinPushTarget(_0xefd262);if(_0xefd262)_0x277533(_0x464f64,_0xefd262,_0x5f1414[_0x145f17(0x1b7)]);const _0x4fb54f=_0x267167(_0x464f64,_0x5f1414['appCode'],_0xefd262?{'targetScope':_0x145f17(0x1b4),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0x569beb={'scope':'company','payload':_0x4fb54f,'publishInput':_0x4fb54f[_0x145f17(0x1b1)],'remoteForPreflight':_0xefd262,'warnings':[]};}else{const _0x56e59d=_0x5f1414[_0x145f17(0x191)](_0x145f17(0x1b6))[_0x145f17(0x19e)](),_0x1be998=Boolean(_0x56e59d),_0x14c479=allowRetargetArgs(_0x1be998),_0x1d6c3b=_0x203d99(_0x464f64,_0x5f1414[_0x145f17(0x1b7)],{...remoteFirstMetadataOptions(),..._0x14c479[0x0]}),_0x3095e3=await _0x56129a(_0x5f1414[_0x145f17(0x1b7)],_0x1d6c3b['skillCode']);throwIfBuiltinPushTarget(_0x3095e3);if(_0x3095e3){if(_0x3095e3['scope']!==_0x145f17(0x1bd)){if(_0x1be998)throw CliErrors['validation'](_0x145f17(0x192)+_0x1d6c3b[_0x145f17(0x1a0)]+_0x145f17(0x194)+(_0x3095e3[_0x145f17(0x1a3)]??_0x145f17(0x1a8))+'\x22.');_0x277533(_0x464f64,_0x3095e3,_0x5f1414[_0x145f17(0x1b7)]);}else!_0x1be998&&_0x277533(_0x464f64,_0x3095e3,_0x5f1414[_0x145f17(0x1b7)]);}const _0x41f085=_0x267167(_0x464f64,_0x5f1414[_0x145f17(0x1b7)],_0x3095e3?remotePersonalReadOptions(_0x1be998,_0x14c479[0x0]):remoteMissingPersonalReadOptions(_0x14c479[0x0])),_0x481b0b=_0x3095e3?.[_0x145f17(0x1a3)]===_0x145f17(0x1bd)&&_0x3095e3[_0x145f17(0x1a0)]===_0x41f085[_0x145f17(0x1a0)]?_0x3095e3:undefined,_0x6165f3=_0x1be998&&_0x481b0b?withRetargetExistingMetadata(_0x41f085['input'],_0x481b0b,{'preferInputSkillName':Boolean(_0x41f085['frontmatterDisplayName'])}):_0x41f085[_0x145f17(0x1b1)],_0x54fffa=_0x1be998?buildRetargetWarning(_0x1d6c3b['metadata'],_0x5f1414[_0x145f17(0x1b7)]):[];_0x569beb={'scope':_0x145f17(0x1bd),'payload':_0x41f085,'publishInput':_0x6165f3,'remoteForPreflight':_0x481b0b,'existing':_0x481b0b,'warnings':[..._0x27d98d[_0x145f17(0x193)],..._0x54fffa]};}const _0x5e3175=await runRemoteContentPreflight({'scope':_0x569beb[_0x145f17(0x1a3)],'remote':_0x569beb[_0x145f17(0x1b2)],'publishInput':_0x569beb[_0x145f17(0x195)],'skillCode':_0x569beb[_0x145f17(0x18e)][_0x145f17(0x1a0)],'appCode':_0x5f1414['appCode'],'downloadRuntimeSkillPackage':_0x2bfdf5,'verifyRuntimeSkillBundle':_0x1f117c});if(_0x5e3175[_0x145f17(0x19a)]===_0x145f17(0x19d))return _0x569beb['scope']===_0x145f17(0x1b4)?_0x2b596d(_0x464f64,_0x5e3175[_0x145f17(0x1a7)],_0x5f1414['appCode'],{'scope':'company'}):_0x2b596d(_0x464f64,_0x5e3175[_0x145f17(0x1a7)],_0x5f1414['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x5e3175['savedSkill']),'scope':_0x569beb['scope'],..._0x569beb[_0x145f17(0x1a3)]==='personal'?{'warnings':_0x569beb[_0x145f17(0x193)]}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0x569beb[_0x145f17(0x1a3)])+_0x145f17(0x19f)+_0x569beb[_0x145f17(0x18e)][_0x145f17(0x1a0)]+'\x20is\x20already\x20published\x20and\x20content\x20is\x20identical'};if(_0x569beb['scope']==='company'){const _0x5adda6=await _0x5dd172(_0x5f1414[_0x145f17(0x1b7)],_0x569beb['publishInput'],{'visibility':_0x145f17(0x1ac)});throwIfPublishValidationFailed(_0x145f17(0x1b4),_0x569beb[_0x145f17(0x18e)][_0x145f17(0x1a0)],_0x5adda6),throwIfUnconfirmedPublishWarnings('company',_0x569beb['payload'][_0x145f17(0x1a0)],_0x5adda6[_0x145f17(0x193)],_0x55f4e8);const _0x110017=await _0x158d94(_0x5f1414[_0x145f17(0x1b7)],_0x569beb[_0x145f17(0x195)],{'confirmWarnings':_0x55f4e8});return _0x2b596d(_0x464f64,{..._0x110017,'files':_0x569beb[_0x145f17(0x195)][_0x145f17(0x1aa)]},_0x5f1414[_0x145f17(0x1b7)],{'scope':'company'}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x110017),'scope':_0x145f17(0x1b4),'reviewState':_0x145f17(0x197),'submittedForReview':!![],'validation':{'warnings':_0x5adda6[_0x145f17(0x193)]}},'message':'Submitted\x20company\x20Skill\x20'+_0x569beb[_0x145f17(0x18e)][_0x145f17(0x1a0)]+_0x145f17(0x1be)+(_0x110017[_0x145f17(0x1af)]??_0x145f17(0x1a2))+'\x20for\x20review'};}const _0x157ead=await _0x5dd172(_0x5f1414[_0x145f17(0x1b7)],_0x569beb[_0x145f17(0x195)],{'visibility':_0x145f17(0x1ba)});throwIfPublishValidationFailed(_0x145f17(0x1bd),_0x569beb[_0x145f17(0x18e)][_0x145f17(0x1a0)],_0x157ead),throwIfUnconfirmedPublishWarnings(_0x145f17(0x1bd),_0x569beb[_0x145f17(0x18e)]['skillCode'],_0x157ead[_0x145f17(0x193)],_0x55f4e8);const _0x50d71c={'confirmWarnings':_0x55f4e8},_0x2c1bc2=_0x569beb[_0x145f17(0x1bb)]?await _0x16e2c9(_0x569beb['payload'][_0x145f17(0x1a0)],_0x5f1414[_0x145f17(0x1b7)],_0x569beb[_0x145f17(0x195)],_0x50d71c):await _0x4b299e(_0x5f1414[_0x145f17(0x1b7)],_0x569beb[_0x145f17(0x195)],_0x50d71c);let _0x35a92b=_0x2c1bc2;if(isMultiFileManifest(_0x569beb[_0x145f17(0x195)][_0x145f17(0x1aa)])){const _0x38822a=await _0x2bfdf5(_0x145f17(0x1bd),_0x2c1bc2[_0x145f17(0x1a0)]||_0x569beb[_0x145f17(0x18e)][_0x145f17(0x1a0)],_0x5f1414[_0x145f17(0x1b7)]);_0x1f117c(_0x569beb[_0x145f17(0x195)][_0x145f17(0x1aa)],_0x38822a),_0x35a92b={..._0x2c1bc2,'files':_0x569beb[_0x145f17(0x195)][_0x145f17(0x1aa)]};}else{if(isPackageBackedManifest(_0x2c1bc2[_0x145f17(0x1aa)])){const _0x3f8d45=await _0x2bfdf5('personal',_0x2c1bc2[_0x145f17(0x1a0)]||_0x569beb[_0x145f17(0x18e)][_0x145f17(0x1a0)],_0x5f1414[_0x145f17(0x1b7)]);_0x1095f1(_0x2c1bc2['files'],_0x3f8d45);}}return _0x2b596d(_0x464f64,_0x35a92b,_0x5f1414[_0x145f17(0x1b7)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x2c1bc2),'warnings':_0x569beb['warnings'],'validation':{'warnings':_0x157ead[_0x145f17(0x193)]}},'message':_0x569beb[_0x145f17(0x1bb)]?_0x145f17(0x1a4)+_0x569beb[_0x145f17(0x18e)][_0x145f17(0x1a0)]:_0x145f17(0x1b0)+_0x569beb[_0x145f17(0x18e)][_0x145f17(0x1a0)]};}function scopeLabel(_0x2fb3fd){const _0x4938ea=a51_0x3998;return _0x2fb3fd===_0x4938ea(0x1b4)?'Company':_0x4938ea(0x1a9);}
|
|
1
|
+
(function(_0xcbef4e,_0x5d8e90){const _0x3898cb=a51_0x539a,_0x2d8c64=_0xcbef4e();while(!![]){try{const _0x41bfb9=-parseInt(_0x3898cb(0x11e))/0x1+-parseInt(_0x3898cb(0x132))/0x2+parseInt(_0x3898cb(0x121))/0x3*(parseInt(_0x3898cb(0x112))/0x4)+-parseInt(_0x3898cb(0x12a))/0x5*(parseInt(_0x3898cb(0x139))/0x6)+-parseInt(_0x3898cb(0x127))/0x7*(-parseInt(_0x3898cb(0x118))/0x8)+parseInt(_0x3898cb(0x10a))/0x9*(-parseInt(_0x3898cb(0x125))/0xa)+parseInt(_0x3898cb(0x113))/0xb;if(_0x41bfb9===_0x5d8e90)break;else _0x2d8c64['push'](_0x2d8c64['shift']());}catch(_0x4030f8){_0x2d8c64['push'](_0x2d8c64['shift']());}}}(a51_0x4b85,0x1bb7e));import{CliErrors}from'../../errors.js';function a51_0x4b85(){const _0x1b2aa1=['Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','confirm-warnings','valid','personal','bool','\x20has\x20scope=\x22','dir','9tXWoJC','authRequired','savedSkill','resolvedSlug','unknown','Submitted\x20company\x20Skill\x20','errors','appCode','284dJdTZz','2834172lAwxNJ','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','\x20version\x20','/publish/validate','/api/cli/v1/skills/','8BtHszO','remoteForPreflight','input','submitted','warnings','publishInput','61552rTRfxd','Created\x20personal\x20Skill\x20','Personal','5916VarpYH','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','trim','../../core/api-client.js','1147910jewFyX','metadata','536641YPUBib','scope','company','5Ffraqh','payload','str','NAMESPACE_ONLY','skillCode','files','\x20Skill\x20','existing','320350yqFtcT','accessKey','version','appcode','../../skills/runtime-skill-sync.js','identical','validation','145650fPFiku','PRIVATE'];a51_0x4b85=function(){return _0x1b2aa1;};return a51_0x4b85();}import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0xecfdf5){const _0x3453ae=a51_0x539a,{getRuntimeSkillByCode:_0x2fe170,validateRuntimeSkillPublish:_0x3d93cf}=await import(_0x3453ae(0x124)),{readPushDirectory:_0x195380,resolvePushDirectoryIdentity:_0x33c883}=await import(_0x3453ae(0x136));if(!_0xecfdf5[_0x3453ae(0x133)])throw CliErrors[_0x3453ae(0x10b)]();const _0x54e7a7=resolvePushScope(_0xecfdf5),_0x4ae330=validateSkillDirectory(_0xecfdf5[_0x3453ae(0x12c)](_0x3453ae(0x109)));throwIfSkillValidationFailed(_0x4ae330);const _0x3985a2=_0x33c883(_0x4ae330['dir'],_0xecfdf5['appCode'],remoteFirstMetadataOptions()),_0x7e4593=await _0x2fe170(_0xecfdf5[_0x3453ae(0x111)],_0x3985a2['skillCode']);throwIfBuiltinPushTarget(_0x7e4593);if(_0x54e7a7===_0x3453ae(0x129)){const _0x19ca9=_0x195380(_0x4ae330[_0x3453ae(0x109)],_0xecfdf5[_0x3453ae(0x111)],remoteMissingCompanyReadOptions()),_0x2993a2=await _0x3d93cf(_0xecfdf5[_0x3453ae(0x111)],_0x19ca9[_0x3453ae(0x11a)],{'visibility':_0x3453ae(0x12d)});return{'method':'POST','url':_0x3453ae(0x117)+_0xecfdf5[_0x3453ae(0x111)]+_0x3453ae(0x116),'body':{'skillCode':_0x19ca9['skillCode'],'visibility':_0x3453ae(0x12d),'valid':_0x2993a2[_0x3453ae(0x105)],'errors':_0x2993a2[_0x3453ae(0x110)],'warnings':_0x2993a2[_0x3453ae(0x11c)],'resolvedSlug':_0x2993a2[_0x3453ae(0x10d)],'resolvedVersion':_0x2993a2['resolvedVersion']},'description':_0x3453ae(0x114)};}if(_0x7e4593&&_0x7e4593[_0x3453ae(0x128)]!==_0x3453ae(0x106))throw CliErrors[_0x3453ae(0x138)](_0x3453ae(0x122)+_0x3985a2[_0x3453ae(0x12e)]+_0x3453ae(0x108)+(_0x7e4593[_0x3453ae(0x128)]??'unknown')+'\x22.');const _0x1010f7=_0x195380(_0x4ae330[_0x3453ae(0x109)],_0xecfdf5[_0x3453ae(0x111)],_0x7e4593?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions()),_0x5ba92d=await _0x3d93cf(_0xecfdf5[_0x3453ae(0x111)],_0x1010f7['input'],{'visibility':_0x3453ae(0x13a)});return{'method':'POST','url':_0x3453ae(0x117)+_0xecfdf5[_0x3453ae(0x111)]+_0x3453ae(0x116),'body':{'skillCode':_0x1010f7[_0x3453ae(0x12e)],'visibility':_0x3453ae(0x13a),'valid':_0x5ba92d[_0x3453ae(0x105)],'errors':_0x5ba92d[_0x3453ae(0x110)],'warnings':_0x5ba92d[_0x3453ae(0x11c)],'resolvedSlug':_0x5ba92d[_0x3453ae(0x10d)],'resolvedVersion':_0x5ba92d['resolvedVersion']},'description':_0x3453ae(0x103)};}export async function skillPushExecute(_0x5d903f){const _0x2e981f=a51_0x539a,{createPersonalRuntimeSkill:_0x54bab1,downloadRuntimeSkillPackage:_0x32d7e2,getRuntimeSkillByCode:_0x420e76,publishCompanyRuntimeSkill:_0x3948df,updatePersonalRuntimeSkill:_0x58b888,validateRuntimeSkillPublish:_0x5a3624}=await import(_0x2e981f(0x124)),{verifyRuntimeSkillPackage:_0x2351c4,verifyRuntimeSkillBundle:_0x1a1510,readPushDirectory:_0xfac7a9,refreshPushDirectoryMetadataFromRemote:_0xa259d1,recordPushedRuntimeSkill:_0x245e48,resolvePushDirectoryIdentity:_0x387c8a}=await import(_0x2e981f(0x136));if(!_0x5d903f[_0x2e981f(0x133)])throw CliErrors[_0x2e981f(0x10b)]();const _0x2de582=resolvePushScope(_0x5d903f),_0x2c587d=_0x5d903f[_0x2e981f(0x107)](_0x2e981f(0x104))||_0x5d903f['bool']('confirmWarnings'),_0x3a94ef=validateSkillDirectory(_0x5d903f[_0x2e981f(0x12c)](_0x2e981f(0x109)));throwIfSkillValidationFailed(_0x3a94ef);const _0xbaeca2=_0x3a94ef[_0x2e981f(0x109)];let _0x30ae16;if(_0x2de582===_0x2e981f(0x129)){const _0x1a2a8d=_0x387c8a(_0xbaeca2,_0x5d903f[_0x2e981f(0x111)],remoteFirstMetadataOptions()),_0x28c399=await _0x420e76(_0x5d903f[_0x2e981f(0x111)],_0x1a2a8d['skillCode']);throwIfBuiltinPushTarget(_0x28c399);if(_0x28c399)_0xa259d1(_0xbaeca2,_0x28c399,_0x5d903f['appCode']);const _0x2d6723=_0xfac7a9(_0xbaeca2,_0x5d903f[_0x2e981f(0x111)],_0x28c399?{'targetScope':'company','ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0x30ae16={'scope':_0x2e981f(0x129),'payload':_0x2d6723,'publishInput':_0x2d6723[_0x2e981f(0x11a)],'remoteForPreflight':_0x28c399,'warnings':[]};}else{const _0x296b2f=_0x5d903f[_0x2e981f(0x12c)](_0x2e981f(0x135))[_0x2e981f(0x123)](),_0x7f3590=Boolean(_0x296b2f),_0x4a3ae=allowRetargetArgs(_0x7f3590),_0x1c90c6=_0x387c8a(_0xbaeca2,_0x5d903f[_0x2e981f(0x111)],{...remoteFirstMetadataOptions(),..._0x4a3ae[0x0]}),_0x2cb153=await _0x420e76(_0x5d903f[_0x2e981f(0x111)],_0x1c90c6['skillCode']);throwIfBuiltinPushTarget(_0x2cb153);if(_0x2cb153){if(_0x2cb153[_0x2e981f(0x128)]!==_0x2e981f(0x106)){if(_0x7f3590)throw CliErrors[_0x2e981f(0x138)](_0x2e981f(0x122)+_0x1c90c6[_0x2e981f(0x12e)]+_0x2e981f(0x108)+(_0x2cb153['scope']??_0x2e981f(0x10e))+'\x22.');_0xa259d1(_0xbaeca2,_0x2cb153,_0x5d903f[_0x2e981f(0x111)]);}else!_0x7f3590&&_0xa259d1(_0xbaeca2,_0x2cb153,_0x5d903f[_0x2e981f(0x111)]);}const _0x43b16e=_0xfac7a9(_0xbaeca2,_0x5d903f['appCode'],_0x2cb153?remotePersonalReadOptions(_0x7f3590,_0x4a3ae[0x0]):remoteMissingPersonalReadOptions(_0x4a3ae[0x0])),_0x4dd4f0=_0x2cb153?.[_0x2e981f(0x128)]==='personal'&&_0x2cb153[_0x2e981f(0x12e)]===_0x43b16e[_0x2e981f(0x12e)]?_0x2cb153:undefined,_0x3e2fb6=_0x7f3590&&_0x4dd4f0?withRetargetExistingMetadata(_0x43b16e[_0x2e981f(0x11a)],_0x4dd4f0,{'preferInputSkillName':Boolean(_0x43b16e['frontmatterDisplayName'])}):_0x43b16e['input'],_0x1ed377=_0x7f3590?buildRetargetWarning(_0x1c90c6[_0x2e981f(0x126)],_0x5d903f[_0x2e981f(0x111)]):[];_0x30ae16={'scope':'personal','payload':_0x43b16e,'publishInput':_0x3e2fb6,'remoteForPreflight':_0x4dd4f0,'existing':_0x4dd4f0,'warnings':[..._0x3a94ef[_0x2e981f(0x11c)],..._0x1ed377]};}const _0x2b6ca4=await runRemoteContentPreflight({'scope':_0x30ae16[_0x2e981f(0x128)],'remote':_0x30ae16[_0x2e981f(0x119)],'publishInput':_0x30ae16[_0x2e981f(0x11d)],'skillCode':_0x30ae16[_0x2e981f(0x12b)]['skillCode'],'appCode':_0x5d903f[_0x2e981f(0x111)],'downloadRuntimeSkillPackage':_0x32d7e2,'verifyRuntimeSkillBundle':_0x1a1510});if(_0x2b6ca4['status']===_0x2e981f(0x137))return _0x30ae16[_0x2e981f(0x128)]===_0x2e981f(0x129)?_0x245e48(_0xbaeca2,_0x2b6ca4['savedSkill'],_0x5d903f[_0x2e981f(0x111)],{'scope':'company'}):_0x245e48(_0xbaeca2,_0x2b6ca4[_0x2e981f(0x10c)],_0x5d903f[_0x2e981f(0x111)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x2b6ca4[_0x2e981f(0x10c)]),'scope':_0x30ae16[_0x2e981f(0x128)],..._0x30ae16['scope']===_0x2e981f(0x106)?{'warnings':_0x30ae16[_0x2e981f(0x11c)]}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0x30ae16['scope'])+_0x2e981f(0x130)+_0x30ae16[_0x2e981f(0x12b)][_0x2e981f(0x12e)]+'\x20is\x20already\x20published\x20and\x20content\x20is\x20identical'};if(_0x30ae16[_0x2e981f(0x128)]==='company'){const _0x402f4b=await _0x5a3624(_0x5d903f[_0x2e981f(0x111)],_0x30ae16[_0x2e981f(0x11d)],{'visibility':'NAMESPACE_ONLY'});throwIfPublishValidationFailed(_0x2e981f(0x129),_0x30ae16[_0x2e981f(0x12b)]['skillCode'],_0x402f4b),throwIfUnconfirmedPublishWarnings(_0x2e981f(0x129),_0x30ae16[_0x2e981f(0x12b)][_0x2e981f(0x12e)],_0x402f4b[_0x2e981f(0x11c)],_0x2c587d);const _0x279e92=await _0x3948df(_0x5d903f['appCode'],_0x30ae16[_0x2e981f(0x11d)],{'confirmWarnings':_0x2c587d});return _0x245e48(_0xbaeca2,{..._0x279e92,'files':_0x30ae16[_0x2e981f(0x11d)]['files']},_0x5d903f[_0x2e981f(0x111)],{'scope':_0x2e981f(0x129)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x279e92),'scope':_0x2e981f(0x129),'reviewState':_0x2e981f(0x11b),'submittedForReview':!![],'validation':{'warnings':_0x402f4b[_0x2e981f(0x11c)]}},'message':_0x2e981f(0x10f)+_0x30ae16[_0x2e981f(0x12b)][_0x2e981f(0x12e)]+_0x2e981f(0x115)+(_0x279e92[_0x2e981f(0x134)]??'(unknown)')+'\x20for\x20review'};}const _0x356a95=await _0x5a3624(_0x5d903f[_0x2e981f(0x111)],_0x30ae16[_0x2e981f(0x11d)],{'visibility':_0x2e981f(0x13a)});throwIfPublishValidationFailed('personal',_0x30ae16['payload'][_0x2e981f(0x12e)],_0x356a95),throwIfUnconfirmedPublishWarnings(_0x2e981f(0x106),_0x30ae16[_0x2e981f(0x12b)][_0x2e981f(0x12e)],_0x356a95[_0x2e981f(0x11c)],_0x2c587d);const _0x5ef4f5={'confirmWarnings':_0x2c587d},_0x20e8fb=_0x30ae16['existing']?await _0x58b888(_0x30ae16[_0x2e981f(0x12b)][_0x2e981f(0x12e)],_0x5d903f[_0x2e981f(0x111)],_0x30ae16['publishInput'],_0x5ef4f5):await _0x54bab1(_0x5d903f[_0x2e981f(0x111)],_0x30ae16[_0x2e981f(0x11d)],_0x5ef4f5);let _0x2c07ea=_0x20e8fb;if(isMultiFileManifest(_0x30ae16[_0x2e981f(0x11d)]['files'])){const _0x5863bf=await _0x32d7e2('personal',_0x20e8fb[_0x2e981f(0x12e)]||_0x30ae16[_0x2e981f(0x12b)][_0x2e981f(0x12e)],_0x5d903f['appCode']);_0x1a1510(_0x30ae16['publishInput'][_0x2e981f(0x12f)],_0x5863bf),_0x2c07ea={..._0x20e8fb,'files':_0x30ae16[_0x2e981f(0x11d)][_0x2e981f(0x12f)]};}else{if(isPackageBackedManifest(_0x20e8fb[_0x2e981f(0x12f)])){const _0x5beb11=await _0x32d7e2('personal',_0x20e8fb['skillCode']||_0x30ae16[_0x2e981f(0x12b)][_0x2e981f(0x12e)],_0x5d903f['appCode']);_0x2351c4(_0x20e8fb[_0x2e981f(0x12f)],_0x5beb11);}}return _0x245e48(_0xbaeca2,_0x2c07ea,_0x5d903f[_0x2e981f(0x111)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x20e8fb),'warnings':_0x30ae16['warnings'],'validation':{'warnings':_0x356a95['warnings']}},'message':_0x30ae16[_0x2e981f(0x131)]?'Updated\x20personal\x20Skill\x20'+_0x30ae16[_0x2e981f(0x12b)][_0x2e981f(0x12e)]:_0x2e981f(0x11f)+_0x30ae16[_0x2e981f(0x12b)][_0x2e981f(0x12e)]};}function a51_0x539a(_0x24bd43,_0x5e0d0d){_0x24bd43=_0x24bd43-0x103;const _0x4b8508=a51_0x4b85();let _0x539a5f=_0x4b8508[_0x24bd43];return _0x539a5f;}function scopeLabel(_0x58cbde){const _0x5bd447=a51_0x539a;return _0x58cbde===_0x5bd447(0x129)?'Company':_0x5bd447(0x120);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5bf5cf,_0x10118a){const _0x3cf489=a52_0x3757,_0x45bef8=_0x5bf5cf();while(!![]){try{const _0x5af829=parseInt(_0x3cf489(0x135))/0x1*(-parseInt(_0x3cf489(0x15b))/0x2)+-parseInt(_0x3cf489(0x15a))/0x3+-parseInt(_0x3cf489(0x13f))/0x4*(-parseInt(_0x3cf489(0x153))/0x5)+parseInt(_0x3cf489(0x156))/0x6+-parseInt(_0x3cf489(0x149))/0x7*(-parseInt(_0x3cf489(0x141))/0x8)+parseInt(_0x3cf489(0x13e))/0x9*(-parseInt(_0x3cf489(0x148))/0xa)+parseInt(_0x3cf489(0x137))/0xb*(-parseInt(_0x3cf489(0x146))/0xc);if(_0x5af829===_0x10118a)break;else _0x45bef8['push'](_0x45bef8['shift']());}catch(_0x25041e){_0x45bef8['push'](_0x45bef8['shift']());}}}(a52_0x3ff2,0xe436e));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x58d7a0){const _0x286293=a52_0x3757,_0x551064=_0x58d7a0[_0x286293(0x138)](_0x286293(0x14e))||_0x286293(0x136);if(_0x551064===_0x286293(0x136)||_0x551064===_0x286293(0x145))return _0x551064;throw CliErrors[_0x286293(0x147)](_0x286293(0x144)+_0x551064+'\x22.');}function a52_0x3ff2(){const _0x179996=['4293825dlttnw','579462dLRknn','builtin','remote','warning','SkillHub\x20validation\x20returned\x20invalid.','warnings','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','version','Local\x20Skill\x20metadata\x20appCode\x20','different','lovrabet.skill.json','length','\x20cannot\x20be\x20pushed.','\x20after\x20successful\x20push.','join','1INevIg','personal','84304PDMJLw','str','Builtin\x20Skill\x20','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','Company','(unknown)','identical','177462qhqaND','58108fslTTs','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','10723984dfpJwV','\x20Skill\x20push\x20validation\x20failed\x20for\x20','skillCode','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','company','1920lAeXCf','validation','460IcEcGj','7EFKhzD','Review\x20each\x20warning\x20before\x20continuing.','content','valid','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','scope','not-applicable','files','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','appCode','635rWIveP','errors','Warnings:\x20','9621678KGGKZi','Personal','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','publishInput'];a52_0x3ff2=function(){return _0x179996;};return a52_0x3ff2();}export function allowRetargetArgs(_0x1f1513){return _0x1f1513?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){return{'targetScope':'company',...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x515186={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x515186};}function a52_0x3757(_0x2e0103,_0x50b6b0){_0x2e0103=_0x2e0103-0x12d;const _0x3ff2f3=a52_0x3ff2();let _0x37577c=_0x3ff2f3[_0x2e0103];return _0x37577c;}export function remotePersonalReadOptions(_0x443b76,_0x38052d={}){return{'ignoreInvalidMetadata':!![],..._0x443b76?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x38052d};}export function throwIfBuiltinPushTarget(_0x5802bb){const _0x396711=a52_0x3757;if(_0x5802bb?.['scope']!==_0x396711(0x15c))return;throw CliErrors[_0x396711(0x147)](_0x396711(0x139)+(_0x5802bb[_0x396711(0x143)]??_0x396711(0x13c))+_0x396711(0x132),_0x396711(0x13a));}export function throwIfPublishValidationFailed(_0x2ede43,_0x5dc4ad,_0x4b2305){const _0x2ca34f=a52_0x3757;if(_0x4b2305[_0x2ca34f(0x154)][_0x2ca34f(0x131)]===0x0&&(_0x4b2305[_0x2ca34f(0x14c)]||_0x4b2305[_0x2ca34f(0x160)][_0x2ca34f(0x131)]>0x0))return;const _0xfaf88d=_0x4b2305[_0x2ca34f(0x154)][_0x2ca34f(0x131)]>0x0?_0x4b2305['errors'][_0x2ca34f(0x134)](';\x20'):_0x2ca34f(0x15f),_0x190694=_0x2ede43===_0x2ca34f(0x145)?_0x2ca34f(0x13b):_0x2ca34f(0x157);throw CliErrors[_0x2ca34f(0x147)](_0x190694+_0x2ca34f(0x142)+_0x5dc4ad+'.',_0xfaf88d);}export function throwIfUnconfirmedPublishWarnings(_0x2895f8,_0x258934,_0x588fcd,_0x11eec0){const _0x2ec6b0=a52_0x3757;if(_0x588fcd[_0x2ec6b0(0x131)]===0x0||_0x11eec0)return;const _0x4ad85d=_0x2895f8===_0x2ec6b0(0x145)?'Company':_0x2ec6b0(0x157);throw CliErrors[_0x2ec6b0(0x147)](_0x4ad85d+_0x2ec6b0(0x158)+_0x258934+'.',[_0x2ec6b0(0x14a),_0x2ec6b0(0x140),_0x2ec6b0(0x161),_0x2ec6b0(0x155)+_0x588fcd[_0x2ec6b0(0x134)](';\x20')]['join']('\x20'));}export function buildRetargetWarning(_0x3a9cb6,_0x1e453e){const _0x1471eb=a52_0x3757;if(!_0x3a9cb6?.[_0x1471eb(0x152)]||_0x3a9cb6[_0x1471eb(0x152)]===_0x1e453e)return[];return[{'level':_0x1471eb(0x15e),'ruleId':'skill-metadata-appcode-retargeted','file':_0x1471eb(0x130),'message':_0x1471eb(0x12e)+_0x3a9cb6['appCode']+_0x1471eb(0x14d)+_0x1e453e+_0x1471eb(0x133),'suggestion':_0x1471eb(0x151)}];}export async function runRemoteContentPreflight(_0x2b5bf2){const _0x563bad=a52_0x3757;if(!_0x2b5bf2['remote']||_0x2b5bf2[_0x563bad(0x15d)][_0x563bad(0x14e)]!==_0x2b5bf2[_0x563bad(0x14e)]||!_0x2b5bf2[_0x563bad(0x159)][_0x563bad(0x150)])return{'status':'not-applicable'};const _0x4cde57=_0x2b5bf2['remote'][_0x563bad(0x143)]||_0x2b5bf2[_0x563bad(0x143)];if(!_0x4cde57)return{'status':_0x563bad(0x14f)};const _0x2cd251=await _0x2b5bf2['downloadRuntimeSkillPackage'](_0x2b5bf2['scope'],_0x4cde57,_0x2b5bf2['appCode'],_0x2b5bf2['remote'][_0x563bad(0x12d)]);try{_0x2b5bf2['verifyRuntimeSkillBundle'](_0x2b5bf2[_0x563bad(0x159)][_0x563bad(0x150)],_0x2cd251);}catch{return{'status':_0x563bad(0x12f)};}return{'status':_0x563bad(0x13d),'savedSkill':{..._0x2b5bf2['remote'],'content':_0x2b5bf2[_0x563bad(0x159)][_0x563bad(0x14b)],'files':_0x2b5bf2['publishInput']['files']}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x57df44,_0x4f6252){const _0x44c83b=a53_0x3b6e,_0xb7b1f4=_0x57df44();while(!![]){try{const _0x4ed1e0=-parseInt(_0x44c83b(0x72))/0x1*(parseInt(_0x44c83b(0x77))/0x2)+-parseInt(_0x44c83b(0x7c))/0x3+parseInt(_0x44c83b(0x7f))/0x4+parseInt(_0x44c83b(0x79))/0x5+-parseInt(_0x44c83b(0x74))/0x6+parseInt(_0x44c83b(0x80))/0x7+-parseInt(_0x44c83b(0x81))/0x8;if(_0x4ed1e0===_0x4f6252)break;else _0xb7b1f4['push'](_0xb7b1f4['shift']());}catch(_0x5e0186){_0xb7b1f4['push'](_0xb7b1f4['shift']());}}}(a53_0x2cfe,0x346b3));export function withRetargetExistingMetadata(_0x4f428f,_0xdc3597,_0x1861b8={}){const _0x27fea5=a53_0x3b6e,_0xa72e5a=_0x1861b8[_0x27fea5(0x7d)]?_0x4f428f[_0x27fea5(0x75)]??_0xdc3597['skillName']:_0xdc3597[_0x27fea5(0x75)]??_0x4f428f['skillName'];return{..._0x4f428f,'skillName':_0xa72e5a,'description':_0xdc3597[_0x27fea5(0x71)]??_0x4f428f[_0x27fea5(0x71)],'tags':Array[_0x27fea5(0x6f)](_0xdc3597[_0x27fea5(0x73)])?_0xdc3597[_0x27fea5(0x73)]:_0x4f428f[_0x27fea5(0x73)],'version':_0xdc3597[_0x27fea5(0x7a)]??_0x4f428f[_0x27fea5(0x7a)],'sourceSessionId':_0xdc3597[_0x27fea5(0x7b)]??_0x4f428f[_0x27fea5(0x7b)]};}function a53_0x3b6e(_0xb09b12,_0x25d7d4){_0xb09b12=_0xb09b12-0x6f;const _0x2cfe25=a53_0x2cfe();let _0x3b6ed3=_0x2cfe25[_0xb09b12];return _0x3b6ed3;}export function buildRetargetWarning(_0x8f7ee5,_0x31e8b7){const _0x361ab8=a53_0x3b6e;if(!_0x8f7ee5?.['appCode']||_0x8f7ee5[_0x361ab8(0x76)]===_0x31e8b7)return[];return[{'level':_0x361ab8(0x70),'ruleId':'skill-metadata-appcode-retargeted','file':_0x361ab8(0x78),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x8f7ee5[_0x361ab8(0x76)]+_0x361ab8(0x7e)+_0x31e8b7+'\x20after\x20successful\x20push.','suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}function a53_0x2cfe(){const _0x5848e3=['description','24TlLWbR','tags','104190tRNBPN','skillName','appCode','4562IhROUU','lovrabet.skill.json','2071280eTlwgO','version','sourceSessionId','39819tBgxNz','preferInputSkillName','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','1360484xLMiPp','1789634oayCyA','5679600OxbRUB','isArray','warning'];a53_0x2cfe=function(){return _0x5848e3;};return a53_0x2cfe();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x17623e,_0x4d35cb){const _0x1c66b5=a54_0x5c26,_0x4fa814=_0x17623e();while(!![]){try{const _0x5e5aab=parseInt(_0x1c66b5(0x1f1))/0x1+parseInt(_0x1c66b5(0x1f0))/0x2*(-parseInt(_0x1c66b5(0x1f3))/0x3)+-parseInt(_0x1c66b5(0x1fa))/0x4+-parseInt(_0x1c66b5(0x1ec))/0x5*(-parseInt(_0x1c66b5(0x1f9))/0x6)+-parseInt(_0x1c66b5(0x1f8))/0x7*(-parseInt(_0x1c66b5(0x1fb))/0x8)+-parseInt(_0x1c66b5(0x1f4))/0x9*(parseInt(_0x1c66b5(0x1f2))/0xa)+-parseInt(_0x1c66b5(0x1ed))/0xb*(-parseInt(_0x1c66b5(0x1eb))/0xc);if(_0x5e5aab===_0x4d35cb)break;else _0x4fa814['push'](_0x4fa814['shift']());}catch(_0x447c36){_0x4fa814['push'](_0x4fa814['shift']());}}}(a54_0x111c,0xb77c7));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x24c07a){const _0x1acb04=a54_0x5c26,_0x4b8439=_0x24c07a[_0x1acb04(0x1ea)]();if(!_0x4b8439||_0x4b8439===_0x1acb04(0x1ee))return[_0x1acb04(0x1ef),'company'];if(_0x4b8439===_0x1acb04(0x1ef)||_0x4b8439===_0x1acb04(0x1f5))return[_0x4b8439];throw CliErrors[_0x1acb04(0x1f7)](_0x1acb04(0x1f6)+_0x24c07a);}export function normalizeListScope(_0x3a521e){const _0x2a6042=a54_0x5c26,_0x1e1ca7=_0x3a521e[_0x2a6042(0x1ea)]();if(!_0x1e1ca7)return _0x2a6042(0x1ee);if(_0x1e1ca7===_0x2a6042(0x1ef)||_0x1e1ca7===_0x2a6042(0x1f5)||_0x1e1ca7==='all')return _0x1e1ca7;throw CliErrors[_0x2a6042(0x1f7)]('Unsupported\x20Skill\x20list\x20scope:\x20'+_0x3a521e);}function a54_0x5c26(_0x301900,_0x41833f){_0x301900=_0x301900-0x1ea;const _0x111c43=a54_0x111c();let _0x5c26d9=_0x111c43[_0x301900];return _0x5c26d9;}export function shouldListScope(_0x2ed46d,_0x24f7d3){const _0x1f468d=a54_0x5c26;if(_0x2ed46d===_0x1f468d(0x1ee))return!![];return _0x2ed46d===_0x24f7d3;}function a54_0x111c(){const _0x234d20=['103192iGcLze','1475688ARbAyX','trim','1884GSrpEf','5IGEIJJ','28864YJRdZq','all','personal','196BCfzVo','1216420VyTnjR','59350Qqonmx','39456vdFCwq','531qKDZdE','company','Unsupported\x20Skill\x20sync\x20scope:\x20','validation','21Acqarw','1407882cZGNSw'];a54_0x111c=function(){return _0x234d20;};return a54_0x111c();}export function listScopeToRuntimeScopes(_0x5e355b){const _0x9a1a36=a54_0x5c26;if(_0x5e355b==='all')return[_0x9a1a36(0x1ef),_0x9a1a36(0x1f5)];return[_0x5e355b==='company'?_0x9a1a36(0x1f5):_0x5e355b];}export function listScopeToRemoteScope(_0x35be88){return _0x35be88;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a55_0x5d55(_0x94be12,_0x2c4a0f){_0x94be12=_0x94be12-0x112;var _0x4e915c=a55_0x4e91();var _0x5d5593=_0x4e915c[_0x94be12];return _0x5d5593;}(function(_0x17692f,_0x103112){var _0x446f66=a55_0x5d55,_0x24241e=_0x17692f();while(!![]){try{var _0x1a5f67=-parseInt(_0x446f66(0x113))/0x1*(-parseInt(_0x446f66(0x123))/0x2)+-parseInt(_0x446f66(0x11c))/0x3+parseInt(_0x446f66(0x117))/0x4*(parseInt(_0x446f66(0x11f))/0x5)+-parseInt(_0x446f66(0x112))/0x6*(parseInt(_0x446f66(0x128))/0x7)+-parseInt(_0x446f66(0x11b))/0x8+-parseInt(_0x446f66(0x126))/0x9+parseInt(_0x446f66(0x11a))/0xa;if(_0x1a5f67===_0x103112)break;else _0x24241e['push'](_0x24241e['shift']());}catch(_0x3fc10e){_0x24241e['push'](_0x24241e['shift']());}}}(a55_0x4e91,0x50ba4));function a55_0x4e91(){var _0x23f039=['contentHash','scope','skillName','4uvfduW','skillMdPath','pulledAt','5132240TUZSfm','2049936JnQLaV','1722180Vvszuu','appCode','skillCode','3078580ehqQMv','status','linkedPaths','treeHash','198lGbvSW','cacheDir','metadataPath','145332CMnRta','version','1298983zLSHkn','readonly','6vflWTZ','2361RepXBk'];a55_0x4e91=function(){return _0x23f039;};return a55_0x4e91();}export function summarizeRuntimeSkill(_0x4e6663){var _0x1b5d7d=a55_0x5d55;return{'id':_0x4e6663['id'],'skillCode':_0x4e6663[_0x1b5d7d(0x11e)],'skillName':_0x4e6663[_0x1b5d7d(0x116)],'scope':_0x4e6663[_0x1b5d7d(0x115)],'version':_0x4e6663[_0x1b5d7d(0x127)],'readonly':_0x4e6663['readonly']};}export function summarizeLocalRuntimeSkill(_0x2393b4){var _0xcbcfdf=a55_0x5d55;return{'id':_0x2393b4['id'],'skillCode':_0x2393b4[_0xcbcfdf(0x11e)],'skillName':_0x2393b4[_0xcbcfdf(0x116)],'scope':_0x2393b4[_0xcbcfdf(0x115)],'appCode':_0x2393b4[_0xcbcfdf(0x11d)],'version':_0x2393b4[_0xcbcfdf(0x127)],'status':_0x2393b4[_0xcbcfdf(0x120)],'readonly':_0x2393b4[_0xcbcfdf(0x129)],'tags':_0x2393b4['tags'],'dir':_0x2393b4['dir'],'cacheDir':_0x2393b4[_0xcbcfdf(0x124)],'skillMdPath':_0x2393b4[_0xcbcfdf(0x118)],'metadataPath':_0x2393b4[_0xcbcfdf(0x125)],'linkedPaths':_0x2393b4[_0xcbcfdf(0x121)],'contentHash':_0x2393b4[_0xcbcfdf(0x114)],'treeHash':_0x2393b4[_0xcbcfdf(0x122)],'pulledAt':_0x2393b4[_0xcbcfdf(0x119)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a56_0x30f3bd=a56_0x373e;(function(_0x6a85d9,_0x21f38f){const _0x1bc3ba=a56_0x373e,_0x353b9c=_0x6a85d9();while(!![]){try{const _0x19f345=parseInt(_0x1bc3ba(0x183))/0x1*(parseInt(_0x1bc3ba(0x179))/0x2)+-parseInt(_0x1bc3ba(0x17b))/0x3+-parseInt(_0x1bc3ba(0x191))/0x4*(parseInt(_0x1bc3ba(0x18c))/0x5)+-parseInt(_0x1bc3ba(0x18b))/0x6*(parseInt(_0x1bc3ba(0x16e))/0x7)+parseInt(_0x1bc3ba(0x174))/0x8+parseInt(_0x1bc3ba(0x16b))/0x9*(parseInt(_0x1bc3ba(0x181))/0xa)+-parseInt(_0x1bc3ba(0x178))/0xb*(-parseInt(_0x1bc3ba(0x17c))/0xc);if(_0x19f345===_0x21f38f)break;else _0x353b9c['push'](_0x353b9c['shift']());}catch(_0x3998be){_0x353b9c['push'](_0x353b9c['shift']());}}}(a56_0xedfe,0x9d6b3));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a56_0x30f3bd(0x175),a56_0x30f3bd(0x16a)];export const DEFAULT_SKILL_TARGET=a56_0x30f3bd(0x187);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;function a56_0x373e(_0x136b73,_0x520dfd){_0x136b73=_0x136b73-0x16a;const _0xedfe10=a56_0xedfe();let _0x373ea7=_0xedfe10[_0x136b73];return _0x373ea7;}export const RUNTIME_CONTRACT_FILE=a56_0x30f3bd(0x17f);export const OUTPUT_CONTRACT_FILE=a56_0x30f3bd(0x18f);export function validateSkillName(_0x3063d2){const _0xb7f13a=a56_0x30f3bd,_0x296863=_0x3063d2[_0xb7f13a(0x172)]();if(!SKILL_NAME_PATTERN[_0xb7f13a(0x18d)](_0x296863))throw CliErrors['validation'](_0xb7f13a(0x16f)+_0x3063d2+_0xb7f13a(0x170),_0xb7f13a(0x188));return _0x296863;}export function normalizeSkillTemplateType(_0x574391){const _0x2189b1=a56_0x30f3bd,_0x25dd7e=(_0x574391||_0x2189b1(0x175))[_0x2189b1(0x172)]()||_0x2189b1(0x175);if(SKILL_TYPES[_0x2189b1(0x18e)](_0x25dd7e))return _0x25dd7e;throw CliErrors[_0x2189b1(0x17d)](_0x2189b1(0x185)+_0x574391,'Use\x20one\x20of:\x20'+SKILL_TYPES[_0x2189b1(0x16d)](',\x20')+'.');}export function renderSkillTemplate(_0x57dea6){const _0x1c306d=a56_0x30f3bd,_0x179bfb=validateSkillName(_0x57dea6[_0x1c306d(0x173)]),_0x408895=normalizeSkillTemplateType(_0x57dea6[_0x1c306d(0x180)]),_0x3058ae=_0x57dea6[_0x1c306d(0x186)]??new Date()['toISOString']();return{'skillName':_0x179bfb,'type':_0x408895,'files':[{'path':_0x1c306d(0x17e),'content':renderSkillMd(_0x179bfb,_0x408895,_0x3058ae)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x179bfb,_0x408895)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x179bfb,_0x408895)}]};}function a56_0xedfe(){const _0x21cf48=['trim','skillName','3251560MLeVMO','write','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','1170697XYqcvh','56eXCGiR','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','942864gwANud','96jdLNkL','validation','SKILL.md','references/runtime-contract.md','type','10wcPmFF','\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','17916uSAHlN','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','Unsupported\x20Skill\x20type:\x20','timestamp','.agents/skills','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','\x0a\x20\x20created:\x20\x22','1866YMWDVy','495JBONdo','test','includes','references/output-contract.md','\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=','20772GpXWFh','\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','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','\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','read','7804548EeWlxp','\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','join','25963dWiKMu','Invalid\x20Skill\x20name:\x20','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','\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'];a56_0xedfe=function(){return _0x21cf48;};return a56_0xedfe();}function renderSkillMd(_0x219fda,_0x3896c4,_0x59ff6e){const _0x1fe6b2=a56_0x30f3bd,_0x477dcb=typeWorkflow(_0x3896c4);return'---\x0aname:\x20'+_0x219fda+_0x1fe6b2(0x182)+_0x3896c4+_0x1fe6b2(0x18a)+_0x59ff6e+'\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20'+_0x219fda+_0x1fe6b2(0x171)+_0x477dcb+'\x0a\x0a'+businessStateSection(_0x3896c4)+'\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';}function renderRuntimeContract(_0x506a97,_0x2404ce){const _0x1a6361=a56_0x30f3bd,_0x4a76bf=_0x2404ce===_0x1a6361(0x175)?_0x1a6361(0x189):'';return'#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。'+_0x506a97+_0x1a6361(0x190)+_0x2404ce+_0x1a6361(0x16c)+_0x4a76bf+_0x1a6361(0x192);}function renderOutputContract(_0x416ce4,_0x20d3e8){const _0x3607fc=a56_0x30f3bd,_0x3cfdbf=_0x20d3e8===_0x3607fc(0x175)?_0x3607fc(0x193):_0x20d3e8+_0x3607fc(0x17a);return'#\x20Output\x20Contract\x0a\x0a'+_0x416ce4+_0x3607fc(0x194)+_0x3cfdbf+'\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a';}function typeWorkflow(_0x3fbb34){const _0xc0a277=a56_0x30f3bd;if(_0x3fbb34==='read')return _0xc0a277(0x184);return _0xc0a277(0x177);}function businessStateSection(_0x5c94d7){const _0x5a2bfb=a56_0x30f3bd;if(_0x5c94d7!==_0x5a2bfb(0x175))return'';return _0x5a2bfb(0x176);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a57_0x1864fb=a57_0x2228;(function(_0x2e4bac,_0xe58a8d){const _0x1753f5=a57_0x2228,_0x37e965=_0x2e4bac();while(!![]){try{const _0x3b1f1e=parseInt(_0x1753f5(0x224))/0x1*(parseInt(_0x1753f5(0x1f5))/0x2)+parseInt(_0x1753f5(0x211))/0x3*(-parseInt(_0x1753f5(0x203))/0x4)+-parseInt(_0x1753f5(0x22b))/0x5*(parseInt(_0x1753f5(0x237))/0x6)+parseInt(_0x1753f5(0x1f7))/0x7*(-parseInt(_0x1753f5(0x22c))/0x8)+parseInt(_0x1753f5(0x226))/0x9*(-parseInt(_0x1753f5(0x1ee))/0xa)+-parseInt(_0x1753f5(0x1fc))/0xb*(parseInt(_0x1753f5(0x1f8))/0xc)+parseInt(_0x1753f5(0x21c))/0xd;if(_0x3b1f1e===_0xe58a8d)break;else _0x37e965['push'](_0x37e965['shift']());}catch(_0x8f3259){_0x37e965['push'](_0x37e965['shift']());}}}(a57_0x28a1,0xf377f));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a57_0x507c61}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE='SKILL.md',SUPPORTED_SKILL_TYPES=new Set(['write','read']),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x5e79ad,_0x79975a={}){const _0x410322=a57_0x2228,_0x50cd19=resolveSkillDirectoryRoot(_0x5e79ad),_0x3aae4f=[],_0x330bff=loadRequiredSkillFile(_0x50cd19,_0x3aae4f),_0x38f35d=_0x330bff?parseFrontmatter(_0x330bff[_0x410322(0x217)]):{'hasFrontmatter':![]};_0x330bff&&validateFrontmatter(_0x330bff['path'],_0x38f35d,_0x3aae4f);validateRuntimeCliReferences(_0x50cd19,_0x3aae4f);const _0x3c530e=_0x3aae4f[_0x410322(0x209)](_0xeabb11=>_0xeabb11[_0x410322(0x21b)]===_0x410322(0x1ff)),_0x2ffffa=_0x3aae4f['filter'](_0xa09a77=>_0xa09a77['level']===_0x410322(0x202));return{'ok':_0x3c530e[_0x410322(0x223)]===0x0,'dir':_0x50cd19,'type':_0x38f35d[_0x410322(0x230)],'errors':_0x3c530e,'warnings':_0x2ffffa};}function a57_0x28a1(){const _0x5936e9=['number','trim','suggestion','metadata','false','isDirectory','split','Frontmatter\x20example\x20is\x20missing.','14810eCLezd','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','name','toUpperCase','Skill\x20validation\x20failed:\x0a','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','Frontmatter\x20name\x20is\x20missing.','14KxpyPX','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','7OCsFtJ','1968cdxRRn','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','example','Frontmatter\x20description\x20is\x20empty.','85327HmOyQr','validation','SKILL.md\x20must\x20start\x20with\x20frontmatter.','error','rabetbase-cli-reference','displayName','warning','2303712aBsTTG','config','section','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','internal-skill','raw','filter','join','object','line','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','map','search','auth','3DQSWka','frontmatter-required','dataset','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','SKILL.md\x20is\x20not\x20a\x20file.','test','content','data','push','flatMap','level','62167391DXqLMh','ruleId','isFile','display-name-recommended','registry','Add\x20frontmatter\x20with\x20name\x20and\x20description.','app','length','149323hRNTCI','\x20Fix:\x20','9054WQIcAi','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','Set\x20metadata.type\x20to\x20write\x20or\x20read.','message','Frontmatter\x20displayName\x20is\x20missing.','45OPiNTz','456224JJCFOo','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','errors','project','type','toLowerCase','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','structure-complete','internal','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','path','956754lWDiwx','true','Skill\x20directory\x20not\x20found:\x20','service','isSymbolicLink','isArray','file','string','match','logs','description','boolean'];a57_0x28a1=function(){return _0x5936e9;};return a57_0x28a1();}function resolveSkillDirectoryRoot(_0x30398d){const _0x388514=a57_0x2228,_0x427385=resolve(_0x30398d);if(!existsSync(_0x427385))throw CliErrors[_0x388514(0x1fd)](_0x388514(0x1dc)+_0x30398d);const _0x53a3ca=lstatSync(_0x427385);if(_0x53a3ca[_0x388514(0x1eb)]())return _0x427385;if(_0x53a3ca['isSymbolicLink']()){const _0x15516c=realpathSync(_0x427385);if(lstatSync(_0x15516c)[_0x388514(0x1eb)]())return _0x15516c;}throw CliErrors['validation']('Skill\x20directory\x20not\x20found:\x20'+_0x30398d);}export function throwIfSkillValidationFailed(_0x200ecd,_0x2e4d62=![]){const _0x1c0770=a57_0x2228;if(_0x200ecd['ok'])return;const _0x1069f2=_0x200ecd[_0x1c0770(0x22e)]['map'](_0x50e78b=>{const _0x2db521=_0x1c0770,_0x4d584e=_0x50e78b[_0x2db521(0x205)]?'#'+_0x50e78b[_0x2db521(0x205)]:'';return _0x50e78b[_0x2db521(0x21b)][_0x2db521(0x1f1)]()+'\x20'+_0x50e78b[_0x2db521(0x21d)]+'\x20'+_0x50e78b[_0x2db521(0x1e0)]+_0x4d584e+':\x20'+_0x50e78b[_0x2db521(0x229)]+_0x2db521(0x225)+_0x50e78b[_0x2db521(0x1e8)];});throw CliErrors[_0x1c0770(0x1fd)](_0x1c0770(0x1f2)+_0x1069f2[_0x1c0770(0x20a)]('\x0a'),_0x1c0770(0x214));}function loadRequiredSkillFile(_0x578672,_0x44d0e7){const _0x136c14=a57_0x2228,_0x2341fd=resolve(_0x578672,SKILL_FILE);if(!existsSync(_0x2341fd))return _0x44d0e7[_0x136c14(0x219)](issue(_0x136c14(0x1ff),_0x136c14(0x233),SKILL_FILE,'Missing\x20SKILL.md.',_0x136c14(0x1ef))),undefined;const _0x59cba7=lstatSync(_0x2341fd);if(_0x59cba7[_0x136c14(0x1de)]())return _0x44d0e7[_0x136c14(0x219)](issue('error',_0x136c14(0x233),SKILL_FILE,_0x136c14(0x206),'Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.')),undefined;if(!_0x59cba7[_0x136c14(0x21e)]())return _0x44d0e7[_0x136c14(0x219)](issue(_0x136c14(0x1ff),_0x136c14(0x233),SKILL_FILE,_0x136c14(0x215),_0x136c14(0x227))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x2341fd,'utf8')};}function validateFrontmatter(_0x12a310,_0x3e50e7,_0x551e56){const _0x3bc6de=a57_0x2228;if(!_0x3e50e7['hasFrontmatter']){_0x551e56[_0x3bc6de(0x219)](issue(_0x3bc6de(0x1ff),_0x3bc6de(0x212),_0x12a310,_0x3bc6de(0x1fe),_0x3bc6de(0x221)));return;}!_0x3e50e7['name']?.[_0x3bc6de(0x1e7)]()&&_0x551e56['push'](issue(_0x3bc6de(0x1ff),_0x3bc6de(0x212),_0x12a310,_0x3bc6de(0x1f4),_0x3bc6de(0x235))),!_0x3e50e7['displayName']?.['trim']()&&_0x551e56['push'](issue(_0x3bc6de(0x202),_0x3bc6de(0x21f),_0x12a310,_0x3bc6de(0x22a),_0x3bc6de(0x20d))),!_0x3e50e7[_0x3bc6de(0x1fa)]?.['trim']()&&_0x551e56[_0x3bc6de(0x219)](issue(_0x3bc6de(0x202),'example-recommended',_0x12a310,_0x3bc6de(0x1ed),_0x3bc6de(0x1f9))),!_0x3e50e7[_0x3bc6de(0x1e4)]?.[_0x3bc6de(0x1e7)]()&&_0x551e56[_0x3bc6de(0x219)](issue('error','description-required',_0x12a310,_0x3bc6de(0x1fb),_0x3bc6de(0x1f3))),_0x3e50e7[_0x3bc6de(0x234)]===!![]&&_0x551e56['push'](issue('error',_0x3bc6de(0x207),_0x12a310,_0x3bc6de(0x1f6),_0x3bc6de(0x22d))),_0x3e50e7[_0x3bc6de(0x230)]?.[_0x3bc6de(0x1e7)]()&&!SUPPORTED_SKILL_TYPES['has'](_0x3e50e7['type'])&&_0x551e56['push'](issue(_0x3bc6de(0x1ff),_0x3bc6de(0x212),_0x12a310,'metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.',_0x3bc6de(0x228)));}function validateRuntimeCliReferences(_0x18fa7d,_0x5a67ce){const _0x17888f=a57_0x2228;for(const _0x30c8e5 of findRabetbaseCliInvocations(_0x18fa7d)){_0x5a67ce[_0x17888f(0x219)](issue(_0x17888f(0x202),_0x17888f(0x200),_0x30c8e5[_0x17888f(0x1e0)],'This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.',_0x17888f(0x232),'L'+_0x30c8e5[_0x17888f(0x20c)]));}}function findRabetbaseCliInvocations(_0x2b2b3b){const _0x5535ca=a57_0x2228;return scanSkillDirectory(_0x2b2b3b)[_0x5535ca(0x209)](_0x23e9bc=>TEXT_SKILL_FILE_PATTERN['test'](_0x23e9bc[_0x5535ca(0x236)]))[_0x5535ca(0x21a)](_0x3c2f18=>{const _0x86fcd9=_0x5535ca,_0x5e249e=fileText(_0x3c2f18);return _0x5e249e[_0x86fcd9(0x1ec)](/\r?\n/)[_0x86fcd9(0x20e)]((_0x160126,_0xc78de2)=>({'file':_0x3c2f18['path'],'line':_0xc78de2+0x1,'text':_0x160126}))[_0x86fcd9(0x209)](({text:_0x1d5e1f})=>isRabetbaseCliInvocation(_0x1d5e1f))['map'](({file:_0x148973,line:_0x7eea7a})=>({'file':_0x148973,'line':_0x7eea7a}));});}const RABETBASE_SUBCOMMANDS=[a57_0x1864fb(0x213),'sql','bff','page',a57_0x1864fb(0x22f),a57_0x1864fb(0x222),'schema',a57_0x1864fb(0x1dd),'artifact','kb',a57_0x1864fb(0x204),'workspace',a57_0x1864fb(0x218),a57_0x1864fb(0x210),a57_0x1864fb(0x1e3),a57_0x1864fb(0x220)],RABETBASE_INVOCATION=new RegExp(String['raw']`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS['join']('|')})\b`+String[a57_0x1864fb(0x208)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x139035){const _0x3ac1e5=a57_0x1864fb,_0x2fc24b=_0x139035[_0x3ac1e5(0x20f)](/\brabetbase\b/i);if(_0x2fc24b<0x0)return![];const _0x46ff2a=_0x139035['slice'](_0x2fc24b)[_0x3ac1e5(0x1ec)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x3ac1e5(0x216)](_0x46ff2a);}function a57_0x2228(_0x377169,_0x3bf5f8){_0x377169=_0x377169-0x1dc;const _0x28a192=a57_0x28a1();let _0x222806=_0x28a192[_0x377169];return _0x222806;}function parseFrontmatter(_0x14e284){const _0x2f1206=a57_0x1864fb,_0x2c6c14=_0x14e284[_0x2f1206(0x1e2)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x2c6c14)return{'hasFrontmatter':![]};const _0x581575=_0x2c6c14[0x1]??'',_0x22b16e={'hasFrontmatter':!![]};let _0x5d1def;try{_0x5d1def=a57_0x507c61(_0x581575);}catch{return _0x22b16e;}const _0x37abe1=asRecord(_0x5d1def);if(!_0x37abe1)return _0x22b16e;_0x22b16e[_0x2f1206(0x1f0)]=scalarToString(_0x37abe1[_0x2f1206(0x1f0)]),_0x22b16e[_0x2f1206(0x201)]=scalarToString(_0x37abe1[_0x2f1206(0x201)]),_0x22b16e[_0x2f1206(0x1e4)]=scalarToString(_0x37abe1[_0x2f1206(0x1e4)]),_0x22b16e[_0x2f1206(0x1fa)]=scalarToString(_0x37abe1['example']);const _0x6b3dd6=asRecord(_0x37abe1[_0x2f1206(0x1e9)]);return _0x6b3dd6&&(_0x22b16e[_0x2f1206(0x230)]=scalarToString(_0x6b3dd6[_0x2f1206(0x230)]),_0x22b16e[_0x2f1206(0x234)]=scalarToBoolean(_0x6b3dd6[_0x2f1206(0x234)])),_0x22b16e;}function asRecord(_0x1af999){const _0x3ca6d3=a57_0x1864fb;if(_0x1af999&&typeof _0x1af999===_0x3ca6d3(0x20b)&&!Array[_0x3ca6d3(0x1df)](_0x1af999))return _0x1af999;return undefined;}function scalarToString(_0x29346d){const _0x4963a6=a57_0x1864fb;if(typeof _0x29346d===_0x4963a6(0x1e1))return _0x29346d['trim']();if(typeof _0x29346d===_0x4963a6(0x1e6)||typeof _0x29346d===_0x4963a6(0x1e5))return String(_0x29346d);return undefined;}function scalarToBoolean(_0x753065){if(typeof _0x753065==='boolean')return _0x753065;if(typeof _0x753065==='string')return cleanBoolean(_0x753065);return undefined;}function cleanBoolean(_0xe57d1f){const _0x14a864=a57_0x1864fb,_0x348f86=_0xe57d1f[_0x14a864(0x1e7)]()[_0x14a864(0x231)]();if(_0x348f86===_0x14a864(0x238))return!![];if(_0x348f86===_0x14a864(0x1ea))return![];return undefined;}function issue(_0x116e76,_0x3fd128,_0x1e85b7,_0x5a8b03,_0x1d52c8,_0x5b827d){return{'level':_0x116e76,'ruleId':_0x3fd128,'file':_0x1e85b7,'section':_0x5b827d,'message':_0x5a8b03,'suggestion':_0x1d52c8};}
|
|
1
|
+
const a57_0x2caca5=a57_0x503c;(function(_0x5bdd83,_0x197d99){const _0x521ee6=a57_0x503c,_0x230acb=_0x5bdd83();while(!![]){try{const _0x225a37=parseInt(_0x521ee6(0x1ea))/0x1*(parseInt(_0x521ee6(0x1d8))/0x2)+-parseInt(_0x521ee6(0x207))/0x3+-parseInt(_0x521ee6(0x1eb))/0x4*(parseInt(_0x521ee6(0x20d))/0x5)+-parseInt(_0x521ee6(0x1df))/0x6+-parseInt(_0x521ee6(0x1ed))/0x7+parseInt(_0x521ee6(0x1f7))/0x8*(-parseInt(_0x521ee6(0x1e9))/0x9)+-parseInt(_0x521ee6(0x1bf))/0xa*(-parseInt(_0x521ee6(0x20f))/0xb);if(_0x225a37===_0x197d99)break;else _0x230acb['push'](_0x230acb['shift']());}catch(_0x540817){_0x230acb['push'](_0x230acb['shift']());}}}(a57_0x588b,0x5f019));function a57_0x503c(_0x13c055,_0x24d0ad){_0x13c055=_0x13c055-0x1be;const _0x588b5c=a57_0x588b();let _0x503c38=_0x588b5c[_0x13c055];return _0x503c38;}import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a57_0x1cb627}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a57_0x2caca5(0x1cf),SUPPORTED_SKILL_TYPES=new Set([a57_0x2caca5(0x1e5),a57_0x2caca5(0x1c3)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x519630,_0x20807b={}){const _0xaea4e0=a57_0x2caca5,_0x574940=resolveSkillDirectoryRoot(_0x519630),_0x58aac7=[],_0x1cd6e=loadRequiredSkillFile(_0x574940,_0x58aac7),_0x33640d=_0x1cd6e?parseFrontmatter(_0x1cd6e[_0xaea4e0(0x1db)]):{'hasFrontmatter':![]};_0x1cd6e&&validateFrontmatter(_0x1cd6e[_0xaea4e0(0x218)],_0x33640d,_0x58aac7);validateRuntimeCliReferences(_0x574940,_0x58aac7);const _0x57c399=_0x58aac7[_0xaea4e0(0x1c4)](_0x5de3d1=>_0x5de3d1[_0xaea4e0(0x1da)]==='error'),_0x2cdd2e=_0x58aac7[_0xaea4e0(0x1c4)](_0x3a5586=>_0x3a5586[_0xaea4e0(0x1da)]==='warning');return{'ok':_0x57c399[_0xaea4e0(0x1e8)]===0x0,'dir':_0x574940,'type':_0x33640d[_0xaea4e0(0x1dc)],'errors':_0x57c399,'warnings':_0x2cdd2e};}function resolveSkillDirectoryRoot(_0x417489){const _0x1a28e6=a57_0x2caca5,_0xb696da=resolve(_0x417489);if(!existsSync(_0xb696da))throw CliErrors[_0x1a28e6(0x214)](_0x1a28e6(0x1fb)+_0x417489);const _0x3c353e=lstatSync(_0xb696da);if(_0x3c353e[_0x1a28e6(0x1f5)]())return _0xb696da;if(_0x3c353e[_0x1a28e6(0x20b)]()){const _0x408573=realpathSync(_0xb696da);if(lstatSync(_0x408573)[_0x1a28e6(0x1f5)]())return _0x408573;}throw CliErrors[_0x1a28e6(0x214)](_0x1a28e6(0x1fb)+_0x417489);}function a57_0x588b(){const _0xd49020=['1723710nyTbPE','trim','push','page','read','filter','false','internal','toUpperCase','project','bff','toLowerCase','true','utf8','metadata','service','SKILL.md','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','test','name','description','data','raw','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','workspace','130sASaze','file','level','content','type','app','has','1606074tcQGUX','description-required','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','logs','flatMap','write','display-name-recommended','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','length','787050CLHERC','8303QtpAVM','40QZwQWV','errors','937069WNRogc','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','displayName','example','slice','Missing\x20SKILL.md.','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','auth','isDirectory','message','8WSuHcc','section','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','structure-complete','Skill\x20directory\x20not\x20found:\x20','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','internal-skill','map','registry','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','Skill\x20validation\x20failed:\x0a','sql','SKILL.md\x20must\x20start\x20with\x20frontmatter.','line','hasFrontmatter','447897nTMNBD','warning','config','isArray','isSymbolicLink','string','187055rRuHrE','\x20Fix:\x20','55hHoPhq','search','number','Frontmatter\x20name\x20is\x20missing.','error','validation','dataset','ruleId','isFile','path','split','join'];a57_0x588b=function(){return _0xd49020;};return a57_0x588b();}export function throwIfSkillValidationFailed(_0x5d04c1,_0x446e2b=![]){const _0x1b11b0=a57_0x2caca5;if(_0x5d04c1['ok'])return;const _0x26a2f8=_0x5d04c1[_0x1b11b0(0x1ec)][_0x1b11b0(0x1ff)](_0x5a6f72=>{const _0x127bf8=_0x1b11b0,_0x54ec6c=_0x5a6f72[_0x127bf8(0x1f8)]?'#'+_0x5a6f72[_0x127bf8(0x1f8)]:'';return _0x5a6f72[_0x127bf8(0x1da)][_0x127bf8(0x1c7)]()+'\x20'+_0x5a6f72[_0x127bf8(0x216)]+'\x20'+_0x5a6f72['file']+_0x54ec6c+':\x20'+_0x5a6f72[_0x127bf8(0x1f6)]+_0x127bf8(0x20e)+_0x5a6f72['suggestion'];});throw CliErrors[_0x1b11b0(0x214)](_0x1b11b0(0x202)+_0x26a2f8[_0x1b11b0(0x1be)]('\x0a'),_0x1b11b0(0x1ee));}function loadRequiredSkillFile(_0x49707c,_0x568d14){const _0x3e54cf=a57_0x2caca5,_0x1e9073=resolve(_0x49707c,SKILL_FILE);if(!existsSync(_0x1e9073))return _0x568d14['push'](issue(_0x3e54cf(0x213),'structure-complete',SKILL_FILE,_0x3e54cf(0x1f2),'Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;const _0x233919=lstatSync(_0x1e9073);if(_0x233919['isSymbolicLink']())return _0x568d14['push'](issue('error',_0x3e54cf(0x1fa),SKILL_FILE,_0x3e54cf(0x1f3),_0x3e54cf(0x1d6))),undefined;if(!_0x233919[_0x3e54cf(0x217)]())return _0x568d14[_0x3e54cf(0x1c1)](issue(_0x3e54cf(0x213),_0x3e54cf(0x1fa),SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x1e9073,_0x3e54cf(0x1cc))};}function validateFrontmatter(_0x37177b,_0x3329c0,_0x1fbc7b){const _0x516f25=a57_0x2caca5;if(!_0x3329c0[_0x516f25(0x206)]){_0x1fbc7b[_0x516f25(0x1c1)](issue(_0x516f25(0x213),'frontmatter-required',_0x37177b,_0x516f25(0x204),'Add\x20frontmatter\x20with\x20name\x20and\x20description.'));return;}!_0x3329c0[_0x516f25(0x1d2)]?.[_0x516f25(0x1c0)]()&&_0x1fbc7b[_0x516f25(0x1c1)](issue(_0x516f25(0x213),'frontmatter-required',_0x37177b,_0x516f25(0x212),_0x516f25(0x1e7))),!_0x3329c0[_0x516f25(0x1ef)]?.['trim']()&&_0x1fbc7b[_0x516f25(0x1c1)](issue('warning',_0x516f25(0x1e6),_0x37177b,'Frontmatter\x20displayName\x20is\x20missing.',_0x516f25(0x1e2))),!_0x3329c0[_0x516f25(0x1f0)]?.[_0x516f25(0x1c0)]()&&_0x1fbc7b['push'](issue(_0x516f25(0x208),'example-recommended',_0x37177b,'Frontmatter\x20example\x20is\x20missing.',_0x516f25(0x201))),!_0x3329c0[_0x516f25(0x1d3)]?.['trim']()&&_0x1fbc7b[_0x516f25(0x1c1)](issue(_0x516f25(0x213),_0x516f25(0x1e0),_0x37177b,'Frontmatter\x20description\x20is\x20empty.',_0x516f25(0x1fd))),_0x3329c0['internal']===!![]&&_0x1fbc7b[_0x516f25(0x1c1)](issue(_0x516f25(0x213),_0x516f25(0x1fe),_0x37177b,_0x516f25(0x1fc),_0x516f25(0x1d0))),_0x3329c0[_0x516f25(0x1dc)]?.[_0x516f25(0x1c0)]()&&!SUPPORTED_SKILL_TYPES[_0x516f25(0x1de)](_0x3329c0['type'])&&_0x1fbc7b[_0x516f25(0x1c1)](issue(_0x516f25(0x213),'frontmatter-required',_0x37177b,'metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','Set\x20metadata.type\x20to\x20write\x20or\x20read.'));}function validateRuntimeCliReferences(_0x5915d8,_0xb8b286){const _0x17b622=a57_0x2caca5;for(const _0x4910e6 of findRabetbaseCliInvocations(_0x5915d8)){_0xb8b286['push'](issue(_0x17b622(0x208),'rabetbase-cli-reference',_0x4910e6[_0x17b622(0x1d9)],_0x17b622(0x1f9),_0x17b622(0x1e1),'L'+_0x4910e6[_0x17b622(0x205)]));}}function findRabetbaseCliInvocations(_0x101de7){const _0xc131a4=a57_0x2caca5;return scanSkillDirectory(_0x101de7)[_0xc131a4(0x1c4)](_0x47d370=>TEXT_SKILL_FILE_PATTERN[_0xc131a4(0x1d1)](_0x47d370['path']))[_0xc131a4(0x1e4)](_0x3b0d68=>{const _0xb6d86c=_0xc131a4,_0x460286=fileText(_0x3b0d68);return _0x460286[_0xb6d86c(0x219)](/\r?\n/)[_0xb6d86c(0x1ff)]((_0x34b4c2,_0x27446e)=>({'file':_0x3b0d68[_0xb6d86c(0x218)],'line':_0x27446e+0x1,'text':_0x34b4c2}))['filter'](({text:_0x37378d})=>isRabetbaseCliInvocation(_0x37378d))[_0xb6d86c(0x1ff)](({file:_0x2dad23,line:_0x2c7cbf})=>({'file':_0x2dad23,'line':_0x2c7cbf}));});}const RABETBASE_SUBCOMMANDS=[a57_0x2caca5(0x215),a57_0x2caca5(0x203),a57_0x2caca5(0x1c9),a57_0x2caca5(0x1c2),a57_0x2caca5(0x1c8),a57_0x2caca5(0x1dd),'schema',a57_0x2caca5(0x1ce),'artifact','kb',a57_0x2caca5(0x209),a57_0x2caca5(0x1d7),a57_0x2caca5(0x1d4),a57_0x2caca5(0x1f4),a57_0x2caca5(0x1e3),a57_0x2caca5(0x200)],RABETBASE_INVOCATION=new RegExp(String[a57_0x2caca5(0x1d5)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a57_0x2caca5(0x1be)]('|')})\b`+String[a57_0x2caca5(0x1d5)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x3b954b){const _0x1deb07=a57_0x2caca5,_0x5a11d0=_0x3b954b[_0x1deb07(0x210)](/\brabetbase\b/i);if(_0x5a11d0<0x0)return![];const _0x65524b=_0x3b954b[_0x1deb07(0x1f1)](_0x5a11d0)['split'](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x1deb07(0x1d1)](_0x65524b);}function parseFrontmatter(_0x44c9fa){const _0x2f5ce5=a57_0x2caca5,_0x2f9fcc=_0x44c9fa['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x2f9fcc)return{'hasFrontmatter':![]};const _0x223330=_0x2f9fcc[0x1]??'',_0x43fa1e={'hasFrontmatter':!![]};let _0x48d151;try{_0x48d151=a57_0x1cb627(_0x223330);}catch{return _0x43fa1e;}const _0x187014=asRecord(_0x48d151);if(!_0x187014)return _0x43fa1e;_0x43fa1e[_0x2f5ce5(0x1d2)]=scalarToString(_0x187014[_0x2f5ce5(0x1d2)]),_0x43fa1e[_0x2f5ce5(0x1ef)]=scalarToString(_0x187014['displayName']),_0x43fa1e[_0x2f5ce5(0x1d3)]=scalarToString(_0x187014[_0x2f5ce5(0x1d3)]),_0x43fa1e[_0x2f5ce5(0x1f0)]=scalarToString(_0x187014[_0x2f5ce5(0x1f0)]);const _0x3b2cb6=asRecord(_0x187014[_0x2f5ce5(0x1cd)]);return _0x3b2cb6&&(_0x43fa1e[_0x2f5ce5(0x1dc)]=scalarToString(_0x3b2cb6[_0x2f5ce5(0x1dc)]),_0x43fa1e[_0x2f5ce5(0x1c6)]=scalarToBoolean(_0x3b2cb6[_0x2f5ce5(0x1c6)])),_0x43fa1e;}function asRecord(_0x436fef){const _0x49e40e=a57_0x2caca5;if(_0x436fef&&typeof _0x436fef==='object'&&!Array[_0x49e40e(0x20a)](_0x436fef))return _0x436fef;return undefined;}function scalarToString(_0xc1e898){const _0x48a1a2=a57_0x2caca5;if(typeof _0xc1e898==='string')return _0xc1e898[_0x48a1a2(0x1c0)]();if(typeof _0xc1e898===_0x48a1a2(0x211)||typeof _0xc1e898==='boolean')return String(_0xc1e898);return undefined;}function scalarToBoolean(_0x5563f9){const _0x386961=a57_0x2caca5;if(typeof _0x5563f9==='boolean')return _0x5563f9;if(typeof _0x5563f9===_0x386961(0x20c))return cleanBoolean(_0x5563f9);return undefined;}function cleanBoolean(_0xa8e275){const _0x4427c3=a57_0x2caca5,_0x18aee5=_0xa8e275[_0x4427c3(0x1c0)]()[_0x4427c3(0x1ca)]();if(_0x18aee5===_0x4427c3(0x1cb))return!![];if(_0x18aee5===_0x4427c3(0x1c5))return![];return undefined;}function issue(_0x3b8750,_0x5e0463,_0x3f7a80,_0xb99255,_0x24696e,_0x474400){return{'level':_0x3b8750,'ruleId':_0x5e0463,'file':_0x3f7a80,'section':_0x474400,'message':_0xb99255,'suggestion':_0x24696e};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a58_0x33a22a=a58_0x56dd;function a58_0x4754(){const _0x550a3f=['6027678wmGYnU','appCode','detail','sqlcode','sql','sqlName','sqlContent','dbId','str','16615662oZffym','2307240ekAWAW','verbose','157204iwgKuF','bool','1214322TfSTZn','797268ohXvYY','549852OEqbVi'];a58_0x4754=function(){return _0x550a3f;};return a58_0x4754();}function a58_0x56dd(_0xc52ff7,_0x1d9fb4){_0xc52ff7=_0xc52ff7-0xb9;const _0x47547a=a58_0x4754();let _0x56dd92=_0x47547a[_0xc52ff7];return _0x56dd92;}(function(_0x2bbfd3,_0x1ca62c){const _0x4992d2=a58_0x56dd,_0x293c5f=_0x2bbfd3();while(!![]){try{const _0x2641cd=parseInt(_0x4992d2(0xbd))/0x1+parseInt(_0x4992d2(0xbe))/0x2+parseInt(_0x4992d2(0xbc))/0x3+parseInt(_0x4992d2(0xba))/0x4+parseInt(_0x4992d2(0xc9))/0x5+parseInt(_0x4992d2(0xbf))/0x6+-parseInt(_0x4992d2(0xc8))/0x7;if(_0x2641cd===_0x1ca62c)break;else _0x293c5f['push'](_0x293c5f['shift']());}catch(_0x493512){_0x293c5f['push'](_0x293c5f['shift']());}}}(a58_0x4754,0x94998));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a58_0x33a22a(0xc3),'command':a58_0x33a22a(0xc1),'description':'Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','risk':'read','flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x131207){const _0x203237=a58_0x33a22a,_0x5b2c8f=await getSqlQueryInfo(_0x131207[_0x203237(0xc0)],_0x131207[_0x203237(0xc7)](_0x203237(0xc2))),_0x259bd1=_0x131207[_0x203237(0xbb)](_0x203237(0xb9));if(_0x259bd1)return{'ok':!![],'data':_0x5b2c8f};const _0x54f6ff=_0x5b2c8f[_0x203237(0xc6)]?await getDbName(_0x131207[_0x203237(0xc0)],_0x5b2c8f[_0x203237(0xc6)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x5b2c8f['sqlCode'],'sqlName':_0x5b2c8f[_0x203237(0xc4)],'db':_0x54f6ff?_0x54f6ff+'\x20('+_0x5b2c8f[_0x203237(0xc6)]+')':_0x5b2c8f[_0x203237(0xc6)]??'','sqlContent':_0x5b2c8f[_0x203237(0xc5)]??''}};}};
|
package/lib/commands/sql/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a59_0xa76767=a59_0x4d16;(function(_0x1c4619,_0x130af2){const _0x5e71f0=a59_0x4d16,_0x2b8498=_0x1c4619();while(!![]){try{const _0x2c8552=-parseInt(_0x5e71f0(0xc3))/0x1+parseInt(_0x5e71f0(0xd1))/0x2+parseInt(_0x5e71f0(0xcc))/0x3+parseInt(_0x5e71f0(0xcb))/0x4+-parseInt(_0x5e71f0(0xc6))/0x5*(-parseInt(_0x5e71f0(0xd0))/0x6)+-parseInt(_0x5e71f0(0xc8))/0x7+parseInt(_0x5e71f0(0xca))/0x8*(-parseInt(_0x5e71f0(0xd5))/0x9);if(_0x2c8552===_0x130af2)break;else _0x2b8498['push'](_0x2b8498['shift']());}catch(_0x452f7e){_0x2b8498['push'](_0x2b8498['shift']());}}}(a59_0x1454,0x1ddd5));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a59_0x4d16(_0x4107a6,_0x465171){_0x4107a6=_0x4107a6-0xc3;const _0x14540a=a59_0x1454();let _0x4d1621=_0x14540a[_0x4107a6];return _0x4d1621;}function a59_0x1454(){const _0x5af0b7=['40tWMWwc','417492yNBaiA','346479iOKGGG','execSuccess','length','str','6mMCqpu','92962rgVBlB','execError','isArray','\x20row(s)\x20in\x20','65439Cihujk','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','execResult','146529nioqxp','params','now','220145qNBgna','SQL\x20execution\x20failed','36169sltzQy','Returned\x20'];a59_0x1454=function(){return _0x5af0b7;};return a59_0x1454();}import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':'sql','command':'exec','description':a59_0xa76767(0xd6),'risk':'read','flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x285d17){const _0x56fbf7=a59_0xa76767,_0x213999=parseJsonParams(_0x285d17['str'](_0x56fbf7(0xc4))),_0x470bb2=Date[_0x56fbf7(0xc5)](),_0x3a4d64=await executeSdkSql(_0x285d17[_0x56fbf7(0xcf)]('sqlcode'),_0x213999),_0x43ef44=Date['now']()-_0x470bb2,_0x1b4656=_0x3a4d64?.[_0x56fbf7(0xd7)]??_0x3a4d64,_0x271dbb=_0x3a4d64?.[_0x56fbf7(0xcd)]??!![];if(!_0x271dbb)return{'ok':![],'data':{'error':_0x3a4d64?.[_0x56fbf7(0xd2)]||_0x56fbf7(0xc7),'elapsed':_0x43ef44},'message':_0x56fbf7(0xc7)};const _0x4500af=Array[_0x56fbf7(0xd3)](_0x1b4656)?_0x1b4656:[];return{'ok':!![],'data':{'rows':_0x4500af,'rowCount':_0x4500af[_0x56fbf7(0xce)],'elapsed':_0x43ef44},'message':_0x56fbf7(0xc9)+_0x4500af[_0x56fbf7(0xce)]+_0x56fbf7(0xd4)+_0x43ef44+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a60_0x1481(_0x317510,_0x43694b){_0x317510=_0x317510-0x113;const _0x46da8f=a60_0x46da();let _0x1481b6=_0x46da8f[_0x317510];return _0x1481b6;}(function(_0x5ef1da,_0x453cb2){const _0x46a425=a60_0x1481,_0x30cdba=_0x5ef1da();while(!![]){try{const _0x148ac7=-parseInt(_0x46a425(0x11b))/0x1+-parseInt(_0x46a425(0x118))/0x2*(parseInt(_0x46a425(0x114))/0x3)+parseInt(_0x46a425(0x11c))/0x4*(parseInt(_0x46a425(0x117))/0x5)+parseInt(_0x46a425(0x11a))/0x6*(-parseInt(_0x46a425(0x11e))/0x7)+-parseInt(_0x46a425(0x113))/0x8*(-parseInt(_0x46a425(0x11d))/0x9)+-parseInt(_0x46a425(0x119))/0xa*(parseInt(_0x46a425(0x116))/0xb)+parseInt(_0x46a425(0x115))/0xc;if(_0x148ac7===_0x453cb2)break;else _0x30cdba['push'](_0x30cdba['shift']());}catch(_0x5266c1){_0x30cdba['push'](_0x30cdba['shift']());}}}(a60_0x46da,0x7686a));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a60_0x46da(){const _0x5eaef5=['20WZvLbU','3594gBOWhc','674103HghAkS','1790176ThqhYA','1602weBzPv','10913tQjImR','4088uBSdgp','1326369pLFISB','33451212tyCoTj','4348047ZsYrLu','5JSdBsQ','2QglTXN'];a60_0x46da=function(){return _0x5eaef5;};return a60_0x46da();}export const sqlDefinitions=[sqlDetail,sqlExec];
|
package/lib/commands/update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a61_0x2173f4=a61_0x5e17;(function(_0x18d7f3,_0x3e37af){const _0x5c375c=a61_0x5e17,_0x464bc7=_0x18d7f3();while(!![]){try{const _0xd50ff9=parseInt(_0x5c375c(0x166))/0x1+parseInt(_0x5c375c(0x188))/0x2+parseInt(_0x5c375c(0x172))/0x3*(-parseInt(_0x5c375c(0x15d))/0x4)+-parseInt(_0x5c375c(0x17a))/0x5+-parseInt(_0x5c375c(0x15e))/0x6+parseInt(_0x5c375c(0x169))/0x7*(-parseInt(_0x5c375c(0x170))/0x8)+-parseInt(_0x5c375c(0x197))/0x9*(-parseInt(_0x5c375c(0x18c))/0xa);if(_0xd50ff9===_0x3e37af)break;else _0x464bc7['push'](_0x464bc7['shift']());}catch(_0x10d0f7){_0x464bc7['push'](_0x464bc7['shift']());}}}(a61_0x3d3f,0x89e85));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';function a61_0x3d3f(){const _0x5c8b3d=['Already\x20on\x20requested\x20version\x20(v','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Updated\x20to\x20v','4218435HDNtck','Version\x20comparison\x20failed.','exit\x20','Install\x20a\x20specific\x20CLI\x20version','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','entries','bool','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','validation','source','Checking\x20npm\x20dist-tags...','message','match','trim','366112rFOKYV','json','Current\x20version:\x20','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','54410HbkzhO','nonInteractive','stdout','major','Invalid\x20version:\x20','status','Already\x20up\x20to\x20date\x20(v','skills','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','pipe','filter','3330DFEEXJ','latest','\x20version\x20from\x20npm.','stderr','write','Update\x20failed:\x20','toString','str','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','Updating\x20','prerelease','=1).','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','inherit','string','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','boolean','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','minor','unknown','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','\x20->\x20','1667396KaAIJa','2569254TKQhPA','timeout','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','version','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','skipped','Checking\x20CLI\x20Built-in\x20Skill...','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','681002omftBR','object','npm','1447355REJgEA','warn','fromEntries','log','error','args','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','8uUmJmj','join','6GcYLfj','patch','beta','cwd','no-skills'];a61_0x3d3f=function(){return _0x5c8b3d;};return a61_0x3d3f();}const updateFlags=[{'name':'latest','type':'boolean','description':a61_0x2173f4(0x181),'default':![]},{'name':a61_0x2173f4(0x174),'type':a61_0x2173f4(0x157),'description':a61_0x2173f4(0x158),'default':![]},{'name':a61_0x2173f4(0x161),'type':a61_0x2173f4(0x155),'description':a61_0x2173f4(0x17d)},{'name':'no-skills','type':a61_0x2173f4(0x157),'description':a61_0x2173f4(0x153),'default':![]},{'name':a61_0x2173f4(0x193),'type':a61_0x2173f4(0x157),'description':a61_0x2173f4(0x162),'default':!![],'hidden':!![]}];function parseSemver(_0x545656){const _0x50747a=a61_0x2173f4,_0x2cbe38=_0x545656[_0x50747a(0x187)]()[_0x50747a(0x186)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x2cbe38)return null;return{'major':Number(_0x2cbe38[0x1]),'minor':Number(_0x2cbe38[0x2]),'patch':Number(_0x2cbe38[0x3]),'prerelease':_0x2cbe38[0x4]};}function compareSemver(_0x93263f,_0x5e4f81){const _0x2048c2=a61_0x2173f4,_0x2a994b=parseSemver(_0x93263f),_0x40a98d=parseSemver(_0x5e4f81);if(!_0x2a994b||!_0x40a98d)throw CliErrors[_0x2048c2(0x182)](_0x2048c2(0x17b),_0x2048c2(0x156));for(const _0x27e002 of[_0x2048c2(0x18f),_0x2048c2(0x159),_0x2048c2(0x173)]){if(_0x2a994b[_0x27e002]<_0x40a98d[_0x27e002])return-0x1;if(_0x2a994b[_0x27e002]>_0x40a98d[_0x27e002])return 0x1;}if(!_0x2a994b[_0x2048c2(0x151)]&&!_0x40a98d[_0x2048c2(0x151)])return 0x0;if(!_0x2a994b[_0x2048c2(0x151)])return 0x1;if(!_0x40a98d[_0x2048c2(0x151)])return-0x1;if(_0x2a994b[_0x2048c2(0x151)]===_0x40a98d[_0x2048c2(0x151)])return 0x0;return _0x2a994b['prerelease']<_0x40a98d[_0x2048c2(0x151)]?-0x1:0x1;}function getRequestedVersion(_0xa3b906){const _0x547e2e=a61_0x2173f4,_0x992d7b=_0xa3b906[_0x547e2e(0x14e)](_0x547e2e(0x161))[_0x547e2e(0x187)]();if(_0x992d7b)return _0x992d7b;return String(_0xa3b906[_0x547e2e(0x16e)]?.[0x0]??'')[_0x547e2e(0x187)]();}function shouldSkipCliBuiltInSkill(_0x562340){const _0x406600=a61_0x2173f4;return _0x562340[_0x406600(0x180)](_0x406600(0x176))||_0x562340['flag'](_0x406600(0x193))===![];}async function validateUpdateFlags(_0x4c6cd5){const _0x3f2884=a61_0x2173f4,_0x39276e=getRequestedVersion(_0x4c6cd5),_0x1bf5fd=[_0x4c6cd5[_0x3f2884(0x180)](_0x3f2884(0x198))?_0x3f2884(0x198):'',_0x4c6cd5[_0x3f2884(0x180)](_0x3f2884(0x174))?_0x3f2884(0x174):'',_0x39276e?_0x3f2884(0x161):'']['filter'](Boolean);if(_0x1bf5fd['length']>0x1)throw CliErrors[_0x3f2884(0x182)](_0x3f2884(0x15b),_0x3f2884(0x17e));if(_0x39276e&&!parseSemver(_0x39276e))throw CliErrors[_0x3f2884(0x182)](_0x3f2884(0x190)+_0x39276e,_0x3f2884(0x178));}async function fetchNpmDistTags(){const _0x1cd043=a61_0x2173f4;try{const _0x479b0d=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x171ac0=await fetch(_0x479b0d,{'signal':AbortSignal[_0x1cd043(0x15f)](0x2710)});if(!_0x171ac0['ok'])return null;const _0x13138d=await _0x171ac0[_0x1cd043(0x189)]();if(!_0x13138d||typeof _0x13138d!==_0x1cd043(0x167))return null;return Object[_0x1cd043(0x16b)](Object[_0x1cd043(0x17f)](_0x13138d)[_0x1cd043(0x196)](([,_0x56866b])=>typeof _0x56866b===_0x1cd043(0x155)&&_0x56866b[_0x1cd043(0x187)]())['map'](([_0x1b0707,_0x3e8575])=>[_0x1b0707,String(_0x3e8575)[_0x1cd043(0x187)]()]));}catch{return null;}}async function resolveTargetVersion(_0x3fc0c3){const _0x3ccba3=a61_0x2173f4,_0x30a9f4=getRequestedVersion(_0x3fc0c3);if(_0x30a9f4)return{'version':_0x30a9f4,'source':_0x3ccba3(0x161)};const _0x5985d0=_0x3fc0c3[_0x3ccba3(0x180)](_0x3ccba3(0x174))?_0x3ccba3(0x174):_0x3ccba3(0x198),_0x35a951=await fetchNpmDistTags(),_0x1e147a=_0x35a951?.[_0x5985d0];if(!_0x1e147a)return null;return{'version':_0x1e147a,'source':_0x5985d0};}function shouldInstallTarget(_0x240eaa,_0x447a0a){const _0x4fc316=a61_0x2173f4,_0x12c58c=compareSemver(_0x240eaa,_0x447a0a[_0x4fc316(0x161)]);if(_0x447a0a[_0x4fc316(0x183)]==='version')return _0x12c58c!==0x0;return _0x12c58c<0x0;}function installCliPackage(_0x527a30,_0x43c7ea){const _0x2a2b17=a61_0x2173f4,_0x481bed=resolveNpmBin(_0x2a2b17(0x168)),_0x38ec30=['install','-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x527a30];console[_0x2a2b17(0x16c)]('*\x20'+[_0x481bed,..._0x38ec30][_0x2a2b17(0x171)]('\x20'));const _0x4c75a5=spawnSync(_0x481bed,_0x38ec30,{'cwd':process['cwd'](),'stdio':_0x43c7ea?_0x2a2b17(0x195):_0x2a2b17(0x154),'env':process.env,'shell':![]});if(_0x4c75a5[_0x2a2b17(0x191)]===0x0)return{'ok':!![]};let _0x1c6823=_0x4c75a5[_0x2a2b17(0x16d)]?.[_0x2a2b17(0x185)]||_0x2a2b17(0x17c)+(_0x4c75a5[_0x2a2b17(0x191)]??_0x2a2b17(0x15a));if(_0x43c7ea){const _0x270302=_0x4c75a5[_0x2a2b17(0x19a)]?_0x4c75a5[_0x2a2b17(0x19a)][_0x2a2b17(0x14d)]()[_0x2a2b17(0x187)]():'',_0x33e228=_0x4c75a5[_0x2a2b17(0x18e)]?_0x4c75a5['stdout'][_0x2a2b17(0x14d)]()[_0x2a2b17(0x187)]():'';if(_0x270302)_0x1c6823=_0x270302;else{if(_0x33e228)_0x1c6823=_0x33e228;}}return{'ok':![],'error':_0x1c6823};}function a61_0x5e17(_0x3d8f73,_0x472699){_0x3d8f73=_0x3d8f73-0x14d;const _0x3d3f0f=a61_0x3d3f();let _0x5e1701=_0x3d3f0f[_0x3d8f73];return _0x5e1701;}async function installCliBuiltInSkill(_0x4cdafe){const _0x2aa87e=a61_0x2173f4;console[_0x2aa87e(0x16c)](_0x2aa87e(0x164));const _0x23f464=runNpxSkillsAddGlobal(process[_0x2aa87e(0x175)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x4cdafe?'pipe':_0x2aa87e(0x154)});if(_0x23f464[_0x2aa87e(0x163)]){console[_0x2aa87e(0x16c)]('\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20('+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x2aa87e(0x152));return;}if(_0x23f464['ok']){console['log'](_0x2aa87e(0x18b));return;}console[_0x2aa87e(0x16a)](_0x2aa87e(0x165)+(_0x23f464['error']||_0x2aa87e(0x15a))),console[_0x2aa87e(0x16c)](_0x2aa87e(0x16f));}async function execute(_0x54ea6c){const _0x2408d2=a61_0x2173f4;await validateUpdateFlags(_0x54ea6c);const _0x1fe137=getCliVersion();console[_0x2408d2(0x16c)](_0x2408d2(0x18a)+_0x1fe137),console['log'](_0x2408d2(0x184));const _0x288969=await resolveTargetVersion(_0x54ea6c);if(!_0x288969){const _0x4164a3=_0x54ea6c['bool']('beta')?_0x2408d2(0x174):_0x2408d2(0x198),_0x22537f='Unable\x20to\x20resolve\x20'+_0x4164a3+_0x2408d2(0x199);return console[_0x2408d2(0x16a)](_0x22537f),console['log'](_0x2408d2(0x160)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4164a3),{'ok':![]};}if(!shouldInstallTarget(_0x1fe137,_0x288969)){const _0x2eb4ba=_0x288969[_0x2408d2(0x183)]==='version'?_0x2408d2(0x177)+_0x288969[_0x2408d2(0x161)]+').':_0x2408d2(0x192)+_0x288969[_0x2408d2(0x161)]+').';return console['log'](_0x2eb4ba),shouldSkipCliBuiltInSkill(_0x54ea6c)?console['log'](_0x2408d2(0x14f)):await installCliBuiltInSkill(_0x54ea6c[_0x2408d2(0x18d)]),{'ok':!![]};}console['log'](_0x2408d2(0x150)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x1fe137+_0x2408d2(0x15c)+_0x288969[_0x2408d2(0x161)]);const _0x358ac2=installCliPackage(_0x288969['version'],_0x54ea6c['nonInteractive']);if(!_0x358ac2['ok']){const _0x31d140=_0x2408d2(0x19c)+(_0x358ac2[_0x2408d2(0x16d)]||_0x2408d2(0x15a));return console[_0x2408d2(0x16d)](_0x31d140),console[_0x2408d2(0x16c)]('\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x288969['version']),{'ok':![]};}return console[_0x2408d2(0x16c)](_0x2408d2(0x179)+_0x288969[_0x2408d2(0x161)]+'.'),console[_0x2408d2(0x16c)](_0x2408d2(0x194)),shouldSkipCliBuiltInSkill(_0x54ea6c)?console[_0x2408d2(0x16c)]('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).'):await installCliBuiltInSkill(_0x54ea6c[_0x2408d2(0x18d)]),{'ok':!![]};}export const updateDefinition={'service':'update','command':'run','description':'Update\x20'+CLI_BIN_NAME+'\x20CLI\x20from\x20npm','risk':a61_0x2173f4(0x19b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
1
|
+
const a61_0xc8cc44=a61_0x2a3c;(function(_0x3b402d,_0x5757b8){const _0x2fad51=a61_0x2a3c,_0x157efd=_0x3b402d();while(!![]){try{const _0xbe4975=-parseInt(_0x2fad51(0x20b))/0x1*(parseInt(_0x2fad51(0x214))/0x2)+-parseInt(_0x2fad51(0x202))/0x3*(-parseInt(_0x2fad51(0x1da))/0x4)+parseInt(_0x2fad51(0x205))/0x5+-parseInt(_0x2fad51(0x1ed))/0x6*(parseInt(_0x2fad51(0x1fd))/0x7)+-parseInt(_0x2fad51(0x201))/0x8*(-parseInt(_0x2fad51(0x20e))/0x9)+parseInt(_0x2fad51(0x1d8))/0xa*(-parseInt(_0x2fad51(0x1f8))/0xb)+parseInt(_0x2fad51(0x1f9))/0xc*(parseInt(_0x2fad51(0x1d7))/0xd);if(_0xbe4975===_0x5757b8)break;else _0x157efd['push'](_0x157efd['shift']());}catch(_0xa380f8){_0x157efd['push'](_0x157efd['shift']());}}}(a61_0x2780,0xd6b29));import{spawnSync}from'node:child_process';function a61_0x2780(){const _0x1a9315=['validation','length','12rQwwQf','Checking\x20npm\x20dist-tags...','pipe','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','json','object','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','prerelease','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','no-skills','1889492IcmnIS','6557784dhsfEo','toString','inherit','Updated\x20to\x20v','5391449kDVFTD','latest','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','message','8jMWmdR','3DKazRr','skills','=1).','852880xCcghO','args','\x20->\x20','/dist-tags','status','stdout','529873yIuPfJ','match','warn','13019337YNQBVb','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','\x20CLI\x20from\x20npm','boolean','install','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','2myoiXR','log','Invalid\x20version:\x20','trim','npm','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','Updating\x20','\x20version\x20from\x20npm.','unknown','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','join','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','/-/package/','run','patch','map','source','stderr','nonInteractive','39lWvmKK','30hCVRQw','cwd','833556lAjOQa','string','Current\x20version:\x20','update','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','timeout','version','Already\x20up\x20to\x20date\x20(v','filter','error','Update\x20failed:\x20','beta','Checking\x20CLI\x20Built-in\x20Skill...','fromEntries','bool','str','Install\x20a\x20specific\x20CLI\x20version'];a61_0x2780=function(){return _0x1a9315;};return a61_0x2780();}import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';function a61_0x2a3c(_0x544455,_0x3608f2){_0x544455=_0x544455-0x1d0;const _0x2780df=a61_0x2780();let _0x2a3cdf=_0x2780df[_0x544455];return _0x2a3cdf;}const updateFlags=[{'name':a61_0xc8cc44(0x1fe),'type':a61_0xc8cc44(0x211),'description':a61_0xc8cc44(0x21f),'default':![]},{'name':'beta','type':'boolean','description':a61_0xc8cc44(0x213),'default':![]},{'name':a61_0xc8cc44(0x1e0),'type':a61_0xc8cc44(0x1db),'description':a61_0xc8cc44(0x1ea)},{'name':a61_0xc8cc44(0x1f7),'type':a61_0xc8cc44(0x211),'description':'Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','default':![]},{'name':a61_0xc8cc44(0x203),'type':'boolean','description':'Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','default':!![],'hidden':!![]}];function parseSemver(_0x132a9a){const _0x366797=a61_0xc8cc44,_0x174975=_0x132a9a['trim']()[_0x366797(0x20c)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x174975)return null;return{'major':Number(_0x174975[0x1]),'minor':Number(_0x174975[0x2]),'patch':Number(_0x174975[0x3]),'prerelease':_0x174975[0x4]};}function compareSemver(_0x58d345,_0x40770e){const _0x1b768c=a61_0xc8cc44,_0x31f1eb=parseSemver(_0x58d345),_0x1c5082=parseSemver(_0x40770e);if(!_0x31f1eb||!_0x1c5082)throw CliErrors[_0x1b768c(0x1eb)]('Version\x20comparison\x20failed.',_0x1b768c(0x1f4));for(const _0x106d9a of['major','minor',_0x1b768c(0x1d2)]){if(_0x31f1eb[_0x106d9a]<_0x1c5082[_0x106d9a])return-0x1;if(_0x31f1eb[_0x106d9a]>_0x1c5082[_0x106d9a])return 0x1;}if(!_0x31f1eb[_0x1b768c(0x1f5)]&&!_0x1c5082['prerelease'])return 0x0;if(!_0x31f1eb[_0x1b768c(0x1f5)])return 0x1;if(!_0x1c5082[_0x1b768c(0x1f5)])return-0x1;if(_0x31f1eb['prerelease']===_0x1c5082[_0x1b768c(0x1f5)])return 0x0;return _0x31f1eb['prerelease']<_0x1c5082['prerelease']?-0x1:0x1;}function getRequestedVersion(_0x505a05){const _0x3db313=a61_0xc8cc44,_0x50957f=_0x505a05[_0x3db313(0x1e9)](_0x3db313(0x1e0))['trim']();if(_0x50957f)return _0x50957f;return String(_0x505a05[_0x3db313(0x206)]?.[0x0]??'')[_0x3db313(0x217)]();}function shouldSkipCliBuiltInSkill(_0x5086b1){const _0x20c0b2=a61_0xc8cc44;return _0x5086b1[_0x20c0b2(0x1e8)]('no-skills')||_0x5086b1['flag'](_0x20c0b2(0x203))===![];}async function validateUpdateFlags(_0x1caf45){const _0x4f8b53=a61_0xc8cc44,_0x5f0608=getRequestedVersion(_0x1caf45),_0x492f5c=[_0x1caf45['bool'](_0x4f8b53(0x1fe))?'latest':'',_0x1caf45[_0x4f8b53(0x1e8)](_0x4f8b53(0x1e5))?_0x4f8b53(0x1e5):'',_0x5f0608?'version':''][_0x4f8b53(0x1e2)](Boolean);if(_0x492f5c[_0x4f8b53(0x1ec)]>0x1)throw CliErrors[_0x4f8b53(0x1eb)](_0x4f8b53(0x21d),_0x4f8b53(0x1f0));if(_0x5f0608&&!parseSemver(_0x5f0608))throw CliErrors[_0x4f8b53(0x1eb)](_0x4f8b53(0x216)+_0x5f0608,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x28c808=a61_0xc8cc44;try{const _0x5b479a=NPM_REGISTRY_BASE_URL+_0x28c808(0x1d0)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x28c808(0x208),_0x4793a4=await fetch(_0x5b479a,{'signal':AbortSignal[_0x28c808(0x1df)](0x2710)});if(!_0x4793a4['ok'])return null;const _0x52a32c=await _0x4793a4[_0x28c808(0x1f1)]();if(!_0x52a32c||typeof _0x52a32c!==_0x28c808(0x1f2))return null;return Object[_0x28c808(0x1e7)](Object['entries'](_0x52a32c)[_0x28c808(0x1e2)](([,_0x5170bb])=>typeof _0x5170bb===_0x28c808(0x1db)&&_0x5170bb['trim']())[_0x28c808(0x1d3)](([_0x5c3572,_0x2aded6])=>[_0x5c3572,String(_0x2aded6)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0x100108){const _0x5586e4=a61_0xc8cc44,_0x40be8e=getRequestedVersion(_0x100108);if(_0x40be8e)return{'version':_0x40be8e,'source':_0x5586e4(0x1e0)};const _0x2882ed=_0x100108[_0x5586e4(0x1e8)](_0x5586e4(0x1e5))?_0x5586e4(0x1e5):'latest',_0x435616=await fetchNpmDistTags(),_0x1f00a7=_0x435616?.[_0x2882ed];if(!_0x1f00a7)return null;return{'version':_0x1f00a7,'source':_0x2882ed};}function shouldInstallTarget(_0x2be5e3,_0x954e0){const _0x4ff7d0=a61_0xc8cc44,_0x3234ea=compareSemver(_0x2be5e3,_0x954e0['version']);if(_0x954e0[_0x4ff7d0(0x1d4)]==='version')return _0x3234ea!==0x0;return _0x3234ea<0x0;}function installCliPackage(_0x169333,_0xf37df7){const _0x21f876=a61_0xc8cc44,_0x2b7b7e=resolveNpmBin(_0x21f876(0x218)),_0x542306=[_0x21f876(0x212),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x169333];console[_0x21f876(0x215)]('*\x20'+[_0x2b7b7e,..._0x542306][_0x21f876(0x21e)]('\x20'));const _0x3e76b7=spawnSync(_0x2b7b7e,_0x542306,{'cwd':process[_0x21f876(0x1d9)](),'stdio':_0xf37df7?_0x21f876(0x1ef):_0x21f876(0x1fb),'env':process.env,'shell':![]});if(_0x3e76b7[_0x21f876(0x209)]===0x0)return{'ok':!![]};let _0x28f607=_0x3e76b7[_0x21f876(0x1e3)]?.[_0x21f876(0x200)]||'exit\x20'+(_0x3e76b7['status']??'unknown');if(_0xf37df7){const _0x398ac0=_0x3e76b7[_0x21f876(0x1d5)]?_0x3e76b7[_0x21f876(0x1d5)][_0x21f876(0x1fa)]()[_0x21f876(0x217)]():'',_0x3095da=_0x3e76b7[_0x21f876(0x20a)]?_0x3e76b7['stdout'][_0x21f876(0x1fa)]()[_0x21f876(0x217)]():'';if(_0x398ac0)_0x28f607=_0x398ac0;else{if(_0x3095da)_0x28f607=_0x3095da;}}return{'ok':![],'error':_0x28f607};}async function installCliBuiltInSkill(_0x52acf3){const _0x351fff=a61_0xc8cc44;console['log'](_0x351fff(0x1e6));const _0x285bd6=runNpxSkillsAddGlobal(process[_0x351fff(0x1d9)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x52acf3?_0x351fff(0x1ef):_0x351fff(0x1fb)});if(_0x285bd6['skipped']){console[_0x351fff(0x215)]('\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20('+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x351fff(0x204));return;}if(_0x285bd6['ok']){console['log'](_0x351fff(0x1f3));return;}console[_0x351fff(0x20d)](_0x351fff(0x219)+(_0x285bd6[_0x351fff(0x1e3)]||'unknown')),console[_0x351fff(0x215)](_0x351fff(0x1ff));}async function execute(_0x215191){const _0x5382a3=a61_0xc8cc44;await validateUpdateFlags(_0x215191);const _0x4a688e=getCliVersion();console[_0x5382a3(0x215)](_0x5382a3(0x1dc)+_0x4a688e),console[_0x5382a3(0x215)](_0x5382a3(0x1ee));const _0x71e2e=await resolveTargetVersion(_0x215191);if(!_0x71e2e){const _0x2c3314=_0x215191[_0x5382a3(0x1e8)](_0x5382a3(0x1e5))?_0x5382a3(0x1e5):_0x5382a3(0x1fe),_0x14c7dc='Unable\x20to\x20resolve\x20'+_0x2c3314+_0x5382a3(0x21b);return console[_0x5382a3(0x20d)](_0x14c7dc),console['log'](_0x5382a3(0x20f)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x2c3314),{'ok':![]};}if(!shouldInstallTarget(_0x4a688e,_0x71e2e)){const _0x402f94=_0x71e2e[_0x5382a3(0x1d4)]===_0x5382a3(0x1e0)?'Already\x20on\x20requested\x20version\x20(v'+_0x71e2e[_0x5382a3(0x1e0)]+').':_0x5382a3(0x1e1)+_0x71e2e[_0x5382a3(0x1e0)]+').';return console[_0x5382a3(0x215)](_0x402f94),shouldSkipCliBuiltInSkill(_0x215191)?console[_0x5382a3(0x215)](_0x5382a3(0x1de)):await installCliBuiltInSkill(_0x215191[_0x5382a3(0x1d6)]),{'ok':!![]};}console[_0x5382a3(0x215)](_0x5382a3(0x21a)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x4a688e+_0x5382a3(0x207)+_0x71e2e[_0x5382a3(0x1e0)]);const _0x4526df=installCliPackage(_0x71e2e[_0x5382a3(0x1e0)],_0x215191[_0x5382a3(0x1d6)]);if(!_0x4526df['ok']){const _0x4d19fa=_0x5382a3(0x1e4)+(_0x4526df[_0x5382a3(0x1e3)]||_0x5382a3(0x21c));return console['error'](_0x4d19fa),console['log'](_0x5382a3(0x1f6)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x71e2e[_0x5382a3(0x1e0)]),{'ok':![]};}return console[_0x5382a3(0x215)](_0x5382a3(0x1fc)+_0x71e2e[_0x5382a3(0x1e0)]+'.'),console[_0x5382a3(0x215)](_0x5382a3(0x220)),shouldSkipCliBuiltInSkill(_0x215191)?console[_0x5382a3(0x215)](_0x5382a3(0x1de)):await installCliBuiltInSkill(_0x215191[_0x5382a3(0x1d6)]),{'ok':!![]};}export const updateDefinition={'service':a61_0xc8cc44(0x1dd),'command':a61_0xc8cc44(0x1d1),'description':'Update\x20'+CLI_BIN_NAME+a61_0xc8cc44(0x210),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a62_0x4c83ef=a62_0x4cfe;(function(_0x16c7d0,_0x3d5c12){const _0x7b5371=a62_0x4cfe,_0xc71532=_0x16c7d0();while(!![]){try{const _0x432fbc=parseInt(_0x7b5371(0x193))/0x1*(-parseInt(_0x7b5371(0x195))/0x2)+parseInt(_0x7b5371(0x18a))/0x3+parseInt(_0x7b5371(0x192))/0x4+-parseInt(_0x7b5371(0x18c))/0x5*(-parseInt(_0x7b5371(0x1af))/0x6)+-parseInt(_0x7b5371(0x19a))/0x7*(-parseInt(_0x7b5371(0x1b8))/0x8)+parseInt(_0x7b5371(0x1a9))/0x9+-parseInt(_0x7b5371(0x1a7))/0xa*(parseInt(_0x7b5371(0x19d))/0xb);if(_0x432fbc===_0x3d5c12)break;else _0xc71532['push'](_0xc71532['shift']());}catch(_0x12b161){_0xc71532['push'](_0xc71532['shift']());}}}(a62_0x5dfc,0x86dd5));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':a62_0x4c83ef(0x1aa),'type':a62_0x4c83ef(0x189),'description':a62_0x4c83ef(0x187)},{'name':a62_0x4c83ef(0x1a3),'type':a62_0x4c83ef(0x189),'description':a62_0x4c83ef(0x1b5)},{'name':a62_0x4c83ef(0x1b6),'type':a62_0x4c83ef(0x189),'description':a62_0x4c83ef(0x1ad),'enum':[...RUNTIME_ENV_VALUES]},{'name':a62_0x4c83ef(0x188),'type':a62_0x4c83ef(0x198),'description':a62_0x4c83ef(0x197),'default':![]}];async function executeWorkspaceUse(_0x3f3278,_0x364609){const _0xb5cd31=a62_0x4c83ef,_0x3ef528=_0x3f3278[_0xb5cd31(0x1bc)](_0xb5cd31(0x1aa))[_0xb5cd31(0x1b1)](),_0xccb49e=_0x3f3278[_0xb5cd31(0x1bc)](_0xb5cd31(0x1a3))['trim'](),_0x1c62b1=_0x3f3278[_0xb5cd31(0x1bc)](_0xb5cd31(0x1b6))['trim'](),_0x637c2a=resolveWorkspaceEnv(_0x1c62b1||_0x3f3278[_0xb5cd31(0x19b)]||DEFAULT_CONFIG_VALUES['env']);if(!_0x3ef528&&!_0xccb49e)throw CliErrors[_0xb5cd31(0x18b)](_0xb5cd31(0x1b4),_0xb5cd31(0x186)+CLI_BIN_NAME+_0xb5cd31(0x19e)+_0x364609+_0xb5cd31(0x1bd)+CLI_BIN_NAME+_0xb5cd31(0x19e)+_0x364609+_0xb5cd31(0x1a8));const _0x2be646=_0xccb49e||await resolveRemoteAppCode({'command':_0x364609,'appName':_0x3ef528,'env':_0x637c2a,'accessKey':_0x3f3278[_0xb5cd31(0x1be)]}),_0xe8d7e6=writeWorkspaceConfig({'command':_0x364609,'appName':_0x3ef528,'appcode':_0x2be646,'env':_0x637c2a,'shouldWriteEnv':!!_0x1c62b1,'accessKey':_0x3f3278['accessKey']});return{'ok':!![],'data':{'configPath':_0xe8d7e6,'app':_0x3ef528||null,'appcode':_0x2be646,'env':_0x1c62b1?_0x637c2a:null,'accessKeyWritten':![],'command':_0xb5cd31(0x191)+_0x364609},'message':buildWorkspaceMessage(_0xe8d7e6,_0x3ef528,_0x2be646,_0x1c62b1?_0x637c2a:undefined)};}async function resolveRemoteAppCode(_0xbc9791){const _0x537a67=a62_0x4c83ef;if(!_0xbc9791[_0x537a67(0x1be)])throw CliErrors[_0x537a67(0x18d)]('Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20'+CLI_BIN_NAME+'\x20workspace\x20'+_0xbc9791[_0x537a67(0x1a6)]+'.');const {setActiveAK:_0x40d138}=await import(_0x537a67(0x1bf)),{getRemoteAppList:_0x2c77df}=await import(_0x537a67(0x1ac));_0x40d138(_0xbc9791['accessKey']);const _0x240bb6=await _0x2c77df({'env':_0xbc9791['env'],'accessKey':_0xbc9791[_0x537a67(0x1be)],'noCache':![]}),_0x1d5cba=findAppByName(_0x240bb6[_0x537a67(0x1b9)],_0xbc9791[_0x537a67(0x19f)]);if(_0x1d5cba&&!isRuntimeAccessibleApp(_0x1d5cba))throw runtimeInaccessibleAppError(_0x1d5cba,'\x22'+_0xbc9791[_0x537a67(0x19f)]+'\x22');const _0x817e4c=_0x1d5cba?.[_0x537a67(0x1a2)]?.['trim']();if(_0x817e4c)return _0x817e4c;const _0x19d2ca=_0x240bb6[_0x537a67(0x1b9)][_0x537a67(0x1ba)](_0x18c38c=>_0x18c38c[_0x537a67(0x19f)])[_0x537a67(0x1b0)](Boolean),_0x28dfde=_0x19d2ca[_0x537a67(0x18f)]?_0x537a67(0x1b7)+Array[_0x537a67(0x18e)](new Set(_0x19d2ca))[_0x537a67(0x185)](',\x20')+'.':_0x537a67(0x190)+CLI_BIN_NAME+_0x537a67(0x1a4);throw CliErrors[_0x537a67(0x18b)]('App\x20\x22'+_0xbc9791[_0x537a67(0x19f)]+'\x22\x20not\x20found.',_0x28dfde);}function writeWorkspaceConfig(_0x124dd8){const _0x28ef09=a62_0x4c83ef,_0x4c39e8=resolveWriteConfigPath(_0x28ef09(0x1bb)),_0xad3822=readConfigFile(_0x4c39e8);_0x124dd8[_0x28ef09(0x1ae)]&&(_0xad3822[_0x28ef09(0x1b6)]=_0x124dd8[_0x28ef09(0x1b6)]);if(_0x124dd8[_0x28ef09(0x19f)]){const _0x46f4f4=isRecord(_0xad3822[_0x28ef09(0x199)])?{..._0xad3822[_0x28ef09(0x199)]}:{},_0x1f009e=isRecord(_0x46f4f4[_0x124dd8[_0x28ef09(0x19f)]])?_0x46f4f4[_0x124dd8[_0x28ef09(0x19f)]]:{};_0x46f4f4[_0x124dd8['appName']]={..._0x1f009e,'appcode':_0x124dd8[_0x28ef09(0x1a3)]},_0xad3822[_0x28ef09(0x199)]=_0x46f4f4,_0xad3822['defaultApp']=_0x124dd8[_0x28ef09(0x19f)];if(_0xad3822[_0x28ef09(0x1aa)])delete _0xad3822['app'];return writeAndReturn(_0x4c39e8,_0xad3822);}_0xad3822[_0x28ef09(0x1a3)]=_0x124dd8[_0x28ef09(0x1a3)];if(_0xad3822[_0x28ef09(0x1aa)])delete _0xad3822[_0x28ef09(0x1aa)];return writeAndReturn(_0x4c39e8,_0xad3822);}function writeAndReturn(_0x56eff0,_0x1420f6){return writeConfigFile(_0x56eff0,_0x1420f6),_0x56eff0;}function resolveWorkspaceEnv(_0x596f48){const _0x17aa17=a62_0x4c83ef;if(RUNTIME_ENV_VALUES['includes'](_0x596f48))return _0x596f48;throw CliErrors[_0x17aa17(0x18b)]('Invalid\x20env\x20\x22'+_0x596f48+_0x17aa17(0x194)+RUNTIME_ENV_VALUES[_0x17aa17(0x185)](',\x20'));}function buildWorkspaceMessage(_0x41a452,_0x2978f0,_0x8dea23,_0x82de31){const _0x6eabd2=a62_0x4c83ef,_0x40165a=_0x2978f0?_0x2978f0+'\x20('+_0x8dea23+')':_0x8dea23,_0x175ecc=_0x82de31?_0x6eabd2(0x1c0)+_0x82de31:'';return _0x6eabd2(0x1a5)+_0x41a452+_0x6eabd2(0x1a0)+_0x40165a+_0x175ecc+'\x0aAccessKey:\x20not\x20written';}function isRecord(_0x3675d1){return typeof _0x3675d1==='object'&&_0x3675d1!==null&&!Array['isArray'](_0x3675d1);}function a62_0x5dfc(){const _0x567ecd=['Run\x20`','workspace\x20','2969116Aotfgb','158sHXSYJ','\x22.\x20Allowed:\x20','11486PpdMGk','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','boolean','apps','37009pvOkYO','envName','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','44Suysdh','\x20workspace\x20','appName','\x0aDefault\x20app:\x20','init','appCode','appcode','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','Workspace\x20configured.\x0aConfig\x20file:\x20','command','4536710nlXmYr','\x20--appcode\x20<code>\x20[--env\x20daily]','5453595xPZISF','app','write','../../commands/app/remote-source.js','Target\x20environment','shouldWriteEnv','6entBaZ','filter','trim','use','workspace','Missing\x20workspace\x20app\x20selector.','App\x20code\x20to\x20bind\x20directly','env','Available\x20apps:\x20','584QBVSkj','items','map','project','str','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','accessKey','../../core/api-client.js','\x0aEnv:\x20','join','Usage:\x20','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','yes','string','1585962ViQtac','validation','5058220AIIhMo','authRequired','from','length'];a62_0x5dfc=function(){return _0x567ecd;};return a62_0x5dfc();}function makeWorkspaceCommand(_0x1069d0){const _0x5c7a7c=a62_0x4c83ef;return{'service':_0x5c7a7c(0x1b3),'command':_0x1069d0,'description':_0x1069d0==='init'?_0x5c7a7c(0x19c):_0x5c7a7c(0x196),'risk':_0x5c7a7c(0x1ab),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x52390c){return executeWorkspaceUse(_0x52390c,_0x1069d0);}};}function a62_0x4cfe(_0x318d64,_0x369f8e){_0x318d64=_0x318d64-0x185;const _0x5dfcf7=a62_0x5dfc();let _0x4cfec7=_0x5dfcf7[_0x318d64];return _0x4cfec7;}export const workspaceDefinitions=[makeWorkspaceCommand(a62_0x4c83ef(0x1a1)),makeWorkspaceCommand(a62_0x4c83ef(0x1b2))];
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a63_0x1ac4ef=a63_0x1529;(function(_0x3dfd0e,_0x1c0e6f){const _0xa349c0=a63_0x1529,_0x2cdcd5=_0x3dfd0e();while(!![]){try{const _0x47ffa6=parseInt(_0xa349c0(0x1c6))/0x1*(-parseInt(_0xa349c0(0x1b1))/0x2)+parseInt(_0xa349c0(0x1b5))/0x3+parseInt(_0xa349c0(0x1bb))/0x4+parseInt(_0xa349c0(0x1b4))/0x5*(-parseInt(_0xa349c0(0x1c8))/0x6)+parseInt(_0xa349c0(0x1c3))/0x7+-parseInt(_0xa349c0(0x1c7))/0x8*(-parseInt(_0xa349c0(0x1af))/0x9)+parseInt(_0xa349c0(0x1b6))/0xa;if(_0x47ffa6===_0x1c0e6f)break;else _0x2cdcd5['push'](_0x2cdcd5['shift']());}catch(_0x42f405){_0x2cdcd5['push'](_0x2cdcd5['shift']());}}}(a63_0x3612,0x9b55f));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':a63_0x1ac4ef(0x1b8),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a63_0x1ac4ef(0x1c4)],'importable':!![]},'format':{'description':a63_0x1ac4ef(0x1b9),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a63_0x1ac4ef(0x1c1)],'importable':!![]},'pageSize':{'description':a63_0x1ac4ef(0x1c5),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a63_0x1ac4ef(0x1cd),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a63_0x1ac4ef(0x1cb),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':'Override\x20runtime\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a63_0x1ac4ef(0x1be),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a63_0x1ac4ef(0x1ba),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'locale':{'description':a63_0x1ac4ef(0x1b0),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a63_0x1ac4ef(0x1bd)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a63_0x1ac4ef(0x1ce)](CONFIG_FIELD_SCHEMAS)[a63_0x1ac4ef(0x1c9)](([,_0x57edf0])=>_0x57edf0['cliSettableTopLevel'])[a63_0x1ac4ef(0x1b7)](([_0x24a990])=>_0x24a990));export const CONFIG_ENUM_VALUES=Object[a63_0x1ac4ef(0x1ca)](Object[a63_0x1ac4ef(0x1ce)](CONFIG_FIELD_SCHEMAS)[a63_0x1ac4ef(0x1c9)](([,_0x1ef50d])=>_0x1ef50d[a63_0x1ac4ef(0x1bc)])['map'](([_0x208197,_0x4de122])=>[_0x208197,[..._0x4de122['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a63_0x1ac4ef(0x1ce)](CONFIG_FIELD_SCHEMAS)[a63_0x1ac4ef(0x1c9)](([,_0x1540ba])=>_0x1540ba[a63_0x1ac4ef(0x1c2)])[a63_0x1ac4ef(0x1b7)](([_0x53613d])=>_0x53613d);export function getConfigFieldSchema(_0x2e3581){return CONFIG_FIELD_SCHEMAS[_0x2e3581];}export function getConfigEnumValues(_0x48a13f){const _0x31046f=a63_0x1ac4ef;return getConfigFieldSchema(_0x48a13f)?.[_0x31046f(0x1bc)];}export function getConfigDefaultValue(_0x249746){const _0x5ef043=a63_0x1ac4ef;return getConfigFieldSchema(_0x249746)?.[_0x5ef043(0x1b2)];}export function isTopLevelConfigKey(_0x30fff7){return TOP_LEVEL_CONFIG_KEYS['has'](_0x30fff7);}export function isLegacyCompatConfigKey(_0x312496){const _0x3f4bce=a63_0x1ac4ef;return getConfigFieldSchema(_0x312496)?.[_0x3f4bce(0x1cc)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0xd3ac5d){const _0x3b2446=a63_0x1ac4ef;return[..._0xd3ac5d][_0x3b2446(0x1bf)](',\x20');}function a63_0x3612(){const _0x5963b1=['enumValues','locale','Override\x20SkillHub\x20domain','join','Config\x20key.\x20Top-level:\x20','format','importable','493591IawzUv','env','Default\x20page\x20size','4cGjYTk','40JGmJaQ','3473502MwCEne','filter','fromEntries','Override\x20user\x20domain','legacyCompatOnly','Override\x20API\x20domain','entries','1942506bUAuXS','Locale','469930FhcXEu','defaultValue',';\x20local\x20alias:\x20apps.<alias>.appcode','10RIWAfD','1459641Hatkbh','5455570iVkxad','map','Target\x20environment','Default\x20output\x20format','Risk\x20level','2208648pWEADI'];a63_0x3612=function(){return _0x5963b1;};return a63_0x3612();}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}function a63_0x1529(_0x4fa595,_0x412ac5){_0x4fa595=_0x4fa595-0x1af;const _0x3612c2=a63_0x3612();let _0x152932=_0x3612c2[_0x4fa595];return _0x152932;}export function getConfigCommandKeyDescription(){const _0x1de36d=a63_0x1ac4ef;return _0x1de36d(0x1c0)+getTopLevelConfigKeySummary()+_0x1de36d(0x1b3);}export function buildAppProfileListFields(_0x4ed004){return{'env':_0x4ed004,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a64_0x39b4(){const _0x535288=['114090xIeaJD','31378lBffja','2405740sVBVGH','2873906QRhcMz','Published','UNPUBLISH','2307894jtqmkc','20WtPVIi','2354320feeAyA','5SvptgV','9wALshJ','2437324HVuRdv'];a64_0x39b4=function(){return _0x535288;};return a64_0x39b4();}const a64_0x1127a1=a64_0x252c;function a64_0x252c(_0x549f9e,_0x5b2024){_0x549f9e=_0x549f9e-0x125;const _0x39b4d0=a64_0x39b4();let _0x252c95=_0x39b4d0[_0x549f9e];return _0x252c95;}(function(_0x39c844,_0x244fd1){const _0x4f51a7=a64_0x252c,_0x9b2768=_0x39c844();while(!![]){try{const _0x1de305=-parseInt(_0x4f51a7(0x125))/0x1*(parseInt(_0x4f51a7(0x12b))/0x2)+parseInt(_0x4f51a7(0x130))/0x3+parseInt(_0x4f51a7(0x12f))/0x4+-parseInt(_0x4f51a7(0x12d))/0x5*(parseInt(_0x4f51a7(0x12a))/0x6)+parseInt(_0x4f51a7(0x127))/0x7+parseInt(_0x4f51a7(0x12c))/0x8*(-parseInt(_0x4f51a7(0x12e))/0x9)+parseInt(_0x4f51a7(0x126))/0xa;if(_0x1de305===_0x244fd1)break;else _0x9b2768['push'](_0x9b2768['shift']());}catch(_0x5a7e6d){_0x9b2768['push'](_0x9b2768['shift']());}}}(a64_0x39b4,0x4aa6e));export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a64_0x1127a1(0x129)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a64_0x1127a1(0x128)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a65_0x2ef5(_0x1debb3,_0xf2c5e3){_0x1debb3=_0x1debb3-0x148;const _0x191696=a65_0x1916();let _0x2ef59e=_0x191696[_0x1debb3];return _0x2ef59e;}const a65_0x56c2f6=a65_0x2ef5;(function(_0x1ef893,_0x130000){const _0x16a703=a65_0x2ef5,_0x2d0fcd=_0x1ef893();while(!![]){try{const _0x45bb7c=parseInt(_0x16a703(0x14d))/0x1*(parseInt(_0x16a703(0x14e))/0x2)+-parseInt(_0x16a703(0x14b))/0x3+-parseInt(_0x16a703(0x148))/0x4+parseInt(_0x16a703(0x14c))/0x5*(parseInt(_0x16a703(0x151))/0x6)+parseInt(_0x16a703(0x149))/0x7+parseInt(_0x16a703(0x152))/0x8*(-parseInt(_0x16a703(0x153))/0x9)+parseInt(_0x16a703(0x14a))/0xa;if(_0x45bb7c===_0x130000)break;else _0x2d0fcd['push'](_0x2d0fcd['shift']());}catch(_0x119288){_0x2d0fcd['push'](_0x2d0fcd['shift']());}}}(a65_0x1916,0xf3ba5));export const AUTH_MODE={'ClientAk':a65_0x56c2f6(0x150)};function a65_0x1916(){const _0x4da2c9=['276UWxHZf','40ccgPiA','3211767VDpWRw','866812DZlOoB','12825015BppaRL','12763800RcOdrP','2419581xlMzVi','65875PgwAQd','37aPGgxH','4934DFJslu','ClientAk','client-ak'];a65_0x1916=function(){return _0x4da2c9;};return a65_0x1916();}export function isAuthMode(_0x3b9095){const _0x4e6b67=a65_0x56c2f6;return _0x3b9095===AUTH_MODE[_0x4e6b67(0x14f)];}
|