@lovrabet/lovrabet-cli 2.3.1-beta.4 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.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/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.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/diagram.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/diagram.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/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.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/region.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/kb-search-client.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/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.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/builtin-skill.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/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.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
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a146_0x223c7e=a146_0xb1d4;(function(_0x4f009c,_0x25fb76){const _0x319ee0=a146_0xb1d4,_0x32a925=_0x4f009c();while(!![]){try{const _0x394f87=-parseInt(_0x319ee0(0x18a))/0x1+parseInt(_0x319ee0(0x195))/0x2*(parseInt(_0x319ee0(0x196))/0x3)+parseInt(_0x319ee0(0x184))/0x4*(-parseInt(_0x319ee0(0x186))/0x5)+parseInt(_0x319ee0(0x194))/0x6*(parseInt(_0x319ee0(0x198))/0x7)+parseInt(_0x319ee0(0x17f))/0x8+-parseInt(_0x319ee0(0x189))/0x9+parseInt(_0x319ee0(0x180))/0xa;if(_0x394f87===_0x25fb76)break;else _0x32a925['push'](_0x32a925['shift']());}catch(_0x1bf123){_0x32a925['push'](_0x32a925['shift']());}}}(a146_0x76d5,0x94c4a));import{existsSync}from'node:fs';import{homedir}from'node:os';import{resolve}from'node:path';import{fingerprintAccessKey}from'../../commands/app/cache.js';import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0x547c28={}){const _0x507152=a146_0xb1d4,_0x2a6fd4=_0x547c28[_0x507152(0x192)]??homedir(),_0x24f5de=resolve(_0x2a6fd4,PRODUCT_CONFIG[_0x507152(0x187)],'cache'),_0x3f4f04=trimmedEnv('SKILL_ROOT'),_0x4190e9=trimmedEnv(_0x507152(0x18e)),_0xc32920=resolve(_0x2a6fd4,'.workbuddy'),_0x2154a2=_0x547c28[_0x507152(0x18d)]??(existsSync(_0xc32920)?resolve(_0xc32920,_0x507152(0x18f)):undefined);return{'homeDir':_0x2a6fd4,'cacheRoot':_0x24f5de,'managedRoot':resolve(_0x2a6fd4,PRODUCT_CONFIG['homeDirName']),'agentsSkillsDir':_0x547c28[_0x507152(0x193)]??_0x3f4f04??resolve(_0x2a6fd4,'.agents','skills'),'claudeSkillsDir':_0x547c28[_0x507152(0x191)]??_0x4190e9??resolve(_0x2a6fd4,_0x507152(0x182),_0x507152(0x18f)),'workbuddySkillsDir':_0x2154a2};}export function runtimeAgentSkillRoots(_0x34e1a1){const _0x2aca7c=a146_0xb1d4;return[_0x34e1a1[_0x2aca7c(0x193)],_0x34e1a1[_0x2aca7c(0x191)],_0x34e1a1[_0x2aca7c(0x18d)]]['filter'](_0x36de27=>Boolean(_0x36de27));}export function getRuntimeSkillCacheRoot(_0x5af4c3,_0x402b8f,_0x58cce9={}){const _0x2b4069=a146_0xb1d4,_0x2aa062=resolveSkillSyncPaths(_0x58cce9);return resolve(_0x2aa062[_0x2b4069(0x188)],_0x5af4c3,fingerprintAccessKey(_0x402b8f),_0x2b4069(0x18f));}export function getRuntimeSkillDir(_0x1713df,_0x6171fc,_0x22d20d,_0x55db7c,_0x4217e,_0x4a20a7={}){const _0x1d26d4=a146_0xb1d4;return resolve(getRuntimeSkillCacheRoot(_0x1713df,_0x6171fc,_0x4a20a7),safePathSegment(_0x22d20d,_0x1d26d4(0x183)),_0x55db7c,safePathSegment(_0x4217e,'skillCode'));}function a146_0xb1d4(_0x4149fc,_0x45479a){_0x4149fc=_0x4149fc-0x17f;const _0x76d5a4=a146_0x76d5();let _0xb1d4c3=_0x76d5a4[_0x4149fc];return _0xb1d4c3;}function a146_0x76d5(){const _0x1bf9a1=['7437120dLBrMV','path\x20segment','.claude','appCode','16RBbArr','includes','31015ttsqoJ','homeDirName','cacheRoot','7654887eOZwTI','556235OPzBKk','trim','validation','workbuddySkillsDir','CLAUDE_SKILL_ROOT','skills','Unsafe\x20','claudeSkillsDir','homeDir','agentsSkillsDir','9348HmaFmU','1769558uSEnYp','3CClWUT','\x20for\x20local\x20path:\x20','14zIlOGc','3274696iXhaXf'];a146_0x76d5=function(){return _0x1bf9a1;};return a146_0x76d5();}export function safePathSegment(_0x59f198,_0x18e15d=a146_0x223c7e(0x181)){const _0x110a7e=a146_0x223c7e;if(!_0x59f198||_0x59f198['includes']('/')||_0x59f198['includes']('\x5c')||_0x59f198[_0x110a7e(0x185)]('..'))throw CliErrors[_0x110a7e(0x18c)](_0x110a7e(0x190)+_0x18e15d+_0x110a7e(0x197)+_0x59f198);return _0x59f198;}function trimmedEnv(_0xb40e92){const _0x46eb75=a146_0x223c7e,_0x408585=productEnv(_0xb40e92)?.[_0x46eb75(0x18b)]();return _0x408585?_0x408585:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x35626e,_0x2cafaf){const _0x4fc7b3=a147_0x3adc,_0x56d972=_0x35626e();while(!![]){try{const _0xc36a6d=-parseInt(_0x4fc7b3(0xc9))/0x1+parseInt(_0x4fc7b3(0xcb))/0x2+-parseInt(_0x4fc7b3(0xe8))/0x3*(parseInt(_0x4fc7b3(0xf4))/0x4)+-parseInt(_0x4fc7b3(0xe2))/0x5+-parseInt(_0x4fc7b3(0xfd))/0x6+-parseInt(_0x4fc7b3(0xd1))/0x7+-parseInt(_0x4fc7b3(0xf1))/0x8*(-parseInt(_0x4fc7b3(0xeb))/0x9);if(_0xc36a6d===_0x2cafaf)break;else _0x56d972['push'](_0x56d972['shift']());}catch(_0x572504){_0x56d972['push'](_0x56d972['shift']());}}}(a147_0x4aae,0x5ccbb));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a147_0x4a969b}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{writeJsonAtomic}from'./fs-utils.js';import{contentHash}from'./hashing.js';import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';import{buildMetadata,readMetadataIfPresent}from'./metadata.js';function a147_0x3adc(_0x2330cc,_0x380723){_0x2330cc=_0x2330cc-0xc5;const _0x4aaecc=a147_0x4aae();let _0x3adc7b=_0x4aaecc[_0x2330cc];return _0x3adc7b;}import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0x185a71,_0x49ed53,_0x3815d5={}){const _0x15c843=a147_0x3adc,_0x7ab71d=resolvePushDirectoryRoot(_0x185a71),_0x36b635=readPushMetadataIfPresent(resolve(_0x7ab71d,METADATA_FILE),{'ignoreInvalidMetadata':_0x3815d5['ignoreInvalidMetadata']});if(_0x36b635?.[_0x15c843(0xfa)]&&_0x36b635['appCode']!==_0x49ed53&&!_0x3815d5['allowAppCodeRetarget']&&!_0x3815d5[_0x15c843(0xf2)])throw CliErrors[_0x15c843(0xd3)]('Skill\x20metadata\x20appCode\x20\x22'+_0x36b635[_0x15c843(0xfa)]+_0x15c843(0xde)+_0x49ed53+'\x22.');const _0x257a18=resolvePushSkillCode(_0x7ab71d,_0x49ed53,_0x36b635,_0x3815d5);if(!_0x257a18)throw CliErrors[_0x15c843(0xd3)]('Unable\x20to\x20resolve\x20skillCode\x20from\x20'+SKILL_FILE+',\x20'+METADATA_FILE+_0x15c843(0x102));return{'dir':_0x7ab71d,'skillCode':_0x257a18,'metadata':_0x36b635};}export function readPushDirectory(_0x2f9ca3,_0x1f3e99,_0x256aff={}){const _0xccd2c4=a147_0x3adc,_0x44eee0=resolvePushDirectoryIdentity(_0x2f9ca3,_0x1f3e99,_0x256aff),_0x220669=_0x44eee0[_0xccd2c4(0xd8)],_0x421520=resolve(_0x220669,SKILL_FILE);if(!existsSync(_0x421520)||!lstatSync(_0x421520)[_0xccd2c4(0xf3)]())throw CliErrors[_0xccd2c4(0xd3)](_0xccd2c4(0x104)+SKILL_FILE+':\x20'+_0x421520);const _0xb2a61d=_0x44eee0[_0xccd2c4(0xda)],_0xd2cbb4=_0x256aff[_0xccd2c4(0xf7)]??_0xccd2c4(0xd6);if(!_0x256aff[_0xccd2c4(0xdb)]&&_0xb2a61d?.['scope']===_0xccd2c4(0xf0))throw CliErrors[_0xccd2c4(0xd3)](_0xccd2c4(0xc6)+METADATA_FILE+_0xccd2c4(0xec)+_0xb2a61d[_0xccd2c4(0xe3)]+'\x22.');if(!_0x256aff[_0xccd2c4(0xdb)]&&_0xd2cbb4===_0xccd2c4(0xd6)&&_0xb2a61d?.[_0xccd2c4(0xe3)]&&_0xb2a61d[_0xccd2c4(0xe3)]!=='personal')throw CliErrors['validation'](_0xccd2c4(0xcd)+METADATA_FILE+_0xccd2c4(0xec)+_0xb2a61d['scope']+'\x22.',_0xccd2c4(0xd2)+_0x220669+_0xccd2c4(0xed));const _0x4b1265=scanSkillDirectory(_0x220669,{'excludedFilePaths':_0x256aff[_0xccd2c4(0xf5)]}),_0xd4608b=buildSkillPackage(_0x4b1265),_0x542f05=readFileSync(_0x421520,'utf8'),_0x247e35=_0x44eee0[_0xccd2c4(0xce)],_0x49e46e=_0x256aff[_0xccd2c4(0xcf)]?undefined:_0xb2a61d,_0x2199bc=readSkillDisplayName(_0x542f05);return{'skillCode':_0x247e35,'metadata':_0xb2a61d,'frontmatterDisplayName':_0x2199bc,'input':{'skillCode':_0x247e35,'skillName':_0x2199bc??_0x49e46e?.['skillName'],'description':_0x49e46e?.['description'],'content':_0x542f05,'files':_0xd4608b[_0xccd2c4(0xe0)],'packageBase64':_0xd4608b['packageBase64'],'tags':_0x49e46e?.[_0xccd2c4(0x103)],'version':_0x49e46e?.[_0xccd2c4(0x100)],'sourceSessionId':_0x49e46e?.[_0xccd2c4(0xcc)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x8dc13d,_0x2d652d,_0xee6c8e,_0x13a322={}){const _0xe7fe9c=a147_0x3adc,_0x5bbd6b=resolvePushDirectoryRoot(_0x8dc13d),_0x3aba48=readPushMetadataIfPresent(resolve(_0x5bbd6b,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x2d4862=requireRemoteScope(_0x2d652d),_0x5469b2=readLocalSkillContent(_0x5bbd6b),_0x386994={..._0x2d652d,'appCode':_0x2d652d[_0xe7fe9c(0xfa)]??_0xee6c8e,'skillName':_0x2d652d[_0xe7fe9c(0xca)]??_0x3aba48?.[_0xe7fe9c(0xca)],'description':_0x2d652d[_0xe7fe9c(0xd9)]??_0x3aba48?.[_0xe7fe9c(0xd9)],'example':_0x2d652d[_0xe7fe9c(0xe9)]??_0x3aba48?.[_0xe7fe9c(0xe9)],'tags':Array['isArray'](_0x2d652d['tags'])?_0x2d652d[_0xe7fe9c(0x103)]:_0x3aba48?.[_0xe7fe9c(0x103)],'sourceSessionId':_0x2d652d[_0xe7fe9c(0xcc)]??_0x3aba48?.['sourceSessionId'],'content':_0x2d652d[_0xe7fe9c(0x101)]??_0x5469b2},_0x31dcca=buildMetadata(_0x386994,_0x2d4862,_0xee6c8e,contentHash(_0x5469b2),_0x13a322['refreshedAt']);writeJsonAtomic(resolve(_0x5bbd6b,METADATA_FILE),_0x31dcca);}export function recordPushedRuntimeSkill(_0x27fb4b,_0xe75863,_0xc98044,_0x1cf972={}){const _0x2e8ff8=a147_0x3adc,_0x23869d=resolvePushDirectoryRoot(_0x27fb4b),_0x373b8f=scanSkillDirectory(_0x23869d),_0x3a7f4d=_0x373b8f[_0x2e8ff8(0xd4)](_0xc3fbe3=>_0xc3fbe3[_0x2e8ff8(0xc7)]===SKILL_FILE),_0x2d114e=_0x3a7f4d?fileText(_0x3a7f4d):'',_0x37a4e3=tryNormalizePackageManifest(_0xe75863[_0x2e8ff8(0xee)]),_0xd93ab={..._0xe75863,'content':_0xe75863[_0x2e8ff8(0x101)]??_0x2d114e,'files':_0x37a4e3},_0x30d32d=_0x37a4e3?normalizeLocalFiles(_0x373b8f)[_0x2e8ff8(0xd5)](_0xdb9ab0=>_0x37a4e3[_0x2e8ff8(0xee)][_0x2e8ff8(0xf8)](_0x952fcd=>_0x952fcd['path']===_0xdb9ab0[_0x2e8ff8(0xc7)])):undefined,_0x11a874=buildMetadata(_0xd93ab,_0x1cf972[_0x2e8ff8(0xe3)]??_0x2e8ff8(0xd6),_0xc98044,contentHash(_0xd93ab['content']??''),_0x1cf972[_0x2e8ff8(0xfc)],_0x30d32d);writeJsonAtomic(resolve(_0x23869d,METADATA_FILE),_0x11a874);}export function deriveSkillCodeFromDirectory(_0x1fdce2,_0xa37a01){const _0x773ef2=a147_0x3adc,_0x59d77e=basename(resolve(_0x1fdce2)),_0x3b6144=_0xa37a01+'--';return _0x59d77e[_0x773ef2(0xff)](_0x3b6144)?_0x59d77e['slice'](_0x3b6144[_0x773ef2(0xfe)]):_0x59d77e;}function a147_0x4aae(){const _0x2638db=['find','filter','personal','isArray','dir','description','metadata','ignoreMetadataScope','object','trim','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','replace','manifest','Invalid\x20','179680kDRAug','scope','string','unknown','ignoreMetadataSkillCode','displayName','42mNGzqq','example','\x20has\x20unsupported\x20scope\x20\x22','397017CZaPom','\x20has\x20scope=\x22','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','files','number','builtin','328yCvzoj','ignoreMetadataAppCodeMismatch','isFile','159632FBPDtv','excludedFilePaths','name','targetScope','some','Remote\x20Skill\x20','appCode','isDirectory','pushedAt','4103844GJdHQo','length','startsWith','version','content',',\x20or\x20directory\x20name.','tags','Missing\x20','company','match','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','path','(unknown)','544418vGZfHZ','skillName','892408IyEuaR','sourceSessionId','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','skillCode','ignoreMetadataForPayload','utf8','361942ryShdF','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','validation'];a147_0x4aae=function(){return _0x2638db;};return a147_0x4aae();}function resolvePushSkillCode(_0x3be65e,_0x513262,_0x27141e,_0x558647){const _0x9cd1d0=a147_0x3adc,_0x120fc8=deriveSkillCodeFromSkillFile(_0x3be65e)||deriveSkillCodeFromDirectory(_0x3be65e,_0x513262);if(_0x558647[_0x9cd1d0(0xe6)])return _0x120fc8;return _0x27141e?.[_0x9cd1d0(0xce)]?.['trim']()||_0x120fc8;}function deriveSkillCodeFromSkillFile(_0x311285){const _0x5a8682=a147_0x3adc,_0x3cf26d=resolve(_0x311285,SKILL_FILE);if(!existsSync(_0x3cf26d)||!lstatSync(_0x3cf26d)[_0x5a8682(0xf3)]())return undefined;const _0x12b6e0=readFileSync(_0x3cf26d,_0x5a8682(0xd0)),_0x23cf18=_0x12b6e0[_0x5a8682(0xc5)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x23cf18)return undefined;const _0x1c76c2=parseFrontmatterObject(_0x23cf18[0x1]??''),_0x314ae4=scalarToString(_0x1c76c2?.[_0x5a8682(0xf6)]);return _0x314ae4?slugifySkillName(_0x314ae4):undefined;}function readSkillDisplayName(_0x306bfe){const _0x45b76b=a147_0x3adc,_0x3c13b6=_0x306bfe[_0x45b76b(0xc5)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x3c13b6)return undefined;const _0x4eed77=parseFrontmatterObject(_0x3c13b6[0x1]??'');return scalarToString(_0x4eed77?.[_0x45b76b(0xe7)]);}function slugifySkillName(_0x5a65e1){const _0x4dd08=a147_0x3adc,_0x45fb08=_0x5a65e1[_0x4dd08(0xdd)]()['toLowerCase']()[_0x4dd08(0xdf)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x4dd08(0xdf)](/^-+/,'')['replace'](/-+$/,'')[_0x4dd08(0xdf)](/-{2,}/g,'-');if(!_0x45fb08)throw CliErrors[_0x4dd08(0xd3)](_0x4dd08(0xe1)+SKILL_FILE+'\x20name\x20for\x20SkillHub\x20slug\x20generation.');return _0x45fb08;}function parseFrontmatterObject(_0x1b86c8){const _0x118fa2=a147_0x3adc;try{const _0x3824d8=a147_0x4a969b(_0x1b86c8);return _0x3824d8&&typeof _0x3824d8===_0x118fa2(0xdc)&&!Array[_0x118fa2(0xd7)](_0x3824d8)?_0x3824d8:undefined;}catch{return undefined;}}function scalarToString(_0x236f40){const _0x51d707=a147_0x3adc;if(typeof _0x236f40===_0x51d707(0xe4))return _0x236f40[_0x51d707(0xdd)]();if(typeof _0x236f40===_0x51d707(0xef)||typeof _0x236f40==='boolean')return String(_0x236f40);return undefined;}function resolvePushDirectoryRoot(_0x318568){const _0x584334=a147_0x3adc,_0x492a8d=resolve(_0x318568);if(!existsSync(_0x492a8d))throw CliErrors[_0x584334(0xd3)]('Skill\x20directory\x20not\x20found:\x20'+_0x318568);const _0x3d3610=lstatSync(_0x492a8d);if(_0x3d3610[_0x584334(0xfb)]())return _0x492a8d;if(_0x3d3610['isSymbolicLink']()){const _0x38e776=realpathSync(_0x492a8d);if(lstatSync(_0x38e776)[_0x584334(0xfb)]())return _0x38e776;}throw CliErrors[_0x584334(0xd3)]('Skill\x20directory\x20not\x20found:\x20'+_0x318568);}function requireRemoteScope(_0x3a6ab8){const _0x27514c=a147_0x3adc;if(_0x3a6ab8[_0x27514c(0xe3)]===_0x27514c(0xd6)||_0x3a6ab8[_0x27514c(0xe3)]===_0x27514c(0x105)||_0x3a6ab8[_0x27514c(0xe3)]===_0x27514c(0xf0))return _0x3a6ab8['scope'];throw CliErrors[_0x27514c(0xd3)](_0x27514c(0xf9)+(_0x3a6ab8[_0x27514c(0xce)]||_0x27514c(0xc8))+_0x27514c(0xea)+(_0x3a6ab8[_0x27514c(0xe3)]??_0x27514c(0xe5))+'\x22.');}function readLocalSkillContent(_0x18261e){const _0x33bdf4=a147_0x3adc,_0xac02d7=resolve(_0x18261e,SKILL_FILE);return existsSync(_0xac02d7)&&lstatSync(_0xac02d7)[_0x33bdf4(0xf3)]()?readFileSync(_0xac02d7,_0x33bdf4(0xd0)):'';}function readPushMetadataIfPresent(_0x1575c9,_0x770062={}){try{return readMetadataIfPresent(_0x1575c9);}catch(_0x4dd626){if(_0x770062['ignoreInvalidMetadata'])return undefined;throw _0x4dd626;}}
|
|
1
|
+
(function(_0x39b207,_0x2e5a5b){const _0x5b1db6=a147_0x4759,_0x5d4a26=_0x39b207();while(!![]){try{const _0x10fd27=-parseInt(_0x5b1db6(0x208))/0x1*(parseInt(_0x5b1db6(0x202))/0x2)+parseInt(_0x5b1db6(0x21f))/0x3+parseInt(_0x5b1db6(0x212))/0x4*(-parseInt(_0x5b1db6(0x1e4))/0x5)+parseInt(_0x5b1db6(0x200))/0x6+parseInt(_0x5b1db6(0x21b))/0x7+parseInt(_0x5b1db6(0x203))/0x8+parseInt(_0x5b1db6(0x1e5))/0x9*(-parseInt(_0x5b1db6(0x1fe))/0xa);if(_0x10fd27===_0x2e5a5b)break;else _0x5d4a26['push'](_0x5d4a26['shift']());}catch(_0x453ec8){_0x5d4a26['push'](_0x5d4a26['shift']());}}}(a147_0x50f4,0x3ff7c));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a147_0x199efb}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{writeJsonAtomic}from'./fs-utils.js';import{contentHash}from'./hashing.js';import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';function a147_0x50f4(){const _0x26a364=['displayName','path','metadata','dir','description','skillCode','1409646nzGkYG','name','isSymbolicLink','ignoreInvalidMetadata','1248093LwkwzV','tags','filter','Remote\x20Skill\x20','Skill\x20directory\x20not\x20found:\x20','validation','10ANZrvJ','9wAuzcL','match','pushedAt','isArray','number','utf8',',\x20or\x20directory\x20name.','ignoreMetadataAppCodeMismatch','find','\x20has\x20unsupported\x20scope\x20\x22','Skill\x20metadata\x20appCode\x20\x22','appCode','personal','skillName','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','Missing\x20','builtin','targetScope','example','isFile','string','\x20has\x20scope=\x22','boolean','files','sourceSessionId','4778890ontgVp','ignoreMetadataForPayload','1280160UPjxlL','refreshedAt','147310fXHUiN','27544MkIVKz','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','trim','scope','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','1UvERZm','isDirectory','manifest','ignoreMetadataSkillCode','object','allowAppCodeRetarget','replace','\x20name\x20for\x20SkillHub\x20slug\x20generation.','excludedFilePaths','ignoreMetadataScope','41312aVdEWs','slice','content'];a147_0x50f4=function(){return _0x26a364;};return a147_0x50f4();}import{buildMetadata,readMetadataIfPresent}from'./metadata.js';import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0x5f3120,_0x14f8af,_0x35c4d9={}){const _0x3ad7d6=a147_0x4759,_0x4ef7c8=resolvePushDirectoryRoot(_0x5f3120),_0x6bd7fc=readPushMetadataIfPresent(resolve(_0x4ef7c8,METADATA_FILE),{'ignoreInvalidMetadata':_0x35c4d9[_0x3ad7d6(0x21e)]});if(_0x6bd7fc?.['appCode']&&_0x6bd7fc[_0x3ad7d6(0x1f0)]!==_0x14f8af&&!_0x35c4d9[_0x3ad7d6(0x20d)]&&!_0x35c4d9[_0x3ad7d6(0x1ec)])throw CliErrors['validation'](_0x3ad7d6(0x1ef)+_0x6bd7fc[_0x3ad7d6(0x1f0)]+_0x3ad7d6(0x207)+_0x14f8af+'\x22.');const _0x5cad40=resolvePushSkillCode(_0x4ef7c8,_0x14f8af,_0x6bd7fc,_0x35c4d9);if(!_0x5cad40)throw CliErrors[_0x3ad7d6(0x224)]('Unable\x20to\x20resolve\x20skillCode\x20from\x20'+SKILL_FILE+',\x20'+METADATA_FILE+_0x3ad7d6(0x1eb));return{'dir':_0x4ef7c8,'skillCode':_0x5cad40,'metadata':_0x6bd7fc};}export function readPushDirectory(_0x5ce1fb,_0x316659,_0x2f777d={}){const _0x390a7b=a147_0x4759,_0x4f4999=resolvePushDirectoryIdentity(_0x5ce1fb,_0x316659,_0x2f777d),_0x11b9f0=_0x4f4999[_0x390a7b(0x218)],_0x3fe9fd=resolve(_0x11b9f0,SKILL_FILE);if(!existsSync(_0x3fe9fd)||!lstatSync(_0x3fe9fd)[_0x390a7b(0x1f8)]())throw CliErrors[_0x390a7b(0x224)](_0x390a7b(0x1f4)+SKILL_FILE+':\x20'+_0x3fe9fd);const _0x158fd4=_0x4f4999[_0x390a7b(0x217)],_0x13fd91=_0x2f777d[_0x390a7b(0x1f6)]??_0x390a7b(0x1f1);if(!_0x2f777d[_0x390a7b(0x211)]&&_0x158fd4?.[_0x390a7b(0x206)]===_0x390a7b(0x1f5))throw CliErrors[_0x390a7b(0x224)]('Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20'+METADATA_FILE+'\x20has\x20scope=\x22'+_0x158fd4[_0x390a7b(0x206)]+'\x22.');if(!_0x2f777d[_0x390a7b(0x211)]&&_0x13fd91===_0x390a7b(0x1f1)&&_0x158fd4?.[_0x390a7b(0x206)]&&_0x158fd4[_0x390a7b(0x206)]!==_0x390a7b(0x1f1))throw CliErrors['validation'](_0x390a7b(0x1f3)+METADATA_FILE+_0x390a7b(0x1fa)+_0x158fd4['scope']+'\x22.',_0x390a7b(0x204)+_0x11b9f0+'\x20to\x20submit\x20company\x20Skills\x20for\x20review.');const _0x4007d4=scanSkillDirectory(_0x11b9f0,{'excludedFilePaths':_0x2f777d[_0x390a7b(0x210)]}),_0x4e3d6f=buildSkillPackage(_0x4007d4),_0x3763c6=readFileSync(_0x3fe9fd,_0x390a7b(0x1ea)),_0x11b8fb=_0x4f4999['skillCode'],_0x3af86e=_0x2f777d[_0x390a7b(0x1ff)]?undefined:_0x158fd4,_0x506db2=readSkillDisplayName(_0x3763c6);return{'skillCode':_0x11b8fb,'metadata':_0x158fd4,'frontmatterDisplayName':_0x506db2,'input':{'skillCode':_0x11b8fb,'skillName':_0x506db2??_0x3af86e?.[_0x390a7b(0x1f2)],'description':_0x3af86e?.[_0x390a7b(0x219)],'content':_0x3763c6,'files':_0x4e3d6f[_0x390a7b(0x20a)],'packageBase64':_0x4e3d6f['packageBase64'],'tags':_0x3af86e?.[_0x390a7b(0x220)],'version':_0x3af86e?.['version'],'sourceSessionId':_0x3af86e?.[_0x390a7b(0x1fd)]}};}export function refreshPushDirectoryMetadataFromRemote(_0xdfce80,_0x4a29b7,_0x3cfce0,_0x1862e2={}){const _0x787928=a147_0x4759,_0x1c433b=resolvePushDirectoryRoot(_0xdfce80),_0x4fd437=readPushMetadataIfPresent(resolve(_0x1c433b,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x13e035=requireRemoteScope(_0x4a29b7),_0x26d46b=readLocalSkillContent(_0x1c433b),_0x211e10={..._0x4a29b7,'appCode':_0x4a29b7[_0x787928(0x1f0)]??_0x3cfce0,'skillName':_0x4a29b7[_0x787928(0x1f2)]??_0x4fd437?.[_0x787928(0x1f2)],'description':_0x4a29b7[_0x787928(0x219)]??_0x4fd437?.[_0x787928(0x219)],'example':_0x4a29b7[_0x787928(0x1f7)]??_0x4fd437?.['example'],'tags':Array[_0x787928(0x1e8)](_0x4a29b7[_0x787928(0x220)])?_0x4a29b7['tags']:_0x4fd437?.[_0x787928(0x220)],'sourceSessionId':_0x4a29b7['sourceSessionId']??_0x4fd437?.[_0x787928(0x1fd)],'content':_0x4a29b7[_0x787928(0x214)]??_0x26d46b},_0x258c97=buildMetadata(_0x211e10,_0x13e035,_0x3cfce0,contentHash(_0x26d46b),_0x1862e2[_0x787928(0x201)]);writeJsonAtomic(resolve(_0x1c433b,METADATA_FILE),_0x258c97);}export function recordPushedRuntimeSkill(_0x1952ce,_0x49ac31,_0xf50b53,_0x555983={}){const _0x4b1ea7=a147_0x4759,_0x44be70=resolvePushDirectoryRoot(_0x1952ce),_0x4bda7e=scanSkillDirectory(_0x44be70),_0x5a1b40=_0x4bda7e[_0x4b1ea7(0x1ed)](_0x6f9adc=>_0x6f9adc[_0x4b1ea7(0x216)]===SKILL_FILE),_0x149d08=_0x5a1b40?fileText(_0x5a1b40):'',_0x568ebf=tryNormalizePackageManifest(_0x49ac31[_0x4b1ea7(0x1fc)]),_0x173bb9={..._0x49ac31,'content':_0x49ac31[_0x4b1ea7(0x214)]??_0x149d08,'files':_0x568ebf},_0x479068=_0x568ebf?normalizeLocalFiles(_0x4bda7e)[_0x4b1ea7(0x221)](_0x4fdb88=>_0x568ebf[_0x4b1ea7(0x1fc)]['some'](_0x3bbc07=>_0x3bbc07['path']===_0x4fdb88['path'])):undefined,_0x14bdc0=buildMetadata(_0x173bb9,_0x555983['scope']??_0x4b1ea7(0x1f1),_0xf50b53,contentHash(_0x173bb9[_0x4b1ea7(0x214)]??''),_0x555983[_0x4b1ea7(0x1e7)],_0x479068);writeJsonAtomic(resolve(_0x44be70,METADATA_FILE),_0x14bdc0);}export function deriveSkillCodeFromDirectory(_0x3ae12c,_0x4ee9e2){const _0x4df175=a147_0x4759,_0x5af5ff=basename(resolve(_0x3ae12c)),_0x196349=_0x4ee9e2+'--';return _0x5af5ff['startsWith'](_0x196349)?_0x5af5ff[_0x4df175(0x213)](_0x196349['length']):_0x5af5ff;}function resolvePushSkillCode(_0x297f23,_0x396c25,_0x446e8a,_0x4971ee){const _0x544f98=a147_0x4759,_0x441eea=deriveSkillCodeFromSkillFile(_0x297f23)||deriveSkillCodeFromDirectory(_0x297f23,_0x396c25);if(_0x4971ee[_0x544f98(0x20b)])return _0x441eea;return _0x446e8a?.[_0x544f98(0x21a)]?.[_0x544f98(0x205)]()||_0x441eea;}function deriveSkillCodeFromSkillFile(_0x393a91){const _0x2cb535=a147_0x4759,_0x5b523e=resolve(_0x393a91,SKILL_FILE);if(!existsSync(_0x5b523e)||!lstatSync(_0x5b523e)[_0x2cb535(0x1f8)]())return undefined;const _0x5892ae=readFileSync(_0x5b523e,_0x2cb535(0x1ea)),_0x3b5fc7=_0x5892ae[_0x2cb535(0x1e6)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x3b5fc7)return undefined;const _0x1fe0b4=parseFrontmatterObject(_0x3b5fc7[0x1]??''),_0x2b4f10=scalarToString(_0x1fe0b4?.[_0x2cb535(0x21c)]);return _0x2b4f10?slugifySkillName(_0x2b4f10):undefined;}function readSkillDisplayName(_0x5454dd){const _0x14a1ad=a147_0x4759,_0x33a510=_0x5454dd[_0x14a1ad(0x1e6)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x33a510)return undefined;const _0xc381a9=parseFrontmatterObject(_0x33a510[0x1]??'');return scalarToString(_0xc381a9?.[_0x14a1ad(0x215)]);}function slugifySkillName(_0x3140e9){const _0x32e7eb=a147_0x4759,_0x3a3b17=_0x3140e9[_0x32e7eb(0x205)]()['toLowerCase']()[_0x32e7eb(0x20e)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x32e7eb(0x20e)](/^-+/,'')[_0x32e7eb(0x20e)](/-+$/,'')[_0x32e7eb(0x20e)](/-{2,}/g,'-');if(!_0x3a3b17)throw CliErrors[_0x32e7eb(0x224)]('Invalid\x20'+SKILL_FILE+_0x32e7eb(0x20f));return _0x3a3b17;}function a147_0x4759(_0x3c60f8,_0x3a92e5){_0x3c60f8=_0x3c60f8-0x1e4;const _0x50f4f8=a147_0x50f4();let _0x4759a9=_0x50f4f8[_0x3c60f8];return _0x4759a9;}function parseFrontmatterObject(_0x1907de){const _0x205c44=a147_0x4759;try{const _0x287417=a147_0x199efb(_0x1907de);return _0x287417&&typeof _0x287417===_0x205c44(0x20c)&&!Array['isArray'](_0x287417)?_0x287417:undefined;}catch{return undefined;}}function scalarToString(_0x25d5e6){const _0x21eb75=a147_0x4759;if(typeof _0x25d5e6===_0x21eb75(0x1f9))return _0x25d5e6[_0x21eb75(0x205)]();if(typeof _0x25d5e6===_0x21eb75(0x1e9)||typeof _0x25d5e6===_0x21eb75(0x1fb))return String(_0x25d5e6);return undefined;}function resolvePushDirectoryRoot(_0x50af47){const _0x3d311e=a147_0x4759,_0x380cb5=resolve(_0x50af47);if(!existsSync(_0x380cb5))throw CliErrors[_0x3d311e(0x224)](_0x3d311e(0x223)+_0x50af47);const _0x202790=lstatSync(_0x380cb5);if(_0x202790[_0x3d311e(0x209)]())return _0x380cb5;if(_0x202790[_0x3d311e(0x21d)]()){const _0x38a19a=realpathSync(_0x380cb5);if(lstatSync(_0x38a19a)[_0x3d311e(0x209)]())return _0x38a19a;}throw CliErrors['validation'](_0x3d311e(0x223)+_0x50af47);}function requireRemoteScope(_0x256eb1){const _0x754ac=a147_0x4759;if(_0x256eb1[_0x754ac(0x206)]===_0x754ac(0x1f1)||_0x256eb1[_0x754ac(0x206)]==='company'||_0x256eb1['scope']===_0x754ac(0x1f5))return _0x256eb1['scope'];throw CliErrors['validation'](_0x754ac(0x222)+(_0x256eb1[_0x754ac(0x21a)]||'(unknown)')+_0x754ac(0x1ee)+(_0x256eb1['scope']??'unknown')+'\x22.');}function readLocalSkillContent(_0x2c3015){const _0xeb807d=a147_0x4759,_0x199e84=resolve(_0x2c3015,SKILL_FILE);return existsSync(_0x199e84)&&lstatSync(_0x199e84)[_0xeb807d(0x1f8)]()?readFileSync(_0x199e84,_0xeb807d(0x1ea)):'';}function readPushMetadataIfPresent(_0x483410,_0x3c378c={}){try{return readMetadataIfPresent(_0x483410);}catch(_0x23318a){if(_0x3c378c['ignoreInvalidMetadata'])return undefined;throw _0x23318a;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a148_0x3903(_0x58642b,_0x497850){_0x58642b=_0x58642b-0x110;const _0x2d6e0e=a148_0x2d6e();let _0x39032f=_0x2d6e0e[_0x58642b];return _0x39032f;}function a148_0x2d6e(){const _0x39eccd=['validation','622mTBgPr','length','7134fKWewS','9531009XIAEWd','Unsupported\x20runtime\x20Skill\x20scope:\x20','company','895UqOMgr','39330258aVNjTP','10TDMeJh','19268ZUbPui','builtin','push','includes','120DZFzTF','24283ASRgtf','personal','1423134VbHKKZ','457256dRxIGF'];a148_0x2d6e=function(){return _0x39eccd;};return a148_0x2d6e();}(function(_0x3b18b9,_0x1d5c79){const _0x955e3f=a148_0x3903,_0x25ce0c=_0x3b18b9();while(!![]){try{const _0x19f2d5=-parseInt(_0x955e3f(0x110))/0x1+parseInt(_0x955e3f(0x112))/0x2*(-parseInt(_0x955e3f(0x114))/0x3)+parseInt(_0x955e3f(0x11b))/0x4*(-parseInt(_0x955e3f(0x118))/0x5)+parseInt(_0x955e3f(0x122))/0x6+-parseInt(_0x955e3f(0x120))/0x7*(parseInt(_0x955e3f(0x11f))/0x8)+parseInt(_0x955e3f(0x115))/0x9*(-parseInt(_0x955e3f(0x11a))/0xa)+parseInt(_0x955e3f(0x119))/0xb;if(_0x19f2d5===_0x1d5c79)break;else _0x25ce0c['push'](_0x25ce0c['shift']());}catch(_0x470451){_0x25ce0c['push'](_0x25ce0c['shift']());}}}(a148_0x2d6e,0x9ce0e));import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x1bb0b8){const _0x5a7399=a148_0x3903,_0x3f10c4=_0x1bb0b8&&_0x1bb0b8[_0x5a7399(0x113)]>0x0?_0x1bb0b8:[_0x5a7399(0x121),'company',_0x5a7399(0x11c)],_0x1ec22b=[];for(const _0x90011f of _0x3f10c4){if(!isRuntimeSkillScope(_0x90011f))throw CliErrors[_0x5a7399(0x111)](_0x5a7399(0x116)+_0x90011f);!_0x1ec22b[_0x5a7399(0x11e)](_0x90011f)&&_0x1ec22b[_0x5a7399(0x11d)](_0x90011f);}return _0x1ec22b;}export function isRuntimeSkillScope(_0x569788){const _0x28f102=a148_0x3903;return _0x569788===_0x28f102(0x121)||_0x569788===_0x28f102(0x117)||_0x569788===_0x28f102(0x11c);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a150_0x4a7c(){const _0x37191a=['validation_error','entries','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','length','code','map','7659264WHhJHg','name','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','1980-01-01T00:00:00.000Z','508tIggKk','validation','1121000VOTlru','7468590tWiohf','5141375rDTDot','1664362UiCSIi','from','3279taAeFM','1432504CgbwaS','sort'];a150_0x4a7c=function(){return _0x37191a;};return a150_0x4a7c();}const a150_0x2ff45b=a150_0x954d;(function(_0x3cf152,_0x201d82){const _0x4d4737=a150_0x954d,_0xb7d275=_0x3cf152();while(!![]){try{const _0x43e4aa=parseInt(_0x4d4737(0x1f9))/0x1+parseInt(_0x4d4737(0x1f3))/0x2+parseInt(_0x4d4737(0x1f8))/0x3*(-parseInt(_0x4d4737(0x1f1))/0x4)+-parseInt(_0x4d4737(0x1f5))/0x5+-parseInt(_0x4d4737(0x1f4))/0x6+parseInt(_0x4d4737(0x1f6))/0x7+parseInt(_0x4d4737(0x1ed))/0x8;if(_0x43e4aa===_0x201d82)break;else _0xb7d275['push'](_0xb7d275['shift']());}catch(_0x51f515){_0xb7d275['push'](_0xb7d275['shift']());}}}(a150_0x4a7c,0xbd887));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a150_0x2ff45b(0x1f0));export function createDeterministicZipPackage(_0x280a6f){const _0x7e0751=a150_0x2ff45b,_0x27d544={};for(const _0x281784 of normalizeLocalFiles(_0x280a6f)){_0x27d544[_0x281784['path']]=fileContent(_0x281784);}return Buffer[_0x7e0751(0x1f7)](zipSync(_0x27d544,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x24f34b){const _0x39ed35=a150_0x2ff45b;if(_0x24f34b[_0x39ed35(0x1ea)]<0x16)throw CliErrors[_0x39ed35(0x1f2)](_0x39ed35(0x1ef));let _0x17aa8a;try{_0x17aa8a=unzipSync(_0x24f34b,{'filter'(_0x41e29e){const _0x166516=_0x39ed35,_0x5e6961=normalizeSkillRelativePath(_0x41e29e[_0x166516(0x1ee)]);if(_0x5e6961['endsWith']('/'))throw CliErrors[_0x166516(0x1f2)](_0x166516(0x1e9)+_0x5e6961);return!![];}});}catch(_0x3c487f){if(isRuntimeSkillValidationError(_0x3c487f))throw _0x3c487f;throw CliErrors['validation'](_0x39ed35(0x1ef));}return Object[_0x39ed35(0x1e8)](_0x17aa8a)[_0x39ed35(0x1ec)](([_0xc7cb47,_0x528416])=>({'path':normalizeSkillRelativePath(_0xc7cb47),'bytes':Buffer[_0x39ed35(0x1f7)](_0x528416)}))[_0x39ed35(0x1e6)](compareSkillFiles);}function a150_0x954d(_0xfda74a,_0x2277a0){_0xfda74a=_0xfda74a-0x1e6;const _0x4a7c9a=a150_0x4a7c();let _0x954dac=_0x4a7c9a[_0xfda74a];return _0x954dac;}function isRuntimeSkillValidationError(_0x551964){const _0x3b1e27=a150_0x2ff45b;return typeof _0x551964==='object'&&_0x551964!==null&&'code'in _0x551964&&_0x551964[_0x3b1e27(0x1eb)]===_0x3b1e27(0x1e7);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x793ec9,_0x2044cd){const _0x5701c9=a151_0x4eb7,_0x471cf3=_0x793ec9();while(!![]){try{const _0x79550b=-parseInt(_0x5701c9(0x136))/0x1+parseInt(_0x5701c9(0x11f))/0x2+-parseInt(_0x5701c9(0x134))/0x3*(parseInt(_0x5701c9(0x12e))/0x4)+-parseInt(_0x5701c9(0x131))/0x5+-parseInt(_0x5701c9(0x123))/0x6*(-parseInt(_0x5701c9(0x13f))/0x7)+-parseInt(_0x5701c9(0x124))/0x8*(parseInt(_0x5701c9(0x116))/0x9)+parseInt(_0x5701c9(0x12c))/0xa;if(_0x79550b===_0x2044cd)break;else _0x471cf3['push'](_0x471cf3['shift']());}catch(_0x1ff423){_0x471cf3['push'](_0x471cf3['shift']());}}}(a151_0x3e31,0x9fd6d));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0xaa420c){const _0x312bc7=a151_0x4eb7,_0x2ec61b=normalizeLocalFiles(_0xaa420c);if(!_0x2ec61b[_0x312bc7(0x12d)](_0x479a19=>_0x479a19[_0x312bc7(0x11c)]===SKILL_FILE))throw CliErrors[_0x312bc7(0x120)](_0x312bc7(0x122)+SKILL_FILE+_0x312bc7(0x128));const _0x479d4f=localFilesToManifestFiles(_0x2ec61b),_0x3c8654=createDeterministicZipPackage(_0x2ec61b);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x479d4f),'zipSha256':bufferSha256(_0x3c8654),'zipSize':_0x3c8654['length'],'files':_0x479d4f},'packageBytes':_0x3c8654,'packageBase64':_0x3c8654[_0x312bc7(0x133)](_0x312bc7(0x118))};}export function verifyRuntimeSkillPackage(_0x141cbf,_0x3cb8ca){const _0x2428ea=a151_0x4eb7,_0x4e55d7=normalizePackageManifest(_0x141cbf,{'requireOssPath':![]});if(!_0x4e55d7)throw CliErrors[_0x2428ea(0x120)](_0x2428ea(0x141));return extractAndVerifyPackage(_0x4e55d7,_0x3cb8ca);}export function verifyRuntimeSkillBundle(_0x3ae6f2,_0x4c0d94){const _0x31b3c2=a151_0x4eb7,_0xf147f8=normalizePackageManifest(_0x3ae6f2,{'requireOssPath':![]});if(!_0xf147f8)throw CliErrors[_0x31b3c2(0x120)](_0x31b3c2(0x141));return extractAndVerifyPackageFiles(_0xf147f8,_0x4c0d94);}export function tryNormalizePackageManifest(_0x47327d){return normalizePackageManifest(_0x47327d,{'requireOssPath':![]});}function a151_0x3e31(){const _0x58854c=['treeSha256','length','Runtime\x20Skill\x20package\x20is\x20missing\x20','zipSha256','map','files','schemaVersion','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','7BFjHFi','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','trim','set','toLowerCase','263637femmHK','isArray','base64','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','zipSize','ossPath','path','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','object','2488336nloFwE','validation','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','Missing\x20','438054FVpJeR','304BLgqJX','isSafeInteger','sha256','requireOssPath','\x20in\x20Skill\x20file\x20package.','bytes','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','get','20223320QPXaJN','some','2939740jnWQAk','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','size','1318000CqnbGX','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','toString','3sFxNCQ','has','573139DZQeWF'];a151_0x3e31=function(){return _0x58854c;};return a151_0x3e31();}export function requirePackageBytes(_0x4a3f2b,_0x1b9e84){const _0x59b38a=a151_0x4eb7;if(!_0x1b9e84||_0x1b9e84[_0x59b38a(0x138)]===0x0)throw CliErrors[_0x59b38a(0x120)]('Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20'+_0x4a3f2b);return _0x1b9e84;}export function extractDownloadedPackage(_0x531337){const _0x2c68ed=a151_0x4eb7,_0xc2e397=parseZipPackage(_0x531337)[_0x2c68ed(0x13b)](_0x595cd2=>({'path':_0x595cd2[_0x2c68ed(0x11c)],'bytes':_0x595cd2[_0x2c68ed(0x129)]}));if(!_0xc2e397[_0x2c68ed(0x12d)](_0x68afd7=>_0x68afd7[_0x2c68ed(0x11c)]===SKILL_FILE))throw CliErrors[_0x2c68ed(0x120)](_0x2c68ed(0x139)+SKILL_FILE+'.');return normalizeLocalFiles(_0xc2e397);}export function localFilesToManifestFiles(_0x227ef2){const _0x32a5e0=a151_0x4eb7;return normalizeLocalFiles(_0x227ef2)[_0x32a5e0(0x13b)](_0x59621c=>({'path':_0x59621c[_0x32a5e0(0x11c)],'sha256':fileHash(_0x59621c),'size':fileContent(_0x59621c)[_0x32a5e0(0x138)]}));}function normalizePackageManifest(_0x38a7a6,_0x2705d2){const _0x234c4b=a151_0x4eb7;if(!_0x38a7a6||typeof _0x38a7a6!==_0x234c4b(0x11e)||Array[_0x234c4b(0x117)](_0x38a7a6))return undefined;const _0x77310d=_0x38a7a6,_0x465b6b=typeof _0x77310d[_0x234c4b(0x11b)]==='string'?_0x77310d[_0x234c4b(0x11b)][_0x234c4b(0x142)]():undefined;if(_0x2705d2[_0x234c4b(0x127)]&&!_0x465b6b)return undefined;if(!Array[_0x234c4b(0x117)](_0x77310d['files'])||_0x77310d['files'][_0x234c4b(0x138)]===0x0)return undefined;if(!isSha256Hex(_0x77310d[_0x234c4b(0x137)]))throw CliErrors['validation'](_0x234c4b(0x140));if(!isSha256Hex(_0x77310d['zipSha256']))throw CliErrors['validation'](_0x234c4b(0x119));if(!Number[_0x234c4b(0x125)](_0x77310d[_0x234c4b(0x11a)])||_0x77310d[_0x234c4b(0x11a)]<0x0)throw CliErrors[_0x234c4b(0x120)](_0x234c4b(0x132));const _0x4bc351=normalizeManifestFiles(_0x77310d[_0x234c4b(0x13c)]);if(!_0x4bc351[_0x234c4b(0x12d)](_0x29c2d7=>_0x29c2d7[_0x234c4b(0x11c)]===SKILL_FILE))throw CliErrors[_0x234c4b(0x120)](_0x234c4b(0x12f)+SKILL_FILE+'.');const _0xebe21d=fileTreeHash(_0x4bc351);if(_0xebe21d!==_0x77310d['treeSha256'][_0x234c4b(0x115)]())throw CliErrors['validation'](_0x234c4b(0x13e));return{'schemaVersion':Number[_0x234c4b(0x125)](_0x77310d['schemaVersion'])?_0x77310d[_0x234c4b(0x13d)]:0x2,'ossPath':_0x465b6b,'treeSha256':_0xebe21d,'zipSha256':_0x77310d[_0x234c4b(0x13a)]['toLowerCase'](),'zipSize':_0x77310d[_0x234c4b(0x11a)],'files':_0x4bc351};}function a151_0x4eb7(_0x405217,_0x4ce977){_0x405217=_0x405217-0x115;const _0x3e310a=a151_0x3e31();let _0x4eb765=_0x3e310a[_0x405217];return _0x4eb765;}function extractAndVerifyPackage(_0x48a5da,_0x507120){const _0x5beb48=a151_0x4eb7,_0x801084=normalizePackageManifest(_0x48a5da,{'requireOssPath':![]});if(!_0x801084)throw CliErrors[_0x5beb48(0x120)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');if(_0x507120[_0x5beb48(0x138)]!==_0x801084[_0x5beb48(0x11a)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x441c0a=bufferSha256(_0x507120);if(_0x441c0a!==_0x801084[_0x5beb48(0x13a)])throw CliErrors['validation'](_0x5beb48(0x121));return extractAndVerifyPackageFiles(_0x801084,_0x507120);}function extractAndVerifyPackageFiles(_0x5959f9,_0x11599c){const _0x49fb88=a151_0x4eb7,_0x1dbf99=parseZipPackage(_0x11599c);if(_0x1dbf99['length']!==_0x5959f9[_0x49fb88(0x13c)][_0x49fb88(0x138)])throw CliErrors[_0x49fb88(0x120)](_0x49fb88(0x11d));const _0x2de272=new Map();for(const _0xc6f8bf of _0x1dbf99){if(_0x2de272[_0x49fb88(0x135)](_0xc6f8bf[_0x49fb88(0x11c)]))throw CliErrors[_0x49fb88(0x120)]('Duplicate\x20Skill\x20package\x20entry:\x20'+_0xc6f8bf['path']);_0x2de272[_0x49fb88(0x143)](_0xc6f8bf[_0x49fb88(0x11c)],_0xc6f8bf);}const _0x22b0b0=[];for(const _0x2ba735 of _0x5959f9[_0x49fb88(0x13c)]){const _0x5ad5bb=_0x2de272[_0x49fb88(0x12b)](_0x2ba735['path']);if(!_0x5ad5bb)throw CliErrors[_0x49fb88(0x120)]('Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20'+_0x2ba735['path']);if(_0x5ad5bb[_0x49fb88(0x129)][_0x49fb88(0x138)]!==_0x2ba735[_0x49fb88(0x130)])throw CliErrors[_0x49fb88(0x120)]('Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'+_0x2ba735['path']);const _0xc3d22d=bufferSha256(_0x5ad5bb[_0x49fb88(0x129)]);if(_0xc3d22d!==_0x2ba735[_0x49fb88(0x126)])throw CliErrors[_0x49fb88(0x120)](_0x49fb88(0x12a)+_0x2ba735[_0x49fb88(0x11c)]);_0x22b0b0['push']({'path':_0x2ba735[_0x49fb88(0x11c)],'bytes':_0x5ad5bb[_0x49fb88(0x129)]});}return normalizeLocalFiles(_0x22b0b0);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4cda8e,_0x50905e){var _0x555de1=a152_0x1015,_0x371717=_0x4cda8e();while(!![]){try{var _0x17d8d6=parseInt(_0x555de1(0x126))/0x1+-parseInt(_0x555de1(0x129))/0x2*(parseInt(_0x555de1(0x12c))/0x3)+parseInt(_0x555de1(0x12e))/0x4*(parseInt(_0x555de1(0x127))/0x5)+-parseInt(_0x555de1(0x128))/0x6+-parseInt(_0x555de1(0x12b))/0x7+-parseInt(_0x555de1(0x12d))/0x8*(-parseInt(_0x555de1(0x124))/0x9)+-parseInt(_0x555de1(0x12a))/0xa*(parseInt(_0x555de1(0x125))/0xb);if(_0x17d8d6===_0x50905e)break;else _0x371717['push'](_0x371717['shift']());}catch(_0x32266f){_0x371717['push'](_0x371717['shift']());}}}(a152_0x26a6,0x1d634));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{resolveRuntimeSkillInstallTarget}from'./runtime-skill-sync/install-target.js';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill,reuseMaterializedRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';function a152_0x1015(_0x5af0eb,_0x1912cc){_0x5af0eb=_0x5af0eb-0x124;var _0x26a661=a152_0x26a6();var _0x101582=_0x26a661[_0x5af0eb];return _0x101582;}export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';function a152_0x26a6(){var _0x1488a0=['7045QQSifm','458100pAYYUj','116hOhaYa','10XFvjpu','1042979JieFzx','5289QTlwgA','26208zRhXik','628DTLPAz','306RNWIYc','62018KizGHk','121014lhPEfn'];a152_0x26a6=function(){return _0x1488a0;};return a152_0x26a6();}export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a153_0x3a3c3b=a153_0x118c;(function(_0x565019,_0x458e67){const _0x57d196=a153_0x118c,_0x59f850=_0x565019();while(!![]){try{const _0x32e296=-parseInt(_0x57d196(0x1a5))/0x1+-parseInt(_0x57d196(0x1a7))/0x2+-parseInt(_0x57d196(0x1c0))/0x3*(-parseInt(_0x57d196(0x1ba))/0x4)+-parseInt(_0x57d196(0x1b5))/0x5*(-parseInt(_0x57d196(0x1b9))/0x6)+parseInt(_0x57d196(0x1b6))/0x7*(parseInt(_0x57d196(0x1c3))/0x8)+parseInt(_0x57d196(0x1aa))/0x9+-parseInt(_0x57d196(0x1a3))/0xa;if(_0x32e296===_0x458e67)break;else _0x59f850['push'](_0x59f850['shift']());}catch(_0x56fa8e){_0x59f850['push'](_0x59f850['shift']());}}}(a153_0xc01d,0xe8994));import{existsSync,readFileSync}from'node:fs';function a153_0xc01d(){const _0x3bf1a8=['.skill-lock.json','7684504GckVib','23756680qjwpTO','\x20records\x20\x22','524306PItBFS','utf8','2184038ZjykSg','\x20is\x20unreadable:\x20','not-recorded','14533947NOzWcE','kind','.agents','reason','unverifiable','version','find','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','parse','includes','unusable','1277585gMokkv','7CDOPRW','map','skills','42RPojDO','1161304PItzvw','SKILL.md','message','present','\x20uses\x20unsupported\x20version\x20','join','6rqfSzB','.claude'];a153_0xc01d=function(){return _0x3bf1a8;};return a153_0xc01d();}import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a153_0x3a3c3b(0x1ac),a153_0x3a3c3b(0x1c2));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a153_0x3a3c3b(0x1b8)),join(a153_0x3a3c3b(0x1c1),a153_0x3a3c3b(0x1b8))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x332505,_0x16f56f){const _0x340aca=a153_0x3a3c3b;if(!existsSync(_0x332505))return{'kind':'not-recorded'};let _0xed8faf;try{_0xed8faf=JSON[_0x340aca(0x1b2)](readFileSync(_0x332505,_0x340aca(0x1a6)));}catch(_0x9f969d){return{'kind':'unusable','reason':_0x332505+_0x340aca(0x1a8)+_0x9f969d[_0x340aca(0x1bc)]};}const _0x52119a=_0xed8faf;if(typeof _0x52119a?.[_0x340aca(0x1af)]!=='number'||!SUPPORTED_LOCK_VERSIONS[_0x340aca(0x1b3)](_0x52119a['version']))return{'kind':_0x340aca(0x1b4),'reason':_0x332505+_0x340aca(0x1be)+String(_0x52119a?.['version'])};if(!_0x52119a[_0x340aca(0x1b8)]||typeof _0x52119a[_0x340aca(0x1b8)]!=='object')return{'kind':_0x340aca(0x1b4),'reason':_0x332505+'\x20has\x20no\x20skills\x20map'};return _0x52119a['skills'][_0x16f56f]?{'kind':'recorded'}:{'kind':_0x340aca(0x1a9)};}function a153_0x118c(_0x199b09,_0x4178e9){_0x199b09=_0x199b09-0x1a3;const _0xc01d98=a153_0xc01d();let _0x118c4d=_0xc01d98[_0x199b09];return _0x118c4d;}export function resolveInstalledSkill(_0x322a6b,_0x380613){const _0x173240=a153_0x3a3c3b,_0x499454=_0x380613?.['home']??homedir(),_0x2347d5=_0x380613?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x173240(0x1b7)](_0x37827c=>join(_0x499454,_0x37827c)),_0xdfbfb9=_0x380613?.['lockFile']??join(_0x499454,SKILL_LOCK_RELATIVE_PATH),_0x3fda11=_0x2347d5[_0x173240(0x1b7)](_0x56a049=>join(_0x56a049,_0x322a6b,_0x173240(0x1bb))),_0x5223e9=_0x3fda11[_0x173240(0x1b0)](_0x4681ff=>existsSync(_0x4681ff));if(_0x5223e9)return{'state':_0x173240(0x1bd),'path':_0x5223e9};const _0x3678d8=readLockLookup(_0xdfbfb9,_0x322a6b);if(_0x3678d8[_0x173240(0x1ab)]===_0x173240(0x1b4))return{'state':_0x173240(0x1ae),'reason':_0x3678d8[_0x173240(0x1ad)]};if(_0x3678d8[_0x173240(0x1ab)]==='recorded')return{'state':'unverifiable','reason':_0xdfbfb9+_0x173240(0x1a4)+_0x322a6b+_0x173240(0x1b1)+('('+_0x3fda11[_0x173240(0x1bf)](',\x20')+')')};return{'state':'absent','checked':_0x3fda11};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a154_0x3a94da=a154_0x5d50;function a154_0x5d50(_0x1a9208,_0x1f2191){_0x1a9208=_0x1a9208-0x159;const _0x4a6b7e=a154_0x4a6b();let _0x5d50d2=_0x4a6b7e[_0x1a9208];return _0x5d50d2;}function a154_0x4a6b(){const _0x4095e6=['accessKey','hasOwnProperty','3067113WAzzQm','apps','test','2729460HfoHpy','entries','length','isArray','prototype','slice','28685592bOKVeU','427568AUBTLD','string','2IIrcWY','object','538605yshMdu','28zwfKnk','<redacted>','call','repeat','2704617yTOBsv','1023455POXOwK'];a154_0x4a6b=function(){return _0x4095e6;};return a154_0x4a6b();}(function(_0x27b49f,_0x52990d){const _0x2ea1ee=a154_0x5d50,_0xc761de=_0x27b49f();while(!![]){try{const _0x15542f=parseInt(_0x2ea1ee(0x15c))/0x1*(-parseInt(_0x2ea1ee(0x16b))/0x2)+-parseInt(_0x2ea1ee(0x15b))/0x3+-parseInt(_0x2ea1ee(0x16e))/0x4*(parseInt(_0x2ea1ee(0x16d))/0x5)+-parseInt(_0x2ea1ee(0x162))/0x6+parseInt(_0x2ea1ee(0x15f))/0x7+parseInt(_0x2ea1ee(0x169))/0x8+parseInt(_0x2ea1ee(0x168))/0x9;if(_0x15542f===_0x52990d)break;else _0xc761de['push'](_0xc761de['shift']());}catch(_0x357ecc){_0xc761de['push'](_0xc761de['shift']());}}}(a154_0x4a6b,0x850ae));const REDACTED_ACCESS_KEY=a154_0x3a94da(0x16f);export function maskCliAccessKey(_0x77d419){const _0x4deaa4=a154_0x3a94da;if(typeof _0x77d419!==_0x4deaa4(0x16a)||_0x77d419[_0x4deaa4(0x164)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x77d419[_0x4deaa4(0x167)](0x0,0x8)+'*'[_0x4deaa4(0x15a)](_0x77d419[_0x4deaa4(0x164)]-0x8);}export function redactCliConfigCredentials(_0x1b1ec0){const _0x5c2f3d=a154_0x3a94da,_0x4c4b37={..._0x1b1ec0};return Object['prototype'][_0x5c2f3d(0x15e)][_0x5c2f3d(0x159)](_0x4c4b37,_0x5c2f3d(0x15d))&&(_0x4c4b37[_0x5c2f3d(0x15d)]=maskCliAccessKey(_0x4c4b37[_0x5c2f3d(0x15d)])),_0x4c4b37[_0x5c2f3d(0x160)]&&typeof _0x4c4b37['apps']===_0x5c2f3d(0x16c)&&!Array[_0x5c2f3d(0x165)](_0x4c4b37[_0x5c2f3d(0x160)])&&(_0x4c4b37[_0x5c2f3d(0x160)]=redactLegacyAppCredentials(_0x4c4b37[_0x5c2f3d(0x160)])),_0x4c4b37;}export function redactCliConfigValue(_0x4cd9e5,_0x38a04d){const _0x42572a=a154_0x3a94da;if(_0x4cd9e5===_0x42572a(0x15d)||/^apps\.[^.]+\.accessKey$/[_0x42572a(0x161)](_0x4cd9e5))return maskCliAccessKey(_0x38a04d);if(_0x4cd9e5===_0x42572a(0x160)&&_0x38a04d&&typeof _0x38a04d==='object'&&!Array[_0x42572a(0x165)](_0x38a04d))return redactLegacyAppCredentials(_0x38a04d);if(/^apps\.[^.]+$/[_0x42572a(0x161)](_0x4cd9e5)&&_0x38a04d&&typeof _0x38a04d==='object'&&!Array[_0x42572a(0x165)](_0x38a04d)){const _0x1b8b9d=_0x38a04d;return Object[_0x42572a(0x166)]['hasOwnProperty'][_0x42572a(0x159)](_0x1b8b9d,'accessKey')?{..._0x1b8b9d,'accessKey':maskCliAccessKey(_0x1b8b9d[_0x42572a(0x15d)])}:_0x38a04d;}return _0x38a04d;}function redactLegacyAppCredentials(_0x43b67c){const _0x9e1c1d=a154_0x3a94da;return Object['fromEntries'](Object[_0x9e1c1d(0x163)](_0x43b67c)['map'](([_0x50f1cb,_0x430ec2])=>{const _0x1198e8=_0x9e1c1d;if(!_0x430ec2||typeof _0x430ec2!==_0x1198e8(0x16c)||Array['isArray'](_0x430ec2))return[_0x50f1cb,_0x430ec2];const _0xa28843={..._0x430ec2};return Object[_0x1198e8(0x166)][_0x1198e8(0x15e)][_0x1198e8(0x159)](_0xa28843,_0x1198e8(0x15d))&&(_0xa28843['accessKey']=maskCliAccessKey(_0xa28843['accessKey'])),[_0x50f1cb,_0xa28843];}));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a155_0xe20a(){const _0x595671=['12LJBTZd','7983QTjoXf','17eloHHA','1511477Wamqwo','63RZZcHT','773576alWVhh','1307367YJhaaG','22778dscKLQ','110gyVESE','1898478WyFgAl','1423335KgrKzq'];a155_0xe20a=function(){return _0x595671;};return a155_0xe20a();}(function(_0x60fd47,_0x1748e1){const _0x9426f2=a155_0x4fc9,_0x5d7fee=_0x60fd47();while(!![]){try{const _0x15f7fa=parseInt(_0x9426f2(0x1e2))/0x1*(parseInt(_0x9426f2(0x1e7))/0x2)+parseInt(_0x9426f2(0x1e6))/0x3+parseInt(_0x9426f2(0x1e0))/0x4*(-parseInt(_0x9426f2(0x1df))/0x5)+-parseInt(_0x9426f2(0x1de))/0x6+parseInt(_0x9426f2(0x1e4))/0x7*(parseInt(_0x9426f2(0x1e5))/0x8)+parseInt(_0x9426f2(0x1e1))/0x9*(-parseInt(_0x9426f2(0x1e8))/0xa)+parseInt(_0x9426f2(0x1e3))/0xb;if(_0x15f7fa===_0x1748e1)break;else _0x5d7fee['push'](_0x5d7fee['shift']());}catch(_0x419f26){_0x5d7fee['push'](_0x5d7fee['shift']());}}}(a155_0xe20a,0x6f8cf));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a155_0x4fc9(_0x4ea822,_0x4ce180){_0x4ea822=_0x4ea822-0x1de;const _0xe20a97=a155_0xe20a();let _0x4fc964=_0xe20a97[_0x4ea822];return _0x4fc964;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a156_0x31f1(){const _0x43c036=['minimumVersion','npm\x20install\x20-g\x20','7508490LkDtJK','Upgrade\x20command:\x20','currentVersion','2570212xcdweI','join','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','belowMinimum','unavailable','upgradeMessage','30216BrNuOF','10cMMcCW','latest','757395pIrpSD','filter','stableVersion','18742194eUzutI','3fYtcIW','valid','35312OCwGvZ','693fpWtxz','Recommended\x20stable:\x20','Current\x20version:\x20','3962225WqtiMS'];a156_0x31f1=function(){return _0x43c036;};return a156_0x31f1();}(function(_0x51c12e,_0x4b164c){const _0x33f1a8=a156_0x7257,_0x4c4ddc=_0x51c12e();while(!![]){try{const _0x402442=-parseInt(_0x33f1a8(0xbe))/0x1+-parseInt(_0x33f1a8(0xbb))/0x2+parseInt(_0x33f1a8(0xc2))/0x3*(-parseInt(_0x33f1a8(0xb5))/0x4)+parseInt(_0x33f1a8(0xaf))/0x5+-parseInt(_0x33f1a8(0xb2))/0x6+parseInt(_0x33f1a8(0xc5))/0x7*(parseInt(_0x33f1a8(0xc4))/0x8)+-parseInt(_0x33f1a8(0xc1))/0x9*(-parseInt(_0x33f1a8(0xbc))/0xa);if(_0x402442===_0x4b164c)break;else _0x4c4ddc['push'](_0x4c4ddc['shift']());}catch(_0x4fa681){_0x4c4ddc['push'](_0x4c4ddc['shift']());}}}(a156_0x31f1,0x9d932));import a156_0xc36a9e from'semver';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CliErrors}from'../errors.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';function a156_0x7257(_0x12deae,_0x38bbb3){_0x12deae=_0x12deae-0xad;const _0x31f11b=a156_0x31f1();let _0x7257d3=_0x31f11b[_0x12deae];return _0x7257d3;}export function evaluateCliVersionPolicy(_0xf4507,_0x49951c){const _0x39fa2d=a156_0x7257,_0x389cc8=a156_0xc36a9e[_0x39fa2d(0xc3)](_0xf4507)===_0xf4507,_0x595719=_0x49951c?.[_0x39fa2d(0xc0)]??null,_0x30d713=_0x49951c?.[_0x39fa2d(0xb0)]??null,_0x4a0603=Boolean(_0x389cc8&&_0x595719&&a156_0xc36a9e['lt'](_0xf4507,_0x595719)),_0xb0bdf1=Boolean(_0x389cc8&&_0x30d713&&a156_0xc36a9e['lt'](_0xf4507,_0x30d713));return{'currentVersion':_0xf4507,'stableVersion':_0x595719,'minimumVersion':_0x30d713,'needsUpgrade':_0x4a0603||_0xb0bdf1,'belowMinimum':_0xb0bdf1,'upgradeMessage':_0x49951c?.[_0x39fa2d(0xba)],'minimumVersionMessage':_0x49951c?.['minimumVersionMessage']};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x5cdd0b){const _0x46f2f7=a156_0x7257;return _0x46f2f7(0xb1)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x5cdd0b[_0x46f2f7(0xc0)]??_0x46f2f7(0xbd));}export function assertCliVersionSupported(_0x4c680c){const _0x16d2ab=a156_0x7257;if(!_0x4c680c[_0x16d2ab(0xb8)])return;const _0x99eefd=[_0x4c680c['minimumVersionMessage'],_0x16d2ab(0xae)+_0x4c680c[_0x16d2ab(0xb4)],'Minimum\x20supported:\x20'+_0x4c680c[_0x16d2ab(0xb0)],_0x16d2ab(0xad)+(_0x4c680c[_0x16d2ab(0xc0)]??_0x16d2ab(0xb9)),_0x16d2ab(0xb3)+getCliUpgradeCommand(_0x4c680c)][_0x16d2ab(0xbf)](Boolean)[_0x16d2ab(0xb6)]('\x0a');throw CliErrors['validation'](_0x16d2ab(0xb7),_0x99eefd);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a157_0x1ed5(){const _0x38e256=['latestVersion','1424632PSetOX','object','8348SZPKMD','string','2045FPVsXB','6mfYoRE','valid','stableVersion','finally','trim','cli','now','then','3067449bpSHHt','3659080SkoNTn','1059060bJotox','timeout','984130MgpLQH','330eGjDwU','299826IpmtCS','upgradeMessage','minVersion','recommendedVersion'];a157_0x1ed5=function(){return _0x38e256;};return a157_0x1ed5();}(function(_0x48fc08,_0x661b79){const _0x177232=a157_0x3cf4,_0xbfdf52=_0x48fc08();while(!![]){try{const _0x4510d1=-parseInt(_0x177232(0x127))/0x1+-parseInt(_0x177232(0x12e))/0x2+parseInt(_0x177232(0x13d))/0x3+-parseInt(_0x177232(0x130))/0x4*(-parseInt(_0x177232(0x132))/0x5)+-parseInt(_0x177232(0x133))/0x6*(parseInt(_0x177232(0x13b))/0x7)+parseInt(_0x177232(0x13c))/0x8+-parseInt(_0x177232(0x129))/0x9*(-parseInt(_0x177232(0x128))/0xa);if(_0x4510d1===_0x661b79)break;else _0xbfdf52['push'](_0xbfdf52['shift']());}catch(_0x4851f0){_0xbfdf52['push'](_0xbfdf52['shift']());}}}(a157_0x1ed5,0x997d9));import a157_0x20d751 from'semver';function a157_0x3cf4(_0xc406ba,_0x5e3778){_0xc406ba=_0xc406ba-0x126;const _0x1ed54d=a157_0x1ed5();let _0x3cf4f4=_0x1ed54d[_0xc406ba];return _0x3cf4f4;}import{LOVRABET_CLI_VERSION_POLICY_URL}from'../constant/distribution.js';const SUCCESS_CACHE_TTL_MS=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL_MS=0x3c*0x3e8,FETCH_TIMEOUT_MS=0x5dc;function pickString(_0x198127){const _0x4f14ea=a157_0x3cf4;return typeof _0x198127===_0x4f14ea(0x131)&&_0x198127['trim']()?_0x198127[_0x4f14ea(0x137)]():null;}function pickStrictSemver(_0x5ea50c){const _0x109bc2=a157_0x3cf4,_0x74f0=pickString(_0x5ea50c);return _0x74f0&&a157_0x20d751[_0x109bc2(0x134)](_0x74f0)===_0x74f0?_0x74f0:null;}export function normalizeCliVersionPolicy(_0x759ddf){const _0x28e771=a157_0x3cf4;if(!_0x759ddf||typeof _0x759ddf!==_0x28e771(0x12f))return null;const _0x570a8b=_0x759ddf,_0x3afbf2=_0x570a8b['cli']&&typeof _0x570a8b[_0x28e771(0x138)]===_0x28e771(0x12f)?_0x570a8b['cli']:_0x570a8b,_0x458b55=pickStrictSemver(_0x3afbf2[_0x28e771(0x135)]??_0x3afbf2[_0x28e771(0x12d)]??_0x3afbf2[_0x28e771(0x12c)]),_0x4d76e0=pickStrictSemver(_0x3afbf2['minimumVersion']??_0x3afbf2[_0x28e771(0x12b)]);if(!_0x458b55&&!_0x4d76e0)return null;if(_0x458b55&&_0x4d76e0&&a157_0x20d751['gt'](_0x4d76e0,_0x458b55))return null;return{'stableVersion':_0x458b55,'minimumVersion':_0x4d76e0,'upgradeMessage':pickString(_0x3afbf2[_0x28e771(0x12a)])??undefined,'minimumVersionMessage':pickString(_0x3afbf2['minimumVersionMessage'])??undefined};}export async function fetchCliVersionPolicy(){const _0x5b6d55=a157_0x3cf4;try{const _0x3af3b4=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':AbortSignal[_0x5b6d55(0x126)](FETCH_TIMEOUT_MS)});if(!_0x3af3b4['ok'])return null;return normalizeCliVersionPolicy(await _0x3af3b4['json']());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x2d9d33=a157_0x3cf4,_0x5c5e8a=Date[_0x2d9d33(0x139)]();if(hasCachedPolicy){const _0x26d8ea=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x5c5e8a-cachedAt<_0x26d8ea)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x2d9d33(0x13a)](_0x5a0f8f=>{const _0x538279=_0x2d9d33;return cachedPolicy=_0x5a0f8f,cachedAt=Date[_0x538279(0x139)](),hasCachedPolicy=!![],_0x5a0f8f;})[_0x2d9d33(0x136)](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a158_0x4eada8=a158_0x58ec;(function(_0x1bd971,_0x1bdfcb){const _0xfc5b97=a158_0x58ec,_0x579aab=_0x1bd971();while(!![]){try{const _0x47291d=parseInt(_0xfc5b97(0xaa))/0x1*(-parseInt(_0xfc5b97(0xa2))/0x2)+parseInt(_0xfc5b97(0xa5))/0x3*(-parseInt(_0xfc5b97(0xb2))/0x4)+parseInt(_0xfc5b97(0xb5))/0x5*(parseInt(_0xfc5b97(0x98))/0x6)+parseInt(_0xfc5b97(0xab))/0x7+parseInt(_0xfc5b97(0xb6))/0x8+-parseInt(_0xfc5b97(0xc0))/0x9*(-parseInt(_0xfc5b97(0xba))/0xa)+parseInt(_0xfc5b97(0x9f))/0xb*(-parseInt(_0xfc5b97(0xa3))/0xc);if(_0x47291d===_0x1bdfcb)break;else _0x579aab['push'](_0x579aab['shift']());}catch(_0x3bdffc){_0x579aab['push'](_0x579aab['shift']());}}}(a158_0x448e,0x260d5));function a158_0x58ec(_0x49be7f,_0x1dce54){_0x49be7f=_0x49be7f-0x97;const _0x448eaf=a158_0x448e();let _0x58ecc7=_0x448eaf[_0x49be7f];return _0x58ecc7;}import a158_0x21357f from'winston';import a158_0x1aa233 from'node:fs';import a158_0x2a0364 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';function a158_0x448e(){const _0x4fb94b=['warn','message','initWinstonLogger','errors','yellow','blue','clear','details','log','green','printf','178932EKlMAF','filter','timestamp','logTask','join','parse','Completed:\x20','11sdnjVi','level','Failed\x20to\x20clear\x20logs:','94880lQprIl','5750952bikcaU','now','336RWmJxH','combine','command','info','transports','1TxEOhB','1497867kLpFxr','File','utf8','Starting:\x20','Failed:\x20','trim','existsSync','4036uAKbsL','unknown','logFilePath','30eokIVm','1532504BJFnnL','readLogs','clearLogs','currentRawCommand','10cQpgwO','readFileSync','duration','addColors','winstonLogger','error','1899711joJdoL','success','format','Failed\x20to\x20read\x20logs:','writeFileSync','mkdirSync','split','logFileName'];a158_0x448e=function(){return _0x4fb94b;};return a158_0x448e();}class Logger{[a158_0x4eada8(0xbe)];[a158_0x4eada8(0xb4)]='';['currentRawCommand']='';constructor(){}['setRawCommand'](_0x1e3a7f){const _0xd3e508=a158_0x4eada8;this[_0xd3e508(0xb9)]=_0x1e3a7f;}['setLogPath'](_0x132232){const _0x16237c=a158_0x4eada8;this[_0x16237c(0xb4)]=a158_0x2a0364[_0x16237c(0x9c)](_0x132232,PRODUCT_CONFIG[_0x16237c(0xc7)]),this[_0x16237c(0xbe)]&&this[_0x16237c(0xbe)][_0x16237c(0xce)](),this[_0x16237c(0xca)]();}[a158_0x4eada8(0xca)](){const _0x3f948a=a158_0x4eada8,_0x46d8e6=a158_0x2a0364['dirname'](this[_0x3f948a(0xb4)]);!a158_0x1aa233[_0x3f948a(0xb1)](_0x46d8e6)&&a158_0x1aa233[_0x3f948a(0xc5)](_0x46d8e6,{'recursive':!![]});const _0x35e07d=a158_0x21357f['format'][_0x3f948a(0xa6)](a158_0x21357f[_0x3f948a(0xc2)][_0x3f948a(0x9a)](),a158_0x21357f[_0x3f948a(0xc2)][_0x3f948a(0xcb)]({'stack':!![]}),a158_0x21357f[_0x3f948a(0xc2)][_0x3f948a(0x97)](_0x290b0d=>{const _0x267319=_0x3f948a,_0x26b0f4={'timestamp':_0x290b0d[_0x267319(0x9a)]||new Date()['toISOString'](),'level':_0x290b0d[_0x267319(0xa0)]||_0x267319(0xa8),'command':_0x290b0d[_0x267319(0xa7)]||_0x267319(0xb3),'rawCommand':_0x290b0d['rawCommand']||this['currentRawCommand']||undefined,'message':_0x290b0d[_0x267319(0xc9)]||'','duration':_0x290b0d[_0x267319(0xbc)]||undefined,'details':_0x290b0d[_0x267319(0xcf)]||undefined};return JSON['stringify'](_0x26b0f4);}));this[_0x3f948a(0xbe)]=a158_0x21357f['createLogger']({'level':'info','format':_0x35e07d,'transports':[new a158_0x21357f[(_0x3f948a(0xa9))][(_0x3f948a(0xac))]({'filename':this[_0x3f948a(0xb4)],'level':_0x3f948a(0xa8)})],'silent':![]}),a158_0x21357f[_0x3f948a(0xbd)]({'success':_0x3f948a(0xd1),'error':'red','warn':_0x3f948a(0xcc),'info':_0x3f948a(0xcd)});}[a158_0x4eada8(0xa8)](_0x29424a,_0x2acc0e,_0x4b301e){const _0x5a6c88=a158_0x4eada8;if(!this['logFilePath']||!this[_0x5a6c88(0xbe)])return;this[_0x5a6c88(0xbe)][_0x5a6c88(0xa8)](_0x2acc0e,{'command':_0x29424a,'details':_0x4b301e});}['success'](_0x171615,_0xd41b59,_0x53a2cb,_0x1530d4){const _0x5bcebd=a158_0x4eada8;if(!this['logFilePath']||!this[_0x5bcebd(0xbe)])return;this['winstonLogger'][_0x5bcebd(0xd0)](_0x5bcebd(0xa8),_0xd41b59,{'level':_0x5bcebd(0xc1),'command':_0x171615,'duration':_0x53a2cb,'details':_0x1530d4});}['error'](_0x4561de,_0x1b6803,_0x42815){const _0xcabae=a158_0x4eada8;if(!this[_0xcabae(0xb4)]||!this[_0xcabae(0xbe)])return;this['winstonLogger'][_0xcabae(0xbf)](_0x1b6803,{'command':_0x4561de,'details':_0x42815});}[a158_0x4eada8(0xc8)](_0x38b278,_0x15e966,_0x51acbc){const _0x26fbe3=a158_0x4eada8;if(!this[_0x26fbe3(0xb4)]||!this[_0x26fbe3(0xbe)])return;this[_0x26fbe3(0xbe)][_0x26fbe3(0xc8)](_0x15e966,{'command':_0x38b278,'details':_0x51acbc});}async[a158_0x4eada8(0x9b)](_0x43e9de,_0x3baca0,_0xbfecb2){const _0x34350f=a158_0x4eada8,_0x379a0d=Date[_0x34350f(0xa4)]();this[_0x34350f(0xa8)](_0x43e9de,_0x34350f(0xae)+_0x3baca0);try{const _0x1d07d3=await _0xbfecb2(),_0x56e854=Date[_0x34350f(0xa4)]()-_0x379a0d;return this[_0x34350f(0xc1)](_0x43e9de,_0x34350f(0x9e)+_0x3baca0,_0x56e854),_0x1d07d3;}catch(_0x3f13ec){const _0x4d1b85=Date['now']()-_0x379a0d;this[_0x34350f(0xbf)](_0x43e9de,_0x34350f(0xaf)+_0x3baca0,{'error':_0x3f13ec instanceof Error?_0x3f13ec['message']:String(_0x3f13ec),'duration':_0x4d1b85});throw _0x3f13ec;}}[a158_0x4eada8(0xb7)](){const _0x15df57=a158_0x4eada8;try{if(!a158_0x1aa233[_0x15df57(0xb1)](this['logFilePath']))return[];const _0x183550=a158_0x1aa233[_0x15df57(0xbb)](this['logFilePath'],_0x15df57(0xad));return _0x183550[_0x15df57(0xc6)](/\r?\n/)[_0x15df57(0x99)](_0x10d3ef=>_0x10d3ef[_0x15df57(0xb0)]())['map'](_0x1cbd56=>JSON[_0x15df57(0x9d)](_0x1cbd56));}catch(_0x2ea0c0){return console['warn'](_0x15df57(0xc3),_0x2ea0c0),[];}}[a158_0x4eada8(0xb8)](){const _0x14edd8=a158_0x4eada8;try{a158_0x1aa233[_0x14edd8(0xb1)](this['logFilePath'])&&a158_0x1aa233[_0x14edd8(0xc4)](this[_0x14edd8(0xb4)],'',_0x14edd8(0xad));}catch(_0x16ef60){console[_0x14edd8(0xc8)](_0x14edd8(0xa1),_0x16ef60);}}['getWinstonInstance'](){const _0x5476fc=a158_0x4eada8;return this[_0x5476fc(0xbe)];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a159_0x6870(_0x114042,_0x17e8e9){_0x114042=_0x114042-0xd8;const _0x572e2a=a159_0x572e();let _0x6870fa=_0x572e2a[_0x114042];return _0x6870fa;}const a159_0x48fc3d=a159_0x6870;(function(_0x4b096f,_0x5507f8){const _0x140d14=a159_0x6870,_0x506bef=_0x4b096f();while(!![]){try{const _0x5b279a=parseInt(_0x140d14(0xe5))/0x1+-parseInt(_0x140d14(0xea))/0x2*(parseInt(_0x140d14(0xe8))/0x3)+-parseInt(_0x140d14(0xe0))/0x4*(-parseInt(_0x140d14(0xd8))/0x5)+-parseInt(_0x140d14(0xe3))/0x6+parseInt(_0x140d14(0xe6))/0x7*(-parseInt(_0x140d14(0xdc))/0x8)+parseInt(_0x140d14(0xdd))/0x9+parseInt(_0x140d14(0xe4))/0xa;if(_0x5b279a===_0x5507f8)break;else _0x506bef['push'](_0x506bef['shift']());}catch(_0x37b501){_0x506bef['push'](_0x506bef['shift']());}}}(a159_0x572e,0x48b82));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number['MAX_SAFE_INTEGER']),MIN_SAFE_INTEGER=BigInt(Number[a159_0x48fc3d(0xe7)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0xdbaa6){const _0x5ab329=a159_0x48fc3d;if(_0xdbaa6['includes']('.')||_0xdbaa6[_0x5ab329(0xde)]('e')||_0xdbaa6[_0x5ab329(0xde)]('E'))return![];const _0x48f7a7=BigInt(_0xdbaa6);return _0x48f7a7>MAX_SAFE_INTEGER||_0x48f7a7<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x5d2a34){const _0x536127=a159_0x48fc3d;let _0x570941='',_0x396041=![],_0x2fe24d=![];for(let _0x1bebd7=0x0;_0x1bebd7<_0x5d2a34[_0x536127(0xda)];){const _0x26a058=_0x5d2a34[_0x1bebd7];if(_0x396041){_0x570941+=_0x26a058,_0x1bebd7+=0x1;if(_0x2fe24d)_0x2fe24d=![];else{if(_0x26a058==='\x5c')_0x2fe24d=!![];else _0x26a058==='\x22'&&(_0x396041=![]);}continue;}if(_0x26a058==='\x22'){_0x396041=!![],_0x570941+=_0x26a058,_0x1bebd7+=0x1;continue;}if(_0x26a058==='-'||_0x26a058>='0'&&_0x26a058<='9'){const _0x138696=JSON_NUMBER_PATTERN[_0x536127(0xe2)](_0x5d2a34[_0x536127(0xdb)](_0x1bebd7))?.[0x0];if(_0x138696){_0x570941+=isUnsafeIntegerLiteral(_0x138696)?'\x22'+_0x138696+'\x22':_0x138696,_0x1bebd7+=_0x138696['length'];continue;}}_0x570941+=_0x26a058,_0x1bebd7+=0x1;}return _0x570941;}export function parseLosslessJson(_0x3433b0){const _0x557629=a159_0x48fc3d;return JSON[_0x557629(0xe1)](quoteUnsafeIntegerLiterals(_0x3433b0));}function a159_0x572e(){const _0x314577=['parse','exec','3285918XBTOcJ','5597520LIIqcw','246062zraVft','1627199klJfae','MIN_SAFE_INTEGER','44751DrUNMC','getOwnPropertyDescriptor','24WdsVua','prototype','undefined','text','4075ONDRml','json','length','slice','16jjmsSO','3086505gKRNQS','includes','defineProperty','1672zKrZjH'];a159_0x572e=function(){return _0x314577;};return a159_0x572e();}export function installLosslessJsonResponseParser(){const _0x1491fe=a159_0x48fc3d;if(typeof Response===_0x1491fe(0xec))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x1491fe(0xeb)],originalResponseJsonDescriptor=Object[_0x1491fe(0xe9)](responseJsonPrototype,_0x1491fe(0xd9)),Object[_0x1491fe(0xdf)](responseJsonPrototype,_0x1491fe(0xd9),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x278a1e(){const _0x1c4978=_0x1491fe;return parseLosslessJson(await this[_0x1c4978(0xed)]());}}),restoreResponseJsonParser=()=>{const _0x38a41a=_0x1491fe;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x38a41a(0xdf)](responseJsonPrototype,_0x38a41a(0xd9),originalResponseJsonDescriptor):delete responseJsonPrototype['json'],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x552ca8,_0x40cec7){const _0x35a570=a160_0x3f58,_0x22ac02=_0x552ca8();while(!![]){try{const _0x362978=-parseInt(_0x35a570(0x15f))/0x1+parseInt(_0x35a570(0x158))/0x2+parseInt(_0x35a570(0x16c))/0x3*(-parseInt(_0x35a570(0x16e))/0x4)+parseInt(_0x35a570(0x15e))/0x5+-parseInt(_0x35a570(0x167))/0x6*(-parseInt(_0x35a570(0x165))/0x7)+-parseInt(_0x35a570(0x161))/0x8+parseInt(_0x35a570(0x164))/0x9*(parseInt(_0x35a570(0x168))/0xa);if(_0x362978===_0x40cec7)break;else _0x22ac02['push'](_0x22ac02['shift']());}catch(_0x10b6f3){_0x22ac02['push'](_0x22ac02['shift']());}}}(a160_0x10cc,0x8b560));import{CliErrors}from'../errors.js';function a160_0x3f58(_0x64ffa8,_0x5f599e){_0x64ffa8=_0x64ffa8-0x156;const _0x10cc30=a160_0x10cc();let _0x3f5896=_0x10cc30[_0x64ffa8];return _0x3f5896;}import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x20524e){const _0x2b4ff8=a160_0x3f58;if(!_0x20524e)return undefined;try{return parseLosslessJson(_0x20524e);}catch{throw CliErrors['validation'](_0x2b4ff8(0x166)+_0x20524e);}}function a160_0x10cc(){const _0x4b19c8=['data\x20update\x20can\x20update\x20at\x20most\x20','isArray','66RSUfjy','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','156652jXojKy','validation','items','object','data\x20update\x20--params.','1285120ZJtDus','length','number','map','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','join','4430735BBtDDC','749240qVerhQ','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','1913368fGswYC','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','isSafeInteger','9GwGwLe','423962eFTVGA','Invalid\x20JSON\x20for\x20--params:\x20','36RBmeOU','5286140uiQAhw','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.'];a160_0x10cc=function(){return _0x4b19c8;};return a160_0x10cc();}export function parseJsonParamsValue(_0x189074){const _0x478887=a160_0x3f58;if(!_0x189074)return undefined;try{return parseLosslessJson(_0x189074);}catch{throw CliErrors[_0x478887(0x16f)](_0x478887(0x166)+_0x189074);}}export function parseBatchCreateItemsFromParams(_0x4fa6d6){const _0x5b61d1=a160_0x3f58;if(Array[_0x5b61d1(0x16b)](_0x4fa6d6))return _0x4fa6d6;if(_0x4fa6d6!==null&&_0x4fa6d6!==undefined&&typeof _0x4fa6d6===_0x5b61d1(0x156)&&Array[_0x5b61d1(0x16b)](_0x4fa6d6[_0x5b61d1(0x170)]))return _0x4fa6d6[_0x5b61d1(0x170)];throw CliErrors[_0x5b61d1(0x16f)](_0x5b61d1(0x15c),'Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}function parseDataUpdateId(_0x2f167e,_0x2ed40a){const _0x58ae83=a160_0x3f58;if(typeof _0x2f167e===_0x58ae83(0x15a)&&Number[_0x58ae83(0x163)](_0x2f167e)&&_0x2f167e>0x0)return _0x2f167e;if(typeof _0x2f167e==='string'){if(/^[1-9]\d*$/['test'](_0x2f167e))return _0x2f167e;}throw CliErrors[_0x58ae83(0x16f)](_0x58ae83(0x157)+_0x2ed40a+_0x58ae83(0x162));}export function parseUpdateIdsFromParams(_0x1a69bc){const _0x42bb5f=a160_0x3f58;if(_0x1a69bc===null||_0x1a69bc===undefined||typeof _0x1a69bc!==_0x42bb5f(0x156)||Array[_0x42bb5f(0x16b)](_0x1a69bc))throw CliErrors[_0x42bb5f(0x16f)](_0x42bb5f(0x16d),_0x42bb5f(0x160));const _0x21d011=_0x1a69bc['id'];if(_0x21d011===undefined||_0x21d011===null)throw CliErrors[_0x42bb5f(0x16f)]('data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.',_0x42bb5f(0x160));const _0x508325=Array[_0x42bb5f(0x16b)](_0x21d011)?_0x21d011:[_0x21d011];if(_0x508325[_0x42bb5f(0x159)]===0x0)throw CliErrors[_0x42bb5f(0x16f)](_0x42bb5f(0x169));if(_0x508325[_0x42bb5f(0x159)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x42bb5f(0x16f)](_0x42bb5f(0x16a)+MAX_DATA_UPDATE_IDS+'\x20records\x20per\x20call;\x20received\x20'+_0x508325[_0x42bb5f(0x159)]+'.');return _0x508325[_0x42bb5f(0x15b)]((_0x17067c,_0x52b63b)=>parseDataUpdateId(_0x17067c,Array[_0x42bb5f(0x16b)](_0x21d011)?'id['+_0x52b63b+']':'id'));}export function normalizeUpdateParamsForRuntime(_0xc4177e,_0x569fad){const _0x146940=a160_0x3f58;if(Array['isArray'](_0xc4177e['id'])&&_0x569fad['length']>0x1)return{..._0xc4177e,'id':_0x569fad[_0x146940(0x15d)](',')};return _0xc4177e;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a161_0x324350=a161_0x35b2;(function(_0x55da17,_0x5d4770){const _0x484e07=a161_0x35b2,_0x110bed=_0x55da17();while(!![]){try{const _0x5928eb=parseInt(_0x484e07(0x97))/0x1+parseInt(_0x484e07(0x9c))/0x2*(-parseInt(_0x484e07(0x9e))/0x3)+-parseInt(_0x484e07(0x9f))/0x4+-parseInt(_0x484e07(0x96))/0x5*(parseInt(_0x484e07(0x95))/0x6)+-parseInt(_0x484e07(0x9a))/0x7+parseInt(_0x484e07(0x94))/0x8*(-parseInt(_0x484e07(0x9b))/0x9)+parseInt(_0x484e07(0x99))/0xa;if(_0x5928eb===_0x5d4770)break;else _0x110bed['push'](_0x110bed['shift']());}catch(_0x3f8b66){_0x110bed['push'](_0x110bed['shift']());}}}(a161_0x3905,0x80fc4));export const isWindows=process['platform']===a161_0x324350(0x98);function a161_0x35b2(_0x3d8012,_0x1098e8){_0x3d8012=_0x3d8012-0x94;const _0x3905cf=a161_0x3905();let _0x35b205=_0x3905cf[_0x3d8012];return _0x35b205;}export function resolveNpmBin(_0x3699de){const _0x1eb8ac=a161_0x324350;return isWindows?_0x3699de+_0x1eb8ac(0x9d):_0x3699de;}function a161_0x3905(){const _0x3e3a3a=['10gMuhEV','714434deCwAj','win32','21043440skrvyQ','31899fxVHaK','1988982wnVmgL','100306bjTQjp','.cmd','15wUPohg','3359648IcZuQB','8llrQDg','2922666UBWOVX'];a161_0x3905=function(){return _0x3e3a3a;};return a161_0x3905();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2716e7,_0x2254aa){const _0x41d438=a162_0x3f0a,_0x5c069b=_0x2716e7();while(!![]){try{const _0x210748=parseInt(_0x41d438(0x89))/0x1+parseInt(_0x41d438(0x81))/0x2+parseInt(_0x41d438(0x8b))/0x3+parseInt(_0x41d438(0x8e))/0x4+-parseInt(_0x41d438(0x92))/0x5*(-parseInt(_0x41d438(0x8a))/0x6)+-parseInt(_0x41d438(0x7a))/0x7+parseInt(_0x41d438(0x8f))/0x8*(-parseInt(_0x41d438(0x83))/0x9);if(_0x210748===_0x2254aa)break;else _0x5c069b['push'](_0x5c069b['shift']());}catch(_0x7651c8){_0x5c069b['push'](_0x5c069b['shift']());}}}(a162_0x4170,0x27fe4));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{checkCliVersion,getCliUpgradeCommand}from'../utils/cli-version-check.js';const UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x509f7a=a162_0x3f0a,_0x1d8d09=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x509f7a(0x80)]()[_0x509f7a(0x95)]();return _0x1d8d09==='1'||_0x1d8d09===_0x509f7a(0x84)||_0x1d8d09===_0x509f7a(0x91);}function a162_0x3f0a(_0x3360db,_0x319653){_0x3360db=_0x3360db-0x7a;const _0x4170c6=a162_0x4170();let _0x3f0a61=_0x4170c6[_0x3360db];return _0x3f0a61;}function a162_0x4170(){const _0x4f6426=['56zYPmAY',',\x20run:\x20','yes','1206350YaLbBQ','stableVersion','https://www.npmjs.com/package/','toLowerCase','1718353tvPhkn','upgradeMessage','number','update-check.json','.cache','object','trim','69866rATqKN','lovrabet-cli','598077NEVjjd','true','currentVersion','lastNotifiedVersion','needsUpgrade','utf8','141151SyIVfS','6GVgwru','394662KVlZDr','lastNotifiedAt','\x20is\x20recommended,\x20current\x20','1302216VZfaPr'];a162_0x4170=function(){return _0x4f6426;};return a162_0x4170();}function cacheRoot(){const _0x202914=a162_0x3f0a;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x202914(0x7e));}export function getUpdateNoticeCachePath(){const _0x2e00da=a162_0x3f0a;return join(cacheRoot(),_0x2e00da(0x82),_0x2e00da(0x7d));}async function readUpdateNoticeCache(){const _0x1d5af4=a162_0x3f0a;try{const _0x27d72a=await readFile(getUpdateNoticeCachePath(),_0x1d5af4(0x88)),_0x5d2e4e=JSON['parse'](_0x27d72a);if(!_0x5d2e4e||typeof _0x5d2e4e!==_0x1d5af4(0x7f))return{};return _0x5d2e4e;}catch{return{};}}async function writeUpdateNoticeCache(_0x492400){const _0x532f68=a162_0x3f0a;try{const _0x129f62=getUpdateNoticeCachePath();await mkdir(dirname(_0x129f62),{'recursive':!![]}),await writeFile(_0x129f62,JSON['stringify'](_0x492400,null,0x2)+'\x0a',_0x532f68(0x88));}catch{}}function isRecentlyNotified(_0x5b774a,_0x50e78b,_0x2d29b7){const _0x25cdd5=a162_0x3f0a;return _0x5b774a[_0x25cdd5(0x86)]===_0x50e78b&&typeof _0x5b774a[_0x25cdd5(0x8c)]===_0x25cdd5(0x7c)&&_0x2d29b7-_0x5b774a[_0x25cdd5(0x8c)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x2b4c23){const _0x551a95=a162_0x3f0a;return _0x551a95(0x94)+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x2b4c23;}export async function resolveLatestUpdateNotice(_0x3a1b86){const _0x1b2214=a162_0x3f0a;if(isUpdateNoticeDisabled())return null;try{const _0x4323a9=Date['now'](),_0x28deac=_0x3a1b86??await checkCliVersion(),_0x459db7=_0x28deac[_0x1b2214(0x85)],_0x2bc4dc=_0x28deac[_0x1b2214(0x93)],_0x588487=await readUpdateNoticeCache();if(!_0x2bc4dc||!_0x28deac[_0x1b2214(0x87)]||_0x28deac['belowMinimum'])return null;if(isRecentlyNotified(_0x588487,_0x2bc4dc,_0x4323a9))return null;const _0x5f447e=getCliUpgradeCommand(_0x28deac);return await writeUpdateNoticeCache({..._0x588487,'checkedAt':_0x4323a9,'latest':_0x2bc4dc,'failed':![],'lastNotifiedVersion':_0x2bc4dc,'lastNotifiedAt':_0x4323a9}),{'command':_0x5f447e,'current':_0x459db7,'latest':_0x2bc4dc,'url':buildNpmVersionUrl(_0x2bc4dc),'message':[_0x28deac[_0x1b2214(0x7b)],CLI_BIN_NAME+'\x20'+_0x2bc4dc+_0x1b2214(0x8d)+_0x459db7+_0x1b2214(0x90)+_0x5f447e]['filter'](Boolean)['join']('\x20')};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x44bc7e,_0x232f1f){const _0x4ad0e2=a163_0xe389,_0x4fb5c2=_0x44bc7e();while(!![]){try{const _0x5e4d02=parseInt(_0x4ad0e2(0x196))/0x1+parseInt(_0x4ad0e2(0x195))/0x2*(-parseInt(_0x4ad0e2(0x197))/0x3)+-parseInt(_0x4ad0e2(0x193))/0x4*(parseInt(_0x4ad0e2(0x198))/0x5)+parseInt(_0x4ad0e2(0x18e))/0x6*(-parseInt(_0x4ad0e2(0x199))/0x7)+-parseInt(_0x4ad0e2(0x18f))/0x8*(-parseInt(_0x4ad0e2(0x194))/0x9)+-parseInt(_0x4ad0e2(0x191))/0xa*(-parseInt(_0x4ad0e2(0x18d))/0xb)+-parseInt(_0x4ad0e2(0x18c))/0xc*(-parseInt(_0x4ad0e2(0x192))/0xd);if(_0x5e4d02===_0x232f1f)break;else _0x4fb5c2['push'](_0x4fb5c2['shift']());}catch(_0x50a6e3){_0x4fb5c2['push'](_0x4fb5c2['shift']());}}}(a163_0x5ce6,0x8d66e));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x105617=String(GIT_COMMIT);return _0x105617&&_0x105617!=='unknown'?_0x105617:'';}function a163_0xe389(_0x14df9b,_0x5ba916){_0x14df9b=_0x14df9b-0x18c;const _0x5ce65e=a163_0x5ce6();let _0xe3891c=_0x5ce65e[_0x14df9b];return _0xe3891c;}export function getCliVersionDisplay(){const _0x1f7322=a163_0xe389,_0x2b57cf=getCliGitCommit(),_0x541e25=BUILD_TIME[_0x1f7322(0x190)](0x0,0xa);if(!_0x2b57cf||!_0x541e25)return VERSION;return VERSION+'\x20('+_0x2b57cf+',\x20'+_0x541e25+')';}function a163_0x5ce6(){const _0x84985c=['417012hvHhjE','10087946EnAvQr','637926ncEeZM','24456gmOmFS','slice','10RQicWJ','52gJbbnU','4TYdPjA','837BHXqLG','27108ioEdtw','487460maSUgp','114IwGfTa','1010060OLholg','35pAUWYJ'];a163_0x5ce6=function(){return _0x84985c;};return a163_0x5ce6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a164_0x2882(_0x259748,_0x4cd38e){_0x259748=_0x259748-0xdf;var _0x2132e6=a164_0x2132();var _0x2882a1=_0x2132e6[_0x259748];return _0x2882a1;}(function(_0x3dec5a,_0x3359b5){var _0x195202=a164_0x2882,_0x523473=_0x3dec5a();while(!![]){try{var _0x512bbc=parseInt(_0x195202(0xe3))/0x1*(-parseInt(_0x195202(0xea))/0x2)+-parseInt(_0x195202(0xec))/0x3*(parseInt(_0x195202(0xe2))/0x4)+parseInt(_0x195202(0xe0))/0x5+-parseInt(_0x195202(0xeb))/0x6+parseInt(_0x195202(0xe8))/0x7*(-parseInt(_0x195202(0xdf))/0x8)+parseInt(_0x195202(0xe1))/0x9*(parseInt(_0x195202(0xe5))/0xa)+-parseInt(_0x195202(0xe4))/0xb*(-parseInt(_0x195202(0xe9))/0xc);if(_0x512bbc===_0x3359b5)break;else _0x523473['push'](_0x523473['shift']());}catch(_0x851d64){_0x523473['push'](_0x523473['shift']());}}}(a164_0x2132,0x9c203));function a164_0x2132(){var _0x29bb44=['141jZEFdT','11pPrYvX','10QAexbR','stderr','write','35gekFLM','30925536eedEvH','6412bZwEdk','3493020szJfph','523293mNaOAS','1845752UIUAIX','3334050jhtiuu','959913GlsXEB','12UJBLrD'];a164_0x2132=function(){return _0x29bb44;};return a164_0x2132();}export function writeCliSideChannelLine(_0x318137){var _0x2b053e=a164_0x2882;process[_0x2b053e(0xe6)][_0x2b053e(0xe7)](_0x318137+'\x0a');}
|
package/package.json
CHANGED
package/skills/lovrabet/SKILL.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lovrabet
|
|
3
3
|
displayName: Lovrabet 运行态 CLI
|
|
4
|
-
version: 2.3.1
|
|
4
|
+
version: 2.3.1
|
|
5
5
|
description: "Lovrabet 运行态 CLI — 面向业务场景的 AI 操作套件,通过 lovrabet 命令管理应用目录、业务角色与权限、用户级外部账号、Service Tree 业务命令、API 文档发现、数据集查询、Instant API 数据操作、Custom SQL/Backend Function、Personal Backend Function、文件上传、面向票证类业务材料文字与结构化字段提取的 OCR、定时任务、Skill、知识库与运行态 app-config key 状态检查。触发词:云图、lovrabet、lovrabet-cli、业务角色、角色成员、页面权限、菜单权限、数据集权限、user-account bind、provider 外部账号绑定、钉钉 userId 绑定、service tree、业务服务树、api-doc、dataset、data filter、file upload、file query-url、ocr recognize、OCR 识别、票证文字提取、票证字段提取、发票识别、票据识别、证照识别、附件上传、personal-bff、schedule、定时任务、cron、kb、skill、sql exec、bff exec、app-config、accessKey、compress、jq。"
|
|
6
6
|
metadata:
|
|
7
7
|
requires:
|