@lovrabet/lovrabet-cli 2.3.8-beta.6 → 2.3.8
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 +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4c75b7,_0x1f4375){const _0x1efbae=a162_0x5450,_0x35eaf6=_0x4c75b7();while(!![]){try{const _0x45117b=parseInt(_0x1efbae(0xb7))/0x1+parseInt(_0x1efbae(0xb9))/0x2+-parseInt(_0x1efbae(0xb1))/0x3+-parseInt(_0x1efbae(0xb5))/0x4*(parseInt(_0x1efbae(0xa7))/0x5)+parseInt(_0x1efbae(0xad))/0x6+-parseInt(_0x1efbae(0xb2))/0x7+parseInt(_0x1efbae(0xa2))/0x8;if(_0x45117b===_0x1f4375)break;else _0x35eaf6['push'](_0x35eaf6['shift']());}catch(_0x54d13d){_0x35eaf6['push'](_0x35eaf6['shift']());}}}(a162_0x3787,0x648c4));import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';function a162_0x5450(_0x3ebe3f,_0x1b2d0f){_0x3ebe3f=_0x3ebe3f-0x95;const _0x3787ad=a162_0x3787();let _0x5450e1=_0x3787ad[_0x3ebe3f];return _0x5450e1;}import{fileContent,normalizeLocalFiles}from'./local-files.js';import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x5f0ee4,_0x5342c7,_0x29a69f,_0x11e535,_0x164c69,_0x339c1f,_0x4ea509){const _0x4ef569=a162_0x5450,_0x3e16de=_0x339c1f?normalizeLocalFiles(_0x339c1f):[],_0x54ca71=!_0x4ea509&&_0x3e16de[_0x4ef569(0xaa)]>0x0?buildSkillPackage(_0x3e16de):undefined,_0x5ee66b=_0x4ea509?bufferSha256(_0x4ea509):_0x54ca71?.[_0x4ef569(0x9b)][_0x4ef569(0xa4)],_0x510921=_0x4ea509?.[_0x4ef569(0xaa)]??_0x54ca71?.['manifest'][_0x4ef569(0xa3)],_0x1ea72c=_0x3e16de['length']>0x0?Object[_0x4ef569(0xb8)](_0x3e16de[_0x4ef569(0xa9)](_0x54053f=>[_0x54053f['path'],fileHash(_0x54053f)])):undefined;return{'schemaVersion':_0x3e16de[_0x4ef569(0xaa)]>0x0?0x2:0x1,'id':_0x5f0ee4['id'],'appCode':_0x29a69f,'skillCode':requireSkillCode(_0x5f0ee4),'skillName':_0x5f0ee4['skillName'],'description':_0x5f0ee4[_0x4ef569(0x95)],'example':_0x5f0ee4[_0x4ef569(0xb3)],'scope':_0x5342c7,'readonly':_0x5342c7!=='personal'||_0x5f0ee4[_0x4ef569(0xa1)]===!![],'tenantCode':_0x5f0ee4['tenantCode'],'userId':_0x5f0ee4[_0x4ef569(0xb6)],'version':_0x5f0ee4[_0x4ef569(0x98)],'status':_0x5f0ee4['status'],'tags':Array[_0x4ef569(0xae)](_0x5f0ee4[_0x4ef569(0xb0)])?_0x5f0ee4[_0x4ef569(0xb0)]:[],'hasUpstreamUpdate':_0x5f0ee4[_0x4ef569(0x9c)],'forkedFromSkillId':_0x5f0ee4[_0x4ef569(0xac)],'forkedFromVersion':_0x5f0ee4[_0x4ef569(0xb4)],'sourceSessionId':_0x5f0ee4[_0x4ef569(0xaf)],'contentHash':_0x11e535,'fileHashes':_0x1ea72c,'treeHash':_0x3e16de[_0x4ef569(0xaa)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x3e16de)):undefined,'ossPath':remoteManifestOssPath(_0x5f0ee4['files']),'zipSha256':_0x5ee66b,'zipSize':_0x510921,'files':_0x3e16de[_0x4ef569(0xaa)]>0x0?_0x3e16de[_0x4ef569(0xa9)](_0x276564=>({'path':_0x276564[_0x4ef569(0xa6)],'hash':fileHash(_0x276564),'size':fileContent(_0x276564)[_0x4ef569(0xaa)]})):undefined,'pulledAt':_0x164c69??new Date()[_0x4ef569(0xab)]()};}export function requireSkillCode(_0x5d1edd){const _0xa1093e=a162_0x5450,_0x20553e=_0x5d1edd[_0xa1093e(0xa8)]?.[_0xa1093e(0x9a)]();if(!_0x20553e)throw CliErrors[_0xa1093e(0x9e)](_0xa1093e(0x99));return _0x20553e;}function a162_0x3787(){const _0xb5535f=['isArray','sourceSessionId','tags','2423472VoHfKO','4891159EUFVIP','example','forkedFromVersion','28916duiDDm','userId','55207SmYSaW','fromEntries','1553214WuuWmD','description','parse','utf8','version','Runtime\x20Skill\x20is\x20missing\x20skillCode.','trim','manifest','hasUpstreamUpdate','object','validation','ossPath','Invalid\x20','readonly','8401272SbRadM','zipSize','zipSha256','string','path','160VGfUCB','skillCode','map','length','toISOString','forkedFromSkillId','1606560iFMxfa'];a162_0x3787=function(){return _0xb5535f;};return a162_0x3787();}export function readMetadataIfPresent(_0x2db6af){const _0x17167d=a162_0x5450;if(!existsSync(_0x2db6af))return undefined;try{const _0x9519a8=JSON[_0x17167d(0x96)](readFileSync(_0x2db6af,_0x17167d(0x97)));return _0x9519a8;}catch{throw CliErrors[_0x17167d(0x9e)](_0x17167d(0xa0)+METADATA_FILE+':\x20'+_0x2db6af);}}function remoteManifestOssPath(_0x1e26a4){const _0xdd0a15=a162_0x5450;if(!_0x1e26a4||typeof _0x1e26a4!==_0xdd0a15(0x9d)||Array[_0xdd0a15(0xae)](_0x1e26a4))return undefined;const _0x223080=_0x1e26a4[_0xdd0a15(0x9f)];return typeof _0x223080===_0xdd0a15(0xa5)&&_0x223080[_0xdd0a15(0x9a)]()?_0x223080[_0xdd0a15(0x9a)]():undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a163_0xfc5666=a163_0x2d73;(function(_0x20255b,_0x38ccb3){const _0x3caffd=a163_0x2d73,_0x2bfc23=_0x20255b();while(!![]){try{const _0x4bb77e=parseInt(_0x3caffd(0x20e))/0x1*(parseInt(_0x3caffd(0x208))/0x2)+-parseInt(_0x3caffd(0x1ff))/0x3*(parseInt(_0x3caffd(0x1fe))/0x4)+parseInt(_0x3caffd(0x1fb))/0x5+parseInt(_0x3caffd(0x206))/0x6+-parseInt(_0x3caffd(0x1f3))/0x7*(parseInt(_0x3caffd(0x20c))/0x8)+-parseInt(_0x3caffd(0x201))/0x9+parseInt(_0x3caffd(0x1f7))/0xa;if(_0x4bb77e===_0x38ccb3)break;else _0x2bfc23['push'](_0x2bfc23['shift']());}catch(_0x512c98){_0x2bfc23['push'](_0x2bfc23['shift']());}}}(a163_0x332c,0xe1b52));import{existsSync}from'node:fs';function a163_0x2d73(_0x320eb6,_0x3430a0){_0x320eb6=_0x320eb6-0x1f3;const _0x332c99=a163_0x332c();let _0x2d73ce=_0x332c99[_0x320eb6];return _0x2d73ce;}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(_0x387a03={}){const _0x34f21e=a163_0x2d73,_0x176794=_0x387a03[_0x34f21e(0x204)]??homedir(),_0x5d80a7=resolve(_0x176794,PRODUCT_CONFIG['homeDirName'],_0x34f21e(0x200)),_0x4586c0=trimmedEnv(_0x34f21e(0x209)),_0x4d3afb=trimmedEnv(_0x34f21e(0x1f6)),_0x53df15=resolve(_0x176794,_0x34f21e(0x1fd)),_0x82bff0=_0x387a03[_0x34f21e(0x202)]??(existsSync(_0x53df15)?resolve(_0x53df15,_0x34f21e(0x20a)):undefined);return{'homeDir':_0x176794,'cacheRoot':_0x5d80a7,'managedRoot':resolve(_0x176794,PRODUCT_CONFIG[_0x34f21e(0x20d)]),'agentsSkillsDir':_0x387a03[_0x34f21e(0x210)]??_0x4586c0??resolve(_0x176794,_0x34f21e(0x203),_0x34f21e(0x20a)),'claudeSkillsDir':_0x387a03[_0x34f21e(0x1f8)]??_0x4d3afb??resolve(_0x176794,_0x34f21e(0x1f9),_0x34f21e(0x20a)),'workbuddySkillsDir':_0x82bff0};}export function runtimeAgentSkillRoots(_0x268b0f){const _0x39b1a9=a163_0x2d73;return[_0x268b0f[_0x39b1a9(0x210)],_0x268b0f[_0x39b1a9(0x1f8)],_0x268b0f['workbuddySkillsDir']][_0x39b1a9(0x1f4)](_0x2cc896=>Boolean(_0x2cc896));}export function getRuntimeSkillCacheRoot(_0xe8d84,_0x4bd6aa,_0x4c730a={}){const _0x58e69a=a163_0x2d73,_0x52be5d=resolveSkillSyncPaths(_0x4c730a);return resolve(_0x52be5d[_0x58e69a(0x1f5)],_0xe8d84,fingerprintAccessKey(_0x4bd6aa),_0x58e69a(0x20a));}function a163_0x332c(){const _0x5e1a87=['.claude','path\x20segment','1451300nrXLAX','includes','.workbuddy','20xTmrWZ','21219hMyjeb','cache','7437114ESusLA','workbuddySkillsDir','.agents','homeDir','trim','3589824YbPzef','\x20for\x20local\x20path:\x20','38TowFkC','SKILL_ROOT','skills','Unsafe\x20','423288DvjPsC','homeDirName','28609KxsbET','appCode','agentsSkillsDir','21kKsokL','filter','cacheRoot','CLAUDE_SKILL_ROOT','5128070cTXQVI','claudeSkillsDir'];a163_0x332c=function(){return _0x5e1a87;};return a163_0x332c();}export function getRuntimeSkillDir(_0x1de9c3,_0x378e53,_0x11c9f1,_0x14490f,_0xb15dde,_0x35761e={}){const _0x3075c7=a163_0x2d73;return resolve(getRuntimeSkillCacheRoot(_0x1de9c3,_0x378e53,_0x35761e),safePathSegment(_0x11c9f1,_0x3075c7(0x20f)),_0x14490f,safePathSegment(_0xb15dde,'skillCode'));}export function safePathSegment(_0x109fb5,_0x2eb8dc=a163_0xfc5666(0x1fa)){const _0x3b02be=a163_0xfc5666;if(!_0x109fb5||_0x109fb5[_0x3b02be(0x1fc)]('/')||_0x109fb5[_0x3b02be(0x1fc)]('\x5c')||_0x109fb5[_0x3b02be(0x1fc)]('..'))throw CliErrors['validation'](_0x3b02be(0x20b)+_0x2eb8dc+_0x3b02be(0x207)+_0x109fb5);return _0x109fb5;}function trimmedEnv(_0x59321a){const _0xd749b8=a163_0xfc5666,_0x3cc0e4=productEnv(_0x59321a)?.[_0xd749b8(0x205)]();return _0x3cc0e4?_0x3cc0e4:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x4673af,_0x3205d7){const _0x5a9ffd=a164_0x581e,_0x12573d=_0x4673af();while(!![]){try{const _0x2ee611=parseInt(_0x5a9ffd(0xcf))/0x1*(-parseInt(_0x5a9ffd(0x94))/0x2)+-parseInt(_0x5a9ffd(0xb6))/0x3+parseInt(_0x5a9ffd(0x96))/0x4*(parseInt(_0x5a9ffd(0xa3))/0x5)+parseInt(_0x5a9ffd(0xce))/0x6*(parseInt(_0x5a9ffd(0xad))/0x7)+parseInt(_0x5a9ffd(0xb9))/0x8*(-parseInt(_0x5a9ffd(0x90))/0x9)+parseInt(_0x5a9ffd(0xc3))/0xa+-parseInt(_0x5a9ffd(0xb0))/0xb*(parseInt(_0x5a9ffd(0xc9))/0xc);if(_0x2ee611===_0x3205d7)break;else _0x12573d['push'](_0x12573d['shift']());}catch(_0x457192){_0x12573d['push'](_0x12573d['shift']());}}}(a164_0x17c6,0x79e9f));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a164_0x3b39d5}from'yaml';import{CliErrors}from'../../errors.js';function a164_0x17c6(){const _0x527cc0=['(unknown)','toLowerCase','9gprbIs','object','sourceSessionId','tags','464lxEqFx','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','255052wtJory','ignoreMetadataScope','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','isSymbolicLink','ignoreMetadataForPayload','some','skillCode','excludedFilePaths','validation','string','Missing\x20','version','content','25fssRzP','ignoreMetadataAppCodeMismatch','isFile','trim','Remote\x20Skill\x20','dir','find','packageBase64','displayName','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','14xaNVip','utf8','skillName','2234441IMbYlF','refreshedAt','pushedAt','startsWith','length','slice','1259649NsbHKp','Skill\x20directory\x20not\x20found:\x20','builtin','6335072LdCqNh','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','Skill\x20metadata\x20appCode\x20\x22','match','ignoreInvalidMetadata','\x20has\x20scope=\x22','metadata','Invalid\x20','replace','scope','8413220MqEtcU','example','isArray','boolean','number','appCode','12KCzhJZ','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','path','isDirectory','targetScope','2323608zGtyfl','88WIfNpM','personal','description'];a164_0x17c6=function(){return _0x527cc0;};return a164_0x17c6();}import{METADATA_FILE,SKILL_FILE}from'./constants.js';function a164_0x581e(_0x5d9ffb,_0x155f30){_0x5d9ffb=_0x5d9ffb-0x8f;const _0x17c6e6=a164_0x17c6();let _0x581eda=_0x17c6e6[_0x5d9ffb];return _0x581eda;}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(_0x84a14e,_0x14b7f4,_0x2e718c={}){const _0x1fb210=a164_0x581e,_0x4a5b52=resolvePushDirectoryRoot(_0x84a14e),_0x47ff08=readPushMetadataIfPresent(resolve(_0x4a5b52,METADATA_FILE),{'ignoreInvalidMetadata':_0x2e718c[_0x1fb210(0xbd)]});if(_0x47ff08?.[_0x1fb210(0xc8)]&&_0x47ff08[_0x1fb210(0xc8)]!==_0x14b7f4&&!_0x2e718c['allowAppCodeRetarget']&&!_0x2e718c[_0x1fb210(0xa4)])throw CliErrors['validation'](_0x1fb210(0xbb)+_0x47ff08[_0x1fb210(0xc8)]+_0x1fb210(0xca)+_0x14b7f4+'\x22.');const _0xaf1269=resolvePushSkillCode(_0x4a5b52,_0x14b7f4,_0x47ff08,_0x2e718c);if(!_0xaf1269)throw CliErrors['validation']('Unable\x20to\x20resolve\x20skillCode\x20from\x20'+SKILL_FILE+',\x20'+METADATA_FILE+',\x20or\x20directory\x20name.');return{'dir':_0x4a5b52,'skillCode':_0xaf1269,'metadata':_0x47ff08};}export function readPushDirectory(_0x2c02a4,_0x50bd71,_0x4a2f9b={}){const _0x1df922=a164_0x581e,_0x2b2ce4=resolvePushDirectoryIdentity(_0x2c02a4,_0x50bd71,_0x4a2f9b),_0x27236b=_0x2b2ce4[_0x1df922(0xa8)],_0x329cd3=resolve(_0x27236b,SKILL_FILE);if(!existsSync(_0x329cd3)||!lstatSync(_0x329cd3)[_0x1df922(0xa5)]())throw CliErrors[_0x1df922(0x9e)](_0x1df922(0xa0)+SKILL_FILE+':\x20'+_0x329cd3);const _0x598cd9=_0x2b2ce4[_0x1df922(0xbf)],_0x47e84d=_0x4a2f9b[_0x1df922(0xcd)]??_0x1df922(0xd0);if(!_0x4a2f9b[_0x1df922(0x97)]&&_0x598cd9?.[_0x1df922(0xc2)]===_0x1df922(0xb8))throw CliErrors[_0x1df922(0x9e)](_0x1df922(0xba)+METADATA_FILE+_0x1df922(0xbe)+_0x598cd9[_0x1df922(0xc2)]+'\x22.');if(!_0x4a2f9b[_0x1df922(0x97)]&&_0x47e84d===_0x1df922(0xd0)&&_0x598cd9?.[_0x1df922(0xc2)]&&_0x598cd9[_0x1df922(0xc2)]!==_0x1df922(0xd0))throw CliErrors[_0x1df922(0x9e)](_0x1df922(0x95)+METADATA_FILE+_0x1df922(0xbe)+_0x598cd9['scope']+'\x22.',_0x1df922(0xac)+_0x27236b+_0x1df922(0x98));const _0x4f9766=scanSkillDirectory(_0x27236b,{'excludedFilePaths':_0x4a2f9b[_0x1df922(0x9d)]}),_0x4fa528=buildSkillPackage(_0x4f9766),_0x262a96=readFileSync(_0x329cd3,_0x1df922(0xae)),_0x44cdc9=_0x2b2ce4[_0x1df922(0x9c)],_0x2a4cd9=_0x4a2f9b[_0x1df922(0x9a)]?undefined:_0x598cd9,_0x463097=readSkillDisplayName(_0x262a96);return{'skillCode':_0x44cdc9,'metadata':_0x598cd9,'frontmatterDisplayName':_0x463097,'input':{'skillCode':_0x44cdc9,'skillName':_0x463097??_0x2a4cd9?.[_0x1df922(0xaf)],'description':_0x2a4cd9?.[_0x1df922(0xd1)],'content':_0x262a96,'files':_0x4fa528['manifest'],'packageBase64':_0x4fa528[_0x1df922(0xaa)],'tags':_0x2a4cd9?.[_0x1df922(0x93)],'version':_0x2a4cd9?.[_0x1df922(0xa1)],'sourceSessionId':_0x2a4cd9?.['sourceSessionId']}};}export function refreshPushDirectoryMetadataFromRemote(_0x5dc448,_0x217384,_0x1f8cc0,_0x79432a={}){const _0x20b97b=a164_0x581e,_0x50bc54=resolvePushDirectoryRoot(_0x5dc448),_0x6bb963=readPushMetadataIfPresent(resolve(_0x50bc54,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x572ad4=requireRemoteScope(_0x217384),_0x2568ce=readLocalSkillContent(_0x50bc54),_0x5986d2={..._0x217384,'appCode':_0x217384[_0x20b97b(0xc8)]??_0x1f8cc0,'skillName':_0x217384[_0x20b97b(0xaf)]??_0x6bb963?.[_0x20b97b(0xaf)],'description':_0x217384['description']??_0x6bb963?.[_0x20b97b(0xd1)],'example':_0x217384[_0x20b97b(0xc4)]??_0x6bb963?.[_0x20b97b(0xc4)],'tags':Array[_0x20b97b(0xc5)](_0x217384['tags'])?_0x217384['tags']:_0x6bb963?.[_0x20b97b(0x93)],'sourceSessionId':_0x217384['sourceSessionId']??_0x6bb963?.[_0x20b97b(0x92)],'content':_0x217384[_0x20b97b(0xa2)]??_0x2568ce},_0x10ed5c=buildMetadata(_0x5986d2,_0x572ad4,_0x1f8cc0,contentHash(_0x2568ce),_0x79432a[_0x20b97b(0xb1)]);writeJsonAtomic(resolve(_0x50bc54,METADATA_FILE),_0x10ed5c);}export function recordPushedRuntimeSkill(_0x3eef1f,_0x317750,_0x4b24c5,_0x5674e4={}){const _0x5b378b=a164_0x581e,_0x57590e=resolvePushDirectoryRoot(_0x3eef1f),_0xbff53=scanSkillDirectory(_0x57590e),_0x1f2873=_0xbff53[_0x5b378b(0xa9)](_0x39d174=>_0x39d174[_0x5b378b(0xcb)]===SKILL_FILE),_0x3b6b62=_0x1f2873?fileText(_0x1f2873):'',_0x17b4d8=tryNormalizePackageManifest(_0x317750['files']),_0x22dbc8={..._0x317750,'content':_0x317750[_0x5b378b(0xa2)]??_0x3b6b62,'files':_0x17b4d8},_0x9347ee=_0x17b4d8?normalizeLocalFiles(_0xbff53)['filter'](_0x17a86b=>_0x17b4d8['files'][_0x5b378b(0x9b)](_0x136c45=>_0x136c45['path']===_0x17a86b['path'])):undefined,_0x2f9bc6=buildMetadata(_0x22dbc8,_0x5674e4[_0x5b378b(0xc2)]??_0x5b378b(0xd0),_0x4b24c5,contentHash(_0x22dbc8['content']??''),_0x5674e4[_0x5b378b(0xb2)],_0x9347ee);writeJsonAtomic(resolve(_0x57590e,METADATA_FILE),_0x2f9bc6);}export function deriveSkillCodeFromDirectory(_0x142ed1,_0xaecc6a){const _0x21b26b=a164_0x581e,_0x58ecdc=basename(resolve(_0x142ed1)),_0x2c2c4d=_0xaecc6a+'--';return _0x58ecdc[_0x21b26b(0xb3)](_0x2c2c4d)?_0x58ecdc[_0x21b26b(0xb5)](_0x2c2c4d[_0x21b26b(0xb4)]):_0x58ecdc;}function resolvePushSkillCode(_0x576d2a,_0x3b6df9,_0x10bb37,_0x8df2b9){const _0x1928e1=a164_0x581e,_0x57416f=deriveSkillCodeFromSkillFile(_0x576d2a)||deriveSkillCodeFromDirectory(_0x576d2a,_0x3b6df9);if(_0x8df2b9['ignoreMetadataSkillCode'])return _0x57416f;return _0x10bb37?.[_0x1928e1(0x9c)]?.[_0x1928e1(0xa6)]()||_0x57416f;}function deriveSkillCodeFromSkillFile(_0x59a189){const _0x353e96=a164_0x581e,_0x45d4f5=resolve(_0x59a189,SKILL_FILE);if(!existsSync(_0x45d4f5)||!lstatSync(_0x45d4f5)[_0x353e96(0xa5)]())return undefined;const _0x1d6a50=readFileSync(_0x45d4f5,_0x353e96(0xae)),_0x8bcd31=_0x1d6a50[_0x353e96(0xbc)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x8bcd31)return undefined;const _0x555162=parseFrontmatterObject(_0x8bcd31[0x1]??''),_0x172b21=scalarToString(_0x555162?.['name']);return _0x172b21?slugifySkillName(_0x172b21):undefined;}function readSkillDisplayName(_0x238557){const _0x48bd9e=a164_0x581e,_0x2b4b6b=_0x238557[_0x48bd9e(0xbc)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x2b4b6b)return undefined;const _0x57230c=parseFrontmatterObject(_0x2b4b6b[0x1]??'');return scalarToString(_0x57230c?.[_0x48bd9e(0xab)]);}function slugifySkillName(_0x569cd3){const _0x1f289f=a164_0x581e,_0x5e9f4b=_0x569cd3[_0x1f289f(0xa6)]()[_0x1f289f(0x8f)]()[_0x1f289f(0xc1)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x1f289f(0xc1)](/^-+/,'')[_0x1f289f(0xc1)](/-+$/,'')[_0x1f289f(0xc1)](/-{2,}/g,'-');if(!_0x5e9f4b)throw CliErrors['validation'](_0x1f289f(0xc0)+SKILL_FILE+'\x20name\x20for\x20SkillHub\x20slug\x20generation.');return _0x5e9f4b;}function parseFrontmatterObject(_0x4f90b3){const _0x19532a=a164_0x581e;try{const _0x269d3c=a164_0x3b39d5(_0x4f90b3);return _0x269d3c&&typeof _0x269d3c===_0x19532a(0x91)&&!Array[_0x19532a(0xc5)](_0x269d3c)?_0x269d3c:undefined;}catch{return undefined;}}function scalarToString(_0x4dee68){const _0x585776=a164_0x581e;if(typeof _0x4dee68===_0x585776(0x9f))return _0x4dee68[_0x585776(0xa6)]();if(typeof _0x4dee68===_0x585776(0xc7)||typeof _0x4dee68===_0x585776(0xc6))return String(_0x4dee68);return undefined;}function resolvePushDirectoryRoot(_0x1ab38f){const _0x17183a=a164_0x581e,_0x3803ba=resolve(_0x1ab38f);if(!existsSync(_0x3803ba))throw CliErrors['validation'](_0x17183a(0xb7)+_0x1ab38f);const _0x14884f=lstatSync(_0x3803ba);if(_0x14884f[_0x17183a(0xcc)]())return _0x3803ba;if(_0x14884f[_0x17183a(0x99)]()){const _0x1e30b9=realpathSync(_0x3803ba);if(lstatSync(_0x1e30b9)[_0x17183a(0xcc)]())return _0x1e30b9;}throw CliErrors[_0x17183a(0x9e)](_0x17183a(0xb7)+_0x1ab38f);}function requireRemoteScope(_0x5a0125){const _0x3e967b=a164_0x581e;if(_0x5a0125[_0x3e967b(0xc2)]==='personal'||_0x5a0125[_0x3e967b(0xc2)]==='company'||_0x5a0125['scope']===_0x3e967b(0xb8))return _0x5a0125[_0x3e967b(0xc2)];throw CliErrors[_0x3e967b(0x9e)](_0x3e967b(0xa7)+(_0x5a0125[_0x3e967b(0x9c)]||_0x3e967b(0xd2))+'\x20has\x20unsupported\x20scope\x20\x22'+(_0x5a0125[_0x3e967b(0xc2)]??'unknown')+'\x22.');}function readLocalSkillContent(_0x5f099c){const _0xdf973a=a164_0x581e,_0x3ea18e=resolve(_0x5f099c,SKILL_FILE);return existsSync(_0x3ea18e)&&lstatSync(_0x3ea18e)['isFile']()?readFileSync(_0x3ea18e,_0xdf973a(0xae)):'';}function readPushMetadataIfPresent(_0x30bc59,_0x466a10={}){const _0x41cd9d=a164_0x581e;try{return readMetadataIfPresent(_0x30bc59);}catch(_0x557be7){if(_0x466a10[_0x41cd9d(0xbd)])return undefined;throw _0x557be7;}}
|
|
1
|
+
(function(_0x24f71c,_0x2db394){const _0x4f7ba2=a164_0x40b9,_0x3050d0=_0x24f71c();while(!![]){try{const _0x501682=-parseInt(_0x4f7ba2(0x203))/0x1+parseInt(_0x4f7ba2(0x1f5))/0x2*(parseInt(_0x4f7ba2(0x213))/0x3)+-parseInt(_0x4f7ba2(0x1f7))/0x4+parseInt(_0x4f7ba2(0x1fe))/0x5*(parseInt(_0x4f7ba2(0x227))/0x6)+parseInt(_0x4f7ba2(0x22d))/0x7+parseInt(_0x4f7ba2(0x232))/0x8+parseInt(_0x4f7ba2(0x22f))/0x9;if(_0x501682===_0x2db394)break;else _0x3050d0['push'](_0x3050d0['shift']());}catch(_0x3dab72){_0x3050d0['push'](_0x3050d0['shift']());}}}(a164_0x219f,0x59afc));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a164_0x1df4e5}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{writeJsonAtomic}from'./fs-utils.js';import{contentHash}from'./hashing.js';import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';function a164_0x40b9(_0x41983a,_0x537410){_0x41983a=_0x41983a-0x1f2;const _0x219f0e=a164_0x219f();let _0x40b9a4=_0x219f0e[_0x41983a];return _0x40b9a4;}import{buildMetadata,readMetadataIfPresent}from'./metadata.js';import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0x4d5a3b,_0x2f2a2a,_0x39d110={}){const _0x336e86=a164_0x40b9,_0x351ee0=resolvePushDirectoryRoot(_0x4d5a3b),_0x3a7425=readPushMetadataIfPresent(resolve(_0x351ee0,METADATA_FILE),{'ignoreInvalidMetadata':_0x39d110[_0x336e86(0x216)]});if(_0x3a7425?.[_0x336e86(0x1f9)]&&_0x3a7425[_0x336e86(0x1f9)]!==_0x2f2a2a&&!_0x39d110[_0x336e86(0x1fd)]&&!_0x39d110['ignoreMetadataAppCodeMismatch'])throw CliErrors[_0x336e86(0x21c)](_0x336e86(0x1fb)+_0x3a7425[_0x336e86(0x1f9)]+_0x336e86(0x231)+_0x2f2a2a+'\x22.');const _0x317f3d=resolvePushSkillCode(_0x351ee0,_0x2f2a2a,_0x3a7425,_0x39d110);if(!_0x317f3d)throw CliErrors['validation'](_0x336e86(0x1f6)+SKILL_FILE+',\x20'+METADATA_FILE+_0x336e86(0x210));return{'dir':_0x351ee0,'skillCode':_0x317f3d,'metadata':_0x3a7425};}export function readPushDirectory(_0x4ca145,_0x3dd7e6,_0x5d314f={}){const _0x322af4=a164_0x40b9,_0x3b6bb2=resolvePushDirectoryIdentity(_0x4ca145,_0x3dd7e6,_0x5d314f),_0x57e774=_0x3b6bb2[_0x322af4(0x221)],_0x5615b2=resolve(_0x57e774,SKILL_FILE);if(!existsSync(_0x5615b2)||!lstatSync(_0x5615b2)['isFile']())throw CliErrors[_0x322af4(0x21c)](_0x322af4(0x202)+SKILL_FILE+':\x20'+_0x5615b2);const _0x2808d7=_0x3b6bb2[_0x322af4(0x21f)],_0x135c60=_0x5d314f['targetScope']??_0x322af4(0x226);if(!_0x5d314f[_0x322af4(0x235)]&&_0x2808d7?.[_0x322af4(0x20b)]===_0x322af4(0x211))throw CliErrors[_0x322af4(0x21c)]('Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20'+METADATA_FILE+_0x322af4(0x22e)+_0x2808d7['scope']+'\x22.');if(!_0x5d314f[_0x322af4(0x235)]&&_0x135c60===_0x322af4(0x226)&&_0x2808d7?.[_0x322af4(0x20b)]&&_0x2808d7[_0x322af4(0x20b)]!==_0x322af4(0x226))throw CliErrors[_0x322af4(0x21c)](_0x322af4(0x205)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x2808d7['scope']+'\x22.','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20'+_0x57e774+_0x322af4(0x223));const _0xb01c90=scanSkillDirectory(_0x57e774,{'excludedFilePaths':_0x5d314f['excludedFilePaths']}),_0x4d1498=buildSkillPackage(_0xb01c90),_0x5b421f=readFileSync(_0x5615b2,_0x322af4(0x207)),_0x5bb39d=_0x3b6bb2[_0x322af4(0x224)],_0x5f4471=_0x5d314f[_0x322af4(0x228)]?undefined:_0x2808d7,_0x5d715c=readSkillDisplayName(_0x5b421f);return{'skillCode':_0x5bb39d,'metadata':_0x2808d7,'frontmatterDisplayName':_0x5d715c,'input':{'skillCode':_0x5bb39d,'skillName':_0x5d715c??_0x5f4471?.[_0x322af4(0x218)],'description':_0x5f4471?.['description'],'content':_0x5b421f,'files':_0x4d1498[_0x322af4(0x222)],'packageBase64':_0x4d1498[_0x322af4(0x22c)],'tags':_0x5f4471?.[_0x322af4(0x220)],'version':_0x5f4471?.['version'],'sourceSessionId':_0x5f4471?.[_0x322af4(0x206)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x10296e,_0x50e964,_0x508e9e,_0x463ff1={}){const _0x990321=a164_0x40b9,_0x43262d=resolvePushDirectoryRoot(_0x10296e),_0x24617d=readPushMetadataIfPresent(resolve(_0x43262d,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x104554=requireRemoteScope(_0x50e964),_0x20d2c4=readLocalSkillContent(_0x43262d),_0x2e203e={..._0x50e964,'appCode':_0x50e964[_0x990321(0x1f9)]??_0x508e9e,'skillName':_0x50e964['skillName']??_0x24617d?.[_0x990321(0x218)],'description':_0x50e964[_0x990321(0x1fc)]??_0x24617d?.[_0x990321(0x1fc)],'example':_0x50e964[_0x990321(0x201)]??_0x24617d?.['example'],'tags':Array['isArray'](_0x50e964[_0x990321(0x220)])?_0x50e964[_0x990321(0x220)]:_0x24617d?.[_0x990321(0x220)],'sourceSessionId':_0x50e964[_0x990321(0x206)]??_0x24617d?.[_0x990321(0x206)],'content':_0x50e964[_0x990321(0x215)]??_0x20d2c4},_0x150469=buildMetadata(_0x2e203e,_0x104554,_0x508e9e,contentHash(_0x20d2c4),_0x463ff1[_0x990321(0x217)]);writeJsonAtomic(resolve(_0x43262d,METADATA_FILE),_0x150469);}export function recordPushedRuntimeSkill(_0x545a4a,_0x2b6b44,_0x1cf296,_0x4f2507={}){const _0x54bd8a=a164_0x40b9,_0xab5c19=resolvePushDirectoryRoot(_0x545a4a),_0x5c1944=scanSkillDirectory(_0xab5c19),_0x2fcd1b=_0x5c1944[_0x54bd8a(0x233)](_0x135b0b=>_0x135b0b[_0x54bd8a(0x20f)]===SKILL_FILE),_0x2f8e49=_0x2fcd1b?fileText(_0x2fcd1b):'',_0x322341=tryNormalizePackageManifest(_0x2b6b44[_0x54bd8a(0x21a)]),_0x45d6ea={..._0x2b6b44,'content':_0x2b6b44[_0x54bd8a(0x215)]??_0x2f8e49,'files':_0x322341},_0x5a764c=_0x322341?normalizeLocalFiles(_0x5c1944)[_0x54bd8a(0x20d)](_0x3873e9=>_0x322341['files'][_0x54bd8a(0x200)](_0x165e8c=>_0x165e8c[_0x54bd8a(0x20f)]===_0x3873e9[_0x54bd8a(0x20f)])):undefined,_0x4a063f=buildMetadata(_0x45d6ea,_0x4f2507['scope']??'personal',_0x1cf296,contentHash(_0x45d6ea[_0x54bd8a(0x215)]??''),_0x4f2507[_0x54bd8a(0x234)],_0x5a764c);writeJsonAtomic(resolve(_0xab5c19,METADATA_FILE),_0x4a063f);}export function deriveSkillCodeFromDirectory(_0x3c2d9e,_0x3c8c12){const _0x45be06=a164_0x40b9,_0x101ba1=basename(resolve(_0x3c2d9e)),_0x510774=_0x3c8c12+'--';return _0x101ba1[_0x45be06(0x20c)](_0x510774)?_0x101ba1[_0x45be06(0x1ff)](_0x510774[_0x45be06(0x225)]):_0x101ba1;}function resolvePushSkillCode(_0x4d1e0f,_0x165678,_0x9ea799,_0x14e777){const _0x369b80=a164_0x40b9,_0x4f453c=deriveSkillCodeFromSkillFile(_0x4d1e0f)||deriveSkillCodeFromDirectory(_0x4d1e0f,_0x165678);if(_0x14e777[_0x369b80(0x219)])return _0x4f453c;return _0x9ea799?.[_0x369b80(0x224)]?.[_0x369b80(0x1fa)]()||_0x4f453c;}function deriveSkillCodeFromSkillFile(_0x25e863){const _0x2e75db=a164_0x40b9,_0x260be9=resolve(_0x25e863,SKILL_FILE);if(!existsSync(_0x260be9)||!lstatSync(_0x260be9)[_0x2e75db(0x1f8)]())return undefined;const _0x51e0ec=readFileSync(_0x260be9,_0x2e75db(0x207)),_0x2eebad=_0x51e0ec[_0x2e75db(0x212)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x2eebad)return undefined;const _0x158382=parseFrontmatterObject(_0x2eebad[0x1]??''),_0x585f56=scalarToString(_0x158382?.[_0x2e75db(0x214)]);return _0x585f56?slugifySkillName(_0x585f56):undefined;}function readSkillDisplayName(_0x329183){const _0x3a42fc=a164_0x40b9,_0x3b6793=_0x329183[_0x3a42fc(0x212)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x3b6793)return undefined;const _0x107cc5=parseFrontmatterObject(_0x3b6793[0x1]??'');return scalarToString(_0x107cc5?.[_0x3a42fc(0x22b)]);}function slugifySkillName(_0xa8d7aa){const _0x2d4e23=a164_0x40b9,_0x4e8c93=_0xa8d7aa['trim']()['toLowerCase']()[_0x2d4e23(0x21b)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x2d4e23(0x21b)](/^-+/,'')[_0x2d4e23(0x21b)](/-+$/,'')[_0x2d4e23(0x21b)](/-{2,}/g,'-');if(!_0x4e8c93)throw CliErrors['validation'](_0x2d4e23(0x20e)+SKILL_FILE+'\x20name\x20for\x20SkillHub\x20slug\x20generation.');return _0x4e8c93;}function parseFrontmatterObject(_0x45cae1){const _0x5e77b2=a164_0x40b9;try{const _0x513ed9=a164_0x1df4e5(_0x45cae1);return _0x513ed9&&typeof _0x513ed9===_0x5e77b2(0x22a)&&!Array[_0x5e77b2(0x229)](_0x513ed9)?_0x513ed9:undefined;}catch{return undefined;}}function scalarToString(_0x50d870){const _0x2f6e12=a164_0x40b9;if(typeof _0x50d870===_0x2f6e12(0x20a))return _0x50d870[_0x2f6e12(0x1fa)]();if(typeof _0x50d870===_0x2f6e12(0x21e)||typeof _0x50d870===_0x2f6e12(0x21d))return String(_0x50d870);return undefined;}function resolvePushDirectoryRoot(_0x46da39){const _0x2124ce=a164_0x40b9,_0x417b82=resolve(_0x46da39);if(!existsSync(_0x417b82))throw CliErrors['validation'](_0x2124ce(0x208)+_0x46da39);const _0x3cfe7f=lstatSync(_0x417b82);if(_0x3cfe7f[_0x2124ce(0x1f2)]())return _0x417b82;if(_0x3cfe7f[_0x2124ce(0x1f3)]()){const _0x542283=realpathSync(_0x417b82);if(lstatSync(_0x542283)[_0x2124ce(0x1f2)]())return _0x542283;}throw CliErrors[_0x2124ce(0x21c)](_0x2124ce(0x208)+_0x46da39);}function requireRemoteScope(_0x21d821){const _0x389c13=a164_0x40b9;if(_0x21d821[_0x389c13(0x20b)]===_0x389c13(0x226)||_0x21d821[_0x389c13(0x20b)]===_0x389c13(0x209)||_0x21d821[_0x389c13(0x20b)]===_0x389c13(0x211))return _0x21d821[_0x389c13(0x20b)];throw CliErrors[_0x389c13(0x21c)](_0x389c13(0x230)+(_0x21d821[_0x389c13(0x224)]||_0x389c13(0x1f4))+_0x389c13(0x204)+(_0x21d821['scope']??'unknown')+'\x22.');}function readLocalSkillContent(_0x3542f2){const _0x5cde04=resolve(_0x3542f2,SKILL_FILE);return existsSync(_0x5cde04)&&lstatSync(_0x5cde04)['isFile']()?readFileSync(_0x5cde04,'utf8'):'';}function readPushMetadataIfPresent(_0x18a0cc,_0x3b40a1={}){const _0x43a6b4=a164_0x40b9;try{return readMetadataIfPresent(_0x18a0cc);}catch(_0x4cf8d4){if(_0x3b40a1[_0x43a6b4(0x216)])return undefined;throw _0x4cf8d4;}}function a164_0x219f(){const _0x495dee=['ignoreInvalidMetadata','refreshedAt','skillName','ignoreMetadataSkillCode','files','replace','validation','boolean','number','metadata','tags','dir','manifest','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','skillCode','length','personal','8574tNrcVS','ignoreMetadataForPayload','isArray','object','displayName','packageBase64','747600hFFljq','\x20has\x20scope=\x22','151002SgsvKz','Remote\x20Skill\x20','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','765040WfrJOD','find','pushedAt','ignoreMetadataScope','isDirectory','isSymbolicLink','(unknown)','1242702BQWKzQ','Unable\x20to\x20resolve\x20skillCode\x20from\x20','516308GlHpXV','isFile','appCode','trim','Skill\x20metadata\x20appCode\x20\x22','description','allowAppCodeRetarget','950IUGWaH','slice','some','example','Missing\x20','615636kBIfVB','\x20has\x20unsupported\x20scope\x20\x22','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','sourceSessionId','utf8','Skill\x20directory\x20not\x20found:\x20','company','string','scope','startsWith','filter','Invalid\x20','path',',\x20or\x20directory\x20name.','builtin','match','3utDEVK','name','content'];a164_0x219f=function(){return _0x495dee;};return a164_0x219f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a165_0x3f9f(_0x19d894,_0x23dc71){_0x19d894=_0x19d894-0x1b9;const _0x4eedcb=a165_0x4eed();let _0x3f9fe1=_0x4eedcb[_0x19d894];return _0x3f9fe1;}(function(_0x30af9e,_0x49b88e){const _0x3de7aa=a165_0x3f9f,_0x3f93d3=_0x30af9e();while(!![]){try{const _0x1fd4c6=parseInt(_0x3de7aa(0x1bc))/0x1+parseInt(_0x3de7aa(0x1b9))/0x2+parseInt(_0x3de7aa(0x1be))/0x3+parseInt(_0x3de7aa(0x1bb))/0x4*(-parseInt(_0x3de7aa(0x1c0))/0x5)+parseInt(_0x3de7aa(0x1c2))/0x6+parseInt(_0x3de7aa(0x1bf))/0x7*(parseInt(_0x3de7aa(0x1bd))/0x8)+parseInt(_0x3de7aa(0x1c9))/0x9*(-parseInt(_0x3de7aa(0x1c4))/0xa);if(_0x1fd4c6===_0x49b88e)break;else _0x3f93d3['push'](_0x3f93d3['shift']());}catch(_0x46e1e6){_0x3f93d3['push'](_0x3f93d3['shift']());}}}(a165_0x4eed,0x8d5fe));import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x39fcdc){const _0x51457d=a165_0x3f9f,_0x4eb575=_0x39fcdc&&_0x39fcdc[_0x51457d(0x1c6)]>0x0?_0x39fcdc:['personal',_0x51457d(0x1c5),_0x51457d(0x1c7)],_0x2d9aae=[];for(const _0x511ab1 of _0x4eb575){if(!isRuntimeSkillScope(_0x511ab1))throw CliErrors[_0x51457d(0x1c8)](_0x51457d(0x1c1)+_0x511ab1);!_0x2d9aae[_0x51457d(0x1ba)](_0x511ab1)&&_0x2d9aae[_0x51457d(0x1c3)](_0x511ab1);}return _0x2d9aae;}function a165_0x4eed(){const _0x5c6a4e=['builtin','validation','23619447ZFwVML','1245560dkjZvo','includes','16ZRbABS','1142298RRpmhy','1003424zrGnPe','2032032gtbUYr','21XMHueR','448205wfWakR','Unsupported\x20runtime\x20Skill\x20scope:\x20','4459866Ufvaeg','push','10BfTwHJ','company','length'];a165_0x4eed=function(){return _0x5c6a4e;};return a165_0x4eed();}export function isRuntimeSkillScope(_0x23a236){const _0x460432=a165_0x3f9f;return _0x23a236==='personal'||_0x23a236===_0x460432(0x1c5)||_0x23a236===_0x460432(0x1c7);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a167_0x594685=a167_0x59ca;(function(_0x2429e6,_0x3e4beb){const _0x28af89=a167_0x59ca,_0x2fe930=_0x2429e6();while(!![]){try{const _0x5d1f29=-parseInt(_0x28af89(0xc1))/0x1*(-parseInt(_0x28af89(0xc0))/0x2)+parseInt(_0x28af89(0xb8))/0x3+-parseInt(_0x28af89(0xc3))/0x4*(-parseInt(_0x28af89(0xc7))/0x5)+parseInt(_0x28af89(0xc4))/0x6*(parseInt(_0x28af89(0xb7))/0x7)+-parseInt(_0x28af89(0xbe))/0x8*(-parseInt(_0x28af89(0xc8))/0x9)+-parseInt(_0x28af89(0xc5))/0xa+-parseInt(_0x28af89(0xb5))/0xb;if(_0x5d1f29===_0x3e4beb)break;else _0x2fe930['push'](_0x2fe930['shift']());}catch(_0x1c09ea){_0x2fe930['push'](_0x2fe930['shift']());}}}(a167_0x5547,0x3dfde));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a167_0x594685(0xb6));export function createDeterministicZipPackage(_0xddca0d){const _0x1fb477=a167_0x594685,_0x229d44={};for(const _0x116a4c of normalizeLocalFiles(_0xddca0d)){_0x229d44[_0x116a4c['path']]=fileContent(_0x116a4c);}return Buffer[_0x1fb477(0xc9)](zipSync(_0x229d44,{'level':0x0,'mtime':ZIP_MTIME}));}function a167_0x59ca(_0x37963e,_0x5c45fa){_0x37963e=_0x37963e-0xb5;const _0x5547d7=a167_0x5547();let _0x59ca11=_0x5547d7[_0x37963e];return _0x59ca11;}export function parseZipPackage(_0x54f7f1){const _0x1ce2a7=a167_0x594685;if(_0x54f7f1[_0x1ce2a7(0xc6)]<0x16)throw CliErrors[_0x1ce2a7(0xbd)](_0x1ce2a7(0xbb));let _0x3a947d;try{_0x3a947d=unzipSync(_0x54f7f1,{'filter'(_0x12eb88){const _0x5bdf68=_0x1ce2a7,_0x2e6a77=normalizeSkillRelativePath(_0x12eb88[_0x5bdf68(0xbc)]);if(_0x2e6a77[_0x5bdf68(0xbf)]('/'))throw CliErrors['validation']('Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20'+_0x2e6a77);return!![];}});}catch(_0x132653){if(isRuntimeSkillValidationError(_0x132653))throw _0x132653;throw CliErrors[_0x1ce2a7(0xbd)]('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');}return Object[_0x1ce2a7(0xc2)](_0x3a947d)['map'](([_0x45cebf,_0x41095c])=>({'path':normalizeSkillRelativePath(_0x45cebf),'bytes':Buffer[_0x1ce2a7(0xc9)](_0x41095c)}))['sort'](compareSkillFiles);}function isRuntimeSkillValidationError(_0x65a153){const _0x4f4a84=a167_0x594685;return typeof _0x65a153===_0x4f4a84(0xb9)&&_0x65a153!==null&&_0x4f4a84(0xba)in _0x65a153&&_0x65a153[_0x4f4a84(0xba)]==='validation_error';}function a167_0x5547(){const _0x900e68=['name','validation','10352vpeOAX','endsWith','482ILUpDS','1461WYCEou','entries','1021772jFQhfA','8058ivSaFz','982950DMdwtf','length','5hEwviT','2259vjIemp','from','10725110KyBUQP','1980-01-01T00:00:00.000Z','21wKcMBB','1172568mhrppS','object','code','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.'];a167_0x5547=function(){return _0x900e68;};return a167_0x5547();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1eff37,_0x140ce0){const _0xec6d75=a168_0xca63,_0x55f7c9=_0x1eff37();while(!![]){try{const _0x1a581a=-parseInt(_0xec6d75(0x131))/0x1+-parseInt(_0xec6d75(0x146))/0x2+parseInt(_0xec6d75(0x13e))/0x3*(-parseInt(_0xec6d75(0x121))/0x4)+parseInt(_0xec6d75(0x14b))/0x5*(parseInt(_0xec6d75(0x143))/0x6)+-parseInt(_0xec6d75(0x13c))/0x7+-parseInt(_0xec6d75(0x136))/0x8*(parseInt(_0xec6d75(0x12f))/0x9)+-parseInt(_0xec6d75(0x14c))/0xa*(-parseInt(_0xec6d75(0x123))/0xb);if(_0x1a581a===_0x140ce0)break;else _0x55f7c9['push'](_0x55f7c9['shift']());}catch(_0x2f0e92){_0x55f7c9['push'](_0x55f7c9['shift']());}}}(a168_0x36e8,0x50132));import{CliErrors}from'../../errors.js';function a168_0x36e8(){const _0x13e38e=['files','2336454hUkwwT','zipSha256','toLowerCase','212506GTNPxG','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','sha256','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','5mKUVsI','4660GqlEDN','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','68pWxiBp','ossPath','13827qDYMCG','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','get','some','Missing\x20','trim','Runtime\x20Skill\x20package\x20is\x20missing\x20','map','path','string','validation','621liOWxJ','schemaVersion','8672DniLQC','requireOssPath','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','isArray','set','2384ujvWUh','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','zipSize','object','toString','size','519064oPeQIn','isSafeInteger','77214CzSHAs','length','bytes','Runtime\x20Skill\x20package\x20size\x20mismatch.'];a168_0x36e8=function(){return _0x13e38e;};return a168_0x36e8();}import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';function a168_0xca63(_0x4732f0,_0x5c6ee1){_0x4732f0=_0x4732f0-0x121;const _0x36e83d=a168_0x36e8();let _0xca6365=_0x36e83d[_0x4732f0];return _0xca6365;}import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x138ec0){const _0x12dff6=a168_0xca63,_0x59130b=normalizeLocalFiles(_0x138ec0);if(!_0x59130b[_0x12dff6(0x127)](_0x19543c=>_0x19543c[_0x12dff6(0x12c)]===SKILL_FILE))throw CliErrors[_0x12dff6(0x12e)](_0x12dff6(0x128)+SKILL_FILE+'\x20in\x20Skill\x20file\x20package.');const _0x301c52=localFilesToManifestFiles(_0x59130b),_0x29ec99=createDeterministicZipPackage(_0x59130b);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x301c52),'zipSha256':bufferSha256(_0x29ec99),'zipSize':_0x29ec99['length'],'files':_0x301c52},'packageBytes':_0x29ec99,'packageBase64':_0x29ec99[_0x12dff6(0x13a)]('base64')};}export function verifyRuntimeSkillPackage(_0x5c77a4,_0x1b1b92){const _0x8e801f=a168_0xca63,_0xe6d5ee=normalizePackageManifest(_0x5c77a4,{'requireOssPath':![]});if(!_0xe6d5ee)throw CliErrors[_0x8e801f(0x12e)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackage(_0xe6d5ee,_0x1b1b92);}export function verifyRuntimeSkillBundle(_0x278b46,_0x3c2c86){const _0x25604d=a168_0xca63,_0x479cfc=normalizePackageManifest(_0x278b46,{'requireOssPath':![]});if(!_0x479cfc)throw CliErrors[_0x25604d(0x12e)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x479cfc,_0x3c2c86);}export function tryNormalizePackageManifest(_0x2010a8){return normalizePackageManifest(_0x2010a8,{'requireOssPath':![]});}export function requirePackageBytes(_0x448b9a,_0x174135){const _0x31d61a=a168_0xca63;if(!_0x174135||_0x174135['length']===0x0)throw CliErrors[_0x31d61a(0x12e)](_0x31d61a(0x148)+_0x448b9a);return _0x174135;}export function extractDownloadedPackage(_0x59c030){const _0x283a1d=a168_0xca63,_0x30f189=parseZipPackage(_0x59c030)[_0x283a1d(0x12b)](_0x617e9f=>({'path':_0x617e9f[_0x283a1d(0x12c)],'bytes':_0x617e9f[_0x283a1d(0x140)]}));if(!_0x30f189[_0x283a1d(0x127)](_0x1bb7cd=>_0x1bb7cd['path']===SKILL_FILE))throw CliErrors[_0x283a1d(0x12e)](_0x283a1d(0x12a)+SKILL_FILE+'.');return normalizeLocalFiles(_0x30f189);}export function localFilesToManifestFiles(_0x1bf290){const _0x160b3f=a168_0xca63;return normalizeLocalFiles(_0x1bf290)['map'](_0x366701=>({'path':_0x366701[_0x160b3f(0x12c)],'sha256':fileHash(_0x366701),'size':fileContent(_0x366701)[_0x160b3f(0x13f)]}));}function normalizePackageManifest(_0x88b29b,_0x5d9bc2){const _0x2e51ce=a168_0xca63;if(!_0x88b29b||typeof _0x88b29b!==_0x2e51ce(0x139)||Array[_0x2e51ce(0x134)](_0x88b29b))return undefined;const _0x459d4=_0x88b29b,_0x1a40f3=typeof _0x459d4[_0x2e51ce(0x122)]===_0x2e51ce(0x12d)?_0x459d4['ossPath'][_0x2e51ce(0x129)]():undefined;if(_0x5d9bc2[_0x2e51ce(0x132)]&&!_0x1a40f3)return undefined;if(!Array[_0x2e51ce(0x134)](_0x459d4[_0x2e51ce(0x142)])||_0x459d4['files'][_0x2e51ce(0x13f)]===0x0)return undefined;if(!isSha256Hex(_0x459d4['treeSha256']))throw CliErrors[_0x2e51ce(0x12e)](_0x2e51ce(0x14d));if(!isSha256Hex(_0x459d4[_0x2e51ce(0x144)]))throw CliErrors[_0x2e51ce(0x12e)](_0x2e51ce(0x124));if(!Number['isSafeInteger'](_0x459d4[_0x2e51ce(0x138)])||_0x459d4[_0x2e51ce(0x138)]<0x0)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');const _0x87f461=normalizeManifestFiles(_0x459d4['files']);if(!_0x87f461[_0x2e51ce(0x127)](_0x4de801=>_0x4de801[_0x2e51ce(0x12c)]===SKILL_FILE))throw CliErrors[_0x2e51ce(0x12e)](_0x2e51ce(0x147)+SKILL_FILE+'.');const _0x5992e0=fileTreeHash(_0x87f461);if(_0x5992e0!==_0x459d4['treeSha256']['toLowerCase']())throw CliErrors['validation']('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number[_0x2e51ce(0x13d)](_0x459d4[_0x2e51ce(0x130)])?_0x459d4[_0x2e51ce(0x130)]:0x2,'ossPath':_0x1a40f3,'treeSha256':_0x5992e0,'zipSha256':_0x459d4['zipSha256'][_0x2e51ce(0x145)](),'zipSize':_0x459d4[_0x2e51ce(0x138)],'files':_0x87f461};}function extractAndVerifyPackage(_0xa0d54f,_0x170229){const _0x220921=a168_0xca63,_0x5360fa=normalizePackageManifest(_0xa0d54f,{'requireOssPath':![]});if(!_0x5360fa)throw CliErrors[_0x220921(0x12e)](_0x220921(0x14a));if(_0x170229['length']!==_0x5360fa['zipSize'])throw CliErrors[_0x220921(0x12e)](_0x220921(0x141));const _0x2a2cf0=bufferSha256(_0x170229);if(_0x2a2cf0!==_0x5360fa['zipSha256'])throw CliErrors[_0x220921(0x12e)]('Runtime\x20Skill\x20package\x20sha256\x20mismatch.');return extractAndVerifyPackageFiles(_0x5360fa,_0x170229);}function extractAndVerifyPackageFiles(_0xdec452,_0x25722){const _0x3200e9=a168_0xca63,_0x3637dc=parseZipPackage(_0x25722);if(_0x3637dc['length']!==_0xdec452['files'][_0x3200e9(0x13f)])throw CliErrors[_0x3200e9(0x12e)]('Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.');const _0x7c6b4e=new Map();for(const _0x589cbf of _0x3637dc){if(_0x7c6b4e['has'](_0x589cbf['path']))throw CliErrors['validation']('Duplicate\x20Skill\x20package\x20entry:\x20'+_0x589cbf[_0x3200e9(0x12c)]);_0x7c6b4e[_0x3200e9(0x135)](_0x589cbf[_0x3200e9(0x12c)],_0x589cbf);}const _0x25b4a7=[];for(const _0x54f0ba of _0xdec452[_0x3200e9(0x142)]){const _0x3b9747=_0x7c6b4e[_0x3200e9(0x126)](_0x54f0ba['path']);if(!_0x3b9747)throw CliErrors[_0x3200e9(0x12e)](_0x3200e9(0x137)+_0x54f0ba[_0x3200e9(0x12c)]);if(_0x3b9747[_0x3200e9(0x140)][_0x3200e9(0x13f)]!==_0x54f0ba[_0x3200e9(0x13b)])throw CliErrors[_0x3200e9(0x12e)](_0x3200e9(0x125)+_0x54f0ba[_0x3200e9(0x12c)]);const _0x5635c1=bufferSha256(_0x3b9747[_0x3200e9(0x140)]);if(_0x5635c1!==_0x54f0ba[_0x3200e9(0x149)])throw CliErrors[_0x3200e9(0x12e)](_0x3200e9(0x133)+_0x54f0ba[_0x3200e9(0x12c)]);_0x25b4a7['push']({'path':_0x54f0ba[_0x3200e9(0x12c)],'bytes':_0x3b9747[_0x3200e9(0x140)]});}return normalizeLocalFiles(_0x25b4a7);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2be006,_0xba1cdf){var _0x5e446d=a169_0x2983,_0x4b3e21=_0x2be006();while(!![]){try{var _0x2e1437=parseInt(_0x5e446d(0x19d))/0x1*(-parseInt(_0x5e446d(0x1a3))/0x2)+parseInt(_0x5e446d(0x19e))/0x3+-parseInt(_0x5e446d(0x1a4))/0x4*(parseInt(_0x5e446d(0x1a2))/0x5)+-parseInt(_0x5e446d(0x1a0))/0x6+parseInt(_0x5e446d(0x1a1))/0x7+parseInt(_0x5e446d(0x19f))/0x8+parseInt(_0x5e446d(0x1a5))/0x9;if(_0x2e1437===_0xba1cdf)break;else _0x4b3e21['push'](_0x4b3e21['shift']());}catch(_0x20ddcc){_0x4b3e21['push'](_0x4b3e21['shift']());}}}(a169_0x2a2b,0xaf1af));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{resolveRuntimeSkillInstallTarget}from'./runtime-skill-sync/install-target.js';function a169_0x2a2b(){var _0x3b977e=['237713tMdcno','1002090PUMEsc','145796SMRooD','28smRzRJ','26623782jgTMAv','16DSnKuh','2873499CPpugl','379224ggiYda','4265208QLZBES'];a169_0x2a2b=function(){return _0x3b977e;};return a169_0x2a2b();}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';function a169_0x2983(_0x7ed30,_0x237f8c){_0x7ed30=_0x7ed30-0x19d;var _0x2a2b4c=a169_0x2a2b();var _0x298327=_0x2a2b4c[_0x7ed30];return _0x298327;}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_0x393c0c=a170_0x57d0;(function(_0x2af4f4,_0x14a992){const _0xd81e62=a170_0x57d0,_0x5d63d1=_0x2af4f4();while(!![]){try{const _0x57ab92=-parseInt(_0xd81e62(0x1a0))/0x1+-parseInt(_0xd81e62(0x18a))/0x2+-parseInt(_0xd81e62(0x19d))/0x3*(-parseInt(_0xd81e62(0x192))/0x4)+-parseInt(_0xd81e62(0x1a3))/0x5+parseInt(_0xd81e62(0x19c))/0x6+-parseInt(_0xd81e62(0x1a6))/0x7*(-parseInt(_0xd81e62(0x193))/0x8)+parseInt(_0xd81e62(0x18e))/0x9*(-parseInt(_0xd81e62(0x1ab))/0xa);if(_0x57ab92===_0x14a992)break;else _0x5d63d1['push'](_0x5d63d1['shift']());}catch(_0x6119c4){_0x5d63d1['push'](_0x5d63d1['shift']());}}}(a170_0x16af,0xf144e));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a170_0x393c0c(0x1aa),a170_0x393c0c(0x189));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a170_0x393c0c(0x198)),join(a170_0x393c0c(0x197),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function a170_0x57d0(_0x1cb8ad,_0x494975){_0x1cb8ad=_0x1cb8ad-0x186;const _0x16afd2=a170_0x16af();let _0x57d08f=_0x16afd2[_0x1cb8ad];return _0x57d08f;}function readLockLookup(_0x4463e8,_0x527163){const _0x47ecf4=a170_0x393c0c;if(!existsSync(_0x4463e8))return{'kind':_0x47ecf4(0x18f)};let _0x107f57;try{_0x107f57=JSON['parse'](readFileSync(_0x4463e8,_0x47ecf4(0x1a2)));}catch(_0x357d2e){return{'kind':_0x47ecf4(0x19b),'reason':_0x4463e8+_0x47ecf4(0x19a)+_0x357d2e[_0x47ecf4(0x188)]};}const _0x236160=_0x107f57;if(typeof _0x236160?.['version']!==_0x47ecf4(0x199)||!SUPPORTED_LOCK_VERSIONS[_0x47ecf4(0x19e)](_0x236160[_0x47ecf4(0x194)]))return{'kind':'unusable','reason':_0x4463e8+_0x47ecf4(0x18d)+String(_0x236160?.[_0x47ecf4(0x194)])};if(!_0x236160[_0x47ecf4(0x198)]||typeof _0x236160['skills']!==_0x47ecf4(0x18b))return{'kind':_0x47ecf4(0x19b),'reason':_0x4463e8+_0x47ecf4(0x1a4)};return _0x236160[_0x47ecf4(0x198)][_0x527163]?{'kind':_0x47ecf4(0x187)}:{'kind':'not-recorded'};}function a170_0x16af(){const _0x5c4da4=['recorded','message','.skill-lock.json','468760DgWGWv','object','unverifiable','\x20uses\x20unsupported\x20version\x20','4046904egsJFz','not-recorded','kind','join','3908908DuZybj','32dYDvTk','version','home','find','.claude','skills','number','\x20is\x20unreadable:\x20','unusable','690144BGCYYi','6awbyeB','includes','SKILL.md','1044413opLDyk','map','utf8','2116615rzysUd','\x20has\x20no\x20skills\x20map','reason','2660329oEddjA','present','lockFile','globalSkillsDirs','.agents','20BYgcla','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','absent'];a170_0x16af=function(){return _0x5c4da4;};return a170_0x16af();}export function resolveInstalledSkill(_0x286fc4,_0x3f097e){const _0x32c770=a170_0x393c0c,_0x33acd1=_0x3f097e?.[_0x32c770(0x195)]??homedir(),_0x3be972=_0x3f097e?.[_0x32c770(0x1a9)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x32c770(0x1a1)](_0x563b6f=>join(_0x33acd1,_0x563b6f)),_0x1911bf=_0x3f097e?.[_0x32c770(0x1a8)]??join(_0x33acd1,SKILL_LOCK_RELATIVE_PATH),_0x55d179=_0x3be972[_0x32c770(0x1a1)](_0x1bbb5d=>join(_0x1bbb5d,_0x286fc4,_0x32c770(0x19f))),_0x532e30=_0x55d179[_0x32c770(0x196)](_0x355e1b=>existsSync(_0x355e1b));if(_0x532e30)return{'state':_0x32c770(0x1a7),'path':_0x532e30};const _0x1f2e1c=readLockLookup(_0x1911bf,_0x286fc4);if(_0x1f2e1c[_0x32c770(0x190)]==='unusable')return{'state':_0x32c770(0x18c),'reason':_0x1f2e1c[_0x32c770(0x1a5)]};if(_0x1f2e1c[_0x32c770(0x190)]===_0x32c770(0x187))return{'state':_0x32c770(0x18c),'reason':_0x1911bf+'\x20records\x20\x22'+_0x286fc4+_0x32c770(0x1ac)+('('+_0x55d179[_0x32c770(0x191)](',\x20')+')')};return{'state':_0x32c770(0x186),'checked':_0x55d179};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x289fca,_0x3d89e4){const _0x508097=a171_0x5d7c,_0x54dac5=_0x289fca();while(!![]){try{const _0x16bdc7=-parseInt(_0x508097(0x10b))/0x1*(parseInt(_0x508097(0xfa))/0x2)+parseInt(_0x508097(0x100))/0x3+-parseInt(_0x508097(0x10a))/0x4*(parseInt(_0x508097(0x109))/0x5)+-parseInt(_0x508097(0x107))/0x6*(-parseInt(_0x508097(0xfe))/0x7)+-parseInt(_0x508097(0xf6))/0x8+-parseInt(_0x508097(0x101))/0x9+-parseInt(_0x508097(0xfc))/0xa*(-parseInt(_0x508097(0x102))/0xb);if(_0x16bdc7===_0x3d89e4)break;else _0x54dac5['push'](_0x54dac5['shift']());}catch(_0x53a055){_0x54dac5['push'](_0x54dac5['shift']());}}}(a171_0x47bb,0x3e84f));const REDACTED_ACCESS_KEY='<redacted>';export function maskCliAccessKey(_0xcf90bb){const _0x23ad9f=a171_0x5d7c;if(typeof _0xcf90bb!==_0x23ad9f(0xf9)||_0xcf90bb[_0x23ad9f(0x106)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0xcf90bb['slice'](0x0,0x8)+'*'[_0x23ad9f(0x108)](_0xcf90bb[_0x23ad9f(0x106)]-0x8);}export function redactCliConfigCredentials(_0x114612){const _0x3bdd6d=a171_0x5d7c,_0x1de1b7={..._0x114612};return Object['prototype'][_0x3bdd6d(0xf7)][_0x3bdd6d(0xfb)](_0x1de1b7,_0x3bdd6d(0x104))&&(_0x1de1b7[_0x3bdd6d(0x104)]=maskCliAccessKey(_0x1de1b7[_0x3bdd6d(0x104)])),_0x1de1b7[_0x3bdd6d(0x10c)]&&typeof _0x1de1b7[_0x3bdd6d(0x10c)]==='object'&&!Array[_0x3bdd6d(0x105)](_0x1de1b7[_0x3bdd6d(0x10c)])&&(_0x1de1b7['apps']=redactLegacyAppCredentials(_0x1de1b7['apps'])),_0x1de1b7;}function a171_0x47bb(){const _0x6d6edd=['88zkOmYv','entries','accessKey','isArray','length','12EnCTJf','repeat','10bRwuwG','340324BjVVyX','3337ccPTWw','apps','test','2697680RlrUMB','hasOwnProperty','prototype','string','48YvLVrC','call','677450ypRYdo','map','618072cxLFKF','object','1472814NEcvYa','3293559RNOQKF'];a171_0x47bb=function(){return _0x6d6edd;};return a171_0x47bb();}export function redactCliConfigValue(_0x21562d,_0xac5989){const _0x5bd369=a171_0x5d7c;if(_0x21562d===_0x5bd369(0x104)||/^apps\.[^.]+\.accessKey$/[_0x5bd369(0x10d)](_0x21562d))return maskCliAccessKey(_0xac5989);if(_0x21562d===_0x5bd369(0x10c)&&_0xac5989&&typeof _0xac5989===_0x5bd369(0xff)&&!Array[_0x5bd369(0x105)](_0xac5989))return redactLegacyAppCredentials(_0xac5989);if(/^apps\.[^.]+$/[_0x5bd369(0x10d)](_0x21562d)&&_0xac5989&&typeof _0xac5989===_0x5bd369(0xff)&&!Array[_0x5bd369(0x105)](_0xac5989)){const _0x2c4a3e=_0xac5989;return Object[_0x5bd369(0xf8)][_0x5bd369(0xf7)][_0x5bd369(0xfb)](_0x2c4a3e,_0x5bd369(0x104))?{..._0x2c4a3e,'accessKey':maskCliAccessKey(_0x2c4a3e[_0x5bd369(0x104)])}:_0xac5989;}return _0xac5989;}function a171_0x5d7c(_0x305566,_0x3d3f1a){_0x305566=_0x305566-0xf6;const _0x47bbaa=a171_0x47bb();let _0x5d7c4a=_0x47bbaa[_0x305566];return _0x5d7c4a;}function redactLegacyAppCredentials(_0x40f59b){const _0x201a43=a171_0x5d7c;return Object['fromEntries'](Object[_0x201a43(0x103)](_0x40f59b)[_0x201a43(0xfd)](([_0xd01443,_0x59e961])=>{const _0x49ffef=_0x201a43;if(!_0x59e961||typeof _0x59e961!==_0x49ffef(0xff)||Array[_0x49ffef(0x105)](_0x59e961))return[_0xd01443,_0x59e961];const _0x6b054f={..._0x59e961};return Object[_0x49ffef(0xf8)][_0x49ffef(0xf7)][_0x49ffef(0xfb)](_0x6b054f,_0x49ffef(0x104))&&(_0x6b054f[_0x49ffef(0x104)]=maskCliAccessKey(_0x6b054f[_0x49ffef(0x104)])),[_0xd01443,_0x6b054f];}));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a172_0x8492(_0x442767,_0x165b91){_0x442767=_0x442767-0x1ab;const _0x3038cb=a172_0x3038();let _0x84920b=_0x3038cb[_0x442767];return _0x84920b;}(function(_0x35c02e,_0x49d3e4){const _0x3d5192=a172_0x8492,_0x5912b0=_0x35c02e();while(!![]){try{const _0x2cd1c8=parseInt(_0x3d5192(0x1ad))/0x1+parseInt(_0x3d5192(0x1b1))/0x2+-parseInt(_0x3d5192(0x1ae))/0x3*(parseInt(_0x3d5192(0x1ab))/0x4)+parseInt(_0x3d5192(0x1af))/0x5+parseInt(_0x3d5192(0x1ac))/0x6+-parseInt(_0x3d5192(0x1b0))/0x7+-parseInt(_0x3d5192(0x1b2))/0x8*(parseInt(_0x3d5192(0x1b3))/0x9);if(_0x2cd1c8===_0x49d3e4)break;else _0x5912b0['push'](_0x5912b0['shift']());}catch(_0x3089b6){_0x5912b0['push'](_0x5912b0['shift']());}}}(a172_0x3038,0x866c2));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a172_0x3038(){const _0x356fe7=['1145286ZOijFv','1044329TvfuSM','39zgkZGe','4014710RzFAcy','4284189pzrGHo','241416pTeQMP','40tJppbr','819954iTdzkg','166372dhHdyi'];a172_0x3038=function(){return _0x356fe7;};return a172_0x3038();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x815345,_0x3fd1d4){const _0x651266=a173_0x4108,_0x1831e2=_0x815345();while(!![]){try{const _0x552af0=parseInt(_0x651266(0x161))/0x1*(parseInt(_0x651266(0x16e))/0x2)+parseInt(_0x651266(0x166))/0x3*(parseInt(_0x651266(0x16c))/0x4)+parseInt(_0x651266(0x170))/0x5+parseInt(_0x651266(0x16a))/0x6*(parseInt(_0x651266(0x173))/0x7)+-parseInt(_0x651266(0x165))/0x8*(parseInt(_0x651266(0x164))/0x9)+-parseInt(_0x651266(0x168))/0xa+parseInt(_0x651266(0x169))/0xb*(-parseInt(_0x651266(0x15c))/0xc);if(_0x552af0===_0x3fd1d4)break;else _0x1831e2['push'](_0x1831e2['shift']());}catch(_0x1a4cbb){_0x1831e2['push'](_0x1831e2['shift']());}}}(a173_0x596c,0xcab58));import a173_0x199135 from'semver';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CliErrors}from'../errors.js';function a173_0x596c(){const _0x516a36=['minimumVersionMessage','currentVersion','10567361QbtNBQ','latest','minimumVersion','stableVersion','unavailable','516UGBSRh','Minimum\x20supported:\x20','Current\x20version:\x20','Upgrade\x20command:\x20','belowMinimum','1613xRixKK','filter','validation','5337wFnqAf','16784aNnokb','6339FJsLBT','upgradeMessage','1259080HnOnyr','442574HHzyil','6WHONry','join','12xHGmER','valid','1166VMBFcK','npm\x20install\x20-g\x20','7370195qrJZdz'];a173_0x596c=function(){return _0x516a36;};return a173_0x596c();}function a173_0x4108(_0x1240ba,_0x5696d4){_0x1240ba=_0x1240ba-0x15b;const _0x596ca9=a173_0x596c();let _0x4108ab=_0x596ca9[_0x1240ba];return _0x4108ab;}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';export function evaluateCliVersionPolicy(_0x1a606e,_0x37d165){const _0x5ba5bf=a173_0x4108,_0x439a11=a173_0x199135[_0x5ba5bf(0x16d)](_0x1a606e)===_0x1a606e,_0x37445b=_0x37d165?.[_0x5ba5bf(0x176)]??null,_0x287da1=_0x37d165?.[_0x5ba5bf(0x175)]??null,_0x50d022=Boolean(_0x439a11&&_0x37445b&&a173_0x199135['lt'](_0x1a606e,_0x37445b)),_0x176a7b=Boolean(_0x439a11&&_0x287da1&&a173_0x199135['lt'](_0x1a606e,_0x287da1));return{'currentVersion':_0x1a606e,'stableVersion':_0x37445b,'minimumVersion':_0x287da1,'needsUpgrade':_0x50d022||_0x176a7b,'belowMinimum':_0x176a7b,'upgradeMessage':_0x37d165?.[_0x5ba5bf(0x167)],'minimumVersionMessage':_0x37d165?.['minimumVersionMessage']};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x37a28e){const _0x5b132c=a173_0x4108;return _0x5b132c(0x16f)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x37a28e['stableVersion']??_0x5b132c(0x174));}export function assertCliVersionSupported(_0x5cdc13){const _0xd3c72=a173_0x4108;if(!_0x5cdc13[_0xd3c72(0x160)])return;const _0x2202b6=[_0x5cdc13[_0xd3c72(0x171)],_0xd3c72(0x15e)+_0x5cdc13[_0xd3c72(0x172)],_0xd3c72(0x15d)+_0x5cdc13[_0xd3c72(0x175)],'Recommended\x20stable:\x20'+(_0x5cdc13[_0xd3c72(0x176)]??_0xd3c72(0x15b)),_0xd3c72(0x15f)+getCliUpgradeCommand(_0x5cdc13)][_0xd3c72(0x162)](Boolean)[_0xd3c72(0x16b)]('\x0a');throw CliErrors[_0xd3c72(0x163)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.',_0x2202b6);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2346cb,_0x4adc7e){const _0x4850c9=a174_0x1b51,_0x311a57=_0x2346cb();while(!![]){try{const _0x492d84=parseInt(_0x4850c9(0x14e))/0x1*(parseInt(_0x4850c9(0x152))/0x2)+-parseInt(_0x4850c9(0x148))/0x3+parseInt(_0x4850c9(0x14f))/0x4+parseInt(_0x4850c9(0x147))/0x5*(-parseInt(_0x4850c9(0x13d))/0x6)+parseInt(_0x4850c9(0x144))/0x7*(-parseInt(_0x4850c9(0x140))/0x8)+parseInt(_0x4850c9(0x13f))/0x9*(-parseInt(_0x4850c9(0x151))/0xa)+-parseInt(_0x4850c9(0x150))/0xb*(-parseInt(_0x4850c9(0x146))/0xc);if(_0x492d84===_0x4adc7e)break;else _0x311a57['push'](_0x311a57['shift']());}catch(_0x288f0a){_0x311a57['push'](_0x311a57['shift']());}}}(a174_0x34bc,0xaf676));import a174_0x23db29 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(_0x1c3e36){const _0x401c1e=a174_0x1b51;return typeof _0x1c3e36==='string'&&_0x1c3e36[_0x401c1e(0x14b)]()?_0x1c3e36[_0x401c1e(0x14b)]():null;}function pickStrictSemver(_0x35e602){const _0x2ed077=a174_0x1b51,_0x16b196=pickString(_0x35e602);return _0x16b196&&a174_0x23db29[_0x2ed077(0x153)](_0x16b196)===_0x16b196?_0x16b196:null;}export function normalizeCliVersionPolicy(_0x6282ae){const _0x347689=a174_0x1b51;if(!_0x6282ae||typeof _0x6282ae!=='object')return null;const _0x3cec35=_0x6282ae,_0x36f0d4=_0x3cec35['cli']&&typeof _0x3cec35[_0x347689(0x143)]===_0x347689(0x142)?_0x3cec35[_0x347689(0x143)]:_0x3cec35,_0x23f097=pickStrictSemver(_0x36f0d4['stableVersion']??_0x36f0d4[_0x347689(0x14c)]??_0x36f0d4[_0x347689(0x141)]),_0x278787=pickStrictSemver(_0x36f0d4[_0x347689(0x13c)]??_0x36f0d4[_0x347689(0x13b)]);if(!_0x23f097&&!_0x278787)return null;if(_0x23f097&&_0x278787&&a174_0x23db29['gt'](_0x278787,_0x23f097))return null;return{'stableVersion':_0x23f097,'minimumVersion':_0x278787,'upgradeMessage':pickString(_0x36f0d4[_0x347689(0x13e)])??undefined,'minimumVersionMessage':pickString(_0x36f0d4['minimumVersionMessage'])??undefined};}function a174_0x34bc(){const _0x38c3d4=['finally','8616HqwYAk','166685zyVmWH','730929VchmzS','application/json','then','trim','latestVersion','timeout','71fZgCRU','2099980pqgjBw','25674BDPbWx','2850kXaIeq','2550RrnuaT','valid','now','minVersion','minimumVersion','24fluBLa','upgradeMessage','21429JrxakC','2069208CfQXpm','recommendedVersion','object','cli','14blJocy'];a174_0x34bc=function(){return _0x38c3d4;};return a174_0x34bc();}export async function fetchCliVersionPolicy(){const _0x10570d=a174_0x1b51;try{const _0x5d1ae9=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x10570d(0x149)},'signal':AbortSignal[_0x10570d(0x14d)](FETCH_TIMEOUT_MS)});if(!_0x5d1ae9['ok'])return null;return normalizeCliVersionPolicy(await _0x5d1ae9['json']());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x56d3d0=a174_0x1b51,_0x5249af=Date[_0x56d3d0(0x13a)]();if(hasCachedPolicy){const _0x301d12=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x5249af-cachedAt<_0x301d12)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x56d3d0(0x14a)](_0x47f4ac=>{const _0x454183=_0x56d3d0;return cachedPolicy=_0x47f4ac,cachedAt=Date[_0x454183(0x13a)](),hasCachedPolicy=!![],_0x47f4ac;})[_0x56d3d0(0x145)](()=>{pendingPolicy=null;}),pendingPolicy;}function a174_0x1b51(_0x450f6e,_0x5663cb){_0x450f6e=_0x450f6e-0x13a;const _0x34bc46=a174_0x34bc();let _0x1b51b1=_0x34bc46[_0x450f6e];return _0x1b51b1;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a175_0x1e8ade=a175_0x3e0c;(function(_0x14ba4d,_0x241275){const _0x904b53=a175_0x3e0c,_0x4272d7=_0x14ba4d();while(!![]){try{const _0x368dfd=parseInt(_0x904b53(0xda))/0x1*(parseInt(_0x904b53(0xdd))/0x2)+parseInt(_0x904b53(0xf2))/0x3+parseInt(_0x904b53(0xba))/0x4*(parseInt(_0x904b53(0xbc))/0x5)+-parseInt(_0x904b53(0xd5))/0x6+parseInt(_0x904b53(0xe1))/0x7*(parseInt(_0x904b53(0xf3))/0x8)+parseInt(_0x904b53(0xd1))/0x9*(parseInt(_0x904b53(0xc0))/0xa)+-parseInt(_0x904b53(0xc2))/0xb;if(_0x368dfd===_0x241275)break;else _0x4272d7['push'](_0x4272d7['shift']());}catch(_0xc18c9f){_0x4272d7['push'](_0x4272d7['shift']());}}}(a175_0x59f8,0xe137c));import a175_0xaf4018 from'winston';function a175_0x3e0c(_0x2765fa,_0x561821){_0x2765fa=_0x2765fa-0xba;const _0x59f8fd=a175_0x59f8();let _0x3e0c8b=_0x59f8fd[_0x2765fa];return _0x3e0c8b;}import a175_0x4d0c8a from'node:fs';import a175_0x24bec4 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';function a175_0x59f8(){const _0x423d62=['blue','details','map','Completed:\x20','initWinstonLogger','4187724DpWTca','76504TrhgNy','20zUFEjo','toISOString','827940XgxoiZ','addColors','logFileName','timestamp','40WCoNhX','red','28834520wLEULY','Starting:\x20','format','setRawCommand','logFilePath','duration','log','dirname','command','setLogPath','winstonLogger','info','utf8','join','currentRawCommand','327033PKxNlp','clear','getWinstonInstance','clearLogs','5883096YMcLaM','yellow','Failed\x20to\x20read\x20logs:','success','writeFileSync','1FNUKEf','unknown','now','2914066FNzTEF','Failed:\x20','readLogs','message','511IpPyhe','stringify','readFileSync','transports','existsSync','errors','green','createLogger','warn','error','printf','File'];a175_0x59f8=function(){return _0x423d62;};return a175_0x59f8();}class Logger{['winstonLogger'];[a175_0x1e8ade(0xc6)]='';[a175_0x1e8ade(0xd0)]='';constructor(){}[a175_0x1e8ade(0xc5)](_0x2b89c1){const _0x49c557=a175_0x1e8ade;this[_0x49c557(0xd0)]=_0x2b89c1;}[a175_0x1e8ade(0xcb)](_0x3f8ab3){const _0x14242c=a175_0x1e8ade;this[_0x14242c(0xc6)]=a175_0x24bec4[_0x14242c(0xcf)](_0x3f8ab3,PRODUCT_CONFIG[_0x14242c(0xbe)]),this[_0x14242c(0xcc)]&&this['winstonLogger'][_0x14242c(0xd2)](),this[_0x14242c(0xf1)]();}[a175_0x1e8ade(0xf1)](){const _0x3ef0c7=a175_0x1e8ade,_0x52b737=a175_0x24bec4[_0x3ef0c7(0xc9)](this['logFilePath']);!a175_0x4d0c8a['existsSync'](_0x52b737)&&a175_0x4d0c8a['mkdirSync'](_0x52b737,{'recursive':!![]});const _0x370416=a175_0xaf4018[_0x3ef0c7(0xc4)]['combine'](a175_0xaf4018['format'][_0x3ef0c7(0xbf)](),a175_0xaf4018['format'][_0x3ef0c7(0xe6)]({'stack':!![]}),a175_0xaf4018[_0x3ef0c7(0xc4)][_0x3ef0c7(0xeb)](_0x154465=>{const _0x3968eb=_0x3ef0c7,_0xb2e589={'timestamp':_0x154465['timestamp']||new Date()[_0x3968eb(0xbb)](),'level':_0x154465['level']||_0x3968eb(0xcd),'command':_0x154465[_0x3968eb(0xca)]||_0x3968eb(0xdb),'rawCommand':_0x154465['rawCommand']||this[_0x3968eb(0xd0)]||undefined,'message':_0x154465[_0x3968eb(0xe0)]||'','duration':_0x154465[_0x3968eb(0xc7)]||undefined,'details':_0x154465[_0x3968eb(0xee)]||undefined};return JSON[_0x3968eb(0xe2)](_0xb2e589);}));this['winstonLogger']=a175_0xaf4018[_0x3ef0c7(0xe8)]({'level':_0x3ef0c7(0xcd),'format':_0x370416,'transports':[new a175_0xaf4018[(_0x3ef0c7(0xe4))][(_0x3ef0c7(0xec))]({'filename':this[_0x3ef0c7(0xc6)],'level':_0x3ef0c7(0xcd)})],'silent':![]}),a175_0xaf4018[_0x3ef0c7(0xbd)]({'success':_0x3ef0c7(0xe7),'error':_0x3ef0c7(0xc1),'warn':_0x3ef0c7(0xd6),'info':_0x3ef0c7(0xed)});}[a175_0x1e8ade(0xcd)](_0x434a17,_0x3499e3,_0x4ff697){const _0x166bbe=a175_0x1e8ade;if(!this[_0x166bbe(0xc6)]||!this[_0x166bbe(0xcc)])return;this[_0x166bbe(0xcc)][_0x166bbe(0xcd)](_0x3499e3,{'command':_0x434a17,'details':_0x4ff697});}['success'](_0x326898,_0x564e38,_0x4e9e34,_0x387940){const _0x15d195=a175_0x1e8ade;if(!this['logFilePath']||!this[_0x15d195(0xcc)])return;this[_0x15d195(0xcc)][_0x15d195(0xc8)](_0x15d195(0xcd),_0x564e38,{'level':_0x15d195(0xd8),'command':_0x326898,'duration':_0x4e9e34,'details':_0x387940});}['error'](_0x528e2d,_0x29c4e8,_0x4d92e0){const _0x443e52=a175_0x1e8ade;if(!this[_0x443e52(0xc6)]||!this[_0x443e52(0xcc)])return;this['winstonLogger'][_0x443e52(0xea)](_0x29c4e8,{'command':_0x528e2d,'details':_0x4d92e0});}[a175_0x1e8ade(0xe9)](_0x16acec,_0x29bd95,_0x7ac9c5){const _0x204845=a175_0x1e8ade;if(!this[_0x204845(0xc6)]||!this['winstonLogger'])return;this[_0x204845(0xcc)][_0x204845(0xe9)](_0x29bd95,{'command':_0x16acec,'details':_0x7ac9c5});}async['logTask'](_0x2cca05,_0x2574e5,_0x300b76){const _0x471e17=a175_0x1e8ade,_0x166e28=Date[_0x471e17(0xdc)]();this['info'](_0x2cca05,_0x471e17(0xc3)+_0x2574e5);try{const _0x5f2594=await _0x300b76(),_0x4663fa=Date[_0x471e17(0xdc)]()-_0x166e28;return this['success'](_0x2cca05,_0x471e17(0xf0)+_0x2574e5,_0x4663fa),_0x5f2594;}catch(_0x364e50){const _0x41a54a=Date['now']()-_0x166e28;this['error'](_0x2cca05,_0x471e17(0xde)+_0x2574e5,{'error':_0x364e50 instanceof Error?_0x364e50[_0x471e17(0xe0)]:String(_0x364e50),'duration':_0x41a54a});throw _0x364e50;}}[a175_0x1e8ade(0xdf)](){const _0x1f9913=a175_0x1e8ade;try{if(!a175_0x4d0c8a[_0x1f9913(0xe5)](this['logFilePath']))return[];const _0x198fbb=a175_0x4d0c8a[_0x1f9913(0xe3)](this[_0x1f9913(0xc6)],_0x1f9913(0xce));return _0x198fbb['split'](/\r?\n/)['filter'](_0x548f14=>_0x548f14['trim']())[_0x1f9913(0xef)](_0x3adea9=>JSON['parse'](_0x3adea9));}catch(_0x5ee440){return console[_0x1f9913(0xe9)](_0x1f9913(0xd7),_0x5ee440),[];}}[a175_0x1e8ade(0xd4)](){const _0x487840=a175_0x1e8ade;try{a175_0x4d0c8a[_0x487840(0xe5)](this['logFilePath'])&&a175_0x4d0c8a[_0x487840(0xd9)](this[_0x487840(0xc6)],'',_0x487840(0xce));}catch(_0x4484ca){console['warn']('Failed\x20to\x20clear\x20logs:',_0x4484ca);}}[a175_0x1e8ade(0xd3)](){return this['winstonLogger'];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a176_0x3b6357=a176_0x4931;(function(_0x3dcbd9,_0x290eef){const _0x33490b=a176_0x4931,_0x45933b=_0x3dcbd9();while(!![]){try{const _0x16f10c=-parseInt(_0x33490b(0x9b))/0x1*(-parseInt(_0x33490b(0x97))/0x2)+parseInt(_0x33490b(0x9c))/0x3+-parseInt(_0x33490b(0x8f))/0x4*(parseInt(_0x33490b(0x99))/0x5)+-parseInt(_0x33490b(0x93))/0x6+-parseInt(_0x33490b(0x96))/0x7*(-parseInt(_0x33490b(0x9a))/0x8)+parseInt(_0x33490b(0x8a))/0x9+parseInt(_0x33490b(0x9d))/0xa;if(_0x16f10c===_0x290eef)break;else _0x45933b['push'](_0x45933b['shift']());}catch(_0x598d56){_0x45933b['push'](_0x45933b['shift']());}}}(a176_0x535d,0xc45b5));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a176_0x3b6357(0x9f)]),MIN_SAFE_INTEGER=BigInt(Number[a176_0x3b6357(0x95)]);function a176_0x4931(_0x561629,_0x538962){_0x561629=_0x561629-0x8a;const _0x535dc1=a176_0x535d();let _0x4931fb=_0x535dc1[_0x561629];return _0x4931fb;}let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x4e693d){const _0x2aeb6e=a176_0x3b6357;if(_0x4e693d[_0x2aeb6e(0x8e)]('.')||_0x4e693d[_0x2aeb6e(0x8e)]('e')||_0x4e693d[_0x2aeb6e(0x8e)]('E'))return![];const _0x488760=BigInt(_0x4e693d);return _0x488760>MAX_SAFE_INTEGER||_0x488760<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x43c514){const _0x3196fe=a176_0x3b6357;let _0xf84cd4='',_0xd7580b=![],_0x3afcce=![];for(let _0x5d428a=0x0;_0x5d428a<_0x43c514[_0x3196fe(0x98)];){const _0x2675f8=_0x43c514[_0x5d428a];if(_0xd7580b){_0xf84cd4+=_0x2675f8,_0x5d428a+=0x1;if(_0x3afcce)_0x3afcce=![];else{if(_0x2675f8==='\x5c')_0x3afcce=!![];else _0x2675f8==='\x22'&&(_0xd7580b=![]);}continue;}if(_0x2675f8==='\x22'){_0xd7580b=!![],_0xf84cd4+=_0x2675f8,_0x5d428a+=0x1;continue;}if(_0x2675f8==='-'||_0x2675f8>='0'&&_0x2675f8<='9'){const _0x46dd4c=JSON_NUMBER_PATTERN[_0x3196fe(0x8c)](_0x43c514['slice'](_0x5d428a))?.[0x0];if(_0x46dd4c){_0xf84cd4+=isUnsafeIntegerLiteral(_0x46dd4c)?'\x22'+_0x46dd4c+'\x22':_0x46dd4c,_0x5d428a+=_0x46dd4c['length'];continue;}}_0xf84cd4+=_0x2675f8,_0x5d428a+=0x1;}return _0xf84cd4;}export function parseLosslessJson(_0x5b4a60){const _0x58548a=a176_0x3b6357;return JSON[_0x58548a(0x8b)](quoteUnsafeIntegerLiterals(_0x5b4a60));}function a176_0x535d(){const _0x59079a=['9714456Jiycdv','parse','exec','prototype','includes','284kYGvLQ','text','json','defineProperty','2986494jMEOng','getOwnPropertyDescriptor','MIN_SAFE_INTEGER','7YTxCOU','953654BbGCGE','length','104815wDEglc','2458376WIvZrN','1JGREJD','1060632cCwPKP','5733470SAksAf','undefined','MAX_SAFE_INTEGER'];a176_0x535d=function(){return _0x59079a;};return a176_0x535d();}export function installLosslessJsonResponseParser(){const _0x2a5fad=a176_0x3b6357;if(typeof Response===_0x2a5fad(0x9e))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x2a5fad(0x8d)],originalResponseJsonDescriptor=Object[_0x2a5fad(0x94)](responseJsonPrototype,_0x2a5fad(0x91)),Object[_0x2a5fad(0x92)](responseJsonPrototype,_0x2a5fad(0x91),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x1eb9f3(){const _0x2a2044=_0x2a5fad;return parseLosslessJson(await this[_0x2a2044(0x90)]());}}),restoreResponseJsonParser=()=>{const _0x47e553=_0x2a5fad;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object['defineProperty'](responseJsonPrototype,_0x47e553(0x91),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(_0x2a8b10,_0x311023){const _0x5b2118=a177_0xaa9f,_0x4777c7=_0x2a8b10();while(!![]){try{const _0x5a28cc=parseInt(_0x5b2118(0x164))/0x1+-parseInt(_0x5b2118(0x178))/0x2+-parseInt(_0x5b2118(0x17c))/0x3+parseInt(_0x5b2118(0x170))/0x4*(-parseInt(_0x5b2118(0x168))/0x5)+-parseInt(_0x5b2118(0x16a))/0x6*(parseInt(_0x5b2118(0x166))/0x7)+-parseInt(_0x5b2118(0x167))/0x8*(parseInt(_0x5b2118(0x16e))/0x9)+parseInt(_0x5b2118(0x16d))/0xa;if(_0x5a28cc===_0x311023)break;else _0x4777c7['push'](_0x4777c7['shift']());}catch(_0x132be3){_0x4777c7['push'](_0x4777c7['shift']());}}}(a177_0xb7a0,0x6f2bf));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x3a3ca0){const _0x571535=a177_0xaa9f;if(!_0x3a3ca0)return undefined;try{return parseLosslessJson(_0x3a3ca0);}catch{throw CliErrors[_0x571535(0x179)](_0x571535(0x171)+_0x3a3ca0);}}export function parseJsonParamsValue(_0x497651){const _0x524342=a177_0xaa9f;if(!_0x497651)return undefined;try{return parseLosslessJson(_0x497651);}catch{throw CliErrors['validation'](_0x524342(0x171)+_0x497651);}}function a177_0xb7a0(){const _0x1f213e=['isSafeInteger','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','298429BoycXU','number','10675SPXehs','8VVFjcX','2926650NpDXXQ','object','318QyiNUK','isArray','id[','19447790WqlzOT','5264847KfPbxJ','map','4NBiIWN','Invalid\x20JSON\x20for\x20--params:\x20','items','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','length','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','join','258112RbsFgm','validation','\x20records\x20per\x20call;\x20received\x20','test','1222965pvlyQW'];a177_0xb7a0=function(){return _0x1f213e;};return a177_0xb7a0();}function a177_0xaa9f(_0x226e11,_0x4c0376){_0x226e11=_0x226e11-0x164;const _0xb7a060=a177_0xb7a0();let _0xaa9fa7=_0xb7a060[_0x226e11];return _0xaa9fa7;}export function parseBatchCreateItemsFromParams(_0x21d570){const _0x539ee3=a177_0xaa9f;if(Array[_0x539ee3(0x16b)](_0x21d570))return _0x21d570;if(_0x21d570!==null&&_0x21d570!==undefined&&typeof _0x21d570==='object'&&Array[_0x539ee3(0x16b)](_0x21d570[_0x539ee3(0x172)]))return _0x21d570[_0x539ee3(0x172)];throw CliErrors[_0x539ee3(0x179)](_0x539ee3(0x175),_0x539ee3(0x180));}function parseDataUpdateId(_0x5ac794,_0x44dbe8){const _0x5e72b9=a177_0xaa9f;if(typeof _0x5ac794===_0x5e72b9(0x165)&&Number[_0x5e72b9(0x17d)](_0x5ac794)&&_0x5ac794>0x0)return _0x5ac794;if(typeof _0x5ac794==='string'){if(/^[1-9]\d*$/[_0x5e72b9(0x17b)](_0x5ac794))return _0x5ac794;}throw CliErrors[_0x5e72b9(0x179)]('data\x20update\x20--params.'+_0x44dbe8+_0x5e72b9(0x17f));}export function parseUpdateIdsFromParams(_0x5de120){const _0x1c35f2=a177_0xaa9f;if(_0x5de120===null||_0x5de120===undefined||typeof _0x5de120!==_0x1c35f2(0x169)||Array[_0x1c35f2(0x16b)](_0x5de120))throw CliErrors[_0x1c35f2(0x179)]('data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.',_0x1c35f2(0x176));const _0x3b9532=_0x5de120['id'];if(_0x3b9532===undefined||_0x3b9532===null)throw CliErrors[_0x1c35f2(0x179)](_0x1c35f2(0x173),_0x1c35f2(0x176));const _0x57e92b=Array[_0x1c35f2(0x16b)](_0x3b9532)?_0x3b9532:[_0x3b9532];if(_0x57e92b['length']===0x0)throw CliErrors[_0x1c35f2(0x179)](_0x1c35f2(0x17e));if(_0x57e92b[_0x1c35f2(0x174)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x1c35f2(0x179)]('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+_0x1c35f2(0x17a)+_0x57e92b[_0x1c35f2(0x174)]+'.');return _0x57e92b[_0x1c35f2(0x16f)]((_0x4aead7,_0x55498b)=>parseDataUpdateId(_0x4aead7,Array[_0x1c35f2(0x16b)](_0x3b9532)?_0x1c35f2(0x16c)+_0x55498b+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x145a54,_0x4b4081){const _0x2f73f3=a177_0xaa9f;if(Array['isArray'](_0x145a54['id'])&&_0x4b4081[_0x2f73f3(0x174)]>0x1)return{..._0x145a54,'id':_0x4b4081[_0x2f73f3(0x177)](',')};return _0x145a54;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a178_0x20cb(_0x5f25ca,_0x500a78){_0x5f25ca=_0x5f25ca-0x1b6;const _0x2786a1=a178_0x2786();let _0x20cb94=_0x2786a1[_0x5f25ca];return _0x20cb94;}function a178_0x2786(){const _0x3d5adf=['isSafeInteger','7283696hpVNwN','1396455KJcgZD','7PvQIgR','3150006PoTYuI','12ZvbMSz','35444YkaxJw','9590AKFIxH','51796613LaiKTt','string','305NSuvni','test','198KQNJGp','52674vMcaYk','2376WgrfhZ'];a178_0x2786=function(){return _0x3d5adf;};return a178_0x2786();}(function(_0x9ca4c6,_0x256168){const _0xf19976=a178_0x20cb,_0x25f9b=_0x9ca4c6();while(!![]){try{const _0x4dedc9=-parseInt(_0xf19976(0x1c2))/0x1+-parseInt(_0xf19976(0x1be))/0x2*(parseInt(_0xf19976(0x1bd))/0x3)+parseInt(_0xf19976(0x1b7))/0x4*(parseInt(_0xf19976(0x1bb))/0x5)+parseInt(_0xf19976(0x1c4))/0x6*(-parseInt(_0xf19976(0x1c3))/0x7)+-parseInt(_0xf19976(0x1c1))/0x8+parseInt(_0xf19976(0x1bf))/0x9*(parseInt(_0xf19976(0x1b8))/0xa)+parseInt(_0xf19976(0x1b9))/0xb*(parseInt(_0xf19976(0x1b6))/0xc);if(_0x4dedc9===_0x256168)break;else _0x25f9b['push'](_0x25f9b['shift']());}catch(_0x78c465){_0x25f9b['push'](_0x25f9b['shift']());}}}(a178_0x2786,0xe39e0));export function normalizePositiveSafeInteger(_0x167e83){const _0x1ff5b4=a178_0x20cb;if(typeof _0x167e83==='number')return Number['isSafeInteger'](_0x167e83)&&_0x167e83>0x0?_0x167e83:undefined;if(typeof _0x167e83!==_0x1ff5b4(0x1ba)||!/^\d+$/[_0x1ff5b4(0x1bc)](_0x167e83))return undefined;const _0x506a8b=Number(_0x167e83);return Number[_0x1ff5b4(0x1c0)](_0x506a8b)&&_0x506a8b>0x0?_0x506a8b:undefined;}
|
package/lib/utils/redaction.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a179_0x183f(_0x49b741,_0x20c8b0){_0x49b741=_0x49b741-0x18e;const _0x577d75=a179_0x577d();let _0x183f3c=_0x577d75[_0x49b741];return _0x183f3c;}const a179_0x1cf092=a179_0x183f;(function(_0x4fe34a,_0x4e5cbe){const _0x5b6e2d=a179_0x183f,_0x3e434a=_0x4fe34a();while(!![]){try{const _0x47b65c=-parseInt(_0x5b6e2d(0x18e))/0x1*(parseInt(_0x5b6e2d(0x18f))/0x2)+parseInt(_0x5b6e2d(0x19f))/0x3+parseInt(_0x5b6e2d(0x195))/0x4+-parseInt(_0x5b6e2d(0x192))/0x5*(parseInt(_0x5b6e2d(0x196))/0x6)+-parseInt(_0x5b6e2d(0x19c))/0x7*(-parseInt(_0x5b6e2d(0x193))/0x8)+-parseInt(_0x5b6e2d(0x1a1))/0x9+-parseInt(_0x5b6e2d(0x190))/0xa*(-parseInt(_0x5b6e2d(0x19a))/0xb);if(_0x47b65c===_0x4e5cbe)break;else _0x3e434a['push'](_0x3e434a['shift']());}catch(_0x33ef8e){_0x3e434a['push'](_0x3e434a['shift']());}}}(a179_0x577d,0x90c68));const REDACTED_VALUE='[REDACTED]',SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set([a179_0x1cf092(0x198),a179_0x1cf092(0x194)]),SENSITIVE_VALUE_KEYS=new Set([a179_0x1cf092(0x198)]);function a179_0x577d(){const _0x2f1ffa=['toLowerCase','comment','replace','6428587GBRywM','isArray','2471GQoieV','test','map','765957bqSBqn','has','8366427sCMMto','entries','886993tvdCTm','2PJhTiz','10AAeypD','object','3078895RLOcOo','23624NPjYwk','variables','4572920XwPraB','6SdJTHv'];a179_0x577d=function(){return _0x2f1ffa;};return a179_0x577d();}export function isSensitiveKey(_0x239741){const _0x3831dd=a179_0x1cf092,_0x1edc2b=_0x239741[_0x3831dd(0x199)](/_/g,'-')['toLowerCase']();return SENSITIVE_KEY_PATTERN[_0x3831dd(0x19d)](_0x1edc2b);}export function isSensitiveFlagName(_0x14bffb){const _0x66b043=a179_0x1cf092,_0x1ed138=_0x14bffb[_0x66b043(0x199)](/_/g,'-')[_0x66b043(0x197)]();return isSensitiveKey(_0x1ed138)||SENSITIVE_FLAG_NAMES['has'](_0x1ed138);}function redactVariableValues(_0x1f42c0){const _0xd42673=a179_0x1cf092;if(Array['isArray'](_0x1f42c0))return _0x1f42c0[_0xd42673(0x19e)](_0x4fe70e=>redactVariableValues(_0x4fe70e));if(_0x1f42c0&&typeof _0x1f42c0===_0xd42673(0x191))return Object['fromEntries'](Object['entries'](_0x1f42c0)[_0xd42673(0x19e)](([_0x3b4a17,_0xdcd042])=>[_0x3b4a17,redactVariableValues(_0xdcd042)]));return REDACTED_VALUE;}export function redactSensitiveValue(_0x2f75ee){const _0x4bc214=a179_0x1cf092;if(Array[_0x4bc214(0x19b)](_0x2f75ee))return _0x2f75ee[_0x4bc214(0x19e)](_0x3930fd=>redactSensitiveValue(_0x3930fd));if(!_0x2f75ee||typeof _0x2f75ee!=='object')return _0x2f75ee;const _0x3ab8a2={};for(const [_0x5dcbb1,_0x106d34]of Object[_0x4bc214(0x1a2)](_0x2f75ee)){const _0x36f325=_0x5dcbb1[_0x4bc214(0x199)](/_/g,'-')['toLowerCase']();_0x3ab8a2[_0x5dcbb1]=_0x36f325===_0x4bc214(0x194)?redactVariableValues(_0x106d34):SENSITIVE_VALUE_KEYS[_0x4bc214(0x1a0)](_0x36f325)||isSensitiveKey(_0x5dcbb1)?REDACTED_VALUE:redactSensitiveValue(_0x106d34);}return _0x3ab8a2;}export function redactCommandArgv(_0x56c7b9){const _0x591c63=[];let _0x633523=![];for(const _0x982b2a of _0x56c7b9){if(_0x633523){_0x591c63['push'](REDACTED_VALUE),_0x633523=![];continue;}const _0x4d9e8b=_0x982b2a['match'](/^--([^=]+)(?:=(.*))?$/);if(!_0x4d9e8b||!isSensitiveFlagName(_0x4d9e8b[0x1]??'')){_0x591c63['push'](_0x982b2a);continue;}_0x591c63['push']('--'+_0x4d9e8b[0x1]+(_0x4d9e8b[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x4d9e8b[0x2]===undefined&&(_0x633523=!![]);}return _0x591c63;}export{REDACTED_VALUE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1157fd,_0x53b985){const _0x33c3df=a180_0x2dc5,_0x58a4a8=_0x1157fd();while(!![]){try{const _0x3ff5f8=parseInt(_0x33c3df(0x132))/0x1*(-parseInt(_0x33c3df(0x13a))/0x2)+parseInt(_0x33c3df(0x137))/0x3*(-parseInt(_0x33c3df(0x139))/0x4)+parseInt(_0x33c3df(0x133))/0x5+-parseInt(_0x33c3df(0x138))/0x6+parseInt(_0x33c3df(0x135))/0x7*(parseInt(_0x33c3df(0x12d))/0x8)+parseInt(_0x33c3df(0x130))/0x9*(parseInt(_0x33c3df(0x13b))/0xa)+parseInt(_0x33c3df(0x12e))/0xb*(parseInt(_0x33c3df(0x131))/0xc);if(_0x3ff5f8===_0x53b985)break;else _0x58a4a8['push'](_0x58a4a8['shift']());}catch(_0x2a5843){_0x58a4a8['push'](_0x58a4a8['shift']());}}}(a180_0x171f,0x4d785));function a180_0x2dc5(_0x28d840,_0x4d1daa){_0x28d840=_0x28d840-0x12d;const _0x171ffe=a180_0x171f();let _0x2dc548=_0x171ffe[_0x28d840];return _0x2dc548;}export function normalizeRuntimeUserId(_0x1f55a4){const _0x56d631=a180_0x2dc5;if(typeof _0x1f55a4==='number')return Number[_0x56d631(0x136)](_0x1f55a4)&&_0x1f55a4>0x0?String(_0x1f55a4):undefined;if(typeof _0x1f55a4!==_0x56d631(0x134)||!/^\d+$/['test'](_0x1f55a4))return undefined;const _0x7160d=_0x1f55a4[_0x56d631(0x12f)](/^0+/,'');return _0x7160d||undefined;}function a180_0x171f(){const _0x5a1c34=['1274076QJDYfq','123oQQxeV','1795075WumYsj','string','18221YBZEGa','isSafeInteger','579ArFWwh','146352DEwktR','6268WvzjBD','10154MPIXoT','10mnEGRg','248TLRBpr','44PHcCkj','replace','3637899sdvTmy'];a180_0x171f=function(){return _0x5a1c34;};return a180_0x171f();}
|