@lovrabet/lovrabet-cli 2.3.10-beta.3 → 2.3.11-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 +3 -3
- package/skills/lovrabet/references/lovrabet-schedule-workflow.md +50 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x15aabf,_0x7f508b){const _0x326381=a162_0x4adf,_0x4a020f=_0x15aabf();while(!![]){try{const _0x1ebdfc=parseInt(_0x326381(0x98))/0x1+parseInt(_0x326381(0xa0))/0x2+parseInt(_0x326381(0xa3))/0x3*(-parseInt(_0x326381(0xa6))/0x4)+parseInt(_0x326381(0xa5))/0x5+-parseInt(_0x326381(0x83))/0x6*(parseInt(_0x326381(0xa4))/0x7)+-parseInt(_0x326381(0x8d))/0x8+parseInt(_0x326381(0x8b))/0x9*(parseInt(_0x326381(0x84))/0xa);if(_0x1ebdfc===_0x7f508b)break;else _0x4a020f['push'](_0x4a020f['shift']());}catch(_0x41677b){_0x4a020f['push'](_0x4a020f['shift']());}}}(a162_0x3919,0xd250c));import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,normalizeLocalFiles}from'./local-files.js';import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';function a162_0x3919(){const _0x1f560f=['version','396TpKnuJ','description','5119880bLpnMb','status','example','forkedFromVersion','userId','personal','length','files','string','readonly','Runtime\x20Skill\x20is\x20missing\x20skillCode.','1097559Xlpexx','skillCode','skillName','parse','trim','manifest','hasUpstreamUpdate','tenantCode','1048010kQTGde','zipSha256','fromEntries','4278702HcjWgq','161zDltXs','3178620TyTrPu','4nNyZhZ','path','tags','isArray','144546TTcAhS','278290EQoJhc','ossPath','sourceSessionId','toISOString','forkedFromSkillId','map'];a162_0x3919=function(){return _0x1f560f;};return a162_0x3919();}export function buildMetadata(_0x418723,_0x3b0c22,_0xa7082d,_0x29c311,_0x379f12,_0xb2cb42,_0x57a48f){const _0x4bd8c7=a162_0x4adf,_0x272a43=_0xb2cb42?normalizeLocalFiles(_0xb2cb42):[],_0x12f0ff=!_0x57a48f&&_0x272a43[_0x4bd8c7(0x93)]>0x0?buildSkillPackage(_0x272a43):undefined,_0x3cd59b=_0x57a48f?bufferSha256(_0x57a48f):_0x12f0ff?.['manifest'][_0x4bd8c7(0xa1)],_0x489ed1=_0x57a48f?.[_0x4bd8c7(0x93)]??_0x12f0ff?.[_0x4bd8c7(0x9d)]['zipSize'],_0x584988=_0x272a43[_0x4bd8c7(0x93)]>0x0?Object[_0x4bd8c7(0xa2)](_0x272a43[_0x4bd8c7(0x89)](_0x1bc9d4=>[_0x1bc9d4[_0x4bd8c7(0x80)],fileHash(_0x1bc9d4)])):undefined;return{'schemaVersion':_0x272a43[_0x4bd8c7(0x93)]>0x0?0x2:0x1,'id':_0x418723['id'],'appCode':_0xa7082d,'skillCode':requireSkillCode(_0x418723),'skillName':_0x418723[_0x4bd8c7(0x9a)],'description':_0x418723[_0x4bd8c7(0x8c)],'example':_0x418723[_0x4bd8c7(0x8f)],'scope':_0x3b0c22,'readonly':_0x3b0c22!==_0x4bd8c7(0x92)||_0x418723[_0x4bd8c7(0x96)]===!![],'tenantCode':_0x418723[_0x4bd8c7(0x9f)],'userId':_0x418723[_0x4bd8c7(0x91)],'version':_0x418723[_0x4bd8c7(0x8a)],'status':_0x418723[_0x4bd8c7(0x8e)],'tags':Array[_0x4bd8c7(0x82)](_0x418723[_0x4bd8c7(0x81)])?_0x418723[_0x4bd8c7(0x81)]:[],'hasUpstreamUpdate':_0x418723[_0x4bd8c7(0x9e)],'forkedFromSkillId':_0x418723[_0x4bd8c7(0x88)],'forkedFromVersion':_0x418723[_0x4bd8c7(0x90)],'sourceSessionId':_0x418723[_0x4bd8c7(0x86)],'contentHash':_0x29c311,'fileHashes':_0x584988,'treeHash':_0x272a43['length']>0x0?fileTreeHash(localFilesToManifestFiles(_0x272a43)):undefined,'ossPath':remoteManifestOssPath(_0x418723[_0x4bd8c7(0x94)]),'zipSha256':_0x3cd59b,'zipSize':_0x489ed1,'files':_0x272a43[_0x4bd8c7(0x93)]>0x0?_0x272a43[_0x4bd8c7(0x89)](_0x329eef=>({'path':_0x329eef[_0x4bd8c7(0x80)],'hash':fileHash(_0x329eef),'size':fileContent(_0x329eef)[_0x4bd8c7(0x93)]})):undefined,'pulledAt':_0x379f12??new Date()[_0x4bd8c7(0x87)]()};}export function requireSkillCode(_0x449ff5){const _0x5433f0=a162_0x4adf,_0x4e5f59=_0x449ff5[_0x5433f0(0x99)]?.['trim']();if(!_0x4e5f59)throw CliErrors['validation'](_0x5433f0(0x97));return _0x4e5f59;}export function readMetadataIfPresent(_0xd1059e){const _0x24773c=a162_0x4adf;if(!existsSync(_0xd1059e))return undefined;try{const _0x30c1d6=JSON[_0x24773c(0x9b)](readFileSync(_0xd1059e,'utf8'));return _0x30c1d6;}catch{throw CliErrors['validation']('Invalid\x20'+METADATA_FILE+':\x20'+_0xd1059e);}}function a162_0x4adf(_0xcbd3cb,_0x56a3be){_0xcbd3cb=_0xcbd3cb-0x80;const _0x391983=a162_0x3919();let _0x4adfbf=_0x391983[_0xcbd3cb];return _0x4adfbf;}function remoteManifestOssPath(_0x5bb20b){const _0x20f2df=a162_0x4adf;if(!_0x5bb20b||typeof _0x5bb20b!=='object'||Array['isArray'](_0x5bb20b))return undefined;const _0x5aeaea=_0x5bb20b[_0x20f2df(0x85)];return typeof _0x5aeaea===_0x20f2df(0x95)&&_0x5aeaea['trim']()?_0x5aeaea[_0x20f2df(0x9c)]():undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a163_0x12e952=a163_0x2d52;(function(_0x440e32,_0x24846e){const _0x2b43fc=a163_0x2d52,_0x1576d0=_0x440e32();while(!![]){try{const _0xf07bb=parseInt(_0x2b43fc(0x187))/0x1*(parseInt(_0x2b43fc(0x17d))/0x2)+parseInt(_0x2b43fc(0x188))/0x3*(-parseInt(_0x2b43fc(0x18f))/0x4)+parseInt(_0x2b43fc(0x175))/0x5*(-parseInt(_0x2b43fc(0x177))/0x6)+-parseInt(_0x2b43fc(0x176))/0x7*(parseInt(_0x2b43fc(0x185))/0x8)+-parseInt(_0x2b43fc(0x173))/0x9*(-parseInt(_0x2b43fc(0x18d))/0xa)+-parseInt(_0x2b43fc(0x17f))/0xb+parseInt(_0x2b43fc(0x17e))/0xc;if(_0xf07bb===_0x24846e)break;else _0x1576d0['push'](_0x1576d0['shift']());}catch(_0x207b69){_0x1576d0['push'](_0x1576d0['shift']());}}}(a163_0x7bbd,0xc4f48));import{existsSync}from'node:fs';function a163_0x2d52(_0x22a389,_0x5cfcbc){_0x22a389=_0x22a389-0x173;const _0x7bbda9=a163_0x7bbd();let _0x2d529b=_0x7bbda9[_0x22a389];return _0x2d529b;}import{homedir}from'node:os';function a163_0x7bbd(){const _0x4e0a39=['skills','86dFaTTN','21129024lZQToq','302962qcTtgH','workbuddySkillsDir','filter','.workbuddy','homeDirName','CLAUDE_SKILL_ROOT','571736soYqMO','\x20for\x20local\x20path:\x20','21961cJaoin','3TEbTbI','trim','appCode','cache','claudeSkillsDir','120xNrGQR','homeDir','4822812bHBACQ','path\x20segment','includes','cacheRoot','844839CVraUm','.claude','6456425jkxmGw','49hTmmNt','6VKKiSw','Unsafe\x20','agentsSkillsDir','.agents','SKILL_ROOT'];a163_0x7bbd=function(){return _0x4e0a39;};return a163_0x7bbd();}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(_0xd38062={}){const _0x5c9e3c=a163_0x2d52,_0x4fbf11=_0xd38062[_0x5c9e3c(0x18e)]??homedir(),_0x76b49d=resolve(_0x4fbf11,PRODUCT_CONFIG['homeDirName'],_0x5c9e3c(0x18b)),_0x178719=trimmedEnv(_0x5c9e3c(0x17b)),_0x1afe7a=trimmedEnv(_0x5c9e3c(0x184)),_0x52e8f4=resolve(_0x4fbf11,_0x5c9e3c(0x182)),_0x37e154=_0xd38062['workbuddySkillsDir']??(existsSync(_0x52e8f4)?resolve(_0x52e8f4,_0x5c9e3c(0x17c)):undefined);return{'homeDir':_0x4fbf11,'cacheRoot':_0x76b49d,'managedRoot':resolve(_0x4fbf11,PRODUCT_CONFIG[_0x5c9e3c(0x183)]),'agentsSkillsDir':_0xd38062[_0x5c9e3c(0x179)]??_0x178719??resolve(_0x4fbf11,_0x5c9e3c(0x17a),_0x5c9e3c(0x17c)),'claudeSkillsDir':_0xd38062[_0x5c9e3c(0x18c)]??_0x1afe7a??resolve(_0x4fbf11,_0x5c9e3c(0x174),_0x5c9e3c(0x17c)),'workbuddySkillsDir':_0x37e154};}export function runtimeAgentSkillRoots(_0xcf47ce){const _0x203abe=a163_0x2d52;return[_0xcf47ce[_0x203abe(0x179)],_0xcf47ce[_0x203abe(0x18c)],_0xcf47ce[_0x203abe(0x180)]][_0x203abe(0x181)](_0x7c1deb=>Boolean(_0x7c1deb));}export function getRuntimeSkillCacheRoot(_0x5b4cbd,_0x2d70a6,_0x4a5289={}){const _0x426964=a163_0x2d52,_0x4f829a=resolveSkillSyncPaths(_0x4a5289);return resolve(_0x4f829a[_0x426964(0x192)],_0x5b4cbd,fingerprintAccessKey(_0x2d70a6),_0x426964(0x17c));}export function getRuntimeSkillDir(_0x591bd2,_0x4c47e0,_0x536427,_0xd30d91,_0x59c332,_0xe25991={}){const _0x48c6ae=a163_0x2d52;return resolve(getRuntimeSkillCacheRoot(_0x591bd2,_0x4c47e0,_0xe25991),safePathSegment(_0x536427,_0x48c6ae(0x18a)),_0xd30d91,safePathSegment(_0x59c332,'skillCode'));}export function safePathSegment(_0x13e526,_0x4d2fe7=a163_0x12e952(0x190)){const _0x118f26=a163_0x12e952;if(!_0x13e526||_0x13e526[_0x118f26(0x191)]('/')||_0x13e526[_0x118f26(0x191)]('\x5c')||_0x13e526[_0x118f26(0x191)]('..'))throw CliErrors['validation'](_0x118f26(0x178)+_0x4d2fe7+_0x118f26(0x186)+_0x13e526);return _0x13e526;}function trimmedEnv(_0x3ec926){const _0xf01132=a163_0x12e952,_0x3e5c99=productEnv(_0x3ec926)?.[_0xf01132(0x189)]();return _0x3e5c99?_0x3e5c99:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1844cd,_0x27b916){const _0x1290eb=a164_0x1be3,_0x402016=_0x1844cd();while(!![]){try{const _0x575618=parseInt(_0x1290eb(0x204))/0x1+parseInt(_0x1290eb(0x209))/0x2+-parseInt(_0x1290eb(0x211))/0x3*(-parseInt(_0x1290eb(0x1ee))/0x4)+-parseInt(_0x1290eb(0x1f1))/0x5*(-parseInt(_0x1290eb(0x1f5))/0x6)+parseInt(_0x1290eb(0x1f7))/0x7+-parseInt(_0x1290eb(0x1fc))/0x8+-parseInt(_0x1290eb(0x200))/0x9;if(_0x575618===_0x27b916)break;else _0x402016['push'](_0x402016['shift']());}catch(_0x4c3396){_0x402016['push'](_0x402016['shift']());}}}(a164_0x139c,0x1f82f));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a164_0x3c4cf8}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(_0x558db7,_0x133ac5,_0x5495af={}){const _0x5906e1=a164_0x1be3,_0x456684=resolvePushDirectoryRoot(_0x558db7),_0x40f164=readPushMetadataIfPresent(resolve(_0x456684,METADATA_FILE),{'ignoreInvalidMetadata':_0x5495af[_0x5906e1(0x205)]});if(_0x40f164?.[_0x5906e1(0x1e5)]&&_0x40f164['appCode']!==_0x133ac5&&!_0x5495af['allowAppCodeRetarget']&&!_0x5495af['ignoreMetadataAppCodeMismatch'])throw CliErrors[_0x5906e1(0x1e9)](_0x5906e1(0x20d)+_0x40f164['appCode']+_0x5906e1(0x1e6)+_0x133ac5+'\x22.');const _0x14fda1=resolvePushSkillCode(_0x456684,_0x133ac5,_0x40f164,_0x5495af);if(!_0x14fda1)throw CliErrors[_0x5906e1(0x1e9)]('Unable\x20to\x20resolve\x20skillCode\x20from\x20'+SKILL_FILE+',\x20'+METADATA_FILE+_0x5906e1(0x1ef));return{'dir':_0x456684,'skillCode':_0x14fda1,'metadata':_0x40f164};}export function readPushDirectory(_0x1824cb,_0x2780a5,_0x387f82={}){const _0x2ab82b=a164_0x1be3,_0x4e0760=resolvePushDirectoryIdentity(_0x1824cb,_0x2780a5,_0x387f82),_0x19187c=_0x4e0760['dir'],_0x4b602e=resolve(_0x19187c,SKILL_FILE);if(!existsSync(_0x4b602e)||!lstatSync(_0x4b602e)[_0x2ab82b(0x210)]())throw CliErrors[_0x2ab82b(0x1e9)](_0x2ab82b(0x1f0)+SKILL_FILE+':\x20'+_0x4b602e);const _0xf4fbaa=_0x4e0760[_0x2ab82b(0x21a)],_0x5bad80=_0x387f82[_0x2ab82b(0x206)]??_0x2ab82b(0x202);if(!_0x387f82['ignoreMetadataScope']&&_0xf4fbaa?.[_0x2ab82b(0x1f4)]===_0x2ab82b(0x1f6))throw CliErrors[_0x2ab82b(0x1e9)](_0x2ab82b(0x1e1)+METADATA_FILE+_0x2ab82b(0x1e8)+_0xf4fbaa[_0x2ab82b(0x1f4)]+'\x22.');if(!_0x387f82[_0x2ab82b(0x20b)]&&_0x5bad80===_0x2ab82b(0x202)&&_0xf4fbaa?.[_0x2ab82b(0x1f4)]&&_0xf4fbaa[_0x2ab82b(0x1f4)]!=='personal')throw CliErrors[_0x2ab82b(0x1e9)](_0x2ab82b(0x215)+METADATA_FILE+_0x2ab82b(0x1e8)+_0xf4fbaa[_0x2ab82b(0x1f4)]+'\x22.',_0x2ab82b(0x219)+_0x19187c+_0x2ab82b(0x1e2));const _0x573c82=scanSkillDirectory(_0x19187c,{'excludedFilePaths':_0x387f82[_0x2ab82b(0x20f)]}),_0x11dfbb=buildSkillPackage(_0x573c82),_0x5e2125=readFileSync(_0x4b602e,_0x2ab82b(0x1eb)),_0x4333ae=_0x4e0760[_0x2ab82b(0x21b)],_0x519369=_0x387f82[_0x2ab82b(0x213)]?undefined:_0xf4fbaa,_0x4ae825=readSkillDisplayName(_0x5e2125);return{'skillCode':_0x4333ae,'metadata':_0xf4fbaa,'frontmatterDisplayName':_0x4ae825,'input':{'skillCode':_0x4333ae,'skillName':_0x4ae825??_0x519369?.[_0x2ab82b(0x1e4)],'description':_0x519369?.['description'],'content':_0x5e2125,'files':_0x11dfbb[_0x2ab82b(0x1fe)],'packageBase64':_0x11dfbb[_0x2ab82b(0x216)],'tags':_0x519369?.['tags'],'version':_0x519369?.['version'],'sourceSessionId':_0x519369?.[_0x2ab82b(0x1e3)]}};}function a164_0x139c(){const _0x245928=['ignoreMetadataForPayload','object','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','packageBase64','some','files','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','metadata','skillCode','description','find','trim','Remote\x20Skill\x20','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','sourceSessionId','skillName','appCode','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','startsWith','\x20has\x20scope=\x22','validation','Skill\x20directory\x20not\x20found:\x20','utf8','pushedAt','\x20name\x20for\x20SkillHub\x20slug\x20generation.','4plJTuI',',\x20or\x20directory\x20name.','Missing\x20','15jPsNmy','toLowerCase','\x20has\x20unsupported\x20scope\x20\x22','scope','376110hTEFxy','builtin','100492hNLkKA','length','tags','replace','refreshedAt','1313664YwRgQe','example','manifest','match','3530862DcHjIA','isDirectory','personal','content','31586cKosTV','ignoreInvalidMetadata','targetScope','company','isArray','452982ZJCSGz','filter','ignoreMetadataScope','path','Skill\x20metadata\x20appCode\x20\x22','number','excludedFilePaths','isFile','675327kxvvuH','displayName'];a164_0x139c=function(){return _0x245928;};return a164_0x139c();}export function refreshPushDirectoryMetadataFromRemote(_0x21a31b,_0x231674,_0x1652e4,_0xfddcf9={}){const _0x5252f6=a164_0x1be3,_0x32366a=resolvePushDirectoryRoot(_0x21a31b),_0x3ffb77=readPushMetadataIfPresent(resolve(_0x32366a,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x25a12a=requireRemoteScope(_0x231674),_0x1ce16a=readLocalSkillContent(_0x32366a),_0x5a1a2a={..._0x231674,'appCode':_0x231674[_0x5252f6(0x1e5)]??_0x1652e4,'skillName':_0x231674[_0x5252f6(0x1e4)]??_0x3ffb77?.['skillName'],'description':_0x231674['description']??_0x3ffb77?.[_0x5252f6(0x21c)],'example':_0x231674['example']??_0x3ffb77?.[_0x5252f6(0x1fd)],'tags':Array['isArray'](_0x231674['tags'])?_0x231674[_0x5252f6(0x1f9)]:_0x3ffb77?.[_0x5252f6(0x1f9)],'sourceSessionId':_0x231674['sourceSessionId']??_0x3ffb77?.[_0x5252f6(0x1e3)],'content':_0x231674['content']??_0x1ce16a},_0x73e08f=buildMetadata(_0x5a1a2a,_0x25a12a,_0x1652e4,contentHash(_0x1ce16a),_0xfddcf9[_0x5252f6(0x1fb)]);writeJsonAtomic(resolve(_0x32366a,METADATA_FILE),_0x73e08f);}export function recordPushedRuntimeSkill(_0x4f9646,_0x8fa442,_0x402dc8,_0x1c428f={}){const _0x450170=a164_0x1be3,_0x8a7f97=resolvePushDirectoryRoot(_0x4f9646),_0x2ec2a6=scanSkillDirectory(_0x8a7f97),_0x28c30c=_0x2ec2a6[_0x450170(0x21d)](_0xa13352=>_0xa13352[_0x450170(0x20c)]===SKILL_FILE),_0x4e9e72=_0x28c30c?fileText(_0x28c30c):'',_0x40c901=tryNormalizePackageManifest(_0x8fa442[_0x450170(0x218)]),_0x3c3c80={..._0x8fa442,'content':_0x8fa442[_0x450170(0x203)]??_0x4e9e72,'files':_0x40c901},_0x433d86=_0x40c901?normalizeLocalFiles(_0x2ec2a6)[_0x450170(0x20a)](_0x7276b8=>_0x40c901[_0x450170(0x218)][_0x450170(0x217)](_0x37f24b=>_0x37f24b[_0x450170(0x20c)]===_0x7276b8[_0x450170(0x20c)])):undefined,_0x1e39e1=buildMetadata(_0x3c3c80,_0x1c428f['scope']??'personal',_0x402dc8,contentHash(_0x3c3c80[_0x450170(0x203)]??''),_0x1c428f[_0x450170(0x1ec)],_0x433d86);writeJsonAtomic(resolve(_0x8a7f97,METADATA_FILE),_0x1e39e1);}export function deriveSkillCodeFromDirectory(_0x197716,_0x337ee9){const _0x4e32cd=a164_0x1be3,_0x9b126a=basename(resolve(_0x197716)),_0x5867d4=_0x337ee9+'--';return _0x9b126a[_0x4e32cd(0x1e7)](_0x5867d4)?_0x9b126a['slice'](_0x5867d4[_0x4e32cd(0x1f8)]):_0x9b126a;}function resolvePushSkillCode(_0x3d6e0f,_0x43edaa,_0x4470ed,_0x4a7ce2){const _0x1340f5=a164_0x1be3,_0x866e6d=deriveSkillCodeFromSkillFile(_0x3d6e0f)||deriveSkillCodeFromDirectory(_0x3d6e0f,_0x43edaa);if(_0x4a7ce2['ignoreMetadataSkillCode'])return _0x866e6d;return _0x4470ed?.[_0x1340f5(0x21b)]?.[_0x1340f5(0x21e)]()||_0x866e6d;}function deriveSkillCodeFromSkillFile(_0x45a7c3){const _0x4a01c8=a164_0x1be3,_0x4ba17b=resolve(_0x45a7c3,SKILL_FILE);if(!existsSync(_0x4ba17b)||!lstatSync(_0x4ba17b)[_0x4a01c8(0x210)]())return undefined;const _0x35f311=readFileSync(_0x4ba17b,_0x4a01c8(0x1eb)),_0x2b75b2=_0x35f311[_0x4a01c8(0x1ff)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x2b75b2)return undefined;const _0x4041f0=parseFrontmatterObject(_0x2b75b2[0x1]??''),_0x372496=scalarToString(_0x4041f0?.['name']);return _0x372496?slugifySkillName(_0x372496):undefined;}function readSkillDisplayName(_0x56d21f){const _0x2e5436=a164_0x1be3,_0x263566=_0x56d21f[_0x2e5436(0x1ff)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x263566)return undefined;const _0x2454e1=parseFrontmatterObject(_0x263566[0x1]??'');return scalarToString(_0x2454e1?.[_0x2e5436(0x212)]);}function slugifySkillName(_0x56804a){const _0x46fee1=a164_0x1be3,_0x4fea69=_0x56804a['trim']()[_0x46fee1(0x1f2)]()[_0x46fee1(0x1fa)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x46fee1(0x1fa)](/^-+/,'')['replace'](/-+$/,'')[_0x46fee1(0x1fa)](/-{2,}/g,'-');if(!_0x4fea69)throw CliErrors[_0x46fee1(0x1e9)]('Invalid\x20'+SKILL_FILE+_0x46fee1(0x1ed));return _0x4fea69;}function parseFrontmatterObject(_0x23c95a){const _0x2d45df=a164_0x1be3;try{const _0x273d15=a164_0x3c4cf8(_0x23c95a);return _0x273d15&&typeof _0x273d15===_0x2d45df(0x214)&&!Array[_0x2d45df(0x208)](_0x273d15)?_0x273d15:undefined;}catch{return undefined;}}function scalarToString(_0x302b9e){const _0x383321=a164_0x1be3;if(typeof _0x302b9e==='string')return _0x302b9e[_0x383321(0x21e)]();if(typeof _0x302b9e===_0x383321(0x20e)||typeof _0x302b9e==='boolean')return String(_0x302b9e);return undefined;}function resolvePushDirectoryRoot(_0x3e78b0){const _0x1324af=a164_0x1be3,_0x583e36=resolve(_0x3e78b0);if(!existsSync(_0x583e36))throw CliErrors[_0x1324af(0x1e9)](_0x1324af(0x1ea)+_0x3e78b0);const _0x86622c=lstatSync(_0x583e36);if(_0x86622c[_0x1324af(0x201)]())return _0x583e36;if(_0x86622c['isSymbolicLink']()){const _0x2121ef=realpathSync(_0x583e36);if(lstatSync(_0x2121ef)[_0x1324af(0x201)]())return _0x2121ef;}throw CliErrors['validation'](_0x1324af(0x1ea)+_0x3e78b0);}function requireRemoteScope(_0xdf3152){const _0x11b28e=a164_0x1be3;if(_0xdf3152['scope']===_0x11b28e(0x202)||_0xdf3152[_0x11b28e(0x1f4)]===_0x11b28e(0x207)||_0xdf3152['scope']===_0x11b28e(0x1f6))return _0xdf3152['scope'];throw CliErrors[_0x11b28e(0x1e9)](_0x11b28e(0x21f)+(_0xdf3152[_0x11b28e(0x21b)]||'(unknown)')+_0x11b28e(0x1f3)+(_0xdf3152['scope']??'unknown')+'\x22.');}function readLocalSkillContent(_0x461882){const _0x539b13=a164_0x1be3,_0x7d1e55=resolve(_0x461882,SKILL_FILE);return existsSync(_0x7d1e55)&&lstatSync(_0x7d1e55)[_0x539b13(0x210)]()?readFileSync(_0x7d1e55,_0x539b13(0x1eb)):'';}function a164_0x1be3(_0x44dc17,_0x154cb9){_0x44dc17=_0x44dc17-0x1e1;const _0x139c7a=a164_0x139c();let _0x1be3b9=_0x139c7a[_0x44dc17];return _0x1be3b9;}function readPushMetadataIfPresent(_0xb14c55,_0x2b261e={}){const _0x3ad022=a164_0x1be3;try{return readMetadataIfPresent(_0xb14c55);}catch(_0x32ec4a){if(_0x2b261e[_0x3ad022(0x205)])return undefined;throw _0x32ec4a;}}
|
|
1
|
+
(function(_0x3080d2,_0x2236d3){const _0x135c77=a164_0x3d82,_0x56ccda=_0x3080d2();while(!![]){try{const _0x22e835=-parseInt(_0x135c77(0x1d2))/0x1*(-parseInt(_0x135c77(0x1d3))/0x2)+parseInt(_0x135c77(0x1d5))/0x3+parseInt(_0x135c77(0x1e7))/0x4+parseInt(_0x135c77(0x1b8))/0x5+parseInt(_0x135c77(0x1c7))/0x6+-parseInt(_0x135c77(0x1de))/0x7+-parseInt(_0x135c77(0x1ee))/0x8;if(_0x22e835===_0x2236d3)break;else _0x56ccda['push'](_0x56ccda['shift']());}catch(_0x2c54a4){_0x56ccda['push'](_0x56ccda['shift']());}}}(a164_0xf3ee,0xb9d55));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a164_0xa2009d}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{writeJsonAtomic}from'./fs-utils.js';function a164_0xf3ee(){const _0x43e1fd=['skillName','\x20has\x20unsupported\x20scope\x20\x22','find','(unknown)','5697906ARklOm','refreshedAt','isSymbolicLink','files',',\x20or\x20directory\x20name.','Skill\x20metadata\x20appCode\x20\x22','some','version','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','filter','name','1519382xdWVLa','2sPMpnY','manifest','892980DoQtyd','\x20name\x20for\x20SkillHub\x20slug\x20generation.','toLowerCase','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','dir','replace','string','excludedFilePaths','6521389pTmrDK','startsWith','slice','ignoreMetadataScope','unknown','ignoreMetadataAppCodeMismatch','isArray','personal','example','1020932BXxuRH','allowAppCodeRetarget','isDirectory','content','path','boolean','metadata','15272056BGMnGe','ignoreMetadataForPayload','number','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','tags','scope','isFile','builtin','Skill\x20directory\x20not\x20found:\x20','Invalid\x20','skillCode','pushedAt','appCode','description','validation','trim','packageBase64','2899405qrugEh','match','company','object','sourceSessionId','ignoreInvalidMetadata','ignoreMetadataSkillCode','Missing\x20','\x20has\x20scope=\x22','Remote\x20Skill\x20','utf8'];a164_0xf3ee=function(){return _0x43e1fd;};return a164_0xf3ee();}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';function a164_0x3d82(_0x25b775,_0x29f3ce){_0x25b775=_0x25b775-0x1b8;const _0xf3eef6=a164_0xf3ee();let _0x3d8275=_0xf3eef6[_0x25b775];return _0x3d8275;}export function resolvePushDirectoryIdentity(_0x356332,_0x1598dc,_0x1fb13e={}){const _0x1b8b9e=a164_0x3d82,_0x5cf2b6=resolvePushDirectoryRoot(_0x356332),_0x235a23=readPushMetadataIfPresent(resolve(_0x5cf2b6,METADATA_FILE),{'ignoreInvalidMetadata':_0x1fb13e[_0x1b8b9e(0x1bd)]});if(_0x235a23?.[_0x1b8b9e(0x1fa)]&&_0x235a23[_0x1b8b9e(0x1fa)]!==_0x1598dc&&!_0x1fb13e[_0x1b8b9e(0x1e8)]&&!_0x1fb13e[_0x1b8b9e(0x1e3)])throw CliErrors[_0x1b8b9e(0x1fc)](_0x1b8b9e(0x1cc)+_0x235a23[_0x1b8b9e(0x1fa)]+_0x1b8b9e(0x1f1)+_0x1598dc+'\x22.');const _0x5260c5=resolvePushSkillCode(_0x5cf2b6,_0x1598dc,_0x235a23,_0x1fb13e);if(!_0x5260c5)throw CliErrors[_0x1b8b9e(0x1fc)]('Unable\x20to\x20resolve\x20skillCode\x20from\x20'+SKILL_FILE+',\x20'+METADATA_FILE+_0x1b8b9e(0x1cb));return{'dir':_0x5cf2b6,'skillCode':_0x5260c5,'metadata':_0x235a23};}export function readPushDirectory(_0x414816,_0x497cea,_0x457f72={}){const _0x91152d=a164_0x3d82,_0x240426=resolvePushDirectoryIdentity(_0x414816,_0x497cea,_0x457f72),_0x38a454=_0x240426[_0x91152d(0x1da)],_0x47ae3e=resolve(_0x38a454,SKILL_FILE);if(!existsSync(_0x47ae3e)||!lstatSync(_0x47ae3e)['isFile']())throw CliErrors[_0x91152d(0x1fc)](_0x91152d(0x1bf)+SKILL_FILE+':\x20'+_0x47ae3e);const _0x4d1442=_0x240426[_0x91152d(0x1ed)],_0x4b4e2c=_0x457f72['targetScope']??_0x91152d(0x1e5);if(!_0x457f72[_0x91152d(0x1e1)]&&_0x4d1442?.[_0x91152d(0x1f3)]===_0x91152d(0x1f5))throw CliErrors[_0x91152d(0x1fc)](_0x91152d(0x1cf)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x4d1442[_0x91152d(0x1f3)]+'\x22.');if(!_0x457f72[_0x91152d(0x1e1)]&&_0x4b4e2c==='personal'&&_0x4d1442?.[_0x91152d(0x1f3)]&&_0x4d1442['scope']!==_0x91152d(0x1e5))throw CliErrors[_0x91152d(0x1fc)](_0x91152d(0x1d8)+METADATA_FILE+_0x91152d(0x1c0)+_0x4d1442[_0x91152d(0x1f3)]+'\x22.','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20'+_0x38a454+_0x91152d(0x1d9));const _0x33feb3=scanSkillDirectory(_0x38a454,{'excludedFilePaths':_0x457f72[_0x91152d(0x1dd)]}),_0x522255=buildSkillPackage(_0x33feb3),_0x11b7a3=readFileSync(_0x47ae3e,_0x91152d(0x1c2)),_0x14f3a7=_0x240426[_0x91152d(0x1f8)],_0x47278e=_0x457f72[_0x91152d(0x1ef)]?undefined:_0x4d1442,_0x211ec1=readSkillDisplayName(_0x11b7a3);return{'skillCode':_0x14f3a7,'metadata':_0x4d1442,'frontmatterDisplayName':_0x211ec1,'input':{'skillCode':_0x14f3a7,'skillName':_0x211ec1??_0x47278e?.[_0x91152d(0x1c3)],'description':_0x47278e?.['description'],'content':_0x11b7a3,'files':_0x522255[_0x91152d(0x1d4)],'packageBase64':_0x522255[_0x91152d(0x1fe)],'tags':_0x47278e?.[_0x91152d(0x1f2)],'version':_0x47278e?.[_0x91152d(0x1ce)],'sourceSessionId':_0x47278e?.[_0x91152d(0x1bc)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x34b111,_0x767cfe,_0x506f99,_0x2bebb5={}){const _0x547368=a164_0x3d82,_0x28b331=resolvePushDirectoryRoot(_0x34b111),_0x56fc94=readPushMetadataIfPresent(resolve(_0x28b331,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x276fd2=requireRemoteScope(_0x767cfe),_0x2056a1=readLocalSkillContent(_0x28b331),_0x23b3fe={..._0x767cfe,'appCode':_0x767cfe[_0x547368(0x1fa)]??_0x506f99,'skillName':_0x767cfe[_0x547368(0x1c3)]??_0x56fc94?.[_0x547368(0x1c3)],'description':_0x767cfe[_0x547368(0x1fb)]??_0x56fc94?.[_0x547368(0x1fb)],'example':_0x767cfe[_0x547368(0x1e6)]??_0x56fc94?.[_0x547368(0x1e6)],'tags':Array[_0x547368(0x1e4)](_0x767cfe[_0x547368(0x1f2)])?_0x767cfe[_0x547368(0x1f2)]:_0x56fc94?.[_0x547368(0x1f2)],'sourceSessionId':_0x767cfe[_0x547368(0x1bc)]??_0x56fc94?.['sourceSessionId'],'content':_0x767cfe[_0x547368(0x1ea)]??_0x2056a1},_0x27bec2=buildMetadata(_0x23b3fe,_0x276fd2,_0x506f99,contentHash(_0x2056a1),_0x2bebb5[_0x547368(0x1c8)]);writeJsonAtomic(resolve(_0x28b331,METADATA_FILE),_0x27bec2);}export function recordPushedRuntimeSkill(_0x42860a,_0x2efd10,_0x1fcd77,_0x22120e={}){const _0x55e668=a164_0x3d82,_0x2423a1=resolvePushDirectoryRoot(_0x42860a),_0x14fe75=scanSkillDirectory(_0x2423a1),_0x24103a=_0x14fe75[_0x55e668(0x1c5)](_0x4a0a4f=>_0x4a0a4f[_0x55e668(0x1eb)]===SKILL_FILE),_0x3132fb=_0x24103a?fileText(_0x24103a):'',_0x45b675=tryNormalizePackageManifest(_0x2efd10[_0x55e668(0x1ca)]),_0xd4c9c0={..._0x2efd10,'content':_0x2efd10[_0x55e668(0x1ea)]??_0x3132fb,'files':_0x45b675},_0x235358=_0x45b675?normalizeLocalFiles(_0x14fe75)[_0x55e668(0x1d0)](_0x406536=>_0x45b675['files'][_0x55e668(0x1cd)](_0x57d09f=>_0x57d09f[_0x55e668(0x1eb)]===_0x406536[_0x55e668(0x1eb)])):undefined,_0x30016c=buildMetadata(_0xd4c9c0,_0x22120e[_0x55e668(0x1f3)]??_0x55e668(0x1e5),_0x1fcd77,contentHash(_0xd4c9c0[_0x55e668(0x1ea)]??''),_0x22120e[_0x55e668(0x1f9)],_0x235358);writeJsonAtomic(resolve(_0x2423a1,METADATA_FILE),_0x30016c);}export function deriveSkillCodeFromDirectory(_0x1dc8dc,_0x27caf7){const _0x1f89d8=a164_0x3d82,_0x23dc25=basename(resolve(_0x1dc8dc)),_0x3bcb83=_0x27caf7+'--';return _0x23dc25[_0x1f89d8(0x1df)](_0x3bcb83)?_0x23dc25[_0x1f89d8(0x1e0)](_0x3bcb83['length']):_0x23dc25;}function resolvePushSkillCode(_0xf744d7,_0x1fc8ed,_0x3041fb,_0x33ebfe){const _0x2869cd=a164_0x3d82,_0x17a354=deriveSkillCodeFromSkillFile(_0xf744d7)||deriveSkillCodeFromDirectory(_0xf744d7,_0x1fc8ed);if(_0x33ebfe[_0x2869cd(0x1be)])return _0x17a354;return _0x3041fb?.[_0x2869cd(0x1f8)]?.[_0x2869cd(0x1fd)]()||_0x17a354;}function deriveSkillCodeFromSkillFile(_0x31a609){const _0x928bf7=a164_0x3d82,_0x5560b6=resolve(_0x31a609,SKILL_FILE);if(!existsSync(_0x5560b6)||!lstatSync(_0x5560b6)['isFile']())return undefined;const _0x27058c=readFileSync(_0x5560b6,_0x928bf7(0x1c2)),_0x227e9c=_0x27058c[_0x928bf7(0x1b9)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x227e9c)return undefined;const _0x4e6848=parseFrontmatterObject(_0x227e9c[0x1]??''),_0x354aee=scalarToString(_0x4e6848?.[_0x928bf7(0x1d1)]);return _0x354aee?slugifySkillName(_0x354aee):undefined;}function readSkillDisplayName(_0x37ae92){const _0x53d98f=a164_0x3d82,_0x527847=_0x37ae92[_0x53d98f(0x1b9)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x527847)return undefined;const _0x1e2c4f=parseFrontmatterObject(_0x527847[0x1]??'');return scalarToString(_0x1e2c4f?.['displayName']);}function slugifySkillName(_0x86656b){const _0x405e74=a164_0x3d82,_0x3bc8d4=_0x86656b[_0x405e74(0x1fd)]()[_0x405e74(0x1d7)]()[_0x405e74(0x1db)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x405e74(0x1db)](/^-+/,'')['replace'](/-+$/,'')[_0x405e74(0x1db)](/-{2,}/g,'-');if(!_0x3bc8d4)throw CliErrors[_0x405e74(0x1fc)](_0x405e74(0x1f7)+SKILL_FILE+_0x405e74(0x1d6));return _0x3bc8d4;}function parseFrontmatterObject(_0x119c22){const _0x40de29=a164_0x3d82;try{const _0x8fd84f=a164_0xa2009d(_0x119c22);return _0x8fd84f&&typeof _0x8fd84f===_0x40de29(0x1bb)&&!Array[_0x40de29(0x1e4)](_0x8fd84f)?_0x8fd84f:undefined;}catch{return undefined;}}function scalarToString(_0x5d7143){const _0x3ce887=a164_0x3d82;if(typeof _0x5d7143===_0x3ce887(0x1dc))return _0x5d7143['trim']();if(typeof _0x5d7143===_0x3ce887(0x1f0)||typeof _0x5d7143===_0x3ce887(0x1ec))return String(_0x5d7143);return undefined;}function resolvePushDirectoryRoot(_0x56dec9){const _0x5b0334=a164_0x3d82,_0x190d7c=resolve(_0x56dec9);if(!existsSync(_0x190d7c))throw CliErrors[_0x5b0334(0x1fc)]('Skill\x20directory\x20not\x20found:\x20'+_0x56dec9);const _0x10ebc0=lstatSync(_0x190d7c);if(_0x10ebc0[_0x5b0334(0x1e9)]())return _0x190d7c;if(_0x10ebc0[_0x5b0334(0x1c9)]()){const _0x3c46ba=realpathSync(_0x190d7c);if(lstatSync(_0x3c46ba)[_0x5b0334(0x1e9)]())return _0x3c46ba;}throw CliErrors['validation'](_0x5b0334(0x1f6)+_0x56dec9);}function requireRemoteScope(_0x44e720){const _0x2667b7=a164_0x3d82;if(_0x44e720[_0x2667b7(0x1f3)]==='personal'||_0x44e720[_0x2667b7(0x1f3)]===_0x2667b7(0x1ba)||_0x44e720[_0x2667b7(0x1f3)]===_0x2667b7(0x1f5))return _0x44e720[_0x2667b7(0x1f3)];throw CliErrors[_0x2667b7(0x1fc)](_0x2667b7(0x1c1)+(_0x44e720[_0x2667b7(0x1f8)]||_0x2667b7(0x1c6))+_0x2667b7(0x1c4)+(_0x44e720['scope']??_0x2667b7(0x1e2))+'\x22.');}function readLocalSkillContent(_0x1b92a2){const _0x15ad88=a164_0x3d82,_0x282d01=resolve(_0x1b92a2,SKILL_FILE);return existsSync(_0x282d01)&&lstatSync(_0x282d01)[_0x15ad88(0x1f4)]()?readFileSync(_0x282d01,_0x15ad88(0x1c2)):'';}function readPushMetadataIfPresent(_0x4216b8,_0x55f6e9={}){try{return readMetadataIfPresent(_0x4216b8);}catch(_0x59fa2a){if(_0x55f6e9['ignoreInvalidMetadata'])return undefined;throw _0x59fa2a;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x6cd40e,_0x5bacad){const _0x3eb47c=a165_0x2ad2,_0x5d8312=_0x6cd40e();while(!![]){try{const _0x21caeb=-parseInt(_0x3eb47c(0x19e))/0x1*(-parseInt(_0x3eb47c(0x1a5))/0x2)+parseInt(_0x3eb47c(0x1a1))/0x3*(parseInt(_0x3eb47c(0x197))/0x4)+parseInt(_0x3eb47c(0x1a2))/0x5+parseInt(_0x3eb47c(0x19b))/0x6*(-parseInt(_0x3eb47c(0x1a3))/0x7)+parseInt(_0x3eb47c(0x1a6))/0x8*(parseInt(_0x3eb47c(0x198))/0x9)+-parseInt(_0x3eb47c(0x1a0))/0xa+parseInt(_0x3eb47c(0x196))/0xb;if(_0x21caeb===_0x5bacad)break;else _0x5d8312['push'](_0x5d8312['shift']());}catch(_0x290440){_0x5d8312['push'](_0x5d8312['shift']());}}}(a165_0x391e,0x42cfe));import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x1ce34f){const _0x503afd=a165_0x2ad2,_0x2cbd40=_0x1ce34f&&_0x1ce34f[_0x503afd(0x19c)]>0x0?_0x1ce34f:[_0x503afd(0x19d),_0x503afd(0x19a),_0x503afd(0x19f)],_0x3fc792=[];for(const _0x4b894b of _0x2cbd40){if(!isRuntimeSkillScope(_0x4b894b))throw CliErrors[_0x503afd(0x199)](_0x503afd(0x1a4)+_0x4b894b);!_0x3fc792[_0x503afd(0x1a7)](_0x4b894b)&&_0x3fc792[_0x503afd(0x1a8)](_0x4b894b);}return _0x3fc792;}export function isRuntimeSkillScope(_0x347b2a){const _0x584895=a165_0x2ad2;return _0x347b2a===_0x584895(0x19d)||_0x347b2a===_0x584895(0x19a)||_0x347b2a===_0x584895(0x19f);}function a165_0x2ad2(_0x5ba0e8,_0x1c0d08){_0x5ba0e8=_0x5ba0e8-0x196;const _0x391e5c=a165_0x391e();let _0x2ad251=_0x391e5c[_0x5ba0e8];return _0x2ad251;}function a165_0x391e(){const _0xca287c=['Unsupported\x20runtime\x20Skill\x20scope:\x20','906xynTER','1338488UotQFl','includes','push','2708497pPzEId','59904qltQtg','9JyBnif','validation','company','44034RtXVSV','length','personal','349CSAaXn','builtin','3355530nRCWBc','75QQqszS','847855FhIrlK','483FAQdJd'];a165_0x391e=function(){return _0xca287c;};return a165_0x391e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a167_0x560c63=a167_0x3f08;(function(_0x11c50e,_0x433e30){const _0x176403=a167_0x3f08,_0x106395=_0x11c50e();while(!![]){try{const _0x5276ab=-parseInt(_0x176403(0x199))/0x1+-parseInt(_0x176403(0x19b))/0x2+parseInt(_0x176403(0x190))/0x3*(parseInt(_0x176403(0x18d))/0x4)+-parseInt(_0x176403(0x197))/0x5*(-parseInt(_0x176403(0x1a1))/0x6)+-parseInt(_0x176403(0x196))/0x7+-parseInt(_0x176403(0x1a0))/0x8+-parseInt(_0x176403(0x18c))/0x9*(-parseInt(_0x176403(0x191))/0xa);if(_0x5276ab===_0x433e30)break;else _0x106395['push'](_0x106395['shift']());}catch(_0xa9e45c){_0x106395['push'](_0x106395['shift']());}}}(a167_0x7b7a,0x6de0d));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';function a167_0x3f08(_0x2504dd,_0x599742){_0x2504dd=_0x2504dd-0x18c;const _0x7b7ae8=a167_0x7b7a();let _0x3f08b5=_0x7b7ae8[_0x2504dd];return _0x3f08b5;}import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a167_0x560c63(0x1a2));export function createDeterministicZipPackage(_0xe0dfaf){const _0xeaed7c=a167_0x560c63,_0x185176={};for(const _0x4a04dc of normalizeLocalFiles(_0xe0dfaf)){_0x185176[_0x4a04dc['path']]=fileContent(_0x4a04dc);}return Buffer[_0xeaed7c(0x19f)](zipSync(_0x185176,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x3952e8){const _0x536f86=a167_0x560c63;if(_0x3952e8[_0x536f86(0x195)]<0x16)throw CliErrors[_0x536f86(0x19a)](_0x536f86(0x192));let _0x4930d1;try{_0x4930d1=unzipSync(_0x3952e8,{'filter'(_0x2c6823){const _0x162200=_0x536f86,_0x404cb8=normalizeSkillRelativePath(_0x2c6823[_0x162200(0x194)]);if(_0x404cb8[_0x162200(0x198)]('/'))throw CliErrors['validation'](_0x162200(0x19d)+_0x404cb8);return!![];}});}catch(_0x512f48){if(isRuntimeSkillValidationError(_0x512f48))throw _0x512f48;throw CliErrors[_0x536f86(0x19a)]('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');}return Object[_0x536f86(0x18f)](_0x4930d1)[_0x536f86(0x193)](([_0x58d615,_0x344af8])=>({'path':normalizeSkillRelativePath(_0x58d615),'bytes':Buffer[_0x536f86(0x19f)](_0x344af8)}))[_0x536f86(0x19e)](compareSkillFiles);}function a167_0x7b7a(){const _0x3b6c7f=['Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','map','name','length','5460140hjTwZN','5TxpbRr','endsWith','685471JHJZts','validation','458648vLRbFa','object','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','sort','from','4651280xlczmf','3999108EkvJoH','1980-01-01T00:00:00.000Z','2931642niPydZ','96uPRMuO','code','entries','94602MgzqEo','40yBCTeZ'];a167_0x7b7a=function(){return _0x3b6c7f;};return a167_0x7b7a();}function isRuntimeSkillValidationError(_0x34919c){const _0x2b4297=a167_0x560c63;return typeof _0x34919c===_0x2b4297(0x19c)&&_0x34919c!==null&&_0x2b4297(0x18e)in _0x34919c&&_0x34919c[_0x2b4297(0x18e)]==='validation_error';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3d4109,_0x260103){const _0x11a355=a168_0xa9ba,_0x123dcc=_0x3d4109();while(!![]){try{const _0x4effa7=parseInt(_0x11a355(0x1e4))/0x1*(-parseInt(_0x11a355(0x1e9))/0x2)+-parseInt(_0x11a355(0x1fe))/0x3+-parseInt(_0x11a355(0x1e8))/0x4+-parseInt(_0x11a355(0x1eb))/0x5*(-parseInt(_0x11a355(0x1e7))/0x6)+parseInt(_0x11a355(0x1fc))/0x7+-parseInt(_0x11a355(0x1ef))/0x8*(parseInt(_0x11a355(0x1e5))/0x9)+parseInt(_0x11a355(0x202))/0xa;if(_0x4effa7===_0x260103)break;else _0x123dcc['push'](_0x123dcc['shift']());}catch(_0x3f64c0){_0x123dcc['push'](_0x123dcc['shift']());}}}(a168_0x187f,0x1cd9a));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';function a168_0x187f(){const _0x3c9e36=['3250160hPJWEh','zipSha256','schemaVersion','zipSize','length','files','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','toString','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','get','isArray','treeSha256','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','requireOssPath','1qBOpJV','1251819ZNtXZo','map','396732xvNIkd','479220lhiDoY','233608HVUQUa','bytes','10UfcNTv','Runtime\x20Skill\x20package\x20is\x20missing\x20','path','set','8UcsFLu','has','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','Duplicate\x20Skill\x20package\x20entry:\x20','validation','isSafeInteger','Missing\x20','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','push','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','ossPath','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','367094ZrwQJI','toLowerCase','47496cyHdIs','base64','trim','string'];a168_0x187f=function(){return _0x3c9e36;};return a168_0x187f();}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(_0x6de278){const _0xeb8f99=a168_0xa9ba,_0x3ccd75=normalizeLocalFiles(_0x6de278);if(!_0x3ccd75['some'](_0x566022=>_0x566022[_0xeb8f99(0x1ed)]===SKILL_FILE))throw CliErrors[_0xeb8f99(0x1f4)](_0xeb8f99(0x1f6)+SKILL_FILE+'\x20in\x20Skill\x20file\x20package.');const _0x1dae31=localFilesToManifestFiles(_0x3ccd75),_0x3f60f6=createDeterministicZipPackage(_0x3ccd75);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x1dae31),'zipSha256':bufferSha256(_0x3f60f6),'zipSize':_0x3f60f6[_0xeb8f99(0x206)],'files':_0x1dae31},'packageBytes':_0x3f60f6,'packageBase64':_0x3f60f6[_0xeb8f99(0x20a)](_0xeb8f99(0x1ff))};}export function verifyRuntimeSkillPackage(_0x37b3c9,_0x15d5b6){const _0x85bd02=a168_0xa9ba,_0x134e65=normalizePackageManifest(_0x37b3c9,{'requireOssPath':![]});if(!_0x134e65)throw CliErrors[_0x85bd02(0x1f4)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackage(_0x134e65,_0x15d5b6);}export function verifyRuntimeSkillBundle(_0x9d7b2c,_0x4f24a7){const _0x55ff82=a168_0xa9ba,_0x2714c1=normalizePackageManifest(_0x9d7b2c,{'requireOssPath':![]});if(!_0x2714c1)throw CliErrors[_0x55ff82(0x1f4)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x2714c1,_0x4f24a7);}export function tryNormalizePackageManifest(_0x34b4f0){return normalizePackageManifest(_0x34b4f0,{'requireOssPath':![]});}export function requirePackageBytes(_0x9e1ee2,_0x531a73){const _0x3b9c99=a168_0xa9ba;if(!_0x531a73||_0x531a73[_0x3b9c99(0x206)]===0x0)throw CliErrors[_0x3b9c99(0x1f4)](_0x3b9c99(0x208)+_0x9e1ee2);return _0x531a73;}export function extractDownloadedPackage(_0x26a842){const _0x2c4b14=a168_0xa9ba,_0x2c1186=parseZipPackage(_0x26a842)[_0x2c4b14(0x1e6)](_0x4a64c9=>({'path':_0x4a64c9[_0x2c4b14(0x1ed)],'bytes':_0x4a64c9['bytes']}));if(!_0x2c1186['some'](_0x34bdce=>_0x34bdce[_0x2c4b14(0x1ed)]===SKILL_FILE))throw CliErrors['validation'](_0x2c4b14(0x1ec)+SKILL_FILE+'.');return normalizeLocalFiles(_0x2c1186);}export function localFilesToManifestFiles(_0x39e221){const _0x4d15c8=a168_0xa9ba;return normalizeLocalFiles(_0x39e221)[_0x4d15c8(0x1e6)](_0x2ac5fd=>({'path':_0x2ac5fd[_0x4d15c8(0x1ed)],'sha256':fileHash(_0x2ac5fd),'size':fileContent(_0x2ac5fd)[_0x4d15c8(0x206)]}));}function normalizePackageManifest(_0x4eafc7,_0x1d9acd){const _0x2e8104=a168_0xa9ba;if(!_0x4eafc7||typeof _0x4eafc7!=='object'||Array[_0x2e8104(0x20e)](_0x4eafc7))return undefined;const _0x43fc00=_0x4eafc7,_0x22d326=typeof _0x43fc00[_0x2e8104(0x1fa)]===_0x2e8104(0x201)?_0x43fc00[_0x2e8104(0x1fa)][_0x2e8104(0x200)]():undefined;if(_0x1d9acd[_0x2e8104(0x1e3)]&&!_0x22d326)return undefined;if(!Array[_0x2e8104(0x20e)](_0x43fc00[_0x2e8104(0x207)])||_0x43fc00[_0x2e8104(0x207)][_0x2e8104(0x206)]===0x0)return undefined;if(!isSha256Hex(_0x43fc00['treeSha256']))throw CliErrors[_0x2e8104(0x1f4)](_0x2e8104(0x209));if(!isSha256Hex(_0x43fc00[_0x2e8104(0x203)]))throw CliErrors['validation'](_0x2e8104(0x1fb));if(!Number[_0x2e8104(0x1f5)](_0x43fc00['zipSize'])||_0x43fc00[_0x2e8104(0x205)]<0x0)throw CliErrors[_0x2e8104(0x1f4)]('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');const _0x12d811=normalizeManifestFiles(_0x43fc00['files']);if(!_0x12d811['some'](_0x5a50e9=>_0x5a50e9[_0x2e8104(0x1ed)]===SKILL_FILE))throw CliErrors[_0x2e8104(0x1f4)](_0x2e8104(0x1f9)+SKILL_FILE+'.');const _0x382b77=fileTreeHash(_0x12d811);if(_0x382b77!==_0x43fc00[_0x2e8104(0x20f)][_0x2e8104(0x1fd)]())throw CliErrors['validation'](_0x2e8104(0x1f2));return{'schemaVersion':Number[_0x2e8104(0x1f5)](_0x43fc00['schemaVersion'])?_0x43fc00[_0x2e8104(0x204)]:0x2,'ossPath':_0x22d326,'treeSha256':_0x382b77,'zipSha256':_0x43fc00[_0x2e8104(0x203)]['toLowerCase'](),'zipSize':_0x43fc00[_0x2e8104(0x205)],'files':_0x12d811};}function extractAndVerifyPackage(_0xfb60c5,_0x3e7492){const _0x5717c1=a168_0xa9ba,_0x14c4b8=normalizePackageManifest(_0xfb60c5,{'requireOssPath':![]});if(!_0x14c4b8)throw CliErrors[_0x5717c1(0x1f4)](_0x5717c1(0x210));if(_0x3e7492[_0x5717c1(0x206)]!==_0x14c4b8['zipSize'])throw CliErrors[_0x5717c1(0x1f4)]('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x939539=bufferSha256(_0x3e7492);if(_0x939539!==_0x14c4b8['zipSha256'])throw CliErrors[_0x5717c1(0x1f4)](_0x5717c1(0x20b));return extractAndVerifyPackageFiles(_0x14c4b8,_0x3e7492);}function a168_0xa9ba(_0x1e4b3e,_0x58b2ce){_0x1e4b3e=_0x1e4b3e-0x1e3;const _0x187f16=a168_0x187f();let _0xa9ba3a=_0x187f16[_0x1e4b3e];return _0xa9ba3a;}function extractAndVerifyPackageFiles(_0x3af2aa,_0x2e0a18){const _0x9b1396=a168_0xa9ba,_0x13e3a1=parseZipPackage(_0x2e0a18);if(_0x13e3a1['length']!==_0x3af2aa[_0x9b1396(0x207)][_0x9b1396(0x206)])throw CliErrors[_0x9b1396(0x1f4)]('Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.');const _0x2cab9f=new Map();for(const _0x3bfcce of _0x13e3a1){if(_0x2cab9f[_0x9b1396(0x1f0)](_0x3bfcce[_0x9b1396(0x1ed)]))throw CliErrors[_0x9b1396(0x1f4)](_0x9b1396(0x1f3)+_0x3bfcce[_0x9b1396(0x1ed)]);_0x2cab9f[_0x9b1396(0x1ee)](_0x3bfcce[_0x9b1396(0x1ed)],_0x3bfcce);}const _0x2695c9=[];for(const _0x2c52bf of _0x3af2aa[_0x9b1396(0x207)]){const _0x386717=_0x2cab9f[_0x9b1396(0x20d)](_0x2c52bf[_0x9b1396(0x1ed)]);if(!_0x386717)throw CliErrors[_0x9b1396(0x1f4)](_0x9b1396(0x20c)+_0x2c52bf['path']);if(_0x386717[_0x9b1396(0x1ea)][_0x9b1396(0x206)]!==_0x2c52bf['size'])throw CliErrors[_0x9b1396(0x1f4)](_0x9b1396(0x1f1)+_0x2c52bf['path']);const _0x70a0b0=bufferSha256(_0x386717[_0x9b1396(0x1ea)]);if(_0x70a0b0!==_0x2c52bf['sha256'])throw CliErrors[_0x9b1396(0x1f4)](_0x9b1396(0x1f7)+_0x2c52bf['path']);_0x2695c9[_0x9b1396(0x1f8)]({'path':_0x2c52bf['path'],'bytes':_0x386717[_0x9b1396(0x1ea)]});}return normalizeLocalFiles(_0x2695c9);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2a0912,_0x4480d5){var _0x26d1f6=a169_0x3ca6,_0x4c0afa=_0x2a0912();while(!![]){try{var _0x3a9095=-parseInt(_0x26d1f6(0x94))/0x1+parseInt(_0x26d1f6(0x92))/0x2*(parseInt(_0x26d1f6(0x95))/0x3)+-parseInt(_0x26d1f6(0x97))/0x4*(-parseInt(_0x26d1f6(0x93))/0x5)+parseInt(_0x26d1f6(0x96))/0x6+-parseInt(_0x26d1f6(0x8f))/0x7*(-parseInt(_0x26d1f6(0x90))/0x8)+parseInt(_0x26d1f6(0x8e))/0x9+parseInt(_0x26d1f6(0x98))/0xa*(-parseInt(_0x26d1f6(0x91))/0xb);if(_0x3a9095===_0x4480d5)break;else _0x4c0afa['push'](_0x4c0afa['shift']());}catch(_0x1bba49){_0x4c0afa['push'](_0x4c0afa['shift']());}}}(a169_0x31ae,0x20240));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';function a169_0x3ca6(_0x2883ed,_0x538895){_0x2883ed=_0x2883ed-0x8e;var _0x31aea7=a169_0x31ae();var _0x3ca6f9=_0x31aea7[_0x2883ed];return _0x3ca6f9;}function a169_0x31ae(){var _0x1d00bd=['50916vJavCU','10785givLpd','1418874IOLcNH','24cKTDBJ','10VQflpx','2077362QvgeIk','6937CSzXXY','1936CUDfZC','8386466XMRqsF','58lTKbyx','111330VAYrtp'];a169_0x31ae=function(){return _0x1d00bd;};return a169_0x31ae();}export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill,reuseMaterializedRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a170_0x3471fb=a170_0x36d0;(function(_0xcda90d,_0x56cb5c){const _0x1faaf8=a170_0x36d0,_0x310a5f=_0xcda90d();while(!![]){try{const _0x2a51aa=parseInt(_0x1faaf8(0x6c))/0x1+parseInt(_0x1faaf8(0x82))/0x2+parseInt(_0x1faaf8(0x6f))/0x3+-parseInt(_0x1faaf8(0x71))/0x4*(parseInt(_0x1faaf8(0x86))/0x5)+parseInt(_0x1faaf8(0x7f))/0x6*(-parseInt(_0x1faaf8(0x6b))/0x7)+parseInt(_0x1faaf8(0x77))/0x8+parseInt(_0x1faaf8(0x70))/0x9;if(_0x2a51aa===_0x56cb5c)break;else _0x310a5f['push'](_0x310a5f['shift']());}catch(_0x4241f5){_0x310a5f['push'](_0x310a5f['shift']());}}}(a170_0x306e,0xec61f));import{existsSync,readFileSync}from'node:fs';function a170_0x36d0(_0x3f23d5,_0x183d74){_0x3f23d5=_0x3f23d5-0x69;const _0x306e26=a170_0x306e();let _0x36d0ad=_0x306e26[_0x3f23d5];return _0x36d0ad;}function a170_0x306e(){const _0x366f59=['find','2588871vegCET','796662VEYVXB','550772mmIWGD','SKILL.md','absent','.claude','unverifiable','parse','2743824rnRbLf','map','\x20has\x20no\x20skills\x20map','unusable','utf8','not-recorded','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','version','1398VMVYYW','\x20is\x20unreadable:\x20','present','410480HSYQar','recorded','.agents','object','15mrCXRd','message','\x20records\x20\x22','includes','number','skills','globalSkillsDirs','11347glNUIZ','259302czUGIs','kind'];a170_0x306e=function(){return _0x366f59;};return a170_0x306e();}import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a170_0x3471fb(0x84),'.skill-lock.json');export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a170_0x3471fb(0x84),a170_0x3471fb(0x69)),join(a170_0x3471fb(0x74),a170_0x3471fb(0x69))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x402802,_0x3e80b1){const _0x326fa0=a170_0x3471fb;if(!existsSync(_0x402802))return{'kind':_0x326fa0(0x7c)};let _0x4f2d60;try{_0x4f2d60=JSON[_0x326fa0(0x76)](readFileSync(_0x402802,_0x326fa0(0x7b)));}catch(_0x54afdf){return{'kind':_0x326fa0(0x7a),'reason':_0x402802+_0x326fa0(0x80)+_0x54afdf[_0x326fa0(0x87)]};}const _0x5b112d=_0x4f2d60;if(typeof _0x5b112d?.['version']!==_0x326fa0(0x8a)||!SUPPORTED_LOCK_VERSIONS[_0x326fa0(0x89)](_0x5b112d[_0x326fa0(0x7e)]))return{'kind':'unusable','reason':_0x402802+'\x20uses\x20unsupported\x20version\x20'+String(_0x5b112d?.['version'])};if(!_0x5b112d['skills']||typeof _0x5b112d[_0x326fa0(0x69)]!==_0x326fa0(0x85))return{'kind':_0x326fa0(0x7a),'reason':_0x402802+_0x326fa0(0x79)};return _0x5b112d[_0x326fa0(0x69)][_0x3e80b1]?{'kind':'recorded'}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0x5914dd,_0x430f52){const _0x51e57c=a170_0x3471fb,_0x54762c=_0x430f52?.['home']??homedir(),_0x1c26c0=_0x430f52?.[_0x51e57c(0x6a)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x51e57c(0x78)](_0x2a47c6=>join(_0x54762c,_0x2a47c6)),_0x5bf5b4=_0x430f52?.['lockFile']??join(_0x54762c,SKILL_LOCK_RELATIVE_PATH),_0x24dd0c=_0x1c26c0[_0x51e57c(0x78)](_0x2c2033=>join(_0x2c2033,_0x5914dd,_0x51e57c(0x72))),_0x5c630b=_0x24dd0c[_0x51e57c(0x6e)](_0x53bad7=>existsSync(_0x53bad7));if(_0x5c630b)return{'state':_0x51e57c(0x81),'path':_0x5c630b};const _0x3632e4=readLockLookup(_0x5bf5b4,_0x5914dd);if(_0x3632e4[_0x51e57c(0x6d)]==='unusable')return{'state':'unverifiable','reason':_0x3632e4['reason']};if(_0x3632e4[_0x51e57c(0x6d)]===_0x51e57c(0x83))return{'state':_0x51e57c(0x75),'reason':_0x5bf5b4+_0x51e57c(0x88)+_0x5914dd+_0x51e57c(0x7d)+('('+_0x24dd0c['join'](',\x20')+')')};return{'state':_0x51e57c(0x73),'checked':_0x24dd0c};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a171_0x29771e=a171_0x4d94;(function(_0x382f5e,_0x5b8963){const _0x5ad3ef=a171_0x4d94,_0x521b82=_0x382f5e();while(!![]){try{const _0x477c58=parseInt(_0x5ad3ef(0xdf))/0x1*(-parseInt(_0x5ad3ef(0xde))/0x2)+parseInt(_0x5ad3ef(0xd3))/0x3+-parseInt(_0x5ad3ef(0xd9))/0x4*(-parseInt(_0x5ad3ef(0xdc))/0x5)+-parseInt(_0x5ad3ef(0xe7))/0x6*(parseInt(_0x5ad3ef(0xd7))/0x7)+-parseInt(_0x5ad3ef(0xd0))/0x8*(parseInt(_0x5ad3ef(0xe5))/0x9)+-parseInt(_0x5ad3ef(0xdd))/0xa+parseInt(_0x5ad3ef(0xe4))/0xb*(parseInt(_0x5ad3ef(0xd2))/0xc);if(_0x477c58===_0x5b8963)break;else _0x521b82['push'](_0x521b82['shift']());}catch(_0x1c7ab2){_0x521b82['push'](_0x521b82['shift']());}}}(a171_0xcc90,0x1a5eb));const REDACTED_ACCESS_KEY=a171_0x29771e(0xd6);function a171_0xcc90(){const _0x32d023=['hasOwnProperty','653316ZFoKQo','550071CfnKso','string','length','<redacted>','7ZvMRez','isArray','151780fxIjZq','slice','accessKey','15AwFYxd','894120oKkqRJ','174712SysFTW','2IxBhYf','apps','test','fromEntries','repeat','66GJycpW','18qCTXIS','prototype','1028442MOQDsQ','map','object','call','321232DDEMKv'];a171_0xcc90=function(){return _0x32d023;};return a171_0xcc90();}export function maskCliAccessKey(_0x1ce08b){const _0x223c79=a171_0x29771e;if(typeof _0x1ce08b!==_0x223c79(0xd4)||_0x1ce08b[_0x223c79(0xd5)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x1ce08b[_0x223c79(0xda)](0x0,0x8)+'*'[_0x223c79(0xe3)](_0x1ce08b[_0x223c79(0xd5)]-0x8);}export function redactCliConfigCredentials(_0x115602){const _0x4333e7=a171_0x29771e,_0x1f93a1={..._0x115602};return Object[_0x4333e7(0xe6)][_0x4333e7(0xd1)][_0x4333e7(0xea)](_0x1f93a1,'accessKey')&&(_0x1f93a1[_0x4333e7(0xdb)]=maskCliAccessKey(_0x1f93a1[_0x4333e7(0xdb)])),_0x1f93a1[_0x4333e7(0xe0)]&&typeof _0x1f93a1[_0x4333e7(0xe0)]===_0x4333e7(0xe9)&&!Array['isArray'](_0x1f93a1['apps'])&&(_0x1f93a1[_0x4333e7(0xe0)]=redactLegacyAppCredentials(_0x1f93a1[_0x4333e7(0xe0)])),_0x1f93a1;}function a171_0x4d94(_0x569204,_0x4453e9){_0x569204=_0x569204-0xd0;const _0xcc90cc=a171_0xcc90();let _0x4d94d3=_0xcc90cc[_0x569204];return _0x4d94d3;}export function redactCliConfigValue(_0x161cb8,_0x190275){const _0xb446fa=a171_0x29771e;if(_0x161cb8==='accessKey'||/^apps\.[^.]+\.accessKey$/[_0xb446fa(0xe1)](_0x161cb8))return maskCliAccessKey(_0x190275);if(_0x161cb8===_0xb446fa(0xe0)&&_0x190275&&typeof _0x190275===_0xb446fa(0xe9)&&!Array[_0xb446fa(0xd8)](_0x190275))return redactLegacyAppCredentials(_0x190275);if(/^apps\.[^.]+$/[_0xb446fa(0xe1)](_0x161cb8)&&_0x190275&&typeof _0x190275===_0xb446fa(0xe9)&&!Array[_0xb446fa(0xd8)](_0x190275)){const _0x151486=_0x190275;return Object[_0xb446fa(0xe6)][_0xb446fa(0xd1)][_0xb446fa(0xea)](_0x151486,_0xb446fa(0xdb))?{..._0x151486,'accessKey':maskCliAccessKey(_0x151486[_0xb446fa(0xdb)])}:_0x190275;}return _0x190275;}function redactLegacyAppCredentials(_0x3a4b7c){const _0x4fce3a=a171_0x29771e;return Object[_0x4fce3a(0xe2)](Object['entries'](_0x3a4b7c)[_0x4fce3a(0xe8)](([_0x37522f,_0x56a987])=>{const _0x3ce721=_0x4fce3a;if(!_0x56a987||typeof _0x56a987!==_0x3ce721(0xe9)||Array[_0x3ce721(0xd8)](_0x56a987))return[_0x37522f,_0x56a987];const _0xce317a={..._0x56a987};return Object['prototype'][_0x3ce721(0xd1)][_0x3ce721(0xea)](_0xce317a,_0x3ce721(0xdb))&&(_0xce317a[_0x3ce721(0xdb)]=maskCliAccessKey(_0xce317a[_0x3ce721(0xdb)])),[_0x37522f,_0xce317a];}));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x30dadc,_0x4818c1){const _0x253138=a172_0x724a,_0x473365=_0x30dadc();while(!![]){try{const _0x4a9bb1=-parseInt(_0x253138(0x122))/0x1*(parseInt(_0x253138(0x123))/0x2)+parseInt(_0x253138(0x12c))/0x3+-parseInt(_0x253138(0x129))/0x4*(parseInt(_0x253138(0x126))/0x5)+parseInt(_0x253138(0x124))/0x6+-parseInt(_0x253138(0x12a))/0x7*(parseInt(_0x253138(0x128))/0x8)+parseInt(_0x253138(0x125))/0x9+-parseInt(_0x253138(0x12b))/0xa*(-parseInt(_0x253138(0x127))/0xb);if(_0x4a9bb1===_0x4818c1)break;else _0x473365['push'](_0x473365['shift']());}catch(_0x1acad2){_0x473365['push'](_0x473365['shift']());}}}(a172_0xa813,0x8c567));function a172_0xa813(){const _0x5423ec=['197360jyyhAk','10196KpzFzg','322eohBao','14222980sqYLQd','886860LIIcpx','99vzhuSX','4262IWNcvP','774270gkzXBX','1419894DrdGba','165kBmdtH','11kzwIox'];a172_0xa813=function(){return _0x5423ec;};return a172_0xa813();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a172_0x724a(_0x165a6c,_0x415101){_0x165a6c=_0x165a6c-0x122;const _0xa81339=a172_0xa813();let _0x724a98=_0xa81339[_0x165a6c];return _0x724a98;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a173_0x15ff(){const _0x572d15=['minimumVersion','1708641YkEmWn','join','Current\x20version:\x20','10DpconZ','121rrRyVL','2245DLbWYN','Upgrade\x20command:\x20','validation','Minimum\x20supported:\x20','filter','valid','upgradeMessage','554416KzBOCc','550664jdaAmF','870qLKcOy','npm\x20install\x20-g\x20','unavailable','7yvWhWV','29513CHUsJg','Recommended\x20stable:\x20','minimumVersionMessage','stableVersion','18010ZgYhig','620379BqStuY','latest','currentVersion','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.'];a173_0x15ff=function(){return _0x572d15;};return a173_0x15ff();}(function(_0x58549f,_0xd780ec){const _0x339010=a173_0x1e02,_0x1654e2=_0x58549f();while(!![]){try{const _0x235f55=-parseInt(_0x339010(0x148))/0x1*(-parseInt(_0x339010(0x155))/0x2)+-parseInt(_0x339010(0x14d))/0x3+-parseInt(_0x339010(0x15f))/0x4+-parseInt(_0x339010(0x157))/0x5*(-parseInt(_0x339010(0x160))/0x6)+parseInt(_0x339010(0x163))/0x7*(parseInt(_0x339010(0x15e))/0x8)+parseInt(_0x339010(0x152))/0x9+-parseInt(_0x339010(0x14c))/0xa*(parseInt(_0x339010(0x156))/0xb);if(_0x235f55===_0xd780ec)break;else _0x1654e2['push'](_0x1654e2['shift']());}catch(_0x223f5e){_0x1654e2['push'](_0x1654e2['shift']());}}}(a173_0x15ff,0x1a41f));import a173_0x17262d 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(_0x40c924,_0x1c1194){const _0x122d4d=a173_0x1e02,_0x2747dc=a173_0x17262d[_0x122d4d(0x15c)](_0x40c924)===_0x40c924,_0x3a774e=_0x1c1194?.[_0x122d4d(0x14b)]??null,_0x35ca8a=_0x1c1194?.[_0x122d4d(0x151)]??null,_0x3ec96a=Boolean(_0x2747dc&&_0x3a774e&&a173_0x17262d['lt'](_0x40c924,_0x3a774e)),_0x399adb=Boolean(_0x2747dc&&_0x35ca8a&&a173_0x17262d['lt'](_0x40c924,_0x35ca8a));return{'currentVersion':_0x40c924,'stableVersion':_0x3a774e,'minimumVersion':_0x35ca8a,'needsUpgrade':_0x3ec96a||_0x399adb,'belowMinimum':_0x399adb,'upgradeMessage':_0x1c1194?.[_0x122d4d(0x15d)],'minimumVersionMessage':_0x1c1194?.['minimumVersionMessage']};}function a173_0x1e02(_0x1aa423,_0xaf9e85){_0x1aa423=_0x1aa423-0x148;const _0x15ff73=a173_0x15ff();let _0x1e020d=_0x15ff73[_0x1aa423];return _0x1e020d;}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x3533e2){const _0x313268=a173_0x1e02;return _0x313268(0x161)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x3533e2[_0x313268(0x14b)]??_0x313268(0x14e));}export function assertCliVersionSupported(_0x17b70a){const _0x132c2a=a173_0x1e02;if(!_0x17b70a['belowMinimum'])return;const _0x369235=[_0x17b70a[_0x132c2a(0x14a)],_0x132c2a(0x154)+_0x17b70a[_0x132c2a(0x14f)],_0x132c2a(0x15a)+_0x17b70a[_0x132c2a(0x151)],_0x132c2a(0x149)+(_0x17b70a[_0x132c2a(0x14b)]??_0x132c2a(0x162)),_0x132c2a(0x158)+getCliUpgradeCommand(_0x17b70a)][_0x132c2a(0x15b)](Boolean)[_0x132c2a(0x153)]('\x0a');throw CliErrors[_0x132c2a(0x159)](_0x132c2a(0x150),_0x369235);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x48351d,_0x505dde){const _0x14d57c=a174_0xefb5,_0x37943c=_0x48351d();while(!![]){try{const _0x19d054=parseInt(_0x14d57c(0xf8))/0x1*(parseInt(_0x14d57c(0xf4))/0x2)+parseInt(_0x14d57c(0xfd))/0x3*(parseInt(_0x14d57c(0xef))/0x4)+parseInt(_0x14d57c(0xfb))/0x5*(parseInt(_0x14d57c(0xf3))/0x6)+parseInt(_0x14d57c(0xf2))/0x7+-parseInt(_0x14d57c(0xf0))/0x8*(-parseInt(_0x14d57c(0xf6))/0x9)+parseInt(_0x14d57c(0x100))/0xa*(-parseInt(_0x14d57c(0xf1))/0xb)+-parseInt(_0x14d57c(0xec))/0xc;if(_0x19d054===_0x505dde)break;else _0x37943c['push'](_0x37943c['shift']());}catch(_0x472003){_0x37943c['push'](_0x37943c['shift']());}}}(a174_0x269f,0x860ec));import a174_0xbfa8b5 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 a174_0xefb5(_0x562f0f,_0xb397d9){_0x562f0f=_0x562f0f-0xe8;const _0x269f4d=a174_0x269f();let _0xefb536=_0x269f4d[_0x562f0f];return _0xefb536;}function pickString(_0x3221cb){const _0x3f5c43=a174_0xefb5;return typeof _0x3221cb==='string'&&_0x3221cb[_0x3f5c43(0xed)]()?_0x3221cb['trim']():null;}function pickStrictSemver(_0x12d32f){const _0x439a73=a174_0xefb5,_0x9f9da4=pickString(_0x12d32f);return _0x9f9da4&&a174_0xbfa8b5[_0x439a73(0xf9)](_0x9f9da4)===_0x9f9da4?_0x9f9da4:null;}export function normalizeCliVersionPolicy(_0x4d6bd9){const _0x3b562f=a174_0xefb5;if(!_0x4d6bd9||typeof _0x4d6bd9!=='object')return null;const _0x2f4b92=_0x4d6bd9,_0x5c44d5=_0x2f4b92['cli']&&typeof _0x2f4b92['cli']==='object'?_0x2f4b92[_0x3b562f(0xf7)]:_0x2f4b92,_0x46cca2=pickStrictSemver(_0x5c44d5['stableVersion']??_0x5c44d5['latestVersion']??_0x5c44d5[_0x3b562f(0xf5)]),_0x431d52=pickStrictSemver(_0x5c44d5[_0x3b562f(0xff)]??_0x5c44d5[_0x3b562f(0xe8)]);if(!_0x46cca2&&!_0x431d52)return null;if(_0x46cca2&&_0x431d52&&a174_0xbfa8b5['gt'](_0x431d52,_0x46cca2))return null;return{'stableVersion':_0x46cca2,'minimumVersion':_0x431d52,'upgradeMessage':pickString(_0x5c44d5[_0x3b562f(0xea)])??undefined,'minimumVersionMessage':pickString(_0x5c44d5[_0x3b562f(0xfe)])??undefined};}export async function fetchCliVersionPolicy(){const _0x595c44=a174_0xefb5;try{const _0x5abb64=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x595c44(0xeb)},'signal':AbortSignal[_0x595c44(0xee)](FETCH_TIMEOUT_MS)});if(!_0x5abb64['ok'])return null;return normalizeCliVersionPolicy(await _0x5abb64[_0x595c44(0xe9)]());}catch{return null;}}function a174_0x269f(){const _0x2c7d92=['finally','330170VQrwgF','now','15CCNJKo','minimumVersionMessage','minimumVersion','5167010NfSWbx','minVersion','json','upgradeMessage','application/json','15851124RibQHo','trim','timeout','224812NHKVff','3400NLoIqv','11gUBjjA','3067596cltJRQ','42LYdqNK','4paKTkk','recommendedVersion','21339XutYtl','cli','98786mBybEp','valid'];a174_0x269f=function(){return _0x2c7d92;};return a174_0x269f();}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x52ea0d=a174_0xefb5,_0x20ba1e=Date[_0x52ea0d(0xfc)]();if(hasCachedPolicy){const _0x3ecb33=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x20ba1e-cachedAt<_0x3ecb33)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()['then'](_0x2efc32=>{const _0x269d88=_0x52ea0d;return cachedPolicy=_0x2efc32,cachedAt=Date[_0x269d88(0xfc)](),hasCachedPolicy=!![],_0x2efc32;})[_0x52ea0d(0xfa)](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a175_0x153b02=a175_0x4f6f;(function(_0x50fb9a,_0x3afb38){const _0x3e2346=a175_0x4f6f,_0x2040b9=_0x50fb9a();while(!![]){try{const _0x3df7dd=-parseInt(_0x3e2346(0xda))/0x1*(-parseInt(_0x3e2346(0xd6))/0x2)+-parseInt(_0x3e2346(0xcc))/0x3*(parseInt(_0x3e2346(0xcb))/0x4)+parseInt(_0x3e2346(0xaf))/0x5*(parseInt(_0x3e2346(0xe0))/0x6)+-parseInt(_0x3e2346(0xb4))/0x7+-parseInt(_0x3e2346(0xbe))/0x8+parseInt(_0x3e2346(0xdd))/0x9+parseInt(_0x3e2346(0xb9))/0xa;if(_0x3df7dd===_0x3afb38)break;else _0x2040b9['push'](_0x2040b9['shift']());}catch(_0x2007f5){_0x2040b9['push'](_0x2040b9['shift']());}}}(a175_0x4121,0x503e4));import a175_0x20d827 from'winston';import a175_0x36a746 from'node:fs';function a175_0x4121(){const _0x44c72f=['transports','readLogs','timestamp','2383584mzepPz','trim','format','errors','winstonLogger','2684420mjFuHc','duration','Completed:\x20','combine','message','179064uxvcpi','writeFileSync','Failed\x20to\x20read\x20logs:','now','blue','stringify','Failed\x20to\x20clear\x20logs:','parse','toISOString','info','currentRawCommand','rawCommand','split','4bzJXfj','1731282nopNrF','printf','existsSync','createLogger','green','map','level','warn','utf8','success','126386rhEkEq','logFilePath','yellow','join','5ROKppI','log','setRawCommand','2697984iGJQFN','error','initWinstonLogger','12tCPLBY','clearLogs','961205QhUIzQ','getWinstonInstance'];a175_0x4121=function(){return _0x44c72f;};return a175_0x4121();}import a175_0x2cbd77 from'node:path';function a175_0x4f6f(_0x4baf59,_0x1a7dba){_0x4baf59=_0x4baf59-0xae;const _0x4121a8=a175_0x4121();let _0x4f6fbf=_0x4121a8[_0x4baf59];return _0x4f6fbf;}import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a175_0x153b02(0xb8)];['logFilePath']='';[a175_0x153b02(0xc8)]='';constructor(){}[a175_0x153b02(0xdc)](_0x2d2948){const _0x216d72=a175_0x153b02;this[_0x216d72(0xc8)]=_0x2d2948;}['setLogPath'](_0x13c83b){const _0x3d2037=a175_0x153b02;this[_0x3d2037(0xd7)]=a175_0x2cbd77[_0x3d2037(0xd9)](_0x13c83b,PRODUCT_CONFIG['logFileName']),this[_0x3d2037(0xb8)]&&this['winstonLogger']['clear'](),this[_0x3d2037(0xdf)]();}[a175_0x153b02(0xdf)](){const _0x24ac03=a175_0x153b02,_0x1197d9=a175_0x2cbd77['dirname'](this[_0x24ac03(0xd7)]);!a175_0x36a746[_0x24ac03(0xce)](_0x1197d9)&&a175_0x36a746['mkdirSync'](_0x1197d9,{'recursive':!![]});const _0x51b53c=a175_0x20d827[_0x24ac03(0xb6)][_0x24ac03(0xbc)](a175_0x20d827[_0x24ac03(0xb6)][_0x24ac03(0xb3)](),a175_0x20d827[_0x24ac03(0xb6)][_0x24ac03(0xb7)]({'stack':!![]}),a175_0x20d827['format'][_0x24ac03(0xcd)](_0x82115d=>{const _0x36b208=_0x24ac03,_0x61e9f={'timestamp':_0x82115d['timestamp']||new Date()[_0x36b208(0xc6)](),'level':_0x82115d[_0x36b208(0xd2)]||'info','command':_0x82115d['command']||'unknown','rawCommand':_0x82115d[_0x36b208(0xc9)]||this[_0x36b208(0xc8)]||undefined,'message':_0x82115d[_0x36b208(0xbd)]||'','duration':_0x82115d[_0x36b208(0xba)]||undefined,'details':_0x82115d['details']||undefined};return JSON[_0x36b208(0xc3)](_0x61e9f);}));this['winstonLogger']=a175_0x20d827[_0x24ac03(0xcf)]({'level':'info','format':_0x51b53c,'transports':[new a175_0x20d827[(_0x24ac03(0xb1))]['File']({'filename':this[_0x24ac03(0xd7)],'level':'info'})],'silent':![]}),a175_0x20d827['addColors']({'success':_0x24ac03(0xd0),'error':'red','warn':_0x24ac03(0xd8),'info':_0x24ac03(0xc2)});}[a175_0x153b02(0xc7)](_0x316177,_0x2a90db,_0x558570){const _0x441a4f=a175_0x153b02;if(!this[_0x441a4f(0xd7)]||!this[_0x441a4f(0xb8)])return;this[_0x441a4f(0xb8)][_0x441a4f(0xc7)](_0x2a90db,{'command':_0x316177,'details':_0x558570});}[a175_0x153b02(0xd5)](_0x29803e,_0x14726c,_0x3f58b2,_0x11ffe8){const _0x6b8b55=a175_0x153b02;if(!this[_0x6b8b55(0xd7)]||!this['winstonLogger'])return;this['winstonLogger'][_0x6b8b55(0xdb)](_0x6b8b55(0xc7),_0x14726c,{'level':_0x6b8b55(0xd5),'command':_0x29803e,'duration':_0x3f58b2,'details':_0x11ffe8});}[a175_0x153b02(0xde)](_0x228005,_0x1fe164,_0x4af369){const _0x453013=a175_0x153b02;if(!this[_0x453013(0xd7)]||!this[_0x453013(0xb8)])return;this[_0x453013(0xb8)][_0x453013(0xde)](_0x1fe164,{'command':_0x228005,'details':_0x4af369});}[a175_0x153b02(0xd3)](_0x348fa6,_0x5caf86,_0x260ad2){const _0x2f23a2=a175_0x153b02;if(!this[_0x2f23a2(0xd7)]||!this[_0x2f23a2(0xb8)])return;this[_0x2f23a2(0xb8)]['warn'](_0x5caf86,{'command':_0x348fa6,'details':_0x260ad2});}async['logTask'](_0x22296e,_0x71cd55,_0x5f19f1){const _0x4a8c31=a175_0x153b02,_0x4ad3c1=Date[_0x4a8c31(0xc1)]();this[_0x4a8c31(0xc7)](_0x22296e,'Starting:\x20'+_0x71cd55);try{const _0x61dd1c=await _0x5f19f1(),_0x22c53c=Date[_0x4a8c31(0xc1)]()-_0x4ad3c1;return this[_0x4a8c31(0xd5)](_0x22296e,_0x4a8c31(0xbb)+_0x71cd55,_0x22c53c),_0x61dd1c;}catch(_0xf5af1d){const _0x355681=Date[_0x4a8c31(0xc1)]()-_0x4ad3c1;this['error'](_0x22296e,'Failed:\x20'+_0x71cd55,{'error':_0xf5af1d instanceof Error?_0xf5af1d[_0x4a8c31(0xbd)]:String(_0xf5af1d),'duration':_0x355681});throw _0xf5af1d;}}[a175_0x153b02(0xb2)](){const _0x1663d4=a175_0x153b02;try{if(!a175_0x36a746[_0x1663d4(0xce)](this['logFilePath']))return[];const _0x2e0031=a175_0x36a746['readFileSync'](this[_0x1663d4(0xd7)],_0x1663d4(0xd4));return _0x2e0031[_0x1663d4(0xca)](/\r?\n/)['filter'](_0x534e5f=>_0x534e5f[_0x1663d4(0xb5)]())[_0x1663d4(0xd1)](_0x576027=>JSON[_0x1663d4(0xc5)](_0x576027));}catch(_0x1c1cdf){return console[_0x1663d4(0xd3)](_0x1663d4(0xc0),_0x1c1cdf),[];}}[a175_0x153b02(0xae)](){const _0x2ea551=a175_0x153b02;try{a175_0x36a746['existsSync'](this[_0x2ea551(0xd7)])&&a175_0x36a746[_0x2ea551(0xbf)](this[_0x2ea551(0xd7)],'',_0x2ea551(0xd4));}catch(_0x350b81){console[_0x2ea551(0xd3)](_0x2ea551(0xc4),_0x350b81);}}[a175_0x153b02(0xb0)](){const _0xc4a4f8=a175_0x153b02;return this[_0xc4a4f8(0xb8)];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a176_0x59d130=a176_0x3443;(function(_0x36054d,_0x42bd39){const _0x325e47=a176_0x3443,_0x3c8ac7=_0x36054d();while(!![]){try{const _0x33d153=-parseInt(_0x325e47(0xb6))/0x1*(parseInt(_0x325e47(0xc6))/0x2)+-parseInt(_0x325e47(0xbb))/0x3*(-parseInt(_0x325e47(0xc8))/0x4)+parseInt(_0x325e47(0xc3))/0x5+-parseInt(_0x325e47(0xc2))/0x6*(-parseInt(_0x325e47(0xb3))/0x7)+parseInt(_0x325e47(0xb9))/0x8*(-parseInt(_0x325e47(0xc9))/0x9)+parseInt(_0x325e47(0xba))/0xa*(-parseInt(_0x325e47(0xc7))/0xb)+parseInt(_0x325e47(0xbf))/0xc;if(_0x33d153===_0x42bd39)break;else _0x3c8ac7['push'](_0x3c8ac7['shift']());}catch(_0x940ac8){_0x3c8ac7['push'](_0x3c8ac7['shift']());}}}(a176_0x418a,0x7ac2a));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a176_0x59d130(0xb7)]),MIN_SAFE_INTEGER=BigInt(Number[a176_0x59d130(0xbc)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x424cd4){const _0xf2b221=a176_0x59d130;if(_0x424cd4[_0xf2b221(0xb4)]('.')||_0x424cd4[_0xf2b221(0xb4)]('e')||_0x424cd4[_0xf2b221(0xb4)]('E'))return![];const _0x2246ab=BigInt(_0x424cd4);return _0x2246ab>MAX_SAFE_INTEGER||_0x2246ab<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x153779){const _0x485434=a176_0x59d130;let _0x4fc47c='',_0x4d1d44=![],_0x4c6729=![];for(let _0x37b98d=0x0;_0x37b98d<_0x153779['length'];){const _0x502731=_0x153779[_0x37b98d];if(_0x4d1d44){_0x4fc47c+=_0x502731,_0x37b98d+=0x1;if(_0x4c6729)_0x4c6729=![];else{if(_0x502731==='\x5c')_0x4c6729=!![];else _0x502731==='\x22'&&(_0x4d1d44=![]);}continue;}if(_0x502731==='\x22'){_0x4d1d44=!![],_0x4fc47c+=_0x502731,_0x37b98d+=0x1;continue;}if(_0x502731==='-'||_0x502731>='0'&&_0x502731<='9'){const _0x4898d1=JSON_NUMBER_PATTERN[_0x485434(0xc5)](_0x153779[_0x485434(0xc4)](_0x37b98d))?.[0x0];if(_0x4898d1){_0x4fc47c+=isUnsafeIntegerLiteral(_0x4898d1)?'\x22'+_0x4898d1+'\x22':_0x4898d1,_0x37b98d+=_0x4898d1[_0x485434(0xc1)];continue;}}_0x4fc47c+=_0x502731,_0x37b98d+=0x1;}return _0x4fc47c;}export function parseLosslessJson(_0x4f7a99){const _0x137756=a176_0x59d130;return JSON[_0x137756(0xbd)](quoteUnsafeIntegerLiterals(_0x4f7a99));}function a176_0x3443(_0x2ffbb0,_0x41db1e){_0x2ffbb0=_0x2ffbb0-0xb3;const _0x418aa6=a176_0x418a();let _0x344365=_0x418aa6[_0x2ffbb0];return _0x344365;}export function installLosslessJsonResponseParser(){const _0x2b5b44=a176_0x59d130;if(typeof Response===_0x2b5b44(0xc0))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x2b5b44(0xbe)],originalResponseJsonDescriptor=Object['getOwnPropertyDescriptor'](responseJsonPrototype,_0x2b5b44(0xb8)),Object[_0x2b5b44(0xb5)](responseJsonPrototype,_0x2b5b44(0xb8),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x6ab1d6(){return parseLosslessJson(await this['text']());}}),restoreResponseJsonParser=()=>{const _0x2d62de=_0x2b5b44;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x2d62de(0xb5)](responseJsonPrototype,_0x2d62de(0xb8),originalResponseJsonDescriptor):delete responseJsonPrototype['json'],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}function a176_0x418a(){const _0xc1d24=['parse','prototype','7002252avnVXR','undefined','length','4840926TsrOqf','274190VJoWWr','slice','exec','2532CISdEH','100364fqkLCo','91196AIIgAY','9pvpgbx','7NSPdKZ','includes','defineProperty','123NokesH','MAX_SAFE_INTEGER','json','6548296fiqQPx','40tWZJkE','9vCvrzh','MIN_SAFE_INTEGER'];a176_0x418a=function(){return _0xc1d24;};return a176_0x418a();}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x52480b,_0x9fcd66){const _0x43ad5d=a177_0x194a,_0x172acc=_0x52480b();while(!![]){try{const _0x3a9372=-parseInt(_0x43ad5d(0xcb))/0x1+-parseInt(_0x43ad5d(0xbf))/0x2*(parseInt(_0x43ad5d(0xb1))/0x3)+-parseInt(_0x43ad5d(0xcd))/0x4*(-parseInt(_0x43ad5d(0xc2))/0x5)+-parseInt(_0x43ad5d(0xad))/0x6*(-parseInt(_0x43ad5d(0xbe))/0x7)+-parseInt(_0x43ad5d(0xb7))/0x8*(parseInt(_0x43ad5d(0xba))/0x9)+-parseInt(_0x43ad5d(0xc4))/0xa*(parseInt(_0x43ad5d(0xca))/0xb)+parseInt(_0x43ad5d(0xbb))/0xc*(parseInt(_0x43ad5d(0xc6))/0xd);if(_0x3a9372===_0x9fcd66)break;else _0x172acc['push'](_0x172acc['shift']());}catch(_0x3837e2){_0x172acc['push'](_0x172acc['shift']());}}}(a177_0x11aa,0x7d9c8));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x4c2d67){const _0x36b61c=a177_0x194a;if(!_0x4c2d67)return undefined;try{return parseLosslessJson(_0x4c2d67);}catch{throw CliErrors[_0x36b61c(0xc7)](_0x36b61c(0xc0)+_0x4c2d67);}}function a177_0x11aa(){const _0x35cbb5=['data\x20update\x20--params.','93Afdmma','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','object','test','length','id[','8hTiNpe','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','\x20records\x20per\x20call;\x20received\x20','6353253jZHQFB','5916HGAnUS','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','items','7lJPWuP','22026LanZyT','Invalid\x20JSON\x20for\x20--params:\x20','number','2333325HsDvsc','string','10tfrurU','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','38220RBXpHx','validation','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','data\x20update\x20can\x20update\x20at\x20most\x20','7857509OHCSnp','107433KMehqu','map','4szuwIh','join','isSafeInteger','2804946WkkEGP','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','isArray'];a177_0x11aa=function(){return _0x35cbb5;};return a177_0x11aa();}export function parseJsonParamsValue(_0x1e7450){const _0x1b7ffa=a177_0x194a;if(!_0x1e7450)return undefined;try{return parseLosslessJson(_0x1e7450);}catch{throw CliErrors[_0x1b7ffa(0xc7)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x1e7450);}}export function parseBatchCreateItemsFromParams(_0x3b47a1){const _0x839cdc=a177_0x194a;if(Array[_0x839cdc(0xaf)](_0x3b47a1))return _0x3b47a1;if(_0x3b47a1!==null&&_0x3b47a1!==undefined&&typeof _0x3b47a1===_0x839cdc(0xb3)&&Array['isArray'](_0x3b47a1[_0x839cdc(0xbd)]))return _0x3b47a1['items'];throw CliErrors['validation'](_0x839cdc(0xc5),_0x839cdc(0xc8));}function a177_0x194a(_0x2df8a7,_0x43d038){_0x2df8a7=_0x2df8a7-0xac;const _0x11aabc=a177_0x11aa();let _0x194a72=_0x11aabc[_0x2df8a7];return _0x194a72;}function parseDataUpdateId(_0x411e6b,_0x44bcb2){const _0x252c39=a177_0x194a;if(typeof _0x411e6b===_0x252c39(0xc1)&&Number[_0x252c39(0xac)](_0x411e6b)&&_0x411e6b>0x0)return _0x411e6b;if(typeof _0x411e6b===_0x252c39(0xc3)){if(/^[1-9]\d*$/[_0x252c39(0xb4)](_0x411e6b))return _0x411e6b;}throw CliErrors[_0x252c39(0xc7)](_0x252c39(0xb0)+_0x44bcb2+_0x252c39(0xae));}export function parseUpdateIdsFromParams(_0x3a444c){const _0x59d02a=a177_0x194a;if(_0x3a444c===null||_0x3a444c===undefined||typeof _0x3a444c!==_0x59d02a(0xb3)||Array[_0x59d02a(0xaf)](_0x3a444c))throw CliErrors[_0x59d02a(0xc7)](_0x59d02a(0xb8),_0x59d02a(0xbc));const _0x30db6a=_0x3a444c['id'];if(_0x30db6a===undefined||_0x30db6a===null)throw CliErrors[_0x59d02a(0xc7)](_0x59d02a(0xb2),_0x59d02a(0xbc));const _0x2a7cfa=Array[_0x59d02a(0xaf)](_0x30db6a)?_0x30db6a:[_0x30db6a];if(_0x2a7cfa[_0x59d02a(0xb5)]===0x0)throw CliErrors['validation']('data\x20update\x20id\x20array\x20cannot\x20be\x20empty.');if(_0x2a7cfa['length']>MAX_DATA_UPDATE_IDS)throw CliErrors['validation'](_0x59d02a(0xc9)+MAX_DATA_UPDATE_IDS+_0x59d02a(0xb9)+_0x2a7cfa[_0x59d02a(0xb5)]+'.');return _0x2a7cfa[_0x59d02a(0xcc)]((_0x38941b,_0x4f5eeb)=>parseDataUpdateId(_0x38941b,Array['isArray'](_0x30db6a)?_0x59d02a(0xb6)+_0x4f5eeb+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x3d1a7a,_0x45cd5a){const _0x213262=a177_0x194a;if(Array[_0x213262(0xaf)](_0x3d1a7a['id'])&&_0x45cd5a[_0x213262(0xb5)]>0x1)return{..._0x3d1a7a,'id':_0x45cd5a[_0x213262(0xce)](',')};return _0x3d1a7a;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a178_0x28e0(){const _0x53f559=['11JaXjNV','1164920BwfjSj','isSafeInteger','53860WrcydS','88hrkDas','2398164WgKEaQ','6576110zCzdCa','6287463TZhbwk','18CUgDyn','108sGqSbP','494460IgVAbx','11523DGPBBV'];a178_0x28e0=function(){return _0x53f559;};return a178_0x28e0();}function a178_0x5ddb(_0x65c911,_0x57e892){_0x65c911=_0x65c911-0x1ed;const _0x28e0d0=a178_0x28e0();let _0x5ddb62=_0x28e0d0[_0x65c911];return _0x5ddb62;}(function(_0xbc4f42,_0x24e08f){const _0x380bc7=a178_0x5ddb,_0x43b83c=_0xbc4f42();while(!![]){try{const _0x3ae377=-parseInt(_0x380bc7(0x1ee))/0x1+-parseInt(_0x380bc7(0x1f4))/0x2*(-parseInt(_0x380bc7(0x1f6))/0x3)+-parseInt(_0x380bc7(0x1f0))/0x4+parseInt(_0x380bc7(0x1f8))/0x5*(parseInt(_0x380bc7(0x1f3))/0x6)+-parseInt(_0x380bc7(0x1f2))/0x7+parseInt(_0x380bc7(0x1ef))/0x8*(parseInt(_0x380bc7(0x1f5))/0x9)+-parseInt(_0x380bc7(0x1f1))/0xa*(-parseInt(_0x380bc7(0x1f7))/0xb);if(_0x3ae377===_0x24e08f)break;else _0x43b83c['push'](_0x43b83c['shift']());}catch(_0x25b0d1){_0x43b83c['push'](_0x43b83c['shift']());}}}(a178_0x28e0,0x96903));export function normalizePositiveSafeInteger(_0x5cc009){const _0x164be6=a178_0x5ddb;if(typeof _0x5cc009==='number')return Number[_0x164be6(0x1ed)](_0x5cc009)&&_0x5cc009>0x0?_0x5cc009:undefined;if(typeof _0x5cc009!=='string'||!/^\d+$/['test'](_0x5cc009))return undefined;const _0x3edd9b=Number(_0x5cc009);return Number[_0x164be6(0x1ed)](_0x3edd9b)&&_0x3edd9b>0x0?_0x3edd9b:undefined;}
|
package/lib/utils/redaction.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a179_0x564231=a179_0x5a8a;(function(_0x56072a,_0x2d5d87){const _0x325007=a179_0x5a8a,_0x32c311=_0x56072a();while(!![]){try{const _0x2506a0=-parseInt(_0x325007(0xde))/0x1*(parseInt(_0x325007(0xdb))/0x2)+-parseInt(_0x325007(0xe0))/0x3+-parseInt(_0x325007(0xec))/0x4*(parseInt(_0x325007(0xd9))/0x5)+parseInt(_0x325007(0xed))/0x6+parseInt(_0x325007(0xdc))/0x7+-parseInt(_0x325007(0xdd))/0x8*(parseInt(_0x325007(0xe8))/0x9)+-parseInt(_0x325007(0xeb))/0xa*(-parseInt(_0x325007(0xd7))/0xb);if(_0x2506a0===_0x2d5d87)break;else _0x32c311['push'](_0x32c311['shift']());}catch(_0x45f41c){_0x32c311['push'](_0x32c311['shift']());}}}(a179_0x3e3d,0xe49cd));const REDACTED_VALUE=a179_0x564231(0xe6),SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set([a179_0x564231(0xe4),'variables']),SENSITIVE_VALUE_KEYS=new Set([a179_0x564231(0xe4)]);export function isSensitiveKey(_0x318784){const _0x1796be=a179_0x564231,_0x12d545=_0x318784['replace'](/_/g,'-')['toLowerCase']();return SENSITIVE_KEY_PATTERN[_0x1796be(0xda)](_0x12d545);}function a179_0x5a8a(_0xb032d5,_0x2bfeba){_0xb032d5=_0xb032d5-0xd6;const _0x3e3dfa=a179_0x3e3d();let _0x5a8aa9=_0x3e3dfa[_0xb032d5];return _0x5a8aa9;}export function isSensitiveFlagName(_0x5871d4){const _0x51a4e1=a179_0x564231,_0x3d47b4=_0x5871d4[_0x51a4e1(0xee)](/_/g,'-')[_0x51a4e1(0xd8)]();return isSensitiveKey(_0x3d47b4)||SENSITIVE_FLAG_NAMES[_0x51a4e1(0xe3)](_0x3d47b4);}function redactVariableValues(_0x1e0232){const _0x5f556d=a179_0x564231;if(Array[_0x5f556d(0xe1)](_0x1e0232))return _0x1e0232[_0x5f556d(0xd6)](_0x2f9745=>redactVariableValues(_0x2f9745));if(_0x1e0232&&typeof _0x1e0232===_0x5f556d(0xe9))return Object[_0x5f556d(0xe5)](Object['entries'](_0x1e0232)[_0x5f556d(0xd6)](([_0x3912e3,_0x33909f])=>[_0x3912e3,redactVariableValues(_0x33909f)]));return REDACTED_VALUE;}export function redactSensitiveValue(_0x4ec090){const _0x36d2de=a179_0x564231;if(Array['isArray'](_0x4ec090))return _0x4ec090[_0x36d2de(0xd6)](_0x11d0f7=>redactSensitiveValue(_0x11d0f7));if(!_0x4ec090||typeof _0x4ec090!==_0x36d2de(0xe9))return _0x4ec090;const _0x1ef263={};for(const [_0x1b7c8f,_0x50933d]of Object[_0x36d2de(0xdf)](_0x4ec090)){const _0xd41a1a=_0x1b7c8f['replace'](/_/g,'-')['toLowerCase']();_0x1ef263[_0x1b7c8f]=_0xd41a1a===_0x36d2de(0xe2)?redactVariableValues(_0x50933d):SENSITIVE_VALUE_KEYS['has'](_0xd41a1a)||isSensitiveKey(_0x1b7c8f)?REDACTED_VALUE:redactSensitiveValue(_0x50933d);}return _0x1ef263;}export function redactCommandArgv(_0x20eeba){const _0xa1fcaa=a179_0x564231,_0x4f1f4a=[];let _0x5dbcbc=![];for(const _0x5d7a6e of _0x20eeba){if(_0x5dbcbc){_0x4f1f4a[_0xa1fcaa(0xe7)](REDACTED_VALUE),_0x5dbcbc=![];continue;}const _0x4912e7=_0x5d7a6e[_0xa1fcaa(0xea)](/^--([^=]+)(?:=(.*))?$/);if(!_0x4912e7||!isSensitiveFlagName(_0x4912e7[0x1]??'')){_0x4f1f4a[_0xa1fcaa(0xe7)](_0x5d7a6e);continue;}_0x4f1f4a[_0xa1fcaa(0xe7)]('--'+_0x4912e7[0x1]+(_0x4912e7[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x4912e7[0x2]===undefined&&(_0x5dbcbc=!![]);}return _0x4f1f4a;}function a179_0x3e3d(){const _0x2dca52=['10jiuDhQ','404644UgilWH','5725782zXVLBj','replace','map','35284601XVwJxA','toLowerCase','50fyESle','test','2XiSYYt','9385523tWWTMW','72SyURQI','1417793GSuidT','entries','3576849RbsJFr','isArray','variables','has','comment','fromEntries','[REDACTED]','push','944694hjNhGz','object','match'];a179_0x3e3d=function(){return _0x2dca52;};return a179_0x3e3d();}export{REDACTED_VALUE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a180_0x5018(){const _0xed9258=['5MxeRJH','string','3024138OkfmwX','222636pAcGLE','8745xfDcKd','3872092GBpMmD','560FDjWex','881728zAjutb','isSafeInteger','106kgeSUk','test','13881630qdNrNR','replace','120483UCJgoe'];a180_0x5018=function(){return _0xed9258;};return a180_0x5018();}function a180_0x1f6e(_0x460c92,_0x56ef0a){_0x460c92=_0x460c92-0xb7;const _0x5018d5=a180_0x5018();let _0x1f6e86=_0x5018d5[_0x460c92];return _0x1f6e86;}(function(_0xc83390,_0x5c8987){const _0x4fafa3=a180_0x1f6e,_0x2b895e=_0xc83390();while(!![]){try{const _0x354688=-parseInt(_0x4fafa3(0xbe))/0x1+parseInt(_0x4fafa3(0xc0))/0x2*(parseInt(_0x4fafa3(0xbb))/0x3)+parseInt(_0x4fafa3(0xba))/0x4*(-parseInt(_0x4fafa3(0xb7))/0x5)+-parseInt(_0x4fafa3(0xb9))/0x6+-parseInt(_0x4fafa3(0xbc))/0x7+parseInt(_0x4fafa3(0xbd))/0x8*(parseInt(_0x4fafa3(0xc4))/0x9)+parseInt(_0x4fafa3(0xc2))/0xa;if(_0x354688===_0x5c8987)break;else _0x2b895e['push'](_0x2b895e['shift']());}catch(_0x19d8c5){_0x2b895e['push'](_0x2b895e['shift']());}}}(a180_0x5018,0x7673e));export function normalizeRuntimeUserId(_0x2f0080){const _0x5075d4=a180_0x1f6e;if(typeof _0x2f0080==='number')return Number[_0x5075d4(0xbf)](_0x2f0080)&&_0x2f0080>0x0?String(_0x2f0080):undefined;if(typeof _0x2f0080!==_0x5075d4(0xb8)||!/^\d+$/[_0x5075d4(0xc1)](_0x2f0080))return undefined;const _0x4076ff=_0x2f0080[_0x5075d4(0xc3)](/^0+/,'');return _0x4076ff||undefined;}
|