@lovrabet/lovrabet-cli 2.1.16 → 2.1.18-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/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 -0
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x36eb6c,_0x36a542){const _0x19856a=a50_0x2241,_0x38494c=_0x36eb6c();while(!![]){try{const _0x5cb943=parseInt(_0x19856a(0x1f1))/0x1+-parseInt(_0x19856a(0x1eb))/0x2+parseInt(_0x19856a(0x1d6))/0x3+-parseInt(_0x19856a(0x1c0))/0x4+-parseInt(_0x19856a(0x1d5))/0x5*(-parseInt(_0x19856a(0x1e8))/0x6)+-parseInt(_0x19856a(0x1d1))/0x7+parseInt(_0x19856a(0x1d2))/0x8*(-parseInt(_0x19856a(0x1bf))/0x9);if(_0x5cb943===_0x36a542)break;else _0x38494c['push'](_0x38494c['shift']());}catch(_0x458662){_0x38494c['push'](_0x38494c['shift']());}}}(a50_0x32bf,0xce0c9));import{CliErrors}from'../../errors.js';function a50_0x32bf(){const _0x2b0f6c=['errors','6183212fvLZKA','1096lLLScM','confirmWarnings','scope','93305csrRNx','3844872rnkdCo','Personal','/api/cli/v1/skills/','NAMESPACE_ONLY','input','savedSkill','bool','valid','publishInput','skillCode','identical','metadata','files','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','Company','existing','appCode','resolvedSlug','366bEwplB','unknown','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','3062678YEGJJI','Submitted\x20company\x20Skill\x20','payload','status','/publish/validate','personal','1563932rFYTJj','../../skills/runtime-skill-sync.js','PRIVATE','str','\x20Skill\x20','42264JSitFL','327572VURqua','accessKey','remoteForPreflight','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','warnings','POST','frontmatterDisplayName','resolvedVersion','Created\x20personal\x20Skill\x20','../../core/api-client.js','authRequired','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','appcode','dir','company','version'];a50_0x32bf=function(){return _0x2b0f6c;};return a50_0x32bf();}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';function a50_0x2241(_0x400e5b,_0x29676f){_0x400e5b=_0x400e5b-0x1bf;const _0x32bf8d=a50_0x32bf();let _0x224101=_0x32bf8d[_0x400e5b];return _0x224101;}import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x4515c5){const _0x1cfec6=a50_0x2241,{getRuntimeSkillByCode:_0x564811,validateRuntimeSkillPublish:_0x1c07c3}=await import(_0x1cfec6(0x1c9)),{readPushDirectory:_0x535b68,resolvePushDirectoryIdentity:_0x561026}=await import('../../skills/runtime-skill-sync.js');if(!_0x4515c5[_0x1cfec6(0x1c1)])throw CliErrors[_0x1cfec6(0x1ca)]();const _0x401c05=resolvePushScope(_0x4515c5),_0x435d6d=validateSkillDirectory(_0x4515c5[_0x1cfec6(0x1f4)]('dir'));throwIfSkillValidationFailed(_0x435d6d);const _0x565f0b=_0x561026(_0x435d6d[_0x1cfec6(0x1cd)],_0x4515c5[_0x1cfec6(0x1e6)],remoteFirstMetadataOptions()),_0x1dcc7a=await _0x564811(_0x4515c5[_0x1cfec6(0x1e6)],_0x565f0b[_0x1cfec6(0x1df)]);throwIfBuiltinPushTarget(_0x1dcc7a);if(_0x401c05===_0x1cfec6(0x1ce)){const _0x1829a8=_0x535b68(_0x435d6d['dir'],_0x4515c5['appCode'],remoteMissingCompanyReadOptions()),_0x48edeb=await _0x1c07c3(_0x4515c5[_0x1cfec6(0x1e6)],_0x1829a8['input'],{'visibility':'NAMESPACE_ONLY'});return{'method':_0x1cfec6(0x1c5),'url':_0x1cfec6(0x1d8)+_0x4515c5['appCode']+_0x1cfec6(0x1ef),'body':{'skillCode':_0x1829a8[_0x1cfec6(0x1df)],'visibility':_0x1cfec6(0x1d9),'valid':_0x48edeb[_0x1cfec6(0x1dd)],'errors':_0x48edeb['errors'],'warnings':_0x48edeb[_0x1cfec6(0x1c4)],'resolvedSlug':_0x48edeb[_0x1cfec6(0x1e7)],'resolvedVersion':_0x48edeb['resolvedVersion']},'description':_0x1cfec6(0x1ea)};}if(_0x1dcc7a&&_0x1dcc7a[_0x1cfec6(0x1d4)]!==_0x1cfec6(0x1f0))throw CliErrors['validation'](_0x1cfec6(0x1e3)+_0x565f0b[_0x1cfec6(0x1df)]+'\x20has\x20scope=\x22'+(_0x1dcc7a[_0x1cfec6(0x1d4)]??_0x1cfec6(0x1e9))+'\x22.');const _0x4f34af=_0x535b68(_0x435d6d[_0x1cfec6(0x1cd)],_0x4515c5[_0x1cfec6(0x1e6)],_0x1dcc7a?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions()),_0x57b9dd=await _0x1c07c3(_0x4515c5[_0x1cfec6(0x1e6)],_0x4f34af[_0x1cfec6(0x1da)],{'visibility':_0x1cfec6(0x1f3)});return{'method':_0x1cfec6(0x1c5),'url':_0x1cfec6(0x1d8)+_0x4515c5[_0x1cfec6(0x1e6)]+'/publish/validate','body':{'skillCode':_0x4f34af[_0x1cfec6(0x1df)],'visibility':_0x1cfec6(0x1f3),'valid':_0x57b9dd[_0x1cfec6(0x1dd)],'errors':_0x57b9dd[_0x1cfec6(0x1d0)],'warnings':_0x57b9dd[_0x1cfec6(0x1c4)],'resolvedSlug':_0x57b9dd[_0x1cfec6(0x1e7)],'resolvedVersion':_0x57b9dd[_0x1cfec6(0x1c7)]},'description':_0x1cfec6(0x1cb)};}export async function skillPushExecute(_0xd571fc){const _0x53e342=a50_0x2241,{createPersonalRuntimeSkill:_0x3be5a7,downloadRuntimeSkillPackage:_0x567f48,getRuntimeSkillByCode:_0x4fe973,publishCompanyRuntimeSkill:_0x440c29,updatePersonalRuntimeSkill:_0x3cbac2,validateRuntimeSkillPublish:_0x238851}=await import(_0x53e342(0x1c9)),{verifyRuntimeSkillPackage:_0x49b1c8,verifyRuntimeSkillBundle:_0x5a41c5,readPushDirectory:_0x25e91f,refreshPushDirectoryMetadataFromRemote:_0x57e4fd,recordPushedRuntimeSkill:_0x1e5805,resolvePushDirectoryIdentity:_0x2a90f5}=await import(_0x53e342(0x1f2));if(!_0xd571fc[_0x53e342(0x1c1)])throw CliErrors[_0x53e342(0x1ca)]();const _0x4d384e=resolvePushScope(_0xd571fc),_0x1fbc6c=_0xd571fc[_0x53e342(0x1dc)]('confirm-warnings')||_0xd571fc[_0x53e342(0x1dc)](_0x53e342(0x1d3)),_0x40eb65=validateSkillDirectory(_0xd571fc[_0x53e342(0x1f4)]('dir'));throwIfSkillValidationFailed(_0x40eb65);const _0x3fb70b=_0x40eb65[_0x53e342(0x1cd)];let _0x414d2e;if(_0x4d384e===_0x53e342(0x1ce)){const _0x51c84b=_0x2a90f5(_0x3fb70b,_0xd571fc[_0x53e342(0x1e6)],remoteFirstMetadataOptions()),_0x4e9386=await _0x4fe973(_0xd571fc[_0x53e342(0x1e6)],_0x51c84b[_0x53e342(0x1df)]);throwIfBuiltinPushTarget(_0x4e9386);if(_0x4e9386)_0x57e4fd(_0x3fb70b,_0x4e9386,_0xd571fc[_0x53e342(0x1e6)]);const _0x164cc2=_0x25e91f(_0x3fb70b,_0xd571fc[_0x53e342(0x1e6)],_0x4e9386?{'targetScope':_0x53e342(0x1ce),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0x414d2e={'scope':_0x53e342(0x1ce),'payload':_0x164cc2,'publishInput':_0x164cc2[_0x53e342(0x1da)],'remoteForPreflight':_0x4e9386,'warnings':[]};}else{const _0x13ada3=_0xd571fc[_0x53e342(0x1f4)](_0x53e342(0x1cc))['trim'](),_0x35ef58=Boolean(_0x13ada3),_0x4fb0c5=allowRetargetArgs(_0x35ef58),_0x1dbc13=_0x2a90f5(_0x3fb70b,_0xd571fc['appCode'],{...remoteFirstMetadataOptions(),..._0x4fb0c5[0x0]}),_0x502afe=await _0x4fe973(_0xd571fc[_0x53e342(0x1e6)],_0x1dbc13[_0x53e342(0x1df)]);throwIfBuiltinPushTarget(_0x502afe);if(_0x502afe){if(_0x502afe['scope']!==_0x53e342(0x1f0)){if(_0x35ef58)throw CliErrors['validation'](_0x53e342(0x1e3)+_0x1dbc13['skillCode']+'\x20has\x20scope=\x22'+(_0x502afe[_0x53e342(0x1d4)]??_0x53e342(0x1e9))+'\x22.');_0x57e4fd(_0x3fb70b,_0x502afe,_0xd571fc[_0x53e342(0x1e6)]);}else!_0x35ef58&&_0x57e4fd(_0x3fb70b,_0x502afe,_0xd571fc['appCode']);}const _0x5c7736=_0x25e91f(_0x3fb70b,_0xd571fc['appCode'],_0x502afe?remotePersonalReadOptions(_0x35ef58,_0x4fb0c5[0x0]):remoteMissingPersonalReadOptions(_0x4fb0c5[0x0])),_0x214266=_0x502afe?.[_0x53e342(0x1d4)]===_0x53e342(0x1f0)&&_0x502afe['skillCode']===_0x5c7736[_0x53e342(0x1df)]?_0x502afe:undefined,_0x24fa4b=_0x35ef58&&_0x214266?withRetargetExistingMetadata(_0x5c7736['input'],_0x214266,{'preferInputSkillName':Boolean(_0x5c7736[_0x53e342(0x1c6)])}):_0x5c7736[_0x53e342(0x1da)],_0x3c2902=_0x35ef58?buildRetargetWarning(_0x1dbc13[_0x53e342(0x1e1)],_0xd571fc['appCode']):[];_0x414d2e={'scope':_0x53e342(0x1f0),'payload':_0x5c7736,'publishInput':_0x24fa4b,'remoteForPreflight':_0x214266,'existing':_0x214266,'warnings':[..._0x40eb65[_0x53e342(0x1c4)],..._0x3c2902]};}const _0x5cca67=await runRemoteContentPreflight({'scope':_0x414d2e[_0x53e342(0x1d4)],'remote':_0x414d2e[_0x53e342(0x1c2)],'publishInput':_0x414d2e[_0x53e342(0x1de)],'skillCode':_0x414d2e[_0x53e342(0x1ed)][_0x53e342(0x1df)],'appCode':_0xd571fc['appCode'],'downloadRuntimeSkillPackage':_0x567f48,'verifyRuntimeSkillBundle':_0x5a41c5});if(_0x5cca67[_0x53e342(0x1ee)]===_0x53e342(0x1e0))return _0x414d2e[_0x53e342(0x1d4)]===_0x53e342(0x1ce)?_0x1e5805(_0x3fb70b,_0x5cca67['savedSkill'],_0xd571fc[_0x53e342(0x1e6)],{'scope':_0x53e342(0x1ce)}):_0x1e5805(_0x3fb70b,_0x5cca67[_0x53e342(0x1db)],_0xd571fc[_0x53e342(0x1e6)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x5cca67[_0x53e342(0x1db)]),'scope':_0x414d2e[_0x53e342(0x1d4)],..._0x414d2e[_0x53e342(0x1d4)]===_0x53e342(0x1f0)?{'warnings':_0x414d2e['warnings']}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0x414d2e[_0x53e342(0x1d4)])+_0x53e342(0x1f5)+_0x414d2e[_0x53e342(0x1ed)]['skillCode']+_0x53e342(0x1c3)};if(_0x414d2e['scope']===_0x53e342(0x1ce)){const _0x2967a6=await _0x238851(_0xd571fc['appCode'],_0x414d2e[_0x53e342(0x1de)],{'visibility':_0x53e342(0x1d9)});throwIfPublishValidationFailed(_0x53e342(0x1ce),_0x414d2e['payload'][_0x53e342(0x1df)],_0x2967a6),throwIfUnconfirmedPublishWarnings(_0x53e342(0x1ce),_0x414d2e[_0x53e342(0x1ed)][_0x53e342(0x1df)],_0x2967a6[_0x53e342(0x1c4)],_0x1fbc6c);const _0x1d3e90=await _0x440c29(_0xd571fc[_0x53e342(0x1e6)],_0x414d2e['publishInput'],{'confirmWarnings':_0x1fbc6c});return _0x1e5805(_0x3fb70b,{..._0x1d3e90,'files':_0x414d2e[_0x53e342(0x1de)][_0x53e342(0x1e2)]},_0xd571fc[_0x53e342(0x1e6)],{'scope':_0x53e342(0x1ce)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x1d3e90),'scope':_0x53e342(0x1ce),'reviewState':'submitted','submittedForReview':!![],'validation':{'warnings':_0x2967a6[_0x53e342(0x1c4)]}},'message':_0x53e342(0x1ec)+_0x414d2e[_0x53e342(0x1ed)][_0x53e342(0x1df)]+'\x20version\x20'+(_0x1d3e90[_0x53e342(0x1cf)]??'(unknown)')+'\x20for\x20review'};}const _0x33db4a=await _0x238851(_0xd571fc[_0x53e342(0x1e6)],_0x414d2e['publishInput'],{'visibility':_0x53e342(0x1f3)});throwIfPublishValidationFailed(_0x53e342(0x1f0),_0x414d2e[_0x53e342(0x1ed)][_0x53e342(0x1df)],_0x33db4a),throwIfUnconfirmedPublishWarnings(_0x53e342(0x1f0),_0x414d2e[_0x53e342(0x1ed)][_0x53e342(0x1df)],_0x33db4a[_0x53e342(0x1c4)],_0x1fbc6c);const _0x347eb3={'confirmWarnings':_0x1fbc6c},_0x25e06d=_0x414d2e[_0x53e342(0x1e5)]?await _0x3cbac2(_0x414d2e[_0x53e342(0x1ed)][_0x53e342(0x1df)],_0xd571fc[_0x53e342(0x1e6)],_0x414d2e[_0x53e342(0x1de)],_0x347eb3):await _0x3be5a7(_0xd571fc[_0x53e342(0x1e6)],_0x414d2e[_0x53e342(0x1de)],_0x347eb3);let _0x23f776=_0x25e06d;if(isMultiFileManifest(_0x414d2e[_0x53e342(0x1de)][_0x53e342(0x1e2)])){const _0x5081dd=await _0x567f48('personal',_0x25e06d[_0x53e342(0x1df)]||_0x414d2e[_0x53e342(0x1ed)][_0x53e342(0x1df)],_0xd571fc[_0x53e342(0x1e6)]);_0x5a41c5(_0x414d2e[_0x53e342(0x1de)][_0x53e342(0x1e2)],_0x5081dd),_0x23f776={..._0x25e06d,'files':_0x414d2e['publishInput'][_0x53e342(0x1e2)]};}else{if(isPackageBackedManifest(_0x25e06d[_0x53e342(0x1e2)])){const _0x2be10d=await _0x567f48(_0x53e342(0x1f0),_0x25e06d[_0x53e342(0x1df)]||_0x414d2e[_0x53e342(0x1ed)]['skillCode'],_0xd571fc[_0x53e342(0x1e6)]);_0x49b1c8(_0x25e06d[_0x53e342(0x1e2)],_0x2be10d);}}return _0x1e5805(_0x3fb70b,_0x23f776,_0xd571fc[_0x53e342(0x1e6)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x25e06d),'warnings':_0x414d2e[_0x53e342(0x1c4)],'validation':{'warnings':_0x33db4a[_0x53e342(0x1c4)]}},'message':_0x414d2e['existing']?'Updated\x20personal\x20Skill\x20'+_0x414d2e['payload'][_0x53e342(0x1df)]:_0x53e342(0x1c8)+_0x414d2e[_0x53e342(0x1ed)][_0x53e342(0x1df)]};}function scopeLabel(_0x71181e){const _0x500389=a50_0x2241;return _0x71181e===_0x500389(0x1ce)?_0x500389(0x1e4):_0x500389(0x1d7);}
|
|
1
|
+
function a51_0x27bd(_0x4121e0,_0x2f9a01){_0x4121e0=_0x4121e0-0x1d2;const _0x2e378a=a51_0x2e37();let _0x27bd79=_0x2e378a[_0x4121e0];return _0x27bd79;}(function(_0x388ca2,_0x22ccea){const _0x35b4e6=a51_0x27bd,_0x66a648=_0x388ca2();while(!![]){try{const _0x317f05=-parseInt(_0x35b4e6(0x1f0))/0x1+-parseInt(_0x35b4e6(0x1ee))/0x2*(parseInt(_0x35b4e6(0x1e2))/0x3)+-parseInt(_0x35b4e6(0x1fa))/0x4*(-parseInt(_0x35b4e6(0x1fe))/0x5)+parseInt(_0x35b4e6(0x1d2))/0x6*(-parseInt(_0x35b4e6(0x1de))/0x7)+parseInt(_0x35b4e6(0x206))/0x8*(-parseInt(_0x35b4e6(0x1d8))/0x9)+parseInt(_0x35b4e6(0x1d6))/0xa*(parseInt(_0x35b4e6(0x20a))/0xb)+parseInt(_0x35b4e6(0x1e1))/0xc;if(_0x317f05===_0x22ccea)break;else _0x66a648['push'](_0x66a648['shift']());}catch(_0x28f18a){_0x66a648['push'](_0x66a648['shift']());}}}(a51_0x2e37,0xc9ed2));import{CliErrors}from'../../errors.js';function a51_0x2e37(){const _0xa69d02=['confirmWarnings','publishInput','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','version','scope','76904HjIqqj','resolvedSlug','/api/cli/v1/skills/','\x20has\x20scope=\x22','5203PLZibT','status','frontmatterDisplayName','6yzGPPb','validation','remoteForPreflight','POST','29350LCRBpr','Created\x20personal\x20Skill\x20','747NfJxUa','/publish/validate','accessKey','bool','dir','\x20version\x20','7430738AYQdMz','NAMESPACE_ONLY','company','22360788AoqmIV','537nxjUkg','PRIVATE','appCode','Updated\x20personal\x20Skill\x20','skillCode','submitted','input','files','identical','metadata','authRequired','payload','3998bxbclE','resolvedVersion','529697ENrMxs','str','personal','appcode','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','../../core/api-client.js','warnings','Submitted\x20company\x20Skill\x20','existing','savedSkill','4QRighb','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','errors','../../skills/runtime-skill-sync.js','1611835klktzs','valid','(unknown)'];a51_0x2e37=function(){return _0xa69d02;};return a51_0x2e37();}import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x277848){const _0x4e3506=a51_0x27bd,{getRuntimeSkillByCode:_0x385ca6,validateRuntimeSkillPublish:_0x543fc1}=await import('../../core/api-client.js'),{readPushDirectory:_0x59e418,resolvePushDirectoryIdentity:_0x1c4321}=await import(_0x4e3506(0x1fd));if(!_0x277848[_0x4e3506(0x1da)])throw CliErrors[_0x4e3506(0x1ec)]();const _0x16a901=resolvePushScope(_0x277848),_0x581f4a=validateSkillDirectory(_0x277848[_0x4e3506(0x1f1)](_0x4e3506(0x1dc)));throwIfSkillValidationFailed(_0x581f4a);const _0x31094e=_0x1c4321(_0x581f4a[_0x4e3506(0x1dc)],_0x277848[_0x4e3506(0x1e4)],remoteFirstMetadataOptions()),_0x5067a2=await _0x385ca6(_0x277848[_0x4e3506(0x1e4)],_0x31094e[_0x4e3506(0x1e6)]);throwIfBuiltinPushTarget(_0x5067a2);if(_0x16a901==='company'){const _0x2ea21e=_0x59e418(_0x581f4a[_0x4e3506(0x1dc)],_0x277848[_0x4e3506(0x1e4)],remoteMissingCompanyReadOptions()),_0x59eee5=await _0x543fc1(_0x277848[_0x4e3506(0x1e4)],_0x2ea21e[_0x4e3506(0x1e8)],{'visibility':_0x4e3506(0x1df)});return{'method':'POST','url':_0x4e3506(0x208)+_0x277848[_0x4e3506(0x1e4)]+_0x4e3506(0x1d9),'body':{'skillCode':_0x2ea21e[_0x4e3506(0x1e6)],'visibility':_0x4e3506(0x1df),'valid':_0x59eee5['valid'],'errors':_0x59eee5['errors'],'warnings':_0x59eee5[_0x4e3506(0x1f6)],'resolvedSlug':_0x59eee5[_0x4e3506(0x207)],'resolvedVersion':_0x59eee5['resolvedVersion']},'description':_0x4e3506(0x1f4)};}if(_0x5067a2&&_0x5067a2[_0x4e3506(0x205)]!==_0x4e3506(0x1f2))throw CliErrors[_0x4e3506(0x1d3)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x31094e[_0x4e3506(0x1e6)]+_0x4e3506(0x209)+(_0x5067a2[_0x4e3506(0x205)]??'unknown')+'\x22.');const _0x4cba13=_0x59e418(_0x581f4a[_0x4e3506(0x1dc)],_0x277848['appCode'],_0x5067a2?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions()),_0x4d1872=await _0x543fc1(_0x277848[_0x4e3506(0x1e4)],_0x4cba13['input'],{'visibility':'PRIVATE'});return{'method':_0x4e3506(0x1d5),'url':_0x4e3506(0x208)+_0x277848['appCode']+_0x4e3506(0x1d9),'body':{'skillCode':_0x4cba13[_0x4e3506(0x1e6)],'visibility':_0x4e3506(0x1e3),'valid':_0x4d1872[_0x4e3506(0x1ff)],'errors':_0x4d1872[_0x4e3506(0x1fc)],'warnings':_0x4d1872[_0x4e3506(0x1f6)],'resolvedSlug':_0x4d1872[_0x4e3506(0x207)],'resolvedVersion':_0x4d1872[_0x4e3506(0x1ef)]},'description':_0x4e3506(0x203)};}export async function skillPushExecute(_0x55aa98){const _0xd329f8=a51_0x27bd,{createPersonalRuntimeSkill:_0x1b9e68,downloadRuntimeSkillPackage:_0x4bb51f,getRuntimeSkillByCode:_0x8f9b26,publishCompanyRuntimeSkill:_0x30a949,updatePersonalRuntimeSkill:_0x35375c,validateRuntimeSkillPublish:_0x434009}=await import(_0xd329f8(0x1f5)),{verifyRuntimeSkillPackage:_0x48b91b,verifyRuntimeSkillBundle:_0x118216,readPushDirectory:_0x1ff4f4,refreshPushDirectoryMetadataFromRemote:_0x52ab5f,recordPushedRuntimeSkill:_0x1abf69,resolvePushDirectoryIdentity:_0x321127}=await import('../../skills/runtime-skill-sync.js');if(!_0x55aa98[_0xd329f8(0x1da)])throw CliErrors['authRequired']();const _0x588821=resolvePushScope(_0x55aa98),_0xb5e24c=_0x55aa98[_0xd329f8(0x1db)]('confirm-warnings')||_0x55aa98[_0xd329f8(0x1db)](_0xd329f8(0x201)),_0x8ff5a3=validateSkillDirectory(_0x55aa98[_0xd329f8(0x1f1)](_0xd329f8(0x1dc)));throwIfSkillValidationFailed(_0x8ff5a3);const _0x73afb0=_0x8ff5a3[_0xd329f8(0x1dc)];let _0x503426;if(_0x588821==='company'){const _0x5dc40c=_0x321127(_0x73afb0,_0x55aa98[_0xd329f8(0x1e4)],remoteFirstMetadataOptions()),_0x2e9d87=await _0x8f9b26(_0x55aa98[_0xd329f8(0x1e4)],_0x5dc40c[_0xd329f8(0x1e6)]);throwIfBuiltinPushTarget(_0x2e9d87);if(_0x2e9d87)_0x52ab5f(_0x73afb0,_0x2e9d87,_0x55aa98[_0xd329f8(0x1e4)]);const _0x513245=_0x1ff4f4(_0x73afb0,_0x55aa98[_0xd329f8(0x1e4)],_0x2e9d87?{'targetScope':'company','ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0x503426={'scope':_0xd329f8(0x1e0),'payload':_0x513245,'publishInput':_0x513245[_0xd329f8(0x1e8)],'remoteForPreflight':_0x2e9d87,'warnings':[]};}else{const _0x5e9b7d=_0x55aa98['str'](_0xd329f8(0x1f3))['trim'](),_0xee3135=Boolean(_0x5e9b7d),_0x539ebc=allowRetargetArgs(_0xee3135),_0x34e170=_0x321127(_0x73afb0,_0x55aa98[_0xd329f8(0x1e4)],{...remoteFirstMetadataOptions(),..._0x539ebc[0x0]}),_0x4155eb=await _0x8f9b26(_0x55aa98['appCode'],_0x34e170[_0xd329f8(0x1e6)]);throwIfBuiltinPushTarget(_0x4155eb);if(_0x4155eb){if(_0x4155eb['scope']!==_0xd329f8(0x1f2)){if(_0xee3135)throw CliErrors[_0xd329f8(0x1d3)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x34e170[_0xd329f8(0x1e6)]+_0xd329f8(0x209)+(_0x4155eb[_0xd329f8(0x205)]??'unknown')+'\x22.');_0x52ab5f(_0x73afb0,_0x4155eb,_0x55aa98['appCode']);}else!_0xee3135&&_0x52ab5f(_0x73afb0,_0x4155eb,_0x55aa98[_0xd329f8(0x1e4)]);}const _0x1a4a3c=_0x1ff4f4(_0x73afb0,_0x55aa98['appCode'],_0x4155eb?remotePersonalReadOptions(_0xee3135,_0x539ebc[0x0]):remoteMissingPersonalReadOptions(_0x539ebc[0x0])),_0x51d47a=_0x4155eb?.['scope']===_0xd329f8(0x1f2)&&_0x4155eb[_0xd329f8(0x1e6)]===_0x1a4a3c['skillCode']?_0x4155eb:undefined,_0x38c7e1=_0xee3135&&_0x51d47a?withRetargetExistingMetadata(_0x1a4a3c[_0xd329f8(0x1e8)],_0x51d47a,{'preferInputSkillName':Boolean(_0x1a4a3c[_0xd329f8(0x20c)])}):_0x1a4a3c[_0xd329f8(0x1e8)],_0x36b989=_0xee3135?buildRetargetWarning(_0x34e170[_0xd329f8(0x1eb)],_0x55aa98[_0xd329f8(0x1e4)]):[];_0x503426={'scope':_0xd329f8(0x1f2),'payload':_0x1a4a3c,'publishInput':_0x38c7e1,'remoteForPreflight':_0x51d47a,'existing':_0x51d47a,'warnings':[..._0x8ff5a3[_0xd329f8(0x1f6)],..._0x36b989]};}const _0x3ff43d=await runRemoteContentPreflight({'scope':_0x503426['scope'],'remote':_0x503426[_0xd329f8(0x1d4)],'publishInput':_0x503426[_0xd329f8(0x202)],'skillCode':_0x503426[_0xd329f8(0x1ed)][_0xd329f8(0x1e6)],'appCode':_0x55aa98[_0xd329f8(0x1e4)],'downloadRuntimeSkillPackage':_0x4bb51f,'verifyRuntimeSkillBundle':_0x118216});if(_0x3ff43d[_0xd329f8(0x20b)]===_0xd329f8(0x1ea))return _0x503426[_0xd329f8(0x205)]===_0xd329f8(0x1e0)?_0x1abf69(_0x73afb0,_0x3ff43d[_0xd329f8(0x1f9)],_0x55aa98['appCode'],{'scope':_0xd329f8(0x1e0)}):_0x1abf69(_0x73afb0,_0x3ff43d[_0xd329f8(0x1f9)],_0x55aa98[_0xd329f8(0x1e4)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x3ff43d[_0xd329f8(0x1f9)]),'scope':_0x503426['scope'],..._0x503426[_0xd329f8(0x205)]===_0xd329f8(0x1f2)?{'warnings':_0x503426['warnings']}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0x503426[_0xd329f8(0x205)])+'\x20Skill\x20'+_0x503426[_0xd329f8(0x1ed)]['skillCode']+_0xd329f8(0x1fb)};if(_0x503426[_0xd329f8(0x205)]===_0xd329f8(0x1e0)){const _0x5323bb=await _0x434009(_0x55aa98[_0xd329f8(0x1e4)],_0x503426[_0xd329f8(0x202)],{'visibility':_0xd329f8(0x1df)});throwIfPublishValidationFailed(_0xd329f8(0x1e0),_0x503426[_0xd329f8(0x1ed)]['skillCode'],_0x5323bb),throwIfUnconfirmedPublishWarnings(_0xd329f8(0x1e0),_0x503426['payload'][_0xd329f8(0x1e6)],_0x5323bb[_0xd329f8(0x1f6)],_0xb5e24c);const _0x69693=await _0x30a949(_0x55aa98['appCode'],_0x503426[_0xd329f8(0x202)],{'confirmWarnings':_0xb5e24c});return _0x1abf69(_0x73afb0,{..._0x69693,'files':_0x503426['publishInput'][_0xd329f8(0x1e9)]},_0x55aa98[_0xd329f8(0x1e4)],{'scope':_0xd329f8(0x1e0)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x69693),'scope':_0xd329f8(0x1e0),'reviewState':_0xd329f8(0x1e7),'submittedForReview':!![],'validation':{'warnings':_0x5323bb[_0xd329f8(0x1f6)]}},'message':_0xd329f8(0x1f7)+_0x503426[_0xd329f8(0x1ed)][_0xd329f8(0x1e6)]+_0xd329f8(0x1dd)+(_0x69693[_0xd329f8(0x204)]??_0xd329f8(0x200))+'\x20for\x20review'};}const _0x4129c5=await _0x434009(_0x55aa98[_0xd329f8(0x1e4)],_0x503426['publishInput'],{'visibility':_0xd329f8(0x1e3)});throwIfPublishValidationFailed(_0xd329f8(0x1f2),_0x503426['payload'][_0xd329f8(0x1e6)],_0x4129c5),throwIfUnconfirmedPublishWarnings(_0xd329f8(0x1f2),_0x503426['payload'][_0xd329f8(0x1e6)],_0x4129c5['warnings'],_0xb5e24c);const _0x53fa92={'confirmWarnings':_0xb5e24c},_0x2a0bdd=_0x503426[_0xd329f8(0x1f8)]?await _0x35375c(_0x503426['payload'][_0xd329f8(0x1e6)],_0x55aa98[_0xd329f8(0x1e4)],_0x503426[_0xd329f8(0x202)],_0x53fa92):await _0x1b9e68(_0x55aa98[_0xd329f8(0x1e4)],_0x503426[_0xd329f8(0x202)],_0x53fa92);let _0x3c447b=_0x2a0bdd;if(isMultiFileManifest(_0x503426[_0xd329f8(0x202)][_0xd329f8(0x1e9)])){const _0x55e1f7=await _0x4bb51f(_0xd329f8(0x1f2),_0x2a0bdd[_0xd329f8(0x1e6)]||_0x503426[_0xd329f8(0x1ed)][_0xd329f8(0x1e6)],_0x55aa98['appCode']);_0x118216(_0x503426[_0xd329f8(0x202)]['files'],_0x55e1f7),_0x3c447b={..._0x2a0bdd,'files':_0x503426[_0xd329f8(0x202)][_0xd329f8(0x1e9)]};}else{if(isPackageBackedManifest(_0x2a0bdd[_0xd329f8(0x1e9)])){const _0x5444df=await _0x4bb51f('personal',_0x2a0bdd[_0xd329f8(0x1e6)]||_0x503426[_0xd329f8(0x1ed)][_0xd329f8(0x1e6)],_0x55aa98[_0xd329f8(0x1e4)]);_0x48b91b(_0x2a0bdd[_0xd329f8(0x1e9)],_0x5444df);}}return _0x1abf69(_0x73afb0,_0x3c447b,_0x55aa98['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x2a0bdd),'warnings':_0x503426[_0xd329f8(0x1f6)],'validation':{'warnings':_0x4129c5[_0xd329f8(0x1f6)]}},'message':_0x503426[_0xd329f8(0x1f8)]?_0xd329f8(0x1e5)+_0x503426[_0xd329f8(0x1ed)][_0xd329f8(0x1e6)]:_0xd329f8(0x1d7)+_0x503426[_0xd329f8(0x1ed)][_0xd329f8(0x1e6)]};}function scopeLabel(_0x57d3e4){return _0x57d3e4==='company'?'Company':'Personal';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5dfa7a,_0x5e519c){const _0xe7d8f2=a52_0x22e2,_0x34a288=_0x5dfa7a();while(!![]){try{const _0x5d5050=-parseInt(_0xe7d8f2(0xb9))/0x1+parseInt(_0xe7d8f2(0xae))/0x2*(parseInt(_0xe7d8f2(0xb0))/0x3)+-parseInt(_0xe7d8f2(0x8b))/0x4*(parseInt(_0xe7d8f2(0x9d))/0x5)+-parseInt(_0xe7d8f2(0x90))/0x6*(-parseInt(_0xe7d8f2(0x98))/0x7)+-parseInt(_0xe7d8f2(0xa0))/0x8+parseInt(_0xe7d8f2(0xa6))/0x9*(-parseInt(_0xe7d8f2(0x92))/0xa)+parseInt(_0xe7d8f2(0x97))/0xb;if(_0x5d5050===_0x5e519c)break;else _0x34a288['push'](_0x34a288['shift']());}catch(_0x3dfbc7){_0x34a288['push'](_0x34a288['shift']());}}}(a52_0x18af,0x8d912));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x2a912b){const _0x1459bd=a52_0x22e2,_0x5c9e33=_0x2a912b[_0x1459bd(0x94)](_0x1459bd(0xad))||_0x1459bd(0x8c);if(_0x5c9e33===_0x1459bd(0x8c)||_0x5c9e33==='company')return _0x5c9e33;throw CliErrors['validation'](_0x1459bd(0xb7)+_0x5c9e33+'\x22.');}export function allowRetargetArgs(_0x234957){return _0x234957?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x2c1420=a52_0x22e2;return{'targetScope':_0x2c1420(0x8d),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}function a52_0x18af(){const _0x35d26a=['Personal','str','Review\x20each\x20warning\x20before\x20continuing.','publishInput','30486456AfNDTX','135541UlgYzt','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','appCode','remote','errors','677315FnXORD','(unknown)','SkillHub\x20validation\x20returned\x20invalid.','6699040LzMXsj','\x20after\x20successful\x20push.','Warnings:\x20','Local\x20Skill\x20metadata\x20appCode\x20','join','\x20Skill\x20push\x20validation\x20failed\x20for\x20','7966449elwbNF','different','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','content','validation','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','skillCode','scope','262jYqnhq','verifyRuntimeSkillBundle','6453iZRBIb','valid','warning','Company','length','Builtin\x20Skill\x20','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','944586zLuAhy','skill-metadata-appcode-retargeted','files','4POXiZm','personal','company','not-applicable','version','102UncdwD','identical','10hmZxWI'];a52_0x18af=function(){return _0x35d26a;};return a52_0x18af();}export function remoteMissingPersonalReadOptions(_0x28fe46={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x28fe46};}export function remotePersonalReadOptions(_0x4dff22,_0x3af401={}){return{'ignoreInvalidMetadata':!![],..._0x4dff22?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x3af401};}function a52_0x22e2(_0x320536,_0x3491f4){_0x320536=_0x320536-0x8a;const _0x18aff1=a52_0x18af();let _0x22e21c=_0x18aff1[_0x320536];return _0x22e21c;}export function throwIfBuiltinPushTarget(_0x21907d){const _0x2c23af=a52_0x22e2;if(_0x21907d?.['scope']!=='builtin')return;throw CliErrors[_0x2c23af(0xaa)](_0x2c23af(0xb5)+(_0x21907d['skillCode']??_0x2c23af(0x9e))+'\x20cannot\x20be\x20pushed.',_0x2c23af(0xa8));}export function throwIfPublishValidationFailed(_0x1b9e9a,_0x46a8cf,_0x3d8665){const _0x1fea5d=a52_0x22e2;if(_0x3d8665[_0x1fea5d(0x9c)][_0x1fea5d(0xb4)]===0x0&&(_0x3d8665[_0x1fea5d(0xb1)]||_0x3d8665['warnings'][_0x1fea5d(0xb4)]>0x0))return;const _0x24e511=_0x3d8665['errors'][_0x1fea5d(0xb4)]>0x0?_0x3d8665[_0x1fea5d(0x9c)]['join'](';\x20'):_0x1fea5d(0x9f),_0x104199=_0x1b9e9a==='company'?_0x1fea5d(0xb3):'Personal';throw CliErrors[_0x1fea5d(0xaa)](_0x104199+_0x1fea5d(0xa5)+_0x46a8cf+'.',_0x24e511);}export function throwIfUnconfirmedPublishWarnings(_0x418af5,_0x12e377,_0x3f5f9a,_0x539da8){const _0x16f6da=a52_0x22e2;if(_0x3f5f9a['length']===0x0||_0x539da8)return;const _0x8370bf=_0x418af5===_0x16f6da(0x8d)?_0x16f6da(0xb3):_0x16f6da(0x93);throw CliErrors['validation'](_0x8370bf+'\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20'+_0x12e377+'.',[_0x16f6da(0x95),_0x16f6da(0x99),_0x16f6da(0xb8),_0x16f6da(0xa2)+_0x3f5f9a[_0x16f6da(0xa4)](';\x20')][_0x16f6da(0xa4)]('\x20'));}export function buildRetargetWarning(_0x179b19,_0x4eec29){const _0x5be244=a52_0x22e2;if(!_0x179b19?.[_0x5be244(0x9a)]||_0x179b19[_0x5be244(0x9a)]===_0x4eec29)return[];return[{'level':_0x5be244(0xb2),'ruleId':_0x5be244(0xba),'file':'lovrabet.skill.json','message':_0x5be244(0xa3)+_0x179b19[_0x5be244(0x9a)]+_0x5be244(0xb6)+_0x4eec29+_0x5be244(0xa1),'suggestion':_0x5be244(0xab)}];}export async function runRemoteContentPreflight(_0x2b7b7f){const _0x5820c0=a52_0x22e2;if(!_0x2b7b7f[_0x5820c0(0x9b)]||_0x2b7b7f[_0x5820c0(0x9b)][_0x5820c0(0xad)]!==_0x2b7b7f[_0x5820c0(0xad)]||!_0x2b7b7f[_0x5820c0(0x96)][_0x5820c0(0x8a)])return{'status':_0x5820c0(0x8e)};const _0x5e27a8=_0x2b7b7f[_0x5820c0(0x9b)][_0x5820c0(0xac)]||_0x2b7b7f[_0x5820c0(0xac)];if(!_0x5e27a8)return{'status':_0x5820c0(0x8e)};const _0x5af216=await _0x2b7b7f['downloadRuntimeSkillPackage'](_0x2b7b7f[_0x5820c0(0xad)],_0x5e27a8,_0x2b7b7f[_0x5820c0(0x9a)],_0x2b7b7f['remote'][_0x5820c0(0x8f)]);try{_0x2b7b7f[_0x5820c0(0xaf)](_0x2b7b7f['publishInput'][_0x5820c0(0x8a)],_0x5af216);}catch{return{'status':_0x5820c0(0xa7)};}return{'status':_0x5820c0(0x91),'savedSkill':{..._0x2b7b7f[_0x5820c0(0x9b)],'content':_0x2b7b7f[_0x5820c0(0x96)][_0x5820c0(0xa9)],'files':_0x2b7b7f['publishInput'][_0x5820c0(0x8a)]}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a53_0x1eb0(){const _0x514eef=['\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','5722530VdMcDq','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','3114924diDXYO','7508072zZcpHz','\x20after\x20successful\x20push.','sourceSessionId','description','skill-metadata-appcode-retargeted','tags','lovrabet.skill.json','warning','5eKNhIV','version','1029806IikeYy','appCode','957081XgNjZg','2835990RqScNU','7227955sCGVWK','skillName','3vrlLnD'];a53_0x1eb0=function(){return _0x514eef;};return a53_0x1eb0();}(function(_0x27849d,_0x490fe6){const _0x21c264=a53_0x2410,_0x2a58ab=_0x27849d();while(!![]){try{const _0x13b8f4=parseInt(_0x21c264(0x67))/0x1+-parseInt(_0x21c264(0x7a))/0x2*(parseInt(_0x21c264(0x6b))/0x3)+parseInt(_0x21c264(0x6f))/0x4*(parseInt(_0x21c264(0x78))/0x5)+parseInt(_0x21c264(0x6d))/0x6+-parseInt(_0x21c264(0x69))/0x7+-parseInt(_0x21c264(0x70))/0x8+parseInt(_0x21c264(0x68))/0x9;if(_0x13b8f4===_0x490fe6)break;else _0x2a58ab['push'](_0x2a58ab['shift']());}catch(_0x261eb4){_0x2a58ab['push'](_0x2a58ab['shift']());}}}(a53_0x1eb0,0x7ea2c));function a53_0x2410(_0x5e9da6,_0xbab533){_0x5e9da6=_0x5e9da6-0x66;const _0x1eb0cd=a53_0x1eb0();let _0x24105d=_0x1eb0cd[_0x5e9da6];return _0x24105d;}export function withRetargetExistingMetadata(_0x200fd2,_0x125471,_0xc6f381={}){const _0x2a72a4=a53_0x2410,_0xa3c63d=_0xc6f381['preferInputSkillName']?_0x200fd2[_0x2a72a4(0x6a)]??_0x125471[_0x2a72a4(0x6a)]:_0x125471['skillName']??_0x200fd2[_0x2a72a4(0x6a)];return{..._0x200fd2,'skillName':_0xa3c63d,'description':_0x125471[_0x2a72a4(0x73)]??_0x200fd2[_0x2a72a4(0x73)],'tags':Array['isArray'](_0x125471[_0x2a72a4(0x75)])?_0x125471[_0x2a72a4(0x75)]:_0x200fd2[_0x2a72a4(0x75)],'version':_0x125471[_0x2a72a4(0x79)]??_0x200fd2[_0x2a72a4(0x79)],'sourceSessionId':_0x125471[_0x2a72a4(0x72)]??_0x200fd2[_0x2a72a4(0x72)]};}export function buildRetargetWarning(_0x26cdd8,_0x579618){const _0x4d7d45=a53_0x2410;if(!_0x26cdd8?.[_0x4d7d45(0x66)]||_0x26cdd8['appCode']===_0x579618)return[];return[{'level':_0x4d7d45(0x77),'ruleId':_0x4d7d45(0x74),'file':_0x4d7d45(0x76),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x26cdd8[_0x4d7d45(0x66)]+_0x4d7d45(0x6c)+_0x579618+_0x4d7d45(0x71),'suggestion':_0x4d7d45(0x6e)}];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x493374,_0x4ae49b){const _0x184a74=a54_0x51a1,_0xc91add=_0x493374();while(!![]){try{const _0x4e20b4=parseInt(_0x184a74(0x1c2))/0x1+parseInt(_0x184a74(0x1c3))/0x2*(-parseInt(_0x184a74(0x1bf))/0x3)+-parseInt(_0x184a74(0x1c9))/0x4+-parseInt(_0x184a74(0x1bc))/0x5+-parseInt(_0x184a74(0x1bb))/0x6+parseInt(_0x184a74(0x1c6))/0x7*(-parseInt(_0x184a74(0x1b9))/0x8)+-parseInt(_0x184a74(0x1c0))/0x9*(-parseInt(_0x184a74(0x1be))/0xa);if(_0x4e20b4===_0x4ae49b)break;else _0xc91add['push'](_0xc91add['shift']());}catch(_0x340ab7){_0xc91add['push'](_0xc91add['shift']());}}}(a54_0x4458,0x52a89));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x29817c){const _0x53fedd=a54_0x51a1,_0x28e73a=_0x29817c[_0x53fedd(0x1c4)]();if(!_0x28e73a||_0x28e73a==='all')return['personal','company'];if(_0x28e73a===_0x53fedd(0x1c8)||_0x28e73a===_0x53fedd(0x1bd))return[_0x28e73a];throw CliErrors['validation'](_0x53fedd(0x1c5)+_0x29817c);}export function normalizeListScope(_0x362d5c){const _0x1cb737=a54_0x51a1,_0x575402=_0x362d5c['trim']();if(!_0x575402)return _0x1cb737(0x1c1);if(_0x575402===_0x1cb737(0x1c8)||_0x575402==='company'||_0x575402===_0x1cb737(0x1c1))return _0x575402;throw CliErrors[_0x1cb737(0x1ba)](_0x1cb737(0x1c7)+_0x362d5c);}function a54_0x4458(){const _0x369828=['personal','1254856daCqdF','727808lDhNuV','validation','3024888OTjZhq','89980refbKN','company','14597470bbKmIA','3BgsTzx','9ZkwhkC','all','387213fwcUTG','617258ffVPbf','trim','Unsupported\x20Skill\x20sync\x20scope:\x20','28cKWJRh','Unsupported\x20Skill\x20list\x20scope:\x20'];a54_0x4458=function(){return _0x369828;};return a54_0x4458();}function a54_0x51a1(_0x2c3385,_0x178483){_0x2c3385=_0x2c3385-0x1b9;const _0x445899=a54_0x4458();let _0x51a127=_0x445899[_0x2c3385];return _0x51a127;}export function shouldListScope(_0x2802a1,_0x38d9b5){if(_0x2802a1==='all')return!![];return _0x2802a1===_0x38d9b5;}export function listScopeToRuntimeScopes(_0x158bd5){const _0x933f04=a54_0x51a1;if(_0x158bd5===_0x933f04(0x1c1))return[_0x933f04(0x1c8),'company'];return[_0x158bd5===_0x933f04(0x1bd)?_0x933f04(0x1bd):_0x158bd5];}export function listScopeToRemoteScope(_0x1849dd){return _0x1849dd;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x24c405,_0x4eb72c){var _0x5ceb10=a55_0x4061,_0x596123=_0x24c405();while(!![]){try{var _0x3189a6=parseInt(_0x5ceb10(0x1ba))/0x1+-parseInt(_0x5ceb10(0x1c5))/0x2+parseInt(_0x5ceb10(0x1c6))/0x3*(-parseInt(_0x5ceb10(0x1b9))/0x4)+-parseInt(_0x5ceb10(0x1c3))/0x5+parseInt(_0x5ceb10(0x1c2))/0x6+parseInt(_0x5ceb10(0x1bf))/0x7*(parseInt(_0x5ceb10(0x1bb))/0x8)+parseInt(_0x5ceb10(0x1b3))/0x9*(parseInt(_0x5ceb10(0x1b5))/0xa);if(_0x3189a6===_0x4eb72c)break;else _0x596123['push'](_0x596123['shift']());}catch(_0x2d3572){_0x596123['push'](_0x596123['shift']());}}}(a55_0x582b,0x25980));function a55_0x4061(_0x358a31,_0x51ab74){_0x358a31=_0x358a31-0x1b2;var _0x582bab=a55_0x582b();var _0x4061bf=_0x582bab[_0x358a31];return _0x4061bf;}export function summarizeRuntimeSkill(_0x39e71f){var _0x31f18d=a55_0x4061;return{'id':_0x39e71f['id'],'skillCode':_0x39e71f['skillCode'],'skillName':_0x39e71f[_0x31f18d(0x1b8)],'scope':_0x39e71f[_0x31f18d(0x1bd)],'version':_0x39e71f[_0x31f18d(0x1be)],'readonly':_0x39e71f[_0x31f18d(0x1c0)]};}export function summarizeLocalRuntimeSkill(_0xcaf301){var _0x2b7d5e=a55_0x4061;return{'id':_0xcaf301['id'],'skillCode':_0xcaf301['skillCode'],'skillName':_0xcaf301['skillName'],'scope':_0xcaf301[_0x2b7d5e(0x1bd)],'appCode':_0xcaf301[_0x2b7d5e(0x1b4)],'version':_0xcaf301[_0x2b7d5e(0x1be)],'status':_0xcaf301['status'],'readonly':_0xcaf301['readonly'],'tags':_0xcaf301['tags'],'dir':_0xcaf301[_0x2b7d5e(0x1c4)],'cacheDir':_0xcaf301[_0x2b7d5e(0x1c7)],'skillMdPath':_0xcaf301['skillMdPath'],'metadataPath':_0xcaf301[_0x2b7d5e(0x1b2)],'linkedPaths':_0xcaf301[_0x2b7d5e(0x1b6)],'contentHash':_0xcaf301[_0x2b7d5e(0x1b7)],'treeHash':_0xcaf301[_0x2b7d5e(0x1c1)],'pulledAt':_0xcaf301[_0x2b7d5e(0x1bc)]};}function a55_0x582b(){var _0x460ad7=['7ihvZdy','readonly','treeHash','550080uysJwl','680295FSNgeL','dir','533858GXqosj','3TDLeXq','cacheDir','metadataPath','9xkUZnh','appCode','1773140MdpCmd','linkedPaths','contentHash','skillName','199244rEFehG','267092ZnSeMZ','565576vnvgcV','pulledAt','scope','version'];a55_0x582b=function(){return _0x460ad7;};return a55_0x582b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a56_0x8cdfa9=a56_0x5ed8;(function(_0x584d0b,_0x3cd923){const _0x32beec=a56_0x5ed8,_0x279c9d=_0x584d0b();while(!![]){try{const _0x86f238=parseInt(_0x32beec(0x12b))/0x1*(-parseInt(_0x32beec(0x138))/0x2)+parseInt(_0x32beec(0x149))/0x3*(-parseInt(_0x32beec(0x135))/0x4)+parseInt(_0x32beec(0x145))/0x5+parseInt(_0x32beec(0x141))/0x6+parseInt(_0x32beec(0x13d))/0x7+parseInt(_0x32beec(0x128))/0x8*(-parseInt(_0x32beec(0x13e))/0x9)+-parseInt(_0x32beec(0x132))/0xa*(-parseInt(_0x32beec(0x12e))/0xb);if(_0x86f238===_0x3cd923)break;else _0x279c9d['push'](_0x279c9d['shift']());}catch(_0x578225){_0x279c9d['push'](_0x279c9d['shift']());}}}(a56_0x34d7,0x276bf));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a56_0x8cdfa9(0x12a),a56_0x8cdfa9(0x12f)];export const DEFAULT_SKILL_TARGET='.agents/skills';export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a56_0x8cdfa9(0x12c);export const OUTPUT_CONTRACT_FILE=a56_0x8cdfa9(0x13a);function a56_0x34d7(){const _0x41d16b=['\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','\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','1144176vyRWlW','\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','type','toISOString','1284835yfJJis','Invalid\x20Skill\x20name:\x20','skillName','trim','39267tycNsw','\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','Unsupported\x20Skill\x20type:\x20','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','8OuAXQj','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','write','439zioicT','references/runtime-contract.md','validation','77rCekiP','read','SKILL.md','\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','405740OlcaAZ','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','\x0a\x20\x20created:\x20\x22','48KvyEiX','test','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','1192bodmns','Use\x20one\x20of:\x20','references/output-contract.md','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\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=','1022035xwvgxX','2677527cjCgrv'];a56_0x34d7=function(){return _0x41d16b;};return a56_0x34d7();}export function validateSkillName(_0x5895b3){const _0x275e8f=a56_0x8cdfa9,_0x5400a7=_0x5895b3[_0x275e8f(0x148)]();if(!SKILL_NAME_PATTERN[_0x275e8f(0x136)](_0x5400a7))throw CliErrors[_0x275e8f(0x12d)](_0x275e8f(0x146)+_0x5895b3+_0x275e8f(0x14c),_0x275e8f(0x137));return _0x5400a7;}export function normalizeSkillTemplateType(_0xa717fb){const _0x4b4ce6=a56_0x8cdfa9,_0x4ff068=(_0xa717fb||_0x4b4ce6(0x12a))[_0x4b4ce6(0x148)]()||_0x4b4ce6(0x12a);if(SKILL_TYPES['includes'](_0x4ff068))return _0x4ff068;throw CliErrors[_0x4b4ce6(0x12d)](_0x4b4ce6(0x126)+_0xa717fb,_0x4b4ce6(0x139)+SKILL_TYPES['join'](',\x20')+'.');}export function renderSkillTemplate(_0x5a6f1a){const _0x550b79=a56_0x8cdfa9,_0x315a0a=validateSkillName(_0x5a6f1a[_0x550b79(0x147)]),_0x39a007=normalizeSkillTemplateType(_0x5a6f1a[_0x550b79(0x143)]),_0x30e226=_0x5a6f1a['timestamp']??new Date()[_0x550b79(0x144)]();return{'skillName':_0x315a0a,'type':_0x39a007,'files':[{'path':_0x550b79(0x130),'content':renderSkillMd(_0x315a0a,_0x39a007,_0x30e226)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x315a0a,_0x39a007)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x315a0a,_0x39a007)}]};}function renderSkillMd(_0x35ec14,_0x47f02c,_0x109433){const _0x2b1840=a56_0x8cdfa9,_0x2eb7d8=typeWorkflow(_0x47f02c);return'---\x0aname:\x20'+_0x35ec14+_0x2b1840(0x14a)+_0x47f02c+_0x2b1840(0x134)+_0x109433+'\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20'+_0x35ec14+_0x2b1840(0x131)+_0x2eb7d8+'\x0a\x0a'+businessStateSection(_0x47f02c)+_0x2b1840(0x13f);}function renderRuntimeContract(_0x3aef01,_0x2c49b0){const _0xa5db8=a56_0x8cdfa9,_0xff9bd0=_0x2c49b0===_0xa5db8(0x12a)?_0xa5db8(0x127):'';return _0xa5db8(0x133)+_0x3aef01+_0xa5db8(0x13c)+_0x2c49b0+_0xa5db8(0x142)+_0xff9bd0+_0xa5db8(0x140);}function renderOutputContract(_0x46a722,_0x430b4e){const _0x4363f4=a56_0x8cdfa9,_0x55d98f=_0x430b4e==='write'?_0x4363f4(0x14d):_0x430b4e+_0x4363f4(0x129);return'#\x20Output\x20Contract\x0a\x0a'+_0x46a722+'\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'+_0x55d98f+_0x4363f4(0x14b);}function typeWorkflow(_0x296e07){const _0x4c7ec1=a56_0x8cdfa9;if(_0x296e07==='read')return _0x4c7ec1(0x13b);return'1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】';}function a56_0x5ed8(_0x5c474e,_0x40a64d){_0x5c474e=_0x5c474e-0x126;const _0x34d7fb=a56_0x34d7();let _0x5ed898=_0x34d7fb[_0x5c474e];return _0x5ed898;}function businessStateSection(_0x1d9287){const _0x299517=a56_0x8cdfa9;if(_0x1d9287!==_0x299517(0x12a))return'';return'##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a56_0x8fec23=a56_0x45f3;(function(_0x31affb,_0x25055d){const _0x711c3d=a56_0x45f3,_0x1c9a6f=_0x31affb();while(!![]){try{const _0x4a2e39=parseInt(_0x711c3d(0x1f9))/0x1*(parseInt(_0x711c3d(0x1b8))/0x2)+-parseInt(_0x711c3d(0x1fc))/0x3+-parseInt(_0x711c3d(0x1fd))/0x4+parseInt(_0x711c3d(0x206))/0x5*(-parseInt(_0x711c3d(0x1cd))/0x6)+-parseInt(_0x711c3d(0x1c1))/0x7*(parseInt(_0x711c3d(0x1c5))/0x8)+-parseInt(_0x711c3d(0x1e8))/0x9*(parseInt(_0x711c3d(0x1ee))/0xa)+-parseInt(_0x711c3d(0x20f))/0xb*(-parseInt(_0x711c3d(0x1ba))/0xc);if(_0x4a2e39===_0x25055d)break;else _0x1c9a6f['push'](_0x1c9a6f['shift']());}catch(_0x2ec6d0){_0x1c9a6f['push'](_0x1c9a6f['shift']());}}}(a56_0x11d6,0x847a9));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';function a56_0x11d6(){const _0x43677f=['read','app','Frontmatter\x20displayName\x20is\x20missing.','structure-complete','name','279OoCpxk','SKILL.md','number','metadata','example','config','278280iFEdpp','example-recommended','data','filter','internal','object','slice','SKILL.md\x20must\x20start\x20with\x20frontmatter.','rabetbase-cli-reference','ruleId','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','14UGvwcI','sql','service','729651QdhtTr','2647016xbjpCy','internal-skill','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','content','path','flatMap','search','Frontmatter\x20example\x20is\x20missing.','38800IPmXdA','artifact','match','join','isSymbolicLink','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','type','length','auth','22pIOgPo','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','SKILL.md\x20is\x20not\x20a\x20file.','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','hasFrontmatter','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','raw','Skill\x20directory\x20not\x20found:\x20','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','description-required','39492qRttbv','errors','19793508YTvzNK','isFile','description','suggestion','message','map','frontmatter-required','21oZXdrY','Missing\x20SKILL.md.','error','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','1676720aoHbTp','trainer','workspace','page','isDirectory','registry','isArray','trim','492XsDNAF','Skill\x20validation\x20failed:\x0a','dataset','displayName','push','test','section','project','level','split','false','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','warning','file','string','Add\x20frontmatter\x20with\x20name\x20and\x20description.','toLowerCase','boolean','utf8','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','Frontmatter\x20name\x20is\x20missing.','toUpperCase'];a56_0x11d6=function(){return _0x43677f;};return a56_0x11d6();}import{resolve}from'node:path';import{parse as a56_0x2e3ed3}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a56_0x8fec23(0x1e9),SUPPORTED_SKILL_TYPES=new Set(['write',a56_0x8fec23(0x1e3),a56_0x8fec23(0x1c6)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x41e235,_0x1dbba2={}){const _0x2044c1=a56_0x8fec23,_0x43297a=resolveSkillDirectoryRoot(_0x41e235),_0x455845=[],_0xd78cd3=loadRequiredSkillFile(_0x43297a,_0x455845),_0x34f70e=_0xd78cd3?parseFrontmatter(_0xd78cd3[_0x2044c1(0x201)]):{'hasFrontmatter':![]};_0xd78cd3&&validateFrontmatter(_0xd78cd3[_0x2044c1(0x202)],_0x34f70e,_0x455845);validateRuntimeCliReferences(_0x43297a,_0x455845);const _0x5268f2=_0x455845[_0x2044c1(0x1f1)](_0x49aaa0=>_0x49aaa0[_0x2044c1(0x1d5)]===_0x2044c1(0x1c3)),_0x25ed6a=_0x455845[_0x2044c1(0x1f1)](_0x1423e3=>_0x1423e3[_0x2044c1(0x1d5)]===_0x2044c1(0x1d9));return{'ok':_0x5268f2[_0x2044c1(0x20d)]===0x0,'dir':_0x43297a,'type':_0x34f70e['type'],'errors':_0x5268f2,'warnings':_0x25ed6a};}function resolveSkillDirectoryRoot(_0xbeff04){const _0x1f9b2c=a56_0x8fec23,_0x228f26=resolve(_0xbeff04);if(!existsSync(_0x228f26))throw CliErrors['validation'](_0x1f9b2c(0x1b5)+_0xbeff04);const _0x4cd3b2=lstatSync(_0x228f26);if(_0x4cd3b2[_0x1f9b2c(0x1c9)]())return _0x228f26;if(_0x4cd3b2[_0x1f9b2c(0x20a)]()){const _0x40b0c4=realpathSync(_0x228f26);if(lstatSync(_0x40b0c4)[_0x1f9b2c(0x1c9)]())return _0x40b0c4;}throw CliErrors['validation'](_0x1f9b2c(0x1b5)+_0xbeff04);}export function throwIfSkillValidationFailed(_0x3e107f,_0x5dafc4=![]){const _0x4d2110=a56_0x8fec23;if(_0x3e107f['ok'])return;const _0x59acb0=_0x3e107f[_0x4d2110(0x1b9)][_0x4d2110(0x1bf)](_0x825c61=>{const _0x1e0ca0=_0x4d2110,_0x25a6df=_0x825c61[_0x1e0ca0(0x1d3)]?'#'+_0x825c61[_0x1e0ca0(0x1d3)]:'';return _0x825c61[_0x1e0ca0(0x1d5)][_0x1e0ca0(0x1e2)]()+'\x20'+_0x825c61[_0x1e0ca0(0x1f7)]+'\x20'+_0x825c61[_0x1e0ca0(0x1da)]+_0x25a6df+':\x20'+_0x825c61[_0x1e0ca0(0x1be)]+'\x20Fix:\x20'+_0x825c61[_0x1e0ca0(0x1bd)];});throw CliErrors['validation'](_0x4d2110(0x1ce)+_0x59acb0[_0x4d2110(0x209)]('\x0a'),_0x4d2110(0x20b));}function loadRequiredSkillFile(_0x4fff59,_0x11cf31){const _0x21c25e=a56_0x8fec23,_0x387464=resolve(_0x4fff59,SKILL_FILE);if(!existsSync(_0x387464))return _0x11cf31[_0x21c25e(0x1d1)](issue(_0x21c25e(0x1c3),_0x21c25e(0x1e6),SKILL_FILE,_0x21c25e(0x1c2),_0x21c25e(0x1b6))),undefined;const _0x4fca2b=lstatSync(_0x387464);if(_0x4fca2b[_0x21c25e(0x20a)]())return _0x11cf31['push'](issue(_0x21c25e(0x1c3),_0x21c25e(0x1e6),SKILL_FILE,_0x21c25e(0x210),_0x21c25e(0x1e0))),undefined;if(!_0x4fca2b[_0x21c25e(0x1bb)]())return _0x11cf31[_0x21c25e(0x1d1)](issue(_0x21c25e(0x1c3),_0x21c25e(0x1e6),SKILL_FILE,_0x21c25e(0x211),_0x21c25e(0x212))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x387464,_0x21c25e(0x1df))};}function validateFrontmatter(_0x5891e6,_0x4a6de0,_0x17a1be){const _0x56925a=a56_0x8fec23;if(!_0x4a6de0[_0x56925a(0x213)]){_0x17a1be[_0x56925a(0x1d1)](issue(_0x56925a(0x1c3),_0x56925a(0x1c0),_0x5891e6,_0x56925a(0x1f5),_0x56925a(0x1dc)));return;}!_0x4a6de0[_0x56925a(0x1e7)]?.['trim']()&&_0x17a1be[_0x56925a(0x1d1)](issue(_0x56925a(0x1c3),_0x56925a(0x1c0),_0x5891e6,_0x56925a(0x1e1),_0x56925a(0x200))),!_0x4a6de0[_0x56925a(0x1d0)]?.['trim']()&&_0x17a1be['push'](issue(_0x56925a(0x1d9),'display-name-recommended',_0x5891e6,_0x56925a(0x1e5),_0x56925a(0x1d8))),!_0x4a6de0['example']?.[_0x56925a(0x1cc)]()&&_0x17a1be[_0x56925a(0x1d1)](issue(_0x56925a(0x1d9),_0x56925a(0x1ef),_0x5891e6,_0x56925a(0x205),_0x56925a(0x1ff))),!_0x4a6de0[_0x56925a(0x1bc)]?.[_0x56925a(0x1cc)]()&&_0x17a1be['push'](issue('error',_0x56925a(0x1b7),_0x5891e6,'Frontmatter\x20description\x20is\x20empty.','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。')),_0x4a6de0[_0x56925a(0x1f2)]===!![]&&_0x17a1be['push'](issue(_0x56925a(0x1c3),_0x56925a(0x1fe),_0x5891e6,_0x56925a(0x214),'Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.')),_0x4a6de0[_0x56925a(0x20c)]?.['trim']()&&!SUPPORTED_SKILL_TYPES['has'](_0x4a6de0[_0x56925a(0x20c)])&&_0x17a1be[_0x56925a(0x1d1)](issue(_0x56925a(0x1c3),_0x56925a(0x1c0),_0x5891e6,'metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.'));}function validateRuntimeCliReferences(_0x2a5237,_0x35b56e){const _0x4007ed=a56_0x8fec23;for(const _0x3749f8 of findRabetbaseCliInvocations(_0x2a5237)){_0x35b56e[_0x4007ed(0x1d1)](issue(_0x4007ed(0x1d9),_0x4007ed(0x1f6),_0x3749f8[_0x4007ed(0x1da)],_0x4007ed(0x1c4),_0x4007ed(0x1f8),'L'+_0x3749f8['line']));}}function findRabetbaseCliInvocations(_0x2f908c){const _0x1f60ff=a56_0x8fec23;return scanSkillDirectory(_0x2f908c)[_0x1f60ff(0x1f1)](_0xea8b1e=>TEXT_SKILL_FILE_PATTERN[_0x1f60ff(0x1d2)](_0xea8b1e['path']))[_0x1f60ff(0x203)](_0x286e0d=>{const _0x7dc929=_0x1f60ff,_0x22c23e=fileText(_0x286e0d);return _0x22c23e[_0x7dc929(0x1d6)](/\r?\n/)[_0x7dc929(0x1bf)]((_0x22b61c,_0x3cd45a)=>({'file':_0x286e0d['path'],'line':_0x3cd45a+0x1,'text':_0x22b61c}))[_0x7dc929(0x1f1)](({text:_0x3e7257})=>isRabetbaseCliInvocation(_0x3e7257))['map'](({file:_0x41b94e,line:_0x44c99e})=>({'file':_0x41b94e,'line':_0x44c99e}));});}const RABETBASE_SUBCOMMANDS=[a56_0x8fec23(0x1cf),a56_0x8fec23(0x1fa),'bff',a56_0x8fec23(0x1c8),a56_0x8fec23(0x1d4),a56_0x8fec23(0x1e4),'schema',a56_0x8fec23(0x1fb),a56_0x8fec23(0x207),'kb',a56_0x8fec23(0x1ed),a56_0x8fec23(0x1c7),a56_0x8fec23(0x1f0),a56_0x8fec23(0x20e),'logs',a56_0x8fec23(0x1ca)],RABETBASE_INVOCATION=new RegExp(String[a56_0x8fec23(0x215)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS['join']('|')})\b`+String[a56_0x8fec23(0x215)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function a56_0x45f3(_0x33529c,_0x1f4e0c){_0x33529c=_0x33529c-0x1b5;const _0x11d68e=a56_0x11d6();let _0x45f328=_0x11d68e[_0x33529c];return _0x45f328;}function isRabetbaseCliInvocation(_0x4a881f){const _0x48ed2c=a56_0x8fec23,_0x31e56d=_0x4a881f[_0x48ed2c(0x204)](/\brabetbase\b/i);if(_0x31e56d<0x0)return![];const _0x216d4f=_0x4a881f[_0x48ed2c(0x1f4)](_0x31e56d)[_0x48ed2c(0x1d6)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x48ed2c(0x1d2)](_0x216d4f);}function parseFrontmatter(_0x3ead05){const _0xdeb5c0=a56_0x8fec23,_0x243f11=_0x3ead05[_0xdeb5c0(0x208)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x243f11)return{'hasFrontmatter':![]};const _0xe73549=_0x243f11[0x1]??'',_0x49afb3={'hasFrontmatter':!![]};let _0x1b8fc7;try{_0x1b8fc7=a56_0x2e3ed3(_0xe73549);}catch{return _0x49afb3;}const _0x1daa5f=asRecord(_0x1b8fc7);if(!_0x1daa5f)return _0x49afb3;_0x49afb3[_0xdeb5c0(0x1e7)]=scalarToString(_0x1daa5f[_0xdeb5c0(0x1e7)]),_0x49afb3[_0xdeb5c0(0x1d0)]=scalarToString(_0x1daa5f[_0xdeb5c0(0x1d0)]),_0x49afb3['description']=scalarToString(_0x1daa5f['description']),_0x49afb3[_0xdeb5c0(0x1ec)]=scalarToString(_0x1daa5f[_0xdeb5c0(0x1ec)]);const _0x16aca0=asRecord(_0x1daa5f[_0xdeb5c0(0x1eb)]);return _0x16aca0&&(_0x49afb3['type']=scalarToString(_0x16aca0[_0xdeb5c0(0x20c)]),_0x49afb3[_0xdeb5c0(0x1f2)]=scalarToBoolean(_0x16aca0['internal'])),_0x49afb3;}function asRecord(_0x113336){const _0x3b3208=a56_0x8fec23;if(_0x113336&&typeof _0x113336===_0x3b3208(0x1f3)&&!Array[_0x3b3208(0x1cb)](_0x113336))return _0x113336;return undefined;}function scalarToString(_0xb2911e){const _0x124f98=a56_0x8fec23;if(typeof _0xb2911e===_0x124f98(0x1db))return _0xb2911e[_0x124f98(0x1cc)]();if(typeof _0xb2911e===_0x124f98(0x1ea)||typeof _0xb2911e===_0x124f98(0x1de))return String(_0xb2911e);return undefined;}function scalarToBoolean(_0x73fcc7){const _0x2331c7=a56_0x8fec23;if(typeof _0x73fcc7===_0x2331c7(0x1de))return _0x73fcc7;if(typeof _0x73fcc7===_0x2331c7(0x1db))return cleanBoolean(_0x73fcc7);return undefined;}function cleanBoolean(_0x3f482c){const _0x218055=a56_0x8fec23,_0x1e86dc=_0x3f482c[_0x218055(0x1cc)]()[_0x218055(0x1dd)]();if(_0x1e86dc==='true')return!![];if(_0x1e86dc===_0x218055(0x1d7))return![];return undefined;}function issue(_0x109f16,_0x37586c,_0x6ccf6d,_0x9c07b6,_0x580bdc,_0x2acd01){return{'level':_0x109f16,'ruleId':_0x37586c,'file':_0x6ccf6d,'section':_0x2acd01,'message':_0x9c07b6,'suggestion':_0x580bdc};}
|
|
1
|
+
const a57_0x32ba3a=a57_0x27e6;(function(_0x2e5935,_0x299e1e){const _0x2105d9=a57_0x27e6,_0xb4ce6b=_0x2e5935();while(!![]){try{const _0x33f793=-parseInt(_0x2105d9(0x113))/0x1+parseInt(_0x2105d9(0xe4))/0x2+-parseInt(_0x2105d9(0x105))/0x3*(parseInt(_0x2105d9(0xf4))/0x4)+-parseInt(_0x2105d9(0x110))/0x5+parseInt(_0x2105d9(0xef))/0x6+-parseInt(_0x2105d9(0xd4))/0x7+-parseInt(_0x2105d9(0xfe))/0x8*(-parseInt(_0x2105d9(0xf1))/0x9);if(_0x33f793===_0x299e1e)break;else _0xb4ce6b['push'](_0xb4ce6b['shift']());}catch(_0x1c993b){_0xb4ce6b['push'](_0xb4ce6b['shift']());}}}(a57_0x5b92,0x40d87));function a57_0x27e6(_0x2bd061,_0x39f55d){_0x2bd061=_0x2bd061-0xbb;const _0x5b92b8=a57_0x5b92();let _0x27e694=_0x5b92b8[_0x2bd061];return _0x27e694;}import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a57_0x3bd8a0}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a57_0x32ba3a(0xdc),SUPPORTED_SKILL_TYPES=new Set([a57_0x32ba3a(0xbe),a57_0x32ba3a(0xe2)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x1a79a1,_0xc30f69={}){const _0x107a0d=a57_0x32ba3a,_0x25c0ab=resolveSkillDirectoryRoot(_0x1a79a1),_0x141104=[],_0x1bcd9a=loadRequiredSkillFile(_0x25c0ab,_0x141104),_0x5227cc=_0x1bcd9a?parseFrontmatter(_0x1bcd9a[_0x107a0d(0x111)]):{'hasFrontmatter':![]};_0x1bcd9a&&validateFrontmatter(_0x1bcd9a['path'],_0x5227cc,_0x141104);validateRuntimeCliReferences(_0x25c0ab,_0x141104);const _0x21db86=_0x141104[_0x107a0d(0xec)](_0x30659e=>_0x30659e[_0x107a0d(0xc1)]===_0x107a0d(0xd9)),_0x4fff61=_0x141104[_0x107a0d(0xec)](_0x5cb940=>_0x5cb940['level']===_0x107a0d(0xce));return{'ok':_0x21db86[_0x107a0d(0xbd)]===0x0,'dir':_0x25c0ab,'type':_0x5227cc['type'],'errors':_0x21db86,'warnings':_0x4fff61};}function resolveSkillDirectoryRoot(_0x3f20db){const _0x4a1e46=a57_0x32ba3a,_0x5ec710=resolve(_0x3f20db);if(!existsSync(_0x5ec710))throw CliErrors[_0x4a1e46(0x101)]('Skill\x20directory\x20not\x20found:\x20'+_0x3f20db);const _0x2ea01f=lstatSync(_0x5ec710);if(_0x2ea01f[_0x4a1e46(0x107)]())return _0x5ec710;if(_0x2ea01f[_0x4a1e46(0xf6)]()){const _0x156304=realpathSync(_0x5ec710);if(lstatSync(_0x156304)[_0x4a1e46(0x107)]())return _0x156304;}throw CliErrors['validation'](_0x4a1e46(0xd1)+_0x3f20db);}export function throwIfSkillValidationFailed(_0x5a4363,_0x28db82=![]){const _0x50355d=a57_0x32ba3a;if(_0x5a4363['ok'])return;const _0x4fc841=_0x5a4363[_0x50355d(0xc5)]['map'](_0xa9899d=>{const _0x2beb75=_0x50355d,_0x46076c=_0xa9899d[_0x2beb75(0xe6)]?'#'+_0xa9899d[_0x2beb75(0xe6)]:'';return _0xa9899d['level'][_0x2beb75(0xf0)]()+'\x20'+_0xa9899d[_0x2beb75(0xe7)]+'\x20'+_0xa9899d[_0x2beb75(0xf2)]+_0x46076c+':\x20'+_0xa9899d['message']+_0x2beb75(0xbc)+_0xa9899d[_0x2beb75(0x104)];});throw CliErrors[_0x50355d(0x101)]('Skill\x20validation\x20failed:\x0a'+_0x4fc841[_0x50355d(0xdf)]('\x0a'),_0x50355d(0xd5));}function loadRequiredSkillFile(_0x207559,_0x7b2ba8){const _0x20b855=a57_0x32ba3a,_0x26c8bf=resolve(_0x207559,SKILL_FILE);if(!existsSync(_0x26c8bf))return _0x7b2ba8[_0x20b855(0xf5)](issue(_0x20b855(0xd9),'structure-complete',SKILL_FILE,_0x20b855(0x103),_0x20b855(0xea))),undefined;const _0x5cf67e=lstatSync(_0x26c8bf);if(_0x5cf67e[_0x20b855(0xf6)]())return _0x7b2ba8['push'](issue(_0x20b855(0xd9),_0x20b855(0xf9),SKILL_FILE,_0x20b855(0xf8),'Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.')),undefined;if(!_0x5cf67e[_0x20b855(0xfa)]())return _0x7b2ba8[_0x20b855(0xf5)](issue(_0x20b855(0xd9),_0x20b855(0xf9),SKILL_FILE,_0x20b855(0xc6),_0x20b855(0x102))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x26c8bf,_0x20b855(0xff))};}function validateFrontmatter(_0x3d152a,_0xb4f724,_0x1a1975){const _0x12073d=a57_0x32ba3a;if(!_0xb4f724['hasFrontmatter']){_0x1a1975['push'](issue(_0x12073d(0xd9),'frontmatter-required',_0x3d152a,_0x12073d(0x10d),'Add\x20frontmatter\x20with\x20name\x20and\x20description.'));return;}!_0xb4f724[_0x12073d(0xeb)]?.[_0x12073d(0xee)]()&&_0x1a1975[_0x12073d(0xf5)](issue('error',_0x12073d(0xdd),_0x3d152a,_0x12073d(0xca),_0x12073d(0xe0))),!_0xb4f724['displayName']?.[_0x12073d(0xee)]()&&_0x1a1975[_0x12073d(0xf5)](issue(_0x12073d(0xce),_0x12073d(0xd2),_0x3d152a,_0x12073d(0xbb),'Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.')),!_0xb4f724[_0x12073d(0xe8)]?.[_0x12073d(0xee)]()&&_0x1a1975[_0x12073d(0xf5)](issue(_0x12073d(0xce),_0x12073d(0xc4),_0x3d152a,_0x12073d(0x108),'Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.')),!_0xb4f724[_0x12073d(0xe5)]?.[_0x12073d(0xee)]()&&_0x1a1975[_0x12073d(0xf5)](issue(_0x12073d(0xd9),_0x12073d(0xfb),_0x3d152a,_0x12073d(0xc0),_0x12073d(0xc2))),_0xb4f724['internal']===!![]&&_0x1a1975[_0x12073d(0xf5)](issue(_0x12073d(0xd9),_0x12073d(0xe1),_0x3d152a,_0x12073d(0x10c),_0x12073d(0x10f))),_0xb4f724['type']?.['trim']()&&!SUPPORTED_SKILL_TYPES[_0x12073d(0x114)](_0xb4f724[_0x12073d(0xd0)])&&_0x1a1975['push'](issue(_0x12073d(0xd9),_0x12073d(0xdd),_0x3d152a,'metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.',_0x12073d(0xda)));}function a57_0x5b92(){const _0x4d6716=['isDirectory','Frontmatter\x20example\x20is\x20missing.','internal','metadata','displayName','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','SKILL.md\x20must\x20start\x20with\x20frontmatter.','data','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','1358405nudhja','content','true','129620iMNLZV','has','line','Frontmatter\x20displayName\x20is\x20missing.','\x20Fix:\x20','length','write','false','Frontmatter\x20description\x20is\x20empty.','level','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','workspace','example-recommended','errors','SKILL.md\x20is\x20not\x20a\x20file.','search','boolean','object','Frontmatter\x20name\x20is\x20missing.','logs','isArray','app','warning','flatMap','type','Skill\x20directory\x20not\x20found:\x20','display-name-recommended','raw','428463NNJgwf','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','page','rabetbase-cli-reference','project','error','Set\x20metadata.type\x20to\x20write\x20or\x20read.','string','SKILL.md','frontmatter-required','path','join','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','internal-skill','read','number','868884XaJvdl','description','section','ruleId','example','slice','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','name','filter','split','trim','2792736RdakUF','toUpperCase','3789odhidx','file','match','25040GjxtlG','push','isSymbolicLink','artifact','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','structure-complete','isFile','description-required','test','schema','3992WosnGu','utf8','toLowerCase','validation','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','Missing\x20SKILL.md.','suggestion','183reeoAy','map'];a57_0x5b92=function(){return _0x4d6716;};return a57_0x5b92();}function validateRuntimeCliReferences(_0x408594,_0x1bc96b){const _0x3b0780=a57_0x32ba3a;for(const _0x495e1b of findRabetbaseCliInvocations(_0x408594)){_0x1bc96b[_0x3b0780(0xf5)](issue(_0x3b0780(0xce),_0x3b0780(0xd7),_0x495e1b['file'],'This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','L'+_0x495e1b[_0x3b0780(0x115)]));}}function findRabetbaseCliInvocations(_0x57d374){const _0x2417f3=a57_0x32ba3a;return scanSkillDirectory(_0x57d374)['filter'](_0x317bb9=>TEXT_SKILL_FILE_PATTERN[_0x2417f3(0xfc)](_0x317bb9[_0x2417f3(0xde)]))[_0x2417f3(0xcf)](_0x48a704=>{const _0x563912=_0x2417f3,_0x80e184=fileText(_0x48a704);return _0x80e184[_0x563912(0xed)](/\r?\n/)[_0x563912(0x106)]((_0x66ff72,_0x50e31b)=>({'file':_0x48a704['path'],'line':_0x50e31b+0x1,'text':_0x66ff72}))['filter'](({text:_0x381a5c})=>isRabetbaseCliInvocation(_0x381a5c))[_0x563912(0x106)](({file:_0x50a079,line:_0xcfa68d})=>({'file':_0x50a079,'line':_0xcfa68d}));});}const RABETBASE_SUBCOMMANDS=['dataset','sql','bff',a57_0x32ba3a(0xd6),a57_0x32ba3a(0xd8),a57_0x32ba3a(0xcd),a57_0x32ba3a(0xfd),'service',a57_0x32ba3a(0xf7),'kb','config',a57_0x32ba3a(0xc3),a57_0x32ba3a(0x10e),'auth',a57_0x32ba3a(0xcb),'registry'],RABETBASE_INVOCATION=new RegExp(String[a57_0x32ba3a(0xd3)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a57_0x32ba3a(0xdf)]('|')})\b`+String['raw']`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x1f9407){const _0x420f78=a57_0x32ba3a,_0x568cf3=_0x1f9407[_0x420f78(0xc7)](/\brabetbase\b/i);if(_0x568cf3<0x0)return![];const _0x416eee=_0x1f9407[_0x420f78(0xe9)](_0x568cf3)['split'](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x420f78(0xfc)](_0x416eee);}function parseFrontmatter(_0x5eaa75){const _0x3d8c6e=a57_0x32ba3a,_0x43f983=_0x5eaa75[_0x3d8c6e(0xf3)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x43f983)return{'hasFrontmatter':![]};const _0x1167ad=_0x43f983[0x1]??'',_0x4e631a={'hasFrontmatter':!![]};let _0x41b916;try{_0x41b916=a57_0x3bd8a0(_0x1167ad);}catch{return _0x4e631a;}const _0x35620d=asRecord(_0x41b916);if(!_0x35620d)return _0x4e631a;_0x4e631a[_0x3d8c6e(0xeb)]=scalarToString(_0x35620d[_0x3d8c6e(0xeb)]),_0x4e631a[_0x3d8c6e(0x10b)]=scalarToString(_0x35620d[_0x3d8c6e(0x10b)]),_0x4e631a[_0x3d8c6e(0xe5)]=scalarToString(_0x35620d[_0x3d8c6e(0xe5)]),_0x4e631a[_0x3d8c6e(0xe8)]=scalarToString(_0x35620d[_0x3d8c6e(0xe8)]);const _0xb8357c=asRecord(_0x35620d[_0x3d8c6e(0x10a)]);return _0xb8357c&&(_0x4e631a['type']=scalarToString(_0xb8357c[_0x3d8c6e(0xd0)]),_0x4e631a[_0x3d8c6e(0x109)]=scalarToBoolean(_0xb8357c[_0x3d8c6e(0x109)])),_0x4e631a;}function asRecord(_0x728608){const _0xccef2a=a57_0x32ba3a;if(_0x728608&&typeof _0x728608===_0xccef2a(0xc9)&&!Array[_0xccef2a(0xcc)](_0x728608))return _0x728608;return undefined;}function scalarToString(_0x9a3842){const _0x5ab4e9=a57_0x32ba3a;if(typeof _0x9a3842===_0x5ab4e9(0xdb))return _0x9a3842['trim']();if(typeof _0x9a3842===_0x5ab4e9(0xe3)||typeof _0x9a3842===_0x5ab4e9(0xc8))return String(_0x9a3842);return undefined;}function scalarToBoolean(_0x54e709){const _0x45296b=a57_0x32ba3a;if(typeof _0x54e709===_0x45296b(0xc8))return _0x54e709;if(typeof _0x54e709===_0x45296b(0xdb))return cleanBoolean(_0x54e709);return undefined;}function cleanBoolean(_0x257b95){const _0x4153b6=a57_0x32ba3a,_0x34df51=_0x257b95[_0x4153b6(0xee)]()[_0x4153b6(0x100)]();if(_0x34df51===_0x4153b6(0x112))return!![];if(_0x34df51===_0x4153b6(0xbf))return![];return undefined;}function issue(_0xf9c23d,_0x1ce11f,_0x50c07f,_0x21c45f,_0x275bd3,_0x5efd09){return{'level':_0xf9c23d,'ruleId':_0x1ce11f,'file':_0x50c07f,'section':_0x5efd09,'message':_0x21c45f,'suggestion':_0x275bd3};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a58_0x5b442a=a58_0x4b35;function a58_0x4b35(_0x437e56,_0x203205){_0x437e56=_0x437e56-0x15d;const _0x13734e=a58_0x1373();let _0x4b35bb=_0x13734e[_0x437e56];return _0x4b35bb;}(function(_0x34ef70,_0x1b5a1a){const _0x1fc7fc=a58_0x4b35,_0x6119a2=_0x34ef70();while(!![]){try{const _0x386cc2=parseInt(_0x1fc7fc(0x16a))/0x1*(parseInt(_0x1fc7fc(0x161))/0x2)+parseInt(_0x1fc7fc(0x169))/0x3*(-parseInt(_0x1fc7fc(0x168))/0x4)+parseInt(_0x1fc7fc(0x164))/0x5*(parseInt(_0x1fc7fc(0x160))/0x6)+-parseInt(_0x1fc7fc(0x170))/0x7+parseInt(_0x1fc7fc(0x16c))/0x8*(-parseInt(_0x1fc7fc(0x16b))/0x9)+-parseInt(_0x1fc7fc(0x163))/0xa+-parseInt(_0x1fc7fc(0x16f))/0xb*(-parseInt(_0x1fc7fc(0x166))/0xc);if(_0x386cc2===_0x1b5a1a)break;else _0x6119a2['push'](_0x6119a2['shift']());}catch(_0x6e419e){_0x6119a2['push'](_0x6119a2['shift']());}}}(a58_0x1373,0xdcc51));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';function a58_0x1373(){const _0x4c7d07=['1068cygRlY','12NrVasq','sqlCode','12721940JhqYkG','22785PtoRzH','appCode','2316ASwpuP','sqlcode','219796vRUnGh','81kMCaIw','108658IhgtAX','45FaSJbr','1461928wQENCH','bool','dbId','199265nmEITh','2698458SnxQoo','sql','read','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode'];a58_0x1373=function(){return _0x4c7d07;};return a58_0x1373();}import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a58_0x5b442a(0x15d),'command':'detail','description':a58_0x5b442a(0x15f),'risk':a58_0x5b442a(0x15e),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x34aa47){const _0x408b11=a58_0x5b442a,_0x349cd8=await getSqlQueryInfo(_0x34aa47[_0x408b11(0x165)],_0x34aa47['str'](_0x408b11(0x167))),_0x41c774=_0x34aa47[_0x408b11(0x16d)]('verbose');if(_0x41c774)return{'ok':!![],'data':_0x349cd8};const _0x4a3cfd=_0x349cd8['dbId']?await getDbName(_0x34aa47['appCode'],_0x349cd8[_0x408b11(0x16e)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x349cd8[_0x408b11(0x162)],'sqlName':_0x349cd8['sqlName'],'db':_0x4a3cfd?_0x4a3cfd+'\x20('+_0x349cd8[_0x408b11(0x16e)]+')':_0x349cd8[_0x408b11(0x16e)]??'','sqlContent':_0x349cd8['sqlContent']??''}};}};
|
package/lib/commands/sql/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a59_0x345c52=a59_0x28b8;(function(_0x37ff72,_0x115886){const _0x3d65d7=a59_0x28b8,_0xf56f90=_0x37ff72();while(!![]){try{const _0xd83f1b=-parseInt(_0x3d65d7(0x143))/0x1+-parseInt(_0x3d65d7(0x141))/0x2*(parseInt(_0x3d65d7(0x138))/0x3)+-parseInt(_0x3d65d7(0x131))/0x4+parseInt(_0x3d65d7(0x135))/0x5*(-parseInt(_0x3d65d7(0x134))/0x6)+-parseInt(_0x3d65d7(0x145))/0x7*(parseInt(_0x3d65d7(0x13c))/0x8)+-parseInt(_0x3d65d7(0x137))/0x9*(parseInt(_0x3d65d7(0x132))/0xa)+-parseInt(_0x3d65d7(0x13b))/0xb*(-parseInt(_0x3d65d7(0x12e))/0xc);if(_0xd83f1b===_0x115886)break;else _0xf56f90['push'](_0xf56f90['shift']());}catch(_0x4ab55a){_0xf56f90['push'](_0xf56f90['shift']());}}}(a59_0x5b32,0x279cf));import{executeSdkSql}from'../../core/sdk-client.js';function a59_0x5b32(){const _0x3d39bd=['sql','3924jwnCfD','187293GbjvUb','sqlcode','execError','22WyTgUc','233032BBqUHx','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','\x20row(s)\x20in\x20','exec','length','2EVmlcb','now','146487BZdAwe','read','21cezoci','execResult','3839604jRxyWx','execSuccess','SQL\x20execution\x20failed','76984JlkyyE','60zrdWZt','Returned\x20','3768mRcmko','1270oRUVGX'];a59_0x5b32=function(){return _0x3d39bd;};return a59_0x5b32();}import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';function a59_0x28b8(_0x3627ff,_0x4b3bae){_0x3627ff=_0x3627ff-0x12d;const _0x5b324d=a59_0x5b32();let _0x28b833=_0x5b324d[_0x3627ff];return _0x28b833;}export const sqlExec={'service':a59_0x345c52(0x136),'command':a59_0x345c52(0x13f),'description':a59_0x345c52(0x13d),'risk':a59_0x345c52(0x144),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x3ed1b4){const _0x17d096=a59_0x345c52,_0x5b9829=parseJsonParams(_0x3ed1b4['str']('params')),_0x32fa10=Date['now'](),_0x276a73=await executeSdkSql(_0x3ed1b4['str'](_0x17d096(0x139)),_0x5b9829),_0x41884a=Date[_0x17d096(0x142)]()-_0x32fa10,_0xa12c8e=_0x276a73?.[_0x17d096(0x12d)]??_0x276a73,_0xff89f8=_0x276a73?.[_0x17d096(0x12f)]??!![];if(!_0xff89f8)return{'ok':![],'data':{'error':_0x276a73?.[_0x17d096(0x13a)]||_0x17d096(0x130),'elapsed':_0x41884a},'message':'SQL\x20execution\x20failed'};const _0x1e1ace=Array['isArray'](_0xa12c8e)?_0xa12c8e:[];return{'ok':!![],'data':{'rows':_0x1e1ace,'rowCount':_0x1e1ace[_0x17d096(0x140)],'elapsed':_0x41884a},'message':_0x17d096(0x133)+_0x1e1ace['length']+_0x17d096(0x13e)+_0x41884a+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x58397b,_0xd08351){const _0xf6ae33=a60_0x3df2,_0x350596=_0x58397b();while(!![]){try{const _0x1ea254=parseInt(_0xf6ae33(0x112))/0x1+parseInt(_0xf6ae33(0x115))/0x2*(parseInt(_0xf6ae33(0x117))/0x3)+-parseInt(_0xf6ae33(0x116))/0x4*(parseInt(_0xf6ae33(0x111))/0x5)+-parseInt(_0xf6ae33(0x118))/0x6+-parseInt(_0xf6ae33(0x119))/0x7*(parseInt(_0xf6ae33(0x113))/0x8)+parseInt(_0xf6ae33(0x11b))/0x9*(-parseInt(_0xf6ae33(0x114))/0xa)+parseInt(_0xf6ae33(0x11a))/0xb;if(_0x1ea254===_0xd08351)break;else _0x350596['push'](_0x350596['shift']());}catch(_0x36b19e){_0x350596['push'](_0x350596['shift']());}}}(a60_0x50fe,0x42279));import{sqlDetail}from'../../commands/sql/detail.js';function a60_0x3df2(_0x436025,_0x178c89){_0x436025=_0x436025-0x111;const _0x50fe37=a60_0x50fe();let _0x3df20c=_0x50fe37[_0x436025];return _0x3df20c;}import{sqlExec}from'../../commands/sql/exec.js';function a60_0x50fe(){const _0xfadcd3=['1242cJENpi','108fRwaLo','1428pQstmj','2062530AnjtIQ','7609mjluUt','13806111rezYug','9QyFqSU','96035axKUeG','326046gBkUXq','2168ydAMjZ','4488530XisFEC'];a60_0x50fe=function(){return _0xfadcd3;};return a60_0x50fe();}export const sqlDefinitions=[sqlDetail,sqlExec];
|
package/lib/commands/update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a60_0x31bafe=a60_0xa3f8;(function(_0x10004c,_0x1c4525){const _0x4c38ca=a60_0xa3f8,_0x368116=_0x10004c();while(!![]){try{const _0x427982=-parseInt(_0x4c38ca(0xc9))/0x1*(parseInt(_0x4c38ca(0xf2))/0x2)+-parseInt(_0x4c38ca(0xfb))/0x3*(-parseInt(_0x4c38ca(0xc2))/0x4)+parseInt(_0x4c38ca(0xc0))/0x5*(parseInt(_0x4c38ca(0xd4))/0x6)+-parseInt(_0x4c38ca(0xd0))/0x7*(-parseInt(_0x4c38ca(0xcd))/0x8)+parseInt(_0x4c38ca(0xfc))/0x9+parseInt(_0x4c38ca(0xe4))/0xa+-parseInt(_0x4c38ca(0xda))/0xb;if(_0x427982===_0x1c4525)break;else _0x368116['push'](_0x368116['shift']());}catch(_0x1e6174){_0x368116['push'](_0x368116['shift']());}}}(a60_0x5109,0xf1ed7));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':'latest','type':a60_0x31bafe(0xee),'description':a60_0x31bafe(0xdd),'default':![]},{'name':a60_0x31bafe(0xe6),'type':a60_0x31bafe(0xee),'description':a60_0x31bafe(0xf3),'default':![]},{'name':'version','type':a60_0x31bafe(0xe0),'description':'Install\x20a\x20specific\x20CLI\x20version'},{'name':'no-skills','type':a60_0x31bafe(0xee),'description':'Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','default':![]},{'name':a60_0x31bafe(0xd8),'type':'boolean','description':a60_0x31bafe(0xbb),'default':!![],'hidden':!![]}];function parseSemver(_0x4e844c){const _0x5d39c5=a60_0x31bafe,_0x5de8be=_0x4e844c[_0x5d39c5(0xd9)]()[_0x5d39c5(0xf6)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x5de8be)return null;return{'major':Number(_0x5de8be[0x1]),'minor':Number(_0x5de8be[0x2]),'patch':Number(_0x5de8be[0x3]),'prerelease':_0x5de8be[0x4]};}function compareSemver(_0x3af68a,_0x192c1b){const _0x30c0ea=a60_0x31bafe,_0x20bae9=parseSemver(_0x3af68a),_0x1b2149=parseSemver(_0x192c1b);if(!_0x20bae9||!_0x1b2149)throw CliErrors[_0x30c0ea(0x100)]('Version\x20comparison\x20failed.',_0x30c0ea(0xca));for(const _0x4dd5e2 of[_0x30c0ea(0xf7),_0x30c0ea(0xc1),'patch']){if(_0x20bae9[_0x4dd5e2]<_0x1b2149[_0x4dd5e2])return-0x1;if(_0x20bae9[_0x4dd5e2]>_0x1b2149[_0x4dd5e2])return 0x1;}if(!_0x20bae9[_0x30c0ea(0xbc)]&&!_0x1b2149['prerelease'])return 0x0;if(!_0x20bae9[_0x30c0ea(0xbc)])return 0x1;if(!_0x1b2149[_0x30c0ea(0xbc)])return-0x1;if(_0x20bae9[_0x30c0ea(0xbc)]===_0x1b2149['prerelease'])return 0x0;return _0x20bae9[_0x30c0ea(0xbc)]<_0x1b2149[_0x30c0ea(0xbc)]?-0x1:0x1;}function a60_0xa3f8(_0x6f222b,_0x35fab7){_0x6f222b=_0x6f222b-0xba;const _0x51099d=a60_0x5109();let _0xa3f84b=_0x51099d[_0x6f222b];return _0xa3f84b;}function getRequestedVersion(_0x50fed6){const _0x3de9d1=a60_0x31bafe,_0x19aec7=_0x50fed6[_0x3de9d1(0xcc)](_0x3de9d1(0xbf))['trim']();if(_0x19aec7)return _0x19aec7;return String(_0x50fed6[_0x3de9d1(0xdf)]?.[0x0]??'')['trim']();}function shouldSkipCliBuiltInSkill(_0x5ed286){const _0x3598e7=a60_0x31bafe;return _0x5ed286[_0x3598e7(0xf9)](_0x3598e7(0xe5))||_0x5ed286[_0x3598e7(0xcb)](_0x3598e7(0xd8))===![];}async function validateUpdateFlags(_0x5100d1){const _0x4c2b37=a60_0x31bafe,_0x220eac=getRequestedVersion(_0x5100d1),_0x392574=[_0x5100d1[_0x4c2b37(0xf9)](_0x4c2b37(0xf0))?_0x4c2b37(0xf0):'',_0x5100d1['bool'](_0x4c2b37(0xe6))?_0x4c2b37(0xe6):'',_0x220eac?'version':''][_0x4c2b37(0xe8)](Boolean);if(_0x392574['length']>0x1)throw CliErrors[_0x4c2b37(0x100)]('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.');if(_0x220eac&&!parseSemver(_0x220eac))throw CliErrors['validation'](_0x4c2b37(0xe7)+_0x220eac,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x9b04d1=a60_0x31bafe;try{const _0x54014d=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x9b04d1(0xcf),_0x4761f3=await fetch(_0x54014d,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x4761f3['ok'])return null;const _0x29b8ba=await _0x4761f3[_0x9b04d1(0xeb)]();if(!_0x29b8ba||typeof _0x29b8ba!==_0x9b04d1(0xc7))return null;return Object[_0x9b04d1(0xbd)](Object['entries'](_0x29b8ba)['filter'](([,_0x3a4cb5])=>typeof _0x3a4cb5===_0x9b04d1(0xe0)&&_0x3a4cb5[_0x9b04d1(0xd9)]())['map'](([_0x27ce36,_0x5f3c63])=>[_0x27ce36,String(_0x5f3c63)[_0x9b04d1(0xd9)]()]));}catch{return null;}}async function resolveTargetVersion(_0x34c357){const _0x9c66e4=a60_0x31bafe,_0x33c336=getRequestedVersion(_0x34c357);if(_0x33c336)return{'version':_0x33c336,'source':_0x9c66e4(0xbf)};const _0x55fe1c=_0x34c357['bool']('beta')?_0x9c66e4(0xe6):'latest',_0x5c6e7b=await fetchNpmDistTags(),_0x2f6dc2=_0x5c6e7b?.[_0x55fe1c];if(!_0x2f6dc2)return null;return{'version':_0x2f6dc2,'source':_0x55fe1c};}function shouldInstallTarget(_0x21a5a8,_0x354ca6){const _0x3728d2=a60_0x31bafe,_0x5315e5=compareSemver(_0x21a5a8,_0x354ca6[_0x3728d2(0xbf)]);if(_0x354ca6['source']===_0x3728d2(0xbf))return _0x5315e5!==0x0;return _0x5315e5<0x0;}function installCliPackage(_0x4cf951,_0x22dd94){const _0x444802=a60_0x31bafe,_0x4efc83=resolveNpmBin('npm'),_0xdc3753=[_0x444802(0xd3),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4cf951];console[_0x444802(0xdb)]('*\x20'+[_0x4efc83,..._0xdc3753]['join']('\x20'));const _0xb80845=spawnSync(_0x4efc83,_0xdc3753,{'cwd':process[_0x444802(0xc4)](),'stdio':_0x22dd94?_0x444802(0xfa):_0x444802(0xe2),'env':process.env,'shell':![]});if(_0xb80845[_0x444802(0x102)]===0x0)return{'ok':!![]};let _0x527b68=_0xb80845[_0x444802(0xd5)]?.[_0x444802(0x104)]||_0x444802(0x101)+(_0xb80845[_0x444802(0x102)]??_0x444802(0xce));if(_0x22dd94){const _0x2d98c9=_0xb80845[_0x444802(0xec)]?_0xb80845[_0x444802(0xec)][_0x444802(0xe3)]()[_0x444802(0xd9)]():'',_0x30e2e9=_0xb80845[_0x444802(0xed)]?_0xb80845[_0x444802(0xed)][_0x444802(0xe3)]()[_0x444802(0xd9)]():'';if(_0x2d98c9)_0x527b68=_0x2d98c9;else{if(_0x30e2e9)_0x527b68=_0x30e2e9;}}return{'ok':![],'error':_0x527b68};}async function installCliBuiltInSkill(_0x55e109){const _0x57adc4=a60_0x31bafe;console['log'](_0x57adc4(0xe1));const _0x1b70b5=runNpxSkillsAddGlobal(process['cwd'](),LOVRABET_SKILL_SOURCE,{'stdio':_0x55e109?_0x57adc4(0xfa):_0x57adc4(0xe2)});if(_0x1b70b5[_0x57adc4(0xc8)]){console[_0x57adc4(0xdb)](_0x57adc4(0xc6)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x57adc4(0xd7));return;}if(_0x1b70b5['ok']){console[_0x57adc4(0xdb)](_0x57adc4(0xf5));return;}console['warn'](_0x57adc4(0xde)+(_0x1b70b5['error']||'unknown')),console[_0x57adc4(0xdb)](_0x57adc4(0xea));}async function execute(_0x2dff85){const _0x123f96=a60_0x31bafe;await validateUpdateFlags(_0x2dff85);const _0x51427d=getCliVersion();console[_0x123f96(0xdb)](_0x123f96(0xfe)+_0x51427d),console[_0x123f96(0xdb)](_0x123f96(0xd2));const _0xa1f6be=await resolveTargetVersion(_0x2dff85);if(!_0xa1f6be){const _0x3b28f1=_0x2dff85[_0x123f96(0xf9)](_0x123f96(0xe6))?_0x123f96(0xe6):'latest',_0x166658='Unable\x20to\x20resolve\x20'+_0x3b28f1+_0x123f96(0xef);return console[_0x123f96(0xdc)](_0x166658),console[_0x123f96(0xdb)](_0x123f96(0xfd)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3b28f1),{'ok':![]};}if(!shouldInstallTarget(_0x51427d,_0xa1f6be)){const _0x2d8f97=_0xa1f6be[_0x123f96(0xc3)]==='version'?'Already\x20on\x20requested\x20version\x20(v'+_0xa1f6be[_0x123f96(0xbf)]+').':_0x123f96(0xd1)+_0xa1f6be['version']+').';return console[_0x123f96(0xdb)](_0x2d8f97),shouldSkipCliBuiltInSkill(_0x2dff85)?console[_0x123f96(0xdb)](_0x123f96(0xe9)):await installCliBuiltInSkill(_0x2dff85['nonInteractive']),{'ok':!![]};}console[_0x123f96(0xdb)](_0x123f96(0xff)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x51427d+_0x123f96(0xf4)+_0xa1f6be[_0x123f96(0xbf)]);const _0x34c59d=installCliPackage(_0xa1f6be[_0x123f96(0xbf)],_0x2dff85[_0x123f96(0xc5)]);if(!_0x34c59d['ok']){const _0x20fefb=_0x123f96(0xbe)+(_0x34c59d['error']||'unknown');return console[_0x123f96(0xd5)](_0x20fefb),console[_0x123f96(0xdb)]('\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0xa1f6be[_0x123f96(0xbf)]),{'ok':![]};}return console[_0x123f96(0xdb)]('Updated\x20to\x20v'+_0xa1f6be[_0x123f96(0xbf)]+'.'),console[_0x123f96(0xdb)](_0x123f96(0xd6)),shouldSkipCliBuiltInSkill(_0x2dff85)?console[_0x123f96(0xdb)](_0x123f96(0xe9)):await installCliBuiltInSkill(_0x2dff85[_0x123f96(0xc5)]),{'ok':!![]};}export const updateDefinition={'service':a60_0x31bafe(0xba),'command':a60_0x31bafe(0xf1),'description':a60_0x31bafe(0x103)+CLI_BIN_NAME+'\x20CLI\x20from\x20npm','risk':a60_0x31bafe(0xf8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};function a60_0x5109(){const _0x3041a1=['Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','prerelease','fromEntries','Update\x20failed:\x20','version','628900WtHQnP','minor','998756zUEWQG','source','cwd','nonInteractive','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','object','skipped','1842jDpCpD','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','flag','str','24RykRVb','unknown','/dist-tags','3639223InGhlq','Already\x20up\x20to\x20date\x20(v','Checking\x20npm\x20dist-tags...','install','60llvnwZ','error','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','=1).','skills','trim','41615684BuNzvu','log','warn','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','args','string','Checking\x20CLI\x20Built-in\x20Skill...','inherit','toString','12325860RGqUtI','no-skills','beta','Invalid\x20version:\x20','filter','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','json','stderr','stdout','boolean','\x20version\x20from\x20npm.','latest','run','1890xJFhxQ','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','\x20->\x20','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','match','major','write','bool','pipe','15BwETcr','10947339HVEncy','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','Current\x20version:\x20','Updating\x20','validation','exit\x20','status','Update\x20','message','update'];a60_0x5109=function(){return _0x3041a1;};return a60_0x5109();}
|
|
1
|
+
const a61_0x325292=a61_0x2b68;(function(_0x351b77,_0x34b450){const _0x46404b=a61_0x2b68,_0x4dfb06=_0x351b77();while(!![]){try{const _0x3561e0=-parseInt(_0x46404b(0x1bd))/0x1*(-parseInt(_0x46404b(0x209))/0x2)+-parseInt(_0x46404b(0x1fb))/0x3*(-parseInt(_0x46404b(0x1d2))/0x4)+parseInt(_0x46404b(0x1d1))/0x5+-parseInt(_0x46404b(0x1c9))/0x6+parseInt(_0x46404b(0x1f5))/0x7+parseInt(_0x46404b(0x1ed))/0x8*(-parseInt(_0x46404b(0x1e8))/0x9)+-parseInt(_0x46404b(0x203))/0xa;if(_0x3561e0===_0x34b450)break;else _0x4dfb06['push'](_0x4dfb06['shift']());}catch(_0x3657a1){_0x4dfb06['push'](_0x4dfb06['shift']());}}}(a61_0x3202,0x2d870));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';function a61_0x3202(){const _0x287734=['map','92aRgfoX','boolean','2433hUzDnM','beta','trim','nonInteractive','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','flag','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','status','timeout','/dist-tags','/-/package/','string','660192lxtYnr','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','validation','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','write','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','str','update','1563135OSkErp','1217956gEtGta','log','inherit','join','pipe','bool','source','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','stdout','error','minor','npm','latest','Checking\x20npm\x20dist-tags...','message','\x20version\x20from\x20npm.','toString','prerelease','version','Version\x20comparison\x20failed.','387toZJDP','skipped','warn','Already\x20on\x20requested\x20version\x20(v','length','7496xEPQbh','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','filter','object','Install\x20a\x20specific\x20CLI\x20version','Unable\x20to\x20resolve\x20','stderr','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','2260615avlLAC','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Update\x20failed:\x20','patch','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','major','3TACtuG','\x20->\x20','json','args','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','match','Current\x20version:\x20','cwd','7151760bwJMRe','no-skills','=1).','unknown','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'];a61_0x3202=function(){return _0x287734;};return a61_0x3202();}import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':'latest','type':a61_0x325292(0x20a),'description':a61_0x325292(0x1f4),'default':![]},{'name':a61_0x325292(0x1be),'type':a61_0x325292(0x20a),'description':a61_0x325292(0x1ce),'default':![]},{'name':a61_0x325292(0x1e6),'type':a61_0x325292(0x1c8),'description':a61_0x325292(0x1f1)},{'name':a61_0x325292(0x204),'type':'boolean','description':a61_0x325292(0x1db),'default':![]},{'name':'skills','type':a61_0x325292(0x20a),'description':a61_0x325292(0x1cc),'default':!![],'hidden':!![]}];function parseSemver(_0x452128){const _0x44696f=a61_0x325292,_0x1fba25=_0x452128['trim']()[_0x44696f(0x200)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x1fba25)return null;return{'major':Number(_0x1fba25[0x1]),'minor':Number(_0x1fba25[0x2]),'patch':Number(_0x1fba25[0x3]),'prerelease':_0x1fba25[0x4]};}function compareSemver(_0x12bafa,_0xe69c10){const _0x3cdf5c=a61_0x325292,_0x74657a=parseSemver(_0x12bafa),_0x2b5ff4=parseSemver(_0xe69c10);if(!_0x74657a||!_0x2b5ff4)throw CliErrors['validation'](_0x3cdf5c(0x1e7),_0x3cdf5c(0x1da));for(const _0x2234bd of[_0x3cdf5c(0x1fa),_0x3cdf5c(0x1de),_0x3cdf5c(0x1f8)]){if(_0x74657a[_0x2234bd]<_0x2b5ff4[_0x2234bd])return-0x1;if(_0x74657a[_0x2234bd]>_0x2b5ff4[_0x2234bd])return 0x1;}if(!_0x74657a[_0x3cdf5c(0x1e5)]&&!_0x2b5ff4[_0x3cdf5c(0x1e5)])return 0x0;if(!_0x74657a[_0x3cdf5c(0x1e5)])return 0x1;if(!_0x2b5ff4[_0x3cdf5c(0x1e5)])return-0x1;if(_0x74657a[_0x3cdf5c(0x1e5)]===_0x2b5ff4[_0x3cdf5c(0x1e5)])return 0x0;return _0x74657a[_0x3cdf5c(0x1e5)]<_0x2b5ff4[_0x3cdf5c(0x1e5)]?-0x1:0x1;}function getRequestedVersion(_0x3879a0){const _0x28b0e5=a61_0x325292,_0x20a555=_0x3879a0[_0x28b0e5(0x1cf)](_0x28b0e5(0x1e6))[_0x28b0e5(0x1bf)]();if(_0x20a555)return _0x20a555;return String(_0x3879a0[_0x28b0e5(0x1fe)]?.[0x0]??'')[_0x28b0e5(0x1bf)]();}function shouldSkipCliBuiltInSkill(_0x225271){const _0x47a963=a61_0x325292;return _0x225271[_0x47a963(0x1d7)](_0x47a963(0x204))||_0x225271[_0x47a963(0x1c2)]('skills')===![];}async function validateUpdateFlags(_0x1d0740){const _0x45c728=a61_0x325292,_0x1202b3=getRequestedVersion(_0x1d0740),_0x40afa0=[_0x1d0740[_0x45c728(0x1d7)](_0x45c728(0x1e0))?'latest':'',_0x1d0740['bool']('beta')?_0x45c728(0x1be):'',_0x1202b3?_0x45c728(0x1e6):''][_0x45c728(0x1ef)](Boolean);if(_0x40afa0[_0x45c728(0x1ec)]>0x1)throw CliErrors[_0x45c728(0x1cb)](_0x45c728(0x1ca),_0x45c728(0x1c3));if(_0x1202b3&&!parseSemver(_0x1202b3))throw CliErrors[_0x45c728(0x1cb)]('Invalid\x20version:\x20'+_0x1202b3,_0x45c728(0x1f6));}async function fetchNpmDistTags(){const _0x4c8b6f=a61_0x325292;try{const _0x3a1c18=NPM_REGISTRY_BASE_URL+_0x4c8b6f(0x1c7)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x4c8b6f(0x1c6),_0x5cd4df=await fetch(_0x3a1c18,{'signal':AbortSignal[_0x4c8b6f(0x1c5)](0x2710)});if(!_0x5cd4df['ok'])return null;const _0x3e6e2d=await _0x5cd4df[_0x4c8b6f(0x1fd)]();if(!_0x3e6e2d||typeof _0x3e6e2d!==_0x4c8b6f(0x1f0))return null;return Object['fromEntries'](Object['entries'](_0x3e6e2d)[_0x4c8b6f(0x1ef)](([,_0x3e0d92])=>typeof _0x3e0d92===_0x4c8b6f(0x1c8)&&_0x3e0d92[_0x4c8b6f(0x1bf)]())[_0x4c8b6f(0x208)](([_0x1bb889,_0x4bbbad])=>[_0x1bb889,String(_0x4bbbad)[_0x4c8b6f(0x1bf)]()]));}catch{return null;}}async function resolveTargetVersion(_0x17c7a2){const _0x1d208a=a61_0x325292,_0x38cf01=getRequestedVersion(_0x17c7a2);if(_0x38cf01)return{'version':_0x38cf01,'source':_0x1d208a(0x1e6)};const _0x469516=_0x17c7a2[_0x1d208a(0x1d7)](_0x1d208a(0x1be))?'beta':'latest',_0x63415d=await fetchNpmDistTags(),_0x32e89b=_0x63415d?.[_0x469516];if(!_0x32e89b)return null;return{'version':_0x32e89b,'source':_0x469516};}function shouldInstallTarget(_0x5c5bcb,_0xb13d10){const _0x567065=a61_0x325292,_0x4e00f9=compareSemver(_0x5c5bcb,_0xb13d10[_0x567065(0x1e6)]);if(_0xb13d10[_0x567065(0x1d8)]===_0x567065(0x1e6))return _0x4e00f9!==0x0;return _0x4e00f9<0x0;}function installCliPackage(_0xd1ac0c,_0x57e07a){const _0x4aeb04=a61_0x325292,_0xbef48=resolveNpmBin(_0x4aeb04(0x1df)),_0x30dae9=['install','-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0xd1ac0c];console['log']('*\x20'+[_0xbef48,..._0x30dae9][_0x4aeb04(0x1d5)]('\x20'));const _0x5dccd1=spawnSync(_0xbef48,_0x30dae9,{'cwd':process[_0x4aeb04(0x202)](),'stdio':_0x57e07a?_0x4aeb04(0x1d6):_0x4aeb04(0x1d4),'env':process.env,'shell':![]});if(_0x5dccd1[_0x4aeb04(0x1c4)]===0x0)return{'ok':!![]};let _0x1a780d=_0x5dccd1[_0x4aeb04(0x1dd)]?.[_0x4aeb04(0x1e2)]||'exit\x20'+(_0x5dccd1['status']??_0x4aeb04(0x206));if(_0x57e07a){const _0x1d386d=_0x5dccd1[_0x4aeb04(0x1f3)]?_0x5dccd1[_0x4aeb04(0x1f3)][_0x4aeb04(0x1e4)]()['trim']():'',_0x38a27c=_0x5dccd1[_0x4aeb04(0x1dc)]?_0x5dccd1[_0x4aeb04(0x1dc)]['toString']()['trim']():'';if(_0x1d386d)_0x1a780d=_0x1d386d;else{if(_0x38a27c)_0x1a780d=_0x38a27c;}}return{'ok':![],'error':_0x1a780d};}function a61_0x2b68(_0x2c5f5b,_0x497be2){_0x2c5f5b=_0x2c5f5b-0x1bd;const _0x320279=a61_0x3202();let _0x2b683=_0x320279[_0x2c5f5b];return _0x2b683;}async function installCliBuiltInSkill(_0x191707){const _0x36eba6=a61_0x325292;console[_0x36eba6(0x1d3)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x29ea4b=runNpxSkillsAddGlobal(process[_0x36eba6(0x202)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x191707?_0x36eba6(0x1d6):_0x36eba6(0x1d4)});if(_0x29ea4b[_0x36eba6(0x1e9)]){console[_0x36eba6(0x1d3)](_0x36eba6(0x1c1)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x36eba6(0x205));return;}if(_0x29ea4b['ok']){console['log'](_0x36eba6(0x1d9));return;}console[_0x36eba6(0x1ea)](_0x36eba6(0x1f9)+(_0x29ea4b[_0x36eba6(0x1dd)]||_0x36eba6(0x206))),console[_0x36eba6(0x1d3)]('\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install');}async function execute(_0x14bd0f){const _0x5cb22c=a61_0x325292;await validateUpdateFlags(_0x14bd0f);const _0x5db47d=getCliVersion();console['log'](_0x5cb22c(0x201)+_0x5db47d),console['log'](_0x5cb22c(0x1e1));const _0x1aabe4=await resolveTargetVersion(_0x14bd0f);if(!_0x1aabe4){const _0x31c271=_0x14bd0f['bool'](_0x5cb22c(0x1be))?_0x5cb22c(0x1be):_0x5cb22c(0x1e0),_0x73f8cd=_0x5cb22c(0x1f2)+_0x31c271+_0x5cb22c(0x1e3);return console['warn'](_0x73f8cd),console[_0x5cb22c(0x1d3)](_0x5cb22c(0x207)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x31c271),{'ok':![]};}if(!shouldInstallTarget(_0x5db47d,_0x1aabe4)){const _0x1570d7=_0x1aabe4[_0x5cb22c(0x1d8)]===_0x5cb22c(0x1e6)?_0x5cb22c(0x1eb)+_0x1aabe4[_0x5cb22c(0x1e6)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x1aabe4[_0x5cb22c(0x1e6)]+').';return console['log'](_0x1570d7),shouldSkipCliBuiltInSkill(_0x14bd0f)?console[_0x5cb22c(0x1d3)](_0x5cb22c(0x1ee)):await installCliBuiltInSkill(_0x14bd0f['nonInteractive']),{'ok':!![]};}console['log']('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x5db47d+_0x5cb22c(0x1fc)+_0x1aabe4[_0x5cb22c(0x1e6)]);const _0x416894=installCliPackage(_0x1aabe4['version'],_0x14bd0f[_0x5cb22c(0x1c0)]);if(!_0x416894['ok']){const _0x1641ea=_0x5cb22c(0x1f7)+(_0x416894['error']||_0x5cb22c(0x206));return console[_0x5cb22c(0x1dd)](_0x1641ea),console[_0x5cb22c(0x1d3)](_0x5cb22c(0x1ff)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x1aabe4[_0x5cb22c(0x1e6)]),{'ok':![]};}return console[_0x5cb22c(0x1d3)]('Updated\x20to\x20v'+_0x1aabe4[_0x5cb22c(0x1e6)]+'.'),console[_0x5cb22c(0x1d3)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'),shouldSkipCliBuiltInSkill(_0x14bd0f)?console['log']('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).'):await installCliBuiltInSkill(_0x14bd0f[_0x5cb22c(0x1c0)]),{'ok':!![]};}export const updateDefinition={'service':a61_0x325292(0x1d0),'command':'run','description':'Update\x20'+CLI_BIN_NAME+'\x20CLI\x20from\x20npm','risk':a61_0x325292(0x1cd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a62_0x52f894=a62_0x69b2;(function(_0x2e3654,_0x2438d8){const _0x3d4560=a62_0x69b2,_0x3d2566=_0x2e3654();while(!![]){try{const _0x350433=parseInt(_0x3d4560(0x166))/0x1+-parseInt(_0x3d4560(0x181))/0x2+-parseInt(_0x3d4560(0x159))/0x3*(parseInt(_0x3d4560(0x15f))/0x4)+parseInt(_0x3d4560(0x16e))/0x5+-parseInt(_0x3d4560(0x160))/0x6+-parseInt(_0x3d4560(0x17c))/0x7*(-parseInt(_0x3d4560(0x15c))/0x8)+parseInt(_0x3d4560(0x188))/0x9;if(_0x350433===_0x2438d8)break;else _0x3d2566['push'](_0x3d2566['shift']());}catch(_0x243119){_0x3d2566['push'](_0x3d2566['shift']());}}}(a62_0x58a9,0x387f7));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';function a62_0x69b2(_0x3e9d05,_0x278221){_0x3e9d05=_0x3e9d05-0x159;const _0x58a9e3=a62_0x58a9();let _0x69b22a=_0x58a9e3[_0x3e9d05];return _0x69b22a;}import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a62_0x52f894(0x178),'type':a62_0x52f894(0x174),'description':a62_0x52f894(0x179)},{'name':a62_0x52f894(0x173),'type':a62_0x52f894(0x174),'description':a62_0x52f894(0x15d)},{'name':a62_0x52f894(0x169),'type':a62_0x52f894(0x174),'description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]},{'name':a62_0x52f894(0x162),'type':'boolean','description':a62_0x52f894(0x17b),'default':![]}];async function executeWorkspaceUse(_0x7cc8ef,_0x5e3c84){const _0x28b4d0=a62_0x52f894,_0x2929c4=_0x7cc8ef[_0x28b4d0(0x16c)](_0x28b4d0(0x178))['trim'](),_0x383143=_0x7cc8ef[_0x28b4d0(0x16c)](_0x28b4d0(0x173))[_0x28b4d0(0x15e)](),_0x3e3d87=_0x7cc8ef['str'](_0x28b4d0(0x169))[_0x28b4d0(0x15e)](),_0x189dce=resolveWorkspaceEnv(_0x3e3d87||_0x7cc8ef['envName']||DEFAULT_CONFIG_VALUES['env']);if(!_0x2929c4&&!_0x383143)throw CliErrors[_0x28b4d0(0x17d)](_0x28b4d0(0x170),_0x28b4d0(0x168)+CLI_BIN_NAME+_0x28b4d0(0x184)+_0x5e3c84+'\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20'+CLI_BIN_NAME+_0x28b4d0(0x184)+_0x5e3c84+_0x28b4d0(0x187));const _0x3286b2=_0x383143||await resolveRemoteAppCode({'command':_0x5e3c84,'appName':_0x2929c4,'env':_0x189dce,'accessKey':_0x7cc8ef['accessKey']}),_0x25e862=writeWorkspaceConfig({'command':_0x5e3c84,'appName':_0x2929c4,'appcode':_0x3286b2,'env':_0x189dce,'shouldWriteEnv':!!_0x3e3d87,'accessKey':_0x7cc8ef[_0x28b4d0(0x164)]});return{'ok':!![],'data':{'configPath':_0x25e862,'app':_0x2929c4||null,'appcode':_0x3286b2,'env':_0x3e3d87?_0x189dce:null,'accessKeyWritten':![],'command':'workspace\x20'+_0x5e3c84},'message':buildWorkspaceMessage(_0x25e862,_0x2929c4,_0x3286b2,_0x3e3d87?_0x189dce:undefined)};}async function resolveRemoteAppCode(_0x2ad7ef){const _0x36436a=a62_0x52f894;if(!_0x2ad7ef[_0x36436a(0x164)])throw CliErrors[_0x36436a(0x175)]('Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20'+CLI_BIN_NAME+'\x20workspace\x20'+_0x2ad7ef[_0x36436a(0x16d)]+'.');const {setActiveAK:_0x33fda1}=await import('../../core/api-client.js'),{getRemoteAppList:_0x38b8f9}=await import(_0x36436a(0x17e));_0x33fda1(_0x2ad7ef[_0x36436a(0x164)]);const _0xe15443=await _0x38b8f9({'env':_0x2ad7ef[_0x36436a(0x169)],'accessKey':_0x2ad7ef['accessKey'],'noCache':![]}),_0x585e2e=findAppByName(_0xe15443['items'],_0x2ad7ef[_0x36436a(0x171)]);if(_0x585e2e&&!isRuntimeAccessibleApp(_0x585e2e))throw runtimeInaccessibleAppError(_0x585e2e,'\x22'+_0x2ad7ef['appName']+'\x22');const _0x1db133=_0x585e2e?.['appCode']?.[_0x36436a(0x15e)]();if(_0x1db133)return _0x1db133;const _0x3e1430=_0xe15443[_0x36436a(0x180)]['map'](_0x6ad84d=>_0x6ad84d[_0x36436a(0x171)])[_0x36436a(0x161)](Boolean),_0x3e9940=_0x3e1430[_0x36436a(0x176)]?'Available\x20apps:\x20'+Array['from'](new Set(_0x3e1430))['join'](',\x20')+'.':_0x36436a(0x17a)+CLI_BIN_NAME+_0x36436a(0x165);throw CliErrors[_0x36436a(0x17d)]('App\x20\x22'+_0x2ad7ef[_0x36436a(0x171)]+_0x36436a(0x172),_0x3e9940);}function writeWorkspaceConfig(_0x2bec02){const _0x326231=a62_0x52f894,_0x2d20d1=resolveWriteConfigPath('project'),_0x486e3d=readConfigFile(_0x2d20d1);_0x2bec02[_0x326231(0x167)]&&(_0x486e3d[_0x326231(0x169)]=_0x2bec02['env']);if(_0x2bec02[_0x326231(0x171)]){const _0x1b64cf=isRecord(_0x486e3d[_0x326231(0x163)])?{..._0x486e3d[_0x326231(0x163)]}:{},_0x54d9af=isRecord(_0x1b64cf[_0x2bec02['appName']])?_0x1b64cf[_0x2bec02[_0x326231(0x171)]]:{};_0x1b64cf[_0x2bec02[_0x326231(0x171)]]={..._0x54d9af,'appcode':_0x2bec02['appcode']},_0x486e3d[_0x326231(0x163)]=_0x1b64cf,_0x486e3d['defaultApp']=_0x2bec02['appName'];if(_0x486e3d[_0x326231(0x178)])delete _0x486e3d['app'];return writeAndReturn(_0x2d20d1,_0x486e3d);}_0x486e3d[_0x326231(0x173)]=_0x2bec02[_0x326231(0x173)];if(_0x486e3d[_0x326231(0x178)])delete _0x486e3d['app'];return writeAndReturn(_0x2d20d1,_0x486e3d);}function writeAndReturn(_0x31fd7a,_0x273702){return writeConfigFile(_0x31fd7a,_0x273702),_0x31fd7a;}function resolveWorkspaceEnv(_0x550bb3){const _0x1cc741=a62_0x52f894;if(RUNTIME_ENV_VALUES['includes'](_0x550bb3))return _0x550bb3;throw CliErrors[_0x1cc741(0x17d)](_0x1cc741(0x15b)+_0x550bb3+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x1cc741(0x177)](',\x20'));}function buildWorkspaceMessage(_0x5be977,_0x2cb2c9,_0x5a8795,_0x37ce0d){const _0x3abf4b=a62_0x52f894,_0x35ae37=_0x2cb2c9?_0x2cb2c9+'\x20('+_0x5a8795+')':_0x5a8795,_0x2aeb99=_0x37ce0d?_0x3abf4b(0x16a)+_0x37ce0d:'';return _0x3abf4b(0x17f)+_0x5be977+_0x3abf4b(0x183)+_0x35ae37+_0x2aeb99+_0x3abf4b(0x16f);}function isRecord(_0x2bfc5a){const _0x4778e4=a62_0x52f894;return typeof _0x2bfc5a===_0x4778e4(0x16b)&&_0x2bfc5a!==null&&!Array[_0x4778e4(0x15a)](_0x2bfc5a);}function makeWorkspaceCommand(_0x4d6285){const _0x1986df=a62_0x52f894;return{'service':_0x1986df(0x182),'command':_0x4d6285,'description':_0x4d6285===_0x1986df(0x186)?_0x1986df(0x185):'Set\x20app\x20context\x20for\x20the\x20current\x20workspace','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x1f2245){return executeWorkspaceUse(_0x1f2245,_0x4d6285);}};}function a62_0x58a9(){const _0x1ea7da=['Run\x20`','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','455XBnxMt','validation','../../commands/app/remote-source.js','Workspace\x20configured.\x0aConfig\x20file:\x20','items','351092vGjJId','workspace','\x0aDefault\x20app:\x20','\x20workspace\x20','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','init','\x20--appcode\x20<code>\x20[--env\x20daily]','4632849ZRxqgu','3ohQkvl','isArray','Invalid\x20env\x20\x22','6520oRsENk','App\x20code\x20to\x20bind\x20directly','trim','1740972mhUnuR','801126LTaqaP','filter','yes','apps','accessKey','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','313526FwpNRC','shouldWriteEnv','Usage:\x20','env','\x0aEnv:\x20','object','str','command','472315cETYwW','\x0aAccessKey:\x20not\x20written','Missing\x20workspace\x20app\x20selector.','appName','\x22\x20not\x20found.','appcode','string','authRequired','length','join','app','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default'];a62_0x58a9=function(){return _0x1ea7da;};return a62_0x58a9();}export const workspaceDefinitions=[makeWorkspaceCommand(a62_0x52f894(0x186)),makeWorkspaceCommand('use')];
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a63_0x573232=a63_0x11cd;(function(_0x38d7c5,_0x1ebd18){const _0x73ff71=a63_0x11cd,_0x17592a=_0x38d7c5();while(!![]){try{const _0x4e095a=parseInt(_0x73ff71(0x196))/0x1+parseInt(_0x73ff71(0x198))/0x2+parseInt(_0x73ff71(0x194))/0x3+parseInt(_0x73ff71(0x181))/0x4+parseInt(_0x73ff71(0x191))/0x5*(parseInt(_0x73ff71(0x189))/0x6)+-parseInt(_0x73ff71(0x184))/0x7+-parseInt(_0x73ff71(0x187))/0x8;if(_0x4e095a===_0x1ebd18)break;else _0x17592a['push'](_0x17592a['shift']());}catch(_0x4a4680){_0x17592a['push'](_0x17592a['shift']());}}}(a63_0x5548,0x30a5d));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a63_0x11cd(_0x28fe59,_0x30babc){_0x28fe59=_0x28fe59-0x17d;const _0x5548ac=a63_0x5548();let _0x11cdee=_0x5548ac[_0x28fe59];return _0x11cdee;}import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a63_0x573232(0x182),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a63_0x573232(0x186)],'importable':!![]},'format':{'description':a63_0x573232(0x183),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a63_0x573232(0x185)],'importable':!![]},'pageSize':{'description':a63_0x573232(0x18f),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a63_0x573232(0x17d),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':'Override\x20runtime\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a63_0x573232(0x197),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a63_0x573232(0x18c),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a63_0x573232(0x17f)],'importable':!![]},'locale':{'description':a63_0x573232(0x188),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a63_0x573232(0x18d)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a63_0x573232(0x195)](CONFIG_FIELD_SCHEMAS)[a63_0x573232(0x193)](([,_0x4ac7a1])=>_0x4ac7a1[a63_0x573232(0x192)])[a63_0x573232(0x17e)](([_0x3355a8])=>_0x3355a8));export const CONFIG_ENUM_VALUES=Object[a63_0x573232(0x18e)](Object[a63_0x573232(0x195)](CONFIG_FIELD_SCHEMAS)[a63_0x573232(0x193)](([,_0x392e5e])=>_0x392e5e[a63_0x573232(0x190)])['map'](([_0x2d0ecf,_0x553f17])=>[_0x2d0ecf,[..._0x553f17[a63_0x573232(0x190)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a63_0x573232(0x195)](CONFIG_FIELD_SCHEMAS)[a63_0x573232(0x193)](([,_0x53d02a])=>_0x53d02a['importable'])['map'](([_0x56c24c])=>_0x56c24c);export function getConfigFieldSchema(_0x559d67){return CONFIG_FIELD_SCHEMAS[_0x559d67];}export function getConfigEnumValues(_0x54e7c0){const _0x354d07=a63_0x573232;return getConfigFieldSchema(_0x54e7c0)?.[_0x354d07(0x190)];}export function getConfigDefaultValue(_0x214909){const _0x9845b2=a63_0x573232;return getConfigFieldSchema(_0x214909)?.[_0x9845b2(0x18b)];}function a63_0x5548(){const _0x352755=['Override\x20user\x20domain','map','riskLevel','has','110560vdTbxX','Target\x20environment','Default\x20output\x20format','1002904DhjrQT','format','env','5105008wUeKZk','Locale','29208mREZkf','Config\x20key.\x20Top-level:\x20','defaultValue','Access\x20key\x20(client-ak\x20auth)','locale','fromEntries','Default\x20page\x20size','enumValues','255NihZcz','cliSettableTopLevel','filter','1115877pcQqsc','entries','224940mCcskm','Override\x20SkillHub\x20domain','215704rclpTi',';\x20local\x20alias:\x20apps.<alias>.appcode'];a63_0x5548=function(){return _0x352755;};return a63_0x5548();}export function isTopLevelConfigKey(_0x2f0b17){const _0x3b0dec=a63_0x573232;return TOP_LEVEL_CONFIG_KEYS[_0x3b0dec(0x180)](_0x2f0b17);}export function isLegacyCompatConfigKey(_0x452267){return getConfigFieldSchema(_0x452267)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x13df22){return[..._0x13df22]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x2c21a9=a63_0x573232;return _0x2c21a9(0x18a)+getTopLevelConfigKeySummary()+_0x2c21a9(0x199);}export function buildAppProfileListFields(_0x26f65a){return{'env':_0x26f65a,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a64_0x1866(_0x54130a,_0x385dbe){_0x54130a=_0x54130a-0x124;const _0x570b91=a64_0x570b();let _0x1866b0=_0x570b91[_0x54130a];return _0x1866b0;}const a64_0x202acf=a64_0x1866;(function(_0x10f15b,_0x10734a){const _0x7bd426=a64_0x1866,_0x1109b2=_0x10f15b();while(!![]){try{const _0x8b78fb=-parseInt(_0x7bd426(0x12c))/0x1+parseInt(_0x7bd426(0x12d))/0x2+-parseInt(_0x7bd426(0x12a))/0x3+-parseInt(_0x7bd426(0x126))/0x4+-parseInt(_0x7bd426(0x124))/0x5+-parseInt(_0x7bd426(0x129))/0x6*(-parseInt(_0x7bd426(0x128))/0x7)+parseInt(_0x7bd426(0x125))/0x8*(parseInt(_0x7bd426(0x12b))/0x9);if(_0x8b78fb===_0x10734a)break;else _0x1109b2['push'](_0x1109b2['shift']());}catch(_0x578eff){_0x1109b2['push'](_0x1109b2['shift']());}}}(a64_0x570b,0x3a508));export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a64_0x202acf(0x127)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];function a64_0x570b(){const _0x554a29=['10612269trYBLF','8557oMgWuz','420578wrbLPz','2335415fLYOsf','8pQAQsU','1857248becqQP','UNPUBLISH','179837hoeRbV','18gAmZmj','863085ZRflWP'];a64_0x570b=function(){return _0x554a29;};return a64_0x570b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a65_0x4c9ec6=a65_0x5641;function a65_0x5641(_0x19906d,_0x105809){_0x19906d=_0x19906d-0x9f;const _0x2ebc06=a65_0x2ebc();let _0x5641a0=_0x2ebc06[_0x19906d];return _0x5641a0;}function a65_0x2ebc(){const _0x25273d=['308497cxCgPn','90XuQaNy','12112Peswfo','160690eKLaIg','client-ak','547362zUVJjo','66198kWlXCt','635400dZmnWr','ClientAk','132477LSpgBg','24uYCILq','2ehkydF','32vfNXvE'];a65_0x2ebc=function(){return _0x25273d;};return a65_0x2ebc();}(function(_0x6fcb89,_0x3d702d){const _0x2e9b0d=a65_0x5641,_0x591ed5=_0x6fcb89();while(!![]){try{const _0x44b378=parseInt(_0x2e9b0d(0xa3))/0x1*(parseInt(_0x2e9b0d(0xa5))/0x2)+parseInt(_0x2e9b0d(0xa4))/0x3*(parseInt(_0x2e9b0d(0xa9))/0x4)+-parseInt(_0x2e9b0d(0xa1))/0x5+parseInt(_0x2e9b0d(0x9f))/0x6+-parseInt(_0x2e9b0d(0xa7))/0x7*(parseInt(_0x2e9b0d(0xa6))/0x8)+parseInt(_0x2e9b0d(0xa8))/0x9*(parseInt(_0x2e9b0d(0xaa))/0xa)+parseInt(_0x2e9b0d(0xa0))/0xb;if(_0x44b378===_0x3d702d)break;else _0x591ed5['push'](_0x591ed5['shift']());}catch(_0x1da8eb){_0x591ed5['push'](_0x591ed5['shift']());}}}(a65_0x2ebc,0x1b2a8));export const AUTH_MODE={'ClientAk':a65_0x4c9ec6(0xab)};export function isAuthMode(_0x3ab77a){const _0x26b65e=a65_0x4c9ec6;return _0x3ab77a===AUTH_MODE[_0x26b65e(0xa2)];}
|