@lovrabet/lovrabet-cli 2.3.7-beta.1 → 2.3.7
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/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-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/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(_0x591316,_0x532218){const _0x3d5ee7=a158_0x10f8,_0x22ecf6=_0x591316();while(!![]){try{const _0x473743=-parseInt(_0x3d5ee7(0xd1))/0x1*(-parseInt(_0x3d5ee7(0xf6))/0x2)+-parseInt(_0x3d5ee7(0xef))/0x3+parseInt(_0x3d5ee7(0xdb))/0x4*(-parseInt(_0x3d5ee7(0xdc))/0x5)+parseInt(_0x3d5ee7(0xd8))/0x6*(-parseInt(_0x3d5ee7(0xe1))/0x7)+parseInt(_0x3d5ee7(0xde))/0x8+-parseInt(_0x3d5ee7(0xf2))/0x9*(-parseInt(_0x3d5ee7(0xe0))/0xa)+parseInt(_0x3d5ee7(0xe6))/0xb*(parseInt(_0x3d5ee7(0xf0))/0xc);if(_0x473743===_0x532218)break;else _0x22ecf6['push'](_0x22ecf6['shift']());}catch(_0x10be72){_0x22ecf6['push'](_0x22ecf6['shift']());}}}(a158_0x2756,0xb02ed));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';function a158_0x10f8(_0x3f7135,_0x593ff8){_0x3f7135=_0x3f7135-0xd1;const _0x2756cf=a158_0x2756();let _0x10f87d=_0x2756cf[_0x3f7135];return _0x10f87d;}import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';function a158_0x2756(){const _0x4950d8=['object','1948uGswyU','58ZOJvyT','toISOString','Runtime\x20Skill\x20is\x20missing\x20skillCode.','validation','string','map','trim','6bwPPYC','zipSize','example','76052RCSBQo','265stTMwD','isArray','3383400FWssbD','length','30CrYqCf','7643734gImrrh','skillCode','fromEntries','status','path','1923317cHoiKz','ossPath','userId','description','manifest','forkedFromVersion','tags','skillName','utf8','115254PotJFj','156fqJPAi','files','321858SQRlOj','hasUpstreamUpdate','version'];a158_0x2756=function(){return _0x4950d8;};return a158_0x2756();}export function buildMetadata(_0x2f3b8f,_0x1f6109,_0xbe805,_0x5699fe,_0x32fc92,_0x1acc0b,_0x19413e){const _0x37f5aa=a158_0x10f8,_0x5adb55=_0x1acc0b?normalizeLocalFiles(_0x1acc0b):[],_0x14ca0d=!_0x19413e&&_0x5adb55['length']>0x0?buildSkillPackage(_0x5adb55):undefined,_0x219337=_0x19413e?bufferSha256(_0x19413e):_0x14ca0d?.[_0x37f5aa(0xea)]['zipSha256'],_0x4e3965=_0x19413e?.[_0x37f5aa(0xdf)]??_0x14ca0d?.['manifest'][_0x37f5aa(0xd9)],_0x461084=_0x5adb55['length']>0x0?Object[_0x37f5aa(0xe3)](_0x5adb55[_0x37f5aa(0xd6)](_0x29a939=>[_0x29a939[_0x37f5aa(0xe5)],fileHash(_0x29a939)])):undefined;return{'schemaVersion':_0x5adb55[_0x37f5aa(0xdf)]>0x0?0x2:0x1,'id':_0x2f3b8f['id'],'appCode':_0xbe805,'skillCode':requireSkillCode(_0x2f3b8f),'skillName':_0x2f3b8f[_0x37f5aa(0xed)],'description':_0x2f3b8f[_0x37f5aa(0xe9)],'example':_0x2f3b8f[_0x37f5aa(0xda)],'scope':_0x1f6109,'readonly':_0x1f6109!=='personal'||_0x2f3b8f['readonly']===!![],'tenantCode':_0x2f3b8f['tenantCode'],'userId':_0x2f3b8f[_0x37f5aa(0xe8)],'version':_0x2f3b8f[_0x37f5aa(0xf4)],'status':_0x2f3b8f[_0x37f5aa(0xe4)],'tags':Array[_0x37f5aa(0xdd)](_0x2f3b8f[_0x37f5aa(0xec)])?_0x2f3b8f[_0x37f5aa(0xec)]:[],'hasUpstreamUpdate':_0x2f3b8f[_0x37f5aa(0xf3)],'forkedFromSkillId':_0x2f3b8f['forkedFromSkillId'],'forkedFromVersion':_0x2f3b8f[_0x37f5aa(0xeb)],'sourceSessionId':_0x2f3b8f['sourceSessionId'],'contentHash':_0x5699fe,'fileHashes':_0x461084,'treeHash':_0x5adb55[_0x37f5aa(0xdf)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x5adb55)):undefined,'ossPath':remoteManifestOssPath(_0x2f3b8f[_0x37f5aa(0xf1)]),'zipSha256':_0x219337,'zipSize':_0x4e3965,'files':_0x5adb55[_0x37f5aa(0xdf)]>0x0?_0x5adb55[_0x37f5aa(0xd6)](_0x3dd341=>({'path':_0x3dd341['path'],'hash':fileHash(_0x3dd341),'size':fileContent(_0x3dd341)[_0x37f5aa(0xdf)]})):undefined,'pulledAt':_0x32fc92??new Date()[_0x37f5aa(0xd2)]()};}export function requireSkillCode(_0x399cd0){const _0x323fec=a158_0x10f8,_0x537280=_0x399cd0[_0x323fec(0xe2)]?.['trim']();if(!_0x537280)throw CliErrors[_0x323fec(0xd4)](_0x323fec(0xd3));return _0x537280;}export function readMetadataIfPresent(_0x529aea){const _0x4927f1=a158_0x10f8;if(!existsSync(_0x529aea))return undefined;try{const _0x4c1f98=JSON['parse'](readFileSync(_0x529aea,_0x4927f1(0xee)));return _0x4c1f98;}catch{throw CliErrors['validation']('Invalid\x20'+METADATA_FILE+':\x20'+_0x529aea);}}function remoteManifestOssPath(_0x48a561){const _0x2ca5fe=a158_0x10f8;if(!_0x48a561||typeof _0x48a561!==_0x2ca5fe(0xf5)||Array[_0x2ca5fe(0xdd)](_0x48a561))return undefined;const _0x7b4140=_0x48a561[_0x2ca5fe(0xe7)];return typeof _0x7b4140===_0x2ca5fe(0xd5)&&_0x7b4140[_0x2ca5fe(0xd7)]()?_0x7b4140[_0x2ca5fe(0xd7)]():undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a159_0x18d638=a159_0x116f;(function(_0x512abf,_0x2c2c01){const _0x13acfe=a159_0x116f,_0x3d0f95=_0x512abf();while(!![]){try{const _0x48cf9e=parseInt(_0x13acfe(0x13d))/0x1*(parseInt(_0x13acfe(0x13a))/0x2)+-parseInt(_0x13acfe(0x141))/0x3+-parseInt(_0x13acfe(0x139))/0x4+parseInt(_0x13acfe(0x12e))/0x5+parseInt(_0x13acfe(0x12f))/0x6*(parseInt(_0x13acfe(0x142))/0x7)+-parseInt(_0x13acfe(0x13e))/0x8+parseInt(_0x13acfe(0x12b))/0x9;if(_0x48cf9e===_0x2c2c01)break;else _0x3d0f95['push'](_0x3d0f95['shift']());}catch(_0x5cdd26){_0x3d0f95['push'](_0x3d0f95['shift']());}}}(a159_0x172a,0x74d24));function a159_0x172a(){const _0x105fe1=['cacheRoot','path\x20segment','CLAUDE_SKILL_ROOT','trim','workbuddySkillsDir','\x20for\x20local\x20path:\x20','.claude','1285016bBUJbL','2396OkYLnH','skills','homeDirName','180aLvpOJ','6877600uJqjWq','cache','includes','743553RKTJCd','7RVByMX','homeDir','appCode','agentsSkillsDir','Unsafe\x20','filter','2162808LHylpN','SKILL_ROOT','skillCode','3415390iLePlj','4609650KzAFFt','validation','claudeSkillsDir'];a159_0x172a=function(){return _0x105fe1;};return a159_0x172a();}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(_0x546abb={}){const _0x2ac2a5=a159_0x116f,_0x5c5a9e=_0x546abb[_0x2ac2a5(0x143)]??homedir(),_0x403b50=resolve(_0x5c5a9e,PRODUCT_CONFIG[_0x2ac2a5(0x13c)],_0x2ac2a5(0x13f)),_0x3dd223=trimmedEnv(_0x2ac2a5(0x12c)),_0x5b662c=trimmedEnv(_0x2ac2a5(0x134)),_0x14bb46=resolve(_0x5c5a9e,'.workbuddy'),_0x154493=_0x546abb[_0x2ac2a5(0x136)]??(existsSync(_0x14bb46)?resolve(_0x14bb46,_0x2ac2a5(0x13b)):undefined);return{'homeDir':_0x5c5a9e,'cacheRoot':_0x403b50,'managedRoot':resolve(_0x5c5a9e,PRODUCT_CONFIG[_0x2ac2a5(0x13c)]),'agentsSkillsDir':_0x546abb[_0x2ac2a5(0x145)]??_0x3dd223??resolve(_0x5c5a9e,'.agents','skills'),'claudeSkillsDir':_0x546abb[_0x2ac2a5(0x131)]??_0x5b662c??resolve(_0x5c5a9e,_0x2ac2a5(0x138),_0x2ac2a5(0x13b)),'workbuddySkillsDir':_0x154493};}export function runtimeAgentSkillRoots(_0x48523e){const _0xb409ca=a159_0x116f;return[_0x48523e[_0xb409ca(0x145)],_0x48523e[_0xb409ca(0x131)],_0x48523e[_0xb409ca(0x136)]][_0xb409ca(0x147)](_0x48fea9=>Boolean(_0x48fea9));}export function getRuntimeSkillCacheRoot(_0x44a72d,_0x3dbea5,_0x278a7f={}){const _0x2b2876=a159_0x116f,_0x222a6c=resolveSkillSyncPaths(_0x278a7f);return resolve(_0x222a6c[_0x2b2876(0x132)],_0x44a72d,fingerprintAccessKey(_0x3dbea5),'skills');}export function getRuntimeSkillDir(_0x1b7d55,_0xc93823,_0x50287f,_0x16bdd9,_0x2d411d,_0x45ac6d={}){const _0x458188=a159_0x116f;return resolve(getRuntimeSkillCacheRoot(_0x1b7d55,_0xc93823,_0x45ac6d),safePathSegment(_0x50287f,_0x458188(0x144)),_0x16bdd9,safePathSegment(_0x2d411d,_0x458188(0x12d)));}function a159_0x116f(_0x424f88,_0xcb7924){_0x424f88=_0x424f88-0x12b;const _0x172ac4=a159_0x172a();let _0x116f48=_0x172ac4[_0x424f88];return _0x116f48;}export function safePathSegment(_0x51b0da,_0x1f0777=a159_0x18d638(0x133)){const _0x2d727b=a159_0x18d638;if(!_0x51b0da||_0x51b0da[_0x2d727b(0x140)]('/')||_0x51b0da['includes']('\x5c')||_0x51b0da[_0x2d727b(0x140)]('..'))throw CliErrors[_0x2d727b(0x130)](_0x2d727b(0x146)+_0x1f0777+_0x2d727b(0x137)+_0x51b0da);return _0x51b0da;}function trimmedEnv(_0x2fc0da){const _0x2b1e02=a159_0x18d638,_0x40318c=productEnv(_0x2fc0da)?.[_0x2b1e02(0x135)]();return _0x40318c?_0x40318c:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x44ff6f,_0x3b2fbf){const _0x40657d=a160_0x3050,_0x366f4e=_0x44ff6f();while(!![]){try{const _0x34ebda=parseInt(_0x40657d(0x19c))/0x1*(-parseInt(_0x40657d(0x1a2))/0x2)+parseInt(_0x40657d(0x1c0))/0x3*(parseInt(_0x40657d(0x1a8))/0x4)+parseInt(_0x40657d(0x199))/0x5+parseInt(_0x40657d(0x1ae))/0x6+parseInt(_0x40657d(0x19b))/0x7*(-parseInt(_0x40657d(0x1a7))/0x8)+parseInt(_0x40657d(0x1b2))/0x9+-parseInt(_0x40657d(0x1b4))/0xa;if(_0x34ebda===_0x3b2fbf)break;else _0x366f4e['push'](_0x366f4e['shift']());}catch(_0x2a8f29){_0x366f4e['push'](_0x366f4e['shift']());}}}(a160_0x3034,0x4ca71));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a160_0x38aa99}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(_0x342585,_0x153e47,_0x21225b={}){const _0x8f7979=a160_0x3050,_0x1a33ae=resolvePushDirectoryRoot(_0x342585),_0x5d0990=readPushMetadataIfPresent(resolve(_0x1a33ae,METADATA_FILE),{'ignoreInvalidMetadata':_0x21225b['ignoreInvalidMetadata']});if(_0x5d0990?.[_0x8f7979(0x189)]&&_0x5d0990[_0x8f7979(0x189)]!==_0x153e47&&!_0x21225b['allowAppCodeRetarget']&&!_0x21225b[_0x8f7979(0x194)])throw CliErrors[_0x8f7979(0x18f)](_0x8f7979(0x1a3)+_0x5d0990[_0x8f7979(0x189)]+_0x8f7979(0x1c1)+_0x153e47+'\x22.');const _0x30a091=resolvePushSkillCode(_0x1a33ae,_0x153e47,_0x5d0990,_0x21225b);if(!_0x30a091)throw CliErrors[_0x8f7979(0x18f)]('Unable\x20to\x20resolve\x20skillCode\x20from\x20'+SKILL_FILE+',\x20'+METADATA_FILE+_0x8f7979(0x1b6));return{'dir':_0x1a33ae,'skillCode':_0x30a091,'metadata':_0x5d0990};}export function readPushDirectory(_0x1aae01,_0x138d91,_0x289972={}){const _0x2e200b=a160_0x3050,_0x4032a8=resolvePushDirectoryIdentity(_0x1aae01,_0x138d91,_0x289972),_0x4724b2=_0x4032a8[_0x2e200b(0x195)],_0x2ffd2a=resolve(_0x4724b2,SKILL_FILE);if(!existsSync(_0x2ffd2a)||!lstatSync(_0x2ffd2a)[_0x2e200b(0x1a9)]())throw CliErrors[_0x2e200b(0x18f)](_0x2e200b(0x18c)+SKILL_FILE+':\x20'+_0x2ffd2a);const _0xf3a548=_0x4032a8['metadata'],_0xbb6214=_0x289972[_0x2e200b(0x186)]??_0x2e200b(0x18b);if(!_0x289972[_0x2e200b(0x191)]&&_0xf3a548?.['scope']===_0x2e200b(0x1b1))throw CliErrors[_0x2e200b(0x18f)](_0x2e200b(0x1ba)+METADATA_FILE+_0x2e200b(0x1a0)+_0xf3a548[_0x2e200b(0x1b5)]+'\x22.');if(!_0x289972[_0x2e200b(0x191)]&&_0xbb6214===_0x2e200b(0x18b)&&_0xf3a548?.[_0x2e200b(0x1b5)]&&_0xf3a548['scope']!==_0x2e200b(0x18b))throw CliErrors[_0x2e200b(0x18f)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20'+METADATA_FILE+_0x2e200b(0x1a0)+_0xf3a548[_0x2e200b(0x1b5)]+'\x22.',_0x2e200b(0x193)+_0x4724b2+_0x2e200b(0x1bc));const _0x562109=scanSkillDirectory(_0x4724b2,{'excludedFilePaths':_0x289972[_0x2e200b(0x1b3)]}),_0x21e932=buildSkillPackage(_0x562109),_0x3e53b1=readFileSync(_0x2ffd2a,'utf8'),_0x52eac1=_0x4032a8[_0x2e200b(0x190)],_0x3a20d1=_0x289972['ignoreMetadataForPayload']?undefined:_0xf3a548,_0x194f7c=readSkillDisplayName(_0x3e53b1);return{'skillCode':_0x52eac1,'metadata':_0xf3a548,'frontmatterDisplayName':_0x194f7c,'input':{'skillCode':_0x52eac1,'skillName':_0x194f7c??_0x3a20d1?.['skillName'],'description':_0x3a20d1?.[_0x2e200b(0x1bb)],'content':_0x3e53b1,'files':_0x21e932[_0x2e200b(0x198)],'packageBase64':_0x21e932[_0x2e200b(0x18a)],'tags':_0x3a20d1?.[_0x2e200b(0x1c2)],'version':_0x3a20d1?.[_0x2e200b(0x188)],'sourceSessionId':_0x3a20d1?.[_0x2e200b(0x187)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x28bdae,_0x555785,_0x191d84,_0x5dec4b={}){const _0x32c3e4=a160_0x3050,_0x275cc6=resolvePushDirectoryRoot(_0x28bdae),_0x4a4281=readPushMetadataIfPresent(resolve(_0x275cc6,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x18a707=requireRemoteScope(_0x555785),_0x423b6d=readLocalSkillContent(_0x275cc6),_0x45d332={..._0x555785,'appCode':_0x555785['appCode']??_0x191d84,'skillName':_0x555785[_0x32c3e4(0x1a4)]??_0x4a4281?.[_0x32c3e4(0x1a4)],'description':_0x555785[_0x32c3e4(0x1bb)]??_0x4a4281?.[_0x32c3e4(0x1bb)],'example':_0x555785[_0x32c3e4(0x1aa)]??_0x4a4281?.[_0x32c3e4(0x1aa)],'tags':Array['isArray'](_0x555785[_0x32c3e4(0x1c2)])?_0x555785[_0x32c3e4(0x1c2)]:_0x4a4281?.[_0x32c3e4(0x1c2)],'sourceSessionId':_0x555785[_0x32c3e4(0x187)]??_0x4a4281?.[_0x32c3e4(0x187)],'content':_0x555785[_0x32c3e4(0x19d)]??_0x423b6d},_0x4949f8=buildMetadata(_0x45d332,_0x18a707,_0x191d84,contentHash(_0x423b6d),_0x5dec4b['refreshedAt']);writeJsonAtomic(resolve(_0x275cc6,METADATA_FILE),_0x4949f8);}export function recordPushedRuntimeSkill(_0x1832ac,_0x344590,_0x425305,_0x1109a8={}){const _0x2a8413=a160_0x3050,_0x5c131c=resolvePushDirectoryRoot(_0x1832ac),_0x23ab95=scanSkillDirectory(_0x5c131c),_0xa21e97=_0x23ab95[_0x2a8413(0x1b9)](_0x527ad6=>_0x527ad6[_0x2a8413(0x185)]===SKILL_FILE),_0xdb8d65=_0xa21e97?fileText(_0xa21e97):'',_0x3306b0=tryNormalizePackageManifest(_0x344590[_0x2a8413(0x1ad)]),_0x144f3f={..._0x344590,'content':_0x344590[_0x2a8413(0x19d)]??_0xdb8d65,'files':_0x3306b0},_0x329634=_0x3306b0?normalizeLocalFiles(_0x23ab95)['filter'](_0x1a14f3=>_0x3306b0[_0x2a8413(0x1ad)][_0x2a8413(0x1af)](_0x2442d8=>_0x2442d8[_0x2a8413(0x185)]===_0x1a14f3[_0x2a8413(0x185)])):undefined,_0x572c64=buildMetadata(_0x144f3f,_0x1109a8[_0x2a8413(0x1b5)]??'personal',_0x425305,contentHash(_0x144f3f[_0x2a8413(0x19d)]??''),_0x1109a8[_0x2a8413(0x1b7)],_0x329634);writeJsonAtomic(resolve(_0x5c131c,METADATA_FILE),_0x572c64);}export function deriveSkillCodeFromDirectory(_0x5079cc,_0x174035){const _0x19453c=a160_0x3050,_0x374bc3=basename(resolve(_0x5079cc)),_0x58117e=_0x174035+'--';return _0x374bc3['startsWith'](_0x58117e)?_0x374bc3['slice'](_0x58117e[_0x19453c(0x1ab)]):_0x374bc3;}function resolvePushSkillCode(_0x5c5cd8,_0x2656b3,_0x16f5cc,_0x5adde0){const _0xa7904c=a160_0x3050,_0x41f195=deriveSkillCodeFromSkillFile(_0x5c5cd8)||deriveSkillCodeFromDirectory(_0x5c5cd8,_0x2656b3);if(_0x5adde0[_0xa7904c(0x19f)])return _0x41f195;return _0x16f5cc?.[_0xa7904c(0x190)]?.[_0xa7904c(0x18d)]()||_0x41f195;}function deriveSkillCodeFromSkillFile(_0x349128){const _0x350a93=a160_0x3050,_0x4ff056=resolve(_0x349128,SKILL_FILE);if(!existsSync(_0x4ff056)||!lstatSync(_0x4ff056)[_0x350a93(0x1a9)]())return undefined;const _0x3fdcb5=readFileSync(_0x4ff056,'utf8'),_0x339b20=_0x3fdcb5[_0x350a93(0x196)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x339b20)return undefined;const _0x3b6d1e=parseFrontmatterObject(_0x339b20[0x1]??''),_0x2e05e0=scalarToString(_0x3b6d1e?.[_0x350a93(0x1bd)]);return _0x2e05e0?slugifySkillName(_0x2e05e0):undefined;}function readSkillDisplayName(_0x1c67b7){const _0x4ee292=a160_0x3050,_0x38d835=_0x1c67b7[_0x4ee292(0x196)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x38d835)return undefined;const _0x128493=parseFrontmatterObject(_0x38d835[0x1]??'');return scalarToString(_0x128493?.[_0x4ee292(0x197)]);}function slugifySkillName(_0x2051f2){const _0x21e2b6=a160_0x3050,_0x1d7554=_0x2051f2[_0x21e2b6(0x18d)]()[_0x21e2b6(0x1b0)]()[_0x21e2b6(0x1b8)](/[^\p{L}\p{N}\p{So}]+/gu,'-')['replace'](/^-+/,'')[_0x21e2b6(0x1b8)](/-+$/,'')[_0x21e2b6(0x1b8)](/-{2,}/g,'-');if(!_0x1d7554)throw CliErrors['validation'](_0x21e2b6(0x1c3)+SKILL_FILE+_0x21e2b6(0x19a));return _0x1d7554;}function parseFrontmatterObject(_0x21289a){const _0x5211a9=a160_0x3050;try{const _0x4e9516=a160_0x38aa99(_0x21289a);return _0x4e9516&&typeof _0x4e9516===_0x5211a9(0x1bf)&&!Array[_0x5211a9(0x18e)](_0x4e9516)?_0x4e9516:undefined;}catch{return undefined;}}function scalarToString(_0x423809){const _0x4e9972=a160_0x3050;if(typeof _0x423809==='string')return _0x423809[_0x4e9972(0x18d)]();if(typeof _0x423809===_0x4e9972(0x192)||typeof _0x423809==='boolean')return String(_0x423809);return undefined;}function a160_0x3034(){const _0x338cdf=['isFile','example','length','company','files','2085528HeWLOJ','some','toLowerCase','builtin','991620eEPMtn','excludedFilePaths','4232370UGUbHs','scope',',\x20or\x20directory\x20name.','pushedAt','replace','find','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','description','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','name','(unknown)','object','141BGAisH','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','tags','Invalid\x20','Remote\x20Skill\x20','path','targetScope','sourceSessionId','version','appCode','packageBase64','personal','Missing\x20','trim','isArray','validation','skillCode','ignoreMetadataScope','number','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','ignoreMetadataAppCodeMismatch','dir','match','displayName','manifest','979980CCWlhN','\x20name\x20for\x20SkillHub\x20slug\x20generation.','7mddhlF','2330HmzxAZ','content','Skill\x20directory\x20not\x20found:\x20','ignoreMetadataSkillCode','\x20has\x20scope=\x22','isDirectory','32nqEFUj','Skill\x20metadata\x20appCode\x20\x22','skillName','ignoreInvalidMetadata','utf8','3485688fVaaIJ','47356pfEVxZ'];a160_0x3034=function(){return _0x338cdf;};return a160_0x3034();}function a160_0x3050(_0x514a6c,_0x4f234e){_0x514a6c=_0x514a6c-0x185;const _0x30348e=a160_0x3034();let _0x3050ae=_0x30348e[_0x514a6c];return _0x3050ae;}function resolvePushDirectoryRoot(_0x471463){const _0x2db54e=a160_0x3050,_0x55bc27=resolve(_0x471463);if(!existsSync(_0x55bc27))throw CliErrors[_0x2db54e(0x18f)](_0x2db54e(0x19e)+_0x471463);const _0x3708cb=lstatSync(_0x55bc27);if(_0x3708cb[_0x2db54e(0x1a1)]())return _0x55bc27;if(_0x3708cb['isSymbolicLink']()){const _0x1558fa=realpathSync(_0x55bc27);if(lstatSync(_0x1558fa)['isDirectory']())return _0x1558fa;}throw CliErrors[_0x2db54e(0x18f)]('Skill\x20directory\x20not\x20found:\x20'+_0x471463);}function requireRemoteScope(_0x242333){const _0x21daa2=a160_0x3050;if(_0x242333[_0x21daa2(0x1b5)]===_0x21daa2(0x18b)||_0x242333[_0x21daa2(0x1b5)]===_0x21daa2(0x1ac)||_0x242333[_0x21daa2(0x1b5)]==='builtin')return _0x242333[_0x21daa2(0x1b5)];throw CliErrors[_0x21daa2(0x18f)](_0x21daa2(0x1c4)+(_0x242333['skillCode']||_0x21daa2(0x1be))+'\x20has\x20unsupported\x20scope\x20\x22'+(_0x242333[_0x21daa2(0x1b5)]??'unknown')+'\x22.');}function readLocalSkillContent(_0x28e7b9){const _0x31cc1b=a160_0x3050,_0x444849=resolve(_0x28e7b9,SKILL_FILE);return existsSync(_0x444849)&&lstatSync(_0x444849)[_0x31cc1b(0x1a9)]()?readFileSync(_0x444849,_0x31cc1b(0x1a6)):'';}function readPushMetadataIfPresent(_0x1095ef,_0x216b37={}){const _0x5f2a14=a160_0x3050;try{return readMetadataIfPresent(_0x1095ef);}catch(_0x45699d){if(_0x216b37[_0x5f2a14(0x1a5)])return undefined;throw _0x45699d;}}
|
|
1
|
+
(function(_0xefc03a,_0x1dc62f){const _0x3ba6e9=a160_0x1f5e,_0xf6c114=_0xefc03a();while(!![]){try{const _0x13c86e=parseInt(_0x3ba6e9(0xbf))/0x1+-parseInt(_0x3ba6e9(0xbc))/0x2+parseInt(_0x3ba6e9(0xa7))/0x3*(parseInt(_0x3ba6e9(0xa0))/0x4)+parseInt(_0x3ba6e9(0xa3))/0x5+-parseInt(_0x3ba6e9(0xca))/0x6+-parseInt(_0x3ba6e9(0x9e))/0x7*(-parseInt(_0x3ba6e9(0xa6))/0x8)+parseInt(_0x3ba6e9(0xb5))/0x9*(parseInt(_0x3ba6e9(0xc9))/0xa);if(_0x13c86e===_0x1dc62f)break;else _0xf6c114['push'](_0xf6c114['shift']());}catch(_0x4a5a54){_0xf6c114['push'](_0xf6c114['shift']());}}}(a160_0x2fc7,0x5a6b5));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';function a160_0x2fc7(){const _0x3a31da=['tags','filter','builtin','content','Invalid\x20','pushedAt','Skill\x20directory\x20not\x20found:\x20','trim','unknown','205299aryQXK','boolean','ignoreInvalidMetadata','isDirectory','packageBase64','allowAppCodeRetarget','Remote\x20Skill\x20','217068PkRAlz','path','skillCode','136018MVyQZf','example','files','startsWith','match','utf8','Skill\x20metadata\x20appCode\x20\x22','metadata','manifest','displayName','10NzghvJ','2852412aQhZwc','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','ignoreMetadataAppCodeMismatch','ignoreMetadataSkillCode','validation','\x20has\x20unsupported\x20scope\x20\x22','skillName','toLowerCase','length','Missing\x20','personal','sourceSessionId','version','\x20has\x20scope=\x22','find','isSymbolicLink','isFile','company','name','description','slice','70NGPSWg','number','1116xDTuPM','object','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','3122365aRimdV','replace','isArray','92376UCUsuF','597wJUEzp','Unable\x20to\x20resolve\x20skillCode\x20from\x20','appCode','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','scope'];a160_0x2fc7=function(){return _0x3a31da;};return a160_0x2fc7();}import{basename,resolve}from'node:path';import{parse as a160_0x159db6}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(_0x40a596,_0x27e9a5,_0x3947d4={}){const _0x1a9398=a160_0x1f5e,_0x14a6f6=resolvePushDirectoryRoot(_0x40a596),_0x3d9d4f=readPushMetadataIfPresent(resolve(_0x14a6f6,METADATA_FILE),{'ignoreInvalidMetadata':_0x3947d4[_0x1a9398(0xb7)]});if(_0x3d9d4f?.[_0x1a9398(0xa9)]&&_0x3d9d4f['appCode']!==_0x27e9a5&&!_0x3947d4[_0x1a9398(0xba)]&&!_0x3947d4[_0x1a9398(0xcc)])throw CliErrors[_0x1a9398(0xce)](_0x1a9398(0xc5)+_0x3d9d4f[_0x1a9398(0xa9)]+'\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22'+_0x27e9a5+'\x22.');const _0x661fb1=resolvePushSkillCode(_0x14a6f6,_0x27e9a5,_0x3d9d4f,_0x3947d4);if(!_0x661fb1)throw CliErrors['validation'](_0x1a9398(0xa8)+SKILL_FILE+',\x20'+METADATA_FILE+',\x20or\x20directory\x20name.');return{'dir':_0x14a6f6,'skillCode':_0x661fb1,'metadata':_0x3d9d4f};}export function readPushDirectory(_0x5a45cc,_0x3c371d,_0x1fbd7a={}){const _0x4aba09=a160_0x1f5e,_0x4089a4=resolvePushDirectoryIdentity(_0x5a45cc,_0x3c371d,_0x1fbd7a),_0x5bb434=_0x4089a4['dir'],_0x74f88f=resolve(_0x5bb434,SKILL_FILE);if(!existsSync(_0x74f88f)||!lstatSync(_0x74f88f)[_0x4aba09(0x99)]())throw CliErrors[_0x4aba09(0xce)](_0x4aba09(0xd3)+SKILL_FILE+':\x20'+_0x74f88f);const _0x5b0d98=_0x4089a4[_0x4aba09(0xc6)],_0x312a67=_0x1fbd7a['targetScope']??_0x4aba09(0xd4);if(!_0x1fbd7a['ignoreMetadataScope']&&_0x5b0d98?.[_0x4aba09(0xab)]===_0x4aba09(0xae))throw CliErrors[_0x4aba09(0xce)](_0x4aba09(0xcb)+METADATA_FILE+_0x4aba09(0xd7)+_0x5b0d98['scope']+'\x22.');if(!_0x1fbd7a['ignoreMetadataScope']&&_0x312a67==='personal'&&_0x5b0d98?.['scope']&&_0x5b0d98[_0x4aba09(0xab)]!==_0x4aba09(0xd4))throw CliErrors[_0x4aba09(0xce)](_0x4aba09(0xa2)+METADATA_FILE+_0x4aba09(0xd7)+_0x5b0d98[_0x4aba09(0xab)]+'\x22.',_0x4aba09(0xaa)+_0x5bb434+'\x20to\x20submit\x20company\x20Skills\x20for\x20review.');const _0x2d62ec=scanSkillDirectory(_0x5bb434,{'excludedFilePaths':_0x1fbd7a['excludedFilePaths']}),_0x3e36d4=buildSkillPackage(_0x2d62ec),_0x53f456=readFileSync(_0x74f88f,_0x4aba09(0xc4)),_0x5914e4=_0x4089a4['skillCode'],_0x440f86=_0x1fbd7a['ignoreMetadataForPayload']?undefined:_0x5b0d98,_0x9ae4cc=readSkillDisplayName(_0x53f456);return{'skillCode':_0x5914e4,'metadata':_0x5b0d98,'frontmatterDisplayName':_0x9ae4cc,'input':{'skillCode':_0x5914e4,'skillName':_0x9ae4cc??_0x440f86?.[_0x4aba09(0xd0)],'description':_0x440f86?.['description'],'content':_0x53f456,'files':_0x3e36d4[_0x4aba09(0xc7)],'packageBase64':_0x3e36d4[_0x4aba09(0xb9)],'tags':_0x440f86?.[_0x4aba09(0xac)],'version':_0x440f86?.[_0x4aba09(0xd6)],'sourceSessionId':_0x440f86?.[_0x4aba09(0xd5)]}};}export function refreshPushDirectoryMetadataFromRemote(_0xc9d13d,_0x4029db,_0x1ec758,_0x45c04f={}){const _0x4f6e6c=a160_0x1f5e,_0x5bd01f=resolvePushDirectoryRoot(_0xc9d13d),_0x94e275=readPushMetadataIfPresent(resolve(_0x5bd01f,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x13daab=requireRemoteScope(_0x4029db),_0x59c72f=readLocalSkillContent(_0x5bd01f),_0xdde965={..._0x4029db,'appCode':_0x4029db[_0x4f6e6c(0xa9)]??_0x1ec758,'skillName':_0x4029db[_0x4f6e6c(0xd0)]??_0x94e275?.[_0x4f6e6c(0xd0)],'description':_0x4029db['description']??_0x94e275?.[_0x4f6e6c(0x9c)],'example':_0x4029db[_0x4f6e6c(0xc0)]??_0x94e275?.[_0x4f6e6c(0xc0)],'tags':Array[_0x4f6e6c(0xa5)](_0x4029db['tags'])?_0x4029db[_0x4f6e6c(0xac)]:_0x94e275?.[_0x4f6e6c(0xac)],'sourceSessionId':_0x4029db[_0x4f6e6c(0xd5)]??_0x94e275?.[_0x4f6e6c(0xd5)],'content':_0x4029db[_0x4f6e6c(0xaf)]??_0x59c72f},_0x3bb449=buildMetadata(_0xdde965,_0x13daab,_0x1ec758,contentHash(_0x59c72f),_0x45c04f['refreshedAt']);writeJsonAtomic(resolve(_0x5bd01f,METADATA_FILE),_0x3bb449);}export function recordPushedRuntimeSkill(_0xb2c13c,_0xf32298,_0x79e4a6,_0x262ec0={}){const _0x4f2ad5=a160_0x1f5e,_0x26f315=resolvePushDirectoryRoot(_0xb2c13c),_0x485248=scanSkillDirectory(_0x26f315),_0x59df8a=_0x485248[_0x4f2ad5(0x97)](_0x45df2f=>_0x45df2f[_0x4f2ad5(0xbd)]===SKILL_FILE),_0x38cf1a=_0x59df8a?fileText(_0x59df8a):'',_0x454ee2=tryNormalizePackageManifest(_0xf32298['files']),_0x25b01b={..._0xf32298,'content':_0xf32298[_0x4f2ad5(0xaf)]??_0x38cf1a,'files':_0x454ee2},_0x145eeb=_0x454ee2?normalizeLocalFiles(_0x485248)[_0x4f2ad5(0xad)](_0x8b874f=>_0x454ee2[_0x4f2ad5(0xc1)]['some'](_0x514997=>_0x514997['path']===_0x8b874f['path'])):undefined,_0x392240=buildMetadata(_0x25b01b,_0x262ec0[_0x4f2ad5(0xab)]??'personal',_0x79e4a6,contentHash(_0x25b01b[_0x4f2ad5(0xaf)]??''),_0x262ec0[_0x4f2ad5(0xb1)],_0x145eeb);writeJsonAtomic(resolve(_0x26f315,METADATA_FILE),_0x392240);}export function deriveSkillCodeFromDirectory(_0x560e25,_0x8c7041){const _0x519d90=a160_0x1f5e,_0x3fe3e2=basename(resolve(_0x560e25)),_0x42f27e=_0x8c7041+'--';return _0x3fe3e2[_0x519d90(0xc2)](_0x42f27e)?_0x3fe3e2[_0x519d90(0x9d)](_0x42f27e[_0x519d90(0xd2)]):_0x3fe3e2;}function resolvePushSkillCode(_0x1fec46,_0x1c25ce,_0xd508d7,_0x167272){const _0x2aa7f0=a160_0x1f5e,_0x35e374=deriveSkillCodeFromSkillFile(_0x1fec46)||deriveSkillCodeFromDirectory(_0x1fec46,_0x1c25ce);if(_0x167272[_0x2aa7f0(0xcd)])return _0x35e374;return _0xd508d7?.[_0x2aa7f0(0xbe)]?.[_0x2aa7f0(0xb3)]()||_0x35e374;}function deriveSkillCodeFromSkillFile(_0x46a7d7){const _0x58bbd7=a160_0x1f5e,_0x49cfd9=resolve(_0x46a7d7,SKILL_FILE);if(!existsSync(_0x49cfd9)||!lstatSync(_0x49cfd9)['isFile']())return undefined;const _0xfee15c=readFileSync(_0x49cfd9,'utf8'),_0x132bb7=_0xfee15c[_0x58bbd7(0xc3)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x132bb7)return undefined;const _0x581f54=parseFrontmatterObject(_0x132bb7[0x1]??''),_0xbfb946=scalarToString(_0x581f54?.[_0x58bbd7(0x9b)]);return _0xbfb946?slugifySkillName(_0xbfb946):undefined;}function readSkillDisplayName(_0x55543f){const _0x53a70b=a160_0x1f5e,_0x3d2d45=_0x55543f[_0x53a70b(0xc3)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x3d2d45)return undefined;const _0x3b7d43=parseFrontmatterObject(_0x3d2d45[0x1]??'');return scalarToString(_0x3b7d43?.[_0x53a70b(0xc8)]);}function a160_0x1f5e(_0xdf3ba7,_0x5059a2){_0xdf3ba7=_0xdf3ba7-0x97;const _0x2fc765=a160_0x2fc7();let _0x1f5ed1=_0x2fc765[_0xdf3ba7];return _0x1f5ed1;}function slugifySkillName(_0x53954c){const _0xc77f73=a160_0x1f5e,_0x235da1=_0x53954c[_0xc77f73(0xb3)]()[_0xc77f73(0xd1)]()[_0xc77f73(0xa4)](/[^\p{L}\p{N}\p{So}]+/gu,'-')['replace'](/^-+/,'')[_0xc77f73(0xa4)](/-+$/,'')[_0xc77f73(0xa4)](/-{2,}/g,'-');if(!_0x235da1)throw CliErrors[_0xc77f73(0xce)](_0xc77f73(0xb0)+SKILL_FILE+'\x20name\x20for\x20SkillHub\x20slug\x20generation.');return _0x235da1;}function parseFrontmatterObject(_0x6f733d){const _0x572c1=a160_0x1f5e;try{const _0x377c33=a160_0x159db6(_0x6f733d);return _0x377c33&&typeof _0x377c33===_0x572c1(0xa1)&&!Array[_0x572c1(0xa5)](_0x377c33)?_0x377c33:undefined;}catch{return undefined;}}function scalarToString(_0x380c0d){const _0x9dbb23=a160_0x1f5e;if(typeof _0x380c0d==='string')return _0x380c0d['trim']();if(typeof _0x380c0d===_0x9dbb23(0x9f)||typeof _0x380c0d===_0x9dbb23(0xb6))return String(_0x380c0d);return undefined;}function resolvePushDirectoryRoot(_0x413fa8){const _0x5007e0=a160_0x1f5e,_0xbc1aed=resolve(_0x413fa8);if(!existsSync(_0xbc1aed))throw CliErrors[_0x5007e0(0xce)](_0x5007e0(0xb2)+_0x413fa8);const _0x1e51ba=lstatSync(_0xbc1aed);if(_0x1e51ba[_0x5007e0(0xb8)]())return _0xbc1aed;if(_0x1e51ba[_0x5007e0(0x98)]()){const _0x4738ed=realpathSync(_0xbc1aed);if(lstatSync(_0x4738ed)[_0x5007e0(0xb8)]())return _0x4738ed;}throw CliErrors[_0x5007e0(0xce)](_0x5007e0(0xb2)+_0x413fa8);}function requireRemoteScope(_0x53b0ae){const _0x55ef16=a160_0x1f5e;if(_0x53b0ae[_0x55ef16(0xab)]===_0x55ef16(0xd4)||_0x53b0ae[_0x55ef16(0xab)]===_0x55ef16(0x9a)||_0x53b0ae[_0x55ef16(0xab)]==='builtin')return _0x53b0ae[_0x55ef16(0xab)];throw CliErrors[_0x55ef16(0xce)](_0x55ef16(0xbb)+(_0x53b0ae[_0x55ef16(0xbe)]||'(unknown)')+_0x55ef16(0xcf)+(_0x53b0ae['scope']??_0x55ef16(0xb4))+'\x22.');}function readLocalSkillContent(_0x3ac269){const _0x3a39ab=a160_0x1f5e,_0xfa56e=resolve(_0x3ac269,SKILL_FILE);return existsSync(_0xfa56e)&&lstatSync(_0xfa56e)[_0x3a39ab(0x99)]()?readFileSync(_0xfa56e,_0x3a39ab(0xc4)):'';}function readPushMetadataIfPresent(_0x262b4c,_0x35b705={}){const _0x3a79d6=a160_0x1f5e;try{return readMetadataIfPresent(_0x262b4c);}catch(_0x2f4f31){if(_0x35b705[_0x3a79d6(0xb7)])return undefined;throw _0x2f4f31;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2216e9,_0x4b874b){const _0x4cad7b=a161_0x4897,_0x35a3d4=_0x2216e9();while(!![]){try{const _0x261b2a=-parseInt(_0x4cad7b(0x97))/0x1+-parseInt(_0x4cad7b(0x99))/0x2+parseInt(_0x4cad7b(0x98))/0x3+-parseInt(_0x4cad7b(0x8a))/0x4*(-parseInt(_0x4cad7b(0x8c))/0x5)+-parseInt(_0x4cad7b(0x91))/0x6*(parseInt(_0x4cad7b(0x95))/0x7)+-parseInt(_0x4cad7b(0x92))/0x8*(-parseInt(_0x4cad7b(0x8f))/0x9)+parseInt(_0x4cad7b(0x89))/0xa;if(_0x261b2a===_0x4b874b)break;else _0x35a3d4['push'](_0x35a3d4['shift']());}catch(_0x432e10){_0x35a3d4['push'](_0x35a3d4['shift']());}}}(a161_0x5f4f,0x3bf22));function a161_0x5f4f(){const _0x439c6d=['45936ZrDzhB','validation','includes','7910GTuNbd','push','442087KgYakv','870669JalDyK','400946dNylHO','Unsupported\x20runtime\x20Skill\x20scope:\x20','4173770ijtvWN','4lMezBK','company','2300930OlzCEW','personal','builtin','54bIWuha','length','1668VkUTHp'];a161_0x5f4f=function(){return _0x439c6d;};return a161_0x5f4f();}import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x453039){const _0x41ce7e=a161_0x4897,_0x50d696=_0x453039&&_0x453039[_0x41ce7e(0x90)]>0x0?_0x453039:[_0x41ce7e(0x8d),'company',_0x41ce7e(0x8e)],_0x489a9e=[];for(const _0x58e323 of _0x50d696){if(!isRuntimeSkillScope(_0x58e323))throw CliErrors[_0x41ce7e(0x93)](_0x41ce7e(0x9a)+_0x58e323);!_0x489a9e[_0x41ce7e(0x94)](_0x58e323)&&_0x489a9e[_0x41ce7e(0x96)](_0x58e323);}return _0x489a9e;}function a161_0x4897(_0x264fb1,_0x5b47a8){_0x264fb1=_0x264fb1-0x89;const _0x5f4f4c=a161_0x5f4f();let _0x4897af=_0x5f4f4c[_0x264fb1];return _0x4897af;}export function isRuntimeSkillScope(_0x34849c){const _0xb48aa4=a161_0x4897;return _0x34849c===_0xb48aa4(0x8d)||_0x34849c===_0xb48aa4(0x8b)||_0x34849c===_0xb48aa4(0x8e);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a163_0x143514=a163_0x5947;function a163_0x3f91(){const _0x51a52f=['entries','length','3392kipjMR','1980-01-01T00:00:00.000Z','from','code','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','1225861TjDxEd','1180624sFLMWB','sort','name','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','98203pzFXfr','11895dNQlhH','399632nyLKeJ','map','90jRoSkq','4256055qQCvXc','validation','633hHUcXU'];a163_0x3f91=function(){return _0x51a52f;};return a163_0x3f91();}(function(_0x3ba6cc,_0x33a03f){const _0x55afbd=a163_0x5947,_0x373978=_0x3ba6cc();while(!![]){try{const _0x36c1f8=parseInt(_0x55afbd(0xb6))/0x1+-parseInt(_0x55afbd(0xb8))/0x2+-parseInt(_0x55afbd(0xbd))/0x3*(parseInt(_0x55afbd(0xac))/0x4)+parseInt(_0x55afbd(0xb7))/0x5*(-parseInt(_0x55afbd(0xba))/0x6)+-parseInt(_0x55afbd(0xb1))/0x7+parseInt(_0x55afbd(0xb2))/0x8+parseInt(_0x55afbd(0xbb))/0x9;if(_0x36c1f8===_0x33a03f)break;else _0x373978['push'](_0x373978['shift']());}catch(_0xcec6f4){_0x373978['push'](_0x373978['shift']());}}}(a163_0x3f91,0x1f864));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';function a163_0x5947(_0x531ed4,_0x2866a6){_0x531ed4=_0x531ed4-0xac;const _0x3f91f7=a163_0x3f91();let _0x594776=_0x3f91f7[_0x531ed4];return _0x594776;}import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a163_0x143514(0xad));export function createDeterministicZipPackage(_0x6fc8ae){const _0x2ae38b=a163_0x143514,_0x5f1176={};for(const _0x48f339 of normalizeLocalFiles(_0x6fc8ae)){_0x5f1176[_0x48f339['path']]=fileContent(_0x48f339);}return Buffer[_0x2ae38b(0xae)](zipSync(_0x5f1176,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0xc8015e){const _0x5db76a=a163_0x143514;if(_0xc8015e[_0x5db76a(0xbf)]<0x16)throw CliErrors[_0x5db76a(0xbc)](_0x5db76a(0xb5));let _0x4eb89e;try{_0x4eb89e=unzipSync(_0xc8015e,{'filter'(_0x7c36f2){const _0x118f56=_0x5db76a,_0x3a2923=normalizeSkillRelativePath(_0x7c36f2[_0x118f56(0xb4)]);if(_0x3a2923['endsWith']('/'))throw CliErrors[_0x118f56(0xbc)](_0x118f56(0xb0)+_0x3a2923);return!![];}});}catch(_0x28a7db){if(isRuntimeSkillValidationError(_0x28a7db))throw _0x28a7db;throw CliErrors[_0x5db76a(0xbc)](_0x5db76a(0xb5));}return Object[_0x5db76a(0xbe)](_0x4eb89e)[_0x5db76a(0xb9)](([_0x124cda,_0x309590])=>({'path':normalizeSkillRelativePath(_0x124cda),'bytes':Buffer[_0x5db76a(0xae)](_0x309590)}))[_0x5db76a(0xb3)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x175264){const _0x802011=a163_0x143514;return typeof _0x175264==='object'&&_0x175264!==null&&_0x802011(0xaf)in _0x175264&&_0x175264[_0x802011(0xaf)]==='validation_error';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x45b629,_0xfccc0d){const _0x53cb4c=a164_0x5986,_0x30431a=_0x45b629();while(!![]){try{const _0x3e783e=parseInt(_0x53cb4c(0x101))/0x1+-parseInt(_0x53cb4c(0x109))/0x2+parseInt(_0x53cb4c(0x118))/0x3*(-parseInt(_0x53cb4c(0xf1))/0x4)+parseInt(_0x53cb4c(0x10a))/0x5*(parseInt(_0x53cb4c(0x11a))/0x6)+-parseInt(_0x53cb4c(0xf4))/0x7+-parseInt(_0x53cb4c(0xf6))/0x8*(-parseInt(_0x53cb4c(0x116))/0x9)+parseInt(_0x53cb4c(0xf9))/0xa*(parseInt(_0x53cb4c(0x11c))/0xb);if(_0x3e783e===_0xfccc0d)break;else _0x30431a['push'](_0x30431a['shift']());}catch(_0x118e22){_0x30431a['push'](_0x30431a['shift']());}}}(a164_0x1a0d,0xe33dd));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(_0x4adca2){const _0x4c3903=a164_0x5986,_0x5c5aae=normalizeLocalFiles(_0x4adca2);if(!_0x5c5aae['some'](_0x5cf254=>_0x5cf254[_0x4c3903(0xfa)]===SKILL_FILE))throw CliErrors[_0x4c3903(0x10d)](_0x4c3903(0x111)+SKILL_FILE+'\x20in\x20Skill\x20file\x20package.');const _0x5a8510=localFilesToManifestFiles(_0x5c5aae),_0x2d0998=createDeterministicZipPackage(_0x5c5aae);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x5a8510),'zipSha256':bufferSha256(_0x2d0998),'zipSize':_0x2d0998[_0x4c3903(0xfb)],'files':_0x5a8510},'packageBytes':_0x2d0998,'packageBase64':_0x2d0998['toString'](_0x4c3903(0x115))};}export function verifyRuntimeSkillPackage(_0x4baaa8,_0x395e6f){const _0x288770=a164_0x5986,_0x492ae8=normalizePackageManifest(_0x4baaa8,{'requireOssPath':![]});if(!_0x492ae8)throw CliErrors[_0x288770(0x10d)](_0x288770(0x106));return extractAndVerifyPackage(_0x492ae8,_0x395e6f);}export function verifyRuntimeSkillBundle(_0x3b0d35,_0x38eb3f){const _0x3a1ac1=a164_0x5986,_0x460db5=normalizePackageManifest(_0x3b0d35,{'requireOssPath':![]});if(!_0x460db5)throw CliErrors[_0x3a1ac1(0x10d)](_0x3a1ac1(0x106));return extractAndVerifyPackageFiles(_0x460db5,_0x38eb3f);}export function tryNormalizePackageManifest(_0x453526){return normalizePackageManifest(_0x453526,{'requireOssPath':![]});}export function requirePackageBytes(_0x56cb5e,_0x264e90){const _0x494dae=a164_0x5986;if(!_0x264e90||_0x264e90['length']===0x0)throw CliErrors['validation'](_0x494dae(0xfc)+_0x56cb5e);return _0x264e90;}function a164_0x1a0d(){const _0x227476=['686550YoOUHm','ossPath','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','trim','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','treeSha256','Duplicate\x20Skill\x20package\x20entry:\x20','989748TfByhP','29990XnHnUm','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','Runtime\x20Skill\x20package\x20is\x20missing\x20','validation','zipSize','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','bytes','Missing\x20','set','map','push','base64','16452wMgLfF','isArray','953202cgSvmA','toLowerCase','1506zJrkAQ','schemaVersion','4118367Iyywul','some','20rhubmo','Runtime\x20Skill\x20package\x20size\x20mismatch.','size','6085954rmEsca','sha256','2488iANqXp','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','30ezsMAB','path','length','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','zipSha256','files','has','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'];a164_0x1a0d=function(){return _0x227476;};return a164_0x1a0d();}export function extractDownloadedPackage(_0x42cfb3){const _0x97a97a=a164_0x5986,_0x5b0c07=parseZipPackage(_0x42cfb3)['map'](_0xe2415=>({'path':_0xe2415['path'],'bytes':_0xe2415[_0x97a97a(0x110)]}));if(!_0x5b0c07[_0x97a97a(0xf0)](_0x3cf76a=>_0x3cf76a[_0x97a97a(0xfa)]===SKILL_FILE))throw CliErrors[_0x97a97a(0x10d)](_0x97a97a(0x10c)+SKILL_FILE+'.');return normalizeLocalFiles(_0x5b0c07);}export function localFilesToManifestFiles(_0x48652e){const _0x14d203=a164_0x5986;return normalizeLocalFiles(_0x48652e)[_0x14d203(0x113)](_0x1d375c=>({'path':_0x1d375c['path'],'sha256':fileHash(_0x1d375c),'size':fileContent(_0x1d375c)['length']}));}function normalizePackageManifest(_0x1bc7cd,_0xc07a0b){const _0x44970c=a164_0x5986;if(!_0x1bc7cd||typeof _0x1bc7cd!=='object'||Array[_0x44970c(0x117)](_0x1bc7cd))return undefined;const _0x23dbee=_0x1bc7cd,_0x386501=typeof _0x23dbee[_0x44970c(0x102)]==='string'?_0x23dbee[_0x44970c(0x102)][_0x44970c(0x104)]():undefined;if(_0xc07a0b['requireOssPath']&&!_0x386501)return undefined;if(!Array[_0x44970c(0x117)](_0x23dbee[_0x44970c(0xfe)])||_0x23dbee[_0x44970c(0xfe)][_0x44970c(0xfb)]===0x0)return undefined;if(!isSha256Hex(_0x23dbee['treeSha256']))throw CliErrors[_0x44970c(0x10d)](_0x44970c(0x10b));if(!isSha256Hex(_0x23dbee['zipSha256']))throw CliErrors[_0x44970c(0x10d)](_0x44970c(0xf7));if(!Number['isSafeInteger'](_0x23dbee[_0x44970c(0x10e)])||_0x23dbee[_0x44970c(0x10e)]<0x0)throw CliErrors[_0x44970c(0x10d)]('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');const _0x339112=normalizeManifestFiles(_0x23dbee[_0x44970c(0xfe)]);if(!_0x339112[_0x44970c(0xf0)](_0x1e6e75=>_0x1e6e75['path']===SKILL_FILE))throw CliErrors['validation'](_0x44970c(0xf8)+SKILL_FILE+'.');const _0x463874=fileTreeHash(_0x339112);if(_0x463874!==_0x23dbee[_0x44970c(0x107)][_0x44970c(0x119)]())throw CliErrors[_0x44970c(0x10d)](_0x44970c(0x10f));return{'schemaVersion':Number['isSafeInteger'](_0x23dbee[_0x44970c(0x11b)])?_0x23dbee[_0x44970c(0x11b)]:0x2,'ossPath':_0x386501,'treeSha256':_0x463874,'zipSha256':_0x23dbee['zipSha256'][_0x44970c(0x119)](),'zipSize':_0x23dbee[_0x44970c(0x10e)],'files':_0x339112};}function extractAndVerifyPackage(_0x4d83ca,_0x5cab9b){const _0x138775=a164_0x5986,_0xb0171b=normalizePackageManifest(_0x4d83ca,{'requireOssPath':![]});if(!_0xb0171b)throw CliErrors['validation'](_0x138775(0x106));if(_0x5cab9b[_0x138775(0xfb)]!==_0xb0171b[_0x138775(0x10e)])throw CliErrors[_0x138775(0x10d)](_0x138775(0xf2));const _0x135544=bufferSha256(_0x5cab9b);if(_0x135544!==_0xb0171b[_0x138775(0xfd)])throw CliErrors['validation'](_0x138775(0x103));return extractAndVerifyPackageFiles(_0xb0171b,_0x5cab9b);}function a164_0x5986(_0x1c247b,_0x403dd0){_0x1c247b=_0x1c247b-0xf0;const _0x1a0d3a=a164_0x1a0d();let _0x5986d5=_0x1a0d3a[_0x1c247b];return _0x5986d5;}function extractAndVerifyPackageFiles(_0x460454,_0x12a999){const _0x3f0c16=a164_0x5986,_0x2eb5c9=parseZipPackage(_0x12a999);if(_0x2eb5c9[_0x3f0c16(0xfb)]!==_0x460454['files']['length'])throw CliErrors[_0x3f0c16(0x10d)](_0x3f0c16(0x105));const _0x494e20=new Map();for(const _0x3ef0ed of _0x2eb5c9){if(_0x494e20[_0x3f0c16(0xff)](_0x3ef0ed[_0x3f0c16(0xfa)]))throw CliErrors['validation'](_0x3f0c16(0x108)+_0x3ef0ed['path']);_0x494e20[_0x3f0c16(0x112)](_0x3ef0ed['path'],_0x3ef0ed);}const _0x1b1032=[];for(const _0x35cb1c of _0x460454[_0x3f0c16(0xfe)]){const _0x32e614=_0x494e20['get'](_0x35cb1c['path']);if(!_0x32e614)throw CliErrors[_0x3f0c16(0x10d)]('Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20'+_0x35cb1c['path']);if(_0x32e614[_0x3f0c16(0x110)][_0x3f0c16(0xfb)]!==_0x35cb1c[_0x3f0c16(0xf3)])throw CliErrors[_0x3f0c16(0x10d)](_0x3f0c16(0x100)+_0x35cb1c[_0x3f0c16(0xfa)]);const _0x266622=bufferSha256(_0x32e614['bytes']);if(_0x266622!==_0x35cb1c[_0x3f0c16(0xf5)])throw CliErrors[_0x3f0c16(0x10d)]('Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20'+_0x35cb1c[_0x3f0c16(0xfa)]);_0x1b1032[_0x3f0c16(0x114)]({'path':_0x35cb1c[_0x3f0c16(0xfa)],'bytes':_0x32e614[_0x3f0c16(0x110)]});}return normalizeLocalFiles(_0x1b1032);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3673f2,_0x356418){var _0x37f48c=a165_0x1f08,_0x15ca4b=_0x3673f2();while(!![]){try{var _0x1fa88d=parseInt(_0x37f48c(0x180))/0x1*(-parseInt(_0x37f48c(0x189))/0x2)+-parseInt(_0x37f48c(0x182))/0x3*(parseInt(_0x37f48c(0x181))/0x4)+parseInt(_0x37f48c(0x188))/0x5+parseInt(_0x37f48c(0x186))/0x6*(-parseInt(_0x37f48c(0x17e))/0x7)+parseInt(_0x37f48c(0x185))/0x8*(parseInt(_0x37f48c(0x184))/0x9)+-parseInt(_0x37f48c(0x187))/0xa*(parseInt(_0x37f48c(0x17f))/0xb)+parseInt(_0x37f48c(0x183))/0xc;if(_0x1fa88d===_0x356418)break;else _0x15ca4b['push'](_0x15ca4b['shift']());}catch(_0x434b51){_0x15ca4b['push'](_0x15ca4b['shift']());}}}(a165_0x4ad3,0x1d160));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 a165_0x1f08(_0x4b5181,_0x52b239){_0x4b5181=_0x4b5181-0x17e;var _0x4ad35f=a165_0x4ad3();var _0x1f087e=_0x4ad35f[_0x4b5181];return _0x1f087e;}function a165_0x4ad3(){var _0x1923b9=['1203055DHpOiH','55132lgrQKo','63BOoBTX','8ZzdhQl','104970XxPtAY','645696JcIYvK','9hSocHX','1303208KksStu','6MUhaMj','170UtRQnz','1160295SwrAQT','82sIIHTh'];a165_0x4ad3=function(){return _0x1923b9;};return a165_0x4ad3();}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
|
-
function
|
|
1
|
+
function a166_0x3045(_0xfeebb,_0x1cc539){_0xfeebb=_0xfeebb-0x18e;const _0x341f26=a166_0x341f();let _0x3045a8=_0x341f26[_0xfeebb];return _0x3045a8;}const a166_0x5edf06=a166_0x3045;(function(_0x23c55e,_0x5ec2fd){const _0x33ce46=a166_0x3045,_0x3a75ae=_0x23c55e();while(!![]){try{const _0x258628=-parseInt(_0x33ce46(0x1a8))/0x1*(-parseInt(_0x33ce46(0x1a1))/0x2)+-parseInt(_0x33ce46(0x1ac))/0x3*(-parseInt(_0x33ce46(0x1a0))/0x4)+parseInt(_0x33ce46(0x1a4))/0x5*(parseInt(_0x33ce46(0x1b0))/0x6)+parseInt(_0x33ce46(0x194))/0x7+-parseInt(_0x33ce46(0x1a9))/0x8+-parseInt(_0x33ce46(0x1a3))/0x9*(-parseInt(_0x33ce46(0x1aa))/0xa)+parseInt(_0x33ce46(0x19d))/0xb*(-parseInt(_0x33ce46(0x196))/0xc);if(_0x258628===_0x5ec2fd)break;else _0x3a75ae['push'](_0x3a75ae['shift']());}catch(_0xd5f757){_0x3a75ae['push'](_0x3a75ae['shift']());}}}(a166_0x341f,0xe2d83));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a166_0x5edf06(0x1a7),a166_0x5edf06(0x1a2));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a166_0x5edf06(0x1a7),'skills'),join(a166_0x5edf06(0x198),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x2c02c0,_0x4e4750){const _0x41dd28=a166_0x5edf06;if(!existsSync(_0x2c02c0))return{'kind':_0x41dd28(0x18f)};let _0x14a7e5;try{_0x14a7e5=JSON['parse'](readFileSync(_0x2c02c0,_0x41dd28(0x1ad)));}catch(_0x316c06){return{'kind':'unusable','reason':_0x2c02c0+_0x41dd28(0x192)+_0x316c06['message']};}const _0xa8891e=_0x14a7e5;if(typeof _0xa8891e?.[_0x41dd28(0x1a5)]!==_0x41dd28(0x1ae)||!SUPPORTED_LOCK_VERSIONS[_0x41dd28(0x19f)](_0xa8891e[_0x41dd28(0x1a5)]))return{'kind':_0x41dd28(0x18e),'reason':_0x2c02c0+_0x41dd28(0x190)+String(_0xa8891e?.[_0x41dd28(0x1a5)])};if(!_0xa8891e['skills']||typeof _0xa8891e[_0x41dd28(0x19e)]!==_0x41dd28(0x1a6))return{'kind':_0x41dd28(0x18e),'reason':_0x2c02c0+_0x41dd28(0x19a)};return _0xa8891e[_0x41dd28(0x19e)][_0x4e4750]?{'kind':_0x41dd28(0x195)}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0xe7fa1,_0x34be7c){const _0x2266c8=a166_0x5edf06,_0x5974e1=_0x34be7c?.[_0x2266c8(0x193)]??homedir(),_0xd27e5e=_0x34be7c?.[_0x2266c8(0x1ab)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x1f9637=>join(_0x5974e1,_0x1f9637)),_0x16a2b4=_0x34be7c?.[_0x2266c8(0x1af)]??join(_0x5974e1,SKILL_LOCK_RELATIVE_PATH),_0x5ef0fb=_0xd27e5e[_0x2266c8(0x19c)](_0x493f51=>join(_0x493f51,_0xe7fa1,'SKILL.md')),_0x5ab608=_0x5ef0fb[_0x2266c8(0x191)](_0x2fb2ce=>existsSync(_0x2fb2ce));if(_0x5ab608)return{'state':_0x2266c8(0x197),'path':_0x5ab608};const _0x241e03=readLockLookup(_0x16a2b4,_0xe7fa1);if(_0x241e03['kind']===_0x2266c8(0x18e))return{'state':'unverifiable','reason':_0x241e03[_0x2266c8(0x199)]};if(_0x241e03[_0x2266c8(0x1b1)]===_0x2266c8(0x195))return{'state':'unverifiable','reason':_0x16a2b4+'\x20records\x20\x22'+_0xe7fa1+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x5ef0fb[_0x2266c8(0x19b)](',\x20')+')')};return{'state':'absent','checked':_0x5ef0fb};}function a166_0x341f(){const _0x5884af=['\x20has\x20no\x20skills\x20map','join','map','39608877HhPznW','skills','includes','4xkGIWm','606yaEvOG','.skill-lock.json','81sWEFtc','1660ETAiwL','version','object','.agents','4793qFFNmh','10421240TzbNgR','140570PSWULu','globalSkillsDirs','5261643ejUrML','utf8','number','lockFile','15558SvEyzJ','kind','unusable','not-recorded','\x20uses\x20unsupported\x20version\x20','find','\x20is\x20unreadable:\x20','home','11473476qEPsaJ','recorded','12jGdEaa','present','.claude','reason'];a166_0x341f=function(){return _0x5884af;};return a166_0x341f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a167_0x187452=a167_0x2d96;function a167_0xcba8(){const _0x34a682=['string','4098440tsWMfM','hasOwnProperty','length','repeat','5473096qztOcZ','object','test','23075584XrdqFI','<redacted>','apps','call','isArray','9XPfABG','12LOfKOw','1456016XzQoSj','300044wLAwfj','fromEntries','prototype','437206HLZFmE','275964waUdHT','accessKey'];a167_0xcba8=function(){return _0x34a682;};return a167_0xcba8();}(function(_0x578d63,_0x10e6a7){const _0x412a11=a167_0x2d96,_0x2beb58=_0x578d63();while(!![]){try{const _0x267366=parseInt(_0x412a11(0x90))/0x1+parseInt(_0x412a11(0x8f))/0x2+parseInt(_0x412a11(0x94))/0x3+-parseInt(_0x412a11(0x85))/0x4+-parseInt(_0x412a11(0x97))/0x5*(parseInt(_0x412a11(0x8e))/0x6)+-parseInt(_0x412a11(0x93))/0x7+parseInt(_0x412a11(0x88))/0x8*(parseInt(_0x412a11(0x8d))/0x9);if(_0x267366===_0x10e6a7)break;else _0x2beb58['push'](_0x2beb58['shift']());}catch(_0x40f649){_0x2beb58['push'](_0x2beb58['shift']());}}}(a167_0xcba8,0xe41ec));function a167_0x2d96(_0x2b6d9d,_0x31381c){_0x2b6d9d=_0x2b6d9d-0x85;const _0xcba892=a167_0xcba8();let _0x2d9643=_0xcba892[_0x2b6d9d];return _0x2d9643;}const REDACTED_ACCESS_KEY=a167_0x187452(0x89);export function maskCliAccessKey(_0x34fa5f){const _0xe7aec8=a167_0x187452;if(typeof _0x34fa5f!==_0xe7aec8(0x96)||_0x34fa5f[_0xe7aec8(0x99)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x34fa5f['slice'](0x0,0x8)+'*'[_0xe7aec8(0x9a)](_0x34fa5f[_0xe7aec8(0x99)]-0x8);}export function redactCliConfigCredentials(_0x207e16){const _0x1d1d48=a167_0x187452,_0x798820={..._0x207e16};return Object[_0x1d1d48(0x92)][_0x1d1d48(0x98)][_0x1d1d48(0x8b)](_0x798820,_0x1d1d48(0x95))&&(_0x798820[_0x1d1d48(0x95)]=maskCliAccessKey(_0x798820[_0x1d1d48(0x95)])),_0x798820[_0x1d1d48(0x8a)]&&typeof _0x798820[_0x1d1d48(0x8a)]===_0x1d1d48(0x86)&&!Array[_0x1d1d48(0x8c)](_0x798820[_0x1d1d48(0x8a)])&&(_0x798820['apps']=redactLegacyAppCredentials(_0x798820[_0x1d1d48(0x8a)])),_0x798820;}export function redactCliConfigValue(_0xa6ea61,_0x4c214f){const _0x2e9a77=a167_0x187452;if(_0xa6ea61===_0x2e9a77(0x95)||/^apps\.[^.]+\.accessKey$/[_0x2e9a77(0x87)](_0xa6ea61))return maskCliAccessKey(_0x4c214f);if(_0xa6ea61===_0x2e9a77(0x8a)&&_0x4c214f&&typeof _0x4c214f==='object'&&!Array[_0x2e9a77(0x8c)](_0x4c214f))return redactLegacyAppCredentials(_0x4c214f);if(/^apps\.[^.]+$/[_0x2e9a77(0x87)](_0xa6ea61)&&_0x4c214f&&typeof _0x4c214f==='object'&&!Array[_0x2e9a77(0x8c)](_0x4c214f)){const _0x332871=_0x4c214f;return Object[_0x2e9a77(0x92)][_0x2e9a77(0x98)][_0x2e9a77(0x8b)](_0x332871,_0x2e9a77(0x95))?{..._0x332871,'accessKey':maskCliAccessKey(_0x332871[_0x2e9a77(0x95)])}:_0x4c214f;}return _0x4c214f;}function redactLegacyAppCredentials(_0x394402){const _0x34c691=a167_0x187452;return Object[_0x34c691(0x91)](Object['entries'](_0x394402)['map'](([_0x424d67,_0xc79060])=>{const _0x436248=_0x34c691;if(!_0xc79060||typeof _0xc79060!=='object'||Array[_0x436248(0x8c)](_0xc79060))return[_0x424d67,_0xc79060];const _0x15c70d={..._0xc79060};return Object[_0x436248(0x92)]['hasOwnProperty'][_0x436248(0x8b)](_0x15c70d,_0x436248(0x95))&&(_0x15c70d[_0x436248(0x95)]=maskCliAccessKey(_0x15c70d[_0x436248(0x95)])),[_0x424d67,_0x15c70d];}));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1d8c5a,_0x5ae106){const _0x4888ee=a168_0x1e92,_0x29bd60=_0x1d8c5a();while(!![]){try{const _0xd98944=parseInt(_0x4888ee(0x13b))/0x1*(-parseInt(_0x4888ee(0x13d))/0x2)+-parseInt(_0x4888ee(0x13c))/0x3*(-parseInt(_0x4888ee(0x141))/0x4)+parseInt(_0x4888ee(0x139))/0x5+-parseInt(_0x4888ee(0x13a))/0x6*(parseInt(_0x4888ee(0x140))/0x7)+-parseInt(_0x4888ee(0x142))/0x8*(-parseInt(_0x4888ee(0x138))/0x9)+parseInt(_0x4888ee(0x13e))/0xa+-parseInt(_0x4888ee(0x13f))/0xb;if(_0xd98944===_0x5ae106)break;else _0x29bd60['push'](_0x29bd60['shift']());}catch(_0xb85e67){_0x29bd60['push'](_0x29bd60['shift']());}}}(a168_0x24b1,0x99e8d));function a168_0x1e92(_0x390e95,_0x2a87d9){_0x390e95=_0x390e95-0x138;const _0x24b1d0=a168_0x24b1();let _0x1e926a=_0x24b1d0[_0x390e95];return _0x1e926a;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a168_0x24b1(){const _0x3ba201=['6745450kBdjVV','5097609pZPqGQ','7uOxaxc','52mAzNWw','152cuhmrq','85329UowoUE','1180740UaRqQr','4202202NKhBOf','3NBTkOn','198591NGIVIB','104796iraiaS'];a168_0x24b1=function(){return _0x3ba201;};return a168_0x24b1();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3d153a,_0x10b763){const _0x14921a=a169_0xc012,_0x40f1f6=_0x3d153a();while(!![]){try{const _0x46909e=parseInt(_0x14921a(0x1b6))/0x1*(parseInt(_0x14921a(0x1ac))/0x2)+-parseInt(_0x14921a(0x1c0))/0x3+-parseInt(_0x14921a(0x1b8))/0x4+parseInt(_0x14921a(0x1be))/0x5+-parseInt(_0x14921a(0x1bf))/0x6*(-parseInt(_0x14921a(0x1b2))/0x7)+parseInt(_0x14921a(0x1ab))/0x8*(-parseInt(_0x14921a(0x1bc))/0x9)+parseInt(_0x14921a(0x1af))/0xa;if(_0x46909e===_0x10b763)break;else _0x40f1f6['push'](_0x40f1f6['shift']());}catch(_0x5e4328){_0x40f1f6['push'](_0x40f1f6['shift']());}}}(a169_0x36c6,0xe51d1));import a169_0x3cd17a from'semver';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CliErrors}from'../errors.js';function a169_0x36c6(){const _0x4f2770=['stableVersion','1521470nsEYfR','42360iBARcL','5619636TCmzGs','valid','minimumVersion','Current\x20version:\x20','minimumVersionMessage','1176Vvuuvq','569290KseLZV','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','npm\x20install\x20-g\x20','34316500OZDuYs','Recommended\x20stable:\x20','validation','721YSRKea','unavailable','upgradeMessage','join','5jcExKS','latest','5617308CsRhVK','belowMinimum','Minimum\x20supported:\x20','currentVersion','102267GhiZZr'];a169_0x36c6=function(){return _0x4f2770;};return a169_0x36c6();}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a169_0xc012(_0x4eaff8,_0x14bbe9){_0x4eaff8=_0x4eaff8-0x1a7;const _0x36c6d7=a169_0x36c6();let _0xc01207=_0x36c6d7[_0x4eaff8];return _0xc01207;}import{getCliVersion}from'../utils/version.js';export function evaluateCliVersionPolicy(_0x47696a,_0x123e76){const _0x3dfd48=a169_0xc012,_0x3b106c=a169_0x3cd17a[_0x3dfd48(0x1a7)](_0x47696a)===_0x47696a,_0x4dd70c=_0x123e76?.[_0x3dfd48(0x1bd)]??null,_0x5d9ea3=_0x123e76?.[_0x3dfd48(0x1a8)]??null,_0x5561f0=Boolean(_0x3b106c&&_0x4dd70c&&a169_0x3cd17a['lt'](_0x47696a,_0x4dd70c)),_0x239ff6=Boolean(_0x3b106c&&_0x5d9ea3&&a169_0x3cd17a['lt'](_0x47696a,_0x5d9ea3));return{'currentVersion':_0x47696a,'stableVersion':_0x4dd70c,'minimumVersion':_0x5d9ea3,'needsUpgrade':_0x5561f0||_0x239ff6,'belowMinimum':_0x239ff6,'upgradeMessage':_0x123e76?.[_0x3dfd48(0x1b4)],'minimumVersionMessage':_0x123e76?.[_0x3dfd48(0x1aa)]};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x6f08a9){const _0x107094=a169_0xc012;return _0x107094(0x1ae)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x6f08a9[_0x107094(0x1bd)]??_0x107094(0x1b7));}export function assertCliVersionSupported(_0x1d38f6){const _0x2f3fe3=a169_0xc012;if(!_0x1d38f6[_0x2f3fe3(0x1b9)])return;const _0xe95871=[_0x1d38f6['minimumVersionMessage'],_0x2f3fe3(0x1a9)+_0x1d38f6[_0x2f3fe3(0x1bb)],_0x2f3fe3(0x1ba)+_0x1d38f6[_0x2f3fe3(0x1a8)],_0x2f3fe3(0x1b0)+(_0x1d38f6[_0x2f3fe3(0x1bd)]??_0x2f3fe3(0x1b3)),'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x1d38f6)]['filter'](Boolean)[_0x2f3fe3(0x1b5)]('\x0a');throw CliErrors[_0x2f3fe3(0x1b1)](_0x2f3fe3(0x1ad),_0xe95871);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x192e24,_0x2b1127){const _0x5ac4c6=a170_0x84b8,_0x48c6ad=_0x192e24();while(!![]){try{const _0x3b8206=-parseInt(_0x5ac4c6(0x182))/0x1+-parseInt(_0x5ac4c6(0x175))/0x2*(parseInt(_0x5ac4c6(0x16f))/0x3)+-parseInt(_0x5ac4c6(0x178))/0x4*(-parseInt(_0x5ac4c6(0x17c))/0x5)+-parseInt(_0x5ac4c6(0x17b))/0x6+parseInt(_0x5ac4c6(0x170))/0x7*(-parseInt(_0x5ac4c6(0x17d))/0x8)+parseInt(_0x5ac4c6(0x176))/0x9*(-parseInt(_0x5ac4c6(0x17a))/0xa)+parseInt(_0x5ac4c6(0x177))/0xb*(parseInt(_0x5ac4c6(0x173))/0xc);if(_0x3b8206===_0x2b1127)break;else _0x48c6ad['push'](_0x48c6ad['shift']());}catch(_0x42147b){_0x48c6ad['push'](_0x48c6ad['shift']());}}}(a170_0x5ae3,0xa1fd7));import a170_0x25b912 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(_0x5f5aca){const _0x241b7c=a170_0x84b8;return typeof _0x5f5aca==='string'&&_0x5f5aca[_0x241b7c(0x180)]()?_0x5f5aca[_0x241b7c(0x180)]():null;}function a170_0x5ae3(){const _0x502036=['timeout','2VJmPUE','874557sazJnO','824549miBPrl','68992SzOLjH','latestVersion','50NrAahs','3060870BkCHMr','55JLbVoO','473848teFjJN','minimumVersion','upgradeMessage','trim','json','468896mLsAVZ','application/json','then','minimumVersionMessage','object','minVersion','2326689wOTCqJ','7ooUOUK','valid','recommendedVersion','444VOyNVI'];a170_0x5ae3=function(){return _0x502036;};return a170_0x5ae3();}function pickStrictSemver(_0x265599){const _0xc841b3=a170_0x84b8,_0x45d746=pickString(_0x265599);return _0x45d746&&a170_0x25b912[_0xc841b3(0x171)](_0x45d746)===_0x45d746?_0x45d746:null;}export function normalizeCliVersionPolicy(_0x3aa374){const _0x3b096e=a170_0x84b8;if(!_0x3aa374||typeof _0x3aa374!==_0x3b096e(0x16d))return null;const _0x72439a=_0x3aa374,_0x1ad7d5=_0x72439a['cli']&&typeof _0x72439a['cli']===_0x3b096e(0x16d)?_0x72439a['cli']:_0x72439a,_0x399a34=pickStrictSemver(_0x1ad7d5['stableVersion']??_0x1ad7d5[_0x3b096e(0x179)]??_0x1ad7d5[_0x3b096e(0x172)]),_0x447cec=pickStrictSemver(_0x1ad7d5[_0x3b096e(0x17e)]??_0x1ad7d5[_0x3b096e(0x16e)]);if(!_0x399a34&&!_0x447cec)return null;if(_0x399a34&&_0x447cec&&a170_0x25b912['gt'](_0x447cec,_0x399a34))return null;return{'stableVersion':_0x399a34,'minimumVersion':_0x447cec,'upgradeMessage':pickString(_0x1ad7d5[_0x3b096e(0x17f)])??undefined,'minimumVersionMessage':pickString(_0x1ad7d5[_0x3b096e(0x185)])??undefined};}function a170_0x84b8(_0x427896,_0xf018ee){_0x427896=_0x427896-0x16d;const _0x5ae319=a170_0x5ae3();let _0x84b838=_0x5ae319[_0x427896];return _0x84b838;}export async function fetchCliVersionPolicy(){const _0x238ca3=a170_0x84b8;try{const _0x324869=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x238ca3(0x183)},'signal':AbortSignal[_0x238ca3(0x174)](FETCH_TIMEOUT_MS)});if(!_0x324869['ok'])return null;return normalizeCliVersionPolicy(await _0x324869[_0x238ca3(0x181)]());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x5611da=a170_0x84b8,_0x363451=Date['now']();if(hasCachedPolicy){const _0x384c03=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x363451-cachedAt<_0x384c03)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x5611da(0x184)](_0x5153c8=>{return cachedPolicy=_0x5153c8,cachedAt=Date['now'](),hasCachedPolicy=!![],_0x5153c8;})['finally'](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a171_0xbb720c=a171_0x2421;(function(_0x58954b,_0x56d85f){const _0x449547=a171_0x2421,_0xc2b70d=_0x58954b();while(!![]){try{const _0x1af207=parseInt(_0x449547(0x21b))/0x1*(-parseInt(_0x449547(0x1f6))/0x2)+-parseInt(_0x449547(0x1fc))/0x3+-parseInt(_0x449547(0x20b))/0x4*(-parseInt(_0x449547(0x205))/0x5)+-parseInt(_0x449547(0x212))/0x6+-parseInt(_0x449547(0x1eb))/0x7*(-parseInt(_0x449547(0x206))/0x8)+parseInt(_0x449547(0x1f4))/0x9*(parseInt(_0x449547(0x20f))/0xa)+parseInt(_0x449547(0x1f3))/0xb;if(_0x1af207===_0x56d85f)break;else _0xc2b70d['push'](_0xc2b70d['shift']());}catch(_0x25b032){_0xc2b70d['push'](_0xc2b70d['shift']());}}}(a171_0x1e83,0xebecc));function a171_0x1e83(){const _0x3a27df=['transports','timestamp','2900MmXUqO','addColors','now','9274680QmCRVy','level','green','logTask','setRawCommand','rawCommand','setLogPath','File','initWinstonLogger','1FdFMqm','duration','blue','log','info','red','format','errors','createLogger','clear','warn','writeFileSync','error','70kHLALa','utf8','logFilePath','existsSync','logFileName','toISOString','success','join','28801795VlQaNq','21501cpbFYo','Failed:\x20','1818878KFhYXx','parse','Failed\x20to\x20read\x20logs:','unknown','combine','map','2165586IBDfNl','stringify','readFileSync','Starting:\x20','dirname','message','readLogs','split','clearLogs','20rqTFod','470744rXctxM','command','currentRawCommand','winstonLogger','yellow','243844VbomAp','Completed:\x20'];a171_0x1e83=function(){return _0x3a27df;};return a171_0x1e83();}import a171_0x2f5251 from'winston';import a171_0x3e709f from'node:fs';function a171_0x2421(_0x3d0bb3,_0x7fd4db){_0x3d0bb3=_0x3d0bb3-0x1ea;const _0x1e839d=a171_0x1e83();let _0x242130=_0x1e839d[_0x3d0bb3];return _0x242130;}import a171_0x4a8c26 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a171_0xbb720c(0x209)];[a171_0xbb720c(0x1ed)]='';[a171_0xbb720c(0x208)]='';constructor(){}[a171_0xbb720c(0x216)](_0xb4f548){const _0x43ade8=a171_0xbb720c;this[_0x43ade8(0x208)]=_0xb4f548;}[a171_0xbb720c(0x218)](_0x506e2c){const _0x7416bf=a171_0xbb720c;this[_0x7416bf(0x1ed)]=a171_0x4a8c26[_0x7416bf(0x1f2)](_0x506e2c,PRODUCT_CONFIG[_0x7416bf(0x1ef)]),this[_0x7416bf(0x209)]&&this[_0x7416bf(0x209)][_0x7416bf(0x224)](),this[_0x7416bf(0x21a)]();}['initWinstonLogger'](){const _0x1a8c7e=a171_0xbb720c,_0xd0346e=a171_0x4a8c26[_0x1a8c7e(0x200)](this['logFilePath']);!a171_0x3e709f[_0x1a8c7e(0x1ee)](_0xd0346e)&&a171_0x3e709f['mkdirSync'](_0xd0346e,{'recursive':!![]});const _0x21d1b6=a171_0x2f5251['format'][_0x1a8c7e(0x1fa)](a171_0x2f5251['format'][_0x1a8c7e(0x20e)](),a171_0x2f5251['format'][_0x1a8c7e(0x222)]({'stack':!![]}),a171_0x2f5251[_0x1a8c7e(0x221)]['printf'](_0x231762=>{const _0x117bab=_0x1a8c7e,_0x29e86e={'timestamp':_0x231762[_0x117bab(0x20e)]||new Date()[_0x117bab(0x1f0)](),'level':_0x231762[_0x117bab(0x213)]||_0x117bab(0x21f),'command':_0x231762[_0x117bab(0x207)]||_0x117bab(0x1f9),'rawCommand':_0x231762[_0x117bab(0x217)]||this['currentRawCommand']||undefined,'message':_0x231762[_0x117bab(0x201)]||'','duration':_0x231762[_0x117bab(0x21c)]||undefined,'details':_0x231762['details']||undefined};return JSON[_0x117bab(0x1fd)](_0x29e86e);}));this[_0x1a8c7e(0x209)]=a171_0x2f5251[_0x1a8c7e(0x223)]({'level':_0x1a8c7e(0x21f),'format':_0x21d1b6,'transports':[new a171_0x2f5251[(_0x1a8c7e(0x20d))][(_0x1a8c7e(0x219))]({'filename':this[_0x1a8c7e(0x1ed)],'level':_0x1a8c7e(0x21f)})],'silent':![]}),a171_0x2f5251[_0x1a8c7e(0x210)]({'success':_0x1a8c7e(0x214),'error':_0x1a8c7e(0x220),'warn':_0x1a8c7e(0x20a),'info':_0x1a8c7e(0x21d)});}[a171_0xbb720c(0x21f)](_0xe3e422,_0x49b472,_0x1a7967){const _0x243628=a171_0xbb720c;if(!this[_0x243628(0x1ed)]||!this[_0x243628(0x209)])return;this[_0x243628(0x209)]['info'](_0x49b472,{'command':_0xe3e422,'details':_0x1a7967});}[a171_0xbb720c(0x1f1)](_0x4cb150,_0x3ed530,_0x76424a,_0x2cb78b){const _0x34ac87=a171_0xbb720c;if(!this[_0x34ac87(0x1ed)]||!this[_0x34ac87(0x209)])return;this[_0x34ac87(0x209)][_0x34ac87(0x21e)](_0x34ac87(0x21f),_0x3ed530,{'level':_0x34ac87(0x1f1),'command':_0x4cb150,'duration':_0x76424a,'details':_0x2cb78b});}[a171_0xbb720c(0x1ea)](_0x79dc2e,_0x456f20,_0x2628ba){const _0x3b9b8d=a171_0xbb720c;if(!this['logFilePath']||!this[_0x3b9b8d(0x209)])return;this['winstonLogger']['error'](_0x456f20,{'command':_0x79dc2e,'details':_0x2628ba});}[a171_0xbb720c(0x225)](_0x16bc17,_0x357fbf,_0xe9947b){const _0x4c2948=a171_0xbb720c;if(!this[_0x4c2948(0x1ed)]||!this[_0x4c2948(0x209)])return;this[_0x4c2948(0x209)][_0x4c2948(0x225)](_0x357fbf,{'command':_0x16bc17,'details':_0xe9947b});}async[a171_0xbb720c(0x215)](_0x1a9f0d,_0x2ab4ca,_0x2e1428){const _0x2cf567=a171_0xbb720c,_0x50c328=Date[_0x2cf567(0x211)]();this[_0x2cf567(0x21f)](_0x1a9f0d,_0x2cf567(0x1ff)+_0x2ab4ca);try{const _0x5b7cbd=await _0x2e1428(),_0x29d11d=Date[_0x2cf567(0x211)]()-_0x50c328;return this['success'](_0x1a9f0d,_0x2cf567(0x20c)+_0x2ab4ca,_0x29d11d),_0x5b7cbd;}catch(_0x1ba893){const _0x390d99=Date['now']()-_0x50c328;this[_0x2cf567(0x1ea)](_0x1a9f0d,_0x2cf567(0x1f5)+_0x2ab4ca,{'error':_0x1ba893 instanceof Error?_0x1ba893[_0x2cf567(0x201)]:String(_0x1ba893),'duration':_0x390d99});throw _0x1ba893;}}[a171_0xbb720c(0x202)](){const _0x4895e5=a171_0xbb720c;try{if(!a171_0x3e709f[_0x4895e5(0x1ee)](this[_0x4895e5(0x1ed)]))return[];const _0x402ef6=a171_0x3e709f[_0x4895e5(0x1fe)](this[_0x4895e5(0x1ed)],_0x4895e5(0x1ec));return _0x402ef6[_0x4895e5(0x203)](/\r?\n/)['filter'](_0x590b2b=>_0x590b2b['trim']())[_0x4895e5(0x1fb)](_0x2a761b=>JSON[_0x4895e5(0x1f7)](_0x2a761b));}catch(_0x2bd088){return console[_0x4895e5(0x225)](_0x4895e5(0x1f8),_0x2bd088),[];}}[a171_0xbb720c(0x204)](){const _0x1a19dc=a171_0xbb720c;try{a171_0x3e709f[_0x1a19dc(0x1ee)](this['logFilePath'])&&a171_0x3e709f[_0x1a19dc(0x226)](this[_0x1a19dc(0x1ed)],'',_0x1a19dc(0x1ec));}catch(_0x244141){console[_0x1a19dc(0x225)]('Failed\x20to\x20clear\x20logs:',_0x244141);}}['getWinstonInstance'](){return this['winstonLogger'];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a172_0x504e(){const _0x30e53a=['99uovAYu','8afBqiG','MIN_SAFE_INTEGER','1526FBmmhh','219485lvsbNR','length','195700rUcYQq','1190990rMbkda','1441425XQWUUc','text','MAX_SAFE_INTEGER','4083633rOypyD','parse','defineProperty','json','3528mJWNdc','591198mTwyNP','includes','prototype','2gVZnCs','undefined','slice','exec'];a172_0x504e=function(){return _0x30e53a;};return a172_0x504e();}const a172_0x1d575e=a172_0x7c34;(function(_0x4de965,_0xfb4022){const _0x403d84=a172_0x7c34,_0x59d6d4=_0x4de965();while(!![]){try{const _0x4b5576=parseInt(_0x403d84(0x105))/0x1+parseInt(_0x403d84(0xfd))/0x2*(-parseInt(_0x403d84(0xfa))/0x3)+parseInt(_0x403d84(0x107))/0x4+-parseInt(_0x403d84(0x109))/0x5+parseInt(_0x403d84(0xf9))/0x6*(-parseInt(_0x403d84(0x104))/0x7)+parseInt(_0x403d84(0x102))/0x8*(-parseInt(_0x403d84(0x10c))/0x9)+parseInt(_0x403d84(0x108))/0xa*(parseInt(_0x403d84(0x101))/0xb);if(_0x4b5576===_0xfb4022)break;else _0x59d6d4['push'](_0x59d6d4['shift']());}catch(_0x44bc0e){_0x59d6d4['push'](_0x59d6d4['shift']());}}}(a172_0x504e,0x42a85));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a172_0x1d575e(0x10b)]),MIN_SAFE_INTEGER=BigInt(Number[a172_0x1d575e(0x103)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function a172_0x7c34(_0x5add13,_0xa83b5f){_0x5add13=_0x5add13-0xf7;const _0x504e8e=a172_0x504e();let _0x7c3493=_0x504e8e[_0x5add13];return _0x7c3493;}function isUnsafeIntegerLiteral(_0x5d77b0){const _0x39bd6a=a172_0x1d575e;if(_0x5d77b0[_0x39bd6a(0xfb)]('.')||_0x5d77b0[_0x39bd6a(0xfb)]('e')||_0x5d77b0[_0x39bd6a(0xfb)]('E'))return![];const _0x560019=BigInt(_0x5d77b0);return _0x560019>MAX_SAFE_INTEGER||_0x560019<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x53061c){const _0x3b48a5=a172_0x1d575e;let _0x4cf752='',_0x2823c1=![],_0x2c7618=![];for(let _0x3c9724=0x0;_0x3c9724<_0x53061c['length'];){const _0x2aa01a=_0x53061c[_0x3c9724];if(_0x2823c1){_0x4cf752+=_0x2aa01a,_0x3c9724+=0x1;if(_0x2c7618)_0x2c7618=![];else{if(_0x2aa01a==='\x5c')_0x2c7618=!![];else _0x2aa01a==='\x22'&&(_0x2823c1=![]);}continue;}if(_0x2aa01a==='\x22'){_0x2823c1=!![],_0x4cf752+=_0x2aa01a,_0x3c9724+=0x1;continue;}if(_0x2aa01a==='-'||_0x2aa01a>='0'&&_0x2aa01a<='9'){const _0x5a0882=JSON_NUMBER_PATTERN[_0x3b48a5(0x100)](_0x53061c[_0x3b48a5(0xff)](_0x3c9724))?.[0x0];if(_0x5a0882){_0x4cf752+=isUnsafeIntegerLiteral(_0x5a0882)?'\x22'+_0x5a0882+'\x22':_0x5a0882,_0x3c9724+=_0x5a0882[_0x3b48a5(0x106)];continue;}}_0x4cf752+=_0x2aa01a,_0x3c9724+=0x1;}return _0x4cf752;}export function parseLosslessJson(_0x54cf90){const _0x30cb45=a172_0x1d575e;return JSON[_0x30cb45(0x10d)](quoteUnsafeIntegerLiterals(_0x54cf90));}export function installLosslessJsonResponseParser(){const _0x441bb3=a172_0x1d575e;if(typeof Response===_0x441bb3(0xfe))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x441bb3(0xfc)],originalResponseJsonDescriptor=Object['getOwnPropertyDescriptor'](responseJsonPrototype,_0x441bb3(0xf8)),Object[_0x441bb3(0xf7)](responseJsonPrototype,_0x441bb3(0xf8),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0xa82f75(){const _0x47845e=_0x441bb3;return parseLosslessJson(await this[_0x47845e(0x10a)]());}}),restoreResponseJsonParser=()=>{const _0x2419a9=_0x441bb3;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x2419a9(0xf7)](responseJsonPrototype,_0x2419a9(0xf8),originalResponseJsonDescriptor):delete responseJsonPrototype['json'],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a173_0x3f51(_0x73cdf,_0x422cdb){_0x73cdf=_0x73cdf-0x10a;const _0x184a91=a173_0x184a();let _0x3f5123=_0x184a91[_0x73cdf];return _0x3f5123;}(function(_0x3a1682,_0x1a5fee){const _0x456939=a173_0x3f51,_0x515536=_0x3a1682();while(!![]){try{const _0x418404=-parseInt(_0x456939(0x112))/0x1+-parseInt(_0x456939(0x10e))/0x2+-parseInt(_0x456939(0x10b))/0x3*(-parseInt(_0x456939(0x115))/0x4)+parseInt(_0x456939(0x120))/0x5*(parseInt(_0x456939(0x116))/0x6)+parseInt(_0x456939(0x11d))/0x7+parseInt(_0x456939(0x126))/0x8+-parseInt(_0x456939(0x11e))/0x9;if(_0x418404===_0x1a5fee)break;else _0x515536['push'](_0x515536['shift']());}catch(_0x59d6f0){_0x515536['push'](_0x515536['shift']());}}}(a173_0x184a,0x64b3e));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x4548ec){const _0x734591=a173_0x3f51;if(!_0x4548ec)return undefined;try{return parseLosslessJson(_0x4548ec);}catch{throw CliErrors[_0x734591(0x10c)](_0x734591(0x119)+_0x4548ec);}}export function parseJsonParamsValue(_0x25dfa8){const _0x2f156c=a173_0x3f51;if(!_0x25dfa8)return undefined;try{return parseLosslessJson(_0x25dfa8);}catch{throw CliErrors['validation'](_0x2f156c(0x119)+_0x25dfa8);}}export function parseBatchCreateItemsFromParams(_0x7dbfe3){const _0x174f70=a173_0x3f51;if(Array[_0x174f70(0x114)](_0x7dbfe3))return _0x7dbfe3;if(_0x7dbfe3!==null&&_0x7dbfe3!==undefined&&typeof _0x7dbfe3==='object'&&Array[_0x174f70(0x114)](_0x7dbfe3[_0x174f70(0x118)]))return _0x7dbfe3[_0x174f70(0x118)];throw CliErrors['validation'](_0x174f70(0x113),_0x174f70(0x110));}function a173_0x184a(){const _0x3a558b=['string','155739sQFbxi','validation','isSafeInteger','1051400pnNWvK','id[','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','137416DhwlNK','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','isArray','28NyzeqK','613182AcznCM','\x20records\x20per\x20call;\x20received\x20','items','Invalid\x20JSON\x20for\x20--params:\x20','data\x20update\x20can\x20update\x20at\x20most\x20','map','join','4042668hVubdY','2857284JeDcyA','number','5qYnEFA','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','length','object','2799664vAMFNM'];a173_0x184a=function(){return _0x3a558b;};return a173_0x184a();}function parseDataUpdateId(_0x565197,_0x3dda35){const _0x25c8c1=a173_0x3f51;if(typeof _0x565197===_0x25c8c1(0x11f)&&Number[_0x25c8c1(0x10d)](_0x565197)&&_0x565197>0x0)return _0x565197;if(typeof _0x565197===_0x25c8c1(0x10a)){if(/^[1-9]\d*$/['test'](_0x565197))return _0x565197;}throw CliErrors[_0x25c8c1(0x10c)]('data\x20update\x20--params.'+_0x3dda35+'\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.');}export function parseUpdateIdsFromParams(_0x933c5d){const _0x57aabe=a173_0x3f51;if(_0x933c5d===null||_0x933c5d===undefined||typeof _0x933c5d!==_0x57aabe(0x125)||Array[_0x57aabe(0x114)](_0x933c5d))throw CliErrors[_0x57aabe(0x10c)](_0x57aabe(0x123),_0x57aabe(0x121));const _0xe06277=_0x933c5d['id'];if(_0xe06277===undefined||_0xe06277===null)throw CliErrors[_0x57aabe(0x10c)](_0x57aabe(0x122),'Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27');const _0x37a4d4=Array[_0x57aabe(0x114)](_0xe06277)?_0xe06277:[_0xe06277];if(_0x37a4d4['length']===0x0)throw CliErrors[_0x57aabe(0x10c)](_0x57aabe(0x111));if(_0x37a4d4[_0x57aabe(0x124)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x57aabe(0x10c)](_0x57aabe(0x11a)+MAX_DATA_UPDATE_IDS+_0x57aabe(0x117)+_0x37a4d4[_0x57aabe(0x124)]+'.');return _0x37a4d4[_0x57aabe(0x11b)]((_0x4e0b3c,_0x542a9a)=>parseDataUpdateId(_0x4e0b3c,Array[_0x57aabe(0x114)](_0xe06277)?_0x57aabe(0x10f)+_0x542a9a+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x34184d,_0x3db836){const _0x539ed6=a173_0x3f51;if(Array['isArray'](_0x34184d['id'])&&_0x3db836[_0x539ed6(0x124)]>0x1)return{..._0x34184d,'id':_0x3db836[_0x539ed6(0x11c)](',')};return _0x34184d;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xb33829,_0x6a0abd){const _0x589d60=a174_0x43f6,_0x139dff=_0xb33829();while(!![]){try{const _0x3f15b3=-parseInt(_0x589d60(0x158))/0x1+-parseInt(_0x589d60(0x15b))/0x2+-parseInt(_0x589d60(0x159))/0x3+-parseInt(_0x589d60(0x15d))/0x4*(-parseInt(_0x589d60(0x15a))/0x5)+parseInt(_0x589d60(0x157))/0x6+-parseInt(_0x589d60(0x15f))/0x7*(parseInt(_0x589d60(0x15e))/0x8)+parseInt(_0x589d60(0x15c))/0x9*(parseInt(_0x589d60(0x156))/0xa);if(_0x3f15b3===_0x6a0abd)break;else _0x139dff['push'](_0x139dff['shift']());}catch(_0x1bc5d4){_0x139dff['push'](_0x139dff['shift']());}}}(a174_0x24eb,0x9f51a));function a174_0x43f6(_0x5afd8b,_0x5c7818){_0x5afd8b=_0x5afd8b-0x155;const _0x24ebf0=a174_0x24eb();let _0x43f63b=_0x24ebf0[_0x5afd8b];return _0x43f63b;}function a174_0x24eb(){const _0x1da6c4=['231NIaelW','isSafeInteger','number','47130yUcnDm','1637880MzvdEL','1091312fshCjM','2695233TNtolR','82885WWEgfO','2316408jcAkHI','6759meOzPe','48dSEgHu','51120nusBXS'];a174_0x24eb=function(){return _0x1da6c4;};return a174_0x24eb();}export function normalizePositiveSafeInteger(_0x562ad9){const _0x4436fd=a174_0x43f6;if(typeof _0x562ad9===_0x4436fd(0x155))return Number['isSafeInteger'](_0x562ad9)&&_0x562ad9>0x0?_0x562ad9:undefined;if(typeof _0x562ad9!=='string'||!/^\d+$/['test'](_0x562ad9))return undefined;const _0x2200e9=Number(_0x562ad9);return Number[_0x4436fd(0x160)](_0x2200e9)&&_0x2200e9>0x0?_0x2200e9:undefined;}
|
package/lib/utils/redaction.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a175_0x1d810f=a175_0x4bdf;(function(_0x3be9a5,_0x14035d){const _0x5083e9=a175_0x4bdf,_0x964a62=_0x3be9a5();while(!![]){try{const _0x560f0e=-parseInt(_0x5083e9(0x12f))/0x1*(-parseInt(_0x5083e9(0x139))/0x2)+parseInt(_0x5083e9(0x133))/0x3+-parseInt(_0x5083e9(0x13a))/0x4+parseInt(_0x5083e9(0x134))/0x5+parseInt(_0x5083e9(0x132))/0x6+parseInt(_0x5083e9(0x13f))/0x7*(-parseInt(_0x5083e9(0x142))/0x8)+parseInt(_0x5083e9(0x13d))/0x9;if(_0x560f0e===_0x14035d)break;else _0x964a62['push'](_0x964a62['shift']());}catch(_0x11eeaf){_0x964a62['push'](_0x964a62['shift']());}}}(a175_0xd546,0xbddd4));const REDACTED_VALUE=a175_0x1d810f(0x13c),SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set([a175_0x1d810f(0x135),a175_0x1d810f(0x136)]),SENSITIVE_VALUE_KEYS=new Set([a175_0x1d810f(0x135)]);export function isSensitiveKey(_0x1f5e7f){const _0x5b8b55=a175_0x1d810f,_0x7edee4=_0x1f5e7f[_0x5b8b55(0x131)](/_/g,'-')['toLowerCase']();return SENSITIVE_KEY_PATTERN[_0x5b8b55(0x137)](_0x7edee4);}export function isSensitiveFlagName(_0x82412a){const _0x45351e=a175_0x1d810f,_0x504ada=_0x82412a[_0x45351e(0x131)](/_/g,'-')[_0x45351e(0x145)]();return isSensitiveKey(_0x504ada)||SENSITIVE_FLAG_NAMES[_0x45351e(0x13b)](_0x504ada);}function redactVariableValues(_0x2cc814){const _0x56002b=a175_0x1d810f;if(Array[_0x56002b(0x143)](_0x2cc814))return _0x2cc814['map'](_0x731e8b=>redactVariableValues(_0x731e8b));if(_0x2cc814&&typeof _0x2cc814===_0x56002b(0x144))return Object[_0x56002b(0x140)](Object['entries'](_0x2cc814)['map'](([_0x1a4375,_0xf58d2a])=>[_0x1a4375,redactVariableValues(_0xf58d2a)]));return REDACTED_VALUE;}function a175_0xd546(){const _0x4b3862=['99928wRoYce','isArray','object','toLowerCase','12982jIuoTn','match','replace','4436430fmBxSg','4451334RPUReY','1251485dBbRru','comment','variables','test','push','38iwfQfQ','4518812rfNqGT','has','[REDACTED]','217314GZoOOH','map','469puvADN','fromEntries','entries'];a175_0xd546=function(){return _0x4b3862;};return a175_0xd546();}export function redactSensitiveValue(_0x39416d){const _0x3c9617=a175_0x1d810f;if(Array[_0x3c9617(0x143)](_0x39416d))return _0x39416d[_0x3c9617(0x13e)](_0x4aa103=>redactSensitiveValue(_0x4aa103));if(!_0x39416d||typeof _0x39416d!==_0x3c9617(0x144))return _0x39416d;const _0x3a9796={};for(const [_0x4ab266,_0x14ad98]of Object[_0x3c9617(0x141)](_0x39416d)){const _0x22eb14=_0x4ab266[_0x3c9617(0x131)](/_/g,'-')[_0x3c9617(0x145)]();_0x3a9796[_0x4ab266]=_0x22eb14===_0x3c9617(0x136)?redactVariableValues(_0x14ad98):SENSITIVE_VALUE_KEYS[_0x3c9617(0x13b)](_0x22eb14)||isSensitiveKey(_0x4ab266)?REDACTED_VALUE:redactSensitiveValue(_0x14ad98);}return _0x3a9796;}function a175_0x4bdf(_0x21220f,_0x9a3df0){_0x21220f=_0x21220f-0x12f;const _0xd54603=a175_0xd546();let _0x4bdfae=_0xd54603[_0x21220f];return _0x4bdfae;}export function redactCommandArgv(_0x57ef05){const _0x3a757b=a175_0x1d810f,_0x4d44b2=[];let _0x1d9866=![];for(const _0x2dc029 of _0x57ef05){if(_0x1d9866){_0x4d44b2['push'](REDACTED_VALUE),_0x1d9866=![];continue;}const _0x5548ae=_0x2dc029[_0x3a757b(0x130)](/^--([^=]+)(?:=(.*))?$/);if(!_0x5548ae||!isSensitiveFlagName(_0x5548ae[0x1]??'')){_0x4d44b2[_0x3a757b(0x138)](_0x2dc029);continue;}_0x4d44b2['push']('--'+_0x5548ae[0x1]+(_0x5548ae[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x5548ae[0x2]===undefined&&(_0x1d9866=!![]);}return _0x4d44b2;}export{REDACTED_VALUE};
|