@lovrabet/lovrabet-cli 2.1.21 → 2.1.22-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) 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/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.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/schedule/index.js +1 -1
  39. package/lib/commands/schema.js +1 -1
  40. package/lib/commands/service/dynamic.js +1 -1
  41. package/lib/commands/service/function-name-adapter.js +1 -1
  42. package/lib/commands/service/index.js +1 -1
  43. package/lib/commands/service/registry.js +1 -1
  44. package/lib/commands/skill/commands/create.js +1 -1
  45. package/lib/commands/skill/commands/install.js +1 -1
  46. package/lib/commands/skill/commands/list.js +1 -1
  47. package/lib/commands/skill/commands/push.js +1 -1
  48. package/lib/commands/skill/commands/validate.js +1 -1
  49. package/lib/commands/skill/flags.js +1 -1
  50. package/lib/commands/skill/index.js +1 -1
  51. package/lib/commands/skill/manifest-helpers.js +1 -1
  52. package/lib/commands/skill/push-execute.js +1 -1
  53. package/lib/commands/skill/push-flow-helpers.js +1 -1
  54. package/lib/commands/skill/push-retarget.js +1 -1
  55. package/lib/commands/skill/scopes.js +1 -1
  56. package/lib/commands/skill/summary.js +1 -1
  57. package/lib/commands/skill/templates.js +1 -1
  58. package/lib/commands/skill/validate.js +1 -1
  59. package/lib/commands/sql/detail.js +1 -1
  60. package/lib/commands/sql/exec.js +1 -1
  61. package/lib/commands/sql/index.js +1 -1
  62. package/lib/commands/update.js +1 -1
  63. package/lib/commands/workspace/index.js +1 -1
  64. package/lib/config/schema.js +1 -1
  65. package/lib/constant/app.js +1 -1
  66. package/lib/constant/auth-mode.js +1 -1
  67. package/lib/constant/cli.js +1 -1
  68. package/lib/constant/defaults.js +1 -1
  69. package/lib/constant/distribution.js +1 -1
  70. package/lib/constant/domain.js +1 -1
  71. package/lib/constant/env.js +1 -1
  72. package/lib/constant/output.js +1 -1
  73. package/lib/constant/product.js +1 -1
  74. package/lib/constant/risk.js +1 -1
  75. package/lib/constant/url.js +1 -1
  76. package/lib/context.js +1 -1
  77. package/lib/core/api-client.js +1 -1
  78. package/lib/core/db-resolver.js +1 -1
  79. package/lib/core/sdk-client.js +1 -1
  80. package/lib/errors.js +1 -1
  81. package/lib/framework/build-all-flags.js +1 -1
  82. package/lib/framework/dryrun.js +1 -1
  83. package/lib/framework/flags.js +1 -1
  84. package/lib/framework/help.js +1 -1
  85. package/lib/framework/index.js +1 -1
  86. package/lib/framework/output.js +1 -1
  87. package/lib/framework/preparse.js +1 -1
  88. package/lib/framework/rate-limit.js +1 -1
  89. package/lib/framework/raw-flags.js +1 -1
  90. package/lib/framework/response.js +1 -1
  91. package/lib/framework/runner-confirmation.js +1 -1
  92. package/lib/framework/runner-error.js +1 -1
  93. package/lib/framework/runner.js +1 -1
  94. package/lib/framework/schema-export.js +1 -1
  95. package/lib/framework/service-order.js +1 -1
  96. package/lib/framework/types.js +1 -1
  97. package/lib/generated/build-info.d.ts +4 -4
  98. package/lib/generated/build-info.js +1 -1
  99. package/lib/help.js +1 -1
  100. package/lib/runtime/event.js +1 -1
  101. package/lib/runtime/index.js +1 -1
  102. package/lib/runtime/queue.js +1 -1
  103. package/lib/runtime/resolve.js +1 -1
  104. package/lib/skills/npx-skills-add.js +1 -1
  105. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  106. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  107. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  108. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  109. package/lib/skills/runtime-skill-sync/links.js +1 -1
  110. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  111. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  112. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  113. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  114. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  115. package/lib/skills/runtime-skill-sync/push.js +1 -1
  116. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  117. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  118. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  119. package/lib/skills/runtime-skill-sync.js +1 -1
  120. package/lib/utils/apply-jq-filter.js +1 -1
  121. package/lib/utils/logger.js +1 -1
  122. package/lib/utils/lossless-json.js +1 -1
  123. package/lib/utils/params.js +1 -1
  124. package/lib/utils/platform.js +1 -1
  125. package/lib/utils/update-notice.js +1 -1
  126. package/lib/utils/version.js +1 -1
  127. package/lib/utils/write-cli-side-channel.js +1 -1
  128. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x1e2810,_0x3a153f){const _0x5a2e89=a106_0x4e3d,_0xcc4154=_0x1e2810();while(!![]){try{const _0xb8f771=-parseInt(_0x5a2e89(0xaa))/0x1*(parseInt(_0x5a2e89(0xa5))/0x2)+parseInt(_0x5a2e89(0xa6))/0x3+parseInt(_0x5a2e89(0xb0))/0x4+-parseInt(_0x5a2e89(0xa2))/0x5*(parseInt(_0x5a2e89(0xad))/0x6)+-parseInt(_0x5a2e89(0xa9))/0x7*(parseInt(_0x5a2e89(0xb2))/0x8)+-parseInt(_0x5a2e89(0xa8))/0x9*(-parseInt(_0x5a2e89(0xa7))/0xa)+-parseInt(_0x5a2e89(0xa4))/0xb*(-parseInt(_0x5a2e89(0xa1))/0xc);if(_0xb8f771===_0x3a153f)break;else _0xcc4154['push'](_0xcc4154['shift']());}catch(_0x4ce15f){_0xcc4154['push'](_0xcc4154['shift']());}}}(a106_0xf407,0x6389e));import{createHash}from'node:crypto';function a106_0x4e3d(_0x17b9ee,_0x5a01c3){_0x17b9ee=_0x17b9ee-0xa1;const _0xf407d4=a106_0xf407();let _0x4e3d82=_0xf407d4[_0x17b9ee];return _0x4e3d82;}import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x200704){const _0x43b31c=a106_0x4e3d;return createHash(_0x43b31c(0xa3))[_0x43b31c(0xaf)](_0x200704)[_0x43b31c(0xab)](_0x43b31c(0xb1));}export function fileHash(_0x5068ca){return bufferSha256(fileContent(_0x5068ca));}export function bufferSha256(_0x1ea168){const _0xcd2330=a106_0x4e3d;return createHash(_0xcd2330(0xa3))[_0xcd2330(0xaf)](_0x1ea168)[_0xcd2330(0xab)](_0xcd2330(0xb1));}function a106_0xf407(){const _0x18d06f=['size','update','374992jGnTwd','hex','2664echYRI','719592FAboag','840xGCqma','sha256','253CkMMBM','14468BKCJQY','267537IXxIMK','889890ZDdKdO','36hOyFfI','6909SfMAWH','68iFBJmM','digest','path','24636MMLUHq'];a106_0xf407=function(){return _0x18d06f;};return a106_0xf407();}export function fileTreeHash(_0xd3b76a){const _0x5df2ab=a106_0x4e3d,_0x28db3d=createHash(_0x5df2ab(0xa3));for(const _0x104c3c of normalizeManifestFiles(_0xd3b76a)){_0x28db3d[_0x5df2ab(0xaf)](_0x104c3c[_0x5df2ab(0xac)]),_0x28db3d['update']('\x00'),_0x28db3d[_0x5df2ab(0xaf)](_0x104c3c[_0x5df2ab(0xa3)]),_0x28db3d[_0x5df2ab(0xaf)]('\x00'),_0x28db3d['update'](String(_0x104c3c[_0x5df2ab(0xae)])),_0x28db3d['update']('\x00');}return _0x28db3d[_0x5df2ab(0xab)](_0x5df2ab(0xb1));}
1
+ (function(_0x43678d,_0x446b2f){const _0x1be075=a106_0x2f48,_0x57923c=_0x43678d();while(!![]){try{const _0x470a5b=parseInt(_0x1be075(0x101))/0x1*(-parseInt(_0x1be075(0x104))/0x2)+-parseInt(_0x1be075(0x10b))/0x3+parseInt(_0x1be075(0x105))/0x4+-parseInt(_0x1be075(0x10c))/0x5*(parseInt(_0x1be075(0x106))/0x6)+parseInt(_0x1be075(0x10e))/0x7+parseInt(_0x1be075(0x10d))/0x8+parseInt(_0x1be075(0x102))/0x9;if(_0x470a5b===_0x446b2f)break;else _0x57923c['push'](_0x57923c['shift']());}catch(_0x2f8978){_0x57923c['push'](_0x57923c['shift']());}}}(a106_0xbfed,0xbf077));import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';function a106_0x2f48(_0xf056f6,_0x54669e){_0xf056f6=_0xf056f6-0x100;const _0xbfed1d=a106_0xbfed();let _0x2f48fa=_0xbfed1d[_0xf056f6];return _0x2f48fa;}export function contentHash(_0x5e53a1){const _0x4b739b=a106_0x2f48;return createHash(_0x4b739b(0x109))[_0x4b739b(0x108)](_0x5e53a1)[_0x4b739b(0x100)]('hex');}export function fileHash(_0x3f6186){return bufferSha256(fileContent(_0x3f6186));}export function bufferSha256(_0x12f31e){const _0x53d21d=a106_0x2f48;return createHash('sha256')[_0x53d21d(0x108)](_0x12f31e)[_0x53d21d(0x100)](_0x53d21d(0x10a));}function a106_0xbfed(){const _0x4a954c=['48IvWqpz','3763566YmGUxW','path','57530eRyxQC','1775308PcvDjX','19032WXBUWV','size','update','sha256','hex','941151uPRIiO','2190rQjccT','12310928YeUuGG','10257527cWFUWU','digest'];a106_0xbfed=function(){return _0x4a954c;};return a106_0xbfed();}export function fileTreeHash(_0x311090){const _0x2ec4f5=a106_0x2f48,_0xf8cfe3=createHash(_0x2ec4f5(0x109));for(const _0x2aa0dd of normalizeManifestFiles(_0x311090)){_0xf8cfe3[_0x2ec4f5(0x108)](_0x2aa0dd[_0x2ec4f5(0x103)]),_0xf8cfe3[_0x2ec4f5(0x108)]('\x00'),_0xf8cfe3[_0x2ec4f5(0x108)](_0x2aa0dd[_0x2ec4f5(0x109)]),_0xf8cfe3[_0x2ec4f5(0x108)]('\x00'),_0xf8cfe3[_0x2ec4f5(0x108)](String(_0x2aa0dd[_0x2ec4f5(0x107)])),_0xf8cfe3[_0x2ec4f5(0x108)]('\x00');}return _0xf8cfe3[_0x2ec4f5(0x100)](_0x2ec4f5(0x10a));}
@@ -1 +1 @@
1
- const a107_0x5a2802=a107_0xbae3;(function(_0x5bda26,_0x541445){const _0x293840=a107_0xbae3,_0x99e513=_0x5bda26();while(!![]){try{const _0x2c7393=-parseInt(_0x293840(0x164))/0x1+parseInt(_0x293840(0x15e))/0x2+-parseInt(_0x293840(0x162))/0x3*(parseInt(_0x293840(0x167))/0x4)+parseInt(_0x293840(0x161))/0x5+-parseInt(_0x293840(0x15c))/0x6*(-parseInt(_0x293840(0x15b))/0x7)+parseInt(_0x293840(0x168))/0x8+parseInt(_0x293840(0x160))/0x9;if(_0x2c7393===_0x541445)break;else _0x99e513['push'](_0x99e513['shift']());}catch(_0x5e351e){_0x99e513['push'](_0x99e513['shift']());}}}(a107_0x368f,0x4dd14));function a107_0xbae3(_0x4c2e58,_0x49415e){_0x4c2e58=_0x4c2e58-0x15b;const _0x368f01=a107_0x368f();let _0xbae358=_0x368f01[_0x4c2e58];return _0xbae358;}import{resolve}from'node:path';import{resolveSkillSyncPaths,runtimeAgentSkillRoots,safePathSegment}from'./paths.js';export function resolveRuntimeSkillInstallTarget(_0x3d563d,_0x52e885=a107_0x5a2802(0x166),_0x58b8cc={}){const _0x3ee8f0=a107_0x5a2802,_0x426e73=resolveSkillSyncPaths(_0x58b8cc),_0x77a580=safePathSegment(_0x3d563d,_0x3ee8f0(0x169)),_0x439b87=_0x52e885===_0x3ee8f0(0x15d)?[resolve(_0x58b8cc[_0x3ee8f0(0x165)]??process[_0x3ee8f0(0x165)](),'.agents',_0x3ee8f0(0x163))]:runtimeAgentSkillRoots(_0x426e73);return Object['freeze']({'scope':_0x52e885,'appCode':_0x77a580,'skillRoots':Object[_0x3ee8f0(0x15f)](_0x439b87),'managedRoot':_0x426e73['managedRoot']});}function a107_0x368f(){const _0x26169f=['1198280YLWXSF','appCode','88774AxJdmp','174BFgqDh','project','576354laZZsJ','freeze','619092pcczpc','425135dsCmvO','39hfRDxY','skills','84506vkZBfS','cwd','global','171172fFZjVZ'];a107_0x368f=function(){return _0x26169f;};return a107_0x368f();}
1
+ const a107_0x2eb87a=a107_0x4f43;function a107_0x4f43(_0x127e98,_0x28d50c){_0x127e98=_0x127e98-0x13a;const _0x5488e5=a107_0x5488();let _0x4f4399=_0x5488e5[_0x127e98];return _0x4f4399;}(function(_0x53551a,_0x59b297){const _0x373994=a107_0x4f43,_0x1fa512=_0x53551a();while(!![]){try{const _0x3a06b1=-parseInt(_0x373994(0x145))/0x1*(parseInt(_0x373994(0x14b))/0x2)+-parseInt(_0x373994(0x148))/0x3*(parseInt(_0x373994(0x141))/0x4)+-parseInt(_0x373994(0x13b))/0x5*(parseInt(_0x373994(0x147))/0x6)+-parseInt(_0x373994(0x14c))/0x7+parseInt(_0x373994(0x146))/0x8*(parseInt(_0x373994(0x13f))/0x9)+-parseInt(_0x373994(0x144))/0xa+parseInt(_0x373994(0x143))/0xb;if(_0x3a06b1===_0x59b297)break;else _0x1fa512['push'](_0x1fa512['shift']());}catch(_0x4cf7a8){_0x1fa512['push'](_0x1fa512['shift']());}}}(a107_0x5488,0x3494e));import{resolve}from'node:path';import{resolveSkillSyncPaths,runtimeAgentSkillRoots,safePathSegment}from'./paths.js';function a107_0x5488(){const _0x5a3bcc=['3385650lhvyeh','112655jrRBGG','6248VZuMZh','18umQcAF','6YbWTHt','skills','project','2wCXwZT','2896054QPDyob','freeze','622855HUZKBK','.agents','global','appCode','3258CrWOHe','cwd','730024GqVbWi','managedRoot','16899509wLJoEn'];a107_0x5488=function(){return _0x5a3bcc;};return a107_0x5488();}export function resolveRuntimeSkillInstallTarget(_0x101ae6,_0x1d08cb=a107_0x2eb87a(0x13d),_0x563a4b={}){const _0x6217aa=a107_0x2eb87a,_0x430efd=resolveSkillSyncPaths(_0x563a4b),_0x104c1e=safePathSegment(_0x101ae6,_0x6217aa(0x13e)),_0x41cc97=_0x1d08cb===_0x6217aa(0x14a)?[resolve(_0x563a4b[_0x6217aa(0x140)]??process[_0x6217aa(0x140)](),_0x6217aa(0x13c),_0x6217aa(0x149))]:runtimeAgentSkillRoots(_0x430efd);return Object['freeze']({'scope':_0x1d08cb,'appCode':_0x104c1e,'skillRoots':Object[_0x6217aa(0x13a)](_0x41cc97),'managedRoot':_0x430efd[_0x6217aa(0x142)]});}
@@ -1 +1 @@
1
- const a108_0x2ed8b0=a108_0x4a3b;(function(_0x3ea659,_0x257b4c){const _0x12e988=a108_0x4a3b,_0x39c38c=_0x3ea659();while(!![]){try{const _0x4fb09f=-parseInt(_0x12e988(0xf9))/0x1*(parseInt(_0x12e988(0x128))/0x2)+-parseInt(_0x12e988(0x10d))/0x3+parseInt(_0x12e988(0x129))/0x4+parseInt(_0x12e988(0x101))/0x5+-parseInt(_0x12e988(0x125))/0x6+-parseInt(_0x12e988(0xff))/0x7*(-parseInt(_0x12e988(0x10c))/0x8)+parseInt(_0x12e988(0x115))/0x9*(parseInt(_0x12e988(0x105))/0xa);if(_0x4fb09f===_0x257b4c)break;else _0x39c38c['push'](_0x39c38c['shift']());}catch(_0x35034e){_0x39c38c['push'](_0x39c38c['shift']());}}}(a108_0x19d7,0x40b0a));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a108_0x20ea3e from'fs-extra';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a108_0x20ea3e,RESERVED_PROJECT_SKILL_CODES=new Set([a108_0x2ed8b0(0x103),'runtime-observe',a108_0x2ed8b0(0x11d)]);export function linkEffectiveRuntimeSkills(_0x3fa37d,_0x1580b3){const _0x9565c9=a108_0x2ed8b0,_0x14d0bc=new Map();for(const _0x3874b7 of _0x3fa37d){const _0x1cc0c1=_0x3874b7[_0x9565c9(0x11f)][_0x9565c9(0x12e)];if(!_0x1cc0c1)continue;const _0x2b7373=_0x14d0bc[_0x9565c9(0x127)](_0x1cc0c1);(!_0x2b7373||_0x3874b7[_0x9565c9(0x11c)]==='personal')&&_0x14d0bc['set'](_0x1cc0c1,_0x3874b7);}const _0x5d177d=[];for(const _0x19698a of _0x14d0bc[_0x9565c9(0x12b)]()){const _0x17478a=requireSkillCode(_0x19698a[_0x9565c9(0x11f)]),_0xe9e9ed=readMetadataIfPresent(_0x19698a[_0x9565c9(0x122)]);if(_0xe9e9ed?.['appCode']!==_0x1580b3[_0x9565c9(0x10b)]||_0xe9e9ed[_0x9565c9(0x12e)]!==_0x17478a)throw CliErrors[_0x9565c9(0x111)]('Refusing\x20to\x20link\x20Skill\x20metadata\x20outside\x20target\x20'+_0x1580b3[_0x9565c9(0x10b)]+':\x20'+_0x19698a[_0x9565c9(0x122)]);const _0x598ddf=runtimeSkillLinkName(_0x1580b3,_0x17478a);for(const _0x30d8ca of _0x1580b3[_0x9565c9(0x112)]){_0x5d177d[_0x9565c9(0xf8)](ensureManagedSymlink(resolve(_0x30d8ca,_0x598ddf),_0x19698a[_0x9565c9(0x104)],_0x1580b3,_0x17478a));}}return _0x5d177d;}export function pruneStaleRuntimeSkillLinks(_0x241292,_0x383460,_0x57c4b6){const _0x9cd2ec=a108_0x2ed8b0,_0x291151=new Set([..._0x383460][_0x9cd2ec(0x114)](_0x4819bf=>_0x4819bf[_0x9cd2ec(0x11b)]())['filter'](Boolean)),_0x8f432c=_0x57c4b6?new Set([..._0x57c4b6][_0x9cd2ec(0x114)](_0x3a1081=>_0x3a1081[_0x9cd2ec(0x11b)]())[_0x9cd2ec(0xfc)](Boolean)):undefined,_0x240fdb=[];for(const _0x213af1 of _0x241292[_0x9cd2ec(0x112)]){for(const _0x4c9df9 of managedTargetSkillLinkPaths(_0x213af1,_0x241292)){const _0x140554=runtimeSkillCodeFromLink(_0x241292,_0x4c9df9);if(_0x8f432c&&!_0x8f432c[_0x9cd2ec(0x119)](_0x140554))continue;if(_0x291151[_0x9cd2ec(0x119)](_0x140554))continue;_0x240fdb[_0x9cd2ec(0xf8)](removeManagedSkillLink(_0x4c9df9,_0x241292,_0x140554));}}return _0x240fdb;}export function pruneStaleRuntimeSkillCache(_0x15b05a,_0x13c0c8={}){const _0x581d7d=a108_0x2ed8b0,_0x15f2ea=new Set([..._0x15b05a['activeSkillCodes']][_0x581d7d(0x114)](_0x1d4064=>_0x1d4064[_0x581d7d(0x11b)]())[_0x581d7d(0xfc)](Boolean)),_0x29d2c3=_0x15b05a[_0x581d7d(0x10f)]?new Set([..._0x15b05a['pruneSkillCodes']]['map'](_0x2ebe04=>_0x2ebe04[_0x581d7d(0x11b)]())[_0x581d7d(0xfc)](Boolean)):undefined,_0x169cc7=_0x15b05a[_0x581d7d(0x12d)]??[_0x581d7d(0x108),_0x581d7d(0xf3)],_0x27dd17=resolve(getRuntimeSkillCacheRoot(_0x15b05a[_0x581d7d(0x12c)],_0x15b05a[_0x581d7d(0x120)],_0x13c0c8),safePathSegment(_0x15b05a[_0x581d7d(0x10b)],_0x581d7d(0x10b))),_0x3f3f1a=[];for(const _0x31fad2 of _0x169cc7){const _0x483e65=resolve(_0x27dd17,_0x31fad2);if(!existsSync(_0x483e65))continue;for(const _0xfcd05 of readdirSync(_0x483e65,{'withFileTypes':!![]})){if(!_0xfcd05[_0x581d7d(0x11e)]())continue;const _0x2dbe04=_0xfcd05[_0x581d7d(0x124)];if(_0x29d2c3&&!_0x29d2c3[_0x581d7d(0x119)](_0x2dbe04))continue;if(_0x15f2ea[_0x581d7d(0x119)](_0x2dbe04))continue;const _0x4c78b1=resolve(_0x483e65,_0x2dbe04),_0x5715be=readMetadataIfPresent(resolve(_0x4c78b1,METADATA_FILE));if(_0x5715be?.[_0x581d7d(0x10b)]!==_0x15b05a[_0x581d7d(0x10b)]||_0x5715be[_0x581d7d(0x11c)]!==_0x31fad2||_0x5715be[_0x581d7d(0x12e)]!==_0x2dbe04){_0x3f3f1a['push']({'path':_0x4c78b1,'action':_0x581d7d(0x10a),'reason':_0x581d7d(0xf2)});continue;}if(isLinkedFromAnyRoot(_0x4c78b1,_0x15b05a[_0x581d7d(0x113)]??[])){_0x3f3f1a[_0x581d7d(0xf8)]({'path':_0x4c78b1,'action':_0x581d7d(0x10a),'reason':_0x581d7d(0x117)});continue;}removeSync(_0x4c78b1),_0x3f3f1a['push']({'path':_0x4c78b1,'action':_0x581d7d(0x107)});}}return _0x3f3f1a;}function a108_0x19d7(){const _0x102cbc=['unchanged','38094eekIXA','updated','2495395TzFUNR','managedRoot','lovrabet','dir','571420RgKgGI','created','removed','personal','not-managed-symlink','skipped','appCode','296MCtyoD','1260012KVLntK','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','pruneSkillCodes','builtin','validation','skillRoots','protectedLinkRoots','map','54gLZcJS','Refusing\x20to\x20shadow\x20reserved\x20Agent\x20Skill\x20in\x20project\x20scope:\x20','linked-from-protected-root','agentsSkillsDir','has','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','trim','scope','secret-retriever','isDirectory','skill','accessKey','Refusing\x20to\x20overwrite\x20managed\x20Skill\x20link\x20owned\x20by\x20another\x20app\x20or\x20code:\x20','metadataPath','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','name','180390xqywQX','startsWith','get','1007910WYHomN','702836iLjDtO','project','values','env','scopes','skillCode','metadata-mismatch','company','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','length','isSymbolicLink','push','1WOvwpI','slice','external-symlink','filter','contentHash'];a108_0x19d7=function(){return _0x102cbc;};return a108_0x19d7();}function a108_0x4a3b(_0xa531e4,_0x1b19c5){_0xa531e4=_0xa531e4-0xf2;const _0x19d7e3=a108_0x19d7();let _0x4a3bc3=_0x19d7e3[_0xa531e4];return _0x4a3bc3;}export function linkGlobalRuntimeSkills(_0x535552,_0x191811={}){const _0x1adcbe=a108_0x2ed8b0,_0x5cf66d=resolveSkillSyncPaths(_0x191811),_0x545de0=[];for(const _0x2b9291 of _0x535552){if(_0x2b9291[_0x1adcbe(0x11c)]!==_0x1adcbe(0x110))throw CliErrors['validation']('Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20'+_0x2b9291[_0x1adcbe(0x11c)]);const _0x52b9db=requireSkillCode(_0x2b9291[_0x1adcbe(0x11f)]),_0x598555=copyManagedSkillDirectory(_0x2b9291[_0x1adcbe(0x104)],resolve(_0x5cf66d[_0x1adcbe(0x118)],_0x52b9db));_0x545de0[_0x1adcbe(0xf8)]({..._0x598555,'contentHash':_0x2b9291[_0x1adcbe(0xfd)]});}return _0x545de0;}function ensureManagedSymlink(_0x23e405,_0x22bbf1,_0x388867,_0x1e4b7c){const _0x43475d=a108_0x2ed8b0;mkdirSync(dirname(_0x23e405),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x23e405)||isDanglingSymlink(_0x23e405)){const _0x536abf=lstatSync(_0x23e405);if(!_0x536abf[_0x43475d(0xf7)]())throw CliErrors['validation'](_0x43475d(0xf5)+_0x23e405);const _0x2ff349=resolveSymlinkTarget(_0x23e405);if(!isPathInside(realOrResolved(_0x2ff349),realOrResolved(_0x388867['managedRoot'])))throw CliErrors[_0x43475d(0x111)](_0x43475d(0x10e)+_0x23e405);if(realOrResolved(_0x2ff349)===realOrResolved(_0x22bbf1))return{'path':_0x23e405,'target':_0x22bbf1,'action':_0x43475d(0xfe)};const _0x3f3342=readMetadataIfPresent(resolve(_0x2ff349,METADATA_FILE));if(_0x388867['scope']===_0x43475d(0x12a)&&(_0x3f3342?.[_0x43475d(0x10b)]!==_0x388867[_0x43475d(0x10b)]||_0x3f3342[_0x43475d(0x12e)]!==_0x1e4b7c))throw CliErrors[_0x43475d(0x111)](_0x43475d(0x121)+_0x23e405);return unlinkSync(_0x23e405),symlinkSync(_0x22bbf1,_0x23e405,'dir'),{'path':_0x23e405,'target':_0x22bbf1,'action':_0x43475d(0x100)};}return symlinkSync(_0x22bbf1,_0x23e405,_0x43475d(0x104)),{'path':_0x23e405,'target':_0x22bbf1,'action':_0x43475d(0x106)};}function managedTargetSkillLinkPaths(_0x58646c,_0x5a189f){const _0x5bc2ef=a108_0x2ed8b0;if(!existsSync(_0x58646c))return[];const _0x4da635=_0x5a189f[_0x5bc2ef(0x10b)]+'--';return readdirSync(_0x58646c,{'withFileTypes':!![]})['filter'](_0x92575c=>_0x5a189f[_0x5bc2ef(0x11c)]===_0x5bc2ef(0x12a)||_0x92575c['name'][_0x5bc2ef(0x126)](_0x4da635))[_0x5bc2ef(0x114)](_0x3b3f02=>resolve(_0x58646c,_0x3b3f02[_0x5bc2ef(0x124)]));}function removeManagedSkillLink(_0x3834db,_0x28266a,_0x5c4617){const _0x39b0bb=a108_0x2ed8b0,_0x630a8a=lstatIfPresent(_0x3834db);if(!_0x630a8a?.['isSymbolicLink']())return{'path':_0x3834db,'action':_0x39b0bb(0x10a),'reason':_0x39b0bb(0x109)};const _0x204879=resolveSymlinkTarget(_0x3834db);if(!isPathInside(realOrResolved(_0x204879),realOrResolved(_0x28266a[_0x39b0bb(0x102)])))return{'path':_0x3834db,'action':'skipped','reason':_0x39b0bb(0xfb)};const _0xa3e93b=readMetadataIfPresent(resolve(_0x204879,METADATA_FILE));if(_0x28266a[_0x39b0bb(0x11c)]===_0x39b0bb(0x12a)&&(_0xa3e93b?.[_0x39b0bb(0x10b)]!==_0x28266a[_0x39b0bb(0x10b)]||_0xa3e93b['skillCode']!==_0x5c4617))return{'path':_0x3834db,'action':_0x39b0bb(0x10a),'reason':_0x39b0bb(0xf2)};return unlinkSync(_0x3834db),{'path':_0x3834db,'action':_0x39b0bb(0x107)};}function isLinkedFromAnyRoot(_0x2c3a73,_0x57e735){const _0x138833=realOrResolved(_0x2c3a73);for(const _0x2e20b5 of _0x57e735){if(!existsSync(_0x2e20b5))continue;for(const _0x32828d of readdirSync(_0x2e20b5,{'withFileTypes':!![]})){if(!_0x32828d['isSymbolicLink']())continue;const _0x209f7a=resolve(_0x2e20b5,_0x32828d['name']);if(realOrResolved(resolveSymlinkTarget(_0x209f7a))===_0x138833)return!![];}}return![];}function runtimeSkillLinkName(_0x51c760,_0x50f7d8){const _0x5877c9=a108_0x2ed8b0,_0x216bb5=safePathSegment(_0x50f7d8,_0x5877c9(0x12e));if(_0x51c760[_0x5877c9(0x11c)]===_0x5877c9(0x12a)&&RESERVED_PROJECT_SKILL_CODES[_0x5877c9(0x119)](_0x216bb5))throw CliErrors[_0x5877c9(0x111)](_0x5877c9(0x116)+_0x216bb5);return _0x51c760[_0x5877c9(0x11c)]===_0x5877c9(0x12a)?_0x216bb5:_0x51c760[_0x5877c9(0x10b)]+'--'+_0x216bb5;}function runtimeSkillCodeFromLink(_0x3f8f71,_0x1ec9e7){const _0x1d6a01=a108_0x2ed8b0,_0x5e37b3=basename(_0x1ec9e7);return _0x3f8f71['scope']===_0x1d6a01(0x12a)?_0x5e37b3:_0x5e37b3[_0x1d6a01(0xfa)]((_0x3f8f71['appCode']+'--')[_0x1d6a01(0xf6)]);}export function copyManagedSkillDirectory(_0x21635d,_0x34dc4a){const _0x54adf2=a108_0x2ed8b0,_0x1c906d=resolve(_0x34dc4a,METADATA_FILE),_0x1f11df=existsSync(_0x34dc4a);if(_0x1f11df){const _0x4768c6=lstatSync(_0x34dc4a);if(_0x4768c6['isSymbolicLink']())throw CliErrors[_0x54adf2(0x111)](_0x54adf2(0xf4)+_0x34dc4a);if(!_0x4768c6[_0x54adf2(0x11e)]())throw CliErrors[_0x54adf2(0x111)](_0x54adf2(0x123)+_0x34dc4a);const _0x3703ce=readMetadataIfPresent(_0x1c906d);if(_0x3703ce?.[_0x54adf2(0x11c)]!==_0x54adf2(0x110))throw CliErrors['validation'](_0x54adf2(0x11a)+_0x34dc4a);}ensureDirSync(dirname(_0x34dc4a));const _0x31ca2a=_0x1f11df?readMetadataIfPresent(_0x1c906d)?.[_0x54adf2(0xfd)]:undefined,_0x14b2b1=readMetadataIfPresent(resolve(_0x21635d,METADATA_FILE))?.['contentHash'];return _0x1f11df&&removeSync(_0x34dc4a),copySkillDirectory(_0x21635d,_0x34dc4a),{'path':_0x34dc4a,'target':_0x21635d,'action':!_0x1f11df?_0x54adf2(0x106):_0x31ca2a===_0x14b2b1?_0x54adf2(0xfe):'updated'};}function copySkillDirectory(_0x5d3535,_0x236036){copySync(_0x5d3535,_0x236036,{'dereference':![],'overwrite':!![],'filter'(_0x4fd411){const _0x1735ab=a108_0x4a3b;if(lstatSync(_0x4fd411)[_0x1735ab(0xf7)]())throw CliErrors[_0x1735ab(0x111)]('Refusing\x20to\x20copy\x20Skill\x20symlink:\x20'+_0x4fd411);return!![];}});}
1
+ const a108_0x868413=a108_0x2745;(function(_0x16b310,_0x279096){const _0x31baec=a108_0x2745,_0x4c4b68=_0x16b310();while(!![]){try{const _0x5af11c=parseInt(_0x31baec(0x13c))/0x1+parseInt(_0x31baec(0x14e))/0x2*(-parseInt(_0x31baec(0x143))/0x3)+-parseInt(_0x31baec(0x12a))/0x4+parseInt(_0x31baec(0x155))/0x5*(parseInt(_0x31baec(0x120))/0x6)+-parseInt(_0x31baec(0x147))/0x7*(-parseInt(_0x31baec(0x150))/0x8)+-parseInt(_0x31baec(0x14a))/0x9*(-parseInt(_0x31baec(0x11c))/0xa)+parseInt(_0x31baec(0x14f))/0xb*(-parseInt(_0x31baec(0x145))/0xc);if(_0x5af11c===_0x279096)break;else _0x4c4b68['push'](_0x4c4b68['shift']());}catch(_0x1382b9){_0x4c4b68['push'](_0x4c4b68['shift']());}}}(a108_0x5a4d,0xc810b));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a108_0x298422 from'fs-extra';import{CliErrors}from'../../errors.js';function a108_0x5a4d(){const _0x499fad=['updated','name','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','runtime-observe','6437052OXSQju','dir','scope','Refusing\x20to\x20shadow\x20reserved\x20Agent\x20Skill\x20in\x20project\x20scope:\x20','length','isDirectory','trim','agentsSkillsDir','scopes','accessKey','values','Refusing\x20to\x20overwrite\x20managed\x20Skill\x20link\x20owned\x20by\x20another\x20app\x20or\x20code:\x20','startsWith','get','appCode','skipped','skillCode','skillRoots','253542XnUuMv','removed','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','filter','activeSkillCodes','skill','has','3pYBJqP','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','6252keRusZ','slice','553IfKcoB','metadata-mismatch','protectedLinkRoots','10034127cSRWgC','set','contentHash','isSymbolicLink','400042RAoiDf','25311TWXooV','108488nnCOXc','builtin','map','push','linked-from-protected-root','620OLXDsZ','created','managedRoot','10NrVCkX','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','metadataPath','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','67152OdmNVZ','secret-retriever','pruneSkillCodes','validation','personal','project'];a108_0x5a4d=function(){return _0x499fad;};return a108_0x5a4d();}import{METADATA_FILE}from'./constants.js';import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';function a108_0x2745(_0x3e22ac,_0x5df5f9){_0x3e22ac=_0x3e22ac-0x11a;const _0x5a4dc7=a108_0x5a4d();let _0x2745d3=_0x5a4dc7[_0x3e22ac];return _0x2745d3;}import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a108_0x298422,RESERVED_PROJECT_SKILL_CODES=new Set(['lovrabet',a108_0x868413(0x129),a108_0x868413(0x121)]);export function linkEffectiveRuntimeSkills(_0x1f9cbd,_0x22f7a2){const _0x406176=a108_0x868413,_0x423ba0=new Map();for(const _0x1b3e12 of _0x1f9cbd){const _0x44e6c6=_0x1b3e12[_0x406176(0x141)][_0x406176(0x13a)];if(!_0x44e6c6)continue;const _0xceead5=_0x423ba0[_0x406176(0x137)](_0x44e6c6);(!_0xceead5||_0x1b3e12['scope']===_0x406176(0x124))&&_0x423ba0[_0x406176(0x14b)](_0x44e6c6,_0x1b3e12);}const _0xf4719b=[];for(const _0x21a5fe of _0x423ba0[_0x406176(0x134)]()){const _0x435ff6=requireSkillCode(_0x21a5fe[_0x406176(0x141)]),_0x1a21f3=readMetadataIfPresent(_0x21a5fe[_0x406176(0x11e)]);if(_0x1a21f3?.[_0x406176(0x138)]!==_0x22f7a2[_0x406176(0x138)]||_0x1a21f3[_0x406176(0x13a)]!==_0x435ff6)throw CliErrors['validation']('Refusing\x20to\x20link\x20Skill\x20metadata\x20outside\x20target\x20'+_0x22f7a2[_0x406176(0x138)]+':\x20'+_0x21a5fe['metadataPath']);const _0x43be91=runtimeSkillLinkName(_0x22f7a2,_0x435ff6);for(const _0x5349f2 of _0x22f7a2[_0x406176(0x13b)]){_0xf4719b[_0x406176(0x153)](ensureManagedSymlink(resolve(_0x5349f2,_0x43be91),_0x21a5fe[_0x406176(0x12b)],_0x22f7a2,_0x435ff6));}}return _0xf4719b;}export function pruneStaleRuntimeSkillLinks(_0x584b27,_0x305833,_0x4bd4de){const _0x56b64c=a108_0x868413,_0x591f02=new Set([..._0x305833][_0x56b64c(0x152)](_0x55a4f6=>_0x55a4f6[_0x56b64c(0x130)]())[_0x56b64c(0x13f)](Boolean)),_0x2a3310=_0x4bd4de?new Set([..._0x4bd4de]['map'](_0x1b9d05=>_0x1b9d05[_0x56b64c(0x130)]())[_0x56b64c(0x13f)](Boolean)):undefined,_0x4162f4=[];for(const _0x577d6b of _0x584b27[_0x56b64c(0x13b)]){for(const _0xfe3852 of managedTargetSkillLinkPaths(_0x577d6b,_0x584b27)){const _0x5aa16c=runtimeSkillCodeFromLink(_0x584b27,_0xfe3852);if(_0x2a3310&&!_0x2a3310['has'](_0x5aa16c))continue;if(_0x591f02[_0x56b64c(0x142)](_0x5aa16c))continue;_0x4162f4[_0x56b64c(0x153)](removeManagedSkillLink(_0xfe3852,_0x584b27,_0x5aa16c));}}return _0x4162f4;}export function pruneStaleRuntimeSkillCache(_0x3f06f9,_0x1b04db={}){const _0x45d047=a108_0x868413,_0x2c5c02=new Set([..._0x3f06f9[_0x45d047(0x140)]]['map'](_0x23d3d9=>_0x23d3d9[_0x45d047(0x130)]())[_0x45d047(0x13f)](Boolean)),_0x94827c=_0x3f06f9['pruneSkillCodes']?new Set([..._0x3f06f9[_0x45d047(0x122)]][_0x45d047(0x152)](_0x1d943a=>_0x1d943a['trim']())[_0x45d047(0x13f)](Boolean)):undefined,_0x5425d6=_0x3f06f9[_0x45d047(0x132)]??[_0x45d047(0x124),'company'],_0x477ac4=resolve(getRuntimeSkillCacheRoot(_0x3f06f9['env'],_0x3f06f9[_0x45d047(0x133)],_0x1b04db),safePathSegment(_0x3f06f9['appCode'],'appCode')),_0x3f871c=[];for(const _0x1130b2 of _0x5425d6){const _0x33b526=resolve(_0x477ac4,_0x1130b2);if(!existsSync(_0x33b526))continue;for(const _0x2c3fc1 of readdirSync(_0x33b526,{'withFileTypes':!![]})){if(!_0x2c3fc1['isDirectory']())continue;const _0x1c1a51=_0x2c3fc1[_0x45d047(0x127)];if(_0x94827c&&!_0x94827c[_0x45d047(0x142)](_0x1c1a51))continue;if(_0x2c5c02[_0x45d047(0x142)](_0x1c1a51))continue;const _0x35169d=resolve(_0x33b526,_0x1c1a51),_0x1a4c7e=readMetadataIfPresent(resolve(_0x35169d,METADATA_FILE));if(_0x1a4c7e?.[_0x45d047(0x138)]!==_0x3f06f9['appCode']||_0x1a4c7e[_0x45d047(0x12c)]!==_0x1130b2||_0x1a4c7e['skillCode']!==_0x1c1a51){_0x3f871c[_0x45d047(0x153)]({'path':_0x35169d,'action':_0x45d047(0x139),'reason':_0x45d047(0x148)});continue;}if(isLinkedFromAnyRoot(_0x35169d,_0x3f06f9[_0x45d047(0x149)]??[])){_0x3f871c[_0x45d047(0x153)]({'path':_0x35169d,'action':_0x45d047(0x139),'reason':_0x45d047(0x154)});continue;}removeSync(_0x35169d),_0x3f871c[_0x45d047(0x153)]({'path':_0x35169d,'action':_0x45d047(0x13d)});}}return _0x3f871c;}export function linkGlobalRuntimeSkills(_0x247f08,_0x5f232b={}){const _0x4bcd61=a108_0x868413,_0x42fce2=resolveSkillSyncPaths(_0x5f232b),_0x20e49d=[];for(const _0x2dd1f1 of _0x247f08){if(_0x2dd1f1['scope']!=='builtin')throw CliErrors[_0x4bcd61(0x123)](_0x4bcd61(0x11f)+_0x2dd1f1[_0x4bcd61(0x12c)]);const _0x4c1542=requireSkillCode(_0x2dd1f1[_0x4bcd61(0x141)]),_0x107057=copyManagedSkillDirectory(_0x2dd1f1[_0x4bcd61(0x12b)],resolve(_0x42fce2[_0x4bcd61(0x131)],_0x4c1542));_0x20e49d[_0x4bcd61(0x153)]({..._0x107057,'contentHash':_0x2dd1f1[_0x4bcd61(0x14c)]});}return _0x20e49d;}function ensureManagedSymlink(_0xb81b16,_0x251719,_0x9381e2,_0x112124){const _0x2e1c04=a108_0x868413;mkdirSync(dirname(_0xb81b16),{'recursive':!![],'mode':0x1c0});if(existsSync(_0xb81b16)||isDanglingSymlink(_0xb81b16)){const _0x5843d2=lstatSync(_0xb81b16);if(!_0x5843d2[_0x2e1c04(0x14d)]())throw CliErrors[_0x2e1c04(0x123)](_0x2e1c04(0x144)+_0xb81b16);const _0x802803=resolveSymlinkTarget(_0xb81b16);if(!isPathInside(realOrResolved(_0x802803),realOrResolved(_0x9381e2[_0x2e1c04(0x11b)])))throw CliErrors[_0x2e1c04(0x123)](_0x2e1c04(0x11d)+_0xb81b16);if(realOrResolved(_0x802803)===realOrResolved(_0x251719))return{'path':_0xb81b16,'target':_0x251719,'action':'unchanged'};const _0x49e27f=readMetadataIfPresent(resolve(_0x802803,METADATA_FILE));if(_0x9381e2[_0x2e1c04(0x12c)]===_0x2e1c04(0x125)&&(_0x49e27f?.['appCode']!==_0x9381e2[_0x2e1c04(0x138)]||_0x49e27f['skillCode']!==_0x112124))throw CliErrors[_0x2e1c04(0x123)](_0x2e1c04(0x135)+_0xb81b16);return unlinkSync(_0xb81b16),symlinkSync(_0x251719,_0xb81b16,'dir'),{'path':_0xb81b16,'target':_0x251719,'action':_0x2e1c04(0x126)};}return symlinkSync(_0x251719,_0xb81b16,_0x2e1c04(0x12b)),{'path':_0xb81b16,'target':_0x251719,'action':'created'};}function managedTargetSkillLinkPaths(_0x2b46e6,_0x4577af){const _0x553248=a108_0x868413;if(!existsSync(_0x2b46e6))return[];const _0x5f0d10=_0x4577af['appCode']+'--';return readdirSync(_0x2b46e6,{'withFileTypes':!![]})[_0x553248(0x13f)](_0x87b3c2=>_0x4577af[_0x553248(0x12c)]===_0x553248(0x125)||_0x87b3c2[_0x553248(0x127)][_0x553248(0x136)](_0x5f0d10))[_0x553248(0x152)](_0x43c06f=>resolve(_0x2b46e6,_0x43c06f[_0x553248(0x127)]));}function removeManagedSkillLink(_0x104c0d,_0x4ff4a5,_0x7e391a){const _0x4b6e18=a108_0x868413,_0x2643ac=lstatIfPresent(_0x104c0d);if(!_0x2643ac?.[_0x4b6e18(0x14d)]())return{'path':_0x104c0d,'action':_0x4b6e18(0x139),'reason':'not-managed-symlink'};const _0x445fa3=resolveSymlinkTarget(_0x104c0d);if(!isPathInside(realOrResolved(_0x445fa3),realOrResolved(_0x4ff4a5[_0x4b6e18(0x11b)])))return{'path':_0x104c0d,'action':_0x4b6e18(0x139),'reason':'external-symlink'};const _0x19f0bc=readMetadataIfPresent(resolve(_0x445fa3,METADATA_FILE));if(_0x4ff4a5[_0x4b6e18(0x12c)]===_0x4b6e18(0x125)&&(_0x19f0bc?.[_0x4b6e18(0x138)]!==_0x4ff4a5[_0x4b6e18(0x138)]||_0x19f0bc[_0x4b6e18(0x13a)]!==_0x7e391a))return{'path':_0x104c0d,'action':_0x4b6e18(0x139),'reason':_0x4b6e18(0x148)};return unlinkSync(_0x104c0d),{'path':_0x104c0d,'action':_0x4b6e18(0x13d)};}function isLinkedFromAnyRoot(_0x94b49,_0x3f662d){const _0x477d70=a108_0x868413,_0x4b21af=realOrResolved(_0x94b49);for(const _0x2f73ad of _0x3f662d){if(!existsSync(_0x2f73ad))continue;for(const _0x4738d9 of readdirSync(_0x2f73ad,{'withFileTypes':!![]})){if(!_0x4738d9[_0x477d70(0x14d)]())continue;const _0x8b660a=resolve(_0x2f73ad,_0x4738d9[_0x477d70(0x127)]);if(realOrResolved(resolveSymlinkTarget(_0x8b660a))===_0x4b21af)return!![];}}return![];}function runtimeSkillLinkName(_0x45ef08,_0x22a3f5){const _0x4a97ff=a108_0x868413,_0x4e00b6=safePathSegment(_0x22a3f5,_0x4a97ff(0x13a));if(_0x45ef08['scope']===_0x4a97ff(0x125)&&RESERVED_PROJECT_SKILL_CODES['has'](_0x4e00b6))throw CliErrors[_0x4a97ff(0x123)](_0x4a97ff(0x12d)+_0x4e00b6);return _0x45ef08[_0x4a97ff(0x12c)]===_0x4a97ff(0x125)?_0x4e00b6:_0x45ef08[_0x4a97ff(0x138)]+'--'+_0x4e00b6;}function runtimeSkillCodeFromLink(_0x1c3d06,_0x168987){const _0x31cf02=a108_0x868413,_0x1f6f8c=basename(_0x168987);return _0x1c3d06['scope']===_0x31cf02(0x125)?_0x1f6f8c:_0x1f6f8c[_0x31cf02(0x146)]((_0x1c3d06[_0x31cf02(0x138)]+'--')[_0x31cf02(0x12e)]);}export function copyManagedSkillDirectory(_0x3375fc,_0x1ceb3e){const _0x58249a=a108_0x868413,_0x250046=resolve(_0x1ceb3e,METADATA_FILE),_0x3393bb=existsSync(_0x1ceb3e);if(_0x3393bb){const _0x59a046=lstatSync(_0x1ceb3e);if(_0x59a046[_0x58249a(0x14d)]())throw CliErrors[_0x58249a(0x123)](_0x58249a(0x13e)+_0x1ceb3e);if(!_0x59a046[_0x58249a(0x12f)]())throw CliErrors['validation']('Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20'+_0x1ceb3e);const _0x2fd507=readMetadataIfPresent(_0x250046);if(_0x2fd507?.['scope']!==_0x58249a(0x151))throw CliErrors['validation']('Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20'+_0x1ceb3e);}ensureDirSync(dirname(_0x1ceb3e));const _0x58deaa=_0x3393bb?readMetadataIfPresent(_0x250046)?.[_0x58249a(0x14c)]:undefined,_0x4c52fe=readMetadataIfPresent(resolve(_0x3375fc,METADATA_FILE))?.[_0x58249a(0x14c)];return _0x3393bb&&removeSync(_0x1ceb3e),copySkillDirectory(_0x3375fc,_0x1ceb3e),{'path':_0x1ceb3e,'target':_0x3375fc,'action':!_0x3393bb?_0x58249a(0x11a):_0x58deaa===_0x4c52fe?'unchanged':'updated'};}function copySkillDirectory(_0x2109d1,_0x4131d1){copySync(_0x2109d1,_0x4131d1,{'dereference':![],'overwrite':!![],'filter'(_0x3b0cff){const _0x5ed939=a108_0x2745;if(lstatSync(_0x3b0cff)[_0x5ed939(0x14d)]())throw CliErrors[_0x5ed939(0x123)](_0x5ed939(0x128)+_0x3b0cff);return!![];}});}
@@ -1 +1 @@
1
- (function(_0x11cc93,_0x351e93){const _0x357c01=a109_0x1dc9,_0xc1f56e=_0x11cc93();while(!![]){try{const _0x5612ae=parseInt(_0x357c01(0x185))/0x1*(parseInt(_0x357c01(0x165))/0x2)+-parseInt(_0x357c01(0x182))/0x3*(parseInt(_0x357c01(0x17f))/0x4)+-parseInt(_0x357c01(0x176))/0x5+parseInt(_0x357c01(0x169))/0x6*(-parseInt(_0x357c01(0x17a))/0x7)+-parseInt(_0x357c01(0x18a))/0x8+-parseInt(_0x357c01(0x183))/0x9*(parseInt(_0x357c01(0x172))/0xa)+parseInt(_0x357c01(0x17c))/0xb*(parseInt(_0x357c01(0x168))/0xc);if(_0x5612ae===_0x351e93)break;else _0xc1f56e['push'](_0xc1f56e['shift']());}catch(_0x596130){_0xc1f56e['push'](_0xc1f56e['shift']());}}}(a109_0x6c77,0x5e1d9));function a109_0x1dc9(_0x48337d,_0x5e1ebb){_0x48337d=_0x48337d-0x162;const _0x6c775a=a109_0x6c77();let _0x1dc9e5=_0x6c775a[_0x48337d];return _0x1dc9e5;}import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{readMetadataIfPresent}from'./metadata.js';import{getRuntimeSkillCacheRoot,safePathSegment}from'./paths.js';function a109_0x6c77(){const _0x1869bd=['618170NPszsL','trim','skillMdPath','includes','3673455eFJpon','get','metadataPath','cache','3662260tYZwWW','source','77TiIsoA','name','skillCode','1453612QwtEYV','values','has','3PqdHBM','45ywdLZA','validation','39373LGopoK','isSymbolicLink','sort','scope','accessKey','3105736AmEVZt','linkedPaths','linkedPath','Runtime\x20Skill\x20install\x20target\x20app\x20mismatch:\x20','localeCompare','\x20!=\x20','link','map','local','push','34wUNRCW','builtin','tags','3488112TxTuWF','6ZPxsMY','isDirectory','filter','scopes','code','env','dir','cacheDir','appCode'];a109_0x6c77=function(){return _0x1869bd;};return a109_0x6c77();}import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0x4385e2,_0x2c19ea,_0x577469={}){const _0x5c8969=a109_0x1dc9,_0x515ef4=safePathSegment(_0x4385e2[_0x5c8969(0x171)],'appCode');if(_0x2c19ea[_0x5c8969(0x171)]!==_0x515ef4)throw CliErrors[_0x5c8969(0x184)](_0x5c8969(0x18d)+_0x2c19ea[_0x5c8969(0x171)]+_0x5c8969(0x18f)+_0x515ef4);const _0x405512=normalizeRuntimeSkillScopes(_0x4385e2[_0x5c8969(0x16c)]),_0x14ad8e=new Set(_0x405512),_0x4b556c=_0x4385e2[_0x5c8969(0x16d)]?.[_0x5c8969(0x173)](),_0x435f2c=new Map(),_0x1e7f03=resolve(getRuntimeSkillCacheRoot(_0x4385e2[_0x5c8969(0x16e)],_0x4385e2[_0x5c8969(0x189)],_0x577469),_0x515ef4);for(const _0x531d83 of _0x405512){for(const _0x41fb13 of localSkillEntryDirs(resolve(_0x1e7f03,_0x531d83))){collectLocalRuntimeSkill(_0x435f2c,_0x41fb13,{'appCode':_0x515ef4,'scopes':_0x14ad8e,'code':_0x4b556c,'source':_0x5c8969(0x179)});}}for(const _0x3f9afd of _0x2c19ea['skillRoots']){for(const _0x999f27 of localSkillLinkCandidates(_0x3f9afd,_0x2c19ea,_0x14ad8e)){collectLocalRuntimeSkill(_0x435f2c,_0x999f27,{'appCode':_0x515ef4,'scopes':_0x14ad8e,'code':_0x4b556c,'source':_0x5c8969(0x190),'linkedPath':_0x999f27});}}return Array['from'](_0x435f2c[_0x5c8969(0x180)]())[_0x5c8969(0x187)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x5e5e2d){const _0x5ced62=a109_0x1dc9;if(!existsSync(_0x5e5e2d))return[];return readdirSync(_0x5e5e2d,{'withFileTypes':!![]})[_0x5ced62(0x16b)](_0x57b6a9=>_0x57b6a9[_0x5ced62(0x16a)]()||_0x57b6a9[_0x5ced62(0x186)]())[_0x5ced62(0x162)](_0x362d92=>resolve(_0x5e5e2d,_0x362d92[_0x5ced62(0x17d)]));}function localSkillLinkCandidates(_0x2b38a4,_0x173873,_0x1331c9){const _0x5f47f9=a109_0x1dc9;if(!existsSync(_0x2b38a4))return[];const _0x26c21e=_0x173873[_0x5f47f9(0x171)]+'--';return readdirSync(_0x2b38a4,{'withFileTypes':!![]})[_0x5f47f9(0x16b)](_0x492337=>_0x492337[_0x5f47f9(0x16a)]()||_0x492337[_0x5f47f9(0x186)]())[_0x5f47f9(0x16b)](_0x2136d7=>_0x173873[_0x5f47f9(0x188)]==='project'||_0x2136d7[_0x5f47f9(0x17d)]['startsWith'](_0x26c21e)||_0x1331c9[_0x5f47f9(0x181)](_0x5f47f9(0x166)))[_0x5f47f9(0x162)](_0x54b527=>resolve(_0x2b38a4,_0x54b527[_0x5f47f9(0x17d)]));}function collectLocalRuntimeSkill(_0x30ca11,_0x29dafb,_0x2b9240){const _0x42a1c2=a109_0x1dc9,_0x35b5ad=resolve(_0x29dafb,METADATA_FILE),_0x155df1=readMetadataIfPresent(_0x35b5ad);if(!_0x155df1)return;if(_0x155df1[_0x42a1c2(0x171)]!==_0x2b9240['appCode'])return;if(!isRuntimeSkillScope(_0x155df1[_0x42a1c2(0x188)])||!_0x2b9240[_0x42a1c2(0x16c)][_0x42a1c2(0x181)](_0x155df1[_0x42a1c2(0x188)]))return;const _0x41f24b=_0x155df1['skillCode']?.[_0x42a1c2(0x173)]();if(!_0x41f24b)return;if(_0x2b9240[_0x42a1c2(0x16d)]&&_0x41f24b!==_0x2b9240[_0x42a1c2(0x16d)])return;const _0x414689=_0x155df1[_0x42a1c2(0x188)]+':'+_0x41f24b,_0x117934=_0x2b9240[_0x42a1c2(0x18c)]?[_0x2b9240[_0x42a1c2(0x18c)]]:[],_0x2959b7=_0x30ca11[_0x42a1c2(0x177)](_0x414689);if(_0x2959b7){_0x2b9240[_0x42a1c2(0x17b)]===_0x42a1c2(0x179)&&(_0x2959b7[_0x42a1c2(0x16f)]=_0x29dafb,_0x2959b7[_0x42a1c2(0x170)]=_0x29dafb,_0x2959b7[_0x42a1c2(0x174)]=resolve(_0x29dafb,SKILL_FILE),_0x2959b7[_0x42a1c2(0x178)]=_0x35b5ad);for(const _0x2bdb2d of _0x117934){!_0x2959b7[_0x42a1c2(0x18b)][_0x42a1c2(0x175)](_0x2bdb2d)&&_0x2959b7['linkedPaths'][_0x42a1c2(0x164)](_0x2bdb2d);}_0x2959b7['linkedPaths']['sort']();return;}_0x30ca11['set'](_0x414689,{..._0x155df1,'tags':Array['isArray'](_0x155df1[_0x42a1c2(0x167)])?_0x155df1[_0x42a1c2(0x167)]:[],'scope':_0x155df1['scope'],'source':_0x42a1c2(0x163),'dir':_0x29dafb,'cacheDir':_0x2b9240[_0x42a1c2(0x17b)]===_0x42a1c2(0x179)?_0x29dafb:undefined,'skillMdPath':resolve(_0x29dafb,SKILL_FILE),'metadataPath':_0x35b5ad,'linkedPaths':_0x117934});}function compareLocalRuntimeSkills(_0x4ad976,_0x295f57){const _0x132902=a109_0x1dc9,_0x34a7b7={'personal':0x0,'company':0x1,'builtin':0x2};return _0x34a7b7[_0x4ad976[_0x132902(0x188)]]-_0x34a7b7[_0x295f57[_0x132902(0x188)]]||_0x4ad976[_0x132902(0x17e)]['localeCompare'](_0x295f57[_0x132902(0x17e)])||_0x4ad976['dir'][_0x132902(0x18e)](_0x295f57['dir']);}
1
+ function a109_0x1f42(){const _0xcf6aab=['localeCompare','41714qPYwqt','\x20!=\x20','project','3012490kMELYC','50PPFEDq','cache','push','5159128RAIFej','trim','local','3486654KlCyTc','appCode','map','source','skillMdPath','includes','env','7748860mrMrpt','2286612JunmGm','isDirectory','linkedPath','name','builtin','dir','metadataPath','startsWith','code','linkedPaths','skillCode','isSymbolicLink','tags','sort','from','isArray','set','13775872CXoXAL','has','values','Runtime\x20Skill\x20install\x20target\x20app\x20mismatch:\x20','validation','filter','scope'];a109_0x1f42=function(){return _0xcf6aab;};return a109_0x1f42();}(function(_0x1b9b5e,_0x3169dc){const _0xd3affa=a109_0x382a,_0x33d202=_0x1b9b5e();while(!![]){try{const _0x37ef41=parseInt(_0xd3affa(0x12a))/0x1*(-parseInt(_0xd3affa(0x103))/0x2)+parseInt(_0xd3affa(0x109))/0x3+-parseInt(_0xd3affa(0x106))/0x4+-parseInt(_0xd3affa(0x102))/0x5+-parseInt(_0xd3affa(0x111))/0x6+parseInt(_0xd3affa(0x110))/0x7+parseInt(_0xd3affa(0x122))/0x8;if(_0x37ef41===_0x3169dc)break;else _0x33d202['push'](_0x33d202['shift']());}catch(_0x2730be){_0x33d202['push'](_0x33d202['shift']());}}}(a109_0x1f42,0xa4c86));import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';function a109_0x382a(_0x433df9,_0x31fb9b){_0x433df9=_0x433df9-0x101;const _0x1f42e2=a109_0x1f42();let _0x382a0a=_0x1f42e2[_0x433df9];return _0x382a0a;}import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{readMetadataIfPresent}from'./metadata.js';import{getRuntimeSkillCacheRoot,safePathSegment}from'./paths.js';import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0x13b3ae,_0x2e9f9f,_0x4c6868={}){const _0x379797=a109_0x382a,_0x2e93e4=safePathSegment(_0x13b3ae[_0x379797(0x10a)],_0x379797(0x10a));if(_0x2e9f9f[_0x379797(0x10a)]!==_0x2e93e4)throw CliErrors[_0x379797(0x126)](_0x379797(0x125)+_0x2e9f9f[_0x379797(0x10a)]+_0x379797(0x12b)+_0x2e93e4);const _0x293504=normalizeRuntimeSkillScopes(_0x13b3ae['scopes']),_0x33e7c8=new Set(_0x293504),_0x24e98d=_0x13b3ae[_0x379797(0x119)]?.[_0x379797(0x107)](),_0x26588e=new Map(),_0x5c8779=resolve(getRuntimeSkillCacheRoot(_0x13b3ae[_0x379797(0x10f)],_0x13b3ae['accessKey'],_0x4c6868),_0x2e93e4);for(const _0x5136d8 of _0x293504){for(const _0x35672a of localSkillEntryDirs(resolve(_0x5c8779,_0x5136d8))){collectLocalRuntimeSkill(_0x26588e,_0x35672a,{'appCode':_0x2e93e4,'scopes':_0x33e7c8,'code':_0x24e98d,'source':_0x379797(0x104)});}}for(const _0x27d524 of _0x2e9f9f['skillRoots']){for(const _0x326ce2 of localSkillLinkCandidates(_0x27d524,_0x2e9f9f,_0x33e7c8)){collectLocalRuntimeSkill(_0x26588e,_0x326ce2,{'appCode':_0x2e93e4,'scopes':_0x33e7c8,'code':_0x24e98d,'source':'link','linkedPath':_0x326ce2});}}return Array[_0x379797(0x11f)](_0x26588e[_0x379797(0x124)]())[_0x379797(0x11e)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x41dee4){const _0x5c7c91=a109_0x382a;if(!existsSync(_0x41dee4))return[];return readdirSync(_0x41dee4,{'withFileTypes':!![]})[_0x5c7c91(0x127)](_0x10e6bd=>_0x10e6bd[_0x5c7c91(0x112)]()||_0x10e6bd['isSymbolicLink']())['map'](_0x4e1995=>resolve(_0x41dee4,_0x4e1995['name']));}function localSkillLinkCandidates(_0x56dc96,_0x1ec17,_0x40cc46){const _0x112908=a109_0x382a;if(!existsSync(_0x56dc96))return[];const _0x22b74c=_0x1ec17[_0x112908(0x10a)]+'--';return readdirSync(_0x56dc96,{'withFileTypes':!![]})['filter'](_0xfdee7=>_0xfdee7['isDirectory']()||_0xfdee7[_0x112908(0x11c)]())[_0x112908(0x127)](_0x10b3cb=>_0x1ec17[_0x112908(0x128)]===_0x112908(0x101)||_0x10b3cb[_0x112908(0x114)][_0x112908(0x118)](_0x22b74c)||_0x40cc46[_0x112908(0x123)](_0x112908(0x115)))[_0x112908(0x10b)](_0xac7852=>resolve(_0x56dc96,_0xac7852[_0x112908(0x114)]));}function collectLocalRuntimeSkill(_0x5f0393,_0x51a242,_0x116865){const _0x3f7283=a109_0x382a,_0x5a80f9=resolve(_0x51a242,METADATA_FILE),_0x5878c7=readMetadataIfPresent(_0x5a80f9);if(!_0x5878c7)return;if(_0x5878c7[_0x3f7283(0x10a)]!==_0x116865[_0x3f7283(0x10a)])return;if(!isRuntimeSkillScope(_0x5878c7[_0x3f7283(0x128)])||!_0x116865['scopes'][_0x3f7283(0x123)](_0x5878c7[_0x3f7283(0x128)]))return;const _0x69c571=_0x5878c7['skillCode']?.['trim']();if(!_0x69c571)return;if(_0x116865[_0x3f7283(0x119)]&&_0x69c571!==_0x116865[_0x3f7283(0x119)])return;const _0x42ec37=_0x5878c7[_0x3f7283(0x128)]+':'+_0x69c571,_0x52192a=_0x116865['linkedPath']?[_0x116865[_0x3f7283(0x113)]]:[],_0x199a18=_0x5f0393['get'](_0x42ec37);if(_0x199a18){_0x116865[_0x3f7283(0x10c)]===_0x3f7283(0x104)&&(_0x199a18['dir']=_0x51a242,_0x199a18['cacheDir']=_0x51a242,_0x199a18[_0x3f7283(0x10d)]=resolve(_0x51a242,SKILL_FILE),_0x199a18[_0x3f7283(0x117)]=_0x5a80f9);for(const _0x4be109 of _0x52192a){!_0x199a18[_0x3f7283(0x11a)][_0x3f7283(0x10e)](_0x4be109)&&_0x199a18[_0x3f7283(0x11a)][_0x3f7283(0x105)](_0x4be109);}_0x199a18[_0x3f7283(0x11a)][_0x3f7283(0x11e)]();return;}_0x5f0393[_0x3f7283(0x121)](_0x42ec37,{..._0x5878c7,'tags':Array[_0x3f7283(0x120)](_0x5878c7[_0x3f7283(0x11d)])?_0x5878c7[_0x3f7283(0x11d)]:[],'scope':_0x5878c7[_0x3f7283(0x128)],'source':_0x3f7283(0x108),'dir':_0x51a242,'cacheDir':_0x116865['source']===_0x3f7283(0x104)?_0x51a242:undefined,'skillMdPath':resolve(_0x51a242,SKILL_FILE),'metadataPath':_0x5a80f9,'linkedPaths':_0x52192a});}function compareLocalRuntimeSkills(_0x56aaea,_0x2f0b45){const _0x4bacde=a109_0x382a,_0x5beb5f={'personal':0x0,'company':0x1,'builtin':0x2};return _0x5beb5f[_0x56aaea[_0x4bacde(0x128)]]-_0x5beb5f[_0x2f0b45[_0x4bacde(0x128)]]||_0x56aaea[_0x4bacde(0x11b)][_0x4bacde(0x129)](_0x2f0b45[_0x4bacde(0x11b)])||_0x56aaea['dir'][_0x4bacde(0x129)](_0x2f0b45[_0x4bacde(0x116)]);}
@@ -1 +1 @@
1
- (function(_0x4ecabf,_0x252546){const _0x581456=a110_0x2fe2,_0x1514b4=_0x4ecabf();while(!![]){try{const _0x11dccf=parseInt(_0x581456(0x108))/0x1+-parseInt(_0x581456(0xe9))/0x2+-parseInt(_0x581456(0x113))/0x3*(-parseInt(_0x581456(0xf7))/0x4)+-parseInt(_0x581456(0x10e))/0x5+parseInt(_0x581456(0x112))/0x6*(-parseInt(_0x581456(0xf9))/0x7)+-parseInt(_0x581456(0xf3))/0x8+parseInt(_0x581456(0xea))/0x9;if(_0x11dccf===_0x252546)break;else _0x1514b4['push'](_0x1514b4['shift']());}catch(_0x48b6da){_0x1514b4['push'](_0x1514b4['shift']());}}}(a110_0x9c66,0x969be));import{readFileSync,readdirSync,realpathSync}from'node:fs';import{relative,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{IGNORED_DIR_NAMES,IGNORED_FILE_NAMES,SKILL_FILE}from'./constants.js';export function fileContent(_0x306a4){const _0x8b9d59=a110_0x2fe2;return _0x306a4['bytes']??Buffer['from'](_0x306a4[_0x8b9d59(0xef)]??'',_0x8b9d59(0xf0));}export function fileText(_0x26a4db){const _0x199476=a110_0x2fe2;return fileContent(_0x26a4db)[_0x199476(0x106)](_0x199476(0xf0));}export function normalizeLocalFiles(_0x10ba7a){const _0x29f7e0=a110_0x2fe2;if(!Array['isArray'](_0x10ba7a)||_0x10ba7a[_0x29f7e0(0x10c)]===0x0)return[];const _0x50f22c=new Map();for(const _0x225f2d of _0x10ba7a){if(!_0x225f2d||typeof _0x225f2d!==_0x29f7e0(0xec)||typeof _0x225f2d[_0x29f7e0(0x10b)]!=='string')throw CliErrors['validation']('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x2a7efb=normalizeSkillRelativePath(_0x225f2d['path']);if(_0x50f22c[_0x29f7e0(0xf8)](_0x2a7efb))throw CliErrors[_0x29f7e0(0x10f)](_0x29f7e0(0xf2)+_0x2a7efb);if(_0x225f2d[_0x29f7e0(0x104)]!==undefined&&!Buffer[_0x29f7e0(0xeb)](_0x225f2d['bytes']))throw CliErrors['validation'](_0x29f7e0(0x107)+_0x2a7efb);if(_0x225f2d[_0x29f7e0(0x104)]===undefined&&typeof _0x225f2d['content']!=='string')throw CliErrors[_0x29f7e0(0x10f)]('Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20'+_0x2a7efb);const _0x36997b=fileContent(_0x225f2d);_0x50f22c[_0x29f7e0(0x105)](_0x2a7efb,{'path':_0x2a7efb,'bytes':_0x36997b});}return Array[_0x29f7e0(0x101)](_0x50f22c[_0x29f7e0(0x10d)]())['sort'](compareSkillFiles);}export function normalizeManifestFiles(_0x7bdfc6){const _0x24979f=a110_0x2fe2;if(!Array[_0x24979f(0x102)](_0x7bdfc6)||_0x7bdfc6[_0x24979f(0x10c)]===0x0)return[];const _0x219edb=new Map();for(const _0x27cdbf of _0x7bdfc6){if(!_0x27cdbf||typeof _0x27cdbf!==_0x24979f(0xec)||typeof _0x27cdbf['path']!=='string')throw CliErrors[_0x24979f(0x10f)](_0x24979f(0xfe));const _0x2b1434=normalizeSkillRelativePath(_0x27cdbf[_0x24979f(0x10b)]);if(_0x219edb[_0x24979f(0xf8)](_0x2b1434))throw CliErrors[_0x24979f(0x10f)]('Duplicate\x20Skill\x20file\x20path:\x20'+_0x2b1434);if(!isSha256Hex(_0x27cdbf['sha256']))throw CliErrors[_0x24979f(0x10f)](_0x24979f(0x103)+_0x2b1434);if(!Number[_0x24979f(0xfa)](_0x27cdbf[_0x24979f(0x115)])||_0x27cdbf[_0x24979f(0x115)]<0x0)throw CliErrors[_0x24979f(0x10f)](_0x24979f(0x100)+_0x2b1434);_0x219edb['set'](_0x2b1434,{'path':_0x2b1434,'sha256':_0x27cdbf['sha256'][_0x24979f(0xf4)](),'size':_0x27cdbf[_0x24979f(0x115)]});}return Array[_0x24979f(0x101)](_0x219edb[_0x24979f(0x10d)]())[_0x24979f(0x10a)](compareSkillFiles);}export function scanSkillDirectory(_0x1cc43e){const _0x578db1=realpathSync(_0x1cc43e),_0x452c04=[];function _0x9a4c98(_0x10fc7d){const _0x14cfa6=a110_0x2fe2,_0x10ef9c=readdirSync(_0x10fc7d,{'withFileTypes':!![]})[_0x14cfa6(0x10a)]((_0x4d3fb9,_0x16eeb7)=>_0x4d3fb9['name']['localeCompare'](_0x16eeb7[_0x14cfa6(0x110)]));for(const _0x170d8b of _0x10ef9c){if(_0x170d8b[_0x14cfa6(0xfb)]()&&IGNORED_DIR_NAMES[_0x14cfa6(0xf8)](_0x170d8b[_0x14cfa6(0x110)]))continue;if(IGNORED_FILE_NAMES['has'](_0x170d8b[_0x14cfa6(0x110)]))continue;const _0x48462b=resolve(_0x10fc7d,_0x170d8b['name']);if(_0x170d8b[_0x14cfa6(0xf1)]())throw CliErrors[_0x14cfa6(0x10f)](_0x14cfa6(0xf5)+_0x48462b);const _0x38456a=toPosixPath(relative(_0x578db1,_0x48462b));if(_0x170d8b[_0x14cfa6(0xfb)]()){_0x9a4c98(_0x48462b);continue;}if(!_0x170d8b[_0x14cfa6(0xff)]())continue;validateSkillRelativePath(_0x38456a);const _0x170c2c=readFileSync(_0x48462b);_0x452c04['push']({'path':_0x38456a,'bytes':_0x170c2c});}}return _0x9a4c98(_0x578db1),normalizeLocalFiles(_0x452c04);}function a110_0x9c66(){const _0x376f05=['5921010UDwFTa','isBuffer','object','split','replace','content','utf8','isSymbolicLink','Duplicate\x20Skill\x20file\x20path:\x20','2146264ZMViuS','toLowerCase','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','test','4303844ifhQbq','has','70427LCEqIq','isSafeInteger','isDirectory','compare','string','Skill\x20file\x20path\x20must\x20be\x20text.','isFile','Skill\x20file\x20size\x20is\x20invalid:\x20','from','isArray','Skill\x20file\x20sha256\x20is\x20invalid:\x20','bytes','set','toString','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','734242CWxAib','Unsafe\x20Skill\x20file\x20path:\x20','sort','path','length','values','4100275aHwOBL','validation','name','includes','132ULXhgN','3pEcheZ','startsWith','size','1083038abAYxe'];a110_0x9c66=function(){return _0x376f05;};return a110_0x9c66();}function a110_0x2fe2(_0x3c84c6,_0x48ce29){_0x3c84c6=_0x3c84c6-0xe9;const _0x9c666e=a110_0x9c66();let _0x2fe2ba=_0x9c666e[_0x3c84c6];return _0x2fe2ba;}export function compareSkillFiles(_0x38599d,_0x2ff687){const _0x28015a=a110_0x2fe2;if(_0x38599d[_0x28015a(0x10b)]===SKILL_FILE)return _0x2ff687['path']===SKILL_FILE?0x0:-0x1;if(_0x2ff687['path']===SKILL_FILE)return 0x1;return Buffer[_0x28015a(0xfc)](Buffer[_0x28015a(0x101)](_0x38599d['path'],_0x28015a(0xf0)),Buffer[_0x28015a(0x101)](_0x2ff687[_0x28015a(0x10b)],_0x28015a(0xf0)));}export function normalizeSkillRelativePath(_0x48b51b){const _0x5de143=toPosixPath(_0x48b51b['trim']());return validateSkillRelativePath(_0x5de143),_0x5de143;}export function validateSkillRelativePath(_0x3c778a){const _0x2c44ec=a110_0x2fe2;if(!_0x3c778a||_0x3c778a[_0x2c44ec(0x114)]('/')||_0x3c778a[_0x2c44ec(0x111)]('//'))throw CliErrors[_0x2c44ec(0x10f)](_0x2c44ec(0x109)+_0x3c778a);for(const _0x1019cb of _0x3c778a[_0x2c44ec(0xed)]('/')){if(!_0x1019cb||_0x1019cb==='.'||_0x1019cb==='..')throw CliErrors['validation'](_0x2c44ec(0x109)+_0x3c778a);}}export function toPosixPath(_0x45f96e){const _0x5ced13=a110_0x2fe2;return _0x45f96e[_0x5ced13(0xee)](/\\/g,'/');}export function isSha256Hex(_0x4b71bb){const _0xcc3157=a110_0x2fe2;return typeof _0x4b71bb===_0xcc3157(0xfd)&&/^[a-fA-F0-9]{64}$/[_0xcc3157(0xf6)](_0x4b71bb);}
1
+ (function(_0x4a8231,_0x4a757c){const _0x104a12=a110_0x395a,_0x43ccbe=_0x4a8231();while(!![]){try{const _0x4166ea=parseInt(_0x104a12(0x124))/0x1+-parseInt(_0x104a12(0x104))/0x2*(-parseInt(_0x104a12(0x10d))/0x3)+-parseInt(_0x104a12(0x106))/0x4*(-parseInt(_0x104a12(0x10e))/0x5)+-parseInt(_0x104a12(0x11b))/0x6+parseInt(_0x104a12(0x117))/0x7+parseInt(_0x104a12(0x123))/0x8*(parseInt(_0x104a12(0x101))/0x9)+-parseInt(_0x104a12(0x10c))/0xa*(parseInt(_0x104a12(0x12a))/0xb);if(_0x4166ea===_0x4a757c)break;else _0x43ccbe['push'](_0x43ccbe['shift']());}catch(_0x5e58ec){_0x43ccbe['push'](_0x43ccbe['shift']());}}}(a110_0x2d07,0x50154));import{readFileSync,readdirSync,realpathSync}from'node:fs';import{relative,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{IGNORED_DIR_NAMES,IGNORED_FILE_NAMES,SKILL_FILE}from'./constants.js';export function fileContent(_0x4e666e){const _0x199936=a110_0x395a;return _0x4e666e['bytes']??Buffer[_0x199936(0x112)](_0x4e666e[_0x199936(0x10b)]??'','utf8');}export function fileText(_0x3444ee){const _0x4bfb78=a110_0x395a;return fileContent(_0x3444ee)[_0x4bfb78(0x126)](_0x4bfb78(0x110));}export function normalizeLocalFiles(_0x222502){const _0x48dc06=a110_0x395a;if(!Array[_0x48dc06(0x109)](_0x222502)||_0x222502[_0x48dc06(0x113)]===0x0)return[];const _0x4e1e21=new Map();for(const _0x5cf978 of _0x222502){if(!_0x5cf978||typeof _0x5cf978!=='object'||typeof _0x5cf978[_0x48dc06(0x11a)]!==_0x48dc06(0x119))throw CliErrors[_0x48dc06(0x10a)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x50427a=normalizeSkillRelativePath(_0x5cf978[_0x48dc06(0x11a)]);if(_0x4e1e21[_0x48dc06(0x11f)](_0x50427a))throw CliErrors[_0x48dc06(0x10a)](_0x48dc06(0x102)+_0x50427a);if(_0x5cf978[_0x48dc06(0x127)]!==undefined&&!Buffer[_0x48dc06(0x125)](_0x5cf978[_0x48dc06(0x127)]))throw CliErrors['validation'](_0x48dc06(0x10f)+_0x50427a);if(_0x5cf978['bytes']===undefined&&typeof _0x5cf978['content']!=='string')throw CliErrors['validation']('Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20'+_0x50427a);const _0x5112d2=fileContent(_0x5cf978);_0x4e1e21[_0x48dc06(0x103)](_0x50427a,{'path':_0x50427a,'bytes':_0x5112d2});}return Array['from'](_0x4e1e21[_0x48dc06(0x108)]())[_0x48dc06(0x115)](compareSkillFiles);}export function normalizeManifestFiles(_0x1c5d7a){const _0x390500=a110_0x395a;if(!Array[_0x390500(0x109)](_0x1c5d7a)||_0x1c5d7a['length']===0x0)return[];const _0x269384=new Map();for(const _0xd85fdf of _0x1c5d7a){if(!_0xd85fdf||typeof _0xd85fdf!=='object'||typeof _0xd85fdf[_0x390500(0x11a)]!==_0x390500(0x119))throw CliErrors['validation']('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x98086e=normalizeSkillRelativePath(_0xd85fdf['path']);if(_0x269384[_0x390500(0x11f)](_0x98086e))throw CliErrors[_0x390500(0x10a)]('Duplicate\x20Skill\x20file\x20path:\x20'+_0x98086e);if(!isSha256Hex(_0xd85fdf[_0x390500(0x12b)]))throw CliErrors[_0x390500(0x10a)]('Skill\x20file\x20sha256\x20is\x20invalid:\x20'+_0x98086e);if(!Number[_0x390500(0x121)](_0xd85fdf['size'])||_0xd85fdf[_0x390500(0x111)]<0x0)throw CliErrors[_0x390500(0x10a)]('Skill\x20file\x20size\x20is\x20invalid:\x20'+_0x98086e);_0x269384[_0x390500(0x103)](_0x98086e,{'path':_0x98086e,'sha256':_0xd85fdf[_0x390500(0x12b)][_0x390500(0x120)](),'size':_0xd85fdf[_0x390500(0x111)]});}return Array[_0x390500(0x112)](_0x269384['values']())[_0x390500(0x115)](compareSkillFiles);}export function scanSkillDirectory(_0x4443a4){const _0x1a6588=realpathSync(_0x4443a4),_0x2f8983=[];function _0x29bea0(_0x2562f0){const _0x1f3eda=a110_0x395a,_0x28c532=readdirSync(_0x2562f0,{'withFileTypes':!![]})[_0x1f3eda(0x115)]((_0x3c768a,_0x5a0654)=>_0x3c768a[_0x1f3eda(0x105)][_0x1f3eda(0x114)](_0x5a0654[_0x1f3eda(0x105)]));for(const _0x10c1aa of _0x28c532){if(_0x10c1aa[_0x1f3eda(0x129)]()&&IGNORED_DIR_NAMES[_0x1f3eda(0x11f)](_0x10c1aa['name']))continue;if(IGNORED_FILE_NAMES[_0x1f3eda(0x11f)](_0x10c1aa['name']))continue;const _0x3f585f=resolve(_0x2562f0,_0x10c1aa[_0x1f3eda(0x105)]);if(_0x10c1aa['isSymbolicLink']())throw CliErrors[_0x1f3eda(0x10a)](_0x1f3eda(0x11c)+_0x3f585f);const _0x18cb3d=toPosixPath(relative(_0x1a6588,_0x3f585f));if(_0x10c1aa['isDirectory']()){_0x29bea0(_0x3f585f);continue;}if(!_0x10c1aa[_0x1f3eda(0x128)]())continue;validateSkillRelativePath(_0x18cb3d);const _0x2d3448=readFileSync(_0x3f585f);_0x2f8983[_0x1f3eda(0x107)]({'path':_0x18cb3d,'bytes':_0x2d3448});}}return _0x29bea0(_0x1a6588),normalizeLocalFiles(_0x2f8983);}export function compareSkillFiles(_0x44651e,_0x31b2c3){const _0x349aa2=a110_0x395a;if(_0x44651e['path']===SKILL_FILE)return _0x31b2c3[_0x349aa2(0x11a)]===SKILL_FILE?0x0:-0x1;if(_0x31b2c3[_0x349aa2(0x11a)]===SKILL_FILE)return 0x1;return Buffer[_0x349aa2(0x122)](Buffer[_0x349aa2(0x112)](_0x44651e[_0x349aa2(0x11a)],_0x349aa2(0x110)),Buffer['from'](_0x31b2c3['path'],_0x349aa2(0x110)));}export function normalizeSkillRelativePath(_0x29e3e9){const _0x2de65a=a110_0x395a,_0x24078f=toPosixPath(_0x29e3e9[_0x2de65a(0x116)]());return validateSkillRelativePath(_0x24078f),_0x24078f;}export function validateSkillRelativePath(_0x44b8a3){const _0x5006af=a110_0x395a;if(!_0x44b8a3||_0x44b8a3[_0x5006af(0x11d)]('/')||_0x44b8a3['includes']('//'))throw CliErrors[_0x5006af(0x10a)](_0x5006af(0x118)+_0x44b8a3);for(const _0x2e71c7 of _0x44b8a3['split']('/')){if(!_0x2e71c7||_0x2e71c7==='.'||_0x2e71c7==='..')throw CliErrors[_0x5006af(0x10a)]('Unsafe\x20Skill\x20file\x20path:\x20'+_0x44b8a3);}}function a110_0x395a(_0x4ab231,_0x18a558){_0x4ab231=_0x4ab231-0x101;const _0x2d0717=a110_0x2d07();let _0x395a7a=_0x2d0717[_0x4ab231];return _0x395a7a;}export function toPosixPath(_0xd8dbc3){const _0x48fa8a=a110_0x395a;return _0xd8dbc3[_0x48fa8a(0x11e)](/\\/g,'/');}function a110_0x2d07(){const _0x425f3a=['isBuffer','toString','bytes','isFile','isDirectory','5943377MlmJjJ','sha256','729klAqmY','Duplicate\x20Skill\x20file\x20path:\x20','set','92rMzVyr','name','1023904xsiYlj','push','values','isArray','validation','content','20MYRxcq','23469zQQbat','10wiCXEe','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','utf8','size','from','length','localeCompare','sort','trim','1262415xOkCpd','Unsafe\x20Skill\x20file\x20path:\x20','string','path','2458614nMZSeD','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','startsWith','replace','has','toLowerCase','isSafeInteger','compare','63664wDThVZ','121650ZKYlvK'];a110_0x2d07=function(){return _0x425f3a;};return a110_0x2d07();}export function isSha256Hex(_0x411427){const _0x47326a=a110_0x395a;return typeof _0x411427===_0x47326a(0x119)&&/^[a-fA-F0-9]{64}$/['test'](_0x411427);}
@@ -1 +1 @@
1
- (function(_0x38d9d9,_0x1aa32c){const _0x355979=a111_0x825e,_0x3a6fc6=_0x38d9d9();while(!![]){try{const _0xcf60cb=-parseInt(_0x355979(0x190))/0x1+parseInt(_0x355979(0x170))/0x2*(-parseInt(_0x355979(0x17d))/0x3)+parseInt(_0x355979(0x174))/0x4+-parseInt(_0x355979(0x18e))/0x5+parseInt(_0x355979(0x16d))/0x6*(parseInt(_0x355979(0x182))/0x7)+parseInt(_0x355979(0x162))/0x8*(-parseInt(_0x355979(0x173))/0x9)+-parseInt(_0x355979(0x166))/0xa*(-parseInt(_0x355979(0x193))/0xb);if(_0xcf60cb===_0x1aa32c)break;else _0x3a6fc6['push'](_0x3a6fc6['shift']());}catch(_0x1c7e58){_0x3a6fc6['push'](_0x3a6fc6['shift']());}}}(a111_0x534d,0x7d8e9));import{existsSync,lstatSync,mkdirSync,readFileSync,rmSync}from'node:fs';import{dirname,resolve}from'node:path';import{isCollection,isMap,isNode,parseDocument,visit}from'yaml';function a111_0x534d(){const _0xf520cd=['384830HGwrKr','test','path','9229mnMZBe','skillName','map','---','trimEnd','85944bkymjn','match','find','fileHashes','18840jaFrze','contentHash','entries','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','set','pulledAt','contents','12KpfoWI','toString','.\x20Changed\x20file:\x20','88YqINSl','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.','Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','513qEQhYi','1964652zEILwU','paths','trim','keys','delete','packageBytes','has','description','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20','46977nMeLTq','filter','---\x0a','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','utf8','953001cdrpfW','name:\x20','Managed\x20file\x20was\x20removed\x20locally:\x20','replace','displayName','env','length','displayName:\x20','isFile','name','description:\x20','validation','718335kfPEND','appCode'];a111_0x534d=function(){return _0xf520cd;};return a111_0x534d();}import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{resolveManagedFilePath,writeBytesAtomic,writeJsonAtomic}from'./fs-utils.js';import{bufferSha256,contentHash,fileHash}from'./hashing.js';import{fileContent,fileText,normalizeLocalFiles}from'./local-files.js';import{buildMetadata,readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillDir}from'./paths.js';import{extractDownloadedPackage,requirePackageBytes}from'./zip-package.js';function a111_0x825e(_0x440167,_0x3c91e3){_0x440167=_0x440167-0x162;const _0x534def=a111_0x534d();let _0x825e31=_0x534def[_0x440167];return _0x825e31;}export function materializeRuntimeSkill(_0x2f5f2a,_0x17cf67,_0x483328){const _0x1f103b=a111_0x825e,_0x1366e1=requireSkillCode(_0x2f5f2a),_0x188cf6=requirePackageBytes(_0x1366e1,_0x483328[_0x1f103b(0x179)]),_0x477956=extractDownloadedPackage(_0x188cf6),_0x214ef8=_0x477956[_0x1f103b(0x164)](_0x50a1e7=>_0x50a1e7['path']===SKILL_FILE);if(!_0x214ef8)throw CliErrors[_0x1f103b(0x18d)]('Runtime\x20Skill\x20package\x20is\x20missing\x20'+SKILL_FILE+':\x20'+_0x1366e1);const _0x397f3c=withMaterializedSkillFrontmatter(_0x477956,_0x2f5f2a,_0x1366e1),_0x56bbcc=_0x397f3c[_0x1f103b(0x164)](_0x2588ab=>_0x2588ab[_0x1f103b(0x192)]===SKILL_FILE),_0x38cc72=fileText(_0x56bbcc),_0x504088=getRuntimeSkillDir(_0x483328[_0x1f103b(0x187)],_0x483328['accessKey'],_0x483328['appCode'],_0x17cf67,_0x1366e1,_0x483328[_0x1f103b(0x175)]),_0x48524a=resolve(_0x504088,SKILL_FILE),_0x2dae0a=resolve(_0x504088,METADATA_FILE),_0x36aae0=contentHash(_0x38cc72),_0x23cff2=readMetadataIfPresent(_0x2dae0a)?.['fileHashes'];ensurePulledFilesCanBeOverwritten(_0x504088,_0x2dae0a,_0x397f3c,_0x483328['force']===!![]),mkdirSync(_0x504088,{'recursive':!![],'mode':0x1c0});const _0x3fd829=existsSync(_0x48524a)?readFileSync(_0x48524a,_0x1f103b(0x181)):undefined;return materializeFiles(_0x504088,_0x397f3c),removeStaleManagedFiles(_0x504088,_0x23cff2,_0x397f3c),writeJsonAtomic(_0x2dae0a,buildMetadata(_0x2f5f2a,_0x17cf67,_0x483328[_0x1f103b(0x18f)],_0x36aae0,_0x483328[_0x1f103b(0x16b)],_0x397f3c,_0x188cf6)),{'skill':_0x2f5f2a,'scope':_0x17cf67,'dir':_0x504088,'skillMdPath':_0x48524a,'metadataPath':_0x2dae0a,'contentHash':_0x36aae0,'changed':_0x3fd829!==_0x38cc72};}function withMaterializedSkillFrontmatter(_0x508ac4,_0x4318b9,_0x1eb65c){const _0x10f4e4=a111_0x825e,_0x10d469=skillDisplayName(_0x4318b9,_0x1eb65c),_0x33538a=_0x4318b9[_0x10f4e4(0x17b)]?.[_0x10f4e4(0x176)]()||_0x10d469||_0x1eb65c;return normalizeLocalFiles(_0x508ac4)[_0x10f4e4(0x195)](_0x1f22f3=>{const _0x5defa7=_0x10f4e4,_0x5cd944=fileText(_0x1f22f3);if(_0x1f22f3['path']!==SKILL_FILE)return _0x1f22f3;if(hasYamlFrontmatter(_0x5cd944))return{'path':_0x1f22f3[_0x5defa7(0x192)],'content':withSyncedDisplayName(_0x5cd944,_0x10d469)};return{'path':_0x1f22f3['path'],'content':prependSkillFrontmatter(_0x5cd944,{'name':_0x1eb65c,'displayName':_0x10d469,'description':_0x33538a})};});}function hasYamlFrontmatter(_0x5a05b2){const _0x9763b9=a111_0x825e;return/^\uFEFF?---\s*\r?\n/[_0x9763b9(0x191)](_0x5a05b2);}function prependSkillFrontmatter(_0x5092dc,_0x2870f9){const _0x39ec37=a111_0x825e,_0x620da4=_0x5092dc[_0x39ec37(0x185)](/^\uFEFF/,'');return[_0x39ec37(0x196),_0x39ec37(0x183)+yamlString(_0x2870f9[_0x39ec37(0x18b)]),_0x2870f9[_0x39ec37(0x186)]?_0x39ec37(0x189)+yamlString(_0x2870f9['displayName']):undefined,_0x39ec37(0x18c)+yamlString(_0x2870f9[_0x39ec37(0x17b)]),_0x39ec37(0x196),'',_0x620da4][_0x39ec37(0x17e)](_0x20267c=>_0x20267c!==undefined)['join']('\x0a');}function yamlString(_0x26ce30){const _0x26c660=a111_0x825e;return JSON['stringify'](_0x26ce30['replace'](/\r/g,'')[_0x26c660(0x176)]());}function skillDisplayName(_0x57334d,_0x5bac6f){const _0x3a9fe0=a111_0x825e,_0x1a4e3d=_0x57334d[_0x3a9fe0(0x194)]?.[_0x3a9fe0(0x176)]();return _0x1a4e3d||_0x5bac6f;}function withSyncedDisplayName(_0x177a87,_0x58db36){const _0x230afc=a111_0x825e,_0x182034=_0x177a87[_0x230afc(0x163)](/^(\uFEFF?)---\s*\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x182034)return _0x177a87;const _0x140b6d=_0x182034[0x1]??'',_0x149406=_0x182034[0x2]??'',_0x4b7f04=parseDocument(_0x149406);if(_0x4b7f04['errors']['length']>0x0||!isMap(_0x4b7f04[_0x230afc(0x16c)]))return _0x177a87;if(_0x58db36)_0x4b7f04[_0x230afc(0x16a)](_0x230afc(0x186),_0x58db36);else{if(_0x4b7f04[_0x230afc(0x17a)](_0x230afc(0x186)))_0x4b7f04[_0x230afc(0x178)](_0x230afc(0x186));else return _0x177a87;}forceBlockCollections(_0x4b7f04['contents']);const _0x4cf2f6=_0x4b7f04[_0x230afc(0x16e)]({'lineWidth':0x0})[_0x230afc(0x197)](),_0x4406c6=_0x177a87['slice'](_0x182034[0x0][_0x230afc(0x188)])[_0x230afc(0x185)](/^\r?\n/,'');return _0x140b6d+_0x230afc(0x17f)+_0x4cf2f6+'\x0a---\x0a\x0a'+_0x4406c6;}function forceBlockCollections(_0x8d3b08){if(!isNode(_0x8d3b08))return;visit(_0x8d3b08,(_0xd53725,_0x483ea7)=>{isCollection(_0x483ea7)&&(_0x483ea7['flow']=![]);});}function ensurePulledFilesCanBeOverwritten(_0x4c351a,_0x5e3e0f,_0x5cf0f1,_0x2683c2){const _0x444631=a111_0x825e;if(_0x2683c2||!existsSync(_0x5e3e0f))return;const _0x6ecc77=readMetadataIfPresent(_0x5e3e0f);if(!_0x6ecc77)return;const _0x1dc0d9=_0x6ecc77[_0x444631(0x165)]&&Object['keys'](_0x6ecc77[_0x444631(0x165)])[_0x444631(0x188)]>0x0?_0x6ecc77[_0x444631(0x165)]:undefined;if(_0x1dc0d9)for(const [_0x4f15bc,_0x5b21f0]of Object[_0x444631(0x168)](_0x1dc0d9)){const _0x45c017=resolveManagedFilePath(_0x4c351a,_0x4f15bc);if(!existsSync(_0x45c017))throw CliErrors[_0x444631(0x18d)](_0x444631(0x169)+_0x4c351a,_0x444631(0x184)+_0x4f15bc);const _0x3bd482=lstatSync(_0x45c017);if(!_0x3bd482[_0x444631(0x18a)]())throw CliErrors[_0x444631(0x18d)](_0x444631(0x169)+_0x4c351a,'Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20'+_0x4f15bc);const _0x1467b7=bufferSha256(readFileSync(_0x45c017));if(_0x1467b7!==_0x5b21f0)throw CliErrors[_0x444631(0x18d)](_0x444631(0x169)+_0x4c351a+_0x444631(0x16f)+_0x4f15bc,_0x444631(0x17c)+_0x4f15bc);}else{const _0x12d540=resolve(_0x4c351a,SKILL_FILE);if(existsSync(_0x12d540)&&_0x6ecc77[_0x444631(0x167)]){const _0x3619ab=contentHash(readFileSync(_0x12d540,_0x444631(0x181)));if(_0x3619ab!==_0x6ecc77[_0x444631(0x167)])throw CliErrors['validation'](_0x444631(0x180)+_0x12d540,_0x444631(0x171));}}for(const _0x4aae5d of normalizeLocalFiles(_0x5cf0f1)){if(_0x1dc0d9?.[_0x4aae5d[_0x444631(0x192)]])continue;if(!_0x1dc0d9&&_0x4aae5d[_0x444631(0x192)]===SKILL_FILE)continue;const _0x2b30b5=resolveManagedFilePath(_0x4c351a,_0x4aae5d['path']);if(!existsSync(_0x2b30b5))continue;const _0x5d6381=lstatSync(_0x2b30b5);if(!_0x5d6381['isFile']())throw CliErrors[_0x444631(0x18d)](_0x444631(0x169)+_0x4c351a,_0x444631(0x172)+_0x4aae5d['path']);const _0x108f00=bufferSha256(readFileSync(_0x2b30b5));if(_0x108f00!==fileHash(_0x4aae5d))throw CliErrors[_0x444631(0x18d)](_0x444631(0x169)+_0x4c351a,'Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20'+_0x4aae5d['path']);}}function materializeFiles(_0x18038f,_0x45ddee){for(const _0x12e797 of normalizeLocalFiles(_0x45ddee)){const _0x54a790=resolveManagedFilePath(_0x18038f,_0x12e797['path']);mkdirSync(dirname(_0x54a790),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x54a790,fileContent(_0x12e797),0x180);}}function removeStaleManagedFiles(_0x310f2f,_0x550597,_0x302216){const _0x54cad1=a111_0x825e;if(!_0x550597)return;const _0x166584=new Set(normalizeLocalFiles(_0x302216)[_0x54cad1(0x195)](_0x42f019=>_0x42f019['path']));for(const _0x164e64 of Object[_0x54cad1(0x177)](_0x550597)){if(_0x166584[_0x54cad1(0x17a)](_0x164e64))continue;const _0xcb1d73=resolveManagedFilePath(_0x310f2f,_0x164e64);existsSync(_0xcb1d73)&&lstatSync(_0xcb1d73)[_0x54cad1(0x18a)]()&&rmSync(_0xcb1d73,{'force':!![]});}}
1
+ (function(_0x5e5f4a,_0x205169){const _0x2690c7=a111_0x5ed1,_0x2f07ce=_0x5e5f4a();while(!![]){try{const _0x1add1c=parseInt(_0x2690c7(0xd1))/0x1+parseInt(_0x2690c7(0xd9))/0x2+parseInt(_0x2690c7(0xdf))/0x3*(-parseInt(_0x2690c7(0xfb))/0x4)+parseInt(_0x2690c7(0xd6))/0x5+parseInt(_0x2690c7(0xf5))/0x6+-parseInt(_0x2690c7(0xd4))/0x7+parseInt(_0x2690c7(0xd7))/0x8*(-parseInt(_0x2690c7(0xe0))/0x9);if(_0x1add1c===_0x205169)break;else _0x2f07ce['push'](_0x2f07ce['shift']());}catch(_0x24fd62){_0x2f07ce['push'](_0x2f07ce['shift']());}}}(a111_0x5e60,0x3221b));import{existsSync,lstatSync,mkdirSync,readFileSync,rmSync}from'node:fs';import{dirname,resolve}from'node:path';import{isCollection,isMap,isNode,parseDocument,visit}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{resolveManagedFilePath,writeBytesAtomic,writeJsonAtomic}from'./fs-utils.js';import{bufferSha256,contentHash,fileHash}from'./hashing.js';import{fileContent,fileText,normalizeLocalFiles}from'./local-files.js';import{buildMetadata,readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillDir}from'./paths.js';import{extractDownloadedPackage,requirePackageBytes}from'./zip-package.js';export function materializeRuntimeSkill(_0x3c7592,_0x221ece,_0x24cc5e){const _0x705441=a111_0x5ed1,_0x44e4c6=requireSkillCode(_0x3c7592),_0x20735f=requirePackageBytes(_0x44e4c6,_0x24cc5e[_0x705441(0xd5)]),_0x27fe9c=extractDownloadedPackage(_0x20735f),_0x5093f1=_0x27fe9c[_0x705441(0xed)](_0x3b9231=>_0x3b9231[_0x705441(0xee)]===SKILL_FILE);if(!_0x5093f1)throw CliErrors[_0x705441(0xe2)]('Runtime\x20Skill\x20package\x20is\x20missing\x20'+SKILL_FILE+':\x20'+_0x44e4c6);const _0x24bf51=withMaterializedSkillFrontmatter(_0x27fe9c,_0x3c7592,_0x44e4c6),_0x23b819=_0x24bf51[_0x705441(0xed)](_0x144da5=>_0x144da5[_0x705441(0xee)]===SKILL_FILE),_0xe3e375=fileText(_0x23b819),_0x376629=getRuntimeSkillDir(_0x24cc5e[_0x705441(0xda)],_0x24cc5e[_0x705441(0xf2)],_0x24cc5e['appCode'],_0x221ece,_0x44e4c6,_0x24cc5e['paths']),_0x17e480=resolve(_0x376629,SKILL_FILE),_0x5b7ac7=resolve(_0x376629,METADATA_FILE),_0x3404a2=contentHash(_0xe3e375),_0x2bc089=readMetadataIfPresent(_0x5b7ac7)?.[_0x705441(0xf6)];ensurePulledFilesCanBeOverwritten(_0x376629,_0x5b7ac7,_0x24bf51,_0x24cc5e[_0x705441(0xeb)]===!![]),mkdirSync(_0x376629,{'recursive':!![],'mode':0x1c0});const _0x17e881=existsSync(_0x17e480)?readFileSync(_0x17e480,_0x705441(0xe6)):undefined;return materializeFiles(_0x376629,_0x24bf51),removeStaleManagedFiles(_0x376629,_0x2bc089,_0x24bf51),writeJsonAtomic(_0x5b7ac7,buildMetadata(_0x3c7592,_0x221ece,_0x24cc5e['appCode'],_0x3404a2,_0x24cc5e[_0x705441(0xf9)],_0x24bf51,_0x20735f)),{'skill':_0x3c7592,'scope':_0x221ece,'dir':_0x376629,'skillMdPath':_0x17e480,'metadataPath':_0x5b7ac7,'contentHash':_0x3404a2,'changed':_0x17e881!==_0xe3e375};}function withMaterializedSkillFrontmatter(_0x4c74b1,_0x3b139a,_0x21cfa2){const _0x21b556=a111_0x5ed1,_0x54eee7=skillDisplayName(_0x3b139a,_0x21cfa2),_0x32bbfd=_0x3b139a[_0x21b556(0xf0)]?.[_0x21b556(0xe1)]()||_0x54eee7||_0x21cfa2;return normalizeLocalFiles(_0x4c74b1)[_0x21b556(0xe3)](_0xd90a97=>{const _0x4e8f8c=_0x21b556,_0x234375=fileText(_0xd90a97);if(_0xd90a97['path']!==SKILL_FILE)return _0xd90a97;if(hasYamlFrontmatter(_0x234375))return{'path':_0xd90a97['path'],'content':withSyncedDisplayName(_0x234375,_0x54eee7)};return{'path':_0xd90a97[_0x4e8f8c(0xee)],'content':prependSkillFrontmatter(_0x234375,{'name':_0x21cfa2,'displayName':_0x54eee7,'description':_0x32bbfd})};});}function hasYamlFrontmatter(_0x361711){const _0x5bf65d=a111_0x5ed1;return/^\uFEFF?---\s*\r?\n/[_0x5bf65d(0xdc)](_0x361711);}function a111_0x5ed1(_0x532f3a,_0x65ec73){_0x532f3a=_0x532f3a-0xcb;const _0x5e609f=a111_0x5e60();let _0x5ed1ab=_0x5e609f[_0x532f3a];return _0x5ed1ab;}function prependSkillFrontmatter(_0x56abf9,_0x1279f1){const _0x570ebd=a111_0x5ed1,_0x25dd5b=_0x56abf9[_0x570ebd(0xf3)](/^\uFEFF/,'');return[_0x570ebd(0xec),'name:\x20'+yamlString(_0x1279f1['name']),_0x1279f1[_0x570ebd(0xd8)]?_0x570ebd(0xf4)+yamlString(_0x1279f1[_0x570ebd(0xd8)]):undefined,_0x570ebd(0xf7)+yamlString(_0x1279f1[_0x570ebd(0xf0)]),_0x570ebd(0xec),'',_0x25dd5b][_0x570ebd(0xfd)](_0x43932a=>_0x43932a!==undefined)['join']('\x0a');}function yamlString(_0x463403){const _0x1fdf76=a111_0x5ed1;return JSON[_0x1fdf76(0xf1)](_0x463403[_0x1fdf76(0xf3)](/\r/g,'')[_0x1fdf76(0xe1)]());}function skillDisplayName(_0x10d677,_0x357cb2){const _0x4b0ed1=a111_0x5ed1,_0x3bfc81=_0x10d677[_0x4b0ed1(0x101)]?.[_0x4b0ed1(0xe1)]();return _0x3bfc81||_0x357cb2;}function withSyncedDisplayName(_0x3f4764,_0x578cb1){const _0x2678ce=a111_0x5ed1,_0x1ffd92=_0x3f4764[_0x2678ce(0xcd)](/^(\uFEFF?)---\s*\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x1ffd92)return _0x3f4764;const _0xc81e9a=_0x1ffd92[0x1]??'',_0x3505b9=_0x1ffd92[0x2]??'',_0x305ad5=parseDocument(_0x3505b9);if(_0x305ad5[_0x2678ce(0xea)][_0x2678ce(0xff)]>0x0||!isMap(_0x305ad5[_0x2678ce(0xde)]))return _0x3f4764;if(_0x578cb1)_0x305ad5[_0x2678ce(0xd2)](_0x2678ce(0xd8),_0x578cb1);else{if(_0x305ad5[_0x2678ce(0xd3)]('displayName'))_0x305ad5[_0x2678ce(0xcc)](_0x2678ce(0xd8));else return _0x3f4764;}forceBlockCollections(_0x305ad5[_0x2678ce(0xde)]);const _0x2ef273=_0x305ad5[_0x2678ce(0xdb)]({'lineWidth':0x0})[_0x2678ce(0xd0)](),_0x55595e=_0x3f4764[_0x2678ce(0xce)](_0x1ffd92[0x0]['length'])['replace'](/^\r?\n/,'');return _0xc81e9a+_0x2678ce(0x100)+_0x2ef273+_0x2678ce(0xe5)+_0x55595e;}function forceBlockCollections(_0x2b17d4){if(!isNode(_0x2b17d4))return;visit(_0x2b17d4,(_0x1fbbf4,_0x47b1ed)=>{const _0x5ebed0=a111_0x5ed1;isCollection(_0x47b1ed)&&(_0x47b1ed[_0x5ebed0(0xe7)]=![]);});}function ensurePulledFilesCanBeOverwritten(_0x30fe38,_0xe5ece6,_0x91a02b,_0x98edb9){const _0x4885dd=a111_0x5ed1;if(_0x98edb9||!existsSync(_0xe5ece6))return;const _0x32c069=readMetadataIfPresent(_0xe5ece6);if(!_0x32c069)return;const _0x50adb1=_0x32c069[_0x4885dd(0xf6)]&&Object[_0x4885dd(0xfe)](_0x32c069['fileHashes'])[_0x4885dd(0xff)]>0x0?_0x32c069[_0x4885dd(0xf6)]:undefined;if(_0x50adb1)for(const [_0x498407,_0x59aeb6]of Object[_0x4885dd(0xcf)](_0x50adb1)){const _0x5eba9c=resolveManagedFilePath(_0x30fe38,_0x498407);if(!existsSync(_0x5eba9c))throw CliErrors['validation'](_0x4885dd(0xf8)+_0x30fe38,'Managed\x20file\x20was\x20removed\x20locally:\x20'+_0x498407);const _0x472f9e=lstatSync(_0x5eba9c);if(!_0x472f9e[_0x4885dd(0xe9)]())throw CliErrors[_0x4885dd(0xe2)](_0x4885dd(0xf8)+_0x30fe38,_0x4885dd(0xe4)+_0x498407);const _0x8e8905=bufferSha256(readFileSync(_0x5eba9c));if(_0x8e8905!==_0x59aeb6)throw CliErrors['validation'](_0x4885dd(0xf8)+_0x30fe38+_0x4885dd(0xfa)+_0x498407,_0x4885dd(0xef)+_0x498407);}else{const _0x1745c1=resolve(_0x30fe38,SKILL_FILE);if(existsSync(_0x1745c1)&&_0x32c069[_0x4885dd(0xcb)]){const _0x19783b=contentHash(readFileSync(_0x1745c1,_0x4885dd(0xe6)));if(_0x19783b!==_0x32c069[_0x4885dd(0xcb)])throw CliErrors[_0x4885dd(0xe2)](_0x4885dd(0xfc)+_0x1745c1,'Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.');}}for(const _0xf3cdb1 of normalizeLocalFiles(_0x91a02b)){if(_0x50adb1?.[_0xf3cdb1['path']])continue;if(!_0x50adb1&&_0xf3cdb1[_0x4885dd(0xee)]===SKILL_FILE)continue;const _0x2ed6b1=resolveManagedFilePath(_0x30fe38,_0xf3cdb1[_0x4885dd(0xee)]);if(!existsSync(_0x2ed6b1))continue;const _0x101a70=lstatSync(_0x2ed6b1);if(!_0x101a70[_0x4885dd(0xe9)]())throw CliErrors[_0x4885dd(0xe2)](_0x4885dd(0xf8)+_0x30fe38,_0x4885dd(0xdd)+_0xf3cdb1[_0x4885dd(0xee)]);const _0x4240d0=bufferSha256(readFileSync(_0x2ed6b1));if(_0x4240d0!==fileHash(_0xf3cdb1))throw CliErrors[_0x4885dd(0xe2)](_0x4885dd(0xf8)+_0x30fe38,_0x4885dd(0xe8)+_0xf3cdb1['path']);}}function a111_0x5e60(){const _0xe3baa9=['Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','contents','3SXsUTG','246888mxsILi','trim','validation','map','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20','\x0a---\x0a\x0a','utf8','flow','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','isFile','errors','force','---','find','path','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20','description','stringify','accessKey','replace','displayName:\x20','953898ckvkJK','fileHashes','description:\x20','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','pulledAt','.\x20Changed\x20file:\x20','198428KwdtQO','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','filter','keys','length','---\x0a','skillName','contentHash','delete','match','slice','entries','trimEnd','138051EMwLcC','set','has','1711745EsywiA','packageBytes','674930rIjwMM','96MgVeoq','displayName','793290WzeAEl','env','toString','test'];a111_0x5e60=function(){return _0xe3baa9;};return a111_0x5e60();}function materializeFiles(_0x468f4a,_0xff60a4){const _0x1713cc=a111_0x5ed1;for(const _0x2fd334 of normalizeLocalFiles(_0xff60a4)){const _0xe5a15a=resolveManagedFilePath(_0x468f4a,_0x2fd334[_0x1713cc(0xee)]);mkdirSync(dirname(_0xe5a15a),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0xe5a15a,fileContent(_0x2fd334),0x180);}}function removeStaleManagedFiles(_0x18657e,_0x5b0f4e,_0x33b306){const _0x296bfc=a111_0x5ed1;if(!_0x5b0f4e)return;const _0x297e0c=new Set(normalizeLocalFiles(_0x33b306)[_0x296bfc(0xe3)](_0x5b555e=>_0x5b555e[_0x296bfc(0xee)]));for(const _0x44dd84 of Object[_0x296bfc(0xfe)](_0x5b0f4e)){if(_0x297e0c['has'](_0x44dd84))continue;const _0x1426ef=resolveManagedFilePath(_0x18657e,_0x44dd84);existsSync(_0x1426ef)&&lstatSync(_0x1426ef)[_0x296bfc(0xe9)]()&&rmSync(_0x1426ef,{'force':!![]});}}
@@ -1 +1 @@
1
- (function(_0x321663,_0x2a55e3){const _0x5cc6be=a112_0x10a0,_0x9a75e3=_0x321663();while(!![]){try{const _0x5ea8db=-parseInt(_0x5cc6be(0x8a))/0x1+-parseInt(_0x5cc6be(0x78))/0x2+parseInt(_0x5cc6be(0x85))/0x3*(parseInt(_0x5cc6be(0x77))/0x4)+parseInt(_0x5cc6be(0x93))/0x5*(-parseInt(_0x5cc6be(0x88))/0x6)+parseInt(_0x5cc6be(0x94))/0x7*(-parseInt(_0x5cc6be(0x96))/0x8)+parseInt(_0x5cc6be(0x8c))/0x9+-parseInt(_0x5cc6be(0x82))/0xa*(-parseInt(_0x5cc6be(0x86))/0xb);if(_0x5ea8db===_0x2a55e3)break;else _0x9a75e3['push'](_0x9a75e3['shift']());}catch(_0xe90486){_0x9a75e3['push'](_0x9a75e3['shift']());}}}(a112_0x117e,0x4a558));import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';function a112_0x10a0(_0xd64a94,_0x3608c3){_0xd64a94=_0xd64a94-0x72;const _0x117e4d=a112_0x117e();let _0x10a0a3=_0x117e4d[_0xd64a94];return _0x10a0a3;}import{METADATA_FILE}from'./constants.js';function a112_0x117e(){const _0x33953a=['fromEntries','personal','string','hasUpstreamUpdate','forkedFromVersion','10imUUAZ','371ZaupuZ','userId','18472Bwduie','status','tenantCode','forkedFromSkillId','validation','skillName','parse','2421592fQNrrc','429960SliQIt','manifest','isArray','Runtime\x20Skill\x20is\x20missing\x20skillCode.','skillCode','zipSize','zipSha256','object','path','map','20SONhbi','length','description','3dHDtLO','3634642bStDXy','utf8','1536258nKInIe','files','520940SSsPFJ','version','3677517eeDNpe','trim'];a112_0x117e=function(){return _0x33953a;};return a112_0x117e();}import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,normalizeLocalFiles}from'./local-files.js';import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x17e4df,_0x8be5a7,_0x2f2876,_0x276906,_0x478582,_0x287a15,_0x17f990){const _0x5cc3c7=a112_0x10a0,_0x4e1f13=_0x287a15?normalizeLocalFiles(_0x287a15):[],_0x33ebcd=!_0x17f990&&_0x4e1f13[_0x5cc3c7(0x83)]>0x0?buildSkillPackage(_0x4e1f13):undefined,_0x269927=_0x17f990?bufferSha256(_0x17f990):_0x33ebcd?.['manifest'][_0x5cc3c7(0x7e)],_0xcab8e3=_0x17f990?.[_0x5cc3c7(0x83)]??_0x33ebcd?.[_0x5cc3c7(0x79)][_0x5cc3c7(0x7d)],_0x596317=_0x4e1f13[_0x5cc3c7(0x83)]>0x0?Object[_0x5cc3c7(0x8e)](_0x4e1f13[_0x5cc3c7(0x81)](_0x3082c4=>[_0x3082c4[_0x5cc3c7(0x80)],fileHash(_0x3082c4)])):undefined;return{'schemaVersion':_0x4e1f13[_0x5cc3c7(0x83)]>0x0?0x2:0x1,'id':_0x17e4df['id'],'appCode':_0x2f2876,'skillCode':requireSkillCode(_0x17e4df),'skillName':_0x17e4df[_0x5cc3c7(0x75)],'description':_0x17e4df[_0x5cc3c7(0x84)],'scope':_0x8be5a7,'readonly':_0x8be5a7!==_0x5cc3c7(0x8f)||_0x17e4df['readonly']===!![],'tenantCode':_0x17e4df[_0x5cc3c7(0x72)],'userId':_0x17e4df[_0x5cc3c7(0x95)],'version':_0x17e4df[_0x5cc3c7(0x8b)],'status':_0x17e4df[_0x5cc3c7(0x97)],'tags':Array[_0x5cc3c7(0x7a)](_0x17e4df['tags'])?_0x17e4df['tags']:[],'hasUpstreamUpdate':_0x17e4df[_0x5cc3c7(0x91)],'forkedFromSkillId':_0x17e4df[_0x5cc3c7(0x73)],'forkedFromVersion':_0x17e4df[_0x5cc3c7(0x92)],'sourceSessionId':_0x17e4df['sourceSessionId'],'contentHash':_0x276906,'fileHashes':_0x596317,'treeHash':_0x4e1f13[_0x5cc3c7(0x83)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x4e1f13)):undefined,'ossPath':remoteManifestOssPath(_0x17e4df[_0x5cc3c7(0x89)]),'zipSha256':_0x269927,'zipSize':_0xcab8e3,'files':_0x4e1f13[_0x5cc3c7(0x83)]>0x0?_0x4e1f13[_0x5cc3c7(0x81)](_0x16dda1=>({'path':_0x16dda1[_0x5cc3c7(0x80)],'hash':fileHash(_0x16dda1),'size':fileContent(_0x16dda1)[_0x5cc3c7(0x83)]})):undefined,'pulledAt':_0x478582??new Date()['toISOString']()};}export function requireSkillCode(_0x3114d3){const _0x1eba05=a112_0x10a0,_0x57e32e=_0x3114d3[_0x1eba05(0x7c)]?.[_0x1eba05(0x8d)]();if(!_0x57e32e)throw CliErrors[_0x1eba05(0x74)](_0x1eba05(0x7b));return _0x57e32e;}export function readMetadataIfPresent(_0x4056d5){const _0x3056c9=a112_0x10a0;if(!existsSync(_0x4056d5))return undefined;try{const _0x2b5050=JSON[_0x3056c9(0x76)](readFileSync(_0x4056d5,_0x3056c9(0x87)));return _0x2b5050;}catch{throw CliErrors[_0x3056c9(0x74)]('Invalid\x20'+METADATA_FILE+':\x20'+_0x4056d5);}}function remoteManifestOssPath(_0x4339ac){const _0x27aedb=a112_0x10a0;if(!_0x4339ac||typeof _0x4339ac!==_0x27aedb(0x7f)||Array[_0x27aedb(0x7a)](_0x4339ac))return undefined;const _0x59014d=_0x4339ac['ossPath'];return typeof _0x59014d===_0x27aedb(0x90)&&_0x59014d[_0x27aedb(0x8d)]()?_0x59014d['trim']():undefined;}
1
+ function a112_0x1f4c(_0x3fcd90,_0xc61c85){_0x3fcd90=_0x3fcd90-0x159;const _0x42b9ca=a112_0x42b9();let _0x1f4c02=_0x42b9ca[_0x3fcd90];return _0x1f4c02;}(function(_0x31f63d,_0x54282c){const _0x322ee0=a112_0x1f4c,_0x40d4c1=_0x31f63d();while(!![]){try{const _0x4bb501=-parseInt(_0x322ee0(0x173))/0x1+-parseInt(_0x322ee0(0x17e))/0x2*(-parseInt(_0x322ee0(0x165))/0x3)+parseInt(_0x322ee0(0x17c))/0x4*(parseInt(_0x322ee0(0x15c))/0x5)+parseInt(_0x322ee0(0x170))/0x6+parseInt(_0x322ee0(0x17b))/0x7*(-parseInt(_0x322ee0(0x15f))/0x8)+parseInt(_0x322ee0(0x168))/0x9*(-parseInt(_0x322ee0(0x161))/0xa)+parseInt(_0x322ee0(0x162))/0xb;if(_0x4bb501===_0x54282c)break;else _0x40d4c1['push'](_0x40d4c1['shift']());}catch(_0x5e5fde){_0x40d4c1['push'](_0x40d4c1['shift']());}}}(a112_0x42b9,0xd25b7));import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';function a112_0x42b9(){const _0x495db2=['parse','538205CZuqIr','personal','readonly','object','map','skillCode','trim','description','259ZnyDDI','130124IlEMSU','isArray','2tSbZvA','fromEntries','length','forkedFromVersion','225HbjgSe','utf8','status','239048ApdKuh','skillName','52890PYLRMC','5530932hsgiED','toISOString','path','53328gMPOSp','version','sourceSessionId','1458brRNAo','Invalid\x20','zipSize','Runtime\x20Skill\x20is\x20missing\x20skillCode.','hasUpstreamUpdate','manifest','tags','zipSha256','8266560DhutSP','validation'];a112_0x42b9=function(){return _0x495db2;};return a112_0x42b9();}import{fileContent,normalizeLocalFiles}from'./local-files.js';import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x3f0b95,_0x58c83f,_0x41398c,_0x48a11c,_0x3299ff,_0x156450,_0xe0b2e0){const _0x31c0e4=a112_0x1f4c,_0x214137=_0x156450?normalizeLocalFiles(_0x156450):[],_0x5f3e09=!_0xe0b2e0&&_0x214137['length']>0x0?buildSkillPackage(_0x214137):undefined,_0x4b85d6=_0xe0b2e0?bufferSha256(_0xe0b2e0):_0x5f3e09?.[_0x31c0e4(0x16d)][_0x31c0e4(0x16f)],_0x5e13b5=_0xe0b2e0?.[_0x31c0e4(0x15a)]??_0x5f3e09?.[_0x31c0e4(0x16d)][_0x31c0e4(0x16a)],_0x5ad909=_0x214137[_0x31c0e4(0x15a)]>0x0?Object[_0x31c0e4(0x159)](_0x214137[_0x31c0e4(0x177)](_0x4d4f4f=>[_0x4d4f4f[_0x31c0e4(0x164)],fileHash(_0x4d4f4f)])):undefined;return{'schemaVersion':_0x214137[_0x31c0e4(0x15a)]>0x0?0x2:0x1,'id':_0x3f0b95['id'],'appCode':_0x41398c,'skillCode':requireSkillCode(_0x3f0b95),'skillName':_0x3f0b95[_0x31c0e4(0x160)],'description':_0x3f0b95[_0x31c0e4(0x17a)],'scope':_0x58c83f,'readonly':_0x58c83f!==_0x31c0e4(0x174)||_0x3f0b95[_0x31c0e4(0x175)]===!![],'tenantCode':_0x3f0b95['tenantCode'],'userId':_0x3f0b95['userId'],'version':_0x3f0b95[_0x31c0e4(0x166)],'status':_0x3f0b95[_0x31c0e4(0x15e)],'tags':Array[_0x31c0e4(0x17d)](_0x3f0b95[_0x31c0e4(0x16e)])?_0x3f0b95[_0x31c0e4(0x16e)]:[],'hasUpstreamUpdate':_0x3f0b95[_0x31c0e4(0x16c)],'forkedFromSkillId':_0x3f0b95['forkedFromSkillId'],'forkedFromVersion':_0x3f0b95[_0x31c0e4(0x15b)],'sourceSessionId':_0x3f0b95[_0x31c0e4(0x167)],'contentHash':_0x48a11c,'fileHashes':_0x5ad909,'treeHash':_0x214137[_0x31c0e4(0x15a)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x214137)):undefined,'ossPath':remoteManifestOssPath(_0x3f0b95['files']),'zipSha256':_0x4b85d6,'zipSize':_0x5e13b5,'files':_0x214137[_0x31c0e4(0x15a)]>0x0?_0x214137[_0x31c0e4(0x177)](_0x1d7e60=>({'path':_0x1d7e60[_0x31c0e4(0x164)],'hash':fileHash(_0x1d7e60),'size':fileContent(_0x1d7e60)[_0x31c0e4(0x15a)]})):undefined,'pulledAt':_0x3299ff??new Date()[_0x31c0e4(0x163)]()};}export function requireSkillCode(_0x1f3ce4){const _0x3b7d47=a112_0x1f4c,_0x2cf928=_0x1f3ce4[_0x3b7d47(0x178)]?.[_0x3b7d47(0x179)]();if(!_0x2cf928)throw CliErrors[_0x3b7d47(0x171)](_0x3b7d47(0x16b));return _0x2cf928;}export function readMetadataIfPresent(_0x3521f9){const _0x1a9a93=a112_0x1f4c;if(!existsSync(_0x3521f9))return undefined;try{const _0x15835d=JSON[_0x1a9a93(0x172)](readFileSync(_0x3521f9,_0x1a9a93(0x15d)));return _0x15835d;}catch{throw CliErrors[_0x1a9a93(0x171)](_0x1a9a93(0x169)+METADATA_FILE+':\x20'+_0x3521f9);}}function remoteManifestOssPath(_0x46bd49){const _0x2431e4=a112_0x1f4c;if(!_0x46bd49||typeof _0x46bd49!==_0x2431e4(0x176)||Array[_0x2431e4(0x17d)](_0x46bd49))return undefined;const _0x345662=_0x46bd49['ossPath'];return typeof _0x345662==='string'&&_0x345662[_0x2431e4(0x179)]()?_0x345662[_0x2431e4(0x179)]():undefined;}
@@ -1 +1 @@
1
- const a113_0x7c33b6=a113_0x352e;(function(_0x5e3772,_0x26afcf){const _0xcd3e5a=a113_0x352e,_0x41ba42=_0x5e3772();while(!![]){try{const _0x2ba14a=-parseInt(_0xcd3e5a(0x20d))/0x1*(parseInt(_0xcd3e5a(0x1f2))/0x2)+parseInt(_0xcd3e5a(0x202))/0x3+parseInt(_0xcd3e5a(0x201))/0x4+-parseInt(_0xcd3e5a(0x206))/0x5+parseInt(_0xcd3e5a(0x20b))/0x6+-parseInt(_0xcd3e5a(0x204))/0x7*(-parseInt(_0xcd3e5a(0x205))/0x8)+-parseInt(_0xcd3e5a(0x1f1))/0x9;if(_0x2ba14a===_0x26afcf)break;else _0x41ba42['push'](_0x41ba42['shift']());}catch(_0x137368){_0x41ba42['push'](_0x41ba42['shift']());}}}(a113_0x192c,0x60807));import{existsSync}from'node:fs';import{homedir}from'node:os';function a113_0x192c(){const _0x1d4e6b=['includes','trim','validation','cacheRoot','CLAUDE_SKILL_ROOT','3134232XjbODG','648078ODOQWF','homeDirName','322FZxDMU','48088lNDZqw','2606245fgnolC','\x20for\x20local\x20path:\x20','skills','homeDir','.workbuddy','3390042tpMTxY','cache','437449RUXGnG','4384152grkXPs','2KBDvcv','claudeSkillsDir','.agents','Unsafe\x20','workbuddySkillsDir','agentsSkillsDir','skillCode','appCode','path\x20segment','filter'];a113_0x192c=function(){return _0x1d4e6b;};return a113_0x192c();}import{resolve}from'node:path';import{fingerprintAccessKey}from'../../commands/app/cache.js';import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0x19298b={}){const _0x559738=a113_0x352e,_0xf60af9=_0x19298b[_0x559738(0x209)]??homedir(),_0xf110a1=resolve(_0xf60af9,PRODUCT_CONFIG[_0x559738(0x203)],_0x559738(0x20c)),_0x2df224=trimmedEnv('SKILL_ROOT'),_0x5468b5=trimmedEnv(_0x559738(0x200)),_0x5b2e3f=resolve(_0xf60af9,_0x559738(0x20a)),_0x93de2b=_0x19298b['workbuddySkillsDir']??(existsSync(_0x5b2e3f)?resolve(_0x5b2e3f,'skills'):undefined);return{'homeDir':_0xf60af9,'cacheRoot':_0xf110a1,'managedRoot':resolve(_0xf60af9,PRODUCT_CONFIG[_0x559738(0x203)]),'agentsSkillsDir':_0x19298b[_0x559738(0x1f7)]??_0x2df224??resolve(_0xf60af9,_0x559738(0x1f4),_0x559738(0x208)),'claudeSkillsDir':_0x19298b[_0x559738(0x1f3)]??_0x5468b5??resolve(_0xf60af9,'.claude',_0x559738(0x208)),'workbuddySkillsDir':_0x93de2b};}export function runtimeAgentSkillRoots(_0x14431a){const _0x1121f9=a113_0x352e;return[_0x14431a[_0x1121f9(0x1f7)],_0x14431a[_0x1121f9(0x1f3)],_0x14431a[_0x1121f9(0x1f6)]][_0x1121f9(0x1fb)](_0x3151d8=>Boolean(_0x3151d8));}export function getRuntimeSkillCacheRoot(_0xd4f7d4,_0x326428,_0x16065f={}){const _0x2cbf10=a113_0x352e,_0x5c04af=resolveSkillSyncPaths(_0x16065f);return resolve(_0x5c04af[_0x2cbf10(0x1ff)],_0xd4f7d4,fingerprintAccessKey(_0x326428),_0x2cbf10(0x208));}function a113_0x352e(_0x30b1f0,_0x3efd18){_0x30b1f0=_0x30b1f0-0x1f1;const _0x192cca=a113_0x192c();let _0x352e8f=_0x192cca[_0x30b1f0];return _0x352e8f;}export function getRuntimeSkillDir(_0x4792ba,_0x40d374,_0x20d780,_0x3369f7,_0x115bc9,_0x512c4a={}){const _0x4f8fc8=a113_0x352e;return resolve(getRuntimeSkillCacheRoot(_0x4792ba,_0x40d374,_0x512c4a),safePathSegment(_0x20d780,_0x4f8fc8(0x1f9)),_0x3369f7,safePathSegment(_0x115bc9,_0x4f8fc8(0x1f8)));}export function safePathSegment(_0x43b544,_0x15fc60=a113_0x7c33b6(0x1fa)){const _0x456d49=a113_0x7c33b6;if(!_0x43b544||_0x43b544[_0x456d49(0x1fc)]('/')||_0x43b544[_0x456d49(0x1fc)]('\x5c')||_0x43b544[_0x456d49(0x1fc)]('..'))throw CliErrors[_0x456d49(0x1fe)](_0x456d49(0x1f5)+_0x15fc60+_0x456d49(0x207)+_0x43b544);return _0x43b544;}function trimmedEnv(_0x412d16){const _0x99f728=a113_0x7c33b6,_0x1a5a25=productEnv(_0x412d16)?.[_0x99f728(0x1fd)]();return _0x1a5a25?_0x1a5a25:undefined;}
1
+ const a113_0x73ddff=a113_0x18ca;(function(_0x11a0bb,_0x3c87ad){const _0x481de3=a113_0x18ca,_0x887436=_0x11a0bb();while(!![]){try{const _0xfe109a=-parseInt(_0x481de3(0x12a))/0x1+-parseInt(_0x481de3(0x12c))/0x2*(parseInt(_0x481de3(0x142))/0x3)+-parseInt(_0x481de3(0x13f))/0x4+parseInt(_0x481de3(0x132))/0x5*(-parseInt(_0x481de3(0x138))/0x6)+parseInt(_0x481de3(0x12f))/0x7+-parseInt(_0x481de3(0x143))/0x8*(parseInt(_0x481de3(0x139))/0x9)+parseInt(_0x481de3(0x136))/0xa;if(_0xfe109a===_0x3c87ad)break;else _0x887436['push'](_0x887436['shift']());}catch(_0x3b6979){_0x887436['push'](_0x887436['shift']());}}}(a113_0x39ab,0x2f42b));import{existsSync}from'node:fs';import{homedir}from'node:os';import{resolve}from'node:path';import{fingerprintAccessKey}from'../../commands/app/cache.js';import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0x3a8145={}){const _0x350c7e=a113_0x18ca,_0x548cdb=_0x3a8145[_0x350c7e(0x140)]??homedir(),_0x516288=resolve(_0x548cdb,PRODUCT_CONFIG['homeDirName'],_0x350c7e(0x13d)),_0x46fada=trimmedEnv(_0x350c7e(0x13c)),_0x3b5807=trimmedEnv('CLAUDE_SKILL_ROOT'),_0x5e6ad3=resolve(_0x548cdb,_0x350c7e(0x13a)),_0x3c33c2=_0x3a8145[_0x350c7e(0x141)]??(existsSync(_0x5e6ad3)?resolve(_0x5e6ad3,_0x350c7e(0x137)):undefined);return{'homeDir':_0x548cdb,'cacheRoot':_0x516288,'managedRoot':resolve(_0x548cdb,PRODUCT_CONFIG[_0x350c7e(0x134)]),'agentsSkillsDir':_0x3a8145['agentsSkillsDir']??_0x46fada??resolve(_0x548cdb,_0x350c7e(0x133),_0x350c7e(0x137)),'claudeSkillsDir':_0x3a8145['claudeSkillsDir']??_0x3b5807??resolve(_0x548cdb,'.claude',_0x350c7e(0x137)),'workbuddySkillsDir':_0x3c33c2};}export function runtimeAgentSkillRoots(_0x2185dd){const _0x371156=a113_0x18ca;return[_0x2185dd['agentsSkillsDir'],_0x2185dd[_0x371156(0x12d)],_0x2185dd['workbuddySkillsDir']][_0x371156(0x13e)](_0x4518ad=>Boolean(_0x4518ad));}export function getRuntimeSkillCacheRoot(_0x16a2bf,_0xccd587,_0x47ca89={}){const _0x391f6e=a113_0x18ca,_0xad3600=resolveSkillSyncPaths(_0x47ca89);return resolve(_0xad3600[_0x391f6e(0x135)],_0x16a2bf,fingerprintAccessKey(_0xccd587),_0x391f6e(0x137));}export function getRuntimeSkillDir(_0x33d41c,_0x461db2,_0x3d6a75,_0xbbe70a,_0x353d1f,_0x4109b1={}){const _0x18fa0f=a113_0x18ca;return resolve(getRuntimeSkillCacheRoot(_0x33d41c,_0x461db2,_0x4109b1),safePathSegment(_0x3d6a75,'appCode'),_0xbbe70a,safePathSegment(_0x353d1f,_0x18fa0f(0x144)));}export function safePathSegment(_0x127773,_0x157a33=a113_0x73ddff(0x130)){const _0x43f76e=a113_0x73ddff;if(!_0x127773||_0x127773[_0x43f76e(0x13b)]('/')||_0x127773[_0x43f76e(0x13b)]('\x5c')||_0x127773['includes']('..'))throw CliErrors[_0x43f76e(0x131)](_0x43f76e(0x12e)+_0x157a33+_0x43f76e(0x12b)+_0x127773);return _0x127773;}function trimmedEnv(_0x273b00){const _0x5e1e7e=a113_0x73ddff,_0x15625f=productEnv(_0x273b00)?.[_0x5e1e7e(0x145)]();return _0x15625f?_0x15625f:undefined;}function a113_0x18ca(_0x58e27c,_0x4d794c){_0x58e27c=_0x58e27c-0x12a;const _0x39ab92=a113_0x39ab();let _0x18cade=_0x39ab92[_0x58e27c];return _0x18cade;}function a113_0x39ab(){const _0x2a73cc=['cacheRoot','8811710JJREAa','skills','1152VJckOu','155619lNKvZi','.workbuddy','includes','SKILL_ROOT','cache','filter','28704hHMTOJ','homeDir','workbuddySkillsDir','263481KcvyvE','32BZqgmB','skillCode','trim','311810NGCBfk','\x20for\x20local\x20path:\x20','4jEfLCd','claudeSkillsDir','Unsafe\x20','1017772BwCVOi','path\x20segment','validation','7010WPZTqq','.agents','homeDirName'];a113_0x39ab=function(){return _0x2a73cc;};return a113_0x39ab();}
@@ -1 +1 @@
1
- (function(_0x51263e,_0x337de0){const _0x2e2af7=a114_0x5752,_0x5aaf83=_0x51263e();while(!![]){try{const _0x1a7756=parseInt(_0x2e2af7(0x12a))/0x1+parseInt(_0x2e2af7(0x120))/0x2+parseInt(_0x2e2af7(0x12f))/0x3+parseInt(_0x2e2af7(0x12e))/0x4*(-parseInt(_0x2e2af7(0x12b))/0x5)+parseInt(_0x2e2af7(0x123))/0x6+-parseInt(_0x2e2af7(0x11c))/0x7+parseInt(_0x2e2af7(0x130))/0x8;if(_0x1a7756===_0x337de0)break;else _0x5aaf83['push'](_0x5aaf83['shift']());}catch(_0x5160a8){_0x5aaf83['push'](_0x5aaf83['shift']());}}}(a114_0x3c97,0x19922));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a114_0x42a53a}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{writeJsonAtomic}from'./fs-utils.js';import{contentHash}from'./hashing.js';import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';import{buildMetadata,readMetadataIfPresent}from'./metadata.js';import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0x13dd33,_0x1940ec,_0xa3e637={}){const _0x43d9bd=a114_0x5752,_0x11c18c=resolvePushDirectoryRoot(_0x13dd33),_0x22e894=readPushMetadataIfPresent(resolve(_0x11c18c,METADATA_FILE),{'ignoreInvalidMetadata':_0xa3e637[_0x43d9bd(0x157)]});if(_0x22e894?.[_0x43d9bd(0x137)]&&_0x22e894[_0x43d9bd(0x137)]!==_0x1940ec&&!_0xa3e637[_0x43d9bd(0x13d)]&&!_0xa3e637['ignoreMetadataAppCodeMismatch'])throw CliErrors['validation'](_0x43d9bd(0x144)+_0x22e894['appCode']+_0x43d9bd(0x149)+_0x1940ec+'\x22.');const _0x31d391=resolvePushSkillCode(_0x11c18c,_0x1940ec,_0x22e894,_0xa3e637);if(!_0x31d391)throw CliErrors[_0x43d9bd(0x121)](_0x43d9bd(0x154)+SKILL_FILE+',\x20'+METADATA_FILE+_0x43d9bd(0x129));return{'dir':_0x11c18c,'skillCode':_0x31d391,'metadata':_0x22e894};}export function readPushDirectory(_0x44b154,_0x2a4652,_0x375d5d={}){const _0x393cad=a114_0x5752,_0x45a639=resolvePushDirectoryIdentity(_0x44b154,_0x2a4652,_0x375d5d),_0x2ec1a7=_0x45a639[_0x393cad(0x14a)],_0x9c9c85=resolve(_0x2ec1a7,SKILL_FILE);if(!existsSync(_0x9c9c85)||!lstatSync(_0x9c9c85)[_0x393cad(0x148)]())throw CliErrors['validation'](_0x393cad(0x14e)+SKILL_FILE+':\x20'+_0x9c9c85);const _0x4e51d2=_0x45a639['metadata'],_0x861377=_0x375d5d[_0x393cad(0x12c)]??'personal';if(!_0x375d5d[_0x393cad(0x13a)]&&_0x4e51d2?.['scope']===_0x393cad(0x142))throw CliErrors[_0x393cad(0x121)](_0x393cad(0x138)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x4e51d2['scope']+'\x22.');if(!_0x375d5d[_0x393cad(0x13a)]&&_0x861377===_0x393cad(0x136)&&_0x4e51d2?.['scope']&&_0x4e51d2[_0x393cad(0x156)]!==_0x393cad(0x136))throw CliErrors['validation'](_0x393cad(0x159)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x4e51d2[_0x393cad(0x156)]+'\x22.',_0x393cad(0x124)+_0x2ec1a7+_0x393cad(0x133));const _0x275e09=scanSkillDirectory(_0x2ec1a7),_0x1a7f2c=buildSkillPackage(_0x275e09),_0x1900b5=readFileSync(_0x9c9c85,'utf8'),_0x328548=_0x45a639[_0x393cad(0x131)],_0x186485=_0x375d5d[_0x393cad(0x14f)]?undefined:_0x4e51d2,_0x369218=readSkillDisplayName(_0x1900b5);return{'skillCode':_0x328548,'metadata':_0x4e51d2,'frontmatterDisplayName':_0x369218,'input':{'skillCode':_0x328548,'skillName':_0x369218??_0x186485?.[_0x393cad(0x122)],'description':_0x186485?.['description'],'content':_0x1900b5,'files':_0x1a7f2c[_0x393cad(0x145)],'packageBase64':_0x1a7f2c[_0x393cad(0x15a)],'tags':_0x186485?.['tags'],'version':_0x186485?.[_0x393cad(0x12d)],'sourceSessionId':_0x186485?.['sourceSessionId']}};}export function refreshPushDirectoryMetadataFromRemote(_0x8125ba,_0x2b43f0,_0x36b504,_0x2fb23c={}){const _0x223340=a114_0x5752,_0x30b7fb=resolvePushDirectoryRoot(_0x8125ba),_0x3dd30e=readPushMetadataIfPresent(resolve(_0x30b7fb,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x5733d7=requireRemoteScope(_0x2b43f0),_0x4014d3=readLocalSkillContent(_0x30b7fb),_0x25e563={..._0x2b43f0,'appCode':_0x2b43f0[_0x223340(0x137)]??_0x36b504,'skillName':_0x2b43f0['skillName']??_0x3dd30e?.[_0x223340(0x122)],'description':_0x2b43f0[_0x223340(0x155)]??_0x3dd30e?.[_0x223340(0x155)],'tags':Array[_0x223340(0x153)](_0x2b43f0[_0x223340(0x151)])?_0x2b43f0[_0x223340(0x151)]:_0x3dd30e?.['tags'],'sourceSessionId':_0x2b43f0['sourceSessionId']??_0x3dd30e?.[_0x223340(0x13e)],'content':_0x2b43f0[_0x223340(0x14c)]??_0x4014d3},_0x398efa=buildMetadata(_0x25e563,_0x5733d7,_0x36b504,contentHash(_0x4014d3),_0x2fb23c['refreshedAt']);writeJsonAtomic(resolve(_0x30b7fb,METADATA_FILE),_0x398efa);}export function recordPushedRuntimeSkill(_0x52c7c0,_0x4bc2b9,_0x546bed,_0x2b22cc={}){const _0x2cef67=a114_0x5752,_0x51d2d0=resolvePushDirectoryRoot(_0x52c7c0),_0x1cebc7=scanSkillDirectory(_0x51d2d0),_0x54ba16=_0x1cebc7[_0x2cef67(0x128)](_0x5ae64b=>_0x5ae64b[_0x2cef67(0x150)]===SKILL_FILE),_0x16692d=_0x54ba16?fileText(_0x54ba16):'',_0x37178f=tryNormalizePackageManifest(_0x4bc2b9['files']),_0x566e19={..._0x4bc2b9,'content':_0x4bc2b9[_0x2cef67(0x14c)]??_0x16692d,'files':_0x37178f},_0x30c2bd=_0x37178f?normalizeLocalFiles(_0x1cebc7)[_0x2cef67(0x11e)](_0x4e8565=>_0x37178f['files'][_0x2cef67(0x126)](_0x146688=>_0x146688[_0x2cef67(0x150)]===_0x4e8565[_0x2cef67(0x150)])):undefined,_0x2f30ac=buildMetadata(_0x566e19,_0x2b22cc['scope']??_0x2cef67(0x136),_0x546bed,contentHash(_0x566e19[_0x2cef67(0x14c)]??''),_0x2b22cc[_0x2cef67(0x134)],_0x30c2bd);writeJsonAtomic(resolve(_0x51d2d0,METADATA_FILE),_0x2f30ac);}export function deriveSkillCodeFromDirectory(_0x3d15e7,_0x329b8a){const _0x22ad12=a114_0x5752,_0x3c9e15=basename(resolve(_0x3d15e7)),_0x86205b=_0x329b8a+'--';return _0x3c9e15[_0x22ad12(0x146)](_0x86205b)?_0x3c9e15[_0x22ad12(0x125)](_0x86205b[_0x22ad12(0x13f)]):_0x3c9e15;}function resolvePushSkillCode(_0x6d9c8b,_0x1e20af,_0x592f7d,_0x3e09c5){const _0x5211ec=a114_0x5752,_0x39a0a5=deriveSkillCodeFromSkillFile(_0x6d9c8b)||deriveSkillCodeFromDirectory(_0x6d9c8b,_0x1e20af);if(_0x3e09c5[_0x5211ec(0x147)])return _0x39a0a5;return _0x592f7d?.[_0x5211ec(0x131)]?.[_0x5211ec(0x11f)]()||_0x39a0a5;}function a114_0x3c97(){const _0x2c0460=['\x20to\x20submit\x20company\x20Skills\x20for\x20review.','pushedAt','\x20name\x20for\x20SkillHub\x20slug\x20generation.','personal','appCode','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','boolean','ignoreMetadataScope','replace','match','allowAppCodeRetarget','sourceSessionId','length','number','Invalid\x20','builtin','Skill\x20directory\x20not\x20found:\x20','Skill\x20metadata\x20appCode\x20\x22','manifest','startsWith','ignoreMetadataSkillCode','isFile','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','dir','isSymbolicLink','content','utf8','Missing\x20','ignoreMetadataForPayload','path','tags','unknown','isArray','Unable\x20to\x20resolve\x20skillCode\x20from\x20','description','scope','ignoreInvalidMetadata','\x20has\x20unsupported\x20scope\x20\x22','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','packageBase64','1450589xpvIXb','toLowerCase','filter','trim','58348ujTHRo','validation','skillName','103428OgNlwJ','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','slice','some','object','find',',\x20or\x20directory\x20name.','108146bwcrMr','758630igYhfU','targetScope','version','4HsjRrT','207123WacyED','1920736abgOOZ','skillCode','(unknown)'];a114_0x3c97=function(){return _0x2c0460;};return a114_0x3c97();}function deriveSkillCodeFromSkillFile(_0xbaa46){const _0x1a012d=a114_0x5752,_0x49e470=resolve(_0xbaa46,SKILL_FILE);if(!existsSync(_0x49e470)||!lstatSync(_0x49e470)['isFile']())return undefined;const _0x245095=readFileSync(_0x49e470,_0x1a012d(0x14d)),_0x441db4=_0x245095[_0x1a012d(0x13c)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x441db4)return undefined;const _0x1c9712=parseFrontmatterObject(_0x441db4[0x1]??''),_0x3e6c0d=scalarToString(_0x1c9712?.['name']);return _0x3e6c0d?slugifySkillName(_0x3e6c0d):undefined;}function a114_0x5752(_0x1da12f,_0x787e4a){_0x1da12f=_0x1da12f-0x11c;const _0x3c97de=a114_0x3c97();let _0x5752d7=_0x3c97de[_0x1da12f];return _0x5752d7;}function readSkillDisplayName(_0x34ce5c){const _0x56250e=a114_0x5752,_0x46bf59=_0x34ce5c[_0x56250e(0x13c)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x46bf59)return undefined;const _0x244127=parseFrontmatterObject(_0x46bf59[0x1]??'');return scalarToString(_0x244127?.['displayName']);}function slugifySkillName(_0x4e7bee){const _0x630088=a114_0x5752,_0x34f08d=_0x4e7bee['trim']()[_0x630088(0x11d)]()['replace'](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x630088(0x13b)](/^-+/,'')['replace'](/-+$/,'')['replace'](/-{2,}/g,'-');if(!_0x34f08d)throw CliErrors[_0x630088(0x121)](_0x630088(0x141)+SKILL_FILE+_0x630088(0x135));return _0x34f08d;}function parseFrontmatterObject(_0x130c11){const _0x4b24aa=a114_0x5752;try{const _0x2478d4=a114_0x42a53a(_0x130c11);return _0x2478d4&&typeof _0x2478d4===_0x4b24aa(0x127)&&!Array[_0x4b24aa(0x153)](_0x2478d4)?_0x2478d4:undefined;}catch{return undefined;}}function scalarToString(_0x582c72){const _0xa7f7c2=a114_0x5752;if(typeof _0x582c72==='string')return _0x582c72[_0xa7f7c2(0x11f)]();if(typeof _0x582c72===_0xa7f7c2(0x140)||typeof _0x582c72===_0xa7f7c2(0x139))return String(_0x582c72);return undefined;}function resolvePushDirectoryRoot(_0x3f42ab){const _0x2c9b6c=a114_0x5752,_0x414d0c=resolve(_0x3f42ab);if(!existsSync(_0x414d0c))throw CliErrors[_0x2c9b6c(0x121)](_0x2c9b6c(0x143)+_0x3f42ab);const _0x9c101e=lstatSync(_0x414d0c);if(_0x9c101e['isDirectory']())return _0x414d0c;if(_0x9c101e[_0x2c9b6c(0x14b)]()){const _0x5f2c14=realpathSync(_0x414d0c);if(lstatSync(_0x5f2c14)['isDirectory']())return _0x5f2c14;}throw CliErrors['validation'](_0x2c9b6c(0x143)+_0x3f42ab);}function requireRemoteScope(_0x5606ca){const _0x3c2b57=a114_0x5752;if(_0x5606ca[_0x3c2b57(0x156)]===_0x3c2b57(0x136)||_0x5606ca[_0x3c2b57(0x156)]==='company'||_0x5606ca['scope']===_0x3c2b57(0x142))return _0x5606ca[_0x3c2b57(0x156)];throw CliErrors[_0x3c2b57(0x121)]('Remote\x20Skill\x20'+(_0x5606ca['skillCode']||_0x3c2b57(0x132))+_0x3c2b57(0x158)+(_0x5606ca[_0x3c2b57(0x156)]??_0x3c2b57(0x152))+'\x22.');}function readLocalSkillContent(_0x571ff2){const _0x228256=a114_0x5752,_0x3a33bc=resolve(_0x571ff2,SKILL_FILE);return existsSync(_0x3a33bc)&&lstatSync(_0x3a33bc)[_0x228256(0x148)]()?readFileSync(_0x3a33bc,_0x228256(0x14d)):'';}function readPushMetadataIfPresent(_0x4423e2,_0x42b17f={}){try{return readMetadataIfPresent(_0x4423e2);}catch(_0x42ecb0){if(_0x42b17f['ignoreInvalidMetadata'])return undefined;throw _0x42ecb0;}}
1
+ (function(_0x403638,_0x2a9485){const _0x5289e5=a114_0x1f86,_0x49b307=_0x403638();while(!![]){try{const _0x45e98a=-parseInt(_0x5289e5(0x113))/0x1+-parseInt(_0x5289e5(0x142))/0x2+parseInt(_0x5289e5(0x121))/0x3+-parseInt(_0x5289e5(0x111))/0x4+parseInt(_0x5289e5(0x134))/0x5*(-parseInt(_0x5289e5(0x11a))/0x6)+parseInt(_0x5289e5(0x143))/0x7+parseInt(_0x5289e5(0x141))/0x8;if(_0x45e98a===_0x2a9485)break;else _0x49b307['push'](_0x49b307['shift']());}catch(_0x1c7766){_0x49b307['push'](_0x49b307['shift']());}}}(a114_0x4042,0x4e708));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a114_0x54f183}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{writeJsonAtomic}from'./fs-utils.js';import{contentHash}from'./hashing.js';import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';import{buildMetadata,readMetadataIfPresent}from'./metadata.js';import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0x3fa252,_0x77a0e6,_0x1b076a={}){const _0x439239=a114_0x1f86,_0x2ed683=resolvePushDirectoryRoot(_0x3fa252),_0x214204=readPushMetadataIfPresent(resolve(_0x2ed683,METADATA_FILE),{'ignoreInvalidMetadata':_0x1b076a['ignoreInvalidMetadata']});if(_0x214204?.['appCode']&&_0x214204[_0x439239(0x11b)]!==_0x77a0e6&&!_0x1b076a[_0x439239(0x136)]&&!_0x1b076a[_0x439239(0x129)])throw CliErrors['validation']('Skill\x20metadata\x20appCode\x20\x22'+_0x214204[_0x439239(0x11b)]+'\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22'+_0x77a0e6+'\x22.');const _0x2fc96c=resolvePushSkillCode(_0x2ed683,_0x77a0e6,_0x214204,_0x1b076a);if(!_0x2fc96c)throw CliErrors[_0x439239(0x147)]('Unable\x20to\x20resolve\x20skillCode\x20from\x20'+SKILL_FILE+',\x20'+METADATA_FILE+',\x20or\x20directory\x20name.');return{'dir':_0x2ed683,'skillCode':_0x2fc96c,'metadata':_0x214204};}export function readPushDirectory(_0xb0dad1,_0x9b34da,_0x48691f={}){const _0x5c7a3d=a114_0x1f86,_0x3d1321=resolvePushDirectoryIdentity(_0xb0dad1,_0x9b34da,_0x48691f),_0x5d66a6=_0x3d1321[_0x5c7a3d(0x13d)],_0x3f3a54=resolve(_0x5d66a6,SKILL_FILE);if(!existsSync(_0x3f3a54)||!lstatSync(_0x3f3a54)[_0x5c7a3d(0x10f)]())throw CliErrors['validation'](_0x5c7a3d(0x12b)+SKILL_FILE+':\x20'+_0x3f3a54);const _0x217aee=_0x3d1321[_0x5c7a3d(0x126)],_0x7c96cb=_0x48691f[_0x5c7a3d(0x112)]??_0x5c7a3d(0x13c);if(!_0x48691f[_0x5c7a3d(0x137)]&&_0x217aee?.['scope']===_0x5c7a3d(0x145))throw CliErrors[_0x5c7a3d(0x147)](_0x5c7a3d(0x131)+METADATA_FILE+_0x5c7a3d(0x116)+_0x217aee[_0x5c7a3d(0x139)]+'\x22.');if(!_0x48691f['ignoreMetadataScope']&&_0x7c96cb===_0x5c7a3d(0x13c)&&_0x217aee?.['scope']&&_0x217aee[_0x5c7a3d(0x139)]!==_0x5c7a3d(0x13c))throw CliErrors[_0x5c7a3d(0x147)](_0x5c7a3d(0x144)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x217aee[_0x5c7a3d(0x139)]+'\x22.',_0x5c7a3d(0x12f)+_0x5d66a6+_0x5c7a3d(0x127));const _0x387325=scanSkillDirectory(_0x5d66a6),_0x23e2bc=buildSkillPackage(_0x387325),_0x490ab4=readFileSync(_0x3f3a54,_0x5c7a3d(0x123)),_0xbc9c48=_0x3d1321[_0x5c7a3d(0x11f)],_0x36e555=_0x48691f[_0x5c7a3d(0x13e)]?undefined:_0x217aee,_0x4703f1=readSkillDisplayName(_0x490ab4);return{'skillCode':_0xbc9c48,'metadata':_0x217aee,'frontmatterDisplayName':_0x4703f1,'input':{'skillCode':_0xbc9c48,'skillName':_0x4703f1??_0x36e555?.[_0x5c7a3d(0x10c)],'description':_0x36e555?.[_0x5c7a3d(0x12a)],'content':_0x490ab4,'files':_0x23e2bc['manifest'],'packageBase64':_0x23e2bc[_0x5c7a3d(0x132)],'tags':_0x36e555?.[_0x5c7a3d(0x12c)],'version':_0x36e555?.[_0x5c7a3d(0x115)],'sourceSessionId':_0x36e555?.[_0x5c7a3d(0x119)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x3f9b5f,_0x5551fd,_0x51306c,_0x20568c={}){const _0x3ffe02=a114_0x1f86,_0x259997=resolvePushDirectoryRoot(_0x3f9b5f),_0x59fec4=readPushMetadataIfPresent(resolve(_0x259997,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x5eec8a=requireRemoteScope(_0x5551fd),_0x59feb8=readLocalSkillContent(_0x259997),_0x7f37dc={..._0x5551fd,'appCode':_0x5551fd[_0x3ffe02(0x11b)]??_0x51306c,'skillName':_0x5551fd[_0x3ffe02(0x10c)]??_0x59fec4?.[_0x3ffe02(0x10c)],'description':_0x5551fd[_0x3ffe02(0x12a)]??_0x59fec4?.[_0x3ffe02(0x12a)],'tags':Array[_0x3ffe02(0x146)](_0x5551fd[_0x3ffe02(0x12c)])?_0x5551fd[_0x3ffe02(0x12c)]:_0x59fec4?.[_0x3ffe02(0x12c)],'sourceSessionId':_0x5551fd[_0x3ffe02(0x119)]??_0x59fec4?.[_0x3ffe02(0x119)],'content':_0x5551fd[_0x3ffe02(0x149)]??_0x59feb8},_0x52f1ad=buildMetadata(_0x7f37dc,_0x5eec8a,_0x51306c,contentHash(_0x59feb8),_0x20568c['refreshedAt']);writeJsonAtomic(resolve(_0x259997,METADATA_FILE),_0x52f1ad);}export function recordPushedRuntimeSkill(_0x10b61b,_0x51220b,_0x253025,_0x34513f={}){const _0x55e7ce=a114_0x1f86,_0x41d502=resolvePushDirectoryRoot(_0x10b61b),_0x45bfee=scanSkillDirectory(_0x41d502),_0x4392fe=_0x45bfee[_0x55e7ce(0x12e)](_0x2a8e8f=>_0x2a8e8f[_0x55e7ce(0x10d)]===SKILL_FILE),_0x813e96=_0x4392fe?fileText(_0x4392fe):'',_0x16a9fa=tryNormalizePackageManifest(_0x51220b['files']),_0x1316fb={..._0x51220b,'content':_0x51220b[_0x55e7ce(0x149)]??_0x813e96,'files':_0x16a9fa},_0xc6f1e1=_0x16a9fa?normalizeLocalFiles(_0x45bfee)[_0x55e7ce(0x122)](_0x109b1d=>_0x16a9fa[_0x55e7ce(0x114)][_0x55e7ce(0x133)](_0x2fe565=>_0x2fe565[_0x55e7ce(0x10d)]===_0x109b1d[_0x55e7ce(0x10d)])):undefined,_0x486b4d=buildMetadata(_0x1316fb,_0x34513f[_0x55e7ce(0x139)]??_0x55e7ce(0x13c),_0x253025,contentHash(_0x1316fb[_0x55e7ce(0x149)]??''),_0x34513f['pushedAt'],_0xc6f1e1);writeJsonAtomic(resolve(_0x41d502,METADATA_FILE),_0x486b4d);}export function deriveSkillCodeFromDirectory(_0x2e5867,_0x1b2651){const _0x302c6f=a114_0x1f86,_0x3f9871=basename(resolve(_0x2e5867)),_0x3f5801=_0x1b2651+'--';return _0x3f9871[_0x302c6f(0x117)](_0x3f5801)?_0x3f9871[_0x302c6f(0x128)](_0x3f5801[_0x302c6f(0x13b)]):_0x3f9871;}function resolvePushSkillCode(_0x3c7ba9,_0x58e7c9,_0x12436d,_0x3377de){const _0x5bdf78=a114_0x1f86,_0x1cc241=deriveSkillCodeFromSkillFile(_0x3c7ba9)||deriveSkillCodeFromDirectory(_0x3c7ba9,_0x58e7c9);if(_0x3377de[_0x5bdf78(0x12d)])return _0x1cc241;return _0x12436d?.['skillCode']?.[_0x5bdf78(0x124)]()||_0x1cc241;}function deriveSkillCodeFromSkillFile(_0x4cb98a){const _0x2420fe=a114_0x1f86,_0x5558f3=resolve(_0x4cb98a,SKILL_FILE);if(!existsSync(_0x5558f3)||!lstatSync(_0x5558f3)[_0x2420fe(0x10f)]())return undefined;const _0x4499b7=readFileSync(_0x5558f3,'utf8'),_0x9212e5=_0x4499b7['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x9212e5)return undefined;const _0x51eae0=parseFrontmatterObject(_0x9212e5[0x1]??''),_0x2b25ca=scalarToString(_0x51eae0?.[_0x2420fe(0x10b)]);return _0x2b25ca?slugifySkillName(_0x2b25ca):undefined;}function readSkillDisplayName(_0x589b2d){const _0x5a6acb=a114_0x1f86,_0x431a65=_0x589b2d[_0x5a6acb(0x138)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x431a65)return undefined;const _0x193acb=parseFrontmatterObject(_0x431a65[0x1]??'');return scalarToString(_0x193acb?.[_0x5a6acb(0x148)]);}function slugifySkillName(_0x4c2994){const _0x329110=a114_0x1f86,_0x4140e0=_0x4c2994['trim']()['toLowerCase']()[_0x329110(0x118)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x329110(0x118)](/^-+/,'')['replace'](/-+$/,'')[_0x329110(0x118)](/-{2,}/g,'-');if(!_0x4140e0)throw CliErrors[_0x329110(0x147)](_0x329110(0x11d)+SKILL_FILE+_0x329110(0x135));return _0x4140e0;}function a114_0x4042(){const _0x5f2e8f=['skillName','path','boolean','isFile','isDirectory','118980LAuYrL','targetScope','87540lUJChZ','files','version','\x20has\x20scope=\x22','startsWith','replace','sourceSessionId','12954hpZSNt','appCode','unknown','Invalid\x20','isSymbolicLink','skillCode','(unknown)','1624278XBwDVv','filter','utf8','trim','object','metadata','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','slice','ignoreMetadataAppCodeMismatch','description','Missing\x20','tags','ignoreMetadataSkillCode','find','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','Remote\x20Skill\x20','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','packageBase64','some','515gzuYVt','\x20name\x20for\x20SkillHub\x20slug\x20generation.','allowAppCodeRetarget','ignoreMetadataScope','match','scope','\x20has\x20unsupported\x20scope\x20\x22','length','personal','dir','ignoreMetadataForPayload','company','Skill\x20directory\x20not\x20found:\x20','1023424OtuYSs','20298KyvQwU','12215KnWXeF','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','builtin','isArray','validation','displayName','content','name'];a114_0x4042=function(){return _0x5f2e8f;};return a114_0x4042();}function parseFrontmatterObject(_0x331d90){const _0x599c98=a114_0x1f86;try{const _0x137606=a114_0x54f183(_0x331d90);return _0x137606&&typeof _0x137606===_0x599c98(0x125)&&!Array['isArray'](_0x137606)?_0x137606:undefined;}catch{return undefined;}}function scalarToString(_0x2cf987){const _0x3a7f0f=a114_0x1f86;if(typeof _0x2cf987==='string')return _0x2cf987[_0x3a7f0f(0x124)]();if(typeof _0x2cf987==='number'||typeof _0x2cf987===_0x3a7f0f(0x10e))return String(_0x2cf987);return undefined;}function a114_0x1f86(_0x2a9d5b,_0x31257c){_0x2a9d5b=_0x2a9d5b-0x10b;const _0x4042e8=a114_0x4042();let _0x1f861a=_0x4042e8[_0x2a9d5b];return _0x1f861a;}function resolvePushDirectoryRoot(_0x189d51){const _0x865960=a114_0x1f86,_0x55aca2=resolve(_0x189d51);if(!existsSync(_0x55aca2))throw CliErrors[_0x865960(0x147)]('Skill\x20directory\x20not\x20found:\x20'+_0x189d51);const _0x444f16=lstatSync(_0x55aca2);if(_0x444f16[_0x865960(0x110)]())return _0x55aca2;if(_0x444f16[_0x865960(0x11e)]()){const _0x31f41b=realpathSync(_0x55aca2);if(lstatSync(_0x31f41b)[_0x865960(0x110)]())return _0x31f41b;}throw CliErrors['validation'](_0x865960(0x140)+_0x189d51);}function requireRemoteScope(_0x5136fc){const _0x131ce3=a114_0x1f86;if(_0x5136fc['scope']===_0x131ce3(0x13c)||_0x5136fc[_0x131ce3(0x139)]===_0x131ce3(0x13f)||_0x5136fc[_0x131ce3(0x139)]===_0x131ce3(0x145))return _0x5136fc[_0x131ce3(0x139)];throw CliErrors[_0x131ce3(0x147)](_0x131ce3(0x130)+(_0x5136fc[_0x131ce3(0x11f)]||_0x131ce3(0x120))+_0x131ce3(0x13a)+(_0x5136fc[_0x131ce3(0x139)]??_0x131ce3(0x11c))+'\x22.');}function readLocalSkillContent(_0x215fd9){const _0x411438=a114_0x1f86,_0x36b70a=resolve(_0x215fd9,SKILL_FILE);return existsSync(_0x36b70a)&&lstatSync(_0x36b70a)['isFile']()?readFileSync(_0x36b70a,_0x411438(0x123)):'';}function readPushMetadataIfPresent(_0x3db8f8,_0x592e31={}){try{return readMetadataIfPresent(_0x3db8f8);}catch(_0x1afb9b){if(_0x592e31['ignoreInvalidMetadata'])return undefined;throw _0x1afb9b;}}
@@ -1 +1 @@
1
- (function(_0x57d0a5,_0x45b9c2){const _0x5a2887=a115_0x4f87,_0x3db9b2=_0x57d0a5();while(!![]){try{const _0x15a624=-parseInt(_0x5a2887(0x101))/0x1+-parseInt(_0x5a2887(0xfc))/0x2*(parseInt(_0x5a2887(0xfa))/0x3)+-parseInt(_0x5a2887(0xf5))/0x4+-parseInt(_0x5a2887(0xf9))/0x5+-parseInt(_0x5a2887(0xfe))/0x6+-parseInt(_0x5a2887(0xfd))/0x7*(-parseInt(_0x5a2887(0x100))/0x8)+-parseInt(_0x5a2887(0x102))/0x9*(-parseInt(_0x5a2887(0xff))/0xa);if(_0x15a624===_0x45b9c2)break;else _0x3db9b2['push'](_0x3db9b2['shift']());}catch(_0x4927ef){_0x3db9b2['push'](_0x3db9b2['shift']());}}}(a115_0x93e1,0xb45a5));import{CliErrors}from'../../errors.js';function a115_0x4f87(_0x1e6290,_0x2658dd){_0x1e6290=_0x1e6290-0xf3;const _0x93e10f=a115_0x93e1();let _0x4f8710=_0x93e10f[_0x1e6290];return _0x4f8710;}function a115_0x93e1(){const _0x1909f2=['includes','validation','3702860ALXsHX','168393MIfOKU','company','28ekeNBK','331751gPaHXM','5314584otXZYx','15975460WmKTRH','152kDDGAo','488083HTcZAN','18GxUNAV','personal','builtin','1826324LeqVgE','Unsupported\x20runtime\x20Skill\x20scope:\x20'];a115_0x93e1=function(){return _0x1909f2;};return a115_0x93e1();}export function normalizeRuntimeSkillScopes(_0x1cd30e){const _0x34690c=a115_0x4f87,_0x3f963e=_0x1cd30e&&_0x1cd30e['length']>0x0?_0x1cd30e:[_0x34690c(0xf3),_0x34690c(0xfb),'builtin'],_0x5bff7a=[];for(const _0x5dca72 of _0x3f963e){if(!isRuntimeSkillScope(_0x5dca72))throw CliErrors[_0x34690c(0xf8)](_0x34690c(0xf6)+_0x5dca72);!_0x5bff7a[_0x34690c(0xf7)](_0x5dca72)&&_0x5bff7a['push'](_0x5dca72);}return _0x5bff7a;}export function isRuntimeSkillScope(_0x1b0eda){const _0x14b637=a115_0x4f87;return _0x1b0eda===_0x14b637(0xf3)||_0x1b0eda===_0x14b637(0xfb)||_0x1b0eda===_0x14b637(0xf4);}
1
+ function a115_0x1829(_0x3051ea,_0x2df654){_0x3051ea=_0x3051ea-0x8d;const _0x4b589d=a115_0x4b58();let _0x18291c=_0x4b589d[_0x3051ea];return _0x18291c;}(function(_0x4f2973,_0x4ac001){const _0x166a66=a115_0x1829,_0x4ba9ce=_0x4f2973();while(!![]){try{const _0x468502=-parseInt(_0x166a66(0x90))/0x1+-parseInt(_0x166a66(0x8d))/0x2*(parseInt(_0x166a66(0x96))/0x3)+-parseInt(_0x166a66(0x9c))/0x4*(parseInt(_0x166a66(0x9b))/0x5)+-parseInt(_0x166a66(0x95))/0x6+-parseInt(_0x166a66(0x8f))/0x7+parseInt(_0x166a66(0x91))/0x8+parseInt(_0x166a66(0x99))/0x9;if(_0x468502===_0x4ac001)break;else _0x4ba9ce['push'](_0x4ba9ce['shift']());}catch(_0x498b2f){_0x4ba9ce['push'](_0x4ba9ce['shift']());}}}(a115_0x4b58,0xf34ba));import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x2577d9){const _0x286a92=a115_0x1829,_0x4c1bbb=_0x2577d9&&_0x2577d9[_0x286a92(0x8e)]>0x0?_0x2577d9:['personal',_0x286a92(0x9a),_0x286a92(0x92)],_0x52e6a2=[];for(const _0x79ef95 of _0x4c1bbb){if(!isRuntimeSkillScope(_0x79ef95))throw CliErrors[_0x286a92(0x94)]('Unsupported\x20runtime\x20Skill\x20scope:\x20'+_0x79ef95);!_0x52e6a2[_0x286a92(0x98)](_0x79ef95)&&_0x52e6a2[_0x286a92(0x93)](_0x79ef95);}return _0x52e6a2;}export function isRuntimeSkillScope(_0x153272){const _0x4003cd=a115_0x1829;return _0x153272===_0x4003cd(0x97)||_0x153272==='company'||_0x153272===_0x4003cd(0x92);}function a115_0x4b58(){const _0x4e4e3f=['12eppObc','2LfBoKB','length','4411316XzcNmO','1208738BuJenz','349416vRsGTv','builtin','push','validation','11606772OheJTz','4605207SSeMDl','personal','includes','67457583sXQFJO','company','2056615tnEfwV'];a115_0x4b58=function(){return _0x4e4e3f;};return a115_0x4b58();}
@@ -1 +1 @@
1
- function a117_0x2007(_0x37a128,_0x58b4d0){_0x37a128=_0x37a128-0xec;const _0x36d45e=a117_0x36d4();let _0x200765=_0x36d45e[_0x37a128];return _0x200765;}const a117_0x43c987=a117_0x2007;(function(_0x23a227,_0x52e536){const _0x16f353=a117_0x2007,_0x36307a=_0x23a227();while(!![]){try{const _0x46a8d5=parseInt(_0x16f353(0xf4))/0x1*(-parseInt(_0x16f353(0xed))/0x2)+-parseInt(_0x16f353(0xf3))/0x3+parseInt(_0x16f353(0xef))/0x4+-parseInt(_0x16f353(0xff))/0x5*(-parseInt(_0x16f353(0xf2))/0x6)+parseInt(_0x16f353(0xfa))/0x7+-parseInt(_0x16f353(0xfb))/0x8*(-parseInt(_0x16f353(0xf9))/0x9)+-parseInt(_0x16f353(0xf5))/0xa;if(_0x46a8d5===_0x52e536)break;else _0x36307a['push'](_0x36307a['shift']());}catch(_0x58f92d){_0x36307a['push'](_0x36307a['shift']());}}}(a117_0x36d4,0x5261f));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a117_0x43c987(0xec));export function createDeterministicZipPackage(_0x58ed5e){const _0x1a4b8a=a117_0x43c987,_0x77e3d9={};for(const _0x5b2bcd of normalizeLocalFiles(_0x58ed5e)){_0x77e3d9[_0x5b2bcd[_0x1a4b8a(0x100)]]=fileContent(_0x5b2bcd);}return Buffer[_0x1a4b8a(0xfc)](zipSync(_0x77e3d9,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x4c258b){const _0x5b5caf=a117_0x43c987;if(_0x4c258b[_0x5b5caf(0xf0)]<0x16)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');let _0x17da61;try{_0x17da61=unzipSync(_0x4c258b,{'filter'(_0xfacaee){const _0x1b797c=_0x5b5caf,_0x357df0=normalizeSkillRelativePath(_0xfacaee[_0x1b797c(0xf8)]);if(_0x357df0['endsWith']('/'))throw CliErrors[_0x1b797c(0xf1)](_0x1b797c(0x102)+_0x357df0);return!![];}});}catch(_0x152cf1){if(isRuntimeSkillValidationError(_0x152cf1))throw _0x152cf1;throw CliErrors[_0x5b5caf(0xf1)](_0x5b5caf(0xfd));}return Object[_0x5b5caf(0xfe)](_0x17da61)[_0x5b5caf(0xee)](([_0x41d881,_0x55c3fd])=>({'path':normalizeSkillRelativePath(_0x41d881),'bytes':Buffer[_0x5b5caf(0xfc)](_0x55c3fd)}))[_0x5b5caf(0xf6)](compareSkillFiles);}function a117_0x36d4(){const _0x2a845c=['3206154ulwdpZ','16HRAMGP','from','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','entries','30ZdXpiD','path','validation_error','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','1980-01-01T00:00:00.000Z','88uZViIK','map','701716ejOcpi','length','validation','435606xSTquG','608196JQhOSM','15003QeNThY','2794320QnaWsa','sort','code','name','1848051QcymWb'];a117_0x36d4=function(){return _0x2a845c;};return a117_0x36d4();}function isRuntimeSkillValidationError(_0x380d6e){const _0x39bd18=a117_0x43c987;return typeof _0x380d6e==='object'&&_0x380d6e!==null&&_0x39bd18(0xf7)in _0x380d6e&&_0x380d6e[_0x39bd18(0xf7)]===_0x39bd18(0x101);}
1
+ const a117_0x16ad04=a117_0xd228;(function(_0x17be80,_0x767816){const _0x17bf9a=a117_0xd228,_0x4087fd=_0x17be80();while(!![]){try{const _0x56e27b=-parseInt(_0x17bf9a(0xa7))/0x1*(parseInt(_0x17bf9a(0xa3))/0x2)+parseInt(_0x17bf9a(0xac))/0x3*(parseInt(_0x17bf9a(0xb3))/0x4)+parseInt(_0x17bf9a(0xb4))/0x5*(parseInt(_0x17bf9a(0xa1))/0x6)+-parseInt(_0x17bf9a(0xaf))/0x7+parseInt(_0x17bf9a(0xa0))/0x8+parseInt(_0x17bf9a(0xb1))/0x9*(parseInt(_0x17bf9a(0xa4))/0xa)+-parseInt(_0x17bf9a(0xb2))/0xb*(parseInt(_0x17bf9a(0x9e))/0xc);if(_0x56e27b===_0x767816)break;else _0x4087fd['push'](_0x4087fd['shift']());}catch(_0x3e5b33){_0x4087fd['push'](_0x4087fd['shift']());}}}(a117_0x2683,0x3d777));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';function a117_0xd228(_0x2e3725,_0x3c772e){_0x2e3725=_0x2e3725-0x9b;const _0x26835f=a117_0x2683();let _0xd22855=_0x26835f[_0x2e3725];return _0xd22855;}import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a117_0x16ad04(0x9f));export function createDeterministicZipPackage(_0x224a2b){const _0x476a13=a117_0x16ad04,_0x574992={};for(const _0x5935fb of normalizeLocalFiles(_0x224a2b)){_0x574992[_0x5935fb[_0x476a13(0xa8)]]=fileContent(_0x5935fb);}return Buffer[_0x476a13(0xad)](zipSync(_0x574992,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x570498){const _0x31dde2=a117_0x16ad04;if(_0x570498[_0x31dde2(0xaa)]<0x16)throw CliErrors[_0x31dde2(0x9c)](_0x31dde2(0x9b));let _0x2d3d80;try{_0x2d3d80=unzipSync(_0x570498,{'filter'(_0x29d829){const _0xe9e8a4=_0x31dde2,_0x32be91=normalizeSkillRelativePath(_0x29d829[_0xe9e8a4(0xa2)]);if(_0x32be91['endsWith']('/'))throw CliErrors[_0xe9e8a4(0x9c)](_0xe9e8a4(0xa5)+_0x32be91);return!![];}});}catch(_0xd24bcd){if(isRuntimeSkillValidationError(_0xd24bcd))throw _0xd24bcd;throw CliErrors[_0x31dde2(0x9c)](_0x31dde2(0x9b));}return Object[_0x31dde2(0xb0)](_0x2d3d80)[_0x31dde2(0x9d)](([_0xf6f72,_0x3684bc])=>({'path':normalizeSkillRelativePath(_0xf6f72),'bytes':Buffer['from'](_0x3684bc)}))[_0x31dde2(0xa6)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x1b0ee0){const _0x4d02ad=a117_0x16ad04;return typeof _0x1b0ee0===_0x4d02ad(0xab)&&_0x1b0ee0!==null&&'code'in _0x1b0ee0&&_0x1b0ee0[_0x4d02ad(0xae)]===_0x4d02ad(0xa9);}function a117_0x2683(){const _0x16c205=['validation','map','29004FqlmhC','1980-01-01T00:00:00.000Z','2765928cUiRQS','62508CUqpOD','name','46378SOXpyE','40ynrSlR','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','sort','5MKMkEE','path','validation_error','length','object','903MNYHHw','from','code','1860040ikOLsN','entries','160659QxAJmp','1287dZcxFM','3448buVkkU','115xofSfg','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.'];a117_0x2683=function(){return _0x16c205;};return a117_0x2683();}
@@ -1 +1 @@
1
- (function(_0x570228,_0x3f1239){const _0x31c422=a118_0x5e98,_0x995f8=_0x570228();while(!![]){try{const _0x423b80=-parseInt(_0x31c422(0x118))/0x1+parseInt(_0x31c422(0x104))/0x2*(parseInt(_0x31c422(0x120))/0x3)+parseInt(_0x31c422(0x119))/0x4*(parseInt(_0x31c422(0xf6))/0x5)+parseInt(_0x31c422(0x103))/0x6+parseInt(_0x31c422(0x112))/0x7*(-parseInt(_0x31c422(0x10a))/0x8)+-parseInt(_0x31c422(0x109))/0x9+-parseInt(_0x31c422(0x10e))/0xa*(-parseInt(_0x31c422(0xfc))/0xb);if(_0x423b80===_0x3f1239)break;else _0x995f8['push'](_0x995f8['shift']());}catch(_0x3ac9c5){_0x995f8['push'](_0x995f8['shift']());}}}(a118_0x4c59,0xdb2b5));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x34b38e){const _0x2eb2e0=a118_0x5e98,_0x189d6b=normalizeLocalFiles(_0x34b38e);if(!_0x189d6b[_0x2eb2e0(0x125)](_0x1057c5=>_0x1057c5['path']===SKILL_FILE))throw CliErrors[_0x2eb2e0(0x102)](_0x2eb2e0(0x121)+SKILL_FILE+_0x2eb2e0(0x101));const _0x296ddb=localFilesToManifestFiles(_0x189d6b),_0x2a9af3=createDeterministicZipPackage(_0x189d6b);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x296ddb),'zipSha256':bufferSha256(_0x2a9af3),'zipSize':_0x2a9af3[_0x2eb2e0(0xfb)],'files':_0x296ddb},'packageBytes':_0x2a9af3,'packageBase64':_0x2a9af3[_0x2eb2e0(0x107)](_0x2eb2e0(0xfa))};}function a118_0x4c59(){const _0xa3376=['path','isArray','zipSize','\x20in\x20Skill\x20file\x20package.','validation','7262262FlCsIH','26erVjvp','get','treeSha256','toString','ossPath','5726061rzXiGh','1709064BSFfZR','map','Runtime\x20Skill\x20package\x20is\x20missing\x20','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','40vCTQrC','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','isSafeInteger','has','28HqPpNo','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','bytes','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','set','schemaVersion','627169rjtpwR','4QYCrII','sha256','push','toLowerCase','Duplicate\x20Skill\x20package\x20entry:\x20','trim','Runtime\x20Skill\x20package\x20size\x20mismatch.','200133WeAHfG','Missing\x20','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','files','some','size','506355IduDGt','zipSha256','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','object','base64','length','2301079aBHivU','requireOssPath'];a118_0x4c59=function(){return _0xa3376;};return a118_0x4c59();}export function verifyRuntimeSkillPackage(_0x30869d,_0xc30575){const _0x1ff40d=a118_0x5e98,_0x403269=normalizePackageManifest(_0x30869d,{'requireOssPath':![]});if(!_0x403269)throw CliErrors[_0x1ff40d(0x102)](_0x1ff40d(0x122));return extractAndVerifyPackage(_0x403269,_0xc30575);}export function verifyRuntimeSkillBundle(_0x4133a7,_0x12f1c4){const _0x5f26ff=normalizePackageManifest(_0x4133a7,{'requireOssPath':![]});if(!_0x5f26ff)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x5f26ff,_0x12f1c4);}export function tryNormalizePackageManifest(_0x456ed9){return normalizePackageManifest(_0x456ed9,{'requireOssPath':![]});}export function requirePackageBytes(_0x5accc0,_0x3e0be2){const _0x33c8a0=a118_0x5e98;if(!_0x3e0be2||_0x3e0be2[_0x33c8a0(0xfb)]===0x0)throw CliErrors['validation'](_0x33c8a0(0x115)+_0x5accc0);return _0x3e0be2;}export function extractDownloadedPackage(_0x5935af){const _0x49f980=a118_0x5e98,_0x522829=parseZipPackage(_0x5935af)[_0x49f980(0x10b)](_0x5abbbe=>({'path':_0x5abbbe[_0x49f980(0xfe)],'bytes':_0x5abbbe[_0x49f980(0x114)]}));if(!_0x522829[_0x49f980(0x125)](_0x1add85=>_0x1add85[_0x49f980(0xfe)]===SKILL_FILE))throw CliErrors[_0x49f980(0x102)](_0x49f980(0x10c)+SKILL_FILE+'.');return normalizeLocalFiles(_0x522829);}export function localFilesToManifestFiles(_0x2b381e){const _0x543b04=a118_0x5e98;return normalizeLocalFiles(_0x2b381e)[_0x543b04(0x10b)](_0x5a6772=>({'path':_0x5a6772[_0x543b04(0xfe)],'sha256':fileHash(_0x5a6772),'size':fileContent(_0x5a6772)[_0x543b04(0xfb)]}));}function a118_0x5e98(_0x26002e,_0x3e99f3){_0x26002e=_0x26002e-0xf6;const _0x4c59a0=a118_0x4c59();let _0x5e98d6=_0x4c59a0[_0x26002e];return _0x5e98d6;}function normalizePackageManifest(_0x5417b9,_0x322220){const _0x17c02c=a118_0x5e98;if(!_0x5417b9||typeof _0x5417b9!==_0x17c02c(0xf9)||Array[_0x17c02c(0xff)](_0x5417b9))return undefined;const _0x5359bf=_0x5417b9,_0x114f84=typeof _0x5359bf[_0x17c02c(0x108)]==='string'?_0x5359bf['ossPath'][_0x17c02c(0x11e)]():undefined;if(_0x322220[_0x17c02c(0xfd)]&&!_0x114f84)return undefined;if(!Array['isArray'](_0x5359bf[_0x17c02c(0x124)])||_0x5359bf[_0x17c02c(0x124)][_0x17c02c(0xfb)]===0x0)return undefined;if(!isSha256Hex(_0x5359bf[_0x17c02c(0x106)]))throw CliErrors[_0x17c02c(0x102)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.');if(!isSha256Hex(_0x5359bf['zipSha256']))throw CliErrors['validation']('Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.');if(!Number['isSafeInteger'](_0x5359bf[_0x17c02c(0x100)])||_0x5359bf[_0x17c02c(0x100)]<0x0)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');const _0x6adc89=normalizeManifestFiles(_0x5359bf[_0x17c02c(0x124)]);if(!_0x6adc89['some'](_0xf135fd=>_0xf135fd[_0x17c02c(0xfe)]===SKILL_FILE))throw CliErrors[_0x17c02c(0x102)](_0x17c02c(0x10f)+SKILL_FILE+'.');const _0x7f6af1=fileTreeHash(_0x6adc89);if(_0x7f6af1!==_0x5359bf[_0x17c02c(0x106)][_0x17c02c(0x11c)]())throw CliErrors[_0x17c02c(0x102)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number[_0x17c02c(0x110)](_0x5359bf['schemaVersion'])?_0x5359bf[_0x17c02c(0x117)]:0x2,'ossPath':_0x114f84,'treeSha256':_0x7f6af1,'zipSha256':_0x5359bf[_0x17c02c(0xf7)][_0x17c02c(0x11c)](),'zipSize':_0x5359bf[_0x17c02c(0x100)],'files':_0x6adc89};}function extractAndVerifyPackage(_0x2d2870,_0x4db615){const _0x4dcf1f=a118_0x5e98,_0x466626=normalizePackageManifest(_0x2d2870,{'requireOssPath':![]});if(!_0x466626)throw CliErrors[_0x4dcf1f(0x102)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');if(_0x4db615[_0x4dcf1f(0xfb)]!==_0x466626[_0x4dcf1f(0x100)])throw CliErrors[_0x4dcf1f(0x102)](_0x4dcf1f(0x11f));const _0x24ed8a=bufferSha256(_0x4db615);if(_0x24ed8a!==_0x466626['zipSha256'])throw CliErrors[_0x4dcf1f(0x102)](_0x4dcf1f(0x123));return extractAndVerifyPackageFiles(_0x466626,_0x4db615);}function extractAndVerifyPackageFiles(_0x195e88,_0x152815){const _0x2483c7=a118_0x5e98,_0x189fb3=parseZipPackage(_0x152815);if(_0x189fb3[_0x2483c7(0xfb)]!==_0x195e88[_0x2483c7(0x124)][_0x2483c7(0xfb)])throw CliErrors['validation'](_0x2483c7(0x113));const _0x269ef1=new Map();for(const _0x59dfdf of _0x189fb3){if(_0x269ef1[_0x2483c7(0x111)](_0x59dfdf['path']))throw CliErrors[_0x2483c7(0x102)](_0x2483c7(0x11d)+_0x59dfdf[_0x2483c7(0xfe)]);_0x269ef1[_0x2483c7(0x116)](_0x59dfdf['path'],_0x59dfdf);}const _0x27dd0e=[];for(const _0x5ee2f4 of _0x195e88[_0x2483c7(0x124)]){const _0x2dc5cf=_0x269ef1[_0x2483c7(0x105)](_0x5ee2f4[_0x2483c7(0xfe)]);if(!_0x2dc5cf)throw CliErrors[_0x2483c7(0x102)](_0x2483c7(0x10d)+_0x5ee2f4[_0x2483c7(0xfe)]);if(_0x2dc5cf[_0x2483c7(0x114)][_0x2483c7(0xfb)]!==_0x5ee2f4[_0x2483c7(0x126)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'+_0x5ee2f4['path']);const _0x30aa1d=bufferSha256(_0x2dc5cf[_0x2483c7(0x114)]);if(_0x30aa1d!==_0x5ee2f4[_0x2483c7(0x11a)])throw CliErrors[_0x2483c7(0x102)](_0x2483c7(0xf8)+_0x5ee2f4[_0x2483c7(0xfe)]);_0x27dd0e[_0x2483c7(0x11b)]({'path':_0x5ee2f4[_0x2483c7(0xfe)],'bytes':_0x2dc5cf[_0x2483c7(0x114)]});}return normalizeLocalFiles(_0x27dd0e);}
1
+ (function(_0x3fa654,_0x545734){const _0x575f19=a118_0x3556,_0x463b0d=_0x3fa654();while(!![]){try{const _0x1b15e7=-parseInt(_0x575f19(0xd2))/0x1+parseInt(_0x575f19(0xd0))/0x2+parseInt(_0x575f19(0xcc))/0x3+parseInt(_0x575f19(0xc9))/0x4*(parseInt(_0x575f19(0xf2))/0x5)+parseInt(_0x575f19(0xf5))/0x6+parseInt(_0x575f19(0xd9))/0x7+parseInt(_0x575f19(0xe0))/0x8*(parseInt(_0x575f19(0xd5))/0x9);if(_0x1b15e7===_0x545734)break;else _0x463b0d['push'](_0x463b0d['shift']());}catch(_0x18ec95){_0x463b0d['push'](_0x463b0d['shift']());}}}(a118_0x2456,0x978d8));import{CliErrors}from'../../errors.js';function a118_0x3556(_0x11fa4f,_0x39e34d){_0x11fa4f=_0x11fa4f-0xc6;const _0x2456f4=a118_0x2456();let _0x3556df=_0x2456f4[_0x11fa4f];return _0x3556df;}import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x43097d){const _0x5180e8=a118_0x3556,_0x5b22ac=normalizeLocalFiles(_0x43097d);if(!_0x5b22ac[_0x5180e8(0xde)](_0x190b34=>_0x190b34['path']===SKILL_FILE))throw CliErrors[_0x5180e8(0xc6)](_0x5180e8(0xec)+SKILL_FILE+_0x5180e8(0xe3));const _0x1f2147=localFilesToManifestFiles(_0x5b22ac),_0x1288dc=createDeterministicZipPackage(_0x5b22ac);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x1f2147),'zipSha256':bufferSha256(_0x1288dc),'zipSize':_0x1288dc[_0x5180e8(0xd3)],'files':_0x1f2147},'packageBytes':_0x1288dc,'packageBase64':_0x1288dc[_0x5180e8(0xcf)]('base64')};}export function verifyRuntimeSkillPackage(_0x3141e8,_0x4a66cc){const _0x401bea=a118_0x3556,_0xdce9e8=normalizePackageManifest(_0x3141e8,{'requireOssPath':![]});if(!_0xdce9e8)throw CliErrors[_0x401bea(0xc6)](_0x401bea(0xe1));return extractAndVerifyPackage(_0xdce9e8,_0x4a66cc);}export function verifyRuntimeSkillBundle(_0x34a128,_0x596ab2){const _0x3060e0=a118_0x3556,_0x40c270=normalizePackageManifest(_0x34a128,{'requireOssPath':![]});if(!_0x40c270)throw CliErrors[_0x3060e0(0xc6)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x40c270,_0x596ab2);}export function tryNormalizePackageManifest(_0x16944c){return normalizePackageManifest(_0x16944c,{'requireOssPath':![]});}export function requirePackageBytes(_0x493d9a,_0x32184f){const _0x187ab3=a118_0x3556;if(!_0x32184f||_0x32184f[_0x187ab3(0xd3)]===0x0)throw CliErrors['validation'](_0x187ab3(0xe8)+_0x493d9a);return _0x32184f;}export function extractDownloadedPackage(_0x3ea92b){const _0x439156=a118_0x3556,_0x3b59be=parseZipPackage(_0x3ea92b)[_0x439156(0xdf)](_0x56f3cc=>({'path':_0x56f3cc[_0x439156(0xc8)],'bytes':_0x56f3cc[_0x439156(0xf1)]}));if(!_0x3b59be[_0x439156(0xde)](_0x564ae5=>_0x564ae5[_0x439156(0xc8)]===SKILL_FILE))throw CliErrors[_0x439156(0xc6)](_0x439156(0xcd)+SKILL_FILE+'.');return normalizeLocalFiles(_0x3b59be);}export function localFilesToManifestFiles(_0x563575){const _0x18bfac=a118_0x3556;return normalizeLocalFiles(_0x563575)['map'](_0x29a069=>({'path':_0x29a069[_0x18bfac(0xc8)],'sha256':fileHash(_0x29a069),'size':fileContent(_0x29a069)[_0x18bfac(0xd3)]}));}function normalizePackageManifest(_0x537df7,_0x5f432e){const _0x381b1b=a118_0x3556;if(!_0x537df7||typeof _0x537df7!==_0x381b1b(0xf3)||Array[_0x381b1b(0xc7)](_0x537df7))return undefined;const _0x58d49c=_0x537df7,_0x3e0b63=typeof _0x58d49c['ossPath']===_0x381b1b(0xf0)?_0x58d49c[_0x381b1b(0xd1)][_0x381b1b(0xe5)]():undefined;if(_0x5f432e[_0x381b1b(0xeb)]&&!_0x3e0b63)return undefined;if(!Array[_0x381b1b(0xc7)](_0x58d49c[_0x381b1b(0xcb)])||_0x58d49c[_0x381b1b(0xcb)]['length']===0x0)return undefined;if(!isSha256Hex(_0x58d49c['treeSha256']))throw CliErrors[_0x381b1b(0xc6)](_0x381b1b(0xca));if(!isSha256Hex(_0x58d49c[_0x381b1b(0xea)]))throw CliErrors['validation'](_0x381b1b(0xd8));if(!Number['isSafeInteger'](_0x58d49c['zipSize'])||_0x58d49c['zipSize']<0x0)throw CliErrors[_0x381b1b(0xc6)](_0x381b1b(0xdc));const _0x1bc7d1=normalizeManifestFiles(_0x58d49c[_0x381b1b(0xcb)]);if(!_0x1bc7d1[_0x381b1b(0xde)](_0x1003bd=>_0x1003bd[_0x381b1b(0xc8)]===SKILL_FILE))throw CliErrors[_0x381b1b(0xc6)](_0x381b1b(0xe4)+SKILL_FILE+'.');const _0x13ca21=fileTreeHash(_0x1bc7d1);if(_0x13ca21!==_0x58d49c['treeSha256'][_0x381b1b(0xe2)]())throw CliErrors['validation'](_0x381b1b(0xe6));return{'schemaVersion':Number['isSafeInteger'](_0x58d49c[_0x381b1b(0xd7)])?_0x58d49c[_0x381b1b(0xd7)]:0x2,'ossPath':_0x3e0b63,'treeSha256':_0x13ca21,'zipSha256':_0x58d49c['zipSha256']['toLowerCase'](),'zipSize':_0x58d49c[_0x381b1b(0xd4)],'files':_0x1bc7d1};}function extractAndVerifyPackage(_0x3694fd,_0x41c077){const _0x1225b5=a118_0x3556,_0x3498e3=normalizePackageManifest(_0x3694fd,{'requireOssPath':![]});if(!_0x3498e3)throw CliErrors['validation'](_0x1225b5(0xe1));if(_0x41c077['length']!==_0x3498e3[_0x1225b5(0xd4)])throw CliErrors[_0x1225b5(0xc6)](_0x1225b5(0xce));const _0x2c28af=bufferSha256(_0x41c077);if(_0x2c28af!==_0x3498e3[_0x1225b5(0xea)])throw CliErrors[_0x1225b5(0xc6)](_0x1225b5(0xd6));return extractAndVerifyPackageFiles(_0x3498e3,_0x41c077);}function extractAndVerifyPackageFiles(_0x41caa2,_0x4212db){const _0x1d9948=a118_0x3556,_0x18c144=parseZipPackage(_0x4212db);if(_0x18c144[_0x1d9948(0xd3)]!==_0x41caa2[_0x1d9948(0xcb)]['length'])throw CliErrors[_0x1d9948(0xc6)](_0x1d9948(0xdb));const _0x249d98=new Map();for(const _0x268ac2 of _0x18c144){if(_0x249d98[_0x1d9948(0xef)](_0x268ac2[_0x1d9948(0xc8)]))throw CliErrors['validation'](_0x1d9948(0xf4)+_0x268ac2[_0x1d9948(0xc8)]);_0x249d98[_0x1d9948(0xe9)](_0x268ac2[_0x1d9948(0xc8)],_0x268ac2);}const _0x131598=[];for(const _0x442a06 of _0x41caa2[_0x1d9948(0xcb)]){const _0x2c6644=_0x249d98['get'](_0x442a06[_0x1d9948(0xc8)]);if(!_0x2c6644)throw CliErrors[_0x1d9948(0xc6)](_0x1d9948(0xdd)+_0x442a06[_0x1d9948(0xc8)]);if(_0x2c6644[_0x1d9948(0xf1)]['length']!==_0x442a06[_0x1d9948(0xda)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'+_0x442a06['path']);const _0x1dc4a9=bufferSha256(_0x2c6644[_0x1d9948(0xf1)]);if(_0x1dc4a9!==_0x442a06[_0x1d9948(0xed)])throw CliErrors['validation'](_0x1d9948(0xee)+_0x442a06[_0x1d9948(0xc8)]);_0x131598[_0x1d9948(0xe7)]({'path':_0x442a06[_0x1d9948(0xc8)],'bytes':_0x2c6644[_0x1d9948(0xf1)]});}return normalizeLocalFiles(_0x131598);}function a118_0x2456(){const _0x297355=['toLowerCase','\x20in\x20Skill\x20file\x20package.','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','trim','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','push','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','set','zipSha256','requireOssPath','Missing\x20','sha256','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','has','string','bytes','10zPXimf','object','Duplicate\x20Skill\x20package\x20entry:\x20','2419998JUDrUK','validation','isArray','path','4940gLEzBs','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','files','959652IaZElz','Runtime\x20Skill\x20package\x20is\x20missing\x20','Runtime\x20Skill\x20package\x20size\x20mismatch.','toString','677838sAaCBE','ossPath','1029052LJtXCb','length','zipSize','964899YWdiyi','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','schemaVersion','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','344057yeiQWU','size','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','some','map','40vPzUuA','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.'];a118_0x2456=function(){return _0x297355;};return a118_0x2456();}
@@ -1 +1 @@
1
- (function(_0x18356a,_0x2a1cd1){var _0x3f7445=a119_0x53e1,_0x586d28=_0x18356a();while(!![]){try{var _0x517f17=-parseInt(_0x3f7445(0x9b))/0x1+-parseInt(_0x3f7445(0x98))/0x2+parseInt(_0x3f7445(0x99))/0x3+-parseInt(_0x3f7445(0x9f))/0x4+parseInt(_0x3f7445(0x9a))/0x5*(-parseInt(_0x3f7445(0x97))/0x6)+-parseInt(_0x3f7445(0x9d))/0x7*(-parseInt(_0x3f7445(0x9e))/0x8)+-parseInt(_0x3f7445(0x9c))/0x9*(parseInt(_0x3f7445(0xa0))/0xa);if(_0x517f17===_0x2a1cd1)break;else _0x586d28['push'](_0x586d28['shift']());}catch(_0x464879){_0x586d28['push'](_0x586d28['shift']());}}}(a119_0x1277,0x5004d));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{resolveRuntimeSkillInstallTarget}from'./runtime-skill-sync/install-target.js';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';function a119_0x53e1(_0x5a0df5,_0x5b6969){_0x5a0df5=_0x5a0df5-0x97;var _0x1277a9=a119_0x1277();var _0x53e141=_0x1277a9[_0x5a0df5];return _0x53e141;}function a119_0x1277(){var _0x496567=['134985ZSEZAx','62520vXuHIy','234918pqrYnV','378xXsPlg','95632MgTNNC','1192888mvdtdQ','70kmUXai','48lqsNZA','168576JcAmai','1577883AySSBF'];a119_0x1277=function(){return _0x496567;};return a119_0x1277();}export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
1
+ (function(_0x296602,_0x361baf){var _0x1bdf30=a119_0x5b1c,_0x3f34f5=_0x296602();while(!![]){try{var _0x142266=-parseInt(_0x1bdf30(0x136))/0x1+-parseInt(_0x1bdf30(0x13a))/0x2*(-parseInt(_0x1bdf30(0x138))/0x3)+parseInt(_0x1bdf30(0x134))/0x4*(-parseInt(_0x1bdf30(0x139))/0x5)+-parseInt(_0x1bdf30(0x13f))/0x6+parseInt(_0x1bdf30(0x13e))/0x7*(parseInt(_0x1bdf30(0x135))/0x8)+parseInt(_0x1bdf30(0x13d))/0x9*(-parseInt(_0x1bdf30(0x13b))/0xa)+parseInt(_0x1bdf30(0x137))/0xb*(parseInt(_0x1bdf30(0x13c))/0xc);if(_0x142266===_0x361baf)break;else _0x3f34f5['push'](_0x3f34f5['shift']());}catch(_0x1d3ce5){_0x3f34f5['push'](_0x3f34f5['shift']());}}}(a119_0x1a39,0x57789));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{resolveRuntimeSkillInstallTarget}from'./runtime-skill-sync/install-target.js';function a119_0x5b1c(_0x151b48,_0x1d4e42){_0x151b48=_0x151b48-0x134;var _0x1a3945=a119_0x1a39();var _0x5b1cbd=_0x1a3945[_0x151b48];return _0x5b1cbd;}export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';function a119_0x1a39(){var _0x1e3619=['7809744dHLdYq','18IKGdwK','7dlIVUp','3186384neemxN','1880funRgC','5006936jgOtcM','351957TfFuvo','11kfmFpz','1012017BOfHnd','3375kqXZLr','2bxEkqF','277330KGknlq'];a119_0x1a39=function(){return _0x1e3619;};return a119_0x1a39();}export{materializeRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
@@ -1 +1 @@
1
- (function(_0x34603f,_0x4500a7){const _0x3e2ffd=a120_0x5167,_0x5307de=_0x34603f();while(!![]){try{const _0x22935d=-parseInt(_0x3e2ffd(0x123))/0x1*(parseInt(_0x3e2ffd(0x125))/0x2)+-parseInt(_0x3e2ffd(0x12b))/0x3+-parseInt(_0x3e2ffd(0x126))/0x4*(-parseInt(_0x3e2ffd(0x12d))/0x5)+parseInt(_0x3e2ffd(0x129))/0x6*(parseInt(_0x3e2ffd(0x128))/0x7)+-parseInt(_0x3e2ffd(0x12c))/0x8*(-parseInt(_0x3e2ffd(0x127))/0x9)+-parseInt(_0x3e2ffd(0x124))/0xa+parseInt(_0x3e2ffd(0x12a))/0xb;if(_0x22935d===_0x4500a7)break;else _0x5307de['push'](_0x5307de['shift']());}catch(_0x45c6c2){_0x5307de['push'](_0x5307de['shift']());}}}(a120_0x4fea,0xb6d5e));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a120_0x4fea(){const _0x4114a5=['14161210KJgqCE','210QJVbMf','731732bKsJJS','9hAACEA','53137ZljvSk','288XprJQY','7018066NafeQU','714084NaLWlT','9525272ZHnisB','25koXmLo','6711kTVCwV'];a120_0x4fea=function(){return _0x4114a5;};return a120_0x4fea();}import{CliErrors}from'../errors.js';function a120_0x5167(_0x334f7d,_0x220da0){_0x334f7d=_0x334f7d-0x123;const _0x4fea20=a120_0x4fea();let _0x5167e5=_0x4fea20[_0x334f7d];return _0x5167e5;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a120_0xc821(){const _0x37c767=['4bPmTlA','840636WWTfTo','223447xaEpJm','2015672MBsJdp','135123IvovRa','834134VpOwBX','8NGiyMd','897174ZYfWtz','632570KmBJVb'];a120_0xc821=function(){return _0x37c767;};return a120_0xc821();}(function(_0x68d148,_0x3cc611){const _0xdb3c8e=a120_0x593a,_0x32b43c=_0x68d148();while(!![]){try{const _0xc87bf6=-parseInt(_0xdb3c8e(0xa6))/0x1+parseInt(_0xdb3c8e(0xad))/0x2*(-parseInt(_0xdb3c8e(0xa8))/0x3)+parseInt(_0xdb3c8e(0xa7))/0x4+parseInt(_0xdb3c8e(0xac))/0x5+parseInt(_0xdb3c8e(0xab))/0x6+parseInt(_0xdb3c8e(0xa9))/0x7*(-parseInt(_0xdb3c8e(0xaa))/0x8)+-parseInt(_0xdb3c8e(0xa5))/0x9;if(_0xc87bf6===_0x3cc611)break;else _0x32b43c['push'](_0x32b43c['shift']());}catch(_0x364c72){_0x32b43c['push'](_0x32b43c['shift']());}}}(a120_0xc821,0x3dfaa));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a120_0x593a(_0x2aeb11,_0x478989){_0x2aeb11=_0x2aeb11-0xa5;const _0xc821e9=a120_0xc821();let _0x593ae0=_0xc821e9[_0x2aeb11];return _0x593ae0;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});