@lovrabet/lovrabet-cli 2.1.14 → 2.1.15
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/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/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/lib/commands/app-config/shared.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a104_0x15bc85=a104_0x6557;(function(_0x157d79,_0xc39159){const _0x42d9d0=a104_0x6557,_0x5dd6e8=_0x157d79();while(!![]){try{const _0x382ef1=-parseInt(_0x42d9d0(0xd0))/0x1+parseInt(_0x42d9d0(0xd2))/0x2*(-parseInt(_0x42d9d0(0xca))/0x3)+-parseInt(_0x42d9d0(0xd1))/0x4*(-parseInt(_0x42d9d0(0xb9))/0x5)+-parseInt(_0x42d9d0(0xc0))/0x6*(-parseInt(_0x42d9d0(0xd3))/0x7)+-parseInt(_0x42d9d0(0xcb))/0x8*(-parseInt(_0x42d9d0(0xbc))/0x9)+parseInt(_0x42d9d0(0xc3))/0xa+-parseInt(_0x42d9d0(0xba))/0xb*(parseInt(_0x42d9d0(0xc5))/0xc);if(_0x382ef1===_0xc39159)break;else _0x5dd6e8['push'](_0x5dd6e8['shift']());}catch(_0x68828f){_0x5dd6e8['push'](_0x5dd6e8['shift']());}}}(a104_0x2bdd,0x9ca96));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(_0x3ded42={}){const _0x2b8dad=a104_0x6557,_0x22eac7=_0x3ded42[_0x2b8dad(0xbd)]??homedir(),_0x25b113=resolve(_0x22eac7,PRODUCT_CONFIG[_0x2b8dad(0xce)],_0x2b8dad(0xbe)),_0x379f25=trimmedEnv('SKILL_ROOT'),_0x1b93ff=trimmedEnv(_0x2b8dad(0xcc)),_0x5768c7=resolve(_0x22eac7,'.workbuddy'),_0x21ecec=_0x3ded42[_0x2b8dad(0xb8)]??(existsSync(_0x5768c7)?resolve(_0x5768c7,_0x2b8dad(0xbf)):undefined);return{'homeDir':_0x22eac7,'cacheRoot':_0x25b113,'managedRoot':resolve(_0x22eac7,PRODUCT_CONFIG[_0x2b8dad(0xce)]),'agentsSkillsDir':_0x3ded42['agentsSkillsDir']??_0x379f25??resolve(_0x22eac7,'.agents',_0x2b8dad(0xbf)),'claudeSkillsDir':_0x3ded42[_0x2b8dad(0xc8)]??_0x1b93ff??resolve(_0x22eac7,'.claude',_0x2b8dad(0xbf)),'workbuddySkillsDir':_0x21ecec};}export function runtimeAgentSkillRoots(_0x1bca20){const _0x2c81d4=a104_0x6557;return[_0x1bca20[_0x2c81d4(0xc9)],_0x1bca20[_0x2c81d4(0xc8)],_0x1bca20['workbuddySkillsDir']][_0x2c81d4(0xc4)](_0x547efe=>Boolean(_0x547efe));}function a104_0x2bdd(){const _0x48c06f=['homeDir','cache','skills','356334lJVGPZ','trim','Unsafe\x20','11278370asjkRx','filter','12auOeol','path\x20segment','includes','claudeSkillsDir','agentsSkillsDir','3AZOREL','152YPxWNt','CLAUDE_SKILL_ROOT','skillCode','homeDirName','cacheRoot','471281jKppfY','191136LGPhOw','1029122WheVzN','21TeorgY','workbuddySkillsDir','20jeLSww','6810991lvOlkb','appCode','355059mmohRT'];a104_0x2bdd=function(){return _0x48c06f;};return a104_0x2bdd();}export function getRuntimeSkillCacheRoot(_0x3e17f6,_0x474347,_0x44e112={}){const _0x693d3e=a104_0x6557,_0x3ec696=resolveSkillSyncPaths(_0x44e112);return resolve(_0x3ec696[_0x693d3e(0xcf)],_0x3e17f6,fingerprintAccessKey(_0x474347),_0x693d3e(0xbf));}export function getRuntimeSkillDir(_0x53fc59,_0x418eb2,_0x2b1ed6,_0x4136b4,_0x261d96,_0x400e5b={}){const _0x3b03b2=a104_0x6557;return resolve(getRuntimeSkillCacheRoot(_0x53fc59,_0x418eb2,_0x400e5b),safePathSegment(_0x2b1ed6,_0x3b03b2(0xbb)),_0x4136b4,safePathSegment(_0x261d96,_0x3b03b2(0xcd)));}export function safePathSegment(_0x62b327,_0x431c67=a104_0x15bc85(0xc6)){const _0x296c71=a104_0x15bc85;if(!_0x62b327||_0x62b327[_0x296c71(0xc7)]('/')||_0x62b327['includes']('\x5c')||_0x62b327[_0x296c71(0xc7)]('..'))throw CliErrors['validation'](_0x296c71(0xc2)+_0x431c67+'\x20for\x20local\x20path:\x20'+_0x62b327);return _0x62b327;}function a104_0x6557(_0x339a95,_0x16d044){_0x339a95=_0x339a95-0xb8;const _0x2bddaa=a104_0x2bdd();let _0x65576f=_0x2bddaa[_0x339a95];return _0x65576f;}function trimmedEnv(_0x48b75f){const _0x4ac464=a104_0x15bc85,_0x9619da=productEnv(_0x48b75f)?.[_0x4ac464(0xc1)]();return _0x9619da?_0x9619da:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x2a6728,_0x18ae31){const _0xdcd6f=a106_0x10c2,_0x27c57c=_0x2a6728();while(!![]){try{const _0x127ccd=-parseInt(_0xdcd6f(0x107))/0x1+parseInt(_0xdcd6f(0x108))/0x2+parseInt(_0xdcd6f(0x13b))/0x3*(-parseInt(_0xdcd6f(0x109))/0x4)+-parseInt(_0xdcd6f(0x114))/0x5+parseInt(_0xdcd6f(0x137))/0x6*(parseInt(_0xdcd6f(0x10d))/0x7)+-parseInt(_0xdcd6f(0x10e))/0x8*(parseInt(_0xdcd6f(0x125))/0x9)+parseInt(_0xdcd6f(0x121))/0xa;if(_0x127ccd===_0x18ae31)break;else _0x27c57c['push'](_0x27c57c['shift']());}catch(_0x1581f8){_0x27c57c['push'](_0x27c57c['shift']());}}}(a106_0x112e,0x8c987));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a106_0x17c728}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(_0x11b303,_0x9ac694,_0x50543a={}){const _0x16272e=a106_0x10c2,_0x99c92b=resolvePushDirectoryRoot(_0x11b303),_0xe008b7=readPushMetadataIfPresent(resolve(_0x99c92b,METADATA_FILE),{'ignoreInvalidMetadata':_0x50543a[_0x16272e(0x136)]});if(_0xe008b7?.['appCode']&&_0xe008b7[_0x16272e(0x112)]!==_0x9ac694&&!_0x50543a[_0x16272e(0x12e)]&&!_0x50543a[_0x16272e(0x11a)])throw CliErrors[_0x16272e(0x105)](_0x16272e(0x117)+_0xe008b7[_0x16272e(0x112)]+_0x16272e(0x11e)+_0x9ac694+'\x22.');const _0x44986b=resolvePushSkillCode(_0x99c92b,_0x9ac694,_0xe008b7,_0x50543a);if(!_0x44986b)throw CliErrors[_0x16272e(0x105)](_0x16272e(0x10f)+SKILL_FILE+',\x20'+METADATA_FILE+_0x16272e(0x143));return{'dir':_0x99c92b,'skillCode':_0x44986b,'metadata':_0xe008b7};}export function readPushDirectory(_0x8c8afc,_0x132370,_0x4da106={}){const _0x19a349=a106_0x10c2,_0x4e3441=resolvePushDirectoryIdentity(_0x8c8afc,_0x132370,_0x4da106),_0x288550=_0x4e3441[_0x19a349(0x102)],_0x29695c=resolve(_0x288550,SKILL_FILE);if(!existsSync(_0x29695c)||!lstatSync(_0x29695c)['isFile']())throw CliErrors[_0x19a349(0x105)](_0x19a349(0x11d)+SKILL_FILE+':\x20'+_0x29695c);const _0x320858=_0x4e3441[_0x19a349(0x133)],_0x5e8dd2=_0x4da106['targetScope']??_0x19a349(0x120);if(!_0x4da106[_0x19a349(0x104)]&&_0x320858?.[_0x19a349(0x12f)]===_0x19a349(0x10c))throw CliErrors[_0x19a349(0x105)](_0x19a349(0x12c)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x320858['scope']+'\x22.');if(!_0x4da106[_0x19a349(0x104)]&&_0x5e8dd2===_0x19a349(0x120)&&_0x320858?.[_0x19a349(0x12f)]&&_0x320858[_0x19a349(0x12f)]!=='personal')throw CliErrors[_0x19a349(0x105)](_0x19a349(0x128)+METADATA_FILE+_0x19a349(0x142)+_0x320858[_0x19a349(0x12f)]+'\x22.',_0x19a349(0x118)+_0x288550+_0x19a349(0x12d));const _0x3105fc=scanSkillDirectory(_0x288550),_0x4e1f07=buildSkillPackage(_0x3105fc),_0x1df9cd=readFileSync(_0x29695c,_0x19a349(0x10a)),_0x289fd0=_0x4e3441[_0x19a349(0x11b)],_0x3f077e=_0x4da106['ignoreMetadataForPayload']?undefined:_0x320858,_0x5232f0=readSkillDisplayName(_0x1df9cd);return{'skillCode':_0x289fd0,'metadata':_0x320858,'frontmatterDisplayName':_0x5232f0,'input':{'skillCode':_0x289fd0,'skillName':_0x5232f0??_0x3f077e?.[_0x19a349(0x13a)],'description':_0x3f077e?.[_0x19a349(0x13f)],'content':_0x1df9cd,'files':_0x4e1f07[_0x19a349(0x123)],'packageBase64':_0x4e1f07[_0x19a349(0x110)],'tags':_0x3f077e?.[_0x19a349(0x119)],'version':_0x3f077e?.[_0x19a349(0x131)],'sourceSessionId':_0x3f077e?.[_0x19a349(0x116)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x142892,_0x3788b5,_0x205673,_0x660248={}){const _0x26d928=a106_0x10c2,_0x3746fb=resolvePushDirectoryRoot(_0x142892),_0x4b9438=readPushMetadataIfPresent(resolve(_0x3746fb,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x2a6548=requireRemoteScope(_0x3788b5),_0xf65c9e=readLocalSkillContent(_0x3746fb),_0x1dca26={..._0x3788b5,'appCode':_0x3788b5[_0x26d928(0x112)]??_0x205673,'skillName':_0x3788b5['skillName']??_0x4b9438?.[_0x26d928(0x13a)],'description':_0x3788b5[_0x26d928(0x13f)]??_0x4b9438?.['description'],'tags':Array['isArray'](_0x3788b5[_0x26d928(0x119)])?_0x3788b5[_0x26d928(0x119)]:_0x4b9438?.[_0x26d928(0x119)],'sourceSessionId':_0x3788b5[_0x26d928(0x116)]??_0x4b9438?.[_0x26d928(0x116)],'content':_0x3788b5[_0x26d928(0x11c)]??_0xf65c9e},_0x1a9b61=buildMetadata(_0x1dca26,_0x2a6548,_0x205673,contentHash(_0xf65c9e),_0x660248['refreshedAt']);writeJsonAtomic(resolve(_0x3746fb,METADATA_FILE),_0x1a9b61);}export function recordPushedRuntimeSkill(_0x326883,_0x3a1148,_0x4053f8,_0x376bd7={}){const _0x690112=a106_0x10c2,_0x1326db=resolvePushDirectoryRoot(_0x326883),_0x38cbfa=scanSkillDirectory(_0x1326db),_0x66c18=_0x38cbfa[_0x690112(0x13d)](_0x1fa339=>_0x1fa339['path']===SKILL_FILE),_0x10f47c=_0x66c18?fileText(_0x66c18):'',_0x612fcc=tryNormalizePackageManifest(_0x3a1148[_0x690112(0x11f)]),_0x5beddf={..._0x3a1148,'content':_0x3a1148[_0x690112(0x11c)]??_0x10f47c,'files':_0x612fcc},_0x5660da=_0x612fcc?normalizeLocalFiles(_0x38cbfa)['filter'](_0x12949e=>_0x612fcc['files'][_0x690112(0x12a)](_0x3dcc93=>_0x3dcc93[_0x690112(0x127)]===_0x12949e[_0x690112(0x127)])):undefined,_0x5c10a0=buildMetadata(_0x5beddf,_0x376bd7[_0x690112(0x12f)]??_0x690112(0x120),_0x4053f8,contentHash(_0x5beddf['content']??''),_0x376bd7[_0x690112(0x126)],_0x5660da);writeJsonAtomic(resolve(_0x1326db,METADATA_FILE),_0x5c10a0);}function a106_0x112e(){const _0xe15677=['packageBase64','unknown','appCode','ignoreMetadataSkillCode','2723850cEfhtB','\x20name\x20for\x20SkillHub\x20slug\x20generation.','sourceSessionId','Skill\x20metadata\x20appCode\x20\x22','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','tags','ignoreMetadataAppCodeMismatch','skillCode','content','Missing\x20','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','files','personal','24219030SHsycL','toLowerCase','manifest','Skill\x20directory\x20not\x20found:\x20','15732oNWbpK','pushedAt','path','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','number','some','trim','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','allowAppCodeRetarget','scope','replace','version','object','metadata','(unknown)','isFile','ignoreInvalidMetadata','2090526yBtCcd','length','Remote\x20Skill\x20','skillName','14322MzRFqH','isArray','find','\x20has\x20unsupported\x20scope\x20\x22','description','match','slice','\x20has\x20scope=\x22',',\x20or\x20directory\x20name.','dir','string','ignoreMetadataScope','validation','isDirectory','260147pixpaq','153914IqIJaV','948gdpOBC','utf8','company','builtin','14pbZiQy','3128KxpWFZ','Unable\x20to\x20resolve\x20skillCode\x20from\x20'];a106_0x112e=function(){return _0xe15677;};return a106_0x112e();}export function deriveSkillCodeFromDirectory(_0x27d8f5,_0x42041b){const _0x30bc5d=a106_0x10c2,_0x17b79a=basename(resolve(_0x27d8f5)),_0x4927f6=_0x42041b+'--';return _0x17b79a['startsWith'](_0x4927f6)?_0x17b79a[_0x30bc5d(0x141)](_0x4927f6[_0x30bc5d(0x138)]):_0x17b79a;}function resolvePushSkillCode(_0x39ac04,_0x11d8c9,_0x2da9a9,_0x41c048){const _0x436eea=a106_0x10c2,_0x1ce800=deriveSkillCodeFromSkillFile(_0x39ac04)||deriveSkillCodeFromDirectory(_0x39ac04,_0x11d8c9);if(_0x41c048[_0x436eea(0x113)])return _0x1ce800;return _0x2da9a9?.[_0x436eea(0x11b)]?.[_0x436eea(0x12b)]()||_0x1ce800;}function deriveSkillCodeFromSkillFile(_0x246f71){const _0x4fad95=a106_0x10c2,_0x401be2=resolve(_0x246f71,SKILL_FILE);if(!existsSync(_0x401be2)||!lstatSync(_0x401be2)[_0x4fad95(0x135)]())return undefined;const _0xcc7699=readFileSync(_0x401be2,_0x4fad95(0x10a)),_0x597764=_0xcc7699['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x597764)return undefined;const _0x359bcf=parseFrontmatterObject(_0x597764[0x1]??''),_0x4bf193=scalarToString(_0x359bcf?.['name']);return _0x4bf193?slugifySkillName(_0x4bf193):undefined;}function readSkillDisplayName(_0x51985b){const _0x4d4148=a106_0x10c2,_0x2a477d=_0x51985b[_0x4d4148(0x140)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x2a477d)return undefined;const _0xca8cd3=parseFrontmatterObject(_0x2a477d[0x1]??'');return scalarToString(_0xca8cd3?.['displayName']);}function slugifySkillName(_0x3de4fb){const _0x166ee=a106_0x10c2,_0x13ca07=_0x3de4fb[_0x166ee(0x12b)]()[_0x166ee(0x122)]()[_0x166ee(0x130)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x166ee(0x130)](/^-+/,'')['replace'](/-+$/,'')[_0x166ee(0x130)](/-{2,}/g,'-');if(!_0x13ca07)throw CliErrors[_0x166ee(0x105)]('Invalid\x20'+SKILL_FILE+_0x166ee(0x115));return _0x13ca07;}function parseFrontmatterObject(_0x38bafe){const _0x23783e=a106_0x10c2;try{const _0x201b22=a106_0x17c728(_0x38bafe);return _0x201b22&&typeof _0x201b22===_0x23783e(0x132)&&!Array[_0x23783e(0x13c)](_0x201b22)?_0x201b22:undefined;}catch{return undefined;}}function scalarToString(_0x41be03){const _0x4318fb=a106_0x10c2;if(typeof _0x41be03===_0x4318fb(0x103))return _0x41be03[_0x4318fb(0x12b)]();if(typeof _0x41be03===_0x4318fb(0x129)||typeof _0x41be03==='boolean')return String(_0x41be03);return undefined;}function a106_0x10c2(_0x2180dd,_0x41709a){_0x2180dd=_0x2180dd-0x102;const _0x112e79=a106_0x112e();let _0x10c2b1=_0x112e79[_0x2180dd];return _0x10c2b1;}function resolvePushDirectoryRoot(_0x37e606){const _0x28d7e6=a106_0x10c2,_0x3ed236=resolve(_0x37e606);if(!existsSync(_0x3ed236))throw CliErrors[_0x28d7e6(0x105)](_0x28d7e6(0x124)+_0x37e606);const _0x3e737d=lstatSync(_0x3ed236);if(_0x3e737d['isDirectory']())return _0x3ed236;if(_0x3e737d['isSymbolicLink']()){const _0x3114c1=realpathSync(_0x3ed236);if(lstatSync(_0x3114c1)[_0x28d7e6(0x106)]())return _0x3114c1;}throw CliErrors[_0x28d7e6(0x105)](_0x28d7e6(0x124)+_0x37e606);}function requireRemoteScope(_0x4b6bf1){const _0x40e7d9=a106_0x10c2;if(_0x4b6bf1[_0x40e7d9(0x12f)]===_0x40e7d9(0x120)||_0x4b6bf1[_0x40e7d9(0x12f)]===_0x40e7d9(0x10b)||_0x4b6bf1[_0x40e7d9(0x12f)]===_0x40e7d9(0x10c))return _0x4b6bf1['scope'];throw CliErrors['validation'](_0x40e7d9(0x139)+(_0x4b6bf1['skillCode']||_0x40e7d9(0x134))+_0x40e7d9(0x13e)+(_0x4b6bf1[_0x40e7d9(0x12f)]??_0x40e7d9(0x111))+'\x22.');}function readLocalSkillContent(_0xbc6ae8){const _0x596d40=a106_0x10c2,_0x5c78be=resolve(_0xbc6ae8,SKILL_FILE);return existsSync(_0x5c78be)&&lstatSync(_0x5c78be)[_0x596d40(0x135)]()?readFileSync(_0x5c78be,_0x596d40(0x10a)):'';}function readPushMetadataIfPresent(_0x8174db,_0x43aa5b={}){const _0x551e62=a106_0x10c2;try{return readMetadataIfPresent(_0x8174db);}catch(_0x3815e8){if(_0x43aa5b[_0x551e62(0x136)])return undefined;throw _0x3815e8;}}
|
|
1
|
+
(function(_0x29af9e,_0x56e59a){const _0xc04c60=a105_0x1e64,_0x3f6dbb=_0x29af9e();while(!![]){try{const _0x271a23=parseInt(_0xc04c60(0xb6))/0x1*(-parseInt(_0xc04c60(0xbf))/0x2)+parseInt(_0xc04c60(0xb7))/0x3+parseInt(_0xc04c60(0xcf))/0x4+parseInt(_0xc04c60(0x9a))/0x5+parseInt(_0xc04c60(0xbb))/0x6+-parseInt(_0xc04c60(0xac))/0x7+-parseInt(_0xc04c60(0xb0))/0x8*(parseInt(_0xc04c60(0xc3))/0x9);if(_0x271a23===_0x56e59a)break;else _0x3f6dbb['push'](_0x3f6dbb['shift']());}catch(_0x48bbfa){_0x3f6dbb['push'](_0x3f6dbb['shift']());}}}(a105_0x1b64,0x2c91d));function a105_0x1e64(_0x1d91d7,_0x418dbd){_0x1d91d7=_0x1d91d7-0x9a;const _0x1b6484=a105_0x1b64();let _0x1e6461=_0x1b6484[_0x1d91d7];return _0x1e6461;}import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a105_0xedbacb}from'yaml';import{CliErrors}from'../../errors.js';function a105_0x1b64(){const _0x10129c=['boolean','refreshedAt','dir','Missing\x20','\x20name\x20for\x20SkillHub\x20slug\x20generation.','find','validation','utf8','displayName','personal','ignoreMetadataSkillCode','number','505575GUWtqM','object','ignoreMetadataScope','\x20has\x20scope=\x22','221176pVNYBt','\x20has\x20unsupported\x20scope\x20\x22','tags','replace','sourceSessionId','skillCode','1VHvQpi','178059tiBspQ','match','content','isDirectory','445416rMglpb','files','targetScope','slice','302674YpbAHd','isFile','filter','trim','63wzeuaJ','Skill\x20directory\x20not\x20found:\x20','(unknown)','skillName','length','scope','description','Remote\x20Skill\x20','ignoreMetadataForPayload','toLowerCase',',\x20or\x20directory\x20name.','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','1283612wttiuo','allowAppCodeRetarget','string','company','version','isArray','Skill\x20metadata\x20appCode\x20\x22','ignoreInvalidMetadata','725780inCSWM','Invalid\x20','startsWith','appCode','Unable\x20to\x20resolve\x20skillCode\x20from\x20','isSymbolicLink'];a105_0x1b64=function(){return _0x10129c;};return a105_0x1b64();}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(_0x1c1270,_0x5afa9d,_0x366e49={}){const _0x19ac07=a105_0x1e64,_0x34cb03=resolvePushDirectoryRoot(_0x1c1270),_0x5b3c7f=readPushMetadataIfPresent(resolve(_0x34cb03,METADATA_FILE),{'ignoreInvalidMetadata':_0x366e49[_0x19ac07(0xd6)]});if(_0x5b3c7f?.[_0x19ac07(0x9d)]&&_0x5b3c7f[_0x19ac07(0x9d)]!==_0x5afa9d&&!_0x366e49[_0x19ac07(0xd0)]&&!_0x366e49['ignoreMetadataAppCodeMismatch'])throw CliErrors['validation'](_0x19ac07(0xd5)+_0x5b3c7f[_0x19ac07(0x9d)]+'\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22'+_0x5afa9d+'\x22.');const _0x5b30f2=resolvePushSkillCode(_0x34cb03,_0x5afa9d,_0x5b3c7f,_0x366e49);if(!_0x5b30f2)throw CliErrors[_0x19ac07(0xa6)](_0x19ac07(0x9e)+SKILL_FILE+',\x20'+METADATA_FILE+_0x19ac07(0xcd));return{'dir':_0x34cb03,'skillCode':_0x5b30f2,'metadata':_0x5b3c7f};}export function readPushDirectory(_0x14fd03,_0x57beed,_0x52e077={}){const _0x4e0ba2=a105_0x1e64,_0xa0c750=resolvePushDirectoryIdentity(_0x14fd03,_0x57beed,_0x52e077),_0x311687=_0xa0c750[_0x4e0ba2(0xa2)],_0x16955d=resolve(_0x311687,SKILL_FILE);if(!existsSync(_0x16955d)||!lstatSync(_0x16955d)[_0x4e0ba2(0xc0)]())throw CliErrors[_0x4e0ba2(0xa6)](_0x4e0ba2(0xa3)+SKILL_FILE+':\x20'+_0x16955d);const _0x494658=_0xa0c750['metadata'],_0x2c3f5c=_0x52e077[_0x4e0ba2(0xbd)]??_0x4e0ba2(0xa9);if(!_0x52e077['ignoreMetadataScope']&&_0x494658?.[_0x4e0ba2(0xc8)]==='builtin')throw CliErrors['validation'](_0x4e0ba2(0xce)+METADATA_FILE+_0x4e0ba2(0xaf)+_0x494658['scope']+'\x22.');if(!_0x52e077[_0x4e0ba2(0xae)]&&_0x2c3f5c===_0x4e0ba2(0xa9)&&_0x494658?.[_0x4e0ba2(0xc8)]&&_0x494658[_0x4e0ba2(0xc8)]!==_0x4e0ba2(0xa9))throw CliErrors[_0x4e0ba2(0xa6)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20'+METADATA_FILE+'\x20has\x20scope=\x22'+_0x494658['scope']+'\x22.','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20'+_0x311687+'\x20to\x20submit\x20company\x20Skills\x20for\x20review.');const _0x5768f4=scanSkillDirectory(_0x311687),_0x124ab3=buildSkillPackage(_0x5768f4),_0x41fd04=readFileSync(_0x16955d,'utf8'),_0x4bafa1=_0xa0c750['skillCode'],_0x1842be=_0x52e077[_0x4e0ba2(0xcb)]?undefined:_0x494658,_0x15cb01=readSkillDisplayName(_0x41fd04);return{'skillCode':_0x4bafa1,'metadata':_0x494658,'frontmatterDisplayName':_0x15cb01,'input':{'skillCode':_0x4bafa1,'skillName':_0x15cb01??_0x1842be?.[_0x4e0ba2(0xc6)],'description':_0x1842be?.[_0x4e0ba2(0xc9)],'content':_0x41fd04,'files':_0x124ab3['manifest'],'packageBase64':_0x124ab3['packageBase64'],'tags':_0x1842be?.['tags'],'version':_0x1842be?.[_0x4e0ba2(0xd3)],'sourceSessionId':_0x1842be?.['sourceSessionId']}};}export function refreshPushDirectoryMetadataFromRemote(_0x350acc,_0x229e5c,_0x14ca8f,_0x43cb13={}){const _0x2c224=a105_0x1e64,_0x8b6072=resolvePushDirectoryRoot(_0x350acc),_0x4ad753=readPushMetadataIfPresent(resolve(_0x8b6072,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x5ec67d=requireRemoteScope(_0x229e5c),_0x5d764b=readLocalSkillContent(_0x8b6072),_0x5f4095={..._0x229e5c,'appCode':_0x229e5c[_0x2c224(0x9d)]??_0x14ca8f,'skillName':_0x229e5c[_0x2c224(0xc6)]??_0x4ad753?.['skillName'],'description':_0x229e5c[_0x2c224(0xc9)]??_0x4ad753?.[_0x2c224(0xc9)],'tags':Array['isArray'](_0x229e5c[_0x2c224(0xb2)])?_0x229e5c[_0x2c224(0xb2)]:_0x4ad753?.[_0x2c224(0xb2)],'sourceSessionId':_0x229e5c[_0x2c224(0xb4)]??_0x4ad753?.['sourceSessionId'],'content':_0x229e5c[_0x2c224(0xb9)]??_0x5d764b},_0x54d50e=buildMetadata(_0x5f4095,_0x5ec67d,_0x14ca8f,contentHash(_0x5d764b),_0x43cb13[_0x2c224(0xa1)]);writeJsonAtomic(resolve(_0x8b6072,METADATA_FILE),_0x54d50e);}export function recordPushedRuntimeSkill(_0x4c4d01,_0x47535f,_0x5c9574,_0x5d1371={}){const _0x42b552=a105_0x1e64,_0x2ef23b=resolvePushDirectoryRoot(_0x4c4d01),_0x497b2c=scanSkillDirectory(_0x2ef23b),_0x5ead0f=_0x497b2c[_0x42b552(0xa5)](_0x339d0f=>_0x339d0f['path']===SKILL_FILE),_0x13671d=_0x5ead0f?fileText(_0x5ead0f):'',_0x43f498=tryNormalizePackageManifest(_0x47535f[_0x42b552(0xbc)]),_0x134ca0={..._0x47535f,'content':_0x47535f[_0x42b552(0xb9)]??_0x13671d,'files':_0x43f498},_0x556c86=_0x43f498?normalizeLocalFiles(_0x497b2c)[_0x42b552(0xc1)](_0x101a61=>_0x43f498['files']['some'](_0x5920bd=>_0x5920bd['path']===_0x101a61['path'])):undefined,_0x405f4a=buildMetadata(_0x134ca0,_0x5d1371[_0x42b552(0xc8)]??_0x42b552(0xa9),_0x5c9574,contentHash(_0x134ca0[_0x42b552(0xb9)]??''),_0x5d1371['pushedAt'],_0x556c86);writeJsonAtomic(resolve(_0x2ef23b,METADATA_FILE),_0x405f4a);}export function deriveSkillCodeFromDirectory(_0x4a5efa,_0xc81aab){const _0x1916b5=a105_0x1e64,_0x4009be=basename(resolve(_0x4a5efa)),_0x3deebe=_0xc81aab+'--';return _0x4009be[_0x1916b5(0x9c)](_0x3deebe)?_0x4009be[_0x1916b5(0xbe)](_0x3deebe[_0x1916b5(0xc7)]):_0x4009be;}function resolvePushSkillCode(_0x12d0e8,_0x38f29d,_0x28987f,_0x134cea){const _0x5a81b2=a105_0x1e64,_0x109ae6=deriveSkillCodeFromSkillFile(_0x12d0e8)||deriveSkillCodeFromDirectory(_0x12d0e8,_0x38f29d);if(_0x134cea[_0x5a81b2(0xaa)])return _0x109ae6;return _0x28987f?.[_0x5a81b2(0xb5)]?.['trim']()||_0x109ae6;}function deriveSkillCodeFromSkillFile(_0x4b9ef1){const _0x55e20e=a105_0x1e64,_0x5b792f=resolve(_0x4b9ef1,SKILL_FILE);if(!existsSync(_0x5b792f)||!lstatSync(_0x5b792f)['isFile']())return undefined;const _0x5e1190=readFileSync(_0x5b792f,_0x55e20e(0xa7)),_0x3b9117=_0x5e1190['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x3b9117)return undefined;const _0xbce8cd=parseFrontmatterObject(_0x3b9117[0x1]??''),_0x4de342=scalarToString(_0xbce8cd?.['name']);return _0x4de342?slugifySkillName(_0x4de342):undefined;}function readSkillDisplayName(_0x4569c1){const _0x298967=a105_0x1e64,_0x592ed7=_0x4569c1[_0x298967(0xb8)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x592ed7)return undefined;const _0x15b691=parseFrontmatterObject(_0x592ed7[0x1]??'');return scalarToString(_0x15b691?.[_0x298967(0xa8)]);}function slugifySkillName(_0x5c54d5){const _0xcf64d3=a105_0x1e64,_0x5c7fb3=_0x5c54d5[_0xcf64d3(0xc2)]()[_0xcf64d3(0xcc)]()[_0xcf64d3(0xb3)](/[^\p{L}\p{N}\p{So}]+/gu,'-')['replace'](/^-+/,'')[_0xcf64d3(0xb3)](/-+$/,'')[_0xcf64d3(0xb3)](/-{2,}/g,'-');if(!_0x5c7fb3)throw CliErrors[_0xcf64d3(0xa6)](_0xcf64d3(0x9b)+SKILL_FILE+_0xcf64d3(0xa4));return _0x5c7fb3;}function parseFrontmatterObject(_0x1e0723){const _0x558e6a=a105_0x1e64;try{const _0x592ba1=a105_0xedbacb(_0x1e0723);return _0x592ba1&&typeof _0x592ba1===_0x558e6a(0xad)&&!Array[_0x558e6a(0xd4)](_0x592ba1)?_0x592ba1:undefined;}catch{return undefined;}}function scalarToString(_0x2f4291){const _0x251cad=a105_0x1e64;if(typeof _0x2f4291===_0x251cad(0xd1))return _0x2f4291[_0x251cad(0xc2)]();if(typeof _0x2f4291===_0x251cad(0xab)||typeof _0x2f4291===_0x251cad(0xa0))return String(_0x2f4291);return undefined;}function resolvePushDirectoryRoot(_0xad3f5d){const _0x1aa1be=a105_0x1e64,_0x18af07=resolve(_0xad3f5d);if(!existsSync(_0x18af07))throw CliErrors[_0x1aa1be(0xa6)]('Skill\x20directory\x20not\x20found:\x20'+_0xad3f5d);const _0x517228=lstatSync(_0x18af07);if(_0x517228[_0x1aa1be(0xba)]())return _0x18af07;if(_0x517228[_0x1aa1be(0x9f)]()){const _0xf69b21=realpathSync(_0x18af07);if(lstatSync(_0xf69b21)[_0x1aa1be(0xba)]())return _0xf69b21;}throw CliErrors[_0x1aa1be(0xa6)](_0x1aa1be(0xc4)+_0xad3f5d);}function requireRemoteScope(_0x1695a2){const _0x577b53=a105_0x1e64;if(_0x1695a2[_0x577b53(0xc8)]===_0x577b53(0xa9)||_0x1695a2[_0x577b53(0xc8)]===_0x577b53(0xd2)||_0x1695a2['scope']==='builtin')return _0x1695a2['scope'];throw CliErrors['validation'](_0x577b53(0xca)+(_0x1695a2['skillCode']||_0x577b53(0xc5))+_0x577b53(0xb1)+(_0x1695a2[_0x577b53(0xc8)]??'unknown')+'\x22.');}function readLocalSkillContent(_0x2c9d8b){const _0x5525fa=a105_0x1e64,_0x1cf9ba=resolve(_0x2c9d8b,SKILL_FILE);return existsSync(_0x1cf9ba)&&lstatSync(_0x1cf9ba)[_0x5525fa(0xc0)]()?readFileSync(_0x1cf9ba,'utf8'):'';}function readPushMetadataIfPresent(_0x1458a3,_0x5c878f={}){try{return readMetadataIfPresent(_0x1458a3);}catch(_0x305b6d){if(_0x5c878f['ignoreInvalidMetadata'])return undefined;throw _0x305b6d;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3f3836,_0x23bb50){const _0x57ab99=a106_0x4413,_0x110ba1=_0x3f3836();while(!![]){try{const _0x130979=-parseInt(_0x57ab99(0x191))/0x1+parseInt(_0x57ab99(0x19a))/0x2+parseInt(_0x57ab99(0x198))/0x3+-parseInt(_0x57ab99(0x197))/0x4+-parseInt(_0x57ab99(0x190))/0x5+parseInt(_0x57ab99(0x192))/0x6+parseInt(_0x57ab99(0x195))/0x7;if(_0x130979===_0x23bb50)break;else _0x110ba1['push'](_0x110ba1['shift']());}catch(_0x22da0f){_0x110ba1['push'](_0x110ba1['shift']());}}}(a106_0x325f,0x192b9));function a106_0x4413(_0x479196,_0x507fca){_0x479196=_0x479196-0x18e;const _0x325fa9=a106_0x325f();let _0x441383=_0x325fa9[_0x479196];return _0x441383;}import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x4e2525){const _0x1fa10c=a106_0x4413,_0x28cf87=_0x4e2525&&_0x4e2525[_0x1fa10c(0x18f)]>0x0?_0x4e2525:[_0x1fa10c(0x196),_0x1fa10c(0x19b),_0x1fa10c(0x194)],_0x46e956=[];for(const _0x14939c of _0x28cf87){if(!isRuntimeSkillScope(_0x14939c))throw CliErrors[_0x1fa10c(0x193)]('Unsupported\x20runtime\x20Skill\x20scope:\x20'+_0x14939c);!_0x46e956[_0x1fa10c(0x18e)](_0x14939c)&&_0x46e956[_0x1fa10c(0x199)](_0x14939c);}return _0x46e956;}function a106_0x325f(){const _0x511159=['346044XtvYYW','validation','builtin','2252159CiOXtt','personal','682724asobnC','99465BZPdwy','push','192510QHUATr','company','includes','length','840715uItsFk','66900OXxZgW'];a106_0x325f=function(){return _0x511159;};return a106_0x325f();}export function isRuntimeSkillScope(_0x4a8620){const _0x598589=a106_0x4413;return _0x4a8620===_0x598589(0x196)||_0x4a8620===_0x598589(0x19b)||_0x4a8620===_0x598589(0x194);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a108_0x1b1a(_0x1b3ac2,_0x2b5b5a){_0x1b3ac2=_0x1b3ac2-0x1cb;const _0x2a683b=a108_0x2a68();let _0x1b1a9f=_0x2a683b[_0x1b3ac2];return _0x1b1a9f;}const a108_0x3c597e=a108_0x1b1a;(function(_0x47025d,_0x11d755){const _0x585667=a108_0x1b1a,_0x4a7879=_0x47025d();while(!![]){try{const _0x116264=-parseInt(_0x585667(0x1d7))/0x1+-parseInt(_0x585667(0x1cf))/0x2+-parseInt(_0x585667(0x1de))/0x3+parseInt(_0x585667(0x1ce))/0x4*(parseInt(_0x585667(0x1dd))/0x5)+parseInt(_0x585667(0x1d9))/0x6*(parseInt(_0x585667(0x1d8))/0x7)+-parseInt(_0x585667(0x1df))/0x8+parseInt(_0x585667(0x1d6))/0x9*(parseInt(_0x585667(0x1d4))/0xa);if(_0x116264===_0x11d755)break;else _0x4a7879['push'](_0x4a7879['shift']());}catch(_0x36855e){_0x4a7879['push'](_0x4a7879['shift']());}}}(a108_0x2a68,0x8370b));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a108_0x3c597e(0x1d5));export function createDeterministicZipPackage(_0x2af34f){const _0x5ae9ae=a108_0x3c597e,_0x1ec1b9={};for(const _0x4491c0 of normalizeLocalFiles(_0x2af34f)){_0x1ec1b9[_0x4491c0[_0x5ae9ae(0x1d0)]]=fileContent(_0x4491c0);}return Buffer[_0x5ae9ae(0x1cb)](zipSync(_0x1ec1b9,{'level':0x0,'mtime':ZIP_MTIME}));}function a108_0x2a68(){const _0x1c36a6=['path','map','entries','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','50gBMifZ','1980-01-01T00:00:00.000Z','274581pwmPDT','58154ufhcuX','369663XCSFsm','102xaidyi','code','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','object','10YYpNmL','901542CurEzi','5423384QLExNi','from','sort','validation','1836548sZMYQG','787204jQstDI'];a108_0x2a68=function(){return _0x1c36a6;};return a108_0x2a68();}export function parseZipPackage(_0x2e3569){const _0x5f492a=a108_0x3c597e;if(_0x2e3569['length']<0x16)throw CliErrors['validation'](_0x5f492a(0x1db));let _0x503f95;try{_0x503f95=unzipSync(_0x2e3569,{'filter'(_0x4f05a5){const _0x3e4806=_0x5f492a,_0x54e4fc=normalizeSkillRelativePath(_0x4f05a5['name']);if(_0x54e4fc['endsWith']('/'))throw CliErrors[_0x3e4806(0x1cd)](_0x3e4806(0x1d3)+_0x54e4fc);return!![];}});}catch(_0x36db3e){if(isRuntimeSkillValidationError(_0x36db3e))throw _0x36db3e;throw CliErrors[_0x5f492a(0x1cd)]('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');}return Object[_0x5f492a(0x1d2)](_0x503f95)[_0x5f492a(0x1d1)](([_0xde27d8,_0x20c711])=>({'path':normalizeSkillRelativePath(_0xde27d8),'bytes':Buffer[_0x5f492a(0x1cb)](_0x20c711)}))[_0x5f492a(0x1cc)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x48f914){const _0x2d8410=a108_0x3c597e;return typeof _0x48f914===_0x2d8410(0x1dc)&&_0x48f914!==null&&_0x2d8410(0x1da)in _0x48f914&&_0x48f914[_0x2d8410(0x1da)]==='validation_error';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x465b22,_0x4d0a14){const _0x31adcd=a109_0x1afe,_0x2bfb8d=_0x465b22();while(!![]){try{const _0x5e0e4d=parseInt(_0x31adcd(0xa4))/0x1+parseInt(_0x31adcd(0xa5))/0x2+-parseInt(_0x31adcd(0x97))/0x3*(-parseInt(_0x31adcd(0xac))/0x4)+parseInt(_0x31adcd(0xa6))/0x5+parseInt(_0x31adcd(0xab))/0x6*(parseInt(_0x31adcd(0x92))/0x7)+-parseInt(_0x31adcd(0xb3))/0x8*(-parseInt(_0x31adcd(0x9c))/0x9)+-parseInt(_0x31adcd(0xb0))/0xa;if(_0x5e0e4d===_0x4d0a14)break;else _0x2bfb8d['push'](_0x2bfb8d['shift']());}catch(_0x319084){_0x2bfb8d['push'](_0x2bfb8d['shift']());}}}(a109_0x5a63,0x971db));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(_0xc39bcf){const _0x32cdbf=a109_0x1afe,_0x1c2bed=normalizeLocalFiles(_0xc39bcf);if(!_0x1c2bed['some'](_0x18eebb=>_0x18eebb[_0x32cdbf(0x91)]===SKILL_FILE))throw CliErrors[_0x32cdbf(0x93)]('Missing\x20'+SKILL_FILE+_0x32cdbf(0x9b));const _0x2e0177=localFilesToManifestFiles(_0x1c2bed),_0x1be6b2=createDeterministicZipPackage(_0x1c2bed);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x2e0177),'zipSha256':bufferSha256(_0x1be6b2),'zipSize':_0x1be6b2[_0x32cdbf(0xaa)],'files':_0x2e0177},'packageBytes':_0x1be6b2,'packageBase64':_0x1be6b2[_0x32cdbf(0xa9)](_0x32cdbf(0xa7))};}export function verifyRuntimeSkillPackage(_0x5d779d,_0x51e225){const _0x294e0f=a109_0x1afe,_0x351a4e=normalizePackageManifest(_0x5d779d,{'requireOssPath':![]});if(!_0x351a4e)throw CliErrors[_0x294e0f(0x93)](_0x294e0f(0xa8));return extractAndVerifyPackage(_0x351a4e,_0x51e225);}export function verifyRuntimeSkillBundle(_0x85f32f,_0x1cead8){const _0x1b0bee=a109_0x1afe,_0x3df857=normalizePackageManifest(_0x85f32f,{'requireOssPath':![]});if(!_0x3df857)throw CliErrors[_0x1b0bee(0x93)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x3df857,_0x1cead8);}export function tryNormalizePackageManifest(_0x2e885f){return normalizePackageManifest(_0x2e885f,{'requireOssPath':![]});}export function requirePackageBytes(_0x14b45c,_0x3097d7){const _0xb7090e=a109_0x1afe;if(!_0x3097d7||_0x3097d7['length']===0x0)throw CliErrors[_0xb7090e(0x93)]('Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20'+_0x14b45c);return _0x3097d7;}export function extractDownloadedPackage(_0x388748){const _0x41d786=a109_0x1afe,_0x133e66=parseZipPackage(_0x388748)[_0x41d786(0xb6)](_0x1fab71=>({'path':_0x1fab71['path'],'bytes':_0x1fab71[_0x41d786(0x90)]}));if(!_0x133e66['some'](_0x5778c1=>_0x5778c1[_0x41d786(0x91)]===SKILL_FILE))throw CliErrors[_0x41d786(0x93)](_0x41d786(0x94)+SKILL_FILE+'.');return normalizeLocalFiles(_0x133e66);}export function localFilesToManifestFiles(_0x214c5f){const _0x208529=a109_0x1afe;return normalizeLocalFiles(_0x214c5f)[_0x208529(0xb6)](_0x399519=>({'path':_0x399519['path'],'sha256':fileHash(_0x399519),'size':fileContent(_0x399519)[_0x208529(0xaa)]}));}function a109_0x1afe(_0x48466f,_0xc94ae4){_0x48466f=_0x48466f-0x8b;const _0x5a6310=a109_0x5a63();let _0x1afe02=_0x5a6310[_0x48466f];return _0x1afe02;}function normalizePackageManifest(_0x27b86c,_0x4882e1){const _0x3f95d5=a109_0x1afe;if(!_0x27b86c||typeof _0x27b86c!=='object'||Array[_0x3f95d5(0x96)](_0x27b86c))return undefined;const _0x5be668=_0x27b86c,_0x46e4d9=typeof _0x5be668['ossPath']===_0x3f95d5(0xb5)?_0x5be668[_0x3f95d5(0x95)]['trim']():undefined;if(_0x4882e1[_0x3f95d5(0x99)]&&!_0x46e4d9)return undefined;if(!Array[_0x3f95d5(0x96)](_0x5be668[_0x3f95d5(0xad)])||_0x5be668['files'][_0x3f95d5(0xaa)]===0x0)return undefined;if(!isSha256Hex(_0x5be668['treeSha256']))throw CliErrors[_0x3f95d5(0x93)](_0x3f95d5(0xb1));if(!isSha256Hex(_0x5be668['zipSha256']))throw CliErrors[_0x3f95d5(0x93)](_0x3f95d5(0x8b));if(!Number[_0x3f95d5(0x9d)](_0x5be668[_0x3f95d5(0x8d)])||_0x5be668[_0x3f95d5(0x8d)]<0x0)throw CliErrors['validation'](_0x3f95d5(0x8f));const _0x3d491d=normalizeManifestFiles(_0x5be668['files']);if(!_0x3d491d['some'](_0x50eb1b=>_0x50eb1b[_0x3f95d5(0x91)]===SKILL_FILE))throw CliErrors[_0x3f95d5(0x93)](_0x3f95d5(0xae)+SKILL_FILE+'.');const _0x18fa69=fileTreeHash(_0x3d491d);if(_0x18fa69!==_0x5be668[_0x3f95d5(0x98)][_0x3f95d5(0xa3)]())throw CliErrors[_0x3f95d5(0x93)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number[_0x3f95d5(0x9d)](_0x5be668[_0x3f95d5(0xaf)])?_0x5be668['schemaVersion']:0x2,'ossPath':_0x46e4d9,'treeSha256':_0x18fa69,'zipSha256':_0x5be668['zipSha256'][_0x3f95d5(0xa3)](),'zipSize':_0x5be668[_0x3f95d5(0x8d)],'files':_0x3d491d};}function a109_0x5a63(){const _0xac1b8e=['1000kXIQjZ','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','string','map','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','sha256','zipSize','has','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','bytes','path','1202215rsXcfc','validation','Runtime\x20Skill\x20package\x20is\x20missing\x20','ossPath','isArray','60ZzKiyq','treeSha256','requireOssPath','set','\x20in\x20Skill\x20file\x20package.','34704klVASa','isSafeInteger','Runtime\x20Skill\x20package\x20size\x20mismatch.','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','push','get','size','toLowerCase','558582MUOIgf','2348390yxYlCz','5476860jFKmsB','base64','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','toString','length','12GgYGfs','153464yuEehd','files','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','schemaVersion','38019880gNmthA','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20'];a109_0x5a63=function(){return _0xac1b8e;};return a109_0x5a63();}function extractAndVerifyPackage(_0x46608b,_0x10de11){const _0x497bde=a109_0x1afe,_0x45e21d=normalizePackageManifest(_0x46608b,{'requireOssPath':![]});if(!_0x45e21d)throw CliErrors[_0x497bde(0x93)](_0x497bde(0xa8));if(_0x10de11[_0x497bde(0xaa)]!==_0x45e21d[_0x497bde(0x8d)])throw CliErrors[_0x497bde(0x93)](_0x497bde(0x9e));const _0x553585=bufferSha256(_0x10de11);if(_0x553585!==_0x45e21d['zipSha256'])throw CliErrors[_0x497bde(0x93)]('Runtime\x20Skill\x20package\x20sha256\x20mismatch.');return extractAndVerifyPackageFiles(_0x45e21d,_0x10de11);}function extractAndVerifyPackageFiles(_0x3a0664,_0x5e5874){const _0x5d2835=a109_0x1afe,_0x5da2be=parseZipPackage(_0x5e5874);if(_0x5da2be['length']!==_0x3a0664['files'][_0x5d2835(0xaa)])throw CliErrors[_0x5d2835(0x93)](_0x5d2835(0x9f));const _0x2f73dc=new Map();for(const _0x56211a of _0x5da2be){if(_0x2f73dc[_0x5d2835(0x8e)](_0x56211a[_0x5d2835(0x91)]))throw CliErrors[_0x5d2835(0x93)]('Duplicate\x20Skill\x20package\x20entry:\x20'+_0x56211a['path']);_0x2f73dc[_0x5d2835(0x9a)](_0x56211a[_0x5d2835(0x91)],_0x56211a);}const _0x2b94f1=[];for(const _0x31ee49 of _0x3a0664[_0x5d2835(0xad)]){const _0x478419=_0x2f73dc[_0x5d2835(0xa1)](_0x31ee49[_0x5d2835(0x91)]);if(!_0x478419)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20'+_0x31ee49['path']);if(_0x478419[_0x5d2835(0x90)]['length']!==_0x31ee49[_0x5d2835(0xa2)])throw CliErrors['validation'](_0x5d2835(0xb4)+_0x31ee49[_0x5d2835(0x91)]);const _0x2e7d52=bufferSha256(_0x478419[_0x5d2835(0x90)]);if(_0x2e7d52!==_0x31ee49[_0x5d2835(0x8c)])throw CliErrors['validation'](_0x5d2835(0xb2)+_0x31ee49[_0x5d2835(0x91)]);_0x2b94f1[_0x5d2835(0xa0)]({'path':_0x31ee49['path'],'bytes':_0x478419[_0x5d2835(0x90)]});}return normalizeLocalFiles(_0x2b94f1);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a110_0xfbcb(_0x761d86,_0x41d1ee){_0x761d86=_0x761d86-0x1a4;var _0x27b655=a110_0x27b6();var _0xfbcbac=_0x27b655[_0x761d86];return _0xfbcbac;}(function(_0x34e511,_0x27f480){var _0x579be0=a110_0xfbcb,_0x109e60=_0x34e511();while(!![]){try{var _0x598779=-parseInt(_0x579be0(0x1a5))/0x1*(parseInt(_0x579be0(0x1a4))/0x2)+parseInt(_0x579be0(0x1a6))/0x3+-parseInt(_0x579be0(0x1ab))/0x4+-parseInt(_0x579be0(0x1a9))/0x5+parseInt(_0x579be0(0x1a8))/0x6+parseInt(_0x579be0(0x1ac))/0x7*(parseInt(_0x579be0(0x1a7))/0x8)+parseInt(_0x579be0(0x1aa))/0x9;if(_0x598779===_0x27f480)break;else _0x109e60['push'](_0x109e60['shift']());}catch(_0x42eb2c){_0x109e60['push'](_0x109e60['shift']());}}}(a110_0x27b6,0x76b52));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';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';function a110_0x27b6(){var _0x18a59f=['5283504jEboJH','1088765PCsetO','3163491nyduJy','2973732XYKwUE','7BLfgXr','4BEqzNx','458974ObiaRT','2474301WsqRxM','2468080keBovr'];a110_0x27b6=function(){return _0x18a59f;};return a110_0x27b6();}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(_0x43047e,_0x52d98e){const _0x3f266e=a111_0x79ce,_0x58d1ed=_0x43047e();while(!![]){try{const _0x5e348a=parseInt(_0x3f266e(0x1e2))/0x1+-parseInt(_0x3f266e(0x1e7))/0x2*(-parseInt(_0x3f266e(0x1e4))/0x3)+parseInt(_0x3f266e(0x1e9))/0x4+parseInt(_0x3f266e(0x1e5))/0x5+-parseInt(_0x3f266e(0x1e8))/0x6*(-parseInt(_0x3f266e(0x1e0))/0x7)+-parseInt(_0x3f266e(0x1e1))/0x8*(-parseInt(_0x3f266e(0x1e6))/0x9)+-parseInt(_0x3f266e(0x1e3))/0xa;if(_0x5e348a===_0x52d98e)break;else _0x58d1ed['push'](_0x58d1ed['shift']());}catch(_0x14f268){_0x58d1ed['push'](_0x58d1ed['shift']());}}}(a111_0x8285,0x5d427));function a111_0x79ce(_0x7f156b,_0x2c9a23){_0x7f156b=_0x7f156b-0x1e0;const _0x828598=a111_0x8285();let _0x79ce2a=_0x828598[_0x7f156b];return _0x79ce2a;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a111_0x8285(){const _0x1a6393=['239435nsuQdF','16888fixnPu','261074ZnhdLN','22678080VYlIyx','115923hIzKaP','3116180PyNkTg','2502mXlYmU','26llxkpe','114fUNPEV','105612MgTfMq'];a111_0x8285=function(){return _0x1a6393;};return a111_0x8285();}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a112_0x33d311=a112_0x4f60;(function(_0x20822f,_0x41dd74){const _0x381b37=a112_0x4f60,_0x467487=_0x20822f();while(!![]){try{const _0x552027=-parseInt(_0x381b37(0x11f))/0x1*(parseInt(_0x381b37(0x10a))/0x2)+parseInt(_0x381b37(0x119))/0x3*(-parseInt(_0x381b37(0x113))/0x4)+parseInt(_0x381b37(0x105))/0x5*(parseInt(_0x381b37(0x109))/0x6)+parseInt(_0x381b37(0x124))/0x7+parseInt(_0x381b37(0x129))/0x8*(parseInt(_0x381b37(0x110))/0x9)+parseInt(_0x381b37(0x12c))/0xa*(-parseInt(_0x381b37(0x12a))/0xb)+parseInt(_0x381b37(0x12d))/0xc;if(_0x552027===_0x41dd74)break;else _0x467487['push'](_0x467487['shift']());}catch(_0xdee75d){_0x467487['push'](_0x467487['shift']());}}}(a112_0xfd85,0x77850));import a112_0x432030 from'winston';function a112_0xfd85(){const _0x1b93ca=['trim','setLogPath','stringify','success','existsSync','Failed:\x20','transports','printf','duration','join','Failed\x20to\x20read\x20logs:','Failed\x20to\x20clear\x20logs:','logTask','initWinstonLogger','mkdirSync','50nzYYgz','parse','readFileSync','getWinstonInstance','240186lYhRAg','484998KTVWgX','File','combine','readLogs','Completed:\x20','writeFileSync','36QHDLaC','timestamp','toISOString','617740ryhBoz','blue','clearLogs','format','logFilePath','now','3FILsHZ','log','Starting:\x20','info','error','utf8','4JQUSyM','warn','createLogger','winstonLogger','yellow','3572513WDrkVi','message','rawCommand','addColors','details','1133464IRQGdy','50006ESUSIx','clear','1060AQENPw','7421496IfycFv','level','command','green','map','logFileName','filter','errors'];a112_0xfd85=function(){return _0x1b93ca;};return a112_0xfd85();}function a112_0x4f60(_0x12dab9,_0x2f88d2){_0x12dab9=_0x12dab9-0xf5;const _0xfd858f=a112_0xfd85();let _0x4f60e6=_0xfd858f[_0x12dab9];return _0x4f60e6;}import a112_0x43d5b4 from'node:fs';import a112_0x42de74 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a112_0x33d311(0x122)];[a112_0x33d311(0x117)]='';['currentRawCommand']='';constructor(){}['setRawCommand'](_0x17575f){this['currentRawCommand']=_0x17575f;}[a112_0x33d311(0xf7)](_0xe85619){const _0x228ed0=a112_0x33d311;this[_0x228ed0(0x117)]=a112_0x42de74[_0x228ed0(0xff)](_0xe85619,PRODUCT_CONFIG[_0x228ed0(0x132)]),this['winstonLogger']&&this[_0x228ed0(0x122)][_0x228ed0(0x12b)](),this[_0x228ed0(0x103)]();}[a112_0x33d311(0x103)](){const _0x153fa3=a112_0x33d311,_0x57de06=a112_0x42de74['dirname'](this[_0x153fa3(0x117)]);!a112_0x43d5b4[_0x153fa3(0xfa)](_0x57de06)&&a112_0x43d5b4[_0x153fa3(0x104)](_0x57de06,{'recursive':!![]});const _0x159b4e=a112_0x432030['format'][_0x153fa3(0x10c)](a112_0x432030[_0x153fa3(0x116)][_0x153fa3(0x111)](),a112_0x432030[_0x153fa3(0x116)][_0x153fa3(0xf5)]({'stack':!![]}),a112_0x432030[_0x153fa3(0x116)][_0x153fa3(0xfd)](_0x6e0fef=>{const _0x56003f=_0x153fa3,_0xb90a75={'timestamp':_0x6e0fef[_0x56003f(0x111)]||new Date()[_0x56003f(0x112)](),'level':_0x6e0fef[_0x56003f(0x12e)]||'info','command':_0x6e0fef[_0x56003f(0x12f)]||'unknown','rawCommand':_0x6e0fef[_0x56003f(0x126)]||this['currentRawCommand']||undefined,'message':_0x6e0fef[_0x56003f(0x125)]||'','duration':_0x6e0fef[_0x56003f(0xfe)]||undefined,'details':_0x6e0fef[_0x56003f(0x128)]||undefined};return JSON[_0x56003f(0xf8)](_0xb90a75);}));this[_0x153fa3(0x122)]=a112_0x432030[_0x153fa3(0x121)]({'level':'info','format':_0x159b4e,'transports':[new a112_0x432030[(_0x153fa3(0xfc))][(_0x153fa3(0x10b))]({'filename':this[_0x153fa3(0x117)],'level':'info'})],'silent':![]}),a112_0x432030[_0x153fa3(0x127)]({'success':_0x153fa3(0x130),'error':'red','warn':_0x153fa3(0x123),'info':_0x153fa3(0x114)});}[a112_0x33d311(0x11c)](_0x9e2a6e,_0x58436b,_0x3d559c){const _0x29fcd2=a112_0x33d311;if(!this[_0x29fcd2(0x117)]||!this[_0x29fcd2(0x122)])return;this['winstonLogger']['info'](_0x58436b,{'command':_0x9e2a6e,'details':_0x3d559c});}[a112_0x33d311(0xf9)](_0x5eb571,_0x5d6a46,_0x85fdef,_0x9cce79){const _0x41deeb=a112_0x33d311;if(!this[_0x41deeb(0x117)]||!this[_0x41deeb(0x122)])return;this['winstonLogger'][_0x41deeb(0x11a)](_0x41deeb(0x11c),_0x5d6a46,{'level':'success','command':_0x5eb571,'duration':_0x85fdef,'details':_0x9cce79});}[a112_0x33d311(0x11d)](_0x44f1a1,_0x1faf7c,_0x379d6a){const _0x2cf618=a112_0x33d311;if(!this[_0x2cf618(0x117)]||!this[_0x2cf618(0x122)])return;this['winstonLogger'][_0x2cf618(0x11d)](_0x1faf7c,{'command':_0x44f1a1,'details':_0x379d6a});}[a112_0x33d311(0x120)](_0x2073c1,_0x58e4f6,_0x54110c){const _0x53b60c=a112_0x33d311;if(!this[_0x53b60c(0x117)]||!this['winstonLogger'])return;this[_0x53b60c(0x122)][_0x53b60c(0x120)](_0x58e4f6,{'command':_0x2073c1,'details':_0x54110c});}async[a112_0x33d311(0x102)](_0x185b53,_0x39d249,_0x3cfb5d){const _0x4a4408=a112_0x33d311,_0x82ee23=Date[_0x4a4408(0x118)]();this[_0x4a4408(0x11c)](_0x185b53,_0x4a4408(0x11b)+_0x39d249);try{const _0x23a336=await _0x3cfb5d(),_0x1b2307=Date[_0x4a4408(0x118)]()-_0x82ee23;return this[_0x4a4408(0xf9)](_0x185b53,_0x4a4408(0x10e)+_0x39d249,_0x1b2307),_0x23a336;}catch(_0xb56559){const _0x2ebfcf=Date['now']()-_0x82ee23;this[_0x4a4408(0x11d)](_0x185b53,_0x4a4408(0xfb)+_0x39d249,{'error':_0xb56559 instanceof Error?_0xb56559[_0x4a4408(0x125)]:String(_0xb56559),'duration':_0x2ebfcf});throw _0xb56559;}}[a112_0x33d311(0x10d)](){const _0x38f5fa=a112_0x33d311;try{if(!a112_0x43d5b4[_0x38f5fa(0xfa)](this[_0x38f5fa(0x117)]))return[];const _0x109e82=a112_0x43d5b4[_0x38f5fa(0x107)](this[_0x38f5fa(0x117)],_0x38f5fa(0x11e));return _0x109e82['split'](/\r?\n/)[_0x38f5fa(0x133)](_0x4412f5=>_0x4412f5[_0x38f5fa(0xf6)]())[_0x38f5fa(0x131)](_0x1bfca8=>JSON[_0x38f5fa(0x106)](_0x1bfca8));}catch(_0x1d1063){return console[_0x38f5fa(0x120)](_0x38f5fa(0x100),_0x1d1063),[];}}[a112_0x33d311(0x115)](){const _0x101b80=a112_0x33d311;try{a112_0x43d5b4[_0x101b80(0xfa)](this[_0x101b80(0x117)])&&a112_0x43d5b4[_0x101b80(0x10f)](this[_0x101b80(0x117)],'','utf8');}catch(_0x5dfb46){console[_0x101b80(0x120)](_0x101b80(0x101),_0x5dfb46);}}[a112_0x33d311(0x108)](){const _0x545271=a112_0x33d311;return this[_0x545271(0x122)];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a113_0x1b47(_0x50cf8c,_0x523134){_0x50cf8c=_0x50cf8c-0x1e0;const _0x1d2ec1=a113_0x1d2e();let _0x1b47ed=_0x1d2ec1[_0x50cf8c];return _0x1b47ed;}function a113_0x1d2e(){const _0x147566=['prototype','getOwnPropertyDescriptor','202fFByYg','includes','10014TIcAAR','exec','parse','5491656rIvbQR','456731tHvgRH','undefined','8wRVFEF','MAX_SAFE_INTEGER','245faUHbH','899919sySVtY','1955156leTIrI','json','50ksuQQP','length','818rBplpU','defineProperty','209892RWiTcs','4CrhuPD'];a113_0x1d2e=function(){return _0x147566;};return a113_0x1d2e();}const a113_0x5c5edb=a113_0x1b47;(function(_0x2ca062,_0x484046){const _0x1144a8=a113_0x1b47,_0x1ec85a=_0x2ca062();while(!![]){try{const _0x426e83=parseInt(_0x1144a8(0x1e7))/0x1*(-parseInt(_0x1144a8(0x1e1))/0x2)+-parseInt(_0x1144a8(0x1e3))/0x3*(-parseInt(_0x1144a8(0x1e4))/0x4)+parseInt(_0x1144a8(0x1f1))/0x5*(parseInt(_0x1144a8(0x1e9))/0x6)+-parseInt(_0x1144a8(0x1f3))/0x7+-parseInt(_0x1144a8(0x1ef))/0x8*(-parseInt(_0x1144a8(0x1f2))/0x9)+parseInt(_0x1144a8(0x1f5))/0xa*(-parseInt(_0x1144a8(0x1ed))/0xb)+parseInt(_0x1144a8(0x1ec))/0xc;if(_0x426e83===_0x484046)break;else _0x1ec85a['push'](_0x1ec85a['shift']());}catch(_0x472d80){_0x1ec85a['push'](_0x1ec85a['shift']());}}}(a113_0x1d2e,0x22243));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a113_0x5c5edb(0x1f0)]),MIN_SAFE_INTEGER=BigInt(Number['MIN_SAFE_INTEGER']);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x647134){const _0x1d6b8c=a113_0x5c5edb;if(_0x647134[_0x1d6b8c(0x1e8)]('.')||_0x647134[_0x1d6b8c(0x1e8)]('e')||_0x647134['includes']('E'))return![];const _0x157551=BigInt(_0x647134);return _0x157551>MAX_SAFE_INTEGER||_0x157551<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x493a89){const _0x2011a7=a113_0x5c5edb;let _0x581006='',_0x59da93=![],_0x42828b=![];for(let _0x17878e=0x0;_0x17878e<_0x493a89[_0x2011a7(0x1e0)];){const _0x321b1c=_0x493a89[_0x17878e];if(_0x59da93){_0x581006+=_0x321b1c,_0x17878e+=0x1;if(_0x42828b)_0x42828b=![];else{if(_0x321b1c==='\x5c')_0x42828b=!![];else _0x321b1c==='\x22'&&(_0x59da93=![]);}continue;}if(_0x321b1c==='\x22'){_0x59da93=!![],_0x581006+=_0x321b1c,_0x17878e+=0x1;continue;}if(_0x321b1c==='-'||_0x321b1c>='0'&&_0x321b1c<='9'){const _0x4f64c2=JSON_NUMBER_PATTERN[_0x2011a7(0x1ea)](_0x493a89['slice'](_0x17878e))?.[0x0];if(_0x4f64c2){_0x581006+=isUnsafeIntegerLiteral(_0x4f64c2)?'\x22'+_0x4f64c2+'\x22':_0x4f64c2,_0x17878e+=_0x4f64c2[_0x2011a7(0x1e0)];continue;}}_0x581006+=_0x321b1c,_0x17878e+=0x1;}return _0x581006;}export function parseLosslessJson(_0x57dcee){const _0x323fc2=a113_0x5c5edb;return JSON[_0x323fc2(0x1eb)](quoteUnsafeIntegerLiterals(_0x57dcee));}export function installLosslessJsonResponseParser(){const _0x96f958=a113_0x5c5edb;if(typeof Response===_0x96f958(0x1ee))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x96f958(0x1e5)],originalResponseJsonDescriptor=Object[_0x96f958(0x1e6)](responseJsonPrototype,'json'),Object['defineProperty'](responseJsonPrototype,_0x96f958(0x1f4),{'configurable':!![],'enumerable':![],'value':async function _0x350c44(){return parseLosslessJson(await this['text']());},'writable':!![]}),restoreResponseJsonParser=()=>{const _0x1eeaf0=_0x96f958;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x1eeaf0(0x1e2)](responseJsonPrototype,_0x1eeaf0(0x1f4),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x1eeaf0(0x1f4)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a114_0x4b8e(){const _0x49d30e=['Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','4387090RkQQIT','2344323IAwuAK','length','isArray','number','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','3581732isJnuH','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','1117450LOsJzG','object','\x20records\x20per\x20call;\x20received\x20','items','id[','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','780tSunBl','map','data\x20update\x20--params.','1821OiZqeh','24FsfxWx','4iCQded','validation','528831aGQHEw','8389161DkjXtS','6mskEAh','join','data\x20update\x20can\x20update\x20at\x20most\x20','Invalid\x20JSON\x20for\x20--params:\x20','test'];a114_0x4b8e=function(){return _0x49d30e;};return a114_0x4b8e();}(function(_0x5c9163,_0xdc88cc){const _0x323630=a114_0x5b26,_0x368144=_0x5c9163();while(!![]){try{const _0x1cf1d4=parseInt(_0x323630(0x1d2))/0x1*(-parseInt(_0x323630(0x1cf))/0x2)+parseInt(_0x323630(0x1c2))/0x3*(parseInt(_0x323630(0x1b6))/0x4)+-parseInt(_0x323630(0x1c9))/0x5+parseInt(_0x323630(0x1ba))/0x6*(parseInt(_0x323630(0x1c7))/0x7)+-parseInt(_0x323630(0x1b5))/0x8*(parseInt(_0x323630(0x1b8))/0x9)+-parseInt(_0x323630(0x1c1))/0xa+parseInt(_0x323630(0x1b9))/0xb;if(_0x1cf1d4===_0xdc88cc)break;else _0x368144['push'](_0x368144['shift']());}catch(_0x4621ed){_0x368144['push'](_0x368144['shift']());}}}(a114_0x4b8e,0x7bcde));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;function a114_0x5b26(_0xa22e17,_0xca1207){_0xa22e17=_0xa22e17-0x1b5;const _0x4b8eca=a114_0x4b8e();let _0x5b26d2=_0x4b8eca[_0xa22e17];return _0x5b26d2;}export function parseJsonParams(_0x4f235b){const _0x24bcb5=a114_0x5b26;if(!_0x4f235b)return undefined;try{return parseLosslessJson(_0x4f235b);}catch{throw CliErrors[_0x24bcb5(0x1b7)](_0x24bcb5(0x1bd)+_0x4f235b);}}export function parseJsonParamsValue(_0x46a89e){const _0xdf69bf=a114_0x5b26;if(!_0x46a89e)return undefined;try{return parseLosslessJson(_0x46a89e);}catch{throw CliErrors[_0xdf69bf(0x1b7)](_0xdf69bf(0x1bd)+_0x46a89e);}}export function parseBatchCreateItemsFromParams(_0x212111){const _0x19ef8e=a114_0x5b26;if(Array[_0x19ef8e(0x1c4)](_0x212111))return _0x212111;if(_0x212111!==null&&_0x212111!==undefined&&typeof _0x212111==='object'&&Array[_0x19ef8e(0x1c4)](_0x212111['items']))return _0x212111[_0x19ef8e(0x1cc)];throw CliErrors[_0x19ef8e(0x1b7)](_0x19ef8e(0x1c8),_0x19ef8e(0x1bf));}function parseDataUpdateId(_0x172504,_0x4486d7){const _0x2bb784=a114_0x5b26;if(typeof _0x172504===_0x2bb784(0x1c5)&&Number['isSafeInteger'](_0x172504)&&_0x172504>0x0)return _0x172504;if(typeof _0x172504==='string'){if(/^[1-9]\d*$/[_0x2bb784(0x1be)](_0x172504))return _0x172504;}throw CliErrors[_0x2bb784(0x1b7)](_0x2bb784(0x1d1)+_0x4486d7+_0x2bb784(0x1c6));}export function parseUpdateIdsFromParams(_0x1cd4ad){const _0x119812=a114_0x5b26;if(_0x1cd4ad===null||_0x1cd4ad===undefined||typeof _0x1cd4ad!==_0x119812(0x1ca)||Array[_0x119812(0x1c4)](_0x1cd4ad))throw CliErrors[_0x119812(0x1b7)]('data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.',_0x119812(0x1c0));const _0x5e53cc=_0x1cd4ad['id'];if(_0x5e53cc===undefined||_0x5e53cc===null)throw CliErrors[_0x119812(0x1b7)]('data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.',_0x119812(0x1c0));const _0x58766f=Array[_0x119812(0x1c4)](_0x5e53cc)?_0x5e53cc:[_0x5e53cc];if(_0x58766f[_0x119812(0x1c3)]===0x0)throw CliErrors['validation'](_0x119812(0x1ce));if(_0x58766f[_0x119812(0x1c3)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x119812(0x1b7)](_0x119812(0x1bc)+MAX_DATA_UPDATE_IDS+_0x119812(0x1cb)+_0x58766f[_0x119812(0x1c3)]+'.');return _0x58766f[_0x119812(0x1d0)]((_0x375fdb,_0x36f2e2)=>parseDataUpdateId(_0x375fdb,Array[_0x119812(0x1c4)](_0x5e53cc)?_0x119812(0x1cd)+_0x36f2e2+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x158edb,_0x5efc97){const _0x11149f=a114_0x5b26;if(Array['isArray'](_0x158edb['id'])&&_0x5efc97['length']>0x1)return{..._0x158edb,'id':_0x5efc97[_0x11149f(0x1bb)](',')};return _0x158edb;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a115_0x43f846=a115_0x4276;(function(_0x306a6f,_0x9f92ef){const _0x15aab1=a115_0x4276,_0x42aa59=_0x306a6f();while(!![]){try{const _0x1837eb=parseInt(_0x15aab1(0x1e9))/0x1+-parseInt(_0x15aab1(0x1f1))/0x2+parseInt(_0x15aab1(0x1f3))/0x3*(-parseInt(_0x15aab1(0x1ed))/0x4)+-parseInt(_0x15aab1(0x1f0))/0x5+parseInt(_0x15aab1(0x1f6))/0x6*(parseInt(_0x15aab1(0x1f4))/0x7)+-parseInt(_0x15aab1(0x1ef))/0x8*(-parseInt(_0x15aab1(0x1f5))/0x9)+-parseInt(_0x15aab1(0x1ea))/0xa*(-parseInt(_0x15aab1(0x1eb))/0xb);if(_0x1837eb===_0x9f92ef)break;else _0x42aa59['push'](_0x42aa59['shift']());}catch(_0x4c1fb0){_0x42aa59['push'](_0x42aa59['shift']());}}}(a115_0x3a6c,0x8bf0d));function a115_0x4276(_0x12a4f8,_0x29af62){_0x12a4f8=_0x12a4f8-0x1e9;const _0x3a6cfe=a115_0x3a6c();let _0x427645=_0x3a6cfe[_0x12a4f8];return _0x427645;}function a115_0x3a6c(){const _0x2436a1=['80888ByPRwZ','4297580nLKBDe','959326pYMcgL','.cmd','61833AjnAGR','266ZIaaUr','576BxaeQl','90996qGLztS','792285XgevCo','830kZZiTW','43670BkaCtS','win32','84XYKFUj','platform'];a115_0x3a6c=function(){return _0x2436a1;};return a115_0x3a6c();}export const isWindows=process[a115_0x43f846(0x1ee)]===a115_0x43f846(0x1ec);export function resolveNpmBin(_0x493363){const _0x351c4b=a115_0x43f846;return isWindows?_0x493363+_0x351c4b(0x1f2):_0x493363;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x41338e,_0x3307f8){const _0x23a3fc=a116_0x4117,_0x31d4b3=_0x41338e();while(!![]){try{const _0x471df0=-parseInt(_0x23a3fc(0x14a))/0x1+-parseInt(_0x23a3fc(0x13a))/0x2+parseInt(_0x23a3fc(0x135))/0x3*(-parseInt(_0x23a3fc(0x14e))/0x4)+parseInt(_0x23a3fc(0x13b))/0x5*(-parseInt(_0x23a3fc(0x134))/0x6)+-parseInt(_0x23a3fc(0x136))/0x7+parseInt(_0x23a3fc(0x154))/0x8+parseInt(_0x23a3fc(0x137))/0x9;if(_0x471df0===_0x3307f8)break;else _0x31d4b3['push'](_0x31d4b3['shift']());}catch(_0x87370f){_0x31d4b3['push'](_0x31d4b3['shift']());}}}(a116_0xaf9c,0x5c001));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';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(_0x1b055e){const _0x5e1d26=a116_0x4117,_0x229e76=_0x1b055e[_0x5e1d26(0x151)]()[_0x5e1d26(0x155)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x229e76)return null;return{'major':Number(_0x229e76[0x1]),'minor':Number(_0x229e76[0x2]),'patch':Number(_0x229e76[0x3]),'prerelease':_0x229e76[0x4]};}function compareSemver(_0x5972bd,_0x7fa69d){const _0x151a61=a116_0x4117,_0x2dd35a=parseSemver(_0x5972bd),_0x230f7e=parseSemver(_0x7fa69d);if(!_0x2dd35a||!_0x230f7e)throw new Error(_0x151a61(0x14d));for(const _0x46f220 of[_0x151a61(0x13d),'minor',_0x151a61(0x158)]){if(_0x2dd35a[_0x46f220]<_0x230f7e[_0x46f220])return-0x1;if(_0x2dd35a[_0x46f220]>_0x230f7e[_0x46f220])return 0x1;}if(!_0x2dd35a[_0x151a61(0x159)]&&!_0x230f7e[_0x151a61(0x159)])return 0x0;if(!_0x2dd35a[_0x151a61(0x159)])return 0x1;if(!_0x230f7e[_0x151a61(0x159)])return-0x1;if(_0x2dd35a[_0x151a61(0x159)]===_0x230f7e['prerelease'])return 0x0;return _0x2dd35a[_0x151a61(0x159)]<_0x230f7e['prerelease']?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x515bd8=a116_0x4117,_0x52b938=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x515bd8(0x151)]()[_0x515bd8(0x147)]();return _0x52b938==='1'||_0x52b938===_0x515bd8(0x143)||_0x52b938===_0x515bd8(0x140);}function a116_0x4117(_0x5646af,_0x2cc8bd){_0x5646af=_0x5646af-0x134;const _0xaf9cfd=a116_0xaf9c();let _0x41170f=_0xaf9cfd[_0x5646af];return _0x41170f;}function cacheRoot(){const _0x3e0c93=a116_0x4117;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x3e0c93(0x141));}export function getUpdateNoticeCachePath(){const _0x3cf805=a116_0x4117;return join(cacheRoot(),_0x3cf805(0x149),_0x3cf805(0x148));}async function readUpdateNoticeCache(){const _0x4a255a=a116_0x4117;try{const _0xbdf531=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x54aa66=JSON[_0x4a255a(0x156)](_0xbdf531);if(!_0x54aa66||typeof _0x54aa66!==_0x4a255a(0x152))return{};return _0x54aa66;}catch{return{};}}async function writeUpdateNoticeCache(_0x4b356a){const _0x3a69cd=a116_0x4117;try{const _0x165cd7=getUpdateNoticeCachePath();await mkdir(dirname(_0x165cd7),{'recursive':!![]}),await writeFile(_0x165cd7,JSON['stringify'](_0x4b356a,null,0x2)+'\x0a',_0x3a69cd(0x146));}catch{}}function isFreshCheck(_0x336210,_0x3eaf8a){const _0x40098f=a116_0x4117;return typeof _0x336210[_0x40098f(0x13f)]==='number'&&_0x3eaf8a-_0x336210[_0x40098f(0x13f)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x21c22e,_0x3b3dd,_0x237065){const _0x5b93ca=a116_0x4117;return _0x21c22e[_0x5b93ca(0x145)]===_0x3b3dd&&typeof _0x21c22e[_0x5b93ca(0x13c)]===_0x5b93ca(0x14c)&&_0x237065-_0x21c22e[_0x5b93ca(0x13c)]<UPDATE_NOTICE_TTL_MS;}function a116_0xaf9c(){const _0x3bdc3a=['6jKaThx','4406031FsWRCh','13877370ybAtVP','latest','\x20available,\x20current\x20','671458iUqLnb','10wwjZLA','lastNotifiedAt','major','https://www.npmjs.com/package/','checkedAt','yes','.cache','string','true','timeout','lastNotifiedVersion','utf8','toLowerCase','update-check.json','lovrabet-cli','359185GpMIHI','/-/package/','number','Invalid\x20semver','426868GTZwnC','\x20update','fromEntries','trim','object','json','5920480RtlXMG','match','parse','entries','patch','prerelease','1102128RZMRKV'];a116_0xaf9c=function(){return _0x3bdc3a;};return a116_0xaf9c();}async function fetchNpmDistTags(_0x2c7673=0x5dc){const _0x1da1fe=a116_0x4117;try{const _0x72973d=NPM_REGISTRY_BASE_URL+_0x1da1fe(0x14b)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x2d7afa=await fetch(_0x72973d,{'signal':AbortSignal[_0x1da1fe(0x144)](_0x2c7673)});if(!_0x2d7afa['ok'])return null;const _0x3232fa=await _0x2d7afa[_0x1da1fe(0x153)]();if(!_0x3232fa||typeof _0x3232fa!==_0x1da1fe(0x152))return null;return Object[_0x1da1fe(0x150)](Object[_0x1da1fe(0x157)](_0x3232fa)['filter'](([,_0x70e613])=>typeof _0x70e613===_0x1da1fe(0x142)&&_0x70e613['trim']())['map'](([_0x3a6768,_0x451cbc])=>[_0x3a6768,String(_0x451cbc)[_0x1da1fe(0x151)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x202654){const _0x485cd4=a116_0x4117;return _0x485cd4(0x13e)+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x202654;}export async function resolveLatestUpdateNotice(){const _0x69b312=a116_0x4117;if(isUpdateNoticeDisabled())return null;try{const _0x5e23a0=Date['now'](),_0x4ad19f=getCliVersion(),_0x541638=await readUpdateNoticeCache();let _0x56cd73=isFreshCheck(_0x541638,_0x5e23a0)?_0x541638[_0x69b312(0x138)]?.[_0x69b312(0x151)]():undefined;if(!_0x56cd73&&!isFreshCheck(_0x541638,_0x5e23a0)){const _0x121263=await fetchNpmDistTags();_0x56cd73=_0x121263?.[_0x69b312(0x138)]?.['trim'](),await writeUpdateNoticeCache({..._0x541638,'checkedAt':_0x5e23a0,'latest':_0x56cd73,'failed':!_0x56cd73});}if(!_0x56cd73||compareSemver(_0x4ad19f,_0x56cd73)>=0x0)return null;if(isRecentlyNotified(_0x541638,_0x56cd73,_0x5e23a0))return null;const _0x2e67dc=CLI_BIN_NAME+_0x69b312(0x14f);return await writeUpdateNoticeCache({..._0x541638,'checkedAt':isFreshCheck(_0x541638,_0x5e23a0)?_0x541638[_0x69b312(0x13f)]:_0x5e23a0,'latest':_0x56cd73,'failed':![],'lastNotifiedVersion':_0x56cd73,'lastNotifiedAt':_0x5e23a0}),{'command':_0x2e67dc,'current':_0x4ad19f,'latest':_0x56cd73,'url':buildNpmVersionUrl(_0x56cd73),'message':CLI_BIN_NAME+'\x20'+_0x56cd73+_0x69b312(0x139)+_0x4ad19f+',\x20run:\x20'+_0x2e67dc};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x223c30,_0x193735){const _0x32d6ad=a117_0x20bd,_0x56229c=_0x223c30();while(!![]){try{const _0x5ea54b=-parseInt(_0x32d6ad(0x14a))/0x1*(-parseInt(_0x32d6ad(0x14e))/0x2)+parseInt(_0x32d6ad(0x147))/0x3+-parseInt(_0x32d6ad(0x14b))/0x4+parseInt(_0x32d6ad(0x14c))/0x5+parseInt(_0x32d6ad(0x145))/0x6*(parseInt(_0x32d6ad(0x149))/0x7)+parseInt(_0x32d6ad(0x142))/0x8*(-parseInt(_0x32d6ad(0x14d))/0x9)+parseInt(_0x32d6ad(0x146))/0xa*(-parseInt(_0x32d6ad(0x143))/0xb);if(_0x5ea54b===_0x193735)break;else _0x56229c['push'](_0x56229c['shift']());}catch(_0x9d2bb3){_0x56229c['push'](_0x56229c['shift']());}}}(a117_0x1219,0x8d71e));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a117_0x1219(){const _0x57a76c=['7032508slIRCC','3531GBKUcH','314256YKvEOG','5085825ELfJjX','18lphFAu','310RDiaAo','135416AaPwqV','21522809pEwhXO','unknown','6lQZcJf','10AwGyTN','237843tAQHjR','slice'];a117_0x1219=function(){return _0x57a76c;};return a117_0x1219();}function a117_0x20bd(_0x40b8df,_0x230480){_0x40b8df=_0x40b8df-0x142;const _0x1219fa=a117_0x1219();let _0x20bd1f=_0x1219fa[_0x40b8df];return _0x20bd1f;}export function getCliGitCommit(){const _0x35c934=a117_0x20bd,_0x3acb57=String(GIT_COMMIT);return _0x3acb57&&_0x3acb57!==_0x35c934(0x144)?_0x3acb57:'';}export function getCliVersionDisplay(){const _0x2d84cc=a117_0x20bd,_0x28c36f=getCliGitCommit(),_0x4d8648=BUILD_TIME[_0x2d84cc(0x148)](0x0,0xa);if(!_0x28c36f||!_0x4d8648)return VERSION;return VERSION+'\x20('+_0x28c36f+',\x20'+_0x4d8648+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1ce521,_0x5e91b7){var _0x29b41c=a118_0x3ca8,_0x535779=_0x1ce521();while(!![]){try{var _0x571a1a=-parseInt(_0x29b41c(0xc2))/0x1+-parseInt(_0x29b41c(0xc6))/0x2*(parseInt(_0x29b41c(0xc9))/0x3)+parseInt(_0x29b41c(0xc4))/0x4+parseInt(_0x29b41c(0xc7))/0x5*(parseInt(_0x29b41c(0xc5))/0x6)+-parseInt(_0x29b41c(0xca))/0x7+-parseInt(_0x29b41c(0xc8))/0x8*(parseInt(_0x29b41c(0xcb))/0x9)+parseInt(_0x29b41c(0xc0))/0xa*(parseInt(_0x29b41c(0xc3))/0xb);if(_0x571a1a===_0x5e91b7)break;else _0x535779['push'](_0x535779['shift']());}catch(_0x25b473){_0x535779['push'](_0x535779['shift']());}}}(a118_0x4b50,0x8aa0a));function a118_0x3ca8(_0x525129,_0x2d197c){_0x525129=_0x525129-0xc0;var _0x4b506e=a118_0x4b50();var _0x3ca8e6=_0x4b506e[_0x525129];return _0x3ca8e6;}export function writeCliSideChannelLine(_0x41284f){var _0x571dff=a118_0x3ca8;process[_0x571dff(0xc1)]['write'](_0x41284f+'\x0a');}function a118_0x4b50(){var _0x234897=['2266hAcFRp','3887540UTAqaK','560262RIhsNr','18bEEhYb','50ZombRu','999384FIyIBn','28917DQkzmx','3279521MMTWVy','81ryVzQW','67830UPOMEb','stderr','1055574QfemBK'];a118_0x4b50=function(){return _0x234897;};return a118_0x4b50();}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function a10_0x3d0a(){const _0x562baf=['521040MOWATF','filter','value','834IqBWsm','key','length','gmtCreate','306194HcUFiu','216370QRyBir','6xMizZc','appCode','string','454436rNflTp','9040QWmNPl','isArray','176fPaQRE','createTime','trim','split','boolean','traceId','map','hasValue','17568VgoDIj','updateTime','2247000bXVped'];a10_0x3d0a=function(){return _0x562baf;};return a10_0x3d0a();}function a10_0x22d2(_0x357cd5,_0x55917e){_0x357cd5=_0x357cd5-0x1ac;const _0x3d0af1=a10_0x3d0a();let _0x22d29f=_0x3d0af1[_0x357cd5];return _0x22d29f;}(function(_0x1cd626,_0x3bf1c0){const _0x5afdf0=a10_0x22d2,_0x57ee78=_0x1cd626();while(!![]){try{const _0x3f829a=-parseInt(_0x5afdf0(0x1b3))/0x1+parseInt(_0x5afdf0(0x1bb))/0x2*(parseInt(_0x5afdf0(0x1bc))/0x3)+parseInt(_0x5afdf0(0x1bf))/0x4+-parseInt(_0x5afdf0(0x1c0))/0x5*(-parseInt(_0x5afdf0(0x1b6))/0x6)+parseInt(_0x5afdf0(0x1ba))/0x7+parseInt(_0x5afdf0(0x1c2))/0x8*(-parseInt(_0x5afdf0(0x1b0))/0x9)+parseInt(_0x5afdf0(0x1b2))/0xa;if(_0x3f829a===_0x3bf1c0)break;else _0x57ee78['push'](_0x57ee78['shift']());}catch(_0x1e7470){_0x57ee78['push'](_0x57ee78['shift']());}}}(a10_0x3d0a,0x45c35));function normalizeTags(_0x1c7c5f){const _0x165b9a=a10_0x22d2;if(Array['isArray'](_0x1c7c5f))return _0x1c7c5f[_0x165b9a(0x1ae)](_0x51d1eb=>String(_0x51d1eb))[_0x165b9a(0x1b4)](Boolean);if(typeof _0x1c7c5f!==_0x165b9a(0x1be))return[];const _0x4a8424=_0x1c7c5f[_0x165b9a(0x1c4)]();if(!_0x4a8424)return[];try{const _0x495002=JSON['parse'](_0x4a8424);if(Array[_0x165b9a(0x1c1)](_0x495002))return _0x495002[_0x165b9a(0x1ae)](_0x37d51b=>String(_0x37d51b))[_0x165b9a(0x1b4)](Boolean);}catch{}return _0x4a8424[_0x165b9a(0x1c5)](',')[_0x165b9a(0x1ae)](_0x1bf400=>_0x1bf400[_0x165b9a(0x1c4)]())[_0x165b9a(0x1b4)](Boolean);}export function projectAppConfigVisibilityCheck(_0x2492b1,_0x2b90d3){const _0x5edb9d=a10_0x22d2,_0x19c491=_0x2492b1[_0x5edb9d(0x1b5)],_0x19a404=typeof _0x2492b1[_0x5edb9d(0x1af)]===_0x5edb9d(0x1ac)?_0x2492b1[_0x5edb9d(0x1af)]:typeof _0x19c491===_0x5edb9d(0x1be)?_0x19c491[_0x5edb9d(0x1b8)]>0x0:_0x19c491!=null,_0xf8732e={'appCode':typeof _0x2492b1['appCode']===_0x5edb9d(0x1be)&&_0x2492b1[_0x5edb9d(0x1bd)][_0x5edb9d(0x1c4)]()?_0x2492b1[_0x5edb9d(0x1bd)]:_0x2b90d3[_0x5edb9d(0x1bd)],'key':typeof _0x2492b1['key']===_0x5edb9d(0x1be)&&_0x2492b1[_0x5edb9d(0x1b7)][_0x5edb9d(0x1c4)]()?_0x2492b1[_0x5edb9d(0x1b7)]:_0x2b90d3[_0x5edb9d(0x1b7)],'tags':normalizeTags(_0x2492b1['tags']),'hasValue':_0x19a404,'valueRedacted':!![],'gmtModified':_0x2492b1['gmtModified']??_0x2492b1[_0x5edb9d(0x1b1)]??'','gmtCreate':_0x2492b1[_0x5edb9d(0x1b9)]??_0x2492b1[_0x5edb9d(0x1c3)]??''};return typeof _0x2492b1[_0x5edb9d(0x1ad)]===_0x5edb9d(0x1be)&&_0x2492b1[_0x5edb9d(0x1ad)][_0x5edb9d(0x1c4)]()&&(_0xf8732e[_0x5edb9d(0x1ad)]=_0x2492b1[_0x5edb9d(0x1ad)]),_0xf8732e;}
|