@lovrabet/lovrabet-cli 2.1.9-beta.4 → 2.1.9

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 (117) 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/response.js +1 -1
  87. package/lib/framework/runner-confirmation.js +1 -1
  88. package/lib/framework/runner-error.js +1 -1
  89. package/lib/framework/runner.js +1 -1
  90. package/lib/framework/schema-export.js +1 -1
  91. package/lib/framework/service-order.js +1 -1
  92. package/lib/framework/types.js +1 -1
  93. package/lib/generated/build-info.js +1 -1
  94. package/lib/help.js +1 -1
  95. package/lib/skills/npx-skills-add.js +1 -1
  96. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  97. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  98. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  99. package/lib/skills/runtime-skill-sync/links.js +1 -1
  100. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  101. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  102. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  103. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  104. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  105. package/lib/skills/runtime-skill-sync/push.js +1 -1
  106. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  107. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  108. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  109. package/lib/skills/runtime-skill-sync.js +1 -1
  110. package/lib/utils/apply-jq-filter.js +1 -1
  111. package/lib/utils/logger.js +1 -1
  112. package/lib/utils/params.js +1 -1
  113. package/lib/utils/platform.js +1 -1
  114. package/lib/utils/update-notice.js +1 -1
  115. package/lib/utils/version.js +1 -1
  116. package/lib/utils/write-cli-side-channel.js +1 -1
  117. package/package.json +1 -1
@@ -1 +1 @@
1
- const a40_0x35eed1=a40_0x667d;(function(_0x675ec4,_0x20f9a3){const _0x287ae2=a40_0x667d,_0xd1ef56=_0x675ec4();while(!![]){try{const _0x30084f=parseInt(_0x287ae2(0x9b))/0x1+-parseInt(_0x287ae2(0xbf))/0x2*(-parseInt(_0x287ae2(0xc2))/0x3)+parseInt(_0x287ae2(0x9c))/0x4*(-parseInt(_0x287ae2(0x84))/0x5)+parseInt(_0x287ae2(0xa4))/0x6+parseInt(_0x287ae2(0xbd))/0x7+-parseInt(_0x287ae2(0x7b))/0x8*(-parseInt(_0x287ae2(0x7e))/0x9)+-parseInt(_0x287ae2(0xc8))/0xa*(parseInt(_0x287ae2(0xb8))/0xb);if(_0x30084f===_0x20f9a3)break;else _0xd1ef56['push'](_0xd1ef56['shift']());}catch(_0x4a44ff){_0xd1ef56['push'](_0xd1ef56['shift']());}}}(a40_0xe65e,0x5020c));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';import{normalizeServiceTreeManifest,validateServiceTreeManifest}from'@lovrabet/cli-framework';import{PRODUCT_CONFIG}from'../../constant/product.js';import{CliErrors}from'../../errors.js';export const SERVICE_REGISTRY_SCHEMA_VERSION=0x1;export const SERVICE_REGISTRY_FILE_NAME=a40_0x35eed1(0xca);export function getServiceRegistryPath(_0x3e6931={}){const _0x5c8b38=a40_0x35eed1;return resolve(_0x3e6931[_0x5c8b38(0x86)]??homedir(),PRODUCT_CONFIG['homeDirName'],SERVICE_REGISTRY_FILE_NAME);}export function emptyServiceRegistry(){return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'services':[]};}export function readServiceRegistry(_0x3ee74c={}){const _0xb6ba05=a40_0x35eed1,_0x36dc73=getServiceRegistryPath(_0x3ee74c);if(!existsSync(_0x36dc73))return emptyServiceRegistry();try{const _0x442a05=readFileSync(_0x36dc73,'utf8');if(!_0x442a05[_0xb6ba05(0x9f)]())return emptyServiceRegistry();const _0x17eb3c=JSON['parse'](_0x442a05);if(_0x17eb3c[_0xb6ba05(0x7c)]!==SERVICE_REGISTRY_SCHEMA_VERSION)throw CliErrors[_0xb6ba05(0xa8)](_0xb6ba05(0x94)+String(_0x17eb3c['schemaVersion']),'Remove\x20or\x20migrate\x20'+_0x36dc73+'.');if(!Array[_0xb6ba05(0xce)](_0x17eb3c[_0xb6ba05(0xc1)]))return emptyServiceRegistry();return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x17eb3c[_0xb6ba05(0x92)],'services':_0x17eb3c[_0xb6ba05(0xc1)]};}catch(_0x20296c){if(_0x20296c instanceof Error&&_0x20296c[_0xb6ba05(0xc3)]===_0xb6ba05(0xb5))throw _0x20296c;throw CliErrors[_0xb6ba05(0xa8)]('Invalid\x20service\x20registry\x20JSON:\x20'+_0x36dc73,'Fix\x20the\x20JSON\x20file\x20or\x20move\x20it\x20aside\x20and\x20import\x20services\x20again.');}}export function writeServiceRegistry(_0x17704b,_0x31abe9={}){const _0x21a455=a40_0x35eed1,_0x539eed=getServiceRegistryPath(_0x31abe9),_0x268f07=dirname(_0x539eed);!existsSync(_0x268f07)&&mkdirSync(_0x268f07,{'recursive':!![]});const _0x592c44=_0x539eed+_0x21a455(0x7d);try{writeFileSync(_0x592c44,JSON['stringify'](_0x17704b,null,0x2)+'\x0a',{'encoding':_0x21a455(0xbb),'mode':0x180}),renameSync(_0x592c44,_0x539eed);}catch(_0x485b92){try{unlinkSync(_0x592c44);}catch{}if(_0x485b92?.[_0x21a455(0x93)]===_0x21a455(0xa1))throw CliErrors[_0x21a455(0xa8)](_0x21a455(0xbc)+_0x539eed);throw _0x485b92;}return _0x539eed;}export function loadServiceManifestFromFile(_0x6d35fa){const _0x55e545=a40_0x35eed1,_0x309dca=resolve(_0x6d35fa);if(!existsSync(_0x309dca))throw CliErrors[_0x55e545(0xa8)](_0x55e545(0xaa)+_0x6d35fa);let _0x2ea326;const _0x555cf9=readFileSync(_0x309dca,_0x55e545(0xbb));try{_0x2ea326=JSON[_0x55e545(0x9a)](_0x555cf9);}catch{throw CliErrors[_0x55e545(0xa8)](_0x55e545(0xa0)+_0x6d35fa,_0x55e545(0xb9));}const _0x3242c9=sha256(_0x555cf9),_0x22416b=extractLoadedServiceManifests(_0x2ea326,_0x3242c9),_0x23f103=aggregateValidationReports(_0x22416b),_0x4e69a1=_0x22416b[0x0];return{'filePath':_0x309dca,'hash':_0x3242c9,'kind':isServiceRegistryLike(_0x2ea326)?_0x55e545(0x8a):'manifest','manifest':_0x4e69a1?.[_0x55e545(0xae)]??_0x2ea326,'report':_0x23f103,'normalizedManifest':_0x22416b[_0x55e545(0xbe)]===0x1?_0x4e69a1?.[_0x55e545(0xc4)]:undefined,'manifests':_0x22416b};}export function importServiceManifest(_0x537672,_0x2568d2={}){const _0x2e082e=a40_0x35eed1,_0x1ce341=loadServiceManifestFromFile(_0x537672);if(!_0x1ce341[_0x2e082e(0xc0)]['ok'])throw CliErrors['validation'](formatValidationFailure(_0x1ce341['report']),_0x2e082e(0xc7));if(_0x1ce341[_0x2e082e(0x95)][_0x2e082e(0xbe)]===0x0)throw CliErrors[_0x2e082e(0xa8)](_0x2e082e(0x96),_0x2e082e(0xa6));const _0x1e276a=readServiceRegistry(_0x2568d2),_0x2d871b=(_0x2568d2[_0x2e082e(0xb6)]??(()=>new Date()))()['toISOString'](),_0x3ea7f0=[];let _0x5939fd=0x0,_0x2d7787=0x0;for(const _0x38bd1b of _0x1ce341[_0x2e082e(0x95)]){if(!_0x38bd1b[_0x2e082e(0xc4)])continue;const _0x3da609=_0x38bd1b['normalizedManifest'][_0x2e082e(0xaf)]['code'],_0x343530={'serviceCode':_0x3da609,'version':_0x38bd1b['normalizedManifest']['version'],'importedAt':_0x2d871b,'source':{'type':_0x2e082e(0xb4),'path':_0x1ce341[_0x2e082e(0x88)],'hash':_0x38bd1b['sourceHash']},'manifest':_0x38bd1b[_0x2e082e(0xae)],'normalizedManifest':_0x38bd1b[_0x2e082e(0xc4)]},_0x530c93=_0x1e276a['services']['findIndex'](_0x20052e=>_0x20052e[_0x2e082e(0x8b)]===_0x3da609);_0x530c93>=0x0?(_0x1e276a[_0x2e082e(0xc1)][_0x530c93]=_0x343530,_0x2d7787++):(_0x1e276a[_0x2e082e(0xc1)][_0x2e082e(0x90)](_0x343530),_0x5939fd++),_0x3ea7f0[_0x2e082e(0x90)](_0x343530);}_0x1e276a[_0x2e082e(0xc1)][_0x2e082e(0x8c)]((_0x50f93b,_0x231aec)=>_0x50f93b[_0x2e082e(0x8b)][_0x2e082e(0x81)](_0x231aec[_0x2e082e(0x8b)])),_0x1e276a[_0x2e082e(0x92)]=_0x2d871b;const _0x5dc981=writeServiceRegistry(_0x1e276a,_0x2568d2);return{'registryPath':_0x5dc981,'entry':_0x3ea7f0[0x0],'replaced':_0x3ea7f0[_0x2e082e(0xbe)]===0x1?_0x2d7787===0x1:_0x2d7787>0x0,'entries':_0x3ea7f0,'imported':_0x5939fd,'updated':_0x2d7787,'serviceCount':_0x1e276a['services'][_0x2e082e(0xbe)]};}export function exportServiceManifest(_0x632c7c,_0x14968c,_0x496c42={}){const _0x24fc03=a40_0x35eed1,_0xb0bc00=getServiceRegistryPath(_0x496c42),_0x525206=getLocalServiceEntry(_0x632c7c,_0x496c42);if(!_0x525206)throw CliErrors[_0x24fc03(0xa8)](_0x24fc03(0xa9)+_0x632c7c,_0x24fc03(0xba));const _0x39920c=resolve(_0x14968c),_0x37ba1d=dirname(_0x39920c);return!existsSync(_0x37ba1d)&&mkdirSync(_0x37ba1d,{'recursive':!![]}),writeFileSync(_0x39920c,JSON[_0x24fc03(0xab)](_0x525206['manifest'],null,0x2)+'\x0a',{'encoding':_0x24fc03(0xbb),'mode':0x180}),{'registryPath':_0xb0bc00,'filePath':_0x39920c,'entry':_0x525206};}function a40_0x667d(_0x5d30d9,_0xd33cfb){_0x5d30d9=_0x5d30d9-0x7b;const _0xe65e49=a40_0xe65e();let _0x667d15=_0xe65e49[_0x5d30d9];return _0x667d15;}export function removeServiceManifest(_0x4eb6de,_0x593fd8={}){const _0x1927c9=a40_0x35eed1,_0x361154=readServiceRegistry(_0x593fd8),_0x42f6d7=_0x4eb6de['trim'](),_0x5af1fb=_0x361154[_0x1927c9(0xc1)][_0x1927c9(0x9d)](_0x55361d=>_0x55361d[_0x1927c9(0x8b)]===_0x42f6d7);if(_0x5af1fb<0x0)throw CliErrors['validation'](_0x1927c9(0xa9)+_0x42f6d7,_0x1927c9(0xba));const [_0x592228]=_0x361154[_0x1927c9(0xc1)][_0x1927c9(0xa3)](_0x5af1fb,0x1),_0x4728f8=(_0x593fd8[_0x1927c9(0xb6)]??(()=>new Date()))()['toISOString']();_0x361154[_0x1927c9(0x92)]=_0x4728f8;const _0x571a14=writeServiceRegistry(_0x361154,_0x593fd8);return{'registryPath':_0x571a14,'entry':_0x592228,'serviceCount':_0x361154[_0x1927c9(0xc1)][_0x1927c9(0xbe)]};}function a40_0xe65e(){const _0x4923e9=['registry','serviceCode','sort','missing','reduce','map','push','digest','updatedAt','code','Unsupported\x20service\x20registry\x20schemaVersion:\x20','manifests','Service\x20registry\x20has\x20no\x20services\x20to\x20import.','commandCount','message','slice','parse','574694oDrQYe','44tFxfne','findIndex','startsWith','trim','Invalid\x20service\x20manifest\x20JSON:\x20','ENOENT','Unsupported\x20schemaVersion:\x20','splice','3535728xMZqSV','].manifest.','Add\x20at\x20least\x20one\x20service\x20manifest,\x20then\x20run\x20service\x20import\x20again.','target','validation','Local\x20service\x20not\x20found:\x20','Service\x20manifest\x20file\x20not\x20found:\x20','stringify','importedAt','update','manifest','service','command','hex','string','flatMap','file','CliError','now','$.services[','6446zbpGgs','Fix\x20the\x20JSON\x20syntax\x20and\x20run\x20service\x20validate\x20again.','Run\x20lovrabet\x20service\x20list\x20to\x20see\x20imported\x20services.','utf8','Cannot\x20write\x20service\x20registry:\x20','2232027SDtvJR','length','6PxiLHy','report','services','607938APxVBt','name','normalizedManifest','version','join','Fix\x20the\x20service\x20manifest\x20and\x20run\x20service\x20validate\x20again.','35780KrQkfN','find','service.json','source','registryIndex','path','isArray','542728uovQBz','schemaVersion','.tmp','63RAiugo','kind','sha256','localeCompare','description','errors','63980TLukqQ','commands','homeDir','].manifest','filePath','empty'];a40_0xe65e=function(){return _0x4923e9;};return a40_0xe65e();}export function listLocalServices(_0x42c25e={}){return readServiceRegistry(_0x42c25e)['services'];}export function getLocalServiceEntry(_0x1379f3,_0x389a35={}){const _0x310eea=a40_0x35eed1;return readServiceRegistry(_0x389a35)[_0x310eea(0xc1)][_0x310eea(0xc9)](_0x2ad072=>_0x2ad072[_0x310eea(0x8b)]===_0x1379f3[_0x310eea(0x9f)]());}export function listLocalServiceTrees(_0x4ab414={}){const _0xc13850=a40_0x35eed1;return readServiceRegistry(_0x4ab414)[_0xc13850(0xc1)][_0xc13850(0x8f)](_0xfa8584=>_0xfa8584[_0xc13850(0xc4)]);}export function inspectServiceRegistry(_0x26cc0d={}){const _0x2b145e=a40_0x35eed1,_0xc964d4=getServiceRegistryPath(_0x26cc0d);if(!existsSync(_0xc964d4))return emptyServiceRegistryInspection(_0xc964d4,_0x2b145e(0x8d),![]);try{const _0xcd88d5=readFileSync(_0xc964d4,_0x2b145e(0xbb));if(!_0xcd88d5[_0x2b145e(0x9f)]())return emptyServiceRegistryInspection(_0xc964d4,_0x2b145e(0x89),!![]);const _0x3121c2=JSON[_0x2b145e(0x9a)](_0xcd88d5);if(_0x3121c2['schemaVersion']!==SERVICE_REGISTRY_SCHEMA_VERSION)return{...emptyServiceRegistryInspection(_0xc964d4,'invalid',!![]),'schemaVersion':_0x3121c2['schemaVersion'],'message':_0x2b145e(0xa2)+String(_0x3121c2[_0x2b145e(0x7c)])};if(!Array[_0x2b145e(0xce)](_0x3121c2['services']))return{...emptyServiceRegistryInspection(_0xc964d4,'invalid',!![]),'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x3121c2['updatedAt'],'message':'services\x20must\x20be\x20an\x20array'};const _0x4aefea=_0x3121c2[_0x2b145e(0xc1)][_0x2b145e(0x8f)](summarizeLocalServiceEntry);return{'registryPath':_0xc964d4,'exists':!![],'status':'ok','schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x3121c2[_0x2b145e(0x92)],'serviceCount':_0x4aefea[_0x2b145e(0xbe)],'commandCount':_0x4aefea[_0x2b145e(0x8e)]((_0x31a73b,_0x57272a)=>_0x31a73b+_0x57272a[_0x2b145e(0x97)],0x0),'services':_0x4aefea};}catch(_0x4e71ac){return{...emptyServiceRegistryInspection(_0xc964d4,'invalid',!![]),'message':_0x4e71ac instanceof Error?_0x4e71ac[_0x2b145e(0x98)]:String(_0x4e71ac)};}}export function formatValidationFailure(_0x11cdf5){const _0x5a9b58=a40_0x35eed1,_0x23a6a3=_0x11cdf5[_0x5a9b58(0x83)][_0x5a9b58(0x8f)](_0x2c311f=>_0x2c311f[_0x5a9b58(0xcd)]+':\x20'+_0x2c311f[_0x5a9b58(0x98)]);return'Service\x20manifest\x20validation\x20failed:\x0a'+_0x23a6a3[_0x5a9b58(0xc6)]('\x0a');}function extractLoadedServiceManifests(_0x4f921d,_0x5e4a31){const _0x5dbed1=a40_0x35eed1;if(!isServiceRegistryLike(_0x4f921d)){const _0x3514df=_0x4f921d,_0x445427=validateServiceTreeManifest(_0x3514df);return[{'manifest':_0x3514df,'report':_0x445427,'normalizedManifest':_0x445427['ok']?normalizeServiceTreeManifest(_0x3514df):undefined,'sourceHash':_0x5e4a31}];}return _0x4f921d[_0x5dbed1(0xc1)][_0x5dbed1(0x8f)]((_0x206046,_0x4b6c08)=>{const _0x35ebe1=_0x5dbed1,_0xf260a2=isObjectRecord(_0x206046)?_0x206046[_0x35ebe1(0xae)]:undefined,_0x5e6f57=validateServiceTreeManifest(_0xf260a2),_0x287ba7=isObjectRecord(_0x206046)&&typeof _0x206046[_0x35ebe1(0x8b)]===_0x35ebe1(0xb2)?_0x206046[_0x35ebe1(0x8b)]:undefined;return{'manifest':_0xf260a2,'report':_0x5e6f57,'normalizedManifest':_0x5e6f57['ok']?normalizeServiceTreeManifest(_0xf260a2):undefined,'sourceHash':sha256(JSON[_0x35ebe1(0xab)](_0xf260a2,null,0x2)+'\x0a'),'registryIndex':_0x4b6c08,'registryServiceCode':_0x287ba7};});}function aggregateValidationReports(_0xad4155){const _0x4bf3be=a40_0x35eed1,_0x160f49=_0xad4155[_0x4bf3be(0xb3)](_0x523f70=>_0x523f70[_0x4bf3be(0xcc)]===undefined?_0x523f70[_0x4bf3be(0xc0)][_0x4bf3be(0x83)]:_0x523f70[_0x4bf3be(0xc0)][_0x4bf3be(0x83)][_0x4bf3be(0x8f)](_0xcf4c70=>({..._0xcf4c70,'path':prefixRegistryIssuePath(_0x523f70[_0x4bf3be(0xcc)],_0xcf4c70[_0x4bf3be(0xcd)])}))),_0x2e7dcc=_0xad4155[_0x4bf3be(0xb3)](_0x2650e9=>_0x2650e9['registryIndex']===undefined?_0x2650e9[_0x4bf3be(0xc0)]['warnings']:_0x2650e9[_0x4bf3be(0xc0)]['warnings'][_0x4bf3be(0x8f)](_0x4dbc26=>({..._0x4dbc26,'path':prefixRegistryIssuePath(_0x2650e9[_0x4bf3be(0xcc)],_0x4dbc26[_0x4bf3be(0xcd)])})));return{'ok':_0x160f49[_0x4bf3be(0xbe)]===0x0,'errors':_0x160f49,'warnings':_0x2e7dcc};}function prefixRegistryIssuePath(_0x4bd04e,_0x24355a){const _0x1dd251=a40_0x35eed1;if(_0x24355a==='$')return _0x1dd251(0xb7)+_0x4bd04e+_0x1dd251(0x87);if(_0x24355a[_0x1dd251(0x9e)]('$.'))return'$.services['+_0x4bd04e+_0x1dd251(0x87)+_0x24355a[_0x1dd251(0x99)](0x1);if(_0x24355a[_0x1dd251(0x9e)]('$['))return'$.services['+_0x4bd04e+_0x1dd251(0x87)+_0x24355a[_0x1dd251(0x99)](0x1);return _0x1dd251(0xb7)+_0x4bd04e+_0x1dd251(0xa5)+_0x24355a;}function isServiceRegistryLike(_0xd2dcad){const _0x119dd4=a40_0x35eed1;return isObjectRecord(_0xd2dcad)&&_0xd2dcad[_0x119dd4(0x7c)]===SERVICE_REGISTRY_SCHEMA_VERSION&&Array['isArray'](_0xd2dcad[_0x119dd4(0xc1)]);}function isObjectRecord(_0x515719){const _0x28e9c8=a40_0x35eed1;return Boolean(_0x515719)&&typeof _0x515719==='object'&&!Array[_0x28e9c8(0xce)](_0x515719);}function emptyServiceRegistryInspection(_0x40771c,_0x24739f,_0x29afa6){return{'registryPath':_0x40771c,'exists':_0x29afa6,'status':_0x24739f,'serviceCount':0x0,'commandCount':0x0,'services':[]};}function summarizeLocalServiceEntry(_0x5840d3){const _0x398df2=a40_0x35eed1,_0x272776=_0x5840d3['normalizedManifest'],_0x4ddfe6=_0x272776[_0x398df2(0x85)][_0x398df2(0x8f)](_0xb11e30=>({'path':_0xb11e30['cliPath'],'description':_0xb11e30[_0x398df2(0x82)],'risk':_0xb11e30['risk'],'targetKind':_0xb11e30['target'][_0x398df2(0x7f)],'targetCommand':_0xb11e30[_0x398df2(0xa7)][_0x398df2(0xb0)]}));return{'serviceCode':_0x5840d3[_0x398df2(0x8b)],'name':_0x272776['service']['name'],'description':_0x272776[_0x398df2(0xaf)][_0x398df2(0x82)],'version':_0x5840d3[_0x398df2(0xc5)],'importedAt':_0x5840d3[_0x398df2(0xac)],'source':_0x5840d3[_0x398df2(0xcb)],'commandCount':_0x4ddfe6[_0x398df2(0xbe)],'commands':_0x4ddfe6};}function sha256(_0x29c0e7){const _0x3a1df5=a40_0x35eed1;return createHash(_0x3a1df5(0x80))[_0x3a1df5(0xad)](_0x29c0e7)[_0x3a1df5(0x91)](_0x3a1df5(0xb1));}
1
+ (function(_0x54bf7c,_0xf42f6e){const _0x41d4e2=a40_0x4c4d,_0x4e6f0e=_0x54bf7c();while(!![]){try{const _0x16a840=parseInt(_0x41d4e2(0x194))/0x1+parseInt(_0x41d4e2(0x190))/0x2+-parseInt(_0x41d4e2(0x1cc))/0x3*(parseInt(_0x41d4e2(0x18e))/0x4)+parseInt(_0x41d4e2(0x1a5))/0x5*(-parseInt(_0x41d4e2(0x1ad))/0x6)+parseInt(_0x41d4e2(0x1bf))/0x7*(parseInt(_0x41d4e2(0x19e))/0x8)+parseInt(_0x41d4e2(0x1d1))/0x9+parseInt(_0x41d4e2(0x19a))/0xa;if(_0x16a840===_0xf42f6e)break;else _0x4e6f0e['push'](_0x4e6f0e['shift']());}catch(_0x192fdf){_0x4e6f0e['push'](_0x4e6f0e['shift']());}}}(a40_0x23cd,0x8390a));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';import{normalizeServiceTreeManifest,validateServiceTreeManifest}from'@lovrabet/cli-framework';import{PRODUCT_CONFIG}from'../../constant/product.js';import{CliErrors}from'../../errors.js';export const SERVICE_REGISTRY_SCHEMA_VERSION=0x1;export const SERVICE_REGISTRY_FILE_NAME='service.json';function a40_0x4c4d(_0x477ed4,_0xbb756c){_0x477ed4=_0x477ed4-0x18b;const _0x23cdbd=a40_0x23cd();let _0x4c4d72=_0x23cdbd[_0x477ed4];return _0x4c4d72;}export function getServiceRegistryPath(_0x261cd7={}){const _0x2827ff=a40_0x4c4d;return resolve(_0x261cd7[_0x2827ff(0x1b5)]??homedir(),PRODUCT_CONFIG[_0x2827ff(0x18f)],SERVICE_REGISTRY_FILE_NAME);}export function emptyServiceRegistry(){return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'services':[]};}export function readServiceRegistry(_0x2f3dd7={}){const _0x485892=a40_0x4c4d,_0x2415d4=getServiceRegistryPath(_0x2f3dd7);if(!existsSync(_0x2415d4))return emptyServiceRegistry();try{const _0x4eea41=readFileSync(_0x2415d4,_0x485892(0x19c));if(!_0x4eea41[_0x485892(0x1c4)]())return emptyServiceRegistry();const _0x2db858=JSON[_0x485892(0x1c1)](_0x4eea41);if(_0x2db858[_0x485892(0x1b2)]!==SERVICE_REGISTRY_SCHEMA_VERSION)throw CliErrors[_0x485892(0x18d)](_0x485892(0x1b1)+String(_0x2db858[_0x485892(0x1b2)]),'Remove\x20or\x20migrate\x20'+_0x2415d4+'.');if(!Array['isArray'](_0x2db858[_0x485892(0x19f)]))return emptyServiceRegistry();return{'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x2db858[_0x485892(0x1aa)],'services':_0x2db858[_0x485892(0x19f)]};}catch(_0x3accd4){if(_0x3accd4 instanceof Error&&_0x3accd4['name']===_0x485892(0x192))throw _0x3accd4;throw CliErrors[_0x485892(0x18d)](_0x485892(0x197)+_0x2415d4,_0x485892(0x19d));}}export function writeServiceRegistry(_0x54bb06,_0x5db04b={}){const _0x31c1bf=a40_0x4c4d,_0x588b0d=getServiceRegistryPath(_0x5db04b),_0x350dca=dirname(_0x588b0d);!existsSync(_0x350dca)&&mkdirSync(_0x350dca,{'recursive':!![]});const _0x15f0cf=_0x588b0d+_0x31c1bf(0x1b9);try{writeFileSync(_0x15f0cf,JSON[_0x31c1bf(0x1b0)](_0x54bb06,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x15f0cf,_0x588b0d);}catch(_0x559caf){try{unlinkSync(_0x15f0cf);}catch{}if(_0x559caf?.[_0x31c1bf(0x1b3)]===_0x31c1bf(0x1af))throw CliErrors[_0x31c1bf(0x18d)]('Cannot\x20write\x20service\x20registry:\x20'+_0x588b0d);throw _0x559caf;}return _0x588b0d;}export function loadServiceManifestFromFile(_0x43c723){const _0x3ad136=a40_0x4c4d,_0x571bfa=resolve(_0x43c723);if(!existsSync(_0x571bfa))throw CliErrors['validation'](_0x3ad136(0x1b6)+_0x43c723);let _0x1d472d;const _0x30a86e=readFileSync(_0x571bfa,_0x3ad136(0x19c));try{_0x1d472d=JSON[_0x3ad136(0x1c1)](_0x30a86e);}catch{throw CliErrors['validation'](_0x3ad136(0x1ab)+_0x43c723,'Fix\x20the\x20JSON\x20syntax\x20and\x20run\x20service\x20validate\x20again.');}const _0x3df027=sha256(_0x30a86e),_0x26111c=extractLoadedServiceManifests(_0x1d472d,_0x3df027),_0x28a2de=aggregateValidationReports(_0x26111c),_0xd8a9dc=_0x26111c[0x0];return{'filePath':_0x571bfa,'hash':_0x3df027,'kind':isServiceRegistryLike(_0x1d472d)?'registry':_0x3ad136(0x1ae),'manifest':_0xd8a9dc?.[_0x3ad136(0x1ae)]??_0x1d472d,'report':_0x28a2de,'normalizedManifest':_0x26111c['length']===0x1?_0xd8a9dc?.[_0x3ad136(0x1cd)]:undefined,'manifests':_0x26111c};}export function importServiceManifest(_0x95d43b,_0xa71bf0={}){const _0x3d06d2=a40_0x4c4d,_0x14227a=loadServiceManifestFromFile(_0x95d43b);if(!_0x14227a[_0x3d06d2(0x1a7)]['ok'])throw CliErrors[_0x3d06d2(0x18d)](formatValidationFailure(_0x14227a[_0x3d06d2(0x1a7)]),'Fix\x20the\x20service\x20manifest\x20and\x20run\x20service\x20validate\x20again.');if(_0x14227a[_0x3d06d2(0x195)][_0x3d06d2(0x191)]===0x0)throw CliErrors[_0x3d06d2(0x18d)]('Service\x20registry\x20has\x20no\x20services\x20to\x20import.','Add\x20at\x20least\x20one\x20service\x20manifest,\x20then\x20run\x20service\x20import\x20again.');const _0x5ec95e=readServiceRegistry(_0xa71bf0),_0x1ccf94=(_0xa71bf0[_0x3d06d2(0x18b)]??(()=>new Date()))()[_0x3d06d2(0x199)](),_0x1c90c7=[];let _0x4842e3=0x0,_0x2c9b24=0x0;for(const _0x3aa8fe of _0x14227a[_0x3d06d2(0x195)]){if(!_0x3aa8fe[_0x3d06d2(0x1cd)])continue;const _0x555ee4=_0x3aa8fe[_0x3d06d2(0x1cd)][_0x3d06d2(0x1c5)][_0x3d06d2(0x1b3)],_0x181e03={'serviceCode':_0x555ee4,'version':_0x3aa8fe[_0x3d06d2(0x1cd)][_0x3d06d2(0x1bb)],'importedAt':_0x1ccf94,'source':{'type':'file','path':_0x14227a[_0x3d06d2(0x1a8)],'hash':_0x3aa8fe[_0x3d06d2(0x1a9)]},'manifest':_0x3aa8fe[_0x3d06d2(0x1ae)],'normalizedManifest':_0x3aa8fe['normalizedManifest']},_0x550b55=_0x5ec95e[_0x3d06d2(0x19f)][_0x3d06d2(0x1c3)](_0x33542a=>_0x33542a[_0x3d06d2(0x1be)]===_0x555ee4);_0x550b55>=0x0?(_0x5ec95e[_0x3d06d2(0x19f)][_0x550b55]=_0x181e03,_0x2c9b24++):(_0x5ec95e[_0x3d06d2(0x19f)]['push'](_0x181e03),_0x4842e3++),_0x1c90c7['push'](_0x181e03);}_0x5ec95e['services'][_0x3d06d2(0x1a4)]((_0x26af50,_0x6cb939)=>_0x26af50['serviceCode'][_0x3d06d2(0x1b7)](_0x6cb939[_0x3d06d2(0x1be)])),_0x5ec95e[_0x3d06d2(0x1aa)]=_0x1ccf94;const _0x2450c3=writeServiceRegistry(_0x5ec95e,_0xa71bf0);return{'registryPath':_0x2450c3,'entry':_0x1c90c7[0x0],'replaced':_0x1c90c7[_0x3d06d2(0x191)]===0x1?_0x2c9b24===0x1:_0x2c9b24>0x0,'entries':_0x1c90c7,'imported':_0x4842e3,'updated':_0x2c9b24,'serviceCount':_0x5ec95e[_0x3d06d2(0x19f)][_0x3d06d2(0x191)]};}export function exportServiceManifest(_0x14fdd2,_0x4719eb,_0x21bb29={}){const _0x2446d8=a40_0x4c4d,_0x4221bf=getServiceRegistryPath(_0x21bb29),_0x311fc0=getLocalServiceEntry(_0x14fdd2,_0x21bb29);if(!_0x311fc0)throw CliErrors[_0x2446d8(0x18d)](_0x2446d8(0x1a0)+_0x14fdd2,_0x2446d8(0x1c7));const _0x2b44df=resolve(_0x4719eb),_0x1911a5=dirname(_0x2b44df);return!existsSync(_0x1911a5)&&mkdirSync(_0x1911a5,{'recursive':!![]}),writeFileSync(_0x2b44df,JSON[_0x2446d8(0x1b0)](_0x311fc0['manifest'],null,0x2)+'\x0a',{'encoding':_0x2446d8(0x19c),'mode':0x180}),{'registryPath':_0x4221bf,'filePath':_0x2b44df,'entry':_0x311fc0};}export function removeServiceManifest(_0x1c5a1d,_0x3c78f4={}){const _0x15c7e1=a40_0x4c4d,_0x299645=readServiceRegistry(_0x3c78f4),_0x50f894=_0x1c5a1d[_0x15c7e1(0x1c4)](),_0xf43e3d=_0x299645[_0x15c7e1(0x19f)][_0x15c7e1(0x1c3)](_0x278b4b=>_0x278b4b[_0x15c7e1(0x1be)]===_0x50f894);if(_0xf43e3d<0x0)throw CliErrors['validation'](_0x15c7e1(0x1a0)+_0x50f894,_0x15c7e1(0x1c7));const [_0x59a7d7]=_0x299645[_0x15c7e1(0x19f)][_0x15c7e1(0x1d3)](_0xf43e3d,0x1),_0x4c7fb0=(_0x3c78f4[_0x15c7e1(0x18b)]??(()=>new Date()))()['toISOString']();_0x299645[_0x15c7e1(0x1aa)]=_0x4c7fb0;const _0x15a256=writeServiceRegistry(_0x299645,_0x3c78f4);return{'registryPath':_0x15a256,'entry':_0x59a7d7,'serviceCount':_0x299645['services'][_0x15c7e1(0x191)]};}export function listLocalServices(_0x30ea55={}){const _0x254651=a40_0x4c4d;return readServiceRegistry(_0x30ea55)[_0x254651(0x19f)];}export function getLocalServiceEntry(_0x37bbe9,_0x3d3bb4={}){const _0x1845b6=a40_0x4c4d;return readServiceRegistry(_0x3d3bb4)['services'][_0x1845b6(0x1cf)](_0x3d6bbc=>_0x3d6bbc[_0x1845b6(0x1be)]===_0x37bbe9[_0x1845b6(0x1c4)]());}function a40_0x23cd(){const _0xcf2120=['length','CliError','slice','818233XNxJpf','manifests','empty','Invalid\x20service\x20registry\x20JSON:\x20','command','toISOString','446260ouQHxT','sha256','utf8','Fix\x20the\x20JSON\x20file\x20or\x20move\x20it\x20aside\x20and\x20import\x20services\x20again.','2403976YlCgSQ','services','Local\x20service\x20not\x20found:\x20','isArray','Unsupported\x20schemaVersion:\x20','digest','sort','30yhuIPq','path','report','filePath','sourceHash','updatedAt','Invalid\x20service\x20manifest\x20JSON:\x20','source','641598pXjgpM','manifest','ENOENT','stringify','Unsupported\x20service\x20registry\x20schemaVersion:\x20','schemaVersion','code','startsWith','homeDir','Service\x20manifest\x20file\x20not\x20found:\x20','localeCompare','warnings','.tmp','$.services[','version','registryIndex','name','serviceCode','7jQNqQK','flatMap','parse','map','findIndex','trim','service','join','Run\x20lovrabet\x20service\x20list\x20to\x20see\x20imported\x20services.','target','commands','object','invalid','244089kcOSFW','normalizedManifest','cliPath','find','errors','2092779knSOze','].manifest','splice','now','].manifest.','validation','44Hefxej','homeDirName','1359188yPwtqX'];a40_0x23cd=function(){return _0xcf2120;};return a40_0x23cd();}export function listLocalServiceTrees(_0x929a36={}){const _0x4794b1=a40_0x4c4d;return readServiceRegistry(_0x929a36)[_0x4794b1(0x19f)][_0x4794b1(0x1c2)](_0x16fbf2=>_0x16fbf2[_0x4794b1(0x1cd)]);}export function inspectServiceRegistry(_0x3efaf4={}){const _0x5e25fb=a40_0x4c4d,_0x245584=getServiceRegistryPath(_0x3efaf4);if(!existsSync(_0x245584))return emptyServiceRegistryInspection(_0x245584,'missing',![]);try{const _0xf010fb=readFileSync(_0x245584,_0x5e25fb(0x19c));if(!_0xf010fb[_0x5e25fb(0x1c4)]())return emptyServiceRegistryInspection(_0x245584,_0x5e25fb(0x196),!![]);const _0x2cb773=JSON['parse'](_0xf010fb);if(_0x2cb773[_0x5e25fb(0x1b2)]!==SERVICE_REGISTRY_SCHEMA_VERSION)return{...emptyServiceRegistryInspection(_0x245584,_0x5e25fb(0x1cb),!![]),'schemaVersion':_0x2cb773[_0x5e25fb(0x1b2)],'message':_0x5e25fb(0x1a2)+String(_0x2cb773['schemaVersion'])};if(!Array['isArray'](_0x2cb773['services']))return{...emptyServiceRegistryInspection(_0x245584,'invalid',!![]),'schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x2cb773[_0x5e25fb(0x1aa)],'message':'services\x20must\x20be\x20an\x20array'};const _0x4c768d=_0x2cb773[_0x5e25fb(0x19f)][_0x5e25fb(0x1c2)](summarizeLocalServiceEntry);return{'registryPath':_0x245584,'exists':!![],'status':'ok','schemaVersion':SERVICE_REGISTRY_SCHEMA_VERSION,'updatedAt':_0x2cb773[_0x5e25fb(0x1aa)],'serviceCount':_0x4c768d[_0x5e25fb(0x191)],'commandCount':_0x4c768d['reduce']((_0x463d13,_0x3ee0a5)=>_0x463d13+_0x3ee0a5['commandCount'],0x0),'services':_0x4c768d};}catch(_0x3f8def){return{...emptyServiceRegistryInspection(_0x245584,_0x5e25fb(0x1cb),!![]),'message':_0x3f8def instanceof Error?_0x3f8def['message']:String(_0x3f8def)};}}export function formatValidationFailure(_0x2a3300){const _0x1ee6fb=a40_0x4c4d,_0x4b2409=_0x2a3300[_0x1ee6fb(0x1d0)]['map'](_0x366775=>_0x366775['path']+':\x20'+_0x366775['message']);return'Service\x20manifest\x20validation\x20failed:\x0a'+_0x4b2409[_0x1ee6fb(0x1c6)]('\x0a');}function extractLoadedServiceManifests(_0x6a57b2,_0x263ee8){const _0x30f2e3=a40_0x4c4d;if(!isServiceRegistryLike(_0x6a57b2)){const _0x32f849=_0x6a57b2,_0x45196c=validateServiceTreeManifest(_0x32f849);return[{'manifest':_0x32f849,'report':_0x45196c,'normalizedManifest':_0x45196c['ok']?normalizeServiceTreeManifest(_0x32f849):undefined,'sourceHash':_0x263ee8}];}return _0x6a57b2[_0x30f2e3(0x19f)][_0x30f2e3(0x1c2)]((_0x338a47,_0x100c3e)=>{const _0x1cfb94=_0x30f2e3,_0x477cdb=isObjectRecord(_0x338a47)?_0x338a47[_0x1cfb94(0x1ae)]:undefined,_0x33ec83=validateServiceTreeManifest(_0x477cdb),_0x40016b=isObjectRecord(_0x338a47)&&typeof _0x338a47[_0x1cfb94(0x1be)]==='string'?_0x338a47[_0x1cfb94(0x1be)]:undefined;return{'manifest':_0x477cdb,'report':_0x33ec83,'normalizedManifest':_0x33ec83['ok']?normalizeServiceTreeManifest(_0x477cdb):undefined,'sourceHash':sha256(JSON[_0x1cfb94(0x1b0)](_0x477cdb,null,0x2)+'\x0a'),'registryIndex':_0x100c3e,'registryServiceCode':_0x40016b};});}function aggregateValidationReports(_0x5667dc){const _0xc672d9=a40_0x4c4d,_0x16fa23=_0x5667dc[_0xc672d9(0x1c0)](_0x29cec3=>_0x29cec3[_0xc672d9(0x1bc)]===undefined?_0x29cec3[_0xc672d9(0x1a7)][_0xc672d9(0x1d0)]:_0x29cec3[_0xc672d9(0x1a7)][_0xc672d9(0x1d0)][_0xc672d9(0x1c2)](_0x2d2493=>({..._0x2d2493,'path':prefixRegistryIssuePath(_0x29cec3['registryIndex'],_0x2d2493[_0xc672d9(0x1a6)])}))),_0x1835bc=_0x5667dc[_0xc672d9(0x1c0)](_0x30ebdd=>_0x30ebdd[_0xc672d9(0x1bc)]===undefined?_0x30ebdd[_0xc672d9(0x1a7)]['warnings']:_0x30ebdd[_0xc672d9(0x1a7)][_0xc672d9(0x1b8)]['map'](_0xc06a38=>({..._0xc06a38,'path':prefixRegistryIssuePath(_0x30ebdd[_0xc672d9(0x1bc)],_0xc06a38[_0xc672d9(0x1a6)])})));return{'ok':_0x16fa23[_0xc672d9(0x191)]===0x0,'errors':_0x16fa23,'warnings':_0x1835bc};}function prefixRegistryIssuePath(_0x337a0d,_0x5afd00){const _0x176fc9=a40_0x4c4d;if(_0x5afd00==='$')return _0x176fc9(0x1ba)+_0x337a0d+_0x176fc9(0x1d2);if(_0x5afd00[_0x176fc9(0x1b4)]('$.'))return _0x176fc9(0x1ba)+_0x337a0d+_0x176fc9(0x1d2)+_0x5afd00[_0x176fc9(0x193)](0x1);if(_0x5afd00[_0x176fc9(0x1b4)]('$['))return _0x176fc9(0x1ba)+_0x337a0d+_0x176fc9(0x1d2)+_0x5afd00[_0x176fc9(0x193)](0x1);return _0x176fc9(0x1ba)+_0x337a0d+_0x176fc9(0x18c)+_0x5afd00;}function isServiceRegistryLike(_0x1800a1){const _0x1beafc=a40_0x4c4d;return isObjectRecord(_0x1800a1)&&_0x1800a1[_0x1beafc(0x1b2)]===SERVICE_REGISTRY_SCHEMA_VERSION&&Array[_0x1beafc(0x1a1)](_0x1800a1[_0x1beafc(0x19f)]);}function isObjectRecord(_0x357a7d){const _0x31dd6b=a40_0x4c4d;return Boolean(_0x357a7d)&&typeof _0x357a7d===_0x31dd6b(0x1ca)&&!Array['isArray'](_0x357a7d);}function emptyServiceRegistryInspection(_0x1bde07,_0x5822e8,_0x4de712){return{'registryPath':_0x1bde07,'exists':_0x4de712,'status':_0x5822e8,'serviceCount':0x0,'commandCount':0x0,'services':[]};}function summarizeLocalServiceEntry(_0x589077){const _0x126151=a40_0x4c4d,_0x21f7d7=_0x589077[_0x126151(0x1cd)],_0x2ad363=_0x21f7d7[_0x126151(0x1c9)]['map'](_0x1ff39c=>({'path':_0x1ff39c[_0x126151(0x1ce)],'description':_0x1ff39c['description'],'risk':_0x1ff39c['risk'],'targetKind':_0x1ff39c[_0x126151(0x1c8)]['kind'],'targetCommand':_0x1ff39c[_0x126151(0x1c8)][_0x126151(0x198)]}));return{'serviceCode':_0x589077[_0x126151(0x1be)],'name':_0x21f7d7[_0x126151(0x1c5)][_0x126151(0x1bd)],'description':_0x21f7d7[_0x126151(0x1c5)]['description'],'version':_0x589077[_0x126151(0x1bb)],'importedAt':_0x589077['importedAt'],'source':_0x589077[_0x126151(0x1ac)],'commandCount':_0x2ad363[_0x126151(0x191)],'commands':_0x2ad363};}function sha256(_0x319a63){const _0x2cce47=a40_0x4c4d;return createHash(_0x2cce47(0x19b))['update'](_0x319a63)[_0x2cce47(0x1a3)]('hex');}
@@ -1 +1 @@
1
- const a41_0x345ac6=a41_0x12a1;(function(_0x46a63e,_0x2dd647){const _0x3de1cd=a41_0x12a1,_0xca5f58=_0x46a63e();while(!![]){try{const _0x388770=-parseInt(_0x3de1cd(0xf4))/0x1*(parseInt(_0x3de1cd(0x107))/0x2)+-parseInt(_0x3de1cd(0x108))/0x3*(parseInt(_0x3de1cd(0x10a))/0x4)+parseInt(_0x3de1cd(0x102))/0x5+parseInt(_0x3de1cd(0x115))/0x6+parseInt(_0x3de1cd(0x100))/0x7*(-parseInt(_0x3de1cd(0xf6))/0x8)+-parseInt(_0x3de1cd(0x113))/0x9*(parseInt(_0x3de1cd(0x103))/0xa)+-parseInt(_0x3de1cd(0x119))/0xb*(-parseInt(_0x3de1cd(0x101))/0xc);if(_0x388770===_0x2dd647)break;else _0xca5f58['push'](_0xca5f58['shift']());}catch(_0x38cc14){_0xca5f58['push'](_0xca5f58['shift']());}}}(a41_0xad88,0x748f9));import{existsSync,lstatSync,mkdirSync,writeFileSync}from'node:fs';import{dirname,resolve}from'node:path';import{CliErrors}from'../../../errors.js';import{CREATE_NAME_FLAG,FORCE_FLAG,TARGET_FLAG,TYPE_FLAG}from'../flags.js';import{DEFAULT_SKILL_TARGET,renderSkillTemplate}from'../templates.js';export const createCommand={'service':a41_0x345ac6(0x105),'command':a41_0x345ac6(0x10f),'description':a41_0x345ac6(0xf3),'risk':a41_0x345ac6(0x10e),'requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x427a23){const _0x2b2a37=a41_0x345ac6,_0x3ae1c5=buildSkillCreatePlan(_0x427a23[_0x2b2a37(0xfc)](_0x2b2a37(0xfb)),_0x427a23[_0x2b2a37(0xfc)](_0x2b2a37(0xf8)),_0x427a23['str'](_0x2b2a37(0x10d)));return{'method':_0x2b2a37(0xfa),'url':_0x3ae1c5[_0x2b2a37(0x118)],'body':{'skillName':_0x3ae1c5[_0x2b2a37(0x116)]['skillName'],'type':_0x3ae1c5[_0x2b2a37(0x116)]['type'],'selfContained':!![],'files':_0x3ae1c5[_0x2b2a37(0x116)][_0x2b2a37(0x111)]['map'](_0x4dff8d=>_0x4dff8d[_0x2b2a37(0xff)])},'description':_0x2b2a37(0x112)};},async 'execute'(_0x54519a){const _0x4fc1b2=a41_0x345ac6,_0x57e6b2=buildSkillCreatePlan(_0x54519a['str'](_0x4fc1b2(0xfb)),_0x54519a[_0x4fc1b2(0xfc)](_0x4fc1b2(0xf8)),_0x54519a[_0x4fc1b2(0xfc)](_0x4fc1b2(0x10d)));return writeSkillDraft(_0x57e6b2,_0x54519a[_0x4fc1b2(0x117)](_0x4fc1b2(0xf7))),{'ok':!![],'data':{'skillName':_0x57e6b2[_0x4fc1b2(0x116)][_0x4fc1b2(0x106)],'type':_0x57e6b2[_0x4fc1b2(0x116)][_0x4fc1b2(0xf8)],'dir':_0x57e6b2[_0x4fc1b2(0x118)],'files':_0x57e6b2[_0x4fc1b2(0x116)][_0x4fc1b2(0x111)]['map'](_0x36f506=>_0x36f506[_0x4fc1b2(0xff)])},'message':_0x4fc1b2(0x10b)+_0x57e6b2['rendered']['skillName']};}};function buildSkillCreatePlan(_0x74aa79,_0x21f4dd,_0x3bdd41){const _0x3a7bdc=renderSkillTemplate({'skillName':_0x74aa79,'type':_0x21f4dd}),_0xd66ee9=resolve(normalizeSkillTarget(_0x3bdd41));return{'rendered':_0x3a7bdc,'targetRoot':_0xd66ee9,'skillDir':resolve(_0xd66ee9,_0x3a7bdc['skillName'])};}function a41_0xad88(){const _0x4c054a=['force','type','Skill\x20directory\x20already\x20exists:\x20','WRITE','name','str','content','Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.','path','7nEOuYa','545268UrktsL','2919365pWPRuU','4793340eldJgZ','Refusing\x20to\x20overwrite\x20symlink:\x20','skill','skillName','2IdceDh','40671HtMiYT','trim','36mufJWe','Created\x20local\x20Skill\x20draft\x20','utf8','target','write','create','validation','files','Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.','9irDRnx','isSymbolicLink','418086wWIrTG','rendered','bool','skillDir','297uQUkbb','Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','756554coQQTp','isDirectory','360584VWyzNR'];a41_0xad88=function(){return _0x4c054a;};return a41_0xad88();}function a41_0x12a1(_0x39b7a9,_0xaa448a){_0x39b7a9=_0x39b7a9-0xf3;const _0xad883c=a41_0xad88();let _0x12a14e=_0xad883c[_0x39b7a9];return _0x12a14e;}function normalizeSkillTarget(_0x40ba90){const _0x10499e=a41_0x345ac6;return(_0x40ba90||DEFAULT_SKILL_TARGET)[_0x10499e(0x109)]()||DEFAULT_SKILL_TARGET;}function writeSkillDraft(_0x296f00,_0x1baba9){const _0x53a338=a41_0x345ac6;if(existsSync(_0x296f00[_0x53a338(0x118)])){const _0xe7155e=lstatSync(_0x296f00['skillDir']);if(!_0xe7155e[_0x53a338(0xf5)]()||_0xe7155e[_0x53a338(0x114)]())throw CliErrors[_0x53a338(0x110)]('Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20'+_0x296f00['skillDir']);if(!_0x1baba9)throw CliErrors['validation'](_0x53a338(0xf9)+_0x296f00[_0x53a338(0x118)],_0x53a338(0xfe));}for(const _0x132806 of _0x296f00[_0x53a338(0x116)]['files']){const _0x542853=resolve(_0x296f00[_0x53a338(0x118)],_0x132806[_0x53a338(0xff)]),_0x16dafa=dirname(_0x542853);mkdirSync(_0x16dafa,{'recursive':!![]});if(existsSync(_0x542853)&&lstatSync(_0x542853)[_0x53a338(0x114)]())throw CliErrors[_0x53a338(0x110)](_0x53a338(0x104)+_0x542853);writeFileSync(_0x542853,_0x132806[_0x53a338(0xfd)],_0x53a338(0x10c));}}
1
+ const a41_0x742d67=a41_0x5dfe;(function(_0x338e04,_0xc13f99){const _0x25cf83=a41_0x5dfe,_0x4abdac=_0x338e04();while(!![]){try{const _0x7ad134=-parseInt(_0x25cf83(0x136))/0x1*(parseInt(_0x25cf83(0x13f))/0x2)+parseInt(_0x25cf83(0x148))/0x3*(parseInt(_0x25cf83(0x138))/0x4)+-parseInt(_0x25cf83(0x14a))/0x5*(parseInt(_0x25cf83(0x149))/0x6)+-parseInt(_0x25cf83(0x137))/0x7+-parseInt(_0x25cf83(0x141))/0x8+-parseInt(_0x25cf83(0x14f))/0x9*(parseInt(_0x25cf83(0x151))/0xa)+parseInt(_0x25cf83(0x157))/0xb*(parseInt(_0x25cf83(0x150))/0xc);if(_0x7ad134===_0xc13f99)break;else _0x4abdac['push'](_0x4abdac['shift']());}catch(_0x20a0c8){_0x4abdac['push'](_0x4abdac['shift']());}}}(a41_0x1e36,0xdb10b));import{existsSync,lstatSync,mkdirSync,writeFileSync}from'node:fs';import{dirname,resolve}from'node:path';import{CliErrors}from'../../../errors.js';import{CREATE_NAME_FLAG,FORCE_FLAG,TARGET_FLAG,TYPE_FLAG}from'../flags.js';import{DEFAULT_SKILL_TARGET,renderSkillTemplate}from'../templates.js';export const createCommand={'service':a41_0x742d67(0x13d),'command':a41_0x742d67(0x134),'description':a41_0x742d67(0x14e),'risk':a41_0x742d67(0x146),'requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x352c3c){const _0x6bb1df=a41_0x742d67,_0x37a513=buildSkillCreatePlan(_0x352c3c[_0x6bb1df(0x13c)](_0x6bb1df(0x140)),_0x352c3c[_0x6bb1df(0x13c)]('type'),_0x352c3c[_0x6bb1df(0x13c)](_0x6bb1df(0x147)));return{'method':'WRITE','url':_0x37a513[_0x6bb1df(0x14b)],'body':{'skillName':_0x37a513[_0x6bb1df(0x158)][_0x6bb1df(0x13e)],'type':_0x37a513['rendered']['type'],'selfContained':!![],'files':_0x37a513[_0x6bb1df(0x158)][_0x6bb1df(0x155)][_0x6bb1df(0x13b)](_0x235752=>_0x235752[_0x6bb1df(0x139)])},'description':'Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.'};},async 'execute'(_0x459c2a){const _0x5f839c=a41_0x742d67,_0x5912f8=buildSkillCreatePlan(_0x459c2a[_0x5f839c(0x13c)](_0x5f839c(0x140)),_0x459c2a[_0x5f839c(0x13c)](_0x5f839c(0x156)),_0x459c2a['str'](_0x5f839c(0x147)));return writeSkillDraft(_0x5912f8,_0x459c2a['bool'](_0x5f839c(0x144))),{'ok':!![],'data':{'skillName':_0x5912f8['rendered']['skillName'],'type':_0x5912f8[_0x5f839c(0x158)][_0x5f839c(0x156)],'dir':_0x5912f8[_0x5f839c(0x14b)],'files':_0x5912f8['rendered']['files']['map'](_0x41cfed=>_0x41cfed['path'])},'message':_0x5f839c(0x14d)+_0x5912f8[_0x5f839c(0x158)][_0x5f839c(0x13e)]};}};function buildSkillCreatePlan(_0x24d7b4,_0x448ef7,_0x1ab382){const _0xb20352=a41_0x742d67,_0x307b89=renderSkillTemplate({'skillName':_0x24d7b4,'type':_0x448ef7}),_0x40b227=resolve(normalizeSkillTarget(_0x1ab382));return{'rendered':_0x307b89,'targetRoot':_0x40b227,'skillDir':resolve(_0x40b227,_0x307b89[_0xb20352(0x13e)])};}function normalizeSkillTarget(_0x3de200){const _0x546dcd=a41_0x742d67;return(_0x3de200||DEFAULT_SKILL_TARGET)[_0x546dcd(0x145)]()||DEFAULT_SKILL_TARGET;}function a41_0x5dfe(_0x1fe4e5,_0x3b42c0){_0x1fe4e5=_0x1fe4e5-0x134;const _0x1e3633=a41_0x1e36();let _0x5dfe62=_0x1e3633[_0x1fe4e5];return _0x5dfe62;}function writeSkillDraft(_0x546bde,_0xcf0eee){const _0x33b9b4=a41_0x742d67;if(existsSync(_0x546bde[_0x33b9b4(0x14b)])){const _0x1fc23c=lstatSync(_0x546bde[_0x33b9b4(0x14b)]);if(!_0x1fc23c[_0x33b9b4(0x14c)]()||_0x1fc23c[_0x33b9b4(0x142)]())throw CliErrors[_0x33b9b4(0x143)](_0x33b9b4(0x153)+_0x546bde['skillDir']);if(!_0xcf0eee)throw CliErrors[_0x33b9b4(0x143)](_0x33b9b4(0x152)+_0x546bde[_0x33b9b4(0x14b)],_0x33b9b4(0x135));}for(const _0x1b58a9 of _0x546bde[_0x33b9b4(0x158)]['files']){const _0x61416e=resolve(_0x546bde[_0x33b9b4(0x14b)],_0x1b58a9[_0x33b9b4(0x139)]),_0x1938d4=dirname(_0x61416e);mkdirSync(_0x1938d4,{'recursive':!![]});if(existsSync(_0x61416e)&&lstatSync(_0x61416e)['isSymbolicLink']())throw CliErrors[_0x33b9b4(0x143)]('Refusing\x20to\x20overwrite\x20symlink:\x20'+_0x61416e);writeFileSync(_0x61416e,_0x1b58a9[_0x33b9b4(0x154)],_0x33b9b4(0x13a));}}function a41_0x1e36(){const _0x195ecd=['skillDir','isDirectory','Created\x20local\x20Skill\x20draft\x20','Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','189HheIuz','516LrMmsm','83490fmVhbk','Skill\x20directory\x20already\x20exists:\x20','Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20','content','files','type','741631vzoeOw','rendered','create','Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.','109672xRgZbQ','3515827bovImd','16YWjukw','path','utf8','map','str','skill','skillName','10APYmDc','name','4953648amTRxX','isSymbolicLink','validation','force','trim','write','target','1088559UZUqlG','209748DwlZog','230wZqqKM'];a41_0x1e36=function(){return _0x195ecd;};return a41_0x1e36();}
@@ -1 +1 @@
1
- const a42_0x2064d3=a42_0x2af4;(function(_0x34a8e3,_0x58e9f4){const _0x3aa589=a42_0x2af4,_0x198fef=_0x34a8e3();while(!![]){try{const _0x3fa793=parseInt(_0x3aa589(0xc1))/0x1+parseInt(_0x3aa589(0xb1))/0x2+parseInt(_0x3aa589(0xb4))/0x3*(parseInt(_0x3aa589(0xce))/0x4)+-parseInt(_0x3aa589(0xd1))/0x5*(-parseInt(_0x3aa589(0xb3))/0x6)+parseInt(_0x3aa589(0xcf))/0x7*(-parseInt(_0x3aa589(0xb2))/0x8)+parseInt(_0x3aa589(0xa9))/0x9*(parseInt(_0x3aa589(0xab))/0xa)+parseInt(_0x3aa589(0xc7))/0xb*(-parseInt(_0x3aa589(0xa5))/0xc);if(_0x3fa793===_0x58e9f4)break;else _0x198fef['push'](_0x198fef['shift']());}catch(_0x1634a5){_0x198fef['push'](_0x198fef['shift']());}}}(a42_0x2e0b,0x5a168));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,SCOPE_FLAG}from'../flags.js';function a42_0x2af4(_0x27be11,_0x44832d){_0x27be11=_0x27be11-0xa3;const _0x2e0b9=a42_0x2e0b();let _0x2af4e2=_0x2e0b9[_0x27be11];return _0x2af4e2;}import{normalizeSyncScopes}from'../scopes.js';import{summarizeRuntimeSkill}from'../summary.js';export const installCommand={'service':a42_0x2064d3(0xc8),'command':a42_0x2064d3(0xbf),'description':a42_0x2064d3(0xba),'risk':a42_0x2064d3(0xbe),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG],async 'execute'(_0x5eeae0){return syncRuntimeSkills(_0x5eeae0);}};async function syncRuntimeSkills(_0x302e58){const _0x9b4b78=a42_0x2064d3,{downloadRuntimeSkillPackage:_0x20dc70,listRuntimeSkills:_0x15b836}=await import(_0x9b4b78(0xa7)),{linkEffectiveRuntimeSkills:_0x55def4,materializeRuntimeSkill:_0x31fb19,pruneStaleRuntimeSkillCache:_0x1ff1cc,pruneStaleRuntimeSkillLinks:_0x341b37}=await import(_0x9b4b78(0xb6)),_0x34b335=_0x302e58[_0x9b4b78(0xad)](_0x9b4b78(0xcb)),_0xb33d2d=normalizeSyncScopes(_0x302e58[_0x9b4b78(0xad)]('scope')),_0x4d2c30=_0x302e58[_0x9b4b78(0xa4)]??_0x9b4b78(0xae),_0x15f227=_0x302e58[_0x9b4b78(0xa6)];if(!_0x15f227)throw CliErrors[_0x9b4b78(0xcc)]('Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.');const _0x383b3f=await Promise[_0x9b4b78(0xb8)](_0xb33d2d[_0x9b4b78(0xc5)](_0x3b1d16=>_0x15b836({'appCode':_0x302e58[_0x9b4b78(0xc2)],'scope':_0x3b1d16,'code':_0x34b335['trim']()||undefined}))),_0x461049=_0xb33d2d[_0x9b4b78(0xaf)](_0x9b4b78(0xc0))?_0x383b3f[_0x9b4b78(0xd0)]((_0x3d846e,_0x6b6017)=>_0xb33d2d[_0x6b6017]===_0x9b4b78(0xc0)?_0x3d846e[_0x9b4b78(0xc0)]:[]):[],_0x39527b=_0xb33d2d[_0x9b4b78(0xaf)]('company')?_0x383b3f['flatMap']((_0x3e6620,_0x1e6876)=>_0xb33d2d[_0x1e6876]===_0x9b4b78(0xca)?_0x3e6620[_0x9b4b78(0xca)]:[]):[],_0x5d00ba=new Set([..._0x461049[_0x9b4b78(0xc5)](_0x4c7b28=>_0x4c7b28['skillCode']?.[_0x9b4b78(0xc6)]())[_0x9b4b78(0xa3)](_0x1870ab=>Boolean(_0x1870ab)),..._0x39527b[_0x9b4b78(0xc5)](_0x5f0fc4=>_0x5f0fc4[_0x9b4b78(0xc4)]?.[_0x9b4b78(0xc6)]())[_0x9b4b78(0xa3)](_0x1ada6c=>Boolean(_0x1ada6c))]),_0x28f079=_0x34b335[_0x9b4b78(0xc6)]()?[_0x34b335[_0x9b4b78(0xc6)]()]:undefined,_0x1827bb=_0xb33d2d['length']===0x2&&_0xb33d2d[_0x9b4b78(0xaf)](_0x9b4b78(0xc0))&&_0xb33d2d[_0x9b4b78(0xaf)](_0x9b4b78(0xca)),_0x3ebb60=_0x1827bb?_0x341b37(_0x302e58[_0x9b4b78(0xc2)],_0x5d00ba,{},_0x28f079):[],_0xa4afb7=_0x1ff1cc({'env':_0x4d2c30,'accessKey':_0x15f227,'appCode':_0x302e58[_0x9b4b78(0xc2)],'activeSkillCodes':_0x5d00ba,'pruneSkillCodes':_0x28f079,'scopes':_0xb33d2d}),_0x1c9ae0=[];for(const _0x111cfb of _0x461049){_0x1c9ae0[_0x9b4b78(0xa8)](_0x31fb19(_0x111cfb,_0x9b4b78(0xc0),{'env':_0x4d2c30,'accessKey':_0x15f227,'appCode':_0x302e58[_0x9b4b78(0xc2)],'packageBytes':await downloadSkillPackage(_0x111cfb,_0x9b4b78(0xc0),_0x302e58[_0x9b4b78(0xc2)],_0x20dc70)}));}for(const _0x5c09d3 of _0x39527b){_0x1c9ae0[_0x9b4b78(0xa8)](_0x31fb19(_0x5c09d3,'company',{'env':_0x4d2c30,'accessKey':_0x15f227,'appCode':_0x302e58[_0x9b4b78(0xc2)],'packageBytes':await downloadSkillPackage(_0x5c09d3,_0x9b4b78(0xca),_0x302e58[_0x9b4b78(0xc2)],_0x20dc70)}));}const _0x1606b7=_0x55def4(_0x1c9ae0,_0x302e58[_0x9b4b78(0xc2)]),_0x23e825=countLinkActions(_0x1606b7);return{'ok':!![],'data':{'appCode':_0x302e58[_0x9b4b78(0xc2)],'personal':_0x461049[_0x9b4b78(0xcd)],'company':_0x39527b['length'],'materialized':_0x1c9ae0[_0x9b4b78(0xcd)],'links':{'total':_0x1606b7[_0x9b4b78(0xcd)],'created':_0x23e825[_0x9b4b78(0xbc)]??0x0,'updated':_0x23e825[_0x9b4b78(0xb9)]??0x0,'unchanged':_0x23e825[_0x9b4b78(0xc9)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x3ebb60[_0x9b4b78(0xa3)](_0x2e6512=>_0x2e6512['action']===_0x9b4b78(0xb5))['length'],'cacheDirs':_0xa4afb7['filter'](_0x1a2f90=>_0x1a2f90[_0x9b4b78(0xb7)]==='removed')[_0x9b4b78(0xcd)],'skipped':[..._0x3ebb60,..._0xa4afb7]['filter'](_0x4f4cfb=>_0x4f4cfb[_0x9b4b78(0xb7)]===_0x9b4b78(0xb0))['length']},'skills':{'personal':_0x461049['map'](summarizeRuntimeSkill),'company':_0x39527b[_0x9b4b78(0xc5)](summarizeRuntimeSkill)}},'message':_0x9b4b78(0xac)+_0x461049['length']+_0x9b4b78(0xaa)+_0x39527b[_0x9b4b78(0xcd)]+_0x9b4b78(0xbb)};}async function downloadSkillPackage(_0x412efa,_0x33b5a3,_0x563762,_0x2f38cc){const _0xb4a6c4=a42_0x2064d3,_0x88339a=_0x412efa[_0xb4a6c4(0xbd)]?.[_0xb4a6c4(0xc6)]();return _0x88339a?_0x2f38cc(_0x33b5a3,_0x412efa[_0xb4a6c4(0xc4)],_0x563762,_0x88339a):_0x2f38cc(_0x33b5a3,_0x412efa[_0xb4a6c4(0xc4)],_0x563762);}function countLinkActions(_0x3ce518){const _0x4888ea=a42_0x2064d3;return _0x3ce518[_0x4888ea(0xc3)]((_0x1e3396,_0x3aac14)=>{const _0x4f5904=_0x4888ea;return _0x1e3396[_0x3aac14['action']]=(_0x1e3396[_0x3aac14[_0x4f5904(0xb7)]]??0x0)+0x1,_0x1e3396;},{});}function a42_0x2e0b(){const _0x228cf1=['write','install','personal','482316LVaElh','appCode','reduce','skillCode','map','trim','627649zOJKJx','skill','unchanged','company','code','authRequired','length','2308CYqYvq','3800398wjpnzw','flatMap','5LRbkuR','filter','envName','228VAcUqp','accessKey','../../../core/api-client.js','push','179649DSlykX','\x20personal\x20and\x20','20HXqyzp','Installed\x20','str','production','includes','skipped','590610Oghteb','8AIsVud','3075804BInbGP','3462jgYbUo','removed','../../../skills/runtime-skill-sync.js','action','all','updated','Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','\x20company\x20Skill(s).','created','version'];a42_0x2e0b=function(){return _0x228cf1;};return a42_0x2e0b();}
1
+ const a42_0x4d3548=a42_0x50bf;(function(_0x32037d,_0x4ea80f){const _0x5d629a=a42_0x50bf,_0x2db777=_0x32037d();while(!![]){try{const _0x3526b5=parseInt(_0x5d629a(0x12d))/0x1*(-parseInt(_0x5d629a(0x127))/0x2)+-parseInt(_0x5d629a(0x142))/0x3*(-parseInt(_0x5d629a(0x13d))/0x4)+-parseInt(_0x5d629a(0x134))/0x5*(parseInt(_0x5d629a(0x148))/0x6)+parseInt(_0x5d629a(0x131))/0x7*(parseInt(_0x5d629a(0x146))/0x8)+-parseInt(_0x5d629a(0x129))/0x9*(-parseInt(_0x5d629a(0x120))/0xa)+parseInt(_0x5d629a(0x11f))/0xb+-parseInt(_0x5d629a(0x125))/0xc;if(_0x3526b5===_0x4ea80f)break;else _0x2db777['push'](_0x2db777['shift']());}catch(_0x3ab415){_0x2db777['push'](_0x2db777['shift']());}}}(a42_0x9305,0xec23d));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,FORCE_FLAG,SCOPE_FLAG}from'../flags.js';function a42_0x9305(){const _0x5b4b8d=['317991nyFlhB','str','filter','flatMap','24736SyeWht','../../../skills/runtime-skill-sync.js','4727004scLaJh','production','13310693lYdcVu','17547590GiHXxs','scope','map','reduce','write','23559132eEWvDN','force','20ritjBc','skill','9PggfSM','includes','bool','removed','193189AivlAq','unchanged','\x20personal\x20and\x20','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.','2240fFKQWT','code','all','5aNHmjb','action','length','appCode','authRequired','company','envName','version','personal','64vEyzGX','push','updated','skillCode','trim'];a42_0x9305=function(){return _0x5b4b8d;};return a42_0x9305();}import{normalizeSyncScopes}from'../scopes.js';import{summarizeRuntimeSkill}from'../summary.js';export const installCommand={'service':a42_0x4d3548(0x128),'command':'install','description':'Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','risk':a42_0x4d3548(0x124),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG],async 'execute'(_0x542676){return syncRuntimeSkills(_0x542676);}};async function syncRuntimeSkills(_0x43666e){const _0x5b7a62=a42_0x4d3548,{downloadRuntimeSkillPackage:_0x13c1f6,listRuntimeSkills:_0x554e61}=await import('../../../core/api-client.js'),{linkEffectiveRuntimeSkills:_0x36484b,materializeRuntimeSkill:_0x125457,pruneStaleRuntimeSkillCache:_0x36c7ce,pruneStaleRuntimeSkillLinks:_0x1607e9}=await import(_0x5b7a62(0x147)),_0x4f7c65=_0x43666e[_0x5b7a62(0x143)](_0x5b7a62(0x132)),_0x57244f=normalizeSyncScopes(_0x43666e[_0x5b7a62(0x143)](_0x5b7a62(0x121))),_0xa1c0eb=_0x43666e[_0x5b7a62(0x13a)]??_0x5b7a62(0x11e),_0xb17e51=_0x43666e['accessKey'],_0x5170c1=_0x43666e[_0x5b7a62(0x12b)](_0x5b7a62(0x126));if(!_0xb17e51)throw CliErrors[_0x5b7a62(0x138)](_0x5b7a62(0x130));const _0x7dd864=await Promise[_0x5b7a62(0x133)](_0x57244f['map'](_0x3b140d=>_0x554e61({'appCode':_0x43666e['appCode'],'scope':_0x3b140d,'code':_0x4f7c65[_0x5b7a62(0x141)]()||undefined}))),_0x4c1453=_0x57244f[_0x5b7a62(0x12a)](_0x5b7a62(0x13c))?_0x7dd864[_0x5b7a62(0x145)]((_0x1efc5c,_0x2c81a8)=>_0x57244f[_0x2c81a8]===_0x5b7a62(0x13c)?_0x1efc5c[_0x5b7a62(0x13c)]:[]):[],_0x158f10=_0x57244f[_0x5b7a62(0x12a)](_0x5b7a62(0x139))?_0x7dd864[_0x5b7a62(0x145)]((_0x57bbfe,_0x3165b8)=>_0x57244f[_0x3165b8]===_0x5b7a62(0x139)?_0x57bbfe[_0x5b7a62(0x139)]:[]):[],_0xe45a01=new Set([..._0x4c1453[_0x5b7a62(0x122)](_0x7d7600=>_0x7d7600[_0x5b7a62(0x140)]?.[_0x5b7a62(0x141)]())[_0x5b7a62(0x144)](_0x14d741=>Boolean(_0x14d741)),..._0x158f10[_0x5b7a62(0x122)](_0x5d671e=>_0x5d671e['skillCode']?.[_0x5b7a62(0x141)]())['filter'](_0x52e3a0=>Boolean(_0x52e3a0))]),_0x779c87=_0x4f7c65['trim']()?[_0x4f7c65[_0x5b7a62(0x141)]()]:undefined,_0x2d5546=_0x57244f[_0x5b7a62(0x136)]===0x2&&_0x57244f[_0x5b7a62(0x12a)](_0x5b7a62(0x13c))&&_0x57244f['includes']('company'),_0x40514b=_0x2d5546?_0x1607e9(_0x43666e[_0x5b7a62(0x137)],_0xe45a01,{},_0x779c87):[],_0x3adc13=_0x36c7ce({'env':_0xa1c0eb,'accessKey':_0xb17e51,'appCode':_0x43666e[_0x5b7a62(0x137)],'activeSkillCodes':_0xe45a01,'pruneSkillCodes':_0x779c87,'scopes':_0x57244f}),_0x40a057=[];for(const _0x3fc73d of _0x4c1453){_0x40a057['push'](_0x125457(_0x3fc73d,_0x5b7a62(0x13c),{'env':_0xa1c0eb,'accessKey':_0xb17e51,'appCode':_0x43666e[_0x5b7a62(0x137)],'force':_0x5170c1,'packageBytes':await downloadSkillPackage(_0x3fc73d,'personal',_0x43666e['appCode'],_0x13c1f6)}));}for(const _0x22c61d of _0x158f10){_0x40a057[_0x5b7a62(0x13e)](_0x125457(_0x22c61d,_0x5b7a62(0x139),{'env':_0xa1c0eb,'accessKey':_0xb17e51,'appCode':_0x43666e[_0x5b7a62(0x137)],'force':_0x5170c1,'packageBytes':await downloadSkillPackage(_0x22c61d,'company',_0x43666e[_0x5b7a62(0x137)],_0x13c1f6)}));}const _0x41b293=_0x36484b(_0x40a057,_0x43666e[_0x5b7a62(0x137)]),_0x3b7ae0=countLinkActions(_0x41b293);return{'ok':!![],'data':{'appCode':_0x43666e['appCode'],'personal':_0x4c1453['length'],'company':_0x158f10[_0x5b7a62(0x136)],'materialized':_0x40a057[_0x5b7a62(0x136)],'links':{'total':_0x41b293[_0x5b7a62(0x136)],'created':_0x3b7ae0['created']??0x0,'updated':_0x3b7ae0[_0x5b7a62(0x13f)]??0x0,'unchanged':_0x3b7ae0[_0x5b7a62(0x12e)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x40514b['filter'](_0x4b7418=>_0x4b7418['action']==='removed')[_0x5b7a62(0x136)],'cacheDirs':_0x3adc13['filter'](_0x138cb8=>_0x138cb8['action']===_0x5b7a62(0x12c))[_0x5b7a62(0x136)],'skipped':[..._0x40514b,..._0x3adc13][_0x5b7a62(0x144)](_0x2c1025=>_0x2c1025[_0x5b7a62(0x135)]==='skipped')[_0x5b7a62(0x136)]},'skills':{'personal':_0x4c1453[_0x5b7a62(0x122)](summarizeRuntimeSkill),'company':_0x158f10['map'](summarizeRuntimeSkill)}},'message':'Installed\x20'+_0x4c1453[_0x5b7a62(0x136)]+_0x5b7a62(0x12f)+_0x158f10[_0x5b7a62(0x136)]+'\x20company\x20Skill(s).'};}async function downloadSkillPackage(_0x195f3f,_0x481591,_0xa14dc2,_0x5744c9){const _0x25b06b=a42_0x4d3548,_0x36f058=_0x195f3f[_0x25b06b(0x13b)]?.[_0x25b06b(0x141)]();return _0x36f058?_0x5744c9(_0x481591,_0x195f3f[_0x25b06b(0x140)],_0xa14dc2,_0x36f058):_0x5744c9(_0x481591,_0x195f3f['skillCode'],_0xa14dc2);}function a42_0x50bf(_0x335c15,_0x451676){_0x335c15=_0x335c15-0x11e;const _0x93056e=a42_0x9305();let _0x50bf9a=_0x93056e[_0x335c15];return _0x50bf9a;}function countLinkActions(_0x142197){const _0x2c9934=a42_0x4d3548;return _0x142197[_0x2c9934(0x123)]((_0x1bd90d,_0x388a77)=>{const _0x21519a=_0x2c9934;return _0x1bd90d[_0x388a77[_0x21519a(0x135)]]=(_0x1bd90d[_0x388a77[_0x21519a(0x135)]]??0x0)+0x1,_0x1bd90d;},{});}
@@ -1 +1 @@
1
- function a43_0x3790(){const _0x3fa2eb=['242067GRbrFT','bool','accessKey','length','remote','3316890dWJePK','list','trim','1465VdDERT','3070864qUoxmM','filter','envName','12jdTaiY','scope','company','code','2035460pzbsBG','9nUfTpz','local','production','appCode','str','3918IeGwsY','skill','6264eGEoof','builtin','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','map','451SBSnnm','\x20local\x20Skill(s).','../../../skills/runtime-skill-sync.js','Listed\x20','742cYBXLx','personal','read','\x20remote\x20Skill(s).','707uwnfAa'];a43_0x3790=function(){return _0x3fa2eb;};return a43_0x3790();}const a43_0xb28c1c=a43_0x353e;function a43_0x353e(_0x33d781,_0x24a932){_0x33d781=_0x33d781-0xb4;const _0x3790ff=a43_0x3790();let _0x353ed7=_0x3790ff[_0x33d781];return _0x353ed7;}(function(_0x4bb6c2,_0x28db8a){const _0x48d429=a43_0x353e,_0x42345c=_0x4bb6c2();while(!![]){try{const _0x210d97=-parseInt(_0x48d429(0xce))/0x1*(-parseInt(_0x48d429(0xca))/0x2)+-parseInt(_0x48d429(0xcf))/0x3*(parseInt(_0x48d429(0xb6))/0x4)+parseInt(_0x48d429(0xd7))/0x5*(-parseInt(_0x48d429(0xc0))/0x6)+-parseInt(_0x48d429(0xba))/0x7+parseInt(_0x48d429(0xd8))/0x8*(parseInt(_0x48d429(0xbb))/0x9)+parseInt(_0x48d429(0xd4))/0xa+parseInt(_0x48d429(0xc6))/0xb*(parseInt(_0x48d429(0xc2))/0xc);if(_0x210d97===_0x28db8a)break;else _0x42345c['push'](_0x42345c['shift']());}catch(_0x356503){_0x42345c['push'](_0x42345c['shift']());}}}(a43_0x3790,0x4327e));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':a43_0xb28c1c(0xc1),'command':a43_0xb28c1c(0xd5),'description':a43_0xb28c1c(0xc4),'risk':a43_0xb28c1c(0xcc),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x499421){const _0x32a558=a43_0xb28c1c,_0x55056f=_0x499421[_0x32a558(0xbf)](_0x32a558(0xb9)),_0x38fde8=normalizeListScope(_0x499421[_0x32a558(0xbf)](_0x32a558(0xb7)));if(_0x499421[_0x32a558(0xd0)](_0x32a558(0xbc))){const _0x52a5dc=_0x499421[_0x32a558(0xd1)];if(!_0x52a5dc)throw CliErrors['authRequired']();const {listLocalRuntimeSkills:_0x240a65}=await import(_0x32a558(0xc8)),_0x12372f=_0x240a65({'env':_0x499421[_0x32a558(0xb5)]??_0x32a558(0xbd),'accessKey':_0x52a5dc,'appCode':_0x499421[_0x32a558(0xbe)],'scopes':listScopeToRuntimeScopes(_0x38fde8),'code':_0x55056f[_0x32a558(0xd6)]()||undefined}),_0x5c95c5=groupLocalRuntimeSkills(_0x12372f);return{'ok':!![],'data':{'appCode':_0x499421[_0x32a558(0xbe)],'source':_0x32a558(0xbc),'scope':_0x38fde8,'total':_0x12372f[_0x32a558(0xd2)],'personal':_0x5c95c5['personal'][_0x32a558(0xd2)],'company':_0x5c95c5[_0x32a558(0xb8)][_0x32a558(0xd2)],'items':_0x12372f[_0x32a558(0xc5)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x5c95c5[_0x32a558(0xcb)][_0x32a558(0xc5)](summarizeLocalRuntimeSkill),'company':_0x5c95c5[_0x32a558(0xb8)]['map'](summarizeLocalRuntimeSkill)}},'message':_0x32a558(0xc9)+_0x12372f['length']+_0x32a558(0xc7)};}const {listRuntimeSkills:_0x121825}=await import('../../../core/api-client.js'),_0x4b3ec0=await _0x121825({'appCode':_0x499421[_0x32a558(0xbe)],'scope':listScopeToRemoteScope(_0x38fde8),'code':_0x55056f[_0x32a558(0xd6)]()||undefined}),_0x3d7d3d=shouldListScope(_0x38fde8,_0x32a558(0xcb))?_0x4b3ec0[_0x32a558(0xcb)]??[]:[],_0x2b7b64=shouldListScope(_0x38fde8,_0x32a558(0xb8))?_0x4b3ec0[_0x32a558(0xb8)]??[]:[],_0x57a791=[..._0x3d7d3d,..._0x2b7b64];return{'ok':!![],'data':{'appCode':_0x499421[_0x32a558(0xbe)],'source':_0x32a558(0xd3),'scope':_0x38fde8,'total':_0x57a791['length'],'personal':_0x3d7d3d[_0x32a558(0xd2)],'company':_0x2b7b64[_0x32a558(0xd2)],'items':_0x57a791[_0x32a558(0xc5)](summarizeRuntimeSkill),'skills':{'personal':_0x3d7d3d[_0x32a558(0xc5)](summarizeRuntimeSkill),'company':_0x2b7b64[_0x32a558(0xc5)](summarizeRuntimeSkill)}},'message':_0x32a558(0xc9)+_0x57a791['length']+_0x32a558(0xcd)};}};function groupLocalRuntimeSkills(_0x1040ae){const _0x806b73=a43_0xb28c1c;return{'personal':_0x1040ae[_0x806b73(0xb4)](_0xed3113=>_0xed3113[_0x806b73(0xb7)]==='personal'),'company':_0x1040ae[_0x806b73(0xb4)](_0x5759a2=>_0x5759a2['scope']===_0x806b73(0xb8)),'builtin':_0x1040ae[_0x806b73(0xb4)](_0x504aa1=>_0x504aa1['scope']===_0x806b73(0xc3))};}
1
+ const a43_0x414b38=a43_0x29e9;function a43_0x49fa(){const _0x33a5e6=['5834706NrkYxY','remote','map','company','local','112090zCAzYV','324602VPAgJS','\x20remote\x20Skill(s).','\x20local\x20Skill(s).','accessKey','../../../skills/runtime-skill-sync.js','str','6niFyiu','377020bcTCpK','614649YpqzcI','10753666MAphZo','224183DTfopm','personal','trim','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','length','scope','builtin','appCode','read','153DfaczA','88KXdNbQ','authRequired','filter','production','envName','bool','code','4GWpBRO','Listed\x20'];a43_0x49fa=function(){return _0x33a5e6;};return a43_0x49fa();}(function(_0x5539ec,_0x2e4292){const _0x541af1=a43_0x29e9,_0x1d6226=_0x5539ec();while(!![]){try{const _0x43b1ea=-parseInt(_0x541af1(0x84))/0x1+-parseInt(_0x541af1(0x7a))/0x2*(parseInt(_0x541af1(0x80))/0x3)+parseInt(_0x541af1(0x72))/0x4*(-parseInt(_0x541af1(0x81))/0x5)+parseInt(_0x541af1(0x74))/0x6+-parseInt(_0x541af1(0x82))/0x7*(-parseInt(_0x541af1(0x6b))/0x8)+-parseInt(_0x541af1(0x6a))/0x9*(-parseInt(_0x541af1(0x79))/0xa)+-parseInt(_0x541af1(0x83))/0xb;if(_0x43b1ea===_0x2e4292)break;else _0x1d6226['push'](_0x1d6226['shift']());}catch(_0x58f411){_0x1d6226['push'](_0x1d6226['shift']());}}}(a43_0x49fa,0x80aee));function a43_0x29e9(_0x8f1c8,_0x1bfd20){_0x8f1c8=_0x8f1c8-0x64;const _0x49fabd=a43_0x49fa();let _0x29e9ec=_0x49fabd[_0x8f1c8];return _0x29e9ec;}import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':'skill','command':'list','description':a43_0x414b38(0x64),'risk':a43_0x414b38(0x69),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x55774c){const _0x3753e2=a43_0x414b38,_0x44f2b9=_0x55774c[_0x3753e2(0x7f)](_0x3753e2(0x71)),_0x1c7c7e=normalizeListScope(_0x55774c[_0x3753e2(0x7f)](_0x3753e2(0x66)));if(_0x55774c[_0x3753e2(0x70)](_0x3753e2(0x78))){const _0xd767bc=_0x55774c[_0x3753e2(0x7d)];if(!_0xd767bc)throw CliErrors[_0x3753e2(0x6c)]();const {listLocalRuntimeSkills:_0x33927c}=await import(_0x3753e2(0x7e)),_0x1c96d2=_0x33927c({'env':_0x55774c[_0x3753e2(0x6f)]??_0x3753e2(0x6e),'accessKey':_0xd767bc,'appCode':_0x55774c[_0x3753e2(0x68)],'scopes':listScopeToRuntimeScopes(_0x1c7c7e),'code':_0x44f2b9[_0x3753e2(0x86)]()||undefined}),_0xf10035=groupLocalRuntimeSkills(_0x1c96d2);return{'ok':!![],'data':{'appCode':_0x55774c[_0x3753e2(0x68)],'source':_0x3753e2(0x78),'scope':_0x1c7c7e,'total':_0x1c96d2[_0x3753e2(0x65)],'personal':_0xf10035['personal']['length'],'company':_0xf10035[_0x3753e2(0x77)][_0x3753e2(0x65)],'items':_0x1c96d2[_0x3753e2(0x76)](summarizeLocalRuntimeSkill),'skills':{'personal':_0xf10035[_0x3753e2(0x85)]['map'](summarizeLocalRuntimeSkill),'company':_0xf10035[_0x3753e2(0x77)]['map'](summarizeLocalRuntimeSkill)}},'message':_0x3753e2(0x73)+_0x1c96d2[_0x3753e2(0x65)]+_0x3753e2(0x7c)};}const {listRuntimeSkills:_0x46406c}=await import('../../../core/api-client.js'),_0x3ca024=await _0x46406c({'appCode':_0x55774c[_0x3753e2(0x68)],'scope':listScopeToRemoteScope(_0x1c7c7e),'code':_0x44f2b9['trim']()||undefined}),_0x7e95ab=shouldListScope(_0x1c7c7e,_0x3753e2(0x85))?_0x3ca024[_0x3753e2(0x85)]??[]:[],_0xa46a71=shouldListScope(_0x1c7c7e,'company')?_0x3ca024[_0x3753e2(0x77)]??[]:[],_0xc8dfd0=[..._0x7e95ab,..._0xa46a71];return{'ok':!![],'data':{'appCode':_0x55774c['appCode'],'source':_0x3753e2(0x75),'scope':_0x1c7c7e,'total':_0xc8dfd0[_0x3753e2(0x65)],'personal':_0x7e95ab[_0x3753e2(0x65)],'company':_0xa46a71[_0x3753e2(0x65)],'items':_0xc8dfd0[_0x3753e2(0x76)](summarizeRuntimeSkill),'skills':{'personal':_0x7e95ab[_0x3753e2(0x76)](summarizeRuntimeSkill),'company':_0xa46a71['map'](summarizeRuntimeSkill)}},'message':_0x3753e2(0x73)+_0xc8dfd0[_0x3753e2(0x65)]+_0x3753e2(0x7b)};}};function groupLocalRuntimeSkills(_0x194ae9){const _0xc4b5cb=a43_0x414b38;return{'personal':_0x194ae9[_0xc4b5cb(0x6d)](_0x2f5a88=>_0x2f5a88[_0xc4b5cb(0x66)]===_0xc4b5cb(0x85)),'company':_0x194ae9['filter'](_0x25a364=>_0x25a364[_0xc4b5cb(0x66)]===_0xc4b5cb(0x77)),'builtin':_0x194ae9[_0xc4b5cb(0x6d)](_0x979926=>_0x979926[_0xc4b5cb(0x66)]===_0xc4b5cb(0x67))};}
@@ -1 +1 @@
1
- const a44_0xdb0f06=a44_0x5060;(function(_0x172227,_0x4b4c79){const _0x5d62e9=a44_0x5060,_0x314dde=_0x172227();while(!![]){try{const _0x2faf9c=-parseInt(_0x5d62e9(0x80))/0x1+-parseInt(_0x5d62e9(0x7b))/0x2*(-parseInt(_0x5d62e9(0x7e))/0x3)+parseInt(_0x5d62e9(0x86))/0x4+parseInt(_0x5d62e9(0x84))/0x5+parseInt(_0x5d62e9(0x83))/0x6*(parseInt(_0x5d62e9(0x7f))/0x7)+-parseInt(_0x5d62e9(0x7a))/0x8*(-parseInt(_0x5d62e9(0x85))/0x9)+-parseInt(_0x5d62e9(0x81))/0xa*(parseInt(_0x5d62e9(0x82))/0xb);if(_0x2faf9c===_0x4b4c79)break;else _0x314dde['push'](_0x314dde['shift']());}catch(_0x10b029){_0x314dde['push'](_0x314dde['shift']());}}}(a44_0x3aa7,0x3a678));import{CONFIRM_WARNINGS_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';import{skillPushDryRun,skillPushExecute}from'../push-execute.js';function a44_0x5060(_0x1e9112,_0x3cc696){_0x1e9112=_0x1e9112-0x79;const _0x3aa7d9=a44_0x3aa7();let _0x50606d=_0x3aa7d9[_0x1e9112];return _0x50606d;}function a44_0x3aa7(){const _0xa8bdca=['232TYqImf','10AlKrhV','write','push','238389jFjsPK','7NcGAUG','443DWzAiU','20zNOePz','3960836dqxIAU','907422aPZLhi','699610BFIhrW','49185mndhkD','451440nudSBq','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope\x20or\x20submit\x20company\x20scope\x20for\x20review','skill'];a44_0x3aa7=function(){return _0xa8bdca;};return a44_0x3aa7();}export const pushCommand={'service':a44_0xdb0f06(0x79),'command':a44_0xdb0f06(0x7d),'description':a44_0xdb0f06(0x87),'risk':a44_0xdb0f06(0x7c),'flags':[DIR_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
1
+ const a44_0x136c86=a44_0x3388;function a44_0x48d9(){const _0x5861ac=['20230507BtaZYz','skill','7RXicJL','353505XKzFZc','push','10mJAmKR','5BWSPUi','2857160kTEMvC','7545kIkiUS','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope\x20or\x20submit\x20company\x20scope\x20for\x20review','1711540vOrHnS','12LbxhCJ','565893wbQGaD','93894dbjwbb','340bjTDSP'];a44_0x48d9=function(){return _0x5861ac;};return a44_0x48d9();}(function(_0x37cf98,_0x3d0514){const _0x65543f=a44_0x3388,_0x21296a=_0x37cf98();while(!![]){try{const _0x5f0ade=-parseInt(_0x65543f(0x18b))/0x1+parseInt(_0x65543f(0x196))/0x2*(-parseInt(_0x65543f(0x190))/0x3)+-parseInt(_0x65543f(0x192))/0x4*(parseInt(_0x65543f(0x18e))/0x5)+-parseInt(_0x65543f(0x195))/0x6*(-parseInt(_0x65543f(0x18a))/0x7)+-parseInt(_0x65543f(0x18f))/0x8+-parseInt(_0x65543f(0x194))/0x9*(parseInt(_0x65543f(0x18d))/0xa)+parseInt(_0x65543f(0x197))/0xb*(parseInt(_0x65543f(0x193))/0xc);if(_0x5f0ade===_0x3d0514)break;else _0x21296a['push'](_0x21296a['shift']());}catch(_0x1f5bea){_0x21296a['push'](_0x21296a['shift']());}}}(a44_0x48d9,0x37220));function a44_0x3388(_0x3305b8,_0x4bbb21){_0x3305b8=_0x3305b8-0x18a;const _0x48d977=a44_0x48d9();let _0x33882a=_0x48d977[_0x3305b8];return _0x33882a;}import{CONFIRM_WARNINGS_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':a44_0x136c86(0x198),'command':a44_0x136c86(0x18c),'description':a44_0x136c86(0x191),'risk':'write','flags':[DIR_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
@@ -1 +1 @@
1
- function a45_0x2233(){const _0x551d93=['Skill\x20validation\x20passed.','1227mANoRC','56555ZpuoiX','str','4500770fkdtPE','read','1433583HpjpYP','3988XZIpTA','3548qUawsQ','skill','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','validate','104SXGFxA','11496szQytg','11diUlYy','dir','53522zhtuVh','warnings','366rHanBT','errors','25909JuTVuF','type','752JycMXI'];a45_0x2233=function(){return _0x551d93;};return a45_0x2233();}const a45_0x2c9a93=a45_0x5a33;(function(_0xeee50c,_0x238646){const _0x1432e4=a45_0x5a33,_0x53c5ee=_0xeee50c();while(!![]){try{const _0x17bc6b=parseInt(_0x1432e4(0xe6))/0x1*(-parseInt(_0x1432e4(0xe2))/0x2)+parseInt(_0x1432e4(0xdb))/0x3*(-parseInt(_0x1432e4(0xe1))/0x4)+-parseInt(_0x1432e4(0xdc))/0x5*(parseInt(_0x1432e4(0xd5))/0x6)+-parseInt(_0x1432e4(0xd3))/0x7*(-parseInt(_0x1432e4(0xd9))/0x8)+-parseInt(_0x1432e4(0xe0))/0x9+-parseInt(_0x1432e4(0xde))/0xa*(parseInt(_0x1432e4(0xd1))/0xb)+-parseInt(_0x1432e4(0xd0))/0xc*(-parseInt(_0x1432e4(0xd7))/0xd);if(_0x17bc6b===_0x238646)break;else _0x53c5ee['push'](_0x53c5ee['shift']());}catch(_0x54f116){_0x53c5ee['push'](_0x53c5ee['shift']());}}}(a45_0x2233,0xb3c9e));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';function a45_0x5a33(_0x212211,_0x2c8944){_0x212211=_0x212211-0xd0;const _0x2233a1=a45_0x2233();let _0x5a336d=_0x2233a1[_0x212211];return _0x5a336d;}import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a45_0x2c9a93(0xe3),'command':a45_0x2c9a93(0xe5),'description':a45_0x2c9a93(0xe4),'risk':a45_0x2c9a93(0xdf),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x4c2a4a){const _0x1a2243=a45_0x2c9a93,_0x188cdc=_0x4c2a4a['bool']('strict'),_0xe8e464=validateSkillDirectory(_0x4c2a4a[_0x1a2243(0xdd)](_0x1a2243(0xd2)),{'strict':_0x188cdc});return throwIfSkillValidationFailed(_0xe8e464,_0x188cdc),{'ok':!![],'data':{'dir':_0xe8e464[_0x1a2243(0xd2)],'type':_0xe8e464[_0x1a2243(0xd8)],'errors':_0xe8e464[_0x1a2243(0xd6)],'warnings':_0xe8e464[_0x1a2243(0xd4)]},'message':_0x1a2243(0xda)};}};
1
+ const a45_0x18d81e=a45_0x2805;(function(_0x3e32be,_0x1ea0ac){const _0xde7044=a45_0x2805,_0x3dbe1b=_0x3e32be();while(!![]){try{const _0x3c5a64=-parseInt(_0xde7044(0x13b))/0x1*(-parseInt(_0xde7044(0x13d))/0x2)+-parseInt(_0xde7044(0x12b))/0x3*(-parseInt(_0xde7044(0x12d))/0x4)+-parseInt(_0xde7044(0x13a))/0x5*(parseInt(_0xde7044(0x136))/0x6)+parseInt(_0xde7044(0x12e))/0x7+parseInt(_0xde7044(0x12a))/0x8*(parseInt(_0xde7044(0x12c))/0x9)+-parseInt(_0xde7044(0x138))/0xa*(-parseInt(_0xde7044(0x13c))/0xb)+parseInt(_0xde7044(0x139))/0xc*(-parseInt(_0xde7044(0x137))/0xd);if(_0x3c5a64===_0x1ea0ac)break;else _0x3dbe1b['push'](_0x3dbe1b['shift']());}catch(_0x3032e9){_0x3dbe1b['push'](_0x3dbe1b['shift']());}}}(a45_0x18fe,0xae8f3));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';function a45_0x2805(_0x1ded80,_0x384712){_0x1ded80=_0x1ded80-0x129;const _0x18fe52=a45_0x18fe();let _0x28056b=_0x18fe52[_0x1ded80];return _0x28056b;}function a45_0x18fe(){const _0x3fd29a=['2310OoDKtl','467818oSNXBP','8571370IbukAl','456oscCIi','18385qoFasg','1TJEumt','11Tpbmfc','1123966pxEikB','str','32xxefuj','10869AllYgj','2262492MpeeQi','1160qppCYT','159362CqGYcM','skill','strict','warnings','read','type','dir','Skill\x20validation\x20passed.'];a45_0x18fe=function(){return _0x3fd29a;};return a45_0x18fe();}export const validateCommand={'service':a45_0x18d81e(0x12f),'command':'validate','description':'Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','risk':a45_0x18d81e(0x132),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x2000a3){const _0x1bfc54=a45_0x18d81e,_0x4fa1f9=_0x2000a3['bool'](_0x1bfc54(0x130)),_0xca9b43=validateSkillDirectory(_0x2000a3[_0x1bfc54(0x129)](_0x1bfc54(0x134)),{'strict':_0x4fa1f9});return throwIfSkillValidationFailed(_0xca9b43,_0x4fa1f9),{'ok':!![],'data':{'dir':_0xca9b43[_0x1bfc54(0x134)],'type':_0xca9b43[_0x1bfc54(0x133)],'errors':_0xca9b43['errors'],'warnings':_0xca9b43[_0x1bfc54(0x131)]},'message':_0x1bfc54(0x135)};}};
@@ -1 +1 @@
1
- const a46_0x595877=a46_0x4870;function a46_0x4870(_0x3a1346,_0x18ec50){_0x3a1346=_0x3a1346-0x18c;const _0x1727f8=a46_0x1727();let _0x48701e=_0x1727f8[_0x3a1346];return _0x48701e;}(function(_0x2b6964,_0x56da8f){const _0x4b6f02=a46_0x4870,_0x488e3c=_0x2b6964();while(!![]){try{const _0x359d3c=parseInt(_0x4b6f02(0x19f))/0x1+-parseInt(_0x4b6f02(0x1a7))/0x2*(-parseInt(_0x4b6f02(0x1ab))/0x3)+parseInt(_0x4b6f02(0x191))/0x4+-parseInt(_0x4b6f02(0x1a4))/0x5+-parseInt(_0x4b6f02(0x198))/0x6+-parseInt(_0x4b6f02(0x1a3))/0x7*(parseInt(_0x4b6f02(0x1a1))/0x8)+-parseInt(_0x4b6f02(0x18e))/0x9;if(_0x359d3c===_0x56da8f)break;else _0x488e3c['push'](_0x488e3c['shift']());}catch(_0x57b952){_0x488e3c['push'](_0x488e3c['shift']());}}}(a46_0x1727,0xdde27));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a46_0x595877(0x18f),'type':a46_0x595877(0x1aa),'description':a46_0x595877(0x1a6)};export const SCOPE_FLAG={'name':'scope','type':'string','description':a46_0x595877(0x1ae),'enum':['all',a46_0x595877(0x193),'company']};export const PUSH_SCOPE_FLAG={'name':a46_0x595877(0x197),'type':a46_0x595877(0x1aa),'description':a46_0x595877(0x190),'default':a46_0x595877(0x193),'enum':['personal','company']};export const LIST_SCOPE_FLAG={'name':a46_0x595877(0x197),'type':'string','description':a46_0x595877(0x18d),'enum':[a46_0x595877(0x1a2),a46_0x595877(0x193),a46_0x595877(0x192)]};export const LOCAL_FLAG={'name':a46_0x595877(0x18c),'type':'boolean','description':a46_0x595877(0x199)};export const DIR_FLAG={'name':'dir','type':'string','required':!![],'description':a46_0x595877(0x19e)};export const CREATE_NAME_FLAG={'name':a46_0x595877(0x196),'type':a46_0x595877(0x1aa),'required':!![],'description':a46_0x595877(0x1ac),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a46_0x595877(0x1a8)}};function a46_0x1727(){const _0x261eb2=['Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','force','strict','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','Local\x20Skill\x20directory\x20containing\x20SKILL.md','932114cwZfyW','Skill\x20template\x20type','88sBZHIr','all','230083IisngT','4978795ohpUBe','Overwrite\x20generated\x20files\x20when\x20the\x20Skill\x20directory\x20already\x20exists','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','2558324UxsNGO','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','confirm-warnings','string','3PFKYaO','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','target','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','Continue\x20company\x20Skill\x20push\x20when\x20SkillHub\x20validation\x20reports\x20warnings','local','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','11637576YcAgUm','code','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','6362072PzQsQu','company','personal','write','boolean','name','scope','1455438YOBNmP'];a46_0x1727=function(){return _0x261eb2;};return a46_0x1727();}export const TYPE_FLAG={'name':'type','type':a46_0x595877(0x1aa),'description':a46_0x595877(0x1a0),'default':a46_0x595877(0x194),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a46_0x595877(0x1ad),'type':a46_0x595877(0x1aa),'description':a46_0x595877(0x19d),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a46_0x595877(0x19a),'type':a46_0x595877(0x195),'description':a46_0x595877(0x1a5)};export const CONFIRM_WARNINGS_FLAG={'name':a46_0x595877(0x1a9),'type':'boolean','description':a46_0x595877(0x1af)};export const STRICT_FLAG={'name':a46_0x595877(0x19b),'type':a46_0x595877(0x195),'description':a46_0x595877(0x19c)};
1
+ const a46_0x64b1be=a46_0x1bd9;(function(_0x27d9ef,_0x31658c){const _0x37acdd=a46_0x1bd9,_0x13f3b1=_0x27d9ef();while(!![]){try{const _0x5f5324=parseInt(_0x37acdd(0x145))/0x1*(-parseInt(_0x37acdd(0x137))/0x2)+parseInt(_0x37acdd(0x12a))/0x3*(-parseInt(_0x37acdd(0x13f))/0x4)+parseInt(_0x37acdd(0x141))/0x5+-parseInt(_0x37acdd(0x140))/0x6*(-parseInt(_0x37acdd(0x148))/0x7)+parseInt(_0x37acdd(0x142))/0x8+-parseInt(_0x37acdd(0x12d))/0x9*(-parseInt(_0x37acdd(0x134))/0xa)+parseInt(_0x37acdd(0x146))/0xb*(-parseInt(_0x37acdd(0x12b))/0xc);if(_0x5f5324===_0x31658c)break;else _0x13f3b1['push'](_0x13f3b1['shift']());}catch(_0x35d978){_0x13f3b1['push'](_0x13f3b1['shift']());}}}(a46_0x3895,0x4a1a6));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a46_0x64b1be(0x13e),'type':a46_0x64b1be(0x136),'description':a46_0x64b1be(0x144)};export const SCOPE_FLAG={'name':a46_0x64b1be(0x13a),'type':'string','description':a46_0x64b1be(0x149),'enum':[a46_0x64b1be(0x132),a46_0x64b1be(0x13b),a46_0x64b1be(0x138)]};export const PUSH_SCOPE_FLAG={'name':a46_0x64b1be(0x13a),'type':a46_0x64b1be(0x136),'description':a46_0x64b1be(0x12c),'default':a46_0x64b1be(0x13b),'enum':[a46_0x64b1be(0x13b),a46_0x64b1be(0x138)]};export const LIST_SCOPE_FLAG={'name':a46_0x64b1be(0x13a),'type':a46_0x64b1be(0x136),'description':'Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','enum':[a46_0x64b1be(0x132),a46_0x64b1be(0x13b),a46_0x64b1be(0x138)]};export const LOCAL_FLAG={'name':'local','type':a46_0x64b1be(0x135),'description':a46_0x64b1be(0x131)};export const DIR_FLAG={'name':a46_0x64b1be(0x133),'type':a46_0x64b1be(0x136),'required':!![],'description':'Local\x20Skill\x20directory\x20containing\x20SKILL.md'};export const CREATE_NAME_FLAG={'name':a46_0x64b1be(0x147),'type':a46_0x64b1be(0x136),'required':!![],'description':a46_0x64b1be(0x13d),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a46_0x64b1be(0x143)}};export const TYPE_FLAG={'name':'type','type':a46_0x64b1be(0x136),'description':'Skill\x20template\x20type','default':a46_0x64b1be(0x12e),'enum':[...SKILL_TYPES]};function a46_0x1bd9(_0x5b5a5f,_0x2a669b){_0x5b5a5f=_0x5b5a5f-0x129;const _0x389583=a46_0x3895();let _0x1bd911=_0x389583[_0x5b5a5f];return _0x1bd911;}export const TARGET_FLAG={'name':'target','type':a46_0x64b1be(0x136),'description':'Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':'force','type':a46_0x64b1be(0x135),'description':a46_0x64b1be(0x129)};function a46_0x3895(){const _0x5343f3=['Continue\x20company\x20Skill\x20push\x20when\x20SkillHub\x20validation\x20reports\x20warnings','confirm-warnings','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','all','dir','4730740VIPpja','boolean','string','381198LysINZ','company','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','scope','personal','strict','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','code','1185748rSjoFK','1182nmVDgB','1681535mpdoyr','3351984gdeRWm','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','2sqJVxg','22VagycE','name','13643vTWYkr','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','6UYuUwi','2008404TYNRZw','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','9ZImoPq','write'];a46_0x3895=function(){return _0x5343f3;};return a46_0x3895();}export const CONFIRM_WARNINGS_FLAG={'name':a46_0x64b1be(0x130),'type':a46_0x64b1be(0x135),'description':a46_0x64b1be(0x12f)};export const STRICT_FLAG={'name':a46_0x64b1be(0x13c),'type':a46_0x64b1be(0x135),'description':a46_0x64b1be(0x139)};
@@ -1 +1 @@
1
- function a47_0x5ae5(_0x4b5428,_0x44b206){_0x4b5428=_0x4b5428-0x1ce;const _0x120d1d=a47_0x120d();let _0x5ae5dc=_0x120d1d[_0x4b5428];return _0x5ae5dc;}(function(_0x3e8193,_0x17395a){const _0x3c13c2=a47_0x5ae5,_0x36c1a=_0x3e8193();while(!![]){try{const _0x42377c=-parseInt(_0x3c13c2(0x1d2))/0x1+-parseInt(_0x3c13c2(0x1d5))/0x2*(-parseInt(_0x3c13c2(0x1d3))/0x3)+-parseInt(_0x3c13c2(0x1d1))/0x4+-parseInt(_0x3c13c2(0x1d4))/0x5+-parseInt(_0x3c13c2(0x1cf))/0x6*(parseInt(_0x3c13c2(0x1ce))/0x7)+parseInt(_0x3c13c2(0x1d6))/0x8+parseInt(_0x3c13c2(0x1d0))/0x9;if(_0x42377c===_0x17395a)break;else _0x36c1a['push'](_0x36c1a['shift']());}catch(_0x1c7c6e){_0x36c1a['push'](_0x36c1a['shift']());}}}(a47_0x120d,0xc5fdc));function a47_0x120d(){const _0x753223=['4PsYnRn','7405096QiAGoc','168WtOIJt','279864mQxKWC','40442931RABmIe','4182208Tudyfq','1390669ymcANe','390183IRktRg','6563845hXNQbm'];a47_0x120d=function(){return _0x753223;};return a47_0x120d();}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];
1
+ (function(_0x3612bb,_0x4c9b55){const _0x41021f=a47_0x348c,_0xb62a3b=_0x3612bb();while(!![]){try{const _0x955751=parseInt(_0x41021f(0x12f))/0x1*(parseInt(_0x41021f(0x129))/0x2)+parseInt(_0x41021f(0x12c))/0x3*(parseInt(_0x41021f(0x12d))/0x4)+parseInt(_0x41021f(0x131))/0x5*(-parseInt(_0x41021f(0x130))/0x6)+-parseInt(_0x41021f(0x12e))/0x7+parseInt(_0x41021f(0x132))/0x8+parseInt(_0x41021f(0x12b))/0x9+-parseInt(_0x41021f(0x12a))/0xa;if(_0x955751===_0x4c9b55)break;else _0xb62a3b['push'](_0xb62a3b['shift']());}catch(_0x151c99){_0xb62a3b['push'](_0xb62a3b['shift']());}}}(a47_0x4e69,0xe128a));import{createCommand}from'./commands/create.js';function a47_0x4e69(){const _0x135392=['110588EDSAUn','2448670vAyjPh','1330903CYHFCD','4182798bMBeHF','5dGyogE','5073216EKuVRR','2ImoVrQ','17383050RrSXSu','10705527SpXwMs','60ptJGOo'];a47_0x4e69=function(){return _0x135392;};return a47_0x4e69();}import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';function a47_0x348c(_0x1e641d,_0x36d6fa){_0x1e641d=_0x1e641d-0x129;const _0x4e69c1=a47_0x4e69();let _0x348c9d=_0x4e69c1[_0x1e641d];return _0x348c9d;}export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand];
@@ -1 +1 @@
1
- function a48_0x3373(){var _0x3854f8=['252842jVsULr','684830QPKsvl','isArray','373077hcNCmi','object','29315ZGDkeP','45kCqYsj','77tjhxsZ','path','files','369wsDBfg','length','2984mDmApD','string','660JLnfok','4ZLNCSV','406413eyUEEg','66RuVcwC','615208TRQiCs','ossPath','SKILL.md'];a48_0x3373=function(){return _0x3854f8;};return a48_0x3373();}function a48_0x5d53(_0x29cc49,_0xb26ad9){_0x29cc49=_0x29cc49-0x70;var _0x33739a=a48_0x3373();var _0x5d53d7=_0x33739a[_0x29cc49];return _0x5d53d7;}(function(_0x38dda2,_0x1a4df5){var _0x52a484=a48_0x5d53,_0x16079c=_0x38dda2();while(!![]){try{var _0x1da60e=parseInt(_0x52a484(0x76))/0x1*(parseInt(_0x52a484(0x7c))/0x2)+parseInt(_0x52a484(0x7f))/0x3+parseInt(_0x52a484(0x79))/0x4*(parseInt(_0x52a484(0x82))/0x5)+parseInt(_0x52a484(0x78))/0x6*(-parseInt(_0x52a484(0x77))/0x7)+parseInt(_0x52a484(0x73))/0x8*(parseInt(_0x52a484(0x71))/0x9)+-parseInt(_0x52a484(0x7d))/0xa*(parseInt(_0x52a484(0x83))/0xb)+-parseInt(_0x52a484(0x75))/0xc*(parseInt(_0x52a484(0x81))/0xd);if(_0x1da60e===_0x1a4df5)break;else _0x16079c['push'](_0x16079c['shift']());}catch(_0x5de4df){_0x16079c['push'](_0x16079c['shift']());}}}(a48_0x3373,0xc042b));export function isPackageBackedManifest(_0x5858be){var _0x4130f7=a48_0x5d53;return!!_0x5858be&&typeof _0x5858be===_0x4130f7(0x80)&&!Array[_0x4130f7(0x7e)](_0x5858be)&&typeof _0x5858be[_0x4130f7(0x7a)]===_0x4130f7(0x74)&&_0x5858be[_0x4130f7(0x7a)][_0x4130f7(0x72)]>0x0&&Array[_0x4130f7(0x7e)](_0x5858be['files']);}export function isMultiFileManifest(_0x14a5e7){var _0x29418c=a48_0x5d53;return!!_0x14a5e7&&typeof _0x14a5e7===_0x29418c(0x80)&&!Array[_0x29418c(0x7e)](_0x14a5e7)&&Array['isArray'](_0x14a5e7[_0x29418c(0x70)])&&_0x14a5e7[_0x29418c(0x70)]['some'](_0x3807ce=>_0x3807ce[_0x29418c(0x84)]!==_0x29418c(0x7b));}
1
+ function a48_0x28ee(_0x4d4397,_0xbf438d){_0x4d4397=_0x4d4397-0x175;var _0xf36fd0=a48_0xf36f();var _0x28ee41=_0xf36fd0[_0x4d4397];return _0x28ee41;}(function(_0x51b661,_0x59c580){var _0x44b8ac=a48_0x28ee,_0x4f734a=_0x51b661();while(!![]){try{var _0x5652d2=parseInt(_0x44b8ac(0x175))/0x1*(parseInt(_0x44b8ac(0x17e))/0x2)+parseInt(_0x44b8ac(0x180))/0x3*(parseInt(_0x44b8ac(0x184))/0x4)+-parseInt(_0x44b8ac(0x178))/0x5+parseInt(_0x44b8ac(0x176))/0x6+-parseInt(_0x44b8ac(0x17b))/0x7+parseInt(_0x44b8ac(0x183))/0x8+parseInt(_0x44b8ac(0x17c))/0x9;if(_0x5652d2===_0x59c580)break;else _0x4f734a['push'](_0x4f734a['shift']());}catch(_0x26e73e){_0x4f734a['push'](_0x4f734a['shift']());}}}(a48_0xf36f,0x5e3db));function a48_0xf36f(){var _0x405951=['3032965wIyREz','ossPath','SKILL.md','4521125gMhioI','3304305dguMXH','object','6tUhwmW','string','699hDywMp','length','files','6056936qrFPsO','2508fWDfUP','79727aFTqGn','773670ignklI','isArray'];a48_0xf36f=function(){return _0x405951;};return a48_0xf36f();}export function isPackageBackedManifest(_0x1776fb){var _0x56862a=a48_0x28ee;return!!_0x1776fb&&typeof _0x1776fb==='object'&&!Array['isArray'](_0x1776fb)&&typeof _0x1776fb[_0x56862a(0x179)]===_0x56862a(0x17f)&&_0x1776fb[_0x56862a(0x179)][_0x56862a(0x181)]>0x0&&Array[_0x56862a(0x177)](_0x1776fb[_0x56862a(0x182)]);}export function isMultiFileManifest(_0x175498){var _0x3f8d04=a48_0x28ee;return!!_0x175498&&typeof _0x175498===_0x3f8d04(0x17d)&&!Array['isArray'](_0x175498)&&Array[_0x3f8d04(0x177)](_0x175498[_0x3f8d04(0x182)])&&_0x175498[_0x3f8d04(0x182)]['some'](_0x1b96a0=>_0x1b96a0['path']!==_0x3f8d04(0x17a));}
@@ -1 +1 @@
1
- (function(_0x3b3f14,_0xc221ee){const _0x16eb30=a49_0x9692,_0x34538b=_0x3b3f14();while(!![]){try{const _0xc50afa=-parseInt(_0x16eb30(0x16e))/0x1+-parseInt(_0x16eb30(0x13a))/0x2+parseInt(_0x16eb30(0x14e))/0x3*(parseInt(_0x16eb30(0x150))/0x4)+parseInt(_0x16eb30(0x13e))/0x5+parseInt(_0x16eb30(0x155))/0x6*(-parseInt(_0x16eb30(0x13d))/0x7)+parseInt(_0x16eb30(0x167))/0x8*(-parseInt(_0x16eb30(0x147))/0x9)+parseInt(_0x16eb30(0x161))/0xa;if(_0xc50afa===_0xc221ee)break;else _0x34538b['push'](_0x34538b['shift']());}catch(_0xc84680){_0x34538b['push'](_0x34538b['shift']());}}}(a49_0x5e1b,0x994f3));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';function a49_0x9692(_0x5d8cce,_0x75da1a){_0x5d8cce=_0x5d8cce-0x13a;const _0x5e1bc1=a49_0x5e1b();let _0x9692a8=_0x5e1bc1[_0x5d8cce];return _0x9692a8;}function a49_0x5e1b(){const _0xa99e09=['Personal','str','POST','\x20for\x20review','545816UPZGvQ','accessKey','version','\x20Skill\x20','skillCode','savedSkill','Created\x20personal\x20Skill\x20','437959WfvqCo','confirmWarnings','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','path','/publish','warnings','status','2459012GZTnxp','bool','validation','133jIsLAA','1526615DFVOSD','remoteForPreflight','join','payload','PRIVATE','/api/cli/v1/skills/','company','../../core/api-client.js','Preview\x20a\x20personal\x20Skill\x20push\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','27nGTbFD','input','resolvedSlug','\x20has\x20scope=\x22','Submitted\x20company\x20Skill\x20','files','(unknown)','1592583NjNYaD','/publish/validate','4QsPyPw','trim','appCode','frontmatterDisplayName','authRequired','47442paLtkg','personal','NAMESPACE_ONLY','\x20version\x20','Updated\x20personal\x20Skill\x20','publishInput','../../skills/runtime-skill-sync.js','scope','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','map','existing','Company\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','18141500bumZFM','dir'];a49_0x5e1b=function(){return _0xa99e09;};return a49_0x5e1b();}export async function skillPushDryRun(_0x56c2ac){const _0x32439a=a49_0x9692,{getRuntimeSkillByCode:_0x1c6e0c,validateRuntimeSkillPublish:_0x143fe6}=await import(_0x32439a(0x145)),{readPushDirectory:_0x14c7b5,resolvePushDirectoryIdentity:_0x57c51f}=await import(_0x32439a(0x15b));if(!_0x56c2ac[_0x32439a(0x168)])throw CliErrors[_0x32439a(0x154)]();const _0x52975a=resolvePushScope(_0x56c2ac),_0x143170=validateSkillDirectory(_0x56c2ac[_0x32439a(0x164)](_0x32439a(0x162)));throwIfSkillValidationFailed(_0x143170);const _0x22d4d3=_0x57c51f(_0x143170['dir'],_0x56c2ac[_0x32439a(0x152)],remoteFirstMetadataOptions()),_0x4489bc=await _0x1c6e0c(_0x56c2ac[_0x32439a(0x152)],_0x22d4d3[_0x32439a(0x16b)]);throwIfBuiltinPushTarget(_0x4489bc);if(_0x52975a===_0x32439a(0x144)){const _0xaf2571=_0x14c7b5(_0x143170[_0x32439a(0x162)],_0x56c2ac['appCode'],remoteMissingCompanyReadOptions()),_0x3e2c01=await _0x143fe6(_0x56c2ac[_0x32439a(0x152)],_0xaf2571[_0x32439a(0x148)],{'visibility':_0x32439a(0x157)});return{'method':_0x32439a(0x165),'url':_0x32439a(0x143)+_0x56c2ac[_0x32439a(0x152)]+_0x32439a(0x14f),'body':{'skillCode':_0xaf2571['skillCode'],'visibility':_0x32439a(0x157),'valid':_0x3e2c01['valid'],'errors':_0x3e2c01['errors'],'warnings':_0x3e2c01[_0x32439a(0x173)],'resolvedSlug':_0x3e2c01[_0x32439a(0x149)],'resolvedVersion':_0x3e2c01['resolvedVersion']},'description':_0x32439a(0x170)};}if(_0x4489bc&&_0x4489bc['scope']!==_0x32439a(0x156))throw CliErrors[_0x32439a(0x13c)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x22d4d3[_0x32439a(0x16b)]+_0x32439a(0x14a)+(_0x4489bc[_0x32439a(0x15c)]??'unknown')+'\x22.');const _0x506fa8=_0x14c7b5(_0x143170['dir'],_0x56c2ac[_0x32439a(0x152)],_0x4489bc?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions());return{'method':_0x32439a(0x165),'url':'/api/cli/v1/skills/'+_0x56c2ac[_0x32439a(0x152)]+_0x32439a(0x172),'body':{'skillCode':_0x506fa8[_0x32439a(0x16b)],'visibility':_0x32439a(0x142),'files':_0x506fa8[_0x32439a(0x148)][_0x32439a(0x14c)]?.[_0x32439a(0x14c)][_0x32439a(0x15e)](_0x2c713f=>_0x2c713f[_0x32439a(0x171)])??[]},'description':_0x32439a(0x146)};}export async function skillPushExecute(_0x431642){const _0x3863c2=a49_0x9692,{createPersonalRuntimeSkill:_0x3a3995,downloadRuntimeSkillPackage:_0x4a95fb,getRuntimeSkillByCode:_0x98db4c,publishCompanyRuntimeSkill:_0x52f1f1,updatePersonalRuntimeSkill:_0x2bf3cf,validateRuntimeSkillPublish:_0x54ee1a}=await import(_0x3863c2(0x145)),{verifyRuntimeSkillPackage:_0x2a090e,verifyRuntimeSkillBundle:_0x5692cb,readPushDirectory:_0x5c9b66,refreshPushDirectoryMetadataFromRemote:_0x1f24ab,recordPushedRuntimeSkill:_0xaa28,resolvePushDirectoryIdentity:_0x43f3bc}=await import(_0x3863c2(0x15b));if(!_0x431642[_0x3863c2(0x168)])throw CliErrors[_0x3863c2(0x154)]();const _0x1575a0=resolvePushScope(_0x431642),_0x3e4066=validateSkillDirectory(_0x431642[_0x3863c2(0x164)]('dir'));throwIfSkillValidationFailed(_0x3e4066);const _0x291ed8=_0x3e4066[_0x3863c2(0x162)];let _0x170a45;if(_0x1575a0===_0x3863c2(0x144)){const _0x15e612=_0x43f3bc(_0x291ed8,_0x431642[_0x3863c2(0x152)],remoteFirstMetadataOptions()),_0x4c15e5=await _0x98db4c(_0x431642['appCode'],_0x15e612[_0x3863c2(0x16b)]);throwIfBuiltinPushTarget(_0x4c15e5);if(_0x4c15e5)_0x1f24ab(_0x291ed8,_0x4c15e5,_0x431642[_0x3863c2(0x152)]);const _0x8a7c04=_0x5c9b66(_0x291ed8,_0x431642[_0x3863c2(0x152)],_0x4c15e5?{'targetScope':_0x3863c2(0x144),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0x170a45={'scope':_0x3863c2(0x144),'payload':_0x8a7c04,'publishInput':_0x8a7c04[_0x3863c2(0x148)],'remoteForPreflight':_0x4c15e5,'warnings':[]};}else{const _0x20981a=_0x431642[_0x3863c2(0x164)]('appcode')[_0x3863c2(0x151)](),_0x9a45fe=Boolean(_0x20981a),_0x3b3c69=allowRetargetArgs(_0x9a45fe),_0x2a9cd9=_0x43f3bc(_0x291ed8,_0x431642[_0x3863c2(0x152)],{...remoteFirstMetadataOptions(),..._0x3b3c69[0x0]}),_0xf4a870=await _0x98db4c(_0x431642['appCode'],_0x2a9cd9[_0x3863c2(0x16b)]);throwIfBuiltinPushTarget(_0xf4a870);if(_0xf4a870){if(_0xf4a870[_0x3863c2(0x15c)]!==_0x3863c2(0x156)){if(_0x9a45fe)throw CliErrors[_0x3863c2(0x13c)](_0x3863c2(0x15d)+_0x2a9cd9['skillCode']+_0x3863c2(0x14a)+(_0xf4a870[_0x3863c2(0x15c)]??'unknown')+'\x22.');_0x1f24ab(_0x291ed8,_0xf4a870,_0x431642[_0x3863c2(0x152)]);}else!_0x9a45fe&&_0x1f24ab(_0x291ed8,_0xf4a870,_0x431642[_0x3863c2(0x152)]);}const _0x320925=_0x5c9b66(_0x291ed8,_0x431642[_0x3863c2(0x152)],_0xf4a870?remotePersonalReadOptions(_0x9a45fe,_0x3b3c69[0x0]):remoteMissingPersonalReadOptions(_0x3b3c69[0x0])),_0x1965fa=_0xf4a870?.[_0x3863c2(0x15c)]===_0x3863c2(0x156)&&_0xf4a870[_0x3863c2(0x16b)]===_0x320925[_0x3863c2(0x16b)]?_0xf4a870:undefined,_0x401990=_0x9a45fe&&_0x1965fa?withRetargetExistingMetadata(_0x320925['input'],_0x1965fa,{'preferInputSkillName':Boolean(_0x320925[_0x3863c2(0x153)])}):_0x320925[_0x3863c2(0x148)],_0x369587=_0x9a45fe?buildRetargetWarning(_0x2a9cd9['metadata'],_0x431642['appCode']):[];_0x170a45={'scope':_0x3863c2(0x156),'payload':_0x320925,'publishInput':_0x401990,'remoteForPreflight':_0x1965fa,'existing':_0x1965fa,'warnings':[..._0x3e4066['warnings'],..._0x369587]};}const _0x323858=await runRemoteContentPreflight({'scope':_0x170a45['scope'],'remote':_0x170a45[_0x3863c2(0x13f)],'publishInput':_0x170a45[_0x3863c2(0x15a)],'skillCode':_0x170a45[_0x3863c2(0x141)][_0x3863c2(0x16b)],'appCode':_0x431642[_0x3863c2(0x152)],'downloadRuntimeSkillPackage':_0x4a95fb,'verifyRuntimeSkillBundle':_0x5692cb});if(_0x323858[_0x3863c2(0x174)]==='identical')return _0x170a45[_0x3863c2(0x15c)]===_0x3863c2(0x144)?_0xaa28(_0x291ed8,_0x323858[_0x3863c2(0x16c)],_0x431642['appCode'],{'scope':_0x3863c2(0x144)}):_0xaa28(_0x291ed8,_0x323858[_0x3863c2(0x16c)],_0x431642[_0x3863c2(0x152)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x323858[_0x3863c2(0x16c)]),'scope':_0x170a45[_0x3863c2(0x15c)],..._0x170a45[_0x3863c2(0x15c)]==='personal'?{'warnings':_0x170a45['warnings']}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0x170a45[_0x3863c2(0x15c)])+_0x3863c2(0x16a)+_0x170a45[_0x3863c2(0x141)][_0x3863c2(0x16b)]+'\x20is\x20already\x20published\x20and\x20content\x20is\x20identical'};if(_0x170a45['scope']===_0x3863c2(0x144)){const _0x5ec70c=await _0x54ee1a(_0x431642['appCode'],_0x170a45[_0x3863c2(0x15a)],{'visibility':_0x3863c2(0x157)});throwIfPublishValidationFailed(_0x170a45[_0x3863c2(0x141)]['skillCode'],_0x5ec70c);const _0x319adc=_0x431642[_0x3863c2(0x13b)]('confirm-warnings')||_0x431642[_0x3863c2(0x13b)](_0x3863c2(0x16f));if(_0x5ec70c[_0x3863c2(0x173)]['length']>0x0&&!_0x319adc)throw CliErrors[_0x3863c2(0x13c)](_0x3863c2(0x160)+_0x170a45[_0x3863c2(0x141)][_0x3863c2(0x16b)]+'.','Review\x20the\x20warnings\x20and\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit:\x20'+_0x5ec70c[_0x3863c2(0x173)][_0x3863c2(0x140)](';\x20'));const _0x4262a3=await _0x52f1f1(_0x431642[_0x3863c2(0x152)],_0x170a45['publishInput'],{'confirmWarnings':_0x319adc});return _0xaa28(_0x291ed8,{..._0x4262a3,'files':_0x170a45[_0x3863c2(0x15a)]['files']},_0x431642[_0x3863c2(0x152)],{'scope':_0x3863c2(0x144)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x4262a3),'scope':_0x3863c2(0x144),'reviewState':'submitted','submittedForReview':!![],'validation':{'warnings':_0x5ec70c[_0x3863c2(0x173)]}},'message':_0x3863c2(0x14b)+_0x170a45[_0x3863c2(0x141)][_0x3863c2(0x16b)]+_0x3863c2(0x158)+(_0x4262a3[_0x3863c2(0x169)]??_0x3863c2(0x14d))+_0x3863c2(0x166)};}const _0x59f6e4=_0x170a45['existing']?await _0x2bf3cf(_0x170a45['payload'][_0x3863c2(0x16b)],_0x431642[_0x3863c2(0x152)],_0x170a45['publishInput']):await _0x3a3995(_0x431642['appCode'],_0x170a45[_0x3863c2(0x15a)]);let _0x1f1063=_0x59f6e4;if(isMultiFileManifest(_0x170a45[_0x3863c2(0x15a)]['files'])){const _0xedef4c=await _0x4a95fb(_0x3863c2(0x156),_0x59f6e4[_0x3863c2(0x16b)]||_0x170a45[_0x3863c2(0x141)]['skillCode'],_0x431642['appCode']);_0x5692cb(_0x170a45[_0x3863c2(0x15a)][_0x3863c2(0x14c)],_0xedef4c),_0x1f1063={..._0x59f6e4,'files':_0x170a45[_0x3863c2(0x15a)][_0x3863c2(0x14c)]};}else{if(isPackageBackedManifest(_0x59f6e4[_0x3863c2(0x14c)])){const _0x69344b=await _0x4a95fb(_0x3863c2(0x156),_0x59f6e4['skillCode']||_0x170a45[_0x3863c2(0x141)][_0x3863c2(0x16b)],_0x431642[_0x3863c2(0x152)]);_0x2a090e(_0x59f6e4[_0x3863c2(0x14c)],_0x69344b);}}return _0xaa28(_0x291ed8,_0x1f1063,_0x431642[_0x3863c2(0x152)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x59f6e4),'warnings':_0x170a45[_0x3863c2(0x173)]},'message':_0x170a45[_0x3863c2(0x15f)]?_0x3863c2(0x159)+_0x170a45[_0x3863c2(0x141)][_0x3863c2(0x16b)]:_0x3863c2(0x16d)+_0x170a45[_0x3863c2(0x141)][_0x3863c2(0x16b)]};}function scopeLabel(_0x3c5ad3){const _0x35ade2=a49_0x9692;return _0x3c5ad3===_0x35ade2(0x144)?'Company':_0x35ade2(0x163);}
1
+ (function(_0x7486e2,_0x3b60ac){const _0x14b1d7=a49_0x267b,_0xc12fd8=_0x7486e2();while(!![]){try{const _0x414319=parseInt(_0x14b1d7(0x165))/0x1*(parseInt(_0x14b1d7(0x17b))/0x2)+-parseInt(_0x14b1d7(0x173))/0x3*(-parseInt(_0x14b1d7(0x154))/0x4)+parseInt(_0x14b1d7(0x16a))/0x5*(parseInt(_0x14b1d7(0x176))/0x6)+-parseInt(_0x14b1d7(0x160))/0x7*(-parseInt(_0x14b1d7(0x143))/0x8)+-parseInt(_0x14b1d7(0x15e))/0x9+parseInt(_0x14b1d7(0x16d))/0xa+-parseInt(_0x14b1d7(0x180))/0xb*(parseInt(_0x14b1d7(0x168))/0xc);if(_0x414319===_0x3b60ac)break;else _0xc12fd8['push'](_0xc12fd8['shift']());}catch(_0x38b5de){_0xc12fd8['push'](_0xc12fd8['shift']());}}}(a49_0x4df0,0x70f9e));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';function a49_0x267b(_0xf771ff,_0x12640e){_0xf771ff=_0xf771ff-0x143;const _0x4df0bf=a49_0x4df0();let _0x267bb0=_0x4df0bf[_0xf771ff];return _0x267bb0;}export async function skillPushDryRun(_0x492ed4){const _0x232ee4=a49_0x267b,{getRuntimeSkillByCode:_0x42aabe,validateRuntimeSkillPublish:_0x267e19}=await import(_0x232ee4(0x169)),{readPushDirectory:_0x1fe2fb,resolvePushDirectoryIdentity:_0x16dd23}=await import(_0x232ee4(0x15b));if(!_0x492ed4[_0x232ee4(0x174)])throw CliErrors['authRequired']();const _0x3b4798=resolvePushScope(_0x492ed4),_0x28b0b4=validateSkillDirectory(_0x492ed4['str'](_0x232ee4(0x17a)));throwIfSkillValidationFailed(_0x28b0b4);const _0x58b360=_0x16dd23(_0x28b0b4[_0x232ee4(0x17a)],_0x492ed4[_0x232ee4(0x15c)],remoteFirstMetadataOptions()),_0x5cfc5c=await _0x42aabe(_0x492ed4[_0x232ee4(0x15c)],_0x58b360[_0x232ee4(0x149)]);throwIfBuiltinPushTarget(_0x5cfc5c);if(_0x3b4798===_0x232ee4(0x14e)){const _0xae4aa3=_0x1fe2fb(_0x28b0b4[_0x232ee4(0x17a)],_0x492ed4[_0x232ee4(0x15c)],remoteMissingCompanyReadOptions()),_0x1ce9df=await _0x267e19(_0x492ed4[_0x232ee4(0x15c)],_0xae4aa3[_0x232ee4(0x15a)],{'visibility':_0x232ee4(0x144)});return{'method':_0x232ee4(0x153),'url':'/api/cli/v1/skills/'+_0x492ed4['appCode']+_0x232ee4(0x145),'body':{'skillCode':_0xae4aa3['skillCode'],'visibility':_0x232ee4(0x144),'valid':_0x1ce9df[_0x232ee4(0x170)],'errors':_0x1ce9df['errors'],'warnings':_0x1ce9df[_0x232ee4(0x147)],'resolvedSlug':_0x1ce9df[_0x232ee4(0x156)],'resolvedVersion':_0x1ce9df[_0x232ee4(0x155)]},'description':_0x232ee4(0x150)};}if(_0x5cfc5c&&_0x5cfc5c[_0x232ee4(0x182)]!==_0x232ee4(0x14c))throw CliErrors[_0x232ee4(0x159)](_0x232ee4(0x16c)+_0x58b360['skillCode']+_0x232ee4(0x14b)+(_0x5cfc5c[_0x232ee4(0x182)]??_0x232ee4(0x16e))+'\x22.');const _0x30004e=_0x1fe2fb(_0x28b0b4[_0x232ee4(0x17a)],_0x492ed4[_0x232ee4(0x15c)],_0x5cfc5c?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions());return{'method':_0x232ee4(0x153),'url':_0x232ee4(0x14f)+_0x492ed4[_0x232ee4(0x15c)]+_0x232ee4(0x158),'body':{'skillCode':_0x30004e[_0x232ee4(0x149)],'visibility':_0x232ee4(0x175),'files':_0x30004e[_0x232ee4(0x15a)][_0x232ee4(0x152)]?.['files'][_0x232ee4(0x16b)](_0x25ae9c=>_0x25ae9c['path'])??[]},'description':'Preview\x20a\x20personal\x20Skill\x20push\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.'};}export async function skillPushExecute(_0x4c0e5f){const _0x11a373=a49_0x267b,{createPersonalRuntimeSkill:_0x52dcd2,downloadRuntimeSkillPackage:_0x38eeca,getRuntimeSkillByCode:_0x2abc8e,publishCompanyRuntimeSkill:_0x556856,updatePersonalRuntimeSkill:_0xe41d61,validateRuntimeSkillPublish:_0x5630be}=await import('../../core/api-client.js'),{verifyRuntimeSkillPackage:_0xd846fc,verifyRuntimeSkillBundle:_0x437258,readPushDirectory:_0x2fc7ca,refreshPushDirectoryMetadataFromRemote:_0x448d01,recordPushedRuntimeSkill:_0x89a5ff,resolvePushDirectoryIdentity:_0x4453b0}=await import(_0x11a373(0x15b));if(!_0x4c0e5f[_0x11a373(0x174)])throw CliErrors['authRequired']();const _0x33518c=resolvePushScope(_0x4c0e5f),_0x4688ca=validateSkillDirectory(_0x4c0e5f[_0x11a373(0x171)]('dir'));throwIfSkillValidationFailed(_0x4688ca);const _0x17ed41=_0x4688ca[_0x11a373(0x17a)];let _0x100590;if(_0x33518c==='company'){const _0x55e708=_0x4453b0(_0x17ed41,_0x4c0e5f[_0x11a373(0x15c)],remoteFirstMetadataOptions()),_0x20311f=await _0x2abc8e(_0x4c0e5f['appCode'],_0x55e708[_0x11a373(0x149)]);throwIfBuiltinPushTarget(_0x20311f);if(_0x20311f)_0x448d01(_0x17ed41,_0x20311f,_0x4c0e5f[_0x11a373(0x15c)]);const _0x1ca42a=_0x2fc7ca(_0x17ed41,_0x4c0e5f[_0x11a373(0x15c)],_0x20311f?{'targetScope':_0x11a373(0x14e),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0x100590={'scope':_0x11a373(0x14e),'payload':_0x1ca42a,'publishInput':_0x1ca42a[_0x11a373(0x15a)],'remoteForPreflight':_0x20311f,'warnings':[]};}else{const _0x5981d6=_0x4c0e5f[_0x11a373(0x171)](_0x11a373(0x181))[_0x11a373(0x17c)](),_0x801c2e=Boolean(_0x5981d6),_0x2bea69=allowRetargetArgs(_0x801c2e),_0x2be23c=_0x4453b0(_0x17ed41,_0x4c0e5f[_0x11a373(0x15c)],{...remoteFirstMetadataOptions(),..._0x2bea69[0x0]}),_0x2b8b26=await _0x2abc8e(_0x4c0e5f['appCode'],_0x2be23c[_0x11a373(0x149)]);throwIfBuiltinPushTarget(_0x2b8b26);if(_0x2b8b26){if(_0x2b8b26['scope']!==_0x11a373(0x14c)){if(_0x801c2e)throw CliErrors[_0x11a373(0x159)](_0x11a373(0x16c)+_0x2be23c['skillCode']+_0x11a373(0x14b)+(_0x2b8b26[_0x11a373(0x182)]??_0x11a373(0x16e))+'\x22.');_0x448d01(_0x17ed41,_0x2b8b26,_0x4c0e5f[_0x11a373(0x15c)]);}else!_0x801c2e&&_0x448d01(_0x17ed41,_0x2b8b26,_0x4c0e5f[_0x11a373(0x15c)]);}const _0x230abb=_0x2fc7ca(_0x17ed41,_0x4c0e5f[_0x11a373(0x15c)],_0x2b8b26?remotePersonalReadOptions(_0x801c2e,_0x2bea69[0x0]):remoteMissingPersonalReadOptions(_0x2bea69[0x0])),_0x20a55e=_0x2b8b26?.[_0x11a373(0x182)]===_0x11a373(0x14c)&&_0x2b8b26[_0x11a373(0x149)]===_0x230abb[_0x11a373(0x149)]?_0x2b8b26:undefined,_0x588a21=_0x801c2e&&_0x20a55e?withRetargetExistingMetadata(_0x230abb[_0x11a373(0x15a)],_0x20a55e,{'preferInputSkillName':Boolean(_0x230abb[_0x11a373(0x17f)])}):_0x230abb[_0x11a373(0x15a)],_0x555ace=_0x801c2e?buildRetargetWarning(_0x2be23c['metadata'],_0x4c0e5f[_0x11a373(0x15c)]):[];_0x100590={'scope':'personal','payload':_0x230abb,'publishInput':_0x588a21,'remoteForPreflight':_0x20a55e,'existing':_0x20a55e,'warnings':[..._0x4688ca['warnings'],..._0x555ace]};}const _0x13777d=await runRemoteContentPreflight({'scope':_0x100590[_0x11a373(0x182)],'remote':_0x100590[_0x11a373(0x16f)],'publishInput':_0x100590[_0x11a373(0x172)],'skillCode':_0x100590[_0x11a373(0x177)]['skillCode'],'appCode':_0x4c0e5f['appCode'],'downloadRuntimeSkillPackage':_0x38eeca,'verifyRuntimeSkillBundle':_0x437258});if(_0x13777d[_0x11a373(0x162)]===_0x11a373(0x161))return _0x100590[_0x11a373(0x182)]===_0x11a373(0x14e)?_0x89a5ff(_0x17ed41,_0x13777d[_0x11a373(0x14a)],_0x4c0e5f[_0x11a373(0x15c)],{'scope':_0x11a373(0x14e)}):_0x89a5ff(_0x17ed41,_0x13777d['savedSkill'],_0x4c0e5f[_0x11a373(0x15c)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x13777d[_0x11a373(0x14a)]),'scope':_0x100590[_0x11a373(0x182)],..._0x100590[_0x11a373(0x182)]==='personal'?{'warnings':_0x100590['warnings']}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0x100590[_0x11a373(0x182)])+'\x20Skill\x20'+_0x100590[_0x11a373(0x177)]['skillCode']+_0x11a373(0x17e)};if(_0x100590[_0x11a373(0x182)]==='company'){const _0x58ecaa=await _0x5630be(_0x4c0e5f['appCode'],_0x100590['publishInput'],{'visibility':'NAMESPACE_ONLY'});throwIfPublishValidationFailed(_0x100590[_0x11a373(0x177)][_0x11a373(0x149)],_0x58ecaa);const _0x369c8a=_0x4c0e5f[_0x11a373(0x179)]('confirm-warnings')||_0x4c0e5f[_0x11a373(0x179)](_0x11a373(0x167));if(_0x58ecaa[_0x11a373(0x147)][_0x11a373(0x151)]>0x0&&!_0x369c8a)throw CliErrors[_0x11a373(0x159)](_0x11a373(0x146)+_0x100590[_0x11a373(0x177)][_0x11a373(0x149)]+'.',_0x11a373(0x17d)+_0x58ecaa[_0x11a373(0x147)][_0x11a373(0x178)](';\x20'));const _0x481ab9=await _0x556856(_0x4c0e5f[_0x11a373(0x15c)],_0x100590['publishInput'],{'confirmWarnings':_0x369c8a});return _0x89a5ff(_0x17ed41,{..._0x481ab9,'files':_0x100590[_0x11a373(0x172)][_0x11a373(0x152)]},_0x4c0e5f[_0x11a373(0x15c)],{'scope':_0x11a373(0x14e)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x481ab9),'scope':_0x11a373(0x14e),'reviewState':_0x11a373(0x14d),'submittedForReview':!![],'validation':{'warnings':_0x58ecaa[_0x11a373(0x147)]}},'message':'Submitted\x20company\x20Skill\x20'+_0x100590['payload']['skillCode']+_0x11a373(0x164)+(_0x481ab9['version']??_0x11a373(0x166))+_0x11a373(0x15f)};}const _0x474f82=_0x100590[_0x11a373(0x15d)]?await _0xe41d61(_0x100590['payload'][_0x11a373(0x149)],_0x4c0e5f[_0x11a373(0x15c)],_0x100590[_0x11a373(0x172)]):await _0x52dcd2(_0x4c0e5f['appCode'],_0x100590[_0x11a373(0x172)]);let _0x53c460=_0x474f82;if(isMultiFileManifest(_0x100590[_0x11a373(0x172)][_0x11a373(0x152)])){const _0x52d1f4=await _0x38eeca(_0x11a373(0x14c),_0x474f82['skillCode']||_0x100590[_0x11a373(0x177)]['skillCode'],_0x4c0e5f[_0x11a373(0x15c)]);_0x437258(_0x100590[_0x11a373(0x172)][_0x11a373(0x152)],_0x52d1f4),_0x53c460={..._0x474f82,'files':_0x100590[_0x11a373(0x172)]['files']};}else{if(isPackageBackedManifest(_0x474f82[_0x11a373(0x152)])){const _0x2ac380=await _0x38eeca(_0x11a373(0x14c),_0x474f82[_0x11a373(0x149)]||_0x100590[_0x11a373(0x177)][_0x11a373(0x149)],_0x4c0e5f[_0x11a373(0x15c)]);_0xd846fc(_0x474f82['files'],_0x2ac380);}}return _0x89a5ff(_0x17ed41,_0x53c460,_0x4c0e5f[_0x11a373(0x15c)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x474f82),'warnings':_0x100590[_0x11a373(0x147)]},'message':_0x100590[_0x11a373(0x15d)]?_0x11a373(0x148)+_0x100590[_0x11a373(0x177)][_0x11a373(0x149)]:_0x11a373(0x163)+_0x100590[_0x11a373(0x177)][_0x11a373(0x149)]};}function scopeLabel(_0x45b5e6){const _0xdcfbf1=a49_0x267b;return _0x45b5e6==='company'?'Company':_0xdcfbf1(0x157);}function a49_0x4df0(){const _0xc15af6=['warnings','Updated\x20personal\x20Skill\x20','skillCode','savedSkill','\x20has\x20scope=\x22','personal','submitted','company','/api/cli/v1/skills/','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','length','files','POST','12iLnIUi','resolvedVersion','resolvedSlug','Personal','/publish','validation','input','../../skills/runtime-skill-sync.js','appCode','existing','8160129XDsebr','\x20for\x20review','5754AnBLVO','identical','status','Created\x20personal\x20Skill\x20','\x20version\x20','424279IXukSH','(unknown)','confirmWarnings','3356268EXyglD','../../core/api-client.js','11125QwoCsw','map','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','7171700lOxpfL','unknown','remoteForPreflight','valid','str','publishInput','647061XsKHbm','accessKey','PRIVATE','966SYhGJr','payload','join','bool','dir','4FqRCoC','trim','Review\x20the\x20warnings\x20and\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit:\x20','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','frontmatterDisplayName','77HPeQWs','appcode','scope','7360thxzYS','NAMESPACE_ONLY','/publish/validate','Company\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20'];a49_0x4df0=function(){return _0xc15af6;};return a49_0x4df0();}
@@ -1 +1 @@
1
- function a50_0x22de(){const _0x172667=['Local\x20Skill\x20metadata\x20appCode\x20','identical','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','100461tQnhku','personal','join','warning','not-applicable','verifyRuntimeSkillBundle','validation','80310kHsPfE','valid','7529jRiEYx','version','995208CppcWu','scope','lovrabet.skill.json','Builtin\x20Skill\x20','176qGdsmQ','publishInput','SkillHub\x20validation\x20returned\x20invalid.','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','17991oNMohY','appCode','736212nhyVYY','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','builtin','errors','skill-metadata-appcode-retargeted','12KmPERE','Company\x20Skill\x20push\x20validation\x20failed\x20for\x20','skillCode','files','content','remote','length','554645kjImBt','str'];a50_0x22de=function(){return _0x172667;};return a50_0x22de();}(function(_0xd6fb0f,_0x2f4d30){const _0x563d1f=a50_0x41dd,_0x55987b=_0xd6fb0f();while(!![]){try{const _0x585421=parseInt(_0x563d1f(0xb9))/0x1*(-parseInt(_0x563d1f(0xa4))/0x2)+parseInt(_0x563d1f(0xb0))/0x3+-parseInt(_0x563d1f(0x9f))/0x4+parseInt(_0x563d1f(0xb7))/0x5+parseInt(_0x563d1f(0xbb))/0x6+parseInt(_0x563d1f(0xab))/0x7+parseInt(_0x563d1f(0xbf))/0x8*(parseInt(_0x563d1f(0x9d))/0x9);if(_0x585421===_0x2f4d30)break;else _0x55987b['push'](_0x55987b['shift']());}catch(_0x4017f9){_0x55987b['push'](_0x55987b['shift']());}}}(a50_0x22de,0x1ab5b));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x3df402){const _0x3e91db=a50_0x41dd,_0x18f726=_0x3df402[_0x3e91db(0xac)](_0x3e91db(0xbc))||_0x3e91db(0xb1);if(_0x18f726===_0x3e91db(0xb1)||_0x18f726==='company')return _0x18f726;throw CliErrors['validation'](_0x3e91db(0xa0)+_0x18f726+'\x22.');}export function allowRetargetArgs(_0x3c58ff){return _0x3c58ff?[{'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(_0x2bc110={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x2bc110};}export function remotePersonalReadOptions(_0x54ae7a,_0x39a4ff={}){return{'ignoreInvalidMetadata':!![],..._0x54ae7a?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x39a4ff};}function a50_0x41dd(_0x6220a5,_0x2e2bf1){_0x6220a5=_0x6220a5-0x9a;const _0x22deb6=a50_0x22de();let _0x41ddd8=_0x22deb6[_0x6220a5];return _0x41ddd8;}export function throwIfBuiltinPushTarget(_0x1339c4){const _0x3543a3=a50_0x41dd;if(_0x1339c4?.[_0x3543a3(0xbc)]!==_0x3543a3(0xa1))return;throw CliErrors['validation'](_0x3543a3(0xbe)+(_0x1339c4[_0x3543a3(0xa6)]??'(unknown)')+'\x20cannot\x20be\x20pushed.','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.');}export function throwIfPublishValidationFailed(_0x1cdc53,_0x524999){const _0xf55922=a50_0x41dd;if(_0x524999[_0xf55922(0xb8)]&&_0x524999[_0xf55922(0xa2)][_0xf55922(0xaa)]===0x0)return;const _0x514392=_0x524999[_0xf55922(0xa2)][_0xf55922(0xaa)]>0x0?_0x524999[_0xf55922(0xa2)][_0xf55922(0xb2)](';\x20'):_0xf55922(0x9b);throw CliErrors[_0xf55922(0xb6)](_0xf55922(0xa5)+_0x1cdc53+'.',_0x514392);}export function buildRetargetWarning(_0x22b55a,_0xe12d75){const _0xe3994f=a50_0x41dd;if(!_0x22b55a?.[_0xe3994f(0x9e)]||_0x22b55a[_0xe3994f(0x9e)]===_0xe12d75)return[];return[{'level':_0xe3994f(0xb3),'ruleId':_0xe3994f(0xa3),'file':_0xe3994f(0xbd),'message':_0xe3994f(0xad)+_0x22b55a['appCode']+_0xe3994f(0xaf)+_0xe12d75+'\x20after\x20successful\x20push.','suggestion':_0xe3994f(0x9c)}];}export async function runRemoteContentPreflight(_0xdd1762){const _0x7735e7=a50_0x41dd;if(!_0xdd1762[_0x7735e7(0xa9)]||_0xdd1762[_0x7735e7(0xa9)][_0x7735e7(0xbc)]!==_0xdd1762['scope']||!_0xdd1762[_0x7735e7(0x9a)]['files'])return{'status':_0x7735e7(0xb4)};const _0x3dd1d6=_0xdd1762['remote'][_0x7735e7(0xa6)]||_0xdd1762[_0x7735e7(0xa6)];if(!_0x3dd1d6)return{'status':'not-applicable'};const _0xd5a566=await _0xdd1762['downloadRuntimeSkillPackage'](_0xdd1762['scope'],_0x3dd1d6,_0xdd1762[_0x7735e7(0x9e)],_0xdd1762[_0x7735e7(0xa9)][_0x7735e7(0xba)]);try{_0xdd1762[_0x7735e7(0xb5)](_0xdd1762[_0x7735e7(0x9a)][_0x7735e7(0xa7)],_0xd5a566);}catch{return{'status':'different'};}return{'status':_0x7735e7(0xae),'savedSkill':{..._0xdd1762[_0x7735e7(0xa9)],'content':_0xdd1762[_0x7735e7(0x9a)][_0x7735e7(0xa8)],'files':_0xdd1762[_0x7735e7(0x9a)][_0x7735e7(0xa7)]}};}
1
+ function a50_0x5425(){const _0x109caa=['personal','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','files','skill-metadata-appcode-retargeted','warning','remote','3318990VOPouf','18095dSshkE','valid','company','\x20after\x20successful\x20push.','content','appCode','skillCode','(unknown)','str','not-applicable','6025310kWWQYg','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','SkillHub\x20validation\x20returned\x20invalid.','builtin','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','4849624nKkhGU','verifyRuntimeSkillBundle','Company\x20Skill\x20push\x20validation\x20failed\x20for\x20','length','validation','14102WGxkpR','3585123mDcUxD','1696XnjgKT','146gCqWGQ','50xKAORi','scope','errors','publishInput','3441444JqSziJ','downloadRuntimeSkillPackage','lovrabet.skill.json','Local\x20Skill\x20metadata\x20appCode\x20'];a50_0x5425=function(){return _0x109caa;};return a50_0x5425();}(function(_0x574272,_0x13ce3c){const _0x447712=a50_0x394f,_0x4cfabf=_0x574272();while(!![]){try{const _0x3e6eda=-parseInt(_0x447712(0x18b))/0x1*(parseInt(_0x447712(0x18e))/0x2)+-parseInt(_0x447712(0x19d))/0x3+-parseInt(_0x447712(0x186))/0x4+parseInt(_0x447712(0x181))/0x5+parseInt(_0x447712(0x193))/0x6+parseInt(_0x447712(0x19e))/0x7*(parseInt(_0x447712(0x18d))/0x8)+parseInt(_0x447712(0x18c))/0x9*(parseInt(_0x447712(0x18f))/0xa);if(_0x3e6eda===_0x13ce3c)break;else _0x4cfabf['push'](_0x4cfabf['shift']());}catch(_0x57f686){_0x4cfabf['push'](_0x4cfabf['shift']());}}}(a50_0x5425,0xecde1));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x22cca7){const _0x4a22b0=a50_0x394f,_0x55b6d8=_0x22cca7[_0x4a22b0(0x17f)](_0x4a22b0(0x190))||_0x4a22b0(0x197);if(_0x55b6d8===_0x4a22b0(0x197)||_0x55b6d8===_0x4a22b0(0x1a0))return _0x55b6d8;throw CliErrors[_0x4a22b0(0x18a)](_0x4a22b0(0x198)+_0x55b6d8+'\x22.');}export function allowRetargetArgs(_0x389645){return _0x389645?[{'allowAppCodeRetarget':!![]}]:[];}function a50_0x394f(_0x2b3b4b,_0xa6d1e5){_0x2b3b4b=_0x2b3b4b-0x17d;const _0x5425c4=a50_0x5425();let _0x394fbd=_0x5425c4[_0x2b3b4b];return _0x394fbd;}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x57f9e8=a50_0x394f;return{'targetScope':_0x57f9e8(0x1a0),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x461baf={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x461baf};}export function remotePersonalReadOptions(_0x55fc6a,_0x7e0382={}){return{'ignoreInvalidMetadata':!![],..._0x55fc6a?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x7e0382};}export function throwIfBuiltinPushTarget(_0x28f8f4){const _0x22380c=a50_0x394f;if(_0x28f8f4?.[_0x22380c(0x190)]!==_0x22380c(0x184))return;throw CliErrors[_0x22380c(0x18a)]('Builtin\x20Skill\x20'+(_0x28f8f4[_0x22380c(0x17d)]??_0x22380c(0x17e))+'\x20cannot\x20be\x20pushed.','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.');}export function throwIfPublishValidationFailed(_0x273253,_0x1ae79b){const _0x6677ba=a50_0x394f;if(_0x1ae79b[_0x6677ba(0x19f)]&&_0x1ae79b[_0x6677ba(0x191)][_0x6677ba(0x189)]===0x0)return;const _0x500ce3=_0x1ae79b[_0x6677ba(0x191)][_0x6677ba(0x189)]>0x0?_0x1ae79b[_0x6677ba(0x191)]['join'](';\x20'):_0x6677ba(0x183);throw CliErrors[_0x6677ba(0x18a)](_0x6677ba(0x188)+_0x273253+'.',_0x500ce3);}export function buildRetargetWarning(_0x3e3bac,_0x40b832){const _0xb3305=a50_0x394f;if(!_0x3e3bac?.[_0xb3305(0x1a3)]||_0x3e3bac[_0xb3305(0x1a3)]===_0x40b832)return[];return[{'level':_0xb3305(0x19b),'ruleId':_0xb3305(0x19a),'file':_0xb3305(0x195),'message':_0xb3305(0x196)+_0x3e3bac[_0xb3305(0x1a3)]+_0xb3305(0x182)+_0x40b832+_0xb3305(0x1a1),'suggestion':_0xb3305(0x185)}];}export async function runRemoteContentPreflight(_0x13843c){const _0x5e802f=a50_0x394f;if(!_0x13843c[_0x5e802f(0x19c)]||_0x13843c[_0x5e802f(0x19c)][_0x5e802f(0x190)]!==_0x13843c[_0x5e802f(0x190)]||!_0x13843c[_0x5e802f(0x192)]['files'])return{'status':_0x5e802f(0x180)};const _0x4ab141=_0x13843c['remote'][_0x5e802f(0x17d)]||_0x13843c['skillCode'];if(!_0x4ab141)return{'status':_0x5e802f(0x180)};const _0x62ade4=await _0x13843c[_0x5e802f(0x194)](_0x13843c['scope'],_0x4ab141,_0x13843c['appCode'],_0x13843c[_0x5e802f(0x19c)]['version']);try{_0x13843c[_0x5e802f(0x187)](_0x13843c[_0x5e802f(0x192)][_0x5e802f(0x199)],_0x62ade4);}catch{return{'status':'different'};}return{'status':'identical','savedSkill':{..._0x13843c[_0x5e802f(0x19c)],'content':_0x13843c[_0x5e802f(0x192)][_0x5e802f(0x1a2)],'files':_0x13843c[_0x5e802f(0x192)][_0x5e802f(0x199)]}};}
@@ -1 +1 @@
1
- function a51_0x243d(){const _0x1cbc78=['416384nwFMAK','appCode','721zQUDgJ','version','warning','tags','618025EuqrSX','37476xAOTBH','4mhrupb','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','1961728ArcTnk','15306rtqHhs','10wRlDAN','54951lkNvRV','preferInputSkillName','sourceSessionId','isArray','483471Ljizsl','lovrabet.skill.json','\x20after\x20successful\x20push.','skillName'];a51_0x243d=function(){return _0x1cbc78;};return a51_0x243d();}(function(_0x13a42b,_0x40e784){const _0x38ed66=a51_0x1297,_0x198ac4=_0x13a42b();while(!![]){try{const _0x42c546=-parseInt(_0x38ed66(0x192))/0x1+-parseInt(_0x38ed66(0x193))/0x2*(parseInt(_0x38ed66(0x198))/0x3)+parseInt(_0x38ed66(0x1a0))/0x4+parseInt(_0x38ed66(0x1a6))/0x5+-parseInt(_0x38ed66(0x196))/0x6*(-parseInt(_0x38ed66(0x1a2))/0x7)+-parseInt(_0x38ed66(0x195))/0x8+-parseInt(_0x38ed66(0x19c))/0x9*(-parseInt(_0x38ed66(0x197))/0xa);if(_0x42c546===_0x40e784)break;else _0x198ac4['push'](_0x198ac4['shift']());}catch(_0xb67700){_0x198ac4['push'](_0x198ac4['shift']());}}}(a51_0x243d,0x36e4f));export function withRetargetExistingMetadata(_0x34f128,_0x23fba9,_0x4fd96a={}){const _0x2fdec4=a51_0x1297,_0x4c14e5=_0x4fd96a[_0x2fdec4(0x199)]?_0x34f128[_0x2fdec4(0x19f)]??_0x23fba9[_0x2fdec4(0x19f)]:_0x23fba9[_0x2fdec4(0x19f)]??_0x34f128[_0x2fdec4(0x19f)];return{..._0x34f128,'skillName':_0x4c14e5,'description':_0x23fba9['description']??_0x34f128['description'],'tags':Array[_0x2fdec4(0x19b)](_0x23fba9[_0x2fdec4(0x1a5)])?_0x23fba9[_0x2fdec4(0x1a5)]:_0x34f128[_0x2fdec4(0x1a5)],'version':_0x23fba9[_0x2fdec4(0x1a3)]??_0x34f128[_0x2fdec4(0x1a3)],'sourceSessionId':_0x23fba9[_0x2fdec4(0x19a)]??_0x34f128[_0x2fdec4(0x19a)]};}function a51_0x1297(_0x33a7d8,_0x3b5153){_0x33a7d8=_0x33a7d8-0x192;const _0x243de9=a51_0x243d();let _0x1297e8=_0x243de9[_0x33a7d8];return _0x1297e8;}export function buildRetargetWarning(_0x29d6b8,_0x333d68){const _0x538958=a51_0x1297;if(!_0x29d6b8?.[_0x538958(0x1a1)]||_0x29d6b8[_0x538958(0x1a1)]===_0x333d68)return[];return[{'level':_0x538958(0x1a4),'ruleId':'skill-metadata-appcode-retargeted','file':_0x538958(0x19d),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x29d6b8[_0x538958(0x1a1)]+_0x538958(0x194)+_0x333d68+_0x538958(0x19e),'suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}
1
+ function a51_0xfa45(_0x47f2d8,_0xa64016){_0x47f2d8=_0x47f2d8-0x8d;const _0x2ff1c8=a51_0x2ff1();let _0xfa4579=_0x2ff1c8[_0x47f2d8];return _0xfa4579;}(function(_0xe4fbfb,_0x1cd1cb){const _0x60a3a6=a51_0xfa45,_0x286f91=_0xe4fbfb();while(!![]){try{const _0x5a99f2=-parseInt(_0x60a3a6(0x93))/0x1*(parseInt(_0x60a3a6(0x8e))/0x2)+-parseInt(_0x60a3a6(0x91))/0x3+parseInt(_0x60a3a6(0xa0))/0x4+-parseInt(_0x60a3a6(0x9b))/0x5*(-parseInt(_0x60a3a6(0x9f))/0x6)+parseInt(_0x60a3a6(0x99))/0x7*(-parseInt(_0x60a3a6(0x8f))/0x8)+parseInt(_0x60a3a6(0x96))/0x9*(-parseInt(_0x60a3a6(0x9c))/0xa)+-parseInt(_0x60a3a6(0x98))/0xb*(-parseInt(_0x60a3a6(0x9d))/0xc);if(_0x5a99f2===_0x1cd1cb)break;else _0x286f91['push'](_0x286f91['shift']());}catch(_0x372f9b){_0x286f91['push'](_0x286f91['shift']());}}}(a51_0x2ff1,0xe13c4));function a51_0x2ff1(){const _0x232367=['appCode','46237lccRGW','Local\x20Skill\x20metadata\x20appCode\x20','lovrabet.skill.json','7677iWDLkH','sourceSessionId','53647JPqOhX','14rBYtbq','tags','25dfQpWj','4790pZCBuQ','5796ODXoHl','description','1646166oalCRS','2680304sacXpK','skillName','\x20after\x20successful\x20push.','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','version','60mjpfyk','6334408JSFSSs','preferInputSkillName','286827gSdQTB'];a51_0x2ff1=function(){return _0x232367;};return a51_0x2ff1();}export function withRetargetExistingMetadata(_0x22bc1d,_0xb193bd,_0x2a10d6={}){const _0x5ba7c4=a51_0xfa45,_0x3733b4=_0x2a10d6[_0x5ba7c4(0x90)]?_0x22bc1d[_0x5ba7c4(0xa1)]??_0xb193bd[_0x5ba7c4(0xa1)]:_0xb193bd[_0x5ba7c4(0xa1)]??_0x22bc1d[_0x5ba7c4(0xa1)];return{..._0x22bc1d,'skillName':_0x3733b4,'description':_0xb193bd[_0x5ba7c4(0x9e)]??_0x22bc1d[_0x5ba7c4(0x9e)],'tags':Array['isArray'](_0xb193bd['tags'])?_0xb193bd[_0x5ba7c4(0x9a)]:_0x22bc1d[_0x5ba7c4(0x9a)],'version':_0xb193bd[_0x5ba7c4(0x8d)]??_0x22bc1d['version'],'sourceSessionId':_0xb193bd[_0x5ba7c4(0x97)]??_0x22bc1d[_0x5ba7c4(0x97)]};}export function buildRetargetWarning(_0x1426fe,_0x154bd){const _0x261638=a51_0xfa45;if(!_0x1426fe?.['appCode']||_0x1426fe[_0x261638(0x92)]===_0x154bd)return[];return[{'level':'warning','ruleId':'skill-metadata-appcode-retargeted','file':_0x261638(0x95),'message':_0x261638(0x94)+_0x1426fe[_0x261638(0x92)]+_0x261638(0xa3)+_0x154bd+_0x261638(0xa2),'suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}
@@ -1 +1 @@
1
- (function(_0x27d56e,_0x1231ad){const _0x4a5b00=a52_0x19eb,_0x59857f=_0x27d56e();while(!![]){try{const _0x313974=-parseInt(_0x4a5b00(0x157))/0x1+parseInt(_0x4a5b00(0x158))/0x2+-parseInt(_0x4a5b00(0x15b))/0x3*(parseInt(_0x4a5b00(0x151))/0x4)+parseInt(_0x4a5b00(0x154))/0x5+parseInt(_0x4a5b00(0x153))/0x6+parseInt(_0x4a5b00(0x155))/0x7*(parseInt(_0x4a5b00(0x15a))/0x8)+-parseInt(_0x4a5b00(0x15d))/0x9;if(_0x313974===_0x1231ad)break;else _0x59857f['push'](_0x59857f['shift']());}catch(_0x6e8472){_0x59857f['push'](_0x59857f['shift']());}}}(a52_0x2777,0x4bc2f));import{CliErrors}from'../../errors.js';function a52_0x19eb(_0x5492a1,_0x1015ab){_0x5492a1=_0x5492a1-0x14f;const _0x277788=a52_0x2777();let _0x19eb07=_0x277788[_0x5492a1];return _0x19eb07;}export function normalizeSyncScopes(_0x36eb50){const _0x52dcaf=a52_0x19eb,_0x548979=_0x36eb50['trim']();if(!_0x548979||_0x548979===_0x52dcaf(0x156))return[_0x52dcaf(0x15c),'company'];if(_0x548979===_0x52dcaf(0x15c)||_0x548979===_0x52dcaf(0x14f))return[_0x548979];throw CliErrors[_0x52dcaf(0x152)](_0x52dcaf(0x150)+_0x36eb50);}export function normalizeListScope(_0x3e0b90){const _0x3d7b85=a52_0x19eb,_0x36e012=_0x3e0b90['trim']();if(!_0x36e012)return _0x3d7b85(0x156);if(_0x36e012==='personal'||_0x36e012==='company'||_0x36e012===_0x3d7b85(0x156))return _0x36e012;throw CliErrors[_0x3d7b85(0x152)](_0x3d7b85(0x159)+_0x3e0b90);}export function shouldListScope(_0x567bce,_0x38cc4d){const _0x3cd41b=a52_0x19eb;if(_0x567bce===_0x3cd41b(0x156))return!![];return _0x567bce===_0x38cc4d;}export function listScopeToRuntimeScopes(_0x5e1a5b){const _0x4c8294=a52_0x19eb;if(_0x5e1a5b===_0x4c8294(0x156))return[_0x4c8294(0x15c),'company'];return[_0x5e1a5b==='company'?_0x4c8294(0x14f):_0x5e1a5b];}function a52_0x2777(){const _0x640b57=['1557725sZHUdF','2066603lMFulS','all','609235nDOuGH','1072350EgTYji','Unsupported\x20Skill\x20list\x20scope:\x20','16qbectz','1536693ptukEV','personal','4342671xMXfPx','company','Unsupported\x20Skill\x20sync\x20scope:\x20','4rEGYKm','validation','2856756AoRASA'];a52_0x2777=function(){return _0x640b57;};return a52_0x2777();}export function listScopeToRemoteScope(_0x591430){return _0x591430;}
1
+ function a52_0x4f6d(_0x7e8e23,_0x347f69){_0x7e8e23=_0x7e8e23-0x1ae;const _0x33112d=a52_0x3311();let _0x4f6d89=_0x33112d[_0x7e8e23];return _0x4f6d89;}(function(_0x17ea59,_0x3dc843){const _0x490a71=a52_0x4f6d,_0x10d200=_0x17ea59();while(!![]){try{const _0x812dc0=parseInt(_0x490a71(0x1bc))/0x1*(parseInt(_0x490a71(0x1be))/0x2)+parseInt(_0x490a71(0x1b5))/0x3*(parseInt(_0x490a71(0x1b0))/0x4)+-parseInt(_0x490a71(0x1b4))/0x5*(parseInt(_0x490a71(0x1b2))/0x6)+-parseInt(_0x490a71(0x1ae))/0x7+-parseInt(_0x490a71(0x1ba))/0x8*(-parseInt(_0x490a71(0x1bb))/0x9)+parseInt(_0x490a71(0x1af))/0xa*(-parseInt(_0x490a71(0x1b7))/0xb)+parseInt(_0x490a71(0x1b8))/0xc;if(_0x812dc0===_0x3dc843)break;else _0x10d200['push'](_0x10d200['shift']());}catch(_0x1c4242){_0x10d200['push'](_0x10d200['shift']());}}}(a52_0x3311,0x5ac11));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x1dc40c){const _0x222d86=a52_0x4f6d,_0x2e0069=_0x1dc40c[_0x222d86(0x1b9)]();if(!_0x2e0069||_0x2e0069===_0x222d86(0x1b6))return['personal',_0x222d86(0x1bd)];if(_0x2e0069===_0x222d86(0x1b1)||_0x2e0069===_0x222d86(0x1bd))return[_0x2e0069];throw CliErrors[_0x222d86(0x1b3)](_0x222d86(0x1bf)+_0x1dc40c);}export function normalizeListScope(_0x56ed71){const _0x4cc465=a52_0x4f6d,_0x41a3a0=_0x56ed71[_0x4cc465(0x1b9)]();if(!_0x41a3a0)return _0x4cc465(0x1b6);if(_0x41a3a0===_0x4cc465(0x1b1)||_0x41a3a0===_0x4cc465(0x1bd)||_0x41a3a0==='all')return _0x41a3a0;throw CliErrors['validation'](_0x4cc465(0x1c0)+_0x56ed71);}function a52_0x3311(){const _0x27348b=['Unsupported\x20Skill\x20list\x20scope:\x20','3303041xIVlci','3432270wmaacU','247356CIyNPa','personal','422226hbbRak','validation','15LwXPFQ','15YXooRi','all','11teTaVS','8750208BiztCV','trim','31936BQwLFy','333KZMOYc','1TZSCeC','company','423698bXMNFi','Unsupported\x20Skill\x20sync\x20scope:\x20'];a52_0x3311=function(){return _0x27348b;};return a52_0x3311();}export function shouldListScope(_0x17c974,_0x4698dc){const _0x5244a7=a52_0x4f6d;if(_0x17c974===_0x5244a7(0x1b6))return!![];return _0x17c974===_0x4698dc;}export function listScopeToRuntimeScopes(_0x7bbab0){const _0x54643b=a52_0x4f6d;if(_0x7bbab0===_0x54643b(0x1b6))return[_0x54643b(0x1b1),_0x54643b(0x1bd)];return[_0x7bbab0===_0x54643b(0x1bd)?_0x54643b(0x1bd):_0x7bbab0];}export function listScopeToRemoteScope(_0x2bc940){return _0x2bc940;}
@@ -1 +1 @@
1
- (function(_0x3ae55e,_0x462487){var _0x2ba786=a53_0x46c1,_0x42d368=_0x3ae55e();while(!![]){try{var _0x1d9ec7=parseInt(_0x2ba786(0x161))/0x1+-parseInt(_0x2ba786(0x15c))/0x2+-parseInt(_0x2ba786(0x156))/0x3*(-parseInt(_0x2ba786(0x155))/0x4)+parseInt(_0x2ba786(0x157))/0x5*(parseInt(_0x2ba786(0x159))/0x6)+-parseInt(_0x2ba786(0x15e))/0x7*(-parseInt(_0x2ba786(0x158))/0x8)+-parseInt(_0x2ba786(0x153))/0x9+-parseInt(_0x2ba786(0x150))/0xa;if(_0x1d9ec7===_0x462487)break;else _0x42d368['push'](_0x42d368['shift']());}catch(_0x345c8a){_0x42d368['push'](_0x42d368['shift']());}}}(a53_0xfcf5,0xd19d1));export function summarizeRuntimeSkill(_0x593ca6){var _0x1bc185=a53_0x46c1;return{'id':_0x593ca6['id'],'skillCode':_0x593ca6[_0x1bc185(0x15a)],'skillName':_0x593ca6['skillName'],'scope':_0x593ca6[_0x1bc185(0x14d)],'version':_0x593ca6[_0x1bc185(0x14f)],'readonly':_0x593ca6[_0x1bc185(0x162)]};}function a53_0x46c1(_0x322e52,_0x444334){_0x322e52=_0x322e52-0x14d;var _0xfcf566=a53_0xfcf5();var _0x46c1cd=_0xfcf566[_0x322e52];return _0x46c1cd;}export function summarizeLocalRuntimeSkill(_0x115831){var _0x5c0231=a53_0x46c1;return{'id':_0x115831['id'],'skillCode':_0x115831[_0x5c0231(0x15a)],'skillName':_0x115831[_0x5c0231(0x154)],'scope':_0x115831[_0x5c0231(0x14d)],'appCode':_0x115831[_0x5c0231(0x151)],'version':_0x115831['version'],'status':_0x115831[_0x5c0231(0x15d)],'readonly':_0x115831[_0x5c0231(0x162)],'tags':_0x115831['tags'],'dir':_0x115831['dir'],'cacheDir':_0x115831['cacheDir'],'skillMdPath':_0x115831[_0x5c0231(0x14e)],'metadataPath':_0x115831['metadataPath'],'linkedPaths':_0x115831[_0x5c0231(0x160)],'contentHash':_0x115831[_0x5c0231(0x15b)],'treeHash':_0x115831[_0x5c0231(0x15f)],'pulledAt':_0x115831[_0x5c0231(0x152)]};}function a53_0xfcf5(){var _0x261490=['35ALRtks','treeHash','linkedPaths','939868dNRsgw','readonly','scope','skillMdPath','version','14639280xHYvgL','appCode','pulledAt','14347674IZochv','skillName','38684weWCUW','303EwuDcc','3971155IWHUJN','2351688mciPNK','6NXInWv','skillCode','contentHash','527968NOALBu','status'];a53_0xfcf5=function(){return _0x261490;};return a53_0xfcf5();}
1
+ function a53_0x3561(_0x4b4e4e,_0x3a460c){_0x4b4e4e=_0x4b4e4e-0x19d;var _0x4bf26f=a53_0x4bf2();var _0x35615a=_0x4bf26f[_0x4b4e4e];return _0x35615a;}(function(_0x12cff5,_0x412cc2){var _0x577038=a53_0x3561,_0x3123e0=_0x12cff5();while(!![]){try{var _0x2dab53=parseInt(_0x577038(0x1a0))/0x1*(-parseInt(_0x577038(0x1b6))/0x2)+parseInt(_0x577038(0x1ab))/0x3*(parseInt(_0x577038(0x1af))/0x4)+-parseInt(_0x577038(0x1a6))/0x5*(-parseInt(_0x577038(0x1a4))/0x6)+parseInt(_0x577038(0x1a3))/0x7+-parseInt(_0x577038(0x1a5))/0x8*(-parseInt(_0x577038(0x1a2))/0x9)+parseInt(_0x577038(0x1b2))/0xa+-parseInt(_0x577038(0x1b4))/0xb;if(_0x2dab53===_0x412cc2)break;else _0x3123e0['push'](_0x3123e0['shift']());}catch(_0x1afbf5){_0x3123e0['push'](_0x3123e0['shift']());}}}(a53_0x4bf2,0x5dbd7));function a53_0x4bf2(){var _0x53db36=['skillCode','5270067qxBFgo','skillName','26QffhCB','status','appCode','scope','17551EOjXpH','readonly','18JdqldT','2319408MUgRxO','120eegpXu','332224wSfQAz','103745xKXsJX','treeHash','linkedPaths','cacheDir','tags','2319kLJHrJ','contentHash','skillMdPath','dir','1220PcQOxF','version','metadataPath','260740zYkMuC'];a53_0x4bf2=function(){return _0x53db36;};return a53_0x4bf2();}export function summarizeRuntimeSkill(_0x17a47b){var _0x16417a=a53_0x3561;return{'id':_0x17a47b['id'],'skillCode':_0x17a47b[_0x16417a(0x1b3)],'skillName':_0x17a47b[_0x16417a(0x1b5)],'scope':_0x17a47b[_0x16417a(0x19f)],'version':_0x17a47b[_0x16417a(0x1b0)],'readonly':_0x17a47b[_0x16417a(0x1a1)]};}export function summarizeLocalRuntimeSkill(_0x1f400c){var _0x325f3b=a53_0x3561;return{'id':_0x1f400c['id'],'skillCode':_0x1f400c['skillCode'],'skillName':_0x1f400c['skillName'],'scope':_0x1f400c[_0x325f3b(0x19f)],'appCode':_0x1f400c[_0x325f3b(0x19e)],'version':_0x1f400c['version'],'status':_0x1f400c[_0x325f3b(0x19d)],'readonly':_0x1f400c[_0x325f3b(0x1a1)],'tags':_0x1f400c[_0x325f3b(0x1aa)],'dir':_0x1f400c[_0x325f3b(0x1ae)],'cacheDir':_0x1f400c[_0x325f3b(0x1a9)],'skillMdPath':_0x1f400c[_0x325f3b(0x1ad)],'metadataPath':_0x1f400c[_0x325f3b(0x1b1)],'linkedPaths':_0x1f400c[_0x325f3b(0x1a8)],'contentHash':_0x1f400c[_0x325f3b(0x1ac)],'treeHash':_0x1f400c[_0x325f3b(0x1a7)],'pulledAt':_0x1f400c['pulledAt']};}
@@ -1 +1 @@
1
- function a54_0x4a05(_0x408f55,_0x50077a){_0x408f55=_0x408f55-0x11a;const _0x35ea6e=a54_0x35ea();let _0x4a0559=_0x35ea6e[_0x408f55];return _0x4a0559;}function a54_0x35ea(){const _0x4a3a09=['3909HhVkBm','references/runtime-contract.md','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','1.\x20受控模板预览:【填写待维护内容、影响范围和预览方式】\x0a2.\x20用户确认:【填写确认信息和不可省略的人工判断点】\x0a3.\x20受控维护:【填写确认后的维护步骤和记录方式】\x0a4.\x20只读核对:【填写维护后的核对入口、差异和回滚/修正方式】','\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=','Unsupported\x20Skill\x20type:\x20','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','references/output-contract.md','\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','403489AhPhLa','Use\x20one\x20of:\x20','write','Invalid\x20Skill\x20name:\x20','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','90TJFOnT','358YpHJkF','36PQkxZv','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','read','402010YABcas','join','timestamp','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0ametadata:\x0a\x20\x20type:\x20','99324zPNKcE','test','trainer','4276pNdEKP','\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','484QqTZZv','\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','trim','665924NAZukE','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','6HoNGWG','SKILL.md','\x0a\x20\x20created:\x20\x22','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','\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','type','4755192DIgZbG','validation'];a54_0x35ea=function(){return _0x4a3a09;};return a54_0x35ea();}const a54_0x5e70e2=a54_0x4a05;(function(_0x137622,_0x369e3f){const _0x184dea=a54_0x4a05,_0x4e0340=_0x137622();while(!![]){try{const _0x29868b=parseInt(_0x184dea(0x143))/0x1+parseInt(_0x184dea(0x11f))/0x2*(parseInt(_0x184dea(0x13a))/0x3)+-parseInt(_0x184dea(0x12b))/0x4*(-parseInt(_0x184dea(0x11e))/0x5)+-parseInt(_0x184dea(0x132))/0x6*(-parseInt(_0x184dea(0x130))/0x7)+-parseInt(_0x184dea(0x138))/0x8+-parseInt(_0x184dea(0x120))/0x9*(parseInt(_0x184dea(0x123))/0xa)+parseInt(_0x184dea(0x12d))/0xb*(parseInt(_0x184dea(0x128))/0xc);if(_0x29868b===_0x369e3f)break;else _0x4e0340['push'](_0x4e0340['shift']());}catch(_0x10fd8a){_0x4e0340['push'](_0x4e0340['shift']());}}}(a54_0x35ea,0x57e95));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a54_0x5e70e2(0x11b),'read',a54_0x5e70e2(0x12a)];export const DEFAULT_SKILL_TARGET='.agents/skills';export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a54_0x5e70e2(0x13b);export const OUTPUT_CONTRACT_FILE=a54_0x5e70e2(0x141);export function validateSkillName(_0x511982){const _0x1b5c1c=a54_0x5e70e2,_0x17161d=_0x511982[_0x1b5c1c(0x12f)]();if(!SKILL_NAME_PATTERN[_0x1b5c1c(0x129)](_0x17161d))throw CliErrors[_0x1b5c1c(0x139)](_0x1b5c1c(0x11c)+_0x511982+_0x1b5c1c(0x135),'Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.');return _0x17161d;}export function normalizeSkillTemplateType(_0x36c62a){const _0x12ed8e=a54_0x5e70e2,_0x40e83e=(_0x36c62a||_0x12ed8e(0x11b))[_0x12ed8e(0x12f)]()||_0x12ed8e(0x11b);if(SKILL_TYPES['includes'](_0x40e83e))return _0x40e83e;throw CliErrors[_0x12ed8e(0x139)](_0x12ed8e(0x13f)+_0x36c62a,_0x12ed8e(0x11a)+SKILL_TYPES[_0x12ed8e(0x124)](',\x20')+'.');}export function renderSkillTemplate(_0x216c60){const _0x50a79e=a54_0x5e70e2,_0xa85406=validateSkillName(_0x216c60['skillName']),_0x430c15=normalizeSkillTemplateType(_0x216c60[_0x50a79e(0x137)]),_0xde9a45=_0x216c60[_0x50a79e(0x125)]??new Date()['toISOString']();return{'skillName':_0xa85406,'type':_0x430c15,'files':[{'path':_0x50a79e(0x133),'content':renderSkillMd(_0xa85406,_0x430c15,_0xde9a45)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0xa85406,_0x430c15)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0xa85406,_0x430c15)}]};}function renderSkillMd(_0x286f46,_0x1cb8ed,_0x14ce32){const _0x1bbb94=a54_0x5e70e2,_0xff397e=typeWorkflow(_0x1cb8ed);return'---\x0aname:\x20'+_0x286f46+_0x1bbb94(0x127)+_0x1cb8ed+_0x1bbb94(0x134)+_0x14ce32+_0x1bbb94(0x11d)+_0x286f46+_0x1bbb94(0x12c)+_0xff397e+'\x0a\x0a'+businessStateSection(_0x1cb8ed)+_0x1bbb94(0x12e);}function renderRuntimeContract(_0x377d56,_0x482a19){const _0x161a81=a54_0x5e70e2,_0x239192=_0x482a19===_0x161a81(0x11b)?_0x161a81(0x126):'';return _0x161a81(0x131)+_0x377d56+_0x161a81(0x13e)+_0x482a19+_0x161a81(0x136)+_0x239192+_0x161a81(0x142);}function renderOutputContract(_0x582025,_0x4c2d13){const _0x3b4e95=a54_0x5e70e2,_0xfb515f=_0x4c2d13===_0x3b4e95(0x11b)?'write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_successfailed\x20或\x20needs_manual_check。':_0x4c2d13+_0x3b4e95(0x121);return'#\x20Output\x20Contract\x0a\x0a'+_0x582025+'\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'+_0xfb515f+_0x3b4e95(0x140);}function typeWorkflow(_0x1f899f){const _0x59a207=a54_0x5e70e2;if(_0x1f899f===_0x59a207(0x122))return'1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。';if(_0x1f899f===_0x59a207(0x12a))return _0x59a207(0x13d);return'1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】';}function businessStateSection(_0x5b1353){const _0x22cd30=a54_0x5e70e2;if(_0x5b1353!==_0x22cd30(0x11b))return'';return _0x22cd30(0x13c);}
1
+ const a54_0x3bcbe6=a54_0x1e8d;(function(_0x1c511b,_0x448cd7){const _0x1de55f=a54_0x1e8d,_0x23fd48=_0x1c511b();while(!![]){try{const _0x280309=-parseInt(_0x1de55f(0x1de))/0x1*(parseInt(_0x1de55f(0x1ee))/0x2)+parseInt(_0x1de55f(0x1e5))/0x3*(-parseInt(_0x1de55f(0x1d9))/0x4)+parseInt(_0x1de55f(0x1f4))/0x5+parseInt(_0x1de55f(0x1ec))/0x6*(-parseInt(_0x1de55f(0x1ea))/0x7)+-parseInt(_0x1de55f(0x1db))/0x8*(-parseInt(_0x1de55f(0x1e8))/0x9)+-parseInt(_0x1de55f(0x1e9))/0xa+parseInt(_0x1de55f(0x1ed))/0xb;if(_0x280309===_0x448cd7)break;else _0x23fd48['push'](_0x23fd48['shift']());}catch(_0x348a79){_0x23fd48['push'](_0x23fd48['shift']());}}}(a54_0x2849,0xde6de));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a54_0x3bcbe6(0x1cd),'read','trainer'];export const DEFAULT_SKILL_TARGET=a54_0x3bcbe6(0x1d7);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_0x3bcbe6(0x1dc);export function validateSkillName(_0x508a96){const _0x4ca9c8=a54_0x3bcbe6,_0x36f5b4=_0x508a96[_0x4ca9c8(0x1cc)]();if(!SKILL_NAME_PATTERN[_0x4ca9c8(0x1e6)](_0x36f5b4))throw CliErrors['validation'](_0x4ca9c8(0x1e1)+_0x508a96+_0x4ca9c8(0x1f3),'Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.');return _0x36f5b4;}export function normalizeSkillTemplateType(_0x3f830d){const _0x568c65=a54_0x3bcbe6,_0x30794a=(_0x3f830d||'write')[_0x568c65(0x1cc)]()||_0x568c65(0x1cd);if(SKILL_TYPES['includes'](_0x30794a))return _0x30794a;throw CliErrors[_0x568c65(0x1e0)](_0x568c65(0x1cf)+_0x3f830d,_0x568c65(0x1ce)+SKILL_TYPES[_0x568c65(0x1d1)](',\x20')+'.');}export function renderSkillTemplate(_0x1a63dd){const _0x527fc6=a54_0x3bcbe6,_0xc2f9ad=validateSkillName(_0x1a63dd['skillName']),_0x30c542=normalizeSkillTemplateType(_0x1a63dd['type']),_0x3f68bf=_0x1a63dd[_0x527fc6(0x1e2)]??new Date()[_0x527fc6(0x1d6)]();return{'skillName':_0xc2f9ad,'type':_0x30c542,'files':[{'path':'SKILL.md','content':renderSkillMd(_0xc2f9ad,_0x30c542,_0x3f68bf)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0xc2f9ad,_0x30c542)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0xc2f9ad,_0x30c542)}]};}function a54_0x1e8d(_0x31c59e,_0x5cf0ee){_0x31c59e=_0x31c59e-0x1cb;const _0x284907=a54_0x2849();let _0x1e8dc9=_0x284907[_0x31c59e];return _0x1e8dc9;}function renderSkillMd(_0x5426ac,_0x30c063,_0x3836f5){const _0x2f72b0=a54_0x3bcbe6,_0x2f22ed=typeWorkflow(_0x30c063);return _0x2f72b0(0x1e7)+_0x5426ac+_0x2f72b0(0x1f1)+_0x30c063+'\x0a\x20\x20created:\x20\x22'+_0x3836f5+_0x2f72b0(0x1d8)+_0x5426ac+_0x2f72b0(0x1d5)+_0x2f22ed+'\x0a\x0a'+businessStateSection(_0x30c063)+_0x2f72b0(0x1f2);}function renderRuntimeContract(_0x266385,_0x4c42f2){const _0x14033b=a54_0x3bcbe6,_0x9658c=_0x4c42f2===_0x14033b(0x1cd)?_0x14033b(0x1ef):'';return'#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。'+_0x266385+_0x14033b(0x1d3)+_0x4c42f2+_0x14033b(0x1df)+_0x9658c+_0x14033b(0x1eb);}function a54_0x2849(){const _0x5227d1=['read','\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=','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\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\x20datalovrabet\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','toISOString','.agents/skills','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','4811192dfBACe','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','16TfGpvu','references/output-contract.md','1.\x20受控模板预览:【填写待维护内容、影响范围和预览方式】\x0a2.\x20用户确认:【填写确认信息和不可省略的人工判断点】\x0a3.\x20受控维护:【填写确认后的维护步骤和记录方式】\x0a4.\x20只读核对:【填写维护后的核对入口、差异和回滚/修正方式】','1glUGrK','\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','validation','Invalid\x20Skill\x20name:\x20','timestamp','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','\x20的最终回复必须让运营人员能判断:是否执行、影响了什么、如何复核、失败后下一步做什么。\x0a\x0a##\x20状态枚举\x0a\x0astatus:\x20success\x20|\x20no_op\x20|\x20partial_success\x20|\x20blocked\x20|\x20failed\x20|\x20needs_manual_check\x0a\x0a-\x20success:动作已完成,且关键结果已核对。\x0a-\x20no_op:没有符合条件的对象或无需变更。\x0a-\x20partial_success:部分对象完成,未完成对象必须进入\x20errors\x20和\x20nextActions。\x0a-\x20blocked:缺少输入、权限、确认或平台能力,无法继续。\x0a-\x20failed:执行失败,必须说明失败阶段、错误和恢复方式。\x0a-\x20needs_manual_check:读回异常、状态未知或人工判断缺失。\x0a\x0aunknown、partial_success、failed、needs_manual_check\x20不能包装为\x20success。\x0a\x0a##\x20输出模式\x0a\x0amode:\x20dry_run\x20|\x20confirmed\x20|\x20read_only\x0a\x0a-\x20dry_run:只展示预览、影响范围和差异,不写入业务数据。\x0a-\x20confirmed:用户明确确认后的执行模式;写入后必须读回核对。\x0a-\x20read_only:只查询、汇总或核对,不触发写入。\x0a\x0a##\x20必填字段\x0a\x0a-\x20status\x0a-\x20mode\x0a-\x20summary\x0a-\x20scope\x0a-\x20changes\x0a-\x20verification\x0a-\x20warnings\x0a-\x20errors\x0a-\x20nextActions\x0a\x0a##\x20写入结果\x0a\x0a','3NlWFng','test','---\x0aname:\x20','2113497IWaoiR','14528450QeOpXl','287mVcCPT','\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','130884HVZpTZ','35938507AFPwhU','2015302plnuYq','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','trainer','\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0ametadata:\x0a\x20\x20type:\x20','\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','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','8659675Pykvac','#\x20Output\x20Contract\x0a\x0a','trim','write','Use\x20one\x20of:\x20','Unsupported\x20Skill\x20type:\x20','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','join'];a54_0x2849=function(){return _0x5227d1;};return a54_0x2849();}function renderOutputContract(_0x48a2f8,_0x33994d){const _0x15e12f=a54_0x3bcbe6,_0x42971c=_0x33994d===_0x15e12f(0x1cd)?'write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。':_0x33994d+_0x15e12f(0x1d4);return _0x15e12f(0x1cb)+_0x48a2f8+_0x15e12f(0x1e4)+_0x42971c+_0x15e12f(0x1d0);}function typeWorkflow(_0x40e7c8){const _0x3d9934=a54_0x3bcbe6;if(_0x40e7c8===_0x3d9934(0x1d2))return _0x3d9934(0x1e3);if(_0x40e7c8===_0x3d9934(0x1f0))return _0x3d9934(0x1dd);return'1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】';}function businessStateSection(_0x2e81f9){const _0x27a04f=a54_0x3bcbe6;if(_0x2e81f9!==_0x27a04f(0x1cd))return'';return _0x27a04f(0x1da);}