@lovrabet/lovrabet-cli 2.1.9-beta.2 → 2.1.9-beta.3
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/NOTICE +5 -0
- package/README.md +156 -0
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/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 +18 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a103_0x6638(_0x123c09,_0x4b53e6){_0x123c09=_0x123c09-0x188;const _0x23de36=a103_0x23de();let _0x6638d1=_0x23de36[_0x123c09];return _0x6638d1;}const a103_0x589ff0=a103_0x6638;(function(_0x58aea7,_0x3bb2e4){const _0x75638=a103_0x6638,_0x16af60=_0x58aea7();while(!![]){try{const _0x2fb2c2=-parseInt(_0x75638(0x1a5))/0x1*(parseInt(_0x75638(0x192))/0x2)+-parseInt(_0x75638(0x18f))/0x3*(-parseInt(_0x75638(0x1a2))/0x4)+parseInt(_0x75638(0x18b))/0x5+parseInt(_0x75638(0x19a))/0x6*(-parseInt(_0x75638(0x1a6))/0x7)+-parseInt(_0x75638(0x1a1))/0x8*(-parseInt(_0x75638(0x191))/0x9)+-parseInt(_0x75638(0x18c))/0xa+parseInt(_0x75638(0x189))/0xb*(parseInt(_0x75638(0x1a0))/0xc);if(_0x2fb2c2===_0x3bb2e4)break;else _0x16af60['push'](_0x16af60['shift']());}catch(_0x298ee9){_0x16af60['push'](_0x16af60['shift']());}}}(a103_0x23de,0xde821));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(_0x43fb80={}){const _0x18b54f=a103_0x6638,_0x124244=_0x43fb80[_0x18b54f(0x1a3)]??homedir(),_0x4cf3d3=resolve(_0x124244,PRODUCT_CONFIG[_0x18b54f(0x1a4)],'cache'),_0xe13c3d=trimmedEnv(_0x18b54f(0x19b)),_0x5a3176=trimmedEnv(_0x18b54f(0x18e)),_0xe9e35e=resolve(_0x124244,_0x18b54f(0x196)),_0x5d03b1=_0x43fb80[_0x18b54f(0x18d)]??(existsSync(_0xe9e35e)?resolve(_0xe9e35e,_0x18b54f(0x19d)):undefined);return{'homeDir':_0x124244,'cacheRoot':_0x4cf3d3,'managedRoot':resolve(_0x124244,PRODUCT_CONFIG['homeDirName']),'agentsSkillsDir':_0x43fb80[_0x18b54f(0x188)]??_0xe13c3d??resolve(_0x124244,_0x18b54f(0x198),'skills'),'claudeSkillsDir':_0x43fb80['claudeSkillsDir']??_0x5a3176??resolve(_0x124244,_0x18b54f(0x190),_0x18b54f(0x19d)),'workbuddySkillsDir':_0x5d03b1};}export function runtimeAgentSkillRoots(_0x508256){const _0x49291b=a103_0x6638;return[_0x508256['agentsSkillsDir'],_0x508256[_0x49291b(0x19c)],_0x508256['workbuddySkillsDir']][_0x49291b(0x199)](_0x208037=>Boolean(_0x208037));}export function getRuntimeSkillCacheRoot(_0x5f26fa,_0x6e69e3,_0x2d8eda={}){const _0x458c2c=a103_0x6638,_0x33503b=resolveSkillSyncPaths(_0x2d8eda);return resolve(_0x33503b['cacheRoot'],_0x5f26fa,fingerprintAccessKey(_0x6e69e3),_0x458c2c(0x19d));}export function getRuntimeSkillDir(_0x27173f,_0x55c719,_0x410ca2,_0xb15e8c,_0x10fe6b,_0x1d1956={}){const _0x243021=a103_0x6638;return resolve(getRuntimeSkillCacheRoot(_0x27173f,_0x55c719,_0x1d1956),safePathSegment(_0x410ca2,'appCode'),_0xb15e8c,safePathSegment(_0x10fe6b,_0x243021(0x194)));}export function safePathSegment(_0x160fa0,_0x1d13e9=a103_0x589ff0(0x18a)){const _0x200c71=a103_0x589ff0;if(!_0x160fa0||_0x160fa0['includes']('/')||_0x160fa0[_0x200c71(0x195)]('\x5c')||_0x160fa0['includes']('..'))throw CliErrors[_0x200c71(0x197)](_0x200c71(0x19f)+_0x1d13e9+_0x200c71(0x19e)+_0x160fa0);return _0x160fa0;}function a103_0x23de(){const _0x28ea1c=['filter','18GrpnQT','SKILL_ROOT','claudeSkillsDir','skills','\x20for\x20local\x20path:\x20','Unsafe\x20','93348kwsbAp','1792FHVXRW','28GPHQua','homeDir','homeDirName','132439OkDKlX','3185518cZQyAa','agentsSkillsDir','2453UOweFz','path\x20segment','1856825WirhtI','3264320WTZsMZ','workbuddySkillsDir','CLAUDE_SKILL_ROOT','413214oJJZRD','.claude','18477nqcbEv','14IFTmbr','trim','skillCode','includes','.workbuddy','validation','.agents'];a103_0x23de=function(){return _0x28ea1c;};return a103_0x23de();}function trimmedEnv(_0x36684f){const _0x412d31=a103_0x589ff0,_0x5b6f60=productEnv(_0x36684f)?.[_0x412d31(0x193)]();return _0x5b6f60?_0x5b6f60:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1470b7,_0x54c123){const _0x34dea0=a104_0x4ba7,_0x3cfc72=_0x1470b7();while(!![]){try{const _0x68c4e1=parseInt(_0x34dea0(0x15f))/0x1*(-parseInt(_0x34dea0(0x175))/0x2)+-parseInt(_0x34dea0(0x195))/0x3+-parseInt(_0x34dea0(0x18a))/0x4*(-parseInt(_0x34dea0(0x16b))/0x5)+-parseInt(_0x34dea0(0x178))/0x6*(-parseInt(_0x34dea0(0x163))/0x7)+-parseInt(_0x34dea0(0x15c))/0x8+parseInt(_0x34dea0(0x16c))/0x9+-parseInt(_0x34dea0(0x167))/0xa*(parseInt(_0x34dea0(0x191))/0xb);if(_0x68c4e1===_0x54c123)break;else _0x3cfc72['push'](_0x3cfc72['shift']());}catch(_0x2cfde5){_0x3cfc72['push'](_0x3cfc72['shift']());}}}(a104_0x3421,0x773ae));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a104_0x3571a2}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(_0x3a9ebc,_0x32a192,_0x457170={}){const _0x1272a6=a104_0x4ba7,_0x4a59af=resolvePushDirectoryRoot(_0x3a9ebc),_0x2df816=readPushMetadataIfPresent(resolve(_0x4a59af,METADATA_FILE),{'ignoreInvalidMetadata':_0x457170['ignoreInvalidMetadata']});if(_0x2df816?.[_0x1272a6(0x165)]&&_0x2df816['appCode']!==_0x32a192&&!_0x457170['allowAppCodeRetarget']&&!_0x457170[_0x1272a6(0x190)])throw CliErrors['validation'](_0x1272a6(0x188)+_0x2df816[_0x1272a6(0x165)]+_0x1272a6(0x16f)+_0x32a192+'\x22.');const _0x5146b3=resolvePushSkillCode(_0x4a59af,_0x32a192,_0x2df816,_0x457170);if(!_0x5146b3)throw CliErrors[_0x1272a6(0x186)](_0x1272a6(0x173)+SKILL_FILE+',\x20'+METADATA_FILE+_0x1272a6(0x171));return{'dir':_0x4a59af,'skillCode':_0x5146b3,'metadata':_0x2df816};}export function readPushDirectory(_0x2e1db2,_0x29f9af,_0x2badc2={}){const _0x36f813=a104_0x4ba7,_0x3f5680=resolvePushDirectoryIdentity(_0x2e1db2,_0x29f9af,_0x2badc2),_0x189ca6=_0x3f5680[_0x36f813(0x174)],_0x3f917e=resolve(_0x189ca6,SKILL_FILE);if(!existsSync(_0x3f917e)||!lstatSync(_0x3f917e)[_0x36f813(0x194)]())throw CliErrors[_0x36f813(0x186)](_0x36f813(0x17e)+SKILL_FILE+':\x20'+_0x3f917e);const _0x595023=_0x3f5680[_0x36f813(0x18b)],_0x9a1043=_0x2badc2[_0x36f813(0x17d)]??_0x36f813(0x16a);if(!_0x2badc2[_0x36f813(0x19b)]&&_0x595023?.[_0x36f813(0x192)]==='builtin')throw CliErrors[_0x36f813(0x186)]('Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20'+METADATA_FILE+'\x20has\x20scope=\x22'+_0x595023[_0x36f813(0x192)]+'\x22.');if(!_0x2badc2['ignoreMetadataScope']&&_0x9a1043===_0x36f813(0x16a)&&_0x595023?.['scope']&&_0x595023[_0x36f813(0x192)]!==_0x36f813(0x16a))throw CliErrors[_0x36f813(0x186)](_0x36f813(0x18d)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x595023['scope']+'\x22.',_0x36f813(0x179)+_0x189ca6+_0x36f813(0x193));const _0x345349=scanSkillDirectory(_0x189ca6),_0x5a81a8=buildSkillPackage(_0x345349),_0x5bb0b7=readFileSync(_0x3f917e,'utf8'),_0x2603da=_0x3f5680[_0x36f813(0x182)],_0x12431e=_0x2badc2[_0x36f813(0x16e)]?undefined:_0x595023,_0x365857=readSkillDisplayName(_0x5bb0b7);return{'skillCode':_0x2603da,'metadata':_0x595023,'frontmatterDisplayName':_0x365857,'input':{'skillCode':_0x2603da,'skillName':_0x365857??_0x12431e?.[_0x36f813(0x197)],'description':_0x12431e?.['description'],'content':_0x5bb0b7,'files':_0x5a81a8[_0x36f813(0x18f)],'packageBase64':_0x5a81a8[_0x36f813(0x198)],'tags':_0x12431e?.[_0x36f813(0x19a)],'version':_0x12431e?.[_0x36f813(0x183)],'sourceSessionId':_0x12431e?.['sourceSessionId']}};}function a104_0x4ba7(_0xdc9322,_0xbb5abd){_0xdc9322=_0xdc9322-0x15b;const _0x3421f5=a104_0x3421();let _0x4ba786=_0x3421f5[_0xdc9322];return _0x4ba786;}export function refreshPushDirectoryMetadataFromRemote(_0x51f6b5,_0x330a4d,_0x2aacba,_0x3d16ee={}){const _0xb36063=a104_0x4ba7,_0x4d1f91=resolvePushDirectoryRoot(_0x51f6b5),_0x173d84=readPushMetadataIfPresent(resolve(_0x4d1f91,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x2a8ddd=requireRemoteScope(_0x330a4d),_0x319631=readLocalSkillContent(_0x4d1f91),_0xca2160={..._0x330a4d,'appCode':_0x330a4d[_0xb36063(0x165)]??_0x2aacba,'skillName':_0x330a4d[_0xb36063(0x197)]??_0x173d84?.[_0xb36063(0x197)],'description':_0x330a4d[_0xb36063(0x184)]??_0x173d84?.[_0xb36063(0x184)],'tags':Array[_0xb36063(0x15b)](_0x330a4d['tags'])?_0x330a4d[_0xb36063(0x19a)]:_0x173d84?.[_0xb36063(0x19a)],'sourceSessionId':_0x330a4d[_0xb36063(0x199)]??_0x173d84?.['sourceSessionId'],'content':_0x330a4d['content']??_0x319631},_0x560979=buildMetadata(_0xca2160,_0x2a8ddd,_0x2aacba,contentHash(_0x319631),_0x3d16ee['refreshedAt']);writeJsonAtomic(resolve(_0x4d1f91,METADATA_FILE),_0x560979);}export function recordPushedRuntimeSkill(_0x1abffe,_0x5bce73,_0x3ccd5d,_0x5bf212={}){const _0x4f5038=a104_0x4ba7,_0x2905b7=resolvePushDirectoryRoot(_0x1abffe),_0x2804a4=scanSkillDirectory(_0x2905b7),_0x227db2=_0x2804a4[_0x4f5038(0x170)](_0x3e6b87=>_0x3e6b87[_0x4f5038(0x164)]===SKILL_FILE),_0x2c8dc2=_0x227db2?fileText(_0x227db2):'',_0x39f053=tryNormalizePackageManifest(_0x5bce73[_0x4f5038(0x185)]),_0x35fbdd={..._0x5bce73,'content':_0x5bce73[_0x4f5038(0x18e)]??_0x2c8dc2,'files':_0x39f053},_0x4af6c9=_0x39f053?normalizeLocalFiles(_0x2804a4)[_0x4f5038(0x17c)](_0x504231=>_0x39f053['files'][_0x4f5038(0x18c)](_0x1d6b55=>_0x1d6b55[_0x4f5038(0x164)]===_0x504231[_0x4f5038(0x164)])):undefined,_0x2685c4=buildMetadata(_0x35fbdd,_0x5bf212['scope']??_0x4f5038(0x16a),_0x3ccd5d,contentHash(_0x35fbdd[_0x4f5038(0x18e)]??''),_0x5bf212['pushedAt'],_0x4af6c9);writeJsonAtomic(resolve(_0x2905b7,METADATA_FILE),_0x2685c4);}export function deriveSkillCodeFromDirectory(_0x1729dd,_0x16cb90){const _0x1ce96e=a104_0x4ba7,_0x1f3523=basename(resolve(_0x1729dd)),_0x28c8d3=_0x16cb90+'--';return _0x1f3523[_0x1ce96e(0x19c)](_0x28c8d3)?_0x1f3523['slice'](_0x28c8d3[_0x1ce96e(0x168)]):_0x1f3523;}function resolvePushSkillCode(_0x253809,_0x189d06,_0x5d7450,_0x48efb3){const _0x19f0a2=a104_0x4ba7,_0x5f54cd=deriveSkillCodeFromSkillFile(_0x253809)||deriveSkillCodeFromDirectory(_0x253809,_0x189d06);if(_0x48efb3[_0x19f0a2(0x176)])return _0x5f54cd;return _0x5d7450?.[_0x19f0a2(0x182)]?.[_0x19f0a2(0x177)]()||_0x5f54cd;}function deriveSkillCodeFromSkillFile(_0x1efee0){const _0x3e3c67=a104_0x4ba7,_0xf24c2e=resolve(_0x1efee0,SKILL_FILE);if(!existsSync(_0xf24c2e)||!lstatSync(_0xf24c2e)[_0x3e3c67(0x194)]())return undefined;const _0x3b5c09=readFileSync(_0xf24c2e,_0x3e3c67(0x189)),_0x4a7e5d=_0x3b5c09[_0x3e3c67(0x166)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x4a7e5d)return undefined;const _0x10fd38=parseFrontmatterObject(_0x4a7e5d[0x1]??''),_0xe95a57=scalarToString(_0x10fd38?.['name']);return _0xe95a57?slugifySkillName(_0xe95a57):undefined;}function readSkillDisplayName(_0x51bec0){const _0x11a5d1=a104_0x4ba7,_0x427849=_0x51bec0[_0x11a5d1(0x166)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x427849)return undefined;const _0x662ad7=parseFrontmatterObject(_0x427849[0x1]??'');return scalarToString(_0x662ad7?.['displayName']);}function slugifySkillName(_0x136ced){const _0x3eaa00=a104_0x4ba7,_0x1a57ed=_0x136ced[_0x3eaa00(0x177)]()[_0x3eaa00(0x172)]()[_0x3eaa00(0x162)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x3eaa00(0x162)](/^-+/,'')[_0x3eaa00(0x162)](/-+$/,'')['replace'](/-{2,}/g,'-');if(!_0x1a57ed)throw CliErrors[_0x3eaa00(0x186)](_0x3eaa00(0x161)+SKILL_FILE+_0x3eaa00(0x17b));return _0x1a57ed;}function parseFrontmatterObject(_0x4424c2){const _0x4ea2a2=a104_0x4ba7;try{const _0x56c191=a104_0x3571a2(_0x4424c2);return _0x56c191&&typeof _0x56c191===_0x4ea2a2(0x187)&&!Array['isArray'](_0x56c191)?_0x56c191:undefined;}catch{return undefined;}}function scalarToString(_0x201836){const _0x3ba9df=a104_0x4ba7;if(typeof _0x201836===_0x3ba9df(0x181))return _0x201836[_0x3ba9df(0x177)]();if(typeof _0x201836==='number'||typeof _0x201836===_0x3ba9df(0x15e))return String(_0x201836);return undefined;}function resolvePushDirectoryRoot(_0x4c3f2f){const _0x31e9c6=a104_0x4ba7,_0x4000b1=resolve(_0x4c3f2f);if(!existsSync(_0x4000b1))throw CliErrors[_0x31e9c6(0x186)](_0x31e9c6(0x196)+_0x4c3f2f);const _0x442be4=lstatSync(_0x4000b1);if(_0x442be4[_0x31e9c6(0x180)]())return _0x4000b1;if(_0x442be4['isSymbolicLink']()){const _0x167c5d=realpathSync(_0x4000b1);if(lstatSync(_0x167c5d)['isDirectory']())return _0x167c5d;}throw CliErrors[_0x31e9c6(0x186)]('Skill\x20directory\x20not\x20found:\x20'+_0x4c3f2f);}function requireRemoteScope(_0x1895f7){const _0x49a5f5=a104_0x4ba7;if(_0x1895f7[_0x49a5f5(0x192)]===_0x49a5f5(0x16a)||_0x1895f7[_0x49a5f5(0x192)]===_0x49a5f5(0x15d)||_0x1895f7[_0x49a5f5(0x192)]===_0x49a5f5(0x160))return _0x1895f7['scope'];throw CliErrors[_0x49a5f5(0x186)](_0x49a5f5(0x17a)+(_0x1895f7[_0x49a5f5(0x182)]||_0x49a5f5(0x16d))+'\x20has\x20unsupported\x20scope\x20\x22'+(_0x1895f7[_0x49a5f5(0x192)]??_0x49a5f5(0x169))+'\x22.');}function readLocalSkillContent(_0xcd0009){const _0x2c5e11=a104_0x4ba7,_0xd1d1e2=resolve(_0xcd0009,SKILL_FILE);return existsSync(_0xd1d1e2)&&lstatSync(_0xd1d1e2)[_0x2c5e11(0x194)]()?readFileSync(_0xd1d1e2,_0x2c5e11(0x189)):'';}function readPushMetadataIfPresent(_0x4056ad,_0x5b6704={}){const _0x480ae4=a104_0x4ba7;try{return readMetadataIfPresent(_0x4056ad);}catch(_0x41cfae){if(_0x5b6704[_0x480ae4(0x17f)])return undefined;throw _0x41cfae;}}function a104_0x3421(){const _0x3ac1bf=['skillCode','version','description','files','validation','object','Skill\x20metadata\x20appCode\x20\x22','utf8','3832204qviXue','metadata','some','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','content','manifest','ignoreMetadataAppCodeMismatch','11czqZhZ','scope','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','isFile','2477559LbfGuz','Skill\x20directory\x20not\x20found:\x20','skillName','packageBase64','sourceSessionId','tags','ignoreMetadataScope','startsWith','isArray','517368atBvKo','company','boolean','101759PkoNjM','builtin','Invalid\x20','replace','340333gDiuLZ','path','appCode','match','256970KlYbZX','length','unknown','personal','5pKPrBK','2390607MhLKqL','(unknown)','ignoreMetadataForPayload','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','find',',\x20or\x20directory\x20name.','toLowerCase','Unable\x20to\x20resolve\x20skillCode\x20from\x20','dir','6QsgpWW','ignoreMetadataSkillCode','trim','60ExatUo','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','Remote\x20Skill\x20','\x20name\x20for\x20SkillHub\x20slug\x20generation.','filter','targetScope','Missing\x20','ignoreInvalidMetadata','isDirectory','string'];a104_0x3421=function(){return _0x3ac1bf;};return a104_0x3421();}
|
|
1
|
+
(function(_0x33d935,_0x3fc065){const _0x3997bb=a104_0x131e,_0x196ed2=_0x33d935();while(!![]){try{const _0x1bc003=parseInt(_0x3997bb(0x18b))/0x1+-parseInt(_0x3997bb(0x189))/0x2+parseInt(_0x3997bb(0x1ad))/0x3+parseInt(_0x3997bb(0x1af))/0x4*(parseInt(_0x3997bb(0x1bb))/0x5)+-parseInt(_0x3997bb(0x199))/0x6*(parseInt(_0x3997bb(0x1b9))/0x7)+parseInt(_0x3997bb(0x187))/0x8+-parseInt(_0x3997bb(0x1b7))/0x9;if(_0x1bc003===_0x3fc065)break;else _0x196ed2['push'](_0x196ed2['shift']());}catch(_0x72c720){_0x196ed2['push'](_0x196ed2['shift']());}}}(a104_0x39df,0x542fa));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';function a104_0x39df(){const _0x119bf6=['Invalid\x20','\x20name\x20for\x20SkillHub\x20slug\x20generation.','Missing\x20','boolean','tags','path','unknown','manifest','ignoreMetadataScope','skillName','isDirectory','version','slice','Skill\x20metadata\x20appCode\x20\x22','utf8',',\x20or\x20directory\x20name.','1823853YdollF','personal','34576UqQgMX','toLowerCase','skillCode','allowAppCodeRetarget','number','files','name','description','10426014MwGWCB','scope','1267833BCuJue','trim','35QASxuD','appCode','(unknown)','Remote\x20Skill\x20','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','displayName','targetScope','4981288mNuWuZ','replace','480882eQaPkA','sourceSessionId','633712jGSCpl','isArray','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','find','some','isFile','pushedAt','match','builtin','length','\x20has\x20scope=\x22','content','validation','isSymbolicLink','6QNaNQq','company','ignoreMetadataAppCodeMismatch','ignoreMetadataSkillCode'];a104_0x39df=function(){return _0x119bf6;};return a104_0x39df();}import{basename,resolve}from'node:path';import{parse as a104_0x5c932d}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 a104_0x131e(_0x4b94d7,_0x2499c7){_0x4b94d7=_0x4b94d7-0x185;const _0x39dfee=a104_0x39df();let _0x131e51=_0x39dfee[_0x4b94d7];return _0x131e51;}import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0x3e84d4,_0x379eee,_0x5ccfbe={}){const _0xecdce0=a104_0x131e,_0x1ebc2b=resolvePushDirectoryRoot(_0x3e84d4),_0x4f276f=readPushMetadataIfPresent(resolve(_0x1ebc2b,METADATA_FILE),{'ignoreInvalidMetadata':_0x5ccfbe['ignoreInvalidMetadata']});if(_0x4f276f?.['appCode']&&_0x4f276f[_0xecdce0(0x1bc)]!==_0x379eee&&!_0x5ccfbe[_0xecdce0(0x1b2)]&&!_0x5ccfbe[_0xecdce0(0x19b)])throw CliErrors[_0xecdce0(0x197)](_0xecdce0(0x1aa)+_0x4f276f[_0xecdce0(0x1bc)]+'\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22'+_0x379eee+'\x22.');const _0x3f1922=resolvePushSkillCode(_0x1ebc2b,_0x379eee,_0x4f276f,_0x5ccfbe);if(!_0x3f1922)throw CliErrors[_0xecdce0(0x197)]('Unable\x20to\x20resolve\x20skillCode\x20from\x20'+SKILL_FILE+',\x20'+METADATA_FILE+_0xecdce0(0x1ac));return{'dir':_0x1ebc2b,'skillCode':_0x3f1922,'metadata':_0x4f276f};}export function readPushDirectory(_0x2cc675,_0x4217ab,_0x502c5b={}){const _0xd0a33=a104_0x131e,_0x252572=resolvePushDirectoryIdentity(_0x2cc675,_0x4217ab,_0x502c5b),_0x4136c9=_0x252572['dir'],_0x54fc54=resolve(_0x4136c9,SKILL_FILE);if(!existsSync(_0x54fc54)||!lstatSync(_0x54fc54)['isFile']())throw CliErrors[_0xd0a33(0x197)](_0xd0a33(0x19f)+SKILL_FILE+':\x20'+_0x54fc54);const _0x5b1dbb=_0x252572['metadata'],_0x31c272=_0x502c5b[_0xd0a33(0x186)]??_0xd0a33(0x1ae);if(!_0x502c5b[_0xd0a33(0x1a5)]&&_0x5b1dbb?.[_0xd0a33(0x1b8)]===_0xd0a33(0x193))throw CliErrors[_0xd0a33(0x197)](_0xd0a33(0x18d)+METADATA_FILE+_0xd0a33(0x195)+_0x5b1dbb[_0xd0a33(0x1b8)]+'\x22.');if(!_0x502c5b[_0xd0a33(0x1a5)]&&_0x31c272==='personal'&&_0x5b1dbb?.['scope']&&_0x5b1dbb[_0xd0a33(0x1b8)]!=='personal')throw CliErrors[_0xd0a33(0x197)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20'+METADATA_FILE+_0xd0a33(0x195)+_0x5b1dbb[_0xd0a33(0x1b8)]+'\x22.','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20'+_0x4136c9+_0xd0a33(0x1bf));const _0x4be6ce=scanSkillDirectory(_0x4136c9),_0x3a2b6d=buildSkillPackage(_0x4be6ce),_0x14243e=readFileSync(_0x54fc54,'utf8'),_0x345801=_0x252572[_0xd0a33(0x1b1)],_0x5cd1e9=_0x502c5b['ignoreMetadataForPayload']?undefined:_0x5b1dbb,_0x13290b=readSkillDisplayName(_0x14243e);return{'skillCode':_0x345801,'metadata':_0x5b1dbb,'frontmatterDisplayName':_0x13290b,'input':{'skillCode':_0x345801,'skillName':_0x13290b??_0x5cd1e9?.[_0xd0a33(0x1a6)],'description':_0x5cd1e9?.[_0xd0a33(0x1b6)],'content':_0x14243e,'files':_0x3a2b6d[_0xd0a33(0x1a4)],'packageBase64':_0x3a2b6d['packageBase64'],'tags':_0x5cd1e9?.[_0xd0a33(0x1a1)],'version':_0x5cd1e9?.[_0xd0a33(0x1a8)],'sourceSessionId':_0x5cd1e9?.[_0xd0a33(0x18a)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x1c17a2,_0x27e886,_0x332391,_0x571fa9={}){const _0x332f0f=a104_0x131e,_0x52f7fb=resolvePushDirectoryRoot(_0x1c17a2),_0x23cb71=readPushMetadataIfPresent(resolve(_0x52f7fb,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x1d6fcb=requireRemoteScope(_0x27e886),_0x50f9b4=readLocalSkillContent(_0x52f7fb),_0x1368f4={..._0x27e886,'appCode':_0x27e886[_0x332f0f(0x1bc)]??_0x332391,'skillName':_0x27e886[_0x332f0f(0x1a6)]??_0x23cb71?.[_0x332f0f(0x1a6)],'description':_0x27e886[_0x332f0f(0x1b6)]??_0x23cb71?.[_0x332f0f(0x1b6)],'tags':Array['isArray'](_0x27e886[_0x332f0f(0x1a1)])?_0x27e886[_0x332f0f(0x1a1)]:_0x23cb71?.[_0x332f0f(0x1a1)],'sourceSessionId':_0x27e886['sourceSessionId']??_0x23cb71?.[_0x332f0f(0x18a)],'content':_0x27e886[_0x332f0f(0x196)]??_0x50f9b4},_0x15d80b=buildMetadata(_0x1368f4,_0x1d6fcb,_0x332391,contentHash(_0x50f9b4),_0x571fa9['refreshedAt']);writeJsonAtomic(resolve(_0x52f7fb,METADATA_FILE),_0x15d80b);}export function recordPushedRuntimeSkill(_0x171f1b,_0x2f98d9,_0x1b0a39,_0x3f1c67={}){const _0x50b2cf=a104_0x131e,_0x11d382=resolvePushDirectoryRoot(_0x171f1b),_0x5949f6=scanSkillDirectory(_0x11d382),_0x165e2b=_0x5949f6[_0x50b2cf(0x18e)](_0xd9c6e9=>_0xd9c6e9['path']===SKILL_FILE),_0x2ed380=_0x165e2b?fileText(_0x165e2b):'',_0x380270=tryNormalizePackageManifest(_0x2f98d9[_0x50b2cf(0x1b4)]),_0x1647f8={..._0x2f98d9,'content':_0x2f98d9[_0x50b2cf(0x196)]??_0x2ed380,'files':_0x380270},_0x35498d=_0x380270?normalizeLocalFiles(_0x5949f6)['filter'](_0x45a9aa=>_0x380270[_0x50b2cf(0x1b4)][_0x50b2cf(0x18f)](_0x1279ab=>_0x1279ab[_0x50b2cf(0x1a2)]===_0x45a9aa[_0x50b2cf(0x1a2)])):undefined,_0x1831e9=buildMetadata(_0x1647f8,_0x3f1c67['scope']??_0x50b2cf(0x1ae),_0x1b0a39,contentHash(_0x1647f8[_0x50b2cf(0x196)]??''),_0x3f1c67[_0x50b2cf(0x191)],_0x35498d);writeJsonAtomic(resolve(_0x11d382,METADATA_FILE),_0x1831e9);}export function deriveSkillCodeFromDirectory(_0x480bfe,_0x438ff4){const _0x17c51c=a104_0x131e,_0x512a3e=basename(resolve(_0x480bfe)),_0x5a009e=_0x438ff4+'--';return _0x512a3e['startsWith'](_0x5a009e)?_0x512a3e[_0x17c51c(0x1a9)](_0x5a009e[_0x17c51c(0x194)]):_0x512a3e;}function resolvePushSkillCode(_0xc5b499,_0x1a4ddb,_0x29cb0a,_0xee4625){const _0x2cc2b4=a104_0x131e,_0x50eb6f=deriveSkillCodeFromSkillFile(_0xc5b499)||deriveSkillCodeFromDirectory(_0xc5b499,_0x1a4ddb);if(_0xee4625[_0x2cc2b4(0x19c)])return _0x50eb6f;return _0x29cb0a?.[_0x2cc2b4(0x1b1)]?.[_0x2cc2b4(0x1ba)]()||_0x50eb6f;}function deriveSkillCodeFromSkillFile(_0x775546){const _0x3cec10=a104_0x131e,_0x1c768d=resolve(_0x775546,SKILL_FILE);if(!existsSync(_0x1c768d)||!lstatSync(_0x1c768d)[_0x3cec10(0x190)]())return undefined;const _0x3d97c2=readFileSync(_0x1c768d,_0x3cec10(0x1ab)),_0x30bd2c=_0x3d97c2[_0x3cec10(0x192)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x30bd2c)return undefined;const _0x4e504c=parseFrontmatterObject(_0x30bd2c[0x1]??''),_0x1a7936=scalarToString(_0x4e504c?.[_0x3cec10(0x1b5)]);return _0x1a7936?slugifySkillName(_0x1a7936):undefined;}function readSkillDisplayName(_0x497f26){const _0x1db07f=a104_0x131e,_0x538be3=_0x497f26['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x538be3)return undefined;const _0x253d94=parseFrontmatterObject(_0x538be3[0x1]??'');return scalarToString(_0x253d94?.[_0x1db07f(0x185)]);}function slugifySkillName(_0x28f2b6){const _0x5682d1=a104_0x131e,_0x3cfe11=_0x28f2b6['trim']()[_0x5682d1(0x1b0)]()[_0x5682d1(0x188)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x5682d1(0x188)](/^-+/,'')['replace'](/-+$/,'')[_0x5682d1(0x188)](/-{2,}/g,'-');if(!_0x3cfe11)throw CliErrors[_0x5682d1(0x197)](_0x5682d1(0x19d)+SKILL_FILE+_0x5682d1(0x19e));return _0x3cfe11;}function parseFrontmatterObject(_0x32c9a1){const _0x4184ae=a104_0x131e;try{const _0x1a20f4=a104_0x5c932d(_0x32c9a1);return _0x1a20f4&&typeof _0x1a20f4==='object'&&!Array[_0x4184ae(0x18c)](_0x1a20f4)?_0x1a20f4:undefined;}catch{return undefined;}}function scalarToString(_0x198dbd){const _0x3803e7=a104_0x131e;if(typeof _0x198dbd==='string')return _0x198dbd[_0x3803e7(0x1ba)]();if(typeof _0x198dbd===_0x3803e7(0x1b3)||typeof _0x198dbd===_0x3803e7(0x1a0))return String(_0x198dbd);return undefined;}function resolvePushDirectoryRoot(_0x842b26){const _0x7de8b=a104_0x131e,_0xa1d552=resolve(_0x842b26);if(!existsSync(_0xa1d552))throw CliErrors[_0x7de8b(0x197)]('Skill\x20directory\x20not\x20found:\x20'+_0x842b26);const _0x5be08=lstatSync(_0xa1d552);if(_0x5be08[_0x7de8b(0x1a7)]())return _0xa1d552;if(_0x5be08[_0x7de8b(0x198)]()){const _0x147642=realpathSync(_0xa1d552);if(lstatSync(_0x147642)[_0x7de8b(0x1a7)]())return _0x147642;}throw CliErrors[_0x7de8b(0x197)]('Skill\x20directory\x20not\x20found:\x20'+_0x842b26);}function requireRemoteScope(_0x1689b9){const _0xec4838=a104_0x131e;if(_0x1689b9[_0xec4838(0x1b8)]===_0xec4838(0x1ae)||_0x1689b9[_0xec4838(0x1b8)]===_0xec4838(0x19a)||_0x1689b9[_0xec4838(0x1b8)]===_0xec4838(0x193))return _0x1689b9[_0xec4838(0x1b8)];throw CliErrors[_0xec4838(0x197)](_0xec4838(0x1be)+(_0x1689b9[_0xec4838(0x1b1)]||_0xec4838(0x1bd))+'\x20has\x20unsupported\x20scope\x20\x22'+(_0x1689b9['scope']??_0xec4838(0x1a3))+'\x22.');}function readLocalSkillContent(_0x3dea4e){const _0x40f0b0=a104_0x131e,_0x1e2e00=resolve(_0x3dea4e,SKILL_FILE);return existsSync(_0x1e2e00)&&lstatSync(_0x1e2e00)[_0x40f0b0(0x190)]()?readFileSync(_0x1e2e00,_0x40f0b0(0x1ab)):'';}function readPushMetadataIfPresent(_0xd68569,_0x4c69a1={}){try{return readMetadataIfPresent(_0xd68569);}catch(_0x32871d){if(_0x4c69a1['ignoreInvalidMetadata'])return undefined;throw _0x32871d;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a105_0x3a76(){const _0x5dfee7=['234170wALicB','Unsupported\x20runtime\x20Skill\x20scope:\x20','2320272QXSxCu','4ijZtDB','push','1160341LJiPPl','personal','14459214QwzRtU','builtin','validation','9WsqhlZ','200068tumpsV','company','2PoSOdj','15117wDUsXp','includes','54FBFHkh','3444520MUgqhy'];a105_0x3a76=function(){return _0x5dfee7;};return a105_0x3a76();}function a105_0x1c82(_0x2856c0,_0x2b68f4){_0x2856c0=_0x2856c0-0x1b3;const _0x3a76bd=a105_0x3a76();let _0x1c822a=_0x3a76bd[_0x2856c0];return _0x1c822a;}(function(_0x5d3466,_0x516c15){const _0x3fe7c3=a105_0x1c82,_0x557785=_0x5d3466();while(!![]){try{const _0x506c02=parseInt(_0x3fe7c3(0x1bf))/0x1*(-parseInt(_0x3fe7c3(0x1bd))/0x2)+parseInt(_0x3fe7c3(0x1c0))/0x3*(parseInt(_0x3fe7c3(0x1b5))/0x4)+parseInt(_0x3fe7c3(0x1c4))/0x5*(-parseInt(_0x3fe7c3(0x1c2))/0x6)+parseInt(_0x3fe7c3(0x1b7))/0x7+-parseInt(_0x3fe7c3(0x1b4))/0x8+parseInt(_0x3fe7c3(0x1bc))/0x9*(-parseInt(_0x3fe7c3(0x1c3))/0xa)+parseInt(_0x3fe7c3(0x1b9))/0xb;if(_0x506c02===_0x516c15)break;else _0x557785['push'](_0x557785['shift']());}catch(_0x114a12){_0x557785['push'](_0x557785['shift']());}}}(a105_0x3a76,0x37f60));import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x373146){const _0x18742e=a105_0x1c82,_0x22cd54=_0x373146&&_0x373146['length']>0x0?_0x373146:['personal',_0x18742e(0x1be),_0x18742e(0x1ba)],_0xa1b229=[];for(const _0x35fe2a of _0x22cd54){if(!isRuntimeSkillScope(_0x35fe2a))throw CliErrors[_0x18742e(0x1bb)](_0x18742e(0x1b3)+_0x35fe2a);!_0xa1b229[_0x18742e(0x1c1)](_0x35fe2a)&&_0xa1b229[_0x18742e(0x1b6)](_0x35fe2a);}return _0xa1b229;}export function isRuntimeSkillScope(_0xcc0c6c){const _0x2469e7=a105_0x1c82;return _0xcc0c6c===_0x2469e7(0x1b8)||_0xcc0c6c===_0x2469e7(0x1be)||_0xcc0c6c===_0x2469e7(0x1ba);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a107_0x4654(_0x44d8bb,_0x43b127){_0x44d8bb=_0x44d8bb-0x84;const _0x2d5830=a107_0x2d58();let _0x4654bc=_0x2d5830[_0x44d8bb];return _0x4654bc;}function a107_0x2d58(){const _0x5576b8=['object','validation_error','endsWith','1980-01-01T00:00:00.000Z','from','code','174561exoPQa','24Htoffr','map','sort','name','435932wchqtS','172197ZZDQZK','entries','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','path','3348730JJpNqz','validation','1174064rSIqzU','36YBjKXX','1073646cAhysM','5252968FGMksE','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.'];a107_0x2d58=function(){return _0x5576b8;};return a107_0x2d58();}const a107_0x4b1db3=a107_0x4654;(function(_0x12c269,_0x33a993){const _0x2fbd5f=a107_0x4654,_0x47d4af=_0x12c269();while(!![]){try{const _0x348b19=-parseInt(_0x2fbd5f(0x95))/0x1+parseInt(_0x2fbd5f(0x85))/0x2+-parseInt(_0x2fbd5f(0x90))/0x3*(parseInt(_0x2fbd5f(0x86))/0x4)+parseInt(_0x2fbd5f(0x9a))/0x5+-parseInt(_0x2fbd5f(0x91))/0x6*(parseInt(_0x2fbd5f(0x87))/0x7)+parseInt(_0x2fbd5f(0x88))/0x8+parseInt(_0x2fbd5f(0x96))/0x9;if(_0x348b19===_0x33a993)break;else _0x47d4af['push'](_0x47d4af['shift']());}catch(_0x31a026){_0x47d4af['push'](_0x47d4af['shift']());}}}(a107_0x2d58,0x57bed));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a107_0x4b1db3(0x8d));export function createDeterministicZipPackage(_0x5cdaa5){const _0x1688cd=a107_0x4b1db3,_0x40fcab={};for(const _0x22729c of normalizeLocalFiles(_0x5cdaa5)){_0x40fcab[_0x22729c[_0x1688cd(0x99)]]=fileContent(_0x22729c);}return Buffer[_0x1688cd(0x8e)](zipSync(_0x40fcab,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x4d685c){const _0x442c71=a107_0x4b1db3;if(_0x4d685c['length']<0x16)throw CliErrors[_0x442c71(0x84)](_0x442c71(0x89));let _0x4c7b19;try{_0x4c7b19=unzipSync(_0x4d685c,{'filter'(_0x29ed79){const _0x216069=_0x442c71,_0x4fcdde=normalizeSkillRelativePath(_0x29ed79[_0x216069(0x94)]);if(_0x4fcdde[_0x216069(0x8c)]('/'))throw CliErrors['validation'](_0x216069(0x98)+_0x4fcdde);return!![];}});}catch(_0x2172fe){if(isRuntimeSkillValidationError(_0x2172fe))throw _0x2172fe;throw CliErrors[_0x442c71(0x84)](_0x442c71(0x89));}return Object[_0x442c71(0x97)](_0x4c7b19)[_0x442c71(0x92)](([_0xbe3f7b,_0x4fea5f])=>({'path':normalizeSkillRelativePath(_0xbe3f7b),'bytes':Buffer['from'](_0x4fea5f)}))[_0x442c71(0x93)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x422209){const _0x546e13=a107_0x4b1db3;return typeof _0x422209===_0x546e13(0x8a)&&_0x422209!==null&&_0x546e13(0x8f)in _0x422209&&_0x422209[_0x546e13(0x8f)]===_0x546e13(0x8b);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x9a1476,_0x3e8fd8){const _0x2433a5=a108_0x9f7a,_0x3bd843=_0x9a1476();while(!![]){try{const _0x5de823=parseInt(_0x2433a5(0x1a9))/0x1*(-parseInt(_0x2433a5(0x19c))/0x2)+parseInt(_0x2433a5(0x189))/0x3*(parseInt(_0x2433a5(0x1a4))/0x4)+-parseInt(_0x2433a5(0x193))/0x5+-parseInt(_0x2433a5(0x1ab))/0x6*(-parseInt(_0x2433a5(0x1ad))/0x7)+-parseInt(_0x2433a5(0x198))/0x8+-parseInt(_0x2433a5(0x187))/0x9+parseInt(_0x2433a5(0x1b0))/0xa;if(_0x5de823===_0x3e8fd8)break;else _0x3bd843['push'](_0x3bd843['shift']());}catch(_0x3a4b74){_0x3bd843['push'](_0x3bd843['shift']());}}}(a108_0x5087,0xc27d1));function a108_0x5087(){const _0x58efff=['set','sha256','requireOssPath','Runtime\x20Skill\x20package\x20size\x20mismatch.','334fqfKoh','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','1213854tWFYJg','trim','28sqXGMs','toLowerCase','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','23383450xbiwiQ','map','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','push','isArray','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','string','13904937AdzPDF','treeSha256','2536023EZHgdj','get','Missing\x20','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','path','\x20in\x20Skill\x20file\x20package.','zipSize','schemaVersion','some','length','2267640DmATVn','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','zipSha256','isSafeInteger','size','4326384CfShwi','validation','files','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','3934ASEQaL','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','Duplicate\x20Skill\x20package\x20entry:\x20','bytes','has','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','ossPath','4rwLiSR'];a108_0x5087=function(){return _0x58efff;};return a108_0x5087();}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(_0x172c2e){const _0x4b22b2=a108_0x9f7a,_0x6c5b58=normalizeLocalFiles(_0x172c2e);if(!_0x6c5b58['some'](_0x3d262d=>_0x3d262d['path']===SKILL_FILE))throw CliErrors[_0x4b22b2(0x199)](_0x4b22b2(0x18b)+SKILL_FILE+_0x4b22b2(0x18e));const _0x55adcc=localFilesToManifestFiles(_0x6c5b58),_0x40a8a0=createDeterministicZipPackage(_0x6c5b58);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x55adcc),'zipSha256':bufferSha256(_0x40a8a0),'zipSize':_0x40a8a0['length'],'files':_0x55adcc},'packageBytes':_0x40a8a0,'packageBase64':_0x40a8a0['toString']('base64')};}export function verifyRuntimeSkillPackage(_0x3e4414,_0x3f406b){const _0x342262=a108_0x9f7a,_0xe6ad70=normalizePackageManifest(_0x3e4414,{'requireOssPath':![]});if(!_0xe6ad70)throw CliErrors[_0x342262(0x199)](_0x342262(0x1aa));return extractAndVerifyPackage(_0xe6ad70,_0x3f406b);}export function verifyRuntimeSkillBundle(_0x1302a8,_0x230ded){const _0x3d4ca2=normalizePackageManifest(_0x1302a8,{'requireOssPath':![]});if(!_0x3d4ca2)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x3d4ca2,_0x230ded);}export function tryNormalizePackageManifest(_0x17a713){return normalizePackageManifest(_0x17a713,{'requireOssPath':![]});}export function requirePackageBytes(_0x4f6cb5,_0x5c82f0){const _0x4bc192=a108_0x9f7a;if(!_0x5c82f0||_0x5c82f0[_0x4bc192(0x192)]===0x0)throw CliErrors[_0x4bc192(0x199)](_0x4bc192(0x1b5)+_0x4f6cb5);return _0x5c82f0;}export function extractDownloadedPackage(_0x4f0974){const _0x1f33c9=a108_0x9f7a,_0x1e0167=parseZipPackage(_0x4f0974)[_0x1f33c9(0x1b1)](_0x301d22=>({'path':_0x301d22[_0x1f33c9(0x18d)],'bytes':_0x301d22['bytes']}));if(!_0x1e0167[_0x1f33c9(0x191)](_0x3d4e39=>_0x3d4e39[_0x1f33c9(0x18d)]===SKILL_FILE))throw CliErrors[_0x1f33c9(0x199)]('Runtime\x20Skill\x20package\x20is\x20missing\x20'+SKILL_FILE+'.');return normalizeLocalFiles(_0x1e0167);}export function localFilesToManifestFiles(_0x212093){const _0x54f3b5=a108_0x9f7a;return normalizeLocalFiles(_0x212093)[_0x54f3b5(0x1b1)](_0x1f734f=>({'path':_0x1f734f[_0x54f3b5(0x18d)],'sha256':fileHash(_0x1f734f),'size':fileContent(_0x1f734f)['length']}));}function normalizePackageManifest(_0x47c9a9,_0x2ee656){const _0x34f9b8=a108_0x9f7a;if(!_0x47c9a9||typeof _0x47c9a9!=='object'||Array[_0x34f9b8(0x1b4)](_0x47c9a9))return undefined;const _0x341a09=_0x47c9a9,_0x4d1e43=typeof _0x341a09[_0x34f9b8(0x1a3)]===_0x34f9b8(0x1b6)?_0x341a09[_0x34f9b8(0x1a3)][_0x34f9b8(0x1ac)]():undefined;if(_0x2ee656[_0x34f9b8(0x1a7)]&&!_0x4d1e43)return undefined;if(!Array[_0x34f9b8(0x1b4)](_0x341a09[_0x34f9b8(0x19a)])||_0x341a09[_0x34f9b8(0x19a)][_0x34f9b8(0x192)]===0x0)return undefined;if(!isSha256Hex(_0x341a09[_0x34f9b8(0x188)]))throw CliErrors[_0x34f9b8(0x199)](_0x34f9b8(0x19b));if(!isSha256Hex(_0x341a09[_0x34f9b8(0x195)]))throw CliErrors['validation'](_0x34f9b8(0x1af));if(!Number[_0x34f9b8(0x196)](_0x341a09['zipSize'])||_0x341a09['zipSize']<0x0)throw CliErrors[_0x34f9b8(0x199)](_0x34f9b8(0x1b2));const _0x44523c=normalizeManifestFiles(_0x341a09[_0x34f9b8(0x19a)]);if(!_0x44523c[_0x34f9b8(0x191)](_0x4faf68=>_0x4faf68['path']===SKILL_FILE))throw CliErrors['validation'](_0x34f9b8(0x1a1)+SKILL_FILE+'.');const _0x456d1e=fileTreeHash(_0x44523c);if(_0x456d1e!==_0x341a09[_0x34f9b8(0x188)][_0x34f9b8(0x1ae)]())throw CliErrors[_0x34f9b8(0x199)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number[_0x34f9b8(0x196)](_0x341a09[_0x34f9b8(0x190)])?_0x341a09[_0x34f9b8(0x190)]:0x2,'ossPath':_0x4d1e43,'treeSha256':_0x456d1e,'zipSha256':_0x341a09[_0x34f9b8(0x195)][_0x34f9b8(0x1ae)](),'zipSize':_0x341a09[_0x34f9b8(0x18f)],'files':_0x44523c};}function extractAndVerifyPackage(_0xb7ac31,_0x5b75b3){const _0x553d6c=a108_0x9f7a,_0xb30b16=normalizePackageManifest(_0xb7ac31,{'requireOssPath':![]});if(!_0xb30b16)throw CliErrors[_0x553d6c(0x199)](_0x553d6c(0x1aa));if(_0x5b75b3['length']!==_0xb30b16['zipSize'])throw CliErrors[_0x553d6c(0x199)](_0x553d6c(0x1a8));const _0x2ec7e3=bufferSha256(_0x5b75b3);if(_0x2ec7e3!==_0xb30b16[_0x553d6c(0x195)])throw CliErrors[_0x553d6c(0x199)](_0x553d6c(0x19d));return extractAndVerifyPackageFiles(_0xb30b16,_0x5b75b3);}function a108_0x9f7a(_0x376bc0,_0x5724b6){_0x376bc0=_0x376bc0-0x187;const _0x5087f3=a108_0x5087();let _0x9f7adf=_0x5087f3[_0x376bc0];return _0x9f7adf;}function extractAndVerifyPackageFiles(_0x4152f5,_0x56835c){const _0x235102=a108_0x9f7a,_0x5b320c=parseZipPackage(_0x56835c);if(_0x5b320c[_0x235102(0x192)]!==_0x4152f5[_0x235102(0x19a)][_0x235102(0x192)])throw CliErrors[_0x235102(0x199)](_0x235102(0x18c));const _0xc35e=new Map();for(const _0x47ecfc of _0x5b320c){if(_0xc35e[_0x235102(0x1a0)](_0x47ecfc[_0x235102(0x18d)]))throw CliErrors[_0x235102(0x199)](_0x235102(0x19e)+_0x47ecfc[_0x235102(0x18d)]);_0xc35e[_0x235102(0x1a5)](_0x47ecfc[_0x235102(0x18d)],_0x47ecfc);}const _0x3b11d8=[];for(const _0x59ae85 of _0x4152f5['files']){const _0x4bb2a4=_0xc35e[_0x235102(0x18a)](_0x59ae85[_0x235102(0x18d)]);if(!_0x4bb2a4)throw CliErrors[_0x235102(0x199)](_0x235102(0x1a2)+_0x59ae85['path']);if(_0x4bb2a4[_0x235102(0x19f)][_0x235102(0x192)]!==_0x59ae85[_0x235102(0x197)])throw CliErrors[_0x235102(0x199)](_0x235102(0x194)+_0x59ae85['path']);const _0x539a79=bufferSha256(_0x4bb2a4[_0x235102(0x19f)]);if(_0x539a79!==_0x59ae85[_0x235102(0x1a6)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20'+_0x59ae85[_0x235102(0x18d)]);_0x3b11d8[_0x235102(0x1b3)]({'path':_0x59ae85[_0x235102(0x18d)],'bytes':_0x4bb2a4[_0x235102(0x19f)]});}return normalizeLocalFiles(_0x3b11d8);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4abe17,_0x144349){var _0x52feb2=a109_0x3a31,_0x76a644=_0x4abe17();while(!![]){try{var _0x487c53=parseInt(_0x52feb2(0x1d6))/0x1*(-parseInt(_0x52feb2(0x1da))/0x2)+parseInt(_0x52feb2(0x1d9))/0x3+-parseInt(_0x52feb2(0x1d4))/0x4*(-parseInt(_0x52feb2(0x1dc))/0x5)+parseInt(_0x52feb2(0x1d3))/0x6*(parseInt(_0x52feb2(0x1d5))/0x7)+parseInt(_0x52feb2(0x1dd))/0x8*(parseInt(_0x52feb2(0x1d7))/0x9)+parseInt(_0x52feb2(0x1d8))/0xa*(-parseInt(_0x52feb2(0x1db))/0xb)+-parseInt(_0x52feb2(0x1d1))/0xc*(parseInt(_0x52feb2(0x1d2))/0xd);if(_0x487c53===_0x144349)break;else _0x76a644['push'](_0x76a644['shift']());}catch(_0x28a809){_0x76a644['push'](_0x76a644['shift']());}}}(a109_0x1e6c,0xe1c77));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill}from'./runtime-skill-sync/materialize.js';function a109_0x1e6c(){var _0x39a0b8=['328396RfoNkV','44uQPgLx','2289565mxMWcT','71912Tgwrgs','6252ExmKVD','35347LfxvEb','366AOblTU','8oJknmk','174139OKhgcF','2VqirYf','423pGzYRZ','1203170pwTqzu','885744sqVTnG'];a109_0x1e6c=function(){return _0x39a0b8;};return a109_0x1e6c();}function a109_0x3a31(_0x3fcc03,_0x45c529){_0x3fcc03=_0x3fcc03-0x1d1;var _0x1e6cd3=a109_0x1e6c();var _0x3a31cf=_0x1e6cd3[_0x3fcc03];return _0x3a31cf;}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
|
-
(function(
|
|
1
|
+
(function(_0x52d7a3,_0xce41d1){const _0x2061f9=a110_0x2d7b,_0x43eda3=_0x52d7a3();while(!![]){try{const _0x977dd3=parseInt(_0x2061f9(0x111))/0x1+-parseInt(_0x2061f9(0x118))/0x2*(parseInt(_0x2061f9(0x117))/0x3)+parseInt(_0x2061f9(0x113))/0x4*(-parseInt(_0x2061f9(0x115))/0x5)+parseInt(_0x2061f9(0x116))/0x6+parseInt(_0x2061f9(0x11a))/0x7+-parseInt(_0x2061f9(0x114))/0x8*(-parseInt(_0x2061f9(0x119))/0x9)+-parseInt(_0x2061f9(0x112))/0xa;if(_0x977dd3===_0xce41d1)break;else _0x43eda3['push'](_0x43eda3['shift']());}catch(_0x508d12){_0x43eda3['push'](_0x43eda3['shift']());}}}(a110_0x1754,0xcec03));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a110_0x2d7b(_0x463354,_0x281dad){_0x463354=_0x463354-0x111;const _0x175451=a110_0x1754();let _0x2d7b25=_0x175451[_0x463354];return _0x2d7b25;}function a110_0x1754(){const _0x118d1f=['2143953ylheSo','1557465lQdonR','1483584lUKhdT','13500930EOkAUx','4jLAwXj','56eDoroY','617305EyhPoZ','2371782USvVtB','2172735DcZhCH','4apNLXl'];a110_0x1754=function(){return _0x118d1f;};return a110_0x1754();}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a111_0x45ba(_0x1a4b2f,_0x187e38){_0x1a4b2f=_0x1a4b2f-0x1e3;const _0x37379b=a111_0x3737();let _0x45ba72=_0x37379b[_0x1a4b2f];return _0x45ba72;}const a111_0x31846=a111_0x45ba;function a111_0x3737(){const _0x238e04=['winstonLogger','unknown','addColors','31749750YZUPSA','setLogPath','success','mkdirSync','1169205TbGlda','errors','1086037YAeizl','rawCommand','parse','command','info','message','map','Failed\x20to\x20read\x20logs:','1241416bXIvpR','red','setRawCommand','existsSync','clearLogs','utf8','now','timestamp','logFilePath','createLogger','2973688BcQSYr','Failed:\x20','Failed\x20to\x20clear\x20logs:','logTask','error','details','combine','23615LklAAh','Completed:\x20','level','green','writeFileSync','format','duration','18rvUKIT','currentRawCommand','trim','split','readFileSync','filter','warn','dirname','812Vqcslr','242298iCldrC','File','join','logFileName','138zMUZCE','getWinstonInstance','Starting:\x20','toISOString','initWinstonLogger'];a111_0x3737=function(){return _0x238e04;};return a111_0x3737();}(function(_0x2af88c,_0x31314d){const _0x467c4c=a111_0x45ba,_0x466fe9=_0x2af88c();while(!![]){try{const _0x4539dd=parseInt(_0x467c4c(0x218))/0x1+parseInt(_0x467c4c(0x1e5))/0x2+-parseInt(_0x467c4c(0x216))/0x3+-parseInt(_0x467c4c(0x205))/0x4*(-parseInt(_0x467c4c(0x1f6))/0x5)+parseInt(_0x467c4c(0x20a))/0x6*(parseInt(_0x467c4c(0x206))/0x7)+-parseInt(_0x467c4c(0x1ef))/0x8*(-parseInt(_0x467c4c(0x1fd))/0x9)+-parseInt(_0x467c4c(0x212))/0xa;if(_0x4539dd===_0x31314d)break;else _0x466fe9['push'](_0x466fe9['shift']());}catch(_0x242e8e){_0x466fe9['push'](_0x466fe9['shift']());}}}(a111_0x3737,0x9c55c));import a111_0x413daa from'winston';import a111_0x1ecf40 from'node:fs';import a111_0x1d8765 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a111_0x31846(0x20f)];[a111_0x31846(0x1ed)]='';[a111_0x31846(0x1fe)]='';constructor(){}[a111_0x31846(0x1e7)](_0x64b8c7){const _0x4cfe9a=a111_0x31846;this[_0x4cfe9a(0x1fe)]=_0x64b8c7;}[a111_0x31846(0x213)](_0x37bad6){const _0x142d68=a111_0x31846;this[_0x142d68(0x1ed)]=a111_0x1d8765[_0x142d68(0x208)](_0x37bad6,PRODUCT_CONFIG[_0x142d68(0x209)]),this[_0x142d68(0x20f)]&&this[_0x142d68(0x20f)]['clear'](),this['initWinstonLogger']();}[a111_0x31846(0x20e)](){const _0x52f29f=a111_0x31846,_0x83df24=a111_0x1d8765[_0x52f29f(0x204)](this[_0x52f29f(0x1ed)]);!a111_0x1ecf40[_0x52f29f(0x1e8)](_0x83df24)&&a111_0x1ecf40[_0x52f29f(0x215)](_0x83df24,{'recursive':!![]});const _0x5dda97=a111_0x413daa[_0x52f29f(0x1fb)][_0x52f29f(0x1f5)](a111_0x413daa[_0x52f29f(0x1fb)][_0x52f29f(0x1ec)](),a111_0x413daa[_0x52f29f(0x1fb)][_0x52f29f(0x217)]({'stack':!![]}),a111_0x413daa[_0x52f29f(0x1fb)]['printf'](_0x47c0b6=>{const _0x364e03=_0x52f29f,_0x4fd052={'timestamp':_0x47c0b6[_0x364e03(0x1ec)]||new Date()[_0x364e03(0x20d)](),'level':_0x47c0b6[_0x364e03(0x1f8)]||_0x364e03(0x21c),'command':_0x47c0b6[_0x364e03(0x21b)]||_0x364e03(0x210),'rawCommand':_0x47c0b6[_0x364e03(0x219)]||this[_0x364e03(0x1fe)]||undefined,'message':_0x47c0b6['message']||'','duration':_0x47c0b6[_0x364e03(0x1fc)]||undefined,'details':_0x47c0b6[_0x364e03(0x1f4)]||undefined};return JSON['stringify'](_0x4fd052);}));this[_0x52f29f(0x20f)]=a111_0x413daa[_0x52f29f(0x1ee)]({'level':'info','format':_0x5dda97,'transports':[new a111_0x413daa['transports'][(_0x52f29f(0x207))]({'filename':this[_0x52f29f(0x1ed)],'level':'info'})],'silent':![]}),a111_0x413daa[_0x52f29f(0x211)]({'success':_0x52f29f(0x1f9),'error':_0x52f29f(0x1e6),'warn':'yellow','info':'blue'});}[a111_0x31846(0x21c)](_0x27eef0,_0x1ab693,_0x2b68c6){const _0x4826e8=a111_0x31846;if(!this[_0x4826e8(0x1ed)]||!this[_0x4826e8(0x20f)])return;this[_0x4826e8(0x20f)]['info'](_0x1ab693,{'command':_0x27eef0,'details':_0x2b68c6});}[a111_0x31846(0x214)](_0x493c49,_0x884b1e,_0x132db5,_0x12d1e5){const _0x2f1d71=a111_0x31846;if(!this[_0x2f1d71(0x1ed)]||!this[_0x2f1d71(0x20f)])return;this[_0x2f1d71(0x20f)]['log'](_0x2f1d71(0x21c),_0x884b1e,{'level':_0x2f1d71(0x214),'command':_0x493c49,'duration':_0x132db5,'details':_0x12d1e5});}[a111_0x31846(0x1f3)](_0x4d6169,_0x541217,_0x1a91b1){const _0x2f54ea=a111_0x31846;if(!this[_0x2f54ea(0x1ed)]||!this['winstonLogger'])return;this[_0x2f54ea(0x20f)][_0x2f54ea(0x1f3)](_0x541217,{'command':_0x4d6169,'details':_0x1a91b1});}[a111_0x31846(0x203)](_0x1bed23,_0x5eafc5,_0x52c8c2){const _0x4287d8=a111_0x31846;if(!this[_0x4287d8(0x1ed)]||!this[_0x4287d8(0x20f)])return;this['winstonLogger'][_0x4287d8(0x203)](_0x5eafc5,{'command':_0x1bed23,'details':_0x52c8c2});}async[a111_0x31846(0x1f2)](_0x96a17d,_0x2d8c1c,_0x44539d){const _0x46bfd4=a111_0x31846,_0x84d74e=Date[_0x46bfd4(0x1eb)]();this[_0x46bfd4(0x21c)](_0x96a17d,_0x46bfd4(0x20c)+_0x2d8c1c);try{const _0x208f79=await _0x44539d(),_0x3e9055=Date[_0x46bfd4(0x1eb)]()-_0x84d74e;return this[_0x46bfd4(0x214)](_0x96a17d,_0x46bfd4(0x1f7)+_0x2d8c1c,_0x3e9055),_0x208f79;}catch(_0x478b25){const _0x3b6e56=Date[_0x46bfd4(0x1eb)]()-_0x84d74e;this[_0x46bfd4(0x1f3)](_0x96a17d,_0x46bfd4(0x1f0)+_0x2d8c1c,{'error':_0x478b25 instanceof Error?_0x478b25[_0x46bfd4(0x21d)]:String(_0x478b25),'duration':_0x3b6e56});throw _0x478b25;}}['readLogs'](){const _0x443ac6=a111_0x31846;try{if(!a111_0x1ecf40['existsSync'](this[_0x443ac6(0x1ed)]))return[];const _0x1d1a08=a111_0x1ecf40[_0x443ac6(0x201)](this[_0x443ac6(0x1ed)],_0x443ac6(0x1ea));return _0x1d1a08[_0x443ac6(0x200)](/\r?\n/)[_0x443ac6(0x202)](_0x152394=>_0x152394[_0x443ac6(0x1ff)]())[_0x443ac6(0x1e3)](_0x14f21e=>JSON[_0x443ac6(0x21a)](_0x14f21e));}catch(_0xd37c5a){return console[_0x443ac6(0x203)](_0x443ac6(0x1e4),_0xd37c5a),[];}}[a111_0x31846(0x1e9)](){const _0x310f3b=a111_0x31846;try{a111_0x1ecf40['existsSync'](this['logFilePath'])&&a111_0x1ecf40[_0x310f3b(0x1fa)](this[_0x310f3b(0x1ed)],'',_0x310f3b(0x1ea));}catch(_0x279d46){console[_0x310f3b(0x203)](_0x310f3b(0x1f1),_0x279d46);}}[a111_0x31846(0x20b)](){const _0xd09d98=a111_0x31846;return this[_0xd09d98(0x20f)];}}export const logger=new Logger();
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x38e7a6,_0x508778){const _0x28136c=a112_0x44e6,_0x1b13f9=_0x38e7a6();while(!![]){try{const _0x48eed5=-parseInt(_0x28136c(0x98))/0x1*(parseInt(_0x28136c(0x8e))/0x2)+-parseInt(_0x28136c(0x81))/0x3*(parseInt(_0x28136c(0x88))/0x4)+-parseInt(_0x28136c(0x8c))/0x5+-parseInt(_0x28136c(0x89))/0x6+-parseInt(_0x28136c(0x92))/0x7*(parseInt(_0x28136c(0x84))/0x8)+-parseInt(_0x28136c(0x80))/0x9+-parseInt(_0x28136c(0x8f))/0xa*(-parseInt(_0x28136c(0x93))/0xb);if(_0x48eed5===_0x508778)break;else _0x1b13f9['push'](_0x1b13f9['shift']());}catch(_0x346c5d){_0x1b13f9['push'](_0x1b13f9['shift']());}}}(a112_0x5aee,0x7bbde));import{CliErrors}from'../errors.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x2f97e1){const _0x219f7a=a112_0x44e6;if(!_0x2f97e1)return undefined;try{return JSON[_0x219f7a(0x87)](_0x2f97e1);}catch{throw CliErrors[_0x219f7a(0x9b)](_0x219f7a(0x8d)+_0x2f97e1);}}export function parseJsonParamsValue(_0x236037){const _0x44156c=a112_0x44e6;if(!_0x236037)return undefined;try{return JSON[_0x44156c(0x87)](_0x236037);}catch{throw CliErrors['validation'](_0x44156c(0x8d)+_0x236037);}}export function parseBatchCreateItemsFromParams(_0x488614){const _0xce8807=a112_0x44e6;if(Array['isArray'](_0x488614))return _0x488614;if(_0x488614!==null&&_0x488614!==undefined&&typeof _0x488614===_0xce8807(0x86)&&Array[_0xce8807(0x95)](_0x488614[_0xce8807(0x96)]))return _0x488614['items'];throw CliErrors[_0xce8807(0x9b)]('batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}',_0xce8807(0x85));}function a112_0x5aee(){const _0x483d0a=['string','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','8014887gDbeIq','447906QlOYei','data\x20update\x20--params.','length','98976ZgSgVf','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','object','parse','4tppWwm','2573004aDMflc','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','\x20records\x20per\x20call;\x20received\x20','2412970XIbJiN','Invalid\x20JSON\x20for\x20--params:\x20','465026CkmQYj','8489590afvLhn','data\x20update\x20can\x20update\x20at\x20most\x20','id[','399GFYtWG','44kOnDnx','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','isArray','items','join','1VFDyHF','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','number','validation','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.'];a112_0x5aee=function(){return _0x483d0a;};return a112_0x5aee();}function parseDataUpdateId(_0x447c15,_0x14c0ea){const _0x208097=a112_0x44e6;if(typeof _0x447c15===_0x208097(0x9a)&&Number['isSafeInteger'](_0x447c15)&&_0x447c15>0x0)return _0x447c15;if(typeof _0x447c15===_0x208097(0x9d)){if(/^[1-9]\d*$/['test'](_0x447c15))return _0x447c15;}throw CliErrors[_0x208097(0x9b)](_0x208097(0x82)+_0x14c0ea+_0x208097(0x8a));}export function parseUpdateIdsFromParams(_0x48667b){const _0x2eff43=a112_0x44e6;if(_0x48667b===null||_0x48667b===undefined||typeof _0x48667b!==_0x2eff43(0x86)||Array[_0x2eff43(0x95)](_0x48667b))throw CliErrors[_0x2eff43(0x9b)](_0x2eff43(0x9c),_0x2eff43(0x9e));const _0x5de42f=_0x48667b['id'];if(_0x5de42f===undefined||_0x5de42f===null)throw CliErrors[_0x2eff43(0x9b)](_0x2eff43(0x99),_0x2eff43(0x9e));const _0xd4b549=Array[_0x2eff43(0x95)](_0x5de42f)?_0x5de42f:[_0x5de42f];if(_0xd4b549['length']===0x0)throw CliErrors['validation'](_0x2eff43(0x94));if(_0xd4b549[_0x2eff43(0x83)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x2eff43(0x9b)](_0x2eff43(0x90)+MAX_DATA_UPDATE_IDS+_0x2eff43(0x8b)+_0xd4b549[_0x2eff43(0x83)]+'.');return _0xd4b549['map']((_0x40b89f,_0x4a870d)=>parseDataUpdateId(_0x40b89f,Array['isArray'](_0x5de42f)?_0x2eff43(0x91)+_0x4a870d+']':'id'));}function a112_0x44e6(_0x121794,_0x29c54f){_0x121794=_0x121794-0x80;const _0x5aee4f=a112_0x5aee();let _0x44e6f0=_0x5aee4f[_0x121794];return _0x44e6f0;}export function normalizeUpdateParamsForRuntime(_0x474592,_0x48b5b5){const _0x18f51c=a112_0x44e6;if(Array[_0x18f51c(0x95)](_0x474592['id'])&&_0x48b5b5['length']>0x1)return{..._0x474592,'id':_0x48b5b5[_0x18f51c(0x97)](',')};return _0x474592;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a113_0x15a622=a113_0x51e1;(function(_0x1b9ae2,_0x3b47fd){const _0x2b90ba=a113_0x51e1,_0x3bbeab=_0x1b9ae2();while(!![]){try{const _0x3d3c0f=parseInt(_0x2b90ba(0x1cf))/0x1*(parseInt(_0x2b90ba(0x1cd))/0x2)+parseInt(_0x2b90ba(0x1d2))/0x3+parseInt(_0x2b90ba(0x1d0))/0x4*(-parseInt(_0x2b90ba(0x1d4))/0x5)+-parseInt(_0x2b90ba(0x1ca))/0x6+-parseInt(_0x2b90ba(0x1c9))/0x7+parseInt(_0x2b90ba(0x1cc))/0x8*(parseInt(_0x2b90ba(0x1cb))/0x9)+-parseInt(_0x2b90ba(0x1d3))/0xa*(-parseInt(_0x2b90ba(0x1ce))/0xb);if(_0x3d3c0f===_0x3b47fd)break;else _0x3bbeab['push'](_0x3bbeab['shift']());}catch(_0x7fd46e){_0x3bbeab['push'](_0x3bbeab['shift']());}}}(a113_0x49ac,0x57c49));function a113_0x51e1(_0x9e9fc8,_0x25ac81){_0x9e9fc8=_0x9e9fc8-0x1c9;const _0x49ac85=a113_0x49ac();let _0x51e1df=_0x49ac85[_0x9e9fc8];return _0x51e1df;}function a113_0x49ac(){const _0x3701c2=['6252500AJAIWK','65EhfRUi','2900387qyMKHd','2373036KguTNf','54ZxREGz','738112oHoJUj','4VNjKrT','11rjcDzX','22189GSXMNS','176584WYcCyf','win32','1560090UvGKHa'];a113_0x49ac=function(){return _0x3701c2;};return a113_0x49ac();}export const isWindows=process['platform']===a113_0x15a622(0x1d1);export function resolveNpmBin(_0x22c6f8){return isWindows?_0x22c6f8+'.cmd':_0x22c6f8;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x592d0a,_0x49056b){const _0x39af0d=a114_0x24bf,_0x279389=_0x592d0a();while(!![]){try{const _0x38b393=parseInt(_0x39af0d(0x1fb))/0x1+-parseInt(_0x39af0d(0x203))/0x2+parseInt(_0x39af0d(0x212))/0x3+parseInt(_0x39af0d(0x1fc))/0x4+parseInt(_0x39af0d(0x1f5))/0x5*(-parseInt(_0x39af0d(0x205))/0x6)+parseInt(_0x39af0d(0x1f8))/0x7+-parseInt(_0x39af0d(0x1f9))/0x8;if(_0x38b393===_0x49056b)break;else _0x279389['push'](_0x279389['shift']());}catch(_0x468c2b){_0x279389['push'](_0x279389['shift']());}}}(a114_0x1dd5,0x3d8be));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a114_0x24bf(_0xad1a6d,_0x29ad51){_0xad1a6d=_0xad1a6d-0x1ec;const _0x1dd534=a114_0x1dd5();let _0x24bfde=_0x1dd534[_0xad1a6d];return _0x24bfde;}import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function parseSemver(_0x5b76db){const _0x5dd655=a114_0x24bf,_0x161324=_0x5b76db['trim']()[_0x5dd655(0x1f4)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x161324)return null;return{'major':Number(_0x161324[0x1]),'minor':Number(_0x161324[0x2]),'patch':Number(_0x161324[0x3]),'prerelease':_0x161324[0x4]};}function compareSemver(_0x277fea,_0x793fa0){const _0x5e8f85=a114_0x24bf,_0x905862=parseSemver(_0x277fea),_0xa99846=parseSemver(_0x793fa0);if(!_0x905862||!_0xa99846)throw new Error(_0x5e8f85(0x202));for(const _0x4c2dbd of[_0x5e8f85(0x207),_0x5e8f85(0x1ec),_0x5e8f85(0x201)]){if(_0x905862[_0x4c2dbd]<_0xa99846[_0x4c2dbd])return-0x1;if(_0x905862[_0x4c2dbd]>_0xa99846[_0x4c2dbd])return 0x1;}if(!_0x905862[_0x5e8f85(0x20f)]&&!_0xa99846[_0x5e8f85(0x20f)])return 0x0;if(!_0x905862[_0x5e8f85(0x20f)])return 0x1;if(!_0xa99846['prerelease'])return-0x1;if(_0x905862[_0x5e8f85(0x20f)]===_0xa99846['prerelease'])return 0x0;return _0x905862[_0x5e8f85(0x20f)]<_0xa99846[_0x5e8f85(0x20f)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x5d9b86=a114_0x24bf,_0x4f656b=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x5d9b86(0x20c)]()[_0x5d9b86(0x20e)]();return _0x4f656b==='1'||_0x4f656b===_0x5d9b86(0x206)||_0x4f656b==='yes';}function cacheRoot(){const _0x3562cc=a114_0x24bf;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x3562cc(0x1f0));}export function getUpdateNoticeCachePath(){const _0x48a0e9=a114_0x24bf;return join(cacheRoot(),_0x48a0e9(0x1f2),_0x48a0e9(0x211));}async function readUpdateNoticeCache(){const _0x189298=a114_0x24bf;try{const _0x43bbec=await readFile(getUpdateNoticeCachePath(),_0x189298(0x20d)),_0x47a8fd=JSON[_0x189298(0x209)](_0x43bbec);if(!_0x47a8fd||typeof _0x47a8fd!==_0x189298(0x1ff))return{};return _0x47a8fd;}catch{return{};}}async function writeUpdateNoticeCache(_0x3d1e53){const _0x311d59=a114_0x24bf;try{const _0x3b04c9=getUpdateNoticeCachePath();await mkdir(dirname(_0x3b04c9),{'recursive':!![]}),await writeFile(_0x3b04c9,JSON[_0x311d59(0x208)](_0x3d1e53,null,0x2)+'\x0a',_0x311d59(0x20d));}catch{}}function isFreshCheck(_0x21d1da,_0xfbf586){const _0x363337=a114_0x24bf;return typeof _0x21d1da['checkedAt']==='number'&&_0xfbf586-_0x21d1da[_0x363337(0x1f7)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x32fbfd,_0x16fbfa,_0x2d0fec){const _0x17547c=a114_0x24bf;return _0x32fbfd[_0x17547c(0x213)]===_0x16fbfa&&typeof _0x32fbfd[_0x17547c(0x20a)]===_0x17547c(0x1fe)&&_0x2d0fec-_0x32fbfd[_0x17547c(0x20a)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x86051c=0x5dc){const _0xc1a81a=a114_0x24bf;try{const _0x12cac4=NPM_REGISTRY_BASE_URL+_0xc1a81a(0x1fa)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0xc1a81a(0x1f1),_0x4154ed=await fetch(_0x12cac4,{'signal':AbortSignal['timeout'](_0x86051c)});if(!_0x4154ed['ok'])return null;const _0x536d2d=await _0x4154ed['json']();if(!_0x536d2d||typeof _0x536d2d!=='object')return null;return Object[_0xc1a81a(0x200)](Object[_0xc1a81a(0x1f3)](_0x536d2d)[_0xc1a81a(0x1ed)](([,_0x5453c3])=>typeof _0x5453c3===_0xc1a81a(0x20b)&&_0x5453c3[_0xc1a81a(0x20c)]())[_0xc1a81a(0x1f6)](([_0x5c9382,_0x100b68])=>[_0x5c9382,String(_0x100b68)[_0xc1a81a(0x20c)]()]));}catch{return null;}}function a114_0x1dd5(){const _0x430a0e=['lastNotifiedAt','string','trim','utf8','toLowerCase','prerelease','latest','update-check.json','814548COXqdJ','lastNotifiedVersion','minor','filter','\x20available,\x20current\x20','\x20update','.cache','/dist-tags','lovrabet-cli','entries','match','5iAAxil','map','checkedAt','2346967FTfPtD','6280424AwxUDA','/-/package/','415859aLzbjZ','840508tvVTRG','https://www.npmjs.com/package/','number','object','fromEntries','patch','Invalid\x20semver','367758MKTtcL','/v/','70542cQepbn','true','major','stringify','parse'];a114_0x1dd5=function(){return _0x430a0e;};return a114_0x1dd5();}export function buildNpmVersionUrl(_0x5c84b4){const _0x91b60c=a114_0x24bf;return _0x91b60c(0x1fd)+LOVRABET_NPM_PACKAGE_NAME+_0x91b60c(0x204)+_0x5c84b4;}export async function resolveLatestUpdateNotice(){const _0x22c4a6=a114_0x24bf;if(isUpdateNoticeDisabled())return null;try{const _0x4bd2d4=Date['now'](),_0x348cce=getCliVersion(),_0x214b61=await readUpdateNoticeCache();let _0x445593=isFreshCheck(_0x214b61,_0x4bd2d4)?_0x214b61['latest']?.[_0x22c4a6(0x20c)]():undefined;if(!_0x445593&&!isFreshCheck(_0x214b61,_0x4bd2d4)){const _0x2a1965=await fetchNpmDistTags();_0x445593=_0x2a1965?.[_0x22c4a6(0x210)]?.[_0x22c4a6(0x20c)](),await writeUpdateNoticeCache({..._0x214b61,'checkedAt':_0x4bd2d4,'latest':_0x445593,'failed':!_0x445593});}if(!_0x445593||compareSemver(_0x348cce,_0x445593)>=0x0)return null;if(isRecentlyNotified(_0x214b61,_0x445593,_0x4bd2d4))return null;const _0x5d6002=CLI_BIN_NAME+_0x22c4a6(0x1ef);return await writeUpdateNoticeCache({..._0x214b61,'checkedAt':isFreshCheck(_0x214b61,_0x4bd2d4)?_0x214b61['checkedAt']:_0x4bd2d4,'latest':_0x445593,'failed':![],'lastNotifiedVersion':_0x445593,'lastNotifiedAt':_0x4bd2d4}),{'command':_0x5d6002,'current':_0x348cce,'latest':_0x445593,'url':buildNpmVersionUrl(_0x445593),'message':CLI_BIN_NAME+'\x20'+_0x445593+_0x22c4a6(0x1ee)+_0x348cce+',\x20run:\x20'+_0x5d6002};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x513172,_0x2f88c){const _0x3e0365=a115_0x19c5,_0x27bd0f=_0x513172();while(!![]){try{const _0x3f5a29=-parseInt(_0x3e0365(0x82))/0x1*(-parseInt(_0x3e0365(0x86))/0x2)+-parseInt(_0x3e0365(0x84))/0x3*(-parseInt(_0x3e0365(0x80))/0x4)+-parseInt(_0x3e0365(0x81))/0x5*(-parseInt(_0x3e0365(0x8a))/0x6)+-parseInt(_0x3e0365(0x89))/0x7*(-parseInt(_0x3e0365(0x8c))/0x8)+-parseInt(_0x3e0365(0x87))/0x9*(parseInt(_0x3e0365(0x88))/0xa)+-parseInt(_0x3e0365(0x8b))/0xb*(parseInt(_0x3e0365(0x83))/0xc)+parseInt(_0x3e0365(0x7f))/0xd;if(_0x3f5a29===_0x2f88c)break;else _0x27bd0f['push'](_0x27bd0f['shift']());}catch(_0x18a753){_0x27bd0f['push'](_0x27bd0f['shift']());}}}(a115_0x4c23,0x7dbe9));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a115_0x19c5(_0x1f8405,_0x34b162){_0x1f8405=_0x1f8405-0x7f;const _0x4c23fe=a115_0x4c23();let _0x19c574=_0x4c23fe[_0x1f8405];return _0x19c574;}export function getCliVersion(){return VERSION;}function a115_0x4c23(){const _0x5b595d=['312DyTyep','222366gDgQdB','slice','2UiOavG','4338Ozjszx','19430eKngUU','3081512bqmLgj','6LBoIFs','194161QzZxHL','16nPdxdK','10499593PIQExq','8zVtVvn','239275BAvYkU','26309NnjqiG'];a115_0x4c23=function(){return _0x5b595d;};return a115_0x4c23();}export function getCliGitCommit(){const _0x12c994=String(GIT_COMMIT);return _0x12c994&&_0x12c994!=='unknown'?_0x12c994:'';}export function getCliVersionDisplay(){const _0xa5c728=a115_0x19c5,_0x96ac78=getCliGitCommit(),_0x13706e=BUILD_TIME[_0xa5c728(0x85)](0x0,0xa);if(!_0x96ac78||!_0x13706e)return VERSION;return VERSION+'\x20('+_0x96ac78+',\x20'+_0x13706e+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a116_0x5a03(){var _0x1acd82=['126BFTfoJ','10CssKzH','3457413nLNrEy','9546ccmHFI','6773vzEmzB','287jpaSsU','11060ZhfkFt','582516EMYnKy','10rNnmoP','121FDncEV','75720WNrlmL','129083iKFqKi','584PeQXQN','116455vuAkpQ'];a116_0x5a03=function(){return _0x1acd82;};return a116_0x5a03();}(function(_0x4ae26c,_0x98aec){var _0x49d930=a116_0x2bd2,_0x490732=_0x4ae26c();while(!![]){try{var _0x59255a=parseInt(_0x49d930(0x1a4))/0x1*(parseInt(_0x49d930(0x1a1))/0x2)+-parseInt(_0x49d930(0x19c))/0x3*(-parseInt(_0x49d930(0x1a5))/0x4)+-parseInt(_0x49d930(0x1a6))/0x5*(parseInt(_0x49d930(0x1a7))/0x6)+parseInt(_0x49d930(0x19e))/0x7*(parseInt(_0x49d930(0x1a3))/0x8)+-parseInt(_0x49d930(0x19b))/0x9*(-parseInt(_0x49d930(0x1a8))/0xa)+parseInt(_0x49d930(0x1a2))/0xb*(-parseInt(_0x49d930(0x1a0))/0xc)+parseInt(_0x49d930(0x19d))/0xd*(-parseInt(_0x49d930(0x19f))/0xe);if(_0x59255a===_0x98aec)break;else _0x490732['push'](_0x490732['shift']());}catch(_0x1babaa){_0x490732['push'](_0x490732['shift']());}}}(a116_0x5a03,0x6d42f));function a116_0x2bd2(_0x16450d,_0x1c0763){_0x16450d=_0x16450d-0x19b;var _0x5a0376=a116_0x5a03();var _0x2bd21a=_0x5a0376[_0x16450d];return _0x2bd21a;}export function writeCliSideChannelLine(_0x227afc){process['stderr']['write'](_0x227afc+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/lovrabet-cli",
|
|
3
|
-
"version": "2.1.9-beta.
|
|
3
|
+
"version": "2.1.9-beta.3",
|
|
4
|
+
"description": "Runtime CLI for Lovrabet apps, datasets, SQL, BFF, skills, and AI agent workflows.",
|
|
4
5
|
"license": "Apache-2.0",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"lovrabet",
|
|
8
|
+
"cli",
|
|
9
|
+
"runtime",
|
|
10
|
+
"ai-agent",
|
|
11
|
+
"agent-tools",
|
|
12
|
+
"dataset",
|
|
13
|
+
"bff",
|
|
14
|
+
"sql",
|
|
15
|
+
"business-automation"
|
|
16
|
+
],
|
|
17
|
+
"homepage": "https://open.lovrabet.com/",
|
|
5
18
|
"repository": {
|
|
6
19
|
"type": "git",
|
|
7
20
|
"url": "git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git"
|
|
@@ -45,7 +58,10 @@
|
|
|
45
58
|
"test:coverage": "vitest run --coverage"
|
|
46
59
|
},
|
|
47
60
|
"files": [
|
|
48
|
-
"lib"
|
|
61
|
+
"lib",
|
|
62
|
+
"README.md",
|
|
63
|
+
"LICENSE",
|
|
64
|
+
"NOTICE"
|
|
49
65
|
],
|
|
50
66
|
"dependencies": {
|
|
51
67
|
"@lovrabet/cli-framework": "1.0.5",
|