@lovrabet/lovrabet-cli 2.1.18 → 2.1.19-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- 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.d.ts +1 -0
- 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/install-target.d.ts +9 -0
- package/lib/skills/runtime-skill-sync/install-target.js +1 -0
- package/lib/skills/runtime-skill-sync/links.d.ts +5 -4
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.d.ts +2 -2
- 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/types.d.ts +17 -0
- 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.d.ts +2 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a51_0x5adf(){const _0xf5edfc=['\x20has\x20scope=\x22','skillCode','1965608agSKOP','status','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','POST','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','errors','warnings','bool','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','343479MvYCKJ','(unknown)','valid','company','scope','PRIVATE','savedSkill','Personal','unknown','validation','3156376tcJaWJ','resolvedVersion','appcode','confirmWarnings','NAMESPACE_ONLY','personal','1803108BOMRdV','appCode','payload','accessKey','existing','Updated\x20personal\x20Skill\x20','submitted','Created\x20personal\x20Skill\x20','str','files','/publish/validate','../../core/api-client.js','397148ndmYpV','Submitted\x20company\x20Skill\x20','\x20for\x20review','publishInput','\x20version\x20','version','authRequired','input','resolvedSlug','../../skills/runtime-skill-sync.js','2SKhUGW','2223347wokRUg','dir','identical','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','metadata','/api/cli/v1/skills/','257300nBKdHR','Company','confirm-warnings'];a51_0x5adf=function(){return _0xf5edfc;};return a51_0x5adf();}(function(_0x4bc270,_0x32d12f){const _0x4cba69=a51_0x20e8,_0x1bc535=_0x4bc270();while(!![]){try{const _0x23c39c=-parseInt(_0x4cba69(0x20c))/0x1+parseInt(_0x4cba69(0x1db))/0x2*(parseInt(_0x4cba69(0x1f0))/0x3)+-parseInt(_0x4cba69(0x1e7))/0x4+parseInt(_0x4cba69(0x1e2))/0x5+parseInt(_0x4cba69(0x200))/0x6+parseInt(_0x4cba69(0x1dc))/0x7+parseInt(_0x4cba69(0x1fa))/0x8;if(_0x23c39c===_0x32d12f)break;else _0x1bc535['push'](_0x1bc535['shift']());}catch(_0x52b413){_0x1bc535['push'](_0x1bc535['shift']());}}}(a51_0x5adf,0x46d29));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';function a51_0x20e8(_0x5e678b,_0x44b258){_0x5e678b=_0x5e678b-0x1d4;const _0x5adf5f=a51_0x5adf();let _0x20e899=_0x5adf5f[_0x5e678b];return _0x20e899;}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(_0x162f14){const _0x3b4068=a51_0x20e8,{getRuntimeSkillByCode:_0xf07261,validateRuntimeSkillPublish:_0x15a67b}=await import(_0x3b4068(0x20b)),{readPushDirectory:_0x478f35,resolvePushDirectoryIdentity:_0x1ae6c9}=await import('../../skills/runtime-skill-sync.js');if(!_0x162f14[_0x3b4068(0x203)])throw CliErrors[_0x3b4068(0x1d7)]();const _0x36fd28=resolvePushScope(_0x162f14),_0x366cc9=validateSkillDirectory(_0x162f14[_0x3b4068(0x208)]('dir'));throwIfSkillValidationFailed(_0x366cc9);const _0x1be127=_0x1ae6c9(_0x366cc9['dir'],_0x162f14[_0x3b4068(0x201)],remoteFirstMetadataOptions()),_0x1155bb=await _0xf07261(_0x162f14[_0x3b4068(0x201)],_0x1be127[_0x3b4068(0x1e6)]);throwIfBuiltinPushTarget(_0x1155bb);if(_0x36fd28===_0x3b4068(0x1f3)){const _0x233b20=_0x478f35(_0x366cc9['dir'],_0x162f14[_0x3b4068(0x201)],remoteMissingCompanyReadOptions()),_0xf99a38=await _0x15a67b(_0x162f14[_0x3b4068(0x201)],_0x233b20[_0x3b4068(0x1d8)],{'visibility':_0x3b4068(0x1fe)});return{'method':_0x3b4068(0x1ea),'url':_0x3b4068(0x1e1)+_0x162f14[_0x3b4068(0x201)]+'/publish/validate','body':{'skillCode':_0x233b20[_0x3b4068(0x1e6)],'visibility':'NAMESPACE_ONLY','valid':_0xf99a38[_0x3b4068(0x1f2)],'errors':_0xf99a38[_0x3b4068(0x1ec)],'warnings':_0xf99a38[_0x3b4068(0x1ed)],'resolvedSlug':_0xf99a38[_0x3b4068(0x1d9)],'resolvedVersion':_0xf99a38[_0x3b4068(0x1fb)]},'description':_0x3b4068(0x1df)};}if(_0x1155bb&&_0x1155bb[_0x3b4068(0x1f4)]!==_0x3b4068(0x1ff))throw CliErrors['validation'](_0x3b4068(0x1e9)+_0x1be127[_0x3b4068(0x1e6)]+_0x3b4068(0x1e5)+(_0x1155bb[_0x3b4068(0x1f4)]??_0x3b4068(0x1f8))+'\x22.');const _0x123b7e=_0x478f35(_0x366cc9[_0x3b4068(0x1dd)],_0x162f14[_0x3b4068(0x201)],_0x1155bb?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions()),_0x22925f=await _0x15a67b(_0x162f14[_0x3b4068(0x201)],_0x123b7e['input'],{'visibility':_0x3b4068(0x1f5)});return{'method':'POST','url':_0x3b4068(0x1e1)+_0x162f14[_0x3b4068(0x201)]+_0x3b4068(0x20a),'body':{'skillCode':_0x123b7e['skillCode'],'visibility':_0x3b4068(0x1f5),'valid':_0x22925f['valid'],'errors':_0x22925f['errors'],'warnings':_0x22925f[_0x3b4068(0x1ed)],'resolvedSlug':_0x22925f[_0x3b4068(0x1d9)],'resolvedVersion':_0x22925f['resolvedVersion']},'description':_0x3b4068(0x1eb)};}export async function skillPushExecute(_0x2d0b0f){const _0x276986=a51_0x20e8,{createPersonalRuntimeSkill:_0x36aa76,downloadRuntimeSkillPackage:_0x558529,getRuntimeSkillByCode:_0x51796b,publishCompanyRuntimeSkill:_0x45b613,updatePersonalRuntimeSkill:_0x2af770,validateRuntimeSkillPublish:_0x3d6ad0}=await import(_0x276986(0x20b)),{verifyRuntimeSkillPackage:_0x28c3f6,verifyRuntimeSkillBundle:_0x244359,readPushDirectory:_0x1c1c39,refreshPushDirectoryMetadataFromRemote:_0x4c3e1c,recordPushedRuntimeSkill:_0x2f1353,resolvePushDirectoryIdentity:_0x440a32}=await import(_0x276986(0x1da));if(!_0x2d0b0f[_0x276986(0x203)])throw CliErrors[_0x276986(0x1d7)]();const _0x675c7d=resolvePushScope(_0x2d0b0f),_0x1c2b76=_0x2d0b0f[_0x276986(0x1ee)](_0x276986(0x1e4))||_0x2d0b0f['bool'](_0x276986(0x1fd)),_0xc7ee39=validateSkillDirectory(_0x2d0b0f['str']('dir'));throwIfSkillValidationFailed(_0xc7ee39);const _0x128576=_0xc7ee39['dir'];let _0x5d5f20;if(_0x675c7d===_0x276986(0x1f3)){const _0x1ed3d6=_0x440a32(_0x128576,_0x2d0b0f['appCode'],remoteFirstMetadataOptions()),_0x39c7de=await _0x51796b(_0x2d0b0f[_0x276986(0x201)],_0x1ed3d6[_0x276986(0x1e6)]);throwIfBuiltinPushTarget(_0x39c7de);if(_0x39c7de)_0x4c3e1c(_0x128576,_0x39c7de,_0x2d0b0f[_0x276986(0x201)]);const _0x41b43e=_0x1c1c39(_0x128576,_0x2d0b0f['appCode'],_0x39c7de?{'targetScope':'company','ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0x5d5f20={'scope':_0x276986(0x1f3),'payload':_0x41b43e,'publishInput':_0x41b43e[_0x276986(0x1d8)],'remoteForPreflight':_0x39c7de,'warnings':[]};}else{const _0x40f54d=_0x2d0b0f[_0x276986(0x208)](_0x276986(0x1fc))['trim'](),_0x15b81f=Boolean(_0x40f54d),_0x2443cf=allowRetargetArgs(_0x15b81f),_0x301575=_0x440a32(_0x128576,_0x2d0b0f[_0x276986(0x201)],{...remoteFirstMetadataOptions(),..._0x2443cf[0x0]}),_0x5b0d1b=await _0x51796b(_0x2d0b0f['appCode'],_0x301575[_0x276986(0x1e6)]);throwIfBuiltinPushTarget(_0x5b0d1b);if(_0x5b0d1b){if(_0x5b0d1b[_0x276986(0x1f4)]!==_0x276986(0x1ff)){if(_0x15b81f)throw CliErrors[_0x276986(0x1f9)](_0x276986(0x1e9)+_0x301575[_0x276986(0x1e6)]+_0x276986(0x1e5)+(_0x5b0d1b[_0x276986(0x1f4)]??_0x276986(0x1f8))+'\x22.');_0x4c3e1c(_0x128576,_0x5b0d1b,_0x2d0b0f[_0x276986(0x201)]);}else!_0x15b81f&&_0x4c3e1c(_0x128576,_0x5b0d1b,_0x2d0b0f[_0x276986(0x201)]);}const _0xb2b223=_0x1c1c39(_0x128576,_0x2d0b0f[_0x276986(0x201)],_0x5b0d1b?remotePersonalReadOptions(_0x15b81f,_0x2443cf[0x0]):remoteMissingPersonalReadOptions(_0x2443cf[0x0])),_0x284961=_0x5b0d1b?.['scope']==='personal'&&_0x5b0d1b[_0x276986(0x1e6)]===_0xb2b223[_0x276986(0x1e6)]?_0x5b0d1b:undefined,_0x28e6fe=_0x15b81f&&_0x284961?withRetargetExistingMetadata(_0xb2b223[_0x276986(0x1d8)],_0x284961,{'preferInputSkillName':Boolean(_0xb2b223['frontmatterDisplayName'])}):_0xb2b223[_0x276986(0x1d8)],_0x457738=_0x15b81f?buildRetargetWarning(_0x301575[_0x276986(0x1e0)],_0x2d0b0f[_0x276986(0x201)]):[];_0x5d5f20={'scope':'personal','payload':_0xb2b223,'publishInput':_0x28e6fe,'remoteForPreflight':_0x284961,'existing':_0x284961,'warnings':[..._0xc7ee39[_0x276986(0x1ed)],..._0x457738]};}const _0x5c98bd=await runRemoteContentPreflight({'scope':_0x5d5f20[_0x276986(0x1f4)],'remote':_0x5d5f20['remoteForPreflight'],'publishInput':_0x5d5f20['publishInput'],'skillCode':_0x5d5f20[_0x276986(0x202)][_0x276986(0x1e6)],'appCode':_0x2d0b0f[_0x276986(0x201)],'downloadRuntimeSkillPackage':_0x558529,'verifyRuntimeSkillBundle':_0x244359});if(_0x5c98bd[_0x276986(0x1e8)]===_0x276986(0x1de))return _0x5d5f20[_0x276986(0x1f4)]===_0x276986(0x1f3)?_0x2f1353(_0x128576,_0x5c98bd[_0x276986(0x1f6)],_0x2d0b0f[_0x276986(0x201)],{'scope':_0x276986(0x1f3)}):_0x2f1353(_0x128576,_0x5c98bd[_0x276986(0x1f6)],_0x2d0b0f[_0x276986(0x201)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x5c98bd[_0x276986(0x1f6)]),'scope':_0x5d5f20[_0x276986(0x1f4)],..._0x5d5f20[_0x276986(0x1f4)]===_0x276986(0x1ff)?{'warnings':_0x5d5f20['warnings']}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0x5d5f20[_0x276986(0x1f4)])+'\x20Skill\x20'+_0x5d5f20[_0x276986(0x202)]['skillCode']+_0x276986(0x1ef)};if(_0x5d5f20[_0x276986(0x1f4)]==='company'){const _0x29f218=await _0x3d6ad0(_0x2d0b0f[_0x276986(0x201)],_0x5d5f20[_0x276986(0x1d4)],{'visibility':_0x276986(0x1fe)});throwIfPublishValidationFailed(_0x276986(0x1f3),_0x5d5f20['payload'][_0x276986(0x1e6)],_0x29f218),throwIfUnconfirmedPublishWarnings('company',_0x5d5f20[_0x276986(0x202)][_0x276986(0x1e6)],_0x29f218['warnings'],_0x1c2b76);const _0x13eb43=await _0x45b613(_0x2d0b0f['appCode'],_0x5d5f20[_0x276986(0x1d4)],{'confirmWarnings':_0x1c2b76});return _0x2f1353(_0x128576,{..._0x13eb43,'files':_0x5d5f20[_0x276986(0x1d4)]['files']},_0x2d0b0f[_0x276986(0x201)],{'scope':_0x276986(0x1f3)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x13eb43),'scope':_0x276986(0x1f3),'reviewState':_0x276986(0x206),'submittedForReview':!![],'validation':{'warnings':_0x29f218[_0x276986(0x1ed)]}},'message':_0x276986(0x20d)+_0x5d5f20[_0x276986(0x202)]['skillCode']+_0x276986(0x1d5)+(_0x13eb43[_0x276986(0x1d6)]??_0x276986(0x1f1))+_0x276986(0x20e)};}const _0x148e8b=await _0x3d6ad0(_0x2d0b0f[_0x276986(0x201)],_0x5d5f20[_0x276986(0x1d4)],{'visibility':_0x276986(0x1f5)});throwIfPublishValidationFailed(_0x276986(0x1ff),_0x5d5f20[_0x276986(0x202)]['skillCode'],_0x148e8b),throwIfUnconfirmedPublishWarnings('personal',_0x5d5f20[_0x276986(0x202)]['skillCode'],_0x148e8b[_0x276986(0x1ed)],_0x1c2b76);const _0x194a9e={'confirmWarnings':_0x1c2b76},_0xda376b=_0x5d5f20[_0x276986(0x204)]?await _0x2af770(_0x5d5f20[_0x276986(0x202)][_0x276986(0x1e6)],_0x2d0b0f[_0x276986(0x201)],_0x5d5f20[_0x276986(0x1d4)],_0x194a9e):await _0x36aa76(_0x2d0b0f[_0x276986(0x201)],_0x5d5f20[_0x276986(0x1d4)],_0x194a9e);let _0x3c3e2a=_0xda376b;if(isMultiFileManifest(_0x5d5f20['publishInput']['files'])){const _0x59475e=await _0x558529(_0x276986(0x1ff),_0xda376b[_0x276986(0x1e6)]||_0x5d5f20[_0x276986(0x202)][_0x276986(0x1e6)],_0x2d0b0f[_0x276986(0x201)]);_0x244359(_0x5d5f20[_0x276986(0x1d4)][_0x276986(0x209)],_0x59475e),_0x3c3e2a={..._0xda376b,'files':_0x5d5f20['publishInput']['files']};}else{if(isPackageBackedManifest(_0xda376b[_0x276986(0x209)])){const _0x251434=await _0x558529(_0x276986(0x1ff),_0xda376b[_0x276986(0x1e6)]||_0x5d5f20[_0x276986(0x202)][_0x276986(0x1e6)],_0x2d0b0f[_0x276986(0x201)]);_0x28c3f6(_0xda376b[_0x276986(0x209)],_0x251434);}}return _0x2f1353(_0x128576,_0x3c3e2a,_0x2d0b0f[_0x276986(0x201)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0xda376b),'warnings':_0x5d5f20['warnings'],'validation':{'warnings':_0x148e8b[_0x276986(0x1ed)]}},'message':_0x5d5f20['existing']?_0x276986(0x205)+_0x5d5f20[_0x276986(0x202)][_0x276986(0x1e6)]:_0x276986(0x207)+_0x5d5f20['payload']['skillCode']};}function scopeLabel(_0x556a61){const _0x179eb2=a51_0x20e8;return _0x556a61==='company'?_0x179eb2(0x1e3):_0x179eb2(0x1f7);}
|
|
1
|
+
(function(_0x45f207,_0x357b73){const _0x245a47=a51_0x596c,_0x3d33e1=_0x45f207();while(!![]){try{const _0x1a2331=-parseInt(_0x245a47(0x1f3))/0x1+-parseInt(_0x245a47(0x1bd))/0x2*(parseInt(_0x245a47(0x1f5))/0x3)+-parseInt(_0x245a47(0x1e8))/0x4+-parseInt(_0x245a47(0x1bf))/0x5*(parseInt(_0x245a47(0x1d6))/0x6)+parseInt(_0x245a47(0x1d8))/0x7*(-parseInt(_0x245a47(0x1ee))/0x8)+-parseInt(_0x245a47(0x1db))/0x9*(-parseInt(_0x245a47(0x1d5))/0xa)+parseInt(_0x245a47(0x1da))/0xb;if(_0x1a2331===_0x357b73)break;else _0x3d33e1['push'](_0x3d33e1['shift']());}catch(_0x1a559a){_0x3d33e1['push'](_0x3d33e1['shift']());}}}(a51_0x1d39,0x5e97a));import{CliErrors}from'../../errors.js';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';function a51_0x1d39(){const _0x22129b=['339lUiYCN','input','3282wYAUEy','confirmWarnings','3693170RLfyrL','confirm-warnings','valid','Submitted\x20company\x20Skill\x20','accessKey','validation','bool','PRIVATE','authRequired','\x20Skill\x20','unknown','dir','skillCode','Created\x20personal\x20Skill\x20','../../skills/runtime-skill-sync.js','submitted','resolvedSlug','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','NAMESPACE_ONLY','/publish/validate','Updated\x20personal\x20Skill\x20','files','20SKJiZR','6RHVmBb','existing','74711YgsUbb','personal','32135928HKQDVc','843129iIvRvs','(unknown)','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','scope','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','errors','status','payload','appcode','str','warnings','appCode','frontmatterDisplayName','2969408EhpCtW','remoteForPreflight','\x20version\x20','POST','\x20has\x20scope=\x22','identical','384GhlAaH','resolvedVersion','savedSkill','company','publishInput','542637ABsQvV','/api/cli/v1/skills/'];a51_0x1d39=function(){return _0x22129b;};return a51_0x1d39();}function a51_0x596c(_0x1873e5,_0x1995fa){_0x1873e5=_0x1873e5-0x1bc;const _0x1d3976=a51_0x1d39();let _0x596cbc=_0x1d3976[_0x1873e5];return _0x596cbc;}export async function skillPushDryRun(_0xbec44e){const _0x4ca3f3=a51_0x596c,{getRuntimeSkillByCode:_0x5565be,validateRuntimeSkillPublish:_0x21a0f2}=await import('../../core/api-client.js'),{readPushDirectory:_0x4b5cdc,resolvePushDirectoryIdentity:_0x599a67}=await import(_0x4ca3f3(0x1cd));if(!_0xbec44e[_0x4ca3f3(0x1c3)])throw CliErrors[_0x4ca3f3(0x1c7)]();const _0xc7962a=resolvePushScope(_0xbec44e),_0x24d6b1=validateSkillDirectory(_0xbec44e[_0x4ca3f3(0x1e4)](_0x4ca3f3(0x1ca)));throwIfSkillValidationFailed(_0x24d6b1);const _0x56dd41=_0x599a67(_0x24d6b1['dir'],_0xbec44e['appCode'],remoteFirstMetadataOptions()),_0x36e76c=await _0x5565be(_0xbec44e['appCode'],_0x56dd41[_0x4ca3f3(0x1cb)]);throwIfBuiltinPushTarget(_0x36e76c);if(_0xc7962a===_0x4ca3f3(0x1f1)){const _0x53bb8f=_0x4b5cdc(_0x24d6b1[_0x4ca3f3(0x1ca)],_0xbec44e['appCode'],remoteMissingCompanyReadOptions()),_0x22a3e6=await _0x21a0f2(_0xbec44e[_0x4ca3f3(0x1e6)],_0x53bb8f[_0x4ca3f3(0x1bc)],{'visibility':'NAMESPACE_ONLY'});return{'method':_0x4ca3f3(0x1eb),'url':_0x4ca3f3(0x1f4)+_0xbec44e[_0x4ca3f3(0x1e6)]+_0x4ca3f3(0x1d2),'body':{'skillCode':_0x53bb8f[_0x4ca3f3(0x1cb)],'visibility':_0x4ca3f3(0x1d1),'valid':_0x22a3e6[_0x4ca3f3(0x1c1)],'errors':_0x22a3e6[_0x4ca3f3(0x1e0)],'warnings':_0x22a3e6[_0x4ca3f3(0x1e5)],'resolvedSlug':_0x22a3e6[_0x4ca3f3(0x1cf)],'resolvedVersion':_0x22a3e6[_0x4ca3f3(0x1ef)]},'description':_0x4ca3f3(0x1d0)};}if(_0x36e76c&&_0x36e76c['scope']!=='personal')throw CliErrors['validation'](_0x4ca3f3(0x1dd)+_0x56dd41['skillCode']+'\x20has\x20scope=\x22'+(_0x36e76c[_0x4ca3f3(0x1de)]??'unknown')+'\x22.');const _0x5a2f84=_0x4b5cdc(_0x24d6b1[_0x4ca3f3(0x1ca)],_0xbec44e[_0x4ca3f3(0x1e6)],_0x36e76c?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions()),_0x4a70e9=await _0x21a0f2(_0xbec44e[_0x4ca3f3(0x1e6)],_0x5a2f84[_0x4ca3f3(0x1bc)],{'visibility':_0x4ca3f3(0x1c6)});return{'method':_0x4ca3f3(0x1eb),'url':_0x4ca3f3(0x1f4)+_0xbec44e[_0x4ca3f3(0x1e6)]+'/publish/validate','body':{'skillCode':_0x5a2f84[_0x4ca3f3(0x1cb)],'visibility':_0x4ca3f3(0x1c6),'valid':_0x4a70e9[_0x4ca3f3(0x1c1)],'errors':_0x4a70e9[_0x4ca3f3(0x1e0)],'warnings':_0x4a70e9['warnings'],'resolvedSlug':_0x4a70e9[_0x4ca3f3(0x1cf)],'resolvedVersion':_0x4a70e9[_0x4ca3f3(0x1ef)]},'description':'Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.'};}export async function skillPushExecute(_0x51289a){const _0x32342f=a51_0x596c,{createPersonalRuntimeSkill:_0x1a3b29,downloadRuntimeSkillPackage:_0x5e9afd,getRuntimeSkillByCode:_0x38e876,publishCompanyRuntimeSkill:_0x3a3135,updatePersonalRuntimeSkill:_0x53a1b2,validateRuntimeSkillPublish:_0x3229c3}=await import('../../core/api-client.js'),{verifyRuntimeSkillPackage:_0x72a005,verifyRuntimeSkillBundle:_0x34caea,readPushDirectory:_0x5c92f5,refreshPushDirectoryMetadataFromRemote:_0x4d3b06,recordPushedRuntimeSkill:_0x4d7842,resolvePushDirectoryIdentity:_0x1bbb44}=await import('../../skills/runtime-skill-sync.js');if(!_0x51289a[_0x32342f(0x1c3)])throw CliErrors[_0x32342f(0x1c7)]();const _0x58c961=resolvePushScope(_0x51289a),_0x44fe91=_0x51289a['bool'](_0x32342f(0x1c0))||_0x51289a[_0x32342f(0x1c5)](_0x32342f(0x1be)),_0x1fa6ab=validateSkillDirectory(_0x51289a['str']('dir'));throwIfSkillValidationFailed(_0x1fa6ab);const _0x85a949=_0x1fa6ab['dir'];let _0x539305;if(_0x58c961==='company'){const _0x5b617a=_0x1bbb44(_0x85a949,_0x51289a['appCode'],remoteFirstMetadataOptions()),_0x4ce44f=await _0x38e876(_0x51289a['appCode'],_0x5b617a['skillCode']);throwIfBuiltinPushTarget(_0x4ce44f);if(_0x4ce44f)_0x4d3b06(_0x85a949,_0x4ce44f,_0x51289a[_0x32342f(0x1e6)]);const _0x2d2313=_0x5c92f5(_0x85a949,_0x51289a['appCode'],_0x4ce44f?{'targetScope':_0x32342f(0x1f1),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0x539305={'scope':_0x32342f(0x1f1),'payload':_0x2d2313,'publishInput':_0x2d2313[_0x32342f(0x1bc)],'remoteForPreflight':_0x4ce44f,'warnings':[]};}else{const _0x15b73b=_0x51289a[_0x32342f(0x1e4)](_0x32342f(0x1e3))['trim'](),_0x2f3869=Boolean(_0x15b73b),_0x4652a4=allowRetargetArgs(_0x2f3869),_0x2ed77a=_0x1bbb44(_0x85a949,_0x51289a[_0x32342f(0x1e6)],{...remoteFirstMetadataOptions(),..._0x4652a4[0x0]}),_0x1f7a5a=await _0x38e876(_0x51289a[_0x32342f(0x1e6)],_0x2ed77a[_0x32342f(0x1cb)]);throwIfBuiltinPushTarget(_0x1f7a5a);if(_0x1f7a5a){if(_0x1f7a5a[_0x32342f(0x1de)]!==_0x32342f(0x1d9)){if(_0x2f3869)throw CliErrors[_0x32342f(0x1c4)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x2ed77a[_0x32342f(0x1cb)]+_0x32342f(0x1ec)+(_0x1f7a5a[_0x32342f(0x1de)]??_0x32342f(0x1c9))+'\x22.');_0x4d3b06(_0x85a949,_0x1f7a5a,_0x51289a['appCode']);}else!_0x2f3869&&_0x4d3b06(_0x85a949,_0x1f7a5a,_0x51289a[_0x32342f(0x1e6)]);}const _0x46a6b7=_0x5c92f5(_0x85a949,_0x51289a['appCode'],_0x1f7a5a?remotePersonalReadOptions(_0x2f3869,_0x4652a4[0x0]):remoteMissingPersonalReadOptions(_0x4652a4[0x0])),_0x14377c=_0x1f7a5a?.['scope']===_0x32342f(0x1d9)&&_0x1f7a5a['skillCode']===_0x46a6b7[_0x32342f(0x1cb)]?_0x1f7a5a:undefined,_0x48eead=_0x2f3869&&_0x14377c?withRetargetExistingMetadata(_0x46a6b7[_0x32342f(0x1bc)],_0x14377c,{'preferInputSkillName':Boolean(_0x46a6b7[_0x32342f(0x1e7)])}):_0x46a6b7['input'],_0x562dc1=_0x2f3869?buildRetargetWarning(_0x2ed77a['metadata'],_0x51289a['appCode']):[];_0x539305={'scope':_0x32342f(0x1d9),'payload':_0x46a6b7,'publishInput':_0x48eead,'remoteForPreflight':_0x14377c,'existing':_0x14377c,'warnings':[..._0x1fa6ab[_0x32342f(0x1e5)],..._0x562dc1]};}const _0x389d7e=await runRemoteContentPreflight({'scope':_0x539305[_0x32342f(0x1de)],'remote':_0x539305[_0x32342f(0x1e9)],'publishInput':_0x539305['publishInput'],'skillCode':_0x539305[_0x32342f(0x1e2)][_0x32342f(0x1cb)],'appCode':_0x51289a[_0x32342f(0x1e6)],'downloadRuntimeSkillPackage':_0x5e9afd,'verifyRuntimeSkillBundle':_0x34caea});if(_0x389d7e[_0x32342f(0x1e1)]===_0x32342f(0x1ed))return _0x539305['scope']===_0x32342f(0x1f1)?_0x4d7842(_0x85a949,_0x389d7e[_0x32342f(0x1f0)],_0x51289a[_0x32342f(0x1e6)],{'scope':_0x32342f(0x1f1)}):_0x4d7842(_0x85a949,_0x389d7e[_0x32342f(0x1f0)],_0x51289a[_0x32342f(0x1e6)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x389d7e[_0x32342f(0x1f0)]),'scope':_0x539305[_0x32342f(0x1de)],..._0x539305[_0x32342f(0x1de)]==='personal'?{'warnings':_0x539305[_0x32342f(0x1e5)]}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0x539305[_0x32342f(0x1de)])+_0x32342f(0x1c8)+_0x539305['payload'][_0x32342f(0x1cb)]+_0x32342f(0x1df)};if(_0x539305[_0x32342f(0x1de)]===_0x32342f(0x1f1)){const _0x5eaef7=await _0x3229c3(_0x51289a[_0x32342f(0x1e6)],_0x539305[_0x32342f(0x1f2)],{'visibility':_0x32342f(0x1d1)});throwIfPublishValidationFailed(_0x32342f(0x1f1),_0x539305[_0x32342f(0x1e2)][_0x32342f(0x1cb)],_0x5eaef7),throwIfUnconfirmedPublishWarnings(_0x32342f(0x1f1),_0x539305[_0x32342f(0x1e2)]['skillCode'],_0x5eaef7[_0x32342f(0x1e5)],_0x44fe91);const _0x1348ef=await _0x3a3135(_0x51289a[_0x32342f(0x1e6)],_0x539305[_0x32342f(0x1f2)],{'confirmWarnings':_0x44fe91});return _0x4d7842(_0x85a949,{..._0x1348ef,'files':_0x539305['publishInput'][_0x32342f(0x1d4)]},_0x51289a[_0x32342f(0x1e6)],{'scope':'company'}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x1348ef),'scope':'company','reviewState':_0x32342f(0x1ce),'submittedForReview':!![],'validation':{'warnings':_0x5eaef7['warnings']}},'message':_0x32342f(0x1c2)+_0x539305[_0x32342f(0x1e2)]['skillCode']+_0x32342f(0x1ea)+(_0x1348ef['version']??_0x32342f(0x1dc))+'\x20for\x20review'};}const _0x312b41=await _0x3229c3(_0x51289a[_0x32342f(0x1e6)],_0x539305[_0x32342f(0x1f2)],{'visibility':_0x32342f(0x1c6)});throwIfPublishValidationFailed(_0x32342f(0x1d9),_0x539305[_0x32342f(0x1e2)]['skillCode'],_0x312b41),throwIfUnconfirmedPublishWarnings('personal',_0x539305[_0x32342f(0x1e2)][_0x32342f(0x1cb)],_0x312b41[_0x32342f(0x1e5)],_0x44fe91);const _0x5e9d6e={'confirmWarnings':_0x44fe91},_0x4cc1a6=_0x539305['existing']?await _0x53a1b2(_0x539305[_0x32342f(0x1e2)]['skillCode'],_0x51289a[_0x32342f(0x1e6)],_0x539305[_0x32342f(0x1f2)],_0x5e9d6e):await _0x1a3b29(_0x51289a[_0x32342f(0x1e6)],_0x539305[_0x32342f(0x1f2)],_0x5e9d6e);let _0x1fa4c5=_0x4cc1a6;if(isMultiFileManifest(_0x539305[_0x32342f(0x1f2)]['files'])){const _0x1c9764=await _0x5e9afd(_0x32342f(0x1d9),_0x4cc1a6[_0x32342f(0x1cb)]||_0x539305[_0x32342f(0x1e2)][_0x32342f(0x1cb)],_0x51289a[_0x32342f(0x1e6)]);_0x34caea(_0x539305[_0x32342f(0x1f2)]['files'],_0x1c9764),_0x1fa4c5={..._0x4cc1a6,'files':_0x539305[_0x32342f(0x1f2)]['files']};}else{if(isPackageBackedManifest(_0x4cc1a6['files'])){const _0x1c6e46=await _0x5e9afd(_0x32342f(0x1d9),_0x4cc1a6[_0x32342f(0x1cb)]||_0x539305[_0x32342f(0x1e2)][_0x32342f(0x1cb)],_0x51289a[_0x32342f(0x1e6)]);_0x72a005(_0x4cc1a6[_0x32342f(0x1d4)],_0x1c6e46);}}return _0x4d7842(_0x85a949,_0x1fa4c5,_0x51289a[_0x32342f(0x1e6)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x4cc1a6),'warnings':_0x539305[_0x32342f(0x1e5)],'validation':{'warnings':_0x312b41['warnings']}},'message':_0x539305[_0x32342f(0x1d7)]?_0x32342f(0x1d3)+_0x539305[_0x32342f(0x1e2)][_0x32342f(0x1cb)]:_0x32342f(0x1cc)+_0x539305[_0x32342f(0x1e2)]['skillCode']};}function scopeLabel(_0x32c409){const _0x5e7e05=a51_0x596c;return _0x32c409===_0x5e7e05(0x1f1)?'Company':'Personal';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a52_0x3593(_0x29a717,_0x28ee95){_0x29a717=_0x29a717-0x6d;const _0x13f6de=a52_0x13f6();let _0x3593b6=_0x13f6de[_0x29a717];return _0x3593b6;}(function(_0x48d1c0,_0x2e13da){const _0x3de2a9=a52_0x3593,_0x5ad932=_0x48d1c0();while(!![]){try{const _0x4e91eb=-parseInt(_0x3de2a9(0x7a))/0x1+-parseInt(_0x3de2a9(0x7b))/0x2*(parseInt(_0x3de2a9(0x74))/0x3)+-parseInt(_0x3de2a9(0x82))/0x4*(parseInt(_0x3de2a9(0x9a))/0x5)+parseInt(_0x3de2a9(0x7f))/0x6*(-parseInt(_0x3de2a9(0x91))/0x7)+-parseInt(_0x3de2a9(0x83))/0x8+-parseInt(_0x3de2a9(0x7d))/0x9*(-parseInt(_0x3de2a9(0x6f))/0xa)+parseInt(_0x3de2a9(0x70))/0xb*(parseInt(_0x3de2a9(0x88))/0xc);if(_0x4e91eb===_0x2e13da)break;else _0x5ad932['push'](_0x5ad932['shift']());}catch(_0x26dd6f){_0x5ad932['push'](_0x5ad932['shift']());}}}(a52_0x13f6,0x4161d));function a52_0x13f6(){const _0x34bb4e=['3348fppcEa','(unknown)','492mRkCsu','Builtin\x20Skill\x20','remote','16IrGmDM','3583744rWmtNn','join','Personal','warnings','personal','156ynglGx','publishInput','skillCode','Review\x20each\x20warning\x20before\x20continuing.','not-applicable','content','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','warning','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','3290kJjpNS','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','valid','files','skill-metadata-appcode-retargeted','company','Warnings:\x20','validation','errors','517785CQkFvA','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','str','\x20Skill\x20push\x20validation\x20failed\x20for\x20','version','different','\x20after\x20successful\x20push.','9260CBIEeI','1242758KHVhxd','lovrabet.skill.json','identical','appCode','154167gtJECv','\x20cannot\x20be\x20pushed.','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','Company','SkillHub\x20validation\x20returned\x20invalid.','length','233533LYsoVV','16aWjSHy','scope'];a52_0x13f6=function(){return _0x34bb4e;};return a52_0x13f6();}import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x385736){const _0x528676=a52_0x3593,_0xa9c7ac=_0x385736[_0x528676(0x9c)](_0x528676(0x7c))||_0x528676(0x87);if(_0xa9c7ac===_0x528676(0x87)||_0xa9c7ac===_0x528676(0x96))return _0xa9c7ac;throw CliErrors['validation'](_0x528676(0x76)+_0xa9c7ac+'\x22.');}export function allowRetargetArgs(_0x3af2af){return _0x3af2af?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x23e9d1=a52_0x3593;return{'targetScope':_0x23e9d1(0x96),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x206fbb={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x206fbb};}export function remotePersonalReadOptions(_0x561676,_0x5303f7={}){return{'ignoreInvalidMetadata':!![],..._0x561676?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x5303f7};}export function throwIfBuiltinPushTarget(_0x42bd47){const _0x5f58ca=a52_0x3593;if(_0x42bd47?.[_0x5f58ca(0x7c)]!=='builtin')return;throw CliErrors[_0x5f58ca(0x98)](_0x5f58ca(0x80)+(_0x42bd47[_0x5f58ca(0x8a)]??_0x5f58ca(0x7e))+_0x5f58ca(0x75),_0x5f58ca(0x9b));}export function throwIfPublishValidationFailed(_0x5a10c2,_0x56e077,_0x188d5f){const _0x4e950e=a52_0x3593;if(_0x188d5f[_0x4e950e(0x99)][_0x4e950e(0x79)]===0x0&&(_0x188d5f[_0x4e950e(0x93)]||_0x188d5f[_0x4e950e(0x86)][_0x4e950e(0x79)]>0x0))return;const _0x148390=_0x188d5f['errors'][_0x4e950e(0x79)]>0x0?_0x188d5f['errors'][_0x4e950e(0x84)](';\x20'):_0x4e950e(0x78),_0x4046c6=_0x5a10c2===_0x4e950e(0x96)?_0x4e950e(0x77):_0x4e950e(0x85);throw CliErrors[_0x4e950e(0x98)](_0x4046c6+_0x4e950e(0x9d)+_0x56e077+'.',_0x148390);}export function throwIfUnconfirmedPublishWarnings(_0x4f2ef7,_0x211061,_0x3cacc3,_0xf88b02){const _0x1ee2bd=a52_0x3593;if(_0x3cacc3['length']===0x0||_0xf88b02)return;const _0x43498c=_0x4f2ef7===_0x1ee2bd(0x96)?'Company':_0x1ee2bd(0x85);throw CliErrors[_0x1ee2bd(0x98)](_0x43498c+_0x1ee2bd(0x90)+_0x211061+'.',[_0x1ee2bd(0x8b),'Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.',_0x1ee2bd(0x97)+_0x3cacc3[_0x1ee2bd(0x84)](';\x20')][_0x1ee2bd(0x84)]('\x20'));}export function buildRetargetWarning(_0x54e295,_0x349056){const _0x9267c9=a52_0x3593;if(!_0x54e295?.['appCode']||_0x54e295[_0x9267c9(0x73)]===_0x349056)return[];return[{'level':_0x9267c9(0x8f),'ruleId':_0x9267c9(0x95),'file':_0x9267c9(0x71),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x54e295['appCode']+_0x9267c9(0x8e)+_0x349056+_0x9267c9(0x6e),'suggestion':_0x9267c9(0x92)}];}export async function runRemoteContentPreflight(_0x54a243){const _0x335dec=a52_0x3593;if(!_0x54a243[_0x335dec(0x81)]||_0x54a243[_0x335dec(0x81)][_0x335dec(0x7c)]!==_0x54a243[_0x335dec(0x7c)]||!_0x54a243[_0x335dec(0x89)][_0x335dec(0x94)])return{'status':_0x335dec(0x8c)};const _0x4f783c=_0x54a243[_0x335dec(0x81)][_0x335dec(0x8a)]||_0x54a243['skillCode'];if(!_0x4f783c)return{'status':_0x335dec(0x8c)};const _0x6af7f0=await _0x54a243['downloadRuntimeSkillPackage'](_0x54a243[_0x335dec(0x7c)],_0x4f783c,_0x54a243['appCode'],_0x54a243[_0x335dec(0x81)][_0x335dec(0x9e)]);try{_0x54a243['verifyRuntimeSkillBundle'](_0x54a243[_0x335dec(0x89)][_0x335dec(0x94)],_0x6af7f0);}catch{return{'status':_0x335dec(0x6d)};}return{'status':_0x335dec(0x72),'savedSkill':{..._0x54a243[_0x335dec(0x81)],'content':_0x54a243['publishInput'][_0x335dec(0x8d)],'files':_0x54a243[_0x335dec(0x89)][_0x335dec(0x94)]}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x15a01f,_0x2cb233){const _0xdf10ab=a53_0x4c87,_0x394e61=_0x15a01f();while(!![]){try{const _0x57c0ba=parseInt(_0xdf10ab(0xba))/0x1+parseInt(_0xdf10ab(0xb0))/0x2*(parseInt(_0xdf10ab(0xac))/0x3)+-parseInt(_0xdf10ab(0xab))/0x4+-parseInt(_0xdf10ab(0xaa))/0x5+parseInt(_0xdf10ab(0xad))/0x6+-parseInt(_0xdf10ab(0xbb))/0x7+parseInt(_0xdf10ab(0xaf))/0x8;if(_0x57c0ba===_0x2cb233)break;else _0x394e61['push'](_0x394e61['shift']());}catch(_0x45155a){_0x394e61['push'](_0x394e61['shift']());}}}(a53_0x55df,0x4a26d));function a53_0x4c87(_0x5602c3,_0xe0d85){_0x5602c3=_0x5602c3-0xaa;const _0x55dfc4=a53_0x55df();let _0x4c87ce=_0x55dfc4[_0x5602c3];return _0x4c87ce;}export function withRetargetExistingMetadata(_0x29e6ea,_0x205347,_0xea3870={}){const _0x1b4507=a53_0x4c87,_0x180c52=_0xea3870[_0x1b4507(0xb8)]?_0x29e6ea[_0x1b4507(0xb6)]??_0x205347['skillName']:_0x205347[_0x1b4507(0xb6)]??_0x29e6ea[_0x1b4507(0xb6)];return{..._0x29e6ea,'skillName':_0x180c52,'description':_0x205347['description']??_0x29e6ea[_0x1b4507(0xb4)],'tags':Array[_0x1b4507(0xae)](_0x205347['tags'])?_0x205347[_0x1b4507(0xb5)]:_0x29e6ea[_0x1b4507(0xb5)],'version':_0x205347[_0x1b4507(0xb3)]??_0x29e6ea['version'],'sourceSessionId':_0x205347['sourceSessionId']??_0x29e6ea['sourceSessionId']};}function a53_0x55df(){const _0x4ac807=['552418HQBVRm','2558808twILID','skill-metadata-appcode-retargeted','warning','1831390gPTopW','1579060QeyooL','1017cbmlbv','1375938lfwWfj','isArray','3829856Tdrbja','1002QzrpDz','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','\x20after\x20successful\x20push.','version','description','tags','skillName','appCode','preferInputSkillName','lovrabet.skill.json'];a53_0x55df=function(){return _0x4ac807;};return a53_0x55df();}export function buildRetargetWarning(_0x597c2d,_0x2f3fd2){const _0x164977=a53_0x4c87;if(!_0x597c2d?.[_0x164977(0xb7)]||_0x597c2d[_0x164977(0xb7)]===_0x2f3fd2)return[];return[{'level':_0x164977(0xbd),'ruleId':_0x164977(0xbc),'file':_0x164977(0xb9),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x597c2d[_0x164977(0xb7)]+_0x164977(0xb1)+_0x2f3fd2+_0x164977(0xb2),'suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x545e48,_0x5a3f7a){const _0x34df6f=a54_0x6f2a,_0x5a9bec=_0x545e48();while(!![]){try{const _0x249f52=parseInt(_0x34df6f(0x7a))/0x1*(parseInt(_0x34df6f(0x82))/0x2)+parseInt(_0x34df6f(0x77))/0x3*(-parseInt(_0x34df6f(0x7c))/0x4)+parseInt(_0x34df6f(0x7d))/0x5*(parseInt(_0x34df6f(0x85))/0x6)+parseInt(_0x34df6f(0x80))/0x7+parseInt(_0x34df6f(0x83))/0x8+-parseInt(_0x34df6f(0x7e))/0x9*(-parseInt(_0x34df6f(0x81))/0xa)+parseInt(_0x34df6f(0x7b))/0xb*(-parseInt(_0x34df6f(0x75))/0xc);if(_0x249f52===_0x5a3f7a)break;else _0x5a9bec['push'](_0x5a9bec['shift']());}catch(_0x1570fe){_0x5a9bec['push'](_0x5a9bec['shift']());}}}(a54_0x4748,0x4ee67));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x1123a2){const _0xa70d46=a54_0x6f2a,_0xbee24b=_0x1123a2[_0xa70d46(0x84)]();if(!_0xbee24b||_0xbee24b===_0xa70d46(0x79))return[_0xa70d46(0x78),_0xa70d46(0x86)];if(_0xbee24b===_0xa70d46(0x78)||_0xbee24b==='company')return[_0xbee24b];throw CliErrors[_0xa70d46(0x7f)](_0xa70d46(0x76)+_0x1123a2);}export function normalizeListScope(_0x3ff707){const _0x2eab8d=a54_0x6f2a,_0xe54c2e=_0x3ff707[_0x2eab8d(0x84)]();if(!_0xe54c2e)return _0x2eab8d(0x79);if(_0xe54c2e===_0x2eab8d(0x78)||_0xe54c2e===_0x2eab8d(0x86)||_0xe54c2e===_0x2eab8d(0x79))return _0xe54c2e;throw CliErrors[_0x2eab8d(0x7f)]('Unsupported\x20Skill\x20list\x20scope:\x20'+_0x3ff707);}function a54_0x4748(){const _0x892eb3=['1098jHKtfl','company','4812dpWWcI','Unsupported\x20Skill\x20sync\x20scope:\x20','9KVMJSj','personal','all','641716pHMPvo','48499yzOnva','149516TWKjcX','12940SpTtlO','36ZgwDbQ','validation','2986340TiIPHu','322130maOLcJ','2Rgmvug','4260232BNLixc','trim'];a54_0x4748=function(){return _0x892eb3;};return a54_0x4748();}export function shouldListScope(_0x30b269,_0x404c65){const _0x28b044=a54_0x6f2a;if(_0x30b269===_0x28b044(0x79))return!![];return _0x30b269===_0x404c65;}function a54_0x6f2a(_0x3e74a8,_0x292418){_0x3e74a8=_0x3e74a8-0x75;const _0x474853=a54_0x4748();let _0x6f2a59=_0x474853[_0x3e74a8];return _0x6f2a59;}export function listScopeToRuntimeScopes(_0x573c49){const _0xc35a62=a54_0x6f2a;if(_0x573c49===_0xc35a62(0x79))return['personal',_0xc35a62(0x86)];return[_0x573c49===_0xc35a62(0x86)?'company':_0x573c49];}export function listScopeToRemoteScope(_0x5ad99a){return _0x5ad99a;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x440225,_0xdfd1d9){var _0x4f2dae=a55_0x48a7,_0x4e972f=_0x440225();while(!![]){try{var _0x472b8e=-parseInt(_0x4f2dae(0xd9))/0x1*(parseInt(_0x4f2dae(0xcb))/0x2)+parseInt(_0x4f2dae(0xd2))/0x3+-parseInt(_0x4f2dae(0xd8))/0x4*(parseInt(_0x4f2dae(0xdb))/0x5)+parseInt(_0x4f2dae(0xce))/0x6*(-parseInt(_0x4f2dae(0xc8))/0x7)+parseInt(_0x4f2dae(0xd1))/0x8+-parseInt(_0x4f2dae(0xcd))/0x9+parseInt(_0x4f2dae(0xd3))/0xa*(parseInt(_0x4f2dae(0xca))/0xb);if(_0x472b8e===_0xdfd1d9)break;else _0x4e972f['push'](_0x4e972f['shift']());}catch(_0x6d66a1){_0x4e972f['push'](_0x4e972f['shift']());}}}(a55_0x551c,0x791d8));export function summarizeRuntimeSkill(_0x2641e6){var _0x164f76=a55_0x48a7;return{'id':_0x2641e6['id'],'skillCode':_0x2641e6[_0x164f76(0xcc)],'skillName':_0x2641e6[_0x164f76(0xd0)],'scope':_0x2641e6[_0x164f76(0xc9)],'version':_0x2641e6[_0x164f76(0xda)],'readonly':_0x2641e6['readonly']};}function a55_0x48a7(_0x1ce576,_0x11ed6c){_0x1ce576=_0x1ce576-0xc6;var _0x551ce7=a55_0x551c();var _0x48a77a=_0x551ce7[_0x1ce576];return _0x48a77a;}function a55_0x551c(){var _0x5d8153=['7XXohke','scope','99HrcROn','74WLMKYw','skillCode','5057460UAkbwu','3340662bydFdT','dir','skillName','6262176hzZwdh','2645436nCxeQa','897470cdNFRU','status','skillMdPath','pulledAt','readonly','4HlGoEL','11197MTxfsg','version','2216065qsnaOA','tags','linkedPaths'];a55_0x551c=function(){return _0x5d8153;};return a55_0x551c();}export function summarizeLocalRuntimeSkill(_0xc6200){var _0x15511d=a55_0x48a7;return{'id':_0xc6200['id'],'skillCode':_0xc6200[_0x15511d(0xcc)],'skillName':_0xc6200[_0x15511d(0xd0)],'scope':_0xc6200[_0x15511d(0xc9)],'appCode':_0xc6200['appCode'],'version':_0xc6200[_0x15511d(0xda)],'status':_0xc6200[_0x15511d(0xd4)],'readonly':_0xc6200[_0x15511d(0xd7)],'tags':_0xc6200[_0x15511d(0xc6)],'dir':_0xc6200[_0x15511d(0xcf)],'cacheDir':_0xc6200['cacheDir'],'skillMdPath':_0xc6200[_0x15511d(0xd5)],'metadataPath':_0xc6200['metadataPath'],'linkedPaths':_0xc6200[_0x15511d(0xc7)],'contentHash':_0xc6200['contentHash'],'treeHash':_0xc6200['treeHash'],'pulledAt':_0xc6200[_0x15511d(0xd6)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a56_0x2de4(_0x22bc0c,_0x304562){_0x22bc0c=_0x22bc0c-0x170;const _0x395dbc=a56_0x395d();let _0x2de4cd=_0x395dbc[_0x22bc0c];return _0x2de4cd;}const a56_0x1f170f=a56_0x2de4;(function(_0x2227f4,_0x546c24){const _0x1d12c2=a56_0x2de4,_0x4ef982=_0x2227f4();while(!![]){try{const _0x2132c8=parseInt(_0x1d12c2(0x18c))/0x1*(parseInt(_0x1d12c2(0x18a))/0x2)+-parseInt(_0x1d12c2(0x174))/0x3*(parseInt(_0x1d12c2(0x196))/0x4)+parseInt(_0x1d12c2(0x183))/0x5*(parseInt(_0x1d12c2(0x18d))/0x6)+parseInt(_0x1d12c2(0x194))/0x7+-parseInt(_0x1d12c2(0x18e))/0x8*(parseInt(_0x1d12c2(0x180))/0x9)+parseInt(_0x1d12c2(0x171))/0xa+parseInt(_0x1d12c2(0x17e))/0xb*(parseInt(_0x1d12c2(0x191))/0xc);if(_0x2132c8===_0x546c24)break;else _0x4ef982['push'](_0x4ef982['shift']());}catch(_0x546ee9){_0x4ef982['push'](_0x4ef982['shift']());}}}(a56_0x395d,0x4a7ba));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a56_0x1f170f(0x175),a56_0x1f170f(0x176)];export const DEFAULT_SKILL_TARGET='.agents/skills';export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a56_0x1f170f(0x182);export const OUTPUT_CONTRACT_FILE=a56_0x1f170f(0x187);export function validateSkillName(_0x3a78ea){const _0x432892=a56_0x1f170f,_0xdf7332=_0x3a78ea['trim']();if(!SKILL_NAME_PATTERN[_0x432892(0x172)](_0xdf7332))throw CliErrors[_0x432892(0x170)](_0x432892(0x17f)+_0x3a78ea+_0x432892(0x185),_0x432892(0x193));return _0xdf7332;}export function normalizeSkillTemplateType(_0x2a1948){const _0x48d60a=a56_0x1f170f,_0x78aba3=(_0x2a1948||_0x48d60a(0x175))[_0x48d60a(0x190)]()||'write';if(SKILL_TYPES[_0x48d60a(0x178)](_0x78aba3))return _0x78aba3;throw CliErrors[_0x48d60a(0x170)](_0x48d60a(0x17b)+_0x2a1948,'Use\x20one\x20of:\x20'+SKILL_TYPES['join'](',\x20')+'.');}export function renderSkillTemplate(_0x117f76){const _0x37a64=a56_0x1f170f,_0x581f0b=validateSkillName(_0x117f76[_0x37a64(0x177)]),_0x4c2ac1=normalizeSkillTemplateType(_0x117f76[_0x37a64(0x188)]),_0x4bc4b3=_0x117f76[_0x37a64(0x184)]??new Date()[_0x37a64(0x173)]();return{'skillName':_0x581f0b,'type':_0x4c2ac1,'files':[{'path':_0x37a64(0x195),'content':renderSkillMd(_0x581f0b,_0x4c2ac1,_0x4bc4b3)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x581f0b,_0x4c2ac1)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x581f0b,_0x4c2ac1)}]};}function renderSkillMd(_0x116e5a,_0x2b4cc9,_0x11e97a){const _0x339f72=a56_0x1f170f,_0x1e897b=typeWorkflow(_0x2b4cc9);return'---\x0aname:\x20'+_0x116e5a+_0x339f72(0x197)+_0x2b4cc9+'\x0a\x20\x20created:\x20\x22'+_0x11e97a+_0x339f72(0x179)+_0x116e5a+_0x339f72(0x181)+_0x1e897b+'\x0a\x0a'+businessStateSection(_0x2b4cc9)+_0x339f72(0x17c);}function renderRuntimeContract(_0x220bb4,_0x4a106f){const _0x1e7297=a56_0x1f170f,_0x45e97e=_0x4a106f===_0x1e7297(0x175)?_0x1e7297(0x17d):'';return _0x1e7297(0x18b)+_0x220bb4+_0x1e7297(0x198)+_0x4a106f+_0x1e7297(0x17a)+_0x45e97e+'\x0a##\x20返回契约\x0a\x0a最终输出必须遵守\x20[output-contract.md](output-contract.md)。本文件只补充运行态安全约束;展示字段、状态枚举、失败暴露和人工处理项以\x20output-contract.md\x20为准。\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败状态识别、checkpoint、重试和人工接管方式】\x0a\x0a##\x20禁止事项\x0a\x0a-\x20禁止链接或读取\x20Skill\x20目录外的\x20AGENTS.md、wiki、docs、脚本或个人路径作为运行时必读依赖。\x0a-\x20禁止把说明性的缓存路径、安装路径、示例路径或排障路径包装成运行时必读依赖。\x0a-\x20禁止在未确认影响范围时执行写入。\x0a-\x20禁止隐藏失败或把未知状态描述为成功。\x0a';}function renderOutputContract(_0x41ea07,_0x186437){const _0x207ec9=a56_0x1f170f,_0x348452=_0x186437==='write'?_0x207ec9(0x192):_0x186437+'\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。';return _0x207ec9(0x189)+_0x41ea07+_0x207ec9(0x18f)+_0x348452+_0x207ec9(0x186);}function typeWorkflow(_0x33d786){const _0x1f1839=a56_0x1f170f;if(_0x33d786===_0x1f1839(0x176))return'1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。';return'1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】';}function businessStateSection(_0x155886){if(_0x155886!=='write')return'';return'##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】';}function a56_0x395d(){const _0x2937a6=['4fcjCfC','660RJhMpY','16vRTfrk','\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','trim','21288xFglvb','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','500857fRFVMT','SKILL.md','4CzOsQk','\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','\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=','validation','5676580ZzeCBU','test','toISOString','622569AJUbWs','write','read','skillName','includes','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','\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','Unsupported\x20Skill\x20type:\x20','\x0a\x0a##\x20展示规范\x0a\x0a【填写面向运营人员的展示字段、差异摘要、成功/失败状态和人工处理项;最终输出必须按\x20references/output-contract.md\x20的\x20status\x20/\x20mode\x20/\x20summary\x20/\x20errors\x20/\x20nextActions\x20返回,不能把\x20unknown、partial_success、failed\x20或\x20needs_manual_check\x20包装为\x20success。】\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败后的\x20checkpoint、重试条件、人工接管方式和避免重复写入的核对步骤】\x0a','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','902bWEllZ','Invalid\x20Skill\x20name:\x20','1762803wkkifC','\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','references/runtime-contract.md','1895xoDgWm','timestamp','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','references/output-contract.md','type','#\x20Output\x20Contract\x0a\x0a','38986iMDgNa','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。'];a56_0x395d=function(){return _0x2937a6;};return a56_0x395d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a57_0x145c70=a57_0x3362;(function(_0x331c13,_0x17b91f){const _0x5579f3=a57_0x3362,_0x4ebe59=_0x331c13();while(!![]){try{const _0x174536=parseInt(_0x5579f3(0x177))/0x1+-parseInt(_0x5579f3(0x16b))/0x2+-parseInt(_0x5579f3(0x19a))/0x3+parseInt(_0x5579f3(0x157))/0x4*(-parseInt(_0x5579f3(0x146))/0x5)+-parseInt(_0x5579f3(0x142))/0x6*(-parseInt(_0x5579f3(0x148))/0x7)+-parseInt(_0x5579f3(0x18e))/0x8+parseInt(_0x5579f3(0x197))/0x9;if(_0x174536===_0x17b91f)break;else _0x4ebe59['push'](_0x4ebe59['shift']());}catch(_0x3e5345){_0x4ebe59['push'](_0x4ebe59['shift']());}}}(a57_0x4823,0xcc122));function a57_0x3362(_0x281565,_0x23877c){_0x281565=_0x281565-0x141;const _0x48230d=a57_0x4823();let _0x336256=_0x48230d[_0x281565];return _0x336256;}import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';function a57_0x4823(){const _0x557fc2=['dataset','isDirectory','map','Frontmatter\x20name\x20is\x20missing.','search','push','metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','7492590DCFgmt','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','string','2123817EdXdCc','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','section','6wFAxPa','errors','config','example','5BbXDSS','filter','11112521ICxGKt','Skill\x20validation\x20failed:\x0a','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','hasFrontmatter','boolean','description','internal','write','Frontmatter\x20displayName\x20is\x20missing.','false','length','toUpperCase','display-name-recommended','isArray','Add\x20frontmatter\x20with\x20name\x20and\x20description.','4527764WdudkL','SKILL.md\x20must\x20start\x20with\x20frontmatter.','slice','join','internal-skill','suggestion','isSymbolicLink','test','sql','level','type','read','path','logs','schema','utf8','line','Skill\x20directory\x20not\x20found:\x20','displayName','Set\x20metadata.type\x20to\x20write\x20or\x20read.','314784DoKFkN','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','number','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','frontmatter-required','validation','warning','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','artifact','file','project','raw','1289093nzlHiD','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','Frontmatter\x20example\x20is\x20missing.','workspace','Frontmatter\x20description\x20is\x20empty.','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','page','description-required','isFile','SKILL.md','Missing\x20SKILL.md.','structure-complete','trim','content','SKILL.md\x20is\x20not\x20a\x20file.','error','split','bff','toLowerCase','true','name','object','flatMap','7007680YjVFpJ','app'];a57_0x4823=function(){return _0x557fc2;};return a57_0x4823();}import{resolve}from'node:path';import{parse as a57_0xb8083b}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a57_0x145c70(0x180),SUPPORTED_SKILL_TYPES=new Set([a57_0x145c70(0x14f),a57_0x145c70(0x162)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x20a09f,_0x265904={}){const _0x205376=a57_0x145c70,_0x376397=resolveSkillDirectoryRoot(_0x20a09f),_0x468df8=[],_0x5cb836=loadRequiredSkillFile(_0x376397,_0x468df8),_0x110f79=_0x5cb836?parseFrontmatter(_0x5cb836[_0x205376(0x184)]):{'hasFrontmatter':![]};_0x5cb836&&validateFrontmatter(_0x5cb836[_0x205376(0x163)],_0x110f79,_0x468df8);validateRuntimeCliReferences(_0x376397,_0x468df8);const _0x3babed=_0x468df8['filter'](_0x216506=>_0x216506[_0x205376(0x160)]==='error'),_0x25ad35=_0x468df8[_0x205376(0x147)](_0x5f4ad5=>_0x5f4ad5['level']==='warning');return{'ok':_0x3babed[_0x205376(0x152)]===0x0,'dir':_0x376397,'type':_0x110f79[_0x205376(0x161)],'errors':_0x3babed,'warnings':_0x25ad35};}function resolveSkillDirectoryRoot(_0x347d9f){const _0x5be6db=a57_0x145c70,_0x2f2264=resolve(_0x347d9f);if(!existsSync(_0x2f2264))throw CliErrors[_0x5be6db(0x170)](_0x5be6db(0x168)+_0x347d9f);const _0x762980=lstatSync(_0x2f2264);if(_0x762980[_0x5be6db(0x191)]())return _0x2f2264;if(_0x762980[_0x5be6db(0x15d)]()){const _0x1fdc19=realpathSync(_0x2f2264);if(lstatSync(_0x1fdc19)['isDirectory']())return _0x1fdc19;}throw CliErrors[_0x5be6db(0x170)](_0x5be6db(0x168)+_0x347d9f);}export function throwIfSkillValidationFailed(_0xa6e26,_0x5cd65e=![]){const _0x5ab56f=a57_0x145c70;if(_0xa6e26['ok'])return;const _0x208e0d=_0xa6e26[_0x5ab56f(0x143)][_0x5ab56f(0x192)](_0x44b356=>{const _0x1f8952=_0x5ab56f,_0x5416fe=_0x44b356[_0x1f8952(0x141)]?'#'+_0x44b356['section']:'';return _0x44b356[_0x1f8952(0x160)][_0x1f8952(0x153)]()+'\x20'+_0x44b356['ruleId']+'\x20'+_0x44b356[_0x1f8952(0x174)]+_0x5416fe+':\x20'+_0x44b356['message']+'\x20Fix:\x20'+_0x44b356[_0x1f8952(0x15c)];});throw CliErrors[_0x5ab56f(0x170)](_0x5ab56f(0x149)+_0x208e0d[_0x5ab56f(0x15a)]('\x0a'),'Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.');}function loadRequiredSkillFile(_0x4acafb,_0x305b60){const _0x343635=a57_0x145c70,_0x3c1c0c=resolve(_0x4acafb,SKILL_FILE);if(!existsSync(_0x3c1c0c))return _0x305b60[_0x343635(0x195)](issue('error',_0x343635(0x182),SKILL_FILE,_0x343635(0x181),_0x343635(0x16c))),undefined;const _0x858c31=lstatSync(_0x3c1c0c);if(_0x858c31[_0x343635(0x15d)]())return _0x305b60[_0x343635(0x195)](issue(_0x343635(0x186),_0x343635(0x182),SKILL_FILE,'SKILL.md\x20must\x20be\x20a\x20regular\x20file.',_0x343635(0x172))),undefined;if(!_0x858c31[_0x343635(0x17f)]())return _0x305b60[_0x343635(0x195)](issue(_0x343635(0x186),_0x343635(0x182),SKILL_FILE,_0x343635(0x185),'Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x3c1c0c,_0x343635(0x166))};}function validateFrontmatter(_0x4707a1,_0xc7bbd4,_0x2d9740){const _0x40ed14=a57_0x145c70;if(!_0xc7bbd4[_0x40ed14(0x14b)]){_0x2d9740[_0x40ed14(0x195)](issue(_0x40ed14(0x186),_0x40ed14(0x16f),_0x4707a1,_0x40ed14(0x158),_0x40ed14(0x156)));return;}!_0xc7bbd4['name']?.[_0x40ed14(0x183)]()&&_0x2d9740[_0x40ed14(0x195)](issue(_0x40ed14(0x186),_0x40ed14(0x16f),_0x4707a1,_0x40ed14(0x193),_0x40ed14(0x16e))),!_0xc7bbd4[_0x40ed14(0x169)]?.[_0x40ed14(0x183)]()&&_0x2d9740[_0x40ed14(0x195)](issue('warning',_0x40ed14(0x154),_0x4707a1,_0x40ed14(0x150),_0x40ed14(0x178))),!_0xc7bbd4[_0x40ed14(0x145)]?.['trim']()&&_0x2d9740[_0x40ed14(0x195)](issue('warning','example-recommended',_0x4707a1,_0x40ed14(0x179),_0x40ed14(0x17c))),!_0xc7bbd4[_0x40ed14(0x14d)]?.[_0x40ed14(0x183)]()&&_0x2d9740[_0x40ed14(0x195)](issue(_0x40ed14(0x186),_0x40ed14(0x17e),_0x4707a1,_0x40ed14(0x17b),'填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。')),_0xc7bbd4[_0x40ed14(0x14e)]===!![]&&_0x2d9740[_0x40ed14(0x195)](issue(_0x40ed14(0x186),_0x40ed14(0x15b),_0x4707a1,'metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.',_0x40ed14(0x19b))),_0xc7bbd4['type']?.['trim']()&&!SUPPORTED_SKILL_TYPES['has'](_0xc7bbd4[_0x40ed14(0x161)])&&_0x2d9740['push'](issue(_0x40ed14(0x186),_0x40ed14(0x16f),_0x4707a1,_0x40ed14(0x196),_0x40ed14(0x16a)));}function validateRuntimeCliReferences(_0x5e86c1,_0xe53757){const _0x3c0967=a57_0x145c70;for(const _0x246835 of findRabetbaseCliInvocations(_0x5e86c1)){_0xe53757[_0x3c0967(0x195)](issue(_0x3c0967(0x171),'rabetbase-cli-reference',_0x246835[_0x3c0967(0x174)],_0x3c0967(0x14a),_0x3c0967(0x198),'L'+_0x246835[_0x3c0967(0x167)]));}}function findRabetbaseCliInvocations(_0x57b913){const _0x3a0114=a57_0x145c70;return scanSkillDirectory(_0x57b913)[_0x3a0114(0x147)](_0x551738=>TEXT_SKILL_FILE_PATTERN[_0x3a0114(0x15e)](_0x551738[_0x3a0114(0x163)]))[_0x3a0114(0x18d)](_0x56643a=>{const _0x3c3b45=_0x3a0114,_0x99459a=fileText(_0x56643a);return _0x99459a[_0x3c3b45(0x187)](/\r?\n/)[_0x3c3b45(0x192)]((_0x4a019d,_0x596a88)=>({'file':_0x56643a[_0x3c3b45(0x163)],'line':_0x596a88+0x1,'text':_0x4a019d}))[_0x3c3b45(0x147)](({text:_0x5194f2})=>isRabetbaseCliInvocation(_0x5194f2))[_0x3c3b45(0x192)](({file:_0x5e35d4,line:_0x1ab7ad})=>({'file':_0x5e35d4,'line':_0x1ab7ad}));});}const RABETBASE_SUBCOMMANDS=[a57_0x145c70(0x190),a57_0x145c70(0x15f),a57_0x145c70(0x188),a57_0x145c70(0x17d),a57_0x145c70(0x175),a57_0x145c70(0x18f),a57_0x145c70(0x165),'service',a57_0x145c70(0x173),'kb',a57_0x145c70(0x144),a57_0x145c70(0x17a),'data','auth',a57_0x145c70(0x164),'registry'],RABETBASE_INVOCATION=new RegExp(String['raw']`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a57_0x145c70(0x15a)]('|')})\b`+String[a57_0x145c70(0x176)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x595c6f){const _0xe9f867=a57_0x145c70,_0x2c715f=_0x595c6f[_0xe9f867(0x194)](/\brabetbase\b/i);if(_0x2c715f<0x0)return![];const _0x25bf8a=_0x595c6f[_0xe9f867(0x159)](_0x2c715f)[_0xe9f867(0x187)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0xe9f867(0x15e)](_0x25bf8a);}function parseFrontmatter(_0x4d0523){const _0x1c3701=a57_0x145c70,_0x435adc=_0x4d0523['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x435adc)return{'hasFrontmatter':![]};const _0x5e8218=_0x435adc[0x1]??'',_0x34c500={'hasFrontmatter':!![]};let _0x5050f0;try{_0x5050f0=a57_0xb8083b(_0x5e8218);}catch{return _0x34c500;}const _0xe762d5=asRecord(_0x5050f0);if(!_0xe762d5)return _0x34c500;_0x34c500[_0x1c3701(0x18b)]=scalarToString(_0xe762d5[_0x1c3701(0x18b)]),_0x34c500['displayName']=scalarToString(_0xe762d5[_0x1c3701(0x169)]),_0x34c500[_0x1c3701(0x14d)]=scalarToString(_0xe762d5[_0x1c3701(0x14d)]),_0x34c500[_0x1c3701(0x145)]=scalarToString(_0xe762d5[_0x1c3701(0x145)]);const _0x5727a=asRecord(_0xe762d5['metadata']);return _0x5727a&&(_0x34c500[_0x1c3701(0x161)]=scalarToString(_0x5727a[_0x1c3701(0x161)]),_0x34c500['internal']=scalarToBoolean(_0x5727a[_0x1c3701(0x14e)])),_0x34c500;}function asRecord(_0x217f29){const _0x4c4490=a57_0x145c70;if(_0x217f29&&typeof _0x217f29===_0x4c4490(0x18c)&&!Array[_0x4c4490(0x155)](_0x217f29))return _0x217f29;return undefined;}function scalarToString(_0x515c12){const _0x573d33=a57_0x145c70;if(typeof _0x515c12===_0x573d33(0x199))return _0x515c12[_0x573d33(0x183)]();if(typeof _0x515c12===_0x573d33(0x16d)||typeof _0x515c12===_0x573d33(0x14c))return String(_0x515c12);return undefined;}function scalarToBoolean(_0x5ee454){const _0x27c43e=a57_0x145c70;if(typeof _0x5ee454===_0x27c43e(0x14c))return _0x5ee454;if(typeof _0x5ee454===_0x27c43e(0x199))return cleanBoolean(_0x5ee454);return undefined;}function cleanBoolean(_0x182712){const _0x158e71=a57_0x145c70,_0x72d39f=_0x182712[_0x158e71(0x183)]()[_0x158e71(0x189)]();if(_0x72d39f===_0x158e71(0x18a))return!![];if(_0x72d39f===_0x158e71(0x151))return![];return undefined;}function issue(_0x1e7357,_0x44e0ee,_0x300dec,_0x56ad63,_0x1e7f87,_0x4ffab4){return{'level':_0x1e7357,'ruleId':_0x44e0ee,'file':_0x300dec,'section':_0x4ffab4,'message':_0x56ad63,'suggestion':_0x1e7f87};}
|
|
1
|
+
const a57_0x571337=a57_0xedb8;(function(_0x3cb7f2,_0x355952){const _0x2640a5=a57_0xedb8,_0x4dc685=_0x3cb7f2();while(!![]){try{const _0x11812e=-parseInt(_0x2640a5(0xd9))/0x1*(-parseInt(_0x2640a5(0xd3))/0x2)+-parseInt(_0x2640a5(0xe3))/0x3+-parseInt(_0x2640a5(0xe6))/0x4*(parseInt(_0x2640a5(0xb1))/0x5)+parseInt(_0x2640a5(0xaf))/0x6*(parseInt(_0x2640a5(0xd1))/0x7)+-parseInt(_0x2640a5(0xd4))/0x8+parseInt(_0x2640a5(0x9b))/0x9+parseInt(_0x2640a5(0xbf))/0xa;if(_0x11812e===_0x355952)break;else _0x4dc685['push'](_0x4dc685['shift']());}catch(_0x46f176){_0x4dc685['push'](_0x4dc685['shift']());}}}(a57_0x222e,0xcb4e3));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a57_0x1c58dd}from'yaml';import{CliErrors}from'../../errors.js';function a57_0xedb8(_0x4c51c4,_0x103bd2){_0x4c51c4=_0x4c51c4-0x93;const _0x222e5a=a57_0x222e();let _0xedb83c=_0x222e5a[_0x4c51c4];return _0xedb83c;}import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a57_0x571337(0x97),SUPPORTED_SKILL_TYPES=new Set([a57_0x571337(0xae),a57_0x571337(0xe1)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x1b3d94,_0x3b106b={}){const _0x560056=a57_0x571337,_0x287083=resolveSkillDirectoryRoot(_0x1b3d94),_0x586822=[],_0x4fed02=loadRequiredSkillFile(_0x287083,_0x586822),_0x51ff89=_0x4fed02?parseFrontmatter(_0x4fed02[_0x560056(0xd7)]):{'hasFrontmatter':![]};_0x4fed02&&validateFrontmatter(_0x4fed02[_0x560056(0xbb)],_0x51ff89,_0x586822);validateRuntimeCliReferences(_0x287083,_0x586822);const _0x1699b4=_0x586822[_0x560056(0xc3)](_0x27e97a=>_0x27e97a[_0x560056(0xaa)]===_0x560056(0xcb)),_0x495553=_0x586822[_0x560056(0xc3)](_0x4deeb6=>_0x4deeb6[_0x560056(0xaa)]==='warning');return{'ok':_0x1699b4[_0x560056(0xa1)]===0x0,'dir':_0x287083,'type':_0x51ff89[_0x560056(0xd0)],'errors':_0x1699b4,'warnings':_0x495553};}function resolveSkillDirectoryRoot(_0x1dd1ee){const _0x2e1daf=a57_0x571337,_0x361748=resolve(_0x1dd1ee);if(!existsSync(_0x361748))throw CliErrors[_0x2e1daf(0xc9)](_0x2e1daf(0xb7)+_0x1dd1ee);const _0x329884=lstatSync(_0x361748);if(_0x329884[_0x2e1daf(0xa7)]())return _0x361748;if(_0x329884[_0x2e1daf(0xd6)]()){const _0x316902=realpathSync(_0x361748);if(lstatSync(_0x316902)[_0x2e1daf(0xa7)]())return _0x316902;}throw CliErrors[_0x2e1daf(0xc9)](_0x2e1daf(0xb7)+_0x1dd1ee);}export function throwIfSkillValidationFailed(_0x11481e,_0x3301e5=![]){const _0x4faa65=a57_0x571337;if(_0x11481e['ok'])return;const _0x21788a=_0x11481e[_0x4faa65(0xbd)][_0x4faa65(0xc1)](_0x2fecf7=>{const _0x11c138=_0x4faa65,_0xf3931d=_0x2fecf7['section']?'#'+_0x2fecf7[_0x11c138(0xc0)]:'';return _0x2fecf7['level']['toUpperCase']()+'\x20'+_0x2fecf7[_0x11c138(0xcc)]+'\x20'+_0x2fecf7[_0x11c138(0xa9)]+_0xf3931d+':\x20'+_0x2fecf7['message']+_0x11c138(0x98)+_0x2fecf7[_0x11c138(0xa8)];});throw CliErrors['validation'](_0x4faa65(0xe8)+_0x21788a['join']('\x0a'),'Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.');}function loadRequiredSkillFile(_0x3fc407,_0x171c36){const _0x229b1b=a57_0x571337,_0xe7def7=resolve(_0x3fc407,SKILL_FILE);if(!existsSync(_0xe7def7))return _0x171c36[_0x229b1b(0xe2)](issue('error','structure-complete',SKILL_FILE,_0x229b1b(0xb8),'Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;const _0x47c7da=lstatSync(_0xe7def7);if(_0x47c7da[_0x229b1b(0xd6)]())return _0x171c36[_0x229b1b(0xe2)](issue(_0x229b1b(0xcb),'structure-complete',SKILL_FILE,_0x229b1b(0xeb),_0x229b1b(0xc6))),undefined;if(!_0x47c7da[_0x229b1b(0xc4)]())return _0x171c36[_0x229b1b(0xe2)](issue(_0x229b1b(0xcb),'structure-complete',SKILL_FILE,_0x229b1b(0x9a),_0x229b1b(0xa3))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0xe7def7,_0x229b1b(0xcf))};}function validateFrontmatter(_0x4c28c7,_0x55a86c,_0x10a228){const _0x17717d=a57_0x571337;if(!_0x55a86c[_0x17717d(0xac)]){_0x10a228[_0x17717d(0xe2)](issue(_0x17717d(0xcb),_0x17717d(0xb3),_0x4c28c7,_0x17717d(0xc2),_0x17717d(0xdd)));return;}!_0x55a86c['name']?.[_0x17717d(0xa2)]()&&_0x10a228[_0x17717d(0xe2)](issue(_0x17717d(0xcb),_0x17717d(0xb3),_0x4c28c7,_0x17717d(0xb0),'Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.')),!_0x55a86c[_0x17717d(0xe9)]?.[_0x17717d(0xa2)]()&&_0x10a228[_0x17717d(0xe2)](issue(_0x17717d(0xe5),'display-name-recommended',_0x4c28c7,_0x17717d(0x94),_0x17717d(0xca))),!_0x55a86c['example']?.[_0x17717d(0xa2)]()&&_0x10a228[_0x17717d(0xe2)](issue(_0x17717d(0xe5),_0x17717d(0x99),_0x4c28c7,_0x17717d(0xad),'Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.')),!_0x55a86c[_0x17717d(0xce)]?.[_0x17717d(0xa2)]()&&_0x10a228[_0x17717d(0xe2)](issue('error',_0x17717d(0xea),_0x4c28c7,_0x17717d(0xe0),_0x17717d(0xe7))),_0x55a86c['internal']===!![]&&_0x10a228[_0x17717d(0xe2)](issue('error',_0x17717d(0xdf),_0x4c28c7,'metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.')),_0x55a86c[_0x17717d(0xd0)]?.[_0x17717d(0xa2)]()&&!SUPPORTED_SKILL_TYPES[_0x17717d(0xb5)](_0x55a86c[_0x17717d(0xd0)])&&_0x10a228[_0x17717d(0xe2)](issue(_0x17717d(0xcb),_0x17717d(0xb3),_0x4c28c7,_0x17717d(0xa5),_0x17717d(0xdb)));}function validateRuntimeCliReferences(_0x3c2d1f,_0xb022f7){const _0x30a100=a57_0x571337;for(const _0x572906 of findRabetbaseCliInvocations(_0x3c2d1f)){_0xb022f7[_0x30a100(0xe2)](issue(_0x30a100(0xe5),_0x30a100(0xb2),_0x572906[_0x30a100(0xa9)],_0x30a100(0xa6),_0x30a100(0xbe),'L'+_0x572906[_0x30a100(0x9f)]));}}function findRabetbaseCliInvocations(_0x416568){const _0x2792f7=a57_0x571337;return scanSkillDirectory(_0x416568)[_0x2792f7(0xc3)](_0x84d828=>TEXT_SKILL_FILE_PATTERN[_0x2792f7(0xde)](_0x84d828[_0x2792f7(0xbb)]))[_0x2792f7(0xec)](_0x129012=>{const _0x45f145=_0x2792f7,_0x37f675=fileText(_0x129012);return _0x37f675[_0x45f145(0x93)](/\r?\n/)['map']((_0x35bf9f,_0x59ebce)=>({'file':_0x129012[_0x45f145(0xbb)],'line':_0x59ebce+0x1,'text':_0x35bf9f}))['filter'](({text:_0x1491fe})=>isRabetbaseCliInvocation(_0x1491fe))[_0x45f145(0xc1)](({file:_0x14a1eb,line:_0x13f29c})=>({'file':_0x14a1eb,'line':_0x13f29c}));});}const RABETBASE_SUBCOMMANDS=[a57_0x571337(0xd5),a57_0x571337(0xd8),a57_0x571337(0xb4),'page','project','app','schema',a57_0x571337(0x9c),a57_0x571337(0xc8),'kb',a57_0x571337(0xda),'workspace',a57_0x571337(0xb9),a57_0x571337(0xb6),a57_0x571337(0xcd),a57_0x571337(0xed)],RABETBASE_INVOCATION=new RegExp(String[a57_0x571337(0xbc)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a57_0x571337(0x9e)]('|')})\b`+String['raw']`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function a57_0x222e(){const _0x5d207f=['config','Set\x20metadata.type\x20to\x20write\x20or\x20read.','toLowerCase','Add\x20frontmatter\x20with\x20name\x20and\x20description.','test','internal-skill','Frontmatter\x20description\x20is\x20empty.','read','push','2563290jDnLMx','metadata','warning','537436Utpqre','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','Skill\x20validation\x20failed:\x0a','displayName','description-required','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','flatMap','registry','example','split','Frontmatter\x20displayName\x20is\x20missing.','boolean','isArray','SKILL.md','\x20Fix:\x20','example-recommended','SKILL.md\x20is\x20not\x20a\x20file.','7153254JhjGwf','service','false','join','line','slice','length','trim','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','internal','metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','isDirectory','suggestion','file','level','name','hasFrontmatter','Frontmatter\x20example\x20is\x20missing.','write','784326FHKbEy','Frontmatter\x20name\x20is\x20missing.','25ZBvfsN','rabetbase-cli-reference','frontmatter-required','bff','has','auth','Skill\x20directory\x20not\x20found:\x20','Missing\x20SKILL.md.','data','true','path','raw','errors','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','13554580mNtkki','section','map','SKILL.md\x20must\x20start\x20with\x20frontmatter.','filter','isFile','string','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','match','artifact','validation','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','error','ruleId','logs','description','utf8','type','14sTGfdv','number','1446SGcpVH','12770776OEyNyu','dataset','isSymbolicLink','content','sql','2135svzAon'];a57_0x222e=function(){return _0x5d207f;};return a57_0x222e();}function isRabetbaseCliInvocation(_0x275f1c){const _0x1166e8=a57_0x571337,_0x3f6a45=_0x275f1c['search'](/\brabetbase\b/i);if(_0x3f6a45<0x0)return![];const _0x48bc1b=_0x275f1c[_0x1166e8(0xa0)](_0x3f6a45)[_0x1166e8(0x93)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION['test'](_0x48bc1b);}function parseFrontmatter(_0x390621){const _0x3e3876=a57_0x571337,_0x470f05=_0x390621[_0x3e3876(0xc7)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x470f05)return{'hasFrontmatter':![]};const _0x9a20cc=_0x470f05[0x1]??'',_0x23a713={'hasFrontmatter':!![]};let _0x2e2824;try{_0x2e2824=a57_0x1c58dd(_0x9a20cc);}catch{return _0x23a713;}const _0x763c3c=asRecord(_0x2e2824);if(!_0x763c3c)return _0x23a713;_0x23a713[_0x3e3876(0xab)]=scalarToString(_0x763c3c[_0x3e3876(0xab)]),_0x23a713[_0x3e3876(0xe9)]=scalarToString(_0x763c3c[_0x3e3876(0xe9)]),_0x23a713['description']=scalarToString(_0x763c3c[_0x3e3876(0xce)]),_0x23a713['example']=scalarToString(_0x763c3c[_0x3e3876(0xee)]);const _0x2d415f=asRecord(_0x763c3c[_0x3e3876(0xe4)]);return _0x2d415f&&(_0x23a713[_0x3e3876(0xd0)]=scalarToString(_0x2d415f[_0x3e3876(0xd0)]),_0x23a713[_0x3e3876(0xa4)]=scalarToBoolean(_0x2d415f[_0x3e3876(0xa4)])),_0x23a713;}function asRecord(_0x4a16e9){const _0x494b64=a57_0x571337;if(_0x4a16e9&&typeof _0x4a16e9==='object'&&!Array[_0x494b64(0x96)](_0x4a16e9))return _0x4a16e9;return undefined;}function scalarToString(_0x38c602){const _0x1add4=a57_0x571337;if(typeof _0x38c602===_0x1add4(0xc5))return _0x38c602[_0x1add4(0xa2)]();if(typeof _0x38c602===_0x1add4(0xd2)||typeof _0x38c602==='boolean')return String(_0x38c602);return undefined;}function scalarToBoolean(_0xfd88e6){const _0x11b4ca=a57_0x571337;if(typeof _0xfd88e6===_0x11b4ca(0x95))return _0xfd88e6;if(typeof _0xfd88e6===_0x11b4ca(0xc5))return cleanBoolean(_0xfd88e6);return undefined;}function cleanBoolean(_0x2fc51d){const _0x234481=a57_0x571337,_0x4b8a0b=_0x2fc51d[_0x234481(0xa2)]()[_0x234481(0xdc)]();if(_0x4b8a0b===_0x234481(0xba))return!![];if(_0x4b8a0b===_0x234481(0x9d))return![];return undefined;}function issue(_0x7019c3,_0x3d68e3,_0x2596db,_0x243171,_0x58b7d1,_0x2475c8){return{'level':_0x7019c3,'ruleId':_0x3d68e3,'file':_0x2596db,'section':_0x2475c8,'message':_0x243171,'suggestion':_0x58b7d1};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a58_0x273d63=a58_0x226e;function a58_0x226e(_0x9ff86e,_0x2681f5){_0x9ff86e=_0x9ff86e-0x71;const _0x33d4ff=a58_0x33d4();let _0x226e7a=_0x33d4ff[_0x9ff86e];return _0x226e7a;}(function(_0x3b4f39,_0x19013b){const _0x448fdf=a58_0x226e,_0x5cfd09=_0x3b4f39();while(!![]){try{const _0x302ea3=-parseInt(_0x448fdf(0x7a))/0x1+parseInt(_0x448fdf(0x81))/0x2*(parseInt(_0x448fdf(0x7b))/0x3)+parseInt(_0x448fdf(0x84))/0x4+-parseInt(_0x448fdf(0x76))/0x5*(parseInt(_0x448fdf(0x82))/0x6)+-parseInt(_0x448fdf(0x78))/0x7+parseInt(_0x448fdf(0x7f))/0x8*(-parseInt(_0x448fdf(0x80))/0x9)+parseInt(_0x448fdf(0x77))/0xa;if(_0x302ea3===_0x19013b)break;else _0x5cfd09['push'](_0x5cfd09['shift']());}catch(_0x813d8){_0x5cfd09['push'](_0x5cfd09['shift']());}}}(a58_0x33d4,0xb4377));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_0x273d63(0x7d),'command':'detail','description':a58_0x273d63(0x73),'risk':'read','flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0xe543b4){const _0x5801ff=a58_0x273d63,_0x3eb7e0=await getSqlQueryInfo(_0xe543b4[_0x5801ff(0x72)],_0xe543b4[_0x5801ff(0x71)](_0x5801ff(0x79))),_0x176ffe=_0xe543b4[_0x5801ff(0x7e)](_0x5801ff(0x75));if(_0x176ffe)return{'ok':!![],'data':_0x3eb7e0};const _0x2ab549=_0x3eb7e0[_0x5801ff(0x7c)]?await getDbName(_0xe543b4['appCode'],_0x3eb7e0[_0x5801ff(0x7c)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x3eb7e0[_0x5801ff(0x83)],'sqlName':_0x3eb7e0[_0x5801ff(0x74)],'db':_0x2ab549?_0x2ab549+'\x20('+_0x3eb7e0['dbId']+')':_0x3eb7e0[_0x5801ff(0x7c)]??'','sqlContent':_0x3eb7e0['sqlContent']??''}};}};function a58_0x33d4(){const _0x3a9f19=['sqlcode','578883jhdgau','9FknXAT','dbId','sql','bool','8cjlJco','5800779KmVzAW','746804fhSfZH','72JobAqV','sqlCode','571200wKPymh','str','appCode','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','sqlName','verbose','145725qsHhkT','20646960sHoxbs','7114667VcvEIE'];a58_0x33d4=function(){return _0x3a9f19;};return a58_0x33d4();}
|
package/lib/commands/sql/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a59_0x3215b9=a59_0x5919;(function(_0x5edbec,_0x64354f){const _0x419aac=a59_0x5919,_0x348206=_0x5edbec();while(!![]){try{const _0x3a4d7f=-parseInt(_0x419aac(0xb7))/0x1+-parseInt(_0x419aac(0xbc))/0x2*(parseInt(_0x419aac(0xbf))/0x3)+parseInt(_0x419aac(0xc2))/0x4*(-parseInt(_0x419aac(0xc3))/0x5)+parseInt(_0x419aac(0xc0))/0x6+-parseInt(_0x419aac(0xb8))/0x7*(parseInt(_0x419aac(0xc7))/0x8)+parseInt(_0x419aac(0xc1))/0x9+parseInt(_0x419aac(0xbd))/0xa;if(_0x3a4d7f===_0x64354f)break;else _0x348206['push'](_0x348206['shift']());}catch(_0x30e2c2){_0x348206['push'](_0x348206['shift']());}}}(a59_0x1a93,0xa5338));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a59_0x1a93(){const _0x6b59ee=['str','execResult','isArray','exec','sql','now','1205785fvZjuo','2248057QsxzAr','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','execError','read','4GAqLgt','23454020TIrCHB','sqlcode','1006071vmzXvv','6063198lVnyrw','2356632FasjJB','948scnnwn','15685lSYxhn','execSuccess','length','SQL\x20execution\x20failed','8NiIIAA','Returned\x20'];a59_0x1a93=function(){return _0x6b59ee;};return a59_0x1a93();}import{parseJsonParams}from'../../utils/params.js';function a59_0x5919(_0x3cc9f0,_0x40debe){_0x3cc9f0=_0x3cc9f0-0xb6;const _0x1a93e7=a59_0x1a93();let _0x5919e2=_0x1a93e7[_0x3cc9f0];return _0x5919e2;}export const sqlExec={'service':a59_0x3215b9(0xcd),'command':a59_0x3215b9(0xcc),'description':a59_0x3215b9(0xb9),'risk':a59_0x3215b9(0xbb),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x595038){const _0x8198e6=a59_0x3215b9,_0x1c5f9a=parseJsonParams(_0x595038[_0x8198e6(0xc9)]('params')),_0x1047ab=Date[_0x8198e6(0xb6)](),_0x438e85=await executeSdkSql(_0x595038['str'](_0x8198e6(0xbe)),_0x1c5f9a),_0x324770=Date['now']()-_0x1047ab,_0xfcf75f=_0x438e85?.[_0x8198e6(0xca)]??_0x438e85,_0x25acd1=_0x438e85?.[_0x8198e6(0xc4)]??!![];if(!_0x25acd1)return{'ok':![],'data':{'error':_0x438e85?.[_0x8198e6(0xba)]||_0x8198e6(0xc6),'elapsed':_0x324770},'message':_0x8198e6(0xc6)};const _0x1e05f8=Array[_0x8198e6(0xcb)](_0xfcf75f)?_0xfcf75f:[];return{'ok':!![],'data':{'rows':_0x1e05f8,'rowCount':_0x1e05f8[_0x8198e6(0xc5)],'elapsed':_0x324770},'message':_0x8198e6(0xc8)+_0x1e05f8[_0x8198e6(0xc5)]+'\x20row(s)\x20in\x20'+_0x324770+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a60_0x1eb9(_0x5afab6,_0x5b96ec){_0x5afab6=_0x5afab6-0x1c7;const _0x55d240=a60_0x55d2();let _0x1eb939=_0x55d240[_0x5afab6];return _0x1eb939;}(function(_0x2f5d14,_0x3887e9){const _0x4b5df3=a60_0x1eb9,_0x315bb1=_0x2f5d14();while(!![]){try{const _0x3311ad=-parseInt(_0x4b5df3(0x1cc))/0x1+-parseInt(_0x4b5df3(0x1cd))/0x2+-parseInt(_0x4b5df3(0x1ca))/0x3+-parseInt(_0x4b5df3(0x1cf))/0x4+parseInt(_0x4b5df3(0x1c8))/0x5*(-parseInt(_0x4b5df3(0x1ce))/0x6)+-parseInt(_0x4b5df3(0x1c9))/0x7*(parseInt(_0x4b5df3(0x1c7))/0x8)+parseInt(_0x4b5df3(0x1cb))/0x9;if(_0x3311ad===_0x3887e9)break;else _0x315bb1['push'](_0x315bb1['shift']());}catch(_0x419acb){_0x315bb1['push'](_0x315bb1['shift']());}}}(a60_0x55d2,0xbe55e));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a60_0x55d2(){const _0x4c2e60=['305vSHfGQ','5331459IpaWSF','1854057XRmVBf','50400126qgAAod','413774KpMeCj','1426716nkDuLo','100542TQCfQu','5165740RqgwdZ','8fEbLLb'];a60_0x55d2=function(){return _0x4c2e60;};return a60_0x55d2();}export const sqlDefinitions=[sqlDetail,sqlExec];
|
package/lib/commands/update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a61_0x33cf6a=a61_0x1b8c;(function(_0xb1424a,_0x2218f6){const _0x50f08a=a61_0x1b8c,_0x36d989=_0xb1424a();while(!![]){try{const _0x57d356=-parseInt(_0x50f08a(0xe6))/0x1+parseInt(_0x50f08a(0xe8))/0x2+-parseInt(_0x50f08a(0xe5))/0x3*(-parseInt(_0x50f08a(0x107))/0x4)+-parseInt(_0x50f08a(0x12a))/0x5+-parseInt(_0x50f08a(0xf8))/0x6+parseInt(_0x50f08a(0x11b))/0x7+parseInt(_0x50f08a(0xef))/0x8*(parseInt(_0x50f08a(0x127))/0x9);if(_0x57d356===_0x2218f6)break;else _0x36d989['push'](_0x36d989['shift']());}catch(_0x4a5e6b){_0x36d989['push'](_0x36d989['shift']());}}}(a61_0x268b,0x7f2fd));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':a61_0x33cf6a(0x111),'type':'boolean','description':'Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','default':![]},{'name':a61_0x33cf6a(0xe7),'type':a61_0x33cf6a(0xdf),'description':a61_0x33cf6a(0x10b),'default':![]},{'name':a61_0x33cf6a(0x119),'type':a61_0x33cf6a(0x112),'description':'Install\x20a\x20specific\x20CLI\x20version'},{'name':'no-skills','type':a61_0x33cf6a(0xdf),'description':'Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','default':![]},{'name':a61_0x33cf6a(0xf1),'type':a61_0x33cf6a(0xdf),'description':'Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','default':!![],'hidden':!![]}];function parseSemver(_0x2bfc53){const _0x3d454e=a61_0x33cf6a,_0xcc9db6=_0x2bfc53['trim']()[_0x3d454e(0xe3)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0xcc9db6)return null;return{'major':Number(_0xcc9db6[0x1]),'minor':Number(_0xcc9db6[0x2]),'patch':Number(_0xcc9db6[0x3]),'prerelease':_0xcc9db6[0x4]};}function compareSemver(_0x52ef0d,_0x3fcae8){const _0x574b99=a61_0x33cf6a,_0x5dc1e3=parseSemver(_0x52ef0d),_0x3b1faa=parseSemver(_0x3fcae8);if(!_0x5dc1e3||!_0x3b1faa)throw CliErrors[_0x574b99(0x103)](_0x574b99(0xf2),_0x574b99(0xe9));for(const _0x136ca4 of[_0x574b99(0xff),_0x574b99(0x101),_0x574b99(0xf5)]){if(_0x5dc1e3[_0x136ca4]<_0x3b1faa[_0x136ca4])return-0x1;if(_0x5dc1e3[_0x136ca4]>_0x3b1faa[_0x136ca4])return 0x1;}if(!_0x5dc1e3[_0x574b99(0x105)]&&!_0x3b1faa[_0x574b99(0x105)])return 0x0;if(!_0x5dc1e3[_0x574b99(0x105)])return 0x1;if(!_0x3b1faa[_0x574b99(0x105)])return-0x1;if(_0x5dc1e3[_0x574b99(0x105)]===_0x3b1faa['prerelease'])return 0x0;return _0x5dc1e3[_0x574b99(0x105)]<_0x3b1faa[_0x574b99(0x105)]?-0x1:0x1;}function getRequestedVersion(_0x404170){const _0x28d9a2=a61_0x33cf6a,_0xcdf709=_0x404170[_0x28d9a2(0x109)](_0x28d9a2(0x119))['trim']();if(_0xcdf709)return _0xcdf709;return String(_0x404170[_0x28d9a2(0xf9)]?.[0x0]??'')[_0x28d9a2(0x110)]();}function shouldSkipCliBuiltInSkill(_0x350bf5){const _0x20de2f=a61_0x33cf6a;return _0x350bf5[_0x20de2f(0xf0)](_0x20de2f(0xf7))||_0x350bf5['flag'](_0x20de2f(0xf1))===![];}function a61_0x1b8c(_0x496fef,_0x15e1d4){_0x496fef=_0x496fef-0xde;const _0x268be0=a61_0x268b();let _0x1b8c95=_0x268be0[_0x496fef];return _0x1b8c95;}async function validateUpdateFlags(_0x9cebf3){const _0x3f53b1=a61_0x33cf6a,_0x2831a8=getRequestedVersion(_0x9cebf3),_0x2f24e3=[_0x9cebf3['bool']('latest')?'latest':'',_0x9cebf3[_0x3f53b1(0xf0)](_0x3f53b1(0xe7))?'beta':'',_0x2831a8?_0x3f53b1(0x119):''][_0x3f53b1(0x124)](Boolean);if(_0x2f24e3[_0x3f53b1(0x10a)]>0x1)throw CliErrors[_0x3f53b1(0x103)]('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.',_0x3f53b1(0xf3));if(_0x2831a8&&!parseSemver(_0x2831a8))throw CliErrors[_0x3f53b1(0x103)](_0x3f53b1(0xe4)+_0x2831a8,_0x3f53b1(0xfc));}async function fetchNpmDistTags(){const _0x3fe492=a61_0x33cf6a;try{const _0x52ac2c=NPM_REGISTRY_BASE_URL+_0x3fe492(0x11c)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x3fe492(0x126),_0x45fe3b=await fetch(_0x52ac2c,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x45fe3b['ok'])return null;const _0x4179f7=await _0x45fe3b[_0x3fe492(0x11a)]();if(!_0x4179f7||typeof _0x4179f7!=='object')return null;return Object[_0x3fe492(0x11d)](Object[_0x3fe492(0x115)](_0x4179f7)['filter'](([,_0x3c33d4])=>typeof _0x3c33d4==='string'&&_0x3c33d4[_0x3fe492(0x110)]())[_0x3fe492(0xee)](([_0x162727,_0x446bf2])=>[_0x162727,String(_0x446bf2)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0x1605bf){const _0x2823ac=a61_0x33cf6a,_0x5f5c61=getRequestedVersion(_0x1605bf);if(_0x5f5c61)return{'version':_0x5f5c61,'source':_0x2823ac(0x119)};const _0x98999b=_0x1605bf[_0x2823ac(0xf0)]('beta')?_0x2823ac(0xe7):_0x2823ac(0x111),_0x2dc0a=await fetchNpmDistTags(),_0x35c09a=_0x2dc0a?.[_0x98999b];if(!_0x35c09a)return null;return{'version':_0x35c09a,'source':_0x98999b};}function shouldInstallTarget(_0x3a32c2,_0x70431e){const _0x1dcf14=a61_0x33cf6a,_0x5041f8=compareSemver(_0x3a32c2,_0x70431e[_0x1dcf14(0x119)]);if(_0x70431e['source']===_0x1dcf14(0x119))return _0x5041f8!==0x0;return _0x5041f8<0x0;}function installCliPackage(_0x1b89b3,_0x44651b){const _0xcd73ec=a61_0x33cf6a,_0x5ba3e4=resolveNpmBin(_0xcd73ec(0xfb)),_0x52449f=[_0xcd73ec(0x113),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x1b89b3];console['log']('*\x20'+[_0x5ba3e4,..._0x52449f][_0xcd73ec(0x114)]('\x20'));const _0x3a1508=spawnSync(_0x5ba3e4,_0x52449f,{'cwd':process['cwd'](),'stdio':_0x44651b?_0xcd73ec(0xea):_0xcd73ec(0x104),'env':process.env,'shell':![]});if(_0x3a1508[_0xcd73ec(0x10d)]===0x0)return{'ok':!![]};let _0x17ec7c=_0x3a1508['error']?.[_0xcd73ec(0x129)]||_0xcd73ec(0xeb)+(_0x3a1508[_0xcd73ec(0x10d)]??_0xcd73ec(0xe0));if(_0x44651b){const _0x551c88=_0x3a1508['stderr']?_0x3a1508[_0xcd73ec(0xf4)][_0xcd73ec(0x108)]()[_0xcd73ec(0x110)]():'',_0x401d00=_0x3a1508[_0xcd73ec(0xfd)]?_0x3a1508[_0xcd73ec(0xfd)]['toString']()[_0xcd73ec(0x110)]():'';if(_0x551c88)_0x17ec7c=_0x551c88;else{if(_0x401d00)_0x17ec7c=_0x401d00;}}return{'ok':![],'error':_0x17ec7c};}async function installCliBuiltInSkill(_0x16e041){const _0x2c1d42=a61_0x33cf6a;console['log'](_0x2c1d42(0xfa));const _0x39021b=runNpxSkillsAddGlobal(process[_0x2c1d42(0x122)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x16e041?'pipe':_0x2c1d42(0x104)});if(_0x39021b[_0x2c1d42(0x116)]){console['log'](_0x2c1d42(0x117)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x2c1d42(0xed));return;}if(_0x39021b['ok']){console['log'](_0x2c1d42(0x10c));return;}console[_0x2c1d42(0x11f)](_0x2c1d42(0x120)+(_0x39021b['error']||_0x2c1d42(0xe0))),console[_0x2c1d42(0x11e)](_0x2c1d42(0x102));}async function execute(_0x5f4577){const _0x219fc0=a61_0x33cf6a;await validateUpdateFlags(_0x5f4577);const _0x15bbb2=getCliVersion();console[_0x219fc0(0x11e)]('Current\x20version:\x20'+_0x15bbb2),console[_0x219fc0(0x11e)]('Checking\x20npm\x20dist-tags...');const _0x46ab78=await resolveTargetVersion(_0x5f4577);if(!_0x46ab78){const _0x4063f7=_0x5f4577['bool'](_0x219fc0(0xe7))?'beta':_0x219fc0(0x111),_0x39ea8b=_0x219fc0(0x10e)+_0x4063f7+_0x219fc0(0x100);return console['warn'](_0x39ea8b),console[_0x219fc0(0x11e)](_0x219fc0(0xde)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4063f7),{'ok':![]};}if(!shouldInstallTarget(_0x15bbb2,_0x46ab78)){const _0x11f6cc=_0x46ab78[_0x219fc0(0x12b)]===_0x219fc0(0x119)?_0x219fc0(0xe1)+_0x46ab78[_0x219fc0(0x119)]+').':_0x219fc0(0x10f)+_0x46ab78[_0x219fc0(0x119)]+').';return console[_0x219fc0(0x11e)](_0x11f6cc),shouldSkipCliBuiltInSkill(_0x5f4577)?console[_0x219fc0(0x11e)](_0x219fc0(0x123)):await installCliBuiltInSkill(_0x5f4577[_0x219fc0(0xf6)]),{'ok':!![]};}console[_0x219fc0(0x11e)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x15bbb2+_0x219fc0(0x118)+_0x46ab78[_0x219fc0(0x119)]);const _0x4d5d21=installCliPackage(_0x46ab78[_0x219fc0(0x119)],_0x5f4577['nonInteractive']);if(!_0x4d5d21['ok']){const _0x2c0580=_0x219fc0(0x125)+(_0x4d5d21[_0x219fc0(0xfe)]||_0x219fc0(0xe0));return console[_0x219fc0(0xfe)](_0x2c0580),console[_0x219fc0(0x11e)](_0x219fc0(0xe2)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x46ab78['version']),{'ok':![]};}return console[_0x219fc0(0x11e)]('Updated\x20to\x20v'+_0x46ab78[_0x219fc0(0x119)]+'.'),console['log'](_0x219fc0(0x121)),shouldSkipCliBuiltInSkill(_0x5f4577)?console[_0x219fc0(0x11e)](_0x219fc0(0x123)):await installCliBuiltInSkill(_0x5f4577[_0x219fc0(0xf6)]),{'ok':!![]};}export const updateDefinition={'service':a61_0x33cf6a(0xec),'command':'run','description':a61_0x33cf6a(0x128)+CLI_BIN_NAME+a61_0x33cf6a(0x12c),'risk':a61_0x33cf6a(0x106),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};function a61_0x268b(){const _0x1eac7e=['\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','validation','inherit','prerelease','write','10200ymgQQS','toString','str','length','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','status','Unable\x20to\x20resolve\x20','Already\x20up\x20to\x20date\x20(v','trim','latest','string','install','join','entries','skipped','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','\x20->\x20','version','json','4050109ZZPBvl','/-/package/','fromEntries','log','warn','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','cwd','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','filter','Update\x20failed:\x20','/dist-tags','9eagTJf','Update\x20','message','2467645osaJjb','source','\x20CLI\x20from\x20npm','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','boolean','unknown','Already\x20on\x20requested\x20version\x20(v','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','match','Invalid\x20version:\x20','903vAUWGs','414942BoTQdE','beta','96490frJDof','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','pipe','exit\x20','update','=1).','map','3965696BfKmux','bool','skills','Version\x20comparison\x20failed.','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','stderr','patch','nonInteractive','no-skills','2763996MzHUMu','args','Checking\x20CLI\x20Built-in\x20Skill...','npm','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','stdout','error','major','\x20version\x20from\x20npm.','minor'];a61_0x268b=function(){return _0x1eac7e;};return a61_0x268b();}
|
|
1
|
+
const a61_0x3a5218=a61_0x278e;(function(_0x4c792e,_0x288336){const _0x343f81=a61_0x278e,_0x583957=_0x4c792e();while(!![]){try{const _0x44f42b=parseInt(_0x343f81(0x204))/0x1+parseInt(_0x343f81(0x1e2))/0x2+parseInt(_0x343f81(0x1ea))/0x3+parseInt(_0x343f81(0x1f0))/0x4+parseInt(_0x343f81(0x1fd))/0x5+-parseInt(_0x343f81(0x218))/0x6*(parseInt(_0x343f81(0x20a))/0x7)+-parseInt(_0x343f81(0x216))/0x8;if(_0x44f42b===_0x288336)break;else _0x583957['push'](_0x583957['shift']());}catch(_0x3bf785){_0x583957['push'](_0x583957['shift']());}}}(a61_0x1d7e,0x8f8b3));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';function a61_0x278e(_0x55550c,_0x756af2){_0x55550c=_0x55550c-0x1d3;const _0x1d7e33=a61_0x1d7e();let _0x278e8b=_0x1d7e33[_0x55550c];return _0x278e8b;}import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':'latest','type':'boolean','description':a61_0x3a5218(0x201),'default':![]},{'name':a61_0x3a5218(0x1df),'type':a61_0x3a5218(0x210),'description':a61_0x3a5218(0x1dc),'default':![]},{'name':a61_0x3a5218(0x1f8),'type':a61_0x3a5218(0x1d5),'description':a61_0x3a5218(0x1ff)},{'name':a61_0x3a5218(0x209),'type':'boolean','description':'Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','default':![]},{'name':'skills','type':a61_0x3a5218(0x210),'description':a61_0x3a5218(0x21d),'default':!![],'hidden':!![]}];function a61_0x1d7e(){const _0x3817d9=['warn','beta','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','major','398528kzaNxm','/dist-tags','prerelease','inherit','toString','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','Current\x20version:\x20','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','1550106qNVHay','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','Checking\x20npm\x20dist-tags...','minor','install','message','2139448PLjeGX','stdout','=1).','Unable\x20to\x20resolve\x20','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','Checking\x20CLI\x20Built-in\x20Skill...','version','\x20CLI\x20from\x20npm','fromEntries','cwd','filter','3763815srsTHd','object','Install\x20a\x20specific\x20CLI\x20version','json','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','status','source','44187soNHFJ','str','pipe','log','Updated\x20to\x20v','no-skills','7RZTbIb','unknown','latest','Update\x20','validation','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','boolean','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','trim','length','args','timeout','3651848HSScTP','join','6020052PJqodL','match','nonInteractive','/-/package/','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','exit\x20','update','Update\x20failed:\x20','flag','Version\x20comparison\x20failed.','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','string','bool','skipped','run','error','map','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','stderr'];a61_0x1d7e=function(){return _0x3817d9;};return a61_0x1d7e();}function parseSemver(_0x15ee1d){const _0x154332=a61_0x3a5218,_0x59a932=_0x15ee1d[_0x154332(0x212)]()[_0x154332(0x219)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x59a932)return null;return{'major':Number(_0x59a932[0x1]),'minor':Number(_0x59a932[0x2]),'patch':Number(_0x59a932[0x3]),'prerelease':_0x59a932[0x4]};}function compareSemver(_0x402158,_0x3cb831){const _0x1cbfba=a61_0x3a5218,_0x336f96=parseSemver(_0x402158),_0x2dc088=parseSemver(_0x3cb831);if(!_0x336f96||!_0x2dc088)throw CliErrors[_0x1cbfba(0x20e)](_0x1cbfba(0x1d3),_0x1cbfba(0x1f5));for(const _0x440320 of[_0x1cbfba(0x1e1),_0x1cbfba(0x1ed),'patch']){if(_0x336f96[_0x440320]<_0x2dc088[_0x440320])return-0x1;if(_0x336f96[_0x440320]>_0x2dc088[_0x440320])return 0x1;}if(!_0x336f96[_0x1cbfba(0x1e4)]&&!_0x2dc088[_0x1cbfba(0x1e4)])return 0x0;if(!_0x336f96[_0x1cbfba(0x1e4)])return 0x1;if(!_0x2dc088[_0x1cbfba(0x1e4)])return-0x1;if(_0x336f96[_0x1cbfba(0x1e4)]===_0x2dc088[_0x1cbfba(0x1e4)])return 0x0;return _0x336f96[_0x1cbfba(0x1e4)]<_0x2dc088[_0x1cbfba(0x1e4)]?-0x1:0x1;}function getRequestedVersion(_0x29db51){const _0x5b7162=a61_0x3a5218,_0x220615=_0x29db51[_0x5b7162(0x205)](_0x5b7162(0x1f8))['trim']();if(_0x220615)return _0x220615;return String(_0x29db51[_0x5b7162(0x214)]?.[0x0]??'')['trim']();}function shouldSkipCliBuiltInSkill(_0x3c298f){const _0xdcb267=a61_0x3a5218;return _0x3c298f[_0xdcb267(0x1d6)](_0xdcb267(0x209))||_0x3c298f[_0xdcb267(0x221)]('skills')===![];}async function validateUpdateFlags(_0x66ff0f){const _0x2c69d1=a61_0x3a5218,_0x16a361=getRequestedVersion(_0x66ff0f),_0x13bfc5=[_0x66ff0f[_0x2c69d1(0x1d6)]('latest')?_0x2c69d1(0x20c):'',_0x66ff0f[_0x2c69d1(0x1d6)](_0x2c69d1(0x1df))?_0x2c69d1(0x1df):'',_0x16a361?_0x2c69d1(0x1f8):'']['filter'](Boolean);if(_0x13bfc5[_0x2c69d1(0x213)]>0x1)throw CliErrors[_0x2c69d1(0x20e)](_0x2c69d1(0x21c),_0x2c69d1(0x20f));if(_0x16a361&&!parseSemver(_0x16a361))throw CliErrors[_0x2c69d1(0x20e)]('Invalid\x20version:\x20'+_0x16a361,_0x2c69d1(0x1e0));}async function fetchNpmDistTags(){const _0xafd129=a61_0x3a5218;try{const _0x3d0bca=NPM_REGISTRY_BASE_URL+_0xafd129(0x21b)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0xafd129(0x1e3),_0x374123=await fetch(_0x3d0bca,{'signal':AbortSignal[_0xafd129(0x215)](0x2710)});if(!_0x374123['ok'])return null;const _0x1e2bd8=await _0x374123[_0xafd129(0x200)]();if(!_0x1e2bd8||typeof _0x1e2bd8!==_0xafd129(0x1fe))return null;return Object[_0xafd129(0x1fa)](Object['entries'](_0x1e2bd8)[_0xafd129(0x1fc)](([,_0x89968a])=>typeof _0x89968a===_0xafd129(0x1d5)&&_0x89968a[_0xafd129(0x212)]())[_0xafd129(0x1da)](([_0x13a167,_0x30f5b6])=>[_0x13a167,String(_0x30f5b6)[_0xafd129(0x212)]()]));}catch{return null;}}async function resolveTargetVersion(_0x6fc64b){const _0x58cd1c=a61_0x3a5218,_0x14c23c=getRequestedVersion(_0x6fc64b);if(_0x14c23c)return{'version':_0x14c23c,'source':_0x58cd1c(0x1f8)};const _0x570b62=_0x6fc64b[_0x58cd1c(0x1d6)](_0x58cd1c(0x1df))?'beta':_0x58cd1c(0x20c),_0x3b8d88=await fetchNpmDistTags(),_0x14d1a9=_0x3b8d88?.[_0x570b62];if(!_0x14d1a9)return null;return{'version':_0x14d1a9,'source':_0x570b62};}function shouldInstallTarget(_0x107480,_0x3b5a10){const _0x2d7ec3=a61_0x3a5218,_0x4cb16c=compareSemver(_0x107480,_0x3b5a10[_0x2d7ec3(0x1f8)]);if(_0x3b5a10[_0x2d7ec3(0x203)]==='version')return _0x4cb16c!==0x0;return _0x4cb16c<0x0;}function installCliPackage(_0x35814f,_0x20bbd1){const _0x9bce22=a61_0x3a5218,_0x44bed6=resolveNpmBin('npm'),_0x2c4729=[_0x9bce22(0x1ee),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x35814f];console[_0x9bce22(0x207)]('*\x20'+[_0x44bed6,..._0x2c4729][_0x9bce22(0x217)]('\x20'));const _0x3b2e69=spawnSync(_0x44bed6,_0x2c4729,{'cwd':process[_0x9bce22(0x1fb)](),'stdio':_0x20bbd1?_0x9bce22(0x206):'inherit','env':process.env,'shell':![]});if(_0x3b2e69['status']===0x0)return{'ok':!![]};let _0x4da4d9=_0x3b2e69['error']?.[_0x9bce22(0x1ef)]||_0x9bce22(0x21e)+(_0x3b2e69[_0x9bce22(0x202)]??'unknown');if(_0x20bbd1){const _0xa60b00=_0x3b2e69[_0x9bce22(0x1dd)]?_0x3b2e69[_0x9bce22(0x1dd)][_0x9bce22(0x1e6)]()[_0x9bce22(0x212)]():'',_0x3d33c0=_0x3b2e69[_0x9bce22(0x1f1)]?_0x3b2e69['stdout'][_0x9bce22(0x1e6)]()[_0x9bce22(0x212)]():'';if(_0xa60b00)_0x4da4d9=_0xa60b00;else{if(_0x3d33c0)_0x4da4d9=_0x3d33c0;}}return{'ok':![],'error':_0x4da4d9};}async function installCliBuiltInSkill(_0xe45053){const _0x34ff99=a61_0x3a5218;console[_0x34ff99(0x207)](_0x34ff99(0x1f7));const _0x461d04=runNpxSkillsAddGlobal(process[_0x34ff99(0x1fb)](),LOVRABET_SKILL_SOURCE,{'stdio':_0xe45053?_0x34ff99(0x206):_0x34ff99(0x1e5)});if(_0x461d04[_0x34ff99(0x1d7)]){console[_0x34ff99(0x207)](_0x34ff99(0x1db)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x34ff99(0x1f2));return;}if(_0x461d04['ok']){console['log'](_0x34ff99(0x1d4));return;}console['warn'](_0x34ff99(0x211)+(_0x461d04[_0x34ff99(0x1d9)]||_0x34ff99(0x20b))),console[_0x34ff99(0x207)](_0x34ff99(0x1e7));}async function execute(_0x219fff){const _0x2e7552=a61_0x3a5218;await validateUpdateFlags(_0x219fff);const _0x1733b1=getCliVersion();console['log'](_0x2e7552(0x1e8)+_0x1733b1),console[_0x2e7552(0x207)](_0x2e7552(0x1ec));const _0x2493fd=await resolveTargetVersion(_0x219fff);if(!_0x2493fd){const _0xf90d6c=_0x219fff['bool'](_0x2e7552(0x1df))?_0x2e7552(0x1df):_0x2e7552(0x20c),_0x2aaeb9=_0x2e7552(0x1f3)+_0xf90d6c+'\x20version\x20from\x20npm.';return console[_0x2e7552(0x1de)](_0x2aaeb9),console[_0x2e7552(0x207)](_0x2e7552(0x1f6)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0xf90d6c),{'ok':![]};}if(!shouldInstallTarget(_0x1733b1,_0x2493fd)){const _0x311858=_0x2493fd[_0x2e7552(0x203)]==='version'?'Already\x20on\x20requested\x20version\x20(v'+_0x2493fd[_0x2e7552(0x1f8)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x2493fd[_0x2e7552(0x1f8)]+').';return console['log'](_0x311858),shouldSkipCliBuiltInSkill(_0x219fff)?console[_0x2e7552(0x207)]('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).'):await installCliBuiltInSkill(_0x219fff['nonInteractive']),{'ok':!![]};}console[_0x2e7552(0x207)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x1733b1+'\x20->\x20'+_0x2493fd[_0x2e7552(0x1f8)]);const _0x49a51b=installCliPackage(_0x2493fd[_0x2e7552(0x1f8)],_0x219fff[_0x2e7552(0x21a)]);if(!_0x49a51b['ok']){const _0x4d58b9=_0x2e7552(0x220)+(_0x49a51b[_0x2e7552(0x1d9)]||'unknown');return console[_0x2e7552(0x1d9)](_0x4d58b9),console[_0x2e7552(0x207)](_0x2e7552(0x1e9)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x2493fd[_0x2e7552(0x1f8)]),{'ok':![]};}return console[_0x2e7552(0x207)](_0x2e7552(0x208)+_0x2493fd[_0x2e7552(0x1f8)]+'.'),console[_0x2e7552(0x207)](_0x2e7552(0x1f4)),shouldSkipCliBuiltInSkill(_0x219fff)?console['log'](_0x2e7552(0x1eb)):await installCliBuiltInSkill(_0x219fff['nonInteractive']),{'ok':!![]};}export const updateDefinition={'service':a61_0x3a5218(0x21f),'command':a61_0x3a5218(0x1d8),'description':a61_0x3a5218(0x20d)+CLI_BIN_NAME+a61_0x3a5218(0x1f9),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a62_0x1da6d0=a62_0x30b9;(function(_0xcb354b,_0x3c8bbc){const _0x38030f=a62_0x30b9,_0x99474a=_0xcb354b();while(!![]){try{const _0x3106ce=-parseInt(_0x38030f(0x12a))/0x1*(parseInt(_0x38030f(0x12f))/0x2)+-parseInt(_0x38030f(0x153))/0x3+-parseInt(_0x38030f(0x12e))/0x4*(parseInt(_0x38030f(0x12c))/0x5)+-parseInt(_0x38030f(0x150))/0x6*(parseInt(_0x38030f(0x147))/0x7)+parseInt(_0x38030f(0x13b))/0x8*(-parseInt(_0x38030f(0x148))/0x9)+parseInt(_0x38030f(0x120))/0xa+parseInt(_0x38030f(0x140))/0xb;if(_0x3106ce===_0x3c8bbc)break;else _0x99474a['push'](_0x99474a['shift']());}catch(_0x4810cb){_0x99474a['push'](_0x99474a['shift']());}}}(a62_0x24eb,0xe9b28));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_0x1da6d0(0x11f),'type':'string','description':a62_0x1da6d0(0x12d)},{'name':'appcode','type':a62_0x1da6d0(0x128),'description':a62_0x1da6d0(0x139)},{'name':a62_0x1da6d0(0x138),'type':a62_0x1da6d0(0x128),'description':a62_0x1da6d0(0x130),'enum':[...RUNTIME_ENV_VALUES]},{'name':a62_0x1da6d0(0x14d),'type':a62_0x1da6d0(0x11e),'description':a62_0x1da6d0(0x14a),'default':![]}];async function executeWorkspaceUse(_0x18cedc,_0x1c676a){const _0x24bbab=a62_0x1da6d0,_0x36a99e=_0x18cedc[_0x24bbab(0x12b)](_0x24bbab(0x11f))['trim'](),_0x3a09c3=_0x18cedc[_0x24bbab(0x12b)](_0x24bbab(0x124))[_0x24bbab(0x11b)](),_0x2bf1e8=_0x18cedc[_0x24bbab(0x12b)](_0x24bbab(0x138))[_0x24bbab(0x11b)](),_0x45eb20=resolveWorkspaceEnv(_0x2bf1e8||_0x18cedc[_0x24bbab(0x14c)]||DEFAULT_CONFIG_VALUES['env']);if(!_0x36a99e&&!_0x3a09c3)throw CliErrors['validation'](_0x24bbab(0x131),_0x24bbab(0x122)+CLI_BIN_NAME+_0x24bbab(0x11d)+_0x1c676a+_0x24bbab(0x152)+CLI_BIN_NAME+'\x20workspace\x20'+_0x1c676a+_0x24bbab(0x13a));const _0x50954d=_0x3a09c3||await resolveRemoteAppCode({'command':_0x1c676a,'appName':_0x36a99e,'env':_0x45eb20,'accessKey':_0x18cedc[_0x24bbab(0x144)]}),_0x4b1243=writeWorkspaceConfig({'command':_0x1c676a,'appName':_0x36a99e,'appcode':_0x50954d,'env':_0x45eb20,'shouldWriteEnv':!!_0x2bf1e8,'accessKey':_0x18cedc['accessKey']});return{'ok':!![],'data':{'configPath':_0x4b1243,'app':_0x36a99e||null,'appcode':_0x50954d,'env':_0x2bf1e8?_0x45eb20:null,'accessKeyWritten':![],'command':_0x24bbab(0x126)+_0x1c676a},'message':buildWorkspaceMessage(_0x4b1243,_0x36a99e,_0x50954d,_0x2bf1e8?_0x45eb20:undefined)};}async function resolveRemoteAppCode(_0x7bd380){const _0x352706=a62_0x1da6d0;if(!_0x7bd380[_0x352706(0x144)])throw CliErrors[_0x352706(0x13e)](_0x352706(0x151)+CLI_BIN_NAME+_0x352706(0x11d)+_0x7bd380['command']+'.');const {setActiveAK:_0x2bbccd}=await import('../../core/api-client.js'),{getRemoteAppList:_0x5bdc1b}=await import(_0x352706(0x134));_0x2bbccd(_0x7bd380['accessKey']);const _0x53df00=await _0x5bdc1b({'env':_0x7bd380['env'],'accessKey':_0x7bd380[_0x352706(0x144)],'noCache':![]}),_0x2ba060=findAppByName(_0x53df00[_0x352706(0x145)],_0x7bd380[_0x352706(0x123)]);if(_0x2ba060&&!isRuntimeAccessibleApp(_0x2ba060))throw runtimeInaccessibleAppError(_0x2ba060,'\x22'+_0x7bd380[_0x352706(0x123)]+'\x22');const _0x498677=_0x2ba060?.['appCode']?.[_0x352706(0x11b)]();if(_0x498677)return _0x498677;const _0x1ba6f3=_0x53df00[_0x352706(0x145)][_0x352706(0x14b)](_0x4daf47=>_0x4daf47[_0x352706(0x123)])[_0x352706(0x11c)](Boolean),_0x2e6d75=_0x1ba6f3[_0x352706(0x149)]?_0x352706(0x13f)+Array[_0x352706(0x13c)](new Set(_0x1ba6f3))[_0x352706(0x14e)](',\x20')+'.':_0x352706(0x142)+CLI_BIN_NAME+_0x352706(0x141);throw CliErrors[_0x352706(0x118)](_0x352706(0x14f)+_0x7bd380[_0x352706(0x123)]+_0x352706(0x143),_0x2e6d75);}function a62_0x24eb(){const _0x1f29a5=['env','App\x20code\x20to\x20bind\x20directly','\x20--appcode\x20<code>\x20[--env\x20daily]','8pASwoC','from','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','authRequired','Available\x20apps:\x20','25430141EgckzE','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','Run\x20`','\x22\x20not\x20found.','accessKey','items','\x0aEnv:\x20','5450907Fnzllb','6216057hYxmJf','length','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','map','envName','yes','join','App\x20\x22','6gDiwSn','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','254991ijVUJP','validation','defaultApp','init','trim','filter','\x20workspace\x20','boolean','app','15508130BtSdZa','apps','Usage:\x20','appName','appcode','\x0aDefault\x20app:\x20','workspace\x20','Invalid\x20env\x20\x22','string','object','22SeeGlS','str','10765ZiTFUO','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','636lCnCya','91702kzFoLD','Target\x20environment','Missing\x20workspace\x20app\x20selector.','workspace','shouldWriteEnv','../../commands/app/remote-source.js','isArray','\x0aAccessKey:\x20not\x20written','Workspace\x20configured.\x0aConfig\x20file:\x20'];a62_0x24eb=function(){return _0x1f29a5;};return a62_0x24eb();}function writeWorkspaceConfig(_0x509d29){const _0x38f435=a62_0x1da6d0,_0x2d4a58=resolveWriteConfigPath('project'),_0x5b7e56=readConfigFile(_0x2d4a58);_0x509d29[_0x38f435(0x133)]&&(_0x5b7e56[_0x38f435(0x138)]=_0x509d29[_0x38f435(0x138)]);if(_0x509d29[_0x38f435(0x123)]){const _0x5b962c=isRecord(_0x5b7e56[_0x38f435(0x121)])?{..._0x5b7e56['apps']}:{},_0x7da3a7=isRecord(_0x5b962c[_0x509d29[_0x38f435(0x123)]])?_0x5b962c[_0x509d29[_0x38f435(0x123)]]:{};_0x5b962c[_0x509d29[_0x38f435(0x123)]]={..._0x7da3a7,'appcode':_0x509d29[_0x38f435(0x124)]},_0x5b7e56[_0x38f435(0x121)]=_0x5b962c,_0x5b7e56[_0x38f435(0x119)]=_0x509d29['appName'];if(_0x5b7e56[_0x38f435(0x11f)])delete _0x5b7e56[_0x38f435(0x11f)];return writeAndReturn(_0x2d4a58,_0x5b7e56);}_0x5b7e56[_0x38f435(0x124)]=_0x509d29['appcode'];if(_0x5b7e56['app'])delete _0x5b7e56[_0x38f435(0x11f)];return writeAndReturn(_0x2d4a58,_0x5b7e56);}function writeAndReturn(_0x4a1677,_0x4ffc26){return writeConfigFile(_0x4a1677,_0x4ffc26),_0x4a1677;}function resolveWorkspaceEnv(_0x362248){const _0xde020=a62_0x1da6d0;if(RUNTIME_ENV_VALUES['includes'](_0x362248))return _0x362248;throw CliErrors[_0xde020(0x118)](_0xde020(0x127)+_0x362248+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x48a44f,_0x8ae1d5,_0x11de1d,_0x1a1086){const _0x2b8cb9=a62_0x1da6d0,_0x18ac7c=_0x8ae1d5?_0x8ae1d5+'\x20('+_0x11de1d+')':_0x11de1d,_0x4e8e8b=_0x1a1086?_0x2b8cb9(0x146)+_0x1a1086:'';return _0x2b8cb9(0x137)+_0x48a44f+_0x2b8cb9(0x125)+_0x18ac7c+_0x4e8e8b+_0x2b8cb9(0x136);}function a62_0x30b9(_0x1ee645,_0x3c02f6){_0x1ee645=_0x1ee645-0x118;const _0x24eb85=a62_0x24eb();let _0x30b983=_0x24eb85[_0x1ee645];return _0x30b983;}function isRecord(_0x432f80){const _0x5c5bc4=a62_0x1da6d0;return typeof _0x432f80===_0x5c5bc4(0x129)&&_0x432f80!==null&&!Array[_0x5c5bc4(0x135)](_0x432f80);}function makeWorkspaceCommand(_0x1cb835){const _0x3ef136=a62_0x1da6d0;return{'service':_0x3ef136(0x132),'command':_0x1cb835,'description':_0x1cb835===_0x3ef136(0x11a)?_0x3ef136(0x13d):'Set\x20app\x20context\x20for\x20the\x20current\x20workspace','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x260f2c){return executeWorkspaceUse(_0x260f2c,_0x1cb835);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a62_0x1da6d0(0x11a)),makeWorkspaceCommand('use')];
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a63_0xdd2730=a63_0x536c;(function(_0x3c7cbb,_0x26e398){const _0x303bef=a63_0x536c,_0xa8f9fa=_0x3c7cbb();while(!![]){try{const _0x156c1c=-parseInt(_0x303bef(0xec))/0x1*(parseInt(_0x303bef(0xe9))/0x2)+parseInt(_0x303bef(0xe8))/0x3*(parseInt(_0x303bef(0xeb))/0x4)+-parseInt(_0x303bef(0xdf))/0x5+parseInt(_0x303bef(0xe5))/0x6*(parseInt(_0x303bef(0xd0))/0x7)+parseInt(_0x303bef(0xe2))/0x8*(parseInt(_0x303bef(0xce))/0x9)+-parseInt(_0x303bef(0xe7))/0xa*(parseInt(_0x303bef(0xc9))/0xb)+-parseInt(_0x303bef(0xcd))/0xc*(-parseInt(_0x303bef(0xd9))/0xd);if(_0x156c1c===_0x26e398)break;else _0xa8f9fa['push'](_0xa8f9fa['shift']());}catch(_0x20fb10){_0xa8f9fa['push'](_0xa8f9fa['shift']());}}}(a63_0x422e,0x1943f));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_0xdd2730(0xe4),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a63_0xdd2730(0xe3)],'importable':!![]},'format':{'description':a63_0xdd2730(0xcf),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a63_0xdd2730(0xe0)],'importable':!![]},'pageSize':{'description':a63_0xdd2730(0xd6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a63_0xdd2730(0xd7),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a63_0xdd2730(0xd2),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a63_0xdd2730(0xea),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a63_0xdd2730(0xe6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a63_0xdd2730(0xe1),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a63_0xdd2730(0xd5)],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a63_0xdd2730(0xd4)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a63_0xdd2730(0xde)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x345b45])=>_0x345b45[a63_0xdd2730(0xca)])[a63_0xdd2730(0xdb)](([_0x17e535])=>_0x17e535));export const CONFIG_ENUM_VALUES=Object[a63_0xdd2730(0xcc)](Object[a63_0xdd2730(0xde)](CONFIG_FIELD_SCHEMAS)[a63_0xdd2730(0xdc)](([,_0x4fabd8])=>_0x4fabd8[a63_0xdd2730(0xd1)])[a63_0xdd2730(0xdb)](([_0x1ad6d7,_0x1f7604])=>[_0x1ad6d7,[..._0x1f7604[a63_0xdd2730(0xd1)]||[]]]));function a63_0x536c(_0x3aa985,_0x1b3068){_0x3aa985=_0x3aa985-0xc9;const _0x422e83=a63_0x422e();let _0x536cc6=_0x422e83[_0x3aa985];return _0x536cc6;}export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a63_0xdd2730(0xde)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x4ec428])=>_0x4ec428[a63_0xdd2730(0xcb)])[a63_0xdd2730(0xdb)](([_0x1313e5])=>_0x1313e5);export function getConfigFieldSchema(_0xeda6e7){return CONFIG_FIELD_SCHEMAS[_0xeda6e7];}export function getConfigEnumValues(_0x183026){const _0x35fa57=a63_0xdd2730;return getConfigFieldSchema(_0x183026)?.[_0x35fa57(0xd1)];}export function getConfigDefaultValue(_0x4a6c70){const _0x1ebc10=a63_0xdd2730;return getConfigFieldSchema(_0x4a6c70)?.[_0x1ebc10(0xd8)];}export function isTopLevelConfigKey(_0x4dc0a8){const _0x3140b5=a63_0xdd2730;return TOP_LEVEL_CONFIG_KEYS[_0x3140b5(0xdd)](_0x4dc0a8);}export function isLegacyCompatConfigKey(_0x2dc649){const _0x3a7782=a63_0xdd2730;return getConfigFieldSchema(_0x2dc649)?.[_0x3a7782(0xda)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x1e447c){return[..._0x1e447c]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0xf82113=a63_0xdd2730;return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+_0xf82113(0xd3);}function a63_0x422e(){const _0x1e52f1=['map','filter','has','entries','231760lwLoGt','format','Risk\x20level','16ZTOpDZ','env','Target\x20environment','472530ubVZzE','Override\x20SkillHub\x20domain','1861970BcpXgf','9252jMZajL','27722YprHdR','Override\x20runtime\x20domain','156yPDiQt','9WAxRkf','11TiMcyb','cliSettableTopLevel','importable','fromEntries','2674968KYpLgK','174780LJKPmu','Default\x20output\x20format','7CxTAzl','enumValues','Override\x20user\x20domain',';\x20local\x20alias:\x20apps.<alias>.appcode','locale','riskLevel','Default\x20page\x20size','Override\x20API\x20domain','defaultValue','13WOUsoo','legacyCompatOnly'];a63_0x422e=function(){return _0x1e52f1;};return a63_0x422e();}export function buildAppProfileListFields(_0x12d856){return{'env':_0x12d856,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a64_0x36f348=a64_0x69ef;(function(_0x3fc704,_0x1c3d66){const _0x33f145=a64_0x69ef,_0x4affab=_0x3fc704();while(!![]){try{const _0x31f59b=-parseInt(_0x33f145(0x1aa))/0x1*(-parseInt(_0x33f145(0x1ac))/0x2)+-parseInt(_0x33f145(0x1b0))/0x3*(-parseInt(_0x33f145(0x1b3))/0x4)+-parseInt(_0x33f145(0x1b1))/0x5*(parseInt(_0x33f145(0x1a9))/0x6)+parseInt(_0x33f145(0x1ab))/0x7+parseInt(_0x33f145(0x1a8))/0x8+-parseInt(_0x33f145(0x1b4))/0x9+parseInt(_0x33f145(0x1af))/0xa*(-parseInt(_0x33f145(0x1ae))/0xb);if(_0x31f59b===_0x1c3d66)break;else _0x4affab['push'](_0x4affab['shift']());}catch(_0x2bfb49){_0x4affab['push'](_0x4affab['shift']());}}}(a64_0x170e,0x19ad5));function a64_0x170e(){const _0x5113c8=['1596752fGTipj','18keqvtz','1yCjEOe','247499iVfMqR','48584sDlgxq','PUBLISHED','4191NFJHNC','4370VqryLj','584109saHucR','81905cSpwRV','Published','4wHyoAI','1198197xscWVX','UNPUBLISH'];a64_0x170e=function(){return _0x5113c8;};return a64_0x170e();}function a64_0x69ef(_0x45739d,_0x217f78){_0x45739d=_0x45739d-0x1a7;const _0x170e7f=a64_0x170e();let _0x69ef8b=_0x170e7f[_0x45739d];return _0x69ef8b;}export const APP_PUBLISH_STATUS={'Published':a64_0x36f348(0x1ad),'Unpublished':a64_0x36f348(0x1a7)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a64_0x36f348(0x1b2)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a65_0xb7ad63=a65_0x4a16;(function(_0x51cf5f,_0x3f269e){const _0x2a4571=a65_0x4a16,_0x1f57fd=_0x51cf5f();while(!![]){try{const _0x2c1cb5=-parseInt(_0x2a4571(0xa7))/0x1+-parseInt(_0x2a4571(0xa9))/0x2*(-parseInt(_0x2a4571(0xa5))/0x3)+parseInt(_0x2a4571(0xa6))/0x4*(-parseInt(_0x2a4571(0xa0))/0x5)+-parseInt(_0x2a4571(0xa8))/0x6*(parseInt(_0x2a4571(0xa2))/0x7)+-parseInt(_0x2a4571(0xaa))/0x8+parseInt(_0x2a4571(0xab))/0x9*(-parseInt(_0x2a4571(0xa4))/0xa)+parseInt(_0x2a4571(0xa3))/0xb;if(_0x2c1cb5===_0x3f269e)break;else _0x1f57fd['push'](_0x1f57fd['shift']());}catch(_0x40b5ae){_0x1f57fd['push'](_0x1f57fd['shift']());}}}(a65_0x3879,0x5710b));export const AUTH_MODE={'ClientAk':a65_0xb7ad63(0xa1)};function a65_0x3879(){const _0x391384=['498169wsEpSe','23940730viGWym','10ujjxoI','30ZTRCYR','1249688LVqrIz','592130TrALUX','12iZeeqB','38866liNvhH','423408HfBaXr','5417163LJwuNb','10WpGXFs','client-ak'];a65_0x3879=function(){return _0x391384;};return a65_0x3879();}function a65_0x4a16(_0x1e769b,_0x496338){_0x1e769b=_0x1e769b-0xa0;const _0x38791a=a65_0x3879();let _0x4a16ea=_0x38791a[_0x1e769b];return _0x4a16ea;}export function isAuthMode(_0x31ed58){return _0x31ed58===AUTH_MODE['ClientAk'];}
|