@lovrabet/lovrabet-cli 2.3.2-beta.3 → 2.3.2
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/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
|
-
|
|
1
|
+
(function(_0x53bfe0,_0x3cda82){const _0x3061ca=a146_0x4fcc,_0x450f81=_0x53bfe0();while(!![]){try{const _0x371e25=parseInt(_0x3061ca(0x16e))/0x1+parseInt(_0x3061ca(0x160))/0x2*(-parseInt(_0x3061ca(0x159))/0x3)+parseInt(_0x3061ca(0x170))/0x4+parseInt(_0x3061ca(0x171))/0x5+-parseInt(_0x3061ca(0x158))/0x6*(parseInt(_0x3061ca(0x15e))/0x7)+parseInt(_0x3061ca(0x161))/0x8*(parseInt(_0x3061ca(0x15a))/0x9)+-parseInt(_0x3061ca(0x16d))/0xa*(parseInt(_0x3061ca(0x15c))/0xb);if(_0x371e25===_0x3cda82)break;else _0x450f81['push'](_0x450f81['shift']());}catch(_0x49dade){_0x450f81['push'](_0x450f81['shift']());}}}(a146_0x19d9,0x652c5));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(_0x5e26fc={}){const _0x4bf642=a146_0x4fcc,_0x5c1d41=_0x5e26fc[_0x4bf642(0x172)]??homedir(),_0xaf9cf4=resolve(_0x5c1d41,PRODUCT_CONFIG[_0x4bf642(0x15b)],_0x4bf642(0x174)),_0x4b6c2d=trimmedEnv(_0x4bf642(0x173)),_0x442461=trimmedEnv(_0x4bf642(0x162)),_0x15ae38=resolve(_0x5c1d41,_0x4bf642(0x166)),_0x5db79d=_0x5e26fc[_0x4bf642(0x165)]??(existsSync(_0x15ae38)?resolve(_0x15ae38,_0x4bf642(0x16c)):undefined);return{'homeDir':_0x5c1d41,'cacheRoot':_0xaf9cf4,'managedRoot':resolve(_0x5c1d41,PRODUCT_CONFIG[_0x4bf642(0x15b)]),'agentsSkillsDir':_0x5e26fc['agentsSkillsDir']??_0x4b6c2d??resolve(_0x5c1d41,_0x4bf642(0x169),'skills'),'claudeSkillsDir':_0x5e26fc[_0x4bf642(0x168)]??_0x442461??resolve(_0x5c1d41,'.claude',_0x4bf642(0x16c)),'workbuddySkillsDir':_0x5db79d};}export function runtimeAgentSkillRoots(_0x61884c){const _0x597390=a146_0x4fcc;return[_0x61884c['agentsSkillsDir'],_0x61884c[_0x597390(0x168)],_0x61884c[_0x597390(0x165)]][_0x597390(0x16b)](_0x57229c=>Boolean(_0x57229c));}export function getRuntimeSkillCacheRoot(_0x2418f7,_0x58722b,_0x535437={}){const _0x14ca38=a146_0x4fcc,_0x4bfa2f=resolveSkillSyncPaths(_0x535437);return resolve(_0x4bfa2f[_0x14ca38(0x163)],_0x2418f7,fingerprintAccessKey(_0x58722b),_0x14ca38(0x16c));}function a146_0x4fcc(_0x18bea4,_0x4558ee){_0x18bea4=_0x18bea4-0x158;const _0x19d9b2=a146_0x19d9();let _0x4fcc5f=_0x19d9b2[_0x18bea4];return _0x4fcc5f;}function a146_0x19d9(){const _0x202db8=['workbuddySkillsDir','.workbuddy','Unsafe\x20','claudeSkillsDir','.agents','appCode','filter','skills','310YMHOtv','539115SHmUtZ','includes','1827324seqUSa','2550115dnGJMf','homeDir','SKILL_ROOT','cache','validation','87432eSDgoR','30KaXIPh','2330487lAHYkY','homeDirName','137764iFjtVA','skillCode','371rAMmsN','\x20for\x20local\x20path:\x20','89778QqvAJn','16xoxheU','CLAUDE_SKILL_ROOT','cacheRoot','trim'];a146_0x19d9=function(){return _0x202db8;};return a146_0x19d9();}export function getRuntimeSkillDir(_0x5396fc,_0x329d94,_0x244688,_0x12c4c1,_0x18eada,_0x27d481={}){const _0x522aa4=a146_0x4fcc;return resolve(getRuntimeSkillCacheRoot(_0x5396fc,_0x329d94,_0x27d481),safePathSegment(_0x244688,_0x522aa4(0x16a)),_0x12c4c1,safePathSegment(_0x18eada,_0x522aa4(0x15d)));}export function safePathSegment(_0x1ff870,_0x5714ce='path\x20segment'){const _0x15c943=a146_0x4fcc;if(!_0x1ff870||_0x1ff870[_0x15c943(0x16f)]('/')||_0x1ff870[_0x15c943(0x16f)]('\x5c')||_0x1ff870[_0x15c943(0x16f)]('..'))throw CliErrors[_0x15c943(0x175)](_0x15c943(0x167)+_0x5714ce+_0x15c943(0x15f)+_0x1ff870);return _0x1ff870;}function trimmedEnv(_0x761b93){const _0x185d11=a146_0x4fcc,_0x306e9e=productEnv(_0x761b93)?.[_0x185d11(0x164)]();return _0x306e9e?_0x306e9e:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x429b4f,_0x306569){const _0x18e0d3=a147_0x23da,_0x36b0bb=_0x429b4f();while(!![]){try{const _0x133f95=-parseInt(_0x18e0d3(0x198))/0x1+parseInt(_0x18e0d3(0x1bd))/0x2*(-parseInt(_0x18e0d3(0x1ae))/0x3)+-parseInt(_0x18e0d3(0x195))/0x4+-parseInt(_0x18e0d3(0x1a8))/0x5*(parseInt(_0x18e0d3(0x192))/0x6)+parseInt(_0x18e0d3(0x1bf))/0x7*(-parseInt(_0x18e0d3(0x18c))/0x8)+-parseInt(_0x18e0d3(0x19b))/0x9+parseInt(_0x18e0d3(0x1aa))/0xa;if(_0x133f95===_0x306569)break;else _0x36b0bb['push'](_0x36b0bb['shift']());}catch(_0x3695df){_0x36b0bb['push'](_0x36b0bb['shift']());}}}(a147_0xd692,0x73390));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';function a147_0xd692(){const _0x4de45e=['refreshedAt','description','files','24YLayEN','skillCode','Invalid\x20','ignoreInvalidMetadata','match','tags','539862ofaKLS','string','scope','3261576cBLErz','\x20has\x20unsupported\x20scope\x20\x22','validation','371676EifnRt','find','skillName','7465104HVjNCL','slice','isArray','content','length','example','toLowerCase','replace','targetScope','filter','excludedFilePaths','unknown','ignoreMetadataAppCodeMismatch','35PPhMxc','Skill\x20directory\x20not\x20found:\x20','46360600nVxvmr','number','some','path','51636RxvIcc','sourceSessionId','personal','isFile','dir','isDirectory','boolean','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','(unknown)','pushedAt','builtin','utf8','Unable\x20to\x20resolve\x20skillCode\x20from\x20','displayName','company','104xDWRKd','appCode','1453011TQVijt','ignoreMetadataScope','Remote\x20Skill\x20','ignoreMetadataForPayload','Missing\x20','packageBase64','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','version','manifest',',\x20or\x20directory\x20name.','trim','\x20has\x20scope=\x22','metadata'];a147_0xd692=function(){return _0x4de45e;};return a147_0xd692();}import{basename,resolve}from'node:path';function a147_0x23da(_0x4b78d8,_0x204a5e){_0x4b78d8=_0x4b78d8-0x18b;const _0xd69209=a147_0xd692();let _0x23daba=_0xd69209[_0x4b78d8];return _0x23daba;}import{parse as a147_0x56441c}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';import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0x1a99d8,_0x49cfc4,_0x3a8839={}){const _0x575dcd=a147_0x23da,_0x4a532e=resolvePushDirectoryRoot(_0x1a99d8),_0x381344=readPushMetadataIfPresent(resolve(_0x4a532e,METADATA_FILE),{'ignoreInvalidMetadata':_0x3a8839['ignoreInvalidMetadata']});if(_0x381344?.[_0x575dcd(0x1be)]&&_0x381344[_0x575dcd(0x1be)]!==_0x49cfc4&&!_0x3a8839['allowAppCodeRetarget']&&!_0x3a8839[_0x575dcd(0x1a7)])throw CliErrors[_0x575dcd(0x197)]('Skill\x20metadata\x20appCode\x20\x22'+_0x381344[_0x575dcd(0x1be)]+'\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22'+_0x49cfc4+'\x22.');const _0x1743fb=resolvePushSkillCode(_0x4a532e,_0x49cfc4,_0x381344,_0x3a8839);if(!_0x1743fb)throw CliErrors[_0x575dcd(0x197)](_0x575dcd(0x1ba)+SKILL_FILE+',\x20'+METADATA_FILE+_0x575dcd(0x1c8));return{'dir':_0x4a532e,'skillCode':_0x1743fb,'metadata':_0x381344};}export function readPushDirectory(_0x127bf1,_0x21b46f,_0x16cd7a={}){const _0x34d795=a147_0x23da,_0x2d9e3a=resolvePushDirectoryIdentity(_0x127bf1,_0x21b46f,_0x16cd7a),_0x47a942=_0x2d9e3a[_0x34d795(0x1b2)],_0x44b108=resolve(_0x47a942,SKILL_FILE);if(!existsSync(_0x44b108)||!lstatSync(_0x44b108)[_0x34d795(0x1b1)]())throw CliErrors['validation'](_0x34d795(0x1c3)+SKILL_FILE+':\x20'+_0x44b108);const _0x542d94=_0x2d9e3a[_0x34d795(0x1cb)],_0x1f5669=_0x16cd7a[_0x34d795(0x1a3)]??_0x34d795(0x1b0);if(!_0x16cd7a[_0x34d795(0x1c0)]&&_0x542d94?.[_0x34d795(0x194)]==='builtin')throw CliErrors[_0x34d795(0x197)](_0x34d795(0x1b5)+METADATA_FILE+_0x34d795(0x1ca)+_0x542d94[_0x34d795(0x194)]+'\x22.');if(!_0x16cd7a[_0x34d795(0x1c0)]&&_0x1f5669===_0x34d795(0x1b0)&&_0x542d94?.[_0x34d795(0x194)]&&_0x542d94['scope']!==_0x34d795(0x1b0))throw CliErrors[_0x34d795(0x197)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20'+METADATA_FILE+_0x34d795(0x1ca)+_0x542d94[_0x34d795(0x194)]+'\x22.','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20'+_0x47a942+_0x34d795(0x1c5));const _0x15a341=scanSkillDirectory(_0x47a942,{'excludedFilePaths':_0x16cd7a[_0x34d795(0x1a5)]}),_0x249d52=buildSkillPackage(_0x15a341),_0x19647b=readFileSync(_0x44b108,'utf8'),_0x4614da=_0x2d9e3a[_0x34d795(0x18d)],_0x408fc0=_0x16cd7a[_0x34d795(0x1c2)]?undefined:_0x542d94,_0x3cc065=readSkillDisplayName(_0x19647b);return{'skillCode':_0x4614da,'metadata':_0x542d94,'frontmatterDisplayName':_0x3cc065,'input':{'skillCode':_0x4614da,'skillName':_0x3cc065??_0x408fc0?.[_0x34d795(0x19a)],'description':_0x408fc0?.[_0x34d795(0x1cd)],'content':_0x19647b,'files':_0x249d52[_0x34d795(0x1c7)],'packageBase64':_0x249d52[_0x34d795(0x1c4)],'tags':_0x408fc0?.[_0x34d795(0x191)],'version':_0x408fc0?.[_0x34d795(0x1c6)],'sourceSessionId':_0x408fc0?.['sourceSessionId']}};}export function refreshPushDirectoryMetadataFromRemote(_0x157c63,_0x128503,_0x38bad9,_0x20da56={}){const _0x7aa8ad=a147_0x23da,_0x1f9e78=resolvePushDirectoryRoot(_0x157c63),_0x108ce4=readPushMetadataIfPresent(resolve(_0x1f9e78,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x27f606=requireRemoteScope(_0x128503),_0x60e458=readLocalSkillContent(_0x1f9e78),_0x37b451={..._0x128503,'appCode':_0x128503[_0x7aa8ad(0x1be)]??_0x38bad9,'skillName':_0x128503[_0x7aa8ad(0x19a)]??_0x108ce4?.['skillName'],'description':_0x128503[_0x7aa8ad(0x1cd)]??_0x108ce4?.[_0x7aa8ad(0x1cd)],'example':_0x128503['example']??_0x108ce4?.[_0x7aa8ad(0x1a0)],'tags':Array[_0x7aa8ad(0x19d)](_0x128503['tags'])?_0x128503[_0x7aa8ad(0x191)]:_0x108ce4?.[_0x7aa8ad(0x191)],'sourceSessionId':_0x128503[_0x7aa8ad(0x1af)]??_0x108ce4?.[_0x7aa8ad(0x1af)],'content':_0x128503[_0x7aa8ad(0x19e)]??_0x60e458},_0xbe0b23=buildMetadata(_0x37b451,_0x27f606,_0x38bad9,contentHash(_0x60e458),_0x20da56[_0x7aa8ad(0x1cc)]);writeJsonAtomic(resolve(_0x1f9e78,METADATA_FILE),_0xbe0b23);}export function recordPushedRuntimeSkill(_0x41ad31,_0x1f1d6a,_0x2c780b,_0x5ee49d={}){const _0x1cef35=a147_0x23da,_0x26ca84=resolvePushDirectoryRoot(_0x41ad31),_0x2e2fe0=scanSkillDirectory(_0x26ca84),_0x20bc38=_0x2e2fe0[_0x1cef35(0x199)](_0xfe1eda=>_0xfe1eda[_0x1cef35(0x1ad)]===SKILL_FILE),_0x4c2bb1=_0x20bc38?fileText(_0x20bc38):'',_0x2b3525=tryNormalizePackageManifest(_0x1f1d6a[_0x1cef35(0x18b)]),_0x5017c8={..._0x1f1d6a,'content':_0x1f1d6a[_0x1cef35(0x19e)]??_0x4c2bb1,'files':_0x2b3525},_0x20435e=_0x2b3525?normalizeLocalFiles(_0x2e2fe0)[_0x1cef35(0x1a4)](_0x377886=>_0x2b3525[_0x1cef35(0x18b)][_0x1cef35(0x1ac)](_0x6db4c0=>_0x6db4c0[_0x1cef35(0x1ad)]===_0x377886['path'])):undefined,_0x3e1e21=buildMetadata(_0x5017c8,_0x5ee49d['scope']??_0x1cef35(0x1b0),_0x2c780b,contentHash(_0x5017c8[_0x1cef35(0x19e)]??''),_0x5ee49d[_0x1cef35(0x1b7)],_0x20435e);writeJsonAtomic(resolve(_0x26ca84,METADATA_FILE),_0x3e1e21);}export function deriveSkillCodeFromDirectory(_0x359b88,_0x3cf2d5){const _0x4cf489=a147_0x23da,_0xab6d05=basename(resolve(_0x359b88)),_0x65910=_0x3cf2d5+'--';return _0xab6d05['startsWith'](_0x65910)?_0xab6d05[_0x4cf489(0x19c)](_0x65910[_0x4cf489(0x19f)]):_0xab6d05;}function resolvePushSkillCode(_0x92769c,_0x21e144,_0x4392bb,_0x56f250){const _0x188396=a147_0x23da,_0x4d0c29=deriveSkillCodeFromSkillFile(_0x92769c)||deriveSkillCodeFromDirectory(_0x92769c,_0x21e144);if(_0x56f250['ignoreMetadataSkillCode'])return _0x4d0c29;return _0x4392bb?.[_0x188396(0x18d)]?.[_0x188396(0x1c9)]()||_0x4d0c29;}function deriveSkillCodeFromSkillFile(_0x70c97d){const _0x216955=a147_0x23da,_0x5a7d7f=resolve(_0x70c97d,SKILL_FILE);if(!existsSync(_0x5a7d7f)||!lstatSync(_0x5a7d7f)[_0x216955(0x1b1)]())return undefined;const _0x38c28d=readFileSync(_0x5a7d7f,'utf8'),_0xdd946d=_0x38c28d[_0x216955(0x190)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0xdd946d)return undefined;const _0x13be12=parseFrontmatterObject(_0xdd946d[0x1]??''),_0x2b5962=scalarToString(_0x13be12?.['name']);return _0x2b5962?slugifySkillName(_0x2b5962):undefined;}function readSkillDisplayName(_0x20b620){const _0x5627a7=a147_0x23da,_0x200846=_0x20b620[_0x5627a7(0x190)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x200846)return undefined;const _0x3ad882=parseFrontmatterObject(_0x200846[0x1]??'');return scalarToString(_0x3ad882?.[_0x5627a7(0x1bb)]);}function slugifySkillName(_0x1c787c){const _0x562ea0=a147_0x23da,_0x45c15c=_0x1c787c[_0x562ea0(0x1c9)]()[_0x562ea0(0x1a1)]()[_0x562ea0(0x1a2)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x562ea0(0x1a2)](/^-+/,'')['replace'](/-+$/,'')[_0x562ea0(0x1a2)](/-{2,}/g,'-');if(!_0x45c15c)throw CliErrors[_0x562ea0(0x197)](_0x562ea0(0x18e)+SKILL_FILE+'\x20name\x20for\x20SkillHub\x20slug\x20generation.');return _0x45c15c;}function parseFrontmatterObject(_0xe1dfcc){const _0xccdb12=a147_0x23da;try{const _0xde4ae8=a147_0x56441c(_0xe1dfcc);return _0xde4ae8&&typeof _0xde4ae8==='object'&&!Array[_0xccdb12(0x19d)](_0xde4ae8)?_0xde4ae8:undefined;}catch{return undefined;}}function scalarToString(_0x1125bd){const _0x4421d2=a147_0x23da;if(typeof _0x1125bd===_0x4421d2(0x193))return _0x1125bd[_0x4421d2(0x1c9)]();if(typeof _0x1125bd===_0x4421d2(0x1ab)||typeof _0x1125bd===_0x4421d2(0x1b4))return String(_0x1125bd);return undefined;}function resolvePushDirectoryRoot(_0x10f6f4){const _0x59738c=a147_0x23da,_0x56ad5a=resolve(_0x10f6f4);if(!existsSync(_0x56ad5a))throw CliErrors[_0x59738c(0x197)](_0x59738c(0x1a9)+_0x10f6f4);const _0x173c30=lstatSync(_0x56ad5a);if(_0x173c30[_0x59738c(0x1b3)]())return _0x56ad5a;if(_0x173c30['isSymbolicLink']()){const _0x20953c=realpathSync(_0x56ad5a);if(lstatSync(_0x20953c)['isDirectory']())return _0x20953c;}throw CliErrors['validation'](_0x59738c(0x1a9)+_0x10f6f4);}function requireRemoteScope(_0x43a255){const _0x3b0126=a147_0x23da;if(_0x43a255[_0x3b0126(0x194)]===_0x3b0126(0x1b0)||_0x43a255[_0x3b0126(0x194)]===_0x3b0126(0x1bc)||_0x43a255[_0x3b0126(0x194)]===_0x3b0126(0x1b8))return _0x43a255[_0x3b0126(0x194)];throw CliErrors[_0x3b0126(0x197)](_0x3b0126(0x1c1)+(_0x43a255['skillCode']||_0x3b0126(0x1b6))+_0x3b0126(0x196)+(_0x43a255[_0x3b0126(0x194)]??_0x3b0126(0x1a6))+'\x22.');}function readLocalSkillContent(_0x1c110e){const _0x472798=a147_0x23da,_0x1ca8fb=resolve(_0x1c110e,SKILL_FILE);return existsSync(_0x1ca8fb)&&lstatSync(_0x1ca8fb)[_0x472798(0x1b1)]()?readFileSync(_0x1ca8fb,_0x472798(0x1b9)):'';}function readPushMetadataIfPresent(_0x2d85a9,_0x21a725={}){const _0x581d00=a147_0x23da;try{return readMetadataIfPresent(_0x2d85a9);}catch(_0x313582){if(_0x21a725[_0x581d00(0x18f)])return undefined;throw _0x313582;}}
|
|
1
|
+
(function(_0x4e9d00,_0x340645){const _0x4ef81c=a147_0x44e5,_0x5aa108=_0x4e9d00();while(!![]){try{const _0x24fccb=-parseInt(_0x4ef81c(0x189))/0x1*(parseInt(_0x4ef81c(0x18d))/0x2)+-parseInt(_0x4ef81c(0x185))/0x3*(parseInt(_0x4ef81c(0x183))/0x4)+parseInt(_0x4ef81c(0x1b4))/0x5*(parseInt(_0x4ef81c(0x195))/0x6)+-parseInt(_0x4ef81c(0x1b7))/0x7+-parseInt(_0x4ef81c(0x1a1))/0x8*(-parseInt(_0x4ef81c(0x1b0))/0x9)+-parseInt(_0x4ef81c(0x199))/0xa*(parseInt(_0x4ef81c(0x19b))/0xb)+-parseInt(_0x4ef81c(0x1ad))/0xc*(-parseInt(_0x4ef81c(0x180))/0xd);if(_0x24fccb===_0x340645)break;else _0x5aa108['push'](_0x5aa108['shift']());}catch(_0x376c51){_0x5aa108['push'](_0x5aa108['shift']());}}}(a147_0x1a59,0xbaa2b));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a147_0x2f6624}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';import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0x2c7e5c,_0x4d6f17,_0x390787={}){const _0x41b0f1=a147_0x44e5,_0xa0d3a3=resolvePushDirectoryRoot(_0x2c7e5c),_0x5d92c8=readPushMetadataIfPresent(resolve(_0xa0d3a3,METADATA_FILE),{'ignoreInvalidMetadata':_0x390787['ignoreInvalidMetadata']});if(_0x5d92c8?.['appCode']&&_0x5d92c8['appCode']!==_0x4d6f17&&!_0x390787[_0x41b0f1(0x1a0)]&&!_0x390787['ignoreMetadataAppCodeMismatch'])throw CliErrors[_0x41b0f1(0x18e)](_0x41b0f1(0x1a8)+_0x5d92c8[_0x41b0f1(0x1a4)]+_0x41b0f1(0x1a6)+_0x4d6f17+'\x22.');const _0x35dcf2=resolvePushSkillCode(_0xa0d3a3,_0x4d6f17,_0x5d92c8,_0x390787);if(!_0x35dcf2)throw CliErrors[_0x41b0f1(0x18e)]('Unable\x20to\x20resolve\x20skillCode\x20from\x20'+SKILL_FILE+',\x20'+METADATA_FILE+_0x41b0f1(0x1bf));return{'dir':_0xa0d3a3,'skillCode':_0x35dcf2,'metadata':_0x5d92c8};}export function readPushDirectory(_0x4038d8,_0x5c1999,_0x1b53c2={}){const _0x100670=a147_0x44e5,_0x5d0076=resolvePushDirectoryIdentity(_0x4038d8,_0x5c1999,_0x1b53c2),_0x4a294d=_0x5d0076['dir'],_0x47748b=resolve(_0x4a294d,SKILL_FILE);if(!existsSync(_0x47748b)||!lstatSync(_0x47748b)[_0x100670(0x1ab)]())throw CliErrors[_0x100670(0x18e)]('Missing\x20'+SKILL_FILE+':\x20'+_0x47748b);const _0x536a83=_0x5d0076[_0x100670(0x184)],_0x1da506=_0x1b53c2[_0x100670(0x196)]??_0x100670(0x1b3);if(!_0x1b53c2[_0x100670(0x19c)]&&_0x536a83?.[_0x100670(0x1be)]==='builtin')throw CliErrors[_0x100670(0x18e)](_0x100670(0x190)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x536a83[_0x100670(0x1be)]+'\x22.');if(!_0x1b53c2['ignoreMetadataScope']&&_0x1da506===_0x100670(0x1b3)&&_0x536a83?.[_0x100670(0x1be)]&&_0x536a83['scope']!=='personal')throw CliErrors[_0x100670(0x18e)](_0x100670(0x18f)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x536a83['scope']+'\x22.','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20'+_0x4a294d+'\x20to\x20submit\x20company\x20Skills\x20for\x20review.');const _0x4e5205=scanSkillDirectory(_0x4a294d,{'excludedFilePaths':_0x1b53c2[_0x100670(0x1c0)]}),_0x433976=buildSkillPackage(_0x4e5205),_0x187e47=readFileSync(_0x47748b,'utf8'),_0x390e4d=_0x5d0076['skillCode'],_0x453af7=_0x1b53c2[_0x100670(0x192)]?undefined:_0x536a83,_0x12f76f=readSkillDisplayName(_0x187e47);return{'skillCode':_0x390e4d,'metadata':_0x536a83,'frontmatterDisplayName':_0x12f76f,'input':{'skillCode':_0x390e4d,'skillName':_0x12f76f??_0x453af7?.[_0x100670(0x193)],'description':_0x453af7?.['description'],'content':_0x187e47,'files':_0x433976[_0x100670(0x1a3)],'packageBase64':_0x433976[_0x100670(0x1a9)],'tags':_0x453af7?.[_0x100670(0x191)],'version':_0x453af7?.[_0x100670(0x18a)],'sourceSessionId':_0x453af7?.[_0x100670(0x1bd)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x1f2729,_0x753675,_0x5570b6,_0x5070c4={}){const _0x39941f=a147_0x44e5,_0x44bc58=resolvePushDirectoryRoot(_0x1f2729),_0x3444e6=readPushMetadataIfPresent(resolve(_0x44bc58,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x3bf1d7=requireRemoteScope(_0x753675),_0x55d34b=readLocalSkillContent(_0x44bc58),_0x32c595={..._0x753675,'appCode':_0x753675[_0x39941f(0x1a4)]??_0x5570b6,'skillName':_0x753675[_0x39941f(0x193)]??_0x3444e6?.['skillName'],'description':_0x753675['description']??_0x3444e6?.[_0x39941f(0x1b1)],'example':_0x753675['example']??_0x3444e6?.['example'],'tags':Array[_0x39941f(0x1a2)](_0x753675[_0x39941f(0x191)])?_0x753675[_0x39941f(0x191)]:_0x3444e6?.[_0x39941f(0x191)],'sourceSessionId':_0x753675[_0x39941f(0x1bd)]??_0x3444e6?.[_0x39941f(0x1bd)],'content':_0x753675[_0x39941f(0x1a7)]??_0x55d34b},_0x1ee843=buildMetadata(_0x32c595,_0x3bf1d7,_0x5570b6,contentHash(_0x55d34b),_0x5070c4[_0x39941f(0x1aa)]);writeJsonAtomic(resolve(_0x44bc58,METADATA_FILE),_0x1ee843);}export function recordPushedRuntimeSkill(_0x5d3e10,_0x2500d4,_0x3d812f,_0x2d08a3={}){const _0x29fc28=a147_0x44e5,_0x2d6751=resolvePushDirectoryRoot(_0x5d3e10),_0x126112=scanSkillDirectory(_0x2d6751),_0x3ba3fd=_0x126112['find'](_0x3ddc39=>_0x3ddc39[_0x29fc28(0x1af)]===SKILL_FILE),_0x571115=_0x3ba3fd?fileText(_0x3ba3fd):'',_0x377a6c=tryNormalizePackageManifest(_0x2500d4[_0x29fc28(0x19f)]),_0x3f0896={..._0x2500d4,'content':_0x2500d4[_0x29fc28(0x1a7)]??_0x571115,'files':_0x377a6c},_0x1cae85=_0x377a6c?normalizeLocalFiles(_0x126112)[_0x29fc28(0x187)](_0x980091=>_0x377a6c[_0x29fc28(0x19f)]['some'](_0x396c95=>_0x396c95[_0x29fc28(0x1af)]===_0x980091[_0x29fc28(0x1af)])):undefined,_0x18e9a6=buildMetadata(_0x3f0896,_0x2d08a3[_0x29fc28(0x1be)]??_0x29fc28(0x1b3),_0x3d812f,contentHash(_0x3f0896[_0x29fc28(0x1a7)]??''),_0x2d08a3[_0x29fc28(0x1b6)],_0x1cae85);writeJsonAtomic(resolve(_0x2d6751,METADATA_FILE),_0x18e9a6);}export function deriveSkillCodeFromDirectory(_0x1485b2,_0x499ee9){const _0x4988c3=a147_0x44e5,_0x179b03=basename(resolve(_0x1485b2)),_0x4b14ae=_0x499ee9+'--';return _0x179b03[_0x4988c3(0x182)](_0x4b14ae)?_0x179b03[_0x4988c3(0x186)](_0x4b14ae['length']):_0x179b03;}function resolvePushSkillCode(_0x25c6e4,_0x26d25c,_0x5d2441,_0x2955e3){const _0x1bb33d=a147_0x44e5,_0x2efc6a=deriveSkillCodeFromSkillFile(_0x25c6e4)||deriveSkillCodeFromDirectory(_0x25c6e4,_0x26d25c);if(_0x2955e3[_0x1bb33d(0x19e)])return _0x2efc6a;return _0x5d2441?.[_0x1bb33d(0x1b2)]?.['trim']()||_0x2efc6a;}function deriveSkillCodeFromSkillFile(_0x9c566){const _0xbd5214=a147_0x44e5,_0x4d7f8b=resolve(_0x9c566,SKILL_FILE);if(!existsSync(_0x4d7f8b)||!lstatSync(_0x4d7f8b)[_0xbd5214(0x1ab)]())return undefined;const _0x1b87f9=readFileSync(_0x4d7f8b,_0xbd5214(0x1b8)),_0x18b081=_0x1b87f9[_0xbd5214(0x1bb)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x18b081)return undefined;const _0x3e5a3b=parseFrontmatterObject(_0x18b081[0x1]??''),_0x1be1b5=scalarToString(_0x3e5a3b?.[_0xbd5214(0x18b)]);return _0x1be1b5?slugifySkillName(_0x1be1b5):undefined;}function readSkillDisplayName(_0x106f78){const _0x5c5cb5=a147_0x44e5,_0x27f2af=_0x106f78[_0x5c5cb5(0x1bb)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x27f2af)return undefined;const _0x4e076c=parseFrontmatterObject(_0x27f2af[0x1]??'');return scalarToString(_0x4e076c?.[_0x5c5cb5(0x188)]);}function slugifySkillName(_0x4ebe9b){const _0x4fb976=a147_0x44e5,_0x1d8af2=_0x4ebe9b['trim']()[_0x4fb976(0x18c)]()['replace'](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x4fb976(0x1ae)](/^-+/,'')['replace'](/-+$/,'')['replace'](/-{2,}/g,'-');if(!_0x1d8af2)throw CliErrors['validation']('Invalid\x20'+SKILL_FILE+_0x4fb976(0x198));return _0x1d8af2;}function parseFrontmatterObject(_0x27010e){const _0x5819b7=a147_0x44e5;try{const _0x1f4e40=a147_0x2f6624(_0x27010e);return _0x1f4e40&&typeof _0x1f4e40===_0x5819b7(0x194)&&!Array[_0x5819b7(0x1a2)](_0x1f4e40)?_0x1f4e40:undefined;}catch{return undefined;}}function scalarToString(_0x306358){const _0x41ee16=a147_0x44e5;if(typeof _0x306358===_0x41ee16(0x181))return _0x306358['trim']();if(typeof _0x306358===_0x41ee16(0x197)||typeof _0x306358===_0x41ee16(0x1ac))return String(_0x306358);return undefined;}function a147_0x1a59(){const _0x304802=['company','sourceSessionId','scope',',\x20or\x20directory\x20name.','excludedFilePaths','26DcHpCI','string','startsWith','268qpOErN','metadata','57552TwRSlB','slice','filter','displayName','614hCYfky','version','name','toLowerCase','390uWmjiM','validation','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','tags','ignoreMetadataForPayload','skillName','object','32166fYtjBA','targetScope','number','\x20name\x20for\x20SkillHub\x20slug\x20generation.','8410DNiDHE','ignoreInvalidMetadata','10450munnNi','ignoreMetadataScope','unknown','ignoreMetadataSkillCode','files','allowAppCodeRetarget','2137768VtGkDY','isArray','manifest','appCode','Remote\x20Skill\x20','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','content','Skill\x20metadata\x20appCode\x20\x22','packageBase64','refreshedAt','isFile','boolean','10730628obqrML','replace','path','27aMyPfS','description','skillCode','personal','615FWqdHT','\x20has\x20unsupported\x20scope\x20\x22','pushedAt','1967259dDlybQ','utf8','isDirectory','Skill\x20directory\x20not\x20found:\x20','match'];a147_0x1a59=function(){return _0x304802;};return a147_0x1a59();}function a147_0x44e5(_0x1e6847,_0x44f2a5){_0x1e6847=_0x1e6847-0x180;const _0x1a590e=a147_0x1a59();let _0x44e594=_0x1a590e[_0x1e6847];return _0x44e594;}function resolvePushDirectoryRoot(_0x4ad92d){const _0x1afc4c=a147_0x44e5,_0x527588=resolve(_0x4ad92d);if(!existsSync(_0x527588))throw CliErrors[_0x1afc4c(0x18e)](_0x1afc4c(0x1ba)+_0x4ad92d);const _0x37d11=lstatSync(_0x527588);if(_0x37d11[_0x1afc4c(0x1b9)]())return _0x527588;if(_0x37d11['isSymbolicLink']()){const _0x72a750=realpathSync(_0x527588);if(lstatSync(_0x72a750)[_0x1afc4c(0x1b9)]())return _0x72a750;}throw CliErrors[_0x1afc4c(0x18e)](_0x1afc4c(0x1ba)+_0x4ad92d);}function requireRemoteScope(_0x1d75f7){const _0x3866ac=a147_0x44e5;if(_0x1d75f7['scope']==='personal'||_0x1d75f7[_0x3866ac(0x1be)]===_0x3866ac(0x1bc)||_0x1d75f7[_0x3866ac(0x1be)]==='builtin')return _0x1d75f7[_0x3866ac(0x1be)];throw CliErrors[_0x3866ac(0x18e)](_0x3866ac(0x1a5)+(_0x1d75f7['skillCode']||'(unknown)')+_0x3866ac(0x1b5)+(_0x1d75f7[_0x3866ac(0x1be)]??_0x3866ac(0x19d))+'\x22.');}function readLocalSkillContent(_0x39ef86){const _0x4c5f3d=a147_0x44e5,_0x2251a6=resolve(_0x39ef86,SKILL_FILE);return existsSync(_0x2251a6)&&lstatSync(_0x2251a6)[_0x4c5f3d(0x1ab)]()?readFileSync(_0x2251a6,'utf8'):'';}function readPushMetadataIfPresent(_0x45ea42,_0x218c1d={}){const _0x139103=a147_0x44e5;try{return readMetadataIfPresent(_0x45ea42);}catch(_0x362677){if(_0x218c1d[_0x139103(0x19a)])return undefined;throw _0x362677;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a148_0x3914(){const _0x41581f=['company','2jngjhS','14hwckWi','1989639HwuzUg','validation','Unsupported\x20runtime\x20Skill\x20scope:\x20','push','2782884ZyCbUC','4766661OexAlH','247806BeOXho','1622420SUnnGr','25FtjCSI','builtin','1505792EZVkrW','152569zdzrxZ','length','personal'];a148_0x3914=function(){return _0x41581f;};return a148_0x3914();}(function(_0x3bce2c,_0x4ff39c){const _0x109b31=a148_0x4eea,_0x3cdfd9=_0x3bce2c();while(!![]){try{const _0x1939ef=parseInt(_0x109b31(0x1a4))/0x1+parseInt(_0x109b31(0x1a8))/0x2*(-parseInt(_0x109b31(0x199))/0x3)+parseInt(_0x109b31(0x19d))/0x4+parseInt(_0x109b31(0x1a1))/0x5*(parseInt(_0x109b31(0x19f))/0x6)+parseInt(_0x109b31(0x198))/0x7*(-parseInt(_0x109b31(0x1a3))/0x8)+parseInt(_0x109b31(0x19e))/0x9+-parseInt(_0x109b31(0x1a0))/0xa;if(_0x1939ef===_0x4ff39c)break;else _0x3cdfd9['push'](_0x3cdfd9['shift']());}catch(_0xf57f98){_0x3cdfd9['push'](_0x3cdfd9['shift']());}}}(a148_0x3914,0x5d639));import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x1a706a){const _0xd3a4fa=a148_0x4eea,_0x28c79d=_0x1a706a&&_0x1a706a[_0xd3a4fa(0x1a5)]>0x0?_0x1a706a:['personal',_0xd3a4fa(0x1a7),_0xd3a4fa(0x1a2)],_0x3eca20=[];for(const _0x125120 of _0x28c79d){if(!isRuntimeSkillScope(_0x125120))throw CliErrors[_0xd3a4fa(0x19a)](_0xd3a4fa(0x19b)+_0x125120);!_0x3eca20['includes'](_0x125120)&&_0x3eca20[_0xd3a4fa(0x19c)](_0x125120);}return _0x3eca20;}function a148_0x4eea(_0x2db603,_0x2d4b3c){_0x2db603=_0x2db603-0x198;const _0x3914cc=a148_0x3914();let _0x4eea23=_0x3914cc[_0x2db603];return _0x4eea23;}export function isRuntimeSkillScope(_0x391a7a){const _0xa5a88=a148_0x4eea;return _0x391a7a===_0xa5a88(0x1a6)||_0x391a7a===_0xa5a88(0x1a7)||_0x391a7a===_0xa5a88(0x1a2);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5e5069,_0x40b3fa){const _0x17aa99=a150_0x2f4e,_0x4e50ad=_0x5e5069();while(!![]){try{const _0xf7fc35=parseInt(_0x17aa99(0xfd))/0x1*(parseInt(_0x17aa99(0x10e))/0x2)+-parseInt(_0x17aa99(0x101))/0x3*(-parseInt(_0x17aa99(0x102))/0x4)+-parseInt(_0x17aa99(0xfe))/0x5+-parseInt(_0x17aa99(0x106))/0x6*(parseInt(_0x17aa99(0xfc))/0x7)+parseInt(_0x17aa99(0x10f))/0x8*(-parseInt(_0x17aa99(0x100))/0x9)+-parseInt(_0x17aa99(0x113))/0xa*(-parseInt(_0x17aa99(0xff))/0xb)+-parseInt(_0x17aa99(0x105))/0xc*(-parseInt(_0x17aa99(0x10a))/0xd);if(_0xf7fc35===_0x40b3fa)break;else _0x4e50ad['push'](_0x4e50ad['shift']());}catch(_0x41c0cf){_0x4e50ad['push'](_0x4e50ad['shift']());}}}(a150_0x313b,0xa7d4f));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date('1980-01-01T00:00:00.000Z');function a150_0x2f4e(_0x38b5ff,_0xe149f2){_0x38b5ff=_0x38b5ff-0xfc;const _0x313b6c=a150_0x313b();let _0x2f4eb8=_0x313b6c[_0x38b5ff];return _0x2f4eb8;}function a150_0x313b(){const _0x1b904b=['2733731TdrplG','validation','code','object','2dgveaX','5424BBIhwS','endsWith','sort','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','50FhkYke','6988471tvkXFs','1179796IpJpEs','613975tjJqKb','518672QiDmzo','11673PjxiiQ','47349iyIgPg','56JsfAGJ','entries','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','60wGUrrd','6wryVmk','validation_error','from','name'];a150_0x313b=function(){return _0x1b904b;};return a150_0x313b();}export function createDeterministicZipPackage(_0x424ef2){const _0x34be3b={};for(const _0x5c2b58 of normalizeLocalFiles(_0x424ef2)){_0x34be3b[_0x5c2b58['path']]=fileContent(_0x5c2b58);}return Buffer['from'](zipSync(_0x34be3b,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x19ab28){const _0x16b2c8=a150_0x2f4e;if(_0x19ab28['length']<0x16)throw CliErrors[_0x16b2c8(0x10b)]('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');let _0x32919f;try{_0x32919f=unzipSync(_0x19ab28,{'filter'(_0x4d52dc){const _0x166d55=_0x16b2c8,_0x418fd0=normalizeSkillRelativePath(_0x4d52dc[_0x166d55(0x109)]);if(_0x418fd0[_0x166d55(0x110)]('/'))throw CliErrors[_0x166d55(0x10b)](_0x166d55(0x112)+_0x418fd0);return!![];}});}catch(_0x2553d1){if(isRuntimeSkillValidationError(_0x2553d1))throw _0x2553d1;throw CliErrors[_0x16b2c8(0x10b)](_0x16b2c8(0x104));}return Object[_0x16b2c8(0x103)](_0x32919f)['map'](([_0x5a0717,_0x14a9e3])=>({'path':normalizeSkillRelativePath(_0x5a0717),'bytes':Buffer[_0x16b2c8(0x108)](_0x14a9e3)}))[_0x16b2c8(0x111)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x322cb4){const _0x59ac80=a150_0x2f4e;return typeof _0x322cb4===_0x59ac80(0x10d)&&_0x322cb4!==null&&'code'in _0x322cb4&&_0x322cb4[_0x59ac80(0x10c)]===_0x59ac80(0x107);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x267c83,_0x1627e4){const _0x30adbc=a151_0x1faf,_0x5ecfb1=_0x267c83();while(!![]){try{const _0x11dd36=-parseInt(_0x30adbc(0x1e4))/0x1+parseInt(_0x30adbc(0x1ff))/0x2*(-parseInt(_0x30adbc(0x1eb))/0x3)+-parseInt(_0x30adbc(0x1f9))/0x4+parseInt(_0x30adbc(0x1f1))/0x5+-parseInt(_0x30adbc(0x1e0))/0x6*(parseInt(_0x30adbc(0x204))/0x7)+parseInt(_0x30adbc(0x202))/0x8*(-parseInt(_0x30adbc(0x1ec))/0x9)+parseInt(_0x30adbc(0x1e3))/0xa*(parseInt(_0x30adbc(0x1f3))/0xb);if(_0x11dd36===_0x1627e4)break;else _0x5ecfb1['push'](_0x5ecfb1['shift']());}catch(_0x502cb8){_0x5ecfb1['push'](_0x5ecfb1['shift']());}}}(a151_0x586c,0xce198));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(_0x5ddd85){const _0x371d29=a151_0x1faf,_0x27d7e5=normalizeLocalFiles(_0x5ddd85);if(!_0x27d7e5[_0x371d29(0x1f0)](_0x2d32ac=>_0x2d32ac[_0x371d29(0x1e1)]===SKILL_FILE))throw CliErrors[_0x371d29(0x1f7)](_0x371d29(0x1ee)+SKILL_FILE+'\x20in\x20Skill\x20file\x20package.');const _0x1a8e87=localFilesToManifestFiles(_0x27d7e5),_0x3af39b=createDeterministicZipPackage(_0x27d7e5);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x1a8e87),'zipSha256':bufferSha256(_0x3af39b),'zipSize':_0x3af39b['length'],'files':_0x1a8e87},'packageBytes':_0x3af39b,'packageBase64':_0x3af39b[_0x371d29(0x1fa)](_0x371d29(0x1f8))};}export function verifyRuntimeSkillPackage(_0x7fb1ed,_0x31a878){const _0x12f1be=a151_0x1faf,_0x1ef04c=normalizePackageManifest(_0x7fb1ed,{'requireOssPath':![]});if(!_0x1ef04c)throw CliErrors['validation'](_0x12f1be(0x1f4));return extractAndVerifyPackage(_0x1ef04c,_0x31a878);}function a151_0x586c(){const _0x17018d=['sha256','Runtime\x20Skill\x20package\x20is\x20missing\x20','object','isArray','zipSha256','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','has','ossPath','trim','42054hzoqLI','path','set','64990OgnAbJ','1579934JgaejQ','treeSha256','get','requireOssPath','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','files','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','3qFUJSs','1024047cwaBXJ','length','Missing\x20','bytes','some','6288630xdrBhf','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','7271LCoGIz','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','schemaVersion','zipSize','validation','base64','3341456iMMokJ','toString','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','toLowerCase','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','map','2934948KaLPlK','isSafeInteger','Duplicate\x20Skill\x20package\x20entry:\x20','32XshyKO','push','371dOzrpj'];a151_0x586c=function(){return _0x17018d;};return a151_0x586c();}export function verifyRuntimeSkillBundle(_0x50a3a,_0x1391b4){const _0x4dc51d=a151_0x1faf,_0x3fe56f=normalizePackageManifest(_0x50a3a,{'requireOssPath':![]});if(!_0x3fe56f)throw CliErrors[_0x4dc51d(0x1f7)](_0x4dc51d(0x1f4));return extractAndVerifyPackageFiles(_0x3fe56f,_0x1391b4);}export function tryNormalizePackageManifest(_0x26acbf){return normalizePackageManifest(_0x26acbf,{'requireOssPath':![]});}export function requirePackageBytes(_0x14689d,_0x44b07b){const _0x3fd616=a151_0x1faf;if(!_0x44b07b||_0x44b07b[_0x3fd616(0x1ed)]===0x0)throw CliErrors[_0x3fd616(0x1f7)](_0x3fd616(0x1e8)+_0x14689d);return _0x44b07b;}export function extractDownloadedPackage(_0x3bcad4){const _0x3aa101=a151_0x1faf,_0x4c752a=parseZipPackage(_0x3bcad4)[_0x3aa101(0x1fe)](_0x46936f=>({'path':_0x46936f[_0x3aa101(0x1e1)],'bytes':_0x46936f[_0x3aa101(0x1ef)]}));if(!_0x4c752a[_0x3aa101(0x1f0)](_0x38ae17=>_0x38ae17[_0x3aa101(0x1e1)]===SKILL_FILE))throw CliErrors[_0x3aa101(0x1f7)](_0x3aa101(0x206)+SKILL_FILE+'.');return normalizeLocalFiles(_0x4c752a);}export function localFilesToManifestFiles(_0x6f3a08){const _0x1a6e55=a151_0x1faf;return normalizeLocalFiles(_0x6f3a08)[_0x1a6e55(0x1fe)](_0x19be6b=>({'path':_0x19be6b[_0x1a6e55(0x1e1)],'sha256':fileHash(_0x19be6b),'size':fileContent(_0x19be6b)[_0x1a6e55(0x1ed)]}));}function normalizePackageManifest(_0x7c2910,_0x592b57){const _0x13c2a5=a151_0x1faf;if(!_0x7c2910||typeof _0x7c2910!==_0x13c2a5(0x207)||Array['isArray'](_0x7c2910))return undefined;const _0x217d38=_0x7c2910,_0xb3d783=typeof _0x217d38[_0x13c2a5(0x1de)]==='string'?_0x217d38['ossPath'][_0x13c2a5(0x1df)]():undefined;if(_0x592b57[_0x13c2a5(0x1e7)]&&!_0xb3d783)return undefined;if(!Array[_0x13c2a5(0x208)](_0x217d38[_0x13c2a5(0x1e9)])||_0x217d38[_0x13c2a5(0x1e9)][_0x13c2a5(0x1ed)]===0x0)return undefined;if(!isSha256Hex(_0x217d38[_0x13c2a5(0x1e5)]))throw CliErrors[_0x13c2a5(0x1f7)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.');if(!isSha256Hex(_0x217d38[_0x13c2a5(0x209)]))throw CliErrors[_0x13c2a5(0x1f7)](_0x13c2a5(0x1fd));if(!Number[_0x13c2a5(0x200)](_0x217d38[_0x13c2a5(0x1f6)])||_0x217d38['zipSize']<0x0)throw CliErrors[_0x13c2a5(0x1f7)]('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');const _0x1ca0dc=normalizeManifestFiles(_0x217d38[_0x13c2a5(0x1e9)]);if(!_0x1ca0dc[_0x13c2a5(0x1f0)](_0x2f383c=>_0x2f383c[_0x13c2a5(0x1e1)]===SKILL_FILE))throw CliErrors[_0x13c2a5(0x1f7)]('Runtime\x20Skill\x20manifest\x20is\x20missing\x20'+SKILL_FILE+'.');const _0x521819=fileTreeHash(_0x1ca0dc);if(_0x521819!==_0x217d38[_0x13c2a5(0x1e5)][_0x13c2a5(0x1fc)]())throw CliErrors[_0x13c2a5(0x1f7)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number['isSafeInteger'](_0x217d38[_0x13c2a5(0x1f5)])?_0x217d38[_0x13c2a5(0x1f5)]:0x2,'ossPath':_0xb3d783,'treeSha256':_0x521819,'zipSha256':_0x217d38['zipSha256'][_0x13c2a5(0x1fc)](),'zipSize':_0x217d38[_0x13c2a5(0x1f6)],'files':_0x1ca0dc};}function a151_0x1faf(_0x5c7f44,_0x43422d){_0x5c7f44=_0x5c7f44-0x1dc;const _0x586caa=a151_0x586c();let _0x1faf72=_0x586caa[_0x5c7f44];return _0x1faf72;}function extractAndVerifyPackage(_0x3820c3,_0x408cab){const _0x374bf0=a151_0x1faf,_0x1ae2b3=normalizePackageManifest(_0x3820c3,{'requireOssPath':![]});if(!_0x1ae2b3)throw CliErrors[_0x374bf0(0x1f7)](_0x374bf0(0x1f4));if(_0x408cab[_0x374bf0(0x1ed)]!==_0x1ae2b3[_0x374bf0(0x1f6)])throw CliErrors[_0x374bf0(0x1f7)]('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x55ccbd=bufferSha256(_0x408cab);if(_0x55ccbd!==_0x1ae2b3['zipSha256'])throw CliErrors[_0x374bf0(0x1f7)](_0x374bf0(0x1ea));return extractAndVerifyPackageFiles(_0x1ae2b3,_0x408cab);}function extractAndVerifyPackageFiles(_0x2bb86b,_0x4e0742){const _0x2b9dcc=a151_0x1faf,_0x9ef5f9=parseZipPackage(_0x4e0742);if(_0x9ef5f9[_0x2b9dcc(0x1ed)]!==_0x2bb86b[_0x2b9dcc(0x1e9)]['length'])throw CliErrors[_0x2b9dcc(0x1f7)](_0x2b9dcc(0x1dc));const _0x214e81=new Map();for(const _0x4fd271 of _0x9ef5f9){if(_0x214e81[_0x2b9dcc(0x1dd)](_0x4fd271[_0x2b9dcc(0x1e1)]))throw CliErrors['validation'](_0x2b9dcc(0x201)+_0x4fd271[_0x2b9dcc(0x1e1)]);_0x214e81[_0x2b9dcc(0x1e2)](_0x4fd271[_0x2b9dcc(0x1e1)],_0x4fd271);}const _0x5545a8=[];for(const _0x2f226d of _0x2bb86b['files']){const _0x1c07cd=_0x214e81[_0x2b9dcc(0x1e6)](_0x2f226d[_0x2b9dcc(0x1e1)]);if(!_0x1c07cd)throw CliErrors['validation'](_0x2b9dcc(0x1f2)+_0x2f226d['path']);if(_0x1c07cd[_0x2b9dcc(0x1ef)][_0x2b9dcc(0x1ed)]!==_0x2f226d['size'])throw CliErrors[_0x2b9dcc(0x1f7)]('Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'+_0x2f226d[_0x2b9dcc(0x1e1)]);const _0xd93f09=bufferSha256(_0x1c07cd['bytes']);if(_0xd93f09!==_0x2f226d[_0x2b9dcc(0x205)])throw CliErrors[_0x2b9dcc(0x1f7)](_0x2b9dcc(0x1fb)+_0x2f226d[_0x2b9dcc(0x1e1)]);_0x5545a8[_0x2b9dcc(0x203)]({'path':_0x2f226d[_0x2b9dcc(0x1e1)],'bytes':_0x1c07cd[_0x2b9dcc(0x1ef)]});}return normalizeLocalFiles(_0x5545a8);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3a2676,_0xe0a447){var _0x28820e=a152_0x34b2,_0x5adaf8=_0x3a2676();while(!![]){try{var _0x44d200=-parseInt(_0x28820e(0x15c))/0x1*(parseInt(_0x28820e(0x15b))/0x2)+parseInt(_0x28820e(0x161))/0x3+parseInt(_0x28820e(0x15e))/0x4*(-parseInt(_0x28820e(0x15f))/0x5)+parseInt(_0x28820e(0x158))/0x6*(-parseInt(_0x28820e(0x15a))/0x7)+parseInt(_0x28820e(0x162))/0x8*(parseInt(_0x28820e(0x159))/0x9)+-parseInt(_0x28820e(0x157))/0xa*(parseInt(_0x28820e(0x15d))/0xb)+parseInt(_0x28820e(0x160))/0xc;if(_0x44d200===_0xe0a447)break;else _0x5adaf8['push'](_0x5adaf8['shift']());}catch(_0x24807f){_0x5adaf8['push'](_0x5adaf8['shift']());}}}(a152_0x58dd,0xcda83));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';function a152_0x34b2(_0x411999,_0x283cef){_0x411999=_0x411999-0x157;var _0x58dd73=a152_0x58dd();var _0x34b2a9=_0x58dd73[_0x411999];return _0x34b2a9;}function a152_0x58dd(){var _0x222e25=['1PCnlPA','22CXXkvs','84lVtFns','363035payqBR','62495748VswFxM','1437690netUOy','324776IMaTcW','4132280nuiFdO','66kgepCk','36VUzEGk','970592QEVOzT','2261614ViwVtC'];a152_0x58dd=function(){return _0x222e25;};return a152_0x58dd();}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';export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a153_0x30a63e=a153_0x1205;(function(_0x3fb6e9,_0x3a2a68){const _0x4d6ebd=a153_0x1205,_0x23b6ff=_0x3fb6e9();while(!![]){try{const _0x57cdc3=-parseInt(_0x4d6ebd(0xd8))/0x1*(parseInt(_0x4d6ebd(0xda))/0x2)+parseInt(_0x4d6ebd(0xc0))/0x3*(-parseInt(_0x4d6ebd(0xcd))/0x4)+-parseInt(_0x4d6ebd(0xdc))/0x5*(-parseInt(_0x4d6ebd(0xd3))/0x6)+parseInt(_0x4d6ebd(0xcc))/0x7*(-parseInt(_0x4d6ebd(0xd4))/0x8)+-parseInt(_0x4d6ebd(0xca))/0x9+-parseInt(_0x4d6ebd(0xc6))/0xa+parseInt(_0x4d6ebd(0xc7))/0xb*(parseInt(_0x4d6ebd(0xd1))/0xc);if(_0x57cdc3===_0x3a2a68)break;else _0x23b6ff['push'](_0x23b6ff['shift']());}catch(_0x318849){_0x23b6ff['push'](_0x23b6ff['shift']());}}}(a153_0x5c1b,0x1d15e));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';function a153_0x1205(_0x2ccd56,_0x5a0b56){_0x2ccd56=_0x2ccd56-0xb7;const _0x5c1bce=a153_0x5c1b();let _0x12050c=_0x5c1bce[_0x2ccd56];return _0x12050c;}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a153_0x30a63e(0xc5),a153_0x30a63e(0xba));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a153_0x30a63e(0xc5),'skills'),join('.claude',a153_0x30a63e(0xbe))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x1508cf,_0x53e1c3){const _0x3f76b0=a153_0x30a63e;if(!existsSync(_0x1508cf))return{'kind':_0x3f76b0(0xc9)};let _0x37400e;try{_0x37400e=JSON[_0x3f76b0(0xc2)](readFileSync(_0x1508cf,_0x3f76b0(0xd2)));}catch(_0x51f751){return{'kind':_0x3f76b0(0xd6),'reason':_0x1508cf+_0x3f76b0(0xb9)+_0x51f751[_0x3f76b0(0xbd)]};}const _0x119164=_0x37400e;if(typeof _0x119164?.[_0x3f76b0(0xd7)]!==_0x3f76b0(0xd5)||!SUPPORTED_LOCK_VERSIONS[_0x3f76b0(0xc1)](_0x119164['version']))return{'kind':_0x3f76b0(0xd6),'reason':_0x1508cf+'\x20uses\x20unsupported\x20version\x20'+String(_0x119164?.[_0x3f76b0(0xd7)])};if(!_0x119164[_0x3f76b0(0xbe)]||typeof _0x119164[_0x3f76b0(0xbe)]!==_0x3f76b0(0xcb))return{'kind':'unusable','reason':_0x1508cf+'\x20has\x20no\x20skills\x20map'};return _0x119164[_0x3f76b0(0xbe)][_0x53e1c3]?{'kind':_0x3f76b0(0xb8)}:{'kind':_0x3f76b0(0xc9)};}export function resolveInstalledSkill(_0x32515a,_0xb76d75){const _0x2055a3=a153_0x30a63e,_0x52f5fc=_0xb76d75?.[_0x2055a3(0xb7)]??homedir(),_0x318ab6=_0xb76d75?.[_0x2055a3(0xdb)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x2055a3(0xc8)](_0x1fc27f=>join(_0x52f5fc,_0x1fc27f)),_0x41da67=_0xb76d75?.[_0x2055a3(0xbc)]??join(_0x52f5fc,SKILL_LOCK_RELATIVE_PATH),_0x156a7b=_0x318ab6[_0x2055a3(0xc8)](_0x9b86c6=>join(_0x9b86c6,_0x32515a,_0x2055a3(0xc3))),_0xee2fb1=_0x156a7b[_0x2055a3(0xc4)](_0xbf7ee5=>existsSync(_0xbf7ee5));if(_0xee2fb1)return{'state':_0x2055a3(0xd0),'path':_0xee2fb1};const _0x2d7601=readLockLookup(_0x41da67,_0x32515a);if(_0x2d7601[_0x2055a3(0xce)]===_0x2055a3(0xd6))return{'state':_0x2055a3(0xcf),'reason':_0x2d7601['reason']};if(_0x2d7601[_0x2055a3(0xce)]===_0x2055a3(0xb8))return{'state':_0x2055a3(0xcf),'reason':_0x41da67+'\x20records\x20\x22'+_0x32515a+_0x2055a3(0xbf)+('('+_0x156a7b[_0x2055a3(0xd9)](',\x20')+')')};return{'state':_0x2055a3(0xbb),'checked':_0x156a7b};}function a153_0x5c1b(){const _0x172f62=['905330CnNmED','home','recorded','\x20is\x20unreadable:\x20','.skill-lock.json','absent','lockFile','message','skills','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','232911KnfIKi','includes','parse','SKILL.md','find','.agents','1338290sEwJpx','5727535ngtSgt','map','not-recorded','1488483NhQsfS','object','425285WovqHa','8WvVcZo','kind','unverifiable','present','12pMWXTj','utf8','6TtNQEd','16fMHFtA','number','unusable','version','1IFKoWq','join','13234VVChnj','globalSkillsDirs'];a153_0x5c1b=function(){return _0x172f62;};return a153_0x5c1b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a154_0xbb6c(){const _0x4bd6f6=['2508204SxHkKf','7783866kcNSky','978900OiBjHb','entries','<redacted>','string','474945lyNJHu','326172OAqicr','1522730rbNQMU','accessKey','test','call','object','hasOwnProperty','isArray','24FNULTw','repeat','48VYBhMF','prototype','slice','16330xwqRXV','length','fromEntries','apps'];a154_0xbb6c=function(){return _0x4bd6f6;};return a154_0xbb6c();}const a154_0x3124d4=a154_0x12ea;(function(_0x3afc97,_0x40eb67){const _0x1642f1=a154_0x12ea,_0x39fda6=_0x3afc97();while(!![]){try{const _0x8d4633=-parseInt(_0x1642f1(0x117))/0x1+parseInt(_0x1642f1(0x10d))/0x2*(parseInt(_0x1642f1(0x122))/0x3)+-parseInt(_0x1642f1(0x113))/0x4+-parseInt(_0x1642f1(0x119))/0x5+parseInt(_0x1642f1(0x111))/0x6+parseInt(_0x1642f1(0x118))/0x7*(-parseInt(_0x1642f1(0x120))/0x8)+parseInt(_0x1642f1(0x112))/0x9;if(_0x8d4633===_0x40eb67)break;else _0x39fda6['push'](_0x39fda6['shift']());}catch(_0x4420d2){_0x39fda6['push'](_0x39fda6['shift']());}}}(a154_0xbb6c,0x3cec8));const REDACTED_ACCESS_KEY=a154_0x3124d4(0x115);function a154_0x12ea(_0x301017,_0x30ffec){_0x301017=_0x301017-0x10c;const _0xbb6c1a=a154_0xbb6c();let _0x12ea3a=_0xbb6c1a[_0x301017];return _0x12ea3a;}export function maskCliAccessKey(_0x201163){const _0xbc0a07=a154_0x3124d4;if(typeof _0x201163!==_0xbc0a07(0x116)||_0x201163[_0xbc0a07(0x10e)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x201163[_0xbc0a07(0x10c)](0x0,0x8)+'*'[_0xbc0a07(0x121)](_0x201163['length']-0x8);}export function redactCliConfigCredentials(_0xd655ad){const _0x227041=a154_0x3124d4,_0x34b4ad={..._0xd655ad};return Object['prototype'][_0x227041(0x11e)][_0x227041(0x11c)](_0x34b4ad,_0x227041(0x11a))&&(_0x34b4ad[_0x227041(0x11a)]=maskCliAccessKey(_0x34b4ad[_0x227041(0x11a)])),_0x34b4ad['apps']&&typeof _0x34b4ad[_0x227041(0x110)]==='object'&&!Array[_0x227041(0x11f)](_0x34b4ad['apps'])&&(_0x34b4ad['apps']=redactLegacyAppCredentials(_0x34b4ad['apps'])),_0x34b4ad;}export function redactCliConfigValue(_0x413fc3,_0xc4eca5){const _0x32c536=a154_0x3124d4;if(_0x413fc3===_0x32c536(0x11a)||/^apps\.[^.]+\.accessKey$/['test'](_0x413fc3))return maskCliAccessKey(_0xc4eca5);if(_0x413fc3===_0x32c536(0x110)&&_0xc4eca5&&typeof _0xc4eca5===_0x32c536(0x11d)&&!Array[_0x32c536(0x11f)](_0xc4eca5))return redactLegacyAppCredentials(_0xc4eca5);if(/^apps\.[^.]+$/[_0x32c536(0x11b)](_0x413fc3)&&_0xc4eca5&&typeof _0xc4eca5===_0x32c536(0x11d)&&!Array['isArray'](_0xc4eca5)){const _0x4c227f=_0xc4eca5;return Object[_0x32c536(0x123)][_0x32c536(0x11e)][_0x32c536(0x11c)](_0x4c227f,_0x32c536(0x11a))?{..._0x4c227f,'accessKey':maskCliAccessKey(_0x4c227f[_0x32c536(0x11a)])}:_0xc4eca5;}return _0xc4eca5;}function redactLegacyAppCredentials(_0x144ac0){const _0xca3b1b=a154_0x3124d4;return Object[_0xca3b1b(0x10f)](Object[_0xca3b1b(0x114)](_0x144ac0)['map'](([_0x194e3e,_0x3d3bcd])=>{const _0x44908f=_0xca3b1b;if(!_0x3d3bcd||typeof _0x3d3bcd!==_0x44908f(0x11d)||Array['isArray'](_0x3d3bcd))return[_0x194e3e,_0x3d3bcd];const _0x153b6a={..._0x3d3bcd};return Object['prototype']['hasOwnProperty'][_0x44908f(0x11c)](_0x153b6a,_0x44908f(0x11a))&&(_0x153b6a['accessKey']=maskCliAccessKey(_0x153b6a[_0x44908f(0x11a)])),[_0x194e3e,_0x153b6a];}));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2bf09c,_0x13c321){const _0x3801a4=a155_0x44b4,_0x591b8f=_0x2bf09c();while(!![]){try{const _0x3ef9aa=parseInt(_0x3801a4(0x14d))/0x1+parseInt(_0x3801a4(0x151))/0x2*(parseInt(_0x3801a4(0x156))/0x3)+-parseInt(_0x3801a4(0x14e))/0x4*(-parseInt(_0x3801a4(0x154))/0x5)+-parseInt(_0x3801a4(0x14c))/0x6*(-parseInt(_0x3801a4(0x150))/0x7)+-parseInt(_0x3801a4(0x153))/0x8+-parseInt(_0x3801a4(0x155))/0x9*(-parseInt(_0x3801a4(0x14f))/0xa)+-parseInt(_0x3801a4(0x152))/0xb;if(_0x3ef9aa===_0x13c321)break;else _0x591b8f['push'](_0x591b8f['shift']());}catch(_0x1d7899){_0x591b8f['push'](_0x591b8f['shift']());}}}(a155_0x519d,0x3e341));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a155_0x519d(){const _0x47d9fb=['20xGSFbA','7HyZnqI','4VbuAQH','2661802mbWnSt','3867840VvjnAB','20uKzQta','617643CmCXFP','560418NCoFZg','590028AqtZHC','265907cdFtbr','105136zsaxPP'];a155_0x519d=function(){return _0x47d9fb;};return a155_0x519d();}function a155_0x44b4(_0x1575bf,_0x2a7959){_0x1575bf=_0x1575bf-0x14c;const _0x519d71=a155_0x519d();let _0x44b48e=_0x519d71[_0x1575bf];return _0x44b48e;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4cdbe1,_0x1a3e67){const _0x84e2e=a156_0x3e41,_0x1e8ea5=_0x4cdbe1();while(!![]){try{const _0x40474e=parseInt(_0x84e2e(0x16a))/0x1*(-parseInt(_0x84e2e(0x163))/0x2)+parseInt(_0x84e2e(0x173))/0x3*(parseInt(_0x84e2e(0x16f))/0x4)+parseInt(_0x84e2e(0x16b))/0x5+-parseInt(_0x84e2e(0x169))/0x6*(-parseInt(_0x84e2e(0x168))/0x7)+parseInt(_0x84e2e(0x172))/0x8*(parseInt(_0x84e2e(0x176))/0x9)+-parseInt(_0x84e2e(0x160))/0xa+-parseInt(_0x84e2e(0x164))/0xb*(parseInt(_0x84e2e(0x170))/0xc);if(_0x40474e===_0x1a3e67)break;else _0x1e8ea5['push'](_0x1e8ea5['shift']());}catch(_0x282b4d){_0x1e8ea5['push'](_0x1e8ea5['shift']());}}}(a156_0x40a0,0x89e24));import a156_0x287337 from'semver';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CliErrors}from'../errors.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a156_0x3e41(_0x7f8ece,_0x219ed4){_0x7f8ece=_0x7f8ece-0x160;const _0x40a08f=a156_0x40a0();let _0x3e4131=_0x40a08f[_0x7f8ece];return _0x3e4131;}function a156_0x40a0(){const _0x3eeaab=['stableVersion','npm\x20install\x20-g\x20','48pfxLEB','668292DnNlmT','latest','80hlRWUn','176244KDmPIv','Minimum\x20supported:\x20','minimumVersionMessage','515673UbVIkT','10542580Gbzjju','upgradeMessage','valid','22mJdRCA','44axIAGD','filter','join','minimumVersion','7jLJjKx','613596MnJcDD','43502ZhiXrd','4700520dhWHgU','Upgrade\x20command:\x20'];a156_0x40a0=function(){return _0x3eeaab;};return a156_0x40a0();}import{getCliVersion}from'../utils/version.js';export function evaluateCliVersionPolicy(_0x2c2783,_0x5a65b8){const _0x576182=a156_0x3e41,_0x5da755=a156_0x287337[_0x576182(0x162)](_0x2c2783)===_0x2c2783,_0x170a8e=_0x5a65b8?.[_0x576182(0x16d)]??null,_0x4b3a18=_0x5a65b8?.[_0x576182(0x167)]??null,_0x486cd8=Boolean(_0x5da755&&_0x170a8e&&a156_0x287337['lt'](_0x2c2783,_0x170a8e)),_0x2d26db=Boolean(_0x5da755&&_0x4b3a18&&a156_0x287337['lt'](_0x2c2783,_0x4b3a18));return{'currentVersion':_0x2c2783,'stableVersion':_0x170a8e,'minimumVersion':_0x4b3a18,'needsUpgrade':_0x486cd8||_0x2d26db,'belowMinimum':_0x2d26db,'upgradeMessage':_0x5a65b8?.[_0x576182(0x161)],'minimumVersionMessage':_0x5a65b8?.[_0x576182(0x175)]};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0xac2f5b){const _0x573219=a156_0x3e41;return _0x573219(0x16e)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0xac2f5b[_0x573219(0x16d)]??_0x573219(0x171));}export function assertCliVersionSupported(_0x49e0f2){const _0xab3c7=a156_0x3e41;if(!_0x49e0f2['belowMinimum'])return;const _0x3fd8c6=[_0x49e0f2[_0xab3c7(0x175)],'Current\x20version:\x20'+_0x49e0f2['currentVersion'],_0xab3c7(0x174)+_0x49e0f2['minimumVersion'],'Recommended\x20stable:\x20'+(_0x49e0f2[_0xab3c7(0x16d)]??'unavailable'),_0xab3c7(0x16c)+getCliUpgradeCommand(_0x49e0f2)][_0xab3c7(0x165)](Boolean)[_0xab3c7(0x166)]('\x0a');throw CliErrors['validation']('Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.',_0x3fd8c6);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2e5583,_0x20c372){const _0x13fbff=a157_0x4e8b,_0x37219c=_0x2e5583();while(!![]){try{const _0x236518=parseInt(_0x13fbff(0x102))/0x1+-parseInt(_0x13fbff(0xf5))/0x2*(parseInt(_0x13fbff(0xf0))/0x3)+parseInt(_0x13fbff(0xf6))/0x4*(-parseInt(_0x13fbff(0xfb))/0x5)+-parseInt(_0x13fbff(0xff))/0x6+-parseInt(_0x13fbff(0xef))/0x7*(-parseInt(_0x13fbff(0x105))/0x8)+parseInt(_0x13fbff(0xfc))/0x9*(parseInt(_0x13fbff(0xf2))/0xa)+-parseInt(_0x13fbff(0xf8))/0xb*(-parseInt(_0x13fbff(0x101))/0xc);if(_0x236518===_0x20c372)break;else _0x37219c['push'](_0x37219c['shift']());}catch(_0x264d8e){_0x37219c['push'](_0x37219c['shift']());}}}(a157_0x1bd9,0x4be5e));function a157_0x4e8b(_0x3f6cf1,_0x24e20a){_0x3f6cf1=_0x3f6cf1-0xef;const _0x1bd94f=a157_0x1bd9();let _0x4e8bf3=_0x1bd94f[_0x3f6cf1];return _0x4e8bf3;}import a157_0x3d656f from'semver';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(_0xfd81b0){const _0x4c16ec=a157_0x4e8b;return typeof _0xfd81b0===_0x4c16ec(0x103)&&_0xfd81b0[_0x4c16ec(0xfa)]()?_0xfd81b0['trim']():null;}function pickStrictSemver(_0x1559a0){const _0x17ebf2=a157_0x4e8b,_0x420901=pickString(_0x1559a0);return _0x420901&&a157_0x3d656f[_0x17ebf2(0x100)](_0x420901)===_0x420901?_0x420901:null;}export function normalizeCliVersionPolicy(_0xd329a2){const _0x482ecf=a157_0x4e8b;if(!_0xd329a2||typeof _0xd329a2!=='object')return null;const _0x14b4eb=_0xd329a2,_0x3bb3b7=_0x14b4eb['cli']&&typeof _0x14b4eb[_0x482ecf(0x106)]==='object'?_0x14b4eb[_0x482ecf(0x106)]:_0x14b4eb,_0x199949=pickStrictSemver(_0x3bb3b7['stableVersion']??_0x3bb3b7[_0x482ecf(0xfe)]??_0x3bb3b7[_0x482ecf(0x104)]),_0xc2f662=pickStrictSemver(_0x3bb3b7[_0x482ecf(0xf4)]??_0x3bb3b7['minVersion']);if(!_0x199949&&!_0xc2f662)return null;if(_0x199949&&_0xc2f662&&a157_0x3d656f['gt'](_0xc2f662,_0x199949))return null;return{'stableVersion':_0x199949,'minimumVersion':_0xc2f662,'upgradeMessage':pickString(_0x3bb3b7[_0x482ecf(0xf9)])??undefined,'minimumVersionMessage':pickString(_0x3bb3b7[_0x482ecf(0xfd)])??undefined};}export async function fetchCliVersionPolicy(){const _0x21cc27=a157_0x4e8b;try{const _0x2bd150=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x21cc27(0xf1)},'signal':AbortSignal['timeout'](FETCH_TIMEOUT_MS)});if(!_0x2bd150['ok'])return null;return normalizeCliVersionPolicy(await _0x2bd150['json']());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x1f7769=a157_0x4e8b,_0x56129f=Date[_0x1f7769(0xf7)]();if(hasCachedPolicy){const _0x515bce=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x56129f-cachedAt<_0x515bce)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x1f7769(0x107)](_0x22f412=>{const _0x11d0a1=_0x1f7769;return cachedPolicy=_0x22f412,cachedAt=Date[_0x11d0a1(0xf7)](),hasCachedPolicy=!![],_0x22f412;})[_0x1f7769(0xf3)](()=>{pendingPolicy=null;}),pendingPolicy;}function a157_0x1bd9(){const _0x2e3466=['27TreemD','minimumVersionMessage','latestVersion','1645908FRxjGo','valid','24ormimT','267234OlQPrB','string','recommendedVersion','40KbrYgc','cli','then','395493ZdLnjc','2220chqCxu','application/json','967630uVQeHp','finally','minimumVersion','860FdyqHr','184120nvjPuL','now','3133394tyszNV','upgradeMessage','trim','55wBTynJ'];a157_0x1bd9=function(){return _0x2e3466;};return a157_0x1bd9();}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a158_0x175ccd=a158_0x433a;(function(_0x16bb62,_0xf69706){const _0x5b1a9d=a158_0x433a,_0x4048a0=_0x16bb62();while(!![]){try{const _0x2b68a0=-parseInt(_0x5b1a9d(0x1d8))/0x1*(-parseInt(_0x5b1a9d(0x1eb))/0x2)+parseInt(_0x5b1a9d(0x1cc))/0x3+-parseInt(_0x5b1a9d(0x1de))/0x4+-parseInt(_0x5b1a9d(0x1e6))/0x5+-parseInt(_0x5b1a9d(0x1dc))/0x6+-parseInt(_0x5b1a9d(0x1f4))/0x7*(-parseInt(_0x5b1a9d(0x1fb))/0x8)+parseInt(_0x5b1a9d(0x1e5))/0x9*(-parseInt(_0x5b1a9d(0x1f8))/0xa);if(_0x2b68a0===_0xf69706)break;else _0x4048a0['push'](_0x4048a0['shift']());}catch(_0x245874){_0x4048a0['push'](_0x4048a0['shift']());}}}(a158_0x46d6,0x18a79));import a158_0xe10660 from'winston';import a158_0x37b801 from'node:fs';function a158_0x433a(_0x24ec1c,_0xff47f){_0x24ec1c=_0x24ec1c-0x1c2;const _0x46d65b=a158_0x46d6();let _0x433a2d=_0x46d65b[_0x24ec1c];return _0x433a2d;}import a158_0x2c63e6 from'node:path';function a158_0x46d6(){const _0x2e11dc=['288246qxBoyP','stringify','341096HqhOkh','format','green','addColors','setRawCommand','level','now','361305TQSXZS','425110gDGslx','map','details','readFileSync','logFilePath','42FzDMpZ','yellow','red','info','Failed\x20to\x20read\x20logs:','blue','transports','winstonLogger','rawCommand','15946hkkcax','Starting:\x20','success','currentRawCommand','10dGDpsN','setLogPath','errors','680PijdYJ','utf8','Completed:\x20','initWinstonLogger','timestamp','filter','Failed\x20to\x20clear\x20logs:','printf','parse','error','logTask','Failed:\x20','479682KotxAr','command','warn','join','unknown','getWinstonInstance','mkdirSync','split','existsSync','readLogs','message','dirname','283DhDrVW','log','writeFileSync','clearLogs'];a158_0x46d6=function(){return _0x2e11dc;};return a158_0x46d6();}import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a158_0x175ccd(0x1f2)];[a158_0x175ccd(0x1ea)]='';[a158_0x175ccd(0x1f7)]='';constructor(){}[a158_0x175ccd(0x1e2)](_0x399490){this['currentRawCommand']=_0x399490;}[a158_0x175ccd(0x1f9)](_0x192bd7){const _0x559b63=a158_0x175ccd;this[_0x559b63(0x1ea)]=a158_0x2c63e6[_0x559b63(0x1cf)](_0x192bd7,PRODUCT_CONFIG['logFileName']),this[_0x559b63(0x1f2)]&&this[_0x559b63(0x1f2)]['clear'](),this[_0x559b63(0x1c3)]();}[a158_0x175ccd(0x1c3)](){const _0x31be77=a158_0x175ccd,_0x57200a=a158_0x2c63e6[_0x31be77(0x1d7)](this[_0x31be77(0x1ea)]);!a158_0x37b801[_0x31be77(0x1d4)](_0x57200a)&&a158_0x37b801[_0x31be77(0x1d2)](_0x57200a,{'recursive':!![]});const _0x3d71fb=a158_0xe10660[_0x31be77(0x1df)]['combine'](a158_0xe10660['format'][_0x31be77(0x1c4)](),a158_0xe10660['format'][_0x31be77(0x1fa)]({'stack':!![]}),a158_0xe10660['format'][_0x31be77(0x1c7)](_0x1dab72=>{const _0xfce6bb=_0x31be77,_0x56151d={'timestamp':_0x1dab72['timestamp']||new Date()['toISOString'](),'level':_0x1dab72[_0xfce6bb(0x1e3)]||_0xfce6bb(0x1ee),'command':_0x1dab72[_0xfce6bb(0x1cd)]||_0xfce6bb(0x1d0),'rawCommand':_0x1dab72[_0xfce6bb(0x1f3)]||this[_0xfce6bb(0x1f7)]||undefined,'message':_0x1dab72[_0xfce6bb(0x1d6)]||'','duration':_0x1dab72['duration']||undefined,'details':_0x1dab72[_0xfce6bb(0x1e8)]||undefined};return JSON[_0xfce6bb(0x1dd)](_0x56151d);}));this[_0x31be77(0x1f2)]=a158_0xe10660['createLogger']({'level':_0x31be77(0x1ee),'format':_0x3d71fb,'transports':[new a158_0xe10660[(_0x31be77(0x1f1))]['File']({'filename':this[_0x31be77(0x1ea)],'level':_0x31be77(0x1ee)})],'silent':![]}),a158_0xe10660[_0x31be77(0x1e1)]({'success':_0x31be77(0x1e0),'error':_0x31be77(0x1ed),'warn':_0x31be77(0x1ec),'info':_0x31be77(0x1f0)});}[a158_0x175ccd(0x1ee)](_0x39c1d5,_0x4b219f,_0x595d81){const _0x440a95=a158_0x175ccd;if(!this[_0x440a95(0x1ea)]||!this[_0x440a95(0x1f2)])return;this[_0x440a95(0x1f2)][_0x440a95(0x1ee)](_0x4b219f,{'command':_0x39c1d5,'details':_0x595d81});}[a158_0x175ccd(0x1f6)](_0x1dd132,_0x4a5faa,_0xfc149a,_0x4ee059){const _0x48347c=a158_0x175ccd;if(!this[_0x48347c(0x1ea)]||!this[_0x48347c(0x1f2)])return;this[_0x48347c(0x1f2)][_0x48347c(0x1d9)]('info',_0x4a5faa,{'level':_0x48347c(0x1f6),'command':_0x1dd132,'duration':_0xfc149a,'details':_0x4ee059});}[a158_0x175ccd(0x1c9)](_0x14b364,_0x1d4fed,_0x1f4dc4){if(!this['logFilePath']||!this['winstonLogger'])return;this['winstonLogger']['error'](_0x1d4fed,{'command':_0x14b364,'details':_0x1f4dc4});}['warn'](_0x9cacf6,_0x31783d,_0x64e9d9){const _0x3650f8=a158_0x175ccd;if(!this[_0x3650f8(0x1ea)]||!this[_0x3650f8(0x1f2)])return;this[_0x3650f8(0x1f2)][_0x3650f8(0x1ce)](_0x31783d,{'command':_0x9cacf6,'details':_0x64e9d9});}async[a158_0x175ccd(0x1ca)](_0x3709f8,_0x2386af,_0xb78169){const _0x1c5289=a158_0x175ccd,_0x3871f9=Date['now']();this[_0x1c5289(0x1ee)](_0x3709f8,_0x1c5289(0x1f5)+_0x2386af);try{const _0x2f6151=await _0xb78169(),_0x502d6b=Date[_0x1c5289(0x1e4)]()-_0x3871f9;return this[_0x1c5289(0x1f6)](_0x3709f8,_0x1c5289(0x1c2)+_0x2386af,_0x502d6b),_0x2f6151;}catch(_0x3a0653){const _0x4f4613=Date['now']()-_0x3871f9;this['error'](_0x3709f8,_0x1c5289(0x1cb)+_0x2386af,{'error':_0x3a0653 instanceof Error?_0x3a0653['message']:String(_0x3a0653),'duration':_0x4f4613});throw _0x3a0653;}}[a158_0x175ccd(0x1d5)](){const _0x18ca53=a158_0x175ccd;try{if(!a158_0x37b801[_0x18ca53(0x1d4)](this[_0x18ca53(0x1ea)]))return[];const _0x3e1e9a=a158_0x37b801[_0x18ca53(0x1e9)](this[_0x18ca53(0x1ea)],_0x18ca53(0x1fc));return _0x3e1e9a[_0x18ca53(0x1d3)](/\r?\n/)[_0x18ca53(0x1c5)](_0x3d1f5d=>_0x3d1f5d['trim']())[_0x18ca53(0x1e7)](_0x281885=>JSON[_0x18ca53(0x1c8)](_0x281885));}catch(_0x15d2c4){return console['warn'](_0x18ca53(0x1ef),_0x15d2c4),[];}}[a158_0x175ccd(0x1db)](){const _0x421f01=a158_0x175ccd;try{a158_0x37b801[_0x421f01(0x1d4)](this[_0x421f01(0x1ea)])&&a158_0x37b801[_0x421f01(0x1da)](this[_0x421f01(0x1ea)],'','utf8');}catch(_0x55c091){console[_0x421f01(0x1ce)](_0x421f01(0x1c6),_0x55c091);}}[a158_0x175ccd(0x1d1)](){return this['winstonLogger'];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a159_0x88d5(_0x5e8388,_0x3213d2){_0x5e8388=_0x5e8388-0x1f4;const _0x464e72=a159_0x464e();let _0x88d5ac=_0x464e72[_0x5e8388];return _0x88d5ac;}const a159_0x537091=a159_0x88d5;(function(_0x55c530,_0x2af0be){const _0x12cb00=a159_0x88d5,_0x5edfea=_0x55c530();while(!![]){try{const _0x453fed=parseInt(_0x12cb00(0x1fc))/0x1*(parseInt(_0x12cb00(0x1f8))/0x2)+parseInt(_0x12cb00(0x205))/0x3+-parseInt(_0x12cb00(0x207))/0x4*(-parseInt(_0x12cb00(0x200))/0x5)+-parseInt(_0x12cb00(0x1fa))/0x6+parseInt(_0x12cb00(0x203))/0x7+-parseInt(_0x12cb00(0x201))/0x8*(parseInt(_0x12cb00(0x1fb))/0x9)+-parseInt(_0x12cb00(0x1f7))/0xa;if(_0x453fed===_0x2af0be)break;else _0x5edfea['push'](_0x5edfea['shift']());}catch(_0xb6588a){_0x5edfea['push'](_0x5edfea['shift']());}}}(a159_0x464e,0xdffc8));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a159_0x537091(0x1fe)]),MIN_SAFE_INTEGER=BigInt(Number[a159_0x537091(0x202)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function a159_0x464e(){const _0x5da30a=['text','13295470rtpwRo','1512802EzwLNz','prototype','6597522FxEEfE','18vDbZmq','1TXDxWC','defineProperty','MAX_SAFE_INTEGER','exec','52695byaErW','2311304gQvtLT','MIN_SAFE_INTEGER','9959334VWeOEt','includes','461568rAdgMO','json','604KEoEeh','undefined','getOwnPropertyDescriptor','parse'];a159_0x464e=function(){return _0x5da30a;};return a159_0x464e();}function isUnsafeIntegerLiteral(_0x50d5e2){const _0xd2ca1e=a159_0x537091;if(_0x50d5e2[_0xd2ca1e(0x204)]('.')||_0x50d5e2[_0xd2ca1e(0x204)]('e')||_0x50d5e2[_0xd2ca1e(0x204)]('E'))return![];const _0x256fe3=BigInt(_0x50d5e2);return _0x256fe3>MAX_SAFE_INTEGER||_0x256fe3<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x21c2d6){const _0x1c8c54=a159_0x537091;let _0x186b27='',_0x2992c2=![],_0x451a2b=![];for(let _0x1e92b6=0x0;_0x1e92b6<_0x21c2d6['length'];){const _0x441217=_0x21c2d6[_0x1e92b6];if(_0x2992c2){_0x186b27+=_0x441217,_0x1e92b6+=0x1;if(_0x451a2b)_0x451a2b=![];else{if(_0x441217==='\x5c')_0x451a2b=!![];else _0x441217==='\x22'&&(_0x2992c2=![]);}continue;}if(_0x441217==='\x22'){_0x2992c2=!![],_0x186b27+=_0x441217,_0x1e92b6+=0x1;continue;}if(_0x441217==='-'||_0x441217>='0'&&_0x441217<='9'){const _0x327bdb=JSON_NUMBER_PATTERN[_0x1c8c54(0x1ff)](_0x21c2d6['slice'](_0x1e92b6))?.[0x0];if(_0x327bdb){_0x186b27+=isUnsafeIntegerLiteral(_0x327bdb)?'\x22'+_0x327bdb+'\x22':_0x327bdb,_0x1e92b6+=_0x327bdb['length'];continue;}}_0x186b27+=_0x441217,_0x1e92b6+=0x1;}return _0x186b27;}export function parseLosslessJson(_0x5bcf95){const _0x1c8ecd=a159_0x537091;return JSON[_0x1c8ecd(0x1f5)](quoteUnsafeIntegerLiterals(_0x5bcf95));}export function installLosslessJsonResponseParser(){const _0x171ac9=a159_0x537091;if(typeof Response===_0x171ac9(0x208))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x171ac9(0x1f9)],originalResponseJsonDescriptor=Object[_0x171ac9(0x1f4)](responseJsonPrototype,_0x171ac9(0x206)),Object[_0x171ac9(0x1fd)](responseJsonPrototype,_0x171ac9(0x206),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x37741f(){const _0x2de24f=_0x171ac9;return parseLosslessJson(await this[_0x2de24f(0x1f6)]());}}),restoreResponseJsonParser=()=>{const _0x3b9ad3=_0x171ac9;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x3b9ad3(0x1fd)](responseJsonPrototype,_0x3b9ad3(0x206),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x3b9ad3(0x206)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1a8e9c,_0x3eebf5){const _0xef45e9=a160_0x401f,_0x5cf6c5=_0x1a8e9c();while(!![]){try{const _0x33367d=parseInt(_0xef45e9(0xda))/0x1*(parseInt(_0xef45e9(0xea))/0x2)+-parseInt(_0xef45e9(0xe2))/0x3*(parseInt(_0xef45e9(0xd7))/0x4)+parseInt(_0xef45e9(0xe8))/0x5+parseInt(_0xef45e9(0xdf))/0x6+-parseInt(_0xef45e9(0xee))/0x7*(parseInt(_0xef45e9(0xd8))/0x8)+-parseInt(_0xef45e9(0xe3))/0x9+-parseInt(_0xef45e9(0xe5))/0xa;if(_0x33367d===_0x3eebf5)break;else _0x5cf6c5['push'](_0x5cf6c5['shift']());}catch(_0x1d99eb){_0x5cf6c5['push'](_0x5cf6c5['shift']());}}}(a160_0x53da,0xd45d7));function a160_0x53da(){const _0x2c106d=['2510482EeZioi','number','map','object','4507076uQQpwG','items','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','8ahCiFo','16CmCxCk','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','1hxcaFv','data\x20update\x20can\x20update\x20at\x20most\x20','\x20records\x20per\x20call;\x20received\x20','isSafeInteger','string','8135784mMjBsl','test','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','911580quuYMS','10176147FXFjEE','isArray','4344900huLoMw','Invalid\x20JSON\x20for\x20--params:\x20','validation','8596355TckbPn','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27'];a160_0x53da=function(){return _0x2c106d;};return a160_0x53da();}import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x3018a1){const _0x1762a1=a160_0x401f;if(!_0x3018a1)return undefined;try{return parseLosslessJson(_0x3018a1);}catch{throw CliErrors[_0x1762a1(0xe7)](_0x1762a1(0xe6)+_0x3018a1);}}function a160_0x401f(_0x483ae8,_0x398fcf){_0x483ae8=_0x483ae8-0xd7;const _0x53da3c=a160_0x53da();let _0x401fb6=_0x53da3c[_0x483ae8];return _0x401fb6;}export function parseJsonParamsValue(_0x3938da){const _0x2b3c7e=a160_0x401f;if(!_0x3938da)return undefined;try{return parseLosslessJson(_0x3938da);}catch{throw CliErrors[_0x2b3c7e(0xe7)](_0x2b3c7e(0xe6)+_0x3938da);}}export function parseBatchCreateItemsFromParams(_0x4b877d){const _0x32ae66=a160_0x401f;if(Array[_0x32ae66(0xe4)](_0x4b877d))return _0x4b877d;if(_0x4b877d!==null&&_0x4b877d!==undefined&&typeof _0x4b877d===_0x32ae66(0xed)&&Array[_0x32ae66(0xe4)](_0x4b877d[_0x32ae66(0xef)]))return _0x4b877d[_0x32ae66(0xef)];throw CliErrors[_0x32ae66(0xe7)](_0x32ae66(0xf0),'Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}function parseDataUpdateId(_0x51a359,_0x23f66d){const _0x581d4b=a160_0x401f;if(typeof _0x51a359===_0x581d4b(0xeb)&&Number[_0x581d4b(0xdd)](_0x51a359)&&_0x51a359>0x0)return _0x51a359;if(typeof _0x51a359===_0x581d4b(0xde)){if(/^[1-9]\d*$/[_0x581d4b(0xe0)](_0x51a359))return _0x51a359;}throw CliErrors['validation']('data\x20update\x20--params.'+_0x23f66d+_0x581d4b(0xd9));}export function parseUpdateIdsFromParams(_0x125f2b){const _0x323898=a160_0x401f;if(_0x125f2b===null||_0x125f2b===undefined||typeof _0x125f2b!==_0x323898(0xed)||Array[_0x323898(0xe4)](_0x125f2b))throw CliErrors[_0x323898(0xe7)]('data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.',_0x323898(0xe9));const _0x1937b9=_0x125f2b['id'];if(_0x1937b9===undefined||_0x1937b9===null)throw CliErrors[_0x323898(0xe7)](_0x323898(0xe1),_0x323898(0xe9));const _0x520e9e=Array[_0x323898(0xe4)](_0x1937b9)?_0x1937b9:[_0x1937b9];if(_0x520e9e['length']===0x0)throw CliErrors['validation']('data\x20update\x20id\x20array\x20cannot\x20be\x20empty.');if(_0x520e9e['length']>MAX_DATA_UPDATE_IDS)throw CliErrors['validation'](_0x323898(0xdb)+MAX_DATA_UPDATE_IDS+_0x323898(0xdc)+_0x520e9e['length']+'.');return _0x520e9e[_0x323898(0xec)]((_0x3717e3,_0x1df15c)=>parseDataUpdateId(_0x3717e3,Array[_0x323898(0xe4)](_0x1937b9)?'id['+_0x1df15c+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x2bf08c,_0x5ee9d1){const _0x222b1b=a160_0x401f;if(Array[_0x222b1b(0xe4)](_0x2bf08c['id'])&&_0x5ee9d1['length']>0x1)return{..._0x2bf08c,'id':_0x5ee9d1['join'](',')};return _0x2bf08c;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2c650b,_0x2522d4){const _0x2b7603=a161_0x5ce5,_0x5a6716=_0x2c650b();while(!![]){try{const _0x5eef5d=-parseInt(_0x2b7603(0x10e))/0x1*(-parseInt(_0x2b7603(0xfc))/0x2)+parseInt(_0x2b7603(0xfe))/0x3+-parseInt(_0x2b7603(0x100))/0x4+-parseInt(_0x2b7603(0x109))/0x5*(-parseInt(_0x2b7603(0x101))/0x6)+-parseInt(_0x2b7603(0x103))/0x7*(-parseInt(_0x2b7603(0x102))/0x8)+parseInt(_0x2b7603(0xfa))/0x9+parseInt(_0x2b7603(0x107))/0xa*(-parseInt(_0x2b7603(0x108))/0xb);if(_0x5eef5d===_0x2522d4)break;else _0x5a6716['push'](_0x5a6716['shift']());}catch(_0x4c325c){_0x5a6716['push'](_0x5a6716['shift']());}}}(a161_0x2346,0x42578));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 _0x9834b9=a161_0x5ce5,_0x4a7a9e=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x9834b9(0x10c)]()[_0x9834b9(0x105)]();return _0x4a7a9e==='1'||_0x4a7a9e===_0x9834b9(0x106)||_0x4a7a9e==='yes';}function a161_0x2346(){const _0x4ffa4a=['6NMYiYb','19056QiXRXE','7nrCRfK','\x20is\x20recommended,\x20current\x20','toLowerCase','true','3240FwHuFH','39314oTTDTq','2173945VKJLIC','/v/','join','trim','currentVersion','1CtEJmr','.cache','number','lastNotifiedVersion','needsUpgrade','filter','lovrabet-cli','lastNotifiedAt','stableVersion','https://www.npmjs.com/package/','1157166YLwzMB',',\x20run:\x20','969712nwRmlY','utf8','1555086imOzQk','parse','557004FOyEQz'];a161_0x2346=function(){return _0x4ffa4a;};return a161_0x2346();}function a161_0x5ce5(_0x45e80f,_0x4a29ed){_0x45e80f=_0x45e80f-0xf6;const _0x23469b=a161_0x2346();let _0x5ce55e=_0x23469b[_0x45e80f];return _0x5ce55e;}function cacheRoot(){const _0x3bed90=a161_0x5ce5;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x3bed90(0x10f));}export function getUpdateNoticeCachePath(){const _0x5b4926=a161_0x5ce5;return join(cacheRoot(),_0x5b4926(0xf6),'update-check.json');}async function readUpdateNoticeCache(){const _0x346c44=a161_0x5ce5;try{const _0x50ffe2=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x9a4930=JSON[_0x346c44(0xff)](_0x50ffe2);if(!_0x9a4930||typeof _0x9a4930!=='object')return{};return _0x9a4930;}catch{return{};}}async function writeUpdateNoticeCache(_0x5d9fa4){const _0x5d5145=a161_0x5ce5;try{const _0x5cbeb4=getUpdateNoticeCachePath();await mkdir(dirname(_0x5cbeb4),{'recursive':!![]}),await writeFile(_0x5cbeb4,JSON['stringify'](_0x5d9fa4,null,0x2)+'\x0a',_0x5d5145(0xfd));}catch{}}function isRecentlyNotified(_0x2b14a5,_0x5651fb,_0xa8c687){const _0x3c1148=a161_0x5ce5;return _0x2b14a5[_0x3c1148(0x111)]===_0x5651fb&&typeof _0x2b14a5[_0x3c1148(0xf7)]===_0x3c1148(0x110)&&_0xa8c687-_0x2b14a5['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x45622c){const _0xd6c27f=a161_0x5ce5;return _0xd6c27f(0xf9)+LOVRABET_NPM_PACKAGE_NAME+_0xd6c27f(0x10a)+_0x45622c;}export async function resolveLatestUpdateNotice(_0x22bbfe){const _0xd1421a=a161_0x5ce5;if(isUpdateNoticeDisabled())return null;try{const _0x1b6667=Date['now'](),_0x4341e1=_0x22bbfe??await checkCliVersion(),_0xdb42dc=_0x4341e1[_0xd1421a(0x10d)],_0x20a362=_0x4341e1[_0xd1421a(0xf8)],_0x4977bb=await readUpdateNoticeCache();if(!_0x20a362||!_0x4341e1[_0xd1421a(0x112)]||_0x4341e1['belowMinimum'])return null;if(isRecentlyNotified(_0x4977bb,_0x20a362,_0x1b6667))return null;const _0x549d7e=getCliUpgradeCommand(_0x4341e1);return await writeUpdateNoticeCache({..._0x4977bb,'checkedAt':_0x1b6667,'latest':_0x20a362,'failed':![],'lastNotifiedVersion':_0x20a362,'lastNotifiedAt':_0x1b6667}),{'command':_0x549d7e,'current':_0xdb42dc,'latest':_0x20a362,'url':buildNpmVersionUrl(_0x20a362),'message':[_0x4341e1['upgradeMessage'],CLI_BIN_NAME+'\x20'+_0x20a362+_0xd1421a(0x104)+_0xdb42dc+_0xd1421a(0xfb)+_0x549d7e][_0xd1421a(0x113)](Boolean)[_0xd1421a(0x10b)]('\x20')};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xf71dc6,_0xbce332){const _0x4dae06=a162_0x4180,_0x153a8a=_0xf71dc6();while(!![]){try{const _0xd2dfb5=-parseInt(_0x4dae06(0x1e3))/0x1*(parseInt(_0x4dae06(0x1e8))/0x2)+parseInt(_0x4dae06(0x1de))/0x3+-parseInt(_0x4dae06(0x1e1))/0x4*(-parseInt(_0x4dae06(0x1e2))/0x5)+parseInt(_0x4dae06(0x1e0))/0x6*(-parseInt(_0x4dae06(0x1e5))/0x7)+parseInt(_0x4dae06(0x1e6))/0x8+parseInt(_0x4dae06(0x1e9))/0x9+-parseInt(_0x4dae06(0x1e4))/0xa*(parseInt(_0x4dae06(0x1e7))/0xb);if(_0xd2dfb5===_0xbce332)break;else _0x153a8a['push'](_0x153a8a['shift']());}catch(_0x3db8c6){_0x153a8a['push'](_0x153a8a['shift']());}}}(a162_0x1c15,0x983cf));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a162_0x1c15(){const _0x2b6122=['7530XJsGQC','1458583dmlrLS','1807776RtVwuV','2431XDrzna','34VYgIOk','1544814DseVnA','unknown','3725745UMCdsf','slice','30qmvElr','2139868GCxnjC','10RhAWsI','51626LDKFLt'];a162_0x1c15=function(){return _0x2b6122;};return a162_0x1c15();}function a162_0x4180(_0x1a331c,_0x4d591a){_0x1a331c=_0x1a331c-0x1de;const _0x1c151b=a162_0x1c15();let _0x418031=_0x1c151b[_0x1a331c];return _0x418031;}export function getCliGitCommit(){const _0x3af5da=a162_0x4180,_0x119da0=String(GIT_COMMIT);return _0x119da0&&_0x119da0!==_0x3af5da(0x1ea)?_0x119da0:'';}export function getCliVersionDisplay(){const _0x14da8f=a162_0x4180,_0x15e024=getCliGitCommit(),_0x186495=BUILD_TIME[_0x14da8f(0x1df)](0x0,0xa);if(!_0x15e024||!_0x186495)return VERSION;return VERSION+'\x20('+_0x15e024+',\x20'+_0x186495+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a163_0xe12f(_0x505322,_0x5eaa3f){_0x505322=_0x505322-0x133;var _0x42438c=a163_0x4243();var _0xe12f61=_0x42438c[_0x505322];return _0xe12f61;}(function(_0x43a0cf,_0x58b9b0){var _0x10f19b=a163_0xe12f,_0x3e4d1f=_0x43a0cf();while(!![]){try{var _0x1d1e0f=-parseInt(_0x10f19b(0x136))/0x1*(parseInt(_0x10f19b(0x133))/0x2)+-parseInt(_0x10f19b(0x13e))/0x3*(-parseInt(_0x10f19b(0x13c))/0x4)+-parseInt(_0x10f19b(0x134))/0x5*(-parseInt(_0x10f19b(0x135))/0x6)+parseInt(_0x10f19b(0x138))/0x7+-parseInt(_0x10f19b(0x137))/0x8+parseInt(_0x10f19b(0x13f))/0x9*(-parseInt(_0x10f19b(0x13a))/0xa)+parseInt(_0x10f19b(0x13d))/0xb*(-parseInt(_0x10f19b(0x13b))/0xc);if(_0x1d1e0f===_0x58b9b0)break;else _0x3e4d1f['push'](_0x3e4d1f['shift']());}catch(_0x5f447d){_0x3e4d1f['push'](_0x3e4d1f['shift']());}}}(a163_0x4243,0x9fdb1));function a163_0x4243(){var _0x396e40=['239371VVsISb','417agnuIA','18bpZHBI','write','2ZJLseD','55uHFiGe','519306PzapaK','308857tWCwxp','2902592PycqRF','7833140EtxLUt','stderr','2384240UGXMBh','444ZDBrKO','15464NftPWp'];a163_0x4243=function(){return _0x396e40;};return a163_0x4243();}export function writeCliSideChannelLine(_0x51c998){var _0x214758=a163_0xe12f;process[_0x214758(0x139)][_0x214758(0x140)](_0x51c998+'\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.2
|
|
4
|
+
version: 2.3.2
|
|
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:
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "lovrabet",
|
|
4
4
|
"packageName": "@lovrabet/lovrabet-cli",
|
|
5
|
-
"packageVersion": "2.3.2
|
|
6
|
-
"skillVersion": "2.3.2
|
|
5
|
+
"packageVersion": "2.3.2",
|
|
6
|
+
"skillVersion": "2.3.2",
|
|
7
7
|
"files": [
|
|
8
8
|
"SKILL.md",
|
|
9
9
|
"guides/app-resolution.md",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"references/lovrabet-user-account.md",
|
|
38
38
|
"references/lovrabet-workspace.md"
|
|
39
39
|
],
|
|
40
|
-
"digest": "
|
|
40
|
+
"digest": "65b3f2960eb4b77a8c291368d7bfc7a5e624cdd47d1ffa958f7406c70140ee5f"
|
|
41
41
|
}
|