@lovrabet/lovrabet-cli 2.1.11-beta.2 → 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 -0
  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_0x21d0d3=a40_0x25f8;(function(_0x3b9d3e,_0x3d0c7c){const _0x4c3a5f=a40_0x25f8,_0x18dd96=_0x3b9d3e();while(!![]){try{const _0x545fec=parseInt(_0x4c3a5f(0x17c))/0x1+-parseInt(_0x4c3a5f(0x18f))/0x2*(-parseInt(_0x4c3a5f(0x145))/0x3)+-parseInt(_0x4c3a5f(0x177))/0x4*(parseInt(_0x4c3a5f(0x157))/0x5)+parseInt(_0x4c3a5f(0x152))/0x6+-parseInt(_0x4c3a5f(0x197))/0x7*(parseInt(_0x4c3a5f(0x151))/0x8)+-parseInt(_0x4c3a5f(0x143))/0x9*(-parseInt(_0x4c3a5f(0x14e))/0xa)+parseInt(_0x4c3a5f(0x173))/0xb*(parseInt(_0x4c3a5f(0x176))/0xc);if(_0x545fec===_0x3d0c7c)break;else _0x18dd96['push'](_0x18dd96['shift']());}catch(_0x3e5836){_0x18dd96['push'](_0x18dd96['shift']());}}}(a40_0x43bf,0x7a946));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';function a40_0x25f8(_0x443e76,_0x425d11){_0x443e76=_0x443e76-0x140;const _0x43bf71=a40_0x43bf();let _0x25f89a=_0x43bf71[_0x443e76];return _0x25f89a;}export const SERVICE_REGISTRY_SCHEMA_VERSION=0x1;export const SERVICE_REGISTRY_FILE_NAME=a40_0x21d0d3(0x169);export function getServiceRegistryPath(_0x682442={}){const _0x18e0ed=a40_0x21d0d3;return resolve(_0x682442['homeDir']??homedir(),PRODUCT_CONFIG[_0x18e0ed(0x179)],SERVICE_REGISTRY_FILE_NAME);}export function emptyServiceRegistry(){return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'services':[]};}export function readServiceRegistry(_0x4942c5={}){const _0x21307c=a40_0x21d0d3,_0x1ab0b2=getServiceRegistryPath(_0x4942c5);if(!existsSync(_0x1ab0b2))return emptyServiceRegistry();try{const _0x54533c=readFileSync(_0x1ab0b2,_0x21307c(0x163));if(!_0x54533c['trim']())return emptyServiceRegistry();const _0x409267=JSON[_0x21307c(0x17e)](_0x54533c);if(_0x409267[_0x21307c(0x16f)]!==SERVICE_REGISTRY_SCHEMA_VERSION)throw CliErrors[_0x21307c(0x191)](_0x21307c(0x15b)+String(_0x409267[_0x21307c(0x16f)]),_0x21307c(0x178)+_0x1ab0b2+'.');if(!Array[_0x21307c(0x14c)](_0x409267[_0x21307c(0x190)]))return emptyServiceRegistry();return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x409267[_0x21307c(0x14f)],'services':_0x409267[_0x21307c(0x190)]};}catch(_0x2906b5){if(_0x2906b5 instanceof Error&&_0x2906b5[_0x21307c(0x15e)]===_0x21307c(0x16c))throw _0x2906b5;throw CliErrors[_0x21307c(0x191)](_0x21307c(0x160)+_0x1ab0b2,_0x21307c(0x155));}}export function writeServiceRegistry(_0x567192,_0x17a84b={}){const _0x4863b3=a40_0x21d0d3,_0x4ae8ea=getServiceRegistryPath(_0x17a84b),_0x1663ab=dirname(_0x4ae8ea);!existsSync(_0x1663ab)&&mkdirSync(_0x1663ab,{'recursive':!![]});const _0x5480b7=_0x4ae8ea+_0x4863b3(0x14b);try{writeFileSync(_0x5480b7,JSON[_0x4863b3(0x153)](_0x567192,null,0x2)+'\x0a',{'encoding':_0x4863b3(0x163),'mode':0x180}),renameSync(_0x5480b7,_0x4ae8ea);}catch(_0x2c3699){try{unlinkSync(_0x5480b7);}catch{}if(_0x2c3699?.[_0x4863b3(0x189)]===_0x4863b3(0x149))throw CliErrors[_0x4863b3(0x191)](_0x4863b3(0x17d)+_0x4ae8ea);throw _0x2c3699;}return _0x4ae8ea;}export function loadServiceManifestFromFile(_0x16f37c){const _0x3a1846=a40_0x21d0d3,_0x1b0782=resolve(_0x16f37c);if(!existsSync(_0x1b0782))throw CliErrors[_0x3a1846(0x191)](_0x3a1846(0x185)+_0x16f37c);let _0x5ab574;const _0x234721=readFileSync(_0x1b0782,_0x3a1846(0x163));try{_0x5ab574=JSON[_0x3a1846(0x17e)](_0x234721);}catch{throw CliErrors[_0x3a1846(0x191)](_0x3a1846(0x162)+_0x16f37c,_0x3a1846(0x15f));}const _0xbff17d=sha256(_0x234721),_0x5ef06d=extractLoadedServiceManifests(_0x5ab574,_0xbff17d),_0x51fb81=aggregateValidationReports(_0x5ef06d),_0x30e9e4=_0x5ef06d[0x0];return{'filePath':_0x1b0782,'hash':_0xbff17d,'kind':isServiceRegistryLike(_0x5ab574)?_0x3a1846(0x188):'manifest','manifest':_0x30e9e4?.['manifest']??_0x5ab574,'report':_0x51fb81,'normalizedManifest':_0x5ef06d[_0x3a1846(0x140)]===0x1?_0x30e9e4?.[_0x3a1846(0x161)]:undefined,'manifests':_0x5ef06d};}export function importServiceManifest(_0x24f834,_0x57d955={}){const _0x1a6701=a40_0x21d0d3,_0x323a6d=loadServiceManifestFromFile(_0x24f834);if(!_0x323a6d[_0x1a6701(0x174)]['ok'])throw CliErrors[_0x1a6701(0x191)](formatValidationFailure(_0x323a6d[_0x1a6701(0x174)]),_0x1a6701(0x15d));if(_0x323a6d[_0x1a6701(0x17a)]['length']===0x0)throw CliErrors[_0x1a6701(0x191)](_0x1a6701(0x147),_0x1a6701(0x172));const _0x5e19f5=readServiceRegistry(_0x57d955),_0x399dc3=(_0x57d955[_0x1a6701(0x194)]??(()=>new Date()))()[_0x1a6701(0x18d)](),_0x21378f=[];let _0x30a9e3=0x0,_0x2ebf9e=0x0;for(const _0x14c9c0 of _0x323a6d[_0x1a6701(0x17a)]){if(!_0x14c9c0[_0x1a6701(0x161)])continue;const _0x2a810d=_0x14c9c0[_0x1a6701(0x161)]['service'][_0x1a6701(0x189)],_0xc93dd1={'serviceCode':_0x2a810d,'version':_0x14c9c0[_0x1a6701(0x161)][_0x1a6701(0x181)],'importedAt':_0x399dc3,'source':{'type':_0x1a6701(0x16d),'path':_0x323a6d[_0x1a6701(0x195)],'hash':_0x14c9c0[_0x1a6701(0x15a)]},'manifest':_0x14c9c0[_0x1a6701(0x184)],'normalizedManifest':_0x14c9c0[_0x1a6701(0x161)]},_0x3757ba=_0x5e19f5[_0x1a6701(0x190)]['findIndex'](_0x520145=>_0x520145[_0x1a6701(0x182)]===_0x2a810d);_0x3757ba>=0x0?(_0x5e19f5[_0x1a6701(0x190)][_0x3757ba]=_0xc93dd1,_0x2ebf9e++):(_0x5e19f5[_0x1a6701(0x190)][_0x1a6701(0x166)](_0xc93dd1),_0x30a9e3++),_0x21378f[_0x1a6701(0x166)](_0xc93dd1);}_0x5e19f5[_0x1a6701(0x190)][_0x1a6701(0x18c)]((_0x113e22,_0x5861d9)=>_0x113e22[_0x1a6701(0x182)]['localeCompare'](_0x5861d9[_0x1a6701(0x182)])),_0x5e19f5['updatedAt']=_0x399dc3;const _0x4eb3cb=writeServiceRegistry(_0x5e19f5,_0x57d955);return{'registryPath':_0x4eb3cb,'entry':_0x21378f[0x0],'replaced':_0x21378f[_0x1a6701(0x140)]===0x1?_0x2ebf9e===0x1:_0x2ebf9e>0x0,'entries':_0x21378f,'imported':_0x30a9e3,'updated':_0x2ebf9e,'serviceCount':_0x5e19f5[_0x1a6701(0x190)][_0x1a6701(0x140)]};}export function exportServiceManifest(_0x2b3a15,_0x46591a,_0x5cea33={}){const _0x1fb5f3=a40_0x21d0d3,_0x36fcc5=getServiceRegistryPath(_0x5cea33),_0xdece79=getLocalServiceEntry(_0x2b3a15,_0x5cea33);if(!_0xdece79)throw CliErrors[_0x1fb5f3(0x191)]('Local\x20service\x20not\x20found:\x20'+_0x2b3a15,'Run\x20lovrabet\x20service\x20list\x20to\x20see\x20imported\x20services.');const _0x5bb978=resolve(_0x46591a),_0x361262=dirname(_0x5bb978);return!existsSync(_0x361262)&&mkdirSync(_0x361262,{'recursive':!![]}),writeFileSync(_0x5bb978,JSON['stringify'](_0xdece79['manifest'],null,0x2)+'\x0a',{'encoding':_0x1fb5f3(0x163),'mode':0x180}),{'registryPath':_0x36fcc5,'filePath':_0x5bb978,'entry':_0xdece79};}export function removeServiceManifest(_0x27589a,_0x3c022d={}){const _0x4a0d69=a40_0x21d0d3,_0x7baf8b=readServiceRegistry(_0x3c022d),_0x37fd64=_0x27589a[_0x4a0d69(0x171)](),_0x1483a8=_0x7baf8b[_0x4a0d69(0x190)][_0x4a0d69(0x183)](_0x1dddcd=>_0x1dddcd[_0x4a0d69(0x182)]===_0x37fd64);if(_0x1483a8<0x0)throw CliErrors[_0x4a0d69(0x191)](_0x4a0d69(0x18e)+_0x37fd64,'Run\x20lovrabet\x20service\x20list\x20to\x20see\x20imported\x20services.');const [_0x813679]=_0x7baf8b[_0x4a0d69(0x190)][_0x4a0d69(0x156)](_0x1483a8,0x1),_0x49d0f8=(_0x3c022d[_0x4a0d69(0x194)]??(()=>new Date()))()[_0x4a0d69(0x18d)]();_0x7baf8b[_0x4a0d69(0x14f)]=_0x49d0f8;const _0x2602c5=writeServiceRegistry(_0x7baf8b,_0x3c022d);return{'registryPath':_0x2602c5,'entry':_0x813679,'serviceCount':_0x7baf8b[_0x4a0d69(0x190)]['length']};}export function listLocalServices(_0x5211c0={}){const _0x1d645f=a40_0x21d0d3;return readServiceRegistry(_0x5211c0)[_0x1d645f(0x190)];}export function getLocalServiceEntry(_0x217696,_0x184d72={}){const _0xd5155f=a40_0x21d0d3;return readServiceRegistry(_0x184d72)[_0xd5155f(0x190)]['find'](_0x35cde7=>_0x35cde7[_0xd5155f(0x182)]===_0x217696[_0xd5155f(0x171)]());}export function listLocalServiceTrees(_0x53cd55={}){const _0x1ac4bf=a40_0x21d0d3;return readServiceRegistry(_0x53cd55)[_0x1ac4bf(0x190)][_0x1ac4bf(0x16e)](_0x549d11=>_0x549d11[_0x1ac4bf(0x161)]);}export function inspectServiceRegistry(_0x3a5b46={}){const _0x2a8ccf=a40_0x21d0d3,_0x4128ce=getServiceRegistryPath(_0x3a5b46);if(!existsSync(_0x4128ce))return emptyServiceRegistryInspection(_0x4128ce,_0x2a8ccf(0x168),![]);try{const _0x4bfd15=readFileSync(_0x4128ce,_0x2a8ccf(0x163));if(!_0x4bfd15[_0x2a8ccf(0x171)]())return emptyServiceRegistryInspection(_0x4128ce,_0x2a8ccf(0x164),!![]);const _0x3fb773=JSON['parse'](_0x4bfd15);if(_0x3fb773[_0x2a8ccf(0x16f)]!==SERVICE_REGISTRY_SCHEMA_VERSION)return{...emptyServiceRegistryInspection(_0x4128ce,_0x2a8ccf(0x170),!![]),'schemaVersion':_0x3fb773[_0x2a8ccf(0x16f)],'message':_0x2a8ccf(0x187)+String(_0x3fb773[_0x2a8ccf(0x16f)])};if(!Array['isArray'](_0x3fb773[_0x2a8ccf(0x190)]))return{...emptyServiceRegistryInspection(_0x4128ce,_0x2a8ccf(0x170),!![]),'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x3fb773[_0x2a8ccf(0x14f)],'message':_0x2a8ccf(0x17b)};const _0x38339a=_0x3fb773[_0x2a8ccf(0x190)][_0x2a8ccf(0x16e)](summarizeLocalServiceEntry);return{'registryPath':_0x4128ce,'exists':!![],'status':'ok','schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x3fb773[_0x2a8ccf(0x14f)],'serviceCount':_0x38339a[_0x2a8ccf(0x140)],'commandCount':_0x38339a[_0x2a8ccf(0x158)]((_0x2e0ba7,_0x2055f4)=>_0x2e0ba7+_0x2055f4['commandCount'],0x0),'services':_0x38339a};}catch(_0x2c1734){return{...emptyServiceRegistryInspection(_0x4128ce,_0x2a8ccf(0x170),!![]),'message':_0x2c1734 instanceof Error?_0x2c1734['message']:String(_0x2c1734)};}}export function formatValidationFailure(_0x276f07){const _0x4f973d=a40_0x21d0d3,_0x246df2=_0x276f07['errors'][_0x4f973d(0x16e)](_0x2b18d0=>_0x2b18d0[_0x4f973d(0x14a)]+':\x20'+_0x2b18d0['message']);return _0x4f973d(0x18b)+_0x246df2[_0x4f973d(0x159)]('\x0a');}function extractLoadedServiceManifests(_0xc6e8,_0x30b194){const _0x39e510=a40_0x21d0d3;if(!isServiceRegistryLike(_0xc6e8)){const _0x1eaf63=_0xc6e8,_0x4b8b00=validateServiceTreeManifest(_0x1eaf63);return[{'manifest':_0x1eaf63,'report':_0x4b8b00,'normalizedManifest':_0x4b8b00['ok']?normalizeServiceTreeManifest(_0x1eaf63):undefined,'sourceHash':_0x30b194}];}return _0xc6e8[_0x39e510(0x190)][_0x39e510(0x16e)]((_0x55f92b,_0x30f165)=>{const _0x37147=_0x39e510,_0x42e855=isObjectRecord(_0x55f92b)?_0x55f92b[_0x37147(0x184)]:undefined,_0x2359d6=validateServiceTreeManifest(_0x42e855),_0xd21ff6=isObjectRecord(_0x55f92b)&&typeof _0x55f92b[_0x37147(0x182)]===_0x37147(0x16a)?_0x55f92b[_0x37147(0x182)]:undefined;return{'manifest':_0x42e855,'report':_0x2359d6,'normalizedManifest':_0x2359d6['ok']?normalizeServiceTreeManifest(_0x42e855):undefined,'sourceHash':sha256(JSON[_0x37147(0x153)](_0x42e855,null,0x2)+'\x0a'),'registryIndex':_0x30f165,'registryServiceCode':_0xd21ff6};});}function aggregateValidationReports(_0x2069f6){const _0x3a6d19=a40_0x21d0d3,_0x2e7333=_0x2069f6['flatMap'](_0x437406=>_0x437406['registryIndex']===undefined?_0x437406[_0x3a6d19(0x174)][_0x3a6d19(0x144)]:_0x437406[_0x3a6d19(0x174)]['errors']['map'](_0x4ea652=>({..._0x4ea652,'path':prefixRegistryIssuePath(_0x437406[_0x3a6d19(0x142)],_0x4ea652[_0x3a6d19(0x14a)])}))),_0x406fc5=_0x2069f6[_0x3a6d19(0x154)](_0x330428=>_0x330428[_0x3a6d19(0x142)]===undefined?_0x330428[_0x3a6d19(0x174)][_0x3a6d19(0x18a)]:_0x330428[_0x3a6d19(0x174)][_0x3a6d19(0x18a)][_0x3a6d19(0x16e)](_0x3a55a8=>({..._0x3a55a8,'path':prefixRegistryIssuePath(_0x330428[_0x3a6d19(0x142)],_0x3a55a8[_0x3a6d19(0x14a)])})));return{'ok':_0x2e7333[_0x3a6d19(0x140)]===0x0,'errors':_0x2e7333,'warnings':_0x406fc5};}function prefixRegistryIssuePath(_0x5f083c,_0x27dc17){const _0x29e86b=a40_0x21d0d3;if(_0x27dc17==='$')return _0x29e86b(0x180)+_0x5f083c+_0x29e86b(0x141);if(_0x27dc17[_0x29e86b(0x146)]('$.'))return _0x29e86b(0x180)+_0x5f083c+_0x29e86b(0x141)+_0x27dc17[_0x29e86b(0x192)](0x1);if(_0x27dc17[_0x29e86b(0x146)]('$['))return _0x29e86b(0x180)+_0x5f083c+_0x29e86b(0x141)+_0x27dc17[_0x29e86b(0x192)](0x1);return _0x29e86b(0x180)+_0x5f083c+'].manifest.'+_0x27dc17;}function isServiceRegistryLike(_0x23db7f){const _0xb04978=a40_0x21d0d3;return isObjectRecord(_0x23db7f)&&_0x23db7f[_0xb04978(0x16f)]===SERVICE_REGISTRY_SCHEMA_VERSION&&Array['isArray'](_0x23db7f[_0xb04978(0x190)]);}function isObjectRecord(_0xba3756){const _0x2ab115=a40_0x21d0d3;return Boolean(_0xba3756)&&typeof _0xba3756===_0x2ab115(0x196)&&!Array[_0x2ab115(0x14c)](_0xba3756);}function emptyServiceRegistryInspection(_0x4e8fe8,_0x59f7f6,_0x2e41f8){return{'registryPath':_0x4e8fe8,'exists':_0x2e41f8,'status':_0x59f7f6,'serviceCount':0x0,'commandCount':0x0,'services':[]};}function a40_0x43bf(){const _0x477ab0=['object','5180322VUCuJp','length','].manifest','registryIndex','18kEEMAE','errors','3YYAJDj','startsWith','Service\x20registry\x20has\x20no\x20services\x20to\x20import.','service','ENOENT','path','.tmp','isArray','hex','861860EnzUSz','updatedAt','sha256','8gzIXJe','2544708oKFJSG','stringify','flatMap','Fix\x20the\x20JSON\x20file\x20or\x20move\x20it\x20aside\x20and\x20import\x20services\x20again.','splice','235fgrrzH','reduce','join','sourceHash','Unsupported\x20service\x20registry\x20schemaVersion:\x20','target','Fix\x20the\x20service\x20manifest\x20and\x20run\x20service\x20validate\x20again.','name','Fix\x20the\x20JSON\x20syntax\x20and\x20run\x20service\x20validate\x20again.','Invalid\x20service\x20registry\x20JSON:\x20','normalizedManifest','Invalid\x20service\x20manifest\x20JSON:\x20','utf8','empty','risk','push','importedAt','missing','service.json','string','source','CliError','file','map','schemaVersion','invalid','trim','Add\x20at\x20least\x20one\x20service\x20manifest,\x20then\x20run\x20service\x20import\x20again.','75669QiidYt','report','cliPath','288tPJodz','64892LoWVna','Remove\x20or\x20migrate\x20','homeDirName','manifests','services\x20must\x20be\x20an\x20array','916654IwwnHC','Cannot\x20write\x20service\x20registry:\x20','parse','kind','$.services[','version','serviceCode','findIndex','manifest','Service\x20manifest\x20file\x20not\x20found:\x20','update','Unsupported\x20schemaVersion:\x20','registry','code','warnings','Service\x20manifest\x20validation\x20failed:\x0a','sort','toISOString','Local\x20service\x20not\x20found:\x20','652746wjaTVC','services','validation','slice','description','now','filePath'];a40_0x43bf=function(){return _0x477ab0;};return a40_0x43bf();}function summarizeLocalServiceEntry(_0x4a7400){const _0x4e0660=a40_0x21d0d3,_0x3c33b7=_0x4a7400[_0x4e0660(0x161)],_0x401884=_0x3c33b7['commands'][_0x4e0660(0x16e)](_0x3c2743=>({'path':_0x3c2743[_0x4e0660(0x175)],'description':_0x3c2743[_0x4e0660(0x193)],'risk':_0x3c2743[_0x4e0660(0x165)],'targetKind':_0x3c2743[_0x4e0660(0x15c)][_0x4e0660(0x17f)],'targetCommand':_0x3c2743[_0x4e0660(0x15c)]['command']}));return{'serviceCode':_0x4a7400['serviceCode'],'name':_0x3c33b7[_0x4e0660(0x148)][_0x4e0660(0x15e)],'description':_0x3c33b7[_0x4e0660(0x148)]['description'],'version':_0x4a7400['version'],'importedAt':_0x4a7400[_0x4e0660(0x167)],'source':_0x4a7400[_0x4e0660(0x16b)],'commandCount':_0x401884['length'],'commands':_0x401884};}function sha256(_0xa692b2){const _0x2f8971=a40_0x21d0d3;return createHash(_0x2f8971(0x150))[_0x2f8971(0x186)](_0xa692b2)['digest'](_0x2f8971(0x14d));}
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_0x45a992=a41_0x26b4;(function(_0x4bc0f0,_0x238041){const _0x5b167c=a41_0x26b4,_0x221a9f=_0x4bc0f0();while(!![]){try{const _0x350842=parseInt(_0x5b167c(0x209))/0x1+parseInt(_0x5b167c(0x1f8))/0x2*(parseInt(_0x5b167c(0x1f7))/0x3)+-parseInt(_0x5b167c(0x204))/0x4*(parseInt(_0x5b167c(0x207))/0x5)+parseInt(_0x5b167c(0x20b))/0x6+parseInt(_0x5b167c(0x1eb))/0x7*(parseInt(_0x5b167c(0x1ed))/0x8)+-parseInt(_0x5b167c(0x1f5))/0x9+parseInt(_0x5b167c(0x208))/0xa;if(_0x350842===_0x238041)break;else _0x221a9f['push'](_0x221a9f['shift']());}catch(_0x897690){_0x221a9f['push'](_0x221a9f['shift']());}}}(a41_0x2172,0xed60a));import{existsSync,lstatSync,mkdirSync,writeFileSync}from'node:fs';function a41_0x2172(){const _0x798d52=['40RklFSu','skillName','Refusing\x20to\x20overwrite\x20symlink:\x20','899335ZsWyrz','9918690akUQeq','296030NwOrOs','Created\x20local\x20Skill\x20draft\x20','8140158DGlSXL','isDirectory','297682TIjrkD','str','56uSENRy','name','validation','rendered','path','Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20','trim','skillDir','9274023kNxCUt','WRITE','2577423rKsBTY','2RoKeOU','create','bool','files','map','skill','isSymbolicLink','Skill\x20directory\x20already\x20exists:\x20','Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','write','type','utf8'];a41_0x2172=function(){return _0x798d52;};return a41_0x2172();}import{dirname,resolve}from'node:path';import{CliErrors}from'../../../errors.js';function a41_0x26b4(_0x111a35,_0x540416){_0x111a35=_0x111a35-0x1ea;const _0x217278=a41_0x2172();let _0x26b4b3=_0x217278[_0x111a35];return _0x26b4b3;}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':a41_0x45a992(0x1fd),'command':a41_0x45a992(0x1f9),'description':a41_0x45a992(0x200),'risk':a41_0x45a992(0x201),'requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x1c8737){const _0x5af5fb=a41_0x45a992,_0x5cd3ea=buildSkillCreatePlan(_0x1c8737[_0x5af5fb(0x1ec)](_0x5af5fb(0x1ee)),_0x1c8737['str']('type'),_0x1c8737[_0x5af5fb(0x1ec)]('target'));return{'method':_0x5af5fb(0x1f6),'url':_0x5cd3ea[_0x5af5fb(0x1f4)],'body':{'skillName':_0x5cd3ea[_0x5af5fb(0x1f0)][_0x5af5fb(0x205)],'type':_0x5cd3ea[_0x5af5fb(0x1f0)][_0x5af5fb(0x202)],'selfContained':!![],'files':_0x5cd3ea[_0x5af5fb(0x1f0)]['files'][_0x5af5fb(0x1fc)](_0x1aff0e=>_0x1aff0e[_0x5af5fb(0x1f1)])},'description':'Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.'};},async 'execute'(_0x359379){const _0x5b655b=a41_0x45a992,_0x11045a=buildSkillCreatePlan(_0x359379['str'](_0x5b655b(0x1ee)),_0x359379[_0x5b655b(0x1ec)]('type'),_0x359379['str']('target'));return writeSkillDraft(_0x11045a,_0x359379[_0x5b655b(0x1fa)]('force')),{'ok':!![],'data':{'skillName':_0x11045a[_0x5b655b(0x1f0)][_0x5b655b(0x205)],'type':_0x11045a[_0x5b655b(0x1f0)][_0x5b655b(0x202)],'dir':_0x11045a[_0x5b655b(0x1f4)],'files':_0x11045a[_0x5b655b(0x1f0)][_0x5b655b(0x1fb)]['map'](_0x3d3448=>_0x3d3448['path'])},'message':_0x5b655b(0x20a)+_0x11045a[_0x5b655b(0x1f0)]['skillName']};}};function buildSkillCreatePlan(_0x23107c,_0x435468,_0x4674db){const _0x3b41b6=renderSkillTemplate({'skillName':_0x23107c,'type':_0x435468}),_0x30fea3=resolve(normalizeSkillTarget(_0x4674db));return{'rendered':_0x3b41b6,'targetRoot':_0x30fea3,'skillDir':resolve(_0x30fea3,_0x3b41b6['skillName'])};}function normalizeSkillTarget(_0x2569c7){const _0x46f92d=a41_0x45a992;return(_0x2569c7||DEFAULT_SKILL_TARGET)[_0x46f92d(0x1f3)]()||DEFAULT_SKILL_TARGET;}function writeSkillDraft(_0x199cb3,_0x548ed2){const _0x351d69=a41_0x45a992;if(existsSync(_0x199cb3['skillDir'])){const _0xb8c6bd=lstatSync(_0x199cb3['skillDir']);if(!_0xb8c6bd[_0x351d69(0x1ea)]()||_0xb8c6bd[_0x351d69(0x1fe)]())throw CliErrors[_0x351d69(0x1ef)](_0x351d69(0x1f2)+_0x199cb3[_0x351d69(0x1f4)]);if(!_0x548ed2)throw CliErrors[_0x351d69(0x1ef)](_0x351d69(0x1ff)+_0x199cb3[_0x351d69(0x1f4)],'Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.');}for(const _0x2bac56 of _0x199cb3[_0x351d69(0x1f0)]['files']){const _0x380274=resolve(_0x199cb3[_0x351d69(0x1f4)],_0x2bac56[_0x351d69(0x1f1)]),_0x18bf78=dirname(_0x380274);mkdirSync(_0x18bf78,{'recursive':!![]});if(existsSync(_0x380274)&&lstatSync(_0x380274)[_0x351d69(0x1fe)]())throw CliErrors['validation'](_0x351d69(0x206)+_0x380274);writeFileSync(_0x380274,_0x2bac56['content'],_0x351d69(0x203));}}
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
- function a42_0x4948(){const _0x263f6a=['../../../skills/runtime-skill-sync.js','version','454mwqSnh','includes','str','2167cPNWrj','\x20company\x20Skill(s).','all','930503LNhOZD','install','force','push','trim','8845oVZXlA','Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','2760pyhKwa','12cbJOgR','../../../core/api-client.js','length','removed','accessKey','unchanged','Installed\x20','company','68537jkiadi','envName','flatMap','production','scope','1924fIziLt','41240kyBPnY','6PSfRDN','8607AwgfKO','map','22788ZUdBnP','code','appCode','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.','31796063QEKEXn','skillCode','write','action','personal','filter','skipped','skill','created'];a42_0x4948=function(){return _0x263f6a;};return a42_0x4948();}const a42_0x2e062b=a42_0x1fc2;(function(_0x160a39,_0x294f58){const _0x111492=a42_0x1fc2,_0x15c02e=_0x160a39();while(!![]){try{const _0xfaa457=parseInt(_0x111492(0xef))/0x1+parseInt(_0x111492(0x108))/0x2*(parseInt(_0x111492(0xf7))/0x3)+parseInt(_0x111492(0xf4))/0x4*(-parseInt(_0x111492(0x113))/0x5)+parseInt(_0x111492(0xf6))/0x6*(parseInt(_0x111492(0x10e))/0x7)+-parseInt(_0x111492(0x115))/0x8*(parseInt(_0x111492(0xf9))/0x9)+-parseInt(_0x111492(0xf5))/0xa*(parseInt(_0x111492(0x10b))/0xb)+parseInt(_0x111492(0x116))/0xc*(parseInt(_0x111492(0xfd))/0xd);if(_0xfaa457===_0x294f58)break;else _0x15c02e['push'](_0x15c02e['shift']());}catch(_0x43f839){_0x15c02e['push'](_0x15c02e['shift']());}}}(a42_0x4948,0xb9f7b));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_0x2e062b(0x104),'command':a42_0x2e062b(0x10f),'description':a42_0x2e062b(0x114),'risk':a42_0x2e062b(0xff),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG],async 'execute'(_0x191c59){return syncRuntimeSkills(_0x191c59);}};async function syncRuntimeSkills(_0x2fbe5e){const _0x5d7951=a42_0x2e062b,{downloadRuntimeSkillPackage:_0x202eef,listRuntimeSkills:_0x496e93}=await import(_0x5d7951(0x117)),{linkEffectiveRuntimeSkills:_0xfbd9b3,materializeRuntimeSkill:_0xda7e8f,pruneStaleRuntimeSkillCache:_0x10e902,pruneStaleRuntimeSkillLinks:_0x35053d}=await import(_0x5d7951(0x106)),_0x28dd38=_0x2fbe5e[_0x5d7951(0x10a)](_0x5d7951(0xfa)),_0x106bc9=normalizeSyncScopes(_0x2fbe5e[_0x5d7951(0x10a)](_0x5d7951(0xf3))),_0x21cf5d=_0x2fbe5e[_0x5d7951(0xf0)]??_0x5d7951(0xf2),_0x2c76dc=_0x2fbe5e[_0x5d7951(0x11a)],_0x5736f7=_0x2fbe5e['bool'](_0x5d7951(0x110));if(!_0x2c76dc)throw CliErrors['authRequired'](_0x5d7951(0xfc));const _0x3ad0fb=await Promise[_0x5d7951(0x10d)](_0x106bc9[_0x5d7951(0xf8)](_0x3eea8a=>_0x496e93({'appCode':_0x2fbe5e['appCode'],'scope':_0x3eea8a,'code':_0x28dd38[_0x5d7951(0x112)]()||undefined}))),_0x481e66=_0x106bc9[_0x5d7951(0x109)](_0x5d7951(0x101))?_0x3ad0fb[_0x5d7951(0xf1)]((_0xd74126,_0x4eaf93)=>_0x106bc9[_0x4eaf93]===_0x5d7951(0x101)?_0xd74126[_0x5d7951(0x101)]:[]):[],_0x458be1=_0x106bc9[_0x5d7951(0x109)]('company')?_0x3ad0fb[_0x5d7951(0xf1)]((_0x56233d,_0x4e373b)=>_0x106bc9[_0x4e373b]===_0x5d7951(0x11d)?_0x56233d[_0x5d7951(0x11d)]:[]):[],_0x5408e2=new Set([..._0x481e66[_0x5d7951(0xf8)](_0x580764=>_0x580764[_0x5d7951(0xfe)]?.['trim']())[_0x5d7951(0x102)](_0xccf62f=>Boolean(_0xccf62f)),..._0x458be1['map'](_0x564b77=>_0x564b77['skillCode']?.[_0x5d7951(0x112)]())[_0x5d7951(0x102)](_0x411017=>Boolean(_0x411017))]),_0xc5d8a5=_0x28dd38['trim']()?[_0x28dd38[_0x5d7951(0x112)]()]:undefined,_0x1774b4=_0x106bc9['length']===0x2&&_0x106bc9['includes'](_0x5d7951(0x101))&&_0x106bc9['includes'](_0x5d7951(0x11d)),_0x48291a=_0x1774b4?_0x35053d(_0x2fbe5e[_0x5d7951(0xfb)],_0x5408e2,{},_0xc5d8a5):[],_0x2e5846=_0x10e902({'env':_0x21cf5d,'accessKey':_0x2c76dc,'appCode':_0x2fbe5e[_0x5d7951(0xfb)],'activeSkillCodes':_0x5408e2,'pruneSkillCodes':_0xc5d8a5,'scopes':_0x106bc9}),_0x2386d4=[];for(const _0x11c593 of _0x481e66){_0x2386d4[_0x5d7951(0x111)](_0xda7e8f(_0x11c593,_0x5d7951(0x101),{'env':_0x21cf5d,'accessKey':_0x2c76dc,'appCode':_0x2fbe5e[_0x5d7951(0xfb)],'force':_0x5736f7,'packageBytes':await downloadSkillPackage(_0x11c593,_0x5d7951(0x101),_0x2fbe5e[_0x5d7951(0xfb)],_0x202eef)}));}for(const _0x5abf53 of _0x458be1){_0x2386d4['push'](_0xda7e8f(_0x5abf53,_0x5d7951(0x11d),{'env':_0x21cf5d,'accessKey':_0x2c76dc,'appCode':_0x2fbe5e[_0x5d7951(0xfb)],'force':_0x5736f7,'packageBytes':await downloadSkillPackage(_0x5abf53,_0x5d7951(0x11d),_0x2fbe5e[_0x5d7951(0xfb)],_0x202eef)}));}const _0x1dce39=_0xfbd9b3(_0x2386d4,_0x2fbe5e['appCode']),_0x173f08=countLinkActions(_0x1dce39);return{'ok':!![],'data':{'appCode':_0x2fbe5e['appCode'],'personal':_0x481e66[_0x5d7951(0x118)],'company':_0x458be1[_0x5d7951(0x118)],'materialized':_0x2386d4['length'],'links':{'total':_0x1dce39[_0x5d7951(0x118)],'created':_0x173f08[_0x5d7951(0x105)]??0x0,'updated':_0x173f08['updated']??0x0,'unchanged':_0x173f08[_0x5d7951(0x11b)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x48291a[_0x5d7951(0x102)](_0x448a94=>_0x448a94[_0x5d7951(0x100)]===_0x5d7951(0x119))[_0x5d7951(0x118)],'cacheDirs':_0x2e5846['filter'](_0x490e0e=>_0x490e0e['action']===_0x5d7951(0x119))[_0x5d7951(0x118)],'skipped':[..._0x48291a,..._0x2e5846]['filter'](_0x5d4c97=>_0x5d4c97['action']===_0x5d7951(0x103))['length']},'skills':{'personal':_0x481e66[_0x5d7951(0xf8)](summarizeRuntimeSkill),'company':_0x458be1['map'](summarizeRuntimeSkill)}},'message':_0x5d7951(0x11c)+_0x481e66[_0x5d7951(0x118)]+'\x20personal\x20and\x20'+_0x458be1['length']+_0x5d7951(0x10c)};}function a42_0x1fc2(_0x31ae29,_0x322ce7){_0x31ae29=_0x31ae29-0xef;const _0x494833=a42_0x4948();let _0x1fc243=_0x494833[_0x31ae29];return _0x1fc243;}async function downloadSkillPackage(_0x264112,_0x73c9fe,_0x5c25e6,_0x4631ac){const _0x1bff02=a42_0x2e062b,_0x507a39=_0x264112[_0x1bff02(0x107)]?.[_0x1bff02(0x112)]();return _0x507a39?_0x4631ac(_0x73c9fe,_0x264112[_0x1bff02(0xfe)],_0x5c25e6,_0x507a39):_0x4631ac(_0x73c9fe,_0x264112['skillCode'],_0x5c25e6);}function countLinkActions(_0x3cd20e){return _0x3cd20e['reduce']((_0x21fd1d,_0x4ff3e4)=>{const _0x5ca163=a42_0x1fc2;return _0x21fd1d[_0x4ff3e4[_0x5ca163(0x100)]]=(_0x21fd1d[_0x4ff3e4['action']]??0x0)+0x1,_0x21fd1d;},{});}
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_0x1db9f0=a43_0x2559;(function(_0x4b9fa1,_0x53092b){const _0xe4d296=a43_0x2559,_0x5438a9=_0x4b9fa1();while(!![]){try{const _0x277bc4=parseInt(_0xe4d296(0x15a))/0x1*(-parseInt(_0xe4d296(0x15f))/0x2)+parseInt(_0xe4d296(0x154))/0x3+-parseInt(_0xe4d296(0x16e))/0x4*(-parseInt(_0xe4d296(0x161))/0x5)+-parseInt(_0xe4d296(0x16f))/0x6+parseInt(_0xe4d296(0x160))/0x7*(parseInt(_0xe4d296(0x153))/0x8)+-parseInt(_0xe4d296(0x166))/0x9*(parseInt(_0xe4d296(0x172))/0xa)+-parseInt(_0xe4d296(0x15c))/0xb*(-parseInt(_0xe4d296(0x16b))/0xc);if(_0x277bc4===_0x53092b)break;else _0x5438a9['push'](_0x5438a9['shift']());}catch(_0x211ddc){_0x5438a9['push'](_0x5438a9['shift']());}}}(a43_0x9fad,0xb3f63));import{CliErrors}from'../../../errors.js';function a43_0x2559(_0x128ea9,_0x289e1a){_0x128ea9=_0x128ea9-0x151;const _0x9fadd0=a43_0x9fad();let _0x2559de=_0x9fadd0[_0x128ea9];return _0x2559de;}import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':a43_0x1db9f0(0x16a),'command':a43_0x1db9f0(0x163),'description':a43_0x1db9f0(0x152),'risk':a43_0x1db9f0(0x15d),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x4121a8){const _0x561eb9=a43_0x1db9f0,_0x1c65df=_0x4121a8[_0x561eb9(0x171)]('code'),_0x38bb34=normalizeListScope(_0x4121a8[_0x561eb9(0x171)](_0x561eb9(0x159)));if(_0x4121a8[_0x561eb9(0x168)](_0x561eb9(0x169))){const _0x528da8=_0x4121a8[_0x561eb9(0x151)];if(!_0x528da8)throw CliErrors['authRequired']();const {listLocalRuntimeSkills:_0x409557}=await import(_0x561eb9(0x164)),_0x24b17a=_0x409557({'env':_0x4121a8[_0x561eb9(0x165)]??'production','accessKey':_0x528da8,'appCode':_0x4121a8[_0x561eb9(0x170)],'scopes':listScopeToRuntimeScopes(_0x38bb34),'code':_0x1c65df[_0x561eb9(0x155)]()||undefined}),_0x9b0b2d=groupLocalRuntimeSkills(_0x24b17a);return{'ok':!![],'data':{'appCode':_0x4121a8[_0x561eb9(0x170)],'source':_0x561eb9(0x169),'scope':_0x38bb34,'total':_0x24b17a['length'],'personal':_0x9b0b2d[_0x561eb9(0x157)]['length'],'company':_0x9b0b2d[_0x561eb9(0x156)][_0x561eb9(0x15b)],'items':_0x24b17a[_0x561eb9(0x16c)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x9b0b2d[_0x561eb9(0x157)][_0x561eb9(0x16c)](summarizeLocalRuntimeSkill),'company':_0x9b0b2d['company'][_0x561eb9(0x16c)](summarizeLocalRuntimeSkill)}},'message':_0x561eb9(0x167)+_0x24b17a[_0x561eb9(0x15b)]+'\x20local\x20Skill(s).'};}const {listRuntimeSkills:_0x31f891}=await import(_0x561eb9(0x173)),_0x33587a=await _0x31f891({'appCode':_0x4121a8[_0x561eb9(0x170)],'scope':listScopeToRemoteScope(_0x38bb34),'code':_0x1c65df[_0x561eb9(0x155)]()||undefined}),_0x58defc=shouldListScope(_0x38bb34,'personal')?_0x33587a[_0x561eb9(0x157)]??[]:[],_0x375dc8=shouldListScope(_0x38bb34,'company')?_0x33587a[_0x561eb9(0x156)]??[]:[],_0x250493=[..._0x58defc,..._0x375dc8];return{'ok':!![],'data':{'appCode':_0x4121a8[_0x561eb9(0x170)],'source':_0x561eb9(0x158),'scope':_0x38bb34,'total':_0x250493[_0x561eb9(0x15b)],'personal':_0x58defc[_0x561eb9(0x15b)],'company':_0x375dc8[_0x561eb9(0x15b)],'items':_0x250493[_0x561eb9(0x16c)](summarizeRuntimeSkill),'skills':{'personal':_0x58defc[_0x561eb9(0x16c)](summarizeRuntimeSkill),'company':_0x375dc8['map'](summarizeRuntimeSkill)}},'message':_0x561eb9(0x167)+_0x250493[_0x561eb9(0x15b)]+_0x561eb9(0x15e)};}};function a43_0x9fad(){const _0x452c3c=['company','personal','remote','scope','217579OLHkZn','length','77143ZKqtPO','read','\x20remote\x20Skill(s).','2yNDhXX','14756oEYkug','1193315nJnIWK','builtin','list','../../../skills/runtime-skill-sync.js','envName','2529LelDkZ','Listed\x20','bool','local','skill','1692bLWFyi','map','filter','4rjfMOi','7896078DeADNf','appCode','str','7270YgIUJS','../../../core/api-client.js','accessKey','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','1328gIPPBA','2692734WxYqTl','trim'];a43_0x9fad=function(){return _0x452c3c;};return a43_0x9fad();}function groupLocalRuntimeSkills(_0x1f1147){const _0x5aeee3=a43_0x1db9f0;return{'personal':_0x1f1147[_0x5aeee3(0x16d)](_0x1c04f7=>_0x1c04f7['scope']===_0x5aeee3(0x157)),'company':_0x1f1147[_0x5aeee3(0x16d)](_0x2d4cad=>_0x2d4cad[_0x5aeee3(0x159)]===_0x5aeee3(0x156)),'builtin':_0x1f1147['filter'](_0xc6d3c8=>_0xc6d3c8[_0x5aeee3(0x159)]===_0x5aeee3(0x162))};}
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
- const a44_0x8a6e5c=a44_0x4da1;(function(_0x3f4549,_0x394bdb){const _0x4a8b42=a44_0x4da1,_0x1be4b3=_0x3f4549();while(!![]){try{const _0xe38131=parseInt(_0x4a8b42(0xdc))/0x1*(parseInt(_0x4a8b42(0xe1))/0x2)+-parseInt(_0x4a8b42(0xdd))/0x3+-parseInt(_0x4a8b42(0xda))/0x4+-parseInt(_0x4a8b42(0xd6))/0x5*(parseInt(_0x4a8b42(0xd9))/0x6)+parseInt(_0x4a8b42(0xe4))/0x7*(-parseInt(_0x4a8b42(0xe2))/0x8)+parseInt(_0x4a8b42(0xe3))/0x9*(-parseInt(_0x4a8b42(0xdf))/0xa)+-parseInt(_0x4a8b42(0xd8))/0xb*(-parseInt(_0x4a8b42(0xdb))/0xc);if(_0xe38131===_0x394bdb)break;else _0x1be4b3['push'](_0x1be4b3['shift']());}catch(_0x12d4ec){_0x1be4b3['push'](_0x1be4b3['shift']());}}}(a44_0x2acc,0xaf9ba));function a44_0x4da1(_0x3500e9,_0x23ba6b){_0x3500e9=_0x3500e9-0xd6;const _0x2acc18=a44_0x2acc();let _0x4da123=_0x2acc18[_0x3500e9];return _0x4da123;}import{CONFIRM_WARNINGS_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';function a44_0x2acc(){const _0x19d035=['Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope\x20or\x20submit\x20company\x20scope\x20for\x20review','14QQsYUu','280zZphPa','447390TCvoQT','14091lZGvvw','5tJglIm','write','80267cbAjNf','3040698HHVIzk','5065128lMWoLx','5880yRdQtz','66277ysBGyu','2938677nJvquU','skill','100JwLNPS'];a44_0x2acc=function(){return _0x19d035;};return a44_0x2acc();}import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':a44_0x8a6e5c(0xde),'command':'push','description':a44_0x8a6e5c(0xe0),'risk':a44_0x8a6e5c(0xd7),'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_0x449e74=a45_0x51c7;function a45_0x51c7(_0x4867dc,_0x5d7392){_0x4867dc=_0x4867dc-0x1af;const _0x5911f5=a45_0x5911();let _0x51c77d=_0x5911f5[_0x4867dc];return _0x51c77d;}(function(_0x528040,_0x2a3f2c){const _0x41f52c=a45_0x51c7,_0x75de09=_0x528040();while(!![]){try{const _0x290493=-parseInt(_0x41f52c(0x1b8))/0x1+-parseInt(_0x41f52c(0x1af))/0x2*(-parseInt(_0x41f52c(0x1b3))/0x3)+-parseInt(_0x41f52c(0x1bb))/0x4*(parseInt(_0x41f52c(0x1b0))/0x5)+-parseInt(_0x41f52c(0x1b4))/0x6+parseInt(_0x41f52c(0x1b6))/0x7*(parseInt(_0x41f52c(0x1b1))/0x8)+-parseInt(_0x41f52c(0x1c2))/0x9+parseInt(_0x41f52c(0x1b5))/0xa*(parseInt(_0x41f52c(0x1c0))/0xb);if(_0x290493===_0x2a3f2c)break;else _0x75de09['push'](_0x75de09['shift']());}catch(_0x2d2e53){_0x75de09['push'](_0x75de09['shift']());}}}(a45_0x5911,0x59139));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a45_0x449e74(0x1be),'command':a45_0x449e74(0x1ba),'description':a45_0x449e74(0x1b7),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x208218){const _0x143917=a45_0x449e74,_0x46cc4b=_0x208218[_0x143917(0x1c1)](_0x143917(0x1b2)),_0x5ddaea=validateSkillDirectory(_0x208218[_0x143917(0x1b9)](_0x143917(0x1bd)),{'strict':_0x46cc4b});return throwIfSkillValidationFailed(_0x5ddaea,_0x46cc4b),{'ok':!![],'data':{'dir':_0x5ddaea[_0x143917(0x1bd)],'type':_0x5ddaea['type'],'errors':_0x5ddaea[_0x143917(0x1bf)],'warnings':_0x5ddaea[_0x143917(0x1bc)]},'message':'Skill\x20validation\x20passed.'};}};function a45_0x5911(){const _0xc1cfd2=['44jeZAsu','bool','5080554KveHHZ','2oCYJjr','5RNfuCB','8QAiFZj','strict','669267FUNJgJ','1609674lczcFz','3269260BxcrEH','5004629zGsIlH','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','573424fPhLFP','str','validate','1898696cSWSwH','warnings','dir','skill','errors'];a45_0x5911=function(){return _0xc1cfd2;};return a45_0x5911();}
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
- function a46_0x2bf7(_0x277d72,_0x2897b6){_0x277d72=_0x277d72-0x65;const _0x106e01=a46_0x106e();let _0x2bf7c2=_0x106e01[_0x277d72];return _0x2bf7c2;}const a46_0x184ec5=a46_0x2bf7;(function(_0x560976,_0x355580){const _0xfbf64c=a46_0x2bf7,_0x11d0a3=_0x560976();while(!![]){try{const _0x2cf462=parseInt(_0xfbf64c(0x6d))/0x1*(parseInt(_0xfbf64c(0x6c))/0x2)+parseInt(_0xfbf64c(0x74))/0x3*(parseInt(_0xfbf64c(0x7e))/0x4)+parseInt(_0xfbf64c(0x79))/0x5+parseInt(_0xfbf64c(0x69))/0x6*(-parseInt(_0xfbf64c(0x80))/0x7)+parseInt(_0xfbf64c(0x6b))/0x8*(parseInt(_0xfbf64c(0x78))/0x9)+parseInt(_0xfbf64c(0x84))/0xa+-parseInt(_0xfbf64c(0x76))/0xb;if(_0x2cf462===_0x355580)break;else _0x11d0a3['push'](_0x11d0a3['shift']());}catch(_0x543290){_0x11d0a3['push'](_0x11d0a3['shift']());}}}(a46_0x106e,0x359b7));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a46_0x184ec5(0x65),'type':'string','description':a46_0x184ec5(0x85)};export const SCOPE_FLAG={'name':'scope','type':a46_0x184ec5(0x87),'description':a46_0x184ec5(0x6a),'enum':[a46_0x184ec5(0x70),'personal','company']};function a46_0x106e(){const _0x3d3c83=['force','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','all','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','name','1056843YenMeR','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','12708234JrbmDL','Continue\x20company\x20Skill\x20push\x20when\x20SkillHub\x20validation\x20reports\x20warnings','4518sfGXTr','1839565LtcuGU','personal','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','confirm-warnings','4crjmwT','scope','294wGhZPx','boolean','dir','local','2623940FadamX','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','string','target','write','code','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','Skill\x20template\x20type','Local\x20Skill\x20directory\x20containing\x20SKILL.md','21336GcZOlc','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','1872oZdcqR','2aKBTDQ','424165yulQdx'];a46_0x106e=function(){return _0x3d3c83;};return a46_0x106e();}export const PUSH_SCOPE_FLAG={'name':a46_0x184ec5(0x7f),'type':a46_0x184ec5(0x87),'description':a46_0x184ec5(0x7c),'default':'personal','enum':[a46_0x184ec5(0x7a),'company']};export const LIST_SCOPE_FLAG={'name':'scope','type':'string','description':a46_0x184ec5(0x75),'enum':[a46_0x184ec5(0x70),'personal','company']};export const LOCAL_FLAG={'name':a46_0x184ec5(0x83),'type':a46_0x184ec5(0x81),'description':a46_0x184ec5(0x86)};export const DIR_FLAG={'name':a46_0x184ec5(0x82),'type':'string','required':!![],'description':a46_0x184ec5(0x68)};export const CREATE_NAME_FLAG={'name':a46_0x184ec5(0x73),'type':a46_0x184ec5(0x87),'required':!![],'description':a46_0x184ec5(0x7b),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a46_0x184ec5(0x72)}};export const TYPE_FLAG={'name':'type','type':a46_0x184ec5(0x87),'description':a46_0x184ec5(0x67),'default':a46_0x184ec5(0x89),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a46_0x184ec5(0x88),'type':a46_0x184ec5(0x87),'description':a46_0x184ec5(0x6f),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a46_0x184ec5(0x6e),'type':'boolean','description':a46_0x184ec5(0x71)};export const CONFIRM_WARNINGS_FLAG={'name':a46_0x184ec5(0x7d),'type':'boolean','description':a46_0x184ec5(0x77)};export const STRICT_FLAG={'name':'strict','type':a46_0x184ec5(0x81),'description':a46_0x184ec5(0x66)};
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(_0x243e2d,_0x2ae774){const _0x4885d1=a47_0x1638,_0x24aaac=_0x243e2d();while(!![]){try{const _0x1b36c0=parseInt(_0x4885d1(0xe8))/0x1*(-parseInt(_0x4885d1(0xee))/0x2)+parseInt(_0x4885d1(0xe7))/0x3+parseInt(_0x4885d1(0xeb))/0x4*(parseInt(_0x4885d1(0xe6))/0x5)+parseInt(_0x4885d1(0xe5))/0x6+-parseInt(_0x4885d1(0xed))/0x7+parseInt(_0x4885d1(0xe9))/0x8*(-parseInt(_0x4885d1(0xef))/0x9)+-parseInt(_0x4885d1(0xec))/0xa*(-parseInt(_0x4885d1(0xea))/0xb);if(_0x1b36c0===_0x2ae774)break;else _0x24aaac['push'](_0x24aaac['shift']());}catch(_0x2c7310){_0x24aaac['push'](_0x24aaac['shift']());}}}(a47_0x3366,0xe1371));function a47_0x1638(_0x594fed,_0x31e0c1){_0x594fed=_0x594fed-0xe5;const _0x336603=a47_0x3366();let _0x163811=_0x336603[_0x594fed];return _0x163811;}import{createCommand}from'./commands/create.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand];function a47_0x3366(){const _0x5c74fe=['673223vfidtn','8bkBfBf','22FcxLGn','116tZnZAX','12563840eqOONt','7787829BJHtQB','2jZhpiD','15196824JEXjxG','7146684HzVzmS','29125VvsAgd','1571940CAsUpl'];a47_0x3366=function(){return _0x5c74fe;};return a47_0x3366();}
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(_0x5d0951,_0x3db661){var _0x1d4ab9=a48_0x1487,_0x427d59=_0x5d0951();while(!![]){try{var _0x4d848e=-parseInt(_0x1d4ab9(0xc1))/0x1*(-parseInt(_0x1d4ab9(0xc8))/0x2)+parseInt(_0x1d4ab9(0xc9))/0x3*(-parseInt(_0x1d4ab9(0xc6))/0x4)+-parseInt(_0x1d4ab9(0xc3))/0x5*(-parseInt(_0x1d4ab9(0xc0))/0x6)+parseInt(_0x1d4ab9(0xbb))/0x7*(-parseInt(_0x1d4ab9(0xc7))/0x8)+-parseInt(_0x1d4ab9(0xc5))/0x9*(parseInt(_0x1d4ab9(0xb9))/0xa)+-parseInt(_0x1d4ab9(0xbd))/0xb*(-parseInt(_0x1d4ab9(0xbe))/0xc)+parseInt(_0x1d4ab9(0xbc))/0xd;if(_0x4d848e===_0x3db661)break;else _0x427d59['push'](_0x427d59['shift']());}catch(_0x6aca16){_0x427d59['push'](_0x427d59['shift']());}}}(a48_0x1f95,0xa7f41));function a48_0x1f95(){var _0x4913ec=['object','845035GoZlVF','files','948123zLNfVS','750508NwiLQL','2165616zpUbwU','2IjHVuY','21nLsCeR','isArray','string','ossPath','10WbtSMu','path','21hyRfKk','5504733zMBkgH','10204546aLYZvy','12oizkJE','SKILL.md','42HSKVvH','384603MAvEmH'];a48_0x1f95=function(){return _0x4913ec;};return a48_0x1f95();}function a48_0x1487(_0x209e44,_0x25d8d7){_0x209e44=_0x209e44-0xb8;var _0x1f9591=a48_0x1f95();var _0x14870d=_0x1f9591[_0x209e44];return _0x14870d;}export function isPackageBackedManifest(_0x2c3f79){var _0xab7d77=a48_0x1487;return!!_0x2c3f79&&typeof _0x2c3f79===_0xab7d77(0xc2)&&!Array['isArray'](_0x2c3f79)&&typeof _0x2c3f79[_0xab7d77(0xb8)]===_0xab7d77(0xcb)&&_0x2c3f79[_0xab7d77(0xb8)]['length']>0x0&&Array[_0xab7d77(0xca)](_0x2c3f79['files']);}export function isMultiFileManifest(_0x215faf){var _0x4f3d1a=a48_0x1487;return!!_0x215faf&&typeof _0x215faf===_0x4f3d1a(0xc2)&&!Array[_0x4f3d1a(0xca)](_0x215faf)&&Array[_0x4f3d1a(0xca)](_0x215faf[_0x4f3d1a(0xc4)])&&_0x215faf[_0x4f3d1a(0xc4)]['some'](_0x199f7b=>_0x199f7b[_0x4f3d1a(0xba)]!==_0x4f3d1a(0xbf));}
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_0x4e36(){const _0x3626dd=['files','frontmatterDisplayName','Updated\x20personal\x20Skill\x20','2185295XwZobD','personal','savedSkill','2213076oKeDoD','remoteForPreflight','confirmWarnings','company','payload','skillCode','validation','length','477433lAKGvt','\x20has\x20scope=\x22','../../skills/runtime-skill-sync.js','appcode','warnings','6418335WYeYbU','../../core/api-client.js','11yWJTCx','resolvedVersion','valid','PRIVATE','accessKey','dir','scope','9jUWfEr','bool','Personal','join','input','version','/api/cli/v1/skills/','str','authRequired','metadata','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','resolvedSlug','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','submitted','NAMESPACE_ONLY','\x20version\x20','Created\x20personal\x20Skill\x20','POST','publishInput','(unknown)','confirm-warnings','existing','8152rFAulb','32500760wXQeYe','Review\x20the\x20warnings\x20and\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit:\x20','Company','948RJlFKQ','appCode','6zHoAoz','\x20for\x20review','Company\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','\x20Skill\x20','unknown','4807272wKortG','map','identical','path'];a49_0x4e36=function(){return _0x3626dd;};return a49_0x4e36();}(function(_0x2eab48,_0x2a24ba){const _0x37d93b=a49_0x4c99,_0x216fcf=_0x2eab48();while(!![]){try{const _0x5e502a=-parseInt(_0x37d93b(0x1c1))/0x1+-parseInt(_0x37d93b(0x1fb))/0x2+parseInt(_0x37d93b(0x1ea))/0x3*(parseInt(_0x37d93b(0x1e6))/0x4)+-parseInt(_0x37d93b(0x1c6))/0x5+parseInt(_0x37d93b(0x1ec))/0x6*(parseInt(_0x37d93b(0x1f8))/0x7)+-parseInt(_0x37d93b(0x1f1))/0x8*(parseInt(_0x37d93b(0x1cf))/0x9)+parseInt(_0x37d93b(0x1e7))/0xa*(parseInt(_0x37d93b(0x1c8))/0xb);if(_0x5e502a===_0x2a24ba)break;else _0x216fcf['push'](_0x216fcf['shift']());}catch(_0x4155ac){_0x216fcf['push'](_0x216fcf['shift']());}}}(a49_0x4e36,0xb41ba));function a49_0x4c99(_0x36a99f,_0x4b937e){_0x36a99f=_0x36a99f-0x1bb;const _0x4e36d4=a49_0x4e36();let _0x4c99af=_0x4e36d4[_0x36a99f];return _0x4c99af;}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,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(_0x46d62b){const _0x795212=a49_0x4c99,{getRuntimeSkillByCode:_0x21847d,validateRuntimeSkillPublish:_0x2aac51}=await import(_0x795212(0x1c7)),{readPushDirectory:_0x587fef,resolvePushDirectoryIdentity:_0x4c200a}=await import(_0x795212(0x1c3));if(!_0x46d62b['accessKey'])throw CliErrors[_0x795212(0x1d7)]();const _0x2a36f4=resolvePushScope(_0x46d62b),_0xe78c3=validateSkillDirectory(_0x46d62b[_0x795212(0x1d6)](_0x795212(0x1cd)));throwIfSkillValidationFailed(_0xe78c3);const _0x179a0b=_0x4c200a(_0xe78c3[_0x795212(0x1cd)],_0x46d62b[_0x795212(0x1eb)],remoteFirstMetadataOptions()),_0x4c8895=await _0x21847d(_0x46d62b[_0x795212(0x1eb)],_0x179a0b[_0x795212(0x1be)]);throwIfBuiltinPushTarget(_0x4c8895);if(_0x2a36f4===_0x795212(0x1bc)){const _0x54654d=_0x587fef(_0xe78c3[_0x795212(0x1cd)],_0x46d62b['appCode'],remoteMissingCompanyReadOptions()),_0x41a89c=await _0x2aac51(_0x46d62b[_0x795212(0x1eb)],_0x54654d[_0x795212(0x1d3)],{'visibility':'NAMESPACE_ONLY'});return{'method':_0x795212(0x1e1),'url':_0x795212(0x1d5)+_0x46d62b[_0x795212(0x1eb)]+'/publish/validate','body':{'skillCode':_0x54654d[_0x795212(0x1be)],'visibility':'NAMESPACE_ONLY','valid':_0x41a89c[_0x795212(0x1ca)],'errors':_0x41a89c['errors'],'warnings':_0x41a89c[_0x795212(0x1c5)],'resolvedSlug':_0x41a89c[_0x795212(0x1da)],'resolvedVersion':_0x41a89c[_0x795212(0x1c9)]},'description':_0x795212(0x1d9)};}if(_0x4c8895&&_0x4c8895[_0x795212(0x1ce)]!=='personal')throw CliErrors[_0x795212(0x1bf)](_0x795212(0x1dc)+_0x179a0b[_0x795212(0x1be)]+_0x795212(0x1c2)+(_0x4c8895[_0x795212(0x1ce)]??_0x795212(0x1f0))+'\x22.');const _0x217a79=_0x587fef(_0xe78c3[_0x795212(0x1cd)],_0x46d62b['appCode'],_0x4c8895?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions());return{'method':_0x795212(0x1e1),'url':_0x795212(0x1d5)+_0x46d62b[_0x795212(0x1eb)]+'/publish','body':{'skillCode':_0x217a79[_0x795212(0x1be)],'visibility':_0x795212(0x1cb),'files':_0x217a79[_0x795212(0x1d3)]['files']?.['files'][_0x795212(0x1f2)](_0x2e9d9f=>_0x2e9d9f[_0x795212(0x1f4)])??[]},'description':'Preview\x20a\x20personal\x20Skill\x20push\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.'};}export async function skillPushExecute(_0x2064d3){const _0x12ee8c=a49_0x4c99,{createPersonalRuntimeSkill:_0x161aed,downloadRuntimeSkillPackage:_0xfaca56,getRuntimeSkillByCode:_0x9d3f46,publishCompanyRuntimeSkill:_0x42f7ca,updatePersonalRuntimeSkill:_0x2888bb,validateRuntimeSkillPublish:_0x35d1c4}=await import(_0x12ee8c(0x1c7)),{verifyRuntimeSkillPackage:_0x23b904,verifyRuntimeSkillBundle:_0x3a58f2,readPushDirectory:_0x2eecb8,refreshPushDirectoryMetadataFromRemote:_0x21046d,recordPushedRuntimeSkill:_0x12b433,resolvePushDirectoryIdentity:_0x2b5e25}=await import(_0x12ee8c(0x1c3));if(!_0x2064d3[_0x12ee8c(0x1cc)])throw CliErrors[_0x12ee8c(0x1d7)]();const _0x5e9263=resolvePushScope(_0x2064d3),_0x63f48e=validateSkillDirectory(_0x2064d3[_0x12ee8c(0x1d6)]('dir'));throwIfSkillValidationFailed(_0x63f48e);const _0x256490=_0x63f48e[_0x12ee8c(0x1cd)];let _0x11a122;if(_0x5e9263===_0x12ee8c(0x1bc)){const _0x36ed3a=_0x2b5e25(_0x256490,_0x2064d3[_0x12ee8c(0x1eb)],remoteFirstMetadataOptions()),_0x39f60c=await _0x9d3f46(_0x2064d3[_0x12ee8c(0x1eb)],_0x36ed3a[_0x12ee8c(0x1be)]);throwIfBuiltinPushTarget(_0x39f60c);if(_0x39f60c)_0x21046d(_0x256490,_0x39f60c,_0x2064d3[_0x12ee8c(0x1eb)]);const _0x4e8a6f=_0x2eecb8(_0x256490,_0x2064d3['appCode'],_0x39f60c?{'targetScope':'company','ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0x11a122={'scope':_0x12ee8c(0x1bc),'payload':_0x4e8a6f,'publishInput':_0x4e8a6f[_0x12ee8c(0x1d3)],'remoteForPreflight':_0x39f60c,'warnings':[]};}else{const _0xa5390c=_0x2064d3[_0x12ee8c(0x1d6)](_0x12ee8c(0x1c4))['trim'](),_0x5d959c=Boolean(_0xa5390c),_0x2a68f9=allowRetargetArgs(_0x5d959c),_0x4c9418=_0x2b5e25(_0x256490,_0x2064d3[_0x12ee8c(0x1eb)],{...remoteFirstMetadataOptions(),..._0x2a68f9[0x0]}),_0x3ba921=await _0x9d3f46(_0x2064d3[_0x12ee8c(0x1eb)],_0x4c9418[_0x12ee8c(0x1be)]);throwIfBuiltinPushTarget(_0x3ba921);if(_0x3ba921){if(_0x3ba921[_0x12ee8c(0x1ce)]!==_0x12ee8c(0x1f9)){if(_0x5d959c)throw CliErrors[_0x12ee8c(0x1bf)](_0x12ee8c(0x1dc)+_0x4c9418[_0x12ee8c(0x1be)]+_0x12ee8c(0x1c2)+(_0x3ba921[_0x12ee8c(0x1ce)]??_0x12ee8c(0x1f0))+'\x22.');_0x21046d(_0x256490,_0x3ba921,_0x2064d3['appCode']);}else!_0x5d959c&&_0x21046d(_0x256490,_0x3ba921,_0x2064d3['appCode']);}const _0x286228=_0x2eecb8(_0x256490,_0x2064d3['appCode'],_0x3ba921?remotePersonalReadOptions(_0x5d959c,_0x2a68f9[0x0]):remoteMissingPersonalReadOptions(_0x2a68f9[0x0])),_0x3c6075=_0x3ba921?.[_0x12ee8c(0x1ce)]==='personal'&&_0x3ba921[_0x12ee8c(0x1be)]===_0x286228[_0x12ee8c(0x1be)]?_0x3ba921:undefined,_0x3484c6=_0x5d959c&&_0x3c6075?withRetargetExistingMetadata(_0x286228['input'],_0x3c6075,{'preferInputSkillName':Boolean(_0x286228[_0x12ee8c(0x1f6)])}):_0x286228['input'],_0x15a621=_0x5d959c?buildRetargetWarning(_0x4c9418[_0x12ee8c(0x1d8)],_0x2064d3['appCode']):[];_0x11a122={'scope':_0x12ee8c(0x1f9),'payload':_0x286228,'publishInput':_0x3484c6,'remoteForPreflight':_0x3c6075,'existing':_0x3c6075,'warnings':[..._0x63f48e[_0x12ee8c(0x1c5)],..._0x15a621]};}const _0x2ac69a=await runRemoteContentPreflight({'scope':_0x11a122[_0x12ee8c(0x1ce)],'remote':_0x11a122[_0x12ee8c(0x1fc)],'publishInput':_0x11a122['publishInput'],'skillCode':_0x11a122[_0x12ee8c(0x1bd)][_0x12ee8c(0x1be)],'appCode':_0x2064d3[_0x12ee8c(0x1eb)],'downloadRuntimeSkillPackage':_0xfaca56,'verifyRuntimeSkillBundle':_0x3a58f2});if(_0x2ac69a['status']===_0x12ee8c(0x1f3))return _0x11a122['scope']==='company'?_0x12b433(_0x256490,_0x2ac69a['savedSkill'],_0x2064d3['appCode'],{'scope':_0x12ee8c(0x1bc)}):_0x12b433(_0x256490,_0x2ac69a['savedSkill'],_0x2064d3['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x2ac69a[_0x12ee8c(0x1fa)]),'scope':_0x11a122['scope'],..._0x11a122[_0x12ee8c(0x1ce)]===_0x12ee8c(0x1f9)?{'warnings':_0x11a122[_0x12ee8c(0x1c5)]}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0x11a122[_0x12ee8c(0x1ce)])+_0x12ee8c(0x1ef)+_0x11a122[_0x12ee8c(0x1bd)][_0x12ee8c(0x1be)]+_0x12ee8c(0x1db)};if(_0x11a122[_0x12ee8c(0x1ce)]===_0x12ee8c(0x1bc)){const _0x36a4d2=await _0x35d1c4(_0x2064d3[_0x12ee8c(0x1eb)],_0x11a122['publishInput'],{'visibility':_0x12ee8c(0x1de)});throwIfPublishValidationFailed(_0x11a122[_0x12ee8c(0x1bd)][_0x12ee8c(0x1be)],_0x36a4d2);const _0xf1498e=_0x2064d3[_0x12ee8c(0x1d0)](_0x12ee8c(0x1e4))||_0x2064d3[_0x12ee8c(0x1d0)](_0x12ee8c(0x1bb));if(_0x36a4d2['warnings'][_0x12ee8c(0x1c0)]>0x0&&!_0xf1498e)throw CliErrors[_0x12ee8c(0x1bf)](_0x12ee8c(0x1ee)+_0x11a122['payload'][_0x12ee8c(0x1be)]+'.',_0x12ee8c(0x1e8)+_0x36a4d2[_0x12ee8c(0x1c5)][_0x12ee8c(0x1d2)](';\x20'));const _0x6fa76e=await _0x42f7ca(_0x2064d3[_0x12ee8c(0x1eb)],_0x11a122[_0x12ee8c(0x1e2)],{'confirmWarnings':_0xf1498e});return _0x12b433(_0x256490,{..._0x6fa76e,'files':_0x11a122[_0x12ee8c(0x1e2)]['files']},_0x2064d3[_0x12ee8c(0x1eb)],{'scope':'company'}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x6fa76e),'scope':_0x12ee8c(0x1bc),'reviewState':_0x12ee8c(0x1dd),'submittedForReview':!![],'validation':{'warnings':_0x36a4d2['warnings']}},'message':'Submitted\x20company\x20Skill\x20'+_0x11a122['payload']['skillCode']+_0x12ee8c(0x1df)+(_0x6fa76e[_0x12ee8c(0x1d4)]??_0x12ee8c(0x1e3))+_0x12ee8c(0x1ed)};}const _0x1f69ac=_0x11a122[_0x12ee8c(0x1e5)]?await _0x2888bb(_0x11a122[_0x12ee8c(0x1bd)][_0x12ee8c(0x1be)],_0x2064d3[_0x12ee8c(0x1eb)],_0x11a122[_0x12ee8c(0x1e2)]):await _0x161aed(_0x2064d3[_0x12ee8c(0x1eb)],_0x11a122[_0x12ee8c(0x1e2)]);let _0x22dfa2=_0x1f69ac;if(isMultiFileManifest(_0x11a122['publishInput'][_0x12ee8c(0x1f5)])){const _0x4f94d3=await _0xfaca56(_0x12ee8c(0x1f9),_0x1f69ac['skillCode']||_0x11a122['payload'][_0x12ee8c(0x1be)],_0x2064d3['appCode']);_0x3a58f2(_0x11a122['publishInput'][_0x12ee8c(0x1f5)],_0x4f94d3),_0x22dfa2={..._0x1f69ac,'files':_0x11a122[_0x12ee8c(0x1e2)][_0x12ee8c(0x1f5)]};}else{if(isPackageBackedManifest(_0x1f69ac[_0x12ee8c(0x1f5)])){const _0x4b0f14=await _0xfaca56('personal',_0x1f69ac[_0x12ee8c(0x1be)]||_0x11a122[_0x12ee8c(0x1bd)][_0x12ee8c(0x1be)],_0x2064d3[_0x12ee8c(0x1eb)]);_0x23b904(_0x1f69ac[_0x12ee8c(0x1f5)],_0x4b0f14);}}return _0x12b433(_0x256490,_0x22dfa2,_0x2064d3[_0x12ee8c(0x1eb)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x1f69ac),'warnings':_0x11a122[_0x12ee8c(0x1c5)]},'message':_0x11a122[_0x12ee8c(0x1e5)]?_0x12ee8c(0x1f7)+_0x11a122[_0x12ee8c(0x1bd)][_0x12ee8c(0x1be)]:_0x12ee8c(0x1e0)+_0x11a122[_0x12ee8c(0x1bd)][_0x12ee8c(0x1be)]};}function scopeLabel(_0x6652c7){const _0xee9cee=a49_0x4c99;return _0x6652c7==='company'?_0xee9cee(0x1e9):_0xee9cee(0x1d1);}
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(_0x1d560b,_0x5a2dbc){const _0x17b81f=a50_0x39e7,_0x3dba28=_0x1d560b();while(!![]){try{const _0x1839e4=-parseInt(_0x17b81f(0x1d8))/0x1*(-parseInt(_0x17b81f(0x1ec))/0x2)+parseInt(_0x17b81f(0x1e4))/0x3*(parseInt(_0x17b81f(0x1d9))/0x4)+-parseInt(_0x17b81f(0x1dd))/0x5*(-parseInt(_0x17b81f(0x1e5))/0x6)+parseInt(_0x17b81f(0x1eb))/0x7*(-parseInt(_0x17b81f(0x1f6))/0x8)+parseInt(_0x17b81f(0x1e1))/0x9+-parseInt(_0x17b81f(0x1d2))/0xa+parseInt(_0x17b81f(0x1f2))/0xb*(-parseInt(_0x17b81f(0x1d5))/0xc);if(_0x1839e4===_0x5a2dbc)break;else _0x3dba28['push'](_0x3dba28['shift']());}catch(_0x3cb797){_0x3dba28['push'](_0x3dba28['shift']());}}}(a50_0x3555,0x5927a));function a50_0x3555(){const _0x41a0bd=['1526HtzLil','6100SwMdQU','SkillHub\x20validation\x20returned\x20invalid.','lovrabet.skill.json','company','1420gsXeKR','remote','errors','personal','5816277CQBIfn','(unknown)','Company\x20Skill\x20push\x20validation\x20failed\x20for\x20','669yMgFuj','7782zzqUeC','version','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','content','Builtin\x20Skill\x20','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','413qEfhNz','458NHNOSM','validation','join','appCode','skillCode','publishInput','99TvfwHL','scope','Local\x20Skill\x20metadata\x20appCode\x20','length','13168qdILgX','identical','not-applicable','verifyRuntimeSkillBundle','str','\x20cannot\x20be\x20pushed.','119070kbWYIA','files','different','1639908unDWJV','downloadRuntimeSkillPackage','skill-metadata-appcode-retargeted'];a50_0x3555=function(){return _0x41a0bd;};return a50_0x3555();}import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x4abff4){const _0x48a3ef=a50_0x39e7,_0x4035c3=_0x4abff4[_0x48a3ef(0x1fa)](_0x48a3ef(0x1f3))||'personal';if(_0x4035c3===_0x48a3ef(0x1e0)||_0x4035c3===_0x48a3ef(0x1dc))return _0x4035c3;throw CliErrors[_0x48a3ef(0x1ed)]('skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22'+_0x4035c3+'\x22.');}function a50_0x39e7(_0x354751,_0x2596e2){_0x354751=_0x354751-0x1d2;const _0x3555be=a50_0x3555();let _0x39e719=_0x3555be[_0x354751];return _0x39e719;}export function allowRetargetArgs(_0x1a716a){return _0x1a716a?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){return{'targetScope':'company',...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x59eeac={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x59eeac};}export function remotePersonalReadOptions(_0x7de996,_0x29342a={}){return{'ignoreInvalidMetadata':!![],..._0x7de996?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x29342a};}export function throwIfBuiltinPushTarget(_0x200344){const _0x26c52d=a50_0x39e7;if(_0x200344?.['scope']!=='builtin')return;throw CliErrors[_0x26c52d(0x1ed)](_0x26c52d(0x1e9)+(_0x200344[_0x26c52d(0x1f0)]??_0x26c52d(0x1e2))+_0x26c52d(0x1fb),_0x26c52d(0x1e7));}export function throwIfPublishValidationFailed(_0x546136,_0xf7000d){const _0xfce169=a50_0x39e7;if(_0xf7000d['valid']&&_0xf7000d[_0xfce169(0x1df)][_0xfce169(0x1f5)]===0x0)return;const _0xdffa32=_0xf7000d[_0xfce169(0x1df)][_0xfce169(0x1f5)]>0x0?_0xf7000d['errors'][_0xfce169(0x1ee)](';\x20'):_0xfce169(0x1da);throw CliErrors[_0xfce169(0x1ed)](_0xfce169(0x1e3)+_0x546136+'.',_0xdffa32);}export function buildRetargetWarning(_0x3cbf6a,_0x3a6d2d){const _0xf39e90=a50_0x39e7;if(!_0x3cbf6a?.['appCode']||_0x3cbf6a['appCode']===_0x3a6d2d)return[];return[{'level':'warning','ruleId':_0xf39e90(0x1d7),'file':_0xf39e90(0x1db),'message':_0xf39e90(0x1f4)+_0x3cbf6a[_0xf39e90(0x1ef)]+'\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20'+_0x3a6d2d+'\x20after\x20successful\x20push.','suggestion':_0xf39e90(0x1ea)}];}export async function runRemoteContentPreflight(_0x517257){const _0x39a606=a50_0x39e7;if(!_0x517257[_0x39a606(0x1de)]||_0x517257[_0x39a606(0x1de)][_0x39a606(0x1f3)]!==_0x517257[_0x39a606(0x1f3)]||!_0x517257[_0x39a606(0x1f1)]['files'])return{'status':_0x39a606(0x1f8)};const _0x5cbf80=_0x517257[_0x39a606(0x1de)]['skillCode']||_0x517257['skillCode'];if(!_0x5cbf80)return{'status':'not-applicable'};const _0xa1e7a8=await _0x517257[_0x39a606(0x1d6)](_0x517257['scope'],_0x5cbf80,_0x517257[_0x39a606(0x1ef)],_0x517257[_0x39a606(0x1de)][_0x39a606(0x1e6)]);try{_0x517257[_0x39a606(0x1f9)](_0x517257['publishInput'][_0x39a606(0x1d3)],_0xa1e7a8);}catch{return{'status':_0x39a606(0x1d4)};}return{'status':_0x39a606(0x1f7),'savedSkill':{..._0x517257[_0x39a606(0x1de)],'content':_0x517257[_0x39a606(0x1f1)][_0x39a606(0x1e8)],'files':_0x517257[_0x39a606(0x1f1)][_0x39a606(0x1d3)]}};}
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(_0x11d96e,_0x4d56a0){const _0x5654ec=a51_0x523f,_0x244a73=_0x11d96e();while(!![]){try{const _0x37030b=-parseInt(_0x5654ec(0x14a))/0x1+-parseInt(_0x5654ec(0x144))/0x2+-parseInt(_0x5654ec(0x152))/0x3*(-parseInt(_0x5654ec(0x14f))/0x4)+parseInt(_0x5654ec(0x145))/0x5+-parseInt(_0x5654ec(0x141))/0x6+-parseInt(_0x5654ec(0x14d))/0x7*(-parseInt(_0x5654ec(0x13f))/0x8)+parseInt(_0x5654ec(0x140))/0x9;if(_0x37030b===_0x4d56a0)break;else _0x244a73['push'](_0x244a73['shift']());}catch(_0x31b615){_0x244a73['push'](_0x244a73['shift']());}}}(a51_0x2d5b,0xdb493));function a51_0x523f(_0x4c626c,_0x170a08){_0x4c626c=_0x4c626c-0x13e;const _0x2d5b5b=a51_0x2d5b();let _0x523f9e=_0x2d5b5b[_0x4c626c];return _0x523f9e;}export function withRetargetExistingMetadata(_0x3180f1,_0x8d3e41,_0x5a1490={}){const _0x2abbae=a51_0x523f,_0x304e1c=_0x5a1490[_0x2abbae(0x148)]?_0x3180f1[_0x2abbae(0x142)]??_0x8d3e41[_0x2abbae(0x142)]:_0x8d3e41[_0x2abbae(0x142)]??_0x3180f1[_0x2abbae(0x142)];return{..._0x3180f1,'skillName':_0x304e1c,'description':_0x8d3e41[_0x2abbae(0x149)]??_0x3180f1[_0x2abbae(0x149)],'tags':Array[_0x2abbae(0x151)](_0x8d3e41['tags'])?_0x8d3e41['tags']:_0x3180f1['tags'],'version':_0x8d3e41[_0x2abbae(0x13e)]??_0x3180f1['version'],'sourceSessionId':_0x8d3e41[_0x2abbae(0x146)]??_0x3180f1[_0x2abbae(0x146)]};}export function buildRetargetWarning(_0x3bc5b1,_0x459009){const _0x5a9727=a51_0x523f;if(!_0x3bc5b1?.[_0x5a9727(0x14b)]||_0x3bc5b1['appCode']===_0x459009)return[];return[{'level':_0x5a9727(0x14c),'ruleId':_0x5a9727(0x147),'file':_0x5a9727(0x14e),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x3bc5b1['appCode']+_0x5a9727(0x150)+_0x459009+'\x20after\x20successful\x20push.','suggestion':_0x5a9727(0x143)}];}function a51_0x2d5b(){const _0x39bf28=['Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','1443702olhkTE','1872640TQcwID','sourceSessionId','skill-metadata-appcode-retargeted','preferInputSkillName','description','1570137YDSViF','appCode','warning','688758fgWAwS','lovrabet.skill.json','328meNrTB','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','isArray','26007XYZMNt','version','16akDQRh','28022148bWBPhY','7233378MzLAlS','skillName'];a51_0x2d5b=function(){return _0x39bf28;};return a51_0x2d5b();}
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(_0x3c7147,_0x2681b9){const _0x22752f=a52_0x34ba,_0x3685a3=_0x3c7147();while(!![]){try{const _0x45e7de=parseInt(_0x22752f(0x18c))/0x1*(parseInt(_0x22752f(0x181))/0x2)+parseInt(_0x22752f(0x17b))/0x3+parseInt(_0x22752f(0x18a))/0x4*(parseInt(_0x22752f(0x17f))/0x5)+-parseInt(_0x22752f(0x184))/0x6*(parseInt(_0x22752f(0x188))/0x7)+-parseInt(_0x22752f(0x180))/0x8+-parseInt(_0x22752f(0x185))/0x9*(-parseInt(_0x22752f(0x17e))/0xa)+parseInt(_0x22752f(0x17c))/0xb*(parseInt(_0x22752f(0x187))/0xc);if(_0x45e7de===_0x2681b9)break;else _0x3685a3['push'](_0x3685a3['shift']());}catch(_0x453ac9){_0x3685a3['push'](_0x3685a3['shift']());}}}(a52_0x3fea,0x3124e));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x1de31f){const _0x1f4f03=a52_0x34ba,_0x1c278d=_0x1de31f[_0x1f4f03(0x17a)]();if(!_0x1c278d||_0x1c278d==='all')return[_0x1f4f03(0x186),_0x1f4f03(0x17d)];if(_0x1c278d===_0x1f4f03(0x186)||_0x1c278d===_0x1f4f03(0x17d))return[_0x1c278d];throw CliErrors[_0x1f4f03(0x189)](_0x1f4f03(0x183)+_0x1de31f);}export function normalizeListScope(_0x2ff851){const _0x373a54=a52_0x34ba,_0x4d5dea=_0x2ff851[_0x373a54(0x17a)]();if(!_0x4d5dea)return _0x373a54(0x182);if(_0x4d5dea==='personal'||_0x4d5dea===_0x373a54(0x17d)||_0x4d5dea===_0x373a54(0x182))return _0x4d5dea;throw CliErrors[_0x373a54(0x189)](_0x373a54(0x18b)+_0x2ff851);}function a52_0x34ba(_0x4c0f35,_0x5ea0d4){_0x4c0f35=_0x4c0f35-0x17a;const _0x3feadb=a52_0x3fea();let _0x34baa4=_0x3feadb[_0x4c0f35];return _0x34baa4;}export function shouldListScope(_0x462882,_0x1924bd){const _0x4637f4=a52_0x34ba;if(_0x462882===_0x4637f4(0x182))return!![];return _0x462882===_0x1924bd;}export function listScopeToRuntimeScopes(_0x717ea8){const _0x57dfb6=a52_0x34ba;if(_0x717ea8===_0x57dfb6(0x182))return['personal',_0x57dfb6(0x17d)];return[_0x717ea8===_0x57dfb6(0x17d)?'company':_0x717ea8];}function a52_0x3fea(){const _0x5d7df7=['validation','117716SNJoBh','Unsupported\x20Skill\x20list\x20scope:\x20','2MFNecb','trim','499368KXOEBK','11BTauni','company','10pvFojD','5jUUTRh','1353960LYCWOu','76214RGgwJu','all','Unsupported\x20Skill\x20sync\x20scope:\x20','250968dyakfl','657819YSYSwp','personal','3315804ktSYsy','42KORCay'];a52_0x3fea=function(){return _0x5d7df7;};return a52_0x3fea();}export function listScopeToRemoteScope(_0x297c4e){return _0x297c4e;}
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(_0x595af2,_0x20933d){var _0x3c5a55=a53_0x3cfa,_0x3c8660=_0x595af2();while(!![]){try{var _0x51fcc0=parseInt(_0x3c5a55(0xa4))/0x1*(-parseInt(_0x3c5a55(0xac))/0x2)+-parseInt(_0x3c5a55(0xa8))/0x3+parseInt(_0x3c5a55(0xad))/0x4+parseInt(_0x3c5a55(0xae))/0x5+parseInt(_0x3c5a55(0xa6))/0x6*(-parseInt(_0x3c5a55(0x9e))/0x7)+-parseInt(_0x3c5a55(0xb0))/0x8*(-parseInt(_0x3c5a55(0xb4))/0x9)+parseInt(_0x3c5a55(0x9d))/0xa*(parseInt(_0x3c5a55(0xaa))/0xb);if(_0x51fcc0===_0x20933d)break;else _0x3c8660['push'](_0x3c8660['shift']());}catch(_0x599a04){_0x3c8660['push'](_0x3c8660['shift']());}}}(a53_0x186f,0x9268d));export function summarizeRuntimeSkill(_0x49aaf8){var _0x3c1022=a53_0x3cfa;return{'id':_0x49aaf8['id'],'skillCode':_0x49aaf8[_0x3c1022(0xa1)],'skillName':_0x49aaf8[_0x3c1022(0x9f)],'scope':_0x49aaf8['scope'],'version':_0x49aaf8[_0x3c1022(0xa0)],'readonly':_0x49aaf8['readonly']};}function a53_0x3cfa(_0x20448e,_0x199b83){_0x20448e=_0x20448e-0x9d;var _0x186fe1=a53_0x186f();var _0x3cfa80=_0x186fe1[_0x20448e];return _0x3cfa80;}export function summarizeLocalRuntimeSkill(_0x594282){var _0x1318d4=a53_0x3cfa;return{'id':_0x594282['id'],'skillCode':_0x594282[_0x1318d4(0xa1)],'skillName':_0x594282[_0x1318d4(0x9f)],'scope':_0x594282['scope'],'appCode':_0x594282[_0x1318d4(0xa5)],'version':_0x594282['version'],'status':_0x594282[_0x1318d4(0xaf)],'readonly':_0x594282['readonly'],'tags':_0x594282[_0x1318d4(0xa7)],'dir':_0x594282[_0x1318d4(0xb3)],'cacheDir':_0x594282[_0x1318d4(0xa9)],'skillMdPath':_0x594282[_0x1318d4(0xb2)],'metadataPath':_0x594282[_0x1318d4(0xab)],'linkedPaths':_0x594282[_0x1318d4(0xa3)],'contentHash':_0x594282[_0x1318d4(0xb1)],'treeHash':_0x594282[_0x1318d4(0xa2)],'pulledAt':_0x594282['pulledAt']};}function a53_0x186f(){var _0x3b1d08=['888910dJduvC','7VgiVNe','skillName','version','skillCode','treeHash','linkedPaths','239451nVAQCO','appCode','181842OCMjcz','tags','2240403NMldrj','cacheDir','121OiTbuu','metadataPath','6woVldt','2065084EITsgn','141935ACypJr','status','4581560Ijjcpa','contentHash','skillMdPath','dir','9mNohJi'];a53_0x186f=function(){return _0x3b1d08;};return a53_0x186f();}
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_0x138eb8=a54_0x37dc;(function(_0x450463,_0x2ac216){const _0x8f73e2=a54_0x37dc,_0x2c8a8c=_0x450463();while(!![]){try{const _0x2efca2=parseInt(_0x8f73e2(0x83))/0x1*(parseInt(_0x8f73e2(0x91))/0x2)+parseInt(_0x8f73e2(0x8f))/0x3*(-parseInt(_0x8f73e2(0xa2))/0x4)+parseInt(_0x8f73e2(0x8b))/0x5*(parseInt(_0x8f73e2(0x9c))/0x6)+parseInt(_0x8f73e2(0x98))/0x7*(-parseInt(_0x8f73e2(0x85))/0x8)+parseInt(_0x8f73e2(0x89))/0x9+parseInt(_0x8f73e2(0xa6))/0xa*(-parseInt(_0x8f73e2(0x97))/0xb)+parseInt(_0x8f73e2(0x99))/0xc*(parseInt(_0x8f73e2(0x9d))/0xd);if(_0x2efca2===_0x2ac216)break;else _0x2c8a8c['push'](_0x2c8a8c['shift']());}catch(_0x4df0b0){_0x2c8a8c['push'](_0x2c8a8c['shift']());}}}(a54_0x299a,0x4f81f));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=['write','read','trainer'];export const DEFAULT_SKILL_TARGET=a54_0x138eb8(0x92);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_0x138eb8(0x9e);export function validateSkillName(_0x35d52c){const _0x2fd287=a54_0x138eb8,_0x68a7a2=_0x35d52c['trim']();if(!SKILL_NAME_PATTERN[_0x2fd287(0x7d)](_0x68a7a2))throw CliErrors[_0x2fd287(0x81)](_0x2fd287(0xa1)+_0x35d52c+_0x2fd287(0xa5),_0x2fd287(0x94));return _0x68a7a2;}function a54_0x37dc(_0x2b6fa2,_0x11bd28){_0x2b6fa2=_0x2b6fa2-0x7d;const _0x299ab7=a54_0x299a();let _0x37dcec=_0x299ab7[_0x2b6fa2];return _0x37dcec;}export function normalizeSkillTemplateType(_0x3db97c){const _0x9d600c=a54_0x138eb8,_0x1a51a9=(_0x3db97c||_0x9d600c(0x86))['trim']()||'write';if(SKILL_TYPES[_0x9d600c(0xa3)](_0x1a51a9))return _0x1a51a9;throw CliErrors['validation'](_0x9d600c(0x9f)+_0x3db97c,'Use\x20one\x20of:\x20'+SKILL_TYPES[_0x9d600c(0x90)](',\x20')+'.');}export function renderSkillTemplate(_0xd9e918){const _0x32ce4f=a54_0x138eb8,_0x2becf0=validateSkillName(_0xd9e918[_0x32ce4f(0x80)]),_0x41d532=normalizeSkillTemplateType(_0xd9e918[_0x32ce4f(0x8d)]),_0x3d9d96=_0xd9e918[_0x32ce4f(0x7e)]??new Date()[_0x32ce4f(0xa4)]();return{'skillName':_0x2becf0,'type':_0x41d532,'files':[{'path':'SKILL.md','content':renderSkillMd(_0x2becf0,_0x41d532,_0x3d9d96)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x2becf0,_0x41d532)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x2becf0,_0x41d532)}]};}function renderSkillMd(_0x59b955,_0x141889,_0x355543){const _0x24a27e=a54_0x138eb8,_0x512765=typeWorkflow(_0x141889);return _0x24a27e(0x82)+_0x59b955+_0x24a27e(0x9a)+_0x141889+_0x24a27e(0xa7)+_0x355543+_0x24a27e(0x95)+_0x59b955+_0x24a27e(0x9b)+_0x512765+'\x0a\x0a'+businessStateSection(_0x141889)+_0x24a27e(0x93);}function renderRuntimeContract(_0x47c4c3,_0x42c63d){const _0x588757=a54_0x138eb8,_0xef003d=_0x42c63d===_0x588757(0x86)?_0x588757(0x96):'';return _0x588757(0x7f)+_0x47c4c3+'\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='+_0x42c63d+'\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'+_0xef003d+'\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 renderOutputContract(_0x3c4104,_0x36cef8){const _0x158763=a54_0x138eb8,_0x157822=_0x36cef8===_0x158763(0x86)?'write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。':_0x36cef8+_0x158763(0xa0);return _0x158763(0x87)+_0x3c4104+'\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'+_0x157822+_0x158763(0x84);}function typeWorkflow(_0x15a127){const _0x77ea60=a54_0x138eb8;if(_0x15a127==='read')return _0x77ea60(0x8c);if(_0x15a127===_0x77ea60(0xa8))return _0x77ea60(0x88);return _0x77ea60(0x8e);}function a54_0x299a(){const _0xeb9df1=['146676bEAMMc','3393WkuwEY','references/output-contract.md','Unsupported\x20Skill\x20type:\x20','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','Invalid\x20Skill\x20name:\x20','12uurdeZ','includes','toISOString','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','270khsJiU','\x0a\x20\x20created:\x20\x22','trainer','test','timestamp','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','skillName','validation','---\x0aname:\x20','56662rAXsWY','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','8FVgbTm','write','#\x20Output\x20Contract\x0a\x0a','1.\x20受控模板预览:【填写待维护内容、影响范围和预览方式】\x0a2.\x20用户确认:【填写确认信息和不可省略的人工判断点】\x0a3.\x20受控维护:【填写确认后的维护步骤和记录方式】\x0a4.\x20只读核对:【填写维护后的核对入口、差异和回滚/修正方式】','3410136frFndc','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','45XfmCZL','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','type','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','199371ohaaoy','join','4naaCro','.agents/skills','\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\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','245113Ahptgq','1226162PNELad','27108pZbFWk','\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','\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'];a54_0x299a=function(){return _0xeb9df1;};return a54_0x299a();}function businessStateSection(_0x276ba1){const _0x1c453f=a54_0x138eb8;if(_0x276ba1!==_0x1c453f(0x86))return'';return _0x1c453f(0x8a);}
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);}