@lovrabet/lovrabet-cli 2.3.8 → 2.3.9-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.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/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-sdk-errors.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/runtime-user-id.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x433df7,_0x40bad8){const _0x3f6422=a162_0x419b,_0x49b69f=_0x433df7();while(!![]){try{const _0x226acc=-parseInt(_0x3f6422(0x90))/0x1+-parseInt(_0x3f6422(0x82))/0x2*(parseInt(_0x3f6422(0xa3))/0x3)+-parseInt(_0x3f6422(0x8b))/0x4*(-parseInt(_0x3f6422(0x8e))/0x5)+parseInt(_0x3f6422(0x83))/0x6*(-parseInt(_0x3f6422(0x99))/0x7)+parseInt(_0x3f6422(0x7d))/0x8+-parseInt(_0x3f6422(0x95))/0x9+parseInt(_0x3f6422(0x9d))/0xa*(parseInt(_0x3f6422(0x9c))/0xb);if(_0x226acc===_0x40bad8)break;else _0x49b69f['push'](_0x49b69f['shift']());}catch(_0x5b5723){_0x49b69f['push'](_0x49b69f['shift']());}}}(a162_0x1971,0x492ed));import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';function a162_0x419b(_0x5850c6,_0x28cf2b){_0x5850c6=_0x5850c6-0x7c;const _0x197116=a162_0x1971();let _0x419b1a=_0x197116[_0x5850c6];return _0x419b1a;}import{METADATA_FILE}from'./constants.js';function a162_0x1971(){const _0x2ad9e6=['tenantCode','134KTrlHO','990unrVbY','utf8','trim','hasUpstreamUpdate','zipSize','length','skillName','status','8NhamPr','validation','forkedFromVersion','57260mbaVCS','toISOString','304554TaQZoo','fromEntries','zipSha256','map','Invalid\x20','4908861nEezZJ','example','version','readonly','10171XTJoCR','tags','string','3806amCFYU','37340JaVIJk','skillCode','manifest','files','description','Runtime\x20Skill\x20is\x20missing\x20skillCode.','12477lClmml','ossPath','forkedFromSkillId','userId','2826160JGffHB','path','isArray','parse'];a162_0x1971=function(){return _0x2ad9e6;};return a162_0x1971();}import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,normalizeLocalFiles}from'./local-files.js';import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x90ee77,_0x594d34,_0x5ecf7e,_0x154fd6,_0x4dd577,_0x38896c,_0x1a4424){const _0x31a4a6=a162_0x419b,_0x51143e=_0x38896c?normalizeLocalFiles(_0x38896c):[],_0x2eb569=!_0x1a4424&&_0x51143e[_0x31a4a6(0x88)]>0x0?buildSkillPackage(_0x51143e):undefined,_0x301a55=_0x1a4424?bufferSha256(_0x1a4424):_0x2eb569?.[_0x31a4a6(0x9f)][_0x31a4a6(0x92)],_0x3d717f=_0x1a4424?.[_0x31a4a6(0x88)]??_0x2eb569?.[_0x31a4a6(0x9f)][_0x31a4a6(0x87)],_0x481976=_0x51143e[_0x31a4a6(0x88)]>0x0?Object[_0x31a4a6(0x91)](_0x51143e[_0x31a4a6(0x93)](_0x26862f=>[_0x26862f[_0x31a4a6(0x7e)],fileHash(_0x26862f)])):undefined;return{'schemaVersion':_0x51143e[_0x31a4a6(0x88)]>0x0?0x2:0x1,'id':_0x90ee77['id'],'appCode':_0x5ecf7e,'skillCode':requireSkillCode(_0x90ee77),'skillName':_0x90ee77[_0x31a4a6(0x89)],'description':_0x90ee77[_0x31a4a6(0xa1)],'example':_0x90ee77[_0x31a4a6(0x96)],'scope':_0x594d34,'readonly':_0x594d34!=='personal'||_0x90ee77[_0x31a4a6(0x98)]===!![],'tenantCode':_0x90ee77[_0x31a4a6(0x81)],'userId':_0x90ee77[_0x31a4a6(0x7c)],'version':_0x90ee77[_0x31a4a6(0x97)],'status':_0x90ee77[_0x31a4a6(0x8a)],'tags':Array[_0x31a4a6(0x7f)](_0x90ee77['tags'])?_0x90ee77[_0x31a4a6(0x9a)]:[],'hasUpstreamUpdate':_0x90ee77[_0x31a4a6(0x86)],'forkedFromSkillId':_0x90ee77[_0x31a4a6(0xa5)],'forkedFromVersion':_0x90ee77[_0x31a4a6(0x8d)],'sourceSessionId':_0x90ee77['sourceSessionId'],'contentHash':_0x154fd6,'fileHashes':_0x481976,'treeHash':_0x51143e[_0x31a4a6(0x88)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x51143e)):undefined,'ossPath':remoteManifestOssPath(_0x90ee77[_0x31a4a6(0xa0)]),'zipSha256':_0x301a55,'zipSize':_0x3d717f,'files':_0x51143e[_0x31a4a6(0x88)]>0x0?_0x51143e['map'](_0x122787=>({'path':_0x122787[_0x31a4a6(0x7e)],'hash':fileHash(_0x122787),'size':fileContent(_0x122787)[_0x31a4a6(0x88)]})):undefined,'pulledAt':_0x4dd577??new Date()[_0x31a4a6(0x8f)]()};}export function requireSkillCode(_0x162d32){const _0x33421f=a162_0x419b,_0x482a09=_0x162d32[_0x33421f(0x9e)]?.[_0x33421f(0x85)]();if(!_0x482a09)throw CliErrors[_0x33421f(0x8c)](_0x33421f(0xa2));return _0x482a09;}export function readMetadataIfPresent(_0x36a9e4){const _0x1558e6=a162_0x419b;if(!existsSync(_0x36a9e4))return undefined;try{const _0x1467c8=JSON[_0x1558e6(0x80)](readFileSync(_0x36a9e4,_0x1558e6(0x84)));return _0x1467c8;}catch{throw CliErrors[_0x1558e6(0x8c)](_0x1558e6(0x94)+METADATA_FILE+':\x20'+_0x36a9e4);}}function remoteManifestOssPath(_0x1a93f7){const _0x20009d=a162_0x419b;if(!_0x1a93f7||typeof _0x1a93f7!=='object'||Array[_0x20009d(0x7f)](_0x1a93f7))return undefined;const _0xe1cf76=_0x1a93f7[_0x20009d(0xa4)];return typeof _0xe1cf76===_0x20009d(0x9b)&&_0xe1cf76['trim']()?_0xe1cf76[_0x20009d(0x85)]():undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a163_0x42f539=a163_0x21d4;function a163_0x21d4(_0x39af33,_0x44e81f){_0x39af33=_0x39af33-0x8b;const _0x3c99fb=a163_0x3c99();let _0x21d431=_0x3c99fb[_0x39af33];return _0x21d431;}(function(_0xc09b90,_0x244850){const _0x33211f=a163_0x21d4,_0x5a03fb=_0xc09b90();while(!![]){try{const _0xdd952a=-parseInt(_0x33211f(0xa2))/0x1*(parseInt(_0x33211f(0xa3))/0x2)+-parseInt(_0x33211f(0x93))/0x3+parseInt(_0x33211f(0x97))/0x4*(-parseInt(_0x33211f(0x8b))/0x5)+-parseInt(_0x33211f(0x91))/0x6+-parseInt(_0x33211f(0x96))/0x7+-parseInt(_0x33211f(0x92))/0x8+parseInt(_0x33211f(0x9b))/0x9*(parseInt(_0x33211f(0x98))/0xa);if(_0xdd952a===_0x244850)break;else _0x5a03fb['push'](_0x5a03fb['shift']());}catch(_0x42f7dd){_0x5a03fb['push'](_0x5a03fb['shift']());}}}(a163_0x3c99,0xee8ef));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(_0x4d7f1b={}){const _0x52903b=a163_0x21d4,_0x394c06=_0x4d7f1b[_0x52903b(0x8c)]??homedir(),_0x4f4cb2=resolve(_0x394c06,PRODUCT_CONFIG[_0x52903b(0xa0)],_0x52903b(0x8f)),_0x381c98=trimmedEnv(_0x52903b(0x9d)),_0x4a5310=trimmedEnv('CLAUDE_SKILL_ROOT'),_0x5d84bb=resolve(_0x394c06,'.workbuddy'),_0x289234=_0x4d7f1b[_0x52903b(0x95)]??(existsSync(_0x5d84bb)?resolve(_0x5d84bb,'skills'):undefined);return{'homeDir':_0x394c06,'cacheRoot':_0x4f4cb2,'managedRoot':resolve(_0x394c06,PRODUCT_CONFIG['homeDirName']),'agentsSkillsDir':_0x4d7f1b[_0x52903b(0x9a)]??_0x381c98??resolve(_0x394c06,_0x52903b(0x90),'skills'),'claudeSkillsDir':_0x4d7f1b[_0x52903b(0x9c)]??_0x4a5310??resolve(_0x394c06,'.claude',_0x52903b(0xa1)),'workbuddySkillsDir':_0x289234};}export function runtimeAgentSkillRoots(_0x1acb2a){const _0x23f952=a163_0x21d4;return[_0x1acb2a[_0x23f952(0x9a)],_0x1acb2a['claudeSkillsDir'],_0x1acb2a[_0x23f952(0x95)]]['filter'](_0x3d7d53=>Boolean(_0x3d7d53));}function a163_0x3c99(){const _0x2783db=['26605Emzkyp','homeDir','includes','\x20for\x20local\x20path:\x20','cache','.agents','10783344uMTjRz','10755848ZIcDEb','5205261SKaSVs','path\x20segment','workbuddySkillsDir','2911769KNtNJT','1376rrZOqM','20DOceDS','validation','agentsSkillsDir','40028463LkKOif','claudeSkillsDir','SKILL_ROOT','skillCode','Unsafe\x20','homeDirName','skills','397448qzpIqS','4kBSlwc'];a163_0x3c99=function(){return _0x2783db;};return a163_0x3c99();}export function getRuntimeSkillCacheRoot(_0x58bf3c,_0x29c515,_0x3ed738={}){const _0x402d2f=a163_0x21d4,_0x3d27bb=resolveSkillSyncPaths(_0x3ed738);return resolve(_0x3d27bb['cacheRoot'],_0x58bf3c,fingerprintAccessKey(_0x29c515),_0x402d2f(0xa1));}export function getRuntimeSkillDir(_0x43b51c,_0x192203,_0x314467,_0x1bcd02,_0x917daa,_0x5d0d1e={}){const _0xe38087=a163_0x21d4;return resolve(getRuntimeSkillCacheRoot(_0x43b51c,_0x192203,_0x5d0d1e),safePathSegment(_0x314467,'appCode'),_0x1bcd02,safePathSegment(_0x917daa,_0xe38087(0x9e)));}export function safePathSegment(_0x35f275,_0x26c14b=a163_0x42f539(0x94)){const _0x159696=a163_0x42f539;if(!_0x35f275||_0x35f275['includes']('/')||_0x35f275[_0x159696(0x8d)]('\x5c')||_0x35f275[_0x159696(0x8d)]('..'))throw CliErrors[_0x159696(0x99)](_0x159696(0x9f)+_0x26c14b+_0x159696(0x8e)+_0x35f275);return _0x35f275;}function trimmedEnv(_0x3de61d){const _0x20abf9=productEnv(_0x3de61d)?.['trim']();return _0x20abf9?_0x20abf9:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x24f71c,_0x2db394){const _0x4f7ba2=a164_0x40b9,_0x3050d0=_0x24f71c();while(!![]){try{const _0x501682=-parseInt(_0x4f7ba2(0x203))/0x1+parseInt(_0x4f7ba2(0x1f5))/0x2*(parseInt(_0x4f7ba2(0x213))/0x3)+-parseInt(_0x4f7ba2(0x1f7))/0x4+parseInt(_0x4f7ba2(0x1fe))/0x5*(parseInt(_0x4f7ba2(0x227))/0x6)+parseInt(_0x4f7ba2(0x22d))/0x7+parseInt(_0x4f7ba2(0x232))/0x8+parseInt(_0x4f7ba2(0x22f))/0x9;if(_0x501682===_0x2db394)break;else _0x3050d0['push'](_0x3050d0['shift']());}catch(_0x3dab72){_0x3050d0['push'](_0x3050d0['shift']());}}}(a164_0x219f,0x59afc));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a164_0x1df4e5}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{writeJsonAtomic}from'./fs-utils.js';import{contentHash}from'./hashing.js';import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';function a164_0x40b9(_0x41983a,_0x537410){_0x41983a=_0x41983a-0x1f2;const _0x219f0e=a164_0x219f();let _0x40b9a4=_0x219f0e[_0x41983a];return _0x40b9a4;}import{buildMetadata,readMetadataIfPresent}from'./metadata.js';import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0x4d5a3b,_0x2f2a2a,_0x39d110={}){const _0x336e86=a164_0x40b9,_0x351ee0=resolvePushDirectoryRoot(_0x4d5a3b),_0x3a7425=readPushMetadataIfPresent(resolve(_0x351ee0,METADATA_FILE),{'ignoreInvalidMetadata':_0x39d110[_0x336e86(0x216)]});if(_0x3a7425?.[_0x336e86(0x1f9)]&&_0x3a7425[_0x336e86(0x1f9)]!==_0x2f2a2a&&!_0x39d110[_0x336e86(0x1fd)]&&!_0x39d110['ignoreMetadataAppCodeMismatch'])throw CliErrors[_0x336e86(0x21c)](_0x336e86(0x1fb)+_0x3a7425[_0x336e86(0x1f9)]+_0x336e86(0x231)+_0x2f2a2a+'\x22.');const _0x317f3d=resolvePushSkillCode(_0x351ee0,_0x2f2a2a,_0x3a7425,_0x39d110);if(!_0x317f3d)throw CliErrors['validation'](_0x336e86(0x1f6)+SKILL_FILE+',\x20'+METADATA_FILE+_0x336e86(0x210));return{'dir':_0x351ee0,'skillCode':_0x317f3d,'metadata':_0x3a7425};}export function readPushDirectory(_0x4ca145,_0x3dd7e6,_0x5d314f={}){const _0x322af4=a164_0x40b9,_0x3b6bb2=resolvePushDirectoryIdentity(_0x4ca145,_0x3dd7e6,_0x5d314f),_0x57e774=_0x3b6bb2[_0x322af4(0x221)],_0x5615b2=resolve(_0x57e774,SKILL_FILE);if(!existsSync(_0x5615b2)||!lstatSync(_0x5615b2)['isFile']())throw CliErrors[_0x322af4(0x21c)](_0x322af4(0x202)+SKILL_FILE+':\x20'+_0x5615b2);const _0x2808d7=_0x3b6bb2[_0x322af4(0x21f)],_0x135c60=_0x5d314f['targetScope']??_0x322af4(0x226);if(!_0x5d314f[_0x322af4(0x235)]&&_0x2808d7?.[_0x322af4(0x20b)]===_0x322af4(0x211))throw CliErrors[_0x322af4(0x21c)]('Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20'+METADATA_FILE+_0x322af4(0x22e)+_0x2808d7['scope']+'\x22.');if(!_0x5d314f[_0x322af4(0x235)]&&_0x135c60===_0x322af4(0x226)&&_0x2808d7?.[_0x322af4(0x20b)]&&_0x2808d7[_0x322af4(0x20b)]!==_0x322af4(0x226))throw CliErrors[_0x322af4(0x21c)](_0x322af4(0x205)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x2808d7['scope']+'\x22.','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20'+_0x57e774+_0x322af4(0x223));const _0xb01c90=scanSkillDirectory(_0x57e774,{'excludedFilePaths':_0x5d314f['excludedFilePaths']}),_0x4d1498=buildSkillPackage(_0xb01c90),_0x5b421f=readFileSync(_0x5615b2,_0x322af4(0x207)),_0x5bb39d=_0x3b6bb2[_0x322af4(0x224)],_0x5f4471=_0x5d314f[_0x322af4(0x228)]?undefined:_0x2808d7,_0x5d715c=readSkillDisplayName(_0x5b421f);return{'skillCode':_0x5bb39d,'metadata':_0x2808d7,'frontmatterDisplayName':_0x5d715c,'input':{'skillCode':_0x5bb39d,'skillName':_0x5d715c??_0x5f4471?.[_0x322af4(0x218)],'description':_0x5f4471?.['description'],'content':_0x5b421f,'files':_0x4d1498[_0x322af4(0x222)],'packageBase64':_0x4d1498[_0x322af4(0x22c)],'tags':_0x5f4471?.[_0x322af4(0x220)],'version':_0x5f4471?.['version'],'sourceSessionId':_0x5f4471?.[_0x322af4(0x206)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x10296e,_0x50e964,_0x508e9e,_0x463ff1={}){const _0x990321=a164_0x40b9,_0x43262d=resolvePushDirectoryRoot(_0x10296e),_0x24617d=readPushMetadataIfPresent(resolve(_0x43262d,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x104554=requireRemoteScope(_0x50e964),_0x20d2c4=readLocalSkillContent(_0x43262d),_0x2e203e={..._0x50e964,'appCode':_0x50e964[_0x990321(0x1f9)]??_0x508e9e,'skillName':_0x50e964['skillName']??_0x24617d?.[_0x990321(0x218)],'description':_0x50e964[_0x990321(0x1fc)]??_0x24617d?.[_0x990321(0x1fc)],'example':_0x50e964[_0x990321(0x201)]??_0x24617d?.['example'],'tags':Array['isArray'](_0x50e964[_0x990321(0x220)])?_0x50e964[_0x990321(0x220)]:_0x24617d?.[_0x990321(0x220)],'sourceSessionId':_0x50e964[_0x990321(0x206)]??_0x24617d?.[_0x990321(0x206)],'content':_0x50e964[_0x990321(0x215)]??_0x20d2c4},_0x150469=buildMetadata(_0x2e203e,_0x104554,_0x508e9e,contentHash(_0x20d2c4),_0x463ff1[_0x990321(0x217)]);writeJsonAtomic(resolve(_0x43262d,METADATA_FILE),_0x150469);}export function recordPushedRuntimeSkill(_0x545a4a,_0x2b6b44,_0x1cf296,_0x4f2507={}){const _0x54bd8a=a164_0x40b9,_0xab5c19=resolvePushDirectoryRoot(_0x545a4a),_0x5c1944=scanSkillDirectory(_0xab5c19),_0x2fcd1b=_0x5c1944[_0x54bd8a(0x233)](_0x135b0b=>_0x135b0b[_0x54bd8a(0x20f)]===SKILL_FILE),_0x2f8e49=_0x2fcd1b?fileText(_0x2fcd1b):'',_0x322341=tryNormalizePackageManifest(_0x2b6b44[_0x54bd8a(0x21a)]),_0x45d6ea={..._0x2b6b44,'content':_0x2b6b44[_0x54bd8a(0x215)]??_0x2f8e49,'files':_0x322341},_0x5a764c=_0x322341?normalizeLocalFiles(_0x5c1944)[_0x54bd8a(0x20d)](_0x3873e9=>_0x322341['files'][_0x54bd8a(0x200)](_0x165e8c=>_0x165e8c[_0x54bd8a(0x20f)]===_0x3873e9[_0x54bd8a(0x20f)])):undefined,_0x4a063f=buildMetadata(_0x45d6ea,_0x4f2507['scope']??'personal',_0x1cf296,contentHash(_0x45d6ea[_0x54bd8a(0x215)]??''),_0x4f2507[_0x54bd8a(0x234)],_0x5a764c);writeJsonAtomic(resolve(_0xab5c19,METADATA_FILE),_0x4a063f);}export function deriveSkillCodeFromDirectory(_0x3c2d9e,_0x3c8c12){const _0x45be06=a164_0x40b9,_0x101ba1=basename(resolve(_0x3c2d9e)),_0x510774=_0x3c8c12+'--';return _0x101ba1[_0x45be06(0x20c)](_0x510774)?_0x101ba1[_0x45be06(0x1ff)](_0x510774[_0x45be06(0x225)]):_0x101ba1;}function resolvePushSkillCode(_0x4d1e0f,_0x165678,_0x9ea799,_0x14e777){const _0x369b80=a164_0x40b9,_0x4f453c=deriveSkillCodeFromSkillFile(_0x4d1e0f)||deriveSkillCodeFromDirectory(_0x4d1e0f,_0x165678);if(_0x14e777[_0x369b80(0x219)])return _0x4f453c;return _0x9ea799?.[_0x369b80(0x224)]?.[_0x369b80(0x1fa)]()||_0x4f453c;}function deriveSkillCodeFromSkillFile(_0x25e863){const _0x2e75db=a164_0x40b9,_0x260be9=resolve(_0x25e863,SKILL_FILE);if(!existsSync(_0x260be9)||!lstatSync(_0x260be9)[_0x2e75db(0x1f8)]())return undefined;const _0x51e0ec=readFileSync(_0x260be9,_0x2e75db(0x207)),_0x2eebad=_0x51e0ec[_0x2e75db(0x212)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x2eebad)return undefined;const _0x158382=parseFrontmatterObject(_0x2eebad[0x1]??''),_0x585f56=scalarToString(_0x158382?.[_0x2e75db(0x214)]);return _0x585f56?slugifySkillName(_0x585f56):undefined;}function readSkillDisplayName(_0x329183){const _0x3a42fc=a164_0x40b9,_0x3b6793=_0x329183[_0x3a42fc(0x212)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x3b6793)return undefined;const _0x107cc5=parseFrontmatterObject(_0x3b6793[0x1]??'');return scalarToString(_0x107cc5?.[_0x3a42fc(0x22b)]);}function slugifySkillName(_0xa8d7aa){const _0x2d4e23=a164_0x40b9,_0x4e8c93=_0xa8d7aa['trim']()['toLowerCase']()[_0x2d4e23(0x21b)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x2d4e23(0x21b)](/^-+/,'')[_0x2d4e23(0x21b)](/-+$/,'')[_0x2d4e23(0x21b)](/-{2,}/g,'-');if(!_0x4e8c93)throw CliErrors['validation'](_0x2d4e23(0x20e)+SKILL_FILE+'\x20name\x20for\x20SkillHub\x20slug\x20generation.');return _0x4e8c93;}function parseFrontmatterObject(_0x45cae1){const _0x5e77b2=a164_0x40b9;try{const _0x513ed9=a164_0x1df4e5(_0x45cae1);return _0x513ed9&&typeof _0x513ed9===_0x5e77b2(0x22a)&&!Array[_0x5e77b2(0x229)](_0x513ed9)?_0x513ed9:undefined;}catch{return undefined;}}function scalarToString(_0x50d870){const _0x2f6e12=a164_0x40b9;if(typeof _0x50d870===_0x2f6e12(0x20a))return _0x50d870[_0x2f6e12(0x1fa)]();if(typeof _0x50d870===_0x2f6e12(0x21e)||typeof _0x50d870===_0x2f6e12(0x21d))return String(_0x50d870);return undefined;}function resolvePushDirectoryRoot(_0x46da39){const _0x2124ce=a164_0x40b9,_0x417b82=resolve(_0x46da39);if(!existsSync(_0x417b82))throw CliErrors['validation'](_0x2124ce(0x208)+_0x46da39);const _0x3cfe7f=lstatSync(_0x417b82);if(_0x3cfe7f[_0x2124ce(0x1f2)]())return _0x417b82;if(_0x3cfe7f[_0x2124ce(0x1f3)]()){const _0x542283=realpathSync(_0x417b82);if(lstatSync(_0x542283)[_0x2124ce(0x1f2)]())return _0x542283;}throw CliErrors[_0x2124ce(0x21c)](_0x2124ce(0x208)+_0x46da39);}function requireRemoteScope(_0x21d821){const _0x389c13=a164_0x40b9;if(_0x21d821[_0x389c13(0x20b)]===_0x389c13(0x226)||_0x21d821[_0x389c13(0x20b)]===_0x389c13(0x209)||_0x21d821[_0x389c13(0x20b)]===_0x389c13(0x211))return _0x21d821[_0x389c13(0x20b)];throw CliErrors[_0x389c13(0x21c)](_0x389c13(0x230)+(_0x21d821[_0x389c13(0x224)]||_0x389c13(0x1f4))+_0x389c13(0x204)+(_0x21d821['scope']??'unknown')+'\x22.');}function readLocalSkillContent(_0x3542f2){const _0x5cde04=resolve(_0x3542f2,SKILL_FILE);return existsSync(_0x5cde04)&&lstatSync(_0x5cde04)['isFile']()?readFileSync(_0x5cde04,'utf8'):'';}function readPushMetadataIfPresent(_0x18a0cc,_0x3b40a1={}){const _0x43a6b4=a164_0x40b9;try{return readMetadataIfPresent(_0x18a0cc);}catch(_0x4cf8d4){if(_0x3b40a1[_0x43a6b4(0x216)])return undefined;throw _0x4cf8d4;}}function a164_0x219f(){const _0x495dee=['ignoreInvalidMetadata','refreshedAt','skillName','ignoreMetadataSkillCode','files','replace','validation','boolean','number','metadata','tags','dir','manifest','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','skillCode','length','personal','8574tNrcVS','ignoreMetadataForPayload','isArray','object','displayName','packageBase64','747600hFFljq','\x20has\x20scope=\x22','151002SgsvKz','Remote\x20Skill\x20','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','765040WfrJOD','find','pushedAt','ignoreMetadataScope','isDirectory','isSymbolicLink','(unknown)','1242702BQWKzQ','Unable\x20to\x20resolve\x20skillCode\x20from\x20','516308GlHpXV','isFile','appCode','trim','Skill\x20metadata\x20appCode\x20\x22','description','allowAppCodeRetarget','950IUGWaH','slice','some','example','Missing\x20','615636kBIfVB','\x20has\x20unsupported\x20scope\x20\x22','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','sourceSessionId','utf8','Skill\x20directory\x20not\x20found:\x20','company','string','scope','startsWith','filter','Invalid\x20','path',',\x20or\x20directory\x20name.','builtin','match','3utDEVK','name','content'];a164_0x219f=function(){return _0x495dee;};return a164_0x219f();}
|
|
1
|
+
(function(_0x4c1341,_0x3f022b){const _0x4ae1a4=a164_0xc6e6,_0x2576fa=_0x4c1341();while(!![]){try{const _0x52cc8f=parseInt(_0x4ae1a4(0x107))/0x1+-parseInt(_0x4ae1a4(0xe9))/0x2+parseInt(_0x4ae1a4(0xfc))/0x3+parseInt(_0x4ae1a4(0x11d))/0x4*(-parseInt(_0x4ae1a4(0xe6))/0x5)+parseInt(_0x4ae1a4(0x10f))/0x6*(-parseInt(_0x4ae1a4(0x10b))/0x7)+-parseInt(_0x4ae1a4(0xe8))/0x8*(parseInt(_0x4ae1a4(0x10c))/0x9)+parseInt(_0x4ae1a4(0x108))/0xa;if(_0x52cc8f===_0x3f022b)break;else _0x2576fa['push'](_0x2576fa['shift']());}catch(_0xbf8a65){_0x2576fa['push'](_0x2576fa['shift']());}}}(a164_0x5034,0x4b9bf));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a164_0x311f32}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(_0x126226,_0xe27818,_0x1a3501={}){const _0x184760=a164_0xc6e6,_0x47ce81=resolvePushDirectoryRoot(_0x126226),_0x3b51e0=readPushMetadataIfPresent(resolve(_0x47ce81,METADATA_FILE),{'ignoreInvalidMetadata':_0x1a3501[_0x184760(0x10e)]});if(_0x3b51e0?.['appCode']&&_0x3b51e0[_0x184760(0x122)]!==_0xe27818&&!_0x1a3501[_0x184760(0xfa)]&&!_0x1a3501[_0x184760(0xfe)])throw CliErrors[_0x184760(0x116)](_0x184760(0x10d)+_0x3b51e0[_0x184760(0x122)]+'\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22'+_0xe27818+'\x22.');const _0x180ae5=resolvePushSkillCode(_0x47ce81,_0xe27818,_0x3b51e0,_0x1a3501);if(!_0x180ae5)throw CliErrors['validation']('Unable\x20to\x20resolve\x20skillCode\x20from\x20'+SKILL_FILE+',\x20'+METADATA_FILE+',\x20or\x20directory\x20name.');return{'dir':_0x47ce81,'skillCode':_0x180ae5,'metadata':_0x3b51e0};}export function readPushDirectory(_0x1e5380,_0x2c8703,_0x4be91c={}){const _0x1350b6=a164_0xc6e6,_0x2a0dc1=resolvePushDirectoryIdentity(_0x1e5380,_0x2c8703,_0x4be91c),_0x344546=_0x2a0dc1['dir'],_0x7a4d57=resolve(_0x344546,SKILL_FILE);if(!existsSync(_0x7a4d57)||!lstatSync(_0x7a4d57)[_0x1350b6(0x121)]())throw CliErrors[_0x1350b6(0x116)](_0x1350b6(0xe7)+SKILL_FILE+':\x20'+_0x7a4d57);const _0x553aad=_0x2a0dc1[_0x1350b6(0x11b)],_0x617500=_0x4be91c[_0x1350b6(0xf0)]??_0x1350b6(0x100);if(!_0x4be91c['ignoreMetadataScope']&&_0x553aad?.[_0x1350b6(0x11a)]===_0x1350b6(0xec))throw CliErrors[_0x1350b6(0x116)]('Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20'+METADATA_FILE+'\x20has\x20scope=\x22'+_0x553aad[_0x1350b6(0x11a)]+'\x22.');if(!_0x4be91c[_0x1350b6(0xe5)]&&_0x617500===_0x1350b6(0x100)&&_0x553aad?.[_0x1350b6(0x11a)]&&_0x553aad['scope']!==_0x1350b6(0x100))throw CliErrors['validation']('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20'+METADATA_FILE+_0x1350b6(0x104)+_0x553aad[_0x1350b6(0x11a)]+'\x22.',_0x1350b6(0xf5)+_0x344546+'\x20to\x20submit\x20company\x20Skills\x20for\x20review.');const _0x4a9fcc=scanSkillDirectory(_0x344546,{'excludedFilePaths':_0x4be91c['excludedFilePaths']}),_0x115ee5=buildSkillPackage(_0x4a9fcc),_0x53a69e=readFileSync(_0x7a4d57,_0x1350b6(0x11f)),_0xb6fe6f=_0x2a0dc1[_0x1350b6(0x123)],_0x56c6ef=_0x4be91c[_0x1350b6(0xf1)]?undefined:_0x553aad,_0x4f0409=readSkillDisplayName(_0x53a69e);return{'skillCode':_0xb6fe6f,'metadata':_0x553aad,'frontmatterDisplayName':_0x4f0409,'input':{'skillCode':_0xb6fe6f,'skillName':_0x4f0409??_0x56c6ef?.['skillName'],'description':_0x56c6ef?.[_0x1350b6(0x106)],'content':_0x53a69e,'files':_0x115ee5[_0x1350b6(0x118)],'packageBase64':_0x115ee5[_0x1350b6(0x119)],'tags':_0x56c6ef?.[_0x1350b6(0x114)],'version':_0x56c6ef?.['version'],'sourceSessionId':_0x56c6ef?.[_0x1350b6(0xea)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x1e276a,_0x4da08f,_0x25caef,_0xcc7edc={}){const _0x5bcabb=a164_0xc6e6,_0x1b0319=resolvePushDirectoryRoot(_0x1e276a),_0x55c4ac=readPushMetadataIfPresent(resolve(_0x1b0319,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x2661ad=requireRemoteScope(_0x4da08f),_0x5b336d=readLocalSkillContent(_0x1b0319),_0x4be241={..._0x4da08f,'appCode':_0x4da08f['appCode']??_0x25caef,'skillName':_0x4da08f['skillName']??_0x55c4ac?.[_0x5bcabb(0x115)],'description':_0x4da08f[_0x5bcabb(0x106)]??_0x55c4ac?.[_0x5bcabb(0x106)],'example':_0x4da08f[_0x5bcabb(0xed)]??_0x55c4ac?.['example'],'tags':Array[_0x5bcabb(0xfd)](_0x4da08f[_0x5bcabb(0x114)])?_0x4da08f[_0x5bcabb(0x114)]:_0x55c4ac?.[_0x5bcabb(0x114)],'sourceSessionId':_0x4da08f[_0x5bcabb(0xea)]??_0x55c4ac?.[_0x5bcabb(0xea)],'content':_0x4da08f[_0x5bcabb(0xee)]??_0x5b336d},_0x4af983=buildMetadata(_0x4be241,_0x2661ad,_0x25caef,contentHash(_0x5b336d),_0xcc7edc[_0x5bcabb(0x103)]);writeJsonAtomic(resolve(_0x1b0319,METADATA_FILE),_0x4af983);}export function recordPushedRuntimeSkill(_0x5bfbf7,_0x27e8ac,_0x5a39ed,_0x2fcd53={}){const _0x7969ef=a164_0xc6e6,_0x15267f=resolvePushDirectoryRoot(_0x5bfbf7),_0x45094a=scanSkillDirectory(_0x15267f),_0x43ced3=_0x45094a['find'](_0x5e46e3=>_0x5e46e3[_0x7969ef(0xef)]===SKILL_FILE),_0xc20eaf=_0x43ced3?fileText(_0x43ced3):'',_0x420867=tryNormalizePackageManifest(_0x27e8ac[_0x7969ef(0xf7)]),_0x3b23f3={..._0x27e8ac,'content':_0x27e8ac[_0x7969ef(0xee)]??_0xc20eaf,'files':_0x420867},_0x50c6da=_0x420867?normalizeLocalFiles(_0x45094a)[_0x7969ef(0x120)](_0x31123d=>_0x420867[_0x7969ef(0xf7)][_0x7969ef(0x11e)](_0x45ee2c=>_0x45ee2c['path']===_0x31123d[_0x7969ef(0xef)])):undefined,_0x1c7c5e=buildMetadata(_0x3b23f3,_0x2fcd53['scope']??'personal',_0x5a39ed,contentHash(_0x3b23f3[_0x7969ef(0xee)]??''),_0x2fcd53[_0x7969ef(0xff)],_0x50c6da);writeJsonAtomic(resolve(_0x15267f,METADATA_FILE),_0x1c7c5e);}export function deriveSkillCodeFromDirectory(_0xfe7ff1,_0xd8817a){const _0x722f28=a164_0xc6e6,_0xfc4219=basename(resolve(_0xfe7ff1)),_0x31ca2b=_0xd8817a+'--';return _0xfc4219[_0x722f28(0x117)](_0x31ca2b)?_0xfc4219[_0x722f28(0x111)](_0x31ca2b[_0x722f28(0x109)]):_0xfc4219;}function resolvePushSkillCode(_0x1ded7e,_0x2d93fe,_0x2e66c6,_0x2e74bd){const _0x292e2e=a164_0xc6e6,_0x2e8139=deriveSkillCodeFromSkillFile(_0x1ded7e)||deriveSkillCodeFromDirectory(_0x1ded7e,_0x2d93fe);if(_0x2e74bd[_0x292e2e(0x101)])return _0x2e8139;return _0x2e66c6?.[_0x292e2e(0x123)]?.['trim']()||_0x2e8139;}function deriveSkillCodeFromSkillFile(_0x48cb2b){const _0x3d6d4b=a164_0xc6e6,_0x2f50ae=resolve(_0x48cb2b,SKILL_FILE);if(!existsSync(_0x2f50ae)||!lstatSync(_0x2f50ae)[_0x3d6d4b(0x121)]())return undefined;const _0x1ddfc3=readFileSync(_0x2f50ae,_0x3d6d4b(0x11f)),_0x5b170f=_0x1ddfc3[_0x3d6d4b(0xf9)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x5b170f)return undefined;const _0xf25bfe=parseFrontmatterObject(_0x5b170f[0x1]??''),_0x486152=scalarToString(_0xf25bfe?.[_0x3d6d4b(0x113)]);return _0x486152?slugifySkillName(_0x486152):undefined;}function readSkillDisplayName(_0x4ed627){const _0x24754a=a164_0xc6e6,_0x554401=_0x4ed627[_0x24754a(0xf9)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x554401)return undefined;const _0x14aa32=parseFrontmatterObject(_0x554401[0x1]??'');return scalarToString(_0x14aa32?.['displayName']);}function slugifySkillName(_0x29d6fc){const _0x14d571=a164_0xc6e6,_0x4fc627=_0x29d6fc[_0x14d571(0x10a)]()[_0x14d571(0x102)]()[_0x14d571(0x110)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x14d571(0x110)](/^-+/,'')['replace'](/-+$/,'')['replace'](/-{2,}/g,'-');if(!_0x4fc627)throw CliErrors['validation'](_0x14d571(0xf2)+SKILL_FILE+_0x14d571(0xf8));return _0x4fc627;}function parseFrontmatterObject(_0x201bc3){const _0x899abb=a164_0xc6e6;try{const _0x2620c9=a164_0x311f32(_0x201bc3);return _0x2620c9&&typeof _0x2620c9==='object'&&!Array[_0x899abb(0xfd)](_0x2620c9)?_0x2620c9:undefined;}catch{return undefined;}}function scalarToString(_0x31afe9){const _0x363820=a164_0xc6e6;if(typeof _0x31afe9===_0x363820(0xf3))return _0x31afe9['trim']();if(typeof _0x31afe9===_0x363820(0xf6)||typeof _0x31afe9==='boolean')return String(_0x31afe9);return undefined;}function a164_0x5034(){const _0x311ee5=['Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','number','files','\x20name\x20for\x20SkillHub\x20slug\x20generation.','match','allowAppCodeRetarget','\x20has\x20unsupported\x20scope\x20\x22','1102101LzqFEB','isArray','ignoreMetadataAppCodeMismatch','pushedAt','personal','ignoreMetadataSkillCode','toLowerCase','refreshedAt','\x20has\x20scope=\x22','unknown','description','103488tReIcj','20545500azTubq','length','trim','88991BHCguj','423pQfZVZ','Skill\x20metadata\x20appCode\x20\x22','ignoreInvalidMetadata','222zsxPXR','replace','slice','company','name','tags','skillName','validation','startsWith','manifest','packageBase64','scope','metadata','Skill\x20directory\x20not\x20found:\x20','186716wvEOZV','some','utf8','filter','isFile','appCode','skillCode','ignoreMetadataScope','65WFmsBl','Missing\x20','91288iGICxm','1204370NzvyAv','sourceSessionId','isDirectory','builtin','example','content','path','targetScope','ignoreMetadataForPayload','Invalid\x20','string','(unknown)'];a164_0x5034=function(){return _0x311ee5;};return a164_0x5034();}function resolvePushDirectoryRoot(_0x5246e3){const _0x383d32=a164_0xc6e6,_0x4ac1e7=resolve(_0x5246e3);if(!existsSync(_0x4ac1e7))throw CliErrors['validation'](_0x383d32(0x11c)+_0x5246e3);const _0x45f6eb=lstatSync(_0x4ac1e7);if(_0x45f6eb['isDirectory']())return _0x4ac1e7;if(_0x45f6eb['isSymbolicLink']()){const _0x4c85bd=realpathSync(_0x4ac1e7);if(lstatSync(_0x4c85bd)[_0x383d32(0xeb)]())return _0x4c85bd;}throw CliErrors['validation']('Skill\x20directory\x20not\x20found:\x20'+_0x5246e3);}function requireRemoteScope(_0x3d2d7e){const _0x5d5caa=a164_0xc6e6;if(_0x3d2d7e[_0x5d5caa(0x11a)]==='personal'||_0x3d2d7e[_0x5d5caa(0x11a)]===_0x5d5caa(0x112)||_0x3d2d7e[_0x5d5caa(0x11a)]===_0x5d5caa(0xec))return _0x3d2d7e[_0x5d5caa(0x11a)];throw CliErrors['validation']('Remote\x20Skill\x20'+(_0x3d2d7e['skillCode']||_0x5d5caa(0xf4))+_0x5d5caa(0xfb)+(_0x3d2d7e['scope']??_0x5d5caa(0x105))+'\x22.');}function a164_0xc6e6(_0x38a064,_0x412033){_0x38a064=_0x38a064-0xe5;const _0x5034b7=a164_0x5034();let _0xc6e6b2=_0x5034b7[_0x38a064];return _0xc6e6b2;}function readLocalSkillContent(_0x497862){const _0x57e063=a164_0xc6e6,_0x2fbf09=resolve(_0x497862,SKILL_FILE);return existsSync(_0x2fbf09)&&lstatSync(_0x2fbf09)[_0x57e063(0x121)]()?readFileSync(_0x2fbf09,_0x57e063(0x11f)):'';}function readPushMetadataIfPresent(_0x4a094c,_0x415485={}){const _0x4b6263=a164_0xc6e6;try{return readMetadataIfPresent(_0x4a094c);}catch(_0x3e585c){if(_0x415485[_0x4b6263(0x10e)])return undefined;throw _0x3e585c;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1ed31b,_0x23c742){const _0x781ba6=a165_0x16c2,_0x2404ee=_0x1ed31b();while(!![]){try{const _0x4f2fa5=-parseInt(_0x781ba6(0x1a5))/0x1+-parseInt(_0x781ba6(0x1a1))/0x2*(-parseInt(_0x781ba6(0x19f))/0x3)+parseInt(_0x781ba6(0x19a))/0x4*(parseInt(_0x781ba6(0x1a2))/0x5)+-parseInt(_0x781ba6(0x1a6))/0x6*(parseInt(_0x781ba6(0x198))/0x7)+parseInt(_0x781ba6(0x1a0))/0x8*(-parseInt(_0x781ba6(0x19b))/0x9)+-parseInt(_0x781ba6(0x19c))/0xa*(-parseInt(_0x781ba6(0x19d))/0xb)+-parseInt(_0x781ba6(0x199))/0xc*(-parseInt(_0x781ba6(0x197))/0xd);if(_0x4f2fa5===_0x23c742)break;else _0x2404ee['push'](_0x2404ee['shift']());}catch(_0x4efc51){_0x2404ee['push'](_0x2404ee['shift']());}}}(a165_0x5b68,0x743e6));import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x47cd5e){const _0xc604f9=a165_0x16c2,_0x29ab5a=_0x47cd5e&&_0x47cd5e[_0xc604f9(0x1a3)]>0x0?_0x47cd5e:[_0xc604f9(0x1a7),_0xc604f9(0x1a8),_0xc604f9(0x1a9)],_0x361efe=[];for(const _0x305b12 of _0x29ab5a){if(!isRuntimeSkillScope(_0x305b12))throw CliErrors[_0xc604f9(0x19e)]('Unsupported\x20runtime\x20Skill\x20scope:\x20'+_0x305b12);!_0x361efe['includes'](_0x305b12)&&_0x361efe[_0xc604f9(0x1a4)](_0x305b12);}return _0x361efe;}function a165_0x5b68(){const _0x12eec5=['13kyDDLm','1918TjIfnA','6399132WzXOSo','101628tfYHTu','7379352pVFblB','382300staXWf','242nOeqTF','validation','210WXlBkM','8oPZVCC','12996iXoSkx','65JfubAR','length','push','304998WTojZz','12228NCxEgs','personal','company','builtin'];a165_0x5b68=function(){return _0x12eec5;};return a165_0x5b68();}function a165_0x16c2(_0x57bab1,_0x34159c){_0x57bab1=_0x57bab1-0x197;const _0x5b6823=a165_0x5b68();let _0x16c256=_0x5b6823[_0x57bab1];return _0x16c256;}export function isRuntimeSkillScope(_0x54e327){const _0x138ecd=a165_0x16c2;return _0x54e327===_0x138ecd(0x1a7)||_0x54e327===_0x138ecd(0x1a8)||_0x54e327==='builtin';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x387c5a,_0x17dc32){const _0x2fce56=a167_0x16c3,_0x54aa51=_0x387c5a();while(!![]){try{const _0x45356e=parseInt(_0x2fce56(0x65))/0x1+parseInt(_0x2fce56(0x67))/0x2+-parseInt(_0x2fce56(0x74))/0x3+-parseInt(_0x2fce56(0x75))/0x4*(-parseInt(_0x2fce56(0x72))/0x5)+parseInt(_0x2fce56(0x73))/0x6*(parseInt(_0x2fce56(0x6f))/0x7)+-parseInt(_0x2fce56(0x6b))/0x8*(parseInt(_0x2fce56(0x6e))/0x9)+-parseInt(_0x2fce56(0x6a))/0xa;if(_0x45356e===_0x17dc32)break;else _0x54aa51['push'](_0x54aa51['shift']());}catch(_0xb1676d){_0x54aa51['push'](_0x54aa51['shift']());}}}(a167_0x5970,0xb149d));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date('1980-01-01T00:00:00.000Z');export function createDeterministicZipPackage(_0x20c2e7){const _0x75ea9b=a167_0x16c3,_0xdeefac={};for(const _0x42c7f7 of normalizeLocalFiles(_0x20c2e7)){_0xdeefac[_0x42c7f7[_0x75ea9b(0x6d)]]=fileContent(_0x42c7f7);}return Buffer['from'](zipSync(_0xdeefac,{'level':0x0,'mtime':ZIP_MTIME}));}function a167_0x16c3(_0x4128b3,_0x5d25b2){_0x4128b3=_0x4128b3-0x64;const _0x5970b1=a167_0x5970();let _0x16c398=_0x5970b1[_0x4128b3];return _0x16c398;}export function parseZipPackage(_0x510b4c){const _0x59cce1=a167_0x16c3;if(_0x510b4c[_0x59cce1(0x69)]<0x16)throw CliErrors[_0x59cce1(0x71)]('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');let _0x14e8fd;try{_0x14e8fd=unzipSync(_0x510b4c,{'filter'(_0x369bd0){const _0xd34203=_0x59cce1,_0x10f407=normalizeSkillRelativePath(_0x369bd0[_0xd34203(0x66)]);if(_0x10f407['endsWith']('/'))throw CliErrors[_0xd34203(0x71)]('Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20'+_0x10f407);return!![];}});}catch(_0x52318c){if(isRuntimeSkillValidationError(_0x52318c))throw _0x52318c;throw CliErrors[_0x59cce1(0x71)](_0x59cce1(0x76));}return Object['entries'](_0x14e8fd)['map'](([_0x3228a6,_0x59c786])=>({'path':normalizeSkillRelativePath(_0x3228a6),'bytes':Buffer[_0x59cce1(0x64)](_0x59c786)}))['sort'](compareSkillFiles);}function isRuntimeSkillValidationError(_0x3897a){const _0x5b3eb7=a167_0x16c3;return typeof _0x3897a===_0x5b3eb7(0x70)&&_0x3897a!==null&&_0x5b3eb7(0x6c)in _0x3897a&&_0x3897a[_0x5b3eb7(0x6c)]===_0x5b3eb7(0x68);}function a167_0x5970(){const _0xca4ddd=['code','path','9jcCTyj','13839SvLpVQ','object','validation','5RcSOma','558DZuOjV','3103389EVQOFC','2208596gAJcQc','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','from','1039213eVKCFx','name','1760044uMjafw','validation_error','length','8841140FuTYdS','83960kXOlgH'];a167_0x5970=function(){return _0xca4ddd;};return a167_0x5970();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5eb9ee,_0x48c04d){const _0x53823e=a168_0x5002,_0xc6af60=_0x5eb9ee();while(!![]){try{const _0x495c97=parseInt(_0x53823e(0xc1))/0x1*(-parseInt(_0x53823e(0xa0))/0x2)+parseInt(_0x53823e(0xa9))/0x3+-parseInt(_0x53823e(0xbf))/0x4*(parseInt(_0x53823e(0xad))/0x5)+-parseInt(_0x53823e(0xb8))/0x6*(parseInt(_0x53823e(0xbd))/0x7)+parseInt(_0x53823e(0x9d))/0x8+-parseInt(_0x53823e(0xc6))/0x9*(parseInt(_0x53823e(0xa4))/0xa)+parseInt(_0x53823e(0xb0))/0xb;if(_0x495c97===_0x48c04d)break;else _0xc6af60['push'](_0xc6af60['shift']());}catch(_0x196136){_0xc6af60['push'](_0xc6af60['shift']());}}}(a168_0xddce,0x3b2d7));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(_0x142ad5){const _0x22f830=a168_0x5002,_0x205418=normalizeLocalFiles(_0x142ad5);if(!_0x205418['some'](_0x207a47=>_0x207a47[_0x22f830(0xc7)]===SKILL_FILE))throw CliErrors[_0x22f830(0xc9)]('Missing\x20'+SKILL_FILE+_0x22f830(0xa2));const _0x5efbc2=localFilesToManifestFiles(_0x205418),_0x1ddbb1=createDeterministicZipPackage(_0x205418);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x5efbc2),'zipSha256':bufferSha256(_0x1ddbb1),'zipSize':_0x1ddbb1[_0x22f830(0xc8)],'files':_0x5efbc2},'packageBytes':_0x1ddbb1,'packageBase64':_0x1ddbb1[_0x22f830(0xbc)](_0x22f830(0xbe))};}function a168_0xddce(){const _0x48ab85=['toLowerCase','map','some','121552BNdRZW','zipSize','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','2JEcHRW','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','\x20in\x20Skill\x20file\x20package.','Runtime\x20Skill\x20package\x20is\x20missing\x20','113660zcWtkV','isArray','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','schemaVersion','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','740163GziQwl','bytes','zipSha256','size','5dCamjD','files','isSafeInteger','14339182ScVGbQ','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','push','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','treeSha256','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','set','582qjaaqz','has','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','Duplicate\x20Skill\x20package\x20entry:\x20','toString','24437DFCRsq','base64','1910620MSuCxn','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','40798AJIyzX','object','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','get','trim','369HVlPGz','path','length','validation','ossPath'];a168_0xddce=function(){return _0x48ab85;};return a168_0xddce();}export function verifyRuntimeSkillPackage(_0x4fca47,_0x3926b0){const _0x34b23e=normalizePackageManifest(_0x4fca47,{'requireOssPath':![]});if(!_0x34b23e)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackage(_0x34b23e,_0x3926b0);}function a168_0x5002(_0xb752b5,_0x815871){_0xb752b5=_0xb752b5-0x9b;const _0xddced5=a168_0xddce();let _0x50023b=_0xddced5[_0xb752b5];return _0x50023b;}export function verifyRuntimeSkillBundle(_0x1f8c07,_0x2bc5ff){const _0x2f2f25=a168_0x5002,_0x557b10=normalizePackageManifest(_0x1f8c07,{'requireOssPath':![]});if(!_0x557b10)throw CliErrors[_0x2f2f25(0xc9)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x557b10,_0x2bc5ff);}export function tryNormalizePackageManifest(_0x60389){return normalizePackageManifest(_0x60389,{'requireOssPath':![]});}export function requirePackageBytes(_0x1b919c,_0x53358a){const _0x213ea7=a168_0x5002;if(!_0x53358a||_0x53358a[_0x213ea7(0xc8)]===0x0)throw CliErrors[_0x213ea7(0xc9)](_0x213ea7(0xb1)+_0x1b919c);return _0x53358a;}export function extractDownloadedPackage(_0x2f22d6){const _0x2997e5=a168_0x5002,_0x4b4cf3=parseZipPackage(_0x2f22d6)[_0x2997e5(0x9b)](_0x1ccfd9=>({'path':_0x1ccfd9[_0x2997e5(0xc7)],'bytes':_0x1ccfd9[_0x2997e5(0xaa)]}));if(!_0x4b4cf3[_0x2997e5(0x9c)](_0x512ad0=>_0x512ad0[_0x2997e5(0xc7)]===SKILL_FILE))throw CliErrors[_0x2997e5(0xc9)](_0x2997e5(0xa3)+SKILL_FILE+'.');return normalizeLocalFiles(_0x4b4cf3);}export function localFilesToManifestFiles(_0x500502){const _0x8b2c19=a168_0x5002;return normalizeLocalFiles(_0x500502)['map'](_0x175a69=>({'path':_0x175a69[_0x8b2c19(0xc7)],'sha256':fileHash(_0x175a69),'size':fileContent(_0x175a69)[_0x8b2c19(0xc8)]}));}function normalizePackageManifest(_0x59cf2c,_0x3be6c8){const _0x203e50=a168_0x5002;if(!_0x59cf2c||typeof _0x59cf2c!==_0x203e50(0xc2)||Array[_0x203e50(0xa5)](_0x59cf2c))return undefined;const _0x1280ea=_0x59cf2c,_0x4b9dd4=typeof _0x1280ea[_0x203e50(0xca)]==='string'?_0x1280ea[_0x203e50(0xca)][_0x203e50(0xc5)]():undefined;if(_0x3be6c8['requireOssPath']&&!_0x4b9dd4)return undefined;if(!Array[_0x203e50(0xa5)](_0x1280ea[_0x203e50(0xae)])||_0x1280ea[_0x203e50(0xae)][_0x203e50(0xc8)]===0x0)return undefined;if(!isSha256Hex(_0x1280ea['treeSha256']))throw CliErrors[_0x203e50(0xc9)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.');if(!isSha256Hex(_0x1280ea[_0x203e50(0xab)]))throw CliErrors[_0x203e50(0xc9)](_0x203e50(0xb2));if(!Number['isSafeInteger'](_0x1280ea[_0x203e50(0x9e)])||_0x1280ea[_0x203e50(0x9e)]<0x0)throw CliErrors[_0x203e50(0xc9)](_0x203e50(0xa8));const _0x479a0c=normalizeManifestFiles(_0x1280ea[_0x203e50(0xae)]);if(!_0x479a0c['some'](_0x1b551a=>_0x1b551a[_0x203e50(0xc7)]===SKILL_FILE))throw CliErrors[_0x203e50(0xc9)](_0x203e50(0xb6)+SKILL_FILE+'.');const _0x5bb141=fileTreeHash(_0x479a0c);if(_0x5bb141!==_0x1280ea[_0x203e50(0xb5)]['toLowerCase']())throw CliErrors['validation'](_0x203e50(0xba));return{'schemaVersion':Number[_0x203e50(0xaf)](_0x1280ea[_0x203e50(0xa7)])?_0x1280ea['schemaVersion']:0x2,'ossPath':_0x4b9dd4,'treeSha256':_0x5bb141,'zipSha256':_0x1280ea['zipSha256'][_0x203e50(0xcb)](),'zipSize':_0x1280ea[_0x203e50(0x9e)],'files':_0x479a0c};}function extractAndVerifyPackage(_0x55c7cd,_0x586491){const _0x1d4ba0=a168_0x5002,_0x2ecb7a=normalizePackageManifest(_0x55c7cd,{'requireOssPath':![]});if(!_0x2ecb7a)throw CliErrors[_0x1d4ba0(0xc9)](_0x1d4ba0(0xb4));if(_0x586491[_0x1d4ba0(0xc8)]!==_0x2ecb7a['zipSize'])throw CliErrors[_0x1d4ba0(0xc9)]('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x1ee764=bufferSha256(_0x586491);if(_0x1ee764!==_0x2ecb7a[_0x1d4ba0(0xab)])throw CliErrors[_0x1d4ba0(0xc9)](_0x1d4ba0(0xc3));return extractAndVerifyPackageFiles(_0x2ecb7a,_0x586491);}function extractAndVerifyPackageFiles(_0x5561f3,_0x22a080){const _0x696ae7=a168_0x5002,_0x49bd8a=parseZipPackage(_0x22a080);if(_0x49bd8a[_0x696ae7(0xc8)]!==_0x5561f3[_0x696ae7(0xae)][_0x696ae7(0xc8)])throw CliErrors[_0x696ae7(0xc9)](_0x696ae7(0x9f));const _0x32fedd=new Map();for(const _0x47bd36 of _0x49bd8a){if(_0x32fedd[_0x696ae7(0xb9)](_0x47bd36[_0x696ae7(0xc7)]))throw CliErrors[_0x696ae7(0xc9)](_0x696ae7(0xbb)+_0x47bd36[_0x696ae7(0xc7)]);_0x32fedd[_0x696ae7(0xb7)](_0x47bd36[_0x696ae7(0xc7)],_0x47bd36);}const _0xf22456=[];for(const _0x411223 of _0x5561f3['files']){const _0xd39b81=_0x32fedd[_0x696ae7(0xc4)](_0x411223[_0x696ae7(0xc7)]);if(!_0xd39b81)throw CliErrors[_0x696ae7(0xc9)](_0x696ae7(0xc0)+_0x411223[_0x696ae7(0xc7)]);if(_0xd39b81[_0x696ae7(0xaa)][_0x696ae7(0xc8)]!==_0x411223[_0x696ae7(0xac)])throw CliErrors[_0x696ae7(0xc9)](_0x696ae7(0xa6)+_0x411223['path']);const _0x2f2a64=bufferSha256(_0xd39b81[_0x696ae7(0xaa)]);if(_0x2f2a64!==_0x411223['sha256'])throw CliErrors['validation'](_0x696ae7(0xa1)+_0x411223['path']);_0xf22456[_0x696ae7(0xb3)]({'path':_0x411223[_0x696ae7(0xc7)],'bytes':_0xd39b81['bytes']});}return normalizeLocalFiles(_0xf22456);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5403cf,_0x2e46b3){var _0x41ee49=a169_0x5e77,_0x5b6ece=_0x5403cf();while(!![]){try{var _0x5dd281=-parseInt(_0x41ee49(0x101))/0x1*(-parseInt(_0x41ee49(0xff))/0x2)+parseInt(_0x41ee49(0xfa))/0x3*(-parseInt(_0x41ee49(0xfb))/0x4)+-parseInt(_0x41ee49(0xfd))/0x5*(parseInt(_0x41ee49(0xf6))/0x6)+parseInt(_0x41ee49(0xfe))/0x7*(parseInt(_0x41ee49(0xfc))/0x8)+-parseInt(_0x41ee49(0x103))/0x9*(parseInt(_0x41ee49(0xf8))/0xa)+parseInt(_0x41ee49(0xf7))/0xb*(parseInt(_0x41ee49(0x102))/0xc)+parseInt(_0x41ee49(0x100))/0xd*(parseInt(_0x41ee49(0xf9))/0xe);if(_0x5dd281===_0x2e46b3)break;else _0x5b6ece['push'](_0x5b6ece['shift']());}catch(_0x393f3d){_0x5b6ece['push'](_0x5b6ece['shift']());}}}(a169_0x13bb,0xcd64e));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{resolveRuntimeSkillInstallTarget}from'./runtime-skill-sync/install-target.js';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';function a169_0x5e77(_0x1013fd,_0x549781){_0x1013fd=_0x1013fd-0xf6;var _0x13bb9c=a169_0x13bb();var _0x5e7798=_0x13bb9c[_0x1013fd];return _0x5e7798;}export{materializeRuntimeSkill,reuseMaterializedRuntimeSkill}from'./runtime-skill-sync/materialize.js';function a169_0x13bb(){var _0x43df20=['1227864xHQVjg','9668483BKEdqF','3244810YfIHzy','457954qEwrVY','3wEzINL','3119576ALrqGR','6224792uplSZU','10DmqcSK','7xjgcbZ','34tmLrWH','182aVhePA','52289yUvhJG','12RSwJyV','27kZvIYQ'];a169_0x13bb=function(){return _0x43df20;};return a169_0x13bb();}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
|
-
const
|
|
1
|
+
const a170_0xc2ca44=a170_0x41a8;(function(_0x189558,_0x1926c3){const _0x336f24=a170_0x41a8,_0x98ae10=_0x189558();while(!![]){try{const _0x270c65=parseInt(_0x336f24(0x19b))/0x1*(-parseInt(_0x336f24(0x198))/0x2)+-parseInt(_0x336f24(0x18b))/0x3+-parseInt(_0x336f24(0x1a2))/0x4*(-parseInt(_0x336f24(0x195))/0x5)+-parseInt(_0x336f24(0x197))/0x6+parseInt(_0x336f24(0x1a6))/0x7+-parseInt(_0x336f24(0x18e))/0x8*(-parseInt(_0x336f24(0x196))/0x9)+parseInt(_0x336f24(0x194))/0xa*(parseInt(_0x336f24(0x1ab))/0xb);if(_0x270c65===_0x1926c3)break;else _0x98ae10['push'](_0x98ae10['shift']());}catch(_0x203396){_0x98ae10['push'](_0x98ae10['shift']());}}}(a170_0x1802,0x5bffd));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a170_0x41a8(_0x111c9a,_0x51f121){_0x111c9a=_0x111c9a-0x18a;const _0x1802a1=a170_0x1802();let _0x41a8b1=_0x1802a1[_0x111c9a];return _0x41a8b1;}export const SKILL_LOCK_RELATIVE_PATH=join(a170_0xc2ca44(0x1a8),a170_0xc2ca44(0x1a3));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a170_0xc2ca44(0x1a8),a170_0xc2ca44(0x19e)),join(a170_0xc2ca44(0x193),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x33e3e1,_0x26e551){const _0xd919d9=a170_0xc2ca44;if(!existsSync(_0x33e3e1))return{'kind':'not-recorded'};let _0x1f8622;try{_0x1f8622=JSON[_0xd919d9(0x19a)](readFileSync(_0x33e3e1,_0xd919d9(0x19f)));}catch(_0x12666b){return{'kind':_0xd919d9(0x19c),'reason':_0x33e3e1+'\x20is\x20unreadable:\x20'+_0x12666b[_0xd919d9(0x1a9)]};}const _0x5c48c3=_0x1f8622;if(typeof _0x5c48c3?.[_0xd919d9(0x1ac)]!==_0xd919d9(0x1ad)||!SUPPORTED_LOCK_VERSIONS['includes'](_0x5c48c3['version']))return{'kind':_0xd919d9(0x19c),'reason':_0x33e3e1+_0xd919d9(0x1a5)+String(_0x5c48c3?.[_0xd919d9(0x1ac)])};if(!_0x5c48c3[_0xd919d9(0x19e)]||typeof _0x5c48c3[_0xd919d9(0x19e)]!==_0xd919d9(0x190))return{'kind':'unusable','reason':_0x33e3e1+_0xd919d9(0x192)};return _0x5c48c3[_0xd919d9(0x19e)][_0x26e551]?{'kind':_0xd919d9(0x191)}:{'kind':_0xd919d9(0x19d)};}export function resolveInstalledSkill(_0x4e6a0d,_0x307224){const _0x27e0a6=a170_0xc2ca44,_0x16efd3=_0x307224?.['home']??homedir(),_0x37562b=_0x307224?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x27e0a6(0x18a)](_0x4d8c94=>join(_0x16efd3,_0x4d8c94)),_0x126ccd=_0x307224?.[_0x27e0a6(0x1a7)]??join(_0x16efd3,SKILL_LOCK_RELATIVE_PATH),_0x494251=_0x37562b[_0x27e0a6(0x18a)](_0x430f9e=>join(_0x430f9e,_0x4e6a0d,'SKILL.md')),_0x17e31b=_0x494251[_0x27e0a6(0x18d)](_0x4904bc=>existsSync(_0x4904bc));if(_0x17e31b)return{'state':_0x27e0a6(0x1aa),'path':_0x17e31b};const _0x1f1e76=readLockLookup(_0x126ccd,_0x4e6a0d);if(_0x1f1e76['kind']===_0x27e0a6(0x19c))return{'state':_0x27e0a6(0x1a1),'reason':_0x1f1e76[_0x27e0a6(0x18f)]};if(_0x1f1e76[_0x27e0a6(0x1a4)]===_0x27e0a6(0x191))return{'state':_0x27e0a6(0x1a1),'reason':_0x126ccd+_0x27e0a6(0x199)+_0x4e6a0d+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x494251[_0x27e0a6(0x18c)](',\x20')+')')};return{'state':_0x27e0a6(0x1a0),'checked':_0x494251};}function a170_0x1802(){const _0x3d1a84=['lockFile','.agents','message','present','11957ciOfsn','version','number','map','1809804bEUsXi','join','find','7016ATMUKg','reason','object','recorded','\x20has\x20no\x20skills\x20map','.claude','5270gRuVEQ','2032405oGWosq','6471RIXvkB','3334326ZYhsBX','86wfBNSz','\x20records\x20\x22','parse','15823drnqIh','unusable','not-recorded','skills','utf8','absent','unverifiable','4JKffeA','.skill-lock.json','kind','\x20uses\x20unsupported\x20version\x20','4244198rSfWvr'];a170_0x1802=function(){return _0x3d1a84;};return a170_0x1802();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a171_0x2043(){const _0x281ec5=['test','entries','length','243844QvErNK','fromEntries','object','1125426GGqvbM','25bBOwaM','accessKey','269248RkAdDp','2843631tcwjeA','259104MgfWqU','hasOwnProperty','apps','200660KIRbDq','186823CuGlDt','map','call','isArray'];a171_0x2043=function(){return _0x281ec5;};return a171_0x2043();}(function(_0x3ce13b,_0x70dd15){const _0x278e41=a171_0x49f7,_0x5adcd0=_0x3ce13b();while(!![]){try{const _0x2ddb31=-parseInt(_0x278e41(0x67))/0x1+parseInt(_0x278e41(0x6e))/0x2+-parseInt(_0x278e41(0x71))/0x3+parseInt(_0x278e41(0x66))/0x4*(parseInt(_0x278e41(0x72))/0x5)+parseInt(_0x278e41(0x76))/0x6+parseInt(_0x278e41(0x75))/0x7+-parseInt(_0x278e41(0x74))/0x8;if(_0x2ddb31===_0x70dd15)break;else _0x5adcd0['push'](_0x5adcd0['shift']());}catch(_0x52fb62){_0x5adcd0['push'](_0x5adcd0['shift']());}}}(a171_0x2043,0x374ef));const REDACTED_ACCESS_KEY='<redacted>';export function maskCliAccessKey(_0x5709c9){const _0x1af9af=a171_0x49f7;if(typeof _0x5709c9!=='string'||_0x5709c9[_0x1af9af(0x6d)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x5709c9['slice'](0x0,0x8)+'*'['repeat'](_0x5709c9[_0x1af9af(0x6d)]-0x8);}function a171_0x49f7(_0x2ae0da,_0x11b4f){_0x2ae0da=_0x2ae0da-0x66;const _0x20433c=a171_0x2043();let _0x49f737=_0x20433c[_0x2ae0da];return _0x49f737;}export function redactCliConfigCredentials(_0x8fbf3e){const _0x3e85e0=a171_0x49f7,_0x96dfee={..._0x8fbf3e};return Object['prototype'][_0x3e85e0(0x77)][_0x3e85e0(0x69)](_0x96dfee,'accessKey')&&(_0x96dfee[_0x3e85e0(0x73)]=maskCliAccessKey(_0x96dfee['accessKey'])),_0x96dfee[_0x3e85e0(0x78)]&&typeof _0x96dfee[_0x3e85e0(0x78)]===_0x3e85e0(0x70)&&!Array[_0x3e85e0(0x6a)](_0x96dfee[_0x3e85e0(0x78)])&&(_0x96dfee[_0x3e85e0(0x78)]=redactLegacyAppCredentials(_0x96dfee['apps'])),_0x96dfee;}export function redactCliConfigValue(_0x41750a,_0x4a82b1){const _0x2f3958=a171_0x49f7;if(_0x41750a===_0x2f3958(0x73)||/^apps\.[^.]+\.accessKey$/[_0x2f3958(0x6b)](_0x41750a))return maskCliAccessKey(_0x4a82b1);if(_0x41750a===_0x2f3958(0x78)&&_0x4a82b1&&typeof _0x4a82b1===_0x2f3958(0x70)&&!Array[_0x2f3958(0x6a)](_0x4a82b1))return redactLegacyAppCredentials(_0x4a82b1);if(/^apps\.[^.]+$/[_0x2f3958(0x6b)](_0x41750a)&&_0x4a82b1&&typeof _0x4a82b1===_0x2f3958(0x70)&&!Array[_0x2f3958(0x6a)](_0x4a82b1)){const _0x5e14ce=_0x4a82b1;return Object['prototype'][_0x2f3958(0x77)]['call'](_0x5e14ce,_0x2f3958(0x73))?{..._0x5e14ce,'accessKey':maskCliAccessKey(_0x5e14ce['accessKey'])}:_0x4a82b1;}return _0x4a82b1;}function redactLegacyAppCredentials(_0x2c0716){const _0xd6d706=a171_0x49f7;return Object[_0xd6d706(0x6f)](Object[_0xd6d706(0x6c)](_0x2c0716)[_0xd6d706(0x68)](([_0x16fca6,_0x4c1ff6])=>{const _0x116145=_0xd6d706;if(!_0x4c1ff6||typeof _0x4c1ff6!==_0x116145(0x70)||Array[_0x116145(0x6a)](_0x4c1ff6))return[_0x16fca6,_0x4c1ff6];const _0x532ef1={..._0x4c1ff6};return Object['prototype'][_0x116145(0x77)][_0x116145(0x69)](_0x532ef1,'accessKey')&&(_0x532ef1['accessKey']=maskCliAccessKey(_0x532ef1['accessKey'])),[_0x16fca6,_0x532ef1];}));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a172_0x447c(){const _0x7007ea=['1851170KOnXVg','22539vMtpxp','12DOnGau','969156XLoDKe','291456CGbIVD','2056185RPkTIJ','2622800fSmTGL','846741JyvRTZ','9QmHicV','124oNOOTM'];a172_0x447c=function(){return _0x7007ea;};return a172_0x447c();}function a172_0x4fff(_0x59feec,_0x70fcce){_0x59feec=_0x59feec-0x11e;const _0x447ce6=a172_0x447c();let _0x4fff12=_0x447ce6[_0x59feec];return _0x4fff12;}(function(_0x3c3c7f,_0x2aa40c){const _0x532ca7=a172_0x4fff,_0x4e8611=_0x3c3c7f();while(!![]){try{const _0x4e7c4a=-parseInt(_0x532ca7(0x124))/0x1+-parseInt(_0x532ca7(0x123))/0x2+-parseInt(_0x532ca7(0x121))/0x3*(-parseInt(_0x532ca7(0x11f))/0x4)+parseInt(_0x532ca7(0x125))/0x5+parseInt(_0x532ca7(0x122))/0x6*(parseInt(_0x532ca7(0x127))/0x7)+parseInt(_0x532ca7(0x126))/0x8+-parseInt(_0x532ca7(0x11e))/0x9*(parseInt(_0x532ca7(0x120))/0xa);if(_0x4e7c4a===_0x2aa40c)break;else _0x4e8611['push'](_0x4e8611['shift']());}catch(_0x5b0c9f){_0x4e8611['push'](_0x4e8611['shift']());}}}(a172_0x447c,0x3db5d));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a173_0xa365(_0x4e1713,_0x1653b1){_0x4e1713=_0x4e1713-0x7d;const _0x1a8cf7=a173_0x1a8c();let _0xa36549=_0x1a8cf7[_0x4e1713];return _0xa36549;}(function(_0x469ebb,_0x365d4a){const _0x18a3be=a173_0xa365,_0xa20ecb=_0x469ebb();while(!![]){try{const _0x5397fb=-parseInt(_0x18a3be(0x7f))/0x1+parseInt(_0x18a3be(0x8d))/0x2+-parseInt(_0x18a3be(0x8f))/0x3*(-parseInt(_0x18a3be(0x86))/0x4)+parseInt(_0x18a3be(0x90))/0x5+-parseInt(_0x18a3be(0x87))/0x6*(-parseInt(_0x18a3be(0x94))/0x7)+-parseInt(_0x18a3be(0x8c))/0x8+-parseInt(_0x18a3be(0x81))/0x9*(parseInt(_0x18a3be(0x92))/0xa);if(_0x5397fb===_0x365d4a)break;else _0xa20ecb['push'](_0xa20ecb['shift']());}catch(_0x48313f){_0xa20ecb['push'](_0xa20ecb['shift']());}}}(a173_0x1a8c,0xf20c6));import a173_0x35ca21 from'semver';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CliErrors}from'../errors.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';export function evaluateCliVersionPolicy(_0x524705,_0x59a348){const _0x54e163=a173_0xa365,_0x3649c1=a173_0x35ca21[_0x54e163(0x7d)](_0x524705)===_0x524705,_0x226bdb=_0x59a348?.[_0x54e163(0x83)]??null,_0x367efc=_0x59a348?.['minimumVersion']??null,_0x30fe32=Boolean(_0x3649c1&&_0x226bdb&&a173_0x35ca21['lt'](_0x524705,_0x226bdb)),_0x1f9593=Boolean(_0x3649c1&&_0x367efc&&a173_0x35ca21['lt'](_0x524705,_0x367efc));return{'currentVersion':_0x524705,'stableVersion':_0x226bdb,'minimumVersion':_0x367efc,'needsUpgrade':_0x30fe32||_0x1f9593,'belowMinimum':_0x1f9593,'upgradeMessage':_0x59a348?.[_0x54e163(0x8b)],'minimumVersionMessage':_0x59a348?.[_0x54e163(0x93)]};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x32d4b5){const _0x54255d=a173_0xa365;return _0x54255d(0x91)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x32d4b5[_0x54255d(0x83)]??_0x54255d(0x88));}export function assertCliVersionSupported(_0xc58acd){const _0x2811e4=a173_0xa365;if(!_0xc58acd[_0x2811e4(0x80)])return;const _0x31f332=[_0xc58acd[_0x2811e4(0x93)],_0x2811e4(0x84)+_0xc58acd['currentVersion'],_0x2811e4(0x8e)+_0xc58acd[_0x2811e4(0x7e)],_0x2811e4(0x85)+(_0xc58acd['stableVersion']??_0x2811e4(0x82)),'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0xc58acd)]['filter'](Boolean)['join']('\x0a');throw CliErrors[_0x2811e4(0x89)](_0x2811e4(0x8a),_0x31f332);}function a173_0x1a8c(){const _0x395dd8=['3ahpgkc','5769435UIhgjS','npm\x20install\x20-g\x20','195950yHamqc','minimumVersionMessage','91CgrfHp','valid','minimumVersion','948772AueJtq','belowMinimum','252VBYRLN','unavailable','stableVersion','Current\x20version:\x20','Recommended\x20stable:\x20','2921540rQwwjT','863886wsuJGe','latest','validation','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','upgradeMessage','13673024OHAIEN','883930yKsnSe','Minimum\x20supported:\x20'];a173_0x1a8c=function(){return _0x395dd8;};return a173_0x1a8c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xbe2685,_0x136dc0){const _0x6fc3d1=a174_0x162d,_0x33ffd2=_0xbe2685();while(!![]){try{const _0x2988e2=parseInt(_0x6fc3d1(0x11c))/0x1*(parseInt(_0x6fc3d1(0x10b))/0x2)+-parseInt(_0x6fc3d1(0x118))/0x3*(parseInt(_0x6fc3d1(0x113))/0x4)+parseInt(_0x6fc3d1(0x11d))/0x5+parseInt(_0x6fc3d1(0x109))/0x6+-parseInt(_0x6fc3d1(0x11b))/0x7+-parseInt(_0x6fc3d1(0x114))/0x8*(-parseInt(_0x6fc3d1(0x115))/0x9)+-parseInt(_0x6fc3d1(0x108))/0xa*(-parseInt(_0x6fc3d1(0x116))/0xb);if(_0x2988e2===_0x136dc0)break;else _0x33ffd2['push'](_0x33ffd2['shift']());}catch(_0xe3b6db){_0x33ffd2['push'](_0x33ffd2['shift']());}}}(a174_0x213b,0x46d5a));import a174_0x237bd8 from'semver';import{LOVRABET_CLI_VERSION_POLICY_URL}from'../constant/distribution.js';const SUCCESS_CACHE_TTL_MS=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL_MS=0x3c*0x3e8,FETCH_TIMEOUT_MS=0x5dc;function pickString(_0x5aabff){const _0x1785b0=a174_0x162d;return typeof _0x5aabff===_0x1785b0(0x10c)&&_0x5aabff[_0x1785b0(0x107)]()?_0x5aabff[_0x1785b0(0x107)]():null;}function pickStrictSemver(_0x2b0950){const _0x563b64=pickString(_0x2b0950);return _0x563b64&&a174_0x237bd8['valid'](_0x563b64)===_0x563b64?_0x563b64:null;}export function normalizeCliVersionPolicy(_0x30e409){const _0x454f95=a174_0x162d;if(!_0x30e409||typeof _0x30e409!==_0x454f95(0x11e))return null;const _0x1ea47a=_0x30e409,_0x1b96e3=_0x1ea47a['cli']&&typeof _0x1ea47a['cli']===_0x454f95(0x11e)?_0x1ea47a[_0x454f95(0x10f)]:_0x1ea47a,_0x9d8da4=pickStrictSemver(_0x1b96e3[_0x454f95(0x119)]??_0x1b96e3[_0x454f95(0x112)]??_0x1b96e3[_0x454f95(0x110)]),_0x52cfa2=pickStrictSemver(_0x1b96e3[_0x454f95(0x11a)]??_0x1b96e3['minVersion']);if(!_0x9d8da4&&!_0x52cfa2)return null;if(_0x9d8da4&&_0x52cfa2&&a174_0x237bd8['gt'](_0x52cfa2,_0x9d8da4))return null;return{'stableVersion':_0x9d8da4,'minimumVersion':_0x52cfa2,'upgradeMessage':pickString(_0x1b96e3['upgradeMessage'])??undefined,'minimumVersionMessage':pickString(_0x1b96e3[_0x454f95(0x10d)])??undefined};}function a174_0x162d(_0x40a5b2,_0x5cb4ae){_0x40a5b2=_0x40a5b2-0x106;const _0x213bf7=a174_0x213b();let _0x162d1c=_0x213bf7[_0x40a5b2];return _0x162d1c;}export async function fetchCliVersionPolicy(){const _0x11ae69=a174_0x162d;try{const _0x573ce6=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x11ae69(0x111)},'signal':AbortSignal[_0x11ae69(0x106)](FETCH_TIMEOUT_MS)});if(!_0x573ce6['ok'])return null;return normalizeCliVersionPolicy(await _0x573ce6['json']());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x543b13=a174_0x162d,_0x1720b0=Date[_0x543b13(0x117)]();if(hasCachedPolicy){const _0x47c8b5=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x1720b0-cachedAt<_0x47c8b5)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x543b13(0x10e)](_0x4f68ff=>{const _0x5afb83=_0x543b13;return cachedPolicy=_0x4f68ff,cachedAt=Date[_0x5afb83(0x117)](),hasCachedPolicy=!![],_0x4f68ff;})[_0x543b13(0x10a)](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}function a174_0x213b(){const _0x55dd42=['minimumVersionMessage','then','cli','recommendedVersion','application/json','latestVersion','96436caihxQ','295080EEaZVf','45CofhxO','1364QPxbau','now','51WqFWdj','stableVersion','minimumVersion','3201835MVJUGf','19sdXFib','411205GGIMUa','object','timeout','trim','43780lBQDuO','1991616eYzLBT','finally','1676INumfB','string'];a174_0x213b=function(){return _0x55dd42;};return a174_0x213b();}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a175_0x2ca581=a175_0x5a6a;function a175_0x5a6a(_0x4f4b8a,_0x548028){_0x4f4b8a=_0x4f4b8a-0xc4;const _0x5e2772=a175_0x5e27();let _0x5a6af6=_0x5e2772[_0x4f4b8a];return _0x5a6af6;}(function(_0x448753,_0x2e40c3){const _0x31f17a=a175_0x5a6a,_0x20c892=_0x448753();while(!![]){try{const _0x213660=-parseInt(_0x31f17a(0xef))/0x1*(-parseInt(_0x31f17a(0xfd))/0x2)+parseInt(_0x31f17a(0xf1))/0x3*(parseInt(_0x31f17a(0xf2))/0x4)+parseInt(_0x31f17a(0xf0))/0x5*(-parseInt(_0x31f17a(0xe1))/0x6)+-parseInt(_0x31f17a(0xe9))/0x7+-parseInt(_0x31f17a(0xf9))/0x8+parseInt(_0x31f17a(0xe8))/0x9+parseInt(_0x31f17a(0xfc))/0xa;if(_0x213660===_0x2e40c3)break;else _0x20c892['push'](_0x20c892['shift']());}catch(_0xa485cf){_0x20c892['push'](_0x20c892['shift']());}}}(a175_0x5e27,0x9fe91));import a175_0x5ef57f from'winston';import a175_0x31dacb from'node:fs';import a175_0x4a39de from'node:path';function a175_0x5e27(){const _0x442144=['Failed:\x20','Failed\x20to\x20clear\x20logs:','utf8','19784DxWewQ','5aOcPre','32199cRvTyL','172HaNDMa','warn','info','dirname','getWinstonInstance','mkdirSync','error','3753152fbOzwL','Failed\x20to\x20read\x20logs:','command','10729070cIXOVp','18eEGKkj','setRawCommand','currentRawCommand','transports','logFilePath','rawCommand','yellow','blue','trim','writeFileSync','File','timestamp','logTask','unknown','addColors','join','printf','toISOString','details','winstonLogger','level','red','map','log','existsSync','message','clear','now','stringify','format','split','3750198SGKmbt','combine','setLogPath','Starting:\x20','filter','success','clearLogs','364221BFtyJN','26467GJghjv','initWinstonLogger','readLogs'];a175_0x5e27=function(){return _0x442144;};return a175_0x5e27();}import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a175_0x2ca581(0xd5)];[a175_0x2ca581(0xc6)]='';[a175_0x2ca581(0xc4)]='';constructor(){}[a175_0x2ca581(0xfe)](_0x2f6eb7){this['currentRawCommand']=_0x2f6eb7;}[a175_0x2ca581(0xe3)](_0x5e8235){const _0x3503be=a175_0x2ca581;this['logFilePath']=a175_0x4a39de[_0x3503be(0xd1)](_0x5e8235,PRODUCT_CONFIG['logFileName']),this[_0x3503be(0xd5)]&&this['winstonLogger'][_0x3503be(0xdc)](),this['initWinstonLogger']();}[a175_0x2ca581(0xea)](){const _0x194c75=a175_0x2ca581,_0x570a94=a175_0x4a39de[_0x194c75(0xf5)](this[_0x194c75(0xc6)]);!a175_0x31dacb[_0x194c75(0xda)](_0x570a94)&&a175_0x31dacb[_0x194c75(0xf7)](_0x570a94,{'recursive':!![]});const _0x26738c=a175_0x5ef57f[_0x194c75(0xdf)][_0x194c75(0xe2)](a175_0x5ef57f[_0x194c75(0xdf)][_0x194c75(0xcd)](),a175_0x5ef57f[_0x194c75(0xdf)]['errors']({'stack':!![]}),a175_0x5ef57f[_0x194c75(0xdf)][_0x194c75(0xd2)](_0x2cc109=>{const _0x1863d6=_0x194c75,_0x1d8b63={'timestamp':_0x2cc109[_0x1863d6(0xcd)]||new Date()[_0x1863d6(0xd3)](),'level':_0x2cc109[_0x1863d6(0xd6)]||_0x1863d6(0xf4),'command':_0x2cc109[_0x1863d6(0xfb)]||_0x1863d6(0xcf),'rawCommand':_0x2cc109[_0x1863d6(0xc7)]||this[_0x1863d6(0xc4)]||undefined,'message':_0x2cc109[_0x1863d6(0xdb)]||'','duration':_0x2cc109['duration']||undefined,'details':_0x2cc109[_0x1863d6(0xd4)]||undefined};return JSON[_0x1863d6(0xde)](_0x1d8b63);}));this[_0x194c75(0xd5)]=a175_0x5ef57f['createLogger']({'level':_0x194c75(0xf4),'format':_0x26738c,'transports':[new a175_0x5ef57f[(_0x194c75(0xc5))][(_0x194c75(0xcc))]({'filename':this[_0x194c75(0xc6)],'level':'info'})],'silent':![]}),a175_0x5ef57f[_0x194c75(0xd0)]({'success':'green','error':_0x194c75(0xd7),'warn':_0x194c75(0xc8),'info':_0x194c75(0xc9)});}[a175_0x2ca581(0xf4)](_0xd69eb1,_0x40a92d,_0x3c21d6){const _0x16120f=a175_0x2ca581;if(!this[_0x16120f(0xc6)]||!this[_0x16120f(0xd5)])return;this[_0x16120f(0xd5)][_0x16120f(0xf4)](_0x40a92d,{'command':_0xd69eb1,'details':_0x3c21d6});}['success'](_0x2bef63,_0x4af7e6,_0xad1c2e,_0x3b0b3e){const _0xbfcff6=a175_0x2ca581;if(!this[_0xbfcff6(0xc6)]||!this[_0xbfcff6(0xd5)])return;this['winstonLogger'][_0xbfcff6(0xd9)](_0xbfcff6(0xf4),_0x4af7e6,{'level':_0xbfcff6(0xe6),'command':_0x2bef63,'duration':_0xad1c2e,'details':_0x3b0b3e});}[a175_0x2ca581(0xf8)](_0x53ac4e,_0x502f9e,_0xcb62c1){const _0xe36bc7=a175_0x2ca581;if(!this[_0xe36bc7(0xc6)]||!this[_0xe36bc7(0xd5)])return;this[_0xe36bc7(0xd5)][_0xe36bc7(0xf8)](_0x502f9e,{'command':_0x53ac4e,'details':_0xcb62c1});}['warn'](_0x49ea11,_0x2cda6a,_0x45419a){const _0x52e705=a175_0x2ca581;if(!this[_0x52e705(0xc6)]||!this[_0x52e705(0xd5)])return;this[_0x52e705(0xd5)][_0x52e705(0xf3)](_0x2cda6a,{'command':_0x49ea11,'details':_0x45419a});}async[a175_0x2ca581(0xce)](_0x242c03,_0x197c88,_0x1df392){const _0x532d6f=a175_0x2ca581,_0x4a27d3=Date[_0x532d6f(0xdd)]();this[_0x532d6f(0xf4)](_0x242c03,_0x532d6f(0xe4)+_0x197c88);try{const _0x59c906=await _0x1df392(),_0x1eacdb=Date[_0x532d6f(0xdd)]()-_0x4a27d3;return this[_0x532d6f(0xe6)](_0x242c03,'Completed:\x20'+_0x197c88,_0x1eacdb),_0x59c906;}catch(_0x44144e){const _0x18ff68=Date[_0x532d6f(0xdd)]()-_0x4a27d3;this[_0x532d6f(0xf8)](_0x242c03,_0x532d6f(0xec)+_0x197c88,{'error':_0x44144e instanceof Error?_0x44144e[_0x532d6f(0xdb)]:String(_0x44144e),'duration':_0x18ff68});throw _0x44144e;}}[a175_0x2ca581(0xeb)](){const _0x558780=a175_0x2ca581;try{if(!a175_0x31dacb[_0x558780(0xda)](this[_0x558780(0xc6)]))return[];const _0x2e2648=a175_0x31dacb['readFileSync'](this[_0x558780(0xc6)],_0x558780(0xee));return _0x2e2648[_0x558780(0xe0)](/\r?\n/)[_0x558780(0xe5)](_0x47d995=>_0x47d995[_0x558780(0xca)]())[_0x558780(0xd8)](_0x77dd4d=>JSON['parse'](_0x77dd4d));}catch(_0x491520){return console[_0x558780(0xf3)](_0x558780(0xfa),_0x491520),[];}}[a175_0x2ca581(0xe7)](){const _0xe7a74b=a175_0x2ca581;try{a175_0x31dacb[_0xe7a74b(0xda)](this[_0xe7a74b(0xc6)])&&a175_0x31dacb[_0xe7a74b(0xcb)](this[_0xe7a74b(0xc6)],'',_0xe7a74b(0xee));}catch(_0x3ae5d4){console[_0xe7a74b(0xf3)](_0xe7a74b(0xed),_0x3ae5d4);}}[a175_0x2ca581(0xf6)](){const _0x2de853=a175_0x2ca581;return this[_0x2de853(0xd5)];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a176_0x526396=a176_0x14c8;(function(_0x1233f9,_0x54a03e){const _0x8f23d5=a176_0x14c8,_0x239841=_0x1233f9();while(!![]){try{const _0x58a38f=parseInt(_0x8f23d5(0x191))/0x1*(-parseInt(_0x8f23d5(0x18a))/0x2)+-parseInt(_0x8f23d5(0x189))/0x3*(parseInt(_0x8f23d5(0x192))/0x4)+parseInt(_0x8f23d5(0x19c))/0x5+-parseInt(_0x8f23d5(0x18d))/0x6*(parseInt(_0x8f23d5(0x199))/0x7)+parseInt(_0x8f23d5(0x190))/0x8*(-parseInt(_0x8f23d5(0x194))/0x9)+parseInt(_0x8f23d5(0x18f))/0xa+-parseInt(_0x8f23d5(0x188))/0xb*(-parseInt(_0x8f23d5(0x18e))/0xc);if(_0x58a38f===_0x54a03e)break;else _0x239841['push'](_0x239841['shift']());}catch(_0x52ae50){_0x239841['push'](_0x239841['shift']());}}}(a176_0x45b6,0x503c9));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number['MAX_SAFE_INTEGER']),MIN_SAFE_INTEGER=BigInt(Number[a176_0x526396(0x198)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function a176_0x14c8(_0x9c566b,_0x258a16){_0x9c566b=_0x9c566b-0x185;const _0x45b693=a176_0x45b6();let _0x14c89b=_0x45b693[_0x9c566b];return _0x14c89b;}function isUnsafeIntegerLiteral(_0x25d7aa){const _0x1fe385=a176_0x526396;if(_0x25d7aa['includes']('.')||_0x25d7aa[_0x1fe385(0x193)]('e')||_0x25d7aa[_0x1fe385(0x193)]('E'))return![];const _0x4d0ce1=BigInt(_0x25d7aa);return _0x4d0ce1>MAX_SAFE_INTEGER||_0x4d0ce1<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x37efa5){const _0x389041=a176_0x526396;let _0x572403='',_0x4c4254=![],_0x357f71=![];for(let _0x2deab1=0x0;_0x2deab1<_0x37efa5[_0x389041(0x19b)];){const _0x3ae00a=_0x37efa5[_0x2deab1];if(_0x4c4254){_0x572403+=_0x3ae00a,_0x2deab1+=0x1;if(_0x357f71)_0x357f71=![];else{if(_0x3ae00a==='\x5c')_0x357f71=!![];else _0x3ae00a==='\x22'&&(_0x4c4254=![]);}continue;}if(_0x3ae00a==='\x22'){_0x4c4254=!![],_0x572403+=_0x3ae00a,_0x2deab1+=0x1;continue;}if(_0x3ae00a==='-'||_0x3ae00a>='0'&&_0x3ae00a<='9'){const _0x549f15=JSON_NUMBER_PATTERN[_0x389041(0x18c)](_0x37efa5[_0x389041(0x197)](_0x2deab1))?.[0x0];if(_0x549f15){_0x572403+=isUnsafeIntegerLiteral(_0x549f15)?'\x22'+_0x549f15+'\x22':_0x549f15,_0x2deab1+=_0x549f15[_0x389041(0x19b)];continue;}}_0x572403+=_0x3ae00a,_0x2deab1+=0x1;}return _0x572403;}export function parseLosslessJson(_0x143dca){const _0x31db10=a176_0x526396;return JSON[_0x31db10(0x18b)](quoteUnsafeIntegerLiterals(_0x143dca));}export function installLosslessJsonResponseParser(){const _0x59ae68=a176_0x526396;if(typeof Response===_0x59ae68(0x195))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x59ae68(0x196)],originalResponseJsonDescriptor=Object[_0x59ae68(0x186)](responseJsonPrototype,'json'),Object[_0x59ae68(0x185)](responseJsonPrototype,_0x59ae68(0x187),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x563a28(){const _0x356e41=_0x59ae68;return parseLosslessJson(await this[_0x356e41(0x19a)]());}}),restoreResponseJsonParser=()=>{const _0x543459=_0x59ae68;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x543459(0x185)](responseJsonPrototype,_0x543459(0x187),originalResponseJsonDescriptor):delete responseJsonPrototype['json'],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}function a176_0x45b6(){const _0x469b1e=['4spxMoJ','includes','218601KfvKbU','undefined','prototype','slice','MIN_SAFE_INTEGER','1057ZfzWcE','text','length','557480zwPrqZ','defineProperty','getOwnPropertyDescriptor','json','55vQquDd','1018398qgAlsU','6wEDqWa','parse','exec','19962hvRmmX','4037340VOWZqo','4544190FkaZET','144AEPcwl','213482ardojG'];a176_0x45b6=function(){return _0x469b1e;};return a176_0x45b6();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xb002a,_0x4010c9){const _0x4ede96=a177_0x4740,_0x1f6a8f=_0xb002a();while(!![]){try{const _0x4daaf0=-parseInt(_0x4ede96(0x1a3))/0x1*(-parseInt(_0x4ede96(0x192))/0x2)+-parseInt(_0x4ede96(0x187))/0x3*(parseInt(_0x4ede96(0x19e))/0x4)+parseInt(_0x4ede96(0x18b))/0x5*(parseInt(_0x4ede96(0x19c))/0x6)+parseInt(_0x4ede96(0x19a))/0x7+parseInt(_0x4ede96(0x190))/0x8+parseInt(_0x4ede96(0x18f))/0x9+-parseInt(_0x4ede96(0x199))/0xa;if(_0x4daaf0===_0x4010c9)break;else _0x1f6a8f['push'](_0x1f6a8f['shift']());}catch(_0x24c3a4){_0x1f6a8f['push'](_0x1f6a8f['shift']());}}}(a177_0x4e1e,0x77cc3));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x5f4984){const _0x35293f=a177_0x4740;if(!_0x5f4984)return undefined;try{return parseLosslessJson(_0x5f4984);}catch{throw CliErrors[_0x35293f(0x193)](_0x35293f(0x194)+_0x5f4984);}}function a177_0x4740(_0x2a1927,_0x1be23a){_0x2a1927=_0x2a1927-0x187;const _0x4e1e1b=a177_0x4e1e();let _0x474051=_0x4e1e1b[_0x2a1927];return _0x474051;}export function parseJsonParamsValue(_0xa6f425){const _0x10fa7c=a177_0x4740;if(!_0xa6f425)return undefined;try{return parseLosslessJson(_0xa6f425);}catch{throw CliErrors[_0x10fa7c(0x193)](_0x10fa7c(0x194)+_0xa6f425);}}export function parseBatchCreateItemsFromParams(_0x35c80d){const _0x506c0c=a177_0x4740;if(Array[_0x506c0c(0x191)](_0x35c80d))return _0x35c80d;if(_0x35c80d!==null&&_0x35c80d!==undefined&&typeof _0x35c80d===_0x506c0c(0x1a0)&&Array[_0x506c0c(0x191)](_0x35c80d[_0x506c0c(0x19d)]))return _0x35c80d[_0x506c0c(0x19d)];throw CliErrors['validation'](_0x506c0c(0x198),_0x506c0c(0x195));}function parseDataUpdateId(_0x3a9de7,_0x55c01c){const _0x203a46=a177_0x4740;if(typeof _0x3a9de7===_0x203a46(0x189)&&Number[_0x203a46(0x197)](_0x3a9de7)&&_0x3a9de7>0x0)return _0x3a9de7;if(typeof _0x3a9de7==='string'){if(/^[1-9]\d*$/['test'](_0x3a9de7))return _0x3a9de7;}throw CliErrors['validation'](_0x203a46(0x18e)+_0x55c01c+_0x203a46(0x188));}function a177_0x4e1e(){const _0x4eb423=['563432iAcyCm','603zoWzGX','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','number','join','905435BWqAVy','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','data\x20update\x20can\x20update\x20at\x20most\x20','data\x20update\x20--params.','8301231UPJpzG','1751032KuiSOM','isArray','2mXPNho','validation','Invalid\x20JSON\x20for\x20--params:\x20','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','length','isSafeInteger','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','26272450TkeDYE','6859664DvUKJs','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','18wjLKqt','items','2188YwaObD','\x20records\x20per\x20call;\x20received\x20','object','map','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27'];a177_0x4e1e=function(){return _0x4eb423;};return a177_0x4e1e();}export function parseUpdateIdsFromParams(_0xe2186a){const _0x96e8ee=a177_0x4740;if(_0xe2186a===null||_0xe2186a===undefined||typeof _0xe2186a!==_0x96e8ee(0x1a0)||Array[_0x96e8ee(0x191)](_0xe2186a))throw CliErrors[_0x96e8ee(0x193)](_0x96e8ee(0x19b),_0x96e8ee(0x1a2));const _0x2b0792=_0xe2186a['id'];if(_0x2b0792===undefined||_0x2b0792===null)throw CliErrors[_0x96e8ee(0x193)](_0x96e8ee(0x18c),_0x96e8ee(0x1a2));const _0x5efeb7=Array[_0x96e8ee(0x191)](_0x2b0792)?_0x2b0792:[_0x2b0792];if(_0x5efeb7[_0x96e8ee(0x196)]===0x0)throw CliErrors[_0x96e8ee(0x193)]('data\x20update\x20id\x20array\x20cannot\x20be\x20empty.');if(_0x5efeb7[_0x96e8ee(0x196)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x96e8ee(0x193)](_0x96e8ee(0x18d)+MAX_DATA_UPDATE_IDS+_0x96e8ee(0x19f)+_0x5efeb7[_0x96e8ee(0x196)]+'.');return _0x5efeb7[_0x96e8ee(0x1a1)]((_0x4c59a3,_0x228246)=>parseDataUpdateId(_0x4c59a3,Array['isArray'](_0x2b0792)?'id['+_0x228246+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x5a3a22,_0x16e0bd){const _0x3c3d61=a177_0x4740;if(Array[_0x3c3d61(0x191)](_0x5a3a22['id'])&&_0x16e0bd[_0x3c3d61(0x196)]>0x1)return{..._0x5a3a22,'id':_0x16e0bd[_0x3c3d61(0x18a)](',')};return _0x5a3a22;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a178_0x3368(_0x158e28,_0x3ac38a){_0x158e28=_0x158e28-0x185;const _0x35f408=a178_0x35f4();let _0x336837=_0x35f408[_0x158e28];return _0x336837;}(function(_0x3de883,_0x455404){const _0x245c28=a178_0x3368,_0x4d05f2=_0x3de883();while(!![]){try{const _0x5b0bfb=-parseInt(_0x245c28(0x18f))/0x1*(parseInt(_0x245c28(0x187))/0x2)+-parseInt(_0x245c28(0x189))/0x3*(parseInt(_0x245c28(0x18c))/0x4)+parseInt(_0x245c28(0x185))/0x5+-parseInt(_0x245c28(0x18a))/0x6*(-parseInt(_0x245c28(0x18d))/0x7)+-parseInt(_0x245c28(0x18e))/0x8*(-parseInt(_0x245c28(0x190))/0x9)+-parseInt(_0x245c28(0x192))/0xa*(parseInt(_0x245c28(0x191))/0xb)+-parseInt(_0x245c28(0x186))/0xc;if(_0x5b0bfb===_0x455404)break;else _0x4d05f2['push'](_0x4d05f2['shift']());}catch(_0x384909){_0x4d05f2['push'](_0x4d05f2['shift']());}}}(a178_0x35f4,0x25b2d));export function normalizePositiveSafeInteger(_0x1d956d){const _0x51906b=a178_0x3368;if(typeof _0x1d956d===_0x51906b(0x188))return Number[_0x51906b(0x18b)](_0x1d956d)&&_0x1d956d>0x0?_0x1d956d:undefined;if(typeof _0x1d956d!=='string'||!/^\d+$/['test'](_0x1d956d))return undefined;const _0x5330c5=Number(_0x1d956d);return Number[_0x51906b(0x18b)](_0x5330c5)&&_0x5330c5>0x0?_0x5330c5:undefined;}function a178_0x35f4(){const _0x5b18b9=['8biWRpK','157iOfkOR','1058670WGHrFo','11atDHUM','426110lGqUkT','668225iYTXnV','1475412xhCKis','958bZDtMg','number','51KEnkfu','486468kudIMe','isSafeInteger','23372XSWOLq','21GVKUYa'];a178_0x35f4=function(){return _0x5b18b9;};return a178_0x35f4();}
|
package/lib/utils/redaction.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a179_0x11a9ac=a179_0x7e04;(function(_0x5a152c,_0x1bf245){const _0x56589b=a179_0x7e04,_0x2011f3=_0x5a152c();while(!![]){try{const _0xe3210=parseInt(_0x56589b(0x118))/0x1*(-parseInt(_0x56589b(0x11e))/0x2)+-parseInt(_0x56589b(0x12f))/0x3+-parseInt(_0x56589b(0x12b))/0x4*(-parseInt(_0x56589b(0x11f))/0x5)+parseInt(_0x56589b(0x11d))/0x6*(parseInt(_0x56589b(0x12a))/0x7)+parseInt(_0x56589b(0x122))/0x8*(parseInt(_0x56589b(0x121))/0x9)+parseInt(_0x56589b(0x124))/0xa*(-parseInt(_0x56589b(0x11c))/0xb)+-parseInt(_0x56589b(0x125))/0xc*(parseInt(_0x56589b(0x11b))/0xd);if(_0xe3210===_0x1bf245)break;else _0x2011f3['push'](_0x2011f3['shift']());}catch(_0x28b169){_0x2011f3['push'](_0x2011f3['shift']());}}}(a179_0x9f21,0xdba94));function a179_0x9f21(){const _0x2a2bc6=['push','replace','comment','entries','14QOfvyJ','4GBegOU','toLowerCase','[REDACTED]','has','823662ITaLtk','fromEntries','isArray','11mhfCOe','object','map','13QrgSZg','10219dsvxGl','4217322zDflrf','138674etuJBT','2745535mNynBv','test','9271026DbOXeU','8jhvwWG','variables','10190TLUOeE','1216212wKinrK'];a179_0x9f21=function(){return _0x2a2bc6;};return a179_0x9f21();}const REDACTED_VALUE=a179_0x11a9ac(0x12d),SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set(['comment',a179_0x11a9ac(0x123)]),SENSITIVE_VALUE_KEYS=new Set([a179_0x11a9ac(0x128)]);export function isSensitiveKey(_0x546c0a){const _0x4c0e00=a179_0x11a9ac,_0x585dd0=_0x546c0a[_0x4c0e00(0x127)](/_/g,'-')[_0x4c0e00(0x12c)]();return SENSITIVE_KEY_PATTERN[_0x4c0e00(0x120)](_0x585dd0);}export function isSensitiveFlagName(_0x4882e8){const _0xd84d2=a179_0x11a9ac,_0x1f9328=_0x4882e8['replace'](/_/g,'-')[_0xd84d2(0x12c)]();return isSensitiveKey(_0x1f9328)||SENSITIVE_FLAG_NAMES[_0xd84d2(0x12e)](_0x1f9328);}function redactVariableValues(_0x32c3f2){const _0x3872c3=a179_0x11a9ac;if(Array[_0x3872c3(0x117)](_0x32c3f2))return _0x32c3f2['map'](_0x53a91a=>redactVariableValues(_0x53a91a));if(_0x32c3f2&&typeof _0x32c3f2===_0x3872c3(0x119))return Object[_0x3872c3(0x130)](Object[_0x3872c3(0x129)](_0x32c3f2)['map'](([_0xfe9254,_0x5bab26])=>[_0xfe9254,redactVariableValues(_0x5bab26)]));return REDACTED_VALUE;}export function redactSensitiveValue(_0x54402c){const _0x3318ce=a179_0x11a9ac;if(Array['isArray'](_0x54402c))return _0x54402c[_0x3318ce(0x11a)](_0x103619=>redactSensitiveValue(_0x103619));if(!_0x54402c||typeof _0x54402c!==_0x3318ce(0x119))return _0x54402c;const _0x54d50d={};for(const [_0x1ec6de,_0x5dc653]of Object['entries'](_0x54402c)){const _0x5b9289=_0x1ec6de[_0x3318ce(0x127)](/_/g,'-')[_0x3318ce(0x12c)]();_0x54d50d[_0x1ec6de]=_0x5b9289===_0x3318ce(0x123)?redactVariableValues(_0x5dc653):SENSITIVE_VALUE_KEYS[_0x3318ce(0x12e)](_0x5b9289)||isSensitiveKey(_0x1ec6de)?REDACTED_VALUE:redactSensitiveValue(_0x5dc653);}return _0x54d50d;}function a179_0x7e04(_0x16bfdb,_0x25f1f0){_0x16bfdb=_0x16bfdb-0x117;const _0x9f21f9=a179_0x9f21();let _0x7e04b7=_0x9f21f9[_0x16bfdb];return _0x7e04b7;}export function redactCommandArgv(_0xca5870){const _0x336780=a179_0x11a9ac,_0x3fb29d=[];let _0x5b0b00=![];for(const _0x4ff4e5 of _0xca5870){if(_0x5b0b00){_0x3fb29d[_0x336780(0x126)](REDACTED_VALUE),_0x5b0b00=![];continue;}const _0x4ad229=_0x4ff4e5['match'](/^--([^=]+)(?:=(.*))?$/);if(!_0x4ad229||!isSensitiveFlagName(_0x4ad229[0x1]??'')){_0x3fb29d['push'](_0x4ff4e5);continue;}_0x3fb29d[_0x336780(0x126)]('--'+_0x4ad229[0x1]+(_0x4ad229[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x4ad229[0x2]===undefined&&(_0x5b0b00=!![]);}return _0x3fb29d;}export{REDACTED_VALUE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1361d8,_0x2facbe){const _0x5d8ea4=a180_0x2371,_0x5389ff=_0x1361d8();while(!![]){try{const _0x3d0ffe=parseInt(_0x5d8ea4(0x8a))/0x1+-parseInt(_0x5d8ea4(0x8c))/0x2*(-parseInt(_0x5d8ea4(0x95))/0x3)+parseInt(_0x5d8ea4(0x98))/0x4*(-parseInt(_0x5d8ea4(0x97))/0x5)+parseInt(_0x5d8ea4(0x93))/0x6*(parseInt(_0x5d8ea4(0x99))/0x7)+parseInt(_0x5d8ea4(0x92))/0x8+-parseInt(_0x5d8ea4(0x94))/0x9*(-parseInt(_0x5d8ea4(0x91))/0xa)+-parseInt(_0x5d8ea4(0x9a))/0xb*(parseInt(_0x5d8ea4(0x8f))/0xc);if(_0x3d0ffe===_0x2facbe)break;else _0x5389ff['push'](_0x5389ff['shift']());}catch(_0x5cba93){_0x5389ff['push'](_0x5389ff['shift']());}}}(a180_0x3203,0xec557));export function normalizeRuntimeUserId(_0x1ca4e6){const _0x22572d=a180_0x2371;if(typeof _0x1ca4e6===_0x22572d(0x90))return Number[_0x22572d(0x96)](_0x1ca4e6)&&_0x1ca4e6>0x0?String(_0x1ca4e6):undefined;if(typeof _0x1ca4e6!==_0x22572d(0x8d)||!/^\d+$/[_0x22572d(0x8e)](_0x1ca4e6))return undefined;const _0x1380f3=_0x1ca4e6[_0x22572d(0x8b)](/^0+/,'');return _0x1380f3||undefined;}function a180_0x2371(_0x54934,_0xc45fab){_0x54934=_0x54934-0x8a;const _0x320394=a180_0x3203();let _0x2371ec=_0x320394[_0x54934];return _0x2371ec;}function a180_0x3203(){const _0x462fa0=['6102GBbWmB','12LxHAlZ','isSafeInteger','90925EudWeV','376HECzLp','7voSnuy','11sBHTcW','1149407QrhpYz','replace','796714BSwRoX','string','test','33792996vtZWsa','number','22310qikDng','8623712uGFNtY','960474VIbShH'];a180_0x3203=function(){return _0x462fa0;};return a180_0x3203();}
|