@lovrabet/lovrabet-cli 2.1.14-beta.1 → 2.1.14
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/app-config/shared.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/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_0x366ba4=a40_0x1ee1;(function(_0x64492f,_0x3e14){const _0x3528a1=a40_0x1ee1,_0x4c2f92=_0x64492f();while(!![]){try{const _0xf57f9b=-parseInt(_0x3528a1(0x14f))/0x1+parseInt(_0x3528a1(0x142))/0x2+parseInt(_0x3528a1(0x122))/0x3+parseInt(_0x3528a1(0x14d))/0x4+-parseInt(_0x3528a1(0x123))/0x5*(parseInt(_0x3528a1(0x12c))/0x6)+-parseInt(_0x3528a1(0x14b))/0x7+-parseInt(_0x3528a1(0x152))/0x8*(-parseInt(_0x3528a1(0x138))/0x9);if(_0xf57f9b===_0x3e14)break;else _0x4c2f92['push'](_0x4c2f92['shift']());}catch(_0x58011e){_0x4c2f92['push'](_0x4c2f92['shift']());}}}(a40_0x14db,0x44cba));function a40_0x1ee1(_0x3808a6,_0x26829a){_0x3808a6=_0x3808a6-0x11c;const _0x14db39=a40_0x14db();let _0x1ee175=_0x14db39[_0x3808a6];return _0x1ee175;}import{exportServiceManifest,formatValidationFailure,getLocalServiceEntry,getServiceRegistryPath,importServiceManifest,listLocalServices,loadServiceManifestFromFile,removeServiceManifest}from'../../commands/service/registry.js';import{toPublicNormalizedServiceTree,toPublicServiceTreeTarget}from'../../commands/service/function-name-adapter.js';const FILE_FLAG={'name':a40_0x366ba4(0x154),'type':a40_0x366ba4(0x14e),'required':!![],'description':a40_0x366ba4(0x150)},SERVICE_FLAG={'name':a40_0x366ba4(0x13e),'type':'string','required':!![],'description':a40_0x366ba4(0x15e),'pattern':{'regex':/^[a-z][a-z0-9-]*$/,'description':a40_0x366ba4(0x140)}};function summarizeService(_0x3321ac){const _0x11b3fd=a40_0x366ba4;return{'serviceCode':_0x3321ac[_0x11b3fd(0x14c)],'name':_0x3321ac[_0x11b3fd(0x141)][_0x11b3fd(0x13e)][_0x11b3fd(0x128)],'version':_0x3321ac['version'],'importedAt':_0x3321ac['importedAt'],'source':_0x3321ac[_0x11b3fd(0x134)],'commandCount':_0x3321ac[_0x11b3fd(0x141)][_0x11b3fd(0x13b)][_0x11b3fd(0x13c)],'commands':_0x3321ac['normalizedManifest']['commands'][_0x11b3fd(0x159)](_0x132b3a=>({'path':_0x132b3a[_0x11b3fd(0x12a)],'description':_0x132b3a[_0x11b3fd(0x14a)],'risk':_0x132b3a[_0x11b3fd(0x120)],'target':toPublicServiceTreeTarget(_0x132b3a[_0x11b3fd(0x15a)]),'flags':_0x132b3a['flags'][_0x11b3fd(0x159)](_0x77bbce=>({'name':_0x77bbce[_0x11b3fd(0x128)],'cliName':_0x77bbce['cliName'],'type':_0x77bbce[_0x11b3fd(0x15f)],'required':_0x77bbce[_0x11b3fd(0x155)]===!![]}))}))};}function summarizeLoadedManifest(_0x1eedde){const _0x49d5c7=a40_0x366ba4;return{'service':_0x1eedde[_0x49d5c7(0x141)]?.[_0x49d5c7(0x13e)],'version':_0x1eedde['normalizedManifest']?.['version'],'commandCount':_0x1eedde[_0x49d5c7(0x141)]?.[_0x49d5c7(0x13b)][_0x49d5c7(0x13c)]??0x0,'commands':_0x1eedde['normalizedManifest']?.['commands'][_0x49d5c7(0x159)](_0x45b23c=>({'path':_0x45b23c['cliPath'],'risk':_0x45b23c[_0x49d5c7(0x120)],'target':toPublicServiceTreeTarget(_0x45b23c[_0x49d5c7(0x15a)])}))??[],'registryIndex':_0x1eedde[_0x49d5c7(0x143)],'registryServiceCode':_0x1eedde['registryServiceCode'],'errors':_0x1eedde[_0x49d5c7(0x131)][_0x49d5c7(0x133)],'warnings':_0x1eedde[_0x49d5c7(0x131)][_0x49d5c7(0x157)]};}export const serviceDefinitions=[{'service':'service','command':'validate','description':a40_0x366ba4(0x144),'risk':a40_0x366ba4(0x12b),'requiresAuth':![],'requiresAppCode':![],'flags':[FILE_FLAG],async 'execute'(_0x46bd25){const _0x217e08=a40_0x366ba4,_0x1a6e0c=loadServiceManifestFromFile(_0x46bd25[_0x217e08(0x13a)](_0x217e08(0x154)));if(!_0x1a6e0c['report']['ok'])return{'ok':![],'data':{'file':_0x1a6e0c[_0x217e08(0x13d)],'hash':_0x1a6e0c[_0x217e08(0x15c)],'kind':_0x1a6e0c[_0x217e08(0x137)],'serviceCount':_0x1a6e0c['manifests'][_0x217e08(0x13c)],'services':_0x1a6e0c[_0x217e08(0x13f)]['map'](summarizeLoadedManifest),'errors':_0x1a6e0c['report']['errors'],'warnings':_0x1a6e0c[_0x217e08(0x131)][_0x217e08(0x157)]},'message':formatValidationFailure(_0x1a6e0c[_0x217e08(0x131)])};if(_0x1a6e0c['kind']===_0x217e08(0x11e)||_0x1a6e0c[_0x217e08(0x13f)]['length']!==0x1)return{'ok':!![],'data':{'file':_0x1a6e0c[_0x217e08(0x13d)],'hash':_0x1a6e0c[_0x217e08(0x15c)],'kind':_0x1a6e0c[_0x217e08(0x137)],'serviceCount':_0x1a6e0c[_0x217e08(0x13f)][_0x217e08(0x13c)],'commandCount':_0x1a6e0c[_0x217e08(0x13f)][_0x217e08(0x132)]((_0x556dc8,_0x38c732)=>_0x556dc8+(_0x38c732[_0x217e08(0x141)]?.['commands']['length']??0x0),0x0),'services':_0x1a6e0c[_0x217e08(0x13f)][_0x217e08(0x159)](summarizeLoadedManifest),'warnings':_0x1a6e0c[_0x217e08(0x131)][_0x217e08(0x157)]},'message':'Service\x20registry\x20validation\x20passed.'};return{'ok':!![],'data':{'file':_0x1a6e0c['filePath'],'hash':_0x1a6e0c[_0x217e08(0x15c)],'kind':_0x1a6e0c['kind'],'service':_0x1a6e0c[_0x217e08(0x141)]?.['service'],'version':_0x1a6e0c[_0x217e08(0x141)]?.[_0x217e08(0x153)],'commandCount':_0x1a6e0c['normalizedManifest']?.[_0x217e08(0x13b)][_0x217e08(0x13c)]??0x0,'commands':_0x1a6e0c[_0x217e08(0x141)]?.[_0x217e08(0x13b)]['map'](_0x508a66=>({'path':_0x508a66[_0x217e08(0x12a)],'risk':_0x508a66['risk'],'target':toPublicServiceTreeTarget(_0x508a66[_0x217e08(0x15a)])})),'warnings':_0x1a6e0c[_0x217e08(0x131)][_0x217e08(0x157)]},'message':_0x217e08(0x148)};}},{'service':a40_0x366ba4(0x13e),'command':a40_0x366ba4(0x12f),'description':'Import\x20a\x20Service\x20Tree\x20manifest\x20into\x20the\x20local\x20runtime\x20registry','risk':a40_0x366ba4(0x139),'requiresAuth':![],'requiresAppCode':![],'flags':[FILE_FLAG],async 'dryRun'(_0x20bbc0){const _0x215051=a40_0x366ba4,_0x47eabb=loadServiceManifestFromFile(_0x20bbc0[_0x215051(0x13a)](_0x215051(0x154)));return{'method':_0x215051(0x124),'url':getServiceRegistryPath(),'body':{'file':_0x47eabb['filePath'],'hash':_0x47eabb[_0x215051(0x15c)],'kind':_0x47eabb[_0x215051(0x137)],'ok':_0x47eabb[_0x215051(0x131)]['ok'],'service':_0x47eabb['normalizedManifest']?.[_0x215051(0x13e)],'version':_0x47eabb[_0x215051(0x141)]?.[_0x215051(0x153)],'serviceCount':_0x47eabb['manifests'][_0x215051(0x13c)],'services':_0x47eabb['manifests'][_0x215051(0x159)](_0x43c458=>({'service':_0x43c458[_0x215051(0x141)]?.[_0x215051(0x13e)],'version':_0x43c458['normalizedManifest']?.[_0x215051(0x153)],'commandCount':_0x43c458[_0x215051(0x141)]?.[_0x215051(0x13b)][_0x215051(0x13c)]??0x0,'errors':_0x43c458[_0x215051(0x131)][_0x215051(0x133)]})),'errors':_0x47eabb['report']['errors'],'commandCount':_0x47eabb['normalizedManifest']?.[_0x215051(0x13b)][_0x215051(0x13c)]??0x0},'description':'Preview\x20Service\x20Tree\x20import\x20into\x20~/.lovrabet/service.json'};},async 'execute'(_0x5d8afd){const _0x484f27=a40_0x366ba4,_0x223b6a=importServiceManifest(_0x5d8afd[_0x484f27(0x13a)](_0x484f27(0x154)));if(_0x223b6a[_0x484f27(0x125)][_0x484f27(0x13c)]!==0x1)return{'ok':!![],'data':{'registryPath':_0x223b6a['registryPath'],'imported':_0x223b6a[_0x484f27(0x12e)],'updated':_0x223b6a[_0x484f27(0x15b)],'serviceCount':_0x223b6a[_0x484f27(0x130)],'services':_0x223b6a[_0x484f27(0x125)][_0x484f27(0x159)](summarizeService)},'message':_0x484f27(0x151)+_0x223b6a['imported']+_0x484f27(0x126)+_0x223b6a[_0x484f27(0x15b)]+_0x484f27(0x11c)};return{'ok':!![],'data':{'registryPath':_0x223b6a[_0x484f27(0x135)],'replaced':_0x223b6a['replaced'],'imported':_0x223b6a[_0x484f27(0x12e)],'updated':_0x223b6a[_0x484f27(0x15b)],'serviceCount':_0x223b6a[_0x484f27(0x130)],'service':summarizeService(_0x223b6a[_0x484f27(0x127)])},'message':(_0x223b6a['replaced']?_0x484f27(0x160):_0x484f27(0x147))+'\x20service\x20'+_0x223b6a[_0x484f27(0x127)]['serviceCode']+'.'};}},{'service':a40_0x366ba4(0x13e),'command':a40_0x366ba4(0x145),'description':a40_0x366ba4(0x136),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG,FILE_FLAG],async 'dryRun'(_0x7c4d7b){const _0x2ca527=a40_0x366ba4,_0x2eed4d=getLocalServiceEntry(_0x7c4d7b['str'](_0x2ca527(0x13e)));return{'method':'WRITE','url':_0x7c4d7b[_0x2ca527(0x13a)]('file'),'body':{'service':_0x7c4d7b[_0x2ca527(0x13a)](_0x2ca527(0x13e)),'found':Boolean(_0x2eed4d),'version':_0x2eed4d?.[_0x2ca527(0x153)],'source':_0x2eed4d?.[_0x2ca527(0x134)]},'description':_0x2ca527(0x121)};},async 'execute'(_0x5d99c4){const _0x276805=a40_0x366ba4,_0x15679b=exportServiceManifest(_0x5d99c4[_0x276805(0x13a)]('service'),_0x5d99c4[_0x276805(0x13a)]('file'));return{'ok':!![],'data':{'registryPath':_0x15679b['registryPath'],'file':_0x15679b[_0x276805(0x13d)],'service':summarizeService(_0x15679b['entry'])},'message':'Exported\x20service\x20'+_0x15679b['entry'][_0x276805(0x14c)]+'.'};}},{'service':a40_0x366ba4(0x13e),'command':a40_0x366ba4(0x156),'description':a40_0x366ba4(0x129),'risk':a40_0x366ba4(0x12b),'requiresAuth':![],'requiresAppCode':![],'flags':[],async 'execute'(){const _0x11c523=a40_0x366ba4,_0xf75fe9=listLocalServices();return{'ok':!![],'data':{'registryPath':getServiceRegistryPath(),'total':_0xf75fe9[_0x11c523(0x13c)],'services':_0xf75fe9[_0x11c523(0x159)](summarizeService)}};}},{'service':a40_0x366ba4(0x13e),'command':'remove','description':a40_0x366ba4(0x146),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG],async 'dryRun'(_0x379958){const _0x39a5ea=a40_0x366ba4,_0x44742f=getLocalServiceEntry(_0x379958[_0x39a5ea(0x13a)](_0x39a5ea(0x13e)));return{'method':'WRITE','url':getServiceRegistryPath(),'body':{'service':_0x379958[_0x39a5ea(0x13a)](_0x39a5ea(0x13e)),'found':Boolean(_0x44742f),'version':_0x44742f?.['version'],'source':_0x44742f?.[_0x39a5ea(0x134)]},'description':_0x39a5ea(0x11f)};},async 'execute'(_0x2f56b4){const _0xb5d3c8=a40_0x366ba4,_0x9a95be=removeServiceManifest(_0x2f56b4['str'](_0xb5d3c8(0x13e)));return{'ok':!![],'data':{'registryPath':_0x9a95be['registryPath'],'serviceCount':_0x9a95be[_0xb5d3c8(0x130)],'service':summarizeService(_0x9a95be[_0xb5d3c8(0x127)])},'message':_0xb5d3c8(0x11d)+_0x9a95be[_0xb5d3c8(0x127)][_0xb5d3c8(0x14c)]+'.'};}},{'service':a40_0x366ba4(0x13e),'command':a40_0x366ba4(0x15d),'description':a40_0x366ba4(0x158),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG],async 'execute'(_0x10451f){const _0x212483=a40_0x366ba4,_0x2e6417=getLocalServiceEntry(_0x10451f[_0x212483(0x13a)](_0x212483(0x13e)));if(!_0x2e6417)return{'ok':![],'data':{'registryPath':getServiceRegistryPath(),'service':_0x10451f[_0x212483(0x13a)]('service')},'message':_0x212483(0x12d)+_0x10451f[_0x212483(0x13a)](_0x212483(0x13e))};return{'ok':!![],'data':{'registryPath':getServiceRegistryPath(),'service':summarizeService(_0x2e6417),'manifest':_0x2e6417[_0x212483(0x149)],'normalizedManifest':toPublicNormalizedServiceTree(_0x2e6417['normalizedManifest'])}};}}];function a40_0x14db(){const _0x254282=['risk','Preview\x20Service\x20Tree\x20export\x20from\x20~/.lovrabet/service.json','70311MkiJps','5dcaTcU','WRITE','entries','\x20service(s),\x20updated\x20','entry','name','List\x20locally\x20imported\x20Service\x20Tree\x20manifests','cliPath','read','1903398QelcLb','Local\x20service\x20not\x20found:\x20','imported','import','serviceCount','report','reduce','errors','source','registryPath','Export\x20a\x20local\x20Service\x20Tree\x20manifest\x20to\x20a\x20JSON\x20file','kind','9ZvgNUq','write','str','commands','length','filePath','service','manifests','lower\x20kebab-case\x20service\x20code','normalizedManifest','490308ealDrw','registryIndex','Validate\x20a\x20Service\x20Tree\x20JSON\x20manifest','export','Remove\x20a\x20local\x20Service\x20Tree\x20manifest\x20from\x20the\x20runtime\x20registry','Imported','Service\x20manifest\x20validation\x20passed.','manifest','description','1664278bqgtpW','serviceCode','707044IcWZVF','string','78716guscKu','Service\x20Tree\x20manifest\x20file\x20path','Imported\x20','3761096wzHGgU','version','file','required','list','warnings','Show\x20a\x20locally\x20imported\x20Service\x20Tree\x20manifest','map','target','updated','hash','detail','Local\x20service\x20code,\x20for\x20example\x20crm','type','Updated','\x20service(s).','Removed\x20service\x20','registry','Preview\x20Service\x20Tree\x20removal\x20from\x20~/.lovrabet/service.json'];a40_0x14db=function(){return _0x254282;};return a40_0x14db();}
|
|
1
|
+
const a40_0x54ccf6=a40_0xf3ce;function a40_0xf3ce(_0x3a8866,_0x11a3c4){_0x3a8866=_0x3a8866-0x15e;const _0x3dbcd2=a40_0x3dbc();let _0xf3cee1=_0x3dbcd2[_0x3a8866];return _0xf3cee1;}(function(_0x483598,_0x1a7a61){const _0x45def6=a40_0xf3ce,_0x379cd4=_0x483598();while(!![]){try{const _0x2ecde4=-parseInt(_0x45def6(0x18e))/0x1*(-parseInt(_0x45def6(0x16f))/0x2)+parseInt(_0x45def6(0x174))/0x3*(parseInt(_0x45def6(0x187))/0x4)+parseInt(_0x45def6(0x179))/0x5*(-parseInt(_0x45def6(0x197))/0x6)+-parseInt(_0x45def6(0x194))/0x7+parseInt(_0x45def6(0x19a))/0x8*(parseInt(_0x45def6(0x1a2))/0x9)+parseInt(_0x45def6(0x16e))/0xa*(-parseInt(_0x45def6(0x164))/0xb)+-parseInt(_0x45def6(0x183))/0xc;if(_0x2ecde4===_0x1a7a61)break;else _0x379cd4['push'](_0x379cd4['shift']());}catch(_0x2a0fc7){_0x379cd4['push'](_0x379cd4['shift']());}}}(a40_0x3dbc,0xb6cf4));import{exportServiceManifest,formatValidationFailure,getLocalServiceEntry,getServiceRegistryPath,importServiceManifest,listLocalServices,loadServiceManifestFromFile,removeServiceManifest}from'../../commands/service/registry.js';import{toPublicNormalizedServiceTree,toPublicServiceTreeTarget}from'../../commands/service/function-name-adapter.js';const FILE_FLAG={'name':'file','type':a40_0x54ccf6(0x1a6),'required':!![],'description':a40_0x54ccf6(0x193)},SERVICE_FLAG={'name':a40_0x54ccf6(0x18c),'type':'string','required':!![],'description':a40_0x54ccf6(0x168),'pattern':{'regex':/^[a-z][a-z0-9-]*$/,'description':a40_0x54ccf6(0x1a1)}};function a40_0x3dbc(){const _0x596b35=['importedAt','248mvPPij','serviceCode','description','Service\x20manifest\x20validation\x20passed.','Show\x20a\x20locally\x20imported\x20Service\x20Tree\x20manifest','cliName','registry','lower\x20kebab-case\x20service\x20code','97083SEnGHi','filePath','report','registryIndex','string','normalizedManifest','entries','source','registryPath','target','list','Local\x20service\x20not\x20found:\x20','\x20service(s).','map','str','manifest','22FrcEGV','Exported\x20service\x20','flags','Imported\x20','Local\x20service\x20code,\x20for\x20example\x20crm','Preview\x20Service\x20Tree\x20removal\x20from\x20~/.lovrabet/service.json','read','Import\x20a\x20Service\x20Tree\x20manifest\x20into\x20the\x20local\x20runtime\x20registry','export','errors','651790nouaQZ','708916lyWpFZ','Export\x20a\x20local\x20Service\x20Tree\x20manifest\x20to\x20a\x20JSON\x20file','name','commands','file','1692897KyuGPP','manifests','validate','version','cliPath','219670FAjBYC','updated','Service\x20registry\x20validation\x20passed.','imported','Removed\x20service\x20','type','Updated','remove','entry','registryServiceCode','508344kXgaWQ','warnings','detail','serviceCount','8iVufCh','replaced','reduce','hash','WRITE','service','kind','1pjmevF','Imported','length','risk','Remove\x20a\x20local\x20Service\x20Tree\x20manifest\x20from\x20the\x20runtime\x20registry','Service\x20Tree\x20manifest\x20file\x20path','3811311NjYMPm','Preview\x20Service\x20Tree\x20export\x20from\x20~/.lovrabet/service.json','write','48MaFcET','Validate\x20a\x20Service\x20Tree\x20JSON\x20manifest'];a40_0x3dbc=function(){return _0x596b35;};return a40_0x3dbc();}function summarizeService(_0x8649c0){const _0x48fa08=a40_0x54ccf6;return{'serviceCode':_0x8649c0[_0x48fa08(0x19b)],'name':_0x8649c0[_0x48fa08(0x1a7)][_0x48fa08(0x18c)][_0x48fa08(0x171)],'version':_0x8649c0[_0x48fa08(0x177)],'importedAt':_0x8649c0[_0x48fa08(0x199)],'source':_0x8649c0[_0x48fa08(0x1a9)],'commandCount':_0x8649c0['normalizedManifest'][_0x48fa08(0x172)][_0x48fa08(0x190)],'commands':_0x8649c0['normalizedManifest'][_0x48fa08(0x172)][_0x48fa08(0x161)](_0x460adf=>({'path':_0x460adf['cliPath'],'description':_0x460adf[_0x48fa08(0x19c)],'risk':_0x460adf[_0x48fa08(0x191)],'target':toPublicServiceTreeTarget(_0x460adf['target']),'flags':_0x460adf[_0x48fa08(0x166)][_0x48fa08(0x161)](_0x3250ac=>({'name':_0x3250ac[_0x48fa08(0x171)],'cliName':_0x3250ac[_0x48fa08(0x19f)],'type':_0x3250ac[_0x48fa08(0x17e)],'required':_0x3250ac['required']===!![]}))}))};}function summarizeLoadedManifest(_0x20a9e9){const _0x4b66f9=a40_0x54ccf6;return{'service':_0x20a9e9['normalizedManifest']?.['service'],'version':_0x20a9e9[_0x4b66f9(0x1a7)]?.['version'],'commandCount':_0x20a9e9[_0x4b66f9(0x1a7)]?.[_0x4b66f9(0x172)][_0x4b66f9(0x190)]??0x0,'commands':_0x20a9e9[_0x4b66f9(0x1a7)]?.[_0x4b66f9(0x172)]['map'](_0x10d235=>({'path':_0x10d235[_0x4b66f9(0x178)],'risk':_0x10d235['risk'],'target':toPublicServiceTreeTarget(_0x10d235[_0x4b66f9(0x1ab)])}))??[],'registryIndex':_0x20a9e9[_0x4b66f9(0x1a5)],'registryServiceCode':_0x20a9e9[_0x4b66f9(0x182)],'errors':_0x20a9e9[_0x4b66f9(0x1a4)]['errors'],'warnings':_0x20a9e9['report'][_0x4b66f9(0x184)]};}export const serviceDefinitions=[{'service':a40_0x54ccf6(0x18c),'command':a40_0x54ccf6(0x176),'description':a40_0x54ccf6(0x198),'risk':a40_0x54ccf6(0x16a),'requiresAuth':![],'requiresAppCode':![],'flags':[FILE_FLAG],async 'execute'(_0x38af37){const _0x383dbd=a40_0x54ccf6,_0x21e315=loadServiceManifestFromFile(_0x38af37[_0x383dbd(0x162)](_0x383dbd(0x173)));if(!_0x21e315[_0x383dbd(0x1a4)]['ok'])return{'ok':![],'data':{'file':_0x21e315[_0x383dbd(0x1a3)],'hash':_0x21e315[_0x383dbd(0x18a)],'kind':_0x21e315['kind'],'serviceCount':_0x21e315['manifests'][_0x383dbd(0x190)],'services':_0x21e315[_0x383dbd(0x175)][_0x383dbd(0x161)](summarizeLoadedManifest),'errors':_0x21e315['report']['errors'],'warnings':_0x21e315['report'][_0x383dbd(0x184)]},'message':formatValidationFailure(_0x21e315[_0x383dbd(0x1a4)])};if(_0x21e315[_0x383dbd(0x18d)]===_0x383dbd(0x1a0)||_0x21e315[_0x383dbd(0x175)][_0x383dbd(0x190)]!==0x1)return{'ok':!![],'data':{'file':_0x21e315['filePath'],'hash':_0x21e315[_0x383dbd(0x18a)],'kind':_0x21e315[_0x383dbd(0x18d)],'serviceCount':_0x21e315[_0x383dbd(0x175)][_0x383dbd(0x190)],'commandCount':_0x21e315['manifests'][_0x383dbd(0x189)]((_0x3d7635,_0xc519a9)=>_0x3d7635+(_0xc519a9[_0x383dbd(0x1a7)]?.[_0x383dbd(0x172)][_0x383dbd(0x190)]??0x0),0x0),'services':_0x21e315[_0x383dbd(0x175)]['map'](summarizeLoadedManifest),'warnings':_0x21e315[_0x383dbd(0x1a4)]['warnings']},'message':_0x383dbd(0x17b)};return{'ok':!![],'data':{'file':_0x21e315['filePath'],'hash':_0x21e315[_0x383dbd(0x18a)],'kind':_0x21e315[_0x383dbd(0x18d)],'service':_0x21e315[_0x383dbd(0x1a7)]?.[_0x383dbd(0x18c)],'version':_0x21e315[_0x383dbd(0x1a7)]?.[_0x383dbd(0x177)],'commandCount':_0x21e315[_0x383dbd(0x1a7)]?.['commands'][_0x383dbd(0x190)]??0x0,'commands':_0x21e315[_0x383dbd(0x1a7)]?.[_0x383dbd(0x172)][_0x383dbd(0x161)](_0x2d5350=>({'path':_0x2d5350[_0x383dbd(0x178)],'risk':_0x2d5350[_0x383dbd(0x191)],'target':toPublicServiceTreeTarget(_0x2d5350['target'])})),'warnings':_0x21e315[_0x383dbd(0x1a4)][_0x383dbd(0x184)]},'message':_0x383dbd(0x19d)};}},{'service':a40_0x54ccf6(0x18c),'command':'import','description':a40_0x54ccf6(0x16b),'risk':a40_0x54ccf6(0x196),'requiresAuth':![],'requiresAppCode':![],'flags':[FILE_FLAG],async 'dryRun'(_0x19e212){const _0x4ad6dd=a40_0x54ccf6,_0x599145=loadServiceManifestFromFile(_0x19e212[_0x4ad6dd(0x162)](_0x4ad6dd(0x173)));return{'method':_0x4ad6dd(0x18b),'url':getServiceRegistryPath(),'body':{'file':_0x599145[_0x4ad6dd(0x1a3)],'hash':_0x599145[_0x4ad6dd(0x18a)],'kind':_0x599145['kind'],'ok':_0x599145[_0x4ad6dd(0x1a4)]['ok'],'service':_0x599145[_0x4ad6dd(0x1a7)]?.['service'],'version':_0x599145[_0x4ad6dd(0x1a7)]?.[_0x4ad6dd(0x177)],'serviceCount':_0x599145[_0x4ad6dd(0x175)][_0x4ad6dd(0x190)],'services':_0x599145[_0x4ad6dd(0x175)][_0x4ad6dd(0x161)](_0x300a2f=>({'service':_0x300a2f[_0x4ad6dd(0x1a7)]?.[_0x4ad6dd(0x18c)],'version':_0x300a2f[_0x4ad6dd(0x1a7)]?.[_0x4ad6dd(0x177)],'commandCount':_0x300a2f['normalizedManifest']?.[_0x4ad6dd(0x172)]['length']??0x0,'errors':_0x300a2f[_0x4ad6dd(0x1a4)]['errors']})),'errors':_0x599145[_0x4ad6dd(0x1a4)][_0x4ad6dd(0x16d)],'commandCount':_0x599145['normalizedManifest']?.[_0x4ad6dd(0x172)]['length']??0x0},'description':'Preview\x20Service\x20Tree\x20import\x20into\x20~/.lovrabet/service.json'};},async 'execute'(_0x4e686d){const _0x207da4=a40_0x54ccf6,_0x3456b9=importServiceManifest(_0x4e686d['str'](_0x207da4(0x173)));if(_0x3456b9[_0x207da4(0x1a8)][_0x207da4(0x190)]!==0x1)return{'ok':!![],'data':{'registryPath':_0x3456b9[_0x207da4(0x1aa)],'imported':_0x3456b9[_0x207da4(0x17c)],'updated':_0x3456b9[_0x207da4(0x17a)],'serviceCount':_0x3456b9[_0x207da4(0x186)],'services':_0x3456b9[_0x207da4(0x1a8)][_0x207da4(0x161)](summarizeService)},'message':_0x207da4(0x167)+_0x3456b9[_0x207da4(0x17c)]+'\x20service(s),\x20updated\x20'+_0x3456b9['updated']+_0x207da4(0x160)};return{'ok':!![],'data':{'registryPath':_0x3456b9[_0x207da4(0x1aa)],'replaced':_0x3456b9[_0x207da4(0x188)],'imported':_0x3456b9[_0x207da4(0x17c)],'updated':_0x3456b9[_0x207da4(0x17a)],'serviceCount':_0x3456b9[_0x207da4(0x186)],'service':summarizeService(_0x3456b9[_0x207da4(0x181)])},'message':(_0x3456b9[_0x207da4(0x188)]?_0x207da4(0x17f):_0x207da4(0x18f))+'\x20service\x20'+_0x3456b9[_0x207da4(0x181)][_0x207da4(0x19b)]+'.'};}},{'service':'service','command':a40_0x54ccf6(0x16c),'description':a40_0x54ccf6(0x170),'risk':a40_0x54ccf6(0x196),'requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG,FILE_FLAG],async 'dryRun'(_0x5496dd){const _0x5239bc=a40_0x54ccf6,_0x16173a=getLocalServiceEntry(_0x5496dd[_0x5239bc(0x162)](_0x5239bc(0x18c)));return{'method':_0x5239bc(0x18b),'url':_0x5496dd[_0x5239bc(0x162)](_0x5239bc(0x173)),'body':{'service':_0x5496dd[_0x5239bc(0x162)](_0x5239bc(0x18c)),'found':Boolean(_0x16173a),'version':_0x16173a?.[_0x5239bc(0x177)],'source':_0x16173a?.[_0x5239bc(0x1a9)]},'description':_0x5239bc(0x195)};},async 'execute'(_0x31090c){const _0x689c98=a40_0x54ccf6,_0x447e87=exportServiceManifest(_0x31090c['str']('service'),_0x31090c[_0x689c98(0x162)](_0x689c98(0x173)));return{'ok':!![],'data':{'registryPath':_0x447e87[_0x689c98(0x1aa)],'file':_0x447e87[_0x689c98(0x1a3)],'service':summarizeService(_0x447e87['entry'])},'message':_0x689c98(0x165)+_0x447e87[_0x689c98(0x181)][_0x689c98(0x19b)]+'.'};}},{'service':a40_0x54ccf6(0x18c),'command':a40_0x54ccf6(0x15e),'description':'List\x20locally\x20imported\x20Service\x20Tree\x20manifests','risk':a40_0x54ccf6(0x16a),'requiresAuth':![],'requiresAppCode':![],'flags':[],async 'execute'(){const _0x31f660=a40_0x54ccf6,_0x5e24ca=listLocalServices();return{'ok':!![],'data':{'registryPath':getServiceRegistryPath(),'total':_0x5e24ca[_0x31f660(0x190)],'services':_0x5e24ca['map'](summarizeService)}};}},{'service':a40_0x54ccf6(0x18c),'command':a40_0x54ccf6(0x180),'description':a40_0x54ccf6(0x192),'risk':a40_0x54ccf6(0x196),'requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG],async 'dryRun'(_0x5a5e78){const _0x3a221e=a40_0x54ccf6,_0xb2373e=getLocalServiceEntry(_0x5a5e78[_0x3a221e(0x162)](_0x3a221e(0x18c)));return{'method':_0x3a221e(0x18b),'url':getServiceRegistryPath(),'body':{'service':_0x5a5e78[_0x3a221e(0x162)](_0x3a221e(0x18c)),'found':Boolean(_0xb2373e),'version':_0xb2373e?.[_0x3a221e(0x177)],'source':_0xb2373e?.['source']},'description':_0x3a221e(0x169)};},async 'execute'(_0x7988ee){const _0x3d5625=a40_0x54ccf6,_0x9f7ede=removeServiceManifest(_0x7988ee[_0x3d5625(0x162)](_0x3d5625(0x18c)));return{'ok':!![],'data':{'registryPath':_0x9f7ede['registryPath'],'serviceCount':_0x9f7ede[_0x3d5625(0x186)],'service':summarizeService(_0x9f7ede[_0x3d5625(0x181)])},'message':_0x3d5625(0x17d)+_0x9f7ede[_0x3d5625(0x181)]['serviceCode']+'.'};}},{'service':a40_0x54ccf6(0x18c),'command':a40_0x54ccf6(0x185),'description':a40_0x54ccf6(0x19e),'risk':a40_0x54ccf6(0x16a),'requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG],async 'execute'(_0x1a5d15){const _0x2bdb16=a40_0x54ccf6,_0xe179d9=getLocalServiceEntry(_0x1a5d15[_0x2bdb16(0x162)](_0x2bdb16(0x18c)));if(!_0xe179d9)return{'ok':![],'data':{'registryPath':getServiceRegistryPath(),'service':_0x1a5d15[_0x2bdb16(0x162)](_0x2bdb16(0x18c))},'message':_0x2bdb16(0x15f)+_0x1a5d15[_0x2bdb16(0x162)](_0x2bdb16(0x18c))};return{'ok':!![],'data':{'registryPath':getServiceRegistryPath(),'service':summarizeService(_0xe179d9),'manifest':_0xe179d9[_0x2bdb16(0x163)],'normalizedManifest':toPublicNormalizedServiceTree(_0xe179d9['normalizedManifest'])}};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a41_0x53cb99=a41_0x3212;(function(_0x407ecb,_0x564863){const _0x2324f3=a41_0x3212,_0x34df81=_0x407ecb();while(!![]){try{const _0x122da5=parseInt(_0x2324f3(0x1f1))/0x1*(parseInt(_0x2324f3(0x1fe))/0x2)+parseInt(_0x2324f3(0x203))/0x3+parseInt(_0x2324f3(0x1ff))/0x4+parseInt(_0x2324f3(0x1d9))/0x5*(-parseInt(_0x2324f3(0x1c2))/0x6)+-parseInt(_0x2324f3(0x200))/0x7+-parseInt(_0x2324f3(0x20a))/0x8*(parseInt(_0x2324f3(0x1f4))/0x9)+parseInt(_0x2324f3(0x1d7))/0xa*(parseInt(_0x2324f3(0x1d6))/0xb);if(_0x122da5===_0x564863)break;else _0x34df81['push'](_0x34df81['shift']());}catch(_0x15638a){_0x34df81['push'](_0x34df81['shift']());}}}(a41_0x2e36,0xab99c));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a41_0x3212(_0x2250c9,_0x5a3f15){_0x2250c9=_0x2250c9-0x1bb;const _0x2e3692=a41_0x2e36();let _0x3212b8=_0x2e3692[_0x2250c9];return _0x3212b8;}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_0x53cb99(0x201);export function getServiceRegistryPath(_0x580796={}){const _0x3a5de4=a41_0x53cb99;return resolve(_0x580796['homeDir']??homedir(),PRODUCT_CONFIG[_0x3a5de4(0x1e6)],SERVICE_REGISTRY_FILE_NAME);}export function emptyServiceRegistry(){return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'services':[]};}export function readServiceRegistry(_0x4e3555={}){const _0x21c4d2=a41_0x53cb99,_0x3160c9=getServiceRegistryPath(_0x4e3555);if(!existsSync(_0x3160c9))return emptyServiceRegistry();try{const _0x3dac99=readFileSync(_0x3160c9,'utf8');if(!_0x3dac99[_0x21c4d2(0x1e1)]())return emptyServiceRegistry();const _0x27bdd3=JSON[_0x21c4d2(0x1e7)](_0x3dac99);if(_0x27bdd3[_0x21c4d2(0x1f9)]!==SERVICE_REGISTRY_SCHEMA_VERSION)throw CliErrors['validation']('Unsupported\x20service\x20registry\x20schemaVersion:\x20'+String(_0x27bdd3[_0x21c4d2(0x1f9)]),_0x21c4d2(0x207)+_0x3160c9+'.');if(!Array[_0x21c4d2(0x1c8)](_0x27bdd3[_0x21c4d2(0x208)]))return emptyServiceRegistry();return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x27bdd3[_0x21c4d2(0x1e0)],'services':_0x27bdd3[_0x21c4d2(0x208)]};}catch(_0x2b3616){if(_0x2b3616 instanceof Error&&_0x2b3616[_0x21c4d2(0x1c7)]===_0x21c4d2(0x1fb))throw _0x2b3616;throw CliErrors[_0x21c4d2(0x205)](_0x21c4d2(0x202)+_0x3160c9,_0x21c4d2(0x1d0));}}function a41_0x2e36(){const _0x750d42=['path','Remove\x20or\x20migrate\x20','services','warnings','616112ZEFLwK','file','empty','startsWith','update','Cannot\x20write\x20service\x20registry:\x20','$.services[','hex','431022jzwVwH','importedAt','report','source','risk','name','isArray','findIndex','toISOString','stringify','splice','message','Local\x20service\x20not\x20found:\x20','registryIndex','Fix\x20the\x20JSON\x20file\x20or\x20move\x20it\x20aside\x20and\x20import\x20services\x20again.','slice','invalid','missing','normalizedManifest','length','88yaAUUY','948190bLFels','utf8','35LGQNXr','].manifest.','ENOENT','manifests','Unsupported\x20schemaVersion:\x20','digest','Run\x20lovrabet\x20service\x20list\x20to\x20see\x20imported\x20services.','updatedAt','trim','push','Service\x20manifest\x20validation\x20failed:\x0a','Fix\x20the\x20service\x20manifest\x20and\x20run\x20service\x20validate\x20again.','version','homeDirName','parse','map','sourceHash','manifest','].manifest','errors','services\x20must\x20be\x20an\x20array','Service\x20registry\x20has\x20no\x20services\x20to\x20import.','sha256','description','59JAKfoS','serviceCode','flatMap','63VUbgjz','.tmp','Fix\x20the\x20JSON\x20syntax\x20and\x20run\x20service\x20validate\x20again.','service','now','schemaVersion','object','CliError','code','reduce','1906krYzsY','1870232qyvpwG','1123003NiImUQ','service.json','Invalid\x20service\x20registry\x20JSON:\x20','1868775wpezYj','registry','validation'];a41_0x2e36=function(){return _0x750d42;};return a41_0x2e36();}export function writeServiceRegistry(_0x5c2b50,_0x272d35={}){const _0x4e8b0e=a41_0x53cb99,_0x55fce3=getServiceRegistryPath(_0x272d35),_0x33c8a7=dirname(_0x55fce3);!existsSync(_0x33c8a7)&&mkdirSync(_0x33c8a7,{'recursive':!![]});const _0x107ab6=_0x55fce3+_0x4e8b0e(0x1f5);try{writeFileSync(_0x107ab6,JSON[_0x4e8b0e(0x1cb)](_0x5c2b50,null,0x2)+'\x0a',{'encoding':_0x4e8b0e(0x1d8),'mode':0x180}),renameSync(_0x107ab6,_0x55fce3);}catch(_0x4727f3){try{unlinkSync(_0x107ab6);}catch{}if(_0x4727f3?.['code']===_0x4e8b0e(0x1db))throw CliErrors[_0x4e8b0e(0x205)](_0x4e8b0e(0x1bf)+_0x55fce3);throw _0x4727f3;}return _0x55fce3;}export function loadServiceManifestFromFile(_0xd74851){const _0x48fb7b=a41_0x53cb99,_0x3a9cdc=resolve(_0xd74851);if(!existsSync(_0x3a9cdc))throw CliErrors[_0x48fb7b(0x205)]('Service\x20manifest\x20file\x20not\x20found:\x20'+_0xd74851);let _0x1bd05d;const _0x2930ff=readFileSync(_0x3a9cdc,_0x48fb7b(0x1d8));try{_0x1bd05d=JSON[_0x48fb7b(0x1e7)](_0x2930ff);}catch{throw CliErrors[_0x48fb7b(0x205)]('Invalid\x20service\x20manifest\x20JSON:\x20'+_0xd74851,_0x48fb7b(0x1f6));}const _0x341183=sha256(_0x2930ff),_0x182357=extractLoadedServiceManifests(_0x1bd05d,_0x341183),_0x82e4a6=aggregateValidationReports(_0x182357),_0x462b57=_0x182357[0x0];return{'filePath':_0x3a9cdc,'hash':_0x341183,'kind':isServiceRegistryLike(_0x1bd05d)?_0x48fb7b(0x204):_0x48fb7b(0x1ea),'manifest':_0x462b57?.['manifest']??_0x1bd05d,'report':_0x82e4a6,'normalizedManifest':_0x182357[_0x48fb7b(0x1d5)]===0x1?_0x462b57?.[_0x48fb7b(0x1d4)]:undefined,'manifests':_0x182357};}export function importServiceManifest(_0x2be519,_0x4b1a2a={}){const _0x4824f1=a41_0x53cb99,_0x9e7165=loadServiceManifestFromFile(_0x2be519);if(!_0x9e7165[_0x4824f1(0x1c4)]['ok'])throw CliErrors[_0x4824f1(0x205)](formatValidationFailure(_0x9e7165[_0x4824f1(0x1c4)]),_0x4824f1(0x1e4));if(_0x9e7165[_0x4824f1(0x1dc)][_0x4824f1(0x1d5)]===0x0)throw CliErrors['validation'](_0x4824f1(0x1ee),'Add\x20at\x20least\x20one\x20service\x20manifest,\x20then\x20run\x20service\x20import\x20again.');const _0x43691f=readServiceRegistry(_0x4b1a2a),_0x4bdd06=(_0x4b1a2a[_0x4824f1(0x1f8)]??(()=>new Date()))()['toISOString'](),_0x3d1cec=[];let _0x54141a=0x0,_0x19b233=0x0;for(const _0x2c9410 of _0x9e7165[_0x4824f1(0x1dc)]){if(!_0x2c9410[_0x4824f1(0x1d4)])continue;const _0x585804=_0x2c9410[_0x4824f1(0x1d4)][_0x4824f1(0x1f7)][_0x4824f1(0x1fc)],_0x58c4da={'serviceCode':_0x585804,'version':_0x2c9410[_0x4824f1(0x1d4)][_0x4824f1(0x1e5)],'importedAt':_0x4bdd06,'source':{'type':_0x4824f1(0x1bb),'path':_0x9e7165['filePath'],'hash':_0x2c9410[_0x4824f1(0x1e9)]},'manifest':_0x2c9410['manifest'],'normalizedManifest':_0x2c9410[_0x4824f1(0x1d4)]},_0x4ebeb0=_0x43691f['services'][_0x4824f1(0x1c9)](_0x50331d=>_0x50331d['serviceCode']===_0x585804);_0x4ebeb0>=0x0?(_0x43691f['services'][_0x4ebeb0]=_0x58c4da,_0x19b233++):(_0x43691f[_0x4824f1(0x208)][_0x4824f1(0x1e2)](_0x58c4da),_0x54141a++),_0x3d1cec[_0x4824f1(0x1e2)](_0x58c4da);}_0x43691f[_0x4824f1(0x208)]['sort']((_0x815ddb,_0x580e32)=>_0x815ddb[_0x4824f1(0x1f2)]['localeCompare'](_0x580e32[_0x4824f1(0x1f2)])),_0x43691f[_0x4824f1(0x1e0)]=_0x4bdd06;const _0x40812b=writeServiceRegistry(_0x43691f,_0x4b1a2a);return{'registryPath':_0x40812b,'entry':_0x3d1cec[0x0],'replaced':_0x3d1cec['length']===0x1?_0x19b233===0x1:_0x19b233>0x0,'entries':_0x3d1cec,'imported':_0x54141a,'updated':_0x19b233,'serviceCount':_0x43691f[_0x4824f1(0x208)][_0x4824f1(0x1d5)]};}export function exportServiceManifest(_0xb1b406,_0x6276f7,_0x59d1bd={}){const _0x3391ec=a41_0x53cb99,_0x372b90=getServiceRegistryPath(_0x59d1bd),_0x1f81a4=getLocalServiceEntry(_0xb1b406,_0x59d1bd);if(!_0x1f81a4)throw CliErrors[_0x3391ec(0x205)](_0x3391ec(0x1ce)+_0xb1b406,_0x3391ec(0x1df));const _0x159cc2=resolve(_0x6276f7),_0xae5d7a=dirname(_0x159cc2);return!existsSync(_0xae5d7a)&&mkdirSync(_0xae5d7a,{'recursive':!![]}),writeFileSync(_0x159cc2,JSON[_0x3391ec(0x1cb)](_0x1f81a4[_0x3391ec(0x1ea)],null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),{'registryPath':_0x372b90,'filePath':_0x159cc2,'entry':_0x1f81a4};}export function removeServiceManifest(_0x74a734,_0x55cd5c={}){const _0xc62cd7=a41_0x53cb99,_0x4677c8=readServiceRegistry(_0x55cd5c),_0x483c7c=_0x74a734[_0xc62cd7(0x1e1)](),_0x10048f=_0x4677c8[_0xc62cd7(0x208)][_0xc62cd7(0x1c9)](_0x104bad=>_0x104bad[_0xc62cd7(0x1f2)]===_0x483c7c);if(_0x10048f<0x0)throw CliErrors[_0xc62cd7(0x205)](_0xc62cd7(0x1ce)+_0x483c7c,_0xc62cd7(0x1df));const [_0x4f5003]=_0x4677c8[_0xc62cd7(0x208)][_0xc62cd7(0x1cc)](_0x10048f,0x1),_0x373875=(_0x55cd5c['now']??(()=>new Date()))()[_0xc62cd7(0x1ca)]();_0x4677c8[_0xc62cd7(0x1e0)]=_0x373875;const _0x1ad287=writeServiceRegistry(_0x4677c8,_0x55cd5c);return{'registryPath':_0x1ad287,'entry':_0x4f5003,'serviceCount':_0x4677c8['services'][_0xc62cd7(0x1d5)]};}export function listLocalServices(_0xa05730={}){const _0x153a8b=a41_0x53cb99;return readServiceRegistry(_0xa05730)[_0x153a8b(0x208)];}export function getLocalServiceEntry(_0x589ba9,_0x1428d3={}){const _0x5dec66=a41_0x53cb99;return readServiceRegistry(_0x1428d3)[_0x5dec66(0x208)]['find'](_0x9e2329=>_0x9e2329['serviceCode']===_0x589ba9[_0x5dec66(0x1e1)]());}export function listLocalServiceTrees(_0x5379a0={}){const _0x27341a=a41_0x53cb99;return readServiceRegistry(_0x5379a0)[_0x27341a(0x208)]['map'](_0x118941=>_0x118941[_0x27341a(0x1d4)]);}export function inspectServiceRegistry(_0x538716={}){const _0x383bde=a41_0x53cb99,_0x1f27a0=getServiceRegistryPath(_0x538716);if(!existsSync(_0x1f27a0))return emptyServiceRegistryInspection(_0x1f27a0,_0x383bde(0x1d3),![]);try{const _0x1df41b=readFileSync(_0x1f27a0,_0x383bde(0x1d8));if(!_0x1df41b[_0x383bde(0x1e1)]())return emptyServiceRegistryInspection(_0x1f27a0,_0x383bde(0x1bc),!![]);const _0x567b5a=JSON['parse'](_0x1df41b);if(_0x567b5a['schemaVersion']!==SERVICE_REGISTRY_SCHEMA_VERSION)return{...emptyServiceRegistryInspection(_0x1f27a0,_0x383bde(0x1d2),!![]),'schemaVersion':_0x567b5a['schemaVersion'],'message':_0x383bde(0x1dd)+String(_0x567b5a[_0x383bde(0x1f9)])};if(!Array[_0x383bde(0x1c8)](_0x567b5a[_0x383bde(0x208)]))return{...emptyServiceRegistryInspection(_0x1f27a0,_0x383bde(0x1d2),!![]),'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x567b5a[_0x383bde(0x1e0)],'message':_0x383bde(0x1ed)};const _0x5d5562=_0x567b5a['services'][_0x383bde(0x1e8)](summarizeLocalServiceEntry);return{'registryPath':_0x1f27a0,'exists':!![],'status':'ok','schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x567b5a['updatedAt'],'serviceCount':_0x5d5562[_0x383bde(0x1d5)],'commandCount':_0x5d5562[_0x383bde(0x1fd)]((_0x276cbb,_0x1916d3)=>_0x276cbb+_0x1916d3['commandCount'],0x0),'services':_0x5d5562};}catch(_0x559d73){return{...emptyServiceRegistryInspection(_0x1f27a0,_0x383bde(0x1d2),!![]),'message':_0x559d73 instanceof Error?_0x559d73[_0x383bde(0x1cd)]:String(_0x559d73)};}}export function formatValidationFailure(_0x14776d){const _0x474b71=a41_0x53cb99,_0x25906e=_0x14776d[_0x474b71(0x1ec)][_0x474b71(0x1e8)](_0x40d66f=>_0x40d66f[_0x474b71(0x206)]+':\x20'+_0x40d66f['message']);return _0x474b71(0x1e3)+_0x25906e['join']('\x0a');}function extractLoadedServiceManifests(_0xc669b5,_0xfa4913){const _0x5e8b80=a41_0x53cb99;if(!isServiceRegistryLike(_0xc669b5)){const _0x2d9c05=_0xc669b5,{manifest:_0x143a2f,errors:_0x56041c}=adaptServiceTreeManifestForLegacyFramework(_0x2d9c05),_0x162a15=validateServiceTreeManifest(_0x143a2f),_0x1e7809=mergeValidationErrors(_0x162a15,_0x56041c);return[{'manifest':_0x2d9c05,'report':_0x1e7809,'normalizedManifest':_0x1e7809['ok']?normalizeServiceTreeManifest(_0x143a2f):undefined,'sourceHash':_0xfa4913}];}return _0xc669b5[_0x5e8b80(0x208)][_0x5e8b80(0x1e8)]((_0x5db790,_0x5e8371)=>{const _0xeca295=_0x5e8b80,_0x45082e=isObjectRecord(_0x5db790)?_0x5db790['manifest']:undefined,{manifest:_0x346353,errors:_0x4bfe4d}=adaptServiceTreeManifestForLegacyFramework(_0x45082e),_0x3d787e=validateServiceTreeManifest(_0x346353),_0x3c4434=mergeValidationErrors(_0x3d787e,_0x4bfe4d),_0x5e192c=isObjectRecord(_0x5db790)&&typeof _0x5db790[_0xeca295(0x1f2)]==='string'?_0x5db790[_0xeca295(0x1f2)]:undefined;return{'manifest':_0x45082e,'report':_0x3c4434,'normalizedManifest':_0x3c4434['ok']?normalizeServiceTreeManifest(_0x346353):undefined,'sourceHash':sha256(JSON[_0xeca295(0x1cb)](_0x45082e,null,0x2)+'\x0a'),'registryIndex':_0x5e8371,'registryServiceCode':_0x5e192c};});}function mergeValidationErrors(_0x478f87,_0x149218){const _0x58a7aa=a41_0x53cb99,_0x4afcb8=_0x478f87[_0x58a7aa(0x1ec)]['map'](_0x59dbc7=>_0x59dbc7[_0x58a7aa(0x1cd)]==='bff\x20target\x20requires\x20bffCode,\x20bffId,\x20or\x20scriptName.'?{..._0x59dbc7,'message':'bff\x20target\x20requires\x20functionName.'}:_0x59dbc7),_0x4b7913=[..._0x149218,..._0x4afcb8];return{'ok':_0x4b7913['length']===0x0,'errors':_0x4b7913,'warnings':_0x478f87[_0x58a7aa(0x209)]};}function aggregateValidationReports(_0x1e3910){const _0x1b0f52=a41_0x53cb99,_0x54fe00=_0x1e3910[_0x1b0f52(0x1f3)](_0x1e535f=>_0x1e535f['registryIndex']===undefined?_0x1e535f[_0x1b0f52(0x1c4)]['errors']:_0x1e535f[_0x1b0f52(0x1c4)]['errors'][_0x1b0f52(0x1e8)](_0x53b1fc=>({..._0x53b1fc,'path':prefixRegistryIssuePath(_0x1e535f[_0x1b0f52(0x1cf)],_0x53b1fc[_0x1b0f52(0x206)])}))),_0x4d14db=_0x1e3910[_0x1b0f52(0x1f3)](_0x1ff7f5=>_0x1ff7f5[_0x1b0f52(0x1cf)]===undefined?_0x1ff7f5[_0x1b0f52(0x1c4)]['warnings']:_0x1ff7f5[_0x1b0f52(0x1c4)]['warnings'][_0x1b0f52(0x1e8)](_0xa53d7a=>({..._0xa53d7a,'path':prefixRegistryIssuePath(_0x1ff7f5[_0x1b0f52(0x1cf)],_0xa53d7a[_0x1b0f52(0x206)])})));return{'ok':_0x54fe00['length']===0x0,'errors':_0x54fe00,'warnings':_0x4d14db};}function prefixRegistryIssuePath(_0x498c48,_0x12e785){const _0x222747=a41_0x53cb99;if(_0x12e785==='$')return _0x222747(0x1c0)+_0x498c48+_0x222747(0x1eb);if(_0x12e785[_0x222747(0x1bd)]('$.'))return _0x222747(0x1c0)+_0x498c48+_0x222747(0x1eb)+_0x12e785[_0x222747(0x1d1)](0x1);if(_0x12e785[_0x222747(0x1bd)]('$['))return _0x222747(0x1c0)+_0x498c48+'].manifest'+_0x12e785['slice'](0x1);return _0x222747(0x1c0)+_0x498c48+_0x222747(0x1da)+_0x12e785;}function isServiceRegistryLike(_0x5211e0){const _0x390f0c=a41_0x53cb99;return isObjectRecord(_0x5211e0)&&_0x5211e0[_0x390f0c(0x1f9)]===SERVICE_REGISTRY_SCHEMA_VERSION&&Array[_0x390f0c(0x1c8)](_0x5211e0['services']);}function isObjectRecord(_0x5b2b76){const _0x4bfaee=a41_0x53cb99;return Boolean(_0x5b2b76)&&typeof _0x5b2b76===_0x4bfaee(0x1fa)&&!Array['isArray'](_0x5b2b76);}function emptyServiceRegistryInspection(_0x406068,_0xba51ac,_0x2bb06c){return{'registryPath':_0x406068,'exists':_0x2bb06c,'status':_0xba51ac,'serviceCount':0x0,'commandCount':0x0,'services':[]};}function summarizeLocalServiceEntry(_0x2372c9){const _0x5f56fe=a41_0x53cb99,_0x1d6621=_0x2372c9[_0x5f56fe(0x1d4)],_0x4519a2=_0x1d6621['commands']['map'](_0x4c3c1c=>({'path':_0x4c3c1c['cliPath'],'description':_0x4c3c1c['description'],'risk':_0x4c3c1c[_0x5f56fe(0x1c6)],'targetKind':_0x4c3c1c['target']['kind'],'targetCommand':_0x4c3c1c['target']['command']}));return{'serviceCode':_0x2372c9[_0x5f56fe(0x1f2)],'name':_0x1d6621[_0x5f56fe(0x1f7)][_0x5f56fe(0x1c7)],'description':_0x1d6621[_0x5f56fe(0x1f7)][_0x5f56fe(0x1f0)],'version':_0x2372c9['version'],'importedAt':_0x2372c9[_0x5f56fe(0x1c3)],'source':_0x2372c9[_0x5f56fe(0x1c5)],'commandCount':_0x4519a2[_0x5f56fe(0x1d5)],'commands':_0x4519a2};}function sha256(_0x1abdc1){const _0x2362f7=a41_0x53cb99;return createHash(_0x2362f7(0x1ef))[_0x2362f7(0x1be)](_0x1abdc1)[_0x2362f7(0x1de)](_0x2362f7(0x1c1));}
|
|
1
|
+
(function(_0x108149,_0xd93da4){const _0x475aa3=a41_0x31f0,_0x4498e0=_0x108149();while(!![]){try{const _0x449ab8=parseInt(_0x475aa3(0x121))/0x1+parseInt(_0x475aa3(0x135))/0x2*(-parseInt(_0x475aa3(0x15e))/0x3)+-parseInt(_0x475aa3(0x133))/0x4+parseInt(_0x475aa3(0x15b))/0x5+-parseInt(_0x475aa3(0x11a))/0x6+parseInt(_0x475aa3(0x149))/0x7+-parseInt(_0x475aa3(0x123))/0x8;if(_0x449ab8===_0xd93da4)break;else _0x4498e0['push'](_0x4498e0['shift']());}catch(_0x4ee45b){_0x4498e0['push'](_0x4498e0['shift']());}}}(a41_0xf7f2,0x4d84e));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='service.json';export function getServiceRegistryPath(_0x155953={}){const _0x1e5cd0=a41_0x31f0;return resolve(_0x155953[_0x1e5cd0(0x152)]??homedir(),PRODUCT_CONFIG[_0x1e5cd0(0x111)],SERVICE_REGISTRY_FILE_NAME);}function a41_0x31f0(_0x2953a9,_0x458419){_0x2953a9=_0x2953a9-0x110;const _0xf7f22a=a41_0xf7f2();let _0x31f0b5=_0xf7f22a[_0x2953a9];return _0x31f0b5;}export function emptyServiceRegistry(){return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'services':[]};}export function readServiceRegistry(_0x517cbb={}){const _0xd7730d=a41_0x31f0,_0x23f643=getServiceRegistryPath(_0x517cbb);if(!existsSync(_0x23f643))return emptyServiceRegistry();try{const _0x310b4b=readFileSync(_0x23f643,'utf8');if(!_0x310b4b[_0xd7730d(0x166)]())return emptyServiceRegistry();const _0x1c7142=JSON[_0xd7730d(0x134)](_0x310b4b);if(_0x1c7142[_0xd7730d(0x115)]!==SERVICE_REGISTRY_SCHEMA_VERSION)throw CliErrors[_0xd7730d(0x136)](_0xd7730d(0x160)+String(_0x1c7142['schemaVersion']),_0xd7730d(0x141)+_0x23f643+'.');if(!Array[_0xd7730d(0x142)](_0x1c7142[_0xd7730d(0x13a)]))return emptyServiceRegistry();return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x1c7142[_0xd7730d(0x14b)],'services':_0x1c7142[_0xd7730d(0x13a)]};}catch(_0x2d9d74){if(_0x2d9d74 instanceof Error&&_0x2d9d74['name']==='CliError')throw _0x2d9d74;throw CliErrors[_0xd7730d(0x136)](_0xd7730d(0x140)+_0x23f643,_0xd7730d(0x13f));}}export function writeServiceRegistry(_0x127631,_0xa02732={}){const _0x35f100=a41_0x31f0,_0x51eca4=getServiceRegistryPath(_0xa02732),_0x3fe8c9=dirname(_0x51eca4);!existsSync(_0x3fe8c9)&&mkdirSync(_0x3fe8c9,{'recursive':!![]});const _0x58c25f=_0x51eca4+_0x35f100(0x12c);try{writeFileSync(_0x58c25f,JSON[_0x35f100(0x147)](_0x127631,null,0x2)+'\x0a',{'encoding':_0x35f100(0x120),'mode':0x180}),renameSync(_0x58c25f,_0x51eca4);}catch(_0x40ee6d){try{unlinkSync(_0x58c25f);}catch{}if(_0x40ee6d?.[_0x35f100(0x161)]===_0x35f100(0x15f))throw CliErrors[_0x35f100(0x136)](_0x35f100(0x164)+_0x51eca4);throw _0x40ee6d;}return _0x51eca4;}export function loadServiceManifestFromFile(_0x451abd){const _0x3560be=a41_0x31f0,_0x9a3f74=resolve(_0x451abd);if(!existsSync(_0x9a3f74))throw CliErrors[_0x3560be(0x136)]('Service\x20manifest\x20file\x20not\x20found:\x20'+_0x451abd);let _0x4f2f8a;const _0x27e02f=readFileSync(_0x9a3f74,'utf8');try{_0x4f2f8a=JSON[_0x3560be(0x134)](_0x27e02f);}catch{throw CliErrors[_0x3560be(0x136)](_0x3560be(0x11e)+_0x451abd,_0x3560be(0x146));}const _0x6612b2=sha256(_0x27e02f),_0x2ef2a2=extractLoadedServiceManifests(_0x4f2f8a,_0x6612b2),_0x38eeb4=aggregateValidationReports(_0x2ef2a2),_0xec40f4=_0x2ef2a2[0x0];return{'filePath':_0x9a3f74,'hash':_0x6612b2,'kind':isServiceRegistryLike(_0x4f2f8a)?_0x3560be(0x12b):'manifest','manifest':_0xec40f4?.['manifest']??_0x4f2f8a,'report':_0x38eeb4,'normalizedManifest':_0x2ef2a2[_0x3560be(0x155)]===0x1?_0xec40f4?.['normalizedManifest']:undefined,'manifests':_0x2ef2a2};}export function importServiceManifest(_0xf525bb,_0x1465f2={}){const _0x569543=a41_0x31f0,_0x416b42=loadServiceManifestFromFile(_0xf525bb);if(!_0x416b42[_0x569543(0x112)]['ok'])throw CliErrors[_0x569543(0x136)](formatValidationFailure(_0x416b42['report']),_0x569543(0x117));if(_0x416b42[_0x569543(0x15d)]['length']===0x0)throw CliErrors[_0x569543(0x136)](_0x569543(0x158),_0x569543(0x129));const _0x3221d2=readServiceRegistry(_0x1465f2),_0x2db97b=(_0x1465f2[_0x569543(0x116)]??(()=>new Date()))()[_0x569543(0x154)](),_0x57ac35=[];let _0x2abd13=0x0,_0x176818=0x0;for(const _0x223915 of _0x416b42[_0x569543(0x15d)]){if(!_0x223915[_0x569543(0x132)])continue;const _0x59befd=_0x223915['normalizedManifest'][_0x569543(0x13c)][_0x569543(0x161)],_0x2c492a={'serviceCode':_0x59befd,'version':_0x223915[_0x569543(0x132)][_0x569543(0x143)],'importedAt':_0x2db97b,'source':{'type':_0x569543(0x124),'path':_0x416b42[_0x569543(0x13e)],'hash':_0x223915['sourceHash']},'manifest':_0x223915['manifest'],'normalizedManifest':_0x223915[_0x569543(0x132)]},_0x43d10d=_0x3221d2['services'][_0x569543(0x165)](_0x4426b3=>_0x4426b3['serviceCode']===_0x59befd);_0x43d10d>=0x0?(_0x3221d2[_0x569543(0x13a)][_0x43d10d]=_0x2c492a,_0x176818++):(_0x3221d2[_0x569543(0x13a)][_0x569543(0x14a)](_0x2c492a),_0x2abd13++),_0x57ac35['push'](_0x2c492a);}_0x3221d2[_0x569543(0x13a)][_0x569543(0x15c)]((_0x3f1879,_0xf6afef)=>_0x3f1879[_0x569543(0x11d)][_0x569543(0x130)](_0xf6afef[_0x569543(0x11d)])),_0x3221d2[_0x569543(0x14b)]=_0x2db97b;const _0x1f882a=writeServiceRegistry(_0x3221d2,_0x1465f2);return{'registryPath':_0x1f882a,'entry':_0x57ac35[0x0],'replaced':_0x57ac35[_0x569543(0x155)]===0x1?_0x176818===0x1:_0x176818>0x0,'entries':_0x57ac35,'imported':_0x2abd13,'updated':_0x176818,'serviceCount':_0x3221d2[_0x569543(0x13a)][_0x569543(0x155)]};}export function exportServiceManifest(_0x3c8a72,_0x481824,_0x4c8ef4={}){const _0x5d16d7=a41_0x31f0,_0x132512=getServiceRegistryPath(_0x4c8ef4),_0x57ed94=getLocalServiceEntry(_0x3c8a72,_0x4c8ef4);if(!_0x57ed94)throw CliErrors[_0x5d16d7(0x136)](_0x5d16d7(0x156)+_0x3c8a72,'Run\x20lovrabet\x20service\x20list\x20to\x20see\x20imported\x20services.');const _0x5052be=resolve(_0x481824),_0x38e4a9=dirname(_0x5052be);return!existsSync(_0x38e4a9)&&mkdirSync(_0x38e4a9,{'recursive':!![]}),writeFileSync(_0x5052be,JSON['stringify'](_0x57ed94['manifest'],null,0x2)+'\x0a',{'encoding':_0x5d16d7(0x120),'mode':0x180}),{'registryPath':_0x132512,'filePath':_0x5052be,'entry':_0x57ed94};}export function removeServiceManifest(_0x57d898,_0xaf374e={}){const _0xb323de=a41_0x31f0,_0x16a813=readServiceRegistry(_0xaf374e),_0x475a71=_0x57d898[_0xb323de(0x166)](),_0x35af1c=_0x16a813[_0xb323de(0x13a)][_0xb323de(0x165)](_0x3f005a=>_0x3f005a[_0xb323de(0x11d)]===_0x475a71);if(_0x35af1c<0x0)throw CliErrors[_0xb323de(0x136)](_0xb323de(0x156)+_0x475a71,_0xb323de(0x139));const [_0x54de8a]=_0x16a813['services'][_0xb323de(0x13d)](_0x35af1c,0x1),_0x4018c8=(_0xaf374e['now']??(()=>new Date()))()[_0xb323de(0x154)]();_0x16a813[_0xb323de(0x14b)]=_0x4018c8;const _0x558cb8=writeServiceRegistry(_0x16a813,_0xaf374e);return{'registryPath':_0x558cb8,'entry':_0x54de8a,'serviceCount':_0x16a813[_0xb323de(0x13a)]['length']};}export function listLocalServices(_0x555085={}){return readServiceRegistry(_0x555085)['services'];}export function getLocalServiceEntry(_0x56d33c,_0x3da530={}){const _0x223663=a41_0x31f0;return readServiceRegistry(_0x3da530)[_0x223663(0x13a)][_0x223663(0x151)](_0x44ad07=>_0x44ad07[_0x223663(0x11d)]===_0x56d33c[_0x223663(0x166)]());}export function listLocalServiceTrees(_0xdbd912={}){const _0x101f9b=a41_0x31f0;return readServiceRegistry(_0xdbd912)['services'][_0x101f9b(0x14e)](_0x45afa6=>_0x45afa6[_0x101f9b(0x132)]);}export function inspectServiceRegistry(_0x461856={}){const _0x3af873=a41_0x31f0,_0x52383a=getServiceRegistryPath(_0x461856);if(!existsSync(_0x52383a))return emptyServiceRegistryInspection(_0x52383a,_0x3af873(0x127),![]);try{const _0x95be6d=readFileSync(_0x52383a,_0x3af873(0x120));if(!_0x95be6d[_0x3af873(0x166)]())return emptyServiceRegistryInspection(_0x52383a,_0x3af873(0x159),!![]);const _0x52136e=JSON[_0x3af873(0x134)](_0x95be6d);if(_0x52136e['schemaVersion']!==SERVICE_REGISTRY_SCHEMA_VERSION)return{...emptyServiceRegistryInspection(_0x52383a,_0x3af873(0x128),!![]),'schemaVersion':_0x52136e['schemaVersion'],'message':'Unsupported\x20schemaVersion:\x20'+String(_0x52136e[_0x3af873(0x115)])};if(!Array[_0x3af873(0x142)](_0x52136e[_0x3af873(0x13a)]))return{...emptyServiceRegistryInspection(_0x52383a,'invalid',!![]),'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x52136e[_0x3af873(0x14b)],'message':_0x3af873(0x11b)};const _0x8a716e=_0x52136e[_0x3af873(0x13a)][_0x3af873(0x14e)](summarizeLocalServiceEntry);return{'registryPath':_0x52383a,'exists':!![],'status':'ok','schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x52136e[_0x3af873(0x14b)],'serviceCount':_0x8a716e[_0x3af873(0x155)],'commandCount':_0x8a716e['reduce']((_0xf7530b,_0x5bf0b8)=>_0xf7530b+_0x5bf0b8[_0x3af873(0x162)],0x0),'services':_0x8a716e};}catch(_0x26386e){return{...emptyServiceRegistryInspection(_0x52383a,_0x3af873(0x128),!![]),'message':_0x26386e instanceof Error?_0x26386e[_0x3af873(0x12f)]:String(_0x26386e)};}}export function formatValidationFailure(_0x2992bf){const _0x59c554=a41_0x31f0,_0x5f209c=_0x2992bf[_0x59c554(0x126)]['map'](_0x28a720=>_0x28a720[_0x59c554(0x125)]+':\x20'+_0x28a720[_0x59c554(0x12f)]);return'Service\x20manifest\x20validation\x20failed:\x0a'+_0x5f209c[_0x59c554(0x150)]('\x0a');}function extractLoadedServiceManifests(_0xfc2165,_0x1c55d6){const _0x5c9a64=a41_0x31f0;if(!isServiceRegistryLike(_0xfc2165)){const _0xc0213f=_0xfc2165,{manifest:_0x3941db,errors:_0x12af28}=adaptServiceTreeManifestForLegacyFramework(_0xc0213f),_0x44ad37=validateServiceTreeManifest(_0x3941db),_0x533f59=mergeValidationErrors(_0x44ad37,_0x12af28);return[{'manifest':_0xc0213f,'report':_0x533f59,'normalizedManifest':_0x533f59['ok']?normalizeServiceTreeManifest(_0x3941db):undefined,'sourceHash':_0x1c55d6}];}return _0xfc2165[_0x5c9a64(0x13a)]['map']((_0x235298,_0x7f85df)=>{const _0x34919a=_0x5c9a64,_0x27accc=isObjectRecord(_0x235298)?_0x235298[_0x34919a(0x14c)]:undefined,{manifest:_0x51d9ea,errors:_0x2f3804}=adaptServiceTreeManifestForLegacyFramework(_0x27accc),_0x22f45e=validateServiceTreeManifest(_0x51d9ea),_0x1514c1=mergeValidationErrors(_0x22f45e,_0x2f3804),_0x8e9404=isObjectRecord(_0x235298)&&typeof _0x235298[_0x34919a(0x11d)]===_0x34919a(0x15a)?_0x235298['serviceCode']:undefined;return{'manifest':_0x27accc,'report':_0x1514c1,'normalizedManifest':_0x1514c1['ok']?normalizeServiceTreeManifest(_0x51d9ea):undefined,'sourceHash':sha256(JSON[_0x34919a(0x147)](_0x27accc,null,0x2)+'\x0a'),'registryIndex':_0x7f85df,'registryServiceCode':_0x8e9404};});}function mergeValidationErrors(_0x5c1703,_0x3e5e6c){const _0x57a69b=a41_0x31f0,_0x29384d=_0x5c1703[_0x57a69b(0x126)][_0x57a69b(0x14e)](_0x502142=>_0x502142[_0x57a69b(0x12f)]===_0x57a69b(0x119)?{..._0x502142,'message':_0x57a69b(0x12e)}:_0x502142),_0x1d9bd4=[..._0x3e5e6c,..._0x29384d];return{'ok':_0x1d9bd4[_0x57a69b(0x155)]===0x0,'errors':_0x1d9bd4,'warnings':_0x5c1703[_0x57a69b(0x113)]};}function aggregateValidationReports(_0x3178a8){const _0x5ed8d2=a41_0x31f0,_0x4102ce=_0x3178a8[_0x5ed8d2(0x131)](_0xd11b53=>_0xd11b53[_0x5ed8d2(0x11f)]===undefined?_0xd11b53[_0x5ed8d2(0x112)][_0x5ed8d2(0x126)]:_0xd11b53['report'][_0x5ed8d2(0x126)][_0x5ed8d2(0x14e)](_0x19db49=>({..._0x19db49,'path':prefixRegistryIssuePath(_0xd11b53[_0x5ed8d2(0x11f)],_0x19db49[_0x5ed8d2(0x125)])}))),_0x875d82=_0x3178a8[_0x5ed8d2(0x131)](_0x248001=>_0x248001[_0x5ed8d2(0x11f)]===undefined?_0x248001[_0x5ed8d2(0x112)][_0x5ed8d2(0x113)]:_0x248001[_0x5ed8d2(0x112)]['warnings'][_0x5ed8d2(0x14e)](_0x5de21d=>({..._0x5de21d,'path':prefixRegistryIssuePath(_0x248001[_0x5ed8d2(0x11f)],_0x5de21d[_0x5ed8d2(0x125)])})));return{'ok':_0x4102ce['length']===0x0,'errors':_0x4102ce,'warnings':_0x875d82};}function prefixRegistryIssuePath(_0xa7f04b,_0x14d4be){const _0x330055=a41_0x31f0;if(_0x14d4be==='$')return'$.services['+_0xa7f04b+_0x330055(0x13b);if(_0x14d4be[_0x330055(0x138)]('$.'))return'$.services['+_0xa7f04b+'].manifest'+_0x14d4be[_0x330055(0x153)](0x1);if(_0x14d4be[_0x330055(0x138)]('$['))return _0x330055(0x148)+_0xa7f04b+_0x330055(0x13b)+_0x14d4be['slice'](0x1);return'$.services['+_0xa7f04b+_0x330055(0x122)+_0x14d4be;}function isServiceRegistryLike(_0x522d17){const _0x32726a=a41_0x31f0;return isObjectRecord(_0x522d17)&&_0x522d17['schemaVersion']===SERVICE_REGISTRY_SCHEMA_VERSION&&Array['isArray'](_0x522d17[_0x32726a(0x13a)]);}function isObjectRecord(_0x312e1d){const _0x5137db=a41_0x31f0;return Boolean(_0x312e1d)&&typeof _0x312e1d==='object'&&!Array[_0x5137db(0x142)](_0x312e1d);}function emptyServiceRegistryInspection(_0x31d94f,_0x5a3454,_0x11043e){return{'registryPath':_0x31d94f,'exists':_0x11043e,'status':_0x5a3454,'serviceCount':0x0,'commandCount':0x0,'services':[]};}function a41_0xf7f2(){const _0x5b5465=['2564470GTMdaq','sort','manifests','6kXGvfR','ENOENT','Unsupported\x20service\x20registry\x20schemaVersion:\x20','code','commandCount','hex','Cannot\x20write\x20service\x20registry:\x20','findIndex','trim','cliPath','homeDirName','report','warnings','command','schemaVersion','now','Fix\x20the\x20service\x20manifest\x20and\x20run\x20service\x20validate\x20again.','kind','bff\x20target\x20requires\x20bffCode,\x20bffId,\x20or\x20scriptName.','67302hckkjI','services\x20must\x20be\x20an\x20array','source','serviceCode','Invalid\x20service\x20manifest\x20JSON:\x20','registryIndex','utf8','465890VmgZHF','].manifest.','7016392gkwGoY','file','path','errors','missing','invalid','Add\x20at\x20least\x20one\x20service\x20manifest,\x20then\x20run\x20service\x20import\x20again.','digest','registry','.tmp','sha256','bff\x20target\x20requires\x20functionName.','message','localeCompare','flatMap','normalizedManifest','129372ZwdALL','parse','238652bjRoZc','validation','name','startsWith','Run\x20lovrabet\x20service\x20list\x20to\x20see\x20imported\x20services.','services','].manifest','service','splice','filePath','Fix\x20the\x20JSON\x20file\x20or\x20move\x20it\x20aside\x20and\x20import\x20services\x20again.','Invalid\x20service\x20registry\x20JSON:\x20','Remove\x20or\x20migrate\x20','isArray','version','description','risk','Fix\x20the\x20JSON\x20syntax\x20and\x20run\x20service\x20validate\x20again.','stringify','$.services[','3485965mXedEL','push','updatedAt','manifest','target','map','commands','join','find','homeDir','slice','toISOString','length','Local\x20service\x20not\x20found:\x20','importedAt','Service\x20registry\x20has\x20no\x20services\x20to\x20import.','empty','string'];a41_0xf7f2=function(){return _0x5b5465;};return a41_0xf7f2();}function summarizeLocalServiceEntry(_0x142e18){const _0x4a6ba7=a41_0x31f0,_0x346637=_0x142e18[_0x4a6ba7(0x132)],_0x1ac64c=_0x346637[_0x4a6ba7(0x14f)]['map'](_0x5412ee=>({'path':_0x5412ee[_0x4a6ba7(0x110)],'description':_0x5412ee[_0x4a6ba7(0x144)],'risk':_0x5412ee[_0x4a6ba7(0x145)],'targetKind':_0x5412ee[_0x4a6ba7(0x14d)][_0x4a6ba7(0x118)],'targetCommand':_0x5412ee['target'][_0x4a6ba7(0x114)]}));return{'serviceCode':_0x142e18[_0x4a6ba7(0x11d)],'name':_0x346637[_0x4a6ba7(0x13c)][_0x4a6ba7(0x137)],'description':_0x346637[_0x4a6ba7(0x13c)][_0x4a6ba7(0x144)],'version':_0x142e18[_0x4a6ba7(0x143)],'importedAt':_0x142e18[_0x4a6ba7(0x157)],'source':_0x142e18[_0x4a6ba7(0x11c)],'commandCount':_0x1ac64c[_0x4a6ba7(0x155)],'commands':_0x1ac64c};}function sha256(_0x579427){const _0x25de40=a41_0x31f0;return createHash(_0x25de40(0x12d))['update'](_0x579427)[_0x25de40(0x12a)](_0x25de40(0x163));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a42_0x4e56db=a42_0xbbf2;(function(_0x1ca5ca,_0x572ef3){const _0x41c327=a42_0xbbf2,_0x59e107=_0x1ca5ca();while(!![]){try{const _0x103aa7=-parseInt(_0x41c327(0xee))/0x1+-parseInt(_0x41c327(0x103))/0x2+-parseInt(_0x41c327(0x100))/0x3+parseInt(_0x41c327(0xff))/0x4*(-parseInt(_0x41c327(0xeb))/0x5)+-parseInt(_0x41c327(0xf3))/0x6*(-parseInt(_0x41c327(0xec))/0x7)+parseInt(_0x41c327(0xe7))/0x8+parseInt(_0x41c327(0xf9))/0x9;if(_0x103aa7===_0x572ef3)break;else _0x59e107['push'](_0x59e107['shift']());}catch(_0x51701e){_0x59e107['push'](_0x59e107['shift']());}}}(a42_0x4f21,0xeefe2));import{existsSync,lstatSync,mkdirSync,writeFileSync}from'node:fs';import{dirname,resolve}from'node:path';import{CliErrors}from'../../../errors.js';function a42_0x4f21(){const _0x168b87=['Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.','trim','str','skillDir','create','79996olcTLA','5382471rpZxcj','type','Created\x20local\x20Skill\x20draft\x20','3253272mJhlzI','bool','Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','map','name','write','5529888BgrAEh','WRITE','validation','files','415RWyFHg','6895DHRogL','rendered','1691975pFRWuv','path','target','skill','force','8268uqfOaK','skillName','Skill\x20directory\x20already\x20exists:\x20','isSymbolicLink','Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20','Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.','51327297zyXCKI'];a42_0x4f21=function(){return _0x168b87;};return a42_0x4f21();}import{CREATE_NAME_FLAG,FORCE_FLAG,TARGET_FLAG,TYPE_FLAG}from'../flags.js';import{DEFAULT_SKILL_TARGET,renderSkillTemplate}from'../templates.js';function a42_0xbbf2(_0x13d268,_0x1cb732){_0x13d268=_0x13d268-0xe7;const _0x4f21c3=a42_0x4f21();let _0xbbf2d2=_0x4f21c3[_0x13d268];return _0xbbf2d2;}export const createCommand={'service':a42_0x4e56db(0xf1),'command':a42_0x4e56db(0xfe),'description':a42_0x4e56db(0x105),'risk':a42_0x4e56db(0x108),'requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x52178a){const _0x34e9f9=a42_0x4e56db,_0x31eab6=buildSkillCreatePlan(_0x52178a[_0x34e9f9(0xfc)](_0x34e9f9(0x107)),_0x52178a[_0x34e9f9(0xfc)](_0x34e9f9(0x101)),_0x52178a[_0x34e9f9(0xfc)](_0x34e9f9(0xf0)));return{'method':_0x34e9f9(0xe8),'url':_0x31eab6[_0x34e9f9(0xfd)],'body':{'skillName':_0x31eab6[_0x34e9f9(0xed)][_0x34e9f9(0xf4)],'type':_0x31eab6[_0x34e9f9(0xed)][_0x34e9f9(0x101)],'selfContained':!![],'files':_0x31eab6[_0x34e9f9(0xed)]['files']['map'](_0x3d0d87=>_0x3d0d87[_0x34e9f9(0xef)])},'description':_0x34e9f9(0xf8)};},async 'execute'(_0x2340f8){const _0x24dea2=a42_0x4e56db,_0x1b6a07=buildSkillCreatePlan(_0x2340f8[_0x24dea2(0xfc)](_0x24dea2(0x107)),_0x2340f8[_0x24dea2(0xfc)](_0x24dea2(0x101)),_0x2340f8['str'](_0x24dea2(0xf0)));return writeSkillDraft(_0x1b6a07,_0x2340f8[_0x24dea2(0x104)](_0x24dea2(0xf2))),{'ok':!![],'data':{'skillName':_0x1b6a07[_0x24dea2(0xed)][_0x24dea2(0xf4)],'type':_0x1b6a07[_0x24dea2(0xed)][_0x24dea2(0x101)],'dir':_0x1b6a07[_0x24dea2(0xfd)],'files':_0x1b6a07[_0x24dea2(0xed)][_0x24dea2(0xea)][_0x24dea2(0x106)](_0x5ac72d=>_0x5ac72d[_0x24dea2(0xef)])},'message':_0x24dea2(0x102)+_0x1b6a07['rendered'][_0x24dea2(0xf4)]};}};function buildSkillCreatePlan(_0x4cd51e,_0x2d4d86,_0x538488){const _0x210a95=a42_0x4e56db,_0x4c0bc6=renderSkillTemplate({'skillName':_0x4cd51e,'type':_0x2d4d86}),_0x302b74=resolve(normalizeSkillTarget(_0x538488));return{'rendered':_0x4c0bc6,'targetRoot':_0x302b74,'skillDir':resolve(_0x302b74,_0x4c0bc6[_0x210a95(0xf4)])};}function normalizeSkillTarget(_0x20ea1a){const _0x5c772f=a42_0x4e56db;return(_0x20ea1a||DEFAULT_SKILL_TARGET)[_0x5c772f(0xfb)]()||DEFAULT_SKILL_TARGET;}function writeSkillDraft(_0x1f7dcb,_0x2f0bf2){const _0x2efc2c=a42_0x4e56db;if(existsSync(_0x1f7dcb[_0x2efc2c(0xfd)])){const _0x59b3b5=lstatSync(_0x1f7dcb[_0x2efc2c(0xfd)]);if(!_0x59b3b5['isDirectory']()||_0x59b3b5[_0x2efc2c(0xf6)]())throw CliErrors[_0x2efc2c(0xe9)](_0x2efc2c(0xf7)+_0x1f7dcb[_0x2efc2c(0xfd)]);if(!_0x2f0bf2)throw CliErrors[_0x2efc2c(0xe9)](_0x2efc2c(0xf5)+_0x1f7dcb['skillDir'],_0x2efc2c(0xfa));}for(const _0x3e6af5 of _0x1f7dcb[_0x2efc2c(0xed)][_0x2efc2c(0xea)]){const _0x4a6c11=resolve(_0x1f7dcb['skillDir'],_0x3e6af5[_0x2efc2c(0xef)]),_0x56f6f3=dirname(_0x4a6c11);mkdirSync(_0x56f6f3,{'recursive':!![]});if(existsSync(_0x4a6c11)&&lstatSync(_0x4a6c11)['isSymbolicLink']())throw CliErrors[_0x2efc2c(0xe9)]('Refusing\x20to\x20overwrite\x20symlink:\x20'+_0x4a6c11);writeFileSync(_0x4a6c11,_0x3e6af5['content'],'utf8');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a43_0x241354=a43_0x56f1;(function(_0x493f26,_0x32d9e5){const _0x513056=a43_0x56f1,_0x3230cf=_0x493f26();while(!![]){try{const _0x1d5b65=-parseInt(_0x513056(0x143))/0x1*(parseInt(_0x513056(0x127))/0x2)+-parseInt(_0x513056(0x128))/0x3*(-parseInt(_0x513056(0x12b))/0x4)+-parseInt(_0x513056(0x131))/0x5+-parseInt(_0x513056(0x13e))/0x6+-parseInt(_0x513056(0x130))/0x7*(-parseInt(_0x513056(0x137))/0x8)+parseInt(_0x513056(0x12c))/0x9*(-parseInt(_0x513056(0x13d))/0xa)+parseInt(_0x513056(0x135))/0xb;if(_0x1d5b65===_0x32d9e5)break;else _0x3230cf['push'](_0x3230cf['shift']());}catch(_0x155ff9){_0x3230cf['push'](_0x3230cf['shift']());}}}(a43_0x22d4,0xcfc2b));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,FORCE_FLAG,SCOPE_FLAG}from'../flags.js';import{normalizeSyncScopes}from'../scopes.js';import{summarizeRuntimeSkill}from'../summary.js';export const installCommand={'service':a43_0x241354(0x12d),'command':a43_0x241354(0x134),'description':a43_0x241354(0x140),'risk':a43_0x241354(0x13b),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG],async 'execute'(_0x19631f){return syncRuntimeSkills(_0x19631f);}};async function syncRuntimeSkills(_0x22d365){const _0x2a761b=a43_0x241354,{downloadRuntimeSkillPackage:_0x18c0f0,listRuntimeSkills:_0x2713dc}=await import(_0x2a761b(0x123)),{linkEffectiveRuntimeSkills:_0x1292c2,materializeRuntimeSkill:_0x3eae3e,pruneStaleRuntimeSkillCache:_0x10872c,pruneStaleRuntimeSkillLinks:_0x522072}=await import(_0x2a761b(0x136)),_0x2cfc2c=_0x22d365[_0x2a761b(0x122)](_0x2a761b(0x145)),_0x4c018a=normalizeSyncScopes(_0x22d365[_0x2a761b(0x122)](_0x2a761b(0x139))),_0x512275=_0x22d365['envName']??_0x2a761b(0x144),_0x45f7a8=_0x22d365['accessKey'],_0x42f0d5=_0x22d365[_0x2a761b(0x12f)](_0x2a761b(0x124));if(!_0x45f7a8)throw CliErrors[_0x2a761b(0x132)]('Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.');const _0x4999a6=await Promise[_0x2a761b(0x120)](_0x4c018a['map'](_0x55ec33=>_0x2713dc({'appCode':_0x22d365[_0x2a761b(0x133)],'scope':_0x55ec33,'code':_0x2cfc2c['trim']()||undefined}))),_0x335f70=_0x4c018a[_0x2a761b(0x125)](_0x2a761b(0x13f))?_0x4999a6['flatMap']((_0x3533e1,_0x57f525)=>_0x4c018a[_0x57f525]==='personal'?_0x3533e1[_0x2a761b(0x13f)]:[]):[],_0x38aaf1=_0x4c018a[_0x2a761b(0x125)](_0x2a761b(0x126))?_0x4999a6[_0x2a761b(0x121)]((_0x5a34c4,_0xb42812)=>_0x4c018a[_0xb42812]===_0x2a761b(0x126)?_0x5a34c4[_0x2a761b(0x126)]:[]):[],_0x3034b9=new Set([..._0x335f70[_0x2a761b(0x12a)](_0x3f0442=>_0x3f0442['skillCode']?.[_0x2a761b(0x138)]())[_0x2a761b(0x13c)](_0x5db9e7=>Boolean(_0x5db9e7)),..._0x38aaf1[_0x2a761b(0x12a)](_0xa41e54=>_0xa41e54[_0x2a761b(0x146)]?.[_0x2a761b(0x138)]())[_0x2a761b(0x13c)](_0x889def=>Boolean(_0x889def))]),_0x25ebd6=_0x2cfc2c[_0x2a761b(0x138)]()?[_0x2cfc2c[_0x2a761b(0x138)]()]:undefined,_0x34a33d=_0x4c018a[_0x2a761b(0x13a)]===0x2&&_0x4c018a[_0x2a761b(0x125)]('personal')&&_0x4c018a[_0x2a761b(0x125)](_0x2a761b(0x126)),_0xff54b1=_0x34a33d?_0x522072(_0x22d365[_0x2a761b(0x133)],_0x3034b9,{},_0x25ebd6):[],_0x39ac59=_0x10872c({'env':_0x512275,'accessKey':_0x45f7a8,'appCode':_0x22d365['appCode'],'activeSkillCodes':_0x3034b9,'pruneSkillCodes':_0x25ebd6,'scopes':_0x4c018a}),_0x20e62c=[];for(const _0x3f05e3 of _0x335f70){_0x20e62c[_0x2a761b(0x129)](_0x3eae3e(_0x3f05e3,'personal',{'env':_0x512275,'accessKey':_0x45f7a8,'appCode':_0x22d365[_0x2a761b(0x133)],'force':_0x42f0d5,'packageBytes':await downloadSkillPackage(_0x3f05e3,_0x2a761b(0x13f),_0x22d365[_0x2a761b(0x133)],_0x18c0f0)}));}for(const _0x45667e of _0x38aaf1){_0x20e62c[_0x2a761b(0x129)](_0x3eae3e(_0x45667e,_0x2a761b(0x126),{'env':_0x512275,'accessKey':_0x45f7a8,'appCode':_0x22d365[_0x2a761b(0x133)],'force':_0x42f0d5,'packageBytes':await downloadSkillPackage(_0x45667e,_0x2a761b(0x126),_0x22d365[_0x2a761b(0x133)],_0x18c0f0)}));}const _0x5731e3=_0x1292c2(_0x20e62c,_0x22d365[_0x2a761b(0x133)]),_0x55c874=countLinkActions(_0x5731e3);return{'ok':!![],'data':{'appCode':_0x22d365[_0x2a761b(0x133)],'personal':_0x335f70['length'],'company':_0x38aaf1[_0x2a761b(0x13a)],'materialized':_0x20e62c['length'],'links':{'total':_0x5731e3['length'],'created':_0x55c874['created']??0x0,'updated':_0x55c874['updated']??0x0,'unchanged':_0x55c874['unchanged']??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0xff54b1[_0x2a761b(0x13c)](_0x50a6f7=>_0x50a6f7['action']===_0x2a761b(0x142))[_0x2a761b(0x13a)],'cacheDirs':_0x39ac59[_0x2a761b(0x13c)](_0x4e65b3=>_0x4e65b3['action']===_0x2a761b(0x142))[_0x2a761b(0x13a)],'skipped':[..._0xff54b1,..._0x39ac59]['filter'](_0x49c98e=>_0x49c98e[_0x2a761b(0x141)]===_0x2a761b(0x12e))[_0x2a761b(0x13a)]},'skills':{'personal':_0x335f70[_0x2a761b(0x12a)](summarizeRuntimeSkill),'company':_0x38aaf1[_0x2a761b(0x12a)](summarizeRuntimeSkill)}},'message':'Installed\x20'+_0x335f70[_0x2a761b(0x13a)]+'\x20personal\x20and\x20'+_0x38aaf1[_0x2a761b(0x13a)]+'\x20company\x20Skill(s).'};}async function downloadSkillPackage(_0x2dfb75,_0x4afcc0,_0x30a4bb,_0x1c75c8){const _0x256c6f=a43_0x241354,_0x15551d=_0x2dfb75['version']?.[_0x256c6f(0x138)]();return _0x15551d?_0x1c75c8(_0x4afcc0,_0x2dfb75['skillCode'],_0x30a4bb,_0x15551d):_0x1c75c8(_0x4afcc0,_0x2dfb75[_0x256c6f(0x146)],_0x30a4bb);}function countLinkActions(_0x4e0edd){return _0x4e0edd['reduce']((_0x50cd98,_0x352be8)=>{const _0xe52538=a43_0x56f1;return _0x50cd98[_0x352be8[_0xe52538(0x141)]]=(_0x50cd98[_0x352be8[_0xe52538(0x141)]]??0x0)+0x1,_0x50cd98;},{});}function a43_0x56f1(_0x5b0c4e,_0x284d0f){_0x5b0c4e=_0x5b0c4e-0x120;const _0x22d457=a43_0x22d4();let _0x56f1a7=_0x22d457[_0x5b0c4e];return _0x56f1a7;}function a43_0x22d4(){const _0x39f3a1=['includes','company','52cohzYH','204666GFwZhA','push','map','16yHssEP','62379gpFNRa','skill','skipped','bool','28fvGsDz','7019230wiNDbs','authRequired','appCode','install','25836723fszkjS','../../../skills/runtime-skill-sync.js','671464xZTPDv','trim','scope','length','write','filter','130zECHvL','3201402QUmZcZ','personal','Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','action','removed','3035HqDFEl','production','code','skillCode','all','flatMap','str','../../../core/api-client.js','force'];a43_0x22d4=function(){return _0x39f3a1;};return a43_0x22d4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a44_0x4654ce=a44_0x149f;(function(_0x124ca3,_0x15c66d){const _0x2ce63d=a44_0x149f,_0x209189=_0x124ca3();while(!![]){try{const _0x3473f9=-parseInt(_0x2ce63d(0x1a6))/0x1*(-parseInt(_0x2ce63d(0x1ac))/0x2)+parseInt(_0x2ce63d(0x1c3))/0x3*(-parseInt(_0x2ce63d(0x1c2))/0x4)+-parseInt(_0x2ce63d(0x1c7))/0x5*(parseInt(_0x2ce63d(0x1af))/0x6)+parseInt(_0x2ce63d(0x1b3))/0x7*(parseInt(_0x2ce63d(0x1ba))/0x8)+parseInt(_0x2ce63d(0x1be))/0x9+parseInt(_0x2ce63d(0x1c0))/0xa*(-parseInt(_0x2ce63d(0x1b9))/0xb)+parseInt(_0x2ce63d(0x1b4))/0xc;if(_0x3473f9===_0x15c66d)break;else _0x209189['push'](_0x209189['shift']());}catch(_0x104388){_0x209189['push'](_0x209189['shift']());}}}(a44_0xf102,0x6582f));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';function a44_0x149f(_0x45294e,_0x1e9adf){_0x45294e=_0x45294e-0x1a5;const _0xf102ca=a44_0xf102();let _0x149f41=_0xf102ca[_0x45294e];return _0x149f41;}function a44_0xf102(){const _0x2b440c=['49lshTdI','1039320NqiYKt','remote','authRequired','str','Listed\x20','55715COVElh','187192Unqauc','code','../../../core/api-client.js','personal','5022891JOOvWX','trim','470olzwtC','read','629604uOarvE','3IhTXln','production','company','appCode','9995AZimWx','\x20remote\x20Skill(s).','28291WuNdps','local','builtin','accessKey','filter','length','18tJEAWE','map','../../../skills/runtime-skill-sync.js','756GGtLXE','scope','bool','list'];a44_0xf102=function(){return _0x2b440c;};return a44_0xf102();}export const listCommand={'service':'skill','command':a44_0x4654ce(0x1b2),'description':'List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','risk':a44_0x4654ce(0x1c1),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x3f7d54){const _0x9a4e61=a44_0x4654ce,_0x48a7d9=_0x3f7d54[_0x9a4e61(0x1b7)](_0x9a4e61(0x1bb)),_0x12ad44=normalizeListScope(_0x3f7d54['str'](_0x9a4e61(0x1b0)));if(_0x3f7d54[_0x9a4e61(0x1b1)](_0x9a4e61(0x1a7))){const _0x3dd008=_0x3f7d54[_0x9a4e61(0x1a9)];if(!_0x3dd008)throw CliErrors[_0x9a4e61(0x1b6)]();const {listLocalRuntimeSkills:_0x52dd80}=await import(_0x9a4e61(0x1ae)),_0x3a13ed=_0x52dd80({'env':_0x3f7d54['envName']??_0x9a4e61(0x1c4),'accessKey':_0x3dd008,'appCode':_0x3f7d54['appCode'],'scopes':listScopeToRuntimeScopes(_0x12ad44),'code':_0x48a7d9[_0x9a4e61(0x1bf)]()||undefined}),_0x2f3cc9=groupLocalRuntimeSkills(_0x3a13ed);return{'ok':!![],'data':{'appCode':_0x3f7d54[_0x9a4e61(0x1c6)],'source':_0x9a4e61(0x1a7),'scope':_0x12ad44,'total':_0x3a13ed['length'],'personal':_0x2f3cc9['personal']['length'],'company':_0x2f3cc9[_0x9a4e61(0x1c5)]['length'],'items':_0x3a13ed[_0x9a4e61(0x1ad)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x2f3cc9[_0x9a4e61(0x1bd)][_0x9a4e61(0x1ad)](summarizeLocalRuntimeSkill),'company':_0x2f3cc9[_0x9a4e61(0x1c5)][_0x9a4e61(0x1ad)](summarizeLocalRuntimeSkill)}},'message':_0x9a4e61(0x1b8)+_0x3a13ed[_0x9a4e61(0x1ab)]+'\x20local\x20Skill(s).'};}const {listRuntimeSkills:_0x1f5559}=await import(_0x9a4e61(0x1bc)),_0x4edd89=await _0x1f5559({'appCode':_0x3f7d54['appCode'],'scope':listScopeToRemoteScope(_0x12ad44),'code':_0x48a7d9[_0x9a4e61(0x1bf)]()||undefined}),_0x277bde=shouldListScope(_0x12ad44,'personal')?_0x4edd89[_0x9a4e61(0x1bd)]??[]:[],_0x29f5bd=shouldListScope(_0x12ad44,_0x9a4e61(0x1c5))?_0x4edd89[_0x9a4e61(0x1c5)]??[]:[],_0xfe2001=[..._0x277bde,..._0x29f5bd];return{'ok':!![],'data':{'appCode':_0x3f7d54[_0x9a4e61(0x1c6)],'source':_0x9a4e61(0x1b5),'scope':_0x12ad44,'total':_0xfe2001[_0x9a4e61(0x1ab)],'personal':_0x277bde[_0x9a4e61(0x1ab)],'company':_0x29f5bd[_0x9a4e61(0x1ab)],'items':_0xfe2001[_0x9a4e61(0x1ad)](summarizeRuntimeSkill),'skills':{'personal':_0x277bde[_0x9a4e61(0x1ad)](summarizeRuntimeSkill),'company':_0x29f5bd['map'](summarizeRuntimeSkill)}},'message':'Listed\x20'+_0xfe2001[_0x9a4e61(0x1ab)]+_0x9a4e61(0x1a5)};}};function groupLocalRuntimeSkills(_0x67f936){const _0x59e99f=a44_0x4654ce;return{'personal':_0x67f936[_0x59e99f(0x1aa)](_0x2c3aa3=>_0x2c3aa3[_0x59e99f(0x1b0)]==='personal'),'company':_0x67f936[_0x59e99f(0x1aa)](_0x1becfe=>_0x1becfe[_0x59e99f(0x1b0)]===_0x59e99f(0x1c5)),'builtin':_0x67f936[_0x59e99f(0x1aa)](_0x45e5b6=>_0x45e5b6['scope']===_0x59e99f(0x1a8))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a45_0xc1a8(_0x4d77df,_0x4dfd54){_0x4d77df=_0x4d77df-0xf2;const _0x257c1e=a45_0x257c();let _0xc1a8a4=_0x257c1e[_0x4d77df];return _0xc1a8a4;}const a45_0x14afa6=a45_0xc1a8;(function(_0x56aaf3,_0x3b2094){const _0x336b46=a45_0xc1a8,_0x3976eb=_0x56aaf3();while(!![]){try{const _0x65e6a8=-parseInt(_0x336b46(0xf2))/0x1*(parseInt(_0x336b46(0xfa))/0x2)+parseInt(_0x336b46(0xf4))/0x3+-parseInt(_0x336b46(0xf6))/0x4*(-parseInt(_0x336b46(0xf5))/0x5)+parseInt(_0x336b46(0xf8))/0x6+-parseInt(_0x336b46(0xf3))/0x7*(parseInt(_0x336b46(0xf9))/0x8)+-parseInt(_0x336b46(0xfd))/0x9+parseInt(_0x336b46(0xfc))/0xa;if(_0x65e6a8===_0x3b2094)break;else _0x3976eb['push'](_0x3976eb['shift']());}catch(_0x385eb3){_0x3976eb['push'](_0x3976eb['shift']());}}}(a45_0x257c,0x2cc60));import{CONFIRM_WARNINGS_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';import{skillPushDryRun,skillPushExecute}from'../push-execute.js';function a45_0x257c(){const _0x3407fb=['250848pkjnVu','248dDQeSg','8bFTaRL','write','2729670nAkDhq','3044169JkQLzp','38227bGfsMp','19999QQrkPi','930870YXeMsD','9455sZINTL','292ABUChD','skill'];a45_0x257c=function(){return _0x3407fb;};return a45_0x257c();}export const pushCommand={'service':a45_0x14afa6(0xf7),'command':'push','description':'Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope\x20or\x20submit\x20company\x20scope\x20for\x20review','risk':a45_0x14afa6(0xfb),'flags':[DIR_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x170446,_0x3c061d){const _0x215b90=a46_0x1077,_0x1a5e2f=_0x170446();while(!![]){try{const _0x945b87=-parseInt(_0x215b90(0x1c0))/0x1*(parseInt(_0x215b90(0x1b2))/0x2)+parseInt(_0x215b90(0x1b3))/0x3*(-parseInt(_0x215b90(0x1ba))/0x4)+parseInt(_0x215b90(0x1bf))/0x5*(-parseInt(_0x215b90(0x1c3))/0x6)+parseInt(_0x215b90(0x1bd))/0x7*(parseInt(_0x215b90(0x1b8))/0x8)+-parseInt(_0x215b90(0x1bb))/0x9+-parseInt(_0x215b90(0x1c2))/0xa+parseInt(_0x215b90(0x1c1))/0xb*(parseInt(_0x215b90(0x1be))/0xc);if(_0x945b87===_0x3c061d)break;else _0x1a5e2f['push'](_0x1a5e2f['shift']());}catch(_0x2e1fd8){_0x1a5e2f['push'](_0x1a5e2f['shift']());}}}(a46_0x346c,0xd086b));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';function a46_0x1077(_0x20ad6f,_0x5ceece){_0x20ad6f=_0x20ad6f-0x1b2;const _0x346c46=a46_0x346c();let _0x1077bd=_0x346c46[_0x20ad6f];return _0x1077bd;}export const validateCommand={'service':'skill','command':'validate','description':'Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x56fde6){const _0x470594=a46_0x1077,_0x4ef202=_0x56fde6['bool'](_0x470594(0x1b9)),_0x2524d7=validateSkillDirectory(_0x56fde6[_0x470594(0x1b4)](_0x470594(0x1b7)),{'strict':_0x4ef202});return throwIfSkillValidationFailed(_0x2524d7,_0x4ef202),{'ok':!![],'data':{'dir':_0x2524d7[_0x470594(0x1b7)],'type':_0x2524d7[_0x470594(0x1b6)],'errors':_0x2524d7[_0x470594(0x1bc)],'warnings':_0x2524d7[_0x470594(0x1b5)]},'message':'Skill\x20validation\x20passed.'};}};function a46_0x346c(){const _0x54aad7=['12355waeLRG','17iCuGch','110tHiYkH','13281190gQnsJU','2562IcqAfv','178096JchwJv','3693PzTklu','str','warnings','type','dir','32LbzeNM','strict','4660IvLaEJ','6772860sLochq','errors','1004255acyFde','7636764fzBkrA'];a46_0x346c=function(){return _0x54aad7;};return a46_0x346c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a47_0x59fb58=a47_0x3a06;(function(_0x13fc81,_0x459b31){const _0x7a1d90=a47_0x3a06,_0x1b2b8d=_0x13fc81();while(!![]){try{const _0x575dce=-parseInt(_0x7a1d90(0x1f1))/0x1+parseInt(_0x7a1d90(0x1ff))/0x2*(parseInt(_0x7a1d90(0x20c))/0x3)+-parseInt(_0x7a1d90(0x203))/0x4*(-parseInt(_0x7a1d90(0x210))/0x5)+parseInt(_0x7a1d90(0x1fd))/0x6+-parseInt(_0x7a1d90(0x1f4))/0x7+-parseInt(_0x7a1d90(0x1f6))/0x8*(-parseInt(_0x7a1d90(0x1f9))/0x9)+-parseInt(_0x7a1d90(0x206))/0xa*(-parseInt(_0x7a1d90(0x201))/0xb);if(_0x575dce===_0x459b31)break;else _0x1b2b8d['push'](_0x1b2b8d['shift']());}catch(_0x4b0436){_0x1b2b8d['push'](_0x1b2b8d['shift']());}}}(a47_0x4714,0xc6f20));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':'code','type':a47_0x59fb58(0x202),'description':a47_0x59fb58(0x1f0)};export const SCOPE_FLAG={'name':a47_0x59fb58(0x205),'type':'string','description':a47_0x59fb58(0x209),'enum':['all',a47_0x59fb58(0x20f),a47_0x59fb58(0x1fc)]};export const PUSH_SCOPE_FLAG={'name':a47_0x59fb58(0x205),'type':a47_0x59fb58(0x202),'description':'Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','default':a47_0x59fb58(0x20f),'enum':[a47_0x59fb58(0x20f),'company']};function a47_0x3a06(_0x55b439,_0x37f1db){_0x55b439=_0x55b439-0x1ef;const _0x471474=a47_0x4714();let _0x3a06e8=_0x471474[_0x55b439];return _0x3a06e8;}export const LIST_SCOPE_FLAG={'name':'scope','type':'string','description':a47_0x59fb58(0x20b),'enum':['all',a47_0x59fb58(0x20f),a47_0x59fb58(0x1fc)]};function a47_0x4714(){const _0x23130f=['Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','company','6956838Otadbf','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','186xrNDgX','name','22sBappC','string','832pPfyzk','force','scope','1457570QSgZFp','target','boolean','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','23577ZWogYK','dir','local','personal','20205owHJJo','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','1174503QXmfRf','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','Skill\x20template\x20type','10835818undtBS','strict','117704RorIno','write','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','315UINkzG','type'];a47_0x4714=function(){return _0x23130f;};return a47_0x4714();}export const LOCAL_FLAG={'name':a47_0x59fb58(0x20e),'type':a47_0x59fb58(0x208),'description':a47_0x59fb58(0x1fb)};export const DIR_FLAG={'name':a47_0x59fb58(0x20d),'type':a47_0x59fb58(0x202),'required':!![],'description':'Local\x20Skill\x20directory\x20containing\x20SKILL.md'};export const CREATE_NAME_FLAG={'name':a47_0x59fb58(0x200),'type':a47_0x59fb58(0x202),'required':!![],'description':a47_0x59fb58(0x1fe),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a47_0x59fb58(0x1f2)}};export const TYPE_FLAG={'name':a47_0x59fb58(0x1fa),'type':'string','description':a47_0x59fb58(0x1f3),'default':a47_0x59fb58(0x1f7),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a47_0x59fb58(0x207),'type':a47_0x59fb58(0x202),'description':a47_0x59fb58(0x1f8),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a47_0x59fb58(0x204),'type':a47_0x59fb58(0x208),'description':'Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists'};export const CONFIRM_WARNINGS_FLAG={'name':'confirm-warnings','type':a47_0x59fb58(0x208),'description':a47_0x59fb58(0x1ef)};export const STRICT_FLAG={'name':a47_0x59fb58(0x1f5),'type':a47_0x59fb58(0x208),'description':a47_0x59fb58(0x20a)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1743b4,_0x1a66cf){const _0x3e198c=a48_0x55f1,_0x59b01b=_0x1743b4();while(!![]){try{const _0x4b41aa=parseInt(_0x3e198c(0x1da))/0x1*(parseInt(_0x3e198c(0x1d4))/0x2)+parseInt(_0x3e198c(0x1db))/0x3+parseInt(_0x3e198c(0x1d5))/0x4+-parseInt(_0x3e198c(0x1dc))/0x5*(-parseInt(_0x3e198c(0x1d8))/0x6)+-parseInt(_0x3e198c(0x1d2))/0x7*(-parseInt(_0x3e198c(0x1d9))/0x8)+-parseInt(_0x3e198c(0x1d7))/0x9+-parseInt(_0x3e198c(0x1d3))/0xa*(parseInt(_0x3e198c(0x1d6))/0xb);if(_0x4b41aa===_0x1a66cf)break;else _0x59b01b['push'](_0x59b01b['shift']());}catch(_0x5aa64d){_0x59b01b['push'](_0x59b01b['shift']());}}}(a48_0x19e3,0xc0bd4));function a48_0x19e3(){const _0x59f0f3=['354LpBmtH','6082312mThRCk','60774ktnNpo','1783560TTIVZM','126755BTlLQQ','7LdVZZE','430fjZmdA','2JohpEp','5126688yloRCO','597641epthCc','9605439mlaJOM'];a48_0x19e3=function(){return _0x59f0f3;};return a48_0x19e3();}import{createCommand}from'./commands/create.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';function a48_0x55f1(_0x6ec83a,_0x466ecc){_0x6ec83a=_0x6ec83a-0x1d2;const _0x19e3d9=a48_0x19e3();let _0x55f178=_0x19e3d9[_0x6ec83a];return _0x55f178;}export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a49_0x54b6(){var _0x422349=['3sJQRpr','1654270tkwSCA','6716vAsOIW','73171grnQaL','134144GHTjYS','66YHgSsS','3155yjteMW','string','2441799xbnCsw','files','isArray','ossPath','path','2268528YupbQY','800344sFYKSx','object'];a49_0x54b6=function(){return _0x422349;};return a49_0x54b6();}(function(_0x204e89,_0x27975a){var _0x185917=a49_0x37b2,_0x27186b=_0x204e89();while(!![]){try{var _0x424875=-parseInt(_0x185917(0xb2))/0x1+parseInt(_0x185917(0xbc))/0x2*(-parseInt(_0x185917(0xbe))/0x3)+parseInt(_0x185917(0xb0))/0x4*(parseInt(_0x185917(0xb4))/0x5)+-parseInt(_0x185917(0xb3))/0x6*(parseInt(_0x185917(0xb1))/0x7)+-parseInt(_0x185917(0xbb))/0x8+parseInt(_0x185917(0xb6))/0x9+parseInt(_0x185917(0xaf))/0xa;if(_0x424875===_0x27975a)break;else _0x27186b['push'](_0x27186b['shift']());}catch(_0x1925e9){_0x27186b['push'](_0x27186b['shift']());}}}(a49_0x54b6,0x8987a));export function isPackageBackedManifest(_0x3458ba){var _0xbc00e6=a49_0x37b2;return!!_0x3458ba&&typeof _0x3458ba===_0xbc00e6(0xbd)&&!Array['isArray'](_0x3458ba)&&typeof _0x3458ba[_0xbc00e6(0xb9)]===_0xbc00e6(0xb5)&&_0x3458ba[_0xbc00e6(0xb9)]['length']>0x0&&Array[_0xbc00e6(0xb8)](_0x3458ba['files']);}function a49_0x37b2(_0x525e6c,_0x4a8a01){_0x525e6c=_0x525e6c-0xaf;var _0x54b66b=a49_0x54b6();var _0x37b282=_0x54b66b[_0x525e6c];return _0x37b282;}export function isMultiFileManifest(_0x5f165c){var _0x41ce62=a49_0x37b2;return!!_0x5f165c&&typeof _0x5f165c===_0x41ce62(0xbd)&&!Array['isArray'](_0x5f165c)&&Array['isArray'](_0x5f165c[_0x41ce62(0xb7)])&&_0x5f165c[_0x41ce62(0xb7)]['some'](_0x10415f=>_0x10415f[_0x41ce62(0xba)]!=='SKILL.md');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1220f8,_0x6bd2cb){const _0x7c68=a50_0x5354,_0x7a8ff=_0x1220f8();while(!![]){try{const _0x316635=parseInt(_0x7c68(0x140))/0x1*(parseInt(_0x7c68(0x127))/0x2)+parseInt(_0x7c68(0x132))/0x3+parseInt(_0x7c68(0x131))/0x4*(-parseInt(_0x7c68(0x151))/0x5)+-parseInt(_0x7c68(0x12a))/0x6*(parseInt(_0x7c68(0x121))/0x7)+parseInt(_0x7c68(0x12e))/0x8*(parseInt(_0x7c68(0x129))/0x9)+-parseInt(_0x7c68(0x14c))/0xa+-parseInt(_0x7c68(0x123))/0xb*(-parseInt(_0x7c68(0x137))/0xc);if(_0x316635===_0x6bd2cb)break;else _0x7a8ff['push'](_0x7a8ff['shift']());}catch(_0x452510){_0x7a8ff['push'](_0x7a8ff['shift']());}}}(a50_0x566c,0xb8b10));function a50_0x5354(_0x5f0253,_0xd75e06){_0x5f0253=_0x5f0253-0x121;const _0x566c50=a50_0x566c();let _0x53547a=_0x566c50[_0x5f0253];return _0x53547a;}function a50_0x566c(){const _0x4c7565=['personal','dir','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','appCode','10140210pagDcy','/api/cli/v1/skills/','PRIVATE','input','../../core/api-client.js','3524935jaOOEk','/publish/validate','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','validation','\x20for\x20review','\x20has\x20scope=\x22','unknown','files','submitted','status','authRequired','valid','\x20Skill\x20','601328DFBvOo','company','77nElvjZ','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','Company','resolvedSlug','2KUyPOY','version','19449PPcmad','42fcynhE','(unknown)','resolvedVersion','Submitted\x20company\x20Skill\x20','1936OXytZF','metadata','\x20version\x20','4TEKOmo','1080879KuaSME','errors','str','NAMESPACE_ONLY','payload','3083568sItsCE','bool','identical','remoteForPreflight','scope','Personal','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','savedSkill','publishInput','394829EuEgRF','skillCode','../../skills/runtime-skill-sync.js','Created\x20personal\x20Skill\x20','warnings','trim','accessKey','frontmatterDisplayName'];a50_0x566c=function(){return _0x4c7565;};return a50_0x566c();}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(_0x58a6e7){const _0x145beb=a50_0x5354,{getRuntimeSkillByCode:_0x17a0c3,validateRuntimeSkillPublish:_0x5d52fb}=await import(_0x145beb(0x150)),{readPushDirectory:_0x5304db,resolvePushDirectoryIdentity:_0x3690f6}=await import(_0x145beb(0x142));if(!_0x58a6e7[_0x145beb(0x146)])throw CliErrors['authRequired']();const _0x170214=resolvePushScope(_0x58a6e7),_0x24e5ec=validateSkillDirectory(_0x58a6e7[_0x145beb(0x134)](_0x145beb(0x149)));throwIfSkillValidationFailed(_0x24e5ec);const _0x40bf0c=_0x3690f6(_0x24e5ec['dir'],_0x58a6e7[_0x145beb(0x14b)],remoteFirstMetadataOptions()),_0x51de58=await _0x17a0c3(_0x58a6e7['appCode'],_0x40bf0c[_0x145beb(0x141)]);throwIfBuiltinPushTarget(_0x51de58);if(_0x170214==='company'){const _0x13c984=_0x5304db(_0x24e5ec[_0x145beb(0x149)],_0x58a6e7['appCode'],remoteMissingCompanyReadOptions()),_0xa6f3=await _0x5d52fb(_0x58a6e7[_0x145beb(0x14b)],_0x13c984['input'],{'visibility':_0x145beb(0x135)});return{'method':'POST','url':_0x145beb(0x14d)+_0x58a6e7[_0x145beb(0x14b)]+_0x145beb(0x152),'body':{'skillCode':_0x13c984[_0x145beb(0x141)],'visibility':'NAMESPACE_ONLY','valid':_0xa6f3[_0x145beb(0x15c)],'errors':_0xa6f3[_0x145beb(0x133)],'warnings':_0xa6f3['warnings'],'resolvedSlug':_0xa6f3[_0x145beb(0x126)],'resolvedVersion':_0xa6f3[_0x145beb(0x12c)]},'description':_0x145beb(0x124)};}if(_0x51de58&&_0x51de58[_0x145beb(0x13b)]!=='personal')throw CliErrors[_0x145beb(0x154)](_0x145beb(0x153)+_0x40bf0c[_0x145beb(0x141)]+_0x145beb(0x156)+(_0x51de58['scope']??_0x145beb(0x157))+'\x22.');const _0xe8c7c4=_0x5304db(_0x24e5ec[_0x145beb(0x149)],_0x58a6e7['appCode'],_0x51de58?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions()),_0x5b281a=await _0x5d52fb(_0x58a6e7['appCode'],_0xe8c7c4['input'],{'visibility':'PRIVATE'});return{'method':'POST','url':_0x145beb(0x14d)+_0x58a6e7[_0x145beb(0x14b)]+_0x145beb(0x152),'body':{'skillCode':_0xe8c7c4[_0x145beb(0x141)],'visibility':_0x145beb(0x14e),'valid':_0x5b281a[_0x145beb(0x15c)],'errors':_0x5b281a[_0x145beb(0x133)],'warnings':_0x5b281a[_0x145beb(0x144)],'resolvedSlug':_0x5b281a[_0x145beb(0x126)],'resolvedVersion':_0x5b281a['resolvedVersion']},'description':_0x145beb(0x13d)};}export async function skillPushExecute(_0x42f91b){const _0x4712a5=a50_0x5354,{createPersonalRuntimeSkill:_0x41490c,downloadRuntimeSkillPackage:_0x105b7f,getRuntimeSkillByCode:_0x39206a,publishCompanyRuntimeSkill:_0x1c11cc,updatePersonalRuntimeSkill:_0x8b3813,validateRuntimeSkillPublish:_0x5169e3}=await import(_0x4712a5(0x150)),{verifyRuntimeSkillPackage:_0x23a2ef,verifyRuntimeSkillBundle:_0x4c8f77,readPushDirectory:_0x2669c5,refreshPushDirectoryMetadataFromRemote:_0x121fbc,recordPushedRuntimeSkill:_0x5941f1,resolvePushDirectoryIdentity:_0x329916}=await import('../../skills/runtime-skill-sync.js');if(!_0x42f91b[_0x4712a5(0x146)])throw CliErrors[_0x4712a5(0x15b)]();const _0x45a377=resolvePushScope(_0x42f91b),_0x16e60a=_0x42f91b[_0x4712a5(0x138)]('confirm-warnings')||_0x42f91b[_0x4712a5(0x138)]('confirmWarnings'),_0x2af204=validateSkillDirectory(_0x42f91b[_0x4712a5(0x134)](_0x4712a5(0x149)));throwIfSkillValidationFailed(_0x2af204);const _0x4b3cb5=_0x2af204['dir'];let _0x2f16f0;if(_0x45a377===_0x4712a5(0x122)){const _0x153ed4=_0x329916(_0x4b3cb5,_0x42f91b[_0x4712a5(0x14b)],remoteFirstMetadataOptions()),_0x3bffbd=await _0x39206a(_0x42f91b['appCode'],_0x153ed4[_0x4712a5(0x141)]);throwIfBuiltinPushTarget(_0x3bffbd);if(_0x3bffbd)_0x121fbc(_0x4b3cb5,_0x3bffbd,_0x42f91b[_0x4712a5(0x14b)]);const _0xcb3aa3=_0x2669c5(_0x4b3cb5,_0x42f91b['appCode'],_0x3bffbd?{'targetScope':_0x4712a5(0x122),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0x2f16f0={'scope':_0x4712a5(0x122),'payload':_0xcb3aa3,'publishInput':_0xcb3aa3['input'],'remoteForPreflight':_0x3bffbd,'warnings':[]};}else{const _0x3d08ac=_0x42f91b[_0x4712a5(0x134)]('appcode')[_0x4712a5(0x145)](),_0x177218=Boolean(_0x3d08ac),_0x53daf2=allowRetargetArgs(_0x177218),_0x2a5122=_0x329916(_0x4b3cb5,_0x42f91b[_0x4712a5(0x14b)],{...remoteFirstMetadataOptions(),..._0x53daf2[0x0]}),_0x411c8f=await _0x39206a(_0x42f91b[_0x4712a5(0x14b)],_0x2a5122['skillCode']);throwIfBuiltinPushTarget(_0x411c8f);if(_0x411c8f){if(_0x411c8f[_0x4712a5(0x13b)]!==_0x4712a5(0x148)){if(_0x177218)throw CliErrors[_0x4712a5(0x154)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x2a5122[_0x4712a5(0x141)]+_0x4712a5(0x156)+(_0x411c8f[_0x4712a5(0x13b)]??_0x4712a5(0x157))+'\x22.');_0x121fbc(_0x4b3cb5,_0x411c8f,_0x42f91b['appCode']);}else!_0x177218&&_0x121fbc(_0x4b3cb5,_0x411c8f,_0x42f91b[_0x4712a5(0x14b)]);}const _0x589c60=_0x2669c5(_0x4b3cb5,_0x42f91b[_0x4712a5(0x14b)],_0x411c8f?remotePersonalReadOptions(_0x177218,_0x53daf2[0x0]):remoteMissingPersonalReadOptions(_0x53daf2[0x0])),_0x386b04=_0x411c8f?.['scope']==='personal'&&_0x411c8f[_0x4712a5(0x141)]===_0x589c60['skillCode']?_0x411c8f:undefined,_0x13dd82=_0x177218&&_0x386b04?withRetargetExistingMetadata(_0x589c60[_0x4712a5(0x14f)],_0x386b04,{'preferInputSkillName':Boolean(_0x589c60[_0x4712a5(0x147)])}):_0x589c60[_0x4712a5(0x14f)],_0x46d4d0=_0x177218?buildRetargetWarning(_0x2a5122[_0x4712a5(0x12f)],_0x42f91b[_0x4712a5(0x14b)]):[];_0x2f16f0={'scope':_0x4712a5(0x148),'payload':_0x589c60,'publishInput':_0x13dd82,'remoteForPreflight':_0x386b04,'existing':_0x386b04,'warnings':[..._0x2af204[_0x4712a5(0x144)],..._0x46d4d0]};}const _0x4dc5f1=await runRemoteContentPreflight({'scope':_0x2f16f0[_0x4712a5(0x13b)],'remote':_0x2f16f0[_0x4712a5(0x13a)],'publishInput':_0x2f16f0[_0x4712a5(0x13f)],'skillCode':_0x2f16f0[_0x4712a5(0x136)][_0x4712a5(0x141)],'appCode':_0x42f91b[_0x4712a5(0x14b)],'downloadRuntimeSkillPackage':_0x105b7f,'verifyRuntimeSkillBundle':_0x4c8f77});if(_0x4dc5f1[_0x4712a5(0x15a)]===_0x4712a5(0x139))return _0x2f16f0['scope']===_0x4712a5(0x122)?_0x5941f1(_0x4b3cb5,_0x4dc5f1['savedSkill'],_0x42f91b[_0x4712a5(0x14b)],{'scope':_0x4712a5(0x122)}):_0x5941f1(_0x4b3cb5,_0x4dc5f1[_0x4712a5(0x13e)],_0x42f91b['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x4dc5f1[_0x4712a5(0x13e)]),'scope':_0x2f16f0[_0x4712a5(0x13b)],..._0x2f16f0[_0x4712a5(0x13b)]===_0x4712a5(0x148)?{'warnings':_0x2f16f0[_0x4712a5(0x144)]}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0x2f16f0[_0x4712a5(0x13b)])+_0x4712a5(0x15d)+_0x2f16f0[_0x4712a5(0x136)][_0x4712a5(0x141)]+_0x4712a5(0x14a)};if(_0x2f16f0['scope']===_0x4712a5(0x122)){const _0x5ed577=await _0x5169e3(_0x42f91b[_0x4712a5(0x14b)],_0x2f16f0['publishInput'],{'visibility':_0x4712a5(0x135)});throwIfPublishValidationFailed(_0x4712a5(0x122),_0x2f16f0[_0x4712a5(0x136)][_0x4712a5(0x141)],_0x5ed577),throwIfUnconfirmedPublishWarnings(_0x4712a5(0x122),_0x2f16f0[_0x4712a5(0x136)][_0x4712a5(0x141)],_0x5ed577[_0x4712a5(0x144)],_0x16e60a);const _0x24e7de=await _0x1c11cc(_0x42f91b[_0x4712a5(0x14b)],_0x2f16f0[_0x4712a5(0x13f)],{'confirmWarnings':_0x16e60a});return _0x5941f1(_0x4b3cb5,{..._0x24e7de,'files':_0x2f16f0[_0x4712a5(0x13f)]['files']},_0x42f91b[_0x4712a5(0x14b)],{'scope':_0x4712a5(0x122)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x24e7de),'scope':_0x4712a5(0x122),'reviewState':_0x4712a5(0x159),'submittedForReview':!![],'validation':{'warnings':_0x5ed577[_0x4712a5(0x144)]}},'message':_0x4712a5(0x12d)+_0x2f16f0['payload']['skillCode']+_0x4712a5(0x130)+(_0x24e7de[_0x4712a5(0x128)]??_0x4712a5(0x12b))+_0x4712a5(0x155)};}const _0x4b3456=await _0x5169e3(_0x42f91b[_0x4712a5(0x14b)],_0x2f16f0[_0x4712a5(0x13f)],{'visibility':_0x4712a5(0x14e)});throwIfPublishValidationFailed(_0x4712a5(0x148),_0x2f16f0['payload'][_0x4712a5(0x141)],_0x4b3456),throwIfUnconfirmedPublishWarnings('personal',_0x2f16f0[_0x4712a5(0x136)][_0x4712a5(0x141)],_0x4b3456['warnings'],_0x16e60a);const _0x4ba68b={'confirmWarnings':_0x16e60a},_0x16d691=_0x2f16f0['existing']?await _0x8b3813(_0x2f16f0[_0x4712a5(0x136)]['skillCode'],_0x42f91b[_0x4712a5(0x14b)],_0x2f16f0[_0x4712a5(0x13f)],_0x4ba68b):await _0x41490c(_0x42f91b[_0x4712a5(0x14b)],_0x2f16f0[_0x4712a5(0x13f)],_0x4ba68b);let _0x471d2d=_0x16d691;if(isMultiFileManifest(_0x2f16f0[_0x4712a5(0x13f)]['files'])){const _0x28e642=await _0x105b7f(_0x4712a5(0x148),_0x16d691[_0x4712a5(0x141)]||_0x2f16f0[_0x4712a5(0x136)][_0x4712a5(0x141)],_0x42f91b['appCode']);_0x4c8f77(_0x2f16f0[_0x4712a5(0x13f)][_0x4712a5(0x158)],_0x28e642),_0x471d2d={..._0x16d691,'files':_0x2f16f0[_0x4712a5(0x13f)][_0x4712a5(0x158)]};}else{if(isPackageBackedManifest(_0x16d691[_0x4712a5(0x158)])){const _0x4abaef=await _0x105b7f('personal',_0x16d691[_0x4712a5(0x141)]||_0x2f16f0[_0x4712a5(0x136)]['skillCode'],_0x42f91b[_0x4712a5(0x14b)]);_0x23a2ef(_0x16d691['files'],_0x4abaef);}}return _0x5941f1(_0x4b3cb5,_0x471d2d,_0x42f91b['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x16d691),'warnings':_0x2f16f0[_0x4712a5(0x144)],'validation':{'warnings':_0x4b3456[_0x4712a5(0x144)]}},'message':_0x2f16f0['existing']?'Updated\x20personal\x20Skill\x20'+_0x2f16f0[_0x4712a5(0x136)]['skillCode']:_0x4712a5(0x143)+_0x2f16f0[_0x4712a5(0x136)]['skillCode']};}function scopeLabel(_0x4cfca3){const _0x3180e2=a50_0x5354;return _0x4cfca3===_0x3180e2(0x122)?_0x3180e2(0x125):_0x3180e2(0x13c);}
|
|
1
|
+
(function(_0x1266c2,_0x5ea555){const _0x546085=a50_0x97fd,_0xd0510c=_0x1266c2();while(!![]){try{const _0x841768=parseInt(_0x546085(0x164))/0x1+parseInt(_0x546085(0x162))/0x2*(-parseInt(_0x546085(0x168))/0x3)+parseInt(_0x546085(0x13e))/0x4*(parseInt(_0x546085(0x150))/0x5)+-parseInt(_0x546085(0x139))/0x6*(parseInt(_0x546085(0x14f))/0x7)+parseInt(_0x546085(0x155))/0x8+-parseInt(_0x546085(0x170))/0x9*(parseInt(_0x546085(0x16f))/0xa)+-parseInt(_0x546085(0x171))/0xb*(-parseInt(_0x546085(0x15a))/0xc);if(_0x841768===_0x5ea555)break;else _0xd0510c['push'](_0xd0510c['shift']());}catch(_0x57e2f0){_0xd0510c['push'](_0xd0510c['shift']());}}}(a50_0x457e,0xec5dc));function a50_0x97fd(_0x35e2ec,_0x27ec19){_0x35e2ec=_0x35e2ec-0x134;const _0x457e29=a50_0x457e();let _0x97fd88=_0x457e29[_0x35e2ec];return _0x97fd88;}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';function a50_0x457e(){const _0x4b8185=['(unknown)','scope','valid','appCode','5126556MDwSbu','str','input','unknown','dir','\x20for\x20review','/api/cli/v1/skills/','personal','2kqMRWl','existing','611067PdeKVH','PRIVATE','Submitted\x20company\x20Skill\x20','Personal','2173398KqoPYi','\x20has\x20scope=\x22','remoteForPreflight','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','company','skillCode','warnings','1560LzAllr','85014HlidVk','11BEemsf','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','frontmatterDisplayName','status','trim','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','payload','6xoqgtN','resolvedVersion','files','POST','metadata','652uRnhFs','validation','identical','submitted','errors','\x20version\x20','\x20Skill\x20','Company','version','/publish/validate','bool','../../skills/runtime-skill-sync.js','appcode','Updated\x20personal\x20Skill\x20','../../core/api-client.js','publishInput','savedSkill','2279998OOGXlr','37555aknJsU','NAMESPACE_ONLY','accessKey','authRequired','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','9834712IlYDBX'];a50_0x457e=function(){return _0x4b8185;};return a50_0x457e();}import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x2884b8){const _0x514abc=a50_0x97fd,{getRuntimeSkillByCode:_0x18499f,validateRuntimeSkillPublish:_0x5e2734}=await import(_0x514abc(0x14c)),{readPushDirectory:_0x43634e,resolvePushDirectoryIdentity:_0x3937f8}=await import('../../skills/runtime-skill-sync.js');if(!_0x2884b8[_0x514abc(0x152)])throw CliErrors[_0x514abc(0x153)]();const _0x2f7ebf=resolvePushScope(_0x2884b8),_0x53088e=validateSkillDirectory(_0x2884b8[_0x514abc(0x15b)](_0x514abc(0x15e)));throwIfSkillValidationFailed(_0x53088e);const _0x30f75d=_0x3937f8(_0x53088e[_0x514abc(0x15e)],_0x2884b8[_0x514abc(0x159)],remoteFirstMetadataOptions()),_0x3aaea4=await _0x18499f(_0x2884b8[_0x514abc(0x159)],_0x30f75d[_0x514abc(0x16d)]);throwIfBuiltinPushTarget(_0x3aaea4);if(_0x2f7ebf===_0x514abc(0x16c)){const _0x56f05a=_0x43634e(_0x53088e[_0x514abc(0x15e)],_0x2884b8['appCode'],remoteMissingCompanyReadOptions()),_0x4ed88a=await _0x5e2734(_0x2884b8[_0x514abc(0x159)],_0x56f05a[_0x514abc(0x15c)],{'visibility':_0x514abc(0x151)});return{'method':_0x514abc(0x13c),'url':_0x514abc(0x160)+_0x2884b8[_0x514abc(0x159)]+_0x514abc(0x147),'body':{'skillCode':_0x56f05a[_0x514abc(0x16d)],'visibility':'NAMESPACE_ONLY','valid':_0x4ed88a[_0x514abc(0x158)],'errors':_0x4ed88a[_0x514abc(0x142)],'warnings':_0x4ed88a[_0x514abc(0x16e)],'resolvedSlug':_0x4ed88a['resolvedSlug'],'resolvedVersion':_0x4ed88a[_0x514abc(0x13a)]},'description':_0x514abc(0x137)};}if(_0x3aaea4&&_0x3aaea4[_0x514abc(0x157)]!==_0x514abc(0x161))throw CliErrors[_0x514abc(0x13f)](_0x514abc(0x16b)+_0x30f75d[_0x514abc(0x16d)]+_0x514abc(0x169)+(_0x3aaea4['scope']??_0x514abc(0x15d))+'\x22.');const _0x365a18=_0x43634e(_0x53088e[_0x514abc(0x15e)],_0x2884b8[_0x514abc(0x159)],_0x3aaea4?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions()),_0x1ed825=await _0x5e2734(_0x2884b8[_0x514abc(0x159)],_0x365a18['input'],{'visibility':_0x514abc(0x165)});return{'method':_0x514abc(0x13c),'url':_0x514abc(0x160)+_0x2884b8[_0x514abc(0x159)]+_0x514abc(0x147),'body':{'skillCode':_0x365a18[_0x514abc(0x16d)],'visibility':_0x514abc(0x165),'valid':_0x1ed825['valid'],'errors':_0x1ed825['errors'],'warnings':_0x1ed825[_0x514abc(0x16e)],'resolvedSlug':_0x1ed825['resolvedSlug'],'resolvedVersion':_0x1ed825[_0x514abc(0x13a)]},'description':_0x514abc(0x154)};}export async function skillPushExecute(_0x45ced5){const _0x58fecd=a50_0x97fd,{createPersonalRuntimeSkill:_0x23978a,downloadRuntimeSkillPackage:_0x2c3e28,getRuntimeSkillByCode:_0x1e0445,publishCompanyRuntimeSkill:_0x5a8b6c,updatePersonalRuntimeSkill:_0x47c71b,validateRuntimeSkillPublish:_0x281028}=await import(_0x58fecd(0x14c)),{verifyRuntimeSkillPackage:_0x35f08a,verifyRuntimeSkillBundle:_0x5da668,readPushDirectory:_0x3276c1,refreshPushDirectoryMetadataFromRemote:_0x427dbd,recordPushedRuntimeSkill:_0x310013,resolvePushDirectoryIdentity:_0x40e105}=await import(_0x58fecd(0x149));if(!_0x45ced5[_0x58fecd(0x152)])throw CliErrors['authRequired']();const _0x410ce6=resolvePushScope(_0x45ced5),_0xd15819=_0x45ced5['bool']('confirm-warnings')||_0x45ced5[_0x58fecd(0x148)]('confirmWarnings'),_0x197080=validateSkillDirectory(_0x45ced5['str'](_0x58fecd(0x15e)));throwIfSkillValidationFailed(_0x197080);const _0x22fe81=_0x197080[_0x58fecd(0x15e)];let _0x57db58;if(_0x410ce6===_0x58fecd(0x16c)){const _0x113eea=_0x40e105(_0x22fe81,_0x45ced5[_0x58fecd(0x159)],remoteFirstMetadataOptions()),_0x44b96c=await _0x1e0445(_0x45ced5[_0x58fecd(0x159)],_0x113eea[_0x58fecd(0x16d)]);throwIfBuiltinPushTarget(_0x44b96c);if(_0x44b96c)_0x427dbd(_0x22fe81,_0x44b96c,_0x45ced5[_0x58fecd(0x159)]);const _0x2dc463=_0x3276c1(_0x22fe81,_0x45ced5[_0x58fecd(0x159)],_0x44b96c?{'targetScope':_0x58fecd(0x16c),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0x57db58={'scope':_0x58fecd(0x16c),'payload':_0x2dc463,'publishInput':_0x2dc463['input'],'remoteForPreflight':_0x44b96c,'warnings':[]};}else{const _0x55272e=_0x45ced5[_0x58fecd(0x15b)](_0x58fecd(0x14a))[_0x58fecd(0x136)](),_0x3060c3=Boolean(_0x55272e),_0x3b7619=allowRetargetArgs(_0x3060c3),_0x1d60bc=_0x40e105(_0x22fe81,_0x45ced5[_0x58fecd(0x159)],{...remoteFirstMetadataOptions(),..._0x3b7619[0x0]}),_0x3f0dda=await _0x1e0445(_0x45ced5['appCode'],_0x1d60bc[_0x58fecd(0x16d)]);throwIfBuiltinPushTarget(_0x3f0dda);if(_0x3f0dda){if(_0x3f0dda[_0x58fecd(0x157)]!==_0x58fecd(0x161)){if(_0x3060c3)throw CliErrors['validation'](_0x58fecd(0x16b)+_0x1d60bc[_0x58fecd(0x16d)]+'\x20has\x20scope=\x22'+(_0x3f0dda[_0x58fecd(0x157)]??'unknown')+'\x22.');_0x427dbd(_0x22fe81,_0x3f0dda,_0x45ced5[_0x58fecd(0x159)]);}else!_0x3060c3&&_0x427dbd(_0x22fe81,_0x3f0dda,_0x45ced5[_0x58fecd(0x159)]);}const _0x3f95bf=_0x3276c1(_0x22fe81,_0x45ced5[_0x58fecd(0x159)],_0x3f0dda?remotePersonalReadOptions(_0x3060c3,_0x3b7619[0x0]):remoteMissingPersonalReadOptions(_0x3b7619[0x0])),_0x201811=_0x3f0dda?.[_0x58fecd(0x157)]===_0x58fecd(0x161)&&_0x3f0dda['skillCode']===_0x3f95bf['skillCode']?_0x3f0dda:undefined,_0x35750c=_0x3060c3&&_0x201811?withRetargetExistingMetadata(_0x3f95bf[_0x58fecd(0x15c)],_0x201811,{'preferInputSkillName':Boolean(_0x3f95bf[_0x58fecd(0x134)])}):_0x3f95bf['input'],_0x59a0ad=_0x3060c3?buildRetargetWarning(_0x1d60bc[_0x58fecd(0x13d)],_0x45ced5[_0x58fecd(0x159)]):[];_0x57db58={'scope':_0x58fecd(0x161),'payload':_0x3f95bf,'publishInput':_0x35750c,'remoteForPreflight':_0x201811,'existing':_0x201811,'warnings':[..._0x197080['warnings'],..._0x59a0ad]};}const _0x59609a=await runRemoteContentPreflight({'scope':_0x57db58['scope'],'remote':_0x57db58[_0x58fecd(0x16a)],'publishInput':_0x57db58[_0x58fecd(0x14d)],'skillCode':_0x57db58[_0x58fecd(0x138)][_0x58fecd(0x16d)],'appCode':_0x45ced5[_0x58fecd(0x159)],'downloadRuntimeSkillPackage':_0x2c3e28,'verifyRuntimeSkillBundle':_0x5da668});if(_0x59609a[_0x58fecd(0x135)]===_0x58fecd(0x140))return _0x57db58['scope']==='company'?_0x310013(_0x22fe81,_0x59609a[_0x58fecd(0x14e)],_0x45ced5['appCode'],{'scope':_0x58fecd(0x16c)}):_0x310013(_0x22fe81,_0x59609a[_0x58fecd(0x14e)],_0x45ced5[_0x58fecd(0x159)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x59609a[_0x58fecd(0x14e)]),'scope':_0x57db58['scope'],..._0x57db58[_0x58fecd(0x157)]===_0x58fecd(0x161)?{'warnings':_0x57db58['warnings']}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0x57db58[_0x58fecd(0x157)])+_0x58fecd(0x144)+_0x57db58[_0x58fecd(0x138)][_0x58fecd(0x16d)]+_0x58fecd(0x172)};if(_0x57db58[_0x58fecd(0x157)]==='company'){const _0x5c17b9=await _0x281028(_0x45ced5['appCode'],_0x57db58[_0x58fecd(0x14d)],{'visibility':_0x58fecd(0x151)});throwIfPublishValidationFailed('company',_0x57db58[_0x58fecd(0x138)][_0x58fecd(0x16d)],_0x5c17b9),throwIfUnconfirmedPublishWarnings(_0x58fecd(0x16c),_0x57db58['payload'][_0x58fecd(0x16d)],_0x5c17b9[_0x58fecd(0x16e)],_0xd15819);const _0x48bc5b=await _0x5a8b6c(_0x45ced5[_0x58fecd(0x159)],_0x57db58[_0x58fecd(0x14d)],{'confirmWarnings':_0xd15819});return _0x310013(_0x22fe81,{..._0x48bc5b,'files':_0x57db58['publishInput'][_0x58fecd(0x13b)]},_0x45ced5[_0x58fecd(0x159)],{'scope':_0x58fecd(0x16c)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x48bc5b),'scope':_0x58fecd(0x16c),'reviewState':_0x58fecd(0x141),'submittedForReview':!![],'validation':{'warnings':_0x5c17b9[_0x58fecd(0x16e)]}},'message':_0x58fecd(0x166)+_0x57db58[_0x58fecd(0x138)][_0x58fecd(0x16d)]+_0x58fecd(0x143)+(_0x48bc5b[_0x58fecd(0x146)]??_0x58fecd(0x156))+_0x58fecd(0x15f)};}const _0x3b2c7a=await _0x281028(_0x45ced5[_0x58fecd(0x159)],_0x57db58[_0x58fecd(0x14d)],{'visibility':_0x58fecd(0x165)});throwIfPublishValidationFailed('personal',_0x57db58[_0x58fecd(0x138)][_0x58fecd(0x16d)],_0x3b2c7a),throwIfUnconfirmedPublishWarnings(_0x58fecd(0x161),_0x57db58['payload']['skillCode'],_0x3b2c7a['warnings'],_0xd15819);const _0x45a6cf={'confirmWarnings':_0xd15819},_0x4a3052=_0x57db58[_0x58fecd(0x163)]?await _0x47c71b(_0x57db58[_0x58fecd(0x138)][_0x58fecd(0x16d)],_0x45ced5[_0x58fecd(0x159)],_0x57db58[_0x58fecd(0x14d)],_0x45a6cf):await _0x23978a(_0x45ced5['appCode'],_0x57db58[_0x58fecd(0x14d)],_0x45a6cf);let _0x2db28a=_0x4a3052;if(isMultiFileManifest(_0x57db58[_0x58fecd(0x14d)][_0x58fecd(0x13b)])){const _0x322c95=await _0x2c3e28('personal',_0x4a3052[_0x58fecd(0x16d)]||_0x57db58['payload'][_0x58fecd(0x16d)],_0x45ced5[_0x58fecd(0x159)]);_0x5da668(_0x57db58[_0x58fecd(0x14d)][_0x58fecd(0x13b)],_0x322c95),_0x2db28a={..._0x4a3052,'files':_0x57db58['publishInput'][_0x58fecd(0x13b)]};}else{if(isPackageBackedManifest(_0x4a3052[_0x58fecd(0x13b)])){const _0x1cdf9c=await _0x2c3e28(_0x58fecd(0x161),_0x4a3052[_0x58fecd(0x16d)]||_0x57db58[_0x58fecd(0x138)]['skillCode'],_0x45ced5[_0x58fecd(0x159)]);_0x35f08a(_0x4a3052[_0x58fecd(0x13b)],_0x1cdf9c);}}return _0x310013(_0x22fe81,_0x2db28a,_0x45ced5[_0x58fecd(0x159)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x4a3052),'warnings':_0x57db58[_0x58fecd(0x16e)],'validation':{'warnings':_0x3b2c7a[_0x58fecd(0x16e)]}},'message':_0x57db58[_0x58fecd(0x163)]?_0x58fecd(0x14b)+_0x57db58[_0x58fecd(0x138)][_0x58fecd(0x16d)]:'Created\x20personal\x20Skill\x20'+_0x57db58[_0x58fecd(0x138)][_0x58fecd(0x16d)]};}function scopeLabel(_0x144f1a){const _0x390746=a50_0x97fd;return _0x144f1a===_0x390746(0x16c)?_0x390746(0x145):_0x390746(0x167);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2ddefc,_0x538e50){const _0xa2de1e=a51_0x1a9d,_0x35bc3b=_0x2ddefc();while(!![]){try{const _0x44de81=-parseInt(_0xa2de1e(0x12c))/0x1*(-parseInt(_0xa2de1e(0x138))/0x2)+-parseInt(_0xa2de1e(0x145))/0x3+-parseInt(_0xa2de1e(0x134))/0x4*(-parseInt(_0xa2de1e(0x124))/0x5)+parseInt(_0xa2de1e(0x131))/0x6*(parseInt(_0xa2de1e(0x127))/0x7)+parseInt(_0xa2de1e(0x147))/0x8+parseInt(_0xa2de1e(0x129))/0x9*(parseInt(_0xa2de1e(0x146))/0xa)+-parseInt(_0xa2de1e(0x14a))/0xb;if(_0x44de81===_0x538e50)break;else _0x35bc3b['push'](_0x35bc3b['shift']());}catch(_0x5b02d1){_0x35bc3b['push'](_0x35bc3b['shift']());}}}(a51_0x3ded,0x387d8));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x42bff8){const _0x2f95d0=a51_0x1a9d,_0x10f506=_0x42bff8['str'](_0x2f95d0(0x125))||_0x2f95d0(0x12f);if(_0x10f506===_0x2f95d0(0x12f)||_0x10f506===_0x2f95d0(0x140))return _0x10f506;throw CliErrors['validation'](_0x2f95d0(0x130)+_0x10f506+'\x22.');}function a51_0x1a9d(_0x433ace,_0x55a819){_0x433ace=_0x433ace-0x11a;const _0x3ded45=a51_0x3ded();let _0x1a9df7=_0x3ded45[_0x433ace];return _0x1a9df7;}export function allowRetargetArgs(_0x14666b){return _0x14666b?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x2738c6=a51_0x1a9d;return{'targetScope':_0x2738c6(0x140),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x1e1f76={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x1e1f76};}function a51_0x3ded(){const _0x1a7a07=['errors','not-applicable','56400ANzMUH','Review\x20each\x20warning\x20before\x20continuing.','SkillHub\x20validation\x20returned\x20invalid.','personal','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','18804TEtRfX','different','Company','1516DfWTeO','files','warnings','\x20Skill\x20push\x20validation\x20failed\x20for\x20','8ZDoexX','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','length','lovrabet.skill.json','Local\x20Skill\x20metadata\x20appCode\x20','remote','appCode','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','company','Personal','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','version','skill-metadata-appcode-retargeted','904140LZhhQv','1289190RzaaAt','3369152qjCAzX','Warnings:\x20','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','9522304zytaCB','join','\x20cannot\x20be\x20pushed.','downloadRuntimeSkillPackage','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','validation','skillCode','publishInput','content','warning','valid','(unknown)','2965IsVwPy','scope','\x20after\x20successful\x20push.','889NWvwrv','builtin','9ivAEmw'];a51_0x3ded=function(){return _0x1a7a07;};return a51_0x3ded();}export function remotePersonalReadOptions(_0x4eb078,_0x4d23dd={}){return{'ignoreInvalidMetadata':!![],..._0x4eb078?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x4d23dd};}export function throwIfBuiltinPushTarget(_0x167a24){const _0xef3eba=a51_0x1a9d;if(_0x167a24?.['scope']!==_0xef3eba(0x128))return;throw CliErrors[_0xef3eba(0x11d)]('Builtin\x20Skill\x20'+(_0x167a24[_0xef3eba(0x11e)]??_0xef3eba(0x123))+_0xef3eba(0x11a),_0xef3eba(0x149));}export function throwIfPublishValidationFailed(_0xdf4727,_0x5c3bea,_0x5bab98){const _0x86b191=a51_0x1a9d;if(_0x5bab98[_0x86b191(0x12a)]['length']===0x0&&(_0x5bab98[_0x86b191(0x122)]||_0x5bab98[_0x86b191(0x136)][_0x86b191(0x13a)]>0x0))return;const _0x49d060=_0x5bab98[_0x86b191(0x12a)][_0x86b191(0x13a)]>0x0?_0x5bab98[_0x86b191(0x12a)]['join'](';\x20'):_0x86b191(0x12e),_0x4b1998=_0xdf4727==='company'?_0x86b191(0x133):_0x86b191(0x141);throw CliErrors[_0x86b191(0x11d)](_0x4b1998+_0x86b191(0x137)+_0x5c3bea+'.',_0x49d060);}export function throwIfUnconfirmedPublishWarnings(_0x5e779e,_0x3e0722,_0x2b3350,_0x3a6829){const _0x37435f=a51_0x1a9d;if(_0x2b3350[_0x37435f(0x13a)]===0x0||_0x3a6829)return;const _0x282491=_0x5e779e==='company'?'Company':'Personal';throw CliErrors[_0x37435f(0x11d)](_0x282491+_0x37435f(0x142)+_0x3e0722+'.',[_0x37435f(0x12d),_0x37435f(0x13f),_0x37435f(0x11c),_0x37435f(0x148)+_0x2b3350['join'](';\x20')][_0x37435f(0x14b)]('\x20'));}export function buildRetargetWarning(_0x1c314b,_0x286a3f){const _0x42cb92=a51_0x1a9d;if(!_0x1c314b?.[_0x42cb92(0x13e)]||_0x1c314b[_0x42cb92(0x13e)]===_0x286a3f)return[];return[{'level':_0x42cb92(0x121),'ruleId':_0x42cb92(0x144),'file':_0x42cb92(0x13b),'message':_0x42cb92(0x13c)+_0x1c314b[_0x42cb92(0x13e)]+'\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20'+_0x286a3f+_0x42cb92(0x126),'suggestion':_0x42cb92(0x139)}];}export async function runRemoteContentPreflight(_0x53d965){const _0x424953=a51_0x1a9d;if(!_0x53d965[_0x424953(0x13d)]||_0x53d965[_0x424953(0x13d)][_0x424953(0x125)]!==_0x53d965['scope']||!_0x53d965[_0x424953(0x11f)][_0x424953(0x135)])return{'status':'not-applicable'};const _0x18980a=_0x53d965['remote'][_0x424953(0x11e)]||_0x53d965[_0x424953(0x11e)];if(!_0x18980a)return{'status':_0x424953(0x12b)};const _0x1991fd=await _0x53d965[_0x424953(0x11b)](_0x53d965[_0x424953(0x125)],_0x18980a,_0x53d965[_0x424953(0x13e)],_0x53d965[_0x424953(0x13d)][_0x424953(0x143)]);try{_0x53d965['verifyRuntimeSkillBundle'](_0x53d965['publishInput'][_0x424953(0x135)],_0x1991fd);}catch{return{'status':_0x424953(0x132)};}return{'status':'identical','savedSkill':{..._0x53d965['remote'],'content':_0x53d965[_0x424953(0x11f)][_0x424953(0x120)],'files':_0x53d965['publishInput'][_0x424953(0x135)]}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4986b7,_0x163b6a){const _0x226d19=a52_0xe1bd,_0xff296e=_0x4986b7();while(!![]){try{const _0x5bfb45=parseInt(_0x226d19(0x167))/0x1*(parseInt(_0x226d19(0x16b))/0x2)+-parseInt(_0x226d19(0x176))/0x3*(parseInt(_0x226d19(0x16d))/0x4)+parseInt(_0x226d19(0x16f))/0x5*(parseInt(_0x226d19(0x16a))/0x6)+-parseInt(_0x226d19(0x175))/0x7+-parseInt(_0x226d19(0x173))/0x8+parseInt(_0x226d19(0x160))/0x9*(-parseInt(_0x226d19(0x172))/0xa)+parseInt(_0x226d19(0x169))/0xb*(parseInt(_0x226d19(0x170))/0xc);if(_0x5bfb45===_0x163b6a)break;else _0xff296e['push'](_0xff296e['shift']());}catch(_0xec2567){_0xff296e['push'](_0xff296e['shift']());}}}(a52_0x20c9,0x27f81));function a52_0xe1bd(_0x5ddab2,_0x2f20db){_0x5ddab2=_0x5ddab2-0x160;const _0x20c9ee=a52_0x20c9();let _0xe1bd02=_0x20c9ee[_0x5ddab2];return _0xe1bd02;}export function withRetargetExistingMetadata(_0x335d3b,_0x2169b9,_0x269a2c={}){const _0x53b473=a52_0xe1bd,_0x32b764=_0x269a2c[_0x53b473(0x16c)]?_0x335d3b[_0x53b473(0x177)]??_0x2169b9[_0x53b473(0x177)]:_0x2169b9[_0x53b473(0x177)]??_0x335d3b[_0x53b473(0x177)];return{..._0x335d3b,'skillName':_0x32b764,'description':_0x2169b9[_0x53b473(0x174)]??_0x335d3b[_0x53b473(0x174)],'tags':Array[_0x53b473(0x168)](_0x2169b9[_0x53b473(0x163)])?_0x2169b9[_0x53b473(0x163)]:_0x335d3b[_0x53b473(0x163)],'version':_0x2169b9[_0x53b473(0x16e)]??_0x335d3b[_0x53b473(0x16e)],'sourceSessionId':_0x2169b9[_0x53b473(0x164)]??_0x335d3b[_0x53b473(0x164)]};}export function buildRetargetWarning(_0x2f09d8,_0x8a7ed9){const _0x447a0f=a52_0xe1bd;if(!_0x2f09d8?.[_0x447a0f(0x171)]||_0x2f09d8['appCode']===_0x8a7ed9)return[];return[{'level':'warning','ruleId':_0x447a0f(0x166),'file':_0x447a0f(0x161),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x2f09d8[_0x447a0f(0x171)]+_0x447a0f(0x162)+_0x8a7ed9+_0x447a0f(0x165),'suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}function a52_0x20c9(){const _0x1b34fd=['1054532GhoijN','version','30flahoL','75864QwKMei','appCode','25900CfTXbc','2222520fagBiy','description','1152963qcvjfk','3tTwdsR','skillName','540Mcybjw','lovrabet.skill.json','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','tags','sourceSessionId','\x20after\x20successful\x20push.','skill-metadata-appcode-retargeted','437hvqHCK','isArray','1562wgsqDK','3438AiqMYv','568zZzFio','preferInputSkillName'];a52_0x20c9=function(){return _0x1b34fd;};return a52_0x20c9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x110db0,_0x5c6b98){const _0x5670bc=a53_0x4632,_0xfe9799=_0x110db0();while(!![]){try{const _0x5317f3=-parseInt(_0x5670bc(0xfe))/0x1+parseInt(_0x5670bc(0x104))/0x2*(-parseInt(_0x5670bc(0x106))/0x3)+parseInt(_0x5670bc(0x102))/0x4*(parseInt(_0x5670bc(0xff))/0x5)+-parseInt(_0x5670bc(0x101))/0x6+parseInt(_0x5670bc(0x10a))/0x7*(parseInt(_0x5670bc(0x108))/0x8)+-parseInt(_0x5670bc(0x105))/0x9+parseInt(_0x5670bc(0xfd))/0xa;if(_0x5317f3===_0x5c6b98)break;else _0xfe9799['push'](_0xfe9799['shift']());}catch(_0xfc41c3){_0xfe9799['push'](_0xfe9799['shift']());}}}(a53_0x260d,0xd825a));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x4e3a45){const _0x32ccdb=a53_0x4632,_0x461abd=_0x4e3a45['trim']();if(!_0x461abd||_0x461abd==='all')return[_0x32ccdb(0x100),_0x32ccdb(0x103)];if(_0x461abd===_0x32ccdb(0x100)||_0x461abd===_0x32ccdb(0x103))return[_0x461abd];throw CliErrors[_0x32ccdb(0xfc)](_0x32ccdb(0x10b)+_0x4e3a45);}function a53_0x4632(_0x315993,_0x107acf){_0x315993=_0x315993-0xfc;const _0x260df7=a53_0x260d();let _0x463255=_0x260df7[_0x315993];return _0x463255;}export function normalizeListScope(_0x1c2a4a){const _0x26c3ea=a53_0x4632,_0x435000=_0x1c2a4a[_0x26c3ea(0x107)]();if(!_0x435000)return'all';if(_0x435000===_0x26c3ea(0x100)||_0x435000===_0x26c3ea(0x103)||_0x435000==='all')return _0x435000;throw CliErrors[_0x26c3ea(0xfc)](_0x26c3ea(0x109)+_0x1c2a4a);}export function shouldListScope(_0x1ae863,_0x1546f1){if(_0x1ae863==='all')return!![];return _0x1ae863===_0x1546f1;}export function listScopeToRuntimeScopes(_0x3337f3){const _0x47563d=a53_0x4632;if(_0x3337f3==='all')return[_0x47563d(0x100),_0x47563d(0x103)];return[_0x3337f3===_0x47563d(0x103)?_0x47563d(0x103):_0x3337f3];}export function listScopeToRemoteScope(_0x2ca563){return _0x2ca563;}function a53_0x260d(){const _0x3928c5=['132312uRueHx','116EYJffq','company','529812YaaDTm','10120230WmyRKC','12KYUrGa','trim','352VLAfUP','Unsupported\x20Skill\x20list\x20scope:\x20','168406uVbZiI','Unsupported\x20Skill\x20sync\x20scope:\x20','validation','20627970wXTbqm','1184500ULyUCR','199075RGSVeR','personal'];a53_0x260d=function(){return _0x3928c5;};return a53_0x260d();}
|