@lovrabet/lovrabet-cli 2.3.4-beta.1 → 2.3.4-beta.2
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/README.md +8 -6
- 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.d.ts +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.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.d.ts +2 -2
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.d.ts +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.d.ts +4 -0
- 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.d.ts +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-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.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.d.ts +12 -3
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.d.ts +2 -2
- 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/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.d.ts +5 -0
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +2 -2
- package/skills/lovrabet/guides/troubleshooting.md +1 -1
- package/skills/lovrabet/references/lovrabet-config-commands.md +8 -7
- package/skills/lovrabet/references/lovrabet-config.md +3 -2
- package/skills/lovrabet/references/lovrabet-doctor.md +1 -1
- package/skills/lovrabet/references/lovrabet-kb-workflow.md +8 -6
- package/skills/lovrabet/references/lovrabet-service-tree.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1bd3cc,_0x2f091f){const _0xdbe5dd=a146_0xb133,_0x1a95db=_0x1bd3cc();while(!![]){try{const _0x2cd685=parseInt(_0xdbe5dd(0x19a))/0x1*(-parseInt(_0xdbe5dd(0x193))/0x2)+-parseInt(_0xdbe5dd(0x184))/0x3*(-parseInt(_0xdbe5dd(0x175))/0x4)+-parseInt(_0xdbe5dd(0x17c))/0x5+parseInt(_0xdbe5dd(0x183))/0x6+-parseInt(_0xdbe5dd(0x192))/0x7+-parseInt(_0xdbe5dd(0x181))/0x8*(parseInt(_0xdbe5dd(0x18d))/0x9)+parseInt(_0xdbe5dd(0x185))/0xa*(parseInt(_0xdbe5dd(0x180))/0xb);if(_0x2cd685===_0x2f091f)break;else _0x1a95db['push'](_0x1a95db['shift']());}catch(_0x2de256){_0x1a95db['push'](_0x1a95db['shift']());}}}(a146_0x1a99,0xb9352));import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';function a146_0xb133(_0x5cded3,_0x33734e){_0x5cded3=_0x5cded3-0x174;const _0x1a998f=a146_0x1a99();let _0xb13395=_0x1a998f[_0x5cded3];return _0xb13395;}function a146_0x1a99(){const _0x374d6d=['string','length','description','3133805aHHLeP','skillCode','zipSha256','zipSize','11BHQnuN','2706680gGtSMe','tags','1723728tOOqwr','624465XQVkya','28109570CgKAJL','isArray','userId','example','trim','fromEntries','Invalid\x20','Runtime\x20Skill\x20is\x20missing\x20skillCode.','9iIUnvi','sourceSessionId','readonly','personal','skillName','2501562LVcoWc','82zeCUSC','hasUpstreamUpdate','toISOString','status','validation','utf8','map','34963QNIBNE','object','tenantCode','8UbwUnq','files','path','ossPath'];a146_0x1a99=function(){return _0x374d6d;};return a146_0x1a99();}import{fileContent,normalizeLocalFiles}from'./local-files.js';import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x504469,_0x3e00d4,_0x43d258,_0x31ad59,_0x3b4867,_0x836c2c,_0x4aa603){const _0x512c9b=a146_0xb133,_0x1f1718=_0x836c2c?normalizeLocalFiles(_0x836c2c):[],_0x54aee4=!_0x4aa603&&_0x1f1718[_0x512c9b(0x17a)]>0x0?buildSkillPackage(_0x1f1718):undefined,_0x4ac61b=_0x4aa603?bufferSha256(_0x4aa603):_0x54aee4?.['manifest'][_0x512c9b(0x17e)],_0x5988a9=_0x4aa603?.[_0x512c9b(0x17a)]??_0x54aee4?.['manifest'][_0x512c9b(0x17f)],_0x2eb669=_0x1f1718[_0x512c9b(0x17a)]>0x0?Object[_0x512c9b(0x18a)](_0x1f1718[_0x512c9b(0x199)](_0xaae737=>[_0xaae737['path'],fileHash(_0xaae737)])):undefined;return{'schemaVersion':_0x1f1718[_0x512c9b(0x17a)]>0x0?0x2:0x1,'id':_0x504469['id'],'appCode':_0x43d258,'skillCode':requireSkillCode(_0x504469),'skillName':_0x504469[_0x512c9b(0x191)],'description':_0x504469[_0x512c9b(0x17b)],'example':_0x504469[_0x512c9b(0x188)],'scope':_0x3e00d4,'readonly':_0x3e00d4!==_0x512c9b(0x190)||_0x504469[_0x512c9b(0x18f)]===!![],'tenantCode':_0x504469[_0x512c9b(0x174)],'userId':_0x504469[_0x512c9b(0x187)],'version':_0x504469['version'],'status':_0x504469[_0x512c9b(0x196)],'tags':Array[_0x512c9b(0x186)](_0x504469['tags'])?_0x504469[_0x512c9b(0x182)]:[],'hasUpstreamUpdate':_0x504469[_0x512c9b(0x194)],'forkedFromSkillId':_0x504469['forkedFromSkillId'],'forkedFromVersion':_0x504469['forkedFromVersion'],'sourceSessionId':_0x504469[_0x512c9b(0x18e)],'contentHash':_0x31ad59,'fileHashes':_0x2eb669,'treeHash':_0x1f1718[_0x512c9b(0x17a)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x1f1718)):undefined,'ossPath':remoteManifestOssPath(_0x504469[_0x512c9b(0x176)]),'zipSha256':_0x4ac61b,'zipSize':_0x5988a9,'files':_0x1f1718[_0x512c9b(0x17a)]>0x0?_0x1f1718[_0x512c9b(0x199)](_0x4a7102=>({'path':_0x4a7102[_0x512c9b(0x177)],'hash':fileHash(_0x4a7102),'size':fileContent(_0x4a7102)[_0x512c9b(0x17a)]})):undefined,'pulledAt':_0x3b4867??new Date()[_0x512c9b(0x195)]()};}export function requireSkillCode(_0x7c6f7){const _0x24df32=a146_0xb133,_0x43134d=_0x7c6f7[_0x24df32(0x17d)]?.['trim']();if(!_0x43134d)throw CliErrors[_0x24df32(0x197)](_0x24df32(0x18c));return _0x43134d;}export function readMetadataIfPresent(_0x34011e){const _0x1a956e=a146_0xb133;if(!existsSync(_0x34011e))return undefined;try{const _0x1b7c0c=JSON['parse'](readFileSync(_0x34011e,_0x1a956e(0x198)));return _0x1b7c0c;}catch{throw CliErrors['validation'](_0x1a956e(0x18b)+METADATA_FILE+':\x20'+_0x34011e);}}function remoteManifestOssPath(_0x7a9ac1){const _0x554bcc=a146_0xb133;if(!_0x7a9ac1||typeof _0x7a9ac1!==_0x554bcc(0x19b)||Array['isArray'](_0x7a9ac1))return undefined;const _0x1b75ab=_0x7a9ac1[_0x554bcc(0x178)];return typeof _0x1b75ab===_0x554bcc(0x179)&&_0x1b75ab[_0x554bcc(0x189)]()?_0x1b75ab[_0x554bcc(0x189)]():undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a147_0x4c360c=a147_0x1988;(function(_0x1d5489,_0x130faa){const _0x5a1029=a147_0x1988,_0x239e37=_0x1d5489();while(!![]){try{const _0x4a83d9=parseInt(_0x5a1029(0x122))/0x1+-parseInt(_0x5a1029(0x117))/0x2+parseInt(_0x5a1029(0x119))/0x3*(-parseInt(_0x5a1029(0x108))/0x4)+-parseInt(_0x5a1029(0x114))/0x5+parseInt(_0x5a1029(0x10d))/0x6*(-parseInt(_0x5a1029(0x107))/0x7)+-parseInt(_0x5a1029(0x11d))/0x8+-parseInt(_0x5a1029(0x11e))/0x9*(-parseInt(_0x5a1029(0x109))/0xa);if(_0x4a83d9===_0x130faa)break;else _0x239e37['push'](_0x239e37['shift']());}catch(_0x3cae80){_0x239e37['push'](_0x239e37['shift']());}}}(a147_0x5d89,0x6efa5));function a147_0x5d89(){const _0x83d680=['.workbuddy','1601715wAJIpq','skills','homeDirName','512172cDaBDp','path\x20segment','3PrRwgK','includes','filter','.claude','1670680ZzOdnF','1056105rApdiL','homeDir','.agents','cacheRoot','877211ZgicGs','validation','333361tLouKG','1175316MGTZrI','60TKsnow','workbuddySkillsDir','skillCode','CLAUDE_SKILL_ROOT','6VpomQO','claudeSkillsDir','cache','agentsSkillsDir','Unsafe\x20','appCode'];a147_0x5d89=function(){return _0x83d680;};return a147_0x5d89();}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(_0x193e07={}){const _0x3fe8c0=a147_0x1988,_0x2a4c92=_0x193e07[_0x3fe8c0(0x11f)]??homedir(),_0x2a2325=resolve(_0x2a4c92,PRODUCT_CONFIG['homeDirName'],_0x3fe8c0(0x10f)),_0x5c3388=trimmedEnv('SKILL_ROOT'),_0xe19b40=trimmedEnv(_0x3fe8c0(0x10c)),_0x29797a=resolve(_0x2a4c92,_0x3fe8c0(0x113)),_0x19762c=_0x193e07[_0x3fe8c0(0x10a)]??(existsSync(_0x29797a)?resolve(_0x29797a,_0x3fe8c0(0x115)):undefined);return{'homeDir':_0x2a4c92,'cacheRoot':_0x2a2325,'managedRoot':resolve(_0x2a4c92,PRODUCT_CONFIG[_0x3fe8c0(0x116)]),'agentsSkillsDir':_0x193e07[_0x3fe8c0(0x110)]??_0x5c3388??resolve(_0x2a4c92,_0x3fe8c0(0x120),'skills'),'claudeSkillsDir':_0x193e07['claudeSkillsDir']??_0xe19b40??resolve(_0x2a4c92,_0x3fe8c0(0x11c),_0x3fe8c0(0x115)),'workbuddySkillsDir':_0x19762c};}function a147_0x1988(_0x517af2,_0x332708){_0x517af2=_0x517af2-0x106;const _0x5d89f2=a147_0x5d89();let _0x198889=_0x5d89f2[_0x517af2];return _0x198889;}export function runtimeAgentSkillRoots(_0x236349){const _0x25b672=a147_0x1988;return[_0x236349[_0x25b672(0x110)],_0x236349[_0x25b672(0x10e)],_0x236349[_0x25b672(0x10a)]][_0x25b672(0x11b)](_0xf3130f=>Boolean(_0xf3130f));}export function getRuntimeSkillCacheRoot(_0x222baf,_0x15ca1e,_0x16cef5={}){const _0xedc8fd=a147_0x1988,_0x416b47=resolveSkillSyncPaths(_0x16cef5);return resolve(_0x416b47[_0xedc8fd(0x121)],_0x222baf,fingerprintAccessKey(_0x15ca1e),_0xedc8fd(0x115));}export function getRuntimeSkillDir(_0xfc1eee,_0x498be4,_0x39fd58,_0x2e1ed9,_0x15ab0a,_0x192301={}){const _0x1a1785=a147_0x1988;return resolve(getRuntimeSkillCacheRoot(_0xfc1eee,_0x498be4,_0x192301),safePathSegment(_0x39fd58,_0x1a1785(0x112)),_0x2e1ed9,safePathSegment(_0x15ab0a,_0x1a1785(0x10b)));}export function safePathSegment(_0x972ec4,_0x1e6329=a147_0x4c360c(0x118)){const _0x90164=a147_0x4c360c;if(!_0x972ec4||_0x972ec4[_0x90164(0x11a)]('/')||_0x972ec4[_0x90164(0x11a)]('\x5c')||_0x972ec4[_0x90164(0x11a)]('..'))throw CliErrors[_0x90164(0x106)](_0x90164(0x111)+_0x1e6329+'\x20for\x20local\x20path:\x20'+_0x972ec4);return _0x972ec4;}function trimmedEnv(_0x4064f1){const _0x4b2e5e=productEnv(_0x4064f1)?.['trim']();return _0x4b2e5e?_0x4b2e5e:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x115a9c,_0x2a7be1){const _0x4e975d=a148_0x118c,_0x295ef4=_0x115a9c();while(!![]){try{const _0x58053c=parseInt(_0x4e975d(0x102))/0x1+-parseInt(_0x4e975d(0xff))/0x2+-parseInt(_0x4e975d(0x11f))/0x3*(-parseInt(_0x4e975d(0x135))/0x4)+parseInt(_0x4e975d(0x13f))/0x5+-parseInt(_0x4e975d(0x120))/0x6*(-parseInt(_0x4e975d(0x126))/0x7)+parseInt(_0x4e975d(0x122))/0x8*(parseInt(_0x4e975d(0x13d))/0x9)+parseInt(_0x4e975d(0x13b))/0xa*(-parseInt(_0x4e975d(0x128))/0xb);if(_0x58053c===_0x2a7be1)break;else _0x295ef4['push'](_0x295ef4['shift']());}catch(_0x4fa90d){_0x295ef4['push'](_0x295ef4['shift']());}}}(a148_0x29c3,0x3e8fd));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a148_0x46d59d}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(_0x4cf804,_0x516acf,_0x1ea4ea={}){const _0x26bf5f=a148_0x118c,_0x344fb4=resolvePushDirectoryRoot(_0x4cf804),_0x11e77a=readPushMetadataIfPresent(resolve(_0x344fb4,METADATA_FILE),{'ignoreInvalidMetadata':_0x1ea4ea['ignoreInvalidMetadata']});if(_0x11e77a?.[_0x26bf5f(0x101)]&&_0x11e77a[_0x26bf5f(0x101)]!==_0x516acf&&!_0x1ea4ea['allowAppCodeRetarget']&&!_0x1ea4ea[_0x26bf5f(0x116)])throw CliErrors[_0x26bf5f(0x132)](_0x26bf5f(0x140)+_0x11e77a[_0x26bf5f(0x101)]+_0x26bf5f(0x103)+_0x516acf+'\x22.');const _0x49c8c9=resolvePushSkillCode(_0x344fb4,_0x516acf,_0x11e77a,_0x1ea4ea);if(!_0x49c8c9)throw CliErrors[_0x26bf5f(0x132)](_0x26bf5f(0x136)+SKILL_FILE+',\x20'+METADATA_FILE+_0x26bf5f(0x10f));return{'dir':_0x344fb4,'skillCode':_0x49c8c9,'metadata':_0x11e77a};}export function readPushDirectory(_0x45a80a,_0x120d2b,_0x1c079b={}){const _0x563628=a148_0x118c,_0x4d2bff=resolvePushDirectoryIdentity(_0x45a80a,_0x120d2b,_0x1c079b),_0xa39486=_0x4d2bff[_0x563628(0x13a)],_0x32e6bc=resolve(_0xa39486,SKILL_FILE);if(!existsSync(_0x32e6bc)||!lstatSync(_0x32e6bc)[_0x563628(0x12a)]())throw CliErrors['validation'](_0x563628(0x10d)+SKILL_FILE+':\x20'+_0x32e6bc);const _0x5224bd=_0x4d2bff['metadata'],_0x3825a7=_0x1c079b[_0x563628(0x11e)]??_0x563628(0x12c);if(!_0x1c079b[_0x563628(0x105)]&&_0x5224bd?.[_0x563628(0x104)]==='builtin')throw CliErrors['validation'](_0x563628(0x121)+METADATA_FILE+_0x563628(0x137)+_0x5224bd[_0x563628(0x104)]+'\x22.');if(!_0x1c079b[_0x563628(0x105)]&&_0x3825a7===_0x563628(0x12c)&&_0x5224bd?.[_0x563628(0x104)]&&_0x5224bd[_0x563628(0x104)]!==_0x563628(0x12c))throw CliErrors[_0x563628(0x132)](_0x563628(0x118)+METADATA_FILE+_0x563628(0x137)+_0x5224bd[_0x563628(0x104)]+'\x22.',_0x563628(0x10a)+_0xa39486+_0x563628(0x115));const _0x4b6a30=scanSkillDirectory(_0xa39486,{'excludedFilePaths':_0x1c079b[_0x563628(0x134)]}),_0x47aa24=buildSkillPackage(_0x4b6a30),_0x4bc213=readFileSync(_0x32e6bc,_0x563628(0x127)),_0x2b9bbd=_0x4d2bff[_0x563628(0x109)],_0x49c385=_0x1c079b[_0x563628(0x10e)]?undefined:_0x5224bd,_0x2e678e=readSkillDisplayName(_0x4bc213);return{'skillCode':_0x2b9bbd,'metadata':_0x5224bd,'frontmatterDisplayName':_0x2e678e,'input':{'skillCode':_0x2b9bbd,'skillName':_0x2e678e??_0x49c385?.[_0x563628(0x114)],'description':_0x49c385?.[_0x563628(0x138)],'content':_0x4bc213,'files':_0x47aa24[_0x563628(0x123)],'packageBase64':_0x47aa24[_0x563628(0x110)],'tags':_0x49c385?.['tags'],'version':_0x49c385?.[_0x563628(0x139)],'sourceSessionId':_0x49c385?.[_0x563628(0xfe)]}};}export function refreshPushDirectoryMetadataFromRemote(_0xd3e3dd,_0x443060,_0x49b090,_0x201a85={}){const _0x2f5abe=a148_0x118c,_0x3206af=resolvePushDirectoryRoot(_0xd3e3dd),_0xd83caa=readPushMetadataIfPresent(resolve(_0x3206af,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0xe3116c=requireRemoteScope(_0x443060),_0x1c2a96=readLocalSkillContent(_0x3206af),_0x525cd9={..._0x443060,'appCode':_0x443060[_0x2f5abe(0x101)]??_0x49b090,'skillName':_0x443060['skillName']??_0xd83caa?.[_0x2f5abe(0x114)],'description':_0x443060[_0x2f5abe(0x138)]??_0xd83caa?.[_0x2f5abe(0x138)],'example':_0x443060[_0x2f5abe(0x12d)]??_0xd83caa?.['example'],'tags':Array[_0x2f5abe(0x100)](_0x443060[_0x2f5abe(0x133)])?_0x443060['tags']:_0xd83caa?.[_0x2f5abe(0x133)],'sourceSessionId':_0x443060[_0x2f5abe(0xfe)]??_0xd83caa?.[_0x2f5abe(0xfe)],'content':_0x443060[_0x2f5abe(0x13e)]??_0x1c2a96},_0x30c9f3=buildMetadata(_0x525cd9,_0xe3116c,_0x49b090,contentHash(_0x1c2a96),_0x201a85[_0x2f5abe(0x11c)]);writeJsonAtomic(resolve(_0x3206af,METADATA_FILE),_0x30c9f3);}export function recordPushedRuntimeSkill(_0x8a0fa0,_0x369070,_0x269ffd,_0x4dd280={}){const _0x57d0ed=a148_0x118c,_0x1d48d3=resolvePushDirectoryRoot(_0x8a0fa0),_0x1d0aef=scanSkillDirectory(_0x1d48d3),_0xedd510=_0x1d0aef[_0x57d0ed(0xfd)](_0x1c261c=>_0x1c261c[_0x57d0ed(0x112)]===SKILL_FILE),_0x1b6d7f=_0xedd510?fileText(_0xedd510):'',_0x407393=tryNormalizePackageManifest(_0x369070[_0x57d0ed(0x124)]),_0x28f230={..._0x369070,'content':_0x369070[_0x57d0ed(0x13e)]??_0x1b6d7f,'files':_0x407393},_0x3cc1fe=_0x407393?normalizeLocalFiles(_0x1d0aef)['filter'](_0x25c53e=>_0x407393[_0x57d0ed(0x124)][_0x57d0ed(0x12b)](_0x34963b=>_0x34963b[_0x57d0ed(0x112)]===_0x25c53e['path'])):undefined,_0x1c2861=buildMetadata(_0x28f230,_0x4dd280[_0x57d0ed(0x104)]??'personal',_0x269ffd,contentHash(_0x28f230['content']??''),_0x4dd280[_0x57d0ed(0x12e)],_0x3cc1fe);writeJsonAtomic(resolve(_0x1d48d3,METADATA_FILE),_0x1c2861);}export function deriveSkillCodeFromDirectory(_0x4ef033,_0x3ad58c){const _0xfd7a27=a148_0x118c,_0x3b29cb=basename(resolve(_0x4ef033)),_0x50af08=_0x3ad58c+'--';return _0x3b29cb['startsWith'](_0x50af08)?_0x3b29cb[_0xfd7a27(0x12f)](_0x50af08[_0xfd7a27(0x125)]):_0x3b29cb;}function resolvePushSkillCode(_0x121ae1,_0x18eeb2,_0x3ddfd1,_0x718694){const _0x861ce1=a148_0x118c,_0x2ae9b7=deriveSkillCodeFromSkillFile(_0x121ae1)||deriveSkillCodeFromDirectory(_0x121ae1,_0x18eeb2);if(_0x718694['ignoreMetadataSkillCode'])return _0x2ae9b7;return _0x3ddfd1?.['skillCode']?.[_0x861ce1(0x11a)]()||_0x2ae9b7;}function a148_0x29c3(){const _0x2cf81d=['\x20has\x20unsupported\x20scope\x20\x22','name','validation','tags','excludedFilePaths','20VGAVIS','Unable\x20to\x20resolve\x20skillCode\x20from\x20','\x20has\x20scope=\x22','description','version','dir','10uFOXeR','displayName','9taJEzX','content','567165xczYEJ','Skill\x20metadata\x20appCode\x20\x22','find','sourceSessionId','716218LXZQIt','isArray','appCode','99336DWvGYD','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','scope','ignoreMetadataScope','replace','isDirectory','(unknown)','skillCode','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','builtin','isSymbolicLink','Missing\x20','ignoreMetadataForPayload',',\x20or\x20directory\x20name.','packageBase64','\x20name\x20for\x20SkillHub\x20slug\x20generation.','path','string','skillName','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','ignoreMetadataAppCodeMismatch','Skill\x20directory\x20not\x20found:\x20','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','match','trim','toLowerCase','refreshedAt','ignoreInvalidMetadata','targetScope','268602peqCuO','120UIeMIp','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','3443816HQwsWO','manifest','files','length','777rHokOW','utf8','5266514MdcykP','object','isFile','some','personal','example','pushedAt','slice'];a148_0x29c3=function(){return _0x2cf81d;};return a148_0x29c3();}function deriveSkillCodeFromSkillFile(_0x24f528){const _0x24d851=a148_0x118c,_0x118687=resolve(_0x24f528,SKILL_FILE);if(!existsSync(_0x118687)||!lstatSync(_0x118687)['isFile']())return undefined;const _0x4be27f=readFileSync(_0x118687,'utf8'),_0x122fda=_0x4be27f[_0x24d851(0x119)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x122fda)return undefined;const _0x559bda=parseFrontmatterObject(_0x122fda[0x1]??''),_0x2d886e=scalarToString(_0x559bda?.[_0x24d851(0x131)]);return _0x2d886e?slugifySkillName(_0x2d886e):undefined;}function readSkillDisplayName(_0x45ca82){const _0xb01a05=a148_0x118c,_0x648b5a=_0x45ca82[_0xb01a05(0x119)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x648b5a)return undefined;const _0x1266fd=parseFrontmatterObject(_0x648b5a[0x1]??'');return scalarToString(_0x1266fd?.[_0xb01a05(0x13c)]);}function slugifySkillName(_0x1a83b9){const _0xa9d4a=a148_0x118c,_0xbd5f9e=_0x1a83b9[_0xa9d4a(0x11a)]()[_0xa9d4a(0x11b)]()[_0xa9d4a(0x106)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0xa9d4a(0x106)](/^-+/,'')['replace'](/-+$/,'')['replace'](/-{2,}/g,'-');if(!_0xbd5f9e)throw CliErrors[_0xa9d4a(0x132)]('Invalid\x20'+SKILL_FILE+_0xa9d4a(0x111));return _0xbd5f9e;}function parseFrontmatterObject(_0x17ee8d){const _0x22b857=a148_0x118c;try{const _0x22e841=a148_0x46d59d(_0x17ee8d);return _0x22e841&&typeof _0x22e841===_0x22b857(0x129)&&!Array[_0x22b857(0x100)](_0x22e841)?_0x22e841:undefined;}catch{return undefined;}}function scalarToString(_0x55f4cf){const _0x861b95=a148_0x118c;if(typeof _0x55f4cf===_0x861b95(0x113))return _0x55f4cf[_0x861b95(0x11a)]();if(typeof _0x55f4cf==='number'||typeof _0x55f4cf==='boolean')return String(_0x55f4cf);return undefined;}function resolvePushDirectoryRoot(_0x15ad94){const _0x53b89b=a148_0x118c,_0x18493d=resolve(_0x15ad94);if(!existsSync(_0x18493d))throw CliErrors[_0x53b89b(0x132)](_0x53b89b(0x117)+_0x15ad94);const _0x5c7915=lstatSync(_0x18493d);if(_0x5c7915[_0x53b89b(0x107)]())return _0x18493d;if(_0x5c7915[_0x53b89b(0x10c)]()){const _0x19204=realpathSync(_0x18493d);if(lstatSync(_0x19204)[_0x53b89b(0x107)]())return _0x19204;}throw CliErrors[_0x53b89b(0x132)](_0x53b89b(0x117)+_0x15ad94);}function requireRemoteScope(_0x25637e){const _0x4000df=a148_0x118c;if(_0x25637e[_0x4000df(0x104)]===_0x4000df(0x12c)||_0x25637e[_0x4000df(0x104)]==='company'||_0x25637e[_0x4000df(0x104)]===_0x4000df(0x10b))return _0x25637e[_0x4000df(0x104)];throw CliErrors[_0x4000df(0x132)]('Remote\x20Skill\x20'+(_0x25637e[_0x4000df(0x109)]||_0x4000df(0x108))+_0x4000df(0x130)+(_0x25637e[_0x4000df(0x104)]??'unknown')+'\x22.');}function a148_0x118c(_0x65e665,_0xaedb56){_0x65e665=_0x65e665-0xfd;const _0x29c391=a148_0x29c3();let _0x118c66=_0x29c391[_0x65e665];return _0x118c66;}function readLocalSkillContent(_0x4cc313){const _0x2c6acf=a148_0x118c,_0x5e592e=resolve(_0x4cc313,SKILL_FILE);return existsSync(_0x5e592e)&&lstatSync(_0x5e592e)[_0x2c6acf(0x12a)]()?readFileSync(_0x5e592e,_0x2c6acf(0x127)):'';}function readPushMetadataIfPresent(_0x3cc482,_0x4512ff={}){const _0x580fc4=a148_0x118c;try{return readMetadataIfPresent(_0x3cc482);}catch(_0x224480){if(_0x4512ff[_0x580fc4(0x11d)])return undefined;throw _0x224480;}}
|
|
1
|
+
(function(_0x3f2c6f,_0x28eef6){const _0x37a080=a148_0x1ebb,_0x25e738=_0x3f2c6f();while(!![]){try{const _0x292265=-parseInt(_0x37a080(0x1b3))/0x1*(-parseInt(_0x37a080(0x1c3))/0x2)+parseInt(_0x37a080(0x1be))/0x3*(parseInt(_0x37a080(0x1ab))/0x4)+-parseInt(_0x37a080(0x1e2))/0x5*(parseInt(_0x37a080(0x1e4))/0x6)+parseInt(_0x37a080(0x1cf))/0x7+-parseInt(_0x37a080(0x1e6))/0x8+-parseInt(_0x37a080(0x1bd))/0x9*(parseInt(_0x37a080(0x1de))/0xa)+-parseInt(_0x37a080(0x1e0))/0xb;if(_0x292265===_0x28eef6)break;else _0x25e738['push'](_0x25e738['shift']());}catch(_0x270f5f){_0x25e738['push'](_0x25e738['shift']());}}}(a148_0x4302,0xa91ef));function a148_0x4302(){const _0x1304d7=['ignoreMetadataAppCodeMismatch','1434CbXPMV','appCode','ignoreMetadataScope','dir','ignoreInvalidMetadata','path','displayName','toLowerCase','unknown','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','tags','targetScope','9633421JwttTr','object','\x20has\x20unsupported\x20scope\x20\x22','utf8','content','files','scope','length','personal','description','\x20name\x20for\x20SkillHub\x20slug\x20generation.','excludedFilePaths','refreshedAt','pushedAt','Invalid\x20','310ZMUBJb','packageBase64','9549914HlHLAS','validation','1755QaSszN','boolean','3858UXfgvX','slice','3211872nTXmuv','\x20to\x20submit\x20company\x20Skills\x20for\x20review.',',\x20or\x20directory\x20name.','company','isSymbolicLink','version','manifest','startsWith','skillCode','replace','sourceSessionId','allowAppCodeRetarget','Unable\x20to\x20resolve\x20skillCode\x20from\x20','filter','match','71968kiTwns','isDirectory','ignoreMetadataSkillCode','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','isFile','isArray','string','trim','1089YNENvU','skillName','ignoreMetadataForPayload','example','builtin','number','Skill\x20metadata\x20appCode\x20\x22','find','Skill\x20directory\x20not\x20found:\x20','\x20has\x20scope=\x22','95454MlbLgb','60AWQpBA','Remote\x20Skill\x20','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22'];a148_0x4302=function(){return _0x1304d7;};return a148_0x4302();}import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a148_0x4e6977}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(_0x5eccb7,_0x3fffc5,_0x3cc9e4={}){const _0x1eedb6=a148_0x1ebb,_0x11b3a0=resolvePushDirectoryRoot(_0x5eccb7),_0x549ec5=readPushMetadataIfPresent(resolve(_0x11b3a0,METADATA_FILE),{'ignoreInvalidMetadata':_0x3cc9e4[_0x1eedb6(0x1c7)]});if(_0x549ec5?.['appCode']&&_0x549ec5[_0x1eedb6(0x1c4)]!==_0x3fffc5&&!_0x3cc9e4[_0x1eedb6(0x1f1)]&&!_0x3cc9e4[_0x1eedb6(0x1c2)])throw CliErrors['validation'](_0x1eedb6(0x1b9)+_0x549ec5['appCode']+_0x1eedb6(0x1c1)+_0x3fffc5+'\x22.');const _0x1e10eb=resolvePushSkillCode(_0x11b3a0,_0x3fffc5,_0x549ec5,_0x3cc9e4);if(!_0x1e10eb)throw CliErrors[_0x1eedb6(0x1e1)](_0x1eedb6(0x1f2)+SKILL_FILE+',\x20'+METADATA_FILE+_0x1eedb6(0x1e8));return{'dir':_0x11b3a0,'skillCode':_0x1e10eb,'metadata':_0x549ec5};}export function readPushDirectory(_0x18ea8e,_0x2b8344,_0x19849e={}){const _0x2b7378=a148_0x1ebb,_0x592f80=resolvePushDirectoryIdentity(_0x18ea8e,_0x2b8344,_0x19849e),_0x52afdc=_0x592f80[_0x2b7378(0x1c6)],_0x4c40b3=resolve(_0x52afdc,SKILL_FILE);if(!existsSync(_0x4c40b3)||!lstatSync(_0x4c40b3)[_0x2b7378(0x1af)]())throw CliErrors[_0x2b7378(0x1e1)]('Missing\x20'+SKILL_FILE+':\x20'+_0x4c40b3);const _0x37d02c=_0x592f80['metadata'],_0x1ee8ef=_0x19849e[_0x2b7378(0x1ce)]??_0x2b7378(0x1d7);if(!_0x19849e[_0x2b7378(0x1c5)]&&_0x37d02c?.[_0x2b7378(0x1d5)]===_0x2b7378(0x1b7))throw CliErrors[_0x2b7378(0x1e1)](_0x2b7378(0x1c0)+METADATA_FILE+_0x2b7378(0x1bc)+_0x37d02c[_0x2b7378(0x1d5)]+'\x22.');if(!_0x19849e[_0x2b7378(0x1c5)]&&_0x1ee8ef==='personal'&&_0x37d02c?.['scope']&&_0x37d02c[_0x2b7378(0x1d5)]!==_0x2b7378(0x1d7))throw CliErrors[_0x2b7378(0x1e1)](_0x2b7378(0x1ae)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x37d02c[_0x2b7378(0x1d5)]+'\x22.',_0x2b7378(0x1cc)+_0x52afdc+_0x2b7378(0x1e7));const _0x1ccdcd=scanSkillDirectory(_0x52afdc,{'excludedFilePaths':_0x19849e[_0x2b7378(0x1da)]}),_0xd68205=buildSkillPackage(_0x1ccdcd),_0x3af38a=readFileSync(_0x4c40b3,_0x2b7378(0x1d2)),_0x29bc3d=_0x592f80['skillCode'],_0x4e593e=_0x19849e[_0x2b7378(0x1b5)]?undefined:_0x37d02c,_0x237b5d=readSkillDisplayName(_0x3af38a);return{'skillCode':_0x29bc3d,'metadata':_0x37d02c,'frontmatterDisplayName':_0x237b5d,'input':{'skillCode':_0x29bc3d,'skillName':_0x237b5d??_0x4e593e?.['skillName'],'description':_0x4e593e?.[_0x2b7378(0x1d8)],'content':_0x3af38a,'files':_0xd68205[_0x2b7378(0x1ec)],'packageBase64':_0xd68205[_0x2b7378(0x1df)],'tags':_0x4e593e?.[_0x2b7378(0x1cd)],'version':_0x4e593e?.[_0x2b7378(0x1eb)],'sourceSessionId':_0x4e593e?.['sourceSessionId']}};}export function refreshPushDirectoryMetadataFromRemote(_0x1fb32e,_0x18e53b,_0x5c191d,_0x449660={}){const _0x57f682=a148_0x1ebb,_0x48c9f3=resolvePushDirectoryRoot(_0x1fb32e),_0x5cc1fd=readPushMetadataIfPresent(resolve(_0x48c9f3,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x564f63=requireRemoteScope(_0x18e53b),_0x4e3d6a=readLocalSkillContent(_0x48c9f3),_0x49766d={..._0x18e53b,'appCode':_0x18e53b[_0x57f682(0x1c4)]??_0x5c191d,'skillName':_0x18e53b[_0x57f682(0x1b4)]??_0x5cc1fd?.['skillName'],'description':_0x18e53b['description']??_0x5cc1fd?.[_0x57f682(0x1d8)],'example':_0x18e53b[_0x57f682(0x1b6)]??_0x5cc1fd?.[_0x57f682(0x1b6)],'tags':Array['isArray'](_0x18e53b[_0x57f682(0x1cd)])?_0x18e53b[_0x57f682(0x1cd)]:_0x5cc1fd?.['tags'],'sourceSessionId':_0x18e53b['sourceSessionId']??_0x5cc1fd?.[_0x57f682(0x1f0)],'content':_0x18e53b[_0x57f682(0x1d3)]??_0x4e3d6a},_0x2b9330=buildMetadata(_0x49766d,_0x564f63,_0x5c191d,contentHash(_0x4e3d6a),_0x449660[_0x57f682(0x1db)]);writeJsonAtomic(resolve(_0x48c9f3,METADATA_FILE),_0x2b9330);}export function recordPushedRuntimeSkill(_0x30703e,_0x340931,_0xfd255b,_0x436ff8={}){const _0x56f882=a148_0x1ebb,_0x4d8fda=resolvePushDirectoryRoot(_0x30703e),_0x570278=scanSkillDirectory(_0x4d8fda),_0x3ed228=_0x570278[_0x56f882(0x1ba)](_0x49a3d2=>_0x49a3d2['path']===SKILL_FILE),_0x339f9e=_0x3ed228?fileText(_0x3ed228):'',_0x5eab97=tryNormalizePackageManifest(_0x340931[_0x56f882(0x1d4)]),_0x1d2f67={..._0x340931,'content':_0x340931[_0x56f882(0x1d3)]??_0x339f9e,'files':_0x5eab97},_0x1f83b5=_0x5eab97?normalizeLocalFiles(_0x570278)[_0x56f882(0x1a9)](_0x5dd6b8=>_0x5eab97[_0x56f882(0x1d4)]['some'](_0x50e844=>_0x50e844[_0x56f882(0x1c8)]===_0x5dd6b8[_0x56f882(0x1c8)])):undefined,_0x513f2c=buildMetadata(_0x1d2f67,_0x436ff8[_0x56f882(0x1d5)]??_0x56f882(0x1d7),_0xfd255b,contentHash(_0x1d2f67[_0x56f882(0x1d3)]??''),_0x436ff8[_0x56f882(0x1dc)],_0x1f83b5);writeJsonAtomic(resolve(_0x4d8fda,METADATA_FILE),_0x513f2c);}export function deriveSkillCodeFromDirectory(_0x32d915,_0x37777e){const _0x59d797=a148_0x1ebb,_0x563f92=basename(resolve(_0x32d915)),_0xc3585f=_0x37777e+'--';return _0x563f92[_0x59d797(0x1ed)](_0xc3585f)?_0x563f92[_0x59d797(0x1e5)](_0xc3585f[_0x59d797(0x1d6)]):_0x563f92;}function resolvePushSkillCode(_0x1f3ac6,_0x4057c9,_0x2e2228,_0x2481f3){const _0x2a356b=a148_0x1ebb,_0x146a0e=deriveSkillCodeFromSkillFile(_0x1f3ac6)||deriveSkillCodeFromDirectory(_0x1f3ac6,_0x4057c9);if(_0x2481f3[_0x2a356b(0x1ad)])return _0x146a0e;return _0x2e2228?.[_0x2a356b(0x1ee)]?.[_0x2a356b(0x1b2)]()||_0x146a0e;}function a148_0x1ebb(_0x290e7b,_0x46ca58){_0x290e7b=_0x290e7b-0x1a9;const _0x4302c5=a148_0x4302();let _0x1ebbf3=_0x4302c5[_0x290e7b];return _0x1ebbf3;}function deriveSkillCodeFromSkillFile(_0x580570){const _0x5ed5bc=a148_0x1ebb,_0x178d44=resolve(_0x580570,SKILL_FILE);if(!existsSync(_0x178d44)||!lstatSync(_0x178d44)['isFile']())return undefined;const _0x23f54=readFileSync(_0x178d44,_0x5ed5bc(0x1d2)),_0x13f108=_0x23f54[_0x5ed5bc(0x1aa)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x13f108)return undefined;const _0x39e555=parseFrontmatterObject(_0x13f108[0x1]??''),_0x4e1db0=scalarToString(_0x39e555?.['name']);return _0x4e1db0?slugifySkillName(_0x4e1db0):undefined;}function readSkillDisplayName(_0x4224fe){const _0x5155c7=a148_0x1ebb,_0x56abd3=_0x4224fe[_0x5155c7(0x1aa)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x56abd3)return undefined;const _0x331005=parseFrontmatterObject(_0x56abd3[0x1]??'');return scalarToString(_0x331005?.[_0x5155c7(0x1c9)]);}function slugifySkillName(_0x52d51f){const _0x1ddea9=a148_0x1ebb,_0x3363e5=_0x52d51f[_0x1ddea9(0x1b2)]()[_0x1ddea9(0x1ca)]()['replace'](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x1ddea9(0x1ef)](/^-+/,'')[_0x1ddea9(0x1ef)](/-+$/,'')[_0x1ddea9(0x1ef)](/-{2,}/g,'-');if(!_0x3363e5)throw CliErrors[_0x1ddea9(0x1e1)](_0x1ddea9(0x1dd)+SKILL_FILE+_0x1ddea9(0x1d9));return _0x3363e5;}function parseFrontmatterObject(_0x194b99){const _0x386342=a148_0x1ebb;try{const _0xadf802=a148_0x4e6977(_0x194b99);return _0xadf802&&typeof _0xadf802===_0x386342(0x1d0)&&!Array[_0x386342(0x1b0)](_0xadf802)?_0xadf802:undefined;}catch{return undefined;}}function scalarToString(_0x8f0954){const _0x47abea=a148_0x1ebb;if(typeof _0x8f0954===_0x47abea(0x1b1))return _0x8f0954['trim']();if(typeof _0x8f0954===_0x47abea(0x1b8)||typeof _0x8f0954===_0x47abea(0x1e3))return String(_0x8f0954);return undefined;}function resolvePushDirectoryRoot(_0x581bb3){const _0x2d4543=a148_0x1ebb,_0x241008=resolve(_0x581bb3);if(!existsSync(_0x241008))throw CliErrors[_0x2d4543(0x1e1)](_0x2d4543(0x1bb)+_0x581bb3);const _0x3555d7=lstatSync(_0x241008);if(_0x3555d7[_0x2d4543(0x1ac)]())return _0x241008;if(_0x3555d7[_0x2d4543(0x1ea)]()){const _0x42e653=realpathSync(_0x241008);if(lstatSync(_0x42e653)['isDirectory']())return _0x42e653;}throw CliErrors['validation']('Skill\x20directory\x20not\x20found:\x20'+_0x581bb3);}function requireRemoteScope(_0x46a73c){const _0x2c26c3=a148_0x1ebb;if(_0x46a73c[_0x2c26c3(0x1d5)]===_0x2c26c3(0x1d7)||_0x46a73c[_0x2c26c3(0x1d5)]===_0x2c26c3(0x1e9)||_0x46a73c[_0x2c26c3(0x1d5)]===_0x2c26c3(0x1b7))return _0x46a73c[_0x2c26c3(0x1d5)];throw CliErrors[_0x2c26c3(0x1e1)](_0x2c26c3(0x1bf)+(_0x46a73c[_0x2c26c3(0x1ee)]||'(unknown)')+_0x2c26c3(0x1d1)+(_0x46a73c[_0x2c26c3(0x1d5)]??_0x2c26c3(0x1cb))+'\x22.');}function readLocalSkillContent(_0x258098){const _0x153663=a148_0x1ebb,_0x2f795d=resolve(_0x258098,SKILL_FILE);return existsSync(_0x2f795d)&&lstatSync(_0x2f795d)['isFile']()?readFileSync(_0x2f795d,_0x153663(0x1d2)):'';}function readPushMetadataIfPresent(_0x2ca4ee,_0x16ea96={}){const _0x42e5f3=a148_0x1ebb;try{return readMetadataIfPresent(_0x2ca4ee);}catch(_0x404076){if(_0x16ea96[_0x42e5f3(0x1c7)])return undefined;throw _0x404076;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a149_0xbf05(){const _0x1bccc4=['personal','6999240mrfROh','builtin','547059nMWmyW','validation','company','push','1341764oFJMrl','length','5665751nOfgAP','6184764BpDXzY','1695sMdFyj','13104oKvVAr','1610310dlBPKU','includes'];a149_0xbf05=function(){return _0x1bccc4;};return a149_0xbf05();}(function(_0x4d81df,_0x3c1841){const _0x539035=a149_0x36f0,_0x14a3dd=_0x4d81df();while(!![]){try{const _0x16b3b1=parseInt(_0x539035(0xf3))/0x1+-parseInt(_0x539035(0xf7))/0x2+parseInt(_0x539035(0xee))/0x3+-parseInt(_0x539035(0xfc))/0x4*(-parseInt(_0x539035(0xfb))/0x5)+-parseInt(_0x539035(0xfa))/0x6+-parseInt(_0x539035(0xf9))/0x7+parseInt(_0x539035(0xf1))/0x8;if(_0x16b3b1===_0x3c1841)break;else _0x14a3dd['push'](_0x14a3dd['shift']());}catch(_0x28c8a6){_0x14a3dd['push'](_0x14a3dd['shift']());}}}(a149_0xbf05,0x88495));import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x14e06b){const _0x4464a7=a149_0x36f0,_0x5cbe4f=_0x14e06b&&_0x14e06b[_0x4464a7(0xf8)]>0x0?_0x14e06b:[_0x4464a7(0xf0),_0x4464a7(0xf5),_0x4464a7(0xf2)],_0x5ef49d=[];for(const _0xb1a64d of _0x5cbe4f){if(!isRuntimeSkillScope(_0xb1a64d))throw CliErrors[_0x4464a7(0xf4)]('Unsupported\x20runtime\x20Skill\x20scope:\x20'+_0xb1a64d);!_0x5ef49d[_0x4464a7(0xef)](_0xb1a64d)&&_0x5ef49d[_0x4464a7(0xf6)](_0xb1a64d);}return _0x5ef49d;}function a149_0x36f0(_0x5c7f9b,_0x574086){_0x5c7f9b=_0x5c7f9b-0xee;const _0xbf0508=a149_0xbf05();let _0x36f039=_0xbf0508[_0x5c7f9b];return _0x36f039;}export function isRuntimeSkillScope(_0x19ab48){const _0x1c76ed=a149_0x36f0;return _0x19ab48===_0x1c76ed(0xf0)||_0x19ab48===_0x1c76ed(0xf5)||_0x19ab48===_0x1c76ed(0xf2);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a151_0x3ddb(_0x10ab98,_0x5a6bf6){_0x10ab98=_0x10ab98-0xce;const _0x5b2882=a151_0x5b28();let _0x3ddb91=_0x5b2882[_0x10ab98];return _0x3ddb91;}function a151_0x5b28(){const _0x347fd0=['length','9gpKOXF','path','3270378ykLcpy','endsWith','map','code','validation_error','5762608LPVfeR','69HVULLn','70005AExHPA','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','1318930kAYCJo','766889JtqwNG','39314hznlDK','validation','1065183xEQVHv','152dJfear','from','1980-01-01T00:00:00.000Z','name'];a151_0x5b28=function(){return _0x347fd0;};return a151_0x5b28();}const a151_0x177646=a151_0x3ddb;(function(_0x4135bb,_0x590d1e){const _0x1145b4=a151_0x3ddb,_0x23d091=_0x4135bb();while(!![]){try{const _0x3b180e=parseInt(_0x1145b4(0xdb))/0x1+-parseInt(_0x1145b4(0xdc))/0x2*(-parseInt(_0x1145b4(0xd7))/0x3)+-parseInt(_0x1145b4(0xdf))/0x4*(-parseInt(_0x1145b4(0xd8))/0x5)+-parseInt(_0x1145b4(0xd1))/0x6+-parseInt(_0x1145b4(0xde))/0x7+-parseInt(_0x1145b4(0xd6))/0x8+-parseInt(_0x1145b4(0xcf))/0x9*(-parseInt(_0x1145b4(0xda))/0xa);if(_0x3b180e===_0x590d1e)break;else _0x23d091['push'](_0x23d091['shift']());}catch(_0x1c9271){_0x23d091['push'](_0x23d091['shift']());}}}(a151_0x5b28,0x719dd));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a151_0x177646(0xe1));export function createDeterministicZipPackage(_0x42bfa0){const _0x290368=a151_0x177646,_0xee25d7={};for(const _0x528ad8 of normalizeLocalFiles(_0x42bfa0)){_0xee25d7[_0x528ad8[_0x290368(0xd0)]]=fileContent(_0x528ad8);}return Buffer[_0x290368(0xe0)](zipSync(_0xee25d7,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x4c4703){const _0x380e46=a151_0x177646;if(_0x4c4703[_0x380e46(0xce)]<0x16)throw CliErrors[_0x380e46(0xdd)](_0x380e46(0xd9));let _0x37bfcd;try{_0x37bfcd=unzipSync(_0x4c4703,{'filter'(_0x42e0e1){const _0x2c6b27=_0x380e46,_0x25aaa3=normalizeSkillRelativePath(_0x42e0e1[_0x2c6b27(0xe2)]);if(_0x25aaa3[_0x2c6b27(0xd2)]('/'))throw CliErrors['validation']('Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20'+_0x25aaa3);return!![];}});}catch(_0x2febad){if(isRuntimeSkillValidationError(_0x2febad))throw _0x2febad;throw CliErrors[_0x380e46(0xdd)](_0x380e46(0xd9));}return Object['entries'](_0x37bfcd)[_0x380e46(0xd3)](([_0x7ff53d,_0x2645e0])=>({'path':normalizeSkillRelativePath(_0x7ff53d),'bytes':Buffer[_0x380e46(0xe0)](_0x2645e0)}))['sort'](compareSkillFiles);}function isRuntimeSkillValidationError(_0x567433){const _0x5ea5fe=a151_0x177646;return typeof _0x567433==='object'&&_0x567433!==null&&'code'in _0x567433&&_0x567433[_0x5ea5fe(0xd4)]===_0x5ea5fe(0xd5);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2c6600,_0x3c8e45){const _0x133d65=a152_0x2427,_0xfc069a=_0x2c6600();while(!![]){try{const _0x1fe171=parseInt(_0x133d65(0x1f4))/0x1*(-parseInt(_0x133d65(0x1f6))/0x2)+parseInt(_0x133d65(0x201))/0x3*(parseInt(_0x133d65(0x1df))/0x4)+-parseInt(_0x133d65(0x204))/0x5+parseInt(_0x133d65(0x1ef))/0x6*(parseInt(_0x133d65(0x1ec))/0x7)+-parseInt(_0x133d65(0x1f7))/0x8+-parseInt(_0x133d65(0x203))/0x9*(-parseInt(_0x133d65(0x206))/0xa)+-parseInt(_0x133d65(0x1f1))/0xb*(-parseInt(_0x133d65(0x1e4))/0xc);if(_0x1fe171===_0x3c8e45)break;else _0xfc069a['push'](_0xfc069a['shift']());}catch(_0x3e8aa1){_0xfc069a['push'](_0xfc069a['shift']());}}}(a152_0x312f,0xaeb81));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(_0x24a883){const _0x2e409a=a152_0x2427,_0x179ba5=normalizeLocalFiles(_0x24a883);if(!_0x179ba5['some'](_0x58f231=>_0x58f231[_0x2e409a(0x1e6)]===SKILL_FILE))throw CliErrors['validation'](_0x2e409a(0x202)+SKILL_FILE+_0x2e409a(0x1f2));const _0x2efc23=localFilesToManifestFiles(_0x179ba5),_0x51b4b2=createDeterministicZipPackage(_0x179ba5);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x2efc23),'zipSha256':bufferSha256(_0x51b4b2),'zipSize':_0x51b4b2['length'],'files':_0x2efc23},'packageBytes':_0x51b4b2,'packageBase64':_0x51b4b2[_0x2e409a(0x1ee)](_0x2e409a(0x1ed))};}function a152_0x312f(){const _0x1b8a34=['18dGDIRk','Missing\x20','7002TMqnjl','1515285juDylp','zipSha256','6730wplpsl','object','bytes','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','length','requireOssPath','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','files','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','schemaVersion','push','852356qHyLcx','zipSize','Runtime\x20Skill\x20package\x20size\x20mismatch.','some','Runtime\x20Skill\x20package\x20is\x20missing\x20','12Qdmlfv','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','path','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','isSafeInteger','validation','size','treeSha256','8762642bmKcsb','base64','toString','6UJddcK','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','788689QQalIL','\x20in\x20Skill\x20file\x20package.','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','813041RWQplm','toLowerCase','2AxdDKP','10351088hlkruD','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','trim','string','Duplicate\x20Skill\x20package\x20entry:\x20','map','get','isArray','ossPath','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.'];a152_0x312f=function(){return _0x1b8a34;};return a152_0x312f();}export function verifyRuntimeSkillPackage(_0x18c55d,_0x52c786){const _0x2b74b9=a152_0x2427,_0x396b8c=normalizePackageManifest(_0x18c55d,{'requireOssPath':![]});if(!_0x396b8c)throw CliErrors['validation'](_0x2b74b9(0x1e5));return extractAndVerifyPackage(_0x396b8c,_0x52c786);}export function verifyRuntimeSkillBundle(_0x49116d,_0x523717){const _0x52dc21=a152_0x2427,_0x3c5115=normalizePackageManifest(_0x49116d,{'requireOssPath':![]});if(!_0x3c5115)throw CliErrors[_0x52dc21(0x1e9)](_0x52dc21(0x1e5));return extractAndVerifyPackageFiles(_0x3c5115,_0x523717);}export function tryNormalizePackageManifest(_0x233557){return normalizePackageManifest(_0x233557,{'requireOssPath':![]});}export function requirePackageBytes(_0x2fe183,_0x23bedb){const _0x3eeddf=a152_0x2427;if(!_0x23bedb||_0x23bedb[_0x3eeddf(0x20a)]===0x0)throw CliErrors[_0x3eeddf(0x1e9)](_0x3eeddf(0x1dc)+_0x2fe183);return _0x23bedb;}export function extractDownloadedPackage(_0x497daa){const _0x349f4f=a152_0x2427,_0x332f22=parseZipPackage(_0x497daa)[_0x349f4f(0x1fc)](_0x5801f0=>({'path':_0x5801f0['path'],'bytes':_0x5801f0['bytes']}));if(!_0x332f22[_0x349f4f(0x1e2)](_0x31c1fd=>_0x31c1fd[_0x349f4f(0x1e6)]===SKILL_FILE))throw CliErrors[_0x349f4f(0x1e9)](_0x349f4f(0x1e3)+SKILL_FILE+'.');return normalizeLocalFiles(_0x332f22);}export function localFilesToManifestFiles(_0x218b7b){const _0x3f76d2=a152_0x2427;return normalizeLocalFiles(_0x218b7b)[_0x3f76d2(0x1fc)](_0x4f7b89=>({'path':_0x4f7b89[_0x3f76d2(0x1e6)],'sha256':fileHash(_0x4f7b89),'size':fileContent(_0x4f7b89)[_0x3f76d2(0x20a)]}));}function normalizePackageManifest(_0x2bf3b7,_0x9881c){const _0x418301=a152_0x2427;if(!_0x2bf3b7||typeof _0x2bf3b7!==_0x418301(0x207)||Array['isArray'](_0x2bf3b7))return undefined;const _0x3f073a=_0x2bf3b7,_0x4a24df=typeof _0x3f073a[_0x418301(0x1ff)]===_0x418301(0x1fa)?_0x3f073a[_0x418301(0x1ff)][_0x418301(0x1f9)]():undefined;if(_0x9881c[_0x418301(0x20b)]&&!_0x4a24df)return undefined;if(!Array[_0x418301(0x1fe)](_0x3f073a[_0x418301(0x1db)])||_0x3f073a[_0x418301(0x1db)]['length']===0x0)return undefined;if(!isSha256Hex(_0x3f073a[_0x418301(0x1eb)]))throw CliErrors[_0x418301(0x1e9)](_0x418301(0x200));if(!isSha256Hex(_0x3f073a[_0x418301(0x205)]))throw CliErrors[_0x418301(0x1e9)](_0x418301(0x1da));if(!Number[_0x418301(0x1e8)](_0x3f073a[_0x418301(0x1e0)])||_0x3f073a['zipSize']<0x0)throw CliErrors['validation'](_0x418301(0x1f8));const _0x27fb70=normalizeManifestFiles(_0x3f073a[_0x418301(0x1db)]);if(!_0x27fb70[_0x418301(0x1e2)](_0x1fe4ef=>_0x1fe4ef[_0x418301(0x1e6)]===SKILL_FILE))throw CliErrors[_0x418301(0x1e9)](_0x418301(0x1f3)+SKILL_FILE+'.');const _0x494e0e=fileTreeHash(_0x27fb70);if(_0x494e0e!==_0x3f073a[_0x418301(0x1eb)]['toLowerCase']())throw CliErrors[_0x418301(0x1e9)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number[_0x418301(0x1e8)](_0x3f073a[_0x418301(0x1dd)])?_0x3f073a[_0x418301(0x1dd)]:0x2,'ossPath':_0x4a24df,'treeSha256':_0x494e0e,'zipSha256':_0x3f073a['zipSha256'][_0x418301(0x1f5)](),'zipSize':_0x3f073a['zipSize'],'files':_0x27fb70};}function extractAndVerifyPackage(_0x10994a,_0x42ac94){const _0x5a741f=a152_0x2427,_0x51ab6d=normalizePackageManifest(_0x10994a,{'requireOssPath':![]});if(!_0x51ab6d)throw CliErrors[_0x5a741f(0x1e9)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');if(_0x42ac94[_0x5a741f(0x20a)]!==_0x51ab6d[_0x5a741f(0x1e0)])throw CliErrors['validation'](_0x5a741f(0x1e1));const _0x1a7153=bufferSha256(_0x42ac94);if(_0x1a7153!==_0x51ab6d[_0x5a741f(0x205)])throw CliErrors[_0x5a741f(0x1e9)]('Runtime\x20Skill\x20package\x20sha256\x20mismatch.');return extractAndVerifyPackageFiles(_0x51ab6d,_0x42ac94);}function a152_0x2427(_0xd98bad,_0xd41e51){_0xd98bad=_0xd98bad-0x1da;const _0x312f76=a152_0x312f();let _0x242728=_0x312f76[_0xd98bad];return _0x242728;}function extractAndVerifyPackageFiles(_0x36c7ec,_0x18fef9){const _0x24f845=a152_0x2427,_0x24b7f9=parseZipPackage(_0x18fef9);if(_0x24b7f9[_0x24f845(0x20a)]!==_0x36c7ec['files'][_0x24f845(0x20a)])throw CliErrors[_0x24f845(0x1e9)](_0x24f845(0x1f0));const _0x352632=new Map();for(const _0x568718 of _0x24b7f9){if(_0x352632['has'](_0x568718[_0x24f845(0x1e6)]))throw CliErrors[_0x24f845(0x1e9)](_0x24f845(0x1fb)+_0x568718['path']);_0x352632['set'](_0x568718[_0x24f845(0x1e6)],_0x568718);}const _0x4543b5=[];for(const _0x3eb92f of _0x36c7ec['files']){const _0xc2158e=_0x352632[_0x24f845(0x1fd)](_0x3eb92f[_0x24f845(0x1e6)]);if(!_0xc2158e)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20'+_0x3eb92f[_0x24f845(0x1e6)]);if(_0xc2158e['bytes'][_0x24f845(0x20a)]!==_0x3eb92f[_0x24f845(0x1ea)])throw CliErrors[_0x24f845(0x1e9)](_0x24f845(0x209)+_0x3eb92f[_0x24f845(0x1e6)]);const _0x38dcc4=bufferSha256(_0xc2158e[_0x24f845(0x208)]);if(_0x38dcc4!==_0x3eb92f['sha256'])throw CliErrors[_0x24f845(0x1e9)](_0x24f845(0x1e7)+_0x3eb92f[_0x24f845(0x1e6)]);_0x4543b5[_0x24f845(0x1de)]({'path':_0x3eb92f[_0x24f845(0x1e6)],'bytes':_0xc2158e[_0x24f845(0x208)]});}return normalizeLocalFiles(_0x4543b5);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x130481,_0x3e16e8){var _0x18a23f=a153_0x2a02,_0x56ac1a=_0x130481();while(!![]){try{var _0x17325d=parseInt(_0x18a23f(0xe6))/0x1*(parseInt(_0x18a23f(0xe9))/0x2)+-parseInt(_0x18a23f(0xe3))/0x3+-parseInt(_0x18a23f(0xe4))/0x4*(parseInt(_0x18a23f(0xe7))/0x5)+parseInt(_0x18a23f(0xea))/0x6+-parseInt(_0x18a23f(0xe5))/0x7+-parseInt(_0x18a23f(0xe8))/0x8+-parseInt(_0x18a23f(0xec))/0x9*(-parseInt(_0x18a23f(0xeb))/0xa);if(_0x17325d===_0x3e16e8)break;else _0x56ac1a['push'](_0x56ac1a['shift']());}catch(_0x34b5df){_0x56ac1a['push'](_0x56ac1a['shift']());}}}(a153_0x2173,0xee0e8));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{resolveRuntimeSkillInstallTarget}from'./runtime-skill-sync/install-target.js';function a153_0x2a02(_0x66f5db,_0x37c2db){_0x66f5db=_0x66f5db-0xe3;var _0x21731c=a153_0x2173();var _0x2a0288=_0x21731c[_0x66f5db];return _0x2a0288;}export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';function a153_0x2173(){var _0x146d6f=['2865435JazQID','8mQVvnS','2208143XwnulF','40531edgXHd','1871015OZhVbJ','513608TUlEMr','22neFujm','5358150CbpbPb','310ELbcFX','499185msoASI'];a153_0x2173=function(){return _0x146d6f;};return a153_0x2173();}export{materializeRuntimeSkill,reuseMaterializedRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a154_0x1fab0a=a154_0x5f4a;(function(_0x1564a6,_0x350218){const _0x2cc4da=a154_0x5f4a,_0x3fdd0f=_0x1564a6();while(!![]){try{const _0x57dc78=parseInt(_0x2cc4da(0x18d))/0x1+-parseInt(_0x2cc4da(0x181))/0x2*(parseInt(_0x2cc4da(0x17c))/0x3)+parseInt(_0x2cc4da(0x17d))/0x4+parseInt(_0x2cc4da(0x194))/0x5+parseInt(_0x2cc4da(0x196))/0x6+-parseInt(_0x2cc4da(0x17b))/0x7+-parseInt(_0x2cc4da(0x184))/0x8;if(_0x57dc78===_0x350218)break;else _0x3fdd0f['push'](_0x3fdd0f['shift']());}catch(_0x567660){_0x3fdd0f['push'](_0x3fdd0f['shift']());}}}(a154_0xc62f,0x326a0));import{existsSync,readFileSync}from'node:fs';function a154_0x5f4a(_0xf94536,_0x5c7e64){_0xf94536=_0xf94536-0x178;const _0xc62f58=a154_0xc62f();let _0x5f4a15=_0xc62f58[_0xf94536];return _0x5f4a15;}import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join('.agents','.skill-lock.json');export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a154_0x1fab0a(0x18e)),join('.claude',a154_0x1fab0a(0x18e))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x18cad7,_0x1403e1){const _0x533fa1=a154_0x1fab0a;if(!existsSync(_0x18cad7))return{'kind':'not-recorded'};let _0x2bebd1;try{_0x2bebd1=JSON[_0x533fa1(0x188)](readFileSync(_0x18cad7,'utf8'));}catch(_0x24979c){return{'kind':_0x533fa1(0x186),'reason':_0x18cad7+_0x533fa1(0x190)+_0x24979c[_0x533fa1(0x180)]};}const _0x1f98fa=_0x2bebd1;if(typeof _0x1f98fa?.['version']!==_0x533fa1(0x17a)||!SUPPORTED_LOCK_VERSIONS[_0x533fa1(0x183)](_0x1f98fa['version']))return{'kind':_0x533fa1(0x186),'reason':_0x18cad7+_0x533fa1(0x178)+String(_0x1f98fa?.[_0x533fa1(0x17e)])};if(!_0x1f98fa['skills']||typeof _0x1f98fa['skills']!=='object')return{'kind':_0x533fa1(0x186),'reason':_0x18cad7+'\x20has\x20no\x20skills\x20map'};return _0x1f98fa[_0x533fa1(0x18e)][_0x1403e1]?{'kind':_0x533fa1(0x18b)}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0x1cc783,_0x2ea46d){const _0x39c568=a154_0x1fab0a,_0x507e3a=_0x2ea46d?.[_0x39c568(0x189)]??homedir(),_0x521e89=_0x2ea46d?.[_0x39c568(0x187)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x4b0662=>join(_0x507e3a,_0x4b0662)),_0x3c68ae=_0x2ea46d?.[_0x39c568(0x179)]??join(_0x507e3a,SKILL_LOCK_RELATIVE_PATH),_0x234d19=_0x521e89[_0x39c568(0x18a)](_0x5126ca=>join(_0x5126ca,_0x1cc783,_0x39c568(0x17f))),_0x1f86f8=_0x234d19[_0x39c568(0x182)](_0x68e1b5=>existsSync(_0x68e1b5));if(_0x1f86f8)return{'state':_0x39c568(0x193),'path':_0x1f86f8};const _0x45c3a5=readLockLookup(_0x3c68ae,_0x1cc783);if(_0x45c3a5[_0x39c568(0x195)]===_0x39c568(0x186))return{'state':'unverifiable','reason':_0x45c3a5[_0x39c568(0x18c)]};if(_0x45c3a5[_0x39c568(0x195)]===_0x39c568(0x18b))return{'state':_0x39c568(0x18f),'reason':_0x3c68ae+_0x39c568(0x192)+_0x1cc783+_0x39c568(0x185)+('('+_0x234d19['join'](',\x20')+')')};return{'state':_0x39c568(0x191),'checked':_0x234d19};}function a154_0xc62f(){const _0x5f5807=['3265528PvkdoP','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','unusable','globalSkillsDirs','parse','home','map','recorded','reason','285463TzeAVV','skills','unverifiable','\x20is\x20unreadable:\x20','absent','\x20records\x20\x22','present','1019505LnOQyo','kind','210096FZxMli','\x20uses\x20unsupported\x20version\x20','lockFile','number','224973KDdngC','3gyRAIx','1545564IEEKNr','version','SKILL.md','message','527890dxCinQ','find','includes'];a154_0xc62f=function(){return _0x5f5807;};return a154_0xc62f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a155_0x662fe7=a155_0x4a97;(function(_0x493bdb,_0x59436c){const _0x336258=a155_0x4a97,_0x33dab8=_0x493bdb();while(!![]){try{const _0x206e6d=-parseInt(_0x336258(0xec))/0x1*(-parseInt(_0x336258(0xee))/0x2)+-parseInt(_0x336258(0xf3))/0x3*(parseInt(_0x336258(0xfd))/0x4)+parseInt(_0x336258(0xea))/0x5*(parseInt(_0x336258(0xef))/0x6)+-parseInt(_0x336258(0xf5))/0x7*(-parseInt(_0x336258(0xf1))/0x8)+parseInt(_0x336258(0xf0))/0x9+-parseInt(_0x336258(0xf9))/0xa+parseInt(_0x336258(0xff))/0xb*(-parseInt(_0x336258(0x100))/0xc);if(_0x206e6d===_0x59436c)break;else _0x33dab8['push'](_0x33dab8['shift']());}catch(_0x26d88d){_0x33dab8['push'](_0x33dab8['shift']());}}}(a155_0x2cf8,0xd22b5));function a155_0x4a97(_0x4c18e7,_0x3a3c6b){_0x4c18e7=_0x4c18e7-0xe8;const _0x2cf832=a155_0x2cf8();let _0x4a9790=_0x2cf832[_0x4c18e7];return _0x4a9790;}const REDACTED_ACCESS_KEY=a155_0x662fe7(0xfe);export function maskCliAccessKey(_0x239343){const _0x4cd667=a155_0x662fe7;if(typeof _0x239343!==_0x4cd667(0xe9)||_0x239343['length']<=0x8)return REDACTED_ACCESS_KEY;return''+_0x239343[_0x4cd667(0xed)](0x0,0x8)+'*'[_0x4cd667(0xf4)](_0x239343['length']-0x8);}export function redactCliConfigCredentials(_0x5d3c07){const _0x3a5841=a155_0x662fe7,_0xaafe76={..._0x5d3c07};return Object[_0x3a5841(0xfa)][_0x3a5841(0xfb)][_0x3a5841(0xe8)](_0xaafe76,'accessKey')&&(_0xaafe76[_0x3a5841(0xf2)]=maskCliAccessKey(_0xaafe76[_0x3a5841(0xf2)])),_0xaafe76[_0x3a5841(0xf8)]&&typeof _0xaafe76[_0x3a5841(0xf8)]===_0x3a5841(0xf7)&&!Array[_0x3a5841(0x101)](_0xaafe76[_0x3a5841(0xf8)])&&(_0xaafe76['apps']=redactLegacyAppCredentials(_0xaafe76[_0x3a5841(0xf8)])),_0xaafe76;}function a155_0x2cf8(){const _0x518327=['72330XgMxDs','prototype','hasOwnProperty','test','326604STjJwv','<redacted>','43967IIHLDN','8292LprsRH','isArray','call','string','140ZxvpIU','map','2dZtPOI','slice','1332348kekUgl','85962dOByPj','10161144MYvSgq','120uLnOTS','accessKey','6bznhWm','repeat','434371Zjobre','entries','object','apps'];a155_0x2cf8=function(){return _0x518327;};return a155_0x2cf8();}export function redactCliConfigValue(_0x4045b4,_0x46cef6){const _0x3e2eb3=a155_0x662fe7;if(_0x4045b4===_0x3e2eb3(0xf2)||/^apps\.[^.]+\.accessKey$/[_0x3e2eb3(0xfc)](_0x4045b4))return maskCliAccessKey(_0x46cef6);if(_0x4045b4==='apps'&&_0x46cef6&&typeof _0x46cef6==='object'&&!Array['isArray'](_0x46cef6))return redactLegacyAppCredentials(_0x46cef6);if(/^apps\.[^.]+$/[_0x3e2eb3(0xfc)](_0x4045b4)&&_0x46cef6&&typeof _0x46cef6===_0x3e2eb3(0xf7)&&!Array[_0x3e2eb3(0x101)](_0x46cef6)){const _0x381fc2=_0x46cef6;return Object[_0x3e2eb3(0xfa)][_0x3e2eb3(0xfb)][_0x3e2eb3(0xe8)](_0x381fc2,'accessKey')?{..._0x381fc2,'accessKey':maskCliAccessKey(_0x381fc2['accessKey'])}:_0x46cef6;}return _0x46cef6;}function redactLegacyAppCredentials(_0x465a50){const _0x1e6f39=a155_0x662fe7;return Object['fromEntries'](Object[_0x1e6f39(0xf6)](_0x465a50)[_0x1e6f39(0xeb)](([_0x2b4433,_0x14d4dd])=>{const _0x5122b6=_0x1e6f39;if(!_0x14d4dd||typeof _0x14d4dd!=='object'||Array[_0x5122b6(0x101)](_0x14d4dd))return[_0x2b4433,_0x14d4dd];const _0x1ed6d4={..._0x14d4dd};return Object[_0x5122b6(0xfa)]['hasOwnProperty'][_0x5122b6(0xe8)](_0x1ed6d4,'accessKey')&&(_0x1ed6d4['accessKey']=maskCliAccessKey(_0x1ed6d4[_0x5122b6(0xf2)])),[_0x2b4433,_0x1ed6d4];}));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x595679,_0x10f0a6){const _0x31dd07=a156_0x38a8,_0x52be45=_0x595679();while(!![]){try{const _0x2e1b02=-parseInt(_0x31dd07(0x1cc))/0x1*(-parseInt(_0x31dd07(0x1cf))/0x2)+-parseInt(_0x31dd07(0x1cb))/0x3*(-parseInt(_0x31dd07(0x1cd))/0x4)+-parseInt(_0x31dd07(0x1ca))/0x5+parseInt(_0x31dd07(0x1d2))/0x6+-parseInt(_0x31dd07(0x1d3))/0x7*(parseInt(_0x31dd07(0x1d0))/0x8)+parseInt(_0x31dd07(0x1d1))/0x9+-parseInt(_0x31dd07(0x1ce))/0xa;if(_0x2e1b02===_0x10f0a6)break;else _0x52be45['push'](_0x52be45['shift']());}catch(_0x44addc){_0x52be45['push'](_0x52be45['shift']());}}}(a156_0x36f4,0xa364f));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a156_0x38a8(_0x4aaa9d,_0x25d2cd){_0x4aaa9d=_0x4aaa9d-0x1ca;const _0x36f409=a156_0x36f4();let _0x38a863=_0x36f409[_0x4aaa9d];return _0x38a863;}import{CliErrors}from'../errors.js';function a156_0x36f4(){const _0x2f7316=['6910002UCmMaT','7KIFvdO','5742570MOJhuN','1791AqEAXb','397HhKOBy','6988dZpuRC','9435720NrkbIE','622PSyNZp','769416BwztcG','4854897YSuGkw'];a156_0x36f4=function(){return _0x2f7316;};return a156_0x36f4();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3f69e8,_0x2f8480){const _0x37f54d=a157_0x47eb,_0x1e5f9d=_0x3f69e8();while(!![]){try{const _0x40f6ec=-parseInt(_0x37f54d(0x111))/0x1*(-parseInt(_0x37f54d(0x105))/0x2)+-parseInt(_0x37f54d(0x10b))/0x3*(parseInt(_0x37f54d(0x107))/0x4)+-parseInt(_0x37f54d(0x10f))/0x5*(parseInt(_0x37f54d(0x108))/0x6)+parseInt(_0x37f54d(0x101))/0x7+-parseInt(_0x37f54d(0x110))/0x8*(-parseInt(_0x37f54d(0xfa))/0x9)+-parseInt(_0x37f54d(0x10a))/0xa*(parseInt(_0x37f54d(0xf9))/0xb)+-parseInt(_0x37f54d(0x112))/0xc*(-parseInt(_0x37f54d(0x102))/0xd);if(_0x40f6ec===_0x2f8480)break;else _0x1e5f9d['push'](_0x1e5f9d['shift']());}catch(_0x44227f){_0x1e5f9d['push'](_0x1e5f9d['shift']());}}}(a157_0x50d8,0xd367e));import a157_0x3ac9d4 from'semver';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';function a157_0x47eb(_0xf5811,_0x59478b){_0xf5811=_0xf5811-0xf9;const _0x50d8a4=a157_0x50d8();let _0x47eb21=_0x50d8a4[_0xf5811];return _0x47eb21;}import{CliErrors}from'../errors.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';function a157_0x50d8(){const _0x31b019=['961474kqmASo','1704AxTWaI','11uvsFqK','9GzNjws','Recommended\x20stable:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','stableVersion','latest','npm\x20install\x20-g\x20','currentVersion','1351616fmNxnw','205283onadPF','upgradeMessage','minimumVersionMessage','2ggdzhH','join','6250340SjruGT','15078xQzffZ','Current\x20version:\x20','15809870ZXzuqI','3tUnAIX','unavailable','Upgrade\x20command:\x20','minimumVersion','405IkyHnj','6529272GrmXoQ'];a157_0x50d8=function(){return _0x31b019;};return a157_0x50d8();}export function evaluateCliVersionPolicy(_0x326028,_0x144ee5){const _0x1b24f1=a157_0x47eb,_0x231218=a157_0x3ac9d4['valid'](_0x326028)===_0x326028,_0x14c696=_0x144ee5?.['stableVersion']??null,_0x369b5d=_0x144ee5?.['minimumVersion']??null,_0x185f9f=Boolean(_0x231218&&_0x14c696&&a157_0x3ac9d4['lt'](_0x326028,_0x14c696)),_0x4c64a7=Boolean(_0x231218&&_0x369b5d&&a157_0x3ac9d4['lt'](_0x326028,_0x369b5d));return{'currentVersion':_0x326028,'stableVersion':_0x14c696,'minimumVersion':_0x369b5d,'needsUpgrade':_0x185f9f||_0x4c64a7,'belowMinimum':_0x4c64a7,'upgradeMessage':_0x144ee5?.[_0x1b24f1(0x103)],'minimumVersionMessage':_0x144ee5?.['minimumVersionMessage']};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x56166f){const _0x1c2738=a157_0x47eb;return _0x1c2738(0xff)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x56166f[_0x1c2738(0xfd)]??_0x1c2738(0xfe));}export function assertCliVersionSupported(_0x33df3b){const _0x2c997a=a157_0x47eb;if(!_0x33df3b['belowMinimum'])return;const _0x15ee0b=[_0x33df3b[_0x2c997a(0x104)],_0x2c997a(0x109)+_0x33df3b[_0x2c997a(0x100)],'Minimum\x20supported:\x20'+_0x33df3b[_0x2c997a(0x10e)],_0x2c997a(0xfb)+(_0x33df3b[_0x2c997a(0xfd)]??_0x2c997a(0x10c)),_0x2c997a(0x10d)+getCliUpgradeCommand(_0x33df3b)]['filter'](Boolean)[_0x2c997a(0x106)]('\x0a');throw CliErrors['validation'](_0x2c997a(0xfc),_0x15ee0b);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4453b1,_0x16ae36){const _0x1b7157=a158_0x2423,_0x26699c=_0x4453b1();while(!![]){try{const _0x59bd0a=parseInt(_0x1b7157(0x156))/0x1+parseInt(_0x1b7157(0x161))/0x2*(parseInt(_0x1b7157(0x160))/0x3)+-parseInt(_0x1b7157(0x151))/0x4+parseInt(_0x1b7157(0x15f))/0x5*(-parseInt(_0x1b7157(0x162))/0x6)+-parseInt(_0x1b7157(0x157))/0x7*(parseInt(_0x1b7157(0x153))/0x8)+-parseInt(_0x1b7157(0x15e))/0x9*(parseInt(_0x1b7157(0x158))/0xa)+parseInt(_0x1b7157(0x163))/0xb*(parseInt(_0x1b7157(0x152))/0xc);if(_0x59bd0a===_0x16ae36)break;else _0x26699c['push'](_0x26699c['shift']());}catch(_0x39cf45){_0x26699c['push'](_0x26699c['shift']());}}}(a158_0x2bd0,0xb9ac7));import a158_0x319ffc 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 a158_0x2bd0(){const _0x1cb49c=['119065memnjL','7cxPLKm','4638320AZqIUC','minVersion','minimumVersionMessage','now','latestVersion','finally','18KlIpKQ','85xZacUf','2505369pyhWaA','2yOJhFq','437298eEvpdt','22RgLaya','cli','object','timeout','recommendedVersion','stableVersion','then','2979684NwWvtF','16437516vZGlha','173272rEAwEp','json','trim'];a158_0x2bd0=function(){return _0x1cb49c;};return a158_0x2bd0();}function a158_0x2423(_0x4fed6c,_0x3cee52){_0x4fed6c=_0x4fed6c-0x150;const _0x2bd035=a158_0x2bd0();let _0x242330=_0x2bd035[_0x4fed6c];return _0x242330;}function pickString(_0x3783f0){const _0x1d1f35=a158_0x2423;return typeof _0x3783f0==='string'&&_0x3783f0[_0x1d1f35(0x155)]()?_0x3783f0[_0x1d1f35(0x155)]():null;}function pickStrictSemver(_0x334e40){const _0x5573e7=pickString(_0x334e40);return _0x5573e7&&a158_0x319ffc['valid'](_0x5573e7)===_0x5573e7?_0x5573e7:null;}export function normalizeCliVersionPolicy(_0x2b7e65){const _0x3ccb20=a158_0x2423;if(!_0x2b7e65||typeof _0x2b7e65!==_0x3ccb20(0x165))return null;const _0x4feb65=_0x2b7e65,_0x17b309=_0x4feb65[_0x3ccb20(0x164)]&&typeof _0x4feb65[_0x3ccb20(0x164)]===_0x3ccb20(0x165)?_0x4feb65['cli']:_0x4feb65,_0x2c1f21=pickStrictSemver(_0x17b309[_0x3ccb20(0x168)]??_0x17b309[_0x3ccb20(0x15c)]??_0x17b309[_0x3ccb20(0x167)]),_0x3fa530=pickStrictSemver(_0x17b309['minimumVersion']??_0x17b309[_0x3ccb20(0x159)]);if(!_0x2c1f21&&!_0x3fa530)return null;if(_0x2c1f21&&_0x3fa530&&a158_0x319ffc['gt'](_0x3fa530,_0x2c1f21))return null;return{'stableVersion':_0x2c1f21,'minimumVersion':_0x3fa530,'upgradeMessage':pickString(_0x17b309['upgradeMessage'])??undefined,'minimumVersionMessage':pickString(_0x17b309[_0x3ccb20(0x15a)])??undefined};}export async function fetchCliVersionPolicy(){const _0x2ae9da=a158_0x2423;try{const _0x4b2e0e=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':AbortSignal[_0x2ae9da(0x166)](FETCH_TIMEOUT_MS)});if(!_0x4b2e0e['ok'])return null;return normalizeCliVersionPolicy(await _0x4b2e0e[_0x2ae9da(0x154)]());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x4bdafd=a158_0x2423,_0x91177b=Date[_0x4bdafd(0x15b)]();if(hasCachedPolicy){const _0xc83e9e=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x91177b-cachedAt<_0xc83e9e)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x4bdafd(0x150)](_0x5c076e=>{const _0x4e90d3=_0x4bdafd;return cachedPolicy=_0x5c076e,cachedAt=Date[_0x4e90d3(0x15b)](),hasCachedPolicy=!![],_0x5c076e;})[_0x4bdafd(0x15d)](()=>{pendingPolicy=null;}),pendingPolicy;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a159_0x1c85(_0x30fe36,_0x3c40b9){_0x30fe36=_0x30fe36-0x141;const _0x2c321d=a159_0x2c32();let _0x1c856a=_0x2c321d[_0x30fe36];return _0x1c856a;}const a159_0x2da4e5=a159_0x1c85;(function(_0x1fb616,_0xdebbd2){const _0x2f444e=a159_0x1c85,_0x3e29d9=_0x1fb616();while(!![]){try{const _0x436a3e=-parseInt(_0x2f444e(0x159))/0x1*(-parseInt(_0x2f444e(0x14a))/0x2)+-parseInt(_0x2f444e(0x14f))/0x3*(parseInt(_0x2f444e(0x152))/0x4)+parseInt(_0x2f444e(0x145))/0x5*(-parseInt(_0x2f444e(0x143))/0x6)+parseInt(_0x2f444e(0x146))/0x7*(parseInt(_0x2f444e(0x164))/0x8)+-parseInt(_0x2f444e(0x16e))/0x9+-parseInt(_0x2f444e(0x14c))/0xa*(-parseInt(_0x2f444e(0x158))/0xb)+parseInt(_0x2f444e(0x169))/0xc;if(_0x436a3e===_0xdebbd2)break;else _0x3e29d9['push'](_0x3e29d9['shift']());}catch(_0x5e8e55){_0x3e29d9['push'](_0x3e29d9['shift']());}}}(a159_0x2c32,0xd7ace));import a159_0x587626 from'winston';import a159_0x35243b from'node:fs';import a159_0x304155 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';function a159_0x2c32(){const _0x4ca1a3=['printf','1401388cIuSEI','Failed\x20to\x20read\x20logs:','setLogPath','mkdirSync','existsSync','toISOString','231308sSpMnv','71647DDsFnS','red','now','Failed\x20to\x20clear\x20logs:','map','trim','error','clearLogs','createLogger','blue','split','8mGBIbm','logTask','transports','timestamp','join','24960420LszrzE','format','message','success','details','9094599SqXoWo','setRawCommand','stringify','initWinstonLogger','unknown','File','addColors','command','clear','logFileName','info','Completed:\x20','6nQcyPf','currentRawCommand','8689025JNKnJW','10118003BGrpFc','utf8','getWinstonInstance','logFilePath','10GVZwvH','readFileSync','380DQcmDT','winstonLogger','errors','9aTZqKY','Failed:\x20'];a159_0x2c32=function(){return _0x4ca1a3;};return a159_0x2c32();}class Logger{[a159_0x2da4e5(0x14d)];[a159_0x2da4e5(0x149)]='';[a159_0x2da4e5(0x144)]='';constructor(){}[a159_0x2da4e5(0x16f)](_0x2b9de3){const _0x4d3344=a159_0x2da4e5;this[_0x4d3344(0x144)]=_0x2b9de3;}[a159_0x2da4e5(0x154)](_0x15512a){const _0x2b6122=a159_0x2da4e5;this['logFilePath']=a159_0x304155[_0x2b6122(0x168)](_0x15512a,PRODUCT_CONFIG[_0x2b6122(0x177)]),this[_0x2b6122(0x14d)]&&this[_0x2b6122(0x14d)][_0x2b6122(0x176)](),this[_0x2b6122(0x171)]();}[a159_0x2da4e5(0x171)](){const _0x367a3c=a159_0x2da4e5,_0x11e374=a159_0x304155['dirname'](this[_0x367a3c(0x149)]);!a159_0x35243b[_0x367a3c(0x156)](_0x11e374)&&a159_0x35243b[_0x367a3c(0x155)](_0x11e374,{'recursive':!![]});const _0x2da7ec=a159_0x587626['format']['combine'](a159_0x587626[_0x367a3c(0x16a)][_0x367a3c(0x167)](),a159_0x587626[_0x367a3c(0x16a)][_0x367a3c(0x14e)]({'stack':!![]}),a159_0x587626[_0x367a3c(0x16a)][_0x367a3c(0x151)](_0x51eeb2=>{const _0x5b852c=_0x367a3c,_0x2872ac={'timestamp':_0x51eeb2[_0x5b852c(0x167)]||new Date()[_0x5b852c(0x157)](),'level':_0x51eeb2['level']||_0x5b852c(0x141),'command':_0x51eeb2[_0x5b852c(0x175)]||_0x5b852c(0x172),'rawCommand':_0x51eeb2['rawCommand']||this[_0x5b852c(0x144)]||undefined,'message':_0x51eeb2[_0x5b852c(0x16b)]||'','duration':_0x51eeb2['duration']||undefined,'details':_0x51eeb2[_0x5b852c(0x16d)]||undefined};return JSON[_0x5b852c(0x170)](_0x2872ac);}));this[_0x367a3c(0x14d)]=a159_0x587626[_0x367a3c(0x161)]({'level':_0x367a3c(0x141),'format':_0x2da7ec,'transports':[new a159_0x587626[(_0x367a3c(0x166))][(_0x367a3c(0x173))]({'filename':this[_0x367a3c(0x149)],'level':_0x367a3c(0x141)})],'silent':![]}),a159_0x587626[_0x367a3c(0x174)]({'success':'green','error':_0x367a3c(0x15a),'warn':'yellow','info':_0x367a3c(0x162)});}['info'](_0x292f47,_0x13f520,_0x13122d){const _0x3cb437=a159_0x2da4e5;if(!this[_0x3cb437(0x149)]||!this['winstonLogger'])return;this['winstonLogger']['info'](_0x13f520,{'command':_0x292f47,'details':_0x13122d});}['success'](_0x47db2f,_0xc6f2ae,_0x239f54,_0x489dab){const _0x128f57=a159_0x2da4e5;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x128f57(0x14d)]['log'](_0x128f57(0x141),_0xc6f2ae,{'level':_0x128f57(0x16c),'command':_0x47db2f,'duration':_0x239f54,'details':_0x489dab});}[a159_0x2da4e5(0x15f)](_0xc62a0d,_0x4dd79f,_0xee2a07){const _0xa52489=a159_0x2da4e5;if(!this['logFilePath']||!this[_0xa52489(0x14d)])return;this[_0xa52489(0x14d)][_0xa52489(0x15f)](_0x4dd79f,{'command':_0xc62a0d,'details':_0xee2a07});}['warn'](_0x40f387,_0x422032,_0x4bcc36){const _0x513e40=a159_0x2da4e5;if(!this[_0x513e40(0x149)]||!this[_0x513e40(0x14d)])return;this[_0x513e40(0x14d)]['warn'](_0x422032,{'command':_0x40f387,'details':_0x4bcc36});}async[a159_0x2da4e5(0x165)](_0x21b3ed,_0x348934,_0x157298){const _0x85f894=a159_0x2da4e5,_0x51aeb1=Date['now']();this['info'](_0x21b3ed,'Starting:\x20'+_0x348934);try{const _0x54d44b=await _0x157298(),_0x53980a=Date['now']()-_0x51aeb1;return this[_0x85f894(0x16c)](_0x21b3ed,_0x85f894(0x142)+_0x348934,_0x53980a),_0x54d44b;}catch(_0x128bef){const _0x220a6b=Date[_0x85f894(0x15b)]()-_0x51aeb1;this[_0x85f894(0x15f)](_0x21b3ed,_0x85f894(0x150)+_0x348934,{'error':_0x128bef instanceof Error?_0x128bef[_0x85f894(0x16b)]:String(_0x128bef),'duration':_0x220a6b});throw _0x128bef;}}['readLogs'](){const _0x1d9bf3=a159_0x2da4e5;try{if(!a159_0x35243b[_0x1d9bf3(0x156)](this[_0x1d9bf3(0x149)]))return[];const _0x5ec263=a159_0x35243b[_0x1d9bf3(0x14b)](this['logFilePath'],'utf8');return _0x5ec263[_0x1d9bf3(0x163)](/\r?\n/)['filter'](_0x280945=>_0x280945[_0x1d9bf3(0x15e)]())[_0x1d9bf3(0x15d)](_0x118848=>JSON['parse'](_0x118848));}catch(_0x2f68c4){return console['warn'](_0x1d9bf3(0x153),_0x2f68c4),[];}}[a159_0x2da4e5(0x160)](){const _0x2956c2=a159_0x2da4e5;try{a159_0x35243b['existsSync'](this[_0x2956c2(0x149)])&&a159_0x35243b['writeFileSync'](this[_0x2956c2(0x149)],'',_0x2956c2(0x147));}catch(_0x3e6ef9){console['warn'](_0x2956c2(0x15c),_0x3e6ef9);}}[a159_0x2da4e5(0x148)](){const _0x2ec83d=a159_0x2da4e5;return this[_0x2ec83d(0x14d)];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a160_0x15d4(_0x10b1d6,_0x183a1d){_0x10b1d6=_0x10b1d6-0x195;const _0x34791c=a160_0x3479();let _0x15d47f=_0x34791c[_0x10b1d6];return _0x15d47f;}const a160_0x37055b=a160_0x15d4;(function(_0xd9ba64,_0x3be902){const _0x59c5fe=a160_0x15d4,_0x40ebee=_0xd9ba64();while(!![]){try{const _0x4495a8=parseInt(_0x59c5fe(0x1a8))/0x1*(-parseInt(_0x59c5fe(0x19d))/0x2)+parseInt(_0x59c5fe(0x1a3))/0x3+-parseInt(_0x59c5fe(0x1ac))/0x4*(-parseInt(_0x59c5fe(0x19f))/0x5)+-parseInt(_0x59c5fe(0x1a7))/0x6*(-parseInt(_0x59c5fe(0x1a0))/0x7)+-parseInt(_0x59c5fe(0x199))/0x8*(parseInt(_0x59c5fe(0x1ab))/0x9)+-parseInt(_0x59c5fe(0x1a5))/0xa*(-parseInt(_0x59c5fe(0x1a9))/0xb)+parseInt(_0x59c5fe(0x1aa))/0xc*(parseInt(_0x59c5fe(0x1a1))/0xd);if(_0x4495a8===_0x3be902)break;else _0x40ebee['push'](_0x40ebee['shift']());}catch(_0x2a7ec8){_0x40ebee['push'](_0x40ebee['shift']());}}}(a160_0x3479,0xf20c2));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a160_0x37055b(0x195)]),MIN_SAFE_INTEGER=BigInt(Number[a160_0x37055b(0x1a4)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x4472b7){const _0x2572e8=a160_0x37055b;if(_0x4472b7[_0x2572e8(0x19a)]('.')||_0x4472b7[_0x2572e8(0x19a)]('e')||_0x4472b7[_0x2572e8(0x19a)]('E'))return![];const _0x36dc41=BigInt(_0x4472b7);return _0x36dc41>MAX_SAFE_INTEGER||_0x36dc41<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0xdff173){const _0x54d730=a160_0x37055b;let _0x56d01d='',_0x91d8c9=![],_0x5d6085=![];for(let _0x4ed5eb=0x0;_0x4ed5eb<_0xdff173[_0x54d730(0x19b)];){const _0x3bdffd=_0xdff173[_0x4ed5eb];if(_0x91d8c9){_0x56d01d+=_0x3bdffd,_0x4ed5eb+=0x1;if(_0x5d6085)_0x5d6085=![];else{if(_0x3bdffd==='\x5c')_0x5d6085=!![];else _0x3bdffd==='\x22'&&(_0x91d8c9=![]);}continue;}if(_0x3bdffd==='\x22'){_0x91d8c9=!![],_0x56d01d+=_0x3bdffd,_0x4ed5eb+=0x1;continue;}if(_0x3bdffd==='-'||_0x3bdffd>='0'&&_0x3bdffd<='9'){const _0x1b7d7c=JSON_NUMBER_PATTERN[_0x54d730(0x197)](_0xdff173[_0x54d730(0x196)](_0x4ed5eb))?.[0x0];if(_0x1b7d7c){_0x56d01d+=isUnsafeIntegerLiteral(_0x1b7d7c)?'\x22'+_0x1b7d7c+'\x22':_0x1b7d7c,_0x4ed5eb+=_0x1b7d7c['length'];continue;}}_0x56d01d+=_0x3bdffd,_0x4ed5eb+=0x1;}return _0x56d01d;}function a160_0x3479(){const _0xce613b=['476binKOP','33dbnFOR','144wOwwHL','1666845HFUgJi','307084sAKsyo','MAX_SAFE_INTEGER','slice','exec','defineProperty','40UqiuYu','includes','length','json','5204TukAjQ','text','105vcokLD','6706525kKEhVZ','59813zWtFyS','parse','665736Aceuwk','MIN_SAFE_INTEGER','1028710VnHWKV','getOwnPropertyDescriptor','6AWzFMf'];a160_0x3479=function(){return _0xce613b;};return a160_0x3479();}export function parseLosslessJson(_0x5a2c9e){const _0x43ed4a=a160_0x37055b;return JSON[_0x43ed4a(0x1a2)](quoteUnsafeIntegerLiterals(_0x5a2c9e));}export function installLosslessJsonResponseParser(){const _0x5127ac=a160_0x37055b;if(typeof Response==='undefined')return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response['prototype'],originalResponseJsonDescriptor=Object[_0x5127ac(0x1a6)](responseJsonPrototype,_0x5127ac(0x19c)),Object[_0x5127ac(0x198)](responseJsonPrototype,_0x5127ac(0x19c),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x1d9ee1(){const _0x3ddfa7=_0x5127ac;return parseLosslessJson(await this[_0x3ddfa7(0x19e)]());}}),restoreResponseJsonParser=()=>{const _0x4eb1dd=_0x5127ac;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object['defineProperty'](responseJsonPrototype,_0x4eb1dd(0x19c),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x4eb1dd(0x19c)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x9bc8e0,_0x1cccea){const _0x7f6cf4=a161_0x2890,_0x36c38d=_0x9bc8e0();while(!![]){try{const _0x3a9a28=parseInt(_0x7f6cf4(0xfe))/0x1*(-parseInt(_0x7f6cf4(0x10f))/0x2)+parseInt(_0x7f6cf4(0x10c))/0x3*(parseInt(_0x7f6cf4(0x10b))/0x4)+parseInt(_0x7f6cf4(0x105))/0x5*(-parseInt(_0x7f6cf4(0xff))/0x6)+parseInt(_0x7f6cf4(0x114))/0x7*(-parseInt(_0x7f6cf4(0x115))/0x8)+-parseInt(_0x7f6cf4(0xfb))/0x9+parseInt(_0x7f6cf4(0x10d))/0xa*(parseInt(_0x7f6cf4(0x10e))/0xb)+parseInt(_0x7f6cf4(0xfa))/0xc*(parseInt(_0x7f6cf4(0x113))/0xd);if(_0x3a9a28===_0x1cccea)break;else _0x36c38d['push'](_0x36c38d['shift']());}catch(_0x389912){_0x36c38d['push'](_0x36c38d['shift']());}}}(a161_0x21f6,0x3aa6a));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x53c52e){const _0x19e5c3=a161_0x2890;if(!_0x53c52e)return undefined;try{return parseLosslessJson(_0x53c52e);}catch{throw CliErrors[_0x19e5c3(0x111)](_0x19e5c3(0x110)+_0x53c52e);}}export function parseJsonParamsValue(_0x46f3a0){const _0x3f6f12=a161_0x2890;if(!_0x46f3a0)return undefined;try{return parseLosslessJson(_0x46f3a0);}catch{throw CliErrors[_0x3f6f12(0x111)](_0x3f6f12(0x110)+_0x46f3a0);}}function a161_0x21f6(){const _0x2bb1ea=['length','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','10dAPxNT','id[','string','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','isArray','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','32136QONlMn','3svDRGL','745880GrUVRa','11PPMqYF','166UDywHx','Invalid\x20JSON\x20for\x20--params:\x20','validation','\x20records\x20per\x20call;\x20received\x20','15341937cyRqFg','1182293CkDvjj','8OxtPzj','items','data\x20update\x20can\x20update\x20at\x20most\x20','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','object','12QDjstS','4039848inaqjs','isSafeInteger','join','1294HdMtEy','892092BeDjvY','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','map','test'];a161_0x21f6=function(){return _0x2bb1ea;};return a161_0x21f6();}function a161_0x2890(_0x1fab05,_0x88950e){_0x1fab05=_0x1fab05-0xf8;const _0x21f622=a161_0x21f6();let _0x2890a9=_0x21f622[_0x1fab05];return _0x2890a9;}export function parseBatchCreateItemsFromParams(_0x9dbaff){const _0x4b4a7d=a161_0x2890;if(Array[_0x4b4a7d(0x109)](_0x9dbaff))return _0x9dbaff;if(_0x9dbaff!==null&&_0x9dbaff!==undefined&&typeof _0x9dbaff===_0x4b4a7d(0xf9)&&Array[_0x4b4a7d(0x109)](_0x9dbaff['items']))return _0x9dbaff[_0x4b4a7d(0x116)];throw CliErrors[_0x4b4a7d(0x111)](_0x4b4a7d(0x100),'Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}function parseDataUpdateId(_0x2d1aae,_0x5604aa){const _0x35e731=a161_0x2890;if(typeof _0x2d1aae==='number'&&Number[_0x35e731(0xfc)](_0x2d1aae)&&_0x2d1aae>0x0)return _0x2d1aae;if(typeof _0x2d1aae===_0x35e731(0x107)){if(/^[1-9]\d*$/[_0x35e731(0x102)](_0x2d1aae))return _0x2d1aae;}throw CliErrors[_0x35e731(0x111)]('data\x20update\x20--params.'+_0x5604aa+_0x35e731(0x10a));}export function parseUpdateIdsFromParams(_0x1b80da){const _0x529b3f=a161_0x2890;if(_0x1b80da===null||_0x1b80da===undefined||typeof _0x1b80da!==_0x529b3f(0xf9)||Array['isArray'](_0x1b80da))throw CliErrors[_0x529b3f(0x111)](_0x529b3f(0x108),_0x529b3f(0x104));const _0x36154f=_0x1b80da['id'];if(_0x36154f===undefined||_0x36154f===null)throw CliErrors[_0x529b3f(0x111)](_0x529b3f(0x118),_0x529b3f(0x104));const _0x21bc8f=Array[_0x529b3f(0x109)](_0x36154f)?_0x36154f:[_0x36154f];if(_0x21bc8f[_0x529b3f(0x103)]===0x0)throw CliErrors[_0x529b3f(0x111)](_0x529b3f(0xf8));if(_0x21bc8f[_0x529b3f(0x103)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x529b3f(0x111)](_0x529b3f(0x117)+MAX_DATA_UPDATE_IDS+_0x529b3f(0x112)+_0x21bc8f[_0x529b3f(0x103)]+'.');return _0x21bc8f[_0x529b3f(0x101)]((_0x49b564,_0xd26daa)=>parseDataUpdateId(_0x49b564,Array[_0x529b3f(0x109)](_0x36154f)?_0x529b3f(0x106)+_0xd26daa+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x2e60ce,_0x13bfab){const _0x162c6c=a161_0x2890;if(Array['isArray'](_0x2e60ce['id'])&&_0x13bfab[_0x162c6c(0x103)]>0x1)return{..._0x2e60ce,'id':_0x13bfab[_0x162c6c(0xfd)](',')};return _0x2e60ce;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x285172,_0x1bd1fa){const _0x31b4bb=a162_0x58a0,_0x556956=_0x285172();while(!![]){try{const _0x5a69dd=parseInt(_0x31b4bb(0x1c1))/0x1+parseInt(_0x31b4bb(0x1c0))/0x2*(parseInt(_0x31b4bb(0x1b7))/0x3)+-parseInt(_0x31b4bb(0x1b8))/0x4*(-parseInt(_0x31b4bb(0x1bd))/0x5)+-parseInt(_0x31b4bb(0x1be))/0x6+-parseInt(_0x31b4bb(0x1bf))/0x7+-parseInt(_0x31b4bb(0x1bb))/0x8*(parseInt(_0x31b4bb(0x1c3))/0x9)+parseInt(_0x31b4bb(0x1c2))/0xa*(-parseInt(_0x31b4bb(0x1bc))/0xb);if(_0x5a69dd===_0x1bd1fa)break;else _0x556956['push'](_0x556956['shift']());}catch(_0x1d403d){_0x556956['push'](_0x556956['shift']());}}}(a162_0x4b21,0xc2bf4));export function normalizePositiveSafeInteger(_0x4cff63){const _0x492cee=a162_0x58a0;if(typeof _0x4cff63===_0x492cee(0x1ba))return Number[_0x492cee(0x1c4)](_0x4cff63)&&_0x4cff63>0x0?_0x4cff63:undefined;if(typeof _0x4cff63!=='string'||!/^\d+$/[_0x492cee(0x1b9)](_0x4cff63))return undefined;const _0x248d48=Number(_0x4cff63);return Number[_0x492cee(0x1c4)](_0x248d48)&&_0x248d48>0x0?_0x248d48:undefined;}function a162_0x58a0(_0x1e2665,_0x2ec3b5){_0x1e2665=_0x1e2665-0x1b7;const _0x4b21e4=a162_0x4b21();let _0x58a07c=_0x4b21e4[_0x1e2665];return _0x58a07c;}function a162_0x4b21(){const _0x4193dc=['532505DZCllE','5211222JRDjau','1984297nlemyQ','4574JQPvhu','647357GZXpuK','744950XXqDDO','768024MhVumX','isSafeInteger','1191TGISZz','52ZnypmC','test','number','16ZevVyX','121SoKqCJ'];a162_0x4b21=function(){return _0x4193dc;};return a162_0x4b21();}
|
package/lib/utils/redaction.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a163_0x35798b=a163_0x3137;(function(_0x3e663f,_0xcce76d){const _0x1da63f=a163_0x3137,_0x1637ec=_0x3e663f();while(!![]){try{const _0x4633ea=parseInt(_0x1da63f(0x10a))/0x1+-parseInt(_0x1da63f(0x10b))/0x2*(-parseInt(_0x1da63f(0xfb))/0x3)+-parseInt(_0x1da63f(0xfe))/0x4+parseInt(_0x1da63f(0x104))/0x5*(-parseInt(_0x1da63f(0x103))/0x6)+parseInt(_0x1da63f(0x111))/0x7+parseInt(_0x1da63f(0x10c))/0x8*(parseInt(_0x1da63f(0x10e))/0x9)+-parseInt(_0x1da63f(0x109))/0xa;if(_0x4633ea===_0xcce76d)break;else _0x1637ec['push'](_0x1637ec['shift']());}catch(_0x3caccb){_0x1637ec['push'](_0x1637ec['shift']());}}}(a163_0x54ef,0x1c9a5));const REDACTED_VALUE=a163_0x35798b(0x107),SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set(['comment','variables']),SENSITIVE_VALUE_KEYS=new Set([a163_0x35798b(0x110)]);function a163_0x54ef(){const _0x3d3c4f=['map','entries','[REDACTED]','match','1638470juBQjP','60790msasmS','2tbJAlk','72NSSuuU','object','130068dAMwap','push','comment','1039360QFniZK','replace','397446NsMROv','variables','has','352204FmymwI','test','fromEntries','isArray','toLowerCase','306SBnSmS','10075IEHXtY'];a163_0x54ef=function(){return _0x3d3c4f;};return a163_0x54ef();}export function isSensitiveKey(_0x4f9881){const _0x3c7d96=a163_0x35798b,_0x396ce0=_0x4f9881[_0x3c7d96(0xfa)](/_/g,'-')['toLowerCase']();return SENSITIVE_KEY_PATTERN[_0x3c7d96(0xff)](_0x396ce0);}export function isSensitiveFlagName(_0xad3a38){const _0x30b317=a163_0x35798b,_0x45035e=_0xad3a38[_0x30b317(0xfa)](/_/g,'-')[_0x30b317(0x102)]();return isSensitiveKey(_0x45035e)||SENSITIVE_FLAG_NAMES['has'](_0x45035e);}function redactVariableValues(_0x3d021c){const _0x17e59f=a163_0x35798b;if(Array[_0x17e59f(0x101)](_0x3d021c))return _0x3d021c['map'](_0x15b3bc=>redactVariableValues(_0x15b3bc));if(_0x3d021c&&typeof _0x3d021c===_0x17e59f(0x10d))return Object[_0x17e59f(0x100)](Object['entries'](_0x3d021c)[_0x17e59f(0x105)](([_0x12786a,_0x1de0cc])=>[_0x12786a,redactVariableValues(_0x1de0cc)]));return REDACTED_VALUE;}export function redactSensitiveValue(_0x5e6b0e){const _0x4001bd=a163_0x35798b;if(Array[_0x4001bd(0x101)](_0x5e6b0e))return _0x5e6b0e[_0x4001bd(0x105)](_0x3ae9dc=>redactSensitiveValue(_0x3ae9dc));if(!_0x5e6b0e||typeof _0x5e6b0e!==_0x4001bd(0x10d))return _0x5e6b0e;const _0x271989={};for(const [_0x37f551,_0x2775f8]of Object[_0x4001bd(0x106)](_0x5e6b0e)){const _0x1fc881=_0x37f551[_0x4001bd(0xfa)](/_/g,'-')[_0x4001bd(0x102)]();_0x271989[_0x37f551]=_0x1fc881===_0x4001bd(0xfc)?redactVariableValues(_0x2775f8):SENSITIVE_VALUE_KEYS[_0x4001bd(0xfd)](_0x1fc881)||isSensitiveKey(_0x37f551)?REDACTED_VALUE:redactSensitiveValue(_0x2775f8);}return _0x271989;}function a163_0x3137(_0x36e5fc,_0x451851){_0x36e5fc=_0x36e5fc-0xfa;const _0x54efc6=a163_0x54ef();let _0x313773=_0x54efc6[_0x36e5fc];return _0x313773;}export function redactCommandArgv(_0x3e35f4){const _0x51733c=a163_0x35798b,_0x3bcb2b=[];let _0x2aa7e7=![];for(const _0x1a822b of _0x3e35f4){if(_0x2aa7e7){_0x3bcb2b[_0x51733c(0x10f)](REDACTED_VALUE),_0x2aa7e7=![];continue;}const _0x4fcca2=_0x1a822b[_0x51733c(0x108)](/^--([^=]+)(?:=(.*))?$/);if(!_0x4fcca2||!isSensitiveFlagName(_0x4fcca2[0x1]??'')){_0x3bcb2b['push'](_0x1a822b);continue;}_0x3bcb2b[_0x51733c(0x10f)]('--'+_0x4fcca2[0x1]+(_0x4fcca2[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x4fcca2[0x2]===undefined&&(_0x2aa7e7=!![]);}return _0x3bcb2b;}export{REDACTED_VALUE};
|