@lovrabet/lovrabet-cli 2.3.8-beta.2 → 2.3.8-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.d.ts +6 -18
- 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.d.ts +3 -0
- package/lib/core/kb-sdk-errors.js +1 -0
- package/lib/core/kb-search-client.d.ts +3 -21
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.d.ts +2 -0
- 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 +2 -2
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a159_0x2792(_0x185fdb,_0x3ea2dc){_0x185fdb=_0x185fdb-0x9c;const _0x56e2b1=a159_0x56e2();let _0x2792e2=_0x56e2b1[_0x185fdb];return _0x2792e2;}(function(_0x48d188,_0x361a3b){const _0x2b3acb=a159_0x2792,_0x5cc911=_0x48d188();while(!![]){try{const _0x95125=parseInt(_0x2b3acb(0xa5))/0x1*(-parseInt(_0x2b3acb(0xac))/0x2)+-parseInt(_0x2b3acb(0xba))/0x3*(-parseInt(_0x2b3acb(0xbd))/0x4)+-parseInt(_0x2b3acb(0xb7))/0x5+-parseInt(_0x2b3acb(0xb6))/0x6+parseInt(_0x2b3acb(0xbc))/0x7*(-parseInt(_0x2b3acb(0xae))/0x8)+-parseInt(_0x2b3acb(0xbb))/0x9+parseInt(_0x2b3acb(0xa9))/0xa;if(_0x95125===_0x361a3b)break;else _0x5cc911['push'](_0x5cc911['shift']());}catch(_0x2795f3){_0x5cc911['push'](_0x5cc911['shift']());}}}(a159_0x56e2,0xc2ac6));function a159_0x56e2(){const _0x47efb1=['zipSize','skillCode','Runtime\x20Skill\x20is\x20missing\x20skillCode.','sourceSessionId','status','version','utf8','userId','path','description','trim','192263guGpEB','parse','forkedFromSkillId','zipSha256','47186860hOBNmV','toISOString','personal','14GQqnkW','manifest','1064VAHzAy','tenantCode','isArray','object','forkedFromVersion','tags','fromEntries','Invalid\x20','6867648GtSeOx','4332855IKkYdu','length','validation','3VhiqBn','1789533exZByG','41832jsEQnT','1717444sjbKAq','map'];a159_0x56e2=function(){return _0x47efb1;};return a159_0x56e2();}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(_0x16c0e7,_0x5ccd28,_0x48943f,_0x469819,_0x26856c,_0x5c8a2a,_0x5e0a31){const _0x46bf91=a159_0x2792,_0x590dc9=_0x5c8a2a?normalizeLocalFiles(_0x5c8a2a):[],_0x262799=!_0x5e0a31&&_0x590dc9['length']>0x0?buildSkillPackage(_0x590dc9):undefined,_0x24af09=_0x5e0a31?bufferSha256(_0x5e0a31):_0x262799?.[_0x46bf91(0xad)][_0x46bf91(0xa8)],_0x23e370=_0x5e0a31?.[_0x46bf91(0xb8)]??_0x262799?.[_0x46bf91(0xad)][_0x46bf91(0xbf)],_0xf2976f=_0x590dc9[_0x46bf91(0xb8)]>0x0?Object[_0x46bf91(0xb4)](_0x590dc9['map'](_0x270e40=>[_0x270e40[_0x46bf91(0xa2)],fileHash(_0x270e40)])):undefined;return{'schemaVersion':_0x590dc9[_0x46bf91(0xb8)]>0x0?0x2:0x1,'id':_0x16c0e7['id'],'appCode':_0x48943f,'skillCode':requireSkillCode(_0x16c0e7),'skillName':_0x16c0e7['skillName'],'description':_0x16c0e7[_0x46bf91(0xa3)],'example':_0x16c0e7['example'],'scope':_0x5ccd28,'readonly':_0x5ccd28!==_0x46bf91(0xab)||_0x16c0e7['readonly']===!![],'tenantCode':_0x16c0e7[_0x46bf91(0xaf)],'userId':_0x16c0e7[_0x46bf91(0xa1)],'version':_0x16c0e7[_0x46bf91(0x9f)],'status':_0x16c0e7[_0x46bf91(0x9e)],'tags':Array[_0x46bf91(0xb0)](_0x16c0e7['tags'])?_0x16c0e7[_0x46bf91(0xb3)]:[],'hasUpstreamUpdate':_0x16c0e7['hasUpstreamUpdate'],'forkedFromSkillId':_0x16c0e7[_0x46bf91(0xa7)],'forkedFromVersion':_0x16c0e7[_0x46bf91(0xb2)],'sourceSessionId':_0x16c0e7[_0x46bf91(0x9d)],'contentHash':_0x469819,'fileHashes':_0xf2976f,'treeHash':_0x590dc9[_0x46bf91(0xb8)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x590dc9)):undefined,'ossPath':remoteManifestOssPath(_0x16c0e7['files']),'zipSha256':_0x24af09,'zipSize':_0x23e370,'files':_0x590dc9[_0x46bf91(0xb8)]>0x0?_0x590dc9[_0x46bf91(0xbe)](_0x1af452=>({'path':_0x1af452[_0x46bf91(0xa2)],'hash':fileHash(_0x1af452),'size':fileContent(_0x1af452)[_0x46bf91(0xb8)]})):undefined,'pulledAt':_0x26856c??new Date()[_0x46bf91(0xaa)]()};}export function requireSkillCode(_0x4558e0){const _0x51fc35=a159_0x2792,_0x3f7c61=_0x4558e0[_0x51fc35(0xc0)]?.['trim']();if(!_0x3f7c61)throw CliErrors['validation'](_0x51fc35(0x9c));return _0x3f7c61;}export function readMetadataIfPresent(_0x3ea02b){const _0x1ef29c=a159_0x2792;if(!existsSync(_0x3ea02b))return undefined;try{const _0x23962a=JSON[_0x1ef29c(0xa6)](readFileSync(_0x3ea02b,_0x1ef29c(0xa0)));return _0x23962a;}catch{throw CliErrors[_0x1ef29c(0xb9)](_0x1ef29c(0xb5)+METADATA_FILE+':\x20'+_0x3ea02b);}}function remoteManifestOssPath(_0x180963){const _0x59afb8=a159_0x2792;if(!_0x180963||typeof _0x180963!==_0x59afb8(0xb1)||Array['isArray'](_0x180963))return undefined;const _0x457151=_0x180963['ossPath'];return typeof _0x457151==='string'&&_0x457151[_0x59afb8(0xa4)]()?_0x457151['trim']():undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a160_0x210c63=a160_0x39e9;(function(_0x326c1a,_0x6cbb1f){const _0x25032c=a160_0x39e9,_0x5cb25a=_0x326c1a();while(!![]){try{const _0x53feca=-parseInt(_0x25032c(0x16b))/0x1*(-parseInt(_0x25032c(0x181))/0x2)+-parseInt(_0x25032c(0x168))/0x3*(parseInt(_0x25032c(0x176))/0x4)+parseInt(_0x25032c(0x172))/0x5*(-parseInt(_0x25032c(0x17e))/0x6)+parseInt(_0x25032c(0x164))/0x7*(parseInt(_0x25032c(0x169))/0x8)+-parseInt(_0x25032c(0x16c))/0x9+parseInt(_0x25032c(0x17b))/0xa+parseInt(_0x25032c(0x17a))/0xb;if(_0x53feca===_0x6cbb1f)break;else _0x5cb25a['push'](_0x5cb25a['shift']());}catch(_0x13c33a){_0x5cb25a['push'](_0x5cb25a['shift']());}}}(a160_0xcc26,0x83e28));import{existsSync}from'node:fs';import{homedir}from'node:os';function a160_0xcc26(){const _0x1e2611=['filter','11119273KVduqE','6090150qGqeeD','Unsafe\x20','path\x20segment','145242dKvjOU','trim','validation','12226ZiCyJl','SKILL_ROOT','\x20for\x20local\x20path:\x20','266edZxzM','skills','agentsSkillsDir','skillCode','1398kOyOYv','10168qNrboq','cache','3YiQhRZ','6517791qklBFJ','claudeSkillsDir','.agents','CLAUDE_SKILL_ROOT','workbuddySkillsDir','homeDirName','20pjCVYp','includes','.claude','homeDir','2792uEHsFH','appCode','cacheRoot'];a160_0xcc26=function(){return _0x1e2611;};return a160_0xcc26();}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(_0x3c0d26={}){const _0x8a9f90=a160_0x39e9,_0x211d66=_0x3c0d26[_0x8a9f90(0x175)]??homedir(),_0x4c8ec7=resolve(_0x211d66,PRODUCT_CONFIG[_0x8a9f90(0x171)],_0x8a9f90(0x16a)),_0xa815e4=trimmedEnv(_0x8a9f90(0x162)),_0x11b5e5=trimmedEnv(_0x8a9f90(0x16f)),_0x1f9800=resolve(_0x211d66,'.workbuddy'),_0x13c36f=_0x3c0d26[_0x8a9f90(0x170)]??(existsSync(_0x1f9800)?resolve(_0x1f9800,_0x8a9f90(0x165)):undefined);return{'homeDir':_0x211d66,'cacheRoot':_0x4c8ec7,'managedRoot':resolve(_0x211d66,PRODUCT_CONFIG[_0x8a9f90(0x171)]),'agentsSkillsDir':_0x3c0d26[_0x8a9f90(0x166)]??_0xa815e4??resolve(_0x211d66,_0x8a9f90(0x16e),_0x8a9f90(0x165)),'claudeSkillsDir':_0x3c0d26[_0x8a9f90(0x16d)]??_0x11b5e5??resolve(_0x211d66,_0x8a9f90(0x174),'skills'),'workbuddySkillsDir':_0x13c36f};}function a160_0x39e9(_0x5aeee1,_0x381b59){_0x5aeee1=_0x5aeee1-0x162;const _0xcc2673=a160_0xcc26();let _0x39e981=_0xcc2673[_0x5aeee1];return _0x39e981;}export function runtimeAgentSkillRoots(_0x3e604d){const _0x56ffbe=a160_0x39e9;return[_0x3e604d[_0x56ffbe(0x166)],_0x3e604d[_0x56ffbe(0x16d)],_0x3e604d[_0x56ffbe(0x170)]][_0x56ffbe(0x179)](_0x1bb9b9=>Boolean(_0x1bb9b9));}export function getRuntimeSkillCacheRoot(_0x38a765,_0x1253e0,_0x7614ae={}){const _0x418a83=a160_0x39e9,_0x16644f=resolveSkillSyncPaths(_0x7614ae);return resolve(_0x16644f[_0x418a83(0x178)],_0x38a765,fingerprintAccessKey(_0x1253e0),'skills');}export function getRuntimeSkillDir(_0x50f59e,_0x5bdeae,_0x13f01a,_0x10b73f,_0x57771a,_0x1515a4={}){const _0x34d682=a160_0x39e9;return resolve(getRuntimeSkillCacheRoot(_0x50f59e,_0x5bdeae,_0x1515a4),safePathSegment(_0x13f01a,_0x34d682(0x177)),_0x10b73f,safePathSegment(_0x57771a,_0x34d682(0x167)));}export function safePathSegment(_0x2ebdc1,_0x2a0d87=a160_0x210c63(0x17d)){const _0x42d6cb=a160_0x210c63;if(!_0x2ebdc1||_0x2ebdc1[_0x42d6cb(0x173)]('/')||_0x2ebdc1[_0x42d6cb(0x173)]('\x5c')||_0x2ebdc1['includes']('..'))throw CliErrors[_0x42d6cb(0x180)](_0x42d6cb(0x17c)+_0x2a0d87+_0x42d6cb(0x163)+_0x2ebdc1);return _0x2ebdc1;}function trimmedEnv(_0x4e868f){const _0x59cb1c=a160_0x210c63,_0x54e487=productEnv(_0x4e868f)?.[_0x59cb1c(0x17f)]();return _0x54e487?_0x54e487:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a160_0x2e5b(){const _0xb8a6de=['company','example','excludedFilePaths','replace','2sTFJnd','slice','ignoreMetadataSkillCode','1321545ldwofH','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','name','isFile','Missing\x20','1732755gpTuKU','skillCode','ignoreMetadataAppCodeMismatch','packageBase64','355317olAFIH','pushedAt','startsWith','ignoreMetadataForPayload','(unknown)','number','Invalid\x20','isArray','utf8','ignoreMetadataScope','allowAppCodeRetarget','Skill\x20directory\x20not\x20found:\x20','220528lxXOGH','content',',\x20or\x20directory\x20name.','find','Skill\x20metadata\x20appCode\x20\x22','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','manifest','scope','dir','validation','appCode','Unable\x20to\x20resolve\x20skillCode\x20from\x20','\x20has\x20scope=\x22','length','7qmYPWr','path','sourceSessionId','skillName','1357332cOFaqB','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','match','string','filter','2199832haQsbC','files','ignoreInvalidMetadata','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','some','toLowerCase','boolean','version','personal','trim','Remote\x20Skill\x20','description','object','builtin','unknown','metadata','isDirectory','tags','5005503ciMpbm'];a160_0x2e5b=function(){return _0xb8a6de;};return a160_0x2e5b();}(function(_0x19766b,_0xfea66c){const _0x1cf82c=a160_0x28c8,_0x18b502=_0x19766b();while(!![]){try{const _0x5bcb77=parseInt(_0x1cf82c(0x120))/0x1*(-parseInt(_0x1cf82c(0x114))/0x2)+parseInt(_0x1cf82c(0x117))/0x3+parseInt(_0x1cf82c(0xe6))/0x4+-parseInt(_0x1cf82c(0x11c))/0x5+parseInt(_0x1cf82c(0xf8))/0x6*(parseInt(_0x1cf82c(0xf4))/0x7)+-parseInt(_0x1cf82c(0xfd))/0x8+parseInt(_0x1cf82c(0x10f))/0x9;if(_0x5bcb77===_0xfea66c)break;else _0x18b502['push'](_0x18b502['shift']());}catch(_0x364a85){_0x18b502['push'](_0x18b502['shift']());}}}(a160_0x2e5b,0x49885));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a160_0xcf4da6}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';function a160_0x28c8(_0xa192a7,_0x207a5d){_0xa192a7=_0xa192a7-0xe1;const _0x2e5b45=a160_0x2e5b();let _0x28c888=_0x2e5b45[_0xa192a7];return _0x28c888;}export function resolvePushDirectoryIdentity(_0x3ce734,_0xc7f41a,_0x548f8e={}){const _0x363c34=a160_0x28c8,_0x3b711f=resolvePushDirectoryRoot(_0x3ce734),_0x5d7492=readPushMetadataIfPresent(resolve(_0x3b711f,METADATA_FILE),{'ignoreInvalidMetadata':_0x548f8e[_0x363c34(0xff)]});if(_0x5d7492?.[_0x363c34(0xf0)]&&_0x5d7492[_0x363c34(0xf0)]!==_0xc7f41a&&!_0x548f8e[_0x363c34(0xe4)]&&!_0x548f8e[_0x363c34(0x11e)])throw CliErrors[_0x363c34(0xef)](_0x363c34(0xea)+_0x5d7492[_0x363c34(0xf0)]+_0x363c34(0xeb)+_0xc7f41a+'\x22.');const _0x550432=resolvePushSkillCode(_0x3b711f,_0xc7f41a,_0x5d7492,_0x548f8e);if(!_0x550432)throw CliErrors[_0x363c34(0xef)](_0x363c34(0xf1)+SKILL_FILE+',\x20'+METADATA_FILE+_0x363c34(0xe8));return{'dir':_0x3b711f,'skillCode':_0x550432,'metadata':_0x5d7492};}export function readPushDirectory(_0x3c8992,_0x6529cf,_0x3f2d68={}){const _0x23290a=a160_0x28c8,_0x42b5a1=resolvePushDirectoryIdentity(_0x3c8992,_0x6529cf,_0x3f2d68),_0x201727=_0x42b5a1[_0x23290a(0xee)],_0x3a42d3=resolve(_0x201727,SKILL_FILE);if(!existsSync(_0x3a42d3)||!lstatSync(_0x3a42d3)['isFile']())throw CliErrors[_0x23290a(0xef)](_0x23290a(0x11b)+SKILL_FILE+':\x20'+_0x3a42d3);const _0x332fa7=_0x42b5a1[_0x23290a(0x10c)],_0x5026a2=_0x3f2d68['targetScope']??_0x23290a(0x105);if(!_0x3f2d68[_0x23290a(0xe3)]&&_0x332fa7?.[_0x23290a(0xed)]===_0x23290a(0x10a))throw CliErrors[_0x23290a(0xef)](_0x23290a(0x100)+METADATA_FILE+_0x23290a(0xf2)+_0x332fa7[_0x23290a(0xed)]+'\x22.');if(!_0x3f2d68[_0x23290a(0xe3)]&&_0x5026a2==='personal'&&_0x332fa7?.[_0x23290a(0xed)]&&_0x332fa7['scope']!==_0x23290a(0x105))throw CliErrors['validation'](_0x23290a(0xf9)+METADATA_FILE+_0x23290a(0xf2)+_0x332fa7[_0x23290a(0xed)]+'\x22.','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20'+_0x201727+_0x23290a(0x118));const _0x4a5dbe=scanSkillDirectory(_0x201727,{'excludedFilePaths':_0x3f2d68[_0x23290a(0x112)]}),_0x518905=buildSkillPackage(_0x4a5dbe),_0x1df558=readFileSync(_0x3a42d3,_0x23290a(0xe2)),_0x3c0d7c=_0x42b5a1[_0x23290a(0x11d)],_0x5dc321=_0x3f2d68[_0x23290a(0x123)]?undefined:_0x332fa7,_0x4d77e0=readSkillDisplayName(_0x1df558);return{'skillCode':_0x3c0d7c,'metadata':_0x332fa7,'frontmatterDisplayName':_0x4d77e0,'input':{'skillCode':_0x3c0d7c,'skillName':_0x4d77e0??_0x5dc321?.['skillName'],'description':_0x5dc321?.[_0x23290a(0x108)],'content':_0x1df558,'files':_0x518905[_0x23290a(0xec)],'packageBase64':_0x518905[_0x23290a(0x11f)],'tags':_0x5dc321?.[_0x23290a(0x10e)],'version':_0x5dc321?.[_0x23290a(0x104)],'sourceSessionId':_0x5dc321?.[_0x23290a(0xf6)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x489b45,_0x1633de,_0x3d26de,_0x4aa080={}){const _0x41d55e=a160_0x28c8,_0x5383c9=resolvePushDirectoryRoot(_0x489b45),_0x28b8d0=readPushMetadataIfPresent(resolve(_0x5383c9,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x2fe9ee=requireRemoteScope(_0x1633de),_0x41b309=readLocalSkillContent(_0x5383c9),_0x9c5b35={..._0x1633de,'appCode':_0x1633de[_0x41d55e(0xf0)]??_0x3d26de,'skillName':_0x1633de[_0x41d55e(0xf7)]??_0x28b8d0?.['skillName'],'description':_0x1633de['description']??_0x28b8d0?.[_0x41d55e(0x108)],'example':_0x1633de[_0x41d55e(0x111)]??_0x28b8d0?.[_0x41d55e(0x111)],'tags':Array[_0x41d55e(0xe1)](_0x1633de[_0x41d55e(0x10e)])?_0x1633de[_0x41d55e(0x10e)]:_0x28b8d0?.['tags'],'sourceSessionId':_0x1633de[_0x41d55e(0xf6)]??_0x28b8d0?.['sourceSessionId'],'content':_0x1633de[_0x41d55e(0xe7)]??_0x41b309},_0x33978f=buildMetadata(_0x9c5b35,_0x2fe9ee,_0x3d26de,contentHash(_0x41b309),_0x4aa080['refreshedAt']);writeJsonAtomic(resolve(_0x5383c9,METADATA_FILE),_0x33978f);}export function recordPushedRuntimeSkill(_0xaa5fb5,_0x153f73,_0x52f7a7,_0x492c10={}){const _0x184e95=a160_0x28c8,_0x8d9027=resolvePushDirectoryRoot(_0xaa5fb5),_0x75f4f9=scanSkillDirectory(_0x8d9027),_0x1fb284=_0x75f4f9[_0x184e95(0xe9)](_0x2496f2=>_0x2496f2[_0x184e95(0xf5)]===SKILL_FILE),_0x18fcb7=_0x1fb284?fileText(_0x1fb284):'',_0x44e91a=tryNormalizePackageManifest(_0x153f73[_0x184e95(0xfe)]),_0xca0a3={..._0x153f73,'content':_0x153f73['content']??_0x18fcb7,'files':_0x44e91a},_0x314a83=_0x44e91a?normalizeLocalFiles(_0x75f4f9)[_0x184e95(0xfc)](_0x55c044=>_0x44e91a[_0x184e95(0xfe)][_0x184e95(0x101)](_0x364981=>_0x364981['path']===_0x55c044[_0x184e95(0xf5)])):undefined,_0x1afe99=buildMetadata(_0xca0a3,_0x492c10[_0x184e95(0xed)]??_0x184e95(0x105),_0x52f7a7,contentHash(_0xca0a3[_0x184e95(0xe7)]??''),_0x492c10[_0x184e95(0x121)],_0x314a83);writeJsonAtomic(resolve(_0x8d9027,METADATA_FILE),_0x1afe99);}export function deriveSkillCodeFromDirectory(_0x7d3021,_0x173a9e){const _0x224e2a=a160_0x28c8,_0x48e332=basename(resolve(_0x7d3021)),_0x5c6084=_0x173a9e+'--';return _0x48e332[_0x224e2a(0x122)](_0x5c6084)?_0x48e332[_0x224e2a(0x115)](_0x5c6084[_0x224e2a(0xf3)]):_0x48e332;}function resolvePushSkillCode(_0x20d6f9,_0x451f25,_0x45b752,_0x21eb25){const _0x3570b5=a160_0x28c8,_0x223fe9=deriveSkillCodeFromSkillFile(_0x20d6f9)||deriveSkillCodeFromDirectory(_0x20d6f9,_0x451f25);if(_0x21eb25[_0x3570b5(0x116)])return _0x223fe9;return _0x45b752?.[_0x3570b5(0x11d)]?.['trim']()||_0x223fe9;}function deriveSkillCodeFromSkillFile(_0x2d39f9){const _0x123bc5=a160_0x28c8,_0xfe543=resolve(_0x2d39f9,SKILL_FILE);if(!existsSync(_0xfe543)||!lstatSync(_0xfe543)[_0x123bc5(0x11a)]())return undefined;const _0x4630f3=readFileSync(_0xfe543,_0x123bc5(0xe2)),_0x2fc6f5=_0x4630f3['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x2fc6f5)return undefined;const _0x4cc25e=parseFrontmatterObject(_0x2fc6f5[0x1]??''),_0x4a78e6=scalarToString(_0x4cc25e?.[_0x123bc5(0x119)]);return _0x4a78e6?slugifySkillName(_0x4a78e6):undefined;}function readSkillDisplayName(_0x485d71){const _0x3e6ac5=a160_0x28c8,_0x42a431=_0x485d71[_0x3e6ac5(0xfa)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x42a431)return undefined;const _0x5a1530=parseFrontmatterObject(_0x42a431[0x1]??'');return scalarToString(_0x5a1530?.['displayName']);}function slugifySkillName(_0x3381a4){const _0x62c4c3=a160_0x28c8,_0x21c46f=_0x3381a4[_0x62c4c3(0x106)]()[_0x62c4c3(0x102)]()[_0x62c4c3(0x113)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x62c4c3(0x113)](/^-+/,'')['replace'](/-+$/,'')[_0x62c4c3(0x113)](/-{2,}/g,'-');if(!_0x21c46f)throw CliErrors[_0x62c4c3(0xef)](_0x62c4c3(0x126)+SKILL_FILE+'\x20name\x20for\x20SkillHub\x20slug\x20generation.');return _0x21c46f;}function parseFrontmatterObject(_0x393d2f){const _0x4ada32=a160_0x28c8;try{const _0xb8351=a160_0xcf4da6(_0x393d2f);return _0xb8351&&typeof _0xb8351===_0x4ada32(0x109)&&!Array[_0x4ada32(0xe1)](_0xb8351)?_0xb8351:undefined;}catch{return undefined;}}function scalarToString(_0xa4d5d9){const _0x21ccaa=a160_0x28c8;if(typeof _0xa4d5d9===_0x21ccaa(0xfb))return _0xa4d5d9[_0x21ccaa(0x106)]();if(typeof _0xa4d5d9===_0x21ccaa(0x125)||typeof _0xa4d5d9===_0x21ccaa(0x103))return String(_0xa4d5d9);return undefined;}function resolvePushDirectoryRoot(_0xcd6155){const _0x3038e4=a160_0x28c8,_0x24b6f6=resolve(_0xcd6155);if(!existsSync(_0x24b6f6))throw CliErrors[_0x3038e4(0xef)](_0x3038e4(0xe5)+_0xcd6155);const _0x4d6a4a=lstatSync(_0x24b6f6);if(_0x4d6a4a['isDirectory']())return _0x24b6f6;if(_0x4d6a4a['isSymbolicLink']()){const _0x5f3a8e=realpathSync(_0x24b6f6);if(lstatSync(_0x5f3a8e)[_0x3038e4(0x10d)]())return _0x5f3a8e;}throw CliErrors[_0x3038e4(0xef)]('Skill\x20directory\x20not\x20found:\x20'+_0xcd6155);}function requireRemoteScope(_0x54094e){const _0x3a8688=a160_0x28c8;if(_0x54094e[_0x3a8688(0xed)]===_0x3a8688(0x105)||_0x54094e[_0x3a8688(0xed)]===_0x3a8688(0x110)||_0x54094e[_0x3a8688(0xed)]===_0x3a8688(0x10a))return _0x54094e[_0x3a8688(0xed)];throw CliErrors[_0x3a8688(0xef)](_0x3a8688(0x107)+(_0x54094e[_0x3a8688(0x11d)]||_0x3a8688(0x124))+'\x20has\x20unsupported\x20scope\x20\x22'+(_0x54094e['scope']??_0x3a8688(0x10b))+'\x22.');}function readLocalSkillContent(_0x1e74f8){const _0x15c4fe=a160_0x28c8,_0x214ceb=resolve(_0x1e74f8,SKILL_FILE);return existsSync(_0x214ceb)&&lstatSync(_0x214ceb)[_0x15c4fe(0x11a)]()?readFileSync(_0x214ceb,_0x15c4fe(0xe2)):'';}function readPushMetadataIfPresent(_0x213db3,_0x193594={}){const _0x5f5d7d=a160_0x28c8;try{return readMetadataIfPresent(_0x213db3);}catch(_0x192fe2){if(_0x193594[_0x5f5d7d(0xff)])return undefined;throw _0x192fe2;}}
|
|
1
|
+
(function(_0x16df2a,_0x449eb9){const _0xabbfe2=a161_0x3a16,_0x57f30f=_0x16df2a();while(!![]){try{const _0x48b2d0=-parseInt(_0xabbfe2(0x1b8))/0x1*(parseInt(_0xabbfe2(0x1b1))/0x2)+-parseInt(_0xabbfe2(0x19a))/0x3+parseInt(_0xabbfe2(0x1a1))/0x4*(parseInt(_0xabbfe2(0x1b7))/0x5)+-parseInt(_0xabbfe2(0x1ab))/0x6*(parseInt(_0xabbfe2(0x1b3))/0x7)+parseInt(_0xabbfe2(0x1c9))/0x8+-parseInt(_0xabbfe2(0x1a8))/0x9*(parseInt(_0xabbfe2(0x1ad))/0xa)+parseInt(_0xabbfe2(0x1ac))/0xb*(parseInt(_0xabbfe2(0x198))/0xc);if(_0x48b2d0===_0x449eb9)break;else _0x57f30f['push'](_0x57f30f['shift']());}catch(_0x40e6ab){_0x57f30f['push'](_0x57f30f['shift']());}}}(a161_0x43f2,0x191db));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a161_0x379468}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(_0x4fa43e,_0x35f9a7,_0x332467={}){const _0x541ffd=a161_0x3a16,_0x3abb2d=resolvePushDirectoryRoot(_0x4fa43e),_0x36306d=readPushMetadataIfPresent(resolve(_0x3abb2d,METADATA_FILE),{'ignoreInvalidMetadata':_0x332467[_0x541ffd(0x1bf)]});if(_0x36306d?.[_0x541ffd(0x1d0)]&&_0x36306d[_0x541ffd(0x1d0)]!==_0x35f9a7&&!_0x332467[_0x541ffd(0x1a4)]&&!_0x332467['ignoreMetadataAppCodeMismatch'])throw CliErrors[_0x541ffd(0x197)](_0x541ffd(0x1c4)+_0x36306d['appCode']+_0x541ffd(0x1c8)+_0x35f9a7+'\x22.');const _0x28eb29=resolvePushSkillCode(_0x3abb2d,_0x35f9a7,_0x36306d,_0x332467);if(!_0x28eb29)throw CliErrors[_0x541ffd(0x197)](_0x541ffd(0x19d)+SKILL_FILE+',\x20'+METADATA_FILE+_0x541ffd(0x195));return{'dir':_0x3abb2d,'skillCode':_0x28eb29,'metadata':_0x36306d};}export function readPushDirectory(_0x538767,_0x1b02aa,_0x36ef9a={}){const _0x25a0ac=a161_0x3a16,_0x4e3759=resolvePushDirectoryIdentity(_0x538767,_0x1b02aa,_0x36ef9a),_0x33fc84=_0x4e3759[_0x25a0ac(0x1a3)],_0x3e650a=resolve(_0x33fc84,SKILL_FILE);if(!existsSync(_0x3e650a)||!lstatSync(_0x3e650a)[_0x25a0ac(0x1cc)]())throw CliErrors[_0x25a0ac(0x197)](_0x25a0ac(0x1d3)+SKILL_FILE+':\x20'+_0x3e650a);const _0x4122dd=_0x4e3759[_0x25a0ac(0x1b6)],_0xe905ce=_0x36ef9a[_0x25a0ac(0x19c)]??'personal';if(!_0x36ef9a['ignoreMetadataScope']&&_0x4122dd?.[_0x25a0ac(0x19e)]===_0x25a0ac(0x1ce))throw CliErrors[_0x25a0ac(0x197)](_0x25a0ac(0x1d1)+METADATA_FILE+_0x25a0ac(0x1ae)+_0x4122dd[_0x25a0ac(0x19e)]+'\x22.');if(!_0x36ef9a[_0x25a0ac(0x1c5)]&&_0xe905ce===_0x25a0ac(0x1bb)&&_0x4122dd?.[_0x25a0ac(0x19e)]&&_0x4122dd[_0x25a0ac(0x19e)]!==_0x25a0ac(0x1bb))throw CliErrors['validation']('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20'+METADATA_FILE+_0x25a0ac(0x1ae)+_0x4122dd[_0x25a0ac(0x19e)]+'\x22.',_0x25a0ac(0x1bd)+_0x33fc84+'\x20to\x20submit\x20company\x20Skills\x20for\x20review.');const _0x59c54e=scanSkillDirectory(_0x33fc84,{'excludedFilePaths':_0x36ef9a[_0x25a0ac(0x196)]}),_0x2ec48a=buildSkillPackage(_0x59c54e),_0x4d6dd2=readFileSync(_0x3e650a,'utf8'),_0x19a4e3=_0x4e3759['skillCode'],_0x3a2a0f=_0x36ef9a['ignoreMetadataForPayload']?undefined:_0x4122dd,_0x547140=readSkillDisplayName(_0x4d6dd2);return{'skillCode':_0x19a4e3,'metadata':_0x4122dd,'frontmatterDisplayName':_0x547140,'input':{'skillCode':_0x19a4e3,'skillName':_0x547140??_0x3a2a0f?.[_0x25a0ac(0x1b9)],'description':_0x3a2a0f?.[_0x25a0ac(0x19f)],'content':_0x4d6dd2,'files':_0x2ec48a[_0x25a0ac(0x1a7)],'packageBase64':_0x2ec48a['packageBase64'],'tags':_0x3a2a0f?.[_0x25a0ac(0x1a9)],'version':_0x3a2a0f?.[_0x25a0ac(0x1ba)],'sourceSessionId':_0x3a2a0f?.[_0x25a0ac(0x1aa)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x33fc29,_0x37b17a,_0x795d46,_0x15a1c1={}){const _0x14ccce=a161_0x3a16,_0x3e51e2=resolvePushDirectoryRoot(_0x33fc29),_0x535dfd=readPushMetadataIfPresent(resolve(_0x3e51e2,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x2568bc=requireRemoteScope(_0x37b17a),_0x426a1b=readLocalSkillContent(_0x3e51e2),_0x51bba6={..._0x37b17a,'appCode':_0x37b17a[_0x14ccce(0x1d0)]??_0x795d46,'skillName':_0x37b17a[_0x14ccce(0x1b9)]??_0x535dfd?.[_0x14ccce(0x1b9)],'description':_0x37b17a[_0x14ccce(0x19f)]??_0x535dfd?.[_0x14ccce(0x19f)],'example':_0x37b17a[_0x14ccce(0x1d5)]??_0x535dfd?.[_0x14ccce(0x1d5)],'tags':Array[_0x14ccce(0x1c1)](_0x37b17a[_0x14ccce(0x1a9)])?_0x37b17a['tags']:_0x535dfd?.[_0x14ccce(0x1a9)],'sourceSessionId':_0x37b17a['sourceSessionId']??_0x535dfd?.[_0x14ccce(0x1aa)],'content':_0x37b17a['content']??_0x426a1b},_0x46d389=buildMetadata(_0x51bba6,_0x2568bc,_0x795d46,contentHash(_0x426a1b),_0x15a1c1['refreshedAt']);writeJsonAtomic(resolve(_0x3e51e2,METADATA_FILE),_0x46d389);}export function recordPushedRuntimeSkill(_0x1d54d6,_0x4e4eb4,_0x5a1fe2,_0x2db433={}){const _0x5304af=a161_0x3a16,_0x1c8b16=resolvePushDirectoryRoot(_0x1d54d6),_0x16e3eb=scanSkillDirectory(_0x1c8b16),_0x2ec93f=_0x16e3eb[_0x5304af(0x1b5)](_0x4d832a=>_0x4d832a['path']===SKILL_FILE),_0x218e34=_0x2ec93f?fileText(_0x2ec93f):'',_0x1ebb2f=tryNormalizePackageManifest(_0x4e4eb4[_0x5304af(0x1cb)]),_0x33757f={..._0x4e4eb4,'content':_0x4e4eb4[_0x5304af(0x1cd)]??_0x218e34,'files':_0x1ebb2f},_0xb2b064=_0x1ebb2f?normalizeLocalFiles(_0x16e3eb)[_0x5304af(0x1cf)](_0x179a3d=>_0x1ebb2f[_0x5304af(0x1cb)]['some'](_0x35bed7=>_0x35bed7[_0x5304af(0x1c6)]===_0x179a3d['path'])):undefined,_0x313527=buildMetadata(_0x33757f,_0x2db433[_0x5304af(0x19e)]??_0x5304af(0x1bb),_0x5a1fe2,contentHash(_0x33757f['content']??''),_0x2db433['pushedAt'],_0xb2b064);writeJsonAtomic(resolve(_0x1c8b16,METADATA_FILE),_0x313527);}export function deriveSkillCodeFromDirectory(_0x1e46af,_0x32e520){const _0x5d7cb8=a161_0x3a16,_0x3b5d3b=basename(resolve(_0x1e46af)),_0x1f7200=_0x32e520+'--';return _0x3b5d3b[_0x5d7cb8(0x1c0)](_0x1f7200)?_0x3b5d3b[_0x5d7cb8(0x1be)](_0x1f7200['length']):_0x3b5d3b;}function resolvePushSkillCode(_0x430793,_0x482f33,_0xaff42,_0x244071){const _0x54bca7=a161_0x3a16,_0x33cb1b=deriveSkillCodeFromSkillFile(_0x430793)||deriveSkillCodeFromDirectory(_0x430793,_0x482f33);if(_0x244071['ignoreMetadataSkillCode'])return _0x33cb1b;return _0xaff42?.[_0x54bca7(0x1c3)]?.[_0x54bca7(0x1a6)]()||_0x33cb1b;}function deriveSkillCodeFromSkillFile(_0x9fa5a2){const _0x3f9ce1=a161_0x3a16,_0x3aff2f=resolve(_0x9fa5a2,SKILL_FILE);if(!existsSync(_0x3aff2f)||!lstatSync(_0x3aff2f)[_0x3f9ce1(0x1cc)]())return undefined;const _0x4cf99b=readFileSync(_0x3aff2f,'utf8'),_0x6eedfc=_0x4cf99b['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x6eedfc)return undefined;const _0x577f75=parseFrontmatterObject(_0x6eedfc[0x1]??''),_0x4fc288=scalarToString(_0x577f75?.['name']);return _0x4fc288?slugifySkillName(_0x4fc288):undefined;}function readSkillDisplayName(_0x559faf){const _0x1527ec=a161_0x3a16,_0x2591ff=_0x559faf[_0x1527ec(0x1b0)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x2591ff)return undefined;const _0x20fb03=parseFrontmatterObject(_0x2591ff[0x1]??'');return scalarToString(_0x20fb03?.[_0x1527ec(0x1b2)]);}function a161_0x3a16(_0xdbd7ce,_0x3f96a2){_0xdbd7ce=_0xdbd7ce-0x195;const _0x43f2ac=a161_0x43f2();let _0x3a16e8=_0x43f2ac[_0xdbd7ce];return _0x3a16e8;}function a161_0x43f2(){const _0x44698d=['Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','isDirectory','Missing\x20','Invalid\x20','example',',\x20or\x20directory\x20name.','excludedFilePaths','validation','84bkzDCV','toLowerCase','243834NGkdLZ','(unknown)','targetScope','Unable\x20to\x20resolve\x20skillCode\x20from\x20','scope','description','utf8','1572uKHikh','\x20has\x20unsupported\x20scope\x20\x22','dir','allowAppCodeRetarget','Skill\x20directory\x20not\x20found:\x20','trim','manifest','9rAuQXK','tags','sourceSessionId','77046ggFYPg','134717dbIMyq','1448980aayZQs','\x20has\x20scope=\x22','object','match','3466JZElJV','displayName','7nnRoUN','replace','find','metadata','1585FTWLdu','11CAAtZQ','skillName','version','personal','number','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','slice','ignoreInvalidMetadata','startsWith','isArray','company','skillCode','Skill\x20metadata\x20appCode\x20\x22','ignoreMetadataScope','path','\x20name\x20for\x20SkillHub\x20slug\x20generation.','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','1205160IAQMTJ','isSymbolicLink','files','isFile','content','builtin','filter','appCode'];a161_0x43f2=function(){return _0x44698d;};return a161_0x43f2();}function slugifySkillName(_0x306cbf){const _0x369be1=a161_0x3a16,_0x3ae505=_0x306cbf['trim']()[_0x369be1(0x199)]()[_0x369be1(0x1b4)](/[^\p{L}\p{N}\p{So}]+/gu,'-')['replace'](/^-+/,'')[_0x369be1(0x1b4)](/-+$/,'')[_0x369be1(0x1b4)](/-{2,}/g,'-');if(!_0x3ae505)throw CliErrors[_0x369be1(0x197)](_0x369be1(0x1d4)+SKILL_FILE+_0x369be1(0x1c7));return _0x3ae505;}function parseFrontmatterObject(_0x44d8eb){const _0x2d5507=a161_0x3a16;try{const _0x24545f=a161_0x379468(_0x44d8eb);return _0x24545f&&typeof _0x24545f===_0x2d5507(0x1af)&&!Array[_0x2d5507(0x1c1)](_0x24545f)?_0x24545f:undefined;}catch{return undefined;}}function scalarToString(_0x110d37){const _0x26d6a4=a161_0x3a16;if(typeof _0x110d37==='string')return _0x110d37[_0x26d6a4(0x1a6)]();if(typeof _0x110d37===_0x26d6a4(0x1bc)||typeof _0x110d37==='boolean')return String(_0x110d37);return undefined;}function resolvePushDirectoryRoot(_0x2a1c83){const _0x1ce3ae=a161_0x3a16,_0x5797a4=resolve(_0x2a1c83);if(!existsSync(_0x5797a4))throw CliErrors[_0x1ce3ae(0x197)](_0x1ce3ae(0x1a5)+_0x2a1c83);const _0x22208d=lstatSync(_0x5797a4);if(_0x22208d['isDirectory']())return _0x5797a4;if(_0x22208d[_0x1ce3ae(0x1ca)]()){const _0x293088=realpathSync(_0x5797a4);if(lstatSync(_0x293088)[_0x1ce3ae(0x1d2)]())return _0x293088;}throw CliErrors['validation'](_0x1ce3ae(0x1a5)+_0x2a1c83);}function requireRemoteScope(_0x2e2fac){const _0x1d228d=a161_0x3a16;if(_0x2e2fac[_0x1d228d(0x19e)]==='personal'||_0x2e2fac[_0x1d228d(0x19e)]===_0x1d228d(0x1c2)||_0x2e2fac[_0x1d228d(0x19e)]==='builtin')return _0x2e2fac[_0x1d228d(0x19e)];throw CliErrors[_0x1d228d(0x197)]('Remote\x20Skill\x20'+(_0x2e2fac['skillCode']||_0x1d228d(0x19b))+_0x1d228d(0x1a2)+(_0x2e2fac[_0x1d228d(0x19e)]??'unknown')+'\x22.');}function readLocalSkillContent(_0x463247){const _0x2b009f=a161_0x3a16,_0x616135=resolve(_0x463247,SKILL_FILE);return existsSync(_0x616135)&&lstatSync(_0x616135)['isFile']()?readFileSync(_0x616135,_0x2b009f(0x1a0)):'';}function readPushMetadataIfPresent(_0x248ae7,_0x1bc7d0={}){try{return readMetadataIfPresent(_0x248ae7);}catch(_0x25a14b){if(_0x1bc7d0['ignoreInvalidMetadata'])return undefined;throw _0x25a14b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a162_0x24f4(){const _0x4d2840=['3334455VVEaMt','128FzNguR','builtin','company','Unsupported\x20runtime\x20Skill\x20scope:\x20','4542KfMxis','validation','3691452iIlVtC','126ycHyQW','push','285894JFPRiR','1463BNIifC','1052ghrehR','52840YKNAMt','personal','16IkJFOK','70843cfXTtE','182273KkHChF'];a162_0x24f4=function(){return _0x4d2840;};return a162_0x24f4();}function a162_0x2137(_0x79aa60,_0x18d396){_0x79aa60=_0x79aa60-0x118;const _0x24f40f=a162_0x24f4();let _0x213774=_0x24f40f[_0x79aa60];return _0x213774;}(function(_0x2c9cc5,_0x2f9ab8){const _0x228fd6=a162_0x2137,_0x3ed2b8=_0x2c9cc5();while(!![]){try{const _0x552a7f=parseInt(_0x228fd6(0x125))/0x1*(parseInt(_0x228fd6(0x124))/0x2)+parseInt(_0x228fd6(0x11a))/0x3*(-parseInt(_0x228fd6(0x121))/0x4)+parseInt(_0x228fd6(0x127))/0x5+parseInt(_0x228fd6(0x11d))/0x6*(parseInt(_0x228fd6(0x126))/0x7)+parseInt(_0x228fd6(0x128))/0x8*(-parseInt(_0x228fd6(0x11f))/0x9)+parseInt(_0x228fd6(0x122))/0xa*(-parseInt(_0x228fd6(0x120))/0xb)+parseInt(_0x228fd6(0x11c))/0xc;if(_0x552a7f===_0x2f9ab8)break;else _0x3ed2b8['push'](_0x3ed2b8['shift']());}catch(_0x3d5c74){_0x3ed2b8['push'](_0x3ed2b8['shift']());}}}(a162_0x24f4,0x74e91));import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x3590d8){const _0x58d4ee=a162_0x2137,_0x3de230=_0x3590d8&&_0x3590d8['length']>0x0?_0x3590d8:[_0x58d4ee(0x123),_0x58d4ee(0x118),_0x58d4ee(0x129)],_0x1d6a2b=[];for(const _0x306895 of _0x3de230){if(!isRuntimeSkillScope(_0x306895))throw CliErrors[_0x58d4ee(0x11b)](_0x58d4ee(0x119)+_0x306895);!_0x1d6a2b['includes'](_0x306895)&&_0x1d6a2b[_0x58d4ee(0x11e)](_0x306895);}return _0x1d6a2b;}export function isRuntimeSkillScope(_0x5114a2){const _0x53588f=a162_0x2137;return _0x5114a2==='personal'||_0x5114a2==='company'||_0x5114a2===_0x53588f(0x129);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a164_0x34a5bb=a164_0x2778;(function(_0x4784f5,_0x22588f){const _0x2b8543=a164_0x2778,_0x4edb8d=_0x4784f5();while(!![]){try{const _0x53f43d=-parseInt(_0x2b8543(0xc9))/0x1+-parseInt(_0x2b8543(0xbc))/0x2+-parseInt(_0x2b8543(0xc8))/0x3*(-parseInt(_0x2b8543(0xbd))/0x4)+parseInt(_0x2b8543(0xba))/0x5*(parseInt(_0x2b8543(0xca))/0x6)+-parseInt(_0x2b8543(0xb5))/0x7*(-parseInt(_0x2b8543(0xb6))/0x8)+-parseInt(_0x2b8543(0xbb))/0x9+parseInt(_0x2b8543(0xc0))/0xa*(-parseInt(_0x2b8543(0xbf))/0xb);if(_0x53f43d===_0x22588f)break;else _0x4edb8d['push'](_0x4edb8d['shift']());}catch(_0x49b7b6){_0x4edb8d['push'](_0x4edb8d['shift']());}}}(a164_0x36d0,0x38f2f));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';function a164_0x36d0(){const _0x15125a=['validation','550SYUwLa','4180iQdcNi','from','map','validation_error','name','object','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','1252497QiQWyS','21930JHAWIF','32862yQAitA','21kBbFBc','559712EOSKRm','1980-01-01T00:00:00.000Z','endsWith','code','95OjZZxt','549567QWJjSg','788596ZCKJjS','4GMxHXa'];a164_0x36d0=function(){return _0x15125a;};return a164_0x36d0();}const ZIP_MTIME=new Date(a164_0x34a5bb(0xb7));export function createDeterministicZipPackage(_0x1c3122){const _0x468c7d=a164_0x34a5bb,_0x4025a4={};for(const _0xc9fed2 of normalizeLocalFiles(_0x1c3122)){_0x4025a4[_0xc9fed2['path']]=fileContent(_0xc9fed2);}return Buffer[_0x468c7d(0xc1)](zipSync(_0x4025a4,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x4fefd0){const _0x246019=a164_0x34a5bb;if(_0x4fefd0['length']<0x16)throw CliErrors[_0x246019(0xbe)](_0x246019(0xc6));let _0x15b949;try{_0x15b949=unzipSync(_0x4fefd0,{'filter'(_0x23fc12){const _0x539d07=_0x246019,_0x2a30ce=normalizeSkillRelativePath(_0x23fc12[_0x539d07(0xc4)]);if(_0x2a30ce[_0x539d07(0xb8)]('/'))throw CliErrors[_0x539d07(0xbe)](_0x539d07(0xc7)+_0x2a30ce);return!![];}});}catch(_0x349ef4){if(isRuntimeSkillValidationError(_0x349ef4))throw _0x349ef4;throw CliErrors[_0x246019(0xbe)](_0x246019(0xc6));}return Object['entries'](_0x15b949)[_0x246019(0xc2)](([_0x290866,_0x545153])=>({'path':normalizeSkillRelativePath(_0x290866),'bytes':Buffer['from'](_0x545153)}))['sort'](compareSkillFiles);}function a164_0x2778(_0x1c6f2e,_0xc458bb){_0x1c6f2e=_0x1c6f2e-0xb5;const _0x36d08f=a164_0x36d0();let _0x2778e9=_0x36d08f[_0x1c6f2e];return _0x2778e9;}function isRuntimeSkillValidationError(_0x47ac5e){const _0x3d24fc=a164_0x34a5bb;return typeof _0x47ac5e===_0x3d24fc(0xc5)&&_0x47ac5e!==null&&'code'in _0x47ac5e&&_0x47ac5e[_0x3d24fc(0xb9)]===_0x3d24fc(0xc3);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5d1cbc,_0x4ea880){const _0x386c50=a165_0xa507,_0x893356=_0x5d1cbc();while(!![]){try{const _0x21cae2=parseInt(_0x386c50(0x134))/0x1+-parseInt(_0x386c50(0x13c))/0x2+-parseInt(_0x386c50(0x142))/0x3*(-parseInt(_0x386c50(0x120))/0x4)+parseInt(_0x386c50(0x13b))/0x5*(parseInt(_0x386c50(0x127))/0x6)+-parseInt(_0x386c50(0x128))/0x7+-parseInt(_0x386c50(0x132))/0x8*(-parseInt(_0x386c50(0x12a))/0x9)+-parseInt(_0x386c50(0x12e))/0xa*(-parseInt(_0x386c50(0x121))/0xb);if(_0x21cae2===_0x4ea880)break;else _0x893356['push'](_0x893356['shift']());}catch(_0x1ff317){_0x893356['push'](_0x893356['shift']());}}}(a165_0xaef9,0xe0a46));import{CliErrors}from'../../errors.js';function a165_0xaef9(){const _0x13f85f=['Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','1118405ukXVDj','2290008ZqlKVB','zipSha256','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','push','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','path','18846wvjxCx','Runtime\x20Skill\x20package\x20is\x20missing\x20','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','toLowerCase','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','152YXTNDy','1023kfYRNy','get','schemaVersion','isArray','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','12sxsCCo','9635255hSWlMO','zipSize','1899WDnwHI','bytes','files','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','280380toblHX','validation','toString','map','4168rrDOrX','sha256','38060yqJIES','some','Duplicate\x20Skill\x20package\x20entry:\x20','treeSha256','length','string'];a165_0xaef9=function(){return _0x13f85f;};return a165_0xaef9();}import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';function a165_0xa507(_0x222b37,_0x1603d8){_0x222b37=_0x222b37-0x11e;const _0xaef91c=a165_0xaef9();let _0xa507e3=_0xaef91c[_0x222b37];return _0xa507e3;}export function buildSkillPackage(_0x20ad2f){const _0x4c28c6=a165_0xa507,_0x15432f=normalizeLocalFiles(_0x20ad2f);if(!_0x15432f[_0x4c28c6(0x135)](_0x12fb5d=>_0x12fb5d[_0x4c28c6(0x141)]===SKILL_FILE))throw CliErrors[_0x4c28c6(0x12f)]('Missing\x20'+SKILL_FILE+'\x20in\x20Skill\x20file\x20package.');const _0x1af9e3=localFilesToManifestFiles(_0x15432f),_0x44d7ae=createDeterministicZipPackage(_0x15432f);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x1af9e3),'zipSha256':bufferSha256(_0x44d7ae),'zipSize':_0x44d7ae['length'],'files':_0x1af9e3},'packageBytes':_0x44d7ae,'packageBase64':_0x44d7ae[_0x4c28c6(0x130)]('base64')};}export function verifyRuntimeSkillPackage(_0x424ca3,_0xe39105){const _0xf22014=a165_0xa507,_0x15c0d9=normalizePackageManifest(_0x424ca3,{'requireOssPath':![]});if(!_0x15c0d9)throw CliErrors['validation'](_0xf22014(0x13e));return extractAndVerifyPackage(_0x15c0d9,_0xe39105);}export function verifyRuntimeSkillBundle(_0xb1ae5b,_0x47a672){const _0x136213=a165_0xa507,_0x1758a8=normalizePackageManifest(_0xb1ae5b,{'requireOssPath':![]});if(!_0x1758a8)throw CliErrors[_0x136213(0x12f)](_0x136213(0x13e));return extractAndVerifyPackageFiles(_0x1758a8,_0x47a672);}export function tryNormalizePackageManifest(_0x4fc00d){return normalizePackageManifest(_0x4fc00d,{'requireOssPath':![]});}export function requirePackageBytes(_0xafdcf9,_0x5cc176){const _0x43c1e5=a165_0xa507;if(!_0x5cc176||_0x5cc176[_0x43c1e5(0x138)]===0x0)throw CliErrors[_0x43c1e5(0x12f)](_0x43c1e5(0x126)+_0xafdcf9);return _0x5cc176;}export function extractDownloadedPackage(_0x506404){const _0x3cde42=a165_0xa507,_0xecc4b8=parseZipPackage(_0x506404)[_0x3cde42(0x131)](_0x3342c8=>({'path':_0x3342c8[_0x3cde42(0x141)],'bytes':_0x3342c8[_0x3cde42(0x12b)]}));if(!_0xecc4b8[_0x3cde42(0x135)](_0x23760f=>_0x23760f['path']===SKILL_FILE))throw CliErrors[_0x3cde42(0x12f)](_0x3cde42(0x143)+SKILL_FILE+'.');return normalizeLocalFiles(_0xecc4b8);}export function localFilesToManifestFiles(_0x20b537){const _0x13ac33=a165_0xa507;return normalizeLocalFiles(_0x20b537)['map'](_0x504c8b=>({'path':_0x504c8b[_0x13ac33(0x141)],'sha256':fileHash(_0x504c8b),'size':fileContent(_0x504c8b)[_0x13ac33(0x138)]}));}function normalizePackageManifest(_0x444467,_0x2152af){const _0x1c72cd=a165_0xa507;if(!_0x444467||typeof _0x444467!=='object'||Array['isArray'](_0x444467))return undefined;const _0x40d449=_0x444467,_0x39cd99=typeof _0x40d449['ossPath']===_0x1c72cd(0x139)?_0x40d449['ossPath']['trim']():undefined;if(_0x2152af['requireOssPath']&&!_0x39cd99)return undefined;if(!Array[_0x1c72cd(0x124)](_0x40d449['files'])||_0x40d449[_0x1c72cd(0x12c)]['length']===0x0)return undefined;if(!isSha256Hex(_0x40d449[_0x1c72cd(0x137)]))throw CliErrors[_0x1c72cd(0x12f)](_0x1c72cd(0x145));if(!isSha256Hex(_0x40d449['zipSha256']))throw CliErrors[_0x1c72cd(0x12f)](_0x1c72cd(0x13a));if(!Number['isSafeInteger'](_0x40d449[_0x1c72cd(0x129)])||_0x40d449[_0x1c72cd(0x129)]<0x0)throw CliErrors[_0x1c72cd(0x12f)]('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');const _0x3f9457=normalizeManifestFiles(_0x40d449[_0x1c72cd(0x12c)]);if(!_0x3f9457[_0x1c72cd(0x135)](_0x4a5806=>_0x4a5806['path']===SKILL_FILE))throw CliErrors[_0x1c72cd(0x12f)](_0x1c72cd(0x140)+SKILL_FILE+'.');const _0x32f167=fileTreeHash(_0x3f9457);if(_0x32f167!==_0x40d449[_0x1c72cd(0x137)][_0x1c72cd(0x11e)]())throw CliErrors[_0x1c72cd(0x12f)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number['isSafeInteger'](_0x40d449[_0x1c72cd(0x123)])?_0x40d449[_0x1c72cd(0x123)]:0x2,'ossPath':_0x39cd99,'treeSha256':_0x32f167,'zipSha256':_0x40d449[_0x1c72cd(0x13d)][_0x1c72cd(0x11e)](),'zipSize':_0x40d449[_0x1c72cd(0x129)],'files':_0x3f9457};}function extractAndVerifyPackage(_0x2fccbd,_0x1fdb86){const _0x29f0d4=a165_0xa507,_0x17ec2b=normalizePackageManifest(_0x2fccbd,{'requireOssPath':![]});if(!_0x17ec2b)throw CliErrors[_0x29f0d4(0x12f)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');if(_0x1fdb86[_0x29f0d4(0x138)]!==_0x17ec2b[_0x29f0d4(0x129)])throw CliErrors[_0x29f0d4(0x12f)]('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x1ee9df=bufferSha256(_0x1fdb86);if(_0x1ee9df!==_0x17ec2b['zipSha256'])throw CliErrors[_0x29f0d4(0x12f)]('Runtime\x20Skill\x20package\x20sha256\x20mismatch.');return extractAndVerifyPackageFiles(_0x17ec2b,_0x1fdb86);}function extractAndVerifyPackageFiles(_0x59a0b3,_0x3e8f38){const _0x46166d=a165_0xa507,_0x5a2819=parseZipPackage(_0x3e8f38);if(_0x5a2819[_0x46166d(0x138)]!==_0x59a0b3['files'][_0x46166d(0x138)])throw CliErrors[_0x46166d(0x12f)](_0x46166d(0x125));const _0x5dc383=new Map();for(const _0x35a9b2 of _0x5a2819){if(_0x5dc383['has'](_0x35a9b2[_0x46166d(0x141)]))throw CliErrors['validation'](_0x46166d(0x136)+_0x35a9b2[_0x46166d(0x141)]);_0x5dc383['set'](_0x35a9b2[_0x46166d(0x141)],_0x35a9b2);}const _0x85bb6e=[];for(const _0x23f487 of _0x59a0b3['files']){const _0x331f6d=_0x5dc383[_0x46166d(0x122)](_0x23f487[_0x46166d(0x141)]);if(!_0x331f6d)throw CliErrors[_0x46166d(0x12f)](_0x46166d(0x144)+_0x23f487[_0x46166d(0x141)]);if(_0x331f6d[_0x46166d(0x12b)][_0x46166d(0x138)]!==_0x23f487['size'])throw CliErrors['validation'](_0x46166d(0x12d)+_0x23f487[_0x46166d(0x141)]);const _0x1f0dd1=bufferSha256(_0x331f6d[_0x46166d(0x12b)]);if(_0x1f0dd1!==_0x23f487[_0x46166d(0x133)])throw CliErrors[_0x46166d(0x12f)](_0x46166d(0x11f)+_0x23f487[_0x46166d(0x141)]);_0x85bb6e[_0x46166d(0x13f)]({'path':_0x23f487[_0x46166d(0x141)],'bytes':_0x331f6d[_0x46166d(0x12b)]});}return normalizeLocalFiles(_0x85bb6e);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x361794,_0x39207b){var _0xe79503=a166_0x1ebf,_0x429706=_0x361794();while(!![]){try{var _0x1e060a=-parseInt(_0xe79503(0x115))/0x1*(-parseInt(_0xe79503(0x10e))/0x2)+parseInt(_0xe79503(0x110))/0x3*(parseInt(_0xe79503(0x10c))/0x4)+parseInt(_0xe79503(0x114))/0x5+-parseInt(_0xe79503(0x113))/0x6*(parseInt(_0xe79503(0x10f))/0x7)+-parseInt(_0xe79503(0x10d))/0x8+parseInt(_0xe79503(0x111))/0x9+-parseInt(_0xe79503(0x112))/0xa;if(_0x1e060a===_0x39207b)break;else _0x429706['push'](_0x429706['shift']());}catch(_0x1d3b1c){_0x429706['push'](_0x429706['shift']());}}}(a166_0x5dfd,0xb91f5));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';function a166_0x5dfd(){var _0x3302f8=['19042100JhngwW','77490YdVCrT','7524545ZzlDhD','1404181IlnjIE','4nBMGEl','9632096OSNuXT','2MCGqqN','609nErWtK','3361812QIxesd','8643546GCOaCx'];a166_0x5dfd=function(){return _0x3302f8;};return a166_0x5dfd();}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';function a166_0x1ebf(_0x25b901,_0x548c84){_0x25b901=_0x25b901-0x10c;var _0x5dfdf9=a166_0x5dfd();var _0x1ebf60=_0x5dfdf9[_0x25b901];return _0x1ebf60;}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 a167_0x258cce=a167_0x9d5c;(function(_0x25d766,_0x480f4d){const _0x172a86=a167_0x9d5c,_0x4553fc=_0x25d766();while(!![]){try{const _0x5e5d02=-parseInt(_0x172a86(0x17d))/0x1+parseInt(_0x172a86(0x165))/0x2+-parseInt(_0x172a86(0x185))/0x3*(-parseInt(_0x172a86(0x172))/0x4)+parseInt(_0x172a86(0x181))/0x5*(-parseInt(_0x172a86(0x17f))/0x6)+-parseInt(_0x172a86(0x16e))/0x7*(-parseInt(_0x172a86(0x171))/0x8)+-parseInt(_0x172a86(0x183))/0x9*(parseInt(_0x172a86(0x178))/0xa)+parseInt(_0x172a86(0x168))/0xb;if(_0x5e5d02===_0x480f4d)break;else _0x4553fc['push'](_0x4553fc['shift']());}catch(_0x5236bb){_0x4553fc['push'](_0x4553fc['shift']());}}}(a167_0x5300,0x9b5da));function a167_0x9d5c(_0x175eeb,_0x331045){_0x175eeb=_0x175eeb-0x165;const _0x530089=a167_0x5300();let _0x9d5cb2=_0x530089[_0x175eeb];return _0x9d5cb2;}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a167_0x258cce(0x17b),'.skill-lock.json');export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a167_0x258cce(0x17b),a167_0x258cce(0x173)),join(a167_0x258cce(0x180),a167_0x258cce(0x173))];const SUPPORTED_LOCK_VERSIONS=[0x3];function a167_0x5300(){const _0x50efe8=['includes','1275850FnecIs','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','globalSkillsDirs','2197030RlJaxK','kind','message','join','utf8','\x20records\x20\x22','7OMkivQ','object','home','8574128HkLNbT','80JaqpKW','skills','\x20has\x20no\x20skills\x20map','lockFile','unusable','not-recorded','550510xInKDM','version','recorded','.agents','map','875007VYhLko','\x20uses\x20unsupported\x20version\x20','10986itBRGC','.claude','1045mrVjgx','absent','63IOLfRD','unverifiable','55500gIjXVl'];a167_0x5300=function(){return _0x50efe8;};return a167_0x5300();}function readLockLookup(_0x2564f8,_0x270b72){const _0x3da419=a167_0x258cce;if(!existsSync(_0x2564f8))return{'kind':'not-recorded'};let _0x7038e8;try{_0x7038e8=JSON['parse'](readFileSync(_0x2564f8,_0x3da419(0x16c)));}catch(_0x2be55d){return{'kind':_0x3da419(0x176),'reason':_0x2564f8+'\x20is\x20unreadable:\x20'+_0x2be55d[_0x3da419(0x16a)]};}const _0x379676=_0x7038e8;if(typeof _0x379676?.['version']!=='number'||!SUPPORTED_LOCK_VERSIONS[_0x3da419(0x186)](_0x379676[_0x3da419(0x179)]))return{'kind':_0x3da419(0x176),'reason':_0x2564f8+_0x3da419(0x17e)+String(_0x379676?.[_0x3da419(0x179)])};if(!_0x379676[_0x3da419(0x173)]||typeof _0x379676[_0x3da419(0x173)]!==_0x3da419(0x16f))return{'kind':_0x3da419(0x176),'reason':_0x2564f8+_0x3da419(0x174)};return _0x379676['skills'][_0x270b72]?{'kind':_0x3da419(0x17a)}:{'kind':_0x3da419(0x177)};}export function resolveInstalledSkill(_0x61c500,_0x2a33dc){const _0x562ce5=a167_0x258cce,_0x33b334=_0x2a33dc?.[_0x562ce5(0x170)]??homedir(),_0x38fc95=_0x2a33dc?.[_0x562ce5(0x167)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x562ce5(0x17c)](_0x3c9c1d=>join(_0x33b334,_0x3c9c1d)),_0x47a8c3=_0x2a33dc?.[_0x562ce5(0x175)]??join(_0x33b334,SKILL_LOCK_RELATIVE_PATH),_0x1c07ed=_0x38fc95[_0x562ce5(0x17c)](_0x85cbad=>join(_0x85cbad,_0x61c500,'SKILL.md')),_0x1dcbf0=_0x1c07ed['find'](_0x4f7917=>existsSync(_0x4f7917));if(_0x1dcbf0)return{'state':'present','path':_0x1dcbf0};const _0x1ff58b=readLockLookup(_0x47a8c3,_0x61c500);if(_0x1ff58b[_0x562ce5(0x169)]==='unusable')return{'state':'unverifiable','reason':_0x1ff58b['reason']};if(_0x1ff58b[_0x562ce5(0x169)]===_0x562ce5(0x17a))return{'state':_0x562ce5(0x184),'reason':_0x47a8c3+_0x562ce5(0x16d)+_0x61c500+_0x562ce5(0x166)+('('+_0x1c07ed[_0x562ce5(0x16b)](',\x20')+')')};return{'state':_0x562ce5(0x182),'checked':_0x1c07ed};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a168_0x5cd415=a168_0x4a53;(function(_0x40e02a,_0x384f1b){const _0x553668=a168_0x4a53,_0x40c341=_0x40e02a();while(!![]){try{const _0x20dbc8=-parseInt(_0x553668(0x1dd))/0x1*(-parseInt(_0x553668(0x1df))/0x2)+parseInt(_0x553668(0x1d0))/0x3+-parseInt(_0x553668(0x1e2))/0x4+-parseInt(_0x553668(0x1d4))/0x5+-parseInt(_0x553668(0x1de))/0x6+parseInt(_0x553668(0x1d3))/0x7+parseInt(_0x553668(0x1cd))/0x8;if(_0x20dbc8===_0x384f1b)break;else _0x40c341['push'](_0x40c341['shift']());}catch(_0x512c86){_0x40c341['push'](_0x40c341['shift']());}}}(a168_0x479a,0x58e8d));const REDACTED_ACCESS_KEY=a168_0x5cd415(0x1da);export function maskCliAccessKey(_0x2da887){const _0x2e83a0=a168_0x5cd415;if(typeof _0x2da887!==_0x2e83a0(0x1d8)||_0x2da887[_0x2e83a0(0x1dc)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x2da887[_0x2e83a0(0x1cf)](0x0,0x8)+'*'['repeat'](_0x2da887[_0x2e83a0(0x1dc)]-0x8);}function a168_0x479a(){const _0x12d1be=['266pMvXiu','object','call','2168992QkRMqD','accessKey','11854656SKTCUJ','test','slice','80679xeryLh','fromEntries','isArray','1634528QIsbeZ','3310190wyHYge','prototype','entries','apps','string','map','<redacted>','hasOwnProperty','length','2009prDYfA','2645802ABIIwB'];a168_0x479a=function(){return _0x12d1be;};return a168_0x479a();}export function redactCliConfigCredentials(_0x135a9d){const _0x4cb392=a168_0x5cd415,_0x587de1={..._0x135a9d};return Object[_0x4cb392(0x1d5)][_0x4cb392(0x1db)]['call'](_0x587de1,_0x4cb392(0x1cc))&&(_0x587de1['accessKey']=maskCliAccessKey(_0x587de1['accessKey'])),_0x587de1['apps']&&typeof _0x587de1[_0x4cb392(0x1d7)]===_0x4cb392(0x1e0)&&!Array[_0x4cb392(0x1d2)](_0x587de1['apps'])&&(_0x587de1[_0x4cb392(0x1d7)]=redactLegacyAppCredentials(_0x587de1[_0x4cb392(0x1d7)])),_0x587de1;}export function redactCliConfigValue(_0x16adf4,_0x3949b3){const _0x2d8a87=a168_0x5cd415;if(_0x16adf4===_0x2d8a87(0x1cc)||/^apps\.[^.]+\.accessKey$/[_0x2d8a87(0x1ce)](_0x16adf4))return maskCliAccessKey(_0x3949b3);if(_0x16adf4===_0x2d8a87(0x1d7)&&_0x3949b3&&typeof _0x3949b3===_0x2d8a87(0x1e0)&&!Array[_0x2d8a87(0x1d2)](_0x3949b3))return redactLegacyAppCredentials(_0x3949b3);if(/^apps\.[^.]+$/['test'](_0x16adf4)&&_0x3949b3&&typeof _0x3949b3===_0x2d8a87(0x1e0)&&!Array[_0x2d8a87(0x1d2)](_0x3949b3)){const _0x5b9395=_0x3949b3;return Object[_0x2d8a87(0x1d5)]['hasOwnProperty'][_0x2d8a87(0x1e1)](_0x5b9395,_0x2d8a87(0x1cc))?{..._0x5b9395,'accessKey':maskCliAccessKey(_0x5b9395[_0x2d8a87(0x1cc)])}:_0x3949b3;}return _0x3949b3;}function a168_0x4a53(_0x182d4b,_0x517963){_0x182d4b=_0x182d4b-0x1cc;const _0x479a3f=a168_0x479a();let _0x4a5327=_0x479a3f[_0x182d4b];return _0x4a5327;}function redactLegacyAppCredentials(_0x62fbe0){const _0x5c208e=a168_0x5cd415;return Object[_0x5c208e(0x1d1)](Object[_0x5c208e(0x1d6)](_0x62fbe0)[_0x5c208e(0x1d9)](([_0x3e625c,_0x59256d])=>{const _0x39b9fa=_0x5c208e;if(!_0x59256d||typeof _0x59256d!==_0x39b9fa(0x1e0)||Array[_0x39b9fa(0x1d2)](_0x59256d))return[_0x3e625c,_0x59256d];const _0xcadf9={..._0x59256d};return Object[_0x39b9fa(0x1d5)][_0x39b9fa(0x1db)][_0x39b9fa(0x1e1)](_0xcadf9,'accessKey')&&(_0xcadf9[_0x39b9fa(0x1cc)]=maskCliAccessKey(_0xcadf9[_0x39b9fa(0x1cc)])),[_0x3e625c,_0xcadf9];}));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4f24e2,_0x4f48f5){const _0x49f259=a169_0x1dfd,_0x3081ca=_0x4f24e2();while(!![]){try{const _0x84e221=-parseInt(_0x49f259(0x82))/0x1*(-parseInt(_0x49f259(0x7f))/0x2)+parseInt(_0x49f259(0x7e))/0x3+-parseInt(_0x49f259(0x86))/0x4+parseInt(_0x49f259(0x83))/0x5*(parseInt(_0x49f259(0x81))/0x6)+-parseInt(_0x49f259(0x80))/0x7+-parseInt(_0x49f259(0x7d))/0x8+-parseInt(_0x49f259(0x84))/0x9*(parseInt(_0x49f259(0x85))/0xa);if(_0x84e221===_0x4f48f5)break;else _0x3081ca['push'](_0x3081ca['shift']());}catch(_0x2851b8){_0x3081ca['push'](_0x3081ca['shift']());}}}(a169_0x39f6,0x6fd08));function a169_0x1dfd(_0x205804,_0x470718){_0x205804=_0x205804-0x7d;const _0x39f6a7=a169_0x39f6();let _0x1dfdbe=_0x39f6a7[_0x205804];return _0x1dfdbe;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a169_0x39f6(){const _0x5da3d9=['429632XevrHB','4254440ZLJJoc','2210841Cwhvbz','534264rhfZPW','1918203BxCJsI','5020188TRDPXP','2Eflfdb','5rQGvVZ','45GpkBZQ','1473350XoQVJm'];a169_0x39f6=function(){return _0x5da3d9;};return a169_0x39f6();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x314f94,_0x53faec){const _0x17d422=a170_0xc851,_0x29d38f=_0x314f94();while(!![]){try{const _0x4b187e=-parseInt(_0x17d422(0x90))/0x1*(-parseInt(_0x17d422(0x93))/0x2)+parseInt(_0x17d422(0x8d))/0x3+-parseInt(_0x17d422(0x8b))/0x4*(-parseInt(_0x17d422(0x8f))/0x5)+parseInt(_0x17d422(0x98))/0x6+-parseInt(_0x17d422(0x88))/0x7+parseInt(_0x17d422(0x96))/0x8+-parseInt(_0x17d422(0x87))/0x9;if(_0x4b187e===_0x53faec)break;else _0x29d38f['push'](_0x29d38f['shift']());}catch(_0x88524b){_0x29d38f['push'](_0x29d38f['shift']());}}}(a170_0xb535,0x42e2d));function a170_0xc851(_0x275a85,_0x1030e6){_0x275a85=_0x275a85-0x85;const _0xb53513=a170_0xb535();let _0xc851a9=_0xb53513[_0x275a85];return _0xc851a9;}import a170_0x3054dc from'semver';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CliErrors}from'../errors.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';export function evaluateCliVersionPolicy(_0x4cf36f,_0x39cd20){const _0x5095b0=a170_0xc851,_0x133684=a170_0x3054dc[_0x5095b0(0x85)](_0x4cf36f)===_0x4cf36f,_0x48526f=_0x39cd20?.[_0x5095b0(0x8c)]??null,_0xd39c40=_0x39cd20?.[_0x5095b0(0x86)]??null,_0x241750=Boolean(_0x133684&&_0x48526f&&a170_0x3054dc['lt'](_0x4cf36f,_0x48526f)),_0x4b79a8=Boolean(_0x133684&&_0xd39c40&&a170_0x3054dc['lt'](_0x4cf36f,_0xd39c40));return{'currentVersion':_0x4cf36f,'stableVersion':_0x48526f,'minimumVersion':_0xd39c40,'needsUpgrade':_0x241750||_0x4b79a8,'belowMinimum':_0x4b79a8,'upgradeMessage':_0x39cd20?.['upgradeMessage'],'minimumVersionMessage':_0x39cd20?.[_0x5095b0(0x95)]};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x1949b1){const _0x4267cd=a170_0xc851;return'npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x1949b1[_0x4267cd(0x8c)]??'latest');}function a170_0xb535(){const _0xdda2c5=['7330077bAaEol','839328WEskDw','filter','unavailable','4ZjGPOC','stableVersion','147858jdhIPH','Upgrade\x20command:\x20','1449995JqUclV','193643xuejFk','Recommended\x20stable:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','4yIBJrc','Current\x20version:\x20','minimumVersionMessage','55656ZXxdLP','Minimum\x20supported:\x20','2848764ELBUQY','belowMinimum','valid','minimumVersion'];a170_0xb535=function(){return _0xdda2c5;};return a170_0xb535();}export function assertCliVersionSupported(_0x526b16){const _0x5c06bc=a170_0xc851;if(!_0x526b16[_0x5c06bc(0x99)])return;const _0x5370a1=[_0x526b16['minimumVersionMessage'],_0x5c06bc(0x94)+_0x526b16['currentVersion'],_0x5c06bc(0x97)+_0x526b16[_0x5c06bc(0x86)],_0x5c06bc(0x91)+(_0x526b16[_0x5c06bc(0x8c)]??_0x5c06bc(0x8a)),_0x5c06bc(0x8e)+getCliUpgradeCommand(_0x526b16)][_0x5c06bc(0x89)](Boolean)['join']('\x0a');throw CliErrors['validation'](_0x5c06bc(0x92),_0x5370a1);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x58450a,_0x3e5e9a){const _0x297c8b=a171_0xe1e7,_0x1b1388=_0x58450a();while(!![]){try{const _0xd44ac6=parseInt(_0x297c8b(0x6e))/0x1*(parseInt(_0x297c8b(0x6b))/0x2)+parseInt(_0x297c8b(0x66))/0x3+parseInt(_0x297c8b(0x6c))/0x4*(parseInt(_0x297c8b(0x67))/0x5)+-parseInt(_0x297c8b(0x6f))/0x6+parseInt(_0x297c8b(0x70))/0x7*(parseInt(_0x297c8b(0x7e))/0x8)+parseInt(_0x297c8b(0x69))/0x9*(-parseInt(_0x297c8b(0x68))/0xa)+-parseInt(_0x297c8b(0x65))/0xb*(-parseInt(_0x297c8b(0x6d))/0xc);if(_0xd44ac6===_0x3e5e9a)break;else _0x1b1388['push'](_0x1b1388['shift']());}catch(_0x39e65f){_0x1b1388['push'](_0x1b1388['shift']());}}}(a171_0x7e6b,0x59a11));import a171_0x143947 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 a171_0x7e6b(){const _0x285b8d=['383018sGzJer','84052HUrzrm','7874796yGNwjJ','1FHJwWC','3128478ivsPTh','3150WbBenb','finally','recommendedVersion','minimumVersion','object','latestVersion','valid','json','then','upgradeMessage','cli','timeout','trim','minVersion','7464nUSmsd','now','11qkibqm','615696epQjlU','5jNMQTq','6053030SysRms','9lzRwlF','stableVersion'];a171_0x7e6b=function(){return _0x285b8d;};return a171_0x7e6b();}function pickString(_0x1e9e8d){const _0x2642e3=a171_0xe1e7;return typeof _0x1e9e8d==='string'&&_0x1e9e8d['trim']()?_0x1e9e8d[_0x2642e3(0x7c)]():null;}function pickStrictSemver(_0x582334){const _0x5b0e07=a171_0xe1e7,_0x17534e=pickString(_0x582334);return _0x17534e&&a171_0x143947[_0x5b0e07(0x76)](_0x17534e)===_0x17534e?_0x17534e:null;}export function normalizeCliVersionPolicy(_0x497e89){const _0x286b38=a171_0xe1e7;if(!_0x497e89||typeof _0x497e89!==_0x286b38(0x74))return null;const _0x4eb388=_0x497e89,_0x2f12d2=_0x4eb388[_0x286b38(0x7a)]&&typeof _0x4eb388[_0x286b38(0x7a)]==='object'?_0x4eb388[_0x286b38(0x7a)]:_0x4eb388,_0x4e41e1=pickStrictSemver(_0x2f12d2[_0x286b38(0x6a)]??_0x2f12d2[_0x286b38(0x75)]??_0x2f12d2[_0x286b38(0x72)]),_0x53d8be=pickStrictSemver(_0x2f12d2[_0x286b38(0x73)]??_0x2f12d2[_0x286b38(0x7d)]);if(!_0x4e41e1&&!_0x53d8be)return null;if(_0x4e41e1&&_0x53d8be&&a171_0x143947['gt'](_0x53d8be,_0x4e41e1))return null;return{'stableVersion':_0x4e41e1,'minimumVersion':_0x53d8be,'upgradeMessage':pickString(_0x2f12d2[_0x286b38(0x79)])??undefined,'minimumVersionMessage':pickString(_0x2f12d2['minimumVersionMessage'])??undefined};}export async function fetchCliVersionPolicy(){const _0x4caaa3=a171_0xe1e7;try{const _0x35c73a=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':AbortSignal[_0x4caaa3(0x7b)](FETCH_TIMEOUT_MS)});if(!_0x35c73a['ok'])return null;return normalizeCliVersionPolicy(await _0x35c73a[_0x4caaa3(0x77)]());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;function a171_0xe1e7(_0x250beb,_0x5b1d46){_0x250beb=_0x250beb-0x64;const _0x7e6b4c=a171_0x7e6b();let _0xe1e740=_0x7e6b4c[_0x250beb];return _0xe1e740;}export async function getCliVersionPolicy(){const _0x10fe02=a171_0xe1e7,_0x36f2da=Date[_0x10fe02(0x64)]();if(hasCachedPolicy){const _0x52b911=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x36f2da-cachedAt<_0x52b911)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x10fe02(0x78)](_0x372686=>{const _0x40ca6e=_0x10fe02;return cachedPolicy=_0x372686,cachedAt=Date[_0x40ca6e(0x64)](),hasCachedPolicy=!![],_0x372686;})[_0x10fe02(0x71)](()=>{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 a172_0x36b569=a172_0x17ce;function a172_0x17ce(_0xd101ba,_0x636113){_0xd101ba=_0xd101ba-0x150;const _0xaee47e=a172_0xaee4();let _0x17ce82=_0xaee47e[_0xd101ba];return _0x17ce82;}(function(_0x35c927,_0x236482){const _0x25bdce=a172_0x17ce,_0x308ab6=_0x35c927();while(!![]){try{const _0x3fbc18=-parseInt(_0x25bdce(0x16f))/0x1+-parseInt(_0x25bdce(0x17e))/0x2+-parseInt(_0x25bdce(0x169))/0x3+-parseInt(_0x25bdce(0x180))/0x4*(-parseInt(_0x25bdce(0x172))/0x5)+-parseInt(_0x25bdce(0x17a))/0x6+parseInt(_0x25bdce(0x156))/0x7*(-parseInt(_0x25bdce(0x179))/0x8)+-parseInt(_0x25bdce(0x16c))/0x9*(-parseInt(_0x25bdce(0x17f))/0xa);if(_0x3fbc18===_0x236482)break;else _0x308ab6['push'](_0x308ab6['shift']());}catch(_0x4dfc37){_0x308ab6['push'](_0x308ab6['shift']());}}}(a172_0xaee4,0x9274b));import a172_0x2d0256 from'winston';import a172_0x5423ec from'node:fs';function a172_0xaee4(){const _0x53818d=['logFileName','duration','trim','readFileSync','success','setRawCommand','blue','stringify','rawCommand','winstonLogger','unknown','readLogs','map','red','now','combine','1831233BVjwKz','format','warn','45aTrBCy','Failed\x20to\x20clear\x20logs:','error','12708VHuXRU','dirname','timestamp','87370VkQnZS','currentRawCommand','level','join','mkdirSync','logTask','Starting:\x20','142768kfKFFe','5521440UUEBEz','existsSync','initWinstonLogger','yellow','2187442mPppsm','5556370VYooJk','248ATvDkm','details','info','addColors','setLogPath','toISOString','message','utf8','logFilePath','File','createLogger','errors','245LXYnlI','writeFileSync','Completed:\x20'];a172_0xaee4=function(){return _0x53818d;};return a172_0xaee4();}import a172_0x151857 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a172_0x36b569(0x162)];[a172_0x36b569(0x152)]='';['currentRawCommand']='';constructor(){}[a172_0x36b569(0x15e)](_0xd47782){this['currentRawCommand']=_0xd47782;}[a172_0x36b569(0x184)](_0x51ad8e){const _0x5947c5=a172_0x36b569;this[_0x5947c5(0x152)]=a172_0x151857[_0x5947c5(0x175)](_0x51ad8e,PRODUCT_CONFIG[_0x5947c5(0x159)]),this['winstonLogger']&&this[_0x5947c5(0x162)]['clear'](),this[_0x5947c5(0x17c)]();}[a172_0x36b569(0x17c)](){const _0x11ae76=a172_0x36b569,_0x33e4f9=a172_0x151857[_0x11ae76(0x170)](this[_0x11ae76(0x152)]);!a172_0x5423ec[_0x11ae76(0x17b)](_0x33e4f9)&&a172_0x5423ec[_0x11ae76(0x176)](_0x33e4f9,{'recursive':!![]});const _0x51b288=a172_0x2d0256[_0x11ae76(0x16a)][_0x11ae76(0x168)](a172_0x2d0256['format']['timestamp'](),a172_0x2d0256[_0x11ae76(0x16a)][_0x11ae76(0x155)]({'stack':!![]}),a172_0x2d0256[_0x11ae76(0x16a)]['printf'](_0x11da54=>{const _0x38c5cf=_0x11ae76,_0xac30f3={'timestamp':_0x11da54[_0x38c5cf(0x171)]||new Date()[_0x38c5cf(0x185)](),'level':_0x11da54[_0x38c5cf(0x174)]||_0x38c5cf(0x182),'command':_0x11da54['command']||_0x38c5cf(0x163),'rawCommand':_0x11da54[_0x38c5cf(0x161)]||this[_0x38c5cf(0x173)]||undefined,'message':_0x11da54['message']||'','duration':_0x11da54[_0x38c5cf(0x15a)]||undefined,'details':_0x11da54[_0x38c5cf(0x181)]||undefined};return JSON[_0x38c5cf(0x160)](_0xac30f3);}));this['winstonLogger']=a172_0x2d0256[_0x11ae76(0x154)]({'level':'info','format':_0x51b288,'transports':[new a172_0x2d0256['transports'][(_0x11ae76(0x153))]({'filename':this[_0x11ae76(0x152)],'level':_0x11ae76(0x182)})],'silent':![]}),a172_0x2d0256[_0x11ae76(0x183)]({'success':'green','error':_0x11ae76(0x166),'warn':_0x11ae76(0x17d),'info':_0x11ae76(0x15f)});}['info'](_0x581fbe,_0x39ccf9,_0xbe266d){const _0x492429=a172_0x36b569;if(!this[_0x492429(0x152)]||!this[_0x492429(0x162)])return;this[_0x492429(0x162)][_0x492429(0x182)](_0x39ccf9,{'command':_0x581fbe,'details':_0xbe266d});}[a172_0x36b569(0x15d)](_0x4bd5ca,_0x446b5d,_0x2c6f8b,_0x227161){const _0x2b0bb3=a172_0x36b569;if(!this[_0x2b0bb3(0x152)]||!this['winstonLogger'])return;this['winstonLogger']['log'](_0x2b0bb3(0x182),_0x446b5d,{'level':_0x2b0bb3(0x15d),'command':_0x4bd5ca,'duration':_0x2c6f8b,'details':_0x227161});}[a172_0x36b569(0x16e)](_0x1e48b2,_0x10f9a0,_0xce4fc6){const _0x3ca53f=a172_0x36b569;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x3ca53f(0x162)][_0x3ca53f(0x16e)](_0x10f9a0,{'command':_0x1e48b2,'details':_0xce4fc6});}[a172_0x36b569(0x16b)](_0x5244d8,_0x4f83dd,_0x51e420){const _0x291267=a172_0x36b569;if(!this[_0x291267(0x152)]||!this['winstonLogger'])return;this['winstonLogger'][_0x291267(0x16b)](_0x4f83dd,{'command':_0x5244d8,'details':_0x51e420});}async[a172_0x36b569(0x177)](_0x465fba,_0x132593,_0x29be08){const _0x4c9365=a172_0x36b569,_0x3a3e0a=Date['now']();this[_0x4c9365(0x182)](_0x465fba,_0x4c9365(0x178)+_0x132593);try{const _0x5399ed=await _0x29be08(),_0x3d9a95=Date[_0x4c9365(0x167)]()-_0x3a3e0a;return this[_0x4c9365(0x15d)](_0x465fba,_0x4c9365(0x158)+_0x132593,_0x3d9a95),_0x5399ed;}catch(_0xa206d0){const _0x1df199=Date[_0x4c9365(0x167)]()-_0x3a3e0a;this[_0x4c9365(0x16e)](_0x465fba,'Failed:\x20'+_0x132593,{'error':_0xa206d0 instanceof Error?_0xa206d0[_0x4c9365(0x150)]:String(_0xa206d0),'duration':_0x1df199});throw _0xa206d0;}}[a172_0x36b569(0x164)](){const _0x1237b0=a172_0x36b569;try{if(!a172_0x5423ec['existsSync'](this['logFilePath']))return[];const _0x528459=a172_0x5423ec[_0x1237b0(0x15c)](this[_0x1237b0(0x152)],_0x1237b0(0x151));return _0x528459['split'](/\r?\n/)['filter'](_0x2e2144=>_0x2e2144[_0x1237b0(0x15b)]())[_0x1237b0(0x165)](_0xa24a84=>JSON['parse'](_0xa24a84));}catch(_0x9281da){return console[_0x1237b0(0x16b)]('Failed\x20to\x20read\x20logs:',_0x9281da),[];}}['clearLogs'](){const _0x42471d=a172_0x36b569;try{a172_0x5423ec[_0x42471d(0x17b)](this[_0x42471d(0x152)])&&a172_0x5423ec[_0x42471d(0x157)](this[_0x42471d(0x152)],'','utf8');}catch(_0x52b6be){console[_0x42471d(0x16b)](_0x42471d(0x16d),_0x52b6be);}}['getWinstonInstance'](){const _0x3eac93=a172_0x36b569;return this[_0x3eac93(0x162)];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a173_0x5cf6c7=a173_0x516c;(function(_0x5894af,_0x5d7e0b){const _0x1706c7=a173_0x516c,_0x209941=_0x5894af();while(!![]){try{const _0x467417=-parseInt(_0x1706c7(0x82))/0x1*(-parseInt(_0x1706c7(0x80))/0x2)+-parseInt(_0x1706c7(0x83))/0x3+parseInt(_0x1706c7(0x78))/0x4*(parseInt(_0x1706c7(0x89))/0x5)+parseInt(_0x1706c7(0x87))/0x6+-parseInt(_0x1706c7(0x86))/0x7*(parseInt(_0x1706c7(0x7a))/0x8)+-parseInt(_0x1706c7(0x85))/0x9*(-parseInt(_0x1706c7(0x84))/0xa)+-parseInt(_0x1706c7(0x8b))/0xb;if(_0x467417===_0x5d7e0b)break;else _0x209941['push'](_0x209941['shift']());}catch(_0x404978){_0x209941['push'](_0x209941['shift']());}}}(a173_0xf64b,0x6adcf));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a173_0x5cf6c7(0x7e)]),MIN_SAFE_INTEGER=BigInt(Number[a173_0x5cf6c7(0x7d)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x292fc4){const _0x4cbc93=a173_0x5cf6c7;if(_0x292fc4[_0x4cbc93(0x88)]('.')||_0x292fc4['includes']('e')||_0x292fc4[_0x4cbc93(0x88)]('E'))return![];const _0x50ad1f=BigInt(_0x292fc4);return _0x50ad1f>MAX_SAFE_INTEGER||_0x50ad1f<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x1b36ff){const _0x34a1e9=a173_0x5cf6c7;let _0x33e420='',_0x87538c=![],_0x26702c=![];for(let _0x345a4d=0x0;_0x345a4d<_0x1b36ff['length'];){const _0x5329e6=_0x1b36ff[_0x345a4d];if(_0x87538c){_0x33e420+=_0x5329e6,_0x345a4d+=0x1;if(_0x26702c)_0x26702c=![];else{if(_0x5329e6==='\x5c')_0x26702c=!![];else _0x5329e6==='\x22'&&(_0x87538c=![]);}continue;}if(_0x5329e6==='\x22'){_0x87538c=!![],_0x33e420+=_0x5329e6,_0x345a4d+=0x1;continue;}if(_0x5329e6==='-'||_0x5329e6>='0'&&_0x5329e6<='9'){const _0x1637c0=JSON_NUMBER_PATTERN[_0x34a1e9(0x7c)](_0x1b36ff['slice'](_0x345a4d))?.[0x0];if(_0x1637c0){_0x33e420+=isUnsafeIntegerLiteral(_0x1637c0)?'\x22'+_0x1637c0+'\x22':_0x1637c0,_0x345a4d+=_0x1637c0['length'];continue;}}_0x33e420+=_0x5329e6,_0x345a4d+=0x1;}return _0x33e420;}export function parseLosslessJson(_0x59e254){const _0x473dee=a173_0x5cf6c7;return JSON[_0x473dee(0x79)](quoteUnsafeIntegerLiterals(_0x59e254));}export function installLosslessJsonResponseParser(){const _0x36db5d=a173_0x5cf6c7;if(typeof Response===_0x36db5d(0x81))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x36db5d(0x7b)],originalResponseJsonDescriptor=Object[_0x36db5d(0x7f)](responseJsonPrototype,_0x36db5d(0x8c)),Object['defineProperty'](responseJsonPrototype,_0x36db5d(0x8c),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x28ae08(){const _0x45afe8=_0x36db5d;return parseLosslessJson(await this[_0x45afe8(0x77)]());}}),restoreResponseJsonParser=()=>{const _0x4e9f41=_0x36db5d;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x4e9f41(0x8a)](responseJsonPrototype,_0x4e9f41(0x8c),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x4e9f41(0x8c)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}function a173_0x516c(_0x3341ab,_0x288db2){_0x3341ab=_0x3341ab-0x77;const _0xf64b8d=a173_0xf64b();let _0x516cd2=_0xf64b8d[_0x3341ab];return _0x516cd2;}function a173_0xf64b(){const _0x483631=['MIN_SAFE_INTEGER','MAX_SAFE_INTEGER','getOwnPropertyDescriptor','1580026MvzwvJ','undefined','1afRPIh','1421550IOUpfn','80fdbaXj','370683gApjTC','44086BEZNZJ','211512rjGLnx','includes','3198210rPlyUi','defineProperty','2367794JnEDiB','json','text','4CIMKyT','parse','848hpMsfz','prototype','exec'];a173_0xf64b=function(){return _0x483631;};return a173_0xf64b();}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x49b2e0,_0x1e0273){const _0x12d0b0=a174_0x14bd,_0xf4eecc=_0x49b2e0();while(!![]){try{const _0x551756=-parseInt(_0x12d0b0(0x167))/0x1+-parseInt(_0x12d0b0(0x158))/0x2*(parseInt(_0x12d0b0(0x15d))/0x3)+parseInt(_0x12d0b0(0x16b))/0x4*(parseInt(_0x12d0b0(0x169))/0x5)+parseInt(_0x12d0b0(0x174))/0x6+parseInt(_0x12d0b0(0x159))/0x7+parseInt(_0x12d0b0(0x168))/0x8*(-parseInt(_0x12d0b0(0x15b))/0x9)+parseInt(_0x12d0b0(0x161))/0xa;if(_0x551756===_0x1e0273)break;else _0xf4eecc['push'](_0xf4eecc['shift']());}catch(_0xb564d6){_0xf4eecc['push'](_0xf4eecc['shift']());}}}(a174_0x43fe,0xeb401));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x29f124){const _0x2fa422=a174_0x14bd;if(!_0x29f124)return undefined;try{return parseLosslessJson(_0x29f124);}catch{throw CliErrors['validation'](_0x2fa422(0x163)+_0x29f124);}}function a174_0x14bd(_0xf15d94,_0x32fc62){_0xf15d94=_0xf15d94-0x156;const _0x43fee6=a174_0x43fe();let _0x14bdaa=_0x43fee6[_0xf15d94];return _0x14bdaa;}export function parseJsonParamsValue(_0x3ed833){const _0x1ae4fa=a174_0x14bd;if(!_0x3ed833)return undefined;try{return parseLosslessJson(_0x3ed833);}catch{throw CliErrors[_0x1ae4fa(0x170)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x3ed833);}}export function parseBatchCreateItemsFromParams(_0x42569d){const _0x222e38=a174_0x14bd;if(Array[_0x222e38(0x16d)](_0x42569d))return _0x42569d;if(_0x42569d!==null&&_0x42569d!==undefined&&typeof _0x42569d===_0x222e38(0x160)&&Array[_0x222e38(0x16d)](_0x42569d[_0x222e38(0x162)]))return _0x42569d[_0x222e38(0x162)];throw CliErrors['validation'](_0x222e38(0x173),_0x222e38(0x16c));}function a174_0x43fe(){const _0x175b28=['7386694mbnAuz','\x20records\x20per\x20call;\x20received\x20','18bvvFcV','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','1911IZvGTX','join','number','object','43382280iVGvNY','items','Invalid\x20JSON\x20for\x20--params:\x20','string','test','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','1856820XRYbEf','7397176EBkMiT','892660DtDUhz','id[','4BnMBGW','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','isArray','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','validation','data\x20update\x20--params.','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','4756524eHZZVR','isSafeInteger','map','length','5322Utclcj'];a174_0x43fe=function(){return _0x175b28;};return a174_0x43fe();}function parseDataUpdateId(_0x2f8206,_0x28a036){const _0x457bfd=a174_0x14bd;if(typeof _0x2f8206===_0x457bfd(0x15f)&&Number[_0x457bfd(0x175)](_0x2f8206)&&_0x2f8206>0x0)return _0x2f8206;if(typeof _0x2f8206===_0x457bfd(0x164)){if(/^[1-9]\d*$/[_0x457bfd(0x165)](_0x2f8206))return _0x2f8206;}throw CliErrors[_0x457bfd(0x170)](_0x457bfd(0x171)+_0x28a036+_0x457bfd(0x172));}export function parseUpdateIdsFromParams(_0x2795a4){const _0x192af2=a174_0x14bd;if(_0x2795a4===null||_0x2795a4===undefined||typeof _0x2795a4!==_0x192af2(0x160)||Array[_0x192af2(0x16d)](_0x2795a4))throw CliErrors[_0x192af2(0x170)](_0x192af2(0x16f),_0x192af2(0x15c));const _0x471caa=_0x2795a4['id'];if(_0x471caa===undefined||_0x471caa===null)throw CliErrors[_0x192af2(0x170)](_0x192af2(0x16e),_0x192af2(0x15c));const _0xcede79=Array[_0x192af2(0x16d)](_0x471caa)?_0x471caa:[_0x471caa];if(_0xcede79['length']===0x0)throw CliErrors[_0x192af2(0x170)](_0x192af2(0x166));if(_0xcede79['length']>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x192af2(0x170)]('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+_0x192af2(0x15a)+_0xcede79[_0x192af2(0x157)]+'.');return _0xcede79[_0x192af2(0x156)]((_0x3bb87f,_0x1a95bd)=>parseDataUpdateId(_0x3bb87f,Array[_0x192af2(0x16d)](_0x471caa)?_0x192af2(0x16a)+_0x1a95bd+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x225177,_0x452637){const _0x1c21fc=a174_0x14bd;if(Array[_0x1c21fc(0x16d)](_0x225177['id'])&&_0x452637[_0x1c21fc(0x157)]>0x1)return{..._0x225177,'id':_0x452637[_0x1c21fc(0x15e)](',')};return _0x225177;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x45b2ee,_0x427613){const _0x42c884=a175_0x3cbb,_0x38e883=_0x45b2ee();while(!![]){try{const _0x4c2a05=-parseInt(_0x42c884(0xdb))/0x1+parseInt(_0x42c884(0xdf))/0x2*(-parseInt(_0x42c884(0xe1))/0x3)+-parseInt(_0x42c884(0xd9))/0x4*(-parseInt(_0x42c884(0xdd))/0x5)+parseInt(_0x42c884(0xe4))/0x6*(parseInt(_0x42c884(0xe5))/0x7)+parseInt(_0x42c884(0xdc))/0x8*(-parseInt(_0x42c884(0xd8))/0x9)+-parseInt(_0x42c884(0xda))/0xa+parseInt(_0x42c884(0xe2))/0xb;if(_0x4c2a05===_0x427613)break;else _0x38e883['push'](_0x38e883['shift']());}catch(_0x318b44){_0x38e883['push'](_0x38e883['shift']());}}}(a175_0x71d3,0x7315a));function a175_0x3cbb(_0x55f9b8,_0x372c56){_0x55f9b8=_0x55f9b8-0xd8;const _0x71d333=a175_0x71d3();let _0x3cbbd4=_0x71d333[_0x55f9b8];return _0x3cbbd4;}export function normalizePositiveSafeInteger(_0x41cf6f){const _0x321f14=a175_0x3cbb;if(typeof _0x41cf6f==='number')return Number['isSafeInteger'](_0x41cf6f)&&_0x41cf6f>0x0?_0x41cf6f:undefined;if(typeof _0x41cf6f!==_0x321f14(0xde)||!/^\d+$/[_0x321f14(0xe0)](_0x41cf6f))return undefined;const _0x2308a9=Number(_0x41cf6f);return Number[_0x321f14(0xe3)](_0x2308a9)&&_0x2308a9>0x0?_0x2308a9:undefined;}function a175_0x71d3(){const _0x521aa6=['33859IOxuqP','1629gUUtKj','14508jltiTh','9123980GhTVyg','536067bNZFYY','35544LCyzjs','810egwnea','string','2riYgYJ','test','539457idwoqK','15156911HaGBmX','isSafeInteger','1164IaXIaO'];a175_0x71d3=function(){return _0x521aa6;};return a175_0x71d3();}
|
package/lib/utils/redaction.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a176_0x2f6466=a176_0x42d2;function a176_0x3341(){const _0x297f56=['10xPiAwb','5003801riYzkG','1959456sqyUNe','push','entries','map','4010517HdDCXr','2nTaEaE','match','test','8xKeeDt','comment','18XObgtc','609276mUVcLi','7206174EhLHGU','isArray','1021183CNTdFl','12yklodL','7573800YgprfM','replace','toLowerCase','has','object'];a176_0x3341=function(){return _0x297f56;};return a176_0x3341();}(function(_0x7b052c,_0x185a2f){const _0x15e630=a176_0x42d2,_0x236816=_0x7b052c();while(!![]){try{const _0x26b2cb=parseInt(_0x15e630(0x1e5))/0x1*(-parseInt(_0x15e630(0x1f3))/0x2)+parseInt(_0x15e630(0x1e6))/0x3*(parseInt(_0x15e630(0x1f9))/0x4)+-parseInt(_0x15e630(0x1e7))/0x5+parseInt(_0x15e630(0x1f8))/0x6*(parseInt(_0x15e630(0x1f2))/0x7)+parseInt(_0x15e630(0x1f6))/0x8*(parseInt(_0x15e630(0x1fa))/0x9)+-parseInt(_0x15e630(0x1ec))/0xa*(-parseInt(_0x15e630(0x1ed))/0xb)+-parseInt(_0x15e630(0x1ee))/0xc;if(_0x26b2cb===_0x185a2f)break;else _0x236816['push'](_0x236816['shift']());}catch(_0x4d4224){_0x236816['push'](_0x236816['shift']());}}}(a176_0x3341,0xd7ebf));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([a176_0x2f6466(0x1f7),'variables']),SENSITIVE_VALUE_KEYS=new Set([a176_0x2f6466(0x1f7)]);export function isSensitiveKey(_0x29b8cd){const _0x6f6b2b=a176_0x2f6466,_0x523ce4=_0x29b8cd[_0x6f6b2b(0x1e8)](/_/g,'-')[_0x6f6b2b(0x1e9)]();return SENSITIVE_KEY_PATTERN[_0x6f6b2b(0x1f5)](_0x523ce4);}export function isSensitiveFlagName(_0xd471c8){const _0x59639b=a176_0x2f6466,_0x37d61d=_0xd471c8[_0x59639b(0x1e8)](/_/g,'-')[_0x59639b(0x1e9)]();return isSensitiveKey(_0x37d61d)||SENSITIVE_FLAG_NAMES['has'](_0x37d61d);}function redactVariableValues(_0x331fcc){const _0x51adcd=a176_0x2f6466;if(Array[_0x51adcd(0x1fb)](_0x331fcc))return _0x331fcc[_0x51adcd(0x1f1)](_0x3da5e1=>redactVariableValues(_0x3da5e1));if(_0x331fcc&&typeof _0x331fcc===_0x51adcd(0x1eb))return Object['fromEntries'](Object[_0x51adcd(0x1f0)](_0x331fcc)[_0x51adcd(0x1f1)](([_0x11b53a,_0x5a34ce])=>[_0x11b53a,redactVariableValues(_0x5a34ce)]));return REDACTED_VALUE;}export function redactSensitiveValue(_0x54e40a){const _0x3d4899=a176_0x2f6466;if(Array[_0x3d4899(0x1fb)](_0x54e40a))return _0x54e40a[_0x3d4899(0x1f1)](_0xa187ed=>redactSensitiveValue(_0xa187ed));if(!_0x54e40a||typeof _0x54e40a!==_0x3d4899(0x1eb))return _0x54e40a;const _0x31a556={};for(const [_0x13b752,_0x1746d4]of Object['entries'](_0x54e40a)){const _0x583a23=_0x13b752[_0x3d4899(0x1e8)](/_/g,'-')['toLowerCase']();_0x31a556[_0x13b752]=_0x583a23==='variables'?redactVariableValues(_0x1746d4):SENSITIVE_VALUE_KEYS[_0x3d4899(0x1ea)](_0x583a23)||isSensitiveKey(_0x13b752)?REDACTED_VALUE:redactSensitiveValue(_0x1746d4);}return _0x31a556;}export function redactCommandArgv(_0x1998f4){const _0x31211f=a176_0x2f6466,_0x2709e0=[];let _0x259401=![];for(const _0x4a1974 of _0x1998f4){if(_0x259401){_0x2709e0[_0x31211f(0x1ef)](REDACTED_VALUE),_0x259401=![];continue;}const _0xfe4c42=_0x4a1974[_0x31211f(0x1f4)](/^--([^=]+)(?:=(.*))?$/);if(!_0xfe4c42||!isSensitiveFlagName(_0xfe4c42[0x1]??'')){_0x2709e0[_0x31211f(0x1ef)](_0x4a1974);continue;}_0x2709e0[_0x31211f(0x1ef)]('--'+_0xfe4c42[0x1]+(_0xfe4c42[0x2]===undefined?'':'='+REDACTED_VALUE)),_0xfe4c42[0x2]===undefined&&(_0x259401=!![]);}return _0x2709e0;}function a176_0x42d2(_0x1b73bf,_0x25c67c){_0x1b73bf=_0x1b73bf-0x1e5;const _0x334109=a176_0x3341();let _0x42d28a=_0x334109[_0x1b73bf];return _0x42d28a;}export{REDACTED_VALUE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a177_0x4693(_0x3aee41,_0x1a80a2){_0x3aee41=_0x3aee41-0x125;const _0x4192e0=a177_0x4192();let _0x4693c7=_0x4192e0[_0x3aee41];return _0x4693c7;}(function(_0xb7170,_0x486d3f){const _0x1143a1=a177_0x4693,_0x4723d1=_0xb7170();while(!![]){try{const _0x1f42d0=-parseInt(_0x1143a1(0x130))/0x1+-parseInt(_0x1143a1(0x12f))/0x2+-parseInt(_0x1143a1(0x129))/0x3+-parseInt(_0x1143a1(0x125))/0x4*(-parseInt(_0x1143a1(0x12b))/0x5)+parseInt(_0x1143a1(0x12e))/0x6+parseInt(_0x1143a1(0x12c))/0x7*(parseInt(_0x1143a1(0x128))/0x8)+parseInt(_0x1143a1(0x126))/0x9*(parseInt(_0x1143a1(0x12d))/0xa);if(_0x1f42d0===_0x486d3f)break;else _0x4723d1['push'](_0x4723d1['shift']());}catch(_0x271f64){_0x4723d1['push'](_0x4723d1['shift']());}}}(a177_0x4192,0x26b20));function a177_0x4192(){const _0x535aa4=['9BBBiQR','test','315064YYklUN','42771jQaOZY','string','31505PneUcl','7miWduM','2003090sGaRpk','1432758YUNzlz','378566UUbYzL','236168HJJAwm','number','isSafeInteger','76KWreFo'];a177_0x4192=function(){return _0x535aa4;};return a177_0x4192();}export function normalizeRuntimeUserId(_0x34cea2){const _0x1ed71e=a177_0x4693;if(typeof _0x34cea2===_0x1ed71e(0x131))return Number[_0x1ed71e(0x132)](_0x34cea2)&&_0x34cea2>0x0?String(_0x34cea2):undefined;if(typeof _0x34cea2!==_0x1ed71e(0x12a)||!/^\d+$/[_0x1ed71e(0x127)](_0x34cea2))return undefined;const _0x7abcaf=_0x34cea2['replace'](/^0+/,'');return _0x7abcaf||undefined;}
|