@lovrabet/lovrabet-cli 2.1.15 → 2.1.16-beta.1
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 -0
- 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/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/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.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/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/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/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/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/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/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.js +1 -1
- package/lib/help.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/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/utils/apply-jq-filter.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/platform.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
|
@@ -1 +1 @@
|
|
|
1
|
-
const a40_0x54973a=a40_0x5006;(function(_0x2af6af,_0xfe0689){const _0x292740=a40_0x5006,_0x1ea108=_0x2af6af();while(!![]){try{const _0x3dc6e4=parseInt(_0x292740(0x1d9))/0x1*(parseInt(_0x292740(0x1f9))/0x2)+parseInt(_0x292740(0x1f3))/0x3+-parseInt(_0x292740(0x1d7))/0x4+-parseInt(_0x292740(0x1bf))/0x5+parseInt(_0x292740(0x1d3))/0x6*(-parseInt(_0x292740(0x1db))/0x7)+-parseInt(_0x292740(0x1ea))/0x8*(parseInt(_0x292740(0x1ae))/0x9)+parseInt(_0x292740(0x1f6))/0xa*(parseInt(_0x292740(0x1ee))/0xb);if(_0x3dc6e4===_0xfe0689)break;else _0x1ea108['push'](_0x1ea108['shift']());}catch(_0x107f29){_0x1ea108['push'](_0x1ea108['shift']());}}}(a40_0x2438,0xd8d50));function a40_0x5006(_0x7ede55,_0x3ffed3){_0x7ede55=_0x7ede55-0x1a0;const _0x2438ac=a40_0x2438();let _0x5006d7=_0x2438ac[_0x7ede55];return _0x5006d7;}import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';import{normalizeServiceTreeManifest,validateServiceTreeManifest}from'@lovrabet/cli-framework';import{PRODUCT_CONFIG}from'../../constant/product.js';import{CliErrors}from'../../errors.js';import{adaptServiceTreeManifestForLegacyFramework}from'../../commands/service/function-name-adapter.js';export const SERVICE_REGISTRY_SCHEMA_VERSION=0x1;export const SERVICE_REGISTRY_FILE_NAME=a40_0x54973a(0x1e4);export function getServiceRegistryPath(_0xd74b8={}){const _0x4a0d12=a40_0x54973a;return resolve(_0xd74b8[_0x4a0d12(0x1bc)]??homedir(),PRODUCT_CONFIG[_0x4a0d12(0x1f8)],SERVICE_REGISTRY_FILE_NAME);}export function emptyServiceRegistry(){return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'services':[]};}export function readServiceRegistry(_0x53b700={}){const _0x4acf02=a40_0x54973a,_0x38d6d0=getServiceRegistryPath(_0x53b700);if(!existsSync(_0x38d6d0))return emptyServiceRegistry();try{const _0x5e798e=readFileSync(_0x38d6d0,'utf8');if(!_0x5e798e['trim']())return emptyServiceRegistry();const _0x47edcd=JSON['parse'](_0x5e798e);if(_0x47edcd['schemaVersion']!==SERVICE_REGISTRY_SCHEMA_VERSION)throw CliErrors[_0x4acf02(0x1ec)](_0x4acf02(0x1e6)+String(_0x47edcd['schemaVersion']),_0x4acf02(0x1be)+_0x38d6d0+'.');if(!Array['isArray'](_0x47edcd[_0x4acf02(0x1c5)]))return emptyServiceRegistry();return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x47edcd[_0x4acf02(0x1e3)],'services':_0x47edcd[_0x4acf02(0x1c5)]};}catch(_0x11a5c2){if(_0x11a5c2 instanceof Error&&_0x11a5c2[_0x4acf02(0x1c4)]===_0x4acf02(0x1ca))throw _0x11a5c2;throw CliErrors[_0x4acf02(0x1ec)](_0x4acf02(0x1b2)+_0x38d6d0,_0x4acf02(0x1b7));}}export function writeServiceRegistry(_0x3d61dd,_0x3b45a7={}){const _0x2848b3=a40_0x54973a,_0x4d5190=getServiceRegistryPath(_0x3b45a7),_0x5c0cd0=dirname(_0x4d5190);!existsSync(_0x5c0cd0)&&mkdirSync(_0x5c0cd0,{'recursive':!![]});const _0x8fbdde=_0x4d5190+_0x2848b3(0x1e7);try{writeFileSync(_0x8fbdde,JSON[_0x2848b3(0x1d6)](_0x3d61dd,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x8fbdde,_0x4d5190);}catch(_0x5a1c29){try{unlinkSync(_0x8fbdde);}catch{}if(_0x5a1c29?.[_0x2848b3(0x1fc)]===_0x2848b3(0x1c3))throw CliErrors[_0x2848b3(0x1ec)](_0x2848b3(0x1a4)+_0x4d5190);throw _0x5a1c29;}return _0x4d5190;}export function loadServiceManifestFromFile(_0x32fd12){const _0x353122=a40_0x54973a,_0x2d9446=resolve(_0x32fd12);if(!existsSync(_0x2d9446))throw CliErrors[_0x353122(0x1ec)]('Service\x20manifest\x20file\x20not\x20found:\x20'+_0x32fd12);let _0x3a5b94;const _0x471bc6=readFileSync(_0x2d9446,_0x353122(0x1fa));try{_0x3a5b94=JSON[_0x353122(0x1a6)](_0x471bc6);}catch{throw CliErrors[_0x353122(0x1ec)]('Invalid\x20service\x20manifest\x20JSON:\x20'+_0x32fd12,_0x353122(0x1d4));}const _0x1697af=sha256(_0x471bc6),_0x59f66c=extractLoadedServiceManifests(_0x3a5b94,_0x1697af),_0x5bf1eb=aggregateValidationReports(_0x59f66c),_0xf0a9b9=_0x59f66c[0x0];return{'filePath':_0x2d9446,'hash':_0x1697af,'kind':isServiceRegistryLike(_0x3a5b94)?_0x353122(0x1e5):'manifest','manifest':_0xf0a9b9?.[_0x353122(0x1cf)]??_0x3a5b94,'report':_0x5bf1eb,'normalizedManifest':_0x59f66c[_0x353122(0x1d5)]===0x1?_0xf0a9b9?.[_0x353122(0x1b0)]:undefined,'manifests':_0x59f66c};}export function importServiceManifest(_0x11ab39,_0x57d151={}){const _0x496989=a40_0x54973a,_0x56449f=loadServiceManifestFromFile(_0x11ab39);if(!_0x56449f[_0x496989(0x1a8)]['ok'])throw CliErrors[_0x496989(0x1ec)](formatValidationFailure(_0x56449f['report']),_0x496989(0x1a9));if(_0x56449f[_0x496989(0x1a7)][_0x496989(0x1d5)]===0x0)throw CliErrors[_0x496989(0x1ec)](_0x496989(0x1a2),_0x496989(0x1f4));const _0x1803f4=readServiceRegistry(_0x57d151),_0x59341b=(_0x57d151[_0x496989(0x1cd)]??(()=>new Date()))()[_0x496989(0x1af)](),_0x19273a=[];let _0x13e0ea=0x0,_0x2944b0=0x0;for(const _0x971883 of _0x56449f[_0x496989(0x1a7)]){if(!_0x971883[_0x496989(0x1b0)])continue;const _0x302023=_0x971883[_0x496989(0x1b0)][_0x496989(0x1eb)][_0x496989(0x1fc)],_0x112b81={'serviceCode':_0x302023,'version':_0x971883[_0x496989(0x1b0)][_0x496989(0x1da)],'importedAt':_0x59341b,'source':{'type':_0x496989(0x1df),'path':_0x56449f[_0x496989(0x1d8)],'hash':_0x971883[_0x496989(0x1b4)]},'manifest':_0x971883[_0x496989(0x1cf)],'normalizedManifest':_0x971883[_0x496989(0x1b0)]},_0x5dea46=_0x1803f4['services'][_0x496989(0x1d1)](_0x5666fe=>_0x5666fe[_0x496989(0x1ba)]===_0x302023);_0x5dea46>=0x0?(_0x1803f4[_0x496989(0x1c5)][_0x5dea46]=_0x112b81,_0x2944b0++):(_0x1803f4[_0x496989(0x1c5)][_0x496989(0x1f2)](_0x112b81),_0x13e0ea++),_0x19273a[_0x496989(0x1f2)](_0x112b81);}_0x1803f4[_0x496989(0x1c5)][_0x496989(0x1ed)]((_0x37fd25,_0xee0c4)=>_0x37fd25[_0x496989(0x1ba)][_0x496989(0x1e0)](_0xee0c4[_0x496989(0x1ba)])),_0x1803f4[_0x496989(0x1e3)]=_0x59341b;const _0x27d753=writeServiceRegistry(_0x1803f4,_0x57d151);return{'registryPath':_0x27d753,'entry':_0x19273a[0x0],'replaced':_0x19273a['length']===0x1?_0x2944b0===0x1:_0x2944b0>0x0,'entries':_0x19273a,'imported':_0x13e0ea,'updated':_0x2944b0,'serviceCount':_0x1803f4['services'][_0x496989(0x1d5)]};}export function exportServiceManifest(_0x22830d,_0x195368,_0x1afbaa={}){const _0x2c54ba=a40_0x54973a,_0x48f53a=getServiceRegistryPath(_0x1afbaa),_0x5dfbf4=getLocalServiceEntry(_0x22830d,_0x1afbaa);if(!_0x5dfbf4)throw CliErrors[_0x2c54ba(0x1ec)]('Local\x20service\x20not\x20found:\x20'+_0x22830d,_0x2c54ba(0x1c1));const _0x417d45=resolve(_0x195368),_0x3cdc35=dirname(_0x417d45);return!existsSync(_0x3cdc35)&&mkdirSync(_0x3cdc35,{'recursive':!![]}),writeFileSync(_0x417d45,JSON[_0x2c54ba(0x1d6)](_0x5dfbf4[_0x2c54ba(0x1cf)],null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),{'registryPath':_0x48f53a,'filePath':_0x417d45,'entry':_0x5dfbf4};}export function removeServiceManifest(_0x162a16,_0x51d9e8={}){const _0x443ba9=a40_0x54973a,_0x693c68=readServiceRegistry(_0x51d9e8),_0x4ca768=_0x162a16[_0x443ba9(0x1b3)](),_0x522a59=_0x693c68['services'][_0x443ba9(0x1d1)](_0x421be9=>_0x421be9[_0x443ba9(0x1ba)]===_0x4ca768);if(_0x522a59<0x0)throw CliErrors[_0x443ba9(0x1ec)](_0x443ba9(0x1ef)+_0x4ca768,_0x443ba9(0x1c1));const [_0x16e7ae]=_0x693c68[_0x443ba9(0x1c5)][_0x443ba9(0x1d2)](_0x522a59,0x1),_0x2ec788=(_0x51d9e8[_0x443ba9(0x1cd)]??(()=>new Date()))()['toISOString']();_0x693c68['updatedAt']=_0x2ec788;const _0x5cdc12=writeServiceRegistry(_0x693c68,_0x51d9e8);return{'registryPath':_0x5cdc12,'entry':_0x16e7ae,'serviceCount':_0x693c68[_0x443ba9(0x1c5)][_0x443ba9(0x1d5)]};}export function listLocalServices(_0x1e8d7c={}){const _0x2e20f7=a40_0x54973a;return readServiceRegistry(_0x1e8d7c)[_0x2e20f7(0x1c5)];}export function getLocalServiceEntry(_0x1ad057,_0x199669={}){const _0x5c323f=a40_0x54973a;return readServiceRegistry(_0x199669)[_0x5c323f(0x1c5)][_0x5c323f(0x1c2)](_0xd95cd4=>_0xd95cd4[_0x5c323f(0x1ba)]===_0x1ad057[_0x5c323f(0x1b3)]());}export function listLocalServiceTrees(_0x58f0db={}){const _0x568ea9=a40_0x54973a;return readServiceRegistry(_0x58f0db)['services'][_0x568ea9(0x1e2)](_0x4c366e=>_0x4c366e[_0x568ea9(0x1b0)]);}export function inspectServiceRegistry(_0x3d8555={}){const _0x1a527f=a40_0x54973a,_0x13e748=getServiceRegistryPath(_0x3d8555);if(!existsSync(_0x13e748))return emptyServiceRegistryInspection(_0x13e748,'missing',![]);try{const _0x23efbf=readFileSync(_0x13e748,_0x1a527f(0x1fa));if(!_0x23efbf[_0x1a527f(0x1b3)]())return emptyServiceRegistryInspection(_0x13e748,_0x1a527f(0x1b5),!![]);const _0x18c6e8=JSON[_0x1a527f(0x1a6)](_0x23efbf);if(_0x18c6e8[_0x1a527f(0x1de)]!==SERVICE_REGISTRY_SCHEMA_VERSION)return{...emptyServiceRegistryInspection(_0x13e748,_0x1a527f(0x1a3),!![]),'schemaVersion':_0x18c6e8[_0x1a527f(0x1de)],'message':_0x1a527f(0x1b6)+String(_0x18c6e8['schemaVersion'])};if(!Array['isArray'](_0x18c6e8[_0x1a527f(0x1c5)]))return{...emptyServiceRegistryInspection(_0x13e748,'invalid',!![]),'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x18c6e8[_0x1a527f(0x1e3)],'message':_0x1a527f(0x1b8)};const _0x35862a=_0x18c6e8[_0x1a527f(0x1c5)]['map'](summarizeLocalServiceEntry);return{'registryPath':_0x13e748,'exists':!![],'status':'ok','schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x18c6e8[_0x1a527f(0x1e3)],'serviceCount':_0x35862a['length'],'commandCount':_0x35862a[_0x1a527f(0x1bd)]((_0x7ea421,_0x364c16)=>_0x7ea421+_0x364c16['commandCount'],0x0),'services':_0x35862a};}catch(_0x241529){return{...emptyServiceRegistryInspection(_0x13e748,_0x1a527f(0x1a3),!![]),'message':_0x241529 instanceof Error?_0x241529[_0x1a527f(0x1f1)]:String(_0x241529)};}}export function formatValidationFailure(_0x1b5547){const _0x56f701=a40_0x54973a,_0x2fa0d4=_0x1b5547[_0x56f701(0x1b9)][_0x56f701(0x1e2)](_0x4c7615=>_0x4c7615[_0x56f701(0x1ab)]+':\x20'+_0x4c7615[_0x56f701(0x1f1)]);return _0x56f701(0x1c7)+_0x2fa0d4[_0x56f701(0x1ac)]('\x0a');}function extractLoadedServiceManifests(_0x58046b,_0x3cc71f){const _0x5f0d23=a40_0x54973a;if(!isServiceRegistryLike(_0x58046b)){const _0x5d3f05=_0x58046b,{manifest:_0x188714,errors:_0x57cfdd}=adaptServiceTreeManifestForLegacyFramework(_0x5d3f05),_0x4e4d6e=validateServiceTreeManifest(_0x188714),_0x396a62=mergeValidationErrors(_0x4e4d6e,_0x57cfdd);return[{'manifest':_0x5d3f05,'report':_0x396a62,'normalizedManifest':_0x396a62['ok']?normalizeServiceTreeManifest(_0x188714):undefined,'sourceHash':_0x3cc71f}];}return _0x58046b[_0x5f0d23(0x1c5)]['map']((_0x1aae20,_0x689fc7)=>{const _0x4af5ff=_0x5f0d23,_0x2cdac2=isObjectRecord(_0x1aae20)?_0x1aae20[_0x4af5ff(0x1cf)]:undefined,{manifest:_0x54cfb5,errors:_0x37fb79}=adaptServiceTreeManifestForLegacyFramework(_0x2cdac2),_0xf5c116=validateServiceTreeManifest(_0x54cfb5),_0x1f6b31=mergeValidationErrors(_0xf5c116,_0x37fb79),_0x5024da=isObjectRecord(_0x1aae20)&&typeof _0x1aae20[_0x4af5ff(0x1ba)]===_0x4af5ff(0x1cc)?_0x1aae20[_0x4af5ff(0x1ba)]:undefined;return{'manifest':_0x2cdac2,'report':_0x1f6b31,'normalizedManifest':_0x1f6b31['ok']?normalizeServiceTreeManifest(_0x54cfb5):undefined,'sourceHash':sha256(JSON[_0x4af5ff(0x1d6)](_0x2cdac2,null,0x2)+'\x0a'),'registryIndex':_0x689fc7,'registryServiceCode':_0x5024da};});}function a40_0x2438(){const _0x494600=['Fix\x20the\x20service\x20manifest\x20and\x20run\x20service\x20validate\x20again.','registryIndex','path','join','update','27aexlKX','toISOString','normalizedManifest','importedAt','Invalid\x20service\x20registry\x20JSON:\x20','trim','sourceHash','empty','Unsupported\x20schemaVersion:\x20','Fix\x20the\x20JSON\x20file\x20or\x20move\x20it\x20aside\x20and\x20import\x20services\x20again.','services\x20must\x20be\x20an\x20array','errors','serviceCode','isArray','homeDir','reduce','Remove\x20or\x20migrate\x20','3551905hAeSkP','startsWith','Run\x20lovrabet\x20service\x20list\x20to\x20see\x20imported\x20services.','find','ENOENT','name','services','sha256','Service\x20manifest\x20validation\x20failed:\x0a','].manifest','description','CliError','$.services[','string','now','bff\x20target\x20requires\x20bffCode,\x20bffId,\x20or\x20scriptName.','manifest','warnings','findIndex','splice','66wxDnaR','Fix\x20the\x20JSON\x20syntax\x20and\x20run\x20service\x20validate\x20again.','length','stringify','1933140BRfAiG','filePath','53025WBuFFj','version','370797tFmGGl','cliPath','flatMap','schemaVersion','file','localeCompare','slice','map','updatedAt','service.json','registry','Unsupported\x20service\x20registry\x20schemaVersion:\x20','.tmp','].manifest.','object','1494200Harryt','service','validation','sort','44qxxcsA','Local\x20service\x20not\x20found:\x20','commands','message','push','4233411yNHsbV','Add\x20at\x20least\x20one\x20service\x20manifest,\x20then\x20run\x20service\x20import\x20again.','target','2015510DuHGmV','kind','homeDirName','38TBMVXP','utf8','hex','code','bff\x20target\x20requires\x20functionName.','digest','command','source','Service\x20registry\x20has\x20no\x20services\x20to\x20import.','invalid','Cannot\x20write\x20service\x20registry:\x20','risk','parse','manifests','report'];a40_0x2438=function(){return _0x494600;};return a40_0x2438();}function mergeValidationErrors(_0x3907f1,_0x1e25c1){const _0x1ad6c7=a40_0x54973a,_0x5d1892=_0x3907f1[_0x1ad6c7(0x1b9)]['map'](_0x5e601d=>_0x5e601d[_0x1ad6c7(0x1f1)]===_0x1ad6c7(0x1ce)?{..._0x5e601d,'message':_0x1ad6c7(0x1fd)}:_0x5e601d),_0x247042=[..._0x1e25c1,..._0x5d1892];return{'ok':_0x247042[_0x1ad6c7(0x1d5)]===0x0,'errors':_0x247042,'warnings':_0x3907f1['warnings']};}function aggregateValidationReports(_0x5acaa7){const _0x4af169=a40_0x54973a,_0xca3a34=_0x5acaa7[_0x4af169(0x1dd)](_0x446ea8=>_0x446ea8[_0x4af169(0x1aa)]===undefined?_0x446ea8[_0x4af169(0x1a8)][_0x4af169(0x1b9)]:_0x446ea8[_0x4af169(0x1a8)][_0x4af169(0x1b9)][_0x4af169(0x1e2)](_0x2bb009=>({..._0x2bb009,'path':prefixRegistryIssuePath(_0x446ea8[_0x4af169(0x1aa)],_0x2bb009[_0x4af169(0x1ab)])}))),_0x4fec1d=_0x5acaa7['flatMap'](_0x3a1a47=>_0x3a1a47[_0x4af169(0x1aa)]===undefined?_0x3a1a47['report'][_0x4af169(0x1d0)]:_0x3a1a47[_0x4af169(0x1a8)][_0x4af169(0x1d0)][_0x4af169(0x1e2)](_0x1c4f78=>({..._0x1c4f78,'path':prefixRegistryIssuePath(_0x3a1a47[_0x4af169(0x1aa)],_0x1c4f78[_0x4af169(0x1ab)])})));return{'ok':_0xca3a34[_0x4af169(0x1d5)]===0x0,'errors':_0xca3a34,'warnings':_0x4fec1d};}function prefixRegistryIssuePath(_0x441b1e,_0x1a8e3c){const _0x42e792=a40_0x54973a;if(_0x1a8e3c==='$')return _0x42e792(0x1cb)+_0x441b1e+_0x42e792(0x1c8);if(_0x1a8e3c[_0x42e792(0x1c0)]('$.'))return _0x42e792(0x1cb)+_0x441b1e+_0x42e792(0x1c8)+_0x1a8e3c[_0x42e792(0x1e1)](0x1);if(_0x1a8e3c['startsWith']('$['))return _0x42e792(0x1cb)+_0x441b1e+'].manifest'+_0x1a8e3c[_0x42e792(0x1e1)](0x1);return _0x42e792(0x1cb)+_0x441b1e+_0x42e792(0x1e8)+_0x1a8e3c;}function isServiceRegistryLike(_0x28c323){const _0x34bd0=a40_0x54973a;return isObjectRecord(_0x28c323)&&_0x28c323[_0x34bd0(0x1de)]===SERVICE_REGISTRY_SCHEMA_VERSION&&Array[_0x34bd0(0x1bb)](_0x28c323['services']);}function isObjectRecord(_0x15f61c){const _0x4f1b21=a40_0x54973a;return Boolean(_0x15f61c)&&typeof _0x15f61c===_0x4f1b21(0x1e9)&&!Array[_0x4f1b21(0x1bb)](_0x15f61c);}function emptyServiceRegistryInspection(_0x3744f2,_0x55af7b,_0x21c144){return{'registryPath':_0x3744f2,'exists':_0x21c144,'status':_0x55af7b,'serviceCount':0x0,'commandCount':0x0,'services':[]};}function summarizeLocalServiceEntry(_0x213328){const _0x68cc05=a40_0x54973a,_0x2745c7=_0x213328['normalizedManifest'],_0x3b2e1f=_0x2745c7[_0x68cc05(0x1f0)][_0x68cc05(0x1e2)](_0x485e17=>({'path':_0x485e17[_0x68cc05(0x1dc)],'description':_0x485e17['description'],'risk':_0x485e17[_0x68cc05(0x1a5)],'targetKind':_0x485e17[_0x68cc05(0x1f5)][_0x68cc05(0x1f7)],'targetCommand':_0x485e17[_0x68cc05(0x1f5)][_0x68cc05(0x1a0)]}));return{'serviceCode':_0x213328[_0x68cc05(0x1ba)],'name':_0x2745c7[_0x68cc05(0x1eb)][_0x68cc05(0x1c4)],'description':_0x2745c7[_0x68cc05(0x1eb)][_0x68cc05(0x1c9)],'version':_0x213328[_0x68cc05(0x1da)],'importedAt':_0x213328[_0x68cc05(0x1b1)],'source':_0x213328[_0x68cc05(0x1a1)],'commandCount':_0x3b2e1f[_0x68cc05(0x1d5)],'commands':_0x3b2e1f};}function sha256(_0x3a5b81){const _0x123243=a40_0x54973a;return createHash(_0x123243(0x1c6))[_0x123243(0x1ad)](_0x3a5b81)[_0x123243(0x1fe)](_0x123243(0x1fb));}
|
|
1
|
+
const a41_0x4c4ef0=a41_0x1dcf;(function(_0x254875,_0x1c08e5){const _0x3dc112=a41_0x1dcf,_0xf79c8c=_0x254875();while(!![]){try{const _0x37ffc5=parseInt(_0x3dc112(0x178))/0x1*(parseInt(_0x3dc112(0x18f))/0x2)+-parseInt(_0x3dc112(0x171))/0x3*(-parseInt(_0x3dc112(0x184))/0x4)+-parseInt(_0x3dc112(0x14e))/0x5*(-parseInt(_0x3dc112(0x180))/0x6)+-parseInt(_0x3dc112(0x16d))/0x7+parseInt(_0x3dc112(0x189))/0x8*(-parseInt(_0x3dc112(0x161))/0x9)+-parseInt(_0x3dc112(0x148))/0xa+parseInt(_0x3dc112(0x172))/0xb;if(_0x37ffc5===_0x1c08e5)break;else _0xf79c8c['push'](_0xf79c8c['shift']());}catch(_0x35acc0){_0xf79c8c['push'](_0xf79c8c['shift']());}}}(a41_0x424c,0xe2b40));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a41_0x1dcf(_0x1db6bb,_0x51fefc){_0x1db6bb=_0x1db6bb-0x13d;const _0x424c26=a41_0x424c();let _0x1dcfd2=_0x424c26[_0x1db6bb];return _0x1dcfd2;}import{homedir}from'node:os';import{dirname,resolve}from'node:path';import{normalizeServiceTreeManifest,validateServiceTreeManifest}from'@lovrabet/cli-framework';import{PRODUCT_CONFIG}from'../../constant/product.js';import{CliErrors}from'../../errors.js';import{adaptServiceTreeManifestForLegacyFramework}from'../../commands/service/function-name-adapter.js';export const SERVICE_REGISTRY_SCHEMA_VERSION=0x1;export const SERVICE_REGISTRY_FILE_NAME=a41_0x4c4ef0(0x185);export function getServiceRegistryPath(_0x426f51={}){const _0xf286e2=a41_0x4c4ef0;return resolve(_0x426f51['homeDir']??homedir(),PRODUCT_CONFIG[_0xf286e2(0x174)],SERVICE_REGISTRY_FILE_NAME);}export function emptyServiceRegistry(){return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'services':[]};}function a41_0x424c(){const _0x10f41c=['stringify','digest','importedAt','splice','localeCompare','normalizedManifest','map','now','Local\x20service\x20not\x20found:\x20','hex','3752854jRythY','Run\x20lovrabet\x20service\x20list\x20to\x20see\x20imported\x20services.','Fix\x20the\x20JSON\x20syntax\x20and\x20run\x20service\x20validate\x20again.','missing','3VsvvFl','24703118aeXNpd','join','homeDirName','target','commands','empty','116NGWDUk','reduce','parse','updatedAt','Invalid\x20service\x20manifest\x20JSON:\x20','service','message','sourceHash','768228Vpmxqx','manifests','length','code','1301084HJyMmO','service.json','update','serviceCode','Service\x20manifest\x20file\x20not\x20found:\x20','8CETXyD','flatMap','version','ENOENT','toISOString','kind','986AoFfap','findIndex','$.services[','warnings','path','file','registryIndex','services\x20must\x20be\x20an\x20array','Cannot\x20write\x20service\x20registry:\x20','Unsupported\x20service\x20registry\x20schemaVersion:\x20','risk','services','isArray','3033000hagzSx','commandCount','push','report','cliPath','name','15MdDZye','].manifest','source','schemaVersion','bff\x20target\x20requires\x20bffCode,\x20bffId,\x20or\x20scriptName.','find','.tmp','errors','description','command','utf8','trim','Fix\x20the\x20service\x20manifest\x20and\x20run\x20service\x20validate\x20again.','string','validation','slice','startsWith','Service\x20manifest\x20validation\x20failed:\x0a','invalid','11198817dcxpiQ','manifest'];a41_0x424c=function(){return _0x10f41c;};return a41_0x424c();}export function readServiceRegistry(_0x157906={}){const _0x1ef7aa=a41_0x4c4ef0,_0x3f3d49=getServiceRegistryPath(_0x157906);if(!existsSync(_0x3f3d49))return emptyServiceRegistry();try{const _0x5ade64=readFileSync(_0x3f3d49,_0x1ef7aa(0x158));if(!_0x5ade64[_0x1ef7aa(0x159)]())return emptyServiceRegistry();const _0x4c1974=JSON[_0x1ef7aa(0x17a)](_0x5ade64);if(_0x4c1974[_0x1ef7aa(0x151)]!==SERVICE_REGISTRY_SCHEMA_VERSION)throw CliErrors[_0x1ef7aa(0x15c)](_0x1ef7aa(0x144)+String(_0x4c1974['schemaVersion']),'Remove\x20or\x20migrate\x20'+_0x3f3d49+'.');if(!Array[_0x1ef7aa(0x147)](_0x4c1974[_0x1ef7aa(0x146)]))return emptyServiceRegistry();return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x4c1974[_0x1ef7aa(0x17b)],'services':_0x4c1974[_0x1ef7aa(0x146)]};}catch(_0x2b2d5a){if(_0x2b2d5a instanceof Error&&_0x2b2d5a[_0x1ef7aa(0x14d)]==='CliError')throw _0x2b2d5a;throw CliErrors[_0x1ef7aa(0x15c)]('Invalid\x20service\x20registry\x20JSON:\x20'+_0x3f3d49,'Fix\x20the\x20JSON\x20file\x20or\x20move\x20it\x20aside\x20and\x20import\x20services\x20again.');}}export function writeServiceRegistry(_0x2421ab,_0x48cbbe={}){const _0x466903=a41_0x4c4ef0,_0x2efd66=getServiceRegistryPath(_0x48cbbe),_0xac899e=dirname(_0x2efd66);!existsSync(_0xac899e)&&mkdirSync(_0xac899e,{'recursive':!![]});const _0x27de11=_0x2efd66+_0x466903(0x154);try{writeFileSync(_0x27de11,JSON[_0x466903(0x163)](_0x2421ab,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x27de11,_0x2efd66);}catch(_0xe3431){try{unlinkSync(_0x27de11);}catch{}if(_0xe3431?.[_0x466903(0x183)]===_0x466903(0x18c))throw CliErrors[_0x466903(0x15c)](_0x466903(0x143)+_0x2efd66);throw _0xe3431;}return _0x2efd66;}export function loadServiceManifestFromFile(_0x26f535){const _0x3a0558=a41_0x4c4ef0,_0x1f5f03=resolve(_0x26f535);if(!existsSync(_0x1f5f03))throw CliErrors[_0x3a0558(0x15c)](_0x3a0558(0x188)+_0x26f535);let _0x48d84c;const _0x24a7c8=readFileSync(_0x1f5f03,_0x3a0558(0x158));try{_0x48d84c=JSON[_0x3a0558(0x17a)](_0x24a7c8);}catch{throw CliErrors['validation'](_0x3a0558(0x17c)+_0x26f535,_0x3a0558(0x16f));}const _0x533d0f=sha256(_0x24a7c8),_0x3140ac=extractLoadedServiceManifests(_0x48d84c,_0x533d0f),_0x329724=aggregateValidationReports(_0x3140ac),_0x4ce000=_0x3140ac[0x0];return{'filePath':_0x1f5f03,'hash':_0x533d0f,'kind':isServiceRegistryLike(_0x48d84c)?'registry':_0x3a0558(0x162),'manifest':_0x4ce000?.['manifest']??_0x48d84c,'report':_0x329724,'normalizedManifest':_0x3140ac[_0x3a0558(0x182)]===0x1?_0x4ce000?.[_0x3a0558(0x168)]:undefined,'manifests':_0x3140ac};}export function importServiceManifest(_0x4f4a4c,_0x38c03c={}){const _0x330874=a41_0x4c4ef0,_0xc68f7c=loadServiceManifestFromFile(_0x4f4a4c);if(!_0xc68f7c['report']['ok'])throw CliErrors[_0x330874(0x15c)](formatValidationFailure(_0xc68f7c[_0x330874(0x14b)]),_0x330874(0x15a));if(_0xc68f7c[_0x330874(0x181)][_0x330874(0x182)]===0x0)throw CliErrors[_0x330874(0x15c)]('Service\x20registry\x20has\x20no\x20services\x20to\x20import.','Add\x20at\x20least\x20one\x20service\x20manifest,\x20then\x20run\x20service\x20import\x20again.');const _0x229c41=readServiceRegistry(_0x38c03c),_0x3ee6eb=(_0x38c03c['now']??(()=>new Date()))()[_0x330874(0x18d)](),_0x1535e3=[];let _0x589e47=0x0,_0x2f8363=0x0;for(const _0x1177da of _0xc68f7c[_0x330874(0x181)]){if(!_0x1177da[_0x330874(0x168)])continue;const _0x2e2779=_0x1177da[_0x330874(0x168)][_0x330874(0x17d)]['code'],_0x5dedc8={'serviceCode':_0x2e2779,'version':_0x1177da['normalizedManifest'][_0x330874(0x18b)],'importedAt':_0x3ee6eb,'source':{'type':_0x330874(0x140),'path':_0xc68f7c['filePath'],'hash':_0x1177da[_0x330874(0x17f)]},'manifest':_0x1177da[_0x330874(0x162)],'normalizedManifest':_0x1177da[_0x330874(0x168)]},_0x2d5f52=_0x229c41['services'][_0x330874(0x190)](_0x10141b=>_0x10141b[_0x330874(0x187)]===_0x2e2779);_0x2d5f52>=0x0?(_0x229c41['services'][_0x2d5f52]=_0x5dedc8,_0x2f8363++):(_0x229c41[_0x330874(0x146)][_0x330874(0x14a)](_0x5dedc8),_0x589e47++),_0x1535e3['push'](_0x5dedc8);}_0x229c41[_0x330874(0x146)]['sort']((_0x4a83d3,_0x166e81)=>_0x4a83d3['serviceCode'][_0x330874(0x167)](_0x166e81[_0x330874(0x187)])),_0x229c41[_0x330874(0x17b)]=_0x3ee6eb;const _0x5cfe5b=writeServiceRegistry(_0x229c41,_0x38c03c);return{'registryPath':_0x5cfe5b,'entry':_0x1535e3[0x0],'replaced':_0x1535e3[_0x330874(0x182)]===0x1?_0x2f8363===0x1:_0x2f8363>0x0,'entries':_0x1535e3,'imported':_0x589e47,'updated':_0x2f8363,'serviceCount':_0x229c41[_0x330874(0x146)][_0x330874(0x182)]};}export function exportServiceManifest(_0x239f9f,_0x44be67,_0x2eef85={}){const _0x11ff8e=a41_0x4c4ef0,_0x2aa6b4=getServiceRegistryPath(_0x2eef85),_0x1c28e6=getLocalServiceEntry(_0x239f9f,_0x2eef85);if(!_0x1c28e6)throw CliErrors['validation'](_0x11ff8e(0x16b)+_0x239f9f,_0x11ff8e(0x16e));const _0x4b21ef=resolve(_0x44be67),_0x2aaaa9=dirname(_0x4b21ef);return!existsSync(_0x2aaaa9)&&mkdirSync(_0x2aaaa9,{'recursive':!![]}),writeFileSync(_0x4b21ef,JSON['stringify'](_0x1c28e6[_0x11ff8e(0x162)],null,0x2)+'\x0a',{'encoding':_0x11ff8e(0x158),'mode':0x180}),{'registryPath':_0x2aa6b4,'filePath':_0x4b21ef,'entry':_0x1c28e6};}export function removeServiceManifest(_0x16e7cc,_0x1c0244={}){const _0x12b45f=a41_0x4c4ef0,_0x48d138=readServiceRegistry(_0x1c0244),_0x11d831=_0x16e7cc[_0x12b45f(0x159)](),_0x49fb21=_0x48d138[_0x12b45f(0x146)][_0x12b45f(0x190)](_0x1bd228=>_0x1bd228[_0x12b45f(0x187)]===_0x11d831);if(_0x49fb21<0x0)throw CliErrors['validation']('Local\x20service\x20not\x20found:\x20'+_0x11d831,_0x12b45f(0x16e));const [_0x2ed9a2]=_0x48d138['services'][_0x12b45f(0x166)](_0x49fb21,0x1),_0x57c4ce=(_0x1c0244[_0x12b45f(0x16a)]??(()=>new Date()))()[_0x12b45f(0x18d)]();_0x48d138[_0x12b45f(0x17b)]=_0x57c4ce;const _0x96799=writeServiceRegistry(_0x48d138,_0x1c0244);return{'registryPath':_0x96799,'entry':_0x2ed9a2,'serviceCount':_0x48d138['services'][_0x12b45f(0x182)]};}export function listLocalServices(_0xcbd57d={}){return readServiceRegistry(_0xcbd57d)['services'];}export function getLocalServiceEntry(_0x522068,_0x177121={}){const _0x23c9c3=a41_0x4c4ef0;return readServiceRegistry(_0x177121)[_0x23c9c3(0x146)][_0x23c9c3(0x153)](_0x163289=>_0x163289[_0x23c9c3(0x187)]===_0x522068[_0x23c9c3(0x159)]());}export function listLocalServiceTrees(_0x3ac347={}){const _0x182651=a41_0x4c4ef0;return readServiceRegistry(_0x3ac347)[_0x182651(0x146)]['map'](_0xf5e733=>_0xf5e733[_0x182651(0x168)]);}export function inspectServiceRegistry(_0x1dbd0e={}){const _0x1bc434=a41_0x4c4ef0,_0x2f0b91=getServiceRegistryPath(_0x1dbd0e);if(!existsSync(_0x2f0b91))return emptyServiceRegistryInspection(_0x2f0b91,_0x1bc434(0x170),![]);try{const _0x57f64b=readFileSync(_0x2f0b91,_0x1bc434(0x158));if(!_0x57f64b[_0x1bc434(0x159)]())return emptyServiceRegistryInspection(_0x2f0b91,_0x1bc434(0x177),!![]);const _0x2b2205=JSON[_0x1bc434(0x17a)](_0x57f64b);if(_0x2b2205[_0x1bc434(0x151)]!==SERVICE_REGISTRY_SCHEMA_VERSION)return{...emptyServiceRegistryInspection(_0x2f0b91,'invalid',!![]),'schemaVersion':_0x2b2205[_0x1bc434(0x151)],'message':'Unsupported\x20schemaVersion:\x20'+String(_0x2b2205[_0x1bc434(0x151)])};if(!Array['isArray'](_0x2b2205[_0x1bc434(0x146)]))return{...emptyServiceRegistryInspection(_0x2f0b91,_0x1bc434(0x160),!![]),'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x2b2205['updatedAt'],'message':_0x1bc434(0x142)};const _0x411ce1=_0x2b2205[_0x1bc434(0x146)][_0x1bc434(0x169)](summarizeLocalServiceEntry);return{'registryPath':_0x2f0b91,'exists':!![],'status':'ok','schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x2b2205['updatedAt'],'serviceCount':_0x411ce1[_0x1bc434(0x182)],'commandCount':_0x411ce1[_0x1bc434(0x179)]((_0x57322a,_0x1db68e)=>_0x57322a+_0x1db68e[_0x1bc434(0x149)],0x0),'services':_0x411ce1};}catch(_0xcdac2f){return{...emptyServiceRegistryInspection(_0x2f0b91,_0x1bc434(0x160),!![]),'message':_0xcdac2f instanceof Error?_0xcdac2f[_0x1bc434(0x17e)]:String(_0xcdac2f)};}}export function formatValidationFailure(_0x53f207){const _0x35b071=a41_0x4c4ef0,_0x4a2d39=_0x53f207['errors'][_0x35b071(0x169)](_0x3e524f=>_0x3e524f[_0x35b071(0x13f)]+':\x20'+_0x3e524f['message']);return _0x35b071(0x15f)+_0x4a2d39[_0x35b071(0x173)]('\x0a');}function extractLoadedServiceManifests(_0x4fa35f,_0x1d538a){const _0x6852a3=a41_0x4c4ef0;if(!isServiceRegistryLike(_0x4fa35f)){const _0x5d0353=_0x4fa35f,{manifest:_0x2a5d65,errors:_0x5552da}=adaptServiceTreeManifestForLegacyFramework(_0x5d0353),_0x5a050f=validateServiceTreeManifest(_0x2a5d65),_0x37a11c=mergeValidationErrors(_0x5a050f,_0x5552da);return[{'manifest':_0x5d0353,'report':_0x37a11c,'normalizedManifest':_0x37a11c['ok']?normalizeServiceTreeManifest(_0x2a5d65):undefined,'sourceHash':_0x1d538a}];}return _0x4fa35f[_0x6852a3(0x146)][_0x6852a3(0x169)]((_0x21bc7d,_0x35f17c)=>{const _0x21b0e2=_0x6852a3,_0x35dfdc=isObjectRecord(_0x21bc7d)?_0x21bc7d[_0x21b0e2(0x162)]:undefined,{manifest:_0x7e6524,errors:_0x5c08b0}=adaptServiceTreeManifestForLegacyFramework(_0x35dfdc),_0x270269=validateServiceTreeManifest(_0x7e6524),_0x15ffd7=mergeValidationErrors(_0x270269,_0x5c08b0),_0x1fa41a=isObjectRecord(_0x21bc7d)&&typeof _0x21bc7d['serviceCode']===_0x21b0e2(0x15b)?_0x21bc7d[_0x21b0e2(0x187)]:undefined;return{'manifest':_0x35dfdc,'report':_0x15ffd7,'normalizedManifest':_0x15ffd7['ok']?normalizeServiceTreeManifest(_0x7e6524):undefined,'sourceHash':sha256(JSON['stringify'](_0x35dfdc,null,0x2)+'\x0a'),'registryIndex':_0x35f17c,'registryServiceCode':_0x1fa41a};});}function mergeValidationErrors(_0x59c27e,_0x128601){const _0x3042f9=a41_0x4c4ef0,_0x5bc02f=_0x59c27e[_0x3042f9(0x155)][_0x3042f9(0x169)](_0x3cb2f5=>_0x3cb2f5[_0x3042f9(0x17e)]===_0x3042f9(0x152)?{..._0x3cb2f5,'message':'bff\x20target\x20requires\x20functionName.'}:_0x3cb2f5),_0x21ebc7=[..._0x128601,..._0x5bc02f];return{'ok':_0x21ebc7[_0x3042f9(0x182)]===0x0,'errors':_0x21ebc7,'warnings':_0x59c27e[_0x3042f9(0x13e)]};}function aggregateValidationReports(_0x45a289){const _0x1055e6=a41_0x4c4ef0,_0x2ff82e=_0x45a289['flatMap'](_0x3d4b68=>_0x3d4b68['registryIndex']===undefined?_0x3d4b68[_0x1055e6(0x14b)][_0x1055e6(0x155)]:_0x3d4b68[_0x1055e6(0x14b)][_0x1055e6(0x155)][_0x1055e6(0x169)](_0x735529=>({..._0x735529,'path':prefixRegistryIssuePath(_0x3d4b68[_0x1055e6(0x141)],_0x735529['path'])}))),_0x38836f=_0x45a289[_0x1055e6(0x18a)](_0x7cb7d5=>_0x7cb7d5[_0x1055e6(0x141)]===undefined?_0x7cb7d5[_0x1055e6(0x14b)]['warnings']:_0x7cb7d5[_0x1055e6(0x14b)][_0x1055e6(0x13e)][_0x1055e6(0x169)](_0x4af162=>({..._0x4af162,'path':prefixRegistryIssuePath(_0x7cb7d5[_0x1055e6(0x141)],_0x4af162[_0x1055e6(0x13f)])})));return{'ok':_0x2ff82e['length']===0x0,'errors':_0x2ff82e,'warnings':_0x38836f};}function prefixRegistryIssuePath(_0x523007,_0x70e1b2){const _0x23bb04=a41_0x4c4ef0;if(_0x70e1b2==='$')return _0x23bb04(0x13d)+_0x523007+_0x23bb04(0x14f);if(_0x70e1b2['startsWith']('$.'))return _0x23bb04(0x13d)+_0x523007+'].manifest'+_0x70e1b2[_0x23bb04(0x15d)](0x1);if(_0x70e1b2[_0x23bb04(0x15e)]('$['))return _0x23bb04(0x13d)+_0x523007+_0x23bb04(0x14f)+_0x70e1b2['slice'](0x1);return'$.services['+_0x523007+'].manifest.'+_0x70e1b2;}function isServiceRegistryLike(_0x1c15d5){const _0x3e6aad=a41_0x4c4ef0;return isObjectRecord(_0x1c15d5)&&_0x1c15d5[_0x3e6aad(0x151)]===SERVICE_REGISTRY_SCHEMA_VERSION&&Array[_0x3e6aad(0x147)](_0x1c15d5[_0x3e6aad(0x146)]);}function isObjectRecord(_0x16d83e){return Boolean(_0x16d83e)&&typeof _0x16d83e==='object'&&!Array['isArray'](_0x16d83e);}function emptyServiceRegistryInspection(_0x22a67f,_0x3a1280,_0x3bf92b){return{'registryPath':_0x22a67f,'exists':_0x3bf92b,'status':_0x3a1280,'serviceCount':0x0,'commandCount':0x0,'services':[]};}function summarizeLocalServiceEntry(_0x2393bf){const _0x2e4c3d=a41_0x4c4ef0,_0x3beba1=_0x2393bf[_0x2e4c3d(0x168)],_0x517167=_0x3beba1[_0x2e4c3d(0x176)]['map'](_0x195f06=>({'path':_0x195f06[_0x2e4c3d(0x14c)],'description':_0x195f06[_0x2e4c3d(0x156)],'risk':_0x195f06[_0x2e4c3d(0x145)],'targetKind':_0x195f06[_0x2e4c3d(0x175)][_0x2e4c3d(0x18e)],'targetCommand':_0x195f06[_0x2e4c3d(0x175)][_0x2e4c3d(0x157)]}));return{'serviceCode':_0x2393bf[_0x2e4c3d(0x187)],'name':_0x3beba1[_0x2e4c3d(0x17d)][_0x2e4c3d(0x14d)],'description':_0x3beba1[_0x2e4c3d(0x17d)][_0x2e4c3d(0x156)],'version':_0x2393bf['version'],'importedAt':_0x2393bf[_0x2e4c3d(0x165)],'source':_0x2393bf[_0x2e4c3d(0x150)],'commandCount':_0x517167['length'],'commands':_0x517167};}function sha256(_0x2361c5){const _0x25c495=a41_0x4c4ef0;return createHash('sha256')[_0x25c495(0x186)](_0x2361c5)[_0x25c495(0x164)](_0x25c495(0x16c));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a42_0x524616=a42_0xf051;(function(_0xc690d5,_0x5b354d){const _0xf6babd=a42_0xf051,_0x46ec13=_0xc690d5();while(!![]){try{const _0x1767c8=-parseInt(_0xf6babd(0x167))/0x1*(-parseInt(_0xf6babd(0x166))/0x2)+parseInt(_0xf6babd(0x17d))/0x3*(-parseInt(_0xf6babd(0x17c))/0x4)+-parseInt(_0xf6babd(0x16b))/0x5+-parseInt(_0xf6babd(0x180))/0x6*(parseInt(_0xf6babd(0x16f))/0x7)+parseInt(_0xf6babd(0x177))/0x8*(-parseInt(_0xf6babd(0x16d))/0x9)+-parseInt(_0xf6babd(0x17b))/0xa+parseInt(_0xf6babd(0x16c))/0xb;if(_0x1767c8===_0x5b354d)break;else _0x46ec13['push'](_0x46ec13['shift']());}catch(_0x1623f9){_0x46ec13['push'](_0x46ec13['shift']());}}}(a42_0x337a,0xf3588));import{existsSync,lstatSync,mkdirSync,writeFileSync}from'node:fs';import{dirname,resolve}from'node:path';import{CliErrors}from'../../../errors.js';import{CREATE_NAME_FLAG,FORCE_FLAG,TARGET_FLAG,TYPE_FLAG}from'../flags.js';import{DEFAULT_SKILL_TARGET,renderSkillTemplate}from'../templates.js';export const createCommand={'service':a42_0x524616(0x173),'command':'create','description':a42_0x524616(0x17e),'risk':a42_0x524616(0x163),'requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x492263){const _0x2ac58f=a42_0x524616,_0x40b5db=buildSkillCreatePlan(_0x492263[_0x2ac58f(0x16a)](_0x2ac58f(0x178)),_0x492263[_0x2ac58f(0x16a)](_0x2ac58f(0x175)),_0x492263['str'](_0x2ac58f(0x172)));return{'method':'WRITE','url':_0x40b5db[_0x2ac58f(0x179)],'body':{'skillName':_0x40b5db['rendered'][_0x2ac58f(0x17a)],'type':_0x40b5db['rendered'][_0x2ac58f(0x175)],'selfContained':!![],'files':_0x40b5db[_0x2ac58f(0x17f)]['files'][_0x2ac58f(0x171)](_0x49935b=>_0x49935b['path'])},'description':_0x2ac58f(0x170)};},async 'execute'(_0x319d1c){const _0x5b41c1=a42_0x524616,_0x7f3372=buildSkillCreatePlan(_0x319d1c[_0x5b41c1(0x16a)]('name'),_0x319d1c[_0x5b41c1(0x16a)]('type'),_0x319d1c[_0x5b41c1(0x16a)]('target'));return writeSkillDraft(_0x7f3372,_0x319d1c['bool']('force')),{'ok':!![],'data':{'skillName':_0x7f3372[_0x5b41c1(0x17f)]['skillName'],'type':_0x7f3372[_0x5b41c1(0x17f)][_0x5b41c1(0x175)],'dir':_0x7f3372[_0x5b41c1(0x179)],'files':_0x7f3372['rendered'][_0x5b41c1(0x164)][_0x5b41c1(0x171)](_0x3cfd61=>_0x3cfd61[_0x5b41c1(0x169)])},'message':_0x5b41c1(0x183)+_0x7f3372[_0x5b41c1(0x17f)][_0x5b41c1(0x17a)]};}};function a42_0xf051(_0x34986f,_0x2f6f6b){_0x34986f=_0x34986f-0x163;const _0x337a6e=a42_0x337a();let _0xf051c7=_0x337a6e[_0x34986f];return _0xf051c7;}function buildSkillCreatePlan(_0x3153a4,_0x305bd2,_0x490b56){const _0x465adf=renderSkillTemplate({'skillName':_0x3153a4,'type':_0x305bd2}),_0x191b47=resolve(normalizeSkillTarget(_0x490b56));return{'rendered':_0x465adf,'targetRoot':_0x191b47,'skillDir':resolve(_0x191b47,_0x465adf['skillName'])};}function normalizeSkillTarget(_0x382b99){const _0x28d7b5=a42_0x524616;return(_0x382b99||DEFAULT_SKILL_TARGET)[_0x28d7b5(0x168)]()||DEFAULT_SKILL_TARGET;}function a42_0x337a(){const _0x532951=['3970220wPXhlE','38377867ggprdL','99ewQqcL','validation','686105jdHeAQ','Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.','map','target','skill','Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20','type','isSymbolicLink','1214392SYNPOL','name','skillDir','skillName','975440DTHief','20FFLLhH','156747Rtcnyz','Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','rendered','54HoDvsX','isDirectory','Refusing\x20to\x20overwrite\x20symlink:\x20','Created\x20local\x20Skill\x20draft\x20','content','write','files','utf8','2WRGxim','1212604alrqow','trim','path','str'];a42_0x337a=function(){return _0x532951;};return a42_0x337a();}function writeSkillDraft(_0x191569,_0x49730a){const _0x162bef=a42_0x524616;if(existsSync(_0x191569[_0x162bef(0x179)])){const _0x370117=lstatSync(_0x191569['skillDir']);if(!_0x370117[_0x162bef(0x181)]()||_0x370117['isSymbolicLink']())throw CliErrors[_0x162bef(0x16e)](_0x162bef(0x174)+_0x191569[_0x162bef(0x179)]);if(!_0x49730a)throw CliErrors[_0x162bef(0x16e)]('Skill\x20directory\x20already\x20exists:\x20'+_0x191569[_0x162bef(0x179)],'Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.');}for(const _0x446020 of _0x191569[_0x162bef(0x17f)][_0x162bef(0x164)]){const _0x687053=resolve(_0x191569['skillDir'],_0x446020[_0x162bef(0x169)]),_0x41befb=dirname(_0x687053);mkdirSync(_0x41befb,{'recursive':!![]});if(existsSync(_0x687053)&&lstatSync(_0x687053)[_0x162bef(0x176)]())throw CliErrors[_0x162bef(0x16e)](_0x162bef(0x182)+_0x687053);writeFileSync(_0x687053,_0x446020[_0x162bef(0x184)],_0x162bef(0x165));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a43_0x3089ec=a43_0x2aa3;(function(_0x19e277,_0x5de32a){const _0x93d5bd=a43_0x2aa3,_0xb1dacc=_0x19e277();while(!![]){try{const _0xa0a1e3=-parseInt(_0x93d5bd(0x1a0))/0x1+-parseInt(_0x93d5bd(0x19d))/0x2*(-parseInt(_0x93d5bd(0x1a5))/0x3)+parseInt(_0x93d5bd(0x188))/0x4*(-parseInt(_0x93d5bd(0x1a6))/0x5)+parseInt(_0x93d5bd(0x18c))/0x6*(-parseInt(_0x93d5bd(0x180))/0x7)+parseInt(_0x93d5bd(0x18a))/0x8+parseInt(_0x93d5bd(0x190))/0x9*(parseInt(_0x93d5bd(0x194))/0xa)+-parseInt(_0x93d5bd(0x196))/0xb*(parseInt(_0x93d5bd(0x17c))/0xc);if(_0xa0a1e3===_0x5de32a)break;else _0xb1dacc['push'](_0xb1dacc['shift']());}catch(_0x227337){_0xb1dacc['push'](_0xb1dacc['shift']());}}}(a43_0x2564,0x5a721));function a43_0x2aa3(_0x457d1f,_0x29f404){_0x457d1f=_0x457d1f-0x17c;const _0x2564c7=a43_0x2564();let _0x2aa3eb=_0x2564c7[_0x457d1f];return _0x2aa3eb;}import{CliErrors}from'../../../errors.js';import{CODE_FLAG,FORCE_FLAG,SCOPE_FLAG}from'../flags.js';import{normalizeSyncScopes}from'../scopes.js';function a43_0x2564(){const _0x573857=['Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','created','4WlvtmV','accessKey','3167232ruiOak','map','120324KezROQ','bool','length','updated','17730vUzsRn','includes','personal','push','3270iZIOIM','scope','99sMmzpu','skill','envName','flatMap','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.','filter','action','36bdbvIj','production','skillCode','281167JurUlo','company','write','\x20company\x20Skill(s).','version','92796Mttlza','2664865QriseY','str','all','522948guJlRk','trim','removed','unchanged','7CsjvSF','appCode','install','Installed\x20','force','authRequired'];a43_0x2564=function(){return _0x573857;};return a43_0x2564();}import{summarizeRuntimeSkill}from'../summary.js';export const installCommand={'service':a43_0x3089ec(0x197),'command':a43_0x3089ec(0x182),'description':a43_0x3089ec(0x186),'risk':a43_0x3089ec(0x1a2),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG],async 'execute'(_0x8aabc9){return syncRuntimeSkills(_0x8aabc9);}};async function syncRuntimeSkills(_0x183243){const _0x5bad03=a43_0x3089ec,{downloadRuntimeSkillPackage:_0xb944a6,listRuntimeSkills:_0x1cf954}=await import('../../../core/api-client.js'),{linkEffectiveRuntimeSkills:_0x3fa9f4,materializeRuntimeSkill:_0x3b34ad,pruneStaleRuntimeSkillCache:_0x536125,pruneStaleRuntimeSkillLinks:_0x4156a3}=await import('../../../skills/runtime-skill-sync.js'),_0x3ed2bd=_0x183243['str']('code'),_0x2e5e21=normalizeSyncScopes(_0x183243[_0x5bad03(0x1a7)](_0x5bad03(0x195))),_0x978e0c=_0x183243[_0x5bad03(0x198)]??_0x5bad03(0x19e),_0x1161e6=_0x183243[_0x5bad03(0x189)],_0x5bb3de=_0x183243[_0x5bad03(0x18d)](_0x5bad03(0x184));if(!_0x1161e6)throw CliErrors[_0x5bad03(0x185)](_0x5bad03(0x19a));const _0x39f726=await Promise[_0x5bad03(0x1a8)](_0x2e5e21[_0x5bad03(0x18b)](_0x3954de=>_0x1cf954({'appCode':_0x183243[_0x5bad03(0x181)],'scope':_0x3954de,'code':_0x3ed2bd[_0x5bad03(0x17d)]()||undefined}))),_0x5373bb=_0x2e5e21[_0x5bad03(0x191)](_0x5bad03(0x192))?_0x39f726[_0x5bad03(0x199)]((_0x20f701,_0x3de72b)=>_0x2e5e21[_0x3de72b]===_0x5bad03(0x192)?_0x20f701[_0x5bad03(0x192)]:[]):[],_0x1708de=_0x2e5e21[_0x5bad03(0x191)](_0x5bad03(0x1a1))?_0x39f726['flatMap']((_0x23e5e5,_0x6fdc26)=>_0x2e5e21[_0x6fdc26]===_0x5bad03(0x1a1)?_0x23e5e5['company']:[]):[],_0x4e0148=new Set([..._0x5373bb[_0x5bad03(0x18b)](_0x3c30d0=>_0x3c30d0[_0x5bad03(0x19f)]?.[_0x5bad03(0x17d)]())[_0x5bad03(0x19b)](_0x54fb9f=>Boolean(_0x54fb9f)),..._0x1708de[_0x5bad03(0x18b)](_0x57506f=>_0x57506f[_0x5bad03(0x19f)]?.[_0x5bad03(0x17d)]())[_0x5bad03(0x19b)](_0x320ad2=>Boolean(_0x320ad2))]),_0x2ffab4=_0x3ed2bd[_0x5bad03(0x17d)]()?[_0x3ed2bd['trim']()]:undefined,_0x4ea263=_0x2e5e21[_0x5bad03(0x18e)]===0x2&&_0x2e5e21[_0x5bad03(0x191)]('personal')&&_0x2e5e21[_0x5bad03(0x191)](_0x5bad03(0x1a1)),_0x43426a=_0x4ea263?_0x4156a3(_0x183243[_0x5bad03(0x181)],_0x4e0148,{},_0x2ffab4):[],_0xc56e7=_0x536125({'env':_0x978e0c,'accessKey':_0x1161e6,'appCode':_0x183243['appCode'],'activeSkillCodes':_0x4e0148,'pruneSkillCodes':_0x2ffab4,'scopes':_0x2e5e21}),_0xe47c5f=[];for(const _0x3a5acc of _0x5373bb){_0xe47c5f[_0x5bad03(0x193)](_0x3b34ad(_0x3a5acc,'personal',{'env':_0x978e0c,'accessKey':_0x1161e6,'appCode':_0x183243[_0x5bad03(0x181)],'force':_0x5bb3de,'packageBytes':await downloadSkillPackage(_0x3a5acc,_0x5bad03(0x192),_0x183243[_0x5bad03(0x181)],_0xb944a6)}));}for(const _0x2891e1 of _0x1708de){_0xe47c5f[_0x5bad03(0x193)](_0x3b34ad(_0x2891e1,_0x5bad03(0x1a1),{'env':_0x978e0c,'accessKey':_0x1161e6,'appCode':_0x183243[_0x5bad03(0x181)],'force':_0x5bb3de,'packageBytes':await downloadSkillPackage(_0x2891e1,_0x5bad03(0x1a1),_0x183243[_0x5bad03(0x181)],_0xb944a6)}));}const _0x4b3f9c=_0x3fa9f4(_0xe47c5f,_0x183243[_0x5bad03(0x181)]),_0x11ecc6=countLinkActions(_0x4b3f9c);return{'ok':!![],'data':{'appCode':_0x183243[_0x5bad03(0x181)],'personal':_0x5373bb[_0x5bad03(0x18e)],'company':_0x1708de[_0x5bad03(0x18e)],'materialized':_0xe47c5f[_0x5bad03(0x18e)],'links':{'total':_0x4b3f9c[_0x5bad03(0x18e)],'created':_0x11ecc6[_0x5bad03(0x187)]??0x0,'updated':_0x11ecc6[_0x5bad03(0x18f)]??0x0,'unchanged':_0x11ecc6[_0x5bad03(0x17f)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x43426a[_0x5bad03(0x19b)](_0x19b992=>_0x19b992[_0x5bad03(0x19c)]===_0x5bad03(0x17e))[_0x5bad03(0x18e)],'cacheDirs':_0xc56e7['filter'](_0x14e734=>_0x14e734[_0x5bad03(0x19c)]===_0x5bad03(0x17e))['length'],'skipped':[..._0x43426a,..._0xc56e7][_0x5bad03(0x19b)](_0x1fe620=>_0x1fe620[_0x5bad03(0x19c)]==='skipped')['length']},'skills':{'personal':_0x5373bb['map'](summarizeRuntimeSkill),'company':_0x1708de[_0x5bad03(0x18b)](summarizeRuntimeSkill)}},'message':_0x5bad03(0x183)+_0x5373bb[_0x5bad03(0x18e)]+'\x20personal\x20and\x20'+_0x1708de[_0x5bad03(0x18e)]+_0x5bad03(0x1a3)};}async function downloadSkillPackage(_0x2a861c,_0x200e88,_0x425559,_0x3f0786){const _0x5d6878=a43_0x3089ec,_0x5e15c0=_0x2a861c[_0x5d6878(0x1a4)]?.[_0x5d6878(0x17d)]();return _0x5e15c0?_0x3f0786(_0x200e88,_0x2a861c[_0x5d6878(0x19f)],_0x425559,_0x5e15c0):_0x3f0786(_0x200e88,_0x2a861c[_0x5d6878(0x19f)],_0x425559);}function countLinkActions(_0x5399ca){return _0x5399ca['reduce']((_0x121d57,_0x2c58bf)=>{const _0x5939f6=a43_0x2aa3;return _0x121d57[_0x2c58bf[_0x5939f6(0x19c)]]=(_0x121d57[_0x2c58bf[_0x5939f6(0x19c)]]??0x0)+0x1,_0x121d57;},{});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a44_0x56deda=a44_0x57ce;(function(_0x3004d1,_0x2b93d6){const _0x4ef2be=a44_0x57ce,_0x5d820e=_0x3004d1();while(!![]){try{const _0x3df72b=-parseInt(_0x4ef2be(0x17b))/0x1+parseInt(_0x4ef2be(0x176))/0x2*(parseInt(_0x4ef2be(0x187))/0x3)+parseInt(_0x4ef2be(0x17f))/0x4+-parseInt(_0x4ef2be(0x17c))/0x5*(parseInt(_0x4ef2be(0x17a))/0x6)+-parseInt(_0x4ef2be(0x179))/0x7*(parseInt(_0x4ef2be(0x18b))/0x8)+-parseInt(_0x4ef2be(0x16e))/0x9+parseInt(_0x4ef2be(0x184))/0xa;if(_0x3df72b===_0x2b93d6)break;else _0x5d820e['push'](_0x5d820e['shift']());}catch(_0x564433){_0x5d820e['push'](_0x5d820e['shift']());}}}(a44_0x2d51,0xc4bce));function a44_0x57ce(_0x231726,_0xea5689){_0x231726=_0x231726-0x16c;const _0x2d51d=a44_0x2d51();let _0x57ce25=_0x2d51d[_0x231726];return _0x57ce25;}import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';function a44_0x2d51(){const _0x17eecf=['company','personal','724096UEucWJ','Listed\x20','str','10348983LvzLHR','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','map','filter','\x20remote\x20Skill(s).','scope','length','remote','1271258hTMkxW','code','accessKey','28SKLhBl','936UQorMl','1091273mVuITv','8620kGriZo','builtin','production','5440664yRxoYp','appCode','trim','envName','skill','10465660KyQeXI','\x20local\x20Skill(s).','local','6eKdGQO','authRequired'];a44_0x2d51=function(){return _0x17eecf;};return a44_0x2d51();}import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':a44_0x56deda(0x183),'command':'list','description':a44_0x56deda(0x16f),'risk':'read','flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x4a7954){const _0x5f31f5=a44_0x56deda,_0x4dc8d3=_0x4a7954[_0x5f31f5(0x16d)](_0x5f31f5(0x177)),_0x1ae473=normalizeListScope(_0x4a7954[_0x5f31f5(0x16d)]('scope'));if(_0x4a7954['bool'](_0x5f31f5(0x186))){const _0x65ce1d=_0x4a7954[_0x5f31f5(0x178)];if(!_0x65ce1d)throw CliErrors[_0x5f31f5(0x188)]();const {listLocalRuntimeSkills:_0xdfe97f}=await import('../../../skills/runtime-skill-sync.js'),_0x1225c6=_0xdfe97f({'env':_0x4a7954[_0x5f31f5(0x182)]??_0x5f31f5(0x17e),'accessKey':_0x65ce1d,'appCode':_0x4a7954[_0x5f31f5(0x180)],'scopes':listScopeToRuntimeScopes(_0x1ae473),'code':_0x4dc8d3['trim']()||undefined}),_0x17849a=groupLocalRuntimeSkills(_0x1225c6);return{'ok':!![],'data':{'appCode':_0x4a7954['appCode'],'source':_0x5f31f5(0x186),'scope':_0x1ae473,'total':_0x1225c6['length'],'personal':_0x17849a[_0x5f31f5(0x18a)][_0x5f31f5(0x174)],'company':_0x17849a[_0x5f31f5(0x189)][_0x5f31f5(0x174)],'items':_0x1225c6[_0x5f31f5(0x170)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x17849a['personal'][_0x5f31f5(0x170)](summarizeLocalRuntimeSkill),'company':_0x17849a['company'][_0x5f31f5(0x170)](summarizeLocalRuntimeSkill)}},'message':_0x5f31f5(0x16c)+_0x1225c6[_0x5f31f5(0x174)]+_0x5f31f5(0x185)};}const {listRuntimeSkills:_0x359904}=await import('../../../core/api-client.js'),_0x1cc3b8=await _0x359904({'appCode':_0x4a7954[_0x5f31f5(0x180)],'scope':listScopeToRemoteScope(_0x1ae473),'code':_0x4dc8d3[_0x5f31f5(0x181)]()||undefined}),_0x3f3e1d=shouldListScope(_0x1ae473,_0x5f31f5(0x18a))?_0x1cc3b8[_0x5f31f5(0x18a)]??[]:[],_0x5542f9=shouldListScope(_0x1ae473,_0x5f31f5(0x189))?_0x1cc3b8['company']??[]:[],_0x1b3543=[..._0x3f3e1d,..._0x5542f9];return{'ok':!![],'data':{'appCode':_0x4a7954[_0x5f31f5(0x180)],'source':_0x5f31f5(0x175),'scope':_0x1ae473,'total':_0x1b3543[_0x5f31f5(0x174)],'personal':_0x3f3e1d[_0x5f31f5(0x174)],'company':_0x5542f9['length'],'items':_0x1b3543[_0x5f31f5(0x170)](summarizeRuntimeSkill),'skills':{'personal':_0x3f3e1d[_0x5f31f5(0x170)](summarizeRuntimeSkill),'company':_0x5542f9['map'](summarizeRuntimeSkill)}},'message':_0x5f31f5(0x16c)+_0x1b3543[_0x5f31f5(0x174)]+_0x5f31f5(0x172)};}};function groupLocalRuntimeSkills(_0x542e2f){const _0x3c4c9c=a44_0x56deda;return{'personal':_0x542e2f[_0x3c4c9c(0x171)](_0x2b04aa=>_0x2b04aa['scope']===_0x3c4c9c(0x18a)),'company':_0x542e2f[_0x3c4c9c(0x171)](_0x4a4f00=>_0x4a4f00['scope']===_0x3c4c9c(0x189)),'builtin':_0x542e2f['filter'](_0x41e856=>_0x41e856[_0x3c4c9c(0x173)]===_0x3c4c9c(0x17d))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a45_0x19bf(){const _0x34b1ea=['1062159nozChq','11kmyBUw','19172HjqXFF','3317310fVZxzs','19YAzRLn','skill','8173278zHtGrc','452GLsdjg','push','31474950fRLKYS','write','1542696EPhPvF','35PXjkzi','30235puhALp'];a45_0x19bf=function(){return _0x34b1ea;};return a45_0x19bf();}const a45_0x34ae7b=a45_0x2e73;(function(_0x229cdd,_0x37129a){const _0x1d0bd3=a45_0x2e73,_0xe89c99=_0x229cdd();while(!![]){try{const _0x1f72fb=-parseInt(_0x1d0bd3(0x1bc))/0x1*(-parseInt(_0x1d0bd3(0x1ba))/0x2)+parseInt(_0x1d0bd3(0x1b8))/0x3+-parseInt(_0x1d0bd3(0x1bf))/0x4*(-parseInt(_0x1d0bd3(0x1b7))/0x5)+parseInt(_0x1d0bd3(0x1bb))/0x6+parseInt(_0x1d0bd3(0x1b6))/0x7*(parseInt(_0x1d0bd3(0x1b5))/0x8)+parseInt(_0x1d0bd3(0x1be))/0x9+parseInt(_0x1d0bd3(0x1c1))/0xa*(-parseInt(_0x1d0bd3(0x1b9))/0xb);if(_0x1f72fb===_0x37129a)break;else _0xe89c99['push'](_0xe89c99['shift']());}catch(_0x2611af){_0xe89c99['push'](_0xe89c99['shift']());}}}(a45_0x19bf,0x7963f));function a45_0x2e73(_0x4bccec,_0x27aeb6){_0x4bccec=_0x4bccec-0x1b5;const _0x19bfa8=a45_0x19bf();let _0x2e737f=_0x19bfa8[_0x4bccec];return _0x2e737f;}import{CONFIRM_WARNINGS_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':a45_0x34ae7b(0x1bd),'command':a45_0x34ae7b(0x1c0),'description':'Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope\x20or\x20submit\x20company\x20scope\x20for\x20review','risk':a45_0x34ae7b(0x1c2),'flags':[DIR_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a46_0x1f3b91=a46_0xfe1c;(function(_0x3d4380,_0x58fe2d){const _0x5e814b=a46_0xfe1c,_0x3d2140=_0x3d4380();while(!![]){try{const _0x1c7461=parseInt(_0x5e814b(0x144))/0x1*(parseInt(_0x5e814b(0x14d))/0x2)+parseInt(_0x5e814b(0x14a))/0x3*(-parseInt(_0x5e814b(0x150))/0x4)+parseInt(_0x5e814b(0x143))/0x5*(parseInt(_0x5e814b(0x14e))/0x6)+parseInt(_0x5e814b(0x148))/0x7*(parseInt(_0x5e814b(0x149))/0x8)+-parseInt(_0x5e814b(0x14b))/0x9+-parseInt(_0x5e814b(0x156))/0xa+-parseInt(_0x5e814b(0x146))/0xb;if(_0x1c7461===_0x58fe2d)break;else _0x3d2140['push'](_0x3d2140['shift']());}catch(_0x3f5e97){_0x3d2140['push'](_0x3d2140['shift']());}}}(a46_0x47e3,0x4b634));function a46_0xfe1c(_0x1b8bc1,_0x429c46){_0x1b8bc1=_0x1b8bc1-0x143;const _0x47e347=a46_0x47e3();let _0xfe1c23=_0x47e347[_0x1b8bc1];return _0xfe1c23;}import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';function a46_0x47e3(){const _0x400caa=['78416GZacTi','579105Yuywhh','2534490ZfqCjw','dir','392KQcEhV','24vfuhMy','Skill\x20validation\x20passed.','4qfOTCT','str','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','type','strict','skill','2401040LuVjMu','bool','read','695435aAWMaU','2335ywPPOD','validate','6256679Xzktok','errors','413fXxwxN'];a46_0x47e3=function(){return _0x400caa;};return a46_0x47e3();}export const validateCommand={'service':a46_0x1f3b91(0x155),'command':a46_0x1f3b91(0x145),'description':a46_0x1f3b91(0x152),'risk':a46_0x1f3b91(0x158),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x436f3e){const _0x41e0a5=a46_0x1f3b91,_0x13ed8d=_0x436f3e[_0x41e0a5(0x157)](_0x41e0a5(0x154)),_0x1c2273=validateSkillDirectory(_0x436f3e[_0x41e0a5(0x151)](_0x41e0a5(0x14c)),{'strict':_0x13ed8d});return throwIfSkillValidationFailed(_0x1c2273,_0x13ed8d),{'ok':!![],'data':{'dir':_0x1c2273[_0x41e0a5(0x14c)],'type':_0x1c2273[_0x41e0a5(0x153)],'errors':_0x1c2273[_0x41e0a5(0x147)],'warnings':_0x1c2273['warnings']},'message':_0x41e0a5(0x14f)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a47_0x98c8f1=a47_0x2be4;(function(_0xded2ef,_0x11dda6){const _0x323cd5=a47_0x2be4,_0x10ef33=_0xded2ef();while(!![]){try{const _0x325e4b=-parseInt(_0x323cd5(0x6a))/0x1+parseInt(_0x323cd5(0x75))/0x2+parseInt(_0x323cd5(0x77))/0x3*(-parseInt(_0x323cd5(0x85))/0x4)+-parseInt(_0x323cd5(0x71))/0x5+-parseInt(_0x323cd5(0x6b))/0x6*(-parseInt(_0x323cd5(0x66))/0x7)+-parseInt(_0x323cd5(0x70))/0x8+parseInt(_0x323cd5(0x65))/0x9;if(_0x325e4b===_0x11dda6)break;else _0x10ef33['push'](_0x10ef33['shift']());}catch(_0x1a8d33){_0x10ef33['push'](_0x10ef33['shift']());}}}(a47_0x2eac,0x8ba82));function a47_0x2eac(){const _0x38cbd8=['Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','string','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','2389412RDsxHG','2289861gaJzVh','21SVvyuI','company','target','write','447108KUpwKC','1254810wXEEUx','Skill\x20template\x20type','name','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','1642376hchllr','210440QtbnFj','type','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','1964092oIvvKq','Local\x20Skill\x20directory\x20containing\x20SKILL.md','3kxjKab','dir','local','boolean','code','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','personal','scope','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','force','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists'];a47_0x2eac=function(){return _0x38cbd8;};return a47_0x2eac();}import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a47_0x98c8f1(0x7b),'type':a47_0x98c8f1(0x83),'description':a47_0x98c8f1(0x84)};export const SCOPE_FLAG={'name':a47_0x98c8f1(0x7e),'type':a47_0x98c8f1(0x83),'description':a47_0x98c8f1(0x6e),'enum':['all',a47_0x98c8f1(0x7d),a47_0x98c8f1(0x67)]};export const PUSH_SCOPE_FLAG={'name':a47_0x98c8f1(0x7e),'type':a47_0x98c8f1(0x83),'description':a47_0x98c8f1(0x7c),'default':a47_0x98c8f1(0x7d),'enum':[a47_0x98c8f1(0x7d),a47_0x98c8f1(0x67)]};function a47_0x2be4(_0x24b65a,_0x57a8f3){_0x24b65a=_0x24b65a-0x65;const _0x2eac21=a47_0x2eac();let _0x2be4ab=_0x2eac21[_0x24b65a];return _0x2be4ab;}export const LIST_SCOPE_FLAG={'name':a47_0x98c8f1(0x7e),'type':'string','description':a47_0x98c8f1(0x73),'enum':['all',a47_0x98c8f1(0x7d),'company']};export const LOCAL_FLAG={'name':a47_0x98c8f1(0x79),'type':a47_0x98c8f1(0x7a),'description':a47_0x98c8f1(0x6f)};export const DIR_FLAG={'name':a47_0x98c8f1(0x78),'type':'string','required':!![],'description':a47_0x98c8f1(0x76)};export const CREATE_NAME_FLAG={'name':a47_0x98c8f1(0x6d),'type':a47_0x98c8f1(0x83),'required':!![],'description':a47_0x98c8f1(0x7f),'pattern':{'regex':SKILL_NAME_PATTERN,'description':'lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens'}};export const TYPE_FLAG={'name':a47_0x98c8f1(0x72),'type':'string','description':a47_0x98c8f1(0x6c),'default':a47_0x98c8f1(0x69),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a47_0x98c8f1(0x68),'type':a47_0x98c8f1(0x83),'description':a47_0x98c8f1(0x74),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a47_0x98c8f1(0x80),'type':a47_0x98c8f1(0x7a),'description':a47_0x98c8f1(0x81)};export const CONFIRM_WARNINGS_FLAG={'name':'confirm-warnings','type':a47_0x98c8f1(0x7a),'description':a47_0x98c8f1(0x82)};export const STRICT_FLAG={'name':'strict','type':a47_0x98c8f1(0x7a),'description':'Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5cff83,_0x9ea63a){const _0x11a3fb=a48_0x10e4,_0xdc569c=_0x5cff83();while(!![]){try{const _0x133dc6=parseInt(_0x11a3fb(0x8c))/0x1+parseInt(_0x11a3fb(0x8a))/0x2*(parseInt(_0x11a3fb(0x8d))/0x3)+-parseInt(_0x11a3fb(0x8b))/0x4+parseInt(_0x11a3fb(0x86))/0x5+-parseInt(_0x11a3fb(0x87))/0x6+-parseInt(_0x11a3fb(0x88))/0x7+-parseInt(_0x11a3fb(0x8e))/0x8*(-parseInt(_0x11a3fb(0x89))/0x9);if(_0x133dc6===_0x9ea63a)break;else _0xdc569c['push'](_0xdc569c['shift']());}catch(_0xdf3560){_0xdc569c['push'](_0xdc569c['shift']());}}}(a48_0x4b0f,0x64649));function a48_0x10e4(_0x2b2519,_0x376f2a){_0x2b2519=_0x2b2519-0x86;const _0x4b0f9a=a48_0x4b0f();let _0x10e45e=_0x4b0f9a[_0x2b2519];return _0x10e45e;}import{createCommand}from'./commands/create.js';import{installCommand}from'./commands/install.js';function a48_0x4b0f(){const _0x26b6b2=['172UntsQl','1399436JwUDrx','655192LJUwao','15066QNaWhj','1642400pLqVor','2677610WSeAnL','3800232aFczCD','4471362WrXQFp','18cnIium'];a48_0x4b0f=function(){return _0x26b6b2;};return a48_0x4b0f();}import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x35b019,_0x4f1001){var _0x36d78b=a49_0x2ded,_0x4cb1ce=_0x35b019();while(!![]){try{var _0x49ac79=parseInt(_0x36d78b(0x9d))/0x1*(parseInt(_0x36d78b(0x92))/0x2)+parseInt(_0x36d78b(0x93))/0x3+-parseInt(_0x36d78b(0xa3))/0x4*(parseInt(_0x36d78b(0xa4))/0x5)+parseInt(_0x36d78b(0xa2))/0x6*(parseInt(_0x36d78b(0x9e))/0x7)+parseInt(_0x36d78b(0x9c))/0x8+-parseInt(_0x36d78b(0x9a))/0x9+-parseInt(_0x36d78b(0xa0))/0xa*(parseInt(_0x36d78b(0x99))/0xb);if(_0x49ac79===_0x4f1001)break;else _0x4cb1ce['push'](_0x4cb1ce['shift']());}catch(_0x202ab9){_0x4cb1ce['push'](_0x4cb1ce['shift']());}}}(a49_0x404d,0x7f185));function a49_0x404d(){var _0x2dabdf=['path','601672mfexYn','22bLgCeD','847IRUkDI','isArray','174850MuZjvo','SKILL.md','44412UlRuGM','8PnWHWB','752905hUQBJZ','length','89216gYfBMW','2802276hGscOT','some','files','string','object','ossPath','1243LwPAYY','798939lxbIoZ'];a49_0x404d=function(){return _0x2dabdf;};return a49_0x404d();}export function isPackageBackedManifest(_0x2ec79b){var _0x2b7a6c=a49_0x2ded;return!!_0x2ec79b&&typeof _0x2ec79b===_0x2b7a6c(0x97)&&!Array[_0x2b7a6c(0x9f)](_0x2ec79b)&&typeof _0x2ec79b[_0x2b7a6c(0x98)]===_0x2b7a6c(0x96)&&_0x2ec79b[_0x2b7a6c(0x98)][_0x2b7a6c(0x91)]>0x0&&Array[_0x2b7a6c(0x9f)](_0x2ec79b[_0x2b7a6c(0x95)]);}function a49_0x2ded(_0x8c2777,_0x3bfd92){_0x8c2777=_0x8c2777-0x91;var _0x404d4c=a49_0x404d();var _0x2ded5c=_0x404d4c[_0x8c2777];return _0x2ded5c;}export function isMultiFileManifest(_0x33e0cb){var _0x458e6f=a49_0x2ded;return!!_0x33e0cb&&typeof _0x33e0cb==='object'&&!Array[_0x458e6f(0x9f)](_0x33e0cb)&&Array['isArray'](_0x33e0cb[_0x458e6f(0x95)])&&_0x33e0cb['files'][_0x458e6f(0x94)](_0x28ffcd=>_0x28ffcd[_0x458e6f(0x9b)]!==_0x458e6f(0xa1));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a49_0x44dd(_0x4c86de,_0x584cc5){_0x4c86de=_0x4c86de-0x110;const _0x5a65d7=a49_0x5a65();let _0x44dd7c=_0x5a65d7[_0x4c86de];return _0x44dd7c;}(function(_0x28949c,_0x32d269){const _0x1b6317=a49_0x44dd,_0x564c95=_0x28949c();while(!![]){try{const _0x29f667=-parseInt(_0x1b6317(0x13a))/0x1*(-parseInt(_0x1b6317(0x129))/0x2)+parseInt(_0x1b6317(0x13d))/0x3+-parseInt(_0x1b6317(0x12b))/0x4+parseInt(_0x1b6317(0x139))/0x5+-parseInt(_0x1b6317(0x130))/0x6*(parseInt(_0x1b6317(0x127))/0x7)+parseInt(_0x1b6317(0x135))/0x8*(-parseInt(_0x1b6317(0x115))/0x9)+parseInt(_0x1b6317(0x138))/0xa*(parseInt(_0x1b6317(0x121))/0xb);if(_0x29f667===_0x32d269)break;else _0x564c95['push'](_0x564c95['shift']());}catch(_0x518ff1){_0x564c95['push'](_0x564c95['shift']());}}}(a49_0x5a65,0x204c6));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x4b04b5){const _0xefcc12=a49_0x44dd,{getRuntimeSkillByCode:_0xcdf689,validateRuntimeSkillPublish:_0x3bbc75}=await import(_0xefcc12(0x12a)),{readPushDirectory:_0x94ec59,resolvePushDirectoryIdentity:_0x16c5cd}=await import('../../skills/runtime-skill-sync.js');if(!_0x4b04b5['accessKey'])throw CliErrors[_0xefcc12(0x12f)]();const _0x1a0995=resolvePushScope(_0x4b04b5),_0x535f92=validateSkillDirectory(_0x4b04b5['str'](_0xefcc12(0x117)));throwIfSkillValidationFailed(_0x535f92);const _0x164cfd=_0x16c5cd(_0x535f92['dir'],_0x4b04b5[_0xefcc12(0x124)],remoteFirstMetadataOptions()),_0x5700a3=await _0xcdf689(_0x4b04b5[_0xefcc12(0x124)],_0x164cfd[_0xefcc12(0x112)]);throwIfBuiltinPushTarget(_0x5700a3);if(_0x1a0995===_0xefcc12(0x137)){const _0x27d861=_0x94ec59(_0x535f92[_0xefcc12(0x117)],_0x4b04b5[_0xefcc12(0x124)],remoteMissingCompanyReadOptions()),_0x2710c9=await _0x3bbc75(_0x4b04b5[_0xefcc12(0x124)],_0x27d861[_0xefcc12(0x119)],{'visibility':'NAMESPACE_ONLY'});return{'method':_0xefcc12(0x146),'url':_0xefcc12(0x131)+_0x4b04b5[_0xefcc12(0x124)]+_0xefcc12(0x126),'body':{'skillCode':_0x27d861[_0xefcc12(0x112)],'visibility':_0xefcc12(0x116),'valid':_0x2710c9['valid'],'errors':_0x2710c9['errors'],'warnings':_0x2710c9[_0xefcc12(0x12c)],'resolvedSlug':_0x2710c9[_0xefcc12(0x142)],'resolvedVersion':_0x2710c9[_0xefcc12(0x143)]},'description':'Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.'};}if(_0x5700a3&&_0x5700a3[_0xefcc12(0x118)]!=='personal')throw CliErrors[_0xefcc12(0x13b)](_0xefcc12(0x11c)+_0x164cfd[_0xefcc12(0x112)]+'\x20has\x20scope=\x22'+(_0x5700a3[_0xefcc12(0x118)]??_0xefcc12(0x13f))+'\x22.');const _0x531b03=_0x94ec59(_0x535f92[_0xefcc12(0x117)],_0x4b04b5[_0xefcc12(0x124)],_0x5700a3?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions()),_0x732489=await _0x3bbc75(_0x4b04b5['appCode'],_0x531b03[_0xefcc12(0x119)],{'visibility':'PRIVATE'});return{'method':_0xefcc12(0x146),'url':_0xefcc12(0x131)+_0x4b04b5[_0xefcc12(0x124)]+_0xefcc12(0x126),'body':{'skillCode':_0x531b03['skillCode'],'visibility':_0xefcc12(0x11a),'valid':_0x732489[_0xefcc12(0x113)],'errors':_0x732489['errors'],'warnings':_0x732489[_0xefcc12(0x12c)],'resolvedSlug':_0x732489['resolvedSlug'],'resolvedVersion':_0x732489[_0xefcc12(0x143)]},'description':_0xefcc12(0x11b)};}function a49_0x5a65(){const _0x2c2f0a=['valid','publishInput','1143VTDbBy','NAMESPACE_ONLY','dir','scope','input','PRIVATE','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','payload','files','frontmatterDisplayName','submitted','11TmYgBp','Personal','identical','appCode','existing','/publish/validate','21yurRpJ','\x20version\x20','34KfEaNp','../../core/api-client.js','622836bRPocT','warnings','\x20Skill\x20','version','authRequired','134664GkQOik','/api/cli/v1/skills/','accessKey','\x20has\x20scope=\x22','metadata','3512WJfWWb','status','company','188960oMsnmj','1102610dmmRsa','4723IDEsbw','validation','savedSkill','274137ZYgIrX','Company','unknown','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','personal','resolvedSlug','resolvedVersion','\x20for\x20review','Updated\x20personal\x20Skill\x20','POST','Submitted\x20company\x20Skill\x20','bool','skillCode'];a49_0x5a65=function(){return _0x2c2f0a;};return a49_0x5a65();}export async function skillPushExecute(_0x99a415){const _0x259ac7=a49_0x44dd,{createPersonalRuntimeSkill:_0x1f4157,downloadRuntimeSkillPackage:_0x4844d6,getRuntimeSkillByCode:_0x400e4a,publishCompanyRuntimeSkill:_0x31e588,updatePersonalRuntimeSkill:_0x295e17,validateRuntimeSkillPublish:_0x43c82d}=await import(_0x259ac7(0x12a)),{verifyRuntimeSkillPackage:_0x51a9ed,verifyRuntimeSkillBundle:_0x4d251a,readPushDirectory:_0x369f87,refreshPushDirectoryMetadataFromRemote:_0x1738e4,recordPushedRuntimeSkill:_0x105a6e,resolvePushDirectoryIdentity:_0x39df85}=await import('../../skills/runtime-skill-sync.js');if(!_0x99a415[_0x259ac7(0x132)])throw CliErrors[_0x259ac7(0x12f)]();const _0x3f08c9=resolvePushScope(_0x99a415),_0x57e231=_0x99a415[_0x259ac7(0x111)]('confirm-warnings')||_0x99a415[_0x259ac7(0x111)]('confirmWarnings'),_0x1e9829=validateSkillDirectory(_0x99a415['str']('dir'));throwIfSkillValidationFailed(_0x1e9829);const _0x407fba=_0x1e9829['dir'];let _0x54f36b;if(_0x3f08c9===_0x259ac7(0x137)){const _0x27502f=_0x39df85(_0x407fba,_0x99a415[_0x259ac7(0x124)],remoteFirstMetadataOptions()),_0x5300c6=await _0x400e4a(_0x99a415[_0x259ac7(0x124)],_0x27502f[_0x259ac7(0x112)]);throwIfBuiltinPushTarget(_0x5300c6);if(_0x5300c6)_0x1738e4(_0x407fba,_0x5300c6,_0x99a415[_0x259ac7(0x124)]);const _0x23b572=_0x369f87(_0x407fba,_0x99a415[_0x259ac7(0x124)],_0x5300c6?{'targetScope':_0x259ac7(0x137),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0x54f36b={'scope':_0x259ac7(0x137),'payload':_0x23b572,'publishInput':_0x23b572[_0x259ac7(0x119)],'remoteForPreflight':_0x5300c6,'warnings':[]};}else{const _0x44f5bf=_0x99a415['str']('appcode')['trim'](),_0x349a88=Boolean(_0x44f5bf),_0x386bf6=allowRetargetArgs(_0x349a88),_0x1001b0=_0x39df85(_0x407fba,_0x99a415[_0x259ac7(0x124)],{...remoteFirstMetadataOptions(),..._0x386bf6[0x0]}),_0x250d6b=await _0x400e4a(_0x99a415[_0x259ac7(0x124)],_0x1001b0[_0x259ac7(0x112)]);throwIfBuiltinPushTarget(_0x250d6b);if(_0x250d6b){if(_0x250d6b[_0x259ac7(0x118)]!=='personal'){if(_0x349a88)throw CliErrors[_0x259ac7(0x13b)](_0x259ac7(0x11c)+_0x1001b0[_0x259ac7(0x112)]+_0x259ac7(0x133)+(_0x250d6b[_0x259ac7(0x118)]??_0x259ac7(0x13f))+'\x22.');_0x1738e4(_0x407fba,_0x250d6b,_0x99a415[_0x259ac7(0x124)]);}else!_0x349a88&&_0x1738e4(_0x407fba,_0x250d6b,_0x99a415[_0x259ac7(0x124)]);}const _0x385b5e=_0x369f87(_0x407fba,_0x99a415['appCode'],_0x250d6b?remotePersonalReadOptions(_0x349a88,_0x386bf6[0x0]):remoteMissingPersonalReadOptions(_0x386bf6[0x0])),_0x13a1ab=_0x250d6b?.[_0x259ac7(0x118)]==='personal'&&_0x250d6b[_0x259ac7(0x112)]===_0x385b5e[_0x259ac7(0x112)]?_0x250d6b:undefined,_0x4d081b=_0x349a88&&_0x13a1ab?withRetargetExistingMetadata(_0x385b5e['input'],_0x13a1ab,{'preferInputSkillName':Boolean(_0x385b5e[_0x259ac7(0x11f)])}):_0x385b5e['input'],_0x402de8=_0x349a88?buildRetargetWarning(_0x1001b0[_0x259ac7(0x134)],_0x99a415['appCode']):[];_0x54f36b={'scope':_0x259ac7(0x141),'payload':_0x385b5e,'publishInput':_0x4d081b,'remoteForPreflight':_0x13a1ab,'existing':_0x13a1ab,'warnings':[..._0x1e9829[_0x259ac7(0x12c)],..._0x402de8]};}const _0x5bdbaa=await runRemoteContentPreflight({'scope':_0x54f36b[_0x259ac7(0x118)],'remote':_0x54f36b['remoteForPreflight'],'publishInput':_0x54f36b[_0x259ac7(0x114)],'skillCode':_0x54f36b[_0x259ac7(0x11d)][_0x259ac7(0x112)],'appCode':_0x99a415[_0x259ac7(0x124)],'downloadRuntimeSkillPackage':_0x4844d6,'verifyRuntimeSkillBundle':_0x4d251a});if(_0x5bdbaa[_0x259ac7(0x136)]===_0x259ac7(0x123))return _0x54f36b[_0x259ac7(0x118)]===_0x259ac7(0x137)?_0x105a6e(_0x407fba,_0x5bdbaa[_0x259ac7(0x13c)],_0x99a415['appCode'],{'scope':_0x259ac7(0x137)}):_0x105a6e(_0x407fba,_0x5bdbaa[_0x259ac7(0x13c)],_0x99a415[_0x259ac7(0x124)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x5bdbaa[_0x259ac7(0x13c)]),'scope':_0x54f36b[_0x259ac7(0x118)],..._0x54f36b[_0x259ac7(0x118)]===_0x259ac7(0x141)?{'warnings':_0x54f36b[_0x259ac7(0x12c)]}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0x54f36b[_0x259ac7(0x118)])+_0x259ac7(0x12d)+_0x54f36b[_0x259ac7(0x11d)][_0x259ac7(0x112)]+_0x259ac7(0x140)};if(_0x54f36b[_0x259ac7(0x118)]===_0x259ac7(0x137)){const _0x1e17fd=await _0x43c82d(_0x99a415[_0x259ac7(0x124)],_0x54f36b[_0x259ac7(0x114)],{'visibility':'NAMESPACE_ONLY'});throwIfPublishValidationFailed(_0x259ac7(0x137),_0x54f36b[_0x259ac7(0x11d)]['skillCode'],_0x1e17fd),throwIfUnconfirmedPublishWarnings('company',_0x54f36b[_0x259ac7(0x11d)][_0x259ac7(0x112)],_0x1e17fd['warnings'],_0x57e231);const _0x2244cb=await _0x31e588(_0x99a415[_0x259ac7(0x124)],_0x54f36b['publishInput'],{'confirmWarnings':_0x57e231});return _0x105a6e(_0x407fba,{..._0x2244cb,'files':_0x54f36b[_0x259ac7(0x114)]['files']},_0x99a415[_0x259ac7(0x124)],{'scope':_0x259ac7(0x137)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x2244cb),'scope':_0x259ac7(0x137),'reviewState':_0x259ac7(0x120),'submittedForReview':!![],'validation':{'warnings':_0x1e17fd['warnings']}},'message':_0x259ac7(0x110)+_0x54f36b['payload']['skillCode']+_0x259ac7(0x128)+(_0x2244cb[_0x259ac7(0x12e)]??'(unknown)')+_0x259ac7(0x144)};}const _0x2c45fc=await _0x43c82d(_0x99a415[_0x259ac7(0x124)],_0x54f36b[_0x259ac7(0x114)],{'visibility':_0x259ac7(0x11a)});throwIfPublishValidationFailed(_0x259ac7(0x141),_0x54f36b[_0x259ac7(0x11d)]['skillCode'],_0x2c45fc),throwIfUnconfirmedPublishWarnings(_0x259ac7(0x141),_0x54f36b[_0x259ac7(0x11d)]['skillCode'],_0x2c45fc[_0x259ac7(0x12c)],_0x57e231);const _0x5009d8={'confirmWarnings':_0x57e231},_0x355228=_0x54f36b['existing']?await _0x295e17(_0x54f36b[_0x259ac7(0x11d)][_0x259ac7(0x112)],_0x99a415[_0x259ac7(0x124)],_0x54f36b[_0x259ac7(0x114)],_0x5009d8):await _0x1f4157(_0x99a415[_0x259ac7(0x124)],_0x54f36b[_0x259ac7(0x114)],_0x5009d8);let _0x25615d=_0x355228;if(isMultiFileManifest(_0x54f36b['publishInput']['files'])){const _0x192d4d=await _0x4844d6(_0x259ac7(0x141),_0x355228[_0x259ac7(0x112)]||_0x54f36b[_0x259ac7(0x11d)][_0x259ac7(0x112)],_0x99a415[_0x259ac7(0x124)]);_0x4d251a(_0x54f36b[_0x259ac7(0x114)][_0x259ac7(0x11e)],_0x192d4d),_0x25615d={..._0x355228,'files':_0x54f36b[_0x259ac7(0x114)]['files']};}else{if(isPackageBackedManifest(_0x355228[_0x259ac7(0x11e)])){const _0x48d518=await _0x4844d6('personal',_0x355228[_0x259ac7(0x112)]||_0x54f36b['payload'][_0x259ac7(0x112)],_0x99a415[_0x259ac7(0x124)]);_0x51a9ed(_0x355228[_0x259ac7(0x11e)],_0x48d518);}}return _0x105a6e(_0x407fba,_0x25615d,_0x99a415['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x355228),'warnings':_0x54f36b[_0x259ac7(0x12c)],'validation':{'warnings':_0x2c45fc['warnings']}},'message':_0x54f36b[_0x259ac7(0x125)]?_0x259ac7(0x145)+_0x54f36b[_0x259ac7(0x11d)]['skillCode']:'Created\x20personal\x20Skill\x20'+_0x54f36b['payload']['skillCode']};}function scopeLabel(_0x4fd27f){const _0x1b6ee7=a49_0x44dd;return _0x4fd27f===_0x1b6ee7(0x137)?_0x1b6ee7(0x13e):_0x1b6ee7(0x122);}
|
|
1
|
+
(function(_0x430f9e,_0x57f68f){const _0x10e354=a50_0x215b,_0x1172c6=_0x430f9e();while(!![]){try{const _0x16fc97=-parseInt(_0x10e354(0x147))/0x1*(-parseInt(_0x10e354(0x14e))/0x2)+-parseInt(_0x10e354(0x136))/0x3*(parseInt(_0x10e354(0x13a))/0x4)+parseInt(_0x10e354(0x15a))/0x5+parseInt(_0x10e354(0x165))/0x6*(parseInt(_0x10e354(0x148))/0x7)+-parseInt(_0x10e354(0x167))/0x8+parseInt(_0x10e354(0x14b))/0x9*(-parseInt(_0x10e354(0x137))/0xa)+parseInt(_0x10e354(0x158))/0xb*(parseInt(_0x10e354(0x140))/0xc);if(_0x16fc97===_0x57f68f)break;else _0x1172c6['push'](_0x1172c6['shift']());}catch(_0x4fb21c){_0x1172c6['push'](_0x1172c6['shift']());}}}(a50_0x59e5,0x690f4));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';function a50_0x215b(_0x1b0b9b,_0x2a2f34){_0x1b0b9b=_0x1b0b9b-0x132;const _0x59e58e=a50_0x59e5();let _0x215bc2=_0x59e58e[_0x1b0b9b];return _0x215bc2;}import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';function a50_0x59e5(){const _0x54fbc7=['warnings','frontmatterDisplayName','version','2235876xWFdKz','company','files','bool','metadata','identical','resolvedVersion','49017VUmocZ','2912XPRnXu','authRequired','savedSkill','2367gYHJja','Created\x20personal\x20Skill\x20','\x20for\x20review','22zjSJff','Updated\x20personal\x20Skill\x20','PRIVATE','publishInput','appCode','../../skills/runtime-skill-sync.js','validation','valid','dir','payload','11eDMrgV','Submitted\x20company\x20Skill\x20','745160kOOqZP','unknown','scope','confirm-warnings','personal','Personal','/api/cli/v1/skills/','str','resolvedSlug','confirmWarnings','NAMESPACE_ONLY','10968JDeIfg','\x20Skill\x20','3328032OmZUZd','\x20version\x20','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','/publish/validate','errors','38337XjFaJT','26100gjxuaU','trim','skillCode','32ojUTaD','input','POST'];a50_0x59e5=function(){return _0x54fbc7;};return a50_0x59e5();}import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x3f60fc){const _0x812a19=a50_0x215b,{getRuntimeSkillByCode:_0x214d75,validateRuntimeSkillPublish:_0x14911f}=await import('../../core/api-client.js'),{readPushDirectory:_0x1ca239,resolvePushDirectoryIdentity:_0x2dac1f}=await import(_0x812a19(0x153));if(!_0x3f60fc['accessKey'])throw CliErrors[_0x812a19(0x149)]();const _0x33d0d5=resolvePushScope(_0x3f60fc),_0x358d9f=validateSkillDirectory(_0x3f60fc[_0x812a19(0x161)](_0x812a19(0x156)));throwIfSkillValidationFailed(_0x358d9f);const _0x4353d1=_0x2dac1f(_0x358d9f[_0x812a19(0x156)],_0x3f60fc[_0x812a19(0x152)],remoteFirstMetadataOptions()),_0x2cdd9a=await _0x214d75(_0x3f60fc['appCode'],_0x4353d1[_0x812a19(0x139)]);throwIfBuiltinPushTarget(_0x2cdd9a);if(_0x33d0d5==='company'){const _0x2b017f=_0x1ca239(_0x358d9f['dir'],_0x3f60fc[_0x812a19(0x152)],remoteMissingCompanyReadOptions()),_0x396a09=await _0x14911f(_0x3f60fc[_0x812a19(0x152)],_0x2b017f[_0x812a19(0x13b)],{'visibility':_0x812a19(0x164)});return{'method':_0x812a19(0x13c),'url':_0x812a19(0x160)+_0x3f60fc['appCode']+_0x812a19(0x134),'body':{'skillCode':_0x2b017f[_0x812a19(0x139)],'visibility':_0x812a19(0x164),'valid':_0x396a09[_0x812a19(0x155)],'errors':_0x396a09[_0x812a19(0x135)],'warnings':_0x396a09[_0x812a19(0x13d)],'resolvedSlug':_0x396a09[_0x812a19(0x162)],'resolvedVersion':_0x396a09[_0x812a19(0x146)]},'description':'Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.'};}if(_0x2cdd9a&&_0x2cdd9a['scope']!=='personal')throw CliErrors[_0x812a19(0x154)](_0x812a19(0x133)+_0x4353d1[_0x812a19(0x139)]+'\x20has\x20scope=\x22'+(_0x2cdd9a[_0x812a19(0x15c)]??_0x812a19(0x15b))+'\x22.');const _0xa518e0=_0x1ca239(_0x358d9f[_0x812a19(0x156)],_0x3f60fc[_0x812a19(0x152)],_0x2cdd9a?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions()),_0x51bea0=await _0x14911f(_0x3f60fc[_0x812a19(0x152)],_0xa518e0[_0x812a19(0x13b)],{'visibility':_0x812a19(0x150)});return{'method':_0x812a19(0x13c),'url':_0x812a19(0x160)+_0x3f60fc['appCode']+_0x812a19(0x134),'body':{'skillCode':_0xa518e0[_0x812a19(0x139)],'visibility':_0x812a19(0x150),'valid':_0x51bea0[_0x812a19(0x155)],'errors':_0x51bea0['errors'],'warnings':_0x51bea0['warnings'],'resolvedSlug':_0x51bea0[_0x812a19(0x162)],'resolvedVersion':_0x51bea0['resolvedVersion']},'description':'Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.'};}export async function skillPushExecute(_0x44f226){const _0x16eec4=a50_0x215b,{createPersonalRuntimeSkill:_0x5763ed,downloadRuntimeSkillPackage:_0x4940ac,getRuntimeSkillByCode:_0xee546c,publishCompanyRuntimeSkill:_0x3dd079,updatePersonalRuntimeSkill:_0x4809ad,validateRuntimeSkillPublish:_0x11ea2c}=await import('../../core/api-client.js'),{verifyRuntimeSkillPackage:_0x3621ce,verifyRuntimeSkillBundle:_0x2c0c3d,readPushDirectory:_0x1685a8,refreshPushDirectoryMetadataFromRemote:_0x18ef5c,recordPushedRuntimeSkill:_0x4a0a83,resolvePushDirectoryIdentity:_0x7cf4b6}=await import(_0x16eec4(0x153));if(!_0x44f226['accessKey'])throw CliErrors[_0x16eec4(0x149)]();const _0x10eb21=resolvePushScope(_0x44f226),_0x55235a=_0x44f226[_0x16eec4(0x143)](_0x16eec4(0x15d))||_0x44f226[_0x16eec4(0x143)](_0x16eec4(0x163)),_0xdc85d7=validateSkillDirectory(_0x44f226[_0x16eec4(0x161)](_0x16eec4(0x156)));throwIfSkillValidationFailed(_0xdc85d7);const _0x1c79da=_0xdc85d7['dir'];let _0x4168c6;if(_0x10eb21===_0x16eec4(0x141)){const _0xe76baa=_0x7cf4b6(_0x1c79da,_0x44f226['appCode'],remoteFirstMetadataOptions()),_0x4bb9d0=await _0xee546c(_0x44f226[_0x16eec4(0x152)],_0xe76baa[_0x16eec4(0x139)]);throwIfBuiltinPushTarget(_0x4bb9d0);if(_0x4bb9d0)_0x18ef5c(_0x1c79da,_0x4bb9d0,_0x44f226[_0x16eec4(0x152)]);const _0x1cc2e0=_0x1685a8(_0x1c79da,_0x44f226['appCode'],_0x4bb9d0?{'targetScope':_0x16eec4(0x141),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0x4168c6={'scope':_0x16eec4(0x141),'payload':_0x1cc2e0,'publishInput':_0x1cc2e0[_0x16eec4(0x13b)],'remoteForPreflight':_0x4bb9d0,'warnings':[]};}else{const _0x23233e=_0x44f226[_0x16eec4(0x161)]('appcode')[_0x16eec4(0x138)](),_0x289fbb=Boolean(_0x23233e),_0x5b86ac=allowRetargetArgs(_0x289fbb),_0x1341e4=_0x7cf4b6(_0x1c79da,_0x44f226[_0x16eec4(0x152)],{...remoteFirstMetadataOptions(),..._0x5b86ac[0x0]}),_0x4fd218=await _0xee546c(_0x44f226[_0x16eec4(0x152)],_0x1341e4['skillCode']);throwIfBuiltinPushTarget(_0x4fd218);if(_0x4fd218){if(_0x4fd218[_0x16eec4(0x15c)]!==_0x16eec4(0x15e)){if(_0x289fbb)throw CliErrors['validation'](_0x16eec4(0x133)+_0x1341e4[_0x16eec4(0x139)]+'\x20has\x20scope=\x22'+(_0x4fd218[_0x16eec4(0x15c)]??_0x16eec4(0x15b))+'\x22.');_0x18ef5c(_0x1c79da,_0x4fd218,_0x44f226[_0x16eec4(0x152)]);}else!_0x289fbb&&_0x18ef5c(_0x1c79da,_0x4fd218,_0x44f226[_0x16eec4(0x152)]);}const _0x31738e=_0x1685a8(_0x1c79da,_0x44f226[_0x16eec4(0x152)],_0x4fd218?remotePersonalReadOptions(_0x289fbb,_0x5b86ac[0x0]):remoteMissingPersonalReadOptions(_0x5b86ac[0x0])),_0x1f3810=_0x4fd218?.[_0x16eec4(0x15c)]===_0x16eec4(0x15e)&&_0x4fd218[_0x16eec4(0x139)]===_0x31738e['skillCode']?_0x4fd218:undefined,_0x234706=_0x289fbb&&_0x1f3810?withRetargetExistingMetadata(_0x31738e[_0x16eec4(0x13b)],_0x1f3810,{'preferInputSkillName':Boolean(_0x31738e[_0x16eec4(0x13e)])}):_0x31738e[_0x16eec4(0x13b)],_0x3cc7d6=_0x289fbb?buildRetargetWarning(_0x1341e4[_0x16eec4(0x144)],_0x44f226[_0x16eec4(0x152)]):[];_0x4168c6={'scope':_0x16eec4(0x15e),'payload':_0x31738e,'publishInput':_0x234706,'remoteForPreflight':_0x1f3810,'existing':_0x1f3810,'warnings':[..._0xdc85d7[_0x16eec4(0x13d)],..._0x3cc7d6]};}const _0x402856=await runRemoteContentPreflight({'scope':_0x4168c6[_0x16eec4(0x15c)],'remote':_0x4168c6['remoteForPreflight'],'publishInput':_0x4168c6[_0x16eec4(0x151)],'skillCode':_0x4168c6[_0x16eec4(0x157)]['skillCode'],'appCode':_0x44f226[_0x16eec4(0x152)],'downloadRuntimeSkillPackage':_0x4940ac,'verifyRuntimeSkillBundle':_0x2c0c3d});if(_0x402856['status']===_0x16eec4(0x145))return _0x4168c6[_0x16eec4(0x15c)]===_0x16eec4(0x141)?_0x4a0a83(_0x1c79da,_0x402856[_0x16eec4(0x14a)],_0x44f226[_0x16eec4(0x152)],{'scope':_0x16eec4(0x141)}):_0x4a0a83(_0x1c79da,_0x402856['savedSkill'],_0x44f226[_0x16eec4(0x152)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x402856[_0x16eec4(0x14a)]),'scope':_0x4168c6[_0x16eec4(0x15c)],..._0x4168c6[_0x16eec4(0x15c)]===_0x16eec4(0x15e)?{'warnings':_0x4168c6[_0x16eec4(0x13d)]}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0x4168c6[_0x16eec4(0x15c)])+_0x16eec4(0x166)+_0x4168c6[_0x16eec4(0x157)][_0x16eec4(0x139)]+'\x20is\x20already\x20published\x20and\x20content\x20is\x20identical'};if(_0x4168c6[_0x16eec4(0x15c)]==='company'){const _0x4be5a4=await _0x11ea2c(_0x44f226[_0x16eec4(0x152)],_0x4168c6[_0x16eec4(0x151)],{'visibility':_0x16eec4(0x164)});throwIfPublishValidationFailed(_0x16eec4(0x141),_0x4168c6[_0x16eec4(0x157)][_0x16eec4(0x139)],_0x4be5a4),throwIfUnconfirmedPublishWarnings('company',_0x4168c6['payload'][_0x16eec4(0x139)],_0x4be5a4['warnings'],_0x55235a);const _0x47fb90=await _0x3dd079(_0x44f226[_0x16eec4(0x152)],_0x4168c6[_0x16eec4(0x151)],{'confirmWarnings':_0x55235a});return _0x4a0a83(_0x1c79da,{..._0x47fb90,'files':_0x4168c6[_0x16eec4(0x151)][_0x16eec4(0x142)]},_0x44f226[_0x16eec4(0x152)],{'scope':_0x16eec4(0x141)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x47fb90),'scope':_0x16eec4(0x141),'reviewState':'submitted','submittedForReview':!![],'validation':{'warnings':_0x4be5a4['warnings']}},'message':_0x16eec4(0x159)+_0x4168c6[_0x16eec4(0x157)][_0x16eec4(0x139)]+_0x16eec4(0x132)+(_0x47fb90[_0x16eec4(0x13f)]??'(unknown)')+_0x16eec4(0x14d)};}const _0x33831f=await _0x11ea2c(_0x44f226[_0x16eec4(0x152)],_0x4168c6[_0x16eec4(0x151)],{'visibility':_0x16eec4(0x150)});throwIfPublishValidationFailed(_0x16eec4(0x15e),_0x4168c6[_0x16eec4(0x157)][_0x16eec4(0x139)],_0x33831f),throwIfUnconfirmedPublishWarnings(_0x16eec4(0x15e),_0x4168c6[_0x16eec4(0x157)][_0x16eec4(0x139)],_0x33831f[_0x16eec4(0x13d)],_0x55235a);const _0x5b1126={'confirmWarnings':_0x55235a},_0x417ec6=_0x4168c6['existing']?await _0x4809ad(_0x4168c6[_0x16eec4(0x157)][_0x16eec4(0x139)],_0x44f226[_0x16eec4(0x152)],_0x4168c6[_0x16eec4(0x151)],_0x5b1126):await _0x5763ed(_0x44f226['appCode'],_0x4168c6[_0x16eec4(0x151)],_0x5b1126);let _0x1543f3=_0x417ec6;if(isMultiFileManifest(_0x4168c6[_0x16eec4(0x151)][_0x16eec4(0x142)])){const _0x264187=await _0x4940ac(_0x16eec4(0x15e),_0x417ec6['skillCode']||_0x4168c6['payload'][_0x16eec4(0x139)],_0x44f226[_0x16eec4(0x152)]);_0x2c0c3d(_0x4168c6[_0x16eec4(0x151)]['files'],_0x264187),_0x1543f3={..._0x417ec6,'files':_0x4168c6['publishInput']['files']};}else{if(isPackageBackedManifest(_0x417ec6[_0x16eec4(0x142)])){const _0x1af808=await _0x4940ac('personal',_0x417ec6[_0x16eec4(0x139)]||_0x4168c6['payload'][_0x16eec4(0x139)],_0x44f226[_0x16eec4(0x152)]);_0x3621ce(_0x417ec6[_0x16eec4(0x142)],_0x1af808);}}return _0x4a0a83(_0x1c79da,_0x1543f3,_0x44f226[_0x16eec4(0x152)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x417ec6),'warnings':_0x4168c6[_0x16eec4(0x13d)],'validation':{'warnings':_0x33831f[_0x16eec4(0x13d)]}},'message':_0x4168c6['existing']?_0x16eec4(0x14f)+_0x4168c6[_0x16eec4(0x157)][_0x16eec4(0x139)]:_0x16eec4(0x14c)+_0x4168c6[_0x16eec4(0x157)]['skillCode']};}function scopeLabel(_0x3427f3){const _0x350090=a50_0x215b;return _0x3427f3===_0x350090(0x141)?'Company':_0x350090(0x15f);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x52f783,_0x391593){const _0x26d7c5=a51_0x1765,_0x3ab982=_0x52f783();while(!![]){try{const _0x2142d6=-parseInt(_0x26d7c5(0x1ca))/0x1+parseInt(_0x26d7c5(0x1cf))/0x2*(parseInt(_0x26d7c5(0x1d8))/0x3)+-parseInt(_0x26d7c5(0x1d4))/0x4*(-parseInt(_0x26d7c5(0x1b7))/0x5)+-parseInt(_0x26d7c5(0x1dc))/0x6*(parseInt(_0x26d7c5(0x1e1))/0x7)+-parseInt(_0x26d7c5(0x1c4))/0x8*(parseInt(_0x26d7c5(0x1b6))/0x9)+parseInt(_0x26d7c5(0x1e0))/0xa*(-parseInt(_0x26d7c5(0x1c7))/0xb)+parseInt(_0x26d7c5(0x1d6))/0xc*(parseInt(_0x26d7c5(0x1bf))/0xd);if(_0x2142d6===_0x391593)break;else _0x3ab982['push'](_0x3ab982['shift']());}catch(_0x142e90){_0x3ab982['push'](_0x3ab982['shift']());}}}(a51_0x39fc,0x62b29));import{CliErrors}from'../../errors.js';function a51_0x1765(_0x2a9e14,_0x20d053){_0x2a9e14=_0x2a9e14-0x1b3;const _0x39fc03=a51_0x39fc();let _0x176561=_0x39fc03[_0x2a9e14];return _0x176561;}export function resolvePushScope(_0x5e3399){const _0x1a3e1a=a51_0x1765,_0x4907f3=_0x5e3399[_0x1a3e1a(0x1be)](_0x1a3e1a(0x1da))||_0x1a3e1a(0x1de);if(_0x4907f3===_0x1a3e1a(0x1de)||_0x4907f3==='company')return _0x4907f3;throw CliErrors[_0x1a3e1a(0x1c9)](_0x1a3e1a(0x1c1)+_0x4907f3+'\x22.');}function a51_0x39fc(){const _0x38a5a8=['\x20after\x20successful\x20push.','582932PZslcz','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','1284zQdJhA','publishInput','3TteNbs','(unknown)','scope','downloadRuntimeSkillPackage','53118dMVBEb','length','personal','company','10igjWGA','539SLsVlc','Warnings:\x20','lovrabet.skill.json','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','SkillHub\x20validation\x20returned\x20invalid.','1110663jUPjrN','5xrEBKR','Company','identical','Review\x20each\x20warning\x20before\x20continuing.','join','not-applicable','errors','str','200122MQqUUt','Local\x20Skill\x20metadata\x20appCode\x20','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','\x20cannot\x20be\x20pushed.','content','48FlPfZn','\x20Skill\x20push\x20validation\x20failed\x20for\x20','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','3114771mZImGQ','verifyRuntimeSkillBundle','validation','465420wZUONW','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','skillCode','Personal','skill-metadata-appcode-retargeted','1564156BAvcag','remote','appCode','different'];a51_0x39fc=function(){return _0x38a5a8;};return a51_0x39fc();}export function allowRetargetArgs(_0x367cc8){return _0x367cc8?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x5daf3e=a51_0x1765;return{'targetScope':_0x5daf3e(0x1df),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x10c8d2={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x10c8d2};}export function remotePersonalReadOptions(_0x44f64b,_0x1647f1={}){return{'ignoreInvalidMetadata':!![],..._0x44f64b?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x1647f1};}export function throwIfBuiltinPushTarget(_0x18e15e){const _0x48c051=a51_0x1765;if(_0x18e15e?.[_0x48c051(0x1da)]!=='builtin')return;throw CliErrors[_0x48c051(0x1c9)]('Builtin\x20Skill\x20'+(_0x18e15e['skillCode']??_0x48c051(0x1d9))+_0x48c051(0x1c2),_0x48c051(0x1b4));}export function throwIfPublishValidationFailed(_0x1742bc,_0x17e942,_0x441294){const _0x2406db=a51_0x1765;if(_0x441294[_0x2406db(0x1bd)][_0x2406db(0x1dd)]===0x0&&(_0x441294['valid']||_0x441294['warnings']['length']>0x0))return;const _0x100237=_0x441294['errors'][_0x2406db(0x1dd)]>0x0?_0x441294[_0x2406db(0x1bd)][_0x2406db(0x1bb)](';\x20'):_0x2406db(0x1b5),_0x4f7aa1=_0x1742bc===_0x2406db(0x1df)?'Company':_0x2406db(0x1cd);throw CliErrors[_0x2406db(0x1c9)](_0x4f7aa1+_0x2406db(0x1c5)+_0x17e942+'.',_0x100237);}export function throwIfUnconfirmedPublishWarnings(_0x4d1a37,_0x392da3,_0x257acb,_0x5328ed){const _0x1ed870=a51_0x1765;if(_0x257acb[_0x1ed870(0x1dd)]===0x0||_0x5328ed)return;const _0x578ded=_0x4d1a37===_0x1ed870(0x1df)?_0x1ed870(0x1b8):_0x1ed870(0x1cd);throw CliErrors[_0x1ed870(0x1c9)](_0x578ded+'\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20'+_0x392da3+'.',[_0x1ed870(0x1ba),_0x1ed870(0x1cb),_0x1ed870(0x1d5),_0x1ed870(0x1e2)+_0x257acb[_0x1ed870(0x1bb)](';\x20')]['join']('\x20'));}export function buildRetargetWarning(_0x3fa35d,_0x5a90cf){const _0x36ee13=a51_0x1765;if(!_0x3fa35d?.[_0x36ee13(0x1d1)]||_0x3fa35d[_0x36ee13(0x1d1)]===_0x5a90cf)return[];return[{'level':'warning','ruleId':_0x36ee13(0x1ce),'file':_0x36ee13(0x1b3),'message':_0x36ee13(0x1c0)+_0x3fa35d[_0x36ee13(0x1d1)]+_0x36ee13(0x1c6)+_0x5a90cf+_0x36ee13(0x1d3),'suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}export async function runRemoteContentPreflight(_0x5869ef){const _0x377a94=a51_0x1765;if(!_0x5869ef[_0x377a94(0x1d0)]||_0x5869ef['remote'][_0x377a94(0x1da)]!==_0x5869ef['scope']||!_0x5869ef[_0x377a94(0x1d7)]['files'])return{'status':_0x377a94(0x1bc)};const _0x5c65fe=_0x5869ef[_0x377a94(0x1d0)]['skillCode']||_0x5869ef[_0x377a94(0x1cc)];if(!_0x5c65fe)return{'status':_0x377a94(0x1bc)};const _0xc3d0f6=await _0x5869ef[_0x377a94(0x1db)](_0x5869ef[_0x377a94(0x1da)],_0x5c65fe,_0x5869ef[_0x377a94(0x1d1)],_0x5869ef[_0x377a94(0x1d0)]['version']);try{_0x5869ef[_0x377a94(0x1c8)](_0x5869ef['publishInput']['files'],_0xc3d0f6);}catch{return{'status':_0x377a94(0x1d2)};}return{'status':_0x377a94(0x1b9),'savedSkill':{..._0x5869ef[_0x377a94(0x1d0)],'content':_0x5869ef[_0x377a94(0x1d7)][_0x377a94(0x1c3)],'files':_0x5869ef[_0x377a94(0x1d7)]['files']}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xfcccce,_0x314dce){const _0x101607=a52_0x36ae,_0x214c6f=_0xfcccce();while(!![]){try{const _0x1bff7b=-parseInt(_0x101607(0xa9))/0x1+parseInt(_0x101607(0xa1))/0x2*(parseInt(_0x101607(0x95))/0x3)+-parseInt(_0x101607(0xa3))/0x4+parseInt(_0x101607(0xaa))/0x5*(parseInt(_0x101607(0x97))/0x6)+parseInt(_0x101607(0xab))/0x7*(parseInt(_0x101607(0x94))/0x8)+-parseInt(_0x101607(0xa6))/0x9+parseInt(_0x101607(0xa4))/0xa*(parseInt(_0x101607(0x9e))/0xb);if(_0x1bff7b===_0x314dce)break;else _0x214c6f['push'](_0x214c6f['shift']());}catch(_0x307d72){_0x214c6f['push'](_0x214c6f['shift']());}}}(a52_0x2e9e,0x28bd0));function a52_0x36ae(_0x5df434,_0x2dae4a){_0x5df434=_0x5df434-0x94;const _0x2e9e4b=a52_0x2e9e();let _0x36ae83=_0x2e9e4b[_0x5df434];return _0x36ae83;}export function withRetargetExistingMetadata(_0x4555b2,_0x58f009,_0x302ae6={}){const _0x7f9d4e=a52_0x36ae,_0x4e8bce=_0x302ae6['preferInputSkillName']?_0x4555b2[_0x7f9d4e(0x96)]??_0x58f009[_0x7f9d4e(0x96)]:_0x58f009['skillName']??_0x4555b2[_0x7f9d4e(0x96)];return{..._0x4555b2,'skillName':_0x4e8bce,'description':_0x58f009[_0x7f9d4e(0xa2)]??_0x4555b2['description'],'tags':Array[_0x7f9d4e(0x9f)](_0x58f009['tags'])?_0x58f009[_0x7f9d4e(0x98)]:_0x4555b2['tags'],'version':_0x58f009[_0x7f9d4e(0xa8)]??_0x4555b2['version'],'sourceSessionId':_0x58f009[_0x7f9d4e(0xa7)]??_0x4555b2[_0x7f9d4e(0xa7)]};}function a52_0x2e9e(){const _0x1c4727=['Local\x20Skill\x20metadata\x20appCode\x20','1767105utkLDZ','sourceSessionId','version','266072IaakYY','985nUdlqm','15330cYUYqU','944EPnVCj','612357FnuWCP','skillName','1734jpNXYP','tags','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','skill-metadata-appcode-retargeted','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','appCode','warning','117370RipjSY','isArray','lovrabet.skill.json','2AhLTis','description','115604FXQICe','130KeNsMp'];a52_0x2e9e=function(){return _0x1c4727;};return a52_0x2e9e();}export function buildRetargetWarning(_0x2318c2,_0x4c19e6){const _0x1d747d=a52_0x36ae;if(!_0x2318c2?.[_0x1d747d(0x9c)]||_0x2318c2[_0x1d747d(0x9c)]===_0x4c19e6)return[];return[{'level':_0x1d747d(0x9d),'ruleId':_0x1d747d(0x9a),'file':_0x1d747d(0xa0),'message':_0x1d747d(0xa5)+_0x2318c2[_0x1d747d(0x9c)]+_0x1d747d(0x99)+_0x4c19e6+'\x20after\x20successful\x20push.','suggestion':_0x1d747d(0x9b)}];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x517bda,_0x4d6825){const _0x5d84d8=a53_0x26ce,_0x1dfc63=_0x517bda();while(!![]){try{const _0x348ca1=-parseInt(_0x5d84d8(0xd7))/0x1*(-parseInt(_0x5d84d8(0xd0))/0x2)+parseInt(_0x5d84d8(0xcf))/0x3+-parseInt(_0x5d84d8(0xd1))/0x4+-parseInt(_0x5d84d8(0xd9))/0x5+-parseInt(_0x5d84d8(0xce))/0x6+-parseInt(_0x5d84d8(0xda))/0x7*(parseInt(_0x5d84d8(0xd4))/0x8)+parseInt(_0x5d84d8(0xd5))/0x9;if(_0x348ca1===_0x4d6825)break;else _0x1dfc63['push'](_0x1dfc63['shift']());}catch(_0x1b2255){_0x1dfc63['push'](_0x1dfc63['shift']());}}}(a53_0x4f82,0x81f8a));import{CliErrors}from'../../errors.js';function a53_0x26ce(_0x3e503b,_0x41401b){_0x3e503b=_0x3e503b-0xcb;const _0x4f82f9=a53_0x4f82();let _0x26ce2d=_0x4f82f9[_0x3e503b];return _0x26ce2d;}export function normalizeSyncScopes(_0x18cb8e){const _0x956a3e=a53_0x26ce,_0x3c2596=_0x18cb8e[_0x956a3e(0xcb)]();if(!_0x3c2596||_0x3c2596===_0x956a3e(0xcd))return[_0x956a3e(0xd6),'company'];if(_0x3c2596===_0x956a3e(0xd6)||_0x3c2596===_0x956a3e(0xd8))return[_0x3c2596];throw CliErrors[_0x956a3e(0xd3)](_0x956a3e(0xcc)+_0x18cb8e);}export function normalizeListScope(_0x352b78){const _0x2af8f3=a53_0x26ce,_0x1ec307=_0x352b78[_0x2af8f3(0xcb)]();if(!_0x1ec307)return _0x2af8f3(0xcd);if(_0x1ec307==='personal'||_0x1ec307===_0x2af8f3(0xd8)||_0x1ec307===_0x2af8f3(0xcd))return _0x1ec307;throw CliErrors['validation'](_0x2af8f3(0xd2)+_0x352b78);}export function shouldListScope(_0x45784c,_0x48cfe4){const _0x2610f5=a53_0x26ce;if(_0x45784c===_0x2610f5(0xcd))return!![];return _0x45784c===_0x48cfe4;}export function listScopeToRuntimeScopes(_0x297d6a){const _0x5a712d=a53_0x26ce;if(_0x297d6a===_0x5a712d(0xcd))return[_0x5a712d(0xd6),'company'];return[_0x297d6a==='company'?'company':_0x297d6a];}function a53_0x4f82(){const _0x35f2a3=['3517170UrsdkJ','1842534zQivVK','2584NsTUNf','143616BZMhyv','Unsupported\x20Skill\x20list\x20scope:\x20','validation','322904uwmult','14286411slyQmw','personal','596tUgYEG','company','5251155cDIdva','133CUUJwm','trim','Unsupported\x20Skill\x20sync\x20scope:\x20','all'];a53_0x4f82=function(){return _0x35f2a3;};return a53_0x4f82();}export function listScopeToRemoteScope(_0x335756){return _0x335756;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3b8692,_0x3455f3){var _0x2dc2c1=a54_0x7053,_0x45abdf=_0x3b8692();while(!![]){try{var _0x757676=parseInt(_0x2dc2c1(0x113))/0x1*(parseInt(_0x2dc2c1(0x104))/0x2)+parseInt(_0x2dc2c1(0x10e))/0x3*(-parseInt(_0x2dc2c1(0x112))/0x4)+parseInt(_0x2dc2c1(0x108))/0x5*(-parseInt(_0x2dc2c1(0x106))/0x6)+parseInt(_0x2dc2c1(0x109))/0x7+-parseInt(_0x2dc2c1(0x10f))/0x8*(parseInt(_0x2dc2c1(0x107))/0x9)+parseInt(_0x2dc2c1(0x119))/0xa+parseInt(_0x2dc2c1(0x11c))/0xb;if(_0x757676===_0x3455f3)break;else _0x45abdf['push'](_0x45abdf['shift']());}catch(_0x11684){_0x45abdf['push'](_0x45abdf['shift']());}}}(a54_0x24a0,0x2802e));function a54_0x24a0(){var _0x5c8c9f=['6wDENgV','1916001wKuDny','643595VgWNGc','2125515ouBfVV','cacheDir','appCode','version','status','3LUreGs','8yzyjXR','tags','linkedPaths','1055312UkBiuu','1MkvHJE','dir','treeHash','readonly','scope','skillName','523250emptHy','contentHash','metadataPath','3873617stLyAP','pulledAt','122410YgvYTl','skillCode'];a54_0x24a0=function(){return _0x5c8c9f;};return a54_0x24a0();}export function summarizeRuntimeSkill(_0x56f53f){var _0x383734=a54_0x7053;return{'id':_0x56f53f['id'],'skillCode':_0x56f53f[_0x383734(0x105)],'skillName':_0x56f53f[_0x383734(0x118)],'scope':_0x56f53f[_0x383734(0x117)],'version':_0x56f53f[_0x383734(0x10c)],'readonly':_0x56f53f[_0x383734(0x116)]};}function a54_0x7053(_0x345d91,_0x1f6e50){_0x345d91=_0x345d91-0x104;var _0x24a05a=a54_0x24a0();var _0x705343=_0x24a05a[_0x345d91];return _0x705343;}export function summarizeLocalRuntimeSkill(_0x24c348){var _0x4ad802=a54_0x7053;return{'id':_0x24c348['id'],'skillCode':_0x24c348['skillCode'],'skillName':_0x24c348['skillName'],'scope':_0x24c348['scope'],'appCode':_0x24c348[_0x4ad802(0x10b)],'version':_0x24c348['version'],'status':_0x24c348[_0x4ad802(0x10d)],'readonly':_0x24c348['readonly'],'tags':_0x24c348[_0x4ad802(0x110)],'dir':_0x24c348[_0x4ad802(0x114)],'cacheDir':_0x24c348[_0x4ad802(0x10a)],'skillMdPath':_0x24c348['skillMdPath'],'metadataPath':_0x24c348[_0x4ad802(0x11b)],'linkedPaths':_0x24c348[_0x4ad802(0x111)],'contentHash':_0x24c348[_0x4ad802(0x11a)],'treeHash':_0x24c348[_0x4ad802(0x115)],'pulledAt':_0x24c348[_0x4ad802(0x11d)]};}
|