@lovrabet/lovrabet-cli 2.3.8 → 2.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-sdk-errors.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/runtime-user-id.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet/guides/development-intent-handoff.md +7 -5
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x10129d,_0x4790ad){const _0x4a8ba5=a162_0x2b6f,_0x5c3dde=_0x10129d();while(!![]){try{const _0x1f68b2=-parseInt(_0x4a8ba5(0x17c))/0x1*(parseInt(_0x4a8ba5(0x182))/0x2)+parseInt(_0x4a8ba5(0x18a))/0x3*(-parseInt(_0x4a8ba5(0x173))/0x4)+parseInt(_0x4a8ba5(0x17b))/0x5+parseInt(_0x4a8ba5(0x179))/0x6+parseInt(_0x4a8ba5(0x185))/0x7*(parseInt(_0x4a8ba5(0x183))/0x8)+-parseInt(_0x4a8ba5(0x18c))/0x9*(-parseInt(_0x4a8ba5(0x178))/0xa)+-parseInt(_0x4a8ba5(0x17e))/0xb*(-parseInt(_0x4a8ba5(0x186))/0xc);if(_0x1f68b2===_0x4790ad)break;else _0x5c3dde['push'](_0x5c3dde['shift']());}catch(_0x431548){_0x5c3dde['push'](_0x5c3dde['shift']());}}}(a162_0x4be7,0xd5e4b));import{existsSync,readFileSync}from'node:fs';function a162_0x2b6f(_0x137ff7,_0x53d525){_0x137ff7=_0x137ff7-0x165;const _0x4be768=a162_0x4be7();let _0x2b6f1f=_0x4be768[_0x137ff7];return _0x2b6f1f;}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(_0x306d4c,_0x131163,_0x2b1d89,_0x3dc1cb,_0x4c704e,_0x241af8,_0x4a2d0d){const _0x4f2d5f=a162_0x2b6f,_0x539796=_0x241af8?normalizeLocalFiles(_0x241af8):[],_0x145e83=!_0x4a2d0d&&_0x539796[_0x4f2d5f(0x181)]>0x0?buildSkillPackage(_0x539796):undefined,_0x57be12=_0x4a2d0d?bufferSha256(_0x4a2d0d):_0x145e83?.[_0x4f2d5f(0x17a)][_0x4f2d5f(0x18d)],_0x1eeee6=_0x4a2d0d?.[_0x4f2d5f(0x181)]??_0x145e83?.[_0x4f2d5f(0x17a)][_0x4f2d5f(0x172)],_0x3ce355=_0x539796['length']>0x0?Object[_0x4f2d5f(0x168)](_0x539796[_0x4f2d5f(0x16b)](_0x3a639c=>[_0x3a639c[_0x4f2d5f(0x17f)],fileHash(_0x3a639c)])):undefined;return{'schemaVersion':_0x539796[_0x4f2d5f(0x181)]>0x0?0x2:0x1,'id':_0x306d4c['id'],'appCode':_0x2b1d89,'skillCode':requireSkillCode(_0x306d4c),'skillName':_0x306d4c[_0x4f2d5f(0x174)],'description':_0x306d4c['description'],'example':_0x306d4c[_0x4f2d5f(0x189)],'scope':_0x131163,'readonly':_0x131163!=='personal'||_0x306d4c[_0x4f2d5f(0x18b)]===!![],'tenantCode':_0x306d4c[_0x4f2d5f(0x171)],'userId':_0x306d4c[_0x4f2d5f(0x177)],'version':_0x306d4c[_0x4f2d5f(0x166)],'status':_0x306d4c[_0x4f2d5f(0x167)],'tags':Array['isArray'](_0x306d4c[_0x4f2d5f(0x16a)])?_0x306d4c[_0x4f2d5f(0x16a)]:[],'hasUpstreamUpdate':_0x306d4c[_0x4f2d5f(0x184)],'forkedFromSkillId':_0x306d4c[_0x4f2d5f(0x18e)],'forkedFromVersion':_0x306d4c[_0x4f2d5f(0x176)],'sourceSessionId':_0x306d4c[_0x4f2d5f(0x16c)],'contentHash':_0x3dc1cb,'fileHashes':_0x3ce355,'treeHash':_0x539796[_0x4f2d5f(0x181)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x539796)):undefined,'ossPath':remoteManifestOssPath(_0x306d4c[_0x4f2d5f(0x169)]),'zipSha256':_0x57be12,'zipSize':_0x1eeee6,'files':_0x539796[_0x4f2d5f(0x181)]>0x0?_0x539796['map'](_0x192008=>({'path':_0x192008[_0x4f2d5f(0x17f)],'hash':fileHash(_0x192008),'size':fileContent(_0x192008)[_0x4f2d5f(0x181)]})):undefined,'pulledAt':_0x4c704e??new Date()[_0x4f2d5f(0x170)]()};}export function requireSkillCode(_0x335c70){const _0x2c81c3=a162_0x2b6f,_0x2a40e0=_0x335c70[_0x2c81c3(0x180)]?.[_0x2c81c3(0x187)]();if(!_0x2a40e0)throw CliErrors[_0x2c81c3(0x17d)]('Runtime\x20Skill\x20is\x20missing\x20skillCode.');return _0x2a40e0;}export function readMetadataIfPresent(_0x32d7be){const _0x21d581=a162_0x2b6f;if(!existsSync(_0x32d7be))return undefined;try{const _0x4793b4=JSON[_0x21d581(0x188)](readFileSync(_0x32d7be,_0x21d581(0x175)));return _0x4793b4;}catch{throw CliErrors['validation'](_0x21d581(0x165)+METADATA_FILE+':\x20'+_0x32d7be);}}function remoteManifestOssPath(_0x2cab49){const _0xacd134=a162_0x2b6f;if(!_0x2cab49||typeof _0x2cab49!==_0xacd134(0x16f)||Array['isArray'](_0x2cab49))return undefined;const _0x12342b=_0x2cab49[_0xacd134(0x16e)];return typeof _0x12342b===_0xacd134(0x16d)&&_0x12342b[_0xacd134(0x187)]()?_0x12342b['trim']():undefined;}function a162_0x4be7(){const _0x2f8a91=['example','3yfCmKU','readonly','222219nSlQQq','zipSha256','forkedFromSkillId','Invalid\x20','version','status','fromEntries','files','tags','map','sourceSessionId','string','ossPath','object','toISOString','tenantCode','zipSize','5616764szZrNP','skillName','utf8','forkedFromVersion','userId','320nfBGTr','9505728ZgzzCP','manifest','3928570cqluak','1hjcKhb','validation','231ujoCbq','path','skillCode','length','2917340dQDeYi','8vEFFGI','hasUpstreamUpdate','3853234ebsXQW','16224xCQWJe','trim','parse'];a162_0x4be7=function(){return _0x2f8a91;};return a162_0x4be7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a163_0x1f4af9=a163_0x6117;(function(_0x213df5,_0x4b3c93){const _0x14deb9=a163_0x6117,_0x29e916=_0x213df5();while(!![]){try{const _0x54e10e=parseInt(_0x14deb9(0x146))/0x1+parseInt(_0x14deb9(0x137))/0x2*(parseInt(_0x14deb9(0x145))/0x3)+-parseInt(_0x14deb9(0x12d))/0x4+-parseInt(_0x14deb9(0x141))/0x5+parseInt(_0x14deb9(0x13a))/0x6*(-parseInt(_0x14deb9(0x132))/0x7)+-parseInt(_0x14deb9(0x13c))/0x8+parseInt(_0x14deb9(0x13f))/0x9;if(_0x54e10e===_0x4b3c93)break;else _0x29e916['push'](_0x29e916['shift']());}catch(_0x11bd0f){_0x29e916['push'](_0x29e916['shift']());}}}(a163_0x3602,0xe06ea));import{existsSync}from'node:fs';import{homedir}from'node:os';import{resolve}from'node:path';import{fingerprintAccessKey}from'../../commands/app/cache.js';import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0x44f18c={}){const _0x212850=a163_0x6117,_0x34db9b=_0x44f18c['homeDir']??homedir(),_0xa749c2=resolve(_0x34db9b,PRODUCT_CONFIG[_0x212850(0x133)],'cache'),_0x181b7f=trimmedEnv('SKILL_ROOT'),_0x5a827d=trimmedEnv(_0x212850(0x13b)),_0x157d51=resolve(_0x34db9b,_0x212850(0x134)),_0x549d70=_0x44f18c['workbuddySkillsDir']??(existsSync(_0x157d51)?resolve(_0x157d51,'skills'):undefined);return{'homeDir':_0x34db9b,'cacheRoot':_0xa749c2,'managedRoot':resolve(_0x34db9b,PRODUCT_CONFIG[_0x212850(0x133)]),'agentsSkillsDir':_0x44f18c[_0x212850(0x136)]??_0x181b7f??resolve(_0x34db9b,'.agents',_0x212850(0x131)),'claudeSkillsDir':_0x44f18c[_0x212850(0x13e)]??_0x5a827d??resolve(_0x34db9b,_0x212850(0x13d),_0x212850(0x131)),'workbuddySkillsDir':_0x549d70};}function a163_0x3602(){const _0x459898=['6JJlmCY','CLAUDE_SKILL_ROOT','13312720JztvXQ','.claude','claudeSkillsDir','21687732XWYrYu','trim','3171565QRtIjE','validation','Unsafe\x20','filter','1815189JLiIxU','816676XeYylO','768812jWusLs','appCode','workbuddySkillsDir','includes','skills','11422131iqoCXH','homeDirName','.workbuddy','\x20for\x20local\x20path:\x20','agentsSkillsDir','6WtaiJb','cacheRoot','path\x20segment'];a163_0x3602=function(){return _0x459898;};return a163_0x3602();}export function runtimeAgentSkillRoots(_0x273b15){const _0x233c96=a163_0x6117;return[_0x273b15[_0x233c96(0x136)],_0x273b15['claudeSkillsDir'],_0x273b15[_0x233c96(0x12f)]][_0x233c96(0x144)](_0x590ef=>Boolean(_0x590ef));}export function getRuntimeSkillCacheRoot(_0x33dba6,_0x14e1a9,_0x57348c={}){const _0x2bc993=a163_0x6117,_0x167d22=resolveSkillSyncPaths(_0x57348c);return resolve(_0x167d22[_0x2bc993(0x138)],_0x33dba6,fingerprintAccessKey(_0x14e1a9),'skills');}function a163_0x6117(_0xfbf17,_0x271709){_0xfbf17=_0xfbf17-0x12d;const _0x360286=a163_0x3602();let _0x6117b0=_0x360286[_0xfbf17];return _0x6117b0;}export function getRuntimeSkillDir(_0xc28201,_0x5b0ed5,_0x3031e8,_0x3919c0,_0x4025a0,_0x5e00f5={}){const _0x7bdb2b=a163_0x6117;return resolve(getRuntimeSkillCacheRoot(_0xc28201,_0x5b0ed5,_0x5e00f5),safePathSegment(_0x3031e8,_0x7bdb2b(0x12e)),_0x3919c0,safePathSegment(_0x4025a0,'skillCode'));}export function safePathSegment(_0x57c850,_0x517d04=a163_0x1f4af9(0x139)){const _0x1bfb80=a163_0x1f4af9;if(!_0x57c850||_0x57c850[_0x1bfb80(0x130)]('/')||_0x57c850[_0x1bfb80(0x130)]('\x5c')||_0x57c850[_0x1bfb80(0x130)]('..'))throw CliErrors[_0x1bfb80(0x142)](_0x1bfb80(0x143)+_0x517d04+_0x1bfb80(0x135)+_0x57c850);return _0x57c850;}function trimmedEnv(_0x30f360){const _0x5c884b=a163_0x1f4af9,_0x981e19=productEnv(_0x30f360)?.[_0x5c884b(0x140)]();return _0x981e19?_0x981e19:undefined;}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
(function(_0x18c065,_0x779913){const _0x2ac0a8=a164_0x4b99,_0x55a180=_0x18c065();while(!![]){try{const _0x3868e7=-parseInt(_0x2ac0a8(0x163))/0x1+parseInt(_0x2ac0a8(0x181))/0x2+-parseInt(_0x2ac0a8(0x16e))/0x3*(parseInt(_0x2ac0a8(0x180))/0x4)+parseInt(_0x2ac0a8(0x178))/0x5+-parseInt(_0x2ac0a8(0x175))/0x6+parseInt(_0x2ac0a8(0x17d))/0x7+-parseInt(_0x2ac0a8(0x158))/0x8;if(_0x3868e7===_0x779913)break;else _0x55a180['push'](_0x55a180['shift']());}catch(_0x384077){_0x55a180['push'](_0x55a180['shift']());}}}(a164_0x7d85,0x3ca38));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a164_0x1ed94d}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 a164_0x7d85(){const _0x1180fa=['manifest','dir','\x20name\x20for\x20SkillHub\x20slug\x20generation.','find','number','personal','filter','ignoreMetadataAppCodeMismatch','slice','15JiOLYl','targetScope','trim','isArray','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','(unknown)','969630EorUKz','isDirectory','excludedFilePaths','1411950JLxqTL','pushedAt','Unable\x20to\x20resolve\x20skillCode\x20from\x20','\x20has\x20unsupported\x20scope\x20\x22','skillCode','1611764rLslFX','appCode','example','144484WeZIkr','933932oafpDZ','string','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','startsWith','Skill\x20metadata\x20appCode\x20\x22','match','some','utf8','path','Skill\x20directory\x20not\x20found:\x20','scope','ignoreInvalidMetadata','builtin','ignoreMetadataScope','ignoreMetadataForPayload','isFile','files','667752rmvoeB','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','sourceSessionId','Missing\x20','\x20has\x20scope=\x22','description','boolean','tags','content','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','replace','305553DJfmyG','validation'];a164_0x7d85=function(){return _0x1180fa;};return a164_0x7d85();}export function resolvePushDirectoryIdentity(_0x38459d,_0x21a997,_0x44f8c3={}){const _0x1a3848=a164_0x4b99,_0x10f31a=resolvePushDirectoryRoot(_0x38459d),_0x3230fa=readPushMetadataIfPresent(resolve(_0x10f31a,METADATA_FILE),{'ignoreInvalidMetadata':_0x44f8c3['ignoreInvalidMetadata']});if(_0x3230fa?.[_0x1a3848(0x17e)]&&_0x3230fa[_0x1a3848(0x17e)]!==_0x21a997&&!_0x44f8c3['allowAppCodeRetarget']&&!_0x44f8c3[_0x1a3848(0x16c)])throw CliErrors[_0x1a3848(0x164)](_0x1a3848(0x14b)+_0x3230fa['appCode']+_0x1a3848(0x161)+_0x21a997+'\x22.');const _0x56167=resolvePushSkillCode(_0x10f31a,_0x21a997,_0x3230fa,_0x44f8c3);if(!_0x56167)throw CliErrors[_0x1a3848(0x164)](_0x1a3848(0x17a)+SKILL_FILE+',\x20'+METADATA_FILE+',\x20or\x20directory\x20name.');return{'dir':_0x10f31a,'skillCode':_0x56167,'metadata':_0x3230fa};}export function readPushDirectory(_0x5197de,_0x18abdd,_0x196732={}){const _0xeb5f2d=a164_0x4b99,_0x188692=resolvePushDirectoryIdentity(_0x5197de,_0x18abdd,_0x196732),_0x24ab11=_0x188692[_0xeb5f2d(0x166)],_0x705408=resolve(_0x24ab11,SKILL_FILE);if(!existsSync(_0x705408)||!lstatSync(_0x705408)[_0xeb5f2d(0x156)]())throw CliErrors['validation'](_0xeb5f2d(0x15b)+SKILL_FILE+':\x20'+_0x705408);const _0x2caf04=_0x188692['metadata'],_0x2b58b0=_0x196732[_0xeb5f2d(0x16f)]??_0xeb5f2d(0x16a);if(!_0x196732[_0xeb5f2d(0x154)]&&_0x2caf04?.[_0xeb5f2d(0x151)]===_0xeb5f2d(0x153))throw CliErrors[_0xeb5f2d(0x164)](_0xeb5f2d(0x159)+METADATA_FILE+_0xeb5f2d(0x15c)+_0x2caf04[_0xeb5f2d(0x151)]+'\x22.');if(!_0x196732[_0xeb5f2d(0x154)]&&_0x2b58b0===_0xeb5f2d(0x16a)&&_0x2caf04?.[_0xeb5f2d(0x151)]&&_0x2caf04[_0xeb5f2d(0x151)]!==_0xeb5f2d(0x16a))throw CliErrors[_0xeb5f2d(0x164)](_0xeb5f2d(0x173)+METADATA_FILE+_0xeb5f2d(0x15c)+_0x2caf04[_0xeb5f2d(0x151)]+'\x22.',_0xeb5f2d(0x149)+_0x24ab11+_0xeb5f2d(0x172));const _0x5ef639=scanSkillDirectory(_0x24ab11,{'excludedFilePaths':_0x196732[_0xeb5f2d(0x177)]}),_0x5516a9=buildSkillPackage(_0x5ef639),_0x310bd7=readFileSync(_0x705408,_0xeb5f2d(0x14e)),_0x82e211=_0x188692[_0xeb5f2d(0x17c)],_0x18de9c=_0x196732[_0xeb5f2d(0x155)]?undefined:_0x2caf04,_0x35e748=readSkillDisplayName(_0x310bd7);return{'skillCode':_0x82e211,'metadata':_0x2caf04,'frontmatterDisplayName':_0x35e748,'input':{'skillCode':_0x82e211,'skillName':_0x35e748??_0x18de9c?.['skillName'],'description':_0x18de9c?.[_0xeb5f2d(0x15d)],'content':_0x310bd7,'files':_0x5516a9[_0xeb5f2d(0x165)],'packageBase64':_0x5516a9['packageBase64'],'tags':_0x18de9c?.[_0xeb5f2d(0x15f)],'version':_0x18de9c?.['version'],'sourceSessionId':_0x18de9c?.[_0xeb5f2d(0x15a)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x187761,_0x431f02,_0x42cabc,_0x2c0590={}){const _0x429c35=a164_0x4b99,_0x56aa7a=resolvePushDirectoryRoot(_0x187761),_0x2c2eac=readPushMetadataIfPresent(resolve(_0x56aa7a,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x578855=requireRemoteScope(_0x431f02),_0x2fcc8c=readLocalSkillContent(_0x56aa7a),_0x533312={..._0x431f02,'appCode':_0x431f02[_0x429c35(0x17e)]??_0x42cabc,'skillName':_0x431f02['skillName']??_0x2c2eac?.['skillName'],'description':_0x431f02['description']??_0x2c2eac?.[_0x429c35(0x15d)],'example':_0x431f02[_0x429c35(0x17f)]??_0x2c2eac?.[_0x429c35(0x17f)],'tags':Array[_0x429c35(0x171)](_0x431f02[_0x429c35(0x15f)])?_0x431f02[_0x429c35(0x15f)]:_0x2c2eac?.['tags'],'sourceSessionId':_0x431f02[_0x429c35(0x15a)]??_0x2c2eac?.[_0x429c35(0x15a)],'content':_0x431f02[_0x429c35(0x160)]??_0x2fcc8c},_0x65b3d=buildMetadata(_0x533312,_0x578855,_0x42cabc,contentHash(_0x2fcc8c),_0x2c0590['refreshedAt']);writeJsonAtomic(resolve(_0x56aa7a,METADATA_FILE),_0x65b3d);}export function recordPushedRuntimeSkill(_0x494149,_0x49c1ab,_0x12d64f,_0xb35707={}){const _0x3a4011=a164_0x4b99,_0x376677=resolvePushDirectoryRoot(_0x494149),_0x806976=scanSkillDirectory(_0x376677),_0xbe53cc=_0x806976[_0x3a4011(0x168)](_0x554a4c=>_0x554a4c[_0x3a4011(0x14f)]===SKILL_FILE),_0xaf104e=_0xbe53cc?fileText(_0xbe53cc):'',_0x42056b=tryNormalizePackageManifest(_0x49c1ab['files']),_0x3e6cc3={..._0x49c1ab,'content':_0x49c1ab[_0x3a4011(0x160)]??_0xaf104e,'files':_0x42056b},_0x1bfa0e=_0x42056b?normalizeLocalFiles(_0x806976)[_0x3a4011(0x16b)](_0xc8f90=>_0x42056b[_0x3a4011(0x157)][_0x3a4011(0x14d)](_0xaac5ca=>_0xaac5ca[_0x3a4011(0x14f)]===_0xc8f90[_0x3a4011(0x14f)])):undefined,_0x4fe261=buildMetadata(_0x3e6cc3,_0xb35707['scope']??_0x3a4011(0x16a),_0x12d64f,contentHash(_0x3e6cc3[_0x3a4011(0x160)]??''),_0xb35707[_0x3a4011(0x179)],_0x1bfa0e);writeJsonAtomic(resolve(_0x376677,METADATA_FILE),_0x4fe261);}export function deriveSkillCodeFromDirectory(_0x53182e,_0x5db413){const _0x3fb490=a164_0x4b99,_0x13fd57=basename(resolve(_0x53182e)),_0x2f05ab=_0x5db413+'--';return _0x13fd57[_0x3fb490(0x14a)](_0x2f05ab)?_0x13fd57[_0x3fb490(0x16d)](_0x2f05ab['length']):_0x13fd57;}function resolvePushSkillCode(_0x2287c5,_0x1ea6b6,_0xfbe9e8,_0x598da9){const _0x3440e6=a164_0x4b99,_0x1f5bae=deriveSkillCodeFromSkillFile(_0x2287c5)||deriveSkillCodeFromDirectory(_0x2287c5,_0x1ea6b6);if(_0x598da9['ignoreMetadataSkillCode'])return _0x1f5bae;return _0xfbe9e8?.[_0x3440e6(0x17c)]?.[_0x3440e6(0x170)]()||_0x1f5bae;}function deriveSkillCodeFromSkillFile(_0x1ad9e8){const _0x5d8a17=a164_0x4b99,_0x1f345d=resolve(_0x1ad9e8,SKILL_FILE);if(!existsSync(_0x1f345d)||!lstatSync(_0x1f345d)[_0x5d8a17(0x156)]())return undefined;const _0x1da242=readFileSync(_0x1f345d,_0x5d8a17(0x14e)),_0x4280eb=_0x1da242[_0x5d8a17(0x14c)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x4280eb)return undefined;const _0x12609b=parseFrontmatterObject(_0x4280eb[0x1]??''),_0x179737=scalarToString(_0x12609b?.['name']);return _0x179737?slugifySkillName(_0x179737):undefined;}function readSkillDisplayName(_0x59ca52){const _0x46b010=a164_0x4b99,_0x1634fe=_0x59ca52[_0x46b010(0x14c)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x1634fe)return undefined;const _0x4ec3cc=parseFrontmatterObject(_0x1634fe[0x1]??'');return scalarToString(_0x4ec3cc?.['displayName']);}function slugifySkillName(_0x17f6a6){const _0x186bcd=a164_0x4b99,_0x547d75=_0x17f6a6[_0x186bcd(0x170)]()['toLowerCase']()[_0x186bcd(0x162)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x186bcd(0x162)](/^-+/,'')[_0x186bcd(0x162)](/-+$/,'')['replace'](/-{2,}/g,'-');if(!_0x547d75)throw CliErrors['validation']('Invalid\x20'+SKILL_FILE+_0x186bcd(0x167));return _0x547d75;}function a164_0x4b99(_0x2e2b9e,_0x45a26b){_0x2e2b9e=_0x2e2b9e-0x148;const _0x7d85b8=a164_0x7d85();let _0x4b9911=_0x7d85b8[_0x2e2b9e];return _0x4b9911;}function parseFrontmatterObject(_0x23289e){try{const _0x4aab02=a164_0x1ed94d(_0x23289e);return _0x4aab02&&typeof _0x4aab02==='object'&&!Array['isArray'](_0x4aab02)?_0x4aab02:undefined;}catch{return undefined;}}function scalarToString(_0x37249d){const _0x2e6c8a=a164_0x4b99;if(typeof _0x37249d===_0x2e6c8a(0x148))return _0x37249d['trim']();if(typeof _0x37249d===_0x2e6c8a(0x169)||typeof _0x37249d===_0x2e6c8a(0x15e))return String(_0x37249d);return undefined;}function resolvePushDirectoryRoot(_0x326bbd){const _0x8cd564=a164_0x4b99,_0x3d3c80=resolve(_0x326bbd);if(!existsSync(_0x3d3c80))throw CliErrors[_0x8cd564(0x164)]('Skill\x20directory\x20not\x20found:\x20'+_0x326bbd);const _0x349b87=lstatSync(_0x3d3c80);if(_0x349b87[_0x8cd564(0x176)]())return _0x3d3c80;if(_0x349b87['isSymbolicLink']()){const _0x4d7283=realpathSync(_0x3d3c80);if(lstatSync(_0x4d7283)[_0x8cd564(0x176)]())return _0x4d7283;}throw CliErrors[_0x8cd564(0x164)](_0x8cd564(0x150)+_0x326bbd);}function requireRemoteScope(_0x271cd3){const _0x10cfb5=a164_0x4b99;if(_0x271cd3['scope']===_0x10cfb5(0x16a)||_0x271cd3[_0x10cfb5(0x151)]==='company'||_0x271cd3[_0x10cfb5(0x151)]===_0x10cfb5(0x153))return _0x271cd3[_0x10cfb5(0x151)];throw CliErrors[_0x10cfb5(0x164)]('Remote\x20Skill\x20'+(_0x271cd3[_0x10cfb5(0x17c)]||_0x10cfb5(0x174))+_0x10cfb5(0x17b)+(_0x271cd3['scope']??'unknown')+'\x22.');}function readLocalSkillContent(_0x1b977e){const _0x41101f=a164_0x4b99,_0x389804=resolve(_0x1b977e,SKILL_FILE);return existsSync(_0x389804)&&lstatSync(_0x389804)['isFile']()?readFileSync(_0x389804,_0x41101f(0x14e)):'';}function readPushMetadataIfPresent(_0x24ca1f,_0x409990={}){const _0xda5beb=a164_0x4b99;try{return readMetadataIfPresent(_0x24ca1f);}catch(_0x213987){if(_0x409990[_0xda5beb(0x152)])return undefined;throw _0x213987;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x32ed1d,_0x534924){const _0x4523dc=a165_0x10c4,_0x2523fc=_0x32ed1d();while(!![]){try{const _0x1c0d8e=-parseInt(_0x4523dc(0x1dc))/0x1+-parseInt(_0x4523dc(0x1d5))/0x2+-parseInt(_0x4523dc(0x1d6))/0x3+parseInt(_0x4523dc(0x1da))/0x4*(parseInt(_0x4523dc(0x1de))/0x5)+parseInt(_0x4523dc(0x1e3))/0x6*(-parseInt(_0x4523dc(0x1df))/0x7)+parseInt(_0x4523dc(0x1d4))/0x8*(-parseInt(_0x4523dc(0x1e0))/0x9)+parseInt(_0x4523dc(0x1d8))/0xa;if(_0x1c0d8e===_0x534924)break;else _0x2523fc['push'](_0x2523fc['shift']());}catch(_0x1e26b2){_0x2523fc['push'](_0x2523fc['shift']());}}}(a165_0x48d4,0x275c8));import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x7ee996){const _0x204861=a165_0x10c4,_0x4fabe0=_0x7ee996&&_0x7ee996[_0x204861(0x1e2)]>0x0?_0x7ee996:[_0x204861(0x1d9),_0x204861(0x1e1),_0x204861(0x1db)],_0x1cd353=[];for(const _0x112c87 of _0x4fabe0){if(!isRuntimeSkillScope(_0x112c87))throw CliErrors[_0x204861(0x1d7)](_0x204861(0x1dd)+_0x112c87);!_0x1cd353[_0x204861(0x1d2)](_0x112c87)&&_0x1cd353[_0x204861(0x1d3)](_0x112c87);}return _0x1cd353;}function a165_0x10c4(_0x4310b8,_0x13f508){_0x4310b8=_0x4310b8-0x1d2;const _0x48d42e=a165_0x48d4();let _0x10c4d7=_0x48d42e[_0x4310b8];return _0x10c4d7;}function a165_0x48d4(){const _0x39d3a6=['9WgSPOp','company','length','95058PtMQTC','includes','push','1229552XtLPAt','487248nhvyMB','513543gnmDBq','validation','8905390viljMY','personal','1031788fAZRDr','builtin','149432CAygTe','Unsupported\x20runtime\x20Skill\x20scope:\x20','5IHhYDC','119wLPDyr'];a165_0x48d4=function(){return _0x39d3a6;};return a165_0x48d4();}export function isRuntimeSkillScope(_0x3987a5){const _0x23c239=a165_0x10c4;return _0x3987a5===_0x23c239(0x1d9)||_0x3987a5===_0x23c239(0x1e1)||_0x3987a5===_0x23c239(0x1db);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a167_0x286a10=a167_0x2348;function a167_0xfd0b(){const _0x4add75=['158893wHTvqm','1980-01-01T00:00:00.000Z','from','map','validation','832uHiNet','282qsDWGy','entries','sort','validation_error','82413CGTEgI','code','76942FvsLsO','4120jnfBzu','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','length','name','endsWith','173642BzCWuQ','path','2899660mFzJww','699hamOMg','object','216YTWbhK'];a167_0xfd0b=function(){return _0x4add75;};return a167_0xfd0b();}(function(_0x5f02d6,_0x3a55df){const _0x4d5b58=a167_0x2348,_0x3015db=_0x5f02d6();while(!![]){try{const _0x402299=parseInt(_0x4d5b58(0x164))/0x1+-parseInt(_0x4d5b58(0x15e))/0x2+-parseInt(_0x4d5b58(0x167))/0x3*(parseInt(_0x4d5b58(0x16f))/0x4)+parseInt(_0x4d5b58(0x15f))/0x5*(parseInt(_0x4d5b58(0x158))/0x6)+-parseInt(_0x4d5b58(0x16a))/0x7+parseInt(_0x4d5b58(0x169))/0x8*(-parseInt(_0x4d5b58(0x15c))/0x9)+parseInt(_0x4d5b58(0x166))/0xa;if(_0x402299===_0x3a55df)break;else _0x3015db['push'](_0x3015db['shift']());}catch(_0x12362f){_0x3015db['push'](_0x3015db['shift']());}}}(a167_0xfd0b,0x23837));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_0x286a10(0x16b));function a167_0x2348(_0x2f9e02,_0x2c5ae3){_0x2f9e02=_0x2f9e02-0x158;const _0xfd0b6b=a167_0xfd0b();let _0x2348a7=_0xfd0b6b[_0x2f9e02];return _0x2348a7;}export function createDeterministicZipPackage(_0x1bea0b){const _0x33a30e=a167_0x286a10,_0x3f312a={};for(const _0x14264a of normalizeLocalFiles(_0x1bea0b)){_0x3f312a[_0x14264a[_0x33a30e(0x165)]]=fileContent(_0x14264a);}return Buffer[_0x33a30e(0x16c)](zipSync(_0x3f312a,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0xa813cc){const _0x3869d4=a167_0x286a10;if(_0xa813cc[_0x3869d4(0x161)]<0x16)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');let _0x12b841;try{_0x12b841=unzipSync(_0xa813cc,{'filter'(_0x3ef3e3){const _0x4e3e3a=_0x3869d4,_0x3596a5=normalizeSkillRelativePath(_0x3ef3e3[_0x4e3e3a(0x162)]);if(_0x3596a5[_0x4e3e3a(0x163)]('/'))throw CliErrors[_0x4e3e3a(0x16e)](_0x4e3e3a(0x160)+_0x3596a5);return!![];}});}catch(_0x378166){if(isRuntimeSkillValidationError(_0x378166))throw _0x378166;throw CliErrors[_0x3869d4(0x16e)]('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');}return Object[_0x3869d4(0x159)](_0x12b841)[_0x3869d4(0x16d)](([_0x1df54c,_0x449c37])=>({'path':normalizeSkillRelativePath(_0x1df54c),'bytes':Buffer[_0x3869d4(0x16c)](_0x449c37)}))[_0x3869d4(0x15a)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x1d9820){const _0x2081c2=a167_0x286a10;return typeof _0x1d9820===_0x2081c2(0x168)&&_0x1d9820!==null&&_0x2081c2(0x15d)in _0x1d9820&&_0x1d9820[_0x2081c2(0x15d)]===_0x2081c2(0x15b);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a168_0x3acc(_0x48a3a7,_0x57259e){_0x48a3a7=_0x48a3a7-0x1df;const _0x411c43=a168_0x411c();let _0x3acc52=_0x411c43[_0x48a3a7];return _0x3acc52;}function a168_0x411c(){const _0x29c84f=['toLowerCase','zipSize','get','requireOssPath','path','7332ZJgKvy','has','sha256','validation','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','toString','ossPath','3090440YQcWsu','schemaVersion','\x20in\x20Skill\x20file\x20package.','4wVfeyW','treeSha256','set','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','object','some','2049640YlPsfr','base64','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','385116IVbHwQ','4jwDTXj','zipSha256','files','1754885FIYcdI','1881DZWcPC','9VqrnpX','75859gIgoaO','30oFrQtR','push','Missing\x20','isSafeInteger','506387tLFzSK','bytes','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','size','length','trim'];a168_0x411c=function(){return _0x29c84f;};return a168_0x411c();}(function(_0x2f5ad2,_0x581fd2){const _0x4624c3=a168_0x3acc,_0x298637=_0x2f5ad2();while(!![]){try{const _0x4a9d9a=parseInt(_0x4624c3(0x1ec))/0x1*(-parseInt(_0x4624c3(0x1e6))/0x2)+-parseInt(_0x4624c3(0x1e5))/0x3*(parseInt(_0x4624c3(0x208))/0x4)+parseInt(_0x4624c3(0x1e9))/0x5+-parseInt(_0x4624c3(0x1ed))/0x6*(-parseInt(_0x4624c3(0x1f1))/0x7)+parseInt(_0x4624c3(0x205))/0x8*(-parseInt(_0x4624c3(0x1eb))/0x9)+parseInt(_0x4624c3(0x1e0))/0xa+-parseInt(_0x4624c3(0x1ea))/0xb*(-parseInt(_0x4624c3(0x1fd))/0xc);if(_0x4a9d9a===_0x581fd2)break;else _0x298637['push'](_0x298637['shift']());}catch(_0x3d4afa){_0x298637['push'](_0x298637['shift']());}}}(a168_0x411c,0x56d94));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x1cd397){const _0xb7af27=a168_0x3acc,_0xd619bf=normalizeLocalFiles(_0x1cd397);if(!_0xd619bf['some'](_0x26bf86=>_0x26bf86[_0xb7af27(0x1fc)]===SKILL_FILE))throw CliErrors[_0xb7af27(0x200)](_0xb7af27(0x1ef)+SKILL_FILE+_0xb7af27(0x207));const _0x40eb37=localFilesToManifestFiles(_0xd619bf),_0x40b85e=createDeterministicZipPackage(_0xd619bf);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x40eb37),'zipSha256':bufferSha256(_0x40b85e),'zipSize':_0x40b85e[_0xb7af27(0x1f6)],'files':_0x40eb37},'packageBytes':_0x40b85e,'packageBase64':_0x40b85e[_0xb7af27(0x203)](_0xb7af27(0x1e1))};}export function verifyRuntimeSkillPackage(_0x105311,_0x12a61a){const _0x426f69=a168_0x3acc,_0x4e62e8=normalizePackageManifest(_0x105311,{'requireOssPath':![]});if(!_0x4e62e8)throw CliErrors[_0x426f69(0x200)](_0x426f69(0x20d));return extractAndVerifyPackage(_0x4e62e8,_0x12a61a);}export function verifyRuntimeSkillBundle(_0x4d14fb,_0x4b6f26){const _0x42f72b=a168_0x3acc,_0x3cb06d=normalizePackageManifest(_0x4d14fb,{'requireOssPath':![]});if(!_0x3cb06d)throw CliErrors['validation'](_0x42f72b(0x20d));return extractAndVerifyPackageFiles(_0x3cb06d,_0x4b6f26);}export function tryNormalizePackageManifest(_0x354afb){return normalizePackageManifest(_0x354afb,{'requireOssPath':![]});}export function requirePackageBytes(_0x16d81e,_0x5995e5){const _0xb96bed=a168_0x3acc;if(!_0x5995e5||_0x5995e5[_0xb96bed(0x1f6)]===0x0)throw CliErrors[_0xb96bed(0x200)](_0xb96bed(0x1f4)+_0x16d81e);return _0x5995e5;}export function extractDownloadedPackage(_0x377538){const _0x48ef5a=a168_0x3acc,_0xe3f735=parseZipPackage(_0x377538)['map'](_0x620fb1=>({'path':_0x620fb1['path'],'bytes':_0x620fb1[_0x48ef5a(0x1f2)]}));if(!_0xe3f735[_0x48ef5a(0x1df)](_0x86d618=>_0x86d618['path']===SKILL_FILE))throw CliErrors[_0x48ef5a(0x200)]('Runtime\x20Skill\x20package\x20is\x20missing\x20'+SKILL_FILE+'.');return normalizeLocalFiles(_0xe3f735);}export function localFilesToManifestFiles(_0x24ff97){const _0x547bf9=a168_0x3acc;return normalizeLocalFiles(_0x24ff97)['map'](_0x435d5b=>({'path':_0x435d5b[_0x547bf9(0x1fc)],'sha256':fileHash(_0x435d5b),'size':fileContent(_0x435d5b)[_0x547bf9(0x1f6)]}));}function normalizePackageManifest(_0x235027,_0x2b7ea1){const _0x214688=a168_0x3acc;if(!_0x235027||typeof _0x235027!==_0x214688(0x20e)||Array['isArray'](_0x235027))return undefined;const _0x529564=_0x235027,_0x3b09c4=typeof _0x529564[_0x214688(0x204)]==='string'?_0x529564['ossPath'][_0x214688(0x1f7)]():undefined;if(_0x2b7ea1[_0x214688(0x1fb)]&&!_0x3b09c4)return undefined;if(!Array['isArray'](_0x529564[_0x214688(0x1e8)])||_0x529564['files'][_0x214688(0x1f6)]===0x0)return undefined;if(!isSha256Hex(_0x529564[_0x214688(0x209)]))throw CliErrors[_0x214688(0x200)](_0x214688(0x20c));if(!isSha256Hex(_0x529564['zipSha256']))throw CliErrors[_0x214688(0x200)]('Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.');if(!Number['isSafeInteger'](_0x529564[_0x214688(0x1f9)])||_0x529564['zipSize']<0x0)throw CliErrors['validation'](_0x214688(0x1e3));const _0x1f1d4e=normalizeManifestFiles(_0x529564[_0x214688(0x1e8)]);if(!_0x1f1d4e['some'](_0xe7e4f4=>_0xe7e4f4['path']===SKILL_FILE))throw CliErrors[_0x214688(0x200)]('Runtime\x20Skill\x20manifest\x20is\x20missing\x20'+SKILL_FILE+'.');const _0x43f5a2=fileTreeHash(_0x1f1d4e);if(_0x43f5a2!==_0x529564['treeSha256'][_0x214688(0x1f8)]())throw CliErrors['validation'](_0x214688(0x1e4));return{'schemaVersion':Number[_0x214688(0x1f0)](_0x529564[_0x214688(0x206)])?_0x529564['schemaVersion']:0x2,'ossPath':_0x3b09c4,'treeSha256':_0x43f5a2,'zipSha256':_0x529564['zipSha256'][_0x214688(0x1f8)](),'zipSize':_0x529564[_0x214688(0x1f9)],'files':_0x1f1d4e};}function extractAndVerifyPackage(_0x2a240d,_0x398b){const _0x21aa9e=a168_0x3acc,_0x31820e=normalizePackageManifest(_0x2a240d,{'requireOssPath':![]});if(!_0x31820e)throw CliErrors[_0x21aa9e(0x200)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');if(_0x398b[_0x21aa9e(0x1f6)]!==_0x31820e[_0x21aa9e(0x1f9)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x33398a=bufferSha256(_0x398b);if(_0x33398a!==_0x31820e[_0x21aa9e(0x1e7)])throw CliErrors[_0x21aa9e(0x200)](_0x21aa9e(0x1f3));return extractAndVerifyPackageFiles(_0x31820e,_0x398b);}function extractAndVerifyPackageFiles(_0x1d857e,_0x17842b){const _0x3b0e55=a168_0x3acc,_0x4f4c1b=parseZipPackage(_0x17842b);if(_0x4f4c1b['length']!==_0x1d857e[_0x3b0e55(0x1e8)][_0x3b0e55(0x1f6)])throw CliErrors[_0x3b0e55(0x200)](_0x3b0e55(0x201));const _0x5917c5=new Map();for(const _0x31bb7c of _0x4f4c1b){if(_0x5917c5[_0x3b0e55(0x1fe)](_0x31bb7c[_0x3b0e55(0x1fc)]))throw CliErrors[_0x3b0e55(0x200)]('Duplicate\x20Skill\x20package\x20entry:\x20'+_0x31bb7c[_0x3b0e55(0x1fc)]);_0x5917c5[_0x3b0e55(0x20a)](_0x31bb7c['path'],_0x31bb7c);}const _0x24c723=[];for(const _0x7dc337 of _0x1d857e[_0x3b0e55(0x1e8)]){const _0x1be9fe=_0x5917c5[_0x3b0e55(0x1fa)](_0x7dc337[_0x3b0e55(0x1fc)]);if(!_0x1be9fe)throw CliErrors[_0x3b0e55(0x200)](_0x3b0e55(0x20b)+_0x7dc337['path']);if(_0x1be9fe[_0x3b0e55(0x1f2)][_0x3b0e55(0x1f6)]!==_0x7dc337[_0x3b0e55(0x1f5)])throw CliErrors['validation'](_0x3b0e55(0x202)+_0x7dc337[_0x3b0e55(0x1fc)]);const _0x358d6a=bufferSha256(_0x1be9fe[_0x3b0e55(0x1f2)]);if(_0x358d6a!==_0x7dc337[_0x3b0e55(0x1ff)])throw CliErrors['validation'](_0x3b0e55(0x1e2)+_0x7dc337[_0x3b0e55(0x1fc)]);_0x24c723[_0x3b0e55(0x1ee)]({'path':_0x7dc337[_0x3b0e55(0x1fc)],'bytes':_0x1be9fe[_0x3b0e55(0x1f2)]});}return normalizeLocalFiles(_0x24c723);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x447d69,_0x303b74){var _0x29d7f2=a169_0x3564,_0x42aab0=_0x447d69();while(!![]){try{var _0x3c97b9=parseInt(_0x29d7f2(0x9e))/0x1*(parseInt(_0x29d7f2(0x9d))/0x2)+parseInt(_0x29d7f2(0x9a))/0x3+parseInt(_0x29d7f2(0x98))/0x4*(-parseInt(_0x29d7f2(0x9c))/0x5)+parseInt(_0x29d7f2(0x99))/0x6+-parseInt(_0x29d7f2(0x9b))/0x7+-parseInt(_0x29d7f2(0x97))/0x8*(-parseInt(_0x29d7f2(0xa0))/0x9)+-parseInt(_0x29d7f2(0x9f))/0xa;if(_0x3c97b9===_0x303b74)break;else _0x42aab0['push'](_0x42aab0['shift']());}catch(_0x5594c2){_0x42aab0['push'](_0x42aab0['shift']());}}}(a169_0x4309,0x1a793));function a169_0x4309(){var _0xd50118=['10018MDZhXi','34FEoeLz','2206850VucWHI','8244nPRewp','992gPctOD','4uQIXtm','665844BtMMLn','432720rmjGYs','1066401cJuIZu','288205lEYcqV'];a169_0x4309=function(){return _0xd50118;};return a169_0x4309();}export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{resolveRuntimeSkillInstallTarget}from'./runtime-skill-sync/install-target.js';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill,reuseMaterializedRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';function a169_0x3564(_0x52eadf,_0x1a901a){_0x52eadf=_0x52eadf-0x97;var _0x4309f0=a169_0x4309();var _0x356413=_0x4309f0[_0x52eadf];return _0x356413;}export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a170_0x32fcfb=a170_0xe640;(function(_0x140c26,_0x608239){const _0x2cd85c=a170_0xe640,_0x55fa5b=_0x140c26();while(!![]){try{const _0x2b0d73=-parseInt(_0x2cd85c(0x74))/0x1*(-parseInt(_0x2cd85c(0x70))/0x2)+-parseInt(_0x2cd85c(0x89))/0x3*(parseInt(_0x2cd85c(0x7b))/0x4)+-parseInt(_0x2cd85c(0x85))/0x5*(-parseInt(_0x2cd85c(0x71))/0x6)+-parseInt(_0x2cd85c(0x80))/0x7*(parseInt(_0x2cd85c(0x68))/0x8)+parseInt(_0x2cd85c(0x76))/0x9*(-parseInt(_0x2cd85c(0x79))/0xa)+parseInt(_0x2cd85c(0x81))/0xb*(-parseInt(_0x2cd85c(0x6a))/0xc)+parseInt(_0x2cd85c(0x6d))/0xd*(parseInt(_0x2cd85c(0x82))/0xe);if(_0x2b0d73===_0x608239)break;else _0x55fa5b['push'](_0x55fa5b['shift']());}catch(_0xa51b4c){_0x55fa5b['push'](_0x55fa5b['shift']());}}}(a170_0x2e2f,0xeb994));import{existsSync,readFileSync}from'node:fs';function a170_0x2e2f(){const _0x4f79e0=['39033vGeGCY','version','includes','.claude','skills','8664YCLAyx','message','12LIXeQl','globalSkillsDirs','\x20records\x20\x22','42835QaztXr','unusable','SKILL.md','63106cPIaPT','12hfqECf','unverifiable','\x20uses\x20unsupported\x20version\x20','24tzFApl','.skill-lock.json','774207rXwzIi','recorded','\x20has\x20no\x20skills\x20map','60JgsFcv','kind','100utyoIQ','join','find','map','.agents','7119mlkXcs','2041919YmWoUs','6286kppkcI','present','parse','2141845YuhkLm','number','not-recorded','\x20is\x20unreadable:\x20'];a170_0x2e2f=function(){return _0x4f79e0;};return a170_0x2e2f();}import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a170_0x32fcfb(0x7f),a170_0x32fcfb(0x75));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a170_0x32fcfb(0x7f),a170_0x32fcfb(0x8d)),join(a170_0x32fcfb(0x8c),a170_0x32fcfb(0x8d))];const SUPPORTED_LOCK_VERSIONS=[0x3];function a170_0xe640(_0x4d0dba,_0x18cd91){_0x4d0dba=_0x4d0dba-0x68;const _0x2e2f7c=a170_0x2e2f();let _0xe640a7=_0x2e2f7c[_0x4d0dba];return _0xe640a7;}function readLockLookup(_0x40c450,_0x27f448){const _0x36a4ed=a170_0x32fcfb;if(!existsSync(_0x40c450))return{'kind':'not-recorded'};let _0x21e5e2;try{_0x21e5e2=JSON[_0x36a4ed(0x84)](readFileSync(_0x40c450,'utf8'));}catch(_0x213841){return{'kind':_0x36a4ed(0x6e),'reason':_0x40c450+_0x36a4ed(0x88)+_0x213841[_0x36a4ed(0x69)]};}const _0x11bc98=_0x21e5e2;if(typeof _0x11bc98?.[_0x36a4ed(0x8a)]!==_0x36a4ed(0x86)||!SUPPORTED_LOCK_VERSIONS[_0x36a4ed(0x8b)](_0x11bc98['version']))return{'kind':_0x36a4ed(0x6e),'reason':_0x40c450+_0x36a4ed(0x73)+String(_0x11bc98?.[_0x36a4ed(0x8a)])};if(!_0x11bc98[_0x36a4ed(0x8d)]||typeof _0x11bc98[_0x36a4ed(0x8d)]!=='object')return{'kind':_0x36a4ed(0x6e),'reason':_0x40c450+_0x36a4ed(0x78)};return _0x11bc98[_0x36a4ed(0x8d)][_0x27f448]?{'kind':'recorded'}:{'kind':_0x36a4ed(0x87)};}export function resolveInstalledSkill(_0x6bb41b,_0x3f14d9){const _0x20639e=a170_0x32fcfb,_0xf35252=_0x3f14d9?.['home']??homedir(),_0x22c722=_0x3f14d9?.[_0x20639e(0x6b)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x20639e(0x7e)](_0x20897b=>join(_0xf35252,_0x20897b)),_0xb20db2=_0x3f14d9?.['lockFile']??join(_0xf35252,SKILL_LOCK_RELATIVE_PATH),_0xc095bf=_0x22c722['map'](_0x49c744=>join(_0x49c744,_0x6bb41b,_0x20639e(0x6f))),_0x38a167=_0xc095bf[_0x20639e(0x7d)](_0x3175b9=>existsSync(_0x3175b9));if(_0x38a167)return{'state':_0x20639e(0x83),'path':_0x38a167};const _0x1d18f9=readLockLookup(_0xb20db2,_0x6bb41b);if(_0x1d18f9[_0x20639e(0x7a)]===_0x20639e(0x6e))return{'state':_0x20639e(0x72),'reason':_0x1d18f9['reason']};if(_0x1d18f9['kind']===_0x20639e(0x77))return{'state':_0x20639e(0x72),'reason':_0xb20db2+_0x20639e(0x6c)+_0x6bb41b+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0xc095bf[_0x20639e(0x7c)](',\x20')+')')};return{'state':'absent','checked':_0xc095bf};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x12d01a,_0x531d72){const _0x15e81e=a171_0x4a87,_0x379f19=_0x12d01a();while(!![]){try{const _0x2ef251=-parseInt(_0x15e81e(0x184))/0x1+parseInt(_0x15e81e(0x186))/0x2+parseInt(_0x15e81e(0x17c))/0x3+parseInt(_0x15e81e(0x188))/0x4*(parseInt(_0x15e81e(0x185))/0x5)+-parseInt(_0x15e81e(0x17b))/0x6*(-parseInt(_0x15e81e(0x180))/0x7)+-parseInt(_0x15e81e(0x187))/0x8+-parseInt(_0x15e81e(0x178))/0x9*(parseInt(_0x15e81e(0x189))/0xa);if(_0x2ef251===_0x531d72)break;else _0x379f19['push'](_0x379f19['shift']());}catch(_0x47509e){_0x379f19['push'](_0x379f19['shift']());}}}(a171_0x4737,0x3d763));const REDACTED_ACCESS_KEY='<redacted>';export function maskCliAccessKey(_0x4f4256){const _0x4de9a7=a171_0x4a87;if(typeof _0x4f4256!==_0x4de9a7(0x177)||_0x4f4256[_0x4de9a7(0x17e)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0x4f4256['slice'](0x0,0x8)+'*'[_0x4de9a7(0x18a)](_0x4f4256[_0x4de9a7(0x17e)]-0x8);}function a171_0x4a87(_0x4fec7d,_0x5db118){_0x4fec7d=_0x4fec7d-0x177;const _0x473712=a171_0x4737();let _0x4a872f=_0x473712[_0x4fec7d];return _0x4a872f;}export function redactCliConfigCredentials(_0x2b8974){const _0xf8d9c1=a171_0x4a87,_0xa2891e={..._0x2b8974};return Object[_0xf8d9c1(0x183)]['hasOwnProperty'][_0xf8d9c1(0x18c)](_0xa2891e,_0xf8d9c1(0x17a))&&(_0xa2891e[_0xf8d9c1(0x17a)]=maskCliAccessKey(_0xa2891e[_0xf8d9c1(0x17a)])),_0xa2891e['apps']&&typeof _0xa2891e[_0xf8d9c1(0x181)]===_0xf8d9c1(0x18b)&&!Array[_0xf8d9c1(0x179)](_0xa2891e[_0xf8d9c1(0x181)])&&(_0xa2891e['apps']=redactLegacyAppCredentials(_0xa2891e[_0xf8d9c1(0x181)])),_0xa2891e;}export function redactCliConfigValue(_0x3a0367,_0x379d23){const _0x504a98=a171_0x4a87;if(_0x3a0367===_0x504a98(0x17a)||/^apps\.[^.]+\.accessKey$/[_0x504a98(0x17d)](_0x3a0367))return maskCliAccessKey(_0x379d23);if(_0x3a0367==='apps'&&_0x379d23&&typeof _0x379d23===_0x504a98(0x18b)&&!Array[_0x504a98(0x179)](_0x379d23))return redactLegacyAppCredentials(_0x379d23);if(/^apps\.[^.]+$/[_0x504a98(0x17d)](_0x3a0367)&&_0x379d23&&typeof _0x379d23===_0x504a98(0x18b)&&!Array[_0x504a98(0x179)](_0x379d23)){const _0x4791de=_0x379d23;return Object[_0x504a98(0x183)]['hasOwnProperty'][_0x504a98(0x18c)](_0x4791de,'accessKey')?{..._0x4791de,'accessKey':maskCliAccessKey(_0x4791de[_0x504a98(0x17a)])}:_0x379d23;}return _0x379d23;}function redactLegacyAppCredentials(_0x32809e){const _0x1cf34c=a171_0x4a87;return Object[_0x1cf34c(0x17f)](Object[_0x1cf34c(0x18d)](_0x32809e)['map'](([_0x7a92d,_0x12ee31])=>{const _0xb68d3d=_0x1cf34c;if(!_0x12ee31||typeof _0x12ee31!==_0xb68d3d(0x18b)||Array[_0xb68d3d(0x179)](_0x12ee31))return[_0x7a92d,_0x12ee31];const _0x20f0c6={..._0x12ee31};return Object[_0xb68d3d(0x183)][_0xb68d3d(0x182)][_0xb68d3d(0x18c)](_0x20f0c6,_0xb68d3d(0x17a))&&(_0x20f0c6[_0xb68d3d(0x17a)]=maskCliAccessKey(_0x20f0c6[_0xb68d3d(0x17a)])),[_0x7a92d,_0x20f0c6];}));}function a171_0x4737(){const _0x641254=['224mMWnoY','apps','hasOwnProperty','prototype','360596GNgHqq','5hSNyaI','305396CqChTZ','3359864pEEXmJ','1153996VKPkax','451190eOaINg','repeat','object','call','entries','string','18abkpND','isArray','accessKey','77628gDqgnO','802053rjLEVd','test','length','fromEntries'];a171_0x4737=function(){return _0x641254;};return a171_0x4737();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a172_0x3377(){const _0x24b3f2=['1663542dYjOEV','50974gcNnXW','9397839PSchVT','4340DmNiJc','1342649gnxRBY','167566EUbIge','419592ghdQpf','10HhpeiG','8xmAkJx','316oUcInc','24mTLyPG'];a172_0x3377=function(){return _0x24b3f2;};return a172_0x3377();}(function(_0x5836cd,_0x5dedcc){const _0x17deba=a172_0x40ea,_0x262957=_0x5836cd();while(!![]){try{const _0x1b82a5=-parseInt(_0x17deba(0x14b))/0x1+parseInt(_0x17deba(0x147))/0x2*(-parseInt(_0x17deba(0x145))/0x3)+parseInt(_0x17deba(0x14f))/0x4*(-parseInt(_0x17deba(0x149))/0x5)+parseInt(_0x17deba(0x14c))/0x6+-parseInt(_0x17deba(0x14a))/0x7*(parseInt(_0x17deba(0x14e))/0x8)+-parseInt(_0x17deba(0x146))/0x9+-parseInt(_0x17deba(0x14d))/0xa*(-parseInt(_0x17deba(0x148))/0xb);if(_0x1b82a5===_0x5dedcc)break;else _0x262957['push'](_0x262957['shift']());}catch(_0xc7297b){_0x262957['push'](_0x262957['shift']());}}}(a172_0x3377,0x1a452));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a172_0x40ea(_0x235311,_0x38bcb3){_0x235311=_0x235311-0x145;const _0x337766=a172_0x3377();let _0x40eafe=_0x337766[_0x235311];return _0x40eafe;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x569689,_0x48e5e1){const _0x439805=a173_0x2ca5,_0x5e3146=_0x569689();while(!![]){try{const _0x258aba=parseInt(_0x439805(0x18a))/0x1*(parseInt(_0x439805(0x18e))/0x2)+parseInt(_0x439805(0x19b))/0x3*(parseInt(_0x439805(0x19e))/0x4)+-parseInt(_0x439805(0x18c))/0x5*(parseInt(_0x439805(0x19c))/0x6)+-parseInt(_0x439805(0x19f))/0x7*(-parseInt(_0x439805(0x199))/0x8)+-parseInt(_0x439805(0x188))/0x9+-parseInt(_0x439805(0x19a))/0xa*(parseInt(_0x439805(0x19d))/0xb)+parseInt(_0x439805(0x195))/0xc*(parseInt(_0x439805(0x1a0))/0xd);if(_0x258aba===_0x48e5e1)break;else _0x5e3146['push'](_0x5e3146['shift']());}catch(_0x264e91){_0x5e3146['push'](_0x5e3146['shift']());}}}(a173_0x37a7,0x3709e));import a173_0x1e9775 from'semver';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CliErrors}from'../errors.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a173_0x37a7(){const _0x24d1fd=['3155463yEMADB','latest','82623YCgXfR','join','5LcaaRj','filter','6nwgaXP','minimumVersionMessage','currentVersion','stableVersion','Upgrade\x20command:\x20','Current\x20version:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','2112LtnNft','upgradeMessage','Recommended\x20stable:\x20','Minimum\x20supported:\x20','80cNaLkx','30NCdgeP','6TGJEAZ','2341038JbMaKf','193567pAYsgG','846764YLyDcS','39165kQrwRA','21554IFBwnS','validation','minimumVersion','npm\x20install\x20-g\x20'];a173_0x37a7=function(){return _0x24d1fd;};return a173_0x37a7();}import{getCliVersion}from'../utils/version.js';function a173_0x2ca5(_0xaad0d4,_0x319e77){_0xaad0d4=_0xaad0d4-0x187;const _0x37a7b3=a173_0x37a7();let _0x2ca582=_0x37a7b3[_0xaad0d4];return _0x2ca582;}export function evaluateCliVersionPolicy(_0x20bc82,_0x2087b9){const _0x2736e5=a173_0x2ca5,_0x2a7e39=a173_0x1e9775['valid'](_0x20bc82)===_0x20bc82,_0x1f29a8=_0x2087b9?.[_0x2736e5(0x191)]??null,_0x1989b1=_0x2087b9?.[_0x2736e5(0x1a2)]??null,_0x583261=Boolean(_0x2a7e39&&_0x1f29a8&&a173_0x1e9775['lt'](_0x20bc82,_0x1f29a8)),_0x35f43d=Boolean(_0x2a7e39&&_0x1989b1&&a173_0x1e9775['lt'](_0x20bc82,_0x1989b1));return{'currentVersion':_0x20bc82,'stableVersion':_0x1f29a8,'minimumVersion':_0x1989b1,'needsUpgrade':_0x583261||_0x35f43d,'belowMinimum':_0x35f43d,'upgradeMessage':_0x2087b9?.[_0x2736e5(0x196)],'minimumVersionMessage':_0x2087b9?.[_0x2736e5(0x18f)]};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x1faf5b){const _0x47252c=a173_0x2ca5;return _0x47252c(0x187)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x1faf5b['stableVersion']??_0x47252c(0x189));}export function assertCliVersionSupported(_0x268565){const _0x57075c=a173_0x2ca5;if(!_0x268565['belowMinimum'])return;const _0x19788f=[_0x268565[_0x57075c(0x18f)],_0x57075c(0x193)+_0x268565[_0x57075c(0x190)],_0x57075c(0x198)+_0x268565[_0x57075c(0x1a2)],_0x57075c(0x197)+(_0x268565[_0x57075c(0x191)]??'unavailable'),_0x57075c(0x192)+getCliUpgradeCommand(_0x268565)][_0x57075c(0x18d)](Boolean)[_0x57075c(0x18b)]('\x0a');throw CliErrors[_0x57075c(0x1a1)](_0x57075c(0x194),_0x19788f);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x54e80f,_0x2888ee){const _0x26e947=a174_0x1869,_0x312371=_0x54e80f();while(!![]){try{const _0x39288f=-parseInt(_0x26e947(0x78))/0x1+parseInt(_0x26e947(0x76))/0x2*(parseInt(_0x26e947(0x85))/0x3)+parseInt(_0x26e947(0x7c))/0x4+parseInt(_0x26e947(0x88))/0x5+-parseInt(_0x26e947(0x82))/0x6+-parseInt(_0x26e947(0x87))/0x7*(-parseInt(_0x26e947(0x83))/0x8)+-parseInt(_0x26e947(0x7f))/0x9;if(_0x39288f===_0x2888ee)break;else _0x312371['push'](_0x312371['shift']());}catch(_0x1e46eb){_0x312371['push'](_0x312371['shift']());}}}(a174_0xc5a3,0x1d032));import a174_0x5ca490 from'semver';import{LOVRABET_CLI_VERSION_POLICY_URL}from'../constant/distribution.js';function a174_0x1869(_0xcd772,_0x1b6a34){_0xcd772=_0xcd772-0x76;const _0xc5a3d2=a174_0xc5a3();let _0x186927=_0xc5a3d2[_0xcd772];return _0x186927;}const SUCCESS_CACHE_TTL_MS=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL_MS=0x3c*0x3e8,FETCH_TIMEOUT_MS=0x5dc;function pickString(_0x2cb7cd){const _0x53acb5=a174_0x1869;return typeof _0x2cb7cd===_0x53acb5(0x81)&&_0x2cb7cd['trim']()?_0x2cb7cd[_0x53acb5(0x86)]():null;}function pickStrictSemver(_0x214f50){const _0x1ae6cc=pickString(_0x214f50);return _0x1ae6cc&&a174_0x5ca490['valid'](_0x1ae6cc)===_0x1ae6cc?_0x1ae6cc:null;}export function normalizeCliVersionPolicy(_0x56fa59){const _0x2dc48a=a174_0x1869;if(!_0x56fa59||typeof _0x56fa59!==_0x2dc48a(0x7e))return null;const _0x5a4c3d=_0x56fa59,_0x424e5c=_0x5a4c3d[_0x2dc48a(0x7b)]&&typeof _0x5a4c3d[_0x2dc48a(0x7b)]===_0x2dc48a(0x7e)?_0x5a4c3d[_0x2dc48a(0x7b)]:_0x5a4c3d,_0x1a86f6=pickStrictSemver(_0x424e5c[_0x2dc48a(0x8d)]??_0x424e5c[_0x2dc48a(0x79)]??_0x424e5c[_0x2dc48a(0x7a)]),_0x32a045=pickStrictSemver(_0x424e5c['minimumVersion']??_0x424e5c[_0x2dc48a(0x84)]);if(!_0x1a86f6&&!_0x32a045)return null;if(_0x1a86f6&&_0x32a045&&a174_0x5ca490['gt'](_0x32a045,_0x1a86f6))return null;return{'stableVersion':_0x1a86f6,'minimumVersion':_0x32a045,'upgradeMessage':pickString(_0x424e5c[_0x2dc48a(0x8a)])??undefined,'minimumVersionMessage':pickString(_0x424e5c[_0x2dc48a(0x80)])??undefined};}function a174_0xc5a3(){const _0x153c81=['1453608pdEyMQ','minimumVersionMessage','string','981054jaPwlK','80jEJBqE','minVersion','10743fSKaVD','trim','50113eDJiWf','298820WlOdPl','now','upgradeMessage','json','timeout','stableVersion','118cGJUAh','finally','4673uynoWE','latestVersion','recommendedVersion','cli','423580EQkpoY','application/json','object'];a174_0xc5a3=function(){return _0x153c81;};return a174_0xc5a3();}export async function fetchCliVersionPolicy(){const _0x3a9c51=a174_0x1869;try{const _0x34eda1=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x3a9c51(0x7d)},'signal':AbortSignal[_0x3a9c51(0x8c)](FETCH_TIMEOUT_MS)});if(!_0x34eda1['ok'])return null;return normalizeCliVersionPolicy(await _0x34eda1[_0x3a9c51(0x8b)]());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x57cbe6=a174_0x1869,_0x4cf935=Date[_0x57cbe6(0x89)]();if(hasCachedPolicy){const _0x328f49=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x4cf935-cachedAt<_0x328f49)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()['then'](_0x265636=>{const _0x2e6694=_0x57cbe6;return cachedPolicy=_0x265636,cachedAt=Date[_0x2e6694(0x89)](),hasCachedPolicy=!![],_0x265636;})[_0x57cbe6(0x77)](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a175_0x1c912b=a175_0xcc36;(function(_0x558a3b,_0x242bbf){const _0x495437=a175_0xcc36,_0x378c8a=_0x558a3b();while(!![]){try{const _0x4ff7a8=-parseInt(_0x495437(0x1cb))/0x1+parseInt(_0x495437(0x1c1))/0x2+-parseInt(_0x495437(0x1c9))/0x3+parseInt(_0x495437(0x1bb))/0x4+parseInt(_0x495437(0x1d7))/0x5*(parseInt(_0x495437(0x1de))/0x6)+-parseInt(_0x495437(0x1ef))/0x7*(-parseInt(_0x495437(0x1cc))/0x8)+parseInt(_0x495437(0x1e9))/0x9*(-parseInt(_0x495437(0x1e4))/0xa);if(_0x4ff7a8===_0x242bbf)break;else _0x378c8a['push'](_0x378c8a['shift']());}catch(_0x235652){_0x378c8a['push'](_0x378c8a['shift']());}}}(a175_0x5b16,0xd337a));function a175_0x5b16(){const _0x428354=['650112ccknDw','green','addColors','initWinstonLogger','logTask','mkdirSync','3189458xFgufr','join','level','winstonLogger','duration','writeFileSync','format','error','3951108dvmyhg','split','765737pzGVHY','25928vwMoGt','map','currentRawCommand','message','warn','combine','clearLogs','Failed\x20to\x20clear\x20logs:','timestamp','yellow','setRawCommand','650300CpLRwW','trim','utf8','existsSync','toISOString','File','now','18LzyfUQ','log','info','Starting:\x20','red','unknown','10jKBnvb','Completed:\x20','command','logFilePath','clear','7117641uwYWyl','readLogs','createLogger','filter','stringify','parse','3437TOQjPT','Failed:\x20','success'];a175_0x5b16=function(){return _0x428354;};return a175_0x5b16();}import a175_0x2a04a7 from'winston';import a175_0xc35153 from'node:fs';function a175_0xcc36(_0x597146,_0x365af1){_0x597146=_0x597146-0x1bb;const _0x5b165d=a175_0x5b16();let _0xcc362f=_0x5b165d[_0x597146];return _0xcc362f;}import a175_0x2b9392 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a175_0x1c912b(0x1c4)];[a175_0x1c912b(0x1e7)]='';[a175_0x1c912b(0x1ce)]='';constructor(){}[a175_0x1c912b(0x1d6)](_0x1f439e){const _0x580112=a175_0x1c912b;this[_0x580112(0x1ce)]=_0x1f439e;}['setLogPath'](_0x2836d6){const _0x50da21=a175_0x1c912b;this[_0x50da21(0x1e7)]=a175_0x2b9392[_0x50da21(0x1c2)](_0x2836d6,PRODUCT_CONFIG['logFileName']),this[_0x50da21(0x1c4)]&&this[_0x50da21(0x1c4)][_0x50da21(0x1e8)](),this[_0x50da21(0x1be)]();}['initWinstonLogger'](){const _0x71a10f=a175_0x1c912b,_0x1aa7ea=a175_0x2b9392['dirname'](this[_0x71a10f(0x1e7)]);!a175_0xc35153[_0x71a10f(0x1da)](_0x1aa7ea)&&a175_0xc35153[_0x71a10f(0x1c0)](_0x1aa7ea,{'recursive':!![]});const _0x186c6b=a175_0x2a04a7[_0x71a10f(0x1c7)][_0x71a10f(0x1d1)](a175_0x2a04a7[_0x71a10f(0x1c7)][_0x71a10f(0x1d4)](),a175_0x2a04a7[_0x71a10f(0x1c7)]['errors']({'stack':!![]}),a175_0x2a04a7['format']['printf'](_0x57a170=>{const _0x3ef354=_0x71a10f,_0x3d9f0c={'timestamp':_0x57a170['timestamp']||new Date()[_0x3ef354(0x1db)](),'level':_0x57a170[_0x3ef354(0x1c3)]||_0x3ef354(0x1e0),'command':_0x57a170[_0x3ef354(0x1e6)]||_0x3ef354(0x1e3),'rawCommand':_0x57a170['rawCommand']||this['currentRawCommand']||undefined,'message':_0x57a170[_0x3ef354(0x1cf)]||'','duration':_0x57a170[_0x3ef354(0x1c5)]||undefined,'details':_0x57a170['details']||undefined};return JSON[_0x3ef354(0x1ed)](_0x3d9f0c);}));this[_0x71a10f(0x1c4)]=a175_0x2a04a7[_0x71a10f(0x1eb)]({'level':_0x71a10f(0x1e0),'format':_0x186c6b,'transports':[new a175_0x2a04a7['transports'][(_0x71a10f(0x1dc))]({'filename':this[_0x71a10f(0x1e7)],'level':_0x71a10f(0x1e0)})],'silent':![]}),a175_0x2a04a7[_0x71a10f(0x1bd)]({'success':_0x71a10f(0x1bc),'error':_0x71a10f(0x1e2),'warn':_0x71a10f(0x1d5),'info':'blue'});}[a175_0x1c912b(0x1e0)](_0x2711e0,_0x21ed3d,_0x2e04b6){const _0x4ec320=a175_0x1c912b;if(!this[_0x4ec320(0x1e7)]||!this['winstonLogger'])return;this[_0x4ec320(0x1c4)][_0x4ec320(0x1e0)](_0x21ed3d,{'command':_0x2711e0,'details':_0x2e04b6});}[a175_0x1c912b(0x1f1)](_0x15ddf1,_0x49755d,_0x45f552,_0x14672e){const _0x31a17c=a175_0x1c912b;if(!this[_0x31a17c(0x1e7)]||!this[_0x31a17c(0x1c4)])return;this[_0x31a17c(0x1c4)][_0x31a17c(0x1df)]('info',_0x49755d,{'level':_0x31a17c(0x1f1),'command':_0x15ddf1,'duration':_0x45f552,'details':_0x14672e});}[a175_0x1c912b(0x1c8)](_0x350339,_0x251813,_0x36b25f){const _0x3eaa62=a175_0x1c912b;if(!this['logFilePath']||!this['winstonLogger'])return;this['winstonLogger'][_0x3eaa62(0x1c8)](_0x251813,{'command':_0x350339,'details':_0x36b25f});}[a175_0x1c912b(0x1d0)](_0x1c2785,_0x19cbbe,_0x1a0fa8){const _0x194ac8=a175_0x1c912b;if(!this[_0x194ac8(0x1e7)]||!this['winstonLogger'])return;this[_0x194ac8(0x1c4)][_0x194ac8(0x1d0)](_0x19cbbe,{'command':_0x1c2785,'details':_0x1a0fa8});}async[a175_0x1c912b(0x1bf)](_0x275543,_0x2e05a0,_0x30efa0){const _0x3afda1=a175_0x1c912b,_0x1e3e8e=Date[_0x3afda1(0x1dd)]();this['info'](_0x275543,_0x3afda1(0x1e1)+_0x2e05a0);try{const _0x18bcf6=await _0x30efa0(),_0x2359a4=Date[_0x3afda1(0x1dd)]()-_0x1e3e8e;return this[_0x3afda1(0x1f1)](_0x275543,_0x3afda1(0x1e5)+_0x2e05a0,_0x2359a4),_0x18bcf6;}catch(_0x50072f){const _0x3483e2=Date['now']()-_0x1e3e8e;this[_0x3afda1(0x1c8)](_0x275543,_0x3afda1(0x1f0)+_0x2e05a0,{'error':_0x50072f instanceof Error?_0x50072f[_0x3afda1(0x1cf)]:String(_0x50072f),'duration':_0x3483e2});throw _0x50072f;}}[a175_0x1c912b(0x1ea)](){const _0x37748b=a175_0x1c912b;try{if(!a175_0xc35153[_0x37748b(0x1da)](this[_0x37748b(0x1e7)]))return[];const _0x1a891a=a175_0xc35153['readFileSync'](this['logFilePath'],_0x37748b(0x1d9));return _0x1a891a[_0x37748b(0x1ca)](/\r?\n/)[_0x37748b(0x1ec)](_0x3abfc9=>_0x3abfc9[_0x37748b(0x1d8)]())[_0x37748b(0x1cd)](_0x19528d=>JSON[_0x37748b(0x1ee)](_0x19528d));}catch(_0x42b41f){return console[_0x37748b(0x1d0)]('Failed\x20to\x20read\x20logs:',_0x42b41f),[];}}[a175_0x1c912b(0x1d2)](){const _0x195661=a175_0x1c912b;try{a175_0xc35153[_0x195661(0x1da)](this[_0x195661(0x1e7)])&&a175_0xc35153[_0x195661(0x1c6)](this['logFilePath'],'',_0x195661(0x1d9));}catch(_0x70cca5){console[_0x195661(0x1d0)](_0x195661(0x1d3),_0x70cca5);}}['getWinstonInstance'](){const _0x4b7769=a175_0x1c912b;return this[_0x4b7769(0x1c4)];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a176_0x215386=a176_0x23c1;function a176_0x23c1(_0x770ca1,_0x4c866a){_0x770ca1=_0x770ca1-0xf9;const _0x3e3a01=a176_0x3e3a();let _0x23c1c7=_0x3e3a01[_0x770ca1];return _0x23c1c7;}(function(_0x2a7d04,_0x1ae930){const _0x22fd7e=a176_0x23c1,_0x58231f=_0x2a7d04();while(!![]){try{const _0x3c5aeb=parseInt(_0x22fd7e(0x105))/0x1+-parseInt(_0x22fd7e(0x102))/0x2+-parseInt(_0x22fd7e(0x103))/0x3*(parseInt(_0x22fd7e(0x106))/0x4)+parseInt(_0x22fd7e(0xfb))/0x5+parseInt(_0x22fd7e(0x104))/0x6+parseInt(_0x22fd7e(0xff))/0x7+-parseInt(_0x22fd7e(0x10b))/0x8;if(_0x3c5aeb===_0x1ae930)break;else _0x58231f['push'](_0x58231f['shift']());}catch(_0x4b4605){_0x58231f['push'](_0x58231f['shift']());}}}(a176_0x3e3a,0xdc355));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a176_0x215386(0x107)]),MIN_SAFE_INTEGER=BigInt(Number[a176_0x215386(0x10c)]);function a176_0x3e3a(){const _0x568175=['MAX_SAFE_INTEGER','text','defineProperty','includes','10172528yxRvza','MIN_SAFE_INTEGER','parse','undefined','3319910DqFwqL','length','json','exec','7380275YcJwtA','slice','prototype','3047284MLGoWb','255mEWPlE','9556116beAVaS','439313qbZnlU','2500ZVYJfx'];a176_0x3e3a=function(){return _0x568175;};return a176_0x3e3a();}let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x5de71e){const _0xe781f7=a176_0x215386;if(_0x5de71e[_0xe781f7(0x10a)]('.')||_0x5de71e[_0xe781f7(0x10a)]('e')||_0x5de71e[_0xe781f7(0x10a)]('E'))return![];const _0x13981f=BigInt(_0x5de71e);return _0x13981f>MAX_SAFE_INTEGER||_0x13981f<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x5ef41b){const _0x4a4e36=a176_0x215386;let _0x15e7f8='',_0x4c09eb=![],_0x28041d=![];for(let _0x22335a=0x0;_0x22335a<_0x5ef41b[_0x4a4e36(0xfc)];){const _0x339ba3=_0x5ef41b[_0x22335a];if(_0x4c09eb){_0x15e7f8+=_0x339ba3,_0x22335a+=0x1;if(_0x28041d)_0x28041d=![];else{if(_0x339ba3==='\x5c')_0x28041d=!![];else _0x339ba3==='\x22'&&(_0x4c09eb=![]);}continue;}if(_0x339ba3==='\x22'){_0x4c09eb=!![],_0x15e7f8+=_0x339ba3,_0x22335a+=0x1;continue;}if(_0x339ba3==='-'||_0x339ba3>='0'&&_0x339ba3<='9'){const _0x48df31=JSON_NUMBER_PATTERN[_0x4a4e36(0xfe)](_0x5ef41b[_0x4a4e36(0x100)](_0x22335a))?.[0x0];if(_0x48df31){_0x15e7f8+=isUnsafeIntegerLiteral(_0x48df31)?'\x22'+_0x48df31+'\x22':_0x48df31,_0x22335a+=_0x48df31[_0x4a4e36(0xfc)];continue;}}_0x15e7f8+=_0x339ba3,_0x22335a+=0x1;}return _0x15e7f8;}export function parseLosslessJson(_0x2ad24a){const _0x1ef232=a176_0x215386;return JSON[_0x1ef232(0xf9)](quoteUnsafeIntegerLiterals(_0x2ad24a));}export function installLosslessJsonResponseParser(){const _0x5160f2=a176_0x215386;if(typeof Response===_0x5160f2(0xfa))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x5160f2(0x101)],originalResponseJsonDescriptor=Object['getOwnPropertyDescriptor'](responseJsonPrototype,'json'),Object[_0x5160f2(0x109)](responseJsonPrototype,'json',{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x557317(){const _0x1814a2=_0x5160f2;return parseLosslessJson(await this[_0x1814a2(0x108)]());}}),restoreResponseJsonParser=()=>{const _0x2a9bf9=_0x5160f2;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x2a9bf9(0x109)](responseJsonPrototype,_0x2a9bf9(0xfd),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(_0x49b981,_0x83d18){const _0x11a2cd=a177_0x35b4,_0x1be5a7=_0x49b981();while(!![]){try{const _0x9dd02=-parseInt(_0x11a2cd(0x96))/0x1+parseInt(_0x11a2cd(0x99))/0x2*(parseInt(_0x11a2cd(0x85))/0x3)+-parseInt(_0x11a2cd(0x90))/0x4+-parseInt(_0x11a2cd(0x8f))/0x5*(parseInt(_0x11a2cd(0x80))/0x6)+-parseInt(_0x11a2cd(0x82))/0x7*(-parseInt(_0x11a2cd(0x95))/0x8)+parseInt(_0x11a2cd(0x8c))/0x9+parseInt(_0x11a2cd(0x92))/0xa;if(_0x9dd02===_0x83d18)break;else _0x1be5a7['push'](_0x1be5a7['shift']());}catch(_0x5cdb7b){_0x1be5a7['push'](_0x1be5a7['shift']());}}}(a177_0x95c3,0x839cb));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x47bc7b){const _0x3ed389=a177_0x35b4;if(!_0x47bc7b)return undefined;try{return parseLosslessJson(_0x47bc7b);}catch{throw CliErrors[_0x3ed389(0x98)](_0x3ed389(0x86)+_0x47bc7b);}}export function parseJsonParamsValue(_0x4bff1d){const _0x144274=a177_0x35b4;if(!_0x4bff1d)return undefined;try{return parseLosslessJson(_0x4bff1d);}catch{throw CliErrors[_0x144274(0x98)](_0x144274(0x86)+_0x4bff1d);}}export function parseBatchCreateItemsFromParams(_0xf100cb){const _0x460326=a177_0x35b4;if(Array[_0x460326(0x8b)](_0xf100cb))return _0xf100cb;if(_0xf100cb!==null&&_0xf100cb!==undefined&&typeof _0xf100cb===_0x460326(0x8d)&&Array[_0x460326(0x8b)](_0xf100cb['items']))return _0xf100cb[_0x460326(0x8e)];throw CliErrors[_0x460326(0x98)](_0x460326(0x93),_0x460326(0x91));}function a177_0x95c3(){const _0x43f0f0=['data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','length','2043858WAvNTE','isSafeInteger','7454006BfvSHB','data\x20update\x20can\x20update\x20at\x20most\x20','map','67026eHHBVi','Invalid\x20JSON\x20for\x20--params:\x20','join','id[','data\x20update\x20--params.','number','isArray','2098530rlsAMa','object','items','10MjGzBw','571856yLKHhM','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','1668060MQwgmh','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','string','8sOKVmG','593025pPzuBq','\x20records\x20per\x20call;\x20received\x20','validation','44KQQsqE','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.'];a177_0x95c3=function(){return _0x43f0f0;};return a177_0x95c3();}function a177_0x35b4(_0x18766c,_0x2ba8fe){_0x18766c=_0x18766c-0x7b;const _0x95c30a=a177_0x95c3();let _0x35b46b=_0x95c30a[_0x18766c];return _0x35b46b;}function parseDataUpdateId(_0x44894e,_0xd86869){const _0xb6b04a=a177_0x35b4;if(typeof _0x44894e===_0xb6b04a(0x8a)&&Number[_0xb6b04a(0x81)](_0x44894e)&&_0x44894e>0x0)return _0x44894e;if(typeof _0x44894e===_0xb6b04a(0x94)){if(/^[1-9]\d*$/['test'](_0x44894e))return _0x44894e;}throw CliErrors[_0xb6b04a(0x98)](_0xb6b04a(0x89)+_0xd86869+_0xb6b04a(0x7e));}export function parseUpdateIdsFromParams(_0x1798cb){const _0x474009=a177_0x35b4;if(_0x1798cb===null||_0x1798cb===undefined||typeof _0x1798cb!==_0x474009(0x8d)||Array[_0x474009(0x8b)](_0x1798cb))throw CliErrors[_0x474009(0x98)](_0x474009(0x7b),'Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27');const _0x3d666b=_0x1798cb['id'];if(_0x3d666b===undefined||_0x3d666b===null)throw CliErrors[_0x474009(0x98)](_0x474009(0x7c),'Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27');const _0x478be7=Array[_0x474009(0x8b)](_0x3d666b)?_0x3d666b:[_0x3d666b];if(_0x478be7[_0x474009(0x7f)]===0x0)throw CliErrors[_0x474009(0x98)](_0x474009(0x7d));if(_0x478be7[_0x474009(0x7f)]>MAX_DATA_UPDATE_IDS)throw CliErrors['validation'](_0x474009(0x83)+MAX_DATA_UPDATE_IDS+_0x474009(0x97)+_0x478be7['length']+'.');return _0x478be7[_0x474009(0x84)]((_0x54a0f4,_0x9a900d)=>parseDataUpdateId(_0x54a0f4,Array[_0x474009(0x8b)](_0x3d666b)?_0x474009(0x88)+_0x9a900d+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x4baf9e,_0x5d2fce){const _0x1f1742=a177_0x35b4;if(Array[_0x1f1742(0x8b)](_0x4baf9e['id'])&&_0x5d2fce[_0x1f1742(0x7f)]>0x1)return{..._0x4baf9e,'id':_0x5d2fce[_0x1f1742(0x87)](',')};return _0x4baf9e;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xffac2c,_0x795b7c){const _0x198bfe=a178_0x3eda,_0x519118=_0xffac2c();while(!![]){try{const _0x3147c9=parseInt(_0x198bfe(0x9f))/0x1+parseInt(_0x198bfe(0xa3))/0x2+parseInt(_0x198bfe(0xa1))/0x3+-parseInt(_0x198bfe(0xa7))/0x4*(parseInt(_0x198bfe(0xa0))/0x5)+parseInt(_0x198bfe(0xa8))/0x6*(parseInt(_0x198bfe(0xa4))/0x7)+parseInt(_0x198bfe(0xa5))/0x8+-parseInt(_0x198bfe(0xa9))/0x9;if(_0x3147c9===_0x795b7c)break;else _0x519118['push'](_0x519118['shift']());}catch(_0xc1d4d2){_0x519118['push'](_0x519118['shift']());}}}(a178_0x49dc,0x82823));function a178_0x49dc(){const _0x197668=['5299tBuUOF','1436408lDIOXf','test','15236hhMmJG','7392CjdcRn','17015697sIwZdm','isSafeInteger','772390SJnMAG','685CgMXiC','404604QhKfLi','number','1855192QDszPp'];a178_0x49dc=function(){return _0x197668;};return a178_0x49dc();}function a178_0x3eda(_0x51c674,_0x570284){_0x51c674=_0x51c674-0x9f;const _0x49dc7b=a178_0x49dc();let _0x3edae9=_0x49dc7b[_0x51c674];return _0x3edae9;}export function normalizePositiveSafeInteger(_0x40074a){const _0x2435a9=a178_0x3eda;if(typeof _0x40074a===_0x2435a9(0xa2))return Number[_0x2435a9(0xaa)](_0x40074a)&&_0x40074a>0x0?_0x40074a:undefined;if(typeof _0x40074a!=='string'||!/^\d+$/[_0x2435a9(0xa6)](_0x40074a))return undefined;const _0x243099=Number(_0x40074a);return Number[_0x2435a9(0xaa)](_0x243099)&&_0x243099>0x0?_0x243099:undefined;}
|
package/lib/utils/redaction.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a179_0x2bb407=a179_0x3547;(function(_0x391aec,_0x879b6c){const _0x7c1a6=a179_0x3547,_0x41d597=_0x391aec();while(!![]){try{const _0x1a8fbf=-parseInt(_0x7c1a6(0x121))/0x1+-parseInt(_0x7c1a6(0x124))/0x2+-parseInt(_0x7c1a6(0x127))/0x3+-parseInt(_0x7c1a6(0x12b))/0x4*(parseInt(_0x7c1a6(0x123))/0x5)+parseInt(_0x7c1a6(0x11f))/0x6*(-parseInt(_0x7c1a6(0x120))/0x7)+-parseInt(_0x7c1a6(0x131))/0x8+parseInt(_0x7c1a6(0x12f))/0x9;if(_0x1a8fbf===_0x879b6c)break;else _0x41d597['push'](_0x41d597['shift']());}catch(_0x347562){_0x41d597['push'](_0x41d597['shift']());}}}(a179_0x4ae6,0xa3d2b));function a179_0x3547(_0x587284,_0x50dc58){_0x587284=_0x587284-0x11e;const _0x4ae63a=a179_0x4ae6();let _0x3547fb=_0x4ae63a[_0x587284];return _0x3547fb;}const REDACTED_VALUE=a179_0x2bb407(0x134),SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set(['comment',a179_0x2bb407(0x126)]),SENSITIVE_VALUE_KEYS=new Set([a179_0x2bb407(0x12c)]);export function isSensitiveKey(_0x19eb2e){const _0x1f070a=a179_0x2bb407,_0x466787=_0x19eb2e[_0x1f070a(0x12a)](/_/g,'-')[_0x1f070a(0x12e)]();return SENSITIVE_KEY_PATTERN[_0x1f070a(0x11e)](_0x466787);}function a179_0x4ae6(){const _0x275198=['variables','3073359zlqlCY','push','has','replace','44DHsByu','comment','object','toLowerCase','32269059COChjf','match','2591376MwpLiJ','isArray','fromEntries','[REDACTED]','test','90ifqWwr','14553ssTCCe','312679SpQoAF','map','205035uShZlb','1542232UuaXXm','entries'];a179_0x4ae6=function(){return _0x275198;};return a179_0x4ae6();}export function isSensitiveFlagName(_0x5eb72b){const _0x2f9223=a179_0x2bb407,_0x25537d=_0x5eb72b[_0x2f9223(0x12a)](/_/g,'-')['toLowerCase']();return isSensitiveKey(_0x25537d)||SENSITIVE_FLAG_NAMES[_0x2f9223(0x129)](_0x25537d);}function redactVariableValues(_0x43f351){const _0xcaa706=a179_0x2bb407;if(Array[_0xcaa706(0x132)](_0x43f351))return _0x43f351[_0xcaa706(0x122)](_0x52f628=>redactVariableValues(_0x52f628));if(_0x43f351&&typeof _0x43f351==='object')return Object[_0xcaa706(0x133)](Object[_0xcaa706(0x125)](_0x43f351)[_0xcaa706(0x122)](([_0xb68744,_0x578ab9])=>[_0xb68744,redactVariableValues(_0x578ab9)]));return REDACTED_VALUE;}export function redactSensitiveValue(_0x44e450){const _0x4b3c69=a179_0x2bb407;if(Array[_0x4b3c69(0x132)](_0x44e450))return _0x44e450[_0x4b3c69(0x122)](_0x56fa8e=>redactSensitiveValue(_0x56fa8e));if(!_0x44e450||typeof _0x44e450!==_0x4b3c69(0x12d))return _0x44e450;const _0x5e1623={};for(const [_0x19fe2f,_0xa65fe3]of Object[_0x4b3c69(0x125)](_0x44e450)){const _0x45b17f=_0x19fe2f['replace'](/_/g,'-')[_0x4b3c69(0x12e)]();_0x5e1623[_0x19fe2f]=_0x45b17f===_0x4b3c69(0x126)?redactVariableValues(_0xa65fe3):SENSITIVE_VALUE_KEYS['has'](_0x45b17f)||isSensitiveKey(_0x19fe2f)?REDACTED_VALUE:redactSensitiveValue(_0xa65fe3);}return _0x5e1623;}export function redactCommandArgv(_0x4efb84){const _0x329a56=a179_0x2bb407,_0xd60681=[];let _0x1c9ee5=![];for(const _0x259fba of _0x4efb84){if(_0x1c9ee5){_0xd60681[_0x329a56(0x128)](REDACTED_VALUE),_0x1c9ee5=![];continue;}const _0x86b26b=_0x259fba[_0x329a56(0x130)](/^--([^=]+)(?:=(.*))?$/);if(!_0x86b26b||!isSensitiveFlagName(_0x86b26b[0x1]??'')){_0xd60681['push'](_0x259fba);continue;}_0xd60681[_0x329a56(0x128)]('--'+_0x86b26b[0x1]+(_0x86b26b[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x86b26b[0x2]===undefined&&(_0x1c9ee5=!![]);}return _0xd60681;}export{REDACTED_VALUE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a180_0x5881(){const _0x274ffa=['5979580RWhcLW','66bQfpGV','string','replace','21UkGlye','177537ixDfov','1490823jRqyyN','557352XKfcWi','number','1878FrDigb','3417080QbKvEK','isSafeInteger','test','1975524vJPjpu'];a180_0x5881=function(){return _0x274ffa;};return a180_0x5881();}(function(_0x376cfc,_0x2e9189){const _0x3d9677=a180_0x7e55,_0xb3fc5d=_0x376cfc();while(!![]){try{const _0x5235ec=parseInt(_0x3d9677(0xf3))/0x1*(-parseInt(_0x3d9677(0xed))/0x2)+parseInt(_0x3d9677(0xf7))/0x3+parseInt(_0x3d9677(0xee))/0x4+-parseInt(_0x3d9677(0xf2))/0x5+-parseInt(_0x3d9677(0xf1))/0x6*(-parseInt(_0x3d9677(0xf6))/0x7)+-parseInt(_0x3d9677(0xf9))/0x8+parseInt(_0x3d9677(0xf8))/0x9;if(_0x5235ec===_0x2e9189)break;else _0xb3fc5d['push'](_0xb3fc5d['shift']());}catch(_0x4eb0ba){_0xb3fc5d['push'](_0xb3fc5d['shift']());}}}(a180_0x5881,0xb47e3));function a180_0x7e55(_0x37dfcb,_0x2bf349){_0x37dfcb=_0x37dfcb-0xed;const _0x5881b1=a180_0x5881();let _0x7e5571=_0x5881b1[_0x37dfcb];return _0x7e5571;}export function normalizeRuntimeUserId(_0x157a7f){const _0x58da02=a180_0x7e55;if(typeof _0x157a7f===_0x58da02(0xfa))return Number[_0x58da02(0xef)](_0x157a7f)&&_0x157a7f>0x0?String(_0x157a7f):undefined;if(typeof _0x157a7f!==_0x58da02(0xf4)||!/^\d+$/[_0x58da02(0xf0)](_0x157a7f))return undefined;const _0x536064=_0x157a7f[_0x58da02(0xf5)](/^0+/,'');return _0x536064||undefined;}
|