@lovrabet/lovrabet-cli 2.1.11-beta.3 → 2.1.11

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 (119) 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/index.js +1 -1
  41. package/lib/commands/service/registry.js +1 -1
  42. package/lib/commands/skill/commands/create.js +1 -1
  43. package/lib/commands/skill/commands/install.js +1 -1
  44. package/lib/commands/skill/commands/list.js +1 -1
  45. package/lib/commands/skill/commands/push.js +1 -1
  46. package/lib/commands/skill/commands/validate.js +1 -1
  47. package/lib/commands/skill/flags.js +1 -1
  48. package/lib/commands/skill/index.js +1 -1
  49. package/lib/commands/skill/manifest-helpers.js +1 -1
  50. package/lib/commands/skill/push-execute.js +1 -1
  51. package/lib/commands/skill/push-flow-helpers.js +1 -1
  52. package/lib/commands/skill/push-retarget.js +1 -1
  53. package/lib/commands/skill/scopes.js +1 -1
  54. package/lib/commands/skill/summary.js +1 -1
  55. package/lib/commands/skill/templates.js +1 -1
  56. package/lib/commands/skill/validate.js +1 -1
  57. package/lib/commands/sql/detail.js +1 -1
  58. package/lib/commands/sql/exec.js +1 -1
  59. package/lib/commands/sql/index.js +1 -1
  60. package/lib/commands/update.js +1 -1
  61. package/lib/commands/workspace/index.js +1 -1
  62. package/lib/config/schema.js +1 -1
  63. package/lib/constant/app.js +1 -1
  64. package/lib/constant/auth-mode.js +1 -1
  65. package/lib/constant/cli.js +1 -1
  66. package/lib/constant/defaults.js +1 -1
  67. package/lib/constant/distribution.js +1 -1
  68. package/lib/constant/domain.js +1 -1
  69. package/lib/constant/env.js +1 -1
  70. package/lib/constant/output.js +1 -1
  71. package/lib/constant/product.js +1 -1
  72. package/lib/constant/risk.js +1 -1
  73. package/lib/constant/url.js +1 -1
  74. package/lib/context.js +1 -1
  75. package/lib/core/api-client.js +1 -1
  76. package/lib/core/db-resolver.js +1 -1
  77. package/lib/core/sdk-client.js +1 -1
  78. package/lib/errors.js +1 -1
  79. package/lib/framework/build-all-flags.js +1 -1
  80. package/lib/framework/dryrun.js +1 -1
  81. package/lib/framework/flags.js +1 -1
  82. package/lib/framework/help.js +1 -1
  83. package/lib/framework/index.js +1 -1
  84. package/lib/framework/output.js +1 -1
  85. package/lib/framework/preparse.js +1 -1
  86. package/lib/framework/rate-limit.js +1 -1
  87. package/lib/framework/response.js +1 -1
  88. package/lib/framework/runner-confirmation.js +1 -1
  89. package/lib/framework/runner-error.js +1 -1
  90. package/lib/framework/runner.js +1 -1
  91. package/lib/framework/schema-export.js +1 -1
  92. package/lib/framework/service-order.js +1 -1
  93. package/lib/framework/types.js +1 -1
  94. package/lib/generated/build-info.js +1 -1
  95. package/lib/help.js +1 -1
  96. package/lib/skills/npx-skills-add.js +1 -1
  97. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  98. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  99. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  100. package/lib/skills/runtime-skill-sync/links.js +1 -1
  101. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  102. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  103. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  104. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  105. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  106. package/lib/skills/runtime-skill-sync/push.js +1 -1
  107. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  108. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  109. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  110. package/lib/skills/runtime-skill-sync.js +1 -1
  111. package/lib/utils/apply-jq-filter.js +1 -1
  112. package/lib/utils/logger.js +1 -1
  113. package/lib/utils/lossless-json.js +1 -1
  114. package/lib/utils/params.js +1 -1
  115. package/lib/utils/platform.js +1 -1
  116. package/lib/utils/update-notice.js +1 -1
  117. package/lib/utils/version.js +1 -1
  118. package/lib/utils/write-cli-side-channel.js +1 -1
  119. package/package.json +1 -1
@@ -1 +1 @@
1
- const a40_0x2ee5ea=a40_0x35ca;(function(_0x15bf68,_0x238dc8){const _0x2d4393=a40_0x35ca,_0x16d7b4=_0x15bf68();while(!![]){try{const _0x1d8279=parseInt(_0x2d4393(0x15c))/0x1+parseInt(_0x2d4393(0x123))/0x2+parseInt(_0x2d4393(0x143))/0x3*(parseInt(_0x2d4393(0x158))/0x4)+parseInt(_0x2d4393(0x121))/0x5*(parseInt(_0x2d4393(0x155))/0x6)+-parseInt(_0x2d4393(0x160))/0x7*(parseInt(_0x2d4393(0x122))/0x8)+parseInt(_0x2d4393(0x151))/0x9*(parseInt(_0x2d4393(0x139))/0xa)+-parseInt(_0x2d4393(0x153))/0xb*(parseInt(_0x2d4393(0x16a))/0xc);if(_0x1d8279===_0x238dc8)break;else _0x16d7b4['push'](_0x16d7b4['shift']());}catch(_0x497619){_0x16d7b4['push'](_0x16d7b4['shift']());}}}(a40_0x37e9,0xa7901));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';export const SERVICE_REGISTRY_SCHEMA_VERSION=0x1;export const SERVICE_REGISTRY_FILE_NAME=a40_0x2ee5ea(0x16c);export function getServiceRegistryPath(_0x2f1081={}){const _0x4b58f5=a40_0x2ee5ea;return resolve(_0x2f1081['homeDir']??homedir(),PRODUCT_CONFIG[_0x4b58f5(0x163)],SERVICE_REGISTRY_FILE_NAME);}export function emptyServiceRegistry(){return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'services':[]};}export function readServiceRegistry(_0x29773c={}){const _0x53443f=a40_0x2ee5ea,_0x16db9a=getServiceRegistryPath(_0x29773c);if(!existsSync(_0x16db9a))return emptyServiceRegistry();try{const _0x32b81f=readFileSync(_0x16db9a,_0x53443f(0x13b));if(!_0x32b81f[_0x53443f(0x162)]())return emptyServiceRegistry();const _0x8d8a2f=JSON[_0x53443f(0x144)](_0x32b81f);if(_0x8d8a2f[_0x53443f(0x13d)]!==SERVICE_REGISTRY_SCHEMA_VERSION)throw CliErrors[_0x53443f(0x14d)](_0x53443f(0x15f)+String(_0x8d8a2f[_0x53443f(0x13d)]),_0x53443f(0x164)+_0x16db9a+'.');if(!Array[_0x53443f(0x147)](_0x8d8a2f['services']))return emptyServiceRegistry();return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x8d8a2f[_0x53443f(0x11b)],'services':_0x8d8a2f[_0x53443f(0x12e)]};}catch(_0x56aeb9){if(_0x56aeb9 instanceof Error&&_0x56aeb9[_0x53443f(0x124)]===_0x53443f(0x15b))throw _0x56aeb9;throw CliErrors[_0x53443f(0x14d)](_0x53443f(0x135)+_0x16db9a,_0x53443f(0x146));}}function a40_0x37e9(){const _0x4ad825=['homeDirName','Remove\x20or\x20migrate\x20','services\x20must\x20be\x20an\x20array','filePath','stringify','command','cliPath','58920UKLvwP','missing','service.json','file','path','localeCompare','$.services[','updatedAt','.tmp','update','startsWith','toISOString','map','205mZSgEb','436616QExPNc','1742418ktBSac','name','message','now','version','object','code','description','invalid','source','Local\x20service\x20not\x20found:\x20','services','Cannot\x20write\x20service\x20registry:\x20','string','registry','find','flatMap','warnings','Invalid\x20service\x20registry\x20JSON:\x20','Fix\x20the\x20service\x20manifest\x20and\x20run\x20service\x20validate\x20again.','normalizedManifest','sha256','140810ZqCCTM','commandCount','utf8','length','schemaVersion','slice','registryIndex','report','].manifest','digest','3082479nDViqa','parse','risk','Fix\x20the\x20JSON\x20file\x20or\x20move\x20it\x20aside\x20and\x20import\x20services\x20again.','isArray','Run\x20lovrabet\x20service\x20list\x20to\x20see\x20imported\x20services.','manifests','Fix\x20the\x20JSON\x20syntax\x20and\x20run\x20service\x20validate\x20again.','Service\x20registry\x20has\x20no\x20services\x20to\x20import.','serviceCode','validation','splice','findIndex','importedAt','45dkuBOH','errors','5280KAjmaN','empty','124536xkCxpi','join','ENOENT','4esqyQX','hex','service','CliError','932535fudWmS','manifest','reduce','Unsupported\x20service\x20registry\x20schemaVersion:\x20','91pCOArl','Service\x20manifest\x20file\x20not\x20found:\x20','trim'];a40_0x37e9=function(){return _0x4ad825;};return a40_0x37e9();}export function writeServiceRegistry(_0x120a7f,_0xdbd813={}){const _0x51de4c=a40_0x2ee5ea,_0x494f50=getServiceRegistryPath(_0xdbd813),_0x3551ad=dirname(_0x494f50);!existsSync(_0x3551ad)&&mkdirSync(_0x3551ad,{'recursive':!![]});const _0x1cf1ae=_0x494f50+_0x51de4c(0x11c);try{writeFileSync(_0x1cf1ae,JSON['stringify'](_0x120a7f,null,0x2)+'\x0a',{'encoding':_0x51de4c(0x13b),'mode':0x180}),renameSync(_0x1cf1ae,_0x494f50);}catch(_0x4affe7){try{unlinkSync(_0x1cf1ae);}catch{}if(_0x4affe7?.['code']===_0x51de4c(0x157))throw CliErrors[_0x51de4c(0x14d)](_0x51de4c(0x12f)+_0x494f50);throw _0x4affe7;}return _0x494f50;}export function loadServiceManifestFromFile(_0x5c668d){const _0x430e99=a40_0x2ee5ea,_0x2a3a59=resolve(_0x5c668d);if(!existsSync(_0x2a3a59))throw CliErrors[_0x430e99(0x14d)](_0x430e99(0x161)+_0x5c668d);let _0x3cbde8;const _0x175de3=readFileSync(_0x2a3a59,_0x430e99(0x13b));try{_0x3cbde8=JSON[_0x430e99(0x144)](_0x175de3);}catch{throw CliErrors[_0x430e99(0x14d)]('Invalid\x20service\x20manifest\x20JSON:\x20'+_0x5c668d,_0x430e99(0x14a));}const _0x1c3ba2=sha256(_0x175de3),_0xf3bd9e=extractLoadedServiceManifests(_0x3cbde8,_0x1c3ba2),_0x22c493=aggregateValidationReports(_0xf3bd9e),_0x5b9cf8=_0xf3bd9e[0x0];return{'filePath':_0x2a3a59,'hash':_0x1c3ba2,'kind':isServiceRegistryLike(_0x3cbde8)?_0x430e99(0x131):_0x430e99(0x15d),'manifest':_0x5b9cf8?.['manifest']??_0x3cbde8,'report':_0x22c493,'normalizedManifest':_0xf3bd9e['length']===0x1?_0x5b9cf8?.[_0x430e99(0x137)]:undefined,'manifests':_0xf3bd9e};}function a40_0x35ca(_0x54dc29,_0x1b0094){_0x54dc29=_0x54dc29-0x119;const _0x37e964=a40_0x37e9();let _0x35cae2=_0x37e964[_0x54dc29];return _0x35cae2;}export function importServiceManifest(_0xf61826,_0x5c4e4f={}){const _0x4222a4=a40_0x2ee5ea,_0x311595=loadServiceManifestFromFile(_0xf61826);if(!_0x311595['report']['ok'])throw CliErrors[_0x4222a4(0x14d)](formatValidationFailure(_0x311595[_0x4222a4(0x140)]),_0x4222a4(0x136));if(_0x311595[_0x4222a4(0x149)]['length']===0x0)throw CliErrors['validation'](_0x4222a4(0x14b),'Add\x20at\x20least\x20one\x20service\x20manifest,\x20then\x20run\x20service\x20import\x20again.');const _0x2545d4=readServiceRegistry(_0x5c4e4f),_0x1d3905=(_0x5c4e4f[_0x4222a4(0x126)]??(()=>new Date()))()[_0x4222a4(0x11f)](),_0x51a9c6=[];let _0x5de055=0x0,_0x4525a6=0x0;for(const _0x5ded64 of _0x311595[_0x4222a4(0x149)]){if(!_0x5ded64[_0x4222a4(0x137)])continue;const _0xd6c71b=_0x5ded64[_0x4222a4(0x137)][_0x4222a4(0x15a)][_0x4222a4(0x129)],_0x294054={'serviceCode':_0xd6c71b,'version':_0x5ded64[_0x4222a4(0x137)][_0x4222a4(0x127)],'importedAt':_0x1d3905,'source':{'type':_0x4222a4(0x16d),'path':_0x311595[_0x4222a4(0x166)],'hash':_0x5ded64['sourceHash']},'manifest':_0x5ded64[_0x4222a4(0x15d)],'normalizedManifest':_0x5ded64[_0x4222a4(0x137)]},_0x23babc=_0x2545d4[_0x4222a4(0x12e)][_0x4222a4(0x14f)](_0x147de8=>_0x147de8[_0x4222a4(0x14c)]===_0xd6c71b);_0x23babc>=0x0?(_0x2545d4['services'][_0x23babc]=_0x294054,_0x4525a6++):(_0x2545d4['services']['push'](_0x294054),_0x5de055++),_0x51a9c6['push'](_0x294054);}_0x2545d4[_0x4222a4(0x12e)]['sort']((_0x51451d,_0x4d11d8)=>_0x51451d[_0x4222a4(0x14c)][_0x4222a4(0x119)](_0x4d11d8[_0x4222a4(0x14c)])),_0x2545d4[_0x4222a4(0x11b)]=_0x1d3905;const _0x4229e1=writeServiceRegistry(_0x2545d4,_0x5c4e4f);return{'registryPath':_0x4229e1,'entry':_0x51a9c6[0x0],'replaced':_0x51a9c6[_0x4222a4(0x13c)]===0x1?_0x4525a6===0x1:_0x4525a6>0x0,'entries':_0x51a9c6,'imported':_0x5de055,'updated':_0x4525a6,'serviceCount':_0x2545d4[_0x4222a4(0x12e)][_0x4222a4(0x13c)]};}export function exportServiceManifest(_0x245716,_0x1e10f0,_0x4b03d7={}){const _0x38e3f1=a40_0x2ee5ea,_0x473868=getServiceRegistryPath(_0x4b03d7),_0x54a09d=getLocalServiceEntry(_0x245716,_0x4b03d7);if(!_0x54a09d)throw CliErrors[_0x38e3f1(0x14d)](_0x38e3f1(0x12d)+_0x245716,'Run\x20lovrabet\x20service\x20list\x20to\x20see\x20imported\x20services.');const _0x1a4cc1=resolve(_0x1e10f0),_0x1a68f7=dirname(_0x1a4cc1);return!existsSync(_0x1a68f7)&&mkdirSync(_0x1a68f7,{'recursive':!![]}),writeFileSync(_0x1a4cc1,JSON[_0x38e3f1(0x167)](_0x54a09d[_0x38e3f1(0x15d)],null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),{'registryPath':_0x473868,'filePath':_0x1a4cc1,'entry':_0x54a09d};}export function removeServiceManifest(_0x272d3c,_0x4cc275={}){const _0xc2563f=a40_0x2ee5ea,_0x4120c1=readServiceRegistry(_0x4cc275),_0x212c06=_0x272d3c[_0xc2563f(0x162)](),_0x14cddf=_0x4120c1['services']['findIndex'](_0x4c16a2=>_0x4c16a2[_0xc2563f(0x14c)]===_0x212c06);if(_0x14cddf<0x0)throw CliErrors['validation'](_0xc2563f(0x12d)+_0x212c06,_0xc2563f(0x148));const [_0x400fe4]=_0x4120c1[_0xc2563f(0x12e)][_0xc2563f(0x14e)](_0x14cddf,0x1),_0x11ac0c=(_0x4cc275[_0xc2563f(0x126)]??(()=>new Date()))()[_0xc2563f(0x11f)]();_0x4120c1[_0xc2563f(0x11b)]=_0x11ac0c;const _0x2c1906=writeServiceRegistry(_0x4120c1,_0x4cc275);return{'registryPath':_0x2c1906,'entry':_0x400fe4,'serviceCount':_0x4120c1[_0xc2563f(0x12e)][_0xc2563f(0x13c)]};}export function listLocalServices(_0x89a796={}){const _0x23930c=a40_0x2ee5ea;return readServiceRegistry(_0x89a796)[_0x23930c(0x12e)];}export function getLocalServiceEntry(_0x18a66b,_0xc53273={}){const _0x3289f6=a40_0x2ee5ea;return readServiceRegistry(_0xc53273)[_0x3289f6(0x12e)][_0x3289f6(0x132)](_0x3d086a=>_0x3d086a[_0x3289f6(0x14c)]===_0x18a66b[_0x3289f6(0x162)]());}export function listLocalServiceTrees(_0x16d855={}){const _0x3c0929=a40_0x2ee5ea;return readServiceRegistry(_0x16d855)['services'][_0x3c0929(0x120)](_0x61b7c1=>_0x61b7c1['normalizedManifest']);}export function inspectServiceRegistry(_0x356d5a={}){const _0xcfc9c=a40_0x2ee5ea,_0x4efab4=getServiceRegistryPath(_0x356d5a);if(!existsSync(_0x4efab4))return emptyServiceRegistryInspection(_0x4efab4,_0xcfc9c(0x16b),![]);try{const _0x3a52ae=readFileSync(_0x4efab4,_0xcfc9c(0x13b));if(!_0x3a52ae[_0xcfc9c(0x162)]())return emptyServiceRegistryInspection(_0x4efab4,_0xcfc9c(0x154),!![]);const _0x333091=JSON[_0xcfc9c(0x144)](_0x3a52ae);if(_0x333091['schemaVersion']!==SERVICE_REGISTRY_SCHEMA_VERSION)return{...emptyServiceRegistryInspection(_0x4efab4,'invalid',!![]),'schemaVersion':_0x333091['schemaVersion'],'message':'Unsupported\x20schemaVersion:\x20'+String(_0x333091[_0xcfc9c(0x13d)])};if(!Array['isArray'](_0x333091[_0xcfc9c(0x12e)]))return{...emptyServiceRegistryInspection(_0x4efab4,_0xcfc9c(0x12b),!![]),'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x333091['updatedAt'],'message':_0xcfc9c(0x165)};const _0x25935e=_0x333091['services'][_0xcfc9c(0x120)](summarizeLocalServiceEntry);return{'registryPath':_0x4efab4,'exists':!![],'status':'ok','schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x333091['updatedAt'],'serviceCount':_0x25935e[_0xcfc9c(0x13c)],'commandCount':_0x25935e[_0xcfc9c(0x15e)]((_0x153c8d,_0x33c3fd)=>_0x153c8d+_0x33c3fd[_0xcfc9c(0x13a)],0x0),'services':_0x25935e};}catch(_0x12ae88){return{...emptyServiceRegistryInspection(_0x4efab4,'invalid',!![]),'message':_0x12ae88 instanceof Error?_0x12ae88[_0xcfc9c(0x125)]:String(_0x12ae88)};}}export function formatValidationFailure(_0x2330cd){const _0x1f5dbb=a40_0x2ee5ea,_0x4f9fe0=_0x2330cd['errors']['map'](_0x73a7ce=>_0x73a7ce[_0x1f5dbb(0x16e)]+':\x20'+_0x73a7ce[_0x1f5dbb(0x125)]);return'Service\x20manifest\x20validation\x20failed:\x0a'+_0x4f9fe0[_0x1f5dbb(0x156)]('\x0a');}function extractLoadedServiceManifests(_0x56cdb,_0x4696c0){const _0x5299d5=a40_0x2ee5ea;if(!isServiceRegistryLike(_0x56cdb)){const _0x49e57c=_0x56cdb,_0x4943de=validateServiceTreeManifest(_0x49e57c);return[{'manifest':_0x49e57c,'report':_0x4943de,'normalizedManifest':_0x4943de['ok']?normalizeServiceTreeManifest(_0x49e57c):undefined,'sourceHash':_0x4696c0}];}return _0x56cdb[_0x5299d5(0x12e)][_0x5299d5(0x120)]((_0x53d9bf,_0x3acabe)=>{const _0x349f10=_0x5299d5,_0x4356d2=isObjectRecord(_0x53d9bf)?_0x53d9bf[_0x349f10(0x15d)]:undefined,_0x59d366=validateServiceTreeManifest(_0x4356d2),_0x2cf4ae=isObjectRecord(_0x53d9bf)&&typeof _0x53d9bf[_0x349f10(0x14c)]===_0x349f10(0x130)?_0x53d9bf[_0x349f10(0x14c)]:undefined;return{'manifest':_0x4356d2,'report':_0x59d366,'normalizedManifest':_0x59d366['ok']?normalizeServiceTreeManifest(_0x4356d2):undefined,'sourceHash':sha256(JSON[_0x349f10(0x167)](_0x4356d2,null,0x2)+'\x0a'),'registryIndex':_0x3acabe,'registryServiceCode':_0x2cf4ae};});}function aggregateValidationReports(_0x2dd60a){const _0x56f3de=a40_0x2ee5ea,_0x2d43c9=_0x2dd60a[_0x56f3de(0x133)](_0x4455cc=>_0x4455cc[_0x56f3de(0x13f)]===undefined?_0x4455cc[_0x56f3de(0x140)][_0x56f3de(0x152)]:_0x4455cc[_0x56f3de(0x140)][_0x56f3de(0x152)][_0x56f3de(0x120)](_0x2f4d3f=>({..._0x2f4d3f,'path':prefixRegistryIssuePath(_0x4455cc[_0x56f3de(0x13f)],_0x2f4d3f[_0x56f3de(0x16e)])}))),_0x1a3678=_0x2dd60a['flatMap'](_0x5261aa=>_0x5261aa[_0x56f3de(0x13f)]===undefined?_0x5261aa[_0x56f3de(0x140)]['warnings']:_0x5261aa[_0x56f3de(0x140)][_0x56f3de(0x134)][_0x56f3de(0x120)](_0xcb5c23=>({..._0xcb5c23,'path':prefixRegistryIssuePath(_0x5261aa[_0x56f3de(0x13f)],_0xcb5c23[_0x56f3de(0x16e)])})));return{'ok':_0x2d43c9[_0x56f3de(0x13c)]===0x0,'errors':_0x2d43c9,'warnings':_0x1a3678};}function prefixRegistryIssuePath(_0x4e8fbf,_0x2de047){const _0x1371e6=a40_0x2ee5ea;if(_0x2de047==='$')return'$.services['+_0x4e8fbf+_0x1371e6(0x141);if(_0x2de047[_0x1371e6(0x11e)]('$.'))return _0x1371e6(0x11a)+_0x4e8fbf+_0x1371e6(0x141)+_0x2de047[_0x1371e6(0x13e)](0x1);if(_0x2de047[_0x1371e6(0x11e)]('$['))return _0x1371e6(0x11a)+_0x4e8fbf+_0x1371e6(0x141)+_0x2de047['slice'](0x1);return _0x1371e6(0x11a)+_0x4e8fbf+'].manifest.'+_0x2de047;}function isServiceRegistryLike(_0x2d03f5){const _0x473377=a40_0x2ee5ea;return isObjectRecord(_0x2d03f5)&&_0x2d03f5[_0x473377(0x13d)]===SERVICE_REGISTRY_SCHEMA_VERSION&&Array[_0x473377(0x147)](_0x2d03f5['services']);}function isObjectRecord(_0x48274a){const _0x226dca=a40_0x2ee5ea;return Boolean(_0x48274a)&&typeof _0x48274a===_0x226dca(0x128)&&!Array[_0x226dca(0x147)](_0x48274a);}function emptyServiceRegistryInspection(_0x56d96a,_0x25e6c6,_0x2717ab){return{'registryPath':_0x56d96a,'exists':_0x2717ab,'status':_0x25e6c6,'serviceCount':0x0,'commandCount':0x0,'services':[]};}function summarizeLocalServiceEntry(_0x3105dd){const _0x4e124=a40_0x2ee5ea,_0x1902c5=_0x3105dd[_0x4e124(0x137)],_0x12cad2=_0x1902c5['commands'][_0x4e124(0x120)](_0x386172=>({'path':_0x386172[_0x4e124(0x169)],'description':_0x386172['description'],'risk':_0x386172[_0x4e124(0x145)],'targetKind':_0x386172['target']['kind'],'targetCommand':_0x386172['target'][_0x4e124(0x168)]}));return{'serviceCode':_0x3105dd[_0x4e124(0x14c)],'name':_0x1902c5[_0x4e124(0x15a)][_0x4e124(0x124)],'description':_0x1902c5[_0x4e124(0x15a)][_0x4e124(0x12a)],'version':_0x3105dd[_0x4e124(0x127)],'importedAt':_0x3105dd[_0x4e124(0x150)],'source':_0x3105dd[_0x4e124(0x12c)],'commandCount':_0x12cad2['length'],'commands':_0x12cad2};}function sha256(_0x237476){const _0x4d86b6=a40_0x2ee5ea;return createHash(_0x4d86b6(0x138))[_0x4d86b6(0x11d)](_0x237476)[_0x4d86b6(0x142)](_0x4d86b6(0x159));}
1
+ const a40_0x3d35e3=a40_0xfbc7;(function(_0x4f3817,_0x281e16){const _0x47ccbc=a40_0xfbc7,_0x41cfd2=_0x4f3817();while(!![]){try{const _0x5ab58c=parseInt(_0x47ccbc(0x191))/0x1*(-parseInt(_0x47ccbc(0x19e))/0x2)+parseInt(_0x47ccbc(0x170))/0x3*(parseInt(_0x47ccbc(0x175))/0x4)+-parseInt(_0x47ccbc(0x17a))/0x5+parseInt(_0x47ccbc(0x189))/0x6+parseInt(_0x47ccbc(0x193))/0x7+parseInt(_0x47ccbc(0x176))/0x8+parseInt(_0x47ccbc(0x172))/0x9;if(_0x5ab58c===_0x281e16)break;else _0x41cfd2['push'](_0x41cfd2['shift']());}catch(_0x1c18ce){_0x41cfd2['push'](_0x41cfd2['shift']());}}}(a40_0x2f9d,0x4fbbe));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a40_0xfbc7(_0x3f3a7d,_0x352bc4){_0x3f3a7d=_0x3f3a7d-0x16d;const _0x2f9dbc=a40_0x2f9d();let _0xfbc7c6=_0x2f9dbc[_0x3f3a7d];return _0xfbc7c6;}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';export const SERVICE_REGISTRY_SCHEMA_VERSION=0x1;export const SERVICE_REGISTRY_FILE_NAME=a40_0x3d35e3(0x1be);export function getServiceRegistryPath(_0x9da1c4={}){const _0x4332b6=a40_0x3d35e3;return resolve(_0x9da1c4[_0x4332b6(0x1a5)]??homedir(),PRODUCT_CONFIG[_0x4332b6(0x1a0)],SERVICE_REGISTRY_FILE_NAME);}export function emptyServiceRegistry(){return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'services':[]};}export function readServiceRegistry(_0x26bc61={}){const _0x2a8499=a40_0x3d35e3,_0x4fcd1a=getServiceRegistryPath(_0x26bc61);if(!existsSync(_0x4fcd1a))return emptyServiceRegistry();try{const _0x5c15bd=readFileSync(_0x4fcd1a,_0x2a8499(0x1a7));if(!_0x5c15bd[_0x2a8499(0x1a1)]())return emptyServiceRegistry();const _0x8805e6=JSON[_0x2a8499(0x17b)](_0x5c15bd);if(_0x8805e6[_0x2a8499(0x1b1)]!==SERVICE_REGISTRY_SCHEMA_VERSION)throw CliErrors[_0x2a8499(0x178)](_0x2a8499(0x1a2)+String(_0x8805e6[_0x2a8499(0x1b1)]),_0x2a8499(0x1b3)+_0x4fcd1a+'.');if(!Array['isArray'](_0x8805e6[_0x2a8499(0x1b7)]))return emptyServiceRegistry();return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x8805e6[_0x2a8499(0x181)],'services':_0x8805e6[_0x2a8499(0x1b7)]};}catch(_0x5c6e4b){if(_0x5c6e4b instanceof Error&&_0x5c6e4b[_0x2a8499(0x177)]===_0x2a8499(0x187))throw _0x5c6e4b;throw CliErrors[_0x2a8499(0x178)](_0x2a8499(0x18c)+_0x4fcd1a,_0x2a8499(0x1b6));}}export function writeServiceRegistry(_0xb03b86,_0x559bea={}){const _0x2b7136=a40_0x3d35e3,_0x2ef63e=getServiceRegistryPath(_0x559bea),_0x59b6c7=dirname(_0x2ef63e);!existsSync(_0x59b6c7)&&mkdirSync(_0x59b6c7,{'recursive':!![]});const _0x1f4b14=_0x2ef63e+_0x2b7136(0x179);try{writeFileSync(_0x1f4b14,JSON[_0x2b7136(0x1ba)](_0xb03b86,null,0x2)+'\x0a',{'encoding':_0x2b7136(0x1a7),'mode':0x180}),renameSync(_0x1f4b14,_0x2ef63e);}catch(_0x31d374){try{unlinkSync(_0x1f4b14);}catch{}if(_0x31d374?.[_0x2b7136(0x184)]===_0x2b7136(0x1b5))throw CliErrors[_0x2b7136(0x178)](_0x2b7136(0x194)+_0x2ef63e);throw _0x31d374;}return _0x2ef63e;}export function loadServiceManifestFromFile(_0x5a9576){const _0x472857=a40_0x3d35e3,_0x1aefde=resolve(_0x5a9576);if(!existsSync(_0x1aefde))throw CliErrors[_0x472857(0x178)](_0x472857(0x17d)+_0x5a9576);let _0x29cb28;const _0x5d87a8=readFileSync(_0x1aefde,_0x472857(0x1a7));try{_0x29cb28=JSON['parse'](_0x5d87a8);}catch{throw CliErrors['validation']('Invalid\x20service\x20manifest\x20JSON:\x20'+_0x5a9576,_0x472857(0x1b8));}const _0x5597d6=sha256(_0x5d87a8),_0x204077=extractLoadedServiceManifests(_0x29cb28,_0x5597d6),_0x3e914c=aggregateValidationReports(_0x204077),_0x3701a9=_0x204077[0x0];return{'filePath':_0x1aefde,'hash':_0x5597d6,'kind':isServiceRegistryLike(_0x29cb28)?_0x472857(0x173):_0x472857(0x186),'manifest':_0x3701a9?.[_0x472857(0x186)]??_0x29cb28,'report':_0x3e914c,'normalizedManifest':_0x204077[_0x472857(0x1b2)]===0x1?_0x3701a9?.[_0x472857(0x16e)]:undefined,'manifests':_0x204077};}export function importServiceManifest(_0x2e3853,_0x30dc63={}){const _0x4d9ae0=a40_0x3d35e3,_0x4364ed=loadServiceManifestFromFile(_0x2e3853);if(!_0x4364ed[_0x4d9ae0(0x1a3)]['ok'])throw CliErrors[_0x4d9ae0(0x178)](formatValidationFailure(_0x4364ed[_0x4d9ae0(0x1a3)]),'Fix\x20the\x20service\x20manifest\x20and\x20run\x20service\x20validate\x20again.');if(_0x4364ed[_0x4d9ae0(0x199)][_0x4d9ae0(0x1b2)]===0x0)throw CliErrors[_0x4d9ae0(0x178)](_0x4d9ae0(0x196),_0x4d9ae0(0x1b0));const _0x4a3ee9=readServiceRegistry(_0x30dc63),_0x528561=(_0x30dc63[_0x4d9ae0(0x1ab)]??(()=>new Date()))()[_0x4d9ae0(0x19a)](),_0x224d72=[];let _0x2ccd1=0x0,_0x4f370e=0x0;for(const _0x34e88f of _0x4364ed[_0x4d9ae0(0x199)]){if(!_0x34e88f[_0x4d9ae0(0x16e)])continue;const _0xcffee6=_0x34e88f[_0x4d9ae0(0x16e)][_0x4d9ae0(0x1ad)][_0x4d9ae0(0x184)],_0x17a958={'serviceCode':_0xcffee6,'version':_0x34e88f['normalizedManifest'][_0x4d9ae0(0x17e)],'importedAt':_0x528561,'source':{'type':'file','path':_0x4364ed['filePath'],'hash':_0x34e88f[_0x4d9ae0(0x180)]},'manifest':_0x34e88f[_0x4d9ae0(0x186)],'normalizedManifest':_0x34e88f[_0x4d9ae0(0x16e)]},_0x48efd1=_0x4a3ee9['services'][_0x4d9ae0(0x17f)](_0x9a5b44=>_0x9a5b44['serviceCode']===_0xcffee6);_0x48efd1>=0x0?(_0x4a3ee9[_0x4d9ae0(0x1b7)][_0x48efd1]=_0x17a958,_0x4f370e++):(_0x4a3ee9[_0x4d9ae0(0x1b7)][_0x4d9ae0(0x192)](_0x17a958),_0x2ccd1++),_0x224d72[_0x4d9ae0(0x192)](_0x17a958);}_0x4a3ee9[_0x4d9ae0(0x1b7)]['sort']((_0x455862,_0x598ff2)=>_0x455862[_0x4d9ae0(0x19b)]['localeCompare'](_0x598ff2[_0x4d9ae0(0x19b)])),_0x4a3ee9[_0x4d9ae0(0x181)]=_0x528561;const _0x2497b4=writeServiceRegistry(_0x4a3ee9,_0x30dc63);return{'registryPath':_0x2497b4,'entry':_0x224d72[0x0],'replaced':_0x224d72[_0x4d9ae0(0x1b2)]===0x1?_0x4f370e===0x1:_0x4f370e>0x0,'entries':_0x224d72,'imported':_0x2ccd1,'updated':_0x4f370e,'serviceCount':_0x4a3ee9[_0x4d9ae0(0x1b7)][_0x4d9ae0(0x1b2)]};}export function exportServiceManifest(_0x36cd4f,_0x18b447,_0x11def5={}){const _0x58797c=a40_0x3d35e3,_0x49d1b6=getServiceRegistryPath(_0x11def5),_0x4f2f99=getLocalServiceEntry(_0x36cd4f,_0x11def5);if(!_0x4f2f99)throw CliErrors[_0x58797c(0x178)](_0x58797c(0x1c0)+_0x36cd4f,_0x58797c(0x171));const _0xc427ae=resolve(_0x18b447),_0x4829ff=dirname(_0xc427ae);return!existsSync(_0x4829ff)&&mkdirSync(_0x4829ff,{'recursive':!![]}),writeFileSync(_0xc427ae,JSON[_0x58797c(0x1ba)](_0x4f2f99[_0x58797c(0x186)],null,0x2)+'\x0a',{'encoding':_0x58797c(0x1a7),'mode':0x180}),{'registryPath':_0x49d1b6,'filePath':_0xc427ae,'entry':_0x4f2f99};}export function removeServiceManifest(_0x5a9ae5,_0xdbd585={}){const _0x5bbb73=a40_0x3d35e3,_0x1669be=readServiceRegistry(_0xdbd585),_0x6deb50=_0x5a9ae5[_0x5bbb73(0x1a1)](),_0x10f945=_0x1669be['services'][_0x5bbb73(0x17f)](_0x259bf7=>_0x259bf7[_0x5bbb73(0x19b)]===_0x6deb50);if(_0x10f945<0x0)throw CliErrors[_0x5bbb73(0x178)](_0x5bbb73(0x1c0)+_0x6deb50,_0x5bbb73(0x171));const [_0x367316]=_0x1669be[_0x5bbb73(0x1b7)]['splice'](_0x10f945,0x1),_0x1b8cd0=(_0xdbd585['now']??(()=>new Date()))()[_0x5bbb73(0x19a)]();_0x1669be[_0x5bbb73(0x181)]=_0x1b8cd0;const _0x2ae778=writeServiceRegistry(_0x1669be,_0xdbd585);return{'registryPath':_0x2ae778,'entry':_0x367316,'serviceCount':_0x1669be[_0x5bbb73(0x1b7)][_0x5bbb73(0x1b2)]};}export function listLocalServices(_0x1dbc8b={}){return readServiceRegistry(_0x1dbc8b)['services'];}export function getLocalServiceEntry(_0x348e74,_0x33547a={}){const _0x2725fa=a40_0x3d35e3;return readServiceRegistry(_0x33547a)['services'][_0x2725fa(0x190)](_0x3f98bc=>_0x3f98bc[_0x2725fa(0x19b)]===_0x348e74[_0x2725fa(0x1a1)]());}export function listLocalServiceTrees(_0x3e9a55={}){const _0x4a6b1c=a40_0x3d35e3;return readServiceRegistry(_0x3e9a55)[_0x4a6b1c(0x1b7)]['map'](_0x2356be=>_0x2356be['normalizedManifest']);}export function inspectServiceRegistry(_0x3f8ca8={}){const _0x12ff01=a40_0x3d35e3,_0x122c2a=getServiceRegistryPath(_0x3f8ca8);if(!existsSync(_0x122c2a))return emptyServiceRegistryInspection(_0x122c2a,_0x12ff01(0x18b),![]);try{const _0x187952=readFileSync(_0x122c2a,'utf8');if(!_0x187952[_0x12ff01(0x1a1)]())return emptyServiceRegistryInspection(_0x122c2a,_0x12ff01(0x183),!![]);const _0x268936=JSON['parse'](_0x187952);if(_0x268936[_0x12ff01(0x1b1)]!==SERVICE_REGISTRY_SCHEMA_VERSION)return{...emptyServiceRegistryInspection(_0x122c2a,_0x12ff01(0x16d),!![]),'schemaVersion':_0x268936[_0x12ff01(0x1b1)],'message':_0x12ff01(0x1bb)+String(_0x268936[_0x12ff01(0x1b1)])};if(!Array[_0x12ff01(0x1a9)](_0x268936[_0x12ff01(0x1b7)]))return{...emptyServiceRegistryInspection(_0x122c2a,_0x12ff01(0x16d),!![]),'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x268936[_0x12ff01(0x181)],'message':_0x12ff01(0x1aa)};const _0x2fefba=_0x268936['services'][_0x12ff01(0x19f)](summarizeLocalServiceEntry);return{'registryPath':_0x122c2a,'exists':!![],'status':'ok','schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x268936[_0x12ff01(0x181)],'serviceCount':_0x2fefba[_0x12ff01(0x1b2)],'commandCount':_0x2fefba[_0x12ff01(0x19c)]((_0x51177c,_0x12a432)=>_0x51177c+_0x12a432[_0x12ff01(0x18e)],0x0),'services':_0x2fefba};}catch(_0x415bf3){return{...emptyServiceRegistryInspection(_0x122c2a,'invalid',!![]),'message':_0x415bf3 instanceof Error?_0x415bf3[_0x12ff01(0x1bd)]:String(_0x415bf3)};}}export function formatValidationFailure(_0x50e94f){const _0x4b665b=a40_0x3d35e3,_0x2c71ad=_0x50e94f[_0x4b665b(0x1bf)][_0x4b665b(0x19f)](_0x1b9e55=>_0x1b9e55[_0x4b665b(0x1a6)]+':\x20'+_0x1b9e55[_0x4b665b(0x1bd)]);return _0x4b665b(0x19d)+_0x2c71ad['join']('\x0a');}function extractLoadedServiceManifests(_0x4044b0,_0xc7f7da){const _0x417e37=a40_0x3d35e3;if(!isServiceRegistryLike(_0x4044b0)){const _0x41361f=_0x4044b0,_0x380af3=validateServiceTreeManifest(_0x41361f);return[{'manifest':_0x41361f,'report':_0x380af3,'normalizedManifest':_0x380af3['ok']?normalizeServiceTreeManifest(_0x41361f):undefined,'sourceHash':_0xc7f7da}];}return _0x4044b0[_0x417e37(0x1b7)][_0x417e37(0x19f)]((_0x379bcf,_0x38e343)=>{const _0x190378=_0x417e37,_0x5a68a0=isObjectRecord(_0x379bcf)?_0x379bcf[_0x190378(0x186)]:undefined,_0x5be46a=validateServiceTreeManifest(_0x5a68a0),_0x12c2ab=isObjectRecord(_0x379bcf)&&typeof _0x379bcf[_0x190378(0x19b)]===_0x190378(0x1a4)?_0x379bcf[_0x190378(0x19b)]:undefined;return{'manifest':_0x5a68a0,'report':_0x5be46a,'normalizedManifest':_0x5be46a['ok']?normalizeServiceTreeManifest(_0x5a68a0):undefined,'sourceHash':sha256(JSON[_0x190378(0x1ba)](_0x5a68a0,null,0x2)+'\x0a'),'registryIndex':_0x38e343,'registryServiceCode':_0x12c2ab};});}function aggregateValidationReports(_0xc03a84){const _0x2479a2=a40_0x3d35e3,_0x56e0b5=_0xc03a84[_0x2479a2(0x1ae)](_0x318503=>_0x318503['registryIndex']===undefined?_0x318503[_0x2479a2(0x1a3)][_0x2479a2(0x1bf)]:_0x318503['report']['errors']['map'](_0x472d94=>({..._0x472d94,'path':prefixRegistryIssuePath(_0x318503[_0x2479a2(0x18d)],_0x472d94[_0x2479a2(0x1a6)])}))),_0x5ef368=_0xc03a84[_0x2479a2(0x1ae)](_0xa75096=>_0xa75096[_0x2479a2(0x18d)]===undefined?_0xa75096['report']['warnings']:_0xa75096[_0x2479a2(0x1a3)]['warnings'][_0x2479a2(0x19f)](_0x42924d=>({..._0x42924d,'path':prefixRegistryIssuePath(_0xa75096['registryIndex'],_0x42924d['path'])})));return{'ok':_0x56e0b5['length']===0x0,'errors':_0x56e0b5,'warnings':_0x5ef368};}function a40_0x2f9d(){const _0x1c83ef=['path','utf8','].manifest','isArray','services\x20must\x20be\x20an\x20array','now','command','service','flatMap','cliPath','Add\x20at\x20least\x20one\x20service\x20manifest,\x20then\x20run\x20service\x20import\x20again.','schemaVersion','length','Remove\x20or\x20migrate\x20','startsWith','ENOENT','Fix\x20the\x20JSON\x20file\x20or\x20move\x20it\x20aside\x20and\x20import\x20services\x20again.','services','Fix\x20the\x20JSON\x20syntax\x20and\x20run\x20service\x20validate\x20again.','commands','stringify','Unsupported\x20schemaVersion:\x20','description','message','service.json','errors','Local\x20service\x20not\x20found:\x20','invalid','normalizedManifest','slice','30aemQNJ','Run\x20lovrabet\x20service\x20list\x20to\x20see\x20imported\x20services.','3374307edtOpR','registry','source','9892lKgeZZ','1454736tMCziK','name','validation','.tmp','1529525bCnFlz','parse','update','Service\x20manifest\x20file\x20not\x20found:\x20','version','findIndex','sourceHash','updatedAt','kind','empty','code','].manifest.','manifest','CliError','hex','1715442xeQZsm','risk','missing','Invalid\x20service\x20registry\x20JSON:\x20','registryIndex','commandCount','$.services[','find','243999IOkWMl','push','63644elGHZn','Cannot\x20write\x20service\x20registry:\x20','target','Service\x20registry\x20has\x20no\x20services\x20to\x20import.','importedAt','object','manifests','toISOString','serviceCode','reduce','Service\x20manifest\x20validation\x20failed:\x0a','2WNSiRt','map','homeDirName','trim','Unsupported\x20service\x20registry\x20schemaVersion:\x20','report','string','homeDir'];a40_0x2f9d=function(){return _0x1c83ef;};return a40_0x2f9d();}function prefixRegistryIssuePath(_0x46f780,_0x5356c1){const _0x5de6ba=a40_0x3d35e3;if(_0x5356c1==='$')return _0x5de6ba(0x18f)+_0x46f780+_0x5de6ba(0x1a8);if(_0x5356c1[_0x5de6ba(0x1b4)]('$.'))return _0x5de6ba(0x18f)+_0x46f780+_0x5de6ba(0x1a8)+_0x5356c1[_0x5de6ba(0x16f)](0x1);if(_0x5356c1['startsWith']('$['))return _0x5de6ba(0x18f)+_0x46f780+_0x5de6ba(0x1a8)+_0x5356c1[_0x5de6ba(0x16f)](0x1);return _0x5de6ba(0x18f)+_0x46f780+_0x5de6ba(0x185)+_0x5356c1;}function isServiceRegistryLike(_0x413b2d){const _0x489d20=a40_0x3d35e3;return isObjectRecord(_0x413b2d)&&_0x413b2d[_0x489d20(0x1b1)]===SERVICE_REGISTRY_SCHEMA_VERSION&&Array[_0x489d20(0x1a9)](_0x413b2d['services']);}function isObjectRecord(_0x22931a){const _0x3d9365=a40_0x3d35e3;return Boolean(_0x22931a)&&typeof _0x22931a===_0x3d9365(0x198)&&!Array[_0x3d9365(0x1a9)](_0x22931a);}function emptyServiceRegistryInspection(_0x4fa522,_0xe0928,_0x4c717f){return{'registryPath':_0x4fa522,'exists':_0x4c717f,'status':_0xe0928,'serviceCount':0x0,'commandCount':0x0,'services':[]};}function summarizeLocalServiceEntry(_0x4a077c){const _0xb7e875=a40_0x3d35e3,_0x5c559a=_0x4a077c[_0xb7e875(0x16e)],_0x51fa42=_0x5c559a[_0xb7e875(0x1b9)][_0xb7e875(0x19f)](_0x2ee7f6=>({'path':_0x2ee7f6[_0xb7e875(0x1af)],'description':_0x2ee7f6[_0xb7e875(0x1bc)],'risk':_0x2ee7f6[_0xb7e875(0x18a)],'targetKind':_0x2ee7f6[_0xb7e875(0x195)][_0xb7e875(0x182)],'targetCommand':_0x2ee7f6[_0xb7e875(0x195)][_0xb7e875(0x1ac)]}));return{'serviceCode':_0x4a077c[_0xb7e875(0x19b)],'name':_0x5c559a['service'][_0xb7e875(0x177)],'description':_0x5c559a['service'][_0xb7e875(0x1bc)],'version':_0x4a077c['version'],'importedAt':_0x4a077c[_0xb7e875(0x197)],'source':_0x4a077c[_0xb7e875(0x174)],'commandCount':_0x51fa42[_0xb7e875(0x1b2)],'commands':_0x51fa42};}function sha256(_0x3584a5){const _0x458c6a=a40_0x3d35e3;return createHash('sha256')[_0x458c6a(0x17c)](_0x3584a5)['digest'](_0x458c6a(0x188));}
@@ -1 +1 @@
1
- const a41_0x184f48=a41_0x2dce;(function(_0x424f39,_0x23b851){const _0x149dbf=a41_0x2dce,_0x4be092=_0x424f39();while(!![]){try{const _0x5d4a55=parseInt(_0x149dbf(0xab))/0x1+parseInt(_0x149dbf(0xc7))/0x2*(parseInt(_0x149dbf(0xbb))/0x3)+-parseInt(_0x149dbf(0xc3))/0x4*(-parseInt(_0x149dbf(0xb5))/0x5)+-parseInt(_0x149dbf(0xb0))/0x6*(parseInt(_0x149dbf(0xbf))/0x7)+-parseInt(_0x149dbf(0xc5))/0x8+parseInt(_0x149dbf(0xac))/0x9+-parseInt(_0x149dbf(0xc1))/0xa;if(_0x5d4a55===_0x23b851)break;else _0x4be092['push'](_0x4be092['shift']());}catch(_0x93d69a){_0x4be092['push'](_0x4be092['shift']());}}}(a41_0x112c,0x4f0c2));import{existsSync,lstatSync,mkdirSync,writeFileSync}from'node:fs';import{dirname,resolve}from'node:path';function a41_0x2dce(_0x578fa0,_0x1513b2){_0x578fa0=_0x578fa0-0xa7;const _0x112c92=a41_0x112c();let _0x2dce06=_0x112c92[_0x578fa0];return _0x2dce06;}import{CliErrors}from'../../../errors.js';function a41_0x112c(){const _0x1fb98e=['str','WRITE','type','isSymbolicLink','161977AYCVfs','1629702ThzKtx','utf8','Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','validation','996gEwUBl','Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.','bool','force','name','148210JtHkME','map','rendered','Skill\x20directory\x20already\x20exists:\x20','files','path','5001IUVbUx','write','isDirectory','skillDir','23149ODWwIi','Created\x20local\x20Skill\x20draft\x20','67050TCMRfp','Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.','28ZpiGVr','Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20','1556336RzsiZW','create','628gRccbI','trim','target','skillName'];a41_0x112c=function(){return _0x1fb98e;};return a41_0x112c();}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':a41_0x184f48(0xc6),'description':a41_0x184f48(0xae),'risk':a41_0x184f48(0xbc),'requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x589ae7){const _0x13c798=a41_0x184f48,_0x2f8277=buildSkillCreatePlan(_0x589ae7[_0x13c798(0xa7)](_0x13c798(0xb4)),_0x589ae7['str'](_0x13c798(0xa9)),_0x589ae7['str'](_0x13c798(0xc9)));return{'method':_0x13c798(0xa8),'url':_0x2f8277['skillDir'],'body':{'skillName':_0x2f8277[_0x13c798(0xb7)][_0x13c798(0xca)],'type':_0x2f8277[_0x13c798(0xb7)][_0x13c798(0xa9)],'selfContained':!![],'files':_0x2f8277[_0x13c798(0xb7)][_0x13c798(0xb9)][_0x13c798(0xb6)](_0x5e6fbd=>_0x5e6fbd[_0x13c798(0xba)])},'description':_0x13c798(0xc2)};},async 'execute'(_0x3066a5){const _0x5121db=a41_0x184f48,_0x1e5afa=buildSkillCreatePlan(_0x3066a5[_0x5121db(0xa7)](_0x5121db(0xb4)),_0x3066a5[_0x5121db(0xa7)]('type'),_0x3066a5['str'](_0x5121db(0xc9)));return writeSkillDraft(_0x1e5afa,_0x3066a5[_0x5121db(0xb2)](_0x5121db(0xb3))),{'ok':!![],'data':{'skillName':_0x1e5afa['rendered']['skillName'],'type':_0x1e5afa[_0x5121db(0xb7)][_0x5121db(0xa9)],'dir':_0x1e5afa['skillDir'],'files':_0x1e5afa['rendered']['files'][_0x5121db(0xb6)](_0x32adba=>_0x32adba['path'])},'message':_0x5121db(0xc0)+_0x1e5afa[_0x5121db(0xb7)][_0x5121db(0xca)]};}};function buildSkillCreatePlan(_0x392cd3,_0x4a4e5a,_0x5155b4){const _0x24d40a=a41_0x184f48,_0x9f9687=renderSkillTemplate({'skillName':_0x392cd3,'type':_0x4a4e5a}),_0x45f353=resolve(normalizeSkillTarget(_0x5155b4));return{'rendered':_0x9f9687,'targetRoot':_0x45f353,'skillDir':resolve(_0x45f353,_0x9f9687[_0x24d40a(0xca)])};}function normalizeSkillTarget(_0x551039){const _0x4047eb=a41_0x184f48;return(_0x551039||DEFAULT_SKILL_TARGET)[_0x4047eb(0xc8)]()||DEFAULT_SKILL_TARGET;}function writeSkillDraft(_0x2d8267,_0x1ebfe3){const _0x29a8bd=a41_0x184f48;if(existsSync(_0x2d8267[_0x29a8bd(0xbe)])){const _0x4e2120=lstatSync(_0x2d8267[_0x29a8bd(0xbe)]);if(!_0x4e2120[_0x29a8bd(0xbd)]()||_0x4e2120[_0x29a8bd(0xaa)]())throw CliErrors[_0x29a8bd(0xaf)](_0x29a8bd(0xc4)+_0x2d8267[_0x29a8bd(0xbe)]);if(!_0x1ebfe3)throw CliErrors['validation'](_0x29a8bd(0xb8)+_0x2d8267[_0x29a8bd(0xbe)],_0x29a8bd(0xb1));}for(const _0x16ef85 of _0x2d8267[_0x29a8bd(0xb7)][_0x29a8bd(0xb9)]){const _0x4ed3c0=resolve(_0x2d8267['skillDir'],_0x16ef85[_0x29a8bd(0xba)]),_0x1c0433=dirname(_0x4ed3c0);mkdirSync(_0x1c0433,{'recursive':!![]});if(existsSync(_0x4ed3c0)&&lstatSync(_0x4ed3c0)[_0x29a8bd(0xaa)]())throw CliErrors['validation']('Refusing\x20to\x20overwrite\x20symlink:\x20'+_0x4ed3c0);writeFileSync(_0x4ed3c0,_0x16ef85['content'],_0x29a8bd(0xad));}}
1
+ const a41_0x3d6bf2=a41_0x24e6;(function(_0x53f253,_0x4d05ee){const _0x3a2595=a41_0x24e6,_0x704ea3=_0x53f253();while(!![]){try{const _0x813c8=parseInt(_0x3a2595(0x19c))/0x1+-parseInt(_0x3a2595(0x181))/0x2+-parseInt(_0x3a2595(0x187))/0x3+-parseInt(_0x3a2595(0x19e))/0x4+-parseInt(_0x3a2595(0x196))/0x5*(-parseInt(_0x3a2595(0x19d))/0x6)+-parseInt(_0x3a2595(0x186))/0x7*(parseInt(_0x3a2595(0x190))/0x8)+parseInt(_0x3a2595(0x194))/0x9;if(_0x813c8===_0x4d05ee)break;else _0x704ea3['push'](_0x704ea3['shift']());}catch(_0x546212){_0x704ea3['push'](_0x704ea3['shift']());}}}(a41_0x1804,0xe161d));import{existsSync,lstatSync,mkdirSync,writeFileSync}from'node:fs';import{dirname,resolve}from'node:path';function a41_0x1804(){const _0x2ff304=['files','bool','1596412xhIvkK','6MmZlau','7050068KnjlSo','362296SAkwCu','rendered','name','force','skillName','11804233hiapRz','2013708QuVZpN','Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.','write','path','isSymbolicLink','validation','trim','utf8','target','8GoddEQ','map','create','str','31258980SAuvNY','Refusing\x20to\x20overwrite\x20symlink:\x20','773765VLhinc','skillDir','WRITE','type'];a41_0x1804=function(){return _0x2ff304;};return a41_0x1804();}import{CliErrors}from'../../../errors.js';import{CREATE_NAME_FLAG,FORCE_FLAG,TARGET_FLAG,TYPE_FLAG}from'../flags.js';import{DEFAULT_SKILL_TARGET,renderSkillTemplate}from'../templates.js';export const createCommand={'service':'skill','command':a41_0x3d6bf2(0x192),'description':'Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','risk':a41_0x3d6bf2(0x189),'requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x53c9c3){const _0x1dc99c=a41_0x3d6bf2,_0x1c2c96=buildSkillCreatePlan(_0x53c9c3[_0x1dc99c(0x193)](_0x1dc99c(0x183)),_0x53c9c3[_0x1dc99c(0x193)](_0x1dc99c(0x199)),_0x53c9c3[_0x1dc99c(0x193)](_0x1dc99c(0x18f)));return{'method':_0x1dc99c(0x198),'url':_0x1c2c96[_0x1dc99c(0x197)],'body':{'skillName':_0x1c2c96[_0x1dc99c(0x182)][_0x1dc99c(0x185)],'type':_0x1c2c96[_0x1dc99c(0x182)][_0x1dc99c(0x199)],'selfContained':!![],'files':_0x1c2c96[_0x1dc99c(0x182)][_0x1dc99c(0x19a)][_0x1dc99c(0x191)](_0x10843d=>_0x10843d[_0x1dc99c(0x18a)])},'description':'Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.'};},async 'execute'(_0x337734){const _0x8272de=a41_0x3d6bf2,_0x3926d5=buildSkillCreatePlan(_0x337734[_0x8272de(0x193)]('name'),_0x337734[_0x8272de(0x193)](_0x8272de(0x199)),_0x337734[_0x8272de(0x193)]('target'));return writeSkillDraft(_0x3926d5,_0x337734[_0x8272de(0x19b)](_0x8272de(0x184))),{'ok':!![],'data':{'skillName':_0x3926d5[_0x8272de(0x182)][_0x8272de(0x185)],'type':_0x3926d5[_0x8272de(0x182)]['type'],'dir':_0x3926d5[_0x8272de(0x197)],'files':_0x3926d5[_0x8272de(0x182)][_0x8272de(0x19a)]['map'](_0x50930e=>_0x50930e[_0x8272de(0x18a)])},'message':'Created\x20local\x20Skill\x20draft\x20'+_0x3926d5['rendered'][_0x8272de(0x185)]};}};function buildSkillCreatePlan(_0x531ffb,_0x2571c2,_0x58f408){const _0x5cf339=renderSkillTemplate({'skillName':_0x531ffb,'type':_0x2571c2}),_0x358a69=resolve(normalizeSkillTarget(_0x58f408));return{'rendered':_0x5cf339,'targetRoot':_0x358a69,'skillDir':resolve(_0x358a69,_0x5cf339['skillName'])};}function normalizeSkillTarget(_0x162d64){const _0x156cd6=a41_0x3d6bf2;return(_0x162d64||DEFAULT_SKILL_TARGET)[_0x156cd6(0x18d)]()||DEFAULT_SKILL_TARGET;}function a41_0x24e6(_0x292a6a,_0xc6983e){_0x292a6a=_0x292a6a-0x181;const _0x1804b5=a41_0x1804();let _0x24e6eb=_0x1804b5[_0x292a6a];return _0x24e6eb;}function writeSkillDraft(_0x3ed8ac,_0x5cd3ce){const _0x51fce2=a41_0x3d6bf2;if(existsSync(_0x3ed8ac[_0x51fce2(0x197)])){const _0x560b15=lstatSync(_0x3ed8ac['skillDir']);if(!_0x560b15['isDirectory']()||_0x560b15[_0x51fce2(0x18b)]())throw CliErrors['validation']('Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20'+_0x3ed8ac[_0x51fce2(0x197)]);if(!_0x5cd3ce)throw CliErrors['validation']('Skill\x20directory\x20already\x20exists:\x20'+_0x3ed8ac[_0x51fce2(0x197)],_0x51fce2(0x188));}for(const _0x11d5ef of _0x3ed8ac[_0x51fce2(0x182)]['files']){const _0x22fb98=resolve(_0x3ed8ac[_0x51fce2(0x197)],_0x11d5ef['path']),_0x41f212=dirname(_0x22fb98);mkdirSync(_0x41f212,{'recursive':!![]});if(existsSync(_0x22fb98)&&lstatSync(_0x22fb98)[_0x51fce2(0x18b)]())throw CliErrors[_0x51fce2(0x18c)](_0x51fce2(0x195)+_0x22fb98);writeFileSync(_0x22fb98,_0x11d5ef['content'],_0x51fce2(0x18e));}}
@@ -1 +1 @@
1
- const a42_0x41b304=a42_0x5b54;(function(_0xbb5943,_0x4f683f){const _0x1266b5=a42_0x5b54,_0x261026=_0xbb5943();while(!![]){try{const _0x746f5=-parseInt(_0x1266b5(0x93))/0x1*(parseInt(_0x1266b5(0xa4))/0x2)+-parseInt(_0x1266b5(0x9b))/0x3*(-parseInt(_0x1266b5(0x88))/0x4)+-parseInt(_0x1266b5(0x8e))/0x5*(-parseInt(_0x1266b5(0x7c))/0x6)+-parseInt(_0x1266b5(0x95))/0x7+-parseInt(_0x1266b5(0xa3))/0x8+parseInt(_0x1266b5(0x9f))/0x9*(parseInt(_0x1266b5(0x94))/0xa)+-parseInt(_0x1266b5(0x8c))/0xb*(-parseInt(_0x1266b5(0x84))/0xc);if(_0x746f5===_0x4f683f)break;else _0x261026['push'](_0x261026['shift']());}catch(_0x161497){_0x261026['push'](_0x261026['shift']());}}}(a42_0x3315,0x6d2d7));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,FORCE_FLAG,SCOPE_FLAG}from'../flags.js';import{normalizeSyncScopes}from'../scopes.js';import{summarizeRuntimeSkill}from'../summary.js';export const installCommand={'service':a42_0x41b304(0x87),'command':'install','description':'Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','risk':a42_0x41b304(0x7d),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG],async 'execute'(_0x5300a4){return syncRuntimeSkills(_0x5300a4);}};function a42_0x3315(){const _0x2daeed=['authRequired','36uNkCZS','includes','trim','skill','1004552SHapkO','push','\x20company\x20Skill(s).','map','1031426nflluL','skipped','2125lghfBy','updated','version','../../../core/api-client.js','company','5KCLRAu','390ltbSRb','1052254ldKYqq','reduce','appCode','flatMap','removed','envName','3fRpNqm','all','force','Installed\x20','112869bUdZhu','accessKey','skillCode','filter','1194216cimhoQ','288228PmkOGw','personal','created','scope','6294eDekJH','write','action','length','../../../skills/runtime-skill-sync.js','str','production'];a42_0x3315=function(){return _0x2daeed;};return a42_0x3315();}async function syncRuntimeSkills(_0x5c9d75){const _0x496905=a42_0x41b304,{downloadRuntimeSkillPackage:_0x24cd31,listRuntimeSkills:_0x5d718a}=await import(_0x496905(0x91)),{linkEffectiveRuntimeSkills:_0x2fdde7,materializeRuntimeSkill:_0x1811f1,pruneStaleRuntimeSkillCache:_0x57a44a,pruneStaleRuntimeSkillLinks:_0x5c3782}=await import(_0x496905(0x80)),_0x53047e=_0x5c9d75[_0x496905(0x81)]('code'),_0x1eb6cd=normalizeSyncScopes(_0x5c9d75[_0x496905(0x81)](_0x496905(0x7b))),_0x551bef=_0x5c9d75[_0x496905(0x9a)]??_0x496905(0x82),_0x3d2d92=_0x5c9d75[_0x496905(0xa0)],_0x3491e1=_0x5c9d75['bool'](_0x496905(0x9d));if(!_0x3d2d92)throw CliErrors[_0x496905(0x83)]('Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.');const _0x3bd8e9=await Promise[_0x496905(0x9c)](_0x1eb6cd['map'](_0x487d3d=>_0x5d718a({'appCode':_0x5c9d75[_0x496905(0x97)],'scope':_0x487d3d,'code':_0x53047e[_0x496905(0x86)]()||undefined}))),_0x198167=_0x1eb6cd[_0x496905(0x85)]('personal')?_0x3bd8e9[_0x496905(0x98)]((_0x21f1e3,_0x478369)=>_0x1eb6cd[_0x478369]===_0x496905(0x79)?_0x21f1e3['personal']:[]):[],_0x5dd3dd=_0x1eb6cd['includes']('company')?_0x3bd8e9[_0x496905(0x98)]((_0x5bf9da,_0x2c0554)=>_0x1eb6cd[_0x2c0554]===_0x496905(0x92)?_0x5bf9da[_0x496905(0x92)]:[]):[],_0x5d7998=new Set([..._0x198167[_0x496905(0x8b)](_0x4fc189=>_0x4fc189[_0x496905(0xa1)]?.[_0x496905(0x86)]())['filter'](_0x2149a8=>Boolean(_0x2149a8)),..._0x5dd3dd[_0x496905(0x8b)](_0x4f0f13=>_0x4f0f13[_0x496905(0xa1)]?.[_0x496905(0x86)]())['filter'](_0x33695f=>Boolean(_0x33695f))]),_0x4dee1f=_0x53047e[_0x496905(0x86)]()?[_0x53047e[_0x496905(0x86)]()]:undefined,_0x3df865=_0x1eb6cd[_0x496905(0x7f)]===0x2&&_0x1eb6cd[_0x496905(0x85)](_0x496905(0x79))&&_0x1eb6cd[_0x496905(0x85)](_0x496905(0x92)),_0x20b1d9=_0x3df865?_0x5c3782(_0x5c9d75[_0x496905(0x97)],_0x5d7998,{},_0x4dee1f):[],_0x5315cd=_0x57a44a({'env':_0x551bef,'accessKey':_0x3d2d92,'appCode':_0x5c9d75[_0x496905(0x97)],'activeSkillCodes':_0x5d7998,'pruneSkillCodes':_0x4dee1f,'scopes':_0x1eb6cd}),_0x250bf3=[];for(const _0x19f24c of _0x198167){_0x250bf3[_0x496905(0x89)](_0x1811f1(_0x19f24c,_0x496905(0x79),{'env':_0x551bef,'accessKey':_0x3d2d92,'appCode':_0x5c9d75[_0x496905(0x97)],'force':_0x3491e1,'packageBytes':await downloadSkillPackage(_0x19f24c,_0x496905(0x79),_0x5c9d75['appCode'],_0x24cd31)}));}for(const _0x2cbc31 of _0x5dd3dd){_0x250bf3['push'](_0x1811f1(_0x2cbc31,_0x496905(0x92),{'env':_0x551bef,'accessKey':_0x3d2d92,'appCode':_0x5c9d75[_0x496905(0x97)],'force':_0x3491e1,'packageBytes':await downloadSkillPackage(_0x2cbc31,_0x496905(0x92),_0x5c9d75[_0x496905(0x97)],_0x24cd31)}));}const _0x3ad9b1=_0x2fdde7(_0x250bf3,_0x5c9d75[_0x496905(0x97)]),_0x5aefa4=countLinkActions(_0x3ad9b1);return{'ok':!![],'data':{'appCode':_0x5c9d75[_0x496905(0x97)],'personal':_0x198167[_0x496905(0x7f)],'company':_0x5dd3dd[_0x496905(0x7f)],'materialized':_0x250bf3['length'],'links':{'total':_0x3ad9b1[_0x496905(0x7f)],'created':_0x5aefa4[_0x496905(0x7a)]??0x0,'updated':_0x5aefa4[_0x496905(0x8f)]??0x0,'unchanged':_0x5aefa4['unchanged']??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x20b1d9[_0x496905(0xa2)](_0x27ca27=>_0x27ca27[_0x496905(0x7e)]===_0x496905(0x99))[_0x496905(0x7f)],'cacheDirs':_0x5315cd[_0x496905(0xa2)](_0x32cec3=>_0x32cec3[_0x496905(0x7e)]===_0x496905(0x99))[_0x496905(0x7f)],'skipped':[..._0x20b1d9,..._0x5315cd][_0x496905(0xa2)](_0x437fc8=>_0x437fc8['action']===_0x496905(0x8d))[_0x496905(0x7f)]},'skills':{'personal':_0x198167[_0x496905(0x8b)](summarizeRuntimeSkill),'company':_0x5dd3dd[_0x496905(0x8b)](summarizeRuntimeSkill)}},'message':_0x496905(0x9e)+_0x198167[_0x496905(0x7f)]+'\x20personal\x20and\x20'+_0x5dd3dd['length']+_0x496905(0x8a)};}async function downloadSkillPackage(_0x186737,_0x40e9a8,_0x211fc1,_0x139dea){const _0x5c5eeb=a42_0x41b304,_0x2b4fdb=_0x186737[_0x5c5eeb(0x90)]?.[_0x5c5eeb(0x86)]();return _0x2b4fdb?_0x139dea(_0x40e9a8,_0x186737[_0x5c5eeb(0xa1)],_0x211fc1,_0x2b4fdb):_0x139dea(_0x40e9a8,_0x186737[_0x5c5eeb(0xa1)],_0x211fc1);}function a42_0x5b54(_0x1d9fd2,_0x5a1f77){_0x1d9fd2=_0x1d9fd2-0x79;const _0x3315bf=a42_0x3315();let _0x5b544a=_0x3315bf[_0x1d9fd2];return _0x5b544a;}function countLinkActions(_0x262bbb){const _0x30ebb3=a42_0x41b304;return _0x262bbb[_0x30ebb3(0x96)]((_0x28599a,_0x5c6135)=>{const _0x4fe968=_0x30ebb3;return _0x28599a[_0x5c6135[_0x4fe968(0x7e)]]=(_0x28599a[_0x5c6135[_0x4fe968(0x7e)]]??0x0)+0x1,_0x28599a;},{});}
1
+ const a42_0x354b97=a42_0x449a;(function(_0x53847f,_0x5620e9){const _0x21a1dc=a42_0x449a,_0x34365d=_0x53847f();while(!![]){try{const _0x3244e1=-parseInt(_0x21a1dc(0x139))/0x1+-parseInt(_0x21a1dc(0x120))/0x2+parseInt(_0x21a1dc(0x123))/0x3+-parseInt(_0x21a1dc(0x11f))/0x4+-parseInt(_0x21a1dc(0x11a))/0x5+parseInt(_0x21a1dc(0x13b))/0x6+parseInt(_0x21a1dc(0x119))/0x7;if(_0x3244e1===_0x5620e9)break;else _0x34365d['push'](_0x34365d['shift']());}catch(_0x8795ad){_0x34365d['push'](_0x34365d['shift']());}}}(a42_0xf3f9,0x4cd77));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,FORCE_FLAG,SCOPE_FLAG}from'../flags.js';import{normalizeSyncScopes}from'../scopes.js';import{summarizeRuntimeSkill}from'../summary.js';export const installCommand={'service':a42_0x354b97(0x127),'command':a42_0x354b97(0x137),'description':'Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','risk':a42_0x354b97(0x12a),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG],async 'execute'(_0x462fca){return syncRuntimeSkills(_0x462fca);}};function a42_0x449a(_0x1fcb76,_0x3a3b0f){_0x1fcb76=_0x1fcb76-0x114;const _0xf3f985=a42_0xf3f9();let _0x449ac6=_0xf3f985[_0x1fcb76];return _0x449ac6;}async function syncRuntimeSkills(_0x4d2e45){const _0x4518dc=a42_0x354b97,{downloadRuntimeSkillPackage:_0x4e3e45,listRuntimeSkills:_0x3f45ce}=await import(_0x4518dc(0x12c)),{linkEffectiveRuntimeSkills:_0x4d916f,materializeRuntimeSkill:_0x2c3f4f,pruneStaleRuntimeSkillCache:_0x36aaa0,pruneStaleRuntimeSkillLinks:_0x570492}=await import(_0x4518dc(0x12f)),_0x4e3317=_0x4d2e45['str'](_0x4518dc(0x128)),_0x17d9f4=normalizeSyncScopes(_0x4d2e45[_0x4518dc(0x115)](_0x4518dc(0x132))),_0x271ae2=_0x4d2e45[_0x4518dc(0x11b)]??'production',_0x477b4b=_0x4d2e45[_0x4518dc(0x133)],_0x480f29=_0x4d2e45[_0x4518dc(0x124)]('force');if(!_0x477b4b)throw CliErrors[_0x4518dc(0x138)](_0x4518dc(0x114));const _0x2a0828=await Promise[_0x4518dc(0x11d)](_0x17d9f4[_0x4518dc(0x135)](_0x50acce=>_0x3f45ce({'appCode':_0x4d2e45[_0x4518dc(0x130)],'scope':_0x50acce,'code':_0x4e3317[_0x4518dc(0x116)]()||undefined}))),_0x1426c9=_0x17d9f4[_0x4518dc(0x131)]('personal')?_0x2a0828[_0x4518dc(0x117)]((_0x43c101,_0x2c0766)=>_0x17d9f4[_0x2c0766]==='personal'?_0x43c101['personal']:[]):[],_0x189354=_0x17d9f4[_0x4518dc(0x131)](_0x4518dc(0x136))?_0x2a0828['flatMap']((_0x396095,_0x4d9395)=>_0x17d9f4[_0x4d9395]===_0x4518dc(0x136)?_0x396095['company']:[]):[],_0x49810c=new Set([..._0x1426c9['map'](_0x1bd5f2=>_0x1bd5f2[_0x4518dc(0x12d)]?.[_0x4518dc(0x116)]())[_0x4518dc(0x13d)](_0x22a912=>Boolean(_0x22a912)),..._0x189354[_0x4518dc(0x135)](_0xd2593e=>_0xd2593e[_0x4518dc(0x12d)]?.['trim']())[_0x4518dc(0x13d)](_0x5975b3=>Boolean(_0x5975b3))]),_0x11d910=_0x4e3317['trim']()?[_0x4e3317['trim']()]:undefined,_0x1d03eb=_0x17d9f4['length']===0x2&&_0x17d9f4[_0x4518dc(0x131)](_0x4518dc(0x13a))&&_0x17d9f4[_0x4518dc(0x131)]('company'),_0x1a0999=_0x1d03eb?_0x570492(_0x4d2e45['appCode'],_0x49810c,{},_0x11d910):[],_0x2412c3=_0x36aaa0({'env':_0x271ae2,'accessKey':_0x477b4b,'appCode':_0x4d2e45[_0x4518dc(0x130)],'activeSkillCodes':_0x49810c,'pruneSkillCodes':_0x11d910,'scopes':_0x17d9f4}),_0x382113=[];for(const _0x1c4ce0 of _0x1426c9){_0x382113[_0x4518dc(0x12e)](_0x2c3f4f(_0x1c4ce0,'personal',{'env':_0x271ae2,'accessKey':_0x477b4b,'appCode':_0x4d2e45[_0x4518dc(0x130)],'force':_0x480f29,'packageBytes':await downloadSkillPackage(_0x1c4ce0,_0x4518dc(0x13a),_0x4d2e45['appCode'],_0x4e3e45)}));}for(const _0x2b2bf6 of _0x189354){_0x382113['push'](_0x2c3f4f(_0x2b2bf6,_0x4518dc(0x136),{'env':_0x271ae2,'accessKey':_0x477b4b,'appCode':_0x4d2e45[_0x4518dc(0x130)],'force':_0x480f29,'packageBytes':await downloadSkillPackage(_0x2b2bf6,'company',_0x4d2e45[_0x4518dc(0x130)],_0x4e3e45)}));}const _0x4cfb3a=_0x4d916f(_0x382113,_0x4d2e45['appCode']),_0x375287=countLinkActions(_0x4cfb3a);return{'ok':!![],'data':{'appCode':_0x4d2e45['appCode'],'personal':_0x1426c9[_0x4518dc(0x126)],'company':_0x189354[_0x4518dc(0x126)],'materialized':_0x382113[_0x4518dc(0x126)],'links':{'total':_0x4cfb3a['length'],'created':_0x375287[_0x4518dc(0x13c)]??0x0,'updated':_0x375287[_0x4518dc(0x118)]??0x0,'unchanged':_0x375287[_0x4518dc(0x11c)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x1a0999[_0x4518dc(0x13d)](_0x314375=>_0x314375['action']==='removed')[_0x4518dc(0x126)],'cacheDirs':_0x2412c3[_0x4518dc(0x13d)](_0x2429bb=>_0x2429bb['action']===_0x4518dc(0x125))[_0x4518dc(0x126)],'skipped':[..._0x1a0999,..._0x2412c3][_0x4518dc(0x13d)](_0x284ffc=>_0x284ffc[_0x4518dc(0x12b)]===_0x4518dc(0x129))[_0x4518dc(0x126)]},'skills':{'personal':_0x1426c9['map'](summarizeRuntimeSkill),'company':_0x189354[_0x4518dc(0x135)](summarizeRuntimeSkill)}},'message':_0x4518dc(0x121)+_0x1426c9[_0x4518dc(0x126)]+_0x4518dc(0x134)+_0x189354[_0x4518dc(0x126)]+'\x20company\x20Skill(s).'};}async function downloadSkillPackage(_0x4b9f4f,_0x5192b2,_0x5b2fbd,_0x5e354b){const _0x3ed0da=a42_0x354b97,_0x28f67a=_0x4b9f4f[_0x3ed0da(0x122)]?.[_0x3ed0da(0x116)]();return _0x28f67a?_0x5e354b(_0x5192b2,_0x4b9f4f[_0x3ed0da(0x12d)],_0x5b2fbd,_0x28f67a):_0x5e354b(_0x5192b2,_0x4b9f4f['skillCode'],_0x5b2fbd);}function a42_0xf3f9(){const _0x18438d=['skill','code','skipped','write','action','../../../core/api-client.js','skillCode','push','../../../skills/runtime-skill-sync.js','appCode','includes','scope','accessKey','\x20personal\x20and\x20','map','company','install','authRequired','22610sdQSin','personal','2247282GrKoPo','created','filter','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.','str','trim','flatMap','updated','1748047RpGvqM','1780640mNTDLG','envName','unchanged','all','reduce','611392tOXneh','203544NPIvsR','Installed\x20','version','971499tuzMuk','bool','removed','length'];a42_0xf3f9=function(){return _0x18438d;};return a42_0xf3f9();}function countLinkActions(_0x49062a){const _0x1cb9c6=a42_0x354b97;return _0x49062a[_0x1cb9c6(0x11e)]((_0x56cee5,_0x29c781)=>{return _0x56cee5[_0x29c781['action']]=(_0x56cee5[_0x29c781['action']]??0x0)+0x1,_0x56cee5;},{});}
@@ -1 +1 @@
1
- const a43_0x8f7557=a43_0x414e;function a43_0x414e(_0x4c5044,_0x437d79){_0x4c5044=_0x4c5044-0x152;const _0x3b7ec6=a43_0x3b7e();let _0x414ed6=_0x3b7ec6[_0x4c5044];return _0x414ed6;}(function(_0x2bd855,_0x2a191b){const _0x1c2a51=a43_0x414e,_0x23f045=_0x2bd855();while(!![]){try{const _0xedef78=-parseInt(_0x1c2a51(0x160))/0x1+-parseInt(_0x1c2a51(0x172))/0x2+-parseInt(_0x1c2a51(0x155))/0x3*(parseInt(_0x1c2a51(0x164))/0x4)+-parseInt(_0x1c2a51(0x173))/0x5*(-parseInt(_0x1c2a51(0x15b))/0x6)+-parseInt(_0x1c2a51(0x165))/0x7*(parseInt(_0x1c2a51(0x15d))/0x8)+parseInt(_0x1c2a51(0x161))/0x9*(-parseInt(_0x1c2a51(0x169))/0xa)+parseInt(_0x1c2a51(0x15a))/0xb*(parseInt(_0x1c2a51(0x158))/0xc);if(_0xedef78===_0x2a191b)break;else _0x23f045['push'](_0x23f045['shift']());}catch(_0x22b0a1){_0x23f045['push'](_0x23f045['shift']());}}}(a43_0x3b7e,0x5f675));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';function a43_0x3b7e(){const _0x35450e=['563382nCzDxH','5634945gBeqBZ','remote','Listed\x20','10684YwfCGV','21nDalAH','builtin','list','\x20remote\x20Skill(s).','10lzLEPQ','map','local','length','bool','appCode','code','scope','../../../core/api-client.js','961306DUuzMA','6715qcykqM','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','personal','\x20local\x20Skill(s).','105KilIgt','trim','skill','972yQJpjz','str','285593dfkiuD','2382ZLyAtX','company','1284736pcLkgL','filter','production'];a43_0x3b7e=function(){return _0x35450e;};return a43_0x3b7e();}import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':a43_0x8f7557(0x157),'command':a43_0x8f7557(0x167),'description':a43_0x8f7557(0x152),'risk':'read','flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x24848b){const _0x383a33=a43_0x8f7557,_0x24900a=_0x24848b[_0x383a33(0x159)](_0x383a33(0x16f)),_0x379c83=normalizeListScope(_0x24848b['str'](_0x383a33(0x170)));if(_0x24848b[_0x383a33(0x16d)]('local')){const _0x473a74=_0x24848b['accessKey'];if(!_0x473a74)throw CliErrors['authRequired']();const {listLocalRuntimeSkills:_0x270a50}=await import('../../../skills/runtime-skill-sync.js'),_0x17a38f=_0x270a50({'env':_0x24848b['envName']??_0x383a33(0x15f),'accessKey':_0x473a74,'appCode':_0x24848b[_0x383a33(0x16e)],'scopes':listScopeToRuntimeScopes(_0x379c83),'code':_0x24900a['trim']()||undefined}),_0x425202=groupLocalRuntimeSkills(_0x17a38f);return{'ok':!![],'data':{'appCode':_0x24848b['appCode'],'source':_0x383a33(0x16b),'scope':_0x379c83,'total':_0x17a38f[_0x383a33(0x16c)],'personal':_0x425202['personal'][_0x383a33(0x16c)],'company':_0x425202['company']['length'],'items':_0x17a38f[_0x383a33(0x16a)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x425202[_0x383a33(0x153)]['map'](summarizeLocalRuntimeSkill),'company':_0x425202[_0x383a33(0x15c)]['map'](summarizeLocalRuntimeSkill)}},'message':_0x383a33(0x163)+_0x17a38f[_0x383a33(0x16c)]+_0x383a33(0x154)};}const {listRuntimeSkills:_0x33acc6}=await import(_0x383a33(0x171)),_0x27e62e=await _0x33acc6({'appCode':_0x24848b[_0x383a33(0x16e)],'scope':listScopeToRemoteScope(_0x379c83),'code':_0x24900a[_0x383a33(0x156)]()||undefined}),_0x51e335=shouldListScope(_0x379c83,'personal')?_0x27e62e[_0x383a33(0x153)]??[]:[],_0x2d2e3d=shouldListScope(_0x379c83,_0x383a33(0x15c))?_0x27e62e[_0x383a33(0x15c)]??[]:[],_0x3de0e0=[..._0x51e335,..._0x2d2e3d];return{'ok':!![],'data':{'appCode':_0x24848b[_0x383a33(0x16e)],'source':_0x383a33(0x162),'scope':_0x379c83,'total':_0x3de0e0[_0x383a33(0x16c)],'personal':_0x51e335['length'],'company':_0x2d2e3d['length'],'items':_0x3de0e0['map'](summarizeRuntimeSkill),'skills':{'personal':_0x51e335['map'](summarizeRuntimeSkill),'company':_0x2d2e3d[_0x383a33(0x16a)](summarizeRuntimeSkill)}},'message':_0x383a33(0x163)+_0x3de0e0[_0x383a33(0x16c)]+_0x383a33(0x168)};}};function groupLocalRuntimeSkills(_0x5ebea2){const _0x7c43a8=a43_0x8f7557;return{'personal':_0x5ebea2[_0x7c43a8(0x15e)](_0x19fef6=>_0x19fef6['scope']==='personal'),'company':_0x5ebea2['filter'](_0x99e5a5=>_0x99e5a5[_0x7c43a8(0x170)]===_0x7c43a8(0x15c)),'builtin':_0x5ebea2[_0x7c43a8(0x15e)](_0x330a40=>_0x330a40[_0x7c43a8(0x170)]===_0x7c43a8(0x166))};}
1
+ const a43_0x4859e7=a43_0x1240;(function(_0x1282c6,_0x2139e2){const _0x5d9667=a43_0x1240,_0x4e2c2f=_0x1282c6();while(!![]){try{const _0x142724=parseInt(_0x5d9667(0x13b))/0x1*(parseInt(_0x5d9667(0x124))/0x2)+parseInt(_0x5d9667(0x140))/0x3*(parseInt(_0x5d9667(0x127))/0x4)+parseInt(_0x5d9667(0x12a))/0x5+parseInt(_0x5d9667(0x12e))/0x6*(parseInt(_0x5d9667(0x12d))/0x7)+parseInt(_0x5d9667(0x12f))/0x8+parseInt(_0x5d9667(0x126))/0x9+-parseInt(_0x5d9667(0x137))/0xa;if(_0x142724===_0x2139e2)break;else _0x4e2c2f['push'](_0x4e2c2f['shift']());}catch(_0x2cd458){_0x4e2c2f['push'](_0x4e2c2f['shift']());}}}(a43_0x32a6,0xa8657));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';function a43_0x32a6(){const _0x55b6a4=['scope','map','../../../core/api-client.js','152909omCUIw','str','filter','authRequired','company','211353CykRaf','list','production','personal','local','builtin','2HFdBpx','\x20local\x20Skill(s).','7302933UMQxPb','28WDxSKH','remote','length','5622900pxbDti','bool','appCode','8661989tUSHRM','6CavrEB','8752400mKWGIv','code','\x20remote\x20Skill(s).','accessKey','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','read','Listed\x20','trim','42238090WTEetZ'];a43_0x32a6=function(){return _0x55b6a4;};return a43_0x32a6();}function a43_0x1240(_0xf66528,_0x518866){_0xf66528=_0xf66528-0x11f;const _0x32a693=a43_0x32a6();let _0x124015=_0x32a693[_0xf66528];return _0x124015;}import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':'skill','command':a43_0x4859e7(0x11f),'description':a43_0x4859e7(0x133),'risk':a43_0x4859e7(0x134),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x345a53){const _0x161298=a43_0x4859e7,_0x5d3b68=_0x345a53['str'](_0x161298(0x130)),_0x27eecf=normalizeListScope(_0x345a53[_0x161298(0x13c)](_0x161298(0x138)));if(_0x345a53[_0x161298(0x12b)](_0x161298(0x122))){const _0x251532=_0x345a53[_0x161298(0x132)];if(!_0x251532)throw CliErrors[_0x161298(0x13e)]();const {listLocalRuntimeSkills:_0x1c84cb}=await import('../../../skills/runtime-skill-sync.js'),_0x17184e=_0x1c84cb({'env':_0x345a53['envName']??_0x161298(0x120),'accessKey':_0x251532,'appCode':_0x345a53[_0x161298(0x12c)],'scopes':listScopeToRuntimeScopes(_0x27eecf),'code':_0x5d3b68[_0x161298(0x136)]()||undefined}),_0x3b6456=groupLocalRuntimeSkills(_0x17184e);return{'ok':!![],'data':{'appCode':_0x345a53['appCode'],'source':_0x161298(0x122),'scope':_0x27eecf,'total':_0x17184e[_0x161298(0x129)],'personal':_0x3b6456['personal'][_0x161298(0x129)],'company':_0x3b6456['company'][_0x161298(0x129)],'items':_0x17184e[_0x161298(0x139)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x3b6456['personal'][_0x161298(0x139)](summarizeLocalRuntimeSkill),'company':_0x3b6456['company'][_0x161298(0x139)](summarizeLocalRuntimeSkill)}},'message':'Listed\x20'+_0x17184e[_0x161298(0x129)]+_0x161298(0x125)};}const {listRuntimeSkills:_0x5a7c7d}=await import(_0x161298(0x13a)),_0x83cb25=await _0x5a7c7d({'appCode':_0x345a53[_0x161298(0x12c)],'scope':listScopeToRemoteScope(_0x27eecf),'code':_0x5d3b68[_0x161298(0x136)]()||undefined}),_0x43bd5e=shouldListScope(_0x27eecf,_0x161298(0x121))?_0x83cb25[_0x161298(0x121)]??[]:[],_0x18bb5a=shouldListScope(_0x27eecf,_0x161298(0x13f))?_0x83cb25['company']??[]:[],_0x2c3167=[..._0x43bd5e,..._0x18bb5a];return{'ok':!![],'data':{'appCode':_0x345a53[_0x161298(0x12c)],'source':_0x161298(0x128),'scope':_0x27eecf,'total':_0x2c3167['length'],'personal':_0x43bd5e['length'],'company':_0x18bb5a[_0x161298(0x129)],'items':_0x2c3167['map'](summarizeRuntimeSkill),'skills':{'personal':_0x43bd5e['map'](summarizeRuntimeSkill),'company':_0x18bb5a[_0x161298(0x139)](summarizeRuntimeSkill)}},'message':_0x161298(0x135)+_0x2c3167[_0x161298(0x129)]+_0x161298(0x131)};}};function groupLocalRuntimeSkills(_0x285fa1){const _0x1554c1=a43_0x4859e7;return{'personal':_0x285fa1['filter'](_0xdd9285=>_0xdd9285[_0x1554c1(0x138)]===_0x1554c1(0x121)),'company':_0x285fa1[_0x1554c1(0x13d)](_0x41bdd3=>_0x41bdd3[_0x1554c1(0x138)]===_0x1554c1(0x13f)),'builtin':_0x285fa1[_0x1554c1(0x13d)](_0xe734a8=>_0xe734a8[_0x1554c1(0x138)]===_0x1554c1(0x123))};}
@@ -1 +1 @@
1
- function a44_0x4fc2(){const _0x2bcc68=['2090050EYYkXe','392HDJLzy','60072VYVbHv','735960LKfhIR','8067kcUZIY','1078560McCLhO','push','133nBdelP','2459138BKsRHe','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope\x20or\x20submit\x20company\x20scope\x20for\x20review','skill','1exCyCQ','24yLubNd','18IMXefq','write','645308IQVict'];a44_0x4fc2=function(){return _0x2bcc68;};return a44_0x4fc2();}const a44_0x24404f=a44_0x22b7;(function(_0x2708b0,_0x1912a9){const _0x500a4d=a44_0x22b7,_0x407465=_0x2708b0();while(!![]){try{const _0xbfd584=parseInt(_0x500a4d(0xab))/0x1*(-parseInt(_0x500a4d(0xaf))/0x2)+-parseInt(_0x500a4d(0xb4))/0x3*(parseInt(_0x500a4d(0xb1))/0x4)+parseInt(_0x500a4d(0xb0))/0x5+-parseInt(_0x500a4d(0xb3))/0x6+parseInt(_0x500a4d(0xb7))/0x7*(-parseInt(_0x500a4d(0xb2))/0x8)+-parseInt(_0x500a4d(0xad))/0x9*(-parseInt(_0x500a4d(0xb5))/0xa)+parseInt(_0x500a4d(0xb8))/0xb*(parseInt(_0x500a4d(0xac))/0xc);if(_0xbfd584===_0x1912a9)break;else _0x407465['push'](_0x407465['shift']());}catch(_0x1f4f52){_0x407465['push'](_0x407465['shift']());}}}(a44_0x4fc2,0x37fd3));function a44_0x22b7(_0x5badcb,_0x55a5d7){_0x5badcb=_0x5badcb-0xa9;const _0x4fc2ad=a44_0x4fc2();let _0x22b7a6=_0x4fc2ad[_0x5badcb];return _0x22b7a6;}import{CONFIRM_WARNINGS_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':a44_0x24404f(0xaa),'command':a44_0x24404f(0xb6),'description':a44_0x24404f(0xa9),'risk':a44_0x24404f(0xae),'flags':[DIR_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
1
+ function a44_0x46cc(_0x473615,_0x526d3f){_0x473615=_0x473615-0x136;const _0x4e4fa8=a44_0x4e4f();let _0x46cc0f=_0x4e4fa8[_0x473615];return _0x46cc0f;}const a44_0x5972fe=a44_0x46cc;(function(_0x3003dc,_0x4f5f9c){const _0x5eb1f9=a44_0x46cc,_0x5a6ba1=_0x3003dc();while(!![]){try{const _0x5c770b=-parseInt(_0x5eb1f9(0x140))/0x1+parseInt(_0x5eb1f9(0x139))/0x2+parseInt(_0x5eb1f9(0x13a))/0x3*(parseInt(_0x5eb1f9(0x141))/0x4)+-parseInt(_0x5eb1f9(0x136))/0x5*(parseInt(_0x5eb1f9(0x13c))/0x6)+-parseInt(_0x5eb1f9(0x13d))/0x7+-parseInt(_0x5eb1f9(0x13b))/0x8+parseInt(_0x5eb1f9(0x13f))/0x9;if(_0x5c770b===_0x4f5f9c)break;else _0x5a6ba1['push'](_0x5a6ba1['shift']());}catch(_0x579f11){_0x5a6ba1['push'](_0x5a6ba1['shift']());}}}(a44_0x4e4f,0xe69d0));import{CONFIRM_WARNINGS_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';function a44_0x4e4f(){const _0x1f0cfe=['4772901TZAqTT','write','35874045eBNVqx','1859944hYRpKg','14616HhSSDB','10ncipbl','push','skill','3202222KGdyAQ','738bgBqpt','9707400KMoGec','5358588FELKXA'];a44_0x4e4f=function(){return _0x1f0cfe;};return a44_0x4e4f();}import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':a44_0x5972fe(0x138),'command':a44_0x5972fe(0x137),'description':'Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope\x20or\x20submit\x20company\x20scope\x20for\x20review','risk':a44_0x5972fe(0x13e),'flags':[DIR_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
@@ -1 +1 @@
1
- const a45_0x352e0a=a45_0x11a5;(function(_0x2a1c88,_0x4b8b09){const _0xc25c32=a45_0x11a5,_0x448508=_0x2a1c88();while(!![]){try{const _0x52c951=-parseInt(_0xc25c32(0x114))/0x1+-parseInt(_0xc25c32(0x112))/0x2*(-parseInt(_0xc25c32(0x113))/0x3)+-parseInt(_0xc25c32(0x109))/0x4*(-parseInt(_0xc25c32(0x10d))/0x5)+parseInt(_0xc25c32(0x110))/0x6+-parseInt(_0xc25c32(0x106))/0x7+parseInt(_0xc25c32(0x10f))/0x8+-parseInt(_0xc25c32(0x107))/0x9*(-parseInt(_0xc25c32(0x10b))/0xa);if(_0x52c951===_0x4b8b09)break;else _0x448508['push'](_0x448508['shift']());}catch(_0x4ad678){_0x448508['push'](_0x448508['shift']());}}}(a45_0x2ba1,0x9fe9f));function a45_0x11a5(_0x141d3e,_0x11b06f){_0x141d3e=_0x141d3e-0x103;const _0x2ba19a=a45_0x2ba1();let _0x11a57c=_0x2ba19a[_0x141d3e];return _0x11a57c;}function a45_0x2ba1(){const _0x262b05=['568639RIunFg','validate','str','strict','8961022TMaPzK','26451ZAOSjL','type','28ItaWTH','dir','2390OYvjib','bool','22705ZSMCSO','skill','6214872JIadSK','5814162YbzMGj','read','1394uqxJTd','102upSLxx'];a45_0x2ba1=function(){return _0x262b05;};return a45_0x2ba1();}import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a45_0x352e0a(0x10e),'command':a45_0x352e0a(0x103),'description':'Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','risk':a45_0x352e0a(0x111),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x52d8ae){const _0x4c7c54=a45_0x352e0a,_0xce68c7=_0x52d8ae[_0x4c7c54(0x10c)](_0x4c7c54(0x105)),_0x5ab2bb=validateSkillDirectory(_0x52d8ae[_0x4c7c54(0x104)]('dir'),{'strict':_0xce68c7});return throwIfSkillValidationFailed(_0x5ab2bb,_0xce68c7),{'ok':!![],'data':{'dir':_0x5ab2bb[_0x4c7c54(0x10a)],'type':_0x5ab2bb[_0x4c7c54(0x108)],'errors':_0x5ab2bb['errors'],'warnings':_0x5ab2bb['warnings']},'message':'Skill\x20validation\x20passed.'};}};
1
+ const a45_0x84326=a45_0x2791;function a45_0x40f5(){const _0x3169f6=['1107656ZCmCrZ','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','5780256TAfiEt','2498993psVTJC','20uUgfou','24laffKu','validate','1760651dRrcNk','strict','bool','read','13098456hntIJF','2244102tMCBfW','warnings','str','type','dir','Skill\x20validation\x20passed.','464ZEpKHx','70540QRFHOd'];a45_0x40f5=function(){return _0x3169f6;};return a45_0x40f5();}(function(_0x79f514,_0x4f7002){const _0xbda184=a45_0x2791,_0x1561c3=_0x79f514();while(!![]){try{const _0xcf66d4=-parseInt(_0xbda184(0xd4))/0x1+-parseInt(_0xbda184(0xe1))/0x2+parseInt(_0xbda184(0xd9))/0x3+parseInt(_0xbda184(0xdf))/0x4*(parseInt(_0xbda184(0xe0))/0x5)+-parseInt(_0xbda184(0xe3))/0x6+-parseInt(_0xbda184(0xe4))/0x7*(parseInt(_0xbda184(0xe6))/0x8)+-parseInt(_0xbda184(0xd8))/0x9*(-parseInt(_0xbda184(0xe5))/0xa);if(_0xcf66d4===_0x4f7002)break;else _0x1561c3['push'](_0x1561c3['shift']());}catch(_0x54add0){_0x1561c3['push'](_0x1561c3['shift']());}}}(a45_0x40f5,0xe712e));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';function a45_0x2791(_0x335d02,_0x38d787){_0x335d02=_0x335d02-0xd4;const _0x40f54e=a45_0x40f5();let _0x279113=_0x40f54e[_0x335d02];return _0x279113;}import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':'skill','command':a45_0x84326(0xe7),'description':a45_0x84326(0xe2),'risk':a45_0x84326(0xd7),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x33abc3){const _0x5185b4=a45_0x84326,_0x48c8dc=_0x33abc3[_0x5185b4(0xd6)](_0x5185b4(0xd5)),_0x3b4cc7=validateSkillDirectory(_0x33abc3[_0x5185b4(0xdb)](_0x5185b4(0xdd)),{'strict':_0x48c8dc});return throwIfSkillValidationFailed(_0x3b4cc7,_0x48c8dc),{'ok':!![],'data':{'dir':_0x3b4cc7[_0x5185b4(0xdd)],'type':_0x3b4cc7[_0x5185b4(0xdc)],'errors':_0x3b4cc7['errors'],'warnings':_0x3b4cc7[_0x5185b4(0xda)]},'message':_0x5185b4(0xde)};}};
@@ -1 +1 @@
1
- const a46_0x4a73cd=a46_0x485d;(function(_0x4eef44,_0x714cd8){const _0x4d870=a46_0x485d,_0x1ba950=_0x4eef44();while(!![]){try{const _0x445283=parseInt(_0x4d870(0x1e0))/0x1+-parseInt(_0x4d870(0x1d0))/0x2+-parseInt(_0x4d870(0x1ed))/0x3*(parseInt(_0x4d870(0x1dc))/0x4)+-parseInt(_0x4d870(0x1da))/0x5*(-parseInt(_0x4d870(0x1d7))/0x6)+-parseInt(_0x4d870(0x1e8))/0x7+-parseInt(_0x4d870(0x1eb))/0x8*(parseInt(_0x4d870(0x1d9))/0x9)+parseInt(_0x4d870(0x1d1))/0xa;if(_0x445283===_0x714cd8)break;else _0x1ba950['push'](_0x1ba950['shift']());}catch(_0x5315f0){_0x1ba950['push'](_0x1ba950['shift']());}}}(a46_0x4a92,0x5519d));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':'code','type':a46_0x4a73cd(0x1de),'description':a46_0x4a73cd(0x1d3)};export const SCOPE_FLAG={'name':a46_0x4a73cd(0x1d2),'type':a46_0x4a73cd(0x1de),'description':a46_0x4a73cd(0x1df),'enum':[a46_0x4a73cd(0x1e1),a46_0x4a73cd(0x1e6),a46_0x4a73cd(0x1cf)]};function a46_0x485d(_0x423327,_0x6ea36d){_0x423327=_0x423327-0x1cf;const _0x4a92d2=a46_0x4a92();let _0x485d7a=_0x4a92d2[_0x423327];return _0x485d7a;}export const PUSH_SCOPE_FLAG={'name':'scope','type':a46_0x4a73cd(0x1de),'description':a46_0x4a73cd(0x1e9),'default':a46_0x4a73cd(0x1e6),'enum':[a46_0x4a73cd(0x1e6),a46_0x4a73cd(0x1cf)]};export const LIST_SCOPE_FLAG={'name':'scope','type':a46_0x4a73cd(0x1de),'description':a46_0x4a73cd(0x1ec),'enum':[a46_0x4a73cd(0x1e1),a46_0x4a73cd(0x1e6),a46_0x4a73cd(0x1cf)]};export const LOCAL_FLAG={'name':a46_0x4a73cd(0x1dd),'type':a46_0x4a73cd(0x1e5),'description':a46_0x4a73cd(0x1d4)};export const DIR_FLAG={'name':a46_0x4a73cd(0x1e7),'type':'string','required':!![],'description':a46_0x4a73cd(0x1d5)};export const CREATE_NAME_FLAG={'name':a46_0x4a73cd(0x1d6),'type':a46_0x4a73cd(0x1de),'required':!![],'description':a46_0x4a73cd(0x1e2),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a46_0x4a73cd(0x1d8)}};function a46_0x4a92(){const _0x4da6b4=['boolean','personal','dir','3313968LvSInl','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','Skill\x20template\x20type','120favUBj','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','1096089ytMAFj','company','886034MDPaLn','16513410pjuhix','scope','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','Local\x20Skill\x20directory\x20containing\x20SKILL.md','name','6vuZtbu','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','304461NuqROP','1339055yHrIAE','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','4vHGuma','local','string','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','218660EytQaK','all','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','target','confirm-warnings'];a46_0x4a92=function(){return _0x4da6b4;};return a46_0x4a92();}export const TYPE_FLAG={'name':'type','type':a46_0x4a73cd(0x1de),'description':a46_0x4a73cd(0x1ea),'default':'write','enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a46_0x4a73cd(0x1e3),'type':a46_0x4a73cd(0x1de),'description':'Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':'force','type':a46_0x4a73cd(0x1e5),'description':'Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists'};export const CONFIRM_WARNINGS_FLAG={'name':a46_0x4a73cd(0x1e4),'type':a46_0x4a73cd(0x1e5),'description':a46_0x4a73cd(0x1db)};export const STRICT_FLAG={'name':'strict','type':'boolean','description':'Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled'};
1
+ const a46_0x2a972f=a46_0x18a0;(function(_0x2d16d1,_0x4b5602){const _0x520283=a46_0x18a0,_0x2545e6=_0x2d16d1();while(!![]){try{const _0x39f62c=parseInt(_0x520283(0x8f))/0x1*(-parseInt(_0x520283(0x90))/0x2)+-parseInt(_0x520283(0x83))/0x3+parseInt(_0x520283(0x9b))/0x4+-parseInt(_0x520283(0x8a))/0x5*(-parseInt(_0x520283(0x89))/0x6)+-parseInt(_0x520283(0x98))/0x7*(-parseInt(_0x520283(0x9f))/0x8)+-parseInt(_0x520283(0x88))/0x9+parseInt(_0x520283(0x92))/0xa*(parseInt(_0x520283(0x85))/0xb);if(_0x39f62c===_0x4b5602)break;else _0x2545e6['push'](_0x2545e6['shift']());}catch(_0x2cac96){_0x2545e6['push'](_0x2545e6['shift']());}}}(a46_0x37bb,0x4be00));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a46_0x2a972f(0x84),'type':'string','description':a46_0x2a972f(0x8d)};export const SCOPE_FLAG={'name':a46_0x2a972f(0x9c),'type':a46_0x2a972f(0x8e),'description':a46_0x2a972f(0x95),'enum':[a46_0x2a972f(0x97),'personal',a46_0x2a972f(0x99)]};export const PUSH_SCOPE_FLAG={'name':a46_0x2a972f(0x9c),'type':'string','description':a46_0x2a972f(0x86),'default':'personal','enum':[a46_0x2a972f(0x82),a46_0x2a972f(0x99)]};export const LIST_SCOPE_FLAG={'name':'scope','type':a46_0x2a972f(0x8e),'description':a46_0x2a972f(0x9a),'enum':[a46_0x2a972f(0x97),a46_0x2a972f(0x82),a46_0x2a972f(0x99)]};function a46_0x37bb(){const _0x15ab13=['1439955yRodaN','code','22VwYvwt','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','boolean','1171152idzZFH','6tKzQoj','1227015cKjJdi','type','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','string','72411FiXaPH','6MlcwhC','Local\x20Skill\x20directory\x20containing\x20SKILL.md','2077490pEOHjZ','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','name','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','all','14889gNCmlw','company','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','930496xJeSbx','scope','write','force','920KRGLkH','strict','personal'];a46_0x37bb=function(){return _0x15ab13;};return a46_0x37bb();}export const LOCAL_FLAG={'name':'local','type':a46_0x2a972f(0x87),'description':'Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists'};export const DIR_FLAG={'name':'dir','type':'string','required':!![],'description':a46_0x2a972f(0x91)};export const CREATE_NAME_FLAG={'name':a46_0x2a972f(0x94),'type':a46_0x2a972f(0x8e),'required':!![],'description':'Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','pattern':{'regex':SKILL_NAME_PATTERN,'description':a46_0x2a972f(0x8c)}};export const TYPE_FLAG={'name':a46_0x2a972f(0x8b),'type':'string','description':'Skill\x20template\x20type','default':a46_0x2a972f(0x9d),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':'target','type':a46_0x2a972f(0x8e),'description':a46_0x2a972f(0x96),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a46_0x2a972f(0x9e),'type':'boolean','description':a46_0x2a972f(0x93)};export const CONFIRM_WARNINGS_FLAG={'name':'confirm-warnings','type':a46_0x2a972f(0x87),'description':'Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings'};function a46_0x18a0(_0x2f7614,_0x4834c4){_0x2f7614=_0x2f7614-0x82;const _0x37bbe3=a46_0x37bb();let _0x18a0ce=_0x37bbe3[_0x2f7614];return _0x18a0ce;}export const STRICT_FLAG={'name':a46_0x2a972f(0xa0),'type':a46_0x2a972f(0x87),'description':'Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled'};
@@ -1 +1 @@
1
- function a47_0x43d2(){const _0x11fa31=['6657739PpfeQF','1293366qCqrXX','45297qjFkWb','3717ebXIZt','1209755IQxxWe','28210TaPqIG','41638MrBiOb','12EYHUfa','504PSUmnR','87rfGAwQ','6178716shIEKu'];a47_0x43d2=function(){return _0x11fa31;};return a47_0x43d2();}(function(_0x3aad04,_0x2d74e8){const _0x498399=a47_0x31d9,_0x3eef4a=_0x3aad04();while(!![]){try{const _0x1b2bc0=parseInt(_0x498399(0x106))/0x1+parseInt(_0x498399(0x10b))/0x2*(-parseInt(_0x498399(0x103))/0x3)+parseInt(_0x498399(0x104))/0x4+parseInt(_0x498399(0x109))/0x5*(-parseInt(_0x498399(0x10c))/0x6)+parseInt(_0x498399(0x107))/0x7*(-parseInt(_0x498399(0x10d))/0x8)+parseInt(_0x498399(0x108))/0x9*(-parseInt(_0x498399(0x10a))/0xa)+parseInt(_0x498399(0x105))/0xb;if(_0x1b2bc0===_0x2d74e8)break;else _0x3eef4a['push'](_0x3eef4a['shift']());}catch(_0x4c25c9){_0x3eef4a['push'](_0x3eef4a['shift']());}}}(a47_0x43d2,0xbf22f));import{createCommand}from'./commands/create.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';function a47_0x31d9(_0x4e9e8c,_0x2de6aa){_0x4e9e8c=_0x4e9e8c-0x103;const _0x43d2d5=a47_0x43d2();let _0x31d997=_0x43d2d5[_0x4e9e8c];return _0x31d997;}import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand];
1
+ (function(_0xf82de0,_0xe338d1){const _0x3133e0=a47_0x4e0c,_0x5a8bde=_0xf82de0();while(!![]){try{const _0x9fa774=parseInt(_0x3133e0(0xda))/0x1+-parseInt(_0x3133e0(0xd5))/0x2*(parseInt(_0x3133e0(0xd4))/0x3)+-parseInt(_0x3133e0(0xdb))/0x4*(parseInt(_0x3133e0(0xd7))/0x5)+parseInt(_0x3133e0(0xd6))/0x6+parseInt(_0x3133e0(0xd3))/0x7+-parseInt(_0x3133e0(0xd2))/0x8*(parseInt(_0x3133e0(0xd9))/0x9)+parseInt(_0x3133e0(0xd8))/0xa;if(_0x9fa774===_0xe338d1)break;else _0x5a8bde['push'](_0x5a8bde['shift']());}catch(_0x447700){_0x5a8bde['push'](_0x5a8bde['shift']());}}}(a47_0x1af4,0x672c4));import{createCommand}from'./commands/create.js';import{installCommand}from'./commands/install.js';function a47_0x1af4(){const _0x32a549=['6500920okUufA','834393AVioji','3kQnFZD','1278474JWYHVD','4760892kfPheb','1013395wqOyPR','9436100zCVCdy','9frCEUM','220836eXWoKm','4KNslUH'];a47_0x1af4=function(){return _0x32a549;};return a47_0x1af4();}function a47_0x4e0c(_0x2f72c7,_0x3e1379){_0x2f72c7=_0x2f72c7-0xd2;const _0x1af401=a47_0x1af4();let _0x4e0c30=_0x1af401[_0x2f72c7];return _0x4e0c30;}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 a48_0x57d4(){var _0x3ff9c0=['3EkkjGl','length','string','4076796BQcVby','isArray','ossPath','3424813oZBVSf','1EKjqvz','25895680LhIxZz','some','1316745qBpzIB','5106960JCihhb','1885254qMuJUr','2410026lBjkiK','path','files','64OyTKgu','object'];a48_0x57d4=function(){return _0x3ff9c0;};return a48_0x57d4();}(function(_0x2857df,_0x14e57b){var _0x2fd90f=a48_0x1941,_0x3f2539=_0x2857df();while(!![]){try{var _0x26e4cb=parseInt(_0x2fd90f(0x150))/0x1*(-parseInt(_0x2fd90f(0x155))/0x2)+-parseInt(_0x2fd90f(0x15b))/0x3*(parseInt(_0x2fd90f(0x15e))/0x4)+-parseInt(_0x2fd90f(0x154))/0x5+parseInt(_0x2fd90f(0x156))/0x6+-parseInt(_0x2fd90f(0x14f))/0x7+parseInt(_0x2fd90f(0x159))/0x8*(parseInt(_0x2fd90f(0x153))/0x9)+parseInt(_0x2fd90f(0x151))/0xa;if(_0x26e4cb===_0x14e57b)break;else _0x3f2539['push'](_0x3f2539['shift']());}catch(_0x4011ab){_0x3f2539['push'](_0x3f2539['shift']());}}}(a48_0x57d4,0xa8432));function a48_0x1941(_0x4ee74f,_0x5561f0){_0x4ee74f=_0x4ee74f-0x14d;var _0x57d446=a48_0x57d4();var _0x19417e=_0x57d446[_0x4ee74f];return _0x19417e;}export function isPackageBackedManifest(_0x5eef62){var _0x19cfd2=a48_0x1941;return!!_0x5eef62&&typeof _0x5eef62===_0x19cfd2(0x15a)&&!Array['isArray'](_0x5eef62)&&typeof _0x5eef62[_0x19cfd2(0x14e)]===_0x19cfd2(0x15d)&&_0x5eef62[_0x19cfd2(0x14e)][_0x19cfd2(0x15c)]>0x0&&Array['isArray'](_0x5eef62[_0x19cfd2(0x158)]);}export function isMultiFileManifest(_0x148e05){var _0x2355b4=a48_0x1941;return!!_0x148e05&&typeof _0x148e05===_0x2355b4(0x15a)&&!Array[_0x2355b4(0x14d)](_0x148e05)&&Array[_0x2355b4(0x14d)](_0x148e05[_0x2355b4(0x158)])&&_0x148e05[_0x2355b4(0x158)][_0x2355b4(0x152)](_0x4c2651=>_0x4c2651[_0x2355b4(0x157)]!=='SKILL.md');}
1
+ (function(_0x370dd6,_0x21d9a9){var _0x11da41=a48_0x58bb,_0x58f68d=_0x370dd6();while(!![]){try{var _0x5d6a1c=-parseInt(_0x11da41(0xa2))/0x1+parseInt(_0x11da41(0xaa))/0x2+parseInt(_0x11da41(0x9e))/0x3*(parseInt(_0x11da41(0xa7))/0x4)+-parseInt(_0x11da41(0xa0))/0x5+parseInt(_0x11da41(0xa3))/0x6*(-parseInt(_0x11da41(0xa4))/0x7)+-parseInt(_0x11da41(0xa5))/0x8*(-parseInt(_0x11da41(0x9d))/0x9)+parseInt(_0x11da41(0x9b))/0xa;if(_0x5d6a1c===_0x21d9a9)break;else _0x58f68d['push'](_0x58f68d['shift']());}catch(_0x35d6c3){_0x58f68d['push'](_0x58f68d['shift']());}}}(a48_0x27e5,0xb4f6e));export function isPackageBackedManifest(_0x4aa7a9){var _0x3b571a=a48_0x58bb;return!!_0x4aa7a9&&typeof _0x4aa7a9===_0x3b571a(0xa6)&&!Array[_0x3b571a(0xa8)](_0x4aa7a9)&&typeof _0x4aa7a9[_0x3b571a(0xa1)]===_0x3b571a(0xac)&&_0x4aa7a9['ossPath'][_0x3b571a(0xab)]>0x0&&Array[_0x3b571a(0xa8)](_0x4aa7a9[_0x3b571a(0xa9)]);}function a48_0x58bb(_0x1bda2c,_0xa1206d){_0x1bda2c=_0x1bda2c-0x9a;var _0x27e5dd=a48_0x27e5();var _0x58bbb7=_0x27e5dd[_0x1bda2c];return _0x58bbb7;}function a48_0x27e5(){var _0x423b6a=['isArray','files','2185956TQwGju','length','string','path','5029460kmFfpz','SKILL.md','31167byRBcb','1059yPjFtJ','some','422475kzdDnX','ossPath','880870BwWCBz','23094iRNThK','1911hoIzYd','2056MblJYx','object','3076dWSNCh'];a48_0x27e5=function(){return _0x423b6a;};return a48_0x27e5();}export function isMultiFileManifest(_0x29eff2){var _0x261b39=a48_0x58bb;return!!_0x29eff2&&typeof _0x29eff2===_0x261b39(0xa6)&&!Array[_0x261b39(0xa8)](_0x29eff2)&&Array[_0x261b39(0xa8)](_0x29eff2[_0x261b39(0xa9)])&&_0x29eff2[_0x261b39(0xa9)][_0x261b39(0x9f)](_0x5f0303=>_0x5f0303[_0x261b39(0x9a)]!==_0x261b39(0x9c));}
@@ -1 +1 @@
1
- function a49_0x35a2(_0x485614,_0x5b9c87){_0x485614=_0x485614-0x1e6;const _0x5432db=a49_0x5432();let _0x35a2d5=_0x5432db[_0x485614];return _0x35a2d5;}(function(_0x409937,_0xa66f57){const _0x124aec=a49_0x35a2,_0x38a3e1=_0x409937();while(!![]){try{const _0x3e8ca4=-parseInt(_0x124aec(0x209))/0x1+-parseInt(_0x124aec(0x1ea))/0x2*(parseInt(_0x124aec(0x212))/0x3)+-parseInt(_0x124aec(0x205))/0x4*(parseInt(_0x124aec(0x1e7))/0x5)+-parseInt(_0x124aec(0x1fb))/0x6+-parseInt(_0x124aec(0x219))/0x7*(-parseInt(_0x124aec(0x1e9))/0x8)+parseInt(_0x124aec(0x21d))/0x9*(parseInt(_0x124aec(0x1f6))/0xa)+-parseInt(_0x124aec(0x1eb))/0xb;if(_0x3e8ca4===_0xa66f57)break;else _0x38a3e1['push'](_0x38a3e1['shift']());}catch(_0xf48634){_0x38a3e1['push'](_0x38a3e1['shift']());}}}(a49_0x5432,0x52461));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';function a49_0x5432(){const _0x5d41de=['NAMESPACE_ONLY','savedSkill','confirm-warnings','bool','company','PRIVATE','valid','remoteForPreflight','170lqmRpU','../../skills/runtime-skill-sync.js','payload','version','dir','2636772QxWwFT','skillCode','frontmatterDisplayName','existing','status','Submitted\x20company\x20Skill\x20','files','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','Personal','POST','4yFkRSQ','appCode','\x20has\x20scope=\x22','accessKey','62905wygvec','authRequired','../../core/api-client.js','validation','Created\x20personal\x20Skill\x20','\x20for\x20review','resolvedSlug','str','metadata','9LzwnrK','appcode','/api/cli/v1/skills/','publishInput','warnings','submitted','input','4273829IbADoO','unknown','resolvedVersion','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','336978IUCaNL','scope','identical','errors','173835aPfvzu','personal','8ojnMkj','73338VyWXnX','2892197Gxpxis','\x20version\x20','Company'];a49_0x5432=function(){return _0x5d41de;};return a49_0x5432();}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(_0x25f610){const _0x1356c4=a49_0x35a2,{getRuntimeSkillByCode:_0x531588,validateRuntimeSkillPublish:_0x2b3603}=await import('../../core/api-client.js'),{readPushDirectory:_0xe02329,resolvePushDirectoryIdentity:_0x3bd35a}=await import(_0x1356c4(0x1f7));if(!_0x25f610[_0x1356c4(0x208)])throw CliErrors[_0x1356c4(0x20a)]();const _0xfc8fb2=resolvePushScope(_0x25f610),_0x5d0f5a=validateSkillDirectory(_0x25f610[_0x1356c4(0x210)](_0x1356c4(0x1fa)));throwIfSkillValidationFailed(_0x5d0f5a);const _0x49f9c5=_0x3bd35a(_0x5d0f5a[_0x1356c4(0x1fa)],_0x25f610[_0x1356c4(0x206)],remoteFirstMetadataOptions()),_0x488ed8=await _0x531588(_0x25f610['appCode'],_0x49f9c5[_0x1356c4(0x1fc)]);throwIfBuiltinPushTarget(_0x488ed8);if(_0xfc8fb2==='company'){const _0x44c94f=_0xe02329(_0x5d0f5a[_0x1356c4(0x1fa)],_0x25f610[_0x1356c4(0x206)],remoteMissingCompanyReadOptions()),_0x593df4=await _0x2b3603(_0x25f610['appCode'],_0x44c94f['input'],{'visibility':_0x1356c4(0x1ee)});return{'method':_0x1356c4(0x204),'url':_0x1356c4(0x214)+_0x25f610[_0x1356c4(0x206)]+'/publish/validate','body':{'skillCode':_0x44c94f[_0x1356c4(0x1fc)],'visibility':'NAMESPACE_ONLY','valid':_0x593df4['valid'],'errors':_0x593df4['errors'],'warnings':_0x593df4[_0x1356c4(0x216)],'resolvedSlug':_0x593df4[_0x1356c4(0x20f)],'resolvedVersion':_0x593df4[_0x1356c4(0x21b)]},'description':'Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.'};}if(_0x488ed8&&_0x488ed8[_0x1356c4(0x21e)]!==_0x1356c4(0x1e8))throw CliErrors[_0x1356c4(0x20c)](_0x1356c4(0x202)+_0x49f9c5['skillCode']+_0x1356c4(0x207)+(_0x488ed8[_0x1356c4(0x21e)]??_0x1356c4(0x21a))+'\x22.');const _0x298e33=_0xe02329(_0x5d0f5a[_0x1356c4(0x1fa)],_0x25f610[_0x1356c4(0x206)],_0x488ed8?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions()),_0xadf824=await _0x2b3603(_0x25f610[_0x1356c4(0x206)],_0x298e33[_0x1356c4(0x218)],{'visibility':_0x1356c4(0x1f3)});return{'method':_0x1356c4(0x204),'url':_0x1356c4(0x214)+_0x25f610[_0x1356c4(0x206)]+'/publish/validate','body':{'skillCode':_0x298e33[_0x1356c4(0x1fc)],'visibility':_0x1356c4(0x1f3),'valid':_0xadf824[_0x1356c4(0x1f4)],'errors':_0xadf824[_0x1356c4(0x1e6)],'warnings':_0xadf824[_0x1356c4(0x216)],'resolvedSlug':_0xadf824[_0x1356c4(0x20f)],'resolvedVersion':_0xadf824['resolvedVersion']},'description':_0x1356c4(0x21c)};}export async function skillPushExecute(_0x5396d2){const _0x86bc29=a49_0x35a2,{createPersonalRuntimeSkill:_0x5d9425,downloadRuntimeSkillPackage:_0x4a0236,getRuntimeSkillByCode:_0x57b5ff,publishCompanyRuntimeSkill:_0x4a617f,updatePersonalRuntimeSkill:_0x359e8c,validateRuntimeSkillPublish:_0x5c96ee}=await import(_0x86bc29(0x20b)),{verifyRuntimeSkillPackage:_0x12711f,verifyRuntimeSkillBundle:_0x30b3c3,readPushDirectory:_0x2adb76,refreshPushDirectoryMetadataFromRemote:_0x1d87f4,recordPushedRuntimeSkill:_0x312804,resolvePushDirectoryIdentity:_0xf82b55}=await import(_0x86bc29(0x1f7));if(!_0x5396d2[_0x86bc29(0x208)])throw CliErrors['authRequired']();const _0x6836b6=resolvePushScope(_0x5396d2),_0x58c607=_0x5396d2[_0x86bc29(0x1f1)](_0x86bc29(0x1f0))||_0x5396d2[_0x86bc29(0x1f1)]('confirmWarnings'),_0xa0faba=validateSkillDirectory(_0x5396d2[_0x86bc29(0x210)](_0x86bc29(0x1fa)));throwIfSkillValidationFailed(_0xa0faba);const _0x50c6b2=_0xa0faba[_0x86bc29(0x1fa)];let _0xdf9e72;if(_0x6836b6===_0x86bc29(0x1f2)){const _0x2148eb=_0xf82b55(_0x50c6b2,_0x5396d2[_0x86bc29(0x206)],remoteFirstMetadataOptions()),_0x5536ba=await _0x57b5ff(_0x5396d2[_0x86bc29(0x206)],_0x2148eb[_0x86bc29(0x1fc)]);throwIfBuiltinPushTarget(_0x5536ba);if(_0x5536ba)_0x1d87f4(_0x50c6b2,_0x5536ba,_0x5396d2['appCode']);const _0x3a8eed=_0x2adb76(_0x50c6b2,_0x5396d2[_0x86bc29(0x206)],_0x5536ba?{'targetScope':_0x86bc29(0x1f2),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0xdf9e72={'scope':'company','payload':_0x3a8eed,'publishInput':_0x3a8eed[_0x86bc29(0x218)],'remoteForPreflight':_0x5536ba,'warnings':[]};}else{const _0x4e2d1a=_0x5396d2[_0x86bc29(0x210)](_0x86bc29(0x213))['trim'](),_0xf6e591=Boolean(_0x4e2d1a),_0x164c35=allowRetargetArgs(_0xf6e591),_0x118882=_0xf82b55(_0x50c6b2,_0x5396d2['appCode'],{...remoteFirstMetadataOptions(),..._0x164c35[0x0]}),_0x1835a7=await _0x57b5ff(_0x5396d2[_0x86bc29(0x206)],_0x118882[_0x86bc29(0x1fc)]);throwIfBuiltinPushTarget(_0x1835a7);if(_0x1835a7){if(_0x1835a7[_0x86bc29(0x21e)]!==_0x86bc29(0x1e8)){if(_0xf6e591)throw CliErrors[_0x86bc29(0x20c)](_0x86bc29(0x202)+_0x118882[_0x86bc29(0x1fc)]+'\x20has\x20scope=\x22'+(_0x1835a7[_0x86bc29(0x21e)]??_0x86bc29(0x21a))+'\x22.');_0x1d87f4(_0x50c6b2,_0x1835a7,_0x5396d2[_0x86bc29(0x206)]);}else!_0xf6e591&&_0x1d87f4(_0x50c6b2,_0x1835a7,_0x5396d2[_0x86bc29(0x206)]);}const _0x486967=_0x2adb76(_0x50c6b2,_0x5396d2[_0x86bc29(0x206)],_0x1835a7?remotePersonalReadOptions(_0xf6e591,_0x164c35[0x0]):remoteMissingPersonalReadOptions(_0x164c35[0x0])),_0x360d16=_0x1835a7?.['scope']===_0x86bc29(0x1e8)&&_0x1835a7[_0x86bc29(0x1fc)]===_0x486967[_0x86bc29(0x1fc)]?_0x1835a7:undefined,_0x2230bd=_0xf6e591&&_0x360d16?withRetargetExistingMetadata(_0x486967[_0x86bc29(0x218)],_0x360d16,{'preferInputSkillName':Boolean(_0x486967[_0x86bc29(0x1fd)])}):_0x486967[_0x86bc29(0x218)],_0x5323fe=_0xf6e591?buildRetargetWarning(_0x118882[_0x86bc29(0x211)],_0x5396d2[_0x86bc29(0x206)]):[];_0xdf9e72={'scope':'personal','payload':_0x486967,'publishInput':_0x2230bd,'remoteForPreflight':_0x360d16,'existing':_0x360d16,'warnings':[..._0xa0faba['warnings'],..._0x5323fe]};}const _0x1236c2=await runRemoteContentPreflight({'scope':_0xdf9e72[_0x86bc29(0x21e)],'remote':_0xdf9e72[_0x86bc29(0x1f5)],'publishInput':_0xdf9e72[_0x86bc29(0x215)],'skillCode':_0xdf9e72[_0x86bc29(0x1f8)][_0x86bc29(0x1fc)],'appCode':_0x5396d2[_0x86bc29(0x206)],'downloadRuntimeSkillPackage':_0x4a0236,'verifyRuntimeSkillBundle':_0x30b3c3});if(_0x1236c2[_0x86bc29(0x1ff)]===_0x86bc29(0x21f))return _0xdf9e72[_0x86bc29(0x21e)]===_0x86bc29(0x1f2)?_0x312804(_0x50c6b2,_0x1236c2['savedSkill'],_0x5396d2[_0x86bc29(0x206)],{'scope':_0x86bc29(0x1f2)}):_0x312804(_0x50c6b2,_0x1236c2[_0x86bc29(0x1ef)],_0x5396d2['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x1236c2[_0x86bc29(0x1ef)]),'scope':_0xdf9e72['scope'],..._0xdf9e72['scope']===_0x86bc29(0x1e8)?{'warnings':_0xdf9e72[_0x86bc29(0x216)]}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0xdf9e72[_0x86bc29(0x21e)])+'\x20Skill\x20'+_0xdf9e72[_0x86bc29(0x1f8)]['skillCode']+'\x20is\x20already\x20published\x20and\x20content\x20is\x20identical'};if(_0xdf9e72[_0x86bc29(0x21e)]==='company'){const _0x3b350b=await _0x5c96ee(_0x5396d2[_0x86bc29(0x206)],_0xdf9e72[_0x86bc29(0x215)],{'visibility':_0x86bc29(0x1ee)});throwIfPublishValidationFailed('company',_0xdf9e72[_0x86bc29(0x1f8)][_0x86bc29(0x1fc)],_0x3b350b),throwIfUnconfirmedPublishWarnings(_0x86bc29(0x1f2),_0xdf9e72[_0x86bc29(0x1f8)][_0x86bc29(0x1fc)],_0x3b350b[_0x86bc29(0x216)],_0x58c607);const _0x51d5b9=await _0x4a617f(_0x5396d2[_0x86bc29(0x206)],_0xdf9e72[_0x86bc29(0x215)],{'confirmWarnings':_0x58c607});return _0x312804(_0x50c6b2,{..._0x51d5b9,'files':_0xdf9e72[_0x86bc29(0x215)][_0x86bc29(0x201)]},_0x5396d2[_0x86bc29(0x206)],{'scope':'company'}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x51d5b9),'scope':'company','reviewState':_0x86bc29(0x217),'submittedForReview':!![],'validation':{'warnings':_0x3b350b[_0x86bc29(0x216)]}},'message':_0x86bc29(0x200)+_0xdf9e72['payload'][_0x86bc29(0x1fc)]+_0x86bc29(0x1ec)+(_0x51d5b9[_0x86bc29(0x1f9)]??'(unknown)')+_0x86bc29(0x20e)};}const _0x5e04b4=await _0x5c96ee(_0x5396d2[_0x86bc29(0x206)],_0xdf9e72['publishInput'],{'visibility':_0x86bc29(0x1f3)});throwIfPublishValidationFailed(_0x86bc29(0x1e8),_0xdf9e72[_0x86bc29(0x1f8)][_0x86bc29(0x1fc)],_0x5e04b4),throwIfUnconfirmedPublishWarnings('personal',_0xdf9e72['payload'][_0x86bc29(0x1fc)],_0x5e04b4['warnings'],_0x58c607);const _0x5266f2={'confirmWarnings':_0x58c607},_0x17b372=_0xdf9e72['existing']?await _0x359e8c(_0xdf9e72['payload']['skillCode'],_0x5396d2[_0x86bc29(0x206)],_0xdf9e72['publishInput'],_0x5266f2):await _0x5d9425(_0x5396d2['appCode'],_0xdf9e72[_0x86bc29(0x215)],_0x5266f2);let _0x585ed8=_0x17b372;if(isMultiFileManifest(_0xdf9e72[_0x86bc29(0x215)][_0x86bc29(0x201)])){const _0x3807ef=await _0x4a0236(_0x86bc29(0x1e8),_0x17b372[_0x86bc29(0x1fc)]||_0xdf9e72[_0x86bc29(0x1f8)][_0x86bc29(0x1fc)],_0x5396d2[_0x86bc29(0x206)]);_0x30b3c3(_0xdf9e72[_0x86bc29(0x215)][_0x86bc29(0x201)],_0x3807ef),_0x585ed8={..._0x17b372,'files':_0xdf9e72['publishInput'][_0x86bc29(0x201)]};}else{if(isPackageBackedManifest(_0x17b372['files'])){const _0x242fd9=await _0x4a0236(_0x86bc29(0x1e8),_0x17b372[_0x86bc29(0x1fc)]||_0xdf9e72[_0x86bc29(0x1f8)][_0x86bc29(0x1fc)],_0x5396d2[_0x86bc29(0x206)]);_0x12711f(_0x17b372['files'],_0x242fd9);}}return _0x312804(_0x50c6b2,_0x585ed8,_0x5396d2['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x17b372),'warnings':_0xdf9e72['warnings'],'validation':{'warnings':_0x5e04b4[_0x86bc29(0x216)]}},'message':_0xdf9e72[_0x86bc29(0x1fe)]?'Updated\x20personal\x20Skill\x20'+_0xdf9e72[_0x86bc29(0x1f8)]['skillCode']:_0x86bc29(0x20d)+_0xdf9e72['payload']['skillCode']};}function scopeLabel(_0x33783b){const _0x201e75=a49_0x35a2;return _0x33783b===_0x201e75(0x1f2)?_0x201e75(0x1ed):_0x201e75(0x203);}
1
+ (function(_0x43cef7,_0x329d80){const _0x486c38=a49_0x5579,_0x5eb808=_0x43cef7();while(!![]){try{const _0x24291c=parseInt(_0x486c38(0x190))/0x1*(parseInt(_0x486c38(0x191))/0x2)+parseInt(_0x486c38(0x1a8))/0x3*(-parseInt(_0x486c38(0x1a4))/0x4)+-parseInt(_0x486c38(0x175))/0x5+parseInt(_0x486c38(0x178))/0x6*(parseInt(_0x486c38(0x194))/0x7)+parseInt(_0x486c38(0x1ac))/0x8*(-parseInt(_0x486c38(0x196))/0x9)+-parseInt(_0x486c38(0x17c))/0xa+parseInt(_0x486c38(0x1a0))/0xb;if(_0x24291c===_0x329d80)break;else _0x5eb808['push'](_0x5eb808['shift']());}catch(_0x2eb348){_0x5eb808['push'](_0x5eb808['shift']());}}}(a49_0x2e60,0x2cc73));function a49_0x5579(_0x3433bd,_0xc6352a){_0x3433bd=_0x3433bd-0x174;const _0x2e60b9=a49_0x2e60();let _0x55799f=_0x2e60b9[_0x3433bd];return _0x55799f;}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';function a49_0x2e60(){const _0x146a1c=['Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','Company','Updated\x20personal\x20Skill\x20','warnings','company','scope','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','11ZeODlc','4008KixBhP','frontmatterDisplayName','resolvedSlug','14UnFDUO','trim','4905YnhNdq','\x20version\x20','skillCode','personal','PRIVATE','identical','(unknown)','dir','validation','errors','9033596iivlsd','confirm-warnings','\x20has\x20scope=\x22','authRequired','4bYuWkI','payload','../../core/api-client.js','bool','89391OvjrZo','existing','accessKey','publishInput','4216Iqzvzk','status','\x20for\x20review','files','/api/cli/v1/skills/','appCode','1757455yLMVaE','/publish/validate','savedSkill','866094aBxQNk','metadata','resolvedVersion','str','2800640nswOCm','appcode','unknown','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','../../skills/runtime-skill-sync.js','valid','NAMESPACE_ONLY','POST','confirmWarnings','Personal','submitted','remoteForPreflight','input'];a49_0x2e60=function(){return _0x146a1c;};return a49_0x2e60();}import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x29c017){const _0x593515=a49_0x5579,{getRuntimeSkillByCode:_0x393b4c,validateRuntimeSkillPublish:_0x304244}=await import(_0x593515(0x1a6)),{readPushDirectory:_0x2b7cb0,resolvePushDirectoryIdentity:_0x206d58}=await import(_0x593515(0x180));if(!_0x29c017[_0x593515(0x1aa)])throw CliErrors[_0x593515(0x1a3)]();const _0xfdb097=resolvePushScope(_0x29c017),_0x494109=validateSkillDirectory(_0x29c017[_0x593515(0x17b)](_0x593515(0x19d)));throwIfSkillValidationFailed(_0x494109);const _0x58e444=_0x206d58(_0x494109[_0x593515(0x19d)],_0x29c017['appCode'],remoteFirstMetadataOptions()),_0x361d66=await _0x393b4c(_0x29c017['appCode'],_0x58e444[_0x593515(0x198)]);throwIfBuiltinPushTarget(_0x361d66);if(_0xfdb097===_0x593515(0x18d)){const _0x41c431=_0x2b7cb0(_0x494109['dir'],_0x29c017[_0x593515(0x174)],remoteMissingCompanyReadOptions()),_0x5351aa=await _0x304244(_0x29c017[_0x593515(0x174)],_0x41c431['input'],{'visibility':_0x593515(0x182)});return{'method':_0x593515(0x183),'url':'/api/cli/v1/skills/'+_0x29c017[_0x593515(0x174)]+_0x593515(0x176),'body':{'skillCode':_0x41c431[_0x593515(0x198)],'visibility':_0x593515(0x182),'valid':_0x5351aa[_0x593515(0x181)],'errors':_0x5351aa[_0x593515(0x19f)],'warnings':_0x5351aa[_0x593515(0x18c)],'resolvedSlug':_0x5351aa[_0x593515(0x193)],'resolvedVersion':_0x5351aa[_0x593515(0x17a)]},'description':_0x593515(0x17f)};}if(_0x361d66&&_0x361d66[_0x593515(0x18e)]!==_0x593515(0x199))throw CliErrors[_0x593515(0x19e)](_0x593515(0x18f)+_0x58e444[_0x593515(0x198)]+_0x593515(0x1a2)+(_0x361d66['scope']??_0x593515(0x17e))+'\x22.');const _0x5c019e=_0x2b7cb0(_0x494109[_0x593515(0x19d)],_0x29c017[_0x593515(0x174)],_0x361d66?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions()),_0x3c246a=await _0x304244(_0x29c017['appCode'],_0x5c019e[_0x593515(0x188)],{'visibility':'PRIVATE'});return{'method':_0x593515(0x183),'url':_0x593515(0x1b0)+_0x29c017[_0x593515(0x174)]+_0x593515(0x176),'body':{'skillCode':_0x5c019e[_0x593515(0x198)],'visibility':_0x593515(0x19a),'valid':_0x3c246a[_0x593515(0x181)],'errors':_0x3c246a[_0x593515(0x19f)],'warnings':_0x3c246a[_0x593515(0x18c)],'resolvedSlug':_0x3c246a[_0x593515(0x193)],'resolvedVersion':_0x3c246a['resolvedVersion']},'description':_0x593515(0x189)};}export async function skillPushExecute(_0x44ae79){const _0x273c31=a49_0x5579,{createPersonalRuntimeSkill:_0x4ee710,downloadRuntimeSkillPackage:_0x2843d6,getRuntimeSkillByCode:_0x5de833,publishCompanyRuntimeSkill:_0x114e1f,updatePersonalRuntimeSkill:_0x36bf6f,validateRuntimeSkillPublish:_0x1c9756}=await import(_0x273c31(0x1a6)),{verifyRuntimeSkillPackage:_0x328832,verifyRuntimeSkillBundle:_0x102a64,readPushDirectory:_0x3939af,refreshPushDirectoryMetadataFromRemote:_0x31aa0f,recordPushedRuntimeSkill:_0x1180c0,resolvePushDirectoryIdentity:_0x51e96b}=await import(_0x273c31(0x180));if(!_0x44ae79['accessKey'])throw CliErrors['authRequired']();const _0x331706=resolvePushScope(_0x44ae79),_0x197a76=_0x44ae79[_0x273c31(0x1a7)](_0x273c31(0x1a1))||_0x44ae79['bool'](_0x273c31(0x184)),_0x476f7c=validateSkillDirectory(_0x44ae79[_0x273c31(0x17b)](_0x273c31(0x19d)));throwIfSkillValidationFailed(_0x476f7c);const _0x5c83ef=_0x476f7c['dir'];let _0x156df5;if(_0x331706==='company'){const _0x3ed229=_0x51e96b(_0x5c83ef,_0x44ae79[_0x273c31(0x174)],remoteFirstMetadataOptions()),_0x4de7dd=await _0x5de833(_0x44ae79[_0x273c31(0x174)],_0x3ed229[_0x273c31(0x198)]);throwIfBuiltinPushTarget(_0x4de7dd);if(_0x4de7dd)_0x31aa0f(_0x5c83ef,_0x4de7dd,_0x44ae79[_0x273c31(0x174)]);const _0x36699a=_0x3939af(_0x5c83ef,_0x44ae79[_0x273c31(0x174)],_0x4de7dd?{'targetScope':_0x273c31(0x18d),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0x156df5={'scope':_0x273c31(0x18d),'payload':_0x36699a,'publishInput':_0x36699a[_0x273c31(0x188)],'remoteForPreflight':_0x4de7dd,'warnings':[]};}else{const _0x3947d8=_0x44ae79[_0x273c31(0x17b)](_0x273c31(0x17d))[_0x273c31(0x195)](),_0x1eedec=Boolean(_0x3947d8),_0x349928=allowRetargetArgs(_0x1eedec),_0x474704=_0x51e96b(_0x5c83ef,_0x44ae79[_0x273c31(0x174)],{...remoteFirstMetadataOptions(),..._0x349928[0x0]}),_0x512237=await _0x5de833(_0x44ae79[_0x273c31(0x174)],_0x474704[_0x273c31(0x198)]);throwIfBuiltinPushTarget(_0x512237);if(_0x512237){if(_0x512237[_0x273c31(0x18e)]!==_0x273c31(0x199)){if(_0x1eedec)throw CliErrors[_0x273c31(0x19e)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x474704['skillCode']+_0x273c31(0x1a2)+(_0x512237[_0x273c31(0x18e)]??'unknown')+'\x22.');_0x31aa0f(_0x5c83ef,_0x512237,_0x44ae79[_0x273c31(0x174)]);}else!_0x1eedec&&_0x31aa0f(_0x5c83ef,_0x512237,_0x44ae79[_0x273c31(0x174)]);}const _0x150ed2=_0x3939af(_0x5c83ef,_0x44ae79[_0x273c31(0x174)],_0x512237?remotePersonalReadOptions(_0x1eedec,_0x349928[0x0]):remoteMissingPersonalReadOptions(_0x349928[0x0])),_0x754c4=_0x512237?.[_0x273c31(0x18e)]===_0x273c31(0x199)&&_0x512237['skillCode']===_0x150ed2[_0x273c31(0x198)]?_0x512237:undefined,_0x2bd13c=_0x1eedec&&_0x754c4?withRetargetExistingMetadata(_0x150ed2['input'],_0x754c4,{'preferInputSkillName':Boolean(_0x150ed2[_0x273c31(0x192)])}):_0x150ed2['input'],_0x2be880=_0x1eedec?buildRetargetWarning(_0x474704[_0x273c31(0x179)],_0x44ae79[_0x273c31(0x174)]):[];_0x156df5={'scope':'personal','payload':_0x150ed2,'publishInput':_0x2bd13c,'remoteForPreflight':_0x754c4,'existing':_0x754c4,'warnings':[..._0x476f7c[_0x273c31(0x18c)],..._0x2be880]};}const _0x2be04b=await runRemoteContentPreflight({'scope':_0x156df5[_0x273c31(0x18e)],'remote':_0x156df5[_0x273c31(0x187)],'publishInput':_0x156df5['publishInput'],'skillCode':_0x156df5['payload'][_0x273c31(0x198)],'appCode':_0x44ae79['appCode'],'downloadRuntimeSkillPackage':_0x2843d6,'verifyRuntimeSkillBundle':_0x102a64});if(_0x2be04b[_0x273c31(0x1ad)]===_0x273c31(0x19b))return _0x156df5[_0x273c31(0x18e)]===_0x273c31(0x18d)?_0x1180c0(_0x5c83ef,_0x2be04b[_0x273c31(0x177)],_0x44ae79[_0x273c31(0x174)],{'scope':'company'}):_0x1180c0(_0x5c83ef,_0x2be04b[_0x273c31(0x177)],_0x44ae79['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x2be04b[_0x273c31(0x177)]),'scope':_0x156df5[_0x273c31(0x18e)],..._0x156df5[_0x273c31(0x18e)]===_0x273c31(0x199)?{'warnings':_0x156df5['warnings']}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0x156df5[_0x273c31(0x18e)])+'\x20Skill\x20'+_0x156df5[_0x273c31(0x1a5)][_0x273c31(0x198)]+'\x20is\x20already\x20published\x20and\x20content\x20is\x20identical'};if(_0x156df5[_0x273c31(0x18e)]===_0x273c31(0x18d)){const _0xb989bf=await _0x1c9756(_0x44ae79[_0x273c31(0x174)],_0x156df5[_0x273c31(0x1ab)],{'visibility':_0x273c31(0x182)});throwIfPublishValidationFailed(_0x273c31(0x18d),_0x156df5[_0x273c31(0x1a5)][_0x273c31(0x198)],_0xb989bf),throwIfUnconfirmedPublishWarnings(_0x273c31(0x18d),_0x156df5['payload'][_0x273c31(0x198)],_0xb989bf[_0x273c31(0x18c)],_0x197a76);const _0x202735=await _0x114e1f(_0x44ae79[_0x273c31(0x174)],_0x156df5[_0x273c31(0x1ab)],{'confirmWarnings':_0x197a76});return _0x1180c0(_0x5c83ef,{..._0x202735,'files':_0x156df5[_0x273c31(0x1ab)][_0x273c31(0x1af)]},_0x44ae79[_0x273c31(0x174)],{'scope':_0x273c31(0x18d)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x202735),'scope':'company','reviewState':_0x273c31(0x186),'submittedForReview':!![],'validation':{'warnings':_0xb989bf['warnings']}},'message':'Submitted\x20company\x20Skill\x20'+_0x156df5[_0x273c31(0x1a5)]['skillCode']+_0x273c31(0x197)+(_0x202735['version']??_0x273c31(0x19c))+_0x273c31(0x1ae)};}const _0x160aa1=await _0x1c9756(_0x44ae79[_0x273c31(0x174)],_0x156df5[_0x273c31(0x1ab)],{'visibility':_0x273c31(0x19a)});throwIfPublishValidationFailed(_0x273c31(0x199),_0x156df5[_0x273c31(0x1a5)]['skillCode'],_0x160aa1),throwIfUnconfirmedPublishWarnings(_0x273c31(0x199),_0x156df5['payload'][_0x273c31(0x198)],_0x160aa1['warnings'],_0x197a76);const _0x110973={'confirmWarnings':_0x197a76},_0x14481c=_0x156df5[_0x273c31(0x1a9)]?await _0x36bf6f(_0x156df5[_0x273c31(0x1a5)][_0x273c31(0x198)],_0x44ae79[_0x273c31(0x174)],_0x156df5[_0x273c31(0x1ab)],_0x110973):await _0x4ee710(_0x44ae79['appCode'],_0x156df5['publishInput'],_0x110973);let _0x47328b=_0x14481c;if(isMultiFileManifest(_0x156df5[_0x273c31(0x1ab)][_0x273c31(0x1af)])){const _0xc3ffd=await _0x2843d6(_0x273c31(0x199),_0x14481c['skillCode']||_0x156df5[_0x273c31(0x1a5)][_0x273c31(0x198)],_0x44ae79[_0x273c31(0x174)]);_0x102a64(_0x156df5['publishInput'][_0x273c31(0x1af)],_0xc3ffd),_0x47328b={..._0x14481c,'files':_0x156df5[_0x273c31(0x1ab)]['files']};}else{if(isPackageBackedManifest(_0x14481c['files'])){const _0x27770b=await _0x2843d6(_0x273c31(0x199),_0x14481c[_0x273c31(0x198)]||_0x156df5[_0x273c31(0x1a5)][_0x273c31(0x198)],_0x44ae79['appCode']);_0x328832(_0x14481c[_0x273c31(0x1af)],_0x27770b);}}return _0x1180c0(_0x5c83ef,_0x47328b,_0x44ae79['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x14481c),'warnings':_0x156df5[_0x273c31(0x18c)],'validation':{'warnings':_0x160aa1[_0x273c31(0x18c)]}},'message':_0x156df5['existing']?_0x273c31(0x18b)+_0x156df5[_0x273c31(0x1a5)][_0x273c31(0x198)]:'Created\x20personal\x20Skill\x20'+_0x156df5[_0x273c31(0x1a5)][_0x273c31(0x198)]};}function scopeLabel(_0x17d2ee){const _0x33cf01=a49_0x5579;return _0x17d2ee==='company'?_0x33cf01(0x18a):_0x33cf01(0x185);}
@@ -1 +1 @@
1
- function a50_0xe274(){const _0x24b57d=['files','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','24KUYtis','\x20Skill\x20push\x20validation\x20failed\x20for\x20','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','appCode','warning','publishInput','Builtin\x20Skill\x20','495755QDgZAY','str','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','2829064iwFsda','5562456ZdhRAl','join','valid','Personal','1684800CsSYor','errors','\x20cannot\x20be\x20pushed.','53WIntjS','not-applicable','length','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','personal','builtin','Review\x20each\x20warning\x20before\x20continuing.','scope','company','209048nzIhNb','verifyRuntimeSkillBundle','5450FEacLh','12472893ooAIeg','Warnings:\x20','warnings','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','skillCode','remote','lovrabet.skill.json','validation','SkillHub\x20validation\x20returned\x20invalid.','identical','Company'];a50_0xe274=function(){return _0x24b57d;};return a50_0xe274();}(function(_0x23a64d,_0x2ae1e5){const _0x38170e=a50_0x1d31,_0x2633e8=_0x23a64d();while(!![]){try{const _0x55ba7a=parseInt(_0x38170e(0x17f))/0x1*(-parseInt(_0x38170e(0x18a))/0x2)+-parseInt(_0x38170e(0x16d))/0x3*(-parseInt(_0x38170e(0x188))/0x4)+parseInt(_0x38170e(0x174))/0x5+parseInt(_0x38170e(0x17c))/0x6+parseInt(_0x38170e(0x177))/0x7+parseInt(_0x38170e(0x178))/0x8+-parseInt(_0x38170e(0x18b))/0x9;if(_0x55ba7a===_0x2ae1e5)break;else _0x2633e8['push'](_0x2633e8['shift']());}catch(_0x3bf400){_0x2633e8['push'](_0x2633e8['shift']());}}}(a50_0xe274,0x59a64));import{CliErrors}from'../../errors.js';function a50_0x1d31(_0x496a53,_0x3a52af){_0x496a53=_0x496a53-0x16d;const _0xe274c7=a50_0xe274();let _0x1d3144=_0xe274c7[_0x496a53];return _0x1d3144;}export function resolvePushScope(_0x36872b){const _0x26ca36=a50_0x1d31,_0x3aa3c8=_0x36872b[_0x26ca36(0x175)]('scope')||_0x26ca36(0x183);if(_0x3aa3c8===_0x26ca36(0x183)||_0x3aa3c8===_0x26ca36(0x187))return _0x3aa3c8;throw CliErrors[_0x26ca36(0x192)]('skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22'+_0x3aa3c8+'\x22.');}export function allowRetargetArgs(_0x63bfde){return _0x63bfde?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x7352fc=a50_0x1d31;return{'targetScope':_0x7352fc(0x187),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0xeb612e={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0xeb612e};}export function remotePersonalReadOptions(_0x512e35,_0x51b2ee={}){return{'ignoreInvalidMetadata':!![],..._0x512e35?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x51b2ee};}export function throwIfBuiltinPushTarget(_0x4c3826){const _0x46c92f=a50_0x1d31;if(_0x4c3826?.['scope']!==_0x46c92f(0x184))return;throw CliErrors[_0x46c92f(0x192)](_0x46c92f(0x173)+(_0x4c3826['skillCode']??'(unknown)')+_0x46c92f(0x17e),_0x46c92f(0x197));}export function throwIfPublishValidationFailed(_0x47c88e,_0x48d4b8,_0x1dcfe3){const _0x439c5c=a50_0x1d31;if(_0x1dcfe3[_0x439c5c(0x17d)][_0x439c5c(0x181)]===0x0&&(_0x1dcfe3[_0x439c5c(0x17a)]||_0x1dcfe3[_0x439c5c(0x18d)][_0x439c5c(0x181)]>0x0))return;const _0x2a7593=_0x1dcfe3[_0x439c5c(0x17d)]['length']>0x0?_0x1dcfe3[_0x439c5c(0x17d)]['join'](';\x20'):_0x439c5c(0x193),_0x4b1ac2=_0x47c88e===_0x439c5c(0x187)?_0x439c5c(0x195):'Personal';throw CliErrors['validation'](_0x4b1ac2+_0x439c5c(0x16e)+_0x48d4b8+'.',_0x2a7593);}export function throwIfUnconfirmedPublishWarnings(_0x4f9315,_0x28e8b7,_0x475b55,_0x5a1901){const _0x1e9d41=a50_0x1d31;if(_0x475b55[_0x1e9d41(0x181)]===0x0||_0x5a1901)return;const _0x5305eb=_0x4f9315===_0x1e9d41(0x187)?_0x1e9d41(0x195):_0x1e9d41(0x17b);throw CliErrors[_0x1e9d41(0x192)](_0x5305eb+_0x1e9d41(0x182)+_0x28e8b7+'.',[_0x1e9d41(0x185),_0x1e9d41(0x176),_0x1e9d41(0x18e),_0x1e9d41(0x18c)+_0x475b55[_0x1e9d41(0x179)](';\x20')][_0x1e9d41(0x179)]('\x20'));}export function buildRetargetWarning(_0x5eb855,_0x19a695){const _0x11dfb7=a50_0x1d31;if(!_0x5eb855?.[_0x11dfb7(0x170)]||_0x5eb855['appCode']===_0x19a695)return[];return[{'level':_0x11dfb7(0x171),'ruleId':'skill-metadata-appcode-retargeted','file':_0x11dfb7(0x191),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x5eb855[_0x11dfb7(0x170)]+_0x11dfb7(0x198)+_0x19a695+'\x20after\x20successful\x20push.','suggestion':_0x11dfb7(0x16f)}];}export async function runRemoteContentPreflight(_0x33397b){const _0x10b5fd=a50_0x1d31;if(!_0x33397b['remote']||_0x33397b[_0x10b5fd(0x190)][_0x10b5fd(0x186)]!==_0x33397b[_0x10b5fd(0x186)]||!_0x33397b['publishInput'][_0x10b5fd(0x196)])return{'status':_0x10b5fd(0x180)};const _0x5c5e12=_0x33397b['remote'][_0x10b5fd(0x18f)]||_0x33397b[_0x10b5fd(0x18f)];if(!_0x5c5e12)return{'status':_0x10b5fd(0x180)};const _0xb6e1d0=await _0x33397b['downloadRuntimeSkillPackage'](_0x33397b[_0x10b5fd(0x186)],_0x5c5e12,_0x33397b[_0x10b5fd(0x170)],_0x33397b[_0x10b5fd(0x190)]['version']);try{_0x33397b[_0x10b5fd(0x189)](_0x33397b[_0x10b5fd(0x172)][_0x10b5fd(0x196)],_0xb6e1d0);}catch{return{'status':'different'};}return{'status':_0x10b5fd(0x194),'savedSkill':{..._0x33397b[_0x10b5fd(0x190)],'content':_0x33397b[_0x10b5fd(0x172)]['content'],'files':_0x33397b[_0x10b5fd(0x172)][_0x10b5fd(0x196)]}};}
1
+ (function(_0x486e3d,_0x199d3b){const _0x73e634=a50_0x2bd2,_0x33fd79=_0x486e3d();while(!![]){try{const _0x9aaeb9=-parseInt(_0x73e634(0xf9))/0x1*(-parseInt(_0x73e634(0xd4))/0x2)+parseInt(_0x73e634(0xf7))/0x3+-parseInt(_0x73e634(0xe9))/0x4+parseInt(_0x73e634(0xea))/0x5+-parseInt(_0x73e634(0xd3))/0x6*(parseInt(_0x73e634(0xf0))/0x7)+-parseInt(_0x73e634(0xd7))/0x8*(-parseInt(_0x73e634(0xf2))/0x9)+-parseInt(_0x73e634(0xd2))/0xa;if(_0x9aaeb9===_0x199d3b)break;else _0x33fd79['push'](_0x33fd79['shift']());}catch(_0x1384e7){_0x33fd79['push'](_0x33fd79['shift']());}}}(a50_0x1376,0xf097f));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x279d49){const _0x313299=a50_0x2bd2,_0x49d6b9=_0x279d49[_0x313299(0xef)](_0x313299(0xe0))||'personal';if(_0x49d6b9===_0x313299(0xd8)||_0x49d6b9==='company')return _0x49d6b9;throw CliErrors['validation']('skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22'+_0x49d6b9+'\x22.');}export function allowRetargetArgs(_0x4690b7){return _0x4690b7?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}function a50_0x2bd2(_0x4cff4b,_0x18d289){_0x4cff4b=_0x4cff4b-0xd2;const _0x137690=a50_0x1376();let _0x2bd216=_0x137690[_0x4cff4b];return _0x2bd216;}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x44ebbf=a50_0x2bd2;return{'targetScope':_0x44ebbf(0xe8),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x429478={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x429478};}export function remotePersonalReadOptions(_0x3ed5ab,_0x433b14={}){return{'ignoreInvalidMetadata':!![],..._0x3ed5ab?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x433b14};}function a50_0x1376(){const _0x4b56cc=['Personal','(unknown)','Local\x20Skill\x20metadata\x20appCode\x20','identical','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','scope','skillCode','builtin','SkillHub\x20validation\x20returned\x20invalid.','\x20after\x20successful\x20push.','Builtin\x20Skill\x20','verifyRuntimeSkillBundle','join','company','5717696POHfpu','7994520HLQlqo','Review\x20each\x20warning\x20before\x20continuing.','not-applicable','length','\x20Skill\x20push\x20validation\x20failed\x20for\x20','str','7sjBMNp','remote','99AbYngO','errors','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','valid','publishInput','4862112okEEOK','Warnings:\x20','1070577JjeGsX','Company','files','downloadRuntimeSkillPackage','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','19555200qjPfJp','1289994cxQbfJ','2hRmzJQ','appCode','different','214712vytsGG','personal','validation'];a50_0x1376=function(){return _0x4b56cc;};return a50_0x1376();}export function throwIfBuiltinPushTarget(_0x2d7a7c){const _0x187806=a50_0x2bd2;if(_0x2d7a7c?.[_0x187806(0xe0)]!==_0x187806(0xe2))return;throw CliErrors[_0x187806(0xd9)](_0x187806(0xe5)+(_0x2d7a7c[_0x187806(0xe1)]??_0x187806(0xdb))+'\x20cannot\x20be\x20pushed.','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.');}export function throwIfPublishValidationFailed(_0x165a26,_0x30777a,_0x2ad3a5){const _0x293e19=a50_0x2bd2;if(_0x2ad3a5[_0x293e19(0xf3)][_0x293e19(0xed)]===0x0&&(_0x2ad3a5[_0x293e19(0xf5)]||_0x2ad3a5['warnings'][_0x293e19(0xed)]>0x0))return;const _0x224468=_0x2ad3a5[_0x293e19(0xf3)]['length']>0x0?_0x2ad3a5['errors'][_0x293e19(0xe7)](';\x20'):_0x293e19(0xe3),_0x43ec1e=_0x165a26==='company'?'Company':_0x293e19(0xda);throw CliErrors['validation'](_0x43ec1e+_0x293e19(0xee)+_0x30777a+'.',_0x224468);}export function throwIfUnconfirmedPublishWarnings(_0x15d15c,_0x3b347c,_0x2226b6,_0x508795){const _0x1b963a=a50_0x2bd2;if(_0x2226b6[_0x1b963a(0xed)]===0x0||_0x508795)return;const _0x32cd6e=_0x15d15c===_0x1b963a(0xe8)?_0x1b963a(0xfa):_0x1b963a(0xda);throw CliErrors[_0x1b963a(0xd9)](_0x32cd6e+_0x1b963a(0xde)+_0x3b347c+'.',[_0x1b963a(0xeb),'Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.',_0x1b963a(0xfd),_0x1b963a(0xf8)+_0x2226b6[_0x1b963a(0xe7)](';\x20')][_0x1b963a(0xe7)]('\x20'));}export function buildRetargetWarning(_0x9f0c46,_0x5c887f){const _0x3d3214=a50_0x2bd2;if(!_0x9f0c46?.[_0x3d3214(0xd5)]||_0x9f0c46['appCode']===_0x5c887f)return[];return[{'level':'warning','ruleId':'skill-metadata-appcode-retargeted','file':'lovrabet.skill.json','message':_0x3d3214(0xdc)+_0x9f0c46[_0x3d3214(0xd5)]+_0x3d3214(0xf4)+_0x5c887f+_0x3d3214(0xe4),'suggestion':_0x3d3214(0xdf)}];}export async function runRemoteContentPreflight(_0x48c453){const _0x462bdd=a50_0x2bd2;if(!_0x48c453[_0x462bdd(0xf1)]||_0x48c453[_0x462bdd(0xf1)]['scope']!==_0x48c453[_0x462bdd(0xe0)]||!_0x48c453['publishInput'][_0x462bdd(0xfb)])return{'status':_0x462bdd(0xec)};const _0x4b911a=_0x48c453[_0x462bdd(0xf1)][_0x462bdd(0xe1)]||_0x48c453[_0x462bdd(0xe1)];if(!_0x4b911a)return{'status':_0x462bdd(0xec)};const _0x52aab9=await _0x48c453[_0x462bdd(0xfc)](_0x48c453[_0x462bdd(0xe0)],_0x4b911a,_0x48c453[_0x462bdd(0xd5)],_0x48c453[_0x462bdd(0xf1)]['version']);try{_0x48c453[_0x462bdd(0xe6)](_0x48c453['publishInput'][_0x462bdd(0xfb)],_0x52aab9);}catch{return{'status':_0x462bdd(0xd6)};}return{'status':_0x462bdd(0xdd),'savedSkill':{..._0x48c453['remote'],'content':_0x48c453[_0x462bdd(0xf6)]['content'],'files':_0x48c453[_0x462bdd(0xf6)][_0x462bdd(0xfb)]}};}
@@ -1 +1 @@
1
- (function(_0x412ef4,_0x34c16d){const _0x15bd20=a51_0x2a80,_0x4a30db=_0x412ef4();while(!![]){try{const _0x32080a=parseInt(_0x15bd20(0x88))/0x1+parseInt(_0x15bd20(0x7f))/0x2*(-parseInt(_0x15bd20(0x8b))/0x3)+parseInt(_0x15bd20(0x84))/0x4+-parseInt(_0x15bd20(0x76))/0x5*(-parseInt(_0x15bd20(0x75))/0x6)+-parseInt(_0x15bd20(0x7e))/0x7+parseInt(_0x15bd20(0x78))/0x8*(-parseInt(_0x15bd20(0x7d))/0x9)+parseInt(_0x15bd20(0x81))/0xa*(parseInt(_0x15bd20(0x82))/0xb);if(_0x32080a===_0x34c16d)break;else _0x4a30db['push'](_0x4a30db['shift']());}catch(_0x32275a){_0x4a30db['push'](_0x4a30db['shift']());}}}(a51_0x1f59,0x4ddc8));function a51_0x1f59(){const _0x410a4d=['isArray','skill-metadata-appcode-retargeted','3SSHlVe','description','470370tVHgoe','35sOZrYf','appCode','8zeaIjy','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','sourceSessionId','Local\x20Skill\x20metadata\x20appCode\x20','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','3578895CHFaGW','110810TELDIi','849034GnPWBR','tags','340oaHuvs','36333ZEjLYa','skillName','69044aQvgrG','version','lovrabet.skill.json','warning','478594LLdKeT'];a51_0x1f59=function(){return _0x410a4d;};return a51_0x1f59();}function a51_0x2a80(_0x567488,_0x3a4674){_0x567488=_0x567488-0x74;const _0x1f59d3=a51_0x1f59();let _0x2a8085=_0x1f59d3[_0x567488];return _0x2a8085;}export function withRetargetExistingMetadata(_0x31802c,_0x3d8675,_0x5ea326={}){const _0x5346bf=a51_0x2a80,_0x34784d=_0x5ea326['preferInputSkillName']?_0x31802c['skillName']??_0x3d8675[_0x5346bf(0x83)]:_0x3d8675[_0x5346bf(0x83)]??_0x31802c[_0x5346bf(0x83)];return{..._0x31802c,'skillName':_0x34784d,'description':_0x3d8675['description']??_0x31802c[_0x5346bf(0x74)],'tags':Array[_0x5346bf(0x89)](_0x3d8675[_0x5346bf(0x80)])?_0x3d8675[_0x5346bf(0x80)]:_0x31802c[_0x5346bf(0x80)],'version':_0x3d8675[_0x5346bf(0x85)]??_0x31802c[_0x5346bf(0x85)],'sourceSessionId':_0x3d8675[_0x5346bf(0x7a)]??_0x31802c[_0x5346bf(0x7a)]};}export function buildRetargetWarning(_0x2e27dd,_0x1e170c){const _0x32fbe6=a51_0x2a80;if(!_0x2e27dd?.[_0x32fbe6(0x77)]||_0x2e27dd[_0x32fbe6(0x77)]===_0x1e170c)return[];return[{'level':_0x32fbe6(0x87),'ruleId':_0x32fbe6(0x8a),'file':_0x32fbe6(0x86),'message':_0x32fbe6(0x7b)+_0x2e27dd[_0x32fbe6(0x77)]+_0x32fbe6(0x7c)+_0x1e170c+'\x20after\x20successful\x20push.','suggestion':_0x32fbe6(0x79)}];}
1
+ (function(_0x295320,_0x572684){const _0x209872=a51_0x1e1e,_0x1ea4c4=_0x295320();while(!![]){try{const _0x58ff11=-parseInt(_0x209872(0x1d6))/0x1*(parseInt(_0x209872(0x1e8))/0x2)+parseInt(_0x209872(0x1e4))/0x3*(-parseInt(_0x209872(0x1df))/0x4)+parseInt(_0x209872(0x1e9))/0x5*(parseInt(_0x209872(0x1de))/0x6)+-parseInt(_0x209872(0x1e3))/0x7+-parseInt(_0x209872(0x1da))/0x8*(-parseInt(_0x209872(0x1e6))/0x9)+parseInt(_0x209872(0x1d9))/0xa*(-parseInt(_0x209872(0x1dd))/0xb)+parseInt(_0x209872(0x1ea))/0xc;if(_0x58ff11===_0x572684)break;else _0x1ea4c4['push'](_0x1ea4c4['shift']());}catch(_0x290e3f){_0x1ea4c4['push'](_0x1ea4c4['shift']());}}}(a51_0x1dac,0x99a9a));function a51_0x1e1e(_0x2557db,_0x3bb0c9){_0x2557db=_0x2557db-0x1d6;const _0x1dac52=a51_0x1dac();let _0x1e1ec1=_0x1dac52[_0x2557db];return _0x1e1ec1;}export function withRetargetExistingMetadata(_0x314dd9,_0x52532d,_0x258c08={}){const _0x505cf9=a51_0x1e1e,_0x143425=_0x258c08[_0x505cf9(0x1db)]?_0x314dd9['skillName']??_0x52532d[_0x505cf9(0x1eb)]:_0x52532d[_0x505cf9(0x1eb)]??_0x314dd9['skillName'];return{..._0x314dd9,'skillName':_0x143425,'description':_0x52532d[_0x505cf9(0x1d8)]??_0x314dd9[_0x505cf9(0x1d8)],'tags':Array['isArray'](_0x52532d[_0x505cf9(0x1e7)])?_0x52532d['tags']:_0x314dd9[_0x505cf9(0x1e7)],'version':_0x52532d['version']??_0x314dd9['version'],'sourceSessionId':_0x52532d['sourceSessionId']??_0x314dd9[_0x505cf9(0x1e0)]};}function a51_0x1dac(){const _0x45b315=['3255675DgszPL','Local\x20Skill\x20metadata\x20appCode\x20','45mcURvl','tags','669646wbnLFx','55cGPFWZ','33819300DjuTTo','skillName','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','warning','1XXfwAF','skill-metadata-appcode-retargeted','description','134900aLtmkq','205832cKJOCy','preferInputSkillName','\x20after\x20successful\x20push.','990nKtOqG','238536hfcLcC','4bPGPLf','sourceSessionId','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','appCode','844802YRdhEu'];a51_0x1dac=function(){return _0x45b315;};return a51_0x1dac();}export function buildRetargetWarning(_0x4c58f3,_0x27e4a4){const _0x3302f5=a51_0x1e1e;if(!_0x4c58f3?.[_0x3302f5(0x1e2)]||_0x4c58f3[_0x3302f5(0x1e2)]===_0x27e4a4)return[];return[{'level':_0x3302f5(0x1ed),'ruleId':_0x3302f5(0x1d7),'file':'lovrabet.skill.json','message':_0x3302f5(0x1e5)+_0x4c58f3[_0x3302f5(0x1e2)]+_0x3302f5(0x1ec)+_0x27e4a4+_0x3302f5(0x1dc),'suggestion':_0x3302f5(0x1e1)}];}
@@ -1 +1 @@
1
- (function(_0x1639c3,_0x534572){const _0x165d3f=a52_0x4b1a,_0x82fb38=_0x1639c3();while(!![]){try{const _0x2805cc=-parseInt(_0x165d3f(0x1ee))/0x1*(-parseInt(_0x165d3f(0x1e6))/0x2)+-parseInt(_0x165d3f(0x1e8))/0x3*(parseInt(_0x165d3f(0x1f8))/0x4)+parseInt(_0x165d3f(0x1f1))/0x5+-parseInt(_0x165d3f(0x1f0))/0x6*(parseInt(_0x165d3f(0x1ef))/0x7)+parseInt(_0x165d3f(0x1f5))/0x8+parseInt(_0x165d3f(0x1e9))/0x9*(-parseInt(_0x165d3f(0x1f4))/0xa)+parseInt(_0x165d3f(0x1eb))/0xb*(parseInt(_0x165d3f(0x1f3))/0xc);if(_0x2805cc===_0x534572)break;else _0x82fb38['push'](_0x82fb38['shift']());}catch(_0x46df2e){_0x82fb38['push'](_0x82fb38['shift']());}}}(a52_0x483e,0xd8d1e));import{CliErrors}from'../../errors.js';function a52_0x4b1a(_0x3410cc,_0x2addd7){_0x3410cc=_0x3410cc-0x1e6;const _0x483ea6=a52_0x483e();let _0x4b1ab5=_0x483ea6[_0x3410cc];return _0x4b1ab5;}export function normalizeSyncScopes(_0x3cc900){const _0x38b7a9=a52_0x4b1a,_0x2ace3e=_0x3cc900[_0x38b7a9(0x1ec)]();if(!_0x2ace3e||_0x2ace3e===_0x38b7a9(0x1f2))return[_0x38b7a9(0x1f6),_0x38b7a9(0x1ed)];if(_0x2ace3e===_0x38b7a9(0x1f6)||_0x2ace3e===_0x38b7a9(0x1ed))return[_0x2ace3e];throw CliErrors[_0x38b7a9(0x1f7)](_0x38b7a9(0x1e7)+_0x3cc900);}function a52_0x483e(){const _0x4e78b2=['1uqnIMn','2255771WsrPwd','18ymXggK','5280135CyNWGF','all','228rwmBMY','10595470SLpCfv','13396656aCeJca','personal','validation','28OiXnlC','495046ZNfKID','Unsupported\x20Skill\x20sync\x20scope:\x20','123945AviqPu','9SVZKUw','Unsupported\x20Skill\x20list\x20scope:\x20','130537qTYXPZ','trim','company'];a52_0x483e=function(){return _0x4e78b2;};return a52_0x483e();}export function normalizeListScope(_0x48938b){const _0x4310da=a52_0x4b1a,_0x2d7535=_0x48938b[_0x4310da(0x1ec)]();if(!_0x2d7535)return _0x4310da(0x1f2);if(_0x2d7535===_0x4310da(0x1f6)||_0x2d7535===_0x4310da(0x1ed)||_0x2d7535===_0x4310da(0x1f2))return _0x2d7535;throw CliErrors[_0x4310da(0x1f7)](_0x4310da(0x1ea)+_0x48938b);}export function shouldListScope(_0x1ac183,_0x1fa3d9){const _0x11064d=a52_0x4b1a;if(_0x1ac183===_0x11064d(0x1f2))return!![];return _0x1ac183===_0x1fa3d9;}export function listScopeToRuntimeScopes(_0xfd14a9){const _0x54c012=a52_0x4b1a;if(_0xfd14a9===_0x54c012(0x1f2))return[_0x54c012(0x1f6),_0x54c012(0x1ed)];return[_0xfd14a9===_0x54c012(0x1ed)?'company':_0xfd14a9];}export function listScopeToRemoteScope(_0x3f7d37){return _0x3f7d37;}
1
+ (function(_0x20c575,_0x967260){const _0x4f325e=a52_0x5702,_0x2a8421=_0x20c575();while(!![]){try{const _0x12f7ea=parseInt(_0x4f325e(0xc9))/0x1*(-parseInt(_0x4f325e(0xd2))/0x2)+-parseInt(_0x4f325e(0xca))/0x3+parseInt(_0x4f325e(0xcb))/0x4*(-parseInt(_0x4f325e(0xc5))/0x5)+-parseInt(_0x4f325e(0xcd))/0x6*(-parseInt(_0x4f325e(0xd0))/0x7)+parseInt(_0x4f325e(0xc4))/0x8*(parseInt(_0x4f325e(0xcc))/0x9)+parseInt(_0x4f325e(0xcf))/0xa*(parseInt(_0x4f325e(0xc2))/0xb)+parseInt(_0x4f325e(0xc8))/0xc*(-parseInt(_0x4f325e(0xd1))/0xd);if(_0x12f7ea===_0x967260)break;else _0x2a8421['push'](_0x2a8421['shift']());}catch(_0x1517fa){_0x2a8421['push'](_0x2a8421['shift']());}}}(a52_0x212c,0x8fbb9));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x3057f0){const _0x1041c0=a52_0x5702,_0x2666fb=_0x3057f0['trim']();if(!_0x2666fb||_0x2666fb===_0x1041c0(0xd3))return[_0x1041c0(0xc3),_0x1041c0(0xce)];if(_0x2666fb===_0x1041c0(0xc3)||_0x2666fb===_0x1041c0(0xce))return[_0x2666fb];throw CliErrors[_0x1041c0(0xc7)]('Unsupported\x20Skill\x20sync\x20scope:\x20'+_0x3057f0);}export function normalizeListScope(_0x2672be){const _0x2aef85=a52_0x5702,_0x9f92e7=_0x2672be['trim']();if(!_0x9f92e7)return _0x2aef85(0xd3);if(_0x9f92e7===_0x2aef85(0xc3)||_0x9f92e7==='company'||_0x9f92e7===_0x2aef85(0xd3))return _0x9f92e7;throw CliErrors[_0x2aef85(0xc7)](_0x2aef85(0xc6)+_0x2672be);}function a52_0x5702(_0x430d5c,_0x4a4bff){_0x430d5c=_0x430d5c-0xc2;const _0x212c94=a52_0x212c();let _0x570272=_0x212c94[_0x430d5c];return _0x570272;}export function shouldListScope(_0x49347d,_0x4de2db){const _0x4c5f5a=a52_0x5702;if(_0x49347d===_0x4c5f5a(0xd3))return!![];return _0x49347d===_0x4de2db;}export function listScopeToRuntimeScopes(_0x3a5226){const _0x413094=a52_0x5702;if(_0x3a5226===_0x413094(0xd3))return[_0x413094(0xc3),_0x413094(0xce)];return[_0x3a5226===_0x413094(0xce)?'company':_0x3a5226];}function a52_0x212c(){const _0x4ff7cb=['12SHjLQj','30231pgUeAD','3170586VIKwWv','company','1930efawFc','14OKgMrp','3094fmjlrD','69306GMDHtQ','all','19921rIvkYa','personal','1112qovRIv','267885Wckukv','Unsupported\x20Skill\x20list\x20scope:\x20','validation','26316MybUkg','16Pztxnk','142332DoCazk'];a52_0x212c=function(){return _0x4ff7cb;};return a52_0x212c();}export function listScopeToRemoteScope(_0x479eef){return _0x479eef;}
@@ -1 +1 @@
1
- (function(_0x14e3f3,_0x5a291d){var _0x1510e4=a53_0x2afc,_0x3d501d=_0x14e3f3();while(!![]){try{var _0x142462=-parseInt(_0x1510e4(0xcd))/0x1*(-parseInt(_0x1510e4(0xce))/0x2)+parseInt(_0x1510e4(0xcb))/0x3*(parseInt(_0x1510e4(0xc9))/0x4)+-parseInt(_0x1510e4(0xd1))/0x5*(-parseInt(_0x1510e4(0xcf))/0x6)+parseInt(_0x1510e4(0xd3))/0x7*(parseInt(_0x1510e4(0xca))/0x8)+-parseInt(_0x1510e4(0xd4))/0x9+parseInt(_0x1510e4(0xc8))/0xa+parseInt(_0x1510e4(0xdd))/0xb*(-parseInt(_0x1510e4(0xd5))/0xc);if(_0x142462===_0x5a291d)break;else _0x3d501d['push'](_0x3d501d['shift']());}catch(_0xa78dc8){_0x3d501d['push'](_0x3d501d['shift']());}}}(a53_0xb620,0x59ddb));function a53_0x2afc(_0x261b4d,_0xefb210){_0x261b4d=_0x261b4d-0xc7;var _0xb620b0=a53_0xb620();var _0x2afcb9=_0xb620b0[_0x261b4d];return _0x2afcb9;}export function summarizeRuntimeSkill(_0x514e4d){var _0x4875f4=a53_0x2afc;return{'id':_0x514e4d['id'],'skillCode':_0x514e4d['skillCode'],'skillName':_0x514e4d[_0x4875f4(0xd9)],'scope':_0x514e4d[_0x4875f4(0xdc)],'version':_0x514e4d['version'],'readonly':_0x514e4d['readonly']};}function a53_0xb620(){var _0x590fd5=['skillCode','395VFEAcZ','tags','253295HZcbFg','4612320GKEWeS','9339528VeSpdc','dir','metadataPath','readonly','skillName','linkedPaths','treeHash','scope','11lFENVy','contentHash','cacheDir','1131840nCYbUT','4716wFrAzq','88uzzGIz','339oVnVhJ','pulledAt','346010sjbTmG','4xABrNq','24486XaWefS'];a53_0xb620=function(){return _0x590fd5;};return a53_0xb620();}export function summarizeLocalRuntimeSkill(_0x385f33){var _0xa3397d=a53_0x2afc;return{'id':_0x385f33['id'],'skillCode':_0x385f33[_0xa3397d(0xd0)],'skillName':_0x385f33[_0xa3397d(0xd9)],'scope':_0x385f33[_0xa3397d(0xdc)],'appCode':_0x385f33['appCode'],'version':_0x385f33['version'],'status':_0x385f33['status'],'readonly':_0x385f33[_0xa3397d(0xd8)],'tags':_0x385f33[_0xa3397d(0xd2)],'dir':_0x385f33[_0xa3397d(0xd6)],'cacheDir':_0x385f33[_0xa3397d(0xc7)],'skillMdPath':_0x385f33['skillMdPath'],'metadataPath':_0x385f33[_0xa3397d(0xd7)],'linkedPaths':_0x385f33[_0xa3397d(0xda)],'contentHash':_0x385f33[_0xa3397d(0xde)],'treeHash':_0x385f33[_0xa3397d(0xdb)],'pulledAt':_0x385f33[_0xa3397d(0xcc)]};}
1
+ (function(_0x449d75,_0x22bb57){var _0x314542=a53_0x279f,_0x387c82=_0x449d75();while(!![]){try{var _0x10a4f3=-parseInt(_0x314542(0xe0))/0x1+parseInt(_0x314542(0xd5))/0x2*(-parseInt(_0x314542(0xdc))/0x3)+-parseInt(_0x314542(0xd9))/0x4*(-parseInt(_0x314542(0xe6))/0x5)+-parseInt(_0x314542(0xe9))/0x6+-parseInt(_0x314542(0xe5))/0x7+parseInt(_0x314542(0xe1))/0x8*(-parseInt(_0x314542(0xea))/0x9)+parseInt(_0x314542(0xda))/0xa;if(_0x10a4f3===_0x22bb57)break;else _0x387c82['push'](_0x387c82['shift']());}catch(_0x25d1bd){_0x387c82['push'](_0x387c82['shift']());}}}(a53_0x3b35,0x564cb));export function summarizeRuntimeSkill(_0x25f1d4){var _0x1e207c=a53_0x279f;return{'id':_0x25f1d4['id'],'skillCode':_0x25f1d4['skillCode'],'skillName':_0x25f1d4[_0x1e207c(0xe8)],'scope':_0x25f1d4[_0x1e207c(0xe7)],'version':_0x25f1d4[_0x1e207c(0xdf)],'readonly':_0x25f1d4[_0x1e207c(0xdd)]};}function a53_0x279f(_0x54c6bb,_0x46fc86){_0x54c6bb=_0x54c6bb-0xd5;var _0x3b3531=a53_0x3b35();var _0x279fc3=_0x3b3531[_0x54c6bb];return _0x279fc3;}function a53_0x3b35(){var _0x32bf94=['402krgior','readonly','contentHash','version','489177SdSqaK','1134520EZsxiQ','cacheDir','linkedPaths','skillCode','3836966DTZkVB','165DKZFfg','scope','skillName','2679144eamodu','36aGYjmo','6016fpmDav','treeHash','skillMdPath','dir','47100UrMUEB','24190790fBbasu','metadataPath'];a53_0x3b35=function(){return _0x32bf94;};return a53_0x3b35();}export function summarizeLocalRuntimeSkill(_0x19ccb0){var _0x5241b2=a53_0x279f;return{'id':_0x19ccb0['id'],'skillCode':_0x19ccb0[_0x5241b2(0xe4)],'skillName':_0x19ccb0[_0x5241b2(0xe8)],'scope':_0x19ccb0[_0x5241b2(0xe7)],'appCode':_0x19ccb0['appCode'],'version':_0x19ccb0[_0x5241b2(0xdf)],'status':_0x19ccb0['status'],'readonly':_0x19ccb0['readonly'],'tags':_0x19ccb0['tags'],'dir':_0x19ccb0[_0x5241b2(0xd8)],'cacheDir':_0x19ccb0[_0x5241b2(0xe2)],'skillMdPath':_0x19ccb0[_0x5241b2(0xd7)],'metadataPath':_0x19ccb0[_0x5241b2(0xdb)],'linkedPaths':_0x19ccb0[_0x5241b2(0xe3)],'contentHash':_0x19ccb0[_0x5241b2(0xde)],'treeHash':_0x19ccb0[_0x5241b2(0xd6)],'pulledAt':_0x19ccb0['pulledAt']};}
@@ -1 +1 @@
1
- const a54_0x55c273=a54_0x56c9;(function(_0x149c12,_0x5d8f9a){const _0x480482=a54_0x56c9,_0xaabe14=_0x149c12();while(!![]){try{const _0x272082=-parseInt(_0x480482(0xa4))/0x1+-parseInt(_0x480482(0x8b))/0x2*(parseInt(_0x480482(0xa6))/0x3)+parseInt(_0x480482(0x85))/0x4+-parseInt(_0x480482(0xa8))/0x5+-parseInt(_0x480482(0x91))/0x6+parseInt(_0x480482(0x89))/0x7+-parseInt(_0x480482(0xa1))/0x8*(-parseInt(_0x480482(0xa3))/0x9);if(_0x272082===_0x5d8f9a)break;else _0xaabe14['push'](_0xaabe14['shift']());}catch(_0x434c31){_0xaabe14['push'](_0xaabe14['shift']());}}}(a54_0x19d0,0xb9c44));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a54_0x55c273(0xa2),a54_0x55c273(0x9d),a54_0x55c273(0x9e)];function a54_0x56c9(_0x205f6e,_0x10d3ce){_0x205f6e=_0x205f6e-0x83;const _0x19d033=a54_0x19d0();let _0x56c9d6=_0x19d033[_0x205f6e];return _0x56c9d6;}export const DEFAULT_SKILL_TARGET=a54_0x55c273(0xaa);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE='references/runtime-contract.md';export const OUTPUT_CONTRACT_FILE=a54_0x55c273(0xa5);export function validateSkillName(_0x36f370){const _0xea9c2a=a54_0x55c273,_0x529c30=_0x36f370[_0xea9c2a(0x90)]();if(!SKILL_NAME_PATTERN[_0xea9c2a(0x9b)](_0x529c30))throw CliErrors['validation'](_0xea9c2a(0x9c)+_0x36f370+'.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.',_0xea9c2a(0x88));return _0x529c30;}export function normalizeSkillTemplateType(_0x230ba5){const _0x128842=a54_0x55c273,_0x3ec110=(_0x230ba5||_0x128842(0xa2))[_0x128842(0x90)]()||_0x128842(0xa2);if(SKILL_TYPES['includes'](_0x3ec110))return _0x3ec110;throw CliErrors['validation'](_0x128842(0xa9)+_0x230ba5,_0x128842(0x84)+SKILL_TYPES[_0x128842(0xa0)](',\x20')+'.');}export function renderSkillTemplate(_0x26dfc1){const _0x570603=a54_0x55c273,_0x51d0d9=validateSkillName(_0x26dfc1[_0x570603(0x97)]),_0x5d52eb=normalizeSkillTemplateType(_0x26dfc1[_0x570603(0x8e)]),_0x348174=_0x26dfc1['timestamp']??new Date()[_0x570603(0x8f)]();return{'skillName':_0x51d0d9,'type':_0x5d52eb,'files':[{'path':_0x570603(0x9f),'content':renderSkillMd(_0x51d0d9,_0x5d52eb,_0x348174)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x51d0d9,_0x5d52eb)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x51d0d9,_0x5d52eb)}]};}function a54_0x19d0(){const _0x47b945=['\x20的所有必读规则必须位于\x20SKILL.md\x20或\x20references/\x20内。\x0a\x0a##\x20必读文档\x0a\x0a-\x20[SKILL.md](../SKILL.md)\x0a-\x20[runtime-contract.md](runtime-contract.md)\x0a-\x20[output-contract.md](output-contract.md)\x0a\x0a##\x20主边界\x0a\x0a-\x20不得依赖\x20Skill\x20目录外的仓库文件、绝对路径、file\x20URL\x20或本机专属配置。\x0a-\x20文档中的缓存路径、安装路径、示例路径或排障路径不等于运行时包外依赖;只有明确要求读取、链接或执行包外内容时才属于自包含风险。\x0a-\x20如需承接仓库规范,必须把必要规则内化到本\x20Skill\x20包内的\x20references/\x20文件中。\x0a-\x20type=','\x0a\x0a##\x20展示规范\x0a\x0a【填写面向运营人员的展示字段、差异摘要、成功/失败状态和人工处理项;最终输出必须按\x20references/output-contract.md\x20的\x20status\x20/\x20mode\x20/\x20summary\x20/\x20errors\x20/\x20nextActions\x20返回,不能把\x20unknown、partial_success、failed\x20或\x20needs_manual_check\x20包装为\x20success。】\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败后的\x20checkpoint、重试条件、人工接管方式和避免重复写入的核对步骤】\x0a','Use\x20one\x20of:\x20','3753428aNXDWY','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','6873440qZnmUU','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','106joWIHE','1.\x20受控模板预览:【填写待维护内容、影响范围和预览方式】\x0a2.\x20用户确认:【填写确认信息和不可省略的人工判断点】\x0a3.\x20受控维护:【填写确认后的维护步骤和记录方式】\x0a4.\x20只读核对:【填写维护后的核对入口、差异和回滚/修正方式】','\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','type','toISOString','trim','2485116JFdfDl','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','---\x0aname:\x20','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','\x20的最终回复必须让运营人员能判断:是否执行、影响了什么、如何复核、失败后下一步做什么。\x0a\x0a##\x20状态枚举\x0a\x0astatus:\x20success\x20|\x20no_op\x20|\x20partial_success\x20|\x20blocked\x20|\x20failed\x20|\x20needs_manual_check\x0a\x0a-\x20success:动作已完成,且关键结果已核对。\x0a-\x20no_op:没有符合条件的对象或无需变更。\x0a-\x20partial_success:部分对象完成,未完成对象必须进入\x20errors\x20和\x20nextActions。\x0a-\x20blocked:缺少输入、权限、确认或平台能力,无法继续。\x0a-\x20failed:执行失败,必须说明失败阶段、错误和恢复方式。\x0a-\x20needs_manual_check:读回异常、状态未知或人工判断缺失。\x0a\x0aunknown、partial_success、failed、needs_manual_check\x20不能包装为\x20success。\x0a\x0a##\x20输出模式\x0a\x0amode:\x20dry_run\x20|\x20confirmed\x20|\x20read_only\x0a\x0a-\x20dry_run:只展示预览、影响范围和差异,不写入业务数据。\x0a-\x20confirmed:用户明确确认后的执行模式;写入后必须读回核对。\x0a-\x20read_only:只查询、汇总或核对,不触发写入。\x0a\x0a##\x20必填字段\x0a\x0a-\x20status\x0a-\x20mode\x0a-\x20summary\x0a-\x20scope\x0a-\x20changes\x0a-\x20verification\x0a-\x20warnings\x0a-\x20errors\x0a-\x20nextActions\x0a\x0a##\x20写入结果\x0a\x0a','skillName','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','\x0a##\x20返回契约\x0a\x0a最终输出必须遵守\x20[output-contract.md](output-contract.md)。本文件只补充运行态安全约束;展示字段、状态枚举、失败暴露和人工处理项以\x20output-contract.md\x20为准。\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败状态识别、checkpoint、重试和人工接管方式】\x0a\x0a##\x20禁止事项\x0a\x0a-\x20禁止链接或读取\x20Skill\x20目录外的\x20AGENTS.md、wiki、docs、脚本或个人路径作为运行时必读依赖。\x0a-\x20禁止把说明性的缓存路径、安装路径、示例路径或排障路径包装成运行时必读依赖。\x0a-\x20禁止在未确认影响范围时执行写入。\x0a-\x20禁止隐藏失败或把未知状态描述为成功。\x0a','test','Invalid\x20Skill\x20name:\x20','read','trainer','SKILL.md','join','13694408Qlvzwv','write','9cNUGck','1435687flMJif','references/output-contract.md','22521pcpHnD','\x0a\x0a##\x20内部要求\x0a\x0a执行前必须读取并遵守\x20[runtime-contract.md](references/runtime-contract.md)\x20和\x20[output-contract.md](references/output-contract.md)。\x0a\x0a##\x20使用边界\x0a\x0a【填写该\x20Skill\x20能做什么、不能做什么、适用业务范围和禁止扩大执行范围】\x0a\x0a##\x20输入门禁\x0a\x0a【填写必须具备的输入;缺失业务对象、执行范围、确认信息或权限上下文时必须停止】\x0a\x0a##\x20与现有能力集成\x0a\x0a【填写本\x20Skill\x20使用的\x20lovrabet\x20data、lovrabet\x20sql、lovrabet\x20bff\x20或\x20lovrabet\x20personal-bff\x20命令,以及包内\x20references/\x20中沉淀的运行态入口、脚本对接方式或人工操作边界。不得依赖\x20Skill\x20目录外文件、绝对路径或本机专属配置。】\x0a\x0a##\x20平台能力优先\x0a\x0a【填写本\x20Skill\x20优先使用的\x20Lovrabet\x20平台命令:lovrabet\x20data\x20/\x20lovrabet\x20sql\x20/\x20lovrabet\x20bff\x20/\x20lovrabet\x20personal-bff。本地脚本仅用于平台明确不覆盖的文件格式转换、静态校验、展示整理或第三方薄适配;不得用本地脚本替代平台命令承载业务写入、权限判断、状态机、审批提交或回滚。】\x0a\x0a##\x20第三方服务边界\x0a\x0a【填写是否调用第三方识别、生成、上传或行业服务;如涉及\x20API\x20Key、OAuth、Cookie、登录态或业务数据上传,必须说明由\x20Lovrabet\x20应用后台、BFF\x20或平台适配器统一配置。目标治理口径是\x20Skill\x20不读取、不分发、不保存明文凭证。详细凭证、额度、审计和审核发布规则写入\x20references/runtime-contract.md。】\x0a\x0a##\x20SOP\x20工作流\x0a\x0a','3117170ZwPvCD','Unsupported\x20Skill\x20type:\x20','.agents/skills'];a54_0x19d0=function(){return _0x47b945;};return a54_0x19d0();}function renderSkillMd(_0x3780aa,_0x586453,_0x54c07e){const _0x33a0b5=a54_0x55c273,_0x3f98fa=typeWorkflow(_0x586453);return _0x33a0b5(0x94)+_0x3780aa+_0x33a0b5(0x8d)+_0x586453+'\x0a\x20\x20created:\x20\x22'+_0x54c07e+_0x33a0b5(0x87)+_0x3780aa+_0x33a0b5(0xa7)+_0x3f98fa+'\x0a\x0a'+businessStateSection(_0x586453)+_0x33a0b5(0x83);}function renderRuntimeContract(_0x1b4087,_0x4b0b6b){const _0x416b71=a54_0x55c273,_0x323d29=_0x4b0b6b==='write'?_0x416b71(0x98):'';return _0x416b71(0x99)+_0x1b4087+_0x416b71(0xab)+_0x4b0b6b+'\x20只作为模板选择器,不替代业务权限、风险等级和用户确认。\x0a\x0a##\x20运行态入口\x0a\x0a【填写包内说明的运行态入口、可调用脚本或人工执行边界】\x0a\x0a##\x20凭证与登录态\x0a\x0a【填写本\x20Skill\x20依赖的第三方服务凭证和登录态治理方式。强烈建议通过\x20Lovrabet\x20应用后台或平台服务端适配器做平台托管配置;开发先行阶段如存在临时明文凭证,应标注后续治理计划、适用环境和额度边界,并避免进入长期交付内容。】\x0a\x0a##\x20第三方候选资产\x0a\x0a【填写第三方生成类结果的消费边界。生成类结果仅作为候选素材;涉及商品图、客户资料、Excel\x20或业务文件上传时,必须声明授权、额度、审计、失败降级和人工审核/业务\x20BFF\x20校验后的发布边界。】\x0a\x0a##\x20预览\x20/\x20写入\x20/\x20核对差异\x0a\x0a【填写预览、确认、正式执行和只读核对的顺序】\x0a\x0a'+_0x323d29+_0x416b71(0x9a);}function renderOutputContract(_0x54d158,_0x1ba552){const _0x48b97e=a54_0x55c273,_0x3a6e1c=_0x1ba552===_0x48b97e(0xa2)?'write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。':_0x1ba552+_0x48b97e(0x95);return'#\x20Output\x20Contract\x0a\x0a'+_0x54d158+_0x48b97e(0x96)+_0x3a6e1c+_0x48b97e(0x93);}function typeWorkflow(_0x18580e){const _0x12c452=a54_0x55c273;if(_0x18580e===_0x12c452(0x9d))return _0x12c452(0x8a);if(_0x18580e===_0x12c452(0x9e))return _0x12c452(0x8c);return _0x12c452(0x92);}function businessStateSection(_0x2216b9){const _0x204510=a54_0x55c273;if(_0x2216b9!==_0x204510(0xa2))return'';return _0x204510(0x86);}
1
+ const a54_0xcd42fc=a54_0x485c;(function(_0x51279e,_0x36df75){const _0x86802=a54_0x485c,_0x2e8f67=_0x51279e();while(!![]){try{const _0x261144=-parseInt(_0x86802(0x180))/0x1+-parseInt(_0x86802(0x178))/0x2*(parseInt(_0x86802(0x179))/0x3)+parseInt(_0x86802(0x17c))/0x4*(-parseInt(_0x86802(0x190))/0x5)+parseInt(_0x86802(0x170))/0x6*(parseInt(_0x86802(0x188))/0x7)+parseInt(_0x86802(0x174))/0x8*(parseInt(_0x86802(0x17f))/0x9)+parseInt(_0x86802(0x18a))/0xa*(-parseInt(_0x86802(0x16f))/0xb)+parseInt(_0x86802(0x181))/0xc;if(_0x261144===_0x36df75)break;else _0x2e8f67['push'](_0x2e8f67['shift']());}catch(_0x4f4ab1){_0x2e8f67['push'](_0x2e8f67['shift']());}}}(a54_0x3190,0x1d915));import{CliErrors}from'../../errors.js';function a54_0x485c(_0x6f645d,_0x15bae4){_0x6f645d=_0x6f645d-0x16d;const _0x319086=a54_0x3190();let _0x485c2a=_0x319086[_0x6f645d];return _0x485c2a;}export const SKILL_TYPES=[a54_0xcd42fc(0x16e),a54_0xcd42fc(0x18b),a54_0xcd42fc(0x172)];export const DEFAULT_SKILL_TARGET=a54_0xcd42fc(0x173);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a54_0xcd42fc(0x192);export const OUTPUT_CONTRACT_FILE=a54_0xcd42fc(0x175);export function validateSkillName(_0x543032){const _0x5becf1=a54_0xcd42fc,_0x3ee7e5=_0x543032['trim']();if(!SKILL_NAME_PATTERN[_0x5becf1(0x184)](_0x3ee7e5))throw CliErrors[_0x5becf1(0x183)]('Invalid\x20Skill\x20name:\x20'+_0x543032+_0x5becf1(0x191),_0x5becf1(0x18c));return _0x3ee7e5;}export function normalizeSkillTemplateType(_0xedbff4){const _0x349c86=a54_0xcd42fc,_0x34e41d=(_0xedbff4||_0x349c86(0x16e))[_0x349c86(0x185)]()||'write';if(SKILL_TYPES[_0x349c86(0x18d)](_0x34e41d))return _0x34e41d;throw CliErrors[_0x349c86(0x183)](_0x349c86(0x186)+_0xedbff4,_0x349c86(0x171)+SKILL_TYPES[_0x349c86(0x18e)](',\x20')+'.');}export function renderSkillTemplate(_0x5558c8){const _0x2f6c21=a54_0xcd42fc,_0xb4217=validateSkillName(_0x5558c8['skillName']),_0x25b9a4=normalizeSkillTemplateType(_0x5558c8[_0x2f6c21(0x195)]),_0x308c58=_0x5558c8[_0x2f6c21(0x182)]??new Date()['toISOString']();return{'skillName':_0xb4217,'type':_0x25b9a4,'files':[{'path':_0x2f6c21(0x194),'content':renderSkillMd(_0xb4217,_0x25b9a4,_0x308c58)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0xb4217,_0x25b9a4)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0xb4217,_0x25b9a4)}]};}function renderSkillMd(_0x1bc627,_0x5bbe04,_0x5438c8){const _0x21e2b3=a54_0xcd42fc,_0x52ca2c=typeWorkflow(_0x5bbe04);return'---\x0aname:\x20'+_0x1bc627+'\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20'+_0x5bbe04+_0x21e2b3(0x16d)+_0x5438c8+_0x21e2b3(0x177)+_0x1bc627+_0x21e2b3(0x176)+_0x52ca2c+'\x0a\x0a'+businessStateSection(_0x5bbe04)+_0x21e2b3(0x17b);}function renderRuntimeContract(_0x57dc7,_0x26ace1){const _0x530529=a54_0xcd42fc,_0x16b9ad=_0x26ace1==='write'?'##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a':'';return _0x530529(0x187)+_0x57dc7+'\x20的所有必读规则必须位于\x20SKILL.md\x20或\x20references/\x20内。\x0a\x0a##\x20必读文档\x0a\x0a-\x20[SKILL.md](../SKILL.md)\x0a-\x20[runtime-contract.md](runtime-contract.md)\x0a-\x20[output-contract.md](output-contract.md)\x0a\x0a##\x20主边界\x0a\x0a-\x20不得依赖\x20Skill\x20目录外的仓库文件、绝对路径、file\x20URL\x20或本机专属配置。\x0a-\x20文档中的缓存路径、安装路径、示例路径或排障路径不等于运行时包外依赖;只有明确要求读取、链接或执行包外内容时才属于自包含风险。\x0a-\x20如需承接仓库规范,必须把必要规则内化到本\x20Skill\x20包内的\x20references/\x20文件中。\x0a-\x20type='+_0x26ace1+_0x530529(0x17a)+_0x16b9ad+'\x0a##\x20返回契约\x0a\x0a最终输出必须遵守\x20[output-contract.md](output-contract.md)。本文件只补充运行态安全约束;展示字段、状态枚举、失败暴露和人工处理项以\x20output-contract.md\x20为准。\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败状态识别、checkpoint、重试和人工接管方式】\x0a\x0a##\x20禁止事项\x0a\x0a-\x20禁止链接或读取\x20Skill\x20目录外的\x20AGENTS.md、wiki、docs、脚本或个人路径作为运行时必读依赖。\x0a-\x20禁止把说明性的缓存路径、安装路径、示例路径或排障路径包装成运行时必读依赖。\x0a-\x20禁止在未确认影响范围时执行写入。\x0a-\x20禁止隐藏失败或把未知状态描述为成功。\x0a';}function a54_0x3190(){const _0x3c58ca=['4899iJqmtA','\x20只作为模板选择器,不替代业务权限、风险等级和用户确认。\x0a\x0a##\x20运行态入口\x0a\x0a【填写包内说明的运行态入口、可调用脚本或人工执行边界】\x0a\x0a##\x20凭证与登录态\x0a\x0a【填写本\x20Skill\x20依赖的第三方服务凭证和登录态治理方式。强烈建议通过\x20Lovrabet\x20应用后台或平台服务端适配器做平台托管配置;开发先行阶段如存在临时明文凭证,应标注后续治理计划、适用环境和额度边界,并避免进入长期交付内容。】\x0a\x0a##\x20第三方候选资产\x0a\x0a【填写第三方生成类结果的消费边界。生成类结果仅作为候选素材;涉及商品图、客户资料、Excel\x20或业务文件上传时,必须声明授权、额度、审计、失败降级和人工审核/业务\x20BFF\x20校验后的发布边界。】\x0a\x0a##\x20预览\x20/\x20写入\x20/\x20核对差异\x0a\x0a【填写预览、确认、正式执行和只读核对的顺序】\x0a\x0a','\x0a\x0a##\x20展示规范\x0a\x0a【填写面向运营人员的展示字段、差异摘要、成功/失败状态和人工处理项;最终输出必须按\x20references/output-contract.md\x20的\x20status\x20/\x20mode\x20/\x20summary\x20/\x20errors\x20/\x20nextActions\x20返回,不能把\x20unknown、partial_success、failed\x20或\x20needs_manual_check\x20包装为\x20success。】\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败后的\x20checkpoint、重试条件、人工接管方式和避免重复写入的核对步骤】\x0a','12CYdHHZ','1.\x20受控模板预览:【填写待维护内容、影响范围和预览方式】\x0a2.\x20用户确认:【填写确认信息和不可省略的人工判断点】\x0a3.\x20受控维护:【填写确认后的维护步骤和记录方式】\x0a4.\x20只读核对:【填写维护后的核对入口、差异和回滚/修正方式】','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','369AVpAPB','172376aQjIge','6569856bREeAv','timestamp','validation','test','trim','Unsupported\x20Skill\x20type:\x20','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','32179RXqIpI','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','54440lBXoQv','read','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','includes','join','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','150115vPVEyR','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','references/runtime-contract.md','#\x20Output\x20Contract\x0a\x0a','SKILL.md','type','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','\x0a\x20\x20created:\x20\x22','write','44GPbOng','54CbeSLQ','Use\x20one\x20of:\x20','trainer','.agents/skills','832JSXMsQ','references/output-contract.md','\x0a\x0a##\x20内部要求\x0a\x0a执行前必须读取并遵守\x20[runtime-contract.md](references/runtime-contract.md)\x20和\x20[output-contract.md](references/output-contract.md)。\x0a\x0a##\x20使用边界\x0a\x0a【填写该\x20Skill\x20能做什么、不能做什么、适用业务范围和禁止扩大执行范围】\x0a\x0a##\x20输入门禁\x0a\x0a【填写必须具备的输入;缺失业务对象、执行范围、确认信息或权限上下文时必须停止】\x0a\x0a##\x20与现有能力集成\x0a\x0a【填写本\x20Skill\x20使用的\x20lovrabet\x20data、lovrabet\x20sql、lovrabet\x20bff\x20或\x20lovrabet\x20personal-bff\x20命令,以及包内\x20references/\x20中沉淀的运行态入口、脚本对接方式或人工操作边界。不得依赖\x20Skill\x20目录外文件、绝对路径或本机专属配置。】\x0a\x0a##\x20平台能力优先\x0a\x0a【填写本\x20Skill\x20优先使用的\x20Lovrabet\x20平台命令:lovrabet\x20data\x20/\x20lovrabet\x20sql\x20/\x20lovrabet\x20bff\x20/\x20lovrabet\x20personal-bff。本地脚本仅用于平台明确不覆盖的文件格式转换、静态校验、展示整理或第三方薄适配;不得用本地脚本替代平台命令承载业务写入、权限判断、状态机、审批提交或回滚。】\x0a\x0a##\x20第三方服务边界\x0a\x0a【填写是否调用第三方识别、生成、上传或行业服务;如涉及\x20API\x20Key、OAuth、Cookie、登录态或业务数据上传,必须说明由\x20Lovrabet\x20应用后台、BFF\x20或平台适配器统一配置。目标治理口径是\x20Skill\x20不读取、不分发、不保存明文凭证。详细凭证、额度、审计和审核发布规则写入\x20references/runtime-contract.md。】\x0a\x0a##\x20SOP\x20工作流\x0a\x0a','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','230XEXYKn'];a54_0x3190=function(){return _0x3c58ca;};return a54_0x3190();}function renderOutputContract(_0x13d3a0,_0x2c0a92){const _0x3b02e3=a54_0xcd42fc,_0x240e7b=_0x2c0a92===_0x3b02e3(0x16e)?_0x3b02e3(0x18f):_0x2c0a92+'\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。';return _0x3b02e3(0x193)+_0x13d3a0+'\x20的最终回复必须让运营人员能判断:是否执行、影响了什么、如何复核、失败后下一步做什么。\x0a\x0a##\x20状态枚举\x0a\x0astatus:\x20success\x20|\x20no_op\x20|\x20partial_success\x20|\x20blocked\x20|\x20failed\x20|\x20needs_manual_check\x0a\x0a-\x20success:动作已完成,且关键结果已核对。\x0a-\x20no_op:没有符合条件的对象或无需变更。\x0a-\x20partial_success:部分对象完成,未完成对象必须进入\x20errors\x20和\x20nextActions。\x0a-\x20blocked:缺少输入、权限、确认或平台能力,无法继续。\x0a-\x20failed:执行失败,必须说明失败阶段、错误和恢复方式。\x0a-\x20needs_manual_check:读回异常、状态未知或人工判断缺失。\x0a\x0aunknown、partial_success、failed、needs_manual_check\x20不能包装为\x20success。\x0a\x0a##\x20输出模式\x0a\x0amode:\x20dry_run\x20|\x20confirmed\x20|\x20read_only\x0a\x0a-\x20dry_run:只展示预览、影响范围和差异,不写入业务数据。\x0a-\x20confirmed:用户明确确认后的执行模式;写入后必须读回核对。\x0a-\x20read_only:只查询、汇总或核对,不触发写入。\x0a\x0a##\x20必填字段\x0a\x0a-\x20status\x0a-\x20mode\x0a-\x20summary\x0a-\x20scope\x0a-\x20changes\x0a-\x20verification\x0a-\x20warnings\x0a-\x20errors\x0a-\x20nextActions\x0a\x0a##\x20写入结果\x0a\x0a'+_0x240e7b+'\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a';}function typeWorkflow(_0x482cdd){const _0x347c35=a54_0xcd42fc;if(_0x482cdd===_0x347c35(0x18b))return _0x347c35(0x189);if(_0x482cdd===_0x347c35(0x172))return _0x347c35(0x17d);return _0x347c35(0x196);}function businessStateSection(_0x20abe7){const _0x299db2=a54_0xcd42fc;if(_0x20abe7!=='write')return'';return _0x299db2(0x17e);}