@lovrabet/lovrabet-cli 2.1.19-beta.1 → 2.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +2 -2
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.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(_0x45f207,_0x357b73){const _0x245a47=a51_0x596c,_0x3d33e1=_0x45f207();while(!![]){try{const _0x1a2331=-parseInt(_0x245a47(0x1f3))/0x1+-parseInt(_0x245a47(0x1bd))/0x2*(parseInt(_0x245a47(0x1f5))/0x3)+-parseInt(_0x245a47(0x1e8))/0x4+-parseInt(_0x245a47(0x1bf))/0x5*(parseInt(_0x245a47(0x1d6))/0x6)+parseInt(_0x245a47(0x1d8))/0x7*(-parseInt(_0x245a47(0x1ee))/0x8)+-parseInt(_0x245a47(0x1db))/0x9*(-parseInt(_0x245a47(0x1d5))/0xa)+parseInt(_0x245a47(0x1da))/0xb;if(_0x1a2331===_0x357b73)break;else _0x3d33e1['push'](_0x3d33e1['shift']());}catch(_0x1a559a){_0x3d33e1['push'](_0x3d33e1['shift']());}}}(a51_0x1d39,0x5e97a));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';function a51_0x1d39(){const _0x22129b=['339lUiYCN','input','3282wYAUEy','confirmWarnings','3693170RLfyrL','confirm-warnings','valid','Submitted\x20company\x20Skill\x20','accessKey','validation','bool','PRIVATE','authRequired','\x20Skill\x20','unknown','dir','skillCode','Created\x20personal\x20Skill\x20','../../skills/runtime-skill-sync.js','submitted','resolvedSlug','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','NAMESPACE_ONLY','/publish/validate','Updated\x20personal\x20Skill\x20','files','20SKJiZR','6RHVmBb','existing','74711YgsUbb','personal','32135928HKQDVc','843129iIvRvs','(unknown)','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','scope','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','errors','status','payload','appcode','str','warnings','appCode','frontmatterDisplayName','2969408EhpCtW','remoteForPreflight','\x20version\x20','POST','\x20has\x20scope=\x22','identical','384GhlAaH','resolvedVersion','savedSkill','company','publishInput','542637ABsQvV','/api/cli/v1/skills/'];a51_0x1d39=function(){return _0x22129b;};return a51_0x1d39();}function a51_0x596c(_0x1873e5,_0x1995fa){_0x1873e5=_0x1873e5-0x1bc;const _0x1d3976=a51_0x1d39();let _0x596cbc=_0x1d3976[_0x1873e5];return _0x596cbc;}export async function skillPushDryRun(_0xbec44e){const _0x4ca3f3=a51_0x596c,{getRuntimeSkillByCode:_0x5565be,validateRuntimeSkillPublish:_0x21a0f2}=await import('../../core/api-client.js'),{readPushDirectory:_0x4b5cdc,resolvePushDirectoryIdentity:_0x599a67}=await import(_0x4ca3f3(0x1cd));if(!_0xbec44e[_0x4ca3f3(0x1c3)])throw CliErrors[_0x4ca3f3(0x1c7)]();const _0xc7962a=resolvePushScope(_0xbec44e),_0x24d6b1=validateSkillDirectory(_0xbec44e[_0x4ca3f3(0x1e4)](_0x4ca3f3(0x1ca)));throwIfSkillValidationFailed(_0x24d6b1);const _0x56dd41=_0x599a67(_0x24d6b1['dir'],_0xbec44e['appCode'],remoteFirstMetadataOptions()),_0x36e76c=await _0x5565be(_0xbec44e['appCode'],_0x56dd41[_0x4ca3f3(0x1cb)]);throwIfBuiltinPushTarget(_0x36e76c);if(_0xc7962a===_0x4ca3f3(0x1f1)){const _0x53bb8f=_0x4b5cdc(_0x24d6b1[_0x4ca3f3(0x1ca)],_0xbec44e['appCode'],remoteMissingCompanyReadOptions()),_0x22a3e6=await _0x21a0f2(_0xbec44e[_0x4ca3f3(0x1e6)],_0x53bb8f[_0x4ca3f3(0x1bc)],{'visibility':'NAMESPACE_ONLY'});return{'method':_0x4ca3f3(0x1eb),'url':_0x4ca3f3(0x1f4)+_0xbec44e[_0x4ca3f3(0x1e6)]+_0x4ca3f3(0x1d2),'body':{'skillCode':_0x53bb8f[_0x4ca3f3(0x1cb)],'visibility':_0x4ca3f3(0x1d1),'valid':_0x22a3e6[_0x4ca3f3(0x1c1)],'errors':_0x22a3e6[_0x4ca3f3(0x1e0)],'warnings':_0x22a3e6[_0x4ca3f3(0x1e5)],'resolvedSlug':_0x22a3e6[_0x4ca3f3(0x1cf)],'resolvedVersion':_0x22a3e6[_0x4ca3f3(0x1ef)]},'description':_0x4ca3f3(0x1d0)};}if(_0x36e76c&&_0x36e76c['scope']!=='personal')throw CliErrors['validation'](_0x4ca3f3(0x1dd)+_0x56dd41['skillCode']+'\x20has\x20scope=\x22'+(_0x36e76c[_0x4ca3f3(0x1de)]??'unknown')+'\x22.');const _0x5a2f84=_0x4b5cdc(_0x24d6b1[_0x4ca3f3(0x1ca)],_0xbec44e[_0x4ca3f3(0x1e6)],_0x36e76c?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions()),_0x4a70e9=await _0x21a0f2(_0xbec44e[_0x4ca3f3(0x1e6)],_0x5a2f84[_0x4ca3f3(0x1bc)],{'visibility':_0x4ca3f3(0x1c6)});return{'method':_0x4ca3f3(0x1eb),'url':_0x4ca3f3(0x1f4)+_0xbec44e[_0x4ca3f3(0x1e6)]+'/publish/validate','body':{'skillCode':_0x5a2f84[_0x4ca3f3(0x1cb)],'visibility':_0x4ca3f3(0x1c6),'valid':_0x4a70e9[_0x4ca3f3(0x1c1)],'errors':_0x4a70e9[_0x4ca3f3(0x1e0)],'warnings':_0x4a70e9['warnings'],'resolvedSlug':_0x4a70e9[_0x4ca3f3(0x1cf)],'resolvedVersion':_0x4a70e9[_0x4ca3f3(0x1ef)]},'description':'Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.'};}export async function skillPushExecute(_0x51289a){const _0x32342f=a51_0x596c,{createPersonalRuntimeSkill:_0x1a3b29,downloadRuntimeSkillPackage:_0x5e9afd,getRuntimeSkillByCode:_0x38e876,publishCompanyRuntimeSkill:_0x3a3135,updatePersonalRuntimeSkill:_0x53a1b2,validateRuntimeSkillPublish:_0x3229c3}=await import('../../core/api-client.js'),{verifyRuntimeSkillPackage:_0x72a005,verifyRuntimeSkillBundle:_0x34caea,readPushDirectory:_0x5c92f5,refreshPushDirectoryMetadataFromRemote:_0x4d3b06,recordPushedRuntimeSkill:_0x4d7842,resolvePushDirectoryIdentity:_0x1bbb44}=await import('../../skills/runtime-skill-sync.js');if(!_0x51289a[_0x32342f(0x1c3)])throw CliErrors[_0x32342f(0x1c7)]();const _0x58c961=resolvePushScope(_0x51289a),_0x44fe91=_0x51289a['bool'](_0x32342f(0x1c0))||_0x51289a[_0x32342f(0x1c5)](_0x32342f(0x1be)),_0x1fa6ab=validateSkillDirectory(_0x51289a['str']('dir'));throwIfSkillValidationFailed(_0x1fa6ab);const _0x85a949=_0x1fa6ab['dir'];let _0x539305;if(_0x58c961==='company'){const _0x5b617a=_0x1bbb44(_0x85a949,_0x51289a['appCode'],remoteFirstMetadataOptions()),_0x4ce44f=await _0x38e876(_0x51289a['appCode'],_0x5b617a['skillCode']);throwIfBuiltinPushTarget(_0x4ce44f);if(_0x4ce44f)_0x4d3b06(_0x85a949,_0x4ce44f,_0x51289a[_0x32342f(0x1e6)]);const _0x2d2313=_0x5c92f5(_0x85a949,_0x51289a['appCode'],_0x4ce44f?{'targetScope':_0x32342f(0x1f1),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0x539305={'scope':_0x32342f(0x1f1),'payload':_0x2d2313,'publishInput':_0x2d2313[_0x32342f(0x1bc)],'remoteForPreflight':_0x4ce44f,'warnings':[]};}else{const _0x15b73b=_0x51289a[_0x32342f(0x1e4)](_0x32342f(0x1e3))['trim'](),_0x2f3869=Boolean(_0x15b73b),_0x4652a4=allowRetargetArgs(_0x2f3869),_0x2ed77a=_0x1bbb44(_0x85a949,_0x51289a[_0x32342f(0x1e6)],{...remoteFirstMetadataOptions(),..._0x4652a4[0x0]}),_0x1f7a5a=await _0x38e876(_0x51289a[_0x32342f(0x1e6)],_0x2ed77a[_0x32342f(0x1cb)]);throwIfBuiltinPushTarget(_0x1f7a5a);if(_0x1f7a5a){if(_0x1f7a5a[_0x32342f(0x1de)]!==_0x32342f(0x1d9)){if(_0x2f3869)throw CliErrors[_0x32342f(0x1c4)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x2ed77a[_0x32342f(0x1cb)]+_0x32342f(0x1ec)+(_0x1f7a5a[_0x32342f(0x1de)]??_0x32342f(0x1c9))+'\x22.');_0x4d3b06(_0x85a949,_0x1f7a5a,_0x51289a['appCode']);}else!_0x2f3869&&_0x4d3b06(_0x85a949,_0x1f7a5a,_0x51289a[_0x32342f(0x1e6)]);}const _0x46a6b7=_0x5c92f5(_0x85a949,_0x51289a['appCode'],_0x1f7a5a?remotePersonalReadOptions(_0x2f3869,_0x4652a4[0x0]):remoteMissingPersonalReadOptions(_0x4652a4[0x0])),_0x14377c=_0x1f7a5a?.['scope']===_0x32342f(0x1d9)&&_0x1f7a5a['skillCode']===_0x46a6b7[_0x32342f(0x1cb)]?_0x1f7a5a:undefined,_0x48eead=_0x2f3869&&_0x14377c?withRetargetExistingMetadata(_0x46a6b7[_0x32342f(0x1bc)],_0x14377c,{'preferInputSkillName':Boolean(_0x46a6b7[_0x32342f(0x1e7)])}):_0x46a6b7['input'],_0x562dc1=_0x2f3869?buildRetargetWarning(_0x2ed77a['metadata'],_0x51289a['appCode']):[];_0x539305={'scope':_0x32342f(0x1d9),'payload':_0x46a6b7,'publishInput':_0x48eead,'remoteForPreflight':_0x14377c,'existing':_0x14377c,'warnings':[..._0x1fa6ab[_0x32342f(0x1e5)],..._0x562dc1]};}const _0x389d7e=await runRemoteContentPreflight({'scope':_0x539305[_0x32342f(0x1de)],'remote':_0x539305[_0x32342f(0x1e9)],'publishInput':_0x539305['publishInput'],'skillCode':_0x539305[_0x32342f(0x1e2)][_0x32342f(0x1cb)],'appCode':_0x51289a[_0x32342f(0x1e6)],'downloadRuntimeSkillPackage':_0x5e9afd,'verifyRuntimeSkillBundle':_0x34caea});if(_0x389d7e[_0x32342f(0x1e1)]===_0x32342f(0x1ed))return _0x539305['scope']===_0x32342f(0x1f1)?_0x4d7842(_0x85a949,_0x389d7e[_0x32342f(0x1f0)],_0x51289a[_0x32342f(0x1e6)],{'scope':_0x32342f(0x1f1)}):_0x4d7842(_0x85a949,_0x389d7e[_0x32342f(0x1f0)],_0x51289a[_0x32342f(0x1e6)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x389d7e[_0x32342f(0x1f0)]),'scope':_0x539305[_0x32342f(0x1de)],..._0x539305[_0x32342f(0x1de)]==='personal'?{'warnings':_0x539305[_0x32342f(0x1e5)]}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0x539305[_0x32342f(0x1de)])+_0x32342f(0x1c8)+_0x539305['payload'][_0x32342f(0x1cb)]+_0x32342f(0x1df)};if(_0x539305[_0x32342f(0x1de)]===_0x32342f(0x1f1)){const _0x5eaef7=await _0x3229c3(_0x51289a[_0x32342f(0x1e6)],_0x539305[_0x32342f(0x1f2)],{'visibility':_0x32342f(0x1d1)});throwIfPublishValidationFailed(_0x32342f(0x1f1),_0x539305[_0x32342f(0x1e2)][_0x32342f(0x1cb)],_0x5eaef7),throwIfUnconfirmedPublishWarnings(_0x32342f(0x1f1),_0x539305[_0x32342f(0x1e2)]['skillCode'],_0x5eaef7[_0x32342f(0x1e5)],_0x44fe91);const _0x1348ef=await _0x3a3135(_0x51289a[_0x32342f(0x1e6)],_0x539305[_0x32342f(0x1f2)],{'confirmWarnings':_0x44fe91});return _0x4d7842(_0x85a949,{..._0x1348ef,'files':_0x539305['publishInput'][_0x32342f(0x1d4)]},_0x51289a[_0x32342f(0x1e6)],{'scope':'company'}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x1348ef),'scope':'company','reviewState':_0x32342f(0x1ce),'submittedForReview':!![],'validation':{'warnings':_0x5eaef7['warnings']}},'message':_0x32342f(0x1c2)+_0x539305[_0x32342f(0x1e2)]['skillCode']+_0x32342f(0x1ea)+(_0x1348ef['version']??_0x32342f(0x1dc))+'\x20for\x20review'};}const _0x312b41=await _0x3229c3(_0x51289a[_0x32342f(0x1e6)],_0x539305[_0x32342f(0x1f2)],{'visibility':_0x32342f(0x1c6)});throwIfPublishValidationFailed(_0x32342f(0x1d9),_0x539305[_0x32342f(0x1e2)]['skillCode'],_0x312b41),throwIfUnconfirmedPublishWarnings('personal',_0x539305[_0x32342f(0x1e2)][_0x32342f(0x1cb)],_0x312b41[_0x32342f(0x1e5)],_0x44fe91);const _0x5e9d6e={'confirmWarnings':_0x44fe91},_0x4cc1a6=_0x539305['existing']?await _0x53a1b2(_0x539305[_0x32342f(0x1e2)]['skillCode'],_0x51289a[_0x32342f(0x1e6)],_0x539305[_0x32342f(0x1f2)],_0x5e9d6e):await _0x1a3b29(_0x51289a[_0x32342f(0x1e6)],_0x539305[_0x32342f(0x1f2)],_0x5e9d6e);let _0x1fa4c5=_0x4cc1a6;if(isMultiFileManifest(_0x539305[_0x32342f(0x1f2)]['files'])){const _0x1c9764=await _0x5e9afd(_0x32342f(0x1d9),_0x4cc1a6[_0x32342f(0x1cb)]||_0x539305[_0x32342f(0x1e2)][_0x32342f(0x1cb)],_0x51289a[_0x32342f(0x1e6)]);_0x34caea(_0x539305[_0x32342f(0x1f2)]['files'],_0x1c9764),_0x1fa4c5={..._0x4cc1a6,'files':_0x539305[_0x32342f(0x1f2)]['files']};}else{if(isPackageBackedManifest(_0x4cc1a6['files'])){const _0x1c6e46=await _0x5e9afd(_0x32342f(0x1d9),_0x4cc1a6[_0x32342f(0x1cb)]||_0x539305[_0x32342f(0x1e2)][_0x32342f(0x1cb)],_0x51289a[_0x32342f(0x1e6)]);_0x72a005(_0x4cc1a6[_0x32342f(0x1d4)],_0x1c6e46);}}return _0x4d7842(_0x85a949,_0x1fa4c5,_0x51289a[_0x32342f(0x1e6)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x4cc1a6),'warnings':_0x539305[_0x32342f(0x1e5)],'validation':{'warnings':_0x312b41['warnings']}},'message':_0x539305[_0x32342f(0x1d7)]?_0x32342f(0x1d3)+_0x539305[_0x32342f(0x1e2)][_0x32342f(0x1cb)]:_0x32342f(0x1cc)+_0x539305[_0x32342f(0x1e2)]['skillCode']};}function scopeLabel(_0x32c409){const _0x5e7e05=a51_0x596c;return _0x32c409===_0x5e7e05(0x1f1)?'Company':'Personal';}
|
|
1
|
+
(function(_0x3dc188,_0x91a00f){const _0x2b71cf=a51_0x2186,_0x4adc6b=_0x3dc188();while(!![]){try{const _0x3eeab3=-parseInt(_0x2b71cf(0x181))/0x1+-parseInt(_0x2b71cf(0x161))/0x2*(-parseInt(_0x2b71cf(0x14c))/0x3)+parseInt(_0x2b71cf(0x15b))/0x4*(-parseInt(_0x2b71cf(0x171))/0x5)+-parseInt(_0x2b71cf(0x17b))/0x6*(parseInt(_0x2b71cf(0x183))/0x7)+-parseInt(_0x2b71cf(0x166))/0x8*(-parseInt(_0x2b71cf(0x159))/0x9)+-parseInt(_0x2b71cf(0x180))/0xa+-parseInt(_0x2b71cf(0x172))/0xb*(-parseInt(_0x2b71cf(0x150))/0xc);if(_0x3eeab3===_0x91a00f)break;else _0x4adc6b['push'](_0x4adc6b['shift']());}catch(_0x2f8eec){_0x4adc6b['push'](_0x4adc6b['shift']());}}}(a51_0x3f53,0x870b4));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';function a51_0x2186(_0x179c84,_0x270b58){_0x179c84=_0x179c84-0x14a;const _0x3f5347=a51_0x3f53();let _0x218623=_0x3f5347[_0x179c84];return _0x218623;}import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';function a51_0x3f53(){const _0x40df6d=['trim','4679760kXzgho','558178DHSxHq','status','7343QQbiCp','POST','/api/cli/v1/skills/','resolvedVersion','validation','version','110055hSlDox','bool','files','Updated\x20personal\x20Skill\x20','9732fPnkxP','Created\x20personal\x20Skill\x20','(unknown)','warnings','unknown','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','confirm-warnings','metadata','../../core/api-client.js','59283pwaLZX','identical','4LmbiWk','confirmWarnings','dir','scope','\x20Skill\x20','PRIVATE','46krDkYz','company','payload','../../skills/runtime-skill-sync.js','NAMESPACE_ONLY','1320hYdfty','Company','authRequired','resolvedSlug','savedSkill','str','frontmatterDisplayName','/publish/validate','existing','publishInput','\x20for\x20review','169955cVkMxy','2497vRYaup','personal','valid','input','accessKey','appCode','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','skillCode','\x20version\x20','2868zFDtip','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','appcode','\x20has\x20scope=\x22'];a51_0x3f53=function(){return _0x40df6d;};return a51_0x3f53();}import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0xd0d25){const _0x41bce0=a51_0x2186,{getRuntimeSkillByCode:_0x3ee327,validateRuntimeSkillPublish:_0x2d0961}=await import('../../core/api-client.js'),{readPushDirectory:_0x5e4a2a,resolvePushDirectoryIdentity:_0x4889ac}=await import(_0x41bce0(0x164));if(!_0xd0d25['accessKey'])throw CliErrors[_0x41bce0(0x168)]();const _0x43bfc0=resolvePushScope(_0xd0d25),_0x57a2e6=validateSkillDirectory(_0xd0d25['str'](_0x41bce0(0x15d)));throwIfSkillValidationFailed(_0x57a2e6);const _0x1486c1=_0x4889ac(_0x57a2e6['dir'],_0xd0d25[_0x41bce0(0x177)],remoteFirstMetadataOptions()),_0x2414c4=await _0x3ee327(_0xd0d25[_0x41bce0(0x177)],_0x1486c1[_0x41bce0(0x179)]);throwIfBuiltinPushTarget(_0x2414c4);if(_0x43bfc0===_0x41bce0(0x162)){const _0x4d7696=_0x5e4a2a(_0x57a2e6[_0x41bce0(0x15d)],_0xd0d25[_0x41bce0(0x177)],remoteMissingCompanyReadOptions()),_0x80d691=await _0x2d0961(_0xd0d25[_0x41bce0(0x177)],_0x4d7696[_0x41bce0(0x175)],{'visibility':_0x41bce0(0x165)});return{'method':_0x41bce0(0x184),'url':'/api/cli/v1/skills/'+_0xd0d25['appCode']+_0x41bce0(0x16d),'body':{'skillCode':_0x4d7696[_0x41bce0(0x179)],'visibility':'NAMESPACE_ONLY','valid':_0x80d691[_0x41bce0(0x174)],'errors':_0x80d691['errors'],'warnings':_0x80d691[_0x41bce0(0x153)],'resolvedSlug':_0x80d691[_0x41bce0(0x169)],'resolvedVersion':_0x80d691[_0x41bce0(0x186)]},'description':'Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.'};}if(_0x2414c4&&_0x2414c4[_0x41bce0(0x15e)]!==_0x41bce0(0x173))throw CliErrors[_0x41bce0(0x14a)](_0x41bce0(0x17c)+_0x1486c1[_0x41bce0(0x179)]+_0x41bce0(0x17e)+(_0x2414c4['scope']??_0x41bce0(0x154))+'\x22.');const _0x36a1bf=_0x5e4a2a(_0x57a2e6[_0x41bce0(0x15d)],_0xd0d25['appCode'],_0x2414c4?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions()),_0x44a495=await _0x2d0961(_0xd0d25['appCode'],_0x36a1bf[_0x41bce0(0x175)],{'visibility':_0x41bce0(0x160)});return{'method':_0x41bce0(0x184),'url':_0x41bce0(0x185)+_0xd0d25[_0x41bce0(0x177)]+'/publish/validate','body':{'skillCode':_0x36a1bf[_0x41bce0(0x179)],'visibility':'PRIVATE','valid':_0x44a495['valid'],'errors':_0x44a495['errors'],'warnings':_0x44a495[_0x41bce0(0x153)],'resolvedSlug':_0x44a495[_0x41bce0(0x169)],'resolvedVersion':_0x44a495[_0x41bce0(0x186)]},'description':_0x41bce0(0x155)};}export async function skillPushExecute(_0x15b94b){const _0x31e161=a51_0x2186,{createPersonalRuntimeSkill:_0x581075,downloadRuntimeSkillPackage:_0x32876b,getRuntimeSkillByCode:_0x13c61e,publishCompanyRuntimeSkill:_0x4d940b,updatePersonalRuntimeSkill:_0x3baeb7,validateRuntimeSkillPublish:_0x4a3624}=await import(_0x31e161(0x158)),{verifyRuntimeSkillPackage:_0x303a5f,verifyRuntimeSkillBundle:_0x243f47,readPushDirectory:_0x10d4b9,refreshPushDirectoryMetadataFromRemote:_0x2545b1,recordPushedRuntimeSkill:_0x45feec,resolvePushDirectoryIdentity:_0x345cf2}=await import(_0x31e161(0x164));if(!_0x15b94b[_0x31e161(0x176)])throw CliErrors[_0x31e161(0x168)]();const _0x1e4fb1=resolvePushScope(_0x15b94b),_0x1b549f=_0x15b94b[_0x31e161(0x14d)](_0x31e161(0x156))||_0x15b94b[_0x31e161(0x14d)](_0x31e161(0x15c)),_0x2f23b1=validateSkillDirectory(_0x15b94b[_0x31e161(0x16b)](_0x31e161(0x15d)));throwIfSkillValidationFailed(_0x2f23b1);const _0xe1ae9b=_0x2f23b1[_0x31e161(0x15d)];let _0x286a08;if(_0x1e4fb1===_0x31e161(0x162)){const _0x3c8912=_0x345cf2(_0xe1ae9b,_0x15b94b[_0x31e161(0x177)],remoteFirstMetadataOptions()),_0x252475=await _0x13c61e(_0x15b94b[_0x31e161(0x177)],_0x3c8912[_0x31e161(0x179)]);throwIfBuiltinPushTarget(_0x252475);if(_0x252475)_0x2545b1(_0xe1ae9b,_0x252475,_0x15b94b['appCode']);const _0x5d69bd=_0x10d4b9(_0xe1ae9b,_0x15b94b['appCode'],_0x252475?{'targetScope':_0x31e161(0x162),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0x286a08={'scope':_0x31e161(0x162),'payload':_0x5d69bd,'publishInput':_0x5d69bd[_0x31e161(0x175)],'remoteForPreflight':_0x252475,'warnings':[]};}else{const _0x5a8435=_0x15b94b['str'](_0x31e161(0x17d))[_0x31e161(0x17f)](),_0x2c47da=Boolean(_0x5a8435),_0x24a9a7=allowRetargetArgs(_0x2c47da),_0x3af714=_0x345cf2(_0xe1ae9b,_0x15b94b['appCode'],{...remoteFirstMetadataOptions(),..._0x24a9a7[0x0]}),_0x5c409d=await _0x13c61e(_0x15b94b[_0x31e161(0x177)],_0x3af714[_0x31e161(0x179)]);throwIfBuiltinPushTarget(_0x5c409d);if(_0x5c409d){if(_0x5c409d[_0x31e161(0x15e)]!==_0x31e161(0x173)){if(_0x2c47da)throw CliErrors[_0x31e161(0x14a)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x3af714[_0x31e161(0x179)]+_0x31e161(0x17e)+(_0x5c409d[_0x31e161(0x15e)]??'unknown')+'\x22.');_0x2545b1(_0xe1ae9b,_0x5c409d,_0x15b94b['appCode']);}else!_0x2c47da&&_0x2545b1(_0xe1ae9b,_0x5c409d,_0x15b94b[_0x31e161(0x177)]);}const _0x18c3c0=_0x10d4b9(_0xe1ae9b,_0x15b94b[_0x31e161(0x177)],_0x5c409d?remotePersonalReadOptions(_0x2c47da,_0x24a9a7[0x0]):remoteMissingPersonalReadOptions(_0x24a9a7[0x0])),_0x2f5f10=_0x5c409d?.[_0x31e161(0x15e)]==='personal'&&_0x5c409d[_0x31e161(0x179)]===_0x18c3c0[_0x31e161(0x179)]?_0x5c409d:undefined,_0x237d07=_0x2c47da&&_0x2f5f10?withRetargetExistingMetadata(_0x18c3c0['input'],_0x2f5f10,{'preferInputSkillName':Boolean(_0x18c3c0[_0x31e161(0x16c)])}):_0x18c3c0[_0x31e161(0x175)],_0x34104b=_0x2c47da?buildRetargetWarning(_0x3af714[_0x31e161(0x157)],_0x15b94b[_0x31e161(0x177)]):[];_0x286a08={'scope':_0x31e161(0x173),'payload':_0x18c3c0,'publishInput':_0x237d07,'remoteForPreflight':_0x2f5f10,'existing':_0x2f5f10,'warnings':[..._0x2f23b1[_0x31e161(0x153)],..._0x34104b]};}const _0x3adf47=await runRemoteContentPreflight({'scope':_0x286a08[_0x31e161(0x15e)],'remote':_0x286a08['remoteForPreflight'],'publishInput':_0x286a08[_0x31e161(0x16f)],'skillCode':_0x286a08['payload'][_0x31e161(0x179)],'appCode':_0x15b94b[_0x31e161(0x177)],'downloadRuntimeSkillPackage':_0x32876b,'verifyRuntimeSkillBundle':_0x243f47});if(_0x3adf47[_0x31e161(0x182)]===_0x31e161(0x15a))return _0x286a08[_0x31e161(0x15e)]===_0x31e161(0x162)?_0x45feec(_0xe1ae9b,_0x3adf47[_0x31e161(0x16a)],_0x15b94b[_0x31e161(0x177)],{'scope':_0x31e161(0x162)}):_0x45feec(_0xe1ae9b,_0x3adf47[_0x31e161(0x16a)],_0x15b94b[_0x31e161(0x177)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x3adf47[_0x31e161(0x16a)]),'scope':_0x286a08[_0x31e161(0x15e)],..._0x286a08[_0x31e161(0x15e)]===_0x31e161(0x173)?{'warnings':_0x286a08[_0x31e161(0x153)]}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0x286a08['scope'])+_0x31e161(0x15f)+_0x286a08['payload'][_0x31e161(0x179)]+_0x31e161(0x178)};if(_0x286a08[_0x31e161(0x15e)]==='company'){const _0x35fd66=await _0x4a3624(_0x15b94b[_0x31e161(0x177)],_0x286a08[_0x31e161(0x16f)],{'visibility':_0x31e161(0x165)});throwIfPublishValidationFailed('company',_0x286a08[_0x31e161(0x163)][_0x31e161(0x179)],_0x35fd66),throwIfUnconfirmedPublishWarnings(_0x31e161(0x162),_0x286a08[_0x31e161(0x163)][_0x31e161(0x179)],_0x35fd66['warnings'],_0x1b549f);const _0x466506=await _0x4d940b(_0x15b94b[_0x31e161(0x177)],_0x286a08[_0x31e161(0x16f)],{'confirmWarnings':_0x1b549f});return _0x45feec(_0xe1ae9b,{..._0x466506,'files':_0x286a08[_0x31e161(0x16f)][_0x31e161(0x14e)]},_0x15b94b[_0x31e161(0x177)],{'scope':_0x31e161(0x162)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x466506),'scope':_0x31e161(0x162),'reviewState':'submitted','submittedForReview':!![],'validation':{'warnings':_0x35fd66[_0x31e161(0x153)]}},'message':'Submitted\x20company\x20Skill\x20'+_0x286a08['payload'][_0x31e161(0x179)]+_0x31e161(0x17a)+(_0x466506[_0x31e161(0x14b)]??_0x31e161(0x152))+_0x31e161(0x170)};}const _0x44e17d=await _0x4a3624(_0x15b94b[_0x31e161(0x177)],_0x286a08[_0x31e161(0x16f)],{'visibility':_0x31e161(0x160)});throwIfPublishValidationFailed(_0x31e161(0x173),_0x286a08[_0x31e161(0x163)][_0x31e161(0x179)],_0x44e17d),throwIfUnconfirmedPublishWarnings(_0x31e161(0x173),_0x286a08[_0x31e161(0x163)][_0x31e161(0x179)],_0x44e17d[_0x31e161(0x153)],_0x1b549f);const _0x35c0f2={'confirmWarnings':_0x1b549f},_0x1ee422=_0x286a08[_0x31e161(0x16e)]?await _0x3baeb7(_0x286a08[_0x31e161(0x163)]['skillCode'],_0x15b94b[_0x31e161(0x177)],_0x286a08[_0x31e161(0x16f)],_0x35c0f2):await _0x581075(_0x15b94b[_0x31e161(0x177)],_0x286a08['publishInput'],_0x35c0f2);let _0x2a8838=_0x1ee422;if(isMultiFileManifest(_0x286a08[_0x31e161(0x16f)]['files'])){const _0xd2a254=await _0x32876b(_0x31e161(0x173),_0x1ee422[_0x31e161(0x179)]||_0x286a08[_0x31e161(0x163)][_0x31e161(0x179)],_0x15b94b['appCode']);_0x243f47(_0x286a08[_0x31e161(0x16f)][_0x31e161(0x14e)],_0xd2a254),_0x2a8838={..._0x1ee422,'files':_0x286a08[_0x31e161(0x16f)][_0x31e161(0x14e)]};}else{if(isPackageBackedManifest(_0x1ee422['files'])){const _0x4064dc=await _0x32876b(_0x31e161(0x173),_0x1ee422[_0x31e161(0x179)]||_0x286a08[_0x31e161(0x163)][_0x31e161(0x179)],_0x15b94b[_0x31e161(0x177)]);_0x303a5f(_0x1ee422[_0x31e161(0x14e)],_0x4064dc);}}return _0x45feec(_0xe1ae9b,_0x2a8838,_0x15b94b[_0x31e161(0x177)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x1ee422),'warnings':_0x286a08[_0x31e161(0x153)],'validation':{'warnings':_0x44e17d[_0x31e161(0x153)]}},'message':_0x286a08[_0x31e161(0x16e)]?_0x31e161(0x14f)+_0x286a08[_0x31e161(0x163)][_0x31e161(0x179)]:_0x31e161(0x151)+_0x286a08['payload']['skillCode']};}function scopeLabel(_0x44550a){const _0x5305b6=a51_0x2186;return _0x44550a===_0x5305b6(0x162)?_0x5305b6(0x167):'Personal';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x44d07c,_0x200329){const _0x44932f=a52_0x1ed3,_0x17124f=_0x44d07c();while(!![]){try{const _0x5dd057=parseInt(_0x44932f(0x1ef))/0x1+-parseInt(_0x44932f(0x1db))/0x2*(parseInt(_0x44932f(0x1ee))/0x3)+-parseInt(_0x44932f(0x205))/0x4*(parseInt(_0x44932f(0x1fa))/0x5)+-parseInt(_0x44932f(0x1fc))/0x6+-parseInt(_0x44932f(0x1de))/0x7+-parseInt(_0x44932f(0x1eb))/0x8+parseInt(_0x44932f(0x1f9))/0x9*(parseInt(_0x44932f(0x1e3))/0xa);if(_0x5dd057===_0x200329)break;else _0x17124f['push'](_0x17124f['shift']());}catch(_0x809ac7){_0x17124f['push'](_0x17124f['shift']());}}}(a52_0x4510,0x536b2));import{CliErrors}from'../../errors.js';function a52_0x1ed3(_0x27fd5c,_0x14b7a3){_0x27fd5c=_0x27fd5c-0x1d9;const _0x451029=a52_0x4510();let _0x1ed3ba=_0x451029[_0x27fd5c];return _0x1ed3ba;}export function resolvePushScope(_0x2f1570){const _0x332976=a52_0x1ed3,_0x1e5ebb=_0x2f1570['str'](_0x332976(0x201))||_0x332976(0x1ec);if(_0x1e5ebb===_0x332976(0x1ec)||_0x1e5ebb==='company')return _0x1e5ebb;throw CliErrors['validation'](_0x332976(0x1f8)+_0x1e5ebb+'\x22.');}export function allowRetargetArgs(_0x395bb9){return _0x395bb9?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}function a52_0x4510(){const _0x3fb649=['Local\x20Skill\x20metadata\x20appCode\x20','Warnings:\x20','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','9995274zwaewY','55qfVLBR','\x20after\x20successful\x20push.','3212550AxAxeJ','files','not-applicable','skillCode','SkillHub\x20validation\x20returned\x20invalid.','scope','Builtin\x20Skill\x20','(unknown)','appCode','38812OUDJfM','length','validation','downloadRuntimeSkillPackage','32166UDPbea','Personal','valid','767165IGXIyX','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','Review\x20each\x20warning\x20before\x20continuing.','verifyRuntimeSkillBundle','10vETRTE','\x20Skill\x20push\x20validation\x20failed\x20for\x20','join','builtin','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','lovrabet.skill.json','company','remote','2436144NfawlE','personal','errors','72JWbriv','673359NPWXct','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','version','different','skill-metadata-appcode-retargeted','Company','publishInput'];a52_0x4510=function(){return _0x3fb649;};return a52_0x4510();}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){return{'targetScope':'company',...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x12c57d={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x12c57d};}export function remotePersonalReadOptions(_0x17e7f0,_0x24133e={}){return{'ignoreInvalidMetadata':!![],..._0x17e7f0?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x24133e};}export function throwIfBuiltinPushTarget(_0x2870c4){const _0x3a23cd=a52_0x1ed3;if(_0x2870c4?.[_0x3a23cd(0x201)]!==_0x3a23cd(0x1e6))return;throw CliErrors[_0x3a23cd(0x1d9)](_0x3a23cd(0x202)+(_0x2870c4[_0x3a23cd(0x1ff)]??_0x3a23cd(0x203))+'\x20cannot\x20be\x20pushed.','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.');}export function throwIfPublishValidationFailed(_0x4a9542,_0x12f171,_0x29b8d9){const _0x23ad53=a52_0x1ed3;if(_0x29b8d9[_0x23ad53(0x1ed)]['length']===0x0&&(_0x29b8d9[_0x23ad53(0x1dd)]||_0x29b8d9['warnings'][_0x23ad53(0x206)]>0x0))return;const _0x4f4393=_0x29b8d9[_0x23ad53(0x1ed)][_0x23ad53(0x206)]>0x0?_0x29b8d9['errors'][_0x23ad53(0x1e5)](';\x20'):_0x23ad53(0x200),_0x13888e=_0x4a9542===_0x23ad53(0x1e9)?_0x23ad53(0x1f4):_0x23ad53(0x1dc);throw CliErrors[_0x23ad53(0x1d9)](_0x13888e+_0x23ad53(0x1e4)+_0x12f171+'.',_0x4f4393);}export function throwIfUnconfirmedPublishWarnings(_0x4dfd5a,_0x5418b6,_0x19b4dd,_0x2a5a34){const _0x30e02b=a52_0x1ed3;if(_0x19b4dd[_0x30e02b(0x206)]===0x0||_0x2a5a34)return;const _0x3db005=_0x4dfd5a===_0x30e02b(0x1e9)?_0x30e02b(0x1f4):_0x30e02b(0x1dc);throw CliErrors[_0x30e02b(0x1d9)](_0x3db005+_0x30e02b(0x1f0)+_0x5418b6+'.',[_0x30e02b(0x1e1),_0x30e02b(0x1e7),_0x30e02b(0x1df),_0x30e02b(0x1f7)+_0x19b4dd[_0x30e02b(0x1e5)](';\x20')][_0x30e02b(0x1e5)]('\x20'));}export function buildRetargetWarning(_0xb7a1f8,_0x4e9c03){const _0x22b19c=a52_0x1ed3;if(!_0xb7a1f8?.[_0x22b19c(0x204)]||_0xb7a1f8[_0x22b19c(0x204)]===_0x4e9c03)return[];return[{'level':'warning','ruleId':_0x22b19c(0x1f3),'file':_0x22b19c(0x1e8),'message':_0x22b19c(0x1f6)+_0xb7a1f8[_0x22b19c(0x204)]+_0x22b19c(0x1e0)+_0x4e9c03+_0x22b19c(0x1fb),'suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}export async function runRemoteContentPreflight(_0xf7cc6){const _0x4c4a55=a52_0x1ed3;if(!_0xf7cc6[_0x4c4a55(0x1ea)]||_0xf7cc6['remote']['scope']!==_0xf7cc6['scope']||!_0xf7cc6[_0x4c4a55(0x1f5)][_0x4c4a55(0x1fd)])return{'status':_0x4c4a55(0x1fe)};const _0x945ec7=_0xf7cc6[_0x4c4a55(0x1ea)][_0x4c4a55(0x1ff)]||_0xf7cc6[_0x4c4a55(0x1ff)];if(!_0x945ec7)return{'status':'not-applicable'};const _0x332b5f=await _0xf7cc6[_0x4c4a55(0x1da)](_0xf7cc6['scope'],_0x945ec7,_0xf7cc6[_0x4c4a55(0x204)],_0xf7cc6['remote'][_0x4c4a55(0x1f1)]);try{_0xf7cc6[_0x4c4a55(0x1e2)](_0xf7cc6[_0x4c4a55(0x1f5)][_0x4c4a55(0x1fd)],_0x332b5f);}catch{return{'status':_0x4c4a55(0x1f2)};}return{'status':'identical','savedSkill':{..._0xf7cc6[_0x4c4a55(0x1ea)],'content':_0xf7cc6[_0x4c4a55(0x1f5)]['content'],'files':_0xf7cc6[_0x4c4a55(0x1f5)][_0x4c4a55(0x1fd)]}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x167eb8,_0x25a603){const _0x3d0e35=a53_0x19c1,_0xf5872c=_0x167eb8();while(!![]){try{const _0x3ed60f=parseInt(_0x3d0e35(0x104))/0x1*(parseInt(_0x3d0e35(0x100))/0x2)+parseInt(_0x3d0e35(0x101))/0x3*(parseInt(_0x3d0e35(0x106))/0x4)+-parseInt(_0x3d0e35(0x102))/0x5+-parseInt(_0x3d0e35(0xf4))/0x6+-parseInt(_0x3d0e35(0xfb))/0x7+-parseInt(_0x3d0e35(0xf7))/0x8+-parseInt(_0x3d0e35(0xf6))/0x9*(-parseInt(_0x3d0e35(0x105))/0xa);if(_0x3ed60f===_0x25a603)break;else _0xf5872c['push'](_0xf5872c['shift']());}catch(_0x44bbf0){_0xf5872c['push'](_0xf5872c['shift']());}}}(a53_0x5a61,0x27b5a));function a53_0x5a61(){const _0x32f016=['42NlvUqE','3ZUHbky','1070765AztSHP','lovrabet.skill.json','7499ZqkvYP','4421110IwhSOo','97620NJjeZu','skill-metadata-appcode-retargeted','\x20after\x20successful\x20push.','skillName','description','625026ShOqoZ','appCode','9kexsVc','87400xWKsGa','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','sourceSessionId','tags','924672mhdkUI','version','warning','preferInputSkillName','Local\x20Skill\x20metadata\x20appCode\x20'];a53_0x5a61=function(){return _0x32f016;};return a53_0x5a61();}function a53_0x19c1(_0x516e79,_0x5595e4){_0x516e79=_0x516e79-0xf2;const _0x5a612d=a53_0x5a61();let _0x19c151=_0x5a612d[_0x516e79];return _0x19c151;}export function withRetargetExistingMetadata(_0x1133d0,_0x1977a8,_0x32893c={}){const _0x2f257a=a53_0x19c1,_0x11bdda=_0x32893c[_0x2f257a(0xfe)]?_0x1133d0[_0x2f257a(0xf2)]??_0x1977a8['skillName']:_0x1977a8[_0x2f257a(0xf2)]??_0x1133d0[_0x2f257a(0xf2)];return{..._0x1133d0,'skillName':_0x11bdda,'description':_0x1977a8['description']??_0x1133d0[_0x2f257a(0xf3)],'tags':Array['isArray'](_0x1977a8['tags'])?_0x1977a8['tags']:_0x1133d0[_0x2f257a(0xfa)],'version':_0x1977a8[_0x2f257a(0xfc)]??_0x1133d0['version'],'sourceSessionId':_0x1977a8[_0x2f257a(0xf9)]??_0x1133d0[_0x2f257a(0xf9)]};}export function buildRetargetWarning(_0x5d0e82,_0x110c72){const _0x44b2f1=a53_0x19c1;if(!_0x5d0e82?.[_0x44b2f1(0xf5)]||_0x5d0e82[_0x44b2f1(0xf5)]===_0x110c72)return[];return[{'level':_0x44b2f1(0xfd),'ruleId':_0x44b2f1(0x107),'file':_0x44b2f1(0x103),'message':_0x44b2f1(0xff)+_0x5d0e82['appCode']+'\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20'+_0x110c72+_0x44b2f1(0x108),'suggestion':_0x44b2f1(0xf8)}];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xf2a814,_0x35744f){const _0x22e603=a54_0x6b53,_0x3d9dc0=_0xf2a814();while(!![]){try{const _0x31f3ce=-parseInt(_0x22e603(0x102))/0x1+parseInt(_0x22e603(0x103))/0x2*(-parseInt(_0x22e603(0x106))/0x3)+-parseInt(_0x22e603(0xff))/0x4*(parseInt(_0x22e603(0xfb))/0x5)+parseInt(_0x22e603(0xf6))/0x6+-parseInt(_0x22e603(0xf9))/0x7+parseInt(_0x22e603(0x100))/0x8*(-parseInt(_0x22e603(0xfd))/0x9)+-parseInt(_0x22e603(0xf8))/0xa*(-parseInt(_0x22e603(0xfe))/0xb);if(_0x31f3ce===_0x35744f)break;else _0x3d9dc0['push'](_0x3d9dc0['shift']());}catch(_0x3009a1){_0x3d9dc0['push'](_0x3d9dc0['shift']());}}}(a54_0x5ab5,0x42292));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x3059da){const _0x8e0e9f=a54_0x6b53,_0x48ac8c=_0x3059da[_0x8e0e9f(0xf7)]();if(!_0x48ac8c||_0x48ac8c===_0x8e0e9f(0x107))return[_0x8e0e9f(0xfc),'company'];if(_0x48ac8c===_0x8e0e9f(0xfc)||_0x48ac8c===_0x8e0e9f(0x105))return[_0x48ac8c];throw CliErrors['validation'](_0x8e0e9f(0xfa)+_0x3059da);}function a54_0x5ab5(){const _0x5bcba4=['2824440EroBpN','trim','10580oxaYSq','3419192jDbgCv','Unsupported\x20Skill\x20sync\x20scope:\x20','25pMsbfP','personal','124452rBMrtc','20834RnduLC','257440NQVZMh','216MFcdQR','validation','516864EkspwM','1006244DOQPOj','Unsupported\x20Skill\x20list\x20scope:\x20','company','3JMfsoE','all'];a54_0x5ab5=function(){return _0x5bcba4;};return a54_0x5ab5();}function a54_0x6b53(_0x1b2970,_0x2ba023){_0x1b2970=_0x1b2970-0xf6;const _0x5ab55f=a54_0x5ab5();let _0x6b5396=_0x5ab55f[_0x1b2970];return _0x6b5396;}export function normalizeListScope(_0x276039){const _0x3b27d9=a54_0x6b53,_0x106f51=_0x276039[_0x3b27d9(0xf7)]();if(!_0x106f51)return'all';if(_0x106f51===_0x3b27d9(0xfc)||_0x106f51==='company'||_0x106f51==='all')return _0x106f51;throw CliErrors[_0x3b27d9(0x101)](_0x3b27d9(0x104)+_0x276039);}export function shouldListScope(_0x5e592a,_0x29f401){const _0x133e47=a54_0x6b53;if(_0x5e592a===_0x133e47(0x107))return!![];return _0x5e592a===_0x29f401;}export function listScopeToRuntimeScopes(_0x43ec04){const _0x12384d=a54_0x6b53;if(_0x43ec04===_0x12384d(0x107))return[_0x12384d(0xfc),_0x12384d(0x105)];return[_0x43ec04==='company'?_0x12384d(0x105):_0x43ec04];}export function listScopeToRemoteScope(_0xb5733a){return _0xb5733a;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x79c73f,_0x346956){var _0x39ff60=a55_0x5532,_0x503fac=_0x79c73f();while(!![]){try{var _0xb72556=-parseInt(_0x39ff60(0x1f2))/0x1*(-parseInt(_0x39ff60(0x1eb))/0x2)+-parseInt(_0x39ff60(0x1e6))/0x3*(parseInt(_0x39ff60(0x1ee))/0x4)+parseInt(_0x39ff60(0x1ed))/0x5+parseInt(_0x39ff60(0x1f3))/0x6*(parseInt(_0x39ff60(0x1e9))/0x7)+-parseInt(_0x39ff60(0x1e7))/0x8*(parseInt(_0x39ff60(0x1f5))/0x9)+parseInt(_0x39ff60(0x1f6))/0xa*(-parseInt(_0x39ff60(0x1e3))/0xb)+parseInt(_0x39ff60(0x1ea))/0xc;if(_0xb72556===_0x346956)break;else _0x503fac['push'](_0x503fac['shift']());}catch(_0x5682e7){_0x503fac['push'](_0x503fac['shift']());}}}(a55_0x2a0e,0x64f75));export function summarizeRuntimeSkill(_0x765b99){var _0x1d2200=a55_0x5532;return{'id':_0x765b99['id'],'skillCode':_0x765b99[_0x1d2200(0x1f4)],'skillName':_0x765b99[_0x1d2200(0x1f1)],'scope':_0x765b99['scope'],'version':_0x765b99[_0x1d2200(0x1ec)],'readonly':_0x765b99['readonly']};}function a55_0x5532(_0x32f8e9,_0x36bd5a){_0x32f8e9=_0x32f8e9-0x1e1;var _0x2a0e8c=a55_0x2a0e();var _0x55329f=_0x2a0e8c[_0x32f8e9];return _0x55329f;}function a55_0x2a0e(){var _0x1c93e5=['56630zBcxSc','tags','skillMdPath','cacheDir','treeHash','11kZJyTj','pulledAt','metadataPath','1212645glzhQS','27056TulyoS','appCode','1274805VVBlnd','10901568ZqrKUg','2jLSybd','version','963255nnGNKV','4hKMMyg','scope','dir','skillName','172639mDUmeu','6xnKLle','skillCode','1683BNXFIQ'];a55_0x2a0e=function(){return _0x1c93e5;};return a55_0x2a0e();}export function summarizeLocalRuntimeSkill(_0x484e53){var _0x3a87e2=a55_0x5532;return{'id':_0x484e53['id'],'skillCode':_0x484e53[_0x3a87e2(0x1f4)],'skillName':_0x484e53['skillName'],'scope':_0x484e53[_0x3a87e2(0x1ef)],'appCode':_0x484e53[_0x3a87e2(0x1e8)],'version':_0x484e53[_0x3a87e2(0x1ec)],'status':_0x484e53['status'],'readonly':_0x484e53['readonly'],'tags':_0x484e53[_0x3a87e2(0x1f7)],'dir':_0x484e53[_0x3a87e2(0x1f0)],'cacheDir':_0x484e53[_0x3a87e2(0x1e1)],'skillMdPath':_0x484e53[_0x3a87e2(0x1f8)],'metadataPath':_0x484e53[_0x3a87e2(0x1e5)],'linkedPaths':_0x484e53['linkedPaths'],'contentHash':_0x484e53['contentHash'],'treeHash':_0x484e53[_0x3a87e2(0x1e2)],'pulledAt':_0x484e53[_0x3a87e2(0x1e4)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a56_0x15a6b7=a56_0x335a;(function(_0xebcabc,_0x419790){const _0x1c07df=a56_0x335a,_0x5ec611=_0xebcabc();while(!![]){try{const _0x157b59=parseInt(_0x1c07df(0x1e9))/0x1*(parseInt(_0x1c07df(0x1e0))/0x2)+parseInt(_0x1c07df(0x1ee))/0x3+-parseInt(_0x1c07df(0x1ed))/0x4*(parseInt(_0x1c07df(0x1da))/0x5)+-parseInt(_0x1c07df(0x1f0))/0x6+-parseInt(_0x1c07df(0x1d3))/0x7*(parseInt(_0x1c07df(0x1e4))/0x8)+-parseInt(_0x1c07df(0x1d7))/0x9*(parseInt(_0x1c07df(0x1ea))/0xa)+-parseInt(_0x1c07df(0x1f1))/0xb*(-parseInt(_0x1c07df(0x1f4))/0xc);if(_0x157b59===_0x419790)break;else _0x5ec611['push'](_0x5ec611['shift']());}catch(_0x1117c9){_0x5ec611['push'](_0x5ec611['shift']());}}}(a56_0x57b4,0xecf61));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a56_0x15a6b7(0x1d2),a56_0x15a6b7(0x1ef)];export const DEFAULT_SKILL_TARGET=a56_0x15a6b7(0x1d0);function a56_0x57b4(){const _0x404bd9=['toISOString','Unsupported\x20Skill\x20type:\x20','includes','skillName','86LGVvXH','74090KcVRNs','join','validation','7139612vCgwCb','4158951MxXVay','read','7831632UYTVXP','17314RKSZMb','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','27492vooNyN','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','\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','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','\x20的所有必读规则必须位于\x20SKILL.md\x20或\x20references/\x20内。\x0a\x0a##\x20必读文档\x0a\x0a-\x20[SKILL.md](../SKILL.md)\x0a-\x20[runtime-contract.md](runtime-contract.md)\x0a-\x20[output-contract.md](output-contract.md)\x0a\x0a##\x20主边界\x0a\x0a-\x20不得依赖\x20Skill\x20目录外的仓库文件、绝对路径、file\x20URL\x20或本机专属配置。\x0a-\x20文档中的缓存路径、安装路径、示例路径或排障路径不等于运行时包外依赖;只有明确要求读取、链接或执行包外内容时才属于自包含风险。\x0a-\x20如需承接仓库规范,必须把必要规则内化到本\x20Skill\x20包内的\x20references/\x20文件中。\x0a-\x20type=','.agents/skills','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','write','1816766gWXRKe','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','\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','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','585NgLgJV','Invalid\x20Skill\x20name:\x20','type','5qIGqTy','#\x20Output\x20Contract\x0a\x0a','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','\x0a\x0a##\x20展示规范\x0a\x0a【填写面向运营人员的展示字段、差异摘要、成功/失败状态和人工处理项;最终输出必须按\x20references/output-contract.md\x20的\x20status\x20/\x20mode\x20/\x20summary\x20/\x20errors\x20/\x20nextActions\x20返回,不能把\x20unknown、partial_success、failed\x20或\x20needs_manual_check\x20包装为\x20success。】\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败后的\x20checkpoint、重试条件、人工接管方式和避免重复写入的核对步骤】\x0a','SKILL.md','\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','13678sfXIBI','\x0a\x20\x20created:\x20\x22','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','trim','32EGNgSo'];a56_0x57b4=function(){return _0x404bd9;};return a56_0x57b4();}export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE='references/runtime-contract.md';export const OUTPUT_CONTRACT_FILE='references/output-contract.md';export function validateSkillName(_0xbb636e){const _0x5261b1=a56_0x15a6b7,_0x53ffbd=_0xbb636e[_0x5261b1(0x1e3)]();if(!SKILL_NAME_PATTERN['test'](_0x53ffbd))throw CliErrors[_0x5261b1(0x1ec)](_0x5261b1(0x1d8)+_0xbb636e+_0x5261b1(0x1d6),_0x5261b1(0x1d1));return _0x53ffbd;}function a56_0x335a(_0x497349,_0x51a762){_0x497349=_0x497349-0x1cc;const _0x57b4b7=a56_0x57b4();let _0x335a16=_0x57b4b7[_0x497349];return _0x335a16;}export function normalizeSkillTemplateType(_0x43b5c8){const _0x4e37ad=a56_0x15a6b7,_0x3adb76=(_0x43b5c8||'write')[_0x4e37ad(0x1e3)]()||'write';if(SKILL_TYPES[_0x4e37ad(0x1e7)](_0x3adb76))return _0x3adb76;throw CliErrors[_0x4e37ad(0x1ec)](_0x4e37ad(0x1e6)+_0x43b5c8,'Use\x20one\x20of:\x20'+SKILL_TYPES[_0x4e37ad(0x1eb)](',\x20')+'.');}export function renderSkillTemplate(_0x4e7636){const _0x4db6b6=a56_0x15a6b7,_0x2daab2=validateSkillName(_0x4e7636[_0x4db6b6(0x1e8)]),_0x4a0b5a=normalizeSkillTemplateType(_0x4e7636[_0x4db6b6(0x1d9)]),_0x5129d2=_0x4e7636['timestamp']??new Date()[_0x4db6b6(0x1e5)]();return{'skillName':_0x2daab2,'type':_0x4a0b5a,'files':[{'path':_0x4db6b6(0x1de),'content':renderSkillMd(_0x2daab2,_0x4a0b5a,_0x5129d2)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x2daab2,_0x4a0b5a)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x2daab2,_0x4a0b5a)}]};}function renderSkillMd(_0x1fbb4f,_0x58d857,_0x3a9f67){const _0x54cbf5=a56_0x15a6b7,_0x668f52=typeWorkflow(_0x58d857);return'---\x0aname:\x20'+_0x1fbb4f+_0x54cbf5(0x1ce)+_0x58d857+_0x54cbf5(0x1e1)+_0x3a9f67+_0x54cbf5(0x1f5)+_0x1fbb4f+_0x54cbf5(0x1d5)+_0x668f52+'\x0a\x0a'+businessStateSection(_0x58d857)+_0x54cbf5(0x1dd);}function renderRuntimeContract(_0x3888d2,_0x1a5442){const _0x5de849=a56_0x15a6b7,_0x503f3a=_0x1a5442===_0x5de849(0x1d2)?_0x5de849(0x1d4):'';return'#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。'+_0x3888d2+_0x5de849(0x1cf)+_0x1a5442+'\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'+_0x503f3a+_0x5de849(0x1df);}function renderOutputContract(_0x53bd4c,_0x4c9617){const _0x2ef3fe=a56_0x15a6b7,_0x17f3cd=_0x4c9617===_0x2ef3fe(0x1d2)?_0x2ef3fe(0x1e2):_0x4c9617+_0x2ef3fe(0x1dc);return _0x2ef3fe(0x1db)+_0x53bd4c+_0x2ef3fe(0x1cc)+_0x17f3cd+_0x2ef3fe(0x1f6);}function typeWorkflow(_0x3f0777){const _0x52c2ac=a56_0x15a6b7;if(_0x3f0777===_0x52c2ac(0x1ef))return _0x52c2ac(0x1cd);return _0x52c2ac(0x1f3);}function businessStateSection(_0x5733f6){const _0x3275e5=a56_0x15a6b7;if(_0x5733f6!==_0x3275e5(0x1d2))return'';return _0x3275e5(0x1f2);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a57_0x571337=a57_0xedb8;(function(_0x3cb7f2,_0x355952){const _0x2640a5=a57_0xedb8,_0x4dc685=_0x3cb7f2();while(!![]){try{const _0x11812e=-parseInt(_0x2640a5(0xd9))/0x1*(-parseInt(_0x2640a5(0xd3))/0x2)+-parseInt(_0x2640a5(0xe3))/0x3+-parseInt(_0x2640a5(0xe6))/0x4*(parseInt(_0x2640a5(0xb1))/0x5)+parseInt(_0x2640a5(0xaf))/0x6*(parseInt(_0x2640a5(0xd1))/0x7)+-parseInt(_0x2640a5(0xd4))/0x8+parseInt(_0x2640a5(0x9b))/0x9+parseInt(_0x2640a5(0xbf))/0xa;if(_0x11812e===_0x355952)break;else _0x4dc685['push'](_0x4dc685['shift']());}catch(_0x46f176){_0x4dc685['push'](_0x4dc685['shift']());}}}(a57_0x222e,0xcb4e3));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a57_0x1c58dd}from'yaml';import{CliErrors}from'../../errors.js';function a57_0xedb8(_0x4c51c4,_0x103bd2){_0x4c51c4=_0x4c51c4-0x93;const _0x222e5a=a57_0x222e();let _0xedb83c=_0x222e5a[_0x4c51c4];return _0xedb83c;}import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a57_0x571337(0x97),SUPPORTED_SKILL_TYPES=new Set([a57_0x571337(0xae),a57_0x571337(0xe1)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x1b3d94,_0x3b106b={}){const _0x560056=a57_0x571337,_0x287083=resolveSkillDirectoryRoot(_0x1b3d94),_0x586822=[],_0x4fed02=loadRequiredSkillFile(_0x287083,_0x586822),_0x51ff89=_0x4fed02?parseFrontmatter(_0x4fed02[_0x560056(0xd7)]):{'hasFrontmatter':![]};_0x4fed02&&validateFrontmatter(_0x4fed02[_0x560056(0xbb)],_0x51ff89,_0x586822);validateRuntimeCliReferences(_0x287083,_0x586822);const _0x1699b4=_0x586822[_0x560056(0xc3)](_0x27e97a=>_0x27e97a[_0x560056(0xaa)]===_0x560056(0xcb)),_0x495553=_0x586822[_0x560056(0xc3)](_0x4deeb6=>_0x4deeb6[_0x560056(0xaa)]==='warning');return{'ok':_0x1699b4[_0x560056(0xa1)]===0x0,'dir':_0x287083,'type':_0x51ff89[_0x560056(0xd0)],'errors':_0x1699b4,'warnings':_0x495553};}function resolveSkillDirectoryRoot(_0x1dd1ee){const _0x2e1daf=a57_0x571337,_0x361748=resolve(_0x1dd1ee);if(!existsSync(_0x361748))throw CliErrors[_0x2e1daf(0xc9)](_0x2e1daf(0xb7)+_0x1dd1ee);const _0x329884=lstatSync(_0x361748);if(_0x329884[_0x2e1daf(0xa7)]())return _0x361748;if(_0x329884[_0x2e1daf(0xd6)]()){const _0x316902=realpathSync(_0x361748);if(lstatSync(_0x316902)[_0x2e1daf(0xa7)]())return _0x316902;}throw CliErrors[_0x2e1daf(0xc9)](_0x2e1daf(0xb7)+_0x1dd1ee);}export function throwIfSkillValidationFailed(_0x11481e,_0x3301e5=![]){const _0x4faa65=a57_0x571337;if(_0x11481e['ok'])return;const _0x21788a=_0x11481e[_0x4faa65(0xbd)][_0x4faa65(0xc1)](_0x2fecf7=>{const _0x11c138=_0x4faa65,_0xf3931d=_0x2fecf7['section']?'#'+_0x2fecf7[_0x11c138(0xc0)]:'';return _0x2fecf7['level']['toUpperCase']()+'\x20'+_0x2fecf7[_0x11c138(0xcc)]+'\x20'+_0x2fecf7[_0x11c138(0xa9)]+_0xf3931d+':\x20'+_0x2fecf7['message']+_0x11c138(0x98)+_0x2fecf7[_0x11c138(0xa8)];});throw CliErrors['validation'](_0x4faa65(0xe8)+_0x21788a['join']('\x0a'),'Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.');}function loadRequiredSkillFile(_0x3fc407,_0x171c36){const _0x229b1b=a57_0x571337,_0xe7def7=resolve(_0x3fc407,SKILL_FILE);if(!existsSync(_0xe7def7))return _0x171c36[_0x229b1b(0xe2)](issue('error','structure-complete',SKILL_FILE,_0x229b1b(0xb8),'Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;const _0x47c7da=lstatSync(_0xe7def7);if(_0x47c7da[_0x229b1b(0xd6)]())return _0x171c36[_0x229b1b(0xe2)](issue(_0x229b1b(0xcb),'structure-complete',SKILL_FILE,_0x229b1b(0xeb),_0x229b1b(0xc6))),undefined;if(!_0x47c7da[_0x229b1b(0xc4)]())return _0x171c36[_0x229b1b(0xe2)](issue(_0x229b1b(0xcb),'structure-complete',SKILL_FILE,_0x229b1b(0x9a),_0x229b1b(0xa3))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0xe7def7,_0x229b1b(0xcf))};}function validateFrontmatter(_0x4c28c7,_0x55a86c,_0x10a228){const _0x17717d=a57_0x571337;if(!_0x55a86c[_0x17717d(0xac)]){_0x10a228[_0x17717d(0xe2)](issue(_0x17717d(0xcb),_0x17717d(0xb3),_0x4c28c7,_0x17717d(0xc2),_0x17717d(0xdd)));return;}!_0x55a86c['name']?.[_0x17717d(0xa2)]()&&_0x10a228[_0x17717d(0xe2)](issue(_0x17717d(0xcb),_0x17717d(0xb3),_0x4c28c7,_0x17717d(0xb0),'Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.')),!_0x55a86c[_0x17717d(0xe9)]?.[_0x17717d(0xa2)]()&&_0x10a228[_0x17717d(0xe2)](issue(_0x17717d(0xe5),'display-name-recommended',_0x4c28c7,_0x17717d(0x94),_0x17717d(0xca))),!_0x55a86c['example']?.[_0x17717d(0xa2)]()&&_0x10a228[_0x17717d(0xe2)](issue(_0x17717d(0xe5),_0x17717d(0x99),_0x4c28c7,_0x17717d(0xad),'Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.')),!_0x55a86c[_0x17717d(0xce)]?.[_0x17717d(0xa2)]()&&_0x10a228[_0x17717d(0xe2)](issue('error',_0x17717d(0xea),_0x4c28c7,_0x17717d(0xe0),_0x17717d(0xe7))),_0x55a86c['internal']===!![]&&_0x10a228[_0x17717d(0xe2)](issue('error',_0x17717d(0xdf),_0x4c28c7,'metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.')),_0x55a86c[_0x17717d(0xd0)]?.[_0x17717d(0xa2)]()&&!SUPPORTED_SKILL_TYPES[_0x17717d(0xb5)](_0x55a86c[_0x17717d(0xd0)])&&_0x10a228[_0x17717d(0xe2)](issue(_0x17717d(0xcb),_0x17717d(0xb3),_0x4c28c7,_0x17717d(0xa5),_0x17717d(0xdb)));}function validateRuntimeCliReferences(_0x3c2d1f,_0xb022f7){const _0x30a100=a57_0x571337;for(const _0x572906 of findRabetbaseCliInvocations(_0x3c2d1f)){_0xb022f7[_0x30a100(0xe2)](issue(_0x30a100(0xe5),_0x30a100(0xb2),_0x572906[_0x30a100(0xa9)],_0x30a100(0xa6),_0x30a100(0xbe),'L'+_0x572906[_0x30a100(0x9f)]));}}function findRabetbaseCliInvocations(_0x416568){const _0x2792f7=a57_0x571337;return scanSkillDirectory(_0x416568)[_0x2792f7(0xc3)](_0x84d828=>TEXT_SKILL_FILE_PATTERN[_0x2792f7(0xde)](_0x84d828[_0x2792f7(0xbb)]))[_0x2792f7(0xec)](_0x129012=>{const _0x45f145=_0x2792f7,_0x37f675=fileText(_0x129012);return _0x37f675[_0x45f145(0x93)](/\r?\n/)['map']((_0x35bf9f,_0x59ebce)=>({'file':_0x129012[_0x45f145(0xbb)],'line':_0x59ebce+0x1,'text':_0x35bf9f}))['filter'](({text:_0x1491fe})=>isRabetbaseCliInvocation(_0x1491fe))[_0x45f145(0xc1)](({file:_0x14a1eb,line:_0x13f29c})=>({'file':_0x14a1eb,'line':_0x13f29c}));});}const RABETBASE_SUBCOMMANDS=[a57_0x571337(0xd5),a57_0x571337(0xd8),a57_0x571337(0xb4),'page','project','app','schema',a57_0x571337(0x9c),a57_0x571337(0xc8),'kb',a57_0x571337(0xda),'workspace',a57_0x571337(0xb9),a57_0x571337(0xb6),a57_0x571337(0xcd),a57_0x571337(0xed)],RABETBASE_INVOCATION=new RegExp(String[a57_0x571337(0xbc)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a57_0x571337(0x9e)]('|')})\b`+String['raw']`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function a57_0x222e(){const _0x5d207f=['config','Set\x20metadata.type\x20to\x20write\x20or\x20read.','toLowerCase','Add\x20frontmatter\x20with\x20name\x20and\x20description.','test','internal-skill','Frontmatter\x20description\x20is\x20empty.','read','push','2563290jDnLMx','metadata','warning','537436Utpqre','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','Skill\x20validation\x20failed:\x0a','displayName','description-required','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','flatMap','registry','example','split','Frontmatter\x20displayName\x20is\x20missing.','boolean','isArray','SKILL.md','\x20Fix:\x20','example-recommended','SKILL.md\x20is\x20not\x20a\x20file.','7153254JhjGwf','service','false','join','line','slice','length','trim','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','internal','metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','isDirectory','suggestion','file','level','name','hasFrontmatter','Frontmatter\x20example\x20is\x20missing.','write','784326FHKbEy','Frontmatter\x20name\x20is\x20missing.','25ZBvfsN','rabetbase-cli-reference','frontmatter-required','bff','has','auth','Skill\x20directory\x20not\x20found:\x20','Missing\x20SKILL.md.','data','true','path','raw','errors','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','13554580mNtkki','section','map','SKILL.md\x20must\x20start\x20with\x20frontmatter.','filter','isFile','string','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','match','artifact','validation','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','error','ruleId','logs','description','utf8','type','14sTGfdv','number','1446SGcpVH','12770776OEyNyu','dataset','isSymbolicLink','content','sql','2135svzAon'];a57_0x222e=function(){return _0x5d207f;};return a57_0x222e();}function isRabetbaseCliInvocation(_0x275f1c){const _0x1166e8=a57_0x571337,_0x3f6a45=_0x275f1c['search'](/\brabetbase\b/i);if(_0x3f6a45<0x0)return![];const _0x48bc1b=_0x275f1c[_0x1166e8(0xa0)](_0x3f6a45)[_0x1166e8(0x93)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION['test'](_0x48bc1b);}function parseFrontmatter(_0x390621){const _0x3e3876=a57_0x571337,_0x470f05=_0x390621[_0x3e3876(0xc7)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x470f05)return{'hasFrontmatter':![]};const _0x9a20cc=_0x470f05[0x1]??'',_0x23a713={'hasFrontmatter':!![]};let _0x2e2824;try{_0x2e2824=a57_0x1c58dd(_0x9a20cc);}catch{return _0x23a713;}const _0x763c3c=asRecord(_0x2e2824);if(!_0x763c3c)return _0x23a713;_0x23a713[_0x3e3876(0xab)]=scalarToString(_0x763c3c[_0x3e3876(0xab)]),_0x23a713[_0x3e3876(0xe9)]=scalarToString(_0x763c3c[_0x3e3876(0xe9)]),_0x23a713['description']=scalarToString(_0x763c3c[_0x3e3876(0xce)]),_0x23a713['example']=scalarToString(_0x763c3c[_0x3e3876(0xee)]);const _0x2d415f=asRecord(_0x763c3c[_0x3e3876(0xe4)]);return _0x2d415f&&(_0x23a713[_0x3e3876(0xd0)]=scalarToString(_0x2d415f[_0x3e3876(0xd0)]),_0x23a713[_0x3e3876(0xa4)]=scalarToBoolean(_0x2d415f[_0x3e3876(0xa4)])),_0x23a713;}function asRecord(_0x4a16e9){const _0x494b64=a57_0x571337;if(_0x4a16e9&&typeof _0x4a16e9==='object'&&!Array[_0x494b64(0x96)](_0x4a16e9))return _0x4a16e9;return undefined;}function scalarToString(_0x38c602){const _0x1add4=a57_0x571337;if(typeof _0x38c602===_0x1add4(0xc5))return _0x38c602[_0x1add4(0xa2)]();if(typeof _0x38c602===_0x1add4(0xd2)||typeof _0x38c602==='boolean')return String(_0x38c602);return undefined;}function scalarToBoolean(_0xfd88e6){const _0x11b4ca=a57_0x571337;if(typeof _0xfd88e6===_0x11b4ca(0x95))return _0xfd88e6;if(typeof _0xfd88e6===_0x11b4ca(0xc5))return cleanBoolean(_0xfd88e6);return undefined;}function cleanBoolean(_0x2fc51d){const _0x234481=a57_0x571337,_0x4b8a0b=_0x2fc51d[_0x234481(0xa2)]()[_0x234481(0xdc)]();if(_0x4b8a0b===_0x234481(0xba))return!![];if(_0x4b8a0b===_0x234481(0x9d))return![];return undefined;}function issue(_0x7019c3,_0x3d68e3,_0x2596db,_0x243171,_0x58b7d1,_0x2475c8){return{'level':_0x7019c3,'ruleId':_0x3d68e3,'file':_0x2596db,'section':_0x2475c8,'message':_0x243171,'suggestion':_0x58b7d1};}
|
|
1
|
+
const a57_0x5e666c=a57_0x3394;(function(_0x1eeb5c,_0x680881){const _0x2622ba=a57_0x3394,_0x19de0f=_0x1eeb5c();while(!![]){try{const _0x4b44cd=-parseInt(_0x2622ba(0x12b))/0x1+-parseInt(_0x2622ba(0x14e))/0x2*(parseInt(_0x2622ba(0x133))/0x3)+parseInt(_0x2622ba(0x110))/0x4+parseInt(_0x2622ba(0x101))/0x5+parseInt(_0x2622ba(0x10b))/0x6*(parseInt(_0x2622ba(0x15b))/0x7)+-parseInt(_0x2622ba(0x130))/0x8*(parseInt(_0x2622ba(0x11b))/0x9)+parseInt(_0x2622ba(0x122))/0xa;if(_0x4b44cd===_0x680881)break;else _0x19de0f['push'](_0x19de0f['shift']());}catch(_0x2c0937){_0x19de0f['push'](_0x19de0f['shift']());}}}(a57_0x4c1b,0xca8ec));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a57_0x425360}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';function a57_0x3394(_0x3e24c2,_0x31779b){_0x3e24c2=_0x3e24c2-0x100;const _0x4c1b80=a57_0x4c1b();let _0x33949a=_0x4c1b80[_0x3e24c2];return _0x33949a;}const SKILL_FILE='SKILL.md',SUPPORTED_SKILL_TYPES=new Set(['write',a57_0x5e666c(0x13b)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x3768c0,_0x515ab6={}){const _0x309edf=a57_0x5e666c,_0x249bf=resolveSkillDirectoryRoot(_0x3768c0),_0x56df1d=[],_0x522ac=loadRequiredSkillFile(_0x249bf,_0x56df1d),_0x4cca7b=_0x522ac?parseFrontmatter(_0x522ac[_0x309edf(0x105)]):{'hasFrontmatter':![]};_0x522ac&&validateFrontmatter(_0x522ac[_0x309edf(0x11a)],_0x4cca7b,_0x56df1d);validateRuntimeCliReferences(_0x249bf,_0x56df1d);const _0x118b4a=_0x56df1d[_0x309edf(0x10d)](_0x3c9820=>_0x3c9820[_0x309edf(0x108)]===_0x309edf(0x127)),_0x40a00c=_0x56df1d[_0x309edf(0x10d)](_0x5bce12=>_0x5bce12[_0x309edf(0x108)]===_0x309edf(0x137));return{'ok':_0x118b4a[_0x309edf(0x121)]===0x0,'dir':_0x249bf,'type':_0x4cca7b[_0x309edf(0x15e)],'errors':_0x118b4a,'warnings':_0x40a00c};}function a57_0x4c1b(){const _0x2afc68=['logs','number','split','service','file','flatMap','14217RGsrnG','Missing\x20SKILL.md.','push','type','raw','example','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','6595495Iuambm','\x20Fix:\x20','metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','Frontmatter\x20example\x20is\x20missing.','content','false','section','level','data','Skill\x20directory\x20not\x20found:\x20','1146nQbxIy','structure-complete','filter','isDirectory','description','154568ekxCYx','displayName','config','internal','suggestion','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','app','Skill\x20validation\x20failed:\x0a','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','name','path','660438nCWeOb','bff','isArray','rabetbase-cli-reference','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','length','24548530jfEhHb','object','validation','Frontmatter\x20displayName\x20is\x20missing.','message','error','SKILL.md\x20is\x20not\x20a\x20file.','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','page','534451UdoVSV','Set\x20metadata.type\x20to\x20write\x20or\x20read.','registry','frontmatter-required','slice','160YRwToo','Frontmatter\x20description\x20is\x20empty.','string','6GFQmFS','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','utf8','auth','warning','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','project','read','description-required','hasFrontmatter','join','isFile','toLowerCase','boolean','internal-skill','example-recommended','errors','search','SKILL.md\x20must\x20start\x20with\x20frontmatter.','true','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','has','map','trim','Add\x20frontmatter\x20with\x20name\x20and\x20description.','display-name-recommended','1368748ZvthaF','Frontmatter\x20name\x20is\x20missing.','toUpperCase','isSymbolicLink','artifact','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','schema'];a57_0x4c1b=function(){return _0x2afc68;};return a57_0x4c1b();}function resolveSkillDirectoryRoot(_0xbdf668){const _0x44fb7a=a57_0x5e666c,_0x4b90fb=resolve(_0xbdf668);if(!existsSync(_0x4b90fb))throw CliErrors['validation'](_0x44fb7a(0x10a)+_0xbdf668);const _0x35ff15=lstatSync(_0x4b90fb);if(_0x35ff15[_0x44fb7a(0x10e)]())return _0x4b90fb;if(_0x35ff15[_0x44fb7a(0x151)]()){const _0x5e6316=realpathSync(_0x4b90fb);if(lstatSync(_0x5e6316)[_0x44fb7a(0x10e)]())return _0x5e6316;}throw CliErrors[_0x44fb7a(0x124)](_0x44fb7a(0x10a)+_0xbdf668);}export function throwIfSkillValidationFailed(_0x3aadf2,_0x20b893=![]){const _0x4d54c6=a57_0x5e666c;if(_0x3aadf2['ok'])return;const _0x3291f0=_0x3aadf2[_0x4d54c6(0x144)]['map'](_0x24c07f=>{const _0x1b4a54=_0x4d54c6,_0x43b2b4=_0x24c07f['section']?'#'+_0x24c07f[_0x1b4a54(0x107)]:'';return _0x24c07f[_0x1b4a54(0x108)][_0x1b4a54(0x150)]()+'\x20'+_0x24c07f['ruleId']+'\x20'+_0x24c07f[_0x1b4a54(0x159)]+_0x43b2b4+':\x20'+_0x24c07f[_0x1b4a54(0x126)]+_0x1b4a54(0x102)+_0x24c07f[_0x1b4a54(0x114)];});throw CliErrors['validation'](_0x4d54c6(0x117)+_0x3291f0[_0x4d54c6(0x13e)]('\x0a'),_0x4d54c6(0x11f));}function loadRequiredSkillFile(_0x5efbd5,_0x39fbb5){const _0x65f951=a57_0x5e666c,_0x2b54d9=resolve(_0x5efbd5,SKILL_FILE);if(!existsSync(_0x2b54d9))return _0x39fbb5[_0x65f951(0x15d)](issue(_0x65f951(0x127),_0x65f951(0x10c),SKILL_FILE,_0x65f951(0x15c),_0x65f951(0x134))),undefined;const _0x110b46=lstatSync(_0x2b54d9);if(_0x110b46['isSymbolicLink']())return _0x39fbb5['push'](issue(_0x65f951(0x127),_0x65f951(0x10c),SKILL_FILE,_0x65f951(0x115),'Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.')),undefined;if(!_0x110b46[_0x65f951(0x13f)]())return _0x39fbb5[_0x65f951(0x15d)](issue(_0x65f951(0x127),_0x65f951(0x10c),SKILL_FILE,_0x65f951(0x128),_0x65f951(0x148))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x2b54d9,_0x65f951(0x135))};}function validateFrontmatter(_0xea9270,_0x41f196,_0x3f9bce){const _0x5eac26=a57_0x5e666c;if(!_0x41f196[_0x5eac26(0x13d)]){_0x3f9bce[_0x5eac26(0x15d)](issue(_0x5eac26(0x127),_0x5eac26(0x12e),_0xea9270,_0x5eac26(0x146),_0x5eac26(0x14c)));return;}!_0x41f196['name']?.[_0x5eac26(0x14b)]()&&_0x3f9bce[_0x5eac26(0x15d)](issue(_0x5eac26(0x127),'frontmatter-required',_0xea9270,_0x5eac26(0x14f),'Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.')),!_0x41f196[_0x5eac26(0x111)]?.[_0x5eac26(0x14b)]()&&_0x3f9bce['push'](issue(_0x5eac26(0x137),_0x5eac26(0x14d),_0xea9270,_0x5eac26(0x125),_0x5eac26(0x129))),!_0x41f196[_0x5eac26(0x160)]?.[_0x5eac26(0x14b)]()&&_0x3f9bce[_0x5eac26(0x15d)](issue(_0x5eac26(0x137),_0x5eac26(0x143),_0xea9270,_0x5eac26(0x104),_0x5eac26(0x100))),!_0x41f196[_0x5eac26(0x10f)]?.[_0x5eac26(0x14b)]()&&_0x3f9bce[_0x5eac26(0x15d)](issue(_0x5eac26(0x127),_0x5eac26(0x13c),_0xea9270,_0x5eac26(0x131),_0x5eac26(0x120))),_0x41f196['internal']===!![]&&_0x3f9bce[_0x5eac26(0x15d)](issue(_0x5eac26(0x127),_0x5eac26(0x142),_0xea9270,_0x5eac26(0x153),_0x5eac26(0x139))),_0x41f196['type']?.[_0x5eac26(0x14b)]()&&!SUPPORTED_SKILL_TYPES[_0x5eac26(0x149)](_0x41f196[_0x5eac26(0x15e)])&&_0x3f9bce[_0x5eac26(0x15d)](issue(_0x5eac26(0x127),_0x5eac26(0x12e),_0xea9270,_0x5eac26(0x103),_0x5eac26(0x12c)));}function validateRuntimeCliReferences(_0x164dc2,_0x2173bb){const _0x20f5a7=a57_0x5e666c;for(const _0x5242bf of findRabetbaseCliInvocations(_0x164dc2)){_0x2173bb[_0x20f5a7(0x15d)](issue(_0x20f5a7(0x137),_0x20f5a7(0x11e),_0x5242bf[_0x20f5a7(0x159)],_0x20f5a7(0x138),_0x20f5a7(0x118),'L'+_0x5242bf['line']));}}function findRabetbaseCliInvocations(_0x1b74c9){const _0x26b823=a57_0x5e666c;return scanSkillDirectory(_0x1b74c9)[_0x26b823(0x10d)](_0x597f9b=>TEXT_SKILL_FILE_PATTERN['test'](_0x597f9b[_0x26b823(0x11a)]))[_0x26b823(0x15a)](_0x3facb5=>{const _0x24667b=_0x26b823,_0x5c5be3=fileText(_0x3facb5);return _0x5c5be3['split'](/\r?\n/)['map']((_0x323302,_0x37dbb5)=>({'file':_0x3facb5[_0x24667b(0x11a)],'line':_0x37dbb5+0x1,'text':_0x323302}))['filter'](({text:_0x18db7f})=>isRabetbaseCliInvocation(_0x18db7f))[_0x24667b(0x14a)](({file:_0x543237,line:_0x3998cb})=>({'file':_0x543237,'line':_0x3998cb}));});}const RABETBASE_SUBCOMMANDS=['dataset','sql',a57_0x5e666c(0x11c),a57_0x5e666c(0x12a),a57_0x5e666c(0x13a),a57_0x5e666c(0x116),a57_0x5e666c(0x154),a57_0x5e666c(0x158),a57_0x5e666c(0x152),'kb',a57_0x5e666c(0x112),'workspace',a57_0x5e666c(0x109),a57_0x5e666c(0x136),a57_0x5e666c(0x155),a57_0x5e666c(0x12d)],RABETBASE_INVOCATION=new RegExp(String[a57_0x5e666c(0x15f)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS['join']('|')})\b`+String[a57_0x5e666c(0x15f)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x148567){const _0x4407a5=a57_0x5e666c,_0x36e871=_0x148567[_0x4407a5(0x145)](/\brabetbase\b/i);if(_0x36e871<0x0)return![];const _0x214371=_0x148567[_0x4407a5(0x12f)](_0x36e871)[_0x4407a5(0x157)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION['test'](_0x214371);}function parseFrontmatter(_0x5dc064){const _0x553df3=a57_0x5e666c,_0x4b99e9=_0x5dc064['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x4b99e9)return{'hasFrontmatter':![]};const _0x498af3=_0x4b99e9[0x1]??'',_0x5170d5={'hasFrontmatter':!![]};let _0x99e4df;try{_0x99e4df=a57_0x425360(_0x498af3);}catch{return _0x5170d5;}const _0x38239c=asRecord(_0x99e4df);if(!_0x38239c)return _0x5170d5;_0x5170d5['name']=scalarToString(_0x38239c[_0x553df3(0x119)]),_0x5170d5[_0x553df3(0x111)]=scalarToString(_0x38239c['displayName']),_0x5170d5[_0x553df3(0x10f)]=scalarToString(_0x38239c[_0x553df3(0x10f)]),_0x5170d5[_0x553df3(0x160)]=scalarToString(_0x38239c[_0x553df3(0x160)]);const _0xae9639=asRecord(_0x38239c['metadata']);return _0xae9639&&(_0x5170d5[_0x553df3(0x15e)]=scalarToString(_0xae9639[_0x553df3(0x15e)]),_0x5170d5[_0x553df3(0x113)]=scalarToBoolean(_0xae9639['internal'])),_0x5170d5;}function asRecord(_0x4730bc){const _0x31290d=a57_0x5e666c;if(_0x4730bc&&typeof _0x4730bc===_0x31290d(0x123)&&!Array[_0x31290d(0x11d)](_0x4730bc))return _0x4730bc;return undefined;}function scalarToString(_0x16a738){const _0x102910=a57_0x5e666c;if(typeof _0x16a738===_0x102910(0x132))return _0x16a738['trim']();if(typeof _0x16a738===_0x102910(0x156)||typeof _0x16a738===_0x102910(0x141))return String(_0x16a738);return undefined;}function scalarToBoolean(_0xd88399){const _0x54d56a=a57_0x5e666c;if(typeof _0xd88399===_0x54d56a(0x141))return _0xd88399;if(typeof _0xd88399==='string')return cleanBoolean(_0xd88399);return undefined;}function cleanBoolean(_0x5efd05){const _0xc698c5=a57_0x5e666c,_0x50d310=_0x5efd05[_0xc698c5(0x14b)]()[_0xc698c5(0x140)]();if(_0x50d310===_0xc698c5(0x147))return!![];if(_0x50d310===_0xc698c5(0x106))return![];return undefined;}function issue(_0x281068,_0x32c023,_0x401ccd,_0x4be07e,_0x32e183,_0xe851b8){return{'level':_0x281068,'ruleId':_0x32c023,'file':_0x401ccd,'section':_0xe851b8,'message':_0x4be07e,'suggestion':_0x32e183};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a58_0x35c3(){const _0x201b70=['verbose','530vPxeMV','8DjqLdd','5033896fRocTM','4357629LKozee','1aVYwXF','sqlCode','2928700JEDFXX','10573915OCHFUw','detail','10PJUrmp','appCode','38334hklRtm','sql','1118733llVBrg','1412434GmTNso','sqlName','str','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','dbId'];a58_0x35c3=function(){return _0x201b70;};return a58_0x35c3();}const a58_0x2ef9e3=a58_0x337a;(function(_0x4cd7b8,_0x3f9650){const _0x2d1bbf=a58_0x337a,_0x3f1fcb=_0x4cd7b8();while(!![]){try{const _0x23bae5=parseInt(_0x2d1bbf(0x165))/0x1*(-parseInt(_0x2d1bbf(0x15b))/0x2)+parseInt(_0x2d1bbf(0x15a))/0x3+-parseInt(_0x2d1bbf(0x153))/0x4+-parseInt(_0x2d1bbf(0x161))/0x5*(parseInt(_0x2d1bbf(0x158))/0x6)+parseInt(_0x2d1bbf(0x163))/0x7*(parseInt(_0x2d1bbf(0x162))/0x8)+parseInt(_0x2d1bbf(0x164))/0x9*(parseInt(_0x2d1bbf(0x156))/0xa)+parseInt(_0x2d1bbf(0x154))/0xb;if(_0x23bae5===_0x3f9650)break;else _0x3f1fcb['push'](_0x3f1fcb['shift']());}catch(_0x5bc659){_0x3f1fcb['push'](_0x3f1fcb['shift']());}}}(a58_0x35c3,0x66fe3));function a58_0x337a(_0x1e32fe,_0x3c9891){_0x1e32fe=_0x1e32fe-0x152;const _0x35c3d7=a58_0x35c3();let _0x337a41=_0x35c3d7[_0x1e32fe];return _0x337a41;}import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a58_0x2ef9e3(0x159),'command':a58_0x2ef9e3(0x155),'description':a58_0x2ef9e3(0x15e),'risk':'read','flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x1d7b75){const _0x224576=a58_0x2ef9e3,_0x4a183f=await getSqlQueryInfo(_0x1d7b75[_0x224576(0x157)],_0x1d7b75[_0x224576(0x15d)]('sqlcode')),_0x3561cd=_0x1d7b75['bool'](_0x224576(0x160));if(_0x3561cd)return{'ok':!![],'data':_0x4a183f};const _0x25f813=_0x4a183f[_0x224576(0x15f)]?await getDbName(_0x1d7b75[_0x224576(0x157)],_0x4a183f[_0x224576(0x15f)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x4a183f[_0x224576(0x152)],'sqlName':_0x4a183f[_0x224576(0x15c)],'db':_0x25f813?_0x25f813+'\x20('+_0x4a183f[_0x224576(0x15f)]+')':_0x4a183f[_0x224576(0x15f)]??'','sqlContent':_0x4a183f['sqlContent']??''}};}};
|
package/lib/commands/sql/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a59_0x5d77(){const _0xa5b99=['1197526dugpvR','now','47982xhMYSo','655vNriiV','4lfnBDq','execSuccess','\x20row(s)\x20in\x20','length','2340CUrwlz','24SYVaMy','sqlcode','execResult','8082QUCPBC','str','7380240QbkoFZ','SQL\x20execution\x20failed','191908cNpQDx','48ugeazg','1771400khGVig','read','params','508082ZWoOnS','Returned\x20'];a59_0x5d77=function(){return _0xa5b99;};return a59_0x5d77();}const a59_0x1a3ae9=a59_0x3a38;(function(_0x5a455d,_0x230f8c){const _0x579027=a59_0x3a38,_0x4d50d8=_0x5a455d();while(!![]){try{const _0x5d77e6=parseInt(_0x579027(0x1e1))/0x1*(-parseInt(_0x579027(0x1db))/0x2)+-parseInt(_0x579027(0x1d7))/0x3*(parseInt(_0x579027(0x1d6))/0x4)+parseInt(_0x579027(0x1e0))/0x5*(parseInt(_0x579027(0x1df))/0x6)+parseInt(_0x579027(0x1d4))/0x7+parseInt(_0x579027(0x1d8))/0x8+-parseInt(_0x579027(0x1e9))/0x9*(-parseInt(_0x579027(0x1e5))/0xa)+parseInt(_0x579027(0x1dd))/0xb*(parseInt(_0x579027(0x1e6))/0xc);if(_0x5d77e6===_0x230f8c)break;else _0x4d50d8['push'](_0x4d50d8['shift']());}catch(_0x362f04){_0x4d50d8['push'](_0x4d50d8['shift']());}}}(a59_0x5d77,0xec2fc));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';function a59_0x3a38(_0x5b6e8c,_0x304baa){_0x5b6e8c=_0x5b6e8c-0x1d4;const _0x5d7709=a59_0x5d77();let _0x3a38ae=_0x5d7709[_0x5b6e8c];return _0x3a38ae;}export const sqlExec={'service':'sql','command':'exec','description':'Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','risk':a59_0x1a3ae9(0x1d9),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x24282b){const _0xc8cac8=a59_0x1a3ae9,_0x1e521d=parseJsonParams(_0x24282b[_0xc8cac8(0x1ea)](_0xc8cac8(0x1da))),_0x25465b=Date['now'](),_0x587a44=await executeSdkSql(_0x24282b[_0xc8cac8(0x1ea)](_0xc8cac8(0x1e7)),_0x1e521d),_0x58f665=Date[_0xc8cac8(0x1de)]()-_0x25465b,_0xa92113=_0x587a44?.[_0xc8cac8(0x1e8)]??_0x587a44,_0x175f47=_0x587a44?.[_0xc8cac8(0x1e2)]??!![];if(!_0x175f47)return{'ok':![],'data':{'error':_0x587a44?.['execError']||_0xc8cac8(0x1d5),'elapsed':_0x58f665},'message':_0xc8cac8(0x1d5)};const _0x21224a=Array['isArray'](_0xa92113)?_0xa92113:[];return{'ok':!![],'data':{'rows':_0x21224a,'rowCount':_0x21224a[_0xc8cac8(0x1e4)],'elapsed':_0x58f665},'message':_0xc8cac8(0x1dc)+_0x21224a[_0xc8cac8(0x1e4)]+_0xc8cac8(0x1e3)+_0x58f665+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a60_0x98fc(){const _0x351a60=['268172cwayqQ','303208WgOomM','290PejwIW','5MShDVp','147TOcdRl','1317083ecDcUw','24snEQsi','10308438tQWHGI','169893tYqcaa','2GwqXZE','18030617ulNsSr','16368984yeTfXo'];a60_0x98fc=function(){return _0x351a60;};return a60_0x98fc();}function a60_0x40af(_0x238a3d,_0x258927){_0x238a3d=_0x238a3d-0x16e;const _0x98fcb9=a60_0x98fc();let _0x40af56=_0x98fcb9[_0x238a3d];return _0x40af56;}(function(_0x29f06a,_0x451f29){const _0x4a2952=a60_0x40af,_0x11461f=_0x29f06a();while(!![]){try{const _0xc93c0c=parseInt(_0x4a2952(0x16f))/0x1*(-parseInt(_0x4a2952(0x173))/0x2)+-parseInt(_0x4a2952(0x170))/0x3*(-parseInt(_0x4a2952(0x176))/0x4)+-parseInt(_0x4a2952(0x179))/0x5*(-parseInt(_0x4a2952(0x171))/0x6)+-parseInt(_0x4a2952(0x16e))/0x7*(parseInt(_0x4a2952(0x177))/0x8)+-parseInt(_0x4a2952(0x172))/0x9*(-parseInt(_0x4a2952(0x178))/0xa)+parseInt(_0x4a2952(0x174))/0xb+-parseInt(_0x4a2952(0x175))/0xc;if(_0xc93c0c===_0x451f29)break;else _0x11461f['push'](_0x11461f['shift']());}catch(_0x44abe6){_0x11461f['push'](_0x11461f['shift']());}}}(a60_0x98fc,0xeb547));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
|
package/lib/commands/update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a61_0x3a5218=a61_0x278e;(function(_0x4c792e,_0x288336){const _0x343f81=a61_0x278e,_0x583957=_0x4c792e();while(!![]){try{const _0x44f42b=parseInt(_0x343f81(0x204))/0x1+parseInt(_0x343f81(0x1e2))/0x2+parseInt(_0x343f81(0x1ea))/0x3+parseInt(_0x343f81(0x1f0))/0x4+parseInt(_0x343f81(0x1fd))/0x5+-parseInt(_0x343f81(0x218))/0x6*(parseInt(_0x343f81(0x20a))/0x7)+-parseInt(_0x343f81(0x216))/0x8;if(_0x44f42b===_0x288336)break;else _0x583957['push'](_0x583957['shift']());}catch(_0x3bf785){_0x583957['push'](_0x583957['shift']());}}}(a61_0x1d7e,0x8f8b3));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';function a61_0x278e(_0x55550c,_0x756af2){_0x55550c=_0x55550c-0x1d3;const _0x1d7e33=a61_0x1d7e();let _0x278e8b=_0x1d7e33[_0x55550c];return _0x278e8b;}import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':'latest','type':'boolean','description':a61_0x3a5218(0x201),'default':![]},{'name':a61_0x3a5218(0x1df),'type':a61_0x3a5218(0x210),'description':a61_0x3a5218(0x1dc),'default':![]},{'name':a61_0x3a5218(0x1f8),'type':a61_0x3a5218(0x1d5),'description':a61_0x3a5218(0x1ff)},{'name':a61_0x3a5218(0x209),'type':'boolean','description':'Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','default':![]},{'name':'skills','type':a61_0x3a5218(0x210),'description':a61_0x3a5218(0x21d),'default':!![],'hidden':!![]}];function a61_0x1d7e(){const _0x3817d9=['warn','beta','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','major','398528kzaNxm','/dist-tags','prerelease','inherit','toString','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','Current\x20version:\x20','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','1550106qNVHay','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','Checking\x20npm\x20dist-tags...','minor','install','message','2139448PLjeGX','stdout','=1).','Unable\x20to\x20resolve\x20','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','Checking\x20CLI\x20Built-in\x20Skill...','version','\x20CLI\x20from\x20npm','fromEntries','cwd','filter','3763815srsTHd','object','Install\x20a\x20specific\x20CLI\x20version','json','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','status','source','44187soNHFJ','str','pipe','log','Updated\x20to\x20v','no-skills','7RZTbIb','unknown','latest','Update\x20','validation','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','boolean','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','trim','length','args','timeout','3651848HSScTP','join','6020052PJqodL','match','nonInteractive','/-/package/','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','exit\x20','update','Update\x20failed:\x20','flag','Version\x20comparison\x20failed.','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','string','bool','skipped','run','error','map','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','stderr'];a61_0x1d7e=function(){return _0x3817d9;};return a61_0x1d7e();}function parseSemver(_0x15ee1d){const _0x154332=a61_0x3a5218,_0x59a932=_0x15ee1d[_0x154332(0x212)]()[_0x154332(0x219)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x59a932)return null;return{'major':Number(_0x59a932[0x1]),'minor':Number(_0x59a932[0x2]),'patch':Number(_0x59a932[0x3]),'prerelease':_0x59a932[0x4]};}function compareSemver(_0x402158,_0x3cb831){const _0x1cbfba=a61_0x3a5218,_0x336f96=parseSemver(_0x402158),_0x2dc088=parseSemver(_0x3cb831);if(!_0x336f96||!_0x2dc088)throw CliErrors[_0x1cbfba(0x20e)](_0x1cbfba(0x1d3),_0x1cbfba(0x1f5));for(const _0x440320 of[_0x1cbfba(0x1e1),_0x1cbfba(0x1ed),'patch']){if(_0x336f96[_0x440320]<_0x2dc088[_0x440320])return-0x1;if(_0x336f96[_0x440320]>_0x2dc088[_0x440320])return 0x1;}if(!_0x336f96[_0x1cbfba(0x1e4)]&&!_0x2dc088[_0x1cbfba(0x1e4)])return 0x0;if(!_0x336f96[_0x1cbfba(0x1e4)])return 0x1;if(!_0x2dc088[_0x1cbfba(0x1e4)])return-0x1;if(_0x336f96[_0x1cbfba(0x1e4)]===_0x2dc088[_0x1cbfba(0x1e4)])return 0x0;return _0x336f96[_0x1cbfba(0x1e4)]<_0x2dc088[_0x1cbfba(0x1e4)]?-0x1:0x1;}function getRequestedVersion(_0x29db51){const _0x5b7162=a61_0x3a5218,_0x220615=_0x29db51[_0x5b7162(0x205)](_0x5b7162(0x1f8))['trim']();if(_0x220615)return _0x220615;return String(_0x29db51[_0x5b7162(0x214)]?.[0x0]??'')['trim']();}function shouldSkipCliBuiltInSkill(_0x3c298f){const _0xdcb267=a61_0x3a5218;return _0x3c298f[_0xdcb267(0x1d6)](_0xdcb267(0x209))||_0x3c298f[_0xdcb267(0x221)]('skills')===![];}async function validateUpdateFlags(_0x66ff0f){const _0x2c69d1=a61_0x3a5218,_0x16a361=getRequestedVersion(_0x66ff0f),_0x13bfc5=[_0x66ff0f[_0x2c69d1(0x1d6)]('latest')?_0x2c69d1(0x20c):'',_0x66ff0f[_0x2c69d1(0x1d6)](_0x2c69d1(0x1df))?_0x2c69d1(0x1df):'',_0x16a361?_0x2c69d1(0x1f8):'']['filter'](Boolean);if(_0x13bfc5[_0x2c69d1(0x213)]>0x1)throw CliErrors[_0x2c69d1(0x20e)](_0x2c69d1(0x21c),_0x2c69d1(0x20f));if(_0x16a361&&!parseSemver(_0x16a361))throw CliErrors[_0x2c69d1(0x20e)]('Invalid\x20version:\x20'+_0x16a361,_0x2c69d1(0x1e0));}async function fetchNpmDistTags(){const _0xafd129=a61_0x3a5218;try{const _0x3d0bca=NPM_REGISTRY_BASE_URL+_0xafd129(0x21b)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0xafd129(0x1e3),_0x374123=await fetch(_0x3d0bca,{'signal':AbortSignal[_0xafd129(0x215)](0x2710)});if(!_0x374123['ok'])return null;const _0x1e2bd8=await _0x374123[_0xafd129(0x200)]();if(!_0x1e2bd8||typeof _0x1e2bd8!==_0xafd129(0x1fe))return null;return Object[_0xafd129(0x1fa)](Object['entries'](_0x1e2bd8)[_0xafd129(0x1fc)](([,_0x89968a])=>typeof _0x89968a===_0xafd129(0x1d5)&&_0x89968a[_0xafd129(0x212)]())[_0xafd129(0x1da)](([_0x13a167,_0x30f5b6])=>[_0x13a167,String(_0x30f5b6)[_0xafd129(0x212)]()]));}catch{return null;}}async function resolveTargetVersion(_0x6fc64b){const _0x58cd1c=a61_0x3a5218,_0x14c23c=getRequestedVersion(_0x6fc64b);if(_0x14c23c)return{'version':_0x14c23c,'source':_0x58cd1c(0x1f8)};const _0x570b62=_0x6fc64b[_0x58cd1c(0x1d6)](_0x58cd1c(0x1df))?'beta':_0x58cd1c(0x20c),_0x3b8d88=await fetchNpmDistTags(),_0x14d1a9=_0x3b8d88?.[_0x570b62];if(!_0x14d1a9)return null;return{'version':_0x14d1a9,'source':_0x570b62};}function shouldInstallTarget(_0x107480,_0x3b5a10){const _0x2d7ec3=a61_0x3a5218,_0x4cb16c=compareSemver(_0x107480,_0x3b5a10[_0x2d7ec3(0x1f8)]);if(_0x3b5a10[_0x2d7ec3(0x203)]==='version')return _0x4cb16c!==0x0;return _0x4cb16c<0x0;}function installCliPackage(_0x35814f,_0x20bbd1){const _0x9bce22=a61_0x3a5218,_0x44bed6=resolveNpmBin('npm'),_0x2c4729=[_0x9bce22(0x1ee),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x35814f];console[_0x9bce22(0x207)]('*\x20'+[_0x44bed6,..._0x2c4729][_0x9bce22(0x217)]('\x20'));const _0x3b2e69=spawnSync(_0x44bed6,_0x2c4729,{'cwd':process[_0x9bce22(0x1fb)](),'stdio':_0x20bbd1?_0x9bce22(0x206):'inherit','env':process.env,'shell':![]});if(_0x3b2e69['status']===0x0)return{'ok':!![]};let _0x4da4d9=_0x3b2e69['error']?.[_0x9bce22(0x1ef)]||_0x9bce22(0x21e)+(_0x3b2e69[_0x9bce22(0x202)]??'unknown');if(_0x20bbd1){const _0xa60b00=_0x3b2e69[_0x9bce22(0x1dd)]?_0x3b2e69[_0x9bce22(0x1dd)][_0x9bce22(0x1e6)]()[_0x9bce22(0x212)]():'',_0x3d33c0=_0x3b2e69[_0x9bce22(0x1f1)]?_0x3b2e69['stdout'][_0x9bce22(0x1e6)]()[_0x9bce22(0x212)]():'';if(_0xa60b00)_0x4da4d9=_0xa60b00;else{if(_0x3d33c0)_0x4da4d9=_0x3d33c0;}}return{'ok':![],'error':_0x4da4d9};}async function installCliBuiltInSkill(_0xe45053){const _0x34ff99=a61_0x3a5218;console[_0x34ff99(0x207)](_0x34ff99(0x1f7));const _0x461d04=runNpxSkillsAddGlobal(process[_0x34ff99(0x1fb)](),LOVRABET_SKILL_SOURCE,{'stdio':_0xe45053?_0x34ff99(0x206):_0x34ff99(0x1e5)});if(_0x461d04[_0x34ff99(0x1d7)]){console[_0x34ff99(0x207)](_0x34ff99(0x1db)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x34ff99(0x1f2));return;}if(_0x461d04['ok']){console['log'](_0x34ff99(0x1d4));return;}console['warn'](_0x34ff99(0x211)+(_0x461d04[_0x34ff99(0x1d9)]||_0x34ff99(0x20b))),console[_0x34ff99(0x207)](_0x34ff99(0x1e7));}async function execute(_0x219fff){const _0x2e7552=a61_0x3a5218;await validateUpdateFlags(_0x219fff);const _0x1733b1=getCliVersion();console['log'](_0x2e7552(0x1e8)+_0x1733b1),console[_0x2e7552(0x207)](_0x2e7552(0x1ec));const _0x2493fd=await resolveTargetVersion(_0x219fff);if(!_0x2493fd){const _0xf90d6c=_0x219fff['bool'](_0x2e7552(0x1df))?_0x2e7552(0x1df):_0x2e7552(0x20c),_0x2aaeb9=_0x2e7552(0x1f3)+_0xf90d6c+'\x20version\x20from\x20npm.';return console[_0x2e7552(0x1de)](_0x2aaeb9),console[_0x2e7552(0x207)](_0x2e7552(0x1f6)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0xf90d6c),{'ok':![]};}if(!shouldInstallTarget(_0x1733b1,_0x2493fd)){const _0x311858=_0x2493fd[_0x2e7552(0x203)]==='version'?'Already\x20on\x20requested\x20version\x20(v'+_0x2493fd[_0x2e7552(0x1f8)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x2493fd[_0x2e7552(0x1f8)]+').';return console['log'](_0x311858),shouldSkipCliBuiltInSkill(_0x219fff)?console[_0x2e7552(0x207)]('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).'):await installCliBuiltInSkill(_0x219fff['nonInteractive']),{'ok':!![]};}console[_0x2e7552(0x207)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x1733b1+'\x20->\x20'+_0x2493fd[_0x2e7552(0x1f8)]);const _0x49a51b=installCliPackage(_0x2493fd[_0x2e7552(0x1f8)],_0x219fff[_0x2e7552(0x21a)]);if(!_0x49a51b['ok']){const _0x4d58b9=_0x2e7552(0x220)+(_0x49a51b[_0x2e7552(0x1d9)]||'unknown');return console[_0x2e7552(0x1d9)](_0x4d58b9),console[_0x2e7552(0x207)](_0x2e7552(0x1e9)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x2493fd[_0x2e7552(0x1f8)]),{'ok':![]};}return console[_0x2e7552(0x207)](_0x2e7552(0x208)+_0x2493fd[_0x2e7552(0x1f8)]+'.'),console[_0x2e7552(0x207)](_0x2e7552(0x1f4)),shouldSkipCliBuiltInSkill(_0x219fff)?console['log'](_0x2e7552(0x1eb)):await installCliBuiltInSkill(_0x219fff['nonInteractive']),{'ok':!![]};}export const updateDefinition={'service':a61_0x3a5218(0x21f),'command':a61_0x3a5218(0x1d8),'description':a61_0x3a5218(0x20d)+CLI_BIN_NAME+a61_0x3a5218(0x1f9),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
1
|
+
const a61_0x37d028=a61_0x9581;(function(_0x250fb2,_0x163c59){const _0x1ae8ed=a61_0x9581,_0x409414=_0x250fb2();while(!![]){try{const _0x35f3e7=parseInt(_0x1ae8ed(0x100))/0x1+parseInt(_0x1ae8ed(0x11c))/0x2*(parseInt(_0x1ae8ed(0xf0))/0x3)+parseInt(_0x1ae8ed(0x11a))/0x4*(parseInt(_0x1ae8ed(0xf3))/0x5)+-parseInt(_0x1ae8ed(0xea))/0x6+-parseInt(_0x1ae8ed(0x117))/0x7*(-parseInt(_0x1ae8ed(0x127))/0x8)+parseInt(_0x1ae8ed(0xf2))/0x9+-parseInt(_0x1ae8ed(0xeb))/0xa*(parseInt(_0x1ae8ed(0xe9))/0xb);if(_0x35f3e7===_0x163c59)break;else _0x409414['push'](_0x409414['shift']());}catch(_0x3a2797){_0x409414['push'](_0x409414['shift']());}}}(a61_0x20c2,0xbe59f));import{spawnSync}from'node:child_process';function a61_0x9581(_0x290e58,_0x494a31){_0x290e58=_0x290e58-0xdc;const _0x20c24f=a61_0x20c2();let _0x95817f=_0x20c24f[_0x290e58];return _0x95817f;}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':a61_0x37d028(0x10f),'description':'Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','default':![]},{'name':a61_0x37d028(0x10e),'type':a61_0x37d028(0x10f),'description':a61_0x37d028(0xe7),'default':![]},{'name':a61_0x37d028(0x114),'type':a61_0x37d028(0x104),'description':'Install\x20a\x20specific\x20CLI\x20version'},{'name':a61_0x37d028(0x107),'type':a61_0x37d028(0x10f),'description':a61_0x37d028(0x108),'default':![]},{'name':a61_0x37d028(0x125),'type':a61_0x37d028(0x10f),'description':'Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','default':!![],'hidden':!![]}];function parseSemver(_0x29b773){const _0x291480=a61_0x37d028,_0x398e65=_0x29b773[_0x291480(0xee)]()[_0x291480(0xfe)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x398e65)return null;return{'major':Number(_0x398e65[0x1]),'minor':Number(_0x398e65[0x2]),'patch':Number(_0x398e65[0x3]),'prerelease':_0x398e65[0x4]};}function compareSemver(_0x353281,_0x29b6fb){const _0x30eee6=a61_0x37d028,_0x1f42c9=parseSemver(_0x353281),_0x9d91bb=parseSemver(_0x29b6fb);if(!_0x1f42c9||!_0x9d91bb)throw CliErrors[_0x30eee6(0x115)](_0x30eee6(0xfc),_0x30eee6(0xe8));for(const _0x162208 of[_0x30eee6(0x10b),_0x30eee6(0x103),_0x30eee6(0x102)]){if(_0x1f42c9[_0x162208]<_0x9d91bb[_0x162208])return-0x1;if(_0x1f42c9[_0x162208]>_0x9d91bb[_0x162208])return 0x1;}if(!_0x1f42c9[_0x30eee6(0xf9)]&&!_0x9d91bb[_0x30eee6(0xf9)])return 0x0;if(!_0x1f42c9[_0x30eee6(0xf9)])return 0x1;if(!_0x9d91bb[_0x30eee6(0xf9)])return-0x1;if(_0x1f42c9[_0x30eee6(0xf9)]===_0x9d91bb[_0x30eee6(0xf9)])return 0x0;return _0x1f42c9[_0x30eee6(0xf9)]<_0x9d91bb[_0x30eee6(0xf9)]?-0x1:0x1;}function getRequestedVersion(_0x16233e){const _0x3f493f=a61_0x37d028,_0x5d4fba=_0x16233e[_0x3f493f(0xf6)](_0x3f493f(0x114))[_0x3f493f(0xee)]();if(_0x5d4fba)return _0x5d4fba;return String(_0x16233e['args']?.[0x0]??'')['trim']();}function shouldSkipCliBuiltInSkill(_0x18c42f){const _0xebc3e3=a61_0x37d028;return _0x18c42f['bool'](_0xebc3e3(0x107))||_0x18c42f['flag']('skills')===![];}async function validateUpdateFlags(_0x2024b8){const _0x3f5735=a61_0x37d028,_0x4fdde6=getRequestedVersion(_0x2024b8),_0x19bf03=[_0x2024b8['bool']('latest')?_0x3f5735(0xfa):'',_0x2024b8['bool'](_0x3f5735(0x10e))?_0x3f5735(0x10e):'',_0x4fdde6?_0x3f5735(0x114):''][_0x3f5735(0xe5)](Boolean);if(_0x19bf03[_0x3f5735(0xf1)]>0x1)throw CliErrors['validation'](_0x3f5735(0xf4),_0x3f5735(0xec));if(_0x4fdde6&&!parseSemver(_0x4fdde6))throw CliErrors['validation'](_0x3f5735(0xfb)+_0x4fdde6,_0x3f5735(0x118));}async function fetchNpmDistTags(){const _0x199d98=a61_0x37d028;try{const _0x457473=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x199d98(0xe3),_0x3a4ddd=await fetch(_0x457473,{'signal':AbortSignal[_0x199d98(0x121)](0x2710)});if(!_0x3a4ddd['ok'])return null;const _0x629d06=await _0x3a4ddd[_0x199d98(0xdf)]();if(!_0x629d06||typeof _0x629d06!=='object')return null;return Object['fromEntries'](Object[_0x199d98(0x126)](_0x629d06)[_0x199d98(0xe5)](([,_0x182e69])=>typeof _0x182e69==='string'&&_0x182e69['trim']())[_0x199d98(0xde)](([_0x497f52,_0x11f1b5])=>[_0x497f52,String(_0x11f1b5)[_0x199d98(0xee)]()]));}catch{return null;}}async function resolveTargetVersion(_0xb0c111){const _0x454320=a61_0x37d028,_0x552315=getRequestedVersion(_0xb0c111);if(_0x552315)return{'version':_0x552315,'source':_0x454320(0x114)};const _0x721970=_0xb0c111[_0x454320(0x113)](_0x454320(0x10e))?_0x454320(0x10e):_0x454320(0xfa),_0x57ef9b=await fetchNpmDistTags(),_0x48b183=_0x57ef9b?.[_0x721970];if(!_0x48b183)return null;return{'version':_0x48b183,'source':_0x721970};}function shouldInstallTarget(_0x338309,_0x2b24ae){const _0x3b361e=a61_0x37d028,_0x82dbae=compareSemver(_0x338309,_0x2b24ae[_0x3b361e(0x114)]);if(_0x2b24ae[_0x3b361e(0x11b)]==='version')return _0x82dbae!==0x0;return _0x82dbae<0x0;}function installCliPackage(_0x10235d,_0x10ff95){const _0x2783af=a61_0x37d028,_0xc727ff=resolveNpmBin('npm'),_0x52629e=['install','-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x10235d];console[_0x2783af(0xff)]('*\x20'+[_0xc727ff,..._0x52629e][_0x2783af(0xed)]('\x20'));const _0x24d402=spawnSync(_0xc727ff,_0x52629e,{'cwd':process[_0x2783af(0xe1)](),'stdio':_0x10ff95?'pipe':'inherit','env':process.env,'shell':![]});if(_0x24d402[_0x2783af(0x124)]===0x0)return{'ok':!![]};let _0x41f5a7=_0x24d402[_0x2783af(0x105)]?.[_0x2783af(0x112)]||'exit\x20'+(_0x24d402[_0x2783af(0x124)]??'unknown');if(_0x10ff95){const _0x2b2cc2=_0x24d402[_0x2783af(0xe2)]?_0x24d402[_0x2783af(0xe2)][_0x2783af(0xe4)]()['trim']():'',_0x194b79=_0x24d402['stdout']?_0x24d402[_0x2783af(0x123)][_0x2783af(0xe4)]()[_0x2783af(0xee)]():'';if(_0x2b2cc2)_0x41f5a7=_0x2b2cc2;else{if(_0x194b79)_0x41f5a7=_0x194b79;}}return{'ok':![],'error':_0x41f5a7};}async function installCliBuiltInSkill(_0x95f3ff){const _0x5543f9=a61_0x37d028;console[_0x5543f9(0xff)](_0x5543f9(0xe6));const _0x25e5c9=runNpxSkillsAddGlobal(process[_0x5543f9(0xe1)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x95f3ff?'pipe':_0x5543f9(0x110)});if(_0x25e5c9[_0x5543f9(0x119)]){console['log']('\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20('+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x5543f9(0x11d));return;}if(_0x25e5c9['ok']){console['log']('\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.');return;}console[_0x5543f9(0x120)]('\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20'+(_0x25e5c9[_0x5543f9(0x105)]||'unknown')),console[_0x5543f9(0xff)](_0x5543f9(0x111));}async function execute(_0x34cdaa){const _0x4deb62=a61_0x37d028;await validateUpdateFlags(_0x34cdaa);const _0x141349=getCliVersion();console['log']('Current\x20version:\x20'+_0x141349),console[_0x4deb62(0xff)](_0x4deb62(0x11e));const _0x210cad=await resolveTargetVersion(_0x34cdaa);if(!_0x210cad){const _0x461495=_0x34cdaa[_0x4deb62(0x113)](_0x4deb62(0x10e))?_0x4deb62(0x10e):_0x4deb62(0xfa),_0x569784=_0x4deb62(0xe0)+_0x461495+_0x4deb62(0x10d);return console[_0x4deb62(0x120)](_0x569784),console[_0x4deb62(0xff)](_0x4deb62(0xf7)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x461495),{'ok':![]};}if(!shouldInstallTarget(_0x141349,_0x210cad)){const _0x253b63=_0x210cad[_0x4deb62(0x11b)]===_0x4deb62(0x114)?_0x4deb62(0xdd)+_0x210cad[_0x4deb62(0x114)]+').':_0x4deb62(0xdc)+_0x210cad[_0x4deb62(0x114)]+').';return console[_0x4deb62(0xff)](_0x253b63),shouldSkipCliBuiltInSkill(_0x34cdaa)?console[_0x4deb62(0xff)](_0x4deb62(0xf8)):await installCliBuiltInSkill(_0x34cdaa[_0x4deb62(0x10c)]),{'ok':!![]};}console[_0x4deb62(0xff)](_0x4deb62(0x116)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x141349+_0x4deb62(0xfd)+_0x210cad[_0x4deb62(0x114)]);const _0xe5c663=installCliPackage(_0x210cad['version'],_0x34cdaa[_0x4deb62(0x10c)]);if(!_0xe5c663['ok']){const _0x1e8984=_0x4deb62(0xf5)+(_0xe5c663[_0x4deb62(0x105)]||_0x4deb62(0x10a));return console[_0x4deb62(0x105)](_0x1e8984),console['log'](_0x4deb62(0x11f)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x210cad['version']),{'ok':![]};}return console['log']('Updated\x20to\x20v'+_0x210cad[_0x4deb62(0x114)]+'.'),console['log']('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'),shouldSkipCliBuiltInSkill(_0x34cdaa)?console[_0x4deb62(0xff)](_0x4deb62(0xf8)):await installCliBuiltInSkill(_0x34cdaa[_0x4deb62(0x10c)]),{'ok':!![]};}function a61_0x20c2(){const _0x5f1a9c=['13204QQVyuk','source','83138AarcTK','=1).','Checking\x20npm\x20dist-tags...','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','warn','timeout','Update\x20','stdout','status','skills','entries','1480168UKOoVy','Already\x20up\x20to\x20date\x20(v','Already\x20on\x20requested\x20version\x20(v','map','json','Unable\x20to\x20resolve\x20','cwd','stderr','/dist-tags','toString','filter','Checking\x20CLI\x20Built-in\x20Skill...','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','2632597eCICBh','1468272WfBrxI','100akvIlF','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','join','trim','update','102edGFyl','length','2565675drukfL','1425vCbldL','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','Update\x20failed:\x20','str','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','prerelease','latest','Invalid\x20version:\x20','Version\x20comparison\x20failed.','\x20->\x20','match','log','223392vLZBnZ','\x20CLI\x20from\x20npm','patch','minor','string','error','run','no-skills','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','write','unknown','major','nonInteractive','\x20version\x20from\x20npm.','beta','boolean','inherit','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','message','bool','version','validation','Updating\x20','21TxOiiL','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','skipped'];a61_0x20c2=function(){return _0x5f1a9c;};return a61_0x20c2();}export const updateDefinition={'service':a61_0x37d028(0xef),'command':a61_0x37d028(0x106),'description':a61_0x37d028(0x122)+CLI_BIN_NAME+a61_0x37d028(0x101),'risk':a61_0x37d028(0x109),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a62_0x4c6638=a62_0x56f2;(function(_0x4fdafb,_0x5ea600){const _0x934eac=a62_0x56f2,_0x121397=_0x4fdafb();while(!![]){try{const _0x39fe70=parseInt(_0x934eac(0x153))/0x1*(-parseInt(_0x934eac(0x12d))/0x2)+parseInt(_0x934eac(0x122))/0x3*(-parseInt(_0x934eac(0x124))/0x4)+parseInt(_0x934eac(0x12e))/0x5*(parseInt(_0x934eac(0x14f))/0x6)+-parseInt(_0x934eac(0x137))/0x7+parseInt(_0x934eac(0x141))/0x8+parseInt(_0x934eac(0x146))/0x9+parseInt(_0x934eac(0x123))/0xa*(parseInt(_0x934eac(0x13c))/0xb);if(_0x39fe70===_0x5ea600)break;else _0x121397['push'](_0x121397['shift']());}catch(_0x3755a0){_0x121397['push'](_0x121397['shift']());}}}(a62_0x5346,0x6bbcf));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a62_0x4c6638(0x14e),'type':a62_0x4c6638(0x144),'description':a62_0x4c6638(0x13a)},{'name':a62_0x4c6638(0x14c),'type':'string','description':a62_0x4c6638(0x127)},{'name':a62_0x4c6638(0x139),'type':a62_0x4c6638(0x144),'description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]},{'name':a62_0x4c6638(0x152),'type':'boolean','description':a62_0x4c6638(0x12a),'default':![]}];async function executeWorkspaceUse(_0x4a909f,_0x3b2f46){const _0x18165a=a62_0x4c6638,_0x527650=_0x4a909f['str']('app')[_0x18165a(0x125)](),_0x3b5a4c=_0x4a909f[_0x18165a(0x158)](_0x18165a(0x14c))[_0x18165a(0x125)](),_0x3ed361=_0x4a909f[_0x18165a(0x158)](_0x18165a(0x139))['trim'](),_0x294af3=resolveWorkspaceEnv(_0x3ed361||_0x4a909f[_0x18165a(0x12c)]||DEFAULT_CONFIG_VALUES['env']);if(!_0x527650&&!_0x3b5a4c)throw CliErrors['validation']('Missing\x20workspace\x20app\x20selector.',_0x18165a(0x150)+CLI_BIN_NAME+_0x18165a(0x154)+_0x3b2f46+_0x18165a(0x145)+CLI_BIN_NAME+_0x18165a(0x154)+_0x3b2f46+_0x18165a(0x129));const _0x2f5004=_0x3b5a4c||await resolveRemoteAppCode({'command':_0x3b2f46,'appName':_0x527650,'env':_0x294af3,'accessKey':_0x4a909f[_0x18165a(0x157)]}),_0x9db00c=writeWorkspaceConfig({'command':_0x3b2f46,'appName':_0x527650,'appcode':_0x2f5004,'env':_0x294af3,'shouldWriteEnv':!!_0x3ed361,'accessKey':_0x4a909f[_0x18165a(0x157)]});return{'ok':!![],'data':{'configPath':_0x9db00c,'app':_0x527650||null,'appcode':_0x2f5004,'env':_0x3ed361?_0x294af3:null,'accessKeyWritten':![],'command':_0x18165a(0x13e)+_0x3b2f46},'message':buildWorkspaceMessage(_0x9db00c,_0x527650,_0x2f5004,_0x3ed361?_0x294af3:undefined)};}async function resolveRemoteAppCode(_0x4ddb5a){const _0x3decbe=a62_0x4c6638;if(!_0x4ddb5a[_0x3decbe(0x157)])throw CliErrors[_0x3decbe(0x126)](_0x3decbe(0x148)+CLI_BIN_NAME+_0x3decbe(0x154)+_0x4ddb5a[_0x3decbe(0x136)]+'.');const {setActiveAK:_0x7cebfe}=await import(_0x3decbe(0x147)),{getRemoteAppList:_0x530f0e}=await import(_0x3decbe(0x151));_0x7cebfe(_0x4ddb5a[_0x3decbe(0x157)]);const _0x2ef72f=await _0x530f0e({'env':_0x4ddb5a[_0x3decbe(0x139)],'accessKey':_0x4ddb5a[_0x3decbe(0x157)],'noCache':![]}),_0x315027=findAppByName(_0x2ef72f[_0x3decbe(0x142)],_0x4ddb5a['appName']);if(_0x315027&&!isRuntimeAccessibleApp(_0x315027))throw runtimeInaccessibleAppError(_0x315027,'\x22'+_0x4ddb5a['appName']+'\x22');const _0x4fcd1a=_0x315027?.[_0x3decbe(0x14a)]?.['trim']();if(_0x4fcd1a)return _0x4fcd1a;const _0x544eb0=_0x2ef72f[_0x3decbe(0x142)][_0x3decbe(0x15a)](_0x4dc3f3=>_0x4dc3f3[_0x3decbe(0x14b)])[_0x3decbe(0x131)](Boolean),_0x5294b1=_0x544eb0[_0x3decbe(0x138)]?_0x3decbe(0x14d)+Array[_0x3decbe(0x143)](new Set(_0x544eb0))[_0x3decbe(0x156)](',\x20')+'.':_0x3decbe(0x15c)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.';throw CliErrors[_0x3decbe(0x149)]('App\x20\x22'+_0x4ddb5a['appName']+_0x3decbe(0x15d),_0x5294b1);}function a62_0x5346(){const _0x137998=['Usage:\x20','../../commands/app/remote-source.js','yes','563338QVyjSf','\x20workspace\x20','includes','join','accessKey','str','\x0aDefault\x20app:\x20','map','use','Run\x20`','\x22\x20not\x20found.','\x0aAccessKey:\x20not\x20written','997539AMVawT','3362900JjMxcB','4jbACDs','trim','authRequired','App\x20code\x20to\x20bind\x20directly','workspace','\x20--appcode\x20<code>\x20[--env\x20daily]','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','envName','2CMGgeu','5dIxxPr','Workspace\x20configured.\x0aConfig\x20file:\x20','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','filter','Invalid\x20env\x20\x22','shouldWriteEnv','\x22.\x20Allowed:\x20','defaultApp','command','5015157ftDOLx','length','env','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','object','11LCMRjh','init','workspace\x20','\x0aEnv:\x20','apps','2783552jTuxtO','items','from','string','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','6649146KFXXoP','../../core/api-client.js','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','validation','appCode','appName','appcode','Available\x20apps:\x20','app','3783414BtuXJs'];a62_0x5346=function(){return _0x137998;};return a62_0x5346();}function writeWorkspaceConfig(_0x3ce44c){const _0x396c64=a62_0x4c6638,_0x31ca9c=resolveWriteConfigPath('project'),_0x330ff2=readConfigFile(_0x31ca9c);_0x3ce44c[_0x396c64(0x133)]&&(_0x330ff2['env']=_0x3ce44c[_0x396c64(0x139)]);if(_0x3ce44c['appName']){const _0x561c8a=isRecord(_0x330ff2[_0x396c64(0x140)])?{..._0x330ff2[_0x396c64(0x140)]}:{},_0x3d12c9=isRecord(_0x561c8a[_0x3ce44c['appName']])?_0x561c8a[_0x3ce44c['appName']]:{};_0x561c8a[_0x3ce44c[_0x396c64(0x14b)]]={..._0x3d12c9,'appcode':_0x3ce44c['appcode']},_0x330ff2['apps']=_0x561c8a,_0x330ff2[_0x396c64(0x135)]=_0x3ce44c[_0x396c64(0x14b)];if(_0x330ff2[_0x396c64(0x14e)])delete _0x330ff2['app'];return writeAndReturn(_0x31ca9c,_0x330ff2);}_0x330ff2[_0x396c64(0x14c)]=_0x3ce44c[_0x396c64(0x14c)];if(_0x330ff2[_0x396c64(0x14e)])delete _0x330ff2[_0x396c64(0x14e)];return writeAndReturn(_0x31ca9c,_0x330ff2);}function writeAndReturn(_0x114dc7,_0x50b4f1){return writeConfigFile(_0x114dc7,_0x50b4f1),_0x114dc7;}function resolveWorkspaceEnv(_0xe47795){const _0x34e52b=a62_0x4c6638;if(RUNTIME_ENV_VALUES[_0x34e52b(0x155)](_0xe47795))return _0xe47795;throw CliErrors[_0x34e52b(0x149)](_0x34e52b(0x132)+_0xe47795+_0x34e52b(0x134)+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x4c493a,_0x3d3aac,_0x2ae686,_0x42e6c2){const _0x24010a=a62_0x4c6638,_0x950531=_0x3d3aac?_0x3d3aac+'\x20('+_0x2ae686+')':_0x2ae686,_0x21e6d0=_0x42e6c2?_0x24010a(0x13f)+_0x42e6c2:'';return _0x24010a(0x12f)+_0x4c493a+_0x24010a(0x159)+_0x950531+_0x21e6d0+_0x24010a(0x121);}function isRecord(_0x21932d){const _0x1caffa=a62_0x4c6638;return typeof _0x21932d===_0x1caffa(0x13b)&&_0x21932d!==null&&!Array['isArray'](_0x21932d);}function a62_0x56f2(_0x4d16cc,_0x1975e0){_0x4d16cc=_0x4d16cc-0x121;const _0x534601=a62_0x5346();let _0x56f2a4=_0x534601[_0x4d16cc];return _0x56f2a4;}function makeWorkspaceCommand(_0x3ade6c){const _0xbc7237=a62_0x4c6638;return{'service':_0xbc7237(0x128),'command':_0x3ade6c,'description':_0x3ade6c==='init'?_0xbc7237(0x12b):_0xbc7237(0x130),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x4a016f){return executeWorkspaceUse(_0x4a016f,_0x3ade6c);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a62_0x4c6638(0x13d)),makeWorkspaceCommand(a62_0x4c6638(0x15b))];
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a63_0xee3de6=a63_0x5014;(function(_0x4ee915,_0x5f6c02){const _0x6c1625=a63_0x5014,_0x6562e1=_0x4ee915();while(!![]){try{const _0x520a10=parseInt(_0x6c1625(0x1be))/0x1*(parseInt(_0x6c1625(0x1c3))/0x2)+parseInt(_0x6c1625(0x1b9))/0x3*(parseInt(_0x6c1625(0x1d6))/0x4)+parseInt(_0x6c1625(0x1d0))/0x5+parseInt(_0x6c1625(0x1d8))/0x6+parseInt(_0x6c1625(0x1c8))/0x7*(-parseInt(_0x6c1625(0x1d7))/0x8)+parseInt(_0x6c1625(0x1ca))/0x9+parseInt(_0x6c1625(0x1c1))/0xa*(-parseInt(_0x6c1625(0x1cf))/0xb);if(_0x520a10===_0x5f6c02)break;else _0x6562e1['push'](_0x6562e1['shift']());}catch(_0x379acd){_0x6562e1['push'](_0x6562e1['shift']());}}}(a63_0x48b1,0xa0596));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a63_0xee3de6(0x1cc),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a63_0xee3de6(0x1bc)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a63_0xee3de6(0x1c2)],'importable':!![]},'pageSize':{'description':a63_0xee3de6(0x1bb),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a63_0xee3de6(0x1c5),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a63_0xee3de6(0x1c7),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a63_0xee3de6(0x1bf),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a63_0xee3de6(0x1c9),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a63_0xee3de6(0x1bd),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'locale':{'description':a63_0xee3de6(0x1d9),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a63_0xee3de6(0x1d4)](CONFIG_FIELD_SCHEMAS)[a63_0xee3de6(0x1da)](([,_0xe71965])=>_0xe71965[a63_0xee3de6(0x1c0)])[a63_0xee3de6(0x1cb)](([_0x281862])=>_0x281862));export const CONFIG_ENUM_VALUES=Object[a63_0xee3de6(0x1d1)](Object[a63_0xee3de6(0x1d4)](CONFIG_FIELD_SCHEMAS)[a63_0xee3de6(0x1da)](([,_0x40666a])=>_0x40666a[a63_0xee3de6(0x1ba)])[a63_0xee3de6(0x1cb)](([_0x3a7bd4,_0x3315df])=>[_0x3a7bd4,[..._0x3315df['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a63_0xee3de6(0x1d4)](CONFIG_FIELD_SCHEMAS)[a63_0xee3de6(0x1da)](([,_0x27cc34])=>_0x27cc34[a63_0xee3de6(0x1cd)])['map'](([_0x25f674])=>_0x25f674);export function getConfigFieldSchema(_0x49251c){return CONFIG_FIELD_SCHEMAS[_0x49251c];}export function getConfigEnumValues(_0x5d0016){const _0x484974=a63_0xee3de6;return getConfigFieldSchema(_0x5d0016)?.[_0x484974(0x1ba)];}export function getConfigDefaultValue(_0x188d6e){const _0x4eea28=a63_0xee3de6;return getConfigFieldSchema(_0x188d6e)?.[_0x4eea28(0x1c4)];}function a63_0x48b1(){const _0x521ab1=['3210175GPEVzJ','fromEntries','legacyCompatOnly','has','entries','Config\x20key.\x20Top-level:\x20','5183364PLvKsw','16hVqRCM','6841998RgmGKa','Locale','filter','3nmjxTr','enumValues','Default\x20page\x20size','env','Risk\x20level','1HsbCcU','Override\x20SkillHub\x20domain','cliSettableTopLevel','10SaxSQQ','format','2055238GgbrEB','defaultValue','Override\x20user\x20domain','join','Override\x20runtime\x20domain','2709588WWZWEy','Access\x20key\x20(client-ak\x20auth)','1401327kPYyRx','map','Target\x20environment','importable',';\x20local\x20alias:\x20apps.<alias>.appcode','31136303LWWOcD'];a63_0x48b1=function(){return _0x521ab1;};return a63_0x48b1();}export function isTopLevelConfigKey(_0x163983){const _0x37aa4e=a63_0xee3de6;return TOP_LEVEL_CONFIG_KEYS[_0x37aa4e(0x1d3)](_0x163983);}export function isLegacyCompatConfigKey(_0x1d4cc7){const _0x211235=a63_0xee3de6;return getConfigFieldSchema(_0x1d4cc7)?.[_0x211235(0x1d2)]===!![];}function a63_0x5014(_0x1b7ac3,_0x2d377e){_0x1b7ac3=_0x1b7ac3-0x1b9;const _0x48b1af=a63_0x48b1();let _0x50148e=_0x48b1af[_0x1b7ac3];return _0x50148e;}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x278bf7){const _0x48ada4=a63_0xee3de6;return[..._0x278bf7][_0x48ada4(0x1c6)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x395a27=a63_0xee3de6;return _0x395a27(0x1d5)+getTopLevelConfigKeySummary()+_0x395a27(0x1ce);}export function buildAppProfileListFields(_0x439ab3){return{'env':_0x439ab3,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a64_0x40d3c6=a64_0x2c05;function a64_0x2c05(_0x50d3b5,_0x203f2e){_0x50d3b5=_0x50d3b5-0x94;const _0x2d7454=a64_0x2d74();let _0x2c05d0=_0x2d7454[_0x50d3b5];return _0x2c05d0;}function a64_0x2d74(){const _0x471c85=['8463699xLDDDz','509qoifdi','276yAfLDU','1243487VrNoFv','874830CYVtoW','PUBLISHED','2304628aGEvCw','Published','UNPUBLISH','5TjNVLn','48rAitcn','36675320QpvgOo','11009736hSpWvh'];a64_0x2d74=function(){return _0x471c85;};return a64_0x2d74();}(function(_0x2f4385,_0x173b9a){const _0x441f5b=a64_0x2c05,_0x55d258=_0x2f4385();while(!![]){try{const _0x401f64=parseInt(_0x441f5b(0x9c))/0x1*(parseInt(_0x441f5b(0x9d))/0x2)+parseInt(_0x441f5b(0x9f))/0x3+-parseInt(_0x441f5b(0x94))/0x4*(-parseInt(_0x441f5b(0x97))/0x5)+parseInt(_0x441f5b(0x98))/0x6*(-parseInt(_0x441f5b(0x9e))/0x7)+-parseInt(_0x441f5b(0x9a))/0x8+-parseInt(_0x441f5b(0x9b))/0x9+parseInt(_0x441f5b(0x99))/0xa;if(_0x401f64===_0x173b9a)break;else _0x55d258['push'](_0x55d258['shift']());}catch(_0x11258c){_0x55d258['push'](_0x55d258['shift']());}}}(a64_0x2d74,0xd3dc9));export const APP_PUBLISH_STATUS={'Published':a64_0x40d3c6(0xa0),'Unpublished':a64_0x40d3c6(0x96)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a64_0x40d3c6(0x95)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x40237a,_0x30b88d){const _0x373a69=a65_0x55a9,_0x4b3b9a=_0x40237a();while(!![]){try{const _0x3d3e85=-parseInt(_0x373a69(0xfe))/0x1+-parseInt(_0x373a69(0x103))/0x2+-parseInt(_0x373a69(0x104))/0x3+-parseInt(_0x373a69(0x107))/0x4*(-parseInt(_0x373a69(0xff))/0x5)+-parseInt(_0x373a69(0x100))/0x6*(parseInt(_0x373a69(0x102))/0x7)+-parseInt(_0x373a69(0x106))/0x8+parseInt(_0x373a69(0x105))/0x9;if(_0x3d3e85===_0x30b88d)break;else _0x4b3b9a['push'](_0x4b3b9a['shift']());}catch(_0x50312d){_0x4b3b9a['push'](_0x4b3b9a['shift']());}}}(a65_0x49d9,0xb405a));function a65_0x55a9(_0x38bde9,_0x228221){_0x38bde9=_0x38bde9-0xfe;const _0x49d99d=a65_0x49d9();let _0x55a99e=_0x49d99d[_0x38bde9];return _0x55a99e;}export const AUTH_MODE={'ClientAk':'client-ak'};function a65_0x49d9(){const _0x16b68f=['2843763naIzWh','47001843RzQFSg','7269488iKhXva','4oRfteE','752475fTvZwU','550745CAERNr','30QMbpcS','ClientAk','1970500AOGemJ','1157248GeFYRN'];a65_0x49d9=function(){return _0x16b68f;};return a65_0x49d9();}export function isAuthMode(_0x21bdb4){const _0x243b8b=a65_0x55a9;return _0x21bdb4===AUTH_MODE[_0x243b8b(0x101)];}
|