@lovrabet/lovrabet-cli 2.1.13 → 2.1.14-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/app-config/shared.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schema.js +1 -1
  39. package/lib/commands/service/dynamic.js +1 -1
  40. package/lib/commands/service/function-name-adapter.js +1 -1
  41. package/lib/commands/service/index.js +1 -1
  42. package/lib/commands/service/registry.js +1 -1
  43. package/lib/commands/skill/commands/create.js +1 -1
  44. package/lib/commands/skill/commands/install.js +1 -1
  45. package/lib/commands/skill/commands/list.js +1 -1
  46. package/lib/commands/skill/commands/push.js +1 -1
  47. package/lib/commands/skill/commands/validate.js +1 -1
  48. package/lib/commands/skill/flags.js +1 -1
  49. package/lib/commands/skill/index.js +1 -1
  50. package/lib/commands/skill/manifest-helpers.js +1 -1
  51. package/lib/commands/skill/push-execute.js +1 -1
  52. package/lib/commands/skill/push-flow-helpers.js +1 -1
  53. package/lib/commands/skill/push-retarget.js +1 -1
  54. package/lib/commands/skill/scopes.js +1 -1
  55. package/lib/commands/skill/summary.js +1 -1
  56. package/lib/commands/skill/templates.js +1 -1
  57. package/lib/commands/skill/validate.js +1 -1
  58. package/lib/commands/sql/detail.js +1 -1
  59. package/lib/commands/sql/exec.js +1 -1
  60. package/lib/commands/sql/index.js +1 -1
  61. package/lib/commands/update.js +1 -1
  62. package/lib/commands/workspace/index.js +1 -1
  63. package/lib/config/schema.js +1 -1
  64. package/lib/constant/app.js +1 -1
  65. package/lib/constant/auth-mode.js +1 -1
  66. package/lib/constant/cli.js +1 -1
  67. package/lib/constant/defaults.js +1 -1
  68. package/lib/constant/distribution.js +1 -1
  69. package/lib/constant/domain.js +1 -1
  70. package/lib/constant/env.js +1 -1
  71. package/lib/constant/output.js +1 -1
  72. package/lib/constant/product.js +1 -1
  73. package/lib/constant/risk.js +1 -1
  74. package/lib/constant/url.js +1 -1
  75. package/lib/context.js +1 -1
  76. package/lib/core/api-client.js +1 -1
  77. package/lib/core/db-resolver.js +1 -1
  78. package/lib/core/sdk-client.js +1 -1
  79. package/lib/errors.js +1 -1
  80. package/lib/framework/build-all-flags.js +1 -1
  81. package/lib/framework/dryrun.js +1 -1
  82. package/lib/framework/flags.js +1 -1
  83. package/lib/framework/help.js +1 -1
  84. package/lib/framework/index.js +1 -1
  85. package/lib/framework/output.js +1 -1
  86. package/lib/framework/preparse.js +1 -1
  87. package/lib/framework/rate-limit.js +1 -1
  88. package/lib/framework/response.js +1 -1
  89. package/lib/framework/runner-confirmation.js +1 -1
  90. package/lib/framework/runner-error.js +1 -1
  91. package/lib/framework/runner.js +1 -1
  92. package/lib/framework/schema-export.js +1 -1
  93. package/lib/framework/service-order.js +1 -1
  94. package/lib/framework/types.js +1 -1
  95. package/lib/generated/build-info.js +1 -1
  96. package/lib/help.js +1 -1
  97. package/lib/skills/npx-skills-add.js +1 -1
  98. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  99. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  100. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  101. package/lib/skills/runtime-skill-sync/links.js +1 -1
  102. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  103. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  104. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  105. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  106. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  107. package/lib/skills/runtime-skill-sync/push.js +1 -1
  108. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  109. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  110. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  111. package/lib/skills/runtime-skill-sync.js +1 -1
  112. package/lib/utils/apply-jq-filter.js +1 -1
  113. package/lib/utils/logger.js +1 -1
  114. package/lib/utils/lossless-json.js +1 -1
  115. package/lib/utils/params.js +1 -1
  116. package/lib/utils/platform.js +1 -1
  117. package/lib/utils/update-notice.js +1 -1
  118. package/lib/utils/version.js +1 -1
  119. package/lib/utils/write-cli-side-channel.js +1 -1
  120. package/package.json +1 -1
@@ -1 +1 @@
1
- function a40_0x2c39(_0x4f7dc3,_0x336528){_0x4f7dc3=_0x4f7dc3-0x104;const _0x1d7bd8=a40_0x1d7b();let _0x2c3905=_0x1d7bd8[_0x4f7dc3];return _0x2c3905;}const a40_0x31608c=a40_0x2c39;(function(_0x977dab,_0x2b7468){const _0x4507b2=a40_0x2c39,_0x2a7828=_0x977dab();while(!![]){try{const _0x41c9e4=-parseInt(_0x4507b2(0x140))/0x1+parseInt(_0x4507b2(0x132))/0x2*(-parseInt(_0x4507b2(0x134))/0x3)+-parseInt(_0x4507b2(0x135))/0x4+-parseInt(_0x4507b2(0x13c))/0x5*(-parseInt(_0x4507b2(0x107))/0x6)+-parseInt(_0x4507b2(0x111))/0x7+-parseInt(_0x4507b2(0x108))/0x8*(-parseInt(_0x4507b2(0x116))/0x9)+parseInt(_0x4507b2(0x10e))/0xa;if(_0x41c9e4===_0x2b7468)break;else _0x2a7828['push'](_0x2a7828['shift']());}catch(_0x72b1ca){_0x2a7828['push'](_0x2a7828['shift']());}}}(a40_0x1d7b,0xa1b53));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_0x31608c(0x110),'type':'string','required':!![],'description':a40_0x31608c(0x10b)},SERVICE_FLAG={'name':a40_0x31608c(0x10a),'type':'string','required':!![],'description':'Local\x20service\x20code,\x20for\x20example\x20crm','pattern':{'regex':/^[a-z][a-z0-9-]*$/,'description':a40_0x31608c(0x119)}};function summarizeService(_0x554cd9){const _0x571f3e=a40_0x31608c;return{'serviceCode':_0x554cd9[_0x571f3e(0x11f)],'name':_0x554cd9[_0x571f3e(0x144)][_0x571f3e(0x10a)][_0x571f3e(0x148)],'version':_0x554cd9['version'],'importedAt':_0x554cd9['importedAt'],'source':_0x554cd9[_0x571f3e(0x11a)],'commandCount':_0x554cd9['normalizedManifest'][_0x571f3e(0x131)]['length'],'commands':_0x554cd9[_0x571f3e(0x144)][_0x571f3e(0x131)]['map'](_0x4d4b4a=>({'path':_0x4d4b4a[_0x571f3e(0x124)],'description':_0x4d4b4a[_0x571f3e(0x127)],'risk':_0x4d4b4a[_0x571f3e(0x122)],'target':toPublicServiceTreeTarget(_0x4d4b4a[_0x571f3e(0x104)]),'flags':_0x4d4b4a[_0x571f3e(0x146)][_0x571f3e(0x13a)](_0x5c2e1d=>({'name':_0x5c2e1d['name'],'cliName':_0x5c2e1d[_0x571f3e(0x128)],'type':_0x5c2e1d[_0x571f3e(0x130)],'required':_0x5c2e1d['required']===!![]}))}))};}function summarizeLoadedManifest(_0xe9ce97){const _0x5f43fe=a40_0x31608c;return{'service':_0xe9ce97['normalizedManifest']?.['service'],'version':_0xe9ce97['normalizedManifest']?.[_0x5f43fe(0x137)],'commandCount':_0xe9ce97[_0x5f43fe(0x144)]?.[_0x5f43fe(0x131)][_0x5f43fe(0x117)]??0x0,'commands':_0xe9ce97['normalizedManifest']?.[_0x5f43fe(0x131)][_0x5f43fe(0x13a)](_0xbea78a=>({'path':_0xbea78a[_0x5f43fe(0x124)],'risk':_0xbea78a[_0x5f43fe(0x122)],'target':toPublicServiceTreeTarget(_0xbea78a[_0x5f43fe(0x104)])}))??[],'registryIndex':_0xe9ce97[_0x5f43fe(0x133)],'registryServiceCode':_0xe9ce97[_0x5f43fe(0x118)],'errors':_0xe9ce97[_0x5f43fe(0x143)][_0x5f43fe(0x10f)],'warnings':_0xe9ce97['report'][_0x5f43fe(0x106)]};}export const serviceDefinitions=[{'service':a40_0x31608c(0x10a),'command':a40_0x31608c(0x136),'description':a40_0x31608c(0x12d),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[FILE_FLAG],async 'execute'(_0x35631c){const _0x24422b=a40_0x31608c,_0x41c432=loadServiceManifestFromFile(_0x35631c[_0x24422b(0x147)]('file'));if(!_0x41c432['report']['ok'])return{'ok':![],'data':{'file':_0x41c432['filePath'],'hash':_0x41c432[_0x24422b(0x145)],'kind':_0x41c432[_0x24422b(0x11c)],'serviceCount':_0x41c432[_0x24422b(0x12e)][_0x24422b(0x117)],'services':_0x41c432['manifests'][_0x24422b(0x13a)](summarizeLoadedManifest),'errors':_0x41c432['report'][_0x24422b(0x10f)],'warnings':_0x41c432[_0x24422b(0x143)][_0x24422b(0x106)]},'message':formatValidationFailure(_0x41c432[_0x24422b(0x143)])};if(_0x41c432[_0x24422b(0x11c)]===_0x24422b(0x115)||_0x41c432[_0x24422b(0x12e)]['length']!==0x1)return{'ok':!![],'data':{'file':_0x41c432[_0x24422b(0x11d)],'hash':_0x41c432[_0x24422b(0x145)],'kind':_0x41c432['kind'],'serviceCount':_0x41c432['manifests'][_0x24422b(0x117)],'commandCount':_0x41c432[_0x24422b(0x12e)]['reduce']((_0x43eac8,_0x23da27)=>_0x43eac8+(_0x23da27['normalizedManifest']?.[_0x24422b(0x131)]['length']??0x0),0x0),'services':_0x41c432[_0x24422b(0x12e)][_0x24422b(0x13a)](summarizeLoadedManifest),'warnings':_0x41c432[_0x24422b(0x143)][_0x24422b(0x106)]},'message':_0x24422b(0x10c)};return{'ok':!![],'data':{'file':_0x41c432[_0x24422b(0x11d)],'hash':_0x41c432[_0x24422b(0x145)],'kind':_0x41c432['kind'],'service':_0x41c432[_0x24422b(0x144)]?.[_0x24422b(0x10a)],'version':_0x41c432[_0x24422b(0x144)]?.[_0x24422b(0x137)],'commandCount':_0x41c432[_0x24422b(0x144)]?.[_0x24422b(0x131)][_0x24422b(0x117)]??0x0,'commands':_0x41c432[_0x24422b(0x144)]?.[_0x24422b(0x131)][_0x24422b(0x13a)](_0xeae06b=>({'path':_0xeae06b[_0x24422b(0x124)],'risk':_0xeae06b['risk'],'target':toPublicServiceTreeTarget(_0xeae06b[_0x24422b(0x104)])})),'warnings':_0x41c432['report'][_0x24422b(0x106)]},'message':_0x24422b(0x11b)};}},{'service':a40_0x31608c(0x10a),'command':a40_0x31608c(0x12b),'description':'Import\x20a\x20Service\x20Tree\x20manifest\x20into\x20the\x20local\x20runtime\x20registry','risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[FILE_FLAG],async 'dryRun'(_0x47333e){const _0x256652=a40_0x31608c,_0x24ba3c=loadServiceManifestFromFile(_0x47333e[_0x256652(0x147)]('file'));return{'method':_0x256652(0x113),'url':getServiceRegistryPath(),'body':{'file':_0x24ba3c['filePath'],'hash':_0x24ba3c['hash'],'kind':_0x24ba3c[_0x256652(0x11c)],'ok':_0x24ba3c[_0x256652(0x143)]['ok'],'service':_0x24ba3c['normalizedManifest']?.[_0x256652(0x10a)],'version':_0x24ba3c[_0x256652(0x144)]?.[_0x256652(0x137)],'serviceCount':_0x24ba3c[_0x256652(0x12e)]['length'],'services':_0x24ba3c['manifests'][_0x256652(0x13a)](_0x4b7745=>({'service':_0x4b7745[_0x256652(0x144)]?.[_0x256652(0x10a)],'version':_0x4b7745[_0x256652(0x144)]?.[_0x256652(0x137)],'commandCount':_0x4b7745[_0x256652(0x144)]?.['commands']['length']??0x0,'errors':_0x4b7745[_0x256652(0x143)]['errors']})),'errors':_0x24ba3c[_0x256652(0x143)][_0x256652(0x10f)],'commandCount':_0x24ba3c[_0x256652(0x144)]?.['commands']['length']??0x0},'description':_0x256652(0x141)};},async 'execute'(_0xec24da){const _0x16d9e8=a40_0x31608c,_0xb1d993=importServiceManifest(_0xec24da[_0x16d9e8(0x147)]('file'));if(_0xb1d993[_0x16d9e8(0x13f)][_0x16d9e8(0x117)]!==0x1)return{'ok':!![],'data':{'registryPath':_0xb1d993['registryPath'],'imported':_0xb1d993[_0x16d9e8(0x120)],'updated':_0xb1d993[_0x16d9e8(0x129)],'serviceCount':_0xb1d993[_0x16d9e8(0x11e)],'services':_0xb1d993[_0x16d9e8(0x13f)]['map'](summarizeService)},'message':'Imported\x20'+_0xb1d993['imported']+'\x20service(s),\x20updated\x20'+_0xb1d993['updated']+'\x20service(s).'};return{'ok':!![],'data':{'registryPath':_0xb1d993[_0x16d9e8(0x139)],'replaced':_0xb1d993[_0x16d9e8(0x123)],'imported':_0xb1d993[_0x16d9e8(0x120)],'updated':_0xb1d993[_0x16d9e8(0x129)],'serviceCount':_0xb1d993['serviceCount'],'service':summarizeService(_0xb1d993[_0x16d9e8(0x109)])},'message':(_0xb1d993[_0x16d9e8(0x123)]?'Updated':_0x16d9e8(0x126))+_0x16d9e8(0x138)+_0xb1d993[_0x16d9e8(0x109)]['serviceCode']+'.'};}},{'service':'service','command':'export','description':'Export\x20a\x20local\x20Service\x20Tree\x20manifest\x20to\x20a\x20JSON\x20file','risk':a40_0x31608c(0x10d),'requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG,FILE_FLAG],async 'dryRun'(_0x57c90a){const _0x524885=a40_0x31608c,_0x98cbea=getLocalServiceEntry(_0x57c90a[_0x524885(0x147)](_0x524885(0x10a)));return{'method':_0x524885(0x113),'url':_0x57c90a[_0x524885(0x147)](_0x524885(0x110)),'body':{'service':_0x57c90a['str'](_0x524885(0x10a)),'found':Boolean(_0x98cbea),'version':_0x98cbea?.[_0x524885(0x137)],'source':_0x98cbea?.['source']},'description':_0x524885(0x142)};},async 'execute'(_0x5d6b17){const _0xbdb206=a40_0x31608c,_0x510d5f=exportServiceManifest(_0x5d6b17[_0xbdb206(0x147)](_0xbdb206(0x10a)),_0x5d6b17[_0xbdb206(0x147)](_0xbdb206(0x110)));return{'ok':!![],'data':{'registryPath':_0x510d5f[_0xbdb206(0x139)],'file':_0x510d5f[_0xbdb206(0x11d)],'service':summarizeService(_0x510d5f[_0xbdb206(0x109)])},'message':_0xbdb206(0x12c)+_0x510d5f[_0xbdb206(0x109)][_0xbdb206(0x11f)]+'.'};}},{'service':a40_0x31608c(0x10a),'command':a40_0x31608c(0x114),'description':'List\x20locally\x20imported\x20Service\x20Tree\x20manifests','risk':a40_0x31608c(0x13e),'requiresAuth':![],'requiresAppCode':![],'flags':[],async 'execute'(){const _0x5a85c7=a40_0x31608c,_0x508662=listLocalServices();return{'ok':!![],'data':{'registryPath':getServiceRegistryPath(),'total':_0x508662[_0x5a85c7(0x117)],'services':_0x508662['map'](summarizeService)}};}},{'service':a40_0x31608c(0x10a),'command':a40_0x31608c(0x125),'description':a40_0x31608c(0x13b),'risk':a40_0x31608c(0x10d),'requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG],async 'dryRun'(_0x515351){const _0x3045d9=a40_0x31608c,_0xce1d6b=getLocalServiceEntry(_0x515351['str'](_0x3045d9(0x10a)));return{'method':_0x3045d9(0x113),'url':getServiceRegistryPath(),'body':{'service':_0x515351['str'](_0x3045d9(0x10a)),'found':Boolean(_0xce1d6b),'version':_0xce1d6b?.[_0x3045d9(0x137)],'source':_0xce1d6b?.[_0x3045d9(0x11a)]},'description':_0x3045d9(0x105)};},async 'execute'(_0x34258a){const _0x31e615=a40_0x31608c,_0x6647cf=removeServiceManifest(_0x34258a['str'](_0x31e615(0x10a)));return{'ok':!![],'data':{'registryPath':_0x6647cf[_0x31e615(0x139)],'serviceCount':_0x6647cf[_0x31e615(0x11e)],'service':summarizeService(_0x6647cf[_0x31e615(0x109)])},'message':_0x31e615(0x112)+_0x6647cf[_0x31e615(0x109)][_0x31e615(0x11f)]+'.'};}},{'service':'service','command':a40_0x31608c(0x12f),'description':a40_0x31608c(0x13d),'risk':a40_0x31608c(0x13e),'requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG],async 'execute'(_0x44ca2f){const _0x3fbe61=a40_0x31608c,_0x1f2b80=getLocalServiceEntry(_0x44ca2f['str']('service'));if(!_0x1f2b80)return{'ok':![],'data':{'registryPath':getServiceRegistryPath(),'service':_0x44ca2f[_0x3fbe61(0x147)](_0x3fbe61(0x10a))},'message':_0x3fbe61(0x121)+_0x44ca2f['str']('service')};return{'ok':!![],'data':{'registryPath':getServiceRegistryPath(),'service':summarizeService(_0x1f2b80),'manifest':_0x1f2b80[_0x3fbe61(0x12a)],'normalizedManifest':toPublicNormalizedServiceTree(_0x1f2b80[_0x3fbe61(0x144)])}};}}];function a40_0x1d7b(){const _0x6856fd=['read','entries','707232dfoyaX','Preview\x20Service\x20Tree\x20import\x20into\x20~/.lovrabet/service.json','Preview\x20Service\x20Tree\x20export\x20from\x20~/.lovrabet/service.json','report','normalizedManifest','hash','flags','str','name','target','Preview\x20Service\x20Tree\x20removal\x20from\x20~/.lovrabet/service.json','warnings','2736102KiBeZX','56txUTIW','entry','service','Service\x20Tree\x20manifest\x20file\x20path','Service\x20registry\x20validation\x20passed.','write','28698860heWKFJ','errors','file','6886019tagrhd','Removed\x20service\x20','WRITE','list','registry','749691slmLca','length','registryServiceCode','lower\x20kebab-case\x20service\x20code','source','Service\x20manifest\x20validation\x20passed.','kind','filePath','serviceCount','serviceCode','imported','Local\x20service\x20not\x20found:\x20','risk','replaced','cliPath','remove','Imported','description','cliName','updated','manifest','import','Exported\x20service\x20','Validate\x20a\x20Service\x20Tree\x20JSON\x20manifest','manifests','detail','type','commands','2202742LsmQGv','registryIndex','3uNxMTu','3641352KmQyhL','validate','version','\x20service\x20','registryPath','map','Remove\x20a\x20local\x20Service\x20Tree\x20manifest\x20from\x20the\x20runtime\x20registry','10tIyOPJ','Show\x20a\x20locally\x20imported\x20Service\x20Tree\x20manifest'];a40_0x1d7b=function(){return _0x6856fd;};return a40_0x1d7b();}
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 +1 @@
1
- (function(_0xcba0fe,_0x3e3d5f){const _0x38cb3e=a41_0x19c2,_0x2d6381=_0xcba0fe();while(!![]){try{const _0x481fa1=-parseInt(_0x38cb3e(0x188))/0x1*(-parseInt(_0x38cb3e(0x1a1))/0x2)+parseInt(_0x38cb3e(0x19c))/0x3+-parseInt(_0x38cb3e(0x199))/0x4+-parseInt(_0x38cb3e(0x176))/0x5+-parseInt(_0x38cb3e(0x19b))/0x6*(-parseInt(_0x38cb3e(0x1ac))/0x7)+parseInt(_0x38cb3e(0x1b7))/0x8*(-parseInt(_0x38cb3e(0x1b6))/0x9)+-parseInt(_0x38cb3e(0x183))/0xa*(-parseInt(_0x38cb3e(0x1ca))/0xb);if(_0x481fa1===_0x3e3d5f)break;else _0x2d6381['push'](_0x2d6381['shift']());}catch(_0x265f5d){_0x2d6381['push'](_0x2d6381['shift']());}}}(a41_0x249f,0x7ac28));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(_0x4c8c7={}){const _0x5d3039=a41_0x19c2;return resolve(_0x4c8c7[_0x5d3039(0x1bf)]??homedir(),PRODUCT_CONFIG[_0x5d3039(0x1b9)],SERVICE_REGISTRY_FILE_NAME);}export function emptyServiceRegistry(){return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'services':[]};}export function readServiceRegistry(_0x1fff56={}){const _0x4e5444=a41_0x19c2,_0x3c6e51=getServiceRegistryPath(_0x1fff56);if(!existsSync(_0x3c6e51))return emptyServiceRegistry();try{const _0x51fbfe=readFileSync(_0x3c6e51,_0x4e5444(0x1a0));if(!_0x51fbfe[_0x4e5444(0x1c2)]())return emptyServiceRegistry();const _0x39e195=JSON[_0x4e5444(0x195)](_0x51fbfe);if(_0x39e195['schemaVersion']!==SERVICE_REGISTRY_SCHEMA_VERSION)throw CliErrors[_0x4e5444(0x198)](_0x4e5444(0x18d)+String(_0x39e195[_0x4e5444(0x181)]),_0x4e5444(0x17c)+_0x3c6e51+'.');if(!Array[_0x4e5444(0x1b5)](_0x39e195[_0x4e5444(0x1c0)]))return emptyServiceRegistry();return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x39e195[_0x4e5444(0x1bd)],'services':_0x39e195[_0x4e5444(0x1c0)]};}catch(_0x5bddfc){if(_0x5bddfc instanceof Error&&_0x5bddfc[_0x4e5444(0x1b4)]===_0x4e5444(0x1c5))throw _0x5bddfc;throw CliErrors['validation'](_0x4e5444(0x193)+_0x3c6e51,'Fix\x20the\x20JSON\x20file\x20or\x20move\x20it\x20aside\x20and\x20import\x20services\x20again.');}}export function writeServiceRegistry(_0x416304,_0x4e100d={}){const _0x3abe96=a41_0x19c2,_0x268ec9=getServiceRegistryPath(_0x4e100d),_0x40378c=dirname(_0x268ec9);!existsSync(_0x40378c)&&mkdirSync(_0x40378c,{'recursive':!![]});const _0x27d04e=_0x268ec9+_0x3abe96(0x178);try{writeFileSync(_0x27d04e,JSON['stringify'](_0x416304,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x27d04e,_0x268ec9);}catch(_0x328e98){try{unlinkSync(_0x27d04e);}catch{}if(_0x328e98?.['code']===_0x3abe96(0x19a))throw CliErrors['validation']('Cannot\x20write\x20service\x20registry:\x20'+_0x268ec9);throw _0x328e98;}return _0x268ec9;}export function loadServiceManifestFromFile(_0x5a3128){const _0x1bae59=a41_0x19c2,_0x2114bf=resolve(_0x5a3128);if(!existsSync(_0x2114bf))throw CliErrors[_0x1bae59(0x198)](_0x1bae59(0x17d)+_0x5a3128);let _0x4030a6;const _0x46f007=readFileSync(_0x2114bf,'utf8');try{_0x4030a6=JSON['parse'](_0x46f007);}catch{throw CliErrors[_0x1bae59(0x198)](_0x1bae59(0x194)+_0x5a3128,_0x1bae59(0x19f));}const _0x3e168d=sha256(_0x46f007),_0x34bf41=extractLoadedServiceManifests(_0x4030a6,_0x3e168d),_0x35c7f6=aggregateValidationReports(_0x34bf41),_0x37b7ee=_0x34bf41[0x0];return{'filePath':_0x2114bf,'hash':_0x3e168d,'kind':isServiceRegistryLike(_0x4030a6)?_0x1bae59(0x185):'manifest','manifest':_0x37b7ee?.['manifest']??_0x4030a6,'report':_0x35c7f6,'normalizedManifest':_0x34bf41[_0x1bae59(0x17b)]===0x1?_0x37b7ee?.[_0x1bae59(0x1c1)]:undefined,'manifests':_0x34bf41};}export function importServiceManifest(_0x3ce82d,_0x4a37bb={}){const _0x5e392a=a41_0x19c2,_0x36eb8c=loadServiceManifestFromFile(_0x3ce82d);if(!_0x36eb8c[_0x5e392a(0x1ae)]['ok'])throw CliErrors[_0x5e392a(0x198)](formatValidationFailure(_0x36eb8c['report']),_0x5e392a(0x189));if(_0x36eb8c['manifests'][_0x5e392a(0x17b)]===0x0)throw CliErrors[_0x5e392a(0x198)](_0x5e392a(0x182),'Add\x20at\x20least\x20one\x20service\x20manifest,\x20then\x20run\x20service\x20import\x20again.');const _0x44a487=readServiceRegistry(_0x4a37bb),_0x56da80=(_0x4a37bb[_0x5e392a(0x196)]??(()=>new Date()))()[_0x5e392a(0x187)](),_0x5a00d2=[];let _0x3ea812=0x0,_0x4b3ffa=0x0;for(const _0x4c39ee of _0x36eb8c[_0x5e392a(0x1b2)]){if(!_0x4c39ee[_0x5e392a(0x1c1)])continue;const _0x3eb217=_0x4c39ee[_0x5e392a(0x1c1)][_0x5e392a(0x1a9)][_0x5e392a(0x1a3)],_0x21016f={'serviceCode':_0x3eb217,'version':_0x4c39ee['normalizedManifest'][_0x5e392a(0x1be)],'importedAt':_0x56da80,'source':{'type':_0x5e392a(0x1b8),'path':_0x36eb8c[_0x5e392a(0x180)],'hash':_0x4c39ee[_0x5e392a(0x1a5)]},'manifest':_0x4c39ee[_0x5e392a(0x18c)],'normalizedManifest':_0x4c39ee[_0x5e392a(0x1c1)]},_0x177669=_0x44a487[_0x5e392a(0x1c0)][_0x5e392a(0x197)](_0x2a594f=>_0x2a594f[_0x5e392a(0x18a)]===_0x3eb217);_0x177669>=0x0?(_0x44a487[_0x5e392a(0x1c0)][_0x177669]=_0x21016f,_0x4b3ffa++):(_0x44a487[_0x5e392a(0x1c0)][_0x5e392a(0x1b1)](_0x21016f),_0x3ea812++),_0x5a00d2[_0x5e392a(0x1b1)](_0x21016f);}_0x44a487[_0x5e392a(0x1c0)][_0x5e392a(0x1c3)]((_0x1dd888,_0x173593)=>_0x1dd888['serviceCode'][_0x5e392a(0x186)](_0x173593[_0x5e392a(0x18a)])),_0x44a487['updatedAt']=_0x56da80;const _0x538c67=writeServiceRegistry(_0x44a487,_0x4a37bb);return{'registryPath':_0x538c67,'entry':_0x5a00d2[0x0],'replaced':_0x5a00d2[_0x5e392a(0x17b)]===0x1?_0x4b3ffa===0x1:_0x4b3ffa>0x0,'entries':_0x5a00d2,'imported':_0x3ea812,'updated':_0x4b3ffa,'serviceCount':_0x44a487[_0x5e392a(0x1c0)][_0x5e392a(0x17b)]};}function a41_0x19c2(_0x365d31,_0xd2dab0){_0x365d31=_0x365d31-0x176;const _0x249ff3=a41_0x249f();let _0x19c277=_0x249ff3[_0x365d31];return _0x19c277;}export function exportServiceManifest(_0x500ab5,_0x293f6f,_0x1c29db={}){const _0x4531fc=a41_0x19c2,_0xc31e16=getServiceRegistryPath(_0x1c29db),_0x4a3a0f=getLocalServiceEntry(_0x500ab5,_0x1c29db);if(!_0x4a3a0f)throw CliErrors[_0x4531fc(0x198)](_0x4531fc(0x1aa)+_0x500ab5,_0x4531fc(0x1b0));const _0x4a2cbb=resolve(_0x293f6f),_0x3978d1=dirname(_0x4a2cbb);return!existsSync(_0x3978d1)&&mkdirSync(_0x3978d1,{'recursive':!![]}),writeFileSync(_0x4a2cbb,JSON[_0x4531fc(0x1bc)](_0x4a3a0f[_0x4531fc(0x18c)],null,0x2)+'\x0a',{'encoding':_0x4531fc(0x1a0),'mode':0x180}),{'registryPath':_0xc31e16,'filePath':_0x4a2cbb,'entry':_0x4a3a0f};}export function removeServiceManifest(_0xd06f6,_0x21416f={}){const _0x14c32e=a41_0x19c2,_0x4246c3=readServiceRegistry(_0x21416f),_0xfab58d=_0xd06f6['trim'](),_0x3865a5=_0x4246c3[_0x14c32e(0x1c0)][_0x14c32e(0x197)](_0x29f0d5=>_0x29f0d5['serviceCode']===_0xfab58d);if(_0x3865a5<0x0)throw CliErrors['validation']('Local\x20service\x20not\x20found:\x20'+_0xfab58d,_0x14c32e(0x1b0));const [_0x314361]=_0x4246c3[_0x14c32e(0x1c0)][_0x14c32e(0x19d)](_0x3865a5,0x1),_0x53c1df=(_0x21416f[_0x14c32e(0x196)]??(()=>new Date()))()[_0x14c32e(0x187)]();_0x4246c3[_0x14c32e(0x1bd)]=_0x53c1df;const _0x597350=writeServiceRegistry(_0x4246c3,_0x21416f);return{'registryPath':_0x597350,'entry':_0x314361,'serviceCount':_0x4246c3[_0x14c32e(0x1c0)][_0x14c32e(0x17b)]};}export function listLocalServices(_0x56f357={}){const _0x2bb685=a41_0x19c2;return readServiceRegistry(_0x56f357)[_0x2bb685(0x1c0)];}export function getLocalServiceEntry(_0x4cfb18,_0x443465={}){const _0x25ba97=a41_0x19c2;return readServiceRegistry(_0x443465)[_0x25ba97(0x1c0)]['find'](_0x3f293e=>_0x3f293e[_0x25ba97(0x18a)]===_0x4cfb18[_0x25ba97(0x1c2)]());}export function listLocalServiceTrees(_0xf103f9={}){const _0x5f5325=a41_0x19c2;return readServiceRegistry(_0xf103f9)['services']['map'](_0x30570d=>_0x30570d[_0x5f5325(0x1c1)]);}export function inspectServiceRegistry(_0x3b85ea={}){const _0x217a67=a41_0x19c2,_0x3fc654=getServiceRegistryPath(_0x3b85ea);if(!existsSync(_0x3fc654))return emptyServiceRegistryInspection(_0x3fc654,_0x217a67(0x17f),![]);try{const _0x2e179f=readFileSync(_0x3fc654,_0x217a67(0x1a0));if(!_0x2e179f['trim']())return emptyServiceRegistryInspection(_0x3fc654,'empty',!![]);const _0x348f8c=JSON[_0x217a67(0x195)](_0x2e179f);if(_0x348f8c['schemaVersion']!==SERVICE_REGISTRY_SCHEMA_VERSION)return{...emptyServiceRegistryInspection(_0x3fc654,_0x217a67(0x1ab),!![]),'schemaVersion':_0x348f8c[_0x217a67(0x181)],'message':'Unsupported\x20schemaVersion:\x20'+String(_0x348f8c[_0x217a67(0x181)])};if(!Array[_0x217a67(0x1b5)](_0x348f8c[_0x217a67(0x1c0)]))return{...emptyServiceRegistryInspection(_0x3fc654,_0x217a67(0x1ab),!![]),'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x348f8c['updatedAt'],'message':_0x217a67(0x1a8)};const _0x107b1f=_0x348f8c[_0x217a67(0x1c0)][_0x217a67(0x184)](summarizeLocalServiceEntry);return{'registryPath':_0x3fc654,'exists':!![],'status':'ok','schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x348f8c[_0x217a67(0x1bd)],'serviceCount':_0x107b1f['length'],'commandCount':_0x107b1f[_0x217a67(0x179)]((_0x1f0602,_0x2f6de6)=>_0x1f0602+_0x2f6de6['commandCount'],0x0),'services':_0x107b1f};}catch(_0x479859){return{...emptyServiceRegistryInspection(_0x3fc654,_0x217a67(0x1ab),!![]),'message':_0x479859 instanceof Error?_0x479859[_0x217a67(0x191)]:String(_0x479859)};}}function a41_0x249f(){const _0x585e17=['Fix\x20the\x20service\x20manifest\x20and\x20run\x20service\x20validate\x20again.','serviceCode','].manifest.','manifest','Unsupported\x20service\x20registry\x20schemaVersion:\x20','object','source','flatMap','message','update','Invalid\x20service\x20registry\x20JSON:\x20','Invalid\x20service\x20manifest\x20JSON:\x20','parse','now','findIndex','validation','2350084MAkoFI','ENOENT','5387706wIxjoP','2313735FVMleh','splice','slice','Fix\x20the\x20JSON\x20syntax\x20and\x20run\x20service\x20validate\x20again.','utf8','234FVMODv','commands','code','startsWith','sourceHash','errors','risk','services\x20must\x20be\x20an\x20array','service','Local\x20service\x20not\x20found:\x20','invalid','7gjVhqA','path','report','description','Run\x20lovrabet\x20service\x20list\x20to\x20see\x20imported\x20services.','push','manifests','cliPath','name','isArray','989838ObXZWI','56zgPsUH','file','homeDirName','hex','registryIndex','stringify','updatedAt','version','homeDir','services','normalizedManifest','trim','sort','sha256','CliError','$.services[','Service\x20manifest\x20validation\x20failed:\x0a','warnings','target','180114TSllAr','3077020EVkDiB','].manifest','.tmp','reduce','kind','length','Remove\x20or\x20migrate\x20','Service\x20manifest\x20file\x20not\x20found:\x20','bff\x20target\x20requires\x20bffCode,\x20bffId,\x20or\x20scriptName.','missing','filePath','schemaVersion','Service\x20registry\x20has\x20no\x20services\x20to\x20import.','90YoMjgt','map','registry','localeCompare','toISOString','5633jsdwaL'];a41_0x249f=function(){return _0x585e17;};return a41_0x249f();}export function formatValidationFailure(_0x160540){const _0x4517b9=a41_0x19c2,_0x38d214=_0x160540['errors']['map'](_0x4d365d=>_0x4d365d[_0x4517b9(0x1ad)]+':\x20'+_0x4d365d[_0x4517b9(0x191)]);return _0x4517b9(0x1c7)+_0x38d214['join']('\x0a');}function extractLoadedServiceManifests(_0x67aa9b,_0x73e62b){const _0x2b22b6=a41_0x19c2;if(!isServiceRegistryLike(_0x67aa9b)){const _0x1cc564=_0x67aa9b,{manifest:_0x2a4598,errors:_0x4b3913}=adaptServiceTreeManifestForLegacyFramework(_0x1cc564),_0x387e3e=validateServiceTreeManifest(_0x2a4598),_0x112f34=mergeValidationErrors(_0x387e3e,_0x4b3913);return[{'manifest':_0x1cc564,'report':_0x112f34,'normalizedManifest':_0x112f34['ok']?normalizeServiceTreeManifest(_0x2a4598):undefined,'sourceHash':_0x73e62b}];}return _0x67aa9b['services'][_0x2b22b6(0x184)]((_0x2976d5,_0x38ab25)=>{const _0x492942=_0x2b22b6,_0x435df0=isObjectRecord(_0x2976d5)?_0x2976d5[_0x492942(0x18c)]:undefined,{manifest:_0x525367,errors:_0x2993a5}=adaptServiceTreeManifestForLegacyFramework(_0x435df0),_0x1a1282=validateServiceTreeManifest(_0x525367),_0x4bd709=mergeValidationErrors(_0x1a1282,_0x2993a5),_0x11ce53=isObjectRecord(_0x2976d5)&&typeof _0x2976d5['serviceCode']==='string'?_0x2976d5[_0x492942(0x18a)]:undefined;return{'manifest':_0x435df0,'report':_0x4bd709,'normalizedManifest':_0x4bd709['ok']?normalizeServiceTreeManifest(_0x525367):undefined,'sourceHash':sha256(JSON[_0x492942(0x1bc)](_0x435df0,null,0x2)+'\x0a'),'registryIndex':_0x38ab25,'registryServiceCode':_0x11ce53};});}function mergeValidationErrors(_0x5a383c,_0x83b5d7){const _0x1d094a=a41_0x19c2,_0x230cef=_0x5a383c[_0x1d094a(0x1a6)][_0x1d094a(0x184)](_0x1ba1a3=>_0x1ba1a3[_0x1d094a(0x191)]===_0x1d094a(0x17e)?{..._0x1ba1a3,'message':'bff\x20target\x20requires\x20functionName.'}:_0x1ba1a3),_0x3699c8=[..._0x83b5d7,..._0x230cef];return{'ok':_0x3699c8[_0x1d094a(0x17b)]===0x0,'errors':_0x3699c8,'warnings':_0x5a383c[_0x1d094a(0x1c8)]};}function aggregateValidationReports(_0x3a2da8){const _0x176d8b=a41_0x19c2,_0x520f1d=_0x3a2da8['flatMap'](_0x184444=>_0x184444[_0x176d8b(0x1bb)]===undefined?_0x184444[_0x176d8b(0x1ae)][_0x176d8b(0x1a6)]:_0x184444[_0x176d8b(0x1ae)][_0x176d8b(0x1a6)][_0x176d8b(0x184)](_0x54426c=>({..._0x54426c,'path':prefixRegistryIssuePath(_0x184444['registryIndex'],_0x54426c[_0x176d8b(0x1ad)])}))),_0x18e60e=_0x3a2da8[_0x176d8b(0x190)](_0x152277=>_0x152277['registryIndex']===undefined?_0x152277[_0x176d8b(0x1ae)]['warnings']:_0x152277[_0x176d8b(0x1ae)][_0x176d8b(0x1c8)]['map'](_0x190e55=>({..._0x190e55,'path':prefixRegistryIssuePath(_0x152277[_0x176d8b(0x1bb)],_0x190e55[_0x176d8b(0x1ad)])})));return{'ok':_0x520f1d[_0x176d8b(0x17b)]===0x0,'errors':_0x520f1d,'warnings':_0x18e60e};}function prefixRegistryIssuePath(_0x15496b,_0x48f8f2){const _0x3f0ac0=a41_0x19c2;if(_0x48f8f2==='$')return _0x3f0ac0(0x1c6)+_0x15496b+'].manifest';if(_0x48f8f2[_0x3f0ac0(0x1a4)]('$.'))return'$.services['+_0x15496b+_0x3f0ac0(0x177)+_0x48f8f2[_0x3f0ac0(0x19e)](0x1);if(_0x48f8f2[_0x3f0ac0(0x1a4)]('$['))return _0x3f0ac0(0x1c6)+_0x15496b+_0x3f0ac0(0x177)+_0x48f8f2[_0x3f0ac0(0x19e)](0x1);return _0x3f0ac0(0x1c6)+_0x15496b+_0x3f0ac0(0x18b)+_0x48f8f2;}function isServiceRegistryLike(_0x47e349){const _0xb3d9a2=a41_0x19c2;return isObjectRecord(_0x47e349)&&_0x47e349[_0xb3d9a2(0x181)]===SERVICE_REGISTRY_SCHEMA_VERSION&&Array[_0xb3d9a2(0x1b5)](_0x47e349[_0xb3d9a2(0x1c0)]);}function isObjectRecord(_0x35274f){const _0x532c8f=a41_0x19c2;return Boolean(_0x35274f)&&typeof _0x35274f===_0x532c8f(0x18e)&&!Array[_0x532c8f(0x1b5)](_0x35274f);}function emptyServiceRegistryInspection(_0x5780ad,_0x3f4e78,_0x4c21c6){return{'registryPath':_0x5780ad,'exists':_0x4c21c6,'status':_0x3f4e78,'serviceCount':0x0,'commandCount':0x0,'services':[]};}function summarizeLocalServiceEntry(_0x210751){const _0x249c00=a41_0x19c2,_0x15b527=_0x210751[_0x249c00(0x1c1)],_0x2f8ccb=_0x15b527[_0x249c00(0x1a2)][_0x249c00(0x184)](_0xc66022=>({'path':_0xc66022[_0x249c00(0x1b3)],'description':_0xc66022[_0x249c00(0x1af)],'risk':_0xc66022[_0x249c00(0x1a7)],'targetKind':_0xc66022['target'][_0x249c00(0x17a)],'targetCommand':_0xc66022[_0x249c00(0x1c9)]['command']}));return{'serviceCode':_0x210751[_0x249c00(0x18a)],'name':_0x15b527['service'][_0x249c00(0x1b4)],'description':_0x15b527[_0x249c00(0x1a9)][_0x249c00(0x1af)],'version':_0x210751[_0x249c00(0x1be)],'importedAt':_0x210751['importedAt'],'source':_0x210751[_0x249c00(0x18f)],'commandCount':_0x2f8ccb[_0x249c00(0x17b)],'commands':_0x2f8ccb};}function sha256(_0x35fc8a){const _0x5c09e9=a41_0x19c2;return createHash(_0x5c09e9(0x1c4))[_0x5c09e9(0x192)](_0x35fc8a)['digest'](_0x5c09e9(0x1ba));}
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 +1 @@
1
- function a42_0x2e9f(){const _0x44076f=['isDirectory','map','Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.','trim','Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.','Refusing\x20to\x20overwrite\x20symlink:\x20','force','1101423tCoUjv','create','46809wALmxC','6eryPhf','WRITE','files','4PiYDgu','type','172193eoQOco','210GbgfmG','1895NncLJm','1108ewgTPQ','name','22RSatAF','Skill\x20directory\x20already\x20exists:\x20','942324eZHmXR','utf8','3167600PqnQFB','target','isSymbolicLink','path','skillDir','rendered','str','1443106INABwG','skillName'];a42_0x2e9f=function(){return _0x44076f;};return a42_0x2e9f();}const a42_0x45450f=a42_0x1972;(function(_0x244887,_0x199a8e){const _0x41a3dd=a42_0x1972,_0x46504b=_0x244887();while(!![]){try{const _0x23b289=-parseInt(_0x41a3dd(0xb8))/0x1*(-parseInt(_0x41a3dd(0xb6))/0x2)+-parseInt(_0x41a3dd(0xb0))/0x3+-parseInt(_0x41a3dd(0xbb))/0x4*(-parseInt(_0x41a3dd(0xba))/0x5)+parseInt(_0x41a3dd(0xb3))/0x6*(-parseInt(_0x41a3dd(0xc8))/0x7)+parseInt(_0x41a3dd(0xc1))/0x8+parseInt(_0x41a3dd(0xb2))/0x9*(parseInt(_0x41a3dd(0xb9))/0xa)+parseInt(_0x41a3dd(0xbd))/0xb*(-parseInt(_0x41a3dd(0xbf))/0xc);if(_0x23b289===_0x199a8e)break;else _0x46504b['push'](_0x46504b['shift']());}catch(_0x268280){_0x46504b['push'](_0x46504b['shift']());}}}(a42_0x2e9f,0x36bbb));import{existsSync,lstatSync,mkdirSync,writeFileSync}from'node:fs';import{dirname,resolve}from'node:path';import{CliErrors}from'../../../errors.js';function a42_0x1972(_0xcfa1c7,_0xe39fc9){_0xcfa1c7=_0xcfa1c7-0xa8;const _0x2e9f53=a42_0x2e9f();let _0x1972a4=_0x2e9f53[_0xcfa1c7];return _0x1972a4;}import{CREATE_NAME_FLAG,FORCE_FLAG,TARGET_FLAG,TYPE_FLAG}from'../flags.js';import{DEFAULT_SKILL_TARGET,renderSkillTemplate}from'../templates.js';export const createCommand={'service':'skill','command':a42_0x45450f(0xb1),'description':'Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x530c0f){const _0x45a0eb=a42_0x45450f,_0x4f7b1e=buildSkillCreatePlan(_0x530c0f['str']('name'),_0x530c0f[_0x45a0eb(0xc7)]('type'),_0x530c0f['str'](_0x45a0eb(0xc2)));return{'method':_0x45a0eb(0xb4),'url':_0x4f7b1e[_0x45a0eb(0xc5)],'body':{'skillName':_0x4f7b1e[_0x45a0eb(0xc6)][_0x45a0eb(0xa8)],'type':_0x4f7b1e['rendered']['type'],'selfContained':!![],'files':_0x4f7b1e[_0x45a0eb(0xc6)][_0x45a0eb(0xb5)][_0x45a0eb(0xaa)](_0x445052=>_0x445052[_0x45a0eb(0xc4)])},'description':_0x45a0eb(0xab)};},async 'execute'(_0xc83c77){const _0x465368=a42_0x45450f,_0x2f96c1=buildSkillCreatePlan(_0xc83c77['str'](_0x465368(0xbc)),_0xc83c77['str'](_0x465368(0xb7)),_0xc83c77[_0x465368(0xc7)](_0x465368(0xc2)));return writeSkillDraft(_0x2f96c1,_0xc83c77['bool'](_0x465368(0xaf))),{'ok':!![],'data':{'skillName':_0x2f96c1[_0x465368(0xc6)]['skillName'],'type':_0x2f96c1[_0x465368(0xc6)]['type'],'dir':_0x2f96c1[_0x465368(0xc5)],'files':_0x2f96c1[_0x465368(0xc6)][_0x465368(0xb5)][_0x465368(0xaa)](_0x2fd034=>_0x2fd034[_0x465368(0xc4)])},'message':'Created\x20local\x20Skill\x20draft\x20'+_0x2f96c1[_0x465368(0xc6)][_0x465368(0xa8)]};}};function buildSkillCreatePlan(_0x29baaf,_0x37cf97,_0x541d67){const _0x2ef20a=a42_0x45450f,_0x19c585=renderSkillTemplate({'skillName':_0x29baaf,'type':_0x37cf97}),_0x4a2c2f=resolve(normalizeSkillTarget(_0x541d67));return{'rendered':_0x19c585,'targetRoot':_0x4a2c2f,'skillDir':resolve(_0x4a2c2f,_0x19c585[_0x2ef20a(0xa8)])};}function normalizeSkillTarget(_0x34a873){const _0xb7a921=a42_0x45450f;return(_0x34a873||DEFAULT_SKILL_TARGET)[_0xb7a921(0xac)]()||DEFAULT_SKILL_TARGET;}function writeSkillDraft(_0x4afcf9,_0x2f57e8){const _0xf24360=a42_0x45450f;if(existsSync(_0x4afcf9[_0xf24360(0xc5)])){const _0x599b8e=lstatSync(_0x4afcf9[_0xf24360(0xc5)]);if(!_0x599b8e[_0xf24360(0xa9)]()||_0x599b8e[_0xf24360(0xc3)]())throw CliErrors['validation']('Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20'+_0x4afcf9[_0xf24360(0xc5)]);if(!_0x2f57e8)throw CliErrors['validation'](_0xf24360(0xbe)+_0x4afcf9[_0xf24360(0xc5)],_0xf24360(0xad));}for(const _0x44fcef of _0x4afcf9[_0xf24360(0xc6)][_0xf24360(0xb5)]){const _0x4375e8=resolve(_0x4afcf9[_0xf24360(0xc5)],_0x44fcef[_0xf24360(0xc4)]),_0x1a3fc4=dirname(_0x4375e8);mkdirSync(_0x1a3fc4,{'recursive':!![]});if(existsSync(_0x4375e8)&&lstatSync(_0x4375e8)[_0xf24360(0xc3)]())throw CliErrors['validation'](_0xf24360(0xae)+_0x4375e8);writeFileSync(_0x4375e8,_0x44fcef['content'],_0xf24360(0xc0));}}
1
+ const a42_0x5e7a28=a42_0xf36f;(function(_0x4a7b2d,_0x479be1){const _0x2c19d1=a42_0xf36f,_0x2e2af9=_0x4a7b2d();while(!![]){try{const _0x435ed8=parseInt(_0x2c19d1(0xed))/0x1+parseInt(_0x2c19d1(0xdf))/0x2+parseInt(_0x2c19d1(0xd4))/0x3*(parseInt(_0x2c19d1(0xd8))/0x4)+parseInt(_0x2c19d1(0xdd))/0x5*(-parseInt(_0x2c19d1(0xe2))/0x6)+parseInt(_0x2c19d1(0xe8))/0x7*(parseInt(_0x2c19d1(0xde))/0x8)+-parseInt(_0x2c19d1(0xf0))/0x9+parseInt(_0x2c19d1(0xf4))/0xa*(parseInt(_0x2c19d1(0xec))/0xb);if(_0x435ed8===_0x479be1)break;else _0x2e2af9['push'](_0x2e2af9['shift']());}catch(_0x1e1f58){_0x2e2af9['push'](_0x2e2af9['shift']());}}}(a42_0x51c7,0x9dc5c));import{existsSync,lstatSync,mkdirSync,writeFileSync}from'node:fs';import{dirname,resolve}from'node:path';function a42_0xf36f(_0x5ca1d5,_0x2ee894){_0x5ca1d5=_0x5ca1d5-0xd3;const _0x51c7c5=a42_0x51c7();let _0xf36f16=_0x51c7c5[_0x5ca1d5];return _0xf36f16;}import{CliErrors}from'../../../errors.js';import{CREATE_NAME_FLAG,FORCE_FLAG,TARGET_FLAG,TYPE_FLAG}from'../flags.js';import{DEFAULT_SKILL_TARGET,renderSkillTemplate}from'../templates.js';function a42_0x51c7(){const _0x496ac5=['isDirectory','isSymbolicLink','skillName','7rxkdkM','bool','target','skill','33WMnFRD','764925jEUXQX','Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20','WRITE','9170037jptGjl','type','skillDir','validation','3043100AkgWrU','map','Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.','2148Dnkxwp','create','Skill\x20directory\x20already\x20exists:\x20','utf8','1684YPaRGT','str','Created\x20local\x20Skill\x20draft\x20','write','rendered','5939255yBGRbp','4761496GygpNw','557004FuBKrq','trim','name','6OLWhWX','path','files'];a42_0x51c7=function(){return _0x496ac5;};return a42_0x51c7();}export const createCommand={'service':a42_0x5e7a28(0xeb),'command':a42_0x5e7a28(0xd5),'description':'Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','risk':a42_0x5e7a28(0xdb),'requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x8c753b){const _0x4de8e2=a42_0x5e7a28,_0x48a9cd=buildSkillCreatePlan(_0x8c753b['str'](_0x4de8e2(0xe1)),_0x8c753b['str'](_0x4de8e2(0xf1)),_0x8c753b[_0x4de8e2(0xd9)](_0x4de8e2(0xea)));return{'method':_0x4de8e2(0xef),'url':_0x48a9cd['skillDir'],'body':{'skillName':_0x48a9cd[_0x4de8e2(0xdc)][_0x4de8e2(0xe7)],'type':_0x48a9cd['rendered']['type'],'selfContained':!![],'files':_0x48a9cd[_0x4de8e2(0xdc)][_0x4de8e2(0xe4)][_0x4de8e2(0xf5)](_0xa1e544=>_0xa1e544[_0x4de8e2(0xe3)])},'description':_0x4de8e2(0xd3)};},async 'execute'(_0x2279fa){const _0x45a30a=a42_0x5e7a28,_0x2cbfb2=buildSkillCreatePlan(_0x2279fa[_0x45a30a(0xd9)](_0x45a30a(0xe1)),_0x2279fa['str']('type'),_0x2279fa['str'](_0x45a30a(0xea)));return writeSkillDraft(_0x2cbfb2,_0x2279fa[_0x45a30a(0xe9)]('force')),{'ok':!![],'data':{'skillName':_0x2cbfb2[_0x45a30a(0xdc)][_0x45a30a(0xe7)],'type':_0x2cbfb2['rendered'][_0x45a30a(0xf1)],'dir':_0x2cbfb2[_0x45a30a(0xf2)],'files':_0x2cbfb2[_0x45a30a(0xdc)][_0x45a30a(0xe4)][_0x45a30a(0xf5)](_0x124b5c=>_0x124b5c[_0x45a30a(0xe3)])},'message':_0x45a30a(0xda)+_0x2cbfb2[_0x45a30a(0xdc)][_0x45a30a(0xe7)]};}};function buildSkillCreatePlan(_0x578ba9,_0x5c050a,_0x3750d7){const _0x143058=a42_0x5e7a28,_0x4b0f3e=renderSkillTemplate({'skillName':_0x578ba9,'type':_0x5c050a}),_0x144c09=resolve(normalizeSkillTarget(_0x3750d7));return{'rendered':_0x4b0f3e,'targetRoot':_0x144c09,'skillDir':resolve(_0x144c09,_0x4b0f3e[_0x143058(0xe7)])};}function normalizeSkillTarget(_0x3ec153){const _0x15221a=a42_0x5e7a28;return(_0x3ec153||DEFAULT_SKILL_TARGET)[_0x15221a(0xe0)]()||DEFAULT_SKILL_TARGET;}function writeSkillDraft(_0x372fd8,_0x3927e5){const _0x394000=a42_0x5e7a28;if(existsSync(_0x372fd8['skillDir'])){const _0x5882de=lstatSync(_0x372fd8[_0x394000(0xf2)]);if(!_0x5882de[_0x394000(0xe5)]()||_0x5882de[_0x394000(0xe6)]())throw CliErrors[_0x394000(0xf3)](_0x394000(0xee)+_0x372fd8[_0x394000(0xf2)]);if(!_0x3927e5)throw CliErrors[_0x394000(0xf3)](_0x394000(0xd6)+_0x372fd8[_0x394000(0xf2)],'Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.');}for(const _0x1cb6c4 of _0x372fd8[_0x394000(0xdc)][_0x394000(0xe4)]){const _0x32a3ed=resolve(_0x372fd8[_0x394000(0xf2)],_0x1cb6c4[_0x394000(0xe3)]),_0x896e37=dirname(_0x32a3ed);mkdirSync(_0x896e37,{'recursive':!![]});if(existsSync(_0x32a3ed)&&lstatSync(_0x32a3ed)[_0x394000(0xe6)]())throw CliErrors[_0x394000(0xf3)]('Refusing\x20to\x20overwrite\x20symlink:\x20'+_0x32a3ed);writeFileSync(_0x32a3ed,_0x1cb6c4['content'],_0x394000(0xd7));}}
@@ -1 +1 @@
1
- const a43_0x2f06f2=a43_0x57a6;(function(_0x465813,_0x521b3d){const _0x170bc4=a43_0x57a6,_0x42af70=_0x465813();while(!![]){try{const _0x559c65=parseInt(_0x170bc4(0x175))/0x1+parseInt(_0x170bc4(0x17e))/0x2*(-parseInt(_0x170bc4(0x180))/0x3)+-parseInt(_0x170bc4(0x17a))/0x4*(-parseInt(_0x170bc4(0x168))/0x5)+-parseInt(_0x170bc4(0x15f))/0x6*(parseInt(_0x170bc4(0x18b))/0x7)+-parseInt(_0x170bc4(0x186))/0x8*(parseInt(_0x170bc4(0x17d))/0x9)+parseInt(_0x170bc4(0x16f))/0xa*(parseInt(_0x170bc4(0x17b))/0xb)+parseInt(_0x170bc4(0x161))/0xc;if(_0x559c65===_0x521b3d)break;else _0x42af70['push'](_0x42af70['shift']());}catch(_0x1eefd5){_0x42af70['push'](_0x42af70['shift']());}}}(a43_0x5497,0xe28a3));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,FORCE_FLAG,SCOPE_FLAG}from'../flags.js';import{normalizeSyncScopes}from'../scopes.js';function a43_0x5497(){const _0x1ebc53=['updated','all','company','\x20company\x20Skill(s).','code','269608dfYtTu','skillCode','../../../core/api-client.js','action','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.','7uxGwBI','includes','unchanged','8741562oWlBFK','accessKey','22913004kpRUCw','filter','Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','authRequired','scope','length','reduce','1355LEZRQH','\x20personal\x20and\x20','production','write','trim','removed','skipped','14584580bvIbox','version','map','skill','created','force','244318klwIkA','Installed\x20','appCode','flatMap','str','2892GdUxlG','11FoVkEl','install','63hBElwG','2yOBugt','personal','3562155SfcHJa'];a43_0x5497=function(){return _0x1ebc53;};return a43_0x5497();}function a43_0x57a6(_0x3edd58,_0x100388){_0x3edd58=_0x3edd58-0x15e;const _0x5497b4=a43_0x5497();let _0x57a61f=_0x5497b4[_0x3edd58];return _0x57a61f;}import{summarizeRuntimeSkill}from'../summary.js';export const installCommand={'service':a43_0x2f06f2(0x172),'command':a43_0x2f06f2(0x17c),'description':a43_0x2f06f2(0x163),'risk':a43_0x2f06f2(0x16b),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG],async 'execute'(_0x56c42e){return syncRuntimeSkills(_0x56c42e);}};async function syncRuntimeSkills(_0x356950){const _0x57f725=a43_0x2f06f2,{downloadRuntimeSkillPackage:_0x1d0918,listRuntimeSkills:_0xeebc6}=await import(_0x57f725(0x188)),{linkEffectiveRuntimeSkills:_0x24ad26,materializeRuntimeSkill:_0xc1955f,pruneStaleRuntimeSkillCache:_0x10b8e2,pruneStaleRuntimeSkillLinks:_0x31fa0f}=await import('../../../skills/runtime-skill-sync.js'),_0x5999e6=_0x356950[_0x57f725(0x179)](_0x57f725(0x185)),_0x4ad632=normalizeSyncScopes(_0x356950['str'](_0x57f725(0x165))),_0x1b1710=_0x356950['envName']??_0x57f725(0x16a),_0x348a9b=_0x356950[_0x57f725(0x160)],_0x337682=_0x356950['bool'](_0x57f725(0x174));if(!_0x348a9b)throw CliErrors[_0x57f725(0x164)](_0x57f725(0x18a));const _0xf90354=await Promise[_0x57f725(0x182)](_0x4ad632[_0x57f725(0x171)](_0x1cb58b=>_0xeebc6({'appCode':_0x356950[_0x57f725(0x177)],'scope':_0x1cb58b,'code':_0x5999e6[_0x57f725(0x16c)]()||undefined}))),_0x278741=_0x4ad632[_0x57f725(0x18c)](_0x57f725(0x17f))?_0xf90354[_0x57f725(0x178)]((_0x79e2d4,_0x2a053d)=>_0x4ad632[_0x2a053d]==='personal'?_0x79e2d4[_0x57f725(0x17f)]:[]):[],_0x92e04f=_0x4ad632[_0x57f725(0x18c)](_0x57f725(0x183))?_0xf90354[_0x57f725(0x178)]((_0x205fc3,_0x2279ab)=>_0x4ad632[_0x2279ab]===_0x57f725(0x183)?_0x205fc3[_0x57f725(0x183)]:[]):[],_0x53a9da=new Set([..._0x278741[_0x57f725(0x171)](_0x3123b4=>_0x3123b4[_0x57f725(0x187)]?.[_0x57f725(0x16c)]())[_0x57f725(0x162)](_0x14a2aa=>Boolean(_0x14a2aa)),..._0x92e04f[_0x57f725(0x171)](_0x90f3d8=>_0x90f3d8[_0x57f725(0x187)]?.[_0x57f725(0x16c)]())[_0x57f725(0x162)](_0x31e6aa=>Boolean(_0x31e6aa))]),_0x10c528=_0x5999e6[_0x57f725(0x16c)]()?[_0x5999e6['trim']()]:undefined,_0xfb51ea=_0x4ad632['length']===0x2&&_0x4ad632[_0x57f725(0x18c)](_0x57f725(0x17f))&&_0x4ad632[_0x57f725(0x18c)](_0x57f725(0x183)),_0x21e998=_0xfb51ea?_0x31fa0f(_0x356950['appCode'],_0x53a9da,{},_0x10c528):[],_0x590611=_0x10b8e2({'env':_0x1b1710,'accessKey':_0x348a9b,'appCode':_0x356950[_0x57f725(0x177)],'activeSkillCodes':_0x53a9da,'pruneSkillCodes':_0x10c528,'scopes':_0x4ad632}),_0x3e4f2c=[];for(const _0x4563f4 of _0x278741){_0x3e4f2c['push'](_0xc1955f(_0x4563f4,_0x57f725(0x17f),{'env':_0x1b1710,'accessKey':_0x348a9b,'appCode':_0x356950[_0x57f725(0x177)],'force':_0x337682,'packageBytes':await downloadSkillPackage(_0x4563f4,'personal',_0x356950['appCode'],_0x1d0918)}));}for(const _0x30ec0e of _0x92e04f){_0x3e4f2c['push'](_0xc1955f(_0x30ec0e,_0x57f725(0x183),{'env':_0x1b1710,'accessKey':_0x348a9b,'appCode':_0x356950['appCode'],'force':_0x337682,'packageBytes':await downloadSkillPackage(_0x30ec0e,_0x57f725(0x183),_0x356950[_0x57f725(0x177)],_0x1d0918)}));}const _0x294a7d=_0x24ad26(_0x3e4f2c,_0x356950[_0x57f725(0x177)]),_0x237c41=countLinkActions(_0x294a7d);return{'ok':!![],'data':{'appCode':_0x356950[_0x57f725(0x177)],'personal':_0x278741[_0x57f725(0x166)],'company':_0x92e04f[_0x57f725(0x166)],'materialized':_0x3e4f2c[_0x57f725(0x166)],'links':{'total':_0x294a7d[_0x57f725(0x166)],'created':_0x237c41[_0x57f725(0x173)]??0x0,'updated':_0x237c41[_0x57f725(0x181)]??0x0,'unchanged':_0x237c41[_0x57f725(0x15e)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x21e998[_0x57f725(0x162)](_0x921dc4=>_0x921dc4['action']===_0x57f725(0x16d))[_0x57f725(0x166)],'cacheDirs':_0x590611['filter'](_0x58a28f=>_0x58a28f['action']===_0x57f725(0x16d))[_0x57f725(0x166)],'skipped':[..._0x21e998,..._0x590611][_0x57f725(0x162)](_0x2502ba=>_0x2502ba[_0x57f725(0x189)]===_0x57f725(0x16e))[_0x57f725(0x166)]},'skills':{'personal':_0x278741[_0x57f725(0x171)](summarizeRuntimeSkill),'company':_0x92e04f[_0x57f725(0x171)](summarizeRuntimeSkill)}},'message':_0x57f725(0x176)+_0x278741[_0x57f725(0x166)]+_0x57f725(0x169)+_0x92e04f['length']+_0x57f725(0x184)};}async function downloadSkillPackage(_0x3e0a07,_0x1dc1e7,_0x11717b,_0x30224c){const _0x188704=a43_0x2f06f2,_0xbeba2e=_0x3e0a07[_0x188704(0x170)]?.[_0x188704(0x16c)]();return _0xbeba2e?_0x30224c(_0x1dc1e7,_0x3e0a07['skillCode'],_0x11717b,_0xbeba2e):_0x30224c(_0x1dc1e7,_0x3e0a07[_0x188704(0x187)],_0x11717b);}function countLinkActions(_0xae7f99){const _0x362243=a43_0x2f06f2;return _0xae7f99[_0x362243(0x167)]((_0x38f840,_0x5e572d)=>{const _0x31b823=_0x362243;return _0x38f840[_0x5e572d[_0x31b823(0x189)]]=(_0x38f840[_0x5e572d['action']]??0x0)+0x1,_0x38f840;},{});}
1
+ const a43_0x4a7ea5=a43_0x17f9;(function(_0x18145f,_0x735aab){const _0x322b0e=a43_0x17f9,_0x6b3aaa=_0x18145f();while(!![]){try{const _0x4ba39b=parseInt(_0x322b0e(0xc5))/0x1*(-parseInt(_0x322b0e(0xd5))/0x2)+parseInt(_0x322b0e(0xb5))/0x3*(-parseInt(_0x322b0e(0xb2))/0x4)+parseInt(_0x322b0e(0xbe))/0x5+-parseInt(_0x322b0e(0xc6))/0x6+-parseInt(_0x322b0e(0xcf))/0x7+-parseInt(_0x322b0e(0xd2))/0x8+parseInt(_0x322b0e(0xc0))/0x9*(parseInt(_0x322b0e(0xc4))/0xa);if(_0x4ba39b===_0x735aab)break;else _0x6b3aaa['push'](_0x6b3aaa['shift']());}catch(_0x355ad1){_0x6b3aaa['push'](_0x6b3aaa['shift']());}}}(a43_0x26da,0xc3ddc));function a43_0x26da(){const _0x108cde=['4601280resCSW','3cyVOFx','5652270ExFyVo','../../../core/api-client.js','removed','personal','length','appCode','action','production','map','1291738lEBkZj','code','updated','3105032BsKrRp','flatMap','company','5542nSwdEz','skipped','scope','bool','authRequired','write','reduce','all','force','5328WcWkBg','version','skillCode','2097ldkMaA','accessKey','unchanged','str','push','install','filter','\x20company\x20Skill(s).','Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','177305bJLkIG','Installed\x20','63QkTwto','trim','../../../skills/runtime-skill-sync.js','includes'];a43_0x26da=function(){return _0x108cde;};return a43_0x26da();}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';function a43_0x17f9(_0x5b26f5,_0x39f110){_0x5b26f5=_0x5b26f5-0xb2;const _0x26daba=a43_0x26da();let _0x17f989=_0x26daba[_0x5b26f5];return _0x17f989;}export const installCommand={'service':'skill','command':a43_0x4a7ea5(0xba),'description':a43_0x4a7ea5(0xbd),'risk':a43_0x4a7ea5(0xda),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG],async 'execute'(_0x499278){return syncRuntimeSkills(_0x499278);}};async function syncRuntimeSkills(_0x22b579){const _0x3e15f2=a43_0x4a7ea5,{downloadRuntimeSkillPackage:_0x2ffad9,listRuntimeSkills:_0x389115}=await import(_0x3e15f2(0xc7)),{linkEffectiveRuntimeSkills:_0x52a8a8,materializeRuntimeSkill:_0x2dee34,pruneStaleRuntimeSkillCache:_0xe479e3,pruneStaleRuntimeSkillLinks:_0x56ae62}=await import(_0x3e15f2(0xc2)),_0xc6e1c7=_0x22b579[_0x3e15f2(0xb8)](_0x3e15f2(0xd0)),_0x10b3ab=normalizeSyncScopes(_0x22b579[_0x3e15f2(0xb8)](_0x3e15f2(0xd7))),_0x45097f=_0x22b579['envName']??_0x3e15f2(0xcd),_0x2ed106=_0x22b579[_0x3e15f2(0xb6)],_0x1381a4=_0x22b579[_0x3e15f2(0xd8)](_0x3e15f2(0xdd));if(!_0x2ed106)throw CliErrors[_0x3e15f2(0xd9)]('Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.');const _0x140197=await Promise[_0x3e15f2(0xdc)](_0x10b3ab['map'](_0x16726f=>_0x389115({'appCode':_0x22b579[_0x3e15f2(0xcb)],'scope':_0x16726f,'code':_0xc6e1c7['trim']()||undefined}))),_0x586385=_0x10b3ab[_0x3e15f2(0xc3)](_0x3e15f2(0xc9))?_0x140197[_0x3e15f2(0xd3)]((_0x5db857,_0xfa0e82)=>_0x10b3ab[_0xfa0e82]==='personal'?_0x5db857[_0x3e15f2(0xc9)]:[]):[],_0x26d658=_0x10b3ab['includes'](_0x3e15f2(0xd4))?_0x140197[_0x3e15f2(0xd3)]((_0x40f830,_0x57fe36)=>_0x10b3ab[_0x57fe36]===_0x3e15f2(0xd4)?_0x40f830[_0x3e15f2(0xd4)]:[]):[],_0x2fd0d6=new Set([..._0x586385[_0x3e15f2(0xce)](_0x113ced=>_0x113ced['skillCode']?.[_0x3e15f2(0xc1)]())[_0x3e15f2(0xbb)](_0xafd1af=>Boolean(_0xafd1af)),..._0x26d658[_0x3e15f2(0xce)](_0x2ae72e=>_0x2ae72e['skillCode']?.[_0x3e15f2(0xc1)]())[_0x3e15f2(0xbb)](_0x34fe97=>Boolean(_0x34fe97))]),_0x3010d8=_0xc6e1c7[_0x3e15f2(0xc1)]()?[_0xc6e1c7[_0x3e15f2(0xc1)]()]:undefined,_0x21699c=_0x10b3ab[_0x3e15f2(0xca)]===0x2&&_0x10b3ab[_0x3e15f2(0xc3)]('personal')&&_0x10b3ab[_0x3e15f2(0xc3)](_0x3e15f2(0xd4)),_0x5f2e96=_0x21699c?_0x56ae62(_0x22b579[_0x3e15f2(0xcb)],_0x2fd0d6,{},_0x3010d8):[],_0x285cd4=_0xe479e3({'env':_0x45097f,'accessKey':_0x2ed106,'appCode':_0x22b579['appCode'],'activeSkillCodes':_0x2fd0d6,'pruneSkillCodes':_0x3010d8,'scopes':_0x10b3ab}),_0x276ef6=[];for(const _0x3c1954 of _0x586385){_0x276ef6['push'](_0x2dee34(_0x3c1954,'personal',{'env':_0x45097f,'accessKey':_0x2ed106,'appCode':_0x22b579[_0x3e15f2(0xcb)],'force':_0x1381a4,'packageBytes':await downloadSkillPackage(_0x3c1954,_0x3e15f2(0xc9),_0x22b579['appCode'],_0x2ffad9)}));}for(const _0x12d77e of _0x26d658){_0x276ef6[_0x3e15f2(0xb9)](_0x2dee34(_0x12d77e,_0x3e15f2(0xd4),{'env':_0x45097f,'accessKey':_0x2ed106,'appCode':_0x22b579[_0x3e15f2(0xcb)],'force':_0x1381a4,'packageBytes':await downloadSkillPackage(_0x12d77e,_0x3e15f2(0xd4),_0x22b579[_0x3e15f2(0xcb)],_0x2ffad9)}));}const _0x394523=_0x52a8a8(_0x276ef6,_0x22b579[_0x3e15f2(0xcb)]),_0x44942b=countLinkActions(_0x394523);return{'ok':!![],'data':{'appCode':_0x22b579['appCode'],'personal':_0x586385[_0x3e15f2(0xca)],'company':_0x26d658[_0x3e15f2(0xca)],'materialized':_0x276ef6['length'],'links':{'total':_0x394523[_0x3e15f2(0xca)],'created':_0x44942b['created']??0x0,'updated':_0x44942b[_0x3e15f2(0xd1)]??0x0,'unchanged':_0x44942b[_0x3e15f2(0xb7)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x5f2e96['filter'](_0x2d496c=>_0x2d496c[_0x3e15f2(0xcc)]===_0x3e15f2(0xc8))[_0x3e15f2(0xca)],'cacheDirs':_0x285cd4[_0x3e15f2(0xbb)](_0x559cff=>_0x559cff[_0x3e15f2(0xcc)]===_0x3e15f2(0xc8))[_0x3e15f2(0xca)],'skipped':[..._0x5f2e96,..._0x285cd4][_0x3e15f2(0xbb)](_0x40a95b=>_0x40a95b['action']===_0x3e15f2(0xd6))[_0x3e15f2(0xca)]},'skills':{'personal':_0x586385[_0x3e15f2(0xce)](summarizeRuntimeSkill),'company':_0x26d658[_0x3e15f2(0xce)](summarizeRuntimeSkill)}},'message':_0x3e15f2(0xbf)+_0x586385[_0x3e15f2(0xca)]+'\x20personal\x20and\x20'+_0x26d658[_0x3e15f2(0xca)]+_0x3e15f2(0xbc)};}async function downloadSkillPackage(_0xbef1cb,_0x32e20b,_0x5dca68,_0x435ec5){const _0x23d96c=a43_0x4a7ea5,_0x3d1844=_0xbef1cb[_0x23d96c(0xb3)]?.[_0x23d96c(0xc1)]();return _0x3d1844?_0x435ec5(_0x32e20b,_0xbef1cb[_0x23d96c(0xb4)],_0x5dca68,_0x3d1844):_0x435ec5(_0x32e20b,_0xbef1cb[_0x23d96c(0xb4)],_0x5dca68);}function countLinkActions(_0x2b9371){const _0x5dd3b2=a43_0x4a7ea5;return _0x2b9371[_0x5dd3b2(0xdb)]((_0x4c5d95,_0x4c6b96)=>{const _0x2feb71=_0x5dd3b2;return _0x4c5d95[_0x4c6b96[_0x2feb71(0xcc)]]=(_0x4c5d95[_0x4c6b96[_0x2feb71(0xcc)]]??0x0)+0x1,_0x4c5d95;},{});}
@@ -1 +1 @@
1
- const a44_0x417570=a44_0x18d5;function a44_0x18d5(_0x40890e,_0x5a1438){_0x40890e=_0x40890e-0x15e;const _0x50a694=a44_0x50a6();let _0x18d5c7=_0x50a694[_0x40890e];return _0x18d5c7;}function a44_0x50a6(){const _0x4ab451=['personal','233058yKxAXo','map','\x20local\x20Skill(s).','company','skill','appCode','1094409hvhukk','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','code','4192388LMeVTg','scope','Listed\x20','remote','1128nTBKCa','envName','\x20remote\x20Skill(s).','13710WoNrXk','str','builtin','20120296xeDgQN','bool','1722286Hqzvry','list','accessKey','7872676PjxOky','length','local','filter','../../../skills/runtime-skill-sync.js','trim','read'];a44_0x50a6=function(){return _0x4ab451;};return a44_0x50a6();}(function(_0x4bb3d5,_0x22d0c8){const _0x48fc03=a44_0x18d5,_0x2e563c=_0x4bb3d5();while(!![]){try{const _0x4ab4cb=-parseInt(_0x48fc03(0x16a))/0x1+-parseInt(_0x48fc03(0x15f))/0x2+-parseInt(_0x48fc03(0x170))/0x3+-parseInt(_0x48fc03(0x173))/0x4+parseInt(_0x48fc03(0x17a))/0x5*(-parseInt(_0x48fc03(0x177))/0x6)+parseInt(_0x48fc03(0x162))/0x7+parseInt(_0x48fc03(0x17d))/0x8;if(_0x4ab4cb===_0x22d0c8)break;else _0x2e563c['push'](_0x2e563c['shift']());}catch(_0x921254){_0x2e563c['push'](_0x2e563c['shift']());}}}(a44_0x50a6,0x96a94));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';export const listCommand={'service':a44_0x417570(0x16e),'command':a44_0x417570(0x160),'description':a44_0x417570(0x171),'risk':a44_0x417570(0x168),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x2b3d9f){const _0x3556d7=a44_0x417570,_0x858c29=_0x2b3d9f[_0x3556d7(0x17b)](_0x3556d7(0x172)),_0x2f0d08=normalizeListScope(_0x2b3d9f[_0x3556d7(0x17b)]('scope'));if(_0x2b3d9f[_0x3556d7(0x15e)](_0x3556d7(0x164))){const _0x782f9a=_0x2b3d9f[_0x3556d7(0x161)];if(!_0x782f9a)throw CliErrors['authRequired']();const {listLocalRuntimeSkills:_0x43a12b}=await import(_0x3556d7(0x166)),_0x225d24=_0x43a12b({'env':_0x2b3d9f[_0x3556d7(0x178)]??'production','accessKey':_0x782f9a,'appCode':_0x2b3d9f[_0x3556d7(0x16f)],'scopes':listScopeToRuntimeScopes(_0x2f0d08),'code':_0x858c29[_0x3556d7(0x167)]()||undefined}),_0x151e2e=groupLocalRuntimeSkills(_0x225d24);return{'ok':!![],'data':{'appCode':_0x2b3d9f[_0x3556d7(0x16f)],'source':'local','scope':_0x2f0d08,'total':_0x225d24[_0x3556d7(0x163)],'personal':_0x151e2e[_0x3556d7(0x169)]['length'],'company':_0x151e2e[_0x3556d7(0x16d)][_0x3556d7(0x163)],'items':_0x225d24[_0x3556d7(0x16b)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x151e2e[_0x3556d7(0x169)][_0x3556d7(0x16b)](summarizeLocalRuntimeSkill),'company':_0x151e2e['company'][_0x3556d7(0x16b)](summarizeLocalRuntimeSkill)}},'message':_0x3556d7(0x175)+_0x225d24[_0x3556d7(0x163)]+_0x3556d7(0x16c)};}const {listRuntimeSkills:_0x373ea4}=await import('../../../core/api-client.js'),_0x3e9233=await _0x373ea4({'appCode':_0x2b3d9f['appCode'],'scope':listScopeToRemoteScope(_0x2f0d08),'code':_0x858c29[_0x3556d7(0x167)]()||undefined}),_0x2d916e=shouldListScope(_0x2f0d08,'personal')?_0x3e9233['personal']??[]:[],_0x247635=shouldListScope(_0x2f0d08,'company')?_0x3e9233[_0x3556d7(0x16d)]??[]:[],_0x414cd6=[..._0x2d916e,..._0x247635];return{'ok':!![],'data':{'appCode':_0x2b3d9f[_0x3556d7(0x16f)],'source':_0x3556d7(0x176),'scope':_0x2f0d08,'total':_0x414cd6[_0x3556d7(0x163)],'personal':_0x2d916e[_0x3556d7(0x163)],'company':_0x247635[_0x3556d7(0x163)],'items':_0x414cd6['map'](summarizeRuntimeSkill),'skills':{'personal':_0x2d916e[_0x3556d7(0x16b)](summarizeRuntimeSkill),'company':_0x247635[_0x3556d7(0x16b)](summarizeRuntimeSkill)}},'message':'Listed\x20'+_0x414cd6[_0x3556d7(0x163)]+_0x3556d7(0x179)};}};function groupLocalRuntimeSkills(_0x15b83b){const _0x233da0=a44_0x417570;return{'personal':_0x15b83b[_0x233da0(0x165)](_0x12e6f2=>_0x12e6f2[_0x233da0(0x174)]===_0x233da0(0x169)),'company':_0x15b83b['filter'](_0x3e4c1c=>_0x3e4c1c[_0x233da0(0x174)]==='company'),'builtin':_0x15b83b['filter'](_0x1f3148=>_0x1f3148[_0x233da0(0x174)]===_0x233da0(0x17c))};}
1
+ const a44_0x270c86=a44_0x3d4e;(function(_0x10af27,_0x7a1ca6){const _0x527efd=a44_0x3d4e,_0x379e2f=_0x10af27();while(!![]){try{const _0x43f4f7=-parseInt(_0x527efd(0xf5))/0x1*(parseInt(_0x527efd(0xf4))/0x2)+parseInt(_0x527efd(0xf9))/0x3+-parseInt(_0x527efd(0x10b))/0x4+-parseInt(_0x527efd(0x103))/0x5+-parseInt(_0x527efd(0xf7))/0x6+-parseInt(_0x527efd(0x10c))/0x7*(-parseInt(_0x527efd(0x101))/0x8)+parseInt(_0x527efd(0x102))/0x9;if(_0x43f4f7===_0x7a1ca6)break;else _0x379e2f['push'](_0x379e2f['shift']());}catch(_0x1353b1){_0x379e2f['push'](_0x379e2f['shift']());}}}(a44_0x41a5,0x80df2));function a44_0x41a5(){const _0x32352c=['4743865hxzltK','builtin','skill','company','bool','\x20remote\x20Skill(s).','str','personal','677676ObpXwq','7piylZd','production','list','read','envName','filter','local','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','accessKey','36idZZgO','16211FvXzgh','map','6010494wRBbiZ','length','1391934jLBgdv','appCode','Listed\x20','\x20local\x20Skill(s).','scope','authRequired','trim','../../../core/api-client.js','2252216eyRKmo','19746828CfRFPq'];a44_0x41a5=function(){return _0x32352c;};return a44_0x41a5();}import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG}from'../flags.js';function a44_0x3d4e(_0x578578,_0x2171dd){_0x578578=_0x578578-0xee;const _0x41a57b=a44_0x41a5();let _0x3d4edd=_0x41a57b[_0x578578];return _0x3d4edd;}import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':a44_0x270c86(0x105),'command':a44_0x270c86(0x10e),'description':a44_0x270c86(0xf2),'risk':a44_0x270c86(0xee),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x4ac0e7){const _0x5e49b8=a44_0x270c86,_0x1c812d=_0x4ac0e7[_0x5e49b8(0x109)]('code'),_0x4a8ead=normalizeListScope(_0x4ac0e7[_0x5e49b8(0x109)]('scope'));if(_0x4ac0e7[_0x5e49b8(0x107)]('local')){const _0x3d9c54=_0x4ac0e7[_0x5e49b8(0xf3)];if(!_0x3d9c54)throw CliErrors[_0x5e49b8(0xfe)]();const {listLocalRuntimeSkills:_0x18358b}=await import('../../../skills/runtime-skill-sync.js'),_0x5cb58f=_0x18358b({'env':_0x4ac0e7[_0x5e49b8(0xef)]??_0x5e49b8(0x10d),'accessKey':_0x3d9c54,'appCode':_0x4ac0e7['appCode'],'scopes':listScopeToRuntimeScopes(_0x4a8ead),'code':_0x1c812d[_0x5e49b8(0xff)]()||undefined}),_0x3ca932=groupLocalRuntimeSkills(_0x5cb58f);return{'ok':!![],'data':{'appCode':_0x4ac0e7['appCode'],'source':_0x5e49b8(0xf1),'scope':_0x4a8ead,'total':_0x5cb58f[_0x5e49b8(0xf8)],'personal':_0x3ca932[_0x5e49b8(0x10a)][_0x5e49b8(0xf8)],'company':_0x3ca932[_0x5e49b8(0x106)][_0x5e49b8(0xf8)],'items':_0x5cb58f[_0x5e49b8(0xf6)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x3ca932[_0x5e49b8(0x10a)]['map'](summarizeLocalRuntimeSkill),'company':_0x3ca932['company'][_0x5e49b8(0xf6)](summarizeLocalRuntimeSkill)}},'message':_0x5e49b8(0xfb)+_0x5cb58f[_0x5e49b8(0xf8)]+_0x5e49b8(0xfc)};}const {listRuntimeSkills:_0x55aaae}=await import(_0x5e49b8(0x100)),_0x6b603a=await _0x55aaae({'appCode':_0x4ac0e7[_0x5e49b8(0xfa)],'scope':listScopeToRemoteScope(_0x4a8ead),'code':_0x1c812d['trim']()||undefined}),_0x5687de=shouldListScope(_0x4a8ead,_0x5e49b8(0x10a))?_0x6b603a[_0x5e49b8(0x10a)]??[]:[],_0xb8aef7=shouldListScope(_0x4a8ead,_0x5e49b8(0x106))?_0x6b603a[_0x5e49b8(0x106)]??[]:[],_0x308dd5=[..._0x5687de,..._0xb8aef7];return{'ok':!![],'data':{'appCode':_0x4ac0e7['appCode'],'source':'remote','scope':_0x4a8ead,'total':_0x308dd5[_0x5e49b8(0xf8)],'personal':_0x5687de['length'],'company':_0xb8aef7[_0x5e49b8(0xf8)],'items':_0x308dd5[_0x5e49b8(0xf6)](summarizeRuntimeSkill),'skills':{'personal':_0x5687de[_0x5e49b8(0xf6)](summarizeRuntimeSkill),'company':_0xb8aef7['map'](summarizeRuntimeSkill)}},'message':_0x5e49b8(0xfb)+_0x308dd5['length']+_0x5e49b8(0x108)};}};function groupLocalRuntimeSkills(_0x1544fc){const _0x56f2fa=a44_0x270c86;return{'personal':_0x1544fc['filter'](_0x35d52d=>_0x35d52d[_0x56f2fa(0xfd)]===_0x56f2fa(0x10a)),'company':_0x1544fc[_0x56f2fa(0xf0)](_0x13638f=>_0x13638f[_0x56f2fa(0xfd)]===_0x56f2fa(0x106)),'builtin':_0x1544fc[_0x56f2fa(0xf0)](_0x33028a=>_0x33028a[_0x56f2fa(0xfd)]===_0x56f2fa(0x104))};}
@@ -1 +1 @@
1
- const a45_0x25c17f=a45_0x4119;function a45_0x4119(_0x3f4b38,_0x4c9061){_0x3f4b38=_0x3f4b38-0x173;const _0x2d2440=a45_0x2d24();let _0x41192b=_0x2d2440[_0x3f4b38];return _0x41192b;}(function(_0x5010b5,_0x38dbd9){const _0x5dbc5a=a45_0x4119,_0x54efa3=_0x5010b5();while(!![]){try{const _0x56f8b7=-parseInt(_0x5dbc5a(0x174))/0x1+parseInt(_0x5dbc5a(0x179))/0x2*(-parseInt(_0x5dbc5a(0x178))/0x3)+parseInt(_0x5dbc5a(0x180))/0x4*(-parseInt(_0x5dbc5a(0x17b))/0x5)+parseInt(_0x5dbc5a(0x17d))/0x6*(parseInt(_0x5dbc5a(0x181))/0x7)+-parseInt(_0x5dbc5a(0x176))/0x8*(parseInt(_0x5dbc5a(0x17f))/0x9)+parseInt(_0x5dbc5a(0x17a))/0xa*(-parseInt(_0x5dbc5a(0x182))/0xb)+parseInt(_0x5dbc5a(0x17e))/0xc*(parseInt(_0x5dbc5a(0x177))/0xd);if(_0x56f8b7===_0x38dbd9)break;else _0x54efa3['push'](_0x54efa3['shift']());}catch(_0x4bf67b){_0x54efa3['push'](_0x54efa3['shift']());}}}(a45_0x2d24,0xdf4cf));import{CONFIRM_WARNINGS_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';function a45_0x2d24(){const _0x386240=['8mpAshp','9003527LkwPzC','9777YnIVcI','212xuHNWc','624460jnfUrK','8405mzvbyL','write','5677602JkBSwt','72OzXuOC','1336626CRruAE','888QouZKY','7xBwaoI','286bgjQVk','skill','push','1696356WDFSem','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope\x20or\x20submit\x20company\x20scope\x20for\x20review'];a45_0x2d24=function(){return _0x386240;};return a45_0x2d24();}import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':a45_0x25c17f(0x183),'command':a45_0x25c17f(0x173),'description':a45_0x25c17f(0x175),'risk':a45_0x25c17f(0x17c),'flags':[DIR_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
1
+ const a45_0x1ffd09=a45_0x259d;function a45_0x259d(_0x35b431,_0x3d5714){_0x35b431=_0x35b431-0x129;const _0x42a420=a45_0x42a4();let _0x259d6c=_0x42a420[_0x35b431];return _0x259d6c;}(function(_0x48fb8e,_0x2c4b28){const _0x3f65b7=a45_0x259d,_0x54198b=_0x48fb8e();while(!![]){try{const _0x237331=-parseInt(_0x3f65b7(0x129))/0x1+-parseInt(_0x3f65b7(0x12c))/0x2+parseInt(_0x3f65b7(0x12b))/0x3+-parseInt(_0x3f65b7(0x12d))/0x4*(-parseInt(_0x3f65b7(0x134))/0x5)+-parseInt(_0x3f65b7(0x132))/0x6*(parseInt(_0x3f65b7(0x12a))/0x7)+-parseInt(_0x3f65b7(0x12f))/0x8+parseInt(_0x3f65b7(0x131))/0x9;if(_0x237331===_0x2c4b28)break;else _0x54198b['push'](_0x54198b['shift']());}catch(_0x5a5ffd){_0x54198b['push'](_0x54198b['shift']());}}}(a45_0x42a4,0x91e0c));import{CONFIRM_WARNINGS_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';import{skillPushDryRun,skillPushExecute}from'../push-execute.js';function a45_0x42a4(){const _0x156398=['2093475nedBBS','1801072FmWzCQ','284dDrmXX','skill','4417600Jbjiuu','push','28370016BOVShb','4638PHLRRH','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope\x20or\x20submit\x20company\x20scope\x20for\x20review','15710DgQQsU','972372coCkQS','9513AedVUx'];a45_0x42a4=function(){return _0x156398;};return a45_0x42a4();}export const pushCommand={'service':a45_0x1ffd09(0x12e),'command':a45_0x1ffd09(0x130),'description':a45_0x1ffd09(0x133),'risk':'write','flags':[DIR_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
@@ -1 +1 @@
1
- function a46_0x1a27(){const _0x49497e=['skill','1825ERvpyM','warnings','Skill\x20validation\x20passed.','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','bool','129729xyQdvs','1616txxVLw','dir','4501460PaiEZK','315784TRinAl','6875BKoSIE','1884OnUOGH','209758PNImUq','6Qhghor','9EGVyfU','strict','read','2159549sENMcz','type','15QPvSIK','validate'];a46_0x1a27=function(){return _0x49497e;};return a46_0x1a27();}const a46_0x4b2168=a46_0x1923;(function(_0x2433d9,_0x43f924){const _0x4beab0=a46_0x1923,_0x193239=_0x2433d9();while(!![]){try{const _0x38e0b4=-parseInt(_0x4beab0(0xf4))/0x1+parseInt(_0x4beab0(0xfb))/0x2*(parseInt(_0x4beab0(0x102))/0x3)+parseInt(_0x4beab0(0xf5))/0x4*(-parseInt(_0x4beab0(0x105))/0x5)+parseInt(_0x4beab0(0xfc))/0x6*(-parseInt(_0x4beab0(0x100))/0x7)+-parseInt(_0x4beab0(0xf8))/0x8*(-parseInt(_0x4beab0(0xfd))/0x9)+parseInt(_0x4beab0(0xf7))/0xa+parseInt(_0x4beab0(0xf9))/0xb*(-parseInt(_0x4beab0(0xfa))/0xc);if(_0x38e0b4===_0x43f924)break;else _0x193239['push'](_0x193239['shift']());}catch(_0x3fc00f){_0x193239['push'](_0x193239['shift']());}}}(a46_0x1a27,0x509d1));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';function a46_0x1923(_0x3cc0fe,_0x13eec6){_0x3cc0fe=_0x3cc0fe-0xf4;const _0x1a27b9=a46_0x1a27();let _0x19235f=_0x1a27b9[_0x3cc0fe];return _0x19235f;}import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a46_0x4b2168(0x104),'command':a46_0x4b2168(0x103),'description':a46_0x4b2168(0x108),'risk':a46_0x4b2168(0xff),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x4fe5cc){const _0x94435c=a46_0x4b2168,_0x5af481=_0x4fe5cc[_0x94435c(0x109)](_0x94435c(0xfe)),_0x2aacae=validateSkillDirectory(_0x4fe5cc['str'](_0x94435c(0xf6)),{'strict':_0x5af481});return throwIfSkillValidationFailed(_0x2aacae,_0x5af481),{'ok':!![],'data':{'dir':_0x2aacae['dir'],'type':_0x2aacae[_0x94435c(0x101)],'errors':_0x2aacae['errors'],'warnings':_0x2aacae[_0x94435c(0x106)]},'message':_0x94435c(0x107)};}};
1
+ function a46_0x3722(_0x1f8ffb,_0x156a68){_0x1f8ffb=_0x1f8ffb-0x1eb;const _0x3a7228=a46_0x3a72();let _0x3722ce=_0x3a7228[_0x1f8ffb];return _0x3722ce;}const a46_0x1d6841=a46_0x3722;function a46_0x3a72(){const _0x5e3612=['str','strict','skill','368ykyCBY','5128LVkFEY','type','3881528lUgNKp','bool','dir','485xmucMc','warnings','143145LTUpUe','errors','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','validate','145704YgBRdY','4296714AaeZeH','read','214617eeJuFx','952820oPVxZx'];a46_0x3a72=function(){return _0x5e3612;};return a46_0x3a72();}(function(_0x1de936,_0x55bf10){const _0x21c119=a46_0x3722,_0x59086f=_0x1de936();while(!![]){try{const _0x35a17d=parseInt(_0x21c119(0x1f8))/0x1+-parseInt(_0x21c119(0x1f9))/0x2+-parseInt(_0x21c119(0x1f5))/0x3+parseInt(_0x21c119(0x1fe))/0x4*(-parseInt(_0x21c119(0x1ef))/0x5)+parseInt(_0x21c119(0x1f6))/0x6+-parseInt(_0x21c119(0x1ec))/0x7+-parseInt(_0x21c119(0x1fd))/0x8*(-parseInt(_0x21c119(0x1f1))/0x9);if(_0x35a17d===_0x55bf10)break;else _0x59086f['push'](_0x59086f['shift']());}catch(_0x5963cc){_0x59086f['push'](_0x59086f['shift']());}}}(a46_0x3a72,0x6ff22));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a46_0x1d6841(0x1fc),'command':a46_0x1d6841(0x1f4),'description':a46_0x1d6841(0x1f3),'risk':a46_0x1d6841(0x1f7),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x5410c7){const _0x312891=a46_0x1d6841,_0x2a66d2=_0x5410c7[_0x312891(0x1ed)](_0x312891(0x1fb)),_0x453f87=validateSkillDirectory(_0x5410c7[_0x312891(0x1fa)](_0x312891(0x1ee)),{'strict':_0x2a66d2});return throwIfSkillValidationFailed(_0x453f87,_0x2a66d2),{'ok':!![],'data':{'dir':_0x453f87['dir'],'type':_0x453f87[_0x312891(0x1eb)],'errors':_0x453f87[_0x312891(0x1f2)],'warnings':_0x453f87[_0x312891(0x1f0)]},'message':'Skill\x20validation\x20passed.'};}};
@@ -1 +1 @@
1
- const a47_0xc45550=a47_0x3352;(function(_0x57ac2c,_0x182f23){const _0x45be33=a47_0x3352,_0xa2ed0b=_0x57ac2c();while(!![]){try{const _0x2d8887=parseInt(_0x45be33(0x9a))/0x1+-parseInt(_0x45be33(0x98))/0x2*(-parseInt(_0x45be33(0x7e))/0x3)+-parseInt(_0x45be33(0x81))/0x4*(-parseInt(_0x45be33(0x8f))/0x5)+-parseInt(_0x45be33(0x7a))/0x6+parseInt(_0x45be33(0x8a))/0x7*(parseInt(_0x45be33(0x91))/0x8)+-parseInt(_0x45be33(0x86))/0x9+parseInt(_0x45be33(0x7d))/0xa*(-parseInt(_0x45be33(0x85))/0xb);if(_0x2d8887===_0x182f23)break;else _0xa2ed0b['push'](_0xa2ed0b['shift']());}catch(_0xd2f622){_0xa2ed0b['push'](_0xa2ed0b['shift']());}}}(a47_0x1f75,0x8e2c4));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';function a47_0x3352(_0x4a6c2d,_0x5f5d7d){_0x4a6c2d=_0x4a6c2d-0x76;const _0x1f75d6=a47_0x1f75();let _0x33529b=_0x1f75d6[_0x4a6c2d];return _0x33529b;}export const CODE_FLAG={'name':'code','type':a47_0xc45550(0x78),'description':a47_0xc45550(0x7c)};export const SCOPE_FLAG={'name':a47_0xc45550(0x80),'type':'string','description':a47_0xc45550(0x93),'enum':['all',a47_0xc45550(0x76),a47_0xc45550(0x90)]};export const PUSH_SCOPE_FLAG={'name':a47_0xc45550(0x80),'type':a47_0xc45550(0x78),'description':a47_0xc45550(0x96),'default':a47_0xc45550(0x76),'enum':[a47_0xc45550(0x76),'company']};export const LIST_SCOPE_FLAG={'name':a47_0xc45550(0x80),'type':a47_0xc45550(0x78),'description':'Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','enum':[a47_0xc45550(0x77),'personal','company']};export const LOCAL_FLAG={'name':a47_0xc45550(0x92),'type':a47_0xc45550(0x82),'description':a47_0xc45550(0x8b)};export const DIR_FLAG={'name':a47_0xc45550(0x79),'type':a47_0xc45550(0x78),'required':!![],'description':a47_0xc45550(0x84)};export const CREATE_NAME_FLAG={'name':a47_0xc45550(0x97),'type':'string','required':!![],'description':a47_0xc45550(0x89),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a47_0xc45550(0x83)}};export const TYPE_FLAG={'name':a47_0xc45550(0x8e),'type':'string','description':a47_0xc45550(0x7f),'default':a47_0xc45550(0x94),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a47_0xc45550(0x95),'type':'string','description':a47_0xc45550(0x8d),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a47_0xc45550(0x99),'type':a47_0xc45550(0x82),'description':a47_0xc45550(0x7b)};export const CONFIRM_WARNINGS_FLAG={'name':a47_0xc45550(0x88),'type':a47_0xc45550(0x82),'description':a47_0xc45550(0x87)};export const STRICT_FLAG={'name':a47_0xc45550(0x8c),'type':a47_0xc45550(0x82),'description':'Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled'};function a47_0x1f75(){const _0x1c120c=['target','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','name','2fvPKNG','force','9199ViqPqt','personal','all','string','dir','2281200QueeTV','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','10yOnqhY','1562523yGyRVv','Skill\x20template\x20type','scope','54968CLAzpd','boolean','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','Local\x20Skill\x20directory\x20containing\x20SKILL.md','1385252CsTmdM','4258503ZLiEBC','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','confirm-warnings','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','97937DdwcjY','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','strict','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','type','75PCnSTC','company','472qYxYHO','local','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','write'];a47_0x1f75=function(){return _0x1c120c;};return a47_0x1f75();}
1
+ function a47_0x25c4(){const _0x3d5e16=['strict','write','company','dir','547748YRCdrS','scope','164643tujehS','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','65FLddYZ','local','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','boolean','Local\x20Skill\x20directory\x20containing\x20SKILL.md','target','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','Skill\x20template\x20type','confirm-warnings','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','11qTjVij','force','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','64792hpylSQ','name','7756MOPnDH','string','757860WTgIdI','code','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','4192410LUaKGR','2ZuOytt','all','5fablYi','3684ImHrvo','1107Iawpao','personal','204917PlECKf'];a47_0x25c4=function(){return _0x3d5e16;};return a47_0x25c4();}const a47_0x533f09=a47_0x3014;function a47_0x3014(_0x2aad3c,_0x16b49c){_0x2aad3c=_0x2aad3c-0x1eb;const _0x25c42c=a47_0x25c4();let _0x3014bc=_0x25c42c[_0x2aad3c];return _0x3014bc;}(function(_0x255074,_0x12e3c9){const _0x2178b9=a47_0x3014,_0x3197f4=_0x255074();while(!![]){try{const _0x35b65c=-parseInt(_0x2178b9(0x20d))/0x1+parseInt(_0x2178b9(0x207))/0x2*(parseInt(_0x2178b9(0x1ed))/0x3)+-parseInt(_0x2178b9(0x1eb))/0x4*(parseInt(_0x2178b9(0x209))/0x5)+-parseInt(_0x2178b9(0x20a))/0x6*(-parseInt(_0x2178b9(0x201))/0x7)+parseInt(_0x2178b9(0x1ff))/0x8*(parseInt(_0x2178b9(0x20b))/0x9)+parseInt(_0x2178b9(0x206))/0xa*(-parseInt(_0x2178b9(0x1fc))/0xb)+parseInt(_0x2178b9(0x203))/0xc*(-parseInt(_0x2178b9(0x1ef))/0xd);if(_0x35b65c===_0x12e3c9)break;else _0x3197f4['push'](_0x3197f4['shift']());}catch(_0x383be4){_0x3197f4['push'](_0x3197f4['shift']());}}}(a47_0x25c4,0x9fca4));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a47_0x533f09(0x204),'type':a47_0x533f09(0x202),'description':a47_0x533f09(0x1ee)};export const SCOPE_FLAG={'name':a47_0x533f09(0x1ec),'type':a47_0x533f09(0x202),'description':a47_0x533f09(0x1f4),'enum':[a47_0x533f09(0x208),'personal',a47_0x533f09(0x210)]};export const PUSH_SCOPE_FLAG={'name':a47_0x533f09(0x1ec),'type':'string','description':a47_0x533f09(0x1fb),'default':'personal','enum':[a47_0x533f09(0x20c),a47_0x533f09(0x210)]};export const LIST_SCOPE_FLAG={'name':a47_0x533f09(0x1ec),'type':a47_0x533f09(0x202),'description':'Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','enum':['all',a47_0x533f09(0x20c),'company']};export const LOCAL_FLAG={'name':a47_0x533f09(0x1f0),'type':a47_0x533f09(0x1f5),'description':a47_0x533f09(0x1f8)};export const DIR_FLAG={'name':a47_0x533f09(0x211),'type':a47_0x533f09(0x202),'required':!![],'description':a47_0x533f09(0x1f6)};export const CREATE_NAME_FLAG={'name':a47_0x533f09(0x200),'type':a47_0x533f09(0x202),'required':!![],'description':a47_0x533f09(0x1f1),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a47_0x533f09(0x1f3)}};export const TYPE_FLAG={'name':'type','type':a47_0x533f09(0x202),'description':a47_0x533f09(0x1f9),'default':a47_0x533f09(0x20f),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a47_0x533f09(0x1f7),'type':a47_0x533f09(0x202),'description':a47_0x533f09(0x1fe),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a47_0x533f09(0x1fd),'type':a47_0x533f09(0x1f5),'description':a47_0x533f09(0x205)};export const CONFIRM_WARNINGS_FLAG={'name':a47_0x533f09(0x1fa),'type':a47_0x533f09(0x1f5),'description':a47_0x533f09(0x1f2)};export const STRICT_FLAG={'name':a47_0x533f09(0x20e),'type':a47_0x533f09(0x1f5),'description':'Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled'};
@@ -1 +1 @@
1
- (function(_0x4fe937,_0x32344b){const _0x1ce57e=a48_0x4fb0,_0x1ed0aa=_0x4fe937();while(!![]){try{const _0x51d74c=-parseInt(_0x1ce57e(0x144))/0x1+parseInt(_0x1ce57e(0x145))/0x2*(parseInt(_0x1ce57e(0x13e))/0x3)+parseInt(_0x1ce57e(0x142))/0x4+-parseInt(_0x1ce57e(0x140))/0x5*(-parseInt(_0x1ce57e(0x13d))/0x6)+-parseInt(_0x1ce57e(0x13c))/0x7+parseInt(_0x1ce57e(0x141))/0x8*(parseInt(_0x1ce57e(0x143))/0x9)+-parseInt(_0x1ce57e(0x13f))/0xa;if(_0x51d74c===_0x32344b)break;else _0x1ed0aa['push'](_0x1ed0aa['shift']());}catch(_0x3d900f){_0x1ed0aa['push'](_0x1ed0aa['shift']());}}}(a48_0x29fb,0x6b364));import{createCommand}from'./commands/create.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';function a48_0x4fb0(_0x11b04a,_0x4cc7ff){_0x11b04a=_0x11b04a-0x13c;const _0x29fb47=a48_0x29fb();let _0x4fb0d3=_0x29fb47[_0x11b04a];return _0x4fb0d3;}import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand];function a48_0x29fb(){const _0x1027bf=['6584730ZCeEsE','3565hQNCPL','244448JLBOoC','1030760vXNhPP','90XTHbMN','5853iFcOpd','343208OHzRzi','602371hARsho','2382bypFvq','6IENgUz'];a48_0x29fb=function(){return _0x1027bf;};return a48_0x29fb();}
1
+ (function(_0x20bc76,_0x1b06fa){const _0x33ce65=a48_0x2ede,_0x597c91=_0x20bc76();while(!![]){try{const _0x484a67=parseInt(_0x33ce65(0x98))/0x1*(parseInt(_0x33ce65(0x92))/0x2)+-parseInt(_0x33ce65(0x96))/0x3*(-parseInt(_0x33ce65(0x9a))/0x4)+parseInt(_0x33ce65(0x99))/0x5+-parseInt(_0x33ce65(0x94))/0x6+-parseInt(_0x33ce65(0x95))/0x7*(parseInt(_0x33ce65(0x91))/0x8)+parseInt(_0x33ce65(0x97))/0x9*(-parseInt(_0x33ce65(0x90))/0xa)+-parseInt(_0x33ce65(0x93))/0xb;if(_0x484a67===_0x1b06fa)break;else _0x597c91['push'](_0x597c91['shift']());}catch(_0x485781){_0x597c91['push'](_0x597c91['shift']());}}}(a48_0x5210,0x2bae7));import{createCommand}from'./commands/create.js';function a48_0x5210(){const _0x23eefa=['1372651uihnGE','975aLhxqb','1719arYbYd','995pFJNrp','1292630aHQYOm','3916gsiFDa','10760oVMTCp','8vJaNvt','586QkLOUP','456049hvwvso','1477494bIaTDU'];a48_0x5210=function(){return _0x23eefa;};return a48_0x5210();}function a48_0x2ede(_0x3b4f28,_0x8c52cf){_0x3b4f28=_0x3b4f28-0x90;const _0x52100c=a48_0x5210();let _0x2edecf=_0x52100c[_0x3b4f28];return _0x2edecf;}import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand];
@@ -1 +1 @@
1
- function a49_0x43e6(_0x162235,_0x1fede9){_0x162235=_0x162235-0x12c;var _0x27a51b=a49_0x27a5();var _0x43e692=_0x27a51b[_0x162235];return _0x43e692;}(function(_0x2a80b4,_0x142eb3){var _0x2aa3fb=a49_0x43e6,_0x2cf66a=_0x2a80b4();while(!![]){try{var _0x11c15a=parseInt(_0x2aa3fb(0x13e))/0x1*(-parseInt(_0x2aa3fb(0x133))/0x2)+parseInt(_0x2aa3fb(0x139))/0x3*(-parseInt(_0x2aa3fb(0x138))/0x4)+-parseInt(_0x2aa3fb(0x13b))/0x5*(parseInt(_0x2aa3fb(0x132))/0x6)+parseInt(_0x2aa3fb(0x137))/0x7+-parseInt(_0x2aa3fb(0x136))/0x8*(parseInt(_0x2aa3fb(0x12f))/0x9)+-parseInt(_0x2aa3fb(0x131))/0xa*(-parseInt(_0x2aa3fb(0x13a))/0xb)+parseInt(_0x2aa3fb(0x13c))/0xc;if(_0x11c15a===_0x142eb3)break;else _0x2cf66a['push'](_0x2cf66a['shift']());}catch(_0x311310){_0x2cf66a['push'](_0x2cf66a['shift']());}}}(a49_0x27a5,0x9365d));export function isPackageBackedManifest(_0x2fbf13){var _0x4a5c45=a49_0x43e6;return!!_0x2fbf13&&typeof _0x2fbf13===_0x4a5c45(0x12e)&&!Array[_0x4a5c45(0x12c)](_0x2fbf13)&&typeof _0x2fbf13[_0x4a5c45(0x13d)]==='string'&&_0x2fbf13[_0x4a5c45(0x13d)][_0x4a5c45(0x12d)]>0x0&&Array[_0x4a5c45(0x12c)](_0x2fbf13[_0x4a5c45(0x13f)]);}export function isMultiFileManifest(_0x320cc4){var _0x525ef6=a49_0x43e6;return!!_0x320cc4&&typeof _0x320cc4===_0x525ef6(0x12e)&&!Array['isArray'](_0x320cc4)&&Array[_0x525ef6(0x12c)](_0x320cc4['files'])&&_0x320cc4['files'][_0x525ef6(0x130)](_0x4fb385=>_0x4fb385[_0x525ef6(0x135)]!==_0x525ef6(0x134));}function a49_0x27a5(){var _0x2b8920=['1tibuGS','files','isArray','length','object','9oHeawj','some','444390oLGbqT','18PzqrAo','1111946HRNawK','SKILL.md','path','8354096kUEaVW','4376043FYnOfx','28XUsmoY','97323OqtceG','231KhdZjR','1824805TVfGHS','23610936AelNdU','ossPath'];a49_0x27a5=function(){return _0x2b8920;};return a49_0x27a5();}
1
+ function a49_0x19e3(){var _0x53b949=['12025kDCBCF','path','files','124692njsHVA','isArray','79788xSJBPK','504dERhmV','5432TCDMBq','SKILL.md','72040FXAmYH','693OrPFph','string','10TVGziA','object','4062vBfmzf','975SCWFYi','75iGSJwM','12873iHMVOm','some','ossPath','138810jRmICo','276532RRmntI'];a49_0x19e3=function(){return _0x53b949;};return a49_0x19e3();}(function(_0x1a3d1f,_0x535fa3){var _0x1143bd=a49_0x2753,_0x331f30=_0x1a3d1f();while(!![]){try{var _0x34ecb8=parseInt(_0x1143bd(0x114))/0x1*(parseInt(_0x1143bd(0x10b))/0x2)+parseInt(_0x1143bd(0x10f))/0x3*(parseInt(_0x1143bd(0x118))/0x4)+-parseInt(_0x1143bd(0x115))/0x5*(parseInt(_0x1143bd(0x10d))/0x6)+-parseInt(_0x1143bd(0x110))/0x7*(parseInt(_0x1143bd(0x106))/0x8)+parseInt(_0x1143bd(0x105))/0x9*(parseInt(_0x1143bd(0x108))/0xa)+-parseInt(_0x1143bd(0x109))/0xb*(-parseInt(_0x1143bd(0x104))/0xc)+parseInt(_0x1143bd(0x10e))/0xd*(parseInt(_0x1143bd(0x113))/0xe);if(_0x34ecb8===_0x535fa3)break;else _0x331f30['push'](_0x331f30['shift']());}catch(_0x43b61b){_0x331f30['push'](_0x331f30['shift']());}}}(a49_0x19e3,0xcfc6f));function a49_0x2753(_0x3d369a,_0x382199){_0x3d369a=_0x3d369a-0x104;var _0x19e3f1=a49_0x19e3();var _0x2753fd=_0x19e3f1[_0x3d369a];return _0x2753fd;}export function isPackageBackedManifest(_0x167f1e){var _0xcff29f=a49_0x2753;return!!_0x167f1e&&typeof _0x167f1e===_0xcff29f(0x10c)&&!Array[_0xcff29f(0x119)](_0x167f1e)&&typeof _0x167f1e['ossPath']===_0xcff29f(0x10a)&&_0x167f1e[_0xcff29f(0x112)]['length']>0x0&&Array['isArray'](_0x167f1e['files']);}export function isMultiFileManifest(_0x54d7d1){var _0x2063c6=a49_0x2753;return!!_0x54d7d1&&typeof _0x54d7d1==='object'&&!Array[_0x2063c6(0x119)](_0x54d7d1)&&Array[_0x2063c6(0x119)](_0x54d7d1[_0x2063c6(0x117)])&&_0x54d7d1[_0x2063c6(0x117)][_0x2063c6(0x111)](_0x54acd8=>_0x54acd8[_0x2063c6(0x116)]!==_0x2063c6(0x107));}
@@ -1 +1 @@
1
- (function(_0x38f3c4,_0x261638){const _0x2a5a87=a50_0x4f16,_0x432da7=_0x38f3c4();while(!![]){try{const _0x39b7db=-parseInt(_0x2a5a87(0x198))/0x1+parseInt(_0x2a5a87(0x194))/0x2*(-parseInt(_0x2a5a87(0x188))/0x3)+-parseInt(_0x2a5a87(0x195))/0x4+parseInt(_0x2a5a87(0x19d))/0x5+parseInt(_0x2a5a87(0x1ac))/0x6*(-parseInt(_0x2a5a87(0x180))/0x7)+-parseInt(_0x2a5a87(0x1ae))/0x8+parseInt(_0x2a5a87(0x19f))/0x9;if(_0x39b7db===_0x261638)break;else _0x432da7['push'](_0x432da7['shift']());}catch(_0x29a396){_0x432da7['push'](_0x432da7['shift']());}}}(a50_0x6488,0x97ca9));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';function a50_0x4f16(_0x486e5a,_0x128808){_0x486e5a=_0x486e5a-0x17d;const _0x6488f9=a50_0x6488();let _0x4f1605=_0x6488f9[_0x486e5a];return _0x4f1605;}function a50_0x6488(){const _0x703f10=['files','remoteForPreflight','authRequired','submitted','status','NAMESPACE_ONLY','Updated\x20personal\x20Skill\x20','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','Created\x20personal\x20Skill\x20','errors','existing','str','120HooXJM','Personal','9563712KszYcY','identical','/publish/validate','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','PRIVATE','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','personal','savedSkill','bool','\x20version\x20','payload','332374GMkvXK','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','dir','version','publishInput','Submitted\x20company\x20Skill\x20','../../skills/runtime-skill-sync.js','scope','6087OKZUcl','resolvedVersion','\x20for\x20review','accessKey','Company','\x20Skill\x20','company','validation','input','appCode','../../core/api-client.js','valid','668sDQXII','1156284fPWAXr','\x20has\x20scope=\x22','/api/cli/v1/skills/','1074591nNgrIy','warnings','POST','resolvedSlug','skillCode','2148570dDmEDx','unknown','39406275ocHeHH'];a50_0x6488=function(){return _0x703f10;};return a50_0x6488();}import{summarizeRuntimeSkill}from'./summary.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x5afbe8){const _0x18e82c=a50_0x4f16,{getRuntimeSkillByCode:_0x343b10,validateRuntimeSkillPublish:_0x4c5f25}=await import(_0x18e82c(0x192)),{readPushDirectory:_0x23f3d9,resolvePushDirectoryIdentity:_0x476309}=await import(_0x18e82c(0x186));if(!_0x5afbe8[_0x18e82c(0x18b)])throw CliErrors[_0x18e82c(0x1a2)]();const _0x344882=resolvePushScope(_0x5afbe8),_0x5e2261=validateSkillDirectory(_0x5afbe8[_0x18e82c(0x1ab)](_0x18e82c(0x182)));throwIfSkillValidationFailed(_0x5e2261);const _0x1b63de=_0x476309(_0x5e2261[_0x18e82c(0x182)],_0x5afbe8[_0x18e82c(0x191)],remoteFirstMetadataOptions()),_0x2c90ae=await _0x343b10(_0x5afbe8[_0x18e82c(0x191)],_0x1b63de[_0x18e82c(0x19c)]);throwIfBuiltinPushTarget(_0x2c90ae);if(_0x344882==='company'){const _0x1cd769=_0x23f3d9(_0x5e2261['dir'],_0x5afbe8['appCode'],remoteMissingCompanyReadOptions()),_0x4010db=await _0x4c5f25(_0x5afbe8[_0x18e82c(0x191)],_0x1cd769[_0x18e82c(0x190)],{'visibility':_0x18e82c(0x1a5)});return{'method':_0x18e82c(0x19a),'url':_0x18e82c(0x197)+_0x5afbe8['appCode']+_0x18e82c(0x1b0),'body':{'skillCode':_0x1cd769[_0x18e82c(0x19c)],'visibility':'NAMESPACE_ONLY','valid':_0x4010db[_0x18e82c(0x193)],'errors':_0x4010db['errors'],'warnings':_0x4010db[_0x18e82c(0x199)],'resolvedSlug':_0x4010db[_0x18e82c(0x19b)],'resolvedVersion':_0x4010db[_0x18e82c(0x189)]},'description':_0x18e82c(0x1a7)};}if(_0x2c90ae&&_0x2c90ae['scope']!==_0x18e82c(0x1b4))throw CliErrors[_0x18e82c(0x18f)](_0x18e82c(0x1b3)+_0x1b63de[_0x18e82c(0x19c)]+_0x18e82c(0x196)+(_0x2c90ae[_0x18e82c(0x187)]??'unknown')+'\x22.');const _0x20651d=_0x23f3d9(_0x5e2261[_0x18e82c(0x182)],_0x5afbe8[_0x18e82c(0x191)],_0x2c90ae?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions()),_0x2588b0=await _0x4c5f25(_0x5afbe8[_0x18e82c(0x191)],_0x20651d[_0x18e82c(0x190)],{'visibility':_0x18e82c(0x1b2)});return{'method':_0x18e82c(0x19a),'url':_0x18e82c(0x197)+_0x5afbe8[_0x18e82c(0x191)]+_0x18e82c(0x1b0),'body':{'skillCode':_0x20651d[_0x18e82c(0x19c)],'visibility':_0x18e82c(0x1b2),'valid':_0x2588b0['valid'],'errors':_0x2588b0[_0x18e82c(0x1a9)],'warnings':_0x2588b0[_0x18e82c(0x199)],'resolvedSlug':_0x2588b0[_0x18e82c(0x19b)],'resolvedVersion':_0x2588b0['resolvedVersion']},'description':_0x18e82c(0x181)};}export async function skillPushExecute(_0x1dece4){const _0x11cbfc=a50_0x4f16,{createPersonalRuntimeSkill:_0x2f0b59,downloadRuntimeSkillPackage:_0x25e3a6,getRuntimeSkillByCode:_0x3a663a,publishCompanyRuntimeSkill:_0x57066b,updatePersonalRuntimeSkill:_0x394690,validateRuntimeSkillPublish:_0x5c2801}=await import(_0x11cbfc(0x192)),{verifyRuntimeSkillPackage:_0x318532,verifyRuntimeSkillBundle:_0x2e87f2,readPushDirectory:_0x45febf,refreshPushDirectoryMetadataFromRemote:_0x4bde9b,recordPushedRuntimeSkill:_0x40a9da,resolvePushDirectoryIdentity:_0x7504fa}=await import(_0x11cbfc(0x186));if(!_0x1dece4[_0x11cbfc(0x18b)])throw CliErrors[_0x11cbfc(0x1a2)]();const _0x2f3f23=resolvePushScope(_0x1dece4),_0x1c1d2d=_0x1dece4[_0x11cbfc(0x17d)]('confirm-warnings')||_0x1dece4['bool']('confirmWarnings'),_0x18a0fe=validateSkillDirectory(_0x1dece4[_0x11cbfc(0x1ab)](_0x11cbfc(0x182)));throwIfSkillValidationFailed(_0x18a0fe);const _0x4301e1=_0x18a0fe[_0x11cbfc(0x182)];let _0x151576;if(_0x2f3f23==='company'){const _0x2bcab8=_0x7504fa(_0x4301e1,_0x1dece4[_0x11cbfc(0x191)],remoteFirstMetadataOptions()),_0x21d825=await _0x3a663a(_0x1dece4[_0x11cbfc(0x191)],_0x2bcab8[_0x11cbfc(0x19c)]);throwIfBuiltinPushTarget(_0x21d825);if(_0x21d825)_0x4bde9b(_0x4301e1,_0x21d825,_0x1dece4['appCode']);const _0x390c96=_0x45febf(_0x4301e1,_0x1dece4['appCode'],_0x21d825?{'targetScope':_0x11cbfc(0x18e),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0x151576={'scope':_0x11cbfc(0x18e),'payload':_0x390c96,'publishInput':_0x390c96[_0x11cbfc(0x190)],'remoteForPreflight':_0x21d825,'warnings':[]};}else{const _0x4d2827=_0x1dece4[_0x11cbfc(0x1ab)]('appcode')['trim'](),_0x1c8df2=Boolean(_0x4d2827),_0x7f469e=allowRetargetArgs(_0x1c8df2),_0x32343c=_0x7504fa(_0x4301e1,_0x1dece4[_0x11cbfc(0x191)],{...remoteFirstMetadataOptions(),..._0x7f469e[0x0]}),_0x4546a0=await _0x3a663a(_0x1dece4[_0x11cbfc(0x191)],_0x32343c[_0x11cbfc(0x19c)]);throwIfBuiltinPushTarget(_0x4546a0);if(_0x4546a0){if(_0x4546a0[_0x11cbfc(0x187)]!=='personal'){if(_0x1c8df2)throw CliErrors[_0x11cbfc(0x18f)](_0x11cbfc(0x1b3)+_0x32343c[_0x11cbfc(0x19c)]+_0x11cbfc(0x196)+(_0x4546a0['scope']??_0x11cbfc(0x19e))+'\x22.');_0x4bde9b(_0x4301e1,_0x4546a0,_0x1dece4[_0x11cbfc(0x191)]);}else!_0x1c8df2&&_0x4bde9b(_0x4301e1,_0x4546a0,_0x1dece4[_0x11cbfc(0x191)]);}const _0x11b4fa=_0x45febf(_0x4301e1,_0x1dece4['appCode'],_0x4546a0?remotePersonalReadOptions(_0x1c8df2,_0x7f469e[0x0]):remoteMissingPersonalReadOptions(_0x7f469e[0x0])),_0x19214c=_0x4546a0?.[_0x11cbfc(0x187)]==='personal'&&_0x4546a0[_0x11cbfc(0x19c)]===_0x11b4fa[_0x11cbfc(0x19c)]?_0x4546a0:undefined,_0x5ab20c=_0x1c8df2&&_0x19214c?withRetargetExistingMetadata(_0x11b4fa[_0x11cbfc(0x190)],_0x19214c,{'preferInputSkillName':Boolean(_0x11b4fa['frontmatterDisplayName'])}):_0x11b4fa['input'],_0x454412=_0x1c8df2?buildRetargetWarning(_0x32343c['metadata'],_0x1dece4[_0x11cbfc(0x191)]):[];_0x151576={'scope':_0x11cbfc(0x1b4),'payload':_0x11b4fa,'publishInput':_0x5ab20c,'remoteForPreflight':_0x19214c,'existing':_0x19214c,'warnings':[..._0x18a0fe[_0x11cbfc(0x199)],..._0x454412]};}const _0x4e3bb2=await runRemoteContentPreflight({'scope':_0x151576[_0x11cbfc(0x187)],'remote':_0x151576[_0x11cbfc(0x1a1)],'publishInput':_0x151576[_0x11cbfc(0x184)],'skillCode':_0x151576[_0x11cbfc(0x17f)][_0x11cbfc(0x19c)],'appCode':_0x1dece4[_0x11cbfc(0x191)],'downloadRuntimeSkillPackage':_0x25e3a6,'verifyRuntimeSkillBundle':_0x2e87f2});if(_0x4e3bb2[_0x11cbfc(0x1a4)]===_0x11cbfc(0x1af))return _0x151576[_0x11cbfc(0x187)]===_0x11cbfc(0x18e)?_0x40a9da(_0x4301e1,_0x4e3bb2[_0x11cbfc(0x1b5)],_0x1dece4[_0x11cbfc(0x191)],{'scope':'company'}):_0x40a9da(_0x4301e1,_0x4e3bb2[_0x11cbfc(0x1b5)],_0x1dece4[_0x11cbfc(0x191)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x4e3bb2[_0x11cbfc(0x1b5)]),'scope':_0x151576['scope'],..._0x151576['scope']===_0x11cbfc(0x1b4)?{'warnings':_0x151576['warnings']}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0x151576[_0x11cbfc(0x187)])+_0x11cbfc(0x18d)+_0x151576[_0x11cbfc(0x17f)][_0x11cbfc(0x19c)]+_0x11cbfc(0x1b1)};if(_0x151576[_0x11cbfc(0x187)]===_0x11cbfc(0x18e)){const _0x250a17=await _0x5c2801(_0x1dece4[_0x11cbfc(0x191)],_0x151576[_0x11cbfc(0x184)],{'visibility':_0x11cbfc(0x1a5)});throwIfPublishValidationFailed(_0x11cbfc(0x18e),_0x151576[_0x11cbfc(0x17f)]['skillCode'],_0x250a17),throwIfUnconfirmedPublishWarnings(_0x11cbfc(0x18e),_0x151576[_0x11cbfc(0x17f)][_0x11cbfc(0x19c)],_0x250a17[_0x11cbfc(0x199)],_0x1c1d2d);const _0x2d1dbe=await _0x57066b(_0x1dece4['appCode'],_0x151576[_0x11cbfc(0x184)],{'confirmWarnings':_0x1c1d2d});return _0x40a9da(_0x4301e1,{..._0x2d1dbe,'files':_0x151576[_0x11cbfc(0x184)][_0x11cbfc(0x1a0)]},_0x1dece4[_0x11cbfc(0x191)],{'scope':_0x11cbfc(0x18e)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x2d1dbe),'scope':_0x11cbfc(0x18e),'reviewState':_0x11cbfc(0x1a3),'submittedForReview':!![],'validation':{'warnings':_0x250a17[_0x11cbfc(0x199)]}},'message':_0x11cbfc(0x185)+_0x151576[_0x11cbfc(0x17f)][_0x11cbfc(0x19c)]+_0x11cbfc(0x17e)+(_0x2d1dbe[_0x11cbfc(0x183)]??'(unknown)')+_0x11cbfc(0x18a)};}const _0x9c895b=await _0x5c2801(_0x1dece4[_0x11cbfc(0x191)],_0x151576[_0x11cbfc(0x184)],{'visibility':_0x11cbfc(0x1b2)});throwIfPublishValidationFailed(_0x11cbfc(0x1b4),_0x151576[_0x11cbfc(0x17f)]['skillCode'],_0x9c895b),throwIfUnconfirmedPublishWarnings(_0x11cbfc(0x1b4),_0x151576[_0x11cbfc(0x17f)][_0x11cbfc(0x19c)],_0x9c895b[_0x11cbfc(0x199)],_0x1c1d2d);const _0x4dee25={'confirmWarnings':_0x1c1d2d},_0x1635dc=_0x151576[_0x11cbfc(0x1aa)]?await _0x394690(_0x151576[_0x11cbfc(0x17f)][_0x11cbfc(0x19c)],_0x1dece4[_0x11cbfc(0x191)],_0x151576[_0x11cbfc(0x184)],_0x4dee25):await _0x2f0b59(_0x1dece4['appCode'],_0x151576[_0x11cbfc(0x184)],_0x4dee25);let _0x2ce2a2=_0x1635dc;if(isMultiFileManifest(_0x151576[_0x11cbfc(0x184)][_0x11cbfc(0x1a0)])){const _0x19a9cd=await _0x25e3a6(_0x11cbfc(0x1b4),_0x1635dc[_0x11cbfc(0x19c)]||_0x151576[_0x11cbfc(0x17f)][_0x11cbfc(0x19c)],_0x1dece4[_0x11cbfc(0x191)]);_0x2e87f2(_0x151576[_0x11cbfc(0x184)][_0x11cbfc(0x1a0)],_0x19a9cd),_0x2ce2a2={..._0x1635dc,'files':_0x151576[_0x11cbfc(0x184)]['files']};}else{if(isPackageBackedManifest(_0x1635dc[_0x11cbfc(0x1a0)])){const _0x3ef86a=await _0x25e3a6('personal',_0x1635dc[_0x11cbfc(0x19c)]||_0x151576[_0x11cbfc(0x17f)][_0x11cbfc(0x19c)],_0x1dece4['appCode']);_0x318532(_0x1635dc[_0x11cbfc(0x1a0)],_0x3ef86a);}}return _0x40a9da(_0x4301e1,_0x2ce2a2,_0x1dece4[_0x11cbfc(0x191)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x1635dc),'warnings':_0x151576[_0x11cbfc(0x199)],'validation':{'warnings':_0x9c895b['warnings']}},'message':_0x151576[_0x11cbfc(0x1aa)]?_0x11cbfc(0x1a6)+_0x151576['payload'][_0x11cbfc(0x19c)]:_0x11cbfc(0x1a8)+_0x151576[_0x11cbfc(0x17f)]['skillCode']};}function scopeLabel(_0x5c576a){const _0x499632=a50_0x4f16;return _0x5c576a===_0x499632(0x18e)?_0x499632(0x18c):_0x499632(0x1ad);}
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 +1 @@
1
- (function(_0x35611d,_0x469e1b){const _0x1d7bb9=a51_0x4935,_0x2c4f4f=_0x35611d();while(!![]){try{const _0x232c3d=parseInt(_0x1d7bb9(0x1c7))/0x1*(-parseInt(_0x1d7bb9(0x1b3))/0x2)+-parseInt(_0x1d7bb9(0x1aa))/0x3*(parseInt(_0x1d7bb9(0x1b8))/0x4)+parseInt(_0x1d7bb9(0x1c0))/0x5+-parseInt(_0x1d7bb9(0x1a8))/0x6+parseInt(_0x1d7bb9(0x1d2))/0x7+parseInt(_0x1d7bb9(0x1d4))/0x8*(-parseInt(_0x1d7bb9(0x1af))/0x9)+parseInt(_0x1d7bb9(0x1c3))/0xa;if(_0x232c3d===_0x469e1b)break;else _0x2c4f4f['push'](_0x2c4f4f['shift']());}catch(_0x1ab453){_0x2c4f4f['push'](_0x2c4f4f['shift']());}}}(a51_0x4683,0xe828b));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x4a8eb7){const _0x58d3ab=a51_0x4935,_0xe122a6=_0x4a8eb7[_0x58d3ab(0x1b6)](_0x58d3ab(0x1d5))||_0x58d3ab(0x1b9);if(_0xe122a6===_0x58d3ab(0x1b9)||_0xe122a6===_0x58d3ab(0x1c4))return _0xe122a6;throw CliErrors['validation'](_0x58d3ab(0x1c9)+_0xe122a6+'\x22.');}export function allowRetargetArgs(_0x529aaf){return _0x529aaf?[{'allowAppCodeRetarget':!![]}]:[];}function a51_0x4935(_0x2bc1ff,_0x5a63f0){_0x2bc1ff=_0x2bc1ff-0x1a7;const _0x46834a=a51_0x4683();let _0x493561=_0x46834a[_0x2bc1ff];return _0x493561;}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x1748cf=a51_0x4935;return{'targetScope':_0x1748cf(0x1c4),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x5b3a27={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x5b3a27};}export function remotePersonalReadOptions(_0x297076,_0x467990={}){return{'ignoreInvalidMetadata':!![],..._0x297076?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x467990};}export function throwIfBuiltinPushTarget(_0x4f5ced){const _0x4fc990=a51_0x4935;if(_0x4f5ced?.['scope']!==_0x4fc990(0x1c2))return;throw CliErrors['validation']('Builtin\x20Skill\x20'+(_0x4f5ced[_0x4fc990(0x1a9)]??_0x4fc990(0x1cb))+_0x4fc990(0x1ac),_0x4fc990(0x1ca));}export function throwIfPublishValidationFailed(_0x5b960e,_0x304a4b,_0x5394a0){const _0x4d8769=a51_0x4935;if(_0x5394a0[_0x4d8769(0x1be)]['length']===0x0&&(_0x5394a0[_0x4d8769(0x1b1)]||_0x5394a0['warnings'][_0x4d8769(0x1ba)]>0x0))return;const _0x44fd36=_0x5394a0['errors'][_0x4d8769(0x1ba)]>0x0?_0x5394a0[_0x4d8769(0x1be)][_0x4d8769(0x1cf)](';\x20'):_0x4d8769(0x1c1),_0x1f60cd=_0x5b960e===_0x4d8769(0x1c4)?'Company':_0x4d8769(0x1b7);throw CliErrors[_0x4d8769(0x1d0)](_0x1f60cd+_0x4d8769(0x1b2)+_0x304a4b+'.',_0x44fd36);}export function throwIfUnconfirmedPublishWarnings(_0x5a81e1,_0x724632,_0x4fa102,_0x612918){const _0x2657dd=a51_0x4935;if(_0x4fa102[_0x2657dd(0x1ba)]===0x0||_0x612918)return;const _0x3f1157=_0x5a81e1===_0x2657dd(0x1c4)?_0x2657dd(0x1bc):'Personal';throw CliErrors[_0x2657dd(0x1d0)](_0x3f1157+_0x2657dd(0x1bb)+_0x724632+'.',['Review\x20each\x20warning\x20before\x20continuing.',_0x2657dd(0x1c5),'Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.',_0x2657dd(0x1d1)+_0x4fa102['join'](';\x20')]['join']('\x20'));}function a51_0x4683(){const _0x107745=['errors','Local\x20Skill\x20metadata\x20appCode\x20','3035645imeWtw','SkillHub\x20validation\x20returned\x20invalid.','builtin','36636520jSmqmf','company','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','content','89ukkYeX','not-applicable','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','(unknown)','warning','identical','skill-metadata-appcode-retargeted','join','validation','Warnings:\x20','2586584sPXqtL','different','104jwIQQB','scope','appCode','8722170UuXBRG','skillCode','36117mNChcv','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','\x20cannot\x20be\x20pushed.','files','remote','362817DlREcO','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','valid','\x20Skill\x20push\x20validation\x20failed\x20for\x20','20878ymkKnK','\x20after\x20successful\x20push.','publishInput','str','Personal','260oCoKQw','personal','length','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','Company','downloadRuntimeSkillPackage'];a51_0x4683=function(){return _0x107745;};return a51_0x4683();}export function buildRetargetWarning(_0xb72c66,_0x1d5206){const _0x20b7de=a51_0x4935;if(!_0xb72c66?.['appCode']||_0xb72c66[_0x20b7de(0x1a7)]===_0x1d5206)return[];return[{'level':_0x20b7de(0x1cc),'ruleId':_0x20b7de(0x1ce),'file':'lovrabet.skill.json','message':_0x20b7de(0x1bf)+_0xb72c66[_0x20b7de(0x1a7)]+_0x20b7de(0x1ab)+_0x1d5206+_0x20b7de(0x1b4),'suggestion':_0x20b7de(0x1b0)}];}export async function runRemoteContentPreflight(_0x2520b2){const _0x6e6ea5=a51_0x4935;if(!_0x2520b2[_0x6e6ea5(0x1ae)]||_0x2520b2[_0x6e6ea5(0x1ae)][_0x6e6ea5(0x1d5)]!==_0x2520b2[_0x6e6ea5(0x1d5)]||!_0x2520b2[_0x6e6ea5(0x1b5)][_0x6e6ea5(0x1ad)])return{'status':_0x6e6ea5(0x1c8)};const _0x47ebe2=_0x2520b2[_0x6e6ea5(0x1ae)]['skillCode']||_0x2520b2[_0x6e6ea5(0x1a9)];if(!_0x47ebe2)return{'status':'not-applicable'};const _0x46241a=await _0x2520b2[_0x6e6ea5(0x1bd)](_0x2520b2[_0x6e6ea5(0x1d5)],_0x47ebe2,_0x2520b2[_0x6e6ea5(0x1a7)],_0x2520b2[_0x6e6ea5(0x1ae)]['version']);try{_0x2520b2['verifyRuntimeSkillBundle'](_0x2520b2[_0x6e6ea5(0x1b5)][_0x6e6ea5(0x1ad)],_0x46241a);}catch{return{'status':_0x6e6ea5(0x1d3)};}return{'status':_0x6e6ea5(0x1cd),'savedSkill':{..._0x2520b2['remote'],'content':_0x2520b2[_0x6e6ea5(0x1b5)][_0x6e6ea5(0x1c6)],'files':_0x2520b2[_0x6e6ea5(0x1b5)][_0x6e6ea5(0x1ad)]}};}
1
+ (function(_0x9d5d1f,_0x532bdc){const _0x19862f=a51_0xcdee,_0x3ce455=_0x9d5d1f();while(!![]){try{const _0x4bb0d8=parseInt(_0x19862f(0x95))/0x1*(parseInt(_0x19862f(0x92))/0x2)+parseInt(_0x19862f(0x9b))/0x3+-parseInt(_0x19862f(0x94))/0x4*(parseInt(_0x19862f(0xa1))/0x5)+-parseInt(_0x19862f(0xa8))/0x6*(-parseInt(_0x19862f(0xa5))/0x7)+-parseInt(_0x19862f(0xa7))/0x8*(-parseInt(_0x19862f(0xc0))/0x9)+parseInt(_0x19862f(0x97))/0xa+-parseInt(_0x19862f(0xa9))/0xb;if(_0x4bb0d8===_0x532bdc)break;else _0x3ce455['push'](_0x3ce455['shift']());}catch(_0x400742){_0x3ce455['push'](_0x3ce455['shift']());}}}(a51_0x4b39,0x5c056));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x4bbcc0){const _0x23e23e=a51_0xcdee,_0x578fd0=_0x4bbcc0[_0x23e23e(0x9a)]('scope')||'personal';if(_0x578fd0===_0x23e23e(0xad)||_0x578fd0===_0x23e23e(0xb8))return _0x578fd0;throw CliErrors[_0x23e23e(0xb2)](_0x23e23e(0x9f)+_0x578fd0+'\x22.');}export function allowRetargetArgs(_0xa98a86){return _0xa98a86?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}function a51_0x4b39(){const _0x9ec676=['Warnings:\x20','2708770FvKQRY','not-applicable','identical','str','692586QBTyNo','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','remote','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','Review\x20each\x20warning\x20before\x20continuing.','2107905CRiAXp','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','join','\x20cannot\x20be\x20pushed.','168MPQlto','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','144jhgkGR','49422fmMyWz','14273710TdlFAx','Personal','content','warning','personal','verifyRuntimeSkillBundle','lovrabet.skill.json','length','skillCode','validation','publishInput','different','errors','warnings','(unknown)','company','\x20Skill\x20push\x20validation\x20failed\x20for\x20','Local\x20Skill\x20metadata\x20appCode\x20','version','files','downloadRuntimeSkillPackage','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','scope','332658Sentbh','Company','appCode','Builtin\x20Skill\x20','\x20after\x20successful\x20push.','2PcBjbN','SkillHub\x20validation\x20returned\x20invalid.','4NqOZYt','731366GgXONC'];a51_0x4b39=function(){return _0x9ec676;};return a51_0x4b39();}export function remoteMissingCompanyReadOptions(){const _0x5e1ff5=a51_0xcdee;return{'targetScope':_0x5e1ff5(0xb8),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x140ec4={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x140ec4};}export function remotePersonalReadOptions(_0x4c0556,_0x2c733a={}){return{'ignoreInvalidMetadata':!![],..._0x4c0556?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x2c733a};}function a51_0xcdee(_0x470e97,_0x20807a){_0x470e97=_0x470e97-0x8e;const _0x4b395a=a51_0x4b39();let _0xcdee81=_0x4b395a[_0x470e97];return _0xcdee81;}export function throwIfBuiltinPushTarget(_0x29e236){const _0x39e6ca=a51_0xcdee;if(_0x29e236?.[_0x39e6ca(0xbf)]!=='builtin')return;throw CliErrors[_0x39e6ca(0xb2)](_0x39e6ca(0x90)+(_0x29e236[_0x39e6ca(0xb1)]??_0x39e6ca(0xb7))+_0x39e6ca(0xa4),_0x39e6ca(0xbe));}export function throwIfPublishValidationFailed(_0x3d177b,_0x34f0b2,_0x598504){const _0x16dad0=a51_0xcdee;if(_0x598504[_0x16dad0(0xb5)][_0x16dad0(0xb0)]===0x0&&(_0x598504['valid']||_0x598504[_0x16dad0(0xb6)][_0x16dad0(0xb0)]>0x0))return;const _0x53fd6c=_0x598504[_0x16dad0(0xb5)][_0x16dad0(0xb0)]>0x0?_0x598504[_0x16dad0(0xb5)][_0x16dad0(0xa3)](';\x20'):_0x16dad0(0x93),_0x408ec9=_0x3d177b===_0x16dad0(0xb8)?'Company':_0x16dad0(0xaa);throw CliErrors[_0x16dad0(0xb2)](_0x408ec9+_0x16dad0(0xb9)+_0x34f0b2+'.',_0x53fd6c);}export function throwIfUnconfirmedPublishWarnings(_0x4700ae,_0x479f0e,_0x456821,_0x4c5f66){const _0x55b06b=a51_0xcdee;if(_0x456821['length']===0x0||_0x4c5f66)return;const _0x4145fa=_0x4700ae===_0x55b06b(0xb8)?_0x55b06b(0x8e):_0x55b06b(0xaa);throw CliErrors['validation'](_0x4145fa+_0x55b06b(0xa2)+_0x479f0e+'.',[_0x55b06b(0xa0),_0x55b06b(0x9c),'Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.',_0x55b06b(0x96)+_0x456821[_0x55b06b(0xa3)](';\x20')][_0x55b06b(0xa3)]('\x20'));}export function buildRetargetWarning(_0x3452a5,_0x19be85){const _0x5b41d8=a51_0xcdee;if(!_0x3452a5?.[_0x5b41d8(0x8f)]||_0x3452a5[_0x5b41d8(0x8f)]===_0x19be85)return[];return[{'level':_0x5b41d8(0xac),'ruleId':'skill-metadata-appcode-retargeted','file':_0x5b41d8(0xaf),'message':_0x5b41d8(0xba)+_0x3452a5[_0x5b41d8(0x8f)]+_0x5b41d8(0xa6)+_0x19be85+_0x5b41d8(0x91),'suggestion':_0x5b41d8(0x9e)}];}export async function runRemoteContentPreflight(_0x8f1a4c){const _0x13dc81=a51_0xcdee;if(!_0x8f1a4c[_0x13dc81(0x9d)]||_0x8f1a4c[_0x13dc81(0x9d)][_0x13dc81(0xbf)]!==_0x8f1a4c[_0x13dc81(0xbf)]||!_0x8f1a4c[_0x13dc81(0xb3)][_0x13dc81(0xbc)])return{'status':_0x13dc81(0x98)};const _0x14c69b=_0x8f1a4c[_0x13dc81(0x9d)][_0x13dc81(0xb1)]||_0x8f1a4c[_0x13dc81(0xb1)];if(!_0x14c69b)return{'status':'not-applicable'};const _0x42d907=await _0x8f1a4c[_0x13dc81(0xbd)](_0x8f1a4c['scope'],_0x14c69b,_0x8f1a4c[_0x13dc81(0x8f)],_0x8f1a4c[_0x13dc81(0x9d)][_0x13dc81(0xbb)]);try{_0x8f1a4c[_0x13dc81(0xae)](_0x8f1a4c[_0x13dc81(0xb3)]['files'],_0x42d907);}catch{return{'status':_0x13dc81(0xb4)};}return{'status':_0x13dc81(0x99),'savedSkill':{..._0x8f1a4c['remote'],'content':_0x8f1a4c[_0x13dc81(0xb3)][_0x13dc81(0xab)],'files':_0x8f1a4c['publishInput'][_0x13dc81(0xbc)]}};}
@@ -1 +1 @@
1
- (function(_0x2e7d35,_0x1cc14a){const _0x43f0cb=a52_0x712a,_0x33fbba=_0x2e7d35();while(!![]){try{const _0xb89c84=parseInt(_0x43f0cb(0x136))/0x1+parseInt(_0x43f0cb(0x13b))/0x2+-parseInt(_0x43f0cb(0x145))/0x3+parseInt(_0x43f0cb(0x140))/0x4+parseInt(_0x43f0cb(0x13a))/0x5+-parseInt(_0x43f0cb(0x13e))/0x6+-parseInt(_0x43f0cb(0x135))/0x7;if(_0xb89c84===_0x1cc14a)break;else _0x33fbba['push'](_0x33fbba['shift']());}catch(_0x4e046b){_0x33fbba['push'](_0x33fbba['shift']());}}}(a52_0x4270,0xe00e2));export function withRetargetExistingMetadata(_0x128e0c,_0x505251,_0x4e7503={}){const _0x340e1c=a52_0x712a,_0x332e5c=_0x4e7503['preferInputSkillName']?_0x128e0c[_0x340e1c(0x13d)]??_0x505251[_0x340e1c(0x13d)]:_0x505251['skillName']??_0x128e0c['skillName'];return{..._0x128e0c,'skillName':_0x332e5c,'description':_0x505251['description']??_0x128e0c['description'],'tags':Array[_0x340e1c(0x143)](_0x505251[_0x340e1c(0x144)])?_0x505251[_0x340e1c(0x144)]:_0x128e0c[_0x340e1c(0x144)],'version':_0x505251['version']??_0x128e0c[_0x340e1c(0x137)],'sourceSessionId':_0x505251[_0x340e1c(0x141)]??_0x128e0c[_0x340e1c(0x141)]};}function a52_0x4270(){const _0x27ae71=['3510944EJztnZ','sourceSessionId','Local\x20Skill\x20metadata\x20appCode\x20','isArray','tags','4222416nCwXae','\x20after\x20successful\x20push.','9952271uKYSvW','1283282acfucM','version','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','8946580lroZeB','3197530tPkBIb','warning','skillName','10812864pxrxvK','appCode'];a52_0x4270=function(){return _0x27ae71;};return a52_0x4270();}function a52_0x712a(_0x2019b3,_0x2c81ca){_0x2019b3=_0x2019b3-0x135;const _0x4270ec=a52_0x4270();let _0x712af4=_0x4270ec[_0x2019b3];return _0x712af4;}export function buildRetargetWarning(_0x257361,_0x5a981e){const _0xd846c1=a52_0x712a;if(!_0x257361?.['appCode']||_0x257361['appCode']===_0x5a981e)return[];return[{'level':_0xd846c1(0x13c),'ruleId':'skill-metadata-appcode-retargeted','file':'lovrabet.skill.json','message':_0xd846c1(0x142)+_0x257361[_0xd846c1(0x13f)]+_0xd846c1(0x138)+_0x5a981e+_0xd846c1(0x146),'suggestion':_0xd846c1(0x139)}];}
1
+ (function(_0x1bfb71,_0x5f44ce){const _0x4faa0f=a52_0x5928,_0x3724c6=_0x1bfb71();while(!![]){try{const _0x1a4496=parseInt(_0x4faa0f(0x138))/0x1+-parseInt(_0x4faa0f(0x137))/0x2*(-parseInt(_0x4faa0f(0x140))/0x3)+parseInt(_0x4faa0f(0x146))/0x4+-parseInt(_0x4faa0f(0x134))/0x5*(-parseInt(_0x4faa0f(0x139))/0x6)+parseInt(_0x4faa0f(0x145))/0x7+parseInt(_0x4faa0f(0x13b))/0x8+-parseInt(_0x4faa0f(0x142))/0x9;if(_0x1a4496===_0x5f44ce)break;else _0x3724c6['push'](_0x3724c6['shift']());}catch(_0x428864){_0x3724c6['push'](_0x3724c6['shift']());}}}(a52_0x48fb,0x64fbf));function a52_0x5928(_0x34d818,_0x5ff7f6){_0x34d818=_0x34d818-0x134;const _0x48fba8=a52_0x48fb();let _0x592886=_0x48fba8[_0x34d818];return _0x592886;}export function withRetargetExistingMetadata(_0x273ca2,_0x374cea,_0x53d92a={}){const _0x2387b6=a52_0x5928,_0x2b4eb6=_0x53d92a[_0x2387b6(0x135)]?_0x273ca2[_0x2387b6(0x148)]??_0x374cea[_0x2387b6(0x148)]:_0x374cea[_0x2387b6(0x148)]??_0x273ca2['skillName'];return{..._0x273ca2,'skillName':_0x2b4eb6,'description':_0x374cea['description']??_0x273ca2[_0x2387b6(0x13a)],'tags':Array['isArray'](_0x374cea['tags'])?_0x374cea[_0x2387b6(0x147)]:_0x273ca2[_0x2387b6(0x147)],'version':_0x374cea[_0x2387b6(0x141)]??_0x273ca2[_0x2387b6(0x141)],'sourceSessionId':_0x374cea[_0x2387b6(0x143)]??_0x273ca2[_0x2387b6(0x143)]};}export function buildRetargetWarning(_0x2dad02,_0x24687c){const _0x23d550=a52_0x5928;if(!_0x2dad02?.['appCode']||_0x2dad02[_0x23d550(0x13c)]===_0x24687c)return[];return[{'level':_0x23d550(0x13e),'ruleId':_0x23d550(0x136),'file':_0x23d550(0x149),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x2dad02['appCode']+_0x23d550(0x13d)+_0x24687c+_0x23d550(0x13f),'suggestion':_0x23d550(0x144)}];}function a52_0x48fb(){const _0x3dc7e5=['840fNxVeS','description','6139744OXFTeq','appCode','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','warning','\x20after\x20successful\x20push.','159dYUEQb','version','23458158UoIjNl','sourceSessionId','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','2433424jivvja','2620400VGQonZ','tags','skillName','lovrabet.skill.json','14050SqRAAL','preferInputSkillName','skill-metadata-appcode-retargeted','18296vMygmD','371649hcYPoE'];a52_0x48fb=function(){return _0x3dc7e5;};return a52_0x48fb();}
@@ -1 +1 @@
1
- (function(_0x1d7854,_0x248883){const _0xe83fbf=a53_0x4c5d,_0x39f48c=_0x1d7854();while(!![]){try{const _0x17f8da=parseInt(_0xe83fbf(0xc5))/0x1*(-parseInt(_0xe83fbf(0xc4))/0x2)+-parseInt(_0xe83fbf(0xc0))/0x3+-parseInt(_0xe83fbf(0xbe))/0x4*(-parseInt(_0xe83fbf(0xbf))/0x5)+-parseInt(_0xe83fbf(0xc2))/0x6+-parseInt(_0xe83fbf(0xc1))/0x7+-parseInt(_0xe83fbf(0xbc))/0x8+-parseInt(_0xe83fbf(0xc7))/0x9*(-parseInt(_0xe83fbf(0xbd))/0xa);if(_0x17f8da===_0x248883)break;else _0x39f48c['push'](_0x39f48c['shift']());}catch(_0x43124c){_0x39f48c['push'](_0x39f48c['shift']());}}}(a53_0x4473,0x33ca8));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x5a9b15){const _0x3e769e=a53_0x4c5d,_0x29722a=_0x5a9b15[_0x3e769e(0xc9)]();if(!_0x29722a||_0x29722a==='all')return[_0x3e769e(0xba),'company'];if(_0x29722a===_0x3e769e(0xba)||_0x29722a===_0x3e769e(0xc3))return[_0x29722a];throw CliErrors[_0x3e769e(0xc8)]('Unsupported\x20Skill\x20sync\x20scope:\x20'+_0x5a9b15);}export function normalizeListScope(_0x26d9e9){const _0x750efe=a53_0x4c5d,_0xe16b68=_0x26d9e9['trim']();if(!_0xe16b68)return _0x750efe(0xbb);if(_0xe16b68==='personal'||_0xe16b68==='company'||_0xe16b68===_0x750efe(0xbb))return _0xe16b68;throw CliErrors[_0x750efe(0xc8)](_0x750efe(0xc6)+_0x26d9e9);}export function shouldListScope(_0x287c6b,_0x288c02){const _0x361ce8=a53_0x4c5d;if(_0x287c6b===_0x361ce8(0xbb))return!![];return _0x287c6b===_0x288c02;}export function listScopeToRuntimeScopes(_0x39959a){const _0x2a7274=a53_0x4c5d;if(_0x39959a===_0x2a7274(0xbb))return[_0x2a7274(0xba),'company'];return[_0x39959a==='company'?_0x2a7274(0xc3):_0x39959a];}export function listScopeToRemoteScope(_0xa440a4){return _0xa440a4;}function a53_0x4c5d(_0x4e46f6,_0x4a8a0d){_0x4e46f6=_0x4e46f6-0xba;const _0x447390=a53_0x4473();let _0x4c5d31=_0x447390[_0x4e46f6];return _0x4c5d31;}function a53_0x4473(){const _0x112ac0=['validation','trim','personal','all','3374720HOmLiG','40vVSXLl','129460cmgJpD','45WdKyxs','94020GPBKLp','1659756XxImWx','1471278XRzRcU','company','4MEUPCV','88910UyKhET','Unsupported\x20Skill\x20list\x20scope:\x20','2326887HlPWJS'];a53_0x4473=function(){return _0x112ac0;};return a53_0x4473();}
1
+ function a53_0x28af(){const _0x4f238b=['152170xZYJqx','trim','428057fgpXji','1660416fSZgZd','4itQIIG','all','657953XGBLWh','108hpVCay','Unsupported\x20Skill\x20list\x20scope:\x20','5279600jfZCWU','1067336wqyXTK','company','validation','personal','142347xYiXZE'];a53_0x28af=function(){return _0x4f238b;};return a53_0x28af();}(function(_0x12af29,_0x74314c){const _0x1dced7=a53_0x16b8,_0x59fada=_0x12af29();while(!![]){try{const _0x3e9717=parseInt(_0x1dced7(0x13b))/0x1+parseInt(_0x1dced7(0x144))/0x2+-parseInt(_0x1dced7(0x143))/0x3*(-parseInt(_0x1dced7(0x139))/0x4)+parseInt(_0x1dced7(0x13e))/0x5+parseInt(_0x1dced7(0x138))/0x6+parseInt(_0x1dced7(0x137))/0x7+-parseInt(_0x1dced7(0x13f))/0x8*(parseInt(_0x1dced7(0x13c))/0x9);if(_0x3e9717===_0x74314c)break;else _0x59fada['push'](_0x59fada['shift']());}catch(_0x5c7631){_0x59fada['push'](_0x59fada['shift']());}}}(a53_0x28af,0x8c352));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x417dbb){const _0x59a470=a53_0x16b8,_0x2fa831=_0x417dbb[_0x59a470(0x136)]();if(!_0x2fa831||_0x2fa831==='all')return[_0x59a470(0x142),_0x59a470(0x140)];if(_0x2fa831==='personal'||_0x2fa831===_0x59a470(0x140))return[_0x2fa831];throw CliErrors['validation']('Unsupported\x20Skill\x20sync\x20scope:\x20'+_0x417dbb);}export function normalizeListScope(_0x3853e6){const _0x54dbbf=a53_0x16b8,_0x97814e=_0x3853e6['trim']();if(!_0x97814e)return'all';if(_0x97814e===_0x54dbbf(0x142)||_0x97814e===_0x54dbbf(0x140)||_0x97814e===_0x54dbbf(0x13a))return _0x97814e;throw CliErrors[_0x54dbbf(0x141)](_0x54dbbf(0x13d)+_0x3853e6);}export function shouldListScope(_0x127214,_0x44b8cb){if(_0x127214==='all')return!![];return _0x127214===_0x44b8cb;}export function listScopeToRuntimeScopes(_0x172479){const _0x2aceb3=a53_0x16b8;if(_0x172479==='all')return[_0x2aceb3(0x142),_0x2aceb3(0x140)];return[_0x172479===_0x2aceb3(0x140)?_0x2aceb3(0x140):_0x172479];}function a53_0x16b8(_0x143717,_0x3ced87){_0x143717=_0x143717-0x136;const _0x28afca=a53_0x28af();let _0x16b866=_0x28afca[_0x143717];return _0x16b866;}export function listScopeToRemoteScope(_0xe05131){return _0xe05131;}
@@ -1 +1 @@
1
- (function(_0x4be307,_0x526149){var _0x152bac=a54_0x2c0a,_0x3a4a0b=_0x4be307();while(!![]){try{var _0x15e158=-parseInt(_0x152bac(0x90))/0x1+-parseInt(_0x152bac(0x8f))/0x2+-parseInt(_0x152bac(0x92))/0x3+parseInt(_0x152bac(0x97))/0x4+parseInt(_0x152bac(0x8c))/0x5+-parseInt(_0x152bac(0x87))/0x6*(parseInt(_0x152bac(0x93))/0x7)+parseInt(_0x152bac(0x88))/0x8*(parseInt(_0x152bac(0x8a))/0x9);if(_0x15e158===_0x526149)break;else _0x3a4a0b['push'](_0x3a4a0b['shift']());}catch(_0x48304e){_0x3a4a0b['push'](_0x3a4a0b['shift']());}}}(a54_0x5799,0x39cea));function a54_0x2c0a(_0x59c0f9,_0x5ef544){_0x59c0f9=_0x59c0f9-0x87;var _0x5799e0=a54_0x5799();var _0x2c0a7a=_0x5799e0[_0x59c0f9];return _0x2c0a7a;}export function summarizeRuntimeSkill(_0x2a757f){var _0x48d51a=a54_0x2c0a;return{'id':_0x2a757f['id'],'skillCode':_0x2a757f[_0x48d51a(0x8b)],'skillName':_0x2a757f[_0x48d51a(0x95)],'scope':_0x2a757f[_0x48d51a(0x91)],'version':_0x2a757f[_0x48d51a(0x96)],'readonly':_0x2a757f[_0x48d51a(0x8e)]};}function a54_0x5799(){var _0x51546f=['205365TJTvOE','treeHash','readonly','796598IhmuKo','417265fSkRSI','scope','974043iTnRhB','21GqsxHT','pulledAt','skillName','version','83172CvTKTO','linkedPaths','165678giOLoV','16EGWPnW','dir','6290982ncBdTW','skillCode'];a54_0x5799=function(){return _0x51546f;};return a54_0x5799();}export function summarizeLocalRuntimeSkill(_0xe055c6){var _0x17f2ca=a54_0x2c0a;return{'id':_0xe055c6['id'],'skillCode':_0xe055c6['skillCode'],'skillName':_0xe055c6['skillName'],'scope':_0xe055c6[_0x17f2ca(0x91)],'appCode':_0xe055c6['appCode'],'version':_0xe055c6['version'],'status':_0xe055c6['status'],'readonly':_0xe055c6[_0x17f2ca(0x8e)],'tags':_0xe055c6['tags'],'dir':_0xe055c6[_0x17f2ca(0x89)],'cacheDir':_0xe055c6['cacheDir'],'skillMdPath':_0xe055c6['skillMdPath'],'metadataPath':_0xe055c6['metadataPath'],'linkedPaths':_0xe055c6[_0x17f2ca(0x98)],'contentHash':_0xe055c6['contentHash'],'treeHash':_0xe055c6[_0x17f2ca(0x8d)],'pulledAt':_0xe055c6[_0x17f2ca(0x94)]};}
1
+ function a54_0x2975(){var _0x58c0b7=['9943692qRBkQZ','version','linkedPaths','15AQTpud','63dFGDhl','320syhmhS','status','pulledAt','441429kZdYGv','267760oesZfz','cacheDir','66632SXuVyu','skillName','tags','261023wJlraa','131238MZfvPp','treeHash','metadataPath','readonly','scope','dir','1750710zErIwc','8zfrxbs','contentHash','appCode'];a54_0x2975=function(){return _0x58c0b7;};return a54_0x2975();}(function(_0x519d0a,_0xccb88c){var _0xf02ae0=a54_0x3383,_0x4c1da1=_0x519d0a();while(!![]){try{var _0x139a30=parseInt(_0xf02ae0(0x174))/0x1+parseInt(_0xf02ae0(0x163))/0x2*(parseInt(_0xf02ae0(0x16e))/0x3)+parseInt(_0xf02ae0(0x16f))/0x4+-parseInt(_0xf02ae0(0x169))/0x5*(-parseInt(_0xf02ae0(0x162))/0x6)+-parseInt(_0xf02ae0(0x16a))/0x7*(-parseInt(_0xf02ae0(0x171))/0x8)+-parseInt(_0xf02ae0(0x175))/0x9*(parseInt(_0xf02ae0(0x16b))/0xa)+-parseInt(_0xf02ae0(0x166))/0xb;if(_0x139a30===_0xccb88c)break;else _0x4c1da1['push'](_0x4c1da1['shift']());}catch(_0x37f36e){_0x4c1da1['push'](_0x4c1da1['shift']());}}}(a54_0x2975,0x7927f));export function summarizeRuntimeSkill(_0x695daa){var _0x28b440=a54_0x3383;return{'id':_0x695daa['id'],'skillCode':_0x695daa['skillCode'],'skillName':_0x695daa[_0x28b440(0x172)],'scope':_0x695daa[_0x28b440(0x179)],'version':_0x695daa[_0x28b440(0x167)],'readonly':_0x695daa[_0x28b440(0x178)]};}function a54_0x3383(_0x9bf612,_0x5bed7f){_0x9bf612=_0x9bf612-0x162;var _0x297596=a54_0x2975();var _0x338343=_0x297596[_0x9bf612];return _0x338343;}export function summarizeLocalRuntimeSkill(_0x5729bb){var _0x443596=a54_0x3383;return{'id':_0x5729bb['id'],'skillCode':_0x5729bb['skillCode'],'skillName':_0x5729bb[_0x443596(0x172)],'scope':_0x5729bb[_0x443596(0x179)],'appCode':_0x5729bb[_0x443596(0x165)],'version':_0x5729bb['version'],'status':_0x5729bb[_0x443596(0x16c)],'readonly':_0x5729bb[_0x443596(0x178)],'tags':_0x5729bb[_0x443596(0x173)],'dir':_0x5729bb[_0x443596(0x17a)],'cacheDir':_0x5729bb[_0x443596(0x170)],'skillMdPath':_0x5729bb['skillMdPath'],'metadataPath':_0x5729bb[_0x443596(0x177)],'linkedPaths':_0x5729bb[_0x443596(0x168)],'contentHash':_0x5729bb[_0x443596(0x164)],'treeHash':_0x5729bb[_0x443596(0x176)],'pulledAt':_0x5729bb[_0x443596(0x16d)]};}