@lovrabet/lovrabet-cli 2.2.7 → 2.3.0-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/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/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.d.ts +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 +12 -0
- package/lib/commands/config/init.js +1 -0
- package/lib/commands/config/shared.d.ts +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 +11 -0
- package/lib/config/domain-config.js +1 -0
- package/lib/config/schema.d.ts +7 -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.d.ts +4 -0
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.d.ts +10 -3
- 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.d.ts +52 -14
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.d.ts +15 -0
- package/lib/constant/region.js +1 -0
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.d.ts +2 -0
- package/lib/constant/url.js +1 -1
- package/lib/context.d.ts +2 -6
- 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/sdk-client.d.ts +2 -0
- 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.d.ts +3 -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/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.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.d.ts +15 -0
- package/lib/utils/access-key-redaction.js +1 -0
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.d.ts +12 -0
- package/lib/utils/cli-version-check.js +1 -0
- package/lib/utils/cli-version-policy.d.ts +12 -0
- package/lib/utils/cli-version-policy.js +1 -0
- 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/platform.js +1 -1
- package/lib/utils/update-notice.d.ts +2 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +3 -1
- package/skills/lovrabet/SKILL.md +11 -12
- package/skills/lovrabet/guides/troubleshooting.md +12 -8
- package/skills/lovrabet/references/lovrabet-app.md +1 -1
- package/skills/lovrabet/references/lovrabet-auth.md +7 -25
- package/skills/lovrabet/references/lovrabet-config-commands.md +42 -5
- package/skills/lovrabet/references/lovrabet-config.md +25 -5
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x14dd52,_0x42e90f){const _0x4cae09=a141_0x2587,_0x200a18=_0x14dd52();while(!![]){try{const _0x5e4e2d=parseInt(_0x4cae09(0x142))/0x1*(-parseInt(_0x4cae09(0x162))/0x2)+-parseInt(_0x4cae09(0x13b))/0x3+-parseInt(_0x4cae09(0x139))/0x4*(-parseInt(_0x4cae09(0x14d))/0x5)+-parseInt(_0x4cae09(0x149))/0x6+parseInt(_0x4cae09(0x158))/0x7+parseInt(_0x4cae09(0x137))/0x8*(-parseInt(_0x4cae09(0x164))/0x9)+-parseInt(_0x4cae09(0x15c))/0xa*(-parseInt(_0x4cae09(0x134))/0xb);if(_0x5e4e2d===_0x42e90f)break;else _0x200a18['push'](_0x200a18['shift']());}catch(_0x3f9e20){_0x200a18['push'](_0x200a18['shift']());}}}(a141_0x3f30,0x45802));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';function a141_0x3f30(){const _0x102b01=['skillCode','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','21000eLAxUy','appCode','targetScope','\x20has\x20unsupported\x20scope\x20\x22','trim','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','14otSXjd','path','63yxHpjW','length','boolean','manifest','replace','(unknown)','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20',',\x20or\x20directory\x20name.','Remote\x20Skill\x20','ignoreMetadataSkillCode','\x20has\x20scope=\x22','metadata','string','startsWith','Unable\x20to\x20resolve\x20skillCode\x20from\x20','Missing\x20','excludedFilePaths','displayName','slice','ignoreMetadataForPayload','\x20name\x20for\x20SkillHub\x20slug\x20generation.','3894PDmKhW','number','Invalid\x20','626048czEhgO','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','36mgphbq','isFile','1504968TkbPid','Skill\x20metadata\x20appCode\x20\x22','example','Skill\x20directory\x20not\x20found:\x20','description','isDirectory','skillName','1607YWbzuB','builtin','pushedAt','unknown','isArray','content','some','131376NPqqwh','scope','personal','version','272755VzcEgi','ignoreMetadataScope','object','ignoreInvalidMetadata','tags','company','name','sourceSessionId','validation','files','find','930356NGSnBc','utf8'];a141_0x3f30=function(){return _0x102b01;};return a141_0x3f30();}import{basename,resolve}from'node:path';import{parse as a141_0x3fa1b9}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 a141_0x2587(_0x43d7a6,_0x3af1fc){_0x43d7a6=_0x43d7a6-0x12a;const _0x3f308e=a141_0x3f30();let _0x2587cc=_0x3f308e[_0x43d7a6];return _0x2587cc;}export function resolvePushDirectoryIdentity(_0x99cb37,_0x414ed1,_0x222f99={}){const _0x4a54d9=a141_0x2587,_0x402e2e=resolvePushDirectoryRoot(_0x99cb37),_0x3f4007=readPushMetadataIfPresent(resolve(_0x402e2e,METADATA_FILE),{'ignoreInvalidMetadata':_0x222f99[_0x4a54d9(0x150)]});if(_0x3f4007?.[_0x4a54d9(0x15d)]&&_0x3f4007[_0x4a54d9(0x15d)]!==_0x414ed1&&!_0x222f99['allowAppCodeRetarget']&&!_0x222f99['ignoreMetadataAppCodeMismatch'])throw CliErrors[_0x4a54d9(0x155)](_0x4a54d9(0x13c)+_0x3f4007[_0x4a54d9(0x15d)]+_0x4a54d9(0x15b)+_0x414ed1+'\x22.');const _0x20a23f=resolvePushSkillCode(_0x402e2e,_0x414ed1,_0x3f4007,_0x222f99);if(!_0x20a23f)throw CliErrors[_0x4a54d9(0x155)](_0x4a54d9(0x12d)+SKILL_FILE+',\x20'+METADATA_FILE+_0x4a54d9(0x16b));return{'dir':_0x402e2e,'skillCode':_0x20a23f,'metadata':_0x3f4007};}export function readPushDirectory(_0x239ec0,_0x31b1b5,_0x31ebb1={}){const _0x4c943e=a141_0x2587,_0x30ae73=resolvePushDirectoryIdentity(_0x239ec0,_0x31b1b5,_0x31ebb1),_0xad6579=_0x30ae73['dir'],_0x44ff3e=resolve(_0xad6579,SKILL_FILE);if(!existsSync(_0x44ff3e)||!lstatSync(_0x44ff3e)[_0x4c943e(0x13a)]())throw CliErrors[_0x4c943e(0x155)](_0x4c943e(0x12e)+SKILL_FILE+':\x20'+_0x44ff3e);const _0x18305a=_0x30ae73[_0x4c943e(0x12a)],_0x23c2d4=_0x31ebb1[_0x4c943e(0x15e)]??_0x4c943e(0x14b);if(!_0x31ebb1[_0x4c943e(0x14e)]&&_0x18305a?.[_0x4c943e(0x14a)]===_0x4c943e(0x143))throw CliErrors[_0x4c943e(0x155)]('Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20'+METADATA_FILE+_0x4c943e(0x16e)+_0x18305a[_0x4c943e(0x14a)]+'\x22.');if(!_0x31ebb1[_0x4c943e(0x14e)]&&_0x23c2d4===_0x4c943e(0x14b)&&_0x18305a?.[_0x4c943e(0x14a)]&&_0x18305a[_0x4c943e(0x14a)]!==_0x4c943e(0x14b))throw CliErrors[_0x4c943e(0x155)](_0x4c943e(0x16a)+METADATA_FILE+_0x4c943e(0x16e)+_0x18305a[_0x4c943e(0x14a)]+'\x22.',_0x4c943e(0x161)+_0xad6579+_0x4c943e(0x138));const _0xb268f6=scanSkillDirectory(_0xad6579,{'excludedFilePaths':_0x31ebb1[_0x4c943e(0x12f)]}),_0x1500b9=buildSkillPackage(_0xb268f6),_0x22b55c=readFileSync(_0x44ff3e,_0x4c943e(0x159)),_0x131aee=_0x30ae73[_0x4c943e(0x15a)],_0x45eb10=_0x31ebb1[_0x4c943e(0x132)]?undefined:_0x18305a,_0xfb70e1=readSkillDisplayName(_0x22b55c);return{'skillCode':_0x131aee,'metadata':_0x18305a,'frontmatterDisplayName':_0xfb70e1,'input':{'skillCode':_0x131aee,'skillName':_0xfb70e1??_0x45eb10?.[_0x4c943e(0x141)],'description':_0x45eb10?.[_0x4c943e(0x13f)],'content':_0x22b55c,'files':_0x1500b9[_0x4c943e(0x167)],'packageBase64':_0x1500b9['packageBase64'],'tags':_0x45eb10?.[_0x4c943e(0x151)],'version':_0x45eb10?.[_0x4c943e(0x14c)],'sourceSessionId':_0x45eb10?.[_0x4c943e(0x154)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x50b093,_0x1a4e5a,_0x5c2f40,_0x11cc7e={}){const _0x5531c5=a141_0x2587,_0xa385c9=resolvePushDirectoryRoot(_0x50b093),_0x41b60c=readPushMetadataIfPresent(resolve(_0xa385c9,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x36f8bf=requireRemoteScope(_0x1a4e5a),_0x205cc4=readLocalSkillContent(_0xa385c9),_0x1cc8f7={..._0x1a4e5a,'appCode':_0x1a4e5a['appCode']??_0x5c2f40,'skillName':_0x1a4e5a[_0x5531c5(0x141)]??_0x41b60c?.['skillName'],'description':_0x1a4e5a['description']??_0x41b60c?.[_0x5531c5(0x13f)],'example':_0x1a4e5a['example']??_0x41b60c?.[_0x5531c5(0x13d)],'tags':Array[_0x5531c5(0x146)](_0x1a4e5a[_0x5531c5(0x151)])?_0x1a4e5a[_0x5531c5(0x151)]:_0x41b60c?.[_0x5531c5(0x151)],'sourceSessionId':_0x1a4e5a[_0x5531c5(0x154)]??_0x41b60c?.['sourceSessionId'],'content':_0x1a4e5a[_0x5531c5(0x147)]??_0x205cc4},_0xc712e4=buildMetadata(_0x1cc8f7,_0x36f8bf,_0x5c2f40,contentHash(_0x205cc4),_0x11cc7e['refreshedAt']);writeJsonAtomic(resolve(_0xa385c9,METADATA_FILE),_0xc712e4);}export function recordPushedRuntimeSkill(_0x249a45,_0x5a470c,_0x234e7c,_0x181132={}){const _0x570eb7=a141_0x2587,_0x2448b1=resolvePushDirectoryRoot(_0x249a45),_0xe9e803=scanSkillDirectory(_0x2448b1),_0x567a8f=_0xe9e803[_0x570eb7(0x157)](_0x36da21=>_0x36da21['path']===SKILL_FILE),_0x2cfa12=_0x567a8f?fileText(_0x567a8f):'',_0x1e0172=tryNormalizePackageManifest(_0x5a470c[_0x570eb7(0x156)]),_0x292305={..._0x5a470c,'content':_0x5a470c[_0x570eb7(0x147)]??_0x2cfa12,'files':_0x1e0172},_0x3519e9=_0x1e0172?normalizeLocalFiles(_0xe9e803)['filter'](_0x1fb5ba=>_0x1e0172[_0x570eb7(0x156)][_0x570eb7(0x148)](_0x1bc07a=>_0x1bc07a[_0x570eb7(0x163)]===_0x1fb5ba[_0x570eb7(0x163)])):undefined,_0x4948dd=buildMetadata(_0x292305,_0x181132['scope']??_0x570eb7(0x14b),_0x234e7c,contentHash(_0x292305[_0x570eb7(0x147)]??''),_0x181132[_0x570eb7(0x144)],_0x3519e9);writeJsonAtomic(resolve(_0x2448b1,METADATA_FILE),_0x4948dd);}export function deriveSkillCodeFromDirectory(_0x182dfe,_0x12bc2c){const _0x909685=a141_0x2587,_0x4bb001=basename(resolve(_0x182dfe)),_0x46ab6e=_0x12bc2c+'--';return _0x4bb001[_0x909685(0x12c)](_0x46ab6e)?_0x4bb001[_0x909685(0x131)](_0x46ab6e[_0x909685(0x165)]):_0x4bb001;}function resolvePushSkillCode(_0x44c301,_0x238fa4,_0x2f996b,_0x540dad){const _0x2687bf=a141_0x2587,_0x1c43b3=deriveSkillCodeFromSkillFile(_0x44c301)||deriveSkillCodeFromDirectory(_0x44c301,_0x238fa4);if(_0x540dad[_0x2687bf(0x16d)])return _0x1c43b3;return _0x2f996b?.[_0x2687bf(0x15a)]?.[_0x2687bf(0x160)]()||_0x1c43b3;}function deriveSkillCodeFromSkillFile(_0x183fee){const _0x48023d=a141_0x2587,_0x12b609=resolve(_0x183fee,SKILL_FILE);if(!existsSync(_0x12b609)||!lstatSync(_0x12b609)[_0x48023d(0x13a)]())return undefined;const _0x48429c=readFileSync(_0x12b609,'utf8'),_0x5de4b5=_0x48429c['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x5de4b5)return undefined;const _0x10f397=parseFrontmatterObject(_0x5de4b5[0x1]??''),_0x3cfc47=scalarToString(_0x10f397?.[_0x48023d(0x153)]);return _0x3cfc47?slugifySkillName(_0x3cfc47):undefined;}function readSkillDisplayName(_0xc2841d){const _0x572f11=a141_0x2587,_0x538062=_0xc2841d['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x538062)return undefined;const _0x1bee3f=parseFrontmatterObject(_0x538062[0x1]??'');return scalarToString(_0x1bee3f?.[_0x572f11(0x130)]);}function slugifySkillName(_0x3a3da7){const _0xa23fed=a141_0x2587,_0x1e3362=_0x3a3da7['trim']()['toLowerCase']()['replace'](/[^\p{L}\p{N}\p{So}]+/gu,'-')['replace'](/^-+/,'')[_0xa23fed(0x168)](/-+$/,'')[_0xa23fed(0x168)](/-{2,}/g,'-');if(!_0x1e3362)throw CliErrors[_0xa23fed(0x155)](_0xa23fed(0x136)+SKILL_FILE+_0xa23fed(0x133));return _0x1e3362;}function parseFrontmatterObject(_0x29ba25){const _0x383b76=a141_0x2587;try{const _0x249cc5=a141_0x3fa1b9(_0x29ba25);return _0x249cc5&&typeof _0x249cc5===_0x383b76(0x14f)&&!Array[_0x383b76(0x146)](_0x249cc5)?_0x249cc5:undefined;}catch{return undefined;}}function scalarToString(_0x283447){const _0x576282=a141_0x2587;if(typeof _0x283447===_0x576282(0x12b))return _0x283447[_0x576282(0x160)]();if(typeof _0x283447===_0x576282(0x135)||typeof _0x283447===_0x576282(0x166))return String(_0x283447);return undefined;}function resolvePushDirectoryRoot(_0x37c5c0){const _0x42cf94=a141_0x2587,_0x1fadc2=resolve(_0x37c5c0);if(!existsSync(_0x1fadc2))throw CliErrors[_0x42cf94(0x155)](_0x42cf94(0x13e)+_0x37c5c0);const _0x4bf80e=lstatSync(_0x1fadc2);if(_0x4bf80e[_0x42cf94(0x140)]())return _0x1fadc2;if(_0x4bf80e['isSymbolicLink']()){const _0xbcb910=realpathSync(_0x1fadc2);if(lstatSync(_0xbcb910)[_0x42cf94(0x140)]())return _0xbcb910;}throw CliErrors['validation'](_0x42cf94(0x13e)+_0x37c5c0);}function requireRemoteScope(_0x3cf4cf){const _0x47d266=a141_0x2587;if(_0x3cf4cf[_0x47d266(0x14a)]===_0x47d266(0x14b)||_0x3cf4cf[_0x47d266(0x14a)]===_0x47d266(0x152)||_0x3cf4cf[_0x47d266(0x14a)]===_0x47d266(0x143))return _0x3cf4cf[_0x47d266(0x14a)];throw CliErrors['validation'](_0x47d266(0x16c)+(_0x3cf4cf[_0x47d266(0x15a)]||_0x47d266(0x169))+_0x47d266(0x15f)+(_0x3cf4cf[_0x47d266(0x14a)]??_0x47d266(0x145))+'\x22.');}function readLocalSkillContent(_0x25318d){const _0x33d667=a141_0x2587,_0x336ae3=resolve(_0x25318d,SKILL_FILE);return existsSync(_0x336ae3)&&lstatSync(_0x336ae3)[_0x33d667(0x13a)]()?readFileSync(_0x336ae3,_0x33d667(0x159)):'';}function readPushMetadataIfPresent(_0xaad198,_0xcb2368={}){const _0x427d58=a141_0x2587;try{return readMetadataIfPresent(_0xaad198);}catch(_0x3fe2e6){if(_0xcb2368[_0x427d58(0x150)])return undefined;throw _0x3fe2e6;}}
|
|
1
|
+
(function(_0x565d3a,_0x55c86b){const _0x55aea3=a144_0x3e79,_0x1432f9=_0x565d3a();while(!![]){try{const _0x4db65f=-parseInt(_0x55aea3(0x8f))/0x1*(parseInt(_0x55aea3(0x85))/0x2)+parseInt(_0x55aea3(0xac))/0x3+-parseInt(_0x55aea3(0xa2))/0x4+parseInt(_0x55aea3(0x99))/0x5*(parseInt(_0x55aea3(0x8d))/0x6)+parseInt(_0x55aea3(0x81))/0x7*(parseInt(_0x55aea3(0x8e))/0x8)+-parseInt(_0x55aea3(0x7b))/0x9*(-parseInt(_0x55aea3(0xb2))/0xa)+parseInt(_0x55aea3(0xa9))/0xb*(-parseInt(_0x55aea3(0xa7))/0xc);if(_0x4db65f===_0x55c86b)break;else _0x1432f9['push'](_0x1432f9['shift']());}catch(_0x10d7dd){_0x1432f9['push'](_0x1432f9['shift']());}}}(a144_0x4050,0xba503));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';function a144_0x3e79(_0x4237da,_0x53f212){_0x4237da=_0x4237da-0x72;const _0x405053=a144_0x4050();let _0x3e7915=_0x405053[_0x4237da];return _0x3e7915;}import{basename,resolve}from'node:path';import{parse as a144_0x1c94f0}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(_0x21e6ba,_0x51f10c,_0x3a9768={}){const _0x473299=a144_0x3e79,_0x21d805=resolvePushDirectoryRoot(_0x21e6ba),_0x35ca34=readPushMetadataIfPresent(resolve(_0x21d805,METADATA_FILE),{'ignoreInvalidMetadata':_0x3a9768[_0x473299(0x79)]});if(_0x35ca34?.[_0x473299(0x7f)]&&_0x35ca34[_0x473299(0x7f)]!==_0x51f10c&&!_0x3a9768['allowAppCodeRetarget']&&!_0x3a9768[_0x473299(0x98)])throw CliErrors['validation'](_0x473299(0xb4)+_0x35ca34[_0x473299(0x7f)]+_0x473299(0x78)+_0x51f10c+'\x22.');const _0x1b5afd=resolvePushSkillCode(_0x21d805,_0x51f10c,_0x35ca34,_0x3a9768);if(!_0x1b5afd)throw CliErrors[_0x473299(0x8b)]('Unable\x20to\x20resolve\x20skillCode\x20from\x20'+SKILL_FILE+',\x20'+METADATA_FILE+_0x473299(0x72));return{'dir':_0x21d805,'skillCode':_0x1b5afd,'metadata':_0x35ca34};}export function readPushDirectory(_0xe3c8a,_0x4d66e6,_0x410316={}){const _0x16722a=a144_0x3e79,_0x50efa6=resolvePushDirectoryIdentity(_0xe3c8a,_0x4d66e6,_0x410316),_0x21f1e4=_0x50efa6[_0x16722a(0x96)],_0x383436=resolve(_0x21f1e4,SKILL_FILE);if(!existsSync(_0x383436)||!lstatSync(_0x383436)[_0x16722a(0xae)]())throw CliErrors[_0x16722a(0x8b)](_0x16722a(0xa4)+SKILL_FILE+':\x20'+_0x383436);const _0x265812=_0x50efa6['metadata'],_0x3f4f12=_0x410316[_0x16722a(0xa6)]??'personal';if(!_0x410316[_0x16722a(0x97)]&&_0x265812?.[_0x16722a(0x86)]===_0x16722a(0xaa))throw CliErrors[_0x16722a(0x8b)](_0x16722a(0x93)+METADATA_FILE+_0x16722a(0xb5)+_0x265812[_0x16722a(0x86)]+'\x22.');if(!_0x410316[_0x16722a(0x97)]&&_0x3f4f12===_0x16722a(0xa8)&&_0x265812?.[_0x16722a(0x86)]&&_0x265812['scope']!=='personal')throw CliErrors[_0x16722a(0x8b)](_0x16722a(0x7d)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x265812[_0x16722a(0x86)]+'\x22.',_0x16722a(0x75)+_0x21f1e4+'\x20to\x20submit\x20company\x20Skills\x20for\x20review.');const _0x215884=scanSkillDirectory(_0x21f1e4,{'excludedFilePaths':_0x410316[_0x16722a(0x9e)]}),_0x5270ad=buildSkillPackage(_0x215884),_0x105819=readFileSync(_0x383436,_0x16722a(0x9f)),_0x2e982b=_0x50efa6[_0x16722a(0xad)],_0xb4846f=_0x410316[_0x16722a(0x9b)]?undefined:_0x265812,_0x70e42b=readSkillDisplayName(_0x105819);return{'skillCode':_0x2e982b,'metadata':_0x265812,'frontmatterDisplayName':_0x70e42b,'input':{'skillCode':_0x2e982b,'skillName':_0x70e42b??_0xb4846f?.[_0x16722a(0x74)],'description':_0xb4846f?.[_0x16722a(0x89)],'content':_0x105819,'files':_0x5270ad[_0x16722a(0x8c)],'packageBase64':_0x5270ad[_0x16722a(0xb1)],'tags':_0xb4846f?.[_0x16722a(0x9d)],'version':_0xb4846f?.[_0x16722a(0x92)],'sourceSessionId':_0xb4846f?.[_0x16722a(0x95)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x50a2d9,_0xa4a71e,_0xc1a654,_0x13d600={}){const _0x1a02b0=a144_0x3e79,_0x16cab6=resolvePushDirectoryRoot(_0x50a2d9),_0x38e915=readPushMetadataIfPresent(resolve(_0x16cab6,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x5141c1=requireRemoteScope(_0xa4a71e),_0x4f9fa4=readLocalSkillContent(_0x16cab6),_0x2f923e={..._0xa4a71e,'appCode':_0xa4a71e[_0x1a02b0(0x7f)]??_0xc1a654,'skillName':_0xa4a71e[_0x1a02b0(0x74)]??_0x38e915?.[_0x1a02b0(0x74)],'description':_0xa4a71e[_0x1a02b0(0x89)]??_0x38e915?.[_0x1a02b0(0x89)],'example':_0xa4a71e[_0x1a02b0(0x91)]??_0x38e915?.[_0x1a02b0(0x91)],'tags':Array[_0x1a02b0(0x73)](_0xa4a71e[_0x1a02b0(0x9d)])?_0xa4a71e['tags']:_0x38e915?.['tags'],'sourceSessionId':_0xa4a71e[_0x1a02b0(0x95)]??_0x38e915?.['sourceSessionId'],'content':_0xa4a71e[_0x1a02b0(0xb0)]??_0x4f9fa4},_0x4d31d1=buildMetadata(_0x2f923e,_0x5141c1,_0xc1a654,contentHash(_0x4f9fa4),_0x13d600[_0x1a02b0(0x84)]);writeJsonAtomic(resolve(_0x16cab6,METADATA_FILE),_0x4d31d1);}export function recordPushedRuntimeSkill(_0x301647,_0x1882e5,_0x516509,_0x43c5dc={}){const _0x47f1d9=a144_0x3e79,_0x39e7af=resolvePushDirectoryRoot(_0x301647),_0x54508d=scanSkillDirectory(_0x39e7af),_0x419bdf=_0x54508d[_0x47f1d9(0x7c)](_0x28f414=>_0x28f414['path']===SKILL_FILE),_0x34b187=_0x419bdf?fileText(_0x419bdf):'',_0x39e418=tryNormalizePackageManifest(_0x1882e5[_0x47f1d9(0xaf)]),_0x21289b={..._0x1882e5,'content':_0x1882e5[_0x47f1d9(0xb0)]??_0x34b187,'files':_0x39e418},_0x52a811=_0x39e418?normalizeLocalFiles(_0x54508d)['filter'](_0x1cf6e6=>_0x39e418[_0x47f1d9(0xaf)][_0x47f1d9(0x90)](_0x350ae6=>_0x350ae6[_0x47f1d9(0xb6)]===_0x1cf6e6[_0x47f1d9(0xb6)])):undefined,_0x57869b=buildMetadata(_0x21289b,_0x43c5dc[_0x47f1d9(0x86)]??'personal',_0x516509,contentHash(_0x21289b['content']??''),_0x43c5dc[_0x47f1d9(0x76)],_0x52a811);writeJsonAtomic(resolve(_0x39e7af,METADATA_FILE),_0x57869b);}export function deriveSkillCodeFromDirectory(_0x222ad7,_0x5968e2){const _0xe4b9af=a144_0x3e79,_0x3612b0=basename(resolve(_0x222ad7)),_0x464ed3=_0x5968e2+'--';return _0x3612b0[_0xe4b9af(0x82)](_0x464ed3)?_0x3612b0[_0xe4b9af(0x7e)](_0x464ed3[_0xe4b9af(0xab)]):_0x3612b0;}function resolvePushSkillCode(_0x226bb0,_0x192725,_0x2671b0,_0x1a2a5a){const _0x137d32=a144_0x3e79,_0x335097=deriveSkillCodeFromSkillFile(_0x226bb0)||deriveSkillCodeFromDirectory(_0x226bb0,_0x192725);if(_0x1a2a5a['ignoreMetadataSkillCode'])return _0x335097;return _0x2671b0?.[_0x137d32(0xad)]?.['trim']()||_0x335097;}function deriveSkillCodeFromSkillFile(_0x1e6adf){const _0x1433a7=a144_0x3e79,_0x6be3ea=resolve(_0x1e6adf,SKILL_FILE);if(!existsSync(_0x6be3ea)||!lstatSync(_0x6be3ea)[_0x1433a7(0xae)]())return undefined;const _0x26e676=readFileSync(_0x6be3ea,_0x1433a7(0x9f)),_0x33327e=_0x26e676[_0x1433a7(0x8a)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x33327e)return undefined;const _0x2bb764=parseFrontmatterObject(_0x33327e[0x1]??''),_0x300c99=scalarToString(_0x2bb764?.[_0x1433a7(0x7a)]);return _0x300c99?slugifySkillName(_0x300c99):undefined;}function readSkillDisplayName(_0x345e2c){const _0x4a1485=a144_0x3e79,_0x25d5d3=_0x345e2c['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x25d5d3)return undefined;const _0x1da45c=parseFrontmatterObject(_0x25d5d3[0x1]??'');return scalarToString(_0x1da45c?.[_0x4a1485(0x94)]);}function slugifySkillName(_0x53a27b){const _0x4aa12a=a144_0x3e79,_0x21314f=_0x53a27b[_0x4aa12a(0x9c)]()[_0x4aa12a(0x9a)]()[_0x4aa12a(0xa1)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x4aa12a(0xa1)](/^-+/,'')[_0x4aa12a(0xa1)](/-+$/,'')[_0x4aa12a(0xa1)](/-{2,}/g,'-');if(!_0x21314f)throw CliErrors['validation']('Invalid\x20'+SKILL_FILE+'\x20name\x20for\x20SkillHub\x20slug\x20generation.');return _0x21314f;}function parseFrontmatterObject(_0x6ed8f9){try{const _0x5365d0=a144_0x1c94f0(_0x6ed8f9);return _0x5365d0&&typeof _0x5365d0==='object'&&!Array['isArray'](_0x5365d0)?_0x5365d0:undefined;}catch{return undefined;}}function a144_0x4050(){const _0x3a505b=['Skill\x20directory\x20not\x20found:\x20','replace','230560WlcjKc','(unknown)','Missing\x20','isDirectory','targetScope','1881276uPnVSr','personal','209vrTayh','builtin','length','1885338KcNBWW','skillCode','isFile','files','content','packageBase64','263830hXHsQH','isSymbolicLink','Skill\x20metadata\x20appCode\x20\x22','\x20has\x20scope=\x22','path',',\x20or\x20directory\x20name.','isArray','skillName','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','pushedAt','string','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','ignoreInvalidMetadata','name','315XmgAYz','find','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','slice','appCode','unknown','28aXRFts','startsWith','\x20has\x20unsupported\x20scope\x20\x22','refreshedAt','41068qXKHvc','scope','Remote\x20Skill\x20','number','description','match','validation','manifest','259878UeTtqP','2056232FkJfof','6aadzFR','some','example','version','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','displayName','sourceSessionId','dir','ignoreMetadataScope','ignoreMetadataAppCodeMismatch','155TlAZrA','toLowerCase','ignoreMetadataForPayload','trim','tags','excludedFilePaths','utf8'];a144_0x4050=function(){return _0x3a505b;};return a144_0x4050();}function scalarToString(_0x192d52){const _0x18e96f=a144_0x3e79;if(typeof _0x192d52===_0x18e96f(0x77))return _0x192d52[_0x18e96f(0x9c)]();if(typeof _0x192d52===_0x18e96f(0x88)||typeof _0x192d52==='boolean')return String(_0x192d52);return undefined;}function resolvePushDirectoryRoot(_0x3031f4){const _0x5840b5=a144_0x3e79,_0x5a80d8=resolve(_0x3031f4);if(!existsSync(_0x5a80d8))throw CliErrors[_0x5840b5(0x8b)](_0x5840b5(0xa0)+_0x3031f4);const _0x2b5cdd=lstatSync(_0x5a80d8);if(_0x2b5cdd['isDirectory']())return _0x5a80d8;if(_0x2b5cdd[_0x5840b5(0xb3)]()){const _0x45195c=realpathSync(_0x5a80d8);if(lstatSync(_0x45195c)[_0x5840b5(0xa5)]())return _0x45195c;}throw CliErrors[_0x5840b5(0x8b)](_0x5840b5(0xa0)+_0x3031f4);}function requireRemoteScope(_0x54a376){const _0x464db6=a144_0x3e79;if(_0x54a376[_0x464db6(0x86)]===_0x464db6(0xa8)||_0x54a376['scope']==='company'||_0x54a376['scope']===_0x464db6(0xaa))return _0x54a376['scope'];throw CliErrors[_0x464db6(0x8b)](_0x464db6(0x87)+(_0x54a376['skillCode']||_0x464db6(0xa3))+_0x464db6(0x83)+(_0x54a376['scope']??_0x464db6(0x80))+'\x22.');}function readLocalSkillContent(_0x42b85a){const _0x5ef608=a144_0x3e79,_0x2a948f=resolve(_0x42b85a,SKILL_FILE);return existsSync(_0x2a948f)&&lstatSync(_0x2a948f)[_0x5ef608(0xae)]()?readFileSync(_0x2a948f,_0x5ef608(0x9f)):'';}function readPushMetadataIfPresent(_0x35367f,_0x57266f={}){try{return readMetadataIfPresent(_0x35367f);}catch(_0x227c1d){if(_0x57266f['ignoreInvalidMetadata'])return undefined;throw _0x227c1d;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x456e8c,_0x213185){const _0x39412c=a145_0x3981,_0xd47dc=_0x456e8c();while(!![]){try{const _0x107687=-parseInt(_0x39412c(0x160))/0x1+parseInt(_0x39412c(0x15d))/0x2*(parseInt(_0x39412c(0x166))/0x3)+-parseInt(_0x39412c(0x162))/0x4+-parseInt(_0x39412c(0x161))/0x5+-parseInt(_0x39412c(0x15e))/0x6+parseInt(_0x39412c(0x164))/0x7+parseInt(_0x39412c(0x15b))/0x8;if(_0x107687===_0x213185)break;else _0xd47dc['push'](_0xd47dc['shift']());}catch(_0x40cd2a){_0xd47dc['push'](_0xd47dc['shift']());}}}(a145_0x37a8,0xdc7df));function a145_0x37a8(){const _0x57da5b=['5307595OioGJn','2718536swpPAi','validation','12256041PLWAYF','personal','163794owtqFl','length','builtin','company','9697272AOwtdC','Unsupported\x20runtime\x20Skill\x20scope:\x20','52LWmDSE','2768346DofuvH','includes','1276891nPNcJN'];a145_0x37a8=function(){return _0x57da5b;};return a145_0x37a8();}import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x3ac260){const _0x10a70e=a145_0x3981,_0x2e4bdd=_0x3ac260&&_0x3ac260[_0x10a70e(0x167)]>0x0?_0x3ac260:[_0x10a70e(0x165),_0x10a70e(0x15a),_0x10a70e(0x168)],_0x48f863=[];for(const _0x162ee2 of _0x2e4bdd){if(!isRuntimeSkillScope(_0x162ee2))throw CliErrors[_0x10a70e(0x163)](_0x10a70e(0x15c)+_0x162ee2);!_0x48f863[_0x10a70e(0x15f)](_0x162ee2)&&_0x48f863['push'](_0x162ee2);}return _0x48f863;}function a145_0x3981(_0x17c4c6,_0x4499bf){_0x17c4c6=_0x17c4c6-0x15a;const _0x37a872=a145_0x37a8();let _0x3981bc=_0x37a872[_0x17c4c6];return _0x3981bc;}export function isRuntimeSkillScope(_0x57a2a1){const _0x5adefc=a145_0x3981;return _0x57a2a1==='personal'||_0x57a2a1==='company'||_0x57a2a1===_0x5adefc(0x168);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a147_0x2cc8(_0x308296,_0x42f8eb){_0x308296=_0x308296-0x1cc;const _0x422cdc=a147_0x422c();let _0x2cc802=_0x422cdc[_0x308296];return _0x2cc802;}const a147_0xa3da6c=a147_0x2cc8;(function(_0x425390,_0x22a18d){const _0x46cae6=a147_0x2cc8,_0x4ac309=_0x425390();while(!![]){try{const _0x110eb5=parseInt(_0x46cae6(0x1dc))/0x1*(-parseInt(_0x46cae6(0x1cf))/0x2)+-parseInt(_0x46cae6(0x1e0))/0x3+-parseInt(_0x46cae6(0x1d7))/0x4*(-parseInt(_0x46cae6(0x1db))/0x5)+parseInt(_0x46cae6(0x1d2))/0x6+-parseInt(_0x46cae6(0x1ce))/0x7+parseInt(_0x46cae6(0x1de))/0x8+-parseInt(_0x46cae6(0x1d0))/0x9*(-parseInt(_0x46cae6(0x1d3))/0xa);if(_0x110eb5===_0x22a18d)break;else _0x4ac309['push'](_0x4ac309['shift']());}catch(_0x1b33b5){_0x4ac309['push'](_0x4ac309['shift']());}}}(a147_0x422c,0xc9984));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';function a147_0x422c(){const _0x272180=['1739dXmtnk','entries','9059520gsgwsL','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','4315959mdGWna','object','from','1980-01-01T00:00:00.000Z','code','11055877ociDLx','754UtLclM','86085bAFEgo','validation_error','7355862BFQEQw','1910DaGXDq','map','sort','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','4mXlIgn','validation','name','endsWith','1570335cERFyK'];a147_0x422c=function(){return _0x272180;};return a147_0x422c();}const ZIP_MTIME=new Date(a147_0xa3da6c(0x1cc));export function createDeterministicZipPackage(_0x3ba9db){const _0x3f859b={};for(const _0xaa64ae of normalizeLocalFiles(_0x3ba9db)){_0x3f859b[_0xaa64ae['path']]=fileContent(_0xaa64ae);}return Buffer['from'](zipSync(_0x3f859b,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x39b296){const _0x18b9eb=a147_0xa3da6c;if(_0x39b296['length']<0x16)throw CliErrors[_0x18b9eb(0x1d8)]('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');let _0x2507fa;try{_0x2507fa=unzipSync(_0x39b296,{'filter'(_0x496d6e){const _0x374e06=_0x18b9eb,_0x2a0fdd=normalizeSkillRelativePath(_0x496d6e[_0x374e06(0x1d9)]);if(_0x2a0fdd[_0x374e06(0x1da)]('/'))throw CliErrors[_0x374e06(0x1d8)](_0x374e06(0x1d6)+_0x2a0fdd);return!![];}});}catch(_0x34d760){if(isRuntimeSkillValidationError(_0x34d760))throw _0x34d760;throw CliErrors[_0x18b9eb(0x1d8)](_0x18b9eb(0x1df));}return Object[_0x18b9eb(0x1dd)](_0x2507fa)[_0x18b9eb(0x1d4)](([_0x395a27,_0x484443])=>({'path':normalizeSkillRelativePath(_0x395a27),'bytes':Buffer[_0x18b9eb(0x1e2)](_0x484443)}))[_0x18b9eb(0x1d5)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x3464d8){const _0x5501a8=a147_0xa3da6c;return typeof _0x3464d8===_0x5501a8(0x1e1)&&_0x3464d8!==null&&_0x5501a8(0x1cd)in _0x3464d8&&_0x3464d8[_0x5501a8(0x1cd)]===_0x5501a8(0x1d1);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1b21ec,_0x501463){const _0x505156=a148_0x186e,_0xa44d80=_0x1b21ec();while(!![]){try{const _0x4c58a4=-parseInt(_0x505156(0x1bd))/0x1+parseInt(_0x505156(0x1b4))/0x2+parseInt(_0x505156(0x194))/0x3*(-parseInt(_0x505156(0x1ab))/0x4)+parseInt(_0x505156(0x1a2))/0x5+-parseInt(_0x505156(0x1b6))/0x6*(-parseInt(_0x505156(0x198))/0x7)+parseInt(_0x505156(0x1ad))/0x8+-parseInt(_0x505156(0x19e))/0x9;if(_0x4c58a4===_0x501463)break;else _0xa44d80['push'](_0xa44d80['shift']());}catch(_0x5b4f38){_0xa44d80['push'](_0xa44d80['shift']());}}}(a148_0x47e9,0x943b0));function a148_0x47e9(){const _0x4c33c3=['zipSize','285rjsXwr','map','zipSha256','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','6620971bNzXzo','Runtime\x20Skill\x20package\x20is\x20missing\x20','string','toString','requireOssPath','Runtime\x20Skill\x20package\x20size\x20mismatch.','2827890TsfUdE','get','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','ossPath','4068390ucbIYn','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','has','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','length','schemaVersion','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','push','7856OcnFqI','toLowerCase','931496QZTpBO','some','isArray','base64','treeSha256','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','files','160410oZOTzz','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','6lNCIGI','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','bytes','size','validation','isSafeInteger','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','848231tNMuxb','path','Missing\x20','sha256'];a148_0x47e9=function(){return _0x4c33c3;};return a148_0x47e9();}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(_0x5d0641){const _0x3676b5=a148_0x186e,_0x49023c=normalizeLocalFiles(_0x5d0641);if(!_0x49023c[_0x3676b5(0x1ae)](_0x5d818c=>_0x5d818c[_0x3676b5(0x1be)]===SKILL_FILE))throw CliErrors[_0x3676b5(0x1ba)](_0x3676b5(0x1bf)+SKILL_FILE+'\x20in\x20Skill\x20file\x20package.');const _0x5dbab7=localFilesToManifestFiles(_0x49023c),_0x5e8cbc=createDeterministicZipPackage(_0x49023c);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x5dbab7),'zipSha256':bufferSha256(_0x5e8cbc),'zipSize':_0x5e8cbc[_0x3676b5(0x1a6)],'files':_0x5dbab7},'packageBytes':_0x5e8cbc,'packageBase64':_0x5e8cbc[_0x3676b5(0x19b)](_0x3676b5(0x1b0))};}export function verifyRuntimeSkillPackage(_0x50f1d9,_0x1f593d){const _0x113c17=a148_0x186e,_0x240259=normalizePackageManifest(_0x50f1d9,{'requireOssPath':![]});if(!_0x240259)throw CliErrors[_0x113c17(0x1ba)](_0x113c17(0x1a3));return extractAndVerifyPackage(_0x240259,_0x1f593d);}export function verifyRuntimeSkillBundle(_0x2dabc7,_0x4b68e4){const _0x2fa706=a148_0x186e,_0x99bfaa=normalizePackageManifest(_0x2dabc7,{'requireOssPath':![]});if(!_0x99bfaa)throw CliErrors[_0x2fa706(0x1ba)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x99bfaa,_0x4b68e4);}export function tryNormalizePackageManifest(_0x468db8){return normalizePackageManifest(_0x468db8,{'requireOssPath':![]});}function a148_0x186e(_0x10b502,_0x3b0e53){_0x10b502=_0x10b502-0x194;const _0x47e963=a148_0x47e9();let _0x186e4d=_0x47e963[_0x10b502];return _0x186e4d;}export function requirePackageBytes(_0x12f0b9,_0x443108){const _0x3269a8=a148_0x186e;if(!_0x443108||_0x443108['length']===0x0)throw CliErrors[_0x3269a8(0x1ba)]('Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20'+_0x12f0b9);return _0x443108;}export function extractDownloadedPackage(_0x565f07){const _0x23fa03=a148_0x186e,_0xe2d36b=parseZipPackage(_0x565f07)[_0x23fa03(0x195)](_0x3bf279=>({'path':_0x3bf279[_0x23fa03(0x1be)],'bytes':_0x3bf279[_0x23fa03(0x1b8)]}));if(!_0xe2d36b[_0x23fa03(0x1ae)](_0x42a75c=>_0x42a75c[_0x23fa03(0x1be)]===SKILL_FILE))throw CliErrors[_0x23fa03(0x1ba)](_0x23fa03(0x199)+SKILL_FILE+'.');return normalizeLocalFiles(_0xe2d36b);}export function localFilesToManifestFiles(_0x503633){const _0x1117e7=a148_0x186e;return normalizeLocalFiles(_0x503633)[_0x1117e7(0x195)](_0x1615be=>({'path':_0x1615be['path'],'sha256':fileHash(_0x1615be),'size':fileContent(_0x1615be)[_0x1117e7(0x1a6)]}));}function normalizePackageManifest(_0x3cc310,_0x3e4edf){const _0x20eb5a=a148_0x186e;if(!_0x3cc310||typeof _0x3cc310!=='object'||Array['isArray'](_0x3cc310))return undefined;const _0x5d4057=_0x3cc310,_0x162af3=typeof _0x5d4057[_0x20eb5a(0x1a1)]===_0x20eb5a(0x19a)?_0x5d4057[_0x20eb5a(0x1a1)]['trim']():undefined;if(_0x3e4edf[_0x20eb5a(0x19c)]&&!_0x162af3)return undefined;if(!Array[_0x20eb5a(0x1af)](_0x5d4057[_0x20eb5a(0x1b3)])||_0x5d4057[_0x20eb5a(0x1b3)][_0x20eb5a(0x1a6)]===0x0)return undefined;if(!isSha256Hex(_0x5d4057[_0x20eb5a(0x1b1)]))throw CliErrors[_0x20eb5a(0x1ba)](_0x20eb5a(0x1b7));if(!isSha256Hex(_0x5d4057['zipSha256']))throw CliErrors[_0x20eb5a(0x1ba)](_0x20eb5a(0x1b2));if(!Number[_0x20eb5a(0x1bb)](_0x5d4057[_0x20eb5a(0x1c1)])||_0x5d4057[_0x20eb5a(0x1c1)]<0x0)throw CliErrors['validation'](_0x20eb5a(0x1a9));const _0x271118=normalizeManifestFiles(_0x5d4057[_0x20eb5a(0x1b3)]);if(!_0x271118[_0x20eb5a(0x1ae)](_0x32dff1=>_0x32dff1[_0x20eb5a(0x1be)]===SKILL_FILE))throw CliErrors['validation'](_0x20eb5a(0x1b5)+SKILL_FILE+'.');const _0x575193=fileTreeHash(_0x271118);if(_0x575193!==_0x5d4057[_0x20eb5a(0x1b1)]['toLowerCase']())throw CliErrors[_0x20eb5a(0x1ba)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number['isSafeInteger'](_0x5d4057['schemaVersion'])?_0x5d4057[_0x20eb5a(0x1a7)]:0x2,'ossPath':_0x162af3,'treeSha256':_0x575193,'zipSha256':_0x5d4057[_0x20eb5a(0x196)][_0x20eb5a(0x1ac)](),'zipSize':_0x5d4057[_0x20eb5a(0x1c1)],'files':_0x271118};}function extractAndVerifyPackage(_0x2f3f1b,_0x29bd55){const _0x14377f=a148_0x186e,_0x166a33=normalizePackageManifest(_0x2f3f1b,{'requireOssPath':![]});if(!_0x166a33)throw CliErrors[_0x14377f(0x1ba)](_0x14377f(0x1a3));if(_0x29bd55[_0x14377f(0x1a6)]!==_0x166a33[_0x14377f(0x1c1)])throw CliErrors[_0x14377f(0x1ba)](_0x14377f(0x19d));const _0x48b258=bufferSha256(_0x29bd55);if(_0x48b258!==_0x166a33['zipSha256'])throw CliErrors[_0x14377f(0x1ba)](_0x14377f(0x1a8));return extractAndVerifyPackageFiles(_0x166a33,_0x29bd55);}function extractAndVerifyPackageFiles(_0x15a730,_0x3e6bf0){const _0xfd19c=a148_0x186e,_0x2fe36d=parseZipPackage(_0x3e6bf0);if(_0x2fe36d['length']!==_0x15a730[_0xfd19c(0x1b3)]['length'])throw CliErrors[_0xfd19c(0x1ba)](_0xfd19c(0x1bc));const _0x19bd9e=new Map();for(const _0x30da2b of _0x2fe36d){if(_0x19bd9e[_0xfd19c(0x1a4)](_0x30da2b[_0xfd19c(0x1be)]))throw CliErrors[_0xfd19c(0x1ba)]('Duplicate\x20Skill\x20package\x20entry:\x20'+_0x30da2b['path']);_0x19bd9e['set'](_0x30da2b[_0xfd19c(0x1be)],_0x30da2b);}const _0x3fcae5=[];for(const _0x79ceb9 of _0x15a730[_0xfd19c(0x1b3)]){const _0x4d1070=_0x19bd9e[_0xfd19c(0x19f)](_0x79ceb9[_0xfd19c(0x1be)]);if(!_0x4d1070)throw CliErrors[_0xfd19c(0x1ba)](_0xfd19c(0x1a5)+_0x79ceb9[_0xfd19c(0x1be)]);if(_0x4d1070[_0xfd19c(0x1b8)][_0xfd19c(0x1a6)]!==_0x79ceb9[_0xfd19c(0x1b9)])throw CliErrors[_0xfd19c(0x1ba)](_0xfd19c(0x1a0)+_0x79ceb9[_0xfd19c(0x1be)]);const _0x3a2657=bufferSha256(_0x4d1070[_0xfd19c(0x1b8)]);if(_0x3a2657!==_0x79ceb9[_0xfd19c(0x1c0)])throw CliErrors[_0xfd19c(0x1ba)](_0xfd19c(0x197)+_0x79ceb9['path']);_0x3fcae5[_0xfd19c(0x1aa)]({'path':_0x79ceb9['path'],'bytes':_0x4d1070[_0xfd19c(0x1b8)]});}return normalizeLocalFiles(_0x3fcae5);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4e9406,_0x43f692){var _0x2ae2f3=a149_0x2a9b,_0x2260c1=_0x4e9406();while(!![]){try{var _0x2fd836=parseInt(_0x2ae2f3(0xc5))/0x1+-parseInt(_0x2ae2f3(0xc1))/0x2+-parseInt(_0x2ae2f3(0xc7))/0x3+parseInt(_0x2ae2f3(0xc6))/0x4*(parseInt(_0x2ae2f3(0xc4))/0x5)+parseInt(_0x2ae2f3(0xc3))/0x6*(parseInt(_0x2ae2f3(0xc2))/0x7)+-parseInt(_0x2ae2f3(0xc0))/0x8+parseInt(_0x2ae2f3(0xc8))/0x9;if(_0x2fd836===_0x43f692)break;else _0x2260c1['push'](_0x2260c1['shift']());}catch(_0x4c96ba){_0x2260c1['push'](_0x2260c1['shift']());}}}(a149_0x3544,0x85443));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';function a149_0x2a9b(_0xaffa4b,_0x438d31){_0xaffa4b=_0xaffa4b-0xc0;var _0x354468=a149_0x3544();var _0x2a9b3c=_0x354468[_0xaffa4b];return _0x2a9b3c;}export{resolveRuntimeSkillInstallTarget}from'./runtime-skill-sync/install-target.js';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';function a149_0x3544(){var _0x1582d8=['648jREaSQ','1652415NQdwvH','898172uVCvVX','4CvucpE','1900656AXCrVB','6691338UwiioV','2072064QLcYjO','1665108TmxnuQ','19369zPzEXV'];a149_0x3544=function(){return _0x1582d8;};return a149_0x3544();}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 a150_0x465a5a=a150_0x450e;(function(_0x961e4f,_0x5dcae3){const _0x1f6a0c=a150_0x450e,_0x9ba269=_0x961e4f();while(!![]){try{const _0x573117=parseInt(_0x1f6a0c(0x19f))/0x1+-parseInt(_0x1f6a0c(0x1b5))/0x2+-parseInt(_0x1f6a0c(0x1a3))/0x3*(-parseInt(_0x1f6a0c(0x1b4))/0x4)+-parseInt(_0x1f6a0c(0x1b6))/0x5*(parseInt(_0x1f6a0c(0x1a8))/0x6)+parseInt(_0x1f6a0c(0x1b0))/0x7+parseInt(_0x1f6a0c(0x1a6))/0x8*(parseInt(_0x1f6a0c(0x1ba))/0x9)+-parseInt(_0x1f6a0c(0x1a9))/0xa;if(_0x573117===_0x5dcae3)break;else _0x9ba269['push'](_0x9ba269['shift']());}catch(_0x539605){_0x9ba269['push'](_0x9ba269['shift']());}}}(a150_0x4104,0x8207f));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a150_0x450e(_0x2e7603,_0x167848){_0x2e7603=_0x2e7603-0x198;const _0x410496=a150_0x4104();let _0x450e15=_0x410496[_0x2e7603];return _0x450e15;}export const SKILL_LOCK_RELATIVE_PATH=join('.agents','.skill-lock.json');export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a150_0x465a5a(0x1ac),'skills'),join(a150_0x465a5a(0x19c),a150_0x465a5a(0x1a0))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x2eb6ba,_0x22688f){const _0x234748=a150_0x465a5a;if(!existsSync(_0x2eb6ba))return{'kind':_0x234748(0x199)};let _0x4b106f;try{_0x4b106f=JSON[_0x234748(0x1a1)](readFileSync(_0x2eb6ba,'utf8'));}catch(_0x255b8f){return{'kind':_0x234748(0x19a),'reason':_0x2eb6ba+_0x234748(0x19e)+_0x255b8f[_0x234748(0x19d)]};}const _0x3eec3f=_0x4b106f;if(typeof _0x3eec3f?.[_0x234748(0x1aa)]!==_0x234748(0x1b7)||!SUPPORTED_LOCK_VERSIONS['includes'](_0x3eec3f[_0x234748(0x1aa)]))return{'kind':'unusable','reason':_0x2eb6ba+_0x234748(0x19b)+String(_0x3eec3f?.[_0x234748(0x1aa)])};if(!_0x3eec3f[_0x234748(0x1a0)]||typeof _0x3eec3f['skills']!==_0x234748(0x1af))return{'kind':_0x234748(0x19a),'reason':_0x2eb6ba+'\x20has\x20no\x20skills\x20map'};return _0x3eec3f[_0x234748(0x1a0)][_0x22688f]?{'kind':_0x234748(0x1b2)}:{'kind':_0x234748(0x199)};}export function resolveInstalledSkill(_0x284f38,_0x27b26b){const _0x2e2282=a150_0x465a5a,_0x3bd8af=_0x27b26b?.[_0x2e2282(0x1a4)]??homedir(),_0x155abf=_0x27b26b?.[_0x2e2282(0x1b3)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x2e2282(0x1ab)](_0x176318=>join(_0x3bd8af,_0x176318)),_0x382b78=_0x27b26b?.[_0x2e2282(0x1a7)]??join(_0x3bd8af,SKILL_LOCK_RELATIVE_PATH),_0x34f9d2=_0x155abf['map'](_0x291831=>join(_0x291831,_0x284f38,_0x2e2282(0x198))),_0x3dadbb=_0x34f9d2['find'](_0xca78ff=>existsSync(_0xca78ff));if(_0x3dadbb)return{'state':_0x2e2282(0x1b8),'path':_0x3dadbb};const _0x10e6e8=readLockLookup(_0x382b78,_0x284f38);if(_0x10e6e8[_0x2e2282(0x1a5)]===_0x2e2282(0x19a))return{'state':_0x2e2282(0x1b1),'reason':_0x10e6e8[_0x2e2282(0x1ad)]};if(_0x10e6e8[_0x2e2282(0x1a5)]==='recorded')return{'state':'unverifiable','reason':_0x382b78+_0x2e2282(0x1ae)+_0x284f38+_0x2e2282(0x1b9)+('('+_0x34f9d2['join'](',\x20')+')')};return{'state':_0x2e2282(0x1a2),'checked':_0x34f9d2};}function a150_0x4104(){const _0x1356b2=['2450196qHYjyc','unverifiable','recorded','globalSkillsDirs','188otHRnR','929100NzndaR','20290TdKMQM','number','present','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','11889wNYzuC','SKILL.md','not-recorded','unusable','\x20uses\x20unsupported\x20version\x20','.claude','message','\x20is\x20unreadable:\x20','280558yXWocB','skills','parse','absent','64569hQjfLU','home','kind','5000WeQrtQ','lockFile','264iQQhTa','12920830jZTVqW','version','map','.agents','reason','\x20records\x20\x22','object'];a150_0x4104=function(){return _0x1356b2;};return a150_0x4104();}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Masks a CLI AccessKey for user-visible authentication output.
|
|
3
|
+
* Short or malformed values are fully redacted so invalid secrets are never echoed.
|
|
4
|
+
*/
|
|
5
|
+
export declare function maskCliAccessKey(value: unknown): string;
|
|
6
|
+
/**
|
|
7
|
+
* Creates a display-only copy of CLI config with credentials redacted.
|
|
8
|
+
*
|
|
9
|
+
* This intentionally handles only known CLI authentication paths. It must not
|
|
10
|
+
* recursively scan arbitrary objects because those may contain business data
|
|
11
|
+
* whose field happens to be named `accessKey`.
|
|
12
|
+
*/
|
|
13
|
+
export declare function redactCliConfigCredentials(config: Record<string, unknown>): Record<string, unknown>;
|
|
14
|
+
/** Redacts a value only when it came from a known CLI credential config path. */
|
|
15
|
+
export declare function redactCliConfigValue(path: string, value: unknown): unknown;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a151_0x3565(_0x211ca2,_0x3942fd){_0x211ca2=_0x211ca2-0xc8;const _0x31e9b1=a151_0x31e9();let _0x356533=_0x31e9b1[_0x211ca2];return _0x356533;}const a151_0xb895f8=a151_0x3565;(function(_0x493758,_0x4ed712){const _0x306102=a151_0x3565,_0x2225da=_0x493758();while(!![]){try{const _0x17f5a4=parseInt(_0x306102(0xd1))/0x1*(-parseInt(_0x306102(0xdb))/0x2)+parseInt(_0x306102(0xe1))/0x3*(-parseInt(_0x306102(0xd8))/0x4)+-parseInt(_0x306102(0xe2))/0x5*(parseInt(_0x306102(0xd0))/0x6)+-parseInt(_0x306102(0xd5))/0x7+parseInt(_0x306102(0xc8))/0x8*(parseInt(_0x306102(0xde))/0x9)+-parseInt(_0x306102(0xcb))/0xa+parseInt(_0x306102(0xd3))/0xb;if(_0x17f5a4===_0x4ed712)break;else _0x2225da['push'](_0x2225da['shift']());}catch(_0x1b61cc){_0x2225da['push'](_0x2225da['shift']());}}}(a151_0x31e9,0x3df13));function a151_0x31e9(){const _0x58c30f=['14367TtWLkb','3340ffIOFN','192952JkFFmp','hasOwnProperty','<redacted>','1444290RxbMPM','repeat','string','test','isArray','1602JDHLeS','341336vOjukQ','accessKey','13945767nGkgle','call','3468815cWEVHy','apps','prototype','100UIEutT','fromEntries','entries','2SUXgIG','length','map','99foAgdg','object','slice'];a151_0x31e9=function(){return _0x58c30f;};return a151_0x31e9();}const REDACTED_ACCESS_KEY=a151_0xb895f8(0xca);export function maskCliAccessKey(_0xfe5923){const _0x3a28d1=a151_0xb895f8;if(typeof _0xfe5923!==_0x3a28d1(0xcd)||_0xfe5923[_0x3a28d1(0xdc)]<=0x8)return REDACTED_ACCESS_KEY;return''+_0xfe5923[_0x3a28d1(0xe0)](0x0,0x8)+'*'[_0x3a28d1(0xcc)](_0xfe5923[_0x3a28d1(0xdc)]-0x8);}export function redactCliConfigCredentials(_0x2e64b5){const _0x465146=a151_0xb895f8,_0x388fee={..._0x2e64b5};return Object[_0x465146(0xd7)][_0x465146(0xc9)][_0x465146(0xd4)](_0x388fee,_0x465146(0xd2))&&(_0x388fee[_0x465146(0xd2)]=maskCliAccessKey(_0x388fee[_0x465146(0xd2)])),_0x388fee[_0x465146(0xd6)]&&typeof _0x388fee[_0x465146(0xd6)]===_0x465146(0xdf)&&!Array[_0x465146(0xcf)](_0x388fee[_0x465146(0xd6)])&&(_0x388fee[_0x465146(0xd6)]=redactLegacyAppCredentials(_0x388fee[_0x465146(0xd6)])),_0x388fee;}export function redactCliConfigValue(_0x30f37c,_0x3a7927){const _0x26ee4e=a151_0xb895f8;if(_0x30f37c==='accessKey'||/^apps\.[^.]+\.accessKey$/['test'](_0x30f37c))return maskCliAccessKey(_0x3a7927);if(_0x30f37c===_0x26ee4e(0xd6)&&_0x3a7927&&typeof _0x3a7927===_0x26ee4e(0xdf)&&!Array[_0x26ee4e(0xcf)](_0x3a7927))return redactLegacyAppCredentials(_0x3a7927);if(/^apps\.[^.]+$/[_0x26ee4e(0xce)](_0x30f37c)&&_0x3a7927&&typeof _0x3a7927===_0x26ee4e(0xdf)&&!Array[_0x26ee4e(0xcf)](_0x3a7927)){const _0xfe2629=_0x3a7927;return Object['prototype']['hasOwnProperty'][_0x26ee4e(0xd4)](_0xfe2629,_0x26ee4e(0xd2))?{..._0xfe2629,'accessKey':maskCliAccessKey(_0xfe2629[_0x26ee4e(0xd2)])}:_0x3a7927;}return _0x3a7927;}function redactLegacyAppCredentials(_0x343f3a){const _0x291e2b=a151_0xb895f8;return Object[_0x291e2b(0xd9)](Object[_0x291e2b(0xda)](_0x343f3a)[_0x291e2b(0xdd)](([_0x1ec559,_0x27aa4f])=>{const _0x3bd630=_0x291e2b;if(!_0x27aa4f||typeof _0x27aa4f!=='object'||Array[_0x3bd630(0xcf)](_0x27aa4f))return[_0x1ec559,_0x27aa4f];const _0x69d542={..._0x27aa4f};return Object[_0x3bd630(0xd7)][_0x3bd630(0xc9)][_0x3bd630(0xd4)](_0x69d542,_0x3bd630(0xd2))&&(_0x69d542[_0x3bd630(0xd2)]=maskCliAccessKey(_0x69d542[_0x3bd630(0xd2)])),[_0x1ec559,_0x69d542];}));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a152_0x5612(_0x422876,_0x44a503){_0x422876=_0x422876-0x11e;const _0x2ae8b1=a152_0x2ae8();let _0x561239=_0x2ae8b1[_0x422876];return _0x561239;}(function(_0x16b7d6,_0x526fdd){const _0x411cb0=a152_0x5612,_0x727cae=_0x16b7d6();while(!![]){try{const _0x2d32a7=parseInt(_0x411cb0(0x124))/0x1+parseInt(_0x411cb0(0x121))/0x2+parseInt(_0x411cb0(0x120))/0x3+parseInt(_0x411cb0(0x122))/0x4+-parseInt(_0x411cb0(0x123))/0x5+parseInt(_0x411cb0(0x11e))/0x6*(parseInt(_0x411cb0(0x125))/0x7)+-parseInt(_0x411cb0(0x11f))/0x8;if(_0x2d32a7===_0x526fdd)break;else _0x727cae['push'](_0x727cae['shift']());}catch(_0x4d2152){_0x727cae['push'](_0x727cae['shift']());}}}(a152_0x2ae8,0x6fcb2));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a152_0x2ae8(){const _0x206f0a=['5220896YOFZYa','343614eBiJUV','401734bpzPex','408016KGAEBE','626560xiItWF','22919whwteC','5568514iTyPUX','6BwkyZJ'];a152_0x2ae8=function(){return _0x206f0a;};return a152_0x2ae8();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type CliVersionPolicy } from "../utils/cli-version-policy.js";
|
|
2
|
+
export interface CliVersionCheckResult extends CliVersionPolicy {
|
|
3
|
+
currentVersion: string;
|
|
4
|
+
needsUpgrade: boolean;
|
|
5
|
+
belowMinimum: boolean;
|
|
6
|
+
}
|
|
7
|
+
/** Strictly evaluate a current version against an already normalized policy. */
|
|
8
|
+
export declare function evaluateCliVersionPolicy(currentVersion: string, policy: CliVersionPolicy | null): CliVersionCheckResult;
|
|
9
|
+
export declare function checkCliVersion(): Promise<CliVersionCheckResult>;
|
|
10
|
+
export declare function getCliUpgradeCommand(result: Pick<CliVersionCheckResult, "stableVersion">): string;
|
|
11
|
+
/** Block unsupported clients before the target command's execute function runs. */
|
|
12
|
+
export declare function assertCliVersionSupported(result: CliVersionCheckResult): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x671945,_0x1df166){const _0x2387f8=a153_0x4d97,_0x2159ab=_0x671945();while(!![]){try{const _0x339f15=-parseInt(_0x2387f8(0x14d))/0x1*(-parseInt(_0x2387f8(0x141))/0x2)+-parseInt(_0x2387f8(0x145))/0x3+parseInt(_0x2387f8(0x13f))/0x4*(-parseInt(_0x2387f8(0x14e))/0x5)+-parseInt(_0x2387f8(0x14b))/0x6+parseInt(_0x2387f8(0x148))/0x7*(parseInt(_0x2387f8(0x140))/0x8)+parseInt(_0x2387f8(0x13e))/0x9+-parseInt(_0x2387f8(0x13d))/0xa;if(_0x339f15===_0x1df166)break;else _0x2159ab['push'](_0x2159ab['shift']());}catch(_0x5c26d4){_0x2159ab['push'](_0x2159ab['shift']());}}}(a153_0x2208,0xe6fd4));import a153_0x199b52 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 a153_0x4d97(_0x436ad2,_0x2aa7a5){_0x436ad2=_0x436ad2-0x13b;const _0x2208f1=a153_0x2208();let _0x4d9762=_0x2208f1[_0x436ad2];return _0x4d9762;}import{getCliVersion}from'../utils/version.js';function a153_0x2208(){const _0x3f5202=['10765020EvprPr','Upgrade\x20command:\x20','126347sWKPFI','24715ACWEjN','Current\x20version:\x20','minimumVersion','stableVersion','Minimum\x20supported:\x20','upgradeMessage','Recommended\x20stable:\x20','npm\x20install\x20-g\x20','14513690BBwEUx','14091012bkvUmF','148VQGQGL','8UITVCH','26ofrbzb','currentVersion','validation','belowMinimum','539034ZzWYXh','minimumVersionMessage','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','9422427dEKsAW','filter','valid'];a153_0x2208=function(){return _0x3f5202;};return a153_0x2208();}export function evaluateCliVersionPolicy(_0x43c20c,_0x1c2427){const _0x4079aa=a153_0x4d97,_0x53fa5e=a153_0x199b52[_0x4079aa(0x14a)](_0x43c20c)===_0x43c20c,_0x4cf27b=_0x1c2427?.['stableVersion']??null,_0x3b37a2=_0x1c2427?.[_0x4079aa(0x150)]??null,_0x29b0a8=Boolean(_0x53fa5e&&_0x4cf27b&&a153_0x199b52['lt'](_0x43c20c,_0x4cf27b)),_0x21c072=Boolean(_0x53fa5e&&_0x3b37a2&&a153_0x199b52['lt'](_0x43c20c,_0x3b37a2));return{'currentVersion':_0x43c20c,'stableVersion':_0x4cf27b,'minimumVersion':_0x3b37a2,'needsUpgrade':_0x29b0a8||_0x21c072,'belowMinimum':_0x21c072,'upgradeMessage':_0x1c2427?.[_0x4079aa(0x153)],'minimumVersionMessage':_0x1c2427?.[_0x4079aa(0x146)]};}export async function checkCliVersion(){return evaluateCliVersionPolicy(getCliVersion(),await getCliVersionPolicy());}export function getCliUpgradeCommand(_0x402a0c){const _0x312ffb=a153_0x4d97;return _0x312ffb(0x13c)+LOVRABET_NPM_PACKAGE_NAME+'@'+(_0x402a0c[_0x312ffb(0x151)]??'latest');}export function assertCliVersionSupported(_0x11b164){const _0x12b3e1=a153_0x4d97;if(!_0x11b164[_0x12b3e1(0x144)])return;const _0x15c735=[_0x11b164[_0x12b3e1(0x146)],_0x12b3e1(0x14f)+_0x11b164[_0x12b3e1(0x142)],_0x12b3e1(0x152)+_0x11b164[_0x12b3e1(0x150)],_0x12b3e1(0x13b)+(_0x11b164[_0x12b3e1(0x151)]??'unavailable'),_0x12b3e1(0x14c)+getCliUpgradeCommand(_0x11b164)][_0x12b3e1(0x149)](Boolean)['join']('\x0a');throw CliErrors[_0x12b3e1(0x143)](_0x12b3e1(0x147),_0x15c735);}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface CliVersionPolicy {
|
|
2
|
+
stableVersion: string | null;
|
|
3
|
+
minimumVersion: string | null;
|
|
4
|
+
upgradeMessage?: string;
|
|
5
|
+
minimumVersionMessage?: string;
|
|
6
|
+
}
|
|
7
|
+
/** Normalize the CDN document while accepting historical field aliases. */
|
|
8
|
+
export declare function normalizeCliVersionPolicy(raw: unknown): CliVersionPolicy | null;
|
|
9
|
+
export declare function fetchCliVersionPolicy(): Promise<CliVersionPolicy | null>;
|
|
10
|
+
/** Read the policy with process-local success/failure TTLs and request coalescing. */
|
|
11
|
+
export declare function getCliVersionPolicy(): Promise<CliVersionPolicy | null>;
|
|
12
|
+
export declare function clearCliVersionPolicyCache(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x24d884,_0x4d8710){const _0x57769b=a154_0x5a86,_0x3f4045=_0x24d884();while(!![]){try{const _0x564e88=parseInt(_0x57769b(0x132))/0x1*(-parseInt(_0x57769b(0x130))/0x2)+-parseInt(_0x57769b(0x141))/0x3+-parseInt(_0x57769b(0x13a))/0x4*(-parseInt(_0x57769b(0x135))/0x5)+-parseInt(_0x57769b(0x13e))/0x6*(-parseInt(_0x57769b(0x145))/0x7)+parseInt(_0x57769b(0x133))/0x8+parseInt(_0x57769b(0x13c))/0x9*(parseInt(_0x57769b(0x137))/0xa)+-parseInt(_0x57769b(0x139))/0xb;if(_0x564e88===_0x4d8710)break;else _0x3f4045['push'](_0x3f4045['shift']());}catch(_0x4f6c35){_0x3f4045['push'](_0x3f4045['shift']());}}}(a154_0x4832,0x24d84));import a154_0x4aba97 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 a154_0x5a86(_0xff835e,_0xde5144){_0xff835e=_0xff835e-0x12c;const _0x48320a=a154_0x4832();let _0x5a86eb=_0x48320a[_0xff835e];return _0x5a86eb;}function pickString(_0x183bfb){const _0x24a7d1=a154_0x5a86;return typeof _0x183bfb===_0x24a7d1(0x138)&&_0x183bfb[_0x24a7d1(0x144)]()?_0x183bfb[_0x24a7d1(0x144)]():null;}function pickStrictSemver(_0x18e7af){const _0x3045f3=a154_0x5a86,_0x3c3db8=pickString(_0x18e7af);return _0x3c3db8&&a154_0x4aba97[_0x3045f3(0x143)](_0x3c3db8)===_0x3c3db8?_0x3c3db8:null;}export function normalizeCliVersionPolicy(_0x2d809d){const _0x31aad2=a154_0x5a86;if(!_0x2d809d||typeof _0x2d809d!==_0x31aad2(0x142))return null;const _0x597932=_0x2d809d,_0x4de18f=_0x597932[_0x31aad2(0x13f)]&&typeof _0x597932[_0x31aad2(0x13f)]===_0x31aad2(0x142)?_0x597932[_0x31aad2(0x13f)]:_0x597932,_0x2a1523=pickStrictSemver(_0x4de18f[_0x31aad2(0x136)]??_0x4de18f['latestVersion']??_0x4de18f[_0x31aad2(0x13d)]),_0x2bf68e=pickStrictSemver(_0x4de18f['minimumVersion']??_0x4de18f[_0x31aad2(0x131)]);if(!_0x2a1523&&!_0x2bf68e)return null;if(_0x2a1523&&_0x2bf68e&&a154_0x4aba97['gt'](_0x2bf68e,_0x2a1523))return null;return{'stableVersion':_0x2a1523,'minimumVersion':_0x2bf68e,'upgradeMessage':pickString(_0x4de18f[_0x31aad2(0x12d)])??undefined,'minimumVersionMessage':pickString(_0x4de18f[_0x31aad2(0x12f)])??undefined};}function a154_0x4832(){const _0xde8823=['string','2106731zpJAiN','188JKpmBI','json','120060fQmNkj','recommendedVersion','2178tvCdpx','cli','application/json','738027TPAJHh','object','valid','trim','840AENUBc','now','upgradeMessage','then','minimumVersionMessage','39418HYazDT','minVersion','3tFLSwO','2333648HlxLWT','timeout','31805mHlUiu','stableVersion','10lFiiKC'];a154_0x4832=function(){return _0xde8823;};return a154_0x4832();}export async function fetchCliVersionPolicy(){const _0xb15e09=a154_0x5a86;try{const _0x28ea76=await fetch(LOVRABET_CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0xb15e09(0x140)},'signal':AbortSignal[_0xb15e09(0x134)](FETCH_TIMEOUT_MS)});if(!_0x28ea76['ok'])return null;return normalizeCliVersionPolicy(await _0x28ea76[_0xb15e09(0x13b)]());}catch{return null;}}let cachedPolicy=null,cachedAt=0x0,hasCachedPolicy=![],pendingPolicy=null;export async function getCliVersionPolicy(){const _0x5674e3=a154_0x5a86,_0x47cdde=Date[_0x5674e3(0x12c)]();if(hasCachedPolicy){const _0x481cff=cachedPolicy?SUCCESS_CACHE_TTL_MS:FAILURE_CACHE_TTL_MS;if(_0x47cdde-cachedAt<_0x481cff)return cachedPolicy;}if(pendingPolicy)return pendingPolicy;return pendingPolicy=fetchCliVersionPolicy()[_0x5674e3(0x12e)](_0x380582=>{return cachedPolicy=_0x380582,cachedAt=Date['now'](),hasCachedPolicy=!![],_0x380582;})['finally'](()=>{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 a155_0x3a51c9=a155_0x3873;(function(_0xd6064b,_0x195493){const _0x40e0d9=a155_0x3873,_0x4773b7=_0xd6064b();while(!![]){try{const _0x365c1c=parseInt(_0x40e0d9(0x1cf))/0x1*(-parseInt(_0x40e0d9(0x1ae))/0x2)+-parseInt(_0x40e0d9(0x1a6))/0x3+-parseInt(_0x40e0d9(0x1c5))/0x4*(parseInt(_0x40e0d9(0x1d1))/0x5)+-parseInt(_0x40e0d9(0x1cb))/0x6+parseInt(_0x40e0d9(0x1ce))/0x7*(parseInt(_0x40e0d9(0x1b5))/0x8)+parseInt(_0x40e0d9(0x1dc))/0x9*(parseInt(_0x40e0d9(0x1ac))/0xa)+-parseInt(_0x40e0d9(0x1b7))/0xb*(-parseInt(_0x40e0d9(0x1d8))/0xc);if(_0x365c1c===_0x195493)break;else _0x4773b7['push'](_0x4773b7['shift']());}catch(_0x3934a2){_0x4773b7['push'](_0x4773b7['shift']());}}}(a155_0x4f9f,0xb1977));function a155_0x4f9f(){const _0x12f6a4=['map','Starting:\x20','683712erFwuo','Failed\x20to\x20read\x20logs:','dirname','242011oFBpyX','1CLOkkD','currentRawCommand','97525njLLTZ','readLogs','getWinstonInstance','stringify','Failed\x20to\x20clear\x20logs:','format','log','504KWgltg','warn','printf','level','1134099JaaGxC','File','1846377TtbIgL','message','join','timestamp','logFileName','combine','50gOXkbW','initWinstonLogger','736966BAvnyH','Completed:\x20','now','trim','filter','blue','logFilePath','328yysvgh','Failed:\x20','161458PRUPRF','clear','readFileSync','details','existsSync','utf8','winstonLogger','errors','error','logTask','clearLogs','rawCommand','writeFileSync','success','172meEIDq','info','green','command'];a155_0x4f9f=function(){return _0x12f6a4;};return a155_0x4f9f();}import a155_0x12df83 from'winston';import a155_0x546920 from'node:fs';function a155_0x3873(_0x256629,_0x38c7a2){_0x256629=_0x256629-0x1a5;const _0x4f9f3a=a155_0x4f9f();let _0x3873df=_0x4f9f3a[_0x256629];return _0x3873df;}import a155_0x1462c5 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a155_0x3a51c9(0x1bd)];[a155_0x3a51c9(0x1b4)]='';[a155_0x3a51c9(0x1d0)]='';constructor(){}['setRawCommand'](_0x54d463){this['currentRawCommand']=_0x54d463;}['setLogPath'](_0xf07dca){const _0x58808f=a155_0x3a51c9;this['logFilePath']=a155_0x1462c5[_0x58808f(0x1a8)](_0xf07dca,PRODUCT_CONFIG[_0x58808f(0x1aa)]),this[_0x58808f(0x1bd)]&&this[_0x58808f(0x1bd)][_0x58808f(0x1b8)](),this[_0x58808f(0x1ad)]();}['initWinstonLogger'](){const _0x16de36=a155_0x3a51c9,_0x77769a=a155_0x1462c5[_0x16de36(0x1cd)](this[_0x16de36(0x1b4)]);!a155_0x546920[_0x16de36(0x1bb)](_0x77769a)&&a155_0x546920['mkdirSync'](_0x77769a,{'recursive':!![]});const _0x5dc55f=a155_0x12df83['format'][_0x16de36(0x1ab)](a155_0x12df83[_0x16de36(0x1d6)]['timestamp'](),a155_0x12df83[_0x16de36(0x1d6)][_0x16de36(0x1be)]({'stack':!![]}),a155_0x12df83['format'][_0x16de36(0x1da)](_0x374bf6=>{const _0x2e872d=_0x16de36,_0x11768b={'timestamp':_0x374bf6[_0x2e872d(0x1a9)]||new Date()['toISOString'](),'level':_0x374bf6[_0x2e872d(0x1db)]||_0x2e872d(0x1c6),'command':_0x374bf6[_0x2e872d(0x1c8)]||'unknown','rawCommand':_0x374bf6[_0x2e872d(0x1c2)]||this[_0x2e872d(0x1d0)]||undefined,'message':_0x374bf6[_0x2e872d(0x1a7)]||'','duration':_0x374bf6['duration']||undefined,'details':_0x374bf6[_0x2e872d(0x1ba)]||undefined};return JSON[_0x2e872d(0x1d4)](_0x11768b);}));this[_0x16de36(0x1bd)]=a155_0x12df83['createLogger']({'level':_0x16de36(0x1c6),'format':_0x5dc55f,'transports':[new a155_0x12df83['transports'][(_0x16de36(0x1a5))]({'filename':this[_0x16de36(0x1b4)],'level':_0x16de36(0x1c6)})],'silent':![]}),a155_0x12df83['addColors']({'success':_0x16de36(0x1c7),'error':'red','warn':'yellow','info':_0x16de36(0x1b3)});}[a155_0x3a51c9(0x1c6)](_0x5c0556,_0x10e2af,_0x1fa66a){const _0x532ede=a155_0x3a51c9;if(!this['logFilePath']||!this[_0x532ede(0x1bd)])return;this[_0x532ede(0x1bd)]['info'](_0x10e2af,{'command':_0x5c0556,'details':_0x1fa66a});}[a155_0x3a51c9(0x1c4)](_0x555d2d,_0x5615ed,_0x9ff2fb,_0x5bd41b){const _0x292460=a155_0x3a51c9;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x292460(0x1bd)][_0x292460(0x1d7)](_0x292460(0x1c6),_0x5615ed,{'level':_0x292460(0x1c4),'command':_0x555d2d,'duration':_0x9ff2fb,'details':_0x5bd41b});}[a155_0x3a51c9(0x1bf)](_0x27845b,_0x591c8e,_0x1643b0){const _0x24c9df=a155_0x3a51c9;if(!this[_0x24c9df(0x1b4)]||!this[_0x24c9df(0x1bd)])return;this[_0x24c9df(0x1bd)][_0x24c9df(0x1bf)](_0x591c8e,{'command':_0x27845b,'details':_0x1643b0});}['warn'](_0x1f88e0,_0xc9d138,_0x3e0184){const _0x261164=a155_0x3a51c9;if(!this['logFilePath']||!this[_0x261164(0x1bd)])return;this[_0x261164(0x1bd)][_0x261164(0x1d9)](_0xc9d138,{'command':_0x1f88e0,'details':_0x3e0184});}async[a155_0x3a51c9(0x1c0)](_0x44e3f1,_0x162a56,_0x5269f4){const _0x405525=a155_0x3a51c9,_0x487bda=Date[_0x405525(0x1b0)]();this[_0x405525(0x1c6)](_0x44e3f1,_0x405525(0x1ca)+_0x162a56);try{const _0x44572a=await _0x5269f4(),_0x1efaaa=Date[_0x405525(0x1b0)]()-_0x487bda;return this[_0x405525(0x1c4)](_0x44e3f1,_0x405525(0x1af)+_0x162a56,_0x1efaaa),_0x44572a;}catch(_0x2cf23a){const _0x1ed8c5=Date[_0x405525(0x1b0)]()-_0x487bda;this[_0x405525(0x1bf)](_0x44e3f1,_0x405525(0x1b6)+_0x162a56,{'error':_0x2cf23a instanceof Error?_0x2cf23a[_0x405525(0x1a7)]:String(_0x2cf23a),'duration':_0x1ed8c5});throw _0x2cf23a;}}[a155_0x3a51c9(0x1d2)](){const _0x3ca150=a155_0x3a51c9;try{if(!a155_0x546920[_0x3ca150(0x1bb)](this['logFilePath']))return[];const _0xccdb40=a155_0x546920[_0x3ca150(0x1b9)](this[_0x3ca150(0x1b4)],_0x3ca150(0x1bc));return _0xccdb40['split'](/\r?\n/)[_0x3ca150(0x1b2)](_0x2777b5=>_0x2777b5[_0x3ca150(0x1b1)]())[_0x3ca150(0x1c9)](_0x39a79f=>JSON['parse'](_0x39a79f));}catch(_0x3b87cc){return console[_0x3ca150(0x1d9)](_0x3ca150(0x1cc),_0x3b87cc),[];}}[a155_0x3a51c9(0x1c1)](){const _0xcef42d=a155_0x3a51c9;try{a155_0x546920[_0xcef42d(0x1bb)](this['logFilePath'])&&a155_0x546920[_0xcef42d(0x1c3)](this['logFilePath'],'',_0xcef42d(0x1bc));}catch(_0x2c677d){console[_0xcef42d(0x1d9)](_0xcef42d(0x1d5),_0x2c677d);}}[a155_0x3a51c9(0x1d3)](){const _0x17ca69=a155_0x3a51c9;return this[_0x17ca69(0x1bd)];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a156_0x507a54=a156_0x111c;(function(_0x30fc59,_0x2cc903){const _0x49925c=a156_0x111c,_0x241dc2=_0x30fc59();while(!![]){try{const _0x3019a6=parseInt(_0x49925c(0x1d5))/0x1*(-parseInt(_0x49925c(0x1d8))/0x2)+-parseInt(_0x49925c(0x1df))/0x3*(parseInt(_0x49925c(0x1e0))/0x4)+parseInt(_0x49925c(0x1de))/0x5+parseInt(_0x49925c(0x1d9))/0x6+parseInt(_0x49925c(0x1d4))/0x7+-parseInt(_0x49925c(0x1cd))/0x8*(-parseInt(_0x49925c(0x1d3))/0x9)+parseInt(_0x49925c(0x1dd))/0xa*(parseInt(_0x49925c(0x1d7))/0xb);if(_0x3019a6===_0x2cc903)break;else _0x241dc2['push'](_0x241dc2['shift']());}catch(_0x5ad29f){_0x241dc2['push'](_0x241dc2['shift']());}}}(a156_0x4dc0,0xa7e75));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a156_0x507a54(0x1dc)]),MIN_SAFE_INTEGER=BigInt(Number[a156_0x507a54(0x1cf)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x1852f4){const _0x1814cb=a156_0x507a54;if(_0x1852f4[_0x1814cb(0x1db)]('.')||_0x1852f4[_0x1814cb(0x1db)]('e')||_0x1852f4[_0x1814cb(0x1db)]('E'))return![];const _0x36352c=BigInt(_0x1852f4);return _0x36352c>MAX_SAFE_INTEGER||_0x36352c<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x22bf2d){const _0x38997a=a156_0x507a54;let _0x2870db='',_0x3960ba=![],_0x47e1ef=![];for(let _0x298cbe=0x0;_0x298cbe<_0x22bf2d[_0x38997a(0x1d1)];){const _0x550a6d=_0x22bf2d[_0x298cbe];if(_0x3960ba){_0x2870db+=_0x550a6d,_0x298cbe+=0x1;if(_0x47e1ef)_0x47e1ef=![];else{if(_0x550a6d==='\x5c')_0x47e1ef=!![];else _0x550a6d==='\x22'&&(_0x3960ba=![]);}continue;}if(_0x550a6d==='\x22'){_0x3960ba=!![],_0x2870db+=_0x550a6d,_0x298cbe+=0x1;continue;}if(_0x550a6d==='-'||_0x550a6d>='0'&&_0x550a6d<='9'){const _0x3d9849=JSON_NUMBER_PATTERN[_0x38997a(0x1d6)](_0x22bf2d['slice'](_0x298cbe))?.[0x0];if(_0x3d9849){_0x2870db+=isUnsafeIntegerLiteral(_0x3d9849)?'\x22'+_0x3d9849+'\x22':_0x3d9849,_0x298cbe+=_0x3d9849[_0x38997a(0x1d1)];continue;}}_0x2870db+=_0x550a6d,_0x298cbe+=0x1;}return _0x2870db;}function a156_0x4dc0(){const _0x158f9e=['554MIWnNU','exec','22eGVcrI','4142lsbiRY','1682772RrQPhI','undefined','includes','MAX_SAFE_INTEGER','3800770XMzjje','1090110ZyMomC','140541dLOiEg','20hlQuVy','defineProperty','8ZdcZlY','text','MIN_SAFE_INTEGER','json','length','prototype','6033357rsbvyC','982037yMpDOo'];a156_0x4dc0=function(){return _0x158f9e;};return a156_0x4dc0();}export function parseLosslessJson(_0x16de98){return JSON['parse'](quoteUnsafeIntegerLiterals(_0x16de98));}export function installLosslessJsonResponseParser(){const _0x5dfa1a=a156_0x507a54;if(typeof Response===_0x5dfa1a(0x1da))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x5dfa1a(0x1d2)],originalResponseJsonDescriptor=Object['getOwnPropertyDescriptor'](responseJsonPrototype,'json'),Object[_0x5dfa1a(0x1e1)](responseJsonPrototype,'json',{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x1f1901(){const _0xad8373=_0x5dfa1a;return parseLosslessJson(await this[_0xad8373(0x1ce)]());}}),restoreResponseJsonParser=()=>{const _0x2c2d2e=_0x5dfa1a;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x2c2d2e(0x1e1)](responseJsonPrototype,_0x2c2d2e(0x1d0),originalResponseJsonDescriptor):delete responseJsonPrototype['json'],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}function a156_0x111c(_0x588bbc,_0x3881c1){_0x588bbc=_0x588bbc-0x1cd;const _0x4dc075=a156_0x4dc0();let _0x111cf1=_0x4dc075[_0x588bbc];return _0x111cf1;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5d9b5b,_0x38387a){const _0x10fb68=a157_0x2b8e,_0x4d1d1d=_0x5d9b5b();while(!![]){try{const _0xaa18ef=parseInt(_0x10fb68(0xbf))/0x1*(-parseInt(_0x10fb68(0xc6))/0x2)+parseInt(_0x10fb68(0xc5))/0x3*(-parseInt(_0x10fb68(0xcc))/0x4)+-parseInt(_0x10fb68(0xd0))/0x5*(-parseInt(_0x10fb68(0xce))/0x6)+-parseInt(_0x10fb68(0xbc))/0x7*(parseInt(_0x10fb68(0xc8))/0x8)+-parseInt(_0x10fb68(0xd5))/0x9+parseInt(_0x10fb68(0xc0))/0xa*(parseInt(_0x10fb68(0xc1))/0xb)+parseInt(_0x10fb68(0xd4))/0xc;if(_0xaa18ef===_0x38387a)break;else _0x4d1d1d['push'](_0x4d1d1d['shift']());}catch(_0x5b26f2){_0x4d1d1d['push'](_0x4d1d1d['shift']());}}}(a157_0x14a0,0xb87a0));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x56d974){const _0x53b448=a157_0x2b8e;if(!_0x56d974)return undefined;try{return parseLosslessJson(_0x56d974);}catch{throw CliErrors[_0x53b448(0xca)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x56d974);}}export function parseJsonParamsValue(_0x2388a8){const _0x11a669=a157_0x2b8e;if(!_0x2388a8)return undefined;try{return parseLosslessJson(_0x2388a8);}catch{throw CliErrors[_0x11a669(0xca)](_0x11a669(0xd8)+_0x2388a8);}}export function parseBatchCreateItemsFromParams(_0x260ba5){const _0x1d84c5=a157_0x2b8e;if(Array[_0x1d84c5(0xc7)](_0x260ba5))return _0x260ba5;if(_0x260ba5!==null&&_0x260ba5!==undefined&&typeof _0x260ba5===_0x1d84c5(0xc9)&&Array[_0x1d84c5(0xc7)](_0x260ba5['items']))return _0x260ba5[_0x1d84c5(0xc3)];throw CliErrors[_0x1d84c5(0xca)]('batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}',_0x1d84c5(0xcd));}function parseDataUpdateId(_0x523b64,_0x443603){const _0xbb82eb=a157_0x2b8e;if(typeof _0x523b64===_0xbb82eb(0xcf)&&Number[_0xbb82eb(0xd1)](_0x523b64)&&_0x523b64>0x0)return _0x523b64;if(typeof _0x523b64===_0xbb82eb(0xd2)){if(/^[1-9]\d*$/[_0xbb82eb(0xbb)](_0x523b64))return _0x523b64;}throw CliErrors[_0xbb82eb(0xca)]('data\x20update\x20--params.'+_0x443603+_0xbb82eb(0xd7));}function a157_0x14a0(){const _0x2ca809=['validation','map','4hJqbtl','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','210rMUEQt','number','50765VWgHnK','isSafeInteger','string','\x20records\x20per\x20call;\x20received\x20','9911304iiYkMe','1568574YKJZPH','length','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','Invalid\x20JSON\x20for\x20--params:\x20','test','915194qBwRiX','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','421679oyfPJt','170xaSARZ','973742SRaibT','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','items','join','2042640RBNUVm','2tjqkjU','isArray','40HPHRSx','object'];a157_0x14a0=function(){return _0x2ca809;};return a157_0x14a0();}export function parseUpdateIdsFromParams(_0x351ed3){const _0x3a300e=a157_0x2b8e;if(_0x351ed3===null||_0x351ed3===undefined||typeof _0x351ed3!==_0x3a300e(0xc9)||Array[_0x3a300e(0xc7)](_0x351ed3))throw CliErrors[_0x3a300e(0xca)](_0x3a300e(0xbd),_0x3a300e(0xbe));const _0x2c0c87=_0x351ed3['id'];if(_0x2c0c87===undefined||_0x2c0c87===null)throw CliErrors[_0x3a300e(0xca)](_0x3a300e(0xc2),_0x3a300e(0xbe));const _0x5152fb=Array[_0x3a300e(0xc7)](_0x2c0c87)?_0x2c0c87:[_0x2c0c87];if(_0x5152fb['length']===0x0)throw CliErrors['validation']('data\x20update\x20id\x20array\x20cannot\x20be\x20empty.');if(_0x5152fb[_0x3a300e(0xd6)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x3a300e(0xca)]('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+_0x3a300e(0xd3)+_0x5152fb[_0x3a300e(0xd6)]+'.');return _0x5152fb[_0x3a300e(0xcb)]((_0x53a655,_0x12b98a)=>parseDataUpdateId(_0x53a655,Array[_0x3a300e(0xc7)](_0x2c0c87)?'id['+_0x12b98a+']':'id'));}function a157_0x2b8e(_0x3721f6,_0x39161e){_0x3721f6=_0x3721f6-0xbb;const _0x14a087=a157_0x14a0();let _0x2b8e52=_0x14a087[_0x3721f6];return _0x2b8e52;}export function normalizeUpdateParamsForRuntime(_0x21baaa,_0xbcfbd2){const _0x127d3d=a157_0x2b8e;if(Array['isArray'](_0x21baaa['id'])&&_0xbcfbd2['length']>0x1)return{..._0x21baaa,'id':_0xbcfbd2[_0x127d3d(0xc4)](',')};return _0x21baaa;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a158_0x1160(){const _0x395262=['5605095RgrkUw','701634UglmFo','94nnujGe','33461uEVcpk','win32','830720IJirmj','10560270RUteLP','999EIFWmh','14776poIGzs','platform','13240520ZMFNPE','15ksWTiI'];a158_0x1160=function(){return _0x395262;};return a158_0x1160();}const a158_0x533106=a158_0x2d60;function a158_0x2d60(_0x4977f0,_0x317862){_0x4977f0=_0x4977f0-0x181;const _0x11608f=a158_0x1160();let _0x2d606d=_0x11608f[_0x4977f0];return _0x2d606d;}(function(_0xd68589,_0x4089fc){const _0x578836=a158_0x2d60,_0x11cf24=_0xd68589();while(!![]){try{const _0x2940fa=-parseInt(_0x578836(0x18a))/0x1*(parseInt(_0x578836(0x189))/0x2)+-parseInt(_0x578836(0x186))/0x3*(-parseInt(_0x578836(0x18c))/0x4)+-parseInt(_0x578836(0x187))/0x5+-parseInt(_0x578836(0x188))/0x6+parseInt(_0x578836(0x181))/0x7+parseInt(_0x578836(0x183))/0x8*(-parseInt(_0x578836(0x182))/0x9)+parseInt(_0x578836(0x185))/0xa;if(_0x2940fa===_0x4089fc)break;else _0x11cf24['push'](_0x11cf24['shift']());}catch(_0x2d396c){_0x11cf24['push'](_0x11cf24['shift']());}}}(a158_0x1160,0xd0d7c));export const isWindows=process[a158_0x533106(0x184)]===a158_0x533106(0x18b);export function resolveNpmBin(_0x567d71){return isWindows?_0x567d71+'.cmd':_0x567d71;}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type CliVersionCheckResult } from "../utils/cli-version-check.js";
|
|
1
2
|
export interface UpdateNotice {
|
|
2
3
|
command: string;
|
|
3
4
|
current: string;
|
|
@@ -7,4 +8,4 @@ export interface UpdateNotice {
|
|
|
7
8
|
}
|
|
8
9
|
export declare function getUpdateNoticeCachePath(): string;
|
|
9
10
|
export declare function buildNpmVersionUrl(version: string): string;
|
|
10
|
-
export declare function resolveLatestUpdateNotice(): Promise<UpdateNotice | null>;
|
|
11
|
+
export declare function resolveLatestUpdateNotice(checked?: CliVersionCheckResult): Promise<UpdateNotice | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3103fc,_0xc62a79){const _0x2e4f27=a159_0x1985,_0x14f96d=_0x3103fc();while(!![]){try{const _0x536ae1=parseInt(_0x2e4f27(0x149))/0x1*(parseInt(_0x2e4f27(0x147))/0x2)+parseInt(_0x2e4f27(0x14d))/0x3+parseInt(_0x2e4f27(0x145))/0x4+parseInt(_0x2e4f27(0x13f))/0x5*(-parseInt(_0x2e4f27(0x154))/0x6)+-parseInt(_0x2e4f27(0x14e))/0x7*(parseInt(_0x2e4f27(0x14b))/0x8)+parseInt(_0x2e4f27(0x152))/0x9+-parseInt(_0x2e4f27(0x150))/0xa*(parseInt(_0x2e4f27(0x14c))/0xb);if(_0x536ae1===_0xc62a79)break;else _0x14f96d['push'](_0x14f96d['shift']());}catch(_0x177b7e){_0x14f96d['push'](_0x14f96d['shift']());}}}(a159_0x3054,0xd40ad));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{checkCliVersion,getCliUpgradeCommand}from'../utils/cli-version-check.js';const UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x86cc98=a159_0x1985,_0x5041cf=process.env.LOVRABET_NO_UPDATE_NOTICE?.['trim']()[_0x86cc98(0x146)]();return _0x5041cf==='1'||_0x5041cf===_0x86cc98(0x155)||_0x5041cf==='yes';}function cacheRoot(){const _0x898f55=a159_0x1985;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x898f55(0x143));}export function getUpdateNoticeCachePath(){const _0x384bc9=a159_0x1985;return join(cacheRoot(),'lovrabet-cli',_0x384bc9(0x157));}async function readUpdateNoticeCache(){const _0x419d5d=a159_0x1985;try{const _0x47eed8=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x47ab0f=JSON[_0x419d5d(0x140)](_0x47eed8);if(!_0x47ab0f||typeof _0x47ab0f!==_0x419d5d(0x13e))return{};return _0x47ab0f;}catch{return{};}}async function writeUpdateNoticeCache(_0x4f7bc7){const _0x3ba9e9=a159_0x1985;try{const _0xcafc8c=getUpdateNoticeCachePath();await mkdir(dirname(_0xcafc8c),{'recursive':!![]}),await writeFile(_0xcafc8c,JSON['stringify'](_0x4f7bc7,null,0x2)+'\x0a',_0x3ba9e9(0x158));}catch{}}function a159_0x1985(_0x1bc2e2,_0x1c7201){_0x1bc2e2=_0x1bc2e2-0x13a;const _0x305440=a159_0x3054();let _0x19853e=_0x305440[_0x1bc2e2];return _0x19853e;}function isRecentlyNotified(_0x2d3015,_0xe15074,_0x287a80){const _0x5d3006=a159_0x1985;return _0x2d3015[_0x5d3006(0x156)]===_0xe15074&&typeof _0x2d3015[_0x5d3006(0x14f)]===_0x5d3006(0x151)&&_0x287a80-_0x2d3015[_0x5d3006(0x14f)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x554509){const _0x489492=a159_0x1985;return'https://www.npmjs.com/package/'+LOVRABET_NPM_PACKAGE_NAME+_0x489492(0x144)+_0x554509;}export async function resolveLatestUpdateNotice(_0x394f96){const _0x5c0d79=a159_0x1985;if(isUpdateNoticeDisabled())return null;try{const _0xf596c7=Date[_0x5c0d79(0x14a)](),_0x51f9fc=_0x394f96??await checkCliVersion(),_0x119892=_0x51f9fc[_0x5c0d79(0x141)],_0x1d7adf=_0x51f9fc[_0x5c0d79(0x13a)],_0x152b4c=await readUpdateNoticeCache();if(!_0x1d7adf||!_0x51f9fc['needsUpgrade']||_0x51f9fc[_0x5c0d79(0x13c)])return null;if(isRecentlyNotified(_0x152b4c,_0x1d7adf,_0xf596c7))return null;const _0xb3f03f=getCliUpgradeCommand(_0x51f9fc);return await writeUpdateNoticeCache({..._0x152b4c,'checkedAt':_0xf596c7,'latest':_0x1d7adf,'failed':![],'lastNotifiedVersion':_0x1d7adf,'lastNotifiedAt':_0xf596c7}),{'command':_0xb3f03f,'current':_0x119892,'latest':_0x1d7adf,'url':buildNpmVersionUrl(_0x1d7adf),'message':[_0x51f9fc[_0x5c0d79(0x13b)],CLI_BIN_NAME+'\x20'+_0x1d7adf+_0x5c0d79(0x153)+_0x119892+_0x5c0d79(0x142)+_0xb3f03f][_0x5c0d79(0x148)](Boolean)[_0x5c0d79(0x13d)]('\x20')};}catch{return null;}}function a159_0x3054(){const _0x191b35=['currentVersion',',\x20run:\x20','.cache','/v/','6859676KolbIr','toLowerCase','824BiXZIN','filter','3080cGuGTN','now','2631976mkMCpF','25949gVaaFp','3148518GUzMUY','7cAOImU','lastNotifiedAt','12160oVGNbl','number','14450112dIiqXc','\x20is\x20recommended,\x20current\x20','9437322udNgfd','true','lastNotifiedVersion','update-check.json','utf8','stableVersion','upgradeMessage','belowMinimum','join','object','5gzRHXz','parse'];a159_0x3054=function(){return _0x191b35;};return a159_0x3054();}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4b4fae,_0x1ba913){const _0x228027=a160_0x10a4,_0x36e188=_0x4b4fae();while(!![]){try{const _0x1d6f0c=parseInt(_0x228027(0x82))/0x1+parseInt(_0x228027(0x7c))/0x2+parseInt(_0x228027(0x85))/0x3+parseInt(_0x228027(0x84))/0x4*(parseInt(_0x228027(0x7e))/0x5)+-parseInt(_0x228027(0x7d))/0x6*(-parseInt(_0x228027(0x80))/0x7)+parseInt(_0x228027(0x83))/0x8+-parseInt(_0x228027(0x81))/0x9;if(_0x1d6f0c===_0x1ba913)break;else _0x36e188['push'](_0x36e188['shift']());}catch(_0x13d11e){_0x36e188['push'](_0x36e188['shift']());}}}(a160_0x2189,0x2f75a));function a160_0x10a4(_0xbe8010,_0x5c81d4){_0xbe8010=_0xbe8010-0x7b;const _0x218959=a160_0x2189();let _0x10a4cf=_0x218959[_0xbe8010];return _0x10a4cf;}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x3b3c84=a160_0x10a4,_0x368a0f=String(GIT_COMMIT);return _0x368a0f&&_0x368a0f!==_0x3b3c84(0x7f)?_0x368a0f:'';}export function getCliVersionDisplay(){const _0x321b10=a160_0x10a4,_0x1c17b7=getCliGitCommit(),_0x5a415e=BUILD_TIME[_0x321b10(0x7b)](0x0,0xa);if(!_0x1c17b7||!_0x5a415e)return VERSION;return VERSION+'\x20('+_0x1c17b7+',\x20'+_0x5a415e+')';}function a160_0x2189(){const _0x14d1f0=['370293lxqwmY','slice','194166HEoXvs','255654MdFjsZ','205xOJgoK','unknown','28gGxUJt','4671333UsIqYy','7073OzQBVs','1565832GoPers','11676VBEAWP'];a160_0x2189=function(){return _0x14d1f0;};return a160_0x2189();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a161_0x2641(){var _0x477208=['stderr','742092nzmHUI','8GuZdfA','1781241NtcVRZ','1259810XQDfOt','102992uPHyeT','2718918BTBYyq','27oOifHP','158188wuAgpc','177576qqYqeX','write'];a161_0x2641=function(){return _0x477208;};return a161_0x2641();}(function(_0x42d3d7,_0x401e2f){var _0x20d35a=a161_0x1796,_0x45ebc8=_0x42d3d7();while(!![]){try{var _0x163e04=parseInt(_0x20d35a(0x1a8))/0x1+-parseInt(_0x20d35a(0x1a4))/0x2+-parseInt(_0x20d35a(0x1a6))/0x3*(parseInt(_0x20d35a(0x1a7))/0x4)+parseInt(_0x20d35a(0x1a3))/0x5+parseInt(_0x20d35a(0x1ab))/0x6+-parseInt(_0x20d35a(0x1ad))/0x7+-parseInt(_0x20d35a(0x1ac))/0x8*(-parseInt(_0x20d35a(0x1a5))/0x9);if(_0x163e04===_0x401e2f)break;else _0x45ebc8['push'](_0x45ebc8['shift']());}catch(_0x2176a9){_0x45ebc8['push'](_0x45ebc8['shift']());}}}(a161_0x2641,0x2f3a0));function a161_0x1796(_0x3a1276,_0x1e4a5a){_0x3a1276=_0x3a1276-0x1a3;var _0x264115=a161_0x2641();var _0x179697=_0x264115[_0x3a1276];return _0x179697;}export function writeCliSideChannelLine(_0x5a11ad){var _0x2eb7e3=a161_0x1796;process[_0x2eb7e3(0x1aa)][_0x2eb7e3(0x1a9)](_0x5a11ad+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/lovrabet-cli",
|
|
3
|
-
"version": "2.2
|
|
3
|
+
"version": "2.3.0-beta.2",
|
|
4
4
|
"description": "Runtime CLI for Lovrabet apps, datasets, SQL, Backend Function, skills, and AI agent workflows.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"pretypecheck": "node scripts/generate-build-info.js",
|
|
50
50
|
"typecheck": "tsc --noEmit",
|
|
51
51
|
"verify:bundled-jq": "node scripts/verify-bundled-jq.mjs",
|
|
52
|
+
"validate:cli-version-policy": "node scripts/validate-cli-version-policy.mjs",
|
|
52
53
|
"regression:release-smoke": "node scripts/regression-release-smoke.mjs",
|
|
53
54
|
"deploy:verify": "node scripts/deploy-verify.mjs",
|
|
54
55
|
"pack:dry-run-summary": "node scripts/package-dry-run-summary.mjs",
|
|
@@ -82,6 +83,7 @@
|
|
|
82
83
|
"NOTICE"
|
|
83
84
|
],
|
|
84
85
|
"dependencies": {
|
|
86
|
+
"@inquirer/prompts": "^8.6.0",
|
|
85
87
|
"@lovrabet/cli-framework": "1.0.5",
|
|
86
88
|
"@lovrabet/sdk": "1.4.2",
|
|
87
89
|
"chalk": "^5.6.2",
|