@lovrabet/lovrabet-cli 2.3.8-beta.5 → 2.3.8-beta.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/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 +3 -3
- package/skills/lovrabet/SKILL.md +10 -2
- package/skills/lovrabet/guides/development-intent-handoff.md +58 -0
- package/skills/lovrabet.manifest.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a162_0x2793(_0x5da5c3,_0x2ac7eb){_0x5da5c3=_0x5da5c3-0x1e8;const _0x49d774=a162_0x49d7();let _0x2793ab=_0x49d774[_0x5da5c3];return _0x2793ab;}function a162_0x49d7(){const _0x46bdac=['forkedFromSkillId','12SiaeYE','sourceSessionId','path','zipSize','16MBSsyK','example','trim','string','length','201020ufTstM','tags','validation','zipSha256','manifest','5787639RPDwaG','5251392jObhPO','1225973NDIeJP','Runtime\x20Skill\x20is\x20missing\x20skillCode.','readonly','toISOString','210072AKDLIA','isArray','Invalid\x20','description','171145cADsUX','357225lgPBjq','hasUpstreamUpdate','ossPath','utf8','files','map'];a162_0x49d7=function(){return _0x46bdac;};return a162_0x49d7();}(function(_0x86e496,_0x557364){const _0x3786a0=a162_0x2793,_0x3e4f9e=_0x86e496();while(!![]){try{const _0x3b53d7=-parseInt(_0x3786a0(0x1ed))/0x1+parseInt(_0x3786a0(0x1fd))/0x2+-parseInt(_0x3786a0(0x1e8))/0x3*(parseInt(_0x3786a0(0x1f8))/0x4)+-parseInt(_0x3786a0(0x1ec))/0x5+parseInt(_0x3786a0(0x1f4))/0x6*(-parseInt(_0x3786a0(0x204))/0x7)+parseInt(_0x3786a0(0x203))/0x8+parseInt(_0x3786a0(0x202))/0x9;if(_0x3b53d7===_0x557364)break;else _0x3e4f9e['push'](_0x3e4f9e['shift']());}catch(_0x3c7e59){_0x3e4f9e['push'](_0x3e4f9e['shift']());}}}(a162_0x49d7,0x5c541));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';export function buildMetadata(_0x163147,_0x411d2b,_0x5dc34d,_0x4a1100,_0x46c1f0,_0x37c486,_0x320c07){const _0x59ca7b=a162_0x2793,_0x58a426=_0x37c486?normalizeLocalFiles(_0x37c486):[],_0x5019b2=!_0x320c07&&_0x58a426[_0x59ca7b(0x1fc)]>0x0?buildSkillPackage(_0x58a426):undefined,_0x532522=_0x320c07?bufferSha256(_0x320c07):_0x5019b2?.['manifest'][_0x59ca7b(0x200)],_0x253b73=_0x320c07?.[_0x59ca7b(0x1fc)]??_0x5019b2?.[_0x59ca7b(0x201)][_0x59ca7b(0x1f7)],_0x3f8456=_0x58a426[_0x59ca7b(0x1fc)]>0x0?Object['fromEntries'](_0x58a426[_0x59ca7b(0x1f2)](_0x1b233a=>[_0x1b233a[_0x59ca7b(0x1f6)],fileHash(_0x1b233a)])):undefined;return{'schemaVersion':_0x58a426[_0x59ca7b(0x1fc)]>0x0?0x2:0x1,'id':_0x163147['id'],'appCode':_0x5dc34d,'skillCode':requireSkillCode(_0x163147),'skillName':_0x163147['skillName'],'description':_0x163147[_0x59ca7b(0x1eb)],'example':_0x163147[_0x59ca7b(0x1f9)],'scope':_0x411d2b,'readonly':_0x411d2b!=='personal'||_0x163147[_0x59ca7b(0x206)]===!![],'tenantCode':_0x163147['tenantCode'],'userId':_0x163147['userId'],'version':_0x163147['version'],'status':_0x163147['status'],'tags':Array[_0x59ca7b(0x1e9)](_0x163147[_0x59ca7b(0x1fe)])?_0x163147[_0x59ca7b(0x1fe)]:[],'hasUpstreamUpdate':_0x163147[_0x59ca7b(0x1ee)],'forkedFromSkillId':_0x163147[_0x59ca7b(0x1f3)],'forkedFromVersion':_0x163147['forkedFromVersion'],'sourceSessionId':_0x163147[_0x59ca7b(0x1f5)],'contentHash':_0x4a1100,'fileHashes':_0x3f8456,'treeHash':_0x58a426['length']>0x0?fileTreeHash(localFilesToManifestFiles(_0x58a426)):undefined,'ossPath':remoteManifestOssPath(_0x163147[_0x59ca7b(0x1f1)]),'zipSha256':_0x532522,'zipSize':_0x253b73,'files':_0x58a426[_0x59ca7b(0x1fc)]>0x0?_0x58a426[_0x59ca7b(0x1f2)](_0x312d42=>({'path':_0x312d42[_0x59ca7b(0x1f6)],'hash':fileHash(_0x312d42),'size':fileContent(_0x312d42)[_0x59ca7b(0x1fc)]})):undefined,'pulledAt':_0x46c1f0??new Date()[_0x59ca7b(0x207)]()};}export function requireSkillCode(_0x262f9b){const _0x2ea9a8=a162_0x2793,_0x2c13e3=_0x262f9b['skillCode']?.[_0x2ea9a8(0x1fa)]();if(!_0x2c13e3)throw CliErrors[_0x2ea9a8(0x1ff)](_0x2ea9a8(0x205));return _0x2c13e3;}export function readMetadataIfPresent(_0x175b53){const _0x3d82a6=a162_0x2793;if(!existsSync(_0x175b53))return undefined;try{const _0x45d3e2=JSON['parse'](readFileSync(_0x175b53,_0x3d82a6(0x1f0)));return _0x45d3e2;}catch{throw CliErrors[_0x3d82a6(0x1ff)](_0x3d82a6(0x1ea)+METADATA_FILE+':\x20'+_0x175b53);}}function remoteManifestOssPath(_0x218c9b){const _0x2ea69a=a162_0x2793;if(!_0x218c9b||typeof _0x218c9b!=='object'||Array[_0x2ea69a(0x1e9)](_0x218c9b))return undefined;const _0x41aa77=_0x218c9b[_0x2ea69a(0x1ef)];return typeof _0x41aa77===_0x2ea69a(0x1fb)&&_0x41aa77['trim']()?_0x41aa77['trim']():undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a163_0x1683e9=a163_0x59fb;(function(_0x41ff24,_0x2ca689){const _0x44d08d=a163_0x59fb,_0x101a8f=_0x41ff24();while(!![]){try{const _0x155dec=-parseInt(_0x44d08d(0x180))/0x1+-parseInt(_0x44d08d(0x182))/0x2+parseInt(_0x44d08d(0x17a))/0x3*(parseInt(_0x44d08d(0x175))/0x4)+parseInt(_0x44d08d(0x17b))/0x5+-parseInt(_0x44d08d(0x177))/0x6+parseInt(_0x44d08d(0x16b))/0x7*(parseInt(_0x44d08d(0x173))/0x8)+parseInt(_0x44d08d(0x16d))/0x9;if(_0x155dec===_0x2ca689)break;else _0x101a8f['push'](_0x101a8f['shift']());}catch(_0x11ab18){_0x101a8f['push'](_0x101a8f['shift']());}}}(a163_0x55e4,0xe9780));import{existsSync}from'node:fs';import{homedir}from'node:os';function a163_0x55e4(){const _0xa6fa8f=['137016tGdSSr','cacheRoot','trim','skills','workbuddySkillsDir','\x20for\x20local\x20path:\x20','4452376igMHnb','cache','4JwWtaC','path\x20segment','8417700HwfZJG','includes','skillCode','4959645cbtHcz','6851025MTJulj','homeDir','agentsSkillsDir','filter','validation','868809AwhLNx','claudeSkillsDir','734288eRAMiE','7RglFQa','Unsafe\x20'];a163_0x55e4=function(){return _0xa6fa8f;};return a163_0x55e4();}function a163_0x59fb(_0x33f70f,_0x4fdcfe){_0x33f70f=_0x33f70f-0x16b;const _0x55e414=a163_0x55e4();let _0x59fb19=_0x55e414[_0x33f70f];return _0x59fb19;}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(_0xa6fe09={}){const _0x3b251e=a163_0x59fb,_0x25c0dd=_0xa6fe09[_0x3b251e(0x17c)]??homedir(),_0x2ccbc3=resolve(_0x25c0dd,PRODUCT_CONFIG['homeDirName'],_0x3b251e(0x174)),_0x21b06a=trimmedEnv('SKILL_ROOT'),_0x26c8e8=trimmedEnv('CLAUDE_SKILL_ROOT'),_0x4ffd0b=resolve(_0x25c0dd,'.workbuddy'),_0x1973f2=_0xa6fe09[_0x3b251e(0x171)]??(existsSync(_0x4ffd0b)?resolve(_0x4ffd0b,'skills'):undefined);return{'homeDir':_0x25c0dd,'cacheRoot':_0x2ccbc3,'managedRoot':resolve(_0x25c0dd,PRODUCT_CONFIG['homeDirName']),'agentsSkillsDir':_0xa6fe09['agentsSkillsDir']??_0x21b06a??resolve(_0x25c0dd,'.agents',_0x3b251e(0x170)),'claudeSkillsDir':_0xa6fe09[_0x3b251e(0x181)]??_0x26c8e8??resolve(_0x25c0dd,'.claude',_0x3b251e(0x170)),'workbuddySkillsDir':_0x1973f2};}export function runtimeAgentSkillRoots(_0x2e1955){const _0x10c0e6=a163_0x59fb;return[_0x2e1955[_0x10c0e6(0x17d)],_0x2e1955[_0x10c0e6(0x181)],_0x2e1955['workbuddySkillsDir']][_0x10c0e6(0x17e)](_0x2aa641=>Boolean(_0x2aa641));}export function getRuntimeSkillCacheRoot(_0x54097a,_0x3f1eaa,_0x4e47d1={}){const _0xf4766c=a163_0x59fb,_0x3a9cc3=resolveSkillSyncPaths(_0x4e47d1);return resolve(_0x3a9cc3[_0xf4766c(0x16e)],_0x54097a,fingerprintAccessKey(_0x3f1eaa),'skills');}export function getRuntimeSkillDir(_0x58b2e6,_0x27066e,_0x38800e,_0x271f30,_0x22f32e,_0x2c5bac={}){const _0x149779=a163_0x59fb;return resolve(getRuntimeSkillCacheRoot(_0x58b2e6,_0x27066e,_0x2c5bac),safePathSegment(_0x38800e,'appCode'),_0x271f30,safePathSegment(_0x22f32e,_0x149779(0x179)));}export function safePathSegment(_0x4a83a7,_0x51fc48=a163_0x1683e9(0x176)){const _0x39f741=a163_0x1683e9;if(!_0x4a83a7||_0x4a83a7[_0x39f741(0x178)]('/')||_0x4a83a7[_0x39f741(0x178)]('\x5c')||_0x4a83a7[_0x39f741(0x178)]('..'))throw CliErrors[_0x39f741(0x17f)](_0x39f741(0x16c)+_0x51fc48+_0x39f741(0x172)+_0x4a83a7);return _0x4a83a7;}function trimmedEnv(_0x2b70ef){const _0x1141d5=a163_0x1683e9,_0x1e150e=productEnv(_0x2b70ef)?.[_0x1141d5(0x16f)]();return _0x1e150e?_0x1e150e:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a164_0x5820(_0x11eb3c,_0x43e6e1){_0x11eb3c=_0x11eb3c-0x84;const _0xd7d5d0=a164_0xd7d5();let _0x582053=_0xd7d5d0[_0x11eb3c];return _0x582053;}(function(_0x20ea79,_0x903aa8){const _0x45056e=a164_0x5820,_0x4ebeb9=_0x20ea79();while(!![]){try{const _0x50893c=parseInt(_0x45056e(0xbf))/0x1*(parseInt(_0x45056e(0x8d))/0x2)+parseInt(_0x45056e(0xa5))/0x3*(parseInt(_0x45056e(0x94))/0x4)+parseInt(_0x45056e(0xc6))/0x5*(parseInt(_0x45056e(0xc3))/0x6)+-parseInt(_0x45056e(0xc1))/0x7+parseInt(_0x45056e(0xc9))/0x8*(parseInt(_0x45056e(0xca))/0x9)+-parseInt(_0x45056e(0xa9))/0xa*(-parseInt(_0x45056e(0xa0))/0xb)+-parseInt(_0x45056e(0xc4))/0xc;if(_0x50893c===_0x903aa8)break;else _0x4ebeb9['push'](_0x4ebeb9['shift']());}catch(_0x6f1202){_0x4ebeb9['push'](_0x4ebeb9['shift']());}}}(a164_0xd7d5,0x4da30));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a164_0xa56a98}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(_0x25d548,_0x5d6a0a,_0x494a52={}){const _0x1afefc=a164_0x5820,_0x51d8a9=resolvePushDirectoryRoot(_0x25d548),_0x5be5fc=readPushMetadataIfPresent(resolve(_0x51d8a9,METADATA_FILE),{'ignoreInvalidMetadata':_0x494a52[_0x1afefc(0x8a)]});if(_0x5be5fc?.[_0x1afefc(0xb8)]&&_0x5be5fc[_0x1afefc(0xb8)]!==_0x5d6a0a&&!_0x494a52[_0x1afefc(0x9e)]&&!_0x494a52[_0x1afefc(0xc2)])throw CliErrors[_0x1afefc(0x8c)](_0x1afefc(0x84)+_0x5be5fc['appCode']+_0x1afefc(0x90)+_0x5d6a0a+'\x22.');const _0x38ce25=resolvePushSkillCode(_0x51d8a9,_0x5d6a0a,_0x5be5fc,_0x494a52);if(!_0x38ce25)throw CliErrors[_0x1afefc(0x8c)](_0x1afefc(0xbe)+SKILL_FILE+',\x20'+METADATA_FILE+_0x1afefc(0x9a));return{'dir':_0x51d8a9,'skillCode':_0x38ce25,'metadata':_0x5be5fc};}export function readPushDirectory(_0x30841e,_0xba580b,_0x50cce2={}){const _0x293e36=a164_0x5820,_0x1247e8=resolvePushDirectoryIdentity(_0x30841e,_0xba580b,_0x50cce2),_0x1a0ef6=_0x1247e8['dir'],_0x349850=resolve(_0x1a0ef6,SKILL_FILE);if(!existsSync(_0x349850)||!lstatSync(_0x349850)[_0x293e36(0xb7)]())throw CliErrors[_0x293e36(0x8c)](_0x293e36(0x92)+SKILL_FILE+':\x20'+_0x349850);const _0xe852fd=_0x1247e8[_0x293e36(0x8b)],_0x1e81bc=_0x50cce2[_0x293e36(0xb2)]??'personal';if(!_0x50cce2[_0x293e36(0xa8)]&&_0xe852fd?.[_0x293e36(0xc0)]===_0x293e36(0xcb))throw CliErrors[_0x293e36(0x8c)](_0x293e36(0xc8)+METADATA_FILE+_0x293e36(0xaa)+_0xe852fd[_0x293e36(0xc0)]+'\x22.');if(!_0x50cce2['ignoreMetadataScope']&&_0x1e81bc===_0x293e36(0xa7)&&_0xe852fd?.[_0x293e36(0xc0)]&&_0xe852fd['scope']!==_0x293e36(0xa7))throw CliErrors[_0x293e36(0x8c)](_0x293e36(0xad)+METADATA_FILE+_0x293e36(0xaa)+_0xe852fd[_0x293e36(0xc0)]+'\x22.',_0x293e36(0xa1)+_0x1a0ef6+_0x293e36(0xa4));const _0x53c9e9=scanSkillDirectory(_0x1a0ef6,{'excludedFilePaths':_0x50cce2[_0x293e36(0x88)]}),_0x26833c=buildSkillPackage(_0x53c9e9),_0x3e146e=readFileSync(_0x349850,_0x293e36(0x97)),_0x4207ae=_0x1247e8[_0x293e36(0xaf)],_0x5dc263=_0x50cce2[_0x293e36(0x86)]?undefined:_0xe852fd,_0x876bbd=readSkillDisplayName(_0x3e146e);return{'skillCode':_0x4207ae,'metadata':_0xe852fd,'frontmatterDisplayName':_0x876bbd,'input':{'skillCode':_0x4207ae,'skillName':_0x876bbd??_0x5dc263?.[_0x293e36(0x93)],'description':_0x5dc263?.['description'],'content':_0x3e146e,'files':_0x26833c[_0x293e36(0xb0)],'packageBase64':_0x26833c['packageBase64'],'tags':_0x5dc263?.['tags'],'version':_0x5dc263?.[_0x293e36(0xba)],'sourceSessionId':_0x5dc263?.[_0x293e36(0xb4)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x418baa,_0x11394b,_0x42516b,_0x96515={}){const _0x313b41=a164_0x5820,_0x1b14a2=resolvePushDirectoryRoot(_0x418baa),_0x145aee=readPushMetadataIfPresent(resolve(_0x1b14a2,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x3ad245=requireRemoteScope(_0x11394b),_0x374daa=readLocalSkillContent(_0x1b14a2),_0x5de29f={..._0x11394b,'appCode':_0x11394b['appCode']??_0x42516b,'skillName':_0x11394b['skillName']??_0x145aee?.[_0x313b41(0x93)],'description':_0x11394b[_0x313b41(0xab)]??_0x145aee?.[_0x313b41(0xab)],'example':_0x11394b[_0x313b41(0x98)]??_0x145aee?.[_0x313b41(0x98)],'tags':Array[_0x313b41(0xa3)](_0x11394b[_0x313b41(0xb5)])?_0x11394b[_0x313b41(0xb5)]:_0x145aee?.[_0x313b41(0xb5)],'sourceSessionId':_0x11394b[_0x313b41(0xb4)]??_0x145aee?.[_0x313b41(0xb4)],'content':_0x11394b[_0x313b41(0x99)]??_0x374daa},_0x2bf71e=buildMetadata(_0x5de29f,_0x3ad245,_0x42516b,contentHash(_0x374daa),_0x96515[_0x313b41(0x96)]);writeJsonAtomic(resolve(_0x1b14a2,METADATA_FILE),_0x2bf71e);}export function recordPushedRuntimeSkill(_0x2f3194,_0x4858c6,_0x291dec,_0x50da2e={}){const _0x37acb6=a164_0x5820,_0x4355d2=resolvePushDirectoryRoot(_0x2f3194),_0x3c1ea2=scanSkillDirectory(_0x4355d2),_0x3e6791=_0x3c1ea2[_0x37acb6(0x8f)](_0x5c1512=>_0x5c1512[_0x37acb6(0x91)]===SKILL_FILE),_0x4cd8b1=_0x3e6791?fileText(_0x3e6791):'',_0x5f561c=tryNormalizePackageManifest(_0x4858c6[_0x37acb6(0x9f)]),_0x22c35a={..._0x4858c6,'content':_0x4858c6['content']??_0x4cd8b1,'files':_0x5f561c},_0x3b6d27=_0x5f561c?normalizeLocalFiles(_0x3c1ea2)[_0x37acb6(0xb6)](_0x1974c0=>_0x5f561c[_0x37acb6(0x9f)][_0x37acb6(0x9c)](_0x50d2da=>_0x50d2da[_0x37acb6(0x91)]===_0x1974c0[_0x37acb6(0x91)])):undefined,_0x3f109b=buildMetadata(_0x22c35a,_0x50da2e[_0x37acb6(0xc0)]??_0x37acb6(0xa7),_0x291dec,contentHash(_0x22c35a['content']??''),_0x50da2e[_0x37acb6(0xa2)],_0x3b6d27);writeJsonAtomic(resolve(_0x4355d2,METADATA_FILE),_0x3f109b);}function a164_0xd7d5(){const _0x18b2d6=['Invalid\x20','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','replace','skillCode','manifest','(unknown)','targetScope','Remote\x20Skill\x20','sourceSessionId','tags','filter','isFile','appCode','string','version','\x20name\x20for\x20SkillHub\x20slug\x20generation.','isSymbolicLink','isDirectory','Unable\x20to\x20resolve\x20skillCode\x20from\x20','26843RNlJel','scope','4304503mrkeiU','ignoreMetadataAppCodeMismatch','9630bOjLAE','17086584cIcQHr','name','1910IYMxpj','length','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','2632VxNAox','10566aDGPMe','builtin','Skill\x20metadata\x20appCode\x20\x22','match','ignoreMetadataForPayload','ignoreMetadataSkillCode','excludedFilePaths','startsWith','ignoreInvalidMetadata','metadata','validation','46MKkXZb','Skill\x20directory\x20not\x20found:\x20','find','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','path','Missing\x20','skillName','2732pZSIaQ','object','refreshedAt','utf8','example','content',',\x20or\x20directory\x20name.','slice','some','\x20has\x20unsupported\x20scope\x20\x22','allowAppCodeRetarget','files','511203VRCMEO','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','pushedAt','isArray','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','597GwzLjh','trim','personal','ignoreMetadataScope','130SwoRAG','\x20has\x20scope=\x22','description'];a164_0xd7d5=function(){return _0x18b2d6;};return a164_0xd7d5();}export function deriveSkillCodeFromDirectory(_0x2a0238,_0x4fbf50){const _0x1c807a=a164_0x5820,_0x5ef44d=basename(resolve(_0x2a0238)),_0x1aa38f=_0x4fbf50+'--';return _0x5ef44d[_0x1c807a(0x89)](_0x1aa38f)?_0x5ef44d[_0x1c807a(0x9b)](_0x1aa38f[_0x1c807a(0xc7)]):_0x5ef44d;}function resolvePushSkillCode(_0x13ad97,_0x1324c0,_0x2e9e93,_0x457b65){const _0xc4936e=a164_0x5820,_0x1b5fd1=deriveSkillCodeFromSkillFile(_0x13ad97)||deriveSkillCodeFromDirectory(_0x13ad97,_0x1324c0);if(_0x457b65[_0xc4936e(0x87)])return _0x1b5fd1;return _0x2e9e93?.[_0xc4936e(0xaf)]?.[_0xc4936e(0xa6)]()||_0x1b5fd1;}function deriveSkillCodeFromSkillFile(_0x59b662){const _0x3f80e3=a164_0x5820,_0x3ff110=resolve(_0x59b662,SKILL_FILE);if(!existsSync(_0x3ff110)||!lstatSync(_0x3ff110)['isFile']())return undefined;const _0x18ee0e=readFileSync(_0x3ff110,_0x3f80e3(0x97)),_0x56edbc=_0x18ee0e[_0x3f80e3(0x85)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x56edbc)return undefined;const _0x338d17=parseFrontmatterObject(_0x56edbc[0x1]??''),_0x5a17d9=scalarToString(_0x338d17?.[_0x3f80e3(0xc5)]);return _0x5a17d9?slugifySkillName(_0x5a17d9):undefined;}function readSkillDisplayName(_0x56da54){const _0x549db3=_0x56da54['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x549db3)return undefined;const _0x3ed75b=parseFrontmatterObject(_0x549db3[0x1]??'');return scalarToString(_0x3ed75b?.['displayName']);}function slugifySkillName(_0xe6b11d){const _0x5a3ea2=a164_0x5820,_0x563fe6=_0xe6b11d[_0x5a3ea2(0xa6)]()['toLowerCase']()[_0x5a3ea2(0xae)](/[^\p{L}\p{N}\p{So}]+/gu,'-')['replace'](/^-+/,'')['replace'](/-+$/,'')[_0x5a3ea2(0xae)](/-{2,}/g,'-');if(!_0x563fe6)throw CliErrors[_0x5a3ea2(0x8c)](_0x5a3ea2(0xac)+SKILL_FILE+_0x5a3ea2(0xbb));return _0x563fe6;}function parseFrontmatterObject(_0x42b8b5){const _0x2569f8=a164_0x5820;try{const _0x487d28=a164_0xa56a98(_0x42b8b5);return _0x487d28&&typeof _0x487d28===_0x2569f8(0x95)&&!Array[_0x2569f8(0xa3)](_0x487d28)?_0x487d28:undefined;}catch{return undefined;}}function scalarToString(_0x1123b6){const _0x80b71e=a164_0x5820;if(typeof _0x1123b6===_0x80b71e(0xb9))return _0x1123b6[_0x80b71e(0xa6)]();if(typeof _0x1123b6==='number'||typeof _0x1123b6==='boolean')return String(_0x1123b6);return undefined;}function resolvePushDirectoryRoot(_0x5555c0){const _0x3def5c=a164_0x5820,_0x1e01f3=resolve(_0x5555c0);if(!existsSync(_0x1e01f3))throw CliErrors[_0x3def5c(0x8c)](_0x3def5c(0x8e)+_0x5555c0);const _0x1b8cd4=lstatSync(_0x1e01f3);if(_0x1b8cd4[_0x3def5c(0xbd)]())return _0x1e01f3;if(_0x1b8cd4[_0x3def5c(0xbc)]()){const _0x16b7b2=realpathSync(_0x1e01f3);if(lstatSync(_0x16b7b2)[_0x3def5c(0xbd)]())return _0x16b7b2;}throw CliErrors[_0x3def5c(0x8c)](_0x3def5c(0x8e)+_0x5555c0);}function requireRemoteScope(_0xd2b41c){const _0x5c334b=a164_0x5820;if(_0xd2b41c['scope']===_0x5c334b(0xa7)||_0xd2b41c[_0x5c334b(0xc0)]==='company'||_0xd2b41c[_0x5c334b(0xc0)]===_0x5c334b(0xcb))return _0xd2b41c['scope'];throw CliErrors[_0x5c334b(0x8c)](_0x5c334b(0xb3)+(_0xd2b41c['skillCode']||_0x5c334b(0xb1))+_0x5c334b(0x9d)+(_0xd2b41c[_0x5c334b(0xc0)]??'unknown')+'\x22.');}function readLocalSkillContent(_0x46d4bd){const _0x29f3eb=a164_0x5820,_0x5027a9=resolve(_0x46d4bd,SKILL_FILE);return existsSync(_0x5027a9)&&lstatSync(_0x5027a9)[_0x29f3eb(0xb7)]()?readFileSync(_0x5027a9,'utf8'):'';}function readPushMetadataIfPresent(_0x58e7e8,_0xb91fb0={}){const _0x58cf45=a164_0x5820;try{return readMetadataIfPresent(_0x58e7e8);}catch(_0x5dcece){if(_0xb91fb0[_0x58cf45(0x8a)])return undefined;throw _0x5dcece;}}
|
|
1
|
+
(function(_0x19e988,_0x3d23ae){const _0x49d7c7=a164_0x368b,_0x5101fc=_0x19e988();while(!![]){try{const _0x2f2328=parseInt(_0x49d7c7(0xfa))/0x1+parseInt(_0x49d7c7(0xe5))/0x2*(-parseInt(_0x49d7c7(0xcb))/0x3)+parseInt(_0x49d7c7(0xfb))/0x4+-parseInt(_0x49d7c7(0xca))/0x5*(parseInt(_0x49d7c7(0xd4))/0x6)+parseInt(_0x49d7c7(0xd7))/0x7*(parseInt(_0x49d7c7(0xe2))/0x8)+-parseInt(_0x49d7c7(0xc4))/0x9*(parseInt(_0x49d7c7(0xff))/0xa)+parseInt(_0x49d7c7(0xbd))/0xb;if(_0x2f2328===_0x3d23ae)break;else _0x5101fc['push'](_0x5101fc['shift']());}catch(_0x18ac41){_0x5101fc['push'](_0x5101fc['shift']());}}}(a164_0x4959,0xdabfb));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a164_0x33249c}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';function a164_0x4959(){const _0x142bc7=['354897qeEEom','utf8','some','Unable\x20to\x20resolve\x20skillCode\x20from\x20','company','example','Remote\x20Skill\x20',',\x20or\x20directory\x20name.','trim','6402tTLhJV','Skill\x20directory\x20not\x20found:\x20','slice','7JPSqLT','Invalid\x20','length','ignoreMetadataForPayload','metadata','description','isDirectory','ignoreMetadataScope','match','\x20has\x20unsupported\x20scope\x20\x22','filter','3468464zKpEhI','ignoreMetadataAppCodeMismatch','toLowerCase','8mqPuSC','tags','(unknown)','pushedAt','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','\x20has\x20scope=\x22','appCode','ignoreMetadataSkillCode','isArray','version','number','validation','skillCode','isFile','sourceSessionId','scope','allowAppCodeRetarget','ignoreInvalidMetadata','\x20name\x20for\x20SkillHub\x20slug\x20generation.','isSymbolicLink','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','735956fJndLq','5971504gcEUBS','replace','targetScope','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','1090kGBmGF','builtin','path','8258393PHlPAI','Skill\x20metadata\x20appCode\x20\x22','string','skillName','files','personal','displayName','110709YQNaum','content','boolean','packageBase64','name','dir','3295ClJAYq'];a164_0x4959=function(){return _0x142bc7;};return a164_0x4959();}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(_0x1b5439,_0x1a2b85,_0x4fd2be={}){const _0x4a4aa6=a164_0x368b,_0x383349=resolvePushDirectoryRoot(_0x1b5439),_0xca9b59=readPushMetadataIfPresent(resolve(_0x383349,METADATA_FILE),{'ignoreInvalidMetadata':_0x4fd2be[_0x4a4aa6(0xf6)]});if(_0xca9b59?.[_0x4a4aa6(0xeb)]&&_0xca9b59[_0x4a4aa6(0xeb)]!==_0x1a2b85&&!_0x4fd2be[_0x4a4aa6(0xf5)]&&!_0x4fd2be[_0x4a4aa6(0xe3)])throw CliErrors[_0x4a4aa6(0xf0)](_0x4a4aa6(0xbe)+_0xca9b59['appCode']+_0x4a4aa6(0xfe)+_0x1a2b85+'\x22.');const _0x2a53d8=resolvePushSkillCode(_0x383349,_0x1a2b85,_0xca9b59,_0x4fd2be);if(!_0x2a53d8)throw CliErrors['validation'](_0x4a4aa6(0xce)+SKILL_FILE+',\x20'+METADATA_FILE+_0x4a4aa6(0xd2));return{'dir':_0x383349,'skillCode':_0x2a53d8,'metadata':_0xca9b59};}export function readPushDirectory(_0x368de2,_0xd759d8,_0xb65e2f={}){const _0x3e9fcc=a164_0x368b,_0x1125d6=resolvePushDirectoryIdentity(_0x368de2,_0xd759d8,_0xb65e2f),_0x1ba204=_0x1125d6[_0x3e9fcc(0xc9)],_0x4485f9=resolve(_0x1ba204,SKILL_FILE);if(!existsSync(_0x4485f9)||!lstatSync(_0x4485f9)[_0x3e9fcc(0xf2)]())throw CliErrors[_0x3e9fcc(0xf0)]('Missing\x20'+SKILL_FILE+':\x20'+_0x4485f9);const _0x2720d0=_0x1125d6[_0x3e9fcc(0xdb)],_0xcff4d6=_0xb65e2f[_0x3e9fcc(0xfd)]??_0x3e9fcc(0xc2);if(!_0xb65e2f[_0x3e9fcc(0xde)]&&_0x2720d0?.[_0x3e9fcc(0xf4)]===_0x3e9fcc(0x100))throw CliErrors[_0x3e9fcc(0xf0)](_0x3e9fcc(0xf9)+METADATA_FILE+_0x3e9fcc(0xea)+_0x2720d0['scope']+'\x22.');if(!_0xb65e2f[_0x3e9fcc(0xde)]&&_0xcff4d6==='personal'&&_0x2720d0?.[_0x3e9fcc(0xf4)]&&_0x2720d0[_0x3e9fcc(0xf4)]!==_0x3e9fcc(0xc2))throw CliErrors['validation'](_0x3e9fcc(0xe9)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x2720d0[_0x3e9fcc(0xf4)]+'\x22.','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20'+_0x1ba204+'\x20to\x20submit\x20company\x20Skills\x20for\x20review.');const _0x514af2=scanSkillDirectory(_0x1ba204,{'excludedFilePaths':_0xb65e2f['excludedFilePaths']}),_0x1d61ce=buildSkillPackage(_0x514af2),_0x464d43=readFileSync(_0x4485f9,_0x3e9fcc(0xcc)),_0x3cc8f0=_0x1125d6[_0x3e9fcc(0xf1)],_0x1e6aa0=_0xb65e2f[_0x3e9fcc(0xda)]?undefined:_0x2720d0,_0x53f405=readSkillDisplayName(_0x464d43);return{'skillCode':_0x3cc8f0,'metadata':_0x2720d0,'frontmatterDisplayName':_0x53f405,'input':{'skillCode':_0x3cc8f0,'skillName':_0x53f405??_0x1e6aa0?.['skillName'],'description':_0x1e6aa0?.['description'],'content':_0x464d43,'files':_0x1d61ce['manifest'],'packageBase64':_0x1d61ce[_0x3e9fcc(0xc7)],'tags':_0x1e6aa0?.[_0x3e9fcc(0xe6)],'version':_0x1e6aa0?.[_0x3e9fcc(0xee)],'sourceSessionId':_0x1e6aa0?.[_0x3e9fcc(0xf3)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x21dff1,_0x369ee8,_0x1969d6,_0x5a7c36={}){const _0x1db6d7=a164_0x368b,_0x4683f4=resolvePushDirectoryRoot(_0x21dff1),_0x241c9d=readPushMetadataIfPresent(resolve(_0x4683f4,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x29614a=requireRemoteScope(_0x369ee8),_0x1cf5df=readLocalSkillContent(_0x4683f4),_0x48f290={..._0x369ee8,'appCode':_0x369ee8[_0x1db6d7(0xeb)]??_0x1969d6,'skillName':_0x369ee8[_0x1db6d7(0xc0)]??_0x241c9d?.[_0x1db6d7(0xc0)],'description':_0x369ee8['description']??_0x241c9d?.[_0x1db6d7(0xdc)],'example':_0x369ee8[_0x1db6d7(0xd0)]??_0x241c9d?.[_0x1db6d7(0xd0)],'tags':Array[_0x1db6d7(0xed)](_0x369ee8[_0x1db6d7(0xe6)])?_0x369ee8[_0x1db6d7(0xe6)]:_0x241c9d?.[_0x1db6d7(0xe6)],'sourceSessionId':_0x369ee8[_0x1db6d7(0xf3)]??_0x241c9d?.[_0x1db6d7(0xf3)],'content':_0x369ee8[_0x1db6d7(0xc5)]??_0x1cf5df},_0x341515=buildMetadata(_0x48f290,_0x29614a,_0x1969d6,contentHash(_0x1cf5df),_0x5a7c36['refreshedAt']);writeJsonAtomic(resolve(_0x4683f4,METADATA_FILE),_0x341515);}export function recordPushedRuntimeSkill(_0x5a7fd4,_0x1838e2,_0x453b87,_0x4099ce={}){const _0x5d3f72=a164_0x368b,_0x3e2c03=resolvePushDirectoryRoot(_0x5a7fd4),_0x4517b7=scanSkillDirectory(_0x3e2c03),_0x572b55=_0x4517b7['find'](_0xed307c=>_0xed307c[_0x5d3f72(0xbc)]===SKILL_FILE),_0x519873=_0x572b55?fileText(_0x572b55):'',_0x815a31=tryNormalizePackageManifest(_0x1838e2[_0x5d3f72(0xc1)]),_0x45e0aa={..._0x1838e2,'content':_0x1838e2[_0x5d3f72(0xc5)]??_0x519873,'files':_0x815a31},_0x159558=_0x815a31?normalizeLocalFiles(_0x4517b7)[_0x5d3f72(0xe1)](_0x321d7c=>_0x815a31[_0x5d3f72(0xc1)][_0x5d3f72(0xcd)](_0x21683d=>_0x21683d[_0x5d3f72(0xbc)]===_0x321d7c['path'])):undefined,_0x51f671=buildMetadata(_0x45e0aa,_0x4099ce[_0x5d3f72(0xf4)]??_0x5d3f72(0xc2),_0x453b87,contentHash(_0x45e0aa[_0x5d3f72(0xc5)]??''),_0x4099ce[_0x5d3f72(0xe8)],_0x159558);writeJsonAtomic(resolve(_0x3e2c03,METADATA_FILE),_0x51f671);}export function deriveSkillCodeFromDirectory(_0x1f5d20,_0x2ac94e){const _0x182b86=a164_0x368b,_0x2a98bc=basename(resolve(_0x1f5d20)),_0x247590=_0x2ac94e+'--';return _0x2a98bc['startsWith'](_0x247590)?_0x2a98bc[_0x182b86(0xd6)](_0x247590[_0x182b86(0xd9)]):_0x2a98bc;}function resolvePushSkillCode(_0x5c3272,_0x55a409,_0x425b86,_0x2cc020){const _0x525166=a164_0x368b,_0x115970=deriveSkillCodeFromSkillFile(_0x5c3272)||deriveSkillCodeFromDirectory(_0x5c3272,_0x55a409);if(_0x2cc020[_0x525166(0xec)])return _0x115970;return _0x425b86?.['skillCode']?.[_0x525166(0xd3)]()||_0x115970;}function deriveSkillCodeFromSkillFile(_0x666db8){const _0x201ebc=a164_0x368b,_0xd966c3=resolve(_0x666db8,SKILL_FILE);if(!existsSync(_0xd966c3)||!lstatSync(_0xd966c3)[_0x201ebc(0xf2)]())return undefined;const _0x2be1f2=readFileSync(_0xd966c3,_0x201ebc(0xcc)),_0x4b2552=_0x2be1f2[_0x201ebc(0xdf)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x4b2552)return undefined;const _0xdac174=parseFrontmatterObject(_0x4b2552[0x1]??''),_0x58ab9d=scalarToString(_0xdac174?.[_0x201ebc(0xc8)]);return _0x58ab9d?slugifySkillName(_0x58ab9d):undefined;}function readSkillDisplayName(_0x30bd3f){const _0x33816c=a164_0x368b,_0x35f0e5=_0x30bd3f[_0x33816c(0xdf)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x35f0e5)return undefined;const _0x4db860=parseFrontmatterObject(_0x35f0e5[0x1]??'');return scalarToString(_0x4db860?.[_0x33816c(0xc3)]);}function slugifySkillName(_0x373704){const _0x352c8f=a164_0x368b,_0x29d530=_0x373704[_0x352c8f(0xd3)]()[_0x352c8f(0xe4)]()[_0x352c8f(0xfc)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x352c8f(0xfc)](/^-+/,'')[_0x352c8f(0xfc)](/-+$/,'')[_0x352c8f(0xfc)](/-{2,}/g,'-');if(!_0x29d530)throw CliErrors[_0x352c8f(0xf0)](_0x352c8f(0xd8)+SKILL_FILE+_0x352c8f(0xf7));return _0x29d530;}function parseFrontmatterObject(_0x1d16ed){const _0x3b1dc5=a164_0x368b;try{const _0x33846c=a164_0x33249c(_0x1d16ed);return _0x33846c&&typeof _0x33846c==='object'&&!Array[_0x3b1dc5(0xed)](_0x33846c)?_0x33846c:undefined;}catch{return undefined;}}function scalarToString(_0x3ac17e){const _0x346d00=a164_0x368b;if(typeof _0x3ac17e===_0x346d00(0xbf))return _0x3ac17e[_0x346d00(0xd3)]();if(typeof _0x3ac17e===_0x346d00(0xef)||typeof _0x3ac17e===_0x346d00(0xc6))return String(_0x3ac17e);return undefined;}function resolvePushDirectoryRoot(_0x4a1a22){const _0x459173=a164_0x368b,_0x100c5c=resolve(_0x4a1a22);if(!existsSync(_0x100c5c))throw CliErrors['validation'](_0x459173(0xd5)+_0x4a1a22);const _0x37bf6d=lstatSync(_0x100c5c);if(_0x37bf6d[_0x459173(0xdd)]())return _0x100c5c;if(_0x37bf6d[_0x459173(0xf8)]()){const _0x1067ad=realpathSync(_0x100c5c);if(lstatSync(_0x1067ad)['isDirectory']())return _0x1067ad;}throw CliErrors[_0x459173(0xf0)](_0x459173(0xd5)+_0x4a1a22);}function requireRemoteScope(_0x2ac54f){const _0xb33b12=a164_0x368b;if(_0x2ac54f[_0xb33b12(0xf4)]==='personal'||_0x2ac54f['scope']===_0xb33b12(0xcf)||_0x2ac54f[_0xb33b12(0xf4)]===_0xb33b12(0x100))return _0x2ac54f[_0xb33b12(0xf4)];throw CliErrors[_0xb33b12(0xf0)](_0xb33b12(0xd1)+(_0x2ac54f[_0xb33b12(0xf1)]||_0xb33b12(0xe7))+_0xb33b12(0xe0)+(_0x2ac54f[_0xb33b12(0xf4)]??'unknown')+'\x22.');}function a164_0x368b(_0x247d54,_0x366e56){_0x247d54=_0x247d54-0xbc;const _0x495939=a164_0x4959();let _0x368b24=_0x495939[_0x247d54];return _0x368b24;}function readLocalSkillContent(_0x458724){const _0x378bc5=a164_0x368b,_0x31ed7c=resolve(_0x458724,SKILL_FILE);return existsSync(_0x31ed7c)&&lstatSync(_0x31ed7c)[_0x378bc5(0xf2)]()?readFileSync(_0x31ed7c,_0x378bc5(0xcc)):'';}function readPushMetadataIfPresent(_0xaff47d,_0x58ad55={}){const _0x5ccfc7=a164_0x368b;try{return readMetadataIfPresent(_0xaff47d);}catch(_0x107200){if(_0x58ad55[_0x5ccfc7(0xf6)])return undefined;throw _0x107200;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a165_0x4760(_0x59d9a9,_0x3ac042){_0x59d9a9=_0x59d9a9-0x10a;const _0x9a57e2=a165_0x9a57();let _0x4760fc=_0x9a57e2[_0x59d9a9];return _0x4760fc;}(function(_0x3e0141,_0x2a88d2){const _0xf4e76c=a165_0x4760,_0x41a81e=_0x3e0141();while(!![]){try{const _0x5bd527=parseInt(_0xf4e76c(0x11a))/0x1*(-parseInt(_0xf4e76c(0x11b))/0x2)+parseInt(_0xf4e76c(0x10f))/0x3*(-parseInt(_0xf4e76c(0x112))/0x4)+-parseInt(_0xf4e76c(0x118))/0x5*(-parseInt(_0xf4e76c(0x10a))/0x6)+parseInt(_0xf4e76c(0x111))/0x7*(parseInt(_0xf4e76c(0x10d))/0x8)+parseInt(_0xf4e76c(0x116))/0x9*(parseInt(_0xf4e76c(0x10c))/0xa)+-parseInt(_0xf4e76c(0x110))/0xb*(parseInt(_0xf4e76c(0x10b))/0xc)+parseInt(_0xf4e76c(0x114))/0xd;if(_0x5bd527===_0x2a88d2)break;else _0x41a81e['push'](_0x41a81e['shift']());}catch(_0x1cf04f){_0x41a81e['push'](_0x41a81e['shift']());}}}(a165_0x9a57,0x6f479));function a165_0x9a57(){const _0x1614a4=['1358502OtqWkw','5220kXrXac','3930enltCt','8456TpasvZ','Unsupported\x20runtime\x20Skill\x20scope:\x20','381TrCptY','16148HegZIC','7oTguXv','5932oToTmv','personal','14152879QmFfCM','builtin','2547iCmnhR','push','10VIbnuK','company','1uUedlF','742142NPQqXQ'];a165_0x9a57=function(){return _0x1614a4;};return a165_0x9a57();}import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x2ae6be){const _0x4fa79f=a165_0x4760,_0x1c97bc=_0x2ae6be&&_0x2ae6be['length']>0x0?_0x2ae6be:['personal',_0x4fa79f(0x119),'builtin'],_0x45e244=[];for(const _0x11d82f of _0x1c97bc){if(!isRuntimeSkillScope(_0x11d82f))throw CliErrors['validation'](_0x4fa79f(0x10e)+_0x11d82f);!_0x45e244['includes'](_0x11d82f)&&_0x45e244[_0x4fa79f(0x117)](_0x11d82f);}return _0x45e244;}export function isRuntimeSkillScope(_0x1c1adb){const _0x586b52=a165_0x4760;return _0x1c1adb===_0x586b52(0x113)||_0x1c1adb===_0x586b52(0x119)||_0x1c1adb===_0x586b52(0x115);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a167_0x553794=a167_0x20bb;(function(_0x1a4d82,_0x29a43c){const _0x459839=a167_0x20bb,_0x3d8f12=_0x1a4d82();while(!![]){try{const _0x10421e=-parseInt(_0x459839(0x99))/0x1+parseInt(_0x459839(0x98))/0x2*(-parseInt(_0x459839(0xa1))/0x3)+parseInt(_0x459839(0x97))/0x4*(-parseInt(_0x459839(0x9d))/0x5)+-parseInt(_0x459839(0x9f))/0x6+-parseInt(_0x459839(0x96))/0x7+-parseInt(_0x459839(0x9a))/0x8*(-parseInt(_0x459839(0x95))/0x9)+-parseInt(_0x459839(0xa3))/0xa*(-parseInt(_0x459839(0x92))/0xb);if(_0x10421e===_0x29a43c)break;else _0x3d8f12['push'](_0x3d8f12['shift']());}catch(_0x5cee8d){_0x3d8f12['push'](_0x3d8f12['shift']());}}}(a167_0x5030,0x79f3b));function a167_0x5030(){const _0x51e7c6=['object','227682WDNZgF','1980-01-01T00:00:00.000Z','3CyLGNG','code','134770bJfcrb','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','path','entries','name','1397OFAtmY','validation_error','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','102447katPWz','3832290vWzyvq','119596CyIWjW','1410876PZkGBY','198353eKLuXQ','552mXlcCx','validation','from','85yzJEEE'];a167_0x5030=function(){return _0x51e7c6;};return a167_0x5030();}import{unzipSync,zipSync}from'fflate';function a167_0x20bb(_0x5afe03,_0x5e3684){_0x5afe03=_0x5afe03-0x8e;const _0x5030c=a167_0x5030();let _0x20bb88=_0x5030c[_0x5afe03];return _0x20bb88;}import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a167_0x553794(0xa0));export function createDeterministicZipPackage(_0x971680){const _0x185ced=a167_0x553794,_0xc3dc14={};for(const _0x462bc3 of normalizeLocalFiles(_0x971680)){_0xc3dc14[_0x462bc3[_0x185ced(0x8f)]]=fileContent(_0x462bc3);}return Buffer[_0x185ced(0x9c)](zipSync(_0xc3dc14,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x15bf50){const _0x1af2c0=a167_0x553794;if(_0x15bf50['length']<0x16)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');let _0x529a2f;try{_0x529a2f=unzipSync(_0x15bf50,{'filter'(_0x10ee42){const _0x23f07c=a167_0x20bb,_0x4ebf92=normalizeSkillRelativePath(_0x10ee42[_0x23f07c(0x91)]);if(_0x4ebf92['endsWith']('/'))throw CliErrors[_0x23f07c(0x9b)](_0x23f07c(0x8e)+_0x4ebf92);return!![];}});}catch(_0x213dd9){if(isRuntimeSkillValidationError(_0x213dd9))throw _0x213dd9;throw CliErrors[_0x1af2c0(0x9b)](_0x1af2c0(0x94));}return Object[_0x1af2c0(0x90)](_0x529a2f)['map'](([_0x16d703,_0x134ed8])=>({'path':normalizeSkillRelativePath(_0x16d703),'bytes':Buffer['from'](_0x134ed8)}))['sort'](compareSkillFiles);}function isRuntimeSkillValidationError(_0x3814e1){const _0x3ff6b1=a167_0x553794;return typeof _0x3814e1===_0x3ff6b1(0x9e)&&_0x3814e1!==null&&_0x3ff6b1(0xa2)in _0x3814e1&&_0x3814e1[_0x3ff6b1(0xa2)]===_0x3ff6b1(0x93);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x452421,_0x12b07f){const _0x46ae8e=a168_0x48f3,_0x5e8a8e=_0x452421();while(!![]){try{const _0x22e5f5=parseInt(_0x46ae8e(0x1a1))/0x1*(parseInt(_0x46ae8e(0x1b2))/0x2)+parseInt(_0x46ae8e(0x1c0))/0x3+-parseInt(_0x46ae8e(0x1b5))/0x4+-parseInt(_0x46ae8e(0x1b3))/0x5+-parseInt(_0x46ae8e(0x19a))/0x6*(-parseInt(_0x46ae8e(0x1a6))/0x7)+-parseInt(_0x46ae8e(0x19d))/0x8*(-parseInt(_0x46ae8e(0x1a3))/0x9)+-parseInt(_0x46ae8e(0x1b0))/0xa;if(_0x22e5f5===_0x12b07f)break;else _0x5e8a8e['push'](_0x5e8a8e['shift']());}catch(_0x237af9){_0x5e8a8e['push'](_0x5e8a8e['shift']());}}}(a168_0x37eb,0xdd774));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';function a168_0x37eb(){const _0x115886=['1411774iXjJQP','1173560scVEIK','toString','6078108GhOmHH','push','zipSize','toLowerCase','bytes','Runtime\x20Skill\x20package\x20size\x20mismatch.','has','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','Duplicate\x20Skill\x20package\x20entry:\x20','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','2704557XnfFUL','\x20in\x20Skill\x20file\x20package.','sha256','validation','isSafeInteger','42240DvflyZ','map','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','40MGpnzt','treeSha256','Runtime\x20Skill\x20package\x20is\x20missing\x20','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','1xCNeLe','schemaVersion','2907909reOSjr','zipSha256','files','1092OFIXyC','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','some','length','Missing\x20','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','trim','get','ossPath','string','16597880hvKBmh','path'];a168_0x37eb=function(){return _0x115886;};return a168_0x37eb();}import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x85814f){const _0x46ec3b=a168_0x48f3,_0x3c3229=normalizeLocalFiles(_0x85814f);if(!_0x3c3229[_0x46ec3b(0x1a8)](_0x2dd12b=>_0x2dd12b[_0x46ec3b(0x1b1)]===SKILL_FILE))throw CliErrors[_0x46ec3b(0x198)](_0x46ec3b(0x1aa)+SKILL_FILE+_0x46ec3b(0x1c1));const _0x86224a=localFilesToManifestFiles(_0x3c3229),_0x2fd223=createDeterministicZipPackage(_0x3c3229);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x86224a),'zipSha256':bufferSha256(_0x2fd223),'zipSize':_0x2fd223[_0x46ec3b(0x1a9)],'files':_0x86224a},'packageBytes':_0x2fd223,'packageBase64':_0x2fd223[_0x46ec3b(0x1b4)]('base64')};}export function verifyRuntimeSkillPackage(_0x4923ca,_0x2ec310){const _0x33c505=a168_0x48f3,_0x4e9469=normalizePackageManifest(_0x4923ca,{'requireOssPath':![]});if(!_0x4e9469)throw CliErrors[_0x33c505(0x198)](_0x33c505(0x1bf));return extractAndVerifyPackage(_0x4e9469,_0x2ec310);}export function verifyRuntimeSkillBundle(_0x52b50d,_0x27baa6){const _0x4629ba=a168_0x48f3,_0x16d117=normalizePackageManifest(_0x52b50d,{'requireOssPath':![]});if(!_0x16d117)throw CliErrors[_0x4629ba(0x198)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x16d117,_0x27baa6);}export function tryNormalizePackageManifest(_0x1170a4){return normalizePackageManifest(_0x1170a4,{'requireOssPath':![]});}export function requirePackageBytes(_0x21ab3d,_0x23e24c){const _0x83e138=a168_0x48f3;if(!_0x23e24c||_0x23e24c[_0x83e138(0x1a9)]===0x0)throw CliErrors[_0x83e138(0x198)](_0x83e138(0x1ab)+_0x21ab3d);return _0x23e24c;}export function extractDownloadedPackage(_0x3d2f3a){const _0x170c78=a168_0x48f3,_0xed1638=parseZipPackage(_0x3d2f3a)[_0x170c78(0x19b)](_0x34fb1d=>({'path':_0x34fb1d[_0x170c78(0x1b1)],'bytes':_0x34fb1d[_0x170c78(0x1b9)]}));if(!_0xed1638['some'](_0x53e0f5=>_0x53e0f5[_0x170c78(0x1b1)]===SKILL_FILE))throw CliErrors[_0x170c78(0x198)](_0x170c78(0x19f)+SKILL_FILE+'.');return normalizeLocalFiles(_0xed1638);}export function localFilesToManifestFiles(_0xd88507){const _0x40fd57=a168_0x48f3;return normalizeLocalFiles(_0xd88507)['map'](_0x2aca95=>({'path':_0x2aca95[_0x40fd57(0x1b1)],'sha256':fileHash(_0x2aca95),'size':fileContent(_0x2aca95)['length']}));}function normalizePackageManifest(_0x486a8b,_0x43b469){const _0xf64e5e=a168_0x48f3;if(!_0x486a8b||typeof _0x486a8b!=='object'||Array['isArray'](_0x486a8b))return undefined;const _0xbdc9f4=_0x486a8b,_0xd88ec=typeof _0xbdc9f4[_0xf64e5e(0x1ae)]===_0xf64e5e(0x1af)?_0xbdc9f4['ossPath'][_0xf64e5e(0x1ac)]():undefined;if(_0x43b469['requireOssPath']&&!_0xd88ec)return undefined;if(!Array['isArray'](_0xbdc9f4[_0xf64e5e(0x1a5)])||_0xbdc9f4[_0xf64e5e(0x1a5)][_0xf64e5e(0x1a9)]===0x0)return undefined;if(!isSha256Hex(_0xbdc9f4['treeSha256']))throw CliErrors['validation'](_0xf64e5e(0x1a0));if(!isSha256Hex(_0xbdc9f4['zipSha256']))throw CliErrors[_0xf64e5e(0x198)](_0xf64e5e(0x1be));if(!Number[_0xf64e5e(0x199)](_0xbdc9f4[_0xf64e5e(0x1b7)])||_0xbdc9f4['zipSize']<0x0)throw CliErrors[_0xf64e5e(0x198)](_0xf64e5e(0x19c));const _0x1bcbcd=normalizeManifestFiles(_0xbdc9f4[_0xf64e5e(0x1a5)]);if(!_0x1bcbcd[_0xf64e5e(0x1a8)](_0x52aba8=>_0x52aba8[_0xf64e5e(0x1b1)]===SKILL_FILE))throw CliErrors[_0xf64e5e(0x198)](_0xf64e5e(0x1a7)+SKILL_FILE+'.');const _0x554ac3=fileTreeHash(_0x1bcbcd);if(_0x554ac3!==_0xbdc9f4[_0xf64e5e(0x19e)][_0xf64e5e(0x1b8)]())throw CliErrors[_0xf64e5e(0x198)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number['isSafeInteger'](_0xbdc9f4['schemaVersion'])?_0xbdc9f4[_0xf64e5e(0x1a2)]:0x2,'ossPath':_0xd88ec,'treeSha256':_0x554ac3,'zipSha256':_0xbdc9f4[_0xf64e5e(0x1a4)][_0xf64e5e(0x1b8)](),'zipSize':_0xbdc9f4[_0xf64e5e(0x1b7)],'files':_0x1bcbcd};}function a168_0x48f3(_0x207b11,_0x38d854){_0x207b11=_0x207b11-0x198;const _0x37eb95=a168_0x37eb();let _0x48f3e4=_0x37eb95[_0x207b11];return _0x48f3e4;}function extractAndVerifyPackage(_0x589ccb,_0x23781f){const _0x71e48c=a168_0x48f3,_0x4c8bcd=normalizePackageManifest(_0x589ccb,{'requireOssPath':![]});if(!_0x4c8bcd)throw CliErrors[_0x71e48c(0x198)](_0x71e48c(0x1bf));if(_0x23781f[_0x71e48c(0x1a9)]!==_0x4c8bcd[_0x71e48c(0x1b7)])throw CliErrors['validation'](_0x71e48c(0x1ba));const _0xb05c05=bufferSha256(_0x23781f);if(_0xb05c05!==_0x4c8bcd['zipSha256'])throw CliErrors[_0x71e48c(0x198)]('Runtime\x20Skill\x20package\x20sha256\x20mismatch.');return extractAndVerifyPackageFiles(_0x4c8bcd,_0x23781f);}function extractAndVerifyPackageFiles(_0x5f5b74,_0x5ed896){const _0x52d173=a168_0x48f3,_0x5d223e=parseZipPackage(_0x5ed896);if(_0x5d223e[_0x52d173(0x1a9)]!==_0x5f5b74['files'][_0x52d173(0x1a9)])throw CliErrors[_0x52d173(0x198)]('Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.');const _0x5d6366=new Map();for(const _0x3aec61 of _0x5d223e){if(_0x5d6366[_0x52d173(0x1bb)](_0x3aec61[_0x52d173(0x1b1)]))throw CliErrors['validation'](_0x52d173(0x1bd)+_0x3aec61['path']);_0x5d6366['set'](_0x3aec61[_0x52d173(0x1b1)],_0x3aec61);}const _0x1b2988=[];for(const _0x3dc3e2 of _0x5f5b74[_0x52d173(0x1a5)]){const _0x4e0c23=_0x5d6366[_0x52d173(0x1ad)](_0x3dc3e2[_0x52d173(0x1b1)]);if(!_0x4e0c23)throw CliErrors[_0x52d173(0x198)]('Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20'+_0x3dc3e2['path']);if(_0x4e0c23['bytes'][_0x52d173(0x1a9)]!==_0x3dc3e2['size'])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'+_0x3dc3e2[_0x52d173(0x1b1)]);const _0x246715=bufferSha256(_0x4e0c23[_0x52d173(0x1b9)]);if(_0x246715!==_0x3dc3e2[_0x52d173(0x1c2)])throw CliErrors[_0x52d173(0x198)](_0x52d173(0x1bc)+_0x3dc3e2[_0x52d173(0x1b1)]);_0x1b2988[_0x52d173(0x1b6)]({'path':_0x3dc3e2[_0x52d173(0x1b1)],'bytes':_0x4e0c23['bytes']});}return normalizeLocalFiles(_0x1b2988);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x15d7f1,_0x5f0d37){var _0x4c9069=a169_0x501b,_0x580e45=_0x15d7f1();while(!![]){try{var _0x16e1c8=-parseInt(_0x4c9069(0x6c))/0x1+-parseInt(_0x4c9069(0x6a))/0x2+-parseInt(_0x4c9069(0x68))/0x3+-parseInt(_0x4c9069(0x6b))/0x4*(parseInt(_0x4c9069(0x66))/0x5)+parseInt(_0x4c9069(0x67))/0x6+parseInt(_0x4c9069(0x64))/0x7*(parseInt(_0x4c9069(0x65))/0x8)+parseInt(_0x4c9069(0x69))/0x9;if(_0x16e1c8===_0x5f0d37)break;else _0x580e45['push'](_0x580e45['shift']());}catch(_0x3081bd){_0x580e45['push'](_0x580e45['shift']());}}}(a169_0x29ff,0xf08fb));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';function a169_0x501b(_0xb6aeaa,_0x58c99a){_0xb6aeaa=_0xb6aeaa-0x64;var _0x29ff69=a169_0x29ff();var _0x501b34=_0x29ff69[_0xb6aeaa];return _0x501b34;}export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';function a169_0x29ff(){var _0x3372c1=['431672qpcEeM','324222xUqcFy','13993EopmSi','2920bEWGNr','50mVSJpR','306690KTWXUG','3337164tGLdMv','34316955CFShwt','2185232VrfjkY'];a169_0x29ff=function(){return _0x3372c1;};return a169_0x29ff();}export{resolveRuntimeSkillInstallTarget}from'./runtime-skill-sync/install-target.js';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_0x5034b1=a170_0x3379;(function(_0x1574b3,_0x3423d7){const _0x467a9e=a170_0x3379,_0x50499a=_0x1574b3();while(!![]){try{const _0x595f00=parseInt(_0x467a9e(0x83))/0x1+-parseInt(_0x467a9e(0x89))/0x2*(parseInt(_0x467a9e(0x73))/0x3)+parseInt(_0x467a9e(0x7f))/0x4+parseInt(_0x467a9e(0x74))/0x5*(-parseInt(_0x467a9e(0x86))/0x6)+parseInt(_0x467a9e(0x82))/0x7+parseInt(_0x467a9e(0x91))/0x8*(-parseInt(_0x467a9e(0x78))/0x9)+-parseInt(_0x467a9e(0x76))/0xa*(-parseInt(_0x467a9e(0x7e))/0xb);if(_0x595f00===_0x3423d7)break;else _0x50499a['push'](_0x50499a['shift']());}catch(_0x4c0643){_0x50499a['push'](_0x50499a['shift']());}}}(a170_0x1a14,0x96d13));function a170_0x1a14(){const _0x5672aa=['2174936Kkxhmd','home','\x20uses\x20unsupported\x20version\x20','8551872lBDFqx','24457PaNXsp','SKILL.md','\x20records\x20\x22','351906AkbTaB','skills','unverifiable','115946QKzwEJ','version','reason','unusable','includes','.claude','map','message','8YqsStY','\x20is\x20unreadable:\x20','present','number','45aTDcAo','15RVaQzl','kind','22340VgTSdp','\x20has\x20no\x20skills\x20map','5824026ooUZJg','not-recorded','recorded','utf8','parse','absent','2563ODpiNq'];a170_0x1a14=function(){return _0x5672aa;};return a170_0x1a14();}function a170_0x3379(_0xa31b80,_0x154158){_0xa31b80=_0xa31b80-0x72;const _0x1a14fc=a170_0x1a14();let _0x33792f=_0x1a14fc[_0xa31b80];return _0x33792f;}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join('.agents','.skill-lock.json');export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a170_0x5034b1(0x87)),join(a170_0x5034b1(0x8e),a170_0x5034b1(0x87))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0xc72220,_0x4cdf0f){const _0x3ce7bf=a170_0x5034b1;if(!existsSync(_0xc72220))return{'kind':_0x3ce7bf(0x79)};let _0x50b907;try{_0x50b907=JSON[_0x3ce7bf(0x7c)](readFileSync(_0xc72220,_0x3ce7bf(0x7b)));}catch(_0x3ef5a1){return{'kind':'unusable','reason':_0xc72220+_0x3ce7bf(0x92)+_0x3ef5a1[_0x3ce7bf(0x90)]};}const _0x5925ba=_0x50b907;if(typeof _0x5925ba?.[_0x3ce7bf(0x8a)]!==_0x3ce7bf(0x72)||!SUPPORTED_LOCK_VERSIONS[_0x3ce7bf(0x8d)](_0x5925ba[_0x3ce7bf(0x8a)]))return{'kind':_0x3ce7bf(0x8c),'reason':_0xc72220+_0x3ce7bf(0x81)+String(_0x5925ba?.['version'])};if(!_0x5925ba[_0x3ce7bf(0x87)]||typeof _0x5925ba['skills']!=='object')return{'kind':_0x3ce7bf(0x8c),'reason':_0xc72220+_0x3ce7bf(0x77)};return _0x5925ba[_0x3ce7bf(0x87)][_0x4cdf0f]?{'kind':_0x3ce7bf(0x7a)}:{'kind':_0x3ce7bf(0x79)};}export function resolveInstalledSkill(_0x244282,_0x78237c){const _0x38e2fa=a170_0x5034b1,_0xd88011=_0x78237c?.[_0x38e2fa(0x80)]??homedir(),_0x10b585=_0x78237c?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x38e2fa(0x8f)](_0x5f0b9c=>join(_0xd88011,_0x5f0b9c)),_0x393bf3=_0x78237c?.['lockFile']??join(_0xd88011,SKILL_LOCK_RELATIVE_PATH),_0xc6676a=_0x10b585[_0x38e2fa(0x8f)](_0x1260e9=>join(_0x1260e9,_0x244282,_0x38e2fa(0x84))),_0x2e6b5a=_0xc6676a['find'](_0x2af346=>existsSync(_0x2af346));if(_0x2e6b5a)return{'state':_0x38e2fa(0x93),'path':_0x2e6b5a};const _0x3b34d6=readLockLookup(_0x393bf3,_0x244282);if(_0x3b34d6[_0x38e2fa(0x75)]==='unusable')return{'state':_0x38e2fa(0x88),'reason':_0x3b34d6[_0x38e2fa(0x8b)]};if(_0x3b34d6[_0x38e2fa(0x75)]==='recorded')return{'state':_0x38e2fa(0x88),'reason':_0x393bf3+_0x38e2fa(0x85)+_0x244282+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0xc6676a['join'](',\x20')+')')};return{'state':_0x38e2fa(0x7d),'checked':_0xc6676a};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a171_0x3f9533=a171_0x1686;function a171_0x3ed2(){const _0x443590=['isArray','2014715vzlKwG','map','test','fromEntries','21QIoYMF','accessKey','prototype','call','hasOwnProperty','349113FiMFGJ','<redacted>','5840050AYSIyn','1732662PcuOXJ','entries','3752272Wmsuda','5273121CaLKZV','apps','object','repeat','length','slice','12HwWYMp','27dsMBxB','1341208bVlXrW'];a171_0x3ed2=function(){return _0x443590;};return a171_0x3ed2();}function a171_0x1686(_0x502a7f,_0x3a6e2b){_0x502a7f=_0x502a7f-0x1d0;const _0x3ed250=a171_0x3ed2();let _0x1686a5=_0x3ed250[_0x502a7f];return _0x1686a5;}(function(_0x2b9dfa,_0x1dcf6e){const _0x38990a=a171_0x1686,_0x15a842=_0x2b9dfa();while(!![]){try{const _0x120598=parseInt(_0x38990a(0x1e4))/0x1+-parseInt(_0x38990a(0x1d0))/0x2+parseInt(_0x38990a(0x1d1))/0x3+-parseInt(_0x38990a(0x1d7))/0x4*(parseInt(_0x38990a(0x1db))/0x5)+parseInt(_0x38990a(0x1e7))/0x6*(parseInt(_0x38990a(0x1df))/0x7)+parseInt(_0x38990a(0x1d9))/0x8*(parseInt(_0x38990a(0x1d8))/0x9)+parseInt(_0x38990a(0x1e6))/0xa;if(_0x120598===_0x1dcf6e)break;else _0x15a842['push'](_0x15a842['shift']());}catch(_0x584cec){_0x15a842['push'](_0x15a842['shift']());}}}(a171_0x3ed2,0xee128));const REDACTED_ACCESS_KEY=a171_0x3f9533(0x1e5);export function maskCliAccessKey(_0x41307a){const _0x5a8ae5=a171_0x3f9533;if(typeof _0x41307a!=='string'||_0x41307a[_0x5a8ae5(0x1d5)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x41307a[_0x5a8ae5(0x1d6)](0x0,0x8)+'*'[_0x5a8ae5(0x1d4)](_0x41307a['length']-0x8);}export function redactCliConfigCredentials(_0x4613ef){const _0x5defbd=a171_0x3f9533,_0x8f0b69={..._0x4613ef};return Object[_0x5defbd(0x1e1)][_0x5defbd(0x1e3)][_0x5defbd(0x1e2)](_0x8f0b69,_0x5defbd(0x1e0))&&(_0x8f0b69[_0x5defbd(0x1e0)]=maskCliAccessKey(_0x8f0b69[_0x5defbd(0x1e0)])),_0x8f0b69[_0x5defbd(0x1d2)]&&typeof _0x8f0b69['apps']===_0x5defbd(0x1d3)&&!Array[_0x5defbd(0x1da)](_0x8f0b69['apps'])&&(_0x8f0b69[_0x5defbd(0x1d2)]=redactLegacyAppCredentials(_0x8f0b69[_0x5defbd(0x1d2)])),_0x8f0b69;}export function redactCliConfigValue(_0x594ad0,_0x17fbbf){const _0x2c7e43=a171_0x3f9533;if(_0x594ad0==='accessKey'||/^apps\.[^.]+\.accessKey$/[_0x2c7e43(0x1dd)](_0x594ad0))return maskCliAccessKey(_0x17fbbf);if(_0x594ad0===_0x2c7e43(0x1d2)&&_0x17fbbf&&typeof _0x17fbbf==='object'&&!Array[_0x2c7e43(0x1da)](_0x17fbbf))return redactLegacyAppCredentials(_0x17fbbf);if(/^apps\.[^.]+$/[_0x2c7e43(0x1dd)](_0x594ad0)&&_0x17fbbf&&typeof _0x17fbbf===_0x2c7e43(0x1d3)&&!Array['isArray'](_0x17fbbf)){const _0x449834=_0x17fbbf;return Object[_0x2c7e43(0x1e1)][_0x2c7e43(0x1e3)][_0x2c7e43(0x1e2)](_0x449834,_0x2c7e43(0x1e0))?{..._0x449834,'accessKey':maskCliAccessKey(_0x449834[_0x2c7e43(0x1e0)])}:_0x17fbbf;}return _0x17fbbf;}function redactLegacyAppCredentials(_0x2bf73d){const _0x5a0586=a171_0x3f9533;return Object[_0x5a0586(0x1de)](Object[_0x5a0586(0x1e8)](_0x2bf73d)[_0x5a0586(0x1dc)](([_0x106393,_0x14eef6])=>{const _0x175d84=_0x5a0586;if(!_0x14eef6||typeof _0x14eef6!==_0x175d84(0x1d3)||Array[_0x175d84(0x1da)](_0x14eef6))return[_0x106393,_0x14eef6];const _0x1514ee={..._0x14eef6};return Object['prototype'][_0x175d84(0x1e3)][_0x175d84(0x1e2)](_0x1514ee,_0x175d84(0x1e0))&&(_0x1514ee[_0x175d84(0x1e0)]=maskCliAccessKey(_0x1514ee['accessKey'])),[_0x106393,_0x1514ee];}));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a172_0x5355(_0x22c989,_0x411ebe){_0x22c989=_0x22c989-0x180;const _0x2bbca5=a172_0x2bbc();let _0x535553=_0x2bbca5[_0x22c989];return _0x535553;}(function(_0x550cd7,_0x2e1522){const _0x5b2e86=a172_0x5355,_0x5c5152=_0x550cd7();while(!![]){try{const _0x4ca60e=-parseInt(_0x5b2e86(0x185))/0x1+parseInt(_0x5b2e86(0x184))/0x2+parseInt(_0x5b2e86(0x186))/0x3+-parseInt(_0x5b2e86(0x181))/0x4+parseInt(_0x5b2e86(0x183))/0x5+parseInt(_0x5b2e86(0x182))/0x6+-parseInt(_0x5b2e86(0x180))/0x7;if(_0x4ca60e===_0x2e1522)break;else _0x5c5152['push'](_0x5c5152['shift']());}catch(_0x349214){_0x5c5152['push'](_0x5c5152['shift']());}}}(a172_0x2bbc,0x8c51f));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a172_0x2bbc(){const _0x45b4b0=['11227426IjJuqw','1859584pSWoym','5077728lqtsck','3250725wWrcEE','1439988ZCNpfb','182134HfNRpF','1827816GwYfcJ'];a172_0x2bbc=function(){return _0x45b4b0;};return a172_0x2bbc();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x10f5b2,_0x587310){const _0x53bdb2=a173_0xff69,_0x14de72=_0x10f5b2();while(!![]){try{const _0x3be222=parseInt(_0x53bdb2(0x163))/0x1+parseInt(_0x53bdb2(0x164))/0x2+parseInt(_0x53bdb2(0x15e))/0x3+-parseInt(_0x53bdb2(0x16d))/0x4*(parseInt(_0x53bdb2(0x15c))/0x5)+-parseInt(_0x53bdb2(0x16b))/0x6+parseInt(_0x53bdb2(0x171))/0x7+-parseInt(_0x53bdb2(0x159))/0x8;if(_0x3be222===_0x587310)break;else _0x14de72['push'](_0x14de72['shift']());}catch(_0x4a7622){_0x14de72['push'](_0x14de72['shift']());}}}(a173_0x5124,0x452fd));import a173_0x2466ee from'semver';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CliErrors}from'../errors.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a173_0xff69(_0x4588c5,_0x570118){_0x4588c5=_0x4588c5-0x159;const _0x5124aa=a173_0x5124();let _0xff694d=_0x5124aa[_0x4588c5];return _0xff694d;}import{getCliVersion}from'../utils/version.js';export function evaluateCliVersionPolicy(_0x232ef0,_0x249873){const _0xfaf3c9=a173_0xff69,_0x401bd1=a173_0x2466ee[_0xfaf3c9(0x15a)](_0x232ef0)===_0x232ef0,_0x501ba6=_0x249873?.['stableVersion']??null,_0x4c9bf6=_0x249873?.[_0xfaf3c9(0x16a)]??null,_0x3a58bd=Boolean(_0x401bd1&&_0x501ba6&&a173_0x2466ee['lt'](_0x232ef0,_0x501ba6)),_0x180100=Boolean(_0x401bd1&&_0x4c9bf6&&a173_0x2466ee['lt'](_0x232ef0,_0x4c9bf6));return{'currentVersion':_0x232ef0,'stableVersion':_0x501ba6,'minimumVersion':_0x4c9bf6,'needsUpgrade':_0x3a58bd||_0x180100,'belowMinimum':_0x180100,'upgradeMessage':_0x249873?.[_0xfaf3c9(0x15d)],'minimumVersionMessage':_0x249873?.['minimumVersionMessage']};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x5de9d4){const _0x4d954c=a173_0xff69;return'npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x5de9d4['stableVersion']??_0x4d954c(0x15b));}export function assertCliVersionSupported(_0x3168e5){const _0x5e153d=a173_0xff69;if(!_0x3168e5[_0x5e153d(0x160)])return;const _0x29225b=[_0x3168e5[_0x5e153d(0x168)],_0x5e153d(0x167)+_0x3168e5[_0x5e153d(0x165)],_0x5e153d(0x161)+_0x3168e5[_0x5e153d(0x16a)],_0x5e153d(0x169)+(_0x3168e5[_0x5e153d(0x166)]??_0x5e153d(0x16f)),_0x5e153d(0x15f)+getCliUpgradeCommand(_0x3168e5)][_0x5e153d(0x16c)](Boolean)[_0x5e153d(0x170)]('\x0a');throw CliErrors[_0x5e153d(0x162)](_0x5e153d(0x16e),_0x29225b);}function a173_0x5124(){const _0x26fd98=['validation','304931JfZFrU','1046840IOJkDO','currentVersion','stableVersion','Current\x20version:\x20','minimumVersionMessage','Recommended\x20stable:\x20','minimumVersion','989742oYSzHp','filter','4NNQRfS','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','unavailable','join','1413783BMfeMO','5303160YWDchl','valid','latest','1169035QHsnoa','upgradeMessage','944184eRDuvH','Upgrade\x20command:\x20','belowMinimum','Minimum\x20supported:\x20'];a173_0x5124=function(){return _0x26fd98;};return a173_0x5124();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a174_0x30b9(_0x2663f0,_0x3c07ef){_0x2663f0=_0x2663f0-0xec;const _0x4d5b3d=a174_0x4d5b();let _0x30b9b3=_0x4d5b3d[_0x2663f0];return _0x30b9b3;}function a174_0x4d5b(){const _0x479e77=['timeout','then','480nlsfWe','finally','3266628ntvabM','1225398abPEZO','minimumVersion','4807848mNxNmQ','object','trim','5CvWQlD','minimumVersionMessage','minVersion','531120eQssCn','application/json','2ivrviB','1140611tYkamQ','352726BDbsUz','cli','56SsKiiq','latestVersion','1708614AXsRFE','json','now'];a174_0x4d5b=function(){return _0x479e77;};return a174_0x4d5b();}(function(_0x540372,_0x5c7225){const _0x53183d=a174_0x30b9,_0x4370cc=_0x540372();while(!![]){try{const _0x1c3d1f=parseInt(_0x53183d(0xf0))/0x1+-parseInt(_0x53183d(0xef))/0x2*(-parseInt(_0x53183d(0xed))/0x3)+parseInt(_0x53183d(0xfc))/0x4*(-parseInt(_0x53183d(0x102))/0x5)+parseInt(_0x53183d(0xfd))/0x6*(-parseInt(_0x53183d(0xf3))/0x7)+parseInt(_0x53183d(0xff))/0x8+-parseInt(_0x53183d(0xf5))/0x9+-parseInt(_0x53183d(0xfa))/0xa*(-parseInt(_0x53183d(0xf1))/0xb);if(_0x1c3d1f===_0x5c7225)break;else _0x4370cc['push'](_0x4370cc['shift']());}catch(_0x2d93e7){_0x4370cc['push'](_0x4370cc['shift']());}}}(a174_0x4d5b,0xc7919));import a174_0x3dfdcd 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(_0x187fec){const _0x4253c7=a174_0x30b9;return typeof _0x187fec==='string'&&_0x187fec[_0x4253c7(0x101)]()?_0x187fec[_0x4253c7(0x101)]():null;}function pickStrictSemver(_0x2b21eb){const _0x38d63a=pickString(_0x2b21eb);return _0x38d63a&&a174_0x3dfdcd['valid'](_0x38d63a)===_0x38d63a?_0x38d63a:null;}export function normalizeCliVersionPolicy(_0x50b8be){const _0x457ae6=a174_0x30b9;if(!_0x50b8be||typeof _0x50b8be!==_0x457ae6(0x100))return null;const _0x4953b4=_0x50b8be,_0x11f034=_0x4953b4['cli']&&typeof _0x4953b4[_0x457ae6(0xf2)]===_0x457ae6(0x100)?_0x4953b4['cli']:_0x4953b4,_0x5b9a6f=pickStrictSemver(_0x11f034['stableVersion']??_0x11f034[_0x457ae6(0xf4)]??_0x11f034['recommendedVersion']),_0x10a200=pickStrictSemver(_0x11f034[_0x457ae6(0xfe)]??_0x11f034[_0x457ae6(0xec)]);if(!_0x5b9a6f&&!_0x10a200)return null;if(_0x5b9a6f&&_0x10a200&&a174_0x3dfdcd['gt'](_0x10a200,_0x5b9a6f))return null;return{'stableVersion':_0x5b9a6f,'minimumVersion':_0x10a200,'upgradeMessage':pickString(_0x11f034['upgradeMessage'])??undefined,'minimumVersionMessage':pickString(_0x11f034[_0x457ae6(0x103)])??undefined};}export async function fetchCliVersionPolicy(){const _0x404af8=a174_0x30b9;try{const _0x2ec633=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x404af8(0xee)},'signal':AbortSignal[_0x404af8(0xf8)](FETCH_TIMEOUT_MS)});if(!_0x2ec633['ok'])return null;return normalizeCliVersionPolicy(await _0x2ec633[_0x404af8(0xf6)]());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x8aaa6a=a174_0x30b9,_0x287ccb=Date[_0x8aaa6a(0xf7)]();if(hasCachedPolicy){const _0x3a4c75=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x287ccb-cachedAt<_0x3a4c75)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x8aaa6a(0xf9)](_0x3fdd30=>{const _0x101ccc=_0x8aaa6a;return cachedPolicy=_0x3fdd30,cachedAt=Date[_0x101ccc(0xf7)](),hasCachedPolicy=!![],_0x3fdd30;})[_0x8aaa6a(0xfb)](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a175_0x3d0085=a175_0x3e9c;(function(_0xfa865d,_0x493197){const _0x18896a=a175_0x3e9c,_0x12059b=_0xfa865d();while(!![]){try{const _0x47ceed=parseInt(_0x18896a(0x133))/0x1*(-parseInt(_0x18896a(0x128))/0x2)+parseInt(_0x18896a(0x11a))/0x3+parseInt(_0x18896a(0x13a))/0x4+parseInt(_0x18896a(0x13b))/0x5*(parseInt(_0x18896a(0x13e))/0x6)+parseInt(_0x18896a(0x144))/0x7*(parseInt(_0x18896a(0x114))/0x8)+parseInt(_0x18896a(0x14a))/0x9*(-parseInt(_0x18896a(0x14c))/0xa)+-parseInt(_0x18896a(0x135))/0xb;if(_0x47ceed===_0x493197)break;else _0x12059b['push'](_0x12059b['shift']());}catch(_0x4d510c){_0x12059b['push'](_0x12059b['shift']());}}}(a175_0x2d45,0xd110b));import a175_0x2b6b25 from'winston';function a175_0x3e9c(_0x34b320,_0x48bc69){_0x34b320=_0x34b320-0x112;const _0x2d45b5=a175_0x2d45();let _0x3e9c64=_0x2d45b5[_0x34b320];return _0x3e9c64;}function a175_0x2d45(){const _0x42b7d0=['red','transports','logTask','blue','filter','split','createLogger','File','dirname','getWinstonInstance','log','existsSync','readLogs','282hMqAgS','green','rawCommand','error','level','addColors','clearLogs','trim','currentRawCommand','combine','message','947WANcKx','toISOString','18234315dGbbXk','readFileSync','logFilePath','logFileName','errors','273292zDIWgA','31865cqKhDW','join','details','1314WgySTr','clear','winstonLogger','unknown','info','Failed\x20to\x20clear\x20logs:','265244DOCPMi','utf8','setRawCommand','command','Starting:\x20','Completed:\x20','38106cLIypz','format','160ueVafT','parse','duration','32ZpOdJA','warn','Failed\x20to\x20read\x20logs:','now','map','success','3299067XnCeLI'];a175_0x2d45=function(){return _0x42b7d0;};return a175_0x2d45();}import a175_0x4b8cc1 from'node:fs';import a175_0x2c40fd from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{['winstonLogger'];[a175_0x3d0085(0x137)]='';['currentRawCommand']='';constructor(){}[a175_0x3d0085(0x146)](_0x13bfec){const _0x48276c=a175_0x3d0085;this[_0x48276c(0x130)]=_0x13bfec;}['setLogPath'](_0x293c71){const _0x181414=a175_0x3d0085;this['logFilePath']=a175_0x2c40fd[_0x181414(0x13c)](_0x293c71,PRODUCT_CONFIG[_0x181414(0x138)]),this['winstonLogger']&&this['winstonLogger'][_0x181414(0x13f)](),this['initWinstonLogger']();}['initWinstonLogger'](){const _0x498edc=a175_0x3d0085,_0x87d941=a175_0x2c40fd[_0x498edc(0x123)](this[_0x498edc(0x137)]);!a175_0x4b8cc1[_0x498edc(0x126)](_0x87d941)&&a175_0x4b8cc1['mkdirSync'](_0x87d941,{'recursive':!![]});const _0x1ec001=a175_0x2b6b25[_0x498edc(0x14b)][_0x498edc(0x131)](a175_0x2b6b25['format']['timestamp'](),a175_0x2b6b25['format'][_0x498edc(0x139)]({'stack':!![]}),a175_0x2b6b25[_0x498edc(0x14b)]['printf'](_0x5a0c39=>{const _0x165dff=_0x498edc,_0x5e6344={'timestamp':_0x5a0c39['timestamp']||new Date()[_0x165dff(0x134)](),'level':_0x5a0c39[_0x165dff(0x12c)]||_0x165dff(0x142),'command':_0x5a0c39[_0x165dff(0x147)]||_0x165dff(0x141),'rawCommand':_0x5a0c39[_0x165dff(0x12a)]||this[_0x165dff(0x130)]||undefined,'message':_0x5a0c39[_0x165dff(0x132)]||'','duration':_0x5a0c39[_0x165dff(0x113)]||undefined,'details':_0x5a0c39[_0x165dff(0x13d)]||undefined};return JSON['stringify'](_0x5e6344);}));this[_0x498edc(0x140)]=a175_0x2b6b25[_0x498edc(0x121)]({'level':_0x498edc(0x142),'format':_0x1ec001,'transports':[new a175_0x2b6b25[(_0x498edc(0x11c))][(_0x498edc(0x122))]({'filename':this['logFilePath'],'level':_0x498edc(0x142)})],'silent':![]}),a175_0x2b6b25[_0x498edc(0x12d)]({'success':_0x498edc(0x129),'error':_0x498edc(0x11b),'warn':'yellow','info':_0x498edc(0x11e)});}[a175_0x3d0085(0x142)](_0x3cc8db,_0x6d66a1,_0xfbf7aa){const _0x412ce0=a175_0x3d0085;if(!this[_0x412ce0(0x137)]||!this[_0x412ce0(0x140)])return;this['winstonLogger'][_0x412ce0(0x142)](_0x6d66a1,{'command':_0x3cc8db,'details':_0xfbf7aa});}['success'](_0x8cb1f3,_0x24ca9b,_0x2da74b,_0x3e7bc9){const _0x1a3d04=a175_0x3d0085;if(!this[_0x1a3d04(0x137)]||!this[_0x1a3d04(0x140)])return;this[_0x1a3d04(0x140)][_0x1a3d04(0x125)](_0x1a3d04(0x142),_0x24ca9b,{'level':_0x1a3d04(0x119),'command':_0x8cb1f3,'duration':_0x2da74b,'details':_0x3e7bc9});}[a175_0x3d0085(0x12b)](_0x2a1563,_0x1ccc3c,_0x5361e5){const _0x2b3613=a175_0x3d0085;if(!this[_0x2b3613(0x137)]||!this['winstonLogger'])return;this['winstonLogger'][_0x2b3613(0x12b)](_0x1ccc3c,{'command':_0x2a1563,'details':_0x5361e5});}[a175_0x3d0085(0x115)](_0x32f187,_0x985527,_0x40834){const _0x560935=a175_0x3d0085;if(!this[_0x560935(0x137)]||!this[_0x560935(0x140)])return;this[_0x560935(0x140)]['warn'](_0x985527,{'command':_0x32f187,'details':_0x40834});}async[a175_0x3d0085(0x11d)](_0x2770a1,_0x5bfcf5,_0x1ebe8c){const _0x4a251e=a175_0x3d0085,_0x170f7f=Date[_0x4a251e(0x117)]();this[_0x4a251e(0x142)](_0x2770a1,_0x4a251e(0x148)+_0x5bfcf5);try{const _0x2d4e5b=await _0x1ebe8c(),_0x2ce6d0=Date[_0x4a251e(0x117)]()-_0x170f7f;return this['success'](_0x2770a1,_0x4a251e(0x149)+_0x5bfcf5,_0x2ce6d0),_0x2d4e5b;}catch(_0x450247){const _0x278e3e=Date[_0x4a251e(0x117)]()-_0x170f7f;this[_0x4a251e(0x12b)](_0x2770a1,'Failed:\x20'+_0x5bfcf5,{'error':_0x450247 instanceof Error?_0x450247[_0x4a251e(0x132)]:String(_0x450247),'duration':_0x278e3e});throw _0x450247;}}[a175_0x3d0085(0x127)](){const _0x85b63d=a175_0x3d0085;try{if(!a175_0x4b8cc1['existsSync'](this[_0x85b63d(0x137)]))return[];const _0x33cb8b=a175_0x4b8cc1[_0x85b63d(0x136)](this[_0x85b63d(0x137)],'utf8');return _0x33cb8b[_0x85b63d(0x120)](/\r?\n/)[_0x85b63d(0x11f)](_0x420d5b=>_0x420d5b[_0x85b63d(0x12f)]())[_0x85b63d(0x118)](_0x3a6d96=>JSON[_0x85b63d(0x112)](_0x3a6d96));}catch(_0x443df0){return console[_0x85b63d(0x115)](_0x85b63d(0x116),_0x443df0),[];}}[a175_0x3d0085(0x12e)](){const _0x161b29=a175_0x3d0085;try{a175_0x4b8cc1[_0x161b29(0x126)](this[_0x161b29(0x137)])&&a175_0x4b8cc1['writeFileSync'](this[_0x161b29(0x137)],'',_0x161b29(0x145));}catch(_0x5031f1){console[_0x161b29(0x115)](_0x161b29(0x143),_0x5031f1);}}[a175_0x3d0085(0x124)](){return this['winstonLogger'];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a176_0x52f991=a176_0xfc4b;(function(_0x5a30ca,_0x5ef0cc){const _0x12143c=a176_0xfc4b,_0x3a5470=_0x5a30ca();while(!![]){try{const _0x12a9d1=parseInt(_0x12143c(0xa6))/0x1*(parseInt(_0x12143c(0xa1))/0x2)+-parseInt(_0x12143c(0xa5))/0x3*(-parseInt(_0x12143c(0xa8))/0x4)+parseInt(_0x12143c(0xaa))/0x5*(-parseInt(_0x12143c(0xa7))/0x6)+-parseInt(_0x12143c(0xb3))/0x7+parseInt(_0x12143c(0xac))/0x8*(parseInt(_0x12143c(0xa4))/0x9)+parseInt(_0x12143c(0xa0))/0xa+parseInt(_0x12143c(0xb0))/0xb*(-parseInt(_0x12143c(0xb1))/0xc);if(_0x12a9d1===_0x5ef0cc)break;else _0x3a5470['push'](_0x3a5470['shift']());}catch(_0x1f0f63){_0x3a5470['push'](_0x3a5470['shift']());}}}(a176_0x15d1,0xc5f46));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number['MAX_SAFE_INTEGER']),MIN_SAFE_INTEGER=BigInt(Number[a176_0x52f991(0xb4)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x1f0665){const _0x5db4e5=a176_0x52f991;if(_0x1f0665[_0x5db4e5(0xa3)]('.')||_0x1f0665[_0x5db4e5(0xa3)]('e')||_0x1f0665[_0x5db4e5(0xa3)]('E'))return![];const _0x4a27a5=BigInt(_0x1f0665);return _0x4a27a5>MAX_SAFE_INTEGER||_0x4a27a5<MIN_SAFE_INTEGER;}function a176_0x15d1(){const _0x511587=['472148cdzGQz','prototype','282305QTOHvc','slice','97816eIrVkF','json','length','defineProperty','77flYncb','735564RuFeqN','exec','3282097UAdMza','MIN_SAFE_INTEGER','parse','11243110hcWWdw','2pCkaXW','getOwnPropertyDescriptor','includes','1053NZzTbC','9BfekYU','41933PnAZUM','132jJOFsh'];a176_0x15d1=function(){return _0x511587;};return a176_0x15d1();}function a176_0xfc4b(_0x3cd7b9,_0x27d69c){_0x3cd7b9=_0x3cd7b9-0x9f;const _0x15d12f=a176_0x15d1();let _0xfc4b22=_0x15d12f[_0x3cd7b9];return _0xfc4b22;}function quoteUnsafeIntegerLiterals(_0x3694cb){const _0x1de317=a176_0x52f991;let _0x361f1f='',_0x4f2440=![],_0x19050e=![];for(let _0x3a5c46=0x0;_0x3a5c46<_0x3694cb[_0x1de317(0xae)];){const _0x577421=_0x3694cb[_0x3a5c46];if(_0x4f2440){_0x361f1f+=_0x577421,_0x3a5c46+=0x1;if(_0x19050e)_0x19050e=![];else{if(_0x577421==='\x5c')_0x19050e=!![];else _0x577421==='\x22'&&(_0x4f2440=![]);}continue;}if(_0x577421==='\x22'){_0x4f2440=!![],_0x361f1f+=_0x577421,_0x3a5c46+=0x1;continue;}if(_0x577421==='-'||_0x577421>='0'&&_0x577421<='9'){const _0x35e9bd=JSON_NUMBER_PATTERN[_0x1de317(0xb2)](_0x3694cb[_0x1de317(0xab)](_0x3a5c46))?.[0x0];if(_0x35e9bd){_0x361f1f+=isUnsafeIntegerLiteral(_0x35e9bd)?'\x22'+_0x35e9bd+'\x22':_0x35e9bd,_0x3a5c46+=_0x35e9bd[_0x1de317(0xae)];continue;}}_0x361f1f+=_0x577421,_0x3a5c46+=0x1;}return _0x361f1f;}export function parseLosslessJson(_0x395d29){const _0x4824dc=a176_0x52f991;return JSON[_0x4824dc(0x9f)](quoteUnsafeIntegerLiterals(_0x395d29));}export function installLosslessJsonResponseParser(){const _0x5a1ab7=a176_0x52f991;if(typeof Response==='undefined')return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x5a1ab7(0xa9)],originalResponseJsonDescriptor=Object[_0x5a1ab7(0xa2)](responseJsonPrototype,_0x5a1ab7(0xad)),Object[_0x5a1ab7(0xaf)](responseJsonPrototype,_0x5a1ab7(0xad),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x51d378(){return parseLosslessJson(await this['text']());}}),restoreResponseJsonParser=()=>{const _0x4e455d=_0x5a1ab7;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x4e455d(0xaf)](responseJsonPrototype,'json',originalResponseJsonDescriptor):delete responseJsonPrototype[_0x4e455d(0xad)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4ff84b,_0x201935){const _0x54ecbd=a177_0x5eba,_0x2d1066=_0x4ff84b();while(!![]){try{const _0x35daad=parseInt(_0x54ecbd(0xdd))/0x1*(parseInt(_0x54ecbd(0xd3))/0x2)+parseInt(_0x54ecbd(0xd6))/0x3*(-parseInt(_0x54ecbd(0xda))/0x4)+-parseInt(_0x54ecbd(0xd2))/0x5*(-parseInt(_0x54ecbd(0xd4))/0x6)+parseInt(_0x54ecbd(0xd1))/0x7*(-parseInt(_0x54ecbd(0xe5))/0x8)+parseInt(_0x54ecbd(0xd7))/0x9*(parseInt(_0x54ecbd(0xe2))/0xa)+-parseInt(_0x54ecbd(0xdb))/0xb+parseInt(_0x54ecbd(0xe1))/0xc;if(_0x35daad===_0x201935)break;else _0x2d1066['push'](_0x2d1066['shift']());}catch(_0xd57c71){_0x2d1066['push'](_0x2d1066['shift']());}}}(a177_0x299d,0x823ad));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x3705cd){const _0x5cbfe9=a177_0x5eba;if(!_0x3705cd)return undefined;try{return parseLosslessJson(_0x3705cd);}catch{throw CliErrors[_0x5cbfe9(0xd8)](_0x5cbfe9(0xce)+_0x3705cd);}}export function parseJsonParamsValue(_0x34ee8e){const _0xc3a4c5=a177_0x5eba;if(!_0x34ee8e)return undefined;try{return parseLosslessJson(_0x34ee8e);}catch{throw CliErrors[_0xc3a4c5(0xd8)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x34ee8e);}}function a177_0x299d(){const _0x2f5f0c=['12184812ImCeSc','27710qTXjxA','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','items','200rNeWYC','length','test','number','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','Invalid\x20JSON\x20for\x20--params:\x20','isArray','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','216132zIyCBw','10iwFjCw','1124hHhIKa','2875722RxWpcG','object','6OLpZRk','63eUsXbo','validation','isSafeInteger','1268828jCUchW','7445845xRjUeK','data\x20update\x20--params.','1109ukgiKw','join','map','\x20records\x20per\x20call;\x20received\x20'];a177_0x299d=function(){return _0x2f5f0c;};return a177_0x299d();}export function parseBatchCreateItemsFromParams(_0x3e22da){const _0xffcd67=a177_0x5eba;if(Array[_0xffcd67(0xcf)](_0x3e22da))return _0x3e22da;if(_0x3e22da!==null&&_0x3e22da!==undefined&&typeof _0x3e22da===_0xffcd67(0xd5)&&Array[_0xffcd67(0xcf)](_0x3e22da[_0xffcd67(0xe4)]))return _0x3e22da[_0xffcd67(0xe4)];throw CliErrors[_0xffcd67(0xd8)]('batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}',_0xffcd67(0xd0));}function parseDataUpdateId(_0x37071e,_0x52b2c7){const _0xaccc22=a177_0x5eba;if(typeof _0x37071e===_0xaccc22(0xcb)&&Number[_0xaccc22(0xd9)](_0x37071e)&&_0x37071e>0x0)return _0x37071e;if(typeof _0x37071e==='string'){if(/^[1-9]\d*$/[_0xaccc22(0xca)](_0x37071e))return _0x37071e;}throw CliErrors['validation'](_0xaccc22(0xdc)+_0x52b2c7+'\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.');}export function parseUpdateIdsFromParams(_0x21c9fd){const _0x2ebce1=a177_0x5eba;if(_0x21c9fd===null||_0x21c9fd===undefined||typeof _0x21c9fd!==_0x2ebce1(0xd5)||Array[_0x2ebce1(0xcf)](_0x21c9fd))throw CliErrors[_0x2ebce1(0xd8)]('data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.',_0x2ebce1(0xcc));const _0x1b8401=_0x21c9fd['id'];if(_0x1b8401===undefined||_0x1b8401===null)throw CliErrors[_0x2ebce1(0xd8)](_0x2ebce1(0xcd),_0x2ebce1(0xcc));const _0x12740d=Array[_0x2ebce1(0xcf)](_0x1b8401)?_0x1b8401:[_0x1b8401];if(_0x12740d['length']===0x0)throw CliErrors[_0x2ebce1(0xd8)](_0x2ebce1(0xe3));if(_0x12740d[_0x2ebce1(0xe6)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x2ebce1(0xd8)]('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+_0x2ebce1(0xe0)+_0x12740d[_0x2ebce1(0xe6)]+'.');return _0x12740d[_0x2ebce1(0xdf)]((_0x57a41c,_0x224c2c)=>parseDataUpdateId(_0x57a41c,Array[_0x2ebce1(0xcf)](_0x1b8401)?'id['+_0x224c2c+']':'id'));}function a177_0x5eba(_0x1d63f8,_0xe81fa9){_0x1d63f8=_0x1d63f8-0xca;const _0x299dbe=a177_0x299d();let _0x5eba5b=_0x299dbe[_0x1d63f8];return _0x5eba5b;}export function normalizeUpdateParamsForRuntime(_0x5e857,_0x3346ef){const _0x597c44=a177_0x5eba;if(Array[_0x597c44(0xcf)](_0x5e857['id'])&&_0x3346ef['length']>0x1)return{..._0x5e857,'id':_0x3346ef[_0x597c44(0xde)](',')};return _0x5e857;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a178_0x5b7b(){const _0x32194b=['114SlyeqB','7078432Ibjwjx','10510164BgxAcb','67rnoIOd','test','number','2707415NSVnQH','54164UfYoFc','1883gbAPPn','string','28254pUoOJW','isSafeInteger','25064670KpxlQF','119788LchYZa'];a178_0x5b7b=function(){return _0x32194b;};return a178_0x5b7b();}(function(_0x156e12,_0x4600c6){const _0x3be2dc=a178_0x1aa9,_0x5125b9=_0x156e12();while(!![]){try{const _0x49bd9c=-parseInt(_0x3be2dc(0x1b9))/0x1*(-parseInt(_0x3be2dc(0x1bd))/0x2)+-parseInt(_0x3be2dc(0x1b6))/0x3*(parseInt(_0x3be2dc(0x1b5))/0x4)+-parseInt(_0x3be2dc(0x1bc))/0x5+parseInt(_0x3be2dc(0x1b2))/0x6*(parseInt(_0x3be2dc(0x1be))/0x7)+parseInt(_0x3be2dc(0x1b7))/0x8+parseInt(_0x3be2dc(0x1b8))/0x9+-parseInt(_0x3be2dc(0x1b4))/0xa;if(_0x49bd9c===_0x4600c6)break;else _0x5125b9['push'](_0x5125b9['shift']());}catch(_0xdfefa0){_0x5125b9['push'](_0x5125b9['shift']());}}}(a178_0x5b7b,0xe76a7));function a178_0x1aa9(_0x5f42ad,_0x4f7be8){_0x5f42ad=_0x5f42ad-0x1b2;const _0x5b7b62=a178_0x5b7b();let _0x1aa934=_0x5b7b62[_0x5f42ad];return _0x1aa934;}export function normalizePositiveSafeInteger(_0x500ba4){const _0x16f8d3=a178_0x1aa9;if(typeof _0x500ba4===_0x16f8d3(0x1bb))return Number[_0x16f8d3(0x1b3)](_0x500ba4)&&_0x500ba4>0x0?_0x500ba4:undefined;if(typeof _0x500ba4!==_0x16f8d3(0x1bf)||!/^\d+$/[_0x16f8d3(0x1ba)](_0x500ba4))return undefined;const _0x304db0=Number(_0x500ba4);return Number[_0x16f8d3(0x1b3)](_0x304db0)&&_0x304db0>0x0?_0x304db0:undefined;}
|
package/lib/utils/redaction.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a179_0x5e4e2=a179_0x5f5d;(function(_0x407611,_0x45ba23){const _0x1b4de3=a179_0x5f5d,_0x1a0547=_0x407611();while(!![]){try{const _0x37dbef=-parseInt(_0x1b4de3(0x1dd))/0x1+parseInt(_0x1b4de3(0x1d2))/0x2*(-parseInt(_0x1b4de3(0x1e1))/0x3)+-parseInt(_0x1b4de3(0x1d8))/0x4+-parseInt(_0x1b4de3(0x1dc))/0x5*(-parseInt(_0x1b4de3(0x1da))/0x6)+parseInt(_0x1b4de3(0x1d7))/0x7*(parseInt(_0x1b4de3(0x1d3))/0x8)+-parseInt(_0x1b4de3(0x1df))/0x9+parseInt(_0x1b4de3(0x1e3))/0xa*(parseInt(_0x1b4de3(0x1cf))/0xb);if(_0x37dbef===_0x45ba23)break;else _0x1a0547['push'](_0x1a0547['shift']());}catch(_0x1984fa){_0x1a0547['push'](_0x1a0547['shift']());}}}(a179_0x1e92,0x6173d));const REDACTED_VALUE=a179_0x5e4e2(0x1d9),SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set([a179_0x5e4e2(0x1d1),a179_0x5e4e2(0x1db)]),SENSITIVE_VALUE_KEYS=new Set(['comment']);export function isSensitiveKey(_0xb462b5){const _0x2811d5=a179_0x5e4e2,_0x21a546=_0xb462b5[_0x2811d5(0x1d0)](/_/g,'-')['toLowerCase']();return SENSITIVE_KEY_PATTERN[_0x2811d5(0x1cd)](_0x21a546);}function a179_0x1e92(){const _0x4a54bf=['map','181426HKwYRY','1799304slmqAJ','[REDACTED]','162906TNbPMa','variables','130PxHsrR','557032vYClGw','object','5770647qvmSCt','push','591EtvEjY','has','4750aYSlkP','entries','test','fromEntries','45419ohXkfl','replace','comment','7610vXLbJo','40uJYRmO','isArray','toLowerCase'];a179_0x1e92=function(){return _0x4a54bf;};return a179_0x1e92();}export function isSensitiveFlagName(_0x363f3e){const _0x136fdd=a179_0x5e4e2,_0x52f833=_0x363f3e[_0x136fdd(0x1d0)](/_/g,'-')[_0x136fdd(0x1d5)]();return isSensitiveKey(_0x52f833)||SENSITIVE_FLAG_NAMES[_0x136fdd(0x1e2)](_0x52f833);}function redactVariableValues(_0x5b29a1){const _0xc8939=a179_0x5e4e2;if(Array[_0xc8939(0x1d4)](_0x5b29a1))return _0x5b29a1[_0xc8939(0x1d6)](_0x596f01=>redactVariableValues(_0x596f01));if(_0x5b29a1&&typeof _0x5b29a1===_0xc8939(0x1de))return Object[_0xc8939(0x1ce)](Object[_0xc8939(0x1e4)](_0x5b29a1)['map'](([_0x566d72,_0x3a234e])=>[_0x566d72,redactVariableValues(_0x3a234e)]));return REDACTED_VALUE;}function a179_0x5f5d(_0x150bc7,_0x2bf3f0){_0x150bc7=_0x150bc7-0x1cd;const _0x1e920a=a179_0x1e92();let _0x5f5de8=_0x1e920a[_0x150bc7];return _0x5f5de8;}export function redactSensitiveValue(_0x530f61){const _0x4259ee=a179_0x5e4e2;if(Array[_0x4259ee(0x1d4)](_0x530f61))return _0x530f61[_0x4259ee(0x1d6)](_0x2b9070=>redactSensitiveValue(_0x2b9070));if(!_0x530f61||typeof _0x530f61!==_0x4259ee(0x1de))return _0x530f61;const _0x2c92c0={};for(const [_0x3000e3,_0x1c868b]of Object[_0x4259ee(0x1e4)](_0x530f61)){const _0x31338a=_0x3000e3[_0x4259ee(0x1d0)](/_/g,'-')[_0x4259ee(0x1d5)]();_0x2c92c0[_0x3000e3]=_0x31338a===_0x4259ee(0x1db)?redactVariableValues(_0x1c868b):SENSITIVE_VALUE_KEYS['has'](_0x31338a)||isSensitiveKey(_0x3000e3)?REDACTED_VALUE:redactSensitiveValue(_0x1c868b);}return _0x2c92c0;}export function redactCommandArgv(_0x5fc712){const _0x19a016=a179_0x5e4e2,_0x3a7106=[];let _0x5839fe=![];for(const _0x454e66 of _0x5fc712){if(_0x5839fe){_0x3a7106[_0x19a016(0x1e0)](REDACTED_VALUE),_0x5839fe=![];continue;}const _0x44449e=_0x454e66['match'](/^--([^=]+)(?:=(.*))?$/);if(!_0x44449e||!isSensitiveFlagName(_0x44449e[0x1]??'')){_0x3a7106['push'](_0x454e66);continue;}_0x3a7106[_0x19a016(0x1e0)]('--'+_0x44449e[0x1]+(_0x44449e[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x44449e[0x2]===undefined&&(_0x5839fe=!![]);}return _0x3a7106;}export{REDACTED_VALUE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1aaf9b,_0x9886da){const _0x807277=a180_0x5f3b,_0x81aba7=_0x1aaf9b();while(!![]){try{const _0x3f8294=parseInt(_0x807277(0x1d9))/0x1*(parseInt(_0x807277(0x1cc))/0x2)+parseInt(_0x807277(0x1d6))/0x3*(parseInt(_0x807277(0x1d1))/0x4)+-parseInt(_0x807277(0x1cf))/0x5+-parseInt(_0x807277(0x1ce))/0x6*(-parseInt(_0x807277(0x1d8))/0x7)+parseInt(_0x807277(0x1d5))/0x8*(parseInt(_0x807277(0x1cd))/0x9)+parseInt(_0x807277(0x1cb))/0xa*(-parseInt(_0x807277(0x1d4))/0xb)+-parseInt(_0x807277(0x1d0))/0xc;if(_0x3f8294===_0x9886da)break;else _0x81aba7['push'](_0x81aba7['shift']());}catch(_0x3f7f57){_0x81aba7['push'](_0x81aba7['shift']());}}}(a180_0x55cc,0x29fcf));function a180_0x5f3b(_0x1e156f,_0x395561){_0x1e156f=_0x1e156f-0x1cb;const _0x55cc06=a180_0x55cc();let _0x5f3b74=_0x55cc06[_0x1e156f];return _0x5f3b74;}function a180_0x55cc(){const _0x209466=['2zdnOVu','711FkecMM','109608MPDCyo','636375VlWDmN','2488176KIBfmJ','4gQnwDy','test','string','14289JilLXx','17592DzYBhV','230259gxwoIL','number','105PccYnt','58753hnhAXV','590kPijbd'];a180_0x55cc=function(){return _0x209466;};return a180_0x55cc();}export function normalizeRuntimeUserId(_0x46002d){const _0xa22409=a180_0x5f3b;if(typeof _0x46002d===_0xa22409(0x1d7))return Number['isSafeInteger'](_0x46002d)&&_0x46002d>0x0?String(_0x46002d):undefined;if(typeof _0x46002d!==_0xa22409(0x1d3)||!/^\d+$/[_0xa22409(0x1d2)](_0x46002d))return undefined;const _0x1e85fb=_0x46002d['replace'](/^0+/,'');return _0x1e85fb||undefined;}
|